@midas-ds/components 4.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +543 -183
- package/accordion/Accordion.d.ts +1 -0
- package/calendar/RangeCalendar.d.ts +6 -0
- package/calendar/index.d.ts +1 -0
- package/card/Card.d.ts +1 -0
- package/date-field/index.d.ts +1 -1
- package/global.css +1 -1
- package/heading/Heading.d.ts +14 -0
- package/heading/index.d.ts +1 -0
- package/index.cjs +29 -29
- package/index.css +1 -1
- package/index.d.ts +4 -0
- package/index.js +24667 -23922
- package/label/Label.d.ts +10 -0
- package/label/index.d.ts +1 -0
- package/logo/Logo.d.ts +0 -2
- package/package.json +4 -5
- package/progress-bar/ProgressBar.d.ts +19 -0
- package/progress-bar/index.d.ts +1 -0
- package/select/SelectPopover.d.ts +1 -1
- package/text/Text.d.ts +14 -0
- package/text/index.d.ts +1 -0
- package/textfield/TextField.d.ts +1 -0
- package/theme/index.d.ts +163 -102
- package/theme/tokens.d.ts +163 -102
- package/theme.cjs +1 -1
- package/theme.js +11 -18
- package/toast/Toast.d.ts +7 -2
- package/tokens-Ce2Sj8HD.js +240 -0
- package/tokens-DZsQgihc.cjs +1 -0
- package/tokens-BskyMDHv.cjs +0 -1
- package/tokens-CjXmpXTi.js +0 -160
package/theme/tokens.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export declare const baseColors: {
|
|
2
|
-
white: string;
|
|
3
2
|
black: string;
|
|
3
|
+
white: string;
|
|
4
|
+
blackHover: string;
|
|
5
|
+
whiteHover: string;
|
|
4
6
|
gray10: string;
|
|
5
7
|
gray20: string;
|
|
6
8
|
gray30: string;
|
|
@@ -11,23 +13,18 @@ export declare const baseColors: {
|
|
|
11
13
|
gray80: string;
|
|
12
14
|
gray90: string;
|
|
13
15
|
gray100: string;
|
|
16
|
+
gray110: string;
|
|
17
|
+
gray120: string;
|
|
14
18
|
gray130: string;
|
|
19
|
+
gray140: string;
|
|
15
20
|
gray150: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
red60: string;
|
|
22
|
-
red70: string;
|
|
23
|
-
red80: string;
|
|
24
|
-
red90: string;
|
|
25
|
-
red100: string;
|
|
26
|
-
red130: string;
|
|
27
|
-
red150: string;
|
|
21
|
+
gray160: string;
|
|
22
|
+
gray170: string;
|
|
23
|
+
gray180: string;
|
|
24
|
+
gray190: string;
|
|
25
|
+
gray200: string;
|
|
28
26
|
blue10: string;
|
|
29
27
|
blue20: string;
|
|
30
|
-
blue30: string;
|
|
31
28
|
blue40: string;
|
|
32
29
|
blue50: string;
|
|
33
30
|
blue60: string;
|
|
@@ -35,101 +32,165 @@ export declare const baseColors: {
|
|
|
35
32
|
blue80: string;
|
|
36
33
|
blue90: string;
|
|
37
34
|
blue100: string;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export declare const inputColor: {
|
|
54
|
-
inputText: string;
|
|
55
|
-
};
|
|
56
|
-
export declare const signalColors: {
|
|
57
|
-
signalGreen10: string;
|
|
58
|
-
signalGreen100: string;
|
|
59
|
-
signalBlue10: string;
|
|
60
|
-
signalBlue100: string;
|
|
61
|
-
signalYellow10: string;
|
|
62
|
-
signalYellow100: string;
|
|
63
|
-
signalRed10: string;
|
|
64
|
-
signalRed100: string;
|
|
65
|
-
signalRed130: string;
|
|
66
|
-
signalRed150: string;
|
|
67
|
-
};
|
|
68
|
-
export declare const borderRadius: {
|
|
69
|
-
sRadius: string;
|
|
70
|
-
mRadius: string;
|
|
71
|
-
};
|
|
72
|
-
export declare const borderWidths: {
|
|
73
|
-
xsWidth: string;
|
|
74
|
-
sWidth: string;
|
|
75
|
-
mWidth: string;
|
|
35
|
+
blue140: string;
|
|
36
|
+
blue170: string;
|
|
37
|
+
purple80: string;
|
|
38
|
+
purple140: string;
|
|
39
|
+
red100: string;
|
|
40
|
+
signalBlue20: string;
|
|
41
|
+
signalBlue140: string;
|
|
42
|
+
signalGreen20: string;
|
|
43
|
+
signalGreen140: string;
|
|
44
|
+
signalRed20: string;
|
|
45
|
+
signalRed140: string;
|
|
46
|
+
signalRed160: string;
|
|
47
|
+
signalRed180: string;
|
|
48
|
+
signalYellow20: string;
|
|
49
|
+
signalYellow140: string;
|
|
76
50
|
};
|
|
77
|
-
export declare const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
51
|
+
export declare const typography: {
|
|
52
|
+
fontFamily: string;
|
|
53
|
+
lineHeight01: number;
|
|
54
|
+
lineHeight02: number;
|
|
55
|
+
lineHeight03: number;
|
|
56
|
+
lineHeight04: number;
|
|
57
|
+
lineHeight05: number;
|
|
58
|
+
lineHeight06: number;
|
|
59
|
+
lineHeight07: number;
|
|
60
|
+
lineHeight08: number;
|
|
61
|
+
lineHeight09: number;
|
|
62
|
+
size01: string;
|
|
63
|
+
size02: string;
|
|
64
|
+
size03: string;
|
|
65
|
+
size04: string;
|
|
66
|
+
size05: string;
|
|
67
|
+
size06: string;
|
|
68
|
+
size07: string;
|
|
69
|
+
size08: string;
|
|
70
|
+
size09: string;
|
|
71
|
+
size10: string;
|
|
72
|
+
weightThin: number;
|
|
73
|
+
weightExtraLight: number;
|
|
74
|
+
weightLight: number;
|
|
75
|
+
weightRegular: number;
|
|
76
|
+
weightMedium: number;
|
|
77
|
+
weightSemiBold: number;
|
|
78
|
+
weightBold: number;
|
|
79
|
+
weightExtraBold: number;
|
|
80
|
+
weightBlack: number;
|
|
84
81
|
};
|
|
85
|
-
export declare const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
export declare const spacing: {
|
|
83
|
+
'01': string;
|
|
84
|
+
'02': string;
|
|
85
|
+
'03': string;
|
|
86
|
+
'04': string;
|
|
87
|
+
'05': string;
|
|
88
|
+
'06': string;
|
|
89
|
+
'07': string;
|
|
90
|
+
'08': string;
|
|
91
|
+
'09': string;
|
|
92
|
+
'10': string;
|
|
93
|
+
'11': string;
|
|
94
|
+
'12': string;
|
|
93
95
|
};
|
|
94
|
-
export declare const
|
|
95
|
-
|
|
96
|
-
logoSecondary: string;
|
|
97
|
-
textPrimary: string;
|
|
98
|
-
textSecondary: string;
|
|
99
|
-
textTertiary: string;
|
|
100
|
-
link: string;
|
|
101
|
-
linkVisited: string;
|
|
102
|
-
backgroundPrimary: string;
|
|
103
|
-
backgroundSecondary: string;
|
|
104
|
-
backgroundFooter1: string;
|
|
105
|
-
backgroundFooter2: string;
|
|
106
|
-
backgroundInfo: string;
|
|
107
|
-
backgroundImportant: string;
|
|
108
|
-
borderPrimary: string;
|
|
109
|
-
borderSecondary: string;
|
|
110
|
-
borderFocusOuter: string;
|
|
111
|
-
borderFocusInner: string;
|
|
112
|
-
iconPrimary: string;
|
|
113
|
-
iconInverted: string;
|
|
96
|
+
export declare const states: {
|
|
97
|
+
focus: string;
|
|
114
98
|
};
|
|
115
|
-
export declare const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
99
|
+
export declare const transitions: {
|
|
100
|
+
slow: string;
|
|
101
|
+
normal: string;
|
|
102
|
+
fast: string;
|
|
119
103
|
};
|
|
120
104
|
export declare const breakpoints: {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
};
|
|
126
|
-
export declare const accessibility: {
|
|
105
|
+
sm: string;
|
|
106
|
+
md: string;
|
|
107
|
+
lg: string;
|
|
108
|
+
xl: string;
|
|
127
109
|
forcedColorsMode: string;
|
|
110
|
+
darkMode: string;
|
|
128
111
|
prefersReducedMotion: string;
|
|
129
112
|
};
|
|
130
|
-
export declare const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
113
|
+
export declare const semantic: {
|
|
114
|
+
background01: string;
|
|
115
|
+
backgroundHover01: string;
|
|
116
|
+
backgroundInverse01: string;
|
|
117
|
+
layer01: string;
|
|
118
|
+
layerHover01: string;
|
|
119
|
+
layerSelected01: string;
|
|
120
|
+
layerSelectedHover01: string;
|
|
121
|
+
layer02: string;
|
|
122
|
+
layerHover02: string;
|
|
123
|
+
layerSelected02: string;
|
|
124
|
+
layerSelectedHover02: string;
|
|
125
|
+
layerAccent01: string;
|
|
126
|
+
layerAccentHover01: string;
|
|
127
|
+
layerAccentSelected01: string;
|
|
128
|
+
layerAccent02: string;
|
|
129
|
+
layerAccentHover02: string;
|
|
130
|
+
layerAccentSelected02: string;
|
|
131
|
+
brandPrimary: string;
|
|
132
|
+
borderStrong: string;
|
|
133
|
+
borderMedium: string;
|
|
134
|
+
borderSubtle: string;
|
|
135
|
+
borderBrand: string;
|
|
136
|
+
borderInvalid: string;
|
|
137
|
+
borderDisabled: string;
|
|
138
|
+
borderSkeleton: string;
|
|
139
|
+
borderInverse: string;
|
|
140
|
+
field01: string;
|
|
141
|
+
fieldHover01: string;
|
|
142
|
+
fieldActive01: string;
|
|
143
|
+
field02: string;
|
|
144
|
+
fieldHover02: string;
|
|
145
|
+
fieldActive02: string;
|
|
146
|
+
fieldDisabled: string;
|
|
147
|
+
fieldSkeleton: string;
|
|
148
|
+
iconPrimary: string;
|
|
149
|
+
iconSecondary: string;
|
|
150
|
+
iconInverse: string;
|
|
151
|
+
iconOnColor: string;
|
|
152
|
+
iconDanger: string;
|
|
153
|
+
iconDisabled: string;
|
|
154
|
+
iconSuccess: string;
|
|
155
|
+
iconInfo: string;
|
|
156
|
+
iconWarning: string;
|
|
157
|
+
iconImportant: string;
|
|
158
|
+
linkEnabled: string;
|
|
159
|
+
linkHover: string;
|
|
160
|
+
linkPressed: string;
|
|
161
|
+
linkVisited: string;
|
|
162
|
+
notificationBorderSuccess: string;
|
|
163
|
+
notificationBorderInfo: string;
|
|
164
|
+
notificationBorderImportant: string;
|
|
165
|
+
notificationBorderWarning: string;
|
|
166
|
+
notificationBackgroundSuccess: string;
|
|
167
|
+
notificationBackgroundInfo: string;
|
|
168
|
+
notificationBackgroundImportant: string;
|
|
169
|
+
notificationBackgroundWarning: string;
|
|
170
|
+
textPrimary: string;
|
|
171
|
+
textSecondary: string;
|
|
172
|
+
textBrand: string;
|
|
173
|
+
textOnColor: string;
|
|
174
|
+
textInverse: string;
|
|
175
|
+
textSubtle: string;
|
|
176
|
+
textDisabled: string;
|
|
177
|
+
textInvalid: string;
|
|
178
|
+
textPlaceholder: string;
|
|
179
|
+
buttonBackgroundPrimary: string;
|
|
180
|
+
buttonBackgroundPrimaryHover: string;
|
|
181
|
+
buttonBackgroundPrimaryActive: string;
|
|
182
|
+
buttonBackgroundSecondary: string;
|
|
183
|
+
buttonBackgroundSecondaryHover: string;
|
|
184
|
+
buttonBackgroundSecondaryActive: string;
|
|
185
|
+
buttonBackgroundTertiaryHover: string;
|
|
186
|
+
buttonBackgroundTertiaryActive: string;
|
|
187
|
+
buttonBackgroundDanger: string;
|
|
188
|
+
buttonBackgroundDangerHover: string;
|
|
189
|
+
buttonBackgroundDangerActive: string;
|
|
190
|
+
buttonBackgroundDisabled: string;
|
|
191
|
+
buttonBackgroundSkeleton: string;
|
|
192
|
+
buttonBackgroundGhostHover: string;
|
|
193
|
+
buttonBackgroundGhostActive: string;
|
|
194
|
+
buttonBorderPrimary: string;
|
|
195
|
+
logoPrimary: string;
|
|
135
196
|
};
|
package/theme.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./tokens-DZsQgihc.cjs"),s={...t.tokens};exports.baseColors=t.baseColors;exports.breakpoints=t.breakpoints;exports.semantic=t.semantic;exports.spacing=t.spacing;exports.states=t.states;exports.transitions=t.transitions;exports.typography=t.typography;exports.theme=s;
|
package/theme.js
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import { t as s } from "./tokens-
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { t as s } from "./tokens-Ce2Sj8HD.js";
|
|
2
|
+
import { b as r, f as n, s as p, c as i, d as m, e as c, a as b } from "./tokens-Ce2Sj8HD.js";
|
|
3
|
+
const t = { ...s };
|
|
4
4
|
export {
|
|
5
|
-
r as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
h as fontSizes,
|
|
14
|
-
p as fontWeights,
|
|
15
|
-
C as inputColor,
|
|
16
|
-
c as midasColors,
|
|
17
|
-
g as midasTransitions,
|
|
18
|
-
k as signalColors,
|
|
19
|
-
a as theme
|
|
5
|
+
r as baseColors,
|
|
6
|
+
n as breakpoints,
|
|
7
|
+
p as semantic,
|
|
8
|
+
i as spacing,
|
|
9
|
+
m as states,
|
|
10
|
+
t as theme,
|
|
11
|
+
c as transitions,
|
|
12
|
+
b as typography
|
|
20
13
|
};
|
package/toast/Toast.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AriaToastProps, AriaToastRegionProps } from '
|
|
2
|
-
import { QueuedToast, ToastQueue, ToastState } from '
|
|
1
|
+
import { AriaToastProps, AriaToastRegionProps } from 'react-aria';
|
|
2
|
+
import { QueuedToast, ToastQueue, ToastState, ToastStateProps } from 'react-stately';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
export interface MidasToast {
|
|
5
5
|
message: string;
|
|
@@ -17,6 +17,11 @@ export interface ToastProps<T> extends AriaToastProps<T> {
|
|
|
17
17
|
interface ToastProviderProps extends AriaToastRegionProps {
|
|
18
18
|
children?: ((state: ToastState<MidasToast>) => React.ReactNode) | React.ReactNode;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Temporary implementation of https://github.com/adobe/react-spectrum/blob/main/packages/%40react-stately/toast/src/useToastState.ts#L59
|
|
22
|
+
* TODO: Erase this as soon as react-stately is released
|
|
23
|
+
*/
|
|
24
|
+
export declare function useToastState<T>(props?: ToastStateProps): ToastState<T>;
|
|
20
25
|
export declare const toastQueue: ToastQueue<MidasToast>;
|
|
21
26
|
export declare const GlobalToastRegion: (props: ToastProviderProps) => React.ReactPortal | null;
|
|
22
27
|
export declare const ToastProvider: ({ children, ...props }: ToastProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
black: "#000000",
|
|
3
|
+
white: "#ffffff",
|
|
4
|
+
blackHover: "#0d0d0d",
|
|
5
|
+
whiteHover: "#e6e6e6",
|
|
6
|
+
gray10: "#f2f2f2",
|
|
7
|
+
gray20: "#e6e6e6",
|
|
8
|
+
gray30: "#d9d9d9",
|
|
9
|
+
gray40: "#cccccc",
|
|
10
|
+
gray50: "#bfbfbf",
|
|
11
|
+
gray60: "#b3b3b3",
|
|
12
|
+
gray70: "#a6a6a6",
|
|
13
|
+
gray80: "#999999",
|
|
14
|
+
gray90: "#8c8c8c",
|
|
15
|
+
gray100: "#808080",
|
|
16
|
+
gray110: "#737373",
|
|
17
|
+
gray120: "#666666",
|
|
18
|
+
gray130: "#5d5d5d",
|
|
19
|
+
gray140: "#525252",
|
|
20
|
+
gray150: "#474747",
|
|
21
|
+
gray160: "#383838",
|
|
22
|
+
gray170: "#333333",
|
|
23
|
+
gray180: "#262626",
|
|
24
|
+
gray190: "#212121",
|
|
25
|
+
gray200: "#171717",
|
|
26
|
+
blue10: "#eaf2f6",
|
|
27
|
+
blue20: "#d5e5ed",
|
|
28
|
+
blue40: "#abcbdb",
|
|
29
|
+
blue50: "#abcbdb",
|
|
30
|
+
blue60: "#82b0c9",
|
|
31
|
+
blue70: "#6ca3c0",
|
|
32
|
+
blue80: "#5897b8",
|
|
33
|
+
blue90: "#4289ad",
|
|
34
|
+
blue100: "#2e7ca5",
|
|
35
|
+
blue140: "#25607f",
|
|
36
|
+
blue170: "#143c50",
|
|
37
|
+
purple80: "#b46ab4",
|
|
38
|
+
purple140: "#954b95",
|
|
39
|
+
red100: "#b90835",
|
|
40
|
+
signalBlue20: "#eaf2f6",
|
|
41
|
+
signalBlue140: "#0066cc",
|
|
42
|
+
signalGreen20: "#d5f2d9",
|
|
43
|
+
signalGreen140: "#008d3c",
|
|
44
|
+
signalRed20: "#ffdfdf",
|
|
45
|
+
signalRed140: "#e62323",
|
|
46
|
+
signalRed160: "#b31b1b",
|
|
47
|
+
signalRed180: "#801313",
|
|
48
|
+
signalYellow20: "#fff8e1",
|
|
49
|
+
signalYellow140: "#fdb813"
|
|
50
|
+
}, a = {
|
|
51
|
+
fontFamily: '"Inter", sans-serif',
|
|
52
|
+
lineHeight01: 1,
|
|
53
|
+
// 16px
|
|
54
|
+
lineHeight02: 1.125,
|
|
55
|
+
// 18px (18/16)
|
|
56
|
+
lineHeight03: 1.25,
|
|
57
|
+
// 20px (20/16)
|
|
58
|
+
lineHeight04: 1.375,
|
|
59
|
+
// 22px (22/16)
|
|
60
|
+
lineHeight05: 1.5,
|
|
61
|
+
// 24px (24/16)
|
|
62
|
+
lineHeight06: 1.75,
|
|
63
|
+
// 28px (28/16)
|
|
64
|
+
lineHeight07: 2,
|
|
65
|
+
// 32px (32/16)
|
|
66
|
+
lineHeight08: 2.25,
|
|
67
|
+
// 36px (36/16)
|
|
68
|
+
lineHeight09: 2.5,
|
|
69
|
+
// 40px (40/16)
|
|
70
|
+
size01: "0.75rem",
|
|
71
|
+
// 12px (12/16)
|
|
72
|
+
size02: "0.875rem",
|
|
73
|
+
// 14px (14/16)
|
|
74
|
+
size03: "1rem",
|
|
75
|
+
// 16px (16/16)
|
|
76
|
+
size04: "1.125rem",
|
|
77
|
+
// 18px (18/16)
|
|
78
|
+
size05: "1.25rem",
|
|
79
|
+
// 20px (20/16)
|
|
80
|
+
size06: "1.5rem",
|
|
81
|
+
// 24px (24/16)
|
|
82
|
+
size07: "1.75rem",
|
|
83
|
+
// 28px (28/16)
|
|
84
|
+
size08: "2rem",
|
|
85
|
+
// 32px (32/16)
|
|
86
|
+
size09: "2.25rem",
|
|
87
|
+
// 36px (36/16)
|
|
88
|
+
size10: "2.625rem",
|
|
89
|
+
// 42px (40/16)
|
|
90
|
+
weightThin: 100,
|
|
91
|
+
weightExtraLight: 200,
|
|
92
|
+
weightLight: 300,
|
|
93
|
+
weightRegular: 400,
|
|
94
|
+
weightMedium: 500,
|
|
95
|
+
weightSemiBold: 600,
|
|
96
|
+
weightBold: 700,
|
|
97
|
+
weightExtraBold: 800,
|
|
98
|
+
weightBlack: 900
|
|
99
|
+
}, e = {
|
|
100
|
+
"01": "0.125rem",
|
|
101
|
+
// 2px
|
|
102
|
+
"02": "0.25rem",
|
|
103
|
+
// 4px
|
|
104
|
+
"03": "0.5rem",
|
|
105
|
+
// 8px
|
|
106
|
+
"04": "0.75rem",
|
|
107
|
+
// 12px
|
|
108
|
+
"05": "1rem",
|
|
109
|
+
// 16px
|
|
110
|
+
"06": "1.5rem",
|
|
111
|
+
// 24px
|
|
112
|
+
"07": "2rem",
|
|
113
|
+
// 32px
|
|
114
|
+
"08": "2.5rem",
|
|
115
|
+
// 40px
|
|
116
|
+
"09": "3rem",
|
|
117
|
+
// 48px
|
|
118
|
+
10: "4rem",
|
|
119
|
+
// 64px
|
|
120
|
+
11: "5rem",
|
|
121
|
+
// 80px
|
|
122
|
+
12: "6rem"
|
|
123
|
+
// 96px
|
|
124
|
+
}, g = {
|
|
125
|
+
focus: "0 0 0 2px white, 0 0 0 4px black"
|
|
126
|
+
}, i = {
|
|
127
|
+
slow: "500ms",
|
|
128
|
+
normal: "300ms",
|
|
129
|
+
fast: "250ms"
|
|
130
|
+
}, t = {
|
|
131
|
+
sm: "(max-width: 767px)",
|
|
132
|
+
md: "(min-width: 768px)",
|
|
133
|
+
lg: "(min-width: 1200px)",
|
|
134
|
+
xl: "(min-width: 1440px)",
|
|
135
|
+
forcedColorsMode: "(forced-colors: active)",
|
|
136
|
+
darkMode: "(prefers-color-scheme: dark)",
|
|
137
|
+
prefersReducedMotion: "(prefers-reduced-motion: reduced)"
|
|
138
|
+
}, l = {
|
|
139
|
+
background01: `light-dark(${r.white}, ${r.gray30})`,
|
|
140
|
+
backgroundHover01: `light-dark(${r.whiteHover}, ${r.gray190})`,
|
|
141
|
+
backgroundInverse01: `light-dark(${r.gray30}, ${r.gray10})`,
|
|
142
|
+
layer01: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
143
|
+
layerHover01: `light-dark(${r.gray20}, ${r.gray170})`,
|
|
144
|
+
layerSelected01: `light-dark(${r.gray30}, ${r.gray160})`,
|
|
145
|
+
layerSelectedHover01: `light-dark(${r.gray40}, ${r.gray20})`,
|
|
146
|
+
layer02: `light-dark(${r.white}, ${r.gray160})`,
|
|
147
|
+
layerHover02: `light-dark(${r.whiteHover}, ${r.gray20})`,
|
|
148
|
+
layerSelected02: `light-dark(${r.gray30}, ${r.gray140})`,
|
|
149
|
+
layerSelectedHover02: `light-dark(${r.gray40}, ${r.gray130})`,
|
|
150
|
+
layerAccent01: `light-dark(${r.gray30}, ${r.gray160})`,
|
|
151
|
+
layerAccentHover01: `light-dark(${r.gray40}, ${r.gray20})`,
|
|
152
|
+
layerAccentSelected01: `light-dark(${r.gray50}, ${r.gray140})`,
|
|
153
|
+
layerAccent02: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
154
|
+
layerAccentHover02: `light-dark(${r.gray20}, ${r.gray170})`,
|
|
155
|
+
layerAccentSelected02: `light-dark(${r.gray30}, ${r.gray160})`,
|
|
156
|
+
brandPrimary: `light-dark(${r.red100}, ${r.red100})`,
|
|
157
|
+
borderStrong: `light-dark(${r.gray30}, ${r.gray10})`,
|
|
158
|
+
borderMedium: `light-dark(${r.gray110}, ${r.gray90})`,
|
|
159
|
+
borderSubtle: `light-dark(${r.gray50}, ${r.gray160})`,
|
|
160
|
+
borderBrand: `light-dark(${r.blue170}, ${r.blue170})`,
|
|
161
|
+
borderInvalid: `light-dark(${r.signalRed140}, ${r.signalRed140})`,
|
|
162
|
+
borderDisabled: `light-dark(${r.gray50}, ${r.gray140})`,
|
|
163
|
+
borderSkeleton: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
164
|
+
borderInverse: `light-dark(${r.white}, ${r.gray180})`,
|
|
165
|
+
field01: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
166
|
+
fieldHover01: `light-dark(${r.gray20}, ${r.gray170})`,
|
|
167
|
+
fieldActive01: `light-dark(${r.gray30}, ${r.gray160})`,
|
|
168
|
+
field02: `light-dark(${r.white}, ${r.gray160})`,
|
|
169
|
+
fieldHover02: `light-dark(${r.whiteHover}, ${r.gray20})`,
|
|
170
|
+
fieldActive02: `light-dark(${r.gray30}, ${r.gray140})`,
|
|
171
|
+
fieldDisabled: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
172
|
+
fieldSkeleton: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
173
|
+
iconPrimary: `light-dark(${r.gray30}, ${r.gray10})`,
|
|
174
|
+
iconSecondary: `light-dark(${r.blue170}, ${r.blue170})`,
|
|
175
|
+
iconInverse: `light-dark(${r.white}, ${r.black})`,
|
|
176
|
+
iconOnColor: `light-dark(${r.white}, ${r.white})`,
|
|
177
|
+
iconDanger: `light-dark(${r.signalRed140}, ${r.signalRed140})`,
|
|
178
|
+
iconDisabled: `light-dark(${r.gray50}, ${r.gray140})`,
|
|
179
|
+
iconSuccess: `light-dark(${r.signalGreen140}, ${r.signalGreen140})`,
|
|
180
|
+
iconInfo: `light-dark(${r.signalBlue140}, ${r.signalBlue140})`,
|
|
181
|
+
iconWarning: `light-dark(${r.signalRed140}, ${r.signalRed140})`,
|
|
182
|
+
iconImportant: `light-dark(${r.signalYellow140}, ${r.signalYellow140})`,
|
|
183
|
+
linkEnabled: `light-dark(${r.blue100}, ${r.blue90})`,
|
|
184
|
+
linkHover: `light-dark(${r.blue170}, ${r.blue80})`,
|
|
185
|
+
linkPressed: `light-dark(${r.gray200}, ${r.blue60})`,
|
|
186
|
+
linkVisited: `light-dark(${r.purple140}, ${r.purple80})`,
|
|
187
|
+
notificationBorderSuccess: `light-dark(${r.signalGreen140}, ${r.signalGreen140})`,
|
|
188
|
+
notificationBorderInfo: `light-dark(${r.signalBlue140}, ${r.signalBlue140})`,
|
|
189
|
+
notificationBorderImportant: `light-dark(${r.signalYellow140}, ${r.signalYellow140})`,
|
|
190
|
+
notificationBorderWarning: `light-dark(${r.signalRed140}, ${r.signalRed140})`,
|
|
191
|
+
notificationBackgroundSuccess: `light-dark(${r.signalGreen20}, ${r.gray10})`,
|
|
192
|
+
notificationBackgroundInfo: `light-dark(${r.signalBlue20}, ${r.gray10})`,
|
|
193
|
+
notificationBackgroundImportant: `light-dark(${r.signalYellow20}, ${r.gray10})`,
|
|
194
|
+
notificationBackgroundWarning: `light-dark(${r.signalRed20}, ${r.gray10})`,
|
|
195
|
+
textPrimary: `light-dark(${r.gray30}, ${r.gray10})`,
|
|
196
|
+
textSecondary: `light-dark(${r.gray140}, ${r.gray70})`,
|
|
197
|
+
textBrand: `light-dark(${r.blue170}, ${r.gray10})`,
|
|
198
|
+
textOnColor: `light-dark(${r.white}, ${r.white})`,
|
|
199
|
+
textInverse: `light-dark(${r.white}, ${r.black})`,
|
|
200
|
+
textSubtle: `light-dark(${r.gray90}, ${r.gray90})`,
|
|
201
|
+
textDisabled: `light-dark(${r.gray50}, ${r.gray140})`,
|
|
202
|
+
textInvalid: `light-dark(${r.signalRed140}, ${r.signalRed140})`,
|
|
203
|
+
textPlaceholder: `light-dark(${r.gray70}, ${r.gray140})`,
|
|
204
|
+
buttonBackgroundPrimary: `light-dark(${r.blue170}, ${r.blue100})`,
|
|
205
|
+
buttonBackgroundPrimaryHover: `light-dark(${r.blue140}, ${r.blue140})`,
|
|
206
|
+
buttonBackgroundPrimaryActive: `light-dark(${r.blue100}, ${r.blue170})`,
|
|
207
|
+
buttonBackgroundSecondary: `light-dark(${r.white}, ${r.gray30})`,
|
|
208
|
+
buttonBackgroundSecondaryHover: `light-dark(${r.whiteHover}, ${r.gray190})`,
|
|
209
|
+
buttonBackgroundSecondaryActive: `light-dark(${r.gray30}, ${r.gray180})`,
|
|
210
|
+
buttonBackgroundTertiaryHover: `light-dark(${r.whiteHover}, ${r.gray190})`,
|
|
211
|
+
buttonBackgroundTertiaryActive: `light-dark(${r.gray30}, ${r.gray180})`,
|
|
212
|
+
buttonBackgroundDanger: `light-dark(${r.signalRed140}, ${r.signalRed140})`,
|
|
213
|
+
buttonBackgroundDangerHover: `light-dark(${r.signalRed160}, ${r.signalRed160})`,
|
|
214
|
+
buttonBackgroundDangerActive: `light-dark(${r.signalRed180}, ${r.signalRed180})`,
|
|
215
|
+
buttonBackgroundDisabled: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
216
|
+
buttonBackgroundSkeleton: `light-dark(${r.gray10}, ${r.gray180})`,
|
|
217
|
+
buttonBackgroundGhostHover: `light-dark(${r.whiteHover}, ${r.gray190})`,
|
|
218
|
+
buttonBackgroundGhostActive: `light-dark(${r.gray30}, ${r.gray190})`,
|
|
219
|
+
buttonBorderPrimary: `light-dark(${r.blue170}, ${r.gray10})`,
|
|
220
|
+
logoPrimary: `light-dark(${r.red100}, ${r.white})`
|
|
221
|
+
}, d = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
222
|
+
__proto__: null,
|
|
223
|
+
baseColors: r,
|
|
224
|
+
breakpoints: t,
|
|
225
|
+
semantic: l,
|
|
226
|
+
spacing: e,
|
|
227
|
+
states: g,
|
|
228
|
+
transitions: i,
|
|
229
|
+
typography: a
|
|
230
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
231
|
+
export {
|
|
232
|
+
a,
|
|
233
|
+
r as b,
|
|
234
|
+
e as c,
|
|
235
|
+
g as d,
|
|
236
|
+
i as e,
|
|
237
|
+
t as f,
|
|
238
|
+
l as s,
|
|
239
|
+
d as t
|
|
240
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r={black:"#000000",white:"#ffffff",blackHover:"#0d0d0d",whiteHover:"#e6e6e6",gray10:"#f2f2f2",gray20:"#e6e6e6",gray30:"#d9d9d9",gray40:"#cccccc",gray50:"#bfbfbf",gray60:"#b3b3b3",gray70:"#a6a6a6",gray80:"#999999",gray90:"#8c8c8c",gray100:"#808080",gray110:"#737373",gray120:"#666666",gray130:"#5d5d5d",gray140:"#525252",gray150:"#474747",gray160:"#383838",gray170:"#333333",gray180:"#262626",gray190:"#212121",gray200:"#171717",blue10:"#eaf2f6",blue20:"#d5e5ed",blue40:"#abcbdb",blue50:"#abcbdb",blue60:"#82b0c9",blue70:"#6ca3c0",blue80:"#5897b8",blue90:"#4289ad",blue100:"#2e7ca5",blue140:"#25607f",blue170:"#143c50",purple80:"#b46ab4",purple140:"#954b95",red100:"#b90835",signalBlue20:"#eaf2f6",signalBlue140:"#0066cc",signalGreen20:"#d5f2d9",signalGreen140:"#008d3c",signalRed20:"#ffdfdf",signalRed140:"#e62323",signalRed160:"#b31b1b",signalRed180:"#801313",signalYellow20:"#fff8e1",signalYellow140:"#fdb813"},e={fontFamily:'"Inter", sans-serif',lineHeight01:1,lineHeight02:1.125,lineHeight03:1.25,lineHeight04:1.375,lineHeight05:1.5,lineHeight06:1.75,lineHeight07:2,lineHeight08:2.25,lineHeight09:2.5,size01:"0.75rem",size02:"0.875rem",size03:"1rem",size04:"1.125rem",size05:"1.25rem",size06:"1.5rem",size07:"1.75rem",size08:"2rem",size09:"2.25rem",size10:"2.625rem",weightThin:100,weightExtraLight:200,weightLight:300,weightRegular:400,weightMedium:500,weightSemiBold:600,weightBold:700,weightExtraBold:800,weightBlack:900},a={"01":"0.125rem","02":"0.25rem","03":"0.5rem","04":"0.75rem","05":"1rem","06":"1.5rem","07":"2rem","08":"2.5rem","09":"3rem",10:"4rem",11:"5rem",12:"6rem"},g={focus:"0 0 0 2px white, 0 0 0 4px black"},i={slow:"500ms",normal:"300ms",fast:"250ms"},t={sm:"(max-width: 767px)",md:"(min-width: 768px)",lg:"(min-width: 1200px)",xl:"(min-width: 1440px)",forcedColorsMode:"(forced-colors: active)",darkMode:"(prefers-color-scheme: dark)",prefersReducedMotion:"(prefers-reduced-motion: reduced)"},l={background01:`light-dark(${r.white}, ${r.gray30})`,backgroundHover01:`light-dark(${r.whiteHover}, ${r.gray190})`,backgroundInverse01:`light-dark(${r.gray30}, ${r.gray10})`,layer01:`light-dark(${r.gray10}, ${r.gray180})`,layerHover01:`light-dark(${r.gray20}, ${r.gray170})`,layerSelected01:`light-dark(${r.gray30}, ${r.gray160})`,layerSelectedHover01:`light-dark(${r.gray40}, ${r.gray20})`,layer02:`light-dark(${r.white}, ${r.gray160})`,layerHover02:`light-dark(${r.whiteHover}, ${r.gray20})`,layerSelected02:`light-dark(${r.gray30}, ${r.gray140})`,layerSelectedHover02:`light-dark(${r.gray40}, ${r.gray130})`,layerAccent01:`light-dark(${r.gray30}, ${r.gray160})`,layerAccentHover01:`light-dark(${r.gray40}, ${r.gray20})`,layerAccentSelected01:`light-dark(${r.gray50}, ${r.gray140})`,layerAccent02:`light-dark(${r.gray10}, ${r.gray180})`,layerAccentHover02:`light-dark(${r.gray20}, ${r.gray170})`,layerAccentSelected02:`light-dark(${r.gray30}, ${r.gray160})`,brandPrimary:`light-dark(${r.red100}, ${r.red100})`,borderStrong:`light-dark(${r.gray30}, ${r.gray10})`,borderMedium:`light-dark(${r.gray110}, ${r.gray90})`,borderSubtle:`light-dark(${r.gray50}, ${r.gray160})`,borderBrand:`light-dark(${r.blue170}, ${r.blue170})`,borderInvalid:`light-dark(${r.signalRed140}, ${r.signalRed140})`,borderDisabled:`light-dark(${r.gray50}, ${r.gray140})`,borderSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,borderInverse:`light-dark(${r.white}, ${r.gray180})`,field01:`light-dark(${r.gray10}, ${r.gray180})`,fieldHover01:`light-dark(${r.gray20}, ${r.gray170})`,fieldActive01:`light-dark(${r.gray30}, ${r.gray160})`,field02:`light-dark(${r.white}, ${r.gray160})`,fieldHover02:`light-dark(${r.whiteHover}, ${r.gray20})`,fieldActive02:`light-dark(${r.gray30}, ${r.gray140})`,fieldDisabled:`light-dark(${r.gray10}, ${r.gray180})`,fieldSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,iconPrimary:`light-dark(${r.gray30}, ${r.gray10})`,iconSecondary:`light-dark(${r.blue170}, ${r.blue170})`,iconInverse:`light-dark(${r.white}, ${r.black})`,iconOnColor:`light-dark(${r.white}, ${r.white})`,iconDanger:`light-dark(${r.signalRed140}, ${r.signalRed140})`,iconDisabled:`light-dark(${r.gray50}, ${r.gray140})`,iconSuccess:`light-dark(${r.signalGreen140}, ${r.signalGreen140})`,iconInfo:`light-dark(${r.signalBlue140}, ${r.signalBlue140})`,iconWarning:`light-dark(${r.signalRed140}, ${r.signalRed140})`,iconImportant:`light-dark(${r.signalYellow140}, ${r.signalYellow140})`,linkEnabled:`light-dark(${r.blue100}, ${r.blue90})`,linkHover:`light-dark(${r.blue170}, ${r.blue80})`,linkPressed:`light-dark(${r.gray200}, ${r.blue60})`,linkVisited:`light-dark(${r.purple140}, ${r.purple80})`,notificationBorderSuccess:`light-dark(${r.signalGreen140}, ${r.signalGreen140})`,notificationBorderInfo:`light-dark(${r.signalBlue140}, ${r.signalBlue140})`,notificationBorderImportant:`light-dark(${r.signalYellow140}, ${r.signalYellow140})`,notificationBorderWarning:`light-dark(${r.signalRed140}, ${r.signalRed140})`,notificationBackgroundSuccess:`light-dark(${r.signalGreen20}, ${r.gray10})`,notificationBackgroundInfo:`light-dark(${r.signalBlue20}, ${r.gray10})`,notificationBackgroundImportant:`light-dark(${r.signalYellow20}, ${r.gray10})`,notificationBackgroundWarning:`light-dark(${r.signalRed20}, ${r.gray10})`,textPrimary:`light-dark(${r.gray30}, ${r.gray10})`,textSecondary:`light-dark(${r.gray140}, ${r.gray70})`,textBrand:`light-dark(${r.blue170}, ${r.gray10})`,textOnColor:`light-dark(${r.white}, ${r.white})`,textInverse:`light-dark(${r.white}, ${r.black})`,textSubtle:`light-dark(${r.gray90}, ${r.gray90})`,textDisabled:`light-dark(${r.gray50}, ${r.gray140})`,textInvalid:`light-dark(${r.signalRed140}, ${r.signalRed140})`,textPlaceholder:`light-dark(${r.gray70}, ${r.gray140})`,buttonBackgroundPrimary:`light-dark(${r.blue170}, ${r.blue100})`,buttonBackgroundPrimaryHover:`light-dark(${r.blue140}, ${r.blue140})`,buttonBackgroundPrimaryActive:`light-dark(${r.blue100}, ${r.blue170})`,buttonBackgroundSecondary:`light-dark(${r.white}, ${r.gray30})`,buttonBackgroundSecondaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundSecondaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundTertiaryHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundTertiaryActive:`light-dark(${r.gray30}, ${r.gray180})`,buttonBackgroundDanger:`light-dark(${r.signalRed140}, ${r.signalRed140})`,buttonBackgroundDangerHover:`light-dark(${r.signalRed160}, ${r.signalRed160})`,buttonBackgroundDangerActive:`light-dark(${r.signalRed180}, ${r.signalRed180})`,buttonBackgroundDisabled:`light-dark(${r.gray10}, ${r.gray180})`,buttonBackgroundSkeleton:`light-dark(${r.gray10}, ${r.gray180})`,buttonBackgroundGhostHover:`light-dark(${r.whiteHover}, ${r.gray190})`,buttonBackgroundGhostActive:`light-dark(${r.gray30}, ${r.gray190})`,buttonBorderPrimary:`light-dark(${r.blue170}, ${r.gray10})`,logoPrimary:`light-dark(${r.red100}, ${r.white})`},d=Object.freeze(Object.defineProperty({__proto__:null,baseColors:r,breakpoints:t,semantic:l,spacing:a,states:g,transitions:i,typography:e},Symbol.toStringTag,{value:"Module"}));exports.baseColors=r;exports.breakpoints=t;exports.semantic=l;exports.spacing=a;exports.states=g;exports.tokens=d;exports.transitions=i;exports.typography=e;
|
package/tokens-BskyMDHv.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e={white:"#ffffff",black:"#000000",gray10:"#f2f2f2",gray20:"#e6e6e6",gray30:"#d9d9d9",gray40:"#cccccc",gray50:"#bfbfbf",gray60:"#b3b3b3",gray70:"#a6a6a6",gray80:"#999999",gray90:"#8c8c8c",gray100:"#808080",gray130:"#5d5d5d",gray150:"#1f1f1f",red10:"#f7e9e7",red20:"#f1d4d1",red30:"#e9beba",red40:"#e2a8a4",red50:"#d9918e",red60:"#d37a7a",red70:"#cc6467",red80:"#c54c56",red90:"#be3345",red100:"#b90835",red130:"#8b1327",red150:"#641018",blue10:"#eaf2f6",blue20:"#d5e5ed",blue30:"#c0d7e4",blue40:"#abcbdb",blue50:"#94bcd1",blue60:"#82b0c9",blue70:"#6ca3c0",blue80:"#5897b8",blue90:"#4289ad",blue100:"#2e7ca5",blue130:"#25607f",blue150:"#143c50"},o={outline:"#303030",primaryBackground:e.blue150,primaryText:"#303030",primaryHover:e.blue130,primaryFocus:e.black,primaryActive:"#4289ae",secondaryBackground:e.gray130,secondaryText:e.white,secondaryHover:"#303030",secondaryActive:"#303030"},i={inputText:e.gray150},r={signalGreen10:"#d5f2d9",signalGreen100:"#008d3c",signalBlue10:e.blue10,signalBlue100:"#0066cc",signalYellow10:"#fff8e1",signalYellow100:"#f1c21b",signalRed10:"#ffdfdf",signalRed100:"#e62323",signalRed130:"#b31b1b",signalRed150:"#801313"},a={sRadius:" 0.125rem",mRadius:" 0.25rem"},t={xsWidth:" 0.0625rem",sWidth:" 0.125rem",mWidth:" 0.25rem"},d={lightWeight:"300",regularWeight:"400",mediumWeight:"500",semiBoldWeight:"600",boldWeight:"700",blackWeight:"900"},n={desktopSize:"1rem",mobileSize:"1rem",largeSize:"1.5rem",inputNormalSize:"0.875rem",inputMessageSize:"0.75rem",inputLabelSize:"1rem",inputDescriptionSize:"0.875rem"},s={logoPrimary:e.red100,logoSecondary:e.white,textPrimary:e.gray150,textSecondary:e.white,textTertiary:e.red100,link:e.blue130,linkVisited:"#663366",backgroundPrimary:e.white,backgroundSecondary:e.gray10,backgroundFooter1:e.red100,backgroundFooter2:e.red130,backgroundInfo:e.blue10,backgroundImportant:r.signalYellow10,borderPrimary:e.black,borderSecondary:e.gray60,borderFocusOuter:e.black,borderFocusInner:e.white,iconPrimary:e.black,iconInverted:e.white},c={slowTransition:"500ms",normalTransition:"300ms",fastTransition:"250ms"},l={smBreakpoint:"(max-width: 767px)",mdBreakpoint:"(min-width: 768px)",lgBreakpoint:"(min-width: 1200px)",xlBreakpoint:"(min-width: 1440px)"},b={forcedColorsMode:"(forced-colors: active)",prefersReducedMotion:"(prefers-reduced-motion: reduced)"},g={display:'"Inter", sans-serif'},u={focus:"0 0 0 2px white, 0 0 0 4px black"},m=Object.freeze(Object.defineProperty({__proto__:null,accessibility:b,baseColors:e,borderRadius:a,borderWidths:t,boxShadow:u,breakpoints:l,buttonColors:o,font:g,fontSizes:n,fontWeights:d,inputColor:i,midasColors:s,midasTransitions:c,signalColors:r},Symbol.toStringTag,{value:"Module"}));exports.accessibility=b;exports.baseColors=e;exports.borderRadius=a;exports.borderWidths=t;exports.boxShadow=u;exports.breakpoints=l;exports.buttonColors=o;exports.font=g;exports.fontSizes=n;exports.fontWeights=d;exports.inputColor=i;exports.midasColors=s;exports.midasTransitions=c;exports.signalColors=r;exports.tokens=m;
|