@nuxt/ui 2.12.2 → 2.13.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 (67) hide show
  1. package/dist/module.d.mts +109 -38
  2. package/dist/module.d.ts +109 -38
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +6 -3
  5. package/dist/runtime/components/elements/Button.vue.d.ts +6 -6
  6. package/dist/runtime/components/elements/Carousel.vue +149 -0
  7. package/dist/runtime/components/elements/Carousel.vue.d.ts +104 -0
  8. package/dist/runtime/components/elements/Chip.vue.d.ts +3 -3
  9. package/dist/runtime/components/elements/Dropdown.vue +2 -2
  10. package/dist/runtime/components/elements/Dropdown.vue.d.ts +4 -4
  11. package/dist/runtime/components/elements/Link.vue +2 -2
  12. package/dist/runtime/components/elements/Link.vue.d.ts +6 -6
  13. package/dist/runtime/components/elements/Meter.vue.d.ts +3 -3
  14. package/dist/runtime/components/elements/MeterGroup.d.ts +3 -3
  15. package/dist/runtime/components/elements/Progress.vue.d.ts +3 -3
  16. package/dist/runtime/components/forms/Form.vue +7 -3
  17. package/dist/runtime/components/forms/InputMenu.vue +8 -0
  18. package/dist/runtime/components/forms/InputMenu.vue.d.ts +9 -0
  19. package/dist/runtime/components/forms/Select.vue +5 -1
  20. package/dist/runtime/components/forms/SelectMenu.vue +1 -1
  21. package/dist/runtime/components/forms/Toggle.vue +1 -1
  22. package/dist/runtime/components/forms/Toggle.vue.d.ts +2 -2
  23. package/dist/runtime/components/navigation/HorizontalNavigation.vue +102 -0
  24. package/dist/runtime/components/navigation/HorizontalNavigation.vue.d.ts +44 -0
  25. package/dist/runtime/components/navigation/Pagination.vue.d.ts +2 -2
  26. package/dist/runtime/components/navigation/VerticalNavigation.vue +12 -3
  27. package/dist/runtime/components/overlays/Modal.vue +6 -2
  28. package/dist/runtime/components/overlays/Modal.vue.d.ts +2 -1
  29. package/dist/runtime/components/overlays/Popover.vue +2 -2
  30. package/dist/runtime/components/overlays/Popover.vue.d.ts +4 -4
  31. package/dist/runtime/components/overlays/Slideover.vue +6 -2
  32. package/dist/runtime/components/overlays/Slideover.vue.d.ts +2 -1
  33. package/dist/runtime/components/overlays/Tooltip.vue +2 -2
  34. package/dist/runtime/components/overlays/Tooltip.vue.d.ts +4 -4
  35. package/dist/runtime/composables/useCarouselScroll.d.ts +2 -0
  36. package/dist/runtime/composables/useCarouselScroll.mjs +35 -0
  37. package/dist/runtime/composables/usePopper.d.ts +3 -3
  38. package/dist/runtime/types/horizontal-navigation.d.ts +13 -0
  39. package/dist/runtime/types/index.d.ts +1 -0
  40. package/dist/runtime/types/vertical-navigation.d.ts +2 -1
  41. package/dist/runtime/ui.config/elements/carousel.d.ts +27 -0
  42. package/dist/runtime/ui.config/elements/carousel.mjs +26 -0
  43. package/dist/runtime/ui.config/elements/dropdown.d.ts +5 -1
  44. package/dist/runtime/ui.config/elements/dropdown.mjs +8 -4
  45. package/dist/runtime/ui.config/forms/inputMenu.d.ts +1 -1
  46. package/dist/runtime/ui.config/forms/inputMenu.mjs +5 -5
  47. package/dist/runtime/ui.config/forms/select.mjs +1 -1
  48. package/dist/runtime/ui.config/forms/selectMenu.d.ts +1 -1
  49. package/dist/runtime/ui.config/index.d.ts +2 -0
  50. package/dist/runtime/ui.config/index.mjs +2 -0
  51. package/dist/runtime/ui.config/navigation/breadcrumb.mjs +4 -4
  52. package/dist/runtime/ui.config/navigation/commandPalette.d.ts +1 -1
  53. package/dist/runtime/ui.config/navigation/commandPalette.mjs +8 -8
  54. package/dist/runtime/ui.config/navigation/horizontalNavigation.d.ts +27 -0
  55. package/dist/runtime/ui.config/navigation/horizontalNavigation.mjs +26 -0
  56. package/dist/runtime/ui.config/navigation/verticalNavigation.d.ts +4 -3
  57. package/dist/runtime/ui.config/navigation/verticalNavigation.mjs +8 -7
  58. package/dist/runtime/ui.config/overlays/popover.d.ts +4 -0
  59. package/dist/runtime/ui.config/overlays/popover.mjs +4 -0
  60. package/dist/runtime/ui.config/overlays/slideover.mjs +2 -2
  61. package/dist/runtime/ui.config/overlays/tooltip.d.ts +4 -0
  62. package/dist/runtime/ui.config/overlays/tooltip.mjs +4 -0
  63. package/dist/runtime/ui.css +1 -1
  64. package/dist/runtime/utils/link.d.ts +0 -1
  65. package/dist/types.d.mts +1 -1
  66. package/dist/types.d.ts +1 -1
  67. package/package.json +8 -8
@@ -1,8 +1,8 @@
1
1
  export default {
2
2
  wrapper: "relative",
3
- base: "group relative flex items-center gap-2 focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-1 focus-visible:before:ring-primary-500 dark:focus-visible:before:ring-primary-400 before:absolute before:inset-px before:rounded-md disabled:cursor-not-allowed disabled:opacity-75",
3
+ base: "group relative flex items-center gap-1.5 focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-1 focus-visible:before:ring-primary-500 dark:focus-visible:before:ring-primary-400 before:absolute before:inset-px before:rounded-md disabled:cursor-not-allowed disabled:opacity-75",
4
4
  ring: "focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
5
- padding: "px-3 py-1.5",
5
+ padding: "px-2.5 py-1.5",
6
6
  width: "w-full",
7
7
  rounded: "rounded-md",
8
8
  font: "font-medium",
@@ -11,18 +11,19 @@ export default {
11
11
  inactive: "text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:before:bg-gray-50 dark:hover:before:bg-gray-800/50",
12
12
  label: "truncate relative",
13
13
  icon: {
14
- base: "flex-shrink-0 w-4 h-4",
14
+ base: "flex-shrink-0 w-5 h-5",
15
15
  active: "text-gray-700 dark:text-gray-200",
16
16
  inactive: "text-gray-400 dark:text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-200"
17
17
  },
18
18
  avatar: {
19
19
  base: "flex-shrink-0",
20
- size: "3xs"
20
+ size: "2xs"
21
21
  },
22
22
  badge: {
23
- base: "relative ms-auto inline-block py-0.5 px-2 text-xs rounded-md -me-1 -my-0.5",
24
- active: "bg-white dark:bg-gray-900",
25
- inactive: "bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white group-hover:bg-white dark:group-hover:bg-gray-900"
23
+ base: "flex-shrink-0 ml-auto relative rounded",
24
+ color: "gray",
25
+ variant: "solid",
26
+ size: "xs"
26
27
  },
27
28
  divider: {
28
29
  wrapper: {
@@ -31,6 +31,10 @@ declare const _default: {
31
31
  popper: {
32
32
  strategy: string;
33
33
  };
34
+ default: {
35
+ openDelay: number;
36
+ closeDelay: number;
37
+ };
34
38
  arrow: {
35
39
  base: string;
36
40
  ring: string;
@@ -33,5 +33,9 @@ export default {
33
33
  popper: {
34
34
  strategy: "fixed"
35
35
  },
36
+ default: {
37
+ openDelay: 0,
38
+ closeDelay: 0
39
+ },
36
40
  arrow
37
41
  };
@@ -22,8 +22,8 @@ export default {
22
22
  width: "w-screen max-w-md",
23
23
  translate: {
24
24
  base: "translate-x-0",
25
- left: "-translate-x-full",
26
- right: "translate-x-full"
25
+ left: "-translate-x-full rtl:translate-x-full",
26
+ right: "translate-x-full rtl:-translate-x-full"
27
27
  },
28
28
  // Syntax for `<TransitionRoot>` component https://headlessui.com/vue/transition#basic-example
29
29
  transition: {
@@ -21,6 +21,10 @@ declare const _default: {
21
21
  popper: {
22
22
  strategy: string;
23
23
  };
24
+ default: {
25
+ openDelay: number;
26
+ closeDelay: number;
27
+ };
24
28
  arrow: {
25
29
  base: string;
26
30
  ring: string;
@@ -23,5 +23,9 @@ export default {
23
23
  popper: {
24
24
  strategy: "fixed"
25
25
  },
26
+ default: {
27
+ openDelay: 0,
28
+ closeDelay: 0
29
+ },
26
30
  arrow
27
31
  };
@@ -1 +1 @@
1
- .dark{color-scheme:dark}a:focus-visible{@apply outline-primary}::-moz-selection{@apply bg-primary/40}::selection{@apply bg-primary/40}select{background-image:none}
1
+ .dark{color-scheme:dark}a:focus-visible{@apply outline-primary}::-moz-selection{@apply bg-primary/40}::selection{@apply bg-primary/40}
@@ -1,5 +1,4 @@
1
1
  import type { PropType } from 'vue';
2
- import type { RouteLocationRaw } from 'vue-router';
3
2
  export declare const nuxtLinkProps: {
4
3
  readonly to: {
5
4
  readonly type: PropType<RouteLocationRaw>;
package/dist/types.d.mts CHANGED
@@ -13,4 +13,4 @@ declare module 'nuxt/schema' {
13
13
  }
14
14
 
15
15
 
16
- export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, inputMenu, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module.js'
16
+ export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, carousel, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, horizontalNavigation, input, inputMenu, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module.js'
package/dist/types.d.ts CHANGED
@@ -13,4 +13,4 @@ declare module 'nuxt/schema' {
13
13
  }
14
14
 
15
15
 
16
- export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, input, inputMenu, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module'
16
+ export type { accordion, alert, avatar, avatarGroup, badge, breadcrumb, button, buttonGroup, card, carousel, checkbox, chip, commandPalette, container, contextMenu, divider, dropdown, formGroup, horizontalNavigation, input, inputMenu, kbd, meter, meterGroup, modal, notification, notifications, pagination, popover, progress, radio, radioGroup, range, select, selectMenu, skeleton, slideover, table, tabs, textarea, toggle, tooltip, verticalNavigation } from './module'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/ui",
3
- "version": "2.12.2",
3
+ "version": "2.13.0",
4
4
  "repository": "nuxt/ui",
5
5
  "homepage": "https://ui.nuxt.com",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "@iconify-json/heroicons": "^1.1.19",
39
39
  "@nuxt/kit": "^3.9.3",
40
40
  "@nuxtjs/color-mode": "^3.3.2",
41
- "@nuxtjs/tailwindcss": "^6.10.4",
41
+ "@nuxtjs/tailwindcss": "^6.11.2",
42
42
  "@popperjs/core": "^2.11.8",
43
43
  "@tailwindcss/aspect-ratio": "^0.4.2",
44
44
  "@tailwindcss/container-queries": "^0.1.1",
@@ -53,24 +53,24 @@
53
53
  "ohash": "^1.1.3",
54
54
  "pathe": "^1.1.2",
55
55
  "scule": "^1.2.0",
56
- "tailwind-merge": "^2.2.0",
56
+ "tailwind-merge": "^2.2.1",
57
57
  "tailwindcss": "^3.4.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@nuxt/eslint-config": "^0.2.0",
61
61
  "@nuxt/module-builder": "^0.5.5",
62
- "@nuxt/test-utils": "^3.10.0",
62
+ "@nuxt/test-utils": "^3.11.0",
63
63
  "@release-it/conventional-changelog": "^8.0.1",
64
- "@vue/test-utils": "^2.4.3",
64
+ "@vue/test-utils": "^2.4.4",
65
65
  "eslint": "^8.56.0",
66
- "happy-dom": "^12.10.3",
66
+ "happy-dom": "^13.3.5",
67
67
  "joi": "^17.11.1",
68
68
  "nuxt": "^3.9.3",
69
- "release-it": "^17.0.1",
69
+ "release-it": "^17.0.3",
70
70
  "typescript": "^5.3.3",
71
71
  "unbuild": "^2.0.0",
72
72
  "valibot": "^0.25.0",
73
- "vitest": "^1.2.1",
73
+ "vitest": "^1.2.2",
74
74
  "vitest-environment-nuxt": "^1.0.0",
75
75
  "vue-tsc": "^1.8.27",
76
76
  "yup": "^1.3.3",