@webority/ui-react 0.6.12 → 0.7.0

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.
@@ -19,9 +19,11 @@
19
19
  * @param {string} [props.name]
20
20
  * @param {string} [props.id]
21
21
  * @param {boolean} [props.disabled=false]
22
+ * @param {"sm"|"md"|"lg"} [props.size="md"] Control size — sm/lg opt out of the shared height,
23
+ * resizing both the swatch and the hex box together.
22
24
  * @param {string} [props.className]
23
25
  */
24
- export default function AppColorField({ value, onChange, label, required, error, hint, name, id, disabled, className, ...rest }: {
26
+ export default function AppColorField({ value, onChange, label, required, error, hint, name, id, disabled, size, className, ...rest }: {
25
27
  value: string;
26
28
  onChange: (hex: string) => void;
27
29
  label?: import('react').ReactNode;
@@ -31,5 +33,6 @@ export default function AppColorField({ value, onChange, label, required, error,
31
33
  name?: string;
32
34
  id?: string;
33
35
  disabled?: boolean;
36
+ size?: "sm" | "md" | "lg";
34
37
  className?: string;
35
38
  }): import("react").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * The single dialog primitive. Wraps react-bootstrap Modal with `.lx-modal-*` chrome.
2
+ * The single dialog primitive. Wraps react-bootstrap Modal with `.wui-modal-*` chrome.
3
3
  *
4
4
  * @param {object} props
5
5
  * @param {boolean} props.open
@@ -8,7 +8,7 @@ export default function AppPhoneNumberInput({ value, onChange, country, disabled
8
8
  label?: string;
9
9
  name: any;
10
10
  onChange: any;
11
- placeholder?: string;
11
+ placeholder: any;
12
12
  required?: boolean;
13
13
  value: any;
14
14
  }): import("react").JSX.Element;
@@ -6,7 +6,7 @@
6
6
  * from its children. The strip markup is the same on both, so they look alike.
7
7
  *
8
8
  * @param {object} props
9
- * @param {{ key: string, label: import('react').ReactNode, count?: number, tone?: string, icon?: import('react').ReactNode, danger?: boolean }[]} props.tabs
9
+ * @param {{ key: string, label: import('react').ReactNode, count?: number, tone?: string, icon?: import('react').ReactNode, danger?: boolean, disabled?: boolean }[]} props.tabs
10
10
  * @param {string} props.value
11
11
  * @param {(key: string) => void} props.onChange
12
12
  * @param {"underline"|"pills"} [props.variant="underline"]
@@ -21,6 +21,7 @@ export default function AppTabs({ tabs, value, onChange, variant, ariaLabel, cla
21
21
  tone?: string;
22
22
  icon?: import('react').ReactNode;
23
23
  danger?: boolean;
24
+ disabled?: boolean;
24
25
  }[];
25
26
  value: string;
26
27
  onChange: (key: string) => void;
@@ -56,3 +56,4 @@ export { default as Icon, iconNames } from './components/Icon.jsx';
56
56
  export { MODAL_ICONS } from './components/ModalIcons.jsx';
57
57
  export { default as RequiredMark } from './components/RequiredMark.jsx';
58
58
  export { errorToast, toast } from './components/toast.js';
59
+ export { usePagination } from './lib/usePagination.js';