@aseguragonzalez/ui 1.0.3 → 1.0.5
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/components/AppShell/AppShell.cjs +1 -0
- package/dist/components/AppShell/AppShell.js +37 -0
- package/dist/components/AppShell/AppShell.module.css.cjs +1 -0
- package/dist/components/AppShell/AppShell.module.css.js +12 -0
- package/dist/components/Banner/Banner.cjs +1 -0
- package/dist/components/Banner/Banner.js +200 -0
- package/dist/components/Banner/Banner.module.css.cjs +1 -0
- package/dist/components/Banner/Banner.module.css.js +18 -0
- package/dist/components/BarChart/BarChart.cjs +1 -0
- package/dist/components/BarChart/BarChart.js +104 -0
- package/dist/components/BarChart/BarChart.module.css.cjs +1 -0
- package/dist/components/BarChart/BarChart.module.css.js +13 -0
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +33 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.css.cjs +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.module.css.js +10 -0
- package/dist/components/Card/Card.cjs +1 -0
- package/dist/components/Card/Card.js +54 -0
- package/dist/components/Card/Card.module.css.cjs +1 -0
- package/dist/components/Card/Card.module.css.js +16 -0
- package/dist/components/Carousel/Carousel.cjs +1 -0
- package/dist/components/Carousel/Carousel.js +146 -0
- package/dist/components/Carousel/Carousel.module.css.cjs +1 -0
- package/dist/components/Carousel/Carousel.module.css.js +15 -0
- package/dist/components/CheckboxField/CheckboxField.cjs +1 -0
- package/dist/components/CheckboxField/CheckboxField.js +43 -0
- package/dist/components/CheckboxField/CheckboxField.module.css.cjs +1 -0
- package/dist/components/CheckboxField/CheckboxField.module.css.js +9 -0
- package/dist/components/Container/Container.cjs +1 -0
- package/dist/components/Container/Container.js +20 -0
- package/dist/components/Container/Container.module.css.cjs +1 -0
- package/dist/components/Container/Container.module.css.js +12 -0
- package/dist/components/DataTable/DataTable.cjs +1 -0
- package/dist/components/DataTable/DataTable.js +109 -0
- package/dist/components/DataTable/DataTable.module.css.cjs +1 -0
- package/dist/components/DataTable/DataTable.module.css.js +22 -0
- package/dist/components/DateField/DateField.cjs +1 -0
- package/dist/components/DateField/DateField.js +52 -0
- package/dist/components/DateField/DateField.module.css.cjs +1 -0
- package/dist/components/DateField/DateField.module.css.js +7 -0
- package/dist/components/DonutChart/DonutChart.cjs +1 -0
- package/dist/components/DonutChart/DonutChart.js +98 -0
- package/dist/components/DonutChart/DonutChart.module.css.cjs +1 -0
- package/dist/components/DonutChart/DonutChart.module.css.js +15 -0
- package/dist/components/EmailField/EmailField.cjs +1 -0
- package/dist/components/EmailField/EmailField.js +51 -0
- package/dist/components/EmailField/EmailField.module.css.cjs +1 -0
- package/dist/components/EmailField/EmailField.module.css.js +7 -0
- package/dist/components/Grid/Grid.cjs +1 -0
- package/dist/components/Grid/Grid.js +42 -0
- package/dist/components/Grid/Grid.module.css.cjs +1 -0
- package/dist/components/Grid/Grid.module.css.js +7 -0
- package/dist/components/LineChart/LineChart.cjs +1 -0
- package/dist/components/LineChart/LineChart.js +112 -0
- package/dist/components/LineChart/LineChart.module.css.cjs +1 -0
- package/dist/components/LineChart/LineChart.module.css.js +12 -0
- package/dist/components/Navbar/Navbar.cjs +1 -0
- package/dist/components/Navbar/Navbar.js +101 -0
- package/dist/components/Navbar/Navbar.module.css.cjs +1 -0
- package/dist/components/Navbar/Navbar.module.css.js +22 -0
- package/dist/components/NumberField/NumberField.cjs +1 -0
- package/dist/components/NumberField/NumberField.js +54 -0
- package/dist/components/NumberField/NumberField.module.css.cjs +1 -0
- package/dist/components/NumberField/NumberField.module.css.js +7 -0
- package/dist/components/PageLayout/PageLayout.cjs +1 -0
- package/dist/components/PageLayout/PageLayout.js +42 -0
- package/dist/components/PageLayout/PageLayout.module.css.cjs +1 -0
- package/dist/components/PageLayout/PageLayout.module.css.js +12 -0
- package/dist/components/PasswordField/PasswordField.cjs +1 -0
- package/dist/components/PasswordField/PasswordField.js +50 -0
- package/dist/components/PasswordField/PasswordField.module.css.cjs +1 -0
- package/dist/components/PasswordField/PasswordField.module.css.js +4 -0
- package/dist/components/PhoneField/PhoneField.cjs +1 -0
- package/dist/components/PhoneField/PhoneField.js +51 -0
- package/dist/components/PhoneField/PhoneField.module.css.cjs +1 -0
- package/dist/components/PhoneField/PhoneField.module.css.js +7 -0
- package/dist/components/RadarChart/RadarChart.cjs +1 -0
- package/dist/components/RadarChart/RadarChart.js +101 -0
- package/dist/components/RadarChart/RadarChart.module.css.cjs +1 -0
- package/dist/components/RadarChart/RadarChart.module.css.js +15 -0
- package/dist/components/RadioGroup/RadioGroup.cjs +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +63 -0
- package/dist/components/RadioGroup/RadioGroup.module.css.cjs +1 -0
- package/dist/components/RadioGroup/RadioGroup.module.css.js +12 -0
- package/dist/components/ScatterPlot/ScatterPlot.cjs +1 -0
- package/dist/components/ScatterPlot/ScatterPlot.js +134 -0
- package/dist/components/ScatterPlot/ScatterPlot.module.css.cjs +1 -0
- package/dist/components/ScatterPlot/ScatterPlot.module.css.js +14 -0
- package/dist/components/SearchField/SearchField.cjs +1 -0
- package/dist/components/SearchField/SearchField.js +51 -0
- package/dist/components/SearchField/SearchField.module.css.cjs +1 -0
- package/dist/components/SearchField/SearchField.module.css.js +7 -0
- package/dist/components/Section/Section.cjs +1 -0
- package/dist/components/Section/Section.js +41 -0
- package/dist/components/Section/Section.module.css.cjs +1 -0
- package/dist/components/Section/Section.module.css.js +12 -0
- package/dist/components/SelectField/SelectField.cjs +1 -0
- package/dist/components/SelectField/SelectField.js +57 -0
- package/dist/components/SelectField/SelectField.module.css.cjs +1 -0
- package/dist/components/SelectField/SelectField.module.css.js +4 -0
- package/dist/components/Sidebar/Sidebar.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.js +150 -0
- package/dist/components/Sidebar/Sidebar.module.css.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.module.css.js +25 -0
- package/dist/components/Stack/Stack.cjs +1 -0
- package/dist/components/Stack/Stack.js +42 -0
- package/dist/components/Stack/Stack.module.css.cjs +1 -0
- package/dist/components/Stack/Stack.module.css.js +4 -0
- package/dist/components/TextAreaField/TextAreaField.cjs +1 -0
- package/dist/components/TextAreaField/TextAreaField.js +49 -0
- package/dist/components/TextAreaField/TextAreaField.module.css.cjs +1 -0
- package/dist/components/TextAreaField/TextAreaField.module.css.js +4 -0
- package/dist/components/TextField/TextField.cjs +1 -0
- package/dist/components/TextField/TextField.js +51 -0
- package/dist/components/TextField/TextField.module.css.cjs +1 -0
- package/dist/components/TextField/TextField.module.css.js +7 -0
- package/dist/components/ThemeProvider/ThemeProvider.cjs +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.js +33 -0
- package/dist/components/ThemeProvider/useTheme.cjs +1 -0
- package/dist/components/ThemeProvider/useTheme.js +10 -0
- package/dist/components/ToggleField/ToggleField.cjs +1 -0
- package/dist/components/ToggleField/ToggleField.js +47 -0
- package/dist/components/ToggleField/ToggleField.module.css.cjs +1 -0
- package/dist/components/ToggleField/ToggleField.module.css.js +7 -0
- package/dist/components/shared/useFieldIds.cjs +1 -0
- package/dist/components/shared/useFieldIds.js +13 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +64 -3653
- package/dist/patterns/AuthLayout/AuthLayout.cjs +1 -0
- package/dist/patterns/AuthLayout/AuthLayout.js +59 -0
- package/dist/patterns/AuthLayout/AuthLayout.module.css.cjs +1 -0
- package/dist/patterns/AuthLayout/AuthLayout.module.css.js +13 -0
- package/dist/primitives/Alert/Alert.cjs +1 -0
- package/dist/primitives/Alert/Alert.js +170 -0
- package/dist/primitives/Alert/Alert.module.css.cjs +1 -0
- package/dist/primitives/Alert/Alert.module.css.js +15 -0
- package/dist/primitives/Avatar/Avatar.cjs +1 -0
- package/dist/primitives/Avatar/Avatar.js +41 -0
- package/dist/primitives/Avatar/Avatar.module.css.cjs +1 -0
- package/dist/primitives/Avatar/Avatar.module.css.js +15 -0
- package/dist/primitives/Badge/Badge.cjs +1 -0
- package/dist/primitives/Badge/Badge.js +20 -0
- package/dist/primitives/Badge/Badge.module.css.cjs +1 -0
- package/dist/primitives/Badge/Badge.module.css.js +16 -0
- package/dist/primitives/Button/Button.cjs +1 -0
- package/dist/primitives/Button/Button.js +33 -0
- package/dist/primitives/Button/Button.module.css.cjs +1 -0
- package/dist/primitives/Button/Button.module.css.js +16 -0
- package/dist/primitives/Checkbox/Checkbox.cjs +1 -0
- package/dist/primitives/Checkbox/Checkbox.js +22 -0
- package/dist/primitives/Checkbox/Checkbox.module.css.cjs +1 -0
- package/dist/primitives/Checkbox/Checkbox.module.css.js +9 -0
- package/dist/primitives/DateInput/DateInput.cjs +1 -0
- package/dist/primitives/DateInput/DateInput.js +22 -0
- package/dist/primitives/Divider/Divider.cjs +1 -0
- package/dist/primitives/Divider/Divider.js +22 -0
- package/dist/primitives/Divider/Divider.module.css.cjs +1 -0
- package/dist/primitives/Divider/Divider.module.css.js +8 -0
- package/dist/primitives/EmailInput/EmailInput.cjs +1 -0
- package/dist/primitives/EmailInput/EmailInput.js +22 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.cjs +1 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.js +13 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.module.css.cjs +1 -0
- package/dist/primitives/ErrorMessage/ErrorMessage.module.css.js +4 -0
- package/dist/primitives/Heading/Heading.cjs +1 -0
- package/dist/primitives/Heading/Heading.js +52 -0
- package/dist/primitives/Heading/Heading.module.css.cjs +1 -0
- package/dist/primitives/Heading/Heading.module.css.js +13 -0
- package/dist/primitives/Hint/Hint.cjs +1 -0
- package/dist/primitives/Hint/Hint.js +13 -0
- package/dist/primitives/Hint/Hint.module.css.cjs +1 -0
- package/dist/primitives/Hint/Hint.module.css.js +4 -0
- package/dist/primitives/Label/Label.cjs +1 -0
- package/dist/primitives/Label/Label.js +22 -0
- package/dist/primitives/Label/Label.module.css.cjs +1 -0
- package/dist/primitives/Label/Label.module.css.js +8 -0
- package/dist/primitives/Modal/Modal.cjs +1 -0
- package/dist/primitives/Modal/Modal.js +111 -0
- package/dist/primitives/Modal/Modal.module.css.cjs +1 -0
- package/dist/primitives/Modal/Modal.module.css.js +15 -0
- package/dist/primitives/NumberInput/NumberInput.cjs +1 -0
- package/dist/primitives/NumberInput/NumberInput.js +27 -0
- package/dist/primitives/NumberInput/NumberInput.module.css.cjs +1 -0
- package/dist/primitives/NumberInput/NumberInput.module.css.js +4 -0
- package/dist/primitives/PasswordInput/PasswordInput.cjs +1 -0
- package/dist/primitives/PasswordInput/PasswordInput.js +65 -0
- package/dist/primitives/PasswordInput/PasswordInput.module.css.cjs +1 -0
- package/dist/primitives/PasswordInput/PasswordInput.module.css.js +12 -0
- package/dist/primitives/PhoneInput/PhoneInput.cjs +1 -0
- package/dist/primitives/PhoneInput/PhoneInput.js +22 -0
- package/dist/primitives/ProgressBar/ProgressBar.cjs +1 -0
- package/dist/primitives/ProgressBar/ProgressBar.js +32 -0
- package/dist/primitives/ProgressBar/ProgressBar.module.css.cjs +1 -0
- package/dist/primitives/ProgressBar/ProgressBar.module.css.js +18 -0
- package/dist/primitives/RadioButton/RadioButton.cjs +1 -0
- package/dist/primitives/RadioButton/RadioButton.js +22 -0
- package/dist/primitives/RadioButton/RadioButton.module.css.cjs +1 -0
- package/dist/primitives/RadioButton/RadioButton.module.css.js +9 -0
- package/dist/primitives/SearchInput/SearchInput.cjs +1 -0
- package/dist/primitives/SearchInput/SearchInput.js +22 -0
- package/dist/primitives/Select/Select.cjs +1 -0
- package/dist/primitives/Select/Select.js +25 -0
- package/dist/primitives/Select/Select.module.css.cjs +1 -0
- package/dist/primitives/Select/Select.module.css.js +11 -0
- package/dist/primitives/Skeleton/Skeleton.cjs +1 -0
- package/dist/primitives/Skeleton/Skeleton.js +43 -0
- package/dist/primitives/Skeleton/Skeleton.module.css.cjs +1 -0
- package/dist/primitives/Skeleton/Skeleton.module.css.js +11 -0
- package/dist/primitives/Spinner/Spinner.cjs +1 -0
- package/dist/primitives/Spinner/Spinner.js +24 -0
- package/dist/primitives/Spinner/Spinner.module.css.cjs +1 -0
- package/dist/primitives/Spinner/Spinner.module.css.js +11 -0
- package/dist/primitives/Tabs/Tabs.cjs +1 -0
- package/dist/primitives/Tabs/Tabs.js +110 -0
- package/dist/primitives/Tabs/Tabs.module.css.cjs +1 -0
- package/dist/primitives/Tabs/Tabs.module.css.js +9 -0
- package/dist/primitives/Text/Text.cjs +1 -0
- package/dist/primitives/Text/Text.js +21 -0
- package/dist/primitives/Text/Text.module.css.cjs +1 -0
- package/dist/primitives/Text/Text.module.css.js +20 -0
- package/dist/primitives/TextArea/TextArea.cjs +1 -0
- package/dist/primitives/TextArea/TextArea.js +32 -0
- package/dist/primitives/TextArea/TextArea.module.css.cjs +1 -0
- package/dist/primitives/TextArea/TextArea.module.css.js +11 -0
- package/dist/primitives/TextInput/TextInput.cjs +1 -0
- package/dist/primitives/TextInput/TextInput.js +22 -0
- package/dist/primitives/TextInput/TextInput.module.css.cjs +1 -0
- package/dist/primitives/TextInput/TextInput.module.css.js +10 -0
- package/dist/primitives/Toast/Toast.cjs +1 -0
- package/dist/primitives/Toast/Toast.js +178 -0
- package/dist/primitives/Toast/Toast.module.css.cjs +1 -0
- package/dist/primitives/Toast/Toast.module.css.js +14 -0
- package/dist/primitives/Toggle/Toggle.cjs +1 -0
- package/dist/primitives/Toggle/Toggle.js +26 -0
- package/dist/primitives/Toggle/Toggle.module.css.cjs +1 -0
- package/dist/primitives/Toggle/Toggle.module.css.js +12 -0
- package/dist/primitives/Tooltip/Tooltip.cjs +1 -0
- package/dist/primitives/Tooltip/Tooltip.js +95 -0
- package/dist/primitives/Tooltip/Tooltip.module.css.cjs +1 -0
- package/dist/primitives/Tooltip/Tooltip.module.css.js +11 -0
- package/package.json +4 -14
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import e from "./Heading.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/Heading/Heading.tsx
|
|
5
|
+
var r = {
|
|
6
|
+
1: "xl",
|
|
7
|
+
2: "lg",
|
|
8
|
+
3: "md",
|
|
9
|
+
4: "sm",
|
|
10
|
+
5: "xs",
|
|
11
|
+
6: "xs"
|
|
12
|
+
}, i = t(({ level: t, size: i, color: a = "default", className: o, children: s, ...c }, l) => {
|
|
13
|
+
let u = i ?? r[t], d = {
|
|
14
|
+
ref: l,
|
|
15
|
+
className: [
|
|
16
|
+
e.heading,
|
|
17
|
+
e[u],
|
|
18
|
+
a === "default" ? "" : e[a],
|
|
19
|
+
o ?? ""
|
|
20
|
+
].filter(Boolean).join(" "),
|
|
21
|
+
...c
|
|
22
|
+
};
|
|
23
|
+
switch (t) {
|
|
24
|
+
case 1: return /* @__PURE__ */ n("h1", {
|
|
25
|
+
...d,
|
|
26
|
+
children: s
|
|
27
|
+
});
|
|
28
|
+
case 2: return /* @__PURE__ */ n("h2", {
|
|
29
|
+
...d,
|
|
30
|
+
children: s
|
|
31
|
+
});
|
|
32
|
+
case 3: return /* @__PURE__ */ n("h3", {
|
|
33
|
+
...d,
|
|
34
|
+
children: s
|
|
35
|
+
});
|
|
36
|
+
case 4: return /* @__PURE__ */ n("h4", {
|
|
37
|
+
...d,
|
|
38
|
+
children: s
|
|
39
|
+
});
|
|
40
|
+
case 5: return /* @__PURE__ */ n("h5", {
|
|
41
|
+
...d,
|
|
42
|
+
children: s
|
|
43
|
+
});
|
|
44
|
+
case 6: return /* @__PURE__ */ n("h6", {
|
|
45
|
+
...d,
|
|
46
|
+
children: s
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
i.displayName = "Heading";
|
|
51
|
+
//#endregion
|
|
52
|
+
export { i as Heading };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_heading_1lqf4_1`,t=`_xl_1lqf4_13`,n=`_lg_1lqf4_16`,r=`_md_1lqf4_19`,i=`_sm_1lqf4_22`,a=`_xs_1lqf4_25`,o=`_muted_1lqf4_29`,s=`_inherit_1lqf4_30`,c={heading:e,xl:t,lg:n,md:r,sm:i,xs:a,muted:o,inherit:s};exports.default=c,exports.heading=e,exports.inherit=s,exports.lg=n,exports.md=r,exports.muted=o,exports.sm=i,exports.xl=t,exports.xs=a;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/primitives/Heading/Heading.module.css
|
|
2
|
+
var e = "_heading_1lqf4_1", t = "_xl_1lqf4_13", n = "_lg_1lqf4_16", r = "_md_1lqf4_19", i = "_sm_1lqf4_22", a = "_xs_1lqf4_25", o = "_muted_1lqf4_29", s = "_inherit_1lqf4_30", c = {
|
|
3
|
+
heading: e,
|
|
4
|
+
xl: t,
|
|
5
|
+
lg: n,
|
|
6
|
+
md: r,
|
|
7
|
+
sm: i,
|
|
8
|
+
xs: a,
|
|
9
|
+
muted: o,
|
|
10
|
+
inherit: s
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { c as default, e as heading, s as inherit, n as lg, r as md, o as muted, i as sm, t as xl, a as xs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Hint.module.css.cjs");let t=require("react/jsx-runtime");function n({children:n,className:r,...i}){return(0,t.jsx)(`span`,{className:[e.default.hint,r??``].filter(Boolean).join(` `),...i,children:n})}n.displayName=`Hint`,exports.Hint=n;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "./Hint.module.css.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/primitives/Hint/Hint.tsx
|
|
4
|
+
function n({ children: n, className: r, ...i }) {
|
|
5
|
+
return /* @__PURE__ */ t("span", {
|
|
6
|
+
className: [e.hint, r ?? ""].filter(Boolean).join(" "),
|
|
7
|
+
...i,
|
|
8
|
+
children: n
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
n.displayName = "Hint";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as Hint };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_hint_pqi9h_1`,t={hint:e};exports.default=t,exports.hint=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Label.module.css.cjs");let t=require("react/jsx-runtime");function n({required:n,disabled:r,children:i,className:a,...o}){let s=[e.default.label,r?e.default.disabled:``,a??``].filter(Boolean).join(` `);return(0,t.jsxs)(`label`,{className:s,...o,children:[i,n&&(0,t.jsx)(`span`,{className:e.default.required,"aria-hidden":`true`,children:`*`})]})}n.displayName=`Label`,exports.Label=n;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "./Label.module.css.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/primitives/Label/Label.tsx
|
|
4
|
+
function r({ required: r, disabled: i, children: a, className: o, ...s }) {
|
|
5
|
+
let c = [
|
|
6
|
+
e.label,
|
|
7
|
+
i ? e.disabled : "",
|
|
8
|
+
o ?? ""
|
|
9
|
+
].filter(Boolean).join(" ");
|
|
10
|
+
return /* @__PURE__ */ n("label", {
|
|
11
|
+
className: c,
|
|
12
|
+
...s,
|
|
13
|
+
children: [a, r && /* @__PURE__ */ t("span", {
|
|
14
|
+
className: e.required,
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
children: "*"
|
|
17
|
+
})]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
r.displayName = "Label";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as Label };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_label_1vrme_1`,t=`_disabled_1vrme_15`,n=`_required_1vrme_19`,r={label:e,disabled:t,required:n};exports.default=r,exports.disabled=t,exports.label=e,exports.required=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Modal.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime"),r=require("react-dom");function i({children:t,titleId:r,onClose:i,closeLabel:a}){return(0,n.jsxs)(`div`,{className:e.default.header,children:[(0,n.jsx)(`h2`,{id:r,className:e.default.title,children:t}),(0,n.jsx)(`button`,{type:`button`,"aria-label":a,className:e.default.closeButton,onClick:i,children:(0,n.jsx)(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M12 4L4 12M4 4l8 8`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})})})]})}function a({children:t,id:r}){return(0,n.jsx)(`div`,{className:e.default.body,id:r,children:t})}a.displayName=`ModalBody`;function o({children:t}){return(0,n.jsx)(`div`,{className:e.default.footer,children:t})}o.displayName=`ModalFooter`;var s=[`a[href]`,`button:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex="-1"])`].join(`, `),c=(0,t.forwardRef)(function({open:a,onClose:o,title:c,children:l,"aria-describedby":u,size:d=`md`,closeLabel:f=`Close`},p){let m=(0,t.useId)(),h=(0,t.useRef)(null),g=(0,t.useRef)(null),_=(0,t.useCallback)(e=>{h.current=e,typeof p==`function`?p(e):p&&(p.current=e)},[p]);(0,t.useEffect)(()=>{if(a){g.current=document.activeElement,document.body.style.overflow=`hidden`;let e=h.current;if(!e)return;(e.querySelectorAll(s)[0]??e).focus()}else document.body.style.overflow=``,g.current?.focus();return()=>{document.body.style.overflow=``}},[a]);let v=(0,t.useCallback)(e=>{if(e.key===`Escape`){e.preventDefault(),o();return}if(e.key!==`Tab`)return;let t=h.current;if(!t)return;let n=Array.from(t.querySelectorAll(s));if(n.length===0)return;let r=n[0],i=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),r.focus())},[o]),y=(0,t.useCallback)(e=>{e.target===h.current&&o()},[o]);if(!a)return null;let b=(0,n.jsx)(`dialog`,{ref:_,role:`dialog`,"aria-modal":`true`,"aria-labelledby":m,"aria-describedby":u,open:!0,className:[e.default.dialog,e.default[d]].join(` `),onKeyDown:v,onClick:y,children:(0,n.jsxs)(`div`,{className:e.default.panel,children:[(0,n.jsx)(i,{titleId:m,onClose:o,closeLabel:f,children:c}),l]})});return(0,r.createPortal)(b,document.body)});c.displayName=`Modal`,exports.Modal=c,exports.ModalBody=a,exports.ModalFooter=o;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import e from "./Modal.module.css.js";
|
|
2
|
+
import { forwardRef as t, useCallback as n, useEffect as r, useId as i, useRef as a } from "react";
|
|
3
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
import { createPortal as c } from "react-dom";
|
|
5
|
+
//#region src/primitives/Modal/Modal.tsx
|
|
6
|
+
function l({ children: t, titleId: n, onClose: r, closeLabel: i }) {
|
|
7
|
+
return /* @__PURE__ */ s("div", {
|
|
8
|
+
className: e.header,
|
|
9
|
+
children: [/* @__PURE__ */ o("h2", {
|
|
10
|
+
id: n,
|
|
11
|
+
className: e.title,
|
|
12
|
+
children: t
|
|
13
|
+
}), /* @__PURE__ */ o("button", {
|
|
14
|
+
type: "button",
|
|
15
|
+
"aria-label": i,
|
|
16
|
+
className: e.closeButton,
|
|
17
|
+
onClick: r,
|
|
18
|
+
children: /* @__PURE__ */ o("svg", {
|
|
19
|
+
width: "16",
|
|
20
|
+
height: "16",
|
|
21
|
+
viewBox: "0 0 16 16",
|
|
22
|
+
fill: "none",
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
children: /* @__PURE__ */ o("path", {
|
|
25
|
+
d: "M12 4L4 12M4 4l8 8",
|
|
26
|
+
stroke: "currentColor",
|
|
27
|
+
strokeWidth: "1.5",
|
|
28
|
+
strokeLinecap: "round"
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function u({ children: t, id: n }) {
|
|
35
|
+
return /* @__PURE__ */ o("div", {
|
|
36
|
+
className: e.body,
|
|
37
|
+
id: n,
|
|
38
|
+
children: t
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
u.displayName = "ModalBody";
|
|
42
|
+
function d({ children: t }) {
|
|
43
|
+
return /* @__PURE__ */ o("div", {
|
|
44
|
+
className: e.footer,
|
|
45
|
+
children: t
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
d.displayName = "ModalFooter";
|
|
49
|
+
var f = [
|
|
50
|
+
"a[href]",
|
|
51
|
+
"button:not([disabled])",
|
|
52
|
+
"input:not([disabled])",
|
|
53
|
+
"select:not([disabled])",
|
|
54
|
+
"textarea:not([disabled])",
|
|
55
|
+
"[tabindex]:not([tabindex=\"-1\"])"
|
|
56
|
+
].join(", "), p = t(function({ open: t, onClose: u, title: d, children: p, "aria-describedby": m, size: h = "md", closeLabel: g = "Close" }, _) {
|
|
57
|
+
let v = i(), y = a(null), b = a(null), x = n((e) => {
|
|
58
|
+
y.current = e, typeof _ == "function" ? _(e) : _ && (_.current = e);
|
|
59
|
+
}, [_]);
|
|
60
|
+
r(() => {
|
|
61
|
+
if (t) {
|
|
62
|
+
b.current = document.activeElement, document.body.style.overflow = "hidden";
|
|
63
|
+
let e = y.current;
|
|
64
|
+
if (!e) return;
|
|
65
|
+
(e.querySelectorAll(f)[0] ?? e).focus();
|
|
66
|
+
} else document.body.style.overflow = "", b.current?.focus();
|
|
67
|
+
return () => {
|
|
68
|
+
document.body.style.overflow = "";
|
|
69
|
+
};
|
|
70
|
+
}, [t]);
|
|
71
|
+
let S = n((e) => {
|
|
72
|
+
if (e.key === "Escape") {
|
|
73
|
+
e.preventDefault(), u();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (e.key !== "Tab") return;
|
|
77
|
+
let t = y.current;
|
|
78
|
+
if (!t) return;
|
|
79
|
+
let n = Array.from(t.querySelectorAll(f));
|
|
80
|
+
if (n.length === 0) return;
|
|
81
|
+
let r = n[0], i = n[n.length - 1];
|
|
82
|
+
e.shiftKey ? document.activeElement === r && (e.preventDefault(), i.focus()) : document.activeElement === i && (e.preventDefault(), r.focus());
|
|
83
|
+
}, [u]), C = n((e) => {
|
|
84
|
+
e.target === y.current && u();
|
|
85
|
+
}, [u]);
|
|
86
|
+
if (!t) return null;
|
|
87
|
+
let w = /* @__PURE__ */ o("dialog", {
|
|
88
|
+
ref: x,
|
|
89
|
+
role: "dialog",
|
|
90
|
+
"aria-modal": "true",
|
|
91
|
+
"aria-labelledby": v,
|
|
92
|
+
"aria-describedby": m,
|
|
93
|
+
open: !0,
|
|
94
|
+
className: [e.dialog, e[h]].join(" "),
|
|
95
|
+
onKeyDown: S,
|
|
96
|
+
onClick: C,
|
|
97
|
+
children: /* @__PURE__ */ s("div", {
|
|
98
|
+
className: e.panel,
|
|
99
|
+
children: [/* @__PURE__ */ o(l, {
|
|
100
|
+
titleId: v,
|
|
101
|
+
onClose: u,
|
|
102
|
+
closeLabel: g,
|
|
103
|
+
children: d
|
|
104
|
+
}), p]
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
return c(w, document.body);
|
|
108
|
+
});
|
|
109
|
+
p.displayName = "Modal";
|
|
110
|
+
//#endregion
|
|
111
|
+
export { p as Modal, u as ModalBody, d as ModalFooter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_dialog_5uqyu_1`,t=`_panel_5uqyu_23`,n=`_sm_5uqyu_36`,r=`_md_5uqyu_41`,i=`_lg_5uqyu_46`,a=`_header_5uqyu_55`,o=`_title_5uqyu_64`,s=`_closeButton_5uqyu_73`,c=`_body_5uqyu_99`,l=`_footer_5uqyu_108`,u={dialog:e,panel:t,sm:n,md:r,lg:i,header:a,title:o,closeButton:s,body:c,footer:l};exports.body=c,exports.closeButton=s,exports.default=u,exports.dialog=e,exports.footer=l,exports.header=a,exports.lg=i,exports.md=r,exports.panel=t,exports.sm=n,exports.title=o;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/primitives/Modal/Modal.module.css
|
|
2
|
+
var e = "_dialog_5uqyu_1", t = "_panel_5uqyu_23", n = "_sm_5uqyu_36", r = "_md_5uqyu_41", i = "_lg_5uqyu_46", a = "_header_5uqyu_55", o = "_title_5uqyu_64", s = "_closeButton_5uqyu_73", c = "_body_5uqyu_99", l = "_footer_5uqyu_108", u = {
|
|
3
|
+
dialog: e,
|
|
4
|
+
panel: t,
|
|
5
|
+
sm: n,
|
|
6
|
+
md: r,
|
|
7
|
+
lg: i,
|
|
8
|
+
header: a,
|
|
9
|
+
title: o,
|
|
10
|
+
closeButton: s,
|
|
11
|
+
body: c,
|
|
12
|
+
footer: l
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { c as body, s as closeButton, u as default, e as dialog, l as footer, a as header, i as lg, r as md, t as panel, n as sm, o as title };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../TextInput/TextInput.module.css.cjs"),t=require("./NumberInput.module.css.cjs");let n=require("react"),r=require("react/jsx-runtime");var i=(0,n.forwardRef)(({hasError:n=!1,size:i=`md`,min:a,max:o,step:s,className:c,...l},u)=>{let d=[e.default.input,e.default[i],n?e.default.error:``,t.default.numberInput,c??``].filter(Boolean).join(` `);return(0,r.jsx)(`input`,{ref:u,type:`number`,min:a,max:o,step:s,"aria-invalid":n||void 0,className:d,...l})});i.displayName=`NumberInput`,exports.NumberInput=i;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import e from "../TextInput/TextInput.module.css.js";
|
|
2
|
+
import t from "./NumberInput.module.css.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/primitives/NumberInput/NumberInput.tsx
|
|
6
|
+
var i = n(({ hasError: n = !1, size: i = "md", min: a, max: o, step: s, className: c, ...l }, u) => {
|
|
7
|
+
let d = [
|
|
8
|
+
e.input,
|
|
9
|
+
e[i],
|
|
10
|
+
n ? e.error : "",
|
|
11
|
+
t.numberInput,
|
|
12
|
+
c ?? ""
|
|
13
|
+
].filter(Boolean).join(" ");
|
|
14
|
+
return /* @__PURE__ */ r("input", {
|
|
15
|
+
ref: u,
|
|
16
|
+
type: "number",
|
|
17
|
+
min: a,
|
|
18
|
+
max: o,
|
|
19
|
+
step: s,
|
|
20
|
+
"aria-invalid": n || void 0,
|
|
21
|
+
className: d,
|
|
22
|
+
...l
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
i.displayName = "NumberInput";
|
|
26
|
+
//#endregion
|
|
27
|
+
export { i as NumberInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_numberInput_1wkbh_2`,t={numberInput:e};exports.default=t,exports.numberInput=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./PasswordInput.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z`}),(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]}),i=()=>(0,n.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,n.jsx)(`path`,{d:`M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19`}),(0,n.jsx)(`line`,{x1:`1`,y1:`1`,x2:`23`,y2:`23`})]}),a=(0,t.forwardRef)(({hasError:a=!1,size:o=`md`,disabled:s=!1,showPasswordLabel:c=`Show password`,hidePasswordLabel:l=`Hide password`,className:u,...d},f)=>{let[p,m]=(0,t.useState)(!1),h=(0,t.useRef)(null),g=(0,t.useCallback)(e=>{h.current=e,typeof f==`function`?f(e):f&&(f.current=e)},[f]),_=()=>{m(e=>!e),h.current?.focus()},v=[e.default.root,e.default[o],u??``].filter(Boolean).join(` `),y=[e.default.input,a?e.default.error:``].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{className:v,children:[(0,n.jsx)(`input`,{ref:g,type:p?`text`:`password`,"aria-invalid":a||void 0,disabled:s,className:y,...d}),(0,n.jsx)(`button`,{type:`button`,className:e.default.toggle,"aria-label":p?l:c,"aria-pressed":p,onClick:_,disabled:s,tabIndex:s?-1:void 0,children:p?(0,n.jsx)(i,{}):(0,n.jsx)(r,{})})]})});a.displayName=`PasswordInput`,exports.PasswordInput=a;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import e from "./PasswordInput.module.css.js";
|
|
2
|
+
import { forwardRef as t, useCallback as n, useRef as r, useState as i } from "react";
|
|
3
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/PasswordInput/PasswordInput.tsx
|
|
5
|
+
var s = () => /* @__PURE__ */ o("svg", {
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "none",
|
|
8
|
+
stroke: "currentColor",
|
|
9
|
+
strokeWidth: "2",
|
|
10
|
+
strokeLinecap: "round",
|
|
11
|
+
strokeLinejoin: "round",
|
|
12
|
+
"aria-hidden": "true",
|
|
13
|
+
children: [/* @__PURE__ */ a("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }), /* @__PURE__ */ a("circle", {
|
|
14
|
+
cx: "12",
|
|
15
|
+
cy: "12",
|
|
16
|
+
r: "3"
|
|
17
|
+
})]
|
|
18
|
+
}), c = () => /* @__PURE__ */ o("svg", {
|
|
19
|
+
viewBox: "0 0 24 24",
|
|
20
|
+
fill: "none",
|
|
21
|
+
stroke: "currentColor",
|
|
22
|
+
strokeWidth: "2",
|
|
23
|
+
strokeLinecap: "round",
|
|
24
|
+
strokeLinejoin: "round",
|
|
25
|
+
"aria-hidden": "true",
|
|
26
|
+
children: [/* @__PURE__ */ a("path", { d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19" }), /* @__PURE__ */ a("line", {
|
|
27
|
+
x1: "1",
|
|
28
|
+
y1: "1",
|
|
29
|
+
x2: "23",
|
|
30
|
+
y2: "23"
|
|
31
|
+
})]
|
|
32
|
+
}), l = t(({ hasError: t = !1, size: l = "md", disabled: u = !1, showPasswordLabel: d = "Show password", hidePasswordLabel: f = "Hide password", className: p, ...m }, h) => {
|
|
33
|
+
let [g, _] = i(!1), v = r(null), y = n((e) => {
|
|
34
|
+
v.current = e, typeof h == "function" ? h(e) : h && (h.current = e);
|
|
35
|
+
}, [h]), b = () => {
|
|
36
|
+
_((e) => !e), v.current?.focus();
|
|
37
|
+
}, x = [
|
|
38
|
+
e.root,
|
|
39
|
+
e[l],
|
|
40
|
+
p ?? ""
|
|
41
|
+
].filter(Boolean).join(" "), S = [e.input, t ? e.error : ""].filter(Boolean).join(" ");
|
|
42
|
+
return /* @__PURE__ */ o("div", {
|
|
43
|
+
className: x,
|
|
44
|
+
children: [/* @__PURE__ */ a("input", {
|
|
45
|
+
ref: y,
|
|
46
|
+
type: g ? "text" : "password",
|
|
47
|
+
"aria-invalid": t || void 0,
|
|
48
|
+
disabled: u,
|
|
49
|
+
className: S,
|
|
50
|
+
...m
|
|
51
|
+
}), /* @__PURE__ */ a("button", {
|
|
52
|
+
type: "button",
|
|
53
|
+
className: e.toggle,
|
|
54
|
+
"aria-label": g ? f : d,
|
|
55
|
+
"aria-pressed": g,
|
|
56
|
+
onClick: b,
|
|
57
|
+
disabled: u,
|
|
58
|
+
tabIndex: u ? -1 : void 0,
|
|
59
|
+
children: a(g ? c : s, {})
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
l.displayName = "PasswordInput";
|
|
64
|
+
//#endregion
|
|
65
|
+
export { l as PasswordInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_root_1erf6_3`,t=`_input_1erf6_15`,n=`_error_1erf6_55`,r=`_toggle_1erf6_80`,i=`_sm_1erf6_126`,a=`_md_1erf6_137`,o=`_lg_1erf6_143`,s={root:e,input:t,error:n,toggle:r,sm:i,md:a,lg:o};exports.default=s,exports.error=n,exports.input=t,exports.lg=o,exports.md=a,exports.root=e,exports.sm=i,exports.toggle=r;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/primitives/PasswordInput/PasswordInput.module.css
|
|
2
|
+
var e = "_root_1erf6_3", t = "_input_1erf6_15", n = "_error_1erf6_55", r = "_toggle_1erf6_80", i = "_sm_1erf6_126", a = "_md_1erf6_137", o = "_lg_1erf6_143", s = {
|
|
3
|
+
root: e,
|
|
4
|
+
input: t,
|
|
5
|
+
error: n,
|
|
6
|
+
toggle: r,
|
|
7
|
+
sm: i,
|
|
8
|
+
md: a,
|
|
9
|
+
lg: o
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { s as default, n as error, t as input, o as lg, a as md, e as root, i as sm, r as toggle };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../TextInput/TextInput.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(({hasError:t=!1,size:r=`md`,className:i,...a},o)=>{let s=[e.default.input,e.default[r],t?e.default.error:``,i??``].filter(Boolean).join(` `);return(0,n.jsx)(`input`,{ref:o,type:`tel`,"aria-invalid":t||void 0,className:s,...a})});r.displayName=`PhoneInput`,exports.PhoneInput=r;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "../TextInput/TextInput.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/PhoneInput/PhoneInput.tsx
|
|
5
|
+
var r = t(({ hasError: t = !1, size: r = "md", className: i, ...a }, o) => {
|
|
6
|
+
let s = [
|
|
7
|
+
e.input,
|
|
8
|
+
e[r],
|
|
9
|
+
t ? e.error : "",
|
|
10
|
+
i ?? ""
|
|
11
|
+
].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ n("input", {
|
|
13
|
+
ref: o,
|
|
14
|
+
type: "tel",
|
|
15
|
+
"aria-invalid": t || void 0,
|
|
16
|
+
className: s,
|
|
17
|
+
...a
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
r.displayName = "PhoneInput";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as PhoneInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./ProgressBar.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");function r(e,t,n){return Math.min(Math.max(e,t),n)}var i=(0,t.forwardRef)(({label:t,value:i,variant:a=`default`,size:o=`md`,className:s,...c},l)=>{let u=i===void 0,d=u?void 0:r(i,0,100),f=[e.default.track,e.default[o],e.default[a],s??``].filter(Boolean).join(` `),p=[e.default.fill,u?e.default.indeterminate:``].filter(Boolean).join(` `);return(0,n.jsx)(`div`,{ref:l,role:`progressbar`,"aria-label":t,"aria-valuenow":d,"aria-valuemin":u?void 0:0,"aria-valuemax":u?void 0:100,className:f,...c,children:(0,n.jsx)(`div`,{className:p,style:d===void 0?void 0:{width:`${d}%`}})})});i.displayName=`ProgressBar`,exports.ProgressBar=i;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import e from "./ProgressBar.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/ProgressBar/ProgressBar.tsx
|
|
5
|
+
function r(e, t, n) {
|
|
6
|
+
return Math.min(Math.max(e, t), n);
|
|
7
|
+
}
|
|
8
|
+
var i = t(({ label: t, value: i, variant: a = "default", size: o = "md", className: s, ...c }, l) => {
|
|
9
|
+
let u = i === void 0, d = u ? void 0 : r(i, 0, 100), f = [
|
|
10
|
+
e.track,
|
|
11
|
+
e[o],
|
|
12
|
+
e[a],
|
|
13
|
+
s ?? ""
|
|
14
|
+
].filter(Boolean).join(" "), p = [e.fill, u ? e.indeterminate : ""].filter(Boolean).join(" ");
|
|
15
|
+
return /* @__PURE__ */ n("div", {
|
|
16
|
+
ref: l,
|
|
17
|
+
role: "progressbar",
|
|
18
|
+
"aria-label": t,
|
|
19
|
+
"aria-valuenow": d,
|
|
20
|
+
"aria-valuemin": u ? void 0 : 0,
|
|
21
|
+
"aria-valuemax": u ? void 0 : 100,
|
|
22
|
+
className: f,
|
|
23
|
+
...c,
|
|
24
|
+
children: /* @__PURE__ */ n("div", {
|
|
25
|
+
className: p,
|
|
26
|
+
style: d === void 0 ? void 0 : { width: `${d}%` }
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
i.displayName = "ProgressBar";
|
|
31
|
+
//#endregion
|
|
32
|
+
export { i as ProgressBar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_track_15xhr_3`,t=`_sm_15xhr_13`,n=`_md_15xhr_14`,r=`_lg_15xhr_15`,i=`_fill_15xhr_19`,a=`_accent_15xhr_28`,o=`_success_15xhr_29`,s=`_error_15xhr_30`,c=`_warning_15xhr_31`,l=`_indeterminate_15xhr_35`,u={track:e,sm:t,md:n,lg:r,fill:i,default:`_default_15xhr_27`,accent:a,success:o,error:s,warning:c,indeterminate:l,"ds-progress-slide":`_ds-progress-slide_15xhr_1`,"ds-progress-pulse":`_ds-progress-pulse_15xhr_1`};exports.accent=a,exports.default=u,exports.error=s,exports.fill=i,exports.indeterminate=l,exports.lg=r,exports.md=n,exports.sm=t,exports.success=o,exports.track=e,exports.warning=c;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/primitives/ProgressBar/ProgressBar.module.css
|
|
2
|
+
var e = "_track_15xhr_3", t = "_sm_15xhr_13", n = "_md_15xhr_14", r = "_lg_15xhr_15", i = "_fill_15xhr_19", a = "_accent_15xhr_28", o = "_success_15xhr_29", s = "_error_15xhr_30", c = "_warning_15xhr_31", l = "_indeterminate_15xhr_35", u = {
|
|
3
|
+
track: e,
|
|
4
|
+
sm: t,
|
|
5
|
+
md: n,
|
|
6
|
+
lg: r,
|
|
7
|
+
fill: i,
|
|
8
|
+
default: "_default_15xhr_27",
|
|
9
|
+
accent: a,
|
|
10
|
+
success: o,
|
|
11
|
+
error: s,
|
|
12
|
+
warning: c,
|
|
13
|
+
indeterminate: l,
|
|
14
|
+
"ds-progress-slide": "_ds-progress-slide_15xhr_1",
|
|
15
|
+
"ds-progress-pulse": "_ds-progress-pulse_15xhr_1"
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { a as accent, u as default, s as error, i as fill, l as indeterminate, r as lg, n as md, t as sm, o as success, e as track, c as warning };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./RadioButton.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(({hasError:t=!1,size:r=`md`,className:i,...a},o)=>{let s=[e.default.radio,r===`md`?``:e.default[r],t?e.default.error:``,i??``].filter(Boolean).join(` `);return(0,n.jsx)(`input`,{ref:o,type:`radio`,"aria-invalid":t||void 0,className:s,...a})});r.displayName=`RadioButton`,exports.RadioButton=r;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "./RadioButton.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/RadioButton/RadioButton.tsx
|
|
5
|
+
var r = t(({ hasError: t = !1, size: r = "md", className: i, ...a }, o) => {
|
|
6
|
+
let s = [
|
|
7
|
+
e.radio,
|
|
8
|
+
r === "md" ? "" : e[r],
|
|
9
|
+
t ? e.error : "",
|
|
10
|
+
i ?? ""
|
|
11
|
+
].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ n("input", {
|
|
13
|
+
ref: o,
|
|
14
|
+
type: "radio",
|
|
15
|
+
"aria-invalid": t || void 0,
|
|
16
|
+
className: s,
|
|
17
|
+
...a
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
r.displayName = "RadioButton";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as RadioButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_radio_v17m3_1`,t=`_error_v17m3_70`,n=`_sm_v17m3_93`,r=`_lg_v17m3_103`,i={radio:e,error:t,sm:n,lg:r};exports.default=i,exports.error=t,exports.lg=r,exports.radio=e,exports.sm=n;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/primitives/RadioButton/RadioButton.module.css
|
|
2
|
+
var e = "_radio_v17m3_1", t = "_error_v17m3_70", n = "_sm_v17m3_93", r = "_lg_v17m3_103", i = {
|
|
3
|
+
radio: e,
|
|
4
|
+
error: t,
|
|
5
|
+
sm: n,
|
|
6
|
+
lg: r
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { i as default, t as error, r as lg, e as radio, n as sm };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../TextInput/TextInput.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(({hasError:t=!1,size:r=`md`,className:i,...a},o)=>{let s=[e.default.input,e.default[r],t?e.default.error:``,i??``].filter(Boolean).join(` `);return(0,n.jsx)(`input`,{ref:o,type:`search`,"aria-invalid":t||void 0,className:s,...a})});r.displayName=`SearchInput`,exports.SearchInput=r;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "../TextInput/TextInput.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/SearchInput/SearchInput.tsx
|
|
5
|
+
var r = t(({ hasError: t = !1, size: r = "md", className: i, ...a }, o) => {
|
|
6
|
+
let s = [
|
|
7
|
+
e.input,
|
|
8
|
+
e[r],
|
|
9
|
+
t ? e.error : "",
|
|
10
|
+
i ?? ""
|
|
11
|
+
].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ n("input", {
|
|
13
|
+
ref: o,
|
|
14
|
+
type: "search",
|
|
15
|
+
"aria-invalid": t || void 0,
|
|
16
|
+
className: s,
|
|
17
|
+
...a
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
r.displayName = "SearchInput";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as SearchInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Select.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(({hasError:t=!1,size:r=`md`,className:i,children:a,...o},s)=>{let c=[e.default.wrapper,e.default[r],t?e.default.error:``,i??``].filter(Boolean).join(` `);return(0,n.jsx)(`div`,{className:c,children:(0,n.jsx)(`select`,{ref:s,"aria-invalid":t||void 0,className:e.default.select,...o,children:a})})});r.displayName=`Select`,exports.Select=r;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import e from "./Select.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/Select/Select.tsx
|
|
5
|
+
var r = t(({ hasError: t = !1, size: r = "md", className: i, children: a, ...o }, s) => {
|
|
6
|
+
let c = [
|
|
7
|
+
e.wrapper,
|
|
8
|
+
e[r],
|
|
9
|
+
t ? e.error : "",
|
|
10
|
+
i ?? ""
|
|
11
|
+
].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ n("div", {
|
|
13
|
+
className: c,
|
|
14
|
+
children: /* @__PURE__ */ n("select", {
|
|
15
|
+
ref: s,
|
|
16
|
+
"aria-invalid": t || void 0,
|
|
17
|
+
className: e.select,
|
|
18
|
+
...o,
|
|
19
|
+
children: a
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
r.displayName = "Select";
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as Select };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_wrapper_vgmp4_1`,t=`_select_vgmp4_7`,n=`_error_vgmp4_63`,r=`_sm_vgmp4_88`,i=`_md_vgmp4_96`,a=`_lg_vgmp4_104`,o={wrapper:e,select:t,error:n,sm:r,md:i,lg:a};exports.default=o,exports.error=n,exports.lg=a,exports.md=i,exports.select=t,exports.sm=r,exports.wrapper=e;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/primitives/Select/Select.module.css
|
|
2
|
+
var e = "_wrapper_vgmp4_1", t = "_select_vgmp4_7", n = "_error_vgmp4_63", r = "_sm_vgmp4_88", i = "_md_vgmp4_96", a = "_lg_vgmp4_104", o = {
|
|
3
|
+
wrapper: e,
|
|
4
|
+
select: t,
|
|
5
|
+
error: n,
|
|
6
|
+
sm: r,
|
|
7
|
+
md: i,
|
|
8
|
+
lg: a
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { o as default, n as error, a as lg, i as md, t as select, r as sm, e as wrapper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Skeleton.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");function r(e){return typeof e==`number`?`${e}px`:e}var i=(0,t.forwardRef)(({shape:t=`rect`,width:i,height:a,lines:o=1,className:s,style:c,...l},u)=>{if(t===`text`&&o>1)return(0,n.jsx)(`span`,{ref:u,"aria-hidden":`true`,className:[e.default.textGroup,s??``].filter(Boolean).join(` `),style:i?{width:r(i),...c}:c,...l,children:Array.from({length:o},(t,r)=>(0,n.jsx)(`span`,{className:e.default.skeleton,style:{width:r===o-1?`70%`:`100%`}},r))});let d=[e.default.skeleton,t===`circle`?e.default.circle:``,t===`text`?e.default.text:``,s??``].filter(Boolean).join(` `);return(0,n.jsx)(`span`,{ref:u,"aria-hidden":`true`,className:d,style:{...i!==void 0&&{width:r(i)},...a!==void 0&&{height:r(a)},...c},...l})});i.displayName=`Skeleton`,exports.Skeleton=i;
|