@raylang/elements 0.7.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/components/accordion/accordion.js +7 -4
- package/components/alert/alert.js +2 -1
- package/components/attachment/attachment.js +4 -5
- package/components/blockquote/blockquote.js +2 -2
- package/components/bottom-nav/bottom-nav.js +3 -3
- package/components/carousel/carousel.js +22 -10
- package/components/checkbox/checkbox.js +5 -2
- package/components/checkbox-group/checkbox-group.js +1 -1
- package/components/code/code.js +8 -6
- package/components/color-picker/color-picker.js +5 -5
- package/components/combobox/combobox.js +2 -1
- package/components/command-palette/command-palette.js +1 -1
- package/components/date-picker/date-picker.js +5 -3
- package/components/dialog/dialog.js +1 -1
- package/components/drawer/drawer.js +27 -9
- package/components/icon/icon.js +4 -1
- package/components/indicator/indicator.js +2 -1
- package/components/menu/menu.js +1 -1
- package/components/nav-link/nav-link.js +5 -2
- package/components/notification/notification.js +15 -12
- 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 +3 -3
- package/components/segmented-control/segmented-control.js +5 -3
- package/components/select/select.js +3 -3
- 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/stepper/stepper.js +4 -4
- package/components/switch/switch.js +3 -3
- package/components/table/table.js +5 -5
- package/components/tabs/tabs.js +11 -8
- package/components/timeline/timeline.js +13 -8
- package/components/toggle-group/toggle-group.js +6 -4
- package/core/core.js +6 -1
- package/core/direction.js +19 -0
- package/core/icons.js +12 -0
- package/core/position.js +11 -3
- package/core/styles.js +1 -1
- package/core.js +1 -0
- package/custom-elements.json +80 -62
- package/llms-full.txt +41 -17
- package/llms.txt +20 -2
- package/package.json +1 -1
- package/ray-elements.d.ts +32 -25
- package/vscode.html-custom-data.json +80 -18
package/core/icons.js
CHANGED
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
// setIcons({ close: … }) still changes every × and setIcons({ "ui.remove": … })
|
|
14
14
|
// only the chips'.
|
|
15
15
|
//
|
|
16
|
+
// The roles that point along the text (ui.next, ui.previous, ui.disclosure…;
|
|
17
|
+
// MIRRORED) are drawn mirrored in a right-to-left context, the glyph or the
|
|
18
|
+
// app's own icon alike: the next page is to the left there.
|
|
19
|
+
//
|
|
16
20
|
// An icon may have a filled version, "<name>:filled", for a state: the active
|
|
17
21
|
// tab, a favorite, unread. <ray-icon name="star" filled> draws it, and the
|
|
18
22
|
// outline one when there is none. setIcons({ "star:filled": … }) adds one.
|
|
@@ -131,6 +135,14 @@ const ALIASES = {
|
|
|
131
135
|
"ui.trend-flat": "minus",
|
|
132
136
|
};
|
|
133
137
|
|
|
138
|
+
/** The roles that point along the text: mirrored in a right-to-left context. */
|
|
139
|
+
const MIRRORED = new Set(["ui.disclosure", "ui.previous", "ui.next", "ui.first", "ui.last", "ui.separator"]);
|
|
140
|
+
|
|
141
|
+
/** Whether an icon is drawn mirrored right to left (a role that points along the text). */
|
|
142
|
+
export function mirrorsInRtl(name) {
|
|
143
|
+
return MIRRORED.has(name);
|
|
144
|
+
}
|
|
145
|
+
|
|
134
146
|
const registry = new Map([...Object.entries(DEFAULTS), ...Object.entries(FILLED).map(([name, markup]) => [name + FILLED_SUFFIX, markup])]);
|
|
135
147
|
const listeners = new Set();
|
|
136
148
|
const warned = new Set();
|
package/core/position.js
CHANGED
|
@@ -5,12 +5,19 @@
|
|
|
5
5
|
// side when it does not fit, and shifted to stay inside the viewport.
|
|
6
6
|
// Done in JS rather than CSS anchor positioning, which not every webview
|
|
7
7
|
// ships yet (WebKitGTK, older WKWebView).
|
|
8
|
+
//
|
|
9
|
+
// The sides top/bottom/left/right are sides of the screen; the alignments
|
|
10
|
+
// -start/-end follow the writing direction of the floating element: right to
|
|
11
|
+
// left, "bottom-start" lines up the right edges.
|
|
12
|
+
|
|
13
|
+
import { isRtl } from "./direction.js";
|
|
8
14
|
|
|
9
15
|
const OPPOSITE = { top: "bottom", bottom: "top", left: "right", right: "left" };
|
|
10
16
|
|
|
11
17
|
/**
|
|
12
18
|
* @typedef {object} PlaceOptions
|
|
13
|
-
* @property {string} [placement] side[-align]: top|bottom|left|right, -start|-end (default "bottom")
|
|
19
|
+
* @property {string} [placement] side[-align]: top|bottom|left|right, -start|-end (default "bottom");
|
|
20
|
+
* on top/bottom, -start/-end follow the writing direction
|
|
14
21
|
* @property {number} [offset] gap to the anchor in px (default 8)
|
|
15
22
|
* @property {number} [padding] minimum distance to the viewport edges (default 8)
|
|
16
23
|
* @property {boolean} [flip] try the opposite side when it does not fit (default true)
|
|
@@ -45,8 +52,9 @@ export function place(anchor, floating, { placement = "bottom", offset = 8, padd
|
|
|
45
52
|
let y;
|
|
46
53
|
if (side === "top" || side === "bottom") {
|
|
47
54
|
y = side === "bottom" ? anchor.bottom + offset : anchor.top - offset - f.height;
|
|
48
|
-
|
|
49
|
-
|
|
55
|
+
const rtl = align !== "center" && isRtl(floating);
|
|
56
|
+
x = align === (rtl ? "end" : "start") ? anchor.left
|
|
57
|
+
: align === (rtl ? "start" : "end") ? anchor.right - f.width
|
|
50
58
|
: anchor.left + anchor.width / 2 - f.width / 2;
|
|
51
59
|
} else {
|
|
52
60
|
x = side === "right" ? anchor.right + offset : anchor.left - offset - f.width;
|
package/core/styles.js
CHANGED
|
@@ -154,7 +154,7 @@ export const loaderStyles = css`
|
|
|
154
154
|
width: var(--_loader, 1em);
|
|
155
155
|
height: var(--_loader, 1em);
|
|
156
156
|
border: max(2px, calc(var(--_loader, 1em) / 8)) solid currentColor;
|
|
157
|
-
border-right-color: transparent;
|
|
157
|
+
border-right-color: transparent; /* physical */
|
|
158
158
|
border-radius: 50%;
|
|
159
159
|
animation: ray-spin 0.75s linear infinite;
|
|
160
160
|
}
|
package/core.js
CHANGED
|
@@ -8,6 +8,7 @@ export { COLORS, VARIANT_TOKENS, applyColor, spaceValue, sizeStyles, radiusStyle
|
|
|
8
8
|
export { place, pointRect, autoUpdate } from "./core/position.js";
|
|
9
9
|
export { scrollerOf, watchScroll } from "./core/scroll.js";
|
|
10
10
|
export { tabbables, focusFirst } from "./core/focus.js";
|
|
11
|
+
export { isRtl, inlineKey } from "./core/direction.js";
|
|
11
12
|
export { duration, motionAllowed, play, playAll, collapseOut, POP_OUT } from "./core/motion.js";
|
|
12
13
|
export { dismissable } from "./core/dismiss.js";
|
|
13
14
|
export { matchesHotkey, formatHotkey } from "./core/hotkey.js";
|
package/custom-elements.json
CHANGED
|
@@ -1504,11 +1504,11 @@
|
|
|
1504
1504
|
{
|
|
1505
1505
|
"name": "label-position",
|
|
1506
1506
|
"type": {
|
|
1507
|
-
"text": "\"right\" | \"left\""
|
|
1507
|
+
"text": "\"end\" | \"start\" | \"right\" | \"left\""
|
|
1508
1508
|
},
|
|
1509
|
-
"description": "Side of the label.",
|
|
1509
|
+
"description": "Side of the label: start/end follow the writing direction; left/right are sides of the screen.",
|
|
1510
1510
|
"fieldName": "labelPosition",
|
|
1511
|
-
"default": "
|
|
1511
|
+
"default": "end"
|
|
1512
1512
|
},
|
|
1513
1513
|
{
|
|
1514
1514
|
"name": "radius",
|
|
@@ -1654,12 +1654,12 @@
|
|
|
1654
1654
|
"kind": "field",
|
|
1655
1655
|
"name": "labelPosition",
|
|
1656
1656
|
"type": {
|
|
1657
|
-
"text": "\"right\" | \"left\""
|
|
1657
|
+
"text": "\"end\" | \"start\" | \"right\" | \"left\""
|
|
1658
1658
|
},
|
|
1659
|
-
"description": "Side of the label.",
|
|
1659
|
+
"description": "Side of the label: start/end follow the writing direction; left/right are sides of the screen.",
|
|
1660
1660
|
"attribute": "label-position",
|
|
1661
1661
|
"reflects": true,
|
|
1662
|
-
"default": "
|
|
1662
|
+
"default": "end"
|
|
1663
1663
|
},
|
|
1664
1664
|
{
|
|
1665
1665
|
"kind": "field",
|
|
@@ -8238,11 +8238,11 @@
|
|
|
8238
8238
|
{
|
|
8239
8239
|
"name": "label-position",
|
|
8240
8240
|
"type": {
|
|
8241
|
-
"text": "\"right\" | \"left\""
|
|
8241
|
+
"text": "\"end\" | \"start\" | \"right\" | \"left\""
|
|
8242
8242
|
},
|
|
8243
|
-
"description": "Side of the label.",
|
|
8243
|
+
"description": "Side of the label: start/end follow the writing direction; left/right are sides of the screen.",
|
|
8244
8244
|
"fieldName": "labelPosition",
|
|
8245
|
-
"default": "
|
|
8245
|
+
"default": "end"
|
|
8246
8246
|
},
|
|
8247
8247
|
{
|
|
8248
8248
|
"name": "color",
|
|
@@ -8376,12 +8376,12 @@
|
|
|
8376
8376
|
"kind": "field",
|
|
8377
8377
|
"name": "labelPosition",
|
|
8378
8378
|
"type": {
|
|
8379
|
-
"text": "\"right\" | \"left\""
|
|
8379
|
+
"text": "\"end\" | \"start\" | \"right\" | \"left\""
|
|
8380
8380
|
},
|
|
8381
|
-
"description": "Side of the label.",
|
|
8381
|
+
"description": "Side of the label: start/end follow the writing direction; left/right are sides of the screen.",
|
|
8382
8382
|
"attribute": "label-position",
|
|
8383
8383
|
"reflects": true,
|
|
8384
|
-
"default": "
|
|
8384
|
+
"default": "end"
|
|
8385
8385
|
},
|
|
8386
8386
|
{
|
|
8387
8387
|
"kind": "field",
|
|
@@ -10183,11 +10183,11 @@
|
|
|
10183
10183
|
{
|
|
10184
10184
|
"name": "side",
|
|
10185
10185
|
"type": {
|
|
10186
|
-
"text": "\"left\" | \"right\""
|
|
10186
|
+
"text": "\"start\" | \"end\" | \"left\" | \"right\""
|
|
10187
10187
|
},
|
|
10188
|
-
"description": "The edge it sits on.",
|
|
10188
|
+
"description": "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.",
|
|
10189
10189
|
"fieldName": "side",
|
|
10190
|
-
"default": "
|
|
10190
|
+
"default": "start"
|
|
10191
10191
|
},
|
|
10192
10192
|
{
|
|
10193
10193
|
"name": "variant",
|
|
@@ -10258,12 +10258,12 @@
|
|
|
10258
10258
|
"kind": "field",
|
|
10259
10259
|
"name": "side",
|
|
10260
10260
|
"type": {
|
|
10261
|
-
"text": "\"left\" | \"right\""
|
|
10261
|
+
"text": "\"start\" | \"end\" | \"left\" | \"right\""
|
|
10262
10262
|
},
|
|
10263
|
-
"description": "The edge it sits on.",
|
|
10263
|
+
"description": "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.",
|
|
10264
10264
|
"attribute": "side",
|
|
10265
10265
|
"reflects": true,
|
|
10266
|
-
"default": "
|
|
10266
|
+
"default": "start"
|
|
10267
10267
|
},
|
|
10268
10268
|
{
|
|
10269
10269
|
"kind": "field",
|
|
@@ -10509,11 +10509,11 @@
|
|
|
10509
10509
|
{
|
|
10510
10510
|
"name": "icon-position",
|
|
10511
10511
|
"type": {
|
|
10512
|
-
"text": "\"
|
|
10512
|
+
"text": "\"start\" | \"top\" | \"left\""
|
|
10513
10513
|
},
|
|
10514
|
-
"description": "Label beside the number, or under it (narrow screens, many steps).",
|
|
10514
|
+
"description": "Label beside the number (after it in the reading direction), or under it (narrow screens, many steps). \"left\", its former name, still works.",
|
|
10515
10515
|
"fieldName": "iconPosition",
|
|
10516
|
-
"default": "
|
|
10516
|
+
"default": "start"
|
|
10517
10517
|
},
|
|
10518
10518
|
{
|
|
10519
10519
|
"name": "allow-step-select",
|
|
@@ -10586,12 +10586,12 @@
|
|
|
10586
10586
|
"kind": "field",
|
|
10587
10587
|
"name": "iconPosition",
|
|
10588
10588
|
"type": {
|
|
10589
|
-
"text": "\"
|
|
10589
|
+
"text": "\"start\" | \"top\" | \"left\""
|
|
10590
10590
|
},
|
|
10591
|
-
"description": "Label beside the number, or under it (narrow screens, many steps).",
|
|
10591
|
+
"description": "Label beside the number (after it in the reading direction), or under it (narrow screens, many steps). \"left\", its former name, still works.",
|
|
10592
10592
|
"attribute": "icon-position",
|
|
10593
10593
|
"reflects": true,
|
|
10594
|
-
"default": "
|
|
10594
|
+
"default": "start"
|
|
10595
10595
|
},
|
|
10596
10596
|
{
|
|
10597
10597
|
"kind": "field",
|
|
@@ -11877,11 +11877,11 @@
|
|
|
11877
11877
|
{
|
|
11878
11878
|
"name": "position",
|
|
11879
11879
|
"type": {
|
|
11880
|
-
"text": "\"right\" | \"left\" | \"top\" | \"bottom\""
|
|
11880
|
+
"text": "\"end\" | \"start\" | \"right\" | \"left\" | \"top\" | \"bottom\""
|
|
11881
11881
|
},
|
|
11882
|
-
"description": "The edge it slides from.",
|
|
11882
|
+
"description": "The edge it slides from: start/end follow the writing direction; left/right are sides of the screen.",
|
|
11883
11883
|
"fieldName": "position",
|
|
11884
|
-
"default": "
|
|
11884
|
+
"default": "end"
|
|
11885
11885
|
},
|
|
11886
11886
|
{
|
|
11887
11887
|
"name": "size",
|
|
@@ -11968,12 +11968,12 @@
|
|
|
11968
11968
|
"kind": "field",
|
|
11969
11969
|
"name": "position",
|
|
11970
11970
|
"type": {
|
|
11971
|
-
"text": "\"right\" | \"left\" | \"top\" | \"bottom\""
|
|
11971
|
+
"text": "\"end\" | \"start\" | \"right\" | \"left\" | \"top\" | \"bottom\""
|
|
11972
11972
|
},
|
|
11973
|
-
"description": "The edge it slides from.",
|
|
11973
|
+
"description": "The edge it slides from: start/end follow the writing direction; left/right are sides of the screen.",
|
|
11974
11974
|
"attribute": "position",
|
|
11975
11975
|
"reflects": true,
|
|
11976
|
-
"default": "
|
|
11976
|
+
"default": "end"
|
|
11977
11977
|
},
|
|
11978
11978
|
{
|
|
11979
11979
|
"kind": "field",
|
|
@@ -12147,7 +12147,7 @@
|
|
|
12147
12147
|
"type": {
|
|
12148
12148
|
"text": "\"bottom-start\" | \"bottom\" | \"bottom-end\" | \"top-start\" | \"top\" | \"top-end\" | \"right-start\" | \"left-start\""
|
|
12149
12149
|
},
|
|
12150
|
-
"description": "Preferred side and alignment.",
|
|
12150
|
+
"description": "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).",
|
|
12151
12151
|
"fieldName": "placement",
|
|
12152
12152
|
"default": "bottom-start"
|
|
12153
12153
|
},
|
|
@@ -12202,7 +12202,7 @@
|
|
|
12202
12202
|
"type": {
|
|
12203
12203
|
"text": "\"bottom-start\" | \"bottom\" | \"bottom-end\" | \"top-start\" | \"top\" | \"top-end\" | \"right-start\" | \"left-start\""
|
|
12204
12204
|
},
|
|
12205
|
-
"description": "Preferred side and alignment.",
|
|
12205
|
+
"description": "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).",
|
|
12206
12206
|
"attribute": "placement",
|
|
12207
12207
|
"reflects": true,
|
|
12208
12208
|
"default": "bottom-start"
|
|
@@ -12528,7 +12528,7 @@
|
|
|
12528
12528
|
"type": {
|
|
12529
12529
|
"text": "\"bottom\" | \"bottom-start\" | \"bottom-end\" | \"top\" | \"top-start\" | \"top-end\" | \"left\" | \"left-start\" | \"left-end\" | \"right\" | \"right-start\" | \"right-end\""
|
|
12530
12530
|
},
|
|
12531
|
-
"description": "Preferred side and alignment.",
|
|
12531
|
+
"description": "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).",
|
|
12532
12532
|
"fieldName": "placement",
|
|
12533
12533
|
"default": "bottom"
|
|
12534
12534
|
},
|
|
@@ -12592,7 +12592,7 @@
|
|
|
12592
12592
|
"type": {
|
|
12593
12593
|
"text": "\"bottom\" | \"bottom-start\" | \"bottom-end\" | \"top\" | \"top-start\" | \"top-end\" | \"left\" | \"left-start\" | \"left-end\" | \"right\" | \"right-start\" | \"right-end\""
|
|
12594
12594
|
},
|
|
12595
|
-
"description": "Preferred side and alignment.",
|
|
12595
|
+
"description": "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).",
|
|
12596
12596
|
"attribute": "placement",
|
|
12597
12597
|
"reflects": true,
|
|
12598
12598
|
"default": "bottom"
|
|
@@ -12750,7 +12750,7 @@
|
|
|
12750
12750
|
"type": {
|
|
12751
12751
|
"text": "\"top\" | \"bottom\" | \"left\" | \"right\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\""
|
|
12752
12752
|
},
|
|
12753
|
-
"description": "Preferred side.",
|
|
12753
|
+
"description": "Preferred side; -start/-end follow the writing direction.",
|
|
12754
12754
|
"fieldName": "placement",
|
|
12755
12755
|
"default": "top"
|
|
12756
12756
|
},
|
|
@@ -12823,7 +12823,7 @@
|
|
|
12823
12823
|
"type": {
|
|
12824
12824
|
"text": "\"top\" | \"bottom\" | \"left\" | \"right\" | \"top-start\" | \"top-end\" | \"bottom-start\" | \"bottom-end\""
|
|
12825
12825
|
},
|
|
12826
|
-
"description": "Preferred side.",
|
|
12826
|
+
"description": "Preferred side; -start/-end follow the writing direction.",
|
|
12827
12827
|
"attribute": "placement",
|
|
12828
12828
|
"reflects": true,
|
|
12829
12829
|
"default": "top"
|
|
@@ -12988,11 +12988,11 @@
|
|
|
12988
12988
|
{
|
|
12989
12989
|
"name": "chevron-position",
|
|
12990
12990
|
"type": {
|
|
12991
|
-
"text": "\"right\" | \"left\""
|
|
12991
|
+
"text": "\"end\" | \"start\" | \"right\" | \"left\""
|
|
12992
12992
|
},
|
|
12993
|
-
"description": "Side of the chevron.",
|
|
12993
|
+
"description": "Side of the chevron: start/end follow the writing direction; left/right are sides of the screen.",
|
|
12994
12994
|
"fieldName": "chevronPosition",
|
|
12995
|
-
"default": "
|
|
12995
|
+
"default": "end"
|
|
12996
12996
|
}
|
|
12997
12997
|
],
|
|
12998
12998
|
"members": [
|
|
@@ -13031,12 +13031,12 @@
|
|
|
13031
13031
|
"kind": "field",
|
|
13032
13032
|
"name": "chevronPosition",
|
|
13033
13033
|
"type": {
|
|
13034
|
-
"text": "\"right\" | \"left\""
|
|
13034
|
+
"text": "\"end\" | \"start\" | \"right\" | \"left\""
|
|
13035
13035
|
},
|
|
13036
|
-
"description": "Side of the chevron.",
|
|
13036
|
+
"description": "Side of the chevron: start/end follow the writing direction; left/right are sides of the screen.",
|
|
13037
13037
|
"attribute": "chevron-position",
|
|
13038
13038
|
"reflects": true,
|
|
13039
|
-
"default": "
|
|
13039
|
+
"default": "end"
|
|
13040
13040
|
},
|
|
13041
13041
|
{
|
|
13042
13042
|
"kind": "field",
|
|
@@ -14865,6 +14865,14 @@
|
|
|
14865
14865
|
"description": "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.",
|
|
14866
14866
|
"fieldName": "filled"
|
|
14867
14867
|
},
|
|
14868
|
+
{
|
|
14869
|
+
"name": "mirror",
|
|
14870
|
+
"type": {
|
|
14871
|
+
"text": "boolean"
|
|
14872
|
+
},
|
|
14873
|
+
"description": "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.",
|
|
14874
|
+
"fieldName": "mirror"
|
|
14875
|
+
},
|
|
14868
14876
|
{
|
|
14869
14877
|
"name": "size",
|
|
14870
14878
|
"type": {
|
|
@@ -14919,6 +14927,16 @@
|
|
|
14919
14927
|
"attribute": "filled",
|
|
14920
14928
|
"reflects": true
|
|
14921
14929
|
},
|
|
14930
|
+
{
|
|
14931
|
+
"kind": "field",
|
|
14932
|
+
"name": "mirror",
|
|
14933
|
+
"type": {
|
|
14934
|
+
"text": "boolean"
|
|
14935
|
+
},
|
|
14936
|
+
"description": "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.",
|
|
14937
|
+
"attribute": "mirror",
|
|
14938
|
+
"reflects": true
|
|
14939
|
+
},
|
|
14922
14940
|
{
|
|
14923
14941
|
"kind": "field",
|
|
14924
14942
|
"name": "size",
|
|
@@ -15871,11 +15889,11 @@
|
|
|
15871
15889
|
{
|
|
15872
15890
|
"name": "align",
|
|
15873
15891
|
"type": {
|
|
15874
|
-
"text": "\"left\" | \"right\""
|
|
15892
|
+
"text": "\"start\" | \"end\" | \"left\" | \"right\""
|
|
15875
15893
|
},
|
|
15876
|
-
"description": "Side of the line.",
|
|
15894
|
+
"description": "Side of the line: start/end follow the writing direction; left/right are sides of the screen.",
|
|
15877
15895
|
"fieldName": "align",
|
|
15878
|
-
"default": "
|
|
15896
|
+
"default": "start"
|
|
15879
15897
|
},
|
|
15880
15898
|
{
|
|
15881
15899
|
"name": "bullet-size",
|
|
@@ -15926,12 +15944,12 @@
|
|
|
15926
15944
|
"kind": "field",
|
|
15927
15945
|
"name": "align",
|
|
15928
15946
|
"type": {
|
|
15929
|
-
"text": "\"left\" | \"right\""
|
|
15947
|
+
"text": "\"start\" | \"end\" | \"left\" | \"right\""
|
|
15930
15948
|
},
|
|
15931
|
-
"description": "Side of the line.",
|
|
15949
|
+
"description": "Side of the line: start/end follow the writing direction; left/right are sides of the screen.",
|
|
15932
15950
|
"attribute": "align",
|
|
15933
15951
|
"reflects": true,
|
|
15934
|
-
"default": "
|
|
15952
|
+
"default": "start"
|
|
15935
15953
|
},
|
|
15936
15954
|
{
|
|
15937
15955
|
"kind": "field",
|
|
@@ -16657,11 +16675,11 @@
|
|
|
16657
16675
|
{
|
|
16658
16676
|
"name": "position",
|
|
16659
16677
|
"type": {
|
|
16660
|
-
"text": "\"bottom-
|
|
16678
|
+
"text": "\"bottom-end\" | \"bottom-start\" | \"bottom-center\" | \"top-end\" | \"top-start\" | \"top-center\" | \"bottom-right\" | \"bottom-left\" | \"top-right\" | \"top-left\""
|
|
16661
16679
|
},
|
|
16662
|
-
"description": "Corner of the stack.",
|
|
16680
|
+
"description": "Corner of the stack: -start/-end follow the writing direction; -left/-right are sides of the screen.",
|
|
16663
16681
|
"fieldName": "position",
|
|
16664
|
-
"default": "bottom-
|
|
16682
|
+
"default": "bottom-end"
|
|
16665
16683
|
},
|
|
16666
16684
|
{
|
|
16667
16685
|
"name": "limit",
|
|
@@ -16704,12 +16722,12 @@
|
|
|
16704
16722
|
"kind": "field",
|
|
16705
16723
|
"name": "position",
|
|
16706
16724
|
"type": {
|
|
16707
|
-
"text": "\"bottom-
|
|
16725
|
+
"text": "\"bottom-end\" | \"bottom-start\" | \"bottom-center\" | \"top-end\" | \"top-start\" | \"top-center\" | \"bottom-right\" | \"bottom-left\" | \"top-right\" | \"top-left\""
|
|
16708
16726
|
},
|
|
16709
|
-
"description": "Corner of the stack.",
|
|
16727
|
+
"description": "Corner of the stack: -start/-end follow the writing direction; -left/-right are sides of the screen.",
|
|
16710
16728
|
"attribute": "position",
|
|
16711
16729
|
"reflects": true,
|
|
16712
|
-
"default": "bottom-
|
|
16730
|
+
"default": "bottom-end"
|
|
16713
16731
|
},
|
|
16714
16732
|
{
|
|
16715
16733
|
"kind": "field",
|
|
@@ -19134,21 +19152,21 @@
|
|
|
19134
19152
|
{
|
|
19135
19153
|
"kind": "method",
|
|
19136
19154
|
"name": "scrollToStart",
|
|
19137
|
-
"description": "Scrolls to the top (left)."
|
|
19155
|
+
"description": "Scrolls to the start: the top, or the left when horizontal (the right right to left)."
|
|
19138
19156
|
},
|
|
19139
19157
|
{
|
|
19140
19158
|
"kind": "method",
|
|
19141
19159
|
"name": "scrollToEnd",
|
|
19142
|
-
"description": "Scrolls to the bottom
|
|
19160
|
+
"description": "Scrolls to the end: the bottom, or the right when horizontal (the left right to left)."
|
|
19143
19161
|
}
|
|
19144
19162
|
],
|
|
19145
19163
|
"events": [
|
|
19146
19164
|
{
|
|
19147
19165
|
"name": "ray-reach-end",
|
|
19148
19166
|
"type": {
|
|
19149
|
-
"text": "CustomEvent<{ edge: \"bottom\" | \"right\" }>"
|
|
19167
|
+
"text": "CustomEvent<{ edge: \"bottom\" | \"right\" | \"left\" }>"
|
|
19150
19168
|
},
|
|
19151
|
-
"description": "The end came within threshold (once per arrival)."
|
|
19169
|
+
"description": "The end came within threshold (once per arrival): the bottom, or the right when horizontal (the left right to left)."
|
|
19152
19170
|
}
|
|
19153
19171
|
],
|
|
19154
19172
|
"slots": [
|
|
@@ -19222,9 +19240,9 @@
|
|
|
19222
19240
|
{
|
|
19223
19241
|
"name": "label-position",
|
|
19224
19242
|
"type": {
|
|
19225
|
-
"text": "\"
|
|
19243
|
+
"text": "\"start\" | \"center\" | \"end\" | \"left\" | \"right\""
|
|
19226
19244
|
},
|
|
19227
|
-
"description": "Where the label sits.",
|
|
19245
|
+
"description": "Where the label sits: start/end follow the writing direction; left/right are sides of the screen.",
|
|
19228
19246
|
"fieldName": "labelPosition",
|
|
19229
19247
|
"default": "center"
|
|
19230
19248
|
},
|
|
@@ -19273,9 +19291,9 @@
|
|
|
19273
19291
|
"kind": "field",
|
|
19274
19292
|
"name": "labelPosition",
|
|
19275
19293
|
"type": {
|
|
19276
|
-
"text": "\"
|
|
19294
|
+
"text": "\"start\" | \"center\" | \"end\" | \"left\" | \"right\""
|
|
19277
19295
|
},
|
|
19278
|
-
"description": "Where the label sits.",
|
|
19296
|
+
"description": "Where the label sits: start/end follow the writing direction; left/right are sides of the screen.",
|
|
19279
19297
|
"attribute": "label-position",
|
|
19280
19298
|
"reflects": true,
|
|
19281
19299
|
"default": "center"
|