@uisatin/ui 0.3.0 → 0.5.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/CHANGELOG.md +19 -0
- package/{chunk-NQL6SIIB.js → chunk-2643HEXD.js} +1 -1
- package/{chunk-UZ4DXU6W.js → chunk-3VVO5MY5.js} +4 -4
- package/{chunk-EF5GT4OG.js → chunk-47DDBME3.js} +3 -3
- package/{chunk-JBKBRAC4.js → chunk-5663JVE5.js} +3 -3
- package/chunk-67CBFB6Y.js +99 -0
- package/{chunk-T6L32XXH.js → chunk-6DWLTGRQ.js} +30 -7
- package/{chunk-S7QHBVPX.js → chunk-6GNMUJQ4.js} +3 -3
- package/{chunk-Z7S2KQZS.js → chunk-6JTSZAGO.js} +1 -1
- package/chunk-6RLSRMB5.js +14 -0
- package/{chunk-GI2SMFZL.js → chunk-6Y6CY2DP.js} +1 -1
- package/{chunk-XUOSJMEJ.js → chunk-7NV53EL5.js} +1 -1
- package/{chunk-LFGUJHFF.js → chunk-7SVMERPH.js} +2 -2
- package/chunk-A52HUWVM.js +24 -0
- package/chunk-AKEZCWNW.js +29 -0
- package/{chunk-NH3EHMIL.js → chunk-APRVUOD6.js} +1 -1
- package/{chunk-DPYIBFQD.js → chunk-C435UD7V.js} +4 -3
- package/{chunk-5XTUFBZI.js → chunk-C6WRJ7DG.js} +1 -1
- package/{chunk-X66KTATQ.js → chunk-CQFAMWZI.js} +2 -2
- package/{chunk-YJK4MGSI.js → chunk-DAKVTPYZ.js} +4 -4
- package/{chunk-W472DBMT.js → chunk-DMZW4LGU.js} +3 -3
- package/chunk-EBZHGRM5.js +46 -0
- package/{chunk-O46O6LFQ.js → chunk-EHEXE2UV.js} +20 -1
- package/{chunk-UCCNXGLG.js → chunk-EQAFDIPE.js} +9 -7
- package/{chunk-LB37KTJH.js → chunk-EXKSKYG3.js} +2 -2
- package/chunk-FB6DG3LR.js +35 -0
- package/chunk-GH2DEOGO.js +67 -0
- package/{chunk-J7RMFN54.js → chunk-GKDMCY2S.js} +1 -1
- package/chunk-GTFUAA6H.js +42 -0
- package/{chunk-SAYNV7B3.js → chunk-HI6QIG55.js} +4 -4
- package/{chunk-SDOTDMYG.js → chunk-HZV7EXGU.js} +2 -2
- package/{chunk-RHQHDYTE.js → chunk-IKJIR6VL.js} +2 -2
- package/{chunk-ISYKZCPJ.js → chunk-INJWE2LD.js} +2 -2
- package/chunk-J5UQPROI.js +56 -0
- package/{chunk-5725MFGQ.js → chunk-JCR5TWTF.js} +4 -4
- package/chunk-JKOBDLP3.js +25 -0
- package/{chunk-FAJ3OVL4.js → chunk-JR3VVDV6.js} +1 -1
- package/{chunk-CVNRZ2YV.js → chunk-JYGCZWET.js} +1 -1
- package/{chunk-SPGUZMCC.js → chunk-K5G5OEV5.js} +2 -2
- package/{chunk-GMETYACH.js → chunk-KDU7AT2T.js} +2 -2
- package/chunk-KITXKIYW.js +104 -0
- package/{chunk-JYOZUQNU.js → chunk-KQNA22D3.js} +2 -2
- package/{chunk-OURZQM27.js → chunk-L5PPN42A.js} +11 -4
- package/{chunk-HK6WINL6.js → chunk-LAOE6Y57.js} +3 -3
- package/{chunk-ZBZ3ZQRB.js → chunk-LI5VYDLN.js} +4 -4
- package/{chunk-M2HEVFQ3.js → chunk-LKSFTNPF.js} +1 -1
- package/chunk-LLW3X4ZJ.js +39 -0
- package/{chunk-5KTBSMQU.js → chunk-LWRB4DED.js} +1 -1
- package/{chunk-LB7Z6BSK.js → chunk-M7RILZVW.js} +6 -6
- package/{chunk-674SRBZK.js → chunk-MOGWOUCN.js} +3 -3
- package/chunk-NCIRJ5V2.js +108 -0
- package/{chunk-SSOFFQ5T.js → chunk-NTSU44FY.js} +8 -1
- package/{chunk-BR2B4OIT.js → chunk-P36KBUYD.js} +3 -3
- package/{chunk-3DHJXU45.js → chunk-P6RHT2VM.js} +1 -1
- package/{chunk-WLQD5BN2.js → chunk-PD2KD5OR.js} +1 -1
- package/{chunk-OVKPPXK5.js → chunk-PP46SY7M.js} +2 -2
- package/{chunk-FB5HTCO2.js → chunk-PTK4QAOQ.js} +4 -4
- package/{chunk-IKO3GQFE.js → chunk-Q7KVC5B4.js} +3 -3
- package/{chunk-UUCVRIVP.js → chunk-R3DTMBDT.js} +3 -3
- package/{chunk-UGIVCXGN.js → chunk-R4KPFBMK.js} +1 -1
- package/{chunk-XH56JGYC.js → chunk-R5TQ3HNB.js} +1 -1
- package/chunk-RFSPJECL.js +84 -0
- package/chunk-RPL6FRVX.js +88 -0
- package/{chunk-SZJIVBOD.js → chunk-STYOBAC7.js} +3 -3
- package/{chunk-W4RDTP6W.js → chunk-SVUWR3HD.js} +3 -3
- package/{chunk-7Q76HLRQ.js → chunk-T7P3OEBP.js} +4 -4
- package/{chunk-TT2N5752.js → chunk-TB3ZRV3Y.js} +2 -2
- package/{chunk-BN7FDKCJ.js → chunk-TOY6YPTG.js} +2 -2
- package/{chunk-PHNR6ZQ7.js → chunk-U6X6ODDJ.js} +2 -2
- package/{chunk-6VKV36OK.js → chunk-UAJ6M34K.js} +4 -4
- package/{chunk-PD6YPFYN.js → chunk-W2EH6RY5.js} +1 -1
- package/{chunk-X2GNMNZQ.js → chunk-W2QQQWNE.js} +2 -2
- package/{chunk-JCXI7VQL.js → chunk-WALANB3V.js} +2 -2
- package/{chunk-NL574STL.js → chunk-WCUR44O6.js} +2 -2
- package/{chunk-PUWSL5XW.js → chunk-WJYJMX5S.js} +1 -1
- package/{chunk-AIMQNLPY.js → chunk-WZSLDYUU.js} +6 -29
- package/chunk-XU6JJDMZ.js +117 -0
- package/{chunk-57QEOCDZ.js → chunk-XWPH7C2W.js} +1 -1
- package/{chunk-73Z7NMQQ.js → chunk-YXWXSRXG.js} +5 -5
- package/{chunk-CGOH5IYX.js → chunk-YY236ZSJ.js} +3 -3
- package/components/accordion.js +2 -2
- package/components/action-button.d.ts +37 -0
- package/components/action-button.js +5 -0
- package/components/agent-loading.js +2 -2
- package/components/agent-picker.js +5 -4
- package/components/agent-suggestion.js +5 -5
- package/components/alert.d.ts +37 -0
- package/components/alert.js +5 -0
- package/components/announcement-bar.js +6 -5
- package/components/attachment.js +5 -4
- package/components/avatar.js +4 -4
- package/components/badge.js +2 -2
- package/components/banner.d.ts +3 -2
- package/components/banner.js +5 -3
- package/components/bar-chart.js +9 -9
- package/components/breadcrumb.js +5 -5
- package/components/button-group.d.ts +26 -0
- package/components/button-group.js +5 -0
- package/components/button.d.ts +13 -1
- package/components/button.js +4 -2
- package/components/card.js +5 -3
- package/components/channel-chart.js +9 -9
- package/components/chart.js +8 -8
- package/components/checkbox.js +2 -2
- package/components/chip.js +2 -2
- package/components/citations.js +4 -4
- package/components/code-block.js +5 -3
- package/components/combobox.js +10 -9
- package/components/command-menu.js +5 -5
- package/components/context-menu.js +5 -5
- package/components/cookie-consent.js +5 -3
- package/components/date-picker.js +9 -8
- package/components/decision-card.js +6 -5
- package/components/dialog.d.ts +2 -7
- package/components/dialog.js +6 -4
- package/components/donut-chart.js +9 -9
- package/components/dot.js +2 -2
- package/components/dropdown.js +4 -4
- package/components/empty-state.js +2 -2
- package/components/field-group.d.ts +27 -0
- package/components/field-group.js +3 -0
- package/components/file-upload.js +7 -6
- package/components/form-field.d.ts +38 -1
- package/components/form-field.js +2 -2
- package/components/form.d.ts +47 -0
- package/components/form.js +3 -0
- package/components/hover-card.js +2 -2
- package/components/input-group.d.ts +21 -0
- package/components/input-group.js +6 -0
- package/components/input-otp.js +7 -7
- package/components/input.d.ts +5 -1
- package/components/input.js +3 -3
- package/components/kbd.js +2 -2
- package/components/labels.d.ts +7 -0
- package/components/labels.js +1 -1
- package/components/line-chart.js +10 -10
- package/components/link.d.ts +20 -0
- package/components/link.js +3 -0
- package/components/list.d.ts +46 -0
- package/components/list.js +2 -0
- package/components/message-actions.js +5 -4
- package/components/message.js +8 -7
- package/components/number-input.js +7 -7
- package/components/pagination.js +5 -3
- package/components/password-input.d.ts +16 -0
- package/components/password-input.js +7 -0
- package/components/popover.js +3 -3
- package/components/progress.js +2 -2
- package/components/prompt-bar.js +6 -5
- package/components/radio.js +2 -2
- package/components/search-bar.js +3 -3
- package/components/segmented-control.js +2 -2
- package/components/select.d.ts +2 -1
- package/components/select.js +6 -6
- package/components/selectable-card.d.ts +37 -0
- package/components/selectable-card.js +2 -0
- package/components/selectable-checkbox.d.ts +14 -0
- package/components/selectable-checkbox.js +4 -0
- package/components/selectable-radio.d.ts +16 -0
- package/components/selectable-radio.js +3 -0
- package/components/separator.d.ts +18 -0
- package/components/separator.js +2 -0
- package/components/sheet.js +7 -5
- package/components/sidebar.js +2 -2
- package/components/skeleton.js +2 -2
- package/components/slider.js +7 -7
- package/components/spinner.d.ts +18 -0
- package/components/spinner.js +3 -0
- package/components/split-button.d.ts +24 -0
- package/components/split-button.js +8 -0
- package/components/streaming-text.js +2 -2
- package/components/switch.js +2 -2
- package/components/table.js +4 -4
- package/components/tabs.js +2 -2
- package/components/textarea.js +3 -3
- package/components/thinking.js +3 -3
- package/components/toast.js +5 -4
- package/components/toggle.js +2 -2
- package/components/tooltip.js +3 -3
- package/index.d.ts +16 -2
- package/index.js +80 -65
- package/lib/utils.js +1 -1
- package/package.json +1 -1
- package/styles.css +1 -1
- package/theme/create-theme.d.ts +2 -1
- package/theme/index.js +1 -1
- package/chunk-VUOAPWTF.js +0 -86
package/components/select.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
'use client';export { FieldChrome, Select, SelectChevron, isOptionGroups, useFieldChrome } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
'use client';export { FieldChrome, Select, SelectChevron, isOptionGroups, useFieldChrome } from '../chunk-EQAFDIPE.js';
|
|
2
|
+
import '../chunk-KITXKIYW.js';
|
|
3
|
+
import '../chunk-P36KBUYD.js';
|
|
4
|
+
import '../chunk-XWPH7C2W.js';
|
|
5
|
+
import '../chunk-NTSU44FY.js';
|
|
6
|
+
import '../chunk-EHEXE2UV.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* SelectableCard: what SelectableRadio and SelectableCheckbox share. A card with an optional
|
|
4
|
+
* icon and a title over a description; the card's border shows the state
|
|
5
|
+
* (styles/components.css): border/default, border/strong on hover, an action/primary border
|
|
6
|
+
* with a 1px ring of the same when selected, the focus ring around the whole card.
|
|
7
|
+
*
|
|
8
|
+
* `icon` is a 16px glyph in a square muted tile as tall as the title and description; it takes
|
|
9
|
+
* the text colour once the card is selected. `children` go under the description (a price,
|
|
10
|
+
* Badges). Two sizes, the padding even on every side, every size on the scale:
|
|
11
|
+
*
|
|
12
|
+
* - `md` (default): 12px padding, radius-xl, 12px gap. Title 14/18 medium as in Banner, 2px,
|
|
13
|
+
* description in the theme's body size on a 20px line, muted: 40px of text, a 40px tile.
|
|
14
|
+
* - `sm`: 8px padding, radius-lg, 10px gap. Title 13/18 medium over a 13/18 description:
|
|
15
|
+
* 36px of text, a 36px tile.
|
|
16
|
+
* - A title alone is one 20px line next to a 20px tile.
|
|
17
|
+
*/
|
|
18
|
+
export interface SelectableCardBaseProps {
|
|
19
|
+
title: React.ReactNode;
|
|
20
|
+
description?: React.ReactNode;
|
|
21
|
+
/** A 16px glyph, shown in a tile as tall as the title and description. */
|
|
22
|
+
icon?: React.ReactNode;
|
|
23
|
+
size?: 'sm' | 'md';
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Extra content under the description. */
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
}
|
|
28
|
+
/** @internal The icon tile and the text of a selectable card. */
|
|
29
|
+
export declare function SelectableCardBody({ id, title, description, icon, size, children, }: Omit<SelectableCardBaseProps, 'className'> & {
|
|
30
|
+
id: string;
|
|
31
|
+
}): React.JSX.Element;
|
|
32
|
+
/** The ids SelectableRadio and SelectableCheckbox give the control, title and description. */
|
|
33
|
+
export declare function useSelectableIds(id: string | undefined, description: React.ReactNode): {
|
|
34
|
+
controlId: string;
|
|
35
|
+
'aria-labelledby': string;
|
|
36
|
+
'aria-describedby': string | undefined;
|
|
37
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type CheckboxProps } from './checkbox.js';
|
|
3
|
+
import { type SelectableCardBaseProps } from './selectable-card.js';
|
|
4
|
+
/**
|
|
5
|
+
* SelectableCheckbox: a Checkbox as a whole card, for picking several options that each need a
|
|
6
|
+
* line of explanation or an icon: integrations to connect, tools an agent may use, add-ons.
|
|
7
|
+
* The card is the checkbox's `<label>`, so a click anywhere on it toggles the box, which sits
|
|
8
|
+
* at the card's right edge, on the middle of the title's first line. Checked cards take the
|
|
9
|
+
* action/primary border. Lay them out in a grid, or a FieldGroup with `variant="choices"` for
|
|
10
|
+
* one legend and one error.
|
|
11
|
+
*/
|
|
12
|
+
export interface SelectableCheckboxProps extends Omit<CheckboxProps, 'label' | 'description' | 'placement' | 'title' | 'children'>, SelectableCardBaseProps {
|
|
13
|
+
}
|
|
14
|
+
export declare function SelectableCheckbox({ title, description, icon, size, className, children, id, ...props }: SelectableCheckboxProps): React.JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
|
|
3
|
+
import { type SelectableCardBaseProps } from './selectable-card.js';
|
|
4
|
+
/**
|
|
5
|
+
* SelectableRadio: one option of a RadioGroup drawn as a whole card, with no radio circle: the
|
|
6
|
+
* card itself is the radio (`role="radio"`), and the selected one is the card with the
|
|
7
|
+
* action/primary border. For choices that need a line of explanation or an icon: plans,
|
|
8
|
+
* roles, the mode an agent runs in.
|
|
9
|
+
*
|
|
10
|
+
* Put the cards in a `RadioGroup`, which owns the value: a click or Space picks a card, arrow
|
|
11
|
+
* keys move between them, Tab enters and leaves the group. `icon` adds a 16px glyph in a tile
|
|
12
|
+
* as tall as the title and description.
|
|
13
|
+
*/
|
|
14
|
+
export interface SelectableRadioProps extends Omit<React.ComponentProps<typeof RadioGroupPrimitive.Item>, 'title' | 'children' | 'asChild'>, SelectableCardBaseProps {
|
|
15
|
+
}
|
|
16
|
+
export declare function SelectableRadio({ title, description, icon, size, className, children, id, ...props }: SelectableRadioProps): React.JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Separator: a 1px rule in border/default between blocks of content, across (horizontal) or
|
|
4
|
+
* down (vertical, as tall as its row).
|
|
5
|
+
*
|
|
6
|
+
* With a `label` it becomes a rule with a word in the middle ("or" between sign-in options,
|
|
7
|
+
* "Today" in a feed), 13px muted, 12px from the lines on either side.
|
|
8
|
+
*
|
|
9
|
+
* Most rules are only visual, so it is `decorative` by default and screen readers skip it;
|
|
10
|
+
* set `decorative={false}` when it really splits the content into parts (`role="separator"`).
|
|
11
|
+
*/
|
|
12
|
+
export interface SeparatorProps extends React.ComponentProps<'div'> {
|
|
13
|
+
orientation?: 'horizontal' | 'vertical';
|
|
14
|
+
decorative?: boolean;
|
|
15
|
+
/** A word in the middle of a horizontal rule. */
|
|
16
|
+
label?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function Separator({ orientation, decorative, label, className, ...props }: SeparatorProps): React.JSX.Element;
|
package/components/sheet.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
'use client';export { Sheet, SheetClose } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Sheet, SheetClose } from '../chunk-DAKVTPYZ.js';
|
|
2
|
+
import '../chunk-WZSLDYUU.js';
|
|
3
|
+
import '../chunk-RPL6FRVX.js';
|
|
4
|
+
import '../chunk-6DWLTGRQ.js';
|
|
5
|
+
import '../chunk-AKEZCWNW.js';
|
|
6
|
+
import '../chunk-NTSU44FY.js';
|
|
7
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/sidebar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use client';export { Sidebar, SidebarGroup, SidebarItem, SidebarSubGroup, SidebarSubItem } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Sidebar, SidebarGroup, SidebarItem, SidebarSubGroup, SidebarSubItem } from '../chunk-WJYJMX5S.js';
|
|
2
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/skeleton.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use client';export { Skeleton } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Skeleton } from '../chunk-GKDMCY2S.js';
|
|
2
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/slider.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use client';export { Slider } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Slider } from '../chunk-PTK4QAOQ.js';
|
|
2
|
+
import '../chunk-L5PPN42A.js';
|
|
3
|
+
import '../chunk-KDU7AT2T.js';
|
|
4
|
+
import '../chunk-KITXKIYW.js';
|
|
5
|
+
import '../chunk-XWPH7C2W.js';
|
|
6
|
+
import '../chunk-NTSU44FY.js';
|
|
7
|
+
import '../chunk-EHEXE2UV.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Spinner: something is on its way and there's no telling how far along it is (for that, use
|
|
4
|
+
* Progress). A 1.5px ring at 20% under a quarter arc in the current colour, so it takes the
|
|
5
|
+
* colour of the text or button it sits in. Sizes follow the icon scale: xs 12, sm 14, md 16,
|
|
6
|
+
* lg 20. It turns once every 800ms, and still turns (at half speed) under reduced motion, since
|
|
7
|
+
* a stopped arc reads as stuck.
|
|
8
|
+
*
|
|
9
|
+
* On its own it is a `role="status"` named "Loading" (or `label`). Inside something that
|
|
10
|
+
* already says it's busy (a loading Button, a row with its own text) pass `label={null}` and it
|
|
11
|
+
* is hidden from screen readers.
|
|
12
|
+
*/
|
|
13
|
+
export interface SpinnerProps extends Omit<React.ComponentProps<'span'>, 'children'> {
|
|
14
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
15
|
+
/** What's loading, for screen readers. `null` hides the spinner from them. */
|
|
16
|
+
label?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export declare function Spinner({ size, label, className, ...props }: SpinnerProps): React.JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ButtonProps } from './button.js';
|
|
3
|
+
import { type DropdownMenuProps } from './dropdown.js';
|
|
4
|
+
/**
|
|
5
|
+
* SplitButton: the main action and, joined to it, an arrow that opens the related ones
|
|
6
|
+
* ("Publish" ▾ Schedule, Save as draft). Built from an attached ButtonGroup, two Buttons and a
|
|
7
|
+
* DropdownMenu, so it takes every Button variant, size and shape, and the menu takes
|
|
8
|
+
* `DropdownMenuItem`s (`label`, `icon`, `shortcut`…) and groups like any other.
|
|
9
|
+
*
|
|
10
|
+
* Use it when one action is the usual one and the others are its variations; when the actions
|
|
11
|
+
* are equals, use a DropdownMenu on its own. The arrow is named "More options" (`menuLabel`, or
|
|
12
|
+
* `moreOptions` in SatinLabels) and disabling the button disables both halves.
|
|
13
|
+
*/
|
|
14
|
+
export interface SplitButtonProps extends Omit<ButtonProps, 'iconOnly' | 'asChild'> {
|
|
15
|
+
/** The related actions: `DropdownMenuItem`s, optionally in `DropdownMenuGroup`s. */
|
|
16
|
+
menu: React.ReactNode;
|
|
17
|
+
/** Accessible name of the arrow. */
|
|
18
|
+
menuLabel?: string;
|
|
19
|
+
/** Passed to the DropdownMenu: `align` (default `end`), `side`, `open`, `onOpenChange`… */
|
|
20
|
+
menuProps?: Omit<DropdownMenuProps, 'trigger' | 'children'>;
|
|
21
|
+
/** Class names for the group around both halves. */
|
|
22
|
+
groupClassName?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function SplitButton({ menu, menuLabel, menuProps, groupClassName, variant, size, shape, disabled, children, ...props }: SplitButtonProps): React.JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';export { SplitButton } from '../chunk-FB6DG3LR.js';
|
|
2
|
+
import '../chunk-GH2DEOGO.js';
|
|
3
|
+
import '../chunk-P36KBUYD.js';
|
|
4
|
+
import '../chunk-XWPH7C2W.js';
|
|
5
|
+
import '../chunk-6DWLTGRQ.js';
|
|
6
|
+
import '../chunk-AKEZCWNW.js';
|
|
7
|
+
import '../chunk-NTSU44FY.js';
|
|
8
|
+
import '../chunk-EHEXE2UV.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use client';export { StreamingText } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
'use client';export { StreamingText } from '../chunk-LWRB4DED.js';
|
|
2
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/switch.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use client';export { Switch } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Switch } from '../chunk-APRVUOD6.js';
|
|
2
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use client';export { Table } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Table } from '../chunk-SVUWR3HD.js';
|
|
2
|
+
import '../chunk-W2QQQWNE.js';
|
|
3
|
+
import '../chunk-NTSU44FY.js';
|
|
4
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/tabs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use client';export { Tabs, TabsContent } from '../chunk-
|
|
1
|
+
'use client';export { Tabs, TabsContent } from '../chunk-P6RHT2VM.js';
|
|
2
2
|
import '../chunk-XETMIETJ.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/textarea.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use client';export { Textarea } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Textarea } from '../chunk-C435UD7V.js';
|
|
2
|
+
import '../chunk-KITXKIYW.js';
|
|
3
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/thinking.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use client';export { Thinking } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Thinking } from '../chunk-WCUR44O6.js';
|
|
2
|
+
import '../chunk-R4KPFBMK.js';
|
|
3
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/toast.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
'use client';export { Toast, Toaster, toast } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Toast, Toaster, toast } from '../chunk-YY236ZSJ.js';
|
|
2
|
+
import '../chunk-6DWLTGRQ.js';
|
|
3
|
+
import '../chunk-AKEZCWNW.js';
|
|
4
|
+
import '../chunk-NTSU44FY.js';
|
|
5
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/toggle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use client';export { Toggle, toggleVariants } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Toggle, toggleVariants } from '../chunk-R5TQ3HNB.js';
|
|
2
|
+
import '../chunk-EHEXE2UV.js';
|
package/components/tooltip.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
'use client';export { Tooltip, TooltipBubble } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
'use client';export { Tooltip, TooltipBubble } from '../chunk-KDU7AT2T.js';
|
|
2
|
+
import '../chunk-XWPH7C2W.js';
|
|
3
|
+
import '../chunk-EHEXE2UV.js';
|
package/index.d.ts
CHANGED
|
@@ -2,11 +2,15 @@ export { cn } from './lib/utils.js';
|
|
|
2
2
|
export * from './theme/index.js';
|
|
3
3
|
export * from './components/labels.js';
|
|
4
4
|
export * from './components/accordion.js';
|
|
5
|
+
export { ActionButton, type ActionButtonProps, type ActionButtonState } from './components/action-button.js';
|
|
6
|
+
export { Alert, type AlertProps, type AlertIntent } from './components/alert.js';
|
|
5
7
|
export * from './components/avatar.js';
|
|
6
8
|
export { Badge, badgeVariants, type BadgeProps, type BadgeTone } from './components/badge.js';
|
|
7
9
|
export * from './components/banner.js';
|
|
8
10
|
export { Breadcrumb, type BreadcrumbProps, type BreadcrumbItem } from './components/breadcrumb.js';
|
|
9
|
-
export { Button, buttonVariants, type ButtonProps } from './components/button.js';
|
|
11
|
+
export { Button, buttonVariants, ButtonDefaultsContext, type ButtonProps, type ButtonDefaults } from './components/button.js';
|
|
12
|
+
export { ButtonGroup, ButtonGroupSeparator, type ButtonGroupProps } from './components/button-group.js';
|
|
13
|
+
export { SplitButton, type SplitButtonProps } from './components/split-button.js';
|
|
10
14
|
export * from './components/card.js';
|
|
11
15
|
export { ChartCard, ChartTooltip, ChartLegendRow, ChartLegendPill, type ChartDatum, type ChartCardBaseProps } from './components/chart.js';
|
|
12
16
|
export { LineCard, AreaCard, type LineCardProps } from './components/line-chart.js';
|
|
@@ -22,8 +26,14 @@ export { Dialog, DialogClose, DialogAlert, CloseIcon, type DialogProps, type Dia
|
|
|
22
26
|
export * from './components/dot.js';
|
|
23
27
|
export { Floating, type FloatingProps, type FloatingSide } from './components/floating.js';
|
|
24
28
|
export { DropdownMenu, DropdownMenuGroup, DropdownMenuItem, MenuItemContent, menuItemClass, menuSurfaceClass, menuGroupClass, menuGroupLabelClass, type DropdownMenuProps, type DropdownMenuGroupProps, type DropdownMenuItemProps, type MenuItemContentProps } from './components/dropdown.js';
|
|
25
|
-
export { FormField, useFormField, type FormFieldProps, type FormFieldContextValue } from './components/form-field.js';
|
|
29
|
+
export { FormField, useFormField, useFormContext, FormContext, FieldSizeContext, FieldError, FieldDescription, RequiredMark, type FormFieldProps, type FormFieldContextValue, type FormContextValue } from './components/form-field.js';
|
|
30
|
+
export { Form, FormSection, FormActions, formValues, type FormProps, type FormSectionProps, type FormActionsProps, type FormValues } from './components/form.js';
|
|
31
|
+
export { FieldGroup, type FieldGroupProps } from './components/field-group.js';
|
|
26
32
|
export { Input, type InputProps } from './components/input.js';
|
|
33
|
+
export { InputGroup, InputGroupAddon, type InputGroupProps } from './components/input-group.js';
|
|
34
|
+
export { PasswordInput, type PasswordInputProps } from './components/password-input.js';
|
|
35
|
+
export { Item, List, type ItemProps, type ListProps } from './components/list.js';
|
|
36
|
+
export { Link, type LinkProps } from './components/link.js';
|
|
27
37
|
export * from './components/kbd.js';
|
|
28
38
|
export { Pagination, paginationRange, type PaginationProps } from './components/pagination.js';
|
|
29
39
|
export { Popover, PopoverClose, PopoverPanel, type PopoverProps } from './components/popover.js';
|
|
@@ -32,10 +42,14 @@ export { Radio, RadioGroup, type RadioProps, type RadioGroupProps } from './comp
|
|
|
32
42
|
export { SearchBar, type SearchBarProps } from './components/search-bar.js';
|
|
33
43
|
export { Select, FieldChrome, useFieldChrome, SelectChevron, type SelectProps, type SelectOption, type SelectGroup } from './components/select.js';
|
|
34
44
|
export { SegmentedControl, type SegmentedControlItem, type SegmentedControlProps } from './components/segmented-control.js';
|
|
45
|
+
export { SelectableRadio, type SelectableRadioProps } from './components/selectable-radio.js';
|
|
46
|
+
export { SelectableCheckbox, type SelectableCheckboxProps } from './components/selectable-checkbox.js';
|
|
47
|
+
export { Separator, type SeparatorProps } from './components/separator.js';
|
|
35
48
|
export { Sheet, SheetClose, type SheetProps } from './components/sheet.js';
|
|
36
49
|
export * from './components/sidebar.js';
|
|
37
50
|
export { Skeleton, type SkeletonProps } from './components/skeleton.js';
|
|
38
51
|
export { Slider, type SliderProps } from './components/slider.js';
|
|
52
|
+
export { Spinner, type SpinnerProps } from './components/spinner.js';
|
|
39
53
|
export { Switch, type SwitchProps } from './components/switch.js';
|
|
40
54
|
export { Table, type TableProps, type Column, type Row, type Sort } from './components/table.js';
|
|
41
55
|
export { Tabs, TabsContent, type TabsProps, type TabItem } from './components/tabs.js';
|
package/index.js
CHANGED
|
@@ -1,67 +1,82 @@
|
|
|
1
|
-
'use client';export { Toast, Toaster, toast } from './chunk-
|
|
2
|
-
export { Toggle, toggleVariants } from './chunk-
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
1
|
+
'use client';export { Toast, Toaster, toast } from './chunk-YY236ZSJ.js';
|
|
2
|
+
export { Toggle, toggleVariants } from './chunk-R5TQ3HNB.js';
|
|
3
|
+
export { SplitButton } from './chunk-FB6DG3LR.js';
|
|
4
|
+
export { StreamingText } from './chunk-LWRB4DED.js';
|
|
5
|
+
export { Switch } from './chunk-APRVUOD6.js';
|
|
6
|
+
export { Table } from './chunk-SVUWR3HD.js';
|
|
7
|
+
export { Tabs, TabsContent } from './chunk-P6RHT2VM.js';
|
|
8
|
+
export { Textarea } from './chunk-C435UD7V.js';
|
|
9
|
+
export { SelectableCheckbox } from './chunk-6RLSRMB5.js';
|
|
10
|
+
export { SelectableRadio } from './chunk-A52HUWVM.js';
|
|
11
|
+
export { Separator } from './chunk-LLW3X4ZJ.js';
|
|
12
|
+
export { Sheet, SheetClose } from './chunk-DAKVTPYZ.js';
|
|
13
|
+
export { Sidebar, SidebarGroup, SidebarItem, SidebarSubGroup, SidebarSubItem } from './chunk-WJYJMX5S.js';
|
|
14
|
+
export { Skeleton } from './chunk-GKDMCY2S.js';
|
|
15
|
+
export { Slider } from './chunk-PTK4QAOQ.js';
|
|
16
|
+
export { Popover, PopoverClose, PopoverPanel } from './chunk-7SVMERPH.js';
|
|
17
|
+
export { PromptBar, defaultActions as promptBarDefaultActions } from './chunk-JCR5TWTF.js';
|
|
18
|
+
export { Radio, RadioGroup } from './chunk-EXKSKYG3.js';
|
|
19
|
+
export { SearchBar } from './chunk-K5G5OEV5.js';
|
|
20
|
+
export { SegmentedControl } from './chunk-JYGCZWET.js';
|
|
21
|
+
import './chunk-EBZHGRM5.js';
|
|
22
|
+
export { AreaCard, LineCard } from './chunk-5663JVE5.js';
|
|
23
|
+
export { Link } from './chunk-J5UQPROI.js';
|
|
24
|
+
export { Item, List } from './chunk-67CBFB6Y.js';
|
|
25
|
+
export { Message } from './chunk-6GNMUJQ4.js';
|
|
26
|
+
export { Thinking } from './chunk-WCUR44O6.js';
|
|
27
|
+
export { MessageActions } from './chunk-STYOBAC7.js';
|
|
28
|
+
export { NumberInput } from './chunk-MOGWOUCN.js';
|
|
29
|
+
export { Pagination, paginationRange } from './chunk-TB3ZRV3Y.js';
|
|
30
|
+
export { PasswordInput } from './chunk-GTFUAA6H.js';
|
|
31
|
+
export { Form, FormActions, FormSection, formValues } from './chunk-NCIRJ5V2.js';
|
|
32
|
+
export { InputGroup, InputGroupAddon } from './chunk-JKOBDLP3.js';
|
|
33
|
+
export { InputOTP } from './chunk-PP46SY7M.js';
|
|
34
|
+
export { Input } from './chunk-L5PPN42A.js';
|
|
35
|
+
export { Dialog, DialogAlert, DialogClose } from './chunk-WZSLDYUU.js';
|
|
36
|
+
export { DonutCard } from './chunk-PD2KD5OR.js';
|
|
37
|
+
export { Dot, dotVariants } from './chunk-C6WRJ7DG.js';
|
|
38
|
+
export { EmptyState, emptyStateVariants } from './chunk-JR3VVDV6.js';
|
|
39
|
+
export { FieldGroup } from './chunk-RFSPJECL.js';
|
|
40
|
+
export { FileUpload, FileUploadItem, fileIconFor, formatBytes } from './chunk-YXWXSRXG.js';
|
|
41
|
+
export { Citation, Sources } from './chunk-47DDBME3.js';
|
|
42
|
+
export { HoverCard, hoverCardClass } from './chunk-W2EH6RY5.js';
|
|
43
|
+
export { CodeBlock } from './chunk-IKJIR6VL.js';
|
|
44
|
+
export { Combobox } from './chunk-M7RILZVW.js';
|
|
45
|
+
export { CommandMenu } from './chunk-3VVO5MY5.js';
|
|
46
|
+
export { ContextMenu, ContextMenuItem, ContextMenuSeparator, ContextMenuSub } from './chunk-CQFAMWZI.js';
|
|
47
|
+
export { CookieConsent } from './chunk-KQNA22D3.js';
|
|
48
|
+
export { Calendar, DatePicker, DatePickerPanel, DateRangePicker, DateRangePickerPanel, formatDate, formatRange } from './chunk-UAJ6M34K.js';
|
|
49
|
+
export { DecisionCard, DecisionItemPreview } from './chunk-HI6QIG55.js';
|
|
32
50
|
import './chunk-XETMIETJ.js';
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export { AVATAR_TOOLTIP_DELAY, Avatar, AvatarGroup, avatarVariants } from './chunk-BN7FDKCJ.js';
|
|
46
|
-
export { Tooltip, TooltipBubble } from './chunk-GMETYACH.js';
|
|
47
|
-
export { BarCard } from './chunk-ISYKZCPJ.js';
|
|
48
|
-
export { ChartCard, ChartLegendPill, ChartLegendRow, ChartTooltip } from './chunk-ZBZ3ZQRB.js';
|
|
49
|
-
export { Floating } from './chunk-ZHFIWDGF.js';
|
|
50
|
-
export { FieldChrome, Select, SelectChevron, useFieldChrome } from './chunk-UCCNXGLG.js';
|
|
51
|
-
export { FormField, useFormField } from './chunk-VUOAPWTF.js';
|
|
52
|
-
export { Breadcrumb } from './chunk-IKO3GQFE.js';
|
|
53
|
-
export { DropdownMenu, DropdownMenuGroup, DropdownMenuItem, MenuItemContent, menuGroupClass, menuGroupLabelClass, menuItemClass, menuSurfaceClass } from './chunk-BR2B4OIT.js';
|
|
54
|
-
export { Kbd, KbdArrowDown, KbdArrowUp, KbdGroup, KbdHint, KbdReturn, keysOf } from './chunk-57QEOCDZ.js';
|
|
55
|
-
export { contrast, defaultTheme, randomTheme, themeCss, themeVars } from './chunk-NQL6SIIB.js';
|
|
56
|
-
export { Accordion, AccordionItem } from './chunk-GI2SMFZL.js';
|
|
57
|
-
export { AgentLoading, FlappySprite, ShimmerLabel, TetrisLabel, TetrisMark, TetrisStill } from './chunk-UGIVCXGN.js';
|
|
58
|
-
export { AgentAvatar, AgentMenuItem, AgentPicker, AgentPickerRow } from './chunk-W472DBMT.js';
|
|
59
|
-
export { AgentSuggestion, AgentSuggestionChanges, AgentSuggestionDiff, AgentSuggestionMetric, AgentSuggestionQuote } from './chunk-7Q76HLRQ.js';
|
|
60
|
-
export { Progress } from './chunk-M2HEVFQ3.js';
|
|
61
|
-
export { Badge, badgeVariants } from './chunk-XUOSJMEJ.js';
|
|
62
|
-
export { AnnouncementBar } from './chunk-HK6WINL6.js';
|
|
63
|
-
export { Banner, bannerVariants } from './chunk-SDOTDMYG.js';
|
|
51
|
+
export { Breadcrumb } from './chunk-Q7KVC5B4.js';
|
|
52
|
+
export { ButtonGroup, ButtonGroupSeparator } from './chunk-GH2DEOGO.js';
|
|
53
|
+
export { Card, cardVariants } from './chunk-U6X6ODDJ.js';
|
|
54
|
+
export { ChannelCard } from './chunk-WALANB3V.js';
|
|
55
|
+
export { Checkbox } from './chunk-W2QQQWNE.js';
|
|
56
|
+
export { Chip, ChipAvatar, chipVariants } from './chunk-6JTSZAGO.js';
|
|
57
|
+
export { Alert, CloseIcon } from './chunk-RPL6FRVX.js';
|
|
58
|
+
export { AnnouncementBar } from './chunk-LAOE6Y57.js';
|
|
59
|
+
export { Attachment, AttachmentGroup, AttachmentPreview, AttachmentPreviewPager, AttachmentPreviewSheets, FileIcon } from './chunk-R3DTMBDT.js';
|
|
60
|
+
export { AVATAR_TOOLTIP_DELAY, Avatar, AvatarGroup, avatarVariants } from './chunk-TOY6YPTG.js';
|
|
61
|
+
export { Tooltip, TooltipBubble } from './chunk-KDU7AT2T.js';
|
|
62
|
+
export { Banner, bannerVariants } from './chunk-HZV7EXGU.js';
|
|
64
63
|
export { bannerMesh } from './chunk-YYFAZQ25.js';
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
64
|
+
export { BarCard } from './chunk-INJWE2LD.js';
|
|
65
|
+
export { ChartCard, ChartLegendPill, ChartLegendRow, ChartTooltip } from './chunk-LI5VYDLN.js';
|
|
66
|
+
export { Floating } from './chunk-ZHFIWDGF.js';
|
|
67
|
+
export { FieldChrome, Select, SelectChevron, useFieldChrome } from './chunk-EQAFDIPE.js';
|
|
68
|
+
export { FieldDescription, FieldError, FieldSizeContext, FormContext, FormField, RequiredMark, useFormContext, useFormField } from './chunk-KITXKIYW.js';
|
|
69
|
+
export { DropdownMenu, DropdownMenuGroup, DropdownMenuItem, MenuItemContent, menuGroupClass, menuGroupLabelClass, menuItemClass, menuSurfaceClass } from './chunk-P36KBUYD.js';
|
|
70
|
+
export { Kbd, KbdArrowDown, KbdArrowUp, KbdGroup, KbdHint, KbdReturn, keysOf } from './chunk-XWPH7C2W.js';
|
|
71
|
+
export { contrast, defaultTheme, randomTheme, themeCss, themeVars } from './chunk-2643HEXD.js';
|
|
72
|
+
export { Accordion, AccordionItem } from './chunk-6Y6CY2DP.js';
|
|
73
|
+
export { ActionButton } from './chunk-XU6JJDMZ.js';
|
|
74
|
+
export { AgentLoading, FlappySprite, ShimmerLabel, TetrisLabel, TetrisMark, TetrisStill } from './chunk-R4KPFBMK.js';
|
|
75
|
+
export { AgentAvatar, AgentMenuItem, AgentPicker, AgentPickerRow } from './chunk-DMZW4LGU.js';
|
|
76
|
+
export { Button, ButtonDefaultsContext, buttonVariants } from './chunk-6DWLTGRQ.js';
|
|
77
|
+
export { Spinner } from './chunk-AKEZCWNW.js';
|
|
78
|
+
export { AgentSuggestion, AgentSuggestionChanges, AgentSuggestionDiff, AgentSuggestionMetric, AgentSuggestionQuote } from './chunk-T7P3OEBP.js';
|
|
79
|
+
export { Progress } from './chunk-LKSFTNPF.js';
|
|
80
|
+
export { Badge, badgeVariants } from './chunk-7NV53EL5.js';
|
|
81
|
+
export { SatinLabels, defaultLabels, useSatinLabels } from './chunk-NTSU44FY.js';
|
|
82
|
+
export { cn } from './chunk-EHEXE2UV.js';
|
package/lib/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { cn } from '../chunk-
|
|
1
|
+
export { cn } from '../chunk-EHEXE2UV.js';
|
package/package.json
CHANGED