@postenbring/hedwig-react 4.4.1 → 4.5.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.
@@ -0,0 +1,33 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-YOSPWY5K.mjs";
6
+
7
+ // src/tag/tag.tsx
8
+ import { clsx } from "@postenbring/hedwig-css/typed-classname";
9
+ import { Slot } from "@radix-ui/react-slot";
10
+ import { forwardRef } from "react";
11
+ import { jsx } from "react/jsx-runtime";
12
+ var Tag = forwardRef(
13
+ (_a, ref) => {
14
+ var _b = _a, { "data-color": color, children, asChild, size = "default", className } = _b, rest = __objRest(_b, ["data-color", "children", "asChild", "size", "className"]);
15
+ const Component = asChild ? Slot : "span";
16
+ return /* @__PURE__ */ jsx(
17
+ Component,
18
+ __spreadProps(__spreadValues({
19
+ "data-color": color,
20
+ ref,
21
+ className: clsx("hds-tag", { "hds-tag--small": size === "small" }, className)
22
+ }, rest), {
23
+ children
24
+ })
25
+ );
26
+ }
27
+ );
28
+ Tag.displayName = "Tag";
29
+
30
+ export {
31
+ Tag
32
+ };
33
+ //# sourceMappingURL=chunk-RF25YRXA.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tag/tag.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { forwardRef } from \"react\";\n\nexport interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {\n children: React.ReactNode;\n\n /**\n * Color of the tag. Combines the theme color and semantic variant.\n *\n * When omitted, the color is inherited from the parent(s).\n */\n \"data-color\"?: \"posten\" | \"bring\" | \"neutral\" | \"info\" | \"success\" | \"warning\" | \"error\";\n\n /**\n * Size of the tag\n *\n * @default \"default\"\n */\n size?: \"small\" | \"default\";\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\n/**\n * Tags are used to label, categorize or organize items using keywords to describe them.\n *\n * @example\n *\n * ```tsx\n * <Tag data-color=\"info\">Info</Tag>\n * ```\n *\n */\nexport const Tag = forwardRef<HTMLSpanElement, TagProps>(\n ({ \"data-color\": color, children, asChild, size = \"default\", className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"span\";\n return (\n <Component\n data-color={color}\n ref={ref}\n className={clsx(\"hds-tag\", { \"hds-tag--small\": size === \"small\" }, className as undefined)}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nTag.displayName = \"Tag\";\n"],"mappings":";;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAyCrB;AAJC,IAAM,MAAM;AAAA,EACjB,CAAC,IAAkF,QAAQ;AAA1F,iBAAE,gBAAc,OAAO,UAAU,SAAS,OAAO,WAAW,UAxC/D,IAwCG,IAA0E,iBAA1E,IAA0E,CAAxE,cAAqB,YAAU,WAAS,QAAkB;AAC3D,UAAM,YAAY,UAAU,OAAO;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,cAAY;AAAA,QACZ;AAAA,QACA,WAAW,KAAK,WAAW,EAAE,kBAAkB,SAAS,QAAQ,GAAG,SAAsB;AAAA,SACrF,OAJL;AAAA,QAME;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,IAAI,cAAc;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-XELFBRQ4.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,4 +1,8 @@
1
1
  import "../chunk-5J5LYE6Z.mjs";
2
+ import "../chunk-BYEJZSG5.mjs";
3
+ import {
4
+ Select
5
+ } from "../chunk-JGQTAIEP.mjs";
2
6
  import "../chunk-XSID7YR7.mjs";
3
7
  import {
4
8
  Suggestions
@@ -26,15 +30,21 @@ import "../chunk-CAIGPMDS.mjs";
26
30
  import {
27
31
  SearchWrapper
28
32
  } from "../chunk-RJ763KDH.mjs";
29
- import "../chunk-BYEJZSG5.mjs";
30
- import {
31
- Select
32
- } from "../chunk-JGQTAIEP.mjs";
33
33
  import "../chunk-KPPLVGZ3.mjs";
34
+ import {
35
+ ErrorSummary
36
+ } from "../chunk-NAXSP4VU.mjs";
37
+ import "../chunk-CKAL5ZJZ.mjs";
34
38
  import "../chunk-7LPYJC6S.mjs";
35
39
  import {
36
40
  Input
37
41
  } from "../chunk-62VLFCXX.mjs";
42
+ import "../chunk-TDLSHJ4Z.mjs";
43
+ import {
44
+ DatePicker
45
+ } from "../chunk-RGZSYJFL.mjs";
46
+ import "../chunk-Y5SUMFYJ.mjs";
47
+ import "../chunk-DMRQEQQK.mjs";
38
48
  import "../chunk-YJOOSTJC.mjs";
39
49
  import {
40
50
  Checkbox
@@ -50,12 +60,6 @@ import {
50
60
  import {
51
61
  FieldsetLegend
52
62
  } from "../chunk-CD4LCDK3.mjs";
53
- import "../chunk-TDLSHJ4Z.mjs";
54
- import {
55
- DatePicker
56
- } from "../chunk-RGZSYJFL.mjs";
57
- import "../chunk-Y5SUMFYJ.mjs";
58
- import "../chunk-DMRQEQQK.mjs";
59
63
  import "../chunk-NSLSA7F7.mjs";
60
64
  import {
61
65
  ErrorMessage
@@ -64,10 +68,6 @@ import "../chunk-5M6MEYM7.mjs";
64
68
  import {
65
69
  ValidationMessage
66
70
  } from "../chunk-F23MNQCK.mjs";
67
- import {
68
- ErrorSummary
69
- } from "../chunk-NAXSP4VU.mjs";
70
- import "../chunk-CKAL5ZJZ.mjs";
71
71
  import "../chunk-XLLYMQLW.mjs";
72
72
  import "../chunk-QE2ZES72.mjs";
73
73
  import "../chunk-6QV3OV66.mjs";
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ export * from "./step-indicator";
25
25
  export * from "./styled-html";
26
26
  export * from "./table";
27
27
  export * from "./tabs";
28
+ export * from "./tag";
28
29
  export * from "./text";
29
30
  export * from "./utils";
30
31
  export * from "./warning-banner";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -145,6 +145,7 @@ __export(index_exports, {
145
145
  TabsContents: () => TabsContents,
146
146
  TabsList: () => TabsList,
147
147
  TabsTab: () => TabsTab,
148
+ Tag: () => Tag,
148
149
  Text: () => Text,
149
150
  Textarea: () => Textarea,
150
151
  UnorderedList: () => UnorderedList,
@@ -832,9 +833,9 @@ var CardBody = (0, import_react15.forwardRef)(
832
833
  CardBody.displayName = "Card.Body";
833
834
  var CardBodyHeaderContext = (0, import_react15.createContext)("h2");
834
835
  var CardBodyHeader = (0, import_react15.forwardRef)((_a, ref) => {
835
- var _b = _a, { as: Tag, asChild, className, children } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children"]);
836
+ var _b = _a, { as: Tag2, asChild, className, children } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children"]);
836
837
  const Component = asChild ? import_react_slot6.Slot : "hgroup";
837
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CardBodyHeaderContext.Provider, { value: Tag != null ? Tag : "h2", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
838
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(CardBodyHeaderContext.Provider, { value: Tag2 != null ? Tag2 : "h2", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
838
839
  Component,
839
840
  __spreadProps(__spreadValues({}, rest), {
840
841
  className: (0, import_typed_classname12.clsx)("hds-card__body-header", className),
@@ -863,8 +864,8 @@ var CardBodyHeaderTitle = (0, import_react15.forwardRef)(
863
864
  (_a, ref) => {
864
865
  var _b = _a, { as: TitleTag, variant = "h2", asChild, className, children } = _b, rest = __objRest(_b, ["as", "variant", "asChild", "className", "children"]);
865
866
  const ParentTag = (0, import_react15.useContext)(CardBodyHeaderContext);
866
- const Tag = TitleTag != null ? TitleTag : ParentTag;
867
- const Component = asChild ? import_react_slot6.Slot : Tag;
867
+ const Tag2 = TitleTag != null ? TitleTag : ParentTag;
868
+ const Component = asChild ? import_react_slot6.Slot : Tag2;
868
869
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
869
870
  Component,
870
871
  __spreadProps(__spreadValues({}, rest), {
@@ -962,7 +963,7 @@ var convertDeprecatedColor = (color) => {
962
963
  var Card = (0, import_react15.forwardRef)(
963
964
  (_a, ref) => {
964
965
  var _b = _a, {
965
- as: Tag = "section",
966
+ as: Tag2 = "section",
966
967
  asChild,
967
968
  className,
968
969
  children,
@@ -982,7 +983,7 @@ var Card = (0, import_react15.forwardRef)(
982
983
  "color",
983
984
  "imagePosition"
984
985
  ]);
985
- const Component = asChild ? import_react_slot6.Slot : Tag;
986
+ const Component = asChild ? import_react_slot6.Slot : Tag2;
986
987
  const {
987
988
  theme: themeFromDeprecated,
988
989
  dataColor: dataColorFromDeprecated,
@@ -1610,10 +1611,10 @@ function labelForInput(input) {
1610
1611
  // src/form/error-summary/error-summary.tsx
1611
1612
  var import_jsx_runtime27 = require("react/jsx-runtime");
1612
1613
  var ErrorSummaryHeading = (0, import_react29.forwardRef)((_a, ref) => {
1613
- var _b = _a, { asChild, children, as: Tag, autoFocus = true } = _b, rest = __objRest(_b, ["asChild", "children", "as", "autoFocus"]);
1614
+ var _b = _a, { asChild, children, as: Tag2, autoFocus = true } = _b, rest = __objRest(_b, ["asChild", "children", "as", "autoFocus"]);
1614
1615
  const focusRef = (0, import_react29.useRef)(null);
1615
1616
  const mergedRef = useMergeRefs([focusRef, ref]);
1616
- const Component = asChild ? import_react_slot9.Slot : Tag;
1617
+ const Component = asChild ? import_react_slot9.Slot : Tag2;
1617
1618
  (0, import_react29.useEffect)(() => {
1618
1619
  setTimeout(() => {
1619
1620
  if (focusRef.current && autoFocus) {
@@ -1863,8 +1864,8 @@ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname"
1863
1864
  var import_jsx_runtime33 = require("react/jsx-runtime");
1864
1865
  var SuggestionsWrapper = (0, import_react35.forwardRef)(
1865
1866
  (_a, ref) => {
1866
- var _b = _a, { as: Tag = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1867
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Tag, __spreadValues({ className: (0, import_typed_classname29.clsx)("hds-suggestions-wrapper", className), ref }, rest));
1867
+ var _b = _a, { as: Tag2 = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1868
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Tag2, __spreadValues({ className: (0, import_typed_classname29.clsx)("hds-suggestions-wrapper", className), ref }, rest));
1868
1869
  }
1869
1870
  );
1870
1871
  SuggestionsWrapper.displayName = "Suggestions.Wrapper";
@@ -2110,8 +2111,8 @@ var import_react41 = require("react");
2110
2111
  var import_jsx_runtime39 = require("react/jsx-runtime");
2111
2112
  var Container = (0, import_react41.forwardRef)(
2112
2113
  (_a, ref) => {
2113
- var _b = _a, { as: Tag = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
2114
- const Component = asChild ? import_react_slot12.Slot : Tag;
2114
+ var _b = _a, { as: Tag2 = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
2115
+ const Component = asChild ? import_react_slot12.Slot : Tag2;
2115
2116
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
2116
2117
  Component,
2117
2118
  __spreadProps(__spreadValues({}, rest), {
@@ -2687,7 +2688,7 @@ var import_jsx_runtime48 = require("react/jsx-runtime");
2687
2688
  var Skeleton = (0, import_react49.forwardRef)(
2688
2689
  (_a, ref) => {
2689
2690
  var _b = _a, {
2690
- as: Tag = "div",
2691
+ as: Tag2 = "div",
2691
2692
  asChild,
2692
2693
  children,
2693
2694
  animation = true,
@@ -2707,7 +2708,7 @@ var Skeleton = (0, import_react49.forwardRef)(
2707
2708
  "className",
2708
2709
  "style"
2709
2710
  ]);
2710
- const Component = asChild ? import_react_slot18.Slot : Tag;
2711
+ const Component = asChild ? import_react_slot18.Slot : Tag2;
2711
2712
  return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
2712
2713
  Component,
2713
2714
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
@@ -3033,11 +3034,34 @@ Tabs.Tab = TabsTab;
3033
3034
  Tabs.Contents = TabsContents;
3034
3035
  Tabs.Content = TabsContent;
3035
3036
 
3036
- // src/text/text.tsx
3037
- var import_react58 = require("react");
3037
+ // src/tag/tag.tsx
3038
3038
  var import_typed_classname51 = require("@postenbring/hedwig-css/typed-classname");
3039
3039
  var import_react_slot22 = require("@radix-ui/react-slot");
3040
+ var import_react58 = require("react");
3040
3041
  var import_jsx_runtime56 = require("react/jsx-runtime");
3042
+ var Tag = (0, import_react58.forwardRef)(
3043
+ (_a, ref) => {
3044
+ var _b = _a, { "data-color": color, children, asChild, size = "default", className } = _b, rest = __objRest(_b, ["data-color", "children", "asChild", "size", "className"]);
3045
+ const Component = asChild ? import_react_slot22.Slot : "span";
3046
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3047
+ Component,
3048
+ __spreadProps(__spreadValues({
3049
+ "data-color": color,
3050
+ ref,
3051
+ className: (0, import_typed_classname51.clsx)("hds-tag", { "hds-tag--small": size === "small" }, className)
3052
+ }, rest), {
3053
+ children
3054
+ })
3055
+ );
3056
+ }
3057
+ );
3058
+ Tag.displayName = "Tag";
3059
+
3060
+ // src/text/text.tsx
3061
+ var import_react59 = require("react");
3062
+ var import_typed_classname52 = require("@postenbring/hedwig-css/typed-classname");
3063
+ var import_react_slot23 = require("@radix-ui/react-slot");
3064
+ var import_jsx_runtime57 = require("react/jsx-runtime");
3041
3065
  var defaultHTMLTag = {
3042
3066
  "h1-display": "h1",
3043
3067
  h1: "h1",
@@ -3053,10 +3077,10 @@ var defaultHTMLTag = {
3053
3077
  caption: "p",
3054
3078
  "caption-title": "p"
3055
3079
  };
3056
- var Text = (0, import_react58.forwardRef)(
3080
+ var Text = (0, import_react59.forwardRef)(
3057
3081
  (_a, ref) => {
3058
3082
  var _b = _a, {
3059
- as: Tag,
3083
+ as: Tag2,
3060
3084
  asChild,
3061
3085
  variant = "body",
3062
3086
  size = "fluid",
@@ -3072,12 +3096,12 @@ var Text = (0, import_react58.forwardRef)(
3072
3096
  "children",
3073
3097
  "className"
3074
3098
  ]);
3075
- const Component = asChild ? import_react_slot22.Slot : Tag != null ? Tag : defaultHTMLTag[variant];
3099
+ const Component = asChild ? import_react_slot23.Slot : Tag2 != null ? Tag2 : defaultHTMLTag[variant];
3076
3100
  const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
3077
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
3101
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3078
3102
  Component,
3079
3103
  __spreadProps(__spreadValues({
3080
- className: (0, import_typed_classname51.clsx)(
3104
+ className: (0, import_typed_classname52.clsx)(
3081
3105
  `hds-text-${variant}`,
3082
3106
  sizeModifier && `hds-text--${sizeModifier}`,
3083
3107
  spacing && "hds-text--spacing",
@@ -3093,16 +3117,16 @@ var Text = (0, import_react58.forwardRef)(
3093
3117
  Text.displayName = "Text";
3094
3118
 
3095
3119
  // src/warning-banner/warning-banner.tsx
3096
- var import_react59 = require("react");
3097
- var import_typed_classname52 = require("@postenbring/hedwig-css/typed-classname");
3098
- var import_jsx_runtime57 = require("react/jsx-runtime");
3099
- var WarningBanner = (0, import_react59.forwardRef)(
3120
+ var import_react60 = require("react");
3121
+ var import_typed_classname53 = require("@postenbring/hedwig-css/typed-classname");
3122
+ var import_jsx_runtime58 = require("react/jsx-runtime");
3123
+ var WarningBanner = (0, import_react60.forwardRef)(
3100
3124
  (_a, ref) => {
3101
3125
  var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
3102
- const descriptionId = (0, import_react59.useId)();
3126
+ const descriptionId = (0, import_react60.useId)();
3103
3127
  const expandable = !!description;
3104
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname52.clsx)("hds-warning-banner", className), ref, children: [
3105
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3128
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname53.clsx)("hds-warning-banner", className), ref, children: [
3129
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3106
3130
  WarningBannerTitle,
3107
3131
  {
3108
3132
  variant: expandable ? "expandable" : "default",
@@ -3110,22 +3134,22 @@ var WarningBanner = (0, import_react59.forwardRef)(
3110
3134
  children: title
3111
3135
  }
3112
3136
  ),
3113
- expandable ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
3137
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(WarningBannerDescription, { id: descriptionId, children: description }) : null
3114
3138
  ] }));
3115
3139
  }
3116
3140
  );
3117
3141
  WarningBanner.displayName = "WarningBanner";
3118
- var WarningBannerTitle = (0, import_react59.forwardRef)((_a, ref) => {
3142
+ var WarningBannerTitle = (0, import_react60.forwardRef)((_a, ref) => {
3119
3143
  var _b = _a, { variant, descriptionId, children, className } = _b, rest = __objRest(_b, ["variant", "descriptionId", "children", "className"]);
3120
- const [open, setOpen] = (0, import_react59.useState)(false);
3144
+ const [open, setOpen] = (0, import_react60.useState)(false);
3121
3145
  if (variant === "expandable") {
3122
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3146
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3123
3147
  "button",
3124
3148
  __spreadProps(__spreadValues({}, rest), {
3125
3149
  "aria-expanded": open,
3126
3150
  "aria-controls": descriptionId,
3127
3151
  "data-state": open ? "open" : "closed",
3128
- className: (0, import_typed_classname52.clsx)(
3152
+ className: (0, import_typed_classname53.clsx)(
3129
3153
  "hds-warning-banner__title",
3130
3154
  "hds-warning-banner__title-trigger",
3131
3155
  className
@@ -3135,28 +3159,28 @@ var WarningBannerTitle = (0, import_react59.forwardRef)((_a, ref) => {
3135
3159
  },
3136
3160
  ref,
3137
3161
  type: "button",
3138
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { children })
3162
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { children })
3139
3163
  })
3140
3164
  );
3141
3165
  }
3142
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3166
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3143
3167
  "p",
3144
3168
  __spreadProps(__spreadValues({}, rest), {
3145
- className: (0, import_typed_classname52.clsx)("hds-warning-banner__title", className),
3169
+ className: (0, import_typed_classname53.clsx)("hds-warning-banner__title", className),
3146
3170
  ref,
3147
3171
  children
3148
3172
  })
3149
3173
  );
3150
3174
  });
3151
3175
  WarningBannerTitle.displayName = "WarningBannerTitle";
3152
- var WarningBannerDescription = (0, import_react59.forwardRef)(
3176
+ var WarningBannerDescription = (0, import_react60.forwardRef)(
3153
3177
  (_a, ref) => {
3154
3178
  var _b = _a, { className, id } = _b, rest = __objRest(_b, ["className", "id"]);
3155
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
3179
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
3156
3180
  "p",
3157
3181
  __spreadValues({
3158
3182
  id,
3159
- className: (0, import_typed_classname52.clsx)("hds-warning-banner__description", className),
3183
+ className: (0, import_typed_classname53.clsx)("hds-warning-banner__description", className),
3160
3184
  ref
3161
3185
  }, rest)
3162
3186
  );
@@ -3251,6 +3275,7 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
3251
3275
  TabsContents,
3252
3276
  TabsList,
3253
3277
  TabsTab,
3278
+ Tag,
3254
3279
  Text,
3255
3280
  Textarea,
3256
3281
  UnorderedList,