@postenbring/hedwig-react 0.0.58 → 0.0.59

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.
Files changed (58) hide show
  1. package/dist/_tsup-dts-rollup.d.mts +78 -81
  2. package/dist/_tsup-dts-rollup.d.ts +78 -81
  3. package/dist/chunk-2YL2MVWN.mjs +1 -0
  4. package/dist/{chunk-T3ADJNOV.mjs → chunk-37WVYY6X.mjs} +1 -1
  5. package/dist/chunk-37WVYY6X.mjs.map +1 -0
  6. package/dist/{chunk-CA226LBE.mjs → chunk-5MDJP43L.mjs} +5 -5
  7. package/dist/chunk-6QV3OV66.mjs +1 -0
  8. package/dist/chunk-DY7LD3X3.mjs +1 -0
  9. package/dist/{chunk-QGMW5QJ3.mjs → chunk-SBJBQUKE.mjs} +6 -6
  10. package/dist/{chunk-UTVSGTRJ.mjs → chunk-XMB45ILT.mjs} +2 -2
  11. package/dist/chunk-XMB45ILT.mjs.map +1 -0
  12. package/dist/{list → description-list}/description-list.js +1 -1
  13. package/dist/description-list/description-list.js.map +1 -0
  14. package/dist/{list → description-list}/description-list.mjs +1 -1
  15. package/dist/description-list/description-list.mjs.map +1 -0
  16. package/dist/description-list/index.d.mts +2 -0
  17. package/dist/description-list/index.d.ts +2 -0
  18. package/dist/description-list/index.js +82 -0
  19. package/dist/description-list/index.js.map +1 -0
  20. package/dist/description-list/index.mjs +9 -0
  21. package/dist/description-list/index.mjs.map +1 -0
  22. package/dist/form/fieldset/fieldset.js.map +1 -1
  23. package/dist/form/fieldset/fieldset.mjs +1 -1
  24. package/dist/form/fieldset/index.js.map +1 -1
  25. package/dist/form/fieldset/index.mjs +1 -1
  26. package/dist/form/index.js.map +1 -1
  27. package/dist/form/index.mjs +7 -7
  28. package/dist/index-no-css.d.mts +2 -2
  29. package/dist/index-no-css.d.ts +2 -2
  30. package/dist/index-no-css.js +87 -87
  31. package/dist/index-no-css.js.map +1 -1
  32. package/dist/index-no-css.mjs +17 -16
  33. package/dist/index.d.mts +2 -2
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.js +87 -87
  36. package/dist/index.js.map +1 -1
  37. package/dist/index.mjs +17 -16
  38. package/dist/index.mjs.map +1 -1
  39. package/dist/list/index.d.mts +0 -2
  40. package/dist/list/index.d.ts +0 -2
  41. package/dist/list/index.js +7 -35
  42. package/dist/list/index.js.map +1 -1
  43. package/dist/list/index.mjs +1 -5
  44. package/dist/navbar/index.mjs +2 -2
  45. package/dist/tabs/index.mjs +2 -2
  46. package/package.json +2 -2
  47. package/dist/chunk-E2LKLNGA.mjs +0 -1
  48. package/dist/chunk-KOAR6LZG.mjs +0 -1
  49. package/dist/chunk-T3ADJNOV.mjs.map +0 -1
  50. package/dist/chunk-UTVSGTRJ.mjs.map +0 -1
  51. package/dist/list/description-list.js.map +0 -1
  52. /package/dist/{chunk-E2LKLNGA.mjs.map → chunk-2YL2MVWN.mjs.map} +0 -0
  53. /package/dist/{chunk-CA226LBE.mjs.map → chunk-5MDJP43L.mjs.map} +0 -0
  54. /package/dist/{chunk-KOAR6LZG.mjs.map → chunk-6QV3OV66.mjs.map} +0 -0
  55. /package/dist/{list/description-list.mjs.map → chunk-DY7LD3X3.mjs.map} +0 -0
  56. /package/dist/{chunk-QGMW5QJ3.mjs.map → chunk-SBJBQUKE.mjs.map} +0 -0
  57. /package/dist/{list → description-list}/description-list.d.mts +0 -0
  58. /package/dist/{list → description-list}/description-list.d.ts +0 -0
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-E2LKLNGA.mjs";
1
+ import "./chunk-DY7LD3X3.mjs";
2
2
  import {
3
3
  TextBody,
4
4
  TextBodySmall,
@@ -23,10 +23,10 @@ import {
23
23
  } from "./chunk-IAS3E2S3.mjs";
24
24
  import {
25
25
  TabsComponent
26
- } from "./chunk-CA226LBE.mjs";
26
+ } from "./chunk-5MDJP43L.mjs";
27
+ import "./chunk-XVZ44NGD.mjs";
27
28
  import "./chunk-MBBFU4IR.mjs";
28
29
  import "./chunk-EJADADIY.mjs";
29
- import "./chunk-XVZ44NGD.mjs";
30
30
  import {
31
31
  MessageComponent
32
32
  } from "./chunk-AR2NOI4U.mjs";
@@ -37,11 +37,19 @@ import {
37
37
  import "./chunk-POJTVNEO.mjs";
38
38
  import {
39
39
  NavbarComponent
40
- } from "./chunk-QGMW5QJ3.mjs";
40
+ } from "./chunk-SBJBQUKE.mjs";
41
+ import "./chunk-JMDXW2ML.mjs";
41
42
  import "./chunk-WDD7QJP6.mjs";
42
43
  import "./chunk-MGUYIOP2.mjs";
43
- import "./chunk-JMDXW2ML.mjs";
44
+ import "./chunk-2YL2MVWN.mjs";
45
+ import {
46
+ DescriptionList
47
+ } from "./chunk-XMB45ILT.mjs";
44
48
  import "./chunk-T24JZIQO.mjs";
49
+ import "./chunk-MQ3EEUTP.mjs";
50
+ import {
51
+ Radiobutton
52
+ } from "./chunk-SEKRICE4.mjs";
45
53
  import "./chunk-BYEJZSG5.mjs";
46
54
  import {
47
55
  Select
@@ -53,7 +61,7 @@ import {
53
61
  import "./chunk-LMF3QGSF.mjs";
54
62
  import {
55
63
  Fieldset
56
- } from "./chunk-T3ADJNOV.mjs";
64
+ } from "./chunk-37WVYY6X.mjs";
57
65
  import "./chunk-7LPYJC6S.mjs";
58
66
  import {
59
67
  Input
@@ -61,17 +69,13 @@ import {
61
69
  import "./chunk-Y5SUMFYJ.mjs";
62
70
  import "./chunk-SKI2APSK.mjs";
63
71
  import "./chunk-NSLSA7F7.mjs";
64
- import "./chunk-MQ3EEUTP.mjs";
65
72
  import {
66
- Radiobutton
67
- } from "./chunk-SEKRICE4.mjs";
73
+ ErrorMessage
74
+ } from "./chunk-IL7576PP.mjs";
68
75
  import "./chunk-YJOOSTJC.mjs";
69
76
  import {
70
77
  Checkbox
71
78
  } from "./chunk-PXHYOQPB.mjs";
72
- import {
73
- ErrorMessage
74
- } from "./chunk-IL7576PP.mjs";
75
79
  import "./chunk-OIQUYB26.mjs";
76
80
  import {
77
81
  Container
@@ -80,10 +84,7 @@ import "./chunk-XLLYMQLW.mjs";
80
84
  import {
81
85
  Link
82
86
  } from "./chunk-MDA3MMNA.mjs";
83
- import "./chunk-KOAR6LZG.mjs";
84
- import {
85
- DescriptionList
86
- } from "./chunk-UTVSGTRJ.mjs";
87
+ import "./chunk-6QV3OV66.mjs";
87
88
  import {
88
89
  LinkList
89
90
  } from "./chunk-ZUKLWHUR.mjs";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.tsx"],"sourcesContent":["/**\n * Import the hedwig css file, so the consumers don't have to. Plug and play.\n *\n * NOTE: Importing the full path, not just the package name.\n * For some reason vite did not include the css during development when this file only imported the package name.\n *\n * Consumers using the `@postenbring/hedwig-css` package directly should only need to import the package without a path.\n */\nimport \"@postenbring/hedwig-css/dist/index.css\";\n\nexport * from \"./index-no-css\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,OAAO;","names":[]}
1
+ {"version":3,"sources":["../src/index.tsx"],"sourcesContent":["/**\n * Import the hedwig css file, so the consumers don't have to. Plug and play.\n *\n * NOTE: Importing the full path, not just the package name.\n * For some reason vite did not include the css during development when this file only imported the package name.\n *\n * Consumers using the `@postenbring/hedwig-css` package directly should only need to import the package without a path.\n */\nimport \"@postenbring/hedwig-css/dist/index.css\";\n\nexport * from \"./index-no-css\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,OAAO;","names":[]}
@@ -1,7 +1,5 @@
1
- export { DescriptionList_alias_3 as DescriptionList } from '../_tsup-dts-rollup';
2
1
  export { UnorderedList_alias_2 as UnorderedList } from '../_tsup-dts-rollup';
3
2
  export { OrderedList_alias_2 as OrderedList } from '../_tsup-dts-rollup';
4
3
  export { LinkList_alias_2 as LinkList } from '../_tsup-dts-rollup';
5
- export { DescriptionListProps_alias_3 as DescriptionListProps } from '../_tsup-dts-rollup';
6
4
  export { ListProps_alias_2 as ListProps } from '../_tsup-dts-rollup';
7
5
  export { LinkListProps_alias_2 as LinkListProps } from '../_tsup-dts-rollup';
@@ -1,7 +1,5 @@
1
- export { DescriptionList_alias_3 as DescriptionList } from '../_tsup-dts-rollup';
2
1
  export { UnorderedList_alias_2 as UnorderedList } from '../_tsup-dts-rollup';
3
2
  export { OrderedList_alias_2 as OrderedList } from '../_tsup-dts-rollup';
4
3
  export { LinkList_alias_2 as LinkList } from '../_tsup-dts-rollup';
5
- export { DescriptionListProps_alias_3 as DescriptionListProps } from '../_tsup-dts-rollup';
6
4
  export { ListProps_alias_2 as ListProps } from '../_tsup-dts-rollup';
7
5
  export { LinkListProps_alias_2 as LinkListProps } from '../_tsup-dts-rollup';
@@ -49,42 +49,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
49
49
  // src/list/index.tsx
50
50
  var list_exports = {};
51
51
  __export(list_exports, {
52
- DescriptionList: () => DescriptionList,
53
52
  LinkList: () => LinkList,
54
53
  OrderedList: () => OrderedList,
55
54
  UnorderedList: () => UnorderedList
56
55
  });
57
56
  module.exports = __toCommonJS(list_exports);
58
57
 
59
- // src/list/description-list.tsx
58
+ // src/list/list.tsx
60
59
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
61
60
  var import_jsx_runtime = require("react/jsx-runtime");
62
- function DescriptionList(_a) {
63
- var _b = _a, {
64
- variant = "vertical",
65
- className
66
- } = _b, rest = __objRest(_b, [
67
- "variant",
68
- "className"
69
- ]);
70
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
- "dl",
72
- __spreadValues({
73
- className: (0, import_typed_classname.clsx)(
74
- "hds-description-list",
75
- {
76
- "hds-description-list--horizontal": variant === "horizontal"
77
- },
78
- className
79
- )
80
- }, rest)
81
- );
82
- }
83
- DescriptionList.displayName = "DescriptionList";
84
-
85
- // src/list/list.tsx
86
- var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname");
87
- var import_jsx_runtime2 = require("react/jsx-runtime");
88
61
  function BaseList(_a) {
89
62
  var _b = _a, {
90
63
  as: ListTag = "ul",
@@ -97,29 +70,28 @@ function BaseList(_a) {
97
70
  "size",
98
71
  "className"
99
72
  ]);
100
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ListTag, __spreadProps(__spreadValues({ className: (0, import_typed_classname2.clsx)("hds-list", `hds-list--${size}`, className) }, rest), { children }));
73
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ListTag, __spreadProps(__spreadValues({ className: (0, import_typed_classname.clsx)("hds-list", `hds-list--${size}`, className) }, rest), { children }));
101
74
  }
102
75
  function UnorderedList(props) {
103
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
104
77
  }
105
78
  function OrderedList(props) {
106
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
79
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
107
80
  }
108
81
  BaseList.displayName = "BaseList";
109
82
  OrderedList.displayName = "OrderedList";
110
83
  UnorderedList.displayName = "UnorderedList";
111
84
 
112
85
  // src/list/link-list.tsx
113
- var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname");
114
- var import_jsx_runtime3 = require("react/jsx-runtime");
86
+ var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname");
87
+ var import_jsx_runtime2 = require("react/jsx-runtime");
115
88
  function LinkList(_a) {
116
89
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
117
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(UnorderedList, __spreadValues({ className: (0, import_typed_classname3.clsx)("hds-list--link-list", className) }, rest));
90
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(UnorderedList, __spreadValues({ className: (0, import_typed_classname2.clsx)("hds-list--link-list", className) }, rest));
118
91
  }
119
92
  LinkList.displayName = "LinkList";
120
93
  // Annotate the CommonJS export names for ESM import in node:
121
94
  0 && (module.exports = {
122
- DescriptionList,
123
95
  LinkList,
124
96
  OrderedList,
125
97
  UnorderedList
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/list/index.tsx","../../src/list/description-list.tsx","../../src/list/list.tsx","../../src/list/link-list.tsx"],"sourcesContent":["export { DescriptionList } from \"./description-list\";\nexport type * from \"./description-list\";\n\nexport { UnorderedList, OrderedList } from \"./list\";\nexport type * from \"./list\";\n\nexport { LinkList } from \"./link-list\";\nexport type * from \"./link-list\";\n","import type { HTMLAttributes, ReactNode } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {\n /**\n * Either `DescriptionDetails` or `DescriptionTerm` elements\n */\n children?: ReactNode;\n /**\n * Direction of the description list\n */\n variant?: \"vertical\" | \"horizontal\";\n}\n\n/**\n * Uses the HTML5 `<dl>` element\n *\n * Pass in corresponding `<dt>` and `<dd>` elements as children\n *\n * ```tsx\n * <DescriptionList>\n * <dt>Vekt</dt>\n * <dd>12 kg</dd>\n * <dt>Antall kolli</dt>\n * <dd>2</dd>\n * </DescriptionList>\n * ```\n *\n * Optionally wrap them in `<div>` elements as allowed by the HTML5 spec\n *\n * ```tsx\n * <DescriptionList>\n * <div>\n * <dt>Vekt</dt>\n * <dd>12 kg</dd>\n * </div>\n * <div>\n * <dt>Antall kolli</dt>\n * <dd>2</dd>\n * </div>\n * </DescriptionList>\n * ```\n */\nexport function DescriptionList({\n variant = \"vertical\",\n className,\n ...rest\n}: DescriptionListProps) {\n return (\n <dl\n className={clsx(\n \"hds-description-list\",\n {\n \"hds-description-list--horizontal\": variant === \"horizontal\",\n },\n className as undefined,\n )}\n {...rest}\n />\n );\n}\nDescriptionList.displayName = \"DescriptionList\";\n","import type { HTMLAttributes } from \"react\";\nimport * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n /**\n * Sets the size of the items (font)\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\nfunction BaseList({\n as: ListTag = \"ul\",\n children,\n size = \"medium\",\n className,\n ...rest\n}: ListProps & { as?: \"ul\" | \"ol\" }) {\n return (\n <ListTag className={clsx(\"hds-list\", `hds-list--${size}`, className as undefined)} {...rest}>\n {children}\n </ListTag>\n );\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 build your own using the semantic `ul` and `ol` tags.\n */\nexport function UnorderedList(props: ListProps) {\n return (\n <BaseList as=\"ul\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function OrderedList(props: ListProps) {\n return (\n <BaseList as=\"ol\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\nBaseList.displayName = \"BaseList\";\nOrderedList.displayName = \"OrderedList\";\nUnorderedList.displayName = \"UnorderedList\";\n","import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\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 function LinkList({ className, ...rest }: LinkListProps) {\n return (\n <UnorderedList className={clsx(\"hds-list--link-list\", className as undefined)} {...rest} />\n );\n}\n\nLinkList.displayName = \"LinkList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,6BAAqB;AAgDjB;AANG,SAAS,gBAAgB,IAIP;AAJO,eAC9B;AAAA,cAAU;AAAA,IACV;AAAA,EA7CF,IA2CgC,IAG3B,iBAH2B,IAG3B;AAAA,IAFH;AAAA,IACA;AAAA;AAGA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA;AAAA,UACE,oCAAoC,YAAY;AAAA,QAClD;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,EACN;AAEJ;AACA,gBAAgB,cAAc;;;AC3D9B,IAAAA,0BAAqB;AAkBjB,IAAAC,sBAAA;AARJ,SAAS,SAAS,IAMmB;AANnB,eAChB;AAAA,QAAI,UAAU;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP;AAAA,EAhBF,IAYkB,IAKb,iBALa,IAKb;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACE,6CAAC,wCAAQ,eAAW,8BAAK,YAAY,aAAa,IAAI,IAAI,SAAsB,KAAO,OAAtF,EACE,WACH;AAEJ;AAOO,SAAS,cAAc,OAAkB;AAC9C,SACE,6CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAOO,SAAS,YAAY,OAAkB;AAC5C,SACE,6CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAEA,SAAS,cAAc;AACvB,YAAY,cAAc;AAC1B,cAAc,cAAc;;;ACrD5B,IAAAC,0BAAqB;AAejB,IAAAC,sBAAA;AAFG,SAAS,SAAS,IAAuC;AAAvC,eAAE,YAd3B,IAcyB,IAAgB,iBAAhB,IAAgB,CAAd;AACzB,SACE,6CAAC,gCAAc,eAAW,8BAAK,uBAAuB,SAAsB,KAAO,KAAM;AAE7F;AAEA,SAAS,cAAc;","names":["import_typed_classname","import_jsx_runtime","import_typed_classname","import_jsx_runtime"]}
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 type { HTMLAttributes } from \"react\";\nimport * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n /**\n * Sets the size of the items (font)\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\nfunction BaseList({\n as: ListTag = \"ul\",\n children,\n size = \"medium\",\n className,\n ...rest\n}: ListProps & { as?: \"ul\" | \"ol\" }) {\n return (\n <ListTag className={clsx(\"hds-list\", `hds-list--${size}`, className as undefined)} {...rest}>\n {children}\n </ListTag>\n );\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 build your own using the semantic `ul` and `ol` tags.\n */\nexport function UnorderedList(props: ListProps) {\n return (\n <BaseList as=\"ul\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function OrderedList(props: ListProps) {\n return (\n <BaseList as=\"ol\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\nBaseList.displayName = \"BaseList\";\nOrderedList.displayName = \"OrderedList\";\nUnorderedList.displayName = \"UnorderedList\";\n","import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\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 function LinkList({ className, ...rest }: LinkListProps) {\n return (\n <UnorderedList className={clsx(\"hds-list--link-list\", className as undefined)} {...rest} />\n );\n}\n\nLinkList.displayName = \"LinkList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,6BAAqB;AAkBjB;AARJ,SAAS,SAAS,IAMmB;AANnB,eAChB;AAAA,QAAI,UAAU;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP;AAAA,EAhBF,IAYkB,IAKb,iBALa,IAKb;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACE,4CAAC,wCAAQ,eAAW,6BAAK,YAAY,aAAa,IAAI,IAAI,SAAsB,KAAO,OAAtF,EACE,WACH;AAEJ;AAOO,SAAS,cAAc,OAAkB;AAC9C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAOO,SAAS,YAAY,OAAkB;AAC5C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAEA,SAAS,cAAc;AACvB,YAAY,cAAc;AAC1B,cAAc,cAAc;;;ACrD5B,IAAAA,0BAAqB;AAejB,IAAAC,sBAAA;AAFG,SAAS,SAAS,IAAuC;AAAvC,eAAE,YAd3B,IAcyB,IAAgB,iBAAhB,IAAgB,CAAd;AACzB,SACE,6CAAC,gCAAc,eAAW,8BAAK,uBAAuB,SAAsB,KAAO,KAAM;AAE7F;AAEA,SAAS,cAAc;","names":["import_typed_classname","import_jsx_runtime"]}
@@ -1,7 +1,4 @@
1
- import "../chunk-KOAR6LZG.mjs";
2
- import {
3
- DescriptionList
4
- } from "../chunk-UTVSGTRJ.mjs";
1
+ import "../chunk-6QV3OV66.mjs";
5
2
  import {
6
3
  LinkList
7
4
  } from "../chunk-ZUKLWHUR.mjs";
@@ -11,7 +8,6 @@ import {
11
8
  } from "../chunk-PTANXZW6.mjs";
12
9
  import "../chunk-R4SQKVDQ.mjs";
13
10
  export {
14
- DescriptionList,
15
11
  LinkList,
16
12
  OrderedList,
17
13
  UnorderedList
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  NavbarComponent
3
- } from "../chunk-QGMW5QJ3.mjs";
3
+ } from "../chunk-SBJBQUKE.mjs";
4
+ import "../chunk-JMDXW2ML.mjs";
4
5
  import "../chunk-WDD7QJP6.mjs";
5
6
  import "../chunk-MGUYIOP2.mjs";
6
- import "../chunk-JMDXW2ML.mjs";
7
7
  import "../chunk-R4SQKVDQ.mjs";
8
8
  export {
9
9
  NavbarComponent as Navbar
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  TabsComponent
3
- } from "../chunk-CA226LBE.mjs";
3
+ } from "../chunk-5MDJP43L.mjs";
4
+ import "../chunk-XVZ44NGD.mjs";
4
5
  import "../chunk-MBBFU4IR.mjs";
5
6
  import "../chunk-EJADADIY.mjs";
6
- import "../chunk-XVZ44NGD.mjs";
7
7
  import "../chunk-WCA2WPFS.mjs";
8
8
  import "../chunk-33JD5XDW.mjs";
9
9
  import "../chunk-R4SQKVDQ.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "react-dom": "^17.0.0 || ^18.0.0"
30
30
  },
31
31
  "dependencies": {
32
- "@postenbring/hedwig-css": "0.0.52"
32
+ "@postenbring/hedwig-css": "0.0.53"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-E2LKLNGA.mjs.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=chunk-KOAR6LZG.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/form/fieldset/fieldset.tsx"],"sourcesContent":["import { useId, forwardRef } from \"react\";\nimport type { FieldsetHTMLAttributes, HTMLAttributes, ReactNode, CSSProperties } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { ErrorMessage } from \"../error-message\";\n\nexport interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {\n className?: string;\n style?: CSSProperties;\n errorMessage?: ReactNode;\n legendProps?: HTMLAttributes<HTMLElement> & { size: \"default\" | \"large\" };\n legend: ReactNode;\n children: ReactNode;\n}\n\n/**\n * 🚨 WORK IN PROGRESS 🚨\n */\nexport const Fieldset = forwardRef<HTMLFieldSetElement, FieldsetProps>(function Fieldset(\n {\n className,\n style,\n errorMessage,\n legendProps: { size: legendSize = \"default\", className: legendClassName, ...legendProps } = {},\n legend,\n children,\n ...rest\n },\n ref,\n) {\n const errorMessageId = useId();\n\n return (\n <fieldset\n aria-describedby={errorMessage ? errorMessageId : undefined}\n aria-invalid={errorMessage ? true : undefined}\n className={clsx(\"hds-fieldset\", className as undefined)}\n ref={ref}\n style={style}\n {...rest}\n >\n <legend\n className={clsx(\n \"hds-fieldset__legend\",\n { [`hds-fieldset__legend--${legendSize}`]: legendSize },\n legendClassName as undefined,\n )}\n {...legendProps}\n >\n {legend}\n </legend>\n <div className={clsx(\"hds-fieldset__input-wrapper\")}>{children}</div>\n <ErrorMessage id={errorMessageId}>{errorMessage}</ErrorMessage>\n </fieldset>\n );\n});\n"],"mappings":";;;;;;;;;;AAAA,SAAS,OAAO,kBAAkB;AAElC,SAAS,YAAY;AA8BjB,SAQE,KARF;AAfG,IAAM,WAAW,WAA+C,SAASA,UAC9E,IASA,KACA;AAVA,eAIe;AAAA,IAHb;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa,KAA+E,CAAC;AAAA,EAtBjG,IAkBE,IAIe,SAAE,QAAM,aAAa,WAAW,WAAW,gBAtB5D,IAsBiB,IAA+D,wBAA/D,IAA+D,CAA7D,QAA8B,eAJ/C,SAKE;AAAA;AAAA,IACA;AAAA,EAxBJ,IAkBE,IAOK,iBAPL,IAOK;AAAA,IANH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAKF,QAAM,iBAAiB,MAAM;AAE7B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,oBAAkB,eAAe,iBAAiB;AAAA,MAClD,gBAAc,eAAe,OAAO;AAAA,MACpC,WAAW,KAAK,gBAAgB,SAAsB;AAAA,MACtD;AAAA,MACA;AAAA,OACI,OANL;AAAA,MAQC;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,WAAW;AAAA,cACT;AAAA,cACA,EAAE,CAAC,yBAAyB,UAAU,EAAE,GAAG,WAAW;AAAA,cACtD;AAAA,YACF;AAAA,aACI,cANL;AAAA,YAQE;AAAA;AAAA,QACH;AAAA,QACA,oBAAC,SAAI,WAAW,KAAK,6BAA6B,GAAI,UAAS;AAAA,QAC/D,oBAAC,gBAAa,IAAI,gBAAiB,wBAAa;AAAA;AAAA;AAAA,EAClD;AAEJ,CAAC;","names":["Fieldset"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/list/description-list.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {\n /**\n * Either `DescriptionDetails` or `DescriptionTerm` elements\n */\n children?: ReactNode;\n /**\n * Direction of the description list\n */\n variant?: \"vertical\" | \"horizontal\";\n}\n\n/**\n * Uses the HTML5 `<dl>` element\n *\n * Pass in corresponding `<dt>` and `<dd>` elements as children\n *\n * ```tsx\n * <DescriptionList>\n * <dt>Vekt</dt>\n * <dd>12 kg</dd>\n * <dt>Antall kolli</dt>\n * <dd>2</dd>\n * </DescriptionList>\n * ```\n *\n * Optionally wrap them in `<div>` elements as allowed by the HTML5 spec\n *\n * ```tsx\n * <DescriptionList>\n * <div>\n * <dt>Vekt</dt>\n * <dd>12 kg</dd>\n * </div>\n * <div>\n * <dt>Antall kolli</dt>\n * <dd>2</dd>\n * </div>\n * </DescriptionList>\n * ```\n */\nexport function DescriptionList({\n variant = \"vertical\",\n className,\n ...rest\n}: DescriptionListProps) {\n return (\n <dl\n className={clsx(\n \"hds-description-list\",\n {\n \"hds-description-list--horizontal\": variant === \"horizontal\",\n },\n className as undefined,\n )}\n {...rest}\n />\n );\n}\nDescriptionList.displayName = \"DescriptionList\";\n"],"mappings":";;;;;;AACA,SAAS,YAAY;AAgDjB;AANG,SAAS,gBAAgB,IAIP;AAJO,eAC9B;AAAA,cAAU;AAAA,IACV;AAAA,EA7CF,IA2CgC,IAG3B,iBAH2B,IAG3B;AAAA,IAFH;AAAA,IACA;AAAA;AAGA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,UACE,oCAAoC,YAAY;AAAA,QAClD;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,EACN;AAEJ;AACA,gBAAgB,cAAc;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/list/description-list.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {\n /**\n * Either `DescriptionDetails` or `DescriptionTerm` elements\n */\n children?: ReactNode;\n /**\n * Direction of the description list\n */\n variant?: \"vertical\" | \"horizontal\";\n}\n\n/**\n * Uses the HTML5 `<dl>` element\n *\n * Pass in corresponding `<dt>` and `<dd>` elements as children\n *\n * ```tsx\n * <DescriptionList>\n * <dt>Vekt</dt>\n * <dd>12 kg</dd>\n * <dt>Antall kolli</dt>\n * <dd>2</dd>\n * </DescriptionList>\n * ```\n *\n * Optionally wrap them in `<div>` elements as allowed by the HTML5 spec\n *\n * ```tsx\n * <DescriptionList>\n * <div>\n * <dt>Vekt</dt>\n * <dd>12 kg</dd>\n * </div>\n * <div>\n * <dt>Antall kolli</dt>\n * <dd>2</dd>\n * </div>\n * </DescriptionList>\n * ```\n */\nexport function DescriptionList({\n variant = \"vertical\",\n className,\n ...rest\n}: DescriptionListProps) {\n return (\n <dl\n className={clsx(\n \"hds-description-list\",\n {\n \"hds-description-list--horizontal\": variant === \"horizontal\",\n },\n className as undefined,\n )}\n {...rest}\n />\n );\n}\nDescriptionList.displayName = \"DescriptionList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,6BAAqB;AAgDjB;AANG,SAAS,gBAAgB,IAIP;AAJO,eAC9B;AAAA,cAAU;AAAA,IACV;AAAA,EA7CF,IA2CgC,IAG3B,iBAH2B,IAG3B;AAAA,IAFH;AAAA,IACA;AAAA;AAGA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA;AAAA,UACE,oCAAoC,YAAY;AAAA,QAClD;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,EACN;AAEJ;AACA,gBAAgB,cAAc;","names":[]}