design-system-silkhaus 3.16.0-beta.dropdown-select-all.2 → 4.0.0-beta.color-names.2
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 -35
- package/dist/app/index.js +6 -7
- package/dist/{index-CV5xREYR.js → index-dmbSCZ1I.js} +1570 -1535
- package/dist/index.js +2663 -2664
- package/dist/style.css +1 -1
- package/dist/tailwind.config.js +76 -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,24 +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, disableSelectAll, }: {
|
|
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
|
-
disableSelectAll?: boolean;
|
|
98
|
-
}) => JSX_2.Element;
|
|
99
|
-
|
|
100
81
|
export declare interface DropdownProps {
|
|
101
82
|
/**
|
|
102
83
|
* The options of the dropdown
|
|
@@ -113,7 +94,7 @@ export declare interface DropdownProps {
|
|
|
113
94
|
/**
|
|
114
95
|
* Callback when dropdown value is changed
|
|
115
96
|
*/
|
|
116
|
-
onChange?: (selectedOption: DropdownOption | DropdownOption[]
|
|
97
|
+
onChange?: (selectedOption: DropdownOption | DropdownOption[]) => void;
|
|
117
98
|
/**
|
|
118
99
|
* Pass this callback function if you want to override the default selected value display text.
|
|
119
100
|
* By default the dropdown will display the label from the selected option
|
|
@@ -161,23 +142,10 @@ export declare interface DropdownProps {
|
|
|
161
142
|
* @default 'Close'
|
|
162
143
|
*/
|
|
163
144
|
closeButtonLabel?: string;
|
|
164
|
-
/**
|
|
165
|
-
* Pass true to disable the select all option in multi-select dropdown
|
|
166
|
-
* @default false
|
|
167
|
-
*/
|
|
168
|
-
disableSelectAll?: boolean;
|
|
169
|
-
/**
|
|
170
|
-
* The label for Select all option
|
|
171
|
-
* @default 'Select all'
|
|
172
|
-
*/
|
|
173
|
-
selectAllOptionLabel?: string;
|
|
174
|
-
/**
|
|
175
|
-
* The selected value label to show when 'Select All' option is checked
|
|
176
|
-
* @default 'All'
|
|
177
|
-
*/
|
|
178
|
-
allSelectedLabel?: string;
|
|
179
145
|
}
|
|
180
146
|
|
|
147
|
+
export declare const findOptionByValue: (value: string | string[] | undefined, options: DropdownOption[]) => DropdownOption | DropdownOption[] | undefined;
|
|
148
|
+
|
|
181
149
|
export declare const MobileDropdown: FC<PropsWithChildren<DropdownProps>>;
|
|
182
150
|
|
|
183
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-dmbSCZ1I.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
|
};
|