@widgetic/design-system 0.3.78 → 0.3.80

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 (96) hide show
  1. package/README.md +592 -126
  2. package/dist/components/CopyableHeader.svelte +13 -11
  3. package/dist/components/EmptyState.svelte +2 -9
  4. package/dist/components/EmptyState.svelte.d.ts +1 -2
  5. package/dist/components/PasswordInput.svelte +1 -5
  6. package/dist/components/WScrollArea.svelte +3 -3
  7. package/dist/components/debug-grid/DebugGrid.svelte +1 -1
  8. package/dist/components/ic/browser/BrowserInputController.svelte +1 -1
  9. package/dist/components/index.d.ts +1 -1
  10. package/dist/components/index.js +1 -1
  11. package/dist/components/modals/BaseModal.svelte +1 -1
  12. package/dist/components/modals/NewItemDialog.svelte +1 -1
  13. package/dist/components/modals/RenameDialog.svelte +6 -7
  14. package/dist/components/modals/modalStore.js +21 -26
  15. package/dist/components/navigation/Breadcrumbs.svelte +9 -9
  16. package/dist/components/pdf/PDFViewer.svelte +19 -10
  17. package/dist/components/search-input/SearchInput.svelte +8 -3
  18. package/dist/components/search-input/index.d.ts +14 -3
  19. package/dist/components/search-input/index.js +2 -1
  20. package/dist/components/shad-editor/custom/image-extended-component.svelte +1 -1
  21. package/dist/components/shad-editor/editor.css +4 -8
  22. package/dist/components/shad-editor/icons/table.svelte +3 -3
  23. package/dist/components/shad-editor/icons/text.svelte +1 -1
  24. package/dist/components/shad-editor/onedark.css +0 -3
  25. package/dist/components/shad-editor/shad-editor.svelte +1 -1
  26. package/dist/components/toast/ToasterModal.svelte +11 -15
  27. package/dist/components/ui/accordion/index.d.ts +1 -1
  28. package/dist/components/ui/badge/badge.svelte +1 -1
  29. package/dist/components/ui/badge/badge.svelte.d.ts +2 -2
  30. package/dist/components/ui/button/button.svelte +1 -1
  31. package/dist/components/ui/button/button.svelte.d.ts +2 -2
  32. package/dist/components/ui/calendar/calendar-day.svelte +4 -4
  33. package/dist/components/ui/calendar/calendar.svelte.d.ts +1 -1
  34. package/dist/components/ui/card/card.svelte +1 -1
  35. package/dist/components/ui/checkbox/checkbox.svelte +1 -1
  36. package/dist/components/ui/collapsible/index.d.ts +1 -1
  37. package/dist/components/ui/command/command-dialog.svelte +1 -1
  38. package/dist/components/ui/command/command-dialog.svelte.d.ts +1 -1
  39. package/dist/components/ui/command/command-input.svelte +1 -1
  40. package/dist/components/ui/command/command-input.svelte.d.ts +1 -1
  41. package/dist/components/ui/command/command-item.svelte +1 -1
  42. package/dist/components/ui/command/command-link-item.svelte +1 -1
  43. package/dist/components/ui/command/command.svelte.d.ts +1 -1
  44. package/dist/components/ui/dialog/dialog-content.svelte +1 -1
  45. package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +1 -1
  46. package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +1 -1
  47. package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +1 -1
  48. package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +1 -1
  49. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +1 -1
  50. package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +1 -1
  51. package/dist/components/ui/dropdown-menu/index.d.ts +1 -1
  52. package/dist/components/ui/hover-card/hover-card-content.svelte +1 -1
  53. package/dist/components/ui/input/input.svelte +1 -1
  54. package/dist/components/ui/input/input.svelte.d.ts +1 -1
  55. package/dist/components/ui/input-otp/input-otp.svelte +1 -1
  56. package/dist/components/ui/input-otp/input-otp.svelte.d.ts +1 -1
  57. package/dist/components/ui/popover/popover-content.svelte +1 -1
  58. package/dist/components/ui/radio-group/radio-group-item.svelte +1 -1
  59. package/dist/components/ui/radio-group/radio-group.svelte.d.ts +1 -1
  60. package/dist/components/ui/range-calendar/range-calendar-day.svelte +6 -6
  61. package/dist/components/ui/range-calendar/range-calendar.svelte.d.ts +1 -1
  62. package/dist/components/ui/select/index.d.ts +1 -1
  63. package/dist/components/ui/select/select-item.svelte +1 -1
  64. package/dist/components/ui/select/select-trigger.svelte +1 -1
  65. package/dist/components/ui/slider/slider.svelte +1 -1
  66. package/dist/components/ui/slider/slider.svelte.d.ts +1 -1
  67. package/dist/components/ui/switch/switch.svelte +1 -1
  68. package/dist/components/ui/tabs/index.d.ts +1 -1
  69. package/dist/components/ui/tabs/tabs-content.svelte +1 -1
  70. package/dist/components/ui/tabs/tabs-trigger.svelte +1 -1
  71. package/dist/components/ui/textarea/textarea.svelte +1 -1
  72. package/dist/components/ui/textarea/textarea.svelte.d.ts +1 -1
  73. package/dist/components/ui/toggle/toggle.svelte +1 -1
  74. package/dist/components/ui/toggle/toggle.svelte.d.ts +2 -2
  75. package/dist/components/ui/toggle-group/toggle-group-item.svelte.d.ts +1 -1
  76. package/dist/components/ui/toggle-group/toggle-group.svelte.d.ts +1 -1
  77. package/dist/components/widget-system/Moveable.svelte +62 -19
  78. package/dist/icons/LogoWidgetic.svelte +6 -17
  79. package/dist/icons/LogoWidgeticGreen.svelte +13 -0
  80. package/dist/icons/LogoWidgeticGreen.svelte.d.ts +20 -0
  81. package/dist/icons/LogoWidgeticType-old.svelte +13 -0
  82. package/dist/icons/LogoWidgeticType-old.svelte.d.ts +20 -0
  83. package/dist/icons/LogoWidgeticType-old.svg +4 -0
  84. package/dist/icons/LogoWidgeticType.svelte +18 -10
  85. package/dist/icons/LogoWidgeticType.svg +10 -3
  86. package/dist/icons/index.d.ts +3 -1
  87. package/dist/icons/index.js +3 -1
  88. package/dist/styles/fonts.css +39 -50
  89. package/dist/styles/global.css +45 -64
  90. package/package.json +42 -44
  91. package/tailwind.config.ts +6 -1
  92. package/dist/components/search-input/index2.d.ts +0 -14
  93. package/dist/components/shad-editor/README.md +0 -18
  94. package/dist/icons/eye-off.svg +0 -1
  95. package/dist/icons/eye.svg +0 -1
  96. /package/dist/icons/{checked.svg → Checked.svg} +0 -0
@@ -3,8 +3,8 @@
3
3
  import { toast, Toaster } from '../ui/sonner';
4
4
 
5
5
  // Import Icons from Icons Folder
6
- import Exclamation from '../../icons/Exclamation.svelte';
7
- import Checked from '../../icons/Checked.svelte';
6
+ import Close from '../../icons/Exclamation.svelte';
7
+ import Checked from '../../icons/checked.svelte';
8
8
 
9
9
  // Import Toast Types directly from the svelte-sonner module
10
10
  // import type { ToastTypes } from 'svelte-sonner';
@@ -50,34 +50,27 @@ export function showToast(type: string = 'success', title: string, options: any
50
50
  const duration = options?.duration || defaultDuration;
51
51
 
52
52
  // set close icon - not working !!!
53
- options.closeIcon = Exclamation;
53
+ options.closeIcon = Close;
54
54
 
55
55
  // Get the title color from the options or use the default color
56
56
  const titleColor = type === 'success' ? '--grey7' : type === 'error' ? '--error' : '--dark';
57
57
 
58
58
  // set icon depending on the type of toast
59
- if(type === 'error') options.icon = Exclamation;
59
+ if(type === 'error') options.icon = Close;
60
60
  if(type === 'success') options.icon = Checked;
61
61
 
62
62
  // set icon background fill color
63
63
  if(type === 'success') options.iconBgFillColor = '--icon-success';
64
- if(type === 'error') options.iconBgFillColor = '--icon-error';
64
+ if(type === 'error') options.iconBgFillColor = '--icon-error';
65
65
  if(type === 'warning') options.iconBgFillColor = '--sunny-yellow';
66
66
  // console.log('showToast:', type, title, titleColor, duration);
67
67
 
68
68
  // set style of the data-icon element
69
69
  setTimeout(() => {
70
- // set the close button color
71
70
  let closeButtonElement = document.querySelector('.' + toastMainClass + '-close-button') as HTMLElement; //console.log('closeButtonElement:', closeButtonElement);
72
- // if(closeButtonElement) closeButtonElement.style.backgroundColor = 'hsl(var(' + options.closeBgFillColor + '))';
73
71
 
74
- // set icon background fill color
75
72
  let iconElement = document.querySelector('.' + toastMainClass + '> [data-icon] > svg') as HTMLElement; //console.log('iconElement:', iconElement);
76
73
  if(iconElement) iconElement.style.color = 'hsl(var(' + options.iconBgFillColor + '))';
77
-
78
- // set the title color
79
- let titleElement = document.querySelector('.' + toastMainClass + '-title') as HTMLElement; //console.log('titleElement:', titleElement);
80
- if(titleElement) titleElement.style.color = 'hsl(var(' + titleColor + '))';
81
74
  }, 20);
82
75
 
83
76
  // Call toast with custom styling
@@ -85,6 +78,9 @@ export function showToast(type: string = 'success', title: string, options: any
85
78
  ...options,
86
79
  duration,
87
80
  unstyled: true,
81
+ classes: {
82
+ title: "text-[hsl(var(" + titleColor + "))]",
83
+ },
88
84
  onAutoClose: () => {
89
85
  isToastVisible = false;
90
86
  },
@@ -107,10 +103,10 @@ export function showToast(type: string = 'success', title: string, options: any
107
103
  classes: {
108
104
  toast: toastMainClass + " widgetic-colors widgetic-radius !bg-white !rounded-small !border !border-[hsl(var(--forest-green))] " +
109
105
  "!min-w-[334px] !max-w-[450px] " +
110
- // "fixed top-auto bottom-[20px] right-[20px] " +
106
+ "!fixed !top-auto !bottom-[20px] !right-[20px] " +
111
107
  "!flex !items-center !gap-[24px] !p-[16px] !px-[24px] " +
112
108
  // Icon Styling
113
- "*:data-icon:!w-[24px] *:data-icon:!h-[24px] *:data-icon:!m-0 " +
109
+ "[&>[data-icon]]:!w-[24px] [&>[data-icon]]:!h-[24px] [&>[data-icon]]:!m-0 " +
114
110
  "[&>[data-icon]>svg]:!w-full [&>[data-icon]>svg]:!h-full " +
115
111
  // Content Styling
116
112
  "[&>[data-content]>svg]:flex [&>[data-content]>svg]:flex-col [&>[data-content]>svg]:gap-[2px]",
@@ -123,7 +119,7 @@ export function showToast(type: string = 'success', title: string, options: any
123
119
  // Cancel Button Styling
124
120
  cancelButton: "",
125
121
  // Close Button Styling
126
- closeButton: toastMainClass + '-close-button !w-[16px] !h-[16px] !absolute !top-[0px] !left-[0px] z-10 !bg-[hsl(var(--grey7))] !border !border-[hsl(var(--grey5))] !text-white'
122
+ closeButton: toastMainClass + '-close-button w-[16px] h-[16px] absolute -translate-x-1/2 -translate-y-1/2 top-[1px] left-[1px] z-10 !bg-[hsl(var(--grey7))] border !border-[hsl(var(--grey5))] !text-white'
127
123
  }
128
124
  }}
129
125
  expand={false}
@@ -2,5 +2,5 @@ import { Accordion as AccordionPrimitive } from "bits-ui";
2
2
  import Content from "./accordion-content.svelte";
3
3
  import Item from "./accordion-item.svelte";
4
4
  import Trigger from "./accordion-trigger.svelte";
5
- declare const Root: import("svelte").Component<AccordionPrimitive.RootProps, {}, "value" | "ref">;
5
+ declare const Root: import("svelte").Component<AccordionPrimitive.RootProps, {}, "ref" | "value">;
6
6
  export { Root, Content, Item, Trigger, Root as Accordion, Content as AccordionContent, Item as AccordionItem, Trigger as AccordionTrigger };
@@ -2,7 +2,7 @@
2
2
  import { type VariantProps, tv } from "tailwind-variants";
3
3
 
4
4
  export const badgeVariants = tv({
5
- base: "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-offset-2",
5
+ base: "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2",
6
6
  variants: {
7
7
  variant: {
8
8
  default:
@@ -6,7 +6,7 @@ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
6
6
  destructive: string;
7
7
  outline: string;
8
8
  };
9
- }, undefined, "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-offset-2", import("tailwind-variants/dist/config").TVConfig<{
9
+ }, undefined, "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2", import("tailwind-variants/dist/config").TVConfig<{
10
10
  variant: {
11
11
  default: string;
12
12
  secondary: string;
@@ -34,7 +34,7 @@ export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
34
34
  destructive: string;
35
35
  outline: string;
36
36
  };
37
- }, undefined, "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-offset-2", import("tailwind-variants/dist/config").TVConfig<{
37
+ }, undefined, "focus:ring-ring inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2", import("tailwind-variants/dist/config").TVConfig<{
38
38
  variant: {
39
39
  default: string;
40
40
  secondary: string;
@@ -4,7 +4,7 @@
4
4
  import { type VariantProps, tv } from "tailwind-variants";
5
5
 
6
6
  export const buttonVariants = tv({
7
- base: "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
7
+ base: "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
8
8
  variants: {
9
9
  variant: {
10
10
  default: "bg-primary text-primary-foreground hover:bg-primary/90",
@@ -16,7 +16,7 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
16
16
  lg: string;
17
17
  icon: string;
18
18
  };
19
- }, undefined, "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
19
+ }, undefined, "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
20
20
  variant: {
21
21
  default: string;
22
22
  destructive: string;
@@ -76,7 +76,7 @@ export declare const buttonVariants: import("tailwind-variants").TVReturnType<{
76
76
  lg: string;
77
77
  icon: string;
78
78
  };
79
- }, undefined, "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
79
+ }, undefined, "ring-offset-background focus-visible:ring-ring inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config").TVConfig<{
80
80
  variant: {
81
81
  default: string;
82
82
  destructive: string;
@@ -17,13 +17,13 @@
17
17
  "size-9 p-0 font-normal",
18
18
  "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground",
19
19
  // Selected
20
- "data-selected:bg-primary data-selected:text-primary-foreground data-selected:hover:bg-primary data-selected:hover:text-primary-foreground data-selected:focus:bg-primary data-selected:focus:text-primary-foreground data-selected:opacity-100",
20
+ "data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground data-[selected]:opacity-100",
21
21
  // Disabled
22
- "data-disabled:text-muted-foreground data-disabled:opacity-50",
22
+ "data-[disabled]:text-muted-foreground data-[disabled]:opacity-50",
23
23
  // Unavailable
24
- "data-unavailable:text-destructive-foreground data-unavailable:line-through",
24
+ "data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through",
25
25
  // Outside months
26
- "data-outside-month:text-muted-foreground [&[data-outside-month][data-selected]]:bg-accent/50 [&[data-outside-month][data-selected]]:text-muted-foreground data-outside-month:pointer-events-none data-outside-month:opacity-50 [&[data-outside-month][data-selected]]:opacity-30",
26
+ "data-[outside-month]:text-muted-foreground [&[data-outside-month][data-selected]]:bg-accent/50 [&[data-outside-month][data-selected]]:text-muted-foreground data-[outside-month]:pointer-events-none data-[outside-month]:opacity-50 [&[data-outside-month][data-selected]]:opacity-30",
27
27
  className
28
28
  )}
29
29
  {...restProps}
@@ -1,5 +1,5 @@
1
1
  import { Calendar as CalendarPrimitive, type WithoutChildrenOrChild } from "bits-ui";
2
2
  import * as Calendar from "./index.js";
3
- declare const Calendar: import("svelte").Component<WithoutChildrenOrChild<CalendarPrimitive.RootProps>, {}, "value" | "placeholder" | "ref">;
3
+ declare const Calendar: import("svelte").Component<WithoutChildrenOrChild<CalendarPrimitive.RootProps>, {}, "ref" | "value" | "placeholder">;
4
4
  type Calendar = ReturnType<typeof Calendar>;
5
5
  export default Calendar;
@@ -13,7 +13,7 @@
13
13
 
14
14
  <div
15
15
  bind:this={ref}
16
- class={cn("bg-card text-card-foreground rounded-lg border shadow-2xs", className)}
16
+ class={cn("bg-card text-card-foreground rounded-lg border shadow-sm", className)}
17
17
  {...restProps}
18
18
  >
19
19
  {@render children?.()}
@@ -16,7 +16,7 @@
16
16
  <CheckboxPrimitive.Root
17
17
  bind:ref
18
18
  class={cn(
19
- "border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer box-content size-4 shrink-0 rounded-sm border focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",
19
+ "border-primary ring-offset-background focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground peer box-content 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 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-50",
20
20
  className
21
21
  )}
22
22
  bind:checked
@@ -1,5 +1,5 @@
1
1
  import { Collapsible as CollapsiblePrimitive } from "bits-ui";
2
- declare const Root: import("svelte").Component<CollapsiblePrimitive.RootProps, {}, "open" | "ref">;
2
+ declare const Root: import("svelte").Component<CollapsiblePrimitive.RootProps, {}, "ref" | "open">;
3
3
  declare const Trigger: import("svelte").Component<CollapsiblePrimitive.TriggerProps, {}, "ref">;
4
4
  declare const Content: import("svelte").Component<Omit<{
5
5
  forceMount?: boolean;
@@ -25,7 +25,7 @@
25
25
  <Dialog.Root bind:open {...restProps}>
26
26
  <Dialog.Content class="overflow-hidden p-0 shadow-lg" {portalProps}>
27
27
  <Command
28
- class="[&_[data-command-group]:not([hidden])_~[data-command-group]]:pt-0 **:data-command-group:px-2 [&_[data-command-input-wrapper]_svg]:h-5 [&_[data-command-input-wrapper]_svg]:w-5 **:data-command-input:h-12 **:data-command-item:px-2 **:data-command-item:py-3 [&_[data-command-item]_svg]:h-5 [&_[data-command-item]_svg]:w-5"
28
+ class="[&_[data-command-group]:not([hidden])_~[data-command-group]]:pt-0 [&_[data-command-group]]:px-2 [&_[data-command-input-wrapper]_svg]:h-5 [&_[data-command-input-wrapper]_svg]:w-5 [&_[data-command-input]]:h-12 [&_[data-command-item]]:px-2 [&_[data-command-item]]:py-3 [&_[data-command-item]_svg]:h-5 [&_[data-command-item]_svg]:w-5"
29
29
  {...restProps}
30
30
  bind:value
31
31
  bind:ref
@@ -4,6 +4,6 @@ type $$ComponentProps = WithoutChildrenOrChild<DialogPrimitive.RootProps> & With
4
4
  portalProps?: DialogPrimitive.PortalProps;
5
5
  children: Snippet;
6
6
  };
7
- declare const CommandDialog: import("svelte").Component<$$ComponentProps, {}, "open" | "value" | "ref">;
7
+ declare const CommandDialog: import("svelte").Component<$$ComponentProps, {}, "ref" | "value" | "open">;
8
8
  type CommandDialog = ReturnType<typeof CommandDialog>;
9
9
  export default CommandDialog;
@@ -15,7 +15,7 @@
15
15
  <Search class="mr-2 size-4 shrink-0 opacity-50" />
16
16
  <CommandPrimitive.Input
17
17
  class={cn(
18
- "placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-base outline-hidden disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
18
+ "placeholder:text-muted-foreground flex h-11 w-full rounded-md bg-transparent py-3 text-base outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
19
19
  className
20
20
  )}
21
21
  bind:ref
@@ -1,4 +1,4 @@
1
1
  import { Command as CommandPrimitive } from "bits-ui";
2
- declare const CommandInput: import("svelte").Component<CommandPrimitive.InputProps, {}, "value" | "ref">;
2
+ declare const CommandInput: import("svelte").Component<CommandPrimitive.InputProps, {}, "ref" | "value">;
3
3
  type CommandInput = ReturnType<typeof CommandInput>;
4
4
  export default CommandInput;
@@ -11,7 +11,7 @@
11
11
 
12
12
  <CommandPrimitive.Item
13
13
  class={cn(
14
- "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
14
+ "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
15
15
  className
16
16
  )}
17
17
  bind:ref
@@ -11,7 +11,7 @@
11
11
 
12
12
  <CommandPrimitive.LinkItem
13
13
  class={cn(
14
- "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",
14
+ "aria-selected:bg-accent aria-selected:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
15
15
  className
16
16
  )}
17
17
  bind:ref
@@ -1,4 +1,4 @@
1
1
  import { Command as CommandPrimitive } from "bits-ui";
2
- declare const Command: import("svelte").Component<CommandPrimitive.RootProps, {}, "value" | "ref">;
2
+ declare const Command: import("svelte").Component<CommandPrimitive.RootProps, {}, "ref" | "value">;
3
3
  type Command = ReturnType<typeof Command>;
4
4
  export default Command;
@@ -29,7 +29,7 @@
29
29
  >
30
30
  {@render children?.()}
31
31
  <DialogPrimitive.Close
32
- class="ring-offset-background focus:ring-ring absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-offset-2 disabled:pointer-events-none"
32
+ class="ring-offset-background focus:ring-ring 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"
33
33
  >
34
34
  <X class="size-4" />
35
35
  <span class="sr-only">Close</span>
@@ -22,7 +22,7 @@
22
22
  bind:checked
23
23
  bind:indeterminate
24
24
  class={cn(
25
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",
25
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
26
26
  className
27
27
  )}
28
28
  {...restProps}
@@ -18,7 +18,7 @@
18
18
  bind:ref
19
19
  {sideOffset}
20
20
  class={cn(
21
- "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 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md outline-hidden",
21
+ "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 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md outline-none",
22
22
  className
23
23
  )}
24
24
  {...restProps}
@@ -15,7 +15,7 @@
15
15
  <DropdownMenuPrimitive.Item
16
16
  bind:ref
17
17
  class={cn(
18
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
18
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
19
19
  inset && "pl-8",
20
20
  className
21
21
  )}
@@ -14,7 +14,7 @@
14
14
  <DropdownMenuPrimitive.RadioItem
15
15
  bind:ref
16
16
  class={cn(
17
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",
17
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -12,7 +12,7 @@
12
12
  <DropdownMenuPrimitive.SubContent
13
13
  bind:ref
14
14
  class={cn(
15
- "bg-popover text-popover-foreground z-50 min-w-[8rem] rounded-md border p-1 shadow-lg focus:outline-hidden",
15
+ "bg-popover text-popover-foreground z-50 min-w-[8rem] rounded-md border p-1 shadow-lg focus:outline-none",
16
16
  className
17
17
  )}
18
18
  {...restProps}
@@ -17,7 +17,7 @@
17
17
  <DropdownMenuPrimitive.SubTrigger
18
18
  bind:ref
19
19
  class={cn(
20
- "data-highlighted:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
20
+ "data-[highlighted]:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
21
21
  inset && "pl-8",
22
22
  className
23
23
  )}
@@ -21,5 +21,5 @@ declare const Root: import("svelte").Component<{
21
21
  }, {}, "open">;
22
22
  declare const Trigger: import("svelte").Component<DropdownMenuPrimitive.TriggerProps, {}, "ref">;
23
23
  declare const Group: import("svelte").Component<DropdownMenuPrimitive.GroupProps, {}, "ref">;
24
- declare const RadioGroup: import("svelte").Component<DropdownMenuPrimitive.RadioGroupProps, {}, "value" | "ref">;
24
+ declare const RadioGroup: import("svelte").Component<DropdownMenuPrimitive.RadioGroupProps, {}, "ref" | "value">;
25
25
  export { CheckboxItem, Content, Root, Group, GroupHeading, Item, Label, RadioGroup, RadioItem, Separator, Shortcut, Sub, SubContent, SubTrigger, Trigger, CheckboxItem as DropdownMenuCheckboxItem, Content as DropdownMenuContent, Root as DropdownMenu, Group as DropdownMenuGroup, GroupHeading as DropdownMenuGroupHeading, Item as DropdownMenuItem, Label as DropdownMenuLabel, RadioGroup as DropdownMenuRadioGroup, RadioItem as DropdownMenuRadioItem, Separator as DropdownMenuSeparator, Shortcut as DropdownMenuShortcut, Sub as DropdownMenuSub, SubContent as DropdownMenuSubContent, SubTrigger as DropdownMenuSubTrigger, Trigger as DropdownMenuTrigger };
@@ -20,7 +20,7 @@
20
20
  {align}
21
21
  {sideOffset}
22
22
  class={cn(
23
- "bg-popover text-popover-foreground z-50 mt-3 w-64 rounded-md border p-4 shadow-md outline-hidden",
23
+ "bg-popover text-popover-foreground z-50 mt-3 w-64 rounded-md border p-4 shadow-md outline-none",
24
24
  className
25
25
  )}
26
26
  {...restProps}
@@ -14,7 +14,7 @@
14
14
  <input
15
15
  bind:this={ref}
16
16
  class={cn(
17
- "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
17
+ "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
18
18
  className
19
19
  )}
20
20
  bind:value
@@ -1,5 +1,5 @@
1
1
  import type { HTMLInputAttributes } from "svelte/elements";
2
2
  import type { WithElementRef } from "bits-ui";
3
- declare const Input: import("svelte").Component<WithElementRef<HTMLInputAttributes>, {}, "value" | "ref">;
3
+ declare const Input: import("svelte").Component<WithElementRef<HTMLInputAttributes>, {}, "ref" | "value">;
4
4
  type Input = ReturnType<typeof Input>;
5
5
  export default Input;
@@ -15,7 +15,7 @@
15
15
  bind:ref
16
16
  bind:value
17
17
  class={cn(
18
- "flex items-center gap-2 has-disabled:opacity-50 disabled:[&_input]:cursor-not-allowed",
18
+ "flex items-center gap-2 has-[:disabled]:opacity-50 [&_input]:disabled:cursor-not-allowed",
19
19
  className
20
20
  )}
21
21
  {...restProps}
@@ -1,3 +1,3 @@
1
- declare const InputOtp: import("svelte").Component<import("bits-ui").PinInputRootPropsWithoutHTML & import("bits-ui").Without<import("bits-ui").BitsPrimitiveInputAttributes, import("bits-ui").PinInputRootPropsWithoutHTML>, {}, "value" | "ref">;
1
+ declare const InputOtp: import("svelte").Component<import("bits-ui").PinInputRootPropsWithoutHTML & import("bits-ui").Without<import("bits-ui").BitsPrimitiveInputAttributes, import("bits-ui").PinInputRootPropsWithoutHTML>, {}, "ref" | "value">;
2
2
  type InputOtp = ReturnType<typeof InputOtp>;
3
3
  export default InputOtp;
@@ -20,7 +20,7 @@
20
20
  {sideOffset}
21
21
  {align}
22
22
  class={cn(
23
- "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-hidden",
23
+ "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",
24
24
  className
25
25
  )}
26
26
  {...restProps}
@@ -13,7 +13,7 @@
13
13
  <RadioGroupPrimitive.Item
14
14
  bind:ref
15
15
  class={cn(
16
- "border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square size-4 rounded-full border focus:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
16
+ "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",
17
17
  className
18
18
  )}
19
19
  {...restProps}
@@ -1,4 +1,4 @@
1
1
  import { RadioGroup as RadioGroupPrimitive } from "bits-ui";
2
- declare const RadioGroup: import("svelte").Component<RadioGroupPrimitive.RootProps, {}, "value" | "ref">;
2
+ declare const RadioGroup: import("svelte").Component<RadioGroupPrimitive.RootProps, {}, "ref" | "value">;
3
3
  type RadioGroup = ReturnType<typeof RadioGroup>;
4
4
  export default RadioGroup;
@@ -16,18 +16,18 @@
16
16
  bind:ref
17
17
  class={cn(
18
18
  buttonVariants({ variant: "ghost" }),
19
- "size-9 p-0 font-normal data-selected:opacity-100",
19
+ "size-9 p-0 font-normal data-[selected]:opacity-100",
20
20
  "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground",
21
21
  // Selection Start
22
- "data-selection-start:bg-primary data-selection-start:text-primary-foreground data-selection-start:hover:bg-primary data-selection-start:hover:text-primary-foreground data-selection-start:focus:bg-primary data-selection-start:focus:text-primary-foreground",
22
+ "data-[selection-start]:bg-primary data-[selection-start]:text-primary-foreground data-[selection-start]:hover:bg-primary data-[selection-start]:hover:text-primary-foreground data-[selection-start]:focus:bg-primary data-[selection-start]:focus:text-primary-foreground",
23
23
  // Selection End
24
- "data-selection-end:bg-primary data-selection-end:text-primary-foreground data-selection-end:hover:bg-primary data-selection-end:hover:text-primary-foreground data-selection-end:focus:bg-primary data-selection-end:focus:text-primary-foreground",
24
+ "data-[selection-end]:bg-primary data-[selection-end]:text-primary-foreground data-[selection-end]:hover:bg-primary data-[selection-end]:hover:text-primary-foreground data-[selection-end]:focus:bg-primary data-[selection-end]:focus:text-primary-foreground",
25
25
  // Outside months
26
- "data-outside-month:text-muted-foreground [&[data-outside-month][data-selected]]:bg-accent/50 [&[data-outside-month][data-selected]]:text-muted-foreground data-outside-month:pointer-events-none data-outside-month:opacity-50 [&[data-outside-month][data-selected]]:opacity-30",
26
+ "data-[outside-month]:text-muted-foreground [&[data-outside-month][data-selected]]:bg-accent/50 [&[data-outside-month][data-selected]]:text-muted-foreground data-[outside-month]:pointer-events-none data-[outside-month]:opacity-50 [&[data-outside-month][data-selected]]:opacity-30",
27
27
  // Disabled
28
- "data-disabled:text-muted-foreground data-disabled:opacity-50",
28
+ "data-[disabled]:text-muted-foreground data-[disabled]:opacity-50",
29
29
  // Unavailable
30
- "data-unavailable:text-destructive-foreground data-unavailable:line-through",
30
+ "data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through",
31
31
  className
32
32
  )}
33
33
  {...restProps}
@@ -1,5 +1,5 @@
1
1
  import { RangeCalendar as RangeCalendarPrimitive } from "bits-ui";
2
2
  import * as RangeCalendar from "./index.js";
3
- declare const RangeCalendar: import("svelte").Component<Omit<Omit<RangeCalendarPrimitive.RootProps, "child">, "children">, {}, "value" | "placeholder" | "ref">;
3
+ declare const RangeCalendar: import("svelte").Component<Omit<Omit<RangeCalendarPrimitive.RootProps, "child">, "children">, {}, "ref" | "value" | "placeholder">;
4
4
  type RangeCalendar = ReturnType<typeof RangeCalendar>;
5
5
  export default RangeCalendar;
@@ -6,6 +6,6 @@ import Trigger from "./select-trigger.svelte";
6
6
  import Separator from "./select-separator.svelte";
7
7
  import ScrollDownButton from "./select-scroll-down-button.svelte";
8
8
  import ScrollUpButton from "./select-scroll-up-button.svelte";
9
- declare const Root: import("svelte").Component<import("bits-ui").ComboboxRootPropsWithoutHTML, {}, "open" | "value">;
9
+ declare const Root: import("svelte").Component<import("bits-ui").ComboboxRootPropsWithoutHTML, {}, "value" | "open">;
10
10
  declare const Group: import("svelte").Component<SelectPrimitive.GroupProps, {}, "ref">;
11
11
  export { Root, Group, GroupHeading, Item, Content, Trigger, Separator, ScrollDownButton, ScrollUpButton, Root as Select, Group as SelectGroup, GroupHeading as SelectGroupHeading, Item as SelectItem, Content as SelectContent, Trigger as SelectTrigger, Separator as SelectSeparator, ScrollDownButton as SelectScrollDownButton, ScrollUpButton as SelectScrollUpButton };
@@ -17,7 +17,7 @@
17
17
  bind:ref
18
18
  {value}
19
19
  class={cn(
20
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",
20
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
21
21
  className
22
22
  )}
23
23
  {...restProps}
@@ -14,7 +14,7 @@
14
14
  <SelectPrimitive.Trigger
15
15
  bind:ref
16
16
  class={cn(
17
- "border-input bg-background ring-offset-background data-placeholder:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:outline-hidden focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
17
+ "border-input bg-background ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -27,7 +27,7 @@ get along, so we shut typescript up by casting `value` to `never`.
27
27
  {#each thumbs as thumb}
28
28
  <SliderPrimitive.Thumb
29
29
  index={thumb}
30
- class="border-primary bg-background ring-offset-background focus-visible:ring-ring block size-5 rounded-full border-2 transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
30
+ class="border-primary bg-background ring-offset-background focus-visible:ring-ring block size-5 rounded-full border-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
31
31
  />
32
32
  {/each}
33
33
  {/snippet}
@@ -1,4 +1,4 @@
1
1
  import { Slider as SliderPrimitive, type WithoutChildrenOrChild } from "bits-ui";
2
- declare const Slider: import("svelte").Component<WithoutChildrenOrChild<SliderPrimitive.RootProps>, {}, "value" | "ref">;
2
+ declare const Slider: import("svelte").Component<WithoutChildrenOrChild<SliderPrimitive.RootProps>, {}, "ref" | "value">;
3
3
  type Slider = ReturnType<typeof Slider>;
4
4
  export default Slider;
@@ -14,7 +14,7 @@
14
14
  bind:ref
15
15
  bind:checked
16
16
  class={cn(
17
- "focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
17
+ "focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
18
18
  className
19
19
  )}
20
20
  {...restProps}
@@ -2,5 +2,5 @@ import { Tabs as TabsPrimitive } from "bits-ui";
2
2
  import Content from "./tabs-content.svelte";
3
3
  import List from "./tabs-list.svelte";
4
4
  import Trigger from "./tabs-trigger.svelte";
5
- declare const Root: import("svelte").Component<TabsPrimitive.RootProps, {}, "value" | "ref">;
5
+ declare const Root: import("svelte").Component<TabsPrimitive.RootProps, {}, "ref" | "value">;
6
6
  export { Root, Content, List, Trigger, Root as Tabs, Content as TabsContent, List as TabsList, Trigger as TabsTrigger, };
@@ -12,7 +12,7 @@
12
12
  <TabsPrimitive.Content
13
13
  bind:ref
14
14
  class={cn(
15
- "ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2",
15
+ "ring-offset-background focus-visible:ring-ring mt-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
16
16
  className
17
17
  )}
18
18
  {...restProps}
@@ -12,7 +12,7 @@
12
12
  <TabsPrimitive.Trigger
13
13
  bind:ref
14
14
  class={cn(
15
- "ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-2xs",
15
+ "ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm",
16
16
  className
17
17
  )}
18
18
  {...restProps}
@@ -14,7 +14,7 @@
14
14
  <textarea
15
15
  bind:this={ref}
16
16
  class={cn(
17
- "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-sm focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
17
+ "border-input bg-background ring-offset-background placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[80px] w-full rounded-md border px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
18
18
  className
19
19
  )}
20
20
  bind:value
@@ -1,5 +1,5 @@
1
1
  import type { WithElementRef } from "bits-ui";
2
2
  import type { HTMLTextareaAttributes } from "svelte/elements";
3
- declare const Textarea: import("svelte").Component<Omit<WithElementRef<HTMLTextareaAttributes>, "children">, {}, "value" | "ref">;
3
+ declare const Textarea: import("svelte").Component<Omit<WithElementRef<HTMLTextareaAttributes>, "children">, {}, "ref" | "value">;
4
4
  type Textarea = ReturnType<typeof Textarea>;
5
5
  export default Textarea;
@@ -2,7 +2,7 @@
2
2
  import { type VariantProps, tv } from "tailwind-variants";
3
3
 
4
4
  export const toggleVariants = tv({
5
- base: "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
5
+ base: "ring-offset-background hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-accent data-[state=on]:text-accent-foreground inline-flex items-center justify-center gap-2 rounded-md 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
6
6
  variants: {
7
7
  variant: {
8
8
  default: "bg-transparent",