@mage-ui/components 0.0.16 → 0.0.18
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/atoms/{avatar/Avatar.d.mts → avatars/Avatar.d.ts} +3 -4
- package/dist/atoms/avatars/Avatar.d.ts.map +1 -0
- package/dist/atoms/avatars/Avatar.js +2 -0
- package/dist/atoms/avatars/Avatar.js.map +1 -0
- package/dist/atoms/badges/{Badge.d.cts → Badge.d.ts} +3 -4
- package/dist/atoms/badges/Badge.d.ts.map +1 -0
- package/dist/atoms/badges/{Badge.mjs → Badge.js} +1 -1
- package/dist/atoms/badges/Badge.js.map +1 -0
- package/dist/atoms/breadcrumbs/{Breadcrumbs.d.mts → Breadcrumbs.d.ts} +3 -4
- package/dist/atoms/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
- package/dist/atoms/breadcrumbs/{Breadcrumbs.mjs → Breadcrumbs.js} +1 -1
- package/dist/atoms/breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/atoms/buttons/{Button.d.mts → Button.d.ts} +4 -5
- package/dist/atoms/buttons/Button.d.ts.map +1 -0
- package/dist/atoms/buttons/{Button.mjs → Button.js} +1 -1
- package/dist/atoms/buttons/Button.js.map +1 -0
- package/dist/atoms/buttons/{ButtonIcon.d.mts → ButtonIcon.d.ts} +5 -6
- package/dist/atoms/buttons/ButtonIcon.d.ts.map +1 -0
- package/dist/atoms/buttons/ButtonIcon.js +2 -0
- package/dist/atoms/buttons/ButtonIcon.js.map +1 -0
- package/dist/atoms/carousel/Carousel.d.ts +47 -0
- package/dist/atoms/carousel/Carousel.d.ts.map +1 -0
- package/dist/atoms/carousel/Carousel.js +2 -0
- package/dist/atoms/carousel/Carousel.js.map +1 -0
- package/dist/atoms/forms/{FormInputText.d.mts → FormInputText.d.ts} +5 -6
- package/dist/atoms/forms/FormInputText.d.ts.map +1 -0
- package/dist/atoms/forms/FormInputText.js +2 -0
- package/dist/atoms/forms/FormInputText.js.map +1 -0
- package/dist/atoms/{icon/Icon.d.mts → icons/Icon.d.ts} +3 -4
- package/dist/atoms/icons/Icon.d.ts.map +1 -0
- package/dist/atoms/icons/Icon.js +2 -0
- package/dist/atoms/icons/Icon.js.map +1 -0
- package/dist/atoms/{icon/IconRaw.d.mts → icons/IconRaw.d.ts} +3 -4
- package/dist/atoms/icons/IconRaw.d.ts.map +1 -0
- package/dist/atoms/{icon/IconRaw.mjs → icons/IconRaw.js} +1 -1
- package/dist/atoms/icons/IconRaw.js.map +1 -0
- package/dist/atoms/icons/IconWrapped.d.ts +19 -0
- package/dist/atoms/icons/IconWrapped.d.ts.map +1 -0
- package/dist/atoms/icons/IconWrapped.js +2 -0
- package/dist/atoms/icons/IconWrapped.js.map +1 -0
- package/dist/atoms/inputs/{Checkbox.d.mts → Checkbox.d.ts} +3 -3
- package/dist/atoms/inputs/Checkbox.d.ts.map +1 -0
- package/dist/atoms/inputs/{Checkbox.mjs → Checkbox.js} +1 -1
- package/dist/atoms/inputs/Checkbox.js.map +1 -0
- package/dist/atoms/inputs/DatePicker.d.ts +64 -0
- package/dist/atoms/inputs/DatePicker.d.ts.map +1 -0
- package/dist/atoms/inputs/DatePicker.js +2 -0
- package/dist/atoms/inputs/DatePicker.js.map +1 -0
- package/dist/atoms/inputs/{InputText.d.mts → InputText.d.ts} +6 -5
- package/dist/atoms/inputs/InputText.d.ts.map +1 -0
- package/dist/atoms/inputs/InputText.js +2 -0
- package/dist/atoms/inputs/InputText.js.map +1 -0
- package/dist/atoms/inputs/combobox/{Combobox.d.mts → Combobox.d.ts} +6 -4
- package/dist/atoms/inputs/combobox/Combobox.d.ts.map +1 -0
- package/dist/atoms/inputs/combobox/Combobox.js +2 -0
- package/dist/atoms/inputs/combobox/Combobox.js.map +1 -0
- package/dist/atoms/inputs/combobox/ComboboxBase.js +2 -0
- package/dist/atoms/inputs/combobox/ComboboxBase.js.map +1 -0
- package/dist/atoms/misc/{VisuallyHidden.mjs → VisuallyHidden.js} +1 -1
- package/dist/atoms/misc/VisuallyHidden.js.map +1 -0
- package/dist/atoms/tabs/{Tab.d.cts → Tab.d.ts} +3 -2
- package/dist/atoms/tabs/Tab.d.ts.map +1 -0
- package/dist/atoms/tabs/{Tab.mjs → Tab.js} +1 -1
- package/dist/atoms/tabs/Tab.js.map +1 -0
- package/dist/atoms/tabs/{TabList.d.mts → TabList.d.ts} +3 -2
- package/dist/atoms/tabs/TabList.d.ts.map +1 -0
- package/dist/atoms/tabs/{TabList.mjs → TabList.js} +1 -1
- package/dist/atoms/tabs/TabList.js.map +1 -0
- package/dist/atoms/tabs/{TabPanel.d.cts → TabPanel.d.ts} +3 -2
- package/dist/atoms/tabs/TabPanel.d.ts.map +1 -0
- package/dist/atoms/tabs/{TabPanel.mjs → TabPanel.js} +1 -1
- package/dist/atoms/tabs/TabPanel.js.map +1 -0
- package/dist/atoms/tabs/{Tabs.d.mts → Tabs.d.ts} +10 -11
- package/dist/atoms/tabs/Tabs.d.ts.map +1 -0
- package/dist/atoms/tabs/Tabs.js +2 -0
- package/dist/atoms/tabs/Tabs.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +1 -0
- package/dist/panda.json +29 -17
- package/dist/providers/{MageUiProvider.d.mts → MageUiProvider.d.ts} +4 -5
- package/dist/providers/MageUiProvider.d.ts.map +1 -0
- package/dist/providers/{MageUiProvider.mjs → MageUiProvider.js} +1 -1
- package/dist/providers/MageUiProvider.js.map +1 -0
- package/package.json +18 -159
- package/dist/Avatar.cjs +0 -1
- package/dist/Avatar.d.cts +0 -2
- package/dist/Avatar.d.mts +0 -2
- package/dist/Avatar.mjs +0 -1
- package/dist/Badge.cjs +0 -1
- package/dist/Badge.d.cts +0 -2
- package/dist/Badge.d.mts +0 -2
- package/dist/Badge.mjs +0 -1
- package/dist/Breadcrumbs.cjs +0 -1
- package/dist/Breadcrumbs.d.cts +0 -2
- package/dist/Breadcrumbs.d.mts +0 -2
- package/dist/Breadcrumbs.mjs +0 -1
- package/dist/Button.cjs +0 -1
- package/dist/Button.d.cts +0 -2
- package/dist/Button.d.mts +0 -2
- package/dist/Button.mjs +0 -1
- package/dist/ButtonIcon.cjs +0 -1
- package/dist/ButtonIcon.d.cts +0 -2
- package/dist/ButtonIcon.d.mts +0 -2
- package/dist/ButtonIcon.mjs +0 -1
- package/dist/Checkbox.cjs +0 -1
- package/dist/Checkbox.d.cts +0 -2
- package/dist/Checkbox.d.mts +0 -2
- package/dist/Checkbox.mjs +0 -1
- package/dist/Combobox.cjs +0 -1
- package/dist/Combobox.d.cts +0 -2
- package/dist/Combobox.d.mts +0 -2
- package/dist/Combobox.mjs +0 -1
- package/dist/DatePicker.cjs +0 -1
- package/dist/DatePicker.d.cts +0 -2
- package/dist/DatePicker.d.mts +0 -2
- package/dist/DatePicker.mjs +0 -1
- package/dist/FormInputText.cjs +0 -1
- package/dist/FormInputText.d.cts +0 -2
- package/dist/FormInputText.d.mts +0 -2
- package/dist/FormInputText.mjs +0 -1
- package/dist/Icon.cjs +0 -1
- package/dist/Icon.d.cts +0 -2
- package/dist/Icon.d.mts +0 -2
- package/dist/Icon.mjs +0 -1
- package/dist/IconRaw.cjs +0 -1
- package/dist/IconRaw.d.cts +0 -2
- package/dist/IconRaw.d.mts +0 -2
- package/dist/IconRaw.mjs +0 -1
- package/dist/InputText.cjs +0 -1
- package/dist/InputText.d.cts +0 -2
- package/dist/InputText.d.mts +0 -2
- package/dist/InputText.mjs +0 -1
- package/dist/MageUiProvider.cjs +0 -1
- package/dist/MageUiProvider.d.cts +0 -2
- package/dist/MageUiProvider.d.mts +0 -2
- package/dist/MageUiProvider.mjs +0 -1
- package/dist/Tabs.cjs +0 -1
- package/dist/Tabs.d.cts +0 -2
- package/dist/Tabs.d.mts +0 -2
- package/dist/Tabs.mjs +0 -1
- package/dist/VisuallyHidden.cjs +0 -1
- package/dist/VisuallyHidden.d.cts +0 -2
- package/dist/VisuallyHidden.d.mts +0 -2
- package/dist/VisuallyHidden.mjs +0 -1
- package/dist/_virtual/rolldown_runtime.cjs +0 -1
- package/dist/atoms/avatar/Avatar.cjs +0 -1
- package/dist/atoms/avatar/Avatar.d.cts +0 -22
- package/dist/atoms/avatar/Avatar.d.cts.map +0 -1
- package/dist/atoms/avatar/Avatar.d.mts.map +0 -1
- package/dist/atoms/avatar/Avatar.mjs +0 -2
- package/dist/atoms/avatar/Avatar.mjs.map +0 -1
- package/dist/atoms/badges/Badge.cjs +0 -1
- package/dist/atoms/badges/Badge.d.cts.map +0 -1
- package/dist/atoms/badges/Badge.d.mts +0 -26
- package/dist/atoms/badges/Badge.d.mts.map +0 -1
- package/dist/atoms/badges/Badge.mjs.map +0 -1
- package/dist/atoms/breadcrumbs/Breadcrumbs.cjs +0 -1
- package/dist/atoms/breadcrumbs/Breadcrumbs.d.cts +0 -34
- package/dist/atoms/breadcrumbs/Breadcrumbs.d.cts.map +0 -1
- package/dist/atoms/breadcrumbs/Breadcrumbs.d.mts.map +0 -1
- package/dist/atoms/breadcrumbs/Breadcrumbs.mjs.map +0 -1
- package/dist/atoms/buttons/Button.cjs +0 -1
- package/dist/atoms/buttons/Button.d.cts +0 -27
- package/dist/atoms/buttons/Button.d.cts.map +0 -1
- package/dist/atoms/buttons/Button.d.mts.map +0 -1
- package/dist/atoms/buttons/Button.mjs.map +0 -1
- package/dist/atoms/buttons/ButtonIcon.cjs +0 -1
- package/dist/atoms/buttons/ButtonIcon.d.cts +0 -24
- package/dist/atoms/buttons/ButtonIcon.d.cts.map +0 -1
- package/dist/atoms/buttons/ButtonIcon.d.mts.map +0 -1
- package/dist/atoms/buttons/ButtonIcon.mjs +0 -2
- package/dist/atoms/buttons/ButtonIcon.mjs.map +0 -1
- package/dist/atoms/forms/FormInputText.cjs +0 -1
- package/dist/atoms/forms/FormInputText.d.cts +0 -20
- package/dist/atoms/forms/FormInputText.d.cts.map +0 -1
- package/dist/atoms/forms/FormInputText.d.mts.map +0 -1
- package/dist/atoms/forms/FormInputText.mjs +0 -2
- package/dist/atoms/forms/FormInputText.mjs.map +0 -1
- package/dist/atoms/icon/Icon.cjs +0 -1
- package/dist/atoms/icon/Icon.d.cts +0 -21
- package/dist/atoms/icon/Icon.d.cts.map +0 -1
- package/dist/atoms/icon/Icon.d.mts.map +0 -1
- package/dist/atoms/icon/Icon.mjs +0 -2
- package/dist/atoms/icon/Icon.mjs.map +0 -1
- package/dist/atoms/icon/IconRaw.cjs +0 -1
- package/dist/atoms/icon/IconRaw.d.cts +0 -20
- package/dist/atoms/icon/IconRaw.d.cts.map +0 -1
- package/dist/atoms/icon/IconRaw.d.mts.map +0 -1
- package/dist/atoms/icon/IconRaw.mjs.map +0 -1
- package/dist/atoms/inputs/Checkbox.cjs +0 -1
- package/dist/atoms/inputs/Checkbox.d.cts +0 -23
- package/dist/atoms/inputs/Checkbox.d.cts.map +0 -1
- package/dist/atoms/inputs/Checkbox.d.mts.map +0 -1
- package/dist/atoms/inputs/Checkbox.mjs.map +0 -1
- package/dist/atoms/inputs/DatePicker.cjs +0 -1
- package/dist/atoms/inputs/DatePicker.d.cts +0 -46
- package/dist/atoms/inputs/DatePicker.d.cts.map +0 -1
- package/dist/atoms/inputs/DatePicker.d.mts +0 -46
- package/dist/atoms/inputs/DatePicker.d.mts.map +0 -1
- package/dist/atoms/inputs/DatePicker.mjs +0 -2
- package/dist/atoms/inputs/DatePicker.mjs.map +0 -1
- package/dist/atoms/inputs/InputText.cjs +0 -1
- package/dist/atoms/inputs/InputText.d.cts +0 -32
- package/dist/atoms/inputs/InputText.d.cts.map +0 -1
- package/dist/atoms/inputs/InputText.d.mts.map +0 -1
- package/dist/atoms/inputs/InputText.mjs +0 -2
- package/dist/atoms/inputs/InputText.mjs.map +0 -1
- package/dist/atoms/inputs/combobox/Combobox.cjs +0 -1
- package/dist/atoms/inputs/combobox/Combobox.d.cts +0 -46
- package/dist/atoms/inputs/combobox/Combobox.d.cts.map +0 -1
- package/dist/atoms/inputs/combobox/Combobox.d.mts.map +0 -1
- package/dist/atoms/inputs/combobox/Combobox.mjs +0 -2
- package/dist/atoms/inputs/combobox/Combobox.mjs.map +0 -1
- package/dist/atoms/inputs/combobox/ComboboxBase.cjs +0 -1
- package/dist/atoms/inputs/combobox/ComboboxBase.mjs +0 -2
- package/dist/atoms/inputs/combobox/ComboboxBase.mjs.map +0 -1
- package/dist/atoms/misc/VisuallyHidden.cjs +0 -1
- package/dist/atoms/misc/VisuallyHidden.d.cts +0 -16
- package/dist/atoms/misc/VisuallyHidden.d.cts.map +0 -1
- package/dist/atoms/misc/VisuallyHidden.d.mts +0 -16
- package/dist/atoms/misc/VisuallyHidden.d.mts.map +0 -1
- package/dist/atoms/misc/VisuallyHidden.mjs.map +0 -1
- package/dist/atoms/tabs/Tab.cjs +0 -1
- package/dist/atoms/tabs/Tab.d.cts.map +0 -1
- package/dist/atoms/tabs/Tab.d.mts +0 -17
- package/dist/atoms/tabs/Tab.d.mts.map +0 -1
- package/dist/atoms/tabs/Tab.mjs.map +0 -1
- package/dist/atoms/tabs/TabList.cjs +0 -1
- package/dist/atoms/tabs/TabList.d.cts +0 -13
- package/dist/atoms/tabs/TabList.d.cts.map +0 -1
- package/dist/atoms/tabs/TabList.d.mts.map +0 -1
- package/dist/atoms/tabs/TabList.mjs.map +0 -1
- package/dist/atoms/tabs/TabPanel.cjs +0 -1
- package/dist/atoms/tabs/TabPanel.d.cts.map +0 -1
- package/dist/atoms/tabs/TabPanel.d.mts +0 -13
- package/dist/atoms/tabs/TabPanel.d.mts.map +0 -1
- package/dist/atoms/tabs/TabPanel.mjs.map +0 -1
- package/dist/atoms/tabs/Tabs.cjs +0 -1
- package/dist/atoms/tabs/Tabs.d.cts +0 -53
- package/dist/atoms/tabs/Tabs.d.cts.map +0 -1
- package/dist/atoms/tabs/Tabs.d.mts.map +0 -1
- package/dist/atoms/tabs/Tabs.mjs +0 -2
- package/dist/atoms/tabs/Tabs.mjs.map +0 -1
- package/dist/providers/MageUiProvider.cjs +0 -1
- package/dist/providers/MageUiProvider.d.cts +0 -16
- package/dist/providers/MageUiProvider.d.cts.map +0 -1
- package/dist/providers/MageUiProvider.d.mts.map +0 -1
- package/dist/providers/MageUiProvider.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
|
-
//#region src/atoms/
|
|
3
|
+
//#region src/atoms/avatars/Avatar.d.ts
|
|
4
4
|
type AvatarProps = {
|
|
5
5
|
name: string;
|
|
6
6
|
src?: string;
|
|
@@ -14,9 +14,8 @@ declare const Avatar: ({
|
|
|
14
14
|
classNames,
|
|
15
15
|
...props
|
|
16
16
|
}: AvatarProps) => react_jsx_runtime1.JSX.Element;
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
17
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
20
18
|
|
|
19
|
+
//#endregion
|
|
21
20
|
export { Avatar as Avatar$1, AvatarProps };
|
|
22
|
-
//# sourceMappingURL=Avatar.d.
|
|
21
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","names":[],"sources":["../../../src/atoms/avatars/Avatar.tsx"],"sourcesContent":[],"mappings":";;;KAOY,WAAA;;;EAAA,UAAA,CAAA,EAAA;IAMC,IAAA,CAYZ,EAAA,MAAA;IAAA,KAAA,CAAA,EAAA,MAAA;IAZsB,WAAA,CAAA,EAAA,MAAA;EAAA,CAAA;CAAqC;AAY3D,cAZY,MAYZ,EAAA,CAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAZgD,WAYhD,EAAA,GAZ2D,kBAAA,CAAA,GAAA,CAAA,OAY3D"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{avatar as e,avatarImage as t,avatarPlaceholder as n}from"@mage-ui/styled-system/recipes";import{Avatar as r}from"@mantine/core";import{jsx as i}from"react/jsx-runtime";const a=({classNames:a,...o})=>i(r,{classNames:{root:a?.root??e(),image:a?.image??t(),placeholder:a?.placeholder??n(),...a},...o});export{a as Avatar};
|
|
2
|
+
//# sourceMappingURL=Avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.js","names":["Avatar","MantineAvatar"],"sources":["../../../src/atoms/avatars/Avatar.tsx"],"sourcesContent":["import {\n avatar,\n avatarImage,\n avatarPlaceholder,\n} from '@mage-ui/styled-system/recipes';\nimport { Avatar as MantineAvatar } from '@mantine/core';\n\nexport type AvatarProps = {\n name: string;\n src?: string;\n classNames?: { root?: string; image?: string; placeholder?: string };\n};\n\nexport const Avatar = ({ classNames, ...props }: AvatarProps) => {\n return (\n <MantineAvatar\n classNames={{\n root: classNames?.root ?? avatar(),\n image: classNames?.image ?? avatarImage(),\n placeholder: classNames?.placeholder ?? avatarPlaceholder(),\n ...classNames,\n }}\n {...props}\n />\n );\n};\n"],"mappings":"+KAaA,MAAaA,EAAS,CAAC,CAAE,aAAY,GAAG,EAAoB,GAExD,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,GAAY,MAAQ,GAAQ,CAClC,MAAO,GAAY,OAAS,GAAa,CACzC,YAAa,GAAY,aAAe,GAAmB,CAC3D,GAAG,CACJ,EACD,GAAI,GACJ"}
|
|
@@ -18,9 +18,8 @@ declare const Badge: ({
|
|
|
18
18
|
classNames,
|
|
19
19
|
...props
|
|
20
20
|
}: BadgeProps) => react_jsx_runtime2.JSX.Element;
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
21
|
//# sourceMappingURL=Badge.d.ts.map
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Badge as Badge$1, BadgeProps };
|
|
25
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","names":[],"sources":["../../../src/atoms/badges/Badge.tsx"],"sourcesContent":[],"mappings":";;;;KAKY,UAAA;;;IAAA,OAAA,CAAA,EAAU,MAAA;EAAA,CAAA;EAAA,QAKT,CAAM,EAAN,KAAA,CAAM,SAAA;EAAS,OAChB,CAAA,EAAA,KAAA,CAAM,SAAA;EAAS,SACP,CAAA,EAAN,KAAA,CAAM,SAAA;AAAS,CAAA;AAGhB,cAAA,KAqBZ,EAAA,CAAA;EAAA,QAAA;EAAA,OAAA;EAAA,SAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAfE,UAeF,EAAA,GAfY,kBAAA,CAAA,GAAA,CAAA,OAeZ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{badge as e,badgeSection as t}from"@mage-ui/styled-system/recipes";import{Badge as n}from"@mantine/core";import{jsx as r}from"react/jsx-runtime";const i=({children:i,endSlot:a,startSlot:o,classNames:s,...c})=>r(n,{classNames:{root:s?.root??e(),section:s?.section??t(),...s},leftSection:o,rightSection:a,...c,children:i});export{i as Badge};
|
|
2
|
-
//# sourceMappingURL=Badge.
|
|
2
|
+
//# sourceMappingURL=Badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.js","names":["Badge","MantineBadge"],"sources":["../../../src/atoms/badges/Badge.tsx"],"sourcesContent":["import type React from 'react';\n\nimport { badge, badgeSection } from '@mage-ui/styled-system/recipes';\nimport { Badge as MantineBadge } from '@mantine/core';\n\nexport type BadgeProps = {\n classNames?: {\n root?: string;\n section?: string;\n };\n children?: React.ReactNode;\n endSlot?: React.ReactNode;\n startSlot?: React.ReactNode;\n};\n\nexport const Badge = ({\n children,\n endSlot,\n startSlot,\n classNames,\n ...props\n}: BadgeProps) => {\n return (\n <MantineBadge\n classNames={{\n root: classNames?.root ?? badge(),\n section: classNames?.section ?? badgeSection(),\n ...classNames,\n }}\n leftSection={startSlot}\n rightSection={endSlot}\n {...props}\n >\n {children}\n </MantineBadge>\n );\n};\n"],"mappings":"uJAeA,MAAaA,EAAQ,CAAC,CACpB,WACA,UACA,YACA,aACA,GAAG,EACQ,GAET,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,GAAY,MAAQ,GAAO,CACjC,QAAS,GAAY,SAAW,GAAc,CAC9C,GAAG,CACJ,EACD,YAAa,EACb,aAAc,EACd,GAAI,EAEH,YACY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/breadcrumbs/Breadcrumbs.d.ts
|
|
@@ -17,7 +17,7 @@ declare const Breadcrumbs: {
|
|
|
17
17
|
separator,
|
|
18
18
|
children,
|
|
19
19
|
classNames
|
|
20
|
-
}: BreadcrumbsProps):
|
|
20
|
+
}: BreadcrumbsProps): react_jsx_runtime3.JSX.Element;
|
|
21
21
|
Item: {
|
|
22
22
|
({
|
|
23
23
|
children
|
|
@@ -28,7 +28,6 @@ declare const Breadcrumbs: {
|
|
|
28
28
|
type ItemProps = {
|
|
29
29
|
children: ReactNode;
|
|
30
30
|
};
|
|
31
|
-
|
|
32
31
|
//#endregion
|
|
33
32
|
export { Breadcrumbs as Breadcrumbs$1, BreadcrumbsProps };
|
|
34
|
-
//# sourceMappingURL=Breadcrumbs.d.
|
|
33
|
+
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","names":[],"sources":["../../../src/atoms/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":[],"mappings":";;;;KAWY,gBAAA;cACE;;IADF,IAAA,CAAA,EAAA,MAAA;IAAgB,IAAA,CAAA,EAAA,MAAA;IACd,IAAA,CAAA,EAAA,MAAA;IAOD,SAAA,CAAA,EAAA,MAAA;EAAS,CAAA;EAGT,QAAA,CAAA,EAHA,SA6CZ;CAAA;AAAA,cA1CY,WA0CZ,EAAA;;;;;KAtCE,mBAAgB,kBAAA,CAAA,GAAA,CAAA;;IAAhB,CAAA;MAAA;IAAA,CAAA,EAyDyB,SAzDzB,CAAA,EAyDkC,SAzDlC;IAAgB,WAAA,EAAA,MAAA;EAAA,CAAA;;KAqDd,SAAA,GAIgC;EAAA,QAAA,EAHzB,SAGyB;AAnBnC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{breadcrumbs as e}from"@mage-ui/styled-system/recipes";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{Children as i,cloneElement as a,isValidElement as o}from"react";const s=({separator:a=`/`,children:s,classNames:u})=>n(`nav`,{"aria-label":`breadcrumb`,className:u?.root??e().root,children:n(`ol`,{className:u?.list??e().list,children:i.map(s,(d,f)=>{if(o(d)&&d.type===l)return r(`li`,{className:u?.item??e().item,children:[f<i.count(s)-1&&r(t,{children:[d,n(`span`,{"aria-hidden":`true`,className:u?.separator??e().separator,children:a})]}),f===i.count(s)-1&&c(d)]},d.key)})})}),c=e=>{if(o(e)&&o(e.props.children)){let t=e.props.children;return a(t,{"aria-current":`page`,...t.props??{}})}return n(`span`,{"aria-current":`page`,children:e})},l=({children:e})=>e;l.displayName=`Breadcrumbs.Item`,s.Item=l;export{s as Breadcrumbs};
|
|
2
|
-
//# sourceMappingURL=Breadcrumbs.
|
|
2
|
+
//# sourceMappingURL=Breadcrumbs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.js","names":["child: Child"],"sources":["../../../src/atoms/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import {\n Children,\n cloneElement,\n type HTMLAttributes,\n isValidElement,\n type ReactElement,\n type ReactNode,\n} from 'react';\n\nimport { breadcrumbs } from '@mage-ui/styled-system/recipes';\n\nexport type BreadcrumbsProps = {\n separator?: ReactNode;\n classNames?: {\n root?: string;\n list?: string;\n item?: string;\n separator?: string;\n };\n children?: ReactNode;\n};\n\nexport const Breadcrumbs = ({\n separator = '/',\n children,\n classNames,\n}: BreadcrumbsProps) => {\n return (\n <nav\n aria-label='breadcrumb'\n className={classNames?.root ?? breadcrumbs().root}\n >\n <ol className={classNames?.list ?? breadcrumbs().list}>\n {Children.map(children, (child, index) => {\n if (\n isValidElement<{ children: ReactNode }>(child) &&\n child.type === Item\n ) {\n return (\n <li\n key={child.key}\n className={classNames?.item ?? breadcrumbs().item}\n >\n {index < Children.count(children) - 1 && (\n <>\n {child}\n <span\n aria-hidden='true'\n className={\n classNames?.separator ?? breadcrumbs().separator\n }\n >\n {separator}\n </span>\n </>\n )}\n {index === Children.count(children) - 1 && lastItem(child)}\n </li>\n );\n }\n })}\n </ol>\n </nav>\n );\n};\n\ntype Child = ReactElement<{ children?: ReactNode }>;\n\nconst lastItem = (child: Child) => {\n if (isValidElement(child) && isValidElement(child.props.children)) {\n const childChildren = child.props.children as Child;\n return cloneElement(childChildren, {\n 'aria-current': 'page',\n ...(childChildren.props ?? {}),\n } as HTMLAttributes<HTMLElement>);\n }\n return <span aria-current='page'>{child}</span>;\n};\n\ntype ItemProps = {\n children: ReactNode;\n};\n\nconst Item = ({ children }: ItemProps) => {\n return children;\n};\n\nItem.displayName = 'Breadcrumbs.Item';\nBreadcrumbs.Item = Item;\n"],"mappings":"oMAmFA,MA7Da,EAAc,CAAC,CAC1B,YAAY,IACZ,WACA,aACiB,GAEf,EAAC,MAAA,CACC,aAAW,aACX,UAAW,GAAY,MAAQ,GAAa,CAAC,cAE7C,EAAC,KAAA,CAAG,UAAW,GAAY,MAAQ,GAAa,CAAC,cAC9C,EAAS,IAAI,EAAU,CAAC,EAAO,IAAU,CACxC,GACE,EAAwC,EAAM,EAC9C,EAAM,OAAS,EAEf,MACE,GAAC,KAAA,CAEC,UAAW,GAAY,MAAQ,GAAa,CAAC,eAE5C,EAAQ,EAAS,MAAM,EAAS,CAAG,GAClC,EAAA,EAAA,CAAA,SAAA,CACG,EACD,EAAC,OAAA,CACC,cAAY,OACZ,UACE,GAAY,WAAa,GAAa,CAAC,mBAGxC,GACI,CAAA,EACN,CAEJ,IAAU,EAAS,MAAM,EAAS,CAAG,GAAK,EAAS,EAAM,GAhBrD,EAAM,IAiBR,AAGV,EAAC,EACC,EACD,CAMJ,EAAW,AAACA,GAAiB,CACjC,GAAI,EAAe,EAAM,EAAI,EAAe,EAAM,MAAM,SAAS,CAAE,CACjE,IAAM,EAAgB,EAAM,MAAM,SAClC,MAAO,GAAa,EAAe,CACjC,eAAgB,OAChB,GAAI,EAAc,OAAS,CAAE,CAC9B,EAAgC,AAClC,CACD,MAAO,GAAC,OAAA,CAAK,eAAa,gBAAQ,GAAa,AAChD,EAMK,EAAO,CAAC,CAAE,WAAqB,GAC5B,EAIT,AADA,EAAK,YAAc,mBACnB,EAAY,KAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/buttons/Button.d.ts
|
|
@@ -18,10 +18,9 @@ declare const Button: ({
|
|
|
18
18
|
endSlot,
|
|
19
19
|
children,
|
|
20
20
|
...props
|
|
21
|
-
}: ButtonProps) =>
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
21
|
+
}: ButtonProps) => react_jsx_runtime8.JSX.Element;
|
|
24
22
|
//# sourceMappingURL=Button.d.ts.map
|
|
25
23
|
|
|
24
|
+
//#endregion
|
|
26
25
|
export { Button as Button$1, ButtonProps };
|
|
27
|
-
//# sourceMappingURL=Button.d.
|
|
26
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","names":[],"sources":["../../../src/atoms/buttons/Button.tsx"],"sourcesContent":[],"mappings":";;;;KASY,WAAA,GAAc;;;IAAd,KAAA,CAAA,EAAA,MAAW;IAAA,OAAA,CAAA,EAAA,MAAA;EAAA,CAAA;EAAiB,SAM1B,CAAA,EAAA,SAAA;EAAS,OACX,CAAA,EAAA,SAAA;EAAS,QACR,CAAA,EAAA,SAAA;AAAS,CAAA;AAGT,cAAA,MAsBZ,EAAA,CAAA;EAAA,UAAA;EAAA,SAAA;EAAA,OAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAhBE,WAgBF,EAAA,GAhBa,kBAAA,CAAA,GAAA,CAAA,OAgBb"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{button as e,buttonInner as t,buttonSection as n}from"@mage-ui/styled-system/recipes";import{Button as r}from"@mantine/core";import{jsx as i}from"react/jsx-runtime";const a=({classNames:a,startSlot:o,endSlot:s,children:c,...l})=>i(r,{classNames:{root:a?.root??e(),inner:a?.inner??t(),section:a?.section??n(),...a},leftSection:o,rightSection:s,...l,children:c});export{a as Button};
|
|
2
|
-
//# sourceMappingURL=Button.
|
|
2
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","names":["Button","MantineButton"],"sources":["../../../src/atoms/buttons/Button.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\n\nimport {\n button,\n buttonInner,\n buttonSection,\n} from '@mage-ui/styled-system/recipes';\nimport { Button as MantineButton } from '@mantine/core';\n\nexport type ButtonProps = ComponentProps<'button'> & {\n classNames?: {\n root?: string;\n inner?: string;\n section?: string;\n };\n startSlot?: ReactNode;\n endSlot?: ReactNode;\n children?: ReactNode;\n};\n\nexport const Button = ({\n classNames,\n startSlot,\n endSlot,\n children,\n ...props\n}: ButtonProps) => {\n return (\n <MantineButton\n classNames={{\n root: classNames?.root ?? button(),\n inner: classNames?.inner ?? buttonInner(),\n section: classNames?.section ?? buttonSection(),\n ...classNames,\n }}\n leftSection={startSlot}\n rightSection={endSlot}\n {...props}\n >\n {children}\n </MantineButton>\n );\n};\n"],"mappings":"2KAoBA,MAAaA,EAAS,CAAC,CACrB,aACA,YACA,UACA,WACA,GAAG,EACS,GAEV,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,GAAY,MAAQ,GAAQ,CAClC,MAAO,GAAY,OAAS,GAAa,CACzC,QAAS,GAAY,SAAW,GAAe,CAC/C,GAAG,CACJ,EACD,YAAa,EACb,aAAc,EACd,GAAI,EAEH,YACa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ButtonProps } from "./Button.
|
|
2
|
-
import * as
|
|
1
|
+
import { ButtonProps } from "./Button.js";
|
|
2
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/buttons/ButtonIcon.d.ts
|
|
@@ -15,10 +15,9 @@ declare const ButtonIcon: ({
|
|
|
15
15
|
children,
|
|
16
16
|
classNames,
|
|
17
17
|
label
|
|
18
|
-
}: ButtonIconProps) =>
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
18
|
+
}: ButtonIconProps) => react_jsx_runtime7.JSX.Element;
|
|
21
19
|
//# sourceMappingURL=ButtonIcon.d.ts.map
|
|
22
20
|
|
|
21
|
+
//#endregion
|
|
23
22
|
export { ButtonIcon as ButtonIcon$1, ButtonIconProps };
|
|
24
|
-
//# sourceMappingURL=ButtonIcon.d.
|
|
23
|
+
//# sourceMappingURL=ButtonIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonIcon.d.ts","names":[],"sources":["../../../src/atoms/buttons/ButtonIcon.tsx"],"sourcesContent":[],"mappings":";;;;;KAQY,eAAA,GAAkB;YAClB,KAAA,CAAM;;EADN,UAAA,CAAA,EAAA;IAAe,IAAA,CAAA,EAAA,MAAA;IAAG,IAAA,CAAA,EAAA,MAAA;EAAW,CAAA;AACd,CAAA;AAQd,cAAA,UAiBZ,EAAA,CAAA;EAAA,QAAA;EAAA,UAAA;EAAA;AAAA,CAAA,EAbE,eAaF,EAAA,GAbiB,kBAAA,CAAA,GAAA,CAAA,OAajB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{VisuallyHidden as e}from"../misc/VisuallyHidden.js";import{buttonIcon as t,buttonIconIcon as n}from"@mage-ui/styled-system/recipes";import{ActionIcon as r}from"@mantine/core";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=({children:o,classNames:s,label:c})=>a(r,{classNames:{root:s?.root??t(),icon:s?.icon??n(),...s},children:[o,i(e,{children:c})]});export{o as ButtonIcon};
|
|
2
|
+
//# sourceMappingURL=ButtonIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonIcon.js","names":[],"sources":["../../../src/atoms/buttons/ButtonIcon.tsx"],"sourcesContent":["import type React from 'react';\n\nimport { buttonIcon, buttonIconIcon } from '@mage-ui/styled-system/recipes';\nimport { ActionIcon } from '@mantine/core';\n\nimport { VisuallyHidden } from '../misc/VisuallyHidden';\nimport type { ButtonProps } from './Button';\n\nexport type ButtonIconProps = ButtonProps & {\n children: React.ReactNode;\n label: string;\n classNames?: {\n root?: string;\n icon?: string;\n };\n};\n\nexport const ButtonIcon = ({\n children,\n classNames,\n label,\n}: ButtonIconProps) => {\n return (\n <ActionIcon\n classNames={{\n root: classNames?.root ?? buttonIcon(),\n icon: classNames?.icon ?? buttonIconIcon(),\n ...classNames,\n }}\n >\n {children}\n <VisuallyHidden>{label}</VisuallyHidden>\n </ActionIcon>\n );\n};\n"],"mappings":"wOAiBA,MAAa,EAAa,CAAC,CACzB,WACA,aACA,QACgB,GAEd,EAAC,EAAA,CACC,WAAY,CACV,KAAM,GAAY,MAAQ,GAAY,CACtC,KAAM,GAAY,MAAQ,GAAgB,CAC1C,GAAG,CACJ,YAEA,EACD,EAAC,EAAA,CAAA,SAAgB,CAAA,EAAuB,GAC7B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/atoms/carousel/Carousel.d.ts
|
|
5
|
+
type CarouselProps = {
|
|
6
|
+
classNames?: {
|
|
7
|
+
root?: string;
|
|
8
|
+
slide?: string;
|
|
9
|
+
container?: string;
|
|
10
|
+
viewport?: string;
|
|
11
|
+
controls?: string;
|
|
12
|
+
control?: string;
|
|
13
|
+
indicators?: string;
|
|
14
|
+
indicator?: string;
|
|
15
|
+
};
|
|
16
|
+
withIndicators?: boolean;
|
|
17
|
+
withControls?: boolean;
|
|
18
|
+
orientation?: 'horizontal' | 'vertical';
|
|
19
|
+
loop?: boolean;
|
|
20
|
+
dragFree?: boolean;
|
|
21
|
+
align?: 'start' | 'center' | 'end';
|
|
22
|
+
slidesToScroll?: number | 'auto';
|
|
23
|
+
slideSize?: string | number;
|
|
24
|
+
autoplay?: number;
|
|
25
|
+
nextControlIcon?: ReactNode;
|
|
26
|
+
previousControlIcon?: ReactNode;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
};
|
|
29
|
+
declare const Carousel: {
|
|
30
|
+
({
|
|
31
|
+
classNames,
|
|
32
|
+
...props
|
|
33
|
+
}: CarouselProps): react_jsx_runtime4.JSX.Element;
|
|
34
|
+
Slide: {
|
|
35
|
+
({
|
|
36
|
+
children
|
|
37
|
+
}: {
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
}): react_jsx_runtime4.JSX.Element;
|
|
40
|
+
displayName: string;
|
|
41
|
+
};
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=Carousel.d.ts.map
|
|
45
|
+
//#endregion
|
|
46
|
+
export { Carousel as Carousel$1, CarouselProps };
|
|
47
|
+
//# sourceMappingURL=Carousel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Carousel.d.ts","names":[],"sources":["../../../src/atoms/carousel/Carousel.tsx"],"sourcesContent":[],"mappings":";;;;KAgBY,aAAA;;;IAAA,KAAA,CAAA,EAAA,MAAa;IAAA,SAAA,CAAA,EAAA,MAAA;IAoBL,QAAA,CAAA,EAAA,MAAA;IACI,QAAA,CAAA,EAAA,MAAA;IACX,OAAA,CAAA,EAAA,MAAA;IAAS,UAAA,CAAA,EAAA,MAAA;IAGT,SA0CZ,CAAA,EAAA,MAAA;EAAA,CAAA;EAAA,cAAA,CAAA,EAAA,OAAA;cA1CkD,CAAA,EAAA,OAAA;EAAa,WAAA,CAAA,EAAA,YAAA,GAAA,UAAA;EAAA,IAAA,CAAA,EAAA,OAAA;UA4CvB,CAAA,EAAA,OAAA;EAAS,KAAE,CAAA,EAAA,OAAA,GAAA,QAAA,GAAA,KAAA;EAAA,cAAA,CAAA,EAAA,MAAA,GAAA,MAAA;;;oBAjDhC;wBACI;aACX;;cAGA;;;;KAAsC,gBAAa,kBAAA,CAAA,GAAA,CAAA;;;;;gBA4CvB;QAAW,kBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{carousel as e,carouselContainer as t,carouselControl as n,carouselControls as r,carouselIndicator as i,carouselIndicators as a,carouselSlide as o,carouselViewport as s}from"@mage-ui/styled-system/recipes";import{jsx as c}from"react/jsx-runtime";import{Children as l,isValidElement as u,useRef as d}from"react";import f from"embla-carousel-autoplay";import{Carousel as p}from"@mantine/carousel";const m=({classNames:m,...g})=>{let _=[],v=d(f({delay:g.autoplay??1e3}));return g.autoplay&&g.autoplay>0&&_.push(v.current),c(p,{classNames:{root:m?.root??e(),slide:m?.slide??o(),container:m?.container??t(),viewport:m?.viewport??s(),controls:m?.controls??r({variant:`outlined`,color:`primary`,size:`xs`}),control:m?.control??n(),indicators:m?.indicators??a(),indicator:m?.indicator??i()},plugins:_,onMouseEnter:v.current.stop,onMouseLeave:()=>v.current.play(),emblaOptions:{loop:g?.loop??!1,dragFree:g?.dragFree??!1,align:g?.align??`center`,slidesToScroll:g?.slidesToScroll??`auto`},...g,children:l.map(g.children,e=>u(e)&&e.type===h&&e)})},h=({children:e})=>c(p.Slide,{children:e});h.displayName=`Carousel.Slide`,m.Slide=h,m.displayName=`Carousel`;export{m as Carousel};
|
|
2
|
+
//# sourceMappingURL=Carousel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Carousel.js","names":["Carousel","plugins: EmblaPluginType[]","MantineCarousel"],"sources":["../../../src/atoms/carousel/Carousel.tsx"],"sourcesContent":["import type { EmblaPluginType } from 'embla-carousel';\nimport Autoplay from 'embla-carousel-autoplay';\nimport { Children, isValidElement, type ReactNode, useRef } from 'react';\n\nimport {\n carousel,\n carouselContainer,\n carouselControl,\n carouselControls,\n carouselIndicator,\n carouselIndicators,\n carouselSlide,\n carouselViewport,\n} from '@mage-ui/styled-system/recipes';\nimport { Carousel as MantineCarousel } from '@mantine/carousel';\n\nexport type CarouselProps = {\n classNames?: {\n root?: string;\n slide?: string;\n container?: string;\n viewport?: string;\n controls?: string;\n control?: string;\n indicators?: string;\n indicator?: string;\n };\n withIndicators?: boolean;\n withControls?: boolean;\n orientation?: 'horizontal' | 'vertical';\n loop?: boolean;\n dragFree?: boolean;\n align?: 'start' | 'center' | 'end';\n slidesToScroll?: number | 'auto';\n slideSize?: string | number;\n autoplay?: number;\n nextControlIcon?: ReactNode;\n previousControlIcon?: ReactNode;\n children?: ReactNode;\n};\n\nexport const Carousel = ({ classNames, ...props }: CarouselProps) => {\n const plugins: EmblaPluginType[] = [];\n const autoplay = useRef(Autoplay({ delay: props.autoplay ?? 1000 }));\n if (props.autoplay && props.autoplay > 0) {\n plugins.push(autoplay.current);\n }\n\n return (\n <MantineCarousel\n classNames={{\n root: classNames?.root ?? carousel(),\n slide: classNames?.slide ?? carouselSlide(),\n container: classNames?.container ?? carouselContainer(),\n viewport: classNames?.viewport ?? carouselViewport(),\n controls:\n classNames?.controls ??\n carouselControls({\n variant: 'outlined',\n color: 'primary',\n size: 'xs',\n }),\n control: classNames?.control ?? carouselControl(),\n indicators: classNames?.indicators ?? carouselIndicators(),\n indicator: classNames?.indicator ?? carouselIndicator(),\n }}\n plugins={plugins}\n onMouseEnter={autoplay.current.stop}\n onMouseLeave={() => autoplay.current.play()}\n emblaOptions={{\n loop: props?.loop ?? false,\n dragFree: props?.dragFree ?? false,\n align: props?.align ?? 'center',\n slidesToScroll: props?.slidesToScroll ?? 'auto',\n }}\n {...props}\n >\n {Children.map(\n props.children,\n (child) => isValidElement(child) && child.type === Slide && child,\n )}\n </MantineCarousel>\n );\n};\n\nconst Slide = ({ children }: { children: ReactNode }) => {\n return <MantineCarousel.Slide>{children}</MantineCarousel.Slide>;\n};\n\nSlide.displayName = 'Carousel.Slide';\nCarousel.Slide = Slide;\nCarousel.displayName = 'Carousel';\n"],"mappings":"iZAqFA,MA5CaA,EAAW,CAAC,CAAE,aAAY,GAAG,EAAsB,GAAK,CAEnE,IADMC,EAA6B,CAAE,EAC/B,EAAW,EAAO,EAAS,CAAE,MAAO,EAAM,UAAY,GAAM,EAAC,CAAC,CAKpE,OAJI,EAAM,UAAY,EAAM,SAAW,GACrC,EAAQ,KAAK,EAAS,QAAQ,CAI9B,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,GAAY,MAAQ,GAAU,CACpC,MAAO,GAAY,OAAS,GAAe,CAC3C,UAAW,GAAY,WAAa,GAAmB,CACvD,SAAU,GAAY,UAAY,GAAkB,CACpD,SACE,GAAY,UACZ,EAAiB,CACf,QAAS,WACT,MAAO,UACP,KAAM,IACP,EAAC,CACJ,QAAS,GAAY,SAAW,GAAiB,CACjD,WAAY,GAAY,YAAc,GAAoB,CAC1D,UAAW,GAAY,WAAa,GAAmB,AACxD,EACQ,UACT,aAAc,EAAS,QAAQ,KAC/B,aAAc,IAAM,EAAS,QAAQ,MAAM,CAC3C,aAAc,CACZ,KAAM,GAAO,OAAQ,EACrB,SAAU,GAAO,WAAY,EAC7B,MAAO,GAAO,OAAS,SACvB,eAAgB,GAAO,gBAAkB,MAC1C,EACD,GAAI,WAEH,EAAS,IACR,EAAM,SACN,AAAC,GAAU,EAAe,EAAM,EAAI,EAAM,OAAS,GAAS,EAC7D,EACe,AAErB,EAEK,EAAQ,CAAC,CAAE,WAAmC,GAC3C,EAACA,EAAgB,MAAA,CAAO,UAAA,EAAiC,CAKlE,AAFA,EAAM,YAAc,iBACpB,EAAS,MAAQ,EACjB,EAAS,YAAc"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputTextProps } from "../inputs/InputText.
|
|
2
|
-
import * as
|
|
1
|
+
import { InputTextProps } from "../inputs/InputText.js";
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
3
|
import { UseFormRegister } from "react-hook-form";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/forms/FormInputText.d.ts
|
|
@@ -11,10 +11,9 @@ declare const FormInputText: ({
|
|
|
11
11
|
register,
|
|
12
12
|
name,
|
|
13
13
|
...props
|
|
14
|
-
}: FormInputTextProps) =>
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
14
|
+
}: FormInputTextProps) => react_jsx_runtime6.JSX.Element;
|
|
17
15
|
//# sourceMappingURL=FormInputText.d.ts.map
|
|
18
16
|
|
|
17
|
+
//#endregion
|
|
19
18
|
export { FormInputText as FormInputText$1, FormInputTextProps };
|
|
20
|
-
//# sourceMappingURL=FormInputText.d.
|
|
19
|
+
//# sourceMappingURL=FormInputText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormInputText.d.ts","names":[],"sources":["../../../src/atoms/forms/FormInputText.tsx"],"sourcesContent":[],"mappings":";;;;;KAIY,kBAAA;aACC,gBAAgB;;AAD7B,CAAA,GAGI,cAHQ;AAAkB,cAKjB,aALiB,EAAA,CAAA;EAAA,QAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAS3B,kBAT2B,EAAA,GAST,kBAAA,CAAA,GAAA,CAAA,OATS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormInputText.js","names":[],"sources":["../../../src/atoms/forms/FormInputText.tsx"],"sourcesContent":["import type { UseFormRegister } from 'react-hook-form';\n\nimport { InputText, type InputTextProps } from '../inputs/InputText';\n\nexport type FormInputTextProps = {\n register?: UseFormRegister<Record<string, string>>;\n name: string;\n} & InputTextProps;\n\nexport const FormInputText = ({\n register,\n name,\n ...props\n}: FormInputTextProps) => {\n return <InputText {...props} {...register?.(name)} />;\n};\n"],"mappings":"2FASA,MAAa,EAAgB,CAAC,CAC5B,WACA,OACA,GAAG,EACgB,GACZ,EAAC,EAAA,CAAU,GAAI,EAAO,GAAI,IAAW,EAAK,EAAI"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconVariantProps } from "@mage-ui/styled-system/recipes";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
|
-
//#region src/atoms/
|
|
4
|
+
//#region src/atoms/icons/Icon.d.ts
|
|
5
5
|
type IconProps = {
|
|
6
6
|
name: string;
|
|
7
7
|
classNames?: {
|
|
@@ -13,9 +13,8 @@ declare const Icon: ({
|
|
|
13
13
|
name,
|
|
14
14
|
classNames
|
|
15
15
|
}: IconProps) => ReactNode;
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
16
|
//# sourceMappingURL=Icon.d.ts.map
|
|
19
17
|
|
|
18
|
+
//#endregion
|
|
20
19
|
export { Icon as Icon$1, IconProps };
|
|
21
|
-
//# sourceMappingURL=Icon.d.
|
|
20
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","names":[],"sources":["../../../src/atoms/icons/Icon.tsx"],"sourcesContent":[],"mappings":";;;;KASY,SAAA;;EAAA,UAAA,CAAA,EAAS;IAKR,IAOZ,EAAA,MAAA;IAAA,GAAA,EAAA,MAAA;EAAA,CAAA;CAPoB,GAFjB,gBAEiB;AAAsB,cAA9B,IAA8B,EAAA,CAAA;EAAA,IAAA;EAAA;AAAA,CAAA,EAAA,SAAA,EAAA,GAAY,SAAZ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{IconRaw as e}from"./IconRaw.js";import{icon as t}from"@mage-ui/styled-system/recipes";import{jsx as n}from"react/jsx-runtime";const r=({name:r,classNames:i})=>{let a=t();return n(`span`,{className:i?.root??a.root,"aria-hidden":`true`,children:n(e,{classNames:i??a,name:r})})};export{r as Icon};
|
|
2
|
+
//# sourceMappingURL=Icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.js","names":[],"sources":["../../../src/atoms/icons/Icon.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport {\n type IconVariantProps,\n icon as iconRecipe,\n} from '@mage-ui/styled-system/recipes';\n\nimport { IconRaw } from './IconRaw';\n\nexport type IconProps = {\n name: string;\n classNames?: { root: string; svg: string };\n} & IconVariantProps;\n\nexport const Icon = ({ name, classNames }: IconProps): ReactNode => {\n const classes = iconRecipe();\n return (\n <span className={classNames?.root ?? classes.root} aria-hidden='true'>\n <IconRaw classNames={classNames ?? classes} name={name} />\n </span>\n );\n};\n"],"mappings":"qIAcA,MAAa,EAAO,CAAC,CAAE,OAAM,aAAuB,GAAgB,CAClE,IAAM,EAAU,GAAY,CAC5B,MACE,GAAC,OAAA,CAAK,UAAW,GAAY,MAAQ,EAAQ,KAAM,cAAY,gBAC7D,EAAC,EAAA,CAAQ,WAAY,GAAc,EAAe,QAAQ,EACrD,AAEV"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconVariantProps } from "@mage-ui/styled-system/recipes";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
|
-
//#region src/atoms/
|
|
4
|
+
//#region src/atoms/icons/IconRaw.d.ts
|
|
5
5
|
type IconRawProps = {
|
|
6
6
|
name: string;
|
|
7
7
|
classNames?: {
|
|
@@ -12,9 +12,8 @@ declare const IconRaw: ({
|
|
|
12
12
|
name,
|
|
13
13
|
classNames
|
|
14
14
|
}: IconRawProps) => ReactNode;
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
15
|
//# sourceMappingURL=IconRaw.d.ts.map
|
|
18
16
|
|
|
17
|
+
//#endregion
|
|
19
18
|
export { IconRaw as IconRaw$1, IconRawProps };
|
|
20
|
-
//# sourceMappingURL=IconRaw.d.
|
|
19
|
+
//# sourceMappingURL=IconRaw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconRaw.d.ts","names":[],"sources":["../../../src/atoms/icons/IconRaw.tsx"],"sourcesContent":[],"mappings":";;;;KAOY,YAAA;;EAAA,UAAA,CAAA,EAAA;IAKC,GAAA,EAAA,MAQZ;EAAA,CAAA;CAAA,GAVG,gBAEoB;AAAA,cAAX,OAAW,EAAA,CAAA;EAAA,IAAA;EAAA;AAAA,CAAA,EAAsB,YAAtB,EAAA,GAAqC,SAArC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{icon as e}from"@mage-ui/styled-system/recipes";import{jsx as t,jsxs as n}from"react/jsx-runtime";const r=({name:r,classNames:i})=>{let a=e();return n(`svg`,{className:i?.svg??a.svg,children:[t(`title`,{children:r}),t(`use`,{href:`/icons/sprite.svg#${r}`})]})};export{r as IconRaw};
|
|
2
|
-
//# sourceMappingURL=IconRaw.
|
|
2
|
+
//# sourceMappingURL=IconRaw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconRaw.js","names":[],"sources":["../../../src/atoms/icons/IconRaw.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport {\n type IconVariantProps,\n icon as iconRecipe,\n} from '@mage-ui/styled-system/recipes';\n\nexport type IconRawProps = {\n name: string;\n classNames?: { svg: string };\n} & IconVariantProps;\n\nexport const IconRaw = ({ name, classNames }: IconRawProps): ReactNode => {\n const classes = iconRecipe();\n return (\n <svg className={classNames?.svg ?? classes.svg}>\n <title>{name}</title>\n <use href={`/icons/sprite.svg#${name}`} />\n </svg>\n );\n};\n"],"mappings":"wGAYA,MAAa,EAAU,CAAC,CAAE,OAAM,aAA0B,GAAgB,CACxE,IAAM,EAAU,GAAY,CAC5B,MACE,GAAC,MAAA,CAAI,UAAW,GAAY,KAAO,EAAQ,cACzC,EAAC,QAAA,CAAA,SAAO,CAAA,EAAa,CACrB,EAAC,MAAA,CAAI,MAAO,oBAAoB,EAAK,CAAA,EAAK,GACtC,AAET"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/atoms/icons/IconWrapped.d.ts
|
|
4
|
+
type IconWrappedProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
classNames?: {
|
|
7
|
+
root?: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare const IconWrapped: ({
|
|
11
|
+
children,
|
|
12
|
+
classNames,
|
|
13
|
+
...props
|
|
14
|
+
}: IconWrappedProps) => ReactNode;
|
|
15
|
+
//# sourceMappingURL=IconWrapped.d.ts.map
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { IconWrapped as IconWrapped$1, IconWrappedProps };
|
|
19
|
+
//# sourceMappingURL=IconWrapped.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconWrapped.d.ts","names":[],"sources":["../../../src/atoms/icons/IconWrapped.tsx"],"sourcesContent":[],"mappings":";;;KAKY,gBAAA;YACA;EADA,UAAA,CAAA,EAAA;IAOC,IAAA,CAAA,EAAA,MAiBZ;EAAA,CAAA;CAAA;AAjB2B,cAAf,WAAe,EAAA,CAAA;EAAA,QAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAIzB,gBAJyB,EAAA,GAIN,SAJM"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{iconWrapped as e}from"@mage-ui/styled-system/recipes";import{ThemeIcon as t}from"@mantine/core";import{jsx as n}from"react/jsx-runtime";const r=({children:r,classNames:i,...a})=>n(t,{classNames:{root:i?.root??e(),...i},autoContrast:!0,...a,children:r});export{r as IconWrapped};
|
|
2
|
+
//# sourceMappingURL=IconWrapped.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconWrapped.js","names":[],"sources":["../../../src/atoms/icons/IconWrapped.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { iconWrapped } from '@mage-ui/styled-system/recipes';\nimport { ThemeIcon } from '@mantine/core';\n\nexport type IconWrappedProps = {\n children: ReactNode;\n classNames?: {\n root?: string;\n };\n};\n\nexport const IconWrapped = ({\n children,\n classNames,\n ...props\n}: IconWrappedProps): ReactNode => {\n return (\n <ThemeIcon\n classNames={{\n root: classNames?.root ?? iconWrapped(),\n ...classNames,\n }}\n autoContrast={true}\n {...props}\n >\n {children}\n </ThemeIcon>\n );\n};\n"],"mappings":"+IAYA,MAAa,EAAc,CAAC,CAC1B,WACA,aACA,GAAG,EACc,GAEf,EAAC,EAAA,CACC,WAAY,CACV,KAAM,GAAY,MAAQ,GAAa,CACvC,GAAG,CACJ,EACD,cAAc,EACd,GAAI,EAEH,YACS"}
|
|
@@ -16,8 +16,8 @@ type CheckboxProps = {
|
|
|
16
16
|
declare const Checkbox: ({
|
|
17
17
|
classNames,
|
|
18
18
|
...props
|
|
19
|
-
}: CheckboxProps) => ReactNode;
|
|
20
|
-
|
|
19
|
+
}: CheckboxProps) => ReactNode;
|
|
21
20
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
21
|
+
//#endregion
|
|
22
22
|
export { Checkbox as Checkbox$1, CheckboxProps };
|
|
23
|
-
//# sourceMappingURL=Checkbox.d.
|
|
23
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","names":[],"sources":["../../../src/atoms/inputs/Checkbox.tsx"],"sourcesContent":[],"mappings":";;;KAeY,aAAA;;IAAA,YAAa,CAAA,EAAA,MAAA;IAaZ,mBAqBZ,CAAA,EAAA,MAAA;IAAA,aAAA,CAAA,EAAA,MAAA;IArBwB,YAAA,CAAA,EAAA,MAAA;IAGtB,aAAA,CAAA,EAAA,MAAA;IAAgB,aAAA,CAAA,EAAA,MAAA;IAkBlB,aAAA,CAAA,EAAA,MAAA;;;;cArBY;;;GAGV,kBAAgB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{checkboxBody as e,checkboxDescription as t,checkboxError as n,checkboxIcon as r,checkboxInner as i,checkboxInput as a,checkboxLabel as o,checkboxLabelWrapper as s}from"@mage-ui/styled-system/recipes";import{Checkbox as c}from"@mantine/core";import{jsx as l}from"react/jsx-runtime";import{cx as u}from"@mage-ui/styled-system/css";const d=({classNames:d,...f})=>l(c,{classNames:{body:d?.checkboxBody??e(),labelWrapper:d?.checkboxLabelWrapper??s(),label:d?.checkboxLabel??o(),description:d?.checkboxDescription??t(),error:d?.checkboxError??n(),input:u(d?.checkboxInput??a(),`peer`),inner:d?.checkboxInner??i(),icon:d?.checkboxIcon??r(),...d},...f});export{d as Checkbox};
|
|
2
|
-
//# sourceMappingURL=Checkbox.
|
|
2
|
+
//# sourceMappingURL=Checkbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.js","names":["Checkbox","CheckboxMantine"],"sources":["../../../src/atoms/inputs/Checkbox.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n checkboxBody,\n checkboxDescription,\n checkboxError,\n checkboxIcon,\n checkboxInner,\n checkboxInput,\n checkboxLabel,\n checkboxLabelWrapper,\n} from '@mage-ui/styled-system/recipes';\nimport { Checkbox as CheckboxMantine } from '@mantine/core';\n\nexport type CheckboxProps = {\n classNames?: {\n checkboxBody?: string;\n checkboxDescription?: string;\n checkboxError?: string;\n checkboxIcon?: string;\n checkboxInner?: string;\n checkboxInput?: string;\n checkboxLabel?: string;\n checkboxLabelWrapper?: string;\n };\n};\n\nexport const Checkbox = ({\n classNames,\n ...props\n}: CheckboxProps): ReactNode => {\n return (\n <CheckboxMantine\n classNames={{\n body: classNames?.checkboxBody ?? checkboxBody(),\n labelWrapper:\n classNames?.checkboxLabelWrapper ?? checkboxLabelWrapper(),\n label: classNames?.checkboxLabel ?? checkboxLabel(),\n description: classNames?.checkboxDescription ?? checkboxDescription(),\n error: classNames?.checkboxError ?? checkboxError(),\n input: cx(classNames?.checkboxInput ?? checkboxInput(), 'peer'),\n inner: classNames?.checkboxInner ?? checkboxInner(),\n icon: classNames?.checkboxIcon ?? checkboxIcon(),\n ...classNames,\n }}\n {...props}\n />\n );\n};\n"],"mappings":"gVA4BA,MAAaA,EAAW,CAAC,CACvB,aACA,GAAG,EACW,GAEZ,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,GAAY,cAAgB,GAAc,CAChD,aACE,GAAY,sBAAwB,GAAsB,CAC5D,MAAO,GAAY,eAAiB,GAAe,CACnD,YAAa,GAAY,qBAAuB,GAAqB,CACrE,MAAO,GAAY,eAAiB,GAAe,CACnD,MAAO,EAAG,GAAY,eAAiB,GAAe,CAAE,OAAO,CAC/D,MAAO,GAAY,eAAiB,GAAe,CACnD,KAAM,GAAY,cAAgB,GAAc,CAChD,GAAG,CACJ,EACD,GAAI,GACJ"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/atoms/inputs/DatePicker.d.ts
|
|
4
|
+
type DatePickerProps = {
|
|
5
|
+
required?: boolean;
|
|
6
|
+
texts?: {
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
error?: string;
|
|
11
|
+
};
|
|
12
|
+
classNames?: InputClassNamesType & CalenderHeaderClassNamesType & CalendarMonthClassNamesType & CalendarMonthsListClassNamesType & CalendarYearsListClassNamesType & PopoverClassNamesType;
|
|
13
|
+
inputWrapperOrder?: Array<'input' | 'label' | 'description' | 'error'>;
|
|
14
|
+
};
|
|
15
|
+
declare const DatePicker: ({
|
|
16
|
+
required,
|
|
17
|
+
classNames,
|
|
18
|
+
inputWrapperOrder,
|
|
19
|
+
texts,
|
|
20
|
+
...props
|
|
21
|
+
}: DatePickerProps) => ReactNode;
|
|
22
|
+
type InputClassNamesType = {
|
|
23
|
+
root?: string;
|
|
24
|
+
wrapper?: string;
|
|
25
|
+
input?: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
error?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
section?: string;
|
|
31
|
+
};
|
|
32
|
+
type CalenderHeaderClassNamesType = {
|
|
33
|
+
datepickerDropdown?: string;
|
|
34
|
+
calendarHeaderControl?: string;
|
|
35
|
+
calendarHeader?: string;
|
|
36
|
+
calendarHeaderLevel?: string;
|
|
37
|
+
calendarHeaderControlIcon?: string;
|
|
38
|
+
};
|
|
39
|
+
type CalendarMonthClassNamesType = {
|
|
40
|
+
calendarMonth?: string;
|
|
41
|
+
calendarWeekDaysRow?: string;
|
|
42
|
+
calendarWeekDay?: string;
|
|
43
|
+
calendarMonthRow?: string;
|
|
44
|
+
calendarMonthCell?: string;
|
|
45
|
+
calendarDay?: string;
|
|
46
|
+
};
|
|
47
|
+
type CalendarMonthsListClassNamesType = {
|
|
48
|
+
calendarMonthsList?: string;
|
|
49
|
+
calendarMonthsListRow?: string;
|
|
50
|
+
calendarMonthsListCell?: string;
|
|
51
|
+
calendarMonthsListControl?: string;
|
|
52
|
+
};
|
|
53
|
+
type CalendarYearsListClassNamesType = {
|
|
54
|
+
calendarYearsList?: string;
|
|
55
|
+
calendarYearsListRow?: string;
|
|
56
|
+
calendarYearsListCell?: string;
|
|
57
|
+
calendarYearsListControl?: string;
|
|
58
|
+
};
|
|
59
|
+
type PopoverClassNamesType = {
|
|
60
|
+
datepickerDropdown?: string;
|
|
61
|
+
};
|
|
62
|
+
//#endregion
|
|
63
|
+
export { DatePicker as DatePicker$1, DatePickerProps };
|
|
64
|
+
//# sourceMappingURL=DatePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","names":[],"sources":["../../../src/atoms/inputs/DatePicker.tsx"],"sourcesContent":[],"mappings":";;;KAsCY,eAAA;;EAAA,KAAA,CAAA,EAAA;IAAe,KAAA,CAAA,EAAA,MAAA;IAQZ,WAAA,CAAA,EAAA,MAAA;IACX,WAAA,CAAA,EAAA,MAAA;IACA,KAAA,CAAA,EAAA,MAAA;EAA2B,CAAA;EACK,UAChC,CAAA,EAJW,mBAIX,GAHA,4BAGA,GAFA,2BAEA,GADA,gCACA,GAAA,+BAAA,GACA,qBADA;EAA+B,iBAC/B,CAAA,EACkB,KADlB,CAAA,OAAA,GAAA,OAAA,GAAA,aAAA,GAAA,OAAA,CAAA;CAAqB;AACE,cAGd,UAHc,EAAA,CAAA;EAAA,QAAA;EAAA,UAAA;EAAA,iBAAA;EAAA,KAAA;EAAA,GAAA;AAAA,CAAA,EAcxB,eAdwB,EAAA,GAcN,SAdM;AAG3B,KA+BK,mBAAA,GAFJ;EAAA,IAAA,CAAA,EAAA,MAAA;EAAA,OA7B0B,CAAA,EAAA,MAAA;EAAA,KAAA,CAAA,EAAA,MAAA;EAAA,KAAA,CAAA,EAAA,MAAA;EAAA,KAAA,CAAA,EAAA,MAAA;EAAA,WAWxB,CAAA,EAAA,MAAA;EAAe,WAAG,CAAA,EAAA,MAAA;EAkBpB,OAAA,CAAA,EAAA,MAAA;AAAC,CAAA;AAEsB,KAwBnB,4BAAA,GAA4B;EAsB5B,kBAAA,CAAA,EAAA,MAAA;EAoBA,qBAAA,CAAA,EAAA,MAAA;EAoBA,cAAA,CAAA,EAAA,MAAA;EAmBA,mBAAA,CAAA,EAAA,MAAqB;;;KA3DrB,2BAAA;;;;;;;;KAoBA,gCAAA;;;;;;KAoBA,+BAAA;;;;;;KAmBA,qBAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Icon as e}from"../icons/Icon.js";import{calendarControl as t,calendarDay as n,calendarHeader as r,calendarHeaderControlIcon as i,calendarHeaderLevel as a,calendarMonth as o,calendarMonthCell as s,calendarMonthRow as c,calendarMonthsList as l,calendarMonthsListCell as u,calendarMonthsListControl as d,calendarMonthsListRow as f,calendarWeekDay as p,calendarWeekDaysRow as m,calendarYearsList as h,calendarYearsListCell as g,calendarYearsListControl as _,calendarYearsListRow as v,datepickerDropdown as y,datepickerInput as b,icon as x,input as S,inputDescription as C,inputError as w,inputLabel as T,inputPlaceholder as E,inputRoot as D,inputSection as O,inputWrapper as k}from"@mage-ui/styled-system/recipes";import{jsx as A}from"react/jsx-runtime";import{cx as j}from"@mage-ui/styled-system/css";import{DatePickerInput as M}from"@mantine/dates";const N=({required:t,classNames:n,inputWrapperOrder:r,texts:i={label:``,placeholder:``,description:``,error:``},...a})=>A(M,{label:i.label,placeholder:i.placeholder,description:i.description,error:i.error,required:t,withAsterisk:t,inputWrapperOrder:r,classNames:B(n),popoverProps:{classNames:z(n)},rightSection:A(e,{name:`calendar`,classNames:x({size:`m`})}),...a}),P=e=>({root:e?.root??D(),wrapper:e?.wrapper??k(),input:e?.input??j(S(),b()),label:e?.label??T(),error:e?.error??w(),description:e?.description??C(),placeholder:e?.placeholder??E(),section:e?.section??O({pointerEvents:`none`})}),F=e=>({calendarHeaderControl:e?.calendarHeaderControl??t(),calendarHeader:e?.calendarHeader??r(),calendarHeaderLevel:e?.calendarHeaderLevel??a(),calendarHeaderControlIcon:e?.calendarHeaderControlIcon??i()}),I=e=>({month:e?.calendarMonth??o(),weekdaysRow:e?.calendarWeekDaysRow??m(),weekday:e?.calendarWeekDay??p(),monthRow:e?.calendarMonthRow??c(),monthCell:e?.calendarMonthCell??s(),day:e?.calendarDay??n()}),L=e=>({monthsList:e?.calendarMonthsList??l(),monthsListRow:e?.calendarMonthsListRow??f(),monthsListCell:e?.calendarMonthsListCell??u(),monthsListControl:e?.calendarMonthsListControl??d()}),R=e=>({yearsList:e?.calendarYearsList??h(),yearsListRow:e?.calendarYearsListRow??v(),yearsListCell:e?.calendarYearsListCell??g(),yearsListControl:e?.calendarYearsListControl??_()}),z=e=>({dropdown:e?.datepickerDropdown??y()}),B=e=>({...P(e),...F(e),...I(e),...L(e),...R(e)});export{N as DatePicker};
|
|
2
|
+
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePicker.js","names":["classNames?: InputClassNamesType","classNames?: CalenderHeaderClassNamesType","classNames?: CalendarMonthClassNamesType","classNames?: CalendarMonthsListClassNamesType","classNames?: CalendarYearsListClassNamesType","classNames?: PopoverClassNamesType","classNames?: DatePickerProps['classNames']"],"sources":["../../../src/atoms/inputs/DatePicker.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n calendarControl,\n calendarDay,\n calendarHeader,\n calendarHeaderControlIcon,\n calendarHeaderLevel,\n calendarMonth,\n calendarMonthCell,\n calendarMonthRow,\n calendarMonthsList,\n calendarMonthsListCell,\n calendarMonthsListControl,\n calendarMonthsListRow,\n calendarWeekDay,\n calendarWeekDaysRow,\n calendarYearsList,\n calendarYearsListCell,\n calendarYearsListControl,\n calendarYearsListRow,\n inputError as datePickerError,\n datepickerDropdown,\n datepickerInput,\n icon,\n input,\n inputDescription,\n inputLabel,\n inputPlaceholder,\n inputRoot,\n inputSection,\n inputWrapper,\n} from '@mage-ui/styled-system/recipes';\nimport { DatePickerInput } from '@mantine/dates';\n\nimport { Icon } from '../icons/Icon';\n\nexport type DatePickerProps = {\n required?: boolean;\n texts?: {\n label?: string;\n placeholder?: string;\n description?: string;\n error?: string;\n };\n classNames?: InputClassNamesType &\n CalenderHeaderClassNamesType &\n CalendarMonthClassNamesType &\n CalendarMonthsListClassNamesType &\n CalendarYearsListClassNamesType &\n PopoverClassNamesType;\n inputWrapperOrder?: Array<'input' | 'label' | 'description' | 'error'>;\n};\n\nexport const DatePicker = ({\n required,\n classNames,\n inputWrapperOrder,\n texts = {\n label: '',\n placeholder: '',\n description: '',\n error: '',\n },\n ...props\n}: DatePickerProps): ReactNode => {\n return (\n <DatePickerInput\n label={texts.label}\n placeholder={texts.placeholder}\n description={texts.description}\n error={texts.error}\n required={required}\n withAsterisk={required}\n inputWrapperOrder={inputWrapperOrder}\n classNames={datePickerClassNames(classNames)}\n popoverProps={{\n classNames: popoverClassNames(classNames),\n }}\n rightSection={<Icon name='calendar' classNames={icon({ size: 'm' })} />}\n {...props}\n />\n );\n};\n\ntype InputClassNamesType = {\n root?: string;\n wrapper?: string;\n input?: string;\n label?: string;\n error?: string;\n description?: string;\n placeholder?: string;\n section?: string;\n};\n\nconst inputClassNames = (classNames?: InputClassNamesType) => {\n return {\n root: classNames?.root ?? inputRoot(),\n wrapper: classNames?.wrapper ?? inputWrapper(),\n input: classNames?.input ?? cx(input(), datepickerInput()),\n label: classNames?.label ?? inputLabel(),\n error: classNames?.error ?? datePickerError(),\n description: classNames?.description ?? inputDescription(),\n placeholder: classNames?.placeholder ?? inputPlaceholder(),\n section: classNames?.section ?? inputSection({ pointerEvents: 'none' }),\n };\n};\n\ntype CalenderHeaderClassNamesType = {\n datepickerDropdown?: string;\n calendarHeaderControl?: string;\n calendarHeader?: string;\n calendarHeaderLevel?: string;\n calendarHeaderControlIcon?: string;\n};\n\nconst calendarHeaderClassNames = (\n classNames?: CalenderHeaderClassNamesType,\n) => {\n return {\n calendarHeaderControl:\n classNames?.calendarHeaderControl ?? calendarControl(),\n calendarHeader: classNames?.calendarHeader ?? calendarHeader(),\n calendarHeaderLevel:\n classNames?.calendarHeaderLevel ?? calendarHeaderLevel(),\n calendarHeaderControlIcon:\n classNames?.calendarHeaderControlIcon ?? calendarHeaderControlIcon(),\n };\n};\n\ntype CalendarMonthClassNamesType = {\n calendarMonth?: string;\n calendarWeekDaysRow?: string;\n calendarWeekDay?: string;\n calendarMonthRow?: string;\n calendarMonthCell?: string;\n calendarDay?: string;\n};\n\nconst calendarMonthClassNames = (classNames?: CalendarMonthClassNamesType) => {\n return {\n month: classNames?.calendarMonth ?? calendarMonth(),\n weekdaysRow: classNames?.calendarWeekDaysRow ?? calendarWeekDaysRow(),\n weekday: classNames?.calendarWeekDay ?? calendarWeekDay(),\n monthRow: classNames?.calendarMonthRow ?? calendarMonthRow(),\n monthCell: classNames?.calendarMonthCell ?? calendarMonthCell(),\n day: classNames?.calendarDay ?? calendarDay(),\n };\n};\n\ntype CalendarMonthsListClassNamesType = {\n calendarMonthsList?: string;\n calendarMonthsListRow?: string;\n calendarMonthsListCell?: string;\n calendarMonthsListControl?: string;\n};\n\nconst calendarMonthsListClassNames = (\n classNames?: CalendarMonthsListClassNamesType,\n) => {\n return {\n monthsList: classNames?.calendarMonthsList ?? calendarMonthsList(),\n monthsListRow: classNames?.calendarMonthsListRow ?? calendarMonthsListRow(),\n monthsListCell:\n classNames?.calendarMonthsListCell ?? calendarMonthsListCell(),\n monthsListControl:\n classNames?.calendarMonthsListControl ?? calendarMonthsListControl(),\n };\n};\n\ntype CalendarYearsListClassNamesType = {\n calendarYearsList?: string;\n calendarYearsListRow?: string;\n calendarYearsListCell?: string;\n calendarYearsListControl?: string;\n};\n\nconst calendarYearsListClassNames = (\n classNames?: CalendarYearsListClassNamesType,\n) => {\n return {\n yearsList: classNames?.calendarYearsList ?? calendarYearsList(),\n yearsListRow: classNames?.calendarYearsListRow ?? calendarYearsListRow(),\n yearsListCell: classNames?.calendarYearsListCell ?? calendarYearsListCell(),\n yearsListControl:\n classNames?.calendarYearsListControl ?? calendarYearsListControl(),\n };\n};\n\ntype PopoverClassNamesType = {\n datepickerDropdown?: string;\n};\n\nconst popoverClassNames = (classNames?: PopoverClassNamesType) => {\n return {\n dropdown: classNames?.datepickerDropdown ?? datepickerDropdown(),\n };\n};\n\nconst datePickerClassNames = (classNames?: DatePickerProps['classNames']) => {\n return {\n ...inputClassNames(classNames),\n ...calendarHeaderClassNames(classNames),\n ...calendarMonthClassNames(classNames),\n ...calendarMonthsListClassNames(classNames),\n ...calendarYearsListClassNames(classNames),\n };\n};\n"],"mappings":"s1BAyMA,MAlJa,EAAa,CAAC,CACzB,WACA,aACA,oBACA,QAAQ,CACN,MAAO,GACP,YAAa,GACb,YAAa,GACb,MAAO,EACR,EACD,GAAG,EACa,GAEd,EAAC,EAAA,CACC,MAAO,EAAM,MACb,YAAa,EAAM,YACnB,YAAa,EAAM,YACnB,MAAO,EAAM,MACH,WACV,aAAc,EACK,oBACnB,WAAY,EAAqB,EAAW,CAC5C,aAAc,CACZ,WAAY,EAAkB,EAAW,AAC1C,EACD,aAAc,EAAC,EAAA,CAAK,KAAK,WAAW,WAAY,EAAK,CAAE,KAAM,GAAK,EAAC,EAAI,CACvE,GAAI,GACJ,CAeA,EAAkB,AAACA,IAChB,CACL,KAAM,GAAY,MAAQ,GAAW,CACrC,QAAS,GAAY,SAAW,GAAc,CAC9C,MAAO,GAAY,OAAS,EAAG,GAAO,CAAE,GAAiB,CAAC,CAC1D,MAAO,GAAY,OAAS,GAAY,CACxC,MAAO,GAAY,OAAS,GAAiB,CAC7C,YAAa,GAAY,aAAe,GAAkB,CAC1D,YAAa,GAAY,aAAe,GAAkB,CAC1D,QAAS,GAAY,SAAW,EAAa,CAAE,cAAe,MAAQ,EAAC,AACxE,GAWG,EAA2B,AAC/BC,IAEO,CACL,sBACE,GAAY,uBAAyB,GAAiB,CACxD,eAAgB,GAAY,gBAAkB,GAAgB,CAC9D,oBACE,GAAY,qBAAuB,GAAqB,CAC1D,0BACE,GAAY,2BAA6B,GAA2B,AACvE,GAYG,EAA0B,AAACC,IACxB,CACL,MAAO,GAAY,eAAiB,GAAe,CACnD,YAAa,GAAY,qBAAuB,GAAqB,CACrE,QAAS,GAAY,iBAAmB,GAAiB,CACzD,SAAU,GAAY,kBAAoB,GAAkB,CAC5D,UAAW,GAAY,mBAAqB,GAAmB,CAC/D,IAAK,GAAY,aAAe,GAAa,AAC9C,GAUG,EAA+B,AACnCC,IAEO,CACL,WAAY,GAAY,oBAAsB,GAAoB,CAClE,cAAe,GAAY,uBAAyB,GAAuB,CAC3E,eACE,GAAY,wBAA0B,GAAwB,CAChE,kBACE,GAAY,2BAA6B,GAA2B,AACvE,GAUG,EAA8B,AAClCC,IAEO,CACL,UAAW,GAAY,mBAAqB,GAAmB,CAC/D,aAAc,GAAY,sBAAwB,GAAsB,CACxE,cAAe,GAAY,uBAAyB,GAAuB,CAC3E,iBACE,GAAY,0BAA4B,GAA0B,AACrE,GAOG,EAAoB,AAACC,IAClB,CACL,SAAU,GAAY,oBAAsB,GAAoB,AACjE,GAGG,EAAuB,AAACC,IACrB,CACL,GAAG,EAAgB,EAAW,CAC9B,GAAG,EAAyB,EAAW,CACvC,GAAG,EAAwB,EAAW,CACtC,GAAG,EAA6B,EAAW,CAC3C,GAAG,EAA4B,EAAW,AAC3C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/inputs/InputText.d.ts
|
|
@@ -17,16 +17,17 @@ type InputTextProps = Omit<ComponentProps<'input'>, 'size'> & {
|
|
|
17
17
|
};
|
|
18
18
|
startSlot?: ReactNode;
|
|
19
19
|
endSlot?: ReactNode;
|
|
20
|
+
inputWrapperOrder?: Array<'input' | 'label' | 'description' | 'error'>;
|
|
20
21
|
};
|
|
21
22
|
declare const InputText: ({
|
|
22
23
|
classNames,
|
|
23
24
|
startSlot,
|
|
24
25
|
endSlot,
|
|
26
|
+
inputWrapperOrder,
|
|
25
27
|
...props
|
|
26
|
-
}: InputTextProps) =>
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
28
|
+
}: InputTextProps) => react_jsx_runtime16.JSX.Element;
|
|
29
29
|
//# sourceMappingURL=InputText.d.ts.map
|
|
30
30
|
|
|
31
|
+
//#endregion
|
|
31
32
|
export { InputText as InputText$1, InputTextProps };
|
|
32
|
-
//# sourceMappingURL=InputText.d.
|
|
33
|
+
//# sourceMappingURL=InputText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputText.d.ts","names":[],"sources":["../../../src/atoms/inputs/InputText.tsx"],"sourcesContent":[],"mappings":";;;;KAcY,cAAA,GAAiB,KAAK;;;EAAtB,KAAA,CAAA,EAAA,MAAA;EAAc,UAAA,CAAA,EAAA;IAAQ,IAAA,CAAA,EAAA,MAAA;IAAL,KAAA,CAAA,EAAA,MAAA;IAaf,WAAA,CAAA,EAAA,MAAA;IACF,KAAA,CAAA,EAAA,MAAA;IACU,OAAA,CAAA,EAAA,MAAA;IAAK,KAAA,CAAA,EAAA,MAAA;IAGd,OAAA,CA0BZ,EAAA,MAAA;EAAA,CAAA;EAAA,SA1ByB,CAAA,EALZ,SAKY;EAAA,OAAA,CAAA,EAJd,SAIc;EAAA,iBAAA,CAAA,EAHJ,KAGI,CAAA,OAAA,GAAA,OAAA,GAAA,aAAA,GAAA,OAAA,CAAA;CAAA;AAMvB,cANU,SAMV,EAAA,CAAA;EAAA,UAAA;EAAA,SAAA;EAAA,OAAA;EAAA,iBAAA;EAAA,GAAA;AAAA,CAAA,EAAA,cAAA,EAAA,GAAc,mBAAA,CAAA,GAAA,CAAA,OAAd"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{input as e,inputDescription as t,inputError as n,inputLabel as r,inputRoot as i,inputSection as a,inputWrapper as o}from"@mage-ui/styled-system/recipes";import{TextInput as s}from"@mantine/core";import{jsx as c}from"react/jsx-runtime";import{cx as l}from"@mage-ui/styled-system/css";const u=({classNames:u,startSlot:d,endSlot:f,inputWrapperOrder:p,...m})=>c(s,{classNames:{root:l(u?.root??i(),`group`),label:u?.label??r(),required:u?.label??r(),description:u?.description??t(),error:u?.error??n(),wrapper:u?.wrapper??o(),input:u?.input??e(),section:u?.section??a(),...u},leftSection:d,rightSection:f,inputWrapperOrder:p,...m});export{u as InputText};
|
|
2
|
+
//# sourceMappingURL=InputText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputText.js","names":[],"sources":["../../../src/atoms/inputs/InputText.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n input,\n inputDescription,\n inputError,\n inputLabel,\n inputRoot,\n inputSection,\n inputWrapper,\n} from '@mage-ui/styled-system/recipes';\nimport { TextInput } from '@mantine/core';\n\nexport type InputTextProps = Omit<ComponentProps<'input'>, 'size'> & {\n label?: string;\n description?: string;\n error?: string;\n classNames?: {\n root?: string;\n label?: string;\n description?: string;\n error?: string;\n wrapper?: string;\n input?: string;\n section?: string;\n };\n startSlot?: ReactNode;\n endSlot?: ReactNode;\n inputWrapperOrder?: Array<'input' | 'label' | 'description' | 'error'>;\n};\n\nexport const InputText = ({\n classNames,\n startSlot,\n endSlot,\n inputWrapperOrder,\n ...props\n}: InputTextProps) => {\n return (\n <TextInput\n classNames={{\n root: cx(classNames?.root ?? inputRoot(), 'group'),\n label: classNames?.label ?? inputLabel(),\n required: classNames?.label ?? inputLabel(),\n description: classNames?.description ?? inputDescription(),\n error: classNames?.error ?? inputError(),\n wrapper: classNames?.wrapper ?? inputWrapper(),\n input: classNames?.input ?? input(),\n section: classNames?.section ?? inputSection(),\n ...classNames,\n }}\n leftSection={startSlot}\n rightSection={endSlot}\n inputWrapperOrder={inputWrapperOrder}\n {...props}\n />\n );\n};\n"],"mappings":"kSAgCA,MAAa,EAAY,CAAC,CACxB,aACA,YACA,UACA,oBACA,GAAG,EACY,GAEb,EAAC,EAAA,CACC,WAAY,CACV,KAAM,EAAG,GAAY,MAAQ,GAAW,CAAE,QAAQ,CAClD,MAAO,GAAY,OAAS,GAAY,CACxC,SAAU,GAAY,OAAS,GAAY,CAC3C,YAAa,GAAY,aAAe,GAAkB,CAC1D,MAAO,GAAY,OAAS,GAAY,CACxC,QAAS,GAAY,SAAW,GAAc,CAC9C,MAAO,GAAY,OAAS,GAAO,CACnC,QAAS,GAAY,SAAW,GAAc,CAC9C,GAAG,CACJ,EACD,YAAa,EACb,aAAc,EACK,oBACnB,GAAI,GACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/inputs/combobox/Combobox.d.ts
|
|
4
4
|
type ComboboxProps = {
|
|
@@ -30,6 +30,7 @@ type ComboboxProps = {
|
|
|
30
30
|
empty: string;
|
|
31
31
|
create: string;
|
|
32
32
|
};
|
|
33
|
+
inputWrapperOrder?: Array<'label' | 'description' | 'input' | 'error'>;
|
|
33
34
|
};
|
|
34
35
|
declare const Combobox: ({
|
|
35
36
|
selectedOption,
|
|
@@ -38,9 +39,10 @@ declare const Combobox: ({
|
|
|
38
39
|
creatable,
|
|
39
40
|
classNames,
|
|
40
41
|
texts,
|
|
42
|
+
inputWrapperOrder,
|
|
41
43
|
...props
|
|
42
|
-
}: ComboboxProps) =>
|
|
43
|
-
|
|
44
|
+
}: ComboboxProps) => react_jsx_runtime17.JSX.Element;
|
|
44
45
|
//# sourceMappingURL=Combobox.d.ts.map
|
|
46
|
+
//#endregion
|
|
45
47
|
export { Combobox as Combobox$1, ComboboxProps };
|
|
46
|
-
//# sourceMappingURL=Combobox.d.
|
|
48
|
+
//# sourceMappingURL=Combobox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Combobox.d.ts","names":[],"sources":["../../../../src/atoms/inputs/combobox/Combobox.tsx"],"sourcesContent":[],"mappings":";;;KAWY,aAAA;;;IAAA,KAAA,EAAA,MAAa;EAuBZ,CAAA,GAAA,SA4EZ;EAAA,iBAAA,EAAA,CAAA,KAAA,EAAA;IA5EwB,EAAA,EAAA,MAAA;IAAA,KAAA,EAAA,MAAA;EAAA,CAAA,GAAA,SAAA,EAAA,GAAA,IAAA;EAAA,OAAA,EAAA;IAAA,EAAA,EAAA,MAAA;IAAA,KAAA,EAAA,MAAA;EAAA,CAAA,EAAA;EAAA,SAStB,CAAA,EAAA,OAAA;EAAa,UAAA,CAAA,EAAA;IAmEf,MAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;sBA/EqB;;cAGT;;;;;;;;;GASV,kBAAa,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Icon as e}from"../../icons/Icon.js";import{ComboboxBase as t}from"./ComboboxBase.js";import{comboboxEmpty as n,comboboxOption as r,icon as i}from"@mage-ui/styled-system/recipes";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{useState as s}from"react";const c=({selectedOption:c,setSelectedOption:l,options:u,creatable:d,classNames:f,texts:p,inputWrapperOrder:m=[`label`,`input`,`description`,`error`],...h})=>{let[g,_]=s(c?.value||``),v=u.every(e=>e.value!==g),y=v?u.filter(e=>e.value.toLowerCase().includes(g.toLowerCase().trim())):u,b=y.map(e=>a(t.Option,{value:e.value,active:c?.id===e.id,classNames:{option:f?.option??r()},children:e.value},e.id)),x=()=>d&&g?o(t.Option,{value:g,classNames:{option:f?.create??r({type:`create`})},children:[a(e,{name:`plus`,classNames:i({size:`m`})}),`${p.create} '${g}'`]},g):a(t.Empty,{classNames:{empty:f?.empty??n()},children:p.empty}),S=e=>{let t=u.find(t=>t.value===e);!t&&d&&e&&(t={id:`new`,value:e}),l(t)};return a(t,{query:g,setQuery:_,selectedOption:c,setSelectedOption:e=>S(e),endSlot:a(e,{name:`chevron-down`,classNames:i({size:`l`})}),texts:p,inputWrapperOrder:m,...h,children:b.length>0?b:a(x,{})})};export{c as Combobox};
|
|
2
|
+
//# sourceMappingURL=Combobox.js.map
|