reaxify 0.0.87 → 0.0.89

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 (116) hide show
  1. package/dist/{src/axios → axios}/AxiosProvider.d.ts +2 -1
  2. package/dist/axios/AxiosProvider.d.ts.map +1 -0
  3. package/dist/{src/axios → axios}/index.d.ts +1 -0
  4. package/dist/axios/index.d.ts.map +1 -0
  5. package/dist/{src/axios → axios}/types.d.ts +1 -0
  6. package/dist/axios/types.d.ts.map +1 -0
  7. package/dist/{src/axios → axios}/useAxios.d.ts +1 -0
  8. package/dist/axios/useAxios.d.ts.map +1 -0
  9. package/dist/{src/components → components}/Accordion/index.d.ts +2 -1
  10. package/dist/components/Accordion/index.d.ts.map +1 -0
  11. package/dist/components/Alert/index.cjs.js +1 -1
  12. package/dist/{src/components → components}/Alert/index.d.ts +2 -1
  13. package/dist/components/Alert/index.d.ts.map +1 -0
  14. package/dist/components/Alert/index.es.js +183 -5
  15. package/dist/components/Avatar/index.cjs.js +1 -0
  16. package/dist/{src/components → components}/Avatar/index.d.ts +2 -1
  17. package/dist/components/Avatar/index.d.ts.map +1 -0
  18. package/dist/components/Avatar/index.es.js +162 -0
  19. package/dist/{src/components → components}/Badge/index.d.ts +2 -1
  20. package/dist/components/Badge/index.d.ts.map +1 -0
  21. package/dist/{src/components → components}/Button/index.d.ts +2 -1
  22. package/dist/components/Button/index.d.ts.map +1 -0
  23. package/dist/{src/components → components}/ButtonGroup/index.d.ts +2 -1
  24. package/dist/components/ButtonGroup/index.d.ts.map +1 -0
  25. package/dist/{src/components → components}/Card/index.d.ts +2 -1
  26. package/dist/components/Card/index.d.ts.map +1 -0
  27. package/dist/{src/components → components}/Drawer/index.d.ts +2 -1
  28. package/dist/components/Drawer/index.d.ts.map +1 -0
  29. package/dist/components/Fill/index.cjs.js +1 -0
  30. package/dist/{src/components → components}/Fill/index.d.ts +2 -1
  31. package/dist/components/Fill/index.d.ts.map +1 -0
  32. package/dist/components/Fill/index.es.js +15 -0
  33. package/dist/{src/components → components}/InputGroup/index.d.ts +2 -1
  34. package/dist/components/InputGroup/index.d.ts.map +1 -0
  35. package/dist/{src/components → components}/Menu/index.d.ts +2 -1
  36. package/dist/components/Menu/index.d.ts.map +1 -0
  37. package/dist/{src/components → components}/Modal/index.d.ts +2 -1
  38. package/dist/components/Modal/index.d.ts.map +1 -0
  39. package/dist/{src/components → components}/Portal/index.d.ts +2 -1
  40. package/dist/components/Portal/index.d.ts.map +1 -0
  41. package/dist/{src/components → components}/Progress/index.d.ts +2 -1
  42. package/dist/components/Progress/index.d.ts.map +1 -0
  43. package/dist/{src/components → components}/Skeleton/index.d.ts +1 -0
  44. package/dist/components/Skeleton/index.d.ts.map +1 -0
  45. package/dist/{src/components → components}/Spacer/index.d.ts +2 -1
  46. package/dist/components/Spacer/index.d.ts.map +1 -0
  47. package/dist/components/Spinner/index.cjs.js +1 -1
  48. package/dist/{src/components → components}/Spinner/index.d.ts +2 -1
  49. package/dist/components/Spinner/index.d.ts.map +1 -0
  50. package/dist/components/Spinner/index.es.js +1 -1
  51. package/dist/{src/components → components}/Stack/index.d.ts +2 -1
  52. package/dist/components/Stack/index.d.ts.map +1 -0
  53. package/dist/{src/components → components}/Switch/index.d.ts +2 -1
  54. package/dist/components/Switch/index.d.ts.map +1 -0
  55. package/dist/{src/components → components}/Table/index.d.ts +1 -0
  56. package/dist/components/Table/index.d.ts.map +1 -0
  57. package/dist/{src/components → components}/Tabs/index.d.ts +2 -1
  58. package/dist/components/Tabs/index.d.ts.map +1 -0
  59. package/dist/{src/components → components}/Tooltip/index.d.ts +2 -1
  60. package/dist/components/Tooltip/index.d.ts.map +1 -0
  61. package/dist/{src/components → components}/Typography/index.d.ts +2 -1
  62. package/dist/components/Typography/index.d.ts.map +1 -0
  63. package/dist/components/index.cjs.js +1 -1
  64. package/dist/{src/components → components}/index.d.ts +4 -0
  65. package/dist/components/index.d.ts.map +1 -0
  66. package/dist/components/index.es.js +46 -40
  67. package/dist/{src/helpers → helpers}/cn.d.ts +1 -0
  68. package/dist/helpers/cn.d.ts.map +1 -0
  69. package/dist/{src/helpers → helpers}/copy.d.ts +1 -0
  70. package/dist/helpers/copy.d.ts.map +1 -0
  71. package/dist/{src/helpers → helpers}/index.d.ts +1 -0
  72. package/dist/helpers/index.d.ts.map +1 -0
  73. package/dist/{src/helpers → helpers}/isEmpty.d.ts +1 -0
  74. package/dist/helpers/isEmpty.d.ts.map +1 -0
  75. package/dist/{src/helpers → helpers}/isServer.d.ts +1 -0
  76. package/dist/helpers/isServer.d.ts.map +1 -0
  77. package/dist/{src/helpers → helpers}/randomID.d.ts +1 -0
  78. package/dist/helpers/randomID.d.ts.map +1 -0
  79. package/dist/{src/helpers → helpers}/replaceNonDigits.d.ts +1 -0
  80. package/dist/helpers/replaceNonDigits.d.ts.map +1 -0
  81. package/dist/{src/helpers → helpers}/replacePersianNumbers.d.ts +1 -0
  82. package/dist/helpers/replacePersianNumbers.d.ts.map +1 -0
  83. package/dist/{src/helpers → helpers}/scrollIntoView.d.ts +1 -0
  84. package/dist/helpers/scrollIntoView.d.ts.map +1 -0
  85. package/dist/{src/helpers → helpers}/twoDigitNumber.d.ts +1 -0
  86. package/dist/helpers/twoDigitNumber.d.ts.map +1 -0
  87. package/dist/{src/helpers → helpers}/wait.d.ts +1 -0
  88. package/dist/helpers/wait.d.ts.map +1 -0
  89. package/dist/{src/hooks → hooks}/index.d.ts +1 -0
  90. package/dist/hooks/index.d.ts.map +1 -0
  91. package/dist/{src/hooks → hooks}/useClasses.d.ts +3 -2
  92. package/dist/hooks/useClasses.d.ts.map +1 -0
  93. package/dist/{src/hooks → hooks}/useCreateRipple.d.ts +1 -0
  94. package/dist/hooks/useCreateRipple.d.ts.map +1 -0
  95. package/dist/{src/hooks → hooks}/useDebounce.d.ts +1 -0
  96. package/dist/hooks/useDebounce.d.ts.map +1 -0
  97. package/dist/{src/hooks → hooks}/useDocumentVisible.d.ts +1 -0
  98. package/dist/hooks/useDocumentVisible.d.ts.map +1 -0
  99. package/dist/{src/hooks → hooks}/useIsOffline.d.ts +1 -0
  100. package/dist/hooks/useIsOffline.d.ts.map +1 -0
  101. package/dist/hooks/usePersistedState.cjs.js +1 -1
  102. package/dist/{src/hooks → hooks}/usePersistedState.d.ts +1 -0
  103. package/dist/hooks/usePersistedState.d.ts.map +1 -0
  104. package/dist/hooks/usePersistedState.es.js +10 -10
  105. package/dist/{src/hooks → hooks}/useToggle.d.ts +1 -0
  106. package/dist/hooks/useToggle.d.ts.map +1 -0
  107. package/dist/index.d.ts +1 -0
  108. package/dist/index.d.ts.map +1 -0
  109. package/dist/{src/providers → providers}/ThemeProvider.d.ts +2 -1
  110. package/dist/providers/ThemeProvider.d.ts.map +1 -0
  111. package/dist/{src/providers → providers}/index.d.ts +1 -0
  112. package/dist/providers/index.d.ts.map +1 -0
  113. package/dist/{src/types → types}/index.d.ts +1 -0
  114. package/dist/types/index.d.ts.map +1 -0
  115. package/package.json +2 -2
  116. package/dist/src/index.d.ts +0 -0
@@ -1,6 +1,7 @@
1
- import { ChildrenProps } from '../../types';
1
+ import { ChildrenProps } from '../types';
2
2
  import { AxiosConfig } from './types';
3
3
  type Props = Partial<AxiosConfig> & ChildrenProps;
4
4
  export declare const AxiosContext: import('react').Context<AxiosConfig>;
5
5
  export default function AxiosProvider({ config, cancelDuplicatedRequests, cancelOnUnmount, beforeRetry, beforeRequest, afterResponse, afterError, retry, children, }: Props): import("react/jsx-runtime").JSX.Element;
6
6
  export {};
7
+ //# sourceMappingURL=AxiosProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AxiosProvider.d.ts","sourceRoot":"","sources":["../../src/axios/AxiosProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,KAAK,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,aAAa,CAAC;AAIlD,eAAO,MAAM,YAAY,sCASvB,CAAC;AAEH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,MAAW,EACX,wBAAgC,EAChC,eAAuB,EACvB,WAAgB,EAChB,aAAkB,EAClB,aAAkB,EAClB,UAAe,EACf,KAAY,EACZ,QAAQ,GACT,EAAE,KAAK,2CAiBP"}
@@ -1,2 +1,3 @@
1
1
  export { default as AxiosProvider } from './AxiosProvider';
2
2
  export { default as useAxios } from './useAxios';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/axios/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -16,3 +16,4 @@ export type AxiosConfig = {
16
16
  statuses?: number[];
17
17
  };
18
18
  };
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/axios/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,0BAA0B,EAC3B,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC;AAE/B,MAAM,MAAM,KAAK,GAAG,GAAG,CAAC;AACxB,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CACxB,KAAK,EAAE,CAAC,KACL,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;AAC1D,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,wBAAwB,EAAE,OAAO,CAAC;IAClC,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,QAAQ,CAAC,0BAA0B,CAAC,EAAE,CAAC;IACtD,aAAa,EAAE,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;IAEzC,UAAU,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAE5B,WAAW,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7B,KAAK,EAAE,IAAI,GAAG;QACZ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;CACH,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import { AxiosConfig } from './types';
2
2
  export default function useAxios(axiosConfig?: Partial<AxiosConfig> | null): readonly [import('axios').AxiosInstance, boolean, any];
3
+ //# sourceMappingURL=useAxios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAxios.d.ts","sourceRoot":"","sources":["../../src/axios/useAxios.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,SAAS,CAAC;AAE3D,MAAM,CAAC,OAAO,UAAU,QAAQ,CAC9B,WAAW,GAAE,OAAO,CAAC,WAAW,CAAC,GAAG,IAAW,0DA4OhD"}
@@ -1,4 +1,4 @@
1
- import { ChildrenProps, ComponentPropsWithAs } from '../../../types';
1
+ import { ChildrenProps, ComponentPropsWithAs } from '../../types';
2
2
  import { ComponentProps, Dispatch, ElementType } from 'react';
3
3
  type EventKey = string;
4
4
  type AccordionSingleProps<T extends EventKey> = {
@@ -32,3 +32,4 @@ declare function AccordionIcon({ className, ...props }: Omit<ComponentProps<"svg
32
32
  declare function AccordionCollapse({ duration, children, }: AccordionCollapseProps): import("react/jsx-runtime").JSX.Element;
33
33
  declare function AccordionBody({ className, children, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
34
34
  export default Accordion;
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE9D,OAAO,EACL,cAAc,EAEd,QAAQ,EACR,WAAW,EAIZ,MAAM,OAAO,CAAC;AAOf,KAAK,QAAQ,GAAG,MAAM,CAAC;AAEvB,KAAK,oBAAoB,CAAC,CAAC,SAAS,QAAQ,IAAI;IAC9C,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;CAC/B,GAAG,aAAa,CAAC;AAElB,KAAK,sBAAsB,CAAC,CAAC,SAAS,QAAQ,IAAI;IAChD,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;CAC1B,GAAG,aAAa,CAAC;AAElB,KAAK,cAAc,CAAC,CAAC,SAAS,QAAQ,IAClC,oBAAoB,CAAC,CAAC,CAAC,GACvB,sBAAsB,CAAC,CAAC,CAAC,CAAC;AAE9B,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,aAAa,CAAC;AA4BlB,iBAAS,SAAS,CAAC,CAAC,SAAS,QAAQ,EAAE,EACrC,OAAkB,EAClB,SAAgB,EAChB,QAAmB,EACnB,QAAQ,GACT,EAAE,cAAc,CAAC,CAAC,CAAC,2CAoBnB;kBAzBQ,SAAS;;;;;;;AA2BlB,iBAAS,aAAa,CACpB,CAAC,SAAS,WAAW,GAAG,KAAK,EAC7B,CAAC,SAAS,QAAQ,GAAG,MAAM,EAC3B,EACA,EAAE,EACF,QAAQ,EAAE,YAAmB,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,kBAAkB,CAAC,2CA0B7C;AAED,iBAAS,eAAe,CAAC,EACvB,IAAe,EACf,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,QAAQ,CAAC,2CAwB1B;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC,2CAiBjD;AAED,iBAAS,iBAAiB,CAAC,EACzB,QAAc,EACd,QAAQ,GACT,EAAE,sBAAsB,2CAwBxB;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,KAAK,CAAC,2CAevB;AAUD,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react/jsx-runtime");require("../../providers/ThemeProvider.cjs.js");const e=require("react"),t=e.createContext({});exports.AlertContext=t;
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),j=require("../../helpers/cn.cjs.js"),d=require("../../hooks/useClasses.cjs.js"),u=require("react"),l=require("../../node_modules/tailwind-merge/dist/bundle-mjs.cjs.js"),M=require("../Fill/index.cjs.js"),A=require("../Stack/index.cjs.js"),p=require("../Typography/index.cjs.js"),h=u.createContext({});function c({as:s,variant:t="solid",color:n="primary",children:o,className:i,...e}){const r=d(g=>g.alert),m=u.useMemo(()=>{var b,x,f;const g={primary:{solid:"bg-primary text-white border-primary",outline:"bg-transparent text-primary border-primary",soft:"bg-light-primary text-dark-primary border-light-primary"},secondary:{solid:"bg-secondary text-white border-secondary",outline:"bg-transparent text-secondary border-secondary",soft:"bg-light-secondary text-dark-secondary border-light-secondary"},success:{solid:"bg-success text-white border-success",outline:"bg-transparent text-success border-success",soft:"bg-light-success text-dark-success border-light-success"},info:{solid:"bg-info text-white border-info",outline:"bg-transparent text-info border-info",soft:"bg-light-info text-dark-info border-light-info"},warning:{solid:"bg-warning text-white border-warning",outline:"bg-transparent text-warning border-warning",soft:"bg-light-warning text-dark-warning border-light-warning"},danger:{solid:"bg-danger text-white border-danger",outline:"bg-transparent text-danger border-danger",soft:"bg-light-danger text-dark-danger border-light-danger"},dark:{solid:"bg-dark text-white border-dark",outline:"bg-transparent text-dark border-dark",soft:"bg-dark text-dark border-dark"},light:{solid:"bg-light text-dark border-light",outline:"bg-transparent text-dark border-light",soft:"bg-light text-dark border-light"}},w=(x=(b=r==null?void 0:r.color)==null?void 0:b[n])==null?void 0:x[t],k=(f=g==null?void 0:g[n])==null?void 0:f[t];return l.twMerge(k,w)},[n,t,r==null?void 0:r.color]),y=u.useMemo(()=>t==="solid"?"solid":"text",[t]);return a.jsx(A,{as:s,className:j("w-full border rounded py-1.5 px-4 gap-3",r==null?void 0:r.base,m,i),...e,children:a.jsx(h.Provider,{value:{color:n,buttonVariant:y},children:o})})}function q({children:s,className:t,...n}){const o=d(i=>{var e,r;return(r=(e=i.alert)==null?void 0:e.icon)==null?void 0:r.base});return a.jsx("div",{className:l.twMerge("flex flex-col py-2 items-start justify-start *:size-[1.375rem] *:text-current",o,t),...n,children:s})}function C({children:s,className:t,...n}){const o=d(i=>{var e;return(e=i.alert)==null?void 0:e.content.base});return a.jsx(M,{as:"div",className:l.twMerge("py-2 space-y-0.5",o,t),...n,children:s})}function N({children:s,className:t,...n}){const o=d(i=>{var e;return(e=i.alert)==null?void 0:e.title.base});return a.jsx(p,{as:"h6",variant:"body-1",className:l.twMerge("w-full -mt-px font-medium",o,t),...n,children:s})}function v({children:s,className:t,...n}){const o=d(i=>{var e;return(e=i.alert)==null?void 0:e.description.base});return a.jsx(p,{variant:"body-2",className:l.twMerge("w-full font-normal",o,t),...n,children:s})}function R({children:s,className:t,...n}){const o=d(i=>{var e,r;return(r=(e=i.alert)==null?void 0:e.action)==null?void 0:r.base});return a.jsx("div",{className:l.twMerge("self-center size-fit",o,t),...n,children:s})}c.Icon=q;c.Content=C;c.Title=N;c.Description=v;c.Action=R;exports.AlertContext=h;exports.default=c;
@@ -1,4 +1,4 @@
1
- import { AlertVariant, ButtonVariant, Color, ComponentPropsWithAs, ComponentPropsWithoutAs } from '../../../types';
1
+ import { AlertVariant, ButtonVariant, Color, ComponentPropsWithAs, ComponentPropsWithoutAs } from '../../types';
2
2
  import { ElementType } from 'react';
3
3
  import { default as Typography } from '../Typography';
4
4
  type AlertProps = {
@@ -24,3 +24,4 @@ declare function AlertTitle({ children, className, ...props }: ComponentPropsWit
24
24
  declare function AlertDescription({ children, className, ...props }: ComponentPropsWithoutAs<typeof Typography<"p">>): import("react/jsx-runtime").JSX.Element;
25
25
  declare function AlertAction({ children, className, ...props }: ComponentPropsWithoutAs<"div">): import("react/jsx-runtime").JSX.Element;
26
26
  export default Alert;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,KAAK,EACL,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAiB,WAAW,EAAW,MAAM,OAAO,CAAC;AAI5D,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,KAAK,UAAU,GAAG;IAChB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AACF,KAAK,gBAAgB,GAAG;IACtB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAOF,eAAO,MAAM,YAAY,2CAAsC,CAAC;AAEhE,iBAAS,KAAK,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EAC5C,EAAE,EACF,OAAiB,EACjB,KAAiB,EACjB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,UAAU,CAAC,2CAsErC;kBA7EQ,KAAK;;;;;;;AA8Ed,iBAAS,SAAS,CAAC,EACjB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,KAAK,CAAC,2CAchC;AACD,iBAAS,YAAY,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,KAAK,CAAC,2CAWhC;AACD,iBAAS,UAAU,CAAC,EAClB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC,2CAYlD;AACD,iBAAS,gBAAgB,CAAC,EACxB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,2CAWjD;AACD,iBAAS,WAAW,CAAC,EACnB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,KAAK,CAAC,2CAUhC;AAQD,eAAe,KAAK,CAAC"}
@@ -1,8 +1,186 @@
1
1
  "use client";
2
- import "react/jsx-runtime";
3
- import "../../providers/ThemeProvider.es.js";
4
- import { createContext as t } from "react";
5
- const i = t({});
2
+ import { jsx as a } from "react/jsx-runtime";
3
+ import k from "../../helpers/cn.es.js";
4
+ import d from "../../hooks/useClasses.es.js";
5
+ import { createContext as A, useMemo as m } from "react";
6
+ import { twMerge as l } from "../../node_modules/tailwind-merge/dist/bundle-mjs.es.js";
7
+ import C from "../Fill/index.es.js";
8
+ import N from "../Stack/index.es.js";
9
+ import p from "../Typography/index.es.js";
10
+ const v = A({});
11
+ function g({
12
+ as: n,
13
+ variant: r = "solid",
14
+ color: o = "primary",
15
+ children: s,
16
+ className: i,
17
+ ...t
18
+ }) {
19
+ const e = d((c) => c.alert), x = m(() => {
20
+ var b, u, f;
21
+ const c = {
22
+ primary: {
23
+ solid: "bg-primary text-white border-primary",
24
+ outline: "bg-transparent text-primary border-primary",
25
+ soft: "bg-light-primary text-dark-primary border-light-primary"
26
+ },
27
+ secondary: {
28
+ solid: "bg-secondary text-white border-secondary",
29
+ outline: "bg-transparent text-secondary border-secondary",
30
+ soft: "bg-light-secondary text-dark-secondary border-light-secondary"
31
+ },
32
+ success: {
33
+ solid: "bg-success text-white border-success",
34
+ outline: "bg-transparent text-success border-success",
35
+ soft: "bg-light-success text-dark-success border-light-success"
36
+ },
37
+ info: {
38
+ solid: "bg-info text-white border-info",
39
+ outline: "bg-transparent text-info border-info",
40
+ soft: "bg-light-info text-dark-info border-light-info"
41
+ },
42
+ warning: {
43
+ solid: "bg-warning text-white border-warning",
44
+ outline: "bg-transparent text-warning border-warning",
45
+ soft: "bg-light-warning text-dark-warning border-light-warning"
46
+ },
47
+ danger: {
48
+ solid: "bg-danger text-white border-danger",
49
+ outline: "bg-transparent text-danger border-danger",
50
+ soft: "bg-light-danger text-dark-danger border-light-danger"
51
+ },
52
+ dark: {
53
+ solid: "bg-dark text-white border-dark",
54
+ outline: "bg-transparent text-dark border-dark",
55
+ soft: "bg-dark text-dark border-dark"
56
+ },
57
+ light: {
58
+ solid: "bg-light text-dark border-light",
59
+ outline: "bg-transparent text-dark border-light",
60
+ soft: "bg-light text-dark border-light"
61
+ }
62
+ }, y = (u = (b = e == null ? void 0 : e.color) == null ? void 0 : b[o]) == null ? void 0 : u[r], w = (f = c == null ? void 0 : c[o]) == null ? void 0 : f[r];
63
+ return l(w, y);
64
+ }, [o, r, e == null ? void 0 : e.color]), h = m(() => r === "solid" ? "solid" : "text", [r]);
65
+ return /* @__PURE__ */ a(
66
+ N,
67
+ {
68
+ as: n,
69
+ className: k(
70
+ "w-full border rounded py-1.5 px-4 gap-3",
71
+ e == null ? void 0 : e.base,
72
+ x,
73
+ i
74
+ ),
75
+ ...t,
76
+ children: /* @__PURE__ */ a(v.Provider, { value: { color: o, buttonVariant: h }, children: s })
77
+ }
78
+ );
79
+ }
80
+ function T({
81
+ children: n,
82
+ className: r,
83
+ ...o
84
+ }) {
85
+ const s = d((i) => {
86
+ var t, e;
87
+ return (e = (t = i.alert) == null ? void 0 : t.icon) == null ? void 0 : e.base;
88
+ });
89
+ return /* @__PURE__ */ a(
90
+ "div",
91
+ {
92
+ className: l(
93
+ "flex flex-col py-2 items-start justify-start *:size-[1.375rem] *:text-current",
94
+ s,
95
+ r
96
+ ),
97
+ ...o,
98
+ children: n
99
+ }
100
+ );
101
+ }
102
+ function j({
103
+ children: n,
104
+ className: r,
105
+ ...o
106
+ }) {
107
+ const s = d((i) => {
108
+ var t;
109
+ return (t = i.alert) == null ? void 0 : t.content.base;
110
+ });
111
+ return /* @__PURE__ */ a(
112
+ C,
113
+ {
114
+ as: "div",
115
+ className: l("py-2 space-y-0.5", s, r),
116
+ ...o,
117
+ children: n
118
+ }
119
+ );
120
+ }
121
+ function z({
122
+ children: n,
123
+ className: r,
124
+ ...o
125
+ }) {
126
+ const s = d((i) => {
127
+ var t;
128
+ return (t = i.alert) == null ? void 0 : t.title.base;
129
+ });
130
+ return /* @__PURE__ */ a(
131
+ p,
132
+ {
133
+ as: "h6",
134
+ variant: "body-1",
135
+ className: l("w-full -mt-px font-medium", s, r),
136
+ ...o,
137
+ children: n
138
+ }
139
+ );
140
+ }
141
+ function D({
142
+ children: n,
143
+ className: r,
144
+ ...o
145
+ }) {
146
+ const s = d((i) => {
147
+ var t;
148
+ return (t = i.alert) == null ? void 0 : t.description.base;
149
+ });
150
+ return /* @__PURE__ */ a(
151
+ p,
152
+ {
153
+ variant: "body-2",
154
+ className: l("w-full font-normal", s, r),
155
+ ...o,
156
+ children: n
157
+ }
158
+ );
159
+ }
160
+ function I({
161
+ children: n,
162
+ className: r,
163
+ ...o
164
+ }) {
165
+ const s = d((i) => {
166
+ var t, e;
167
+ return (e = (t = i.alert) == null ? void 0 : t.action) == null ? void 0 : e.base;
168
+ });
169
+ return /* @__PURE__ */ a(
170
+ "div",
171
+ {
172
+ className: l("self-center size-fit", s, r),
173
+ ...o,
174
+ children: n
175
+ }
176
+ );
177
+ }
178
+ g.Icon = T;
179
+ g.Content = j;
180
+ g.Title = z;
181
+ g.Description = D;
182
+ g.Action = I;
6
183
  export {
7
- i as AlertContext
184
+ v as AlertContext,
185
+ g as default
8
186
  };
@@ -0,0 +1 @@
1
+ "use client";"use strict";const c=require("react/jsx-runtime"),l=require("../../hooks/useClasses.cjs.js"),u=require("react"),d=require("../../node_modules/tailwind-merge/dist/bundle-mjs.cjs.js"),f=u.createContext({size:"md",isImageLoaded:null,setIsImageLoaded:()=>{}});function b({as:o,className:r,children:n,...e}){const t=l(i=>i.avatar.group.base),s=o||"div";return c.jsx(s,{className:d.twMerge("flex -space-x-2",t,r),...e,children:n})}function g({as:o,className:r,size:n="md",children:e,...t}){const s=l(m=>m.avatar),i=o||"div",[a,x]=u.useState(!1),z=u.useMemo(()=>{var v;if(!n)return null;const m={sm:"size-6 [&_svg]:size-3",md:"size-8 [&_svg]:size-4",lg:"size-10 [&_svg]:size-5"};return[m==null?void 0:m[n],(v=s==null?void 0:s.size)==null?void 0:v[n]]},[n,s==null?void 0:s.size]);return c.jsx(i,{className:d.twMerge("relative flex items-center justify-center bg-light ring-2 ring-light rounded-full select-none",s==null?void 0:s.base,z,r),...t,children:c.jsx(f.Provider,{value:{size:n,isImageLoaded:a,setIsImageLoaded:x},children:e})})}function j({className:o,onLoad:r,...n}){const e=l(a=>a.avatar.image.base),{isImageLoaded:t,setIsImageLoaded:s}=u.useContext(f),i=a=>{s(!0),r==null||r(a)};return c.jsx("img",{className:d.twMerge("aspect-square size-full rounded-full object-cover",t?"block":"hidden",e,o),onLoad:i,...n})}function C({className:o,children:r,...n}){const e=l(a=>a.avatar.fallback),{size:t,isImageLoaded:s}=u.useContext(f),i=u.useMemo(()=>{var x;if(!t)return null;const a={sm:"text-xs",md:"text-sm",lg:"text-sm"};return[a==null?void 0:a[t],(x=e==null?void 0:e.size)==null?void 0:x[t]]},[t,e==null?void 0:e.size]);return c.jsx("div",{className:d.twMerge("flex size-full items-center justify-center rounded-full text-dark",s?"hidden":"flex",e==null?void 0:e.base,i,o),...n,children:r})}function I({className:o,children:r,...n}){const e=l(i=>i.avatar.badge),{size:t}=u.useContext(f),s=u.useMemo(()=>{var a;if(!t)return null;const i={sm:"size-2 [&_svg]:hidden",md:"size-2.5 [&_svg]:size-2",lg:"size-3 [&_svg]:size-2"};return[i==null?void 0:i[t],(a=e==null?void 0:e.size)==null?void 0:a[t]]},[t,e==null?void 0:e.size]);return c.jsx("span",{className:d.twMerge("absolute right-0 bottom-0 bg-success z-10 inline-flex items-center justify-center rounded-full ring-2 ring-light",e==null?void 0:e.base,s,o),...n,children:r})}function p({className:o,children:r,...n}){const e=l(t=>t.avatar.count.base);return c.jsx("span",{className:d.twMerge("text-sm text-dark font-medium",e,o),...n,children:r})}g.Group=b;g.Image=j;g.Fallback=C;g.Badge=I;g.Count=p;module.exports=g;
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithAs, ComponentPropsWithoutAs, Size } from '../../../types';
1
+ import { ComponentPropsWithAs, ComponentPropsWithoutAs, Size } from '../../types';
2
2
  import { ElementType } from 'react';
3
3
  type AvatarProps = {
4
4
  size?: Size;
@@ -19,3 +19,4 @@ declare function AvatarFallback({ className, children, ...props }: ComponentProp
19
19
  declare function AvatarBadge({ className, children, ...props }: ComponentPropsWithoutAs<"span">): import("react/jsx-runtime").JSX.Element;
20
20
  declare function AvatarCount({ className, children, ...props }: ComponentPropsWithoutAs<"span">): import("react/jsx-runtime").JSX.Element;
21
21
  export default Avatar;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAGL,WAAW,EAKZ,MAAM,OAAO,CAAC;AAQf,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAWF,iBAAS,WAAW,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EAClD,EAAE,EACF,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAWzB;AACD,iBAAS,MAAM,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EAC7C,EAAE,EACF,SAAS,EACT,IAAW,EACX,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,WAAW,CAAC,2CA4BtC;kBAlCQ,MAAM;;;;;;;AAmCf,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,MAAM,EACN,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,KAAK,EAAE;IAAE,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,2CAmBrD;AACD,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,KAAK,CAAC,2CA0BhC;AACD,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,MAAM,CAAC,2CAyBjC;AACD,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,uBAAuB,CAAC,MAAM,CAAC,2CAUjC;AAQD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,162 @@
1
+ "use client";
2
+ import { jsx as u } from "react/jsx-runtime";
3
+ import l from "../../hooks/useClasses.es.js";
4
+ import { createContext as p, useState as C, useMemo as v, useContext as z } from "react";
5
+ import { twMerge as m } from "../../node_modules/tailwind-merge/dist/bundle-mjs.es.js";
6
+ const f = p({
7
+ size: "md",
8
+ isImageLoaded: null,
9
+ setIsImageLoaded: () => {
10
+ }
11
+ });
12
+ function I({
13
+ as: i,
14
+ className: r,
15
+ children: a,
16
+ ...e
17
+ }) {
18
+ const t = l((o) => o.avatar.group.base);
19
+ return /* @__PURE__ */ u(
20
+ i || "div",
21
+ {
22
+ className: m("flex -space-x-2", t, r),
23
+ ...e,
24
+ children: a
25
+ }
26
+ );
27
+ }
28
+ function c({
29
+ as: i,
30
+ className: r,
31
+ size: a = "md",
32
+ children: e,
33
+ ...t
34
+ }) {
35
+ const n = l((d) => d.avatar), o = i || "div", [s, g] = C(!1), b = v(() => {
36
+ var x;
37
+ if (!a) return null;
38
+ const d = {
39
+ sm: "size-6 [&_svg]:size-3",
40
+ md: "size-8 [&_svg]:size-4",
41
+ lg: "size-10 [&_svg]:size-5"
42
+ };
43
+ return [d == null ? void 0 : d[a], (x = n == null ? void 0 : n.size) == null ? void 0 : x[a]];
44
+ }, [a, n == null ? void 0 : n.size]);
45
+ return /* @__PURE__ */ u(
46
+ o,
47
+ {
48
+ className: m(
49
+ "relative flex items-center justify-center bg-light ring-2 ring-light rounded-full select-none",
50
+ n == null ? void 0 : n.base,
51
+ b,
52
+ r
53
+ ),
54
+ ...t,
55
+ children: /* @__PURE__ */ u(f.Provider, { value: { size: a, isImageLoaded: s, setIsImageLoaded: g }, children: e })
56
+ }
57
+ );
58
+ }
59
+ function h({
60
+ className: i,
61
+ onLoad: r,
62
+ ...a
63
+ }) {
64
+ const e = l((s) => s.avatar.image.base), { isImageLoaded: t, setIsImageLoaded: n } = z(f), o = (s) => {
65
+ n(!0), r == null || r(s);
66
+ };
67
+ return /* @__PURE__ */ u(
68
+ "img",
69
+ {
70
+ className: m(
71
+ "aspect-square size-full rounded-full object-cover",
72
+ t ? "block" : "hidden",
73
+ e,
74
+ i
75
+ ),
76
+ onLoad: o,
77
+ ...a
78
+ }
79
+ );
80
+ }
81
+ function A({
82
+ className: i,
83
+ children: r,
84
+ ...a
85
+ }) {
86
+ const e = l((s) => s.avatar.fallback), { size: t, isImageLoaded: n } = z(f), o = v(() => {
87
+ var g;
88
+ if (!t) return null;
89
+ const s = {
90
+ sm: "text-xs",
91
+ md: "text-sm",
92
+ lg: "text-sm"
93
+ };
94
+ return [s == null ? void 0 : s[t], (g = e == null ? void 0 : e.size) == null ? void 0 : g[t]];
95
+ }, [t, e == null ? void 0 : e.size]);
96
+ return /* @__PURE__ */ u(
97
+ "div",
98
+ {
99
+ className: m(
100
+ "flex size-full items-center justify-center rounded-full text-dark",
101
+ n ? "hidden" : "flex",
102
+ e == null ? void 0 : e.base,
103
+ o,
104
+ i
105
+ ),
106
+ ...a,
107
+ children: r
108
+ }
109
+ );
110
+ }
111
+ function k({
112
+ className: i,
113
+ children: r,
114
+ ...a
115
+ }) {
116
+ const e = l((o) => o.avatar.badge), { size: t } = z(f), n = v(() => {
117
+ var s;
118
+ if (!t) return null;
119
+ const o = {
120
+ sm: "size-2 [&_svg]:hidden",
121
+ md: "size-2.5 [&_svg]:size-2",
122
+ lg: "size-3 [&_svg]:size-2"
123
+ };
124
+ return [o == null ? void 0 : o[t], (s = e == null ? void 0 : e.size) == null ? void 0 : s[t]];
125
+ }, [t, e == null ? void 0 : e.size]);
126
+ return /* @__PURE__ */ u(
127
+ "span",
128
+ {
129
+ className: m(
130
+ "absolute right-0 bottom-0 bg-success z-10 inline-flex items-center justify-center rounded-full ring-2 ring-light",
131
+ e == null ? void 0 : e.base,
132
+ n,
133
+ i
134
+ ),
135
+ ...a,
136
+ children: r
137
+ }
138
+ );
139
+ }
140
+ function N({
141
+ className: i,
142
+ children: r,
143
+ ...a
144
+ }) {
145
+ const e = l((t) => t.avatar.count.base);
146
+ return /* @__PURE__ */ u(
147
+ "span",
148
+ {
149
+ className: m("text-sm text-dark font-medium", e, i),
150
+ ...a,
151
+ children: r
152
+ }
153
+ );
154
+ }
155
+ c.Group = I;
156
+ c.Image = h;
157
+ c.Fallback = A;
158
+ c.Badge = k;
159
+ c.Count = N;
160
+ export {
161
+ c as default
162
+ };
@@ -1,4 +1,4 @@
1
- import { BadgeVariant, Color, ComponentPropsWithAs, Size } from '../../../types';
1
+ import { BadgeVariant, Color, ComponentPropsWithAs, Size } from '../../types';
2
2
  import { ElementType } from 'react';
3
3
  type BadgeProps = {
4
4
  variant?: BadgeVariant;
@@ -7,3 +7,4 @@ type BadgeProps = {
7
7
  };
8
8
  export default function Badge<E extends ElementType = "span">({ as, variant, color, size, className, children, ...props }: ComponentPropsWithAs<E, BadgeProps>): import("react/jsx-runtime").JSX.Element;
9
9
  export {};
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAW,MAAM,OAAO,CAAC;AAG7C,KAAK,UAAU,GAAG;IAChB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAUF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,CAAC,SAAS,WAAW,GAAG,MAAM,EAAE,EAC5D,EAAE,EACF,OAAiB,EACjB,KAAiB,EACjB,IAAW,EACX,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,UAAU,CAAC,2CA0ErC"}
@@ -1,4 +1,4 @@
1
- import { ButtonSize, ButtonVariant, Color, ComponentPropsWithAs } from '../../../types';
1
+ import { ButtonSize, ButtonVariant, Color, ComponentPropsWithAs } from '../../types';
2
2
  import { ElementType } from 'react';
3
3
  export type ButtonProps = {
4
4
  variant?: ButtonVariant;
@@ -11,3 +11,4 @@ export type ButtonProps = {
11
11
  closeDrawer?: boolean;
12
12
  };
13
13
  export default function Button<E extends ElementType = "button">({ as, variant: initVariant, color: initColor, size: initSize, loading: initLoading, stopPropagation, preventDefault, closeModal, closeDrawer, className, onClick, children, disabled, ...props }: ComponentPropsWithAs<E, ButtonProps>): import("react/jsx-runtime").JSX.Element;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,aAAa,EACb,KAAK,EACL,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,WAAW,EAAmC,MAAM,OAAO,CAAC;AAUrE,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAUF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,CAAC,SAAS,WAAW,GAAG,QAAQ,EAAE,EAC/D,EAAE,EACF,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,WAAW,EACpB,eAAuB,EACvB,cAAsB,EACtB,UAAkB,EAClB,WAAmB,EACnB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,WAAW,CAAC,2CA2ItC"}
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithAs } from '../../../types';
1
+ import { ComponentPropsWithAs } from '../../types';
2
2
  import { ElementType } from 'react';
3
3
  import { ButtonProps } from '../Button';
4
4
  type ButtonGroupProps = {
@@ -10,3 +10,4 @@ type Context = {
10
10
  export declare const ButtonGroupContext: import('react').Context<Context>;
11
11
  export default function ButtonGroup<E extends ElementType = "div">({ as, variant, color, size, loading, orientation, className, children, ...props }: ComponentPropsWithAs<E, ButtonGroupProps>): import("react/jsx-runtime").JSX.Element;
12
12
  export {};
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ButtonGroup/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAiB,WAAW,EAAuB,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAGxC,KAAK,gBAAgB,GAAG;IACtB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACzC,GAAG,WAAW,CAAC;AAChB,KAAK,OAAO,GAAG;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,WAAW,CAAC;AAEhB,eAAO,MAAM,kBAAkB,kCAA6B,CAAC;AAE7D,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EACjE,EAAE,EACF,OAAO,EACP,KAAK,EACL,IAAI,EACJ,OAAO,EACP,WAA0B,EAC1B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,gBAAgB,CAAC,2CAuC3C"}
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithAs } from '../../../types';
1
+ import { ComponentPropsWithAs } from '../../types';
2
2
  import { ComponentProps, ElementType } from 'react';
3
3
  declare function Card<E extends ElementType = "div">({ as, className, children, ...props }: ComponentPropsWithAs<E>): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace Card {
@@ -10,3 +10,4 @@ declare function CardHeader({ className, children, ...props }: ComponentProps<"d
10
10
  declare function CardBody({ className, children, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
11
  declare function CardFooter({ className, children, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
12
12
  export default Card;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpD,iBAAS,IAAI,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EAC3C,EAAE,EACF,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAezB;kBApBQ,IAAI;;;;;AAqBb,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAc3E;AACD,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAOzE;AACD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,KAAK,CAAC,2CAc3E;AAMD,eAAe,IAAI,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithAs, ToggleProps } from '../../../types';
1
+ import { ComponentPropsWithAs, ToggleProps } from '../../types';
2
2
  import { ComponentProps, ElementType } from 'react';
3
3
  import { TransitionStatus } from 'react-transition-group';
4
4
  type Anchor = "start" | "end" | "top" | "bottom";
@@ -31,3 +31,4 @@ declare function DrawerHeader({ className, ...props }: DrawerHeaderProps): impor
31
31
  declare function DrawerBody({ className, ...props }: DrawerBodyProps): import("react/jsx-runtime").JSX.Element;
32
32
  declare function DrawerFooter({ className, ...props }: DrawerFooterProps): import("react/jsx-runtime").JSX.Element;
33
33
  export default Drawer;
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG5D,OAAO,EACL,cAAc,EAEd,WAAW,EAKZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAMtE,KAAK,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAC;AACjD,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,gBAAgB,CAAC;IAClC,YAAY,EAAE,OAAO,CAAC;CACvB,GAAG,WAAW,CAAC;AAChB,KAAK,eAAe,GAAG;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACzB,KAAK,WAAW,CAAC,CAAC,SAAS,WAAW,IAAI,oBAAoB,CAC5D,CAAC,EACD,eAAe,CAChB,CAAC;AACF,KAAK,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,CAAC;AACjE,KAAK,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAC/C,KAAK,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAC7C,KAAK,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAG/C,eAAO,MAAM,aAAa,kCAOxB,CAAC;AAEH,iBAAS,MAAM,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EAC7C,EAAE,EACF,GAAG,EACH,IAAY,EACZ,OAAkB,EAClB,QAAc,EACd,YAAoB,EACpB,MAAc,EACd,SAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,CAAC,CAAC,CAAC,2CAsEhB;kBAjFQ,MAAM;;;;;;AAkFf,iBAAS,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAc,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAgE1E;AACD,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAG/D;AACD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAQ3D;AACD,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAG/D;AAOD,eAAe,MAAM,CAAC"}
@@ -0,0 +1 @@
1
+ "use client";"use strict";const i=require("react/jsx-runtime"),u=require("../../hooks/useClasses.cjs.js");require("react");const l=require("../../node_modules/tailwind-merge/dist/bundle-mjs.cjs.js");function n({className:e,...s}){const r=u(t=>t.fill.base);return i.jsx("div",{className:l.twMerge("flex-1",r,e),...s})}module.exports=n;
@@ -1,3 +1,4 @@
1
- import { ComponentPropsWithAs } from '../../../types';
1
+ import { ComponentPropsWithAs } from '../../types';
2
2
  import { ElementType } from 'react';
3
3
  export default function Fill<E extends ElementType = "div">({ className, ...props }: ComponentPropsWithAs<E>): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Fill/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EAC1D,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAKzB"}
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import { jsx as l } from "react/jsx-runtime";
3
+ import o from "../../hooks/useClasses.es.js";
4
+ import "react";
5
+ import { twMerge as i } from "../../node_modules/tailwind-merge/dist/bundle-mjs.es.js";
6
+ function n({
7
+ className: s,
8
+ ...e
9
+ }) {
10
+ const r = o((t) => t.fill.base);
11
+ return /* @__PURE__ */ l("div", { className: i("flex-1", r, s), ...e });
12
+ }
13
+ export {
14
+ n as default
15
+ };
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithAs } from '../../../types';
1
+ import { ComponentPropsWithAs } from '../../types';
2
2
  import { ElementType } from 'react';
3
3
  declare function InputGroup<E extends ElementType = "div">({ as, children, className, ...props }: ComponentPropsWithAs<E>): import("react/jsx-runtime").JSX.Element;
4
4
  declare namespace InputGroup {
@@ -12,3 +12,4 @@ declare function InputGroupStack<E extends ElementType = "div">({ as, children,
12
12
  declare function InputGroupText<E extends ElementType = "span">({ as, children, className, ...props }: ComponentPropsWithAs<E>): import("react/jsx-runtime").JSX.Element;
13
13
  declare function InputGroupFormControl<E extends ElementType = "input">({ as, children, className, ...props }: ComponentPropsWithAs<E>): import("react/jsx-runtime").JSX.Element;
14
14
  export default InputGroup;
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/InputGroup/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpC,iBAAS,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EACjD,EAAE,EACF,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAQzB;kBAbQ,UAAU;;;;;;AAcnB,iBAAS,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,IAAI,EAAE,EACrD,EAAE,EACF,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAezB;AACD,iBAAS,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EACtD,EAAE,EACF,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAezB;AACD,iBAAS,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,MAAM,EAAE,EACtD,EAAE,EACF,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAezB;AACD,iBAAS,qBAAqB,CAAC,CAAC,SAAS,WAAW,GAAG,OAAO,EAAE,EAC9D,EAAE,EACF,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAiBzB;AAOD,eAAe,UAAU,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithAs, ToggleProps } from '../../../types';
1
+ import { ComponentPropsWithAs, ToggleProps } from '../../types';
2
2
  import { ElementType } from 'react';
3
3
  type MenuProps = {
4
4
  anchorEl?: HTMLElement | null;
@@ -14,3 +14,4 @@ declare namespace Menu {
14
14
  }
15
15
  declare function MenuItem<E extends ElementType = "button">({ as, closeOnClick: itemCloseOnClick, className, children, onClick, ...props }: ComponentPropsWithAs<E, MenuItemProps>): import("react/jsx-runtime").JSX.Element;
16
16
  export default Menu;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAiB,oBAAoB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3E,OAAO,EAEL,WAAW,EAOZ,MAAM,OAAO,CAAC;AAMf,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,WAAW,CAAC;AAChB,KAAK,aAAa,GAAG;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAgBF,iBAAS,IAAI,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EAC3C,EAAE,EACF,GAAG,EACH,IAAI,EACJ,OAAO,EACP,YAAoB,EACpB,YAAoB,EACpB,QAAe,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,SAAS,CAAC,2CAyGpC;kBApHQ,IAAI;;;AAsJb,iBAAS,QAAQ,CAAC,CAAC,SAAS,WAAW,GAAG,QAAQ,EAAE,EAClD,EAAE,EACF,YAAY,EAAE,gBAAgB,EAC9B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,aAAa,CAAC,2CAwBxC;AAID,eAAe,IAAI,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ComponentPropsWithAs, Size, ToggleProps } from '../../../types';
1
+ import { ComponentPropsWithAs, Size, ToggleProps } from '../../types';
2
2
  import { ComponentProps, ElementType } from 'react';
3
3
  import { TransitionStatus } from 'react-transition-group';
4
4
  type Context = {
@@ -28,3 +28,4 @@ declare function ModalHeader({ className, ...props }: ModalHeaderProps): import(
28
28
  declare function ModalBody({ className, ...props }: ModalBodyProps): import("react/jsx-runtime").JSX.Element;
29
29
  declare function ModalFooter({ className, ...props }: ModalFooterProps): import("react/jsx-runtime").JSX.Element;
30
30
  export default Modal;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAIlE,OAAO,EACL,cAAc,EAEd,WAAW,EAKZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAc,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAKtE,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,EAAE,gBAAgB,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,WAAW,CAAC;AAChB,KAAK,UAAU,GAAG;IAChB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AACzB,KAAK,gBAAgB,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC,CAAC;AAClE,KAAK,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAC9C,KAAK,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAC5C,KAAK,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE9C,eAAO,MAAM,YAAY,kCAMvB,CAAC;AAEH,iBAAS,KAAK,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,EAC5C,EAAE,EACF,GAAG,EACH,IAAW,EACX,IAAY,EACZ,OAAkB,EAClB,QAAc,EACd,YAAoB,EACpB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,EAAE,UAAU,CAAC,2CAyDrC;kBApEQ,KAAK;;;;;;AAqEd,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAkCvE;AACD,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAG7D;AACD,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAGzD;AACD,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAG7D;AAOD,eAAe,KAAK,CAAC"}
@@ -1,2 +1,3 @@
1
- import { ChildrenProps } from '../../../types';
1
+ import { ChildrenProps } from '../../types';
2
2
  export default function Portal({ children }: ChildrenProps): import('react').ReactPortal | null;
3
+ //# sourceMappingURL=index.d.ts.map