@raylang/react 0.9.0 → 0.11.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/pulse.js +10 -0
- package/index.d.ts +22 -0
- package/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Generated by ray-elements tools from component.toml files. Do not edit.
|
|
2
|
+
|
|
3
|
+
import "@raylang/elements/pulse";
|
|
4
|
+
import { createComponent } from "../create.js";
|
|
5
|
+
|
|
6
|
+
export const RayPulse = /*#__PURE__*/ createComponent("ray-pulse", {
|
|
7
|
+
displayName: "RayPulse",
|
|
8
|
+
properties: ["variant", "count", "shape", "fade", "direction", "color", "size", "label"],
|
|
9
|
+
events: { },
|
|
10
|
+
});
|
package/index.d.ts
CHANGED
|
@@ -2141,6 +2141,28 @@ export type RayProgressProps = RayProgressOwnProps & Omit<React.HTMLAttributes<R
|
|
|
2141
2141
|
/** <ray-progress> as a React component. */
|
|
2142
2142
|
export declare const RayProgress: React.ForwardRefExoticComponent<RayProgressProps & React.RefAttributes<Ray.RayProgress>>;
|
|
2143
2143
|
|
|
2144
|
+
export interface RayPulseOwnProps {
|
|
2145
|
+
/** The figure: cluster (three concentric circles breathing out of phase), breathe (one dot over a halo), ripple (rings expanding from a dot) or dots (three in a row, in sequence). */
|
|
2146
|
+
variant?: "cluster" | "breathe" | "ripple" | "dots";
|
|
2147
|
+
/** Number of circles, 1 to 5 (more are clamped). Default: the variant's. */
|
|
2148
|
+
count?: number;
|
|
2149
|
+
/** Filled discs (concentric ones fade with size, see --ray-pulse-floor) or outlined rings. Default: the variant's. */
|
|
2150
|
+
shape?: "filled" | "ring";
|
|
2151
|
+
/** Whether a cycle ends transparent; the bare attribute means out. Default: the variant's (ripple and dots fade). */
|
|
2152
|
+
fade?: "out" | "none";
|
|
2153
|
+
/** alternate goes there and back; normal goes one way and restarts (with fade: the ripple). Default: the variant's. */
|
|
2154
|
+
direction?: "alternate" | "normal";
|
|
2155
|
+
/** A palette color or any CSS color. Default: the primary color. */
|
|
2156
|
+
color?: string;
|
|
2157
|
+
/** Height of the figure (the dots variant is wider). */
|
|
2158
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
2159
|
+
/** Text read by screen readers. */
|
|
2160
|
+
label?: string;
|
|
2161
|
+
}
|
|
2162
|
+
export type RayPulseProps = RayPulseOwnProps & Omit<React.HTMLAttributes<Ray.RayPulse>, keyof RayPulseOwnProps> & { children?: React.ReactNode };
|
|
2163
|
+
/** <ray-pulse> as a React component. */
|
|
2164
|
+
export declare const RayPulse: React.ForwardRefExoticComponent<RayPulseProps & React.RefAttributes<Ray.RayPulse>>;
|
|
2165
|
+
|
|
2144
2166
|
export interface RayRingProgressOwnProps {
|
|
2145
2167
|
/** Progress, from 0 to max. Unset: indeterminate (a spinning arc). */
|
|
2146
2168
|
value?: number;
|
package/index.js
CHANGED
|
@@ -58,6 +58,7 @@ export { RayAlert } from "./components/alert.js";
|
|
|
58
58
|
export { RayEmptyState } from "./components/empty-state.js";
|
|
59
59
|
export { RayNotification, RayToaster } from "./components/notification.js";
|
|
60
60
|
export { RayProgress } from "./components/progress.js";
|
|
61
|
+
export { RayPulse } from "./components/pulse.js";
|
|
61
62
|
export { RayRingProgress } from "./components/ring-progress.js";
|
|
62
63
|
export { RaySkeleton } from "./components/skeleton.js";
|
|
63
64
|
export { RaySpinner } from "./components/spinner.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raylang/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.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.11.0",
|
|
32
32
|
"react": ">=18"
|
|
33
33
|
}
|
|
34
34
|
}
|