@bagelink/vue 0.0.1010 → 0.0.1014

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/index.cjs CHANGED
@@ -73,7 +73,7 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
73
73
  setup(__props, { emit: __emit }) {
74
74
  const props2 = __props;
75
75
  const emit2 = __emit;
76
- let openVal = vue.ref(false);
76
+ let openVal = vue.ref(!!props2.open);
77
77
  let isOpen = vue.computed({
78
78
  get: () => openVal.value,
79
79
  set: (value) => {
@@ -81,13 +81,13 @@ const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
81
81
  emit2("update:open", value);
82
82
  }
83
83
  });
84
- const accordionState = vue.inject("accordionState", { openItem: void 0 });
84
+ const accordionState = vue.inject("accordionState");
85
85
  const id = props2.id || Math.random().toString(36).slice(7);
86
86
  const computedIcon = vue.computed(() => {
87
87
  return props2.iconType === "plus_minus" ? isOpen.value ? "remove" : "add" : "expand_more";
88
88
  });
89
89
  const iconPosition = vue.computed(() => props2.iconPosition || "end");
90
- vue.watch(() => props2.open, (val) => isOpen.value = !!val, { immediate: true });
90
+ vue.watch(() => props2.open, () => isOpen.value = props2.open, { immediate: true });
91
91
  if (accordionState) {
92
92
  vue.watch(
93
93
  () => accordionState.openItem,
@@ -157,7 +157,7 @@ const _export_sfc = (sfc, props2) => {
157
157
  }
158
158
  return target;
159
159
  };
160
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-3a286d21"]]);
160
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-1e73ca3e"]]);
161
161
  const _hoisted_1$P = { class: "relative" };
162
162
  const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
163
163
  __name: "AddressSearch",
package/dist/index.mjs CHANGED
@@ -71,7 +71,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
71
71
  setup(__props, { emit: __emit }) {
72
72
  const props2 = __props;
73
73
  const emit2 = __emit;
74
- let openVal = ref(false);
74
+ let openVal = ref(!!props2.open);
75
75
  let isOpen = computed({
76
76
  get: () => openVal.value,
77
77
  set: (value) => {
@@ -79,13 +79,13 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
79
79
  emit2("update:open", value);
80
80
  }
81
81
  });
82
- const accordionState = inject("accordionState", { openItem: void 0 });
82
+ const accordionState = inject("accordionState");
83
83
  const id = props2.id || Math.random().toString(36).slice(7);
84
84
  const computedIcon = computed(() => {
85
85
  return props2.iconType === "plus_minus" ? isOpen.value ? "remove" : "add" : "expand_more";
86
86
  });
87
87
  const iconPosition = computed(() => props2.iconPosition || "end");
88
- watch(() => props2.open, (val) => isOpen.value = !!val, { immediate: true });
88
+ watch(() => props2.open, () => isOpen.value = props2.open, { immediate: true });
89
89
  if (accordionState) {
90
90
  watch(
91
91
  () => accordionState.openItem,
@@ -155,7 +155,7 @@ const _export_sfc = (sfc, props2) => {
155
155
  }
156
156
  return target;
157
157
  };
158
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-3a286d21"]]);
158
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-1e73ca3e"]]);
159
159
  const _hoisted_1$P = { class: "relative" };
160
160
  const _sfc_main$10 = /* @__PURE__ */ defineComponent({
161
161
  __name: "AddressSearch",
package/dist/style.css CHANGED
@@ -1,14 +1,14 @@
1
1
  @import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100;200;300;400;500;600;700;800;900&display=swap');
2
- .accordion-item[data-v-3a286d21] {
2
+ .accordion-item[data-v-1e73ca3e] {
3
3
  border-bottom: 1px solid var(--border-color);
4
4
  transition: all 0.2s;
5
5
  cursor: pointer;
6
6
  overflow: hidden;
7
7
  }
8
- .accordion-item button[data-v-3a286d21] {
8
+ .accordion-item button[data-v-1e73ca3e] {
9
9
  cursor: pointer;
10
10
  }
11
- .accordion-head[data-v-3a286d21] {
11
+ .accordion-head[data-v-1e73ca3e] {
12
12
  height: var(--input-height);
13
13
  background: transparent;
14
14
  display: flex;
@@ -18,7 +18,7 @@
18
18
  border: none;
19
19
  color: inherit !important;
20
20
  }
21
- .accordion-icon[data-v-3a286d21] {
21
+ .accordion-icon[data-v-1e73ca3e] {
22
22
  transition: all 0.2s ease;
23
23
  display: flex;
24
24
  align-items: center;
@@ -28,16 +28,16 @@
28
28
  padding-inline: calc(var(--btn-padding) / 3);
29
29
  justify-content: center;
30
30
  }
31
- [aria-expanded="true"] .accordion-icon[data-v-3a286d21] {
31
+ [aria-expanded="true"] .accordion-icon[data-v-1e73ca3e] {
32
32
  transform: rotate(180deg);
33
33
  }
34
- .accordion-label[data-v-3a286d21] {
34
+ .accordion-label[data-v-1e73ca3e] {
35
35
  font-weight: bold;
36
36
  }
37
- .flat.accordion-item[data-v-3a286d21] {
37
+ .flat.accordion-item[data-v-1e73ca3e] {
38
38
  border-bottom: none
39
39
  }
40
- .accordion-head:hover .accordion-label[data-v-3a286d21] {
40
+ .accordion-head:hover .accordion-label[data-v-1e73ca3e] {
41
41
  text-decoration: underline;
42
42
  }
43
43
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.1010",
4
+ "version": "0.0.1014",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -14,7 +14,7 @@ const props = defineProps<{
14
14
 
15
15
  const emit = defineEmits(['update:open'])
16
16
 
17
- let openVal = $ref(false)
17
+ let openVal = $ref(!!props.open)
18
18
 
19
19
  let isOpen = $computed({
20
20
  get: () => openVal,
@@ -28,7 +28,7 @@ interface AccordionState {
28
28
  openItem?: string
29
29
  }
30
30
 
31
- const accordionState = inject<AccordionState>('accordionState', { openItem: undefined })
31
+ const accordionState = inject<AccordionState>('accordionState')
32
32
  const id = props.id || Math.random().toString(36).slice(7)
33
33
 
34
34
  const computedIcon = computed(() => {
@@ -38,7 +38,7 @@ const computedIcon = computed(() => {
38
38
  })
39
39
  const iconPosition = computed(() => props.iconPosition || 'end')
40
40
 
41
- watch(() => props.open, val => isOpen = !!val, { immediate: true })
41
+ watch(() => props.open, () => isOpen = props.open, { immediate: true })
42
42
 
43
43
  if (accordionState) {
44
44
  watch(