@cognite/aura 0.1.7 → 0.3.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 (232) hide show
  1. package/DESIGN.md +34 -92
  2. package/README.md +33 -0
  3. package/dist/colors.css +471 -214
  4. package/dist/components/index.d.ts +17 -33
  5. package/dist/components/index.js +315 -281
  6. package/dist/components/ui/core/accordion/accordion.d.ts +7 -7
  7. package/dist/components/ui/core/accordion/accordion.js +64 -62
  8. package/dist/components/ui/core/action-toolbar/action-toolbar.d.ts +41 -0
  9. package/dist/components/ui/core/action-toolbar/action-toolbar.js +176 -0
  10. package/dist/components/ui/core/alert/alert.d.ts +23 -12
  11. package/dist/components/ui/core/alert/alert.js +123 -120
  12. package/dist/components/ui/core/avatar/avatar.d.ts +12 -8
  13. package/dist/components/ui/core/avatar/avatar.js +10 -10
  14. package/dist/components/ui/core/badge/badge.d.ts +11 -8
  15. package/dist/components/ui/core/badge/badge.js +13 -13
  16. package/dist/components/ui/core/banner/banner.d.ts +18 -28
  17. package/dist/components/ui/core/banner/banner.js +6 -6
  18. package/dist/components/ui/core/breadcrumb/breadcrumb.d.ts +12 -0
  19. package/dist/components/ui/core/breadcrumb/breadcrumb.js +200 -0
  20. package/dist/components/ui/core/button/button.d.ts +8 -5
  21. package/dist/components/ui/core/button/button.js +22 -19
  22. package/dist/components/ui/core/button-group/button-group.d.ts +7 -6
  23. package/dist/components/ui/core/card/card.d.ts +18 -14
  24. package/dist/components/ui/core/card/card.js +131 -87
  25. package/dist/components/ui/core/chart/chart.d.ts +69 -0
  26. package/dist/components/ui/core/chart/chart.js +215 -0
  27. package/dist/components/ui/core/chart/index.d.ts +2 -0
  28. package/dist/components/ui/core/chart/index.js +8 -0
  29. package/dist/components/ui/core/checkbox/checkbox.d.ts +17 -0
  30. package/dist/components/ui/core/checkbox/checkbox.js +133 -0
  31. package/dist/components/ui/core/{badge/badge.metadata.d.ts → checkbox/checkbox.metadata.d.ts} +1 -1
  32. package/dist/components/ui/core/checkbox/checkbox.metadata.js +8 -0
  33. package/dist/components/ui/core/code-block/code-block.d.ts +6 -9
  34. package/dist/components/ui/core/code-block/code-block.js +52 -48
  35. package/dist/components/ui/core/collapsible/collapsible.d.ts +5 -3
  36. package/dist/components/ui/core/combobox/combobox.d.ts +2 -2
  37. package/dist/components/ui/core/command/command.d.ts +11 -78
  38. package/dist/components/ui/core/command/command.js +53 -52
  39. package/dist/components/ui/core/count/count.d.ts +9 -0
  40. package/dist/components/ui/core/count/count.js +32 -0
  41. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.d.ts +15 -0
  42. package/dist/components/ui/core/date-time-pickers/date-range-picker/date-range-picker.js +99 -0
  43. package/dist/components/ui/core/date-time-pickers/date-range-picker/index.d.ts +3 -0
  44. package/dist/components/ui/core/date-time-pickers/date-range-picker/types.d.ts +25 -0
  45. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.d.ts +4 -0
  46. package/dist/components/ui/core/date-time-pickers/date-range-picker/use-date-range-picker.js +82 -0
  47. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.d.ts +17 -0
  48. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/date-time-range-picker.js +190 -0
  49. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/index.d.ts +3 -0
  50. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/types.d.ts +42 -0
  51. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.d.ts +3 -0
  52. package/dist/components/ui/core/date-time-pickers/date-time-range-picker/use-date-time-range-picker.js +161 -0
  53. package/dist/components/ui/core/date-time-pickers/index.d.ts +6 -0
  54. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.d.ts +7 -0
  55. package/dist/components/ui/core/date-time-pickers/shared/am-pm-scroll/am-pm-scroll.js +57 -0
  56. package/dist/components/ui/core/date-time-pickers/shared/calendar/calendar.d.ts +13 -0
  57. package/dist/components/ui/core/date-time-pickers/shared/calendar/calendar.js +119 -0
  58. package/dist/components/ui/core/date-time-pickers/shared/calendar-header/calendar-header.d.ts +10 -0
  59. package/dist/components/ui/core/date-time-pickers/shared/calendar-header/calendar-header.js +93 -0
  60. package/dist/components/ui/core/date-time-pickers/shared/constants.d.ts +20 -0
  61. package/dist/components/ui/core/date-time-pickers/shared/constants.js +14 -0
  62. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.d.ts +19 -0
  63. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/date-time-input.js +99 -0
  64. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.d.ts +12 -0
  65. package/dist/components/ui/core/date-time-pickers/shared/date-time-input/range-input-display.js +68 -0
  66. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.d.ts +12 -0
  67. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-popover-state.js +40 -0
  68. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.d.ts +29 -0
  69. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-date-state.js +63 -0
  70. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.d.ts +8 -0
  71. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-range-step-manager.js +19 -0
  72. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.d.ts +17 -0
  73. package/dist/components/ui/core/date-time-pickers/shared/hooks/use-time-state.js +34 -0
  74. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.d.ts +8 -0
  75. package/dist/components/ui/core/date-time-pickers/shared/scroll-cell-classes.js +7 -0
  76. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.d.ts +13 -0
  77. package/dist/components/ui/core/date-time-pickers/shared/shortcuts-panel/shortcuts-panel.js +31 -0
  78. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.d.ts +10 -0
  79. package/dist/components/ui/core/date-time-pickers/shared/time-picker-scroll/time-picker-scroll.js +52 -0
  80. package/dist/components/ui/core/date-time-pickers/utils/calendar-utils.d.ts +48 -0
  81. package/dist/components/ui/core/date-time-pickers/utils/calendar-utils.js +52 -0
  82. package/dist/components/ui/core/date-time-pickers/utils/date-range-utils.d.ts +26 -0
  83. package/dist/components/ui/core/date-time-pickers/utils/format-utils.d.ts +37 -0
  84. package/dist/components/ui/core/date-time-pickers/utils/segment-utils.d.ts +34 -0
  85. package/dist/components/ui/core/date-time-pickers/utils/time-utils.d.ts +43 -0
  86. package/dist/components/ui/core/date-time-pickers/utils/time-utils.js +15 -0
  87. package/dist/components/ui/core/date-time-pickers/utils/time-validation.d.ts +23 -0
  88. package/dist/components/ui/core/dialog/dialog.d.ts +10 -10
  89. package/dist/components/ui/core/dialog/dialog.js +12 -3
  90. package/dist/components/ui/core/dropdown-menu/dropdown-menu.d.ts +24 -47
  91. package/dist/components/ui/core/dropdown-menu/dropdown-menu.js +125 -123
  92. package/dist/components/ui/core/empty-state/empty-state.context.d.ts +10 -0
  93. package/dist/components/ui/core/empty-state/empty-state.context.js +8 -0
  94. package/dist/components/ui/core/empty-state/empty-state.d.ts +18 -0
  95. package/dist/components/ui/core/empty-state/empty-state.js +139 -0
  96. package/dist/components/ui/core/helper-text/helper-text.d.ts +7 -5
  97. package/dist/components/ui/core/hover-card/hover-card.d.ts +5 -7
  98. package/dist/components/ui/core/hover-card/hover-card.js +26 -25
  99. package/dist/components/ui/core/inline-citation/inline-citation.d.ts +10 -10
  100. package/dist/components/ui/core/inline-citation/inline-citation.js +65 -57
  101. package/dist/components/ui/core/input/input.d.ts +2 -1
  102. package/dist/components/ui/core/input-group/input-group.d.ts +17 -13
  103. package/dist/components/ui/core/input-group/input-group.js +35 -36
  104. package/dist/components/ui/core/kbd/kbd.d.ts +4 -0
  105. package/dist/components/ui/core/kbd/kbd.js +36 -0
  106. package/dist/components/ui/core/label/label.d.ts +3 -2
  107. package/dist/components/ui/core/loader/loader.d.ts +11 -3
  108. package/dist/components/ui/core/loader/loader.js +106 -107
  109. package/dist/components/ui/core/message/message.d.ts +18 -17
  110. package/dist/components/ui/core/message/message.js +15 -13
  111. package/dist/components/ui/core/pagination/pagination-size-context.d.ts +5 -0
  112. package/dist/components/ui/core/pagination/pagination-size-context.js +6 -0
  113. package/dist/components/ui/core/pagination/pagination-teleport.d.ts +11 -0
  114. package/dist/components/ui/core/pagination/pagination-teleport.js +108 -0
  115. package/dist/components/ui/core/pagination/pagination-teleport.utils.d.ts +1 -0
  116. package/dist/components/ui/core/pagination/pagination-teleport.utils.js +7 -0
  117. package/dist/components/ui/core/pagination/pagination.d.ts +41 -0
  118. package/dist/components/ui/core/pagination/pagination.js +335 -0
  119. package/dist/components/ui/core/popover/popover.d.ts +12 -16
  120. package/dist/components/ui/core/popover/popover.js +52 -51
  121. package/dist/components/ui/core/progress/progress.d.ts +7 -4
  122. package/dist/components/ui/core/prompt-input/prompt-input.d.ts +36 -103
  123. package/dist/components/ui/core/prompt-input/prompt-input.js +193 -180
  124. package/dist/components/ui/core/radio-group/radio-group.d.ts +20 -0
  125. package/dist/components/ui/core/radio-group/radio-group.js +113 -0
  126. package/dist/components/ui/core/reasoning/reasoning.d.ts +5 -5
  127. package/dist/components/ui/core/reasoning/reasoning.js +1 -1
  128. package/dist/components/ui/core/scroll-area/scroll-area.d.ts +4 -2
  129. package/dist/components/ui/core/search/search.d.ts +10 -0
  130. package/dist/components/ui/core/search/search.js +99 -0
  131. package/dist/components/ui/core/segmented-control/segmented-control.d.ts +20 -0
  132. package/dist/components/ui/core/segmented-control/segmented-control.js +172 -0
  133. package/dist/components/ui/core/select/select.d.ts +13 -13
  134. package/dist/components/ui/core/select/select.js +13 -10
  135. package/dist/components/ui/core/separator/separator.d.ts +2 -4
  136. package/dist/components/ui/core/separator/separator.js +4 -5
  137. package/dist/components/ui/core/shimmer/shimmer.d.ts +3 -5
  138. package/dist/components/ui/core/shimmer/shimmer.js +25 -26
  139. package/dist/components/ui/core/skeleton/skeleton.d.ts +2 -1
  140. package/dist/components/ui/core/sonner-toast/sonner-toast.d.ts +4 -0
  141. package/dist/components/ui/core/sonner-toast/sonner-toast.js +48 -0
  142. package/dist/components/ui/core/sources/sources.d.ts +3 -3
  143. package/dist/components/ui/core/sources/sources.js +6 -1
  144. package/dist/components/ui/core/switch/switch.d.ts +11 -0
  145. package/dist/components/ui/core/{button/button.metadata.d.ts → switch/switch.metadata.d.ts} +1 -1
  146. package/dist/components/ui/core/tabs/tabs.d.ts +27 -0
  147. package/dist/components/ui/core/tabs/tabs.js +224 -0
  148. package/dist/components/ui/core/tabs/tabs.utils.d.ts +2 -0
  149. package/dist/components/ui/core/tabs/tabs.utils.js +9 -0
  150. package/dist/components/ui/core/textarea/textarea.d.ts +2 -1
  151. package/dist/components/ui/core/textarea/textarea.js +20 -18
  152. package/dist/components/ui/core/tool/tool.d.ts +7 -6
  153. package/dist/components/ui/core/tool/tool.js +48 -44
  154. package/dist/components/ui/core/tooltip/tooltip.d.ts +6 -5
  155. package/dist/components/ui/core/tooltip/tooltip.js +10 -8
  156. package/dist/components/ui/core/topbar/topbar.d.ts +28 -0
  157. package/dist/components/ui/core/topbar/topbar.js +190 -0
  158. package/dist/eslint/index.d.ts +2 -1
  159. package/dist/index.d.ts +1 -1
  160. package/dist/index.js +298 -273
  161. package/dist/lib/portal-container-context.d.ts +2 -1
  162. package/dist/lib/portal-container-context.js +1 -3
  163. package/dist/lib/utils.d.ts +11 -0
  164. package/dist/lib/utils.js +40 -29
  165. package/dist/styles.css +1 -1
  166. package/dist/styles.source.css +75 -8
  167. package/package.json +26 -5
  168. package/dist/components/ui/core/accordion/accordion.metadata.d.ts +0 -2
  169. package/dist/components/ui/core/accordion/accordion.metadata.js +0 -9
  170. package/dist/components/ui/core/alert/alert.metadata.d.ts +0 -2
  171. package/dist/components/ui/core/alert/alert.metadata.js +0 -9
  172. package/dist/components/ui/core/avatar/avatar.metadata.d.ts +0 -8
  173. package/dist/components/ui/core/avatar/avatar.metadata.js +0 -9
  174. package/dist/components/ui/core/badge/badge.metadata.js +0 -8
  175. package/dist/components/ui/core/banner/banner.metadata.d.ts +0 -2
  176. package/dist/components/ui/core/banner/banner.metadata.js +0 -9
  177. package/dist/components/ui/core/button/button.metadata.js +0 -9
  178. package/dist/components/ui/core/button-group/button-group.metadata.d.ts +0 -2
  179. package/dist/components/ui/core/button-group/button-group.metadata.js +0 -8
  180. package/dist/components/ui/core/card/card.metadata.d.ts +0 -8
  181. package/dist/components/ui/core/card/card.metadata.js +0 -9
  182. package/dist/components/ui/core/code-block/code-block.metadata.d.ts +0 -2
  183. package/dist/components/ui/core/code-block/code-block.metadata.js +0 -8
  184. package/dist/components/ui/core/collapsible/collapsible.metadata.d.ts +0 -2
  185. package/dist/components/ui/core/collapsible/collapsible.metadata.js +0 -9
  186. package/dist/components/ui/core/combobox/combobox.metadata.d.ts +0 -2
  187. package/dist/components/ui/core/command/command.metadata.d.ts +0 -2
  188. package/dist/components/ui/core/command/command.metadata.js +0 -9
  189. package/dist/components/ui/core/dialog/dialog.metadata.d.ts +0 -2
  190. package/dist/components/ui/core/dialog/dialog.metadata.js +0 -9
  191. package/dist/components/ui/core/dropdown-menu/dropdown-menu.metadata.d.ts +0 -2
  192. package/dist/components/ui/core/dropdown-menu/dropdown-menu.metadata.js +0 -9
  193. package/dist/components/ui/core/helper-text/helper-text.metadata.d.ts +0 -2
  194. package/dist/components/ui/core/helper-text/helper-text.metadata.js +0 -9
  195. package/dist/components/ui/core/hover-card/hover-card.metadata.d.ts +0 -2
  196. package/dist/components/ui/core/hover-card/hover-card.metadata.js +0 -8
  197. package/dist/components/ui/core/inline-citation/inline-citation.metadata.d.ts +0 -2
  198. package/dist/components/ui/core/inline-citation/inline-citation.metadata.js +0 -8
  199. package/dist/components/ui/core/input/input.metadata.d.ts +0 -2
  200. package/dist/components/ui/core/input/input.metadata.js +0 -9
  201. package/dist/components/ui/core/input-group/input-group.metadata.d.ts +0 -2
  202. package/dist/components/ui/core/input-group/input-group.metadata.js +0 -9
  203. package/dist/components/ui/core/label/label.metadata.d.ts +0 -2
  204. package/dist/components/ui/core/label/label.metadata.js +0 -9
  205. package/dist/components/ui/core/loader/loader.metadata.d.ts +0 -2
  206. package/dist/components/ui/core/loader/loader.metadata.js +0 -9
  207. package/dist/components/ui/core/message/message.metadata.d.ts +0 -2
  208. package/dist/components/ui/core/popover/popover.metadata.d.ts +0 -2
  209. package/dist/components/ui/core/popover/popover.metadata.js +0 -9
  210. package/dist/components/ui/core/progress/progress.metadata.d.ts +0 -2
  211. package/dist/components/ui/core/progress/progress.metadata.js +0 -9
  212. package/dist/components/ui/core/prompt-input/prompt-input.metadata.d.ts +0 -2
  213. package/dist/components/ui/core/prompt-input/prompt-input.metadata.js +0 -9
  214. package/dist/components/ui/core/reasoning/reasoning.metadata.d.ts +0 -2
  215. package/dist/components/ui/core/reasoning/reasoning.metadata.js +0 -8
  216. package/dist/components/ui/core/scroll-area/scroll-area.metadata.d.ts +0 -2
  217. package/dist/components/ui/core/scroll-area/scroll-area.metadata.js +0 -9
  218. package/dist/components/ui/core/select/select.metadata.d.ts +0 -2
  219. package/dist/components/ui/core/select/select.metadata.js +0 -9
  220. package/dist/components/ui/core/separator/separator.metadata.d.ts +0 -2
  221. package/dist/components/ui/core/separator/separator.metadata.js +0 -8
  222. package/dist/components/ui/core/shimmer/shimmer.metadata.d.ts +0 -2
  223. package/dist/components/ui/core/shimmer/shimmer.metadata.js +0 -9
  224. package/dist/components/ui/core/skeleton/skeleton.metadata.d.ts +0 -2
  225. package/dist/components/ui/core/skeleton/skeleton.metadata.js +0 -9
  226. package/dist/components/ui/core/sources/sources.metadata.d.ts +0 -2
  227. package/dist/components/ui/core/textarea/textarea.metadata.d.ts +0 -2
  228. package/dist/components/ui/core/textarea/textarea.metadata.js +0 -9
  229. package/dist/components/ui/core/tool/tool.metadata.d.ts +0 -2
  230. package/dist/components/ui/core/tool/tool.metadata.js +0 -8
  231. package/dist/components/ui/core/tooltip/tooltip.metadata.d.ts +0 -8
  232. package/dist/components/ui/core/tooltip/tooltip.metadata.js +0 -9
@@ -1,9 +1,9 @@
1
- import { ComponentProps } from 'react';
2
- declare const Reasoning: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
1
+ import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
2
+ declare const Reasoning: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
3
3
  type ReasoningHeaderProps = ComponentProps<'div'> & {
4
4
  title?: string;
5
5
  };
6
- declare const ReasoningHeader: import('react').ForwardRefExoticComponent<Omit<ReasoningHeaderProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
7
- declare const ReasoningContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
8
- declare const ReasoningItem: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
6
+ declare const ReasoningHeader: ForwardRefExoticComponent<Omit<ReasoningHeaderProps, 'ref'> & RefAttributes<HTMLDivElement>>;
7
+ declare const ReasoningContent: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
8
+ declare const ReasoningItem: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
9
9
  export { Reasoning, ReasoningContent, ReasoningHeader, ReasoningItem };
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
- import { createContext as g, forwardRef as s, useContext as c } from "react";
2
+ import { forwardRef as s, createContext as g, useContext as c } from "react";
3
3
  import { IconBrain as m } from "@tabler/icons-react";
4
4
  import { cn as i } from "../../../../lib/utils.js";
5
5
  const l = g(!0), p = () => c(l), b = s(
@@ -1,3 +1,5 @@
1
- declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ScrollAreaRootProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
2
- declare const ScrollBar: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ScrollAreaScrollbarProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
1
+ import { ForwardRefExoticComponent, RefAttributes } from 'react';
2
+ import { ScrollAreaRootProps, ScrollAreaScrollbarProps } from '@base-ui/react/scroll-area';
3
+ declare const ScrollArea: ForwardRefExoticComponent<Omit<ScrollAreaRootProps, 'ref'> & RefAttributes<HTMLDivElement>>;
4
+ declare const ScrollBar: ForwardRefExoticComponent<Omit<ScrollAreaScrollbarProps, 'ref'> & RefAttributes<HTMLDivElement>>;
3
5
  export { ScrollArea, ScrollBar };
@@ -0,0 +1,10 @@
1
+ import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
2
+ type SearchProps = Omit<ComponentProps<'input'>, 'type' | 'className'> & {
3
+ className?: string;
4
+ inputClassName?: string;
5
+ clearLabel?: string;
6
+ onClear?: () => void;
7
+ 'data-slot'?: never;
8
+ };
9
+ declare const Search: ForwardRefExoticComponent<Omit<SearchProps, 'ref'> & RefAttributes<HTMLInputElement | null>>;
10
+ export { Search };
@@ -0,0 +1,99 @@
1
+ import { jsx as t, jsxs as A } from "react/jsx-runtime";
2
+ import { forwardRef as D, useState as f, useRef as H, useImperativeHandle as R } from "react";
3
+ import { IconSearch as M, IconCircleXFilled as U } from "@tabler/icons-react";
4
+ import { cn as m } from "../../../../lib/utils.js";
5
+ import { InputGroup as W, InputGroupAddon as g, InputGroupInput as L, InputGroupButton as O } from "../input-group/input-group.js";
6
+ const s = (n) => typeof n == "string" ? n.length > 0 : typeof n == "number" ? Number.isFinite(n) : Array.isArray(n) ? n.length > 0 : !1, P = D(
7
+ ({
8
+ className: n,
9
+ inputClassName: I,
10
+ clearLabel: b = "Clear search",
11
+ onClear: i,
12
+ value: o,
13
+ defaultValue: c,
14
+ onChange: C,
15
+ onInput: w,
16
+ onFocus: F,
17
+ onBlur: N,
18
+ disabled: l,
19
+ readOnly: u,
20
+ ...y
21
+ }, T) => {
22
+ const [x, p] = f(!1), [E, d] = f(() => s(o ?? c)), a = H(null), r = o != null, k = r ? s(o) : E;
23
+ R(T, () => a.current, []);
24
+ const v = () => {
25
+ p(!0);
26
+ }, B = (e) => {
27
+ e.relatedTarget instanceof Node && e.currentTarget.contains(e.relatedTarget) || p(!1);
28
+ }, G = () => {
29
+ const e = a.current;
30
+ e != null && (i?.(), !r && e.value !== "" && (Object.getOwnPropertyDescriptor(
31
+ HTMLInputElement.prototype,
32
+ "value"
33
+ )?.set?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), e.dispatchEvent(new Event("change", { bubbles: !0 }))), e.focus());
34
+ }, S = (e) => {
35
+ r || d(s(e.currentTarget.value)), w?.(e);
36
+ }, j = (e) => {
37
+ r || d(s(e.currentTarget.value)), C?.(e);
38
+ }, z = !r || i != null, h = x && k && !l && !u && z;
39
+ return /* @__PURE__ */ t(
40
+ "div",
41
+ {
42
+ "data-slot": "search",
43
+ className: m("w-full cursor-text", n),
44
+ onFocusCapture: v,
45
+ onBlurCapture: B,
46
+ onClick: () => a.current?.focus(),
47
+ children: /* @__PURE__ */ A(W, { className: "w-full transition-none", children: [
48
+ /* @__PURE__ */ t(g, { align: "inline-start", children: /* @__PURE__ */ t(M, { className: "size-4", "aria-hidden": !0 }) }),
49
+ /* @__PURE__ */ t(
50
+ L,
51
+ {
52
+ ...y,
53
+ ref: a,
54
+ type: "search",
55
+ value: o,
56
+ defaultValue: c,
57
+ disabled: l,
58
+ readOnly: u,
59
+ onInput: S,
60
+ onChange: j,
61
+ onFocus: F,
62
+ onBlur: N,
63
+ className: m(
64
+ "placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none",
65
+ I
66
+ )
67
+ }
68
+ ),
69
+ /* @__PURE__ */ t(
70
+ g,
71
+ {
72
+ align: "inline-end",
73
+ "aria-hidden": h ? void 0 : !0,
74
+ className: h ? void 0 : "invisible pointer-events-none",
75
+ children: /* @__PURE__ */ t(
76
+ O,
77
+ {
78
+ type: "button",
79
+ variant: "ghost",
80
+ size: "icon-sm",
81
+ "aria-label": b,
82
+ onMouseDown: (e) => {
83
+ e.preventDefault();
84
+ },
85
+ onClick: G,
86
+ children: /* @__PURE__ */ t(U, { className: "size-4", "aria-hidden": !0 })
87
+ }
88
+ )
89
+ }
90
+ )
91
+ ] })
92
+ }
93
+ );
94
+ }
95
+ );
96
+ P.displayName = "Search";
97
+ export {
98
+ P as Search
99
+ };
@@ -0,0 +1,20 @@
1
+ import { ReactNode } from 'react';
2
+ import { Tabs as TabsPrimitive } from '@base-ui/react/tabs';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { ClassProp } from 'class-variance-authority/types';
5
+ declare function SegmentedControl({ className, ...props }: TabsPrimitive.Root.Props): ReactNode;
6
+ interface SegmentedControlListVariantProps {
7
+ size?: 'small' | 'default' | null;
8
+ }
9
+ declare const segmentedControlListVariants: (props?: (SegmentedControlListVariantProps & ClassProp) | undefined) => string;
10
+ type SegmentedControlListProps = TabsPrimitive.List.Props & VariantProps<typeof segmentedControlListVariants>;
11
+ declare function SegmentedControlList({ className, size, children, ...props }: SegmentedControlListProps): ReactNode;
12
+ interface SegmentedControlButtonVariantProps {
13
+ size?: 'small' | 'default' | null;
14
+ tabContent?: 'icon-label' | 'label-only' | 'icon-only' | null;
15
+ }
16
+ declare const segmentedControlButtonVariants: (props?: (SegmentedControlButtonVariantProps & ClassProp) | undefined) => string;
17
+ type SegmentedControlButtonProps = TabsPrimitive.Tab.Props & VariantProps<typeof segmentedControlButtonVariants>;
18
+ declare function SegmentedControlButton({ className, size, tabContent, ...props }: SegmentedControlButtonProps): ReactNode;
19
+ declare function SegmentedControlContent({ className, ...props }: TabsPrimitive.Panel.Props): ReactNode;
20
+ export { SegmentedControl, SegmentedControlButton, SegmentedControlContent, SegmentedControlList, segmentedControlButtonVariants, segmentedControlListVariants, };
@@ -0,0 +1,172 @@
1
+ import { jsx as n, jsxs as u } from "react/jsx-runtime";
2
+ import { useContext as m, createContext as f } from "react";
3
+ import { Tabs as a } from "@base-ui/react/tabs";
4
+ import { cva as l } from "class-variance-authority";
5
+ import { cn as i } from "../../../../lib/utils.js";
6
+ function N({
7
+ className: t,
8
+ ...e
9
+ }) {
10
+ return /* @__PURE__ */ n(
11
+ a.Root,
12
+ {
13
+ "data-slot": "segmented-control",
14
+ className: i("flex flex-col gap-2", t),
15
+ ...e
16
+ }
17
+ );
18
+ }
19
+ const g = l(
20
+ "bg-muted-background text-muted-foreground relative isolate inline-flex w-fit items-center justify-center gap-2 p-0.5",
21
+ {
22
+ variants: {
23
+ size: {
24
+ default: "h-9 rounded-lg",
25
+ small: "h-7 rounded-md"
26
+ }
27
+ },
28
+ defaultVariants: {
29
+ size: "default"
30
+ }
31
+ }
32
+ ), d = f(void 0);
33
+ function S({
34
+ className: t,
35
+ size: e,
36
+ children: o,
37
+ ...r
38
+ }) {
39
+ const s = e ?? "default";
40
+ return /* @__PURE__ */ n(
41
+ a.List,
42
+ {
43
+ "data-slot": "segmented-control-list",
44
+ className: i(g({ size: e }), t),
45
+ ...r,
46
+ children: /* @__PURE__ */ u(d.Provider, { value: s, children: [
47
+ /* @__PURE__ */ n(p, { size: s }),
48
+ o
49
+ ] })
50
+ }
51
+ );
52
+ }
53
+ const b = l(
54
+ "bg-background pointer-events-none absolute top-(--active-tab-top) left-(--active-tab-left) -z-0 h-(--active-tab-height) w-(--active-tab-width) motion-safe:transition-[top,left,width,height] motion-safe:duration-200 motion-safe:ease-out data-[activation-direction=none]:transition-none",
55
+ {
56
+ variants: {
57
+ size: {
58
+ default: "rounded-md",
59
+ small: "rounded-sm"
60
+ }
61
+ },
62
+ defaultVariants: {
63
+ size: "default"
64
+ }
65
+ }
66
+ );
67
+ function p({
68
+ className: t,
69
+ size: e,
70
+ ...o
71
+ }) {
72
+ return /* @__PURE__ */ n(
73
+ a.Indicator,
74
+ {
75
+ "data-slot": "segmented-control-indicator",
76
+ className: i(b({ size: e }), t),
77
+ ...o
78
+ }
79
+ );
80
+ }
81
+ const v = l(
82
+ "text-sm leading-4.5 tracking-normal font-medium relative z-10 inline-flex flex-1 items-center justify-center whitespace-nowrap text-muted-foreground dark:text-muted-foreground border border-transparent transition-[color,box-shadow] duration-200 ease-out focus-visible:border-ring focus-visible:ring focus-visible:ring-ring-shadow focus-visible:outline-1 focus-visible:outline-ring [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-4 data-disabled:pointer-events-none data-disabled:opacity-50 hover:text-foreground data-active:text-foreground data-active:hover:text-foreground",
83
+ {
84
+ variants: {
85
+ size: {
86
+ default: "rounded-md",
87
+ small: "rounded-sm"
88
+ },
89
+ tabContent: {
90
+ "icon-label": "",
91
+ "label-only": "",
92
+ "icon-only": "px-0"
93
+ }
94
+ },
95
+ compoundVariants: [
96
+ {
97
+ size: "default",
98
+ tabContent: "icon-label",
99
+ className: "h-8 gap-2 px-2 py-0"
100
+ },
101
+ {
102
+ size: "default",
103
+ tabContent: "label-only",
104
+ className: "h-8 gap-0 px-2 py-0"
105
+ },
106
+ {
107
+ size: "default",
108
+ tabContent: "icon-only",
109
+ className: "size-8 gap-0 py-0"
110
+ },
111
+ {
112
+ size: "small",
113
+ tabContent: "icon-label",
114
+ className: "h-6 gap-2 px-2 py-0"
115
+ },
116
+ {
117
+ size: "small",
118
+ tabContent: "label-only",
119
+ className: "h-6 gap-0 px-2 py-0"
120
+ },
121
+ {
122
+ size: "small",
123
+ tabContent: "icon-only",
124
+ className: "size-6 gap-0 py-0"
125
+ }
126
+ ],
127
+ defaultVariants: {
128
+ size: "default",
129
+ tabContent: "icon-label"
130
+ }
131
+ }
132
+ );
133
+ function w({
134
+ className: t,
135
+ size: e,
136
+ tabContent: o,
137
+ ...r
138
+ }) {
139
+ const s = m(d), c = e ?? s;
140
+ return /* @__PURE__ */ n(
141
+ a.Tab,
142
+ {
143
+ "data-slot": "segmented-control-trigger",
144
+ className: i(
145
+ v({ size: c, tabContent: o }),
146
+ t
147
+ ),
148
+ ...r
149
+ }
150
+ );
151
+ }
152
+ function V({
153
+ className: t,
154
+ ...e
155
+ }) {
156
+ return /* @__PURE__ */ n(
157
+ a.Panel,
158
+ {
159
+ "data-slot": "segmented-control-content",
160
+ className: i("flex-1 outline-none", t),
161
+ ...e
162
+ }
163
+ );
164
+ }
165
+ export {
166
+ N as SegmentedControl,
167
+ w as SegmentedControlButton,
168
+ V as SegmentedControlContent,
169
+ S as SegmentedControlList,
170
+ v as segmentedControlButtonVariants,
171
+ g as segmentedControlListVariants
172
+ };
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { Select as SelectPrimitive } from '@base-ui/react/select';
1
+ import { ForwardRefExoticComponent, RefAttributes, ReactNode } from 'react';
2
+ import { SelectTriggerProps, Select as SelectPrimitive } from '@base-ui/react/select';
3
3
  type SelectPropsBase = Omit<SelectPrimitive.Root.Props<string>, 'open' | 'defaultOpen' | 'onOpenChange' | 'value' | 'defaultValue' | 'onValueChange' | 'multiple'> & {
4
4
  open?: boolean;
5
5
  defaultOpen?: boolean;
@@ -19,26 +19,26 @@ type SelectPropsMultiple = SelectPropsBase & {
19
19
  };
20
20
  declare function Select(props: SelectPropsSingle): ReactNode;
21
21
  declare function Select(props: SelectPropsMultiple): ReactNode;
22
- declare function SelectGroup({ className, ...props }: SelectPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
22
+ declare function SelectGroup({ className, ...props }: SelectPrimitive.Group.Props): ReactNode;
23
23
  declare function SelectValue({ icon, ...props }: SelectPrimitive.Value.Props & {
24
24
  icon?: ReactNode;
25
- }): import("react/jsx-runtime").JSX.Element;
26
- declare const SelectTrigger: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').SelectTriggerProps & {
27
- size?: "sm" | "default";
25
+ }): ReactNode;
26
+ declare const SelectTrigger: ForwardRefExoticComponent<Omit<SelectTriggerProps & {
27
+ size?: 'sm' | 'default';
28
28
  errorMessage?: string;
29
- }, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
29
+ }, 'ref'> & RefAttributes<HTMLButtonElement>>;
30
30
  declare function SelectContent({ className, children, position: _position, align, alignOffset, side, sideOffset, ...props }: SelectPrimitive.Popup.Props & {
31
31
  position?: 'popper' | 'item-aligned';
32
32
  align?: SelectPrimitive.Positioner.Props['align'];
33
33
  alignOffset?: SelectPrimitive.Positioner.Props['alignOffset'];
34
34
  side?: SelectPrimitive.Positioner.Props['side'];
35
35
  sideOffset?: SelectPrimitive.Positioner.Props['sideOffset'];
36
- }): import("react/jsx-runtime").JSX.Element;
37
- declare function SelectLabel({ className, ...props }: SelectPrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
36
+ }): ReactNode;
37
+ declare function SelectLabel({ className, ...props }: SelectPrimitive.GroupLabel.Props): ReactNode;
38
38
  declare function SelectItem({ className, children, icon, ...props }: SelectPrimitive.Item.Props & {
39
39
  icon?: ReactNode;
40
- }): import("react/jsx-runtime").JSX.Element;
41
- declare function SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
42
- declare function SelectScrollUpButton({ className, ...props }: SelectPrimitive.ScrollUpArrow.Props): import("react/jsx-runtime").JSX.Element;
43
- declare function SelectScrollDownButton({ className, ...props }: SelectPrimitive.ScrollDownArrow.Props): import("react/jsx-runtime").JSX.Element;
40
+ }): ReactNode;
41
+ declare function SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Props): ReactNode;
42
+ declare function SelectScrollUpButton({ className, ...props }: SelectPrimitive.ScrollUpArrow.Props): ReactNode;
43
+ declare function SelectScrollDownButton({ className, ...props }: SelectPrimitive.ScrollDownArrow.Props): ReactNode;
44
44
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -1,12 +1,12 @@
1
- import { jsxs as u, Fragment as C, jsx as t } from "react/jsx-runtime";
2
- import { createContext as N, forwardRef as y, useId as z, useContext as I, useMemo as V } from "react";
1
+ import { jsx as t, jsxs as u, Fragment as C } from "react/jsx-runtime";
2
+ import { useMemo as N, forwardRef as y, useId as z, createContext as I, useContext as V } from "react";
3
3
  import { Select as o } from "@base-ui/react/select";
4
- import { IconChevronDown as h, IconExclamationCircle as k, IconCheck as _, IconChevronUp as O } from "@tabler/icons-react";
4
+ import { IconCheck as k, IconChevronDown as h, IconChevronUp as _, IconExclamationCircle as O } from "@tabler/icons-react";
5
5
  import { usePortalContainer as P } from "../../../../lib/portal-container-context.js";
6
6
  import { useControllableState as j } from "../../../../lib/use-controllable-state.js";
7
7
  import { cn as r, disabledState as T, invalidState as D, focusState as B, filledState as E, hoverState as G, formElementBase as L } from "../../../../lib/utils.js";
8
- const g = N(null), R = () => {
9
- const e = I(g);
8
+ const g = I(null), R = () => {
9
+ const e = V(g);
10
10
  if (!e)
11
11
  throw new Error("Select components must be used within Select");
12
12
  return e;
@@ -16,7 +16,7 @@ function Y(e) {
16
16
  prop: e.open,
17
17
  defaultProp: e.defaultOpen ?? !1,
18
18
  onChange: e.onOpenChange
19
- }), n = V(() => ({ isOpen: a ?? !1 }), [a]);
19
+ }), n = N(() => ({ isOpen: a ?? !1 }), [a]);
20
20
  if (e.multiple) {
21
21
  const {
22
22
  multiple: p,
@@ -57,7 +57,10 @@ function Y(e) {
57
57
  }
58
58
  ) });
59
59
  }
60
- function Z({ className: e, ...a }) {
60
+ function Z({
61
+ className: e,
62
+ ...a
63
+ }) {
61
64
  return /* @__PURE__ */ t(
62
65
  o.Group,
63
66
  {
@@ -126,7 +129,7 @@ const U = y(({ className: e, size: a = "default", children: l, errorMessage: n,
126
129
  id: d,
127
130
  className: "flex flex-row gap-1 justify-start items-center p-1",
128
131
  children: [
129
- /* @__PURE__ */ t(k, { className: "text-destructive-foreground text-sm size-4" }),
132
+ /* @__PURE__ */ t(O, { className: "text-destructive-foreground text-sm size-4" }),
130
133
  /* @__PURE__ */ t("span", { className: "text-destructive-foreground text-sm", children: n })
131
134
  ]
132
135
  }
@@ -207,7 +210,7 @@ function ae({
207
210
  /* @__PURE__ */ t(
208
211
  o.ItemIndicator,
209
212
  {
210
- render: /* @__PURE__ */ t("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(_, { className: "size-4 text-foreground" }) })
213
+ render: /* @__PURE__ */ t("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(k, { className: "size-4 text-foreground" }) })
211
214
  }
212
215
  ),
213
216
  l && /* @__PURE__ */ t("span", { className: "flex items-center gap-2 mr-1", children: l }),
@@ -242,7 +245,7 @@ function A({
242
245
  e
243
246
  ),
244
247
  ...a,
245
- children: /* @__PURE__ */ t(O, { className: "size-4" })
248
+ children: /* @__PURE__ */ t(_, { className: "size-4" })
246
249
  }
247
250
  );
248
251
  }
@@ -1,6 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
2
- declare function Separator({ className, orientation, ...props }: SeparatorPrimitive.Props): import("react/jsx-runtime").JSX.Element;
3
- declare namespace Separator {
4
- var displayName: string;
5
- }
3
+ declare function Separator({ className, orientation, ...props }: SeparatorPrimitive.Props): ReactNode;
6
4
  export { Separator };
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { Separator as i } from "@base-ui/react/separator";
3
- import { cn as e } from "../../../../lib/utils.js";
4
- function n({
3
+ import { cn as n } from "../../../../lib/utils.js";
4
+ function m({
5
5
  className: a,
6
6
  orientation: r = "horizontal",
7
7
  ...t
@@ -11,7 +11,7 @@ function n({
11
11
  {
12
12
  "data-slot": "separator",
13
13
  orientation: r,
14
- className: e(
14
+ className: n(
15
15
  "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
16
16
  a
17
17
  ),
@@ -19,7 +19,6 @@ function n({
19
19
  }
20
20
  );
21
21
  }
22
- n.displayName = "Separator";
23
22
  export {
24
- n as Separator
23
+ m as Separator
25
24
  };
@@ -1,3 +1,4 @@
1
+ import { MemoExoticComponent, ReactNode } from 'react';
1
2
  type TextShimmerProps = {
2
3
  children: string;
3
4
  as?: 'p' | 'span' | 'div' | 'h1' | 'h2' | 'h3';
@@ -6,9 +7,6 @@ type TextShimmerProps = {
6
7
  spread?: number;
7
8
  variant?: 'default' | 'nordic' | 'aurora' | 'dusk' | 'equinox' | 'summer' | 'spring' | 'fall';
8
9
  };
9
- declare function ShimmerComponent({ children, as: Component, className, duration, spread, variant, }: TextShimmerProps): import("react/jsx-runtime").JSX.Element;
10
- declare namespace ShimmerComponent {
11
- var displayName: string;
12
- }
13
- declare const MemoizedShimmer: import('react').MemoExoticComponent<typeof ShimmerComponent>;
10
+ declare function ShimmerComponent({ children, as: Component, className, duration, spread, variant, }: TextShimmerProps): ReactNode;
11
+ declare const MemoizedShimmer: MemoExoticComponent<typeof ShimmerComponent>;
14
12
  export { MemoizedShimmer as Shimmer };
@@ -1,8 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { memo as f, useMemo as s } from "react";
2
+ import { memo as h, useMemo as s } from "react";
3
3
  import { motion as a } from "framer-motion";
4
- import { cn as v } from "../../../../lib/utils.js";
5
- const S = {
4
+ import { cn as f } from "../../../../lib/utils.js";
5
+ const v = {
6
6
  nordic: "var(--gradient-nordic)",
7
7
  aurora: "var(--gradient-aurora)",
8
8
  dusk: "var(--gradient-dusk)",
@@ -11,42 +11,42 @@ const S = {
11
11
  spring: "var(--gradient-spring)",
12
12
  fall: "var(--gradient-fall)"
13
13
  };
14
- function m({
14
+ function S({
15
15
  children: n,
16
- as: d = "p",
17
- className: c,
18
- duration: u = 2,
19
- spread: i = 2,
16
+ as: m = "p",
17
+ className: d,
18
+ duration: c = 2,
19
+ spread: o = 2,
20
20
  variant: t = "default"
21
21
  }) {
22
- const p = s(
23
- () => (n?.length ?? 0) * i,
24
- [n, i]
25
- ), g = s(() => {
26
- const o = "linear-gradient(90deg, transparent calc(50% - var(--spread)), rgba(255, 255, 255, 0.4), transparent calc(50% + var(--spread)))";
27
- return t === "default" ? `${o}, linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))` : `${o}, ${S[t]}`;
28
- }, [t]), l = {
29
- "--spread": `${p}px`,
30
- backgroundImage: g,
22
+ const u = s(
23
+ () => (n?.length ?? 0) * o,
24
+ [n, o]
25
+ ), p = s(() => {
26
+ const i = "linear-gradient(90deg, transparent calc(50% - var(--spread)), rgba(255, 255, 255, 0.4), transparent calc(50% + var(--spread)))";
27
+ return t === "default" ? `${i}, linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))` : `${i}, ${v[t]}`;
28
+ }, [t]), g = {
29
+ "--spread": `${u}px`,
30
+ backgroundImage: p,
31
31
  backgroundSize: "250% 100%, 100% 100%"
32
- }, h = {
32
+ }, l = {
33
33
  repeat: Number.POSITIVE_INFINITY,
34
- duration: u,
34
+ duration: c,
35
35
  ease: "linear"
36
36
  }, r = {
37
37
  "data-slot": "shimmer",
38
38
  animate: {
39
39
  backgroundPosition: ["100% center, center", "0% center, center"]
40
40
  },
41
- className: v(
41
+ className: f(
42
42
  "relative inline-block bg-clip-text text-transparent rounded-md",
43
- c
43
+ d
44
44
  ),
45
- style: l,
46
- transition: h,
45
+ style: g,
46
+ transition: l,
47
47
  children: n
48
48
  };
49
- switch (d) {
49
+ switch (m) {
50
50
  case "span":
51
51
  return /* @__PURE__ */ e(a.span, { ...r });
52
52
  case "div":
@@ -61,8 +61,7 @@ function m({
61
61
  return /* @__PURE__ */ e(a.p, { ...r });
62
62
  }
63
63
  }
64
- m.displayName = "Shimmer";
65
- const b = f(m);
64
+ const b = h(S);
66
65
  b.displayName = "Shimmer";
67
66
  export {
68
67
  b as Shimmer
@@ -1,2 +1,3 @@
1
- declare const Skeleton: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
1
+ import { ForwardRefExoticComponent, RefAttributes, ComponentProps } from 'react';
2
+ declare const Skeleton: ForwardRefExoticComponent<ComponentProps<'div'> & RefAttributes<HTMLDivElement>>;
2
3
  export { Skeleton };
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ import { ToasterProps, toast } from 'sonner';
3
+ declare const Toaster: ({ ...props }: ToasterProps) => ReactNode;
4
+ export { Toaster, toast };
@@ -0,0 +1,48 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { IconLoader2 as o, IconAlertOctagonFilled as s, IconAlertTriangleFilled as a, IconInfoCircleFilled as i, IconCircleCheckFilled as l, IconX as d } from "@tabler/icons-react";
3
+ import { Toaster as c } from "sonner";
4
+ import { toast as k } from "sonner";
5
+ import { cn as r } from "../../../../lib/utils.js";
6
+ const g = {
7
+ "--normal-bg": "var(--raised-background)",
8
+ "--normal-text": "var(--foreground-fixed-light)",
9
+ "--normal-border": "transparent",
10
+ "--border-radius": "var(--radius-lg)"
11
+ }, p = ({ ...n }) => {
12
+ const t = "flex h-5 min-w-5 items-center justify-center rounded-md px-1";
13
+ return /* @__PURE__ */ e(
14
+ c,
15
+ {
16
+ "data-slot": "sonner-toast",
17
+ theme: "system",
18
+ className: "toaster group",
19
+ icons: {
20
+ close: /* @__PURE__ */ e(d, { className: "size-4 text-foreground-fixed-light" }),
21
+ success: /* @__PURE__ */ e("span", { className: r(t, "bg-success-background"), children: /* @__PURE__ */ e(l, { className: "size-3 text-success-foreground-on-success" }) }),
22
+ info: /* @__PURE__ */ e("span", { className: r(t, "bg-info-background"), children: /* @__PURE__ */ e(i, { className: "size-3 text-info-foreground-on-info" }) }),
23
+ warning: /* @__PURE__ */ e("span", { className: r(t, "bg-warning-background"), children: /* @__PURE__ */ e(a, { className: "size-3 text-warning-foreground-on-warning" }) }),
24
+ error: /* @__PURE__ */ e("span", { className: r(t, "bg-destructive-background"), children: /* @__PURE__ */ e(s, { className: "size-3 text-destructive-foreground-on-critical" }) }),
25
+ loading: /* @__PURE__ */ e(o, { className: "size-4 animate-spin" })
26
+ },
27
+ style: g,
28
+ toastOptions: {
29
+ unstyled: !0,
30
+ classNames: {
31
+ toast: "flex w-[384px] min-h-11 items-center gap-2 rounded-lg bg-raised-background p-3 shadow-md has-[[data-description]]:[&_[data-icon]]:hidden",
32
+ icon: "order-1 m-0 shrink-0 flex items-start",
33
+ content: "order-2 flex flex-1 basis-0 flex-col items-start gap-0.5",
34
+ title: "w-full self-stretch text-sm font-medium leading-[18px] tracking-normal text-foreground-fixed-light",
35
+ description: "w-full self-stretch text-sm font-normal leading-[18px] tracking-tight text-muted-foreground-fixed-light",
36
+ actionButton: "order-3 ml-auto inline-flex h-7 items-center justify-center gap-1.5 rounded-md bg-transparent px-2 text-sm font-medium leading-[18px] tracking-normal text-foreground-fixed-light transition-all hover:cursor-pointer",
37
+ cancelButton: "order-3 ml-auto inline-flex h-7 items-center justify-center gap-1.5 rounded-md bg-transparent px-2 text-sm font-medium leading-[18px] tracking-normal text-foreground-fixed-light transition-all hover:cursor-pointer",
38
+ closeButton: "order-4 inline-flex size-7 items-center justify-center rounded-md text-foreground-fixed-light transition-all hover:cursor-pointer hover:text-foreground-fixed-light hover:!bg-transparent"
39
+ }
40
+ },
41
+ ...n
42
+ }
43
+ );
44
+ };
45
+ export {
46
+ p as Toaster,
47
+ k as toast
48
+ };