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 CHANGED
@@ -55,7 +55,7 @@ npm install ui-ingredients
55
55
  - 🟢 PinInput
56
56
  - 🟢 Popover
57
57
  - 🟢 Portal
58
- - 🟡 Presence
58
+ - Presence
59
59
  - 🟢 Progress
60
60
  - 🟢 QRCode
61
61
  - 🟢 RadioGroup
@@ -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
  }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui-ingredients",
3
3
  "type": "module",
4
- "version": "0.0.27",
4
+ "version": "0.0.28",
5
5
  "packageManager": "pnpm@9.7.0",
6
6
  "svelte": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",