@spark-ui/components 10.10.0 → 10.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/alert-dialog/index.js +65 -12
  3. package/dist/alert-dialog/index.js.map +1 -1
  4. package/dist/alert-dialog/index.mjs +3 -3
  5. package/dist/avatar/index.js +65 -12
  6. package/dist/avatar/index.js.map +1 -1
  7. package/dist/avatar/index.mjs +2 -2
  8. package/dist/button/index.d.mts +1 -1
  9. package/dist/button/index.d.ts +1 -1
  10. package/dist/button/index.js +65 -12
  11. package/dist/button/index.js.map +1 -1
  12. package/dist/button/index.mjs +1 -1
  13. package/dist/carousel/index.js +65 -12
  14. package/dist/carousel/index.js.map +1 -1
  15. package/dist/carousel/index.mjs +2 -2
  16. package/dist/{chunk-7A5MVJB3.mjs → chunk-3PTXYZYN.mjs} +66 -13
  17. package/dist/chunk-3PTXYZYN.mjs.map +1 -0
  18. package/dist/{chunk-I7UIKCZK.mjs → chunk-5VKP2RR6.mjs} +2 -2
  19. package/dist/{chunk-QNYSDG6F.mjs → chunk-MKN2Y3W6.mjs} +2 -2
  20. package/dist/{chunk-ESSJY557.mjs → chunk-Z45YCYPH.mjs} +2 -2
  21. package/dist/combobox/index.js +65 -12
  22. package/dist/combobox/index.js.map +1 -1
  23. package/dist/combobox/index.mjs +3 -3
  24. package/dist/dialog/index.js +65 -12
  25. package/dist/dialog/index.js.map +1 -1
  26. package/dist/dialog/index.mjs +3 -3
  27. package/dist/drawer/index.js +65 -12
  28. package/dist/drawer/index.js.map +1 -1
  29. package/dist/drawer/index.mjs +2 -2
  30. package/dist/dropdown/index.js +65 -12
  31. package/dist/dropdown/index.js.map +1 -1
  32. package/dist/dropdown/index.mjs +3 -3
  33. package/dist/icon-button/index.js +65 -12
  34. package/dist/icon-button/index.js.map +1 -1
  35. package/dist/icon-button/index.mjs +2 -2
  36. package/dist/pagination/index.js +65 -12
  37. package/dist/pagination/index.js.map +1 -1
  38. package/dist/pagination/index.mjs +2 -2
  39. package/dist/popover/index.js +65 -12
  40. package/dist/popover/index.js.map +1 -1
  41. package/dist/popover/index.mjs +3 -3
  42. package/dist/scrolling-list/index.js +65 -12
  43. package/dist/scrolling-list/index.js.map +1 -1
  44. package/dist/scrolling-list/index.mjs +2 -2
  45. package/dist/snackbar/index.js +65 -12
  46. package/dist/snackbar/index.js.map +1 -1
  47. package/dist/snackbar/index.mjs +2 -2
  48. package/dist/stepper/index.js +65 -12
  49. package/dist/stepper/index.js.map +1 -1
  50. package/dist/stepper/index.mjs +2 -2
  51. package/dist/tabs/index.js +65 -12
  52. package/dist/tabs/index.js.map +1 -1
  53. package/dist/tabs/index.mjs +1 -1
  54. package/package.json +5 -5
  55. package/dist/chunk-7A5MVJB3.mjs.map +0 -1
  56. /package/dist/{chunk-I7UIKCZK.mjs.map → chunk-5VKP2RR6.mjs.map} +0 -0
  57. /package/dist/{chunk-QNYSDG6F.mjs.map → chunk-MKN2Y3W6.mjs.map} +0 -0
  58. /package/dist/{chunk-ESSJY557.mjs.map → chunk-Z45YCYPH.mjs.map} +0 -0
@@ -132,6 +132,17 @@ var filledVariants = [
132
132
  "enabled:active:bg-surface-hovered",
133
133
  "focus-visible:bg-surface-hovered"
134
134
  ])
135
+ },
136
+ {
137
+ intent: "surfaceInverse",
138
+ design: "filled",
139
+ class: tw([
140
+ "bg-surface-inverse",
141
+ "text-on-surface-inverse",
142
+ "hover:bg-surface-inverse-hovered",
143
+ "enabled:active:bg-surface-inverse-hovered",
144
+ "focus-visible:bg-surface-inverse-hovered"
145
+ ])
135
146
  }
136
147
  ];
137
148
 
@@ -237,6 +248,16 @@ var ghostVariants = [
237
248
  "enabled:active:bg-surface/dim-5",
238
249
  "focus-visible:bg-surface/dim-5"
239
250
  ])
251
+ },
252
+ {
253
+ intent: "surfaceInverse",
254
+ design: "ghost",
255
+ class: tw2([
256
+ "text-surface-inverse",
257
+ "hover:bg-surface-inverse/dim-5",
258
+ "enabled:active:bg-surface-inverse/dim-5",
259
+ "focus-visible:bg-surface-inverse/dim-5"
260
+ ])
240
261
  }
241
262
  ];
242
263
 
@@ -342,6 +363,16 @@ var outlinedVariants = [
342
363
  "focus-visible:bg-surface/dim-5",
343
364
  "text-surface"
344
365
  ])
366
+ },
367
+ {
368
+ intent: "surfaceInverse",
369
+ design: "outlined",
370
+ class: tw3([
371
+ "hover:bg-surface-inverse/dim-5",
372
+ "enabled:active:bg-surface-inverse/dim-5",
373
+ "focus-visible:bg-surface-inverse/dim-5",
374
+ "text-surface-inverse"
375
+ ])
345
376
  }
346
377
  ];
347
378
 
@@ -457,6 +488,17 @@ var tintedVariants = [
457
488
  "enabled:active:bg-surface-hovered",
458
489
  "focus-visible:bg-surface-hovered"
459
490
  ])
491
+ },
492
+ {
493
+ intent: "surfaceInverse",
494
+ design: "tinted",
495
+ class: tw4([
496
+ "bg-surface-inverse",
497
+ "text-on-surface-inverse",
498
+ "hover:bg-surface-inverse-hovered",
499
+ "enabled:active:bg-surface-inverse-hovered",
500
+ "focus-visible:bg-surface-inverse-hovered"
501
+ ])
460
502
  }
461
503
  ];
462
504
 
@@ -467,7 +509,7 @@ var contrastVariants = [
467
509
  intent: "main",
468
510
  design: "contrast",
469
511
  class: tw5([
470
- "text-main",
512
+ "text-main bg-surface",
471
513
  "hover:bg-main-container-hovered",
472
514
  "enabled:active:bg-main-container-hovered",
473
515
  "focus-visible:bg-main-container-hovered"
@@ -477,7 +519,7 @@ var contrastVariants = [
477
519
  intent: "support",
478
520
  design: "contrast",
479
521
  class: tw5([
480
- "text-support",
522
+ "text-support bg-surface",
481
523
  "hover:bg-support-container-hovered",
482
524
  "enabled:active:bg-support-container-hovered",
483
525
  "focus-visible:bg-support-container-hovered"
@@ -487,7 +529,7 @@ var contrastVariants = [
487
529
  intent: "accent",
488
530
  design: "contrast",
489
531
  class: tw5([
490
- "text-accent",
532
+ "text-accent bg-surface",
491
533
  "hover:bg-accent-container-hovered",
492
534
  "enabled:active:bg-accent-container-hovered",
493
535
  "focus-visible:bg-accent-container-hovered"
@@ -497,7 +539,7 @@ var contrastVariants = [
497
539
  intent: "basic",
498
540
  design: "contrast",
499
541
  class: tw5([
500
- "text-basic",
542
+ "text-basic bg-surface",
501
543
  "hover:bg-basic-container-hovered",
502
544
  "enabled:active:bg-basic-container-hovered",
503
545
  "focus-visible:bg-basic-container-hovered"
@@ -507,7 +549,7 @@ var contrastVariants = [
507
549
  intent: "success",
508
550
  design: "contrast",
509
551
  class: tw5([
510
- "text-success",
552
+ "text-success bg-surface",
511
553
  "hover:bg-success-container-hovered",
512
554
  "enabled:active:bg-success-container-hovered",
513
555
  "focus-visible:bg-success-container-hovered"
@@ -517,7 +559,7 @@ var contrastVariants = [
517
559
  intent: "alert",
518
560
  design: "contrast",
519
561
  class: tw5([
520
- "text-alert",
562
+ "text-alert bg-surface",
521
563
  "hover:bg-alert-container-hovered",
522
564
  "enabled:active:bg-alert-container-hovered",
523
565
  "focus-visible:bg-alert-container-hovered"
@@ -527,7 +569,7 @@ var contrastVariants = [
527
569
  intent: "danger",
528
570
  design: "contrast",
529
571
  class: tw5([
530
- "text-error",
572
+ "text-error bg-surface",
531
573
  "hover:bg-error-container-hovered",
532
574
  "enabled:active:bg-error-container-hovered",
533
575
  "focus-visible:bg-error-container-hovered"
@@ -537,7 +579,7 @@ var contrastVariants = [
537
579
  intent: "info",
538
580
  design: "contrast",
539
581
  class: tw5([
540
- "text-info",
582
+ "text-info bg-surface",
541
583
  "hover:bg-info-container-hovered",
542
584
  "enabled:active:bg-info-container-hovered",
543
585
  "focus-visible:bg-info-container-hovered"
@@ -547,7 +589,7 @@ var contrastVariants = [
547
589
  intent: "neutral",
548
590
  design: "contrast",
549
591
  class: tw5([
550
- "text-neutral",
592
+ "text-neutral bg-surface",
551
593
  "hover:bg-neutral-container-hovered",
552
594
  "enabled:active:bg-neutral-container-hovered",
553
595
  "focus-visible:bg-neutral-container-hovered"
@@ -557,11 +599,21 @@ var contrastVariants = [
557
599
  intent: "surface",
558
600
  design: "contrast",
559
601
  class: tw5([
560
- "text-on-surface",
602
+ "text-on-surface bg-surface",
561
603
  "hover:bg-surface-hovered",
562
604
  "enabled:active:bg-surface-hovered",
563
605
  "focus-visible:bg-surface-hovered"
564
606
  ])
607
+ },
608
+ {
609
+ intent: "surfaceInverse",
610
+ design: "contrast",
611
+ class: tw5([
612
+ "text-on-surface-inverse bg-surface-inverse",
613
+ "hover:bg-surface-inverse-hovered",
614
+ "enabled:active:bg-surface-inverse-hovered",
615
+ "focus-visible:bg-surface-inverse-hovered"
616
+ ])
565
617
  }
566
618
  ];
567
619
 
@@ -595,7 +647,7 @@ var buttonStyles = cva(
595
647
  outlined: ["bg-transparent", "border-sm", "border-current"],
596
648
  tinted: [],
597
649
  ghost: ["default:-mx-md px-md hover:bg-main/dim-5"],
598
- contrast: ["bg-surface"]
650
+ contrast: []
599
651
  }),
600
652
  underline: {
601
653
  true: ["underline"]
@@ -613,7 +665,8 @@ var buttonStyles = cva(
613
665
  danger: [],
614
666
  info: [],
615
667
  neutral: [],
616
- surface: []
668
+ surface: [],
669
+ surfaceInverse: []
617
670
  }),
618
671
  /**
619
672
  * Size of the button.
@@ -744,4 +797,4 @@ Button.displayName = "Button";
744
797
  export {
745
798
  Button
746
799
  };
747
- //# sourceMappingURL=chunk-7A5MVJB3.mjs.map
800
+ //# sourceMappingURL=chunk-3PTXYZYN.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/button/Button.tsx","../src/button/Button.styles.tsx","../src/button/variants/filled.ts","../src/button/variants/ghost.ts","../src/button/variants/outlined.ts","../src/button/variants/tinted.ts","../src/button/variants/contrast.ts"],"sourcesContent":["import { cx } from 'class-variance-authority'\nimport { ComponentPropsWithoutRef, type DOMAttributes, Ref, useMemo } from 'react'\n\nimport { Slot, wrapPolymorphicSlot } from '../slot'\nimport { Spinner, type SpinnerProps } from '../spinner'\nimport { buttonStyles, type ButtonStylesProps } from './Button.styles'\n\nexport interface ButtonProps\n extends Omit<ComponentPropsWithoutRef<'button'>, 'disabled'>,\n ButtonStylesProps {\n /**\n * Change the component to the HTML tag or custom component of the only child.\n */\n asChild?: boolean\n /**\n * Display a spinner to indicate to the user that the button is loading something after they interacted with it.\n */\n isLoading?: boolean\n /**\n * If your loading state should only display a spinner, it's better to specify a label for it (a11y).\n */\n loadingLabel?: string\n /**\n * If your loading state should also display a label, you can use this prop instead of `loadingLabel`.\n * **Please note that using this can result in layout shifting when the Button goes from loading state to normal state.**\n */\n loadingText?: string\n ref?: Ref<HTMLButtonElement>\n}\n\ntype DOMAttributesEventHandler = keyof Omit<\n DOMAttributes<HTMLButtonElement>,\n 'children' | 'dangerouslySetInnerHTML'\n>\n\nconst blockedEventHandlers: DOMAttributesEventHandler[] = [\n 'onClick',\n 'onMouseDown',\n 'onMouseUp',\n 'onMouseEnter',\n 'onMouseLeave',\n 'onMouseOver',\n 'onMouseOut',\n 'onKeyDown',\n 'onKeyPress',\n 'onKeyUp',\n 'onSubmit',\n]\n\nexport const Button = ({\n children,\n design = 'filled',\n disabled = false,\n intent = 'main',\n isLoading = false,\n loadingLabel,\n loadingText,\n shape = 'rounded',\n size = 'md',\n asChild,\n className,\n underline = false,\n ref,\n ...others\n}: ButtonProps) => {\n const Component = asChild ? Slot : 'button'\n\n const shouldNotInteract = !!disabled || isLoading\n\n const disabledEventHandlers = useMemo(() => {\n const result: Partial<Record<DOMAttributesEventHandler, () => void>> = {}\n\n if (shouldNotInteract) {\n blockedEventHandlers.forEach(eventHandler => (result[eventHandler] = undefined))\n }\n\n return result\n }, [shouldNotInteract])\n\n const spinnerProps = {\n size: 'current' as SpinnerProps['size'],\n className: loadingText ? 'inline-block' : 'absolute',\n ...(loadingLabel && { 'aria-label': loadingLabel }),\n }\n\n return (\n <Component\n data-spark-component=\"button\"\n {...(Component === 'button' && { type: 'button' })}\n ref={ref}\n className={buttonStyles({\n className,\n design,\n disabled: shouldNotInteract,\n intent,\n shape,\n size,\n underline,\n })}\n disabled={!!disabled}\n aria-busy={isLoading}\n aria-live={isLoading ? 'assertive' : 'off'}\n {...others}\n {...disabledEventHandlers}\n >\n {wrapPolymorphicSlot(asChild, children, slotted =>\n isLoading ? (\n <>\n <Spinner {...spinnerProps} />\n {loadingText && loadingText}\n\n <div\n aria-hidden\n className={cx('gap-md', loadingText ? 'hidden' : 'inline-flex opacity-0')}\n >\n {slotted}\n </div>\n </>\n ) : (\n slotted\n )\n )}\n </Component>\n )\n}\n\nButton.displayName = 'Button'\n","import { makeVariants } from '@spark-ui/internal-utils'\nimport { cva, VariantProps } from 'class-variance-authority'\n\nimport {\n contrastVariants,\n filledVariants,\n ghostVariants,\n outlinedVariants,\n tintedVariants,\n} from './variants'\n\nexport const buttonStyles = cva(\n [\n 'u-shadow-border-transition',\n 'box-border inline-flex items-center justify-center gap-md whitespace-nowrap',\n 'default:px-lg',\n 'text-body-1 font-bold',\n 'focus-visible:u-outline',\n ],\n {\n variants: {\n /**\n * Main style of the button.\n *\n * - `filled`: Button will be plain.\n *\n * - `outlined`: Button will be transparent with an outline.\n *\n * - `tinted`: Button will be filled but using a lighter color scheme.\n *\n * - `ghost`: Button will look like a link. No borders, plain text.\n *\n * - `contrast`: Button will be surface filled. No borders, plain text.\n *\n */\n design: makeVariants<'design', ['filled', 'outlined', 'tinted', 'ghost', 'contrast']>({\n filled: [],\n outlined: ['bg-transparent', 'border-sm', 'border-current'],\n tinted: [],\n ghost: ['default:-mx-md px-md hover:bg-main/dim-5'],\n contrast: [],\n }),\n underline: {\n true: ['underline'],\n },\n /**\n * Color scheme of the button.\n */\n intent: makeVariants<\n 'intent',\n [\n 'main',\n 'support',\n 'accent',\n 'basic',\n 'success',\n 'alert',\n 'danger',\n 'info',\n 'neutral',\n 'surface',\n 'surfaceInverse',\n ]\n >({\n main: [],\n support: [],\n accent: [],\n basic: [],\n success: [],\n alert: [],\n danger: [],\n info: [],\n neutral: [],\n surface: [],\n surfaceInverse: [],\n }),\n /**\n * Size of the button.\n */\n size: makeVariants<'size', ['sm', 'md', 'lg']>({\n sm: ['min-w-sz-32', 'h-sz-32'],\n md: ['min-w-sz-44', 'h-sz-44'],\n lg: ['min-w-sz-56', 'h-sz-56'],\n }),\n /**\n * Shape of the button.\n */\n shape: makeVariants<'shape', ['rounded', 'square', 'pill']>({\n rounded: ['rounded-lg'],\n square: ['rounded-0'],\n pill: ['rounded-full'],\n }),\n /**\n * Disable the button, preventing user interaction and adding opacity.\n */\n disabled: {\n true: ['cursor-not-allowed', 'opacity-dim-3'],\n false: ['cursor-pointer'],\n },\n },\n compoundVariants: [\n ...filledVariants,\n ...outlinedVariants,\n ...tintedVariants,\n ...ghostVariants,\n ...contrastVariants,\n ],\n defaultVariants: {\n design: 'filled',\n intent: 'main',\n size: 'md',\n shape: 'rounded',\n },\n }\n)\n\nexport type ButtonStylesProps = VariantProps<typeof buttonStyles>\n","import { tw } from '@spark-ui/internal-utils'\n\nexport const filledVariants = [\n // Main\n {\n intent: 'main',\n design: 'filled',\n class: tw([\n 'bg-main',\n 'text-on-main',\n 'hover:bg-main-hovered',\n 'enabled:active:bg-main-hovered',\n 'focus-visible:bg-main-hovered',\n ]),\n },\n // Support\n {\n intent: 'support',\n design: 'filled',\n class: tw([\n 'bg-support',\n 'text-on-support',\n 'hover:bg-support-hovered',\n 'enabled:active:bg-support-hovered',\n 'focus-visible:bg-support-hovered',\n ]),\n },\n // Accent\n {\n intent: 'accent',\n design: 'filled',\n class: tw([\n 'bg-accent',\n 'text-on-accent',\n 'hover:bg-accent-hovered',\n 'enabled:active:bg-accent-hovered',\n 'focus-visible:bg-accent-hovered',\n ]),\n },\n // Basic\n {\n intent: 'basic',\n design: 'filled',\n class: tw([\n 'bg-basic',\n 'text-on-basic',\n 'hover:bg-basic-hovered',\n 'enabled:active:bg-basic-hovered',\n 'focus-visible:bg-basic-hovered',\n ]),\n },\n // Success\n {\n intent: 'success',\n design: 'filled',\n class: tw([\n 'bg-success',\n 'text-on-success',\n 'hover:bg-success-hovered',\n 'enabled:active:bg-success-hovered',\n 'focus-visible:bg-success-hovered',\n ]),\n },\n // Alert\n {\n intent: 'alert',\n design: 'filled',\n class: tw([\n 'bg-alert',\n 'text-on-alert',\n 'hover:bg-alert-hovered',\n 'enabled:active:bg-alert-hovered',\n 'focus-visible:bg-alert-hovered',\n ]),\n },\n // Danger\n {\n intent: 'danger',\n design: 'filled',\n class: tw([\n 'text-on-error bg-error',\n 'hover:bg-error-hovered enabled:active:bg-error-hovered',\n 'focus-visible:bg-error-hovered',\n ]),\n },\n // Info\n {\n intent: 'info',\n design: 'filled',\n class: tw([\n 'text-on-error bg-info',\n 'hover:bg-info-hovered enabled:active:bg-info-hovered',\n 'focus-visible:bg-info-hovered',\n ]),\n },\n // Neutral\n {\n intent: 'neutral',\n design: 'filled',\n class: tw([\n 'bg-neutral',\n 'text-on-neutral',\n 'hover:bg-neutral-hovered',\n 'enabled:active:bg-neutral-hovered',\n 'focus-visible:bg-neutral-hovered',\n ]),\n },\n // Surface\n {\n intent: 'surface',\n design: 'filled',\n class: tw([\n 'bg-surface',\n 'text-on-surface',\n 'hover:bg-surface-hovered',\n 'enabled:active:bg-surface-hovered',\n 'focus-visible:bg-surface-hovered',\n ]),\n },\n {\n intent: 'surfaceInverse',\n design: 'filled',\n class: tw([\n 'bg-surface-inverse',\n 'text-on-surface-inverse',\n 'hover:bg-surface-inverse-hovered',\n 'enabled:active:bg-surface-inverse-hovered',\n 'focus-visible:bg-surface-inverse-hovered',\n ]),\n },\n] as const\n","import { tw } from '@spark-ui/internal-utils'\n\nexport const ghostVariants = [\n {\n intent: 'main',\n design: 'ghost',\n class: tw([\n 'text-main',\n 'hover:bg-main/dim-5',\n 'enabled:active:bg-main/dim-5',\n 'focus-visible:bg-main/dim-5',\n ]),\n },\n {\n intent: 'support',\n design: 'ghost',\n class: tw([\n 'text-support',\n 'hover:bg-support/dim-5',\n 'enabled:active:bg-support/dim-5',\n 'focus-visible:bg-support/dim-5',\n ]),\n },\n {\n intent: 'accent',\n design: 'ghost',\n class: tw([\n 'text-accent',\n 'hover:bg-accent/dim-5',\n 'enabled:active:bg-accent/dim-5',\n 'focus-visible:bg-accent/dim-5',\n ]),\n },\n {\n intent: 'basic',\n design: 'ghost',\n class: tw([\n 'text-basic',\n 'hover:bg-basic/dim-5',\n 'enabled:active:bg-basic/dim-5',\n 'focus-visible:bg-basic/dim-5',\n ]),\n },\n {\n intent: 'success',\n design: 'ghost',\n class: tw([\n 'text-success',\n 'hover:bg-success/dim-5',\n 'enabled:active:bg-success/dim-5',\n 'focus-visible:bg-success/dim-5',\n ]),\n },\n {\n intent: 'alert',\n design: 'ghost',\n class: tw([\n 'text-alert',\n 'hover:bg-alert/dim-5',\n 'enabled:active:bg-alert/dim-5',\n 'focus-visible:bg-alert/dim-5',\n ]),\n },\n {\n intent: 'danger',\n design: 'ghost',\n class: tw([\n 'text-error',\n 'hover:bg-error/dim-5',\n 'enabled:active:bg-error/dim-5',\n 'focus-visible:bg-error/dim-5',\n ]),\n },\n {\n intent: 'info',\n design: 'ghost',\n class: tw([\n 'text-info',\n 'hover:bg-info/dim-5',\n 'enabled:active:bg-info/dim-5',\n 'focus-visible:bg-info/dim-5',\n ]),\n },\n {\n intent: 'neutral',\n design: 'ghost',\n class: tw([\n 'text-neutral',\n 'hover:bg-neutral/dim-5',\n 'enabled:active:bg-neutral/dim-5',\n 'focus-visible:bg-neutral/dim-5',\n ]),\n },\n {\n intent: 'surface',\n design: 'ghost',\n class: tw([\n 'text-surface',\n 'hover:bg-surface/dim-5',\n 'enabled:active:bg-surface/dim-5',\n 'focus-visible:bg-surface/dim-5',\n ]),\n },\n {\n intent: 'surfaceInverse',\n design: 'ghost',\n class: tw([\n 'text-surface-inverse',\n 'hover:bg-surface-inverse/dim-5',\n 'enabled:active:bg-surface-inverse/dim-5',\n 'focus-visible:bg-surface-inverse/dim-5',\n ]),\n },\n] as const\n","import { tw } from '@spark-ui/internal-utils'\n\nexport const outlinedVariants = [\n {\n intent: 'main',\n design: 'outlined',\n class: tw([\n 'hover:bg-main/dim-5',\n 'enabled:active:bg-main/dim-5',\n 'focus-visible:bg-main/dim-5',\n 'text-main',\n ]),\n },\n {\n intent: 'support',\n design: 'outlined',\n class: tw([\n 'hover:bg-support/dim-5',\n 'enabled:active:bg-support/dim-5',\n 'focus-visible:bg-support/dim-5',\n 'text-support',\n ]),\n },\n {\n intent: 'accent',\n design: 'outlined',\n class: tw([\n 'hover:bg-accent/dim-5',\n 'enabled:active:bg-accent/dim-5',\n 'focus-visible:bg-accent/dim-5',\n 'text-accent',\n ]),\n },\n {\n intent: 'basic',\n design: 'outlined',\n class: tw([\n 'hover:bg-basic/dim-5',\n 'enabled:active:bg-basic/dim-5',\n 'focus-visible:bg-basic/dim-5',\n 'text-basic',\n ]),\n },\n {\n intent: 'success',\n design: 'outlined',\n class: tw([\n 'hover:bg-success/dim-5',\n 'enabled:active:bg-success/dim-5',\n 'focus-visible:bg-success/dim-5',\n 'text-success',\n ]),\n },\n {\n intent: 'alert',\n design: 'outlined',\n class: tw([\n 'hover:bg-alert/dim-5',\n 'enabled:active:bg-alert/dim-5',\n 'focus-visible:bg-alert/dim-5',\n 'text-alert',\n ]),\n },\n {\n intent: 'danger',\n design: 'outlined',\n class: tw([\n 'hover:bg-error/dim-5',\n 'enabled:active:bg-error/dim-5',\n 'focus-visible:bg-error/dim-5',\n 'text-error',\n ]),\n },\n {\n intent: 'info',\n design: 'outlined',\n class: tw([\n 'hover:bg-info/dim-5',\n 'enabled:active:bg-info/dim-5',\n 'focus-visible:bg-info/dim-5',\n 'text-info',\n ]),\n },\n {\n intent: 'neutral',\n design: 'outlined',\n class: tw([\n 'hover:bg-neutral/dim-5',\n 'enabled:active:bg-neutral/dim-5',\n 'focus-visible:bg-neutral/dim-5',\n 'text-neutral',\n ]),\n },\n {\n intent: 'surface',\n design: 'outlined',\n class: tw([\n 'hover:bg-surface/dim-5',\n 'enabled:active:bg-surface/dim-5',\n 'focus-visible:bg-surface/dim-5',\n 'text-surface',\n ]),\n },\n {\n intent: 'surfaceInverse',\n design: 'outlined',\n class: tw([\n 'hover:bg-surface-inverse/dim-5',\n 'enabled:active:bg-surface-inverse/dim-5',\n 'focus-visible:bg-surface-inverse/dim-5',\n 'text-surface-inverse',\n ]),\n },\n] as const\n","import { tw } from '@spark-ui/internal-utils'\n\nexport const tintedVariants = [\n {\n intent: 'main',\n design: 'tinted',\n class: tw([\n 'bg-main-container',\n 'text-on-main-container',\n 'hover:bg-main-container-hovered',\n 'enabled:active:bg-main-container-hovered',\n 'focus-visible:bg-main-container-hovered',\n ]),\n },\n {\n intent: 'support',\n design: 'tinted',\n class: tw([\n 'bg-support-container',\n 'text-on-support-container',\n 'hover:bg-support-container-hovered',\n 'enabled:active:bg-support-container-hovered',\n 'focus-visible:bg-support-container-hovered',\n ]),\n },\n {\n intent: 'accent',\n design: 'tinted',\n class: tw([\n 'bg-accent-container',\n 'text-on-accent-container',\n 'hover:bg-accent-container-hovered',\n 'enabled:active:bg-accent-container-hovered',\n 'focus-visible:bg-accent-container-hovered',\n ]),\n },\n {\n intent: 'basic',\n design: 'tinted',\n class: tw([\n 'bg-basic-container',\n 'text-on-basic-container',\n 'hover:bg-basic-container-hovered',\n 'enabled:active:bg-basic-container-hovered',\n 'focus-visible:bg-basic-container-hovered',\n ]),\n },\n {\n intent: 'success',\n design: 'tinted',\n class: tw([\n 'bg-success-container',\n 'text-on-success-container',\n 'hover:bg-success-container-hovered',\n 'enabled:active:bg-success-container-hovered',\n 'focus-visible:bg-success-container-hovered',\n ]),\n },\n {\n intent: 'alert',\n design: 'tinted',\n class: tw([\n 'bg-alert-container',\n 'text-on-alert-container',\n 'hover:bg-alert-container-hovered',\n 'enabled:active:bg-alert-container-hovered',\n 'focus-visible:bg-alert-container-hovered',\n ]),\n },\n {\n intent: 'danger',\n design: 'tinted',\n class: tw([\n 'bg-error-container',\n 'text-on-error-container',\n 'hover:bg-error-container-hovered',\n 'enabled:active:bg-error-container-hovered',\n 'focus-visible:bg-error-container-hovered',\n ]),\n },\n {\n intent: 'info',\n design: 'tinted',\n class: tw([\n 'bg-info-container',\n 'text-on-info-container',\n 'hover:bg-info-container-hovered',\n 'enabled:active:bg-info-container-hovered',\n 'focus-visible:bg-info-container-hovered',\n ]),\n },\n {\n intent: 'neutral',\n design: 'tinted',\n class: tw([\n 'bg-neutral-container',\n 'text-on-neutral-container',\n 'hover:bg-neutral-container-hovered',\n 'enabled:active:bg-neutral-container-hovered',\n 'focus-visible:bg-neutral-container-hovered',\n ]),\n },\n {\n intent: 'surface',\n design: 'tinted',\n class: tw([\n 'bg-surface',\n 'text-on-surface',\n 'hover:bg-surface-hovered',\n 'enabled:active:bg-surface-hovered',\n 'focus-visible:bg-surface-hovered',\n ]),\n },\n {\n intent: 'surfaceInverse',\n design: 'tinted',\n class: tw([\n 'bg-surface-inverse',\n 'text-on-surface-inverse',\n 'hover:bg-surface-inverse-hovered',\n 'enabled:active:bg-surface-inverse-hovered',\n 'focus-visible:bg-surface-inverse-hovered',\n ]),\n },\n] as const\n","import { tw } from '@spark-ui/internal-utils'\n\nexport const contrastVariants = [\n {\n intent: 'main',\n design: 'contrast',\n class: tw([\n 'text-main bg-surface',\n 'hover:bg-main-container-hovered',\n 'enabled:active:bg-main-container-hovered',\n 'focus-visible:bg-main-container-hovered',\n ]),\n },\n {\n intent: 'support',\n design: 'contrast',\n class: tw([\n 'text-support bg-surface',\n 'hover:bg-support-container-hovered',\n 'enabled:active:bg-support-container-hovered',\n 'focus-visible:bg-support-container-hovered',\n ]),\n },\n {\n intent: 'accent',\n design: 'contrast',\n class: tw([\n 'text-accent bg-surface',\n 'hover:bg-accent-container-hovered',\n 'enabled:active:bg-accent-container-hovered',\n 'focus-visible:bg-accent-container-hovered',\n ]),\n },\n {\n intent: 'basic',\n design: 'contrast',\n class: tw([\n 'text-basic bg-surface',\n 'hover:bg-basic-container-hovered',\n 'enabled:active:bg-basic-container-hovered',\n 'focus-visible:bg-basic-container-hovered',\n ]),\n },\n {\n intent: 'success',\n design: 'contrast',\n class: tw([\n 'text-success bg-surface',\n 'hover:bg-success-container-hovered',\n 'enabled:active:bg-success-container-hovered',\n 'focus-visible:bg-success-container-hovered',\n ]),\n },\n {\n intent: 'alert',\n design: 'contrast',\n class: tw([\n 'text-alert bg-surface',\n 'hover:bg-alert-container-hovered',\n 'enabled:active:bg-alert-container-hovered',\n 'focus-visible:bg-alert-container-hovered',\n ]),\n },\n {\n intent: 'danger',\n design: 'contrast',\n class: tw([\n 'text-error bg-surface',\n 'hover:bg-error-container-hovered',\n 'enabled:active:bg-error-container-hovered',\n 'focus-visible:bg-error-container-hovered',\n ]),\n },\n {\n intent: 'info',\n design: 'contrast',\n class: tw([\n 'text-info bg-surface',\n 'hover:bg-info-container-hovered',\n 'enabled:active:bg-info-container-hovered',\n 'focus-visible:bg-info-container-hovered',\n ]),\n },\n {\n intent: 'neutral',\n design: 'contrast',\n class: tw([\n 'text-neutral bg-surface',\n 'hover:bg-neutral-container-hovered',\n 'enabled:active:bg-neutral-container-hovered',\n 'focus-visible:bg-neutral-container-hovered',\n ]),\n },\n {\n intent: 'surface',\n design: 'contrast',\n class: tw([\n 'text-on-surface bg-surface',\n 'hover:bg-surface-hovered',\n 'enabled:active:bg-surface-hovered',\n 'focus-visible:bg-surface-hovered',\n ]),\n },\n {\n intent: 'surfaceInverse',\n design: 'contrast',\n class: tw([\n 'text-on-surface-inverse bg-surface-inverse',\n 'hover:bg-surface-inverse-hovered',\n 'enabled:active:bg-surface-inverse-hovered',\n 'focus-visible:bg-surface-inverse-hovered',\n ]),\n },\n] as const\n"],"mappings":";;;;;;;;;AAAA,SAAS,UAAU;AACnB,SAA4D,eAAe;;;ACD3E,SAAS,oBAAoB;AAC7B,SAAS,WAAyB;;;ACDlC,SAAS,UAAU;AAEZ,IAAM,iBAAiB;AAAA;AAAA,EAE5B;AAAA,IACE,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO,GAAG;AAAA,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AA,MAEJ;AAAA;AAAA,EACF;AAEJ;AAEA,OAAO,cAAc;","names":["tw","tw","tw","tw"]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IconButton
3
- } from "./chunk-QNYSDG6F.mjs";
3
+ } from "./chunk-MKN2Y3W6.mjs";
4
4
  import {
5
5
  Icon
6
6
  } from "./chunk-UMUMFMFB.mjs";
@@ -355,4 +355,4 @@ Description.displayName = "Dialog.Description";
355
355
  export {
356
356
  Dialog2 as Dialog
357
357
  };
358
- //# sourceMappingURL=chunk-I7UIKCZK.mjs.map
358
+ //# sourceMappingURL=chunk-5VKP2RR6.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Button
3
- } from "./chunk-7A5MVJB3.mjs";
3
+ } from "./chunk-3PTXYZYN.mjs";
4
4
 
5
5
  // src/icon-button/IconButton.styles.tsx
6
6
  import { makeVariants } from "@spark-ui/internal-utils";
@@ -50,4 +50,4 @@ IconButton.displayName = "IconButton";
50
50
  export {
51
51
  IconButton
52
52
  };
53
- //# sourceMappingURL=chunk-QNYSDG6F.mjs.map
53
+ //# sourceMappingURL=chunk-MKN2Y3W6.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IconButton
3
- } from "./chunk-QNYSDG6F.mjs";
3
+ } from "./chunk-MKN2Y3W6.mjs";
4
4
  import {
5
5
  Icon
6
6
  } from "./chunk-UMUMFMFB.mjs";
@@ -305,4 +305,4 @@ Trigger.displayName = "Popover.Trigger";
305
305
  export {
306
306
  Popover2 as Popover
307
307
  };
308
- //# sourceMappingURL=chunk-ESSJY557.mjs.map
308
+ //# sourceMappingURL=chunk-Z45YCYPH.mjs.map
@@ -433,6 +433,17 @@ var filledVariants = [
433
433
  "enabled:active:bg-surface-hovered",
434
434
  "focus-visible:bg-surface-hovered"
435
435
  ])
436
+ },
437
+ {
438
+ intent: "surfaceInverse",
439
+ design: "filled",
440
+ class: (0, import_internal_utils3.tw)([
441
+ "bg-surface-inverse",
442
+ "text-on-surface-inverse",
443
+ "hover:bg-surface-inverse-hovered",
444
+ "enabled:active:bg-surface-inverse-hovered",
445
+ "focus-visible:bg-surface-inverse-hovered"
446
+ ])
436
447
  }
437
448
  ];
438
449
 
@@ -538,6 +549,16 @@ var ghostVariants = [
538
549
  "enabled:active:bg-surface/dim-5",
539
550
  "focus-visible:bg-surface/dim-5"
540
551
  ])
552
+ },
553
+ {
554
+ intent: "surfaceInverse",
555
+ design: "ghost",
556
+ class: (0, import_internal_utils4.tw)([
557
+ "text-surface-inverse",
558
+ "hover:bg-surface-inverse/dim-5",
559
+ "enabled:active:bg-surface-inverse/dim-5",
560
+ "focus-visible:bg-surface-inverse/dim-5"
561
+ ])
541
562
  }
542
563
  ];
543
564
 
@@ -643,6 +664,16 @@ var outlinedVariants = [
643
664
  "focus-visible:bg-surface/dim-5",
644
665
  "text-surface"
645
666
  ])
667
+ },
668
+ {
669
+ intent: "surfaceInverse",
670
+ design: "outlined",
671
+ class: (0, import_internal_utils5.tw)([
672
+ "hover:bg-surface-inverse/dim-5",
673
+ "enabled:active:bg-surface-inverse/dim-5",
674
+ "focus-visible:bg-surface-inverse/dim-5",
675
+ "text-surface-inverse"
676
+ ])
646
677
  }
647
678
  ];
648
679
 
@@ -758,6 +789,17 @@ var tintedVariants = [
758
789
  "enabled:active:bg-surface-hovered",
759
790
  "focus-visible:bg-surface-hovered"
760
791
  ])
792
+ },
793
+ {
794
+ intent: "surfaceInverse",
795
+ design: "tinted",
796
+ class: (0, import_internal_utils6.tw)([
797
+ "bg-surface-inverse",
798
+ "text-on-surface-inverse",
799
+ "hover:bg-surface-inverse-hovered",
800
+ "enabled:active:bg-surface-inverse-hovered",
801
+ "focus-visible:bg-surface-inverse-hovered"
802
+ ])
761
803
  }
762
804
  ];
763
805
 
@@ -768,7 +810,7 @@ var contrastVariants = [
768
810
  intent: "main",
769
811
  design: "contrast",
770
812
  class: (0, import_internal_utils7.tw)([
771
- "text-main",
813
+ "text-main bg-surface",
772
814
  "hover:bg-main-container-hovered",
773
815
  "enabled:active:bg-main-container-hovered",
774
816
  "focus-visible:bg-main-container-hovered"
@@ -778,7 +820,7 @@ var contrastVariants = [
778
820
  intent: "support",
779
821
  design: "contrast",
780
822
  class: (0, import_internal_utils7.tw)([
781
- "text-support",
823
+ "text-support bg-surface",
782
824
  "hover:bg-support-container-hovered",
783
825
  "enabled:active:bg-support-container-hovered",
784
826
  "focus-visible:bg-support-container-hovered"
@@ -788,7 +830,7 @@ var contrastVariants = [
788
830
  intent: "accent",
789
831
  design: "contrast",
790
832
  class: (0, import_internal_utils7.tw)([
791
- "text-accent",
833
+ "text-accent bg-surface",
792
834
  "hover:bg-accent-container-hovered",
793
835
  "enabled:active:bg-accent-container-hovered",
794
836
  "focus-visible:bg-accent-container-hovered"
@@ -798,7 +840,7 @@ var contrastVariants = [
798
840
  intent: "basic",
799
841
  design: "contrast",
800
842
  class: (0, import_internal_utils7.tw)([
801
- "text-basic",
843
+ "text-basic bg-surface",
802
844
  "hover:bg-basic-container-hovered",
803
845
  "enabled:active:bg-basic-container-hovered",
804
846
  "focus-visible:bg-basic-container-hovered"
@@ -808,7 +850,7 @@ var contrastVariants = [
808
850
  intent: "success",
809
851
  design: "contrast",
810
852
  class: (0, import_internal_utils7.tw)([
811
- "text-success",
853
+ "text-success bg-surface",
812
854
  "hover:bg-success-container-hovered",
813
855
  "enabled:active:bg-success-container-hovered",
814
856
  "focus-visible:bg-success-container-hovered"
@@ -818,7 +860,7 @@ var contrastVariants = [
818
860
  intent: "alert",
819
861
  design: "contrast",
820
862
  class: (0, import_internal_utils7.tw)([
821
- "text-alert",
863
+ "text-alert bg-surface",
822
864
  "hover:bg-alert-container-hovered",
823
865
  "enabled:active:bg-alert-container-hovered",
824
866
  "focus-visible:bg-alert-container-hovered"
@@ -828,7 +870,7 @@ var contrastVariants = [
828
870
  intent: "danger",
829
871
  design: "contrast",
830
872
  class: (0, import_internal_utils7.tw)([
831
- "text-error",
873
+ "text-error bg-surface",
832
874
  "hover:bg-error-container-hovered",
833
875
  "enabled:active:bg-error-container-hovered",
834
876
  "focus-visible:bg-error-container-hovered"
@@ -838,7 +880,7 @@ var contrastVariants = [
838
880
  intent: "info",
839
881
  design: "contrast",
840
882
  class: (0, import_internal_utils7.tw)([
841
- "text-info",
883
+ "text-info bg-surface",
842
884
  "hover:bg-info-container-hovered",
843
885
  "enabled:active:bg-info-container-hovered",
844
886
  "focus-visible:bg-info-container-hovered"
@@ -848,7 +890,7 @@ var contrastVariants = [
848
890
  intent: "neutral",
849
891
  design: "contrast",
850
892
  class: (0, import_internal_utils7.tw)([
851
- "text-neutral",
893
+ "text-neutral bg-surface",
852
894
  "hover:bg-neutral-container-hovered",
853
895
  "enabled:active:bg-neutral-container-hovered",
854
896
  "focus-visible:bg-neutral-container-hovered"
@@ -858,11 +900,21 @@ var contrastVariants = [
858
900
  intent: "surface",
859
901
  design: "contrast",
860
902
  class: (0, import_internal_utils7.tw)([
861
- "text-on-surface",
903
+ "text-on-surface bg-surface",
862
904
  "hover:bg-surface-hovered",
863
905
  "enabled:active:bg-surface-hovered",
864
906
  "focus-visible:bg-surface-hovered"
865
907
  ])
908
+ },
909
+ {
910
+ intent: "surfaceInverse",
911
+ design: "contrast",
912
+ class: (0, import_internal_utils7.tw)([
913
+ "text-on-surface-inverse bg-surface-inverse",
914
+ "hover:bg-surface-inverse-hovered",
915
+ "enabled:active:bg-surface-inverse-hovered",
916
+ "focus-visible:bg-surface-inverse-hovered"
917
+ ])
866
918
  }
867
919
  ];
868
920
 
@@ -896,7 +948,7 @@ var buttonStyles = (0, import_class_variance_authority4.cva)(
896
948
  outlined: ["bg-transparent", "border-sm", "border-current"],
897
949
  tinted: [],
898
950
  ghost: ["default:-mx-md px-md hover:bg-main/dim-5"],
899
- contrast: ["bg-surface"]
951
+ contrast: []
900
952
  }),
901
953
  underline: {
902
954
  true: ["underline"]
@@ -914,7 +966,8 @@ var buttonStyles = (0, import_class_variance_authority4.cva)(
914
966
  danger: [],
915
967
  info: [],
916
968
  neutral: [],
917
- surface: []
969
+ surface: [],
970
+ surfaceInverse: []
918
971
  }),
919
972
  /**
920
973
  * Size of the button.