@ogcio/design-system-react 1.31.1 → 1.33.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/Heading.d.ts +5 -0
- package/dist/Heading.js +22 -0
- package/dist/accordion/accordion-item.js +62 -57
- package/dist/alert/alert.d.ts +3 -0
- package/dist/alert/alert.js +40 -57
- package/dist/alert/variants.d.ts +49 -52
- package/dist/alert/variants.js +17 -18
- package/dist/atoms/{DsButton.d.ts → Button.d.ts} +5 -5
- package/dist/atoms/{DsButton.js → Button.js} +22 -36
- package/dist/atoms/heading/H1.d.ts +3 -0
- package/dist/atoms/heading/H1.js +20 -0
- package/dist/atoms/heading/H2.d.ts +3 -0
- package/dist/atoms/heading/H2.js +20 -0
- package/dist/atoms/heading/H3.d.ts +3 -0
- package/dist/atoms/heading/H3.js +20 -0
- package/dist/atoms/heading/H4.d.ts +3 -0
- package/dist/atoms/heading/H4.js +20 -0
- package/dist/atoms/heading/H5.d.ts +3 -0
- package/dist/atoms/heading/H5.js +20 -0
- package/dist/atoms/heading/H6.d.ts +3 -0
- package/dist/atoms/heading/H6.js +20 -0
- package/dist/atoms/heading/index.d.ts +9 -0
- package/dist/atoms/heading/index.js +18 -0
- package/dist/atoms/heading/styles.d.ts +65 -0
- package/dist/atoms/heading/styles.js +17 -0
- package/dist/atoms/heading/types.d.ts +15 -0
- package/dist/atoms/heading/types.js +11 -0
- package/dist/atoms/heading/utils.d.ts +2 -0
- package/dist/atoms/heading/utils.js +5 -0
- package/dist/atoms/icons/ArrowLeft.d.ts +3 -0
- package/dist/atoms/icons/ArrowLeft.js +23 -0
- package/dist/atoms/icons/ArrowRight.d.ts +3 -0
- package/dist/atoms/icons/ArrowRight.js +23 -0
- package/dist/atoms/icons/CheckCircle.d.ts +3 -0
- package/dist/atoms/icons/CheckCircle.js +23 -0
- package/dist/atoms/icons/Error.d.ts +3 -0
- package/dist/atoms/icons/Error.js +23 -0
- package/dist/atoms/icons/FirstPage.d.ts +3 -0
- package/dist/atoms/icons/FirstPage.js +23 -0
- package/dist/atoms/icons/Info.d.ts +3 -0
- package/dist/atoms/icons/Info.js +23 -0
- package/dist/atoms/icons/KeyboardArrowLeft.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowLeft.js +23 -0
- package/dist/atoms/icons/KeyboardArrowRight.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowRight.js +23 -0
- package/dist/atoms/icons/LastPage.d.ts +3 -0
- package/dist/atoms/icons/LastPage.js +23 -0
- package/dist/atoms/icons/Warning.d.ts +3 -0
- package/dist/atoms/icons/Warning.js +23 -0
- package/dist/atoms/icons/index.d.ts +12 -2
- package/dist/atoms/icons/index.js +30 -10
- package/dist/atoms/index.d.ts +2 -1
- package/dist/atoms/index.js +48 -12
- package/dist/atoms/storybook/Heading.meta.d.ts +60 -0
- package/dist/atoms/storybook/Heading.meta.js +70 -0
- package/dist/atoms/storybook/Icons.meta.d.ts +51 -0
- package/dist/atoms/storybook/Icons.meta.js +130 -0
- package/dist/atoms/storybook/InsetText.meta.d.ts +52 -0
- package/dist/atoms/storybook/InsetText.meta.js +64 -0
- package/dist/atoms/storybook/Logos.meta.d.ts +35 -0
- package/dist/atoms/storybook/Logos.meta.js +54 -0
- package/dist/breadcrumbs/breadcrumbs.js +20 -19
- package/dist/button/button.d.ts +2 -9
- package/dist/button/button.js +65 -32
- package/dist/button/helpers.d.ts +2 -1
- package/dist/button/types.d.ts +25 -8
- package/dist/button-group/button-group.js +43 -45
- package/dist/button-group/types.d.ts +5 -5
- package/dist/card/card-legacy.js +1 -1
- package/dist/card/types.d.ts +1 -1
- package/dist/combo-box/dropdown-item.js +1 -1
- package/dist/cookie-banner/cookie-banner.d.ts +1 -1
- package/dist/data-table/data-table-header.js +1 -1
- package/dist/drawer/drawer.d.ts +1 -1
- package/dist/drawer/drawer.js +17 -17
- package/dist/error-text/error-text.js +28 -27
- package/dist/forms/form-field/form-field.js +24 -25
- package/dist/header/components/header-menu.js +21 -21
- package/dist/header/components/header-search.js +5 -5
- package/dist/hint-text/hint-text.js +26 -20
- package/dist/icon/icon.js +85 -63
- package/dist/icon/icons.d.ts +1 -1
- package/dist/icon-button/icon-button.d.ts +3 -5
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.js +19 -10
- package/dist/index-Bh2cTIps.js +33899 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/input-text/input-text.js +1 -1
- package/dist/input-text/type.d.ts +1 -1
- package/dist/label/label.d.ts +78 -30
- package/dist/label/label.js +29 -14
- package/dist/modal/modal.content.js +1 -1
- package/dist/modal/modal.d.ts +1 -1
- package/dist/modal/modal.js +39 -39
- package/dist/modal/types.d.ts +5 -4
- package/dist/pagination/pagination.js +137 -134
- package/dist/paragraph/paragraph.d.ts +1 -1
- package/dist/paragraph/paragraph.js +13 -11
- package/dist/score-select/type.d.ts +2 -2
- package/dist/select/select-next.js +87 -87
- package/dist/side-nav/side-nav.js +4 -4
- package/dist/side-nav/types.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/dist/table/table-pagination.js +17 -13
- package/dist/tabs/tab-item.js +53 -71
- package/dist/tabs/variants.d.ts +269 -0
- package/dist/tabs/variants.js +87 -0
- package/dist/tooltip/tooltip.js +27 -35
- package/dist/tooltip/variants.d.ts +115 -0
- package/dist/tooltip/variants.js +59 -0
- package/package.json +7 -6
- package/dist/heading/heading.d.ts +0 -150
- package/dist/heading/heading.js +0 -50
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
export declare const tooltipVariants: import('tailwind-variants').TVReturnType<{
|
|
2
|
+
position: {
|
|
3
|
+
top: {
|
|
4
|
+
tooltip: string[];
|
|
5
|
+
};
|
|
6
|
+
bottom: {
|
|
7
|
+
tooltip: string[];
|
|
8
|
+
};
|
|
9
|
+
left: {
|
|
10
|
+
tooltip: string[];
|
|
11
|
+
};
|
|
12
|
+
right: {
|
|
13
|
+
tooltip: string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
wrapper: string;
|
|
18
|
+
tooltip: string[];
|
|
19
|
+
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
20
|
+
position: {
|
|
21
|
+
top: {
|
|
22
|
+
tooltip: string[];
|
|
23
|
+
};
|
|
24
|
+
bottom: {
|
|
25
|
+
tooltip: string[];
|
|
26
|
+
};
|
|
27
|
+
left: {
|
|
28
|
+
tooltip: string[];
|
|
29
|
+
};
|
|
30
|
+
right: {
|
|
31
|
+
tooltip: string[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
position: {
|
|
36
|
+
top: {
|
|
37
|
+
tooltip: string[];
|
|
38
|
+
};
|
|
39
|
+
bottom: {
|
|
40
|
+
tooltip: string[];
|
|
41
|
+
};
|
|
42
|
+
left: {
|
|
43
|
+
tooltip: string[];
|
|
44
|
+
};
|
|
45
|
+
right: {
|
|
46
|
+
tooltip: string[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}>, {
|
|
50
|
+
position: {
|
|
51
|
+
top: {
|
|
52
|
+
tooltip: string[];
|
|
53
|
+
};
|
|
54
|
+
bottom: {
|
|
55
|
+
tooltip: string[];
|
|
56
|
+
};
|
|
57
|
+
left: {
|
|
58
|
+
tooltip: string[];
|
|
59
|
+
};
|
|
60
|
+
right: {
|
|
61
|
+
tooltip: string[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
wrapper: string;
|
|
66
|
+
tooltip: string[];
|
|
67
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
68
|
+
position: {
|
|
69
|
+
top: {
|
|
70
|
+
tooltip: string[];
|
|
71
|
+
};
|
|
72
|
+
bottom: {
|
|
73
|
+
tooltip: string[];
|
|
74
|
+
};
|
|
75
|
+
left: {
|
|
76
|
+
tooltip: string[];
|
|
77
|
+
};
|
|
78
|
+
right: {
|
|
79
|
+
tooltip: string[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
}, {
|
|
83
|
+
wrapper: string;
|
|
84
|
+
tooltip: string[];
|
|
85
|
+
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
86
|
+
position: {
|
|
87
|
+
top: {
|
|
88
|
+
tooltip: string[];
|
|
89
|
+
};
|
|
90
|
+
bottom: {
|
|
91
|
+
tooltip: string[];
|
|
92
|
+
};
|
|
93
|
+
left: {
|
|
94
|
+
tooltip: string[];
|
|
95
|
+
};
|
|
96
|
+
right: {
|
|
97
|
+
tooltip: string[];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
position: {
|
|
102
|
+
top: {
|
|
103
|
+
tooltip: string[];
|
|
104
|
+
};
|
|
105
|
+
bottom: {
|
|
106
|
+
tooltip: string[];
|
|
107
|
+
};
|
|
108
|
+
left: {
|
|
109
|
+
tooltip: string[];
|
|
110
|
+
};
|
|
111
|
+
right: {
|
|
112
|
+
tooltip: string[];
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { c as t } from "../index-CB-zPpNk.js";
|
|
2
|
+
const e = t({
|
|
3
|
+
slots: {
|
|
4
|
+
wrapper: "gi-relative gi-inline-block gi-overflow-visible gi-text-lg",
|
|
5
|
+
tooltip: [
|
|
6
|
+
"gi-absolute gi-z-[100] gi-block",
|
|
7
|
+
"gi-bg-color-surface-system-neutral-layer11 gi-text-color-text-tone-light-default",
|
|
8
|
+
"gi-text-sm gi-text-left gi-px-3 gi-py-2 gi-rounded-sm",
|
|
9
|
+
"gi-opacity-100 gi-transition-opacity gi-duration-300",
|
|
10
|
+
"gi-w-max gi-max-w-[324px]"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
variants: {
|
|
14
|
+
position: {
|
|
15
|
+
top: {
|
|
16
|
+
tooltip: [
|
|
17
|
+
"gi-bottom-full gi-left-1/2 gi-translate-x-[-50%] gi-translate-y-[-0.75rem]",
|
|
18
|
+
"after:gi-content-[''] after:gi-absolute after:gi-left-1/2 after:gi-translate-x-[-50%]",
|
|
19
|
+
"after:gi-border-x-[9px] after:gi-border-x-transparent",
|
|
20
|
+
"after:gi-border-t-[9px] after:gi-border-t-color-surface-system-neutral-layer11",
|
|
21
|
+
"after:gi-bottom-[-0.45rem]"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
bottom: {
|
|
25
|
+
tooltip: [
|
|
26
|
+
"gi-top-full gi-left-1/2 gi-translate-x-[-50%] gi-translate-y-[0.75rem]",
|
|
27
|
+
"after:gi-content-[''] after:gi-absolute after:gi-left-1/2 after:gi-translate-x-[-50%]",
|
|
28
|
+
"after:gi-border-x-[9px] after:gi-border-x-transparent",
|
|
29
|
+
"after:gi-border-b-[9px] after:gi-border-b-color-surface-system-neutral-layer11",
|
|
30
|
+
"after:gi-top-[-0.45rem]"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
left: {
|
|
34
|
+
tooltip: [
|
|
35
|
+
"gi-right-full gi-top-1/2 gi-translate-y-[-50%] gi-translate-x-[-0.75rem]",
|
|
36
|
+
"after:gi-content-[''] after:gi-absolute after:gi-top-1/2 after:gi-translate-y-[-50%]",
|
|
37
|
+
"after:gi-border-y-[9px] after:gi-border-y-transparent",
|
|
38
|
+
"after:gi-border-l-[9px] after:gi-border-l-color-surface-system-neutral-layer11",
|
|
39
|
+
"after:gi-right-[-0.45rem]"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
right: {
|
|
43
|
+
tooltip: [
|
|
44
|
+
"gi-left-full gi-top-1/2 gi-translate-y-[-50%] gi-translate-x-[0.75rem]",
|
|
45
|
+
"after:gi-content-[''] after:gi-absolute after:gi-top-1/2 after:gi-translate-y-[-50%]",
|
|
46
|
+
"after:gi-border-y-[9px] after:gi-border-y-transparent",
|
|
47
|
+
"after:gi-border-r-[9px] after:gi-border-r-color-surface-system-neutral-layer11",
|
|
48
|
+
"after:gi-left-[-0.45rem]"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
defaultVariants: {
|
|
54
|
+
position: "top"
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
e as tooltipVariants
|
|
59
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ogcio/design-system-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0",
|
|
4
4
|
"description": "The Government of Ireland Design System React components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"rollup-preserve-directives": "^1.1.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
+
"@storybook/types": "^8.6.14",
|
|
51
52
|
"@testing-library/jest-dom": "^6.4.8",
|
|
52
53
|
"@testing-library/react": "^16.0.1",
|
|
53
54
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -63,11 +64,11 @@
|
|
|
63
64
|
"postcss-import": "^16.1.0",
|
|
64
65
|
"react": "19.0.0",
|
|
65
66
|
"react-dom": "19.0.0",
|
|
66
|
-
"@ogcio/design-system-
|
|
67
|
-
"@ogcio/design-system-
|
|
68
|
-
"@ogcio/design-system-
|
|
69
|
-
"@ogcio/theme-
|
|
70
|
-
"@ogcio/theme-
|
|
67
|
+
"@ogcio/design-system-eslint-config": "1.4.0",
|
|
68
|
+
"@ogcio/design-system-prettier-config": "1.1.1",
|
|
69
|
+
"@ogcio/design-system-tailwind": "1.23.0",
|
|
70
|
+
"@ogcio/theme-doete": "1.0.0",
|
|
71
|
+
"@ogcio/theme-govie": "1.21.4"
|
|
71
72
|
},
|
|
72
73
|
"scripts": {
|
|
73
74
|
"format": "prettier 'src/**/*.{ts,tsx}' --write",
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from 'tailwind-variants';
|
|
2
|
-
export declare const sizeVariants: {
|
|
3
|
-
xl: string;
|
|
4
|
-
lg: string;
|
|
5
|
-
md: string;
|
|
6
|
-
sm: string;
|
|
7
|
-
xs: string;
|
|
8
|
-
'2xs': string;
|
|
9
|
-
};
|
|
10
|
-
export declare const asVariants: {
|
|
11
|
-
h1: string;
|
|
12
|
-
h2: string;
|
|
13
|
-
h3: string;
|
|
14
|
-
h4: string;
|
|
15
|
-
h5: string;
|
|
16
|
-
h6: string;
|
|
17
|
-
};
|
|
18
|
-
export declare const headingVariants: import('tailwind-variants').TVReturnType<{
|
|
19
|
-
size: {
|
|
20
|
-
xl: string;
|
|
21
|
-
lg: string;
|
|
22
|
-
md: string;
|
|
23
|
-
sm: string;
|
|
24
|
-
xs: string;
|
|
25
|
-
'2xs': string;
|
|
26
|
-
};
|
|
27
|
-
as: {
|
|
28
|
-
h1: string;
|
|
29
|
-
h2: string;
|
|
30
|
-
h3: string;
|
|
31
|
-
h4: string;
|
|
32
|
-
h5: string;
|
|
33
|
-
h6: string;
|
|
34
|
-
};
|
|
35
|
-
}, {
|
|
36
|
-
text: string;
|
|
37
|
-
base: string;
|
|
38
|
-
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
39
|
-
size: {
|
|
40
|
-
xl: string;
|
|
41
|
-
lg: string;
|
|
42
|
-
md: string;
|
|
43
|
-
sm: string;
|
|
44
|
-
xs: string;
|
|
45
|
-
'2xs': string;
|
|
46
|
-
};
|
|
47
|
-
as: {
|
|
48
|
-
h1: string;
|
|
49
|
-
h2: string;
|
|
50
|
-
h3: string;
|
|
51
|
-
h4: string;
|
|
52
|
-
h5: string;
|
|
53
|
-
h6: string;
|
|
54
|
-
};
|
|
55
|
-
}, {
|
|
56
|
-
size: {
|
|
57
|
-
xl: string;
|
|
58
|
-
lg: string;
|
|
59
|
-
md: string;
|
|
60
|
-
sm: string;
|
|
61
|
-
xs: string;
|
|
62
|
-
'2xs': string;
|
|
63
|
-
};
|
|
64
|
-
as: {
|
|
65
|
-
h1: string;
|
|
66
|
-
h2: string;
|
|
67
|
-
h3: string;
|
|
68
|
-
h4: string;
|
|
69
|
-
h5: string;
|
|
70
|
-
h6: string;
|
|
71
|
-
};
|
|
72
|
-
}>, {
|
|
73
|
-
size: {
|
|
74
|
-
xl: string;
|
|
75
|
-
lg: string;
|
|
76
|
-
md: string;
|
|
77
|
-
sm: string;
|
|
78
|
-
xs: string;
|
|
79
|
-
'2xs': string;
|
|
80
|
-
};
|
|
81
|
-
as: {
|
|
82
|
-
h1: string;
|
|
83
|
-
h2: string;
|
|
84
|
-
h3: string;
|
|
85
|
-
h4: string;
|
|
86
|
-
h5: string;
|
|
87
|
-
h6: string;
|
|
88
|
-
};
|
|
89
|
-
}, {
|
|
90
|
-
text: string;
|
|
91
|
-
base: string;
|
|
92
|
-
}, import('tailwind-variants').TVReturnType<{
|
|
93
|
-
size: {
|
|
94
|
-
xl: string;
|
|
95
|
-
lg: string;
|
|
96
|
-
md: string;
|
|
97
|
-
sm: string;
|
|
98
|
-
xs: string;
|
|
99
|
-
'2xs': string;
|
|
100
|
-
};
|
|
101
|
-
as: {
|
|
102
|
-
h1: string;
|
|
103
|
-
h2: string;
|
|
104
|
-
h3: string;
|
|
105
|
-
h4: string;
|
|
106
|
-
h5: string;
|
|
107
|
-
h6: string;
|
|
108
|
-
};
|
|
109
|
-
}, {
|
|
110
|
-
text: string;
|
|
111
|
-
base: string;
|
|
112
|
-
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
113
|
-
size: {
|
|
114
|
-
xl: string;
|
|
115
|
-
lg: string;
|
|
116
|
-
md: string;
|
|
117
|
-
sm: string;
|
|
118
|
-
xs: string;
|
|
119
|
-
'2xs': string;
|
|
120
|
-
};
|
|
121
|
-
as: {
|
|
122
|
-
h1: string;
|
|
123
|
-
h2: string;
|
|
124
|
-
h3: string;
|
|
125
|
-
h4: string;
|
|
126
|
-
h5: string;
|
|
127
|
-
h6: string;
|
|
128
|
-
};
|
|
129
|
-
}, {
|
|
130
|
-
size: {
|
|
131
|
-
xl: string;
|
|
132
|
-
lg: string;
|
|
133
|
-
md: string;
|
|
134
|
-
sm: string;
|
|
135
|
-
xs: string;
|
|
136
|
-
'2xs': string;
|
|
137
|
-
};
|
|
138
|
-
as: {
|
|
139
|
-
h1: string;
|
|
140
|
-
h2: string;
|
|
141
|
-
h3: string;
|
|
142
|
-
h4: string;
|
|
143
|
-
h5: string;
|
|
144
|
-
h6: string;
|
|
145
|
-
};
|
|
146
|
-
}>, unknown, unknown, undefined>>;
|
|
147
|
-
export type HeadingProps = VariantProps<typeof headingVariants> & {
|
|
148
|
-
caption?: string;
|
|
149
|
-
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
150
|
-
export declare function Heading({ as, size, children, caption, className, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/heading/heading.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsxs as x, Fragment as o, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { c as l } from "../index-CB-zPpNk.js";
|
|
3
|
-
import { cn as e } from "../cn.js";
|
|
4
|
-
const c = {
|
|
5
|
-
xl: "gi-heading-xl",
|
|
6
|
-
lg: "gi-heading-lg",
|
|
7
|
-
md: "gi-heading-md",
|
|
8
|
-
sm: "gi-heading-sm",
|
|
9
|
-
xs: "gi-heading-xs",
|
|
10
|
-
"2xs": "gi-heading-2xs"
|
|
11
|
-
}, f = {
|
|
12
|
-
h1: "gi-heading-xl",
|
|
13
|
-
h2: "gi-heading-lg",
|
|
14
|
-
h3: "gi-heading-md",
|
|
15
|
-
h4: "gi-heading-sm",
|
|
16
|
-
h5: "gi-heading-xs",
|
|
17
|
-
h6: "gi-heading-2xs"
|
|
18
|
-
}, p = l({
|
|
19
|
-
slots: {
|
|
20
|
-
text: "gi-text-gray-600",
|
|
21
|
-
base: ""
|
|
22
|
-
},
|
|
23
|
-
variants: {
|
|
24
|
-
size: c,
|
|
25
|
-
as: f
|
|
26
|
-
},
|
|
27
|
-
defaultVariants: {
|
|
28
|
-
as: "h1"
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
function j({
|
|
32
|
-
as: i,
|
|
33
|
-
size: g,
|
|
34
|
-
children: n,
|
|
35
|
-
caption: a,
|
|
36
|
-
className: t,
|
|
37
|
-
...h
|
|
38
|
-
}) {
|
|
39
|
-
const d = i || "h1", { text: r, base: m } = p({ as: i, size: g });
|
|
40
|
-
return /* @__PURE__ */ x(o, { children: [
|
|
41
|
-
a && /* @__PURE__ */ s("span", { className: e(r()), "aria-hidden": "true", children: a }),
|
|
42
|
-
/* @__PURE__ */ s(d, { className: e(m(), t), ...h, children: n })
|
|
43
|
-
] });
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
j as Heading,
|
|
47
|
-
f as asVariants,
|
|
48
|
-
p as headingVariants,
|
|
49
|
-
c as sizeVariants
|
|
50
|
-
};
|