@dnanpm/ui-components 0.7.0 → 0.8.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/dist/components/Breadcrumb/Breadcrumb.css +9 -9
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +6 -6
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +6 -6
- package/dist/components/Button/Button.css +32 -30
- package/dist/components/Button/Button.module.css.cjs +11 -11
- package/dist/components/Button/Button.module.css.js +11 -11
- package/dist/components/ButtonCard/ButtonCard.cjs +105 -0
- package/dist/components/ButtonCard/ButtonCard.cjs.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.css +167 -0
- package/dist/components/ButtonCard/ButtonCard.d.ts +3 -0
- package/dist/components/ButtonCard/ButtonCard.d.ts.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.js +105 -0
- package/dist/components/ButtonCard/ButtonCard.js.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.module.css.cjs +18 -0
- package/dist/components/ButtonCard/ButtonCard.module.css.cjs.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.module.css.js +19 -0
- package/dist/components/ButtonCard/ButtonCard.module.css.js.map +1 -0
- package/dist/components/ButtonCard/ButtonCard.types.d.ts +103 -0
- package/dist/components/ButtonCard/ButtonCard.types.d.ts.map +1 -0
- package/dist/components/ButtonCard/index.d.ts +3 -0
- package/dist/components/ButtonCard/index.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.cjs +101 -0
- package/dist/components/Drawer/Drawer.cjs.map +1 -0
- package/dist/components/Drawer/Drawer.css +219 -0
- package/dist/components/Drawer/Drawer.d.ts +3 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.js +101 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/Drawer/Drawer.module.css.cjs +37 -0
- package/dist/components/Drawer/Drawer.module.css.cjs.map +1 -0
- package/dist/components/Drawer/Drawer.module.css.js +37 -0
- package/dist/components/Drawer/Drawer.module.css.js.map +1 -0
- package/dist/components/Drawer/Drawer.types.d.ts +63 -0
- package/dist/components/Drawer/Drawer.types.d.ts.map +1 -0
- package/dist/components/Drawer/index.d.ts +3 -0
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/components/Footer/Footer.css +81 -74
- package/dist/components/Footer/Footer.module.css.cjs +39 -39
- package/dist/components/Footer/Footer.module.css.js +39 -39
- package/dist/components/FunctionButton/FunctionButton.cjs +34 -0
- package/dist/components/FunctionButton/FunctionButton.cjs.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.css +125 -0
- package/dist/components/FunctionButton/FunctionButton.d.ts +3 -0
- package/dist/components/FunctionButton/FunctionButton.d.ts.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.js +34 -0
- package/dist/components/FunctionButton/FunctionButton.js.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.module.css.cjs +11 -0
- package/dist/components/FunctionButton/FunctionButton.module.css.cjs.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.module.css.js +12 -0
- package/dist/components/FunctionButton/FunctionButton.module.css.js.map +1 -0
- package/dist/components/FunctionButton/FunctionButton.types.d.ts +21 -0
- package/dist/components/FunctionButton/FunctionButton.types.d.ts.map +1 -0
- package/dist/components/FunctionButton/index.d.ts +3 -0
- package/dist/components/FunctionButton/index.d.ts.map +1 -0
- package/dist/components/IconButton/IconButton.css +31 -32
- package/dist/components/IconButton/IconButton.module.css.cjs +9 -9
- package/dist/components/IconButton/IconButton.module.css.js +9 -9
- package/dist/components/MainNavigation/MainNavigation.cjs +10 -26
- package/dist/components/MainNavigation/MainNavigation.cjs.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.css +158 -156
- package/dist/components/MainNavigation/MainNavigation.d.ts.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.js +10 -26
- package/dist/components/MainNavigation/MainNavigation.js.map +1 -1
- package/dist/components/MainNavigation/MainNavigation.module.css.cjs +68 -68
- package/dist/components/MainNavigation/MainNavigation.module.css.js +68 -68
- package/dist/components/Modal/Modal.cjs +101 -0
- package/dist/components/Modal/Modal.cjs.map +1 -0
- package/dist/components/Modal/Modal.css +205 -0
- package/dist/components/Modal/Modal.d.ts +3 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.js +101 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/Modal.module.css.cjs +39 -0
- package/dist/components/Modal/Modal.module.css.cjs.map +1 -0
- package/dist/components/Modal/Modal.module.css.js +39 -0
- package/dist/components/Modal/Modal.module.css.js.map +1 -0
- package/dist/components/Modal/Modal.types.d.ts +62 -0
- package/dist/components/Modal/Modal.types.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Modal/useDialogDismissal.cjs +41 -0
- package/dist/components/Modal/useDialogDismissal.cjs.map +1 -0
- package/dist/components/Modal/useDialogDismissal.d.ts +17 -0
- package/dist/components/Modal/useDialogDismissal.d.ts.map +1 -0
- package/dist/components/Modal/useDialogDismissal.js +41 -0
- package/dist/components/Modal/useDialogDismissal.js.map +1 -0
- package/dist/components/Modal/useNativeDialog.cjs +126 -0
- package/dist/components/Modal/useNativeDialog.cjs.map +1 -0
- package/dist/components/Modal/useNativeDialog.d.ts +14 -0
- package/dist/components/Modal/useNativeDialog.d.ts.map +1 -0
- package/dist/components/Modal/useNativeDialog.js +126 -0
- package/dist/components/Modal/useNativeDialog.js.map +1 -0
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/utils/elevation.module.css.cjs +3 -0
- package/dist/styles/utils/elevation.module.css.cjs.map +1 -1
- package/dist/styles/utils/elevation.module.css.js +4 -1
- package/dist/styles/utils/elevation.module.css.js.map +1 -1
- package/dist/styles/utils/focus.css +21 -22
- package/dist/styles/utils/focus.module.css.cjs +3 -6
- package/dist/styles/utils/focus.module.css.cjs.map +1 -1
- package/dist/styles/utils/focus.module.css.js +4 -7
- package/dist/styles/utils/focus.module.css.js.map +1 -1
- package/dist/styles/utils/text-decoration.css +3 -2
- package/dist/styles/utils/text-decoration.module.css.cjs +2 -2
- package/dist/styles/utils/text-decoration.module.css.js +2 -2
- package/package.json +3 -3
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import './Footer.css';
|
|
2
|
-
const footer = "
|
|
3
|
-
const footer__inner = "
|
|
4
|
-
const footer__top = "
|
|
5
|
-
const footer__bottom = "
|
|
6
|
-
const footer__container = "
|
|
7
|
-
const footer__column = "
|
|
8
|
-
const footer__link = "
|
|
9
|
-
const footer__action = "
|
|
10
|
-
const footer__accordion = "
|
|
11
|
-
const footer__divider = "
|
|
12
|
-
const footer__meta = "
|
|
13
|
-
const footer__language = "
|
|
14
|
-
const footer__organization = "
|
|
15
|
-
const footer__copyright = "
|
|
16
|
-
const footer__apps = "
|
|
17
|
-
const footer__badges = "
|
|
18
|
-
const footer__badge = "
|
|
2
|
+
const footer = "_footer_1lum3_8";
|
|
3
|
+
const footer__inner = "_footer__inner_1lum3_31";
|
|
4
|
+
const footer__top = "_footer__top_1lum3_36";
|
|
5
|
+
const footer__bottom = "_footer__bottom_1lum3_37";
|
|
6
|
+
const footer__container = "_footer__container_1lum3_122";
|
|
7
|
+
const footer__column = "_footer__column_1lum3_156";
|
|
8
|
+
const footer__link = "_footer__link_1lum3_111";
|
|
9
|
+
const footer__action = "_footer__action_1lum3_191";
|
|
10
|
+
const footer__accordion = "_footer__accordion_1lum3_224";
|
|
11
|
+
const footer__divider = "_footer__divider_1lum3_235";
|
|
12
|
+
const footer__meta = "_footer__meta_1lum3_249";
|
|
13
|
+
const footer__language = "_footer__language_1lum3_276";
|
|
14
|
+
const footer__organization = "_footer__organization_1lum3_346";
|
|
15
|
+
const footer__copyright = "_footer__copyright_1lum3_407";
|
|
16
|
+
const footer__apps = "_footer__apps_1lum3_413";
|
|
17
|
+
const footer__badges = "_footer__badges_1lum3_431";
|
|
18
|
+
const footer__badge = "_footer__badge_1lum3_431";
|
|
19
19
|
const styles = {
|
|
20
20
|
footer,
|
|
21
21
|
footer__inner,
|
|
22
22
|
footer__top,
|
|
23
23
|
footer__bottom,
|
|
24
|
-
"footer__top-row": "_footer__top-
|
|
25
|
-
"footer__top-column": "_footer__top-
|
|
26
|
-
"footer__top-heading": "_footer__top-
|
|
27
|
-
"footer__top-icon": "_footer__top-
|
|
28
|
-
"footer__top-title": "_footer__top-
|
|
29
|
-
"footer__top-links": "_footer__top-
|
|
30
|
-
"footer__link-list": "_footer__link-
|
|
31
|
-
"footer__top-link": "_footer__top-
|
|
24
|
+
"footer__top-row": "_footer__top-row_1lum3_61",
|
|
25
|
+
"footer__top-column": "_footer__top-column_1lum3_76",
|
|
26
|
+
"footer__top-heading": "_footer__top-heading_1lum3_84",
|
|
27
|
+
"footer__top-icon": "_footer__top-icon_1lum3_91",
|
|
28
|
+
"footer__top-title": "_footer__top-title_1lum3_97",
|
|
29
|
+
"footer__top-links": "_footer__top-links_1lum3_102",
|
|
30
|
+
"footer__link-list": "_footer__link-list_1lum3_111",
|
|
31
|
+
"footer__top-link": "_footer__top-link_1lum3_102",
|
|
32
32
|
footer__container,
|
|
33
|
-
"footer__nav-accordions": "_footer__nav-
|
|
34
|
-
"footer__nav-columns": "_footer__nav-
|
|
33
|
+
"footer__nav-accordions": "_footer__nav-accordions_1lum3_135",
|
|
34
|
+
"footer__nav-columns": "_footer__nav-columns_1lum3_139",
|
|
35
35
|
footer__column,
|
|
36
|
-
"footer__column-heading": "_footer__column-
|
|
36
|
+
"footer__column-heading": "_footer__column-heading_1lum3_164",
|
|
37
37
|
footer__link,
|
|
38
38
|
footer__action,
|
|
39
39
|
footer__accordion,
|
|
40
40
|
footer__divider,
|
|
41
|
-
"footer__divider--after-nav": "_footer__divider--after-
|
|
41
|
+
"footer__divider--after-nav": "_footer__divider--after-nav_1lum3_242",
|
|
42
42
|
footer__meta,
|
|
43
|
-
"footer__meta-center": "_footer__meta-
|
|
44
|
-
"footer__language-list": "_footer__language-
|
|
43
|
+
"footer__meta-center": "_footer__meta-center_1lum3_265",
|
|
44
|
+
"footer__language-list": "_footer__language-list_1lum3_276",
|
|
45
45
|
footer__language,
|
|
46
|
-
"footer__language--current": "_footer__language--
|
|
47
|
-
"footer__social-list": "_footer__social-
|
|
48
|
-
"footer__social-link": "_footer__social-
|
|
49
|
-
"footer__social-icon": "_footer__social-
|
|
50
|
-
"footer__organization-list": "_footer__organization-
|
|
46
|
+
"footer__language--current": "_footer__language--current_1lum3_303",
|
|
47
|
+
"footer__social-list": "_footer__social-list_1lum3_315",
|
|
48
|
+
"footer__social-link": "_footer__social-link_1lum3_323",
|
|
49
|
+
"footer__social-icon": "_footer__social-icon_1lum3_338",
|
|
50
|
+
"footer__organization-list": "_footer__organization-list_1lum3_346",
|
|
51
51
|
footer__organization,
|
|
52
|
-
"footer__organization--current": "_footer__organization--
|
|
53
|
-
"footer__legal-list": "_footer__legal-
|
|
52
|
+
"footer__organization--current": "_footer__organization--current_1lum3_370",
|
|
53
|
+
"footer__legal-list": "_footer__legal-list_1lum3_383",
|
|
54
54
|
footer__copyright,
|
|
55
55
|
footer__apps,
|
|
56
|
-
"footer__apps-title": "_footer__apps-
|
|
56
|
+
"footer__apps-title": "_footer__apps-title_1lum3_427",
|
|
57
57
|
footer__badges,
|
|
58
58
|
footer__badge
|
|
59
59
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const focus_module = require("../../styles/utils/focus.module.css.cjs");
|
|
5
|
+
const FunctionButton_module = require("./FunctionButton.module.css.cjs");
|
|
6
|
+
const cn = require("../../utils/cn/cn.cjs");
|
|
7
|
+
const FunctionButton = ({
|
|
8
|
+
icon: Icon,
|
|
9
|
+
variant = "default",
|
|
10
|
+
size = "default",
|
|
11
|
+
className,
|
|
12
|
+
type = "button",
|
|
13
|
+
ref,
|
|
14
|
+
...props
|
|
15
|
+
}) => {
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
ref,
|
|
20
|
+
type,
|
|
21
|
+
className: cn.cn(
|
|
22
|
+
FunctionButton_module["function-button"],
|
|
23
|
+
FunctionButton_module[`function-button--${variant}`],
|
|
24
|
+
{ [FunctionButton_module["function-button--large"]]: size === "large" },
|
|
25
|
+
focus_module.default.focusable,
|
|
26
|
+
className
|
|
27
|
+
),
|
|
28
|
+
...props,
|
|
29
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { "aria-hidden": "true" })
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
exports.FunctionButton = FunctionButton;
|
|
34
|
+
//# sourceMappingURL=FunctionButton.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionButton.cjs","sources":["../../../src/components/FunctionButton/FunctionButton.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport focusStyles from '../../styles/utils/focus.module.css';\nimport styles from './FunctionButton.module.css';\nimport type { FunctionButtonProps } from './FunctionButton.types';\n\nexport const FunctionButton = ({\n icon: Icon,\n variant = 'default',\n size = 'default',\n className,\n type = 'button',\n ref,\n ...props\n}: FunctionButtonProps) => {\n return (\n <button\n ref={ref}\n type={type}\n className={cn(\n styles['function-button'],\n styles[`function-button--${variant}`],\n { [styles['function-button--large']]: size === 'large' },\n focusStyles.focusable,\n className,\n )}\n {...props}\n >\n <Icon aria-hidden=\"true\" />\n </button>\n );\n};\n"],"names":["jsx","cn","styles","focusStyles"],"mappings":";;;;;;AAKO,MAAM,iBAAiB,CAAC;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,OAAO;AAAA,EACP;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,GAAG;AACP,MAA2B;AACvB,SACIA,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA;AAAA,MACA,WAAWC,GAAAA;AAAAA,QACPC,sBAAO,iBAAiB;AAAA,QACxBA,sBAAO,oBAAoB,OAAO,EAAE;AAAA,QACpC,EAAE,CAACA,sBAAO,wBAAwB,CAAC,GAAG,SAAS,QAAA;AAAA,QAC/CC,aAAAA,QAAY;AAAA,QACZ;AAAA,MAAA;AAAA,MAEH,GAAG;AAAA,MAEJ,UAAAH,2BAAAA,IAAC,MAAA,EAAK,eAAY,OAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGrC;;"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@layer dds-components {._function-button_kp4nc_1 {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
width: 32px;
|
|
6
|
+
height: 32px;
|
|
7
|
+
flex: 0 0 auto;
|
|
8
|
+
padding: 0;
|
|
9
|
+
appearance: none;
|
|
10
|
+
border: var(--borderwidth-semantic-xs) solid transparent;
|
|
11
|
+
border-radius: var(--radius-semantic-sm);
|
|
12
|
+
color: var(--color-semantic-foreground-default);
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
transition:
|
|
15
|
+
background-color 0.2s ease-in-out,
|
|
16
|
+
border-color 0.2s ease-in-out,
|
|
17
|
+
color 0.2s ease-in-out;
|
|
18
|
+
|
|
19
|
+
& > svg {
|
|
20
|
+
width: 16px;
|
|
21
|
+
height: 16px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
._function-button--large_kp4nc_25 {
|
|
26
|
+
width: 40px;
|
|
27
|
+
height: 40px;
|
|
28
|
+
|
|
29
|
+
& > svg {
|
|
30
|
+
width: 24px;
|
|
31
|
+
height: 24px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
._function-button--default_kp4nc_35 {
|
|
36
|
+
background-color: var(--color-semantic-surface-neutral-strong);
|
|
37
|
+
border-color: var(--color-semantic-border-neutral-mid);
|
|
38
|
+
|
|
39
|
+
&:hover,
|
|
40
|
+
&:focus-visible {
|
|
41
|
+
background-color: var(--color-semantic-interactive-neutral-hover);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:active {
|
|
45
|
+
background-color: var(--color-semantic-interactive-neutral-active);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
._function-button--circle_kp4nc_49 {
|
|
50
|
+
border-color: transparent;
|
|
51
|
+
border-radius: var(--radius-semantic-full);
|
|
52
|
+
background-color: var(--color-semantic-interactive-primary-default);
|
|
53
|
+
color: var(--color-semantic-foreground-inverse);
|
|
54
|
+
|
|
55
|
+
&:hover,
|
|
56
|
+
&:focus-visible {
|
|
57
|
+
background-color: var(--color-semantic-interactive-primary-hover);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:active {
|
|
61
|
+
background-color: var(--color-semantic-interactive-primary-active);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
._function-button--ghost_kp4nc_65 {
|
|
66
|
+
border: none;
|
|
67
|
+
background-color: transparent;
|
|
68
|
+
|
|
69
|
+
&:hover,
|
|
70
|
+
&:focus-visible,
|
|
71
|
+
&:active {
|
|
72
|
+
background-color: transparent;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
._function-button_kp4nc_1:disabled {
|
|
77
|
+
pointer-events: none;
|
|
78
|
+
|
|
79
|
+
&._function-button--default_kp4nc_35 {
|
|
80
|
+
background-color: var(--color-semantic-interactive-neutral-disabled);
|
|
81
|
+
color: var(--color-semantic-foreground-muted);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&._function-button--circle_kp4nc_49 {
|
|
85
|
+
background-color: var(--color-semantic-interactive-primary-disabled);
|
|
86
|
+
color: var(--color-semantic-foreground-muted);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&._function-button--ghost_kp4nc_65 {
|
|
90
|
+
opacity: 0.3;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Styles apply from [data-color-scheme="dark"] down to (but not into) [data-color-scheme="light"]. */
|
|
95
|
+
@scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
|
|
96
|
+
._function-button_kp4nc_1:disabled._function-button--default_kp4nc_35 {
|
|
97
|
+
border-color: var(--color-semantic-interactive-inverse-disabled);
|
|
98
|
+
color: var(--color-semantic-foreground-inverse-muted);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
._function-button_kp4nc_1:disabled._function-button--circle_kp4nc_49 {
|
|
102
|
+
color: var(--color-semantic-foreground-inverse-muted);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
._function-button--ghost_kp4nc_65 {
|
|
106
|
+
color: var(--color-semantic-interactive-inverse-default);
|
|
107
|
+
|
|
108
|
+
&:hover,
|
|
109
|
+
&:focus-visible {
|
|
110
|
+
color: var(--color-semantic-interactive-inverse-hover);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:active {
|
|
114
|
+
color: var(--color-semantic-interactive-inverse-active);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@media (forced-colors: active) {
|
|
120
|
+
._function-button_kp4nc_1:disabled {
|
|
121
|
+
border-color: GrayText;
|
|
122
|
+
color: GrayText;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FunctionButtonProps } from './FunctionButton.types';
|
|
2
|
+
export declare const FunctionButton: ({ icon: Icon, variant, size, className, type, ref, ...props }: FunctionButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=FunctionButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionButton.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionButton/FunctionButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,eAAO,MAAM,cAAc,GAAI,+DAQ5B,mBAAmB,4CAiBrB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import focusStyles from "../../styles/utils/focus.module.css.js";
|
|
3
|
+
import styles from "./FunctionButton.module.css.js";
|
|
4
|
+
import { cn } from "../../utils/cn/cn.js";
|
|
5
|
+
const FunctionButton = ({
|
|
6
|
+
icon: Icon,
|
|
7
|
+
variant = "default",
|
|
8
|
+
size = "default",
|
|
9
|
+
className,
|
|
10
|
+
type = "button",
|
|
11
|
+
ref,
|
|
12
|
+
...props
|
|
13
|
+
}) => {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
"button",
|
|
16
|
+
{
|
|
17
|
+
ref,
|
|
18
|
+
type,
|
|
19
|
+
className: cn(
|
|
20
|
+
styles["function-button"],
|
|
21
|
+
styles[`function-button--${variant}`],
|
|
22
|
+
{ [styles["function-button--large"]]: size === "large" },
|
|
23
|
+
focusStyles.focusable,
|
|
24
|
+
className
|
|
25
|
+
),
|
|
26
|
+
...props,
|
|
27
|
+
children: /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true" })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
FunctionButton
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=FunctionButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionButton.js","sources":["../../../src/components/FunctionButton/FunctionButton.tsx"],"sourcesContent":["import { cn } from '../../utils/cn';\nimport focusStyles from '../../styles/utils/focus.module.css';\nimport styles from './FunctionButton.module.css';\nimport type { FunctionButtonProps } from './FunctionButton.types';\n\nexport const FunctionButton = ({\n icon: Icon,\n variant = 'default',\n size = 'default',\n className,\n type = 'button',\n ref,\n ...props\n}: FunctionButtonProps) => {\n return (\n <button\n ref={ref}\n type={type}\n className={cn(\n styles['function-button'],\n styles[`function-button--${variant}`],\n { [styles['function-button--large']]: size === 'large' },\n focusStyles.focusable,\n className,\n )}\n {...props}\n >\n <Icon aria-hidden=\"true\" />\n </button>\n );\n};\n"],"names":[],"mappings":";;;;AAKO,MAAM,iBAAiB,CAAC;AAAA,EAC3B,MAAM;AAAA,EACN,UAAU;AAAA,EACV,OAAO;AAAA,EACP;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,GAAG;AACP,MAA2B;AACvB,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG;AAAA,MACA;AAAA,MACA,WAAW;AAAA,QACP,OAAO,iBAAiB;AAAA,QACxB,OAAO,oBAAoB,OAAO,EAAE;AAAA,QACpC,EAAE,CAAC,OAAO,wBAAwB,CAAC,GAAG,SAAS,QAAA;AAAA,QAC/C,YAAY;AAAA,QACZ;AAAA,MAAA;AAAA,MAEH,GAAG;AAAA,MAEJ,UAAA,oBAAC,MAAA,EAAK,eAAY,OAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAGrC;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
require('./FunctionButton.css');
|
|
2
|
+
"use strict";
|
|
3
|
+
const styles = {
|
|
4
|
+
"function-button": "_function-button_kp4nc_1",
|
|
5
|
+
"function-button--large": "_function-button--large_kp4nc_25",
|
|
6
|
+
"function-button--default": "_function-button--default_kp4nc_35",
|
|
7
|
+
"function-button--circle": "_function-button--circle_kp4nc_49",
|
|
8
|
+
"function-button--ghost": "_function-button--ghost_kp4nc_65"
|
|
9
|
+
};
|
|
10
|
+
module.exports = styles;
|
|
11
|
+
//# sourceMappingURL=FunctionButton.module.css.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionButton.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './FunctionButton.css';
|
|
2
|
+
const styles = {
|
|
3
|
+
"function-button": "_function-button_kp4nc_1",
|
|
4
|
+
"function-button--large": "_function-button--large_kp4nc_25",
|
|
5
|
+
"function-button--default": "_function-button--default_kp4nc_35",
|
|
6
|
+
"function-button--circle": "_function-button--circle_kp4nc_49",
|
|
7
|
+
"function-button--ghost": "_function-button--ghost_kp4nc_65"
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
styles as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=FunctionButton.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionButton.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ComponentType, SVGProps } from 'react';
|
|
2
|
+
export type FunctionButtonVariant = 'default' | 'circle' | 'ghost';
|
|
3
|
+
export type FunctionButtonSize = 'default' | 'large';
|
|
4
|
+
export type FunctionButtonIcon = ComponentType<SVGProps<SVGSVGElement>>;
|
|
5
|
+
type FunctionButtonAccessibleName = {
|
|
6
|
+
readonly 'aria-label': string;
|
|
7
|
+
readonly 'aria-labelledby'?: never;
|
|
8
|
+
} | {
|
|
9
|
+
readonly 'aria-label'?: never;
|
|
10
|
+
readonly 'aria-labelledby': string;
|
|
11
|
+
};
|
|
12
|
+
export type FunctionButtonProps = Omit<ComponentPropsWithRef<'button'>, 'aria-label' | 'aria-labelledby' | 'children'> & FunctionButtonAccessibleName & {
|
|
13
|
+
/** Icon component rendered as decorative content. */
|
|
14
|
+
readonly icon: FunctionButtonIcon;
|
|
15
|
+
/** Visual button style. @default 'default' */
|
|
16
|
+
readonly variant?: FunctionButtonVariant;
|
|
17
|
+
/** Control size. @default 'default' */
|
|
18
|
+
readonly size?: FunctionButtonSize;
|
|
19
|
+
};
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=FunctionButton.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FunctionButton.types.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionButton/FunctionButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AACnE,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,OAAO,CAAC;AACrD,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAExE,KAAK,4BAA4B,GAC3B;IACI,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC;CACtC,GACD;IACI,QAAQ,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACtC,CAAC;AAER,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAClC,qBAAqB,CAAC,QAAQ,CAAC,EAC/B,YAAY,GAAG,iBAAiB,GAAG,UAAU,CAChD,GACG,4BAA4B,GAAG;IAC3B,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,8CAA8C;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,qBAAqB,CAAC;IACzC,uCAAuC;IACvC,QAAQ,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC;CACtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FunctionButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EACR,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,GACxB,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@layer dds-components {._icon-
|
|
1
|
+
@layer dds-components {._icon-button_mhilb_1 {
|
|
2
2
|
--_button-icon-size: 24px;
|
|
3
3
|
|
|
4
4
|
display: inline-flex;
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
max-width: 100%;
|
|
9
9
|
min-width: 0;
|
|
10
10
|
border: none;
|
|
11
|
-
border-radius: var(--radius-semantic-sm);
|
|
12
11
|
padding: 0;
|
|
13
12
|
background: transparent;
|
|
14
13
|
font: var(--typography-label-lg-bold);
|
|
@@ -20,17 +19,17 @@
|
|
|
20
19
|
text-decoration-color 0.2s ease-in-out;
|
|
21
20
|
}
|
|
22
21
|
|
|
23
|
-
._icon-button--
|
|
22
|
+
._icon-button--normal_mhilb_22 {
|
|
24
23
|
font: var(--typography-label-lg-bold);
|
|
25
24
|
--_button-icon-size: 24px;
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
._icon-button--
|
|
27
|
+
._icon-button--small_mhilb_27 {
|
|
29
28
|
font: var(--typography-label-md-bold);
|
|
30
29
|
--_button-icon-size: 20px;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
._icon-
|
|
32
|
+
._icon-button__label_mhilb_32 {
|
|
34
33
|
flex: 0 1 auto;
|
|
35
34
|
min-width: 0;
|
|
36
35
|
overflow: hidden;
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
line-height: var(--typography-line-height-md);
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
._icon-button__label--
|
|
44
|
+
._icon-button__label--wrap_mhilb_44 {
|
|
46
45
|
overflow: visible;
|
|
47
46
|
text-overflow: clip;
|
|
48
47
|
white-space: normal;
|
|
@@ -50,7 +49,7 @@
|
|
|
50
49
|
text-align: left;
|
|
51
50
|
}
|
|
52
51
|
|
|
53
|
-
._icon-
|
|
52
|
+
._icon-button__icon_mhilb_52 {
|
|
54
53
|
display: inline-flex;
|
|
55
54
|
align-items: center;
|
|
56
55
|
justify-content: center;
|
|
@@ -66,26 +65,26 @@
|
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
/* Shared interaction states */
|
|
69
|
-
._icon-
|
|
70
|
-
._icon-
|
|
71
|
-
._icon-
|
|
68
|
+
._icon-button_mhilb_1:hover,
|
|
69
|
+
._icon-button_mhilb_1:focus-visible {
|
|
70
|
+
._icon-button__label_mhilb_32 {
|
|
72
71
|
text-decoration-color: currentColor;
|
|
73
72
|
}
|
|
74
73
|
|
|
75
|
-
._icon-
|
|
74
|
+
._icon-button__icon_mhilb_52 {
|
|
76
75
|
color: var(--color-semantic-interactive-primary-hover);
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
|
|
80
|
-
._icon-
|
|
79
|
+
._icon-button_mhilb_1:active ._icon-button__icon_mhilb_52 {
|
|
81
80
|
color: var(--color-semantic-interactive-primary-active);
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
/* Optional link coloring */
|
|
85
|
-
._icon-button--link-
|
|
84
|
+
._icon-button--link-coloring_mhilb_84 {
|
|
86
85
|
color: var(--color-semantic-foreground-link);
|
|
87
86
|
|
|
88
|
-
._icon-
|
|
87
|
+
._icon-button__icon_mhilb_52 {
|
|
89
88
|
color: var(--color-semantic-foreground-link);
|
|
90
89
|
}
|
|
91
90
|
|
|
@@ -93,7 +92,7 @@
|
|
|
93
92
|
&:focus-visible {
|
|
94
93
|
color: var(--color-semantic-foreground-link-hover);
|
|
95
94
|
|
|
96
|
-
._icon-
|
|
95
|
+
._icon-button__icon_mhilb_52 {
|
|
97
96
|
color: var(--color-semantic-foreground-link-hover);
|
|
98
97
|
}
|
|
99
98
|
}
|
|
@@ -101,49 +100,49 @@
|
|
|
101
100
|
&:active {
|
|
102
101
|
color: var(--color-semantic-interactive-primary-active);
|
|
103
102
|
|
|
104
|
-
._icon-
|
|
103
|
+
._icon-button__icon_mhilb_52 {
|
|
105
104
|
color: var(--color-semantic-interactive-primary-active);
|
|
106
105
|
}
|
|
107
106
|
}
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
/* Disabled/loading states */
|
|
111
|
-
._icon-button--
|
|
112
|
-
._icon-button--
|
|
110
|
+
._icon-button--disabled_mhilb_110,
|
|
111
|
+
._icon-button--loading_mhilb_111 {
|
|
113
112
|
pointer-events: none;
|
|
114
113
|
}
|
|
115
114
|
|
|
116
|
-
._icon-button--
|
|
115
|
+
._icon-button--disabled_mhilb_110 {
|
|
117
116
|
color: var(--color-semantic-foreground-muted);
|
|
118
117
|
|
|
119
|
-
._icon-
|
|
118
|
+
._icon-button__icon_mhilb_52 {
|
|
120
119
|
color: var(--color-semantic-interactive-primary-disabled);
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
/* Dark scheme overrides */
|
|
125
124
|
@scope ([data-color-scheme='dark']) to ([data-color-scheme='light']) {
|
|
126
|
-
._icon-
|
|
125
|
+
._icon-button_mhilb_1 {
|
|
127
126
|
color: var(--color-semantic-foreground-inverse);
|
|
128
127
|
}
|
|
129
128
|
|
|
130
|
-
._icon-
|
|
129
|
+
._icon-button_mhilb_1 ._icon-button__icon_mhilb_52 {
|
|
131
130
|
color: var(--color-semantic-interactive-inverse-default);
|
|
132
131
|
}
|
|
133
132
|
|
|
134
|
-
._icon-
|
|
135
|
-
._icon-
|
|
133
|
+
._icon-button_mhilb_1:hover ._icon-button__icon_mhilb_52,
|
|
134
|
+
._icon-button_mhilb_1:focus-visible ._icon-button__icon_mhilb_52 {
|
|
136
135
|
color: var(--color-semantic-interactive-inverse-hover);
|
|
137
136
|
}
|
|
138
137
|
|
|
139
|
-
._icon-
|
|
138
|
+
._icon-button_mhilb_1:active ._icon-button__icon_mhilb_52 {
|
|
140
139
|
color: var(--color-semantic-interactive-inverse-active);
|
|
141
140
|
}
|
|
142
141
|
|
|
143
|
-
._icon-button--link-
|
|
142
|
+
._icon-button--link-coloring_mhilb_84 {
|
|
144
143
|
color: var(--color-semantic-foreground-inverse);
|
|
145
144
|
|
|
146
|
-
._icon-
|
|
145
|
+
._icon-button__icon_mhilb_52 {
|
|
147
146
|
color: var(--color-semantic-foreground-inverse);
|
|
148
147
|
}
|
|
149
148
|
|
|
@@ -151,7 +150,7 @@
|
|
|
151
150
|
&:focus-visible {
|
|
152
151
|
color: var(--color-semantic-foreground-inverse);
|
|
153
152
|
|
|
154
|
-
._icon-
|
|
153
|
+
._icon-button__icon_mhilb_52 {
|
|
155
154
|
color: var(--color-semantic-foreground-inverse);
|
|
156
155
|
}
|
|
157
156
|
}
|
|
@@ -159,21 +158,21 @@
|
|
|
159
158
|
&:active {
|
|
160
159
|
color: var(--color-semantic-foreground-inverse);
|
|
161
160
|
|
|
162
|
-
._icon-
|
|
161
|
+
._icon-button__icon_mhilb_52 {
|
|
163
162
|
color: var(--color-semantic-foreground-inverse);
|
|
164
163
|
}
|
|
165
164
|
}
|
|
166
165
|
}
|
|
167
166
|
|
|
168
|
-
._icon-button--
|
|
169
|
-
._icon-
|
|
167
|
+
._icon-button--disabled_mhilb_110 {
|
|
168
|
+
._icon-button__icon_mhilb_52 {
|
|
170
169
|
color: var(--color-semantic-interactive-inverse-disabled);
|
|
171
170
|
}
|
|
172
171
|
}
|
|
173
172
|
}
|
|
174
173
|
|
|
175
174
|
@media (forced-colors: active) {
|
|
176
|
-
._icon-button--
|
|
175
|
+
._icon-button--small_mhilb_27:focus-visible {
|
|
177
176
|
outline-color: Highlight;
|
|
178
177
|
box-shadow: none;
|
|
179
178
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
require('./IconButton.css');
|
|
2
2
|
"use strict";
|
|
3
3
|
const styles = {
|
|
4
|
-
"icon-button": "_icon-
|
|
5
|
-
"icon-button--normal": "_icon-button--
|
|
6
|
-
"icon-button--small": "_icon-button--
|
|
7
|
-
"icon-button__label": "_icon-
|
|
8
|
-
"icon-button__label--wrap": "_icon-button__label--
|
|
9
|
-
"icon-button__icon": "_icon-
|
|
10
|
-
"icon-button--link-coloring": "_icon-button--link-
|
|
11
|
-
"icon-button--disabled": "_icon-button--
|
|
12
|
-
"icon-button--loading": "_icon-button--
|
|
4
|
+
"icon-button": "_icon-button_mhilb_1",
|
|
5
|
+
"icon-button--normal": "_icon-button--normal_mhilb_22",
|
|
6
|
+
"icon-button--small": "_icon-button--small_mhilb_27",
|
|
7
|
+
"icon-button__label": "_icon-button__label_mhilb_32",
|
|
8
|
+
"icon-button__label--wrap": "_icon-button__label--wrap_mhilb_44",
|
|
9
|
+
"icon-button__icon": "_icon-button__icon_mhilb_52",
|
|
10
|
+
"icon-button--link-coloring": "_icon-button--link-coloring_mhilb_84",
|
|
11
|
+
"icon-button--disabled": "_icon-button--disabled_mhilb_110",
|
|
12
|
+
"icon-button--loading": "_icon-button--loading_mhilb_111"
|
|
13
13
|
};
|
|
14
14
|
module.exports = styles;
|
|
15
15
|
//# sourceMappingURL=IconButton.module.css.cjs.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import './IconButton.css';
|
|
2
2
|
const styles = {
|
|
3
|
-
"icon-button": "_icon-
|
|
4
|
-
"icon-button--normal": "_icon-button--
|
|
5
|
-
"icon-button--small": "_icon-button--
|
|
6
|
-
"icon-button__label": "_icon-
|
|
7
|
-
"icon-button__label--wrap": "_icon-button__label--
|
|
8
|
-
"icon-button__icon": "_icon-
|
|
9
|
-
"icon-button--link-coloring": "_icon-button--link-
|
|
10
|
-
"icon-button--disabled": "_icon-button--
|
|
11
|
-
"icon-button--loading": "_icon-button--
|
|
3
|
+
"icon-button": "_icon-button_mhilb_1",
|
|
4
|
+
"icon-button--normal": "_icon-button--normal_mhilb_22",
|
|
5
|
+
"icon-button--small": "_icon-button--small_mhilb_27",
|
|
6
|
+
"icon-button__label": "_icon-button__label_mhilb_32",
|
|
7
|
+
"icon-button__label--wrap": "_icon-button__label--wrap_mhilb_44",
|
|
8
|
+
"icon-button__icon": "_icon-button__icon_mhilb_52",
|
|
9
|
+
"icon-button--link-coloring": "_icon-button--link-coloring_mhilb_84",
|
|
10
|
+
"icon-button--disabled": "_icon-button--disabled_mhilb_110",
|
|
11
|
+
"icon-button--loading": "_icon-button--loading_mhilb_111"
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
14
|
styles as default
|