maz-ui 3.28.6 → 3.28.7

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 (72) hide show
  1. package/components/MazCarousel.mjs +1 -1
  2. package/components/MazCheckbox.d.ts +3 -3
  3. package/components/MazDropdown.d.ts +3 -3
  4. package/components/MazDropdown.mjs +1 -1
  5. package/components/MazInput.d.ts +3 -3
  6. package/components/MazInputNumber.d.ts +3 -3
  7. package/components/MazInputTags.d.ts +3 -3
  8. package/components/MazInputTags.mjs +1 -1
  9. package/components/MazLazyImg.d.ts +3 -3
  10. package/components/MazPhoneNumberInput.d.ts +4 -4
  11. package/components/MazPhoneNumberInput.mjs +1 -1
  12. package/components/MazPicker.d.ts +3 -3
  13. package/components/MazRadio.d.ts +3 -3
  14. package/components/MazSelect.d.ts +3 -3
  15. package/components/MazSelect.mjs +1 -1
  16. package/components/MazSlider.mjs +1 -1
  17. package/components/MazStepper.mjs +1 -1
  18. package/components/MazSwitch.d.ts +3 -3
  19. package/components/MazTabsBar.d.ts +12 -3
  20. package/components/MazTabsBar.mjs +62 -57
  21. package/components/MazTextarea.d.ts +3 -3
  22. package/components/assets/MazAccordion.css +1 -1
  23. package/components/assets/MazBtn.css +1 -1
  24. package/components/assets/MazCard.css +1 -1
  25. package/components/assets/MazCheckbox.css +1 -1
  26. package/components/assets/MazInput.css +1 -1
  27. package/components/assets/MazInputNumber.css +1 -1
  28. package/components/assets/MazInputPrice.css +1 -1
  29. package/components/assets/MazInputTags.css +1 -1
  30. package/components/assets/MazPhoneNumberInput.css +1 -1
  31. package/components/assets/MazPicker.css +1 -1
  32. package/components/assets/MazRadio.css +1 -1
  33. package/components/assets/MazSelect.css +1 -1
  34. package/components/assets/MazStepper.css +1 -1
  35. package/components/assets/MazTabsBar.css +1 -1
  36. package/components/chunks/{MazBtn-hDvvJ5wM.mjs → MazBtn-6-KvWOG9.mjs} +2 -2
  37. package/components/chunks/{MazBtn-hVmJi-uK.mjs → MazBtn-AVguv2N0.mjs} +2 -2
  38. package/components/chunks/{MazBtn-e7VeHVh0.mjs → MazBtn-oZrkoCig.mjs} +2 -2
  39. package/components/chunks/{MazCarousel-TalH9tUI.mjs → MazCarousel-xYPtomV-.mjs} +2 -2
  40. package/components/chunks/{MazCheckbox-UsaGBQwX.mjs → MazCheckbox-LIa1Kkf_.mjs} +1 -1
  41. package/components/chunks/{MazCheckbox-bIUpH7sU.mjs → MazCheckbox-pXHcef3K.mjs} +1 -1
  42. package/components/chunks/{MazInputTags-c_GGD8Rk.mjs → MazInputTags-kDTfYnsu.mjs} +2 -2
  43. package/components/chunks/{MazPhoneNumberInput-RJZxI6Ov.mjs → MazPhoneNumberInput-q0hGoLSn.mjs} +3 -3
  44. package/components/chunks/{MazSelect-uJKJJNB9.mjs → MazSelect-QrKXhl1v.mjs} +3 -3
  45. package/components/chunks/{MazSpinner-RhkqC4sZ.mjs → MazSpinner-LxBYTKQI.mjs} +1 -1
  46. package/components/chunks/{MazSpinner-EmXW48S8.mjs → MazSpinner-T1N9rRjX.mjs} +1 -1
  47. package/components/chunks/{MazSpinner-WyW51HfP.mjs → MazSpinner-h3lv3B1K.mjs} +1 -1
  48. package/components/chunks/{MazSpinner-n6W-1Z6P.mjs → MazSpinner-mXSRdmmW.mjs} +1 -1
  49. package/components/chunks/{MazStepper-qMBecRYN.mjs → MazStepper-NrorpacW.mjs} +13 -13
  50. package/components/chunks/{MazTransitionExpand-Z94r2E0_.mjs → MazTransitionExpand-53irAK2U.mjs} +1 -1
  51. package/modules/assets/MazBtn.css +1 -1
  52. package/modules/assets/index.css +1 -1
  53. package/modules/chunks/{MazBtn-zKfVjg-f.mjs → MazBtn-OU9ti0GG.mjs} +2 -2
  54. package/modules/chunks/{MazIcon-osQoIva8.mjs → MazIcon-mIVA-wm3.mjs} +1 -1
  55. package/modules/chunks/{MazSpinner-IpRhoOeg.mjs → MazSpinner-Me_ta933.mjs} +1 -1
  56. package/modules/chunks/{index-f8XjDm3D.mjs → index-AC4Cl2MH.mjs} +3 -3
  57. package/modules/index.mjs +1 -1
  58. package/nuxt/index.json +1 -1
  59. package/package.json +5 -5
  60. package/types/components/MazCheckbox.vue.d.ts +3 -3
  61. package/types/components/MazDropdown.vue.d.ts +3 -3
  62. package/types/components/MazInput.vue.d.ts +3 -3
  63. package/types/components/MazInputNumber.vue.d.ts +3 -3
  64. package/types/components/MazInputTags.vue.d.ts +3 -3
  65. package/types/components/MazLazyImg.vue.d.ts +3 -3
  66. package/types/components/MazPhoneNumberInput.vue.d.ts +4 -4
  67. package/types/components/MazPicker.vue.d.ts +3 -3
  68. package/types/components/MazRadio.vue.d.ts +3 -3
  69. package/types/components/MazSelect.vue.d.ts +3 -3
  70. package/types/components/MazSwitch.vue.d.ts +3 -3
  71. package/types/components/MazTabsBar.vue.d.ts +12 -3
  72. package/types/components/MazTextarea.vue.d.ts +3 -3
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCarousel-TalH9tUI.mjs";
1
+ import { M as f } from "./chunks/MazCarousel-xYPtomV-.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@ import type { Color, Size } from './types';
3
3
  export type { Color, Size };
4
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
5
  style: {
6
- type: PropType<import("vue").StyleValue | undefined>;
6
+ type: PropType<import("vue").StyleValue>;
7
7
  default: undefined;
8
8
  };
9
9
  class: {
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
43
43
  "update:model-value": (...args: any[]) => void;
44
44
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
45
  style: {
46
- type: PropType<import("vue").StyleValue | undefined>;
46
+ type: PropType<import("vue").StyleValue>;
47
47
  default: undefined;
48
48
  };
49
49
  class: {
@@ -84,7 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
84
84
  }, {
85
85
  size: Size;
86
86
  color: Color;
87
- style: import("vue").StyleValue | undefined;
87
+ style: import("vue").StyleValue;
88
88
  class: any;
89
89
  disabled: boolean;
90
90
  name: string;
@@ -11,7 +11,7 @@ export type MenuItem = {
11
11
  class?: string;
12
12
  } & Record<string, unknown>;
13
13
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
- style?: import("vue").StyleValue | undefined;
14
+ style?: import("vue").StyleValue;
15
15
  class?: any;
16
16
  /** Menu items */
17
17
  items: MenuItem[];
@@ -45,7 +45,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
45
45
  "menuitem-clicked": (...args: any[]) => void;
46
46
  "update:open": (...args: any[]) => void;
47
47
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
48
- style?: import("vue").StyleValue | undefined;
48
+ style?: import("vue").StyleValue;
49
49
  class?: any;
50
50
  /** Menu items */
51
51
  items: MenuItem[];
@@ -80,7 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
80
80
  "onUpdate:open"?: ((...args: any[]) => any) | undefined;
81
81
  }, {
82
82
  color: Color;
83
- style: import("vue").StyleValue;
83
+ style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
84
84
  class: any;
85
85
  id: string;
86
86
  position: Position;
@@ -225,7 +225,7 @@ const ee = ["id"], oe = ["aria-expanded", "onClick"], ne = { class: "maz-sr-only
225
225
  ))
226
226
  ],
227
227
  34
228
- /* CLASS, HYDRATE_EVENTS */
228
+ /* CLASS, NEED_HYDRATION */
229
229
  )) : d("v-if", !0)
230
230
  ]),
231
231
  _: 3
@@ -3,7 +3,7 @@ import type { Color, ModelValueSimple, Size } from './types';
3
3
  export type { Color, Size, ModelValueSimple } from './types';
4
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
5
  style: {
6
- type: PropType<import("vue").StyleValue | undefined>;
6
+ type: PropType<import("vue").StyleValue>;
7
7
  default: undefined;
8
8
  };
9
9
  class: {
@@ -125,7 +125,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
125
125
  "update:model-value": (...args: any[]) => void;
126
126
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
127
127
  style: {
128
- type: PropType<import("vue").StyleValue | undefined>;
128
+ type: PropType<import("vue").StyleValue>;
129
129
  default: undefined;
130
130
  };
131
131
  class: {
@@ -252,7 +252,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
252
252
  color: Color;
253
253
  type: string;
254
254
  label: string;
255
- style: import("vue").StyleValue | undefined;
255
+ style: import("vue").StyleValue;
256
256
  class: any;
257
257
  disabled: boolean;
258
258
  name: string;
@@ -3,7 +3,7 @@ import type { Size } from './types';
3
3
  export type { Size };
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  style: {
6
- type: PropType<import("vue").StyleValue | undefined>;
6
+ type: PropType<import("vue").StyleValue>;
7
7
  default: undefined;
8
8
  };
9
9
  class: {
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
39
39
  "update:model-value": (...args: any[]) => void;
40
40
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
41
41
  style: {
42
- type: PropType<import("vue").StyleValue | undefined>;
42
+ type: PropType<import("vue").StyleValue>;
43
43
  default: undefined;
44
44
  };
45
45
  class: {
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<{
75
75
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
76
76
  }, {
77
77
  size: Size;
78
- style: import("vue").StyleValue | undefined;
78
+ style: import("vue").StyleValue;
79
79
  class: any;
80
80
  disabled: boolean;
81
81
  max: number;
@@ -3,7 +3,7 @@ import type { Color, Size } from './types';
3
3
  export type { Color, Size };
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  style: {
6
- type: PropType<import("vue").StyleValue | undefined>;
6
+ type: PropType<import("vue").StyleValue>;
7
7
  default: undefined;
8
8
  };
9
9
  class: {
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
58
58
  "update:model-value": (...args: any[]) => void;
59
59
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
60
60
  style: {
61
- type: PropType<import("vue").StyleValue | undefined>;
61
+ type: PropType<import("vue").StyleValue>;
62
62
  default: undefined;
63
63
  };
64
64
  class: {
@@ -117,7 +117,7 @@ declare const _default: import("vue").DefineComponent<{
117
117
  size: Size;
118
118
  color: Color;
119
119
  label: string;
120
- style: import("vue").StyleValue | undefined;
120
+ style: import("vue").StyleValue;
121
121
  class: any;
122
122
  disabled: boolean;
123
123
  placeholder: string;
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazInputTags-c_GGD8Rk.mjs";
1
+ import { M as f } from "./chunks/MazInputTags-kDTfYnsu.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@ import type { Image } from './types';
3
3
  export type { Image };
4
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
5
  style: {
6
- type: PropType<import("vue").StyleValue | undefined>;
6
+ type: PropType<import("vue").StyleValue>;
7
7
  default: undefined;
8
8
  };
9
9
  class: {
@@ -53,7 +53,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
53
53
  intersecting: (...args: any[]) => void;
54
54
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
55
55
  style: {
56
- type: PropType<import("vue").StyleValue | undefined>;
56
+ type: PropType<import("vue").StyleValue>;
57
57
  default: undefined;
58
58
  };
59
59
  class: {
@@ -102,7 +102,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
102
102
  onLoading?: ((...args: any[]) => any) | undefined;
103
103
  onIntersecting?: ((...args: any[]) => any) | undefined;
104
104
  }, {
105
- style: import("vue").StyleValue | undefined;
105
+ style: import("vue").StyleValue;
106
106
  image: Image;
107
107
  class: any;
108
108
  alt: string;
@@ -5,7 +5,7 @@ export type { Color, Size, Position, CountryCode, Result, Translations };
5
5
  import { type PropType } from 'vue';
6
6
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
7
7
  style: {
8
- type: PropType<import("vue").StyleValue | undefined>;
8
+ type: PropType<import("vue").StyleValue>;
9
9
  default: undefined;
10
10
  };
11
11
  class: {
@@ -186,7 +186,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
186
186
  "update:country-code": (...args: any[]) => void;
187
187
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
188
188
  style: {
189
- type: PropType<import("vue").StyleValue | undefined>;
189
+ type: PropType<import("vue").StyleValue>;
190
190
  default: undefined;
191
191
  };
192
192
  class: {
@@ -369,7 +369,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
369
369
  success: boolean;
370
370
  size: Size;
371
371
  color: Color;
372
- style: import("vue").StyleValue | undefined;
372
+ style: import("vue").StyleValue;
373
373
  class: any;
374
374
  disabled: boolean;
375
375
  placeholder: string;
@@ -410,7 +410,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
410
410
  countrySelectorWidth: string;
411
411
  }, {}>, {
412
412
  "selector-flag"?(_: {
413
- countryCode: "AC" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GT" | "GU" | "GW" | "GY" | "HK" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TA" | "TC" | "TD" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW";
413
+ countryCode: CountryCode;
414
414
  }): any;
415
415
  "country-list-flag"?(_: {
416
416
  countryCode: string;
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazPhoneNumberInput-RJZxI6Ov.mjs";
1
+ import { M as f } from "./chunks/MazPhoneNumberInput-q0hGoLSn.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -4,7 +4,7 @@ import type { PickerValue, PickerShortcut } from './MazPicker/types';
4
4
  export type { PickerValue, PickerShortcut, Color, Position };
5
5
  declare const _default: import("vue").DefineComponent<{
6
6
  style: {
7
- type: PropType<import("vue").StyleValue | undefined>;
7
+ type: PropType<import("vue").StyleValue>;
8
8
  default: undefined;
9
9
  };
10
10
  class: {
@@ -145,7 +145,7 @@ declare const _default: import("vue").DefineComponent<{
145
145
  "update:model-value": (...args: any[]) => void;
146
146
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
147
147
  style: {
148
- type: PropType<import("vue").StyleValue | undefined>;
148
+ type: PropType<import("vue").StyleValue>;
149
149
  default: undefined;
150
150
  };
151
151
  class: {
@@ -287,7 +287,7 @@ declare const _default: import("vue").DefineComponent<{
287
287
  }, {
288
288
  color: Color;
289
289
  label: string;
290
- style: import("vue").StyleValue | undefined;
290
+ style: import("vue").StyleValue;
291
291
  time: boolean;
292
292
  class: any;
293
293
  disabled: boolean;
@@ -3,7 +3,7 @@ import type { Color, Size } from './types';
3
3
  export type { Color, Size };
4
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
5
  style: {
6
- type: PropType<import("vue").StyleValue | undefined>;
6
+ type: PropType<import("vue").StyleValue>;
7
7
  default: undefined;
8
8
  };
9
9
  class: {
@@ -43,7 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
43
43
  "update:model-value": (...args: any[]) => void;
44
44
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
45
  style: {
46
- type: PropType<import("vue").StyleValue | undefined>;
46
+ type: PropType<import("vue").StyleValue>;
47
47
  default: undefined;
48
48
  };
49
49
  class: {
@@ -84,7 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
84
84
  }, {
85
85
  size: Size;
86
86
  color: Color;
87
- style: import("vue").StyleValue | undefined;
87
+ style: import("vue").StyleValue;
88
88
  class: any;
89
89
  disabled: boolean;
90
90
  id: string;
@@ -4,7 +4,7 @@ export type MazSelectOption = Record<string, ModelValueSimple>;
4
4
  export type { Color, Size, ModelValueSimple, Position };
5
5
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
6
6
  style: {
7
- type: PropType<import("vue").StyleValue | undefined>;
7
+ type: PropType<import("vue").StyleValue>;
8
8
  default: undefined;
9
9
  };
10
10
  class: {
@@ -102,7 +102,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
102
102
  "selected-option": (...args: any[]) => void;
103
103
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
104
  style: {
105
- type: PropType<import("vue").StyleValue | undefined>;
105
+ type: PropType<import("vue").StyleValue>;
106
106
  default: undefined;
107
107
  };
108
108
  class: {
@@ -201,7 +201,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
201
201
  }, {
202
202
  size: Size;
203
203
  color: Color;
204
- style: import("vue").StyleValue | undefined;
204
+ style: import("vue").StyleValue;
205
205
  class: any;
206
206
  search: boolean;
207
207
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazSelect-uJKJJNB9.mjs";
1
+ import { M as f } from "./chunks/MazSelect-QrKXhl1v.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -249,7 +249,7 @@ const ue = (a) => {
249
249
  ], 8, ie)
250
250
  ],
251
251
  38
252
- /* CLASS, STYLE, HYDRATE_EVENTS */
252
+ /* CLASS, STYLE, NEED_HYDRATION */
253
253
  )
254
254
  ],
255
255
  2112
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazStepper-qMBecRYN.mjs";
1
+ import { M as f } from "./chunks/MazStepper-NrorpacW.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@ import type { Color } from './types';
3
3
  export type { Color };
4
4
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
5
  style: {
6
- type: PropType<import("vue").StyleValue | undefined>;
6
+ type: PropType<import("vue").StyleValue>;
7
7
  default: undefined;
8
8
  };
9
9
  class: {
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
35
35
  "update:model-value": (...args: any[]) => void;
36
36
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
37
  style: {
38
- type: PropType<import("vue").StyleValue | undefined>;
38
+ type: PropType<import("vue").StyleValue>;
39
39
  default: undefined;
40
40
  };
41
41
  class: {
@@ -67,7 +67,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
67
67
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
68
68
  }, {
69
69
  color: Color;
70
- style: import("vue").StyleValue | undefined;
70
+ style: import("vue").StyleValue;
71
71
  class: any;
72
72
  disabled: boolean;
73
73
  name: string;
@@ -9,10 +9,14 @@ declare const _default: import("vue").DefineComponent<{
9
9
  type: PropType<MazTabsBarItem[]>;
10
10
  required: true;
11
11
  };
12
- useAnchor: {
12
+ persistent: {
13
13
  type: BooleanConstructor;
14
14
  default: boolean;
15
15
  };
16
+ queryParam: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
16
20
  color: {
17
21
  type: PropType<Color>;
18
22
  default: string;
@@ -26,10 +30,14 @@ declare const _default: import("vue").DefineComponent<{
26
30
  type: PropType<MazTabsBarItem[]>;
27
31
  required: true;
28
32
  };
29
- useAnchor: {
33
+ persistent: {
30
34
  type: BooleanConstructor;
31
35
  default: boolean;
32
36
  };
37
+ queryParam: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
33
41
  color: {
34
42
  type: PropType<Color>;
35
43
  default: string;
@@ -40,7 +48,8 @@ declare const _default: import("vue").DefineComponent<{
40
48
  };
41
49
  }>>, {
42
50
  color: Color;
51
+ persistent: boolean;
43
52
  block: boolean;
44
- useAnchor: boolean;
53
+ queryParam: string;
45
54
  }, {}>;
46
55
  export default _default;
@@ -1,92 +1,97 @@
1
1
  import "./assets/MazTabsBar.css";
2
- import { inject as w, defineComponent as C, ref as v, computed as b, onBeforeMount as B, onMounted as M, openBlock as f, createElementBlock as d, normalizeClass as y, createElementVNode as S, normalizeStyle as _, Fragment as x, renderList as E, unref as g, toDisplayString as j } from "vue";
3
- function A(t, s) {
4
- const n = w(t, s);
5
- if (!n)
6
- throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${t}`);
7
- return n;
2
+ import { inject as k, defineComponent as $, ref as b, computed as y, onBeforeMount as B, onMounted as M, openBlock as f, createElementBlock as d, normalizeClass as v, createElementVNode as P, normalizeStyle as h, Fragment as C, renderList as q, unref as E, toDisplayString as L } from "vue";
3
+ function R(a, t) {
4
+ const o = k(a, t);
5
+ if (!o)
6
+ throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${a}`);
7
+ return o;
8
8
  }
9
- const L = ["disabled", "href", "onClick"], V = /* @__PURE__ */ C({
9
+ const j = ["disabled", "onClick"], U = /* @__PURE__ */ $({
10
10
  __name: "MazTabsBar",
11
11
  props: {
12
12
  items: { type: Array, required: !0 },
13
- useAnchor: { type: Boolean, default: !1 },
13
+ persistent: { type: Boolean, default: !1 },
14
+ queryParam: { type: String, default: "tab" },
14
15
  color: { type: String, default: "primary" },
15
16
  block: { type: Boolean, default: !1 }
16
17
  },
17
- setup(t) {
18
- function s(e) {
19
- return e.replaceAll(/([a-z])([A-Z])/g, "$1-$2").replaceAll(/[\s_]+/g, "-").toLowerCase();
18
+ setup(a) {
19
+ const { currentTab: t, updateCurrentTab: o } = R("maz-tabs");
20
+ function u(e) {
21
+ o(e), n.persistent && z(e);
20
22
  }
21
- const n = (e, a) => {
22
- if (typeof window > "u")
23
- return a;
24
- const c = window.location.hash.replace("#", ""), o = e.findIndex(({ label: l }) => s(l) === c);
25
- return o === -1 ? 1 : o + 1;
26
- }, { currentTab: r, updateCurrentTab: u } = A("maz-tabs"), p = t, z = v(), h = v([]);
27
- function T({
23
+ const n = a, _ = b(), p = b([]);
24
+ function g({
28
25
  mazBtn: e,
29
- index: a
26
+ index: r
30
27
  }) {
31
- h.value[a] = e && "$el" in e ? e.$el : e;
28
+ p.value[r] = e && "$el" in e ? e.$el : e;
32
29
  }
33
- const i = b(
34
- () => p.items.map((e) => ({
30
+ const c = y(
31
+ () => n.items.map((e) => ({
35
32
  label: typeof e == "string" ? e : e.label,
36
33
  disabled: typeof e == "string" ? !1 : e.disabled ?? !1
37
34
  }))
38
- ), $ = b(() => {
39
- if (typeof r.value != "number")
35
+ ), T = y(() => {
36
+ if (typeof t.value != "number")
40
37
  return {};
41
- const e = h.value[r.value - 1], a = (e == null ? void 0 : e.offsetWidth) ?? 0, c = (e == null ? void 0 : e.offsetHeight) ?? 0;
38
+ const e = p.value[t.value - 1], r = (e == null ? void 0 : e.offsetWidth) ?? 0, i = (e == null ? void 0 : e.offsetHeight) ?? 0;
42
39
  return {
43
40
  transform: `translateX(${(e == null ? void 0 : e.offsetLeft) ?? 0}px)`,
44
- width: `${a}px`,
45
- height: `${c}px`
41
+ width: `${r}px`,
42
+ height: `${i}px`
46
43
  };
47
44
  });
48
- function k(e, a) {
49
- return a ? {} : r.value === e ? "color: var(--maz-color-text)" : "color: var(--maz-color-muted)";
45
+ function w(e, r) {
46
+ return r ? {} : t.value === e ? "color: var(--maz-color-text)" : "color: var(--maz-color-muted)";
50
47
  }
51
- return B(() => {
52
- (r.value < 1 || r.value > i.value.length) && console.error(
53
- `[maz-ui](MazTabsBar) The model-value should be between 1 and ${i.value.length}`
48
+ B(() => {
49
+ (t.value < 1 || t.value > c.value.length) && console.error(
50
+ `[maz-ui](MazTabsBar) The model-value should be between 1 and ${c.value.length}`
54
51
  );
55
- }), M(async () => {
56
- p.useAnchor && u(n(i.value, r.value) ?? 1);
57
- }), (e, a) => (f(), d(
52
+ });
53
+ function S() {
54
+ const e = new URL(window.location.href);
55
+ return Number(e.searchParams.get(n.queryParam));
56
+ }
57
+ function z(e) {
58
+ const r = new URL(window.location.href);
59
+ r.searchParams.set(n.queryParam, String(e)), window.history.replaceState({}, document.title, r.toString());
60
+ }
61
+ return M(async () => {
62
+ n.persistent && o(S() ?? t.value ?? 1);
63
+ }), (e, r) => (f(), d(
58
64
  "div",
59
65
  {
60
66
  ref_key: "MazTabsBar",
61
- ref: z,
62
- class: y(["m-tabs-bar", {
63
- "--block": t.block
67
+ ref: _,
68
+ class: v(["m-tabs-bar", {
69
+ "--block": a.block
64
70
  }])
65
71
  },
66
72
  [
67
- S(
73
+ P(
68
74
  "div",
69
75
  {
70
76
  class: "m-tabs-bar__indicator",
71
- style: _([$.value])
77
+ style: h([T.value])
72
78
  },
73
79
  null,
74
80
  4
75
81
  /* STYLE */
76
82
  ),
77
83
  (f(!0), d(
78
- x,
84
+ C,
79
85
  null,
80
- E(i.value, ({ label: c, disabled: o }, l) => (f(), d("a", {
81
- key: l,
86
+ q(c.value, ({ label: i, disabled: l }, s) => (f(), d("button", {
87
+ key: s,
82
88
  ref_for: !0,
83
- ref: (m) => T({ mazBtn: m, index: l }),
84
- class: y([{ "--active": g(r) === l, "--disabled": o }, "m-tabs-bar__item"]),
85
- disabled: o,
86
- href: t.useAnchor && !o ? `#${s(c)}` : void 0,
87
- style: _(k(l + 1, o)),
88
- onClick: (m) => o ? void 0 : g(u)(l + 1)
89
- }, j(c), 15, L))),
89
+ ref: (m) => g({ mazBtn: m, index: s }),
90
+ class: v([{ "--active": E(t) === s, "--disabled": l }, "m-tabs-bar__item"]),
91
+ disabled: l,
92
+ style: h(w(s + 1, l)),
93
+ onClick: (m) => l ? void 0 : u(s + 1)
94
+ }, L(i), 15, j))),
90
95
  128
91
96
  /* KEYED_FRAGMENT */
92
97
  ))
@@ -95,12 +100,12 @@ const L = ["disabled", "href", "onClick"], V = /* @__PURE__ */ C({
95
100
  /* CLASS */
96
101
  ));
97
102
  }
98
- }), X = (t, s) => {
99
- const n = t.__vccOpts || t;
100
- for (const [r, u] of s)
101
- n[r] = u;
102
- return n;
103
- }, R = /* @__PURE__ */ X(V, [["__scopeId", "data-v-99cb4084"]]);
103
+ }), V = (a, t) => {
104
+ const o = a.__vccOpts || a;
105
+ for (const [u, n] of t)
106
+ o[u] = n;
107
+ return o;
108
+ }, H = /* @__PURE__ */ V(U, [["__scopeId", "data-v-fd49b37e"]]);
104
109
  export {
105
- R as default
110
+ H as default
106
111
  };
@@ -3,7 +3,7 @@ import type { Color } from './types';
3
3
  export type { Color };
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  style: {
6
- type: PropType<import("vue").StyleValue | undefined>;
6
+ type: PropType<import("vue").StyleValue>;
7
7
  default: undefined;
8
8
  };
9
9
  class: {
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<{
65
65
  focus: (...args: any[]) => void;
66
66
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
67
67
  style: {
68
- type: PropType<import("vue").StyleValue | undefined>;
68
+ type: PropType<import("vue").StyleValue>;
69
69
  default: undefined;
70
70
  };
71
71
  class: {
@@ -130,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
130
130
  warning: boolean;
131
131
  color: Color;
132
132
  label: string;
133
- style: import("vue").StyleValue | undefined;
133
+ style: import("vue").StyleValue;
134
134
  class: any;
135
135
  disabled: boolean;
136
136
  name: string;