@postenbring/hedwig-react 0.0.66 → 0.0.68

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 (201) hide show
  1. package/dist/_tsup-dts-rollup.d.mts +310 -128
  2. package/dist/_tsup-dts-rollup.d.ts +310 -128
  3. package/dist/accordion/index.d.mts +3 -3
  4. package/dist/accordion/index.d.ts +3 -3
  5. package/dist/accordion/index.js +8 -2
  6. package/dist/accordion/index.js.map +1 -1
  7. package/dist/accordion/index.mjs +14 -5
  8. package/dist/box/index.d.mts +1 -1
  9. package/dist/box/index.d.ts +1 -1
  10. package/dist/box/index.js +4 -2
  11. package/dist/box/index.js.map +1 -1
  12. package/dist/box/index.mjs +6 -3
  13. package/dist/card/index.d.mts +2 -2
  14. package/dist/card/index.d.ts +2 -2
  15. package/dist/card/index.js +12 -2
  16. package/dist/card/index.js.map +1 -1
  17. package/dist/card/index.mjs +14 -3
  18. package/dist/{chunk-2ICZ3Q7N.mjs → chunk-2FXMUF6K.mjs} +2 -2
  19. package/dist/{chunk-X46LM2QH.mjs → chunk-3KZOKDKP.mjs} +13 -3
  20. package/dist/chunk-3KZOKDKP.mjs.map +1 -0
  21. package/dist/{chunk-CLXHNRAI.mjs → chunk-B56JZJOS.mjs} +5 -3
  22. package/dist/chunk-B56JZJOS.mjs.map +1 -0
  23. package/dist/chunk-BVG5VSZK.mjs +1 -0
  24. package/dist/{chunk-RVJD2UZF.mjs → chunk-DFH4YKQA.mjs} +2 -2
  25. package/dist/chunk-DFH4YKQA.mjs.map +1 -0
  26. package/dist/chunk-DIDVODBP.mjs +13 -0
  27. package/dist/chunk-DIDVODBP.mjs.map +1 -0
  28. package/dist/{chunk-AR2NOI4U.mjs → chunk-EJ7ANN7M.mjs} +1 -1
  29. package/dist/{chunk-AR2NOI4U.mjs.map → chunk-EJ7ANN7M.mjs.map} +1 -1
  30. package/dist/{chunk-ZTYEOZLK.mjs → chunk-F4STR6SD.mjs} +2 -2
  31. package/dist/chunk-F4STR6SD.mjs.map +1 -0
  32. package/dist/{chunk-2JH4FG63.mjs → chunk-FOZSX44S.mjs} +2 -2
  33. package/dist/{chunk-2JH4FG63.mjs.map → chunk-FOZSX44S.mjs.map} +1 -1
  34. package/dist/chunk-G2SOAFGS.mjs +86 -0
  35. package/dist/chunk-G2SOAFGS.mjs.map +1 -0
  36. package/dist/{chunk-RXIP2JTE.mjs → chunk-K2HG7WRK.mjs} +2 -2
  37. package/dist/{chunk-RXIP2JTE.mjs.map → chunk-K2HG7WRK.mjs.map} +1 -1
  38. package/dist/{chunk-RK6BB3HH.mjs → chunk-KTRIVJM3.mjs} +2 -2
  39. package/dist/{chunk-BZNDK3KJ.mjs → chunk-NMMFIRLZ.mjs} +1 -1
  40. package/dist/{chunk-BZNDK3KJ.mjs.map → chunk-NMMFIRLZ.mjs.map} +1 -1
  41. package/dist/{chunk-BZRCDLEW.mjs → chunk-O32FZU7E.mjs} +2 -2
  42. package/dist/{chunk-IAS3E2S3.mjs → chunk-PUESATBQ.mjs} +2 -2
  43. package/dist/{chunk-27XJO7E4.mjs → chunk-QGZU7Z2W.mjs} +2 -2
  44. package/dist/{chunk-MRCE2Q7A.mjs → chunk-QYSLVQ4F.mjs} +2 -2
  45. package/dist/{chunk-MRCE2Q7A.mjs.map → chunk-QYSLVQ4F.mjs.map} +1 -1
  46. package/dist/chunk-TDLSHJ4Z.mjs +1 -0
  47. package/dist/{chunk-SKI2APSK.mjs → chunk-TNU64NUN.mjs} +13 -7
  48. package/dist/chunk-TNU64NUN.mjs.map +1 -0
  49. package/dist/{chunk-JC6DBIFE.mjs → chunk-XE4UZBL2.mjs} +1 -1
  50. package/dist/{chunk-JC6DBIFE.mjs.map → chunk-XE4UZBL2.mjs.map} +1 -1
  51. package/dist/chunk-XFKD6EEJ.mjs +1 -0
  52. package/dist/chunk-XFKD6EEJ.mjs.map +1 -0
  53. package/dist/chunk-XNA5MFJC.mjs +59 -0
  54. package/dist/chunk-XNA5MFJC.mjs.map +1 -0
  55. package/dist/{chunk-XIHKASNB.mjs → chunk-XYIY6FHW.mjs} +1 -1
  56. package/dist/{chunk-XIHKASNB.mjs.map → chunk-XYIY6FHW.mjs.map} +1 -1
  57. package/dist/{chunk-6TI7ACBR.mjs → chunk-YC7MT6SO.mjs} +2 -2
  58. package/dist/{chunk-WCA2WPFS.mjs → chunk-ZL56N4UK.mjs} +14 -2
  59. package/dist/{chunk-WCA2WPFS.mjs.map → chunk-ZL56N4UK.mjs.map} +1 -1
  60. package/dist/chunk-ZQHLYAJU.mjs +1 -0
  61. package/dist/chunk-ZQHLYAJU.mjs.map +1 -0
  62. package/dist/{chunk-IFGQR4J6.mjs → chunk-ZRFDCZ62.mjs} +2 -2
  63. package/dist/footer/footer.js.map +1 -1
  64. package/dist/footer/footer.mjs +3 -3
  65. package/dist/footer/index.d.mts +3 -3
  66. package/dist/footer/index.d.ts +3 -3
  67. package/dist/footer/index.js +10 -2
  68. package/dist/footer/index.js.map +1 -1
  69. package/dist/footer/index.mjs +14 -5
  70. package/dist/form/date-picker/date-picker.d.mts +2 -0
  71. package/dist/form/date-picker/date-picker.d.ts +2 -0
  72. package/dist/form/date-picker/date-picker.js +265 -0
  73. package/dist/form/date-picker/date-picker.js.map +1 -0
  74. package/dist/form/date-picker/date-picker.mjs +13 -0
  75. package/dist/form/date-picker/date-picker.mjs.map +1 -0
  76. package/dist/form/date-picker/index.d.mts +2 -0
  77. package/dist/form/date-picker/index.d.ts +2 -0
  78. package/dist/form/date-picker/index.js +267 -0
  79. package/dist/form/date-picker/index.js.map +1 -0
  80. package/dist/form/date-picker/index.mjs +14 -0
  81. package/dist/form/date-picker/index.mjs.map +1 -0
  82. package/dist/form/index.d.mts +10 -8
  83. package/dist/form/index.d.ts +10 -8
  84. package/dist/form/index.js +239 -131
  85. package/dist/form/index.js.map +1 -1
  86. package/dist/form/index.mjs +12 -6
  87. package/dist/form/input/index.js +12 -6
  88. package/dist/form/input/index.js.map +1 -1
  89. package/dist/form/input/index.mjs +2 -2
  90. package/dist/form/input/input.js +12 -6
  91. package/dist/form/input/input.js.map +1 -1
  92. package/dist/form/input/input.mjs +2 -2
  93. package/dist/form/input-group/index.js +12 -6
  94. package/dist/form/input-group/index.js.map +1 -1
  95. package/dist/form/input-group/index.mjs +1 -1
  96. package/dist/form/input-group/input-group.js +12 -6
  97. package/dist/form/input-group/input-group.js.map +1 -1
  98. package/dist/form/input-group/input-group.mjs +1 -1
  99. package/dist/form/select/index.js +12 -6
  100. package/dist/form/select/index.js.map +1 -1
  101. package/dist/form/select/index.mjs +2 -2
  102. package/dist/form/select/select.js +12 -6
  103. package/dist/form/select/select.js.map +1 -1
  104. package/dist/form/select/select.mjs +2 -2
  105. package/dist/form/textarea/index.js +12 -6
  106. package/dist/form/textarea/index.js.map +1 -1
  107. package/dist/form/textarea/index.mjs +2 -2
  108. package/dist/form/textarea/textarea.js +12 -6
  109. package/dist/form/textarea/textarea.js.map +1 -1
  110. package/dist/form/textarea/textarea.mjs +2 -2
  111. package/dist/index-no-css.d.mts +31 -23
  112. package/dist/index-no-css.d.ts +31 -23
  113. package/dist/index-no-css.js +603 -414
  114. package/dist/index-no-css.js.map +1 -1
  115. package/dist/index-no-css.mjs +107 -40
  116. package/dist/index.d.mts +31 -23
  117. package/dist/index.d.ts +31 -23
  118. package/dist/index.js +603 -414
  119. package/dist/index.js.map +1 -1
  120. package/dist/index.mjs +107 -40
  121. package/dist/index.mjs.map +1 -1
  122. package/dist/layout/grid/grid.d.mts +4 -0
  123. package/dist/layout/grid/grid.d.ts +4 -0
  124. package/dist/layout/grid/grid.js +122 -0
  125. package/dist/layout/grid/grid.js.map +1 -0
  126. package/dist/layout/grid/grid.mjs +12 -0
  127. package/dist/layout/grid/grid.mjs.map +1 -0
  128. package/dist/layout/grid/index.d.mts +4 -0
  129. package/dist/layout/grid/index.d.ts +4 -0
  130. package/dist/layout/grid/index.js +128 -0
  131. package/dist/layout/grid/index.js.map +1 -0
  132. package/dist/layout/grid/index.mjs +14 -0
  133. package/dist/layout/grid/index.mjs.map +1 -0
  134. package/dist/layout/index.d.mts +5 -1
  135. package/dist/layout/index.d.ts +5 -1
  136. package/dist/layout/index.js +68 -18
  137. package/dist/layout/index.js.map +1 -1
  138. package/dist/layout/index.mjs +14 -5
  139. package/dist/layout/responsive.js +1 -1
  140. package/dist/layout/responsive.js.map +1 -1
  141. package/dist/layout/responsive.mjs +1 -1
  142. package/dist/layout/stack/index.js +1 -1
  143. package/dist/layout/stack/index.js.map +1 -1
  144. package/dist/layout/stack/index.mjs +3 -2
  145. package/dist/layout/stack/stack.js +1 -1
  146. package/dist/layout/stack/stack.js.map +1 -1
  147. package/dist/layout/stack/stack.mjs +2 -2
  148. package/dist/message/index.d.mts +2 -0
  149. package/dist/message/index.d.ts +2 -0
  150. package/dist/message/index.js +6 -2
  151. package/dist/message/index.js.map +1 -1
  152. package/dist/message/index.mjs +8 -3
  153. package/dist/message/message.d.mts +2 -2
  154. package/dist/message/message.d.ts +2 -2
  155. package/dist/modal/index.d.mts +2 -2
  156. package/dist/modal/index.d.ts +2 -2
  157. package/dist/modal/index.js +8 -2
  158. package/dist/modal/index.js.map +1 -1
  159. package/dist/modal/index.mjs +11 -4
  160. package/dist/modal/modal.js.map +1 -1
  161. package/dist/modal/modal.mjs +2 -2
  162. package/dist/navbar/index.d.mts +3 -3
  163. package/dist/navbar/index.d.ts +3 -3
  164. package/dist/navbar/index.js +41 -11
  165. package/dist/navbar/index.js.map +1 -1
  166. package/dist/navbar/index.mjs +13 -3
  167. package/dist/navbar/navbar-expandable-menu.js +33 -11
  168. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  169. package/dist/navbar/navbar-expandable-menu.mjs +2 -1
  170. package/dist/tabs/index.js +13 -1
  171. package/dist/tabs/index.js.map +1 -1
  172. package/dist/tabs/index.mjs +3 -3
  173. package/dist/tabs/tabs-list.js +13 -1
  174. package/dist/tabs/tabs-list.js.map +1 -1
  175. package/dist/tabs/tabs-list.mjs +2 -2
  176. package/dist/utils.d.mts +1 -0
  177. package/dist/utils.d.ts +1 -0
  178. package/dist/utils.js +13 -0
  179. package/dist/utils.js.map +1 -1
  180. package/dist/utils.mjs +3 -1
  181. package/dist/warning-banner/index.js.map +1 -1
  182. package/dist/warning-banner/index.mjs +2 -2
  183. package/dist/warning-banner/warning-banner.js.map +1 -1
  184. package/dist/warning-banner/warning-banner.mjs +2 -2
  185. package/package.json +6 -6
  186. package/dist/chunk-CLXHNRAI.mjs.map +0 -1
  187. package/dist/chunk-L4GQJETB.mjs +0 -1
  188. package/dist/chunk-RVJD2UZF.mjs.map +0 -1
  189. package/dist/chunk-SKI2APSK.mjs.map +0 -1
  190. package/dist/chunk-T24JZIQO.mjs +0 -1
  191. package/dist/chunk-X46LM2QH.mjs.map +0 -1
  192. package/dist/chunk-ZTYEOZLK.mjs.map +0 -1
  193. /package/dist/{chunk-2ICZ3Q7N.mjs.map → chunk-2FXMUF6K.mjs.map} +0 -0
  194. /package/dist/{chunk-L4GQJETB.mjs.map → chunk-BVG5VSZK.mjs.map} +0 -0
  195. /package/dist/{chunk-RK6BB3HH.mjs.map → chunk-KTRIVJM3.mjs.map} +0 -0
  196. /package/dist/{chunk-BZRCDLEW.mjs.map → chunk-O32FZU7E.mjs.map} +0 -0
  197. /package/dist/{chunk-IAS3E2S3.mjs.map → chunk-PUESATBQ.mjs.map} +0 -0
  198. /package/dist/{chunk-27XJO7E4.mjs.map → chunk-QGZU7Z2W.mjs.map} +0 -0
  199. /package/dist/{chunk-T24JZIQO.mjs.map → chunk-TDLSHJ4Z.mjs.map} +0 -0
  200. /package/dist/{chunk-6TI7ACBR.mjs.map → chunk-YC7MT6SO.mjs.map} +0 -0
  201. /package/dist/{chunk-IFGQR4J6.mjs.map → chunk-ZRFDCZ62.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -2,10 +2,10 @@ import "./chunk-YWNVB7TY.mjs";
2
2
  import "./chunk-3D2MWIEX.mjs";
3
3
  import {
4
4
  WarningBanner
5
- } from "./chunk-IAS3E2S3.mjs";
5
+ } from "./chunk-PUESATBQ.mjs";
6
6
  import {
7
7
  TabsComponent
8
- } from "./chunk-IFGQR4J6.mjs";
8
+ } from "./chunk-ZRFDCZ62.mjs";
9
9
  import {
10
10
  TabsContent,
11
11
  TabsContents
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  TabsList,
15
15
  TabsTab
16
- } from "./chunk-CLXHNRAI.mjs";
16
+ } from "./chunk-B56JZJOS.mjs";
17
17
  import "./chunk-XVFQWVHO.mjs";
18
18
  import {
19
19
  TextBody,
@@ -35,25 +35,41 @@ import {
35
35
  } from "./chunk-57SSGJ4X.mjs";
36
36
  import {
37
37
  ModalComponent
38
- } from "./chunk-MRCE2Q7A.mjs";
39
- import "./chunk-2ICZ3Q7N.mjs";
38
+ } from "./chunk-QYSLVQ4F.mjs";
39
+ import {
40
+ ModalContent,
41
+ ModalFooter,
42
+ ModalHeader
43
+ } from "./chunk-2FXMUF6K.mjs";
40
44
  import {
41
45
  NavbarComponent
42
- } from "./chunk-2JH4FG63.mjs";
46
+ } from "./chunk-FOZSX44S.mjs";
43
47
  import {
44
48
  useNavbarExpendableMenuContext
45
- } from "./chunk-X46LM2QH.mjs";
49
+ } from "./chunk-3KZOKDKP.mjs";
46
50
  import "./chunk-MGUYIOP2.mjs";
47
- import "./chunk-625SVQEP.mjs";
48
- import "./chunk-L4GQJETB.mjs";
49
51
  import {
50
- Container
51
- } from "./chunk-I6GDRDYD.mjs";
52
+ NavbarButton,
53
+ NavbarLogo,
54
+ NavbarLogoAndServiceText,
55
+ NavbarNavigation
56
+ } from "./chunk-625SVQEP.mjs";
57
+ import "./chunk-BVG5VSZK.mjs";
58
+ import {
59
+ GridComponent
60
+ } from "./chunk-DIDVODBP.mjs";
61
+ import "./chunk-ZQHLYAJU.mjs";
52
62
  import {
53
63
  HStack,
54
64
  Stack,
55
65
  VStack
56
- } from "./chunk-27XJO7E4.mjs";
66
+ } from "./chunk-QGZU7Z2W.mjs";
67
+ import {
68
+ Container
69
+ } from "./chunk-I6GDRDYD.mjs";
70
+ import {
71
+ GridItem
72
+ } from "./chunk-XNA5MFJC.mjs";
57
73
  import "./chunk-XLLYMQLW.mjs";
58
74
  import {
59
75
  Link
@@ -61,20 +77,34 @@ import {
61
77
  import "./chunk-6QV3OV66.mjs";
62
78
  import {
63
79
  MessageComponent
64
- } from "./chunk-AR2NOI4U.mjs";
65
- import "./chunk-ME66RUR6.mjs";
80
+ } from "./chunk-EJ7ANN7M.mjs";
81
+ import {
82
+ MessageDescription,
83
+ MessageTitle
84
+ } from "./chunk-ME66RUR6.mjs";
66
85
  import {
67
86
  CardComponent
68
- } from "./chunk-JC6DBIFE.mjs";
69
- import "./chunk-X5JERDDU.mjs";
87
+ } from "./chunk-XE4UZBL2.mjs";
88
+ import {
89
+ CardBody,
90
+ CardBodyHeader,
91
+ CardBodyHeaderOverline,
92
+ CardMedia,
93
+ CardMediaImg
94
+ } from "./chunk-X5JERDDU.mjs";
70
95
  import "./chunk-2YL2MVWN.mjs";
71
96
  import {
72
97
  DescriptionList
73
98
  } from "./chunk-XMB45ILT.mjs";
74
99
  import {
75
100
  FooterComponent
76
- } from "./chunk-RXIP2JTE.mjs";
77
- import "./chunk-BZRCDLEW.mjs";
101
+ } from "./chunk-K2HG7WRK.mjs";
102
+ import {
103
+ FooterButtonLink,
104
+ FooterLinkSection,
105
+ FooterLinkSections,
106
+ FooterLogo
107
+ } from "./chunk-O32FZU7E.mjs";
78
108
  import {
79
109
  LinkList
80
110
  } from "./chunk-GJDRW6PA.mjs";
@@ -83,21 +113,19 @@ import {
83
113
  UnorderedList
84
114
  } from "./chunk-PMLDK3VC.mjs";
85
115
  import "./chunk-HT2EIJAD.mjs";
86
- import "./chunk-T24JZIQO.mjs";
116
+ import "./chunk-XFKD6EEJ.mjs";
87
117
  import "./chunk-BYEJZSG5.mjs";
88
118
  import {
89
119
  Select
90
- } from "./chunk-RVJD2UZF.mjs";
120
+ } from "./chunk-DFH4YKQA.mjs";
91
121
  import "./chunk-AGZHQDCQ.mjs";
92
122
  import {
93
123
  Textarea
94
- } from "./chunk-RK6BB3HH.mjs";
124
+ } from "./chunk-KTRIVJM3.mjs";
95
125
  import "./chunk-7LPYJC6S.mjs";
96
126
  import {
97
127
  Input
98
- } from "./chunk-6TI7ACBR.mjs";
99
- import "./chunk-Y5SUMFYJ.mjs";
100
- import "./chunk-SKI2APSK.mjs";
128
+ } from "./chunk-YC7MT6SO.mjs";
101
129
  import "./chunk-2KX7VFN2.mjs";
102
130
  import {
103
131
  Radiobutton
@@ -115,17 +143,32 @@ import {
115
143
  Fieldset,
116
144
  useFieldsetContext
117
145
  } from "./chunk-DM4PJFLG.mjs";
146
+ import "./chunk-TDLSHJ4Z.mjs";
147
+ import {
148
+ DatePicker
149
+ } from "./chunk-G2SOAFGS.mjs";
150
+ import "./chunk-Y5SUMFYJ.mjs";
151
+ import "./chunk-TNU64NUN.mjs";
118
152
  import "./chunk-NSLSA7F7.mjs";
119
153
  import {
120
154
  ErrorMessage
121
155
  } from "./chunk-IL7576PP.mjs";
122
156
  import {
123
157
  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";
158
+ } from "./chunk-XYIY6FHW.mjs";
159
+ import "./chunk-K6PP3ACJ.mjs";
160
+ import {
161
+ Badge,
162
+ DarkBadge,
163
+ WarningBadge,
164
+ WhiteBadge
165
+ } from "./chunk-W3D4VR4Y.mjs";
166
+ import {
167
+ BoxComponent
168
+ } from "./chunk-NMMFIRLZ.mjs";
169
+ import {
170
+ BoxCloseButton
171
+ } from "./chunk-EGXM575K.mjs";
129
172
  import "./chunk-ZOCMUEOX.mjs";
130
173
  import {
131
174
  Breadcrumbs
@@ -136,20 +179,19 @@ import {
136
179
  } from "./chunk-OUHO4LGN.mjs";
137
180
  import "./chunk-KQITCS3U.mjs";
138
181
  import "./chunk-DZNH5JHY.mjs";
139
- import "./chunk-K6PP3ACJ.mjs";
140
182
  import {
141
- Badge,
142
- DarkBadge,
143
- WarningBadge,
144
- WhiteBadge
145
- } from "./chunk-W3D4VR4Y.mjs";
183
+ AccordionContent
184
+ } from "./chunk-GUB3UCXO.mjs";
146
185
  import {
147
- BoxComponent
148
- } from "./chunk-BZNDK3KJ.mjs";
149
- import "./chunk-EGXM575K.mjs";
150
- import "./chunk-WCA2WPFS.mjs";
186
+ AccordionHeader
187
+ } from "./chunk-YXHXRUFX.mjs";
188
+ import {
189
+ AccordionItem
190
+ } from "./chunk-62F4I3MQ.mjs";
191
+ import "./chunk-VRIY65P5.mjs";
192
+ import "./chunk-ZL56N4UK.mjs";
151
193
  import "./chunk-V3PAFMK5.mjs";
152
- import "./chunk-ZTYEOZLK.mjs";
194
+ import "./chunk-F4STR6SD.mjs";
153
195
  import "./chunk-NE6W2PCD.mjs";
154
196
  import "./chunk-MSFHJVHD.mjs";
155
197
  import {
@@ -176,25 +218,50 @@ import "./chunk-R4SQKVDQ.mjs";
176
218
  import "@postenbring/hedwig-css/dist/index.css";
177
219
  export {
178
220
  AccordionComponent as Accordion,
221
+ AccordionContent,
222
+ AccordionHeader,
223
+ AccordionItem,
179
224
  AutoAnimateHeight,
180
225
  Badge,
181
226
  BoxComponent as Box,
227
+ BoxCloseButton,
182
228
  Breadcrumbs,
183
229
  CardComponent as Card,
230
+ CardBody,
231
+ CardBodyHeader,
232
+ CardBodyHeaderOverline,
233
+ CardMedia,
234
+ CardMediaImg,
184
235
  Checkbox,
185
236
  Container,
186
237
  DarkBadge,
238
+ DatePicker,
187
239
  DescriptionList,
188
240
  ErrorMessage,
189
241
  Fieldset,
190
242
  FooterComponent as Footer,
243
+ FooterButtonLink,
244
+ FooterLinkSection,
245
+ FooterLinkSections,
246
+ FooterLogo,
247
+ GridComponent as Grid,
248
+ GridItem,
191
249
  HStack,
192
250
  Input,
193
251
  Link,
194
252
  LinkList,
195
253
  MessageComponent as Message,
254
+ MessageDescription,
255
+ MessageTitle,
196
256
  ModalComponent as Modal,
257
+ ModalContent,
258
+ ModalFooter,
259
+ ModalHeader,
197
260
  NavbarComponent as Navbar,
261
+ NavbarButton,
262
+ NavbarLogo,
263
+ NavbarLogoAndServiceText,
264
+ NavbarNavigation,
198
265
  OrderedList,
199
266
  PrimaryButton,
200
267
  RadioGroup,
@@ -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":[]}
@@ -0,0 +1,4 @@
1
+ export { GridProps_alias_3 as GridProps } from '../../_tsup-dts-rollup';
2
+ export { Grid_alias_3 as Grid } from '../../_tsup-dts-rollup';
3
+ export { GridItemProps_alias_3 as GridItemProps } from '../../_tsup-dts-rollup';
4
+ export { GridItem_alias_3 as GridItem } from '../../_tsup-dts-rollup';
@@ -0,0 +1,4 @@
1
+ export { GridProps_alias_3 as GridProps } from '../../_tsup-dts-rollup';
2
+ export { Grid_alias_3 as Grid } from '../../_tsup-dts-rollup';
3
+ export { GridItemProps_alias_3 as GridItemProps } from '../../_tsup-dts-rollup';
4
+ export { GridItem_alias_3 as GridItem } from '../../_tsup-dts-rollup';
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
35
+ var __export = (target, all) => {
36
+ for (var name in all)
37
+ __defProp(target, name, { get: all[name], enumerable: true });
38
+ };
39
+ var __copyProps = (to, from, except, desc) => {
40
+ if (from && typeof from === "object" || typeof from === "function") {
41
+ for (let key of __getOwnPropNames(from))
42
+ if (!__hasOwnProp.call(to, key) && key !== except)
43
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
44
+ }
45
+ return to;
46
+ };
47
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
+
49
+ // src/layout/grid/grid.tsx
50
+ var grid_exports = {};
51
+ __export(grid_exports, {
52
+ Grid: () => Grid,
53
+ GridItem: () => GridItem
54
+ });
55
+ module.exports = __toCommonJS(grid_exports);
56
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
57
+ var import_react_slot = require("@radix-ui/react-slot");
58
+ var import_react = require("react");
59
+
60
+ // src/layout/responsive.ts
61
+ function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
62
+ if (!inputValues)
63
+ return {};
64
+ if (typeof inputValues !== "object") {
65
+ return { [`${variable}-initial`]: valueTransformer(inputValues) };
66
+ }
67
+ const result = {};
68
+ for (const [key, value] of Object.entries(inputValues)) {
69
+ result[`${variable}-${key}`] = valueTransformer(value);
70
+ }
71
+ return result;
72
+ }
73
+
74
+ // src/layout/spacing.ts
75
+ function getSpacingVariable(size) {
76
+ return `var(--hds-spacing-${size})`;
77
+ }
78
+
79
+ // src/layout/grid/grid.tsx
80
+ var import_jsx_runtime = require("react/jsx-runtime");
81
+ var Grid = (0, import_react.forwardRef)(
82
+ (_a, ref) => {
83
+ var _b = _a, { children, asChild, className, span, center, style: _style, gap } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap"]);
84
+ const Component = asChild ? import_react_slot.Slot : "div";
85
+ const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
86
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
+ Component,
88
+ __spreadProps(__spreadValues({
89
+ style,
90
+ className: (0, import_typed_classname.clsx)("hds-grid", className),
91
+ ref
92
+ }, rest), {
93
+ children
94
+ })
95
+ );
96
+ }
97
+ );
98
+ Grid.displayName = "Grid";
99
+ var GridItem = (0, import_react.forwardRef)(
100
+ (_a, ref) => {
101
+ var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
102
+ const Component = asChild ? import_react_slot.Slot : "div";
103
+ const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
104
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
105
+ Component,
106
+ __spreadProps(__spreadValues({
107
+ style,
108
+ className: (0, import_typed_classname.clsx)("hds-grid__item", className),
109
+ ref
110
+ }, rest), {
111
+ children
112
+ })
113
+ );
114
+ }
115
+ );
116
+ GridItem.displayName = "Grid.Item";
117
+ // Annotate the CommonJS export names for ESM import in node:
118
+ 0 && (module.exports = {
119
+ Grid,
120
+ GridItem
121
+ });
122
+ //# sourceMappingURL=grid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/layout/grid/grid.tsx","../../../src/layout/responsive.ts","../../../src/layout/spacing.ts"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { forwardRef } from \"react\";\nimport { getResponsiveProps, type ResponsiveProp } from \"../responsive\";\nimport { type SpacingSizes, type ResponsiveSpacingSizes, getSpacingVariable } from \"../spacing\";\n\nexport interface GridProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n\n /**\n * Space between grid items. Both horizontal and vertical.\n *\n * Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.\n *\n * Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.\n */\n gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;\n\n /**\n * Column span for the grid items\n *\n * `default` is `12`\n */\n span?: ResponsiveProp<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;\n\n /**\n * Center grid items horizontally\n *\n * Offsets the start position of the grid items relative to their span so that it appears centered.\n *\n * assumes a span of 2, 4, 6, 8, or 10\n *\n * a span of `12` is 100% width and centering has no effect\n *\n * `default` is `false`\n */\n center?: ResponsiveProp<boolean>;\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 * 🚧 A simple opionated abstraction over CSS Grid.\n *\n * The grid is always a 12 column grid.\n *\n * example\n * ```tsx\n * <Grid gap=\"12-16\" span={{ small: 6 }}>\n * <div>6/12</div>\n * <div>6/12</div>\n * <Grid.Item span={{ small: 12 }}>12/12</Grid.Item>\n * <div>6/12</div>\n * <div>6/12</div>\n * </Grid>\n * ```\n */\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(\n ({ children, asChild, className, span, center, style: _style, gap, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n const style: React.CSSProperties = {\n ..._style,\n ...getResponsiveProps(\"--hds-grid-gap\", gap, getSpacingVariable),\n ...getResponsiveProps(\"--hds-grid-span\", span),\n ...getResponsiveProps(\"--hds-grid-center\", center, (value) => (value ? \"1\" : \"0\")),\n };\n return (\n <Component\n style={style}\n className={clsx(\"hds-grid\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nGrid.displayName = \"Grid\";\n\nexport interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n\n /**\n * Column span for the grid item\n *\n * `default` is `12`\n */\n span?: ResponsiveProp<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;\n\n /**\n * Center the grid item horizontally\n *\n * Offsets the start position of the grid item relative to it's span so that it appears centered.\n *\n * assumes a span of 2, 4, 6, 8, or 10\n *\n * a span of `12` is 100% width and centering has no effect\n *\n * `default` is `false`\n */\n center?: ResponsiveProp<boolean>;\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 * 🚧 Grid.Item\n *\n * Use as the direct child of a `Grid` to override `span` and `center` for individual items.\n */\nexport const GridItem = forwardRef<HTMLDivElement, GridItemProps>(\n ({ children, asChild, className, span, center, style: _style, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n const style: React.CSSProperties = {\n ..._style,\n ...getResponsiveProps(\"--hds-grid-item-span\", span),\n ...getResponsiveProps(\"--hds-grid-item-center\", center, (value) => (value ? \"1\" : \"0\")),\n };\n return (\n <Component\n style={style}\n className={clsx(\"hds-grid__item\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nGridItem.displayName = \"Grid.Item\";\n","type Breakpoints = \"initial\" | \"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}-initial`]: 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","// 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;AAAA;AAAA,6BAAqB;AACrB,wBAAqB;AACrB,mBAA2B;;;ACMpB,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,UAAU,GAAG,iBAAiB,WAAW,EAAE;AAAA,EAClE;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;;;ACSO,SAAS,mBAAmB,MAA6C;AAC9E,SAAO,qBAAqB,IAAI;AAClC;;;AFkCM;AAVC,IAAM,WAAO;AAAA,EAClB,CAAC,IAA6E,QAAQ;AAArF,iBAAE,YAAU,SAAS,WAAW,MAAM,QAAQ,OAAO,QAAQ,IA7DhE,IA6DG,IAAqE,iBAArE,IAAqE,CAAnE,YAAU,WAAS,aAAW,QAAM,UAAQ,SAAe;AAC5D,UAAM,YAAY,UAAU,yBAAO;AACnC,UAAM,QAA6B,gEAC9B,SACA,mBAAmB,kBAAkB,KAAK,kBAAkB,IAC5D,mBAAmB,mBAAmB,IAAI,IAC1C,mBAAmB,qBAAqB,QAAQ,CAAC,UAAW,QAAQ,MAAM,GAAI;AAEnF,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,6BAAK,YAAY,SAAsB;AAAA,QAClD;AAAA,SACI,OAJL;AAAA,QAME;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;AAoCZ,IAAM,eAAW;AAAA,EACtB,CAAC,IAAwE,QAAQ;AAAhF,iBAAE,YAAU,SAAS,WAAW,MAAM,QAAQ,OAAO,OAtHxD,IAsHG,IAAgE,iBAAhE,IAAgE,CAA9D,YAAU,WAAS,aAAW,QAAM,UAAQ;AAC7C,UAAM,YAAY,UAAU,yBAAO;AACnC,UAAM,QAA6B,iDAC9B,SACA,mBAAmB,wBAAwB,IAAI,IAC/C,mBAAmB,0BAA0B,QAAQ,CAAC,UAAW,QAAQ,MAAM,GAAI;AAExF,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,6BAAK,kBAAkB,SAAsB;AAAA,QACxD;AAAA,SACI,OAJL;AAAA,QAME;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":[]}
@@ -0,0 +1,12 @@
1
+ import {
2
+ Grid,
3
+ GridItem
4
+ } from "../../chunk-XNA5MFJC.mjs";
5
+ import "../../chunk-F4STR6SD.mjs";
6
+ import "../../chunk-NE6W2PCD.mjs";
7
+ import "../../chunk-R4SQKVDQ.mjs";
8
+ export {
9
+ Grid,
10
+ GridItem
11
+ };
12
+ //# sourceMappingURL=grid.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,4 @@
1
+ export { Grid_alias_4 as Grid } from '../../_tsup-dts-rollup';
2
+ export { GridItem_alias_4 as GridItem } from '../../_tsup-dts-rollup';
3
+ export { GridProps_alias_4 as GridProps } from '../../_tsup-dts-rollup';
4
+ export { GridItemProps_alias_4 as GridItemProps } from '../../_tsup-dts-rollup';
@@ -0,0 +1,4 @@
1
+ export { Grid_alias_4 as Grid } from '../../_tsup-dts-rollup';
2
+ export { GridItem_alias_4 as GridItem } from '../../_tsup-dts-rollup';
3
+ export { GridProps_alias_4 as GridProps } from '../../_tsup-dts-rollup';
4
+ export { GridItemProps_alias_4 as GridItemProps } from '../../_tsup-dts-rollup';
@@ -0,0 +1,128 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
35
+ var __export = (target, all) => {
36
+ for (var name in all)
37
+ __defProp(target, name, { get: all[name], enumerable: true });
38
+ };
39
+ var __copyProps = (to, from, except, desc) => {
40
+ if (from && typeof from === "object" || typeof from === "function") {
41
+ for (let key of __getOwnPropNames(from))
42
+ if (!__hasOwnProp.call(to, key) && key !== except)
43
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
44
+ }
45
+ return to;
46
+ };
47
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
+
49
+ // src/layout/grid/index.tsx
50
+ var grid_exports = {};
51
+ __export(grid_exports, {
52
+ Grid: () => GridComponent,
53
+ GridItem: () => GridItem
54
+ });
55
+ module.exports = __toCommonJS(grid_exports);
56
+
57
+ // src/layout/grid/grid.tsx
58
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
59
+ var import_react_slot = require("@radix-ui/react-slot");
60
+ var import_react = require("react");
61
+
62
+ // src/layout/responsive.ts
63
+ function getResponsiveProps(variable, inputValues, valueTransformer = (value) => String(value)) {
64
+ if (!inputValues)
65
+ return {};
66
+ if (typeof inputValues !== "object") {
67
+ return { [`${variable}-initial`]: valueTransformer(inputValues) };
68
+ }
69
+ const result = {};
70
+ for (const [key, value] of Object.entries(inputValues)) {
71
+ result[`${variable}-${key}`] = valueTransformer(value);
72
+ }
73
+ return result;
74
+ }
75
+
76
+ // src/layout/spacing.ts
77
+ function getSpacingVariable(size) {
78
+ return `var(--hds-spacing-${size})`;
79
+ }
80
+
81
+ // src/layout/grid/grid.tsx
82
+ var import_jsx_runtime = require("react/jsx-runtime");
83
+ var Grid = (0, import_react.forwardRef)(
84
+ (_a, ref) => {
85
+ var _b = _a, { children, asChild, className, span, center, style: _style, gap } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style", "gap"]);
86
+ const Component = asChild ? import_react_slot.Slot : "div";
87
+ const style = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-gap", gap, getSpacingVariable)), getResponsiveProps("--hds-grid-span", span)), getResponsiveProps("--hds-grid-center", center, (value) => value ? "1" : "0"));
88
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
89
+ Component,
90
+ __spreadProps(__spreadValues({
91
+ style,
92
+ className: (0, import_typed_classname.clsx)("hds-grid", className),
93
+ ref
94
+ }, rest), {
95
+ children
96
+ })
97
+ );
98
+ }
99
+ );
100
+ Grid.displayName = "Grid";
101
+ var GridItem = (0, import_react.forwardRef)(
102
+ (_a, ref) => {
103
+ var _b = _a, { children, asChild, className, span, center, style: _style } = _b, rest = __objRest(_b, ["children", "asChild", "className", "span", "center", "style"]);
104
+ const Component = asChild ? import_react_slot.Slot : "div";
105
+ const style = __spreadValues(__spreadValues(__spreadValues({}, _style), getResponsiveProps("--hds-grid-item-span", span)), getResponsiveProps("--hds-grid-item-center", center, (value) => value ? "1" : "0"));
106
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
107
+ Component,
108
+ __spreadProps(__spreadValues({
109
+ style,
110
+ className: (0, import_typed_classname.clsx)("hds-grid__item", className),
111
+ ref
112
+ }, rest), {
113
+ children
114
+ })
115
+ );
116
+ }
117
+ );
118
+ GridItem.displayName = "Grid.Item";
119
+
120
+ // src/layout/grid/index.tsx
121
+ var GridComponent = Grid;
122
+ GridComponent.Item = GridItem;
123
+ // Annotate the CommonJS export names for ESM import in node:
124
+ 0 && (module.exports = {
125
+ Grid,
126
+ GridItem
127
+ });
128
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/layout/grid/index.tsx","../../../src/layout/grid/grid.tsx","../../../src/layout/responsive.ts","../../../src/layout/spacing.ts"],"sourcesContent":["import { Grid, GridItem } from \"./grid\";\n\nconst GridComponent = Grid as typeof Grid & {\n Item: typeof GridItem;\n};\n\nGridComponent.Item = GridItem;\n\nexport { GridComponent as Grid, GridItem };\n\nexport type * from \"./grid\";\n","import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { forwardRef } from \"react\";\nimport { getResponsiveProps, type ResponsiveProp } from \"../responsive\";\nimport { type SpacingSizes, type ResponsiveSpacingSizes, getSpacingVariable } from \"../spacing\";\n\nexport interface GridProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n\n /**\n * Space between grid items. Both horizontal and vertical.\n *\n * Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.\n *\n * Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.\n */\n gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;\n\n /**\n * Column span for the grid items\n *\n * `default` is `12`\n */\n span?: ResponsiveProp<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;\n\n /**\n * Center grid items horizontally\n *\n * Offsets the start position of the grid items relative to their span so that it appears centered.\n *\n * assumes a span of 2, 4, 6, 8, or 10\n *\n * a span of `12` is 100% width and centering has no effect\n *\n * `default` is `false`\n */\n center?: ResponsiveProp<boolean>;\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 * 🚧 A simple opionated abstraction over CSS Grid.\n *\n * The grid is always a 12 column grid.\n *\n * example\n * ```tsx\n * <Grid gap=\"12-16\" span={{ small: 6 }}>\n * <div>6/12</div>\n * <div>6/12</div>\n * <Grid.Item span={{ small: 12 }}>12/12</Grid.Item>\n * <div>6/12</div>\n * <div>6/12</div>\n * </Grid>\n * ```\n */\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(\n ({ children, asChild, className, span, center, style: _style, gap, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n const style: React.CSSProperties = {\n ..._style,\n ...getResponsiveProps(\"--hds-grid-gap\", gap, getSpacingVariable),\n ...getResponsiveProps(\"--hds-grid-span\", span),\n ...getResponsiveProps(\"--hds-grid-center\", center, (value) => (value ? \"1\" : \"0\")),\n };\n return (\n <Component\n style={style}\n className={clsx(\"hds-grid\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nGrid.displayName = \"Grid\";\n\nexport interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {\n children: React.ReactNode;\n\n /**\n * Column span for the grid item\n *\n * `default` is `12`\n */\n span?: ResponsiveProp<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;\n\n /**\n * Center the grid item horizontally\n *\n * Offsets the start position of the grid item relative to it's span so that it appears centered.\n *\n * assumes a span of 2, 4, 6, 8, or 10\n *\n * a span of `12` is 100% width and centering has no effect\n *\n * `default` is `false`\n */\n center?: ResponsiveProp<boolean>;\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 * 🚧 Grid.Item\n *\n * Use as the direct child of a `Grid` to override `span` and `center` for individual items.\n */\nexport const GridItem = forwardRef<HTMLDivElement, GridItemProps>(\n ({ children, asChild, className, span, center, style: _style, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n const style: React.CSSProperties = {\n ..._style,\n ...getResponsiveProps(\"--hds-grid-item-span\", span),\n ...getResponsiveProps(\"--hds-grid-item-center\", center, (value) => (value ? \"1\" : \"0\")),\n };\n return (\n <Component\n style={style}\n className={clsx(\"hds-grid__item\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nGridItem.displayName = \"Grid.Item\";\n","type Breakpoints = \"initial\" | \"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}-initial`]: 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","// 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;AAAA;;;ACAA,6BAAqB;AACrB,wBAAqB;AACrB,mBAA2B;;;ACMpB,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,UAAU,GAAG,iBAAiB,WAAW,EAAE;AAAA,EAClE;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;;;ACSO,SAAS,mBAAmB,MAA6C;AAC9E,SAAO,qBAAqB,IAAI;AAClC;;;AFkCM;AAVC,IAAM,WAAO;AAAA,EAClB,CAAC,IAA6E,QAAQ;AAArF,iBAAE,YAAU,SAAS,WAAW,MAAM,QAAQ,OAAO,QAAQ,IA7DhE,IA6DG,IAAqE,iBAArE,IAAqE,CAAnE,YAAU,WAAS,aAAW,QAAM,UAAQ,SAAe;AAC5D,UAAM,YAAY,UAAU,yBAAO;AACnC,UAAM,QAA6B,gEAC9B,SACA,mBAAmB,kBAAkB,KAAK,kBAAkB,IAC5D,mBAAmB,mBAAmB,IAAI,IAC1C,mBAAmB,qBAAqB,QAAQ,CAAC,UAAW,QAAQ,MAAM,GAAI;AAEnF,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,6BAAK,YAAY,SAAsB;AAAA,QAClD;AAAA,SACI,OAJL;AAAA,QAME;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;AAoCZ,IAAM,eAAW;AAAA,EACtB,CAAC,IAAwE,QAAQ;AAAhF,iBAAE,YAAU,SAAS,WAAW,MAAM,QAAQ,OAAO,OAtHxD,IAsHG,IAAgE,iBAAhE,IAAgE,CAA9D,YAAU,WAAS,aAAW,QAAM,UAAQ;AAC7C,UAAM,YAAY,UAAU,yBAAO;AACnC,UAAM,QAA6B,iDAC9B,SACA,mBAAmB,wBAAwB,IAAI,IAC/C,mBAAmB,0BAA0B,QAAQ,CAAC,UAAW,QAAQ,MAAM,GAAI;AAExF,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,6BAAK,kBAAkB,SAAsB;AAAA,QACxD;AAAA,SACI,OAJL;AAAA,QAME;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;;;ADvIvB,IAAM,gBAAgB;AAItB,cAAc,OAAO;","names":[]}
@@ -0,0 +1,14 @@
1
+ import {
2
+ GridComponent
3
+ } from "../../chunk-DIDVODBP.mjs";
4
+ import {
5
+ GridItem
6
+ } from "../../chunk-XNA5MFJC.mjs";
7
+ import "../../chunk-F4STR6SD.mjs";
8
+ import "../../chunk-NE6W2PCD.mjs";
9
+ import "../../chunk-R4SQKVDQ.mjs";
10
+ export {
11
+ GridComponent as Grid,
12
+ GridItem
13
+ };
14
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,6 +1,10 @@
1
1
  export { ContainerProps_alias_2 as ContainerProps } from '../_tsup-dts-rollup';
2
2
  export { Container_alias_2 as Container } from '../_tsup-dts-rollup';
3
- export { StackProps_alias_2 as StackProps } from '../_tsup-dts-rollup';
3
+ export { Grid_alias_2 as Grid } from '../_tsup-dts-rollup';
4
+ export { GridItem_alias_2 as GridItem } from '../_tsup-dts-rollup';
5
+ export { GridProps_alias_2 as GridProps } from '../_tsup-dts-rollup';
6
+ export { GridItemProps_alias_2 as GridItemProps } from '../_tsup-dts-rollup';
4
7
  export { Stack_alias_2 as Stack } from '../_tsup-dts-rollup';
5
8
  export { HStack_alias_2 as HStack } from '../_tsup-dts-rollup';
6
9
  export { VStack_alias_2 as VStack } from '../_tsup-dts-rollup';
10
+ export { StackProps_alias_2 as StackProps } from '../_tsup-dts-rollup';
@@ -1,6 +1,10 @@
1
1
  export { ContainerProps_alias_2 as ContainerProps } from '../_tsup-dts-rollup';
2
2
  export { Container_alias_2 as Container } from '../_tsup-dts-rollup';
3
- export { StackProps_alias_2 as StackProps } from '../_tsup-dts-rollup';
3
+ export { Grid_alias_2 as Grid } from '../_tsup-dts-rollup';
4
+ export { GridItem_alias_2 as GridItem } from '../_tsup-dts-rollup';
5
+ export { GridProps_alias_2 as GridProps } from '../_tsup-dts-rollup';
6
+ export { GridItemProps_alias_2 as GridItemProps } from '../_tsup-dts-rollup';
4
7
  export { Stack_alias_2 as Stack } from '../_tsup-dts-rollup';
5
8
  export { HStack_alias_2 as HStack } from '../_tsup-dts-rollup';
6
9
  export { VStack_alias_2 as VStack } from '../_tsup-dts-rollup';
10
+ export { StackProps_alias_2 as StackProps } from '../_tsup-dts-rollup';