@crewlethq/ui 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion/Accordion.d.ts +3 -3
- package/dist/AddPill/AddPill.d.ts +1 -1
- package/dist/Announcer/Announcer.d.ts +1 -1
- package/dist/AppShell/AppShell.d.ts +5 -5
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/BrandLockup/BrandLockup.d.ts +1 -1
- package/dist/CalendarGrid/CalendarGrid.d.ts +1 -1
- package/dist/Callout/Callout.d.ts +1 -1
- package/dist/Canvas/Canvas.d.ts +1 -1
- package/dist/Card/Card.d.ts +6 -6
- package/dist/Charts/ActivityStrip.d.ts +1 -1
- package/dist/Charts/BarList.d.ts +1 -1
- package/dist/Charts/Legend.d.ts +1 -1
- package/dist/Charts/StackedBar.d.ts +1 -1
- package/dist/Charts/TimeSeries.d.ts +2 -2
- package/dist/CommandPalette/CommandPalette.d.ts +1 -1
- package/dist/Container/Container.d.ts +1 -1
- package/dist/Copyable/CopyButton.d.ts +2 -2
- package/dist/Copyable/Copyable.d.ts +1 -1
- package/dist/Count/Count.d.ts +1 -1
- package/dist/DataTable/CopyableCell.d.ts +1 -1
- package/dist/DataTable/DataTable.d.ts +2 -2
- package/dist/DataTable/RowActionsMenu.d.ts +1 -1
- package/dist/DataView/DataView.d.ts +1 -1
- package/dist/DataView/DataViewToolbar.d.ts +1 -1
- package/dist/DataView/FilterAxisBar.d.ts +2 -2
- package/dist/DateTimePicker/DateTimePicker.d.ts +1 -1
- package/dist/DescriptionList/DescriptionList.d.ts +2 -2
- package/dist/DiffList/DiffList.d.ts +1 -1
- package/dist/Disclosure/Disclosure.d.ts +1 -1
- package/dist/Disclosure/anatomy.d.ts +1 -1
- package/dist/EmptyState/EmptyState.d.ts +1 -1
- package/dist/EmptyValue/EmptyValue.d.ts +1 -1
- package/dist/EntityChip/EntityChip.d.ts +1 -1
- package/dist/Eyebrow/Eyebrow.d.ts +1 -1
- package/dist/FilterChip/FilterChip.d.ts +2 -2
- package/dist/ImageUpload/ImageUpload.d.ts +1 -1
- package/dist/InlineCode/InlineCode.d.ts +1 -1
- package/dist/Input/FormField.d.ts +1 -1
- package/dist/Input/FormRow.d.ts +1 -1
- package/dist/Input/FormSection.d.ts +1 -1
- package/dist/Input/Input.d.ts +1 -1
- package/dist/Input/Label.d.ts +1 -1
- package/dist/Input/ReadOnlyField.d.ts +1 -1
- package/dist/Kbd/Kbd.d.ts +1 -1
- package/dist/Layer/LayerHost.d.ts +1 -1
- package/dist/Layout/Layout.d.ts +4 -4
- package/dist/List/List.d.ts +2 -2
- package/dist/ListInput/ListInput.d.ts +1 -1
- package/dist/ListInput/index.js +2 -2
- package/dist/Menu/Menu.d.ts +1 -1
- package/dist/Meter/Meter.d.ts +1 -1
- package/dist/Modal/ConfirmModal.d.ts +1 -1
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/NewItemsNotice/NewItemsNotice.d.ts +1 -1
- package/dist/OrgLabel/OrgLabel.d.ts +1 -1
- package/dist/OrgNode/OrgNode.d.ts +3 -3
- package/dist/OrgTable/OrgTable.d.ts +4 -4
- package/dist/PageHeader/PageHeader.d.ts +1 -1
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/PricingCard/PricingCard.d.ts +10 -10
- package/dist/Prose/Prose.d.ts +1 -1
- package/dist/RelativeTime/RelativeTime.d.ts +1 -1
- package/dist/Section/Section.d.ts +1 -1
- package/dist/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/SidebarNav/SidebarNav.d.ts +3 -3
- package/dist/Skeleton/Skeleton.d.ts +1 -1
- package/dist/StatCard/StatCard.d.ts +1 -1
- package/dist/StatGroup/StatGroup.d.ts +1 -1
- package/dist/StatusDot/StatusDot.d.ts +1 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Tabs/Tabs.d.ts +3 -3
- package/dist/Tag/Tag.d.ts +1 -1
- package/dist/TagGroup/TagGroup.d.ts +1 -1
- package/dist/TagsInput/index.js +2 -2
- package/dist/Text/Text.d.ts +1 -1
- package/dist/ThemeSwitcher/ThemeSwitcher.d.ts +2 -2
- package/dist/TimeWindowPicker/TimeWindowPicker.d.ts +1 -1
- package/dist/Timeline/Timeline.d.ts +2 -2
- package/dist/Toaster/Toaster.d.ts +1 -1
- package/dist/Toolbar/Toolbar.d.ts +3 -3
- package/dist/Tooltip/Tooltip.d.ts +1 -1
- package/dist/TreeCanvas/TreeCanvas.d.ts +1 -1
- package/dist/TreeGrid/TreeGrid.d.ts +1 -1
- package/dist/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/generated/index.js +5 -5
- package/dist/index.js +5 -5
- package/dist/utils/headingLevel.d.ts +1 -1
- package/package.json +5 -5
- package/scripts/check-css-variables.mjs +1 -0
- package/dist/{chunk-RDGD7Z7I.js → chunk-BJSKPEZI.js} +1 -1
- package/dist/{chunk-EN6K2IFA.js → chunk-LFJ6UJTI.js} +1 -1
|
@@ -29,7 +29,7 @@ import { type OrgLabelContent } from '../OrgLabel/index.js';
|
|
|
29
29
|
*/
|
|
30
30
|
export type OrgNodeLabelProps = OrgLabelContent;
|
|
31
31
|
/** The icon, name and caption of an org chart node. */
|
|
32
|
-
export declare function OrgNodeLabel(props: OrgNodeLabelProps): import("react
|
|
32
|
+
export declare function OrgNodeLabel(props: OrgNodeLabelProps): import("react").JSX.Element;
|
|
33
33
|
export interface OrgNodeDisclosureProps extends HTMLAttributes<HTMLDivElement> {
|
|
34
34
|
/** The control itself, named and carrying `tabIndex={-1}`. */
|
|
35
35
|
children: ReactNode;
|
|
@@ -70,7 +70,7 @@ export interface OrgNodeDisclosureProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
70
70
|
* hiding) and the caller passes the one thing only the chart knows, which id
|
|
71
71
|
* this is.
|
|
72
72
|
*/
|
|
73
|
-
export declare function OrgNodeDisclosure({ children, className, ...rest }: OrgNodeDisclosureProps): import("react
|
|
73
|
+
export declare function OrgNodeDisclosure({ children, className, ...rest }: OrgNodeDisclosureProps): import("react").JSX.Element;
|
|
74
74
|
export interface OrgNodeLeadProps {
|
|
75
75
|
/**
|
|
76
76
|
* Nothing is set, so the pill is drawn as the outline of one: a unit with no
|
|
@@ -100,4 +100,4 @@ export interface OrgNodeLeadProps {
|
|
|
100
100
|
* not read the leads off. Separated from the name above by a hairline, so the
|
|
101
101
|
* node reads as a thing with a lead rather than as two lines of text.
|
|
102
102
|
*/
|
|
103
|
-
export declare function OrgNodeLead({ empty, clear, children, className }: OrgNodeLeadProps): import("react
|
|
103
|
+
export declare function OrgNodeLead({ empty, clear, children, className }: OrgNodeLeadProps): import("react").JSX.Element;
|
|
@@ -57,7 +57,7 @@ export interface OrgTableProps extends Omit<TreeGridProps, 'className' | 'labels
|
|
|
57
57
|
ref?: Ref<TreeViewHandle> | undefined;
|
|
58
58
|
className?: string | undefined;
|
|
59
59
|
}
|
|
60
|
-
export declare function OrgTable({ rows, renderCell, tone, controls, labels, ref, className, ...rest }: OrgTableProps): import("react
|
|
60
|
+
export declare function OrgTable({ rows, renderCell, tone, controls, labels, ref, className, ...rest }: OrgTableProps): import("react").JSX.Element;
|
|
61
61
|
/**
|
|
62
62
|
* A row's mark, name and what kind of thing it is: the org table's name cell.
|
|
63
63
|
*
|
|
@@ -74,7 +74,7 @@ export declare function OrgTable({ rows, renderCell, tone, controls, labels, ref
|
|
|
74
74
|
export interface OrgTableNameProps extends OrgLabelContent {
|
|
75
75
|
tone?: OrgTableTone | undefined;
|
|
76
76
|
}
|
|
77
|
-
export declare function OrgTableName({ tone, ...content }: OrgTableNameProps): import("react
|
|
77
|
+
export declare function OrgTableName({ tone, ...content }: OrgTableNameProps): import("react").JSX.Element;
|
|
78
78
|
/**
|
|
79
79
|
* The strip of controls at the end of a row.
|
|
80
80
|
*
|
|
@@ -87,7 +87,7 @@ export declare function OrgTableName({ tone, ...content }: OrgTableNameProps): i
|
|
|
87
87
|
export declare function OrgTableActions({ children, className, }: {
|
|
88
88
|
children: ReactNode;
|
|
89
89
|
className?: string | undefined;
|
|
90
|
-
}): import("react
|
|
90
|
+
}): import("react").JSX.Element;
|
|
91
91
|
export interface OrgTableAddProps extends AddPillProps {
|
|
92
92
|
/** Says a press opened it, so the grid's one tab stop follows focus here. */
|
|
93
93
|
onOpen?: (() => void) | undefined;
|
|
@@ -110,4 +110,4 @@ export interface OrgTableAddProps extends AddPillProps {
|
|
|
110
110
|
* would have to carry: the press is on its way down to a control that stops
|
|
111
111
|
* it, and the grid only has to know that it happened.
|
|
112
112
|
*/
|
|
113
|
-
export declare function OrgTableAdd({ onOpen, className, ...pill }: OrgTableAddProps): import("react
|
|
113
|
+
export declare function OrgTableAdd({ onOpen, className, ...pill }: OrgTableAddProps): import("react").JSX.Element;
|
|
@@ -32,4 +32,4 @@ export interface PageHeaderProps extends Omit<HTMLAttributes<HTMLElement>, 'titl
|
|
|
32
32
|
* The actions are a sibling of the title rather than part of it, so a heading
|
|
33
33
|
* a screen reader reads is the screen's name and not the name plus three verbs.
|
|
34
34
|
*/
|
|
35
|
-
export declare function PageHeader({ title, headingLevel, description, badges, actions, titleId, className, children, ...rest }: PageHeaderProps): import("react
|
|
35
|
+
export declare function PageHeader({ title, headingLevel, description, badges, actions, titleId, className, children, ...rest }: PageHeaderProps): import("react").JSX.Element;
|
|
@@ -87,5 +87,5 @@ export type PopoverReason = DismissReason | 'trigger' | 'content' | 'anchor-gone
|
|
|
87
87
|
* on them at the document, and so does a chord with Control, Command or Alt,
|
|
88
88
|
* which is an application shortcut rather than a key of the panel's.
|
|
89
89
|
*/
|
|
90
|
-
export declare function Popover({ trigger, children, align, side, width, role, label, className, open: controlled, defaultOpen, onOpenChange, }: PopoverProps): import("react
|
|
90
|
+
export declare function Popover({ trigger, children, align, side, width, role, label, className, open: controlled, defaultOpen, onOpenChange, }: PopoverProps): import("react").JSX.Element;
|
|
91
91
|
export {};
|
|
@@ -42,15 +42,15 @@ interface AmountProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
42
42
|
discounted?: boolean;
|
|
43
43
|
}
|
|
44
44
|
export declare const PricingCard: import("react").ForwardRefExoticComponent<PricingCardRootProps & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
45
|
-
Header: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react
|
|
46
|
-
Name: ({ className, children, ...rest }: HTMLAttributes<HTMLSpanElement>) => import("react
|
|
47
|
-
Tag: ({ variant, className, children, ...rest }: TagProps) => import("react
|
|
48
|
-
Price: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react
|
|
49
|
-
Amount: ({ strike, discounted, className, children, ...rest }: AmountProps) => import("react
|
|
50
|
-
Cadence: ({ className, children, ...rest }: HTMLAttributes<HTMLSpanElement>) => import("react
|
|
51
|
-
PriceNote: ({ className, children, ...rest }: HTMLAttributes<HTMLSpanElement>) => import("react
|
|
52
|
-
Body: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react
|
|
53
|
-
Footer: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react
|
|
54
|
-
Grid: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react
|
|
45
|
+
Header: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
46
|
+
Name: ({ className, children, ...rest }: HTMLAttributes<HTMLSpanElement>) => import("react").JSX.Element;
|
|
47
|
+
Tag: ({ variant, className, children, ...rest }: TagProps) => import("react").JSX.Element;
|
|
48
|
+
Price: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
49
|
+
Amount: ({ strike, discounted, className, children, ...rest }: AmountProps) => import("react").JSX.Element;
|
|
50
|
+
Cadence: ({ className, children, ...rest }: HTMLAttributes<HTMLSpanElement>) => import("react").JSX.Element;
|
|
51
|
+
PriceNote: ({ className, children, ...rest }: HTMLAttributes<HTMLSpanElement>) => import("react").JSX.Element;
|
|
52
|
+
Body: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
53
|
+
Footer: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
54
|
+
Grid: ({ className, children, ...rest }: HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
55
55
|
};
|
|
56
56
|
export {};
|
package/dist/Prose/Prose.d.ts
CHANGED
|
@@ -30,4 +30,4 @@ export interface ProseProps extends HTMLAttributes<HTMLElement> {
|
|
|
30
30
|
* load bearing in a long answer, without turning a long line into a
|
|
31
31
|
* horizontal scroll.
|
|
32
32
|
*/
|
|
33
|
-
export declare function Prose({ as: Tag, tone, streaming, dimmed, measure, className, children, ...rest }: ProseProps): import("react
|
|
33
|
+
export declare function Prose({ as: Tag, tone, streaming, dimmed, measure, className, children, ...rest }: ProseProps): import("react").JSX.Element;
|
|
@@ -28,4 +28,4 @@ export interface RelativeTimeProps extends Omit<TimeHTMLAttributes<HTMLTimeEleme
|
|
|
28
28
|
* than freezing at whatever they were when an unrelated push last happened to
|
|
29
29
|
* re-render the row.
|
|
30
30
|
*/
|
|
31
|
-
export declare function RelativeTime({ value, mode, now, emptyLabel, className, ...rest }: RelativeTimeProps): import("react
|
|
31
|
+
export declare function RelativeTime({ value, mode, now, emptyLabel, className, ...rest }: RelativeTimeProps): import("react").JSX.Element;
|
|
@@ -38,4 +38,4 @@ export interface SectionProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>
|
|
|
38
38
|
* actually sits, and its contents are one level deeper without anybody
|
|
39
39
|
* counting.
|
|
40
40
|
*/
|
|
41
|
-
export declare const Section: ({ as: As, spacing, title, headingLevel, description, actions, className, children, ...rest }: SectionProps) => import("react
|
|
41
|
+
export declare const Section: ({ as: As, spacing, title, headingLevel, description, actions, className, children, ...rest }: SectionProps) => import("react").JSX.Element;
|
|
@@ -97,5 +97,5 @@ export type SegmentedControlProps<T extends string = string> = SegmentedShared<T
|
|
|
97
97
|
* look like two different controls depending on which component a screen
|
|
98
98
|
* reached for.
|
|
99
99
|
*/
|
|
100
|
-
export declare function SegmentedControl<T extends string = string>({ label, options, value, onValueChange, size, className, semantics, panelId, activate, activateHint, }: SegmentedControlProps<T>): import("react
|
|
100
|
+
export declare function SegmentedControl<T extends string = string>({ label, options, value, onValueChange, size, className, semantics, panelId, activate, activateHint, }: SegmentedControlProps<T>): import("react").JSX.Element;
|
|
101
101
|
export {};
|
|
@@ -98,7 +98,7 @@ export interface NavItemProps {
|
|
|
98
98
|
className?: string | undefined;
|
|
99
99
|
}
|
|
100
100
|
/** The navigation region in the rail. */
|
|
101
|
-
export declare function SidebarNav({ label, className, children }: SidebarNavProps): import("react
|
|
101
|
+
export declare function SidebarNav({ label, className, children }: SidebarNavProps): import("react").JSX.Element;
|
|
102
102
|
export declare namespace SidebarNav {
|
|
103
103
|
var Group: typeof NavGroup;
|
|
104
104
|
var Item: typeof NavItem;
|
|
@@ -112,6 +112,6 @@ export declare namespace SidebarNav {
|
|
|
112
112
|
* `<div>` here still carries the label's own padding, which put sixteen blank
|
|
113
113
|
* pixels at the top of the rail and named a group nothing could read.
|
|
114
114
|
*/
|
|
115
|
-
export declare function NavGroup({ label, className, children }: NavGroupProps): import("react
|
|
115
|
+
export declare function NavGroup({ label, className, children }: NavGroupProps): import("react").JSX.Element;
|
|
116
116
|
/** One row: a glyph, a label, an optional badge, and optionally rows beneath. */
|
|
117
|
-
export declare function NavItem({ label, icon, badge, badgeTone, href, current, disabledReason, renderLink, onClick, children, expanded, defaultExpanded, onExpandedChange, expandLabel, className, }: NavItemProps): import("react
|
|
117
|
+
export declare function NavItem({ label, icon, badge, badgeTone, href, current, disabledReason, renderLink, onClick, children, expanded, defaultExpanded, onExpandedChange, expandLabel, className, }: NavItemProps): import("react").JSX.Element;
|
|
@@ -47,4 +47,4 @@ export interface SkeletonProps {
|
|
|
47
47
|
* it belongs on the region whose content has not arrived, which is the
|
|
48
48
|
* caller's own element rather than this one.
|
|
49
49
|
*/
|
|
50
|
-
export declare const Skeleton: ({ label, ...placeholder }: SkeletonProps) => import("react
|
|
50
|
+
export declare const Skeleton: ({ label, ...placeholder }: SkeletonProps) => import("react").JSX.Element;
|
|
@@ -53,4 +53,4 @@ export interface StatCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
53
53
|
* says the number has not arrived, which is a different fact from the number
|
|
54
54
|
* being zero.
|
|
55
55
|
*/
|
|
56
|
-
export declare const StatCard: ({ label, value, unit, sub, icon, tone, loading, loadingLabel, flush, className, ...rest }: StatCardProps) => import("react
|
|
56
|
+
export declare const StatCard: ({ label, value, unit, sub, icon, tone, loading, loadingLabel, flush, className, ...rest }: StatCardProps) => import("react").JSX.Element;
|
|
@@ -17,4 +17,4 @@ export interface StatGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
17
17
|
* md breakpoint it drops to two columns, which is the last count at which a
|
|
18
18
|
* six-character number still fits on one line of a phone.
|
|
19
19
|
*/
|
|
20
|
-
export declare function StatGroup({ columns, className, children, ...rest }: StatGroupProps): import("react
|
|
20
|
+
export declare function StatGroup({ columns, className, children, ...rest }: StatGroupProps): import("react").JSX.Element;
|
|
@@ -22,4 +22,4 @@ export interface StatusDotProps {
|
|
|
22
22
|
* it can sit on, because a mark is read the way a glyph is rather than the way
|
|
23
23
|
* text is.
|
|
24
24
|
*/
|
|
25
|
-
export declare function StatusDot({ tone, pulse, className }: StatusDotProps): import("react
|
|
25
|
+
export declare function StatusDot({ tone, pulse, className }: StatusDotProps): import("react").JSX.Element;
|
package/dist/Table/Table.d.ts
CHANGED
|
@@ -48,4 +48,4 @@ export interface TableProps {
|
|
|
48
48
|
maxHeight?: string;
|
|
49
49
|
className?: string;
|
|
50
50
|
}
|
|
51
|
-
export declare const Table: ({ headers, data, caption, captionHidden, emptyMessage, actionButton, maxHeight, className, }: TableProps) => import("react
|
|
51
|
+
export declare const Table: ({ headers, data, caption, captionHidden, emptyMessage, actionButton, maxHeight, className, }: TableProps) => import("react").JSX.Element;
|
package/dist/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
export type TabsVariant = 'pill' | 'underline';
|
|
3
3
|
export type TabsSize = 'sm' | 'md';
|
|
4
4
|
export interface TabsItem {
|
|
@@ -79,7 +79,7 @@ export declare function tabId(panelId: string, value: string): string;
|
|
|
79
79
|
* says. In router mode that IS what the items are, so the root becomes a
|
|
80
80
|
* `nav`, the tab roles go, and the consumer's own link carries the state.
|
|
81
81
|
*/
|
|
82
|
-
export declare function Tabs({ items, variant, size, ariaLabel, className, value, onValueChange, panelId, renderItem, }: TabsProps):
|
|
82
|
+
export declare function Tabs({ items, variant, size, ariaLabel, className, value, onValueChange, panelId, renderItem, }: TabsProps): React.JSX.Element;
|
|
83
83
|
export interface TabPanelProps {
|
|
84
84
|
/** The same id the row was given as `panelId`. */
|
|
85
85
|
id: string;
|
|
@@ -94,4 +94,4 @@ export interface TabPanelProps {
|
|
|
94
94
|
* It keeps the layout it sits in, so wrapping a screen's sections in one
|
|
95
95
|
* changes nothing a reader can see and everything a screen reader hears.
|
|
96
96
|
*/
|
|
97
|
-
export declare function TabPanel({ id, value, children, className }: TabPanelProps):
|
|
97
|
+
export declare function TabPanel({ id, value, children, className }: TabPanelProps): React.JSX.Element;
|
package/dist/Tag/Tag.d.ts
CHANGED
|
@@ -103,5 +103,5 @@ export type TagProps = StaticTagProps | InteractiveTagProps;
|
|
|
103
103
|
* the radius, the type and the padding, is identical, so a row still reads as
|
|
104
104
|
* one set.
|
|
105
105
|
*/
|
|
106
|
-
export declare function Tag(props: TagProps): import("react
|
|
106
|
+
export declare function Tag(props: TagProps): import("react").JSX.Element;
|
|
107
107
|
export {};
|
|
@@ -38,4 +38,4 @@ export interface TagGroupProps {
|
|
|
38
38
|
* expansion still works and the announcer says loudly that nothing was said,
|
|
39
39
|
* which is the point of it being one region rather than one per component.
|
|
40
40
|
*/
|
|
41
|
-
export declare function TagGroup({ label, max, moreLabel, expandedMessage, className, children, }: TagGroupProps): import("react
|
|
41
|
+
export declare function TagGroup({ label, max, moreLabel, expandedMessage, className, children, }: TagGroupProps): import("react").JSX.Element;
|
package/dist/TagsInput/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { TagsInput } from '../chunk-
|
|
1
|
+
export { TagsInput } from '../chunk-BJSKPEZI.js';
|
|
2
2
|
import '../chunk-S2XHHEW4.js';
|
|
3
3
|
import '../chunk-PZSWF74H.js';
|
|
4
4
|
import '../chunk-GTOUGQQK.js';
|
|
5
|
+
import '../chunk-RSAQOKH3.js';
|
|
5
6
|
import '../chunk-7RPGY3JE.js';
|
|
6
7
|
import '../chunk-ITHXJHBB.js';
|
|
7
8
|
import '../chunk-F27EPQ7D.js';
|
|
8
|
-
import '../chunk-RSAQOKH3.js';
|
|
9
9
|
import '../chunk-BZFWDIV6.js';
|
|
10
10
|
import '../chunk-ODEQTPFM.js';
|
package/dist/Text/Text.d.ts
CHANGED
|
@@ -64,4 +64,4 @@ export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
|
64
64
|
* because those four move as one. `tone` overrides only the ink, for the case
|
|
65
65
|
* where the same register carries a quieter fact.
|
|
66
66
|
*/
|
|
67
|
-
export declare function Text({ as: Tag, variant, tone, mono, numeric, truncate, clamp, measure, className, children, ...rest }: TextProps): import("react
|
|
67
|
+
export declare function Text({ as: Tag, variant, tone, mono, numeric, truncate, clamp, measure, className, children, ...rest }: TextProps): import("react").JSX.Element;
|
|
@@ -21,7 +21,7 @@ export interface ThemeSwitcherProps {
|
|
|
21
21
|
* EACH OPTION IS A WORD, not a picture of one. The glyphs are the whole of
|
|
22
22
|
* what is drawn, so without a spoken name the row is three unnamed buttons.
|
|
23
23
|
*/
|
|
24
|
-
export declare function ThemeSwitcher({ storageKey, label, lightLabel, systemLabel, darkLabel, size, className, }: ThemeSwitcherProps): import("react
|
|
24
|
+
export declare function ThemeSwitcher({ storageKey, label, lightLabel, systemLabel, darkLabel, size, className, }: ThemeSwitcherProps): import("react").JSX.Element;
|
|
25
25
|
export interface DensitySwitcherProps {
|
|
26
26
|
storageKey?: string;
|
|
27
27
|
label?: string;
|
|
@@ -44,4 +44,4 @@ export interface DensitySwitcherProps {
|
|
|
44
44
|
* nothing: a reader was offered "S" and left to guess. The mark stays, and
|
|
45
45
|
* each option is called Compact, Normal or Comfortable.
|
|
46
46
|
*/
|
|
47
|
-
export declare function DensitySwitcher({ storageKey, label, compactLabel, normalLabel, comfortableLabel, compactMark, normalMark, comfortableMark, size, className, }: DensitySwitcherProps): import("react
|
|
47
|
+
export declare function DensitySwitcher({ storageKey, label, compactLabel, normalLabel, comfortableLabel, compactMark, normalMark, comfortableMark, size, className, }: DensitySwitcherProps): import("react").JSX.Element;
|
|
@@ -228,4 +228,4 @@ export declare function describeTimeWindow(value: TimeWindowValue, options?: Tim
|
|
|
228
228
|
* picture nobody hears, and the calendar is still the shared [CalendarGrid],
|
|
229
229
|
* so the same keyboard works here as in every other picker.
|
|
230
230
|
*/
|
|
231
|
-
export declare function TimeWindowPicker({ value, onChange, defaultValue, presets, allowRelative, allowAbsolute, allowCustom, bounds, firstDayOfWeek, ariaLabel, className, disabled, size, labels: labelOverrides, }: TimeWindowPickerProps): import("react
|
|
231
|
+
export declare function TimeWindowPicker({ value, onChange, defaultValue, presets, allowRelative, allowAbsolute, allowCustom, bounds, firstDayOfWeek, ariaLabel, className, disabled, size, labels: labelOverrides, }: TimeWindowPickerProps): import("react").JSX.Element;
|
|
@@ -27,7 +27,7 @@ export interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
|
|
|
27
27
|
* flat stack of look-alike rows. Bounded to its own item, every step is
|
|
28
28
|
* delimited and the ledger still ends where its last step's content ends.
|
|
29
29
|
*/
|
|
30
|
-
export declare function Timeline({ itemLabel, alternating, className, children, ...rest }: TimelineProps): import("react
|
|
30
|
+
export declare function Timeline({ itemLabel, alternating, className, children, ...rest }: TimelineProps): import("react").JSX.Element;
|
|
31
31
|
export declare namespace Timeline {
|
|
32
32
|
var Item: typeof TimelineItem;
|
|
33
33
|
}
|
|
@@ -48,4 +48,4 @@ export interface TimelineItemProps extends LiHTMLAttributes<HTMLLIElement> {
|
|
|
48
48
|
* every item including the last, so appending one changes nothing about the
|
|
49
49
|
* items already drawn.
|
|
50
50
|
*/
|
|
51
|
-
export declare function TimelineItem({ state, marker, label, className, children, ...rest }: TimelineItemProps): import("react
|
|
51
|
+
export declare function TimelineItem({ state, marker, label, className, children, ...rest }: TimelineItemProps): import("react").JSX.Element;
|
|
@@ -105,4 +105,4 @@ export interface ToastProviderProps {
|
|
|
105
105
|
* That surface mounts a provider of its own inside its `LayerHost`, and
|
|
106
106
|
* `useToast` inside it finds the nearest one.
|
|
107
107
|
*/
|
|
108
|
-
export declare function ToastProvider({ children, position, renderAction, max }: ToastProviderProps): import("react
|
|
108
|
+
export declare function ToastProvider({ children, position, renderAction, max }: ToastProviderProps): import("react").JSX.Element;
|
|
@@ -39,7 +39,7 @@ export interface ToolbarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role
|
|
|
39
39
|
sticky?: boolean | undefined;
|
|
40
40
|
children?: ReactNode;
|
|
41
41
|
}
|
|
42
|
-
export declare function Toolbar({ label, mode, sticky, className, children, ...rest }: ToolbarProps): import("react
|
|
42
|
+
export declare function Toolbar({ label, mode, sticky, className, children, ...rest }: ToolbarProps): import("react").JSX.Element;
|
|
43
43
|
export declare namespace Toolbar {
|
|
44
44
|
var Wide: typeof ToolbarWide;
|
|
45
45
|
var Overflow: typeof ToolbarOverflow;
|
|
@@ -51,7 +51,7 @@ export interface ToolbarSlotProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
51
51
|
* The controls that fold away on a narrow screen. They are drawn above the
|
|
52
52
|
* shell breakpoint and gone below it, where `Toolbar.Overflow` takes over.
|
|
53
53
|
*/
|
|
54
|
-
export declare function ToolbarWide({ className, children, ...rest }: ToolbarSlotProps): import("react
|
|
54
|
+
export declare function ToolbarWide({ className, children, ...rest }: ToolbarSlotProps): import("react").JSX.Element;
|
|
55
55
|
/**
|
|
56
56
|
* What stands in for them: a Menu holding the same actions, drawn only below
|
|
57
57
|
* the breakpoint. Two elements rather than one that measures itself, because a
|
|
@@ -59,4 +59,4 @@ export declare function ToolbarWide({ className, children, ...rest }: ToolbarSlo
|
|
|
59
59
|
* the only width that decides anything here is the one the stylesheet already
|
|
60
60
|
* switches the shell at.
|
|
61
61
|
*/
|
|
62
|
-
export declare function ToolbarOverflow({ className, children, ...rest }: ToolbarSlotProps): import("react
|
|
62
|
+
export declare function ToolbarOverflow({ className, children, ...rest }: ToolbarSlotProps): import("react").JSX.Element;
|
|
@@ -48,4 +48,4 @@ export interface TooltipProps {
|
|
|
48
48
|
* control has a name already, and replacing it with the hint is how a Close
|
|
49
49
|
* button came to be announced as "Closing is unavailable until this finishes".
|
|
50
50
|
*/
|
|
51
|
-
export declare function Tooltip({ content, placement, disabled, openDelay, closeDelay, className, children, }: TooltipProps): import("react
|
|
51
|
+
export declare function Tooltip({ content, placement, disabled, openDelay, closeDelay, className, children, }: TooltipProps): import("react").JSX.Element;
|
|
@@ -381,4 +381,4 @@ export interface TreeCanvasProps {
|
|
|
381
381
|
ref?: Ref<TreeCanvasHandle> | undefined;
|
|
382
382
|
className?: string | undefined;
|
|
383
383
|
}
|
|
384
|
-
export declare function TreeCanvas({ label, nodes, cards, cardOf, renderCard, renderUnder, cardOutline, cardTone, appearance, ranks, connector, onNodeKey, onNodeKeyDown, hasNodeMenu, selectedId, onSelect, anchorNode, overlay, controlsPlacement, controlsExtra, controlsBelow, hint, dimmed, composing, labels, ref, className, }: TreeCanvasProps): import("react
|
|
384
|
+
export declare function TreeCanvas({ label, nodes, cards, cardOf, renderCard, renderUnder, cardOutline, cardTone, appearance, ranks, connector, onNodeKey, onNodeKeyDown, hasNodeMenu, selectedId, onSelect, anchorNode, overlay, controlsPlacement, controlsExtra, controlsBelow, hint, dimmed, composing, labels, ref, className, }: TreeCanvasProps): import("react").JSX.Element;
|
|
@@ -139,4 +139,4 @@ export interface TreeGridProps {
|
|
|
139
139
|
ref?: Ref<TreeViewHandle> | undefined;
|
|
140
140
|
className?: string | undefined;
|
|
141
141
|
}
|
|
142
|
-
export declare function TreeGrid({ label, columns, rows: forest, renderCell, cellHasControl, onRowKey, onRowKeyDown, hasRowMenu, addRow, selectedId, onSelect, readOnly, labels, ref, className, }: TreeGridProps): import("react
|
|
142
|
+
export declare function TreeGrid({ label, columns, rows: forest, renderCell, cellHasControl, onRowKey, onRowKeyDown, hasRowMenu, addRow, selectedId, onSelect, readOnly, labels, ref, className, }: TreeGridProps): import("react").JSX.Element;
|
|
@@ -20,4 +20,4 @@ export interface VisuallyHiddenProps {
|
|
|
20
20
|
* spoken form of a shortcut whose keycaps are drawn as symbols, the name of a
|
|
21
21
|
* column whose header is an icon, and the reason a disabled control gives.
|
|
22
22
|
*/
|
|
23
|
-
export declare function VisuallyHidden({ as: Tag, id, className, children }: VisuallyHiddenProps): import("react
|
|
23
|
+
export declare function VisuallyHidden({ as: Tag, id, className, children }: VisuallyHiddenProps): import("react").JSX.Element;
|
package/dist/generated/index.js
CHANGED
|
@@ -11,7 +11,7 @@ export { StatGroup } from '../chunk-QNCVHRZL.js';
|
|
|
11
11
|
export { Switch } from '../chunk-EV6IMYJ6.js';
|
|
12
12
|
export { Table } from '../chunk-FEFTGVMF.js';
|
|
13
13
|
export { TagGroup } from '../chunk-V2XMNLMS.js';
|
|
14
|
-
export { TagsInput } from '../chunk-
|
|
14
|
+
export { TagsInput } from '../chunk-BJSKPEZI.js';
|
|
15
15
|
export { SearchTrigger } from '../chunk-Q4ZPPART.js';
|
|
16
16
|
export { Section } from '../chunk-A2UXBCLO.js';
|
|
17
17
|
export { SegmentedControl } from '../chunk-6ZFVFA56.js';
|
|
@@ -32,7 +32,7 @@ export { StatusDot } from '../chunk-PZSWF74H.js';
|
|
|
32
32
|
export { Prose } from '../chunk-JCSA3XVH.js';
|
|
33
33
|
export { Link } from '../chunk-2ZQMA2WB.js';
|
|
34
34
|
export { List, ListItem } from '../chunk-HZ5XZNPS.js';
|
|
35
|
-
export { ListInput } from '../chunk-
|
|
35
|
+
export { ListInput } from '../chunk-LFJ6UJTI.js';
|
|
36
36
|
export { Meter, meterTone, progressTone } from '../chunk-YODNNSZL.js';
|
|
37
37
|
export { NewItemsNotice } from '../chunk-YLYOWZ4V.js';
|
|
38
38
|
export { useFullscreen } from '../chunk-XDTYBF2F.js';
|
|
@@ -79,13 +79,13 @@ export { DisclosureAnatomy } from '../chunk-5KPQ6D7N.js';
|
|
|
79
79
|
export { Count } from '../chunk-BHHIIK3M.js';
|
|
80
80
|
export { HeadingLevelProvider, headingTag, nextHeadingLevel, useHeadingLevel } from '../chunk-PQADV6P6.js';
|
|
81
81
|
export { ADD_PILL_MS, AddPill } from '../chunk-S4GZWSKR.js';
|
|
82
|
+
export { Announcer, announce, useAnnouncer } from '../chunk-RSAQOKH3.js';
|
|
83
|
+
export { AVATAR_SIZES, Avatar, avatarPixels, avatarSquareCorner, avatarTint, getInitials } from '../chunk-PNFASD6F.js';
|
|
84
|
+
export { BrandLockup } from '../chunk-WNI2WSJF.js';
|
|
82
85
|
export { AppShell, AppShellRail, AppShellRailRow, AppShellToggle, AppShellTopbar, useAppShell } from '../chunk-MNAXYY3R.js';
|
|
83
86
|
export { LAYER_GAP, LAYER_REPOSITION_EVENT, LayerHost, outsideBounds, placePopup, useLayerContainer, viewportBounds } from '../chunk-7RPGY3JE.js';
|
|
84
87
|
export { focusables, isComposing, isModalLayerOpen, layerCount, useBodyScrollLock, useModalLayer, usePopupLayer } from '../chunk-ITHXJHBB.js';
|
|
85
88
|
export { IconButton } from '../chunk-F27EPQ7D.js';
|
|
86
|
-
export { AVATAR_SIZES, Avatar, avatarPixels, avatarSquareCorner, avatarTint, getInitials } from '../chunk-PNFASD6F.js';
|
|
87
|
-
export { Announcer, announce, useAnnouncer } from '../chunk-RSAQOKH3.js';
|
|
88
|
-
export { BrandLockup } from '../chunk-WNI2WSJF.js';
|
|
89
89
|
export { Button, ButtonLink } from '../chunk-BZYDZBAN.js';
|
|
90
90
|
export { VisuallyHidden } from '../chunk-BZFWDIV6.js';
|
|
91
91
|
export { cx } from '../chunk-ODEQTPFM.js';
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ export { StatGroup } from './chunk-QNCVHRZL.js';
|
|
|
11
11
|
export { Switch } from './chunk-EV6IMYJ6.js';
|
|
12
12
|
export { Table } from './chunk-FEFTGVMF.js';
|
|
13
13
|
export { TagGroup } from './chunk-V2XMNLMS.js';
|
|
14
|
-
export { TagsInput } from './chunk-
|
|
14
|
+
export { TagsInput } from './chunk-BJSKPEZI.js';
|
|
15
15
|
export { SearchTrigger } from './chunk-Q4ZPPART.js';
|
|
16
16
|
export { Section } from './chunk-A2UXBCLO.js';
|
|
17
17
|
export { SegmentedControl } from './chunk-6ZFVFA56.js';
|
|
@@ -32,7 +32,7 @@ export { StatusDot } from './chunk-PZSWF74H.js';
|
|
|
32
32
|
export { Prose } from './chunk-JCSA3XVH.js';
|
|
33
33
|
export { Link } from './chunk-2ZQMA2WB.js';
|
|
34
34
|
export { List, ListItem } from './chunk-HZ5XZNPS.js';
|
|
35
|
-
export { ListInput } from './chunk-
|
|
35
|
+
export { ListInput } from './chunk-LFJ6UJTI.js';
|
|
36
36
|
export { Meter, meterTone, progressTone } from './chunk-YODNNSZL.js';
|
|
37
37
|
export { NewItemsNotice } from './chunk-YLYOWZ4V.js';
|
|
38
38
|
export { useFullscreen } from './chunk-XDTYBF2F.js';
|
|
@@ -79,13 +79,13 @@ export { DisclosureAnatomy } from './chunk-5KPQ6D7N.js';
|
|
|
79
79
|
export { Count } from './chunk-BHHIIK3M.js';
|
|
80
80
|
export { HeadingLevelProvider, headingTag, nextHeadingLevel, useHeadingLevel } from './chunk-PQADV6P6.js';
|
|
81
81
|
export { ADD_PILL_MS, AddPill } from './chunk-S4GZWSKR.js';
|
|
82
|
+
export { Announcer, announce, useAnnouncer } from './chunk-RSAQOKH3.js';
|
|
83
|
+
export { AVATAR_SIZES, Avatar, avatarPixels, avatarSquareCorner, avatarTint, getInitials } from './chunk-PNFASD6F.js';
|
|
84
|
+
export { BrandLockup } from './chunk-WNI2WSJF.js';
|
|
82
85
|
export { AppShell, AppShellRail, AppShellRailRow, AppShellToggle, AppShellTopbar, useAppShell } from './chunk-MNAXYY3R.js';
|
|
83
86
|
export { LAYER_GAP, LAYER_REPOSITION_EVENT, LayerHost, outsideBounds, placePopup, useLayerContainer, viewportBounds } from './chunk-7RPGY3JE.js';
|
|
84
87
|
export { focusables, isComposing, isModalLayerOpen, layerCount, useBodyScrollLock, useModalLayer, usePopupLayer } from './chunk-ITHXJHBB.js';
|
|
85
88
|
export { IconButton } from './chunk-F27EPQ7D.js';
|
|
86
|
-
export { AVATAR_SIZES, Avatar, avatarPixels, avatarSquareCorner, avatarTint, getInitials } from './chunk-PNFASD6F.js';
|
|
87
|
-
export { Announcer, announce, useAnnouncer } from './chunk-RSAQOKH3.js';
|
|
88
|
-
export { BrandLockup } from './chunk-WNI2WSJF.js';
|
|
89
89
|
export { Button, ButtonLink } from './chunk-BZYDZBAN.js';
|
|
90
90
|
export { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
91
91
|
export { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -7,7 +7,7 @@ export interface HeadingLevelProviderProps {
|
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
}
|
|
9
9
|
/** Declares the level a surface's contents start at. */
|
|
10
|
-
export declare function HeadingLevelProvider({ level, children }: HeadingLevelProviderProps): import("react
|
|
10
|
+
export declare function HeadingLevelProvider({ level, children }: HeadingLevelProviderProps): import("react").JSX.Element;
|
|
11
11
|
/** The level a heading rendered here should be. Defaults to 2, under a page title. */
|
|
12
12
|
export declare function useHeadingLevel(): HeadingLevel;
|
|
13
13
|
/** One level deeper, clamped at 6. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewlethq/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"clean": "rm -rf dist src/generated"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@crewlethq/icons": "0.4.
|
|
46
|
-
"@crewlethq/tokens": "0.4.
|
|
45
|
+
"@crewlethq/icons": "0.4.3",
|
|
46
|
+
"@crewlethq/tokens": "0.4.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": ">=18",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/react": "^19.0.0",
|
|
54
|
-
"@types/react-dom": "^19.
|
|
54
|
+
"@types/react-dom": "^19.3.0",
|
|
55
55
|
"react": "^19.2.3",
|
|
56
|
-
"react-dom": "^19.
|
|
56
|
+
"react-dom": "^19.3.0",
|
|
57
57
|
"tsup": "^8.3.5"
|
|
58
58
|
},
|
|
59
59
|
"publishConfig": {
|
|
@@ -80,6 +80,7 @@ function tokenNames() {
|
|
|
80
80
|
} catch (error) {
|
|
81
81
|
throw new Error(
|
|
82
82
|
`cannot resolve @crewlethq/tokens/css (${error.message}). Build the tokens package first: npm run build --workspace @crewlethq/tokens`,
|
|
83
|
+
{ cause: error },
|
|
83
84
|
);
|
|
84
85
|
}
|
|
85
86
|
const directory = dirname(tokensCss);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Tag } from './chunk-S2XHHEW4.js';
|
|
2
2
|
import { useListbox } from './chunk-GTOUGQQK.js';
|
|
3
|
+
import { announce } from './chunk-RSAQOKH3.js';
|
|
3
4
|
import { isComposing } from './chunk-ITHXJHBB.js';
|
|
4
5
|
import { IconButton } from './chunk-F27EPQ7D.js';
|
|
5
|
-
import { announce } from './chunk-RSAQOKH3.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
7
7
|
import './TagsInput-W4P36PRJ.css';
|
|
8
8
|
import { forwardRef, useState, useRef, useId, useImperativeHandle, useEffect, useMemo, useLayoutEffect } from 'react';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Kbd } from './chunk-SFZOKW2G.js';
|
|
2
2
|
import { FormField, Textarea, Input } from './chunk-O6232G37.js';
|
|
3
|
+
import { announce } from './chunk-RSAQOKH3.js';
|
|
3
4
|
import { isComposing } from './chunk-ITHXJHBB.js';
|
|
4
5
|
import { IconButton } from './chunk-F27EPQ7D.js';
|
|
5
|
-
import { announce } from './chunk-RSAQOKH3.js';
|
|
6
6
|
import './ListInput-O7LJKOIG.css';
|
|
7
7
|
import { useState, useRef, useLayoutEffect } from 'react';
|
|
8
8
|
import { ArrowUpwardGlyph, ArrowDownwardGlyph, CloseGlyph, AddGlyph } from '@crewlethq/icons/glyphs';
|