@dnanpm/ui-components 0.0.5 → 0.1.0
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/README.md +10 -41
- package/dist/components/Accordion/Accordion.cjs +26 -0
- package/dist/components/Accordion/Accordion.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.css +19 -0
- package/dist/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.js +26 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/Accordion.module.css.cjs +12 -0
- package/dist/components/Accordion/Accordion.module.css.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.module.css.js +12 -0
- package/dist/components/Accordion/Accordion.module.css.js.map +1 -0
- package/dist/components/Accordion/Accordion.types.d.ts +21 -0
- package/dist/components/Accordion/Accordion.types.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.utils.cjs +8 -0
- package/dist/components/Accordion/Accordion.utils.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.utils.d.ts +8 -0
- package/dist/components/Accordion/Accordion.utils.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.utils.js +8 -0
- package/dist/components/Accordion/Accordion.utils.js.map +1 -0
- package/dist/components/Accordion/index.d.ts +3 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/AccordionItem/AccordionItem.cjs +57 -0
- package/dist/components/AccordionItem/AccordionItem.cjs.map +1 -0
- package/dist/components/AccordionItem/AccordionItem.css +128 -0
- package/dist/components/AccordionItem/AccordionItem.d.ts +3 -0
- package/dist/components/AccordionItem/AccordionItem.d.ts.map +1 -0
- package/dist/components/AccordionItem/AccordionItem.js +57 -0
- package/dist/components/AccordionItem/AccordionItem.js.map +1 -0
- package/dist/components/AccordionItem/AccordionItem.module.css.cjs +17 -0
- package/dist/components/AccordionItem/AccordionItem.module.css.cjs.map +1 -0
- package/dist/components/AccordionItem/AccordionItem.module.css.js +18 -0
- package/dist/components/AccordionItem/AccordionItem.module.css.js.map +1 -0
- package/dist/components/AccordionItem/AccordionItem.types.d.ts +32 -0
- package/dist/components/AccordionItem/AccordionItem.types.d.ts.map +1 -0
- package/dist/components/AccordionItem/index.d.ts +3 -0
- package/dist/components/AccordionItem/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +73 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.css +72 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +73 -0
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +25 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +25 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +46 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Label/Label.cjs +20 -0
- package/dist/components/Label/Label.cjs.map +1 -0
- package/dist/components/Label/Label.css +40 -0
- package/dist/components/Label/Label.d.ts +3 -0
- package/dist/components/Label/Label.d.ts.map +1 -0
- package/dist/components/Label/Label.js +20 -0
- package/dist/components/Label/Label.js.map +1 -0
- package/dist/components/Label/Label.module.css.cjs +16 -0
- package/dist/components/Label/Label.module.css.cjs.map +1 -0
- package/dist/components/Label/Label.module.css.js +16 -0
- package/dist/components/Label/Label.module.css.js.map +1 -0
- package/dist/components/Label/Label.types.d.ts +28 -0
- package/dist/components/Label/Label.types.d.ts.map +1 -0
- package/dist/components/Label/index.d.ts +3 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/Notification/Notification.cjs +58 -0
- package/dist/components/Notification/Notification.cjs.map +1 -0
- package/dist/components/Notification/Notification.css +91 -0
- package/dist/components/Notification/Notification.d.ts +3 -0
- package/dist/components/Notification/Notification.d.ts.map +1 -0
- package/dist/components/Notification/Notification.js +58 -0
- package/dist/components/Notification/Notification.js.map +1 -0
- package/dist/components/Notification/Notification.module.css.cjs +24 -0
- package/dist/components/Notification/Notification.module.css.cjs.map +1 -0
- package/dist/components/Notification/Notification.module.css.js +24 -0
- package/dist/components/Notification/Notification.module.css.js.map +1 -0
- package/dist/components/Notification/Notification.types.d.ts +40 -0
- package/dist/components/Notification/Notification.types.d.ts.map +1 -0
- package/dist/components/Notification/index.d.ts +3 -0
- package/dist/components/Notification/index.d.ts.map +1 -0
- package/dist/font-definitions.css +61 -0
- package/dist/index.cjs +13 -10027
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -10009
- package/dist/index.js.map +1 -1
- package/dist/styles/utils/elevation.css +28 -0
- package/dist/styles/utils/elevation.module.css.cjs +10 -0
- package/dist/styles/utils/elevation.module.css.cjs.map +1 -0
- package/dist/styles/utils/elevation.module.css.js +10 -0
- package/dist/styles/utils/elevation.module.css.js.map +1 -0
- package/dist/styles/utils/focus.css +59 -0
- package/dist/styles/utils/focus.module.css.cjs +16 -0
- package/dist/styles/utils/focus.module.css.cjs.map +1 -0
- package/dist/styles/utils/focus.module.css.js +16 -0
- package/dist/styles/utils/focus.module.css.js.map +1 -0
- package/dist/styles/utils/text-decoration.css +7 -0
- package/dist/styles/utils/text-decoration.module.css.cjs +10 -0
- package/dist/styles/utils/text-decoration.module.css.cjs.map +1 -0
- package/dist/styles/utils/text-decoration.module.css.js +10 -0
- package/dist/styles/utils/text-decoration.module.css.js.map +1 -0
- package/dist/styles.css +49 -347
- package/dist/utils/cn/cn.cjs +8 -0
- package/dist/utils/cn/cn.cjs.map +1 -0
- package/dist/utils/cn/cn.js +8 -0
- package/dist/utils/cn/cn.js.map +1 -0
- package/package.json +9 -7
- package/dist/components/Box/Box.d.ts +0 -2
- package/dist/components/Box/Box.d.ts.map +0 -1
- package/dist/components/Box/Box.types.d.ts +0 -24
- package/dist/components/Box/Box.types.d.ts.map +0 -1
- package/dist/components/Box/index.d.ts +0 -3
- package/dist/components/Box/index.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts +0 -3
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.types.d.ts +0 -51
- package/dist/components/Button/Button.types.d.ts.map +0 -1
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Button/index.d.ts.map +0 -1
- package/dist/components/Dialog/Dialog.d.ts +0 -3
- package/dist/components/Dialog/Dialog.d.ts.map +0 -1
- package/dist/components/Dialog/Dialog.types.d.ts +0 -45
- package/dist/components/Dialog/Dialog.types.d.ts.map +0 -1
- package/dist/components/Dialog/index.d.ts +0 -3
- package/dist/components/Dialog/index.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
- package/dist/components/Tooltip/Tooltip.types.d.ts +0 -39
- package/dist/components/Tooltip/Tooltip.types.d.ts.map +0 -1
- package/dist/components/Tooltip/index.d.ts +0 -3
- package/dist/components/Tooltip/index.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -5
- package/dist/components/index.d.ts.map +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@layer dna-design-system {/*
|
|
2
|
+
* TODO: Replace local variables (_elevation-semantic-low, high and extra-high)
|
|
3
|
+
* with official design tokens once elevation tokens are added to the design token set
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
._elevationLow_1rmn9_6 {
|
|
7
|
+
--_elevation-semantic-low: 0px 2px 16px 0px rgba(18, 18, 18, 0.06);
|
|
8
|
+
--_elevation-style: var(--_elevation-semantic-low);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
._elevationHigh_1rmn9_11 {
|
|
12
|
+
--_elevation-semantic-high: 0px 4px 24px 0px rgba(18, 18, 18, 0.08);
|
|
13
|
+
--_elevation-style: var(--_elevation-semantic-high);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
._elevationExtraHigh_1rmn9_16 {
|
|
17
|
+
--_elevation-semantic-extra-high: 0px 8px 64px 0px rgba(18, 18, 18, 0.16);
|
|
18
|
+
--_elevation-style: var(--_elevation-semantic-extra-high);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
._elevationLow_1rmn9_6,
|
|
22
|
+
._elevationHigh_1rmn9_11,
|
|
23
|
+
._elevationExtraHigh_1rmn9_16 {
|
|
24
|
+
border: var(--borderwidth-semantic-xs) solid var(--colors-semantic-border-neutral-base);
|
|
25
|
+
box-shadow: var(--_elevation-style);
|
|
26
|
+
border-radius: var(--radius-semantic-md);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
require('./elevation.css');
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
+
const elevationLow = "_elevationLow_1rmn9_6";
|
|
5
|
+
const elevationStyles = {
|
|
6
|
+
elevationLow
|
|
7
|
+
};
|
|
8
|
+
exports.default = elevationStyles;
|
|
9
|
+
exports.elevationLow = elevationLow;
|
|
10
|
+
//# sourceMappingURL=elevation.module.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elevation.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@layer dna-design-system {._focusable_1cr46_1 {
|
|
2
|
+
/* Marker class for shared focus treatment */
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
._focusable_1cr46_1:focus {
|
|
6
|
+
outline-color: transparent;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
._focusable_1cr46_1:focus-visible {
|
|
10
|
+
/* Transparent outline ensures a visible ring fallback in forced colors. */
|
|
11
|
+
outline: 2px solid transparent;
|
|
12
|
+
outline-offset: 2px;
|
|
13
|
+
box-shadow:
|
|
14
|
+
0 0 0 2px var(--colors-semantic-utility-focus-soft),
|
|
15
|
+
0 0 0 4px var(--colors-semantic-utility-focus-strong);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (forced-colors: active) {
|
|
19
|
+
._focusable_1cr46_1:focus-visible {
|
|
20
|
+
outline-color: Highlight;
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
._focusableInset_1cr46_25 {
|
|
26
|
+
/* Marker class for inset focus treatment (ring stays inside the element boundary) */
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
._focusableInset_1cr46_25:focus {
|
|
30
|
+
outline-color: transparent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
._focusableInset_1cr46_25:focus-visible {
|
|
34
|
+
outline: 2px solid transparent;
|
|
35
|
+
box-shadow:
|
|
36
|
+
inset 0 0 0 2px var(--colors-semantic-utility-focus-strong),
|
|
37
|
+
inset 0 0 0 4px var(--colors-semantic-utility-focus-soft);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (forced-colors: active) {
|
|
41
|
+
._focusableInset_1cr46_25:focus-visible {
|
|
42
|
+
outline-color: Highlight;
|
|
43
|
+
box-shadow: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
._focusClipGuard_1cr46_47 {
|
|
48
|
+
/*
|
|
49
|
+
* Prevents focus rings from being clipped when the container uses overflow: hidden.
|
|
50
|
+
*
|
|
51
|
+
* Usage:
|
|
52
|
+
* - Apply this class to the clipping container.
|
|
53
|
+
* - Override --focus-clip-guard-bleed-inline when a component needs a custom bleed amount.
|
|
54
|
+
*/
|
|
55
|
+
--focus-clip-guard-bleed-inline: var(--spacing-ui-xxs);
|
|
56
|
+
margin-inline: calc(var(--focus-clip-guard-bleed-inline) * -1);
|
|
57
|
+
padding-inline: var(--focus-clip-guard-bleed-inline);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
require('./focus.css');
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
+
const focusable = "_focusable_1cr46_1";
|
|
5
|
+
const focusableInset = "_focusableInset_1cr46_25";
|
|
6
|
+
const focusClipGuard = "_focusClipGuard_1cr46_47";
|
|
7
|
+
const focusStyles = {
|
|
8
|
+
focusable,
|
|
9
|
+
focusableInset,
|
|
10
|
+
focusClipGuard
|
|
11
|
+
};
|
|
12
|
+
exports.default = focusStyles;
|
|
13
|
+
exports.focusClipGuard = focusClipGuard;
|
|
14
|
+
exports.focusable = focusable;
|
|
15
|
+
exports.focusableInset = focusableInset;
|
|
16
|
+
//# sourceMappingURL=focus.module.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import './focus.css';
|
|
2
|
+
const focusable = "_focusable_1cr46_1";
|
|
3
|
+
const focusableInset = "_focusableInset_1cr46_25";
|
|
4
|
+
const focusClipGuard = "_focusClipGuard_1cr46_47";
|
|
5
|
+
const focusStyles = {
|
|
6
|
+
focusable,
|
|
7
|
+
focusableInset,
|
|
8
|
+
focusClipGuard
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
focusStyles as default,
|
|
12
|
+
focusClipGuard,
|
|
13
|
+
focusable,
|
|
14
|
+
focusableInset
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=focus.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
require('./text-decoration.css');
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
+
const underlineLink = "_underlineLink_1nw3t_1";
|
|
5
|
+
const textDecorationStyles = {
|
|
6
|
+
underlineLink
|
|
7
|
+
};
|
|
8
|
+
exports.default = textDecorationStyles;
|
|
9
|
+
exports.underlineLink = underlineLink;
|
|
10
|
+
//# sourceMappingURL=text-decoration.module.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-decoration.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-decoration.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@layer dna-design-system {
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Do not edit directly, this file was auto-generated.
|
|
3
5
|
*/
|
|
@@ -181,6 +183,15 @@
|
|
|
181
183
|
--borderwidth-primitive-size5: 5px;
|
|
182
184
|
--borderwidth-primitive-size6: 6px;
|
|
183
185
|
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@layer dna-design-system {
|
|
189
|
+
|
|
190
|
+
*,
|
|
191
|
+
*::before,
|
|
192
|
+
*::after {
|
|
193
|
+
box-sizing: border-box;
|
|
194
|
+
}
|
|
184
195
|
|
|
185
196
|
html {
|
|
186
197
|
font-synthesis: none;
|
|
@@ -191,366 +202,57 @@ html {
|
|
|
191
202
|
|
|
192
203
|
scroll-behavior: smooth;
|
|
193
204
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
padding: var(--spacing-ui-md, 1rem);
|
|
197
|
-
border-radius: var(--radius-semantic-md, 0.5rem);
|
|
198
|
-
background-color: var(--colors-primitive-neutral-0, #ffffff);
|
|
199
|
-
transition: box-shadow 0.2s ease-in-out;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/* Elevation Variants */
|
|
203
|
-
._box--none_1wdiz_10 {
|
|
204
|
-
box-shadow: none;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
._box--low_1wdiz_14 {
|
|
208
|
-
box-shadow: 0 2px 16px rgba(18, 18, 18, 0.06);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
._box--high_1wdiz_18 {
|
|
212
|
-
box-shadow: 0 6px 24px rgba(18, 18, 18, 0.08);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
._box--extraHigh_1wdiz_22 {
|
|
216
|
-
box-shadow: 0 8px 64px rgba(18, 18, 18, 0.16);
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Button Component Styles
|
|
220
|
-
*
|
|
221
|
-
* Design tokens are consumed via CSS custom properties (variables).
|
|
222
|
-
* These variables come from @dnanpm/design-tokens package.
|
|
223
|
-
*
|
|
224
|
-
* Examples:
|
|
225
|
-
* - Colors: var(--colors-primitive-pink-500)
|
|
226
|
-
* - Spacing: var(--spacing-ui-md)
|
|
227
|
-
* - Border radius: var(--radius-semantic-md)
|
|
228
|
-
*
|
|
229
|
-
* Fallback values are defined in src/styles/base.css
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
|
-
._button_1p878_15 {
|
|
233
|
-
display: inline-flex;
|
|
234
|
-
align-items: center;
|
|
235
|
-
justify-content: center;
|
|
236
|
-
height: 2.5rem;
|
|
237
|
-
padding: 0 var(--spacing-ui-md, 1rem);
|
|
238
|
-
font-family:
|
|
239
|
-
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
|
|
240
|
-
sans-serif;
|
|
241
|
-
font-size: 0.875rem;
|
|
242
|
-
font-weight: 500;
|
|
243
|
-
border-radius: var(--radius-semantic-md, 0.5rem);
|
|
244
|
-
border: 1px solid transparent;
|
|
245
|
-
cursor: pointer;
|
|
246
|
-
transition: all 0.15s ease-in-out;
|
|
247
|
-
text-decoration: none;
|
|
248
|
-
white-space: nowrap;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
._button_1p878_15:focus-visible {
|
|
252
|
-
outline: 2px solid var(--colors-primitive-utility-focusstrong, #1d4ed8);
|
|
253
|
-
outline-offset: 2px;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
._button_1p878_15:disabled {
|
|
257
|
-
opacity: 0.5;
|
|
258
|
-
cursor: not-allowed;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/* Button Variants */
|
|
262
|
-
._button--primary_1p878_45 {
|
|
263
|
-
background-color: var(--colors-primitive-pink-500, #ec4899);
|
|
264
|
-
color: white;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
._button--primary_1p878_45:hover:not(:disabled) {
|
|
268
|
-
background-color: var(--colors-primitive-pink-600, #db2777);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
._button--primary_1p878_45:active:not(:disabled) {
|
|
272
|
-
background-color: var(--colors-primitive-pink-400, #f472b6);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
._button--secondary_1p878_58 {
|
|
276
|
-
background-color: var(--colors-primitive-neutral-100, #f5f5f5);
|
|
277
|
-
color: var(--colors-primitive-neutral-900, #171717);
|
|
278
|
-
border-color: var(--colors-primitive-neutral-300, #d4d4d4);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
._button--secondary_1p878_58:hover:not(:disabled) {
|
|
282
|
-
background-color: var(--colors-primitive-neutral-200, #e5e5e5);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
._button--secondary_1p878_58:active:not(:disabled) {
|
|
286
|
-
background-color: var(--colors-primitive-neutral-300, #d4d4d4);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
/* Size Variants */
|
|
290
|
-
._button--default_1p878_73 {
|
|
291
|
-
/* Default size (already set in base styles) */
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
._button--small_1p878_77 {
|
|
295
|
-
height: 2rem;
|
|
296
|
-
padding: 0 var(--spacing-ui-sm, 0.75rem);
|
|
297
|
-
font-size: 0.75rem;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/* Layout Modifiers */
|
|
301
|
-
._button--fullWidth_1p878_84 {
|
|
302
|
-
width: 100%;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
/* State Modifiers */
|
|
306
|
-
._button--loading_1p878_89 {
|
|
307
|
-
opacity: 0.7;
|
|
308
|
-
cursor: wait;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
._button--loading_1p878_89:hover {
|
|
312
|
-
/* Prevent hover effects when loading */
|
|
313
|
-
background-color: inherit;
|
|
314
|
-
}
|
|
315
|
-
._dialog__backdrop_p6ll3_1 {
|
|
316
|
-
position: fixed;
|
|
317
|
-
inset: 0;
|
|
318
|
-
min-height: 100dvh;
|
|
319
|
-
background: rgb(23 23 23 / 0.5);
|
|
320
|
-
backdrop-filter: blur(2px);
|
|
321
|
-
transition:
|
|
322
|
-
opacity 180ms ease,
|
|
323
|
-
backdrop-filter 180ms ease;
|
|
324
|
-
|
|
325
|
-
@supports (-webkit-touch-callout: none) {
|
|
326
|
-
position: absolute;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
._dialog__backdrop_p6ll3_1[data-starting-style],
|
|
331
|
-
._dialog__backdrop_p6ll3_1[data-ending-style] {
|
|
332
|
-
opacity: 0;
|
|
333
|
-
backdrop-filter: blur(0);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
._dialog__viewport_p6ll3_22 {
|
|
337
|
-
position: fixed;
|
|
338
|
-
inset: 0;
|
|
339
|
-
display: flex;
|
|
340
|
-
align-items: center;
|
|
341
|
-
justify-content: center;
|
|
342
|
-
padding: 1.5rem;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
._dialog__popup_p6ll3_31 {
|
|
346
|
-
box-sizing: border-box;
|
|
347
|
-
position: relative;
|
|
348
|
-
display: flex;
|
|
349
|
-
flex-direction: column;
|
|
350
|
-
width: min(100%, 36rem);
|
|
351
|
-
max-height: min(80vh, 44rem);
|
|
352
|
-
min-height: 0;
|
|
353
|
-
overflow: hidden;
|
|
354
|
-
border-radius: var(--radius-semantic-lg, 0.75rem);
|
|
355
|
-
background-color: var(--colors-primitive-neutral-0, #ffffff);
|
|
356
|
-
color: var(--colors-primitive-neutral-900, #171717);
|
|
357
|
-
outline: 1px solid var(--colors-primitive-neutral-200, #e5e5e5);
|
|
358
|
-
box-shadow:
|
|
359
|
-
0 24px 48px rgb(23 23 23 / 0.18),
|
|
360
|
-
0 12px 24px rgb(23 23 23 / 0.08);
|
|
361
|
-
transition:
|
|
362
|
-
opacity 180ms ease,
|
|
363
|
-
transform 180ms ease;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
._dialog__popup_p6ll3_31[data-starting-style],
|
|
367
|
-
._dialog__popup_p6ll3_31[data-ending-style] {
|
|
368
|
-
opacity: 0;
|
|
369
|
-
transform: scale(0.98) translateY(0.5rem);
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
._dialog__popup--sm_p6ll3_58 {
|
|
373
|
-
width: min(100%, 28rem);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
._dialog__popup--md_p6ll3_62 {
|
|
377
|
-
width: min(100%, 36rem);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
._dialog__popup--lg_p6ll3_66 {
|
|
381
|
-
width: min(100%, 44rem);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
._dialog__header_p6ll3_70 {
|
|
385
|
-
display: flex;
|
|
386
|
-
align-items: flex-start;
|
|
387
|
-
justify-content: space-between;
|
|
388
|
-
gap: 1rem;
|
|
389
|
-
padding: 1.5rem 1.5rem 0;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
._dialog__titleGroup_p6ll3_78 {
|
|
393
|
-
display: flex;
|
|
394
|
-
flex: 1 1 auto;
|
|
395
|
-
flex-direction: column;
|
|
396
|
-
gap: 0.5rem;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
._dialog__title_p6ll3_78 {
|
|
400
|
-
margin: 0;
|
|
401
|
-
font-family:
|
|
402
|
-
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
|
|
403
|
-
sans-serif;
|
|
404
|
-
font-size: 1.25rem;
|
|
405
|
-
font-weight: 600;
|
|
406
|
-
line-height: 1.75rem;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
._dialog__description_p6ll3_95 {
|
|
205
|
+
html,
|
|
206
|
+
body {
|
|
410
207
|
margin: 0;
|
|
411
|
-
|
|
412
|
-
font-size: 0.95rem;
|
|
413
|
-
line-height: 1.5rem;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
._dialog__close_p6ll3_102 {
|
|
417
|
-
display: inline-flex;
|
|
418
|
-
flex: 0 0 auto;
|
|
419
|
-
align-items: center;
|
|
420
|
-
justify-content: center;
|
|
421
|
-
width: 2.5rem;
|
|
422
|
-
height: 2.5rem;
|
|
423
|
-
border: 1px solid var(--colors-primitive-neutral-200, #e5e5e5);
|
|
424
|
-
border-radius: var(--radius-semantic-md, 0.5rem);
|
|
425
|
-
background-color: var(--colors-primitive-neutral-0, #ffffff);
|
|
426
|
-
color: var(--colors-primitive-neutral-600, #525252);
|
|
427
|
-
transition:
|
|
428
|
-
background-color 120ms ease,
|
|
429
|
-
color 120ms ease,
|
|
430
|
-
border-color 120ms ease;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
._dialog__close_p6ll3_102:focus-visible {
|
|
434
|
-
outline: 2px solid var(--colors-primitive-utility-focusstrong, #1d4ed8);
|
|
435
|
-
outline-offset: 2px;
|
|
208
|
+
padding: 0;
|
|
436
209
|
}
|
|
437
210
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
width: 1.125rem;
|
|
445
|
-
height: 1.125rem;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
._dialog__body_p6ll3_134 {
|
|
449
|
-
flex: 1 1 auto;
|
|
450
|
-
min-height: 0;
|
|
451
|
-
overflow: auto;
|
|
452
|
-
padding: 1.25rem 1.5rem;
|
|
453
|
-
color: var(--colors-primitive-neutral-700, #404040);
|
|
454
|
-
font-size: 0.95rem;
|
|
455
|
-
line-height: 1.6rem;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
._dialog__footer_p6ll3_144 {
|
|
459
|
-
display: flex;
|
|
460
|
-
flex-wrap: wrap;
|
|
461
|
-
justify-content: flex-end;
|
|
462
|
-
gap: 0.75rem;
|
|
463
|
-
padding: 0 1.5rem 1.5rem;
|
|
464
|
-
}
|
|
465
|
-
._tooltip__positioner_1h5uw_1 {
|
|
466
|
-
height: var(--positioner-height);
|
|
467
|
-
width: var(--positioner-width);
|
|
468
|
-
max-width: var(--available-width);
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
._tooltip_1h5uw_1 {
|
|
472
|
-
box-sizing: border-box;
|
|
473
|
-
display: inline-flex;
|
|
474
|
-
align-items: center;
|
|
475
|
-
min-height: 2.25rem;
|
|
476
|
-
max-width: min(20rem, calc(100vw - 1.5rem));
|
|
477
|
-
padding: 0.5rem 0.75rem;
|
|
478
|
-
border-radius: var(--radius-semantic-md, 0.5rem);
|
|
479
|
-
background-color: var(--colors-primitive-neutral-0, #ffffff);
|
|
480
|
-
color: var(--colors-primitive-neutral-900, #171717);
|
|
481
|
-
font-family:
|
|
482
|
-
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
|
|
483
|
-
sans-serif;
|
|
484
|
-
font-size: 0.8125rem;
|
|
485
|
-
line-height: 1.25rem;
|
|
486
|
-
transform-origin: var(--transform-origin);
|
|
487
|
-
transition:
|
|
488
|
-
opacity 150ms ease,
|
|
489
|
-
transform 150ms ease;
|
|
490
|
-
|
|
491
|
-
@media (prefers-color-scheme: light) {
|
|
492
|
-
outline: 1px solid var(--colors-primitive-neutral-200, #e5e5e5);
|
|
493
|
-
box-shadow:
|
|
494
|
-
0 12px 24px -12px rgb(23 23 23 / 0.22),
|
|
495
|
-
0 6px 12px -8px rgb(23 23 23 / 0.14);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
@media (prefers-color-scheme: dark) {
|
|
499
|
-
outline: 1px solid var(--colors-primitive-neutral-300, #d4d4d4);
|
|
500
|
-
outline-offset: -1px;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
._tooltip_1h5uw_1[data-starting-style],
|
|
505
|
-
._tooltip_1h5uw_1[data-ending-style] {
|
|
506
|
-
opacity: 0;
|
|
507
|
-
transform: scale(0.92);
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
._tooltip_1h5uw_1[data-instant] {
|
|
511
|
-
transition: none;
|
|
211
|
+
img,
|
|
212
|
+
picture,
|
|
213
|
+
svg,
|
|
214
|
+
video {
|
|
215
|
+
display: block;
|
|
216
|
+
max-width: 100%;
|
|
512
217
|
}
|
|
513
|
-
|
|
514
|
-
._tooltip__content_1h5uw_50 {
|
|
515
|
-
display: inline-flex;
|
|
516
|
-
align-items: center;
|
|
517
218
|
}
|
|
518
219
|
|
|
519
|
-
|
|
520
|
-
display: flex;
|
|
521
|
-
}
|
|
220
|
+
@layer dna-design-system {
|
|
522
221
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
222
|
+
:root {
|
|
223
|
+
/* Example variables for fonts, these will be replaced with actual design tokens */
|
|
224
|
+
--font-family-text: 'DNA Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
225
|
+
--font-family-heading: 'DNA Heading', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
527
226
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
227
|
+
--font-size-xxs: 0.625rem; /* 10px */
|
|
228
|
+
--font-size-xs: 0.75rem; /* 12px */
|
|
229
|
+
--font-size-sm: 0.875rem; /* 14px */
|
|
230
|
+
--font-size-default: 1rem;
|
|
231
|
+
--font-size-lg: 1.125rem; /* 18px */
|
|
232
|
+
--font-size-xl: 1.25rem; /* 20px */
|
|
531
233
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
234
|
+
--font-weight-regular: 400;
|
|
235
|
+
--font-weight-medium: 500;
|
|
236
|
+
--font-weight-semi-bold: 600;
|
|
237
|
+
--font-weight-bold: 700;
|
|
238
|
+
--font-weight-black: 900;
|
|
536
239
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
rotate: -90deg;
|
|
240
|
+
--line-height-default: 1.25;
|
|
241
|
+
--line-height-text: 1.5;
|
|
540
242
|
}
|
|
541
243
|
|
|
542
|
-
|
|
543
|
-
|
|
244
|
+
html {
|
|
245
|
+
font-family: var(--font-family-text);
|
|
246
|
+
font-size: var(--font-size-default);
|
|
247
|
+
line-height: var(--line-height-default);
|
|
544
248
|
}
|
|
545
249
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
250
|
+
h1,
|
|
251
|
+
h2,
|
|
252
|
+
h3,
|
|
253
|
+
h4,
|
|
254
|
+
h5,
|
|
255
|
+
h6 {
|
|
256
|
+
text-wrap: balance;
|
|
550
257
|
}
|
|
551
|
-
|
|
552
|
-
._tooltip__arrowInnerStroke_1h5uw_88 {
|
|
553
|
-
@media (prefers-color-scheme: dark) {
|
|
554
|
-
fill: var(--colors-primitive-neutral-300, #d4d4d4);
|
|
555
|
-
}
|
|
556
258
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.cjs","sources":["../../../src/utils/cn/cn.ts"],"sourcesContent":["import clsx from 'clsx';\n\nexport type CnDictionary = Record<string, boolean | null | undefined>;\n\nexport type CnInput = string | false | null | undefined | CnDictionary | ReadonlyArray<CnInput>;\n\n/**\n * Composes CSS Module class names, optional consumer className values, and conditional maps.\n *\n * Supported inputs:\n * - string class names\n * - object maps where truthy values include the key\n * - nested arrays of supported inputs\n * - falsy values, which are ignored\n *\n * Prefer this utility over direct clsx imports so class name composition stays consistent across\n * the package and can be updated in one place.\n */\nexport function cn(...inputs: CnInput[]): string {\n return clsx(...inputs);\n}\n"],"names":[],"mappings":";;;AAkBO,SAAS,MAAM,QAA2B;AAC7C,SAAO,KAAK,GAAG,MAAM;AACzB;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cn.js","sources":["../../../src/utils/cn/cn.ts"],"sourcesContent":["import clsx from 'clsx';\n\nexport type CnDictionary = Record<string, boolean | null | undefined>;\n\nexport type CnInput = string | false | null | undefined | CnDictionary | ReadonlyArray<CnInput>;\n\n/**\n * Composes CSS Module class names, optional consumer className values, and conditional maps.\n *\n * Supported inputs:\n * - string class names\n * - object maps where truthy values include the key\n * - nested arrays of supported inputs\n * - falsy values, which are ignored\n *\n * Prefer this utility over direct clsx imports so class name composition stays consistent across\n * the package and can be updated in one place.\n */\nexport function cn(...inputs: CnInput[]): string {\n return clsx(...inputs);\n}\n"],"names":[],"mappings":";AAkBO,SAAS,MAAM,QAA2B;AAC7C,SAAO,KAAK,GAAG,MAAM;AACzB;"}
|