@dnanpm/ui-components 0.0.5 → 0.2.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 +11 -42
- package/dist/components/Accordion/Accordion.cjs +32 -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 +32 -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 +72 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.css +73 -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 +72 -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 +42 -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/Button/Button.cjs +104 -0
- package/dist/components/Button/Button.cjs.map +1 -0
- package/dist/components/Button/Button.css +182 -0
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +104 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/Button.module.css.cjs +24 -0
- package/dist/components/Button/Button.module.css.cjs.map +1 -0
- package/dist/components/Button/Button.module.css.js +24 -0
- package/dist/components/Button/Button.module.css.js.map +1 -0
- package/dist/components/Button/Button.types.d.ts +68 -35
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/ColorScheme/ColorScheme.cjs +9 -0
- package/dist/components/ColorScheme/ColorScheme.cjs.map +1 -0
- package/dist/components/ColorScheme/ColorScheme.d.ts +3 -0
- package/dist/components/ColorScheme/ColorScheme.d.ts.map +1 -0
- package/dist/components/ColorScheme/ColorScheme.js +9 -0
- package/dist/components/ColorScheme/ColorScheme.js.map +1 -0
- package/dist/components/ColorScheme/ColorScheme.types.d.ts +10 -0
- package/dist/components/ColorScheme/ColorScheme.types.d.ts.map +1 -0
- package/dist/components/ColorScheme/index.d.ts +3 -0
- package/dist/components/ColorScheme/index.d.ts.map +1 -0
- package/dist/components/Label/Label.cjs +18 -0
- package/dist/components/Label/Label.cjs.map +1 -0
- package/dist/components/Label/Label.css +38 -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 +18 -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 +24 -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 +57 -0
- package/dist/components/Notification/Notification.cjs.map +1 -0
- package/dist/components/Notification/Notification.css +90 -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 +57 -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/components/Spinner/Spinner.cjs +62 -0
- package/dist/components/Spinner/Spinner.cjs.map +1 -0
- package/dist/components/Spinner/Spinner.css +116 -0
- package/dist/components/Spinner/Spinner.d.ts +3 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.js +62 -0
- package/dist/components/Spinner/Spinner.js.map +1 -0
- package/dist/components/Spinner/Spinner.module.css.cjs +26 -0
- package/dist/components/Spinner/Spinner.module.css.cjs.map +1 -0
- package/dist/components/Spinner/Spinner.module.css.js +26 -0
- package/dist/components/Spinner/Spinner.module.css.js.map +1 -0
- package/dist/components/Spinner/Spinner.types.d.ts +41 -0
- package/dist/components/Spinner/Spinner.types.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +3 -0
- package/dist/components/{Tooltip → Spinner}/index.d.ts.map +1 -1
- package/dist/font-definitions.css +61 -0
- package/dist/index.cjs +19 -10027
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +15 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -10008
- 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 +80 -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 +327 -466
- 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 +11 -9
- 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/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/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_4gnft_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_4gnft_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_4gnft_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_4gnft_6,
|
|
22
|
+
._elevationHigh_4gnft_11,
|
|
23
|
+
._elevationExtraHigh_4gnft_16 {
|
|
24
|
+
border: var(--borderwidth-semantic-xs) solid var(--color-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_4gnft_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,80 @@
|
|
|
1
|
+
@layer dna-design-system {._focusable_ikczm_1 {
|
|
2
|
+
/* Marker class for shared focus treatment */
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
._focusable_ikczm_1:focus {
|
|
6
|
+
outline-color: transparent;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
._focusable_ikczm_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(--color-semantic-utility-focus-soft),
|
|
15
|
+
0 0 0 4px var(--color-semantic-utility-focus-strong);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (forced-colors: active) {
|
|
19
|
+
._focusable_ikczm_1:focus-visible {
|
|
20
|
+
outline-color: Highlight;
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
._focusableInset_ikczm_25 {
|
|
26
|
+
/* Marker class for inset focus treatment (ring stays inside the element boundary) */
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
._focusableInset_ikczm_25:focus {
|
|
30
|
+
outline-color: transparent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
._focusableInset_ikczm_25:focus-visible {
|
|
34
|
+
outline: 2px solid transparent;
|
|
35
|
+
box-shadow:
|
|
36
|
+
inset 0 0 0 2px var(--color-semantic-utility-focus-strong),
|
|
37
|
+
inset 0 0 0 4px var(--color-semantic-utility-focus-soft);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@media (forced-colors: active) {
|
|
41
|
+
._focusableInset_ikczm_25:focus-visible {
|
|
42
|
+
outline-color: Highlight;
|
|
43
|
+
box-shadow: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
|
|
48
|
+
._focusable_ikczm_1:focus-visible {
|
|
49
|
+
box-shadow:
|
|
50
|
+
0 0 0 2px var(--color-semantic-utility-focus-strong),
|
|
51
|
+
0 0 0 4px var(--color-semantic-utility-focus-soft);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
._focusableInset_ikczm_25:focus-visible {
|
|
55
|
+
box-shadow:
|
|
56
|
+
inset 0 0 0 2px var(--color-semantic-utility-focus-soft),
|
|
57
|
+
inset 0 0 0 4px var(--color-semantic-utility-focus-strong);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (forced-colors: active) {
|
|
61
|
+
._focusable_ikczm_1:focus-visible,
|
|
62
|
+
._focusableInset_ikczm_25:focus-visible {
|
|
63
|
+
box-shadow: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
._focusClipGuard_ikczm_68 {
|
|
69
|
+
/*
|
|
70
|
+
* Prevents focus rings from being clipped when the container uses overflow: hidden.
|
|
71
|
+
*
|
|
72
|
+
* Usage:
|
|
73
|
+
* - Apply this class to the clipping container.
|
|
74
|
+
* - Override --focus-clip-guard-bleed-inline when a component needs a custom bleed amount.
|
|
75
|
+
*/
|
|
76
|
+
--focus-clip-guard-bleed-inline: var(--spacing-ui-xxs);
|
|
77
|
+
margin-inline: calc(var(--focus-clip-guard-bleed-inline) * -1);
|
|
78
|
+
padding-inline: var(--focus-clip-guard-bleed-inline);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -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_ikczm_1";
|
|
5
|
+
const focusableInset = "_focusableInset_ikczm_25";
|
|
6
|
+
const focusClipGuard = "_focusClipGuard_ikczm_68";
|
|
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_ikczm_1";
|
|
3
|
+
const focusableInset = "_focusableInset_ikczm_25";
|
|
4
|
+
const focusClipGuard = "_focusClipGuard_ikczm_68";
|
|
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":";;;;"}
|