@postenbring/hedwig-react 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alert/alert.d.ts +36 -0
- package/dist/alert/alert.d.ts.map +1 -0
- package/dist/alert/alert.js +186 -0
- package/dist/alert/alert.js.map +1 -0
- package/dist/alert/alert.mjs +13 -0
- package/dist/alert/alert.mjs.map +1 -0
- package/dist/alert/index.d.ts +3 -0
- package/dist/alert/index.d.ts.map +1 -0
- package/dist/alert/index.js +188 -0
- package/dist/alert/index.js.map +1 -0
- package/dist/alert/index.mjs +14 -0
- package/dist/alert/index.mjs.map +1 -0
- package/dist/{chunk-LGEGXOPU.mjs → chunk-3QHKPEXO.mjs} +12 -4
- package/dist/chunk-3QHKPEXO.mjs.map +1 -0
- package/dist/{chunk-444SCBJD.mjs → chunk-4C76JM3T.mjs} +2 -2
- package/dist/chunk-4P4GPVKZ.mjs +63 -0
- package/dist/chunk-4P4GPVKZ.mjs.map +1 -0
- package/dist/{chunk-6SVLMQUW.mjs → chunk-FUIKSOJF.mjs} +4 -4
- package/dist/{chunk-Z2ZCM4BE.mjs → chunk-OS24UCTD.mjs} +2 -2
- package/dist/chunk-OVKUPO5U.mjs +1 -0
- package/dist/chunk-OVKUPO5U.mjs.map +1 -0
- package/dist/{chunk-YQMTDQSQ.mjs → chunk-TC5PD4TA.mjs} +4 -4
- package/dist/{chunk-CFAPQFEC.mjs → chunk-ZSYBCM2L.mjs} +5 -5
- package/dist/footer/footer.js +11 -3
- package/dist/footer/footer.js.map +1 -1
- package/dist/footer/footer.mjs +3 -3
- package/dist/footer/index.js +11 -3
- package/dist/footer/index.js.map +1 -1
- package/dist/footer/index.mjs +3 -3
- package/dist/form/error-summary/error-summary.js +11 -3
- package/dist/form/error-summary/error-summary.js.map +1 -1
- package/dist/form/error-summary/error-summary.mjs +5 -5
- package/dist/form/error-summary/index.js +11 -3
- package/dist/form/error-summary/index.js.map +1 -1
- package/dist/form/error-summary/index.mjs +5 -5
- package/dist/form/index.js +11 -3
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +17 -17
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +637 -573
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +73 -64
- package/dist/layout/grid/grid.mjs +2 -2
- package/dist/layout/grid/index.mjs +2 -2
- package/dist/layout/index.mjs +9 -9
- package/dist/layout/stack/index.mjs +2 -2
- package/dist/layout/stack/stack.mjs +2 -2
- package/dist/list/index.js +11 -3
- package/dist/list/index.js.map +1 -1
- package/dist/list/index.mjs +2 -2
- package/dist/list/link-list.js +11 -3
- package/dist/list/link-list.js.map +1 -1
- package/dist/list/link-list.mjs +2 -2
- package/dist/list/list.d.ts +1 -1
- package/dist/list/list.d.ts.map +1 -1
- package/dist/list/list.js +11 -3
- package/dist/list/list.js.map +1 -1
- package/dist/list/list.mjs +1 -1
- package/dist/text/text.d.ts +1 -1
- package/package.json +5 -5
- package/src/alert/alert.stories.tsx +36 -0
- package/src/alert/alert.tsx +83 -0
- package/src/alert/index.tsx +2 -0
- package/src/index.ts +1 -0
- package/src/list/list.tsx +12 -4
- package/dist/chunk-LGEGXOPU.mjs.map +0 -1
- /package/dist/{chunk-444SCBJD.mjs.map → chunk-4C76JM3T.mjs.map} +0 -0
- /package/dist/{chunk-6SVLMQUW.mjs.map → chunk-FUIKSOJF.mjs.map} +0 -0
- /package/dist/{chunk-Z2ZCM4BE.mjs.map → chunk-OS24UCTD.mjs.map} +0 -0
- /package/dist/{chunk-YQMTDQSQ.mjs.map → chunk-TC5PD4TA.mjs.map} +0 -0
- /package/dist/{chunk-CFAPQFEC.mjs.map → chunk-ZSYBCM2L.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import "./chunk-CSXSUQ2M.mjs";
|
|
2
|
+
import {
|
|
3
|
+
Text
|
|
4
|
+
} from "./chunk-DMOMTRIY.mjs";
|
|
1
5
|
import "./chunk-3D2MWIEX.mjs";
|
|
2
6
|
import {
|
|
3
7
|
WarningBanner
|
|
4
8
|
} from "./chunk-EMQB6JIS.mjs";
|
|
9
|
+
import "./chunk-JKCVB5TR.mjs";
|
|
10
|
+
import {
|
|
11
|
+
StyledHtml
|
|
12
|
+
} from "./chunk-EGW3RCXD.mjs";
|
|
5
13
|
import "./chunk-3LYJRAOC.mjs";
|
|
6
14
|
import {
|
|
7
15
|
Table
|
|
@@ -19,10 +27,10 @@ import {
|
|
|
19
27
|
TabsTab
|
|
20
28
|
} from "./chunk-J5SCUELT.mjs";
|
|
21
29
|
import "./chunk-KQITCS3U.mjs";
|
|
22
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-SRLM3K2X.mjs";
|
|
23
31
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
32
|
+
ShowMoreButton
|
|
33
|
+
} from "./chunk-JUHJZLH2.mjs";
|
|
26
34
|
import "./chunk-JTZPQHKD.mjs";
|
|
27
35
|
import {
|
|
28
36
|
Skeleton
|
|
@@ -35,10 +43,6 @@ import "./chunk-TJH5QJMS.mjs";
|
|
|
35
43
|
import {
|
|
36
44
|
StepIndicator
|
|
37
45
|
} from "./chunk-XQBJ75VD.mjs";
|
|
38
|
-
import "./chunk-JKCVB5TR.mjs";
|
|
39
|
-
import {
|
|
40
|
-
StyledHtml
|
|
41
|
-
} from "./chunk-EGW3RCXD.mjs";
|
|
42
46
|
import "./chunk-FYFJ75NX.mjs";
|
|
43
47
|
import {
|
|
44
48
|
Modal,
|
|
@@ -64,11 +68,28 @@ import {
|
|
|
64
68
|
useNavbarExpendableMenuContext
|
|
65
69
|
} from "./chunk-DRSAVDIE.mjs";
|
|
66
70
|
import "./chunk-XMDDGSCF.mjs";
|
|
67
|
-
import "./chunk-
|
|
71
|
+
import "./chunk-BVG5VSZK.mjs";
|
|
72
|
+
import "./chunk-G65EYZFQ.mjs";
|
|
73
|
+
import "./chunk-ZQHLYAJU.mjs";
|
|
68
74
|
import {
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
HStack,
|
|
76
|
+
Stack,
|
|
77
|
+
VStack
|
|
78
|
+
} from "./chunk-FUIKSOJF.mjs";
|
|
79
|
+
import {
|
|
80
|
+
Container
|
|
81
|
+
} from "./chunk-4QZR2H72.mjs";
|
|
82
|
+
import {
|
|
83
|
+
Grid,
|
|
84
|
+
GridItem
|
|
85
|
+
} from "./chunk-TC5PD4TA.mjs";
|
|
86
|
+
import "./chunk-7ROE6ADK.mjs";
|
|
87
|
+
import "./chunk-NE6W2PCD.mjs";
|
|
88
|
+
import "./chunk-2YL2MVWN.mjs";
|
|
71
89
|
import "./chunk-K2CB2NLY.mjs";
|
|
90
|
+
import {
|
|
91
|
+
Figure
|
|
92
|
+
} from "./chunk-OE6RISJS.mjs";
|
|
72
93
|
import "./chunk-HQVL3ZJ2.mjs";
|
|
73
94
|
import {
|
|
74
95
|
Footer,
|
|
@@ -76,7 +97,7 @@ import {
|
|
|
76
97
|
FooterLinkSection,
|
|
77
98
|
FooterLinkSections,
|
|
78
99
|
FooterLogo
|
|
79
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-4C76JM3T.mjs";
|
|
80
101
|
import "./chunk-IJSEJZ3W.mjs";
|
|
81
102
|
import "./chunk-BYEJZSG5.mjs";
|
|
82
103
|
import {
|
|
@@ -86,6 +107,7 @@ import "./chunk-AGZHQDCQ.mjs";
|
|
|
86
107
|
import {
|
|
87
108
|
Textarea
|
|
88
109
|
} from "./chunk-JEAGKB4V.mjs";
|
|
110
|
+
import "./chunk-KPPLVGZ3.mjs";
|
|
89
111
|
import "./chunk-7LPYJC6S.mjs";
|
|
90
112
|
import {
|
|
91
113
|
Input
|
|
@@ -98,34 +120,39 @@ import {
|
|
|
98
120
|
RadioGroup,
|
|
99
121
|
useRadioGroupContext
|
|
100
122
|
} from "./chunk-E6OOFTRQ.mjs";
|
|
123
|
+
import "./chunk-YJOOSTJC.mjs";
|
|
124
|
+
import {
|
|
125
|
+
Checkbox
|
|
126
|
+
} from "./chunk-BO3EWZGA.mjs";
|
|
127
|
+
import "./chunk-LMF3QGSF.mjs";
|
|
128
|
+
import {
|
|
129
|
+
Fieldset,
|
|
130
|
+
useFieldsetContext
|
|
131
|
+
} from "./chunk-Z2ZPTZ6F.mjs";
|
|
101
132
|
import "./chunk-TDLSHJ4Z.mjs";
|
|
102
133
|
import {
|
|
103
134
|
DatePicker
|
|
104
135
|
} from "./chunk-GVO57ZWU.mjs";
|
|
105
136
|
import "./chunk-Y5SUMFYJ.mjs";
|
|
106
137
|
import "./chunk-XZ43OSZ5.mjs";
|
|
107
|
-
import "./chunk-
|
|
138
|
+
import "./chunk-NSLSA7F7.mjs";
|
|
139
|
+
import {
|
|
140
|
+
ErrorMessage
|
|
141
|
+
} from "./chunk-LHIG6RW7.mjs";
|
|
108
142
|
import {
|
|
109
143
|
ErrorSummary
|
|
110
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-ZSYBCM2L.mjs";
|
|
111
145
|
import "./chunk-CKAL5ZJZ.mjs";
|
|
112
146
|
import "./chunk-CYDWEPFL.mjs";
|
|
113
147
|
import {
|
|
114
148
|
AutoAnimateHeight
|
|
115
149
|
} from "./chunk-KCEWKQ4W.mjs";
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import {
|
|
118
|
-
Checkbox
|
|
119
|
-
} from "./chunk-BO3EWZGA.mjs";
|
|
120
|
-
import "./chunk-LMF3QGSF.mjs";
|
|
121
|
-
import {
|
|
122
|
-
Fieldset,
|
|
123
|
-
useFieldsetContext
|
|
124
|
-
} from "./chunk-Z2ZPTZ6F.mjs";
|
|
125
|
-
import "./chunk-NSLSA7F7.mjs";
|
|
150
|
+
import "./chunk-RC76SXBP.mjs";
|
|
126
151
|
import {
|
|
127
|
-
|
|
128
|
-
|
|
152
|
+
Message,
|
|
153
|
+
MessageDescription,
|
|
154
|
+
MessageTitle
|
|
155
|
+
} from "./chunk-BYFBK3J7.mjs";
|
|
129
156
|
import {
|
|
130
157
|
focusTrap,
|
|
131
158
|
useHydrated,
|
|
@@ -137,41 +164,22 @@ import {
|
|
|
137
164
|
Link
|
|
138
165
|
} from "./chunk-OHDHIRAW.mjs";
|
|
139
166
|
import "./chunk-6QV3OV66.mjs";
|
|
140
|
-
import "./chunk-RC76SXBP.mjs";
|
|
141
|
-
import {
|
|
142
|
-
Message,
|
|
143
|
-
MessageDescription,
|
|
144
|
-
MessageTitle
|
|
145
|
-
} from "./chunk-BYFBK3J7.mjs";
|
|
146
167
|
import {
|
|
147
168
|
LinkList
|
|
148
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-OS24UCTD.mjs";
|
|
149
170
|
import {
|
|
150
171
|
OrderedList,
|
|
151
172
|
UnorderedList
|
|
152
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-3QHKPEXO.mjs";
|
|
153
174
|
import "./chunk-CFAH2LID.mjs";
|
|
154
175
|
import {
|
|
155
176
|
HelpText
|
|
156
177
|
} from "./chunk-YZDURLEY.mjs";
|
|
157
|
-
import "./chunk-
|
|
158
|
-
import {
|
|
159
|
-
Container
|
|
160
|
-
} from "./chunk-4QZR2H72.mjs";
|
|
161
|
-
import "./chunk-G65EYZFQ.mjs";
|
|
162
|
-
import {
|
|
163
|
-
Grid,
|
|
164
|
-
GridItem
|
|
165
|
-
} from "./chunk-YQMTDQSQ.mjs";
|
|
166
|
-
import "./chunk-ZQHLYAJU.mjs";
|
|
167
|
-
import {
|
|
168
|
-
HStack,
|
|
169
|
-
Stack,
|
|
170
|
-
VStack
|
|
171
|
-
} from "./chunk-6SVLMQUW.mjs";
|
|
172
|
-
import "./chunk-NE6W2PCD.mjs";
|
|
173
|
-
import "./chunk-7ROE6ADK.mjs";
|
|
178
|
+
import "./chunk-ISAHCU7C.mjs";
|
|
174
179
|
import "./chunk-HT2EIJAD.mjs";
|
|
180
|
+
import {
|
|
181
|
+
Button
|
|
182
|
+
} from "./chunk-TYCGAA35.mjs";
|
|
175
183
|
import "./chunk-Y6NOEN7R.mjs";
|
|
176
184
|
import {
|
|
177
185
|
ButtonList
|
|
@@ -189,30 +197,22 @@ import {
|
|
|
189
197
|
CardMedia,
|
|
190
198
|
CardMediaImg
|
|
191
199
|
} from "./chunk-IC2K5VZJ.mjs";
|
|
192
|
-
import "./chunk-2YL2MVWN.mjs";
|
|
193
200
|
import {
|
|
194
201
|
DescriptionList
|
|
195
202
|
} from "./chunk-C7ZTOZP3.mjs";
|
|
196
|
-
import
|
|
197
|
-
Figure
|
|
198
|
-
} from "./chunk-OE6RISJS.mjs";
|
|
203
|
+
import "./chunk-OVKUPO5U.mjs";
|
|
199
204
|
import "./chunk-K6PP3ACJ.mjs";
|
|
205
|
+
import {
|
|
206
|
+
Badge
|
|
207
|
+
} from "./chunk-OXZOGFNV.mjs";
|
|
200
208
|
import "./chunk-KFDS3IPB.mjs";
|
|
201
209
|
import {
|
|
202
210
|
Blockquote
|
|
203
211
|
} from "./chunk-JYN2QSN2.mjs";
|
|
204
212
|
import "./chunk-BCFV6VOE.mjs";
|
|
205
|
-
import {
|
|
206
|
-
Box,
|
|
207
|
-
BoxCloseButton
|
|
208
|
-
} from "./chunk-3OGHJOJF.mjs";
|
|
209
|
-
import "./chunk-ISAHCU7C.mjs";
|
|
210
213
|
import {
|
|
211
214
|
Breadcrumbs
|
|
212
215
|
} from "./chunk-A42PXOVR.mjs";
|
|
213
|
-
import {
|
|
214
|
-
Button
|
|
215
|
-
} from "./chunk-TYCGAA35.mjs";
|
|
216
216
|
import "./chunk-ZKMFJZSH.mjs";
|
|
217
217
|
import {
|
|
218
218
|
Accordion
|
|
@@ -228,14 +228,23 @@ import {
|
|
|
228
228
|
} from "./chunk-EZVEYJOX.mjs";
|
|
229
229
|
import "./chunk-YQFL5UN4.mjs";
|
|
230
230
|
import {
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
Alert,
|
|
232
|
+
AlertDescription,
|
|
233
|
+
AlertTitle
|
|
234
|
+
} from "./chunk-4P4GPVKZ.mjs";
|
|
235
|
+
import {
|
|
236
|
+
Box,
|
|
237
|
+
BoxCloseButton
|
|
238
|
+
} from "./chunk-3OGHJOJF.mjs";
|
|
233
239
|
import "./chunk-YOSPWY5K.mjs";
|
|
234
240
|
export {
|
|
235
241
|
Accordion,
|
|
236
242
|
AccordionContent,
|
|
237
243
|
AccordionHeader,
|
|
238
244
|
AccordionItem,
|
|
245
|
+
Alert,
|
|
246
|
+
AlertDescription,
|
|
247
|
+
AlertTitle,
|
|
239
248
|
AutoAnimateHeight,
|
|
240
249
|
Badge,
|
|
241
250
|
Blockquote,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Grid,
|
|
3
3
|
GridItem
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-NE6W2PCD.mjs";
|
|
4
|
+
} from "../../chunk-TC5PD4TA.mjs";
|
|
6
5
|
import "../../chunk-7ROE6ADK.mjs";
|
|
6
|
+
import "../../chunk-NE6W2PCD.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-NE6W2PCD.mjs";
|
|
5
|
+
} from "../../chunk-TC5PD4TA.mjs";
|
|
7
6
|
import "../../chunk-7ROE6ADK.mjs";
|
|
7
|
+
import "../../chunk-NE6W2PCD.mjs";
|
|
8
8
|
import "../../chunk-YOSPWY5K.mjs";
|
|
9
9
|
export {
|
|
10
10
|
Grid,
|
package/dist/layout/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "../chunk-BVG5VSZK.mjs";
|
|
2
|
-
import {
|
|
3
|
-
Container
|
|
4
|
-
} from "../chunk-4QZR2H72.mjs";
|
|
5
2
|
import "../chunk-G65EYZFQ.mjs";
|
|
6
|
-
import {
|
|
7
|
-
Grid,
|
|
8
|
-
GridItem
|
|
9
|
-
} from "../chunk-YQMTDQSQ.mjs";
|
|
10
3
|
import "../chunk-ZQHLYAJU.mjs";
|
|
11
4
|
import {
|
|
12
5
|
HStack,
|
|
13
6
|
Stack,
|
|
14
7
|
VStack
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import
|
|
8
|
+
} from "../chunk-FUIKSOJF.mjs";
|
|
9
|
+
import {
|
|
10
|
+
Container
|
|
11
|
+
} from "../chunk-4QZR2H72.mjs";
|
|
12
|
+
import {
|
|
13
|
+
Grid,
|
|
14
|
+
GridItem
|
|
15
|
+
} from "../chunk-TC5PD4TA.mjs";
|
|
17
16
|
import "../chunk-7ROE6ADK.mjs";
|
|
17
|
+
import "../chunk-NE6W2PCD.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-NE6W2PCD.mjs";
|
|
6
|
+
} from "../../chunk-FUIKSOJF.mjs";
|
|
8
7
|
import "../../chunk-7ROE6ADK.mjs";
|
|
8
|
+
import "../../chunk-NE6W2PCD.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-NE6W2PCD.mjs";
|
|
5
|
+
} from "../../chunk-FUIKSOJF.mjs";
|
|
7
6
|
import "../../chunk-7ROE6ADK.mjs";
|
|
7
|
+
import "../../chunk-NE6W2PCD.mjs";
|
|
8
8
|
import "../../chunk-YOSPWY5K.mjs";
|
|
9
9
|
export {
|
|
10
10
|
HStack,
|
package/dist/list/index.js
CHANGED
|
@@ -58,12 +58,16 @@ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
|
|
|
58
58
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
59
|
var UnorderedList = (0, import_react.forwardRef)(
|
|
60
60
|
(_a, ref) => {
|
|
61
|
-
var _b = _a, { size = "
|
|
61
|
+
var _b = _a, { size = "default", className } = _b, rest = __objRest(_b, ["size", "className"]);
|
|
62
62
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
63
63
|
"ul",
|
|
64
64
|
__spreadValues({
|
|
65
65
|
ref,
|
|
66
|
-
className: (0, import_typed_classname.clsx)(
|
|
66
|
+
className: (0, import_typed_classname.clsx)(
|
|
67
|
+
"hds-list",
|
|
68
|
+
size !== "default" && `hds-list--${size}`,
|
|
69
|
+
className
|
|
70
|
+
)
|
|
67
71
|
}, rest)
|
|
68
72
|
);
|
|
69
73
|
}
|
|
@@ -76,7 +80,11 @@ var OrderedList = (0, import_react.forwardRef)(
|
|
|
76
80
|
"ol",
|
|
77
81
|
__spreadValues({
|
|
78
82
|
ref,
|
|
79
|
-
className: (0, import_typed_classname.clsx)(
|
|
83
|
+
className: (0, import_typed_classname.clsx)(
|
|
84
|
+
"hds-list",
|
|
85
|
+
size !== "default" && `hds-list--${size}`,
|
|
86
|
+
className
|
|
87
|
+
)
|
|
80
88
|
}, rest)
|
|
81
89
|
);
|
|
82
90
|
}
|
package/dist/list/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/list/index.tsx","../../src/list/list.tsx","../../src/list/link-list.tsx"],"sourcesContent":["export { UnorderedList, OrderedList } from \"./list\";\nexport type * from \"./list\";\n\nexport { LinkList } from \"./link-list\";\nexport type * from \"./link-list\";\n","import { forwardRef, type HTMLAttributes } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n /**\n * Sets the size of the items (font)\n *\n * @default \"medium\"\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.\n *\n * @example\n * ```tsx\n * <UnorderedList>\n * <li>Item 1</li>\n * <li>Item 2</li>\n * <li>Item 3</li>\n * </UnorderedList>\n * ```\n */\nexport const UnorderedList = forwardRef<HTMLUListElement, ListProps>(\n ({ size = \"
|
|
1
|
+
{"version":3,"sources":["../../src/list/index.tsx","../../src/list/list.tsx","../../src/list/link-list.tsx"],"sourcesContent":["export { UnorderedList, OrderedList } from \"./list\";\nexport type * from \"./list\";\n\nexport { LinkList } from \"./link-list\";\nexport type * from \"./link-list\";\n","import { forwardRef, type HTMLAttributes } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n /**\n * Sets the size of the items (font)\n *\n * @default \"medium\"\n */\n size?: \"default\" | \"small\" | \"technical\" | \"medium\" | \"large\";\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.\n *\n * @example\n * ```tsx\n * <UnorderedList>\n * <li>Item 1</li>\n * <li>Item 2</li>\n * <li>Item 3</li>\n * </UnorderedList>\n * ```\n */\nexport const UnorderedList = forwardRef<HTMLUListElement, ListProps>(\n ({ size = \"default\", className, ...rest }, ref) => {\n return (\n <ul\n ref={ref}\n className={clsx(\n \"hds-list\",\n size !== \"default\" && `hds-list--${size}`,\n className as undefined,\n )}\n {...rest}\n />\n );\n },\n);\nUnorderedList.displayName = \"UnorderedList\";\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.\n *\n * @example\n * ```tsx\n * <OrderedList>\n * <li>Item 1</li>\n * <li>Item 2</li>\n * <li>Item 3</li>\n * </OrderedList>\n * ```\n */\nexport const OrderedList = forwardRef<HTMLOListElement, ListProps>(\n ({ size = \"medium\", className, ...rest }, ref) => {\n return (\n <ol\n ref={ref}\n className={clsx(\n \"hds-list\",\n size !== \"default\" && `hds-list--${size}`,\n className as undefined,\n )}\n {...rest}\n />\n );\n },\n);\nOrderedList.displayName = \"OrderedList\";\n","import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport type { ListProps } from \"./list\";\nimport { UnorderedList } from \"./list\";\n\nexport interface LinkListProps extends Omit<ListProps, \"listStyle\"> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n}\n\n/**\n * Show a list of links\n *\n * For other list types use `UnorderedList` and `OrderedList`, or use your own list component using the semantic `ul` and `ol` tags.\n */\nexport const LinkList = forwardRef<HTMLUListElement, LinkListProps>(\n ({ className, ...rest }, ref) => {\n return (\n <UnorderedList\n ref={ref}\n className={clsx(\"hds-list--link-list\", className as undefined)}\n {...rest}\n />\n );\n },\n);\nLinkList.displayName = \"LinkList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAgD;AAChD,6BAAqB;AA4Bf;AAHC,IAAM,oBAAgB;AAAA,EAC3B,CAAC,IAA0C,QAAQ;AAAlD,iBAAE,SAAO,WAAW,UA3BvB,IA2BG,IAAkC,iBAAlC,IAAkC,CAAhC,QAAkB;AACnB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW;AAAA,UACT;AAAA,UACA,SAAS,aAAa,aAAa,IAAI;AAAA,UACvC;AAAA,QACF;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,cAAc,cAAc;AAgBrB,IAAM,kBAAc;AAAA,EACzB,CAAC,IAAyC,QAAQ;AAAjD,iBAAE,SAAO,UAAU,UA1DtB,IA0DG,IAAiC,iBAAjC,IAAiC,CAA/B,QAAiB;AAClB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW;AAAA,UACT;AAAA,UACA,SAAS,aAAa,aAAa,IAAI;AAAA,UACvC;AAAA,QACF;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,YAAY,cAAc;;;ACxE1B,IAAAA,0BAAqB;AACrB,IAAAC,gBAA2B;AAgBrB,IAAAC,sBAAA;AAHC,IAAM,eAAW;AAAA,EACtB,CAAC,IAAwB,QAAQ;AAAhC,iBAAE,YAfL,IAeG,IAAgB,iBAAhB,IAAgB,CAAd;AACD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,8BAAK,uBAAuB,SAAsB;AAAA,SACzD;AAAA,IACN;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":["import_typed_classname","import_react","import_jsx_runtime"]}
|
package/dist/list/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-6QV3OV66.mjs";
|
|
2
2
|
import {
|
|
3
3
|
LinkList
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-OS24UCTD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
OrderedList,
|
|
7
7
|
UnorderedList
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-3QHKPEXO.mjs";
|
|
9
9
|
import "../chunk-YOSPWY5K.mjs";
|
|
10
10
|
export {
|
|
11
11
|
LinkList,
|
package/dist/list/link-list.js
CHANGED
|
@@ -58,12 +58,16 @@ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
|
|
|
58
58
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
59
59
|
var UnorderedList = (0, import_react.forwardRef)(
|
|
60
60
|
(_a, ref) => {
|
|
61
|
-
var _b = _a, { size = "
|
|
61
|
+
var _b = _a, { size = "default", className } = _b, rest = __objRest(_b, ["size", "className"]);
|
|
62
62
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
63
63
|
"ul",
|
|
64
64
|
__spreadValues({
|
|
65
65
|
ref,
|
|
66
|
-
className: (0, import_typed_classname.clsx)(
|
|
66
|
+
className: (0, import_typed_classname.clsx)(
|
|
67
|
+
"hds-list",
|
|
68
|
+
size !== "default" && `hds-list--${size}`,
|
|
69
|
+
className
|
|
70
|
+
)
|
|
67
71
|
}, rest)
|
|
68
72
|
);
|
|
69
73
|
}
|
|
@@ -76,7 +80,11 @@ var OrderedList = (0, import_react.forwardRef)(
|
|
|
76
80
|
"ol",
|
|
77
81
|
__spreadValues({
|
|
78
82
|
ref,
|
|
79
|
-
className: (0, import_typed_classname.clsx)(
|
|
83
|
+
className: (0, import_typed_classname.clsx)(
|
|
84
|
+
"hds-list",
|
|
85
|
+
size !== "default" && `hds-list--${size}`,
|
|
86
|
+
className
|
|
87
|
+
)
|
|
80
88
|
}, rest)
|
|
81
89
|
);
|
|
82
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/list/link-list.tsx","../../src/list/list.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport type { ListProps } from \"./list\";\nimport { UnorderedList } from \"./list\";\n\nexport interface LinkListProps extends Omit<ListProps, \"listStyle\"> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n}\n\n/**\n * Show a list of links\n *\n * For other list types use `UnorderedList` and `OrderedList`, or use your own list component using the semantic `ul` and `ol` tags.\n */\nexport const LinkList = forwardRef<HTMLUListElement, LinkListProps>(\n ({ className, ...rest }, ref) => {\n return (\n <UnorderedList\n ref={ref}\n className={clsx(\"hds-list--link-list\", className as undefined)}\n {...rest}\n />\n );\n },\n);\nLinkList.displayName = \"LinkList\";\n","import { forwardRef, type HTMLAttributes } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n /**\n * Sets the size of the items (font)\n *\n * @default \"medium\"\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.\n *\n * @example\n * ```tsx\n * <UnorderedList>\n * <li>Item 1</li>\n * <li>Item 2</li>\n * <li>Item 3</li>\n * </UnorderedList>\n * ```\n */\nexport const UnorderedList = forwardRef<HTMLUListElement, ListProps>(\n ({ size = \"
|
|
1
|
+
{"version":3,"sources":["../../src/list/link-list.tsx","../../src/list/list.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport type { ListProps } from \"./list\";\nimport { UnorderedList } from \"./list\";\n\nexport interface LinkListProps extends Omit<ListProps, \"listStyle\"> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n}\n\n/**\n * Show a list of links\n *\n * For other list types use `UnorderedList` and `OrderedList`, or use your own list component using the semantic `ul` and `ol` tags.\n */\nexport const LinkList = forwardRef<HTMLUListElement, LinkListProps>(\n ({ className, ...rest }, ref) => {\n return (\n <UnorderedList\n ref={ref}\n className={clsx(\"hds-list--link-list\", className as undefined)}\n {...rest}\n />\n );\n },\n);\nLinkList.displayName = \"LinkList\";\n","import { forwardRef, type HTMLAttributes } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n /**\n * Sets the size of the items (font)\n *\n * @default \"medium\"\n */\n size?: \"default\" | \"small\" | \"technical\" | \"medium\" | \"large\";\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.\n *\n * @example\n * ```tsx\n * <UnorderedList>\n * <li>Item 1</li>\n * <li>Item 2</li>\n * <li>Item 3</li>\n * </UnorderedList>\n * ```\n */\nexport const UnorderedList = forwardRef<HTMLUListElement, ListProps>(\n ({ size = \"default\", className, ...rest }, ref) => {\n return (\n <ul\n ref={ref}\n className={clsx(\n \"hds-list\",\n size !== \"default\" && `hds-list--${size}`,\n className as undefined,\n )}\n {...rest}\n />\n );\n },\n);\nUnorderedList.displayName = \"UnorderedList\";\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.\n *\n * @example\n * ```tsx\n * <OrderedList>\n * <li>Item 1</li>\n * <li>Item 2</li>\n * <li>Item 3</li>\n * </OrderedList>\n * ```\n */\nexport const OrderedList = forwardRef<HTMLOListElement, ListProps>(\n ({ size = \"medium\", className, ...rest }, ref) => {\n return (\n <ol\n ref={ref}\n className={clsx(\n \"hds-list\",\n size !== \"default\" && `hds-list--${size}`,\n className as undefined,\n )}\n {...rest}\n />\n );\n },\n);\nOrderedList.displayName = \"OrderedList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,0BAAqB;AACrB,IAAAC,gBAA2B;;;ACD3B,mBAAgD;AAChD,6BAAqB;AA4Bf;AAHC,IAAM,oBAAgB;AAAA,EAC3B,CAAC,IAA0C,QAAQ;AAAlD,iBAAE,SAAO,WAAW,UA3BvB,IA2BG,IAAkC,iBAAlC,IAAkC,CAAhC,QAAkB;AACnB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW;AAAA,UACT;AAAA,UACA,SAAS,aAAa,aAAa,IAAI;AAAA,UACvC;AAAA,QACF;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,cAAc,cAAc;AAgBrB,IAAM,kBAAc;AAAA,EACzB,CAAC,IAAyC,QAAQ;AAAjD,iBAAE,SAAO,UAAU,UA1DtB,IA0DG,IAAiC,iBAAjC,IAAiC,CAA/B,QAAiB;AAClB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW;AAAA,UACT;AAAA,UACA,SAAS,aAAa,aAAa,IAAI;AAAA,UACvC;AAAA,QACF;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,YAAY,cAAc;;;ADvDpB,IAAAC,sBAAA;AAHC,IAAM,eAAW;AAAA,EACtB,CAAC,IAAwB,QAAQ;AAAhC,iBAAE,YAfL,IAeG,IAAgB,iBAAhB,IAAgB,CAAd;AACD,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW,8BAAK,uBAAuB,SAAsB;AAAA,SACzD;AAAA,IACN;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":["import_typed_classname","import_react","import_jsx_runtime"]}
|
package/dist/list/link-list.mjs
CHANGED
package/dist/list/list.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListEl
|
|
|
5
5
|
*
|
|
6
6
|
* @default "medium"
|
|
7
7
|
*/
|
|
8
|
-
size?: "small" | "medium" | "large";
|
|
8
|
+
size?: "default" | "small" | "technical" | "medium" | "large";
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* An unordered list of simple items, often text. You can nest other lists inside this component.
|
package/dist/list/list.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGxD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IACpF;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/list/list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAGxD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IACpF;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;CAC/D;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,wGAczB,CAAC;AAGF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,wGAcvB,CAAC"}
|
package/dist/list/list.js
CHANGED
|
@@ -55,12 +55,16 @@ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
|
|
|
55
55
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
56
56
|
var UnorderedList = (0, import_react.forwardRef)(
|
|
57
57
|
(_a, ref) => {
|
|
58
|
-
var _b = _a, { size = "
|
|
58
|
+
var _b = _a, { size = "default", className } = _b, rest = __objRest(_b, ["size", "className"]);
|
|
59
59
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
60
60
|
"ul",
|
|
61
61
|
__spreadValues({
|
|
62
62
|
ref,
|
|
63
|
-
className: (0, import_typed_classname.clsx)(
|
|
63
|
+
className: (0, import_typed_classname.clsx)(
|
|
64
|
+
"hds-list",
|
|
65
|
+
size !== "default" && `hds-list--${size}`,
|
|
66
|
+
className
|
|
67
|
+
)
|
|
64
68
|
}, rest)
|
|
65
69
|
);
|
|
66
70
|
}
|
|
@@ -73,7 +77,11 @@ var OrderedList = (0, import_react.forwardRef)(
|
|
|
73
77
|
"ol",
|
|
74
78
|
__spreadValues({
|
|
75
79
|
ref,
|
|
76
|
-
className: (0, import_typed_classname.clsx)(
|
|
80
|
+
className: (0, import_typed_classname.clsx)(
|
|
81
|
+
"hds-list",
|
|
82
|
+
size !== "default" && `hds-list--${size}`,
|
|
83
|
+
className
|
|
84
|
+
)
|
|
77
85
|
}, rest)
|
|
78
86
|
);
|
|
79
87
|
}
|
package/dist/list/list.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/list/list.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n /**\n * Sets the size of the items (font)\n *\n * @default \"medium\"\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.\n *\n * @example\n * ```tsx\n * <UnorderedList>\n * <li>Item 1</li>\n * <li>Item 2</li>\n * <li>Item 3</li>\n * </UnorderedList>\n * ```\n */\nexport const UnorderedList = forwardRef<HTMLUListElement, ListProps>(\n ({ size = \"
|
|
1
|
+
{"version":3,"sources":["../../src/list/list.tsx"],"sourcesContent":["import { forwardRef, type HTMLAttributes } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n /**\n * Sets the size of the items (font)\n *\n * @default \"medium\"\n */\n size?: \"default\" | \"small\" | \"technical\" | \"medium\" | \"large\";\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.\n *\n * @example\n * ```tsx\n * <UnorderedList>\n * <li>Item 1</li>\n * <li>Item 2</li>\n * <li>Item 3</li>\n * </UnorderedList>\n * ```\n */\nexport const UnorderedList = forwardRef<HTMLUListElement, ListProps>(\n ({ size = \"default\", className, ...rest }, ref) => {\n return (\n <ul\n ref={ref}\n className={clsx(\n \"hds-list\",\n size !== \"default\" && `hds-list--${size}`,\n className as undefined,\n )}\n {...rest}\n />\n );\n },\n);\nUnorderedList.displayName = \"UnorderedList\";\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.\n *\n * @example\n * ```tsx\n * <OrderedList>\n * <li>Item 1</li>\n * <li>Item 2</li>\n * <li>Item 3</li>\n * </OrderedList>\n * ```\n */\nexport const OrderedList = forwardRef<HTMLOListElement, ListProps>(\n ({ size = \"medium\", className, ...rest }, ref) => {\n return (\n <ol\n ref={ref}\n className={clsx(\n \"hds-list\",\n size !== \"default\" && `hds-list--${size}`,\n className as undefined,\n )}\n {...rest}\n />\n );\n },\n);\nOrderedList.displayName = \"OrderedList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAgD;AAChD,6BAAqB;AA4Bf;AAHC,IAAM,oBAAgB;AAAA,EAC3B,CAAC,IAA0C,QAAQ;AAAlD,iBAAE,SAAO,WAAW,UA3BvB,IA2BG,IAAkC,iBAAlC,IAAkC,CAAhC,QAAkB;AACnB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW;AAAA,UACT;AAAA,UACA,SAAS,aAAa,aAAa,IAAI;AAAA,UACvC;AAAA,QACF;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,cAAc,cAAc;AAgBrB,IAAM,kBAAc;AAAA,EACzB,CAAC,IAAyC,QAAQ;AAAjD,iBAAE,SAAO,UAAU,UA1DtB,IA0DG,IAAiC,iBAAjC,IAAiC,CAA/B,QAAiB;AAClB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAW;AAAA,UACT;AAAA,UACA,SAAS,aAAa,aAAa,IAAI;AAAA,UACvC;AAAA,QACF;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,YAAY,cAAc;","names":[]}
|
package/dist/list/list.mjs
CHANGED
package/dist/text/text.d.ts
CHANGED
|
@@ -53,6 +53,6 @@ export type TextProps = {
|
|
|
53
53
|
* </Text>
|
|
54
54
|
* ```
|
|
55
55
|
*/
|
|
56
|
-
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<
|
|
56
|
+
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLParagraphElement | HTMLHeadingElement>>;
|
|
57
57
|
export {};
|
|
58
58
|
//# sourceMappingURL=text.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@types/react-dom": "^18.3.1",
|
|
18
18
|
"react": "^18.3.1",
|
|
19
19
|
"react-dom": "18.3.1",
|
|
20
|
-
"tsup": "^8.
|
|
20
|
+
"tsup": "^8.5.0",
|
|
21
21
|
"typescript": "^5.8.3",
|
|
22
22
|
"eslint-config-custom": "0.0.1",
|
|
23
23
|
"hedwig-tsconfig": "0.0.0"
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@radix-ui/react-popover": "1.1.
|
|
33
|
-
"@radix-ui/react-slot": "1.2.
|
|
34
|
-
"@postenbring/hedwig-css": "2.
|
|
32
|
+
"@radix-ui/react-popover": "1.1.14",
|
|
33
|
+
"@radix-ui/react-slot": "1.2.3",
|
|
34
|
+
"@postenbring/hedwig-css": "2.2.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import { Alert } from ".";
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof Alert> = {
|
|
6
|
+
title: "Alert",
|
|
7
|
+
component: Alert,
|
|
8
|
+
|
|
9
|
+
argTypes: {
|
|
10
|
+
variant: {
|
|
11
|
+
options: ["info", "success", "warning", "error", "neutral"],
|
|
12
|
+
control: {
|
|
13
|
+
type: "radio",
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default meta;
|
|
20
|
+
|
|
21
|
+
type Story = StoryObj<typeof Alert>;
|
|
22
|
+
export const Preview: Story = {
|
|
23
|
+
tags: ["!dev"],
|
|
24
|
+
args: {
|
|
25
|
+
variant: "success",
|
|
26
|
+
children: (
|
|
27
|
+
<>
|
|
28
|
+
<Alert.Title>Alert header</Alert.Title>
|
|
29
|
+
<Alert.Description>
|
|
30
|
+
Alert header Alert description. A more detailed explanation of whats happening, but not
|
|
31
|
+
too long.
|
|
32
|
+
</Alert.Description>
|
|
33
|
+
</>
|
|
34
|
+
),
|
|
35
|
+
},
|
|
36
|
+
};
|