@aircall/ds 0.17.1 → 0.18.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/README.md +44 -14
- package/dist/globals.css +1 -1
- package/dist/index.d.ts +86 -22
- package/dist/index.js +80 -8
- package/dist/theme.css +2 -0
- package/package.json +4 -4
- package/skills/aircall-ds/migrate-icons/SKILL.md +319 -90
- package/skills/aircall-ds/setup/SKILL.md +75 -31
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
|
40
40
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
41
41
|
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
42
42
|
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
43
|
-
import * as
|
|
43
|
+
import * as class_variance_authority_types5 from "class-variance-authority/types";
|
|
44
44
|
import { CountryCode } from "@aircall/numbers";
|
|
45
45
|
|
|
46
46
|
//#region src/components/accordion.d.ts
|
|
@@ -70,7 +70,7 @@ declare const buttonVariants: (props?: ({
|
|
|
70
70
|
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
71
71
|
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
72
72
|
block?: boolean | null | undefined;
|
|
73
|
-
} &
|
|
73
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
74
74
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
75
75
|
interface ButtonProps extends Button$1.Props, VariantProps<typeof buttonVariants> {
|
|
76
76
|
children?: React.ReactNode;
|
|
@@ -192,7 +192,7 @@ declare namespace AlertDialogCancel {
|
|
|
192
192
|
//#region src/components/alert.d.ts
|
|
193
193
|
declare const alertVariants: (props?: ({
|
|
194
194
|
variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
195
|
-
} &
|
|
195
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
196
196
|
declare const Alert: React.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
197
197
|
interface AlertProps extends React.ComponentProps<'div'>, VariantProps<typeof alertVariants> {}
|
|
198
198
|
declare namespace Alert {
|
|
@@ -251,7 +251,7 @@ declare namespace AvatarGroupCount {
|
|
|
251
251
|
//#region src/components/counter-badge.d.ts
|
|
252
252
|
declare const counterBadgeVariants: (props?: ({
|
|
253
253
|
variant?: "default" | "secondary" | "ghost" | null | undefined;
|
|
254
|
-
} &
|
|
254
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
255
255
|
declare const CounterBadge: React.ForwardRefExoticComponent<Omit<CounterBadgeProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
256
256
|
type CounterBadgeProps = useRender.ComponentProps<'span'> & VariantProps<typeof counterBadgeVariants>;
|
|
257
257
|
declare namespace CounterBadge {
|
|
@@ -263,7 +263,7 @@ declare const badgeVariants: (props?: ({
|
|
|
263
263
|
size?: "default" | "lg" | null | undefined;
|
|
264
264
|
color?: "blue" | "green" | "pink" | "purple" | "red" | "yellow" | "charcoal" | null | undefined;
|
|
265
265
|
tone?: "dark" | "light" | "medium-dark" | "medium-light" | null | undefined;
|
|
266
|
-
} &
|
|
266
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
267
267
|
type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
268
268
|
type BadgeColor = NonNullable<BadgeVariants['color']>;
|
|
269
269
|
type BadgeTone = NonNullable<BadgeVariants['tone']>;
|
|
@@ -295,7 +295,7 @@ declare namespace BadgeGroup {
|
|
|
295
295
|
}
|
|
296
296
|
declare const badgeGroupCountVariants: (props?: ({
|
|
297
297
|
size?: "default" | "lg" | null | undefined;
|
|
298
|
-
} &
|
|
298
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
299
299
|
declare const BadgeGroupCount: React.ForwardRefExoticComponent<Omit<BadgeGroupCount.Props, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
300
300
|
declare namespace BadgeGroupCount {
|
|
301
301
|
type Props = Omit<React.ComponentProps<typeof CounterBadge>, 'variant'> & VariantProps<typeof badgeGroupCountVariants>;
|
|
@@ -305,7 +305,7 @@ declare namespace BadgeGroupCount {
|
|
|
305
305
|
declare const bannerVariants: (props?: ({
|
|
306
306
|
variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
307
307
|
borderDirection?: "bottom" | "top" | null | undefined;
|
|
308
|
-
} &
|
|
308
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
309
309
|
declare const Banner: React.ForwardRefExoticComponent<Omit<BannerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
310
310
|
interface BannerProps extends React.ComponentProps<'div'>, VariantProps<typeof bannerVariants> {}
|
|
311
311
|
declare namespace Banner {
|
|
@@ -386,7 +386,7 @@ declare namespace Separator {
|
|
|
386
386
|
//#region src/components/button-group.d.ts
|
|
387
387
|
declare const buttonGroupVariants: (props?: ({
|
|
388
388
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
389
|
-
} &
|
|
389
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
390
390
|
declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
391
391
|
interface ButtonGroupProps extends React.ComponentProps<'div'>, VariantProps<typeof buttonGroupVariants> {}
|
|
392
392
|
declare namespace ButtonGroup {
|
|
@@ -1178,7 +1178,7 @@ declare namespace EmptyHeader {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
declare const emptyMediaVariants: (props?: ({
|
|
1180
1180
|
variant?: "default" | "icon" | null | undefined;
|
|
1181
|
-
} &
|
|
1181
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
1182
1182
|
declare const EmptyMedia: React.ForwardRefExoticComponent<Omit<EmptyMediaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1183
1183
|
interface EmptyMediaProps extends React.ComponentProps<'div'>, VariantProps<typeof emptyMediaVariants> {}
|
|
1184
1184
|
declare namespace EmptyMedia {
|
|
@@ -1372,7 +1372,7 @@ declare namespace EmojiPickerContent {
|
|
|
1372
1372
|
declare const fabVariants: (props?: ({
|
|
1373
1373
|
variant?: "default" | "outline" | null | undefined;
|
|
1374
1374
|
size?: "lg" | "icon-lg" | null | undefined;
|
|
1375
|
-
} &
|
|
1375
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
1376
1376
|
declare const FAB: React.ForwardRefExoticComponent<Omit<FABProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1377
1377
|
interface FABProps extends Button$1.Props, VariantProps<typeof fabVariants> {}
|
|
1378
1378
|
declare namespace FAB {
|
|
@@ -1406,7 +1406,7 @@ declare namespace FieldGroup {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
declare const fieldVariants: (props?: ({
|
|
1408
1408
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
1409
|
-
} &
|
|
1409
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
1410
1410
|
declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1411
1411
|
interface FieldProps extends React.ComponentProps<'div'>, VariantProps<typeof fieldVariants> {}
|
|
1412
1412
|
declare namespace Field {
|
|
@@ -1451,13 +1451,77 @@ interface FieldLabelProps extends React.ComponentProps<typeof Label> {
|
|
|
1451
1451
|
declare namespace FieldLabel {
|
|
1452
1452
|
type Props = FieldLabelProps;
|
|
1453
1453
|
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Row layout container that groups a `FieldLabel` with optional label add-ons on one line.
|
|
1456
|
+
* Renders a `<div data-slot="field-label-row">` with `flex w-full items-center gap-1`.
|
|
1457
|
+
* Any child carrying `data-slot="field-label-aside"` (e.g. `FieldLabelAside`) is pushed to the
|
|
1458
|
+
* right edge via `ml-auto`.
|
|
1459
|
+
*
|
|
1460
|
+
* @example
|
|
1461
|
+
* ```tsx
|
|
1462
|
+
* <FieldLabelRow>
|
|
1463
|
+
* <FieldLabel htmlFor="taxid">Tax ID Number</FieldLabel>
|
|
1464
|
+
* <FieldLabelAside render={<a href="/help/tax-id" />}>Where do I find this?</FieldLabelAside>
|
|
1465
|
+
* </FieldLabelRow>
|
|
1466
|
+
* ```
|
|
1467
|
+
*/
|
|
1468
|
+
declare const FieldLabelRow: React.ForwardRefExoticComponent<Omit<FieldLabelRowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1469
|
+
interface FieldLabelRowProps extends React.ComponentProps<'div'> {}
|
|
1470
|
+
declare namespace FieldLabelRow {
|
|
1471
|
+
type Props = FieldLabelRowProps;
|
|
1472
|
+
}
|
|
1473
|
+
/**
|
|
1474
|
+
* An info `(i)` icon shown beside a `FieldLabel` (inside a `FieldLabelRow`, never inside the
|
|
1475
|
+
* `<label>` itself). Click/tap opens a Popover with purely additive context — use only when ~90% of
|
|
1476
|
+
* users can complete the field without reading it. `children` is the popover content.
|
|
1477
|
+
*/
|
|
1478
|
+
declare const FieldLabelInfo: React.ForwardRefExoticComponent<Omit<FieldLabelInfoProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1479
|
+
interface FieldLabelInfoProps extends React.ComponentProps<typeof PopoverTrigger> {
|
|
1480
|
+
/** Additive context shown inside the popover when the icon is activated. */
|
|
1481
|
+
children?: React.ReactNode;
|
|
1482
|
+
}
|
|
1483
|
+
declare namespace FieldLabelInfo {
|
|
1484
|
+
type Props = FieldLabelInfoProps;
|
|
1485
|
+
}
|
|
1486
|
+
/**
|
|
1487
|
+
* Wrapper for content shown at the **right end** of a `FieldLabelRow` — a "look-it-up" link
|
|
1488
|
+
* ("Where do I find this?"), a popover trigger, or plain helper text. It enforces only placement
|
|
1489
|
+
* (`data-slot="field-label-aside"`, right-aligned by `FieldLabelRow`) and the label-row typography
|
|
1490
|
+
* (`text-sm leading-normal font-normal`); it imposes **no** link styling. Put whatever you want
|
|
1491
|
+
* inside — an `Anchor`, a `PopoverTrigger`, text — and it carries its own appearance.
|
|
1492
|
+
*
|
|
1493
|
+
* @example
|
|
1494
|
+
* ```tsx
|
|
1495
|
+
* <FieldLabelAside>
|
|
1496
|
+
* <Anchor href="/help/tax-id">Where do I find this?</Anchor>
|
|
1497
|
+
* </FieldLabelAside>
|
|
1498
|
+
* ```
|
|
1499
|
+
*/
|
|
1500
|
+
declare const FieldLabelAside: React.ForwardRefExoticComponent<Omit<FieldLabelAsideProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
1501
|
+
interface FieldLabelAsideProps extends React.ComponentProps<'span'> {}
|
|
1502
|
+
declare namespace FieldLabelAside {
|
|
1503
|
+
type Props = FieldLabelAsideProps;
|
|
1504
|
+
}
|
|
1454
1505
|
declare const FieldTitle: React.ForwardRefExoticComponent<Omit<FieldTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1455
1506
|
interface FieldTitleProps extends React.ComponentProps<'div'> {}
|
|
1456
1507
|
declare namespace FieldTitle {
|
|
1457
1508
|
type Props = FieldTitleProps;
|
|
1458
1509
|
}
|
|
1459
1510
|
declare const FieldDescription: React.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
1460
|
-
interface FieldDescriptionProps extends React.ComponentProps<'p'> {
|
|
1511
|
+
interface FieldDescriptionProps extends React.ComponentProps<'p'> {
|
|
1512
|
+
/**
|
|
1513
|
+
* Semantic kind of the description (drives placement intent + error behavior):
|
|
1514
|
+
* - `'contextual'` (default): downstream consequence / reassurance / safety net. Place it below
|
|
1515
|
+
* the input. Hidden when the field is invalid (the `FieldError` takes its slot). The hide is
|
|
1516
|
+
* pure CSS and **requires `data-invalid` to be set on the wrapping `<Field>`** — `@aircall/blocks`
|
|
1517
|
+
* `FormField` does this automatically; raw-ds consumers must set it themselves.
|
|
1518
|
+
* - `'instructional'`: execution guidance the user needs to fill the field correctly. Place it
|
|
1519
|
+
* directly under the label. Stays visible alongside the error.
|
|
1520
|
+
* Never use both kinds on one field.
|
|
1521
|
+
* @default 'contextual'
|
|
1522
|
+
*/
|
|
1523
|
+
variant?: 'contextual' | 'instructional';
|
|
1524
|
+
}
|
|
1461
1525
|
declare namespace FieldDescription {
|
|
1462
1526
|
type Props = FieldDescriptionProps;
|
|
1463
1527
|
}
|
|
@@ -1583,7 +1647,7 @@ declare namespace HoverCardContent {
|
|
|
1583
1647
|
//#region src/components/input.d.ts
|
|
1584
1648
|
declare const inputVariants: (props?: ({
|
|
1585
1649
|
block?: boolean | null | undefined;
|
|
1586
|
-
} &
|
|
1650
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
1587
1651
|
declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1588
1652
|
interface InputProps extends React.ComponentProps<'input'>, VariantProps<typeof inputVariants> {}
|
|
1589
1653
|
declare namespace Input {
|
|
@@ -1598,7 +1662,7 @@ declare namespace InputGroup {
|
|
|
1598
1662
|
}
|
|
1599
1663
|
declare const inputGroupAddonVariants: (props?: ({
|
|
1600
1664
|
align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
|
|
1601
|
-
} &
|
|
1665
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
1602
1666
|
declare const InputGroupAddon: React.ForwardRefExoticComponent<Omit<InputGroupAddonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1603
1667
|
interface InputGroupAddonProps extends React.ComponentProps<'div'>, VariantProps<typeof inputGroupAddonVariants> {}
|
|
1604
1668
|
declare namespace InputGroupAddon {
|
|
@@ -1783,7 +1847,7 @@ declare namespace ItemSeparator {
|
|
|
1783
1847
|
declare const itemVariants: (props?: ({
|
|
1784
1848
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
1785
1849
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
1786
|
-
} &
|
|
1850
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
1787
1851
|
declare const Item: React.ForwardRefExoticComponent<Omit<ItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1788
1852
|
interface ItemProps extends useRender.ComponentProps<'div'>, VariantProps<typeof itemVariants> {}
|
|
1789
1853
|
declare namespace Item {
|
|
@@ -1791,7 +1855,7 @@ declare namespace Item {
|
|
|
1791
1855
|
}
|
|
1792
1856
|
declare const itemMediaVariants: (props?: ({
|
|
1793
1857
|
variant?: "image" | "default" | "icon" | null | undefined;
|
|
1794
|
-
} &
|
|
1858
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
1795
1859
|
declare const ItemMedia: React.ForwardRefExoticComponent<Omit<ItemMediaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1796
1860
|
interface ItemMediaProps extends React.ComponentProps<'div'>, VariantProps<typeof itemMediaVariants> {}
|
|
1797
1861
|
declare namespace ItemMedia {
|
|
@@ -1980,7 +2044,7 @@ declare namespace ScrollBar {
|
|
|
1980
2044
|
//#region src/components/select.d.ts
|
|
1981
2045
|
declare const selectTriggerVariants: (props?: ({
|
|
1982
2046
|
size?: "default" | "sm" | null | undefined;
|
|
1983
|
-
} &
|
|
2047
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
1984
2048
|
declare const Select: typeof Select$1.Root;
|
|
1985
2049
|
declare const SelectGroup: React.ForwardRefExoticComponent<Omit<SelectGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1986
2050
|
interface SelectGroupProps extends Select$1.Group.Props {}
|
|
@@ -2205,7 +2269,7 @@ declare namespace SidebarMenuItem {
|
|
|
2205
2269
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
2206
2270
|
variant?: "default" | "outline" | null | undefined;
|
|
2207
2271
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2208
|
-
} &
|
|
2272
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
2209
2273
|
declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<SidebarMenuButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
2210
2274
|
type SidebarMenuButtonProps = useRender.ComponentProps<'button'> & React.ComponentProps<'button'> & VariantProps<typeof sidebarMenuButtonVariants> & {
|
|
2211
2275
|
isActive?: boolean;
|
|
@@ -2277,7 +2341,7 @@ declare namespace Toaster {
|
|
|
2277
2341
|
//#region src/components/spinner.d.ts
|
|
2278
2342
|
declare const spinnerVariants: (props?: ({
|
|
2279
2343
|
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
2280
|
-
} &
|
|
2344
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
2281
2345
|
declare const Spinner: React.ForwardRefExoticComponent<Omit<SpinnerProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
2282
2346
|
interface SpinnerProps extends React.ComponentProps<'svg'>, VariantProps<typeof spinnerVariants> {}
|
|
2283
2347
|
declare namespace Spinner {
|
|
@@ -2421,7 +2485,7 @@ declare namespace ThemeProvider {
|
|
|
2421
2485
|
declare const toggleVariants: (props?: ({
|
|
2422
2486
|
variant?: "default" | "outline" | null | undefined;
|
|
2423
2487
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2424
|
-
} &
|
|
2488
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
2425
2489
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
2426
2490
|
interface ToggleProps extends Toggle$1.Props, VariantProps<typeof toggleVariants> {}
|
|
2427
2491
|
declare namespace Toggle {
|
|
@@ -2568,7 +2632,7 @@ declare function useDsTranslation(ns: 'ds' | 'blocks'): (key: string, opts?: Rec
|
|
|
2568
2632
|
//#endregion
|
|
2569
2633
|
//#region src/i18n/keys.d.ts
|
|
2570
2634
|
/** All translation keys owned by the `ds` namespace. Flat dotted keys (keySeparator: false). */
|
|
2571
|
-
type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected' | 'fieldLabel.required' | 'fieldLabel.optional';
|
|
2635
|
+
type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected' | 'fieldLabel.required' | 'fieldLabel.optional' | 'fieldLabel.moreInfo';
|
|
2572
2636
|
/** A complete set of translations for one language. Missing a key is a compile error. */
|
|
2573
2637
|
type DsLocale = Record<DsI18nKey, string>;
|
|
2574
2638
|
//#endregion
|
|
@@ -2630,4 +2694,4 @@ declare function useAudioGauge(options?: UseAudioGaugeOptions): UseAudioGaugeRes
|
|
|
2630
2694
|
//#region src/lib/utils.d.ts
|
|
2631
2695
|
declare function cn(...inputs: ClassValue[]): string;
|
|
2632
2696
|
//#endregion
|
|
2633
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, type ActionBarContextValue, 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, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataTable, type DataTableLoadingState, 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, type DropzoneErrorCode, DropzoneIcon, DropzoneTitle, DropzoneTrigger, type DsI18nKey, DsI18nProvider, type DsLocale, EmojiPicker, EmojiPickerCategories, type EmojiPickerCategory, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Filter, FilterClearAllButton, FilterGroup, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, 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, type NotificationHandle, type NotificationOptions, type NotificationPriority, type NotificationQueueControls, NotificationQueueProvider, type NotificationRenderProps, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, type OnChangeFn, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, type RowSelectionState, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetOverlay, type SheetPortal, 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, type SortingState, Spinner, type StepDefinition, 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, UseAudioGaugeOptions, UseAudioGaugeResult, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useComboboxAnchor, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
|
|
2697
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, type ActionBarContextValue, 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, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataTable, type DataTableLoadingState, 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, type DropzoneErrorCode, DropzoneIcon, DropzoneTitle, DropzoneTrigger, type DsI18nKey, DsI18nProvider, type DsLocale, EmojiPicker, EmojiPickerCategories, type EmojiPickerCategory, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Filter, FilterClearAllButton, FilterGroup, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, 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, type NotificationHandle, type NotificationOptions, type NotificationPriority, type NotificationQueueControls, NotificationQueueProvider, type NotificationRenderProps, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, type OnChangeFn, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, type RowSelectionState, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetOverlay, type SheetPortal, 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, type SortingState, Spinner, type StepDefinition, 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, UseAudioGaugeOptions, UseAudioGaugeResult, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useComboboxAnchor, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -236,7 +236,8 @@ const de = {
|
|
|
236
236
|
"actionBar.clearSelection": "Auswahl aufheben",
|
|
237
237
|
"actionBar.itemsSelected": "{{count}} Elemente ausgewählt.",
|
|
238
238
|
"fieldLabel.required": "(erforderlich)",
|
|
239
|
-
"fieldLabel.optional": "(optional)"
|
|
239
|
+
"fieldLabel.optional": "(optional)",
|
|
240
|
+
"fieldLabel.moreInfo": "Weitere Informationen"
|
|
240
241
|
};
|
|
241
242
|
var de_default = de;
|
|
242
243
|
|
|
@@ -263,7 +264,8 @@ const en = {
|
|
|
263
264
|
"actionBar.clearSelection": "Clear selection",
|
|
264
265
|
"actionBar.itemsSelected": "{{count}} items selected.",
|
|
265
266
|
"fieldLabel.required": "(required)",
|
|
266
|
-
"fieldLabel.optional": "(optional)"
|
|
267
|
+
"fieldLabel.optional": "(optional)",
|
|
268
|
+
"fieldLabel.moreInfo": "More information"
|
|
267
269
|
};
|
|
268
270
|
var en_default = en;
|
|
269
271
|
|
|
@@ -290,7 +292,8 @@ const es = {
|
|
|
290
292
|
"actionBar.clearSelection": "Borrar selección",
|
|
291
293
|
"actionBar.itemsSelected": "{{count}} elementos seleccionados.",
|
|
292
294
|
"fieldLabel.required": "(obligatorio)",
|
|
293
|
-
"fieldLabel.optional": "(opcional)"
|
|
295
|
+
"fieldLabel.optional": "(opcional)",
|
|
296
|
+
"fieldLabel.moreInfo": "Más información"
|
|
294
297
|
};
|
|
295
298
|
var es_default = es;
|
|
296
299
|
|
|
@@ -317,7 +320,8 @@ const fr = {
|
|
|
317
320
|
"actionBar.clearSelection": "Effacer la sélection",
|
|
318
321
|
"actionBar.itemsSelected": "{{count}} éléments sélectionnés.",
|
|
319
322
|
"fieldLabel.required": "(obligatoire)",
|
|
320
|
-
"fieldLabel.optional": "(facultatif)"
|
|
323
|
+
"fieldLabel.optional": "(facultatif)",
|
|
324
|
+
"fieldLabel.moreInfo": "Plus d'informations"
|
|
321
325
|
};
|
|
322
326
|
var fr_default = fr;
|
|
323
327
|
|
|
@@ -344,7 +348,8 @@ const it = {
|
|
|
344
348
|
"actionBar.clearSelection": "Cancella selezione",
|
|
345
349
|
"actionBar.itemsSelected": "{{count}} elementi selezionati.",
|
|
346
350
|
"fieldLabel.required": "(obbligatorio)",
|
|
347
|
-
"fieldLabel.optional": "(facoltativo)"
|
|
351
|
+
"fieldLabel.optional": "(facoltativo)",
|
|
352
|
+
"fieldLabel.moreInfo": "Maggiori informazioni"
|
|
348
353
|
};
|
|
349
354
|
var it_default = it;
|
|
350
355
|
|
|
@@ -4221,6 +4226,72 @@ const FieldLabel = React.forwardRef((componentProps, forwardRef) => {
|
|
|
4221
4226
|
});
|
|
4222
4227
|
});
|
|
4223
4228
|
FieldLabel.displayName = "FieldLabel";
|
|
4229
|
+
/**
|
|
4230
|
+
* Row layout container that groups a `FieldLabel` with optional label add-ons on one line.
|
|
4231
|
+
* Renders a `<div data-slot="field-label-row">` with `flex w-full items-center gap-1`.
|
|
4232
|
+
* Any child carrying `data-slot="field-label-aside"` (e.g. `FieldLabelAside`) is pushed to the
|
|
4233
|
+
* right edge via `ml-auto`.
|
|
4234
|
+
*
|
|
4235
|
+
* @example
|
|
4236
|
+
* ```tsx
|
|
4237
|
+
* <FieldLabelRow>
|
|
4238
|
+
* <FieldLabel htmlFor="taxid">Tax ID Number</FieldLabel>
|
|
4239
|
+
* <FieldLabelAside render={<a href="/help/tax-id" />}>Where do I find this?</FieldLabelAside>
|
|
4240
|
+
* </FieldLabelRow>
|
|
4241
|
+
* ```
|
|
4242
|
+
*/
|
|
4243
|
+
const FieldLabelRow = React.forwardRef((componentProps, forwardRef) => {
|
|
4244
|
+
const { className, ...props } = componentProps;
|
|
4245
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4246
|
+
ref: forwardRef,
|
|
4247
|
+
"data-slot": "field-label-row",
|
|
4248
|
+
className: cn("flex w-full items-center gap-1 [&>[data-slot=field-label-aside]]:ml-auto", className),
|
|
4249
|
+
...props
|
|
4250
|
+
});
|
|
4251
|
+
});
|
|
4252
|
+
FieldLabelRow.displayName = "FieldLabelRow";
|
|
4253
|
+
/**
|
|
4254
|
+
* An info `(i)` icon shown beside a `FieldLabel` (inside a `FieldLabelRow`, never inside the
|
|
4255
|
+
* `<label>` itself). Click/tap opens a Popover with purely additive context — use only when ~90% of
|
|
4256
|
+
* users can complete the field without reading it. `children` is the popover content.
|
|
4257
|
+
*/
|
|
4258
|
+
const FieldLabelInfo = React.forwardRef((componentProps, forwardRef) => {
|
|
4259
|
+
const { className, children, "aria-label": ariaLabel, ...props } = componentProps;
|
|
4260
|
+
const t = useDsTranslation("ds");
|
|
4261
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [/* @__PURE__ */ jsx(PopoverTrigger, {
|
|
4262
|
+
ref: forwardRef,
|
|
4263
|
+
"data-slot": "field-label-info",
|
|
4264
|
+
"aria-label": ariaLabel ?? t("fieldLabel.moreInfo"),
|
|
4265
|
+
className: cn("inline-flex items-center text-muted-foreground hover:text-foreground", className),
|
|
4266
|
+
...props,
|
|
4267
|
+
children: /* @__PURE__ */ jsx(Info, { className: "size-4" })
|
|
4268
|
+
}), /* @__PURE__ */ jsx(PopoverContent, { children })] });
|
|
4269
|
+
});
|
|
4270
|
+
FieldLabelInfo.displayName = "FieldLabelInfo";
|
|
4271
|
+
/**
|
|
4272
|
+
* Wrapper for content shown at the **right end** of a `FieldLabelRow` — a "look-it-up" link
|
|
4273
|
+
* ("Where do I find this?"), a popover trigger, or plain helper text. It enforces only placement
|
|
4274
|
+
* (`data-slot="field-label-aside"`, right-aligned by `FieldLabelRow`) and the label-row typography
|
|
4275
|
+
* (`text-sm leading-normal font-normal`); it imposes **no** link styling. Put whatever you want
|
|
4276
|
+
* inside — an `Anchor`, a `PopoverTrigger`, text — and it carries its own appearance.
|
|
4277
|
+
*
|
|
4278
|
+
* @example
|
|
4279
|
+
* ```tsx
|
|
4280
|
+
* <FieldLabelAside>
|
|
4281
|
+
* <Anchor href="/help/tax-id">Where do I find this?</Anchor>
|
|
4282
|
+
* </FieldLabelAside>
|
|
4283
|
+
* ```
|
|
4284
|
+
*/
|
|
4285
|
+
const FieldLabelAside = React.forwardRef((componentProps, forwardRef) => {
|
|
4286
|
+
const { className, ...props } = componentProps;
|
|
4287
|
+
return /* @__PURE__ */ jsx("span", {
|
|
4288
|
+
ref: forwardRef,
|
|
4289
|
+
"data-slot": "field-label-aside",
|
|
4290
|
+
className: cn("text-sm leading-normal font-normal", className),
|
|
4291
|
+
...props
|
|
4292
|
+
});
|
|
4293
|
+
});
|
|
4294
|
+
FieldLabelAside.displayName = "FieldLabelAside";
|
|
4224
4295
|
const FieldTitle = React.forwardRef((componentProps, forwardRef) => {
|
|
4225
4296
|
const { className, ...props } = componentProps;
|
|
4226
4297
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -4232,11 +4303,12 @@ const FieldTitle = React.forwardRef((componentProps, forwardRef) => {
|
|
|
4232
4303
|
});
|
|
4233
4304
|
FieldTitle.displayName = "FieldTitle";
|
|
4234
4305
|
const FieldDescription = React.forwardRef((componentProps, forwardRef) => {
|
|
4235
|
-
const { className, ...props } = componentProps;
|
|
4306
|
+
const { className, variant = "contextual", ...props } = componentProps;
|
|
4236
4307
|
return /* @__PURE__ */ jsx("p", {
|
|
4237
4308
|
ref: forwardRef,
|
|
4238
4309
|
"data-slot": "field-description",
|
|
4239
|
-
|
|
4310
|
+
"data-variant": variant,
|
|
4311
|
+
className: cn("text-left text-sm leading-normal font-normal text-muted-foreground group-has-[[data-orientation=horizontal]]/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", variant === "contextual" && "group-data-[invalid=true]/field:hidden", className),
|
|
4240
4312
|
...props
|
|
4241
4313
|
});
|
|
4242
4314
|
});
|
|
@@ -6268,4 +6340,4 @@ function useAudioGauge(options = {}) {
|
|
|
6268
6340
|
}
|
|
6269
6341
|
|
|
6270
6342
|
//#endregion
|
|
6271
|
-
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 };
|
|
6343
|
+
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, FieldLabelAside, FieldLabelInfo, FieldLabelRow, 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 };
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root,:host{--color-charcoal-50:#f6fafc;--color-charcoal-300:#b0c4d1;--color-charcoal-700:#3a5362;--color-charcoal-900:#132c3b;--color-neutral-50:#f8f9fc;--color-neutral-100:#f0f2f6;--color-neutral-200:#e4e6ea;--color-neutral-400:#a4a6aa;--color-neutral-500:#7e8084;--color-neutral-600:#64666a;--color-neutral-700:#4b4d51;--color-neutral-800:#36383c;--color-neutral-900:#24262a;--color-neutral-950:#0b0d11;--color-red-50:#fff7f5;--color-red-400:#ff7256;--color-red-600:#db391a;--color-red-950:#420b00;--color-yellow-50:#fffcf3;--color-yellow-400:#f3ad26;--color-yellow-500:#d68100;--color-yellow-700:#8f5600;--color-yellow-950:#2f1c00;--color-green-50:#f4fffb;--color-green-400:#37cd8e;--color-green-500:#13a96a;--color-green-600:#00884f;--color-green-700:#006a3d;--color-green-950:#002817;--color-blue-50:#f5faff;--color-blue-400:#70b1ff;--color-blue-500:#388ef6;--color-blue-600:#1e74dc;--color-blue-700:#055bc3;--color-blue-950:#001f45;--color-purple-600:#6551d6;--color-purple-700:#4c38bd;--color-pink-500:#eb5e7c;--color-pink-600:#cf4260;--font-sans:"Fellix",sans-serif}.ds-emoji-picker .EmojiPickerReact,.ds-emoji-picker .EmojiPickerReact.epr-dark-theme{--epr-emoji-size:24px;--epr-category-navigation-button-size:24px;--epr-header-padding:calc(var(--spacing)*2)calc(var(--spacing)*2);--epr-category-label-height:calc(var(--spacing)*8);--epr-bg-color:var(--popover);--epr-category-label-bg-color:var(--popover);--epr-picker-border-color:var(--border);--epr-search-input-bg-color:var(--muted);--epr-search-input-bg-color-active:var(--muted);--epr-search-border-color:var(--ring);--epr-category-icon-active-color:var(--primary);font-family:var(--font-sans)}.ds-emoji-picker .EmojiPickerReact *{font-family:inherit}.ds-emoji-picker .EmojiPickerReact .epr-emoji-category>.epr-emoji-category-label{font-weight:400}.ds-emoji-picker .EmojiPickerReact .epr-category-nav>button.epr-cat-btn:focus:before{content:none}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}}@keyframes badge-glow{0%,to{filter:drop-shadow(0 0 2px var(--badge-glow))}50%{filter:drop-shadow(0 0 5px var(--badge-glow))}}@layer theme{:root,:host{--background:#fff;--foreground:var(--color-neutral-950);--card:#fff;--card-foreground:var(--color-neutral-950);--popover:#fff;--popover-foreground:var(--color-neutral-950);--primary:var(--color-green-600);--primary-foreground:#fff;--secondary:var(--color-charcoal-700);--secondary-foreground:var(--color-charcoal-50);--info:var(--color-blue-500);--info-foreground:var(--color-blue-700);--info-background:var(--color-blue-50);--success:var(--color-green-500);--success-foreground:var(--color-green-700);--success-background:var(--color-green-50);--warning:var(--color-yellow-500);--warning-foreground:var(--color-yellow-700);--warning-background:var(--color-yellow-50);--muted:var(--color-neutral-100);--muted-foreground:var(--color-neutral-600);--accent:var(--color-neutral-100);--accent-foreground:var(--color-neutral-900);--destructive:var(--color-red-600);--destructive-foreground:var(--color-red-50);--destructive-background:var(--color-red-50);--border:var(--color-neutral-200);--input:var(--color-neutral-200);--ring:var(--color-neutral-400);--chart-1:var(--color-green-600);--chart-2:var(--color-blue-600);--chart-3:var(--color-purple-700);--chart-4:var(--color-yellow-400);--chart-5:var(--color-pink-500);--radius:.625rem;--sidebar:#fff;--sidebar-foreground:var(--color-neutral-800);--sidebar-primary:var(--color-green-600);--sidebar-primary-foreground:#fff;--sidebar-accent:var(--color-neutral-100);--sidebar-accent-foreground:var(--color-neutral-900);--sidebar-border:var(--color-neutral-200);--sidebar-ring:var(--color-neutral-400);--badge-film-10:#ffffff1a;--badge-film-40:#fff6;--badge-film-60:#fff9;--badge-film-80:#fffc}[data-theme=dark],[data-theme=dark] *{--background:var(--color-neutral-950);--foreground:var(--color-neutral-50);--card:var(--color-neutral-900);--card-foreground:var(--color-neutral-50);--popover:var(--color-neutral-800);--popover-foreground:var(--color-neutral-50);--primary:var(--color-green-500);--primary-foreground:var(--color-neutral-950);--secondary:var(--color-charcoal-300);--secondary-foreground:var(--color-charcoal-900);--info:var(--color-blue-500);--info-foreground:var(--color-blue-400);--info-background:var(--color-blue-950);--success:var(--color-green-500);--success-foreground:var(--color-green-400);--success-background:var(--color-green-950);--warning:var(--color-yellow-500);--warning-foreground:var(--color-yellow-400);--warning-background:var(--color-yellow-950);--muted:var(--color-neutral-800);--muted-foreground:var(--color-neutral-400);--accent:var(--color-neutral-700);--accent-foreground:var(--color-neutral-50);--destructive:var(--color-red-400);--destructive-foreground:var(--color-red-50);--destructive-background:var(--color-red-950);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:var(--color-neutral-500);--chart-1:var(--color-green-500);--chart-2:var(--color-blue-500);--chart-3:var(--color-purple-600);--chart-4:var(--color-yellow-500);--chart-5:var(--color-pink-600);--sidebar:var(--color-neutral-900);--sidebar-foreground:var(--color-neutral-50);--sidebar-primary:var(--color-green-500);--sidebar-primary-foreground:#fff;--sidebar-accent:var(--color-neutral-800);--sidebar-accent-foreground:var(--color-neutral-50);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:var(--color-neutral-600);--badge-film-10:#0a0a0a1a;--badge-film-40:#0a0a0a66;--badge-film-60:#0a0a0a99;--badge-film-80:#0a0a0acc}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aircall/ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": [
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"default": "./dist/index.js"
|
|
27
27
|
},
|
|
28
28
|
"./globals.css": "./dist/globals.css",
|
|
29
|
+
"./theme.css": "./dist/theme.css",
|
|
29
30
|
"./fonts/*": "./src/fonts/*.woff2"
|
|
30
31
|
},
|
|
31
32
|
"peerDependencies": {
|
|
@@ -63,8 +64,7 @@
|
|
|
63
64
|
"next-themes": "0.4.6",
|
|
64
65
|
"sonner": "2.0.3",
|
|
65
66
|
"tailwind-merge": "3.4.0",
|
|
66
|
-
"tw-animate-css": "1.4.0"
|
|
67
|
-
"zod": "3.24.2"
|
|
67
|
+
"tw-animate-css": "1.4.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@aircall/numbers": "*",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"scripts": {
|
|
119
119
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
120
120
|
"build:js": "tsdown --config ./tsdown.config.ts",
|
|
121
|
-
"build:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/globals.css --minify",
|
|
121
|
+
"build:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/globals.css --minify && tailwindcss -i ./src/styles/theme.css -o ./dist/theme.css --minify",
|
|
122
122
|
"build:package": "pnpm run build:js && pnpm run build:css",
|
|
123
123
|
"lint": "eslint . --max-warnings 0",
|
|
124
124
|
"shadcn:add": "pnpx shadcn@latest add",
|