@raylang/elements 0.6.0 → 0.8.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/base.css +1 -1
- package/check/check.d.ts +2 -0
- package/check/check.js +18 -4
- package/check/cli.js +10 -6
- package/components/accordion/accordion.js +8 -5
- package/components/alert/alert.js +3 -2
- package/components/attachment/attachment.js +5 -6
- package/components/avatar/avatar.js +1 -1
- package/components/blockquote/blockquote.js +2 -2
- package/components/bottom-nav/bottom-nav.js +5 -3
- package/components/breadcrumbs/breadcrumbs.js +1 -1
- package/components/carousel/carousel.js +26 -14
- package/components/checkbox/checkbox.js +6 -3
- package/components/checkbox-group/checkbox-group.js +1 -1
- package/components/code/code.js +9 -7
- package/components/color-picker/color-picker.js +6 -6
- package/components/combobox/combobox.js +5 -4
- package/components/command-palette/command-palette.js +2 -2
- package/components/date-picker/date-picker.js +9 -7
- package/components/dialog/dialog.js +2 -2
- package/components/drawer/drawer.js +28 -10
- package/components/file-upload/file-upload.js +1 -1
- package/components/icon/icon.js +9 -1
- package/components/indicator/indicator.js +2 -1
- package/components/menu/menu.js +1 -1
- package/components/nav-link/nav-link.js +6 -3
- package/components/notification/notification.js +16 -13
- package/components/number-input/number-input.js +1 -1
- package/components/pagination/pagination.js +4 -4
- package/components/password-input/password-input.js +2 -2
- package/components/progress/progress.js +2 -2
- package/components/radio/radio.js +4 -2
- package/components/scroll-area/scroll-area.js +14 -11
- package/components/search/search.js +5 -5
- package/components/segmented-control/segmented-control.js +5 -3
- package/components/select/select.js +5 -5
- package/components/separator/separator.js +8 -3
- package/components/sidebar/sidebar.js +14 -6
- package/components/slider/slider.js +5 -2
- package/components/split/split.js +12 -6
- package/components/stat/stat.js +1 -1
- package/components/step-dots/step-dots.js +11 -2
- package/components/stepper/stepper.js +5 -5
- package/components/switch/switch.js +3 -3
- package/components/table/table.js +6 -6
- package/components/tabs/tabs.js +11 -8
- package/components/theme-toggle/theme-toggle.js +2 -2
- package/components/timeline/timeline.js +13 -8
- package/components/toggle-group/toggle-group.js +6 -4
- package/core/core.js +10 -4
- package/core/direction.js +19 -0
- package/core/icons.js +107 -8
- package/core/position.js +11 -3
- package/core/styles.js +1 -1
- package/core.js +1 -0
- package/custom-elements.json +151 -79
- package/llms-full.txt +75 -31
- package/llms.txt +32 -3
- package/package.json +1 -1
- package/ray-elements.d.ts +56 -39
- package/vscode.html-custom-data.json +1102 -39
package/ray-elements.d.ts
CHANGED
|
@@ -54,12 +54,14 @@ export declare function getCustomPrimary(el?: Element): string | null;
|
|
|
54
54
|
|
|
55
55
|
// --- icons -------------------------------------------------------------------
|
|
56
56
|
|
|
57
|
-
/** Replaces or adds icons (SVG markup or an SVGElement); repaints every component. */
|
|
57
|
+
/** Replaces or adds icons (SVG markup or an SVGElement); repaints every component. "<name>:filled" is an icon's filled version. */
|
|
58
58
|
export declare function setIcons(icons: Record<string, string | SVGElement>): void;
|
|
59
|
-
/** The SVG markup of a registered icon ("" if unknown). */
|
|
60
|
-
export declare function getIcon(name: string): string;
|
|
61
|
-
/** The registered icon names. */
|
|
62
|
-
export declare function iconNames(): string[];
|
|
59
|
+
/** The SVG markup of a registered icon ("" if unknown); with filled, its filled version (the outline one without it). */
|
|
60
|
+
export declare function getIcon(name: string, options?: { filled?: boolean }): string;
|
|
61
|
+
/** The registered icon names; with filled, those that have a filled version. */
|
|
62
|
+
export declare function iconNames(options?: { filled?: boolean }): string[];
|
|
63
|
+
/** The roles the components draw ("ui.close", "ui.remove", "ui.expand"…) and the glyph each one uses unless the app registers the role. */
|
|
64
|
+
export declare function iconAliases(): Record<string, string>;
|
|
63
65
|
|
|
64
66
|
// --- base classes ------------------------------------------------------------
|
|
65
67
|
|
|
@@ -227,6 +229,7 @@ export declare const srOnlyStyles: CSSStyleSheet;
|
|
|
227
229
|
// --- positioning and focus ---------------------------------------------------
|
|
228
230
|
|
|
229
231
|
export interface PlaceOptions {
|
|
232
|
+
/** side[-align]: top|bottom|left|right, -start|-end; on top/bottom, -start/-end follow the writing direction. */
|
|
230
233
|
placement?: string;
|
|
231
234
|
offset?: number;
|
|
232
235
|
padding?: number;
|
|
@@ -244,6 +247,10 @@ export declare function autoUpdate(anchor: Element | object, floating: HTMLEleme
|
|
|
244
247
|
export declare function tabbables(root: Element | ShadowRoot, options?: { lightOnly?: boolean }): HTMLElement[];
|
|
245
248
|
/** Focuses the first [autofocus] or tabbable element; whether something got focus. */
|
|
246
249
|
export declare function focusFirst(root: Element | ShadowRoot, options?: { lightOnly?: boolean }): boolean;
|
|
250
|
+
/** Whether the element lays out right to left (dir="rtl" on it or an ancestor). */
|
|
251
|
+
export declare function isRtl(el: Element): boolean;
|
|
252
|
+
/** An arrow key as the reading direction sees it: right to left, ArrowLeft comes back as "ArrowRight" and the reverse. */
|
|
253
|
+
export declare function inlineKey(key: string, el: Element): string;
|
|
247
254
|
|
|
248
255
|
// --- charts (core/charts.js) -----------------------------------------------------
|
|
249
256
|
|
|
@@ -486,8 +493,8 @@ export declare class RayCheckbox extends FieldControl {
|
|
|
486
493
|
color: string | undefined;
|
|
487
494
|
/** Box and font size. */
|
|
488
495
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
489
|
-
/** Side of the label. */
|
|
490
|
-
labelPosition: "right" | "left";
|
|
496
|
+
/** Side of the label: start/end follow the writing direction; left/right are sides of the screen. */
|
|
497
|
+
labelPosition: "end" | "start" | "right" | "left";
|
|
491
498
|
}
|
|
492
499
|
|
|
493
500
|
// --- Checkbox group (checkbox-group)
|
|
@@ -1135,8 +1142,8 @@ export declare class RaySwitch extends RayCheckbox {
|
|
|
1135
1142
|
description: string | undefined;
|
|
1136
1143
|
/** Error text. */
|
|
1137
1144
|
error: string | undefined;
|
|
1138
|
-
/** Side of the label. */
|
|
1139
|
-
labelPosition: "right" | "left";
|
|
1145
|
+
/** Side of the label: start/end follow the writing direction; left/right are sides of the screen. */
|
|
1146
|
+
labelPosition: "end" | "start" | "right" | "left";
|
|
1140
1147
|
/** Track color when on. */
|
|
1141
1148
|
color: string | undefined;
|
|
1142
1149
|
/** Track size. */
|
|
@@ -1216,8 +1223,8 @@ export declare class RayBottomNavItem extends RayElement {
|
|
|
1216
1223
|
value: string | undefined;
|
|
1217
1224
|
/** The label. */
|
|
1218
1225
|
label: string | undefined;
|
|
1219
|
-
/** An icon of the registry (or put one in the icon slot). */
|
|
1220
|
-
icon:
|
|
1226
|
+
/** An icon of the registry, drawn filled on the current item when it has a filled version (or put one in the icon slot: yours, as it is). */
|
|
1227
|
+
icon: IconName | undefined;
|
|
1221
1228
|
/** Makes it a link. */
|
|
1222
1229
|
href: string | undefined;
|
|
1223
1230
|
/** A count or a short text on the icon. */
|
|
@@ -1337,8 +1344,8 @@ export declare class RaySidebar extends RayElement {
|
|
|
1337
1344
|
collapsed: boolean | undefined;
|
|
1338
1345
|
/** Narrow screens: the drawer is shown (modal, focus trapped; Escape, backdrop click or a followed link close it). */
|
|
1339
1346
|
open: boolean | undefined;
|
|
1340
|
-
/** The edge it sits on. */
|
|
1341
|
-
side: "left" | "right";
|
|
1347
|
+
/** The edge it sits on (its border faces the content, its narrow-screen drawer slides from there): start/end follow the writing direction; left/right are sides of the screen. */
|
|
1348
|
+
side: "start" | "end" | "left" | "right";
|
|
1342
1349
|
/** A panel against the edge, or a floating card with a margin. */
|
|
1343
1350
|
variant: "sidebar" | "floating";
|
|
1344
1351
|
/** Width when expanded (CSS length). Default 16rem. */
|
|
@@ -1379,8 +1386,8 @@ export declare class RayStepper extends RayElement {
|
|
|
1379
1386
|
active: number;
|
|
1380
1387
|
/** Steps in a row above the content, or in a column beside it. */
|
|
1381
1388
|
orientation: "horizontal" | "vertical";
|
|
1382
|
-
/** Label beside the number, or under it (narrow screens, many steps). */
|
|
1383
|
-
iconPosition: "
|
|
1389
|
+
/** Label beside the number (after it in the reading direction), or under it (narrow screens, many steps). "left", its former name, still works. */
|
|
1390
|
+
iconPosition: "start" | "top" | "left";
|
|
1384
1391
|
/** Completed steps are buttons that go back to them. */
|
|
1385
1392
|
allowStepSelect: boolean | undefined;
|
|
1386
1393
|
/** With allow-step-select off, false lets the user jump to any step. */
|
|
@@ -1556,8 +1563,8 @@ export declare class RayDrawer extends RayElement {
|
|
|
1556
1563
|
label: string | undefined;
|
|
1557
1564
|
/** A line under the title (the drawer's accessible description). */
|
|
1558
1565
|
description: string | undefined;
|
|
1559
|
-
/** The edge it slides from. */
|
|
1560
|
-
position: "right" | "left" | "top" | "bottom";
|
|
1566
|
+
/** The edge it slides from: start/end follow the writing direction; left/right are sides of the screen. */
|
|
1567
|
+
position: "end" | "start" | "right" | "left" | "top" | "bottom";
|
|
1561
1568
|
/** Width (left/right) or height (top/bottom): xs…xl, full, or any CSS length. */
|
|
1562
1569
|
size: "xs" | "sm" | "md" | "lg" | "xl" | "full" | (string & {});
|
|
1563
1570
|
/** No backdrop nor scroll lock: the page stays interactive (a side panel). */
|
|
@@ -1595,7 +1602,7 @@ export interface RayDrawerEventMap extends HTMLElementEventMap {
|
|
|
1595
1602
|
export declare class RayMenu extends Floating {
|
|
1596
1603
|
/** Shown. */
|
|
1597
1604
|
open: boolean | undefined;
|
|
1598
|
-
/** Preferred side and alignment. */
|
|
1605
|
+
/** Preferred side and alignment: top/bottom/left/right are sides of the screen; on top and bottom, -start/-end follow the writing direction (right to left, "bottom-start" lines up the right edges). */
|
|
1599
1606
|
placement: "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end" | "right-start" | "left-start";
|
|
1600
1607
|
/** Opens on right click (contextmenu) over the trigger area, at the pointer. */
|
|
1601
1608
|
context: boolean | undefined;
|
|
@@ -1649,7 +1656,7 @@ export declare class RayMenuDivider extends RayElement {
|
|
|
1649
1656
|
export declare class RayPopover extends Floating {
|
|
1650
1657
|
/** Shown. */
|
|
1651
1658
|
open: boolean | undefined;
|
|
1652
|
-
/** Preferred side and alignment. */
|
|
1659
|
+
/** Preferred side and alignment: top/bottom/left/right are sides of the screen; on top and bottom, -start/-end follow the writing direction (right to left, "bottom-start" lines up the right edges). */
|
|
1653
1660
|
placement: "bottom" | "bottom-start" | "bottom-end" | "top" | "top-start" | "top-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
1654
1661
|
/** Gap to the trigger in px. */
|
|
1655
1662
|
offset: number;
|
|
@@ -1686,7 +1693,7 @@ export interface RayPopoverEventMap extends HTMLElementEventMap {
|
|
|
1686
1693
|
export declare class RayTooltip extends Floating {
|
|
1687
1694
|
/** Tooltip text. */
|
|
1688
1695
|
label: string | undefined;
|
|
1689
|
-
/** Preferred side. */
|
|
1696
|
+
/** Preferred side; -start/-end follow the writing direction. */
|
|
1690
1697
|
placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
1691
1698
|
/** ms before showing. */
|
|
1692
1699
|
openDelay: number;
|
|
@@ -1715,8 +1722,8 @@ export declare class RayAccordion extends RayElement {
|
|
|
1715
1722
|
multiple: boolean | undefined;
|
|
1716
1723
|
/** Visual style. */
|
|
1717
1724
|
variant: "default" | "contained" | "separated" | "filled";
|
|
1718
|
-
/** Side of the chevron. */
|
|
1719
|
-
chevronPosition: "right" | "left";
|
|
1725
|
+
/** Side of the chevron: start/end follow the writing direction; left/right are sides of the screen. */
|
|
1726
|
+
chevronPosition: "end" | "start" | "right" | "left";
|
|
1720
1727
|
/** The items. */
|
|
1721
1728
|
readonly items: RayAccordionItem[];
|
|
1722
1729
|
/** The open values as an array, whatever the mode. */
|
|
@@ -1832,7 +1839,7 @@ export declare class RayBlockquote extends RayElement {
|
|
|
1832
1839
|
/** light: tinted background; outline: border and edge only; filled: solid color (a pull quote). */
|
|
1833
1840
|
variant: "light" | "outline" | "filled";
|
|
1834
1841
|
/** Registry icon of the mark, or none. The icon slot replaces it. */
|
|
1835
|
-
icon:
|
|
1842
|
+
icon: IconName;
|
|
1836
1843
|
/** Text size (lg for a pull quote). */
|
|
1837
1844
|
size: "sm" | "md" | "lg";
|
|
1838
1845
|
/** Inner spacing: xs…xl (the spacing scale), px as a number, or a CSS length. Default: md. */
|
|
@@ -1928,10 +1935,16 @@ export interface RayCodeEventMap extends HTMLElementEventMap {
|
|
|
1928
1935
|
}
|
|
1929
1936
|
|
|
1930
1937
|
// --- Icon (icon)
|
|
1931
|
-
/**
|
|
1938
|
+
/** An icon name: one of the default set, or any name an app registers with setIcons(). */
|
|
1939
|
+
export type IconName = "close" | "check" | "minus" | "plus" | "chevron-down" | "chevron-up" | "chevron-right" | "chevron-left" | "chevrons-left" | "chevrons-right" | "search" | "arrow-up-right" | "arrow-down-right" | "sun" | "moon" | "monitor" | "user" | "info" | "circle-check" | "alert-triangle" | "circle-x" | "menu" | "more-horizontal" | "file" | "folder" | "pause" | "play" | "terminal" | "calendar" | "image" | "download" | "eye" | "eye-off" | "bell" | "copy" | "quote" | "pipette" | "star" | "upload" | "paperclip" | "panel-left" | "settings" | "home" | "arrow-left" | "message-circle" | "none" | (string & {});
|
|
1940
|
+
/** <ray-icon> setIcons({ name: '<svg…>' }) replaces or adds icons (SVG markup or an SVGElement, drawn with currentColor); iconNames() lists them. An icon may have a filled version for a state (filled; "<name>:filled" in setIcons; iconNames({ filled: true }) lists them). The components draw roles ("ui.close", "ui.remove", "ui.expand"…; iconAliases()), each its glyph until the app registers the role: setIcons({ "ui.remove": … }) changes only the chips' ×. Sizes follow the font unless size; --ray-icon-size and --ray-icon-stroke tune the whole system. */
|
|
1932
1941
|
export declare class RayIcon extends RayElement {
|
|
1933
1942
|
/** Registered icon name (iconNames()); "none" draws nothing, a blank that keeps the alignment (a menu item without its check). */
|
|
1934
|
-
name:
|
|
1943
|
+
name: IconName | undefined;
|
|
1944
|
+
/** The filled version, for a state (active, selected, favorite, unread); the outline icon when there is none. Built in: user, info, circle-check, alert-triangle, circle-x, folder, bell, star, settings, home, message-circle. */
|
|
1945
|
+
filled: boolean | undefined;
|
|
1946
|
+
/** Mirrored in a right-to-left context (dir="rtl"), for an icon that points along the text: back, forward, send, undo. The roles that do (ui.next, ui.previous, ui.first, ui.last, ui.disclosure, ui.separator) mirror by themselves. */
|
|
1947
|
+
mirror: boolean | undefined;
|
|
1935
1948
|
/** xs…xl or any CSS length. Default: 1em. */
|
|
1936
1949
|
size: string | undefined;
|
|
1937
1950
|
/** Accessible name; without it the icon is decorative (hidden from screen readers). */
|
|
@@ -2057,8 +2070,8 @@ export interface RayTableEventMap extends HTMLElementEventMap {
|
|
|
2057
2070
|
export declare class RayTimeline extends RayElement {
|
|
2058
2071
|
/** Index of the last reached item (-1: none). */
|
|
2059
2072
|
active: number;
|
|
2060
|
-
/** Side of the line. */
|
|
2061
|
-
align: "left" | "right";
|
|
2073
|
+
/** Side of the line: start/end follow the writing direction; left/right are sides of the screen. */
|
|
2074
|
+
align: "start" | "end" | "left" | "right";
|
|
2062
2075
|
/** Bullet size: px as a number or a CSS length (default 20px). */
|
|
2063
2076
|
bulletSize: string | undefined;
|
|
2064
2077
|
/** Line width in px (default 2). */
|
|
@@ -2077,7 +2090,7 @@ export declare class RayTimelineItem extends RayElement {
|
|
|
2077
2090
|
/** When ("2 h ago", a date). */
|
|
2078
2091
|
time: string | undefined;
|
|
2079
2092
|
/** An icon of the registry in the bullet. */
|
|
2080
|
-
icon:
|
|
2093
|
+
icon: IconName | undefined;
|
|
2081
2094
|
/** Its own color (a failed step in red). */
|
|
2082
2095
|
color: string | undefined;
|
|
2083
2096
|
/** The line to the next item (dashed: not happened yet). */
|
|
@@ -2096,7 +2109,7 @@ export declare class RayAlert extends RayElement {
|
|
|
2096
2109
|
/** Corner radius. */
|
|
2097
2110
|
radius: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
2098
2111
|
/** A registered icon name, or none. */
|
|
2099
|
-
icon:
|
|
2112
|
+
icon: IconName | undefined;
|
|
2100
2113
|
/** A close button; closing hides the alert (cancel ray-close to keep it). */
|
|
2101
2114
|
closable: boolean | undefined;
|
|
2102
2115
|
/** Accessible name of the close button. */
|
|
@@ -2142,7 +2155,7 @@ export declare class RayNotification extends RayElement {
|
|
|
2142
2155
|
/** Status color: tints the status icon (and a slotted icon's circle). */
|
|
2143
2156
|
color: string | undefined;
|
|
2144
2157
|
/** Status icon from the registry (default: from the color); "none" for no icon. */
|
|
2145
|
-
icon:
|
|
2158
|
+
icon: IconName | undefined;
|
|
2146
2159
|
/** Shows a spinner (notify() does not auto-close it). */
|
|
2147
2160
|
loading: boolean | undefined;
|
|
2148
2161
|
/** No close button. */
|
|
@@ -2164,8 +2177,8 @@ export interface RayNotificationEventMap extends HTMLElementEventMap {
|
|
|
2164
2177
|
}
|
|
2165
2178
|
/** <ray-toaster> Created by notify() when missing; add one yourself to choose its position. A stack (newest in front, older ones peeking behind) that spreads into a list on hover or keyboard focus; on touch screens a tap expands it, a tap outside collapses it, and a sideways swipe dismisses a toast. Auto-close pauses while expanded. Full width on phones. */
|
|
2166
2179
|
export declare class RayToaster extends RayElement {
|
|
2167
|
-
/** Corner of the stack. */
|
|
2168
|
-
position: "bottom-
|
|
2180
|
+
/** Corner of the stack: -start/-end follow the writing direction; -left/-right are sides of the screen. */
|
|
2181
|
+
position: "bottom-end" | "bottom-start" | "bottom-center" | "top-end" | "top-start" | "top-center" | "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
2169
2182
|
/** Maximum kept; the oldest go first. */
|
|
2170
2183
|
limit: number;
|
|
2171
2184
|
/** Toasts shown in the collapsed stack (the rest wait, hidden). */
|
|
@@ -2269,8 +2282,12 @@ export declare class RayStepDots extends RayElement {
|
|
|
2269
2282
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
2270
2283
|
/** Where the row sits in its width. */
|
|
2271
2284
|
align: "start" | "center" | "end";
|
|
2272
|
-
/** What a step is called: "Round" is announced "Round 4 of 12" and names the element. Default: Step (named Steps). */
|
|
2285
|
+
/** What a step is called: "Round" is announced "Round 4 of 12" and names the element. Default: Step (named Steps). In another language, use value-text. */
|
|
2273
2286
|
label: string | undefined;
|
|
2287
|
+
/** The announced text, {step} (the current one, from 1) and {count} replaced, numbers in the page's language: value-text="Asalto {step} de {count}". Default: "<label> {step} of {count}". */
|
|
2288
|
+
valueText: string | undefined;
|
|
2289
|
+
/** The announced text once every step is done (value = count), with {count}. Default: value-text, else "{count} of {count}, done". */
|
|
2290
|
+
doneText: string | undefined;
|
|
2274
2291
|
}
|
|
2275
2292
|
|
|
2276
2293
|
// --- App bar (app-bar)
|
|
@@ -2420,9 +2437,9 @@ export declare class RayScrollArea extends RayElement {
|
|
|
2420
2437
|
label: string | undefined;
|
|
2421
2438
|
/** The scrolling element (scrollTop, scrollTo…). */
|
|
2422
2439
|
readonly viewport: HTMLElement;
|
|
2423
|
-
/** Scrolls to the top (left). */
|
|
2440
|
+
/** Scrolls to the start: the top, or the left when horizontal (the right right to left). */
|
|
2424
2441
|
scrollToStart(options?: { behavior?: ScrollBehavior }): void;
|
|
2425
|
-
/** Scrolls to the bottom
|
|
2442
|
+
/** Scrolls to the end: the bottom, or the right when horizontal (the left right to left). */
|
|
2426
2443
|
scrollToEnd(options?: { behavior?: ScrollBehavior }): void;
|
|
2427
2444
|
addEventListener<K extends keyof RayScrollAreaEventMap>(type: K, listener: (this: RayScrollArea, ev: RayScrollAreaEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
|
|
2428
2445
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2430,8 +2447,8 @@ export declare class RayScrollArea extends RayElement {
|
|
|
2430
2447
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2431
2448
|
}
|
|
2432
2449
|
export interface RayScrollAreaEventMap extends HTMLElementEventMap {
|
|
2433
|
-
/** The end came within threshold (once per arrival). */
|
|
2434
|
-
"ray-reach-end": CustomEvent<{ edge: "bottom" | "right" }>;
|
|
2450
|
+
/** The end came within threshold (once per arrival): the bottom, or the right when horizontal (the left right to left). */
|
|
2451
|
+
"ray-reach-end": CustomEvent<{ edge: "bottom" | "right" | "left" }>;
|
|
2435
2452
|
}
|
|
2436
2453
|
|
|
2437
2454
|
// --- Separator (separator)
|
|
@@ -2441,8 +2458,8 @@ export declare class RaySeparator extends RayElement {
|
|
|
2441
2458
|
orientation: "horizontal" | "vertical";
|
|
2442
2459
|
/** Text in the middle of a horizontal rule. */
|
|
2443
2460
|
label: string | undefined;
|
|
2444
|
-
/** Where the label sits. */
|
|
2445
|
-
labelPosition: "
|
|
2461
|
+
/** Where the label sits: start/end follow the writing direction; left/right are sides of the screen. */
|
|
2462
|
+
labelPosition: "start" | "center" | "end" | "left" | "right";
|
|
2446
2463
|
/** Thickness (1–5px). */
|
|
2447
2464
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
2448
2465
|
/** Line style. */
|