@aircall/ds 0.15.0 → 0.17.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.
- package/dist/globals.css +1 -1
- package/dist/index.d.ts +259 -28
- package/dist/index.js +456 -75
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createContext, useCallback, useContext, useSyncExternalStore } from "re
|
|
|
3
3
|
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
4
4
|
import { clsx } from "clsx";
|
|
5
5
|
import { extendTailwindMerge } from "tailwind-merge";
|
|
6
|
-
import { ArrowDownToLine, ArrowLeft, ArrowRight, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlert, CircleAlertIcon, CircleCheck, FLAGS, FlagUs, Info, Loader2Icon, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Search, Smile, TriangleAlertIcon, XIcon } from "@aircall/react-icons";
|
|
6
|
+
import { ArrowDownToLine, ArrowLeft, ArrowRight, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlert, CircleAlertIcon, CircleCheck, FLAGS, FlagUs, Info, Loader2Icon, Minus, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Plus, Search, Smile, TriangleAlertIcon, XIcon } from "@aircall/react-icons";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Button as Button$1 } from "@base-ui/react/button";
|
|
9
9
|
import { cva } from "class-variance-authority";
|
|
@@ -32,6 +32,8 @@ import { Menu } from "@base-ui/react/menu";
|
|
|
32
32
|
import EmojiReactPicker, { Categories, EmojiStyle, SuggestionMode, Theme } from "emoji-picker-react";
|
|
33
33
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
34
34
|
import { ThemeProvider as ThemeProvider$1, useTheme, useTheme as useTheme$1 } from "next-themes";
|
|
35
|
+
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
36
|
+
import { NumberField } from "@base-ui/react/number-field";
|
|
35
37
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
36
38
|
import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
37
39
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
@@ -167,20 +169,21 @@ AccordionContent.displayName = "AccordionContent";
|
|
|
167
169
|
|
|
168
170
|
//#endregion
|
|
169
171
|
//#region src/components/button.tsx
|
|
170
|
-
const
|
|
172
|
+
const linkStyle = "text-primary underline underline-offset-4";
|
|
173
|
+
const buttonVariants = cva("group/button inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px active:not-aria-[haspopup]:opacity-60 disabled:pointer-events-auto disabled:opacity-50 disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
171
174
|
variants: {
|
|
172
175
|
variant: {
|
|
173
176
|
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
174
|
-
outline: "border-border
|
|
177
|
+
outline: "border-border text-foreground hover:bg-muted hover:text-accent-foreground aria-expanded:bg-muted aria-expanded:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
175
178
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
176
179
|
ghost: "hover:bg-muted hover:text-accent-foreground aria-expanded:bg-muted aria-expanded:text-accent-foreground dark:hover:bg-input/50",
|
|
177
180
|
destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
|
|
178
|
-
link:
|
|
181
|
+
link: linkStyle
|
|
179
182
|
},
|
|
180
183
|
size: {
|
|
181
184
|
default: "h-8 gap-1.5 px-2 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
182
185
|
sm: "h-6 gap-1.5 px-2 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
183
|
-
lg: "h-10 gap-1.5 px-4 [&_svg:not([class*='size-'])]:size-
|
|
186
|
+
lg: "h-10 gap-1.5 px-4 [&_svg:not([class*='size-'])]:size-5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
|
|
184
187
|
icon: "size-8",
|
|
185
188
|
"icon-sm": "size-6",
|
|
186
189
|
"icon-lg": "size-10 [&_svg:not([class*='size-'])]:size-6"
|
|
@@ -231,7 +234,9 @@ const de = {
|
|
|
231
234
|
"pagination.previous": "Zurück",
|
|
232
235
|
"pagination.next": "Weiter",
|
|
233
236
|
"actionBar.clearSelection": "Auswahl aufheben",
|
|
234
|
-
"actionBar.itemsSelected": "{{count}} Elemente ausgewählt."
|
|
237
|
+
"actionBar.itemsSelected": "{{count}} Elemente ausgewählt.",
|
|
238
|
+
"fieldLabel.required": "(erforderlich)",
|
|
239
|
+
"fieldLabel.optional": "(optional)"
|
|
235
240
|
};
|
|
236
241
|
var de_default = de;
|
|
237
242
|
|
|
@@ -256,7 +261,9 @@ const en = {
|
|
|
256
261
|
"pagination.previous": "Previous",
|
|
257
262
|
"pagination.next": "Next",
|
|
258
263
|
"actionBar.clearSelection": "Clear selection",
|
|
259
|
-
"actionBar.itemsSelected": "{{count}} items selected."
|
|
264
|
+
"actionBar.itemsSelected": "{{count}} items selected.",
|
|
265
|
+
"fieldLabel.required": "(required)",
|
|
266
|
+
"fieldLabel.optional": "(optional)"
|
|
260
267
|
};
|
|
261
268
|
var en_default = en;
|
|
262
269
|
|
|
@@ -281,7 +288,9 @@ const es = {
|
|
|
281
288
|
"pagination.previous": "Anterior",
|
|
282
289
|
"pagination.next": "Siguiente",
|
|
283
290
|
"actionBar.clearSelection": "Borrar selección",
|
|
284
|
-
"actionBar.itemsSelected": "{{count}} elementos seleccionados."
|
|
291
|
+
"actionBar.itemsSelected": "{{count}} elementos seleccionados.",
|
|
292
|
+
"fieldLabel.required": "(obligatorio)",
|
|
293
|
+
"fieldLabel.optional": "(opcional)"
|
|
285
294
|
};
|
|
286
295
|
var es_default = es;
|
|
287
296
|
|
|
@@ -306,7 +315,9 @@ const fr = {
|
|
|
306
315
|
"pagination.previous": "Précédent",
|
|
307
316
|
"pagination.next": "Suivant",
|
|
308
317
|
"actionBar.clearSelection": "Effacer la sélection",
|
|
309
|
-
"actionBar.itemsSelected": "{{count}} éléments sélectionnés."
|
|
318
|
+
"actionBar.itemsSelected": "{{count}} éléments sélectionnés.",
|
|
319
|
+
"fieldLabel.required": "(obligatoire)",
|
|
320
|
+
"fieldLabel.optional": "(facultatif)"
|
|
310
321
|
};
|
|
311
322
|
var fr_default = fr;
|
|
312
323
|
|
|
@@ -331,7 +342,9 @@ const it = {
|
|
|
331
342
|
"pagination.previous": "Precedente",
|
|
332
343
|
"pagination.next": "Successivo",
|
|
333
344
|
"actionBar.clearSelection": "Cancella selezione",
|
|
334
|
-
"actionBar.itemsSelected": "{{count}} elementi selezionati."
|
|
345
|
+
"actionBar.itemsSelected": "{{count}} elementi selezionati.",
|
|
346
|
+
"fieldLabel.required": "(obbligatorio)",
|
|
347
|
+
"fieldLabel.optional": "(facoltativo)"
|
|
335
348
|
};
|
|
336
349
|
var it_default = it;
|
|
337
350
|
|
|
@@ -724,21 +737,24 @@ CounterBadge.displayName = "CounterBadge";
|
|
|
724
737
|
|
|
725
738
|
//#endregion
|
|
726
739
|
//#region src/components/badge.tsx
|
|
727
|
-
const
|
|
728
|
-
const
|
|
740
|
+
const OVERLAY_DARK = "bg-[linear-gradient(0deg,var(--badge-film-10)_0%,var(--badge-film-10)_100%)]";
|
|
741
|
+
const OVERLAY_MEDIUM_DARK = "bg-[linear-gradient(0deg,var(--badge-film-40)_0%,var(--badge-film-40)_100%)]";
|
|
742
|
+
const OVERLAY_MEDIUM_LIGHT = "bg-[linear-gradient(0deg,var(--badge-film-60)_0%,var(--badge-film-60)_100%)]";
|
|
743
|
+
const OVERLAY_LIGHT = "bg-[linear-gradient(0deg,var(--badge-film-80)_0%,var(--badge-film-80)_100%)]";
|
|
744
|
+
const badgeVariants = cva("group/badge inline-flex w-fit max-w-36 shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md font-medium whitespace-nowrap transition-all focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:shrink-0 [&>svg]:pointer-events-none", {
|
|
729
745
|
variants: {
|
|
730
746
|
size: {
|
|
731
747
|
default: "h-5 px-2 py-0.5 text-xs [&>svg]:size-3!",
|
|
732
748
|
lg: "h-6 px-2 text-xs [&>svg]:size-4!"
|
|
733
749
|
},
|
|
734
750
|
color: {
|
|
735
|
-
charcoal:
|
|
736
|
-
red:
|
|
737
|
-
green:
|
|
738
|
-
blue:
|
|
739
|
-
purple:
|
|
740
|
-
yellow:
|
|
741
|
-
pink:
|
|
751
|
+
charcoal: "",
|
|
752
|
+
red: "",
|
|
753
|
+
green: "",
|
|
754
|
+
blue: "",
|
|
755
|
+
purple: "",
|
|
756
|
+
yellow: "",
|
|
757
|
+
pink: ""
|
|
742
758
|
},
|
|
743
759
|
tone: {
|
|
744
760
|
dark: "",
|
|
@@ -751,148 +767,148 @@ const badgeVariants = cva("group/badge inline-flex w-fit max-w-36 shrink-0 items
|
|
|
751
767
|
{
|
|
752
768
|
color: "charcoal",
|
|
753
769
|
tone: "dark",
|
|
754
|
-
class: "bg-
|
|
770
|
+
class: "bg-secondary text-secondary-foreground"
|
|
755
771
|
},
|
|
756
772
|
{
|
|
757
773
|
color: "charcoal",
|
|
758
774
|
tone: "medium-dark",
|
|
759
|
-
class:
|
|
775
|
+
class: `bg-charcoal-400 text-foreground ${OVERLAY_MEDIUM_LIGHT}`
|
|
760
776
|
},
|
|
761
777
|
{
|
|
762
778
|
color: "charcoal",
|
|
763
779
|
tone: "medium-light",
|
|
764
|
-
class:
|
|
780
|
+
class: `bg-charcoal-400 text-foreground ${OVERLAY_LIGHT}`
|
|
765
781
|
},
|
|
766
782
|
{
|
|
767
783
|
color: "charcoal",
|
|
768
784
|
tone: "light",
|
|
769
|
-
class: "bg-
|
|
785
|
+
class: "bg-background text-foreground outline outline-1 -outline-offset-1 outline-border"
|
|
770
786
|
},
|
|
771
787
|
{
|
|
772
788
|
color: "red",
|
|
773
789
|
tone: "dark",
|
|
774
|
-
class:
|
|
790
|
+
class: `bg-red-400 text-black ${OVERLAY_DARK}`
|
|
775
791
|
},
|
|
776
792
|
{
|
|
777
793
|
color: "red",
|
|
778
794
|
tone: "medium-dark",
|
|
779
|
-
class:
|
|
795
|
+
class: `bg-red-400 text-foreground ${OVERLAY_MEDIUM_DARK}`
|
|
780
796
|
},
|
|
781
797
|
{
|
|
782
798
|
color: "red",
|
|
783
799
|
tone: "medium-light",
|
|
784
|
-
class:
|
|
800
|
+
class: `bg-red-400 text-foreground ${OVERLAY_MEDIUM_LIGHT}`
|
|
785
801
|
},
|
|
786
802
|
{
|
|
787
803
|
color: "red",
|
|
788
804
|
tone: "light",
|
|
789
|
-
class:
|
|
805
|
+
class: `bg-red-400 text-foreground ${OVERLAY_LIGHT}`
|
|
790
806
|
},
|
|
791
807
|
{
|
|
792
808
|
color: "green",
|
|
793
809
|
tone: "dark",
|
|
794
|
-
class:
|
|
810
|
+
class: `bg-green-400 text-black ${OVERLAY_DARK}`
|
|
795
811
|
},
|
|
796
812
|
{
|
|
797
813
|
color: "green",
|
|
798
814
|
tone: "medium-dark",
|
|
799
|
-
class:
|
|
815
|
+
class: `bg-green-400 text-foreground ${OVERLAY_MEDIUM_DARK}`
|
|
800
816
|
},
|
|
801
817
|
{
|
|
802
818
|
color: "green",
|
|
803
819
|
tone: "medium-light",
|
|
804
|
-
class:
|
|
820
|
+
class: `bg-green-400 text-foreground ${OVERLAY_MEDIUM_LIGHT}`
|
|
805
821
|
},
|
|
806
822
|
{
|
|
807
823
|
color: "green",
|
|
808
824
|
tone: "light",
|
|
809
|
-
class:
|
|
825
|
+
class: `bg-green-400 text-foreground ${OVERLAY_LIGHT}`
|
|
810
826
|
},
|
|
811
827
|
{
|
|
812
828
|
color: "blue",
|
|
813
829
|
tone: "dark",
|
|
814
|
-
class:
|
|
830
|
+
class: `bg-blue-400 text-black ${OVERLAY_DARK}`
|
|
815
831
|
},
|
|
816
832
|
{
|
|
817
833
|
color: "blue",
|
|
818
834
|
tone: "medium-dark",
|
|
819
|
-
class:
|
|
835
|
+
class: `bg-blue-400 text-foreground ${OVERLAY_MEDIUM_DARK}`
|
|
820
836
|
},
|
|
821
837
|
{
|
|
822
838
|
color: "blue",
|
|
823
839
|
tone: "medium-light",
|
|
824
|
-
class:
|
|
840
|
+
class: `bg-blue-400 text-foreground ${OVERLAY_MEDIUM_LIGHT}`
|
|
825
841
|
},
|
|
826
842
|
{
|
|
827
843
|
color: "blue",
|
|
828
844
|
tone: "light",
|
|
829
|
-
class:
|
|
845
|
+
class: `bg-blue-400 text-foreground ${OVERLAY_LIGHT}`
|
|
830
846
|
},
|
|
831
847
|
{
|
|
832
848
|
color: "purple",
|
|
833
849
|
tone: "dark",
|
|
834
|
-
class:
|
|
850
|
+
class: `bg-purple-400 text-black ${OVERLAY_DARK}`
|
|
835
851
|
},
|
|
836
852
|
{
|
|
837
853
|
color: "purple",
|
|
838
854
|
tone: "medium-dark",
|
|
839
|
-
class:
|
|
855
|
+
class: `bg-purple-400 text-foreground ${OVERLAY_MEDIUM_DARK}`
|
|
840
856
|
},
|
|
841
857
|
{
|
|
842
858
|
color: "purple",
|
|
843
859
|
tone: "medium-light",
|
|
844
|
-
class:
|
|
860
|
+
class: `bg-purple-400 text-foreground ${OVERLAY_MEDIUM_LIGHT}`
|
|
845
861
|
},
|
|
846
862
|
{
|
|
847
863
|
color: "purple",
|
|
848
864
|
tone: "light",
|
|
849
|
-
class:
|
|
865
|
+
class: `bg-purple-400 text-foreground ${OVERLAY_LIGHT}`
|
|
850
866
|
},
|
|
851
867
|
{
|
|
852
868
|
color: "yellow",
|
|
853
869
|
tone: "dark",
|
|
854
|
-
class:
|
|
870
|
+
class: `bg-yellow-300 text-black ${OVERLAY_DARK}`
|
|
855
871
|
},
|
|
856
872
|
{
|
|
857
873
|
color: "yellow",
|
|
858
874
|
tone: "medium-dark",
|
|
859
|
-
class:
|
|
875
|
+
class: `bg-yellow-300 text-foreground ${OVERLAY_MEDIUM_DARK}`
|
|
860
876
|
},
|
|
861
877
|
{
|
|
862
878
|
color: "yellow",
|
|
863
879
|
tone: "medium-light",
|
|
864
|
-
class:
|
|
880
|
+
class: `bg-yellow-300 text-foreground ${OVERLAY_MEDIUM_LIGHT}`
|
|
865
881
|
},
|
|
866
882
|
{
|
|
867
883
|
color: "yellow",
|
|
868
884
|
tone: "light",
|
|
869
|
-
class:
|
|
885
|
+
class: `bg-yellow-300 text-foreground ${OVERLAY_LIGHT}`
|
|
870
886
|
},
|
|
871
887
|
{
|
|
872
888
|
color: "pink",
|
|
873
889
|
tone: "dark",
|
|
874
|
-
class:
|
|
890
|
+
class: `bg-pink-400 text-black ${OVERLAY_DARK}`
|
|
875
891
|
},
|
|
876
892
|
{
|
|
877
893
|
color: "pink",
|
|
878
894
|
tone: "medium-dark",
|
|
879
|
-
class:
|
|
895
|
+
class: `bg-pink-400 text-foreground ${OVERLAY_MEDIUM_DARK}`
|
|
880
896
|
},
|
|
881
897
|
{
|
|
882
898
|
color: "pink",
|
|
883
899
|
tone: "medium-light",
|
|
884
|
-
class:
|
|
900
|
+
class: `bg-pink-400 text-foreground ${OVERLAY_MEDIUM_LIGHT}`
|
|
885
901
|
},
|
|
886
902
|
{
|
|
887
903
|
color: "pink",
|
|
888
904
|
tone: "light",
|
|
889
|
-
class:
|
|
905
|
+
class: `bg-pink-400 text-foreground ${OVERLAY_LIGHT}`
|
|
890
906
|
}
|
|
891
907
|
],
|
|
892
908
|
defaultVariants: {
|
|
893
909
|
size: "default",
|
|
894
910
|
color: "charcoal",
|
|
895
|
-
tone: "
|
|
911
|
+
tone: "dark"
|
|
896
912
|
}
|
|
897
913
|
});
|
|
898
914
|
/**
|
|
@@ -1602,7 +1618,7 @@ const Checkbox = React.forwardRef((componentProps, forwardRef) => {
|
|
|
1602
1618
|
return /* @__PURE__ */ jsx(Checkbox$1.Root, {
|
|
1603
1619
|
ref: forwardRef,
|
|
1604
1620
|
"data-slot": "checkbox",
|
|
1605
|
-
className: cn("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-[color,box-shadow,opacity] outline-none active:opacity-60 group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 aria-invalid:border-destructive focus-visible:aria-invalid:ring-3 focus-visible:aria-invalid:ring-destructive/20 hover:aria-invalid:data-unchecked:bg-destructive-background focus-visible:aria-invalid:data-unchecked:bg-destructive-background dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:focus-visible:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground data-indeterminate:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground aria-invalid:data-checked:border-destructive aria-invalid:data-checked:bg-destructive aria-invalid:data-indeterminate:border-destructive aria-invalid:data-indeterminate:bg-destructive dark:data-checked:bg-primary dark:data-indeterminate:bg-primary", className),
|
|
1621
|
+
className: cn("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-[color,box-shadow,opacity] outline-none active:opacity-60 group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 aria-invalid:border-destructive focus-visible:aria-invalid:ring-3 focus-visible:aria-invalid:ring-destructive/20 hover:aria-invalid:data-unchecked:bg-destructive-background focus-visible:aria-invalid:data-unchecked:bg-destructive-background bg-background dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:focus-visible:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground data-indeterminate:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground aria-invalid:data-checked:border-destructive aria-invalid:data-checked:bg-destructive aria-invalid:data-indeterminate:border-destructive aria-invalid:data-indeterminate:bg-destructive dark:data-checked:bg-primary dark:data-indeterminate:bg-primary", className),
|
|
1606
1622
|
...props,
|
|
1607
1623
|
children: /* @__PURE__ */ jsxs(Checkbox$1.Indicator, {
|
|
1608
1624
|
"data-slot": "checkbox-indicator",
|
|
@@ -1636,37 +1652,37 @@ const chipGlowVariants = cva("", {
|
|
|
1636
1652
|
{
|
|
1637
1653
|
color: "charcoal",
|
|
1638
1654
|
glow: true,
|
|
1639
|
-
class: "
|
|
1655
|
+
class: "outline outline-1 -outline-offset-1 outline-charcoal-300 [--badge-glow:var(--color-charcoal-700)]"
|
|
1640
1656
|
},
|
|
1641
1657
|
{
|
|
1642
1658
|
color: "red",
|
|
1643
1659
|
glow: true,
|
|
1644
|
-
class: "
|
|
1660
|
+
class: "outline outline-1 -outline-offset-1 outline-red-300 [--badge-glow:var(--color-red-500)]"
|
|
1645
1661
|
},
|
|
1646
1662
|
{
|
|
1647
1663
|
color: "green",
|
|
1648
1664
|
glow: true,
|
|
1649
|
-
class: "
|
|
1665
|
+
class: "outline outline-1 -outline-offset-1 outline-green-300 [--badge-glow:var(--color-green-500)]"
|
|
1650
1666
|
},
|
|
1651
1667
|
{
|
|
1652
1668
|
color: "blue",
|
|
1653
1669
|
glow: true,
|
|
1654
|
-
class: "
|
|
1670
|
+
class: "outline outline-1 -outline-offset-1 outline-blue-300 [--badge-glow:var(--color-blue-500)]"
|
|
1655
1671
|
},
|
|
1656
1672
|
{
|
|
1657
1673
|
color: "purple",
|
|
1658
1674
|
glow: true,
|
|
1659
|
-
class: "
|
|
1675
|
+
class: "outline outline-1 -outline-offset-1 outline-purple-300 [--badge-glow:var(--color-purple-500)]"
|
|
1660
1676
|
},
|
|
1661
1677
|
{
|
|
1662
1678
|
color: "yellow",
|
|
1663
1679
|
glow: true,
|
|
1664
|
-
class: "
|
|
1680
|
+
class: "outline outline-1 -outline-offset-1 outline-yellow-200 [--badge-glow:var(--color-yellow-400)]"
|
|
1665
1681
|
},
|
|
1666
1682
|
{
|
|
1667
1683
|
color: "pink",
|
|
1668
1684
|
glow: true,
|
|
1669
|
-
class: "
|
|
1685
|
+
class: "outline outline-1 -outline-offset-1 outline-pink-300 [--badge-glow:var(--color-pink-500)]"
|
|
1670
1686
|
}
|
|
1671
1687
|
],
|
|
1672
1688
|
defaultVariants: {
|
|
@@ -1687,7 +1703,8 @@ const ChipRemove = React.forwardRef((componentProps, forwardRef) => {
|
|
|
1687
1703
|
variant: "ghost",
|
|
1688
1704
|
size: "icon-sm",
|
|
1689
1705
|
"data-slot": "chip-remove",
|
|
1690
|
-
className: cn("-ml-1 bg-transparent hover:bg-transparent dark:hover:bg-transparent text-inherit hover:text-inherit opacity-
|
|
1706
|
+
className: cn("-ml-1 bg-transparent hover:bg-transparent dark:hover:bg-transparent text-inherit hover:text-inherit opacity-70 hover:opacity-100", className),
|
|
1707
|
+
tabIndex: -1,
|
|
1691
1708
|
...props,
|
|
1692
1709
|
children: children ?? /* @__PURE__ */ jsx(XIcon, { className: "pointer-events-none size-3.5" })
|
|
1693
1710
|
});
|
|
@@ -1700,7 +1717,7 @@ ChipRemove.displayName = "ChipRemove";
|
|
|
1700
1717
|
* must drive Base UI's selection state, see `ComboboxChip`.
|
|
1701
1718
|
*/
|
|
1702
1719
|
const Chip = React.forwardRef((componentProps, forwardRef) => {
|
|
1703
|
-
const { className, children, color, tone, legacyColor, glow, ...props } = componentProps;
|
|
1720
|
+
const { className, children, color, tone = "medium-light", legacyColor, glow, ...props } = componentProps;
|
|
1704
1721
|
const glowColor = legacyColor ? resolveTagColor(legacyColor).color : color;
|
|
1705
1722
|
return /* @__PURE__ */ jsx(Badge, {
|
|
1706
1723
|
ref: forwardRef,
|
|
@@ -1854,7 +1871,7 @@ CollapsibleContent.displayName = "CollapsibleContent";
|
|
|
1854
1871
|
|
|
1855
1872
|
//#endregion
|
|
1856
1873
|
//#region src/components/input.tsx
|
|
1857
|
-
const inputVariants = cva("text-foreground file:text-foreground placeholder:text-muted-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-md border bg-
|
|
1874
|
+
const inputVariants = cva("text-foreground file:text-foreground placeholder:text-muted-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-md border bg-background px-3 py-2 text-base transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium hover:border-ring hover:aria-invalid:border-destructive disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 md:text-sm focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40", { variants: { block: { true: "w-full" } } });
|
|
1858
1875
|
const Input = React.forwardRef((componentProps, forwardRef) => {
|
|
1859
1876
|
const { className, type, block, ...props } = componentProps;
|
|
1860
1877
|
return /* @__PURE__ */ jsx("input", {
|
|
@@ -1877,7 +1894,7 @@ const Textarea = React.forwardRef((componentProps, forwardRef) => {
|
|
|
1877
1894
|
return /* @__PURE__ */ jsx("textarea", {
|
|
1878
1895
|
ref: forwardRef,
|
|
1879
1896
|
"data-slot": "textarea",
|
|
1880
|
-
className: cn("border-input placeholder:text-muted-foreground hover:border-ring hover:aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-
|
|
1897
|
+
className: cn("border-input text-foreground placeholder:text-muted-foreground hover:border-ring hover:aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-background px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 md:text-sm", className),
|
|
1881
1898
|
...props
|
|
1882
1899
|
});
|
|
1883
1900
|
});
|
|
@@ -1885,13 +1902,20 @@ Textarea.displayName = "Textarea";
|
|
|
1885
1902
|
|
|
1886
1903
|
//#endregion
|
|
1887
1904
|
//#region src/components/input-group.tsx
|
|
1905
|
+
/**
|
|
1906
|
+
* The bordered flex-row shell shared by `InputGroup` and `NumericInput`.
|
|
1907
|
+
* Owns the border, height, hover/focus ring, disabled fade, error halo, and the
|
|
1908
|
+
* affix-driven input padding adjustments. Exported so `NumericInput` renders an
|
|
1909
|
+
* identical container without nesting inside `InputGroup`.
|
|
1910
|
+
*/
|
|
1911
|
+
const inputGroupShellClassName = cn("group/input-group bg-background border-input dark:bg-input/30 relative flex h-10 w-full items-center rounded-md border transition-[color,box-shadow] outline-none has-[>textarea]:h-auto", "not-has-[input:disabled]:not-has-[textarea:disabled]:not-has-[[data-slot][aria-invalid=true]]:hover:border-ring", "has-[input:disabled]:bg-input/50 has-[textarea:disabled]:bg-input/50 has-[input:disabled]:opacity-50 has-[textarea:disabled]:opacity-50 dark:has-[input:disabled]:bg-input/80 dark:has-[textarea:disabled]:bg-input/80", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-3", "has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]:focus-visible]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]:focus-visible]:ring-destructive/40");
|
|
1888
1912
|
const InputGroup = React.forwardRef((componentProps, forwardRef) => {
|
|
1889
1913
|
const { className, ...props } = componentProps;
|
|
1890
1914
|
return /* @__PURE__ */ jsx("div", {
|
|
1891
1915
|
ref: forwardRef,
|
|
1892
1916
|
"data-slot": "input-group",
|
|
1893
1917
|
role: "group",
|
|
1894
|
-
className: cn(
|
|
1918
|
+
className: cn(inputGroupShellClassName, className),
|
|
1895
1919
|
...props
|
|
1896
1920
|
});
|
|
1897
1921
|
});
|
|
@@ -2431,7 +2455,7 @@ const Table = React.forwardRef((componentProps, forwardRef) => {
|
|
|
2431
2455
|
children: /* @__PURE__ */ jsx("table", {
|
|
2432
2456
|
ref: forwardRef,
|
|
2433
2457
|
"data-slot": "table",
|
|
2434
|
-
className: cn("w-full caption-bottom text-sm text-foreground [&_tbody_tr:last-child]:border-b-0", className),
|
|
2458
|
+
className: cn("w-full caption-bottom text-sm text-foreground bg-background [&_tbody_tr:last-child]:border-b-0", className),
|
|
2435
2459
|
...props
|
|
2436
2460
|
})
|
|
2437
2461
|
});
|
|
@@ -2442,7 +2466,7 @@ const TableHeader = React.forwardRef((componentProps, forwardRef) => {
|
|
|
2442
2466
|
return /* @__PURE__ */ jsx("thead", {
|
|
2443
2467
|
ref: forwardRef,
|
|
2444
2468
|
"data-slot": "table-header",
|
|
2445
|
-
className: cn("[&_tr]:border-b [&_tr]:hover:bg-transparent", className),
|
|
2469
|
+
className: cn("bg-background [&_tr]:border-b [&_tr]:hover:bg-transparent", className),
|
|
2446
2470
|
...props
|
|
2447
2471
|
});
|
|
2448
2472
|
});
|
|
@@ -2452,7 +2476,7 @@ const TableBody = React.forwardRef((componentProps, forwardRef) => {
|
|
|
2452
2476
|
return /* @__PURE__ */ jsx("tbody", {
|
|
2453
2477
|
ref: forwardRef,
|
|
2454
2478
|
"data-slot": "table-body",
|
|
2455
|
-
className: cn("[&_tr:last-child]:border-0", className),
|
|
2479
|
+
className: cn("bg-background [&_tr:last-child]:border-0", className),
|
|
2456
2480
|
...props
|
|
2457
2481
|
});
|
|
2458
2482
|
});
|
|
@@ -2824,7 +2848,7 @@ function TreeItem({ item, className, children, onActivate, onClick: userOnClick,
|
|
|
2824
2848
|
},
|
|
2825
2849
|
children: /* @__PURE__ */ jsx("div", {
|
|
2826
2850
|
role: "treeitem",
|
|
2827
|
-
className: cn("relative z-10 flex w-full cursor-pointer items-center gap-1.5 rounded-sm px-2 py-1.5 text-start text-sm transition-colors not-last:mb-0.5 outline-hidden select-none hover:bg-accent/50 focus:z-20 focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[drag-target=true]:bg-accent data-[search-match=true]:bg-blue-400/20! data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
2851
|
+
className: cn("relative z-10 flex w-full cursor-pointer items-center gap-1.5 rounded-sm px-2 py-1.5 text-start text-sm text-foreground transition-colors not-last:mb-0.5 outline-hidden select-none hover:bg-accent/50 focus:z-20 focus-visible:ring-[3px] focus-visible:ring-ring/50 data-[drag-target=true]:bg-accent data-[search-match=true]:bg-blue-400/20! data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className),
|
|
2828
2852
|
"data-drag-target": typeof item.isDragTarget === "function" ? item.isDragTarget() || false : void 0,
|
|
2829
2853
|
"data-focus": typeof item.isFocused === "function" ? item.isFocused() || false : void 0,
|
|
2830
2854
|
"data-folder": typeof item.isFolder === "function" ? item.isFolder() || false : void 0,
|
|
@@ -3577,7 +3601,7 @@ const EmptyTitle = React.forwardRef((componentProps, forwardRef) => {
|
|
|
3577
3601
|
return /* @__PURE__ */ jsx("div", {
|
|
3578
3602
|
ref: forwardRef,
|
|
3579
3603
|
"data-slot": "empty-title",
|
|
3580
|
-
className: cn("text-sm font-medium tracking-tight", className),
|
|
3604
|
+
className: cn("text-sm text-foreground font-medium tracking-tight", className),
|
|
3581
3605
|
...props
|
|
3582
3606
|
});
|
|
3583
3607
|
});
|
|
@@ -4162,13 +4186,42 @@ const FieldContent = React.forwardRef((componentProps, forwardRef) => {
|
|
|
4162
4186
|
});
|
|
4163
4187
|
});
|
|
4164
4188
|
FieldContent.displayName = "FieldContent";
|
|
4189
|
+
/**
|
|
4190
|
+
* Label for a field. Renders an `@aircall/ds` Label with field-layout styling, and optionally a
|
|
4191
|
+
* necessity indicator (a required `*` or `(optional)`/`(required)` text) after the label content.
|
|
4192
|
+
*
|
|
4193
|
+
* The visual `*` is `aria-hidden` with a paired `sr-only` "(required)" for screen readers; still
|
|
4194
|
+
* mark the control itself `required`/`aria-required`. With `necessityIndicator="label"` the marker
|
|
4195
|
+
* is readable text. Pick one indicator style per form to avoid clutter.
|
|
4196
|
+
*
|
|
4197
|
+
* @example
|
|
4198
|
+
* ```tsx
|
|
4199
|
+
* <FieldLabel required>Name</FieldLabel>
|
|
4200
|
+
* <FieldLabel required necessityIndicator="label">Email</FieldLabel>
|
|
4201
|
+
* ```
|
|
4202
|
+
*/
|
|
4165
4203
|
const FieldLabel = React.forwardRef((componentProps, forwardRef) => {
|
|
4166
|
-
const { className, ...props } = componentProps;
|
|
4167
|
-
|
|
4204
|
+
const { className, children, required = false, necessityIndicator = "icon", ...props } = componentProps;
|
|
4205
|
+
const t = useDsTranslation("ds");
|
|
4206
|
+
return /* @__PURE__ */ jsxs(Label, {
|
|
4168
4207
|
ref: forwardRef,
|
|
4169
4208
|
"data-slot": "field-label",
|
|
4170
|
-
|
|
4171
|
-
|
|
4209
|
+
"data-required": required || void 0,
|
|
4210
|
+
className: cn("group/field-label peer/field-label flex w-fit gap-1 leading-normal group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border *:data-[slot=field]:p-4 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className),
|
|
4211
|
+
...props,
|
|
4212
|
+
children: [children, necessityIndicator === "label" ? /* @__PURE__ */ jsx("span", {
|
|
4213
|
+
"data-slot": "field-necessity",
|
|
4214
|
+
className: "font-normal text-muted-foreground",
|
|
4215
|
+
children: required ? t("fieldLabel.required") : t("fieldLabel.optional")
|
|
4216
|
+
}) : required && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
4217
|
+
"data-slot": "field-necessity",
|
|
4218
|
+
"aria-hidden": "true",
|
|
4219
|
+
className: "text-muted-foreground",
|
|
4220
|
+
children: "*"
|
|
4221
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
4222
|
+
className: "sr-only",
|
|
4223
|
+
children: t("fieldLabel.required")
|
|
4224
|
+
})] })]
|
|
4172
4225
|
});
|
|
4173
4226
|
});
|
|
4174
4227
|
FieldLabel.displayName = "FieldLabel";
|
|
@@ -4272,6 +4325,297 @@ const Gauge = React.forwardRef((componentProps, forwardRef) => {
|
|
|
4272
4325
|
});
|
|
4273
4326
|
Gauge.displayName = "Gauge";
|
|
4274
4327
|
|
|
4328
|
+
//#endregion
|
|
4329
|
+
//#region src/components/hover-card.tsx
|
|
4330
|
+
/**
|
|
4331
|
+
* Root container for the HoverCard. Manages open/close state.
|
|
4332
|
+
*
|
|
4333
|
+
* Renders no DOM element — wrap `HoverCardTrigger` and `HoverCardContent`
|
|
4334
|
+
* inside it.
|
|
4335
|
+
*
|
|
4336
|
+
* Supports both controlled (`open` + `onOpenChange`) and uncontrolled
|
|
4337
|
+
* (`defaultOpen`) modes.
|
|
4338
|
+
*
|
|
4339
|
+
* @example
|
|
4340
|
+
* ```tsx
|
|
4341
|
+
* <HoverCard>
|
|
4342
|
+
* <HoverCardTrigger render={<span />}>Hover me</HoverCardTrigger>
|
|
4343
|
+
* <HoverCardContent side="top">Details here</HoverCardContent>
|
|
4344
|
+
* </HoverCard>
|
|
4345
|
+
* ```
|
|
4346
|
+
*/
|
|
4347
|
+
function HoverCard(componentProps) {
|
|
4348
|
+
return /* @__PURE__ */ jsx(PreviewCard.Root, {
|
|
4349
|
+
"data-slot": "hover-card",
|
|
4350
|
+
...componentProps
|
|
4351
|
+
});
|
|
4352
|
+
}
|
|
4353
|
+
/**
|
|
4354
|
+
* The element that triggers the HoverCard on hover or focus.
|
|
4355
|
+
*
|
|
4356
|
+
* Renders an `<a>` element by default. Use the `render` prop to swap in any
|
|
4357
|
+
* other element or component:
|
|
4358
|
+
*
|
|
4359
|
+
* ```tsx
|
|
4360
|
+
* <HoverCardTrigger render={<span className="cursor-help" />}>
|
|
4361
|
+
* <InfoIcon size={16} />
|
|
4362
|
+
* </HoverCardTrigger>
|
|
4363
|
+
* ```
|
|
4364
|
+
*
|
|
4365
|
+
* @prop delay - Milliseconds to wait before opening. Default: `400`.
|
|
4366
|
+
* @prop closeDelay - Milliseconds to wait before closing after the cursor
|
|
4367
|
+
* leaves both the trigger and the content. Default: `300`.
|
|
4368
|
+
* @prop render - Replace the default `<a>` with any element or component.
|
|
4369
|
+
*/
|
|
4370
|
+
const HoverCardTrigger = React.forwardRef((componentProps, forwardRef) => {
|
|
4371
|
+
const { delay = 400, closeDelay = 300, ...props } = componentProps;
|
|
4372
|
+
return /* @__PURE__ */ jsx(PreviewCard.Trigger, {
|
|
4373
|
+
ref: forwardRef,
|
|
4374
|
+
"data-slot": "hover-card-trigger",
|
|
4375
|
+
delay,
|
|
4376
|
+
closeDelay,
|
|
4377
|
+
...props
|
|
4378
|
+
});
|
|
4379
|
+
});
|
|
4380
|
+
HoverCardTrigger.displayName = "HoverCardTrigger";
|
|
4381
|
+
/**
|
|
4382
|
+
* The floating panel shown when the trigger is hovered or focused.
|
|
4383
|
+
*
|
|
4384
|
+
* Composes `PreviewCard.Portal → PreviewCard.Positioner → PreviewCard.Popup`
|
|
4385
|
+
* into a single consumer-facing part. Pass positioning props (`side`,
|
|
4386
|
+
* `sideOffset`, `align`, `alignOffset`) directly — they are forwarded to the
|
|
4387
|
+
* positioner. All other props (including `className`) go to the popup element.
|
|
4388
|
+
*
|
|
4389
|
+
* The card stays open while the cursor is inside it, giving users time to
|
|
4390
|
+
* interact with the content before it dismisses.
|
|
4391
|
+
*
|
|
4392
|
+
* @prop side - Which side of the trigger to place the card. Default: `'bottom'`.
|
|
4393
|
+
* @prop sideOffset - Gap in pixels between the trigger and the card. Default: `8`.
|
|
4394
|
+
* @prop align - Alignment along the cross-axis. Default: `'center'`.
|
|
4395
|
+
* @prop alignOffset - Offset in pixels along the cross-axis. Default: `0`.
|
|
4396
|
+
*
|
|
4397
|
+
* @example
|
|
4398
|
+
* ```tsx
|
|
4399
|
+
* <HoverCardContent side="top" align="start" className="max-w-[280px]">
|
|
4400
|
+
* <p className="text-sm font-bold">Title</p>
|
|
4401
|
+
* <p className="text-sm text-muted-foreground">Description</p>
|
|
4402
|
+
* </HoverCardContent>
|
|
4403
|
+
* ```
|
|
4404
|
+
*/
|
|
4405
|
+
const HoverCardContent = React.forwardRef((componentProps, forwardRef) => {
|
|
4406
|
+
const { className, side = "bottom", sideOffset = 8, align = "center", alignOffset = 0, ...props } = componentProps;
|
|
4407
|
+
return /* @__PURE__ */ jsx(PreviewCard.Portal, { children: /* @__PURE__ */ jsx(PreviewCard.Positioner, {
|
|
4408
|
+
side,
|
|
4409
|
+
sideOffset,
|
|
4410
|
+
align,
|
|
4411
|
+
alignOffset,
|
|
4412
|
+
className: "isolate z-50",
|
|
4413
|
+
children: /* @__PURE__ */ jsx(PreviewCard.Popup, {
|
|
4414
|
+
ref: forwardRef,
|
|
4415
|
+
"data-slot": "hover-card-content",
|
|
4416
|
+
className: cn("z-50 w-64 origin-(--transform-origin) rounded-md bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden", "data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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", "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95", "data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
4417
|
+
...props
|
|
4418
|
+
})
|
|
4419
|
+
}) });
|
|
4420
|
+
});
|
|
4421
|
+
HoverCardContent.displayName = "HoverCardContent";
|
|
4422
|
+
|
|
4423
|
+
//#endregion
|
|
4424
|
+
//#region src/i18n/number-format.ts
|
|
4425
|
+
/**
|
|
4426
|
+
* @internal
|
|
4427
|
+
* Safe `Intl` locale/format resolution shared by `@aircall/ds` number-formatting
|
|
4428
|
+
* components. Ensures a malformed `locale` or `format` never throws a `RangeError`
|
|
4429
|
+
* from `Intl` mid-render: invalid values degrade to a usable default. Not part of the
|
|
4430
|
+
* consumer contract.
|
|
4431
|
+
*/
|
|
4432
|
+
/** True when `loc` is a locale that `Intl` accepts (string, list, or `Intl.Locale`). */
|
|
4433
|
+
function isUsableLocale(loc) {
|
|
4434
|
+
if (loc == null || loc === "") return false;
|
|
4435
|
+
try {
|
|
4436
|
+
return Intl.getCanonicalLocales(loc).length > 0;
|
|
4437
|
+
} catch {
|
|
4438
|
+
return false;
|
|
4439
|
+
}
|
|
4440
|
+
}
|
|
4441
|
+
/**
|
|
4442
|
+
* Resolves the locale to a value `Intl.NumberFormat` will accept, so a malformed
|
|
4443
|
+
* `locale` (e.g. a half-typed value) never throws a `RangeError` mid-render.
|
|
4444
|
+
* Prefers the explicit prop, then the DS i18n language, then `en-US`.
|
|
4445
|
+
*/
|
|
4446
|
+
function resolveLocale(localeProp, dsLocale) {
|
|
4447
|
+
if (isUsableLocale(localeProp)) return localeProp;
|
|
4448
|
+
if (isUsableLocale(dsLocale)) return dsLocale;
|
|
4449
|
+
return "en-US";
|
|
4450
|
+
}
|
|
4451
|
+
/**
|
|
4452
|
+
* Returns `format` only if `Intl` can build a formatter from it (with the resolved
|
|
4453
|
+
* locale); otherwise `undefined`, so an invalid option (e.g. a bad `currency` or
|
|
4454
|
+
* `unit`) degrades to default number formatting instead of throwing a `RangeError`.
|
|
4455
|
+
*/
|
|
4456
|
+
function resolveFormat(locale, format) {
|
|
4457
|
+
if (format == null) return;
|
|
4458
|
+
try {
|
|
4459
|
+
new Intl.NumberFormat(locale, format).format(0);
|
|
4460
|
+
return format;
|
|
4461
|
+
} catch {
|
|
4462
|
+
return;
|
|
4463
|
+
}
|
|
4464
|
+
}
|
|
4465
|
+
|
|
4466
|
+
//#endregion
|
|
4467
|
+
//#region src/i18n/use-ds-locale.ts
|
|
4468
|
+
function subscribeToLanguage(onChange) {
|
|
4469
|
+
dsI18n.on("languageChanged", onChange);
|
|
4470
|
+
return () => dsI18n.off("languageChanged", onChange);
|
|
4471
|
+
}
|
|
4472
|
+
/**
|
|
4473
|
+
* @internal
|
|
4474
|
+
* Reads the DS i18n active language and re-renders on change. Used by `@aircall/ds`
|
|
4475
|
+
* components as the default `locale` for `Intl`-based formatting (e.g. `NumericInput`).
|
|
4476
|
+
* Not part of the consumer contract.
|
|
4477
|
+
*/
|
|
4478
|
+
function useDsLocale() {
|
|
4479
|
+
return useSyncExternalStore(subscribeToLanguage, () => dsI18n.language, () => dsI18n.language);
|
|
4480
|
+
}
|
|
4481
|
+
|
|
4482
|
+
//#endregion
|
|
4483
|
+
//#region src/components/numeric-input.tsx
|
|
4484
|
+
/**
|
|
4485
|
+
* Locale-aware numeric input. Renders a bordered group `<div>` styled like
|
|
4486
|
+
* `InputGroup` (it IS the group — do not nest it inside an `InputGroup`).
|
|
4487
|
+
*
|
|
4488
|
+
* Two modes:
|
|
4489
|
+
* - **Convenience** (no children): renders `prefix`/`suffix` affixes, the input,
|
|
4490
|
+
* and `−`/`+` steppers (steppers shown unless `hideStepper`).
|
|
4491
|
+
* - **Compound** (children): caller composes `NumericInputControl`,
|
|
4492
|
+
* `NumericInputIncrement`, `NumericInputDecrement`, and `InputGroupAddon`.
|
|
4493
|
+
* In compound mode, the visual invalid halo (red border/ring) follows the inner control's
|
|
4494
|
+
* `aria-invalid` (or DS `Field` state), NOT the `aria-invalid` on `NumericInput` itself.
|
|
4495
|
+
*
|
|
4496
|
+
* Formatting is delegated to Base UI's `format` (`Intl.NumberFormatOptions`) and
|
|
4497
|
+
* `locale` props. `locale` defaults to the DS i18n active language.
|
|
4498
|
+
*
|
|
4499
|
+
* @example
|
|
4500
|
+
* ```tsx
|
|
4501
|
+
* <NumericInput aria-label="Amount" defaultValue={10}
|
|
4502
|
+
* format={{ style: 'currency', currency: 'EUR' }} prefix="€" suffix="EUR" />
|
|
4503
|
+
* ```
|
|
4504
|
+
*/
|
|
4505
|
+
const NumericInput = React.forwardRef((componentProps, forwardRef) => {
|
|
4506
|
+
const { className, children, prefix, suffix, hideStepper = false, locale, format, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, ...rootProps } = componentProps;
|
|
4507
|
+
const resolvedLocale = resolveLocale(locale, useDsLocale());
|
|
4508
|
+
const resolvedFormat = resolveFormat(resolvedLocale, format);
|
|
4509
|
+
const ariaForRoot = children != null ? {
|
|
4510
|
+
"aria-label": ariaLabel,
|
|
4511
|
+
"aria-labelledby": ariaLabelledby,
|
|
4512
|
+
"aria-describedby": ariaDescribedby,
|
|
4513
|
+
"aria-invalid": ariaInvalid
|
|
4514
|
+
} : void 0;
|
|
4515
|
+
const content = children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4516
|
+
prefix != null && /* @__PURE__ */ jsx(InputGroupAddon, {
|
|
4517
|
+
align: "inline-start",
|
|
4518
|
+
children: /* @__PURE__ */ jsx(InputGroupText, { children: prefix })
|
|
4519
|
+
}),
|
|
4520
|
+
/* @__PURE__ */ jsx(NumericInputControl, {
|
|
4521
|
+
"aria-label": ariaLabel,
|
|
4522
|
+
"aria-labelledby": ariaLabelledby,
|
|
4523
|
+
"aria-describedby": ariaDescribedby,
|
|
4524
|
+
"aria-invalid": ariaInvalid
|
|
4525
|
+
}),
|
|
4526
|
+
suffix != null && /* @__PURE__ */ jsx(InputGroupAddon, {
|
|
4527
|
+
align: "inline-end",
|
|
4528
|
+
children: /* @__PURE__ */ jsx(InputGroupText, { children: suffix })
|
|
4529
|
+
}),
|
|
4530
|
+
!hideStepper && /* @__PURE__ */ jsxs(InputGroupAddon, {
|
|
4531
|
+
align: "inline-end",
|
|
4532
|
+
className: "gap-0.5",
|
|
4533
|
+
children: [/* @__PURE__ */ jsx(NumericInputDecrement, {}), /* @__PURE__ */ jsx(NumericInputIncrement, {})]
|
|
4534
|
+
})
|
|
4535
|
+
] });
|
|
4536
|
+
return /* @__PURE__ */ jsx(NumberField.Root, {
|
|
4537
|
+
ref: forwardRef,
|
|
4538
|
+
"data-slot": "numeric-input",
|
|
4539
|
+
locale: resolvedLocale,
|
|
4540
|
+
format: resolvedFormat,
|
|
4541
|
+
className: cn(inputGroupShellClassName, className),
|
|
4542
|
+
...ariaForRoot,
|
|
4543
|
+
...rootProps,
|
|
4544
|
+
children: content
|
|
4545
|
+
});
|
|
4546
|
+
});
|
|
4547
|
+
NumericInput.displayName = "NumericInput";
|
|
4548
|
+
/**
|
|
4549
|
+
* The text input part. Renders a bare `<input>` (direct child of `NumericInput`)
|
|
4550
|
+
* carrying `data-slot="input-group-control"` so the shell's focus halo applies.
|
|
4551
|
+
* The input's `aria-label` deliberately overrides the group's label for the input control.
|
|
4552
|
+
*
|
|
4553
|
+
* @example
|
|
4554
|
+
* ```tsx
|
|
4555
|
+
* <NumericInput aria-label="Quantity" defaultValue={1}>
|
|
4556
|
+
* <NumericInputControl aria-label="Quantity value" />
|
|
4557
|
+
* </NumericInput>
|
|
4558
|
+
* ```
|
|
4559
|
+
*/
|
|
4560
|
+
const NumericInputControl = React.forwardRef((componentProps, forwardRef) => {
|
|
4561
|
+
const { className, ...props } = componentProps;
|
|
4562
|
+
return /* @__PURE__ */ jsx(NumberField.Input, {
|
|
4563
|
+
ref: forwardRef,
|
|
4564
|
+
"data-slot": "input-group-control",
|
|
4565
|
+
className: cn("text-foreground placeholder:text-muted-foreground flex-1 rounded-none border-0 bg-transparent px-3 py-2 text-base shadow-none outline-none disabled:opacity-100 md:text-sm", className),
|
|
4566
|
+
...props
|
|
4567
|
+
});
|
|
4568
|
+
});
|
|
4569
|
+
NumericInputControl.displayName = "NumericInputControl";
|
|
4570
|
+
/**
|
|
4571
|
+
* Increment button. Defaults to a plus icon; pass children to override.
|
|
4572
|
+
*
|
|
4573
|
+
* @example
|
|
4574
|
+
* ```tsx
|
|
4575
|
+
* <NumericInputIncrement />
|
|
4576
|
+
* ```
|
|
4577
|
+
*/
|
|
4578
|
+
const NumericInputIncrement = React.forwardRef((componentProps, forwardRef) => {
|
|
4579
|
+
const { className, children, ...props } = componentProps;
|
|
4580
|
+
return /* @__PURE__ */ jsx(NumberField.Increment, {
|
|
4581
|
+
ref: forwardRef,
|
|
4582
|
+
"data-slot": "numeric-input-increment",
|
|
4583
|
+
className,
|
|
4584
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
4585
|
+
type: "button",
|
|
4586
|
+
variant: "ghost",
|
|
4587
|
+
size: "icon-sm"
|
|
4588
|
+
}),
|
|
4589
|
+
...props,
|
|
4590
|
+
children: children ?? /* @__PURE__ */ jsx(Plus, { className: "size-4" })
|
|
4591
|
+
});
|
|
4592
|
+
});
|
|
4593
|
+
NumericInputIncrement.displayName = "NumericInputIncrement";
|
|
4594
|
+
/**
|
|
4595
|
+
* Decrement button. Defaults to a minus icon; pass children to override.
|
|
4596
|
+
*
|
|
4597
|
+
* @example
|
|
4598
|
+
* ```tsx
|
|
4599
|
+
* <NumericInputDecrement />
|
|
4600
|
+
* ```
|
|
4601
|
+
*/
|
|
4602
|
+
const NumericInputDecrement = React.forwardRef((componentProps, forwardRef) => {
|
|
4603
|
+
const { className, children, ...props } = componentProps;
|
|
4604
|
+
return /* @__PURE__ */ jsx(NumberField.Decrement, {
|
|
4605
|
+
ref: forwardRef,
|
|
4606
|
+
"data-slot": "numeric-input-decrement",
|
|
4607
|
+
className,
|
|
4608
|
+
render: /* @__PURE__ */ jsx(Button, {
|
|
4609
|
+
type: "button",
|
|
4610
|
+
variant: "ghost",
|
|
4611
|
+
size: "icon-sm"
|
|
4612
|
+
}),
|
|
4613
|
+
...props,
|
|
4614
|
+
children: children ?? /* @__PURE__ */ jsx(Minus, { className: "size-4" })
|
|
4615
|
+
});
|
|
4616
|
+
});
|
|
4617
|
+
NumericInputDecrement.displayName = "NumericInputDecrement";
|
|
4618
|
+
|
|
4275
4619
|
//#endregion
|
|
4276
4620
|
//#region src/components/input-otp.tsx
|
|
4277
4621
|
const InputOTP = React.forwardRef((componentProps, forwardRef) => {
|
|
@@ -4302,7 +4646,7 @@ const InputOTPSlot = React.forwardRef((componentProps, forwardRef) => {
|
|
|
4302
4646
|
ref: forwardRef,
|
|
4303
4647
|
"data-slot": "input-otp-slot",
|
|
4304
4648
|
"data-active": isActive,
|
|
4305
|
-
className: cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 dark:bg-input/30 border-input relative flex items-center justify-center border-y border-r text-sm transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-3", className),
|
|
4649
|
+
className: cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 bg-background dark:bg-input/30 border-input relative flex items-center justify-center border-y border-r text-sm transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-3", className),
|
|
4306
4650
|
...props,
|
|
4307
4651
|
children: [char, hasFakeCaret && /* @__PURE__ */ jsx("div", {
|
|
4308
4652
|
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
@@ -4312,10 +4656,11 @@ const InputOTPSlot = React.forwardRef((componentProps, forwardRef) => {
|
|
|
4312
4656
|
});
|
|
4313
4657
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
4314
4658
|
const InputOTPSeparator = React.forwardRef((componentProps, forwardRef) => {
|
|
4315
|
-
const { ...props } = componentProps;
|
|
4659
|
+
const { className, ...props } = componentProps;
|
|
4316
4660
|
return /* @__PURE__ */ jsx("div", {
|
|
4317
4661
|
ref: forwardRef,
|
|
4318
4662
|
"data-slot": "input-otp-separator",
|
|
4663
|
+
className: cn(className, "text-foreground"),
|
|
4319
4664
|
role: "separator",
|
|
4320
4665
|
...props,
|
|
4321
4666
|
children: /* @__PURE__ */ jsx(MinusIcon, {})
|
|
@@ -4470,6 +4815,42 @@ const ItemFooter = React.forwardRef((componentProps, forwardRef) => {
|
|
|
4470
4815
|
});
|
|
4471
4816
|
ItemFooter.displayName = "ItemFooter";
|
|
4472
4817
|
|
|
4818
|
+
//#endregion
|
|
4819
|
+
//#region src/components/anchor.tsx
|
|
4820
|
+
const anchorVariants = cn(linkStyle, "inline-flex cursor-pointer items-center gap-1.5 font-medium outline-none transition-colors hover:text-primary/80 focus-visible:ring-3 focus-visible:ring-ring/50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-[1em]");
|
|
4821
|
+
/**
|
|
4822
|
+
* Renders an `<a>` element styled as a text link. Use instead of
|
|
4823
|
+
* `<Button variant="link" render={<a>}>` for any navigational action.
|
|
4824
|
+
*
|
|
4825
|
+
* For in-app routing pass your router's link component via the `render` prop —
|
|
4826
|
+
* the DS styles are applied to whatever element you provide.
|
|
4827
|
+
*
|
|
4828
|
+
* @example
|
|
4829
|
+
* ```tsx
|
|
4830
|
+
* // External link
|
|
4831
|
+
* <Anchor href="https://aircall.io" target="_blank" rel="noopener noreferrer">
|
|
4832
|
+
* Visit Aircall <ExternalLink />
|
|
4833
|
+
* </Anchor>
|
|
4834
|
+
*
|
|
4835
|
+
* // React Router in-app navigation
|
|
4836
|
+
* import { Link } from 'react-router-dom';
|
|
4837
|
+
* <Anchor render={<Link to="/settings" />}>Settings</Anchor>
|
|
4838
|
+
* ```
|
|
4839
|
+
*/
|
|
4840
|
+
const Anchor = React.forwardRef((componentProps, forwardRef) => {
|
|
4841
|
+
const { className, render, ...props } = componentProps;
|
|
4842
|
+
return useRender({
|
|
4843
|
+
defaultTagName: "a",
|
|
4844
|
+
props: mergeProps({
|
|
4845
|
+
className: cn(anchorVariants, className),
|
|
4846
|
+
ref: forwardRef
|
|
4847
|
+
}, props),
|
|
4848
|
+
render,
|
|
4849
|
+
state: { slot: "anchor" }
|
|
4850
|
+
});
|
|
4851
|
+
});
|
|
4852
|
+
Anchor.displayName = "Anchor";
|
|
4853
|
+
|
|
4473
4854
|
//#endregion
|
|
4474
4855
|
//#region src/components/list.tsx
|
|
4475
4856
|
const List = React.forwardRef((componentProps, forwardRef) => {
|
|
@@ -5633,7 +6014,7 @@ const Switch = React.forwardRef((componentProps, forwardRef) => {
|
|
|
5633
6014
|
return /* @__PURE__ */ jsx(Switch$1.Root, {
|
|
5634
6015
|
ref: forwardRef,
|
|
5635
6016
|
"data-slot": "switch",
|
|
5636
|
-
className: cn("peer relative inline-flex h-6 w-10 shrink-0 items-center rounded-full border border-transparent p-1 transition-all outline-none active:opacity-60 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive focus-visible:aria-invalid:ring-3 focus-visible:aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:focus-visible:aria-invalid:ring-destructive/40 data-checked:bg-primary aria-invalid:data-checked:bg-destructive data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50", className),
|
|
6017
|
+
className: cn("peer relative inline-flex h-6 w-10! shrink-0 items-center rounded-full border border-transparent p-1 transition-all outline-none active:opacity-60 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive focus-visible:aria-invalid:ring-3 focus-visible:aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:focus-visible:aria-invalid:ring-destructive/40 data-checked:bg-primary aria-invalid:data-checked:bg-destructive data-unchecked:bg-input dark:data-unchecked:bg-input/80 data-disabled:cursor-not-allowed data-disabled:opacity-50", className),
|
|
5637
6018
|
...props,
|
|
5638
6019
|
children: /* @__PURE__ */ jsx(Switch$1.Thumb, {
|
|
5639
6020
|
"data-slot": "switch-thumb",
|
|
@@ -5765,7 +6146,7 @@ const ToggleGroupItem = React.forwardRef((componentProps, forwardRef) => {
|
|
|
5765
6146
|
"data-variant": context.variant || variant,
|
|
5766
6147
|
"data-size": context.size || size,
|
|
5767
6148
|
"data-spacing": context.spacing,
|
|
5768
|
-
className: cn("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-[spacing=0]/toggle-group:shadow-none focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:rounded-l-md group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:last:rounded-b-md group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:border-l-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:border-l group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:border-t group-data-[block=true]/toggle-group:flex-1", toggleVariants({
|
|
6149
|
+
className: cn("shrink-0 text-foreground group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 group-data-[spacing=0]/toggle-group:shadow-none focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:rounded-l-md group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:last:rounded-b-md group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:border-l-0 group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:border-t-0 group-data-[orientation=horizontal]/toggle-group:data-[spacing=0]:first:border-l group-data-[orientation=vertical]/toggle-group:data-[spacing=0]:first:border-t group-data-[block=true]/toggle-group:flex-1", toggleVariants({
|
|
5769
6150
|
variant: context.variant || variant,
|
|
5770
6151
|
size: context.size || size
|
|
5771
6152
|
}), className),
|
|
@@ -5891,4 +6272,4 @@ function useAudioGauge(options = {}) {
|
|
|
5891
6272
|
}
|
|
5892
6273
|
|
|
5893
6274
|
//#endregion
|
|
5894
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataTable, DataTree, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterClearAllButton, FilterGroup, Gauge, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, NotificationQueueProvider, NotificationSlot, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, alertVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useComboboxAnchor, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
|
|
6275
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataTable, DataTree, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterClearAllButton, FilterGroup, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useComboboxAnchor, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
|