@postenbring/hedwig-react 4.1.0 → 4.1.2
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-F7MLQ6JI.mjs → chunk-WNYCOHSD.mjs} +11 -2
- package/dist/{chunk-F7MLQ6JI.mjs.map → chunk-WNYCOHSD.mjs.map} +1 -1
- package/dist/form/error-summary/error-summary.d.ts.map +1 -1
- package/dist/form/error-summary/error-summary.js +10 -1
- package/dist/form/error-summary/error-summary.js.map +1 -1
- package/dist/form/error-summary/error-summary.mjs +1 -1
- package/dist/form/error-summary/index.js +10 -1
- package/dist/form/error-summary/index.js.map +1 -1
- package/dist/form/error-summary/index.mjs +1 -1
- package/dist/form/index.js +10 -1
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/package.json +2 -2
- package/src/accordion/accordion.stories.tsx +1 -1
- package/src/alert/alert.stories.tsx +1 -1
- package/src/badge/badge.stories.tsx +1 -1
- package/src/blockquote/blockquote.stories.tsx +1 -1
- package/src/box/box.stories.tsx +1 -1
- package/src/breadcrumbs/breadcrumbs.stories.tsx +1 -1
- package/src/button/button.stories.tsx +1 -1
- package/src/button-list/button-list.stories.tsx +1 -1
- package/src/card/card.stories.tsx +10 -9
- package/src/description-list/description-list.stories.tsx +1 -1
- package/src/figure/figure.stories.tsx +1 -1
- package/src/form/checkbox/checkbox.stories.tsx +1 -1
- package/src/form/date-picker/date-picker.stories.tsx +1 -1
- package/src/form/error-message/error-message.stories.tsx +1 -1
- package/src/form/error-summary/error-summary.stories.tsx +1 -1
- package/src/form/error-summary/error-summary.tsx +6 -1
- package/src/form/fieldset/fieldset.stories.tsx +1 -1
- package/src/form/input/input.stories.tsx +1 -1
- package/src/form/radio-button/radio-button.stories.tsx +1 -1
- package/src/form/radio-button/radio-group.stories.tsx +1 -1
- package/src/form/search-wrapper/search-wrapper.stories.tsx +1 -1
- package/src/form/select/select.stories.tsx +1 -1
- package/src/form/textarea/textarea.stories.tsx +1 -1
- package/src/help-text/help-text.stories.tsx +1 -1
- package/src/layout/container/container.stories.tsx +1 -1
- package/src/layout/grid/grid.stories.tsx +1 -1
- package/src/layout/stack/stack.stories.tsx +1 -1
- package/src/link/link.stories.tsx +1 -1
- package/src/list/link-list.stories.tsx +1 -1
- package/src/list/list.stories.tsx +1 -1
- package/src/message/message.stories.tsx +1 -1
- package/src/modal/modal.stories.tsx +1 -1
- package/src/navbar/navbar.stories.tsx +1 -1
- package/src/show-more/show-more.stories.tsx +1 -1
- package/src/skeleton/skeleton.stories.tsx +1 -1
- package/src/spinner/spinner.stories.tsx +1 -1
- package/src/step-indicator/step-indicator.stories.tsx +1 -1
- package/src/styled-html/styled-html.stories.tsx +1 -1
- package/src/table/table.stories.tsx +1 -1
- package/src/tabs/tabs.stories.tsx +1 -1
- package/src/text/text.stories.tsx +1 -1
- package/src/warning-banner/warning-banner.stories.tsx +1 -1
package/dist/index.mjs
CHANGED
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
} from "./chunk-LHIG6RW7.mjs";
|
|
152
152
|
import {
|
|
153
153
|
ErrorSummary
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-WNYCOHSD.mjs";
|
|
155
155
|
import "./chunk-CKAL5ZJZ.mjs";
|
|
156
156
|
import "./chunk-XLLYMQLW.mjs";
|
|
157
157
|
import {
|
|
@@ -169,11 +169,11 @@ import "./chunk-CFAH2LID.mjs";
|
|
|
169
169
|
import {
|
|
170
170
|
HelpText
|
|
171
171
|
} from "./chunk-INDTHGWZ.mjs";
|
|
172
|
-
import "./chunk-ISAHCU7C.mjs";
|
|
173
172
|
import "./chunk-HT2EIJAD.mjs";
|
|
173
|
+
import "./chunk-ISAHCU7C.mjs";
|
|
174
174
|
import {
|
|
175
|
-
|
|
176
|
-
} from "./chunk-
|
|
175
|
+
Breadcrumbs
|
|
176
|
+
} from "./chunk-A42PXOVR.mjs";
|
|
177
177
|
import "./chunk-Y6NOEN7R.mjs";
|
|
178
178
|
import {
|
|
179
179
|
ButtonList
|
|
@@ -205,8 +205,8 @@ import {
|
|
|
205
205
|
} from "./chunk-NZB6BBFT.mjs";
|
|
206
206
|
import "./chunk-BCFV6VOE.mjs";
|
|
207
207
|
import {
|
|
208
|
-
|
|
209
|
-
} from "./chunk-
|
|
208
|
+
Button
|
|
209
|
+
} from "./chunk-45Q2TCH6.mjs";
|
|
210
210
|
import "./chunk-ZKMFJZSH.mjs";
|
|
211
211
|
import {
|
|
212
212
|
Accordion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@radix-ui/react-popover": "1.1.14",
|
|
33
33
|
"@radix-ui/react-slot": "1.2.3",
|
|
34
|
-
"@postenbring/hedwig-css": "4.1.
|
|
34
|
+
"@postenbring/hedwig-css": "4.1.2"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { Accordion } from ".";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Accordion> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { Blockquote } from ".";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Blockquote> = {
|
package/src/box/box.stories.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { Text } from "../text";
|
|
4
4
|
import { Link } from "../link";
|
|
5
5
|
import { Box } from ".";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
|
+
import { Link } from "../link";
|
|
3
4
|
import { Card } from ".";
|
|
4
5
|
|
|
5
6
|
const meta: Meta<typeof Card> = {
|
|
@@ -25,17 +26,17 @@ export const Preview: Story = {
|
|
|
25
26
|
<Card.Body>
|
|
26
27
|
<Card.BodyHeader as="h2">
|
|
27
28
|
<Card.BodyHeaderOverline>Theme</Card.BodyHeaderOverline>
|
|
28
|
-
<Card.BodyHeaderTitle
|
|
29
|
-
<a href="#article">Cool article</a>
|
|
30
|
-
</Card.BodyHeaderTitle>
|
|
29
|
+
<Card.BodyHeaderTitle>Cool article</Card.BodyHeaderTitle>
|
|
31
30
|
</Card.BodyHeader>
|
|
32
31
|
<Card.BodyDescription>
|
|
33
|
-
This is a card
|
|
34
|
-
<code>Link</code> component, or a link component from your routing library. The link
|
|
35
|
-
component of your choice should be set with the <code>as</code> property on the body
|
|
36
|
-
header title. The card component provides a lot of flexibility.
|
|
32
|
+
This is a card The card component provides a lot of flexibility.
|
|
37
33
|
</Card.BodyDescription>
|
|
38
|
-
<Card.
|
|
34
|
+
<Card.BodyAction asChild>
|
|
35
|
+
<Link href="#article-1" variant="solid">
|
|
36
|
+
<Card.BodyActionArrow />
|
|
37
|
+
Go to this article
|
|
38
|
+
</Link>
|
|
39
|
+
</Card.BodyAction>
|
|
39
40
|
</Card.Body>
|
|
40
41
|
</Card>
|
|
41
42
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { DescriptionList } from ".";
|
|
4
4
|
|
|
5
5
|
type Story = StoryObj<typeof DescriptionList>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { Checkbox } from "./index";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof Checkbox> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { DatePicker } from ".";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof DatePicker> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { ErrorMessage } from ".";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof ErrorMessage> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { ErrorSummary } from ".";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof ErrorSummary> = {
|
|
@@ -129,7 +129,12 @@ export type ErrorSummaryProps = Omit<
|
|
|
129
129
|
|
|
130
130
|
export const ErrorSummary = forwardRef<HTMLDivElement, ErrorSummaryProps>(
|
|
131
131
|
({ children, className, ...rest }, ref) => (
|
|
132
|
-
<Box
|
|
132
|
+
<Box
|
|
133
|
+
data-color="error"
|
|
134
|
+
ref={ref}
|
|
135
|
+
{...rest}
|
|
136
|
+
className={clsx(`hds-error-summary`, className as undefined)}
|
|
137
|
+
>
|
|
133
138
|
{children}
|
|
134
139
|
</Box>
|
|
135
140
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { Checkbox } from "../checkbox";
|
|
4
4
|
import { Fieldset } from ".";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { RadioButton } from "./index";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof RadioButton> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { RadioGroup } from "./radio-group";
|
|
4
4
|
import { RadioButton } from "./index";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { Input } from "../input";
|
|
4
4
|
import { Button } from "../../button";
|
|
5
5
|
import { SearchWrapper } from ".";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { HelpText } from ".";
|
|
4
4
|
|
|
5
5
|
type Story = StoryObj<typeof HelpText>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { useState, useEffect, useRef, useId } from "react";
|
|
4
4
|
import { Container, Grid } from "..";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { Link } from "../link";
|
|
4
4
|
import { LinkList } from "./link-list";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
import type { StoryObj, Meta } from "@storybook/react-vite";
|
|
3
3
|
import { HStack } from "../layout";
|
|
4
4
|
import { UnorderedList } from ".";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { Button } from "../button";
|
|
5
5
|
import { HStack } from "../layout";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
4
4
|
import { ShowMoreButton } from ".";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof ShowMoreButton> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { StepIndicator } from ".";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof StepIndicator> = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
3
|
import { StyledHtml } from ".";
|
|
4
4
|
|
|
5
5
|
const meta: Meta<typeof StyledHtml> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies -- storybook story */
|
|
2
2
|
|
|
3
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
4
4
|
import { WarningBanner } from ".";
|
|
5
5
|
|
|
6
6
|
const meta: Meta<typeof WarningBanner> = {
|