@anker-in/headless-ui 0.0.8 → 0.0.10

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 (158) hide show
  1. package/dist/cjs/components/badge.d.ts +9 -0
  2. package/dist/cjs/components/badge.js +2 -0
  3. package/dist/cjs/components/badge.js.map +7 -0
  4. package/dist/cjs/components/button.d.ts +20 -0
  5. package/dist/cjs/components/button.js +2 -0
  6. package/dist/cjs/components/button.js.map +7 -0
  7. package/dist/cjs/components/checkbox.d.ts +4 -0
  8. package/dist/cjs/components/checkbox.js +2 -0
  9. package/dist/cjs/components/checkbox.js.map +7 -0
  10. package/dist/cjs/components/dialog.d.ts +19 -0
  11. package/dist/cjs/components/dialog.js +2 -0
  12. package/dist/cjs/components/dialog.js.map +7 -0
  13. package/dist/cjs/components/heading.d.ts +7 -0
  14. package/dist/cjs/components/heading.js +2 -0
  15. package/dist/cjs/components/heading.js.map +7 -0
  16. package/dist/cjs/components/index.d.ts +11 -0
  17. package/dist/cjs/components/index.js +2 -0
  18. package/dist/cjs/components/index.js.map +7 -0
  19. package/dist/cjs/components/input.d.ts +21 -0
  20. package/dist/cjs/components/input.js +2 -0
  21. package/dist/cjs/components/input.js.map +7 -0
  22. package/dist/cjs/components/popover.d.ts +6 -0
  23. package/dist/cjs/components/popover.js +2 -0
  24. package/dist/cjs/components/popover.js.map +7 -0
  25. package/dist/cjs/components/radio.d.ts +5 -0
  26. package/dist/cjs/components/radio.js +2 -0
  27. package/dist/cjs/components/radio.js.map +7 -0
  28. package/dist/cjs/components/skeleton.d.ts +6 -0
  29. package/dist/cjs/components/skeleton.js +2 -0
  30. package/dist/cjs/components/skeleton.js.map +7 -0
  31. package/dist/cjs/components/text.d.ts +12 -0
  32. package/dist/cjs/components/text.js +2 -0
  33. package/dist/cjs/components/text.js.map +7 -0
  34. package/dist/cjs/components/theme.d.ts +13 -0
  35. package/dist/cjs/components/theme.js +2 -0
  36. package/dist/cjs/components/theme.js.map +7 -0
  37. package/dist/cjs/helpers/component-props.d.ts +7 -0
  38. package/dist/cjs/helpers/component-props.js +2 -0
  39. package/dist/cjs/helpers/component-props.js.map +7 -0
  40. package/dist/cjs/helpers/constants.d.ts +2 -0
  41. package/dist/cjs/helpers/constants.js +2 -0
  42. package/dist/cjs/helpers/constants.js.map +7 -0
  43. package/dist/cjs/helpers/index.d.ts +1 -0
  44. package/dist/cjs/helpers/index.js +2 -0
  45. package/dist/cjs/helpers/index.js.map +7 -0
  46. package/dist/cjs/helpers/utils.d.ts +2 -0
  47. package/dist/cjs/helpers/utils.js +2 -0
  48. package/dist/cjs/helpers/utils.js.map +7 -0
  49. package/dist/cjs/icons/spinner.d.ts +7 -0
  50. package/dist/cjs/icons/spinner.js +2 -0
  51. package/dist/cjs/icons/spinner.js.map +7 -0
  52. package/dist/cjs/index.d.ts +1 -0
  53. package/dist/cjs/index.js +2 -0
  54. package/dist/cjs/index.js.map +7 -0
  55. package/dist/cjs/stories/badge.stories.d.ts +26 -0
  56. package/dist/cjs/stories/badge.stories.js +2 -0
  57. package/dist/cjs/stories/badge.stories.js.map +7 -0
  58. package/dist/cjs/stories/button.stories.d.ts +47 -0
  59. package/dist/cjs/stories/button.stories.js +2 -0
  60. package/dist/cjs/stories/button.stories.js.map +7 -0
  61. package/dist/cjs/stories/checkbox.stories.d.ts +5 -0
  62. package/dist/cjs/stories/checkbox.stories.js +2 -0
  63. package/dist/cjs/stories/checkbox.stories.js.map +7 -0
  64. package/dist/cjs/stories/dialog.stories.d.ts +5 -0
  65. package/dist/cjs/stories/dialog.stories.js +2 -0
  66. package/dist/cjs/stories/dialog.stories.js.map +7 -0
  67. package/dist/cjs/stories/input.stories.d.ts +30 -0
  68. package/dist/cjs/stories/input.stories.js +2 -0
  69. package/dist/cjs/stories/input.stories.js.map +7 -0
  70. package/dist/cjs/stories/popover.stories.d.ts +5 -0
  71. package/dist/cjs/stories/popover.stories.js +2 -0
  72. package/dist/cjs/stories/popover.stories.js.map +7 -0
  73. package/dist/cjs/stories/radio.stories.d.ts +5 -0
  74. package/dist/cjs/stories/radio.stories.js +2 -0
  75. package/dist/cjs/stories/radio.stories.js.map +7 -0
  76. package/dist/cjs/stories/skeleton.stories.d.ts +14 -0
  77. package/dist/cjs/stories/skeleton.stories.js +2 -0
  78. package/dist/cjs/stories/skeleton.stories.js.map +7 -0
  79. package/dist/cjs/stories/text.stories.d.ts +16 -0
  80. package/dist/cjs/stories/text.stories.js +2 -0
  81. package/dist/cjs/stories/text.stories.js.map +7 -0
  82. package/dist/cjs/tsconfig.tsbuildinfo +1 -0
  83. package/dist/esm/components/badge.d.ts +2 -2
  84. package/dist/esm/components/badge.js +1 -1
  85. package/dist/esm/components/badge.js.map +2 -2
  86. package/dist/esm/components/button.d.ts +1 -1
  87. package/dist/esm/components/button.js +1 -1
  88. package/dist/esm/components/button.js.map +2 -2
  89. package/dist/esm/components/checkbox.js +1 -1
  90. package/dist/esm/components/checkbox.js.map +2 -2
  91. package/dist/esm/components/dialog.d.ts +2 -2
  92. package/dist/esm/components/dialog.js +1 -1
  93. package/dist/esm/components/dialog.js.map +2 -2
  94. package/dist/esm/components/heading.js +1 -1
  95. package/dist/esm/components/heading.js.map +2 -2
  96. package/dist/esm/components/index.d.ts +11 -11
  97. package/dist/esm/components/index.js +1 -1
  98. package/dist/esm/components/index.js.map +2 -2
  99. package/dist/esm/components/input.d.ts +2 -2
  100. package/dist/esm/components/input.js +1 -1
  101. package/dist/esm/components/input.js.map +2 -2
  102. package/dist/esm/components/popover.js +1 -1
  103. package/dist/esm/components/popover.js.map +2 -2
  104. package/dist/esm/components/radio.js +1 -1
  105. package/dist/esm/components/radio.js.map +2 -2
  106. package/dist/esm/components/skeleton.d.ts +1 -1
  107. package/dist/esm/components/skeleton.js +1 -1
  108. package/dist/esm/components/skeleton.js.map +2 -2
  109. package/dist/esm/components/text.d.ts +2 -2
  110. package/dist/esm/components/text.js +1 -1
  111. package/dist/esm/components/text.js.map +2 -2
  112. package/dist/esm/components/theme.d.ts +2 -2
  113. package/dist/esm/components/theme.js.map +1 -1
  114. package/dist/esm/helpers/index.d.ts +1 -1
  115. package/dist/esm/helpers/index.js +1 -1
  116. package/dist/esm/helpers/index.js.map +1 -1
  117. package/dist/esm/icons/spinner.js +1 -1
  118. package/dist/esm/icons/spinner.js.map +2 -2
  119. package/dist/esm/index.d.ts +1 -1
  120. package/dist/esm/index.js +1 -1
  121. package/dist/esm/index.js.map +1 -1
  122. package/dist/esm/stories/badge.stories.js +1 -1
  123. package/dist/esm/stories/badge.stories.js.map +1 -1
  124. package/dist/esm/stories/button.stories.js +1 -1
  125. package/dist/esm/stories/button.stories.js.map +1 -1
  126. package/dist/esm/stories/checkbox.stories.js +1 -1
  127. package/dist/esm/stories/checkbox.stories.js.map +1 -1
  128. package/dist/esm/stories/dialog.stories.js +1 -1
  129. package/dist/esm/stories/dialog.stories.js.map +1 -1
  130. package/dist/esm/stories/input.stories.js +1 -1
  131. package/dist/esm/stories/input.stories.js.map +1 -1
  132. package/dist/esm/stories/popover.stories.js +1 -1
  133. package/dist/esm/stories/popover.stories.js.map +1 -1
  134. package/dist/esm/stories/radio.stories.js +1 -1
  135. package/dist/esm/stories/radio.stories.js.map +1 -1
  136. package/dist/esm/stories/skeleton.stories.js +1 -1
  137. package/dist/esm/stories/skeleton.stories.js.map +1 -1
  138. package/dist/esm/stories/text.stories.js +1 -1
  139. package/dist/esm/stories/text.stories.js.map +1 -1
  140. package/dist/esm/tsconfig.tsbuildinfo +1 -0
  141. package/package.json +29 -12
  142. package/src/.DS_Store +0 -0
  143. package/src/components/badge.tsx +1 -1
  144. package/src/components/button.tsx +2 -2
  145. package/src/components/checkbox.tsx +1 -1
  146. package/src/components/dialog.tsx +1 -1
  147. package/src/components/heading.tsx +1 -1
  148. package/src/components/index.ts +11 -11
  149. package/src/components/input.tsx +2 -2
  150. package/src/components/popover.tsx +1 -1
  151. package/src/components/radio.tsx +1 -1
  152. package/src/components/skeleton.tsx +1 -1
  153. package/src/components/text.tsx +2 -2
  154. package/src/components/theme.tsx +1 -1
  155. package/src/helpers/index.ts +1 -1
  156. package/src/icons/spinner.tsx +0 -2
  157. package/src/index.ts +1 -1
  158. package/css-explain.png +0 -0
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
5
+ } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
6
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
7
+ }
8
+ declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime.js").JSX.Element;
9
+ export default Badge;
@@ -0,0 +1,2 @@
1
+ "use strict";var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var c=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},g=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of u(e))!f.call(t,a)&&a!==r&&n(t,a,{get:()=>e[a],enumerable:!(o=p(e,a))||o.enumerable});return t};var b=t=>g(n({},"__esModule",{value:!0}),t);var v={};c(v,{default:()=>m});module.exports=b(v);var i=require("react/jsx-runtime"),V=require("react"),d=require("class-variance-authority"),s=require("../helpers/index.js");const x=(0,d.cva)("inline-flex items-center rounded-[20px] border px-[10px] py-1 text-xs font-medium transition-colors focus:outline-none",{variants:{variant:{default:"bg-badge text-badge-foreground border-transparent",secondary:"bg-secondary text-secondary-foreground border-transparent",destructive:"bg-destructive text-destructive-foreground border-transparent",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function l({className:t,variant:e,...r}){return(0,i.jsx)("div",{className:(0,s.cn)(x({variant:e}),t),...r})}var m=l;
2
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/badge.tsx"],
4
+ "sourcesContent": ["import * as React from 'react'\nimport { type VariantProps, cva } from 'class-variance-authority'\n\nimport { cn } from '../helpers/index.js'\n\nconst badgeVariants = cva(\n 'inline-flex items-center rounded-[20px] border px-[10px] py-1 text-xs font-medium transition-colors focus:outline-none',\n {\n variants: {\n variant: {\n default: 'bg-badge text-badge-foreground border-transparent',\n secondary: 'bg-secondary text-secondary-foreground border-transparent',\n destructive: 'bg-destructive text-destructive-foreground border-transparent',\n outline: 'text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n }\n)\n\nexport interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return <div className={cn(badgeVariants({ variant }), className)} {...props} />\n}\n\nexport default Badge\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAyBS,IAAAI,EAAA,6BAzBTC,EAAuB,iBACvBC,EAAuC,oCAEvCC,EAAmB,+BAEnB,MAAMC,KAAgB,OACpB,yHACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,oDACT,UAAW,4DACX,YAAa,gEACb,QAAS,iBACX,CACF,EACA,gBAAiB,CACf,QAAS,SACX,CACF,CACF,EAIA,SAASC,EAAM,CAAE,UAAAC,EAAW,QAAAC,EAAS,GAAGC,CAAM,EAAe,CAC3D,SAAO,OAAC,OAAI,aAAW,MAAGJ,EAAc,CAAE,QAAAG,CAAQ,CAAC,EAAGD,CAAS,EAAI,GAAGE,EAAO,CAC/E,CAEA,IAAOV,EAAQO",
6
+ "names": ["badge_exports", "__export", "badge_default", "__toCommonJS", "import_jsx_runtime", "React", "import_class_variance_authority", "import_helpers", "badgeVariants", "Badge", "className", "variant", "props"]
7
+ }
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ /**
4
+ * Button Variants
5
+ */
6
+ declare const buttonVariants: (props?: ({
7
+ variant?: "link" | "primary" | "secondary" | "ghost" | null | undefined;
8
+ size?: "sm" | "lg" | "base" | "icon" | null | undefined;
9
+ hoverEffect?: "none" | "slide" | null | undefined;
10
+ } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
11
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
12
+ /** 设置按钮载入状态 */
13
+ loading?: boolean;
14
+ /** 设置按钮失效状态 */
15
+ disabled?: boolean;
16
+ /** 定义自组件作为父组件的类型, 详细使用方式请参考radix-ui */
17
+ asChild?: boolean;
18
+ }
19
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
20
+ export default Button;
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";var x=Object.create;var i=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var V=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty;var H=(e,r)=>{for(var o in r)i(e,o,{get:r[o],enumerable:!0})},b=(e,r,o,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of B(r))!E.call(e,n)&&n!==o&&i(e,n,{get:()=>r[n],enumerable:!(a=w(r,n))||a.enumerable});return e};var d=(e,r,o)=>(o=e!=null?x(V(e)):{},b(r||!e||!e.__esModule?i(o,"default",{value:e,enumerable:!0}):o,e)),P=e=>b(i({},"__esModule",{value:!0}),e);var L={};H(L,{default:()=>N});module.exports=P(L);var t=require("react/jsx-runtime"),z=d(require("react")),f=require("@radix-ui/react-slot"),p=require("@radix-ui/react-visually-hidden"),u=require("class-variance-authority"),c=d(require("../icons/spinner.js")),m=require("../helpers/index.js");const C=(0,u.cva)("ring-offset-background focus-visible:ring-ring rounded-btn inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-btn-primary text-btn-primary-foreground hover:bg-btn-primary-active disabled:bg-btn-primary-disabled disabled:text-btn-primary-disabled-foreground",secondary:"bg-btn-secondary border-primary text-btn-secondary-foreground hover:bg-btn-secondary-active hover:text-btn-secondary disabled:bg-btn-secondary-disabled disabled:text-btn-secondary-disabled-foreground border border-solid",link:"text-primary underline-offset-4 hover:underline",ghost:"hover:bg-btn-primary hover:text-btn-primary-foreground"},size:{sm:"h-8 px-3 py-1",base:"h-10 px-4 py-2",lg:"h-11 px-8",icon:"size-10 rounded-full"},hoverEffect:{none:"",slide:""}},compoundVariants:[{variant:"primary",hoverEffect:"slide",class:'before:rounded-btn hover:bg-btn-primary before:bg-btn-primary-active relative overflow-hidden before:absolute before:inset-y-0 before:w-full before:-translate-x-full before:transition-transform before:duration-300 before:ease-in-out before:content-[""] hover:before:translate-x-0'},{variant:"secondary",hoverEffect:"slide",class:'before:rounded-btn hover:bg-btn-secondary before:bg-btn-secondary-active relative overflow-hidden before:absolute before:inset-y-0 before:w-full before:-translate-x-full before:transition-transform before:duration-300 before:ease-in-out before:content-[""] hover:before:translate-x-0'}],defaultVariants:{variant:"primary",size:"base",hoverEffect:"none"}}),l=z.forwardRef(({asChild:e=!1,size:r="base",children:o,variant:a,hoverEffect:n="none",className:y,disabled:s=!1,loading:v=!1,...g},h)=>(0,t.jsx)(e?f.Slot:"button",{disabled:s,className:(0,m.cn)(C({variant:a,size:r,hoverEffect:n}),{"cursor-not-allowed":s},y),ref:h,...g,children:v?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{style:{display:"contents",visibility:"hidden"},"aria-hidden":!0,children:o}),(0,t.jsx)("span",{className:"absolute",children:(0,t.jsx)(c.default,{})}),(0,t.jsx)(p.VisuallyHidden,{children:o})]}):(0,t.jsx)("span",{className:"z-[1]",children:o})}));l.displayName="Button";var N=l;
2
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/button.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { VisuallyHidden } from '@radix-ui/react-visually-hidden'\nimport { type VariantProps, cva } from 'class-variance-authority'\nimport Spinner from '../icons/spinner.js'\nimport { cn } from '../helpers/index.js'\n\n/**\n * Button Variants\n */\nconst buttonVariants = cva(\n 'ring-offset-background focus-visible:ring-ring rounded-btn inline-flex items-center justify-center whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',\n {\n variants: {\n variant: {\n primary:\n 'bg-btn-primary text-btn-primary-foreground hover:bg-btn-primary-active disabled:bg-btn-primary-disabled disabled:text-btn-primary-disabled-foreground',\n secondary:\n 'bg-btn-secondary border-primary text-btn-secondary-foreground hover:bg-btn-secondary-active hover:text-btn-secondary disabled:bg-btn-secondary-disabled disabled:text-btn-secondary-disabled-foreground border border-solid',\n link: 'text-primary underline-offset-4 hover:underline',\n ghost: 'hover:bg-btn-primary hover:text-btn-primary-foreground',\n },\n size: {\n sm: 'h-8 px-3 py-1',\n base: 'h-10 px-4 py-2',\n lg: 'h-11 px-8',\n icon: 'size-10 rounded-full',\n },\n /** hover \u72B6\u6001\u4E0B\u7684\u52A8\u753B\u6548\u679C,\u9700\u8981\u6CE8\u610F\u4E0D\u540Cvariant \u4E0B\u7684\u6548\u679C */\n hoverEffect: {\n none: '',\n slide: '',\n },\n },\n compoundVariants: [\n {\n variant: 'primary',\n hoverEffect: 'slide',\n class:\n 'before:rounded-btn hover:bg-btn-primary before:bg-btn-primary-active relative overflow-hidden before:absolute before:inset-y-0 before:w-full before:-translate-x-full before:transition-transform before:duration-300 before:ease-in-out before:content-[\"\"] hover:before:translate-x-0',\n },\n {\n variant: 'secondary',\n hoverEffect: 'slide',\n class:\n 'before:rounded-btn hover:bg-btn-secondary before:bg-btn-secondary-active relative overflow-hidden before:absolute before:inset-y-0 before:w-full before:-translate-x-full before:transition-transform before:duration-300 before:ease-in-out before:content-[\"\"] hover:before:translate-x-0',\n },\n ],\n defaultVariants: {\n variant: 'primary',\n size: 'base',\n hoverEffect: 'none',\n },\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n VariantProps<typeof buttonVariants> {\n /** \u8BBE\u7F6E\u6309\u94AE\u8F7D\u5165\u72B6\u6001 */\n loading?: boolean\n /** \u8BBE\u7F6E\u6309\u94AE\u5931\u6548\u72B6\u6001 */\n disabled?: boolean\n /** \u5B9A\u4E49\u81EA\u7EC4\u4EF6\u4F5C\u4E3A\u7236\u7EC4\u4EF6\u7684\u7C7B\u578B\uFF0C \u8BE6\u7EC6\u4F7F\u7528\u65B9\u5F0F\u8BF7\u53C2\u8003radix-ui */\n asChild?: boolean\n}\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n asChild = false,\n size = 'base',\n children,\n variant,\n hoverEffect = 'none',\n className,\n disabled = false,\n loading = false,\n ...props\n }: ButtonProps,\n ref\n ) => {\n const Comp = asChild ? Slot : 'button'\n\n return (\n <Comp\n disabled={disabled}\n className={cn(\n buttonVariants({ variant, size, hoverEffect }),\n {\n 'cursor-not-allowed': disabled,\n },\n className\n )}\n ref={ref}\n {...props}\n >\n {loading ? (\n <>\n <span style={{ display: 'contents', visibility: 'hidden' }} aria-hidden>\n {children}\n </span>\n <span className=\"absolute\">\n <Spinner />\n </span>\n <VisuallyHidden>{children}</VisuallyHidden>\n </>\n ) : (\n <span className=\"z-[1]\">{children}</span>\n )}\n </Comp>\n )\n }\n)\n\nButton.displayName = 'Button'\nexport default Button\n"],
5
+ "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAoGU,IAAAI,EAAA,6BAlGVC,EAAuB,oBACvBC,EAAqB,gCACrBC,EAA+B,2CAC/BC,EAAuC,oCACvCC,EAAoB,kCACpBC,EAAmB,+BAKnB,MAAMC,KAAiB,OACrB,0RACA,CACE,SAAU,CACR,QAAS,CACP,QACE,wJACF,UACE,8NACF,KAAM,kDACN,MAAO,wDACT,EACA,KAAM,CACJ,GAAI,gBACJ,KAAM,iBACN,GAAI,YACJ,KAAM,sBACR,EAEA,YAAa,CACX,KAAM,GACN,MAAO,EACT,CACF,EACA,iBAAkB,CAChB,CACE,QAAS,UACT,YAAa,QACb,MACE,0RACJ,EACA,CACE,QAAS,YACT,YAAa,QACb,MACE,8RACJ,CACF,EACA,gBAAiB,CACf,QAAS,UACT,KAAM,OACN,YAAa,MACf,CACF,CACF,EAaMC,EAASP,EAAM,WACnB,CACE,CACE,QAAAQ,EAAU,GACV,KAAAC,EAAO,OACP,SAAAC,EACA,QAAAC,EACA,YAAAC,EAAc,OACd,UAAAC,EACA,SAAAC,EAAW,GACX,QAAAC,EAAU,GACV,GAAGC,CACL,EACAC,OAKE,OAHWT,EAAU,OAAO,SAG3B,CACC,SAAUM,EACV,aAAW,MACTR,EAAe,CAAE,QAAAK,EAAS,KAAAF,EAAM,YAAAG,CAAY,CAAC,EAC7C,CACE,qBAAsBE,CACxB,EACAD,CACF,EACA,IAAKI,EACJ,GAAGD,EAEH,SAAAD,KACC,oBACE,oBAAC,QAAK,MAAO,CAAE,QAAS,WAAY,WAAY,QAAS,EAAG,cAAW,GACpE,SAAAL,EACH,KACA,OAAC,QAAK,UAAU,WACd,mBAAC,EAAAQ,QAAA,EAAQ,EACX,KACA,OAAC,kBAAgB,SAAAR,EAAS,GAC5B,KAEA,OAAC,QAAK,UAAU,QAAS,SAAAA,EAAS,EAEtC,CAGN,EAEAH,EAAO,YAAc,SACrB,IAAOV,EAAQU",
6
+ "names": ["button_exports", "__export", "button_default", "__toCommonJS", "import_jsx_runtime", "React", "import_react_slot", "import_react_visually_hidden", "import_class_variance_authority", "import_spinner", "import_helpers", "buttonVariants", "Button", "asChild", "size", "children", "variant", "hoverEffect", "className", "disabled", "loading", "props", "ref", "Spinner"]
7
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export default Checkbox;
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";var b=Object.create;var r=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var R=(e,o)=>{for(var i in o)r(e,i,{get:o[i],enumerable:!0})},n=(e,o,i,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of u(o))!k.call(e,t)&&t!==i&&r(e,t,{get:()=>o[t],enumerable:!(m=p(o,t))||m.enumerable});return e};var f=(e,o,i)=>(i=e!=null?b(h(e)):{},n(o||!e||!e.__esModule?r(i,"default",{value:e,enumerable:!0}):i,e)),v=e=>n(r({},"__esModule",{value:!0}),e);var g={};R(g,{default:()=>y});module.exports=v(g);var s=require("react/jsx-runtime"),x=f(require("react")),a=f(require("@radix-ui/react-checkbox")),l=require("@radix-ui/react-icons"),c=require("../helpers/index.js");const d=x.forwardRef(({className:e,...o},i)=>(0,s.jsx)(a.Root,{ref:i,className:(0,c.cn)("border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer size-4 shrink-0 rounded-sm border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...o,children:(0,s.jsx)(a.Indicator,{className:(0,c.cn)("flex items-center justify-center text-current"),children:(0,s.jsx)(l.CheckIcon,{className:"size-4"})})}));d.displayName=a.Root.displayName;var y=d;
2
+ //# sourceMappingURL=checkbox.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/checkbox.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox'\nimport { CheckIcon } from '@radix-ui/react-icons'\n\nimport { cn } from '../helpers/index.js'\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n 'border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer size-4 shrink-0 rounded-sm border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator className={cn('flex items-center justify-center text-current')}>\n <CheckIcon className=\"size-4\" />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n))\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport default Checkbox\n"],
5
+ "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAqBM,IAAAI,EAAA,6BAnBNC,EAAuB,oBACvBC,EAAmC,uCACnCC,EAA0B,iCAE1BC,EAAmB,+BAEnB,MAAMC,EAAWJ,EAAM,WAGrB,CAAC,CAAE,UAAAK,EAAW,GAAGC,CAAM,EAAGC,OAC1B,OAACN,EAAkB,KAAlB,CACC,IAAKM,EACL,aAAW,MACT,gTACAF,CACF,EACC,GAAGC,EAEJ,mBAACL,EAAkB,UAAlB,CAA4B,aAAW,MAAG,+CAA+C,EACxF,mBAAC,aAAU,UAAU,SAAS,EAChC,EACF,CACD,EACDG,EAAS,YAAcH,EAAkB,KAAK,YAE9C,IAAOJ,EAAQO",
6
+ "names": ["checkbox_exports", "__export", "checkbox_default", "__toCommonJS", "import_jsx_runtime", "React", "CheckboxPrimitive", "import_react_icons", "import_helpers", "Checkbox", "className", "props", "ref"]
7
+ }
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
3
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DialogHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime.js").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const DialogFooter: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime.js").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";var C=Object.create;var r=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var E=(e,t)=>{for(var a in t)r(e,a,{get:t[a],enumerable:!0})},y=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of T(t))!w.call(e,l)&&l!==a&&r(e,l,{get:()=>t[l],enumerable:!(n=b(t,l))||n.enumerable});return e};var R=(e,t,a)=>(a=e!=null?C(h(e)):{},y(t||!e||!e.__esModule?r(a,"default",{value:e,enumerable:!0}):a,e)),H=e=>y(r({},"__esModule",{value:!0}),e);var z={};E(z,{Dialog:()=>N,DialogClose:()=>x,DialogContent:()=>f,DialogDescription:()=>u,DialogFooter:()=>g,DialogHeader:()=>p,DialogOverlay:()=>m,DialogPortal:()=>c,DialogTitle:()=>D,DialogTrigger:()=>P});module.exports=H(z);var i=require("react/jsx-runtime"),d=R(require("react")),o=R(require("@radix-ui/react-dialog")),v=require("@radix-ui/react-icons"),s=require("../helpers/index.js");const N=o.Root,P=o.Trigger,c=o.Portal,x=o.Close,m=d.forwardRef(({className:e,...t},a)=>(0,i.jsx)(o.Overlay,{ref:a,className:(0,s.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",e),...t}));m.displayName=o.Overlay.displayName;const f=d.forwardRef(({className:e,children:t,...a},n)=>(0,i.jsxs)(c,{children:[(0,i.jsx)(m,{}),(0,i.jsxs)(o.Content,{ref:n,className:(0,s.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",e),...a,children:[t,(0,i.jsxs)(o.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none",children:[(0,i.jsx)(v.Cross2Icon,{className:"size-4"}),(0,i.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));f.displayName=o.Content.displayName;const p=({className:e,...t})=>(0,i.jsx)("div",{className:(0,s.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});p.displayName="DialogHeader";const g=({className:e,...t})=>(0,i.jsx)("div",{className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});g.displayName="DialogFooter";const D=d.forwardRef(({className:e,...t},a)=>(0,i.jsx)(o.Title,{ref:a,className:(0,s.cn)("text-lg font-semibold leading-none tracking-tight",e),...t}));D.displayName=o.Title.displayName;const u=d.forwardRef(({className:e,...t},a)=>(0,i.jsx)(o.Description,{ref:a,className:(0,s.cn)("text-muted-foreground text-sm",e),...t}));u.displayName=o.Description.displayName;
2
+ //# sourceMappingURL=dialog.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/dialog.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { Cross2Icon } from '@radix-ui/react-icons'\n\nimport { cn } from '../helpers/index.js'\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80',\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>\n>(({ className, children, ...props }, ref) => (\n <DialogPortal>\n <DialogOverlay />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg',\n className\n )}\n {...props}\n >\n {children}\n <DialogPrimitive.Close className=\"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none\">\n <Cross2Icon className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n </DialogPrimitive.Content>\n </DialogPortal>\n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-1.5 text-center sm:text-left', className)} {...props} />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className)} {...props} />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn('text-lg font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description ref={ref} className={cn('text-muted-foreground text-sm', className)} {...props} />\n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n}\n"],
5
+ "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,YAAAE,EAAA,gBAAAC,EAAA,kBAAAC,EAAA,sBAAAC,EAAA,iBAAAC,EAAA,iBAAAC,EAAA,kBAAAC,EAAA,iBAAAC,EAAA,gBAAAC,EAAA,kBAAAC,IAAA,eAAAC,EAAAZ,GAoBE,IAAAa,EAAA,6BAlBFC,EAAuB,oBACvBC,EAAiC,qCACjCC,EAA2B,iCAE3BC,EAAmB,+BAEnB,MAAMf,EAASa,EAAgB,KAEzBJ,EAAgBI,EAAgB,QAEhCN,EAAeM,EAAgB,OAE/BZ,EAAcY,EAAgB,MAE9BP,EAAgBM,EAAM,WAG1B,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,OAC1B,OAACL,EAAgB,QAAhB,CACC,IAAKK,EACL,aAAW,MACT,0JACAF,CACF,EACC,GAAGC,EACN,CACD,EACDX,EAAc,YAAcO,EAAgB,QAAQ,YAEpD,MAAMX,EAAgBU,EAAM,WAG1B,CAAC,CAAE,UAAAI,EAAW,SAAAG,EAAU,GAAGF,CAAM,EAAGC,OACpC,QAACX,EAAA,CACC,oBAACD,EAAA,EAAc,KACf,QAACO,EAAgB,QAAhB,CACC,IAAKK,EACL,aAAW,MACT,sfACAF,CACF,EACC,GAAGC,EAEH,UAAAE,KACD,QAACN,EAAgB,MAAhB,CAAsB,UAAU,gRAC/B,oBAAC,cAAW,UAAU,SAAS,KAC/B,OAAC,QAAK,UAAU,UAAU,iBAAK,GACjC,GACF,GACF,CACD,EACDX,EAAc,YAAcW,EAAgB,QAAQ,YAEpD,MAAMR,EAAe,CAAC,CAAE,UAAAW,EAAW,GAAGC,CAAM,OAC1C,OAAC,OAAI,aAAW,MAAG,qDAAsDD,CAAS,EAAI,GAAGC,EAAO,EAElGZ,EAAa,YAAc,eAE3B,MAAMD,EAAe,CAAC,CAAE,UAAAY,EAAW,GAAGC,CAAM,OAC1C,OAAC,OAAI,aAAW,MAAG,gEAAiED,CAAS,EAAI,GAAGC,EAAO,EAE7Gb,EAAa,YAAc,eAE3B,MAAMI,EAAcI,EAAM,WAGxB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,OAC1B,OAACL,EAAgB,MAAhB,CACC,IAAKK,EACL,aAAW,MAAG,oDAAqDF,CAAS,EAC3E,GAAGC,EACN,CACD,EACDT,EAAY,YAAcK,EAAgB,MAAM,YAEhD,MAAMV,EAAoBS,EAAM,WAG9B,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,OAC1B,OAACL,EAAgB,YAAhB,CAA4B,IAAKK,EAAK,aAAW,MAAG,gCAAiCF,CAAS,EAAI,GAAGC,EAAO,CAC9G,EACDd,EAAkB,YAAcU,EAAgB,YAAY",
6
+ "names": ["dialog_exports", "__export", "Dialog", "DialogClose", "DialogContent", "DialogDescription", "DialogFooter", "DialogHeader", "DialogOverlay", "DialogPortal", "DialogTitle", "DialogTrigger", "__toCommonJS", "import_jsx_runtime", "React", "DialogPrimitive", "import_react_icons", "import_helpers", "className", "props", "ref", "children"]
7
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface HeadingProps extends React.ComponentPropsWithoutRef<'h1'> {
3
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | undefined;
4
+ asChild?: boolean;
5
+ }
6
+ declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
7
+ export { Heading };
@@ -0,0 +1,2 @@
1
+ "use strict";var g=Object.create;var d=Object.defineProperty;var H=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var C=(e,a)=>{for(var o in a)d(e,o,{get:a[o],enumerable:!0})},s=(e,a,o,t)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of R(a))!u.call(e,n)&&n!==o&&d(e,n,{get:()=>a[n],enumerable:!(t=H(a,n))||t.enumerable});return e};var E=(e,a,o)=>(o=e!=null?g(P(e)):{},s(a||!e||!e.__esModule?d(o,"default",{value:e,enumerable:!0}):o,e)),N=e=>s(d({},"__esModule",{value:!0}),e);var y={};C(y,{Heading:()=>r});module.exports=N(y);var i=require("react/jsx-runtime"),h=require("../helpers/index.js"),l=require("@radix-ui/react-slot"),c=E(require("react"));const r=c.default.forwardRef((e,a)=>{const{children:o,className:t,asChild:n,as:m="h1",color:f,...p}=e;return(0,i.jsx)(l.Slot,{"data-accent-color":f||void 0,...p,ref:a,className:(0,h.cn)("",t),children:n?o:(0,i.jsx)(m,{children:o})})});r.displayName="Heading";
2
+ //# sourceMappingURL=heading.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/heading.tsx"],
4
+ "sourcesContent": ["import { cn } from '../helpers/index.js'\nimport { Slot } from '@radix-ui/react-slot'\nimport React from 'react'\n\ntype HeadingElement = React.ElementRef<'h1'>\n\ninterface HeadingProps extends React.ComponentPropsWithoutRef<'h1'> {\n as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | undefined\n asChild?: boolean\n}\n\nconst Heading = React.forwardRef<HeadingElement, HeadingProps>((props, forwardedRef) => {\n const { children, className, asChild, as: Tag = 'h1', color, ...headingProps } = props\n return (\n <Slot data-accent-color={color || undefined} {...headingProps} ref={forwardedRef} className={cn('', className)}>\n {asChild ? children : <Tag>{children}</Tag>}\n </Slot>\n )\n})\n\nHeading.displayName = 'Heading'\n\nexport { Heading }\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAe4B,IAAAI,EAAA,6BAf5BC,EAAmB,+BACnBC,EAAqB,gCACrBC,EAAkB,oBASlB,MAAML,EAAU,EAAAM,QAAM,WAAyC,CAACC,EAAOC,IAAiB,CACtF,KAAM,CAAE,SAAAC,EAAU,UAAAC,EAAW,QAAAC,EAAS,GAAIC,EAAM,KAAM,MAAAC,EAAO,GAAGC,CAAa,EAAIP,EACjF,SACE,OAAC,QAAK,oBAAmBM,GAAS,OAAY,GAAGC,EAAc,IAAKN,EAAc,aAAW,MAAG,GAAIE,CAAS,EAC1G,SAAAC,EAAUF,KAAW,OAACG,EAAA,CAAK,SAAAH,EAAS,EACvC,CAEJ,CAAC,EAEDT,EAAQ,YAAc",
6
+ "names": ["heading_exports", "__export", "Heading", "__toCommonJS", "import_jsx_runtime", "import_helpers", "import_react_slot", "import_react", "React", "props", "forwardedRef", "children", "className", "asChild", "Tag", "color", "headingProps"]
7
+ }
@@ -0,0 +1,11 @@
1
+ export { default as Button } from './button.js';
2
+ export { default as Badge } from './badge.js';
3
+ export * from './input.js';
4
+ export { default as Checkbox } from './checkbox.js';
5
+ export { default as Skeleton } from './skeleton.js';
6
+ export * from './dialog.js';
7
+ export * from './popover.js';
8
+ export * from './radio.js';
9
+ export * from './dialog.js';
10
+ export * from './text.js';
11
+ export { default as Theme } from './theme.js';
@@ -0,0 +1,2 @@
1
+ "use strict";var n=Object.create;var p=Object.defineProperty;var B=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var c=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var C=(r,t)=>{for(var f in t)p(r,f,{get:t[f],enumerable:!0})},a=(r,t,f,d)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of b(t))!g.call(r,m)&&m!==f&&p(r,m,{get:()=>t[m],enumerable:!(d=B(t,m))||d.enumerable});return r},e=(r,t,f)=>(a(r,t,"default"),f&&a(f,t,"default")),x=(r,t,f)=>(f=r!=null?n(c(r)):{},a(t||!r||!r.__esModule?p(f,"default",{value:r,enumerable:!0}):f,r)),S=r=>a(p({},"__esModule",{value:!0}),r);var o={};C(o,{Badge:()=>u.default,Button:()=>l.default,Checkbox:()=>s.default,Skeleton:()=>h.default,Theme:()=>k.default});module.exports=S(o);var l=x(require("./button.js")),u=x(require("./badge.js"));e(o,require("./input.js"),module.exports);var s=x(require("./checkbox.js")),h=x(require("./skeleton.js"));e(o,require("./dialog.js"),module.exports);e(o,require("./popover.js"),module.exports);e(o,require("./radio.js"),module.exports);e(o,require("./dialog.js"),module.exports);e(o,require("./text.js"),module.exports);var k=x(require("./theme.js"));
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/index.ts"],
4
+ "sourcesContent": ["// theme\n// export { default as Theme } from './theme'\n\n// components\nexport { default as Button } from './button.js'\nexport { default as Badge } from './badge.js'\nexport * from './input.js'\n\nexport { default as Checkbox } from './checkbox.js'\n\nexport { default as Skeleton } from './skeleton.js'\nexport * from './dialog.js'\nexport * from './popover.js'\nexport * from './radio.js'\nexport * from './dialog.js'\nexport * from './text.js'\nexport { default as Theme } from './theme.js'\n"],
5
+ "mappings": "wmBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,6HAAAE,EAAAF,GAIA,IAAAG,EAAkC,0BAClCC,EAAiC,yBACjCC,EAAAL,EAAc,sBANd,gBAQA,IAAAM,EAAoC,4BAEpCC,EAAoC,4BACpCF,EAAAL,EAAc,uBAXd,gBAYAK,EAAAL,EAAc,wBAZd,gBAaAK,EAAAL,EAAc,sBAbd,gBAcAK,EAAAL,EAAc,uBAdd,gBAeAK,EAAAL,EAAc,qBAfd,gBAgBA,IAAAQ,EAAiC",
6
+ "names": ["components_exports", "__export", "__toCommonJS", "import_button", "import_badge", "__reExport", "import_checkbox", "import_skeleton", "import_theme"]
7
+ }
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import type { ComponentPropsWithout, RemovedProps } from '@/helpers/component-props';
3
+ import { type VariantProps } from 'class-variance-authority';
4
+ declare const inputVariants: (props?: ({
5
+ size?: "sm" | "lg" | "base" | null | undefined;
6
+ } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string;
7
+ export interface InputProps extends ComponentPropsWithout<'input', 'size'>, VariantProps<typeof inputVariants> {
8
+ }
9
+ interface InputSlotProps extends ComponentPropsWithout<'div', RemovedProps> {
10
+ /**
11
+ * 插槽的位置
12
+ */
13
+ side: 'left' | 'right';
14
+ }
15
+ /**
16
+ * InputSlot
17
+ * 用来在 Input 组件中插入额外的内容,比如icon ,按钮
18
+ */
19
+ declare const InputSlot: React.ForwardRefExoticComponent<InputSlotProps & React.RefAttributes<HTMLDivElement>>;
20
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
21
+ export { Input, InputSlot };
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";var c=Object.create;var s=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var h=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var x=(e,t)=>{for(var o in t)s(e,o,{get:t[o],enumerable:!0})},f=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of v(t))!g.call(e,r)&&r!==o&&s(e,r,{get:()=>t[r],enumerable:!(n=b(t,r))||n.enumerable});return e};var P=(e,t,o)=>(o=e!=null?c(h(e)):{},f(t||!e||!e.__esModule?s(o,"default",{value:e,enumerable:!0}):o,e)),I=e=>f(s({},"__esModule",{value:!0}),e);var y={};x(y,{Input:()=>d,InputSlot:()=>a});module.exports=I(y);var i=require("react/jsx-runtime"),u=P(require("react")),p=require("../helpers/index.js"),m=require("class-variance-authority");const R=(0,m.cva)("border-input bg-background focus-visible:ring-ring ring-offset-background flex h-2 flex-row items-center overflow-hidden rounded-md border px-3 focus-visible:ring-2 focus-visible:ring-offset-2",{variants:{size:{sm:"h-8",base:"h-10",lg:"h-12"}},defaultVariants:{size:"base"}}),a=u.forwardRef((e,t)=>{const{className:o,side:n,children:r,...l}=e;return(0,i.jsx)("div",{ref:t,...l,className:(0,p.cn)("flex h-full items-center px-2",o,{"-order-1 pl-0":n==="left","order-2 pr-0":n==="right"}),children:r})}),d=u.forwardRef(({className:e,type:t,size:o,children:n,...r},l)=>(0,i.jsxs)("div",{className:(0,p.cn)(R({size:o}),e),children:[(0,i.jsx)("input",{type:t,className:(0,p.cn)("placeholder:text-muted-foreground flex size-full text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50"),ref:l,...r}),n]}));d.displayName="Input",a.displayName="InputSlot";
2
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/input.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../helpers/index.js'\nimport type { ComponentPropsWithout, RemovedProps } from '@/helpers/component-props'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nconst inputVariants = cva(\n 'border-input bg-background focus-visible:ring-ring ring-offset-background flex h-2 flex-row items-center overflow-hidden rounded-md border px-3 focus-visible:ring-2 focus-visible:ring-offset-2',\n {\n variants: {\n size: {\n sm: 'h-8',\n base: 'h-10',\n lg: 'h-12',\n },\n },\n defaultVariants: {\n size: 'base',\n },\n }\n)\n\nexport interface InputProps extends ComponentPropsWithout<'input', 'size'>, VariantProps<typeof inputVariants> {}\n\ntype InputSlotElement = React.ElementRef<'div'>\ninterface InputSlotProps extends ComponentPropsWithout<'div', RemovedProps> {\n /**\n * \u63D2\u69FD\u7684\u4F4D\u7F6E\n */\n side: 'left' | 'right'\n}\n\n/**\n * InputSlot\n * \u7528\u6765\u5728 Input \u7EC4\u4EF6\u4E2D\u63D2\u5165\u989D\u5916\u7684\u5185\u5BB9\uFF0C\u6BD4\u5982icon \uFF0C\u6309\u94AE\n */\nconst InputSlot = React.forwardRef<InputSlotElement, InputSlotProps>((props, forwardedRef) => {\n const { className, side, children, ...slotProps } = props\n\n return (\n <div\n ref={forwardedRef}\n {...slotProps}\n className={cn('flex h-full items-center px-2', className, {\n '-order-1 pl-0': side === 'left',\n 'order-2 pr-0': side === 'right',\n })}\n >\n {children}\n </div>\n )\n})\n\nconst Input = React.forwardRef<React.ElementRef<'input'>, InputProps>(\n ({ className, type, size, children, ...props }, ref) => {\n return (\n <div className={cn(inputVariants({ size }), className)}>\n <input\n type={type}\n className={cn(\n 'placeholder:text-muted-foreground flex size-full text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50'\n )}\n ref={ref}\n {...props}\n />\n {children}\n </div>\n )\n }\n)\nInput.displayName = 'Input'\nInputSlot.displayName = 'InputSlot'\n\nexport { Input, InputSlot }\n"],
5
+ "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,EAAA,cAAAC,IAAA,eAAAC,EAAAJ,GAyCI,IAAAK,EAAA,6BAvCJC,EAAuB,oBACvBC,EAAmB,+BAEnBC,EAAuC,oCAEvC,MAAMC,KAAgB,OACpB,mMACA,CACE,SAAU,CACR,KAAM,CACJ,GAAI,MACJ,KAAM,OACN,GAAI,MACN,CACF,EACA,gBAAiB,CACf,KAAM,MACR,CACF,CACF,EAgBMN,EAAYG,EAAM,WAA6C,CAACI,EAAOC,IAAiB,CAC5F,KAAM,CAAE,UAAAC,EAAW,KAAAC,EAAM,SAAAC,EAAU,GAAGC,CAAU,EAAIL,EAEpD,SACE,OAAC,OACC,IAAKC,EACJ,GAAGI,EACJ,aAAW,MAAG,gCAAiCH,EAAW,CACxD,gBAAiBC,IAAS,OAC1B,eAAgBA,IAAS,OAC3B,CAAC,EAEA,SAAAC,EACH,CAEJ,CAAC,EAEKZ,EAAQI,EAAM,WAClB,CAAC,CAAE,UAAAM,EAAW,KAAAI,EAAM,KAAAC,EAAM,SAAAH,EAAU,GAAGJ,CAAM,EAAGQ,OAE5C,QAAC,OAAI,aAAW,MAAGT,EAAc,CAAE,KAAAQ,CAAK,CAAC,EAAGL,CAAS,EACnD,oBAAC,SACC,KAAMI,EACN,aAAW,MACT,qMACF,EACA,IAAKE,EACJ,GAAGR,EACN,EACCI,GACH,CAGN,EACAZ,EAAM,YAAc,QACpBC,EAAU,YAAc",
6
+ "names": ["input_exports", "__export", "Input", "InputSlot", "__toCommonJS", "import_jsx_runtime", "React", "import_helpers", "import_class_variance_authority", "inputVariants", "props", "forwardedRef", "className", "side", "children", "slotProps", "type", "size", "ref"]
7
+ }
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
4
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export { Popover, PopoverTrigger, PopoverContent };
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";var v=Object.create;var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var C=(o,t)=>{for(var e in t)n(o,e,{get:t[e],enumerable:!0})},p=(o,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of g(t))!R.call(o,a)&&a!==e&&n(o,a,{get:()=>t[a],enumerable:!(r=c(t,a))||r.enumerable});return o};var m=(o,t,e)=>(e=o!=null?v(u(o)):{},p(t||!o||!o.__esModule?n(e,"default",{value:o,enumerable:!0}):e,o)),b=o=>p(n({},"__esModule",{value:!0}),o);var y={};C(y,{Popover:()=>l,PopoverContent:()=>d,PopoverTrigger:()=>P});module.exports=b(y);var s=require("react/jsx-runtime"),h=m(require("react")),i=m(require("@radix-ui/react-popover")),f=require("../helpers/utils.js");const l=i.Root,P=i.Trigger,d=h.forwardRef(({className:o,align:t="center",sideOffset:e=4,...r},a)=>(0,s.jsx)(i.Portal,{children:(0,s.jsx)(i.Content,{ref:a,align:t,sideOffset:e,className:(0,f.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none",o),...r})}));d.displayName=i.Content.displayName;
2
+ //# sourceMappingURL=popover.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/popover.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport * as PopoverPrimitive from '@radix-ui/react-popover'\n\nimport { cn } from '../helpers/utils.js'\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef<typeof PopoverPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n ref={ref}\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md outline-none',\n className\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n))\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nexport { Popover, PopoverTrigger, PopoverContent }\n"],
5
+ "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,EAAA,mBAAAC,EAAA,mBAAAC,IAAA,eAAAC,EAAAL,GAgBI,IAAAM,EAAA,6BAdJC,EAAuB,oBACvBC,EAAkC,sCAElCC,EAAmB,+BAEnB,MAAMP,EAAUM,EAAiB,KAE3BJ,EAAiBI,EAAiB,QAElCL,EAAiBI,EAAM,WAG3B,CAAC,CAAE,UAAAG,EAAW,MAAAC,EAAQ,SAAU,WAAAC,EAAa,EAAG,GAAGC,CAAM,EAAGC,OAC5D,OAACN,EAAiB,OAAjB,CACC,mBAACA,EAAiB,QAAjB,CACC,IAAKM,EACL,MAAOH,EACP,WAAYC,EACZ,aAAW,MACT,6aACAF,CACF,EACC,GAAGG,EACN,EACF,CACD,EACDV,EAAe,YAAcK,EAAiB,QAAQ",
6
+ "names": ["popover_exports", "__export", "Popover", "PopoverContent", "PopoverTrigger", "__toCommonJS", "import_jsx_runtime", "React", "PopoverPrimitive", "import_utils", "className", "align", "sideOffset", "props", "ref"]
7
+ }
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
+ declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
5
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";var R=Object.create;var m=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var v=Object.getOwnPropertyNames;var G=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var P=(e,o)=>{for(var i in o)m(e,i,{get:o[i],enumerable:!0})},n=(e,o,i,d)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of v(o))!I.call(e,r)&&r!==i&&m(e,r,{get:()=>o[r],enumerable:!(d=y(o,r))||d.enumerable});return e};var c=(e,o,i)=>(i=e!=null?R(G(e)):{},n(o||!e||!e.__esModule?m(i,"default",{value:e,enumerable:!0}):i,e)),b=e=>n(m({},"__esModule",{value:!0}),e);var g={};P(g,{RadioGroup:()=>p,RadioGroupItem:()=>f});module.exports=b(g);var a=require("react/jsx-runtime"),u=c(require("react")),t=c(require("@radix-ui/react-radio-group")),l=require("@radix-ui/react-icons"),s=require("../helpers/index.js");const p=u.forwardRef(({className:e,...o},i)=>(0,a.jsx)(t.Root,{className:(0,s.cn)("grid gap-2",e),...o,ref:i}));p.displayName=t.Root.displayName;const f=u.forwardRef(({className:e,...o},i)=>(0,a.jsx)(t.Item,{ref:i,className:(0,s.cn)("border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square size-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...o,children:(0,a.jsx)(t.Indicator,{className:"flex items-center justify-center",children:(0,a.jsx)(l.CheckIcon,{className:"text-primary size-2.5 fill-current"})})}));f.displayName=t.Item.displayName;
2
+ //# sourceMappingURL=radio.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/radio.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group'\nimport { CheckIcon } from '@radix-ui/react-icons'\n\nimport { cn } from '../helpers/index.js'\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>\n>(({ className, ...props }, ref) => {\n return <RadioGroupPrimitive.Root className={cn('grid gap-2', className)} {...props} ref={ref} />\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef<typeof RadioGroupPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>\n>(({ className, ...props }, ref) => {\n return (\n <RadioGroupPrimitive.Item\n ref={ref}\n className={cn(\n 'border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square size-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n >\n <RadioGroupPrimitive.Indicator className=\"flex items-center justify-center\">\n <CheckIcon className=\"text-primary size-2.5 fill-current\" />\n </RadioGroupPrimitive.Indicator>\n </RadioGroupPrimitive.Item>\n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n"],
5
+ "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,EAAA,mBAAAC,IAAA,eAAAC,EAAAJ,GAYS,IAAAK,EAAA,6BAVTC,EAAuB,oBACvBC,EAAqC,0CACrCC,EAA0B,iCAE1BC,EAAmB,+BAEnB,MAAMP,EAAaI,EAAM,WAGvB,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,OACnB,OAACL,EAAoB,KAApB,CAAyB,aAAW,MAAG,aAAcG,CAAS,EAAI,GAAGC,EAAO,IAAKC,EAAK,CAC/F,EACDV,EAAW,YAAcK,EAAoB,KAAK,YAElD,MAAMJ,EAAiBG,EAAM,WAG3B,CAAC,CAAE,UAAAI,EAAW,GAAGC,CAAM,EAAGC,OAExB,OAACL,EAAoB,KAApB,CACC,IAAKK,EACL,aAAW,MACT,0OACAF,CACF,EACC,GAAGC,EAEJ,mBAACJ,EAAoB,UAApB,CAA8B,UAAU,mCACvC,mBAAC,aAAU,UAAU,qCAAqC,EAC5D,EACF,CAEH,EACDJ,EAAe,YAAcI,EAAoB,KAAK",
6
+ "names": ["radio_exports", "__export", "RadioGroup", "RadioGroupItem", "__toCommonJS", "import_jsx_runtime", "React", "RadioGroupPrimitive", "import_react_icons", "import_helpers", "className", "props", "ref"]
7
+ }
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime.js").JSX.Element;
3
+ declare namespace Skeleton {
4
+ var displayName: string;
5
+ }
6
+ export default Skeleton;
@@ -0,0 +1,2 @@
1
+ "use strict";var i=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var f=(t,e)=>{for(var o in e)i(t,o,{get:e[o],enumerable:!0})},u=(t,e,o,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of p(e))!c.call(t,a)&&a!==o&&i(t,a,{get:()=>e[a],enumerable:!(l=r(e,a))||l.enumerable});return t};var d=t=>u(i({},"__esModule",{value:!0}),t);var b={};f(b,{default:()=>k});module.exports=d(b);var s=require("react/jsx-runtime"),H=require("react"),m=require("../helpers/index.js");function n({className:t,...e}){return(0,s.jsx)("div",{className:(0,m.cn)("bg-skeleton size-12 animate-pulse",t),...e})}n.displayName="Skeleton";var k=n;
2
+ //# sourceMappingURL=skeleton.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/skeleton.tsx"],
4
+ "sourcesContent": ["import * as React from 'react'\nimport { cn } from '../helpers/index.js'\n\nfunction Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {\n return <div className={cn('bg-skeleton size-12 animate-pulse', className)} {...props} />\n}\n\nSkeleton.displayName = 'Skeleton'\n\nexport default Skeleton\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAIS,IAAAI,EAAA,6BAJTC,EAAuB,iBACvBC,EAAmB,+BAEnB,SAASC,EAAS,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAyC,CAC/E,SAAO,OAAC,OAAI,aAAW,MAAG,oCAAqCD,CAAS,EAAI,GAAGC,EAAO,CACxF,CAEAF,EAAS,YAAc,WAEvB,IAAOL,EAAQK",
6
+ "names": ["skeleton_exports", "__export", "skeleton_default", "__toCommonJS", "import_jsx_runtime", "React", "import_helpers", "Skeleton", "className", "props"]
7
+ }
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ interface TextProps extends React.ComponentPropsWithoutRef<'span'> {
4
+ as?: 'div' | 'label' | 'p' | 'span' | undefined;
5
+ asChild?: boolean;
6
+ color?: string;
7
+ }
8
+ declare const Text: React.ForwardRefExoticComponent<TextProps & VariantProps<(props?: ({
9
+ size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | null | undefined;
10
+ } & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & React.RefAttributes<HTMLSpanElement>>;
11
+ export { Text };
12
+ export type { TextProps };
@@ -0,0 +1,2 @@
1
+ "use strict";var P=Object.create;var r=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var V=(t,e)=>{for(var a in e)r(t,a,{get:e[a],enumerable:!0})},p=(t,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of y(e))!h.call(t,s)&&s!==a&&r(t,s,{get:()=>e[s],enumerable:!(o=R(e,s))||o.enumerable});return t};var b=(t,e,a)=>(a=t!=null?P(g(t)):{},p(e||!t||!t.__esModule?r(a,"default",{value:t,enumerable:!0}):a,t)),v=t=>p(r({},"__esModule",{value:!0}),t);var E={};V(E,{Text:()=>x});module.exports=v(E);var n=require("react/jsx-runtime"),z=b(require("react")),l=require("@radix-ui/react-slot"),i=require("../helpers/index.js"),m=require("class-variance-authority");const C=(0,m.cva)("",{variants:{size:{1:"text-xs",2:"text-sm",3:"text-base",4:"text-lg",5:"text-xl",6:"text-2xl",7:"text-3xl",8:"text-4xl",9:"text-5xl"}}}),x=z.forwardRef((t,e)=>{const{children:a,size:o,className:s,asChild:c,as:f="span",color:d,...T}=t;return(0,n.jsx)(l.Slot,{...T,ref:e,className:(0,i.cn)(C({size:o}),s,d),children:c?a:(0,n.jsx)(f,{children:a})})});x.displayName="Text";
2
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/text.tsx"],
4
+ "sourcesContent": ["import * as React from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { cn } from '../helpers/index.js'\nimport { type VariantProps, cva } from 'class-variance-authority'\n\nconst textVariants = cva('', {\n variants: {\n size: {\n 1: 'text-xs',\n 2: 'text-sm',\n 3: 'text-base',\n 4: 'text-lg',\n 5: 'text-xl',\n 6: 'text-2xl',\n 7: 'text-3xl',\n 8: 'text-4xl',\n 9: 'text-5xl',\n },\n },\n})\n\ntype TextElement = React.ElementRef<'span'>\ninterface TextProps extends React.ComponentPropsWithoutRef<'span'> {\n as?: 'div' | 'label' | 'p' | 'span' | undefined\n asChild?: boolean\n color?: string\n}\n\nconst Text = React.forwardRef<TextElement, TextProps & VariantProps<typeof textVariants>>((props, forwardedRef) => {\n const { children, size, className, asChild, as: Tag = 'span', color, ...textProps } = props\n return (\n <Slot\n {...textProps}\n ref={forwardedRef}\n className={cn(\n textVariants({\n size: size,\n }),\n className,\n color\n )}\n >\n {asChild ? children : <Tag>{children}</Tag>}\n </Slot>\n )\n})\nText.displayName = 'Text'\n\nexport { Text }\nexport type { TextProps }\n"],
5
+ "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,UAAAE,IAAA,eAAAC,EAAAH,GA0C4B,IAAAI,EAAA,6BA1C5BC,EAAuB,oBACvBC,EAAqB,gCACrBC,EAAmB,+BACnBC,EAAuC,oCAEvC,MAAMC,KAAe,OAAI,GAAI,CAC3B,SAAU,CACR,KAAM,CACJ,EAAG,UACH,EAAG,UACH,EAAG,YACH,EAAG,UACH,EAAG,UACH,EAAG,WACH,EAAG,WACH,EAAG,WACH,EAAG,UACL,CACF,CACF,CAAC,EASKP,EAAOG,EAAM,WAAuE,CAACK,EAAOC,IAAiB,CACjH,KAAM,CAAE,SAAAC,EAAU,KAAAC,EAAM,UAAAC,EAAW,QAAAC,EAAS,GAAIC,EAAM,OAAQ,MAAAC,EAAO,GAAGC,CAAU,EAAIR,EACtF,SACE,OAAC,QACE,GAAGQ,EACJ,IAAKP,EACL,aAAW,MACTF,EAAa,CACX,KAAMI,CACR,CAAC,EACDC,EACAG,CACF,EAEC,SAAAF,EAAUH,KAAW,OAACI,EAAA,CAAK,SAAAJ,EAAS,EACvC,CAEJ,CAAC,EACDV,EAAK,YAAc",
6
+ "names": ["text_exports", "__export", "Text", "__toCommonJS", "import_jsx_runtime", "React", "import_react_slot", "import_helpers", "import_class_variance_authority", "textVariants", "props", "forwardedRef", "children", "size", "className", "asChild", "Tag", "color", "textProps"]
7
+ }
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import type { Brand } from '../helpers/constants.js';
3
+ interface ThemeProps {
4
+ brand: Brand;
5
+ children: React.ReactNode;
6
+ }
7
+ /**
8
+ *
9
+ * @param param
10
+ * @returns
11
+ */
12
+ declare const Theme: ({ brand, children }: ThemeProps) => import("react/jsx-runtime.js").JSX.Element;
13
+ export default Theme;
@@ -0,0 +1,2 @@
1
+ "use strict";"use client";var d=Object.create;var o=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var f=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},s=(e,t,r,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of h(t))!u.call(e,a)&&a!==r&&o(e,a,{get:()=>t[a],enumerable:!(c=m(t,a))||c.enumerable});return e};var l=(e,t,r)=>(r=e!=null?d(p(e)):{},s(t||!e||!e.__esModule?o(r,"default",{value:e,enumerable:!0}):r,e)),i=e=>s(o({},"__esModule",{value:!0}),e);var T={};f(T,{default:()=>R});module.exports=i(T);var n=require("react/jsx-runtime"),b=l(require("react"));const y=({brand:e,children:t})=>(b.useLayoutEffect(()=>{document.querySelector("html")?.setAttribute("data-brand-theme",e)},[]),(0,n.jsx)(n.Fragment,{children:t}));var R=y;
2
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/components/theme.tsx"],
4
+ "sourcesContent": ["'use client'\nimport * as React from 'react'\nimport type { Brand } from '../helpers/constants.js'\n\ninterface ThemeProps {\n brand: Brand\n children: React.ReactNode\n}\n/**\n *\n * @param param\n * @returns\n */\nconst Theme = ({ brand, children }: ThemeProps) => {\n React.useLayoutEffect(() => {\n document.querySelector('html')?.setAttribute('data-brand-theme', brand)\n }, [])\n return <>{children}</>\n}\n\nexport default Theme\n"],
5
+ "mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAiBS,IAAAI,EAAA,6BAhBTC,EAAuB,oBAYvB,MAAMC,EAAQ,CAAC,CAAE,MAAAC,EAAO,SAAAC,CAAS,KAC/BH,EAAM,gBAAgB,IAAM,CAC1B,SAAS,cAAc,MAAM,GAAG,aAAa,mBAAoBE,CAAK,CACxE,EAAG,CAAC,CAAC,KACE,mBAAG,SAAAC,EAAS,GAGrB,IAAON,EAAQI",
6
+ "names": ["theme_exports", "__export", "theme_default", "__toCommonJS", "import_jsx_runtime", "React", "Theme", "brand", "children"]
7
+ }
@@ -0,0 +1,7 @@
1
+ import type React from 'react';
2
+ type ComponentPropsAs<C extends React.ElementType<any>, T extends React.ComponentPropsWithoutRef<C>['as']> = Omit<Extract<React.ComponentPropsWithoutRef<C>, {
3
+ as: T;
4
+ }>, 'as' | 'asChild'>;
5
+ type ComponentPropsWithout<T extends React.ElementType, O extends Omit<string, keyof React.ComponentPropsWithoutRef<T>> | keyof React.ComponentPropsWithoutRef<T>> = Omit<React.ComponentPropsWithoutRef<T>, O & string>;
6
+ type RemovedProps = 'asChild' | 'defaultChecked' | 'defaultValue' | 'color';
7
+ export type { ComponentPropsAs, ComponentPropsWithout, RemovedProps };
@@ -0,0 +1,2 @@
1
+ "use strict";var n=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var i=(t,e,s,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of r(e))!m.call(t,o)&&o!==s&&n(t,o,{get:()=>e[o],enumerable:!(p=a(e,o))||p.enumerable});return t};var C=t=>i(n({},"__esModule",{value:!0}),t);var R={};module.exports=C(R);
2
+ //# sourceMappingURL=component-props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/helpers/component-props.ts"],
4
+ "sourcesContent": ["import type React from 'react'\n\ntype ComponentPropsAs<C extends React.ElementType<any>, T extends React.ComponentPropsWithoutRef<C>['as']> = Omit<\n Extract<React.ComponentPropsWithoutRef<C>, { as: T }>,\n 'as' | 'asChild'\n>\n\n// Omits the specified props from the component props. Autocomplete will suggest props\n// of the component, but won't restrict the omittable props to those that actually exist.\ntype ComponentPropsWithout<\n T extends React.ElementType,\n O extends Omit<string, keyof React.ComponentPropsWithoutRef<T>> | keyof React.ComponentPropsWithoutRef<T>,\n> = Omit<React.ComponentPropsWithoutRef<T>, O & string>\n\ntype RemovedProps = 'asChild' | 'defaultChecked' | 'defaultValue' | 'color'\n\nexport type { ComponentPropsAs, ComponentPropsWithout, RemovedProps }\n"],
5
+ "mappings": "+WAAA,IAAAA,EAAA,kBAAAC,EAAAD",
6
+ "names": ["component_props_exports", "__toCommonJS"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export declare const ALL_BRANDS: readonly ["anker", "eufy", "soundcore", "nebula", "ankerWork", "ankerMake"];
2
+ export type Brand = (typeof ALL_BRANDS)[number];
@@ -0,0 +1,2 @@
1
+ "use strict";var a=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var u=(n,e)=>{for(var o in e)a(n,o,{get:e[o],enumerable:!0})},A=(n,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!s.call(n,r)&&r!==o&&a(n,r,{get:()=>e[r],enumerable:!(t=k(e,r))||t.enumerable});return n};var L=n=>A(a({},"__esModule",{value:!0}),n);var y={};u(y,{ALL_BRANDS:()=>c});module.exports=L(y);const c=["anker","eufy","soundcore","nebula","ankerWork","ankerMake"];
2
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/helpers/constants.ts"],
4
+ "sourcesContent": ["export const ALL_BRANDS = ['anker', 'eufy', 'soundcore', 'nebula', 'ankerWork', 'ankerMake'] as const\n\nexport type Brand = (typeof ALL_BRANDS)[number]\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,gBAAAE,IAAA,eAAAC,EAAAH,GAAO,MAAME,EAAa,CAAC,QAAS,OAAQ,YAAa,SAAU,YAAa,WAAW",
6
+ "names": ["constants_exports", "__export", "ALL_BRANDS", "__toCommonJS"]
7
+ }
@@ -0,0 +1 @@
1
+ export { cn } from './utils.js';
@@ -0,0 +1,2 @@
1
+ "use strict";var f=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var x=Object.prototype.hasOwnProperty;var a=(r,o)=>{for(var e in o)f(r,e,{get:o[e],enumerable:!0})},b=(r,o,e,m)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of t(o))!x.call(r,c)&&c!==e&&f(r,c,{get:()=>o[c],enumerable:!(m=p(o,c))||m.enumerable});return r};var d=r=>b(f({},"__esModule",{value:!0}),r);var g={};a(g,{cn:()=>n.cn});module.exports=d(g);var n=require("./utils.js");
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/helpers/index.ts"],
4
+ "sourcesContent": ["export { cn } from './utils.js'\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,8BAAAE,EAAAF,GAAA,IAAAG,EAAmB",
6
+ "names": ["helpers_exports", "__export", "__toCommonJS", "import_utils"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -0,0 +1,2 @@
1
+ "use strict";var l=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var c=(r,e)=>{for(var o in e)l(r,o,{get:e[o],enumerable:!0})},f=(r,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!u.call(r,t)&&t!==o&&l(r,t,{get:()=>e[t],enumerable:!(s=n(e,t))||s.enumerable});return r};var i=r=>f(l({},"__esModule",{value:!0}),r);var C={};c(C,{cn:()=>x});module.exports=i(C);var a=require("clsx"),m=require("tailwind-merge");function x(...r){return(0,m.twMerge)((0,a.clsx)(r))}
2
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/helpers/utils.ts"],
4
+ "sourcesContent": ["import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,QAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAsC,gBACtCC,EAAwB,0BAEjB,SAASH,KAAMI,EAAsB,CAC1C,SAAO,cAAQ,QAAKA,CAAM,CAAC,CAC7B",
6
+ "names": ["utils_exports", "__export", "cn", "__toCommonJS", "import_clsx", "import_tailwind_merge", "inputs"]
7
+ }
@@ -0,0 +1,7 @@
1
+ export interface SpinnerProps {
2
+ /** loading 图标大小 */
3
+ size?: 'sm' | 'md' | 'lg';
4
+ color?: string;
5
+ }
6
+ declare const Spinner: ({ size, color }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default Spinner;
@@ -0,0 +1,2 @@
1
+ "use strict";var t=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var g=(s,e)=>{for(var r in e)t(s,r,{get:e[r],enumerable:!0})},l=(s,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of f(e))!a.call(s,n)&&n!==r&&t(s,n,{get:()=>e[n],enumerable:!(o=p(e,n))||o.enumerable});return s};var d=s=>l(t({},"__esModule",{value:!0}),s);var m={};g(m,{default:()=>w});module.exports=d(m);var i=require("react/jsx-runtime");const h=({size:s="sm",color:e="#ffffff"})=>(0,i.jsx)("svg",{className:"animate-spin",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M3 10C3 13.866 6.13401 17 10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3",stroke:e,strokeWidth:"1.6",strokeLinecap:"round"})});var w=h;
2
+ //# sourceMappingURL=spinner.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/icons/spinner.tsx"],
4
+ "sourcesContent": ["export interface SpinnerProps {\n /** loading \u56FE\u6807\u5927\u5C0F */\n size?: 'sm' | 'md' | 'lg'\n color?: string\n}\n\n// eslint-disable-next-line no-unused-vars\nconst Spinner = ({ size = 'sm', color = '#ffffff' }: SpinnerProps) => {\n return (\n <svg\n className=\"animate-spin\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M3 10C3 13.866 6.13401 17 10 17C13.866 17 17 13.866 17 10C17 6.13401 13.866 3 10 3\"\n stroke={color}\n strokeWidth=\"1.6\"\n strokeLinecap=\"round\"\n />\n </svg>\n )\n}\n\nexport default Spinner\n"],
5
+ "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,aAAAE,IAAA,eAAAC,EAAAH,GAiBM,IAAAI,EAAA,6BAVN,MAAMC,EAAU,CAAC,CAAE,KAAAC,EAAO,KAAM,MAAAC,EAAQ,SAAU,OAE9C,OAAC,OACC,UAAU,eACV,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OACL,MAAM,6BAEN,mBAAC,QACC,EAAE,qFACF,OAAQA,EACR,YAAY,MACZ,cAAc,QAChB,EACF,EAIJ,IAAOL,EAAQG",
6
+ "names": ["spinner_exports", "__export", "spinner_default", "__toCommonJS", "import_jsx_runtime", "Spinner", "size", "color"]
7
+ }
@@ -0,0 +1 @@
1
+ export * from './components/index.js';
@@ -0,0 +1,2 @@
1
+ "use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("./components/index.js"),module.exports);
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './components/index.js'\n"],
5
+ "mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,iCAAd",
6
+ "names": ["src_exports", "__toCommonJS", "__reExport"]
7
+ }
@@ -0,0 +1,26 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { Badge } from '../components/index';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Badge;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ argTypes: {
11
+ variant: {
12
+ control: {
13
+ type: "select";
14
+ };
15
+ options: string[];
16
+ };
17
+ };
18
+ args: {
19
+ variant: "default";
20
+ children: string;
21
+ };
22
+ };
23
+ export default meta;
24
+ type Story = StoryObj<typeof meta>;
25
+ export declare const Default: Story;
26
+ export declare const Examples: Story;
@@ -0,0 +1,2 @@
1
+ "use strict";var s=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var p=(t,e)=>{for(var n in e)s(t,n,{get:e[n],enumerable:!0})},y=(t,e,n,d)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of c(e))!l.call(t,r)&&r!==n&&s(t,r,{get:()=>e[r],enumerable:!(d=i(e,r))||d.enumerable});return t};var f=t=>y(s({},"__esModule",{value:!0}),t);var B={};p(B,{Default:()=>v,Examples:()=>g,default:()=>m});module.exports=f(B);var a=require("react/jsx-runtime"),o=require("../components/index"),x=require("react");const u={title:"Components/Badge",component:o.Badge,parameters:{layout:"centered"},tags:["autodocs"],argTypes:{variant:{control:{type:"select"},options:["default","destructive","outline","secondary"]}},args:{variant:"default",children:"New"}};var m=u;const v={},g={render(){return(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[(0,a.jsx)(o.Badge,{variant:"default",children:"Default"}),(0,a.jsx)(o.Badge,{variant:"secondary",children:"Secondary"}),(0,a.jsx)(o.Badge,{variant:"destructive",children:"Destructive"}),(0,a.jsx)(o.Badge,{variant:"outline",children:"Outline"})]})}};
2
+ //# sourceMappingURL=badge.stories.js.map