ui-ingredients 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/collapsible/create-collapsible.svelte.js +1 -1
- package/dist/color-picker/create-color-picker.svelte.js +1 -1
- package/dist/combobox/create-combobox.svelte.js +1 -1
- package/dist/date-picker/create-date-picker.svelte.js +1 -1
- package/dist/dialog/create-dialog.svelte.js +1 -1
- package/dist/editable/create-editable.svelte.js +1 -1
- package/dist/hover-card/create-hover-card.svelte.js +1 -1
- package/dist/menu/create-menu.svelte.js +1 -1
- package/dist/popover/create-popover.svelte.js +1 -1
- package/dist/select/create-select.svelte.js +1 -1
- package/dist/time-picker/create-time-picker.svelte.js +1 -1
- package/dist/tooltip/create-tooltip.svelte.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -10,7 +10,7 @@ export function createCollapsible(props) {
|
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
12
|
dir: locale?.dir,
|
13
|
-
open: props.defaultOpen,
|
13
|
+
open: props.defaultOpen ?? props.open,
|
14
14
|
getRootNode: environment?.getRootNode,
|
15
15
|
'open.controlled': props.open != null,
|
16
16
|
}));
|
@@ -10,7 +10,7 @@ export function createColorPicker(props) {
|
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
12
|
dir: locale?.dir,
|
13
|
-
open: props.defaultOpen,
|
13
|
+
open: props.defaultOpen ?? props.open,
|
14
14
|
value: props.value ? colorPicker.parse(props.value) : undefined,
|
15
15
|
getRootNode: environment?.getRootNode,
|
16
16
|
'open.controlled': props.open != null,
|
@@ -16,7 +16,7 @@ export function createCombobox(props) {
|
|
16
16
|
...props,
|
17
17
|
id: props.id ?? createUniqueId(),
|
18
18
|
dir: locale?.dir,
|
19
|
-
open: props.defaultOpen,
|
19
|
+
open: props.defaultOpen ?? props.open,
|
20
20
|
getRootNode: environment?.getRootNode,
|
21
21
|
'open.controlled': props.open != null,
|
22
22
|
collection,
|
@@ -14,7 +14,7 @@ export function createDatePicker(props) {
|
|
14
14
|
max: props.max ? datePicker.parse(props.max) : undefined,
|
15
15
|
value: props.value ? datePicker.parse(props.value) : undefined,
|
16
16
|
focusedValue: props.focusedValue ? datePicker.parse(props.focusedValue) : undefined,
|
17
|
-
open: props.defaultOpen,
|
17
|
+
open: props.defaultOpen ?? props.open,
|
18
18
|
'open.controlled': props.open != null,
|
19
19
|
locale: props.locale ?? locale?.locale,
|
20
20
|
getRootNode: environment?.getRootNode,
|
@@ -10,7 +10,7 @@ export function createDialog(props) {
|
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
12
|
dir: locale?.dir,
|
13
|
-
open: props.defaultOpen,
|
13
|
+
open: props.defaultOpen ?? props.open,
|
14
14
|
getRootNode: environment?.getRootNode,
|
15
15
|
'open.controlled': props.open != null,
|
16
16
|
}));
|
@@ -10,7 +10,7 @@ export function createEditable(props) {
|
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
12
|
dir: locale?.dir,
|
13
|
-
edit: props.defaultEdit,
|
13
|
+
edit: props.defaultEdit ?? props.edit,
|
14
14
|
getRootNode: environment?.getRootNode,
|
15
15
|
'edit.controlled': props.edit != null,
|
16
16
|
}));
|
@@ -10,7 +10,7 @@ export function createHoverCard(props) {
|
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
12
|
dir: locale?.dir,
|
13
|
-
open: props.defaultOpen,
|
13
|
+
open: props.defaultOpen ?? props.open,
|
14
14
|
getRootNode: environment?.getRootNode,
|
15
15
|
'open.controlled': props.open != null,
|
16
16
|
}));
|
@@ -10,7 +10,7 @@ export function createMenu(props) {
|
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
12
|
dir: locale?.dir,
|
13
|
-
open: props.defaultOpen,
|
13
|
+
open: props.defaultOpen ?? props.open,
|
14
14
|
getRootNode: environment?.getRootNode,
|
15
15
|
'open.controlled': props.open != null,
|
16
16
|
}));
|
@@ -10,7 +10,7 @@ export function createPopover(props) {
|
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
12
|
dir: locale?.dir,
|
13
|
-
open: props.defaultOpen,
|
13
|
+
open: props.defaultOpen ?? props.open,
|
14
14
|
getRootNode: environment?.getRootNode,
|
15
15
|
'open.controlled': props.open != null,
|
16
16
|
}));
|
@@ -16,7 +16,7 @@ export function createSelect(props) {
|
|
16
16
|
...props,
|
17
17
|
id: props.id ?? createUniqueId(),
|
18
18
|
dir: locale?.dir,
|
19
|
-
open: props.defaultOpen,
|
19
|
+
open: props.defaultOpen ?? props.open,
|
20
20
|
getRootNode: environment?.getRootNode,
|
21
21
|
collection,
|
22
22
|
'open.controlled': props.open != null,
|
@@ -10,7 +10,7 @@ export function createTimePicker(props) {
|
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
12
|
dir: locale?.dir,
|
13
|
-
open: props.defaultOpen,
|
13
|
+
open: props.defaultOpen ?? props.open,
|
14
14
|
locale: props.locale ?? locale?.locale,
|
15
15
|
getRootNode: environment?.getRootNode,
|
16
16
|
'open.controlled': props.defaultOpen != null,
|
@@ -10,7 +10,7 @@ export function createTooltip(props) {
|
|
10
10
|
...props,
|
11
11
|
id: props.id ?? createUniqueId(),
|
12
12
|
dir: locale?.dir,
|
13
|
-
open: props.defaultOpen,
|
13
|
+
open: props.defaultOpen ?? props.open,
|
14
14
|
getRootNode: environment?.getRootNode,
|
15
15
|
'open.controlled': props.open != null,
|
16
16
|
}));
|