@aseguragonzalez/ui 1.0.4 → 1.1.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/dist/components/AppShell/AppShell.cjs +1 -0
- package/dist/components/AppShell/AppShell.d.ts +5 -0
- package/dist/components/AppShell/AppShell.js +46 -0
- package/dist/components/AppShell/AppShell.module.css.cjs +1 -0
- package/dist/components/AppShell/AppShell.module.css.js +15 -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.css +1 -1
- package/dist/index.js +64 -3653
- package/dist/patterns/AuthLayout/AuthLayout.cjs +1 -0
- package/dist/patterns/AuthLayout/AuthLayout.d.ts +6 -1
- package/dist/patterns/AuthLayout/AuthLayout.js +66 -0
- package/dist/patterns/AuthLayout/AuthLayout.module.css.cjs +1 -0
- package/dist/patterns/AuthLayout/AuthLayout.module.css.js +15 -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,51 @@
|
|
|
1
|
+
import { EmailInput as e } from "../../primitives/EmailInput/EmailInput.js";
|
|
2
|
+
import { Label as t } from "../../primitives/Label/Label.js";
|
|
3
|
+
import { Hint as n } from "../../primitives/Hint/Hint.js";
|
|
4
|
+
import { ErrorMessage as r } from "../../primitives/ErrorMessage/ErrorMessage.js";
|
|
5
|
+
import { useFieldIds as i } from "../shared/useFieldIds.js";
|
|
6
|
+
import a from "./EmailField.module.css.js";
|
|
7
|
+
import { forwardRef as o } from "react";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/EmailField/EmailField.tsx
|
|
10
|
+
var l = o(({ label: o, hint: l, error: u, size: d = "md", required: f = !1, disabled: p = !1, inputId: m, className: h, ...g }, _) => {
|
|
11
|
+
let { id: v, hintId: y, errorId: b, describedBy: x } = i({
|
|
12
|
+
inputId: m,
|
|
13
|
+
hint: l,
|
|
14
|
+
error: u
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */ c("div", {
|
|
17
|
+
className: [a.root, h ?? ""].filter(Boolean).join(" "),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ s(t, {
|
|
20
|
+
htmlFor: v,
|
|
21
|
+
required: f,
|
|
22
|
+
disabled: p,
|
|
23
|
+
children: o
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ s("div", {
|
|
26
|
+
className: a.inputWrapper,
|
|
27
|
+
children: /* @__PURE__ */ s(e, {
|
|
28
|
+
ref: _,
|
|
29
|
+
id: v,
|
|
30
|
+
size: d,
|
|
31
|
+
hasError: !!u,
|
|
32
|
+
disabled: p,
|
|
33
|
+
required: f,
|
|
34
|
+
"aria-required": f,
|
|
35
|
+
"aria-describedby": x,
|
|
36
|
+
...g
|
|
37
|
+
})
|
|
38
|
+
}),
|
|
39
|
+
u ? /* @__PURE__ */ s(r, {
|
|
40
|
+
id: b,
|
|
41
|
+
children: u
|
|
42
|
+
}) : l ? /* @__PURE__ */ s(n, {
|
|
43
|
+
id: y,
|
|
44
|
+
children: l
|
|
45
|
+
}) : null
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
l.displayName = "EmailField";
|
|
50
|
+
//#endregion
|
|
51
|
+
export { l as EmailField };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_root_123no_1`,t=`_inputWrapper_123no_7`,n={root:e,inputWrapper:t};exports.default=n,exports.inputWrapper=t,exports.root=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Grid.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r={0:`0`,1:`var(--ds-space-1)`,2:`var(--ds-space-2)`,3:`var(--ds-space-3)`,4:`var(--ds-space-4)`,5:`var(--ds-space-5)`,6:`var(--ds-space-6)`,8:`var(--ds-space-8)`,10:`var(--ds-space-10)`,12:`var(--ds-space-12)`,16:`var(--ds-space-16)`},i=(0,t.forwardRef)(({cols:t=1,gap:i=4,columnGap:a,rowGap:o,className:s,style:c,...l},u)=>{let d=typeof t!=`number`,f=d?{...t.mobile!==void 0&&{"--grid-cols-mobile":String(t.mobile)},...t.tablet!==void 0&&{"--grid-cols-tablet":String(t.tablet)},...t.desktop!==void 0&&{"--grid-cols-desktop":String(t.desktop)}}:{gridTemplateColumns:`repeat(${t}, minmax(0, 1fr))`},p=[e.default.grid,d?e.default.responsive:``,s??``].filter(Boolean).join(` `);return(0,n.jsx)(`div`,{ref:u,className:p,style:{...f,gap:r[i],...a!==void 0&&{columnGap:r[a]},...o!==void 0&&{rowGap:r[o]},...c},...l})});i.displayName=`Grid`,exports.Grid=i;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import e from "./Grid.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/Grid/Grid.tsx
|
|
5
|
+
var r = {
|
|
6
|
+
0: "0",
|
|
7
|
+
1: "var(--ds-space-1)",
|
|
8
|
+
2: "var(--ds-space-2)",
|
|
9
|
+
3: "var(--ds-space-3)",
|
|
10
|
+
4: "var(--ds-space-4)",
|
|
11
|
+
5: "var(--ds-space-5)",
|
|
12
|
+
6: "var(--ds-space-6)",
|
|
13
|
+
8: "var(--ds-space-8)",
|
|
14
|
+
10: "var(--ds-space-10)",
|
|
15
|
+
12: "var(--ds-space-12)",
|
|
16
|
+
16: "var(--ds-space-16)"
|
|
17
|
+
}, i = t(({ cols: t = 1, gap: i = 4, columnGap: a, rowGap: o, className: s, style: c, ...l }, u) => {
|
|
18
|
+
let d = typeof t != "number", f = d ? {
|
|
19
|
+
...t.mobile !== void 0 && { "--grid-cols-mobile": String(t.mobile) },
|
|
20
|
+
...t.tablet !== void 0 && { "--grid-cols-tablet": String(t.tablet) },
|
|
21
|
+
...t.desktop !== void 0 && { "--grid-cols-desktop": String(t.desktop) }
|
|
22
|
+
} : { gridTemplateColumns: `repeat(${t}, minmax(0, 1fr))` }, p = [
|
|
23
|
+
e.grid,
|
|
24
|
+
d ? e.responsive : "",
|
|
25
|
+
s ?? ""
|
|
26
|
+
].filter(Boolean).join(" ");
|
|
27
|
+
return /* @__PURE__ */ n("div", {
|
|
28
|
+
ref: u,
|
|
29
|
+
className: p,
|
|
30
|
+
style: {
|
|
31
|
+
...f,
|
|
32
|
+
gap: r[i],
|
|
33
|
+
...a !== void 0 && { columnGap: r[a] },
|
|
34
|
+
...o !== void 0 && { rowGap: r[o] },
|
|
35
|
+
...c
|
|
36
|
+
},
|
|
37
|
+
...l
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
i.displayName = "Grid";
|
|
41
|
+
//#endregion
|
|
42
|
+
export { i as Grid };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_grid_nas2v_1`,t=`_responsive_nas2v_7`,n={grid:e,responsive:t};exports.default=n,exports.grid=e,exports.responsive=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./LineChart.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=480,i=280,a={top:20,right:20,bottom:56,left:48},o=r-a.left-a.right,s=i-a.top-a.bottom,c=4;function l(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(Math.round(e))}function u(e,t){return e.color??`var(--ds-chart-${t%6+1})`}var d=(0,t.forwardRef)(({title:d,series:f,showArea:p=!1,className:m},h)=>{let g=(0,t.useId)();if(f.length===0||f.every(e=>e.data.length===0))return(0,n.jsxs)(`div`,{className:[e.default.empty,m??``].filter(Boolean).join(` `),children:[d,` — no data`]});let _=f.flatMap(e=>e.data.map(e=>e.value)),v=Math.max(..._,0),y=f[0].data.map(e=>e.label),b=y.length,x=e=>b===1?a.left+o/2:a.left+e/(b-1)*o,S=e=>a.top+s-(v>0?e/v*s:0);return(0,n.jsxs)(`div`,{ref:h,className:[e.default.wrapper,m??``].filter(Boolean).join(` `),children:[(0,n.jsxs)(`svg`,{role:`img`,"aria-labelledby":g,viewBox:`0 0 ${r} ${i}`,className:e.default.svg,children:[(0,n.jsx)(`title`,{id:g,children:d}),Array.from({length:5},(t,i)=>{let o=i/c,u=a.top+s-o*s,d=v*o;return(0,n.jsxs)(`g`,{children:[(0,n.jsx)(`line`,{x1:a.left,y1:u,x2:r-a.right,y2:u,stroke:`var(--ds-chart-grid)`,strokeWidth:`1`}),(0,n.jsx)(`text`,{x:a.left-6,y:u,textAnchor:`end`,dominantBaseline:`middle`,className:e.default.axisLabel,children:l(d)})]},i)}),f.map((e,t)=>{let r=u(e,t),i=e.showArea??p,o=e.data.map((e,t)=>`${x(t)},${S(e.value)}`).join(` `),c=`${x(0)},${a.top+s} `+o+` ${x(e.data.length-1)},${a.top+s}`;return(0,n.jsxs)(`g`,{children:[i&&(0,n.jsx)(`polygon`,{points:c,fill:r,fillOpacity:`0.12`}),(0,n.jsx)(`polyline`,{points:o,fill:`none`,stroke:r,strokeWidth:`2`,strokeLinejoin:`round`,strokeLinecap:`round`}),e.data.map((t,i)=>(0,n.jsx)(`circle`,{cx:x(i),cy:S(t.value),r:`4`,fill:r,children:(0,n.jsx)(`title`,{children:`${e.label} — ${t.label}: ${t.value}`})},t.label))]},e.id)}),y.map((t,r)=>(0,n.jsx)(`text`,{x:x(r),y:i-a.bottom+16,textAnchor:`middle`,className:e.default.axisLabel,children:t},t)),(0,n.jsx)(`line`,{x1:a.left,y1:a.top+s,x2:r-a.right,y2:a.top+s,stroke:`var(--ds-chart-axis)`,strokeWidth:`1`})]}),f.length>1&&(0,n.jsx)(`ul`,{className:e.default.legend,"aria-label":`Chart legend`,children:f.map((t,r)=>(0,n.jsxs)(`li`,{className:e.default.legendItem,children:[(0,n.jsx)(`span`,{className:e.default.legendSwatch,style:{background:u(t,r)},"aria-hidden":`true`}),(0,n.jsx)(`span`,{children:t.label})]},t.id))})]})});d.displayName=`LineChart`,exports.LineChart=d;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import e from "./LineChart.module.css.js";
|
|
2
|
+
import { forwardRef as t, useId as n } from "react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/LineChart/LineChart.tsx
|
|
5
|
+
var a = 480, o = 280, s = {
|
|
6
|
+
top: 20,
|
|
7
|
+
right: 20,
|
|
8
|
+
bottom: 56,
|
|
9
|
+
left: 48
|
|
10
|
+
}, c = a - s.left - s.right, l = o - s.top - s.bottom, u = 4;
|
|
11
|
+
function d(e) {
|
|
12
|
+
return e >= 1e6 ? `${(e / 1e6).toFixed(1)}M` : e >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(Math.round(e));
|
|
13
|
+
}
|
|
14
|
+
function f(e, t) {
|
|
15
|
+
return e.color ?? `var(--ds-chart-${t % 6 + 1})`;
|
|
16
|
+
}
|
|
17
|
+
var p = t(({ title: t, series: p, showArea: m = !1, className: h }, g) => {
|
|
18
|
+
let _ = n();
|
|
19
|
+
if (p.length === 0 || p.every((e) => e.data.length === 0)) return /* @__PURE__ */ i("div", {
|
|
20
|
+
className: [e.empty, h ?? ""].filter(Boolean).join(" "),
|
|
21
|
+
children: [t, " — no data"]
|
|
22
|
+
});
|
|
23
|
+
let v = p.flatMap((e) => e.data.map((e) => e.value)), y = Math.max(...v, 0), b = p[0].data.map((e) => e.label), x = b.length, S = (e) => x === 1 ? s.left + c / 2 : s.left + e / (x - 1) * c, C = (e) => s.top + l - (y > 0 ? e / y * l : 0);
|
|
24
|
+
return /* @__PURE__ */ i("div", {
|
|
25
|
+
ref: g,
|
|
26
|
+
className: [e.wrapper, h ?? ""].filter(Boolean).join(" "),
|
|
27
|
+
children: [/* @__PURE__ */ i("svg", {
|
|
28
|
+
role: "img",
|
|
29
|
+
"aria-labelledby": _,
|
|
30
|
+
viewBox: `0 0 ${a} ${o}`,
|
|
31
|
+
className: e.svg,
|
|
32
|
+
children: [
|
|
33
|
+
/* @__PURE__ */ r("title", {
|
|
34
|
+
id: _,
|
|
35
|
+
children: t
|
|
36
|
+
}),
|
|
37
|
+
Array.from({ length: 5 }, (t, n) => {
|
|
38
|
+
let o = n / u, c = s.top + l - o * l, f = y * o;
|
|
39
|
+
return /* @__PURE__ */ i("g", { children: [/* @__PURE__ */ r("line", {
|
|
40
|
+
x1: s.left,
|
|
41
|
+
y1: c,
|
|
42
|
+
x2: a - s.right,
|
|
43
|
+
y2: c,
|
|
44
|
+
stroke: "var(--ds-chart-grid)",
|
|
45
|
+
strokeWidth: "1"
|
|
46
|
+
}), /* @__PURE__ */ r("text", {
|
|
47
|
+
x: s.left - 6,
|
|
48
|
+
y: c,
|
|
49
|
+
textAnchor: "end",
|
|
50
|
+
dominantBaseline: "middle",
|
|
51
|
+
className: e.axisLabel,
|
|
52
|
+
children: d(f)
|
|
53
|
+
})] }, n);
|
|
54
|
+
}),
|
|
55
|
+
p.map((e, t) => {
|
|
56
|
+
let n = f(e, t), a = e.showArea ?? m, o = e.data.map((e, t) => `${S(t)},${C(e.value)}`).join(" "), c = `${S(0)},${s.top + l} ` + o + ` ${S(e.data.length - 1)},${s.top + l}`;
|
|
57
|
+
return /* @__PURE__ */ i("g", { children: [
|
|
58
|
+
a && /* @__PURE__ */ r("polygon", {
|
|
59
|
+
points: c,
|
|
60
|
+
fill: n,
|
|
61
|
+
fillOpacity: "0.12"
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ r("polyline", {
|
|
64
|
+
points: o,
|
|
65
|
+
fill: "none",
|
|
66
|
+
stroke: n,
|
|
67
|
+
strokeWidth: "2",
|
|
68
|
+
strokeLinejoin: "round",
|
|
69
|
+
strokeLinecap: "round"
|
|
70
|
+
}),
|
|
71
|
+
e.data.map((t, i) => /* @__PURE__ */ r("circle", {
|
|
72
|
+
cx: S(i),
|
|
73
|
+
cy: C(t.value),
|
|
74
|
+
r: "4",
|
|
75
|
+
fill: n,
|
|
76
|
+
children: /* @__PURE__ */ r("title", { children: `${e.label} — ${t.label}: ${t.value}` })
|
|
77
|
+
}, t.label))
|
|
78
|
+
] }, e.id);
|
|
79
|
+
}),
|
|
80
|
+
b.map((t, n) => /* @__PURE__ */ r("text", {
|
|
81
|
+
x: S(n),
|
|
82
|
+
y: o - s.bottom + 16,
|
|
83
|
+
textAnchor: "middle",
|
|
84
|
+
className: e.axisLabel,
|
|
85
|
+
children: t
|
|
86
|
+
}, t)),
|
|
87
|
+
/* @__PURE__ */ r("line", {
|
|
88
|
+
x1: s.left,
|
|
89
|
+
y1: s.top + l,
|
|
90
|
+
x2: a - s.right,
|
|
91
|
+
y2: s.top + l,
|
|
92
|
+
stroke: "var(--ds-chart-axis)",
|
|
93
|
+
strokeWidth: "1"
|
|
94
|
+
})
|
|
95
|
+
]
|
|
96
|
+
}), p.length > 1 && /* @__PURE__ */ r("ul", {
|
|
97
|
+
className: e.legend,
|
|
98
|
+
"aria-label": "Chart legend",
|
|
99
|
+
children: p.map((t, n) => /* @__PURE__ */ i("li", {
|
|
100
|
+
className: e.legendItem,
|
|
101
|
+
children: [/* @__PURE__ */ r("span", {
|
|
102
|
+
className: e.legendSwatch,
|
|
103
|
+
style: { background: f(t, n) },
|
|
104
|
+
"aria-hidden": "true"
|
|
105
|
+
}), /* @__PURE__ */ r("span", { children: t.label })]
|
|
106
|
+
}, t.id))
|
|
107
|
+
})]
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
p.displayName = "LineChart";
|
|
111
|
+
//#endregion
|
|
112
|
+
export { p as LineChart };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_wrapper_h55fh_1`,t=`_svg_h55fh_6`,n=`_axisLabel_h55fh_12`,r=`_legend_h55fh_18`,i=`_legendItem_h55fh_29`,a=`_legendSwatch_h55fh_38`,o=`_empty_h55fh_45`,s={wrapper:e,svg:t,axisLabel:n,legend:r,legendItem:i,legendSwatch:a,empty:o};exports.axisLabel=n,exports.default=s,exports.empty=o,exports.legend=r,exports.legendItem=i,exports.legendSwatch=a,exports.svg=t,exports.wrapper=e;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/LineChart/LineChart.module.css
|
|
2
|
+
var e = "_wrapper_h55fh_1", t = "_svg_h55fh_6", n = "_axisLabel_h55fh_12", r = "_legend_h55fh_18", i = "_legendItem_h55fh_29", a = "_legendSwatch_h55fh_38", o = "_empty_h55fh_45", s = {
|
|
3
|
+
wrapper: e,
|
|
4
|
+
svg: t,
|
|
5
|
+
axisLabel: n,
|
|
6
|
+
legend: r,
|
|
7
|
+
legendItem: i,
|
|
8
|
+
legendSwatch: a,
|
|
9
|
+
empty: o
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as axisLabel, s as default, o as empty, r as legend, i as legendItem, a as legendSwatch, t as svg, e as wrapper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Navbar.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=()=>(0,n.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`currentColor`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{fillRule:`evenodd`,d:`M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75ZM2 10a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 10Zm0 5.25a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z`,clipRule:`evenodd`})}),i=()=>(0,n.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`currentColor`,"aria-hidden":`true`,children:(0,n.jsx)(`path`,{d:`M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z`})}),a=(0,t.forwardRef)(({brand:a,items:o=[],actions:s,sticky:c=!1,"aria-label":l=`Main navigation`,defaultMobileOpen:u=!1,isMobileOpen:d,onMobileOpenChange:f,className:p},m)=>{let[h,g]=(0,t.useState)(u),_=d??h,v=(0,t.useId)(),y=()=>{let e=!_;d===void 0&&g(e),f?.(e)},b=()=>{d===void 0&&g(!1),f?.(!1)},x=[e.default.navbar,c?e.default.sticky:``,p??``].filter(Boolean).join(` `);return(0,n.jsxs)(`header`,{ref:m,className:x,children:[(0,n.jsxs)(`div`,{className:e.default.inner,children:[a&&(0,n.jsx)(`div`,{className:e.default.brand,children:a}),o.length>0&&(0,n.jsx)(`nav`,{className:e.default.nav,"aria-label":l,children:(0,n.jsx)(`ul`,{className:e.default.navList,children:o.map(t=>(0,n.jsx)(`li`,{className:e.default.navItem,children:(0,n.jsx)(`a`,{href:t.href,onClick:t.onClick,className:[e.default.navLink,t.isActive?e.default.navLinkActive:``].filter(Boolean).join(` `),"aria-current":t.isActive?`page`:void 0,children:t.label})},t.key))})}),s&&(0,n.jsx)(`div`,{className:e.default.actions,children:s}),(0,n.jsx)(`button`,{type:`button`,className:e.default.menuButton,onClick:y,"aria-expanded":_,"aria-controls":v,"aria-label":_?`Close menu`:`Open menu`,children:_?(0,n.jsx)(i,{}):(0,n.jsx)(r,{})})]}),(0,n.jsx)(`div`,{id:v,className:[e.default.mobileMenu,_?e.default.mobileMenuOpen:``].filter(Boolean).join(` `),children:(0,n.jsx)(`nav`,{"aria-label":`${l} — menu`,children:(0,n.jsx)(`ul`,{className:e.default.mobileNavList,children:o.map(t=>(0,n.jsx)(`li`,{className:e.default.mobileNavItem,children:(0,n.jsx)(`a`,{href:t.href,onClick:()=>{t.onClick?.(),b()},className:[e.default.mobileNavLink,t.isActive?e.default.mobileNavLinkActive:``].filter(Boolean).join(` `),"aria-current":t.isActive?`page`:void 0,children:t.label})},t.key))})})})]})});a.displayName=`Navbar`,exports.Navbar=a;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import e from "./Navbar.module.css.js";
|
|
2
|
+
import { forwardRef as t, useId as n, useState as r } from "react";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/Navbar/Navbar.tsx
|
|
5
|
+
var o = () => /* @__PURE__ */ i("svg", {
|
|
6
|
+
width: "20",
|
|
7
|
+
height: "20",
|
|
8
|
+
viewBox: "0 0 20 20",
|
|
9
|
+
fill: "currentColor",
|
|
10
|
+
"aria-hidden": "true",
|
|
11
|
+
children: /* @__PURE__ */ i("path", {
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
d: "M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75ZM2 10a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 10Zm0 5.25a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z",
|
|
14
|
+
clipRule: "evenodd"
|
|
15
|
+
})
|
|
16
|
+
}), s = () => /* @__PURE__ */ i("svg", {
|
|
17
|
+
width: "20",
|
|
18
|
+
height: "20",
|
|
19
|
+
viewBox: "0 0 20 20",
|
|
20
|
+
fill: "currentColor",
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
children: /* @__PURE__ */ i("path", { d: "M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z" })
|
|
23
|
+
}), c = t(({ brand: t, items: c = [], actions: l, sticky: u = !1, "aria-label": d = "Main navigation", defaultMobileOpen: f = !1, isMobileOpen: p, onMobileOpenChange: m, className: h }, g) => {
|
|
24
|
+
let [_, v] = r(f), y = p ?? _, b = n(), x = () => {
|
|
25
|
+
let e = !y;
|
|
26
|
+
p === void 0 && v(e), m?.(e);
|
|
27
|
+
}, S = () => {
|
|
28
|
+
p === void 0 && v(!1), m?.(!1);
|
|
29
|
+
}, C = [
|
|
30
|
+
e.navbar,
|
|
31
|
+
u ? e.sticky : "",
|
|
32
|
+
h ?? ""
|
|
33
|
+
].filter(Boolean).join(" ");
|
|
34
|
+
return /* @__PURE__ */ a("header", {
|
|
35
|
+
ref: g,
|
|
36
|
+
className: C,
|
|
37
|
+
children: [/* @__PURE__ */ a("div", {
|
|
38
|
+
className: e.inner,
|
|
39
|
+
children: [
|
|
40
|
+
t && /* @__PURE__ */ i("div", {
|
|
41
|
+
className: e.brand,
|
|
42
|
+
children: t
|
|
43
|
+
}),
|
|
44
|
+
c.length > 0 && /* @__PURE__ */ i("nav", {
|
|
45
|
+
className: e.nav,
|
|
46
|
+
"aria-label": d,
|
|
47
|
+
children: /* @__PURE__ */ i("ul", {
|
|
48
|
+
className: e.navList,
|
|
49
|
+
children: c.map((t) => /* @__PURE__ */ i("li", {
|
|
50
|
+
className: e.navItem,
|
|
51
|
+
children: /* @__PURE__ */ i("a", {
|
|
52
|
+
href: t.href,
|
|
53
|
+
onClick: t.onClick,
|
|
54
|
+
className: [e.navLink, t.isActive ? e.navLinkActive : ""].filter(Boolean).join(" "),
|
|
55
|
+
"aria-current": t.isActive ? "page" : void 0,
|
|
56
|
+
children: t.label
|
|
57
|
+
})
|
|
58
|
+
}, t.key))
|
|
59
|
+
})
|
|
60
|
+
}),
|
|
61
|
+
l && /* @__PURE__ */ i("div", {
|
|
62
|
+
className: e.actions,
|
|
63
|
+
children: l
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ i("button", {
|
|
66
|
+
type: "button",
|
|
67
|
+
className: e.menuButton,
|
|
68
|
+
onClick: x,
|
|
69
|
+
"aria-expanded": y,
|
|
70
|
+
"aria-controls": b,
|
|
71
|
+
"aria-label": y ? "Close menu" : "Open menu",
|
|
72
|
+
children: i(y ? s : o, {})
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
}), /* @__PURE__ */ i("div", {
|
|
76
|
+
id: b,
|
|
77
|
+
className: [e.mobileMenu, y ? e.mobileMenuOpen : ""].filter(Boolean).join(" "),
|
|
78
|
+
children: /* @__PURE__ */ i("nav", {
|
|
79
|
+
"aria-label": `${d} — menu`,
|
|
80
|
+
children: /* @__PURE__ */ i("ul", {
|
|
81
|
+
className: e.mobileNavList,
|
|
82
|
+
children: c.map((t) => /* @__PURE__ */ i("li", {
|
|
83
|
+
className: e.mobileNavItem,
|
|
84
|
+
children: /* @__PURE__ */ i("a", {
|
|
85
|
+
href: t.href,
|
|
86
|
+
onClick: () => {
|
|
87
|
+
t.onClick?.(), S();
|
|
88
|
+
},
|
|
89
|
+
className: [e.mobileNavLink, t.isActive ? e.mobileNavLinkActive : ""].filter(Boolean).join(" "),
|
|
90
|
+
"aria-current": t.isActive ? "page" : void 0,
|
|
91
|
+
children: t.label
|
|
92
|
+
})
|
|
93
|
+
}, t.key))
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
c.displayName = "Navbar";
|
|
100
|
+
//#endregion
|
|
101
|
+
export { c as Navbar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_navbar_1bewp_1`,t=`_sticky_1bewp_7`,n=`_inner_1bewp_12`,r=`_brand_1bewp_22`,i=`_nav_1bewp_1`,a=`_navList_1bewp_34`,o=`_navItem_1bewp_43`,s=`_navLink_1bewp_47`,c=`_navLinkActive_1bewp_72`,l=`_actions_1bewp_82`,u=`_menuButton_1bewp_90`,d=`_mobileMenu_1bewp_116`,f=`_mobileNavList_1bewp_124`,p=`_mobileNavItem_1bewp_133`,m=`_mobileNavLink_1bewp_137`,h=`_mobileNavLinkActive_1bewp_160`,g=`_mobileMenuOpen_1bewp_189`,_={navbar:e,sticky:t,inner:n,brand:r,nav:i,navList:a,navItem:o,navLink:s,navLinkActive:c,actions:l,menuButton:u,mobileMenu:d,mobileNavList:f,mobileNavItem:p,mobileNavLink:m,mobileNavLinkActive:h,mobileMenuOpen:g};exports.actions=l,exports.brand=r,exports.default=_,exports.inner=n,exports.menuButton=u,exports.mobileMenu=d,exports.mobileMenuOpen=g,exports.mobileNavItem=p,exports.mobileNavLink=m,exports.mobileNavLinkActive=h,exports.mobileNavList=f,exports.nav=i,exports.navItem=o,exports.navLink=s,exports.navLinkActive=c,exports.navList=a,exports.navbar=e,exports.sticky=t;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/components/Navbar/Navbar.module.css
|
|
2
|
+
var e = "_navbar_1bewp_1", t = "_sticky_1bewp_7", n = "_inner_1bewp_12", r = "_brand_1bewp_22", i = "_nav_1bewp_1", a = "_navList_1bewp_34", o = "_navItem_1bewp_43", s = "_navLink_1bewp_47", c = "_navLinkActive_1bewp_72", l = "_actions_1bewp_82", u = "_menuButton_1bewp_90", d = "_mobileMenu_1bewp_116", f = "_mobileNavList_1bewp_124", p = "_mobileNavItem_1bewp_133", m = "_mobileNavLink_1bewp_137", h = "_mobileNavLinkActive_1bewp_160", g = "_mobileMenuOpen_1bewp_189", _ = {
|
|
3
|
+
navbar: e,
|
|
4
|
+
sticky: t,
|
|
5
|
+
inner: n,
|
|
6
|
+
brand: r,
|
|
7
|
+
nav: i,
|
|
8
|
+
navList: a,
|
|
9
|
+
navItem: o,
|
|
10
|
+
navLink: s,
|
|
11
|
+
navLinkActive: c,
|
|
12
|
+
actions: l,
|
|
13
|
+
menuButton: u,
|
|
14
|
+
mobileMenu: d,
|
|
15
|
+
mobileNavList: f,
|
|
16
|
+
mobileNavItem: p,
|
|
17
|
+
mobileNavLink: m,
|
|
18
|
+
mobileNavLinkActive: h,
|
|
19
|
+
mobileMenuOpen: g
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { l as actions, r as brand, _ as default, n as inner, u as menuButton, d as mobileMenu, g as mobileMenuOpen, p as mobileNavItem, m as mobileNavLink, h as mobileNavLinkActive, f as mobileNavList, i as nav, o as navItem, s as navLink, c as navLinkActive, a as navList, e as navbar, t as sticky };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../primitives/NumberInput/NumberInput.cjs"),t=require("../../primitives/Label/Label.cjs"),n=require("../../primitives/Hint/Hint.cjs"),r=require("../../primitives/ErrorMessage/ErrorMessage.cjs"),i=require("../shared/useFieldIds.cjs"),a=require("./NumberField.module.css.cjs");let o=require("react"),s=require("react/jsx-runtime");var c=(0,o.forwardRef)(({label:o,hint:c,error:l,size:u=`md`,required:d=!1,disabled:f=!1,inputId:p,min:m,max:h,step:g,className:_,...v},y)=>{let{id:b,hintId:x,errorId:S,describedBy:C}=i.useFieldIds({inputId:p,hint:c,error:l});return(0,s.jsxs)(`div`,{className:[a.default.root,_??``].filter(Boolean).join(` `),children:[(0,s.jsx)(t.Label,{htmlFor:b,required:d,disabled:f,children:o}),(0,s.jsx)(`div`,{className:a.default.inputWrapper,children:(0,s.jsx)(e.NumberInput,{ref:y,id:b,size:u,hasError:!!l,disabled:f,required:d,"aria-required":d,"aria-describedby":C,min:m,max:h,step:g,...v})}),l?(0,s.jsx)(r.ErrorMessage,{id:S,children:l}):c?(0,s.jsx)(n.Hint,{id:x,children:c}):null]})});c.displayName=`NumberField`,exports.NumberField=c;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { NumberInput as e } from "../../primitives/NumberInput/NumberInput.js";
|
|
2
|
+
import { Label as t } from "../../primitives/Label/Label.js";
|
|
3
|
+
import { Hint as n } from "../../primitives/Hint/Hint.js";
|
|
4
|
+
import { ErrorMessage as r } from "../../primitives/ErrorMessage/ErrorMessage.js";
|
|
5
|
+
import { useFieldIds as i } from "../shared/useFieldIds.js";
|
|
6
|
+
import a from "./NumberField.module.css.js";
|
|
7
|
+
import { forwardRef as o } from "react";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/NumberField/NumberField.tsx
|
|
10
|
+
var l = o(({ label: o, hint: l, error: u, size: d = "md", required: f = !1, disabled: p = !1, inputId: m, min: h, max: g, step: _, className: v, ...y }, b) => {
|
|
11
|
+
let { id: x, hintId: S, errorId: C, describedBy: w } = i({
|
|
12
|
+
inputId: m,
|
|
13
|
+
hint: l,
|
|
14
|
+
error: u
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */ c("div", {
|
|
17
|
+
className: [a.root, v ?? ""].filter(Boolean).join(" "),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ s(t, {
|
|
20
|
+
htmlFor: x,
|
|
21
|
+
required: f,
|
|
22
|
+
disabled: p,
|
|
23
|
+
children: o
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ s("div", {
|
|
26
|
+
className: a.inputWrapper,
|
|
27
|
+
children: /* @__PURE__ */ s(e, {
|
|
28
|
+
ref: b,
|
|
29
|
+
id: x,
|
|
30
|
+
size: d,
|
|
31
|
+
hasError: !!u,
|
|
32
|
+
disabled: p,
|
|
33
|
+
required: f,
|
|
34
|
+
"aria-required": f,
|
|
35
|
+
"aria-describedby": w,
|
|
36
|
+
min: h,
|
|
37
|
+
max: g,
|
|
38
|
+
step: _,
|
|
39
|
+
...y
|
|
40
|
+
})
|
|
41
|
+
}),
|
|
42
|
+
u ? /* @__PURE__ */ s(r, {
|
|
43
|
+
id: C,
|
|
44
|
+
children: u
|
|
45
|
+
}) : l ? /* @__PURE__ */ s(n, {
|
|
46
|
+
id: S,
|
|
47
|
+
children: l
|
|
48
|
+
}) : null
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
l.displayName = "NumberField";
|
|
53
|
+
//#endregion
|
|
54
|
+
export { l as NumberField };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_root_123no_1`,t=`_inputWrapper_123no_7`,n={root:e,inputWrapper:t};exports.default=n,exports.inputWrapper=t,exports.root=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./PageLayout.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r={0:`0`,1:`var(--ds-space-1)`,2:`var(--ds-space-2)`,3:`var(--ds-space-3)`,4:`var(--ds-space-4)`,5:`var(--ds-space-5)`,6:`var(--ds-space-6)`,8:`var(--ds-space-8)`,10:`var(--ds-space-10)`,12:`var(--ds-space-12)`,16:`var(--ds-space-16)`},i={sm:e.default.sm,md:e.default.md,lg:e.default.lg,xl:e.default.xl,full:e.default.full},a=(0,t.forwardRef)(({maxWidth:t=`xl`,padding:a=!0,gap:o=6,className:s,style:c,...l},u)=>{let d=[e.default.pageLayout,i[t],a?e.default.padding:``,s??``].filter(Boolean).join(` `);return(0,n.jsx)(`div`,{ref:u,className:d,style:{gap:r[o],...c},...l})});a.displayName=`PageLayout`,exports.PageLayout=a;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import e from "./PageLayout.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/PageLayout/PageLayout.tsx
|
|
5
|
+
var r = {
|
|
6
|
+
0: "0",
|
|
7
|
+
1: "var(--ds-space-1)",
|
|
8
|
+
2: "var(--ds-space-2)",
|
|
9
|
+
3: "var(--ds-space-3)",
|
|
10
|
+
4: "var(--ds-space-4)",
|
|
11
|
+
5: "var(--ds-space-5)",
|
|
12
|
+
6: "var(--ds-space-6)",
|
|
13
|
+
8: "var(--ds-space-8)",
|
|
14
|
+
10: "var(--ds-space-10)",
|
|
15
|
+
12: "var(--ds-space-12)",
|
|
16
|
+
16: "var(--ds-space-16)"
|
|
17
|
+
}, i = {
|
|
18
|
+
sm: e.sm,
|
|
19
|
+
md: e.md,
|
|
20
|
+
lg: e.lg,
|
|
21
|
+
xl: e.xl,
|
|
22
|
+
full: e.full
|
|
23
|
+
}, a = t(({ maxWidth: t = "xl", padding: a = !0, gap: o = 6, className: s, style: c, ...l }, u) => {
|
|
24
|
+
let d = [
|
|
25
|
+
e.pageLayout,
|
|
26
|
+
i[t],
|
|
27
|
+
a ? e.padding : "",
|
|
28
|
+
s ?? ""
|
|
29
|
+
].filter(Boolean).join(" ");
|
|
30
|
+
return /* @__PURE__ */ n("div", {
|
|
31
|
+
ref: u,
|
|
32
|
+
className: d,
|
|
33
|
+
style: {
|
|
34
|
+
gap: r[o],
|
|
35
|
+
...c
|
|
36
|
+
},
|
|
37
|
+
...l
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
a.displayName = "PageLayout";
|
|
41
|
+
//#endregion
|
|
42
|
+
export { a as PageLayout };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_pageLayout_1d3bu_1`,t=`_padding_1d3bu_8`,n=`_sm_1d3bu_15`,r=`_md_1d3bu_16`,i=`_lg_1d3bu_17`,a=`_xl_1d3bu_18`,o=`_full_1d3bu_19`,s={pageLayout:e,padding:t,sm:n,md:r,lg:i,xl:a,full:o};exports.default=s,exports.full=o,exports.lg=i,exports.md=r,exports.padding=t,exports.pageLayout=e,exports.sm=n,exports.xl=a;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/PageLayout/PageLayout.module.css
|
|
2
|
+
var e = "_pageLayout_1d3bu_1", t = "_padding_1d3bu_8", n = "_sm_1d3bu_15", r = "_md_1d3bu_16", i = "_lg_1d3bu_17", a = "_xl_1d3bu_18", o = "_full_1d3bu_19", s = {
|
|
3
|
+
pageLayout: e,
|
|
4
|
+
padding: t,
|
|
5
|
+
sm: n,
|
|
6
|
+
md: r,
|
|
7
|
+
lg: i,
|
|
8
|
+
xl: a,
|
|
9
|
+
full: o
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { s as default, o as full, i as lg, r as md, t as padding, e as pageLayout, n as sm, a as xl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../primitives/PasswordInput/PasswordInput.cjs"),t=require("../../primitives/Label/Label.cjs"),n=require("../../primitives/Hint/Hint.cjs"),r=require("../../primitives/ErrorMessage/ErrorMessage.cjs"),i=require("../shared/useFieldIds.cjs"),a=require("./PasswordField.module.css.cjs");let o=require("react"),s=require("react/jsx-runtime");var c=(0,o.forwardRef)(({label:o,hint:c,error:l,size:u=`md`,required:d=!1,disabled:f=!1,showPasswordLabel:p,hidePasswordLabel:m,inputId:h,className:g,..._},v)=>{let{id:y,hintId:b,errorId:x,describedBy:S}=i.useFieldIds({inputId:h,hint:c,error:l});return(0,s.jsxs)(`div`,{className:[a.default.root,g??``].filter(Boolean).join(` `),children:[(0,s.jsx)(t.Label,{htmlFor:y,required:d,disabled:f,children:o}),(0,s.jsx)(e.PasswordInput,{ref:v,id:y,size:u,hasError:!!l,disabled:f,required:d,"aria-required":d,"aria-describedby":S,showPasswordLabel:p,hidePasswordLabel:m,..._}),l?(0,s.jsx)(r.ErrorMessage,{id:x,children:l}):c?(0,s.jsx)(n.Hint,{id:b,children:c}):null]})});c.displayName=`PasswordField`,exports.PasswordField=c;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PasswordInput as e } from "../../primitives/PasswordInput/PasswordInput.js";
|
|
2
|
+
import { Label as t } from "../../primitives/Label/Label.js";
|
|
3
|
+
import { Hint as n } from "../../primitives/Hint/Hint.js";
|
|
4
|
+
import { ErrorMessage as r } from "../../primitives/ErrorMessage/ErrorMessage.js";
|
|
5
|
+
import { useFieldIds as i } from "../shared/useFieldIds.js";
|
|
6
|
+
import a from "./PasswordField.module.css.js";
|
|
7
|
+
import { forwardRef as o } from "react";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/PasswordField/PasswordField.tsx
|
|
10
|
+
var l = o(({ label: o, hint: l, error: u, size: d = "md", required: f = !1, disabled: p = !1, showPasswordLabel: m, hidePasswordLabel: h, inputId: g, className: _, ...v }, y) => {
|
|
11
|
+
let { id: b, hintId: x, errorId: S, describedBy: C } = i({
|
|
12
|
+
inputId: g,
|
|
13
|
+
hint: l,
|
|
14
|
+
error: u
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */ c("div", {
|
|
17
|
+
className: [a.root, _ ?? ""].filter(Boolean).join(" "),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ s(t, {
|
|
20
|
+
htmlFor: b,
|
|
21
|
+
required: f,
|
|
22
|
+
disabled: p,
|
|
23
|
+
children: o
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ s(e, {
|
|
26
|
+
ref: y,
|
|
27
|
+
id: b,
|
|
28
|
+
size: d,
|
|
29
|
+
hasError: !!u,
|
|
30
|
+
disabled: p,
|
|
31
|
+
required: f,
|
|
32
|
+
"aria-required": f,
|
|
33
|
+
"aria-describedby": C,
|
|
34
|
+
showPasswordLabel: m,
|
|
35
|
+
hidePasswordLabel: h,
|
|
36
|
+
...v
|
|
37
|
+
}),
|
|
38
|
+
u ? /* @__PURE__ */ s(r, {
|
|
39
|
+
id: S,
|
|
40
|
+
children: u
|
|
41
|
+
}) : l ? /* @__PURE__ */ s(n, {
|
|
42
|
+
id: x,
|
|
43
|
+
children: l
|
|
44
|
+
}) : null
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
l.displayName = "PasswordField";
|
|
49
|
+
//#endregion
|
|
50
|
+
export { l as PasswordField };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_root_1oeo1_1`,t={root:e};exports.default=t,exports.root=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../primitives/PhoneInput/PhoneInput.cjs"),t=require("../../primitives/Label/Label.cjs"),n=require("../../primitives/Hint/Hint.cjs"),r=require("../../primitives/ErrorMessage/ErrorMessage.cjs"),i=require("../shared/useFieldIds.cjs"),a=require("./PhoneField.module.css.cjs");let o=require("react"),s=require("react/jsx-runtime");var c=(0,o.forwardRef)(({label:o,hint:c,error:l,size:u=`md`,required:d=!1,disabled:f=!1,inputId:p,className:m,...h},g)=>{let{id:_,hintId:v,errorId:y,describedBy:b}=i.useFieldIds({inputId:p,hint:c,error:l});return(0,s.jsxs)(`div`,{className:[a.default.root,m??``].filter(Boolean).join(` `),children:[(0,s.jsx)(t.Label,{htmlFor:_,required:d,disabled:f,children:o}),(0,s.jsx)(`div`,{className:a.default.inputWrapper,children:(0,s.jsx)(e.PhoneInput,{ref:g,id:_,size:u,hasError:!!l,disabled:f,required:d,"aria-required":d,"aria-describedby":b,...h})}),l?(0,s.jsx)(r.ErrorMessage,{id:y,children:l}):c?(0,s.jsx)(n.Hint,{id:v,children:c}):null]})});c.displayName=`PhoneField`,exports.PhoneField=c;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PhoneInput as e } from "../../primitives/PhoneInput/PhoneInput.js";
|
|
2
|
+
import { Label as t } from "../../primitives/Label/Label.js";
|
|
3
|
+
import { Hint as n } from "../../primitives/Hint/Hint.js";
|
|
4
|
+
import { ErrorMessage as r } from "../../primitives/ErrorMessage/ErrorMessage.js";
|
|
5
|
+
import { useFieldIds as i } from "../shared/useFieldIds.js";
|
|
6
|
+
import a from "./PhoneField.module.css.js";
|
|
7
|
+
import { forwardRef as o } from "react";
|
|
8
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
+
//#region src/components/PhoneField/PhoneField.tsx
|
|
10
|
+
var l = o(({ label: o, hint: l, error: u, size: d = "md", required: f = !1, disabled: p = !1, inputId: m, className: h, ...g }, _) => {
|
|
11
|
+
let { id: v, hintId: y, errorId: b, describedBy: x } = i({
|
|
12
|
+
inputId: m,
|
|
13
|
+
hint: l,
|
|
14
|
+
error: u
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */ c("div", {
|
|
17
|
+
className: [a.root, h ?? ""].filter(Boolean).join(" "),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ s(t, {
|
|
20
|
+
htmlFor: v,
|
|
21
|
+
required: f,
|
|
22
|
+
disabled: p,
|
|
23
|
+
children: o
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ s("div", {
|
|
26
|
+
className: a.inputWrapper,
|
|
27
|
+
children: /* @__PURE__ */ s(e, {
|
|
28
|
+
ref: _,
|
|
29
|
+
id: v,
|
|
30
|
+
size: d,
|
|
31
|
+
hasError: !!u,
|
|
32
|
+
disabled: p,
|
|
33
|
+
required: f,
|
|
34
|
+
"aria-required": f,
|
|
35
|
+
"aria-describedby": x,
|
|
36
|
+
...g
|
|
37
|
+
})
|
|
38
|
+
}),
|
|
39
|
+
u ? /* @__PURE__ */ s(r, {
|
|
40
|
+
id: b,
|
|
41
|
+
children: u
|
|
42
|
+
}) : l ? /* @__PURE__ */ s(n, {
|
|
43
|
+
id: y,
|
|
44
|
+
children: l
|
|
45
|
+
}) : null
|
|
46
|
+
]
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
l.displayName = "PhoneField";
|
|
50
|
+
//#endregion
|
|
51
|
+
export { l as PhoneField };
|