bitboss-ui 1.0.6 → 1.0.8

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.
Files changed (143) hide show
  1. package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +2 -2
  2. package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +3 -3
  3. package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +3 -3
  4. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +3 -3
  5. package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +3 -3
  6. package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +3 -3
  7. package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +3 -3
  8. package/dist/components/BbTable/types.d.ts +1 -1
  9. package/dist/index102.js +2 -2
  10. package/dist/index104.js +2 -2
  11. package/dist/index110.js +1 -1
  12. package/dist/index112.js +4 -4
  13. package/dist/index114.js +1 -1
  14. package/dist/index118.js +1 -1
  15. package/dist/index119.js +1 -1
  16. package/dist/index12.js +7 -7
  17. package/dist/index12.js.map +1 -1
  18. package/dist/index120.js +1 -1
  19. package/dist/index126.js +1 -1
  20. package/dist/index127.js +1 -1
  21. package/dist/index128.js +1 -1
  22. package/dist/index132.js +2 -2
  23. package/dist/index16.js +8 -8
  24. package/dist/index18.js +10 -10
  25. package/dist/index198.js +112 -226
  26. package/dist/index198.js.map +1 -1
  27. package/dist/index199.js +134 -2
  28. package/dist/index199.js.map +1 -1
  29. package/dist/index20.js +2 -2
  30. package/dist/index200.js +5 -2
  31. package/dist/index200.js.map +1 -1
  32. package/dist/index201.js +19 -2
  33. package/dist/index201.js.map +1 -1
  34. package/dist/index202.js +2 -10
  35. package/dist/index202.js.map +1 -1
  36. package/dist/index203.js +2 -3
  37. package/dist/index203.js.map +1 -1
  38. package/dist/index204.js +2 -2
  39. package/dist/index205.js +174 -6
  40. package/dist/index205.js.map +1 -1
  41. package/dist/index206.js +6 -121
  42. package/dist/index206.js.map +1 -1
  43. package/dist/index207.js +365 -131
  44. package/dist/index207.js.map +1 -1
  45. package/dist/index208.js +373 -5
  46. package/dist/index208.js.map +1 -1
  47. package/dist/index209.js +3 -19
  48. package/dist/index209.js.map +1 -1
  49. package/dist/index210.js +2 -2
  50. package/dist/index210.js.map +1 -1
  51. package/dist/index211.js +4 -174
  52. package/dist/index211.js.map +1 -1
  53. package/dist/index212.js +3 -368
  54. package/dist/index212.js.map +1 -1
  55. package/dist/index213.js +3 -373
  56. package/dist/index213.js.map +1 -1
  57. package/dist/index214.js +16 -3
  58. package/dist/index214.js.map +1 -1
  59. package/dist/index215.js +16 -3
  60. package/dist/index215.js.map +1 -1
  61. package/dist/index216.js +17 -13
  62. package/dist/index216.js.map +1 -1
  63. package/dist/index217.js +26 -13
  64. package/dist/index217.js.map +1 -1
  65. package/dist/index218.js +8 -20
  66. package/dist/index218.js.map +1 -1
  67. package/dist/index219.js +2 -29
  68. package/dist/index219.js.map +1 -1
  69. package/dist/index22.js +3 -3
  70. package/dist/index22.js.map +1 -1
  71. package/dist/index220.js +2 -8
  72. package/dist/index220.js.map +1 -1
  73. package/dist/index221.js +10 -4
  74. package/dist/index221.js.map +1 -1
  75. package/dist/index222.js +235 -2
  76. package/dist/index222.js.map +1 -1
  77. package/dist/index225.js +6 -6
  78. package/dist/index225.js.map +1 -1
  79. package/dist/index226.js +2 -17
  80. package/dist/index226.js.map +1 -1
  81. package/dist/index227.js +294 -78
  82. package/dist/index227.js.map +1 -1
  83. package/dist/index228.js +2 -164
  84. package/dist/index228.js.map +1 -1
  85. package/dist/index229.js +4 -1
  86. package/dist/index229.js.map +1 -1
  87. package/dist/index230.js +106 -2
  88. package/dist/index230.js.map +1 -1
  89. package/dist/index231.js +435 -5
  90. package/dist/index231.js.map +1 -1
  91. package/dist/index232.js +88 -68
  92. package/dist/index232.js.map +1 -1
  93. package/dist/index233.js +117 -2
  94. package/dist/index233.js.map +1 -1
  95. package/dist/index234.js +189 -424
  96. package/dist/index234.js.map +1 -1
  97. package/dist/index235.js +3 -88
  98. package/dist/index235.js.map +1 -1
  99. package/dist/index236.js +223 -5
  100. package/dist/index236.js.map +1 -1
  101. package/dist/index237.js +258 -2
  102. package/dist/index237.js.map +1 -1
  103. package/dist/index238.js +2 -295
  104. package/dist/index238.js.map +1 -1
  105. package/dist/index239.js +2 -2
  106. package/dist/index241.js +2 -106
  107. package/dist/index241.js.map +1 -1
  108. package/dist/index242.js +6 -224
  109. package/dist/index242.js.map +1 -1
  110. package/dist/index243.js +17 -258
  111. package/dist/index243.js.map +1 -1
  112. package/dist/index244.js +79 -2
  113. package/dist/index244.js.map +1 -1
  114. package/dist/index245.js +5 -2
  115. package/dist/index245.js.map +1 -1
  116. package/dist/index246.js +164 -2
  117. package/dist/index246.js.map +1 -1
  118. package/dist/index247.js +1 -4
  119. package/dist/index247.js.map +1 -1
  120. package/dist/index248.js +2 -4
  121. package/dist/index248.js.map +1 -1
  122. package/dist/index249.js +68 -199
  123. package/dist/index249.js.map +1 -1
  124. package/dist/index250.js +11 -113
  125. package/dist/index250.js.map +1 -1
  126. package/dist/index251.js +2 -15
  127. package/dist/index251.js.map +1 -1
  128. package/dist/index255.js +2 -2
  129. package/dist/index256.js +1 -1
  130. package/dist/index26.js +2 -2
  131. package/dist/index30.js +3 -3
  132. package/dist/index32.js +7 -7
  133. package/dist/index34.js +2 -2
  134. package/dist/index36.js +2 -2
  135. package/dist/index48.js +1 -1
  136. package/dist/index50.js +1 -1
  137. package/dist/index66.js +3 -3
  138. package/dist/index70.js +2 -2
  139. package/dist/index73.js +1 -1
  140. package/dist/index78.js +1 -1
  141. package/dist/index80.js +3 -3
  142. package/dist/style.css +1 -1
  143. package/package.json +2 -1
@@ -73,10 +73,10 @@ export type BaseCheckboxEvents = {
73
73
  };
74
74
  export type SlotAttributes = {
75
75
  checked: boolean;
76
- disabled: Exclude<BaseCheckboxProps['disabled'], undefined>;
76
+ disabled: boolean;
77
77
  falseValue: any;
78
78
  focused: boolean;
79
- hasErrors: Exclude<BaseCheckboxProps['hasErrors'], undefined>;
79
+ hasErrors: boolean;
80
80
  id: BaseCheckboxProps['id'];
81
81
  name: BaseCheckboxProps['name'];
82
82
  parsedValue: any;
@@ -122,9 +122,9 @@ declare const _default: <T = any>(__VLS_props: {
122
122
  autofocus?: (boolean | "true" | "false") | undefined;
123
123
  id?: string | undefined;
124
124
  readonly?: (boolean | "true" | "false") | undefined;
125
- hasErrors?: boolean | undefined;
126
125
  ariaDescribedby?: string | undefined;
127
126
  color?: string | undefined;
127
+ hasErrors?: boolean | undefined;
128
128
  modelValue: any[];
129
129
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
130
130
  matchStrategy?: "string" | "equality" | undefined;
@@ -215,9 +215,9 @@ declare const _default: <T = any>(__VLS_props: {
215
215
  autofocus?: (boolean | "true" | "false") | undefined;
216
216
  id?: string | undefined;
217
217
  readonly?: (boolean | "true" | "false") | undefined;
218
- hasErrors?: boolean | undefined;
219
218
  ariaDescribedby?: string | undefined;
220
219
  color?: string | undefined;
220
+ hasErrors?: boolean | undefined;
221
221
  modelValue: any[];
222
222
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
223
223
  matchStrategy?: "string" | "equality" | undefined;
@@ -312,9 +312,9 @@ declare const _default: <T = any>(__VLS_props: {
312
312
  autofocus?: (boolean | "true" | "false") | undefined;
313
313
  id?: string | undefined;
314
314
  readonly?: (boolean | "true" | "false") | undefined;
315
- hasErrors?: boolean | undefined;
316
315
  ariaDescribedby?: string | undefined;
317
316
  color?: string | undefined;
317
+ hasErrors?: boolean | undefined;
318
318
  modelValue: any[];
319
319
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
320
320
  matchStrategy?: "string" | "equality" | undefined;
@@ -122,9 +122,9 @@ declare const _default: <T = any>(__VLS_props: {
122
122
  autofocus?: (boolean | "true" | "false") | undefined;
123
123
  id?: string | undefined;
124
124
  readonly?: (boolean | "true" | "false") | undefined;
125
- hasErrors?: boolean | undefined;
126
125
  ariaDescribedby?: string | undefined;
127
126
  color?: string | undefined;
127
+ hasErrors?: boolean | undefined;
128
128
  modelValue: any;
129
129
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
130
130
  matchStrategy?: "string" | "equality" | undefined;
@@ -215,9 +215,9 @@ declare const _default: <T = any>(__VLS_props: {
215
215
  autofocus?: (boolean | "true" | "false") | undefined;
216
216
  id?: string | undefined;
217
217
  readonly?: (boolean | "true" | "false") | undefined;
218
- hasErrors?: boolean | undefined;
219
218
  ariaDescribedby?: string | undefined;
220
219
  color?: string | undefined;
220
+ hasErrors?: boolean | undefined;
221
221
  modelValue: any;
222
222
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
223
223
  matchStrategy?: "string" | "equality" | undefined;
@@ -312,9 +312,9 @@ declare const _default: <T = any>(__VLS_props: {
312
312
  autofocus?: (boolean | "true" | "false") | undefined;
313
313
  id?: string | undefined;
314
314
  readonly?: (boolean | "true" | "false") | undefined;
315
- hasErrors?: boolean | undefined;
316
315
  ariaDescribedby?: string | undefined;
317
316
  color?: string | undefined;
317
+ hasErrors?: boolean | undefined;
318
318
  modelValue: any;
319
319
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
320
320
  matchStrategy?: "string" | "equality" | undefined;
@@ -16,9 +16,9 @@ declare const _default: <T = any>(__VLS_props: {
16
16
  autofocus?: (boolean | "true" | "false") | undefined;
17
17
  id?: string | undefined;
18
18
  readonly?: (boolean | "true" | "false") | undefined;
19
- hasErrors?: boolean | undefined;
20
19
  ariaDescribedby?: string | undefined;
21
20
  color?: string | undefined;
21
+ hasErrors?: boolean | undefined;
22
22
  modelValue: any[];
23
23
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
24
24
  matchStrategy?: "string" | "equality" | undefined;
@@ -109,9 +109,9 @@ declare const _default: <T = any>(__VLS_props: {
109
109
  autofocus?: (boolean | "true" | "false") | undefined;
110
110
  id?: string | undefined;
111
111
  readonly?: (boolean | "true" | "false") | undefined;
112
- hasErrors?: boolean | undefined;
113
112
  ariaDescribedby?: string | undefined;
114
113
  color?: string | undefined;
114
+ hasErrors?: boolean | undefined;
115
115
  modelValue: any[];
116
116
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
117
117
  matchStrategy?: "string" | "equality" | undefined;
@@ -206,9 +206,9 @@ declare const _default: <T = any>(__VLS_props: {
206
206
  autofocus?: (boolean | "true" | "false") | undefined;
207
207
  id?: string | undefined;
208
208
  readonly?: (boolean | "true" | "false") | undefined;
209
- hasErrors?: boolean | undefined;
210
209
  ariaDescribedby?: string | undefined;
211
210
  color?: string | undefined;
211
+ hasErrors?: boolean | undefined;
212
212
  modelValue: any[];
213
213
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
214
214
  matchStrategy?: "string" | "equality" | undefined;
@@ -133,8 +133,8 @@ declare const _default: <T = any>(__VLS_props: {
133
133
  autofocus?: (boolean | "true" | "false") | undefined;
134
134
  id?: string | undefined;
135
135
  readonly?: (boolean | "true" | "false") | undefined;
136
- hasErrors?: boolean | undefined;
137
136
  color?: string | undefined;
137
+ hasErrors?: boolean | undefined;
138
138
  modelValue: any[];
139
139
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
140
140
  legend: string;
@@ -239,8 +239,8 @@ declare const _default: <T = any>(__VLS_props: {
239
239
  autofocus?: (boolean | "true" | "false") | undefined;
240
240
  id?: string | undefined;
241
241
  readonly?: (boolean | "true" | "false") | undefined;
242
- hasErrors?: boolean | undefined;
243
242
  color?: string | undefined;
243
+ hasErrors?: boolean | undefined;
244
244
  modelValue: any[];
245
245
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
246
246
  legend: string;
@@ -349,8 +349,8 @@ declare const _default: <T = any>(__VLS_props: {
349
349
  autofocus?: (boolean | "true" | "false") | undefined;
350
350
  id?: string | undefined;
351
351
  readonly?: (boolean | "true" | "false") | undefined;
352
- hasErrors?: boolean | undefined;
353
352
  color?: string | undefined;
353
+ hasErrors?: boolean | undefined;
354
354
  modelValue: any[];
355
355
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
356
356
  legend: string;
@@ -133,8 +133,8 @@ declare const _default: <T = any>(__VLS_props: {
133
133
  autofocus?: (boolean | "true" | "false") | undefined;
134
134
  id?: string | undefined;
135
135
  readonly?: (boolean | "true" | "false") | undefined;
136
- hasErrors?: boolean | undefined;
137
136
  color?: string | undefined;
137
+ hasErrors?: boolean | undefined;
138
138
  modelValue: any;
139
139
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
140
140
  legend: string;
@@ -239,8 +239,8 @@ declare const _default: <T = any>(__VLS_props: {
239
239
  autofocus?: (boolean | "true" | "false") | undefined;
240
240
  id?: string | undefined;
241
241
  readonly?: (boolean | "true" | "false") | undefined;
242
- hasErrors?: boolean | undefined;
243
242
  color?: string | undefined;
243
+ hasErrors?: boolean | undefined;
244
244
  modelValue: any;
245
245
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
246
246
  legend: string;
@@ -349,8 +349,8 @@ declare const _default: <T = any>(__VLS_props: {
349
349
  autofocus?: (boolean | "true" | "false") | undefined;
350
350
  id?: string | undefined;
351
351
  readonly?: (boolean | "true" | "false") | undefined;
352
- hasErrors?: boolean | undefined;
353
352
  color?: string | undefined;
353
+ hasErrors?: boolean | undefined;
354
354
  modelValue: any;
355
355
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
356
356
  legend: string;
@@ -17,8 +17,8 @@ declare const _default: <T = any>(__VLS_props: {
17
17
  autofocus?: (boolean | "true" | "false") | undefined;
18
18
  id?: string | undefined;
19
19
  readonly?: (boolean | "true" | "false") | undefined;
20
- hasErrors?: boolean | undefined;
21
20
  color?: string | undefined;
21
+ hasErrors?: boolean | undefined;
22
22
  modelValue: any[];
23
23
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
24
24
  legend: string;
@@ -123,8 +123,8 @@ declare const _default: <T = any>(__VLS_props: {
123
123
  autofocus?: (boolean | "true" | "false") | undefined;
124
124
  id?: string | undefined;
125
125
  readonly?: (boolean | "true" | "false") | undefined;
126
- hasErrors?: boolean | undefined;
127
126
  color?: string | undefined;
127
+ hasErrors?: boolean | undefined;
128
128
  modelValue: any[];
129
129
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
130
130
  legend: string;
@@ -233,8 +233,8 @@ declare const _default: <T = any>(__VLS_props: {
233
233
  autofocus?: (boolean | "true" | "false") | undefined;
234
234
  id?: string | undefined;
235
235
  readonly?: (boolean | "true" | "false") | undefined;
236
- hasErrors?: boolean | undefined;
237
236
  color?: string | undefined;
237
+ hasErrors?: boolean | undefined;
238
238
  modelValue: any[];
239
239
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
240
240
  legend: string;
@@ -182,7 +182,7 @@ export type BbTableProps = {
182
182
  /**
183
183
  * We allow table data classes to be a function so it can depend on the item
184
184
  */
185
- export type ColumnClasses = Classes | (<T>(content: any, key: string, item: T) => Classes);
185
+ export type ColumnClasses = Classes | ((content: any, key: string, item: any) => Classes);
186
186
  /**
187
187
  * Projection that represents a row of cells with flags
188
188
  * linked to the state of the item
package/dist/index102.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as de, ref as O, computed as p, onMounted as be, watch as q, openBlock as n, createBlock as re, resolveDynamicComponent as ue, normalizeClass as f, withCtx as pe, createElementBlock as d, toDisplayString as m, createCommentVNode as v, createElementVNode as o, renderSlot as y, createVNode as J, unref as C, Fragment as N, renderList as T, createTextVNode as fe, mergeProps as me } from "vue";
2
- import { add as ye } from "./index230.js";
2
+ import { add as ye } from "./index248.js";
3
3
  import { clamp as he } from "./index197.js";
4
4
  import { deepEqual as G } from "./index124.js";
5
5
  import { isNil as j } from "./index121.js";
6
6
  import { isNotNil as _e } from "./index125.js";
7
7
  import { useId as ke } from "./index8.js";
8
8
  import { useItemValue as ge } from "./index127.js";
9
- import { when as ve } from "./index221.js";
9
+ import { when as ve } from "./index211.js";
10
10
  import K from "./index12.js";
11
11
  import "./index13.js";
12
12
  import Ce from "./index26.js";
package/dist/index104.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as y, ref as f, computed as B, openBlock as k, createBlock as g, withCtx as l, renderSlot as r, normalizeProps as i, guardReactiveProps as n, createVNode as w, mergeProps as V } from "vue";
2
2
  import $ from "./index22.js";
3
3
  import "./index23.js";
4
- import P from "./index228.js";
5
- import "./index229.js";
4
+ import P from "./index246.js";
5
+ import "./index247.js";
6
6
  const z = /* @__PURE__ */ y({
7
7
  __name: "BbTag",
8
8
  props: {
package/dist/index110.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as d, Fragment as f, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index6.js";
3
- import B from "./index232.js";
3
+ import B from "./index249.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index112.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as A, ref as o, computed as E, openBlock as b, createElementBlock as $, mergeProps as D, createElementVNode as i, renderSlot as L, normalizeProps as H, guardReactiveProps as I, unref as s, createBlock as M, Teleport as R, normalizeClass as U, normalizeStyle as j, withCtx as q, createCommentVNode as O } from "vue";
2
- import { useFloating as G, arrow as J } from "./index206.js";
2
+ import { useFloating as G, arrow as J } from "./index198.js";
3
3
  import { useId as K } from "./index8.js";
4
4
  import { wait as P } from "./index123.js";
5
5
  import Q from "./index10.js";
6
6
  import "./index11.js";
7
- import { throttle as v } from "./index203.js";
8
- import { waitFor as W } from "./index205.js";
9
- import { autoUpdate as X, flip as Y, shift as Z } from "./index212.js";
7
+ import { throttle as v } from "./index209.js";
8
+ import { waitFor as W } from "./index206.js";
9
+ import { autoUpdate as X, flip as Y, shift as Z } from "./index207.js";
10
10
  const ee = { class: "bb-tooltip__bubble" }, te = /* @__PURE__ */ i("svg", {
11
11
  fill: "none",
12
12
  viewBox: "0 0 24 24",
package/dist/index114.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as v, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as p, createVNode as k, createSlots as B, withCtx as C, normalizeProps as T, guardReactiveProps as _ } from "vue";
2
- import { flattenTree as P } from "./index231.js";
2
+ import { flattenTree as P } from "./index245.js";
3
3
  const w = { class: "bb-tree-row" }, z = { class: "bb-tree-main-content" }, I = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index118.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
2
- import { isCssColor as z } from "./index201.js";
2
+ import { isCssColor as z } from "./index210.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index119.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index203.js";
2
+ import { throttle as g } from "./index209.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index12.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, ref as p, computed as n, watch as E, openBlock as u, createElementBlock as c, normalizeClass as I, normalizeProps as h, mergeProps as i, createCommentVNode as F, createElementVNode as d, renderSlot as N, guardReactiveProps as A } from "vue";
2
- import { isCssColor as f } from "./index201.js";
3
- import { when as L } from "./index221.js";
1
+ import { defineComponent as B, ref as p, computed as n, watch as E, openBlock as u, createElementBlock as c, normalizeClass as I, normalizeProps as h, mergeProps as i, createCommentVNode as F, createElementVNode as d, renderSlot as N, guardReactiveProps as A } from "vue";
2
+ import { isCssColor as f } from "./index210.js";
3
+ import { when as L } from "./index211.js";
4
4
  const M = {
5
5
  "aria-hidden": "true",
6
6
  class: "bb-base-checkbox-container"
@@ -11,7 +11,7 @@ const M = {
11
11
  "stroke-width": "14px"
12
12
  }, null, -1), J = [
13
13
  S
14
- ], $ = /* @__PURE__ */ C({
14
+ ], $ = /* @__PURE__ */ B({
15
15
  __name: "BaseCheckbox",
16
16
  props: {
17
17
  ariaDescribedby: {},
@@ -56,8 +56,8 @@ const M = {
56
56
  },
57
57
  onChange: (o) => {
58
58
  if (o.target instanceof HTMLInputElement) {
59
- let B = o.target.checked ? e.trueValue : e.falseValue;
60
- t("change", o), t("update:modelValue", B);
59
+ let C = o.target.checked ? e.trueValue : e.falseValue;
60
+ t("change", o), t("update:modelValue", C);
61
61
  }
62
62
  },
63
63
  onClick: (o) => t("click", o),
@@ -97,7 +97,7 @@ const M = {
97
97
  value: s.value ? e.trueValue : e.falseValue
98
98
  })), g = n(() => {
99
99
  let a = {};
100
- return e.color && f(e.color) && (a.color = e.color), {
100
+ return e.color && f(e.color) && (a.backgroundColor = e.color), {
101
101
  class: "bb-base-checkbox-container__icon",
102
102
  style: a
103
103
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index12.js","sources":["../src/components/BaseCheckbox/BaseCheckbox.vue"],"sourcesContent":["<template>\n\t<span :class=\"classes\">\n\t\t<input v-if=\"!checked && submitWhenFalse\" v-bind=\"hiddenInputAttributes\" />\n\t\t<input v-bind=\"inputAttributes\" ref=\"checkboxInput\" />\n\t\t<span aria-hidden=\"true\" class=\"bb-base-checkbox-container\">\n\t\t\t<slot name=\"icon\" v-bind=\"slotAttributes\">\n\t\t\t\t<svg viewBox=\"276.411 158.834 114.971 114.97\" v-bind=\"iconAttributes\">\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M 297.574 224.786 L 318.309 243.134 L 371.568 189.232\"\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\tstroke-width=\"14px\"\n\t\t\t\t\t></path>\n\t\t\t\t</svg>\n\t\t\t</slot>\n\t\t</span>\n\t</span>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue';\nimport { isCssColor } from '@/utilities/functions/isCssColor';\nimport { when } from '@/utilities/functions/when';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BaseCheckboxProps = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tariaDescribedby?: InputHTMLAttributes['aria-describedby'];\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Defines the input as checked\n\t */\n\tchecked?: InputHTMLAttributes['checked'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Value of the input when unchecked. It handles any kind of serializable object.\n\t */\n\tfalseValue?: any;\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Sets the input in an indeterminate state.\n\t */\n\tindeterminate?: InputHTMLAttributes['indeterminate'];\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Will submit \"falseValue\" if the input is not checked. Otherwise \"trueValue\" will be submitted.\n\t */\n\tsubmitWhenFalse?: boolean;\n\n\t/**\n\t * Value of the input when checked. It handles any kind of serializable object.\n\t */\n\ttrueValue?: any;\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue?: any;\n};\n\nexport type BaseCheckboxEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\t(e: 'change', event: Event): void;\n\t(e: 'click', event: MouseEvent): void;\n\t(e: 'focus', event: FocusEvent): void;\n\t(e: 'input', event: Event): void;\n\t(e: 'keydown', event: KeyboardEvent): void;\n\t(e: 'mousedown', event: MouseEvent): void;\n\t(e: 'mouseup', event: MouseEvent): void;\n\t(e: 'update:modelValue', value: any): void;\n};\n\nexport type SlotAttributes = {\n\tchecked: boolean;\n\tdisabled: Exclude<BaseCheckboxProps['disabled'], undefined>;\n\tfalseValue: any;\n\tfocused: boolean;\n\thasErrors: Exclude<BaseCheckboxProps['hasErrors'], undefined>;\n\tid: BaseCheckboxProps['id'];\n\tname: BaseCheckboxProps['name'];\n\tparsedValue: any;\n\treadonly: BaseCheckboxProps['readonly'];\n\ttrueValue: any;\n\tvalue: any;\n};\n\nconst props = withDefaults(defineProps<BaseCheckboxProps>(), {\n\ttrueValue: true,\n\tfalseValue: false,\n});\n\nconst emit = defineEmits<BaseCheckboxEvents>();\n\ndefineSlots<{\n\ticon?: (props: SlotAttributes) => any;\n}>();\n\nconst checkboxInput = ref<HTMLInputElement | null>(null);\n\nconst checked = computed(() => {\n\tif (props.checked) return true;\n\treturn JSON.stringify(props.trueValue) === JSON.stringify(props.modelValue);\n});\nconst hasFocus = ref(false);\n\nconst classes = computed(() => {\n\treturn {\n\t\t'bb-base-checkbox': true,\n\t\t'bb-base-checkbox--disabled': props.disabled,\n\t\t'bb-base-checkbox--errors': props.hasErrors,\n\t\t'bb-base-checkbox--indeterminate': props.indeterminate,\n\t\t'bb-base-checkbox--readonly': props.readonly,\n\t\t[`bb-base-checkbox--${props.color}`]:\n\t\t\tprops.color && !isCssColor(props.color),\n\t};\n});\n\n/**\n * This is used to keep the value compatible to common html expected values.\n * Convert to string everything that's not but do not double encode strings\n */\nconst makeInputValue = when(\n\t(item: unknown) => typeof item !== 'string',\n\tJSON.stringify\n);\n\nconst hiddenInputAttributes = computed(() => {\n\tconst value = makeInputValue(props.falseValue);\n\treturn {\n\t\tdisabled: props.disabled,\n\t\tname: props.name,\n\t\ttype: 'hidden',\n\t\tvalue: value,\n\t};\n});\n\nconst inputAttributes = computed(() => {\n\tconst value = makeInputValue(props.trueValue);\n\n\tconst onBlur = (event: FocusEvent): void => {\n\t\thasFocus.value = false;\n\t\temit('blur', event);\n\t};\n\n\tconst onChange = (event: Event): void => {\n\t\tif (event.target instanceof HTMLInputElement) {\n\t\t\tlet value = event.target.checked ? props.trueValue : props.falseValue;\n\n\t\t\temit('change', event);\n\t\t\temit('update:modelValue', value);\n\t\t}\n\t};\n\n\tconst onFocus = (event: FocusEvent): void => {\n\t\thasFocus.value = true;\n\t\temit('focus', event);\n\t};\n\n\tconst eventListeners = {\n\t\tonBlur,\n\t\tonChange,\n\t\tonClick: (event: MouseEvent) => emit('click', event),\n\t\tonFocus,\n\t\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\t\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\t\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n\t\tonInput: (event: Event) => emit('input', event),\n\t};\n\n\treturn {\n\t\t'aria-describedby': props.ariaDescribedby,\n\t\tautofocus: props.autofocus,\n\t\tchecked: checked.value,\n\t\t// There is no such thing as readonly checkbox so we disable and style it with css\n\t\tdisabled: props.disabled || props.readonly,\n\t\tid: props.id,\n\t\tindeterminate: props.indeterminate,\n\t\tname: props.name,\n\t\ttabindex: props.disabled ? -1 : undefined,\n\t\ttype: 'checkbox',\n\t\tvalue: value,\n\t\t...eventListeners,\n\t};\n});\n\nconst slotAttributes = computed(() => ({\n\tchecked: checked.value,\n\tdisabled: props.disabled,\n\tfalseValue: props.falseValue,\n\tfocused: hasFocus.value,\n\thasErrors: props.hasErrors,\n\tid: props.id,\n\tname: props.name,\n\tparsedValue: inputAttributes.value.value,\n\treadonly: props.readonly,\n\ttrueValue: props.trueValue,\n\tvalue: checked.value ? props.trueValue : props.falseValue,\n}));\n\nconst iconAttributes = computed(() => {\n\tlet style: { [key: string]: string } = {};\n\tif (props.color && isCssColor(props.color)) {\n\t\tstyle.color = props.color;\n\t}\n\treturn {\n\t\tclass: 'bb-base-checkbox-container__icon',\n\t\tstyle,\n\t};\n});\n\n/**\n * Indeterminate is a very volatile prop that is reset upon clicking,\n * this keeps the state and the prop aligned\n */\nwatch(\n\t() => [props.modelValue, props.checked, props.indeterminate],\n\t() => {\n\t\tif (checkboxInput.value) {\n\t\t\tcheckboxInput.value.indeterminate = !!props.indeterminate;\n\t\t}\n\t}\n);\n</script>\n<style lang=\"postcss\">\n@import '@/assets/css/BaseCheckbox';\n</style>\n"],"names":["props","__props","emit","__emit","checkboxInput","ref","checked","computed","hasFocus","classes","isCssColor","makeInputValue","when","item","hiddenInputAttributes","value","inputAttributes","eventListeners","event","slotAttributes","iconAttributes","style","watch"],"mappings":"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"}
1
+ {"version":3,"file":"index12.js","sources":["../src/components/BaseCheckbox/BaseCheckbox.vue"],"sourcesContent":["<template>\n\t<span :class=\"classes\">\n\t\t<input v-if=\"!checked && submitWhenFalse\" v-bind=\"hiddenInputAttributes\" />\n\t\t<input v-bind=\"inputAttributes\" ref=\"checkboxInput\" />\n\t\t<span aria-hidden=\"true\" class=\"bb-base-checkbox-container\">\n\t\t\t<slot name=\"icon\" v-bind=\"slotAttributes\">\n\t\t\t\t<svg viewBox=\"276.411 158.834 114.971 114.97\" v-bind=\"iconAttributes\">\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M 297.574 224.786 L 318.309 243.134 L 371.568 189.232\"\n\t\t\t\t\t\tfill=\"none\"\n\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\tstroke-width=\"14px\"\n\t\t\t\t\t></path>\n\t\t\t\t</svg>\n\t\t\t</slot>\n\t\t</span>\n\t</span>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref, watch } from 'vue';\nimport { isCssColor } from '@/utilities/functions/isCssColor';\nimport { when } from '@/utilities/functions/when';\nimport type { HTMLAttributes, InputHTMLAttributes } from 'vue';\n\nexport type BaseCheckboxProps = {\n\t/**\n\t * Guides to the browser as to the type of information expected in the field.\n\t */\n\tariaDescribedby?: InputHTMLAttributes['aria-describedby'];\n\t/**\n\t * Sets autofocus on page load.\n\t */\n\tautofocus?: InputHTMLAttributes['autofocus'];\n\n\t/**\n\t * Defines the input as checked\n\t */\n\tchecked?: InputHTMLAttributes['checked'];\n\n\t/**\n\t * Define a color for the component.\n\t *\n\t * Either a custom color or a coded color in common HEX, RGB, etc... format.\n\t */\n\tcolor?: string;\n\n\t/**\n\t * Disables the component\n\t */\n\tdisabled?: boolean;\n\n\t/**\n\t * Value of the input when unchecked. It handles any kind of serializable object.\n\t */\n\tfalseValue?: any;\n\n\t/**\n\t * Define if the component should be in an error state.\n\t * It usually attaches a CSS class for styling purposes.\n\t */\n\thasErrors?: boolean;\n\n\t/**\n\t * The identifier of the component.\n\t */\n\tid?: HTMLAttributes['id'];\n\n\t/**\n\t * Sets the input in an indeterminate state.\n\t */\n\tindeterminate?: InputHTMLAttributes['indeterminate'];\n\n\t/**\n\t * Defines the name of the input.\n\t */\n\tname?: InputHTMLAttributes['name'];\n\n\t/**\n\t * Sets the input in a readonly state.\n\t */\n\treadonly?: InputHTMLAttributes['readonly'];\n\n\t/**\n\t * Will submit \"falseValue\" if the input is not checked. Otherwise \"trueValue\" will be submitted.\n\t */\n\tsubmitWhenFalse?: boolean;\n\n\t/**\n\t * Value of the input when checked. It handles any kind of serializable object.\n\t */\n\ttrueValue?: any;\n\t/**\n\t * Used by v-model. Can be any serializable type.\n\t */\n\tmodelValue?: any;\n};\n\nexport type BaseCheckboxEvents = {\n\t(e: 'blur', event: FocusEvent): void;\n\t(e: 'change', event: Event): void;\n\t(e: 'click', event: MouseEvent): void;\n\t(e: 'focus', event: FocusEvent): void;\n\t(e: 'input', event: Event): void;\n\t(e: 'keydown', event: KeyboardEvent): void;\n\t(e: 'mousedown', event: MouseEvent): void;\n\t(e: 'mouseup', event: MouseEvent): void;\n\t(e: 'update:modelValue', value: any): void;\n};\n\nexport type SlotAttributes = {\n\tchecked: boolean;\n\tdisabled: boolean;\n\tfalseValue: any;\n\tfocused: boolean;\n\thasErrors: boolean;\n\tid: BaseCheckboxProps['id'];\n\tname: BaseCheckboxProps['name'];\n\tparsedValue: any;\n\treadonly: BaseCheckboxProps['readonly'];\n\ttrueValue: any;\n\tvalue: any;\n};\n\nconst props = withDefaults(defineProps<BaseCheckboxProps>(), {\n\ttrueValue: true,\n\tfalseValue: false,\n});\n\nconst emit = defineEmits<BaseCheckboxEvents>();\n\ndefineSlots<{\n\ticon?: (props: SlotAttributes) => any;\n}>();\n\nconst checkboxInput = ref<HTMLInputElement | null>(null);\n\nconst checked = computed(() => {\n\tif (props.checked) return true;\n\treturn JSON.stringify(props.trueValue) === JSON.stringify(props.modelValue);\n});\nconst hasFocus = ref(false);\n\nconst classes = computed(() => {\n\treturn {\n\t\t'bb-base-checkbox': true,\n\t\t'bb-base-checkbox--disabled': props.disabled,\n\t\t'bb-base-checkbox--errors': props.hasErrors,\n\t\t'bb-base-checkbox--indeterminate': props.indeterminate,\n\t\t'bb-base-checkbox--readonly': props.readonly,\n\t\t[`bb-base-checkbox--${props.color}`]:\n\t\t\tprops.color && !isCssColor(props.color),\n\t};\n});\n\n/**\n * This is used to keep the value compatible to common html expected values.\n * Convert to string everything that's not but do not double encode strings\n */\nconst makeInputValue = when(\n\t(item: unknown) => typeof item !== 'string',\n\tJSON.stringify\n);\n\nconst hiddenInputAttributes = computed(() => {\n\tconst value = makeInputValue(props.falseValue);\n\treturn {\n\t\tdisabled: props.disabled,\n\t\tname: props.name,\n\t\ttype: 'hidden',\n\t\tvalue: value,\n\t};\n});\n\nconst inputAttributes = computed(() => {\n\tconst value = makeInputValue(props.trueValue);\n\n\tconst onBlur = (event: FocusEvent): void => {\n\t\thasFocus.value = false;\n\t\temit('blur', event);\n\t};\n\n\tconst onChange = (event: Event): void => {\n\t\tif (event.target instanceof HTMLInputElement) {\n\t\t\tlet value = event.target.checked ? props.trueValue : props.falseValue;\n\n\t\t\temit('change', event);\n\t\t\temit('update:modelValue', value);\n\t\t}\n\t};\n\n\tconst onFocus = (event: FocusEvent): void => {\n\t\thasFocus.value = true;\n\t\temit('focus', event);\n\t};\n\n\tconst eventListeners = {\n\t\tonBlur,\n\t\tonChange,\n\t\tonClick: (event: MouseEvent) => emit('click', event),\n\t\tonFocus,\n\t\tonKeydown: (event: KeyboardEvent) => emit('keydown', event),\n\t\tonMousedown: (event: MouseEvent) => emit('mousedown', event),\n\t\tonMouseup: (event: MouseEvent) => emit('mouseup', event),\n\t\tonInput: (event: Event) => emit('input', event),\n\t};\n\n\treturn {\n\t\t'aria-describedby': props.ariaDescribedby,\n\t\tautofocus: props.autofocus,\n\t\tchecked: checked.value,\n\t\t// There is no such thing as readonly checkbox so we disable and style it with css\n\t\tdisabled: props.disabled || props.readonly,\n\t\tid: props.id,\n\t\tindeterminate: props.indeterminate,\n\t\tname: props.name,\n\t\ttabindex: props.disabled ? -1 : undefined,\n\t\ttype: 'checkbox',\n\t\tvalue: value,\n\t\t...eventListeners,\n\t};\n});\n\nconst slotAttributes = computed(() => ({\n\tchecked: checked.value,\n\tdisabled: props.disabled,\n\tfalseValue: props.falseValue,\n\tfocused: hasFocus.value,\n\thasErrors: props.hasErrors,\n\tid: props.id,\n\tname: props.name,\n\tparsedValue: inputAttributes.value.value,\n\treadonly: props.readonly,\n\ttrueValue: props.trueValue,\n\tvalue: checked.value ? props.trueValue : props.falseValue,\n}));\n\nconst iconAttributes = computed(() => {\n\tlet style: { [key: string]: string } = {};\n\tif (props.color && isCssColor(props.color)) {\n\t\tstyle.backgroundColor = props.color;\n\t}\n\treturn {\n\t\tclass: 'bb-base-checkbox-container__icon',\n\t\tstyle,\n\t};\n});\n\n/**\n * Indeterminate is a very volatile prop that is reset upon clicking,\n * this keeps the state and the prop aligned\n */\nwatch(\n\t() => [props.modelValue, props.checked, props.indeterminate],\n\t() => {\n\t\tif (checkboxInput.value) {\n\t\t\tcheckboxInput.value.indeterminate = !!props.indeterminate;\n\t\t}\n\t}\n);\n</script>\n<style lang=\"postcss\">\n@import '@/assets/css/BaseCheckbox';\n</style>\n"],"names":["props","__props","emit","__emit","checkboxInput","ref","checked","computed","hasFocus","classes","isCssColor","makeInputValue","when","item","hiddenInputAttributes","value","inputAttributes","eventListeners","event","slotAttributes","iconAttributes","style","watch"],"mappings":"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"}
package/dist/index120.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, computed as r, openBlock as a, createElementBlock as d, normalizeProps as u, guardReactiveProps as z, createElementVNode as c } from "vue";
2
- import { isCssColor as f } from "./index201.js";
2
+ import { isCssColor as f } from "./index210.js";
3
3
  const _ = /* @__PURE__ */ c("svg", {
4
4
  viewBox: "0 0 512 512",
5
5
  xmlns: "http://www.w3.org/2000/svg"
package/dist/index126.js CHANGED
@@ -1,4 +1,4 @@
1
- import t from "./index198.js";
1
+ import t from "./index222.js";
2
2
  const o = () => ({
3
3
  getItemText(r, n) {
4
4
  if (typeof r == "string" && !n)
package/dist/index127.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index198.js";
1
+ import o from "./index222.js";
2
2
  const e = () => ({
3
3
  getItemValue(n, f) {
4
4
  if (typeof f > "u")
package/dist/index128.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isArray as b, isPlainObject as m } from "./index251.js";
1
+ import { isArray as b, isPlainObject as m } from "./index250.js";
2
2
  function i(e, n, l, o, r) {
3
3
  const u = {}.propertyIsEnumerable.call(o, n) ? "enumerable" : "nonenumerable";
4
4
  u === "enumerable" && (e[n] = l), r && u === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index132.js CHANGED
@@ -1,5 +1,5 @@
1
- import { toValue as B } from "./index202.js";
2
- import { tryOnScopeDispose as E } from "./index202.js";
1
+ import { toValue as B } from "./index221.js";
2
+ import { tryOnScopeDispose as E } from "./index221.js";
3
3
  import { ref as c, computed as t } from "vue";
4
4
  function h(a) {
5
5
  var l;
package/dist/index16.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as Ve, ref as k, computed as p, watch as F, nextTick as U, openBlock as d, createElementBlock as u, mergeProps as Se, createElementVNode as r, createTextVNode as De, toDisplayString as f, unref as y, withDirectives as q, createVNode as V, Transition as S, withCtx as D, vShow as j, createCommentVNode as Y, normalizeClass as g, Fragment as w, renderList as O, renderSlot as G } from "vue";
2
- import i from "./index208.js";
3
- import Me from "./index216.js";
4
- import Ae from "./index217.js";
5
- import xe from "./index209.js";
6
- import Ce from "./index218.js";
7
- import Ye from "./index219.js";
8
- import { groupBy as J } from "./index220.js";
2
+ import i from "./index200.js";
3
+ import Me from "./index214.js";
4
+ import Ae from "./index215.js";
5
+ import xe from "./index201.js";
6
+ import Ce from "./index216.js";
7
+ import Ye from "./index217.js";
8
+ import { groupBy as J } from "./index218.js";
9
9
  import { isNil as Be } from "./index121.js";
10
- import { last as Q } from "./index210.js";
10
+ import { last as Q } from "./index203.js";
11
11
  const Ie = { class: "bb-base-date-picker__header" }, Ee = ["disabled"], Ne = /* @__PURE__ */ r("span", null, null, -1), Te = {
12
12
  "aria-live": "polite",
13
13
  class: "bb-base-date-picker__selected-day-label"
package/dist/index18.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import { defineComponent as Z, ref as n, computed as k, watch as x, openBlock as E, createElementBlock as ee, normalizeClass as z, renderSlot as c, createElementVNode as o, withDirectives as ae, mergeProps as B, unref as p, toDisplayString as L, createBlock as te, Teleport as ne, normalizeStyle as re, createVNode as oe, createSlots as le, renderList as se, withCtx as ie, normalizeProps as ue, guardReactiveProps as de, createCommentVNode as ce } from "vue";
2
- import { useFloating as pe } from "./index206.js";
3
- import me from "./index207.js";
4
- import r from "./index208.js";
5
- import fe from "./index209.js";
6
- import { identity as be } from "./index200.js";
7
- import { last as ve } from "./index210.js";
2
+ import { useFloating as pe } from "./index198.js";
3
+ import me from "./index199.js";
4
+ import r from "./index200.js";
5
+ import fe from "./index201.js";
6
+ import { identity as be } from "./index202.js";
7
+ import { last as ve } from "./index203.js";
8
8
  import { useFocusTrap as ye } from "./index204.js";
9
9
  import { useId as ge } from "./index8.js";
10
- import { vMaska as he } from "./index211.js";
10
+ import { vMaska as he } from "./index205.js";
11
11
  import { wait as Y } from "./index123.js";
12
- import { waitFor as ke } from "./index205.js";
12
+ import { waitFor as ke } from "./index206.js";
13
13
  import Me from "./index16.js";
14
14
  import "./index17.js";
15
- import { autoUpdate as we, flip as Ve, shift as _e } from "./index212.js";
16
- import { offset as Ye } from "./index213.js";
15
+ import { autoUpdate as we, flip as Ve, shift as _e } from "./index207.js";
16
+ import { offset as Ye } from "./index208.js";
17
17
  const De = ["aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "id", "name", "placeholder", "readonly", "value"], Ae = ["disabled"], Ce = /* @__PURE__ */ o("svg", {
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
19
  viewBox: "-2 -3 24 24"