@postenbring/hedwig-react 1.1.0 → 1.2.1
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/{chunk-FUIKSOJF.mjs → chunk-6SVLMQUW.mjs} +4 -4
- package/dist/{chunk-6ZO2TMOX.mjs → chunk-AQZALI2J.mjs} +2 -2
- package/dist/{chunk-EAFQ3XQU.mjs → chunk-QRGGURVO.mjs} +2 -2
- package/dist/{chunk-EAFQ3XQU.mjs.map → chunk-QRGGURVO.mjs.map} +1 -1
- package/dist/{chunk-BHQ46L2O.mjs → chunk-TWUAXAMR.mjs} +1 -1
- package/dist/chunk-TWUAXAMR.mjs.map +1 -0
- package/dist/chunk-XMDDGSCF.mjs +26 -0
- package/dist/chunk-XMDDGSCF.mjs.map +1 -0
- package/dist/{chunk-TC5PD4TA.mjs → chunk-YQMTDQSQ.mjs} +4 -4
- package/dist/{chunk-M7MG7ZQT.mjs → chunk-ZV4GTALL.mjs} +2 -2
- package/dist/form/checkbox/checkbox.js +1 -1
- package/dist/form/checkbox/checkbox.js.map +1 -1
- package/dist/form/checkbox/checkbox.mjs +1 -1
- package/dist/form/checkbox/index.js +1 -1
- package/dist/form/checkbox/index.js.map +1 -1
- package/dist/form/checkbox/index.mjs +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +5 -5
- package/dist/index.js +6 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +88 -88
- package/dist/layout/grid/grid.mjs +2 -2
- package/dist/layout/grid/index.mjs +2 -2
- package/dist/layout/index.mjs +3 -3
- package/dist/layout/stack/index.mjs +2 -2
- package/dist/layout/stack/stack.mjs +2 -2
- package/dist/message/index.js.map +1 -1
- package/dist/message/index.mjs +1 -1
- package/dist/message/message.d.ts +1 -1
- package/dist/message/message.d.ts.map +1 -1
- package/dist/message/message.js.map +1 -1
- package/dist/message/message.mjs +1 -1
- package/dist/navbar/icons.d.ts.map +1 -1
- package/dist/navbar/icons.js +5 -16
- package/dist/navbar/icons.js.map +1 -1
- package/dist/navbar/icons.mjs +1 -1
- package/dist/navbar/index.js +5 -16
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +3 -3
- package/dist/navbar/navbar-expandable-menu.js +5 -16
- package/dist/navbar/navbar-expandable-menu.js.map +1 -1
- package/dist/navbar/navbar-expandable-menu.mjs +2 -2
- package/dist/navbar/navbar.js +5 -16
- package/dist/navbar/navbar.js.map +1 -1
- package/dist/navbar/navbar.mjs +3 -3
- package/package.json +6 -6
- package/src/form/checkbox/checkbox.tsx +1 -1
- package/src/message/message.stories.tsx +1 -1
- package/src/message/message.tsx +1 -1
- package/src/navbar/icons.tsx +2 -9
- package/src/skeleton/skeleton.stories.tsx +1 -1
- package/src/spinner/spinner.stories.tsx +1 -1
- package/dist/chunk-3H7S7C3S.mjs +0 -37
- package/dist/chunk-3H7S7C3S.mjs.map +0 -1
- package/dist/chunk-BHQ46L2O.mjs.map +0 -1
- /package/dist/{chunk-FUIKSOJF.mjs.map → chunk-6SVLMQUW.mjs.map} +0 -0
- /package/dist/{chunk-6ZO2TMOX.mjs.map → chunk-AQZALI2J.mjs.map} +0 -0
- /package/dist/{chunk-TC5PD4TA.mjs.map → chunk-YQMTDQSQ.mjs.map} +0 -0
- /package/dist/{chunk-M7MG7ZQT.mjs.map → chunk-ZV4GTALL.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./chunk-CYDWEPFL.mjs";
|
|
1
2
|
import "./chunk-3D2MWIEX.mjs";
|
|
2
3
|
import {
|
|
3
4
|
WarningBanner
|
|
@@ -14,10 +15,30 @@ import {
|
|
|
14
15
|
TabsList,
|
|
15
16
|
TabsTab
|
|
16
17
|
} from "./chunk-J5SCUELT.mjs";
|
|
18
|
+
import "./chunk-KQITCS3U.mjs";
|
|
17
19
|
import "./chunk-CSXSUQ2M.mjs";
|
|
18
20
|
import {
|
|
19
21
|
Text
|
|
20
22
|
} from "./chunk-DMOMTRIY.mjs";
|
|
23
|
+
import {
|
|
24
|
+
AutoAnimateHeight
|
|
25
|
+
} from "./chunk-KCEWKQ4W.mjs";
|
|
26
|
+
import "./chunk-AJFQHFQT.mjs";
|
|
27
|
+
import {
|
|
28
|
+
Spinner
|
|
29
|
+
} from "./chunk-ZTZAPNZB.mjs";
|
|
30
|
+
import "./chunk-TJH5QJMS.mjs";
|
|
31
|
+
import {
|
|
32
|
+
StepIndicator
|
|
33
|
+
} from "./chunk-XQBJ75VD.mjs";
|
|
34
|
+
import "./chunk-JKCVB5TR.mjs";
|
|
35
|
+
import {
|
|
36
|
+
StyledHtml
|
|
37
|
+
} from "./chunk-EGW3RCXD.mjs";
|
|
38
|
+
import "./chunk-3LYJRAOC.mjs";
|
|
39
|
+
import {
|
|
40
|
+
Table
|
|
41
|
+
} from "./chunk-ZOZPWP3N.mjs";
|
|
21
42
|
import "./chunk-H3E546OT.mjs";
|
|
22
43
|
import {
|
|
23
44
|
Navbar,
|
|
@@ -28,25 +49,29 @@ import {
|
|
|
28
49
|
NavbarLogo,
|
|
29
50
|
NavbarLogoAndServiceText,
|
|
30
51
|
NavbarNavigation
|
|
31
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-AQZALI2J.mjs";
|
|
32
53
|
import {
|
|
33
54
|
NavbarExpandableMenu,
|
|
34
55
|
NavbarExpandableMenuContent,
|
|
35
56
|
NavbarExpandableMenuTrigger,
|
|
36
57
|
useNavbarExpendableMenuContext
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
58
|
+
} from "./chunk-ZV4GTALL.mjs";
|
|
59
|
+
import "./chunk-XMDDGSCF.mjs";
|
|
60
|
+
import "./chunk-SRLM3K2X.mjs";
|
|
40
61
|
import {
|
|
41
|
-
|
|
42
|
-
} from "./chunk-
|
|
62
|
+
ShowMoreButton
|
|
63
|
+
} from "./chunk-JUHJZLH2.mjs";
|
|
64
|
+
import "./chunk-JTZPQHKD.mjs";
|
|
65
|
+
import {
|
|
66
|
+
Skeleton
|
|
67
|
+
} from "./chunk-WLESNP6Z.mjs";
|
|
43
68
|
import "./chunk-6QV3OV66.mjs";
|
|
44
69
|
import "./chunk-RC76SXBP.mjs";
|
|
45
70
|
import {
|
|
46
71
|
Message,
|
|
47
72
|
MessageDescription,
|
|
48
73
|
MessageTitle
|
|
49
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-TWUAXAMR.mjs";
|
|
50
75
|
import "./chunk-FYFJ75NX.mjs";
|
|
51
76
|
import {
|
|
52
77
|
Modal,
|
|
@@ -54,26 +79,11 @@ import {
|
|
|
54
79
|
ModalFooter,
|
|
55
80
|
ModalHeader
|
|
56
81
|
} from "./chunk-6VKQ6IRG.mjs";
|
|
57
|
-
import "./chunk-2YL2MVWN.mjs";
|
|
58
|
-
import "./chunk-K2CB2NLY.mjs";
|
|
59
|
-
import {
|
|
60
|
-
Figure
|
|
61
|
-
} from "./chunk-OE6RISJS.mjs";
|
|
62
82
|
import "./chunk-HQVL3ZJ2.mjs";
|
|
83
|
+
import "./chunk-CFAH2LID.mjs";
|
|
63
84
|
import {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
FooterLinkSection,
|
|
67
|
-
FooterLinkSections,
|
|
68
|
-
FooterLogo
|
|
69
|
-
} from "./chunk-ROQH67YP.mjs";
|
|
70
|
-
import {
|
|
71
|
-
LinkList
|
|
72
|
-
} from "./chunk-Z2ZCM4BE.mjs";
|
|
73
|
-
import {
|
|
74
|
-
OrderedList,
|
|
75
|
-
UnorderedList
|
|
76
|
-
} from "./chunk-LGEGXOPU.mjs";
|
|
85
|
+
HelpText
|
|
86
|
+
} from "./chunk-YZDURLEY.mjs";
|
|
77
87
|
import "./chunk-XFKD6EEJ.mjs";
|
|
78
88
|
import "./chunk-XAFNJELJ.mjs";
|
|
79
89
|
import {
|
|
@@ -83,14 +93,14 @@ import {
|
|
|
83
93
|
RadioGroup,
|
|
84
94
|
useRadioGroupContext
|
|
85
95
|
} from "./chunk-YS7HBWOI.mjs";
|
|
86
|
-
import "./chunk-BYEJZSG5.mjs";
|
|
87
|
-
import {
|
|
88
|
-
Select
|
|
89
|
-
} from "./chunk-6BXKRPR3.mjs";
|
|
90
96
|
import "./chunk-AGZHQDCQ.mjs";
|
|
91
97
|
import {
|
|
92
98
|
Textarea
|
|
93
99
|
} from "./chunk-NIYDN3Y3.mjs";
|
|
100
|
+
import "./chunk-BYEJZSG5.mjs";
|
|
101
|
+
import {
|
|
102
|
+
Select
|
|
103
|
+
} from "./chunk-6BXKRPR3.mjs";
|
|
94
104
|
import "./chunk-7LPYJC6S.mjs";
|
|
95
105
|
import {
|
|
96
106
|
Input
|
|
@@ -98,7 +108,7 @@ import {
|
|
|
98
108
|
import "./chunk-YJOOSTJC.mjs";
|
|
99
109
|
import {
|
|
100
110
|
Checkbox
|
|
101
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-QRGGURVO.mjs";
|
|
102
112
|
import "./chunk-LMF3QGSF.mjs";
|
|
103
113
|
import {
|
|
104
114
|
Fieldset,
|
|
@@ -114,29 +124,33 @@ import "./chunk-NSLSA7F7.mjs";
|
|
|
114
124
|
import {
|
|
115
125
|
ErrorMessage
|
|
116
126
|
} from "./chunk-CC5QWW52.mjs";
|
|
127
|
+
import {
|
|
128
|
+
focusTrap,
|
|
129
|
+
useHydrated,
|
|
130
|
+
useMergeRefs,
|
|
131
|
+
useResize
|
|
132
|
+
} from "./chunk-ILFK3VKS.mjs";
|
|
133
|
+
import "./chunk-XLLYMQLW.mjs";
|
|
134
|
+
import {
|
|
135
|
+
Link
|
|
136
|
+
} from "./chunk-VYS2QNTL.mjs";
|
|
117
137
|
import "./chunk-BVG5VSZK.mjs";
|
|
118
138
|
import "./chunk-G65EYZFQ.mjs";
|
|
119
139
|
import {
|
|
120
140
|
Grid,
|
|
121
141
|
GridItem
|
|
122
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-YQMTDQSQ.mjs";
|
|
123
143
|
import "./chunk-ZQHLYAJU.mjs";
|
|
124
144
|
import {
|
|
125
145
|
HStack,
|
|
126
146
|
Stack,
|
|
127
147
|
VStack
|
|
128
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-6SVLMQUW.mjs";
|
|
129
149
|
import {
|
|
130
150
|
Container
|
|
131
151
|
} from "./chunk-4QZR2H72.mjs";
|
|
132
|
-
import "./chunk-
|
|
133
|
-
import
|
|
134
|
-
Breadcrumbs
|
|
135
|
-
} from "./chunk-A42PXOVR.mjs";
|
|
136
|
-
import "./chunk-HT2EIJAD.mjs";
|
|
137
|
-
import {
|
|
138
|
-
Button
|
|
139
|
-
} from "./chunk-AYCHNAU7.mjs";
|
|
152
|
+
import "./chunk-NE6W2PCD.mjs";
|
|
153
|
+
import "./chunk-7ROE6ADK.mjs";
|
|
140
154
|
import "./chunk-ARHJZUZG.mjs";
|
|
141
155
|
import {
|
|
142
156
|
Card,
|
|
@@ -150,13 +164,46 @@ import {
|
|
|
150
164
|
CardMedia,
|
|
151
165
|
CardMediaImg
|
|
152
166
|
} from "./chunk-AZ6X4L5C.mjs";
|
|
167
|
+
import "./chunk-K2CB2NLY.mjs";
|
|
168
|
+
import {
|
|
169
|
+
Figure
|
|
170
|
+
} from "./chunk-OE6RISJS.mjs";
|
|
171
|
+
import "./chunk-2YL2MVWN.mjs";
|
|
153
172
|
import {
|
|
154
173
|
DescriptionList
|
|
155
174
|
} from "./chunk-C7ZTOZP3.mjs";
|
|
175
|
+
import {
|
|
176
|
+
Footer,
|
|
177
|
+
FooterButtonLink,
|
|
178
|
+
FooterLinkSection,
|
|
179
|
+
FooterLinkSections,
|
|
180
|
+
FooterLogo
|
|
181
|
+
} from "./chunk-ROQH67YP.mjs";
|
|
182
|
+
import {
|
|
183
|
+
LinkList
|
|
184
|
+
} from "./chunk-Z2ZCM4BE.mjs";
|
|
185
|
+
import {
|
|
186
|
+
OrderedList,
|
|
187
|
+
UnorderedList
|
|
188
|
+
} from "./chunk-LGEGXOPU.mjs";
|
|
189
|
+
import "./chunk-HT2EIJAD.mjs";
|
|
190
|
+
import "./chunk-K6PP3ACJ.mjs";
|
|
156
191
|
import "./chunk-KFDS3IPB.mjs";
|
|
157
192
|
import {
|
|
158
193
|
Blockquote
|
|
159
194
|
} from "./chunk-JYN2QSN2.mjs";
|
|
195
|
+
import "./chunk-BCFV6VOE.mjs";
|
|
196
|
+
import {
|
|
197
|
+
Box,
|
|
198
|
+
BoxCloseButton
|
|
199
|
+
} from "./chunk-3OGHJOJF.mjs";
|
|
200
|
+
import "./chunk-ISAHCU7C.mjs";
|
|
201
|
+
import {
|
|
202
|
+
Breadcrumbs
|
|
203
|
+
} from "./chunk-A42PXOVR.mjs";
|
|
204
|
+
import {
|
|
205
|
+
Button
|
|
206
|
+
} from "./chunk-AYCHNAU7.mjs";
|
|
160
207
|
import "./chunk-ZKMFJZSH.mjs";
|
|
161
208
|
import {
|
|
162
209
|
Accordion
|
|
@@ -170,57 +217,10 @@ import {
|
|
|
170
217
|
import {
|
|
171
218
|
AccordionItem
|
|
172
219
|
} from "./chunk-EZVEYJOX.mjs";
|
|
173
|
-
import "./chunk-
|
|
174
|
-
import {
|
|
175
|
-
StepIndicator
|
|
176
|
-
} from "./chunk-XQBJ75VD.mjs";
|
|
177
|
-
import "./chunk-JKCVB5TR.mjs";
|
|
178
|
-
import {
|
|
179
|
-
StyledHtml
|
|
180
|
-
} from "./chunk-EGW3RCXD.mjs";
|
|
181
|
-
import "./chunk-3LYJRAOC.mjs";
|
|
182
|
-
import {
|
|
183
|
-
Table
|
|
184
|
-
} from "./chunk-ZOZPWP3N.mjs";
|
|
185
|
-
import "./chunk-KQITCS3U.mjs";
|
|
186
|
-
import "./chunk-CYDWEPFL.mjs";
|
|
187
|
-
import {
|
|
188
|
-
AutoAnimateHeight
|
|
189
|
-
} from "./chunk-KCEWKQ4W.mjs";
|
|
190
|
-
import {
|
|
191
|
-
focusTrap,
|
|
192
|
-
useHydrated,
|
|
193
|
-
useMergeRefs,
|
|
194
|
-
useResize
|
|
195
|
-
} from "./chunk-ILFK3VKS.mjs";
|
|
196
|
-
import "./chunk-K6PP3ACJ.mjs";
|
|
220
|
+
import "./chunk-YQFL5UN4.mjs";
|
|
197
221
|
import {
|
|
198
222
|
Badge
|
|
199
223
|
} from "./chunk-OXZOGFNV.mjs";
|
|
200
|
-
import "./chunk-YQFL5UN4.mjs";
|
|
201
|
-
import "./chunk-CFAH2LID.mjs";
|
|
202
|
-
import {
|
|
203
|
-
HelpText
|
|
204
|
-
} from "./chunk-YZDURLEY.mjs";
|
|
205
|
-
import "./chunk-BCFV6VOE.mjs";
|
|
206
|
-
import {
|
|
207
|
-
Box,
|
|
208
|
-
BoxCloseButton
|
|
209
|
-
} from "./chunk-3OGHJOJF.mjs";
|
|
210
|
-
import "./chunk-7ROE6ADK.mjs";
|
|
211
|
-
import "./chunk-NE6W2PCD.mjs";
|
|
212
|
-
import "./chunk-SRLM3K2X.mjs";
|
|
213
|
-
import {
|
|
214
|
-
ShowMoreButton
|
|
215
|
-
} from "./chunk-JUHJZLH2.mjs";
|
|
216
|
-
import "./chunk-JTZPQHKD.mjs";
|
|
217
|
-
import {
|
|
218
|
-
Skeleton
|
|
219
|
-
} from "./chunk-WLESNP6Z.mjs";
|
|
220
|
-
import "./chunk-AJFQHFQT.mjs";
|
|
221
|
-
import {
|
|
222
|
-
Spinner
|
|
223
|
-
} from "./chunk-ZTZAPNZB.mjs";
|
|
224
224
|
import "./chunk-YOSPWY5K.mjs";
|
|
225
225
|
export {
|
|
226
226
|
Accordion,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Grid,
|
|
3
3
|
GridItem
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-7ROE6ADK.mjs";
|
|
4
|
+
} from "../../chunk-YQMTDQSQ.mjs";
|
|
6
5
|
import "../../chunk-NE6W2PCD.mjs";
|
|
6
|
+
import "../../chunk-7ROE6ADK.mjs";
|
|
7
7
|
import "../../chunk-YOSPWY5K.mjs";
|
|
8
8
|
export {
|
|
9
9
|
Grid,
|
|
@@ -2,9 +2,9 @@ import "../../chunk-G65EYZFQ.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
Grid,
|
|
4
4
|
GridItem
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-7ROE6ADK.mjs";
|
|
5
|
+
} from "../../chunk-YQMTDQSQ.mjs";
|
|
7
6
|
import "../../chunk-NE6W2PCD.mjs";
|
|
7
|
+
import "../../chunk-7ROE6ADK.mjs";
|
|
8
8
|
import "../../chunk-YOSPWY5K.mjs";
|
|
9
9
|
export {
|
|
10
10
|
Grid,
|
package/dist/layout/index.mjs
CHANGED
|
@@ -3,18 +3,18 @@ import "../chunk-G65EYZFQ.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
Grid,
|
|
5
5
|
GridItem
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-YQMTDQSQ.mjs";
|
|
7
7
|
import "../chunk-ZQHLYAJU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
HStack,
|
|
10
10
|
Stack,
|
|
11
11
|
VStack
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-6SVLMQUW.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Container
|
|
15
15
|
} from "../chunk-4QZR2H72.mjs";
|
|
16
|
-
import "../chunk-7ROE6ADK.mjs";
|
|
17
16
|
import "../chunk-NE6W2PCD.mjs";
|
|
17
|
+
import "../chunk-7ROE6ADK.mjs";
|
|
18
18
|
import "../chunk-YOSPWY5K.mjs";
|
|
19
19
|
export {
|
|
20
20
|
Container,
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
HStack,
|
|
4
4
|
Stack,
|
|
5
5
|
VStack
|
|
6
|
-
} from "../../chunk-
|
|
7
|
-
import "../../chunk-7ROE6ADK.mjs";
|
|
6
|
+
} from "../../chunk-6SVLMQUW.mjs";
|
|
8
7
|
import "../../chunk-NE6W2PCD.mjs";
|
|
8
|
+
import "../../chunk-7ROE6ADK.mjs";
|
|
9
9
|
import "../../chunk-YOSPWY5K.mjs";
|
|
10
10
|
export {
|
|
11
11
|
HStack,
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
HStack,
|
|
3
3
|
Stack,
|
|
4
4
|
VStack
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-7ROE6ADK.mjs";
|
|
5
|
+
} from "../../chunk-6SVLMQUW.mjs";
|
|
7
6
|
import "../../chunk-NE6W2PCD.mjs";
|
|
7
|
+
import "../../chunk-7ROE6ADK.mjs";
|
|
8
8
|
import "../../chunk-YOSPWY5K.mjs";
|
|
9
9
|
export {
|
|
10
10
|
HStack,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/message/index.tsx","../../src/message/message.tsx","../../src/box/box.tsx"],"sourcesContent":["export { Message, MessageTitle, MessageDescription } from \"./message\";\nexport type * from \"./message\";\n","import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Box, type BoxProps } from \"../box/box\";\n\ninterface MessageTitleProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageTitle = forwardRef<HTMLParagraphElement, MessageTitleProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__title\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageTitle.displayName = \"Message.Title\";\n\ninterface MessageDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageDescription = forwardRef<HTMLParagraphElement, MessageDescriptionProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageDescription.displayName = \"Message.Description\";\n\nexport type MessageProps = (\n | {\n variant?: \"success\" | \"attention\" | \"warning\";\n icon?: never;\n iconClassName?: never;\n }\n | {\n variant: \"neutral\";\n icon?: React.ReactNode;\n iconClassName?: string;\n }\n) &\n Omit<BoxProps, \"variant\" | \"asChild\">;\n\nexport const Message = forwardRef<HTMLDivElement, MessageProps>(\n ({ children, className, variant = \"success\", icon, iconClassName, ...rest }, ref) => {\n return (\n <Box\n className={clsx(`hds-message`, `hds-message--${variant}`, className as undefined)}\n ref={ref}\n {...rest}\n >\n {variant === \"neutral\" && (\n <div className={clsx(\"hds-message--neutral__icon\", iconClassName as undefined)}>\n {icon}\n </div>\n )}\n {children}\n </Box>\n );\n },\n) as MessageType;\nMessage.displayName = \"Message\";\n\ntype MessageType = ReturnType<typeof forwardRef<HTMLDivElement, MessageProps>> & {\n Title: typeof MessageTitle;\n Description: typeof MessageDescription;\n};\nMessage.Title = MessageTitle;\nMessage.Description = MessageDescription;\n","import { forwardRef, useCallback, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot, Slottable } from \"@radix-ui/react-slot\";\n\nexport type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, \"children\">;\nexport const BoxCloseButton = forwardRef<HTMLButtonElement, BoxCloseButtonProps>(\n ({ className, ...rest }, ref) => {\n return (\n <button\n className={clsx(\"hds-box__close-button\", className as undefined)}\n ref={ref}\n type=\"button\"\n {...rest}\n />\n );\n },\n);\nBoxCloseButton.displayName = \"Box.CloseButton\";\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n\n /**\n * Color variant of the box\n *\n * @default \"light-grey\"\n */\n variant?: \"light-grey\" | \"lighter\" | \"white\" | \"warning\";\n\n /**\n * If `true`, a close button will be shown.\n * Use when you want to control the close button using the BoxCloseButton component.\n *\n * @default false\n */\n closeable?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n * If not set, the component will be closed without any user interaction.\n *\n * If set, and the handler returns non-true value, the component will not be closed.\n * Use this if you want to control the closing of the component, using the `closed` prop\n *\n * If set, and the handler returns the true, the component will be closed.\n * Use this with `window.confirm()` to ask the user to confirm closing the component.\n */\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- It's fine, I want to have the boolean in the type\n onClose?: () => boolean | unknown;\n\n /**\n * If `true`, the box will be closed and hidden from view\n */\n closed?: boolean;\n\n /**\n * Props applied to the close button element.\n */\n closeButtonProps?: BoxCloseButtonProps;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\n\nexport const Box = forwardRef<HTMLDivElement, BoxProps>(\n (\n {\n asChild,\n variant,\n closeable = false,\n onClose: onCloseProp,\n closed: closedProp,\n closeButtonProps,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [closedState, setClosedState] = useState(false);\n const onClose = useCallback(() => {\n if (onCloseProp) {\n const result = onCloseProp();\n if (result === true) {\n setClosedState(true);\n }\n } else {\n setClosedState(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- I know better\n }, []);\n const closed = closedProp ?? closedState;\n const Component = asChild ? Slot : \"div\";\n\n return (\n <Component\n className={clsx(\n \"hds-box\",\n variant && `hds-box--${variant}`,\n { \"hds-box--closed\": closed },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {closeable ? <BoxCloseButton onClick={onClose} {...closeButtonProps} /> : null}\n <Slottable>{children}</Slottable>\n </Component>\n );\n },\n) as BoxType;\nBox.displayName = \"Box\";\n\nBox.CloseButton = BoxCloseButton;\n\ntype BoxType = ReturnType<typeof forwardRef<HTMLDivElement, BoxProps>> & {\n CloseButton: typeof Bo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ACH;AAAA,EAEJ;AACF;AACA,QAAQ,cAAc;AAMtB,QAAQ,QAAQ;AAChB,QAAQ,cAAc;","names":["import_react","import_typed_classname","import_react_slot","import_jsx_runtime"]}
|
|
1
|
+
{"version":3,"sources":["../../src/message/index.tsx","../../src/message/message.tsx","../../src/box/box.tsx"],"sourcesContent":["export { Message, MessageTitle, MessageDescription } from \"./message\";\nexport type * from \"./message\";\n","import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Box, type BoxProps } from \"../box/box\";\n\ninterface MessageTitleProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageTitle = forwardRef<HTMLParagraphElement, MessageTitleProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__title\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageTitle.displayName = \"Message.Title\";\n\ninterface MessageDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageDescription = forwardRef<HTMLParagraphElement, MessageDescriptionProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageDescription.displayName = \"Message.Description\";\n\nexport type MessageProps = (\n | {\n variant?: \"success\" | \"attention\" | \"warning\" | \"info\";\n icon?: never;\n iconClassName?: never;\n }\n | {\n variant: \"neutral\";\n icon?: React.ReactNode;\n iconClassName?: string;\n }\n) &\n Omit<BoxProps, \"variant\" | \"asChild\">;\n\nexport const Message = forwardRef<HTMLDivElement, MessageProps>(\n ({ children, className, variant = \"success\", icon, iconClassName, ...rest }, ref) => {\n return (\n <Box\n className={clsx(`hds-message`, `hds-message--${variant}`, className as undefined)}\n ref={ref}\n {...rest}\n >\n {variant === \"neutral\" && (\n <div className={clsx(\"hds-message--neutral__icon\", iconClassName as undefined)}>\n {icon}\n </div>\n )}\n {children}\n </Box>\n );\n },\n) as MessageType;\nMessage.displayName = \"Message\";\n\ntype MessageType = ReturnType<typeof forwardRef<HTMLDivElement, MessageProps>> & {\n Title: typeof MessageTitle;\n Description: typeof MessageDescription;\n};\nMessage.Title = MessageTitle;\nMessage.Description = MessageDescription;\n","import { forwardRef, useCallback, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot, Slottable } from \"@radix-ui/react-slot\";\n\nexport type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, \"children\">;\nexport const BoxCloseButton = forwardRef<HTMLButtonElement, BoxCloseButtonProps>(\n ({ className, ...rest }, ref) => {\n return (\n <button\n className={clsx(\"hds-box__close-button\", className as undefined)}\n ref={ref}\n type=\"button\"\n {...rest}\n />\n );\n },\n);\nBoxCloseButton.displayName = \"Box.CloseButton\";\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n\n /**\n * Color variant of the box\n *\n * @default \"light-grey\"\n */\n variant?: \"light-grey\" | \"lighter\" | \"white\" | \"warning\";\n\n /**\n * If `true`, a close button will be shown.\n * Use when you want to control the close button using the BoxCloseButton component.\n *\n * @default false\n */\n closeable?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n * If not set, the component will be closed without any user interaction.\n *\n * If set, and the handler returns non-true value, the component will not be closed.\n * Use this if you want to control the closing of the component, using the `closed` prop\n *\n * If set, and the handler returns the true, the component will be closed.\n * Use this with `window.confirm()` to ask the user to confirm closing the component.\n */\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- It's fine, I want to have the boolean in the type\n onClose?: () => boolean | unknown;\n\n /**\n * If `true`, the box will be closed and hidden from view\n */\n closed?: boolean;\n\n /**\n * Props applied to the close button element.\n */\n closeButtonProps?: BoxCloseButtonProps;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\n\nexport const Box = forwardRef<HTMLDivElement, BoxProps>(\n (\n {\n asChild,\n variant,\n closeable = false,\n onClose: onCloseProp,\n closed: closedProp,\n closeButtonProps,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [closedState, setClosedState] = useState(false);\n const onClose = useCallback(() => {\n if (onCloseProp) {\n const result = onCloseProp();\n if (result === true) {\n setClosedState(true);\n }\n } else {\n setClosedState(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- I know better\n }, []);\n const closed = closedProp ?? closedState;\n const Component = asChild ? Slot : \"div\";\n\n return (\n <Component\n className={clsx(\n \"hds-box\",\n variant && `hds-box--${variant}`,\n { \"hds-box--closed\": closed },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {closeable ? <BoxCloseButton onClick={onClose} {...closeButtonProps} /> : null}\n <Slottable>{children}</Slottable>\n </Component>\n );\n },\n) as BoxType;\nBox.displayName = \"Box\";\n\nBox.CloseButton = BoxCloseButton;\n\ntype BoxType = ReturnType<typeof forwardRef<HTMLDivElement, BoxProps>> & {\n CloseButton: typeof BoxCloseButton;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,gBAA2B;AAC3B,IAAAC,0BAAqB;AACrB,IAAAC,qBAAqB;;;ACFrB,mBAAkD;AAClD,6BAAqB;AACrB,wBAAgC;AAM1B;AAHC,IAAM,qBAAiB;AAAA,EAC5B,CAAC,IAAwB,QAAQ;AAAhC,iBAAE,YANL,IAMG,IAAgB,iBAAhB,IAAgB,CAAd;AACD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAA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0BAAO;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,8BAAK,sBAAsB,SAAsB;AAAA,QAC5D;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,aAAa,cAAc;AAUpB,IAAM,yBAAqB;AAAA,EAChC,CAAC,IAAiC,QAAQ;AAAzC,iBAAE,WAAS,UApCd,IAoCG,IAAyB,iBAAzB,IAAyB,CAAvB,WAAS;AACV,UAAM,YAAY,UAAU,0BAAO;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,8BAAK,4BAA4B,SAAsB;AAAA,QAClE;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,mBAAmB,cAAc;AAgB1B,IAAM,cAAU;AAAA,EACrB,CAAC,IAA4E,QAAQ;AAApF,iBAAE,YAAU,WAAW,UAAU,WAAW,MAAM,cAhErD,IAgEG,IAAoE,iBAApE,IAAoE,CAAlE,YAAU,aAAW,WAAqB,QAAM;AACjD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,8BAAK,eAAe,gBAAgB,OAAO,IAAI,SAAsB;AAAA,QAChF;AAAA,SACI,OAHL;AAAA,QAKE;AAAA,sBAAY,aACX,6CAAC,SAAI,eAAW,8BAAK,8BAA8B,aAA0B,GAC1E,gBACH;AAAA,UAED;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,QAAQ,cAAc;AAMtB,QAAQ,QAAQ;AAChB,QAAQ,cAAc;","names":["import_react","import_typed_classname","import_react_slot","import_jsx_runtime"]}
|
package/dist/message/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ interface MessageDescriptionProps extends React.HTMLAttributes<HTMLParagraphElem
|
|
|
19
19
|
}
|
|
20
20
|
export declare const MessageDescription: import("react").ForwardRefExoticComponent<MessageDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
21
21
|
export type MessageProps = ({
|
|
22
|
-
variant?: "success" | "attention" | "warning";
|
|
22
|
+
variant?: "success" | "attention" | "warning" | "info";
|
|
23
23
|
icon?: never;
|
|
24
24
|
iconClassName?: never;
|
|
25
25
|
} | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/message/message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGnC,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAC5E;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,eAAO,MAAM,YAAY,oHAWxB,CAAC;AAGF,UAAU,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAClF;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,eAAO,MAAM,kBAAkB,0HAW9B,CAAC;AAGF,MAAM,MAAM,YAAY,GAAG,CACvB;IACE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/message/message.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAGnC,OAAO,EAAO,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEhD,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAC5E;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,eAAO,MAAM,YAAY,oHAWxB,CAAC;AAGF,UAAU,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAClF;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,eAAO,MAAM,kBAAkB,0HAW9B,CAAC;AAGF,MAAM,MAAM,YAAY,GAAG,CACvB;IACE,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;IACvD,IAAI,CAAC,EAAE,KAAK,CAAC;IACb,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB,GACD;IACE,OAAO,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CACJ,GACC,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,OAAO,EAiBf,WAAW,CAAC;AAGjB,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC,GAAG;IAC/E,KAAK,EAAE,OAAO,YAAY,CAAC;IAC3B,WAAW,EAAE,OAAO,kBAAkB,CAAC;CACxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/message/message.tsx","../../src/box/box.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Box, type BoxProps } from \"../box/box\";\n\ninterface MessageTitleProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageTitle = forwardRef<HTMLParagraphElement, MessageTitleProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__title\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageTitle.displayName = \"Message.Title\";\n\ninterface MessageDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageDescription = forwardRef<HTMLParagraphElement, MessageDescriptionProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageDescription.displayName = \"Message.Description\";\n\nexport type MessageProps = (\n | {\n variant?: \"success\" | \"attention\" | \"warning\";\n icon?: never;\n iconClassName?: never;\n }\n | {\n variant: \"neutral\";\n icon?: React.ReactNode;\n iconClassName?: string;\n }\n) &\n Omit<BoxProps, \"variant\" | \"asChild\">;\n\nexport const Message = forwardRef<HTMLDivElement, MessageProps>(\n ({ children, className, variant = \"success\", icon, iconClassName, ...rest }, ref) => {\n return (\n <Box\n className={clsx(`hds-message`, `hds-message--${variant}`, className as undefined)}\n ref={ref}\n {...rest}\n >\n {variant === \"neutral\" && (\n <div className={clsx(\"hds-message--neutral__icon\", iconClassName as undefined)}>\n {icon}\n </div>\n )}\n {children}\n </Box>\n );\n },\n) as MessageType;\nMessage.displayName = \"Message\";\n\ntype MessageType = ReturnType<typeof forwardRef<HTMLDivElement, MessageProps>> & {\n Title: typeof MessageTitle;\n Description: typeof MessageDescription;\n};\nMessage.Title = MessageTitle;\nMessage.Description = MessageDescription;\n","import { forwardRef, useCallback, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot, Slottable } from \"@radix-ui/react-slot\";\n\nexport type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, \"children\">;\nexport const BoxCloseButton = forwardRef<HTMLButtonElement, BoxCloseButtonProps>(\n ({ className, ...rest }, ref) => {\n return (\n <button\n className={clsx(\"hds-box__close-button\", className as undefined)}\n ref={ref}\n type=\"button\"\n {...rest}\n />\n );\n },\n);\nBoxCloseButton.displayName = \"Box.CloseButton\";\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n\n /**\n * Color variant of the box\n *\n * @default \"light-grey\"\n */\n variant?: \"light-grey\" | \"lighter\" | \"white\" | \"warning\";\n\n /**\n * If `true`, a close button will be shown.\n * Use when you want to control the close button using the BoxCloseButton component.\n *\n * @default false\n */\n closeable?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n * If not set, the component will be closed without any user interaction.\n *\n * If set, and the handler returns non-true value, the component will not be closed.\n * Use this if you want to control the closing of the component, using the `closed` prop\n *\n * If set, and the handler returns the true, the component will be closed.\n * Use this with `window.confirm()` to ask the user to confirm closing the component.\n */\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- It's fine, I want to have the boolean in the type\n onClose?: () => boolean | unknown;\n\n /**\n * If `true`, the box will be closed and hidden from view\n */\n closed?: boolean;\n\n /**\n * Props applied to the close button element.\n */\n closeButtonProps?: BoxCloseButtonProps;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\n\nexport const Box = forwardRef<HTMLDivElement, BoxProps>(\n (\n {\n asChild,\n variant,\n closeable = false,\n onClose: onCloseProp,\n closed: closedProp,\n closeButtonProps,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [closedState, setClosedState] = useState(false);\n const onClose = useCallback(() => {\n if (onCloseProp) {\n const result = onCloseProp();\n if (result === true) {\n setClosedState(true);\n }\n } else {\n setClosedState(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- I know better\n }, []);\n const closed = closedProp ?? closedState;\n const Component = asChild ? Slot : \"div\";\n\n return (\n <Component\n className={clsx(\n \"hds-box\",\n variant && `hds-box--${variant}`,\n { \"hds-box--closed\": closed },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {closeable ? <BoxCloseButton onClick={onClose} {...closeButtonProps} /> : null}\n <Slottable>{children}</Slottable>\n </Component>\n );\n },\n) as BoxType;\nBox.displayName = \"Box\";\n\nBox.CloseButton = BoxCloseButton;\n\ntype BoxType = ReturnType<typeof forwardRef<HTMLDivElement, BoxProps>> & {\n Close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AAAA,IACH;AAAA,EAEJ;AACF;AACA,QAAQ,cAAc;AAMtB,QAAQ,QAAQ;AAChB,QAAQ,cAAc;","names":["import_react","import_typed_classname","import_react_slot","import_jsx_runtime"]}
|
|
1
|
+
{"version":3,"sources":["../../src/message/message.tsx","../../src/box/box.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Box, type BoxProps } from \"../box/box\";\n\ninterface MessageTitleProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageTitle = forwardRef<HTMLParagraphElement, MessageTitleProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__title\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageTitle.displayName = \"Message.Title\";\n\ninterface MessageDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageDescription = forwardRef<HTMLParagraphElement, MessageDescriptionProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageDescription.displayName = \"Message.Description\";\n\nexport type MessageProps = (\n | {\n variant?: \"success\" | \"attention\" | \"warning\" | \"info\";\n icon?: never;\n iconClassName?: never;\n }\n | {\n variant: \"neutral\";\n icon?: React.ReactNode;\n iconClassName?: string;\n }\n) &\n Omit<BoxProps, \"variant\" | \"asChild\">;\n\nexport const Message = forwardRef<HTMLDivElement, MessageProps>(\n ({ children, className, variant = \"success\", icon, iconClassName, ...rest }, ref) => {\n return (\n <Box\n className={clsx(`hds-message`, `hds-message--${variant}`, className as undefined)}\n ref={ref}\n {...rest}\n >\n {variant === \"neutral\" && (\n <div className={clsx(\"hds-message--neutral__icon\", iconClassName as undefined)}>\n {icon}\n </div>\n )}\n {children}\n </Box>\n );\n },\n) as MessageType;\nMessage.displayName = \"Message\";\n\ntype MessageType = ReturnType<typeof forwardRef<HTMLDivElement, MessageProps>> & {\n Title: typeof MessageTitle;\n Description: typeof MessageDescription;\n};\nMessage.Title = MessageTitle;\nMessage.Description = MessageDescription;\n","import { forwardRef, useCallback, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot, Slottable } from \"@radix-ui/react-slot\";\n\nexport type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, \"children\">;\nexport const BoxCloseButton = forwardRef<HTMLButtonElement, BoxCloseButtonProps>(\n ({ className, ...rest }, ref) => {\n return (\n <button\n className={clsx(\"hds-box__close-button\", className as undefined)}\n ref={ref}\n type=\"button\"\n {...rest}\n />\n );\n },\n);\nBoxCloseButton.displayName = \"Box.CloseButton\";\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n\n /**\n * Color variant of the box\n *\n * @default \"light-grey\"\n */\n variant?: \"light-grey\" | \"lighter\" | \"white\" | \"warning\";\n\n /**\n * If `true`, a close button will be shown.\n * Use when you want to control the close button using the BoxCloseButton component.\n *\n * @default false\n */\n closeable?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n * If not set, the component will be closed without any user interaction.\n *\n * If set, and the handler returns non-true value, the component will not be closed.\n * Use this if you want to control the closing of the component, using the `closed` prop\n *\n * If set, and the handler returns the true, the component will be closed.\n * Use this with `window.confirm()` to ask the user to confirm closing the component.\n */\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- It's fine, I want to have the boolean in the type\n onClose?: () => boolean | unknown;\n\n /**\n * If `true`, the box will be closed and hidden from view\n */\n closed?: boolean;\n\n /**\n * Props applied to the close button element.\n */\n closeButtonProps?: BoxCloseButtonProps;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\n\nexport const Box = forwardRef<HTMLDivElement, BoxProps>(\n (\n {\n asChild,\n variant,\n closeable = false,\n onClose: onCloseProp,\n closed: closedProp,\n closeButtonProps,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [closedState, setClosedState] = useState(false);\n const onClose = useCallback(() => {\n if (onCloseProp) {\n const result = onCloseProp();\n if (result === true) {\n setClosedState(true);\n }\n } else {\n setClosedState(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- I know better\n }, []);\n const closed = closedProp ?? closedState;\n const Component = asChild ? Slot : \"div\";\n\n return (\n <Component\n className={clsx(\n \"hds-box\",\n variant && `hds-box--${variant}`,\n { \"hds-box--closed\": closed },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {closeable ? <BoxCloseButton onClick={onClose} {...closeButtonProps} /> : null}\n <Slottable>{children}</Slottable>\n </Component>\n );\n },\n) as BoxType;\nBox.displayName = \"Box\";\n\nBox.CloseButton = BoxCloseButton;\n\ntype BoxType = ReturnType<typeof forwardRef<HTMLDivElement, BoxProps>> & {\n CloseButton: typeof BoxCloseButton;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,gBAA2B;AAC3B,IAAAC,0BAAqB;AACrB,IAAAC,qBAAqB;;;ACFrB,mBAAkD;AAClD,6BAAqB;AACrB,wBAAgC;AAM1B;AAHC,IAAM,qBAAiB;AAAA,EAC5B,CAAC,IAAwB,QAAQ;AAAhC,iBAAE,YANL,IAMG,IAAgB,iBAAhB,IAAgB,CAAd;AACD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,6BAAK,yBAAyB,SAAsB;AAAA,QAC/D;AAAA,QACA,MAAK;AAAA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sBAAsB,SAAsB;AAAA,QAC5D;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,aAAa,cAAc;AAUpB,IAAM,yBAAqB;AAAA,EAChC,CAAC,IAAiC,QAAQ;AAAzC,iBAAE,WAAS,UApCd,IAoCG,IAAyB,iBAAzB,IAAyB,CAAvB,WAAS;AACV,UAAM,YAAY,UAAU,0BAAO;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,8BAAK,4BAA4B,SAAsB;AAAA,QAClE;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,mBAAmB,cAAc;AAgB1B,IAAM,cAAU;AAAA,EACrB,CAAC,IAA4E,QAAQ;AAApF,iBAAE,YAAU,WAAW,UAAU,WAAW,MAAM,cAhErD,IAgEG,IAAoE,iBAApE,IAAoE,CAAlE,YAAU,aAAW,WAAqB,QAAM;AACjD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,8BAAK,eAAe,gBAAgB,OAAO,IAAI,SAAsB;AAAA,QAChF;AAAA,SACI,OAHL;AAAA,QAKE;AAAA,sBAAY,aACX,6CAAC,SAAI,eAAW,8BAAK,8BAA8B,aAA0B,GAC1E,gBACH;AAAA,UAED;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,QAAQ,cAAc;AAMtB,QAAQ,QAAQ;AAChB,QAAQ,cAAc;","names":["import_react","import_typed_classname","import_react_slot","import_jsx_runtime"]}
|
package/dist/message/message.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/navbar/icons.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../src/navbar/icons.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,4CASxB;AAED,wBAAgB,QAAQ,4CASvB"}
|
package/dist/navbar/icons.js
CHANGED
|
@@ -26,24 +26,13 @@ __export(icons_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(icons_exports);
|
|
27
27
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
28
|
function CloseIcon() {
|
|
29
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
30
|
-
"
|
|
29
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
30
|
+
"path",
|
|
31
31
|
{
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
width: 32,
|
|
35
|
-
height: 32,
|
|
36
|
-
viewBox: "0 0 32 32",
|
|
37
|
-
fill: "none",
|
|
38
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
39
|
-
"path",
|
|
40
|
-
{
|
|
41
|
-
d: "M17.5469 16.3333L22.375 11.5521L23.3594 10.5677C23.5 10.4271 23.5 10.1927 23.3594 10.0052L22.3281 8.97394C22.1406 8.83331 21.9062 8.83331 21.7656 8.97394L16 14.7864L10.1875 8.97394C10.0469 8.83331 9.8125 8.83331 9.625 8.97394L8.59375 10.0052C8.45312 10.1927 8.45312 10.4271 8.59375 10.5677L14.4062 16.3333L8.59375 22.1458C8.45312 22.2864 8.45312 22.5208 8.59375 22.7083L9.625 23.7396C9.8125 23.8802 10.0469 23.8802 10.1875 23.7396L16 17.9271L20.7812 22.7552L21.7656 23.7396C21.9062 23.8802 22.1406 23.8802 22.3281 23.7396L23.3594 22.7083C23.5 22.5208 23.5 22.2864 23.3594 22.1458L17.5469 16.3333Z",
|
|
42
|
-
fill: "black"
|
|
43
|
-
}
|
|
44
|
-
)
|
|
32
|
+
d: "M17.5469 16.3333L22.375 11.5521L23.3594 10.5677C23.5 10.4271 23.5 10.1927 23.3594 10.0052L22.3281 8.97394C22.1406 8.83331 21.9062 8.83331 21.7656 8.97394L16 14.7864L10.1875 8.97394C10.0469 8.83331 9.8125 8.83331 9.625 8.97394L8.59375 10.0052C8.45312 10.1927 8.45312 10.4271 8.59375 10.5677L14.4062 16.3333L8.59375 22.1458C8.45312 22.2864 8.45312 22.5208 8.59375 22.7083L9.625 23.7396C9.8125 23.8802 10.0469 23.8802 10.1875 23.7396L16 17.9271L20.7812 22.7552L21.7656 23.7396C21.9062 23.8802 22.1406 23.8802 22.3281 23.7396L23.3594 22.7083C23.5 22.5208 23.5 22.2864 23.3594 22.1458L17.5469 16.3333Z",
|
|
33
|
+
fill: "currentColor"
|
|
45
34
|
}
|
|
46
|
-
);
|
|
35
|
+
) });
|
|
47
36
|
}
|
|
48
37
|
function MenuIcon() {
|
|
49
38
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
package/dist/navbar/icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/navbar/icons.tsx"],"sourcesContent":["export function CloseIcon() {\n return (\n <svg
|
|
1
|
+
{"version":3,"sources":["../../src/navbar/icons.tsx"],"sourcesContent":["export function CloseIcon() {\n return (\n <svg aria-hidden xmlns=\"http://www.w3.org/2000/svg\" width={32} height={32} viewBox=\"0 0 32 32\">\n <path\n d=\"M17.5469 16.3333L22.375 11.5521L23.3594 10.5677C23.5 10.4271 23.5 10.1927 23.3594 10.0052L22.3281 8.97394C22.1406 8.83331 21.9062 8.83331 21.7656 8.97394L16 14.7864L10.1875 8.97394C10.0469 8.83331 9.8125 8.83331 9.625 8.97394L8.59375 10.0052C8.45312 10.1927 8.45312 10.4271 8.59375 10.5677L14.4062 16.3333L8.59375 22.1458C8.45312 22.2864 8.45312 22.5208 8.59375 22.7083L9.625 23.7396C9.8125 23.8802 10.0469 23.8802 10.1875 23.7396L16 17.9271L20.7812 22.7552L21.7656 23.7396C21.9062 23.8802 22.1406 23.8802 22.3281 23.7396L23.3594 22.7083C23.5 22.5208 23.5 22.2864 23.3594 22.1458L17.5469 16.3333Z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n}\n\nexport function MenuIcon() {\n return (\n <svg aria-hidden xmlns=\"http://www.w3.org/2000/svg\" width={32} height={32}>\n <path\n fill=\"currentColor\"\n d=\"M25.938 10.146a.57.57 0 0 0 .562-.563v-1.5c0-.281-.281-.562-.563-.562H6.063a.57.57 0 0 0-.562.562v1.5c0 .328.234.563.563.563h19.875Zm0 7.5a.57.57 0 0 0 .562-.563v-1.5c0-.281-.281-.563-.563-.563H6.063a.57.57 0 0 0-.562.563v1.5c0 .328.234.563.563.563h19.875Zm0 7.5a.57.57 0 0 0 .562-.563v-1.5c0-.281-.281-.563-.563-.563H6.063a.57.57 0 0 0-.562.563v1.5c0 .328.234.563.563.563h19.875Z\"\n />\n </svg>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGM;AAHC,SAAS,YAAY;AAC1B,SACE,4CAAC,SAAI,eAAW,MAAC,OAAM,8BAA6B,OAAO,IAAI,QAAQ,IAAI,SAAQ,aACjF;AAAA,IAAC;AAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA;AAAA,EACP,GACF;AAEJ;AAEO,SAAS,WAAW;AACzB,SACE,4CAAC,SAAI,eAAW,MAAC,OAAM,8BAA6B,OAAO,IAAI,QAAQ,IACrE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,GAAE;AAAA;AAAA,EACJ,GACF;AAEJ;","names":[]}
|
package/dist/navbar/icons.mjs
CHANGED
package/dist/navbar/index.js
CHANGED
|
@@ -115,24 +115,13 @@ function releaseFocusTrap(inertElements) {
|
|
|
115
115
|
// src/navbar/icons.tsx
|
|
116
116
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
117
117
|
function CloseIcon() {
|
|
118
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
119
|
-
"
|
|
118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
119
|
+
"path",
|
|
120
120
|
{
|
|
121
|
-
"
|
|
122
|
-
|
|
123
|
-
width: 32,
|
|
124
|
-
height: 32,
|
|
125
|
-
viewBox: "0 0 32 32",
|
|
126
|
-
fill: "none",
|
|
127
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
128
|
-
"path",
|
|
129
|
-
{
|
|
130
|
-
d: "M17.5469 16.3333L22.375 11.5521L23.3594 10.5677C23.5 10.4271 23.5 10.1927 23.3594 10.0052L22.3281 8.97394C22.1406 8.83331 21.9062 8.83331 21.7656 8.97394L16 14.7864L10.1875 8.97394C10.0469 8.83331 9.8125 8.83331 9.625 8.97394L8.59375 10.0052C8.45312 10.1927 8.45312 10.4271 8.59375 10.5677L14.4062 16.3333L8.59375 22.1458C8.45312 22.2864 8.45312 22.5208 8.59375 22.7083L9.625 23.7396C9.8125 23.8802 10.0469 23.8802 10.1875 23.7396L16 17.9271L20.7812 22.7552L21.7656 23.7396C21.9062 23.8802 22.1406 23.8802 22.3281 23.7396L23.3594 22.7083C23.5 22.5208 23.5 22.2864 23.3594 22.1458L17.5469 16.3333Z",
|
|
131
|
-
fill: "black"
|
|
132
|
-
}
|
|
133
|
-
)
|
|
121
|
+
d: "M17.5469 16.3333L22.375 11.5521L23.3594 10.5677C23.5 10.4271 23.5 10.1927 23.3594 10.0052L22.3281 8.97394C22.1406 8.83331 21.9062 8.83331 21.7656 8.97394L16 14.7864L10.1875 8.97394C10.0469 8.83331 9.8125 8.83331 9.625 8.97394L8.59375 10.0052C8.45312 10.1927 8.45312 10.4271 8.59375 10.5677L14.4062 16.3333L8.59375 22.1458C8.45312 22.2864 8.45312 22.5208 8.59375 22.7083L9.625 23.7396C9.8125 23.8802 10.0469 23.8802 10.1875 23.7396L16 17.9271L20.7812 22.7552L21.7656 23.7396C21.9062 23.8802 22.1406 23.8802 22.3281 23.7396L23.3594 22.7083C23.5 22.5208 23.5 22.2864 23.3594 22.1458L17.5469 16.3333Z",
|
|
122
|
+
fill: "currentColor"
|
|
134
123
|
}
|
|
135
|
-
);
|
|
124
|
+
) });
|
|
136
125
|
}
|
|
137
126
|
function MenuIcon() {
|
|
138
127
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 32, height: 32, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|