maz-ui 3.37.0 → 3.37.2

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 (74) hide show
  1. package/components/MazCheckbox.d.ts +4 -0
  2. package/components/MazCheckbox.mjs +31 -24
  3. package/components/MazInput.d.ts +2 -0
  4. package/components/MazInput.mjs +1 -1
  5. package/components/MazInputNumber.d.ts +2 -0
  6. package/components/MazInputNumber.mjs +1 -1
  7. package/components/MazInputPrice.d.ts +8 -0
  8. package/components/MazInputPrice.mjs +1 -1
  9. package/components/MazInputTags.d.ts +2 -0
  10. package/components/MazInputTags.mjs +1 -1
  11. package/components/MazPhoneNumberInput.d.ts +2 -0
  12. package/components/MazPhoneNumberInput.mjs +1 -1
  13. package/components/MazPicker.d.ts +2 -0
  14. package/components/MazPicker.mjs +1 -1
  15. package/components/MazRadio.d.ts +9 -0
  16. package/components/MazRadio.mjs +44 -37
  17. package/components/MazSelect.d.ts +2 -0
  18. package/components/MazSelect.mjs +1 -1
  19. package/components/MazTable.mjs +1 -1
  20. package/components/MazTextarea.mjs +1 -1
  21. package/components/assets/MazCheckbox.css +1 -1
  22. package/components/assets/MazInput.css +1 -1
  23. package/components/assets/MazInputNumber.css +1 -1
  24. package/components/assets/MazInputPrice.css +1 -1
  25. package/components/assets/MazInputTags.css +1 -1
  26. package/components/assets/MazPhoneNumberInput.css +1 -1
  27. package/components/assets/MazPicker.css +1 -1
  28. package/components/assets/MazRadio.css +1 -1
  29. package/components/assets/MazSelect.css +1 -1
  30. package/components/assets/MazTable.css +1 -1
  31. package/components/assets/MazTextarea.css +1 -1
  32. package/components/chunks/{MazBtn-C3z_znl5.mjs → MazBtn-Bo51KtKY.mjs} +2 -2
  33. package/components/chunks/{MazBtn-CuYCQCM2.mjs → MazBtn-CDQAW3fg.mjs} +2 -2
  34. package/components/chunks/MazBtn-D-Axz-X0.mjs +151 -0
  35. package/components/chunks/{MazBtn-D7b2VFGB.mjs → MazBtn-Koayc6g_.mjs} +2 -2
  36. package/components/chunks/{MazBtn-CS2F1-mC.mjs → MazBtn-pLRsSxug.mjs} +2 -2
  37. package/components/chunks/{MazCheckbox-BTM3Xpxz.mjs → MazCheckbox-CXVe5vda.mjs} +30 -23
  38. package/components/chunks/{MazCheckbox-COTppi08.mjs → MazCheckbox-DBlQwP82.mjs} +30 -23
  39. package/components/chunks/{MazIcon-Bspx_Ojq.mjs → MazIcon-BTsi1M-S.mjs} +1 -1
  40. package/components/chunks/{MazInput-C1r0b8BB.mjs → MazInput-Caas-0Nk.mjs} +19 -17
  41. package/components/chunks/{MazInputNumber-DJWxTvJ0.mjs → MazInputNumber-CnoCQQzg.mjs} +85 -81
  42. package/components/chunks/{MazInputPrice-CmX_rC0L.mjs → MazInputPrice---5nCUKm.mjs} +57 -53
  43. package/components/chunks/{MazInputTags-pm_5HtHM.mjs → MazInputTags-CipoVBP2.mjs} +83 -79
  44. package/components/chunks/{MazPhoneNumberInput-CVz5eTvG.mjs → MazPhoneNumberInput-CsX6Kqob.mjs} +402 -395
  45. package/components/chunks/{MazPicker-DP1zd8tt.mjs → MazPicker-CfhI75aw.mjs} +67 -62
  46. package/components/chunks/{MazPickerCalendar-qjcDNw86.mjs → MazPickerCalendar-DnkNE-Am.mjs} +3 -3
  47. package/components/chunks/{MazPickerHeader-CozeYkFf.mjs → MazPickerHeader-Vt86yzXS.mjs} +1 -1
  48. package/components/chunks/{MazPickerMonthSwitcher-aaUELZpE.mjs → MazPickerMonthSwitcher-zfKhsjW1.mjs} +2 -2
  49. package/components/chunks/{MazPickerShortcuts-ppox8lXf.mjs → MazPickerShortcuts-DUIKfOO8.mjs} +2 -2
  50. package/components/chunks/{MazPickerTime-DmpypIWr.mjs → MazPickerTime-B2znRxr2.mjs} +2 -2
  51. package/components/chunks/{MazPickerYearSwitcher-BNBvipzs.mjs → MazPickerYearSwitcher-CB339kof.mjs} +3 -3
  52. package/components/chunks/{MazSelect-DGEof7R3.mjs → MazSelect-DZeXglR8.mjs} +117 -109
  53. package/components/chunks/{MazSpinner-CTdeHHNH.mjs → MazSpinner-BAhgxOgg.mjs} +1 -1
  54. package/components/chunks/{MazSpinner-DmFFdtxB.mjs → MazSpinner-CJaSrYbQ.mjs} +1 -1
  55. package/components/chunks/{MazSpinner-KKcK5-QF.mjs → MazSpinner-CORsBFCP.mjs} +1 -1
  56. package/components/chunks/{MazSpinner-DTZHIIMh.mjs → MazSpinner-CVBVegaS.mjs} +1 -1
  57. package/components/chunks/MazSpinner-CkdjTE0y.mjs +38 -0
  58. package/components/chunks/{MazSpinner-DZTqt2Yn.mjs → MazSpinner-DECa8Pby.mjs} +1 -1
  59. package/components/chunks/{MazSpinner-DUVEeU4h.mjs → MazSpinner-Dq4o-_GM.mjs} +1 -1
  60. package/components/chunks/{MazSpinner-CiPbsWOG.mjs → MazSpinner-DqXjnLKa.mjs} +1 -1
  61. package/components/chunks/{MazTable-BhDfeDU1.mjs → MazTable-DrFqDO-J.mjs} +214 -199
  62. package/nuxt/index.json +1 -1
  63. package/package.json +1 -1
  64. package/types/components/MazCheckbox.vue.d.ts +4 -0
  65. package/types/components/MazInput.vue.d.ts +2 -0
  66. package/types/components/MazInputNumber.vue.d.ts +2 -0
  67. package/types/components/MazInputPrice.vue.d.ts +8 -0
  68. package/types/components/MazInputTags.vue.d.ts +2 -0
  69. package/types/components/MazPhoneNumberInput.vue.d.ts +2 -0
  70. package/types/components/MazPicker.vue.d.ts +2 -0
  71. package/types/components/MazRadio.vue.d.ts +9 -0
  72. package/types/components/MazSelect.vue.d.ts +2 -0
  73. package/components/chunks/MazBtn-OUDBhJKd.mjs +0 -151
  74. package/components/chunks/MazSpinner-yPD_Biya.mjs +0 -38
package/nuxt/index.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.37.0"
7
+ "version": "3.37.2"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.37.0",
3
+ "version": "3.37.2",
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",
@@ -10,12 +10,14 @@ export type Props = {
10
10
  value?: string | number | boolean;
11
11
  name?: string;
12
12
  size?: Size;
13
+ label?: string;
13
14
  disabled?: boolean;
14
15
  };
15
16
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
16
17
  style: undefined;
17
18
  class: undefined;
18
19
  modelValue: undefined;
20
+ label: undefined;
19
21
  id: undefined;
20
22
  color: string;
21
23
  value: undefined;
@@ -29,6 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
29
31
  style: undefined;
30
32
  class: undefined;
31
33
  modelValue: undefined;
34
+ label: undefined;
32
35
  id: undefined;
33
36
  color: string;
34
37
  value: undefined;
@@ -40,6 +43,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
40
43
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
41
44
  }, {
42
45
  size: Size;
46
+ label: string;
43
47
  style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
44
48
  name: string;
45
49
  id: string;
@@ -75,6 +75,8 @@ export type Props = {
75
75
  rightIcon?: string | Icon;
76
76
  /** Size of the rounded */
77
77
  roundedSize?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
78
+ /** The input will be displayed in full width */
79
+ block?: boolean;
78
80
  };
79
81
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
80
82
  style: undefined;
@@ -24,6 +24,8 @@ export type Props = {
24
24
  textCenter?: boolean;
25
25
  /** The inputmode attribute for the input. */
26
26
  inputmode?: HTMLAttributes['inputmode'];
27
+ /** The input will be displayed in full width */
28
+ block?: boolean;
27
29
  };
28
30
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
29
31
  style: undefined;
@@ -1,10 +1,18 @@
1
1
  export type Props = {
2
+ /** @model The value of the input */
2
3
  modelValue?: number | string;
4
+ /** The currency to use */
3
5
  currency?: string;
6
+ /** The locale to use */
4
7
  locale?: string;
8
+ /** The minimum value that the input can accept */
5
9
  min?: number;
10
+ /** The maximum value that the input can accept */
6
11
  max?: number;
12
+ /** The input will be displayed without icon */
7
13
  noIcon?: boolean;
14
+ /** The input will be displayed in full width */
15
+ block?: boolean;
8
16
  };
9
17
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
10
18
  modelValue: undefined;
@@ -24,6 +24,8 @@ export type Props = {
24
24
  size?: Size;
25
25
  /** The color of the input */
26
26
  color?: Color;
27
+ /** The input will be displayed in full width */
28
+ block?: boolean;
27
29
  };
28
30
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
29
31
  style: undefined;
@@ -79,6 +79,8 @@ export type Props = {
79
79
  countrySelectorDisplayName?: boolean;
80
80
  /** Choose the width of the country selector */
81
81
  countrySelectorWidth?: string;
82
+ /** The input will be displayed in full width */
83
+ block?: boolean;
82
84
  };
83
85
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
84
86
  class: undefined;
@@ -65,6 +65,8 @@ export type Props = {
65
65
  disabledDates?: string[];
66
66
  /** The disabled hours of the time picker */
67
67
  disabledHours?: number[];
68
+ /** The input will be displayed in full width */
69
+ block?: boolean;
68
70
  };
69
71
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
70
72
  style: undefined;
@@ -10,6 +10,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
10
10
  type: PropType<any>;
11
11
  default: undefined;
12
12
  };
13
+ label: {
14
+ type: StringConstructor;
15
+ default: undefined;
16
+ };
13
17
  modelValue: {
14
18
  type: StringConstructor;
15
19
  default: undefined;
@@ -50,6 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
50
54
  type: PropType<any>;
51
55
  default: undefined;
52
56
  };
57
+ label: {
58
+ type: StringConstructor;
59
+ default: undefined;
60
+ };
53
61
  modelValue: {
54
62
  type: StringConstructor;
55
63
  default: undefined;
@@ -83,6 +91,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
83
91
  "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
84
92
  }, {
85
93
  size: Size;
94
+ label: string;
86
95
  style: import("vue").StyleValue;
87
96
  id: string;
88
97
  disabled: boolean;
@@ -48,6 +48,8 @@ export type Props = {
48
48
  required?: boolean;
49
49
  /** Disable the component */
50
50
  disabled?: boolean;
51
+ /** The input will be displayed in full width */
52
+ block?: boolean;
51
53
  };
52
54
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
53
55
  id: undefined;
@@ -1,151 +0,0 @@
1
- import '../assets/MazBtn.css';
2
- import { defineComponent as E, defineAsyncComponent as h, useAttrs as R, useSlots as S, onBeforeMount as w, computed as l, openBlock as n, createBlock as a, resolveDynamicComponent as r, normalizeClass as s, withCtx as A, createElementBlock as u, createCommentVNode as t, renderSlot as d, unref as c } from "vue";
3
- import { _ as D } from "./MazPhoneNumberInput-CVz5eTvG.mjs";
4
- const P = /* @__PURE__ */ E({
5
- __name: "MazBtn",
6
- props: {
7
- variant: { default: "button" },
8
- size: { default: "md" },
9
- color: { default: "primary" },
10
- type: { default: "button" },
11
- rounded: { type: Boolean },
12
- noRounded: { type: Boolean },
13
- outline: { type: Boolean },
14
- pastel: { type: Boolean },
15
- block: { type: Boolean },
16
- noUnderline: { type: Boolean },
17
- noLeading: { type: Boolean },
18
- loading: { type: Boolean },
19
- disabled: { type: Boolean },
20
- fab: { type: Boolean },
21
- icon: { default: void 0 },
22
- leftIcon: { default: void 0 },
23
- rightIcon: { default: void 0 },
24
- noPadding: { type: Boolean },
25
- noElevation: { type: Boolean },
26
- contentClass: { default: void 0 }
27
- },
28
- setup(g) {
29
- const B = h(() => import("./MazSpinner-CTdeHHNH.mjs")), f = h(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: k, to: I } = R(), p = S(), e = g;
30
- w(() => {
31
- e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
32
- });
33
- const v = l(() => k ? "a" : I ? "router-link" : "button"), z = l(
34
- () => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
35
- ), m = l(
36
- () => (e.loading || e.disabled) && v.value === "button"
37
- ), C = l(() => m.value ? "--cursor-default" : "--cursor-pointer"), $ = l(() => `--is-${e.variant}`), i = l(() => e.loading && e.variant === "button"), b = l(() => !!p["left-icon"] || e.leftIcon), y = l(() => !!p["right-icon"] || e.rightIcon), M = l(() => b.value || y.value), T = l(() => e.fab && (e.icon || !!p.icon)), L = l(() => v.value === "button" ? e.type : void 0);
38
- return (o, U) => (n(), a(r(v.value), {
39
- disabled: m.value,
40
- class: s(["m-btn", [
41
- `--${o.size}`,
42
- z.value,
43
- C.value,
44
- $.value,
45
- {
46
- "--block": o.block,
47
- "--no-underline": o.noUnderline,
48
- "--no-leading": o.noLeading,
49
- "--fab": o.fab,
50
- "--loading": o.loading,
51
- "--disabled": m.value,
52
- "--icon": M.value,
53
- "--rounded": o.rounded,
54
- "--no-rounded": o.noRounded,
55
- "--no-padding": o.noPadding,
56
- "--no-elevation": o.noElevation
57
- }
58
- ]]),
59
- type: L.value
60
- }, {
61
- default: A(() => [
62
- b.value ? (n(), u(
63
- "div",
64
- {
65
- key: 0,
66
- class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": i.value }])
67
- },
68
- [
69
- t(`
70
- @slot left-icon - The icon to display on the left of the button
71
- `),
72
- d(o.$slots, "left-icon", {}, () => [
73
- typeof o.leftIcon == "string" ? (n(), a(c(f), {
74
- key: 0,
75
- name: o.leftIcon
76
- }, null, 8, ["name"])) : o.leftIcon ? (n(), a(r(o.leftIcon), { key: 1 })) : t("v-if", !0)
77
- ], !0)
78
- ],
79
- 2
80
- /* CLASS */
81
- )) : t("v-if", !0),
82
- T.value ? (n(), u(
83
- "div",
84
- {
85
- key: 1,
86
- class: s(["m-btn__icon", { "maz-invisible": i.value }])
87
- },
88
- [
89
- t(`
90
- @slot icon - The icon to display on the fab button
91
- `),
92
- d(o.$slots, "icon", {}, () => [
93
- typeof o.icon == "string" ? (n(), a(c(f), {
94
- key: 0,
95
- name: o.icon
96
- }, null, 8, ["name"])) : o.icon ? (n(), a(r(o.icon), { key: 1 })) : t("v-if", !0)
97
- ], !0)
98
- ],
99
- 2
100
- /* CLASS */
101
- )) : t("v-if", !0),
102
- o.$slots.default ? (n(), u(
103
- "span",
104
- {
105
- key: 2,
106
- class: s([{ "maz-invisible": i.value }, o.contentClass])
107
- },
108
- [
109
- t(`
110
- @slot default - The content of the button
111
- `),
112
- d(o.$slots, "default", {}, void 0, !0)
113
- ],
114
- 2
115
- /* CLASS */
116
- )) : t("v-if", !0),
117
- y.value ? (n(), u(
118
- "div",
119
- {
120
- key: 3,
121
- class: s(["m-btn__icon-right", { "maz-invisible": i.value }])
122
- },
123
- [
124
- t(`
125
- @slot right-icon - The icon to display on the right of the button
126
- `),
127
- d(o.$slots, "right-icon", {}, () => [
128
- typeof o.rightIcon == "string" ? (n(), a(c(f), {
129
- key: 0,
130
- name: o.rightIcon
131
- }, null, 8, ["name"])) : o.rightIcon ? (n(), a(r(o.rightIcon), { key: 1 })) : t("v-if", !0)
132
- ], !0)
133
- ],
134
- 2
135
- /* CLASS */
136
- )) : t("v-if", !0),
137
- i.value ? (n(), a(c(B), {
138
- key: 4,
139
- class: "m-btn-loader",
140
- size: "2em",
141
- color: o.color
142
- }, null, 8, ["color"])) : t("v-if", !0)
143
- ]),
144
- _: 3
145
- /* FORWARDED */
146
- }, 8, ["disabled", "class", "type"]));
147
- }
148
- }), V = /* @__PURE__ */ D(P, [["__scopeId", "data-v-395e94fc"]]);
149
- export {
150
- V as default
151
- };
@@ -1,38 +0,0 @@
1
- import '../assets/MazSpinner.css';
2
- import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
3
- import { _ as p } from "./MazInputPrice-CmX_rC0L.mjs";
4
- const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
5
- "path",
6
- { d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
7
- null,
8
- -1
9
- /* HOISTED */
10
- )), m = [
11
- l
12
- ], h = /* @__PURE__ */ t({
13
- __name: "MazSpinner",
14
- props: {
15
- size: { type: String, default: "2em" },
16
- color: {
17
- type: String,
18
- default: "primary"
19
- }
20
- },
21
- setup(e) {
22
- return (_, u) => (o(), c("svg", {
23
- width: e.size,
24
- height: e.size,
25
- version: "1.1",
26
- xmlns: "http://www.w3.org/2000/svg",
27
- x: "0px",
28
- y: "0px",
29
- viewBox: "0 0 50 50",
30
- "xml:space": "preserve",
31
- class: n(["m-spinner", `m-spinner--${e.color}`]),
32
- style: { "enable-background": "new 0 0 50 50" }
33
- }, m, 10, d));
34
- }
35
- }), f = /* @__PURE__ */ p(h, [["__scopeId", "data-v-c67298ec"]]);
36
- export {
37
- f as default
38
- };