@postenbring/hedwig-react 2.1.3 → 2.1.4
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-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-CFAPQFEC.mjs → chunk-4YCM72TQ.mjs} +2 -2
- package/dist/{chunk-Z2ZCM4BE.mjs → chunk-OS24UCTD.mjs} +2 -2
- 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 +3 -3
- 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 +3 -3
- package/dist/form/index.js +11 -3
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +3 -3
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- 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/package.json +2 -2
- 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-CFAPQFEC.mjs.map → chunk-4YCM72TQ.mjs.map} +0 -0
- /package/dist/{chunk-Z2ZCM4BE.mjs.map → chunk-OS24UCTD.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
FooterLinkSection,
|
|
77
77
|
FooterLinkSections,
|
|
78
78
|
FooterLogo
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-4C76JM3T.mjs";
|
|
80
80
|
import "./chunk-IJSEJZ3W.mjs";
|
|
81
81
|
import "./chunk-BYEJZSG5.mjs";
|
|
82
82
|
import {
|
|
@@ -107,7 +107,7 @@ import "./chunk-XZ43OSZ5.mjs";
|
|
|
107
107
|
import "./chunk-KPPLVGZ3.mjs";
|
|
108
108
|
import {
|
|
109
109
|
ErrorSummary
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-4YCM72TQ.mjs";
|
|
111
111
|
import "./chunk-CKAL5ZJZ.mjs";
|
|
112
112
|
import "./chunk-CYDWEPFL.mjs";
|
|
113
113
|
import {
|
|
@@ -145,11 +145,11 @@ import {
|
|
|
145
145
|
} from "./chunk-BYFBK3J7.mjs";
|
|
146
146
|
import {
|
|
147
147
|
LinkList
|
|
148
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-OS24UCTD.mjs";
|
|
149
149
|
import {
|
|
150
150
|
OrderedList,
|
|
151
151
|
UnorderedList
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-3QHKPEXO.mjs";
|
|
153
153
|
import "./chunk-CFAH2LID.mjs";
|
|
154
154
|
import {
|
|
155
155
|
HelpText
|
|
@@ -197,15 +197,15 @@ import {
|
|
|
197
197
|
Figure
|
|
198
198
|
} from "./chunk-OE6RISJS.mjs";
|
|
199
199
|
import "./chunk-K6PP3ACJ.mjs";
|
|
200
|
-
import "./chunk-KFDS3IPB.mjs";
|
|
201
|
-
import {
|
|
202
|
-
Blockquote
|
|
203
|
-
} from "./chunk-JYN2QSN2.mjs";
|
|
204
200
|
import "./chunk-BCFV6VOE.mjs";
|
|
205
201
|
import {
|
|
206
202
|
Box,
|
|
207
203
|
BoxCloseButton
|
|
208
204
|
} from "./chunk-3OGHJOJF.mjs";
|
|
205
|
+
import "./chunk-KFDS3IPB.mjs";
|
|
206
|
+
import {
|
|
207
|
+
Blockquote
|
|
208
|
+
} from "./chunk-JYN2QSN2.mjs";
|
|
209
209
|
import "./chunk-ISAHCU7C.mjs";
|
|
210
210
|
import {
|
|
211
211
|
Breadcrumbs
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
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.13",
|
|
33
33
|
"@radix-ui/react-slot": "1.2.2",
|
|
34
|
-
"@postenbring/hedwig-css": "2.1.
|
|
34
|
+
"@postenbring/hedwig-css": "2.1.4"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
package/src/list/list.tsx
CHANGED
|
@@ -7,7 +7,7 @@ export interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListEl
|
|
|
7
7
|
*
|
|
8
8
|
* @default "medium"
|
|
9
9
|
*/
|
|
10
|
-
size?: "small" | "medium" | "large";
|
|
10
|
+
size?: "default" | "small" | "technical" | "medium" | "large";
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -25,11 +25,15 @@ export interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListEl
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
export const UnorderedList = forwardRef<HTMLUListElement, ListProps>(
|
|
28
|
-
({ size = "
|
|
28
|
+
({ size = "default", className, ...rest }, ref) => {
|
|
29
29
|
return (
|
|
30
30
|
<ul
|
|
31
31
|
ref={ref}
|
|
32
|
-
className={clsx(
|
|
32
|
+
className={clsx(
|
|
33
|
+
"hds-list",
|
|
34
|
+
size !== "default" && `hds-list--${size}`,
|
|
35
|
+
className as undefined,
|
|
36
|
+
)}
|
|
33
37
|
{...rest}
|
|
34
38
|
/>
|
|
35
39
|
);
|
|
@@ -56,7 +60,11 @@ export const OrderedList = forwardRef<HTMLOListElement, ListProps>(
|
|
|
56
60
|
return (
|
|
57
61
|
<ol
|
|
58
62
|
ref={ref}
|
|
59
|
-
className={clsx(
|
|
63
|
+
className={clsx(
|
|
64
|
+
"hds-list",
|
|
65
|
+
size !== "default" && `hds-list--${size}`,
|
|
66
|
+
className as undefined,
|
|
67
|
+
)}
|
|
60
68
|
{...rest}
|
|
61
69
|
/>
|
|
62
70
|
);
|
|
@@ -1 +0,0 @@
|
|
|
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 = \"medium\", className, ...rest }, ref) => {\n return (\n <ul\n ref={ref}\n className={clsx(\"hds-list\", `hds-list--${size}`, className as undefined)}\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(\"hds-list\", `hds-list--${size}`, className as undefined)}\n {...rest}\n />\n );\n },\n);\nOrderedList.displayName = \"OrderedList\";\n"],"mappings":";;;;;;AAAA,SAAS,kBAAuC;AAChD,SAAS,YAAY;AA4Bf;AAHC,IAAM,gBAAgB;AAAA,EAC3B,CAAC,IAAyC,QAAQ;AAAjD,iBAAE,SAAO,UAAU,UA3BtB,IA2BG,IAAiC,iBAAjC,IAAiC,CAA/B,QAAiB;AAClB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,KAAK,YAAY,aAAa,IAAI,IAAI,SAAsB;AAAA,SACnE;AAAA,IACN;AAAA,EAEJ;AACF;AACA,cAAc,cAAc;AAgBrB,IAAM,cAAc;AAAA,EACzB,CAAC,IAAyC,QAAQ;AAAjD,iBAAE,SAAO,UAAU,UAtDtB,IAsDG,IAAiC,iBAAjC,IAAiC,CAA/B,QAAiB;AAClB,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,KAAK,YAAY,aAAa,IAAI,IAAI,SAAsB;AAAA,SACnE;AAAA,IACN;AAAA,EAEJ;AACF;AACA,YAAY,cAAc;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|