@postenbring/hedwig-react 0.0.88 → 0.0.89
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-K2CB2NLY.mjs +1 -0
- package/dist/chunk-K2CB2NLY.mjs.map +1 -0
- package/dist/chunk-OE6RISJS.mjs +24 -0
- package/dist/chunk-OE6RISJS.mjs.map +1 -0
- package/dist/figure/figure.d.ts +22 -0
- package/dist/figure/figure.d.ts.map +1 -0
- package/dist/figure/figure.js +71 -0
- package/dist/figure/figure.js.map +1 -0
- package/dist/figure/figure.mjs +8 -0
- package/dist/figure/figure.mjs.map +1 -0
- package/dist/figure/index.d.ts +3 -0
- package/dist/figure/index.d.ts.map +1 -0
- package/dist/figure/index.js +73 -0
- package/dist/figure/index.js.map +1 -0
- package/dist/figure/index.mjs +9 -0
- package/dist/figure/index.mjs.map +1 -0
- package/dist/form/index.mjs +9 -9
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +428 -412
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +57 -52
- package/dist/layout/index.mjs +6 -6
- package/package.json +4 -4
- package/src/accordion/accordion.stories.tsx +1 -0
- package/src/badge/badge.stories.tsx +1 -0
- package/src/blockquote/blockquote.stories.tsx +1 -0
- package/src/box/box.stories.tsx +1 -0
- package/src/breadcrumbs/breadcrumbs.stories.tsx +1 -0
- package/src/button/button.stories.tsx +1 -0
- package/src/card/card.stories.tsx +1 -0
- package/src/description-list/description-list.stories.tsx +1 -0
- package/src/figure/figure.stories.tsx +22 -0
- package/src/figure/figure.tsx +36 -0
- package/src/figure/index.tsx +3 -0
- package/src/form/checkbox/checkbox.stories.tsx +1 -0
- package/src/form/date-picker/date-picker.stories.tsx +1 -0
- package/src/form/error-message/error-message.stories.tsx +1 -0
- package/src/form/fieldset/fieldset.stories.tsx +1 -0
- package/src/form/input/input.stories.tsx +1 -0
- package/src/form/radio-button/radio-button.stories.tsx +2 -1
- package/src/form/radio-button/radio-group.stories.tsx +2 -1
- package/src/form/select/select.stories.tsx +1 -0
- package/src/form/textarea/textarea.stories.tsx +1 -0
- package/src/help-text/help-text.stories.tsx +1 -0
- package/src/index.ts +1 -0
- package/src/layout/container/container.stories.tsx +1 -0
- package/src/layout/grid/grid.stories.tsx +1 -0
- package/src/layout/stack/stack.stories.tsx +1 -0
- package/src/link/link.stories.tsx +1 -0
- package/src/list/link-list.stories.tsx +1 -0
- package/src/list/list.stories.tsx +1 -0
- package/src/message/message.stories.tsx +1 -0
- package/src/modal/modal.stories.tsx +2 -1
- package/src/navbar/navbar.stories.tsx +2 -1
- package/src/show-more/show-more.stories.tsx +1 -0
- package/src/skeleton/skeleton.stories.tsx +1 -0
- package/src/step-indicator/step-indicator.stories.tsx +1 -0
- package/src/styled-html/styled-html.stories.tsx +1 -0
- package/src/table/table.stories.tsx +1 -0
- package/src/tabs/tabs.stories.tsx +1 -0
- package/src/text/text.stories.tsx +1 -0
- package/src/warning-banner/warning-banner.stories.tsx +1 -0
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import "./chunk-CSXSUQ2M.mjs";
|
|
2
|
-
import {
|
|
3
|
-
Text
|
|
4
|
-
} from "./chunk-DMOMTRIY.mjs";
|
|
5
1
|
import "./chunk-3D2MWIEX.mjs";
|
|
6
2
|
import {
|
|
7
3
|
WarningBanner
|
|
@@ -18,19 +14,10 @@ import {
|
|
|
18
14
|
TabsList,
|
|
19
15
|
TabsTab
|
|
20
16
|
} from "./chunk-J5SCUELT.mjs";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import {
|
|
23
|
-
Message,
|
|
24
|
-
MessageDescription,
|
|
25
|
-
MessageTitle
|
|
26
|
-
} from "./chunk-BHQ46L2O.mjs";
|
|
27
|
-
import "./chunk-FYFJ75NX.mjs";
|
|
17
|
+
import "./chunk-CSXSUQ2M.mjs";
|
|
28
18
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
ModalFooter,
|
|
32
|
-
ModalHeader
|
|
33
|
-
} from "./chunk-6VKQ6IRG.mjs";
|
|
19
|
+
Text
|
|
20
|
+
} from "./chunk-DMOMTRIY.mjs";
|
|
34
21
|
import "./chunk-H3E546OT.mjs";
|
|
35
22
|
import {
|
|
36
23
|
Navbar,
|
|
@@ -49,6 +36,24 @@ import {
|
|
|
49
36
|
useNavbarExpendableMenuContext
|
|
50
37
|
} from "./chunk-M7MG7ZQT.mjs";
|
|
51
38
|
import "./chunk-3H7S7C3S.mjs";
|
|
39
|
+
import "./chunk-6QV3OV66.mjs";
|
|
40
|
+
import "./chunk-RC76SXBP.mjs";
|
|
41
|
+
import {
|
|
42
|
+
Message,
|
|
43
|
+
MessageDescription,
|
|
44
|
+
MessageTitle
|
|
45
|
+
} from "./chunk-BHQ46L2O.mjs";
|
|
46
|
+
import "./chunk-FYFJ75NX.mjs";
|
|
47
|
+
import {
|
|
48
|
+
Modal,
|
|
49
|
+
ModalContent,
|
|
50
|
+
ModalFooter,
|
|
51
|
+
ModalHeader
|
|
52
|
+
} from "./chunk-6VKQ6IRG.mjs";
|
|
53
|
+
import "./chunk-K2CB2NLY.mjs";
|
|
54
|
+
import {
|
|
55
|
+
Figure
|
|
56
|
+
} from "./chunk-OE6RISJS.mjs";
|
|
52
57
|
import "./chunk-HQVL3ZJ2.mjs";
|
|
53
58
|
import {
|
|
54
59
|
Footer,
|
|
@@ -57,7 +62,18 @@ import {
|
|
|
57
62
|
FooterLinkSections,
|
|
58
63
|
FooterLogo
|
|
59
64
|
} from "./chunk-ROQH67YP.mjs";
|
|
65
|
+
import {
|
|
66
|
+
LinkList
|
|
67
|
+
} from "./chunk-Z2ZCM4BE.mjs";
|
|
68
|
+
import {
|
|
69
|
+
OrderedList,
|
|
70
|
+
UnorderedList
|
|
71
|
+
} from "./chunk-LGEGXOPU.mjs";
|
|
60
72
|
import "./chunk-XFKD6EEJ.mjs";
|
|
73
|
+
import "./chunk-BYEJZSG5.mjs";
|
|
74
|
+
import {
|
|
75
|
+
Select
|
|
76
|
+
} from "./chunk-6BXKRPR3.mjs";
|
|
61
77
|
import "./chunk-AGZHQDCQ.mjs";
|
|
62
78
|
import {
|
|
63
79
|
Textarea
|
|
@@ -74,30 +90,32 @@ import {
|
|
|
74
90
|
RadioGroup,
|
|
75
91
|
useRadioGroupContext
|
|
76
92
|
} from "./chunk-YS7HBWOI.mjs";
|
|
77
|
-
import "./chunk-BYEJZSG5.mjs";
|
|
78
|
-
import {
|
|
79
|
-
Select
|
|
80
|
-
} from "./chunk-6BXKRPR3.mjs";
|
|
81
93
|
import "./chunk-YJOOSTJC.mjs";
|
|
82
94
|
import {
|
|
83
95
|
Checkbox
|
|
84
96
|
} from "./chunk-EAFQ3XQU.mjs";
|
|
97
|
+
import "./chunk-LMF3QGSF.mjs";
|
|
98
|
+
import {
|
|
99
|
+
Fieldset,
|
|
100
|
+
useFieldsetContext
|
|
101
|
+
} from "./chunk-JQGB77SS.mjs";
|
|
85
102
|
import "./chunk-TDLSHJ4Z.mjs";
|
|
86
103
|
import {
|
|
87
104
|
DatePicker
|
|
88
105
|
} from "./chunk-WUPLEZEY.mjs";
|
|
89
106
|
import "./chunk-Y5SUMFYJ.mjs";
|
|
90
107
|
import "./chunk-5UGT7L7R.mjs";
|
|
91
|
-
import "./chunk-LMF3QGSF.mjs";
|
|
92
|
-
import {
|
|
93
|
-
Fieldset,
|
|
94
|
-
useFieldsetContext
|
|
95
|
-
} from "./chunk-JQGB77SS.mjs";
|
|
96
108
|
import "./chunk-NSLSA7F7.mjs";
|
|
97
109
|
import {
|
|
98
110
|
ErrorMessage
|
|
99
111
|
} from "./chunk-CC5QWW52.mjs";
|
|
100
112
|
import "./chunk-BVG5VSZK.mjs";
|
|
113
|
+
import "./chunk-ZQHLYAJU.mjs";
|
|
114
|
+
import {
|
|
115
|
+
HStack,
|
|
116
|
+
Stack,
|
|
117
|
+
VStack
|
|
118
|
+
} from "./chunk-FUIKSOJF.mjs";
|
|
101
119
|
import {
|
|
102
120
|
Container
|
|
103
121
|
} from "./chunk-4QZR2H72.mjs";
|
|
@@ -106,24 +124,10 @@ import {
|
|
|
106
124
|
Grid,
|
|
107
125
|
GridItem
|
|
108
126
|
} from "./chunk-TC5PD4TA.mjs";
|
|
109
|
-
import "./chunk-ZQHLYAJU.mjs";
|
|
110
|
-
import {
|
|
111
|
-
HStack,
|
|
112
|
-
Stack,
|
|
113
|
-
VStack
|
|
114
|
-
} from "./chunk-FUIKSOJF.mjs";
|
|
115
127
|
import "./chunk-XLLYMQLW.mjs";
|
|
116
128
|
import {
|
|
117
129
|
Link
|
|
118
130
|
} from "./chunk-VYS2QNTL.mjs";
|
|
119
|
-
import "./chunk-6QV3OV66.mjs";
|
|
120
|
-
import {
|
|
121
|
-
LinkList
|
|
122
|
-
} from "./chunk-Z2ZCM4BE.mjs";
|
|
123
|
-
import {
|
|
124
|
-
OrderedList,
|
|
125
|
-
UnorderedList
|
|
126
|
-
} from "./chunk-LGEGXOPU.mjs";
|
|
127
131
|
import "./chunk-ISAHCU7C.mjs";
|
|
128
132
|
import {
|
|
129
133
|
Breadcrumbs
|
|
@@ -149,20 +153,18 @@ import "./chunk-2YL2MVWN.mjs";
|
|
|
149
153
|
import {
|
|
150
154
|
DescriptionList
|
|
151
155
|
} from "./chunk-C7ZTOZP3.mjs";
|
|
152
|
-
import "./chunk-KFDS3IPB.mjs";
|
|
153
156
|
import "./chunk-ZKMFJZSH.mjs";
|
|
154
157
|
import {
|
|
155
158
|
Accordion
|
|
156
159
|
} from "./chunk-CXX4SXJG.mjs";
|
|
160
|
+
import "./chunk-K6PP3ACJ.mjs";
|
|
157
161
|
import {
|
|
158
|
-
|
|
159
|
-
} from "./chunk-
|
|
160
|
-
import
|
|
161
|
-
AccordionHeader
|
|
162
|
-
} from "./chunk-MYVC3HMO.mjs";
|
|
162
|
+
Badge
|
|
163
|
+
} from "./chunk-OXZOGFNV.mjs";
|
|
164
|
+
import "./chunk-KFDS3IPB.mjs";
|
|
163
165
|
import {
|
|
164
|
-
|
|
165
|
-
} from "./chunk-
|
|
166
|
+
Blockquote
|
|
167
|
+
} from "./chunk-JYN2QSN2.mjs";
|
|
166
168
|
import "./chunk-JKCVB5TR.mjs";
|
|
167
169
|
import {
|
|
168
170
|
StyledHtml
|
|
@@ -182,13 +184,15 @@ import {
|
|
|
182
184
|
useMergeRefs,
|
|
183
185
|
useResize
|
|
184
186
|
} from "./chunk-ILFK3VKS.mjs";
|
|
185
|
-
import "./chunk-K6PP3ACJ.mjs";
|
|
186
187
|
import {
|
|
187
|
-
|
|
188
|
-
} from "./chunk-
|
|
188
|
+
AccordionContent
|
|
189
|
+
} from "./chunk-JZXZYEPG.mjs";
|
|
189
190
|
import {
|
|
190
|
-
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
AccordionHeader
|
|
192
|
+
} from "./chunk-MYVC3HMO.mjs";
|
|
193
|
+
import {
|
|
194
|
+
AccordionItem
|
|
195
|
+
} from "./chunk-EZVEYJOX.mjs";
|
|
192
196
|
import "./chunk-YQFL5UN4.mjs";
|
|
193
197
|
import "./chunk-CFAH2LID.mjs";
|
|
194
198
|
import {
|
|
@@ -242,6 +246,7 @@ export {
|
|
|
242
246
|
DescriptionList,
|
|
243
247
|
ErrorMessage,
|
|
244
248
|
Fieldset,
|
|
249
|
+
Figure,
|
|
245
250
|
Footer,
|
|
246
251
|
FooterButtonLink,
|
|
247
252
|
FooterLinkSection,
|
package/dist/layout/index.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../chunk-BVG5VSZK.mjs";
|
|
2
|
+
import "../chunk-ZQHLYAJU.mjs";
|
|
3
|
+
import {
|
|
4
|
+
HStack,
|
|
5
|
+
Stack,
|
|
6
|
+
VStack
|
|
7
|
+
} from "../chunk-FUIKSOJF.mjs";
|
|
2
8
|
import {
|
|
3
9
|
Container
|
|
4
10
|
} from "../chunk-4QZR2H72.mjs";
|
|
@@ -7,12 +13,6 @@ import {
|
|
|
7
13
|
Grid,
|
|
8
14
|
GridItem
|
|
9
15
|
} from "../chunk-TC5PD4TA.mjs";
|
|
10
|
-
import "../chunk-ZQHLYAJU.mjs";
|
|
11
|
-
import {
|
|
12
|
-
HStack,
|
|
13
|
-
Stack,
|
|
14
|
-
VStack
|
|
15
|
-
} from "../chunk-FUIKSOJF.mjs";
|
|
16
16
|
import "../chunk-7ROE6ADK.mjs";
|
|
17
17
|
import "../chunk-NE6W2PCD.mjs";
|
|
18
18
|
import "../chunk-YOSPWY5K.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.89",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"react-dom": "18.3.1",
|
|
20
20
|
"tsup": "^8.1.0",
|
|
21
21
|
"typescript": "^5.4.5",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
22
|
+
"hedwig-tsconfig": "0.0.0",
|
|
23
|
+
"eslint-config-custom": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@radix-ui/react-popover": "1.0.7",
|
|
33
33
|
"@radix-ui/react-slot": "1.0.2",
|
|
34
|
-
"@postenbring/hedwig-css": "0.0.
|
|
34
|
+
"@postenbring/hedwig-css": "0.0.74"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
package/src/box/box.stories.tsx
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import { Figure } from ".";
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof Figure> = {
|
|
6
|
+
title: "Figure",
|
|
7
|
+
component: Figure,
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default meta;
|
|
11
|
+
|
|
12
|
+
export const Preview: StoryObj<typeof Figure> = {
|
|
13
|
+
tags: ["!dev"],
|
|
14
|
+
args: {
|
|
15
|
+
children: (
|
|
16
|
+
<>
|
|
17
|
+
<img src="https://placedog.net/500/280" alt="A very good dog" />
|
|
18
|
+
<figcaption>Dogs are the best</figcaption>
|
|
19
|
+
</>
|
|
20
|
+
),
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
|
|
5
|
+
export interface FigureProps extends React.HTMLAttributes<HTMLQuoteElement> {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
10
|
+
*
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Figure>
|
|
21
|
+
* <img src="https://placedog.net/500/280" alt="A very good dog" />
|
|
22
|
+
* <figcaption>Dogs are the best</figcaption>
|
|
23
|
+
* </Figure>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export const Figure = forwardRef<HTMLQuoteElement, FigureProps>(
|
|
27
|
+
({ children, asChild, className, ...rest }, ref) => {
|
|
28
|
+
const Component = asChild ? Slot : "figure";
|
|
29
|
+
return (
|
|
30
|
+
<Component ref={ref} className={clsx("hds-figure", className as undefined)} {...rest}>
|
|
31
|
+
{children}
|
|
32
|
+
</Component>
|
|
33
|
+
);
|
|
34
|
+
},
|
|
35
|
+
);
|
|
36
|
+
Figure.displayName = "Figure";
|
|
@@ -3,7 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react";
|
|
|
3
3
|
import { RadioButton } from "./index";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof RadioButton> = {
|
|
6
|
-
title: "Form/
|
|
6
|
+
title: "Form/Radio button",
|
|
7
7
|
component: RadioButton,
|
|
8
8
|
};
|
|
9
9
|
|
|
@@ -12,6 +12,7 @@ export default meta;
|
|
|
12
12
|
type Story = StoryObj<typeof RadioButton>;
|
|
13
13
|
|
|
14
14
|
export const Preview: Story = {
|
|
15
|
+
tags: ["!dev"],
|
|
15
16
|
args: {
|
|
16
17
|
title: "",
|
|
17
18
|
children: "Just a RadioButton",
|
|
@@ -4,7 +4,7 @@ import { RadioGroup } from "./radio-group";
|
|
|
4
4
|
import { RadioButton } from "./index";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof RadioGroup> = {
|
|
7
|
-
title: "Form/
|
|
7
|
+
title: "Form/Radio group",
|
|
8
8
|
component: RadioGroup,
|
|
9
9
|
};
|
|
10
10
|
|
|
@@ -13,6 +13,7 @@ export default meta;
|
|
|
13
13
|
type Story = StoryObj<typeof RadioGroup>;
|
|
14
14
|
|
|
15
15
|
export const Preview: Story = {
|
|
16
|
+
tags: ["!dev"],
|
|
16
17
|
args: {
|
|
17
18
|
legend: "Radio group with radio buttons",
|
|
18
19
|
errorMessage: "",
|
package/src/index.ts
CHANGED
|
@@ -13,7 +13,8 @@ const meta: Meta<typeof Modal> = {
|
|
|
13
13
|
export default meta;
|
|
14
14
|
|
|
15
15
|
type Story = StoryObj<typeof Modal>;
|
|
16
|
-
export const Preview = {
|
|
16
|
+
export const Preview: Story = {
|
|
17
|
+
tags: ["!dev"],
|
|
17
18
|
render: function Render(args) {
|
|
18
19
|
const modalRef = useRef<HTMLDialogElement>(null);
|
|
19
20
|
const onClose = () => modalRef.current?.close();
|