@antadesign/anta 0.3.31 → 0.3.33
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/dist/avatar-core.d.ts +7 -2
- package/dist/box-types.d.ts +12 -1
- package/dist/bundle.css +1 -1
- package/dist/bundle.js +148 -73
- package/dist/components/Box.d.ts +18 -6
- package/dist/components/Box.js +4 -0
- package/dist/components/Expander.d.ts +17 -9
- package/dist/components/Expander.js +14 -1
- package/dist/components/Input.d.ts +9 -3
- package/dist/components/Input.js +2 -0
- package/dist/components/Slider.d.ts +22 -10
- package/dist/components/Slider.js +9 -5
- package/dist/elements/a-box.css +1 -1
- package/dist/elements/a-box.d.ts +2 -0
- package/dist/elements/a-box.js +74 -32
- package/dist/elements/a-button.js +2 -4
- package/dist/elements/a-dialog.js +2 -0
- package/dist/elements/a-expander.css +1 -1
- package/dist/elements/a-expander.js +118 -39
- package/dist/elements/a-input-time.js +1 -2
- package/dist/elements/a-input.css +1 -1
- package/dist/elements/a-input.js +11 -8
- package/dist/elements/a-menu.d.ts +1 -1
- package/dist/elements/a-menu.js +57 -7
- package/dist/elements/a-slider.d.ts +7 -5
- package/dist/elements/a-slider.js +256 -59
- package/dist/general_types.d.ts +27 -10
- package/dist/index.d.ts +2 -2
- package/dist/theme-antune.css +1 -1
- package/docs/changelog.md +59 -0
- package/docs/components/box.md +81 -24
- package/docs/components/button.md +9 -6
- package/docs/components/expander.md +88 -47
- package/docs/components/input.md +29 -9
- package/docs/components/panel.md +3 -2
- package/docs/components/select-faceted.md +40 -26
- package/docs/components/slider.md +139 -4
- package/docs/packages/plot.md +392 -38
- package/package.json +4 -2
package/dist/avatar-core.d.ts
CHANGED
|
@@ -18,8 +18,13 @@ export declare function mulberry32(seed: number): () => number;
|
|
|
18
18
|
/** Build a PRNG straight from a seed string. */
|
|
19
19
|
export declare const rngFromSeed: (seed: string) => (() => number);
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* Get the first letter of each of the first whitespace-separated words,
|
|
22
|
+
* uppercased. `"Vlad Korobov"` → `"VK"`.
|
|
23
|
+
*
|
|
24
|
+
* @param max - Maximum number of words to use, starting with the first.
|
|
25
|
+
* Defaults to 3.
|
|
26
|
+
*
|
|
27
|
+
* @author Vlad Korobov
|
|
23
28
|
*/
|
|
24
29
|
export declare function getInitials(name: string | undefined | null, max?: number): string;
|
|
25
30
|
/** Largest in-sRGB chroma at this lightness and hue (binary search). */
|
package/dist/box-types.d.ts
CHANGED
|
@@ -120,11 +120,22 @@ export interface BoxContext {
|
|
|
120
120
|
* own background is not behind it. */
|
|
121
121
|
backgroundColor: string;
|
|
122
122
|
}
|
|
123
|
-
/**
|
|
123
|
+
/** A descendant's border box, in CSS pixels from the Box's top-left border edge. */
|
|
124
|
+
export interface BoxRect {
|
|
125
|
+
top: number;
|
|
126
|
+
right: number;
|
|
127
|
+
bottom: number;
|
|
128
|
+
left: number;
|
|
129
|
+
width: number;
|
|
130
|
+
height: number;
|
|
131
|
+
}
|
|
132
|
+
/** Current box dimensions, matching descendant rects, and content-overflow state. */
|
|
124
133
|
export interface BoxMeasurement {
|
|
125
134
|
/** Border-box width and height in CSS pixels. */
|
|
126
135
|
width: number;
|
|
127
136
|
height: number;
|
|
137
|
+
/** Matches for `includeRectsFor`, in document order. Empty when omitted. */
|
|
138
|
+
rects: BoxRect[];
|
|
128
139
|
/** Padding-box dimensions, matching the browser's `clientWidth` / `clientHeight`. */
|
|
129
140
|
clientWidth: number;
|
|
130
141
|
clientHeight: number;
|