@aseguragonzalez/ui 1.0.4 → 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 @@
|
|
|
1
|
+
const e=require("./AuthLayout.module.css.cjs");let t=require("react/jsx-runtime");var n=()=>(0,t.jsxs)(`svg`,{width:`36`,height:`36`,viewBox:`0 0 36 36`,fill:`none`,"aria-hidden":`true`,children:[(0,t.jsx)(`rect`,{width:`36`,height:`36`,rx:`8`,fill:`var(--ds-color-action-primary)`}),(0,t.jsx)(`path`,{d:`M10 12h16M10 18h11M10 24h8`,stroke:`white`,strokeWidth:`2.5`,strokeLinecap:`round`})]});function r({children:r,branding:i,logo:a,brandingLabel:o=`Product branding`}){let s=a??(0,t.jsx)(n,{});return(0,t.jsxs)(`div`,{className:e.default.layout,children:[(0,t.jsx)(`aside`,{className:e.default.brandPanel,"aria-label":o,"aria-hidden":`true`,children:(0,t.jsx)(`div`,{className:e.default.brandContent,children:i??(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(`div`,{className:e.default.brandLogo,children:s}),(0,t.jsxs)(`p`,{className:e.default.brandTagline,children:[`Build better products,`,(0,t.jsx)(`br`,{}),`together.`]})]})})}),(0,t.jsx)(`main`,{className:e.default.formPanel,children:(0,t.jsxs)(`div`,{className:e.default.formContent,children:[(0,t.jsx)(`div`,{className:e.default.mobileLogo,"aria-hidden":`true`,children:s}),r]})})]})}r.displayName=`AuthLayout`,exports.AuthLayout=r;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import e from "./AuthLayout.module.css.js";
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
|
+
//#region src/patterns/AuthLayout/AuthLayout.tsx
|
|
4
|
+
var i = () => /* @__PURE__ */ r("svg", {
|
|
5
|
+
width: "36",
|
|
6
|
+
height: "36",
|
|
7
|
+
viewBox: "0 0 36 36",
|
|
8
|
+
fill: "none",
|
|
9
|
+
"aria-hidden": "true",
|
|
10
|
+
children: [/* @__PURE__ */ n("rect", {
|
|
11
|
+
width: "36",
|
|
12
|
+
height: "36",
|
|
13
|
+
rx: "8",
|
|
14
|
+
fill: "var(--ds-color-action-primary)"
|
|
15
|
+
}), /* @__PURE__ */ n("path", {
|
|
16
|
+
d: "M10 12h16M10 18h11M10 24h8",
|
|
17
|
+
stroke: "white",
|
|
18
|
+
strokeWidth: "2.5",
|
|
19
|
+
strokeLinecap: "round"
|
|
20
|
+
})]
|
|
21
|
+
});
|
|
22
|
+
function a({ children: a, branding: o, logo: s, brandingLabel: c = "Product branding" }) {
|
|
23
|
+
let l = s ?? /* @__PURE__ */ n(i, {});
|
|
24
|
+
return /* @__PURE__ */ r("div", {
|
|
25
|
+
className: e.layout,
|
|
26
|
+
children: [/* @__PURE__ */ n("aside", {
|
|
27
|
+
className: e.brandPanel,
|
|
28
|
+
"aria-label": c,
|
|
29
|
+
"aria-hidden": "true",
|
|
30
|
+
children: /* @__PURE__ */ n("div", {
|
|
31
|
+
className: e.brandContent,
|
|
32
|
+
children: o ?? /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n("div", {
|
|
33
|
+
className: e.brandLogo,
|
|
34
|
+
children: l
|
|
35
|
+
}), /* @__PURE__ */ r("p", {
|
|
36
|
+
className: e.brandTagline,
|
|
37
|
+
children: [
|
|
38
|
+
"Build better products,",
|
|
39
|
+
/* @__PURE__ */ n("br", {}),
|
|
40
|
+
"together."
|
|
41
|
+
]
|
|
42
|
+
})] })
|
|
43
|
+
})
|
|
44
|
+
}), /* @__PURE__ */ n("main", {
|
|
45
|
+
className: e.formPanel,
|
|
46
|
+
children: /* @__PURE__ */ r("div", {
|
|
47
|
+
className: e.formContent,
|
|
48
|
+
children: [/* @__PURE__ */ n("div", {
|
|
49
|
+
className: e.mobileLogo,
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
children: l
|
|
52
|
+
}), a]
|
|
53
|
+
})
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
a.displayName = "AuthLayout";
|
|
58
|
+
//#endregion
|
|
59
|
+
export { a as AuthLayout };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_layout_14fpw_1`,t=`_brandPanel_14fpw_9`,n=`_brandContent_14fpw_15`,r=`_brandLogo_14fpw_23`,i=`_brandTagline_14fpw_27`,a=`_formPanel_14fpw_38`,o=`_formContent_14fpw_46`,s=`_mobileLogo_14fpw_53`,c={layout:e,brandPanel:t,brandContent:n,brandLogo:r,brandTagline:i,formPanel:a,formContent:o,mobileLogo:s};exports.brandContent=n,exports.brandLogo=r,exports.brandPanel=t,exports.brandTagline=i,exports.default=c,exports.formContent=o,exports.formPanel=a,exports.layout=e,exports.mobileLogo=s;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/patterns/AuthLayout/AuthLayout.module.css
|
|
2
|
+
var e = "_layout_14fpw_1", t = "_brandPanel_14fpw_9", n = "_brandContent_14fpw_15", r = "_brandLogo_14fpw_23", i = "_brandTagline_14fpw_27", a = "_formPanel_14fpw_38", o = "_formContent_14fpw_46", s = "_mobileLogo_14fpw_53", c = {
|
|
3
|
+
layout: e,
|
|
4
|
+
brandPanel: t,
|
|
5
|
+
brandContent: n,
|
|
6
|
+
brandLogo: r,
|
|
7
|
+
brandTagline: i,
|
|
8
|
+
formPanel: a,
|
|
9
|
+
formContent: o,
|
|
10
|
+
mobileLogo: s
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as brandContent, r as brandLogo, t as brandPanel, i as brandTagline, c as default, o as formContent, a as formPanel, e as layout, s as mobileLogo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Alert.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r={error:(0,n.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`15`,y1:`9`,x2:`9`,y2:`15`}),(0,n.jsx)(`line`,{x1:`9`,y1:`9`,x2:`15`,y2:`15`})]}),warning:(0,n.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,n.jsx)(`path`,{d:`M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z`}),(0,n.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,n.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]}),success:(0,n.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,n.jsx)(`path`,{d:`M22 11.08V12a10 10 0 1 1-5.93-9.14`}),(0,n.jsx)(`polyline`,{points:`22 4 12 14.01 9 11.01`})]}),info:(0,n.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,n.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,n.jsx)(`line`,{x1:`12`,y1:`8`,x2:`12`,y2:`12`}),(0,n.jsx)(`line`,{x1:`12`,y1:`16`,x2:`12.01`,y2:`16`})]})},i={error:`alert`,warning:`alert`,success:`status`,info:`status`},a=(0,t.forwardRef)(({variant:t,title:a,children:o,onDismiss:s,dismissLabel:c=`Close alert`,role:l,className:u,...d},f)=>{let p=l??i[t],m=[e.default.root,e.default[t],u??``].filter(Boolean).join(` `);return(0,n.jsxs)(`div`,{ref:f,role:p,className:m,...d,children:[(0,n.jsx)(`span`,{className:e.default.icon,"aria-hidden":`true`,children:r[t]}),(0,n.jsxs)(`div`,{className:e.default.content,children:[a&&(0,n.jsx)(`p`,{className:e.default.title,children:a}),(0,n.jsx)(`div`,{className:e.default.description,children:o})]}),s&&(0,n.jsx)(`button`,{type:`button`,className:e.default.dismiss,"aria-label":c,onClick:s,children:(0,n.jsxs)(`svg`,{"aria-hidden":`true`,xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,n.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,n.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]})})]})});a.displayName=`Alert`,exports.Alert=a;
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import e from "./Alert.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/Alert/Alert.tsx
|
|
5
|
+
var i = {
|
|
6
|
+
error: /* @__PURE__ */ r("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "20",
|
|
9
|
+
height: "20",
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
strokeWidth: "2",
|
|
14
|
+
strokeLinecap: "round",
|
|
15
|
+
strokeLinejoin: "round",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ n("circle", {
|
|
18
|
+
cx: "12",
|
|
19
|
+
cy: "12",
|
|
20
|
+
r: "10"
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ n("line", {
|
|
23
|
+
x1: "15",
|
|
24
|
+
y1: "9",
|
|
25
|
+
x2: "9",
|
|
26
|
+
y2: "15"
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ n("line", {
|
|
29
|
+
x1: "9",
|
|
30
|
+
y1: "9",
|
|
31
|
+
x2: "15",
|
|
32
|
+
y2: "15"
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
}),
|
|
36
|
+
warning: /* @__PURE__ */ r("svg", {
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
width: "20",
|
|
39
|
+
height: "20",
|
|
40
|
+
viewBox: "0 0 24 24",
|
|
41
|
+
fill: "none",
|
|
42
|
+
stroke: "currentColor",
|
|
43
|
+
strokeWidth: "2",
|
|
44
|
+
strokeLinecap: "round",
|
|
45
|
+
strokeLinejoin: "round",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ n("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
48
|
+
/* @__PURE__ */ n("line", {
|
|
49
|
+
x1: "12",
|
|
50
|
+
y1: "9",
|
|
51
|
+
x2: "12",
|
|
52
|
+
y2: "13"
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ n("line", {
|
|
55
|
+
x1: "12",
|
|
56
|
+
y1: "17",
|
|
57
|
+
x2: "12.01",
|
|
58
|
+
y2: "17"
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
}),
|
|
62
|
+
success: /* @__PURE__ */ r("svg", {
|
|
63
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
64
|
+
width: "20",
|
|
65
|
+
height: "20",
|
|
66
|
+
viewBox: "0 0 24 24",
|
|
67
|
+
fill: "none",
|
|
68
|
+
stroke: "currentColor",
|
|
69
|
+
strokeWidth: "2",
|
|
70
|
+
strokeLinecap: "round",
|
|
71
|
+
strokeLinejoin: "round",
|
|
72
|
+
children: [/* @__PURE__ */ n("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }), /* @__PURE__ */ n("polyline", { points: "22 4 12 14.01 9 11.01" })]
|
|
73
|
+
}),
|
|
74
|
+
info: /* @__PURE__ */ r("svg", {
|
|
75
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
76
|
+
width: "20",
|
|
77
|
+
height: "20",
|
|
78
|
+
viewBox: "0 0 24 24",
|
|
79
|
+
fill: "none",
|
|
80
|
+
stroke: "currentColor",
|
|
81
|
+
strokeWidth: "2",
|
|
82
|
+
strokeLinecap: "round",
|
|
83
|
+
strokeLinejoin: "round",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ n("circle", {
|
|
86
|
+
cx: "12",
|
|
87
|
+
cy: "12",
|
|
88
|
+
r: "10"
|
|
89
|
+
}),
|
|
90
|
+
/* @__PURE__ */ n("line", {
|
|
91
|
+
x1: "12",
|
|
92
|
+
y1: "8",
|
|
93
|
+
x2: "12",
|
|
94
|
+
y2: "12"
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ n("line", {
|
|
97
|
+
x1: "12",
|
|
98
|
+
y1: "16",
|
|
99
|
+
x2: "12.01",
|
|
100
|
+
y2: "16"
|
|
101
|
+
})
|
|
102
|
+
]
|
|
103
|
+
})
|
|
104
|
+
}, a = {
|
|
105
|
+
error: "alert",
|
|
106
|
+
warning: "alert",
|
|
107
|
+
success: "status",
|
|
108
|
+
info: "status"
|
|
109
|
+
}, o = t(({ variant: t, title: o, children: s, onDismiss: c, dismissLabel: l = "Close alert", role: u, className: d, ...f }, p) => {
|
|
110
|
+
let m = u ?? a[t], h = [
|
|
111
|
+
e.root,
|
|
112
|
+
e[t],
|
|
113
|
+
d ?? ""
|
|
114
|
+
].filter(Boolean).join(" ");
|
|
115
|
+
return /* @__PURE__ */ r("div", {
|
|
116
|
+
ref: p,
|
|
117
|
+
role: m,
|
|
118
|
+
className: h,
|
|
119
|
+
...f,
|
|
120
|
+
children: [
|
|
121
|
+
/* @__PURE__ */ n("span", {
|
|
122
|
+
className: e.icon,
|
|
123
|
+
"aria-hidden": "true",
|
|
124
|
+
children: i[t]
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ r("div", {
|
|
127
|
+
className: e.content,
|
|
128
|
+
children: [o && /* @__PURE__ */ n("p", {
|
|
129
|
+
className: e.title,
|
|
130
|
+
children: o
|
|
131
|
+
}), /* @__PURE__ */ n("div", {
|
|
132
|
+
className: e.description,
|
|
133
|
+
children: s
|
|
134
|
+
})]
|
|
135
|
+
}),
|
|
136
|
+
c && /* @__PURE__ */ n("button", {
|
|
137
|
+
type: "button",
|
|
138
|
+
className: e.dismiss,
|
|
139
|
+
"aria-label": l,
|
|
140
|
+
onClick: c,
|
|
141
|
+
children: /* @__PURE__ */ r("svg", {
|
|
142
|
+
"aria-hidden": "true",
|
|
143
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
144
|
+
width: "16",
|
|
145
|
+
height: "16",
|
|
146
|
+
viewBox: "0 0 24 24",
|
|
147
|
+
fill: "none",
|
|
148
|
+
stroke: "currentColor",
|
|
149
|
+
strokeWidth: "2",
|
|
150
|
+
strokeLinecap: "round",
|
|
151
|
+
strokeLinejoin: "round",
|
|
152
|
+
children: [/* @__PURE__ */ n("line", {
|
|
153
|
+
x1: "18",
|
|
154
|
+
y1: "6",
|
|
155
|
+
x2: "6",
|
|
156
|
+
y2: "18"
|
|
157
|
+
}), /* @__PURE__ */ n("line", {
|
|
158
|
+
x1: "6",
|
|
159
|
+
y1: "6",
|
|
160
|
+
x2: "18",
|
|
161
|
+
y2: "18"
|
|
162
|
+
})]
|
|
163
|
+
})
|
|
164
|
+
})
|
|
165
|
+
]
|
|
166
|
+
});
|
|
167
|
+
});
|
|
168
|
+
o.displayName = "Alert";
|
|
169
|
+
//#endregion
|
|
170
|
+
export { o as Alert };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_root_vxg1r_1`,t=`_error_vxg1r_12`,n=`_warning_vxg1r_18`,r=`_success_vxg1r_24`,i=`_info_vxg1r_30`,a=`_icon_vxg1r_38`,o=`_content_vxg1r_48`,s=`_title_vxg1r_56`,c=`_description_vxg1r_65`,l=`_dismiss_vxg1r_74`,u={root:e,error:t,warning:n,success:r,info:i,icon:a,content:o,title:s,description:c,dismiss:l};exports.content=o,exports.default=u,exports.description=c,exports.dismiss=l,exports.error=t,exports.icon=a,exports.info=i,exports.root=e,exports.success=r,exports.title=s,exports.warning=n;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/primitives/Alert/Alert.module.css
|
|
2
|
+
var e = "_root_vxg1r_1", t = "_error_vxg1r_12", n = "_warning_vxg1r_18", r = "_success_vxg1r_24", i = "_info_vxg1r_30", a = "_icon_vxg1r_38", o = "_content_vxg1r_48", s = "_title_vxg1r_56", c = "_description_vxg1r_65", l = "_dismiss_vxg1r_74", u = {
|
|
3
|
+
root: e,
|
|
4
|
+
error: t,
|
|
5
|
+
warning: n,
|
|
6
|
+
success: r,
|
|
7
|
+
info: i,
|
|
8
|
+
icon: a,
|
|
9
|
+
content: o,
|
|
10
|
+
title: s,
|
|
11
|
+
description: c,
|
|
12
|
+
dismiss: l
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { o as content, u as default, c as description, l as dismiss, t as error, a as icon, i as info, e as root, r as success, s as title, n as warning };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Avatar.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");function r(e){let t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?`?`:t.length===1?t[0][0].toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}var i=(0,t.forwardRef)(({name:i,src:a,size:o=`md`,shape:s=`circle`,className:c,...l},u)=>{let[d,f]=(0,t.useState)(!1);(0,t.useEffect)(()=>{f(!1)},[a]);let p=!!a&&!d,m=[e.default.avatar,e.default[o],e.default[s],c??``].filter(Boolean).join(` `);return(0,n.jsx)(`span`,{ref:u,role:`img`,"aria-label":i,className:m,...l,children:p?(0,n.jsx)(`img`,{src:a,alt:``,"aria-hidden":`true`,className:e.default.image,onError:()=>f(!0)}):(0,n.jsx)(`span`,{"aria-hidden":`true`,className:e.default.initials,children:r(i)})})});i.displayName=`Avatar`,exports.Avatar=i;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import e from "./Avatar.module.css.js";
|
|
2
|
+
import { forwardRef as t, useEffect as n, useState as r } from "react";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/Avatar/Avatar.tsx
|
|
5
|
+
function a(e) {
|
|
6
|
+
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
7
|
+
return t.length === 0 ? "?" : t.length === 1 ? t[0][0].toUpperCase() : (t[0][0] + t[t.length - 1][0]).toUpperCase();
|
|
8
|
+
}
|
|
9
|
+
var o = t(({ name: t, src: o, size: s = "md", shape: c = "circle", className: l, ...u }, d) => {
|
|
10
|
+
let [f, p] = r(!1);
|
|
11
|
+
n(() => {
|
|
12
|
+
p(!1);
|
|
13
|
+
}, [o]);
|
|
14
|
+
let m = !!o && !f, h = [
|
|
15
|
+
e.avatar,
|
|
16
|
+
e[s],
|
|
17
|
+
e[c],
|
|
18
|
+
l ?? ""
|
|
19
|
+
].filter(Boolean).join(" ");
|
|
20
|
+
return /* @__PURE__ */ i("span", {
|
|
21
|
+
ref: d,
|
|
22
|
+
role: "img",
|
|
23
|
+
"aria-label": t,
|
|
24
|
+
className: h,
|
|
25
|
+
...u,
|
|
26
|
+
children: m ? /* @__PURE__ */ i("img", {
|
|
27
|
+
src: o,
|
|
28
|
+
alt: "",
|
|
29
|
+
"aria-hidden": "true",
|
|
30
|
+
className: e.image,
|
|
31
|
+
onError: () => p(!0)
|
|
32
|
+
}) : /* @__PURE__ */ i("span", {
|
|
33
|
+
"aria-hidden": "true",
|
|
34
|
+
className: e.initials,
|
|
35
|
+
children: a(t)
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
o.displayName = "Avatar";
|
|
40
|
+
//#endregion
|
|
41
|
+
export { o as Avatar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_avatar_1hkk0_2`,t=`_xs_1hkk0_7`,n=`_sm_1hkk0_8`,r=`_md_1hkk0_9`,i=`_lg_1hkk0_10`,a=`_xl_1hkk0_11`,o=`_circle_1hkk0_33`,s=`_square_1hkk0_34`,c=`_image_1hkk0_38`,l=`_initials_1hkk0_47`,u={avatar:e,xs:t,sm:n,md:r,lg:i,xl:a,circle:o,square:s,image:c,initials:l};exports.avatar=e,exports.circle=o,exports.default=u,exports.image=c,exports.initials=l,exports.lg=i,exports.md=r,exports.sm=n,exports.square=s,exports.xl=a,exports.xs=t;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/primitives/Avatar/Avatar.module.css
|
|
2
|
+
var e = "_avatar_1hkk0_2", t = "_xs_1hkk0_7", n = "_sm_1hkk0_8", r = "_md_1hkk0_9", i = "_lg_1hkk0_10", a = "_xl_1hkk0_11", o = "_circle_1hkk0_33", s = "_square_1hkk0_34", c = "_image_1hkk0_38", l = "_initials_1hkk0_47", u = {
|
|
3
|
+
avatar: e,
|
|
4
|
+
xs: t,
|
|
5
|
+
sm: n,
|
|
6
|
+
md: r,
|
|
7
|
+
lg: i,
|
|
8
|
+
xl: a,
|
|
9
|
+
circle: o,
|
|
10
|
+
square: s,
|
|
11
|
+
image: c,
|
|
12
|
+
initials: l
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { e as avatar, o as circle, u as default, c as image, l as initials, i as lg, r as md, n as sm, s as square, a as xl, t as xs };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Badge.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(({variant:t=`neutral`,size:r=`md`,className:i,...a},o)=>{let s=[e.default.badge,e.default[t],e.default[r],i??``].filter(Boolean).join(` `);return(0,n.jsx)(`span`,{ref:o,className:s,...a})});r.displayName=`Badge`,exports.Badge=r;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import e from "./Badge.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/Badge/Badge.tsx
|
|
5
|
+
var r = t(({ variant: t = "neutral", size: r = "md", className: i, ...a }, o) => {
|
|
6
|
+
let s = [
|
|
7
|
+
e.badge,
|
|
8
|
+
e[t],
|
|
9
|
+
e[r],
|
|
10
|
+
i ?? ""
|
|
11
|
+
].filter(Boolean).join(" ");
|
|
12
|
+
return /* @__PURE__ */ n("span", {
|
|
13
|
+
ref: o,
|
|
14
|
+
className: s,
|
|
15
|
+
...a
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
r.displayName = "Badge";
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as Badge };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_badge_1qsea_1`,t=`_sm_1qsea_13`,n=`_md_1qsea_18`,r=`_lg_1qsea_23`,i=`_neutral_1qsea_30`,a=`_brand_1qsea_35`,o=`_accent_1qsea_40`,s=`_error_1qsea_45`,c=`_warning_1qsea_50`,l=`_success_1qsea_55`,u=`_info_1qsea_60`,d={badge:e,sm:t,md:n,lg:r,neutral:i,brand:a,accent:o,error:s,warning:c,success:l,info:u};exports.accent=o,exports.badge=e,exports.brand=a,exports.default=d,exports.error=s,exports.info=u,exports.lg=r,exports.md=n,exports.neutral=i,exports.sm=t,exports.success=l,exports.warning=c;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/primitives/Badge/Badge.module.css
|
|
2
|
+
var e = "_badge_1qsea_1", t = "_sm_1qsea_13", n = "_md_1qsea_18", r = "_lg_1qsea_23", i = "_neutral_1qsea_30", a = "_brand_1qsea_35", o = "_accent_1qsea_40", s = "_error_1qsea_45", c = "_warning_1qsea_50", l = "_success_1qsea_55", u = "_info_1qsea_60", d = {
|
|
3
|
+
badge: e,
|
|
4
|
+
sm: t,
|
|
5
|
+
md: n,
|
|
6
|
+
lg: r,
|
|
7
|
+
neutral: i,
|
|
8
|
+
brand: a,
|
|
9
|
+
accent: o,
|
|
10
|
+
error: s,
|
|
11
|
+
warning: c,
|
|
12
|
+
success: l,
|
|
13
|
+
info: u
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { o as accent, e as badge, a as brand, d as default, s as error, u as info, r as lg, n as md, i as neutral, t as sm, l as success, c as warning };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../Spinner/Spinner.cjs"),t=require("./Button.module.css.cjs");let n=require("react"),r=require("react/jsx-runtime");var i={sm:`sm`,md:`sm`,lg:`md`},a=(0,n.forwardRef)(({variant:n=`primary`,size:a=`md`,fullWidth:o=!1,isLoading:s=!1,loadingText:c,disabled:l,children:u,className:d,...f},p)=>{let m=l||s,h=[t.default.button,t.default[n],t.default[a],o?t.default.fullWidth:``,s?t.default.loading:``,d??``].filter(Boolean).join(` `);return(0,r.jsxs)(`button`,{ref:p,disabled:m,"aria-busy":s,className:h,...f,children:[s&&(0,r.jsx)(e.Spinner,{size:i[a],label:c??`Loading...`}),s&&c?c:u]})});a.displayName=`Button`,exports.Button=a;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Spinner as e } from "../Spinner/Spinner.js";
|
|
2
|
+
import t from "./Button.module.css.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/primitives/Button/Button.tsx
|
|
6
|
+
var a = {
|
|
7
|
+
sm: "sm",
|
|
8
|
+
md: "sm",
|
|
9
|
+
lg: "md"
|
|
10
|
+
}, o = n(({ variant: n = "primary", size: o = "md", fullWidth: s = !1, isLoading: c = !1, loadingText: l, disabled: u, children: d, className: f, ...p }, m) => {
|
|
11
|
+
let h = u || c, g = [
|
|
12
|
+
t.button,
|
|
13
|
+
t[n],
|
|
14
|
+
t[o],
|
|
15
|
+
s ? t.fullWidth : "",
|
|
16
|
+
c ? t.loading : "",
|
|
17
|
+
f ?? ""
|
|
18
|
+
].filter(Boolean).join(" ");
|
|
19
|
+
return /* @__PURE__ */ i("button", {
|
|
20
|
+
ref: m,
|
|
21
|
+
disabled: h,
|
|
22
|
+
"aria-busy": c,
|
|
23
|
+
className: g,
|
|
24
|
+
...p,
|
|
25
|
+
children: [c && /* @__PURE__ */ r(e, {
|
|
26
|
+
size: a[o],
|
|
27
|
+
label: l ?? "Loading..."
|
|
28
|
+
}), c && l ? l : d]
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
o.displayName = "Button";
|
|
32
|
+
//#endregion
|
|
33
|
+
export { o as Button };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_button_rrcdl_1`,t=`_sm_rrcdl_32`,n=`_md_rrcdl_38`,r=`_lg_rrcdl_44`,i=`_primary_rrcdl_52`,a=`_secondary_rrcdl_68`,o=`_ghost_rrcdl_83`,s=`_accent_rrcdl_97`,c=`_destructive_rrcdl_113`,l=`_fullWidth_rrcdl_138`,u=`_loading_rrcdl_144`,d={button:e,sm:t,md:n,lg:r,primary:i,secondary:a,ghost:o,accent:s,destructive:c,fullWidth:l,loading:u};exports.accent=s,exports.button=e,exports.default=d,exports.destructive=c,exports.fullWidth=l,exports.ghost=o,exports.lg=r,exports.loading=u,exports.md=n,exports.primary=i,exports.secondary=a,exports.sm=t;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/primitives/Button/Button.module.css
|
|
2
|
+
var e = "_button_rrcdl_1", t = "_sm_rrcdl_32", n = "_md_rrcdl_38", r = "_lg_rrcdl_44", i = "_primary_rrcdl_52", a = "_secondary_rrcdl_68", o = "_ghost_rrcdl_83", s = "_accent_rrcdl_97", c = "_destructive_rrcdl_113", l = "_fullWidth_rrcdl_138", u = "_loading_rrcdl_144", d = {
|
|
3
|
+
button: e,
|
|
4
|
+
sm: t,
|
|
5
|
+
md: n,
|
|
6
|
+
lg: r,
|
|
7
|
+
primary: i,
|
|
8
|
+
secondary: a,
|
|
9
|
+
ghost: o,
|
|
10
|
+
accent: s,
|
|
11
|
+
destructive: c,
|
|
12
|
+
fullWidth: l,
|
|
13
|
+
loading: u
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { s as accent, e as button, d as default, c as destructive, l as fullWidth, o as ghost, r as lg, u as loading, n as md, i as primary, a as secondary, t as sm };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Checkbox.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.checkbox,r===`md`?``:e.default[r],t?e.default.error:``,i??``].filter(Boolean).join(` `);return(0,n.jsx)(`input`,{ref:o,type:`checkbox`,"aria-invalid":t||void 0,className:s,...a})});r.displayName=`Checkbox`,exports.Checkbox=r;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "./Checkbox.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/Checkbox/Checkbox.tsx
|
|
5
|
+
var r = t(({ hasError: t = !1, size: r = "md", className: i, ...a }, o) => {
|
|
6
|
+
let s = [
|
|
7
|
+
e.checkbox,
|
|
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: "checkbox",
|
|
15
|
+
"aria-invalid": t || void 0,
|
|
16
|
+
className: s,
|
|
17
|
+
...a
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
r.displayName = "Checkbox";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as Checkbox };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_checkbox_6awz6_1`,t=`_error_6awz6_99`,n=`_sm_6awz6_122`,r=`_lg_6awz6_132`,i={checkbox:e,error:t,sm:n,lg:r};exports.checkbox=e,exports.default=i,exports.error=t,exports.lg=r,exports.sm=n;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/primitives/Checkbox/Checkbox.module.css
|
|
2
|
+
var e = "_checkbox_6awz6_1", t = "_error_6awz6_99", n = "_sm_6awz6_122", r = "_lg_6awz6_132", i = {
|
|
3
|
+
checkbox: e,
|
|
4
|
+
error: t,
|
|
5
|
+
sm: n,
|
|
6
|
+
lg: r
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { e as checkbox, i as default, t as error, r as lg, 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:`date`,"aria-invalid":t||void 0,className:s,...a})});r.displayName=`DateInput`,exports.DateInput=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/DateInput/DateInput.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: "date",
|
|
15
|
+
"aria-invalid": t || void 0,
|
|
16
|
+
className: s,
|
|
17
|
+
...a
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
r.displayName = "DateInput";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as DateInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Divider.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r=(0,t.forwardRef)(({orientation:t=`horizontal`,decorative:r=!0,label:i,className:a,...o},s)=>{let c=[e.default.divider,e.default[t],a??``].filter(Boolean).join(` `);return(0,n.jsx)(`hr`,{ref:s,"aria-hidden":r?!0:void 0,"aria-orientation":!r&&t===`vertical`?`vertical`:void 0,"aria-label":r?void 0:i,className:c,...o})});r.displayName=`Divider`,exports.Divider=r;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import e from "./Divider.module.css.js";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/primitives/Divider/Divider.tsx
|
|
5
|
+
var r = t(({ orientation: t = "horizontal", decorative: r = !0, label: i, className: a, ...o }, s) => {
|
|
6
|
+
let c = [
|
|
7
|
+
e.divider,
|
|
8
|
+
e[t],
|
|
9
|
+
a ?? ""
|
|
10
|
+
].filter(Boolean).join(" ");
|
|
11
|
+
return /* @__PURE__ */ n("hr", {
|
|
12
|
+
ref: s,
|
|
13
|
+
"aria-hidden": r ? !0 : void 0,
|
|
14
|
+
"aria-orientation": !r && t === "vertical" ? "vertical" : void 0,
|
|
15
|
+
"aria-label": r ? void 0 : i,
|
|
16
|
+
className: c,
|
|
17
|
+
...o
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
r.displayName = "Divider";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as Divider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_divider_1djxi_1`,t=`_horizontal_1djxi_9`,n=`_vertical_1djxi_17`,r={divider:e,horizontal:t,vertical:n};exports.default=r,exports.divider=e,exports.horizontal=t,exports.vertical=n;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/primitives/Divider/Divider.module.css
|
|
2
|
+
var e = "_divider_1djxi_1", t = "_horizontal_1djxi_9", n = "_vertical_1djxi_17", r = {
|
|
3
|
+
divider: e,
|
|
4
|
+
horizontal: t,
|
|
5
|
+
vertical: n
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { r as default, e as divider, t as horizontal, n as vertical };
|
|
@@ -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:`email`,"aria-invalid":t||void 0,className:s,...a})});r.displayName=`EmailInput`,exports.EmailInput=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/EmailInput/EmailInput.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: "email",
|
|
15
|
+
"aria-invalid": t || void 0,
|
|
16
|
+
className: s,
|
|
17
|
+
...a
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
r.displayName = "EmailInput";
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as EmailInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./ErrorMessage.module.css.cjs");let t=require("react/jsx-runtime");function n({children:n,className:r,...i}){return(0,t.jsx)(`span`,{className:[e.default.error,r??``].filter(Boolean).join(` `),...i,children:n})}n.displayName=`ErrorMessage`,exports.ErrorMessage=n;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import e from "./ErrorMessage.module.css.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/primitives/ErrorMessage/ErrorMessage.tsx
|
|
4
|
+
function n({ children: n, className: r, ...i }) {
|
|
5
|
+
return /* @__PURE__ */ t("span", {
|
|
6
|
+
className: [e.error, r ?? ""].filter(Boolean).join(" "),
|
|
7
|
+
...i,
|
|
8
|
+
children: n
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
n.displayName = "ErrorMessage";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as ErrorMessage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_error_13txc_1`,t={error:e};exports.default=t,exports.error=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Heading.module.css.cjs");let t=require("react"),n=require("react/jsx-runtime");var r={1:`xl`,2:`lg`,3:`md`,4:`sm`,5:`xs`,6:`xs`},i=(0,t.forwardRef)(({level:t,size:i,color:a=`default`,className:o,children:s,...c},l)=>{let u=i??r[t],d={ref:l,className:[e.default.heading,e.default[u],a==="default"?``:e.default[a],o??``].filter(Boolean).join(` `),...c};switch(t){case 1:return(0,n.jsx)(`h1`,{...d,children:s});case 2:return(0,n.jsx)(`h2`,{...d,children:s});case 3:return(0,n.jsx)(`h3`,{...d,children:s});case 4:return(0,n.jsx)(`h4`,{...d,children:s});case 5:return(0,n.jsx)(`h5`,{...d,children:s});case 6:return(0,n.jsx)(`h6`,{...d,children:s})}});i.displayName=`Heading`,exports.Heading=i;
|