{"registryVersion":1,"name":"button","access":"free","dependencies":{"clsx":"2.1.1","tailwind-merge":"3.7.1","class-variance-authority":"0.7.1","lucide-react":"1.77.0"},"registryDependencies":[],"files":{"utils.ts":"import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...values: ClassValue[]): string {\n  return twMerge(clsx(values));\n}\n","theme.css":"@layer components {\n  :where([data-uitk-slot], [data-uitk-slot]::before, [data-uitk-slot]::after) {\n    box-sizing: border-box;\n    border: 0 solid var(--uitk-border);\n  }\n  :where(button[data-uitk-slot]) { font: inherit; color: inherit; background: transparent; }\n  :where([data-uitk-slot]) {\n    color-scheme: light;\n  --uitk-radius: 0.625rem;\n  --uitk-background: oklch(1 0 0);\n  --uitk-foreground: oklch(0.145 0 0);\n  --uitk-card: oklch(1 0 0);\n  --uitk-card-foreground: oklch(0.145 0 0);\n  --uitk-popover: oklch(1 0 0);\n  --uitk-popover-foreground: oklch(0.145 0 0);\n  --uitk-primary: oklch(0.205 0 0);\n  --uitk-primary-foreground: oklch(0.985 0 0);\n  --uitk-secondary: oklch(0.97 0 0);\n  --uitk-secondary-foreground: oklch(0.205 0 0);\n  --uitk-muted: oklch(0.97 0 0);\n  --uitk-muted-foreground: oklch(0.556 0 0);\n  --uitk-accent: oklch(0.97 0 0);\n  --uitk-accent-foreground: oklch(0.205 0 0);\n  --uitk-destructive: oklch(0.48 0.144 28);\n  --uitk-brand: oklch(0.41 0.052 234);\n  --uitk-brand-foreground: oklch(0.99 0 0);\n  --uitk-success: oklch(0.43 0.089 156);\n  --uitk-success-foreground: oklch(0.99 0 0);\n  --uitk-warning: oklch(0.47 0.092 66);\n  --uitk-warning-foreground: oklch(0.99 0 0);\n  --uitk-destructive-foreground: oklch(0.99 0 0);\n  --uitk-border: oklch(0.922 0 0);\n  --uitk-input: oklch(0.922 0 0);\n  --uitk-ring: oklch(0.708 0 0);\n  /* Categorical chart slots. Validated for colorblind separation in this fixed order;\n     assign in sequence and never reorder or cycle (see docs/ui-design-guide.md). */\n  --uitk-chart-1: #2a78d6;\n  --uitk-chart-2: #eb6834;\n  --uitk-chart-3: #1baf7a;\n  --uitk-chart-4: #eda100;\n  --uitk-chart-5: #e87ba4;\n  --uitk-chart-6: #008300;\n  --uitk-chart-7: #4a3aa7;\n  --uitk-chart-8: #e34948;\n  --uitk-sidebar: oklch(0.985 0 0);\n  --uitk-sidebar-foreground: oklch(0.145 0 0);\n  --uitk-sidebar-primary: oklch(0.205 0 0);\n  --uitk-sidebar-primary-foreground: oklch(0.985 0 0);\n  --uitk-sidebar-accent: oklch(0.97 0 0);\n  --uitk-sidebar-accent-foreground: oklch(0.205 0 0);\n  --uitk-sidebar-border: oklch(0.922 0 0);\n  --uitk-sidebar-ring: oklch(0.708 0 0);\n      --uitk-radius-sm: calc(var(--uitk-radius) * 0.6);\n  --uitk-radius-md: calc(var(--uitk-radius) * 0.8);\n  --uitk-radius-lg: var(--uitk-radius);\n  --uitk-radius-xl: calc(var(--uitk-radius) * 1.4);\n  --uitk-radius-2xl: calc(var(--uitk-radius) * 1.8);\n  --uitk-radius-3xl: calc(var(--uitk-radius) * 2.2);\n  --uitk-radius-4xl: calc(var(--uitk-radius) * 2.6);\n  }\n  :where(.dark, [data-theme=\"dark\"]) :where([data-uitk-slot]), :where([data-uitk-slot][data-theme=\"dark\"]) {\n    color-scheme: dark;\n  --uitk-background: oklch(0.145 0 0);\n  --uitk-foreground: oklch(0.985 0 0);\n  --uitk-card: oklch(0.205 0 0);\n  --uitk-card-foreground: oklch(0.985 0 0);\n  --uitk-popover: oklch(0.205 0 0);\n  --uitk-popover-foreground: oklch(0.985 0 0);\n  --uitk-primary: oklch(0.922 0 0);\n  --uitk-primary-foreground: oklch(0.205 0 0);\n  --uitk-secondary: oklch(0.269 0 0);\n  --uitk-secondary-foreground: oklch(0.985 0 0);\n  --uitk-muted: oklch(0.269 0 0);\n  --uitk-muted-foreground: oklch(0.708 0 0);\n  --uitk-accent: oklch(0.269 0 0);\n  --uitk-accent-foreground: oklch(0.985 0 0);\n  --uitk-destructive: oklch(0.74 0.12 29);\n  --uitk-brand: oklch(0.76 0.058 232);\n  --uitk-brand-foreground: oklch(0.17 0.02 232);\n  --uitk-success: oklch(0.75 0.093 153);\n  --uitk-success-foreground: oklch(0.18 0.025 153);\n  --uitk-warning: oklch(0.78 0.09 76);\n  --uitk-warning-foreground: oklch(0.2 0.025 67);\n  --uitk-destructive-foreground: oklch(0.17 0.025 29);\n  --uitk-border: oklch(1 0 0 / 10%);\n  --uitk-input: oklch(1 0 0 / 15%);\n  --uitk-ring: oklch(0.556 0 0);\n  --uitk-chart-1: #3987e5;\n  --uitk-chart-2: #d95926;\n  --uitk-chart-3: #199e70;\n  --uitk-chart-4: #c98500;\n  --uitk-chart-5: #d55181;\n  --uitk-chart-6: #008300;\n  --uitk-chart-7: #9085e9;\n  --uitk-chart-8: #e66767;\n  --uitk-sidebar: oklch(0.205 0 0);\n  --uitk-sidebar-foreground: oklch(0.985 0 0);\n  --uitk-sidebar-primary: oklch(0.488 0.243 264.376);\n  --uitk-sidebar-primary-foreground: oklch(0.985 0 0);\n  --uitk-sidebar-accent: oklch(0.269 0 0);\n  --uitk-sidebar-accent-foreground: oklch(0.985 0 0);\n  --uitk-sidebar-border: oklch(1 0 0 / 10%);\n  --uitk-sidebar-ring: oklch(0.556 0 0);\n  }\n}\n","button.tsx":"import \"./theme.css\";\nimport \"./button.utilities.css\";\n\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { LoaderCircle } from \"lucide-react\";\n\nimport { cn } from \"./utils\";\n\nimport type { ComponentProps } from \"react\";\n\nconst buttonVariants = cva(\n  \"uitk:inline-flex uitk:shrink-0 uitk:items-center uitk:justify-center uitk:gap-2 uitk:whitespace-nowrap uitk:rounded-md uitk:text-sm uitk:font-medium uitk:transition-[background-color,color,border-color,box-shadow,translate] uitk:focus-visible:outline-2 uitk:focus-visible:outline-offset-2 uitk:focus-visible:outline-ring uitk:active:translate-y-px uitk:enabled:cursor-pointer uitk:disabled:pointer-events-none uitk:disabled:opacity-50 uitk:data-loading:disabled:opacity-100 uitk:motion-reduce:transition-none uitk:motion-reduce:active:translate-y-0\",\n  {\n    variants: {\n      variant: {\n        default: \"uitk:bg-primary uitk:text-primary-foreground uitk:hover:bg-primary/90\",\n        secondary: \"uitk:bg-secondary uitk:text-secondary-foreground uitk:hover:bg-secondary/75\",\n        outline: \"uitk:border uitk:border-input uitk:bg-background uitk:hover:bg-accent uitk:hover:text-accent-foreground\",\n        ghost: \"uitk:hover:bg-accent uitk:hover:text-accent-foreground\",\n        brand: \"uitk:bg-brand uitk:text-brand-foreground uitk:shadow-sm uitk:hover:bg-brand/90\",\n        success: \"uitk:bg-success uitk:text-success-foreground uitk:shadow-sm uitk:hover:bg-success/90\",\n        destructive: \"uitk:bg-destructive/10 uitk:text-destructive uitk:hover:bg-destructive/20\",\n      },\n      size: {\n        default: \"uitk:h-10 uitk:px-4\",\n        sm: \"uitk:h-8 uitk:px-3\",\n        lg: \"uitk:h-11 uitk:px-6\",\n        icon: \"uitk:size-10\",\n      },\n    },\n    defaultVariants: { variant: \"default\", size: \"default\" },\n  },\n);\n\nexport type ButtonProps = ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    loading?: boolean;\n    loadingLabel?: string;\n  };\n\nexport function Button({\n  className,\n  variant,\n  size,\n  type = \"button\",\n  children,\n  disabled,\n  loading = false,\n  loadingLabel,\n  \"aria-busy\": busy,\n  \"aria-label\": label,\n  ...props\n}: ButtonProps) {\n  const visibleLoadingLabel = size !== \"icon\" && loadingLabel;\n\n  return (\n    <button\n      data-uitk-slot=\"button\"\n      type={type}\n      className={cn(buttonVariants({ variant, size }), className)}\n      {...props}\n      disabled={disabled || loading}\n      data-loading={loading ? \"\" : undefined}\n      aria-busy={loading || busy}\n      aria-label={loading && loadingLabel ? loadingLabel : label}\n    >\n      {loading || visibleLoadingLabel ? (\n        <span className=\"uitk:relative uitk:inline-grid uitk:min-w-0 uitk:place-items-center\">\n          <span\n            className={cn(\n              \"uitk:col-start-1 uitk:row-start-1 uitk:inline-flex uitk:min-w-0 uitk:items-center uitk:gap-2\",\n              loading && \"uitk:opacity-0\",\n            )}\n          >\n            {children}\n          </span>\n          <span\n            aria-hidden=\"true\"\n            className={cn(\n              \"uitk:inline-flex uitk:items-center uitk:justify-center uitk:gap-2\",\n              visibleLoadingLabel ? \"uitk:col-start-1 uitk:row-start-1\" : \"uitk:absolute uitk:inset-0\",\n              !loading && \"uitk:invisible\",\n            )}\n          >\n            <LoaderCircle\n              className={cn(\n                \"uitk:size-4 uitk:shrink-0\",\n                loading && \"uitk:animate-spin uitk:motion-reduce:animate-none\",\n              )}\n            />\n            {visibleLoadingLabel}\n          </span>\n        </span>\n      ) : (\n        children\n      )}\n    </button>\n  );\n}\n\n/** Button styles for elements that are not buttons, such as links. */\nexport { buttonVariants };\n","button.utilities.css":"/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */\n@layer uitk-properties;\n:where([data-uitk-slot]) {\n  --uitk-spacing: 0.25rem;\n  --uitk-text-sm: 0.875rem;\n  --uitk-text-sm--line-height: calc(1.25 / 0.875);\n  --uitk-font-weight-medium: 500;\n  --uitk-animate-spin: uitk-spin 1s linear infinite;\n  --uitk-default-transition-duration: 150ms;\n  --uitk-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n@layer components {\n  .uitk\\:invisible {\n    visibility: hidden;\n  }\n  .uitk\\:absolute {\n    position: absolute;\n  }\n  .uitk\\:relative {\n    position: relative;\n  }\n  .uitk\\:inset-0 {\n    inset: 0px;\n  }\n  .uitk\\:col-start-1 {\n    grid-column-start: 1;\n  }\n  .uitk\\:row-start-1 {\n    grid-row-start: 1;\n  }\n  .uitk\\:inline-flex {\n    display: inline-flex;\n  }\n  .uitk\\:inline-grid {\n    display: inline-grid;\n  }\n  .uitk\\:size-4 {\n    width: calc(var(--uitk-spacing) * 4);\n    height: calc(var(--uitk-spacing) * 4);\n  }\n  .uitk\\:size-10 {\n    width: calc(var(--uitk-spacing) * 10);\n    height: calc(var(--uitk-spacing) * 10);\n  }\n  .uitk\\:h-8 {\n    height: calc(var(--uitk-spacing) * 8);\n  }\n  .uitk\\:h-10 {\n    height: calc(var(--uitk-spacing) * 10);\n  }\n  .uitk\\:h-11 {\n    height: calc(var(--uitk-spacing) * 11);\n  }\n  .uitk\\:min-w-0 {\n    min-width: 0px;\n  }\n  .uitk\\:shrink-0 {\n    flex-shrink: 0;\n  }\n  .uitk\\:animate-spin {\n    animation: var(--uitk-animate-spin);\n  }\n  .uitk\\:place-items-center {\n    place-items: center;\n  }\n  .uitk\\:items-center {\n    align-items: center;\n  }\n  .uitk\\:justify-center {\n    justify-content: center;\n  }\n  .uitk\\:gap-2 {\n    gap: calc(var(--uitk-spacing) * 2);\n  }\n  .uitk\\:rounded-md {\n    border-radius: calc(var(--uitk-radius) * 0.8);\n  }\n  .uitk\\:border {\n    border-style: var(--uitk-tw-border-style);\n    border-width: 1px;\n  }\n  .uitk\\:border-input {\n    border-color: var(--uitk-input);\n  }\n  .uitk\\:bg-background {\n    background-color: var(--uitk-background);\n  }\n  .uitk\\:bg-brand {\n    background-color: var(--uitk-brand);\n  }\n  .uitk\\:bg-destructive\\/10 {\n    background-color: var(--uitk-destructive);\n    @supports (color: color-mix(in lab, red, red)) {\n      background-color: color-mix(in oklab, var(--uitk-destructive) 10%, transparent);\n    }\n  }\n  .uitk\\:bg-primary {\n    background-color: var(--uitk-primary);\n  }\n  .uitk\\:bg-secondary {\n    background-color: var(--uitk-secondary);\n  }\n  .uitk\\:bg-success {\n    background-color: var(--uitk-success);\n  }\n  .uitk\\:px-3 {\n    padding-inline: calc(var(--uitk-spacing) * 3);\n  }\n  .uitk\\:px-4 {\n    padding-inline: calc(var(--uitk-spacing) * 4);\n  }\n  .uitk\\:px-6 {\n    padding-inline: calc(var(--uitk-spacing) * 6);\n  }\n  .uitk\\:text-sm {\n    font-size: var(--uitk-text-sm);\n    line-height: var(--uitk-tw-leading, var(--uitk-text-sm--line-height));\n  }\n  .uitk\\:font-medium {\n    --uitk-tw-font-weight: var(--uitk-font-weight-medium);\n    font-weight: var(--uitk-font-weight-medium);\n  }\n  .uitk\\:whitespace-nowrap {\n    white-space: nowrap;\n  }\n  .uitk\\:text-brand-foreground {\n    color: var(--uitk-brand-foreground);\n  }\n  .uitk\\:text-destructive {\n    color: var(--uitk-destructive);\n  }\n  .uitk\\:text-primary-foreground {\n    color: var(--uitk-primary-foreground);\n  }\n  .uitk\\:text-secondary-foreground {\n    color: var(--uitk-secondary-foreground);\n  }\n  .uitk\\:text-success-foreground {\n    color: var(--uitk-success-foreground);\n  }\n  .uitk\\:opacity-0 {\n    opacity: 0%;\n  }\n  .uitk\\:shadow-sm {\n    --uitk-tw-shadow: 0 1px 3px 0 var(--uitk-tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--uitk-tw-shadow-color, rgb(0 0 0 / 0.1));\n    box-shadow: var(--uitk-tw-inset-shadow), var(--uitk-tw-inset-ring-shadow), var(--uitk-tw-ring-offset-shadow), var(--uitk-tw-ring-shadow), var(--uitk-tw-shadow);\n  }\n  .uitk\\:transition-\\[background-color\\,color\\,border-color\\,box-shadow\\,translate\\] {\n    transition-property: background-color,color,border-color,box-shadow,translate;\n    transition-timing-function: var(--uitk-tw-ease, var(--uitk-default-transition-timing-function));\n    transition-duration: var(--uitk-tw-duration, var(--uitk-default-transition-duration));\n  }\n  @media (hover: hover) {\n    .uitk\\:hover\\:bg-accent:hover {\n      background-color: var(--uitk-accent);\n    }\n    .uitk\\:hover\\:bg-brand\\/90:hover {\n      background-color: var(--uitk-brand);\n    }\n    @supports (color: color-mix(in lab, red, red)) {\n      .uitk\\:hover\\:bg-brand\\/90:hover {\n        background-color: color-mix(in oklab, var(--uitk-brand) 90%, transparent);\n      }\n    }\n    .uitk\\:hover\\:bg-destructive\\/20:hover {\n      background-color: var(--uitk-destructive);\n    }\n    @supports (color: color-mix(in lab, red, red)) {\n      .uitk\\:hover\\:bg-destructive\\/20:hover {\n        background-color: color-mix(in oklab, var(--uitk-destructive) 20%, transparent);\n      }\n    }\n    .uitk\\:hover\\:bg-primary\\/90:hover {\n      background-color: var(--uitk-primary);\n    }\n    @supports (color: color-mix(in lab, red, red)) {\n      .uitk\\:hover\\:bg-primary\\/90:hover {\n        background-color: color-mix(in oklab, var(--uitk-primary) 90%, transparent);\n      }\n    }\n    .uitk\\:hover\\:bg-secondary\\/75:hover {\n      background-color: var(--uitk-secondary);\n    }\n    @supports (color: color-mix(in lab, red, red)) {\n      .uitk\\:hover\\:bg-secondary\\/75:hover {\n        background-color: color-mix(in oklab, var(--uitk-secondary) 75%, transparent);\n      }\n    }\n    .uitk\\:hover\\:bg-success\\/90:hover {\n      background-color: var(--uitk-success);\n    }\n    @supports (color: color-mix(in lab, red, red)) {\n      .uitk\\:hover\\:bg-success\\/90:hover {\n        background-color: color-mix(in oklab, var(--uitk-success) 90%, transparent);\n      }\n    }\n    .uitk\\:hover\\:text-accent-foreground:hover {\n      color: var(--uitk-accent-foreground);\n    }\n  }\n  .uitk\\:focus-visible\\:outline-2:focus-visible {\n    outline-style: var(--uitk-tw-outline-style);\n    outline-width: 2px;\n  }\n  .uitk\\:focus-visible\\:outline-offset-2:focus-visible {\n    outline-offset: 2px;\n  }\n  .uitk\\:focus-visible\\:outline-ring:focus-visible {\n    outline-color: var(--uitk-ring);\n  }\n  .uitk\\:active\\:translate-y-px:active {\n    --uitk-tw-translate-y: 1px;\n    translate: var(--uitk-tw-translate-x) var(--uitk-tw-translate-y);\n  }\n  .uitk\\:enabled\\:cursor-pointer:enabled {\n    cursor: pointer;\n  }\n  .uitk\\:disabled\\:pointer-events-none:disabled {\n    pointer-events: none;\n  }\n  .uitk\\:disabled\\:opacity-50:disabled {\n    opacity: 50%;\n  }\n  .uitk\\:data-loading\\:disabled\\:opacity-100[data-loading]:disabled {\n    opacity: 100%;\n  }\n  @media (prefers-reduced-motion: reduce) {\n    .uitk\\:motion-reduce\\:animate-none {\n      animation: none;\n    }\n    .uitk\\:motion-reduce\\:transition-none {\n      transition-property: none;\n    }\n    .uitk\\:motion-reduce\\:active\\:translate-y-0:active {\n      --uitk-tw-translate-y: 0px;\n      translate: var(--uitk-tw-translate-x) var(--uitk-tw-translate-y);\n    }\n  }\n}\n@property --uitk-tw-border-style {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: solid;\n}\n@property --uitk-tw-font-weight {\n  syntax: \"*\";\n  inherits: false;\n}\n@property --uitk-tw-shadow {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --uitk-tw-shadow-color {\n  syntax: \"*\";\n  inherits: false;\n}\n@property --uitk-tw-shadow-alpha {\n  syntax: \"<percentage>\";\n  inherits: false;\n  initial-value: 100%;\n}\n@property --uitk-tw-inset-shadow {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --uitk-tw-inset-shadow-color {\n  syntax: \"*\";\n  inherits: false;\n}\n@property --uitk-tw-inset-shadow-alpha {\n  syntax: \"<percentage>\";\n  inherits: false;\n  initial-value: 100%;\n}\n@property --uitk-tw-ring-color {\n  syntax: \"*\";\n  inherits: false;\n}\n@property --uitk-tw-ring-shadow {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --uitk-tw-inset-ring-color {\n  syntax: \"*\";\n  inherits: false;\n}\n@property --uitk-tw-inset-ring-shadow {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --uitk-tw-ring-inset {\n  syntax: \"*\";\n  inherits: false;\n}\n@property --uitk-tw-ring-offset-width {\n  syntax: \"<length>\";\n  inherits: false;\n  initial-value: 0px;\n}\n@property --uitk-tw-ring-offset-color {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: #fff;\n}\n@property --uitk-tw-ring-offset-shadow {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: 0 0 #0000;\n}\n@property --uitk-tw-outline-style {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: solid;\n}\n@property --uitk-tw-translate-x {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: 0;\n}\n@property --uitk-tw-translate-y {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: 0;\n}\n@property --uitk-tw-translate-z {\n  syntax: \"*\";\n  inherits: false;\n  initial-value: 0;\n}\n@keyframes uitk-spin {\n  to {\n    transform: rotate(360deg);\n  }\n}\n@layer uitk-properties {\n  @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n    :where([data-uitk-slot], [data-uitk-slot] *, [data-uitk-slot]::before, [data-uitk-slot]::after, [data-uitk-slot] *::before, [data-uitk-slot] *::after) {\n      --uitk-tw-border-style: solid;\n      --uitk-tw-font-weight: initial;\n      --uitk-tw-shadow: 0 0 #0000;\n      --uitk-tw-shadow-color: initial;\n      --uitk-tw-shadow-alpha: 100%;\n      --uitk-tw-inset-shadow: 0 0 #0000;\n      --uitk-tw-inset-shadow-color: initial;\n      --uitk-tw-inset-shadow-alpha: 100%;\n      --uitk-tw-ring-color: initial;\n      --uitk-tw-ring-shadow: 0 0 #0000;\n      --uitk-tw-inset-ring-color: initial;\n      --uitk-tw-inset-ring-shadow: 0 0 #0000;\n      --uitk-tw-ring-inset: initial;\n      --uitk-tw-ring-offset-width: 0px;\n      --uitk-tw-ring-offset-color: #fff;\n      --uitk-tw-ring-offset-shadow: 0 0 #0000;\n      --uitk-tw-outline-style: solid;\n      --uitk-tw-translate-x: 0;\n      --uitk-tw-translate-y: 0;\n      --uitk-tw-translate-z: 0;\n    }\n  }\n}\n"}}