@maz-ui/mcp 4.9.1 → 5.0.0-beta.0

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 (116) hide show
  1. package/dist/mcp.mjs +1 -1
  2. package/docs/generated-docs/maz-alert.doc.md +1 -1
  3. package/docs/generated-docs/maz-avatar.doc.md +1 -1
  4. package/docs/generated-docs/maz-badge.doc.md +8 -8
  5. package/docs/generated-docs/maz-btn.doc.md +26 -26
  6. package/docs/generated-docs/maz-card.doc.md +19 -19
  7. package/docs/generated-docs/maz-chart.doc.md +8 -8
  8. package/docs/generated-docs/maz-container.doc.md +20 -20
  9. package/docs/generated-docs/maz-drawer.doc.md +8 -8
  10. package/docs/generated-docs/maz-dropdown.doc.md +1 -1
  11. package/docs/generated-docs/maz-dropzone.doc.md +2 -2
  12. package/docs/generated-docs/maz-gallery.doc.md +15 -15
  13. package/docs/generated-docs/maz-icon.doc.md +11 -14
  14. package/docs/generated-docs/maz-input.doc.md +38 -38
  15. package/docs/generated-docs/maz-lazy-img.doc.md +18 -0
  16. package/docs/generated-docs/maz-link.doc.md +9 -9
  17. package/docs/generated-docs/maz-pagination.doc.md +9 -9
  18. package/docs/generated-docs/maz-popover.doc.md +5 -1
  19. package/docs/generated-docs/maz-radio-buttons.doc.md +17 -17
  20. package/docs/generated-docs/maz-select.doc.md +2 -2
  21. package/docs/generated-docs/maz-skeleton.doc.md +10 -10
  22. package/docs/generated-docs/maz-table.doc.md +37 -37
  23. package/docs/generated-docs/maz-textarea.doc.md +1 -1
  24. package/docs/generated-docs/maz-timeline.doc.md +1 -1
  25. package/docs/src/blog/v4.md +7 -7
  26. package/docs/src/blog/v5.md +186 -0
  27. package/docs/src/components/maz-accordion.md +1 -1
  28. package/docs/src/components/maz-alert.md +15 -15
  29. package/docs/src/components/maz-animated-counter.md +4 -4
  30. package/docs/src/components/maz-avatar.md +2 -2
  31. package/docs/src/components/maz-backdrop.md +7 -7
  32. package/docs/src/components/maz-badge.md +16 -30
  33. package/docs/src/components/maz-bottom-sheet.md +74 -74
  34. package/docs/src/components/maz-btn-group.md +17 -13
  35. package/docs/src/components/maz-btn.md +127 -90
  36. package/docs/src/components/maz-card-spotlight.md +5 -5
  37. package/docs/src/components/maz-card.md +20 -20
  38. package/docs/src/components/maz-carousel.md +14 -14
  39. package/docs/src/components/maz-chart.md +23 -4
  40. package/docs/src/components/maz-checkbox.md +3 -3
  41. package/docs/src/components/maz-checklist.md +19 -19
  42. package/docs/src/components/maz-circular-progress-bar.md +4 -4
  43. package/docs/src/components/maz-container.md +52 -37
  44. package/docs/src/components/maz-date-picker.md +7 -7
  45. package/docs/src/components/maz-dialog-confirm.md +2 -2
  46. package/docs/src/components/maz-drawer.md +14 -14
  47. package/docs/src/components/maz-dropdown.md +27 -12
  48. package/docs/src/components/maz-dropzone.md +6 -6
  49. package/docs/src/components/maz-expand-animation.md +2 -2
  50. package/docs/src/components/maz-fullscreen-loader.md +2 -2
  51. package/docs/src/components/maz-gallery.md +1 -1
  52. package/docs/src/components/maz-icon.md +113 -60
  53. package/docs/src/components/maz-input-code.md +1 -1
  54. package/docs/src/components/maz-input-phone-number.md +89 -88
  55. package/docs/src/components/maz-input-tags.md +2 -2
  56. package/docs/src/components/maz-input.md +42 -12
  57. package/docs/src/components/maz-link.md +28 -10
  58. package/docs/src/components/maz-pagination.md +2 -2
  59. package/docs/src/components/maz-popover.md +236 -235
  60. package/docs/src/components/maz-pull-to-refresh.md +2 -2
  61. package/docs/src/components/maz-radio-buttons.md +11 -11
  62. package/docs/src/components/maz-radio.md +3 -3
  63. package/docs/src/components/maz-read-more.md +7 -7
  64. package/docs/src/components/maz-select-country.md +26 -26
  65. package/docs/src/components/maz-select.md +1 -1
  66. package/docs/src/components/maz-skeleton.md +25 -25
  67. package/docs/src/components/maz-spinner.md +2 -2
  68. package/docs/src/components/maz-stepper.md +5 -5
  69. package/docs/src/components/maz-switch.md +1 -1
  70. package/docs/src/components/maz-table.md +10 -10
  71. package/docs/src/components/maz-tabs.md +17 -17
  72. package/docs/src/components/maz-textarea.md +8 -8
  73. package/docs/src/components/maz-ticker.md +37 -37
  74. package/docs/src/components/maz-timeline.md +9 -9
  75. package/docs/src/composables/use-dialog.md +1 -1
  76. package/docs/src/composables/use-display-names.md +2 -2
  77. package/docs/src/composables/use-form-validator.md +35 -35
  78. package/docs/src/composables/use-idle-timeout.md +3 -3
  79. package/docs/src/composables/use-reading-time.md +5 -5
  80. package/docs/src/composables/use-string-matching.md +4 -4
  81. package/docs/src/composables/use-swipe.md +3 -3
  82. package/docs/src/composables/use-timer.md +3 -3
  83. package/docs/src/composables/use-toast.md +1 -1
  84. package/docs/src/composables/use-user-visibility.md +1 -1
  85. package/docs/src/composables/use-wait.md +2 -2
  86. package/docs/src/directives/click-outside.md +17 -17
  87. package/docs/src/directives/lazy-img.md +5 -5
  88. package/docs/src/directives/tooltip.md +15 -15
  89. package/docs/src/directives/zoom-img.md +1 -1
  90. package/docs/src/ecosystem/eslint-config.md +100 -0
  91. package/docs/src/ecosystem/stylelint-config.md +190 -0
  92. package/docs/src/guide/browser-support.md +81 -0
  93. package/docs/src/guide/getting-started.md +23 -16
  94. package/docs/src/guide/icon-set.md +13 -13
  95. package/docs/src/guide/icons.md +35 -8
  96. package/docs/src/guide/maz-ui-provider.md +6 -6
  97. package/docs/src/guide/migration-v4.md +3 -3
  98. package/docs/src/guide/migration-v5.md +662 -0
  99. package/docs/src/guide/nuxt.md +27 -44
  100. package/docs/src/guide/resolvers.md +2 -2
  101. package/docs/src/guide/tailwind.md +154 -0
  102. package/docs/src/guide/themes.md +258 -485
  103. package/docs/src/guide/vue.md +8 -5
  104. package/docs/src/helpers/capitalize.md +4 -4
  105. package/docs/src/helpers/country-code-to-unicode-flag.md +37 -37
  106. package/docs/src/helpers/currency.md +4 -4
  107. package/docs/src/helpers/date.md +4 -4
  108. package/docs/src/helpers/get-country-flag-url.md +9 -9
  109. package/docs/src/helpers/number.md +5 -5
  110. package/docs/src/index.md +304 -246
  111. package/docs/src/made-with-maz-ui.md +5 -5
  112. package/docs/src/plugins/aos.md +6 -6
  113. package/docs/src/plugins/dialog.md +4 -4
  114. package/docs/src/plugins/toast.md +3 -3
  115. package/docs/src/plugins/wait.md +1 -1
  116. package/package.json +5 -5
@@ -1,38 +1,38 @@
1
1
  ## Props
2
2
 
3
- | Name | Description | Type | Required | Default | Possible values |
4
- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------ | -------- | ----------- | ------------------------------------------------------------------------------------------ |
5
- | **style** | Inline styles to apply to the component root element | `HTMLAttributes['style']` | No | `undefined` | - |
6
- | **class** | CSS classes to apply to the component root element | `HTMLAttributes['class']` | No | `undefined` | - |
7
- | **model-value** | `v-model` <br/>The current value of the input field. This prop is used for two-way data binding with v-model<br/>**Example:** `<MazInput v-model="inputValue" />` | `T` | No | `undefined` | - |
8
- | **placeholder** | Text displayed when the input is empty to guide the user<br/>**Example:** `"Enter your email address"` | `string` | No | `undefined` | - |
9
- | **label** | Floating label that appears inside the input and moves up when focused or filled. Provides better UX than traditional placeholders<br/>**Example:** `"Email Address"` | `string` | No | `undefined` | - |
10
- | **top-label** | Static label displayed above the input field. Unlike the floating label, this remains fixed<br/>**Example:** `"User Information"` | `string` | No | `undefined` | - |
11
- | **assistive-text** | Helper text displayed below the input to provide additional context or validation feedback<br/>**Example:** `"Must contain at least 8 characters"` | `string` | No | `undefined` | - |
12
- | **color** | Theme color that affects the border and focus states of the input<br/>**Example:** `"primary"` | `MazColor` | No | `'primary'` | `primary, secondary, accent, info, success, warning, destructive, contrast` |
13
- | **type** | HTML input type attribute that determines the input behavior and validation<br/>**Example:** `"email"` | `InputHTMLAttributes['type']` | No | `'text'` | `text, password, email, number, tel, url, search, date, time, datetime-local, month, week` |
14
- | **required** | Makes the input field mandatory for form submission<br/>**Example:** `true` | `boolean` | No | `false` | - |
15
- | **disabled** | Disables the input field, preventing user interaction and form submission<br/>**Example:** `false` | `boolean` | No | `false` | - |
16
- | **readonly** | Makes the input field read-only, allowing selection but preventing modification<br/>**Example:** `false` | `boolean` | No | `undefined` | - |
17
- | **id** | Unique identifier for the input element, used for form labels and accessibility<br/>**Example:** `"user-email"` | `string` | No | `undefined` | - |
18
- | **error** | Applies error styling (red border and text) to indicate validation failure<br/>**Example:** `true` | `boolean` | No | `false` | - |
19
- | **success** | Applies success styling (green border and text) to indicate successful validation<br/>**Example:** `true` | `boolean` | No | `false` | - |
20
- | **warning** | Applies warning styling (orange border and text) to indicate potential issues<br/>**Example:** `true` | `boolean` | No | `false` | - |
21
- | **hint** | Alternative text that replaces the label when provided. Useful for contextual hints<br/>**Example:** `"Optional field"` | `string` | No | `undefined` | - |
22
- | **input-classes** | Additional CSS classes to apply specifically to the input wrapper element<br/>**Example:** `"custom-input-wrapper"` | `string` | No | `undefined` | - |
23
- | **border** | Controls whether the input has a visible border. Set to false for borderless inputs<br/>**Example:** `true` | `boolean` | No | `true` | - |
24
- | **inputmode** | HTML inputmode attribute that provides hints for virtual keyboards on mobile devices<br/>**Example:** `"numeric"` | `InputHTMLAttributes['inputmode']` | No | `'text'` | `text, numeric, decimal, tel, search, email, url` |
25
- | **size** | Controls the height and text size of the input component<br/>**Example:** `"md"` | `MazSize` | No | `'md'` | `xs, sm, md, lg, xl, mini` |
26
- | **debounce** | Enables input debouncing to limit the frequency of value updates. When true, uses 500ms delay. When a number, uses that value as delay in milliseconds<br/>**Example:** `true` | `boolean \| number` | No | `false` | - |
27
- | **auto-focus** | Automatically focuses the input when the component mounts<br/>**Example:** `false` | `boolean` | No | `false` | - |
28
- | **border-active** | When true, shows the colored border immediately instead of only on focus<br/>**Example:** `false` | `boolean` | No | `false` | - |
29
- | **left-icon** | Icon displayed on the left side of the input. Can be an icon name string or icon component<br/>**Example:** `"user"` | `string \| IconComponent` | No | `undefined` | - |
30
- | **right-icon** | Icon displayed on the right side of the input. Can be an icon name string or icon component<br/>**Example:** `"search"` | `string \| IconComponent` | No | `undefined` | - |
31
- | **rounded-size** | Controls the border radius of the input component<br/>**Example:** `"lg"` | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full' \| 'base'` | No | `'base'` | `none, sm, md, lg, xl, full` |
32
- | **block** | Makes the input expand to the full width of its container<br/>**Example:** `false` | `boolean` | No | `undefined` | - |
33
- | **name** | The name of the input field. Used for form submission and validation<br/>**Example:** `"email"` | `string` | No | `undefined` | - |
34
- | **autocomplete** | The autocomplete attribute for the input field. Used for form submission and validation<br/>**Example:** `"email"` | `string` | No | `undefined` | - |
35
- | **loading** | Loading state for the input field. Used to show a loading spinner | `boolean` | No | `false` | - |
3
+ | Name | Description | Type | Required | Default | Possible values |
4
+ | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | -------- | ----------- | ------------------------------------------------------------------------------------------ |
5
+ | **style** | Inline styles to apply to the component root element | `HTMLAttributes['style']` | No | `undefined` | - |
6
+ | **class** | CSS classes to apply to the component root element | `HTMLAttributes['class']` | No | `undefined` | - |
7
+ | **model-value** | `v-model` <br/>The current value of the input field. This prop is used for two-way data binding with v-model<br/>**Example:** `<MazInput v-model="inputValue" />` | `T` | No | `undefined` | - |
8
+ | **placeholder** | Text displayed when the input is empty to guide the user<br/>**Example:** `"Enter your email address"` | `string` | No | `undefined` | - |
9
+ | **label** | Floating label that appears inside the input and moves up when focused or filled. Provides better UX than traditional placeholders<br/>**Example:** `"Email Address"` | `string` | No | `undefined` | - |
10
+ | **top-label** | Static label displayed above the input field. Unlike the floating label, this remains fixed<br/>**Example:** `"User Information"` | `string` | No | `undefined` | - |
11
+ | **assistive-text** | Helper text displayed below the input to provide additional context or validation feedback<br/>**Example:** `"Must contain at least 8 characters"` | `string` | No | `undefined` | - |
12
+ | **color** | Theme color that affects the border and focus states of the input<br/>**Example:** `"primary"` | `MazColor` | No | `'primary'` | `primary, secondary, accent, info, success, warning, destructive, contrast` |
13
+ | **type** | HTML input type attribute that determines the input behavior and validation<br/>**Example:** `"email"` | `InputHTMLAttributes['type']` | No | `'text'` | `text, password, email, number, tel, url, search, date, time, datetime-local, month, week` |
14
+ | **required** | Makes the input field mandatory for form submission<br/>**Example:** `true` | `boolean` | No | `false` | - |
15
+ | **disabled** | Disables the input field, preventing user interaction and form submission<br/>**Example:** `false` | `boolean` | No | `false` | - |
16
+ | **readonly** | Makes the input field read-only, allowing selection but preventing modification<br/>**Example:** `false` | `boolean` | No | `undefined` | - |
17
+ | **id** | Unique identifier for the input element, used for form labels and accessibility<br/>**Example:** `"user-email"` | `string` | No | `undefined` | - |
18
+ | **error** | Applies error styling (red border and text) to indicate validation failure<br/>**Example:** `true` | `boolean` | No | `false` | - |
19
+ | **success** | Applies success styling (green border and text) to indicate successful validation<br/>**Example:** `true` | `boolean` | No | `false` | - |
20
+ | **warning** | Applies warning styling (orange border and text) to indicate potential issues<br/>**Example:** `true` | `boolean` | No | `false` | - |
21
+ | **hint** | Alternative text that replaces the label when provided. Useful for contextual hints<br/>**Example:** `"Optional field"` | `string` | No | `undefined` | - |
22
+ | **input-classes** | Additional CSS classes to apply specifically to the input wrapper element<br/>**Example:** `"custom-input-wrapper"` | `string` | No | `undefined` | - |
23
+ | **border** | Controls whether the input has a visible border. Set to false for borderless inputs<br/>**Example:** `true` | `boolean` | No | `true` | - |
24
+ | **inputmode** | HTML inputmode attribute that provides hints for virtual keyboards on mobile devices<br/>**Example:** `"numeric"` | `InputHTMLAttributes['inputmode']` | No | `'text'` | `text, numeric, decimal, tel, search, email, url` |
25
+ | **size** | Controls the height and text size of the input component<br/>**Example:** `"md"` | `MazSize` | No | `'md'` | `xs, sm, md, lg, xl, mini` |
26
+ | **debounce** | Enables input debouncing to limit the frequency of value updates. When true, uses 500ms delay. When a number, uses that value as delay in milliseconds<br/>**Example:** `true` | `boolean \| number` | No | `false` | - |
27
+ | **auto-focus** | Automatically focuses the input when the component mounts<br/>**Example:** `false` | `boolean` | No | `false` | - |
28
+ | **border-active** | When true, shows the colored border immediately instead of only on focus<br/>**Example:** `false` | `boolean` | No | `false` | - |
29
+ | **start-icon** | Icon displayed on the inline-start edge of the input (left in LTR, right in RTL). Accepts a bare value (Vue component, raw SVG string, URL or `data:` URI) or a full `MazIconProps` object for fine-grained control (size, title, svgAttributes, fallback, …). | `MazIconLike` | No | `undefined` | - |
30
+ | **end-icon** | Icon displayed on the inline-end edge of the input (right in LTR, left in RTL). Accepts a bare value or a full `MazIconProps` object. | `MazIconLike` | No | `undefined` | - |
31
+ | **rounded-size** | Controls the border radius of the input component<br/>**Example:** `"lg"` | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | No | `'md'` | `none, sm, md, lg, xl, full` |
32
+ | **block** | Makes the input expand to the full width of its container<br/>**Example:** `false` | `boolean` | No | `undefined` | - |
33
+ | **name** | The name of the input field. Used for form submission and validation<br/>**Example:** `"email"` | `string` | No | `undefined` | - |
34
+ | **autocomplete** | The autocomplete attribute for the input field. Used for form submission and validation<br/>**Example:** `"email"` | `string` | No | `undefined` | - |
35
+ | **loading** | Loading state for the input field. Used to show a loading spinner | `boolean` | No | `false` | - |
36
36
 
37
37
  ## Events
38
38
 
@@ -47,8 +47,8 @@
47
47
 
48
48
  ## Slots
49
49
 
50
- | Name | Description | Bindings |
51
- | ---------- | ----------------------------------------------------- | -------- |
52
- | left-icon | Custom content for the left side of the input field. | |
53
- | right-icon | Custom content for the right side of the input field. | |
54
- | loader | Loader slot. | |
50
+ | Name | Description | Bindings |
51
+ | ---------- | ---------------------------------------------------------------------------------------- | -------- |
52
+ | start-icon | Custom content for the inline-start edge of the input field (left in LTR, right in RTL). | |
53
+ | end-icon | Custom content for the inline-end edge of the input field (right in LTR, left in RTL). | |
54
+ | loader | Loader slot. | |
@@ -29,3 +29,21 @@
29
29
  | Name | Description | Bindings |
30
30
  | ------- | ----------- | -------- |
31
31
  | default | | |
32
+
33
+ ## Expose
34
+
35
+ ### onIntersecting
36
+
37
+ >
38
+
39
+ ### onLoading
40
+
41
+ >
42
+
43
+ ### onLoaded
44
+
45
+ >
46
+
47
+ ### onError
48
+
49
+ >
@@ -9,7 +9,7 @@
9
9
  | **title** | The title of the link | `string` | No | `undefined` | - |
10
10
  | **href** | The href of the link | `string` | No | `undefined` | - |
11
11
  | **to** | The route location (router-link) of the link | `RouteLocationRaw` | No | `undefined` | - |
12
- | **color** | The color of the link | `MazColor \| "muted" \| "background" \| "inherit"` | No | `primary' When 'none', the link will not have any color, so it will inherit the color of the parent` | - |
12
+ | **color** | The color of the link | `MazColor \| "muted" \| "surface" \| "inherit"` | No | `primary' When 'none', the link will not have any color, so it will inherit the color of the parent` | - |
13
13
  | **target** | The target of the link | `"_blank" \| "_self" \| "_parent" \| "_top" \| string` | No | `_self` | `_blank', '_self', '_parent', '_top` |
14
14
  | **download** | The download of the link | `string` | No | `undefined` | - |
15
15
  | **rel** | The rel of the link | `string` | No | `undefined` | - |
@@ -17,15 +17,15 @@
17
17
  | **underline** | Add an underline to the link | `boolean` | No | `false` | - |
18
18
  | **underline-hover** | Add an underline only on hover | `boolean` | No | `true` | - |
19
19
  | **auto-external** | Add an external icon to the link if target is '\_blank' | `boolean` | No | `true` | - |
20
- | **left-icon** | The name of the icon or component to display on the left of the text `@type` `{string \| FunctionalComponent \| ComponentPublicInstance \| Component}` | `string \| IconComponent` | No | `undefined` | - |
21
- | **right-icon** | The name of the icon or component to display on the right of the text `@type` `{string \| FunctionalComponent \| ComponentPublicInstance \| Component}` | `string \| IconComponent` | No | `undefined` | - |
20
+ | **start-icon** | Icon displayed on the inline-start edge (left in LTR, right in RTL). Accepts a bare value (Vue component, raw SVG string, URL or `data:` URI) or a full `MazIconProps` object for fine-grained control. | `MazIconLike` | No | `undefined` | - |
21
+ | **end-icon** | Icon displayed on the inline-end edge (right in LTR, left in RTL). Accepts a bare value or a full `MazIconProps` object. | `MazIconLike` | No | `undefined` | - |
22
22
  | **disabled** | The disabled state of the link if the component is a button | `boolean` | No | `false` | - |
23
23
 
24
24
  ## Slots
25
25
 
26
- | Name | Description | Bindings |
27
- | ------------- | ------------------------------------------- | -------- |
28
- | left-icon | The icon to display on the left of the text | |
29
- | default | Text of the link | |
30
- | right-icon | The icon to display on the left of the text | |
31
- | external-icon | Replace the default external icon | |
26
+ | Name | Description | Bindings |
27
+ | ------------- | ------------------------------------------------------------------------------------ | -------- |
28
+ | start-icon | The icon to display on the inline-start edge of the text (left in LTR, right in RTL) | |
29
+ | default | Text of the link | |
30
+ | end-icon | The icon to display on the inline-end edge of the text (right in LTR, left in RTL) | |
31
+ | external-icon | Replace the default external icon | |
@@ -1,14 +1,14 @@
1
1
  ## Props
2
2
 
3
- | Name | Description | Type | Required | Default | Possible values |
4
- | ---------------- | --------------------------------------------------------------- | -------------------------- | -------- | ----------- | ------------------------------------------------------------------------------------------------------- |
5
- | **model-value** | `v-model` <br/>The current page number. | `number` | No | `1` | - |
6
- | **button-props** | Props apply to the MazBtn components. | `Partial<MazBtnProps>` | No | `undefined` | - |
7
- | **active-color** | Color of the active button. | `MazColor \| "background"` | No | `contrast` | `contrast', 'primary', 'secondary', 'info', 'success', 'warning', 'destructive', 'accent', 'background` |
8
- | **size** | Size of the buttons. | `MazSize` | No | `md` | `mini', 'xs', 'sm', 'md', 'lg', 'xl` |
9
- | **total-pages** | Total number of pages. | `number` | Yes | `10` | - |
10
- | **page-range** | Number of buttons to display before and after the current page. | `number` | No | `1` | - |
11
- | **loading** | Enable loading state of current button | `boolean` | No | `false` | - |
3
+ | Name | Description | Type | Required | Default | Possible values |
4
+ | ---------------- | --------------------------------------------------------------- | ----------------------- | -------- | ----------- | ---------------------------------------------------------------------------------------------------- |
5
+ | **model-value** | `v-model` <br/>The current page number. | `number` | No | `1` | - |
6
+ | **button-props** | Props apply to the MazBtn components. | `Partial<MazBtnProps>` | No | `undefined` | - |
7
+ | **active-color** | Color of the active button. | `MazColor \| "surface"` | No | `surface` | `contrast', 'primary', 'secondary', 'info', 'success', 'warning', 'destructive', 'accent', 'surface` |
8
+ | **size** | Size of the buttons. | `MazSize` | No | `md` | `mini', 'xs', 'sm', 'md', 'lg', 'xl` |
9
+ | **total-pages** | Total number of pages. | `number` | Yes | `10` | - |
10
+ | **page-range** | Number of buttons to display before and after the current page. | `number` | No | `1` | - |
11
+ | **loading** | Enable loading state of current button | `boolean` | No | `false` | - |
12
12
 
13
13
  ## Slots
14
14
 
@@ -25,7 +25,7 @@
25
25
  | **id** | Custom ID for the popover element | `string` | No | `undefined` | - |
26
26
  | **aria-labelledby** | ARIA labelledby attribute for accessibility | `string` | No | `undefined` | - |
27
27
  | **aria-describedby** | ARIA describedby attribute for accessibility | `string` | No | `undefined` | - |
28
- | **color** | Color variant of the popover | `MazColor \| "background"` | No | `background` | `primary, secondary, accent, info, success, warning, destructive, contrast, background` |
28
+ | **color** | Color variant of the popover | `MazColor \| "surface"` | No | `surface` | `primary, secondary, accent, info, success, warning, destructive, contrast, surface` |
29
29
  | **trap-focus** | Trap focus inside the popover | `boolean` | No | `true` | - |
30
30
  | **keep-open-on-hover** | Keep popover open when hovering over the panel | `boolean` | No | `false` | - |
31
31
  | **block** | The popover will be full width of the trigger | `boolean` | No | `false` | - |
@@ -73,3 +73,7 @@
73
73
  ### panelRef
74
74
 
75
75
  > Panel reference <br/>`@description` Reference to the popover panel element<br/>`@usage` `mazPopoverInstance.value?.panelRef`
76
+
77
+ ### onTransitionAfterLeave
78
+
79
+ >
@@ -1,22 +1,22 @@
1
1
  ## Props
2
2
 
3
- | Name | Description | Type | Required | Default | Possible values |
4
- | --------------- | --------------------------------------------- | -------------------------- | -------- | ------------------- | --------------- |
5
- | **model-value** | `v-model` <br/> | `T` | No | `undefined` | - |
6
- | **options** | The options to display | `Option[]` | Yes | `undefined` | - |
7
- | **name** | The name of the radio group | `string` | No | `'MazButtonsRadio'` | - |
8
- | **color** | The color of the selected radio buttons | `MazColor \| "background"` | No | `'primary'` | - |
9
- | **elevation** | Add elevation to the radio buttons | `boolean` | No | `false` | - |
10
- | **orientation** | The orientation of the radio buttons | `"row" \| "col"` | No | `'row'` | `row' \| 'col` |
11
- | **wrap** | Disable the wrap of the radio buttons | `boolean` | No | `true` | - |
12
- | **equal-size** | Make all radio buttons the same size | `boolean` | No | `false` | - |
13
- | **selector** | Display a selector icon | `boolean` | No | `false` | - |
14
- | **block** | The component will be displayed in full width | `boolean` | No | `false` | - |
15
- | **error** | Whether there is an error with the input. | `boolean` | No | `undefined` | - |
16
- | **success** | Whether the input is successful. | `boolean` | No | `undefined` | - |
17
- | **warning** | Whether there is a warning with the input. | `boolean` | No | `undefined` | - |
18
- | **hint** | The hint text to display below the input. | `string` | No | `undefined` | - |
19
- | **size** | The size of the radio buttons | `MazSize` | No | `'md'` | - |
3
+ | Name | Description | Type | Required | Default | Possible values |
4
+ | --------------- | --------------------------------------------- | ----------------------- | -------- | ------------------- | --------------- |
5
+ | **model-value** | `v-model` <br/> | `T` | No | `undefined` | - |
6
+ | **options** | The options to display | `Option[]` | Yes | `undefined` | - |
7
+ | **name** | The name of the radio group | `string` | No | `'MazButtonsRadio'` | - |
8
+ | **color** | The color of the selected radio buttons | `MazColor \| "surface"` | No | `'primary'` | - |
9
+ | **elevation** | Add elevation to the radio buttons | `boolean` | No | `false` | - |
10
+ | **orientation** | The orientation of the radio buttons | `"row" \| "col"` | No | `'row'` | `row' \| 'col` |
11
+ | **wrap** | Disable the wrap of the radio buttons | `boolean` | No | `true` | - |
12
+ | **equal-size** | Make all radio buttons the same size | `boolean` | No | `false` | - |
13
+ | **selector** | Display a selector icon | `boolean` | No | `false` | - |
14
+ | **block** | The component will be displayed in full width | `boolean` | No | `false` | - |
15
+ | **error** | Whether there is an error with the input. | `boolean` | No | `undefined` | - |
16
+ | **success** | Whether the input is successful. | `boolean` | No | `undefined` | - |
17
+ | **warning** | Whether there is a warning with the input. | `boolean` | No | `undefined` | - |
18
+ | **hint** | The hint text to display below the input. | `string` | No | `undefined` | - |
19
+ | **size** | The size of the radio buttons | `MazSize` | No | `'md'` | - |
20
20
 
21
21
  ## Events
22
22
 
@@ -15,8 +15,8 @@
15
15
 
16
16
  | Name | Description | Bindings |
17
17
  | ---------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
18
- | left-icon | Add a custom left icon | **is-open** `boolean` - Current open state of the popover<br/>**close** `function` - Function to close the popover<br/>**open** `function` - Function to open the popover<br/>**toggle** `function` - Function to toggle the popover |
19
- | right-icon | Add and replace a custom right icon | **is-open** `boolean` - Current open state of the popover<br/>**close** `function` - Function to close the popover<br/>**open** `function` - Function to open the popover<br/>**toggle** `function` - Function to toggle the popover |
18
+ | start-icon | Add a custom inline-start icon (left in LTR, right in RTL) | **is-open** `boolean` - Current open state of the popover<br/>**close** `function` - Function to close the popover<br/>**open** `function` - Function to open the popover<br/>**toggle** `function` - Function to toggle the popover |
19
+ | end-icon | Add and replace a custom inline-end icon (right in LTR, left in RTL) | **is-open** `boolean` - Current open state of the popover<br/>**close** `function` - Function to close the popover<br/>**open** `function` - Function to open the popover<br/>**toggle** `function` - Function to toggle the popover |
20
20
  | no-results | No results slot - Displayed when no results corresponding with search query | |
21
21
  | optgroup | Custom optgroup label | **label** `String` - the label of the optgroup |
22
22
  | default | Custom option | **option** `Object` - the option object<br/>**is-selected** `Boolean` - if the option is selected<br/>**is-open** `Boolean` - if the popover is open<br/>**close** `function` - function to close the popover<br/>**open** `function` - function to open the popover<br/>**toggle** `function` - function to toggle the popover |
@@ -1,12 +1,12 @@
1
1
  ## Props
2
2
 
3
- | Name | Description | Type | Required | Default | Possible values |
4
- | ---------------- | ------------------------------------------- | ------------------------------------------------------------ | -------- | -------------------------------------- | ---------------------------------- |
5
- | **shape** | Skeleton shape type | `'circle' \| 'rectangle' \| 'square'` | No | `rectangle` | `circle, rectangle, square` |
6
- | **size** | Size with units (ex: '2rem', '40px', '3em') | `SizeUnit` | No | `1rem` | - |
7
- | **width** | Custom width | `SizeUnit` | No | `undefined` | - |
8
- | **height** | Custom height | `SizeUnit` | No | `undefined` | - |
9
- | **animated** | Disable animation | `boolean` | No | `true` | - |
10
- | **rounded-size** | Controls the border radius | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full' \| 'base'` | No | `base` | `none, sm, md, lg, xl, full, base` |
11
- | **aria-label** | Accessibility label | `string` | No | `skeleton.ariaLabel' (translations)` | - |
12
- | **loading-text** | Loading text for accessibility | `string` | No | `skeleton.loadingText' (translations)` | - |
3
+ | Name | Description | Type | Required | Default | Possible values |
4
+ | ---------------- | ------------------------------------------- | -------------------------------------------------- | -------- | -------------------------------------- | ---------------------------- |
5
+ | **shape** | Skeleton shape type | `'circle' \| 'rectangle' \| 'square'` | No | `rectangle` | `circle, rectangle, square` |
6
+ | **size** | Size with units (ex: '2rem', '40px', '3em') | `MazSizeUnit` | No | `1rem` | - |
7
+ | **width** | Custom width | `MazSizeUnit` | No | `undefined` | - |
8
+ | **height** | Custom height | `MazSizeUnit` | No | `undefined` | - |
9
+ | **animated** | Disable animation | `boolean` | No | `true` | - |
10
+ | **rounded-size** | Controls the border radius | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` | No | `md` | `none, sm, md, lg, xl, full` |
11
+ | **aria-label** | Accessibility label | `string` | No | `skeleton.ariaLabel' (translations)` | - |
12
+ | **loading-text** | Loading text for accessibility | `string` | No | `skeleton.loadingText' (translations)` | - |
@@ -1,42 +1,42 @@
1
1
  ## Props
2
2
 
3
- | Name | Description | Type | Required | Default | Possible values |
4
- | ---------------------- | ---------------------------------------------------------------------------------------- | ----------------------------------------------------- | -------- | ---------------------------------------- | ---------------------------------- |
5
- | **table-class** | CSS class of the table element | `HTMLAttributes['class']` | No | `undefined` | - |
6
- | **table-style** | CSS style of the table element | `HTMLAttributes['style']` | No | `undefined` | - |
7
- | **model-value** | `v-model` <br/>List of selected rows | `(string \| boolean \| number)[]` | No | `undefined` | - |
8
- | **size** | Size of the table | `MazSize` | No | `'md'` | `xl, lg, md, sm, xs, mini` |
9
- | **input-size** | Size of the search inputs | `MazSize` | No | `undefined` | `xl, lg, md, sm, xs, mini` |
10
- | **title** | Title of the table | `string` | No | `undefined` | - |
11
- | **headers** | Headers of the table | `MazTableHeader[]` | No | `undefined` | - |
12
- | **sortable** | Enable sort feature on all columns | `boolean` | No | `false` | - |
13
- | **headers-align** | Align all headers | `string` | No | `'left'` | - |
14
- | **rows** | Rows of the table | `T[]` | No | `undefined` | - |
15
- | **hoverable** | Add hover effect on rows | `boolean` | No | `false` | - |
16
- | **search** | Enable search feature in table header | `boolean` | No | `false` | - |
17
- | **hide-search-in-row** | Disable search in rows - useful to filter data yourself or make search request to server | `boolean` | No | `false` | - |
18
- | **hide-search-by** | Disable search by column (remove select input "search by") | `boolean` | No | `false` | - |
19
- | **search-query** | `v-model:search-query` <br/>Search query in input | `string` | No | `undefined` | - |
20
- | **background-odd** | Add background color to odd rows | `boolean` | No | `false` | - |
21
- | **background-even** | Add background color to even rows | `boolean` | No | `false` | - |
22
- | **elevation** | Add shadow to the table | `boolean` | No | `false` | - |
23
- | **divider** | add divider between rows | `boolean` | No | `false` | - |
24
- | **caption** | Caption of the table | `string` | No | `undefined` | - |
25
- | **caption-side** | Caption side | `string` | No | `'bottom'` | `top, bottom` |
26
- | **pagination** | Add pagination in table footer | `boolean` | No | `false` | - |
27
- | **page** | `v-model:page` <br/>Current page of pagination | `number` | No | `1` | - |
28
- | **page-size** | `v-model:page-size` <br/>Number of items per page | `number` | No | `20` | - |
29
- | **total-pages** | Total number of pages | `number` | No | `undefined` | - |
30
- | **paginate-rows** | Don't paginate rows - useful to make pagination request with your server | `boolean` | No | `true` | - |
31
- | **total-items** | Total number of items | `number` | No | `undefined` | - |
32
- | **loading** | Loading state | `boolean` | No | `false` | - |
33
- | **selectable** | Enable selection of rows | `boolean` | No | `false` | - |
34
- | **selected-key** | Enable selection of rows - key of the selected row | `string` | No | `undefined` | - |
35
- | **table-layout** | Table layout | `string` | No | `undefined` | `auto, fixed` |
36
- | **color** | Color of the component | `MazColor` | No | `'primary'` | - |
37
- | **translations** | Translations of the table | `DeepPartial<MazUiTranslationsNestedSchema['table']>` | No | `Translations from @maz-ui/translations` | - |
38
- | **rounded-size** | Size radius of the component's border | `string` | No | `'lg'` | `none, sm, md, lg, xl, full, base` |
39
- | **scrollable** | Enable scrollable on table | `boolean` | No | `false` | - |
3
+ | Name | Description | Type | Required | Default | Possible values |
4
+ | ---------------------- | ---------------------------------------------------------------------------------------- | ----------------------------------------------------- | -------- | ---------------------------------------- | ---------------------------- |
5
+ | **table-class** | CSS class of the table element | `HTMLAttributes['class']` | No | `undefined` | - |
6
+ | **table-style** | CSS style of the table element | `HTMLAttributes['style']` | No | `undefined` | - |
7
+ | **model-value** | `v-model` <br/>List of selected rows | `(string \| boolean \| number)[]` | No | `undefined` | - |
8
+ | **size** | Size of the table | `MazSize` | No | `'md'` | `xl, lg, md, sm, xs, mini` |
9
+ | **input-size** | Size of the search inputs | `MazSize` | No | `undefined` | `xl, lg, md, sm, xs, mini` |
10
+ | **title** | Title of the table | `string` | No | `undefined` | - |
11
+ | **headers** | Headers of the table | `MazTableHeader[]` | No | `undefined` | - |
12
+ | **sortable** | Enable sort feature on all columns | `boolean` | No | `false` | - |
13
+ | **headers-align** | Align all headers | `string` | No | `'left'` | - |
14
+ | **rows** | Rows of the table | `T[]` | No | `undefined` | - |
15
+ | **hoverable** | Add hover effect on rows | `boolean` | No | `false` | - |
16
+ | **search** | Enable search feature in table header | `boolean` | No | `false` | - |
17
+ | **hide-search-in-row** | Disable search in rows - useful to filter data yourself or make search request to server | `boolean` | No | `false` | - |
18
+ | **hide-search-by** | Disable search by column (remove select input "search by") | `boolean` | No | `false` | - |
19
+ | **search-query** | `v-model:search-query` <br/>Search query in input | `string` | No | `undefined` | - |
20
+ | **background-odd** | Add background color to odd rows | `boolean` | No | `false` | - |
21
+ | **background-even** | Add background color to even rows | `boolean` | No | `false` | - |
22
+ | **elevation** | Add shadow to the table | `boolean` | No | `false` | - |
23
+ | **divider** | add divider between rows | `boolean` | No | `false` | - |
24
+ | **caption** | Caption of the table | `string` | No | `undefined` | - |
25
+ | **caption-side** | Caption side | `string` | No | `'bottom'` | `top, bottom` |
26
+ | **pagination** | Add pagination in table footer | `boolean` | No | `false` | - |
27
+ | **page** | `v-model:page` <br/>Current page of pagination | `number` | No | `1` | - |
28
+ | **page-size** | `v-model:page-size` <br/>Number of items per page | `number` | No | `20` | - |
29
+ | **total-pages** | Total number of pages | `number` | No | `undefined` | - |
30
+ | **paginate-rows** | Don't paginate rows - useful to make pagination request with your server | `boolean` | No | `true` | - |
31
+ | **total-items** | Total number of items | `number` | No | `undefined` | - |
32
+ | **loading** | Loading state | `boolean` | No | `false` | - |
33
+ | **selectable** | Enable selection of rows | `boolean` | No | `false` | - |
34
+ | **selected-key** | Enable selection of rows - key of the selected row | `string` | No | `undefined` | - |
35
+ | **table-layout** | Table layout | `string` | No | `undefined` | `auto, fixed` |
36
+ | **color** | Color of the component | `MazColor` | No | `'primary'` | - |
37
+ | **translations** | Translations of the table | `DeepPartial<MazUiTranslationsNestedSchema['table']>` | No | `Translations from @maz-ui/translations` | - |
38
+ | **rounded-size** | Size radius of the component's border | `string` | No | `'md'` | `none, sm, md, lg, xl, full` |
39
+ | **scrollable** | Enable scrollable on table | `boolean` | No | `false` | - |
40
40
 
41
41
  ## Events
42
42
 
@@ -17,7 +17,7 @@
17
17
  | **warning** | If the textarea has a warning | `boolean` | No | `false` | - |
18
18
  | **hint** | The hint of the textarea | `string` | No | `undefined` | - |
19
19
  | **color** | The color of the textarea | `MazColor` | No | `'primary'` | - |
20
- | **rounded-size** | Size radius of the component's border | `"none" \| "sm" \| "md" \| "lg" \| "xl" \| "full" \| "base"` | No | `undefined` | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full' \| 'base'` |
20
+ | **rounded-size** | Size radius of the component's border | `"none" \| "sm" \| "md" \| "lg" \| "xl" \| "full"` | No | `'md'` | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'full'` |
21
21
  | **padding** | If the textarea has a padding | `boolean` | No | `true` | - |
22
22
  | **transparent** | If the textarea has a transparent background | `boolean` | No | `false` | - |
23
23
  | **border** | If the textarea has no border | `boolean` | No | `true` | - |
@@ -12,7 +12,7 @@
12
12
  | **auto-validate-steps** | Automatically show a checkmark icon for completed steps | `boolean` | No | `true` | - |
13
13
  | **clickable** | Enable click interaction on steps | `boolean` | No | `false` | - |
14
14
  | **animated** | Enable animations (pulse on active, state transitions, connector progress) | `boolean` | No | `true` | - |
15
- | **rounded-size** | Border radius of step indicators | `MazTimelineRoundedSize` | No | `full` | `'none' \| 'sm' \| 'md' \| 'base' \| 'lg' \| 'xl' \| '2xl' \| '3xl' \| 'full'` |
15
+ | **rounded-size** | Border radius of step indicators | `MazTimelineRoundedSize` | No | `md` | `'none' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| '2xl' \| '3xl' \| 'full'` |
16
16
 
17
17
  ## Events
18
18
 
@@ -10,7 +10,7 @@ head:
10
10
  content: vue ui library, vue components, nuxt ui, maz-ui v4, tree-shaking, theming, typescript, performance
11
11
  ---
12
12
 
13
- <img src="/img/post-layer.png" alt="Maz-UI v4.0.0" class="maz-rounded maz-w-full maz-mb-12" />
13
+ <img src="/img/post-layer.png" alt="Maz-UI v4.0.0" class="maz:rounded-md maz:w-full maz:mb-12" />
14
14
 
15
15
  # Maz-UI v4.0.0 - The Complete Rebuild
16
16
 
@@ -39,7 +39,7 @@ import * as MazUI from 'maz-ui/components'
39
39
  // v4: Surgical imports for minimal bundles
40
40
  import MazBtn from 'maz-ui/components/MazBtn'
41
41
  import { useToast } from 'maz-ui/composables'
42
- import { formatCurrency } from 'maz-ui/utils'
42
+ import { formatCurrency } from '@maz-ui/utils'
43
43
  ```
44
44
 
45
45
  ### Theme System
@@ -202,7 +202,7 @@ import { createApp } from 'vue'
202
202
  import { MazUi } from 'maz-ui/plugins/maz-ui'
203
203
  import { mazUi } from '@maz-ui/themes/presets'
204
204
  import { fr } from '@maz-ui/translations'
205
- import 'maz-ui/styles'
205
+ import 'maz-ui/style.css'
206
206
 
207
207
  const app = createApp(App)
208
208
 
@@ -259,14 +259,14 @@ Whether you're building a small project or large application, v4 offers the comp
259
259
 
260
260
  **Ready to try Maz-UI v4.0.0?**
261
261
 
262
- <div class="maz-flex maz-gap-4 maz-mt-8 maz-flex-wrap">
263
- <MazBtn href="https://maz-ui.com/guide/getting-started" size="lg">
262
+ <div class="maz:flex maz:gap-4 maz:mt-8 maz:flex-wrap">
263
+ <MazBtn href="https://maz-ui.com/guide/getting-started" size="md" class="vp-raw">
264
264
  Get Started Now
265
265
  </MazBtn>
266
- <MazBtn href="https://maz-ui.com/guide/migration-v4" color="background" outlined size="lg">
266
+ <MazBtn href="https://maz-ui.com/guide/migration-v4" color="surface" outlined size="md" class="vp-raw">
267
267
  Migration Guide
268
268
  </MazBtn>
269
- <MazBtn href="https://github.com/LouisMazel/maz-ui" color="background" outlined size="lg" target="blank">
269
+ <MazBtn href="https://github.com/LouisMazel/maz-ui" color="surface" outlined size="md" target="blank" class="vp-raw">
270
270
  View on GitHub
271
271
  </MazBtn>
272
272
  </div>