@raylang/vue 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.
@@ -4,6 +4,6 @@ import "@raylang/elements/icon";
4
4
  import { createComponent } from "../create.js";
5
5
 
6
6
  export const RayIcon = /*#__PURE__*/ createComponent("RayIcon", "ray-icon", {
7
- properties: ["name", "size", "label", "color", "stroke"],
8
- booleans: [],
7
+ properties: ["name", "filled", "size", "label", "color", "stroke"],
8
+ booleans: ["filled"],
9
9
  });
@@ -4,6 +4,6 @@ import "@raylang/elements/step-dots";
4
4
  import { createComponent } from "../create.js";
5
5
 
6
6
  export const RayStepDots = /*#__PURE__*/ createComponent("RayStepDots", "ray-step-dots", {
7
- properties: ["count", "value", "color", "size", "align", "label"],
7
+ properties: ["count", "value", "color", "size", "align", "label", "valueText", "doneText"],
8
8
  booleans: [],
9
9
  });
package/index.d.ts CHANGED
@@ -1129,8 +1129,8 @@ export interface RayBottomNavItemProps {
1129
1129
  value?: string;
1130
1130
  /** The label. */
1131
1131
  label?: string;
1132
- /** An icon of the registry (or put one in the icon slot). */
1133
- icon?: string;
1132
+ /** 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). */
1133
+ icon?: Ray.IconName;
1134
1134
  /** Makes it a link. */
1135
1135
  href?: string;
1136
1136
  /** A count or a short text on the icon. */
@@ -1659,7 +1659,7 @@ export interface RayBlockquoteProps {
1659
1659
  /** light: tinted background; outline: border and edge only; filled: solid color (a pull quote). */
1660
1660
  variant?: "light" | "outline" | "filled";
1661
1661
  /** Registry icon of the mark, or none. The icon slot replaces it. */
1662
- icon?: string;
1662
+ icon?: Ray.IconName;
1663
1663
  /** Text size (lg for a pull quote). */
1664
1664
  size?: "sm" | "md" | "lg";
1665
1665
  /** Inner spacing: xs…xl (the spacing scale), px as a number, or a CSS length. Default: md. */
@@ -1736,7 +1736,9 @@ export declare const RayCode: DefineComponent<RayCodeProps>;
1736
1736
 
1737
1737
  export interface RayIconProps {
1738
1738
  /** Registered icon name (iconNames()); "none" draws nothing, a blank that keeps the alignment (a menu item without its check). */
1739
- name?: string;
1739
+ name?: Ray.IconName;
1740
+ /** 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. */
1741
+ filled?: boolean;
1740
1742
  /** xs…xl or any CSS length. Default: 1em. */
1741
1743
  size?: string;
1742
1744
  /** Accessible name; without it the icon is decorative (hidden from screen readers). */
@@ -1870,7 +1872,7 @@ export interface RayTimelineItemProps {
1870
1872
  /** When ("2 h ago", a date). */
1871
1873
  time?: string;
1872
1874
  /** An icon of the registry in the bullet. */
1873
- icon?: string;
1875
+ icon?: Ray.IconName;
1874
1876
  /** Its own color (a failed step in red). */
1875
1877
  color?: string;
1876
1878
  /** The line to the next item (dashed: not happened yet). */
@@ -1889,7 +1891,7 @@ export interface RayAlertProps {
1889
1891
  /** Corner radius. */
1890
1892
  radius?: "xs" | "sm" | "md" | "lg" | "xl";
1891
1893
  /** A registered icon name, or none. */
1892
- icon?: string;
1894
+ icon?: Ray.IconName;
1893
1895
  /** A close button; closing hides the alert (cancel ray-close to keep it). */
1894
1896
  closable?: boolean;
1895
1897
  /** Accessible name of the close button. */
@@ -1917,7 +1919,7 @@ export interface RayNotificationProps {
1917
1919
  /** Status color: tints the status icon (and a slotted icon's circle). */
1918
1920
  color?: string;
1919
1921
  /** Status icon from the registry (default: from the color); "none" for no icon. */
1920
- icon?: string;
1922
+ icon?: Ray.IconName;
1921
1923
  /** Shows a spinner (notify() does not auto-close it). */
1922
1924
  loading?: boolean;
1923
1925
  /** No close button. */
@@ -2034,8 +2036,12 @@ export interface RayStepDotsProps {
2034
2036
  size?: "xs" | "sm" | "md" | "lg" | "xl";
2035
2037
  /** Where the row sits in its width. */
2036
2038
  align?: "start" | "center" | "end";
2037
- /** What a step is called: "Round" is announced "Round 4 of 12" and names the element. Default: Step (named Steps). */
2039
+ /** 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. */
2038
2040
  label?: string;
2041
+ /** 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}". */
2042
+ valueText?: string;
2043
+ /** The announced text once every step is done (value = count), with {count}. Default: value-text, else "{count} of {count}, done". */
2044
+ doneText?: string;
2039
2045
  }
2040
2046
  /** <ray-step-dots> as a Vue component. */
2041
2047
  export declare const RayStepDots: DefineComponent<RayStepDotsProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raylang/vue",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Vue 3 wrappers (with v-model) of the ray-elements web components",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": ["web-components", "design-system", "ui", "raylang", "vue"],
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "sideEffects": false,
30
30
  "peerDependencies": {
31
- "@raylang/elements": "^0.6.0",
31
+ "@raylang/elements": "^0.7.0",
32
32
  "vue": ">=3.3"
33
33
  }
34
34
  }