@raylang/react 0.6.0 → 0.7.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/components/icon.js +1 -1
- package/components/step-dots.js +1 -1
- package/index.d.ts +14 -8
- package/package.json +2 -2
package/components/icon.js
CHANGED
|
@@ -5,6 +5,6 @@ import { createComponent } from "../create.js";
|
|
|
5
5
|
|
|
6
6
|
export const RayIcon = /*#__PURE__*/ createComponent("ray-icon", {
|
|
7
7
|
displayName: "RayIcon",
|
|
8
|
-
properties: ["name", "size", "label", "color", "stroke"],
|
|
8
|
+
properties: ["name", "filled", "size", "label", "color", "stroke"],
|
|
9
9
|
events: { },
|
|
10
10
|
});
|
package/components/step-dots.js
CHANGED
|
@@ -5,6 +5,6 @@ import { createComponent } from "../create.js";
|
|
|
5
5
|
|
|
6
6
|
export const RayStepDots = /*#__PURE__*/ createComponent("ray-step-dots", {
|
|
7
7
|
displayName: "RayStepDots",
|
|
8
|
-
properties: ["count", "value", "color", "size", "align", "label"],
|
|
8
|
+
properties: ["count", "value", "color", "size", "align", "label", "valueText", "doneText"],
|
|
9
9
|
events: { },
|
|
10
10
|
});
|
package/index.d.ts
CHANGED
|
@@ -1102,8 +1102,8 @@ export interface RayBottomNavItemOwnProps {
|
|
|
1102
1102
|
value?: string;
|
|
1103
1103
|
/** The label. */
|
|
1104
1104
|
label?: string;
|
|
1105
|
-
/** An icon of the registry (or put one in the icon slot). */
|
|
1106
|
-
icon?:
|
|
1105
|
+
/** 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). */
|
|
1106
|
+
icon?: Ray.IconName;
|
|
1107
1107
|
/** Makes it a link. */
|
|
1108
1108
|
href?: string;
|
|
1109
1109
|
/** A count or a short text on the icon. */
|
|
@@ -1629,7 +1629,7 @@ export interface RayBlockquoteOwnProps {
|
|
|
1629
1629
|
/** light: tinted background; outline: border and edge only; filled: solid color (a pull quote). */
|
|
1630
1630
|
variant?: "light" | "outline" | "filled";
|
|
1631
1631
|
/** Registry icon of the mark, or none. The icon slot replaces it. */
|
|
1632
|
-
icon?:
|
|
1632
|
+
icon?: Ray.IconName;
|
|
1633
1633
|
/** Text size (lg for a pull quote). */
|
|
1634
1634
|
size?: "sm" | "md" | "lg";
|
|
1635
1635
|
/** Inner spacing: xs…xl (the spacing scale), px as a number, or a CSS length. Default: md. */
|
|
@@ -1709,7 +1709,9 @@ export declare const RayCode: React.ForwardRefExoticComponent<RayCodeProps & Rea
|
|
|
1709
1709
|
|
|
1710
1710
|
export interface RayIconOwnProps {
|
|
1711
1711
|
/** Registered icon name (iconNames()); "none" draws nothing, a blank that keeps the alignment (a menu item without its check). */
|
|
1712
|
-
name?:
|
|
1712
|
+
name?: Ray.IconName;
|
|
1713
|
+
/** 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. */
|
|
1714
|
+
filled?: boolean;
|
|
1713
1715
|
/** xs…xl or any CSS length. Default: 1em. */
|
|
1714
1716
|
size?: string;
|
|
1715
1717
|
/** Accessible name; without it the icon is decorative (hidden from screen readers). */
|
|
@@ -1849,7 +1851,7 @@ export interface RayTimelineItemOwnProps {
|
|
|
1849
1851
|
/** When ("2 h ago", a date). */
|
|
1850
1852
|
time?: string;
|
|
1851
1853
|
/** An icon of the registry in the bullet. */
|
|
1852
|
-
icon?:
|
|
1854
|
+
icon?: Ray.IconName;
|
|
1853
1855
|
/** Its own color (a failed step in red). */
|
|
1854
1856
|
color?: string;
|
|
1855
1857
|
/** The line to the next item (dashed: not happened yet). */
|
|
@@ -1869,7 +1871,7 @@ export interface RayAlertOwnProps {
|
|
|
1869
1871
|
/** Corner radius. */
|
|
1870
1872
|
radius?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
1871
1873
|
/** A registered icon name, or none. */
|
|
1872
|
-
icon?:
|
|
1874
|
+
icon?: Ray.IconName;
|
|
1873
1875
|
/** A close button; closing hides the alert (cancel ray-close to keep it). */
|
|
1874
1876
|
closable?: boolean;
|
|
1875
1877
|
/** Accessible name of the close button. */
|
|
@@ -1899,7 +1901,7 @@ export interface RayNotificationOwnProps {
|
|
|
1899
1901
|
/** Status color: tints the status icon (and a slotted icon's circle). */
|
|
1900
1902
|
color?: string;
|
|
1901
1903
|
/** Status icon from the registry (default: from the color); "none" for no icon. */
|
|
1902
|
-
icon?:
|
|
1904
|
+
icon?: Ray.IconName;
|
|
1903
1905
|
/** Shows a spinner (notify() does not auto-close it). */
|
|
1904
1906
|
loading?: boolean;
|
|
1905
1907
|
/** No close button. */
|
|
@@ -2022,8 +2024,12 @@ export interface RayStepDotsOwnProps {
|
|
|
2022
2024
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
2023
2025
|
/** Where the row sits in its width. */
|
|
2024
2026
|
align?: "start" | "center" | "end";
|
|
2025
|
-
/** What a step is called: "Round" is announced "Round 4 of 12" and names the element. Default: Step (named Steps). */
|
|
2027
|
+
/** 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. */
|
|
2026
2028
|
label?: string;
|
|
2029
|
+
/** 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}". */
|
|
2030
|
+
valueText?: string;
|
|
2031
|
+
/** The announced text once every step is done (value = count), with {count}. Default: value-text, else "{count} of {count}, done". */
|
|
2032
|
+
doneText?: string;
|
|
2027
2033
|
}
|
|
2028
2034
|
export type RayStepDotsProps = RayStepDotsOwnProps & Omit<React.HTMLAttributes<Ray.RayStepDots>, keyof RayStepDotsOwnProps> & { children?: React.ReactNode };
|
|
2029
2035
|
/** <ray-step-dots> as a React component. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raylang/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "React wrappers of the ray-elements web components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": ["web-components", "design-system", "ui", "raylang", "react"],
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@raylang/elements": "^0.
|
|
31
|
+
"@raylang/elements": "^0.7.0",
|
|
32
32
|
"react": ">=18"
|
|
33
33
|
}
|
|
34
34
|
}
|