@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.
Files changed (208) hide show
  1. package/dist/_tsup-dts-rollup.d.mts +301 -68
  2. package/dist/_tsup-dts-rollup.d.ts +301 -68
  3. package/dist/accordion/accordion-content.js +5 -9
  4. package/dist/accordion/accordion-content.js.map +1 -1
  5. package/dist/accordion/accordion-content.mjs +1 -1
  6. package/dist/accordion/accordion-header.js +6 -9
  7. package/dist/accordion/accordion-header.js.map +1 -1
  8. package/dist/accordion/accordion-header.mjs +1 -1
  9. package/dist/accordion/accordion-item.js +2 -7
  10. package/dist/accordion/accordion-item.js.map +1 -1
  11. package/dist/accordion/accordion-item.mjs +1 -1
  12. package/dist/accordion/index.js +13 -25
  13. package/dist/accordion/index.js.map +1 -1
  14. package/dist/accordion/index.mjs +4 -4
  15. package/dist/chunk-27XJO7E4.mjs +51 -0
  16. package/dist/chunk-27XJO7E4.mjs.map +1 -0
  17. package/dist/{chunk-POJTVNEO.mjs → chunk-2ICZ3Q7N.mjs} +1 -1
  18. package/dist/chunk-2ICZ3Q7N.mjs.map +1 -0
  19. package/dist/{chunk-H3VGHTDC.mjs → chunk-2JH4FG63.mjs} +2 -2
  20. package/dist/chunk-2JH4FG63.mjs.map +1 -0
  21. package/dist/{chunk-SAGJ5W7M.mjs → chunk-62F4I3MQ.mjs} +3 -8
  22. package/dist/{chunk-SAGJ5W7M.mjs.map → chunk-62F4I3MQ.mjs.map} +1 -1
  23. package/dist/{chunk-V4NGUB4I.mjs → chunk-6NGF7FFY.mjs} +2 -2
  24. package/dist/chunk-6NGF7FFY.mjs.map +1 -0
  25. package/dist/{chunk-BYDSISQZ.mjs → chunk-A47QULAK.mjs} +2 -2
  26. package/dist/{chunk-BYDSISQZ.mjs.map → chunk-A47QULAK.mjs.map} +1 -1
  27. package/dist/chunk-BZRCDLEW.mjs +118 -0
  28. package/dist/chunk-BZRCDLEW.mjs.map +1 -0
  29. package/dist/chunk-CLXHNRAI.mjs +104 -0
  30. package/dist/chunk-CLXHNRAI.mjs.map +1 -0
  31. package/dist/{chunk-37WVYY6X.mjs → chunk-DM4PJFLG.mjs} +6 -3
  32. package/dist/chunk-DM4PJFLG.mjs.map +1 -0
  33. package/dist/{chunk-KRGKVH5J.mjs → chunk-GUB3UCXO.mjs} +6 -10
  34. package/dist/chunk-GUB3UCXO.mjs.map +1 -0
  35. package/dist/{chunk-WGVZWX5L.mjs → chunk-HMB4TY2F.mjs} +14 -4
  36. package/dist/chunk-HMB4TY2F.mjs.map +1 -0
  37. package/dist/{chunk-5MDJP43L.mjs → chunk-IFGQR4J6.mjs} +10 -10
  38. package/dist/chunk-IFGQR4J6.mjs.map +1 -0
  39. package/dist/chunk-KQITCS3U.mjs +18 -0
  40. package/dist/chunk-KQITCS3U.mjs.map +1 -0
  41. package/dist/chunk-L4GQJETB.mjs +1 -0
  42. package/dist/{chunk-QSYU64U4.mjs → chunk-MRCE2Q7A.mjs} +2 -2
  43. package/dist/chunk-NE6W2PCD.mjs +9 -0
  44. package/dist/chunk-NE6W2PCD.mjs.map +1 -0
  45. package/dist/chunk-RHCMBJOT.mjs +76 -0
  46. package/dist/chunk-RHCMBJOT.mjs.map +1 -0
  47. package/dist/chunk-RXIP2JTE.mjs +19 -0
  48. package/dist/chunk-RXIP2JTE.mjs.map +1 -0
  49. package/dist/{chunk-EJADADIY.mjs → chunk-UWTGHSWT.mjs} +6 -9
  50. package/dist/chunk-UWTGHSWT.mjs.map +1 -0
  51. package/dist/{chunk-2E6XPNPX.mjs → chunk-X46LM2QH.mjs} +9 -6
  52. package/dist/chunk-X46LM2QH.mjs.map +1 -0
  53. package/dist/{chunk-DJRMXOCP.mjs → chunk-XIHKASNB.mjs} +4 -4
  54. package/dist/{chunk-MBBFU4IR.mjs → chunk-XVFQWVHO.mjs} +3 -9
  55. package/dist/{chunk-MBBFU4IR.mjs.map → chunk-XVFQWVHO.mjs.map} +1 -1
  56. package/dist/chunk-YWNVB7TY.mjs +1 -0
  57. package/dist/{chunk-FT5CX2W5.mjs → chunk-YXHXRUFX.mjs} +7 -10
  58. package/dist/chunk-YXHXRUFX.mjs.map +1 -0
  59. package/dist/chunk-ZTYEOZLK.mjs +18 -0
  60. package/dist/chunk-ZTYEOZLK.mjs.map +1 -0
  61. package/dist/footer/footer.d.mts +7 -0
  62. package/dist/footer/footer.d.ts +7 -0
  63. package/dist/footer/footer.js +401 -0
  64. package/dist/footer/footer.js.map +1 -0
  65. package/dist/footer/footer.mjs +26 -0
  66. package/dist/footer/footer.mjs.map +1 -0
  67. package/dist/footer/index.d.mts +7 -0
  68. package/dist/footer/index.d.ts +7 -0
  69. package/dist/footer/index.js +402 -0
  70. package/dist/footer/index.js.map +1 -0
  71. package/dist/footer/index.mjs +19 -0
  72. package/dist/footer/index.mjs.map +1 -0
  73. package/dist/form/checkbox/checkbox.js +122 -24
  74. package/dist/form/checkbox/checkbox.js.map +1 -1
  75. package/dist/form/checkbox/checkbox.mjs +5 -1
  76. package/dist/form/checkbox/index.js +122 -24
  77. package/dist/form/checkbox/index.js.map +1 -1
  78. package/dist/form/checkbox/index.mjs +5 -1
  79. package/dist/form/fieldset/fieldset.d.mts +1 -0
  80. package/dist/form/fieldset/fieldset.d.ts +1 -0
  81. package/dist/form/fieldset/fieldset.js +7 -3
  82. package/dist/form/fieldset/fieldset.js.map +1 -1
  83. package/dist/form/fieldset/fieldset.mjs +5 -3
  84. package/dist/form/fieldset/index.d.mts +1 -0
  85. package/dist/form/fieldset/index.d.ts +1 -0
  86. package/dist/form/fieldset/index.js +7 -3
  87. package/dist/form/fieldset/index.js.map +1 -1
  88. package/dist/form/fieldset/index.mjs +5 -3
  89. package/dist/form/index.d.mts +2 -1
  90. package/dist/form/index.d.ts +2 -1
  91. package/dist/form/index.js +68 -27
  92. package/dist/form/index.js.map +1 -1
  93. package/dist/form/index.mjs +20 -16
  94. package/dist/form/radiobutton/index.d.mts +1 -1
  95. package/dist/form/radiobutton/index.d.ts +1 -1
  96. package/dist/form/radiobutton/index.js +17 -8
  97. package/dist/form/radiobutton/index.js.map +1 -1
  98. package/dist/form/radiobutton/index.mjs +7 -5
  99. package/dist/form/radiobutton/radiobutton.js +13 -6
  100. package/dist/form/radiobutton/radiobutton.js.map +1 -1
  101. package/dist/form/radiobutton/radiobutton.mjs +3 -3
  102. package/dist/form/radiobutton/radiogroup.js +2 -1
  103. package/dist/form/radiobutton/radiogroup.js.map +1 -1
  104. package/dist/form/radiobutton/radiogroup.mjs +2 -2
  105. package/dist/index-no-css.d.mts +20 -7
  106. package/dist/index-no-css.d.ts +20 -7
  107. package/dist/index-no-css.js +537 -310
  108. package/dist/index-no-css.js.map +1 -1
  109. package/dist/index-no-css.mjs +100 -68
  110. package/dist/index.d.mts +20 -7
  111. package/dist/index.d.ts +20 -7
  112. package/dist/index.js +537 -310
  113. package/dist/index.js.map +1 -1
  114. package/dist/index.mjs +100 -68
  115. package/dist/index.mjs.map +1 -1
  116. package/dist/layout/index.d.mts +5 -1
  117. package/dist/layout/index.d.ts +5 -1
  118. package/dist/layout/index.js +62 -2
  119. package/dist/layout/index.js.map +1 -1
  120. package/dist/layout/index.mjs +12 -2
  121. package/dist/layout/responsive.d.mts +2 -0
  122. package/dist/layout/responsive.d.ts +2 -0
  123. package/dist/layout/responsive.js +42 -0
  124. package/dist/layout/responsive.js.map +1 -0
  125. package/dist/layout/responsive.mjs +8 -0
  126. package/dist/layout/responsive.mjs.map +1 -0
  127. package/dist/layout/spacing.d.mts +3 -0
  128. package/dist/layout/spacing.d.ts +3 -0
  129. package/dist/layout/spacing.js +33 -0
  130. package/dist/layout/spacing.js.map +1 -0
  131. package/dist/layout/spacing.mjs +8 -0
  132. package/dist/layout/spacing.mjs.map +1 -0
  133. package/dist/layout/stack/index.d.mts +4 -0
  134. package/dist/layout/stack/index.d.ts +4 -0
  135. package/dist/layout/stack/index.js +117 -0
  136. package/dist/layout/stack/index.js.map +1 -0
  137. package/dist/layout/stack/index.mjs +14 -0
  138. package/dist/layout/stack/index.mjs.map +1 -0
  139. package/dist/layout/stack/stack.d.mts +4 -0
  140. package/dist/layout/stack/stack.d.ts +4 -0
  141. package/dist/layout/stack/stack.js +115 -0
  142. package/dist/layout/stack/stack.js.map +1 -0
  143. package/dist/layout/stack/stack.mjs +14 -0
  144. package/dist/layout/stack/stack.mjs.map +1 -0
  145. package/dist/modal/index.js.map +1 -1
  146. package/dist/modal/index.mjs +2 -2
  147. package/dist/modal/modal.js.map +1 -1
  148. package/dist/modal/modal.mjs +1 -1
  149. package/dist/navbar/index.d.mts +1 -0
  150. package/dist/navbar/index.d.ts +1 -0
  151. package/dist/navbar/index.js +11 -7
  152. package/dist/navbar/index.js.map +1 -1
  153. package/dist/navbar/index.mjs +7 -4
  154. package/dist/navbar/navbar-expandable-menu.d.mts +1 -0
  155. package/dist/navbar/navbar-expandable-menu.d.ts +1 -0
  156. package/dist/navbar/navbar-expandable-menu.js +11 -7
  157. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  158. package/dist/navbar/navbar-expandable-menu.mjs +5 -3
  159. package/dist/skeleton/index.js +1 -1
  160. package/dist/skeleton/index.js.map +1 -1
  161. package/dist/skeleton/index.mjs +1 -1
  162. package/dist/skeleton/skeleton.js +1 -1
  163. package/dist/skeleton/skeleton.js.map +1 -1
  164. package/dist/skeleton/skeleton.mjs +1 -1
  165. package/dist/tabs/context.d.mts +1 -0
  166. package/dist/tabs/context.d.ts +1 -0
  167. package/dist/tabs/context.js +13 -8
  168. package/dist/tabs/context.js.map +1 -1
  169. package/dist/tabs/context.mjs +5 -3
  170. package/dist/tabs/index.d.mts +5 -5
  171. package/dist/tabs/index.d.ts +5 -5
  172. package/dist/tabs/index.js +59 -33
  173. package/dist/tabs/index.js.map +1 -1
  174. package/dist/tabs/index.mjs +16 -6
  175. package/dist/tabs/tabs-content.js +11 -11
  176. package/dist/tabs/tabs-content.js.map +1 -1
  177. package/dist/tabs/tabs-content.mjs +2 -2
  178. package/dist/tabs/tabs-list.d.mts +2 -2
  179. package/dist/tabs/tabs-list.d.ts +2 -2
  180. package/dist/tabs/tabs-list.js +49 -22
  181. package/dist/tabs/tabs-list.js.map +1 -1
  182. package/dist/tabs/tabs-list.mjs +6 -6
  183. package/dist/tabs/tabs.js +2 -14
  184. package/dist/tabs/tabs.js.map +1 -1
  185. package/dist/tabs/tabs.mjs +2 -2
  186. package/package.json +5 -5
  187. package/dist/chunk-2E6XPNPX.mjs.map +0 -1
  188. package/dist/chunk-33JD5XDW.mjs +0 -14
  189. package/dist/chunk-33JD5XDW.mjs.map +0 -1
  190. package/dist/chunk-37WVYY6X.mjs.map +0 -1
  191. package/dist/chunk-5MDJP43L.mjs.map +0 -1
  192. package/dist/chunk-EJADADIY.mjs.map +0 -1
  193. package/dist/chunk-FT5CX2W5.mjs.map +0 -1
  194. package/dist/chunk-H3VGHTDC.mjs.map +0 -1
  195. package/dist/chunk-H4GIHEB2.mjs +0 -1
  196. package/dist/chunk-KRGKVH5J.mjs.map +0 -1
  197. package/dist/chunk-OIQUYB26.mjs +0 -1
  198. package/dist/chunk-POJTVNEO.mjs.map +0 -1
  199. package/dist/chunk-PXHYOQPB.mjs +0 -42
  200. package/dist/chunk-PXHYOQPB.mjs.map +0 -1
  201. package/dist/chunk-V4NGUB4I.mjs.map +0 -1
  202. package/dist/chunk-WGVZWX5L.mjs.map +0 -1
  203. package/dist/chunk-XVZ44NGD.mjs +0 -80
  204. package/dist/chunk-XVZ44NGD.mjs.map +0 -1
  205. /package/dist/{chunk-H4GIHEB2.mjs.map → chunk-L4GQJETB.mjs.map} +0 -0
  206. /package/dist/{chunk-QSYU64U4.mjs.map → chunk-MRCE2Q7A.mjs.map} +0 -0
  207. /package/dist/{chunk-DJRMXOCP.mjs.map → chunk-XIHKASNB.mjs.map} +0 -0
  208. /package/dist/{chunk-OIQUYB26.mjs.map → chunk-YWNVB7TY.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,4 +1,20 @@
1
- import "./chunk-H4GIHEB2.mjs";
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
- WarningBanner
23
- } from "./chunk-IAS3E2S3.mjs";
37
+ ModalComponent
38
+ } from "./chunk-MRCE2Q7A.mjs";
39
+ import "./chunk-2ICZ3Q7N.mjs";
24
40
  import {
25
- TabsComponent
26
- } from "./chunk-5MDJP43L.mjs";
27
- import "./chunk-XVZ44NGD.mjs";
28
- import "./chunk-MBBFU4IR.mjs";
29
- import "./chunk-EJADADIY.mjs";
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
- Radiobutton
55
- } from "./chunk-WGVZWX5L.mjs";
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
- RadioGroup
58
- } from "./chunk-V4NGUB4I.mjs";
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-NSLSA7F7.mjs";
79
- import {
80
- ErrorMessage
81
- } from "./chunk-IL7576PP.mjs";
101
+ import "./chunk-2KX7VFN2.mjs";
82
102
  import {
83
- Checkbox
84
- } from "./chunk-PXHYOQPB.mjs";
85
- import "./chunk-OIQUYB26.mjs";
103
+ Radiobutton
104
+ } from "./chunk-HMB4TY2F.mjs";
86
105
  import {
87
- Container
88
- } from "./chunk-I6GDRDYD.mjs";
89
- import "./chunk-XLLYMQLW.mjs";
106
+ RadioGroup,
107
+ useRadioGroupContext
108
+ } from "./chunk-6NGF7FFY.mjs";
109
+ import "./chunk-YJOOSTJC.mjs";
90
110
  import {
91
- Link
92
- } from "./chunk-5QL53TR2.mjs";
93
- import "./chunk-6QV3OV66.mjs";
111
+ Checkbox
112
+ } from "./chunk-RHCMBJOT.mjs";
113
+ import "./chunk-LMF3QGSF.mjs";
94
114
  import {
95
- LinkList
96
- } from "./chunk-GJDRW6PA.mjs";
115
+ Fieldset,
116
+ useFieldsetContext
117
+ } from "./chunk-DM4PJFLG.mjs";
118
+ import "./chunk-NSLSA7F7.mjs";
97
119
  import {
98
- OrderedList,
99
- UnorderedList
100
- } from "./chunk-PMLDK3VC.mjs";
101
- import "./chunk-K6PP3ACJ.mjs";
120
+ ErrorMessage
121
+ } from "./chunk-IL7576PP.mjs";
102
122
  import {
103
- BoxComponent
104
- } from "./chunk-BZNDK3KJ.mjs";
105
- import "./chunk-EGXM575K.mjs";
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-X5JERDDU.mjs";
116
- import {
117
- AccordionComponent
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-BYDSISQZ.mjs";
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
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,OAAO;","names":[]}
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":[]}
@@ -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';
@@ -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';
@@ -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
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/layout/index.tsx","../../src/layout/container/container.tsx"],"sourcesContent":["export { Container } from \"./container/container\";\n\nexport type * from \"./container/container\";\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;","names":[]}
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"]}
@@ -1,9 +1,19 @@
1
- import "../chunk-OIQUYB26.mjs";
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,2 @@
1
+ export { getResponsiveProps } from '../_tsup-dts-rollup';
2
+ export { ResponsiveProp } from '../_tsup-dts-rollup';
@@ -0,0 +1,2 @@
1
+ export { getResponsiveProps } from '../_tsup-dts-rollup';
2
+ export { ResponsiveProp } from '../_tsup-dts-rollup';
@@ -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,8 @@
1
+ import {
2
+ getResponsiveProps
3
+ } from "../chunk-ZTYEOZLK.mjs";
4
+ import "../chunk-R4SQKVDQ.mjs";
5
+ export {
6
+ getResponsiveProps
7
+ };
8
+ //# sourceMappingURL=responsive.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,3 @@
1
+ export { getSpacingVariable } from '../_tsup-dts-rollup';
2
+ export { SpacingSizes } from '../_tsup-dts-rollup';
3
+ export { ResponsiveSpacingSizes } from '../_tsup-dts-rollup';
@@ -0,0 +1,3 @@
1
+ export { getSpacingVariable } from '../_tsup-dts-rollup';
2
+ export { SpacingSizes } from '../_tsup-dts-rollup';
3
+ export { ResponsiveSpacingSizes } from '../_tsup-dts-rollup';
@@ -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,8 @@
1
+ import {
2
+ getSpacingVariable
3
+ } from "../chunk-NE6W2PCD.mjs";
4
+ import "../chunk-R4SQKVDQ.mjs";
5
+ export {
6
+ getSpacingVariable
7
+ };
8
+ //# sourceMappingURL=spacing.mjs.map
@@ -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';