@mage-ui/components 0.0.15 → 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.
Files changed (54) hide show
  1. package/dist/atoms/{avatar → avatars}/Avatar.d.ts +4 -4
  2. package/dist/atoms/avatars/Avatar.d.ts.map +1 -0
  3. package/dist/atoms/avatars/Avatar.js.map +1 -0
  4. package/dist/atoms/badges/Badge.d.ts +3 -3
  5. package/dist/atoms/badges/Badge.d.ts.map +1 -1
  6. package/dist/atoms/breadcrumbs/Breadcrumbs.d.ts +3 -3
  7. package/dist/atoms/breadcrumbs/Breadcrumbs.js.map +1 -1
  8. package/dist/atoms/buttons/Button.d.ts +2 -2
  9. package/dist/atoms/buttons/Button.d.ts.map +1 -1
  10. package/dist/atoms/buttons/ButtonIcon.d.ts +3 -3
  11. package/dist/atoms/buttons/ButtonIcon.d.ts.map +1 -1
  12. package/dist/atoms/buttons/ButtonIcon.js.map +1 -1
  13. package/dist/atoms/forms/FormInputText.d.ts +4 -4
  14. package/dist/atoms/forms/FormInputText.d.ts.map +1 -1
  15. package/dist/atoms/forms/FormInputText.js.map +1 -1
  16. package/dist/atoms/{icon → icons}/Icon.d.ts +1 -1
  17. package/dist/atoms/icons/Icon.d.ts.map +1 -0
  18. package/dist/atoms/icons/Icon.js.map +1 -0
  19. package/dist/atoms/{icon → icons}/IconRaw.d.ts +1 -1
  20. package/dist/atoms/icons/IconRaw.d.ts.map +1 -0
  21. package/dist/atoms/icons/IconRaw.js.map +1 -0
  22. package/dist/atoms/icons/IconWrapped.d.ts +20 -0
  23. package/dist/atoms/icons/IconWrapped.d.ts.map +1 -0
  24. package/dist/atoms/{wrapped-icon/WrappedIcon.js → icons/IconWrapped.js} +2 -2
  25. package/dist/atoms/icons/IconWrapped.js.map +1 -0
  26. package/dist/atoms/inputs/Checkbox.d.ts +1 -1
  27. package/dist/atoms/inputs/DatePicker.d.ts +1 -1
  28. package/dist/atoms/inputs/DatePicker.js +1 -1
  29. package/dist/atoms/inputs/DatePicker.js.map +1 -1
  30. package/dist/atoms/inputs/InputText.d.ts +2 -2
  31. package/dist/atoms/inputs/combobox/Combobox.d.ts +3 -3
  32. package/dist/atoms/inputs/combobox/Combobox.js +1 -1
  33. package/dist/atoms/inputs/combobox/Combobox.js.map +1 -1
  34. package/dist/atoms/misc/VisuallyHidden.js.map +1 -1
  35. package/dist/atoms/tabs/Tabs.d.ts +6 -6
  36. package/dist/index.d.ts +16 -16
  37. package/dist/index.js +1 -1
  38. package/dist/panda.json +13 -13
  39. package/dist/providers/MageUiProvider.d.ts +6 -5
  40. package/dist/providers/MageUiProvider.d.ts.map +1 -1
  41. package/dist/providers/MageUiProvider.js.map +1 -1
  42. package/package.json +3 -3
  43. package/dist/atoms/avatar/Avatar.d.ts.map +0 -1
  44. package/dist/atoms/avatar/Avatar.js.map +0 -1
  45. package/dist/atoms/icon/Icon.d.ts.map +0 -1
  46. package/dist/atoms/icon/Icon.js.map +0 -1
  47. package/dist/atoms/icon/IconRaw.d.ts.map +0 -1
  48. package/dist/atoms/icon/IconRaw.js.map +0 -1
  49. package/dist/atoms/wrapped-icon/WrappedIcon.d.ts +0 -20
  50. package/dist/atoms/wrapped-icon/WrappedIcon.d.ts.map +0 -1
  51. package/dist/atoms/wrapped-icon/WrappedIcon.js.map +0 -1
  52. /package/dist/atoms/{avatar → avatars}/Avatar.js +0 -0
  53. /package/dist/atoms/{icon → icons}/Icon.js +0 -0
  54. /package/dist/atoms/{icon → icons}/IconRaw.js +0 -0
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime12 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
2
2
 
3
- //#region src/atoms/avatar/Avatar.d.ts
3
+ //#region src/atoms/avatars/Avatar.d.ts
4
4
  type AvatarProps = {
5
5
  name: string;
6
6
  src?: string;
@@ -13,10 +13,10 @@ type AvatarProps = {
13
13
  declare const Avatar: ({
14
14
  classNames,
15
15
  ...props
16
- }: AvatarProps) => react_jsx_runtime12.JSX.Element;
16
+ }: AvatarProps) => react_jsx_runtime1.JSX.Element;
17
17
 
18
18
  //#endregion
19
19
  //# sourceMappingURL=Avatar.d.ts.map
20
20
 
21
- export { Avatar as Avatar$1 };
21
+ export { Avatar as Avatar$1, AvatarProps };
22
22
  //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1 @@
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"}
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime13 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
  import React from "react";
3
3
 
4
4
  //#region src/atoms/badges/Badge.d.ts
@@ -17,10 +17,10 @@ declare const Badge: ({
17
17
  startSlot,
18
18
  classNames,
19
19
  ...props
20
- }: BadgeProps) => react_jsx_runtime13.JSX.Element;
20
+ }: BadgeProps) => react_jsx_runtime2.JSX.Element;
21
21
 
22
22
  //#endregion
23
23
  //# sourceMappingURL=Badge.d.ts.map
24
24
 
25
- export { Badge as Badge$1 };
25
+ export { Badge as Badge$1, BadgeProps };
26
26
  //# sourceMappingURL=Badge.d.ts.map
@@ -1 +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"}
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,4 +1,4 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
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): react_jsx_runtime0.JSX.Element;
20
+ }: BreadcrumbsProps): react_jsx_runtime3.JSX.Element;
21
21
  Item: {
22
22
  ({
23
23
  children
@@ -30,5 +30,5 @@ type ItemProps = {
30
30
  };
31
31
 
32
32
  //#endregion
33
- export { Breadcrumbs as Breadcrumbs$1 };
33
+ export { Breadcrumbs as Breadcrumbs$1, BreadcrumbsProps };
34
34
  //# sourceMappingURL=Breadcrumbs.d.ts.map
@@ -1 +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"}
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 react_jsx_runtime15 from "react/jsx-runtime";
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,7 +18,7 @@ declare const Button: ({
18
18
  endSlot,
19
19
  children,
20
20
  ...props
21
- }: ButtonProps) => react_jsx_runtime15.JSX.Element;
21
+ }: ButtonProps) => react_jsx_runtime8.JSX.Element;
22
22
 
23
23
  //#endregion
24
24
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +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"}
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,5 +1,5 @@
1
1
  import { ButtonProps } from "./Button.js";
2
- import * as react_jsx_runtime14 from "react/jsx-runtime";
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) => react_jsx_runtime14.JSX.Element;
18
+ }: ButtonIconProps) => react_jsx_runtime6.JSX.Element;
19
19
 
20
20
  //#endregion
21
21
  //# sourceMappingURL=ButtonIcon.d.ts.map
22
22
 
23
- export { ButtonIcon as ButtonIcon$1 };
23
+ export { ButtonIcon as ButtonIcon$1, ButtonIconProps };
24
24
  //# sourceMappingURL=ButtonIcon.d.ts.map
@@ -1 +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"}
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"}
@@ -1 +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"}
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,9 +1,9 @@
1
1
  import { InputTextProps } from "../inputs/InputText.js";
2
- import * as react_jsx_runtime2 from "react/jsx-runtime";
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
6
- type FormInputText = {
6
+ type FormInputTextProps = {
7
7
  register?: UseFormRegister<Record<string, string>>;
8
8
  name: string;
9
9
  } & InputTextProps;
@@ -11,10 +11,10 @@ declare const FormInputText: ({
11
11
  register,
12
12
  name,
13
13
  ...props
14
- }: FormInputText) => react_jsx_runtime2.JSX.Element;
14
+ }: FormInputTextProps) => react_jsx_runtime4.JSX.Element;
15
15
 
16
16
  //#endregion
17
17
  //# sourceMappingURL=FormInputText.d.ts.map
18
18
 
19
- export { FormInputText as FormInputText$1 };
19
+ export { FormInputText as FormInputText$1, FormInputTextProps };
20
20
  //# sourceMappingURL=FormInputText.d.ts.map
@@ -1 +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"}
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"}
@@ -1 +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"}
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/icon/Icon.d.ts
4
+ //#region src/atoms/icons/Icon.d.ts
5
5
  type IconProps = {
6
6
  name: string;
7
7
  classNames?: {
@@ -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 @@
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/icon/IconRaw.d.ts
4
+ //#region src/atoms/icons/IconRaw.d.ts
5
5
  type IconRawProps = {
6
6
  name: string;
7
7
  classNames?: {
@@ -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"}
@@ -0,0 +1 @@
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"}
@@ -1,2 +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
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"}
@@ -19,5 +19,5 @@ declare const Checkbox: ({
19
19
  }: CheckboxProps) => ReactNode; //#endregion
20
20
 
21
21
  //# sourceMappingURL=Checkbox.d.ts.map
22
- export { Checkbox as Checkbox$1 };
22
+ export { Checkbox as Checkbox$1, CheckboxProps };
23
23
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -42,5 +42,5 @@ type CalenderHeaderClassNamesType = {
42
42
  calendarHeaderLevel?: string;
43
43
  calendarHeaderControlIcon?: string;
44
44
  }; //#endregion
45
- export { DatePicker as DatePicker$1 };
45
+ export { DatePicker as DatePicker$1, DatePickerProps };
46
46
  //# sourceMappingURL=DatePicker.d.ts.map
@@ -1,2 +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};
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
2
  //# sourceMappingURL=DatePicker.js.map
@@ -1 +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"}
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 react_jsx_runtime3 from "react/jsx-runtime";
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,7 +23,7 @@ declare const InputText: ({
23
23
  startSlot,
24
24
  endSlot,
25
25
  ...props
26
- }: InputTextProps) => react_jsx_runtime3.JSX.Element;
26
+ }: InputTextProps) => react_jsx_runtime7.JSX.Element;
27
27
 
28
28
  //#endregion
29
29
  //# sourceMappingURL=InputText.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime1 from "react/jsx-runtime";
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) => react_jsx_runtime1.JSX.Element; //#endregion
42
+ }: ComboboxProps) => react_jsx_runtime5.JSX.Element; //#endregion
43
43
 
44
44
  //# sourceMappingURL=Combobox.d.ts.map
45
- export { Combobox as Combobox$1 };
45
+ export { Combobox as Combobox$1, ComboboxProps };
46
46
  //# sourceMappingURL=Combobox.d.ts.map
@@ -1,2 +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};
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
2
  //# sourceMappingURL=Combobox.js.map
@@ -1 +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"}
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"}
@@ -1 +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"}
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"}
@@ -1,7 +1,7 @@
1
1
  import { TabListProps } from "./TabList.js";
2
2
  import { TabProps } from "./Tab.js";
3
3
  import { TabProps$1 } from "./TabPanel.js";
4
- import * as react_jsx_runtime4 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
5
5
  import React from "react";
6
6
 
7
7
  //#region src/atoms/tabs/Tabs.d.ts
@@ -16,14 +16,14 @@ declare const Tabs: {
16
16
  classNames,
17
17
  children,
18
18
  ...props
19
- }: TabsProps): react_jsx_runtime4.JSX.Element;
19
+ }: TabsProps): react_jsx_runtime9.JSX.Element;
20
20
  List: {
21
21
  ({
22
22
  classNames,
23
23
  children,
24
24
  grow,
25
25
  ...props
26
- }: TabListProps): react_jsx_runtime4.JSX.Element;
26
+ }: TabListProps): react_jsx_runtime9.JSX.Element;
27
27
  displayName: string;
28
28
  };
29
29
  Tab: {
@@ -33,7 +33,7 @@ declare const Tabs: {
33
33
  endSlot,
34
34
  children,
35
35
  ...props
36
- }: TabProps): react_jsx_runtime4.JSX.Element;
36
+ }: TabProps): react_jsx_runtime9.JSX.Element;
37
37
  displayName: string;
38
38
  };
39
39
  Panel: {
@@ -41,7 +41,7 @@ declare const Tabs: {
41
41
  classNames,
42
42
  children,
43
43
  ...props
44
- }: TabProps$1): react_jsx_runtime4.JSX.Element;
44
+ }: TabProps$1): react_jsx_runtime9.JSX.Element;
45
45
  displayName: string;
46
46
  };
47
47
  };
@@ -49,5 +49,5 @@ declare const Tabs: {
49
49
  //#endregion
50
50
  //# sourceMappingURL=Tabs.d.ts.map
51
51
 
52
- export { Tabs as Tabs$1 };
52
+ export { Tabs as Tabs$1, TabsProps };
53
53
  //# sourceMappingURL=Tabs.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,16 +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 };
1
+ import { Avatar$1 as Avatar, AvatarProps } from "./atoms/avatars/Avatar.js";
2
+ import { Badge$1 as Badge, BadgeProps } from "./atoms/badges/Badge.js";
3
+ import { Breadcrumbs$1 as Breadcrumbs, BreadcrumbsProps } from "./atoms/breadcrumbs/Breadcrumbs.js";
4
+ import { Button$1 as Button, ButtonProps } from "./atoms/buttons/Button.js";
5
+ import { ButtonIcon$1 as ButtonIcon, ButtonIconProps } from "./atoms/buttons/ButtonIcon.js";
6
+ import { Icon$1 as Icon, IconProps } from "./atoms/icons/Icon.js";
7
+ import { IconRaw$1 as IconRaw, IconRawProps } from "./atoms/icons/IconRaw.js";
8
+ import { IconWrapped$1 as IconWrapped, IconWrappedProps } from "./atoms/icons/IconWrapped.js";
9
+ import { Checkbox$1 as Checkbox, CheckboxProps } from "./atoms/inputs/Checkbox.js";
10
+ import { DatePicker$1 as DatePicker, DatePickerProps } from "./atoms/inputs/DatePicker.js";
11
+ import { InputText$1 as InputText, InputTextProps } from "./atoms/inputs/InputText.js";
12
+ import { Combobox$1 as Combobox, ComboboxProps } from "./atoms/inputs/combobox/Combobox.js";
13
+ import { FormInputText$1 as FormInputText, FormInputTextProps } from "./atoms/forms/FormInputText.js";
14
+ import { Tabs$1 as Tabs, TabsProps } from "./atoms/tabs/Tabs.js";
15
+ import { MageUiProvider$1 as MageUiProvider, MageUiProviderProps } from "./providers/MageUiProvider.js";
16
+ export { Avatar, AvatarProps, Badge, BadgeProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonIcon, ButtonIconProps, ButtonProps, Checkbox, CheckboxProps, Combobox, ComboboxProps, DatePicker, DatePickerProps, FormInputText, FormInputTextProps, Icon, IconProps, IconRaw, IconRawProps, IconWrapped, IconWrappedProps, InputText, InputTextProps, MageUiProvider, MageUiProviderProps, Tabs, TabsProps };
package/dist/index.js CHANGED
@@ -1 +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};
1
+ import{Avatar as e}from"./atoms/avatars/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/icons/IconRaw.js";import{Icon as o}from"./atoms/icons/Icon.js";import{IconWrapped as s}from"./atoms/icons/IconWrapped.js";import{Checkbox as c}from"./atoms/inputs/Checkbox.js";import{DatePicker as l}from"./atoms/inputs/DatePicker.js";import{InputText as u}from"./atoms/inputs/InputText.js";import{Combobox as d}from"./atoms/inputs/combobox/Combobox.js";import{FormInputText as f}from"./atoms/forms/FormInputText.js";import{Tabs as p}from"./atoms/tabs/Tabs.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,c as Checkbox,d as Combobox,l as DatePicker,f as FormInputText,o as Icon,a as IconRaw,s as IconWrapped,u as InputText,m as MageUiProvider,p as Tabs};
package/dist/panda.json CHANGED
@@ -33,6 +33,12 @@
33
33
  "color]___[value:danger.foreground.1.actived]___[cond:_active",
34
34
  "borderColor]___[value:danger.stroke.1.actived]___[cond:_active",
35
35
  "srOnly]___[value:true",
36
+ "color]___[value:neutral.foreground.2.onBrand.enabled",
37
+ "backgroundColor]___[value:neutral.background.2.enabled",
38
+ "color]___[value:primary.foreground.1.enabled",
39
+ "borderColor]___[value:primary.stroke.2.enabled",
40
+ "color]___[value:neutral.foreground.1.enabled",
41
+ "borderColor]___[value:neutral.stroke.2.enabled",
36
42
  "backgroundColor]___[value:neutral.background.1.enabled",
37
43
  "backgroundColor]___[value:primary.background.4.hovered]___[cond:_hover",
38
44
  "backgroundColor]___[value:primary.background.5.enabled]___[cond:_active",
@@ -51,13 +57,7 @@
51
57
  "borderColor]___[value:neutral.stroke.1.hovered]___[cond:_hover",
52
58
  "borderColor]___[value:neutral.stroke.2.enabled]___[cond:_active",
53
59
  "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"
60
+ "borderColor]___[value:neutral.stroke.2.hovered]___[cond:_active<___>_hover"
61
61
  ],
62
62
  "recipes": {
63
63
  "avatar": [
@@ -91,6 +91,12 @@
91
91
  "size]___[value:m]___[recipe:icon",
92
92
  "size]___[value:l]___[recipe:icon"
93
93
  ],
94
+ "wrappedIcon": [
95
+ "variant]___[value:filled]___[recipe:wrappedIcon",
96
+ "shape]___[value:rounded]___[recipe:wrappedIcon",
97
+ "color]___[value:neutral]___[recipe:wrappedIcon",
98
+ "size]___[value:m]___[recipe:wrappedIcon"
99
+ ],
94
100
  "checkboxBody": [],
95
101
  "checkboxLabelWrapper": [],
96
102
  "checkboxLabel": [
@@ -152,12 +158,6 @@
152
158
  "tabPanel": [],
153
159
  "tabs": [
154
160
  "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
161
  ]
162
162
  }
163
163
  }
@@ -1,15 +1,16 @@
1
- import * as react_jsx_runtime11 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import { ReactNode } from "react";
3
3
 
4
4
  //#region src/providers/MageUiProvider.d.ts
5
+ type MageUiProviderProps = {
6
+ children: ReactNode;
7
+ };
5
8
  declare const MageUiProvider: ({
6
9
  children
7
- }: {
8
- children: ReactNode;
9
- }) => react_jsx_runtime11.JSX.Element;
10
+ }: MageUiProviderProps) => react_jsx_runtime0.JSX.Element;
10
11
 
11
12
  //#endregion
12
13
  //# sourceMappingURL=MageUiProvider.d.ts.map
13
14
 
14
- export { MageUiProvider as MageUiProvider$1 };
15
+ export { MageUiProvider as MageUiProvider$1, MageUiProviderProps };
15
16
  //# sourceMappingURL=MageUiProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MageUiProvider.d.ts","names":[],"sources":["../../src/providers/MageUiProvider.tsx"],"sourcesContent":[],"mappings":";;;;cAGa;;;YAA4C;MAAW,mBAAA,CAAA,GAAA,CAAA;;;AAApE"}
1
+ {"version":3,"file":"MageUiProvider.d.ts","names":[],"sources":["../../src/providers/MageUiProvider.tsx"],"sourcesContent":[],"mappings":";;;;KAGY,mBAAA;YACA;;AADA,cAIC,cAJkB,EACnB,CAAA;EAAA;AAAS,CAAA,EAGwB,mBAHxB,EAAA,GAG2C,kBAAA,CAAA,GAAA,CAAA,OAH3C;;;AAGrB"}
@@ -1 +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"}
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 type MageUiProviderProps = {\n children: ReactNode;\n};\n\nexport const MageUiProvider = ({ children }: MageUiProviderProps) => {\n return <HeadlessMantineProvider>{children}</HeadlessMantineProvider>;\n};\n"],"mappings":"gGAOA,MAAa,EAAiB,CAAC,CAAE,WAA+B,GACvD,EAAC,EAAA,CAAyB,UAAA,EAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mage-ui/components",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -36,8 +36,8 @@
36
36
  "react": "^19.1.0",
37
37
  "react-dom": "^19.1.0",
38
38
  "react-hook-form": "^7.56.4",
39
- "@mage-ui/preset": "0.0.15",
40
- "@mage-ui/styled-system": "0.0.15"
39
+ "@mage-ui/preset": "0.0.17",
40
+ "@mage-ui/styled-system": "0.0.17"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">=22.14.0"
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
File without changes
File without changes
File without changes