@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.
- package/dist/examples.mobile.json-BMXTGiGC-Dl_Tt3py.js +250 -0
- package/dist/libphonenumber-js-BcNT8oq0-DMpMlice.js +11439 -0
- package/dist/types/components/AppColorField.d.ts +4 -1
- package/dist/types/components/AppModal.d.ts +1 -1
- package/dist/types/components/AppPhoneNumberInput.d.ts +1 -1
- package/dist/types/components/AppTabs.d.ts +2 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/ui-react.js +725 -582
- package/package.json +14 -5
- package/dist/types/lib/useListboxMenu.d.ts +0 -46
- package/dist/types/lib/usePopover.d.ts +0 -7
- package/dist/types/lib/useTableSort.d.ts +0 -25
|
@@ -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;
|
|
@@ -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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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';
|