@nayhoo/ui 0.8.0 → 0.9.0

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 (40) hide show
  1. package/dist/chunk-3Z2HB2J6.mjs +25 -0
  2. package/dist/chunk-3Z2HB2J6.mjs.map +1 -0
  3. package/dist/chunk-GI2XNLAW.mjs +39 -0
  4. package/dist/chunk-GI2XNLAW.mjs.map +1 -0
  5. package/dist/chunk-NU7XYEVP.mjs +43 -0
  6. package/dist/chunk-NU7XYEVP.mjs.map +1 -0
  7. package/dist/chunk-RAS2GZOT.mjs +25 -0
  8. package/dist/chunk-RAS2GZOT.mjs.map +1 -0
  9. package/dist/chunk-X6UXW66P.mjs +39 -0
  10. package/dist/chunk-X6UXW66P.mjs.map +1 -0
  11. package/dist/components/button.d.mts +1 -1
  12. package/dist/components/button.d.ts +1 -1
  13. package/dist/components/button.js.map +1 -1
  14. package/dist/components/button.mjs +6 -33
  15. package/dist/components/button.mjs.map +1 -1
  16. package/dist/components/heading.mjs +4 -37
  17. package/dist/components/heading.mjs.map +1 -1
  18. package/dist/components/icon-button.mjs +6 -33
  19. package/dist/components/icon-button.mjs.map +1 -1
  20. package/dist/components/text.mjs +5 -19
  21. package/dist/components/text.mjs.map +1 -1
  22. package/dist/providers/index.css +564 -0
  23. package/dist/providers/index.css.map +1 -1
  24. package/dist/providers/index.d.mts +21 -1
  25. package/dist/providers/index.d.ts +21 -1
  26. package/dist/providers/index.js +371 -2
  27. package/dist/providers/index.js.map +1 -1
  28. package/dist/providers/index.mjs +248 -3
  29. package/dist/providers/index.mjs.map +1 -1
  30. package/dist/theme/index.css +258 -0
  31. package/dist/theme/index.css.map +1 -1
  32. package/dist/theme/index.d.mts +8 -1
  33. package/dist/theme/index.d.ts +8 -1
  34. package/dist/theme/index.js +20 -0
  35. package/dist/theme/index.js.map +1 -1
  36. package/dist/theme/index.mjs +14 -2
  37. package/dist/theme/index.mjs.map +1 -1
  38. package/package.json +2 -3
  39. package/dist/chunk-5WQXUS72.mjs +0 -11
  40. package/dist/chunk-5WQXUS72.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/button.tsx","../../src/theme/recipes/spinner.css.ts","../../src/utils/merge-classes.ts","../../src/utils/pick.ts","../../src/components/spinner.tsx","../../src/theme/recipes/button.css.ts"],"sourcesContent":["import { Spinner } from \"@/components/spinner\";\nimport { ButtonVariants, buttonRecipe } from \"@/theme/recipes/button.css\";\nimport { ComponentProps } from \"@/types/component-props\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nconst defaultElement = \"button\";\n\ntype ButtonProps = ComponentProps<typeof defaultElement, ButtonVariants>;\n\nexport const Button = ({ asChild, ...props }: ButtonProps) => {\n const variants = pick(props, ...buttonRecipe.variants());\n const button = buttonRecipe(variants);\n const Comp = asChild ? Slot : defaultElement;\n\n return (\n <Comp\n {...props}\n className={mergeClasses(button, props.className)}\n disabled={props.disabled || Boolean(variants.loading)}\n >\n {props.children}\n {variants.loading && <Spinner style={{ position: \"absolute\" }} />}\n </Comp>\n );\n};\n","import 'src/theme/animations/spin.css.ts.vanilla.css?source=QGtleWZyYW1lcyBzcGluX3NwaW5fXzkxZzI5NTAgewogIHRvIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7CiAgfQp9';\nimport 'src/theme/recipes/spinner.css.ts.vanilla.css?source=#H4sIAAAAAAAACn3P327CIBTH8fs+BZfbRY30jy16uTfYCxBaUE9SoQHc1MV3X+ocI2SHGxuT7/l9wsrNoLWy/Pl9VyPMinPaXm7jla3JV0GI0HASHozekiV7tJwzeqhYuyar3pEJtBKWgN6DBq92BSGDsVLZLaHzhTgzgSQfwr6U5WgmY13pJuHVz2/DOWV6UL2k1+n177a0QsLZbZ+Hyz8orTlrGQ6qwyk+8GaOwfFsrdL+bRF3xb1Y/f9YBzfFaXgzfbz5qOBw9L/2kriSRm73cD9B+mM+yrNVYCuUraLFHmPTKM/Wga1Rto4WGcamUZ5tAtugbBMtCoxNozzbBrZF2TZaHDA2jfLsJrAblN1EiyPGplGe7QLboWwXLUqMTaM82we2R9k+WlQYm0Z5lgWWoSyLFvcYm0b3bxP0OzcbBQAA';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var spinnerRecipe = _7a468({defaultClassName:'spinner_spinnerRecipe__15xzcy90',variantClassNames:{size:{'1':'spinner_spinnerRecipe_size_1__15xzcy91','2':'spinner_spinnerRecipe_size_2__15xzcy92','3':'spinner_spinnerRecipe_size_3__15xzcy93','4':'spinner_spinnerRecipe_size_4__15xzcy94','5':'spinner_spinnerRecipe_size_5__15xzcy95','6':'spinner_spinnerRecipe_size_6__15xzcy96','7':'spinner_spinnerRecipe_size_7__15xzcy97','8':'spinner_spinnerRecipe_size_8__15xzcy98','9':'spinner_spinnerRecipe_size_9__15xzcy99'}},defaultVariants:{size:'3'},compoundVariants:[]});","export function mergeClasses(...classes: (string | undefined)[]): string {\n return classes.filter((cls): cls is string => Boolean(cls)).join(\" \");\n}\n","/**\n * https://stackoverflow.com/a/47232883\n */\nexport function pick<T, K extends keyof T>(obj: T, ...keys: K[]): Pick<T, K> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const ret: any = {};\n keys.forEach((key) => {\n ret[key] = obj[key];\n });\n\n return ret;\n}\n","import { SpinnerVariants, spinnerRecipe } from \"@/theme/recipes/spinner.css\";\nimport { ComponentProps } from \"@/types/component-props\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nconst defaultElement = \"div\";\n\ntype SpinnerProps = ComponentProps<typeof defaultElement, SpinnerVariants>;\n\nexport const Spinner = ({ asChild, ...props }: SpinnerProps) => {\n const variants = pick(props, ...spinnerRecipe.variants());\n const spinner = spinnerRecipe(variants);\n const Comp = asChild ? Slot : defaultElement;\n\n return (\n <Comp {...props} className={mergeClasses(spinner, props.className)}>\n {props.children}\n </Comp>\n );\n};\n","import 'src/theme/recipes/button.css.ts.vanilla.css?source=#H4sIAAAAAAAACr1XTW+cMBC951fQQ6VEqqv9SJqEnqJeem4PPSJjD+DE2Mg2+5Gq/72ygWV2G2DZVtVKS/DOzHu8Nx6Tj2ntnFZJc/kGTFSQJIVY7+liEf28iiIqZRzVyoL7HO5ErohwUNo4YqAcGL+c6h2x4lWoPI5SbTgYkuqd/6W2YIgFCczFkdIK/CIXtpJ0H0dCSaGAZBJCsL8SWxihXuJo4Veea+tEtidMKwfKYUyyhfRFOOJoRQqRF1LkhSNMS23iyOQpvV58CJ+bUForRzJaCrmPow0114T4JUsc7FySLB9VCg98lRV99BZ8RRz9I6xYUgIXdYmyVJ+1oUZQ5YiqSzCCxZGjaS2p8QvWRzlDlRVOaBV7caPlYuF/+HX1ccyLOE4h0waCJ0NyT9agmQPzVyUKvWkrsNpYL3WlRWPJVCoXlqYSeINP2UtudK14Z1kjc7ixxErqoPleHXRe7p9vDt1WUK63voMsuGgRPstq90aVp/Zy39d5bXpiAvgBAVdNQvvISjtCpdRb4H65VYDABpSzXZsPyJHVUv4Q3BWJM/VBnWUQZevXY98R7wfzpaZcqPwoe9UY0jxO6K+KGlAueifKShtHlRusZ8UrJMuu0rptjtAQhnJR204gfyfIsu/6PA+iFEfbxJez5A5FpSGqotzTJhKyPraiDAjy9yjSHJV9MzRsOI+IN+n3wKDn+RhCw5w5h+qYTKtOptspmVaoajEo0ycUxSZkWvexUzKdho7I1IemQzL5pa/t4EOEs3pCrHUn1t2/EeseRfEJsW4PsespsU5DR8TqQ9l4T51SHZKpoBUklZCyk+p+Sio/PVBxNVy8PYeSyoiSmn2H8DA6fS2UVDnBvjTDsM3trv3zr5j8c4KOJy/R5GB2Pm908lzGHm10Vl6AT5kTG/gLAmjzsDOMs8C04ojC4xzsQ3b/F7KvHYozC2ALeX7JE8w38Q0ayEhOL2Ix38o3aCA7+cjB0dHQtfPzoiNB+7ew0TeZEx5NicMMhvm48y1ALxRffS7Czy7Any8+IvAUkhGDM9owL7R1HX46AIwwZhb834KeoP93OcEYbTp8Ngc4ZDbfeBbtJmcRSsQzCG7nsp3vFYLGc2c/G3m+Twgaz5rXM0ZezRhY24GP/8d1Ouma3O6KjILpM/8k+cisM878U94XHBfHBJBlcMaZ/wf+BQfFMQFkHIQz/zf37mV4cREAAA==';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var buttonRecipe = _7a468({defaultClassName:'button_buttonRecipe__hi3ya00',variantClassNames:{fullWidth:{true:'button_buttonRecipe_fullWidth_true__hi3ya01'},loading:{true:'button_buttonRecipe_loading_true__hi3ya02'},size:{'1':'button_buttonRecipe_size_1__hi3ya03','2':'button_buttonRecipe_size_2__hi3ya04','3':'button_buttonRecipe_size_3__hi3ya05'},shape:{square:'button_buttonRecipe_shape_square__hi3ya06',pill:'button_buttonRecipe_shape_pill__hi3ya07'},variant:{primary:'button_buttonRecipe_variant_primary__hi3ya08',secondary:'button_buttonRecipe_variant_secondary__hi3ya09',outline:'button_buttonRecipe_variant_outline__hi3ya0a',ghost:'button_buttonRecipe_variant_ghost__hi3ya0b',error:'button_buttonRecipe_variant_error__hi3ya0c',success:'button_buttonRecipe_variant_success__hi3ya0d'}},defaultVariants:{size:'2',variant:'primary'},compoundVariants:[]});"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,6BAA0C;AACnC,IAAI,oBAAgB,uBAAAA,iBAAO,EAAC,kBAAiB,mCAAkC,mBAAkB,EAAC,MAAK,EAAC,KAAI,0CAAyC,KAAI,0CAAyC,KAAI,0CAAyC,KAAI,0CAAyC,KAAI,0CAAyC,KAAI,0CAAyC,KAAI,0CAAyC,KAAI,0CAAyC,KAAI,yCAAwC,EAAC,GAAE,iBAAgB,EAAC,MAAK,IAAG,GAAE,kBAAiB,CAAC,EA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AAS,CAAC;AACvD,QAAM,SAAS,aAAa,QAAQ;AACpC,QAAM,OAAO,UAAU,0BAAOA;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,QAAQ,MAAM,SAAS;AAAA,MAC/C,UAAU,MAAM,YAAY,QAAQ,SAAS,OAAO;AAAA,MAEnD;AAAA,cAAM;AAAA,QACN,SAAS,WAAW,6CAAC,WAAQ,OAAO,EAAE,UAAU,WAAW,GAAG;AAAA;AAAA;AAAA,EACjE;AAEJ;","names":["_7a468","import_createRuntimeFn","_7a468","import_react_slot","import_jsx_runtime","defaultElement"]}
1
+ {"version":3,"sources":["../../src/components/button.tsx","../../src/theme/recipes/spinner.css.ts","../../src/utils/merge-classes.ts","../../src/utils/pick.ts","../../src/components/spinner.tsx","../../src/theme/recipes/button.css.ts"],"sourcesContent":["import { Spinner } from \"@/components/spinner\";\nimport { ButtonVariants, buttonRecipe } from \"@/theme/recipes/button.css\";\nimport { ComponentProps } from \"@/types/component-props\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nconst defaultElement = \"button\";\n\nexport type ButtonProps = ComponentProps<typeof defaultElement, ButtonVariants>;\n\nexport const Button = ({ asChild, ...props }: ButtonProps) => {\n const variants = pick(props, ...buttonRecipe.variants());\n const button = buttonRecipe(variants);\n const Comp = asChild ? Slot : defaultElement;\n\n return (\n <Comp\n {...props}\n className={mergeClasses(button, props.className)}\n disabled={props.disabled || Boolean(variants.loading)}\n >\n {props.children}\n {variants.loading && <Spinner style={{ position: \"absolute\" }} />}\n </Comp>\n );\n};\n","import 'src/theme/animations/spin.css.ts.vanilla.css?source=QGtleWZyYW1lcyBzcGluX3NwaW5fXzkxZzI5NTAgewogIHRvIHsKICAgIHRyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7CiAgfQp9';\nimport 'src/theme/recipes/spinner.css.ts.vanilla.css?source=#H4sIAAAAAAAACn3P327CIBTH8fs+BZfbRY30jy16uTfYCxBaUE9SoQHc1MV3X+ocI2SHGxuT7/l9wsrNoLWy/Pl9VyPMinPaXm7jla3JV0GI0HASHozekiV7tJwzeqhYuyar3pEJtBKWgN6DBq92BSGDsVLZLaHzhTgzgSQfwr6U5WgmY13pJuHVz2/DOWV6UL2k1+n177a0QsLZbZ+Hyz8orTlrGQ6qwyk+8GaOwfFsrdL+bRF3xb1Y/f9YBzfFaXgzfbz5qOBw9L/2kriSRm73cD9B+mM+yrNVYCuUraLFHmPTKM/Wga1Rto4WGcamUZ5tAtugbBMtCoxNozzbBrZF2TZaHDA2jfLsJrAblN1EiyPGplGe7QLboWwXLUqMTaM82we2R9k+WlQYm0Z5lgWWoSyLFvcYm0b3bxP0OzcbBQAA';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var spinnerRecipe = _7a468({defaultClassName:'spinner_spinnerRecipe__15xzcy90',variantClassNames:{size:{'1':'spinner_spinnerRecipe_size_1__15xzcy91','2':'spinner_spinnerRecipe_size_2__15xzcy92','3':'spinner_spinnerRecipe_size_3__15xzcy93','4':'spinner_spinnerRecipe_size_4__15xzcy94','5':'spinner_spinnerRecipe_size_5__15xzcy95','6':'spinner_spinnerRecipe_size_6__15xzcy96','7':'spinner_spinnerRecipe_size_7__15xzcy97','8':'spinner_spinnerRecipe_size_8__15xzcy98','9':'spinner_spinnerRecipe_size_9__15xzcy99'}},defaultVariants:{size:'3'},compoundVariants:[]});","export function mergeClasses(...classes: (string | undefined)[]): string {\n return classes.filter((cls): cls is string => Boolean(cls)).join(\" \");\n}\n","/**\n * https://stackoverflow.com/a/47232883\n */\nexport function pick<T, K extends keyof T>(obj: T, ...keys: K[]): Pick<T, K> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const ret: any = {};\n keys.forEach((key) => {\n ret[key] = obj[key];\n });\n\n return ret;\n}\n","import { SpinnerVariants, spinnerRecipe } from \"@/theme/recipes/spinner.css\";\nimport { ComponentProps } from \"@/types/component-props\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nconst defaultElement = \"div\";\n\ntype SpinnerProps = ComponentProps<typeof defaultElement, SpinnerVariants>;\n\nexport const Spinner = ({ asChild, ...props }: SpinnerProps) => {\n const variants = pick(props, ...spinnerRecipe.variants());\n const spinner = spinnerRecipe(variants);\n const Comp = asChild ? Slot : defaultElement;\n\n return (\n <Comp {...props} className={mergeClasses(spinner, props.className)}>\n {props.children}\n </Comp>\n );\n};\n","import 'src/theme/recipes/button.css.ts.vanilla.css?source=#H4sIAAAAAAAACr1XTW+cMBC951fQQ6VEqqv9SJqEnqJeem4PPSJjD+DE2Mg2+5Gq/72ygWV2G2DZVtVKS/DOzHu8Nx6Tj2ntnFZJc/kGTFSQJIVY7+liEf28iiIqZRzVyoL7HO5ErohwUNo4YqAcGL+c6h2x4lWoPI5SbTgYkuqd/6W2YIgFCczFkdIK/CIXtpJ0H0dCSaGAZBJCsL8SWxihXuJo4Veea+tEtidMKwfKYUyyhfRFOOJoRQqRF1LkhSNMS23iyOQpvV58CJ+bUForRzJaCrmPow0114T4JUsc7FySLB9VCg98lRV99BZ8RRz9I6xYUgIXdYmyVJ+1oUZQ5YiqSzCCxZGjaS2p8QvWRzlDlRVOaBV7caPlYuF/+HX1ccyLOE4h0waCJ0NyT9agmQPzVyUKvWkrsNpYL3WlRWPJVCoXlqYSeINP2UtudK14Z1kjc7ixxErqoPleHXRe7p9vDt1WUK63voMsuGgRPstq90aVp/Zy39d5bXpiAvgBAVdNQvvISjtCpdRb4H65VYDABpSzXZsPyJHVUv4Q3BWJM/VBnWUQZevXY98R7wfzpaZcqPwoe9UY0jxO6K+KGlAueifKShtHlRusZ8UrJMuu0rptjtAQhnJR204gfyfIsu/6PA+iFEfbxJez5A5FpSGqotzTJhKyPraiDAjy9yjSHJV9MzRsOI+IN+n3wKDn+RhCw5w5h+qYTKtOptspmVaoajEo0ycUxSZkWvexUzKdho7I1IemQzL5pa/t4EOEs3pCrHUn1t2/EeseRfEJsW4PsespsU5DR8TqQ9l4T51SHZKpoBUklZCyk+p+Sio/PVBxNVy8PYeSyoiSmn2H8DA6fS2UVDnBvjTDsM3trv3zr5j8c4KOJy/R5GB2Pm908lzGHm10Vl6AT5kTG/gLAmjzsDOMs8C04ojC4xzsQ3b/F7KvHYozC2ALeX7JE8w38Q0ayEhOL2Ix38o3aCA7+cjB0dHQtfPzoiNB+7ew0TeZEx5NicMMhvm48y1ALxRffS7Czy7Any8+IvAUkhGDM9owL7R1HX46AIwwZhb834KeoP93OcEYbTp8Ngc4ZDbfeBbtJmcRSsQzCG7nsp3vFYLGc2c/G3m+Twgaz5rXM0ZezRhY24GP/8d1Ouma3O6KjILpM/8k+cisM878U94XHBfHBJBlcMaZ/wf+BQfFMQFkHIQz/zf37mV4cREAAA==';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var buttonRecipe = _7a468({defaultClassName:'button_buttonRecipe__hi3ya00',variantClassNames:{fullWidth:{true:'button_buttonRecipe_fullWidth_true__hi3ya01'},loading:{true:'button_buttonRecipe_loading_true__hi3ya02'},size:{'1':'button_buttonRecipe_size_1__hi3ya03','2':'button_buttonRecipe_size_2__hi3ya04','3':'button_buttonRecipe_size_3__hi3ya05'},shape:{square:'button_buttonRecipe_shape_square__hi3ya06',pill:'button_buttonRecipe_shape_pill__hi3ya07'},variant:{primary:'button_buttonRecipe_variant_primary__hi3ya08',secondary:'button_buttonRecipe_variant_secondary__hi3ya09',outline:'button_buttonRecipe_variant_outline__hi3ya0a',ghost:'button_buttonRecipe_variant_ghost__hi3ya0b',error:'button_buttonRecipe_variant_error__hi3ya0c',success:'button_buttonRecipe_variant_success__hi3ya0d'}},defaultVariants:{size:'2',variant:'primary'},compoundVariants:[]});"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;A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,gDAA+C,OAAM,8CAA6C,OAAM,8CAA6C,SAAQ,+CAA8C,EAAC,GAAE,iBAAgB,EAAC,MAAK,KAAI,SAAQ,UAAS,GAAE,kBAAiB,CAAC,EAAC,CAAC;;;ALGh2B,IAAAC,qBAAqB;AAYjB,IAAAC,sBAAA;AAVJ,IAAMC,kBAAiB;AAIhB,IAAM,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM,MAAmB;AAC5D,QAAM,WAAW,KAAK,OAAO,GAAG,aAAa,SAAS,CAAC;AACvD,QAAM,SAAS,aAAa,QAAQ;AACpC,QAAM,OAAO,UAAU,0BAAOA;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,QAAQ,MAAM,SAAS;AAAA,MAC/C,UAAU,MAAM,YAAY,QAAQ,SAAS,OAAO;AAAA,MAEnD;AAAA,cAAM;AAAA,QACN,SAAS,WAAW,6CAAC,WAAQ,OAAO,EAAE,UAAU,WAAW,GAAG;AAAA;AAAA;AAAA,EACjE;AAEJ;","names":["_7a468","import_createRuntimeFn","_7a468","import_react_slot","import_jsx_runtime","defaultElement"]}
@@ -1,39 +1,12 @@
1
1
  import {
2
- buttonRecipe
3
- } from "../chunk-FG2ZBTVM.mjs";
4
- import {
5
- Spinner
6
- } from "../chunk-A2I7UNX6.mjs";
2
+ Button
3
+ } from "../chunk-X6UXW66P.mjs";
4
+ import "../chunk-FG2ZBTVM.mjs";
5
+ import "../chunk-A2I7UNX6.mjs";
7
6
  import "../chunk-S3GY7GCD.mjs";
8
- import {
9
- pick
10
- } from "../chunk-4N6P3Y54.mjs";
11
- import {
12
- mergeClasses
13
- } from "../chunk-7EGQM3ZL.mjs";
7
+ import "../chunk-4N6P3Y54.mjs";
8
+ import "../chunk-7EGQM3ZL.mjs";
14
9
  import "../chunk-LZOMFHX3.mjs";
15
-
16
- // src/components/button.tsx
17
- import { Slot } from "@radix-ui/react-slot";
18
- import { jsx, jsxs } from "react/jsx-runtime";
19
- var defaultElement = "button";
20
- var Button = ({ asChild, ...props }) => {
21
- const variants = pick(props, ...buttonRecipe.variants());
22
- const button = buttonRecipe(variants);
23
- const Comp = asChild ? Slot : defaultElement;
24
- return /* @__PURE__ */ jsxs(
25
- Comp,
26
- {
27
- ...props,
28
- className: mergeClasses(button, props.className),
29
- disabled: props.disabled || Boolean(variants.loading),
30
- children: [
31
- props.children,
32
- variants.loading && /* @__PURE__ */ jsx(Spinner, { style: { position: "absolute" } })
33
- ]
34
- }
35
- );
36
- };
37
10
  export {
38
11
  Button
39
12
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/button.tsx"],"sourcesContent":["import { Spinner } from \"@/components/spinner\";\nimport { ButtonVariants, buttonRecipe } from \"@/theme/recipes/button.css\";\nimport { ComponentProps } from \"@/types/component-props\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nconst defaultElement = \"button\";\n\ntype ButtonProps = ComponentProps<typeof defaultElement, ButtonVariants>;\n\nexport const Button = ({ asChild, ...props }: ButtonProps) => {\n const variants = pick(props, ...buttonRecipe.variants());\n const button = buttonRecipe(variants);\n const Comp = asChild ? Slot : defaultElement;\n\n return (\n <Comp\n {...props}\n className={mergeClasses(button, props.className)}\n disabled={props.disabled || Boolean(variants.loading)}\n >\n {props.children}\n {variants.loading && <Spinner style={{ position: \"absolute\" }} />}\n </Comp>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAKA,SAAS,YAAY;AAYjB,SAMuB,KANvB;AAVJ,IAAM,iBAAiB;AAIhB,IAAM,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM,MAAmB;AAC5D,QAAM,WAAW,KAAK,OAAO,GAAG,aAAa,SAAS,CAAC;AACvD,QAAM,SAAS,aAAa,QAAQ;AACpC,QAAM,OAAO,UAAU,OAAO;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,QAAQ,MAAM,SAAS;AAAA,MAC/C,UAAU,MAAM,YAAY,QAAQ,SAAS,OAAO;AAAA,MAEnD;AAAA,cAAM;AAAA,QACN,SAAS,WAAW,oBAAC,WAAQ,OAAO,EAAE,UAAU,WAAW,GAAG;AAAA;AAAA;AAAA,EACjE;AAEJ;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,42 +1,9 @@
1
1
  import {
2
- textRecipe
3
- } from "../chunk-IPBDMBQP.mjs";
4
- import {
5
- mergeClasses
6
- } from "../chunk-7EGQM3ZL.mjs";
2
+ Heading
3
+ } from "../chunk-NU7XYEVP.mjs";
4
+ import "../chunk-IPBDMBQP.mjs";
5
+ import "../chunk-7EGQM3ZL.mjs";
7
6
  import "../chunk-LZOMFHX3.mjs";
8
-
9
- // src/components/heading.tsx
10
- import { Slot } from "@radix-ui/react-slot";
11
- import { jsx } from "react/jsx-runtime";
12
- var textAs = {
13
- 1: "h1",
14
- 2: "h2",
15
- 3: "h3",
16
- 4: "h4",
17
- 5: "h5",
18
- 6: "h6"
19
- };
20
- var textSize = {
21
- 1: "8",
22
- 2: "7",
23
- 3: "6",
24
- 4: "5",
25
- 5: "4",
26
- 6: "3"
27
- };
28
- var Heading = ({
29
- asChild,
30
- color,
31
- level = "1",
32
- weight = "medium",
33
- // overrides defaultVariant
34
- ...props
35
- }) => {
36
- const text = textRecipe({ color, size: textSize[level], weight });
37
- const Comp = asChild ? Slot : textAs[level];
38
- return /* @__PURE__ */ jsx(Comp, { ...props, className: mergeClasses(text, props.className), children: props.children });
39
- };
40
7
  export {
41
8
  Heading
42
9
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/heading.tsx"],"sourcesContent":["import { TextVariants, textRecipe } from \"@/theme/recipes/text.css\";\nimport { ComponentProps } from \"@/types/component-props\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport React from \"react\";\n\ntype HeadingLevelVariants = \"1\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\";\n\nexport type HeadingProps = ComponentProps<\n \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\",\n Omit<TextVariants, \"size\">\n> & {\n level?: HeadingLevelVariants;\n};\n\nconst textAs: Record<HeadingLevelVariants, React.ElementType> = {\n 1: \"h1\",\n 2: \"h2\",\n 3: \"h3\",\n 4: \"h4\",\n 5: \"h5\",\n 6: \"h6\",\n};\n\nconst textSize: Record<HeadingLevelVariants, TextVariants[\"size\"]> = {\n 1: \"8\",\n 2: \"7\",\n 3: \"6\",\n 4: \"5\",\n 5: \"4\",\n 6: \"3\",\n};\n\nexport const Heading = ({\n asChild,\n color,\n level = \"1\",\n weight = \"medium\", // overrides defaultVariant\n ...props\n}: HeadingProps) => {\n const text = textRecipe({ color, size: textSize[level], weight });\n const Comp = asChild ? Slot : textAs[level];\n\n return (\n <Comp {...props} className={mergeClasses(text, props.className)}>\n {props.children}\n </Comp>\n );\n};\n"],"mappings":";;;;;;;;;AAGA,SAAS,YAAY;AAyCjB;AA7BJ,IAAM,SAA0D;AAAA,EAC9D,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,IAAM,WAA+D;AAAA,EACnE,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEO,IAAM,UAAU,CAAC;AAAA,EACtB;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,SAAS;AAAA;AAAA,EACT,GAAG;AACL,MAAoB;AAClB,QAAM,OAAO,WAAW,EAAE,OAAO,MAAM,SAAS,KAAK,GAAG,OAAO,CAAC;AAChE,QAAM,OAAO,UAAU,OAAO,OAAO,KAAK;AAE1C,SACE,oBAAC,QAAM,GAAG,OAAO,WAAW,aAAa,MAAM,MAAM,SAAS,GAC3D,gBAAM,UACT;AAEJ;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,39 +1,12 @@
1
1
  import {
2
- iconButtonRecipe
3
- } from "../chunk-IRWT2CO3.mjs";
4
- import {
5
- Spinner
6
- } from "../chunk-A2I7UNX6.mjs";
2
+ IconButton
3
+ } from "../chunk-GI2XNLAW.mjs";
4
+ import "../chunk-IRWT2CO3.mjs";
5
+ import "../chunk-A2I7UNX6.mjs";
7
6
  import "../chunk-S3GY7GCD.mjs";
8
- import {
9
- pick
10
- } from "../chunk-4N6P3Y54.mjs";
11
- import {
12
- mergeClasses
13
- } from "../chunk-7EGQM3ZL.mjs";
7
+ import "../chunk-4N6P3Y54.mjs";
8
+ import "../chunk-7EGQM3ZL.mjs";
14
9
  import "../chunk-LZOMFHX3.mjs";
15
-
16
- // src/components/icon-button.tsx
17
- import { Slot } from "@radix-ui/react-slot";
18
- import { jsx, jsxs } from "react/jsx-runtime";
19
- var defaultElement = "button";
20
- var IconButton = ({ asChild, ...props }) => {
21
- const variants = pick(props, ...iconButtonRecipe.variants());
22
- const iconButton = iconButtonRecipe(variants);
23
- const Comp = asChild ? Slot : defaultElement;
24
- return /* @__PURE__ */ jsxs(
25
- Comp,
26
- {
27
- ...props,
28
- className: mergeClasses(iconButton, props.className),
29
- disabled: props.disabled || Boolean(variants.loading),
30
- children: [
31
- props.children,
32
- variants.loading && /* @__PURE__ */ jsx(Spinner, { style: { position: "absolute" } })
33
- ]
34
- }
35
- );
36
- };
37
10
  export {
38
11
  IconButton
39
12
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/icon-button.tsx"],"sourcesContent":["import { Spinner } from \"@/components/spinner\";\nimport {\n IconButtonVariants,\n iconButtonRecipe,\n} from \"@/theme/recipes/icon-button.css\";\nimport { ComponentProps } from \"@/types/component-props\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nconst defaultElement = \"button\";\n\ntype IconButtonProps = ComponentProps<\n typeof defaultElement,\n IconButtonVariants\n>;\n\nexport const IconButton = ({ asChild, ...props }: IconButtonProps) => {\n const variants = pick(props, ...iconButtonRecipe.variants());\n const iconButton = iconButtonRecipe(variants);\n const Comp = asChild ? Slot : defaultElement;\n\n return (\n <Comp\n {...props}\n className={mergeClasses(iconButton, props.className)}\n disabled={props.disabled || Boolean(variants.loading)}\n >\n {props.children}\n {variants.loading && <Spinner style={{ position: \"absolute\" }} />}\n </Comp>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAQA,SAAS,YAAY;AAejB,SAMuB,KANvB;AAbJ,IAAM,iBAAiB;AAOhB,IAAM,aAAa,CAAC,EAAE,SAAS,GAAG,MAAM,MAAuB;AACpE,QAAM,WAAW,KAAK,OAAO,GAAG,iBAAiB,SAAS,CAAC;AAC3D,QAAM,aAAa,iBAAiB,QAAQ;AAC5C,QAAM,OAAO,UAAU,OAAO;AAE9B,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,WAAW,aAAa,YAAY,MAAM,SAAS;AAAA,MACnD,UAAU,MAAM,YAAY,QAAQ,SAAS,OAAO;AAAA,MAEnD;AAAA,cAAM;AAAA,QACN,SAAS,WAAW,oBAAC,WAAQ,OAAO,EAAE,UAAU,WAAW,GAAG;AAAA;AAAA;AAAA,EACjE;AAEJ;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,24 +1,10 @@
1
1
  import {
2
- textRecipe
3
- } from "../chunk-IPBDMBQP.mjs";
4
- import {
5
- pick
6
- } from "../chunk-4N6P3Y54.mjs";
7
- import {
8
- mergeClasses
9
- } from "../chunk-7EGQM3ZL.mjs";
2
+ Text
3
+ } from "../chunk-3Z2HB2J6.mjs";
4
+ import "../chunk-IPBDMBQP.mjs";
5
+ import "../chunk-4N6P3Y54.mjs";
6
+ import "../chunk-7EGQM3ZL.mjs";
10
7
  import "../chunk-LZOMFHX3.mjs";
11
-
12
- // src/components/text.tsx
13
- import { Slot } from "@radix-ui/react-slot";
14
- import { jsx } from "react/jsx-runtime";
15
- var defaultElement = "span";
16
- var Text = ({ asChild, ...props }) => {
17
- const variants = pick(props, ...textRecipe.variants());
18
- const text = textRecipe(variants);
19
- const Comp = asChild ? Slot : defaultElement;
20
- return /* @__PURE__ */ jsx(Comp, { ...props, className: mergeClasses(text, props.className), children: props.children });
21
- };
22
8
  export {
23
9
  Text
24
10
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/text.tsx"],"sourcesContent":["import { TextVariants, textRecipe } from \"@/theme/recipes/text.css\";\nimport { ComponentProps } from \"@/types/component-props\";\nimport { mergeClasses } from \"@/utils/merge-classes\";\nimport { pick } from \"@/utils/pick\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nconst defaultElement = \"span\";\n\ntype TextProps = ComponentProps<typeof defaultElement, TextVariants>;\n\nexport const Text = ({ asChild, ...props }: TextProps) => {\n const variants = pick(props, ...textRecipe.variants());\n const text = textRecipe(variants);\n const Comp = asChild ? Slot : defaultElement;\n\n return (\n <Comp {...props} className={mergeClasses(text, props.className)}>\n {props.children}\n </Comp>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAIA,SAAS,YAAY;AAYjB;AAVJ,IAAM,iBAAiB;AAIhB,IAAM,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,MAAiB;AACxD,QAAM,WAAW,KAAK,OAAO,GAAG,WAAW,SAAS,CAAC;AACrD,QAAM,OAAO,WAAW,QAAQ;AAChC,QAAM,OAAO,UAAU,OAAO;AAE9B,SACE,oBAAC,QAAM,GAAG,OAAO,WAAW,aAAa,MAAM,MAAM,SAAS,GAC3D,gBAAM,UACT;AAEJ;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}