@postenbring/hedwig-react 0.0.64 → 0.0.66
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/_tsup-dts-rollup.d.mts +301 -68
- package/dist/_tsup-dts-rollup.d.ts +301 -68
- package/dist/accordion/accordion-content.js +5 -9
- package/dist/accordion/accordion-content.js.map +1 -1
- package/dist/accordion/accordion-content.mjs +1 -1
- package/dist/accordion/accordion-header.js +6 -9
- package/dist/accordion/accordion-header.js.map +1 -1
- package/dist/accordion/accordion-header.mjs +1 -1
- package/dist/accordion/accordion-item.js +2 -7
- package/dist/accordion/accordion-item.js.map +1 -1
- package/dist/accordion/accordion-item.mjs +1 -1
- package/dist/accordion/index.js +13 -25
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +4 -4
- package/dist/chunk-27XJO7E4.mjs +51 -0
- package/dist/chunk-27XJO7E4.mjs.map +1 -0
- package/dist/{chunk-POJTVNEO.mjs → chunk-2ICZ3Q7N.mjs} +1 -1
- package/dist/chunk-2ICZ3Q7N.mjs.map +1 -0
- package/dist/{chunk-H3VGHTDC.mjs → chunk-2JH4FG63.mjs} +2 -2
- package/dist/chunk-2JH4FG63.mjs.map +1 -0
- package/dist/{chunk-SAGJ5W7M.mjs → chunk-62F4I3MQ.mjs} +3 -8
- package/dist/{chunk-SAGJ5W7M.mjs.map → chunk-62F4I3MQ.mjs.map} +1 -1
- package/dist/{chunk-V4NGUB4I.mjs → chunk-6NGF7FFY.mjs} +2 -2
- package/dist/chunk-6NGF7FFY.mjs.map +1 -0
- package/dist/{chunk-BYDSISQZ.mjs → chunk-A47QULAK.mjs} +2 -2
- package/dist/{chunk-BYDSISQZ.mjs.map → chunk-A47QULAK.mjs.map} +1 -1
- package/dist/chunk-BZRCDLEW.mjs +118 -0
- package/dist/chunk-BZRCDLEW.mjs.map +1 -0
- package/dist/chunk-CLXHNRAI.mjs +104 -0
- package/dist/chunk-CLXHNRAI.mjs.map +1 -0
- package/dist/{chunk-37WVYY6X.mjs → chunk-DM4PJFLG.mjs} +6 -3
- package/dist/chunk-DM4PJFLG.mjs.map +1 -0
- package/dist/{chunk-KRGKVH5J.mjs → chunk-GUB3UCXO.mjs} +6 -10
- package/dist/chunk-GUB3UCXO.mjs.map +1 -0
- package/dist/{chunk-WGVZWX5L.mjs → chunk-HMB4TY2F.mjs} +14 -4
- package/dist/chunk-HMB4TY2F.mjs.map +1 -0
- package/dist/{chunk-5MDJP43L.mjs → chunk-IFGQR4J6.mjs} +10 -10
- package/dist/chunk-IFGQR4J6.mjs.map +1 -0
- package/dist/chunk-KQITCS3U.mjs +18 -0
- package/dist/chunk-KQITCS3U.mjs.map +1 -0
- package/dist/chunk-L4GQJETB.mjs +1 -0
- package/dist/{chunk-QSYU64U4.mjs → chunk-MRCE2Q7A.mjs} +2 -2
- package/dist/chunk-NE6W2PCD.mjs +9 -0
- package/dist/chunk-NE6W2PCD.mjs.map +1 -0
- package/dist/chunk-RHCMBJOT.mjs +76 -0
- package/dist/chunk-RHCMBJOT.mjs.map +1 -0
- package/dist/chunk-RXIP2JTE.mjs +19 -0
- package/dist/chunk-RXIP2JTE.mjs.map +1 -0
- package/dist/{chunk-EJADADIY.mjs → chunk-UWTGHSWT.mjs} +6 -9
- package/dist/chunk-UWTGHSWT.mjs.map +1 -0
- package/dist/{chunk-2E6XPNPX.mjs → chunk-X46LM2QH.mjs} +9 -6
- package/dist/chunk-X46LM2QH.mjs.map +1 -0
- package/dist/{chunk-DJRMXOCP.mjs → chunk-XIHKASNB.mjs} +4 -4
- package/dist/{chunk-MBBFU4IR.mjs → chunk-XVFQWVHO.mjs} +3 -9
- package/dist/{chunk-MBBFU4IR.mjs.map → chunk-XVFQWVHO.mjs.map} +1 -1
- package/dist/chunk-YWNVB7TY.mjs +1 -0
- package/dist/{chunk-FT5CX2W5.mjs → chunk-YXHXRUFX.mjs} +7 -10
- package/dist/chunk-YXHXRUFX.mjs.map +1 -0
- package/dist/chunk-ZTYEOZLK.mjs +18 -0
- package/dist/chunk-ZTYEOZLK.mjs.map +1 -0
- package/dist/footer/footer.d.mts +7 -0
- package/dist/footer/footer.d.ts +7 -0
- package/dist/footer/footer.js +401 -0
- package/dist/footer/footer.js.map +1 -0
- package/dist/footer/footer.mjs +26 -0
- package/dist/footer/footer.mjs.map +1 -0
- package/dist/footer/index.d.mts +7 -0
- package/dist/footer/index.d.ts +7 -0
- package/dist/footer/index.js +402 -0
- package/dist/footer/index.js.map +1 -0
- package/dist/footer/index.mjs +19 -0
- package/dist/footer/index.mjs.map +1 -0
- package/dist/form/checkbox/checkbox.js +122 -24
- package/dist/form/checkbox/checkbox.js.map +1 -1
- package/dist/form/checkbox/checkbox.mjs +5 -1
- package/dist/form/checkbox/index.js +122 -24
- package/dist/form/checkbox/index.js.map +1 -1
- package/dist/form/checkbox/index.mjs +5 -1
- package/dist/form/fieldset/fieldset.d.mts +1 -0
- package/dist/form/fieldset/fieldset.d.ts +1 -0
- package/dist/form/fieldset/fieldset.js +7 -3
- package/dist/form/fieldset/fieldset.js.map +1 -1
- package/dist/form/fieldset/fieldset.mjs +5 -3
- package/dist/form/fieldset/index.d.mts +1 -0
- package/dist/form/fieldset/index.d.ts +1 -0
- package/dist/form/fieldset/index.js +7 -3
- package/dist/form/fieldset/index.js.map +1 -1
- package/dist/form/fieldset/index.mjs +5 -3
- package/dist/form/index.d.mts +2 -1
- package/dist/form/index.d.ts +2 -1
- package/dist/form/index.js +68 -27
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +20 -16
- package/dist/form/radiobutton/index.d.mts +1 -1
- package/dist/form/radiobutton/index.d.ts +1 -1
- package/dist/form/radiobutton/index.js +17 -8
- package/dist/form/radiobutton/index.js.map +1 -1
- package/dist/form/radiobutton/index.mjs +7 -5
- package/dist/form/radiobutton/radiobutton.js +13 -6
- package/dist/form/radiobutton/radiobutton.js.map +1 -1
- package/dist/form/radiobutton/radiobutton.mjs +3 -3
- package/dist/form/radiobutton/radiogroup.js +2 -1
- package/dist/form/radiobutton/radiogroup.js.map +1 -1
- package/dist/form/radiobutton/radiogroup.mjs +2 -2
- package/dist/index-no-css.d.mts +20 -7
- package/dist/index-no-css.d.ts +20 -7
- package/dist/index-no-css.js +537 -310
- package/dist/index-no-css.js.map +1 -1
- package/dist/index-no-css.mjs +100 -68
- package/dist/index.d.mts +20 -7
- package/dist/index.d.ts +20 -7
- package/dist/index.js +537 -310
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +100 -68
- package/dist/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +5 -1
- package/dist/layout/index.d.ts +5 -1
- package/dist/layout/index.js +62 -2
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/index.mjs +12 -2
- package/dist/layout/responsive.d.mts +2 -0
- package/dist/layout/responsive.d.ts +2 -0
- package/dist/layout/responsive.js +42 -0
- package/dist/layout/responsive.js.map +1 -0
- package/dist/layout/responsive.mjs +8 -0
- package/dist/layout/responsive.mjs.map +1 -0
- package/dist/layout/spacing.d.mts +3 -0
- package/dist/layout/spacing.d.ts +3 -0
- package/dist/layout/spacing.js +33 -0
- package/dist/layout/spacing.js.map +1 -0
- package/dist/layout/spacing.mjs +8 -0
- package/dist/layout/spacing.mjs.map +1 -0
- package/dist/layout/stack/index.d.mts +4 -0
- package/dist/layout/stack/index.d.ts +4 -0
- package/dist/layout/stack/index.js +117 -0
- package/dist/layout/stack/index.js.map +1 -0
- package/dist/layout/stack/index.mjs +14 -0
- package/dist/layout/stack/index.mjs.map +1 -0
- package/dist/layout/stack/stack.d.mts +4 -0
- package/dist/layout/stack/stack.d.ts +4 -0
- package/dist/layout/stack/stack.js +115 -0
- package/dist/layout/stack/stack.js.map +1 -0
- package/dist/layout/stack/stack.mjs +14 -0
- package/dist/layout/stack/stack.mjs.map +1 -0
- package/dist/modal/index.js.map +1 -1
- package/dist/modal/index.mjs +2 -2
- package/dist/modal/modal.js.map +1 -1
- package/dist/modal/modal.mjs +1 -1
- package/dist/navbar/index.d.mts +1 -0
- package/dist/navbar/index.d.ts +1 -0
- package/dist/navbar/index.js +11 -7
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +7 -4
- package/dist/navbar/navbar-expandable-menu.d.mts +1 -0
- package/dist/navbar/navbar-expandable-menu.d.ts +1 -0
- package/dist/navbar/navbar-expandable-menu.js +11 -7
- package/dist/navbar/navbar-expandable-menu.js.map +1 -1
- package/dist/navbar/navbar-expandable-menu.mjs +5 -3
- package/dist/skeleton/index.js +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +1 -1
- package/dist/skeleton/skeleton.js +1 -1
- package/dist/skeleton/skeleton.js.map +1 -1
- package/dist/skeleton/skeleton.mjs +1 -1
- package/dist/tabs/context.d.mts +1 -0
- package/dist/tabs/context.d.ts +1 -0
- package/dist/tabs/context.js +13 -8
- package/dist/tabs/context.js.map +1 -1
- package/dist/tabs/context.mjs +5 -3
- package/dist/tabs/index.d.mts +5 -5
- package/dist/tabs/index.d.ts +5 -5
- package/dist/tabs/index.js +59 -33
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +16 -6
- package/dist/tabs/tabs-content.js +11 -11
- package/dist/tabs/tabs-content.js.map +1 -1
- package/dist/tabs/tabs-content.mjs +2 -2
- package/dist/tabs/tabs-list.d.mts +2 -2
- package/dist/tabs/tabs-list.d.ts +2 -2
- package/dist/tabs/tabs-list.js +49 -22
- package/dist/tabs/tabs-list.js.map +1 -1
- package/dist/tabs/tabs-list.mjs +6 -6
- package/dist/tabs/tabs.js +2 -14
- package/dist/tabs/tabs.js.map +1 -1
- package/dist/tabs/tabs.mjs +2 -2
- package/package.json +5 -5
- package/dist/chunk-2E6XPNPX.mjs.map +0 -1
- package/dist/chunk-33JD5XDW.mjs +0 -14
- package/dist/chunk-33JD5XDW.mjs.map +0 -1
- package/dist/chunk-37WVYY6X.mjs.map +0 -1
- package/dist/chunk-5MDJP43L.mjs.map +0 -1
- package/dist/chunk-EJADADIY.mjs.map +0 -1
- package/dist/chunk-FT5CX2W5.mjs.map +0 -1
- package/dist/chunk-H3VGHTDC.mjs.map +0 -1
- package/dist/chunk-H4GIHEB2.mjs +0 -1
- package/dist/chunk-KRGKVH5J.mjs.map +0 -1
- package/dist/chunk-OIQUYB26.mjs +0 -1
- package/dist/chunk-POJTVNEO.mjs.map +0 -1
- package/dist/chunk-PXHYOQPB.mjs +0 -42
- package/dist/chunk-PXHYOQPB.mjs.map +0 -1
- package/dist/chunk-V4NGUB4I.mjs.map +0 -1
- package/dist/chunk-WGVZWX5L.mjs.map +0 -1
- package/dist/chunk-XVZ44NGD.mjs +0 -80
- package/dist/chunk-XVZ44NGD.mjs.map +0 -1
- /package/dist/{chunk-H4GIHEB2.mjs.map → chunk-L4GQJETB.mjs.map} +0 -0
- /package/dist/{chunk-QSYU64U4.mjs.map → chunk-MRCE2Q7A.mjs.map} +0 -0
- /package/dist/{chunk-DJRMXOCP.mjs.map → chunk-XIHKASNB.mjs.map} +0 -0
- /package/dist/{chunk-OIQUYB26.mjs.map → chunk-YWNVB7TY.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-YWNVB7TY.mjs";
|
|
2
|
+
import "./chunk-3D2MWIEX.mjs";
|
|
3
|
+
import {
|
|
4
|
+
WarningBanner
|
|
5
|
+
} from "./chunk-IAS3E2S3.mjs";
|
|
6
|
+
import {
|
|
7
|
+
TabsComponent
|
|
8
|
+
} from "./chunk-IFGQR4J6.mjs";
|
|
9
|
+
import {
|
|
10
|
+
TabsContent,
|
|
11
|
+
TabsContents
|
|
12
|
+
} from "./chunk-UWTGHSWT.mjs";
|
|
13
|
+
import {
|
|
14
|
+
TabsList,
|
|
15
|
+
TabsTab
|
|
16
|
+
} from "./chunk-CLXHNRAI.mjs";
|
|
17
|
+
import "./chunk-XVFQWVHO.mjs";
|
|
2
18
|
import {
|
|
3
19
|
TextBody,
|
|
4
20
|
TextBodySmall,
|
|
@@ -17,45 +33,57 @@ import {
|
|
|
17
33
|
import {
|
|
18
34
|
Text
|
|
19
35
|
} from "./chunk-57SSGJ4X.mjs";
|
|
20
|
-
import "./chunk-3D2MWIEX.mjs";
|
|
21
36
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./chunk-
|
|
37
|
+
ModalComponent
|
|
38
|
+
} from "./chunk-MRCE2Q7A.mjs";
|
|
39
|
+
import "./chunk-2ICZ3Q7N.mjs";
|
|
24
40
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
NavbarComponent
|
|
42
|
+
} from "./chunk-2JH4FG63.mjs";
|
|
43
|
+
import {
|
|
44
|
+
useNavbarExpendableMenuContext
|
|
45
|
+
} from "./chunk-X46LM2QH.mjs";
|
|
46
|
+
import "./chunk-MGUYIOP2.mjs";
|
|
47
|
+
import "./chunk-625SVQEP.mjs";
|
|
48
|
+
import "./chunk-L4GQJETB.mjs";
|
|
49
|
+
import {
|
|
50
|
+
Container
|
|
51
|
+
} from "./chunk-I6GDRDYD.mjs";
|
|
52
|
+
import {
|
|
53
|
+
HStack,
|
|
54
|
+
Stack,
|
|
55
|
+
VStack
|
|
56
|
+
} from "./chunk-27XJO7E4.mjs";
|
|
57
|
+
import "./chunk-XLLYMQLW.mjs";
|
|
58
|
+
import {
|
|
59
|
+
Link
|
|
60
|
+
} from "./chunk-5QL53TR2.mjs";
|
|
61
|
+
import "./chunk-6QV3OV66.mjs";
|
|
30
62
|
import {
|
|
31
63
|
MessageComponent
|
|
32
64
|
} from "./chunk-AR2NOI4U.mjs";
|
|
33
65
|
import "./chunk-ME66RUR6.mjs";
|
|
34
|
-
import {
|
|
35
|
-
ModalComponent
|
|
36
|
-
} from "./chunk-QSYU64U4.mjs";
|
|
37
|
-
import "./chunk-POJTVNEO.mjs";
|
|
38
|
-
import {
|
|
39
|
-
NavbarComponent
|
|
40
|
-
} from "./chunk-H3VGHTDC.mjs";
|
|
41
|
-
import "./chunk-2E6XPNPX.mjs";
|
|
42
|
-
import "./chunk-625SVQEP.mjs";
|
|
43
|
-
import "./chunk-MGUYIOP2.mjs";
|
|
44
66
|
import {
|
|
45
67
|
CardComponent
|
|
46
68
|
} from "./chunk-JC6DBIFE.mjs";
|
|
69
|
+
import "./chunk-X5JERDDU.mjs";
|
|
47
70
|
import "./chunk-2YL2MVWN.mjs";
|
|
48
71
|
import {
|
|
49
72
|
DescriptionList
|
|
50
73
|
} from "./chunk-XMB45ILT.mjs";
|
|
51
|
-
import "./chunk-T24JZIQO.mjs";
|
|
52
|
-
import "./chunk-2KX7VFN2.mjs";
|
|
53
74
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./chunk-
|
|
75
|
+
FooterComponent
|
|
76
|
+
} from "./chunk-RXIP2JTE.mjs";
|
|
77
|
+
import "./chunk-BZRCDLEW.mjs";
|
|
78
|
+
import {
|
|
79
|
+
LinkList
|
|
80
|
+
} from "./chunk-GJDRW6PA.mjs";
|
|
56
81
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
82
|
+
OrderedList,
|
|
83
|
+
UnorderedList
|
|
84
|
+
} from "./chunk-PMLDK3VC.mjs";
|
|
85
|
+
import "./chunk-HT2EIJAD.mjs";
|
|
86
|
+
import "./chunk-T24JZIQO.mjs";
|
|
59
87
|
import "./chunk-BYEJZSG5.mjs";
|
|
60
88
|
import {
|
|
61
89
|
Select
|
|
@@ -64,78 +92,76 @@ import "./chunk-AGZHQDCQ.mjs";
|
|
|
64
92
|
import {
|
|
65
93
|
Textarea
|
|
66
94
|
} from "./chunk-RK6BB3HH.mjs";
|
|
67
|
-
import "./chunk-YJOOSTJC.mjs";
|
|
68
|
-
import "./chunk-LMF3QGSF.mjs";
|
|
69
|
-
import {
|
|
70
|
-
Fieldset
|
|
71
|
-
} from "./chunk-37WVYY6X.mjs";
|
|
72
95
|
import "./chunk-7LPYJC6S.mjs";
|
|
73
96
|
import {
|
|
74
97
|
Input
|
|
75
98
|
} from "./chunk-6TI7ACBR.mjs";
|
|
76
99
|
import "./chunk-Y5SUMFYJ.mjs";
|
|
77
100
|
import "./chunk-SKI2APSK.mjs";
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import {
|
|
80
|
-
ErrorMessage
|
|
81
|
-
} from "./chunk-IL7576PP.mjs";
|
|
101
|
+
import "./chunk-2KX7VFN2.mjs";
|
|
82
102
|
import {
|
|
83
|
-
|
|
84
|
-
} from "./chunk-
|
|
85
|
-
import "./chunk-OIQUYB26.mjs";
|
|
103
|
+
Radiobutton
|
|
104
|
+
} from "./chunk-HMB4TY2F.mjs";
|
|
86
105
|
import {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
106
|
+
RadioGroup,
|
|
107
|
+
useRadioGroupContext
|
|
108
|
+
} from "./chunk-6NGF7FFY.mjs";
|
|
109
|
+
import "./chunk-YJOOSTJC.mjs";
|
|
90
110
|
import {
|
|
91
|
-
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import "./chunk-
|
|
111
|
+
Checkbox
|
|
112
|
+
} from "./chunk-RHCMBJOT.mjs";
|
|
113
|
+
import "./chunk-LMF3QGSF.mjs";
|
|
94
114
|
import {
|
|
95
|
-
|
|
96
|
-
|
|
115
|
+
Fieldset,
|
|
116
|
+
useFieldsetContext
|
|
117
|
+
} from "./chunk-DM4PJFLG.mjs";
|
|
118
|
+
import "./chunk-NSLSA7F7.mjs";
|
|
97
119
|
import {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
} from "./chunk-PMLDK3VC.mjs";
|
|
101
|
-
import "./chunk-K6PP3ACJ.mjs";
|
|
120
|
+
ErrorMessage
|
|
121
|
+
} from "./chunk-IL7576PP.mjs";
|
|
102
122
|
import {
|
|
103
|
-
|
|
104
|
-
} from "./chunk-
|
|
105
|
-
import "./chunk-
|
|
123
|
+
AccordionComponent
|
|
124
|
+
} from "./chunk-XIHKASNB.mjs";
|
|
125
|
+
import "./chunk-GUB3UCXO.mjs";
|
|
126
|
+
import "./chunk-YXHXRUFX.mjs";
|
|
127
|
+
import "./chunk-62F4I3MQ.mjs";
|
|
128
|
+
import "./chunk-VRIY65P5.mjs";
|
|
106
129
|
import "./chunk-ZOCMUEOX.mjs";
|
|
107
130
|
import {
|
|
108
131
|
Breadcrumbs
|
|
109
132
|
} from "./chunk-YKDKFWP2.mjs";
|
|
110
|
-
import "./chunk-HT2EIJAD.mjs";
|
|
111
133
|
import {
|
|
112
134
|
PrimaryButton,
|
|
113
135
|
SecondaryButton
|
|
114
136
|
} from "./chunk-OUHO4LGN.mjs";
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import
|
|
117
|
-
|
|
118
|
-
} from "./chunk-DJRMXOCP.mjs";
|
|
119
|
-
import "./chunk-KRGKVH5J.mjs";
|
|
120
|
-
import "./chunk-FT5CX2W5.mjs";
|
|
121
|
-
import "./chunk-SAGJ5W7M.mjs";
|
|
122
|
-
import "./chunk-VRIY65P5.mjs";
|
|
137
|
+
import "./chunk-KQITCS3U.mjs";
|
|
138
|
+
import "./chunk-DZNH5JHY.mjs";
|
|
139
|
+
import "./chunk-K6PP3ACJ.mjs";
|
|
123
140
|
import {
|
|
124
141
|
Badge,
|
|
125
142
|
DarkBadge,
|
|
126
143
|
WarningBadge,
|
|
127
144
|
WhiteBadge
|
|
128
145
|
} from "./chunk-W3D4VR4Y.mjs";
|
|
146
|
+
import {
|
|
147
|
+
BoxComponent
|
|
148
|
+
} from "./chunk-BZNDK3KJ.mjs";
|
|
149
|
+
import "./chunk-EGXM575K.mjs";
|
|
129
150
|
import "./chunk-WCA2WPFS.mjs";
|
|
130
151
|
import "./chunk-V3PAFMK5.mjs";
|
|
152
|
+
import "./chunk-ZTYEOZLK.mjs";
|
|
153
|
+
import "./chunk-NE6W2PCD.mjs";
|
|
131
154
|
import "./chunk-MSFHJVHD.mjs";
|
|
132
155
|
import {
|
|
133
156
|
ShowMoreButton
|
|
134
157
|
} from "./chunk-ZDPU3N54.mjs";
|
|
158
|
+
import {
|
|
159
|
+
AutoAnimateHeight
|
|
160
|
+
} from "./chunk-AKYK3XFN.mjs";
|
|
135
161
|
import "./chunk-JTZPQHKD.mjs";
|
|
136
162
|
import {
|
|
137
163
|
Skeleton
|
|
138
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-A47QULAK.mjs";
|
|
139
165
|
import "./chunk-TJH5QJMS.mjs";
|
|
140
166
|
import {
|
|
141
167
|
StepIndicator
|
|
@@ -144,11 +170,6 @@ import "./chunk-JKCVB5TR.mjs";
|
|
|
144
170
|
import {
|
|
145
171
|
StyledHtml
|
|
146
172
|
} from "./chunk-S5RB7KLJ.mjs";
|
|
147
|
-
import "./chunk-33JD5XDW.mjs";
|
|
148
|
-
import "./chunk-DZNH5JHY.mjs";
|
|
149
|
-
import {
|
|
150
|
-
AutoAnimateHeight
|
|
151
|
-
} from "./chunk-AKYK3XFN.mjs";
|
|
152
173
|
import "./chunk-R4SQKVDQ.mjs";
|
|
153
174
|
|
|
154
175
|
// src/index.tsx
|
|
@@ -166,6 +187,8 @@ export {
|
|
|
166
187
|
DescriptionList,
|
|
167
188
|
ErrorMessage,
|
|
168
189
|
Fieldset,
|
|
190
|
+
FooterComponent as Footer,
|
|
191
|
+
HStack,
|
|
169
192
|
Input,
|
|
170
193
|
Link,
|
|
171
194
|
LinkList,
|
|
@@ -180,9 +203,14 @@ export {
|
|
|
180
203
|
Select,
|
|
181
204
|
ShowMoreButton,
|
|
182
205
|
Skeleton,
|
|
206
|
+
Stack,
|
|
183
207
|
StepIndicator,
|
|
184
208
|
StyledHtml,
|
|
185
209
|
TabsComponent as Tabs,
|
|
210
|
+
TabsContent,
|
|
211
|
+
TabsContents,
|
|
212
|
+
TabsList,
|
|
213
|
+
TabsTab,
|
|
186
214
|
Text,
|
|
187
215
|
TextBody,
|
|
188
216
|
TextBodySmall,
|
|
@@ -199,8 +227,12 @@ export {
|
|
|
199
227
|
TextTechnicalTitle,
|
|
200
228
|
Textarea,
|
|
201
229
|
UnorderedList,
|
|
230
|
+
VStack,
|
|
202
231
|
WarningBadge,
|
|
203
232
|
WarningBanner,
|
|
204
|
-
WhiteBadge
|
|
233
|
+
WhiteBadge,
|
|
234
|
+
useFieldsetContext,
|
|
235
|
+
useNavbarExpendableMenuContext,
|
|
236
|
+
useRadioGroupContext
|
|
205
237
|
};
|
|
206
238
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.tsx"],"sourcesContent":["/**\n * Import the hedwig css file, so the consumers don't have to. Plug and play.\n *\n * NOTE: Importing the full path, not just the package name.\n * For some reason vite did not include the css during development when this file only imported the package name.\n *\n * Consumers using the `@postenbring/hedwig-css` package directly should only need to import the package without a path.\n */\nimport \"@postenbring/hedwig-css/dist/index.css\";\n\nexport * from \"./index-no-css\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.tsx"],"sourcesContent":["/**\n * Import the hedwig css file, so the consumers don't have to. Plug and play.\n *\n * NOTE: Importing the full path, not just the package name.\n * For some reason vite did not include the css during development when this file only imported the package name.\n *\n * Consumers using the `@postenbring/hedwig-css` package directly should only need to import the package without a path.\n */\nimport \"@postenbring/hedwig-css/dist/index.css\";\n\nexport * from \"./index-no-css\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,OAAO;","names":[]}
|
package/dist/layout/index.d.mts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export { Container_alias_2 as Container } from '../_tsup-dts-rollup';
|
|
2
1
|
export { ContainerProps_alias_2 as ContainerProps } from '../_tsup-dts-rollup';
|
|
2
|
+
export { Container_alias_2 as Container } from '../_tsup-dts-rollup';
|
|
3
|
+
export { StackProps_alias_2 as StackProps } from '../_tsup-dts-rollup';
|
|
4
|
+
export { Stack_alias_2 as Stack } from '../_tsup-dts-rollup';
|
|
5
|
+
export { HStack_alias_2 as HStack } from '../_tsup-dts-rollup';
|
|
6
|
+
export { VStack_alias_2 as VStack } from '../_tsup-dts-rollup';
|
package/dist/layout/index.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export { Container_alias_2 as Container } from '../_tsup-dts-rollup';
|
|
2
1
|
export { ContainerProps_alias_2 as ContainerProps } from '../_tsup-dts-rollup';
|
|
2
|
+
export { Container_alias_2 as Container } from '../_tsup-dts-rollup';
|
|
3
|
+
export { StackProps_alias_2 as StackProps } from '../_tsup-dts-rollup';
|
|
4
|
+
export { Stack_alias_2 as Stack } from '../_tsup-dts-rollup';
|
|
5
|
+
export { HStack_alias_2 as HStack } from '../_tsup-dts-rollup';
|
|
6
|
+
export { VStack_alias_2 as VStack } from '../_tsup-dts-rollup';
|
package/dist/layout/index.js
CHANGED
|
@@ -49,7 +49,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
49
49
|
// src/layout/index.tsx
|
|
50
50
|
var layout_exports = {};
|
|
51
51
|
__export(layout_exports, {
|
|
52
|
-
Container: () => Container
|
|
52
|
+
Container: () => Container,
|
|
53
|
+
HStack: () => HStack,
|
|
54
|
+
Stack: () => Stack,
|
|
55
|
+
VStack: () => VStack
|
|
53
56
|
});
|
|
54
57
|
module.exports = __toCommonJS(layout_exports);
|
|
55
58
|
|
|
@@ -75,8 +78,65 @@ var Container = (0, import_react.forwardRef)(
|
|
|
75
78
|
}
|
|
76
79
|
);
|
|
77
80
|
Container.displayName = "Container";
|
|
81
|
+
|
|
82
|
+
// src/layout/stack/stack.tsx
|
|
83
|
+
var React = require("react");
|
|
84
|
+
var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname");
|
|
85
|
+
var import_react2 = require("react");
|
|
86
|
+
var import_react_slot = require("@radix-ui/react-slot");
|
|
87
|
+
|
|
88
|
+
// src/layout/spacing.ts
|
|
89
|
+
function getSpacingVariable(size) {
|
|
90
|
+
return `var(--hds-spacing-${size})`;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// src/layout/responsive.ts
|
|
94
|
+
function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
|
|
95
|
+
if (!inputValues)
|
|
96
|
+
return {};
|
|
97
|
+
if (typeof inputValues !== "object") {
|
|
98
|
+
return { [`${variable}-xsmall`]: valueTransformer(inputValues) };
|
|
99
|
+
}
|
|
100
|
+
const result = {};
|
|
101
|
+
for (const [key, value] of Object.entries(inputValues)) {
|
|
102
|
+
result[`${variable}-${key}`] = valueTransformer(value);
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// src/layout/stack/stack.tsx
|
|
108
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
109
|
+
var Stack = (0, import_react2.forwardRef)(
|
|
110
|
+
(_a, ref) => {
|
|
111
|
+
var _b = _a, { children, asChild, className, style: _style, gap, direction, wrap, align, justify } = _b, rest = __objRest(_b, ["children", "asChild", "className", "style", "gap", "direction", "wrap", "align", "justify"]);
|
|
112
|
+
const Component = asChild ? import_react_slot.Slot : "div";
|
|
113
|
+
const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-stack-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-stack-direction", direction)), getResponsiveProps("--hds-stack-wrap", wrap, (value) => value ? "wrap" : "nowrap")), getResponsiveProps("--hds-stack-align", align)), getResponsiveProps("--hds-stack-justify", justify));
|
|
114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
115
|
+
Component,
|
|
116
|
+
__spreadProps(__spreadValues({
|
|
117
|
+
style,
|
|
118
|
+
className: (0, import_typed_classname2.clsx)("hds-stack", className),
|
|
119
|
+
ref
|
|
120
|
+
}, rest), {
|
|
121
|
+
children
|
|
122
|
+
})
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
Stack.displayName = "Stack";
|
|
127
|
+
var HStack = (0, import_react2.forwardRef)((props, ref) => {
|
|
128
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "row" }));
|
|
129
|
+
});
|
|
130
|
+
HStack.displayName = "HStack";
|
|
131
|
+
var VStack = (0, import_react2.forwardRef)((props, ref) => {
|
|
132
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Stack, __spreadProps(__spreadValues({ ref }, props), { direction: "column" }));
|
|
133
|
+
});
|
|
134
|
+
VStack.displayName = "VStack";
|
|
78
135
|
// Annotate the CommonJS export names for ESM import in node:
|
|
79
136
|
0 && (module.exports = {
|
|
80
|
-
Container
|
|
137
|
+
Container,
|
|
138
|
+
HStack,
|
|
139
|
+
Stack,
|
|
140
|
+
VStack
|
|
81
141
|
});
|
|
82
142
|
//# sourceMappingURL=index.js.map
|
package/dist/layout/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/layout/index.tsx","../../src/layout/container/container.tsx"],"sourcesContent":["export
|
|
1
|
+
{"version":3,"sources":["../../src/layout/index.tsx","../../src/layout/container/container.tsx","../../src/layout/stack/stack.tsx","../../src/layout/spacing.ts","../../src/layout/responsive.ts"],"sourcesContent":["export * from \"./container/container\";\nexport * from \"./stack/stack\";\n","import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { forwardRef } from \"react\";\nimport type { OverridableComponent } from \"../../utils\";\n\nexport interface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n variant?: \"default\" | \"slim\";\n children: ReactNode;\n}\n\n/**\n * Container is a layout component that is used to wrap content.\n * It ensures a max-width and minimum spacing on the sides.\n */\nexport const Container: OverridableComponent<ContainerProps, HTMLDivElement> = forwardRef(\n ({ as: Component = \"div\", className, children, variant, ...rest }, ref) => {\n return (\n <Component\n {...rest}\n className={clsx(\n \"hds-container\",\n { \"hds-container--slim\": variant === \"slim\" },\n className as undefined,\n )}\n ref={ref}\n >\n {children}\n </Component>\n );\n },\n);\nContainer.displayName = \"Container\";\n","import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { getSpacingVariable, type ResponsiveSpacingSizes, type SpacingSizes } from \"../spacing\";\nimport { getResponsiveProps, type ResponsiveProp } from \"../responsive\";\n\ntype CSSPropertiesWithVar = React.CSSProperties & {\n \"--hds-stack-gap\"?: string;\n \"--hds-stack-direction\"?: string;\n \"--hds-stack-wrap\"?: string;\n \"--hds-stack-align\"?: string;\n \"--hds-stack-justify\"?: string;\n};\n\nexport interface StackProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n\n gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;\n direction?: ResponsiveProp<React.CSSProperties[\"flexDirection\"]>;\n wrap?: ResponsiveProp<boolean>;\n align?: ResponsiveProp<React.CSSProperties[\"alignItems\"]>;\n justify?: ResponsiveProp<React.CSSProperties[\"justifyContent\"]>;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n */\n asChild?: boolean;\n}\n\n/**\n * 🚨 WORK IN PROGRESS 🚨\n *\n * TODO\n * - [ ] Add more examples\n * - [ ] Document usage\n * - [ ] Document props\n */\nexport const Stack = forwardRef<HTMLDivElement, StackProps>(\n (\n { children, asChild, className, style: _style, gap, direction, wrap, align, justify, ...rest },\n ref,\n ) => {\n const Component = asChild ? Slot : \"div\";\n const style: CSSPropertiesWithVar = {\n ..._style,\n ...getResponsiveProps(\"--hds-stack-gap\", gap, getSpacingVariable),\n ...getResponsiveProps(\"--hds-stack-direction\", direction),\n ...getResponsiveProps(\"--hds-stack-wrap\", wrap, (value) => (value ? \"wrap\" : \"nowrap\")),\n ...getResponsiveProps(\"--hds-stack-align\", align),\n ...getResponsiveProps(\"--hds-stack-justify\", justify),\n };\n return (\n <Component\n style={style}\n className={clsx(\"hds-stack\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nStack.displayName = \"Stack\";\n\n/**\n * 🚨 WORK IN PROGRESS 🚨\n *\n * TODO\n * - [ ] Add more examples\n * - [ ] Document usage\n * - [ ] Document props\n */\nexport const HStack = forwardRef<HTMLDivElement, Omit<StackProps, \"direction\">>((props, ref) => {\n return <Stack ref={ref} {...props} direction=\"row\" />;\n});\nHStack.displayName = \"HStack\";\n\n/**\n * 🚨 WORK IN PROGRESS 🚨\n *\n * TODO\n * - [ ] Add more examples\n * - [ ] Document usage\n * - [ ] Document props\n */\nexport const VStack = forwardRef<HTMLDivElement, Omit<StackProps, \"direction\">>((props, ref) => {\n return <Stack ref={ref} {...props} direction=\"column\" />;\n});\nVStack.displayName = \"VStack\";\n","// TODO: Get from tokens package\n// For now it's fine, since it's still in this monorepo\nconst spacingSizes = {\n \"4\": \"4\",\n \"8\": \"8\",\n \"12\": \"12\",\n \"16\": \"16\",\n \"20\": \"20\",\n \"24\": \"24\",\n \"32\": \"32\",\n \"40\": \"40\",\n \"48\": \"48\",\n \"64\": \"64\",\n \"80\": \"80\",\n \"120\": \"120\",\n} as const;\nexport type SpacingSizes = keyof typeof spacingSizes;\n\nconst responsiveSpacingSizes = {\n \"4-8\": \"4-8\",\n \"8-12\": \"8-12\",\n \"12-16\": \"12-16\",\n \"16-20\": \"16-20\",\n \"20-24\": \"20-24\",\n \"24-32\": \"24-32\",\n \"32-40\": \"32-40\",\n \"40-48\": \"40-48\",\n \"48-64\": \"48-64\",\n \"64-80\": \"64-80\",\n \"80-120\": \"80-120\",\n \"120-160\": \"120-160\",\n} as const;\nexport type ResponsiveSpacingSizes = keyof typeof responsiveSpacingSizes;\n\nexport function getSpacingVariable(size: SpacingSizes | ResponsiveSpacingSizes) {\n return `var(--hds-spacing-${size})`;\n}\n","type Breakpoints = \"xsmall\" | \"small\" | \"medium\" | \"large\" | \"xlarge\";\n\ntype ResponsiveValues<T> = {\n [Breakpoint in Breakpoints]?: T;\n};\n\nexport type ResponsiveProp<T> = T | ResponsiveValues<T>;\n\nexport function getResponsiveProps<T>(\n variable: `--hds-${string}`,\n inputValues?: ResponsiveProp<T>,\n valueTransformer: (value: T) => string = (value) => String(value),\n) {\n if (!inputValues) return {};\n\n if (typeof inputValues !== \"object\") {\n return { [`${variable}-xsmall`]: valueTransformer(inputValues) };\n }\n\n const result: Record<string, string> = {};\n for (const [key, value] of Object.entries(inputValues as ResponsiveValues<T>)) {\n result[`${variable}-${key}`] = valueTransformer(value);\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,6BAAqB;AAErB,mBAA2B;AAerB;AAHC,IAAM,gBAAkE;AAAA,EAC7E,CAAC,IAAkE,QAAQ;AAA1E,iBAAE,MAAI,YAAY,OAAO,WAAW,UAAU,QAfjD,IAeG,IAA0D,iBAA1D,IAA0D,CAAxD,MAAuB,aAAW,YAAU;AAC7C,WACE;AAAA,MAAC;AAAA,uCACK,OADL;AAAA,QAEC,eAAW;AAAA,UACT;AAAA,UACA,EAAE,uBAAuB,YAAY,OAAO;AAAA,UAC5C;AAAA,QACF;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,UAAU,cAAc;;;AC/BxB,YAAuB;AACvB,IAAAA,0BAAqB;AACrB,IAAAC,gBAA2B;AAC3B,wBAAqB;;;AC+Bd,SAAS,mBAAmB,MAA6C;AAC9E,SAAO,qBAAqB,IAAI;AAClC;;;AC5BO,SAAS,mBACd,UACA,aACA,mBAAyC,CAAC,UAAU,OAAO,KAAK,GAChE;AACA,MAAI,CAAC;AAAa,WAAO,CAAC;AAE1B,MAAI,OAAO,gBAAgB,UAAU;AACnC,WAAO,EAAE,CAAC,GAAG,QAAQ,SAAS,GAAG,iBAAiB,WAAW,EAAE;AAAA,EACjE;AAEA,QAAM,SAAiC,CAAC;AACxC,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,WAAkC,GAAG;AAC7E,WAAO,GAAG,QAAQ,IAAI,GAAG,EAAE,IAAI,iBAAiB,KAAK;AAAA,EACvD;AAEA,SAAO;AACT;;;AF4BM,IAAAC,sBAAA;AAfC,IAAM,YAAQ;AAAA,EACnB,CACE,IACA,QACG;AAFH,iBAAE,YAAU,SAAS,WAAW,OAAO,QAAQ,KAAK,WAAW,MAAM,OAAO,QAxChF,IAwCI,IAAwF,iBAAxF,IAAwF,CAAtF,YAAU,WAAS,aAAW,SAAe,OAAK,aAAW,QAAM,SAAO;AAG5E,UAAM,YAAY,UAAU,yBAAO;AACnC,UAAM,QAA8B,8FAC/B,SACA,mBAAmB,mBAAmB,KAAK,kBAAkB,IAC7D,mBAAmB,yBAAyB,SAAS,IACrD,mBAAmB,oBAAoB,MAAM,CAAC,UAAW,QAAQ,SAAS,QAAS,IACnF,mBAAmB,qBAAqB,KAAK,IAC7C,mBAAmB,uBAAuB,OAAO;AAEtD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,8BAAK,aAAa,SAAsB;AAAA,QACnD;AAAA,SACI,OAJL;AAAA,QAME;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,MAAM,cAAc;AAUb,IAAM,aAAS,0BAA0D,CAAC,OAAO,QAAQ;AAC9F,SAAO,6CAAC,sCAAM,OAAc,QAApB,EAA2B,WAAU,QAAM;AACrD,CAAC;AACD,OAAO,cAAc;AAUd,IAAM,aAAS,0BAA0D,CAAC,OAAO,QAAQ;AAC9F,SAAO,6CAAC,sCAAM,OAAc,QAApB,EAA2B,WAAU,WAAS;AACxD,CAAC;AACD,OAAO,cAAc;","names":["import_typed_classname","import_react","import_jsx_runtime"]}
|
package/dist/layout/index.mjs
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-L4GQJETB.mjs";
|
|
2
2
|
import {
|
|
3
3
|
Container
|
|
4
4
|
} from "../chunk-I6GDRDYD.mjs";
|
|
5
|
+
import {
|
|
6
|
+
HStack,
|
|
7
|
+
Stack,
|
|
8
|
+
VStack
|
|
9
|
+
} from "../chunk-27XJO7E4.mjs";
|
|
10
|
+
import "../chunk-ZTYEOZLK.mjs";
|
|
11
|
+
import "../chunk-NE6W2PCD.mjs";
|
|
5
12
|
import "../chunk-R4SQKVDQ.mjs";
|
|
6
13
|
export {
|
|
7
|
-
Container
|
|
14
|
+
Container,
|
|
15
|
+
HStack,
|
|
16
|
+
Stack,
|
|
17
|
+
VStack
|
|
8
18
|
};
|
|
9
19
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/layout/responsive.ts
|
|
21
|
+
var responsive_exports = {};
|
|
22
|
+
__export(responsive_exports, {
|
|
23
|
+
getResponsiveProps: () => getResponsiveProps
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(responsive_exports);
|
|
26
|
+
function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
|
|
27
|
+
if (!inputValues)
|
|
28
|
+
return {};
|
|
29
|
+
if (typeof inputValues !== "object") {
|
|
30
|
+
return { [`${variable}-xsmall`]: valueTransformer(inputValues) };
|
|
31
|
+
}
|
|
32
|
+
const result = {};
|
|
33
|
+
for (const [key, value] of Object.entries(inputValues)) {
|
|
34
|
+
result[`${variable}-${key}`] = valueTransformer(value);
|
|
35
|
+
}
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
getResponsiveProps
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=responsive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/layout/responsive.ts"],"sourcesContent":["type Breakpoints = \"xsmall\" | \"small\" | \"medium\" | \"large\" | \"xlarge\";\n\ntype ResponsiveValues<T> = {\n [Breakpoint in Breakpoints]?: T;\n};\n\nexport type ResponsiveProp<T> = T | ResponsiveValues<T>;\n\nexport function getResponsiveProps<T>(\n variable: `--hds-${string}`,\n inputValues?: ResponsiveProp<T>,\n valueTransformer: (value: T) => string = (value) => String(value),\n) {\n if (!inputValues) return {};\n\n if (typeof inputValues !== \"object\") {\n return { [`${variable}-xsmall`]: valueTransformer(inputValues) };\n }\n\n const result: Record<string, string> = {};\n for (const [key, value] of Object.entries(inputValues as ResponsiveValues<T>)) {\n result[`${variable}-${key}`] = valueTransformer(value);\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,SAAS,mBACd,UACA,aACA,mBAAyC,CAAC,UAAU,OAAO,KAAK,GAChE;AACA,MAAI,CAAC;AAAa,WAAO,CAAC;AAE1B,MAAI,OAAO,gBAAgB,UAAU;AACnC,WAAO,EAAE,CAAC,GAAG,QAAQ,SAAS,GAAG,iBAAiB,WAAW,EAAE;AAAA,EACjE;AAEA,QAAM,SAAiC,CAAC;AACxC,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,WAAkC,GAAG;AAC7E,WAAO,GAAG,QAAQ,IAAI,GAAG,EAAE,IAAI,iBAAiB,KAAK;AAAA,EACvD;AAEA,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/layout/spacing.ts
|
|
21
|
+
var spacing_exports = {};
|
|
22
|
+
__export(spacing_exports, {
|
|
23
|
+
getSpacingVariable: () => getSpacingVariable
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(spacing_exports);
|
|
26
|
+
function getSpacingVariable(size) {
|
|
27
|
+
return `var(--hds-spacing-${size})`;
|
|
28
|
+
}
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
getSpacingVariable
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=spacing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/layout/spacing.ts"],"sourcesContent":["// TODO: Get from tokens package\n// For now it's fine, since it's still in this monorepo\nconst spacingSizes = {\n \"4\": \"4\",\n \"8\": \"8\",\n \"12\": \"12\",\n \"16\": \"16\",\n \"20\": \"20\",\n \"24\": \"24\",\n \"32\": \"32\",\n \"40\": \"40\",\n \"48\": \"48\",\n \"64\": \"64\",\n \"80\": \"80\",\n \"120\": \"120\",\n} as const;\nexport type SpacingSizes = keyof typeof spacingSizes;\n\nconst responsiveSpacingSizes = {\n \"4-8\": \"4-8\",\n \"8-12\": \"8-12\",\n \"12-16\": \"12-16\",\n \"16-20\": \"16-20\",\n \"20-24\": \"20-24\",\n \"24-32\": \"24-32\",\n \"32-40\": \"32-40\",\n \"40-48\": \"40-48\",\n \"48-64\": \"48-64\",\n \"64-80\": \"64-80\",\n \"80-120\": \"80-120\",\n \"120-160\": \"120-160\",\n} as const;\nexport type ResponsiveSpacingSizes = keyof typeof responsiveSpacingSizes;\n\nexport function getSpacingVariable(size: SpacingSizes | ResponsiveSpacingSizes) {\n return `var(--hds-spacing-${size})`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkCO,SAAS,mBAAmB,MAA6C;AAC9E,SAAO,qBAAqB,IAAI;AAClC;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Stack_alias_3 as Stack } from '../../_tsup-dts-rollup';
|
|
2
|
+
export { HStack_alias_3 as HStack } from '../../_tsup-dts-rollup';
|
|
3
|
+
export { VStack_alias_3 as VStack } from '../../_tsup-dts-rollup';
|
|
4
|
+
export { StackProps_alias_3 as StackProps } from '../../_tsup-dts-rollup';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Stack_alias_3 as Stack } from '../../_tsup-dts-rollup';
|
|
2
|
+
export { HStack_alias_3 as HStack } from '../../_tsup-dts-rollup';
|
|
3
|
+
export { VStack_alias_3 as VStack } from '../../_tsup-dts-rollup';
|
|
4
|
+
export { StackProps_alias_3 as StackProps } from '../../_tsup-dts-rollup';
|