@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 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 bootstrap react-bootstrap
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
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * Searchable autocomplete over the shared `<wui-autocomplete>` element.
4
4
  *
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * Thin React wrapper over the shared `<wui-datepicker>` element (single
4
4
  * implementation, so React and Razor render the same control).
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * Thin React wrapper over the shared `<wui-date-range>` element — a start/end date range
4
4
  * field with a two-month popover calendar (single implementation, so React and Razor render
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * A macOS-style floating dock — a pill of icon links whose items magnify as the pointer
4
4
  * approaches them. Marketing / landing-page chrome, not a replacement for `AppShell`
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * Multi-value select over the shared `<wui-multiselect>` element. The control shows each
4
4
  * chosen value as a removable `.chip`; the dropdown is a searchable checklist.
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * Code entry — MFA, email/phone verification, backup codes. Thin React wrapper over the
4
4
  * shared `<wui-otp>` element, in the standard `.field` shell.
@@ -1,3 +1,3 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  declare const AppPhoneNumberInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
3
3
  export default AppPhoneNumberInput;
@@ -1,3 +1,3 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  declare const AppSelect: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
3
3
  export default AppSelect;
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  export default function AppSelectMini({ value, onChange, options, placeholder, name, ariaLabel, id, disabled, size, icon, prefix, className, ...rest }: {
3
3
  [x: string]: any;
4
4
  ariaLabel: any;
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * Thin React wrapper over the shared `<wui-slider>` element (single or dual-thumb slider).
4
4
  *
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * Free-text token entry field (emails, tags, keywords) over the shared `<wui-taginput>`
4
4
  * custom element. Type text and press Enter/comma to add a chip; Backspace removes the last.
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * Thin React wrapper over the shared `<wui-timepicker>` element (single
4
4
  * implementation, so React and Razor render the same control).
@@ -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,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  /**
3
3
  * A multi-step flow over the shared `<wui-wizard>` element — a stepper progress
4
4
  * header, one visible step panel at a time, and a sticky Back / Skip / Next / Finish
@@ -1,4 +1,4 @@
1
- import '@webority/ui-elements';
1
+ import "@webority/ui-elements";
2
2
  export declare const SuccessIcon: ({ size }: {
3
3
  size?: number;
4
4
  }) => import("react").JSX.Element;
@@ -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
- 'data-testid': string;
5
- 'data-foo': string;
6
- 'aria-roledescription': string;
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;