@webority/ui-react 0.8.5 → 0.8.6
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/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/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/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/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
|
|
@@ -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;
|