rudiment-ui 0.2.0 → 0.4.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/LICENSE +1 -1
- package/README.md +222 -160
- package/dist/components/AppShell/AppShell.d.ts +48 -0
- package/dist/components/AppShell/AppShell.d.ts.map +1 -0
- package/dist/components/Brand/Brand.d.ts +16 -0
- package/dist/components/Brand/Brand.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +14 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Charts/BarChart/BarChart.d.ts +5 -1
- package/dist/components/Charts/BarChart/BarChart.d.ts.map +1 -1
- package/dist/components/Charts/DonutChart/DonutChart.d.ts.map +1 -1
- package/dist/components/Charts/LineChart/LineChart.d.ts +18 -2
- package/dist/components/Charts/LineChart/LineChart.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +7 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxGroup.d.ts.map +1 -1
- package/dist/components/Checkbox/CheckboxGroupContext.d.ts +4 -0
- package/dist/components/Checkbox/CheckboxGroupContext.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBox.d.ts +41 -0
- package/dist/components/ComboBox/ComboBox.d.ts.map +1 -0
- package/dist/components/DatePicker/CalendarParts.d.ts +21 -0
- package/dist/components/DatePicker/CalendarParts.d.ts.map +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +34 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -0
- package/dist/components/DatePicker/DateRangePicker.d.ts +33 -0
- package/dist/components/DatePicker/DateRangePicker.d.ts.map +1 -0
- package/dist/components/DatePicker/dateUtils.d.ts +14 -0
- package/dist/components/DatePicker/dateUtils.d.ts.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +11 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts +15 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Dot/Dot.d.ts +20 -0
- package/dist/components/Dot/Dot.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +18 -0
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/Footer/Footer.d.ts +31 -0
- package/dist/components/Footer/Footer.d.ts.map +1 -0
- package/dist/components/Form/Form.d.ts +17 -0
- package/dist/components/Form/Form.d.ts.map +1 -0
- package/dist/components/Image/Image.d.ts +18 -0
- package/dist/components/Image/Image.d.ts.map +1 -0
- package/dist/components/Input/Input.d.ts +11 -0
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Kanban/KanbanBoard.d.ts +3 -1
- package/dist/components/Kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/Kanban/KanbanCard.d.ts +6 -1
- package/dist/components/Kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/Link/Link.d.ts +16 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Menu/MenuItem.d.ts +10 -1
- package/dist/components/Menu/MenuItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuSeparator.d.ts +5 -0
- package/dist/components/Menu/MenuSeparator.d.ts.map +1 -0
- package/dist/components/Menu/SubmenuTrigger.d.ts +5 -0
- package/dist/components/Menu/SubmenuTrigger.d.ts.map +1 -0
- package/dist/components/NavItem/NavItem.d.ts.map +1 -1
- package/dist/components/NumberField/NumberField.d.ts +37 -0
- package/dist/components/NumberField/NumberField.d.ts.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +12 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +14 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +14 -2
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/components/RadioGroup/Radio.d.ts +15 -0
- package/dist/components/RadioGroup/Radio.d.ts.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/Rating/Rating.d.ts +18 -0
- package/dist/components/Rating/Rating.d.ts.map +1 -0
- package/dist/components/RouterProvider/RouterProvider.d.ts +15 -0
- package/dist/components/RouterProvider/RouterProvider.d.ts.map +1 -0
- package/dist/components/SectionHeader/SectionHeader.d.ts +12 -0
- package/dist/components/SectionHeader/SectionHeader.d.ts.map +1 -0
- package/dist/components/Select/Option.d.ts +3 -0
- package/dist/components/Select/Option.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.d.ts +17 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +5 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Table/Table.d.ts +30 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/TableBody.d.ts +10 -0
- package/dist/components/Table/TableBody.d.ts.map +1 -0
- package/dist/components/Table/TableCell.d.ts +11 -0
- package/dist/components/Table/TableCell.d.ts.map +1 -0
- package/dist/components/Table/TableColumn.d.ts +15 -0
- package/dist/components/Table/TableColumn.d.ts.map +1 -0
- package/dist/components/Table/TableHeader.d.ts +10 -0
- package/dist/components/Table/TableHeader.d.ts.map +1 -0
- package/dist/components/Table/TableRow.d.ts +10 -0
- package/dist/components/Table/TableRow.d.ts.map +1 -0
- package/dist/components/Table/TableSelectionCheckbox.d.ts +3 -0
- package/dist/components/Table/TableSelectionCheckbox.d.ts.map +1 -0
- package/dist/components/Tabs/Tab.d.ts +15 -0
- package/dist/components/Tabs/Tab.d.ts.map +1 -0
- package/dist/components/Tabs/TabList.d.ts +10 -0
- package/dist/components/Tabs/TabList.d.ts.map +1 -0
- package/dist/components/Tabs/TabPanel.d.ts +8 -0
- package/dist/components/Tabs/TabPanel.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +15 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +17 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Toast/Toast.d.ts +15 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toast/toastQueue.d.ts +40 -0
- package/dist/components/Toast/toastQueue.d.ts.map +1 -0
- package/dist/components/TopBar/TopBar.d.ts +18 -0
- package/dist/components/TopBar/TopBar.d.ts.map +1 -0
- package/dist/hooks/useChartTheme.d.ts +2 -0
- package/dist/hooks/useChartTheme.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +79 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2689 -1094
- package/dist/layouts/Box/Box.d.ts +2 -0
- package/dist/layouts/Box/Box.d.ts.map +1 -1
- package/dist/layouts/Cover/Cover.d.ts +7 -1
- package/dist/layouts/Cover/Cover.d.ts.map +1 -1
- package/dist/typography/Heading/Heading.d.ts +9 -0
- package/dist/typography/Heading/Heading.d.ts.map +1 -1
- package/dist/typography/Text/Text.d.ts +11 -0
- package/dist/typography/Text/Text.d.ts.map +1 -1
- package/package.json +11 -6
- package/styles.d.ts +3 -0
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
export interface RudiKanbanCardProps {
|
|
2
2
|
id: string;
|
|
3
|
+
/**
|
|
4
|
+
* Human name for the card (e.g. its title or reference). Names the drag handle
|
|
5
|
+
* ("Move REF-1042") so screen-reader users hear which card they're on. Falls back to `id`.
|
|
6
|
+
*/
|
|
7
|
+
label?: string;
|
|
3
8
|
children: React.ReactNode;
|
|
4
9
|
className?: string;
|
|
5
10
|
}
|
|
6
|
-
export declare function RudiKanbanCard({ id, children, className }: RudiKanbanCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function RudiKanbanCard({ id, label, children, className }: RudiKanbanCardProps): import("react/jsx-runtime").JSX.Element;
|
|
7
12
|
//# sourceMappingURL=KanbanCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../src/components/Kanban/KanbanCard.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"KanbanCard.d.ts","sourceRoot":"","sources":["../../../src/components/Kanban/KanbanCard.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAA;IACV;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CAqDrF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RudiLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
href: string;
|
|
4
|
+
/**
|
|
5
|
+
* `default` — inherits weight, brand color; `subtle` — muted until hover;
|
|
6
|
+
* `standalone` — a self-contained link (e.g. "Learn more") with an inline icon slot.
|
|
7
|
+
*/
|
|
8
|
+
variant?: 'default' | 'subtle' | 'standalone';
|
|
9
|
+
underline?: 'always' | 'hover' | 'none';
|
|
10
|
+
/** Opens in a new tab with safe `rel` and appends an external-link icon. */
|
|
11
|
+
external?: boolean;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const RudiLink: React.ForwardRefExoticComponent<RudiLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
16
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAA;IAC7C,SAAS,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;IACvC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,yFA6CpB,CAAA"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { MenuItemProps as AriaMenuItemProps } from 'react-aria-components';
|
|
2
3
|
export interface RudiMenuItemProps extends AriaMenuItemProps {
|
|
3
4
|
isDestructive?: boolean;
|
|
5
|
+
/** Iconify icon name rendered before the label. */
|
|
6
|
+
icon?: string;
|
|
7
|
+
/** Primary text. When set, content is composed for you (no need to pass children). */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Secondary text shown beneath the label. */
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/** Keyboard shortcut hint shown at the trailing edge. */
|
|
12
|
+
shortcut?: ReactNode;
|
|
4
13
|
}
|
|
5
|
-
export declare function RudiMenuItem({ isDestructive, className, ...props }: RudiMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function RudiMenuItem({ isDestructive, icon, label, description, shortcut, className, textValue, children, ...props }: RudiMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
6
15
|
//# sourceMappingURL=MenuItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAGL,KAAK,aAAa,IAAI,iBAAiB,EACxC,MAAM,uBAAuB,CAAA;AAK9B,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sFAAsF;IACtF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8CAA8C;IAC9C,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,YAAY,CAAC,EAC3B,aAAa,EACb,IAAI,EACJ,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,iBAAiB,2CA6CnB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SeparatorProps } from 'react-aria-components';
|
|
2
|
+
export interface RudiMenuSeparatorProps extends SeparatorProps {
|
|
3
|
+
}
|
|
4
|
+
export declare function RudiMenuSeparator({ className, ...props }: RudiMenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=MenuSeparator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuSeparator.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/MenuSeparator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGtE,MAAM,WAAW,sBAAuB,SAAQ,cAAc;CAAG;AAEjE,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,2CAOhF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SubmenuTriggerProps as AriaSubmenuTriggerProps } from 'react-aria-components';
|
|
2
|
+
export interface RudiSubmenuTriggerProps extends AriaSubmenuTriggerProps {
|
|
3
|
+
}
|
|
4
|
+
export declare function RudiSubmenuTrigger(props: RudiSubmenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=SubmenuTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubmenuTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/SubmenuTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,IAAI,uBAAuB,EACpD,MAAM,uBAAuB,CAAA;AAE9B,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;CAAG;AAE3E,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,2CAEhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../src/components/NavItem/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;
|
|
1
|
+
{"version":3,"file":"NavItem.d.ts","sourceRoot":"","sources":["../../../src/components/NavItem/NavItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAyED,eAAO,MAAM,WAAW,sFAiBvB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RudiNumberFieldProps {
|
|
3
|
+
label: string;
|
|
4
|
+
/**
|
|
5
|
+
* Keep the label for assistive tech but hide it visually, e.g. inside a table
|
|
6
|
+
* cell whose column header already says what the field is.
|
|
7
|
+
*/
|
|
8
|
+
labelHidden?: boolean;
|
|
9
|
+
/** Controlled value. `null` renders an empty field. */
|
|
10
|
+
value?: number | null;
|
|
11
|
+
defaultValue?: number | null;
|
|
12
|
+
/** Receives the parsed number, or `null` when the field is cleared. */
|
|
13
|
+
onChange?: (value: number | null) => void;
|
|
14
|
+
minValue?: number;
|
|
15
|
+
maxValue?: number;
|
|
16
|
+
/** Increment for the stepper buttons and arrow keys; values snap to it. */
|
|
17
|
+
step?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Display format, e.g. `{ style: 'currency', currency: 'USD' }` or
|
|
20
|
+
* `{ style: 'percent' }`. Percent values are fractions (`0.25` shows `25%`).
|
|
21
|
+
*/
|
|
22
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
/** Shows the message and marks the field invalid. */
|
|
26
|
+
errorMessage?: string;
|
|
27
|
+
isRequired?: boolean;
|
|
28
|
+
isDisabled?: boolean;
|
|
29
|
+
isReadOnly?: boolean;
|
|
30
|
+
/** Form field name; submits the raw number. */
|
|
31
|
+
name?: string;
|
|
32
|
+
/** Hide the − / + stepper buttons (arrow keys still work). */
|
|
33
|
+
hideStepper?: boolean;
|
|
34
|
+
className?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const RudiNumberField: React.ForwardRefExoticComponent<RudiNumberFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
37
|
+
//# sourceMappingURL=NumberField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["../../../src/components/NumberField/NumberField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAazB,OAAO,oBAAoB,CAAA;AAE3B,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,uEAAuE;IACvE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,2EAA2E;IAC3E,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAA;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,8DAA8D;IAC9D,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAKD,eAAO,MAAM,eAAe,+FAwF3B,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RudiPageHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
3
|
+
title: React.ReactNode;
|
|
4
|
+
subtitle?: React.ReactNode;
|
|
5
|
+
/** Content pinned to the inline-end, e.g. primary page actions. */
|
|
6
|
+
actions?: React.ReactNode;
|
|
7
|
+
/** Heading level for the title. Defaults to 1. */
|
|
8
|
+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const RudiPageHeader: React.ForwardRefExoticComponent<RudiPageHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,OAAO,mBAAmB,CAAA;AAE1B,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAC3D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,mEAAmE;IACnE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,kDAAkD;IAClD,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,cAAc,4FAgC1B,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface RudiPaginationProps {
|
|
2
|
+
/** Current page (1-based). */
|
|
3
|
+
page: number;
|
|
4
|
+
/** Total number of pages. */
|
|
5
|
+
pageCount: number;
|
|
6
|
+
onPageChange: (page: number) => void;
|
|
7
|
+
/** Pages to show on each side of the current page before truncating. */
|
|
8
|
+
siblingCount?: number;
|
|
9
|
+
/** Accessible label for the nav landmark. */
|
|
10
|
+
label?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function RudiPagination({ page, pageCount, onPageChange, siblingCount, label, className, }: RudiPaginationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAA;AAEzB,MAAM,WAAW,mBAAmB;IAClC,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAoCD,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,YAAgB,EAChB,KAAoB,EACpB,SAAS,GACV,EAAE,mBAAmB,kDA6DrB"}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
+
export type RudiProgressBarVariant = 'default' | 'success' | 'warning' | 'error';
|
|
2
|
+
export interface RudiProgressBarThreshold {
|
|
3
|
+
/** Minimum percentage (0–100) at which this variant takes effect. */
|
|
4
|
+
at: number;
|
|
5
|
+
variant: RudiProgressBarVariant;
|
|
6
|
+
}
|
|
1
7
|
export interface RudiProgressBarProps {
|
|
2
8
|
value: number;
|
|
3
9
|
minValue?: number;
|
|
4
10
|
maxValue?: number;
|
|
5
11
|
label: string;
|
|
6
12
|
showValueLabel?: boolean;
|
|
7
|
-
variant?:
|
|
13
|
+
variant?: RudiProgressBarVariant;
|
|
14
|
+
/**
|
|
15
|
+
* Percentage-driven fill color. The highest `at` the current percentage
|
|
16
|
+
* meets or exceeds wins; below every threshold the `variant` prop applies.
|
|
17
|
+
* e.g. `[{ at: 80, variant: 'warning' }, { at: 100, variant: 'error' }]`.
|
|
18
|
+
*/
|
|
19
|
+
thresholds?: RudiProgressBarThreshold[];
|
|
8
20
|
size?: 'sm' | 'md';
|
|
9
21
|
className?: string;
|
|
10
22
|
}
|
|
11
|
-
export declare function RudiProgressBar({ value, minValue, maxValue, label, showValueLabel, variant, size, className, }: RudiProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function RudiProgressBar({ value, minValue, maxValue, label, showValueLabel, variant, thresholds, size, className, }: RudiProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
12
24
|
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,CAAA;AAE3B,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,CAAA;AAE3B,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;AAEhF,MAAM,WAAW,wBAAwB;IACvC,qEAAqE;IACrE,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,sBAAsB,CAAA;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,sBAAsB,CAAA;IAChC;;;;OAIG;IACH,UAAU,CAAC,EAAE,wBAAwB,EAAE,CAAA;IACvC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAeD,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,QAAY,EACZ,QAAc,EACd,KAAK,EACL,cAAsB,EACtB,OAAmB,EACnB,UAAU,EACV,IAAW,EACX,SAAS,GACV,EAAE,oBAAoB,2CA4CtB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface RudiRadioProps {
|
|
2
|
+
/** The value submitted and reported to the group's `onChange` when this option is selected. */
|
|
3
|
+
value: string;
|
|
4
|
+
/** Visible label for the option. */
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** Disables just this option. A disabled group disables every option. */
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A single option inside `RudiRadioGroup`. Must be rendered as a descendant of
|
|
12
|
+
* a `RudiRadioGroup`, which owns the selection state.
|
|
13
|
+
*/
|
|
14
|
+
export declare const RudiRadio: import('react').ForwardRefExoticComponent<RudiRadioProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/Radio.tsx"],"names":[],"mappings":"AAKA,OAAO,mBAAmB,CAAA;AAE1B,MAAM,WAAW,cAAc;IAC7B,+FAA+F;IAC/F,KAAK,EAAE,MAAM,CAAA;IACb,oCAAoC;IACpC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,yEAAyE;IACzE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,eAAO,MAAM,SAAS,6GA6BrB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,OAAO,mBAAmB,CAAA;AAE1B,eAAO,MAAM,iBAAiB,iDAA8C,CAAA;AAE5E,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAEpD,OAAO,mBAAmB,CAAA;AAE1B,eAAO,MAAM,iBAAiB,iDAA8C,CAAA;AAE5E,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAsCxD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface RudiRatingProps {
|
|
2
|
+
/** Current rating. Supports halves (e.g. `4.5`). */
|
|
3
|
+
value: number;
|
|
4
|
+
/** Number of stars. */
|
|
5
|
+
max?: number;
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
/** When set, renders as an interactive radiogroup instead of a static image. */
|
|
8
|
+
onChange?: (value: number) => void;
|
|
9
|
+
/** Show the numeric value (e.g. `4.8`) beside the stars. */
|
|
10
|
+
showValue?: boolean;
|
|
11
|
+
/** Optional review count rendered beside the stars, e.g. `(128)`. */
|
|
12
|
+
count?: number;
|
|
13
|
+
/** Accessible label. Defaults to `"Rated {value} out of {max}"`. */
|
|
14
|
+
label?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function RudiRating({ value, max, size, onChange, showValue, count, label, className, }: RudiRatingProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=Rating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rating.d.ts","sourceRoot":"","sources":["../../../src/components/Rating/Rating.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAe;IAC9B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,uBAAuB;IACvB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAUD,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,GAAO,EACP,IAAW,EACX,QAAQ,EACR,SAAiB,EACjB,KAAK,EACL,KAAK,EACL,SAAS,GACV,EAAE,eAAe,2CA4DjB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RouterProvider } from 'react-aria';
|
|
2
|
+
/**
|
|
3
|
+
* Connects Rudi links (`RudiLink`, `RudiNavItem`, `RudiBreadcrumb`) to your router for client-side
|
|
4
|
+
* navigation. Pass your router's `navigate` function, and optionally `useHref` for base paths.
|
|
5
|
+
*
|
|
6
|
+
* ```tsx
|
|
7
|
+
* const navigate = useNavigate()
|
|
8
|
+
* <RudiRouterProvider navigate={navigate} useHref={useHref}>…</RudiRouterProvider>
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* Without it, links work as ordinary full-page links.
|
|
12
|
+
*/
|
|
13
|
+
export declare const RudiRouterProvider: typeof RouterProvider;
|
|
14
|
+
export type RudiRouterProviderProps = React.ComponentProps<typeof RouterProvider>;
|
|
15
|
+
//# sourceMappingURL=RouterProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RouterProvider.d.ts","sourceRoot":"","sources":["../../../src/components/RouterProvider/RouterProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,uBAAiB,CAAA;AAEhD,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RudiSectionHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
3
|
+
title: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
/** Content pinned to the inline-end, e.g. a "see all" link or button. */
|
|
6
|
+
action?: React.ReactNode;
|
|
7
|
+
/** Heading level for the title. Defaults to 2. */
|
|
8
|
+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const RudiSectionHeader: React.ForwardRefExoticComponent<RudiSectionHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
//# sourceMappingURL=SectionHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../src/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,OAAO,sBAAsB,CAAA;AAE7B,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IAC3D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC7B,yEAAyE;IACzE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,kDAAkD;IAClD,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,iBAAiB,+FAiC5B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Option.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AAClD,YAAY,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type RudiStepStatus = 'complete' | 'current' | 'upcoming';
|
|
2
|
+
export interface RudiStepperStep {
|
|
3
|
+
label: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
/** Icon name for the node. Falls back to a check (complete) or the step number. */
|
|
6
|
+
icon?: string;
|
|
7
|
+
status?: RudiStepStatus;
|
|
8
|
+
}
|
|
9
|
+
export interface RudiStepperProps {
|
|
10
|
+
steps: RudiStepperStep[];
|
|
11
|
+
/** `horizontal` — a progress track; `vertical` — a timeline. */
|
|
12
|
+
orientation?: 'horizontal' | 'vertical';
|
|
13
|
+
size?: 'sm' | 'md';
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function RudiStepper({ steps, orientation, size, className, }: RudiStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.tsx"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAEtB,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAA;AAEhE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,eAAe,EAAE,CAAA;IACxB,gEAAgE;IAChE,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAQD,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAA0B,EAC1B,IAAW,EACX,SAAS,GACV,EAAE,gBAAgB,2CA+DlB"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export interface RudiSwitchProps {
|
|
2
|
-
|
|
2
|
+
/** Visible label. Omit only when `aria-label` or `aria-labelledby` names the switch. */
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
/** Accessible name, for switches whose visible text repeats (e.g. one per table row). */
|
|
5
|
+
'aria-label'?: string;
|
|
6
|
+
'aria-labelledby'?: string;
|
|
3
7
|
isSelected?: boolean;
|
|
4
8
|
defaultSelected?: boolean;
|
|
5
9
|
onChange?: (isSelected: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAKA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAKA,OAAO,cAAc,CAAA;AAErB,MAAM,WAAW,eAAe;IAC9B,wFAAwF;IACxF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAA;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,UAAU,8GA8BtB,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TableProps as AriaTableProps } from 'react-aria-components';
|
|
2
|
+
type RudiTableLabelProps = {
|
|
3
|
+
'aria-label': string;
|
|
4
|
+
'aria-labelledby'?: string;
|
|
5
|
+
} | {
|
|
6
|
+
'aria-label'?: string;
|
|
7
|
+
'aria-labelledby': string;
|
|
8
|
+
};
|
|
9
|
+
export type RudiTableProps = Omit<AriaTableProps, 'className' | 'style' | 'aria-label' | 'aria-labelledby'> & RudiTableLabelProps & {
|
|
10
|
+
/** Row height / cell padding. */
|
|
11
|
+
density?: 'compact' | 'regular';
|
|
12
|
+
/** Alternate row backgrounds (zebra striping). Off by default. */
|
|
13
|
+
striped?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Pin the header row while the body scrolls. The header sticks to the table's own
|
|
16
|
+
* scroll container, so pair it with `maxHeight`.
|
|
17
|
+
*/
|
|
18
|
+
stickyHeader?: boolean;
|
|
19
|
+
/** Max height of the scroll container (CSS length or px number). Enables vertical scrolling. */
|
|
20
|
+
maxHeight?: string | number;
|
|
21
|
+
/** Class merged onto the outer scroll container. */
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Accessible data table built on React Aria Components' `Table`. Wraps the grid in a scroll
|
|
26
|
+
* container so wide tables scroll horizontally instead of overflowing the page.
|
|
27
|
+
*/
|
|
28
|
+
export declare const RudiTable: import('react').ForwardRefExoticComponent<RudiTableProps & import('react').RefAttributes<HTMLTableElement>>;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,KAAK,UAAU,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE7F,OAAO,aAAa,CAAA;AAEpB,KAAK,mBAAmB,GACpB;IAAE,YAAY,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAAA;AAExD,MAAM,MAAM,cAAc,GAAG,IAAI,CAC/B,cAAc,EACd,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,iBAAiB,CACzD,GACC,mBAAmB,GAAG;IACpB,iCAAiC;IACjC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IAC/B,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gGAAgG;IAChG,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAEH;;;GAGG;AACH,eAAO,MAAM,SAAS,6GA0BpB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TableBodyProps as AriaTableBodyProps } from 'react-aria-components';
|
|
2
|
+
export interface RudiTableBodyProps<T extends object> extends Omit<AriaTableBodyProps<T>, 'className' | 'style'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The table body. Pass static `RudiTableRow` children, or `items` plus a render function.
|
|
7
|
+
* `renderEmptyState` renders (full width) when there are no rows — e.g. a `RudiEmptyState`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function RudiTableBody<T extends object>({ className, ...props }: RudiTableBodyProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=TableBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,IAAI,kBAAkB,EAC1C,MAAM,uBAAuB,CAAA;AAG9B,MAAM,WAAW,kBAAkB,CAAC,CAAC,SAAS,MAAM,CAClD,SAAQ,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC,2CAE7F"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CellProps as AriaCellProps } from 'react-aria-components';
|
|
3
|
+
import { RudiTableAlign } from './TableColumn';
|
|
4
|
+
export interface RudiTableCellProps extends Omit<AriaCellProps, 'className' | 'style' | 'children'> {
|
|
5
|
+
/** Overrides the alignment inherited from the cell's `RudiTableColumn`. */
|
|
6
|
+
align?: RudiTableAlign;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function RudiTableCell({ align, children, className, textValue, ...props }: RudiTableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=TableCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCell.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AACnE,OAAO,EAGL,KAAK,SAAS,IAAI,aAAa,EAChC,MAAM,uBAAuB,CAAA;AAE9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC;IACjG,2EAA2E;IAC3E,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAyCD,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAcpG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ColumnProps as AriaColumnProps } from 'react-aria-components';
|
|
3
|
+
export type RudiTableAlign = 'start' | 'center' | 'end';
|
|
4
|
+
export interface RudiTableColumnProps extends Omit<AriaColumnProps, 'className' | 'style' | 'children' | 'width' | 'defaultWidth' | 'minWidth' | 'maxWidth'> {
|
|
5
|
+
/** Horizontal alignment of the header and every cell in this column. Use `end` for numbers. */
|
|
6
|
+
align?: RudiTableAlign;
|
|
7
|
+
/** Column width (CSS length or px number). */
|
|
8
|
+
width?: string | number;
|
|
9
|
+
/** Minimum column width (CSS length or px number). */
|
|
10
|
+
minWidth?: string | number;
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function RudiTableColumn({ align, width, minWidth, children, className, textValue, ...props }: RudiTableColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=TableColumn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableColumn.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAwB,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAIjG,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAA;AAEvD,MAAM,WAAW,oBACf,SAAQ,IAAI,CACV,eAAe,EACf,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,CACxF;IACD,+FAA+F;IAC/F,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAQD,wBAAgB,eAAe,CAAC,EAC9B,KAAe,EACf,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,2CA2BtB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TableHeaderProps as AriaTableHeaderProps } from 'react-aria-components';
|
|
2
|
+
export interface RudiTableHeaderProps<T extends object> extends Omit<AriaTableHeaderProps<T>, 'className' | 'style'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The header row. Pass static `RudiTableColumn` children, or `columns` plus a render function.
|
|
7
|
+
* A selection column is prepended automatically when the table has a `selectionMode`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function RudiTableHeader<T extends object>({ columns, children, dependencies, className, ...props }: RudiTableHeaderProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=TableHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,gBAAgB,IAAI,oBAAoB,EAC9C,MAAM,uBAAuB,CAAA;AAK9B,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,CACpD,SAAQ,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,EAChD,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,2CAmBzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RowProps as AriaRowProps } from 'react-aria-components';
|
|
2
|
+
export interface RudiTableRowProps<T extends object> extends Omit<AriaRowProps<T>, 'className' | 'style'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* A table row. Give it `href` to make the whole row a link (routed through
|
|
7
|
+
* `RudiRouterProvider`), or handle `onAction` / the table's `onRowAction`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function RudiTableRow<T extends object>({ id, columns, children, dependencies, className, ...props }: RudiTableRowProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=TableRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,QAAQ,IAAI,YAAY,EAC9B,MAAM,uBAAuB,CAAA;AAI9B,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,CACjD,SAAQ,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,EAAE,EACF,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAetB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableSelectionCheckbox.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableSelectionCheckbox.tsx"],"names":[],"mappings":"AAGA,gFAAgF;AAChF,wBAAgB,0BAA0B,4CAezC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TabProps as AriaTabProps } from 'react-aria-components';
|
|
3
|
+
export interface RudiTabProps extends Omit<AriaTabProps, 'className' | 'style' | 'children' | 'id'> {
|
|
4
|
+
/** Unique key; matches the `id` of the corresponding `RudiTabPanel`. */
|
|
5
|
+
id: string;
|
|
6
|
+
/** Tab label. */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** Iconify icon name rendered before the label. */
|
|
9
|
+
icon?: string;
|
|
10
|
+
/** Trailing content after the label, e.g. a count `RudiBadge`. Part of the accessible name. */
|
|
11
|
+
badge?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function RudiTab({ id, icon, badge, className, children, ...props }: RudiTabProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Tab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tab.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAkB,KAAK,QAAQ,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAIrF,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,YAAY,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,IAAI,CAAC;IACrE,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAA;IACV,iBAAiB;IACjB,QAAQ,EAAE,SAAS,CAAA;IACnB,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,+FAA+F;IAC/F,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAevF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TabListProps as AriaTabListProps } from 'react-aria-components';
|
|
2
|
+
export interface RudiTabListProps<T extends object> extends Omit<AriaTabListProps<T>, 'className' | 'style' | 'aria-label'> {
|
|
3
|
+
/** Accessible name for the tab list, e.g. "Shipment status". */
|
|
4
|
+
'aria-label': string;
|
|
5
|
+
/** Visual treatment of the tabs. Defaults to `underline`. */
|
|
6
|
+
variant?: 'underline' | 'pill';
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function RudiTabList<T extends object>({ variant, className, ...props }: RudiTabListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=TabList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabList.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,IAAI,gBAAgB,EACtC,MAAM,uBAAuB,CAAA;AAG9B,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,CAChD,SAAQ,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,YAAY,CAAC;IACvE,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAA;IACpB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,EAC5C,OAAqB,EACrB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,CAAC,CAAC,2CAOrB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TabPanelProps as AriaTabPanelProps } from 'react-aria-components';
|
|
2
|
+
export interface RudiTabPanelProps extends Omit<AriaTabPanelProps, 'className' | 'style' | 'id'> {
|
|
3
|
+
/** Must match the `id` of the `RudiTab` that controls this panel. */
|
|
4
|
+
id: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function RudiTabPanel({ className, ...props }: RudiTabPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=TabPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TabPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,aAAa,IAAI,iBAAiB,EACxC,MAAM,uBAAuB,CAAA;AAG9B,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,OAAO,GAAG,IAAI,CAAC;IAC9F,qEAAqE;IACrE,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAEtE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TabsProps as AriaTabsProps } from 'react-aria-components';
|
|
2
|
+
export interface RudiTabsProps extends Omit<AriaTabsProps, 'className' | 'style'> {
|
|
3
|
+
/**
|
|
4
|
+
* Layout and arrow-key axis. Lives on the root (not the list) because React Aria reads it
|
|
5
|
+
* from `Tabs`; vertical places the list beside the panels.
|
|
6
|
+
*/
|
|
7
|
+
orientation?: 'horizontal' | 'vertical';
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Root of the tabs compound. Owns selection (`selectedKey` / `defaultSelectedKey` /
|
|
12
|
+
* `onSelectionChange`). Compose with `RudiTabList`, `RudiTab` and `RudiTabPanel`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function RudiTabs({ orientation, className, ...props }: RudiTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,IAAI,aAAa,EAChC,MAAM,uBAAuB,CAAA;AAE9B,OAAO,YAAY,CAAA;AAEnB,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,OAAO,CAAC;IAC/E;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAA;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,EAAE,WAA0B,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAQ1F"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface RudiTextareaProps {
|
|
3
|
+
label: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
isRequired?: boolean;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
value?: string;
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
rows?: number;
|
|
13
|
+
resize?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const RudiTextarea: React.ForwardRefExoticComponent<RudiTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
17
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,gBAAgB,CAAA;AAEvB,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAA;IACpD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,YAAY,+FA6EvB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface RudiToastRegionProps {
|
|
2
|
+
/** Corner of the viewport the toasts stack from. */
|
|
3
|
+
placement?: 'top-end' | 'bottom-end' | 'bottom-center';
|
|
4
|
+
/** Accessible name for the notifications landmark. Defaults to a localized "Notifications" label. */
|
|
5
|
+
'aria-label'?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Renders toasts queued with `rudiToast`. Mount exactly one, near the app
|
|
10
|
+
* root. It portals into `document.body` and renders nothing while the queue
|
|
11
|
+
* is empty. The region is an ARIA landmark (F6 moves focus into it) and each
|
|
12
|
+
* toast is announced to screen readers when it appears.
|
|
13
|
+
*/
|
|
14
|
+
export declare function RudiToastRegion({ placement, 'aria-label': ariaLabel, className, }: RudiToastRegionProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAcA,OAAO,aAAa,CAAA;AAEpB,MAAM,WAAW,oBAAoB;IACnC,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,eAAe,CAAA;IACtD,qGAAqG;IACrG,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA4CD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC9B,SAAwB,EACxB,YAAY,EAAE,SAAS,EACvB,SAAS,GACV,EAAE,oBAAoB,2CAUtB"}
|