design-system-silkhaus 3.16.0-beta.dropdown-select-all.1 → 4.0.0-beta.color-names
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/app/index.d.ts +3 -34
- package/dist/app/index.js +6 -7
- package/dist/{index-CZFridxv.js → index-DERrcP2d.js} +1497 -1459
- package/dist/index.js +2663 -2664
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +74 -34
- package/package.json +1 -1
package/dist/app/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
|
-
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
5
4
|
import { Placement } from '@floating-ui/react';
|
|
6
5
|
import { PropsWithChildren } from 'react';
|
|
7
6
|
import { ReactNode } from 'react';
|
|
@@ -79,23 +78,6 @@ export declare type DropdownOption = {
|
|
|
79
78
|
disabled?: boolean;
|
|
80
79
|
};
|
|
81
80
|
|
|
82
|
-
export declare const DropdownOption: ({ onClick, option, isSelected, showCheckbox, }: {
|
|
83
|
-
onClick: () => void;
|
|
84
|
-
option: DropdownOption;
|
|
85
|
-
isSelected: boolean;
|
|
86
|
-
showCheckbox?: boolean;
|
|
87
|
-
}) => JSX_2.Element;
|
|
88
|
-
|
|
89
|
-
export declare const DropdownOptions: ({ options, isMultiSelect, value, setValue, setIsOpen, onChange, selectAllOptionLabel, }: {
|
|
90
|
-
options: DropdownOption[];
|
|
91
|
-
isMultiSelect?: boolean;
|
|
92
|
-
value: DropdownProps["value"];
|
|
93
|
-
setValue: (value: DropdownProps["value"]) => void;
|
|
94
|
-
setIsOpen: (isOpen: boolean) => void;
|
|
95
|
-
onChange?: DropdownProps["onChange"];
|
|
96
|
-
selectAllOptionLabel?: string;
|
|
97
|
-
}) => JSX_2.Element;
|
|
98
|
-
|
|
99
81
|
export declare interface DropdownProps {
|
|
100
82
|
/**
|
|
101
83
|
* The options of the dropdown
|
|
@@ -112,7 +94,7 @@ export declare interface DropdownProps {
|
|
|
112
94
|
/**
|
|
113
95
|
* Callback when dropdown value is changed
|
|
114
96
|
*/
|
|
115
|
-
onChange?: (selectedOption: DropdownOption | DropdownOption[]
|
|
97
|
+
onChange?: (selectedOption: DropdownOption | DropdownOption[]) => void;
|
|
116
98
|
/**
|
|
117
99
|
* Pass this callback function if you want to override the default selected value display text.
|
|
118
100
|
* By default the dropdown will display the label from the selected option
|
|
@@ -160,23 +142,10 @@ export declare interface DropdownProps {
|
|
|
160
142
|
* @default 'Close'
|
|
161
143
|
*/
|
|
162
144
|
closeButtonLabel?: string;
|
|
163
|
-
/**
|
|
164
|
-
* Pass true to disable the select all option in multi-select dropdown
|
|
165
|
-
* @default false
|
|
166
|
-
*/
|
|
167
|
-
disableSelectAll?: boolean;
|
|
168
|
-
/**
|
|
169
|
-
* The label for Select all option
|
|
170
|
-
* @default 'Select all'
|
|
171
|
-
*/
|
|
172
|
-
selectAllOptionLabel?: string;
|
|
173
|
-
/**
|
|
174
|
-
* The selected value label to show when 'Select All' option is checked
|
|
175
|
-
* @default 'All'
|
|
176
|
-
*/
|
|
177
|
-
allSelectedLabel?: string;
|
|
178
145
|
}
|
|
179
146
|
|
|
147
|
+
export declare const findOptionByValue: (value: string | string[] | undefined, options: DropdownOption[]) => DropdownOption | DropdownOption[] | undefined;
|
|
148
|
+
|
|
180
149
|
export declare const MobileDropdown: FC<PropsWithChildren<DropdownProps>>;
|
|
181
150
|
|
|
182
151
|
declare type OptionType = {
|
package/dist/app/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { B as s, a as
|
|
1
|
+
import { B as s, a as t, b as n, D as p, M as r, f as e } from "../index-DERrcP2d.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Button,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
d as MobileDropdown
|
|
4
|
+
t as ButtonsGroupSelector,
|
|
5
|
+
n as DesktopDropdown,
|
|
6
|
+
p as Dropdown,
|
|
7
|
+
r as MobileDropdown,
|
|
8
|
+
e as findOptionByValue
|
|
10
9
|
};
|