@tomny-dev/uzi 0.2.12 → 0.3.0
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/README.md +9 -0
- package/dist/components/application-scaffolding.test.d.ts +2 -0
- package/dist/components/application-scaffolding.test.d.ts.map +1 -0
- package/dist/components/empty-state/EmptyState.d.ts +14 -0
- package/dist/components/empty-state/EmptyState.d.ts.map +1 -0
- package/dist/components/layout-primitives/LayoutPrimitives.d.ts +16 -0
- package/dist/components/layout-primitives/LayoutPrimitives.d.ts.map +1 -0
- package/dist/components/page-container/PageContainer.d.ts +10 -0
- package/dist/components/page-container/PageContainer.d.ts.map +1 -0
- package/dist/components/page-header/PageHeader.d.ts +11 -0
- package/dist/components/page-header/PageHeader.d.ts.map +1 -0
- package/dist/components/section-header/SectionHeader.d.ts +10 -0
- package/dist/components/section-header/SectionHeader.d.ts.map +1 -0
- package/dist/components/stat/Stat.d.ts +12 -0
- package/dist/components/stat/Stat.d.ts.map +1 -0
- package/dist/index.cjs +19 -5
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index41.js +12 -10
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +14 -11
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +14 -13
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +14 -13
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +15 -11
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +21 -13
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +28 -17
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +27 -16
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +13 -9
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +18 -12
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +22 -90
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +21 -91
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +17 -21
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +24 -30
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +30 -45
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +29 -46
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +14 -57
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +17 -84
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +24 -428
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +24 -431
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +21 -0
- package/dist/index51.js.map +1 -0
- package/dist/index52.cjs +26 -0
- package/dist/index52.cjs.map +1 -0
- package/dist/index52.js +35 -0
- package/dist/index52.js.map +1 -0
- package/dist/index53.cjs +36 -0
- package/dist/index53.cjs.map +1 -0
- package/dist/index53.js +14 -0
- package/dist/index53.js.map +1 -0
- package/dist/index54.cjs +15 -0
- package/dist/index54.cjs.map +1 -0
- package/dist/index54.js +21 -0
- package/dist/index54.js.map +1 -0
- package/dist/index55.cjs +21 -0
- package/dist/index55.cjs.map +1 -0
- package/dist/index55.js +15 -0
- package/dist/index55.js.map +1 -0
- package/dist/index56.cjs +17 -0
- package/dist/index56.cjs.map +1 -0
- package/dist/index56.js +24 -0
- package/dist/index56.js.map +1 -0
- package/dist/index57.cjs +24 -0
- package/dist/index57.cjs.map +1 -0
- package/dist/index57.js +13 -0
- package/dist/index57.js.map +1 -0
- package/dist/index58.cjs +16 -0
- package/dist/index58.cjs.map +1 -0
- package/dist/index58.js +96 -0
- package/dist/index58.js.map +1 -0
- package/dist/index59.cjs +98 -0
- package/dist/index59.cjs.map +1 -0
- package/dist/index59.js +25 -0
- package/dist/index59.js.map +1 -0
- package/dist/index60.cjs +34 -0
- package/dist/index60.cjs.map +1 -0
- package/dist/index60.js +50 -0
- package/dist/index60.js.map +1 -0
- package/dist/index61.cjs +52 -0
- package/dist/index61.cjs.map +1 -0
- package/dist/index61.js +61 -0
- package/dist/index61.js.map +1 -0
- package/dist/index62.cjs +88 -0
- package/dist/index62.cjs.map +1 -0
- package/dist/index62.js +439 -0
- package/dist/index62.js.map +1 -0
- package/dist/index63.cjs +443 -0
- package/dist/index63.cjs.map +1 -0
- package/dist/style.css +237 -0
- package/package.json +1 -1
package/dist/index45.cjs
CHANGED
|
@@ -1,24 +1,35 @@
|
|
|
1
1
|
const require_cx = require("./index4.cjs");
|
|
2
|
-
const
|
|
2
|
+
const require_page_header_module = require("./index44.cjs");
|
|
3
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
//#region src/components/
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.
|
|
8
|
-
className: require_cx.cx(
|
|
9
|
-
role: "progressbar",
|
|
10
|
-
"aria-valuenow": clamped,
|
|
11
|
-
"aria-valuemin": 0,
|
|
12
|
-
"aria-valuemax": 100,
|
|
13
|
-
"aria-label": ariaLabel,
|
|
4
|
+
//#region src/components/page-header/PageHeader.tsx
|
|
5
|
+
function PageHeader({ title, description, eyebrow, actions, headingLevel = 1, className, ...rest }) {
|
|
6
|
+
const Heading = `h${headingLevel}`;
|
|
7
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
|
|
8
|
+
className: require_cx.cx(require_page_header_module.default.header, className),
|
|
14
9
|
...rest,
|
|
15
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.
|
|
16
|
-
className:
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11
|
+
className: require_page_header_module.default.content,
|
|
12
|
+
children: [
|
|
13
|
+
eyebrow != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
14
|
+
className: require_page_header_module.default.eyebrow,
|
|
15
|
+
children: eyebrow
|
|
16
|
+
}),
|
|
17
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading, {
|
|
18
|
+
className: require_page_header_module.default.title,
|
|
19
|
+
children: title
|
|
20
|
+
}),
|
|
21
|
+
description != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
22
|
+
className: require_page_header_module.default.description,
|
|
23
|
+
children: description
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
}), actions != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
27
|
+
className: require_page_header_module.default.actions,
|
|
28
|
+
children: actions
|
|
29
|
+
})]
|
|
19
30
|
});
|
|
20
31
|
}
|
|
21
32
|
//#endregion
|
|
22
|
-
exports.
|
|
33
|
+
exports.PageHeader = PageHeader;
|
|
23
34
|
|
|
24
35
|
//# sourceMappingURL=index45.cjs.map
|
package/dist/index45.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index45.cjs","names":[],"sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index45.cjs","names":[],"sources":["../src/components/page-header/PageHeader.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./page-header.module.css\";\n\nexport type PageHeaderHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;\n\nexport type PageHeaderProps = Omit<HTMLAttributes<HTMLElement>, \"title\"> & {\n title: ReactNode;\n description?: ReactNode;\n eyebrow?: ReactNode;\n actions?: ReactNode;\n headingLevel?: PageHeaderHeadingLevel;\n};\n\nexport function PageHeader({\n title,\n description,\n eyebrow,\n actions,\n headingLevel = 1,\n className,\n ...rest\n}: PageHeaderProps) {\n const Heading = `h${headingLevel}` as `h${PageHeaderHeadingLevel}`;\n\n return (\n <header className={cx(styles.header, className)} {...rest}>\n <div className={styles.content}>\n {eyebrow != null && <div className={styles.eyebrow}>{eyebrow}</div>}\n <Heading className={styles.title}>{title}</Heading>\n {description != null && <div className={styles.description}>{description}</div>}\n </div>\n {actions != null && <div className={styles.actions}>{actions}</div>}\n </header>\n );\n}\n"],"mappings":";;;;AAcA,SAAgB,WAAW,EACzB,OACA,aACA,SACA,SACA,eAAe,GACf,WACA,GAAG,QACe;CAClB,MAAM,UAAU,IAAI;CAEpB,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,UAAD;EAAQ,WAAW,WAAA,GAAG,2BAAA,QAAO,QAAQ,SAAS;EAAG,GAAI;YAArD,CACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;GAAK,WAAW,2BAAA,QAAO;aAAvB;IACG,WAAW,QAAQ,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;KAAK,WAAW,2BAAA,QAAO;eAAU;IAAa,CAAA;IAClE,iBAAA,GAAA,kBAAA,IAAA,CAAC,SAAD;KAAS,WAAW,2BAAA,QAAO;eAAQ;IAAe,CAAA;IACjD,eAAe,QAAQ,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;KAAK,WAAW,2BAAA,QAAO;eAAc;IAAiB,CAAA;GAC3E;MACJ,WAAW,QAAQ,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GAAK,WAAW,2BAAA,QAAO;aAAU;EAAa,CAAA,CAC5D;;AAEZ"}
|
package/dist/index45.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
//#region src/components/
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
//#region src/components/section-header/section-header.module.css
|
|
2
|
+
var header = "uzi-section-header-module__header__tTqQQ";
|
|
3
|
+
var content = "uzi-section-header-module__content__6prWG";
|
|
4
|
+
var title = "uzi-section-header-module__title__7ddbh";
|
|
5
|
+
var description = "uzi-section-header-module__description__T8tck";
|
|
6
|
+
var actions = "uzi-section-header-module__actions__kS-uK";
|
|
7
|
+
var section_header_module_default = {
|
|
8
|
+
header,
|
|
9
|
+
content,
|
|
10
|
+
title,
|
|
11
|
+
description,
|
|
12
|
+
actions
|
|
9
13
|
};
|
|
10
14
|
//#endregion
|
|
11
|
-
export {
|
|
15
|
+
export { actions, content, section_header_module_default as default, description, header, title };
|
|
12
16
|
|
|
13
17
|
//# sourceMappingURL=index45.js.map
|
package/dist/index45.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index45.js","names":[],"sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index45.js","names":[],"sources":["../src/components/section-header/section-header.module.css"],"sourcesContent":[".header {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n gap: 1rem;\n}\n\n.content {\n min-width: 0;\n display: grid;\n gap: 0.375rem;\n}\n\n.title {\n margin: 0;\n color: var(--foreground);\n font-size: clamp(1.25rem, 2vw, 1.625rem);\n line-height: 1.2;\n letter-spacing: -0.015em;\n}\n\n.description {\n max-width: 44rem;\n color: var(--muted-foreground);\n font-size: 0.875rem;\n line-height: 1.6;\n}\n\n.actions {\n display: flex;\n flex: 0 0 auto;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n\n@media (max-width: 40rem) {\n .header {\n align-items: flex-start;\n flex-direction: column;\n }\n\n .actions {\n width: 100%;\n justify-content: flex-start;\n }\n}\n"],"mappings":""}
|
package/dist/index46.cjs
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
//#region src/components/
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
//#region src/components/section-header/section-header.module.css
|
|
2
|
+
var header = "uzi-section-header-module__header__tTqQQ";
|
|
3
|
+
var content = "uzi-section-header-module__content__6prWG";
|
|
4
|
+
var title = "uzi-section-header-module__title__7ddbh";
|
|
5
|
+
var description = "uzi-section-header-module__description__T8tck";
|
|
6
|
+
var actions = "uzi-section-header-module__actions__kS-uK";
|
|
7
|
+
var section_header_module_default = {
|
|
8
|
+
header,
|
|
9
|
+
content,
|
|
10
|
+
title,
|
|
11
|
+
description,
|
|
12
|
+
actions
|
|
9
13
|
};
|
|
10
14
|
//#endregion
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
+
exports.actions = actions;
|
|
16
|
+
exports.content = content;
|
|
17
|
+
exports.default = section_header_module_default;
|
|
18
|
+
exports.description = description;
|
|
19
|
+
exports.header = header;
|
|
20
|
+
exports.title = title;
|
|
15
21
|
|
|
16
22
|
//# sourceMappingURL=index46.cjs.map
|
package/dist/index46.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index46.cjs","names":[],"sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index46.cjs","names":[],"sources":["../src/components/section-header/section-header.module.css"],"sourcesContent":[".header {\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n gap: 1rem;\n}\n\n.content {\n min-width: 0;\n display: grid;\n gap: 0.375rem;\n}\n\n.title {\n margin: 0;\n color: var(--foreground);\n font-size: clamp(1.25rem, 2vw, 1.625rem);\n line-height: 1.2;\n letter-spacing: -0.015em;\n}\n\n.description {\n max-width: 44rem;\n color: var(--muted-foreground);\n font-size: 0.875rem;\n line-height: 1.6;\n}\n\n.actions {\n display: flex;\n flex: 0 0 auto;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: 0.5rem;\n}\n\n@media (max-width: 40rem) {\n .header {\n align-items: flex-start;\n flex-direction: column;\n }\n\n .actions {\n width: 100%;\n justify-content: flex-start;\n }\n}\n"],"mappings":""}
|
package/dist/index46.js
CHANGED
|
@@ -1,96 +1,28 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { cx } from "./index3.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
nextIndex = (nextIndex + direction + options.length) % options.length;
|
|
25
|
-
if (!options[nextIndex]?.disabled) return nextIndex;
|
|
26
|
-
}
|
|
27
|
-
return startIndex;
|
|
28
|
-
};
|
|
29
|
-
const selectIndex = (index) => {
|
|
30
|
-
const nextOption = options[index];
|
|
31
|
-
if (!nextOption || nextOption.disabled || nextOption.value === value) return;
|
|
32
|
-
onChange(nextOption.value);
|
|
33
|
-
};
|
|
34
|
-
const handleKeyDown = (event, index) => {
|
|
35
|
-
switch (event.key) {
|
|
36
|
-
case "ArrowRight":
|
|
37
|
-
case "ArrowDown": {
|
|
38
|
-
event.preventDefault();
|
|
39
|
-
const nextIndex = findEnabledIndex(index, 1);
|
|
40
|
-
focusItem(nextIndex);
|
|
41
|
-
selectIndex(nextIndex);
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
case "ArrowLeft":
|
|
45
|
-
case "ArrowUp": {
|
|
46
|
-
event.preventDefault();
|
|
47
|
-
const nextIndex = findEnabledIndex(index, -1);
|
|
48
|
-
focusItem(nextIndex);
|
|
49
|
-
selectIndex(nextIndex);
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
case "Home":
|
|
53
|
-
event.preventDefault();
|
|
54
|
-
focusItem(fallbackIndex);
|
|
55
|
-
if (fallbackIndex >= 0) selectIndex(fallbackIndex);
|
|
56
|
-
break;
|
|
57
|
-
case "End":
|
|
58
|
-
event.preventDefault();
|
|
59
|
-
if (lastEnabledIndex >= 0) {
|
|
60
|
-
focusItem(lastEnabledIndex);
|
|
61
|
-
selectIndex(lastEnabledIndex);
|
|
62
|
-
}
|
|
63
|
-
break;
|
|
64
|
-
default: break;
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
return /* @__PURE__ */ jsx("div", {
|
|
68
|
-
className: cx(segmented_toggle_module_default.track, className),
|
|
69
|
-
role: "radiogroup",
|
|
70
|
-
"aria-label": ariaLabel,
|
|
71
|
-
"aria-labelledby": ariaLabelledBy,
|
|
72
|
-
children: options.map((opt, index) => /* @__PURE__ */ jsx("button", {
|
|
73
|
-
ref: (node) => {
|
|
74
|
-
itemRefs.current[index] = node;
|
|
75
|
-
},
|
|
76
|
-
type: "button",
|
|
77
|
-
role: "radio",
|
|
78
|
-
"aria-checked": opt.value === value,
|
|
79
|
-
disabled: opt.disabled,
|
|
80
|
-
tabIndex: opt.disabled ? -1 : index === tabbableIndex ? 0 : -1,
|
|
81
|
-
onClick: () => {
|
|
82
|
-
if (opt.value !== value) onChange(opt.value);
|
|
83
|
-
},
|
|
84
|
-
onKeyDown: (event) => handleKeyDown(event, index),
|
|
85
|
-
className: cx(segmented_toggle_module_default.option),
|
|
86
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
87
|
-
className: segmented_toggle_module_default.label,
|
|
88
|
-
children: opt.label
|
|
89
|
-
})
|
|
90
|
-
}, opt.value))
|
|
2
|
+
import section_header_module_default from "./index45.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/section-header/SectionHeader.tsx
|
|
5
|
+
function SectionHeader({ title, description, actions, headingLevel = 2, className, ...rest }) {
|
|
6
|
+
const Heading = `h${headingLevel}`;
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8
|
+
className: cx(section_header_module_default.header, className),
|
|
9
|
+
...rest,
|
|
10
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
11
|
+
className: section_header_module_default.content,
|
|
12
|
+
children: [/* @__PURE__ */ jsx(Heading, {
|
|
13
|
+
className: section_header_module_default.title,
|
|
14
|
+
children: title
|
|
15
|
+
}), description != null && /* @__PURE__ */ jsx("div", {
|
|
16
|
+
className: section_header_module_default.description,
|
|
17
|
+
children: description
|
|
18
|
+
})]
|
|
19
|
+
}), actions != null && /* @__PURE__ */ jsx("div", {
|
|
20
|
+
className: section_header_module_default.actions,
|
|
21
|
+
children: actions
|
|
22
|
+
})]
|
|
91
23
|
});
|
|
92
24
|
}
|
|
93
25
|
//#endregion
|
|
94
|
-
export {
|
|
26
|
+
export { SectionHeader };
|
|
95
27
|
|
|
96
28
|
//# sourceMappingURL=index46.js.map
|
package/dist/index46.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index46.js","names":[],"sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index46.js","names":[],"sources":["../src/components/section-header/SectionHeader.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./section-header.module.css\";\n\nexport type SectionHeaderHeadingLevel = 2 | 3 | 4 | 5 | 6;\n\nexport type SectionHeaderProps = Omit<HTMLAttributes<HTMLDivElement>, \"title\"> & {\n title: ReactNode;\n description?: ReactNode;\n actions?: ReactNode;\n headingLevel?: SectionHeaderHeadingLevel;\n};\n\nexport function SectionHeader({\n title,\n description,\n actions,\n headingLevel = 2,\n className,\n ...rest\n}: SectionHeaderProps) {\n const Heading = `h${headingLevel}` as `h${SectionHeaderHeadingLevel}`;\n\n return (\n <div className={cx(styles.header, className)} {...rest}>\n <div className={styles.content}>\n <Heading className={styles.title}>{title}</Heading>\n {description != null && <div className={styles.description}>{description}</div>}\n </div>\n {actions != null && <div className={styles.actions}>{actions}</div>}\n </div>\n );\n}\n"],"mappings":";;;;AAaA,SAAgB,cAAc,EAC5B,OACA,aACA,SACA,eAAe,GACf,WACA,GAAG,QACkB;CACrB,MAAM,UAAU,IAAI;CAEpB,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,8BAAO,QAAQ,SAAS;EAAG,GAAI;YAAlD,CACE,qBAAC,OAAD;GAAK,WAAW,8BAAO;aAAvB,CACE,oBAAC,SAAD;IAAS,WAAW,8BAAO;cAAQ;GAAe,CAAA,GACjD,eAAe,QAAQ,oBAAC,OAAD;IAAK,WAAW,8BAAO;cAAc;GAAiB,CAAA,CAC3E;MACJ,WAAW,QAAQ,oBAAC,OAAD;GAAK,WAAW,8BAAO;aAAU;EAAa,CAAA,CAC/D;;AAET"}
|
package/dist/index47.cjs
CHANGED
|
@@ -1,98 +1,28 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const require_runtime = require("./index2.cjs");
|
|
3
1
|
const require_cx = require("./index4.cjs");
|
|
4
|
-
const
|
|
5
|
-
let react = require("react");
|
|
6
|
-
react = require_runtime.__toESM(react, 1);
|
|
2
|
+
const require_section_header_module = require("./index46.cjs");
|
|
7
3
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
-
//#region src/components/
|
|
9
|
-
function
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (!options[nextIndex]?.disabled) return nextIndex;
|
|
28
|
-
}
|
|
29
|
-
return startIndex;
|
|
30
|
-
};
|
|
31
|
-
const selectIndex = (index) => {
|
|
32
|
-
const nextOption = options[index];
|
|
33
|
-
if (!nextOption || nextOption.disabled || nextOption.value === value) return;
|
|
34
|
-
onChange(nextOption.value);
|
|
35
|
-
};
|
|
36
|
-
const handleKeyDown = (event, index) => {
|
|
37
|
-
switch (event.key) {
|
|
38
|
-
case "ArrowRight":
|
|
39
|
-
case "ArrowDown": {
|
|
40
|
-
event.preventDefault();
|
|
41
|
-
const nextIndex = findEnabledIndex(index, 1);
|
|
42
|
-
focusItem(nextIndex);
|
|
43
|
-
selectIndex(nextIndex);
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
case "ArrowLeft":
|
|
47
|
-
case "ArrowUp": {
|
|
48
|
-
event.preventDefault();
|
|
49
|
-
const nextIndex = findEnabledIndex(index, -1);
|
|
50
|
-
focusItem(nextIndex);
|
|
51
|
-
selectIndex(nextIndex);
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
case "Home":
|
|
55
|
-
event.preventDefault();
|
|
56
|
-
focusItem(fallbackIndex);
|
|
57
|
-
if (fallbackIndex >= 0) selectIndex(fallbackIndex);
|
|
58
|
-
break;
|
|
59
|
-
case "End":
|
|
60
|
-
event.preventDefault();
|
|
61
|
-
if (lastEnabledIndex >= 0) {
|
|
62
|
-
focusItem(lastEnabledIndex);
|
|
63
|
-
selectIndex(lastEnabledIndex);
|
|
64
|
-
}
|
|
65
|
-
break;
|
|
66
|
-
default: break;
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
70
|
-
className: require_cx.cx(require_segmented_toggle_module.default.track, className),
|
|
71
|
-
role: "radiogroup",
|
|
72
|
-
"aria-label": ariaLabel,
|
|
73
|
-
"aria-labelledby": ariaLabelledBy,
|
|
74
|
-
children: options.map((opt, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
75
|
-
ref: (node) => {
|
|
76
|
-
itemRefs.current[index] = node;
|
|
77
|
-
},
|
|
78
|
-
type: "button",
|
|
79
|
-
role: "radio",
|
|
80
|
-
"aria-checked": opt.value === value,
|
|
81
|
-
disabled: opt.disabled,
|
|
82
|
-
tabIndex: opt.disabled ? -1 : index === tabbableIndex ? 0 : -1,
|
|
83
|
-
onClick: () => {
|
|
84
|
-
if (opt.value !== value) onChange(opt.value);
|
|
85
|
-
},
|
|
86
|
-
onKeyDown: (event) => handleKeyDown(event, index),
|
|
87
|
-
className: require_cx.cx(require_segmented_toggle_module.default.option),
|
|
88
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
89
|
-
className: require_segmented_toggle_module.default.label,
|
|
90
|
-
children: opt.label
|
|
91
|
-
})
|
|
92
|
-
}, opt.value))
|
|
4
|
+
//#region src/components/section-header/SectionHeader.tsx
|
|
5
|
+
function SectionHeader({ title, description, actions, headingLevel = 2, className, ...rest }) {
|
|
6
|
+
const Heading = `h${headingLevel}`;
|
|
7
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
8
|
+
className: require_cx.cx(require_section_header_module.default.header, className),
|
|
9
|
+
...rest,
|
|
10
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11
|
+
className: require_section_header_module.default.content,
|
|
12
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Heading, {
|
|
13
|
+
className: require_section_header_module.default.title,
|
|
14
|
+
children: title
|
|
15
|
+
}), description != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
16
|
+
className: require_section_header_module.default.description,
|
|
17
|
+
children: description
|
|
18
|
+
})]
|
|
19
|
+
}), actions != null && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
20
|
+
className: require_section_header_module.default.actions,
|
|
21
|
+
children: actions
|
|
22
|
+
})]
|
|
93
23
|
});
|
|
94
24
|
}
|
|
95
25
|
//#endregion
|
|
96
|
-
exports.
|
|
26
|
+
exports.SectionHeader = SectionHeader;
|
|
97
27
|
|
|
98
28
|
//# sourceMappingURL=index47.cjs.map
|
package/dist/index47.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index47.cjs","names":[],"sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index47.cjs","names":[],"sources":["../src/components/section-header/SectionHeader.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from \"react\";\nimport { cx } from \"../../utils/cx\";\nimport styles from \"./section-header.module.css\";\n\nexport type SectionHeaderHeadingLevel = 2 | 3 | 4 | 5 | 6;\n\nexport type SectionHeaderProps = Omit<HTMLAttributes<HTMLDivElement>, \"title\"> & {\n title: ReactNode;\n description?: ReactNode;\n actions?: ReactNode;\n headingLevel?: SectionHeaderHeadingLevel;\n};\n\nexport function SectionHeader({\n title,\n description,\n actions,\n headingLevel = 2,\n className,\n ...rest\n}: SectionHeaderProps) {\n const Heading = `h${headingLevel}` as `h${SectionHeaderHeadingLevel}`;\n\n return (\n <div className={cx(styles.header, className)} {...rest}>\n <div className={styles.content}>\n <Heading className={styles.title}>{title}</Heading>\n {description != null && <div className={styles.description}>{description}</div>}\n </div>\n {actions != null && <div className={styles.actions}>{actions}</div>}\n </div>\n );\n}\n"],"mappings":";;;;AAaA,SAAgB,cAAc,EAC5B,OACA,aACA,SACA,eAAe,GACf,WACA,GAAG,QACkB;CACrB,MAAM,UAAU,IAAI;CAEpB,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;EAAK,WAAW,WAAA,GAAG,8BAAA,QAAO,QAAQ,SAAS;EAAG,GAAI;YAAlD,CACE,iBAAA,GAAA,kBAAA,KAAA,CAAC,OAAD;GAAK,WAAW,8BAAA,QAAO;aAAvB,CACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,SAAD;IAAS,WAAW,8BAAA,QAAO;cAAQ;GAAe,CAAA,GACjD,eAAe,QAAQ,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;IAAK,WAAW,8BAAA,QAAO;cAAc;GAAiB,CAAA,CAC3E;MACJ,WAAW,QAAQ,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;GAAK,WAAW,8BAAA,QAAO;aAAU;EAAa,CAAA,CAC/D;;AAET"}
|
package/dist/index47.js
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
//#region src/components/
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
authSubtitle,
|
|
18
|
-
authBody,
|
|
19
|
-
divider,
|
|
20
|
-
authFooter
|
|
1
|
+
//#region src/components/empty-state/empty-state.module.css
|
|
2
|
+
var root = "uzi-empty-state-module__root__UNTr-";
|
|
3
|
+
var compact = "uzi-empty-state-module__compact__eStzZ";
|
|
4
|
+
var visual = "uzi-empty-state-module__visual__4yzn6";
|
|
5
|
+
var content = "uzi-empty-state-module__content__lZQTI";
|
|
6
|
+
var title = "uzi-empty-state-module__title__Aoaqa";
|
|
7
|
+
var description = "uzi-empty-state-module__description__muQc4";
|
|
8
|
+
var actions = "uzi-empty-state-module__actions__511Kv";
|
|
9
|
+
var empty_state_module_default = {
|
|
10
|
+
root,
|
|
11
|
+
compact,
|
|
12
|
+
visual,
|
|
13
|
+
content,
|
|
14
|
+
title,
|
|
15
|
+
description,
|
|
16
|
+
actions
|
|
21
17
|
};
|
|
22
18
|
//#endregion
|
|
23
|
-
export {
|
|
19
|
+
export { actions, compact, content, empty_state_module_default as default, description, root, title, visual };
|
|
24
20
|
|
|
25
21
|
//# sourceMappingURL=index47.js.map
|
package/dist/index47.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index47.js","names":[],"sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index47.js","names":[],"sources":["../src/components/empty-state/empty-state.module.css"],"sourcesContent":[".root {\n display: grid;\n place-items: center;\n gap: 1rem;\n padding: clamp(2rem, 6vw, 4rem) 1.5rem;\n text-align: center;\n}\n\n.compact {\n padding-block: 1.5rem;\n}\n\n.visual {\n display: grid;\n place-items: center;\n color: var(--muted-foreground);\n font-size: 2rem;\n}\n\n.content {\n display: grid;\n gap: 0.5rem;\n max-width: 34rem;\n}\n\n.title {\n margin: 0;\n color: var(--foreground);\n font-size: 1.25rem;\n line-height: 1.25;\n}\n\n.description {\n color: var(--muted-foreground);\n font-size: 0.9rem;\n line-height: 1.65;\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n gap: 0.625rem;\n}\n"],"mappings":""}
|
package/dist/index48.cjs
CHANGED
|
@@ -1,34 +1,28 @@
|
|
|
1
|
-
//#region src/components/
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
authSubtitle,
|
|
18
|
-
authBody,
|
|
19
|
-
divider,
|
|
20
|
-
authFooter
|
|
1
|
+
//#region src/components/empty-state/empty-state.module.css
|
|
2
|
+
var root = "uzi-empty-state-module__root__UNTr-";
|
|
3
|
+
var compact = "uzi-empty-state-module__compact__eStzZ";
|
|
4
|
+
var visual = "uzi-empty-state-module__visual__4yzn6";
|
|
5
|
+
var content = "uzi-empty-state-module__content__lZQTI";
|
|
6
|
+
var title = "uzi-empty-state-module__title__Aoaqa";
|
|
7
|
+
var description = "uzi-empty-state-module__description__muQc4";
|
|
8
|
+
var actions = "uzi-empty-state-module__actions__511Kv";
|
|
9
|
+
var empty_state_module_default = {
|
|
10
|
+
root,
|
|
11
|
+
compact,
|
|
12
|
+
visual,
|
|
13
|
+
content,
|
|
14
|
+
title,
|
|
15
|
+
description,
|
|
16
|
+
actions
|
|
21
17
|
};
|
|
22
18
|
//#endregion
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.default = auth_card_module_default;
|
|
32
|
-
exports.divider = divider;
|
|
19
|
+
exports.actions = actions;
|
|
20
|
+
exports.compact = compact;
|
|
21
|
+
exports.content = content;
|
|
22
|
+
exports.default = empty_state_module_default;
|
|
23
|
+
exports.description = description;
|
|
24
|
+
exports.root = root;
|
|
25
|
+
exports.title = title;
|
|
26
|
+
exports.visual = visual;
|
|
33
27
|
|
|
34
28
|
//# sourceMappingURL=index48.cjs.map
|
package/dist/index48.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index48.cjs","names":[],"sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index48.cjs","names":[],"sources":["../src/components/empty-state/empty-state.module.css"],"sourcesContent":[".root {\n display: grid;\n place-items: center;\n gap: 1rem;\n padding: clamp(2rem, 6vw, 4rem) 1.5rem;\n text-align: center;\n}\n\n.compact {\n padding-block: 1.5rem;\n}\n\n.visual {\n display: grid;\n place-items: center;\n color: var(--muted-foreground);\n font-size: 2rem;\n}\n\n.content {\n display: grid;\n gap: 0.5rem;\n max-width: 34rem;\n}\n\n.title {\n margin: 0;\n color: var(--foreground);\n font-size: 1.25rem;\n line-height: 1.25;\n}\n\n.description {\n color: var(--muted-foreground);\n font-size: 0.9rem;\n line-height: 1.65;\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n gap: 0.625rem;\n}\n"],"mappings":""}
|