@adamosuiteservices/ui 1.9.15 → 2.9.16
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/combobox.cjs +9 -9
- package/dist/combobox.js +167 -168
- package/dist/components/ui/combobox/combobox.d.ts +10 -14
- package/dist/components/ui/icon/icon.d.ts +1 -3
- package/dist/components/ui/icon/icon.stories.d.ts +0 -5
- package/dist/custom-layered-styles.css +1 -1
- package/dist/icon-Cj-g35RJ.js +34 -0
- package/dist/icon-Di0rwXMr.cjs +6 -0
- package/dist/icon.cjs +1 -6
- package/dist/icon.js +2 -34
- package/dist/icons.css +1 -1
- package/dist/styles.css +1 -1
- package/docs/components/ui/accordion-rounded.md +583 -583
- package/docs/components/ui/alert.md +671 -671
- package/docs/components/ui/avatar.md +588 -588
- package/docs/components/ui/badge.md +1024 -1024
- package/docs/components/ui/combobox.md +6 -6
- package/docs/components/ui/icon.md +103 -75
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Represents a single option in the combobox.
|
|
4
4
|
*/
|
|
@@ -54,23 +54,21 @@ type ComboboxClassNames = {
|
|
|
54
54
|
*/
|
|
55
55
|
type ComboboxRenderProps = {
|
|
56
56
|
/**
|
|
57
|
-
* Custom renderer for the
|
|
57
|
+
* Custom renderer for the trigger button component.
|
|
58
58
|
* @param props.open - Whether the popover is open
|
|
59
|
-
* @param props.value - Current
|
|
60
|
-
* @param props.displayText -
|
|
59
|
+
* @param props.value - Current value(s)
|
|
60
|
+
* @param props.displayText - Text to display in trigger
|
|
61
61
|
* @param props.placeholder - Placeholder text
|
|
62
62
|
* @param props.hasValue - Whether any value is selected
|
|
63
|
-
* @param props.icon - Optional icon
|
|
63
|
+
* @param props.icon - Optional icon symbol name
|
|
64
64
|
*/
|
|
65
65
|
trigger?: (props: {
|
|
66
66
|
open: boolean;
|
|
67
67
|
value: string | string[];
|
|
68
|
-
displayText: string
|
|
68
|
+
displayText: string;
|
|
69
69
|
placeholder: string;
|
|
70
70
|
hasValue: boolean;
|
|
71
|
-
icon?:
|
|
72
|
-
className?: string;
|
|
73
|
-
}>;
|
|
71
|
+
icon?: string;
|
|
74
72
|
}) => ReactNode;
|
|
75
73
|
/**
|
|
76
74
|
* Custom renderer for the trigger dropdown icon.
|
|
@@ -149,10 +147,8 @@ type ComboboxProps = Readonly<{
|
|
|
149
147
|
searchable?: boolean;
|
|
150
148
|
/** Allow multiple options to be selected simultaneously */
|
|
151
149
|
multiple?: boolean;
|
|
152
|
-
/** Optional icon
|
|
153
|
-
icon?:
|
|
154
|
-
className?: string;
|
|
155
|
-
}>;
|
|
150
|
+
/** Optional icon symbol name to display in the trigger */
|
|
151
|
+
icon?: string;
|
|
156
152
|
/** Controlled value for the combobox. Can be a single value or array of values for multiple selection. */
|
|
157
153
|
value?: string | string[];
|
|
158
154
|
/** Callback fired when the selected value changes */
|
|
@@ -225,5 +221,5 @@ type ComboboxProps = Readonly<{
|
|
|
225
221
|
* />
|
|
226
222
|
* ```
|
|
227
223
|
*/
|
|
228
|
-
declare function Combobox({ searchable, multiple, icon
|
|
224
|
+
declare function Combobox({ searchable, multiple, icon, value: controlledValue, onValueChange, labels, options, classNames, selectedFeedback, alwaysShowPlaceholder, valuePosition, renders, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
229
225
|
export { Combobox };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
export type IconSize = "18" | "24" | "36" | "48";
|
|
3
2
|
export type IconProps = ComponentProps<"span"> & {
|
|
4
3
|
symbol: string;
|
|
5
|
-
size?: IconSize;
|
|
6
4
|
fill?: 0 | 1;
|
|
7
5
|
weight?: 100 | 200 | 300 | 400 | 500 | 600 | 700;
|
|
8
6
|
grade?: -25 | 0 | 200;
|
|
9
7
|
opticalSize?: 20 | 24 | 40 | 48;
|
|
10
8
|
};
|
|
11
|
-
export declare function Icon({ symbol,
|
|
9
|
+
export declare function Icon({ symbol, fill, weight, grade, opticalSize, className, style, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
|