@ecopages/radiant-ui 0.1.0-rc.1 → 0.1.0-rc.2
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/components/ui/alert/alert.d.ts +7 -9
- package/dist/components/ui/autocomplete/autocomplete.d.ts +7 -13
- package/dist/components/ui/avatar/avatar.d.ts +4 -4
- package/dist/components/ui/breadcrumb/breadcrumb.d.ts +12 -16
- package/dist/components/ui/button/button.d.ts +5 -12
- package/dist/components/ui/button-group/button-group.d.ts +4 -6
- package/dist/components/ui/calendar/calendar.d.ts +3 -5
- package/dist/components/ui/carousel/carousel.d.ts +13 -16
- package/dist/components/ui/checkbox/checkbox.d.ts +3 -5
- package/dist/components/ui/chip/chip.d.ts +3 -3
- package/dist/components/ui/chip-list/chip-list.d.ts +4 -7
- package/dist/components/ui/combobox/combobox.d.ts +11 -19
- package/dist/components/ui/combobox/index.d.ts +1 -1
- package/dist/components/ui/cycle-toggle/cycle-toggle.d.ts +7 -11
- package/dist/components/ui/date-field/date-field.d.ts +10 -14
- package/dist/components/ui/date-range-picker/date-range-picker.d.ts +14 -17
- package/dist/components/ui/dialog/dialog.d.ts +9 -18
- package/dist/components/ui/disclosure/disclosure.d.ts +10 -14
- package/dist/components/ui/feed/feed.d.ts +13 -23
- package/dist/components/ui/field/field-description.d.ts +2 -2
- package/dist/components/ui/field/field-error.d.ts +2 -2
- package/dist/components/ui/field/field.d.ts +3 -3
- package/dist/components/ui/form/form-context.d.ts +3 -1
- package/dist/components/ui/form/form.d.ts +3 -3
- package/dist/components/ui/form/form.script.d.ts +12 -0
- package/dist/components/ui/form/index.js +1 -1
- package/dist/components/ui/form/index.js.map +3 -3
- package/dist/components/ui/grid/grid.d.ts +3 -4
- package/dist/components/ui/heading/heading.d.ts +10 -14
- package/dist/components/ui/heading/index.js +1 -1
- package/dist/components/ui/heading/index.js.map +3 -3
- package/dist/components/ui/headline/headline.d.ts +7 -7
- package/dist/components/ui/headline/index.js +1 -1
- package/dist/components/ui/headline/index.js.map +3 -3
- package/dist/components/ui/input/input.d.ts +3 -8
- package/dist/components/ui/label/label.d.ts +3 -3
- package/dist/components/ui/listbox/listbox.d.ts +5 -6
- package/dist/components/ui/menu-button/menu-button.d.ts +7 -8
- package/dist/components/ui/menubar/menubar.d.ts +3 -4
- package/dist/components/ui/meter/meter.d.ts +3 -5
- package/dist/components/ui/navigation-menu/navigation-menu.d.ts +9 -14
- package/dist/components/ui/number-field/number-field.d.ts +11 -19
- package/dist/components/ui/popover/popover.d.ts +5 -9
- package/dist/components/ui/radio-group/radio-group.d.ts +6 -7
- package/dist/components/ui/select/index.d.ts +1 -1
- package/dist/components/ui/select/index.js +1 -1
- package/dist/components/ui/select/index.js.map +4 -4
- package/dist/components/ui/select/select.d.ts +16 -28
- package/dist/components/ui/sidebar/index.d.ts +1 -1
- package/dist/components/ui/sidebar/index.js +1 -1
- package/dist/components/ui/sidebar/index.js.map +4 -4
- package/dist/components/ui/sidebar/sidebar.d.ts +45 -92
- package/dist/components/ui/slider/slider.d.ts +3 -4
- package/dist/components/ui/switch/switch.d.ts +3 -5
- package/dist/components/ui/tabs/tabs.d.ts +11 -19
- package/dist/components/ui/tag-group/tag-group.d.ts +8 -13
- package/dist/components/ui/textarea/textarea.d.ts +3 -8
- package/dist/components/ui/toast/toast.d.ts +7 -11
- package/dist/components/ui/toc/toc.d.ts +4 -4
- package/dist/components/ui/toolbar/toolbar.d.ts +3 -5
- package/dist/components/ui/tooltip/tooltip.d.ts +3 -5
- package/dist/components/ui/tree/tree.d.ts +3 -4
- package/dist/components/ui/treegrid/treegrid.d.ts +3 -4
- package/dist/components/ui/window-splitter/window-splitter.d.ts +4 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/lib/icons/types.d.ts +3 -3
- package/dist/lib/intrinsic.d.ts +3 -3
- package/dist/lib/mask/date-mask.d.ts +0 -2
- package/dist/lib/mask/index.d.ts +2 -2
- package/dist/lib/mask/input-mask.d.ts +0 -4
- package/package.json +9 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsxElementProps } from '@ecopages/jsx';
|
|
2
2
|
import type { RuiAlertProps, RuiAlertVariant } from './alert.script';
|
|
3
3
|
/** Registers `<rui-alert>` when the JSX helpers are imported. */
|
|
4
4
|
import './alert.script';
|
|
5
|
-
export type RuiAlertIconProps =
|
|
5
|
+
export type RuiAlertIconProps = JsxElementProps<HTMLSpanElement> & {
|
|
6
6
|
variant?: RuiAlertVariant;
|
|
7
|
-
}
|
|
7
|
+
};
|
|
8
8
|
/**
|
|
9
9
|
* Default variant icon for `layout="inline"`. Pass `children` to override.
|
|
10
10
|
*
|
|
@@ -14,23 +14,21 @@ export type RuiAlertIconProps = JsxHtmlPropsWithChildren<{
|
|
|
14
14
|
* text, not by icon alone.
|
|
15
15
|
*/
|
|
16
16
|
export declare function RuiAlertIcon({ variant, class: className, children, ...props }: RuiAlertIconProps): import("@ecopages/jsx").JsxRenderable;
|
|
17
|
-
export type RuiAlertTitleProps =
|
|
17
|
+
export type RuiAlertTitleProps = JsxElementProps<HTMLParagraphElement>;
|
|
18
18
|
/**
|
|
19
19
|
* Heading for `layout="banner"` alerts.
|
|
20
20
|
*
|
|
21
21
|
* @cssclass rui-alert__title - Banner headline.
|
|
22
22
|
*/
|
|
23
23
|
export declare function RuiAlertTitle({ children, class: className, ...props }: RuiAlertTitleProps): import("@ecopages/jsx").JsxRenderable;
|
|
24
|
-
export type RuiAlertDescriptionProps =
|
|
24
|
+
export type RuiAlertDescriptionProps = JsxElementProps<HTMLDivElement>;
|
|
25
25
|
/**
|
|
26
26
|
* Body copy for `layout="banner"` alerts.
|
|
27
27
|
*
|
|
28
28
|
* @cssclass rui-alert__description - Banner body.
|
|
29
29
|
*/
|
|
30
30
|
export declare function RuiAlertDescription({ children, class: className, ...props }: RuiAlertDescriptionProps): import("@ecopages/jsx").JsxRenderable;
|
|
31
|
-
export type RuiAlertComponentProps =
|
|
32
|
-
slot?: string;
|
|
33
|
-
}>;
|
|
31
|
+
export type RuiAlertComponentProps = JsxElementProps<HTMLDivElement> & RuiAlertProps;
|
|
34
32
|
/**
|
|
35
33
|
* Status alert with optional dismiss control.
|
|
36
34
|
*
|
|
@@ -51,4 +49,4 @@ export type RuiAlertComponentProps = JsxHtmlPropsWithChildren<RuiAlertProps & {
|
|
|
51
49
|
* @cssclass rui-alert--dismissible - Layout adjustments for the dismiss control.
|
|
52
50
|
* @cssclass rui-alert__close - Dismiss button when `dismissible` is set.
|
|
53
51
|
*/
|
|
54
|
-
export declare function RuiAlert({ children, variant, layout, dismissible, closeLabel, class: className, ...props }: RuiAlertComponentProps): import("@ecopages/jsx").JsxRenderable;
|
|
52
|
+
export declare function RuiAlert({ children, variant, layout, dismissible, closeLabel, class: className, slot, ...props }: RuiAlertComponentProps): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { RuiAutocompleteProps } from './autocomplete.script';
|
|
1
|
+
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
+
import type { RuiAutocomplete as RuiAutocompleteElement, RuiAutocompleteProps } from './autocomplete.script';
|
|
3
3
|
import './autocomplete.script';
|
|
4
|
-
export type RuiAutocompleteInputProps =
|
|
5
|
-
slot?: string;
|
|
4
|
+
export type RuiAutocompleteInputProps = JsxElementProps<HTMLInputElement> & {
|
|
6
5
|
placeholder?: string;
|
|
7
|
-
'aria-label'?: string;
|
|
8
6
|
disabled?: boolean;
|
|
9
|
-
}
|
|
7
|
+
};
|
|
10
8
|
/** Search field slotted into `RuiAutocomplete`. Also pairs with combobox inputs via `data-autocomplete-input`.
|
|
11
9
|
*
|
|
12
10
|
* @cssclass rui-autocomplete__input - Bordered search input.
|
|
13
11
|
*/
|
|
14
12
|
export declare function RuiAutocompleteInput({ placeholder, slot, class: className, disabled, ...props }: RuiAutocompleteInputProps): import("@ecopages/jsx").JsxRenderable;
|
|
15
|
-
export type RuiAutocompleteCollectionProps =
|
|
16
|
-
slot?: string;
|
|
17
|
-
}>;
|
|
13
|
+
export type RuiAutocompleteCollectionProps = JsxElementProps<HTMLDivElement>;
|
|
18
14
|
/** Wrapper around the filterable collection inside `RuiAutocomplete`.
|
|
19
15
|
*
|
|
20
16
|
* @cssclass rui-autocomplete__collection - Scrollable filterable region.
|
|
21
17
|
*/
|
|
22
18
|
export declare function RuiAutocompleteCollection({ children, class: className, ...props }: RuiAutocompleteCollectionProps): import("@ecopages/jsx").JsxRenderable;
|
|
23
|
-
export type RuiAutocompleteEmptyProps =
|
|
19
|
+
export type RuiAutocompleteEmptyProps = JsxElementProps<HTMLDivElement>;
|
|
24
20
|
/** Shown when filtering yields no visible items.
|
|
25
21
|
*
|
|
26
22
|
* @cssclass rui-autocomplete__empty - No-results state.
|
|
27
23
|
*/
|
|
28
24
|
export declare function RuiAutocompleteEmpty({ children, class: className, ...props }: RuiAutocompleteEmptyProps): import("@ecopages/jsx").JsxRenderable;
|
|
29
|
-
export declare function RuiAutocomplete({ children, ...props }:
|
|
30
|
-
slot?: string;
|
|
31
|
-
}>): import("@ecopages/jsx").JsxRenderable;
|
|
25
|
+
export declare function RuiAutocomplete({ children, ...props }: JsxCustomElementAttributes<RuiAutocompleteElement, RuiAutocompleteProps>): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsxElementProps } from '@ecopages/jsx';
|
|
2
2
|
export type RuiAvatarSize = 'sm' | 'md' | 'lg';
|
|
3
|
-
export type RuiAvatarProps =
|
|
3
|
+
export type RuiAvatarProps = JsxElementProps<HTMLSpanElement> & {
|
|
4
4
|
/** Image URL. When omitted or broken, initials from `alt` / `fallback` are shown. */
|
|
5
5
|
src?: string;
|
|
6
6
|
/** Accessible name for the image. Also used to derive initials when `fallback` is omitted. */
|
|
@@ -8,7 +8,7 @@ export type RuiAvatarProps = JsxHtmlPropsWithChildren<{
|
|
|
8
8
|
/** Explicit fallback initials / text when there is no image. */
|
|
9
9
|
fallback?: string;
|
|
10
10
|
size?: RuiAvatarSize;
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
/**
|
|
13
13
|
* Image avatar with initials fallback.
|
|
14
14
|
*
|
|
@@ -24,4 +24,4 @@ export type RuiAvatarProps = JsxHtmlPropsWithChildren<{
|
|
|
24
24
|
* @cssclass rui-avatar__image - `<img>` fill.
|
|
25
25
|
* @cssclass rui-avatar__fallback - Initials / text fallback.
|
|
26
26
|
*/
|
|
27
|
-
export declare function RuiAvatar({ src, alt, fallback, size, class: className, children, ...props }: RuiAvatarProps): import("@ecopages/jsx").JsxRenderable;
|
|
27
|
+
export declare function RuiAvatar({ src, alt, fallback, size, class: className, children, role, aria, ...props }: RuiAvatarProps): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { RuiBreadcrumbProps } from './breadcrumb.script';
|
|
1
|
+
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
+
import type { RuiBreadcrumb as RuiBreadcrumbElement, RuiBreadcrumbProps } from './breadcrumb.script';
|
|
3
3
|
import './breadcrumb.script';
|
|
4
|
-
export type RuiBreadcrumbViewProps =
|
|
5
|
-
slot?: string;
|
|
6
|
-
}>;
|
|
4
|
+
export type RuiBreadcrumbViewProps = JsxCustomElementAttributes<RuiBreadcrumbElement, RuiBreadcrumbProps>;
|
|
7
5
|
/**
|
|
8
6
|
* Landmark wrapper for a breadcrumb trail. Set `separator` once here (e.g. `/`
|
|
9
7
|
* or `>`); empty `RuiBreadcrumbSeparator` nodes pick it up via CSS — no context.
|
|
@@ -12,39 +10,37 @@ export type RuiBreadcrumbViewProps = JsxHtmlPropsWithChildren<RuiBreadcrumbProps
|
|
|
12
10
|
* @cssclass rui-breadcrumb - `<nav>` landmark root.
|
|
13
11
|
*/
|
|
14
12
|
export declare function RuiBreadcrumb({ children, ...props }: RuiBreadcrumbViewProps): import("@ecopages/jsx").JsxRenderable;
|
|
15
|
-
export type RuiBreadcrumbListProps =
|
|
13
|
+
export type RuiBreadcrumbListProps = JsxElementProps<HTMLOListElement>;
|
|
16
14
|
/**
|
|
17
15
|
* Ordered list of breadcrumb items and separators.
|
|
18
16
|
*
|
|
19
17
|
* @cssclass rui-breadcrumb__list - Ordered list row.
|
|
20
18
|
*/
|
|
21
19
|
export declare function RuiBreadcrumbList({ children, class: className, ...props }: RuiBreadcrumbListProps): import("@ecopages/jsx").JsxRenderable;
|
|
22
|
-
export type RuiBreadcrumbItemProps =
|
|
20
|
+
export type RuiBreadcrumbItemProps = JsxElementProps<HTMLLIElement>;
|
|
23
21
|
/**
|
|
24
22
|
* Single crumb (`<li>`).
|
|
25
23
|
*
|
|
26
24
|
* @cssclass rui-breadcrumb__item - List item wrapping a crumb link/page.
|
|
27
25
|
*/
|
|
28
26
|
export declare function RuiBreadcrumbItem({ children, class: className, ...props }: RuiBreadcrumbItemProps): import("@ecopages/jsx").JsxRenderable;
|
|
29
|
-
export type RuiBreadcrumbLinkProps =
|
|
27
|
+
export type RuiBreadcrumbLinkProps = JsxElementProps<HTMLAnchorElement> & {
|
|
30
28
|
href: string;
|
|
31
|
-
|
|
32
|
-
'aria-label'?: string;
|
|
33
|
-
}>;
|
|
29
|
+
};
|
|
34
30
|
/**
|
|
35
31
|
* Linked ancestor page.
|
|
36
32
|
*
|
|
37
33
|
* @cssclass rui-breadcrumb__link - Crumb link.
|
|
38
34
|
*/
|
|
39
|
-
export declare function RuiBreadcrumbLink({ children, href, class: className,
|
|
40
|
-
export type RuiBreadcrumbPageProps =
|
|
35
|
+
export declare function RuiBreadcrumbLink({ children, href, class: className, ...props }: RuiBreadcrumbLinkProps): import("@ecopages/jsx").JsxRenderable;
|
|
36
|
+
export type RuiBreadcrumbPageProps = JsxElementProps<HTMLSpanElement>;
|
|
41
37
|
/**
|
|
42
38
|
* Current page (non-link).
|
|
43
39
|
*
|
|
44
40
|
* @cssclass rui-breadcrumb__page - Current page span (`aria-current="page"`).
|
|
45
41
|
*/
|
|
46
42
|
export declare function RuiBreadcrumbPage({ children, class: className, ...props }: RuiBreadcrumbPageProps): import("@ecopages/jsx").JsxRenderable;
|
|
47
|
-
export type RuiBreadcrumbSeparatorProps =
|
|
43
|
+
export type RuiBreadcrumbSeparatorProps = JsxElementProps<HTMLLIElement>;
|
|
48
44
|
/**
|
|
49
45
|
* Visual separator between crumbs. Renders as a presentational list item.
|
|
50
46
|
* With no children, uses the glyph from `RuiBreadcrumb`’s `separator` prop
|
|
@@ -53,10 +49,10 @@ export type RuiBreadcrumbSeparatorProps = JsxHtmlPropsWithChildren;
|
|
|
53
49
|
* @cssclass rui-breadcrumb__separator - Presentational separator (`aria-hidden`).
|
|
54
50
|
*/
|
|
55
51
|
export declare function RuiBreadcrumbSeparator({ children, class: className, ...props }: RuiBreadcrumbSeparatorProps): import("@ecopages/jsx").JsxRenderable;
|
|
56
|
-
export type RuiBreadcrumbEllipsisProps =
|
|
52
|
+
export type RuiBreadcrumbEllipsisProps = JsxElementProps<HTMLSpanElement> & {
|
|
57
53
|
/** Accessible label announced for the collapsed segment. Default: `More`. */
|
|
58
54
|
label?: string;
|
|
59
|
-
}
|
|
55
|
+
};
|
|
60
56
|
/**
|
|
61
57
|
* Collapsed middle segment indicator.
|
|
62
58
|
*
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsxElementProps } from '@ecopages/jsx';
|
|
2
2
|
export type RuiButtonVariant = 'filled' | 'outline' | 'destructive' | 'ghost' | 'link';
|
|
3
3
|
export type RuiButtonSize = 'none' | 'sm' | 'md' | 'lg';
|
|
4
|
-
type
|
|
4
|
+
type RuiButtonChrome = {
|
|
5
5
|
/** Visual style. Default: `filled`. */
|
|
6
6
|
variant?: RuiButtonVariant;
|
|
7
7
|
/** Control size. Default: `md` (Default in docs). Use `none` for inline `link` chrome. */
|
|
8
8
|
size?: RuiButtonSize;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/** Optional light-DOM slot when composing into a parent custom element. */
|
|
12
|
-
slot?: string;
|
|
13
|
-
}>;
|
|
14
|
-
export type RuiButtonControlProps = RuiButtonCommonProps & {
|
|
9
|
+
};
|
|
10
|
+
export type RuiButtonControlProps = JsxElementProps<HTMLButtonElement> & RuiButtonChrome & {
|
|
15
11
|
/** Native button type. Default: `button`. */
|
|
16
12
|
type?: 'button' | 'submit' | 'reset';
|
|
17
13
|
/** Disabled state. */
|
|
@@ -23,16 +19,13 @@ export type RuiButtonControlProps = RuiButtonCommonProps & {
|
|
|
23
19
|
/** Toggle `aria-pressed` on click when `pressed` is not controlled. */
|
|
24
20
|
toggle?: boolean;
|
|
25
21
|
href?: never;
|
|
26
|
-
'on:click'?: (event: Event) => void;
|
|
27
22
|
};
|
|
28
|
-
export type RuiButtonLinkProps =
|
|
23
|
+
export type RuiButtonLinkProps = JsxElementProps<HTMLAnchorElement> & RuiButtonChrome & {
|
|
29
24
|
/** Destination for the button-styled link. */
|
|
30
25
|
href: string;
|
|
31
26
|
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
32
27
|
rel?: string;
|
|
33
28
|
download?: boolean | string;
|
|
34
|
-
'aria-current'?: JsxAriaAttributes['aria-current'];
|
|
35
|
-
'on:click'?: (event: Event) => void;
|
|
36
29
|
};
|
|
37
30
|
export type RuiButtonProps = RuiButtonControlProps | RuiButtonLinkProps;
|
|
38
31
|
/**
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsxElementProps } from '@ecopages/jsx';
|
|
2
2
|
export type RuiButtonGroupOrientation = 'horizontal' | 'vertical';
|
|
3
|
-
export type RuiButtonGroupProps =
|
|
3
|
+
export type RuiButtonGroupProps = JsxElementProps<HTMLDivElement> & {
|
|
4
4
|
/** Layout direction. Default: `horizontal`. */
|
|
5
5
|
orientation?: RuiButtonGroupOrientation;
|
|
6
|
-
|
|
7
|
-
'aria-label'?: string;
|
|
8
|
-
}>;
|
|
6
|
+
};
|
|
9
7
|
/**
|
|
10
8
|
* Related buttons / links in a horizontal or vertical group.
|
|
11
9
|
*
|
|
@@ -13,4 +11,4 @@ export type RuiButtonGroupProps = JsxHtmlPropsWithChildren<{
|
|
|
13
11
|
* @cssclass rui-button-group--horizontal - Side-by-side layout (default).
|
|
14
12
|
* @cssclass rui-button-group--vertical - Stacked layout.
|
|
15
13
|
*/
|
|
16
|
-
export declare function RuiButtonGroup({ children, orientation, class: className,
|
|
14
|
+
export declare function RuiButtonGroup({ children, orientation, class: className, ...props }: RuiButtonGroupProps): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { RuiCalendarProps } from './calendar.script';
|
|
1
|
+
import type { JsxCustomElementAttributes } from '@ecopages/jsx';
|
|
2
|
+
import type { RuiCalendar as RuiCalendarElement, RuiCalendarProps } from './calendar.script';
|
|
3
3
|
import './calendar.script';
|
|
4
|
-
export declare function RuiCalendar({ children, ...props }:
|
|
5
|
-
slot?: string;
|
|
6
|
-
}>): import("@ecopages/jsx").JsxRenderable;
|
|
4
|
+
export declare function RuiCalendar({ children, ...props }: JsxCustomElementAttributes<RuiCalendarElement, RuiCalendarProps>): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { RuiCarouselProps } from './carousel.script';
|
|
1
|
+
import { type JsxCustomElementAttributes, type JsxElementProps, type JsxRenderable } from '@ecopages/jsx';
|
|
2
|
+
import type { RuiCarousel as RuiCarouselElement, RuiCarouselProps } from './carousel.script';
|
|
3
3
|
import './carousel.script';
|
|
4
4
|
export type RuiCarouselSlideData = {
|
|
5
5
|
id: string;
|
|
6
6
|
children: JsxRenderable;
|
|
7
7
|
};
|
|
8
|
-
export type RuiCarouselSlideProps =
|
|
8
|
+
export type RuiCarouselSlideProps = Omit<JsxElementProps<HTMLDivElement>, 'id'> & {
|
|
9
9
|
id: string;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
/**
|
|
12
12
|
* Slide in the default carousel slot (APG `group` / `tabpanel` roles are applied by the host).
|
|
13
13
|
*
|
|
14
14
|
* @cssclass rui-carousel__slide - Slide surface.
|
|
15
15
|
*/
|
|
16
16
|
export declare function RuiCarouselSlide({ id, children, class: className, ...props }: RuiCarouselSlideProps): JsxRenderable;
|
|
17
|
-
export type RuiCarouselControlProps =
|
|
18
|
-
slot?: string;
|
|
17
|
+
export type RuiCarouselControlProps = JsxElementProps<HTMLButtonElement> & {
|
|
19
18
|
disabled?: boolean;
|
|
20
19
|
/** Match `controls-variant="overlay"` on the carousel for circular on-slide chrome. */
|
|
21
20
|
overlay?: boolean;
|
|
22
|
-
}
|
|
21
|
+
};
|
|
23
22
|
/**
|
|
24
23
|
* Previous control slotted into `prev` by default.
|
|
25
24
|
*
|
|
@@ -29,7 +28,7 @@ export type RuiCarouselControlProps = JsxHtmlPropsWithChildren<{
|
|
|
29
28
|
* @cssclass rui-carousel__nav-label - Icon + label row (toolbar variant).
|
|
30
29
|
* @cssclass rui-carousel__nav-icon - Decorative chevron glyph.
|
|
31
30
|
*/
|
|
32
|
-
export declare function RuiCarouselPrev({ children, slot, class: className, disabled, overlay, ...props }: RuiCarouselControlProps): JsxRenderable;
|
|
31
|
+
export declare function RuiCarouselPrev({ children, slot, class: className, disabled, overlay, aria, ...props }: RuiCarouselControlProps): JsxRenderable;
|
|
33
32
|
/**
|
|
34
33
|
* Next control slotted into `next` by default.
|
|
35
34
|
*
|
|
@@ -39,19 +38,17 @@ export declare function RuiCarouselPrev({ children, slot, class: className, disa
|
|
|
39
38
|
* @cssclass rui-carousel__nav-label - Icon + label row (toolbar variant).
|
|
40
39
|
* @cssclass rui-carousel__nav-icon - Decorative chevron glyph.
|
|
41
40
|
*/
|
|
42
|
-
export declare function RuiCarouselNext({ children, slot, class: className, disabled, overlay, ...props }: RuiCarouselControlProps): JsxRenderable;
|
|
43
|
-
export type RuiCarouselRotationProps =
|
|
44
|
-
slot?: string;
|
|
41
|
+
export declare function RuiCarouselNext({ children, slot, class: className, disabled, overlay, aria, ...props }: RuiCarouselControlProps): JsxRenderable;
|
|
42
|
+
export type RuiCarouselRotationProps = JsxElementProps<HTMLButtonElement> & {
|
|
45
43
|
overlay?: boolean;
|
|
46
|
-
}
|
|
44
|
+
};
|
|
47
45
|
/**
|
|
48
46
|
* Play/pause rotation control slotted into `rotation` by default.
|
|
49
47
|
*
|
|
50
48
|
* @cssclass rui-carousel__rotation - Rotation toggle button (composed with `rui-button`).
|
|
51
49
|
* @cssclass rui-carousel__rotation--overlay - Overlay pill chrome.
|
|
52
50
|
*/
|
|
53
|
-
export declare function RuiCarouselRotation({ children, slot, class: className, overlay, ...props }: RuiCarouselRotationProps): JsxRenderable;
|
|
54
|
-
export declare function RuiCarousel({ slides, children, ...props }:
|
|
55
|
-
slot?: string;
|
|
51
|
+
export declare function RuiCarouselRotation({ children, slot, class: className, overlay, aria, ...props }: RuiCarouselRotationProps): JsxRenderable;
|
|
52
|
+
export declare function RuiCarousel({ slides, children, ...props }: JsxCustomElementAttributes<RuiCarouselElement, RuiCarouselProps> & {
|
|
56
53
|
slides?: RuiCarouselSlideData[];
|
|
57
|
-
}
|
|
54
|
+
}): JsxRenderable;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { RuiCheckboxProps } from './checkbox.script';
|
|
1
|
+
import type { JsxCustomElementAttributes } from '@ecopages/jsx';
|
|
2
|
+
import type { RuiCheckbox as RuiCheckboxElement, RuiCheckboxProps } from './checkbox.script';
|
|
3
3
|
import './checkbox.script';
|
|
4
|
-
export declare function RuiCheckbox({ children, ...props }:
|
|
5
|
-
slot?: string;
|
|
6
|
-
}>): import("@ecopages/jsx").JsxRenderable;
|
|
4
|
+
export declare function RuiCheckbox({ children, ...props }: JsxCustomElementAttributes<RuiCheckboxElement, RuiCheckboxProps>): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { JsxElementProps } from '@ecopages/jsx';
|
|
2
2
|
export type RuiChipVariant = 'default' | 'muted' | 'primary';
|
|
3
|
-
export type RuiChipProps =
|
|
3
|
+
export type RuiChipProps = JsxElementProps<HTMLSpanElement> & {
|
|
4
4
|
variant?: RuiChipVariant;
|
|
5
|
-
}
|
|
5
|
+
};
|
|
6
6
|
/**
|
|
7
7
|
* Presentational category chip.
|
|
8
8
|
*
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type RuiChipListProps =
|
|
3
|
-
'aria-label'?: string;
|
|
4
|
-
id?: string;
|
|
5
|
-
}>;
|
|
1
|
+
import type { JsxElementProps } from '@ecopages/jsx';
|
|
2
|
+
export type RuiChipListProps = JsxElementProps<HTMLUListElement>;
|
|
6
3
|
/**
|
|
7
4
|
* Horizontal wrap list for presentational chips.
|
|
8
5
|
*
|
|
9
6
|
* @cssclass rui-chip-list - List container (`<ul>`).
|
|
10
7
|
*/
|
|
11
|
-
export declare function RuiChipList({ children, class: className,
|
|
12
|
-
export type RuiChipListItemProps =
|
|
8
|
+
export declare function RuiChipList({ children, class: className, ...props }: RuiChipListProps): import("@ecopages/jsx").JsxRenderable;
|
|
9
|
+
export type RuiChipListItemProps = JsxElementProps<HTMLLIElement>;
|
|
13
10
|
/**
|
|
14
11
|
* List item wrapper for a chip.
|
|
15
12
|
*
|
|
@@ -1,46 +1,38 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
import type { RuiComboboxProps } from './combobox.script';
|
|
1
|
+
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
+
import { type RuiListboxOptionData } from '../listbox';
|
|
3
|
+
import type { RuiCombobox as RuiComboboxElement, RuiComboboxProps } from './combobox.script';
|
|
4
4
|
import './combobox.script';
|
|
5
|
-
export type RuiComboboxControlProps =
|
|
6
|
-
slot?: string;
|
|
7
|
-
}>;
|
|
5
|
+
export type RuiComboboxControlProps = JsxElementProps<HTMLDivElement>;
|
|
8
6
|
/** Input row wrapper for the combobox input and toggle button.
|
|
9
7
|
*
|
|
10
8
|
* @cssclass rui-combobox__control - Bordered control-height row.
|
|
11
9
|
*/
|
|
12
10
|
export declare function RuiComboboxControl({ children, slot, class: className, ...props }: RuiComboboxControlProps): import("@ecopages/jsx").JsxRenderable;
|
|
13
|
-
export type RuiComboboxInputProps =
|
|
11
|
+
export type RuiComboboxInputProps = JsxElementProps<HTMLInputElement> & {
|
|
14
12
|
placeholder?: string;
|
|
15
13
|
disabled?: boolean;
|
|
16
|
-
}
|
|
14
|
+
};
|
|
17
15
|
/** Text input with `role="combobox"`. Place inside `RuiComboboxControl`.
|
|
18
16
|
*
|
|
19
17
|
* @cssclass rui-combobox__input - Combobox text input.
|
|
20
18
|
*/
|
|
21
19
|
export declare function RuiComboboxInput({ placeholder, disabled, class: className, ...props }: RuiComboboxInputProps): import("@ecopages/jsx").JsxRenderable;
|
|
22
|
-
export type RuiComboboxTriggerProps =
|
|
23
|
-
'aria-label'?: string;
|
|
20
|
+
export type RuiComboboxTriggerProps = JsxElementProps<HTMLButtonElement> & {
|
|
24
21
|
disabled?: boolean;
|
|
25
|
-
}
|
|
22
|
+
};
|
|
26
23
|
/** Toggle button for opening the listbox popup. */
|
|
27
|
-
export declare function RuiComboboxTrigger({ children, class: className,
|
|
28
|
-
export type RuiComboboxListboxProps =
|
|
29
|
-
slot?: string;
|
|
30
|
-
}>;
|
|
24
|
+
export declare function RuiComboboxTrigger({ children, class: className, aria, disabled, ...props }: RuiComboboxTriggerProps): import("@ecopages/jsx").JsxRenderable;
|
|
25
|
+
export type RuiComboboxListboxProps = JsxElementProps<HTMLDivElement>;
|
|
31
26
|
/** Popup shell slotted into `listbox`. Place an embedded `RuiListbox` inside.
|
|
32
27
|
*
|
|
33
28
|
* @cssclass rui-combobox__listbox - Popup shell (adds `rui-popover rui-popover--listbox rui-floating`).
|
|
34
29
|
*/
|
|
35
30
|
export declare function RuiComboboxListbox({ children, slot, class: className, ...props }: RuiComboboxListboxProps): import("@ecopages/jsx").JsxRenderable;
|
|
36
31
|
export type RuiComboboxOptionData = RuiListboxOptionData;
|
|
37
|
-
/** @deprecated Use `RuiListboxOption` */
|
|
38
|
-
export declare const RuiComboboxOption: typeof RuiListboxOption;
|
|
39
32
|
/**
|
|
40
33
|
* Combobox view. Pair with `RuiLabel` (sibling or via `RuiField`) for the visible name —
|
|
41
34
|
* do not nest a combobox-specific label.
|
|
42
35
|
*/
|
|
43
|
-
export declare function RuiCombobox({ options, children, ...props }:
|
|
44
|
-
slot?: string;
|
|
36
|
+
export declare function RuiCombobox({ options, children, ...props }: JsxCustomElementAttributes<RuiComboboxElement, RuiComboboxProps & {
|
|
45
37
|
options?: RuiComboboxOptionData[];
|
|
46
38
|
}>): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { RuiCombobox as RuiComboboxElement, type RuiComboboxProps, type RuiComboboxChangeDetail, } from './combobox.script';
|
|
2
|
-
export { RuiCombobox, RuiComboboxControl, RuiComboboxInput, RuiComboboxListbox, RuiComboboxTrigger,
|
|
2
|
+
export { RuiCombobox, RuiComboboxControl, RuiComboboxInput, RuiComboboxListbox, RuiComboboxTrigger, type RuiComboboxOptionData, } from './combobox';
|
|
3
3
|
export { RuiListbox, RuiListboxOption } from '../listbox';
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { RuiCycleToggleProps } from './cycle-toggle.script';
|
|
1
|
+
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
+
import type { RuiCycleToggle as RuiCycleToggleElement, RuiCycleToggleProps } from './cycle-toggle.script';
|
|
3
3
|
import './cycle-toggle.script';
|
|
4
|
-
export type RuiCycleToggleItemProps = {
|
|
4
|
+
export type RuiCycleToggleItemProps = Omit<JsxElementProps<HTMLSpanElement>, 'id'> & {
|
|
5
5
|
id: string;
|
|
6
|
-
children: JsxRenderable;
|
|
7
|
-
class?: string;
|
|
8
6
|
disabled?: boolean;
|
|
9
7
|
/** Whether this item is selected in the initial document. */
|
|
10
8
|
selected?: boolean;
|
|
11
9
|
};
|
|
12
|
-
export type RuiCycleToggleButtonProps =
|
|
10
|
+
export type RuiCycleToggleButtonProps = JsxElementProps<HTMLButtonElement> & Pick<RuiCycleToggleProps, 'disabled' | 'label' | 'size' | 'variant'>;
|
|
13
11
|
/**
|
|
14
12
|
* One cycle option. Only the active item is visible inside the button.
|
|
15
13
|
*
|
|
16
14
|
* @cssclass rui-cycle-toggle__item - Cycle option row (icon + label).
|
|
17
15
|
*/
|
|
18
|
-
export declare function RuiCycleToggleItem({ id, children, class: className, disabled, selected }: RuiCycleToggleItemProps): JsxRenderable;
|
|
16
|
+
export declare function RuiCycleToggleItem({ id, children, class: className, disabled, selected, ...props }: RuiCycleToggleItemProps): import("@ecopages/jsx").JsxRenderable;
|
|
19
17
|
/**
|
|
20
18
|
* Button chrome shared by cycle-toggle custom-element views.
|
|
21
19
|
*
|
|
@@ -23,7 +21,5 @@ export declare function RuiCycleToggleItem({ id, children, class: className, dis
|
|
|
23
21
|
*
|
|
24
22
|
* @cssclass rui-cycle-toggle__button - Cycle toggle button root.
|
|
25
23
|
*/
|
|
26
|
-
export declare function RuiCycleToggleButton({ children, variant, size, disabled, }: RuiCycleToggleButtonProps): JsxRenderable;
|
|
27
|
-
export declare function RuiCycleToggle({ children,
|
|
28
|
-
slot?: string;
|
|
29
|
-
}>): JsxRenderable;
|
|
24
|
+
export declare function RuiCycleToggleButton({ children, variant, size, disabled, class: className, ...props }: RuiCycleToggleButtonProps): import("@ecopages/jsx").JsxRenderable;
|
|
25
|
+
export declare function RuiCycleToggle({ children, variant, size, disabled, ...props }: JsxCustomElementAttributes<RuiCycleToggleElement, RuiCycleToggleProps>): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type RuiCalendarProps } from '../calendar';
|
|
3
|
-
import type { RuiDateFieldProps } from './date-field.script';
|
|
1
|
+
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
+
import { type RuiCalendarElement, type RuiCalendarProps } from '../calendar';
|
|
3
|
+
import type { RuiDateField as RuiDateFieldElement, RuiDateFieldProps } from './date-field.script';
|
|
4
4
|
import './date-field.script';
|
|
5
|
-
export type RuiDateFieldControlProps =
|
|
5
|
+
export type RuiDateFieldControlProps = JsxElementProps<HTMLDivElement>;
|
|
6
6
|
/** Bordered control row containing the date input and calendar toggle. */
|
|
7
7
|
export declare function RuiDateFieldControl({ children, class: className, ...props }: RuiDateFieldControlProps): import("@ecopages/jsx").JsxRenderable;
|
|
8
|
-
export type RuiDateFieldInputProps =
|
|
8
|
+
export type RuiDateFieldInputProps = JsxElementProps<HTMLInputElement>;
|
|
9
9
|
/** Text input controlled by the date-field host. */
|
|
10
10
|
export declare function RuiDateFieldInput({ class: className, ...props }: RuiDateFieldInputProps): import("@ecopages/jsx").JsxRenderable;
|
|
11
|
-
export type RuiDateFieldToggleProps =
|
|
12
|
-
'aria-label'?: string;
|
|
13
|
-
}>;
|
|
11
|
+
export type RuiDateFieldToggleProps = JsxElementProps<HTMLButtonElement>;
|
|
14
12
|
/** Toggle button for the date calendar. */
|
|
15
|
-
export declare function RuiDateFieldToggle({ children, class: className,
|
|
16
|
-
export type RuiDateFieldPopoverProps =
|
|
13
|
+
export declare function RuiDateFieldToggle({ children, class: className, aria, ...props }: RuiDateFieldToggleProps): import("@ecopages/jsx").JsxRenderable;
|
|
14
|
+
export type RuiDateFieldPopoverProps = JsxElementProps<HTMLDivElement>;
|
|
17
15
|
/** Floating shell for a `RuiDateFieldCalendar`. */
|
|
18
16
|
export declare function RuiDateFieldPopover({ children, class: className, ...props }: RuiDateFieldPopoverProps): import("@ecopages/jsx").JsxRenderable;
|
|
19
|
-
export type RuiDateFieldCalendarProps =
|
|
17
|
+
export type RuiDateFieldCalendarProps = JsxCustomElementAttributes<RuiCalendarElement, RuiCalendarProps>;
|
|
20
18
|
/** Calendar whose value and constraints are synchronized by the date-field host. */
|
|
21
19
|
export declare function RuiDateFieldCalendar(props: RuiDateFieldCalendarProps): import("@ecopages/jsx").JsxRenderable;
|
|
22
20
|
/**
|
|
@@ -24,6 +22,4 @@ export declare function RuiDateFieldCalendar(props: RuiDateFieldCalendarProps):
|
|
|
24
22
|
*
|
|
25
23
|
* Pair with `RuiLabel` / `RuiField` for labeling and validation.
|
|
26
24
|
*/
|
|
27
|
-
export declare function RuiDateField({ children, ...props }:
|
|
28
|
-
slot?: string;
|
|
29
|
-
}>): import("@ecopages/jsx").JsxRenderable;
|
|
25
|
+
export declare function RuiDateField({ children, ...props }: JsxCustomElementAttributes<RuiDateFieldElement, RuiDateFieldProps>): import("@ecopages/jsx").JsxRenderable;
|
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type RuiCalendarProps } from '../calendar';
|
|
3
|
-
import type { RuiDateRangePickerProps } from './date-range-picker.script';
|
|
1
|
+
import type { JsxCustomElementAttributes, JsxElementProps } from '@ecopages/jsx';
|
|
2
|
+
import { type RuiCalendarElement, type RuiCalendarProps } from '../calendar';
|
|
3
|
+
import type { RuiDateRangePicker as RuiDateRangePickerElement, RuiDateRangePickerProps } from './date-range-picker.script';
|
|
4
4
|
import './date-range-picker.script';
|
|
5
|
-
export type RuiDateRangePickerControlProps =
|
|
5
|
+
export type RuiDateRangePickerControlProps = JsxElementProps<HTMLDivElement>;
|
|
6
6
|
/** Bordered control row containing the date inputs and calendar toggle. */
|
|
7
7
|
export declare function RuiDateRangePickerControl({ children, class: className, ...props }: RuiDateRangePickerControlProps): import("@ecopages/jsx").JsxRenderable;
|
|
8
|
-
export type RuiDateRangePickerInputsProps =
|
|
8
|
+
export type RuiDateRangePickerInputsProps = JsxElementProps<HTMLDivElement>;
|
|
9
9
|
/** Input row for `RuiDateRangePickerStartInput` and `RuiDateRangePickerEndInput`. */
|
|
10
10
|
export declare function RuiDateRangePickerInputs({ children, class: className, ...props }: RuiDateRangePickerInputsProps): import("@ecopages/jsx").JsxRenderable;
|
|
11
|
-
export type RuiDateRangePickerStartInputProps =
|
|
11
|
+
export type RuiDateRangePickerStartInputProps = JsxElementProps<HTMLInputElement>;
|
|
12
12
|
/** Start-date text input controlled by the range-picker host. */
|
|
13
13
|
export declare function RuiDateRangePickerStartInput({ class: className, ...props }: RuiDateRangePickerStartInputProps): import("@ecopages/jsx").JsxRenderable;
|
|
14
|
-
export type RuiDateRangePickerEndInputProps =
|
|
14
|
+
export type RuiDateRangePickerEndInputProps = JsxElementProps<HTMLInputElement>;
|
|
15
15
|
/** End-date text input controlled by the range-picker host. */
|
|
16
16
|
export declare function RuiDateRangePickerEndInput({ class: className, ...props }: RuiDateRangePickerEndInputProps): import("@ecopages/jsx").JsxRenderable;
|
|
17
|
-
export type RuiDateRangePickerSeparatorProps =
|
|
17
|
+
export type RuiDateRangePickerSeparatorProps = JsxElementProps<HTMLSpanElement>;
|
|
18
18
|
/** Visual separator between the start and end inputs. */
|
|
19
19
|
export declare function RuiDateRangePickerSeparator({ children, class: className, ...props }: RuiDateRangePickerSeparatorProps): import("@ecopages/jsx").JsxRenderable;
|
|
20
|
-
export type RuiDateRangePickerToggleProps =
|
|
21
|
-
'aria-label'?: string;
|
|
22
|
-
}>;
|
|
20
|
+
export type RuiDateRangePickerToggleProps = JsxElementProps<HTMLButtonElement>;
|
|
23
21
|
/** Toggle button for the range calendar. */
|
|
24
|
-
export declare function RuiDateRangePickerToggle({ children, class: className,
|
|
25
|
-
export type RuiDateRangePickerPopoverProps =
|
|
22
|
+
export declare function RuiDateRangePickerToggle({ children, class: className, aria, ...props }: RuiDateRangePickerToggleProps): import("@ecopages/jsx").JsxRenderable;
|
|
23
|
+
export type RuiDateRangePickerPopoverProps = JsxElementProps<HTMLDivElement>;
|
|
26
24
|
/** Floating shell for a `RuiDateRangePickerCalendar`. */
|
|
27
25
|
export declare function RuiDateRangePickerPopover({ children, class: className, ...props }: RuiDateRangePickerPopoverProps): import("@ecopages/jsx").JsxRenderable;
|
|
28
|
-
export type RuiDateRangePickerCalendarProps =
|
|
26
|
+
export type RuiDateRangePickerCalendarProps = JsxCustomElementAttributes<RuiCalendarElement, RuiCalendarProps>;
|
|
29
27
|
/** Calendar whose range value and constraints are synchronized by the range-picker host. */
|
|
30
28
|
export declare function RuiDateRangePickerCalendar(props: RuiDateRangePickerCalendarProps): import("@ecopages/jsx").JsxRenderable;
|
|
31
|
-
export type RuiDateRangePickerViewProps = RuiDateRangePickerProps & {
|
|
32
|
-
slot?: string;
|
|
29
|
+
export type RuiDateRangePickerViewProps = JsxCustomElementAttributes<RuiDateRangePickerElement, RuiDateRangePickerProps> & {
|
|
33
30
|
/** Accessible name for the default start-date input. */
|
|
34
31
|
startLabel?: string;
|
|
35
32
|
/** Accessible name for the default end-date input. */
|
|
@@ -40,4 +37,4 @@ export type RuiDateRangePickerViewProps = RuiDateRangePickerProps & {
|
|
|
40
37
|
*
|
|
41
38
|
* Pair with `RuiLabel` / `RuiField` for labeling and validation.
|
|
42
39
|
*/
|
|
43
|
-
export declare function RuiDateRangePicker({ children, startLabel, endLabel, ...props }:
|
|
40
|
+
export declare function RuiDateRangePicker({ children, startLabel, endLabel, ...props }: RuiDateRangePickerViewProps): import("@ecopages/jsx").JsxRenderable;
|