Skip to content

Commit 2dba35e

Browse files
committed
refact: extend types and interfaces
1 parent 877ce58 commit 2dba35e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/once-ui/interfaces.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
ColorWeight,
55
flex,
66
gridColumns,
7+
opacity,
78
RadiusNest,
89
RadiusSize,
910
ShadowSize,
@@ -167,7 +168,7 @@ export interface DisplayProps extends HTMLAttributes<HTMLDivElement> {
167168
| "macro-short"
168169
| "macro-medium"
169170
| "macro-long";
170-
opacity?: 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100;
171+
opacity?: opacity;
171172
zIndex?: -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
172173
dark?: boolean;
173174
light?: boolean;

src/once-ui/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ export type ShadowSize = TShirtSizes;
4141

4242
export type SpacingToken = StaticSpacingToken | ResponsiveSpacingToken;
4343

44+
export type opacity = 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | 100;
45+
4446
export type ColorScheme =
4547
| "neutral"
4648
| "brand"

0 commit comments

Comments
 (0)