@webority/ui-react 0.8.5 → 0.8.7
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/README.md +8 -1
- package/dist/types/components/AppAutocomplete.d.ts +1 -1
- package/dist/types/components/AppCallout.d.ts +3 -1
- package/dist/types/components/AppChoiceChip.d.ts +2 -1
- package/dist/types/components/AppDatePicker.d.ts +1 -1
- package/dist/types/components/AppDateRangePicker.d.ts +1 -1
- package/dist/types/components/AppFloatingDock.d.ts +1 -1
- package/dist/types/components/AppLogoPicker.d.ts +4 -1
- package/dist/types/components/AppMultiSelect.d.ts +1 -1
- package/dist/types/components/AppOtpInput.d.ts +1 -1
- package/dist/types/components/AppPhoneNumberInput.d.ts +1 -1
- package/dist/types/components/AppSelect.d.ts +1 -1
- package/dist/types/components/AppSelectMini.d.ts +1 -1
- package/dist/types/components/AppSlider.d.ts +1 -1
- package/dist/types/components/AppTagInput.d.ts +1 -1
- package/dist/types/components/AppTimePicker.d.ts +1 -1
- package/dist/types/components/AppTimeline.d.ts +5 -1
- package/dist/types/components/AppToast.d.ts +1 -1
- package/dist/types/components/AppWizard.d.ts +1 -1
- package/dist/types/components/ModalIcons.d.ts +1 -1
- package/dist/types/components/__tests__/restPassthrough.d.ts +3 -3
- package/dist/types/components/iconCatalogFull.g.d.ts +3906 -3906
- package/dist/types/components/iconGlyphs.g.d.ts +61 -61
- package/dist/types/components/iconVariants.g.d.ts +305 -305
- package/dist/types/components/useWuiControl.d.ts +1 -1
- package/dist/types/index.d.ts +84 -84
- package/dist/ui-react.js +528 -492
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -9,9 +9,16 @@ products; no support commitment outside them.
|
|
|
9
9
|
## Use
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npm install @webority/ui-react @webority/theme
|
|
12
|
+
npm install --save-exact @webority/ui-react @webority/theme
|
|
13
|
+
npm install bootstrap react-bootstrap
|
|
13
14
|
```
|
|
14
15
|
|
|
16
|
+
`--save-exact` is deliberate: pin `@webority/*` to an exact version, never `^`. A patch of
|
|
17
|
+
a shared UI library can change rendering on every screen at once, so moving version is a
|
|
18
|
+
decision you make and test. (A caret would not even buy you auto-upgrades — deploys run
|
|
19
|
+
`npm ci`, which installs the lockfile and ignores the range; it only allows a silent jump
|
|
20
|
+
the next time someone runs a bare `npm install`.)
|
|
21
|
+
|
|
15
22
|
Import the theme once (see `@webority/theme` for the SCSS chain), then:
|
|
16
23
|
|
|
17
24
|
```jsx
|
|
@@ -17,11 +17,12 @@
|
|
|
17
17
|
* @param {string} [props.imageAlt] Alt text for the custom image.
|
|
18
18
|
* @param {"md"|"sm"} [props.size="md"] `sm` is a compact single line with tone-coloured text.
|
|
19
19
|
* @param {boolean} [props.bordered=true] Draw the soft ring and thick tone-coloured left edge. `false` keeps only the tint fill.
|
|
20
|
+
* @param {import('react').ReactNode} [props.action] A trailing action pinned to the right — usually an `AppButton`.
|
|
20
21
|
* @param {boolean} [props.dismissible=false] Show a × on the right that removes the callout.
|
|
21
22
|
* @param {() => void} [props.onDismiss] Called after the callout is dismissed.
|
|
22
23
|
* @param {string} [props.className]
|
|
23
24
|
*/
|
|
24
|
-
export default function AppCallout({ children, tone, title, icon, image, imageAlt, size, bordered, dismissible, onDismiss, className, ...rest }: {
|
|
25
|
+
export default function AppCallout({ children, tone, title, icon, image, imageAlt, size, bordered, action, dismissible, onDismiss, className, ...rest }: {
|
|
25
26
|
children: import('react').ReactNode;
|
|
26
27
|
tone?: "info" | "success" | "warning" | "danger";
|
|
27
28
|
title?: import('react').ReactNode;
|
|
@@ -30,6 +31,7 @@ export default function AppCallout({ children, tone, title, icon, image, imageAl
|
|
|
30
31
|
imageAlt?: string;
|
|
31
32
|
size?: "md" | "sm";
|
|
32
33
|
bordered?: boolean;
|
|
34
|
+
action?: import('react').ReactNode;
|
|
33
35
|
dismissible?: boolean;
|
|
34
36
|
onDismiss?: () => void;
|
|
35
37
|
className?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function AppChoiceChip({ multiple, label, name, value, checked, onChange, children, count, className, ...rest }: {
|
|
1
|
+
export default function AppChoiceChip({ multiple, label, name, value, checked, onChange, children, count, size, className, ...rest }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
checked: any;
|
|
4
4
|
children: any;
|
|
@@ -8,5 +8,6 @@ export default function AppChoiceChip({ multiple, label, name, value, checked, o
|
|
|
8
8
|
multiple?: boolean;
|
|
9
9
|
name: any;
|
|
10
10
|
onChange: any;
|
|
11
|
+
size?: string;
|
|
11
12
|
value: any;
|
|
12
13
|
}): import("react").JSX.Element;
|
|
@@ -3,7 +3,7 @@ fallback, // node shown when there's no image (e.g. initials)
|
|
|
3
3
|
name, onPick, // (file) => void — receives a validated File
|
|
4
4
|
onRemove, // () => void — clears the current logo
|
|
5
5
|
loading, // show a spinner + block interaction while the pick is uploading
|
|
6
|
-
disabled, accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, label, hint, error, required, variant, size, shape, className, ...rest }: {
|
|
6
|
+
disabled, accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, label, hint, error, layout, title, subtitle, required, variant, size, shape, className, ...rest }: {
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
accept?: string;
|
|
9
9
|
ariaLabel?: string;
|
|
@@ -13,6 +13,7 @@ disabled, accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, label, hint,
|
|
|
13
13
|
fallback: any;
|
|
14
14
|
hint: any;
|
|
15
15
|
label: any;
|
|
16
|
+
layout?: string;
|
|
16
17
|
loading?: boolean;
|
|
17
18
|
maxSizeMb?: number;
|
|
18
19
|
name: any;
|
|
@@ -23,6 +24,8 @@ disabled, accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, label, hint,
|
|
|
23
24
|
required?: boolean;
|
|
24
25
|
shape?: string;
|
|
25
26
|
size?: string;
|
|
27
|
+
subtitle: any;
|
|
28
|
+
title: any;
|
|
26
29
|
value: any;
|
|
27
30
|
variant?: string;
|
|
28
31
|
}): import("react").JSX.Element;
|
|
@@ -25,13 +25,16 @@
|
|
|
25
25
|
* `status` drives the dot + rail in the progress variant; `description` is a
|
|
26
26
|
* plain inline subtext under the title (distinct from the boxed `note`).
|
|
27
27
|
* @param {'feed'|'progress'} [props.variant] Layout mode. Defaults to `feed`.
|
|
28
|
+
* @param {'vertical'|'horizontal'} [props.orientation] Rail direction — vertical (default) stacks
|
|
29
|
+
* items top-to-bottom; horizontal lays dots in a row with the body beneath each. Orthogonal to
|
|
30
|
+
* `variant`, so both feed and progress can run horizontally.
|
|
28
31
|
* @param {number} [props.size] Dot diameter in px (default 24). The rail, halo
|
|
29
32
|
* and glyph scale from it, so the whole timeline grows/shrinks in proportion.
|
|
30
33
|
* @param {string} [props.className]
|
|
31
34
|
* @param {import('react').CSSProperties} [props.style] Inline style on the list;
|
|
32
35
|
* the `size` var is merged into it.
|
|
33
36
|
*/
|
|
34
|
-
export default function AppTimeline({ items, variant, size, className, style, ...rest }: {
|
|
37
|
+
export default function AppTimeline({ items, variant, orientation, size, className, style, ...rest }: {
|
|
35
38
|
items: {
|
|
36
39
|
key?: string;
|
|
37
40
|
icon?: string;
|
|
@@ -44,6 +47,7 @@ export default function AppTimeline({ items, variant, size, className, style, ..
|
|
|
44
47
|
note?: string;
|
|
45
48
|
}[];
|
|
46
49
|
variant?: 'feed' | 'progress';
|
|
50
|
+
orientation?: 'vertical' | 'horizontal';
|
|
47
51
|
size?: number;
|
|
48
52
|
className?: string;
|
|
49
53
|
style?: import('react').CSSProperties;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* surface of the active mode — a dark card in light mode, a light card in dark mode — so the
|
|
21
21
|
* stack always contrasts with the page. A per-toast `surface` option overrides it.
|
|
22
22
|
*/
|
|
23
|
-
export default function AppToast({ position, maxVisible, animation, shape, surface
|
|
23
|
+
export default function AppToast({ position, maxVisible, animation, shape, surface }: {
|
|
24
24
|
position?: 'top-start' | 'top-center' | 'top-end' | 'middle-center' | 'bottom-start' | 'bottom-center' | 'bottom-end';
|
|
25
25
|
maxVisible?: number;
|
|
26
26
|
animation?: 'rise' | 'organic' | 'jelly' | 'spring';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/** Shared rest-prop probe for Wave 2 field/control passthrough tests. */
|
|
2
2
|
export declare const REST_PROBE: {
|
|
3
3
|
id: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
"data-testid": string;
|
|
5
|
+
"data-foo": string;
|
|
6
|
+
"aria-roledescription": string;
|
|
7
7
|
};
|
|
8
8
|
/** Assert standard REST_PROBE attributes landed on the control root. */
|
|
9
9
|
export declare function expectProbe(el: any): void;
|