maz-ui 3.37.3 → 3.37.4

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 (137) hide show
  1. package/components/MazBottomSheet.mjs +1 -1
  2. package/components/MazBtn.d.ts +2 -2
  3. package/components/MazBtn.mjs +1 -1
  4. package/components/MazCard.d.ts +2 -0
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCarousel.mjs +1 -1
  7. package/components/MazDialog.mjs +1 -1
  8. package/components/MazDialogPromise.mjs +1 -1
  9. package/components/MazDrawer.mjs +1 -1
  10. package/components/MazDropdown.mjs +1 -1
  11. package/components/MazInput.mjs +1 -1
  12. package/components/MazInputNumber.mjs +1 -1
  13. package/components/MazInputPrice.mjs +1 -1
  14. package/components/MazInputTags.d.ts +4 -4
  15. package/components/MazInputTags.mjs +1 -1
  16. package/components/MazPagination.mjs +1 -1
  17. package/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +8 -4
  18. package/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +2 -2
  19. package/components/MazPhoneNumberInput.d.ts +21 -8
  20. package/components/MazPhoneNumberInput.mjs +1 -1
  21. package/components/MazPicker.mjs +1 -1
  22. package/components/MazRadio.d.ts +89 -92
  23. package/components/MazRadio.mjs +67 -73
  24. package/components/MazRadioButtons.d.ts +84 -62
  25. package/components/MazRadioButtons.mjs +112 -60
  26. package/components/MazSelect.d.ts +12 -7
  27. package/components/MazSelect.mjs +1 -1
  28. package/components/MazSwitch.d.ts +61 -67
  29. package/components/MazSwitch.mjs +41 -48
  30. package/components/MazTable.mjs +1 -1
  31. package/components/MazTextarea.d.ts +23 -8
  32. package/components/MazTextarea.mjs +1 -1
  33. package/components/assets/MazBtn.css +1 -1
  34. package/components/assets/MazCard.css +1 -1
  35. package/components/assets/MazInputNumber.css +1 -1
  36. package/components/assets/MazInputTags.css +1 -1
  37. package/components/assets/MazPagination.css +1 -1
  38. package/components/assets/MazPhoneNumberInput.css +1 -1
  39. package/components/assets/MazRadio.css +1 -1
  40. package/components/assets/MazRadioButtons.css +1 -1
  41. package/components/assets/MazSelect.css +1 -1
  42. package/components/assets/MazSwitch.css +1 -1
  43. package/components/assets/MazTable.css +1 -1
  44. package/components/assets/MazTextarea.css +1 -1
  45. package/components/chunks/{MazBottomSheet-DZ1n4bGL.mjs → MazBottomSheet-B9OYmgyx.mjs} +1 -1
  46. package/components/chunks/{MazBtn-CnZU5zlG.mjs → MazBtn-4stpYG-V.mjs} +8 -8
  47. package/components/chunks/{MazBtn-BJs3rzUf.mjs → MazBtn-BQZOiUux.mjs} +8 -8
  48. package/components/chunks/{MazBtn-DLYgzr9e.mjs → MazBtn-Bgt41rUb.mjs} +11 -11
  49. package/components/chunks/MazBtn-CNyFbl9Y.mjs +151 -0
  50. package/components/chunks/{MazBtn-BTHDxDz7.mjs → MazBtn-CrNEwd_M.mjs} +8 -8
  51. package/components/chunks/MazBtn-CyXtFeAh.mjs +151 -0
  52. package/components/chunks/{MazBtn-CnkBOGKK.mjs → MazBtn-DOtOjQOl.mjs} +11 -11
  53. package/components/chunks/{MazBtn-IH6bjzah.mjs → MazBtn-DXC8jXNK.mjs} +8 -8
  54. package/components/chunks/{MazBtn-Dbe098kd.mjs → MazBtn-De3ZeaJJ.mjs} +8 -8
  55. package/components/chunks/{MazBtn-CDQAW3fg.mjs → MazBtn-g6VJMuer.mjs} +8 -8
  56. package/components/chunks/MazBtn-v1mwE1O3.mjs +151 -0
  57. package/components/chunks/{MazBtn-pLRsSxug.mjs → MazBtn-z9IFp0ZS.mjs} +8 -8
  58. package/components/chunks/{MazCard-CNE9c3L5.mjs → MazCard-E9Eg2VRn.mjs} +10 -8
  59. package/components/chunks/{MazCarousel-CMJgMJf1.mjs → MazCarousel-CtSpgIm6.mjs} +1 -1
  60. package/components/chunks/{MazCheckbox-DJBo7Ejt.mjs → MazCheckbox-BE7eLIkK.mjs} +1 -1
  61. package/components/chunks/{MazCheckbox-CM7mucQa.mjs → MazCheckbox-eSSrvpn9.mjs} +1 -1
  62. package/components/chunks/{MazDialog-BVqOTysP.mjs → MazDialog-CjsC6fGo.mjs} +1 -1
  63. package/components/chunks/{MazDialogPromise-BjciKAwR.mjs → MazDialogPromise-Blv60XZR.mjs} +2 -2
  64. package/components/chunks/{MazGallery-BUUq89aM.mjs → MazGallery-DRgvR7K0.mjs} +2 -2
  65. package/components/chunks/{MazIcon-BKfQ_rkt.mjs → MazIcon-C_IIdjqr.mjs} +1 -1
  66. package/components/chunks/{MazInput-Caas-0Nk.mjs → MazInput-Dn4JzYhe.mjs} +1 -1
  67. package/components/chunks/{MazInputNumber-CnoCQQzg.mjs → MazInputNumber-Df31nPnc.mjs} +2 -2
  68. package/components/chunks/{MazInputPrice---5nCUKm.mjs → MazInputPrice-DATyEiwP.mjs} +1 -1
  69. package/components/chunks/{MazInputTags-CipoVBP2.mjs → MazInputTags-DBzwE87F.mjs} +3 -3
  70. package/components/chunks/{MazPagination-CXw3yqbu.mjs → MazPagination-BU6fSHr2.mjs} +2 -2
  71. package/components/chunks/MazPhoneNumberInput-D8hP4ZzW.mjs +1419 -0
  72. package/components/chunks/{MazPicker-CfhI75aw.mjs → MazPicker-D71j9m8h.mjs} +2 -2
  73. package/components/chunks/{MazPickerCalendar-DnkNE-Am.mjs → MazPickerCalendar-psuBcTR7.mjs} +3 -3
  74. package/components/chunks/{MazPickerHeader-Vt86yzXS.mjs → MazPickerHeader-BmqHJE0a.mjs} +1 -1
  75. package/components/chunks/{MazPickerMonthSwitcher-zfKhsjW1.mjs → MazPickerMonthSwitcher-DgU0pLkF.mjs} +2 -2
  76. package/components/chunks/{MazPickerShortcuts-DUIKfOO8.mjs → MazPickerShortcuts-D9YXi3Ns.mjs} +2 -2
  77. package/components/chunks/{MazPickerTime-B2znRxr2.mjs → MazPickerTime-8ZqSEb_N.mjs} +2 -2
  78. package/components/chunks/{MazPickerYearSwitcher-CB339kof.mjs → MazPickerYearSwitcher-D-zu0tMs.mjs} +3 -3
  79. package/components/chunks/MazSelect-Cc8JAFML.mjs +731 -0
  80. package/components/chunks/{MazSpinner-DFseK3o_.mjs → MazSpinner-2-OAJWTi.mjs} +1 -1
  81. package/components/chunks/MazSpinner-B0xEVmcj.mjs +38 -0
  82. package/components/chunks/{MazSpinner-2fDI3i5h.mjs → MazSpinner-B3Gt0AEt.mjs} +1 -1
  83. package/components/chunks/MazSpinner-B6Z6X_KC.mjs +38 -0
  84. package/components/chunks/{MazSpinner-CORsBFCP.mjs → MazSpinner-BVaJBGw5.mjs} +1 -1
  85. package/components/chunks/{MazSpinner-CVBVegaS.mjs → MazSpinner-BVflp3wp.mjs} +1 -1
  86. package/components/chunks/MazSpinner-BmqyUsTZ.mjs +38 -0
  87. package/components/chunks/{MazSpinner-XMLkiLTL.mjs → MazSpinner-Btk7fYzq.mjs} +1 -1
  88. package/components/chunks/{MazSpinner-BtFWH26r.mjs → MazSpinner-CAQqdZfW.mjs} +1 -1
  89. package/components/chunks/MazSpinner-COqX5baD.mjs +38 -0
  90. package/components/chunks/{MazSpinner-Bky73siD.mjs → MazSpinner-CV3h3CKR.mjs} +1 -1
  91. package/components/chunks/MazSpinner-Cm5GeVV-.mjs +38 -0
  92. package/components/chunks/{MazSpinner-CkHAaRhk.mjs → MazSpinner-D9uDPRkX.mjs} +1 -1
  93. package/components/chunks/MazSpinner-DO1id61e.mjs +38 -0
  94. package/components/chunks/MazSpinner-K26cuR_A.mjs +38 -0
  95. package/components/chunks/MazSpinner-LCpiZGMP.mjs +38 -0
  96. package/components/chunks/MazTable-vcm_SC7e.mjs +1846 -0
  97. package/components/chunks/{MazTransitionExpand-BWsQP7UF.mjs → MazTransitionExpand-DXKtquVe.mjs} +1 -1
  98. package/css/main.css +1 -1
  99. package/modules/assets/MazBtn.css +1 -1
  100. package/modules/chunks/{MazBtn-BxYYeNGe.mjs → MazBtn-CNsgLyRm.mjs} +8 -8
  101. package/modules/chunks/{MazBtn-CHUwa3fu.cjs → MazBtn-DmXrGuUE.cjs} +2 -2
  102. package/modules/chunks/{MazIcon-CnOCvJTw.mjs → MazIcon-DwRWkhhR.mjs} +1 -1
  103. package/modules/chunks/{MazIcon-DcbutTbM.cjs → MazIcon-rh9PwwaQ.cjs} +1 -1
  104. package/modules/chunks/{MazSpinner-TL9_4BOs.cjs → MazSpinner-BzucVZXm.cjs} +1 -1
  105. package/modules/chunks/{MazSpinner-ClFhZyF_.mjs → MazSpinner-mCJd14Kq.mjs} +1 -1
  106. package/modules/chunks/{index-DksGhf51.cjs → index-DHsybBwE.cjs} +1 -1
  107. package/modules/chunks/{index-_xAQ9uTd.mjs → index-DrSSNP9y.mjs} +2 -2
  108. package/modules/index.cjs +1 -1
  109. package/modules/index.mjs +1 -1
  110. package/nuxt/index.json +1 -1
  111. package/nuxt/index.mjs +5 -5
  112. package/package.json +6 -6
  113. package/types/components/MazBtn.vue.d.ts +2 -2
  114. package/types/components/MazCard.vue.d.ts +2 -0
  115. package/types/components/MazInputTags.vue.d.ts +4 -4
  116. package/types/components/MazPhoneNumberInput/CountrySelector.vue.d.ts +8 -4
  117. package/types/components/MazPhoneNumberInput/use-maz-phone-number-input.d.ts +2 -2
  118. package/types/components/MazPhoneNumberInput.vue.d.ts +21 -8
  119. package/types/components/MazRadio.vue.d.ts +89 -92
  120. package/types/components/MazRadioButtons.vue.d.ts +84 -62
  121. package/types/components/MazSelect.vue.d.ts +12 -7
  122. package/types/components/MazSwitch.vue.d.ts +61 -67
  123. package/types/components/MazTextarea.vue.d.ts +23 -8
  124. package/components/chunks/MazBtn-Cpnby6Lb.mjs +0 -151
  125. package/components/chunks/MazBtn-D5q0p_mK.mjs +0 -151
  126. package/components/chunks/MazBtn-Koayc6g_.mjs +0 -151
  127. package/components/chunks/MazPhoneNumberInput-BDiyO_6j.mjs +0 -1423
  128. package/components/chunks/MazSelect-Cr1xT89o.mjs +0 -767
  129. package/components/chunks/MazSpinner-CdKm_Lcp.mjs +0 -38
  130. package/components/chunks/MazSpinner-CkdjTE0y.mjs +0 -38
  131. package/components/chunks/MazSpinner-CtMh7fIX.mjs +0 -38
  132. package/components/chunks/MazSpinner-DECa8Pby.mjs +0 -38
  133. package/components/chunks/MazSpinner-DMBy6mx3.mjs +0 -38
  134. package/components/chunks/MazSpinner-DPmNDRtT.mjs +0 -38
  135. package/components/chunks/MazSpinner-Dq4o-_GM.mjs +0 -38
  136. package/components/chunks/MazSpinner-DyE_USVF.mjs +0 -38
  137. package/components/chunks/MazTable-CIlP0a61.mjs +0 -1882
package/nuxt/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineNuxtModule, createResolver, addComponent, addImports, addPlugin } from '@nuxt/kit';
2
- import { resolve, dirname } from 'node:path';
2
+ import path from 'node:path';
3
3
  import { fileURLToPath } from 'node:url';
4
4
  import { readdir } from 'node:fs/promises';
5
5
 
@@ -60,7 +60,7 @@ function createDefu(merger) {
60
60
  const defu = createDefu();
61
61
 
62
62
  const _dirname$1 = fileURLToPath(new URL(".", import.meta.url));
63
- const INPUT_COMPONENT_DIR = resolve(_dirname$1, "./../components");
63
+ const INPUT_COMPONENT_DIR = path.resolve(_dirname$1, "./../components");
64
64
  const getComponentList = async () => {
65
65
  try {
66
66
  const fileList = await readdir(INPUT_COMPONENT_DIR, { withFileTypes: true });
@@ -78,7 +78,7 @@ const getComponentList = async () => {
78
78
  }
79
79
  };
80
80
 
81
- const _dirname = dirname(fileURLToPath(import.meta.url));
81
+ const _dirname = path.dirname(fileURLToPath(import.meta.url));
82
82
  const module = defineNuxtModule({
83
83
  meta: {
84
84
  name: "maz-ui",
@@ -99,8 +99,8 @@ const module = defineNuxtModule({
99
99
  const moduleOptions = defu(nuxt.options.runtimeConfig.public.mazUi, options);
100
100
  nuxt.options.runtimeConfig.public.mazUi = moduleOptions;
101
101
  if (moduleOptions.injectCss) {
102
- const path = process.env.MAZ_UI_DEV === "true" ? "maz-ui/css/index.css" : "maz-ui/css/main.css";
103
- nuxt.options.css = [path, ...nuxt.options.css];
102
+ const path2 = process.env.MAZ_UI_DEV === "true" ? "maz-ui/css/index.css" : "maz-ui/css/main.css";
103
+ nuxt.options.css = [path2, ...nuxt.options.css];
104
104
  }
105
105
  if (moduleOptions.injectComponents) {
106
106
  const componentList = await getComponentList();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.37.3",
3
+ "version": "3.37.4",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
6
  "main": "./modules/index.cjs",
@@ -101,8 +101,8 @@
101
101
  "@mazui/cli": "latest"
102
102
  },
103
103
  "devDependencies": {
104
- "@babel/core": "^7.24.3",
105
- "@babel/preset-env": "^7.24.3",
104
+ "@babel/core": "^7.24.4",
105
+ "@babel/preset-env": "^7.24.4",
106
106
  "@babel/preset-typescript": "^7.24.1",
107
107
  "@nuxt/kit": "^3.11.1",
108
108
  "@nuxt/schema": "^3.11.1",
@@ -141,17 +141,17 @@
141
141
  "prettier-plugin-tailwindcss": "^0.5.13",
142
142
  "replace-in-file": "^7.1.0",
143
143
  "rimraf": "^5.0.5",
144
- "sass": "^1.72.0",
144
+ "sass": "^1.74.1",
145
145
  "semver": "^7.6.0",
146
146
  "sirv": "^2.0.4",
147
147
  "stylelint": "^16.3.1",
148
148
  "stylelint-config-recommended-vue": "^1.5.0",
149
149
  "stylelint-config-standard": "^36.0.0",
150
- "stylelint-config-standard-scss": "^13.0.0",
150
+ "stylelint-config-standard-scss": "^13.1.0",
151
151
  "stylelint-config-tailwindcss": "^0.0.7",
152
152
  "tailwindcss": "^3.4.3",
153
153
  "unplugin-vue-components": "^0.26.0",
154
- "vite": "^5.2.7",
154
+ "vite": "^5.2.8",
155
155
  "vite-plugin-css-injected-by-js": "^3.5.0",
156
156
  "vite-plugin-lib-inject-css": "^2.0.1",
157
157
  "vite-plugin-static-copy": "^1.0.2",
@@ -1,4 +1,4 @@
1
- import { type FunctionalComponent, type SVGAttributes, type ComponentPublicInstance, type Component } from 'vue';
1
+ import { type FunctionalComponent, type SVGAttributes, type ComponentPublicInstance, type Component, type HTMLAttributes } from 'vue';
2
2
  import type { Color, Size } from './types';
3
3
  export type { Color, Size };
4
4
  type Icon = FunctionalComponent<SVGAttributes> | ComponentPublicInstance | Component;
@@ -97,7 +97,7 @@ export type Props = {
97
97
  */
98
98
  noElevation?: boolean;
99
99
  /** The class applied to the content wrapper (<span />) of the button */
100
- contentClass?: any;
100
+ contentClass?: HTMLAttributes['class'];
101
101
  };
102
102
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
103
103
  variant: string;
@@ -45,6 +45,8 @@ export type Props = {
45
45
  collapseOpen?: boolean;
46
46
  /** Title of the card in header */
47
47
  header?: string;
48
+ /** The card will be displayed in full width */
49
+ block?: boolean;
48
50
  };
49
51
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
50
52
  images: undefined;
@@ -1,11 +1,11 @@
1
- import { type StyleValue } from 'vue';
1
+ import { type HTMLAttributes } from 'vue';
2
2
  import type { Color, Size } from './types';
3
3
  export type { Color, Size };
4
4
  export type Props = {
5
5
  /** Style attribut of the component root element */
6
- style?: StyleValue;
6
+ style?: HTMLAttributes['style'];
7
7
  /** Class attribut of the component root element */
8
- class?: any;
8
+ class?: HTMLAttributes['class'];
9
9
  /** @model The modelValue of the input */
10
10
  modelValue?: string[] | number[];
11
11
  /** The placeholder of the input */
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
58
58
  }, {
59
59
  size: Size;
60
60
  label: string;
61
- style: string | false | import("vue").CSSProperties | StyleValue[] | null;
61
+ style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
62
62
  error: boolean;
63
63
  disabled: boolean;
64
64
  success: boolean;
@@ -1,7 +1,8 @@
1
- import { type StyleValue } from 'vue';
2
1
  import type { Color, Size, Position, CountryCode } from '../MazPhoneNumberInput.vue';
3
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
- style?: StyleValue;
3
+ /** Style attribut of the component root element */
4
+ style?: import("vue").StyleValue;
5
+ /** Class attribut of the component root element */
5
6
  class?: any;
6
7
  modelValue?: CountryCode | undefined;
7
8
  id: string;
@@ -46,7 +47,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
46
47
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
47
48
  "update:model-value": (countryCode?: CountryCode | undefined) => void;
48
49
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
49
- style?: StyleValue;
50
+ /** Style attribut of the component root element */
51
+ style?: import("vue").StyleValue;
52
+ /** Class attribut of the component root element */
50
53
  class?: any;
51
54
  modelValue?: CountryCode | undefined;
52
55
  id: string;
@@ -91,7 +94,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
91
94
  }>>> & {
92
95
  "onUpdate:model-value"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
93
96
  }, {
94
- style: string | false | import("vue").CSSProperties | StyleValue[] | null;
97
+ style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
95
98
  width: string;
96
99
  class: any;
97
100
  modelValue: CountryCode;
@@ -105,6 +108,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
105
108
  "selector-flag"?(_: {
106
109
  countryCode: CountryCode;
107
110
  }): any;
111
+ "no-results"?(_: {}): any;
108
112
  "country-list-flag"?(_: {
109
113
  countryCode: string;
110
114
  option: import("../MazSelect.vue").NormalizedOption;
@@ -42,11 +42,11 @@ export declare function useMazPhoneNumberInput(): {
42
42
  fetchCountryCode: typeof fetchCountryCode;
43
43
  selectedCountry: import("vue").Ref<CountryCode | undefined>;
44
44
  phoneNumber: import("vue").Ref<string>;
45
- selectionRange: {
45
+ selectionRange: import("vue").Ref<{
46
46
  start?: number | null | undefined;
47
47
  end?: number | null | undefined;
48
48
  cursorAtEnd?: boolean | undefined;
49
- };
49
+ }>;
50
50
  saveCursorPosition: typeof saveCursorPosition;
51
51
  onPhoneNumberChanged: typeof onPhoneNumberChanged;
52
52
  onCountryChanged: typeof onCountryChanged;
@@ -2,12 +2,12 @@ import { type CountryCode } from 'libphonenumber-js';
2
2
  import type { Results, Translations } from './MazPhoneNumberInput/types';
3
3
  import type { Color, Position, Size } from './types';
4
4
  export type { Color, Size, Position, CountryCode, Results, Results as Result, Translations };
5
- import { type StyleValue } from 'vue';
5
+ import { type HTMLAttributes } from 'vue';
6
6
  export type Props = {
7
7
  /** Style attribut of the component root element */
8
- style?: StyleValue;
8
+ style?: HTMLAttributes['style'];
9
9
  /** Class attribut of the component root element */
10
- class?: any;
10
+ class?: HTMLAttributes['class'];
11
11
  /** @model Country calling code + telephone number in international format */
12
12
  modelValue?: string;
13
13
  /** @deprecated */
@@ -82,7 +82,7 @@ export type Props = {
82
82
  /** The input will be displayed in full width */
83
83
  block?: boolean;
84
84
  };
85
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
85
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
86
86
  class: undefined;
87
87
  style: undefined;
88
88
  listPosition: string;
@@ -103,7 +103,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
103
103
  customCountriesList: undefined;
104
104
  countryLocale: undefined;
105
105
  countrySelectorWidth: string;
106
- data: undefined;
107
106
  noFormattingAsYouType: boolean;
108
107
  autoFormat: boolean;
109
108
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -133,7 +132,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
133
132
  customCountriesList: undefined;
134
133
  countryLocale: undefined;
135
134
  countrySelectorWidth: string;
136
- data: undefined;
137
135
  noFormattingAsYouType: boolean;
138
136
  autoFormat: boolean;
139
137
  }>>> & {
@@ -144,7 +142,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
144
142
  "onUpdate:country-code"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
145
143
  }, {
146
144
  size: Size;
147
- style: string | false | import("vue").CSSProperties | StyleValue[] | null;
145
+ style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
148
146
  id: string;
149
147
  color: Color;
150
148
  class: any;
@@ -173,7 +171,17 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
173
171
  customCountriesList: Record<CountryCode, string>;
174
172
  countryLocale: string;
175
173
  countrySelectorWidth: string;
176
- }, {}>;
174
+ }, {}>, {
175
+ "no-results"?(_: {}): any;
176
+ "selector-flag"?(_: {
177
+ countryCode: CountryCode;
178
+ }): any;
179
+ "country-list-flag"?(_: {
180
+ countryCode: import("./types").ModelValueSimple;
181
+ option: import("./MazSelect.vue").NormalizedOption;
182
+ isSelected: boolean;
183
+ }): any;
184
+ }>;
177
185
  export default _default;
178
186
  type __VLS_WithDefaults<P, D> = {
179
187
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
@@ -183,6 +191,11 @@ type __VLS_WithDefaults<P, D> = {
183
191
  type __VLS_Prettify<T> = {
184
192
  [K in keyof T]: T[K];
185
193
  } & {};
194
+ type __VLS_WithTemplateSlots<T, S> = T & {
195
+ new (): {
196
+ $slots: S;
197
+ };
198
+ };
186
199
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
187
200
  type __VLS_TypePropsToOption<T> = {
188
201
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1,109 +1,106 @@
1
- import { type PropType } from 'vue';
2
1
  import type { Color, Size } from './types';
3
2
  export type { Color, Size };
4
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
- style: {
6
- type: PropType<import("vue").StyleValue>;
7
- default: undefined;
8
- };
9
- class: {
10
- type: PropType<any>;
11
- default: undefined;
12
- };
13
- label: {
14
- type: StringConstructor;
15
- default: undefined;
16
- };
17
- modelValue: {
18
- type: StringConstructor;
19
- default: undefined;
20
- };
21
- value: {
22
- type: StringConstructor;
23
- required: true;
24
- };
25
- name: {
26
- type: StringConstructor;
27
- required: true;
28
- };
29
- id: {
30
- type: StringConstructor;
31
- default: undefined;
32
- };
33
- color: {
34
- type: PropType<Color>;
35
- default: string;
36
- };
37
- size: {
38
- type: PropType<Size>;
39
- default: string;
40
- };
41
- disabled: {
42
- type: BooleanConstructor;
43
- default: boolean;
44
- };
45
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
- change: (...args: any[]) => void;
47
- "update:model-value": (...args: any[]) => void;
48
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
49
- style: {
50
- type: PropType<import("vue").StyleValue>;
51
- default: undefined;
52
- };
53
- class: {
54
- type: PropType<any>;
55
- default: undefined;
56
- };
57
- label: {
58
- type: StringConstructor;
59
- default: undefined;
60
- };
61
- modelValue: {
62
- type: StringConstructor;
63
- default: undefined;
64
- };
65
- value: {
66
- type: StringConstructor;
67
- required: true;
68
- };
69
- name: {
70
- type: StringConstructor;
71
- required: true;
72
- };
73
- id: {
74
- type: StringConstructor;
75
- default: undefined;
76
- };
77
- color: {
78
- type: PropType<Color>;
79
- default: string;
80
- };
81
- size: {
82
- type: PropType<Size>;
83
- default: string;
84
- };
85
- disabled: {
86
- type: BooleanConstructor;
87
- default: boolean;
88
- };
89
- }>> & {
90
- onChange?: ((...args: any[]) => any) | undefined;
91
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
+ /** Style attribut of the component root element */
5
+ style?: import("vue").StyleValue;
6
+ /** Class attribut of the component root element */
7
+ class?: any;
8
+ /** The id of the radio */
9
+ id?: string | undefined;
10
+ /** @model The value of the radio */
11
+ modelValue?: string | number | boolean | undefined;
12
+ /** The value of the radio */
13
+ value: string | number | boolean;
14
+ /** The name of the radio */
15
+ name: string;
16
+ /** The label of the radio */
17
+ label?: string | undefined;
18
+ /** The color of the radio */
19
+ color?: Color | undefined;
20
+ /** The size of the radio */
21
+ size?: Size | undefined;
22
+ /** The disabled state of the radio */
23
+ disabled?: boolean | undefined;
24
+ }>, {
25
+ style: undefined;
26
+ class: undefined;
27
+ id: undefined;
28
+ modelValue: undefined;
29
+ label: undefined;
30
+ color: string;
31
+ size: string;
32
+ disabled: boolean;
33
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ "update:model-value": (value: string | number | boolean) => void;
35
+ change: (value: string | number | boolean) => void;
36
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
37
+ /** Style attribut of the component root element */
38
+ style?: import("vue").StyleValue;
39
+ /** Class attribut of the component root element */
40
+ class?: any;
41
+ /** The id of the radio */
42
+ id?: string | undefined;
43
+ /** @model The value of the radio */
44
+ modelValue?: string | number | boolean | undefined;
45
+ /** The value of the radio */
46
+ value: string | number | boolean;
47
+ /** The name of the radio */
48
+ name: string;
49
+ /** The label of the radio */
50
+ label?: string | undefined;
51
+ /** The color of the radio */
52
+ color?: Color | undefined;
53
+ /** The size of the radio */
54
+ size?: Size | undefined;
55
+ /** The disabled state of the radio */
56
+ disabled?: boolean | undefined;
57
+ }>, {
58
+ style: undefined;
59
+ class: undefined;
60
+ id: undefined;
61
+ modelValue: undefined;
62
+ label: undefined;
63
+ color: string;
64
+ size: string;
65
+ disabled: boolean;
66
+ }>>> & {
67
+ onChange?: ((value: string | number | boolean) => any) | undefined;
68
+ "onUpdate:model-value"?: ((value: string | number | boolean) => any) | undefined;
92
69
  }, {
93
70
  size: Size;
94
71
  label: string;
95
- style: import("vue").StyleValue;
72
+ style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
96
73
  id: string;
97
74
  disabled: boolean;
98
75
  color: Color;
99
76
  class: any;
100
- modelValue: string;
77
+ modelValue: string | number | boolean;
101
78
  }, {}>, {
102
- default?(_: {}): any;
79
+ default?(_: {
80
+ isSelected: boolean;
81
+ value: string | number | boolean;
82
+ }): any;
103
83
  }>;
104
84
  export default _default;
85
+ type __VLS_WithDefaults<P, D> = {
86
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
87
+ default: D[K];
88
+ }> : P[K];
89
+ };
90
+ type __VLS_Prettify<T> = {
91
+ [K in keyof T]: T[K];
92
+ } & {};
105
93
  type __VLS_WithTemplateSlots<T, S> = T & {
106
94
  new (): {
107
95
  $slots: S;
108
96
  };
109
97
  };
98
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
99
+ type __VLS_TypePropsToOption<T> = {
100
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
101
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
102
+ } : {
103
+ type: import('vue').PropType<T[K]>;
104
+ required: true;
105
+ };
106
+ };
@@ -1,71 +1,76 @@
1
- import type { PropType } from 'vue';
1
+ import { type StyleValue } from 'vue';
2
2
  import type { Color } from './types';
3
- export interface ButtonsRadioOption {
3
+ export type ButtonsRadioOption = {
4
+ /** The label of the option */
4
5
  label: string;
5
- value: string | number;
6
- }
7
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
8
- modelValue: {
9
- type: (StringConstructor | NumberConstructor)[];
10
- default: undefined;
11
- };
12
- options: {
13
- type: PropType<ButtonsRadioOption[]>;
14
- required: true;
15
- };
16
- name: {
17
- type: PropType<string>;
18
- default: string;
19
- };
20
- color: {
21
- type: PropType<Color>;
22
- default: string;
23
- };
24
- noElevation: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- orientation: {
29
- type: PropType<"col" | "row">;
30
- default: string;
31
- };
32
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
- change: (...args: any[]) => void;
34
- "update:model-value": (...args: any[]) => void;
35
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
- modelValue: {
37
- type: (StringConstructor | NumberConstructor)[];
38
- default: undefined;
39
- };
40
- options: {
41
- type: PropType<ButtonsRadioOption[]>;
42
- required: true;
43
- };
44
- name: {
45
- type: PropType<string>;
46
- default: string;
47
- };
48
- color: {
49
- type: PropType<Color>;
50
- default: string;
51
- };
52
- noElevation: {
53
- type: BooleanConstructor;
54
- default: boolean;
55
- };
56
- orientation: {
57
- type: PropType<"col" | "row">;
58
- default: string;
59
- };
60
- }>> & {
61
- onChange?: ((...args: any[]) => any) | undefined;
62
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
6
+ /** The value of the option */
7
+ value: string | number | boolean;
8
+ /** The classes to apply to the option */
9
+ classes?: any;
10
+ /** The style to apply to the option */
11
+ style?: StyleValue;
12
+ } & Record<string, unknown>;
13
+ export type Props = {
14
+ /** @model The value of the selected option */
15
+ modelValue?: string | number | boolean;
16
+ /** The options to display */
17
+ options: ButtonsRadioOption[];
18
+ /** The name of the radio group */
19
+ name?: string;
20
+ /** The color of the selected radio buttons */
21
+ color?: Color;
22
+ /** Add elevation to the radio buttons */
23
+ elevation?: boolean;
24
+ /**
25
+ * The orientation of the radio buttons
26
+ * @values 'row' | 'col'
27
+ */
28
+ orientation?: 'row' | 'col';
29
+ /** Disable the wrap of the radio buttons */
30
+ noWrap?: boolean;
31
+ /** Make all radio buttons the same size */
32
+ equalSize?: boolean;
33
+ /** Display a selector icon */
34
+ selector?: boolean;
35
+ /** The component will be displayed in full width */
36
+ block?: boolean;
37
+ };
38
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
39
+ modelValue: undefined;
40
+ name: string;
41
+ color: string;
42
+ elevation: boolean;
43
+ orientation: string;
44
+ noWrap: boolean;
45
+ equalSize: boolean;
46
+ selector: boolean;
47
+ block: boolean;
48
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
+ "update:model-value": (value: string | number | boolean) => void;
50
+ change: (value: string | number | boolean) => void;
51
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
52
+ modelValue: undefined;
53
+ name: string;
54
+ color: string;
55
+ elevation: boolean;
56
+ orientation: string;
57
+ noWrap: boolean;
58
+ equalSize: boolean;
59
+ selector: boolean;
60
+ block: boolean;
61
+ }>>> & {
62
+ onChange?: ((value: string | number | boolean) => any) | undefined;
63
+ "onUpdate:model-value"?: ((value: string | number | boolean) => any) | undefined;
63
64
  }, {
64
65
  name: string;
65
66
  orientation: "col" | "row";
66
67
  color: Color;
67
- noElevation: boolean;
68
- modelValue: string | number;
68
+ block: boolean;
69
+ modelValue: string | number | boolean;
70
+ elevation: boolean;
71
+ noWrap: boolean;
72
+ equalSize: boolean;
73
+ selector: boolean;
69
74
  }, {}>, {
70
75
  default?(_: {
71
76
  option: ButtonsRadioOption;
@@ -73,8 +78,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
73
78
  }): any;
74
79
  }>;
75
80
  export default _default;
81
+ type __VLS_WithDefaults<P, D> = {
82
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
83
+ default: D[K];
84
+ }> : P[K];
85
+ };
86
+ type __VLS_Prettify<T> = {
87
+ [K in keyof T]: T[K];
88
+ } & {};
76
89
  type __VLS_WithTemplateSlots<T, S> = T & {
77
90
  new (): {
78
91
  $slots: S;
79
92
  };
80
93
  };
94
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
95
+ type __VLS_TypePropsToOption<T> = {
96
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
97
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
98
+ } : {
99
+ type: import('vue').PropType<T[K]>;
100
+ required: true;
101
+ };
102
+ };