@mage-ui/components 0.0.16 → 0.0.17
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} +2 -2
- package/dist/atoms/{avatar/Avatar.d.cts.map → avatars/Avatar.d.ts.map} +1 -1
- package/dist/atoms/{avatar/Avatar.mjs → avatars/Avatar.js} +1 -1
- package/dist/atoms/{avatar/Avatar.mjs.map → avatars/Avatar.js.map} +1 -1
- package/dist/atoms/badges/{Badge.d.cts → Badge.d.ts} +2 -2
- 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 -3
- 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} +3 -3
- 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} +4 -4
- 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/forms/{FormInputText.d.mts → FormInputText.d.ts} +4 -4
- 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} +2 -2
- package/dist/atoms/icons/Icon.d.ts.map +1 -0
- package/dist/atoms/icons/Icon.js +2 -0
- package/dist/atoms/{icon/Icon.mjs.map → icons/Icon.js.map} +1 -1
- package/dist/atoms/{icon/IconRaw.d.mts → icons/IconRaw.d.ts} +2 -2
- package/dist/atoms/icons/IconRaw.d.ts.map +1 -0
- package/dist/atoms/{icon/IconRaw.mjs → icons/IconRaw.js} +1 -1
- package/dist/atoms/{icon/IconRaw.mjs.map → icons/IconRaw.js.map} +1 -1
- package/dist/atoms/icons/IconWrapped.d.ts +20 -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} +1 -1
- 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.mts → DatePicker.d.ts} +1 -1
- package/dist/atoms/inputs/DatePicker.d.ts.map +1 -0
- package/dist/atoms/inputs/{DatePicker.mjs → DatePicker.js} +2 -2
- package/dist/atoms/inputs/{DatePicker.mjs.map → DatePicker.js.map} +1 -1
- package/dist/atoms/inputs/{InputText.d.mts → InputText.d.ts} +3 -3
- package/dist/atoms/inputs/InputText.d.ts.map +1 -0
- package/dist/atoms/inputs/{InputText.mjs → InputText.js} +1 -1
- package/dist/atoms/inputs/InputText.js.map +1 -0
- package/dist/atoms/inputs/combobox/{Combobox.d.mts → Combobox.d.ts} +3 -3
- 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.mjs.map → Combobox.js.map} +1 -1
- 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} +1 -1
- 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} +1 -1
- 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} +1 -1
- 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} +9 -9
- 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 +16 -0
- package/dist/index.js +1 -0
- package/dist/panda.json +13 -13
- package/dist/providers/{MageUiProvider.d.mts → MageUiProvider.d.ts} +3 -3
- 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 +9 -154
- 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.mts.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/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/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.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.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/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;
|
|
@@ -19,4 +19,4 @@ declare const Avatar: ({
|
|
|
19
19
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
20
20
|
|
|
21
21
|
export { Avatar as Avatar$1, AvatarProps };
|
|
22
|
-
//# sourceMappingURL=Avatar.d.
|
|
22
|
+
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","names":[],"sources":["../../../src/atoms/avatars/Avatar.tsx"],"sourcesContent":[],"mappings":";;;KAGY,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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{avatar as e,avatarImg as t,avatarText 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.
|
|
2
|
+
//# sourceMappingURL=Avatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.
|
|
1
|
+
{"version":3,"file":"Avatar.js","names":["Avatar","MantineAvatar"],"sources":["../../../src/atoms/avatars/Avatar.tsx"],"sourcesContent":["import { avatar, avatarImg, avatarText } 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 ?? avatarImg(),\n placeholder: classNames?.placeholder ?? avatarText(),\n ...classNames,\n }}\n {...props}\n />\n );\n};\n"],"mappings":"sKASA,MAAaA,EAAS,CAAC,CAAE,aAAY,GAAG,EAAoB,GAExD,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,GAAY,MAAQ,GAAQ,CAClC,MAAO,GAAY,OAAS,GAAW,CACvC,YAAa,GAAY,aAAe,GAAY,CACpD,GAAG,CACJ,EACD,GAAI,GACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","names":[],"sources":["../../../src/atoms/badges/Badge.tsx"],"sourcesContent":[],"mappings":";;;;KAIY,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 { badge, badgeSection } from '@mage-ui/styled-system/recipes';\nimport { Badge as MantineBadge } from '@mantine/core';\nimport type React from 'react';\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":"uJAcA,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
|
|
@@ -31,4 +31,4 @@ type ItemProps = {
|
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
export { Breadcrumbs as Breadcrumbs$1, BreadcrumbsProps };
|
|
34
|
-
//# sourceMappingURL=Breadcrumbs.d.
|
|
34
|
+
//# 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 type HTMLAttributes,\n type ReactElement,\n type ReactNode,\n cloneElement,\n isValidElement,\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,10 @@ declare const Button: ({
|
|
|
18
18
|
endSlot,
|
|
19
19
|
children,
|
|
20
20
|
...props
|
|
21
|
-
}: ButtonProps) =>
|
|
21
|
+
}: ButtonProps) => react_jsx_runtime8.JSX.Element;
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
24
|
//# sourceMappingURL=Button.d.ts.map
|
|
25
25
|
|
|
26
26
|
export { Button as Button$1, ButtonProps };
|
|
27
|
-
//# sourceMappingURL=Button.d.
|
|
27
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","names":[],"sources":["../../../src/atoms/buttons/Button.tsx"],"sourcesContent":[],"mappings":";;;;KAQY,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 {\n button,\n buttonInner,\n buttonSection,\n} from '@mage-ui/styled-system/recipes';\nimport { Button as MantineButton } from '@mantine/core';\nimport type { ComponentProps, ReactNode } from 'react';\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":"2KAmBA,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_runtime6 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/atoms/buttons/ButtonIcon.d.ts
|
|
@@ -15,10 +15,10 @@ declare const ButtonIcon: ({
|
|
|
15
15
|
children,
|
|
16
16
|
classNames,
|
|
17
17
|
label
|
|
18
|
-
}: ButtonIconProps) =>
|
|
18
|
+
}: ButtonIconProps) => react_jsx_runtime6.JSX.Element;
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
21
|
//# sourceMappingURL=ButtonIcon.d.ts.map
|
|
22
22
|
|
|
23
23
|
export { ButtonIcon as ButtonIcon$1, ButtonIconProps };
|
|
24
|
-
//# sourceMappingURL=ButtonIcon.d.
|
|
24
|
+
//# sourceMappingURL=ButtonIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonIcon.d.ts","names":[],"sources":["../../../src/atoms/buttons/ButtonIcon.tsx"],"sourcesContent":[],"mappings":";;;;;KAMY,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 { buttonIcon, buttonIconIcon } from '@mage-ui/styled-system/recipes';\nimport { ActionIcon } from '@mantine/core';\nimport type React from 'react';\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":"wOAeA,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"}
|
|
@@ -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_runtime4 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,10 @@ declare const FormInputText: ({
|
|
|
11
11
|
register,
|
|
12
12
|
name,
|
|
13
13
|
...props
|
|
14
|
-
}: FormInputTextProps) =>
|
|
14
|
+
}: FormInputTextProps) => react_jsx_runtime4.JSX.Element;
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//# sourceMappingURL=FormInputText.d.ts.map
|
|
18
18
|
|
|
19
19
|
export { FormInputText as FormInputText$1, FormInputTextProps };
|
|
20
|
-
//# sourceMappingURL=FormInputText.d.
|
|
20
|
+
//# sourceMappingURL=FormInputText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormInputText.d.ts","names":[],"sources":["../../../src/atoms/forms/FormInputText.tsx"],"sourcesContent":[],"mappings":";;;;;KAGY,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';\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":"2FAQA,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?: {
|
|
@@ -18,4 +18,4 @@ declare const Icon: ({
|
|
|
18
18
|
//# sourceMappingURL=Icon.d.ts.map
|
|
19
19
|
|
|
20
20
|
export { Icon as Icon$1, IconProps };
|
|
21
|
-
//# sourceMappingURL=Icon.d.
|
|
21
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","names":[],"sources":["../../../src/atoms/icons/Icon.tsx"],"sourcesContent":[],"mappings":";;;;KAOY,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.
|
|
1
|
+
{"version":3,"file":"Icon.js","names":[],"sources":["../../../src/atoms/icons/Icon.tsx"],"sourcesContent":["import {\n type IconVariantProps,\n icon as iconRecipe,\n} from '@mage-ui/styled-system/recipes';\nimport type { ReactNode } from 'react';\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":"qIAYA,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?: {
|
|
@@ -17,4 +17,4 @@ declare const IconRaw: ({
|
|
|
17
17
|
//# sourceMappingURL=IconRaw.d.ts.map
|
|
18
18
|
|
|
19
19
|
export { IconRaw as IconRaw$1, IconRawProps };
|
|
20
|
-
//# sourceMappingURL=IconRaw.d.
|
|
20
|
+
//# sourceMappingURL=IconRaw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconRaw.d.ts","names":[],"sources":["../../../src/atoms/icons/IconRaw.tsx"],"sourcesContent":[],"mappings":";;;;KAMY,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconRaw.
|
|
1
|
+
{"version":3,"file":"IconRaw.js","names":[],"sources":["../../../src/atoms/icons/IconRaw.tsx"],"sourcesContent":["import {\n type IconVariantProps,\n icon as iconRecipe,\n} from '@mage-ui/styled-system/recipes';\nimport type { ReactNode } from 'react';\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":"wGAWA,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,20 @@
|
|
|
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
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
//# sourceMappingURL=IconWrapped.d.ts.map
|
|
18
|
+
|
|
19
|
+
export { IconWrapped as IconWrapped$1, IconWrappedProps };
|
|
20
|
+
//# sourceMappingURL=IconWrapped.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconWrapped.d.ts","names":[],"sources":["../../../src/atoms/icons/IconWrapped.tsx"],"sourcesContent":[],"mappings":";;;KAIY,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{wrappedIcon 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 { wrappedIcon } from '@mage-ui/styled-system/recipes';\nimport { ThemeIcon } from '@mantine/core';\nimport type { ReactNode } from 'react';\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 ?? wrappedIcon(),\n ...classNames,\n }}\n autoContrast={true}\n {...props}\n >\n {children}\n </ThemeIcon>\n );\n};\n"],"mappings":"+IAWA,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","names":[],"sources":["../../../src/atoms/inputs/Checkbox.tsx"],"sourcesContent":[],"mappings":";;;KAcY,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 { 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';\nimport type { ReactNode } from 'react';\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":"gVA2BA,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 @@
|
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","names":[],"sources":["../../../src/atoms/inputs/DatePicker.tsx"],"sourcesContent":[],"mappings":";;;KAsCY,eAAA;;EAAA,UAAA,CAAA,EAEG,mBAFY,GAGvB,4BAHuB,GAAA;IAAA,aAAA,CAAA,EAAA,MAAA;IAEZ,mBAAA,CAAA,EAAA,MAAA;IACX,eAAA,CAAA,EAAA,MAAA;IAA4B,gBAAA,CAAA,EAAA,MAAA;IAkBnB,WAoBZ,CAAA,EAAA,MAAA;IAAA,kBAAA,CAAA,EAAA,MAAA;IApB0B,iBAAA,CAAA,EAAA,MAAA;IAAA,qBAAA,CAAA,EAAA,MAAA;IAIxB,sBAAA,CAAA,EAAA,MAAA;IAAkB,yBAAA,CAAA,EAAA,MAAA;IAgBpB,iBAAA,CAAA,EAAA,MAAA;IAEI,oBAAmB,CAAA,EAAA,MAAA;IAwBnB,qBAAA,CAAA,EAAA,MAA4B;;;;cA9CpB;;;;GAIV,oBAAkB;KAkBhB,mBAAA;;;;;;;;;;KAwBA,4BAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Icon as e}from"../
|
|
2
|
-
//# sourceMappingURL=DatePicker.
|
|
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,...r})=>A(M,{required:t,withAsterisk:t,inputWrapperOrder:[`label`,`input`,`description`,`error`],classNames:z(n),popoverProps:{classNames:{dropdown:n?.datepickerDropdown??y()}},rightSection:A(e,{name:`calendar`,classNames:x({size:`m`})}),...r}),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()});function I(e){return{month:e?.calendarMonth??o(),weekdaysRow:e?.calendarWeekDaysRow??m(),weekday:e?.calendarWeekDay??p(),monthRow:e?.calendarMonthRow??c(),monthCell:e?.calendarMonthCell??s(),day:e?.calendarDay??n()}}function L(e){return{monthsList:e?.calendarMonthsList??l(),monthsListRow:e?.calendarMonthsListRow??f(),monthsListCell:e?.calendarMonthsListCell??u(),monthsListControl:e?.calendarMonthsListControl??d()}}function R(e){return{yearsList:e?.calendarYearsList??h(),yearsListRow:e?.calendarYearsListRow??v(),yearsListCell:e?.calendarYearsListCell??g(),yearsListControl:e?.calendarYearsListControl??_()}}function z(e){return{...P(e),...F(e),...I(e),...L(e),...R(e)}}export{N as DatePicker};
|
|
2
|
+
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.
|
|
1
|
+
{"version":3,"file":"DatePicker.js","names":["classNames?: InputClassNamesType","classNames?: CalenderHeaderClassNamesType","classNames?: DatePickerProps['classNames']"],"sources":["../../../src/atoms/inputs/DatePicker.tsx"],"sourcesContent":["import { 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';\nimport type { ReactNode } from 'react';\nimport { Icon } from '../icons/Icon';\n\n//TODO: separar les classNames del type\n\nexport type DatePickerProps = {\n required?: boolean;\n classNames?: InputClassNamesType &\n CalenderHeaderClassNamesType & {\n calendarMonth?: string;\n calendarWeekDaysRow?: string;\n calendarWeekDay?: string;\n calendarMonthRow?: string;\n calendarDay?: string;\n calendarMonthsList?: string;\n calendarMonthCell?: string;\n calendarMonthsListRow?: string;\n calendarMonthsListCell?: string;\n calendarMonthsListControl?: string;\n calendarYearsList?: string;\n calendarYearsListRow?: string;\n calendarYearsListCell?: string;\n calendarYearsListControl?: string;\n };\n};\n\nexport const DatePicker = ({\n required,\n classNames,\n ...props\n}: DatePickerProps): ReactNode => {\n return (\n <DatePickerInput\n required={required}\n withAsterisk={required}\n inputWrapperOrder={['label', 'input', 'description', 'error']}\n classNames={getDatePickerClassNames(classNames)}\n popoverProps={{\n classNames: {\n dropdown: classNames?.datepickerDropdown ?? datepickerDropdown(),\n },\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\nfunction getCalendarMonthClassNames(\n classNames?: DatePickerProps['classNames'],\n) {\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\nfunction getCalendarMonthsListClassNames(\n classNames?: DatePickerProps['classNames'],\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\nfunction getCalendarYearsListClassNames(\n classNames?: DatePickerProps['classNames'],\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\nfunction getDatePickerClassNames(classNames?: DatePickerProps['classNames']) {\n return {\n ...inputClassNames(classNames),\n ...calendarHeaderClassNames(classNames),\n ...getCalendarMonthClassNames(classNames),\n ...getCalendarMonthsListClassNames(classNames),\n ...getCalendarYearsListClassNames(classNames),\n };\n}\n"],"mappings":"s1BAiHA,MAtDa,EAAa,CAAC,CACzB,WACA,aACA,GAAG,EACa,GAEd,EAAC,EAAA,CACW,WACV,aAAc,EACd,kBAAmB,CAAC,QAAS,QAAS,cAAe,OAAQ,EAC7D,WAAY,EAAwB,EAAW,CAC/C,aAAc,CACZ,WAAY,CACV,SAAU,GAAY,oBAAsB,GAAoB,AACjE,CACF,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,GAGH,SAAS,EACPC,EACA,CACA,MAAO,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,CACF,CAED,SAAS,EACPA,EACA,CACA,MAAO,CACL,WAAY,GAAY,oBAAsB,GAAoB,CAClE,cAAe,GAAY,uBAAyB,GAAuB,CAC3E,eACE,GAAY,wBAA0B,GAAwB,CAChE,kBACE,GAAY,2BAA6B,GAA2B,AACvE,CACF,CAED,SAAS,EACPA,EACA,CACA,MAAO,CACL,UAAW,GAAY,mBAAqB,GAAmB,CAC/D,aAAc,GAAY,sBAAwB,GAAsB,CACxE,cAAe,GAAY,uBAAyB,GAAuB,CAC3E,iBACE,GAAY,0BAA4B,GAA0B,AACrE,CACF,CAED,SAAS,EAAwBA,EAA4C,CAC3E,MAAO,CACL,GAAG,EAAgB,EAAW,CAC9B,GAAG,EAAyB,EAAW,CACvC,GAAG,EAA2B,EAAW,CACzC,GAAG,EAAgC,EAAW,CAC9C,GAAG,EAA+B,EAAW,AAC9C,CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/atoms/inputs/InputText.d.ts
|
|
@@ -23,10 +23,10 @@ declare const InputText: ({
|
|
|
23
23
|
startSlot,
|
|
24
24
|
endSlot,
|
|
25
25
|
...props
|
|
26
|
-
}: InputTextProps) =>
|
|
26
|
+
}: InputTextProps) => react_jsx_runtime7.JSX.Element;
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
//# sourceMappingURL=InputText.d.ts.map
|
|
30
30
|
|
|
31
31
|
export { InputText as InputText$1, InputTextProps };
|
|
32
|
-
//# sourceMappingURL=InputText.d.
|
|
32
|
+
//# sourceMappingURL=InputText.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputText.d.ts","names":[],"sources":["../../../src/atoms/inputs/InputText.tsx"],"sourcesContent":[],"mappings":";;;;KAaY,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;IAAS,OAAA,CAAA,EAAA,MAAA;IAGR,KAAA,CAAA,EAwBZ,MAAA;IAAA,OAAA,CAAA,EAAA,MAAA;EAAA,CAAA;EAxByB,SAAA,CAAA,EAJZ,SAIY;EAAA,OAAA,CAAA,EAHd,SAGc;CAAA;AAKT,cALJ,SAKI,EAAA,CAAA;EAAA,UAAA;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAAd,cAAc,EAAA,GAAA,kBAAA,CAAA,GAAA,CAAA,OAAA;;;AAmBhB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
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,...p})=>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,...p});export{u as InputText};
|
|
2
|
-
//# sourceMappingURL=InputText.
|
|
2
|
+
//# sourceMappingURL=InputText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputText.js","names":[],"sources":["../../../src/atoms/inputs/InputText.tsx"],"sourcesContent":["import { 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';\nimport type { ComponentProps, ReactNode } from 'react';\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};\n\nexport const InputText = ({\n classNames,\n startSlot,\n endSlot,\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 {...props}\n />\n );\n};\n"],"mappings":"kSA8BA,MAAa,EAAY,CAAC,CACxB,aACA,YACA,UACA,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,EACd,GAAI,GACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/atoms/inputs/combobox/Combobox.d.ts
|
|
4
4
|
type ComboboxProps = {
|
|
@@ -39,8 +39,8 @@ declare const Combobox: ({
|
|
|
39
39
|
classNames,
|
|
40
40
|
texts,
|
|
41
41
|
...props
|
|
42
|
-
}: ComboboxProps) =>
|
|
42
|
+
}: ComboboxProps) => react_jsx_runtime5.JSX.Element; //#endregion
|
|
43
43
|
|
|
44
44
|
//# sourceMappingURL=Combobox.d.ts.map
|
|
45
45
|
export { Combobox as Combobox$1, ComboboxProps };
|
|
46
|
-
//# sourceMappingURL=Combobox.d.
|
|
46
|
+
//# 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":";;;KASY,aAAA;;;IAAA,KAAA,EAAA,MAAa;EAsBZ,CAAA,GAAA,SA0EZ;EAAA,iBAAA,EAAA,CAAA,KAAA,EAAA;IA1EwB,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,EAQtB;EAAa,SAAA,CAAA,EAAA,OAAA;EAkEf,UAAA,CAAA,EAAA;;;;;;;;;;;;;;;;cA1EY;;;;;;;;GAQV,kBAAa,kBAAA,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,...m})=>{let[h,g]=s(c?.value||``),_=u.every(e=>e.value!==h),v=_?u.filter(e=>e.value.toLowerCase().includes(h.toLowerCase().trim())):u,y=v.map(e=>a(t.Option,{value:e.value,active:c?.id===e.id,classNames:{option:f?.option??r()},children:e.value},e.id)),b=()=>d&&h?o(t.Option,{value:h,classNames:{option:f?.create??r({type:`create`})},children:[a(e,{name:`plus`,classNames:i({size:`m`})}),`${p.create} '${h}'`]},h):a(t.Empty,{classNames:{empty:f?.empty??n()},children:p.empty}),x=e=>{let t=u.find(t=>t.value===e);!t&&d&&e&&(t={id:`new`,value:e}),l(t)};return a(t,{query:h,setQuery:g,selectedOption:c,setSelectedOption:e=>x(e),endSlot:a(e,{name:`chevron-down`,classNames:i({size:`l`})}),texts:p,...m,children:y.length>0?y:a(b,{})})};export{c as Combobox};
|
|
2
|
+
//# sourceMappingURL=Combobox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.
|
|
1
|
+
{"version":3,"file":"Combobox.js","names":["value: string"],"sources":["../../../../src/atoms/inputs/combobox/Combobox.tsx"],"sourcesContent":["import {\n comboboxEmpty,\n comboboxOption,\n icon,\n} from '@mage-ui/styled-system/recipes';\nimport { useState } from 'react';\nimport { Icon } from '../../icons/Icon';\nimport { ComboboxBase } from './ComboboxBase';\n\nexport type ComboboxProps = {\n selectedOption: { id: string; value: string } | undefined;\n setSelectedOption: (value: { id: string; value: string } | undefined) => void;\n options: { id: string; value: string }[];\n creatable?: boolean;\n classNames?: {\n option?: string;\n empty?: string;\n create?: string;\n };\n texts: {\n input: {\n label: string;\n placeholder: string;\n description?: string;\n error?: string;\n };\n empty: string;\n create: string;\n };\n};\n\nexport const Combobox = ({\n selectedOption,\n setSelectedOption,\n options,\n creatable,\n classNames,\n texts,\n ...props\n}: ComboboxProps) => {\n const [query, setQuery] = useState(selectedOption?.value || '');\n\n const shouldFilterOptions = options.every((item) => item.value !== query);\n const filteredOptions = shouldFilterOptions\n ? options.filter((item) =>\n item.value.toLowerCase().includes(query.toLowerCase().trim()),\n )\n : options;\n\n const comboBoxOptions = filteredOptions.map((option) => (\n <ComboboxBase.Option\n value={option.value}\n key={option.id}\n active={selectedOption?.id === option.id}\n classNames={{ option: classNames?.option ?? comboboxOption() }}\n >\n {option.value}\n </ComboboxBase.Option>\n ));\n\n const MissingOption = () => {\n if (creatable && query) {\n return (\n <ComboboxBase.Option\n value={query}\n key={query}\n classNames={{\n option: classNames?.create ?? comboboxOption({ type: 'create' }),\n }}\n >\n <Icon name='plus' classNames={icon({ size: 'm' })} />\n {`${texts.create} '${query}'`}\n </ComboboxBase.Option>\n );\n }\n return (\n <ComboboxBase.Empty\n classNames={{ empty: classNames?.empty ?? comboboxEmpty() }}\n >\n {texts.empty}\n </ComboboxBase.Empty>\n );\n };\n\n const onChange = (value: string) => {\n let selected = options.find((item) => item.value === value);\n if (!selected && creatable && value) {\n selected = { id: 'new', value };\n }\n setSelectedOption(selected);\n };\n\n return (\n <ComboboxBase\n query={query}\n setQuery={setQuery}\n selectedOption={selectedOption}\n setSelectedOption={(option) => onChange(option)}\n endSlot={<Icon name='chevron-down' classNames={icon({ size: 'l' })} />}\n texts={texts}\n {...props}\n >\n {comboBoxOptions.length > 0 ? comboBoxOptions : <MissingOption />}\n </ComboboxBase>\n );\n};\n"],"mappings":"4QA+BA,MAAa,EAAW,CAAC,CACvB,iBACA,oBACA,UACA,YACA,aACA,QACA,GAAG,EACW,GAAK,CA6CnB,GA5CM,CAAC,EAAO,EAAS,CAAG,EAAS,GAAgB,OAAS,GAAG,CAEzD,EAAsB,EAAQ,MAAM,AAAC,GAAS,EAAK,QAAU,EAAM,CACnE,EAAkB,EACpB,EAAQ,OAAO,AAAC,GACd,EAAK,MAAM,aAAa,CAAC,SAAS,EAAM,aAAa,CAAC,MAAM,CAAC,CAC9D,CACD,EAEE,EAAkB,EAAgB,IAAI,AAAC,GAC3C,EAAC,EAAa,OAAA,CACZ,MAAO,EAAO,MAEd,OAAQ,GAAgB,KAAO,EAAO,GACtC,WAAY,CAAE,OAAQ,GAAY,QAAU,GAAgB,AAAE,WAE7D,EAAO,OAJH,EAAO,GAKQ,CACtB,CAEI,EAAgB,IAChB,GAAa,EAEb,EAAC,EAAa,OAAA,CACZ,MAAO,EAEP,WAAY,CACV,OAAQ,GAAY,QAAU,EAAe,CAAE,KAAM,QAAU,EAAC,AACjE,YAED,EAAC,EAAA,CAAK,KAAK,OAAO,WAAY,EAAK,CAAE,KAAM,GAAK,EAAC,EAAI,EACnD,EAAE,EAAM,OAAO,IAAI,EAAM,EAAA,GANtB,EAOe,CAIxB,EAAC,EAAa,MAAA,CACZ,WAAY,CAAE,MAAO,GAAY,OAAS,GAAe,AAAE,WAE1D,EAAM,OACY,CAInB,EAAW,AAACA,GAAkB,CAClC,IAAI,EAAW,EAAQ,KAAK,AAAC,GAAS,EAAK,QAAU,EAAM,CAI3D,CAHK,GAAY,GAAa,IAC5B,EAAW,CAAE,GAAI,MAAO,OAAO,GAEjC,EAAkB,EAAS,AAC5B,EAED,MACE,GAAC,EAAA,CACQ,QACG,WACM,iBAChB,kBAAmB,AAAC,GAAW,EAAS,EAAO,CAC/C,QAAS,EAAC,EAAA,CAAK,KAAK,eAAe,WAAY,EAAK,CAAE,KAAM,GAAK,EAAC,EAAI,CAC/D,QACP,GAAI,WAEH,EAAgB,OAAS,EAAI,EAAkB,EAAC,EAAA,CAAA,EAAgB,EACpD,AAElB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{InputText as e}from"../InputText.js";import{comboboxOptions as t,dropdown as n,inputSection as r}from"@mage-ui/styled-system/recipes";import{Combobox as i,useCombobox as a}from"@mantine/core";import{jsx as o,jsxs as s}from"react/jsx-runtime";const c=({query:c,setQuery:l,selectedOption:u,setSelectedOption:d,children:f,startSlot:p,endSlot:m,classNames:h,texts:g,..._})=>{let v=a({scrollBehavior:`smooth`,onDropdownClose:()=>{v.resetSelectedOption()}});return s(i,{onOptionSubmit:e=>{d(e),l(e),v.closeDropdown()},store:v,withinPortal:!1,..._,children:[o(i.Target,{children:o(e,{label:g.input.label,placeholder:g.input.placeholder,error:g.input.error,description:g.input.description,value:c,onChange:({currentTarget:e})=>{l(e.value),v.openDropdown(),v.updateSelectedOptionIndex()},onClick:()=>v.openDropdown(),onFocus:()=>v.openDropdown(),onBlur:()=>{v.closeDropdown(),l(u?.value||``)},startSlot:p,endSlot:m,classNames:{section:h?.section??r({pointerEvents:`none`})}})}),o(i.Dropdown,{classNames:{dropdown:h?.dropdown??n()},children:o(i.Options,{classNames:{options:h?.options??t()},children:f})})]})};c.Option=i.Option,c.Empty=i.Empty;export{c as ComboboxBase};
|
|
2
|
+
//# sourceMappingURL=ComboboxBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboboxBase.js","names":["MantineCombobox"],"sources":["../../../../src/atoms/inputs/combobox/ComboboxBase.tsx"],"sourcesContent":["import {\n comboboxOptions,\n dropdown,\n inputSection,\n} from '@mage-ui/styled-system/recipes';\nimport { Combobox as MantineCombobox, useCombobox } from '@mantine/core';\nimport type { ChangeEvent, ReactNode } from 'react';\nimport { InputText } from '../InputText';\n\nexport type ComboboxBaseProps = {\n query: string;\n setQuery: (value: string) => void;\n selectedOption: { id: string; value: string } | undefined;\n setSelectedOption: (value: string) => void;\n texts: {\n input: {\n label: string;\n placeholder: string;\n description?: string;\n error?: string;\n };\n empty: string;\n };\n children: ReactNode;\n startSlot?: ReactNode;\n endSlot?: ReactNode;\n classNames?: {\n dropdown?: string;\n section?: string;\n options?: string;\n };\n};\n\nexport const ComboboxBase = ({\n query,\n setQuery,\n selectedOption,\n setSelectedOption,\n children,\n startSlot,\n endSlot,\n classNames,\n texts,\n ...props\n}: ComboboxBaseProps) => {\n const combobox = useCombobox({\n scrollBehavior: 'smooth',\n onDropdownClose: () => {\n combobox.resetSelectedOption();\n },\n });\n\n return (\n <MantineCombobox\n onOptionSubmit={(option) => {\n setSelectedOption(option);\n setQuery(option);\n combobox.closeDropdown();\n }}\n store={combobox}\n withinPortal={false}\n {...props}\n >\n <MantineCombobox.Target>\n <InputText\n label={texts.input.label}\n placeholder={texts.input.placeholder}\n error={texts.input.error}\n description={texts.input.description}\n value={query}\n onChange={({ currentTarget }: ChangeEvent<HTMLInputElement>) => {\n setQuery(currentTarget.value);\n combobox.openDropdown();\n combobox.updateSelectedOptionIndex();\n }}\n onClick={() => combobox.openDropdown()}\n onFocus={() => combobox.openDropdown()}\n onBlur={() => {\n combobox.closeDropdown();\n setQuery(selectedOption?.value || '');\n }}\n startSlot={startSlot}\n endSlot={endSlot}\n classNames={{\n section:\n classNames?.section ?? inputSection({ pointerEvents: 'none' }),\n }}\n />\n </MantineCombobox.Target>\n\n <MantineCombobox.Dropdown\n classNames={{\n dropdown: classNames?.dropdown ?? dropdown(),\n }}\n >\n <MantineCombobox.Options\n classNames={{\n options: classNames?.options ?? comboboxOptions(),\n }}\n >\n {children}\n </MantineCombobox.Options>\n </MantineCombobox.Dropdown>\n </MantineCombobox>\n );\n};\n\nComboboxBase.Option = MantineCombobox.Option;\nComboboxBase.Empty = MantineCombobox.Empty;\n"],"mappings":"yPAiCA,MAAa,EAAe,CAAC,CAC3B,QACA,WACA,iBACA,oBACA,WACA,YACA,UACA,aACA,QACA,GAAG,EACe,GAAK,CACvB,IAAM,EAAW,EAAY,CAC3B,eAAgB,SAChB,gBAAiB,IAAM,CACrB,EAAS,qBAAqB,AAC/B,CACF,EAAC,CAEF,MACE,GAACA,EAAAA,CACC,eAAgB,AAAC,GAAW,CAG1B,AAFA,EAAkB,EAAO,CACzB,EAAS,EAAO,CAChB,EAAS,eAAe,AACzB,EACD,MAAO,EACP,cAAc,EACd,GAAI,YAEJ,EAACA,EAAgB,OAAA,CAAA,SACf,EAAC,EAAA,CACC,MAAO,EAAM,MAAM,MACnB,YAAa,EAAM,MAAM,YACzB,MAAO,EAAM,MAAM,MACnB,YAAa,EAAM,MAAM,YACzB,MAAO,EACP,SAAU,CAAC,CAAE,gBAA8C,GAAK,CAG9D,AAFA,EAAS,EAAc,MAAM,CAC7B,EAAS,cAAc,CACvB,EAAS,2BAA2B,AACrC,EACD,QAAS,IAAM,EAAS,cAAc,CACtC,QAAS,IAAM,EAAS,cAAc,CACtC,OAAQ,IAAM,CAEZ,AADA,EAAS,eAAe,CACxB,EAAS,GAAgB,OAAS,GAAG,AACtC,EACU,YACF,UACT,WAAY,CACV,QACE,GAAY,SAAW,EAAa,CAAE,cAAe,MAAQ,EAAC,AACjE,GACD,EACqB,CAEzB,EAACA,EAAgB,SAAA,CACf,WAAY,CACV,SAAU,GAAY,UAAY,GAAU,AAC7C,WAED,EAACA,EAAgB,QAAA,CACf,WAAY,CACV,QAAS,GAAY,SAAW,GAAiB,AAClD,EAEA,YACuB,EACD,GACX,AAErB,EAGD,AADA,EAAa,OAASA,EAAgB,OACtC,EAAa,MAAQA,EAAgB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{VisuallyHidden as e}from"@mantine/core";import{jsx as t}from"react/jsx-runtime";import{visuallyHidden as n}from"@mage-ui/styled-system/patterns";const r=({children:r})=>t(e,{classNames:{root:n()},children:r});export{r as VisuallyHidden};
|
|
2
|
-
//# sourceMappingURL=VisuallyHidden.
|
|
2
|
+
//# sourceMappingURL=VisuallyHidden.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VisuallyHidden.js","names":["VisuallyHidden","MantineVisuallyHidden"],"sources":["../../../src/atoms/misc/VisuallyHidden.tsx"],"sourcesContent":["import { visuallyHidden } from '@mage-ui/styled-system/patterns';\nimport { VisuallyHidden as MantineVisuallyHidden } from '@mantine/core';\nimport type React from 'react';\n\nexport type VisuallyHiddenProps = {\n children: React.ReactNode;\n};\n\nexport const VisuallyHidden = ({ children }: VisuallyHiddenProps) => {\n return (\n <MantineVisuallyHidden\n classNames={{\n root: visuallyHidden(),\n }}\n >\n {children}\n </MantineVisuallyHidden>\n );\n};\n"],"mappings":"wJAQA,MAAaA,EAAiB,CAAC,CAAE,WAA+B,GAE5D,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,GAAgB,AACvB,EAEA,YACqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","names":[],"sources":["../../../src/atoms/tabs/Tab.tsx"],"sourcesContent":[],"mappings":";;;;KAIY,QAAA;;;IAAA,QAAQ,CAAA,EAAA,MAAA;IAAA,UAAA,CAAA,EAAA,MAAA;EAAA,CAAA;EAMQ,QACd,CAAM,EADP,KAAA,CAAM,SACC;EAAS,SACX,CAAA,EADJ,KAAA,CAAM,SACF;EAAS,OAAA,CAAA,EAAf,KAAA,CAAM,SAAS"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{tab as e,tabLabel as t,tabSection as n}from"@mage-ui/styled-system/recipes";import{Tabs 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.Tab,{classNames:{tab:a?.tab??e(),tabLabel:a?.tabLabel??t(),tabSection:a?.tabSection??n(),...a},leftSection:o,rightSection:s,...l,children:c});a.displayName=`Tabs.Tab`;export{a as Tab};
|
|
2
|
-
//# sourceMappingURL=Tab.
|
|
2
|
+
//# sourceMappingURL=Tab.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.js","names":["MantineTab"],"sources":["../../../src/atoms/tabs/Tab.tsx"],"sourcesContent":["import { tab, tabLabel, tabSection } from '@mage-ui/styled-system/recipes';\nimport { Tabs as MantineTab } from '@mantine/core';\nimport type React from 'react';\n\nexport type TabProps = {\n classNames?: {\n tab?: string;\n tabLabel?: string;\n tabSection?: string;\n };\n children?: React.ReactNode;\n startSlot?: React.ReactNode;\n endSlot?: React.ReactNode;\n value: string;\n};\n\nexport const Tab = ({\n classNames,\n startSlot,\n endSlot,\n children,\n ...props\n}: TabProps) => {\n return (\n <MantineTab.Tab\n classNames={{\n tab: classNames?.tab ?? tab(),\n tabLabel: classNames?.tabLabel ?? tabLabel(),\n tabSection: classNames?.tabSection ?? tabSection(),\n ...classNames,\n }}\n leftSection={startSlot}\n rightSection={endSlot}\n {...props}\n >\n {children}\n </MantineTab.Tab>\n );\n};\n\nTab.displayName = 'Tabs.Tab';\n"],"mappings":"gKAgBA,MAAa,EAAM,CAAC,CAClB,aACA,YACA,UACA,WACA,GAAG,EACM,GAEP,EAACA,EAAW,IAAA,CACV,WAAY,CACV,IAAK,GAAY,KAAO,GAAK,CAC7B,SAAU,GAAY,UAAY,GAAU,CAC5C,WAAY,GAAY,YAAc,GAAY,CAClD,GAAG,CACJ,EACD,YAAa,EACb,aAAc,EACd,GAAI,EAEH,YACc,CAIrB,EAAI,YAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabList.d.ts","names":[],"sources":["../../../src/atoms/tabs/TabList.tsx"],"sourcesContent":[],"mappings":";;;;KAIY,YAAA;;;EAAA,CAAA;aAIC,KAAA,CAAM"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{tabList as e}from"@mage-ui/styled-system/recipes";import{Tabs as t}from"@mantine/core";import{jsx as n}from"react/jsx-runtime";const r=({classNames:r,children:i,grow:a,...o})=>n(t.List,{classNames:{list:r?.list??e({grow:a}),...r},grow:a,...o,children:i});r.displayName=`Tabs.List`;export{r as TabList};
|
|
2
|
-
//# sourceMappingURL=TabList.
|
|
2
|
+
//# sourceMappingURL=TabList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabList.js","names":["MantineTabList"],"sources":["../../../src/atoms/tabs/TabList.tsx"],"sourcesContent":["import { tabList } from '@mage-ui/styled-system/recipes';\nimport { Tabs as MantineTabList } from '@mantine/core';\nimport type React from 'react';\n\nexport type TabListProps = {\n classNames?: {\n list?: string;\n };\n children?: React.ReactNode;\n grow?: boolean;\n};\n\nexport const TabList = ({\n classNames,\n children,\n grow,\n ...props\n}: TabListProps) => {\n return (\n <MantineTabList.List\n classNames={{\n list: classNames?.list ?? tabList({ grow }),\n ...classNames,\n }}\n grow={grow}\n {...props}\n >\n {children}\n </MantineTabList.List>\n );\n};\n\nTabList.displayName = 'Tabs.List';\n"],"mappings":"sIAYA,MAAa,EAAU,CAAC,CACtB,aACA,WACA,OACA,GAAG,EACU,GAEX,EAACA,EAAe,KAAA,CACd,WAAY,CACV,KAAM,GAAY,MAAQ,EAAQ,CAAE,MAAM,EAAC,CAC3C,GAAG,CACJ,EACK,OACN,GAAI,EAEH,YACmB,CAI1B,EAAQ,YAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabPanel.d.ts","names":[],"sources":["../../../src/atoms/tabs/TabPanel.tsx"],"sourcesContent":[],"mappings":";;;;KAIY,QAAA;;;EAAA,CAAA;aAIC,KAAA,CAAM"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{tabPanel as e}from"@mage-ui/styled-system/recipes";import{Tabs as t}from"@mantine/core";import{jsx as n}from"react/jsx-runtime";const r=({classNames:r,children:i,...a})=>n(t.Panel,{classNames:{panel:r?.panel??e(),...r},...a,children:i});r.displayName=`Tabs.Panel`;export{r as TabPanel};
|
|
2
|
-
//# sourceMappingURL=TabPanel.
|
|
2
|
+
//# sourceMappingURL=TabPanel.js.map
|