@mage-ui/components 0.0.12 → 0.0.15

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.
Files changed (80) hide show
  1. package/dist/atoms/avatar/Avatar.d.ts +22 -0
  2. package/dist/atoms/avatar/Avatar.d.ts.map +1 -0
  3. package/dist/atoms/avatar/Avatar.js +2 -0
  4. package/dist/atoms/avatar/Avatar.js.map +1 -0
  5. package/dist/atoms/badges/Badge.d.ts +26 -0
  6. package/dist/atoms/badges/Badge.d.ts.map +1 -0
  7. package/dist/atoms/badges/Badge.js +2 -0
  8. package/dist/atoms/badges/Badge.js.map +1 -0
  9. package/dist/atoms/breadcrumbs/Breadcrumbs.d.ts +34 -0
  10. package/dist/atoms/breadcrumbs/Breadcrumbs.d.ts.map +1 -0
  11. package/dist/atoms/breadcrumbs/Breadcrumbs.js +2 -0
  12. package/dist/atoms/breadcrumbs/Breadcrumbs.js.map +1 -0
  13. package/dist/atoms/buttons/Button.d.ts +27 -0
  14. package/dist/atoms/buttons/Button.d.ts.map +1 -0
  15. package/dist/atoms/buttons/Button.js +2 -0
  16. package/dist/atoms/buttons/Button.js.map +1 -0
  17. package/dist/atoms/buttons/ButtonIcon.d.ts +24 -0
  18. package/dist/atoms/buttons/ButtonIcon.d.ts.map +1 -0
  19. package/dist/atoms/buttons/ButtonIcon.js +2 -0
  20. package/dist/atoms/buttons/ButtonIcon.js.map +1 -0
  21. package/dist/atoms/forms/FormInputText.d.ts +20 -0
  22. package/dist/atoms/forms/FormInputText.d.ts.map +1 -0
  23. package/dist/atoms/forms/FormInputText.js +2 -0
  24. package/dist/atoms/forms/FormInputText.js.map +1 -0
  25. package/dist/atoms/icon/Icon.d.ts +21 -0
  26. package/dist/atoms/icon/Icon.d.ts.map +1 -0
  27. package/dist/atoms/icon/Icon.js +2 -0
  28. package/dist/atoms/icon/Icon.js.map +1 -0
  29. package/dist/atoms/icon/IconRaw.d.ts +20 -0
  30. package/dist/atoms/icon/IconRaw.d.ts.map +1 -0
  31. package/dist/atoms/icon/IconRaw.js +2 -0
  32. package/dist/atoms/icon/IconRaw.js.map +1 -0
  33. package/dist/atoms/inputs/Checkbox.d.ts +23 -0
  34. package/dist/atoms/inputs/Checkbox.d.ts.map +1 -0
  35. package/dist/atoms/inputs/Checkbox.js +2 -0
  36. package/dist/atoms/inputs/Checkbox.js.map +1 -0
  37. package/dist/atoms/inputs/DatePicker.d.ts +46 -0
  38. package/dist/atoms/inputs/DatePicker.d.ts.map +1 -0
  39. package/dist/atoms/inputs/DatePicker.js +2 -0
  40. package/dist/atoms/inputs/DatePicker.js.map +1 -0
  41. package/dist/atoms/inputs/InputText.d.ts +32 -0
  42. package/dist/atoms/inputs/InputText.d.ts.map +1 -0
  43. package/dist/atoms/inputs/InputText.js +2 -0
  44. package/dist/atoms/inputs/InputText.js.map +1 -0
  45. package/dist/atoms/inputs/combobox/Combobox.d.ts +46 -0
  46. package/dist/atoms/inputs/combobox/Combobox.d.ts.map +1 -0
  47. package/dist/atoms/inputs/combobox/Combobox.js +2 -0
  48. package/dist/atoms/inputs/combobox/Combobox.js.map +1 -0
  49. package/dist/atoms/inputs/combobox/ComboboxBase.js +2 -0
  50. package/dist/atoms/inputs/combobox/ComboboxBase.js.map +1 -0
  51. package/dist/atoms/misc/VisuallyHidden.js +2 -0
  52. package/dist/atoms/misc/VisuallyHidden.js.map +1 -0
  53. package/dist/atoms/tabs/Tab.d.ts +17 -0
  54. package/dist/atoms/tabs/Tab.d.ts.map +1 -0
  55. package/dist/atoms/tabs/Tab.js +2 -0
  56. package/dist/atoms/tabs/Tab.js.map +1 -0
  57. package/dist/atoms/tabs/TabList.d.ts +13 -0
  58. package/dist/atoms/tabs/TabList.d.ts.map +1 -0
  59. package/dist/atoms/tabs/TabList.js +2 -0
  60. package/dist/atoms/tabs/TabList.js.map +1 -0
  61. package/dist/atoms/tabs/TabPanel.d.ts +13 -0
  62. package/dist/atoms/tabs/TabPanel.d.ts.map +1 -0
  63. package/dist/atoms/tabs/TabPanel.js +2 -0
  64. package/dist/atoms/tabs/TabPanel.js.map +1 -0
  65. package/dist/atoms/tabs/Tabs.d.ts +53 -0
  66. package/dist/atoms/tabs/Tabs.d.ts.map +1 -0
  67. package/dist/atoms/tabs/Tabs.js +2 -0
  68. package/dist/atoms/tabs/Tabs.js.map +1 -0
  69. package/dist/atoms/wrapped-icon/WrappedIcon.d.ts +20 -0
  70. package/dist/atoms/wrapped-icon/WrappedIcon.d.ts.map +1 -0
  71. package/dist/atoms/wrapped-icon/WrappedIcon.js +2 -0
  72. package/dist/atoms/wrapped-icon/WrappedIcon.js.map +1 -0
  73. package/dist/index.d.ts +16 -0
  74. package/dist/index.js +1 -0
  75. package/dist/panda.json +164 -0
  76. package/dist/providers/MageUiProvider.d.ts +15 -0
  77. package/dist/providers/MageUiProvider.d.ts.map +1 -0
  78. package/dist/providers/MageUiProvider.js +2 -0
  79. package/dist/providers/MageUiProvider.js.map +1 -0
  80. package/package.json +23 -31
@@ -0,0 +1,22 @@
1
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
2
+
3
+ //#region src/atoms/avatar/Avatar.d.ts
4
+ type AvatarProps = {
5
+ name: string;
6
+ src?: string;
7
+ classNames?: {
8
+ root?: string;
9
+ image?: string;
10
+ placeholder?: string;
11
+ };
12
+ };
13
+ declare const Avatar: ({
14
+ classNames,
15
+ ...props
16
+ }: AvatarProps) => react_jsx_runtime12.JSX.Element;
17
+
18
+ //#endregion
19
+ //# sourceMappingURL=Avatar.d.ts.map
20
+
21
+ export { Avatar as Avatar$1 };
22
+ //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.d.ts","names":[],"sources":["../../../src/atoms/avatar/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,mBAAA,CAAA,GAAA,CAAA,OAY3D"}
@@ -0,0 +1,2 @@
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.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.js","names":["Avatar","MantineAvatar"],"sources":["../../../src/atoms/avatar/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,26 @@
1
+ import * as react_jsx_runtime13 from "react/jsx-runtime";
2
+ import React from "react";
3
+
4
+ //#region src/atoms/badges/Badge.d.ts
5
+ type BadgeProps = {
6
+ classNames?: {
7
+ root?: string;
8
+ section?: string;
9
+ };
10
+ children?: React.ReactNode;
11
+ endSlot?: React.ReactNode;
12
+ startSlot?: React.ReactNode;
13
+ };
14
+ declare const Badge: ({
15
+ children,
16
+ endSlot,
17
+ startSlot,
18
+ classNames,
19
+ ...props
20
+ }: BadgeProps) => react_jsx_runtime13.JSX.Element;
21
+
22
+ //#endregion
23
+ //# sourceMappingURL=Badge.d.ts.map
24
+
25
+ export { Badge as Badge$1 };
26
+ //# sourceMappingURL=Badge.d.ts.map
@@ -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,mBAAA,CAAA,GAAA,CAAA,OAeZ"}
@@ -0,0 +1,2 @@
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.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"}
@@ -0,0 +1,34 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/atoms/breadcrumbs/Breadcrumbs.d.ts
5
+ type BreadcrumbsProps = {
6
+ separator?: ReactNode;
7
+ classNames?: {
8
+ root?: string;
9
+ list?: string;
10
+ item?: string;
11
+ separator?: string;
12
+ };
13
+ children?: ReactNode;
14
+ };
15
+ declare const Breadcrumbs: {
16
+ ({
17
+ separator,
18
+ children,
19
+ classNames
20
+ }: BreadcrumbsProps): react_jsx_runtime0.JSX.Element;
21
+ Item: {
22
+ ({
23
+ children
24
+ }: ItemProps): ReactNode;
25
+ displayName: string;
26
+ };
27
+ };
28
+ type ItemProps = {
29
+ children: ReactNode;
30
+ };
31
+
32
+ //#endregion
33
+ export { Breadcrumbs as Breadcrumbs$1 };
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"}
@@ -0,0 +1,2 @@
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.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumbs.js","names":["child: Child"],"sources":["../../../src/atoms/breadcrumbs/Breadcrumbs.tsx"],"sourcesContent":["import { breadcrumbs } from '@mage-ui/styled-system/recipes';\n\nimport {\n Children,\n type HTMLAttributes,\n type ReactElement,\n type ReactNode,\n cloneElement,\n isValidElement,\n} from 'react';\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"}
@@ -0,0 +1,27 @@
1
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
2
+ import { ComponentProps, ReactNode } from "react";
3
+
4
+ //#region src/atoms/buttons/Button.d.ts
5
+ type ButtonProps = ComponentProps<'button'> & {
6
+ classNames?: {
7
+ root?: string;
8
+ inner?: string;
9
+ section?: string;
10
+ };
11
+ startSlot?: ReactNode;
12
+ endSlot?: ReactNode;
13
+ children?: ReactNode;
14
+ };
15
+ declare const Button: ({
16
+ classNames,
17
+ startSlot,
18
+ endSlot,
19
+ children,
20
+ ...props
21
+ }: ButtonProps) => react_jsx_runtime15.JSX.Element;
22
+
23
+ //#endregion
24
+ //# sourceMappingURL=Button.d.ts.map
25
+
26
+ export { Button as Button$1, ButtonProps };
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,mBAAA,CAAA,GAAA,CAAA,OAgBb"}
@@ -0,0 +1,2 @@
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.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"}
@@ -0,0 +1,24 @@
1
+ import { ButtonProps } from "./Button.js";
2
+ import * as react_jsx_runtime14 from "react/jsx-runtime";
3
+ import React from "react";
4
+
5
+ //#region src/atoms/buttons/ButtonIcon.d.ts
6
+ type ButtonIconProps = ButtonProps & {
7
+ children: React.ReactNode;
8
+ label: string;
9
+ classNames?: {
10
+ root?: string;
11
+ icon?: string;
12
+ };
13
+ };
14
+ declare const ButtonIcon: ({
15
+ children,
16
+ classNames,
17
+ label
18
+ }: ButtonIconProps) => react_jsx_runtime14.JSX.Element;
19
+
20
+ //#endregion
21
+ //# sourceMappingURL=ButtonIcon.d.ts.map
22
+
23
+ export { ButtonIcon as ButtonIcon$1 };
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":";;;;;KAOY,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,mBAAA,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';\n\nimport { ActionIcon } from '@mantine/core';\nimport type React from 'react';\nimport { VisuallyHidden } from '../misc';\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":"wOAgBA,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,20 @@
1
+ import { InputTextProps } from "../inputs/InputText.js";
2
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
3
+ import { UseFormRegister } from "react-hook-form";
4
+
5
+ //#region src/atoms/forms/FormInputText.d.ts
6
+ type FormInputText = {
7
+ register?: UseFormRegister<Record<string, string>>;
8
+ name: string;
9
+ } & InputTextProps;
10
+ declare const FormInputText: ({
11
+ register,
12
+ name,
13
+ ...props
14
+ }: FormInputText) => react_jsx_runtime2.JSX.Element;
15
+
16
+ //#endregion
17
+ //# sourceMappingURL=FormInputText.d.ts.map
18
+
19
+ export { FormInputText as FormInputText$1 };
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":";;;;;KAIY,aAAA;aACC,gBAAgB;;AAD7B,CAAA,GAGI,cAHQ;AAAa,cAKZ,aALY,EAAA,CAAA;EAAA,QAAA;EAAA,IAAA;EAAA,GAAA;AAAA,CAAA,EAKmC,aALnC,EAAA,GAKgD,kBAAA,CAAA,GAAA,CAAA,OALhD"}
@@ -0,0 +1,2 @@
1
+ import{InputText as e}from"../inputs/InputText.js";import{jsx as t}from"react/jsx-runtime";const n=({register:n,name:r,...i})=>t(e,{...i,...n?.(r)});export{n as FormInputText};
2
+ //# sourceMappingURL=FormInputText.js.map
@@ -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 } from '../inputs';\nimport type { InputTextProps } from '../inputs/InputText';\n\nexport type FormInputText = {\n register?: UseFormRegister<Record<string, string>>;\n name: string;\n} & InputTextProps;\n\nexport const FormInputText = ({ register, name, ...props }: FormInputText) => {\n return <InputText {...props} {...register?.(name)} />;\n};\n"],"mappings":"2FASA,MAAa,EAAgB,CAAC,CAAE,WAAU,OAAM,GAAG,EAAsB,GAChE,EAAC,EAAA,CAAU,GAAI,EAAO,GAAI,IAAW,EAAK,EAAI"}
@@ -0,0 +1,21 @@
1
+ import { IconVariantProps } from "@mage-ui/styled-system/recipes";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/atoms/icon/Icon.d.ts
5
+ type IconProps = {
6
+ name: string;
7
+ classNames?: {
8
+ root: string;
9
+ svg: string;
10
+ };
11
+ } & IconVariantProps;
12
+ declare const Icon: ({
13
+ name,
14
+ classNames
15
+ }: IconProps) => ReactNode;
16
+
17
+ //#endregion
18
+ //# sourceMappingURL=Icon.d.ts.map
19
+
20
+ export { Icon as Icon$1, IconProps };
21
+ //# sourceMappingURL=Icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.d.ts","names":[],"sources":["../../../src/atoms/icon/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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icon.js","names":[],"sources":["../../../src/atoms/icon/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"}
@@ -0,0 +1,20 @@
1
+ import { IconVariantProps } from "@mage-ui/styled-system/recipes";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/atoms/icon/IconRaw.d.ts
5
+ type IconRawProps = {
6
+ name: string;
7
+ classNames?: {
8
+ svg: string;
9
+ };
10
+ } & IconVariantProps;
11
+ declare const IconRaw: ({
12
+ name,
13
+ classNames
14
+ }: IconRawProps) => ReactNode;
15
+
16
+ //#endregion
17
+ //# sourceMappingURL=IconRaw.d.ts.map
18
+
19
+ export { IconRaw as IconRaw$1, IconRawProps };
20
+ //# sourceMappingURL=IconRaw.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconRaw.d.ts","names":[],"sources":["../../../src/atoms/icon/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"}
@@ -0,0 +1,2 @@
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.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconRaw.js","names":[],"sources":["../../../src/atoms/icon/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,23 @@
1
+ import { ReactNode } from "react";
2
+
3
+ //#region src/atoms/inputs/Checkbox.d.ts
4
+ type CheckboxProps = {
5
+ classNames?: {
6
+ checkboxBody?: string;
7
+ checkboxDescription?: string;
8
+ checkboxError?: string;
9
+ checkboxIcon?: string;
10
+ checkboxInner?: string;
11
+ checkboxInput?: string;
12
+ checkboxLabel?: string;
13
+ checkboxLabelWrapper?: string;
14
+ };
15
+ };
16
+ declare const Checkbox: ({
17
+ classNames,
18
+ ...props
19
+ }: CheckboxProps) => ReactNode; //#endregion
20
+
21
+ //# sourceMappingURL=Checkbox.d.ts.map
22
+ export { Checkbox as Checkbox$1 };
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":";;;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"}
@@ -0,0 +1,2 @@
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.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,46 @@
1
+ import { ReactNode } from "react";
2
+
3
+ //#region src/atoms/inputs/DatePicker.d.ts
4
+ type DatePickerProps = {
5
+ required?: boolean;
6
+ classNames?: InputClassNamesType & CalenderHeaderClassNamesType & {
7
+ calendarMonth?: string;
8
+ calendarWeekDaysRow?: string;
9
+ calendarWeekDay?: string;
10
+ calendarMonthRow?: string;
11
+ calendarDay?: string;
12
+ calendarMonthsList?: string;
13
+ calendarMonthCell?: string;
14
+ calendarMonthsListRow?: string;
15
+ calendarMonthsListCell?: string;
16
+ calendarMonthsListControl?: string;
17
+ calendarYearsList?: string;
18
+ calendarYearsListRow?: string;
19
+ calendarYearsListCell?: string;
20
+ calendarYearsListControl?: string;
21
+ };
22
+ };
23
+ declare const DatePicker: ({
24
+ required,
25
+ classNames,
26
+ ...props
27
+ }: DatePickerProps) => ReactNode;
28
+ type InputClassNamesType = {
29
+ root?: string;
30
+ wrapper?: string;
31
+ input?: string;
32
+ label?: string;
33
+ error?: string;
34
+ description?: string;
35
+ placeholder?: string;
36
+ section?: string;
37
+ };
38
+ type CalenderHeaderClassNamesType = {
39
+ datepickerDropdown?: string;
40
+ calendarHeaderControl?: string;
41
+ calendarHeader?: string;
42
+ calendarHeaderLevel?: string;
43
+ calendarHeaderControlIcon?: string;
44
+ }; //#endregion
45
+ export { DatePicker as DatePicker$1 };
46
+ //# 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,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"}
@@ -0,0 +1,2 @@
1
+ import{Icon as e}from"../icon/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
@@ -0,0 +1 @@
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 '../icon/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":"q1BAiHA,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"}
@@ -0,0 +1,32 @@
1
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
2
+ import { ComponentProps, ReactNode } from "react";
3
+
4
+ //#region src/atoms/inputs/InputText.d.ts
5
+ type InputTextProps = Omit<ComponentProps<'input'>, 'size'> & {
6
+ label?: string;
7
+ description?: string;
8
+ error?: string;
9
+ classNames?: {
10
+ root?: string;
11
+ label?: string;
12
+ description?: string;
13
+ error?: string;
14
+ wrapper?: string;
15
+ input?: string;
16
+ section?: string;
17
+ };
18
+ startSlot?: ReactNode;
19
+ endSlot?: ReactNode;
20
+ };
21
+ declare const InputText: ({
22
+ classNames,
23
+ startSlot,
24
+ endSlot,
25
+ ...props
26
+ }: InputTextProps) => react_jsx_runtime3.JSX.Element;
27
+
28
+ //#endregion
29
+ //# sourceMappingURL=InputText.d.ts.map
30
+
31
+ export { InputText as InputText$1, InputTextProps };
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"}
@@ -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,...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.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"}
@@ -0,0 +1,46 @@
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+
3
+ //#region src/atoms/inputs/combobox/Combobox.d.ts
4
+ type ComboboxProps = {
5
+ selectedOption: {
6
+ id: string;
7
+ value: string;
8
+ } | undefined;
9
+ setSelectedOption: (value: {
10
+ id: string;
11
+ value: string;
12
+ } | undefined) => void;
13
+ options: {
14
+ id: string;
15
+ value: string;
16
+ }[];
17
+ creatable?: boolean;
18
+ classNames?: {
19
+ option?: string;
20
+ empty?: string;
21
+ create?: string;
22
+ };
23
+ texts: {
24
+ input: {
25
+ label: string;
26
+ placeholder: string;
27
+ description?: string;
28
+ error?: string;
29
+ };
30
+ empty: string;
31
+ create: string;
32
+ };
33
+ };
34
+ declare const Combobox: ({
35
+ selectedOption,
36
+ setSelectedOption,
37
+ options,
38
+ creatable,
39
+ classNames,
40
+ texts,
41
+ ...props
42
+ }: ComboboxProps) => react_jsx_runtime1.JSX.Element; //#endregion
43
+
44
+ //# sourceMappingURL=Combobox.d.ts.map
45
+ export { Combobox as Combobox$1 };
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"../../icon/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
@@ -0,0 +1 @@
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 '../../icon/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":"2QA+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"}
@@ -0,0 +1,2 @@
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.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 const VisuallyHidden = ({ children }: { children: React.ReactNode }) => {\n return (\n <MantineVisuallyHidden\n classNames={{\n root: visuallyHidden(),\n }}\n >\n {children}\n </MantineVisuallyHidden>\n );\n};\n"],"mappings":"wJAIA,MAAaA,EAAiB,CAAC,CAAE,WAAyC,GAEtE,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,GAAgB,AACvB,EAEA,YACqB"}
@@ -0,0 +1,17 @@
1
+ import "react/jsx-runtime";
2
+ import React from "react";
3
+
4
+ //#region src/atoms/tabs/Tab.d.ts
5
+ type TabProps = {
6
+ classNames?: {
7
+ tab?: string;
8
+ tabLabel?: string;
9
+ tabSection?: string;
10
+ };
11
+ children?: React.ReactNode;
12
+ startSlot?: React.ReactNode;
13
+ endSlot?: React.ReactNode;
14
+ value: string;
15
+ }; //#endregion
16
+ export { TabProps };
17
+ //# sourceMappingURL=Tab.d.ts.map
@@ -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"}
@@ -0,0 +1,2 @@
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.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,13 @@
1
+ import "react/jsx-runtime";
2
+ import React from "react";
3
+
4
+ //#region src/atoms/tabs/TabList.d.ts
5
+ type TabListProps = {
6
+ classNames?: {
7
+ list?: string;
8
+ };
9
+ children?: React.ReactNode;
10
+ grow?: boolean;
11
+ }; //#endregion
12
+ export { TabListProps };
13
+ //# sourceMappingURL=TabList.d.ts.map
@@ -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"}
@@ -0,0 +1,2 @@
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.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,13 @@
1
+ import "react/jsx-runtime";
2
+ import React from "react";
3
+
4
+ //#region src/atoms/tabs/TabPanel.d.ts
5
+ type TabProps = {
6
+ classNames?: {
7
+ panel?: string;
8
+ };
9
+ children?: React.ReactNode;
10
+ value: string;
11
+ }; //#endregion
12
+ export { TabProps as TabProps$1 };
13
+ //# sourceMappingURL=TabPanel.d.ts.map
@@ -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"}
@@ -0,0 +1,2 @@
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.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabPanel.js","names":["MantineTab"],"sources":["../../../src/atoms/tabs/TabPanel.tsx"],"sourcesContent":["import { tabPanel } 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 panel?: string;\n };\n children?: React.ReactNode;\n value: string;\n};\n\nexport const TabPanel = ({ classNames, children, ...props }: TabProps) => {\n return (\n <MantineTab.Panel\n classNames={{\n panel: classNames?.panel ?? tabPanel(),\n ...classNames,\n }}\n {...props}\n >\n {children}\n </MantineTab.Panel>\n );\n};\n\nTabPanel.displayName = 'Tabs.Panel';\n"],"mappings":"uIAYA,MAAa,EAAW,CAAC,CAAE,aAAY,WAAU,GAAG,EAAiB,GAEjE,EAACA,EAAW,MAAA,CACV,WAAY,CACV,MAAO,GAAY,OAAS,GAAU,CACtC,GAAG,CACJ,EACD,GAAI,EAEH,YACgB,CAIvB,EAAS,YAAc"}
@@ -0,0 +1,53 @@
1
+ import { TabListProps } from "./TabList.js";
2
+ import { TabProps } from "./Tab.js";
3
+ import { TabProps$1 } from "./TabPanel.js";
4
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
5
+ import React from "react";
6
+
7
+ //#region src/atoms/tabs/Tabs.d.ts
8
+ type TabsProps = {
9
+ classNames?: {
10
+ root?: string;
11
+ };
12
+ children?: React.ReactNode;
13
+ };
14
+ declare const Tabs: {
15
+ ({
16
+ classNames,
17
+ children,
18
+ ...props
19
+ }: TabsProps): react_jsx_runtime4.JSX.Element;
20
+ List: {
21
+ ({
22
+ classNames,
23
+ children,
24
+ grow,
25
+ ...props
26
+ }: TabListProps): react_jsx_runtime4.JSX.Element;
27
+ displayName: string;
28
+ };
29
+ Tab: {
30
+ ({
31
+ classNames,
32
+ startSlot,
33
+ endSlot,
34
+ children,
35
+ ...props
36
+ }: TabProps): react_jsx_runtime4.JSX.Element;
37
+ displayName: string;
38
+ };
39
+ Panel: {
40
+ ({
41
+ classNames,
42
+ children,
43
+ ...props
44
+ }: TabProps$1): react_jsx_runtime4.JSX.Element;
45
+ displayName: string;
46
+ };
47
+ };
48
+
49
+ //#endregion
50
+ //# sourceMappingURL=Tabs.d.ts.map
51
+
52
+ export { Tabs as Tabs$1 };
53
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","names":[],"sources":["../../../src/atoms/tabs/Tabs.tsx"],"sourcesContent":[],"mappings":";;;;;;;KAOY,SAAA;;;;aAIC,KAAA,CAAM;;AAJP,cAOC,IAPQ,EAIR;EAGA,CAAA;IAAA,UAYZ;IAAA,QAAA;IAAA,GAAA;EAAA,CAAA,EAZwD,SAYxD,CAAA,EAZiE,kBAAA,CAAA,GAAA,CAAA,OAYjE;EAAA,IAAA,EAAA;IAAA,CAAA;MAAA,UAAA;MAAA,QAAA;MAAA,IAAA;MAAA,GAAA;IAAA,CAAA,cAAA,CAAA,gCAAA;;;EAZiE,GAAA,EAAA;IAAA,CAAA;MAAA,UAAA;MAAA,SAAA;MAAA,OAAA;MAAA,QAAA;MAAA,GAAA;IAAA,CAAA,UAAA,CAAA,gCAAA"}
@@ -0,0 +1,2 @@
1
+ import{Tab as e}from"./Tab.js";import{TabList as t}from"./TabList.js";import{TabPanel as n}from"./TabPanel.js";import{tabs as r}from"@mage-ui/styled-system/recipes";import{Tabs as i}from"@mantine/core";import{jsx as a}from"react/jsx-runtime";const o=({classNames:e,children:t,...n})=>a(i,{classNames:{root:e?.root??r(),...e},...n,children:t});o.List=t,o.Tab=e,o.Panel=n;export{o as Tabs};
2
+ //# sourceMappingURL=Tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.js","names":["Tabs","MantineTabs"],"sources":["../../../src/atoms/tabs/Tabs.tsx"],"sourcesContent":["import { tabs } from '@mage-ui/styled-system/recipes';\nimport { Tabs as MantineTabs } from '@mantine/core';\nimport type React from 'react';\nimport { Tab } from './Tab';\nimport { TabList } from './TabList';\nimport { TabPanel } from './TabPanel';\n\nexport type TabsProps = {\n classNames?: {\n root?: string;\n };\n children?: React.ReactNode;\n};\n\nexport const Tabs = ({ classNames, children, ...props }: TabsProps) => {\n return (\n <MantineTabs\n classNames={{\n root: classNames?.root ?? tabs(),\n ...classNames,\n }}\n {...props}\n >\n {children}\n </MantineTabs>\n );\n};\n\nTabs.List = TabList;\nTabs.Tab = Tab;\nTabs.Panel = TabPanel;\n"],"mappings":"kPAcA,MAAaA,EAAO,CAAC,CAAE,aAAY,WAAU,GAAG,EAAkB,GAE9D,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,GAAY,MAAQ,GAAM,CAChC,GAAG,CACJ,EACD,GAAI,EAEH,YACW,CAMlB,AAFA,EAAK,KAAO,EACZ,EAAK,IAAM,EACX,EAAK,MAAQ"}
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from "react";
2
+
3
+ //#region src/atoms/wrapped-icon/WrappedIcon.d.ts
4
+ type WrappedIconProps = {
5
+ children: ReactNode;
6
+ classNames?: {
7
+ root?: string;
8
+ };
9
+ };
10
+ declare const WrappedIcon: ({
11
+ children,
12
+ classNames,
13
+ ...props
14
+ }: WrappedIconProps) => ReactNode;
15
+
16
+ //#endregion
17
+ //# sourceMappingURL=WrappedIcon.d.ts.map
18
+
19
+ export { WrappedIcon as WrappedIcon$1 };
20
+ //# sourceMappingURL=WrappedIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WrappedIcon.d.ts","names":[],"sources":["../../../src/atoms/wrapped-icon/WrappedIcon.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 WrappedIcon};
2
+ //# sourceMappingURL=WrappedIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WrappedIcon.js","names":[],"sources":["../../../src/atoms/wrapped-icon/WrappedIcon.tsx"],"sourcesContent":["import { wrappedIcon } from '@mage-ui/styled-system/recipes';\nimport { ThemeIcon } from '@mantine/core';\nimport type { ReactNode } from 'react';\n\nexport type WrappedIconProps = {\n children: ReactNode;\n classNames?: {\n root?: string;\n };\n};\n\nexport const WrappedIcon = ({\n children,\n classNames,\n ...props\n}: WrappedIconProps): 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,16 @@
1
+ import { Avatar$1 as Avatar } from "./atoms/avatar/Avatar.js";
2
+ import { Badge$1 as Badge } from "./atoms/badges/Badge.js";
3
+ import { Breadcrumbs$1 as Breadcrumbs } from "./atoms/breadcrumbs/Breadcrumbs.js";
4
+ import { Button$1 as Button } from "./atoms/buttons/Button.js";
5
+ import { ButtonIcon$1 as ButtonIcon } from "./atoms/buttons/ButtonIcon.js";
6
+ import { Icon$1 as Icon, IconProps } from "./atoms/icon/Icon.js";
7
+ import { IconRaw$1 as IconRaw, IconRawProps } from "./atoms/icon/IconRaw.js";
8
+ import { Checkbox$1 as Checkbox } from "./atoms/inputs/Checkbox.js";
9
+ import { DatePicker$1 as DatePicker } from "./atoms/inputs/DatePicker.js";
10
+ import { InputText$1 as InputText } from "./atoms/inputs/InputText.js";
11
+ import { Combobox$1 as Combobox } from "./atoms/inputs/combobox/Combobox.js";
12
+ import { FormInputText$1 as FormInputText } from "./atoms/forms/FormInputText.js";
13
+ import { Tabs$1 as Tabs } from "./atoms/tabs/Tabs.js";
14
+ import { WrappedIcon$1 as WrappedIcon } from "./atoms/wrapped-icon/WrappedIcon.js";
15
+ import { MageUiProvider$1 as MageUiProvider } from "./providers/MageUiProvider.js";
16
+ export { Avatar, Badge, Breadcrumbs, Button, ButtonIcon, Checkbox, Combobox, DatePicker, FormInputText, Icon, IconProps, IconRaw, IconRawProps, InputText, MageUiProvider, Tabs, WrappedIcon };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ import{Avatar as e}from"./atoms/avatar/Avatar.js";import{Badge as t}from"./atoms/badges/Badge.js";import{Breadcrumbs as n}from"./atoms/breadcrumbs/Breadcrumbs.js";import{Button as r}from"./atoms/buttons/Button.js";import{ButtonIcon as i}from"./atoms/buttons/ButtonIcon.js";import{IconRaw as a}from"./atoms/icon/IconRaw.js";import{Icon as o}from"./atoms/icon/Icon.js";import{Checkbox as s}from"./atoms/inputs/Checkbox.js";import{DatePicker as c}from"./atoms/inputs/DatePicker.js";import{InputText as l}from"./atoms/inputs/InputText.js";import{Combobox as u}from"./atoms/inputs/combobox/Combobox.js";import{FormInputText as d}from"./atoms/forms/FormInputText.js";import{Tabs as f}from"./atoms/tabs/Tabs.js";import{WrappedIcon as p}from"./atoms/wrapped-icon/WrappedIcon.js";import{MageUiProvider as m}from"./providers/MageUiProvider.js";export{e as Avatar,t as Badge,n as Breadcrumbs,r as Button,i as ButtonIcon,s as Checkbox,u as Combobox,c as DatePicker,d as FormInputText,o as Icon,a as IconRaw,l as InputText,m as MageUiProvider,f as Tabs,p as WrappedIcon};
@@ -0,0 +1,164 @@
1
+ {
2
+ "schemaVersion": "0.53.7",
3
+ "styles": {
4
+ "atomic": [
5
+ "color]___[value:neutral.foreground.1.onBrand.enabled",
6
+ "backgroundColor]___[value:primary.background.2.enabled",
7
+ "backgroundColor]___[value:primary.background.2.hovered]___[cond:_hover",
8
+ "backgroundColor]___[value:primary.background.2.actived]___[cond:_active",
9
+ "backgroundColor]___[value:neutral.background.6.enabled",
10
+ "backgroundColor]___[value:neutral.background.6.hovered]___[cond:_hover",
11
+ "backgroundColor]___[value:neutral.background.6.actived]___[cond:_active",
12
+ "backgroundColor]___[value:danger.background.1.enabled",
13
+ "backgroundColor]___[value:danger.background.1.hovered]___[cond:_hover",
14
+ "backgroundColor]___[value:danger.background.1.actived]___[cond:_active",
15
+ "color]___[value:primary.foreground.2.enabled",
16
+ "borderColor]___[value:primary.stroke.3.enabled",
17
+ "color]___[value:primary.foreground.2.hovered]___[cond:_hover",
18
+ "backgroundColor]___[value:neutral.background.2.hovered]___[cond:_hover",
19
+ "borderColor]___[value:primary.stroke.3.hovered]___[cond:_hover",
20
+ "color]___[value:primary.foreground.2.actived]___[cond:_active",
21
+ "backgroundColor]___[value:neutral.background.2.actived]___[cond:_active",
22
+ "borderColor]___[value:primary.stroke.3.actived]___[cond:_active",
23
+ "color]___[value:neutral.foreground.2.enabled",
24
+ "borderColor]___[value:neutral.stroke.7.enabled",
25
+ "color]___[value:neutral.foreground.2.hovered]___[cond:_hover",
26
+ "borderColor]___[value:neutral.stroke.7.hovered]___[cond:_hover",
27
+ "color]___[value:neutral.foreground.2.actived]___[cond:_active",
28
+ "borderColor]___[value:neutral.stroke.7.actived]___[cond:_active",
29
+ "color]___[value:danger.foreground.1.enabled",
30
+ "borderColor]___[value:danger.stroke.1.enabled",
31
+ "color]___[value:danger.foreground.1.hovered]___[cond:_hover",
32
+ "borderColor]___[value:danger.stroke.1.hovered]___[cond:_hover",
33
+ "color]___[value:danger.foreground.1.actived]___[cond:_active",
34
+ "borderColor]___[value:danger.stroke.1.actived]___[cond:_active",
35
+ "srOnly]___[value:true",
36
+ "backgroundColor]___[value:neutral.background.1.enabled",
37
+ "backgroundColor]___[value:primary.background.4.hovered]___[cond:_hover",
38
+ "backgroundColor]___[value:primary.background.5.enabled]___[cond:_active",
39
+ "color]___[value:primary.foreground.2.enabled]___[cond:_active",
40
+ "backgroundColor]___[value:primary.background.2.hovered]___[cond:_active<___>_hover",
41
+ "color]___[value:neutral.foreground.1.onBrand.enabled]___[cond:_active<___>_hover",
42
+ "color]___[value:neutral.foreground.3.enabled",
43
+ "backgroundColor]___[value:neutral.background.2.enabled]___[cond:_active",
44
+ "color]___[value:neutral.foreground.2.enabled]___[cond:_active",
45
+ "backgroundColor]___[value:neutral.background.3.hovered]___[cond:_active<___>_hover",
46
+ "color]___[value:neutral.foreground.2.hovered]___[cond:_active<___>_hover",
47
+ "borderColor]___[value:primary.stroke.1.hovered]___[cond:_hover",
48
+ "borderColor]___[value:primary.stroke.2.enabled]___[cond:_active",
49
+ "borderColor]___[value:primary.stroke.2.hovered]___[cond:_active<___>_hover",
50
+ "borderColor]___[value:neutral.stroke.3.enabled",
51
+ "borderColor]___[value:neutral.stroke.1.hovered]___[cond:_hover",
52
+ "borderColor]___[value:neutral.stroke.2.enabled]___[cond:_active",
53
+ "color]___[value:neutral.foreground.static.enabled]___[cond:_active<___>_hover",
54
+ "borderColor]___[value:neutral.stroke.2.hovered]___[cond:_active<___>_hover",
55
+ "color]___[value:neutral.foreground.2.onBrand.enabled",
56
+ "backgroundColor]___[value:neutral.background.2.enabled",
57
+ "color]___[value:primary.foreground.1.enabled",
58
+ "borderColor]___[value:primary.stroke.2.enabled",
59
+ "color]___[value:neutral.foreground.1.enabled",
60
+ "borderColor]___[value:neutral.stroke.2.enabled"
61
+ ],
62
+ "recipes": {
63
+ "avatar": [
64
+ "size]___[value:m]___[recipe:avatar"
65
+ ],
66
+ "avatarImg": [],
67
+ "avatarText": [
68
+ "size]___[value:m]___[recipe:avatarText"
69
+ ],
70
+ "badge": [
71
+ "status]___[value:neutral]___[recipe:badge"
72
+ ],
73
+ "badgeSection": [],
74
+ "breadcrumbs": [],
75
+ "button": [
76
+ "variant]___[value:filled]___[recipe:button",
77
+ "color]___[value:neutral]___[recipe:button",
78
+ "size]___[value:m]___[recipe:button"
79
+ ],
80
+ "buttonInner": [],
81
+ "buttonSection": [],
82
+ "buttonIcon": [
83
+ "variant]___[value:filled]___[recipe:buttonIcon",
84
+ "color]___[value:neutral]___[recipe:buttonIcon",
85
+ "size]___[value:m]___[recipe:buttonIcon"
86
+ ],
87
+ "buttonIconIcon": [
88
+ "size]___[value:m]___[recipe:buttonIconIcon"
89
+ ],
90
+ "icon": [
91
+ "size]___[value:m]___[recipe:icon",
92
+ "size]___[value:l]___[recipe:icon"
93
+ ],
94
+ "checkboxBody": [],
95
+ "checkboxLabelWrapper": [],
96
+ "checkboxLabel": [
97
+ "size]___[value:l]___[recipe:checkboxLabel"
98
+ ],
99
+ "checkboxDescription": [],
100
+ "checkboxError": [],
101
+ "checkboxInput": [],
102
+ "checkboxInner": [],
103
+ "checkboxIcon": [],
104
+ "datepickerDropdown": [],
105
+ "inputRoot": [],
106
+ "inputWrapper": [],
107
+ "input": [
108
+ "size]___[value:l]___[recipe:input"
109
+ ],
110
+ "datepickerInput": [],
111
+ "inputLabel": [
112
+ "size]___[value:l]___[recipe:inputLabel"
113
+ ],
114
+ "inputError": [],
115
+ "inputDescription": [],
116
+ "inputPlaceholder": [],
117
+ "inputSection": [
118
+ "pointerEvents]___[value:none]___[recipe:inputSection"
119
+ ],
120
+ "calendarControl": [],
121
+ "calendarHeader": [],
122
+ "calendarHeaderLevel": [],
123
+ "calendarHeaderControlIcon": [],
124
+ "calendarMonth": [],
125
+ "calendarWeekDaysRow": [],
126
+ "calendarWeekDay": [],
127
+ "calendarMonthRow": [],
128
+ "calendarMonthCell": [],
129
+ "calendarDay": [],
130
+ "calendarMonthsList": [],
131
+ "calendarMonthsListRow": [],
132
+ "calendarMonthsListCell": [],
133
+ "calendarMonthsListControl": [],
134
+ "calendarYearsList": [],
135
+ "calendarYearsListRow": [],
136
+ "calendarYearsListCell": [],
137
+ "calendarYearsListControl": [],
138
+ "comboboxOption": [
139
+ "colors]___[value:neutral]___[recipe:comboboxOption",
140
+ "type]___[value:create]___[recipe:comboboxOption"
141
+ ],
142
+ "comboboxEmpty": [],
143
+ "dropdown": [],
144
+ "comboboxOptions": [],
145
+ "tab": [
146
+ "color]___[value:neutral]___[recipe:tab",
147
+ "variant]___[value:tab]___[recipe:tab"
148
+ ],
149
+ "tabLabel": [],
150
+ "tabSection": [],
151
+ "tabList": [],
152
+ "tabPanel": [],
153
+ "tabs": [
154
+ "orientation]___[value:horizontal]___[recipe:tabs"
155
+ ],
156
+ "wrappedIcon": [
157
+ "variant]___[value:filled]___[recipe:wrappedIcon",
158
+ "shape]___[value:rounded]___[recipe:wrappedIcon",
159
+ "color]___[value:neutral]___[recipe:wrappedIcon",
160
+ "size]___[value:m]___[recipe:wrappedIcon"
161
+ ]
162
+ }
163
+ }
164
+ }
@@ -0,0 +1,15 @@
1
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
2
+ import { ReactNode } from "react";
3
+
4
+ //#region src/providers/MageUiProvider.d.ts
5
+ declare const MageUiProvider: ({
6
+ children
7
+ }: {
8
+ children: ReactNode;
9
+ }) => react_jsx_runtime11.JSX.Element;
10
+
11
+ //#endregion
12
+ //# sourceMappingURL=MageUiProvider.d.ts.map
13
+
14
+ export { MageUiProvider as MageUiProvider$1 };
15
+ //# sourceMappingURL=MageUiProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MageUiProvider.d.ts","names":[],"sources":["../../src/providers/MageUiProvider.tsx"],"sourcesContent":[],"mappings":";;;;cAGa;;;YAA4C;MAAW,mBAAA,CAAA,GAAA,CAAA;;;AAApE"}
@@ -0,0 +1,2 @@
1
+ import{HeadlessMantineProvider as e}from"@mantine/core";import{jsx as t}from"react/jsx-runtime";const n=({children:n})=>t(e,{children:n});export{n as MageUiProvider};
2
+ //# sourceMappingURL=MageUiProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MageUiProvider.js","names":[],"sources":["../../src/providers/MageUiProvider.tsx"],"sourcesContent":["import { HeadlessMantineProvider } from '@mantine/core';\nimport type { ReactNode } from 'react';\n\nexport const MageUiProvider = ({ children }: { children: ReactNode }) => {\n return <HeadlessMantineProvider>{children}</HeadlessMantineProvider>;\n};\n"],"mappings":"gGAGA,MAAa,EAAiB,CAAC,CAAE,WAAmC,GAC3D,EAAC,EAAA,CAAyB,UAAA,EAAmC"}
package/package.json CHANGED
@@ -1,59 +1,51 @@
1
1
  {
2
2
  "name": "@mage-ui/components",
3
- "version": "0.0.12",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
7
7
  "author": "",
8
8
  "sideEffects": false,
9
+ "type": "module",
9
10
  "exports": {
10
- "./panda.json": "./dist/panda.json",
11
- ".": "./dist/index.js"
11
+ ".": "./dist/index.js",
12
+ "./package.json": "./package.json"
12
13
  },
14
+ "main": "./dist/index.js",
15
+ "module": "./dist/index.js",
16
+ "types": "./dist/index.d.ts",
13
17
  "files": [
14
18
  "dist"
15
19
  ],
16
- "main": "dist/index.js",
17
- "module": "dist/index.js",
18
- "types": "dist/index.d.ts",
19
- "dependencies": {
20
- "@mantine/core": "^8.0.0",
21
- "@mantine/dates": "^8.0.1",
22
- "@mantine/hooks": "^8.0.0",
23
- "@pandabox/define-recipe": "^0.0.3",
24
- "@pandacss/dev": "^0.53.4",
25
- "@pandacss/types": "^0.53.4",
26
- "react": "^19.1.0",
27
- "react-dom": "^19.1.0",
28
- "react-hook-form": "^7.56.3",
29
- "@mage-ui/preset": "0.0.12",
30
- "@mage-ui/styled-system": "0.0.12"
31
- },
32
20
  "devDependencies": {
33
21
  "@biomejs/biome": "^1.9.4",
34
- "@rollup/plugin-typescript": "^12.1.2",
35
- "@swc/core": "^1.11.21",
36
- "@swc/helpers": "^0.5.17",
22
+ "@pandacss/types": "^0.53.7",
37
23
  "@types/node": "^22.14.1",
38
24
  "@types/react": "^19.1.2",
39
25
  "@types/react-dom": "^19.1.2",
40
26
  "rimraf": "^6.0.1",
41
- "rollup": "^4.40.0",
42
- "rollup-plugin-dts": "^6.2.1",
43
- "rollup-plugin-swc3": "^0.12.1",
44
- "rollup-preserve-directives": "^1.1.3",
45
- "tsc-alias": "^1.8.15",
27
+ "tsdown": "^0.12.3",
46
28
  "typescript": "^5.8.3"
47
29
  },
30
+ "peerDependencies": {
31
+ "@mantine/core": "^8.0.1",
32
+ "@mantine/dates": "^8.0.1",
33
+ "@mantine/hooks": "^8.0.1",
34
+ "@pandabox/define-recipe": "^0.0.3",
35
+ "@pandacss/dev": "^0.53.7",
36
+ "react": "^19.1.0",
37
+ "react-dom": "^19.1.0",
38
+ "react-hook-form": "^7.56.4",
39
+ "@mage-ui/preset": "0.0.15",
40
+ "@mage-ui/styled-system": "0.0.15"
41
+ },
48
42
  "engines": {
49
43
  "node": ">=22.14.0"
50
44
  },
51
45
  "scripts": {
52
- "build": "pnpm build:fast && pnpm build:types",
53
- "build:fast": "env NODE_ENV=production rimraf dist && panda codegen && rollup -c ./rollup.config.mjs && panda ship -o dist/panda.json",
54
- "build:types": "tsc --project tsconfig.json && tsc-alias -p tsconfig.json",
46
+ "build": "rimraf dist && panda codegen && tsdown --env.NODE_ENV=production --minify && panda ship -o dist/panda.json",
55
47
  "clean": "rimraf dist node_modules styled-system",
56
- "dev": "env NODE_ENV=development rollup -c ./rollup.config.mjs --watch --watch.onStart='panda codegen && panda ship -o dist/panda.json && pnpm build:types'",
48
+ "dev": "tsdown --env.NODE_ENV=development --watch --no-clean --silent",
57
49
  "lint": "biome check --write"
58
50
  }
59
51
  }