@webority/ui-react 0.8.4 → 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.
Files changed (29) hide show
  1. package/README.md +8 -1
  2. package/dist/iconCatalogFull.g-ofRXGqrB.js +5680 -0
  3. package/dist/types/components/AppAutocomplete.d.ts +1 -1
  4. package/dist/types/components/AppCallout.d.ts +3 -1
  5. package/dist/types/components/AppDatePicker.d.ts +1 -1
  6. package/dist/types/components/AppDateRangePicker.d.ts +1 -1
  7. package/dist/types/components/AppFloatingDock.d.ts +1 -1
  8. package/dist/types/components/{Icon.d.ts → AppIcon.d.ts} +21 -8
  9. package/dist/types/components/AppMultiSelect.d.ts +1 -1
  10. package/dist/types/components/AppOtpInput.d.ts +1 -1
  11. package/dist/types/components/AppPhoneNumberInput.d.ts +1 -1
  12. package/dist/types/components/AppSelect.d.ts +1 -1
  13. package/dist/types/components/AppSelectMini.d.ts +1 -1
  14. package/dist/types/components/AppSlider.d.ts +1 -1
  15. package/dist/types/components/AppTabs.d.ts +9 -2
  16. package/dist/types/components/AppTagInput.d.ts +1 -1
  17. package/dist/types/components/AppTimePicker.d.ts +1 -1
  18. package/dist/types/components/AppToast.d.ts +1 -1
  19. package/dist/types/components/AppWizard.d.ts +1 -1
  20. package/dist/types/components/ModalIcons.d.ts +1 -1
  21. package/dist/types/components/__tests__/restPassthrough.d.ts +3 -3
  22. package/dist/types/components/iconCatalogFull.g.d.ts +5678 -0
  23. package/dist/types/components/iconCatalogNames.g.d.ts +1 -0
  24. package/dist/types/components/iconGlyphs.g.d.ts +61 -61
  25. package/dist/types/components/iconVariants.g.d.ts +305 -305
  26. package/dist/types/components/useWuiControl.d.ts +1 -1
  27. package/dist/types/index.d.ts +84 -84
  28. package/dist/ui-react.js +959 -929
  29. package/package.json +3 -3
@@ -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
  *
@@ -16,11 +16,12 @@
16
16
  * @param {string} [props.image] A custom image URL shown in the badge instead of the icon glyph (fills the circle).
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
+ * @param {boolean} [props.bordered=true] Draw the soft ring and thick tone-coloured left edge. `false` keeps only the tint fill.
19
20
  * @param {boolean} [props.dismissible=false] Show a × on the right that removes the callout.
20
21
  * @param {() => void} [props.onDismiss] Called after the callout is dismissed.
21
22
  * @param {string} [props.className]
22
23
  */
23
- export default function AppCallout({ children, tone, title, icon, image, imageAlt, size, dismissible, onDismiss, className, ...rest }: {
24
+ export default function AppCallout({ children, tone, title, icon, image, imageAlt, size, bordered, dismissible, onDismiss, className, ...rest }: {
24
25
  children: import('react').ReactNode;
25
26
  tone?: "info" | "success" | "warning" | "danger";
26
27
  title?: import('react').ReactNode;
@@ -28,6 +29,7 @@ export default function AppCallout({ children, tone, title, icon, image, imageAl
28
29
  image?: string;
29
30
  imageAlt?: string;
30
31
  size?: "md" | "sm";
32
+ bordered?: boolean;
31
33
  dismissible?: boolean;
32
34
  onDismiss?: () => void;
33
35
  className?: string;
@@ -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,6 +1,6 @@
1
1
  /**
2
2
  * The library's icon component — iconsax (Linear) glyphs, keyed by the semantic
3
- * kebab-case names in scripts/icon-map.json: <Icon name="file-text" />. Renders inline
3
+ * kebab-case names in scripts/icon-map.json: <AppIcon name="file-text" />. Renders inline
4
4
  * SVG (24x24 viewBox, currentColor) with data-icon={name} so CSS can target a specific
5
5
  * glyph. `size` maps to width/height; `color` to the icon colour.
6
6
  *
@@ -23,12 +23,25 @@ export declare function registerIcons(map: Record<string, (props: {
23
23
  className?: string;
24
24
  style?: object;
25
25
  }) => import('react').ReactNode>): void;
26
- export default function Icon({ name, size, variant, className, color, style, ...rest }: {
27
- [x: string]: any;
28
- className: any;
29
- color: any;
30
- name: any;
26
+ /**
27
+ * @param {object} props
28
+ * @param {string} props.name Icon name (kebab-case; curated or full-catalogue).
29
+ * @param {number} [props.size=16]
30
+ * @param {'linear'|'outline'|'bold'|'bulk'|'broken'|'twotone'} [props.variant]
31
+ * @param {string} [props.tooltip] A hover/focus tooltip. Wraps the glyph in a
32
+ * `.wui-icon-tip[data-wui-tip]` span that the theme styles as an instant, styled CSS bubble
33
+ * (no JS), plus `role="img"` + `aria-label` so it names the icon for assistive tech. For a
34
+ * collision-aware / richer tooltip, wrap the icon in `AppTooltip` instead.
35
+ * @param {string} [props.className]
36
+ * @param {string} [props.color]
37
+ * @param {object} [props.style]
38
+ */
39
+ export default function AppIcon({ name, size, variant, tooltip, className, color, style, ...rest }: {
40
+ name: string;
31
41
  size?: number;
32
- style: any;
33
- variant: any;
42
+ variant?: 'linear' | 'outline' | 'bold' | 'bulk' | 'broken' | 'twotone';
43
+ tooltip?: string;
44
+ className?: string;
45
+ color?: string;
46
+ style?: object;
34
47
  }): any;
@@ -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
  *
@@ -14,7 +14,11 @@
14
14
  * focus moves; `activation="manual"` moves focus only and selects on Enter/Space.
15
15
  *
16
16
  * @param {object} props
17
- * @param {{ key: string, label: import('react').ReactNode, count?: number, tone?: string, icon?: import('react').ReactNode, danger?: boolean, disabled?: boolean }[]} props.tabs
17
+ * @param {{ key: string, label: import('react').ReactNode, count?: number, tone?: string, icon?: string|import('react').ReactNode, image?: string, imageAlt?: string, tooltip?: import('react').ReactNode, danger?: boolean, disabled?: boolean }[]} props.tabs
18
+ * `icon` is a Bootstrap-Icons name OR a custom node (e.g. an iconsax glyph); `image` is a
19
+ * picture URL (logo/avatar) rendered before the label — `image` wins over `icon`. `tooltip`
20
+ * is a hover/focus hint (text or node) shown on the tab via AppTooltip — the same branded
21
+ * tip the Razor `<app-tab tooltip="…">` renders.
18
22
  * @param {string} props.value Selected tab key.
19
23
  * @param {(key: string) => void} props.onChange
20
24
  * @param {"underline"|"pills"} [props.variant="underline"]
@@ -33,7 +37,10 @@ export default function AppTabs({ tabs, value, onChange, variant, orientation, s
33
37
  label: import('react').ReactNode;
34
38
  count?: number;
35
39
  tone?: string;
36
- icon?: import('react').ReactNode;
40
+ icon?: string | import('react').ReactNode;
41
+ image?: string;
42
+ imageAlt?: string;
43
+ tooltip?: import('react').ReactNode;
37
44
  danger?: boolean;
38
45
  disabled?: boolean;
39
46
  }[];
@@ -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;