Compare commits

..

2175 Commits

Author SHA1 Message Date
Benjamin Canac
4198a42dff chore(release): v3.0.0-alpha.1 2024-09-11 10:38:54 +02:00
Benjamin Canac
21609aa884 chore(package): update release script 2024-09-11 10:36:54 +02:00
Benjamin Canac
82771673f2 fix(types): no longer need to import types with /index suffix
Solved in https://github.com/unjs/mkdist/pull/244
2024-09-11 10:34:59 +02:00
Benjamin Canac
4f83a2829e chore(deps): update 2024-09-11 10:34:21 +02:00
Benjamin Canac
debf9cc853 fix(plugins): infer type from #app to remove build warning 2024-09-11 10:30:15 +02:00
Benjamin Canac
40b3570343 fix(templates): augment @nuxt/schema rather than nuxt/schema 2024-09-10 17:01:39 +02:00
Benjamin Canac
95d2b7a56e docs(Banner): update icon 2024-09-10 16:26:26 +02:00
Benjamin Canac
c6171d0f8d docs: use Inter font 2024-09-10 16:26:19 +02:00
Benjamin Canac
625c4efa03 docs(installation): update 2024-09-10 15:37:41 +02:00
Benjamin Canac
d8d7b8fcc5 docs(components): update github links to nuxt/ui repository 2024-09-10 15:34:09 +02:00
Benjamin Canac
c578acbb88 chore(deps): refresh lock 2024-09-10 15:00:50 +02:00
Benjamin Canac
3e30775fd4 docs(IconsTheme): format without prettier to improve performances 2024-09-10 15:00:50 +02:00
Benjamin Canac
ec84f777ea docs(radio-group): link value to Value Key title 2024-09-10 15:00:50 +02:00
Benjamin Canac
a2a303f527 docs(HighlightInlintType): hide undefined in types 2024-09-10 15:00:50 +02:00
Benjamin Canac
3d0e1eb288 docs(components): ignore prefetchOn prop 2024-09-10 15:00:50 +02:00
Romain Hamel
175229384f chore(Form): catch-up with v2 changes (#2165)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-09-10 14:09:42 +02:00
renovate[bot]
9ddfec123e chore(deps): update pnpm to v9.10.0 (v3) (#2164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-09 18:29:29 +02:00
Benjamin Canac
1f0e515c33 chore(App): types 2024-09-09 18:12:23 +02:00
Benjamin Canac
3e28c8f35a fix: import from ../types/index 2024-09-09 18:00:39 +02:00
Benjamin Canac
9d8bb80892 chore(deps): refresh lock 2024-09-09 15:39:50 +02:00
Benjamin Canac
8b8ec22af7 docs(deps): update nuxt-component-meta 2024-09-09 13:53:32 +02:00
Benjamin Canac
4b09358ce0 chore(deps): update 2024-09-09 12:22:41 +02:00
Benjamin Canac
4f339be363 playground(app): improve from @nuxt/ui-pro 2024-09-06 19:02:31 +02:00
Benjamin Canac
7d28d99f10 playground(app): improve from @nuxt/ui 2024-09-06 19:02:31 +02:00
Benjamin Canac
71428da3dc fix(README): license link 2024-09-06 19:02:31 +02:00
Benjamin Canac
4a7433d628 chore(package): export style 2024-09-06 19:02:31 +02:00
Romain Hamel
8c886279b2 test(Form): fix (#2153) 2024-09-06 18:58:24 +02:00
Benjamin Canac
62a2643a80 feat(module): hard-code css file to be imported anywhere 2024-09-06 17:27:06 +02:00
Benjamin Canac
7cd3cc4aa6 chore(module): update nuxt compatibility 2024-09-06 17:26:43 +02:00
Benjamin Canac
07b0cf9979 chore(deps): update 2024-09-06 16:51:51 +02:00
Benjamin Canac
c94041d656 chore(github): update workflows 2024-09-06 15:27:11 +02:00
Benjamin Canac
97d05936cd fix(useButtonGroup): lint 2024-09-06 15:22:07 +02:00
Benjamin Canac
a03a55cf8d fix(ContextMenu/DropdownMenu): lint unused var 2024-09-06 15:21:56 +02:00
Benjamin Canac
1716ba0f5e docs(navigation-menu): update 2024-09-06 14:59:05 +02:00
Benjamin Canac
a8b5bff8c6 docs(ComponentExample): update 2024-09-06 13:00:23 +02:00
Benjamin Canac
84186e52e9 fix(NavigationMenu): handle open state hover effect 2024-09-06 13:00:05 +02:00
Benjamin Canac
7fe7ff6fe2 fix(Link): only bind necessary slot props 2024-09-06 12:57:04 +02:00
Benjamin Canac
aa34e3c141 chore(package): remove engines 2024-09-06 11:57:52 +02:00
Benjamin Canac
d989ceb09d chore(vercel): disable deployments 2024-09-06 09:53:19 +02:00
Benjamin Canac
403d3b2718 docs(deps): use @nuxt/ui-pro@2.0.0-alpha.1 2024-09-06 09:53:06 +02:00
Benjamin Canac
08039c1dcd chore(release): v3.0.0-alpha.0 2024-09-05 17:19:00 +02:00
Benjamin Canac
d107ba1e7a chore(release-it): handle publish 2024-09-05 16:56:06 +02:00
Benjamin Canac
a6e5db477d chore(release-it): remove hooks 2024-09-05 16:53:16 +02:00
Benjamin Canac
0b7a724d5f chore(vercel): prevent deployment on v3 branch 2024-09-05 16:24:42 +02:00
Benjamin Canac
eb85fa8353 fix(templates): import from #build/ui.css no longer works 2024-09-05 16:19:49 +02:00
Benjamin Canac
e36a48c684 docs(ComponentCode): update 2024-09-05 16:19:28 +02:00
Benjamin Canac
2934a280e8 docs(navigation-menu): update 2024-09-05 16:19:09 +02:00
Benjamin Canac
9af06e95cc docs(nuxt.config): update 2024-09-05 16:18:56 +02:00
Benjamin Canac
843f822b8c chore(github): add ci for v3 branch 2024-09-05 16:13:44 +02:00
Benjamin Canac
de0133e177 chore(components): use useId from vue 2024-09-05 16:00:30 +02:00
Benjamin Canac
9c4e8f2dba chore(module): remove useless @ts-expect-error 2024-09-05 16:00:02 +02:00
Benjamin Canac
5ede4033be chore(deps): update 2024-09-05 15:59:48 +02:00
Benjamin Canac
b8f815ccca docs(components): fix github links 2024-09-05 12:02:21 +02:00
Benjamin Canac
c710cf0ddc docs(index): update 2024-09-05 11:46:59 +02:00
Benjamin Canac
4b168a887e chore(cli): update templates 2024-09-05 11:46:53 +02:00
Benjamin Canac
2c30025ca1 chore(templates): tailwind.css eol indentation 2024-09-05 10:37:50 +02:00
Benjamin Canac
47ad74d029 fix(components): allow override of root through ui.root 2024-09-05 10:37:39 +02:00
Benjamin Canac
59201e3a67 docs(components): update 2024-09-05 10:23:08 +02:00
Benjamin Canac
fba4d6a385 docs(composables): update 2024-09-05 10:22:58 +02:00
Benjamin Canac
85d172339f feat(Accordion): add body slot to solve animation flick 2024-09-04 17:50:38 +02:00
Benjamin Canac
d63ab0892e chore(cli): update templates 2024-09-04 17:40:46 +02:00
Benjamin Canac
29a9be2fdf docs(separator): update 2024-09-04 11:36:19 +02:00
Benjamin Canac
7c18232932 docs(toast): update 2024-09-04 11:36:05 +02:00
Benjamin Canac
e91cba741c docs(dropdown-menu/radio-group/select): update callouts type 2024-09-04 11:06:32 +02:00
Benjamin Canac
045c44c139 docs(carousel/table): update badge 2024-09-04 11:06:02 +02:00
Benjamin Canac
577436d190 docs(composables): add use-toast page 2024-09-04 11:05:51 +02:00
Benjamin Canac
efd1a81184 docs(components): update props ignore 2024-09-04 11:05:21 +02:00
Benjamin Canac
54814a2562 chore(App): typo in slots interface 2024-09-04 10:21:09 +02:00
Benjamin Canac
b3de942696 docs(ComponentProps): display schema default in description 2024-09-04 10:20:01 +02:00
Benjamin Canac
eb2667fa81 docs(ComponentTheme): avoid using prettier to improve performances 2024-09-04 09:40:02 +02:00
Benjamin Canac
9f49796bd7 docs(alert): add missing Description section 2024-09-03 16:42:46 +02:00
Benjamin Canac
fe78529640 docs(context-menu): add missing Extract shortcuts section 2024-09-03 16:42:28 +02:00
Benjamin Canac
b6cb72de64 docs(select): update 2024-09-03 16:23:06 +02:00
Benjamin Canac
c2b9948a07 chore(RadioGroup/Select): remove useless as any on valueKey 2024-09-03 15:37:02 +02:00
Benjamin Canac
52e2fd75c2 chore(icons): remove useless empty key 2024-09-03 15:36:32 +02:00
Benjamin Canac
6b79b4fd22 docs(radio-group): update 2024-09-03 12:16:09 +02:00
Benjamin Canac
850e84c0e0 feat(RadioGroup): handle value-key prop 2024-09-03 12:16:09 +02:00
Benjamin Canac
9c1171f61d docs(checkbox/slider/switch): hide defaultValue select in code examples 2024-09-03 12:15:55 +02:00
Benjamin Canac
be383e415d docs(ComponentCode): handle two-way binding on modelValue 2024-09-03 12:15:55 +02:00
Benjamin Canac
6f4fdb163c chore(deps): update 2024-09-03 10:56:06 +02:00
Benjamin Canac
0e355d323b chore(deps): update tailwindcss 2024-08-24 12:33:57 +02:00
Benjamin Canac
dee404f24f test: update snapshots 2024-08-23 18:39:35 +02:00
Benjamin Canac
2aa4358d32 fix(InputMenu/Select/SelectMenu): use defuFn to override base slot 2024-08-23 18:39:15 +02:00
Benjamin Canac
dd1452a452 chore(deps): set happy-dom resolution to 14.12.3 2024-08-23 18:38:10 +02:00
Benjamin Canac
9ceb4cc6c1 chore(InputMenu/Select/SelectMenu): clean code 2024-08-23 18:33:31 +02:00
Benjamin Canac
2a20a0a541 docs(collapsible): update 2024-08-23 17:22:12 +02:00
Benjamin Canac
7673e51e20 docs(popover): update 2024-08-23 17:22:06 +02:00
Benjamin Canac
9dd9d5126a docs(collapsible): update 2024-08-23 16:44:00 +02:00
Benjamin Canac
99f5a66090 docs: update 2024-08-23 16:19:19 +02:00
Benjamin Canac
a261028f6e chore: script setup order definition 2024-08-23 16:02:46 +02:00
Benjamin Canac
6a10b27b98 playground(modal/slideover): update 2024-08-23 16:02:28 +02:00
Benjamin Canac
6ac63b5034 docs(slideover): update 2024-08-23 16:02:12 +02:00
Benjamin Canac
1d1d88d6ee docs(ComponentExample): handle preview: false 2024-08-23 16:01:57 +02:00
Benjamin Canac
60f2b0d8fb docs(modal): update 2024-08-23 13:26:20 +02:00
Benjamin Canac
4b641f7c23 chore(deps): update 2024-08-22 23:47:31 +02:00
Benjamin Canac
d430256271 chore(colors): use media query instead of .dark selector
Waiting on Tailwind CSS v4 dark mode implementation
2024-08-22 23:13:04 +02:00
Benjamin Canac
daf430b10d docs(nuxt.config): use --background variable on root element 2024-08-22 23:12:18 +02:00
Benjamin Canac
5428005512 docs(drawer): update 2024-08-22 16:58:47 +02:00
Benjamin Canac
7b278b041c fix(fuse): prevent indices highlight of a single char 2024-08-22 16:57:05 +02:00
Benjamin Canac
1ef977fb8c feat(CommandPalette): handle filter false and postFilter 2024-08-22 15:41:49 +02:00
Benjamin Canac
d558b3e29c fix(CommandPalette): ts errors 2024-08-22 14:29:58 +02:00
Benjamin Canac
8dfac7fd57 feat(module): add @source when @nuxt/content is present 2024-08-22 12:07:49 +02:00
Benjamin Canac
92f4d38cc3 docs: lint on catch undefined e 2024-08-22 12:07:17 +02:00
Benjamin Canac
b7382f2057 docs(header): add color picker 2024-08-21 16:12:38 +02:00
Benjamin Canac
ac0267b14c chore(components): bind props.ui?.content on content elements 2024-08-20 18:39:10 +02:00
Benjamin Canac
c3000d5ce6 docs: rename og image dir 2024-08-20 18:32:02 +02:00
Benjamin Canac
b838dd1458 chore(eslint): disable @typescript-eslint/no-empty-object-type 2024-08-20 18:29:12 +02:00
Benjamin Canac
b4568b31cf test: update snapshots 2024-08-20 18:29:00 +02:00
Benjamin Canac
561c1fb665 fix(Button): move span with truncate inside default slot 2024-08-20 18:28:47 +02:00
Benjamin Canac
55cbc65825 chore(deps): refresh lock 2024-08-20 17:56:32 +02:00
Benjamin Canac
283b3c9ac0 chore(renovate): enable lockfile maintenance 2024-08-20 17:00:27 +02:00
Benjamin Canac
695085cac4 chore(deps): update 2024-08-20 16:33:03 +02:00
Benjamin Canac
88e94cc10b chore(github): put back labels in issue templates 2024-08-07 15:35:30 +02:00
Benjamin Canac
71d27152ed docs(context-menu): update 2024-08-07 14:51:01 +02:00
Benjamin Canac
9af6d7dc59 fix(ContextMenu/DropdownMenu): move open and default-open props to Sub 2024-08-07 13:20:48 +02:00
Benjamin Canac
5d2d198aae docs(ComponentCode/ComponentExample/ComponentTheme): handle collapse 2024-08-07 12:27:47 +02:00
Benjamin Canac
daa98c56fa chore(ContextMenu/DropdownMenu): set modal to true by default 2024-08-06 18:37:03 +02:00
Benjamin Canac
5e294e7e21 docs(ComponentTheme/IconsTheme): wrap around defineAppConfig 2024-08-06 18:27:40 +02:00
Benjamin Canac
db8c0e7433 chore(pnpm): remove modules/* from workspace 2024-08-06 17:10:30 +02:00
Benjamin Canac
39a63e8e3f docs(dropdown-menu): update 2024-08-06 17:10:30 +02:00
Benjamin Canac
8d560bdd21 feat(module): allow tailwind.css customization 2024-08-06 12:55:11 +02:00
Benjamin Canac
d13e27eb5b feat(Breacrumb/ContextMenu/DropdownMenu/NavigationMenu): bind item class on link 2024-08-06 12:52:01 +02:00
Benjamin Canac
10bb9b486a docs(accordion): update 2024-08-06 12:42:09 +02:00
Benjamin Canac
279f55ee2c docs(tabs): update 2024-08-06 12:41:47 +02:00
Benjamin Canac
8da6a1c0e2 docs(button): improve ui prop formatting 2024-08-06 11:22:01 +02:00
Benjamin Canac
68afba8f3c docs(ComponentProps): handle ignore in schema 2024-08-06 11:22:01 +02:00
Benjamin Canac
24f24e9d8e docs(progress/slider): improve orientation section 2024-08-06 11:22:01 +02:00
Benjamin Canac
34ba466c15 docs(collapsible): update 2024-08-06 11:22:01 +02:00
Benjamin Canac
8f5e8170e6 docs(ComponentCode/ComponentExample): add class prop 2024-08-06 11:22:01 +02:00
Benjamin Canac
e70aee4d69 docs: update 2024-08-06 11:22:01 +02:00
Benjamin Canac
15cee52003 chore(deps): update 2024-08-05 12:43:31 +02:00
Benjamin Canac
13738d574b chore(Alert/Toast): remove template around description 2024-08-04 11:34:55 +02:00
Benjamin Canac
fff3d04415 chore(deps): add nuxt resolution to 3.12.3 2024-08-02 14:30:00 +02:00
Benjamin Canac
b1bcaabd19 fix(RadioGroup): style legend based on size 2024-08-01 17:18:21 +02:00
Benjamin Canac
e598ca5b40 docs: clean 2024-08-01 17:17:52 +02:00
Benjamin Canac
787ab001bd chore(deps): update 2024-08-01 17:17:28 +02:00
Benjamin Canac
372d902f7e docs(link): update 2024-08-01 15:13:42 +02:00
Benjamin Canac
e94461d1fa docs(form-field): update 2024-08-01 12:12:40 +02:00
Benjamin Canac
9963d71fbc docs(getting-started): inverse icons and colors 2024-08-01 12:08:37 +02:00
Benjamin Canac
5366e228bb docs: update banner title 2024-08-01 12:08:24 +02:00
Benjamin Canac
789fcb6566 docs: use present tense when possible 2024-08-01 12:05:09 +02:00
Benjamin Canac
a23c3140df fix(FormField): allow error prop as boolean 2024-08-01 11:51:07 +02:00
Benjamin Canac
d93e151194 docs(progress/slider): update orientation height 2024-07-31 16:46:32 +02:00
Benjamin Canac
b9f4bcbbc9 docs(collapsible): update 2024-07-31 16:44:32 +02:00
Benjamin Canac
973560e6f1 docs(meter): hide 2024-07-31 16:04:48 +02:00
Benjamin Canac
9426513a59 docs: rename Events to Emits 2024-07-31 15:59:06 +02:00
Benjamin Canac
6ea576c558 docs(ComponentCode): fix code when number | number[] 2024-07-31 15:57:06 +02:00
Benjamin Canac
836007dfa6 docs(progress): update 2024-07-31 15:53:34 +02:00
Benjamin Canac
00575f55c9 docs(ComponentCode): ignore externals manually 2024-07-31 15:52:04 +02:00
Benjamin Canac
8f48883a2d docs(ComponentCode): improve 2024-07-31 15:28:37 +02:00
Benjamin Canac
74a6bca2b3 feat(Input/Textarea): expose ref 2024-07-31 15:28:28 +02:00
Benjamin Canac
c3ee509c65 docs(radio-group): update 2024-07-31 14:16:23 +02:00
Benjamin Canac
b9e3fcb0f1 docs(slider): update 2024-07-31 12:52:29 +02:00
Benjamin Canac
0635c5434c chore(Slider): improve update:modelValue event signature 2024-07-31 11:22:56 +02:00
Benjamin Canac
007a0cf85e docs(switch): update 2024-07-31 11:13:46 +02:00
Benjamin Canac
c4ef5c4db8 docs(textarea): update 2024-07-30 19:18:02 +02:00
Benjamin Canac
4eea9f54c0 docs(input): update 2024-07-30 19:04:06 +02:00
Benjamin Canac
4eb1732545 docs(ComponentCode): allow empty string in v-model 2024-07-30 18:03:09 +02:00
Benjamin Canac
a6d5e188a3 docs(ComponentProps/ComponentSlots): remove white-space 2024-07-30 18:02:56 +02:00
Benjamin Canac
9a8d44c46b docs(ComponentCode): improve slots display 2024-07-30 17:47:49 +02:00
Benjamin Canac
8f82a65f03 docs(tooltip): update 2024-07-30 16:46:49 +02:00
Benjamin Canac
cae27d5206 chore(Collapsible): add flex flex-col gap-2 on root 2024-07-30 16:46:42 +02:00
Benjamin Canac
0ddadc9b3b docs(checkbox): remove examples 2024-07-30 16:46:07 +02:00
Benjamin Canac
a90935b6aa docs(chip): update 2024-07-30 16:45:53 +02:00
Benjamin Canac
2c6295d479 docs(ComponentProps/ComponentSlots): add whitespace pre 2024-07-30 16:45:42 +02:00
Benjamin Canac
4dd799748b chore(deps): update 2024-07-30 15:04:41 +02:00
Benjamin Canac
bcaca46ccc docs(chip): update 2024-07-26 16:13:02 +02:00
Benjamin Canac
2f57c43361 docs(components): update callouts priorities 2024-07-26 16:11:24 +02:00
Benjamin Canac
aca319bc36 docs(components): split color and variant into two sections 2024-07-26 15:17:46 +02:00
Benjamin Canac
3a1ba1dfa3 docs(checkbox): update 2024-07-26 14:59:56 +02:00
Benjamin Canac
09f76e75a9 docs(checkbox): update 2024-07-26 13:03:32 +02:00
Benjamin Canac
b9249c0c3d docs(components): demo size different than default 2024-07-26 13:03:24 +02:00
Benjamin Canac
a6c4ffa013 docs(ComponentCode/ComponentExample): disable prettier by default 2024-07-26 13:02:55 +02:00
Benjamin Canac
839b97a9dc docs(components): update descriptions 2024-07-26 11:58:43 +02:00
Benjamin Canac
ce28607d7d docs(app): update 2024-07-26 11:05:20 +02:00
Benjamin Canac
3319144962 chore(module): add support for non vite projects 2024-07-26 10:47:34 +02:00
Benjamin Canac
9569339c91 chore(deps): update tailwindcss 2024-07-26 10:47:18 +02:00
Benjamin Canac
42f4f8d337 fix(module): use relative imports to components / composables 2024-07-25 18:17:20 +02:00
Benjamin Canac
8bac288687 docs(accordion): update 2024-07-24 17:22:12 +02:00
Benjamin Canac
3c1d8162ca docs(alert): update 2024-07-24 16:59:14 +02:00
Benjamin Canac
f1193c35c5 docs(ComponentProps): update 2024-07-24 16:59:07 +02:00
Benjamin Canac
7757d330b0 docs(tabs): add Content section 2024-07-24 15:54:03 +02:00
Benjamin Canac
5114136d25 docs(ComponentProps): improve display 2024-07-24 15:53:31 +02:00
Benjamin Canac
5176bf92bc chore(Accordion): remove useless content prop 2024-07-24 15:33:28 +02:00
Benjamin Canac
30de2373c5 docs(breadcrumb): improve 2024-07-24 15:32:44 +02:00
Benjamin Canac
aa301af926 docs(Tabs): improve 2024-07-24 15:32:35 +02:00
Benjamin Canac
102fb2316d docs(ComponentProps): display schema description 2024-07-24 14:48:33 +02:00
Benjamin Canac
c00e0fa3db docs: remove unused pages 2024-07-24 14:28:16 +02:00
Benjamin Canac
e1b0936105 docs(tabs): update examples 2024-07-24 14:22:02 +02:00
Benjamin Canac
ecad41a7fa docs(tooltip): update 2024-07-24 14:21:53 +02:00
Benjamin Canac
1d9ac2b75b docs(icon): update link 2024-07-23 16:50:29 +02:00
Benjamin Canac
023a5215bf docs(components): add first prop title in usage to be displayed in toc 2024-07-23 16:50:18 +02:00
Benjamin Canac
4825b754fc chore(App): typo in interfaces 2024-07-23 16:49:40 +02:00
Benjamin Canac
be8bf691c3 fix(Tooltip): missing root props proxy 2024-07-23 12:19:06 +02:00
Benjamin Canac
fb6eae3f62 docs(ComponentCode): improve 2024-07-23 12:18:23 +02:00
Benjamin Canac
ec0f599565 docs(tabs): update 2024-07-22 16:32:06 +02:00
Benjamin Canac
d6950d3df8 chore(deps): update 2024-07-22 16:07:55 +02:00
Benjamin Canac
640de11ec7 docs(breadcrumb): update examples 2024-07-22 16:07:45 +02:00
Benjamin Canac
f4db34bf1c docs(ComponentCode): missing overflow 2024-07-22 16:07:26 +02:00
Benjamin Canac
c1ac3a9f9d fix(Link): allow ariaLabel to be picked 2024-07-22 12:52:28 +02:00
Benjamin Canac
6cc635a8a7 test: add missing /components in urls 2024-07-22 12:52:12 +02:00
Benjamin Canac
0ad74794ed playground(context-menu): improve 2024-07-22 12:48:04 +02:00
Benjamin Canac
dc3d714ded playground: add missing /components in urls 2024-07-22 12:47:49 +02:00
Benjamin Canac
a7e73f86de chore(deps): update @nuxt/icon 2024-07-20 18:16:56 +02:00
Benjamin Canac
b28b0f9d8c chore(deps): update 2024-07-20 18:15:24 +02:00
Benjamin Canac
78f8740369 docs(tabs): update 2024-07-18 18:07:28 +02:00
Benjamin Canac
ca8e9e77ab docs(progress): update 2024-07-18 17:51:26 +02:00
Benjamin Canac
5317c5724f docs(define-shortcuts): update 2024-07-18 17:51:20 +02:00
Benjamin Canac
35f72351d0 docs(avatar): update 2024-07-18 17:51:07 +02:00
Benjamin Canac
8364de98c9 docs(alert): add examples 2024-07-18 17:49:34 +02:00
Benjamin Canac
368054456b docs(breadcrumb): update 2024-07-18 17:48:03 +02:00
Benjamin Canac
067e2d346e docs: use camelCase in props 2024-07-18 17:46:54 +02:00
Benjamin Canac
01ac65f07d docs(ComponentCode): update 2024-07-18 17:45:35 +02:00
Benjamin Canac
d7c1158f97 docs(ComponentCode): handle hide and external props 2024-07-18 15:39:11 +02:00
Benjamin Canac
b194c5e49a docs(alert): update 2024-07-18 15:39:01 +02:00
Benjamin Canac
c824f300c3 docs(ComponentExample): use $prettier for consistency 2024-07-18 15:34:40 +02:00
Benjamin Canac
82ea62bb23 docs(button-group): update 2024-07-18 14:12:17 +02:00
Benjamin Canac
ff678d6004 docs(ComponentCode): update prettier options 2024-07-18 14:10:10 +02:00
Benjamin Canac
0c4b79f92e docs(breadcrumb): update 2024-07-18 11:25:00 +02:00
Benjamin Canac
0dfd8b3248 fix(ButtonGroup): define its own size variant 2024-07-18 11:24:40 +02:00
Benjamin Canac
70b964f3a0 docs(avatar-group): update 2024-07-18 11:06:26 +02:00
Benjamin Canac
3b5a7c5c58 chore(github): update stale workflow 2024-07-18 10:52:58 +02:00
Benjamin Canac
eff468fe9c docs(app): update 2024-07-17 18:02:47 +02:00
Benjamin Canac
98a802bfed docs(ComponentCode): update 2024-07-17 18:02:40 +02:00
Benjamin Canac
6db7b056ae docs(skeleton): update 2024-07-17 17:38:34 +02:00
Benjamin Canac
9c56917714 docs(avatar-group): update 2024-07-17 17:27:34 +02:00
Benjamin Canac
8ae8993db4 docs(ComponentCode): handle input number 2024-07-17 17:27:14 +02:00
Benjamin Canac
9620d903c5 fix(AvatarGroup): default size to md 2024-07-17 17:17:46 +02:00
Benjamin Canac
e9832b95f5 fix(AvatarGroup): handle deep children 2024-07-17 17:17:15 +02:00
Benjamin Canac
b5bfb61816 docs(breadcrumb): update example 2024-07-17 17:02:36 +02:00
Benjamin Canac
da42c0489a fix(Avatar): bind $attrs on image 2024-07-17 16:39:37 +02:00
Benjamin Canac
b0e0b87c79 docs(avatar): update 2024-07-17 16:39:27 +02:00
Benjamin Canac
df6e2a6378 docs(ComponentCode): update prettier config 2024-07-17 16:39:09 +02:00
Benjamin Canac
59b3873c73 docs(ComponentProps): always put as first and ui last 2024-07-17 16:38:47 +02:00
Benjamin Canac
c3f747aee5 docs(alert): update 2024-07-17 15:44:38 +02:00
Benjamin Canac
dd532bb110 docs(ComponentCode): handle objects 2024-07-17 15:44:17 +02:00
Benjamin Canac
11b4dfefa7 chore(components): add lang ts-type on close buttons jsdoc 2024-07-17 15:25:28 +02:00
Benjamin Canac
a155e7c1a7 chore(github): update 2024-07-17 14:59:46 +02:00
Benjamin Canac
8ba5637f61 chore(Alert): improve gray color 2024-07-17 14:59:33 +02:00
Benjamin Canac
09c6fce8eb docs(ComponentProps): add ? when prop is optional 2024-07-17 11:55:19 +02:00
Benjamin Canac
4e99ebf605 docs(ComponentCode/ComponentExample): add missing margin 2024-07-17 11:55:02 +02:00
Benjamin Canac
8563ea157b docs(breadcrumb): update 2024-07-17 11:54:39 +02:00
Benjamin Canac
59a84f2ace chore(deps): update 2024-07-16 21:28:49 +02:00
Benjamin Canac
9420a686bb docs(components): update radix-vue links labels 2024-07-11 18:18:33 +02:00
Benjamin Canac
e7e1b2339f docs(container): update 2024-07-11 17:43:03 +02:00
Benjamin Canac
a890528550 docs(fetchComponentExample): prevent err when example is not found 2024-07-11 17:42:48 +02:00
Benjamin Canac
795621746b docs(card): update 2024-07-11 17:38:34 +02:00
Benjamin Canac
96e18ef233 docs(ComponentExample): add 2024-07-11 17:38:27 +02:00
Benjamin Canac
57e62f36c4 docs: use ::tip everywhere 2024-07-11 17:15:12 +02:00
Benjamin Canac
b9319c0fbc docs(icon): update 2024-07-11 17:14:59 +02:00
Benjamin Canac
810ea32bf8 docs(fetchComponentMeta): handle case where component doesn't exist 2024-07-11 17:14:45 +02:00
Benjamin Canac
c712e2e682 docs(ComponentCode): handle case where theme doesn't exist 2024-07-11 17:14:27 +02:00
Benjamin Canac
c1ed04f722 chore(Toast): simplify code now that duration is exposed 2024-07-11 12:51:00 +02:00
Benjamin Canac
6a13c7fa01 chore(deps): update 2024-07-11 12:50:44 +02:00
Benjamin Canac
a73d1c6ae6 chore(vscode): remove settings 2024-07-11 10:29:20 +02:00
Benjamin Canac
c1ddedf67a docs(link): update 2024-07-10 19:07:06 +02:00
Benjamin Canac
612a9e930d docs(kbd): update 2024-07-10 18:44:08 +02:00
Benjamin Canac
bfeba51b8a docs(components): update github links 2024-07-10 18:43:59 +02:00
Benjamin Canac
40d17f7b03 fix(Kbd): optional value prop when using default slot 2024-07-10 18:43:30 +02:00
Benjamin Canac
bc633c6687 docs(ComponentCode): handle custom items 2024-07-10 18:43:06 +02:00
Benjamin Canac
8e5547f26d docs(content): move shortcuts into composables/ 2024-07-10 17:22:42 +02:00
Benjamin Canac
a889c054d3 docs(ComponentCode): handle objects 2024-07-10 17:22:24 +02:00
Benjamin Canac
813fdfd646 fix(SelectMenu): display modelValue even if false 2024-07-10 15:24:18 +02:00
Benjamin Canac
982e12f2b8 docs(button): update 2024-07-10 15:23:47 +02:00
Benjamin Canac
f16eb2310d docs(badge): update 2024-07-10 15:23:27 +02:00
Benjamin Canac
26f68fc31d docs: improve ComponentCode and ComponentProps 2024-07-10 15:23:21 +02:00
Benjamin Canac
6aa0ea306f feat(components): allow override of sizes through ui prop 2024-07-10 12:57:34 +02:00
Benjamin Canac
db30284e7a feat(SelectMenu): add prop to disable search 2024-07-10 12:56:38 +02:00
Benjamin Canac
781047eacb docs(badge): update 2024-07-09 18:11:41 +02:00
Benjamin Canac
5a13e1bf41 docs: add ComponentCode component 2024-07-09 18:11:33 +02:00
Benjamin Canac
bdc3217571 fix(CommandPalette/InputMenu/Select/SelectMenu): adapt chip size 2024-07-09 17:44:46 +02:00
Benjamin Canac
5c12d428c4 fix(SelectMenu): adapt input size 2024-07-09 17:17:53 +02:00
Benjamin Canac
9d0db51ccc playground: move pages under /components to match docs 2024-07-09 17:08:16 +02:00
Benjamin Canac
eeec9676cd feat(InputMenu/Select/SelectMenu): introduce valueKey prop
Resolves #108
2024-07-09 17:03:52 +02:00
Benjamin Canac
06e8a9e912 chore(CommandPalette/InputMenu/SelectMenu): proxy selectedValue prop from Combobox 2024-07-09 17:02:34 +02:00
Benjamin Canac
7fd38a8cb8 fix(module): typo in fuchsia color 2024-07-09 15:44:21 +02:00
Benjamin Canac
182d4dd81a docs: update 2024-07-09 15:24:23 +02:00
Benjamin Canac
eba8b4b31a feat(Input): set autocomplete to off by default 2024-07-09 15:24:07 +02:00
Benjamin Canac
e1f385ee76 playground(checkbox): remove icon on error color 2024-07-09 15:22:55 +02:00
Benjamin Canac
9078da5279 chore(templates): improve DeepPartial type 2024-07-09 12:26:04 +02:00
Benjamin Canac
c7536a7af9 fix(templates): add error in AppConfig type 2024-07-09 12:17:34 +02:00
Benjamin Canac
510433568a chore(Tabs): avatar type 2024-07-09 12:14:38 +02:00
Benjamin Canac
d94f8b7452 chore(deps): update 2024-07-09 11:22:29 +02:00
Benjamin Canac
12e9ec28ae chore(github): update pnpm/action-setup to v4 2024-07-09 11:01:29 +02:00
Benjamin Canac
c018c23224 feat(components): uniformize colors and variants (#141) 2024-07-09 10:45:26 +02:00
Silver343
18c5ead1bd feat(InputMenu): handle size prop (#131)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-07-03 15:32:16 +02:00
Benjamin Canac
6f535ade9c docs(icons): dynamic theme section 2024-07-03 15:25:05 +02:00
Benjamin Canac
a4e86d6d42 chore(components): add more sizes to theme config 2024-07-03 15:23:43 +02:00
Benjamin Canac
5f40773fa4 docs(ComponentProps): prevent err 2024-07-03 14:36:16 +02:00
Benjamin Canac
235556d3e0 fix(components): ui prop override with class (#136) 2024-07-03 14:35:58 +02:00
Benjamin Canac
5a22c62b2a docs(nuxt.config): add content highlight diff lang 2024-07-02 15:45:59 +02:00
Benjamin Canac
5cc4457a74 fix(components): declare ui prop with PartialString when arrays in theme slots 2024-07-02 15:02:29 +02:00
Benjamin Canac
52146dc260 docs(nuxt.config): update 2024-07-02 14:53:26 +02:00
Benjamin Canac
cacd853d1e chore(components): declare slots after emits 2024-07-02 13:54:29 +02:00
Benjamin Canac
1eaec0ff56 fix(templates): export types in dev mode 2024-07-02 13:45:43 +02:00
Sandro Circi
b61696cdca feat(Select/SelectMenu): handle size prop (#133)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-07-02 12:03:10 +02:00
Benjamin Canac
57a49877ae playground: update 2024-07-02 10:30:14 +02:00
Benjamin Canac
f4c9f530b8 docs: update 2024-07-02 10:26:46 +02:00
Silver343
aa832f32a0 feat(ContextMenu): handle size prop (#130) 2024-07-02 10:26:23 +02:00
Romain Hamel
bad2e49de9 refactor(Form): input events (#99)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-07-01 20:37:57 +02:00
Benjamin Canac
ca029a4b6c docs: update 2024-07-01 19:35:59 +02:00
Benjamin Canac
c8e353e599 docs(ComponentTheme): filter compoundVariants colors and display warning 2024-07-01 18:40:28 +02:00
Benjamin Canac
18311d32d8 docs: improve props 2024-07-01 17:26:03 +02:00
Benjamin Canac
d2be8fdf7d chore(components): improve jsdoc 2024-07-01 16:22:08 +02:00
Benjamin Canac
ccbaf6ea15 feat(module)!: move primary and gray inside colors object 2024-07-01 14:57:59 +02:00
Benjamin Canac
30bc3a1d76 chore(module): move animations to css file 2024-07-01 14:57:59 +02:00
Benjamin Canac
a39cbd3a7f chore(Button): improve outline, soft and ghost variants 2024-07-01 14:57:59 +02:00
Benjamin Canac
509bf6fec6 chore(Badge): improve soft and subtle variants 2024-07-01 14:30:08 +02:00
Benjamin Canac
2eb6a234c3 chore(Alert): improve soft and subtle variants 2024-07-01 14:29:55 +02:00
Benjamin Canac
4362de48a7 chore(deps): refresh lock 2024-07-01 11:57:19 +02:00
Benjamin Canac
fbb82c29cd chore(deps): update 2024-07-01 11:21:40 +02:00
Romain Hamel
20acc92eec feat(Form): support for valibot@33 (#132) 2024-07-01 10:52:27 +02:00
Benjamin Canac
225d28d279 docs(form): improve Exposed section 2024-06-28 22:32:58 +02:00
Benjamin Canac
e3da411014 docs(ComponentEvents): improve name 2024-06-28 22:10:19 +02:00
Benjamin Canac
f9c69a7837 chore(components): use {} for empty props 2024-06-28 22:03:14 +02:00
Benjamin Canac
8113c2163c docs(HighlightInlineType): use ts-type language 2024-06-28 21:35:57 +02:00
Benjamin Canac
88aace9263 chore(deps): add @nuxtjs/mdc resolution to latest edge 2024-06-28 21:35:40 +02:00
Benjamin Canac
84cc647f83 chore(components): improve props jsdoc 2024-06-28 18:36:46 +02:00
Benjamin Canac
ec08ed9e2e docs(deps): update nuxt-component-meta to v0.7.0 2024-06-28 18:35:49 +02:00
Benjamin Canac
ef2b270a04 docs: display jsdoc defaultValue 2024-06-28 18:13:21 +02:00
Benjamin Canac
673064dee5 chore(components): improve props 2024-06-28 18:13:03 +02:00
Benjamin Canac
c9f9a248b7 docs: update 2024-06-28 16:19:25 +02:00
Benjamin Canac
fae627ed65 chore(components): add missing emits for docs 2024-06-28 16:19:06 +02:00
Benjamin Canac
7dd90f2bb7 docs(app): use UContentSearchButton component 2024-06-28 14:29:41 +02:00
Benjamin Canac
24618b8a5e docs(deps): update nuxt-component-meta to v0.6.6 2024-06-28 14:29:22 +02:00
Benjamin Canac
4ef81991f2 docs: update 2024-06-28 11:51:23 +02:00
Benjamin Canac
db45bafaed chore(Button): ignore raw from LinkProps 2024-06-28 11:51:23 +02:00
Benjamin Canac
a44abb738f chore(deps): update 2024-06-28 11:51:23 +02:00
Benjamin Canac
a0559d4163 chore: ignore as from radix props fields 2024-06-28 11:51:23 +02:00
Benjamin Canac
f85eb8ed40 chore(Alert/Toast): remove description as VNode 2024-06-28 11:51:23 +02:00
Benjamin Canac
369e0b1952 fix: define empty props in slots for nuxt-component-meta parsing 2024-06-28 11:51:23 +02:00
Benjamin Canac
84d814f88b docs: update 2024-06-27 16:35:28 +02:00
Anthony Fu
1d61d8d152 docs: highlight inline type code in props table 2024-06-27 16:28:11 +02:00
Benjamin Canac
b5f42cdd3a docs: update 2024-06-27 15:39:15 +02:00
Benjamin Canac
0b3ce24eb6 docs: update 2024-06-26 19:09:05 +02:00
Benjamin Canac
c63b3cec6a chore(deps): refresh lock 2024-06-25 18:47:44 +02:00
Benjamin Canac
3097da486f fix(module): prevent override of rootAttrs.class 2024-06-25 18:14:17 +02:00
Benjamin Canac
c72cb58441 chore(deps): remove vue-tsc resolution 2024-06-25 18:10:22 +02:00
Benjamin Canac
cd7cc0d9a3 chore: improve types export 2024-06-25 17:58:14 +02:00
Benjamin Canac
ea288e9624 chore(deps): refresh lock 2024-06-24 17:58:39 +02:00
Benjamin Canac
bdecefa2d1 chore(deps): remove happy-dom resolution 2024-06-24 17:39:27 +02:00
Benjamin Canac
86f5884f08 chore(deps): pin vue-tsc 2024-06-24 17:37:50 +02:00
Benjamin Canac
5f7872f06e fix(types): useless import 2024-06-24 17:30:05 +02:00
Benjamin Canac
b22aedd9d7 chore(deps): update pnpm 2024-06-24 12:20:09 +02:00
Benjamin Canac
0bdfc26734 chore(deps): update 2024-06-24 11:44:17 +02:00
Benjamin Canac
0b8bfa887b docs(deps): update @nuxt/content and move content/ outside of app/ 2024-06-20 10:39:10 +02:00
Benjamin Canac
11ef256db7 docs: improve 2024-06-19 21:23:23 +02:00
Benjamin Canac
dc1913b40d playground(dropdown-menu): update icon 2024-06-19 18:00:35 +02:00
Benjamin Canac
a5b3608938 chore(Button): improve variants
Resolves #118
2024-06-19 13:03:43 +02:00
Silver343
dfa99362d4 feat(DropdownMenu): handle size prop (#125)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-06-19 11:50:25 +02:00
Benjamin Canac
5b2e7d8bad fix(Select): wrong button group variants 2024-06-19 11:01:34 +02:00
Benjamin Canac
6a72ef06d0 docs: highlight navigation 2024-06-19 10:48:06 +02:00
Benjamin Canac
34cf395f1a fix(Tooltip): put back close animation 2024-06-19 10:35:30 +02:00
Benjamin Canac
865b57f97c chore(github): update actions 2024-06-18 17:21:40 +02:00
Benjamin Canac
5a0d70e33d chore(deps): use @nuxt/icon instead of nuxt-icon 2024-06-18 12:39:44 +02:00
Benjamin Canac
06e041c374 docs: update 2024-06-18 11:01:00 +02:00
Benjamin Canac
cd7888cac7 chore(deps): update 2024-06-18 11:00:41 +02:00
Benjamin Canac
20d49d9e16 chore(DropdownMenu/ContextMenu): type createReusableTemplate 2024-06-15 10:35:21 +02:00
Benjamin Canac
0c6720be73 fix(module): add isolate class on root node 2024-06-15 10:30:06 +02:00
Benjamin Canac
38fb22af19 chore(module): add ts-ignore on nuxt.options.ui assignment 2024-06-15 10:29:55 +02:00
Benjamin Canac
8f1402f780 chore(module): indicate compatibility with new v4 major 2024-06-15 10:26:58 +02:00
Benjamin Canac
bedb863fc6 fix(SelectMenu): input before empty 2024-06-13 11:17:51 +02:00
Benjamin Canac
20995aa6d3 docs: migrate to nuxt compatibility 4 2024-06-12 11:10:59 +02:00
Benjamin Canac
ceee9b2e11 playground: migrate to nuxt compatibility 4 2024-06-12 10:36:47 +02:00
Benjamin Canac
ee3d2aa30f chore(components): improve JSDoc 2024-06-11 18:23:56 +02:00
Benjamin Canac
655d9b2c97 chore(Button): remove truncate prop to always use on label 2024-06-11 17:39:27 +02:00
Benjamin Canac
e4eef89767 feat(Alert/CommandPalette/Modal/Slideover/Toast): handle closeIcon and uniformize close prop 2024-06-11 15:48:45 +02:00
Benjamin Canac
d160278283 chroe(deps): pin happy-dom 2024-06-11 15:48:03 +02:00
Benjamin Canac
884a14c3d2 chore(deps): update 2024-06-11 14:03:12 +02:00
Benjamin Canac
e5695e78bc fix(Breadcrumb): only apply aria-current="page" when link is active 2024-06-11 12:26:41 +02:00
Benjamin Canac
33713b200d chore(deps): update 2024-06-11 12:00:04 +02:00
Benjamin Canac
c630625e83 chore: add class in close slot props 2024-06-10 18:57:18 +02:00
Benjamin Canac
90bcc23576 cli: typo when writing types/index.d.ts 2024-06-10 18:57:00 +02:00
Benjamin Canac
1d303ab909 playground: use app.head instead of useHead 2024-06-10 15:59:30 +02:00
Benjamin Canac
b56151e144 chore(RadioGroup): expose modeValue in label / description slots 2024-06-10 11:41:33 +02:00
Benjamin Canac
0f2da5bb15 chore(Switch): improve props JSDoc 2024-06-10 11:17:42 +02:00
Benjamin Canac
d8189052be chore(CommandPalette): improve props JSDoc 2024-06-10 11:14:44 +02:00
Romain Hamel
a2114c5874 fix(Form): inconsistent validation events for InputMenu and Select (#123)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-06-10 10:45:54 +02:00
Benjamin Canac
f2d3e53dec chore(deps): update tailwindcss 2024-06-09 17:11:40 +02:00
Benjamin Canac
9dd9b3426c test(CommandPalette): update 2024-06-08 16:14:30 +02:00
Benjamin Canac
9d5f9a7010 fix(Tabs): align link variant left when vertical 2024-06-08 16:14:23 +02:00
Silver343
2b6965211d feat(Tabs): handle size prop (#124)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-06-08 16:03:51 +02:00
Benjamin Canac
5694823a41 fix(templates): pass options to theme in dev mode 2024-06-07 19:54:48 +02:00
Benjamin Canac
5511e21eeb chore(package): use DEV=true only with nuxi dev 2024-06-07 19:53:57 +02:00
Anthony Fu
12ba480d34 fix(module): handle theme HMR on dev (#84)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-06-07 19:47:59 +02:00
Benjamin Canac
efb7582b37 chore(defineShortcuts): lint 2024-06-07 19:38:22 +02:00
Benjamin Canac
b503876e20 chore(deps): update lock 2024-06-07 19:36:37 +02:00
Benjamin Canac
6a1b97add0 fix(templates): missing command in keyframes 2024-06-07 19:36:37 +02:00
Neil Richter
b886150147 feat(Slideover): open programmatically (#122) 2024-06-07 17:31:05 +02:00
Benjamin Canac
20476f4b9a feat(CommandPalette): improve theme and performance 2024-06-07 16:01:30 +02:00
Benjamin Canac
4e17da21f3 chore: remove space in function type def 2024-06-07 11:58:39 +02:00
Benjamin Canac
09e4cb77f1 chore(Navigation): typo in type 2024-06-07 11:57:29 +02:00
Benjamin Canac
e29cf793cb feat(CommandPalette): implement group filter function 2024-06-06 18:35:48 +02:00
Benjamin Canac
dc761a8e3e chore(CommandPalette): improve theme 2024-06-06 15:08:23 +02:00
Benjamin Canac
15e707c4ad chore(CommandPalette): warn when group is missing id 2024-06-06 15:08:10 +02:00
Benjamin Canac
0ee60c015b chore(Drawer/Modal/Slideover): increase overlay z-index to 50 2024-06-06 15:05:46 +02:00
Benjamin Canac
ada68a6637 chore(icons): sort 2024-06-06 15:04:41 +02:00
Benjamin Canac
5f4fd972ff feat(module): add option to disable transitions 2024-06-05 23:11:58 +02:00
Benjamin Canac
3f2b1b12cd chore(theme): improve options type 2024-06-05 22:42:06 +02:00
Benjamin Canac
ecc2240df0 cli: handle --prose && --content options for pro 2024-06-05 17:04:26 +02:00
Benjamin Canac
f70b63970a fix(Tabs): wrong text color with pill colored 2024-06-05 16:04:50 +02:00
Benjamin Canac
188d2bcd89 chore(module): dedup colors 2024-06-05 15:53:28 +02:00
Benjamin Canac
2de38b317b chore(module): add JSDoc for options 2024-06-05 15:53:05 +02:00
Benjamin Canac
88eb4cac97 fix(Tabs): improve config 2024-06-05 15:46:07 +02:00
Benjamin Canac
82ffc1ed57 feat(Tabs): handle color and variant props
Resolves #116
2024-06-05 15:09:59 +02:00
Benjamin Canac
57b32ca9b6 playground(alert): improve actions color 2024-06-04 14:06:14 +02:00
Benjamin Canac
ad70bb9a59 playground(app): fix layout scroll 2024-06-04 14:06:03 +02:00
Benjamin Canac
b1879ea6d1 chore(NavigationMenu): consistent key for child link external icon 2024-06-04 12:43:09 +02:00
Benjamin Canac
e051ef682a feat(Tabs): handle content prop as boolean 2024-06-03 14:55:33 +02:00
Benjamin Canac
c6880c2036 chore(deps): update 2024-06-03 11:20:59 +02:00
Benjamin Canac
f975fb64bd playground(form): clean 2024-05-30 17:29:00 +02:00
Benjamin Canac
eb1a60d320 chore(DropdownMenu): types 2024-05-30 17:28:52 +02:00
Benjamin Canac
395b8305e1 chore(Breadcrumb): improve theme 2024-05-30 17:28:41 +02:00
Benjamin Canac
ed2c45ac76 feat: expose open state to slots 2024-05-30 12:36:48 +02:00
Benjamin Canac
85c4226bd0 chore(Breadcrumb): font-medium on active link only 2024-05-30 12:03:30 +02:00
Benjamin Canac
5a6a827b42 chore(RadioGroup): consistent emits 2024-05-30 12:03:15 +02:00
Benjamin Canac
3fc06ed1da test(NavigationMenu): improve 2024-05-29 14:41:35 +02:00
Benjamin Canac
ff77967fd7 test(RadioGroup): improve 2024-05-29 14:41:23 +02:00
Benjamin Canac
dfc63b1bc0 chore(ButtonGroup): use Primitive and improve tests 2024-05-29 14:41:13 +02:00
Benjamin Canac
627688cab5 chore(NavigationMenu): improve theme 2024-05-29 14:32:57 +02:00
Benjamin Canac
c838b3a040 fix(NavigationMenu): add default highlightColor 2024-05-28 18:12:35 +02:00
Benjamin Canac
440593c5e4 fix(Pagination): center text when link 2024-05-28 17:18:16 +02:00
Neil Richter
2bf99e1eb4 feat(Modal): open programmatically (#78)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-05-28 17:14:13 +02:00
Benjamin Canac
cf38e7ed78 fix(module): inject options in nuxt.options.ui 2024-05-28 16:39:25 +02:00
Benjamin Canac
0bdd6dfe86 fix(NavigationMenu): highlightColor defaults to color prop 2024-05-28 16:39:05 +02:00
Benjamin Canac
af43b5df25 feat(NavigationMenu): replace line variant with highlight prop 2024-05-28 15:29:22 +02:00
Benjamin Canac
ec6ebbacbe feat(NavigationMenu): improve theme with line variant and border 2024-05-28 11:28:01 +02:00
Benjamin Canac
1af449d6e0 feat(NavigationMenu): handle content, color, variant, etc. 2024-05-27 15:03:50 +02:00
Benjamin Canac
bcab07a32c playground(app): update layout 2024-05-27 14:52:00 +02:00
Benjamin Canac
88926091d5 test: missing props in with ui 2024-05-27 14:51:44 +02:00
Benjamin Canac
c9c685a01c chore(Breadcrumb): improve theme config 2024-05-27 14:50:40 +02:00
Benjamin Canac
51f4ffc953 chore(DropdownMenu/ContextMenu): handle external icon 2024-05-27 14:49:22 +02:00
Benjamin Canac
a8dfa0ff29 chore(DropdownMenu/ContextMenu): item type default to link 2024-05-27 14:47:57 +02:00
Benjamin Canac
316eeea482 docs: start migration 2024-05-22 12:42:30 +02:00
Romain Hamel
072f2c64f7 playground(form): examples for SelectMenu and InputMenu (#112)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-05-22 10:25:35 +02:00
Neil Richter
5c5676edf9 feat(Pagination): allow using pagination buttons as links (#114) 2024-05-21 17:51:52 +02:00
Benjamin Canac
e8dee1efe1 chore(Select): expose modelValue and open
Resolves #109
2024-05-20 17:50:48 +02:00
Benjamin Canac
d2442a1e47 fix(Progress): initial indicator style when percent is 0 2024-05-20 14:19:22 +02:00
Benjamin Canac
b497e427df chore(deps): update 2024-05-20 14:17:32 +02:00
Benjamin Canac
034062df65 chore(Link): add pickLinkProps util 2024-05-17 11:58:31 +02:00
Benjamin Canac
9970f0ea6b chore(Breadcrumb): improve links hover style 2024-05-17 11:52:24 +02:00
Benjamin Canac
f1b9e27ff7 chore(Tabs): improve trigger transition 2024-05-16 17:21:57 +02:00
Benjamin Canac
08c91fe8f1 feat(Checkbox/Progress/RadioGroup/Slider/Switch): add black color 2024-05-16 15:30:15 +02:00
Benjamin Canac
633a39452a feat: add transition-colors on hover effects 2024-05-16 13:09:47 +02:00
Benjamin Canac
2e174c7d20 chore(Button): improve subtle variant hover state 2024-05-16 12:22:31 +02:00
Benjamin Canac
39144b6515 cli: wrong default slot 2024-05-16 12:18:56 +02:00
Sandro Circi
138cb2d12d feat(Progress): new component (#75)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-05-15 15:26:07 +02:00
Benjamin Canac
9037a1d94c chore(Chip): wrong ui typeof 2024-05-15 14:47:26 +02:00
Benjamin Canac
f833628751 cli: make it executable 2024-05-15 12:47:08 +02:00
Benjamin Canac
c753da3cbe chore(deps): update 2024-05-14 15:05:03 +02:00
Benjamin Canac
fe3ab652b4 feat(InputMenu): handle multiple
Resolves #91
2024-05-14 12:37:51 +02:00
Benjamin Canac
27ffb8d8ab feat(SelectMenu): handle multiple prop
Resolves #102
2024-05-13 16:12:06 +02:00
Benjamin Canac
7a376b5e49 feat(SelectMenu): new component (#103) 2024-05-13 14:26:01 +02:00
Romain Hamel
8baee1292f fix(Chip): size injection (#105) 2024-05-13 10:15:24 +02:00
Benjamin Canac
c00ec5e2f2 fix(Select): missing comma in &nbsp; 2024-05-10 19:12:12 +02:00
Benjamin Canac
ff9fd9f657 fix(InputMenu): bind searchTerm with defineModel 2024-05-10 19:11:55 +02:00
Benjamin Canac
8b8b7ca40f chore(deps): update 2024-05-10 19:11:24 +02:00
Benjamin Canac
659d5e2c5a feat(InputMenu): expose modelValue and open to slots 2024-05-10 18:16:28 +02:00
Benjamin Canac
45454fae45 fix(useComponentIcons): reactivity when using defu 2024-05-10 17:57:53 +02:00
Romain Hamel
52cf471099 feat(Form): Select and InputMenu integration (#97)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-05-10 12:53:52 +02:00
Romain Hamel
810d278ea7 chore(RadioGroup): rename options prop to items (#98)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-05-10 12:31:20 +02:00
Benjamin Canac
2480efe6e5 chore(deps): update 2024-05-10 10:49:33 +02:00
Benjamin Canac
1942b8e117 feat(Select): new component (#92) 2024-05-07 22:58:56 +02:00
Benjamin Canac
4a123906d0 chore(deps): update 2024-05-07 11:19:35 +02:00
Romain Hamel
43066fd9ea feat(ButtonGroup): new component (#88)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-05-07 11:19:25 +02:00
Benjamin Canac
2c5d7ccf70 test(Drawer): update snapshots after upgrade 2024-05-06 22:03:49 +02:00
Benjamin Canac
e398637174 fix(Textarea): same size as input 2024-05-06 22:03:38 +02:00
Benjamin Canac
15cb9a023d chore(deps): update 2024-05-06 21:55:50 +02:00
Benjamin Canac
99f20a4154 feat(InputMenu): new component (#86) 2024-05-06 18:59:49 +02:00
Benjamin Canac
f409395297 test: update snapshots 2024-05-06 12:16:19 +02:00
Romain Hamel
a9a1746486 chore: use InjectionKey to type and define injected properties (#90) 2024-05-06 10:45:36 +02:00
Benjamin Canac
63822c3cf6 chore(CommandPalette): remove useless theme slot 2024-05-02 15:42:06 +02:00
Benjamin Canac
4ac7a7e3e9 fix(ContextMenu): remove arrow prop 2024-05-02 15:41:54 +02:00
Benjamin Canac
e5bec87488 chore(Checkbox): improve props 2024-05-02 15:38:43 +02:00
Benjamin Canac
dcf83261f3 playground(dropdown-menu): update custom slot badge 2024-05-02 15:38:28 +02:00
Benjamin Canac
68202d80ec chore(deps): use nuxt-icon beta (#83)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2024-05-02 15:31:12 +02:00
Benjamin Canac
a1b78bf619 chore(deps): update 2024-05-02 15:29:44 +02:00
Benjamin Canac
063a30916c chore(CommandPalette): extend disabled prop from radix 2024-05-02 15:15:53 +02:00
Benjamin Canac
ec142c3c20 chore(NavigationMenu): extend value prop from radix 2024-05-02 15:15:53 +02:00
Benjamin Canac
e8358ea967 chore(ContextMenu): extend disabled prop from radix 2024-05-02 15:15:53 +02:00
Benjamin Canac
8a2efd9b51 chore(DropdownMenu): extend disabled prop from radix 2024-05-02 15:15:53 +02:00
Benjamin Canac
1069e226ee chore(Tabs): extend value / disabled props from radix 2024-05-02 15:15:53 +02:00
Benjamin Canac
30a4f06e86 chore(Accordion): extend value / disabled props from radix 2024-05-02 15:15:53 +02:00
Anthony Fu
e5f0063dba fix: specify pnpm version (#85)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-05-02 15:15:11 +02:00
Benjamin Canac
f039d1a7dd chore(CommandPalette): define placeholder from InputProps 2024-05-02 10:41:02 +02:00
Benjamin Canac
d0017bf847 feat(CommandPalette): new component (#80) 2024-04-30 18:14:18 +02:00
Mauro Erta
559a8cba58 fix(FormField): added a utility type to fix some type errors (#81)
Co-authored-by: Mauro Erta <mauro.erta@sap.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-04-29 18:12:09 +02:00
Benjamin Canac
46bd407b91 chore(deps): update radix-vue and ui-pro file path 2024-04-29 18:07:48 +02:00
Benjamin Canac
fb783d22b6 chore(Button): remove aria-hidden from icons 2024-04-29 11:26:03 +02:00
Benjamin Canac
0450f6b4a9 fix(Tooltip): use scale-in / scale-out animations 2024-04-29 11:21:44 +02:00
Benjamin Canac
67a15686e5 fix(Input/Textarea): remove useless gap 2024-04-29 11:21:44 +02:00
Benjamin Canac
2363b0a4f1 docs(deps): use @nuxt/ui-pro from file 2024-04-28 17:56:17 +02:00
Benjamin Canac
fc50996ccf fix(Checkbox): icon render 2024-04-28 17:55:24 +02:00
Benjamin Canac
aed4100a41 test(Chip): update snapshots 2024-04-28 17:54:59 +02:00
Benjamin Canac
72ac394476 chore(Accordion): add missing shrink-0 on trailing icon 2024-04-28 17:54:46 +02:00
Benjamin Canac
f90f7d7b7c fix(Popover): use scale-in / scale-out animations 2024-04-28 17:54:32 +02:00
Benjamin Canac
16071846a8 chore(FormField): rename inputId to id 2024-04-28 11:46:24 +02:00
Benjamin Canac
65e916d09a test: setup file path not working when using vscode extension 2024-04-28 11:45:39 +02:00
Benjamin Canac
36cf8ccf21 chore(deps): update 2024-04-28 11:45:03 +02:00
Benjamin Canac
58da6ebe83 chore(ContextMenu): invalid kbds prop type definition 2024-04-27 22:33:54 +02:00
Benjamin Canac
ce28e662d6 chore: uniformize defineModel placement and emits 2024-04-27 22:16:41 +02:00
Benjamin Canac
def5f7c10b feat(AvatarGroup): new component (#71)
Co-authored-by: Romain Hamel <romain@boilr.io>
2024-04-26 17:04:49 +02:00
Benjamin Canac
26bfdfc54d playground(deps): specify only nuxt version 2024-04-26 14:54:20 +02:00
Benjamin Canac
65a3b0a2d0 feat(ContextMenu): new component
Resolves #18
2024-04-26 14:53:50 +02:00
Benjamin Canac
51872bef6c feat(Toast): add actions slot 2024-04-25 17:57:25 +02:00
Benjamin Canac
2d157090c0 feat(Alert): add actions slot 2024-04-25 17:57:18 +02:00
Benjamin Canac
26491afcd1 fix(Alert): add missing close slot 2024-04-25 17:57:07 +02:00
Benjamin Canac
5a84095da6 chore(DropdownMenu): omit content on links 2024-04-25 12:12:01 +02:00
Benjamin Canac
3708dfaea6 chore(DropdownMenu): item disabled is inherited from Link 2024-04-25 12:11:39 +02:00
Benjamin Canac
e36345c4db chore(NavigationMenu): omit value on links 2024-04-25 12:10:59 +02:00
Benjamin Canac
f48755f116 test: improve 2024-04-25 11:53:15 +02:00
Benjamin Canac
ebdaacfb9f chore(Toaster): missing slots definition 2024-04-25 11:49:39 +02:00
Benjamin Canac
67661174b0 test(DropdownMenu): consistent items with playground 2024-04-25 11:48:47 +02:00
Benjamin Canac
a5bb25dd95 feat(DropdownMenu): handle item type separator 2024-04-25 11:48:27 +02:00
Benjamin Canac
7d67b4d000 test(NavigationMenu): consistent items with playground 2024-04-25 11:45:24 +02:00
Benjamin Canac
7da566e7f2 test(Tabs): consistent items with playground 2024-04-25 11:26:52 +02:00
Benjamin Canac
f0627f700e test: update snapshots with latest icons 2024-04-25 11:21:44 +02:00
plushdohn
c6a93f71f2 fix: dynamic slots autocomplete (#77)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-04-24 19:15:20 +02:00
Benjamin Canac
6d377d1f4b fix: remove IconProps usage 2024-04-24 17:38:42 +02:00
Benjamin Canac
f9259f6857 fix(Input): missing file: selector on dark mode 2024-04-24 16:25:09 +02:00
Benjamin Canac
142affb9a7 feat(Icon): use @antfu/nuxt-icon-poc (#76)
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2024-04-24 14:10:54 +02:00
Benjamin Canac
a44a24962b chore(vscode): enable eslint flat config 2024-04-24 11:14:40 +02:00
Benjamin Canac
0424405ff6 chore(deps): update 2024-04-23 11:53:53 +02:00
Benjamin Canac
f076019f8f feat(useKbd): new composable (#73) 2024-04-23 11:52:09 +02:00
Benjamin Canac
89ff6b6702 feat(useToast): add clear method 2024-04-22 17:15:29 +02:00
Silver343
814437255e feat(RadioGroup): handle horizontal orientation (#74) 2024-04-22 14:14:51 +02:00
Benjamin Canac
e1ab903109 fix(templates): unshift css 2024-04-18 18:02:16 +02:00
Benjamin Canac
54060f686c chore(eslint): use overrideRules 2024-04-18 16:27:01 +02:00
Sylvain Marroufin
80b413a724 feat(defineShortcuts): migrate with reactivity (#72) 2024-04-18 15:51:43 +02:00
Benjamin Canac
ae2aaa9d1a test: type options slots 2024-04-18 12:55:10 +02:00
Benjamin Canac
76e3d0b9f3 fix(Link): add missing slots definition 2024-04-18 12:54:47 +02:00
Benjamin Canac
dc6f830785 cli: add --pro and --primitive options 2024-04-18 12:36:42 +02:00
Benjamin Canac
be53873c1a cli: export in files as nuxtui 2024-04-18 12:17:21 +02:00
Benjamin Canac
69539a62b4 cli: sort files 2024-04-18 11:46:01 +02:00
Benjamin Canac
30debff9cb chore(pnpm): migrate to 9.0 2024-04-17 17:25:52 +02:00
Benjamin Canac
3cbcc0f09a docs: clean content components 2024-04-17 16:27:27 +02:00
Benjamin Canac
1b941ede36 chore(Switch): remove useless peer class 2024-04-17 16:24:05 +02:00
Benjamin Canac
3c89d6b2c5 fix(Checkbox): reduce icon size 2024-04-17 16:23:54 +02:00
Benjamin Canac
fc3d42d5ea feat(Accordion): add trailingIcon prop 2024-04-17 16:14:47 +02:00
Benjamin Canac
c36bae4b21 feat(Pagination): new component
Resolves #11
2024-04-17 16:14:24 +02:00
Benjamin Canac
7d736c3812 test(Alert): use primary color with variant 2024-04-17 15:44:35 +02:00
Benjamin Canac
d3c79912d8 fix(RadioGroup): missing as prop binding 2024-04-17 13:00:11 +02:00
Benjamin Canac
3e7665626e chore(deps): update 2024-04-17 12:54:24 +02:00
Benjamin Canac
b4a736d668 chore(package): bump version to 3.0.0 2024-04-17 12:52:34 +02:00
Benjamin Canac
1dcc1f5074 feat(DropdownMenu): add #item slot for consistency 2024-04-17 12:19:20 +02:00
Benjamin Canac
ea19a3061f feat(NavigationMenu): rename links to items + improve slots 2024-04-17 12:19:20 +02:00
Benjamin Canac
d56d3a13e3 feat(Breadcrumb): rename links to items + improve slots 2024-04-17 12:19:20 +02:00
Benjamin Canac
6f88f355fa chore(Tooltip): remove useless slots 2024-04-17 12:19:20 +02:00
Benjamin Canac
e54dd55053 chore(Tabs): move #default slot around trigger 2024-04-17 12:19:20 +02:00
Benjamin Canac
0f69f2bd4b chore(Accordion): move #default slot around trigger 2024-04-17 12:19:05 +02:00
Benjamin Canac
ab83053fef fix(Container): missing slots definition 2024-04-17 11:58:26 +02:00
Benjamin Canac
02da03b4a8 fix(Card): missing slots definition 2024-04-17 11:58:13 +02:00
Benjamin Canac
3651c7ec41 fix(Input): wrong type for type prop 2024-04-17 11:57:43 +02:00
Benjamin Canac
83049fd23e fix(Toast): prevent progress bar to blink on leave 2024-04-16 18:41:58 +02:00
Benjamin Canac
7aa353d8cc chore(Alert): update ring on white color 2024-04-16 17:42:47 +02:00
Benjamin Canac
7154d96e10 playground(navigation-menu): improve container 2024-04-16 17:28:35 +02:00
Benjamin Canac
0f10d98820 feat(NavigationMenu): pass index to slots 2024-04-16 17:28:18 +02:00
Benjamin Canac
735f81e771 feat(DropdownMenu): pass index to slots 2024-04-16 17:27:12 +02:00
Benjamin Canac
b78ca9c56a fix(Tabs): add missing slots definition 2024-04-16 17:24:57 +02:00
Benjamin Canac
13a53f4cfb chore: use gap instead of gap-x for consistency 2024-04-16 17:24:41 +02:00
Benjamin Canac
53a2bc0264 feat(Breadcrumb): new component
Resolves #22
2024-04-16 17:23:41 +02:00
Benjamin Canac
298ac68447 fix(NavigationMenu): handle truncate on vertical orientation 2024-04-16 17:09:17 +02:00
Benjamin Canac
f302a15972 feat: uniformize components sizes (#68) 2024-04-16 12:26:29 +02:00
Romain Hamel
78e45600de feat(Slider): new component (#57)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-04-15 16:15:29 +02:00
Benjamin Canac
820417956e playground: add bg for scale drawer now that navigation menu has isolate 2024-04-15 15:21:47 +02:00
Benjamin Canac
f664f69097 fix(NavigationMenu): handle disabled through variants + isolate list + use separator instead of divide 2024-04-15 15:21:25 +02:00
Benjamin Canac
cd214f91db fix(DropdownMenu): handle disabled with data attribute for links 2024-04-15 14:48:33 +02:00
Benjamin Canac
6236953ed0 fix(Accordion): handle disabled through variants 2024-04-15 14:43:56 +02:00
Benjamin Canac
6ce70b768b test(Checkbox): update snapshots 2024-04-15 14:23:05 +02:00
Benjamin Canac
d92022fb8d playground(textarea): clean 2024-04-15 14:22:58 +02:00
Benjamin Canac
1e65933d9c fix(Tabs): horizontal orientation 2024-04-15 14:22:49 +02:00
Romain Hamel
84847965af chore(Checkbox/Switch): change model binding (#58)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-04-15 13:37:18 +02:00
Romain Hamel
2fe91f3847 feat(Switch): add label and description props (#60)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-04-15 11:56:30 +02:00
Benjamin Canac
1535313596 feat(Alert): new component
Resolves #23
2024-04-12 19:00:55 +02:00
Benjamin Canac
514d17048f chore(Toast): update slots 2024-04-12 18:59:53 +02:00
Benjamin Canac
48ddf39188 fix(Tabs): specific transition 2024-04-12 18:38:58 +02:00
Benjamin Canac
c83054bd73 test(Input): update snapshots 2024-04-12 18:37:59 +02:00
Benjamin Canac
cbd58ee707 chore(Toast): improve progress bar 2024-04-12 18:37:32 +02:00
Benjamin Canac
239e0a5ac1 fix(Toaster): add missing transition on translate 2024-04-12 18:27:12 +02:00
Benjamin Canac
a72649f3c9 chore: remove will-change classes 2024-04-12 18:26:41 +02:00
Benjamin Canac
af52fde119 playground(badge): iterate over variants 2024-04-12 18:24:51 +02:00
Benjamin Canac
1d2e1caaf5 feat(Button): add subtle variant 2024-04-12 18:24:31 +02:00
Benjamin Canac
9a42338da3 feat(Toast): actions color defaults from prop 2024-04-12 15:28:17 +02:00
Benjamin Canac
cfb4cfdd7b fix(Toast): add missing slots 2024-04-12 15:26:58 +02:00
Benjamin Canac
a31d4cffb5 fix(Input): use pl / pr instead of ps / pe
Resolves #32
2024-04-12 14:50:32 +02:00
Benjamin Canac
557bdb7297 test: update snapshots 2024-04-12 14:03:25 +02:00
Benjamin Canac
abb7580f71 chore(module): lint 2024-04-12 14:02:23 +02:00
Benjamin Canac
74a640ceca chore(theme): lint 2024-04-12 14:01:23 +02:00
Benjamin Canac
290e4ce150 test: lint 2024-04-12 14:00:58 +02:00
Benjamin Canac
9993b6727a modules: lint 2024-04-12 14:00:18 +02:00
Benjamin Canac
a5e06a3960 scripts: lint 2024-04-12 14:00:13 +02:00
Benjamin Canac
9529f8c1dd cli: lint 2024-04-12 14:00:05 +02:00
Benjamin Canac
02d55b0edb playground: lint 2024-04-12 14:00:00 +02:00
Benjamin Canac
786ee8e7e2 chore(deps): update eslint 2024-04-12 13:59:25 +02:00
Benjamin Canac
be49abb2cd chore(deps): update 2024-04-12 12:21:01 +02:00
Benjamin Canac
c3ed18beb6 fix(Toaster): wrong leave animation when collapsed 2024-04-11 16:03:50 +02:00
Benjamin Canac
4dcb74e0a9 fix(Toaster): increase container height to prevent animation blink 2024-04-11 15:40:57 +02:00
Benjamin Canac
d726e4ddac feat(Toast): implement progress duration
Resolves #51
2024-04-11 15:40:37 +02:00
Benjamin Canac
7350e8e46b chore(deps): update 2024-04-11 15:31:32 +02:00
Benjamin Canac
5e6275fcff feat(Drawer): implement with vaul-vue
Resolves #53
2024-04-11 14:50:38 +02:00
Benjamin Canac
bc2d9ab620 chore(Slideover): remove header div when unnecessary 2024-04-11 14:41:59 +02:00
Benjamin Canac
2a2e3953cb chore(Modal): remove header div when unnecessary 2024-04-11 14:41:54 +02:00
Benjamin Canac
d15c8c21da test(Slideover): add test without close 2024-04-11 14:41:12 +02:00
Benjamin Canac
a8c1340fa7 test(Modal): add test without close 2024-04-11 14:41:00 +02:00
Benjamin Canac
432256dc67 chore(Toaster): move slot first 2024-04-11 14:39:57 +02:00
Benjamin Canac
74feb3a8cb test(Toast): update 2024-04-11 11:41:29 +02:00
Benjamin Canac
3611f07d93 test(Tooltip): wrap with TooltipProvider instead of UApp 2024-04-11 11:29:08 +02:00
Benjamin Canac
4b29828e9d fix(Toaster): proxy slot from App 2024-04-11 11:25:38 +02:00
Benjamin Canac
a391c60aa0 test: update snapshots 2024-04-10 18:40:35 +02:00
Sandro Circi
8d76a8b195 feat(Separator): new component (#46)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-04-10 18:40:08 +02:00
Benjamin Canac
78d5b32fd3 chore(Toast): lint 2024-04-10 18:27:01 +02:00
Benjamin Canac
46d6545eb3 chore(deps): revert eslint 2024-04-10 18:25:27 +02:00
Benjamin Canac
3da1e1a518 feat(Toast): new component (#50) 2024-04-10 18:22:09 +02:00
Benjamin Canac
90f18a3505 chore(deps): update 2024-04-10 17:38:45 +02:00
Benjamin Canac
80a8c2d772 fix(DropdownMenu): add overflow scroll if height is added 2024-04-10 17:38:10 +02:00
Benjamin Canac
bde7a30a73 chore(radio-group): clean theme 2024-04-10 17:37:51 +02:00
Benjamin Canac
bf0a04eb8b feat(Tabs): handle avatar 2024-04-09 18:19:17 +02:00
Benjamin Canac
d43c29b4df chore(templates): revert specific accordion and collapsible animations 2024-04-08 17:24:47 +02:00
Benjamin Canac
d545a927a1 chore(Switch): clean 2024-04-08 17:20:01 +02:00
Benjamin Canac
c0ab0cdde0 chore(DropdownMenu): add comment on type 2024-04-08 17:19:44 +02:00
Benjamin Canac
2a524b1772 chore(deps): update 2024-04-08 13:52:27 +02:00
Romain Hamel
ebb7c074af feat(Switch): form integration (#48)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-04-08 12:15:18 +02:00
Romain Hamel
2dfaea580a chore(Form): export FormValidationException in #ui/types (#47) 2024-04-08 12:00:38 +02:00
Benjamin Canac
bb42594ea4 test: update snapshots 2024-04-05 17:14:49 +02:00
Benjamin Canac
2cc41dedcf feat(Kbd): add color prop 2024-04-05 17:14:39 +02:00
Benjamin Canac
06ea029ef6 feat(Tabs): handle items icon 2024-04-05 17:14:23 +02:00
Benjamin Canac
78613d8811 chore(deps): update tailwindcss 2024-04-05 11:27:39 +02:00
Benjamin Canac
35596fbdbf chore(deps): update 2024-04-05 11:22:29 +02:00
Benjamin Canac
58a29911dd chore(NavigationMenu): add missing value on items 2024-04-04 18:22:57 +02:00
Benjamin Canac
92e1d09990 fix(Tabs): use transition-all 2024-04-04 18:22:46 +02:00
Benjamin Canac
774858187e playground(popover): add all sides for click mode 2024-04-04 15:14:10 +02:00
Benjamin Canac
b43fff6b07 chore(deps): update 2024-04-04 15:14:10 +02:00
Benjamin Canac
b712a2c31c chore(FormField): clean container class 2024-04-04 15:14:10 +02:00
Benjamin Canac
b99482913e chore(Slideover): use variants to type side prop 2024-04-04 12:09:32 +02:00
Benjamin Canac
bc85d70924 chore(DropdownMenu): move slots type to parent 2024-04-04 12:07:59 +02:00
Benjamin Canac
e360ab3084 chore(cli): clean 2024-04-04 12:04:16 +02:00
Benjamin Canac
39cd67a5e3 playground(app): update body colors 2024-04-03 18:36:31 +02:00
Benjamin Canac
61851f838b chore(module): rename plugin to colors 2024-04-03 18:36:21 +02:00
Benjamin Canac
7caeb0a635 chore(icons): move to theme 2024-04-03 18:36:10 +02:00
Benjamin Canac
4a409fdf8b chore(collapsible/accordion): merge animations 2024-04-03 18:12:05 +02:00
Benjamin Canac
ea29cc238c chore: allow as in content and arrow props 2024-04-03 17:52:08 +02:00
Benjamin Canac
56da54b440 chore(Tabs): add content prop with force-mount 2024-04-03 17:51:26 +02:00
Benjamin Canac
550c89d92c chore(Accordion): add content prop for consistency 2024-04-03 17:50:54 +02:00
Benjamin Canac
c36940a221 fix(Accordion): dont set a default-value 2024-04-03 17:50:32 +02:00
Benjamin Canac
5f2a9ddc2e chore: move animations in tailwind.css
Resolves #25
2024-04-03 17:08:16 +02:00
Benjamin Canac
17c7256864 chore(theme): use kebab case 2024-04-02 19:29:35 +02:00
Benjamin Canac
659c58b49f chore(Provider): rename to App 2024-04-02 19:01:07 +02:00
Benjamin Canac
47e32a13ca chore(module): type icons from app config 2024-04-02 18:27:15 +02:00
Benjamin Canac
0b29cf5aa3 playground: clean nuxt config 2024-04-02 17:22:19 +02:00
Benjamin Canac
f3c690ebd8 chore(templates): move DeepPartial to runtime types
chore(templates): up
2024-04-02 17:22:19 +02:00
Benjamin Canac
ab9fc3eebb cli: export bin 2024-04-02 16:43:40 +02:00
Benjamin Canac
54aa892bf0 chore(module): update addTemplates export 2024-04-02 16:03:46 +02:00
Benjamin Canac
48fc683831 chore(deps): update 2024-04-02 12:46:16 +02:00
Benjamin Canac
2fb2a507b4 chore(package): add build script 2024-04-02 12:43:27 +02:00
Romain Hamel
e29b514f8d feat(RadioGroup): new component (#41)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-04-02 11:35:16 +02:00
Benjamin Canac
80a3a0c28f fix(Tabs): broken design 2024-03-29 18:13:43 +01:00
Benjamin Canac
864cd83520 chore(cli): export component types 2024-03-29 18:07:07 +01:00
Benjamin Canac
cff37bf211 feat(Avatar): bind as to image to support NuxtImg 2024-03-29 16:59:43 +01:00
Benjamin Canac
b471547eb7 chore(components): improve imports 2024-03-29 16:59:24 +01:00
Benjamin Canac
10b56bb16c chore(useShortcuts): prevent double export 2024-03-29 16:25:02 +01:00
Benjamin Canac
74cfb3d18f chore(types): export from components 2024-03-29 16:24:40 +01:00
Benjamin Canac
8234bc6a15 playground(app): remove container 2024-03-29 14:52:43 +01:00
Benjamin Canac
5fcd6d1bea chore(theme): improve focus 2024-03-29 14:45:47 +01:00
Benjamin Canac
44033508a7 feat(DropdownMenu): new component (#37) 2024-03-29 13:42:02 +01:00
Benjamin Canac
2fbf47e1fc chore(NavigationMenu): better indexes 2024-03-27 17:17:39 +01:00
Benjamin Canac
4ba4f9ee6d test: update snapshots 2024-03-27 17:17:17 +01:00
Benjamin Canac
ee1d6ed08f fix(NavigationMenu): label doesn't need to be typed as number 2024-03-27 16:46:32 +01:00
Benjamin Canac
4301821473 fix(NavigationMenu): optional links 2024-03-27 16:45:40 +01:00
Benjamin Canac
20caea1cd7 fix(Tabs): optional items 2024-03-27 16:45:16 +01:00
Benjamin Canac
d00084c54c fix(Tooltip): missing conditions on slots 2024-03-27 16:45:03 +01:00
Benjamin Canac
c060b461e9 chore(deps): pin vite 2024-03-27 15:02:22 +01:00
Benjamin Canac
e8419fac01 Merge remote-tracking branch 'upstream/dev' into dev 2024-03-27 14:41:57 +01:00
Benjamin Canac
36a3279228 chore: update resolutions 2024-03-27 14:37:32 +01:00
Benjamin Canac
508ae0806f chore: remove useless css file 2024-03-27 14:15:35 +01:00
Benjamin Canac
fe4892e030 test: update snapshots 2024-03-27 14:03:07 +01:00
Benjamin Canac
74325441e9 chore(deps): update 2024-03-27 14:03:00 +01:00
Benjamin Canac
1ddca46fa4 playground: remove tailwind.config 2024-03-27 13:58:57 +01:00
Mahdi Shah Abbasian
bd8b737642 fix(Divider): add w-full only on horizontal wrapper (#1565) 2024-03-27 13:57:09 +01:00
Neil Richter
dd8a122933 docs(installation): update regex to match @nuxt/eslint rules (#1572) 2024-03-27 13:55:23 +01:00
Qin Guan
0b799e4300 docs(icon): add link to theming icons section (#1571)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-27 13:54:38 +01:00
Benjamin Canac
85c693e3ba remove old files 2024-03-27 12:39:55 +01:00
Benjamin Canac
f3fec877c5 Merge branch 'main' of https://github.com/benjamincanac/nuxt-ui3 into dev 2024-03-27 12:34:43 +01:00
Benjamin Canac
8517897c34 fix(Popover): missing mouseenter event on container
Resolves #1564
2024-03-27 12:04:49 +01:00
Benjamin Canac
72889535e7 fix(Dropdown): missing mouseenter event on container 2024-03-27 12:04:31 +01:00
Romain Hamel
bfd5988358 feat(Checkbox): new component (#67)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-27 12:00:15 +01:00
Romain Hamel
878f7078a2 fix(Input/SelectMenu): handle file type and change events (#1570) 2024-03-27 11:57:31 +01:00
Benjamin Canac
8fd369372b feat(Switch): handle loading and loadingIcon
Resolves #65
2024-03-26 15:48:16 +01:00
Benjamin Canac
c9f09992b7 fix(plugins): use import.meta 2024-03-26 15:26:04 +01:00
Benjamin Canac
bd8118c124 docs(deps): update @nuxt/ui-pro 2024-03-26 14:18:21 +01:00
Benjamin Canac
3d5ffe76ef chore(release): v2.15.0 2024-03-26 13:53:25 +01:00
chenying
c49f8999d3 fix(SelectMenu): handle Boolean type as model value (#1550)
Co-authored-by: chenying <chenying@addcn.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-26 12:15:25 +01:00
Daniel Roe
cc62e345eb fix: opt in to import.meta.* properties (#1561)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-25 17:57:58 +01:00
renovate[bot]
ae58d5c2b9 chore(deps): update all non-major dependencies (#1547)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 16:01:48 +01:00
Romain Hamel
92e736213b fix(forms)!: normalize input emits (#1560) 2024-03-25 15:36:36 +01:00
Benjamin Canac
01bcca3dd7 chore(Textarea): rename inputRef to textareaRef 2024-03-25 14:26:44 +01:00
Benjamin Canac
7d6b5c358f docs(Slideover): missing New badge 2024-03-25 12:45:26 +01:00
Benjamin Canac
f854746bd8 docs(alert): missing New badges 2024-03-25 12:45:18 +01:00
Mohammad Amin Mokhtari
e1e05af0ba feat(Toggle): add loading prop (#1546)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-25 12:43:15 +01:00
Neil Richter
224ec3c1fb feat(Accordion): emit open event with index (#1559) 2024-03-25 12:27:06 +01:00
chenying
c3ac4badbf docs(DatePicker): add is-required prop (#1549)
Co-authored-by: chenying <chenying@addcn.com>
2024-03-25 12:09:19 +01:00
Benjamin Canac
8688653bc9 test(Input): improve 2024-03-25 12:05:59 +01:00
Benjamin Canac
b5b3e97f5f test(Button): improve 2024-03-25 12:05:11 +01:00
Benjamin Canac
afc270589c chore(Textarea): clean 2024-03-22 18:30:11 +01:00
Benjamin Canac
03fb75f256 playground(textarea): clean 2024-03-22 18:30:02 +01:00
Benjamin Canac
bed62520a9 fix(Textarea): invalid xs size 2024-03-22 18:29:45 +01:00
Benjamin Canac
d5fe5b3f4d fix(Chip): improve sizes 2024-03-22 18:23:58 +01:00
Benjamin Canac
c726f13ac2 fix(Avatar): improve sizes 2024-03-22 18:23:58 +01:00
Benjamin Canac
3a89661c66 fix(Switch): improve sizes 2024-03-22 18:23:58 +01:00
Romain Hamel
2ca6973337 feat(Textarea): new component (#62)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-22 17:53:43 +01:00
Romain Hamel
d23e3e1c76 test(Input): use mount to access defineModel events 2024-03-22 17:38:29 +01:00
Benjamin Canac
4a281b3093 fix(Input): invalid xs size 2024-03-22 17:18:48 +01:00
Benjamin Canac
fbe3a40668 test(Switch): update snapshots 2024-03-22 17:17:53 +01:00
Romain Hamel
091f8e91c4 feat(Input): use defineModel (#61) 2024-03-22 17:14:57 +01:00
Benjamin Canac
cd1073d938 feat(Switch): new component 2024-03-22 15:57:12 +01:00
Benjamin Canac
245e9941c0 test(Input): add sizes 2024-03-22 15:56:57 +01:00
Benjamin Canac
f0f89272a0 fix(Button): invalid icon size for lg 2024-03-22 15:56:45 +01:00
Benjamin Canac
6063d9d1b9 playground(button): add new row without icons 2024-03-22 15:56:33 +01:00
Benjamin Canac
09b5752cd2 chore(module): move back to vite plugin 2024-03-22 14:50:40 +01:00
Benjamin Canac
a057945ca4 playground: simplify with theme 2024-03-22 14:50:22 +01:00
Benjamin Canac
2fefa8ab74 playground(link): improve 2024-03-22 12:49:59 +01:00
Benjamin Canac
4bd0d71875 test: update snapshots 2024-03-22 12:48:06 +01:00
Benjamin Canac
147c452e7e chore(Collapsible): improve styles 2024-03-22 12:47:37 +01:00
Benjamin Canac
77fe06d446 chore(Accordion): improve styles 2024-03-22 12:47:26 +01:00
Benjamin Canac
349780dae1 feat(Link): style with app config 2024-03-22 12:46:52 +01:00
Benjamin Canac
e3ef0c59b9 chore(cli): improve templates 2024-03-22 11:39:52 +01:00
Benjamin Canac
2f200d51f8 chore(deps): update tailwindcss 2024-03-22 10:44:49 +01:00
Benjamin Canac
6946c2dfec playground(collapsible): handle trailingIcon differently 2024-03-21 18:41:28 +01:00
Romain Hamel
167127861f feat(Form): nested form validation (#23)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-21 18:39:59 +01:00
renovate[bot]
398c5d5dcd chore(deps): update all non-major dependencies (#1543)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-21 18:16:48 +01:00
Eugen Istoc
e7697595c8 feat(Slideover): open programmatically (#1465)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-21 17:48:35 +01:00
Benjamin Canac
f086f2662e fix(Tabs): missing props pick 2024-03-21 17:40:09 +01:00
Benjamin Canac
52eef36baa chore(Accordion): improve and add tests 2024-03-21 17:39:03 +01:00
Benjamin Canac
a03b21fdb8 chore(Input): remove useless slot props 2024-03-21 17:23:49 +01:00
Benjamin Canac
1c1a39bcce chore(Button): remove useless slot props 2024-03-21 17:23:37 +01:00
Benjamin Canac
c8bedf8458 fix(NavigationMenu): use ULink with custom 2024-03-21 17:10:30 +01:00
Benjamin Canac
3ed5a08518 feat(Link): break component in two with custom prop 2024-03-21 17:10:18 +01:00
Benjamin Canac
b2b4804e78 playground: add link 2024-03-21 17:01:24 +01:00
Benjamin Canac
4ba76f5a3f chore(utils): clean 2024-03-21 17:01:11 +01:00
Benjamin Canac
4ae45abd63 chore(Button): remove class on slots 2024-03-21 17:01:11 +01:00
Benjamin Canac
d1aa6e3fd9 chore(NavigationMenu): improve slots 2024-03-21 13:05:44 +01:00
Benjamin Canac
594c835f14 test(Tabs): update snapshots 2024-03-21 13:01:11 +01:00
Benjamin Canac
a21648a191 feat(Accordion): new component 2024-03-21 13:00:58 +01:00
Benjamin Canac
98920e549e chore(theme): add more icons 2024-03-21 13:00:34 +01:00
Benjamin Canac
7e1196c62c chore(Tooltip): improve slots 2024-03-21 12:55:49 +01:00
Benjamin Canac
89ab141376 chore: clean withDefaults 2024-03-21 12:55:21 +01:00
Benjamin Canac
f4a1d4a7c3 chore(Tabs): improve slots 2024-03-21 12:54:39 +01:00
Benjamin Canac
2756d35458 chore(Tabs): rename #item slot to #content 2024-03-21 10:44:46 +01:00
Benjamin Canac
5b789a5397 chore(templates): add FIXME for colors type
Related to #59
2024-03-20 17:09:35 +01:00
Benjamin Canac
a7cc288513 chore(deps): update 2024-03-20 14:20:07 +01:00
Benjamin Canac
a78b0965e8 fix(FormField): generics 2024-03-20 14:13:32 +01:00
Benjamin Canac
03edad885d fix(NavigationMenu): prevent err without links 2024-03-20 14:08:40 +01:00
Benjamin Canac
de8100af3a feat(Input): handle icons 2024-03-20 14:04:26 +01:00
Benjamin Canac
418ffb8426 test: update 2024-03-20 14:03:33 +01:00
Benjamin Canac
6e10a0942f feat(Button): use useComponentIcons 2024-03-20 12:43:27 +01:00
Benjamin Canac
e4882e6804 feat(useComponentIcons): extract repetitive logic 2024-03-20 12:43:07 +01:00
Benjamin Canac
bef0e38344 chore(useFormField): use function 2024-03-20 12:34:58 +01:00
Benjamin Canac
802a15990d fix(Link): improve type prop 2024-03-20 12:34:44 +01:00
Benjamin Canac
68f3da8816 playground: add padding bottom 2024-03-20 12:34:24 +01:00
Stanley
b0ecac563c fix(SelectMenu): filteredOptions might be undefined (#1541)
Co-authored-by: Sedana Yoga <55230513+sedanayoga@users.noreply.github.com>
2024-03-20 10:55:13 +01:00
Benjamin Canac
0d4d86d79d feat(NavigationMenu): new component 2024-03-19 19:12:31 +01:00
Benjamin Canac
5a2a31092a chore(Popover): remove useless props 2024-03-19 18:37:15 +01:00
Benjamin Canac
46c066d791 fix(Link)!: expose active instead of isActive in default slot 2024-03-19 18:37:00 +01:00
Benjamin Canac
aaf2a2d8ad chore(components): consistent slots declaration 2024-03-19 18:35:27 +01:00
Benjamin Canac
6cd7c8a5fb fix(Badge): handle label as number 2024-03-19 18:35:01 +01:00
Benjamin Canac
961e6af9c8 chore(components): improve imports 2024-03-19 18:34:50 +01:00
Benjamin Canac
0920099362 fix(Input): use ring instead of ring-1 2024-03-19 18:34:11 +01:00
Benjamin Canac
f8b50a3571 fix(Tabs): use shrink-0 2024-03-19 18:33:49 +01:00
renovate[bot]
5cb45c52c2 chore(deps): update all non-major dependencies (#1537)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 18:05:32 +01:00
Benjamin Canac
cf91171f6c chore(Tooltip): add tests 2024-03-19 16:18:24 +01:00
Romain Hamel
de62676647 feat(Form): new component (#4)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-19 16:09:12 +01:00
Benjamin Canac
1cec712fb8 cli: use camelCase for theme 2024-03-19 14:21:30 +01:00
renovate[bot]
0453af65fa chore(deps): update devdependency ufo to ^1.5.2 (#1533)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 11:12:19 +01:00
Benjamin Canac
f46f8327c4 cli: wrong case 2024-03-19 10:44:56 +01:00
renovate[bot]
53cfea40a4 chore(deps): update devdependency happy-dom to v14 (#1536)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 10:35:59 +01:00
renovate[bot]
386e51d159 chore(deps): update nuxt framework to ^3.11.1 (#1535)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 10:28:55 +01:00
Benjamin Canac
0a33db835c test: update snapshots 2024-03-18 22:55:35 +01:00
Benjamin Canac
1976ecef17 chore(deps): update nuxt 2024-03-18 22:54:30 +01:00
Benjamin Canac
2f09d1915f playground(popover): improve 2024-03-18 22:05:25 +01:00
Benjamin Canac
0c0ff7b100 playground(tooltip): improve 2024-03-18 22:05:17 +01:00
Benjamin Canac
fe467da9bf fix(Avatar): increase gray on light mode 2024-03-18 22:05:07 +01:00
Benjamin Canac
3cdbb27635 fix(Skeleton): increase gray on light mode 2024-03-18 22:05:00 +01:00
Benjamin Canac
9254f3972b chore(Slideover): clean theme 2024-03-18 22:04:50 +01:00
Benjamin Canac
3e8a99244e feat(Slideover): add top / bottom sides 2024-03-18 21:36:05 +01:00
Benjamin Canac
da9ea7ac17 chore(Slideover): add size to close button 2024-03-18 21:34:56 +01:00
Benjamin Canac
a9188d870a chore(Modal): add size to close button 2024-03-18 21:34:43 +01:00
Benjamin Canac
81cbd2a1d6 playground(card): clean 2024-03-18 21:34:31 +01:00
Benjamin Canac
cdf6ebdafb fix(module): use @tailwindcss/postcss 2024-03-18 21:34:22 +01:00
Benjamin Canac
38eb932b53 feat(Slideover): new component 2024-03-18 17:19:06 +01:00
Benjamin Canac
a7cb28a50e chore(Card): improve spacing 2024-03-18 17:18:45 +01:00
Benjamin Canac
73880f798d chore(Modal): improve spacing 2024-03-18 17:18:35 +01:00
Benjamin Canac
d73a16f551 chore(deps): update 2024-03-18 17:17:30 +01:00
Benjamin Canac
5d76539f3c playground(modal): update 2024-03-18 15:51:00 +01:00
Benjamin Canac
5d1d5b33e8 feat(Modal): new component 2024-03-18 15:30:57 +01:00
Benjamin Canac
ec95ae664d chore(Tooltip): improve v-bind 2024-03-18 15:30:38 +01:00
Benjamin Canac
35a50ae60d chore(Link): clean 2024-03-18 15:30:28 +01:00
Benjamin Canac
7ff5cba9be chore(Button): clean 2024-03-18 15:30:22 +01:00
renovate[bot]
eb8eec09c5 chore(deps): update nuxt framework (#1528)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 11:45:57 +01:00
Benjamin Canac
fa2f752053 test: update snapshots 2024-03-18 11:35:52 +01:00
Benjamin Canac
cecfb58445 fix(Card): improve body padding 2024-03-18 11:33:24 +01:00
Benjamin Canac
d2949310ee fix(Tabs): force-mount content 2024-03-18 11:32:37 +01:00
Benjamin Canac
c85a8cfe0b fix(Collapsible): ensure default slot exists 2024-03-18 11:32:22 +01:00
Benjamin Canac
5d3ad6b93e fix(Popover): ensure default slot exists 2024-03-18 11:32:10 +01:00
Benjamin Canac
431255e0fe fix(Tooltip): ensure default slot exists 2024-03-18 11:31:59 +01:00
Benjamin Canac
6dfd696092 fix(Chip): extend now works with compound variants 2024-03-18 11:31:35 +01:00
Benjamin Canac
53755da835 fix(Button): extend now works with compound variants 2024-03-18 11:31:29 +01:00
Benjamin Canac
a12ccbc052 playground(collapsible): use placeholder component 2024-03-18 11:31:04 +01:00
Benjamin Canac
f5c0259961 chore(deps): update 2024-03-18 11:30:50 +01:00
Benjamin Canac
25300a10c8 chore(.npmrc): add 2024-03-18 11:30:42 +01:00
renovate[bot]
4a4ddbd5cb chore(deps): update all non-major dependencies (#1504)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 11:24:21 +01:00
Daniel Öhling
a563d8fed4 fix(Popover/Dropdown): use @touchstart.passive instead of @touchstart.prevent (#1520) 2024-03-17 18:48:00 +01:00
Conner Blanton
7658211537 fix(ButtonGroup): nested group elements (#1530) 2024-03-17 18:47:10 +01:00
Benjamin Canac
73977e6d19 playground(card): add page 2024-03-14 18:29:26 +01:00
Benjamin Canac
63f752a4a8 fix(plugins): add missing type 2024-03-14 18:29:13 +01:00
Benjamin Canac
138eabda6b chore(module): delay templates 2024-03-14 15:30:33 +01:00
Benjamin Canac
13d389fd39 feat(Tabs): new component 2024-03-14 15:20:35 +01:00
Benjamin Canac
6e42ee1e2a chore(deps): bump @vue/test-utils and happy-dom 2024-03-14 15:08:25 +01:00
Benjamin Canac
a86dc836b8 chore(deps): bump tailwindcss 2024-03-14 14:45:46 +01:00
Benjamin Canac
6c5354edde fix(Tooltip): remove content max-width 2024-03-14 11:19:17 +01:00
Benjamin Canac
e5af5aeb34 playground(popover): add lang ts 2024-03-14 11:18:15 +01:00
Benjamin Canac
870d8c1cd6 playground(collapsible): improve transition 2024-03-14 11:18:00 +01:00
Noah Gregory
e736ecafff fix(Carousel): add tab-based ARIA roles (#1516) 2024-03-14 10:32:39 +01:00
Alex Thorwaldson
cee3e126a4 feat(Alert): add icon & avatar slots (#1401)
Co-authored-by: gangan <44604921+shinGangan@users.noreply.github.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 21:49:57 +01:00
Benjamin Canac
cdd9b178f3 feat(cli): init command 2024-03-13 17:03:28 +01:00
Benjamin Canac
9a42fa415f chore: add eol 2024-03-13 16:58:11 +01:00
Benjamin Canac
34d6e18638 chore(editorconfig): add 2024-03-13 16:55:06 +01:00
Benjamin Canac
0a00387688 fix(templates): handle - in regexp 2024-03-13 14:43:20 +01:00
Benjamin Canac
ebbd931db1 playground(popover): update 2024-03-13 14:43:07 +01:00
Benjamin Canac
7d2d3b9c0f fix(Popover): split reactive props with mode 2024-03-13 14:42:58 +01:00
Benjamin Canac
d6bebd5ef9 feat(Chip): new component 2024-03-13 14:42:39 +01:00
Benjamin Canac
e07088068f playground(collapsible): use #trailing slot 2024-03-13 12:27:24 +01:00
Benjamin Canac
959b1295f2 test: update 2024-03-13 12:27:10 +01:00
Benjamin Canac
4d3bab71e5 chore(components): use Primitive where possible 2024-03-13 12:27:01 +01:00
Benjamin Canac
f4a48f6016 fix(InputMenu): trigger alignement on safari
Resolves #1505
2024-03-12 22:39:14 +01:00
Benjamin Canac
877b22c294 docs: consistent icons and avatars across examples 2024-03-12 22:20:44 +01:00
Benjamin Canac
c4419fa113 fix(module): prevent colors option merge 2024-03-12 18:24:02 +01:00
Benjamin Canac
e2fb25309f feat(Skeleton): new component 2024-03-12 18:22:55 +01:00
Benjamin Canac
4b3a9855ac chore(Popover): mode doc 2024-03-12 17:28:46 +01:00
Benjamin Canac
2d340d2054 playground(tooltip): avatar trigger 2024-03-12 17:28:02 +01:00
Benjamin Canac
7b8960124f feat(Popover): handle hover mode 2024-03-12 17:20:32 +01:00
Benjamin Canac
78908c3d64 feat(Card): new component 2024-03-12 16:07:46 +01:00
Benjamin Canac
69b281c408 test(Collapsible): add 2024-03-12 16:07:36 +01:00
Benjamin Canac
bc2dba5d71 chore(templates): add base styles 2024-03-12 15:42:14 +01:00
Benjamin Canac
c131ce955f feat(Popover): new 2024-03-12 15:42:07 +01:00
Benjamin Canac
c384ec94a2 fix(Link): active class 2024-03-12 15:38:51 +01:00
Benjamin Canac
0e0c708883 chore(Tooltip): update 2024-03-12 15:38:31 +01:00
Benjamin Canac
a026ae176e chore(Button): put back disabled on loading 2024-03-12 14:58:52 +01:00
Benjamin Canac
93aefaefd3 chore(Button): add issue link 2024-03-12 14:58:36 +01:00
Benjamin Canac
c8bdb51f68 fix(Button): loading on trailing 2024-03-12 14:58:17 +01:00
Daniel Roe
4446531d04 chore: add local module for better development dx (#2)
* chore: add local module for better dx developing nuxt/ui

* up

* up

* up

* feat(Kbd): new

* chore(Badge): update

* chore(Collapsible): remove content prop

* chore(Container): clean

* chore(Avatar): update root bg

* chore(Link): clean

* feat(Tooltip): handle shortcuts

* playground(collapsible): update

---------

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-12 12:12:17 +01:00
Benjamin Canac
44d0ceccba playground(avatar): wrong prop 2024-03-11 21:58:07 +01:00
Benjamin Canac
194b451467 chore(deps): update tailwindcss 2024-03-11 21:57:58 +01:00
Benjamin Canac
158f0d2646 chore(Provider): add props 2024-03-11 18:43:23 +01:00
Benjamin Canac
cd5b23a1f6 chore(Tooltip): update props 2024-03-11 18:43:13 +01:00
Benjamin Canac
55c47288a5 chore(Tooltip): keyframes in snake case 2024-03-11 17:40:15 +01:00
Benjamin Canac
37c14186a0 test(Tooltip): add skip 2024-03-11 17:39:40 +01:00
Benjamin Canac
f547db3535 test: clean snapshots 2024-03-11 17:39:23 +01:00
Benjamin Canac
d0c7b8fad3 chore(Button): update 2024-03-11 17:39:05 +01:00
Benjamin Canac
83f311a004 chore(Collapsible): update 2024-03-11 17:38:56 +01:00
Benjamin Canac
037a2fc8fa chore(Avatar): use text prop to prevent breaking change 2024-03-11 17:38:42 +01:00
Benjamin Canac
bc2dbbbbd0 chore(test): add setup 2024-03-11 16:51:17 +01:00
Benjamin Canac
924551e546 test(Avatar): update 2024-03-11 15:43:44 +01:00
Benjamin Canac
78fc16aa18 playground: update 2024-03-11 15:14:53 +01:00
Benjamin Canac
82cb00ce52 test: update 2024-03-11 15:14:40 +01:00
Benjamin Canac
aaedabda3b playground: update 2024-03-11 15:08:54 +01:00
Benjamin Canac
4f344437e2 chore(icons): sort 2024-03-11 15:08:54 +01:00
Benjamin Canac
ef43eb406b chore(theme): use size 2024-03-11 15:08:54 +01:00
Benjamin Canac
b41de5b6dc chroe(components): clean imports 2024-03-11 15:08:54 +01:00
Benjamin Canac
978595ce88 feat(Avatar): new component 2024-03-11 15:08:54 +01:00
zernonia
7823139a35 chore: bump radix version 2024-03-11 20:22:17 +08:00
Benjamin Canac
6765eed733 chore(deps): update tailwindcss 2024-03-10 22:16:03 +01:00
Benjamin Canac
2297fc1479 chore: rename ring-1 to ring 2024-03-10 22:15:30 +01:00
renovate[bot]
8cc8e45b4f chore(deps): update all non-major dependencies (#1490)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-10 11:51:11 +01:00
Benjamin Canac
f89cf66efc chore(tsconfig): add exclude 2024-03-09 23:15:16 +01:00
Benjamin Canac
c49521ca6e test(Button): update snapshots 2024-03-09 23:14:57 +01:00
Benjamin Canac
312a177ba8 playground: update 2024-03-09 20:29:24 +01:00
Benjamin Canac
e151be4734 fix(templates): dont override AppConfig type 2024-03-09 20:29:19 +01:00
Benjamin Canac
f9cc5e4f8e playground: update button 2024-03-09 19:59:33 +01:00
Benjamin Canac
31da519650 chore(Tooltip): update 2024-03-09 19:59:15 +01:00
Benjamin Canac
7479270c41 chore(Link): update 2024-03-09 19:59:05 +01:00
Benjamin Canac
1cbce7f2f2 chore(Container): update 2024-03-09 19:58:58 +01:00
Benjamin Canac
2288400eca chore(Collapsible): update 2024-03-09 19:58:52 +01:00
Benjamin Canac
1ccd14ee0e chore(Button): update 2024-03-09 19:58:44 +01:00
Benjamin Canac
2f631845c3 chore(Badge): update 2024-03-09 19:58:35 +01:00
Daniel Roe
3f67b9209c chore: check playground types separately (#1497) 2024-03-09 19:25:09 +01:00
Benjamin Canac
4b75ec265b chore(eslint): disable vue/require-default-prop 2024-03-09 19:09:16 +01:00
Benjamin Canac
320821984d playground: disable devtools 2024-03-09 19:09:01 +01:00
Benjamin Canac
39b879c972 playground: update 2024-03-09 17:16:38 +01:00
Benjamin Canac
e3874e0dd0 chore(deps): update 2024-03-09 16:48:08 +01:00
Benjamin Canac
c10737c0c6 playground: update 2024-03-09 16:35:59 +01:00
Benjamin Canac
7b3d6636f4 chore(Tooltip): update 2024-03-09 16:35:24 +01:00
Benjamin Canac
c6381c183c chore(Link): update 2024-03-09 16:35:16 +01:00
Benjamin Canac
2f65c2eeca chore(Button): dont disable on loading 2024-03-09 16:35:08 +01:00
Benjamin Canac
6edc0cf27b chore(Container): update 2024-03-09 16:34:46 +01:00
Benjamin Canac
bcde20ce3e chore(Collapsible): update 2024-03-09 16:34:36 +01:00
Benjamin Canac
c65a623151 chore(Badge): add 2024-03-09 16:34:20 +01:00
Romain Hamel
a2b8b700df fix(Checkbox): bind data-n-ids to root element (#1495) 2024-03-09 15:58:54 +01:00
Daniel Roe
80cc59375f chore: remove auto-import override (#1492) 2024-03-09 14:36:05 +01:00
Benjamin Canac
b0222e5531 chore(Tooltip): update 2024-03-08 12:44:50 +01:00
Benjamin Canac
361e47b03c chore(Collapsible): new component 2024-03-08 12:44:43 +01:00
renovate[bot]
2bb911023c chore(deps): update all non-major dependencies (#1483)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-08 12:10:58 +01:00
Benjamin Canac
622d582426 chore(Button): update 2024-03-07 23:33:24 +01:00
Benjamin Canac
9592ca9f72 chore(Tooltip): update 2024-03-07 23:33:17 +01:00
Benjamin Canac
c3903f0da1 playground: update 2024-03-07 18:26:21 +01:00
Benjamin Canac
58ce6e86d0 chore(module): update 2024-03-07 18:26:07 +01:00
Benjamin Canac
11dd34c15d chore(templates): handle icons and without function 2024-03-07 17:10:27 +01:00
Benjamin Canac
b08d2bd3c6 chore(module): update 2024-03-07 16:57:14 +01:00
Benjamin Canac
46e27304e8 playground: clean config 2024-03-07 16:57:09 +01:00
Benjamin Canac
c3db2499e7 chore(deps): update 2024-03-07 16:56:59 +01:00
Benjamin Canac
075eee860d playground: update 2024-03-07 16:09:00 +01:00
Benjamin Canac
7e19c30f80 chore(module): update 2024-03-07 16:08:48 +01:00
Benjamin Canac
c79e6f188d chore(module): update theming 2024-03-07 15:33:53 +01:00
renovate[bot]
ab355a3576 chore(deps): update all non-major dependencies (#1481)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-07 15:07:59 +01:00
Benjamin Canac
0d1e17ef74 playground: update 2024-03-07 13:03:21 +01:00
Benjamin Canac
842acdf4b3 chore(theme): update 2024-03-07 12:56:17 +01:00
Benjamin Canac
9711b4db5e chore(Provider): add 2024-03-07 12:56:09 +01:00
Benjamin Canac
a861961724 chore(Tooltip): add 2024-03-07 12:56:02 +01:00
Benjamin Canac
05e93387b9 chore(Container): update 2024-03-07 12:55:55 +01:00
Benjamin Canac
c90cea55a7 chore(Button): update 2024-03-07 12:55:18 +01:00
Benjamin Canac
1530e82235 chore(module): update colors 2024-03-07 12:55:00 +01:00
Benjamin Canac
e257a43964 chore(deps): update 2024-03-07 12:54:11 +01:00
Shoshana Connack
6c02d1c704 docs(getting-started): grammar correction (#1482) 2024-03-07 11:51:46 +01:00
renovate[bot]
66c3631b3d chore(deps): update all non-major dependencies (#1474)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-07 00:18:08 +01:00
Benjamin Canac
6f37f02d8d chore(module): override cool color 2024-03-06 20:20:12 +01:00
Benjamin Canac
22c42c402d playground: update 2024-03-06 20:09:05 +01:00
Benjamin Canac
0d1f8528c8 chore(module): dynamic colors 2024-03-06 20:08:58 +01:00
Benjamin Canac
ce267954e0 chore: use tailwind v4 2024-03-06 19:08:48 +01:00
Benjamin Canac
57c2cc0ef4 chore(Button): use ui prop for slots only 2024-03-06 16:29:03 +01:00
Benjamin Canac
66cf178cc3 chore(Container): remove ui prop 2024-03-06 16:28:12 +01:00
Benjamin Canac
7d29ff2b7a chore(Button): use props instead of $props 2024-03-06 16:04:02 +01:00
Benjamin Canac
5449d2aa5f chore(Container): add component 2024-03-06 16:03:45 +01:00
Benjamin Canac
d95556ebda test: update 2024-03-06 15:37:41 +01:00
Benjamin Canac
d69817a128 chore(Button): use defineSlots 2024-03-06 15:37:02 +01:00
Benjamin Canac
d0c1892a14 chore(Button): improve fallback 2024-03-06 14:52:16 +01:00
Benjamin Canac
e51320bac0 chore(Link): remove useless props object 2024-03-06 14:50:50 +01:00
Benjamin Canac
3c2f5e9733 chore: use type-based prop 2024-03-06 14:36:07 +01:00
Benjamin Canac
beb1bf2f0d chore: add @vueuse/core 2024-03-06 14:35:56 +01:00
Benjamin Canac
38a36f4e48 test(Button): add 2024-03-06 12:40:41 +01:00
Benjamin Canac
b67fddeef8 test: setup 2024-03-06 12:40:34 +01:00
Benjamin Canac
8aefde231a chore: move public in playground 2024-03-06 12:36:45 +01:00
Benjamin Canac
17ea7efd3b chore: externalize theme to type app config 2024-03-06 12:27:14 +01:00
Benjamin Canac
f76ec5a376 chore: transform to module 2024-03-05 19:19:37 +01:00
Benjamin Canac
3c716219cf chore: lint 2024-03-05 18:49:05 +01:00
Benjamin Canac
f5e60a00ba chore: init 2024-03-05 18:45:21 +01:00
Benjamin Canac
435ef30f26 chore(release-it): prefix version commit message 2024-03-05 12:48:45 +01:00
Benjamin Canac
17a96416f0 chore(release): 2.14.2 2024-03-05 12:21:34 +01:00
renovate[bot]
4378268117 chore(deps): update devdependency @nuxt/ui-pro to v1.0.1-28492961.4d49b9c (#1471)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-04 21:38:46 +01:00
Benjamin Canac
622aef5ffe docs: limit search results to 42 2024-03-04 19:27:09 +01:00
Benjamin Canac
174af36000 docs: switch to @nuxt/fonts 2024-03-04 18:21:41 +01:00
Benjamin Canac
2d64b50559 fix(RadioGroup): add missing fieldset config
Resolves #1472
2024-03-04 18:06:49 +01:00
Benjamin Canac
272c19de70 fix(Tooltip): arrow not hidden on mobile
Resolves #1470
2024-03-04 16:27:01 +01:00
Alex Thorwaldson
6a1142b403 fix(Dropdown): active/inactive dropdown links (#1407)
Co-authored-by: gangan <44604921+shinGangan@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-04 16:11:41 +01:00
renovate[bot]
9937951fb7 chore(deps): update all non-major dependencies (#1440)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-04 16:11:05 +01:00
kmilogp
002129c299 fix(Modal): remove overflow-hidden (#1460)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-03-04 12:58:56 +01:00
Benjamin Canac
0c2f655a27 docs(Range): revert example as it shows in the docs 2024-03-04 12:47:51 +01:00
renovate[bot]
fb16735dec chore(deps): update devdependency vue-tsc to v2 (#1454)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-04 12:33:38 +01:00
Mukund Shah
aa6e523780 docs(Notification): add Notifications props and config (#1449) 2024-03-04 11:56:18 +01:00
David Parys
bfd15c1818 docs(Link): add IntelliSense section (#1442) 2024-03-04 11:55:17 +01:00
Rodion
027d85402b docs(FormGroup): wrong icon name in #help slot (#1451) 2024-03-04 11:54:44 +01:00
roiLeo
99b9467dc2 docs(SelectMenu): invalid anchor to creatable (#1453) 2024-03-04 11:53:52 +01:00
Benjamin Canac
70bf4a7392 fix(Dropdown): improve hover mode on touch devices 2024-03-04 11:47:39 +01:00
Benjamin Canac
b50fbcf760 fix(Popover): improve hover mode on touch devices 2024-03-04 11:47:34 +01:00
Benjamin Canac
b74bf9f666 chore(Tooltip): use mouseenter instead of mouseover 2024-03-04 11:45:01 +01:00
renovate[bot]
c0feca136a chore(deps): update all non-major dependencies (#1430)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-28 17:21:00 +01:00
Benjamin Canac
0a4a9e3d2c fix(HorizontalNavigation): add relative class to icon 2024-02-28 16:26:16 +01:00
Benjamin Canac
0b29dd4ca5 fix(VerticalNavigation): add relative class to icon
Resolves #1245
2024-02-28 16:25:20 +01:00
Benjamin Canac
9cce4456d0 fix(Notification): improve description alignment when no title provided 2024-02-28 12:52:53 +01:00
Benjamin Canac
ca4f06a313 fix(Alert): improve description alignment when no title provided
Resolves #1408
2024-02-28 12:52:43 +01:00
Benjamin Canac
7dd9ee528e docs(date-picker): improve examples responsive 2024-02-28 11:25:59 +01:00
Shoshana Connack
cdf6ff7152 docs(date-picker): include date-fns in installation (#1434) 2024-02-27 14:26:25 +01:00
Benjamin Canac
9c2104d947 docs: remove banner on examples 2024-02-27 09:18:53 +01:00
Benjamin Canac
d1c8026a1e docs(deps): bump @nuxt/ui-pro 2024-02-27 09:18:53 +01:00
Benjamin Canac
14efa81986 chore(deps): refresh lock 2024-02-27 09:18:53 +01:00
renovate[bot]
b3314dc16b chore(deps): update all non-major dependencies (#1406)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-27 09:18:53 +01:00
Benjamin Canac
06135f38ae docs(home): improve lighthouse 2024-02-26 12:56:40 +01:00
Benjamin Canac
dbbab8ded0 chore(CommandPaletteGroup): remove useless role attributes 2024-02-26 12:56:40 +01:00
Romain Hamel
6e77f1d514 fix(Checkbox): label interaction without FormGroup (#1427) 2024-02-26 12:55:30 +01:00
Benjamin Canac
4b6e80e364 fix(SelectMenu): check null model value
Resolves #1421
2024-02-26 11:37:32 +01:00
Benjamin Canac
8a1b112727 docs(deps): bump @nuxt/ui-pro 2024-02-26 11:37:32 +01:00
Benjamin Canac
961f0ae27b docs: update banner 2024-02-26 11:37:32 +01:00
Benjamin Canac
e819656a34 docs: move headlessui links before github 2024-02-26 11:37:32 +01:00
Sébastien Chopin
024e03acc9 docs(breadcrumb): add link to github (#1414) 2024-02-26 11:37:32 +01:00
renovate[bot]
462d7729c9 chore(deps): update devdependency @nuxt/ui-pro to v1.0.0-28478433.ed477f1 (#1405)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 11:37:31 +01:00
gangan
df857fd541 chore(renovate): update extends (#1380) 2024-02-26 11:37:31 +01:00
sdezza
9b208bf297 docs(modal): mention how to programatically close (#1423) 2024-02-26 11:24:02 +01:00
Benjamin Canac
5af9da4d3c chore(release): 2.14.1 2024-02-23 17:25:52 +01:00
Benjamin Canac
1d995136a5 chore(release-it): remove pnpm test 2024-02-23 17:22:24 +01:00
Benjamin Canac
ba15add4db fix(module): revert tailwind config from #1272 (#1404) 2024-02-23 16:35:08 +01:00
Benjamin Canac
0aca478c57 chore(deps): remove ^ from @nuxt/kit resolution 2024-02-23 10:54:53 +01:00
Benjamin Canac
0ee4f2b75b chore(release-it): update config 2024-02-22 17:57:39 +01:00
Benjamin Canac
6e53cb6281 chore(deps): refresh lock 2024-02-22 15:40:12 +01:00
renovate[bot]
de715304dc chore(deps): update all non-major dependencies (#1399)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-02-22 15:31:59 +01:00
Benjamin Canac
81854112e3 docs: add pricing banner (#1391) 2024-02-22 15:30:38 +01:00
Benjamin Canac
87526b9ec5 docs: rename UDocs components to UContent 2024-02-22 15:28:44 +01:00
Benjamin Canac
f79187825f docs(deps): bump @nuxt/ui-pro 2024-02-22 15:28:31 +01:00
Benjamin Canac
0443ac2c9d chore(deps): remove ^ from resolutions 2024-02-22 15:28:11 +01:00
Benjamin Canac
d2c51e3667 docs(home): improve pro divider 2024-02-22 15:09:02 +01:00
Benjamin Canac
d15d7fa01d docs(home): improve pro section 2024-02-22 13:07:23 +01:00
Benjamin Canac
df32b3131b chore(release): 2.14.0 2024-02-22 12:06:52 +01:00
Benjamin Canac
d96d17d7e6 chore(readme): update 2024-02-22 11:42:06 +01:00
Benjamin Canac
b6c69441f5 docs(index): invalid component links 2024-02-21 23:11:59 +01:00
Benjamin Canac
33f3372c6b docs(nuxt.config): highlight mdc 2024-02-21 23:11:47 +01:00
renovate[bot]
613ba2db64 chore(deps): update devdependency @nuxt/ui-pro to v0.7.5-28475621.09eb8fa (#1394)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 20:02:36 +01:00
Benjamin Canac
9f352976ce fix(utils): prevent merge of popper key
Resolves #1393
2024-02-21 16:51:42 +01:00
Benjamin Canac
f83cff7095 chore(utils): prevent default prop merge for chip and badge 2024-02-21 16:34:34 +01:00
Benjamin Canac
433c09a9f3 docs(nuxt.config): highlight postcss lang 2024-02-21 16:34:34 +01:00
renovate[bot]
930337bf88 chore(deps): update all non-major dependencies (#1381)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 14:21:15 +01:00
Benjamin Canac
81e48ba9fd docs(home): add video 2024-02-21 12:24:30 +01:00
Benjamin Canac
cb2fd1e940 docs: consistent app.vue and error.vue 2024-02-20 10:47:50 +01:00
Benjamin Canac
6d4eac0dec docs: update figma link 2024-02-20 10:43:56 +01:00
Benjamin Canac
f4f6a8fcc1 chore(deps): refresh lock 2024-02-19 16:41:22 +01:00
renovate[bot]
920070cce0 chore(deps): update all non-major dependencies (#1347)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 16:23:10 +01:00
Benjamin Canac
d12b00c005 chore(useFormGroup): indentation 2024-02-19 12:23:25 +01:00
Benjamin Canac
3a142896c3 chore(useButtonGroup): indentation 2024-02-19 12:22:50 +01:00
Benjamin Canac
58682cec0c docs(theming): broken link for ui.config file
Resolves #1372
2024-02-18 20:01:21 +01:00
Romain Hamel
37ef7a4e4f docs(form): improve form documentation (#1373) 2024-02-18 18:30:20 +01:00
Amir Reza Dalir
5266591c88 fix(Form): improve validate path type (#1370)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-02-18 11:15:15 +01:00
Romain Hamel
d4b6147fcc fix(Form): return false when silent validation fails (#1371) 2024-02-18 11:11:07 +01:00
Benjamin Canac
31232d4d72 chore(Table): use px-4 in td and th for consistency 2024-02-15 15:29:52 +01:00
Benjamin Canac
3fe35217cb feat(Table): display progress bar when loading (#1362) 2024-02-15 12:37:44 +01:00
renovate[bot]
04ef47376d chore(deps): update dorny/paths-filter action to v3 (#1360)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 12:32:02 +01:00
Benjamin Canac
aa2b1cae88 fix(Notification): remove required title to prevent warning when using slot 2024-02-15 12:22:50 +01:00
Benjamin Canac
e545b6f0a1 fix(Alert): remove required title to prevent warning when using slot 2024-02-15 12:22:33 +01:00
Benjamin Canac
db42d9cab7 chore(Progress): define ProgressColor type 2024-02-15 12:14:00 +01:00
Benjamin Canac
b11c773f32 chore(Range): export RangeColor type 2024-02-15 12:14:00 +01:00
Benjamin Canac
c34df13e65 chore(Toggle): export ToggleColor type 2024-02-15 12:14:00 +01:00
Benjamin Canac
a55a08a91e fix(Progress): prevent NaN percent display when indeterminate 2024-02-15 12:13:37 +01:00
Benjamin Canac
c488b28c3c docs: use lang="ts" everywhere 2024-02-14 17:41:10 +01:00
Benjamin Canac
300861a49e docs(deps): remove @nuxthq/studio 2024-02-14 14:47:49 +01:00
Benjamin Canac
09a8e2d8c2 chore(deps): refresh lock 2024-02-12 12:00:48 +01:00
Benjamin Canac
7eba5b539a chore(FormGroup): wrap label & description to ease styling 2024-02-12 11:59:18 +01:00
renovate[bot]
19d15b42f0 chore(deps): update all non-major dependencies (#1334)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-12 11:37:32 +01:00
Richard van Driest
e23d4aaf53 docs(table): correct spelling (#1340) 2024-02-09 11:40:02 +01:00
Benjamin Canac
e1fb8e438d chore(Modals): ensure modalState exists 2024-02-08 17:18:48 +01:00
Benjamin Canac
f682905b26 fix(Card): prevent body padding without default slot 2024-02-08 12:49:38 +01:00
Benjamin Canac
f5fa9fe163 docs: add New badges on edge 2024-02-07 21:48:21 +01:00
Benjamin Canac
627a44bb1f docs: remove New badges on edge 2024-02-07 21:42:33 +01:00
Benjamin Canac
ade99a8f05 chore(Modals): client only component 2024-02-07 21:36:51 +01:00
Benjamin Canac
3295954247 docs(table): prevent overflow on mobile 2024-02-07 21:36:32 +01:00
Benjamin Canac
4f532dbb72 docs(vertical-navigation): improve example 2024-02-07 21:36:18 +01:00
Benjamin Canac
ee0a8f01af docs(carousel): improve examples 2024-02-07 21:31:48 +01:00
Benjamin Canac
b8936070f9 Revert "docs: add missing overflow-hidden on components"
This reverts commit 34adcc1c04.
2024-02-07 21:04:56 +01:00
Neil Richter
6f29c620ab feat(Modal): open programmatically (#1319) 2024-02-07 16:53:17 +01:00
renovate[bot]
98a2d0f1af chore(deps): update all non-major dependencies (#1216)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-02-07 16:03:42 +01:00
Benjamin Canac
e08601900e docs(DatePicker): wrong version of v-calendar
Fixes #1333
2024-02-07 14:40:21 +01:00
Benjamin Canac
cf818fba47 docs(home): improve pro animation start time 2024-02-07 14:31:57 +01:00
Benjamin Canac
0c8a649035 docs: add postcss shiki lang highlighter 2024-02-07 14:12:54 +01:00
Benjamin Canac
843a978644 feat(Tabs): add unmount prop as false by default
Resolves #663
2024-02-07 14:12:54 +01:00
adjabaev
cbeede66bb feat(Divider): handle size prop (#1307)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-02-07 13:48:11 +01:00
Benjamin Canac
a506cbbcb0 chore(package.json): add missing module type 2024-02-07 12:44:35 +01:00
Benjamin Canac
bb40c31031 fix(module): prevent tailwind warn with bun
Fixes #809
2024-02-07 12:43:56 +01:00
Benjamin Canac
34adcc1c04 docs: add missing overflow-hidden on components 2024-02-06 23:09:27 +01:00
Olusola Olawale
ac42ec106f fix(Link): check disabled prop before navigating (#1321) 2024-02-06 21:45:51 +01:00
Benjamin Canac
c3ed940ac2 docs(deps): bump @nuxt/ui-pro-edge 2024-02-06 19:51:38 +01:00
Benjamin Canac
7c74c2f22a docs: improve config display 2024-02-06 19:51:21 +01:00
Benjamin Canac
d0f4530e85 fix(SelectMenu): revert component is after #1199 2024-02-06 18:15:27 +01:00
Benjamin Canac
f8b296fc60 fix(Meter): missing import of Icon component
Fixes #1328
2024-02-06 18:03:16 +01:00
Benjamin Canac
882247e5f4 fix(Accordion): style disclosure div after #1199 2024-02-06 17:52:58 +01:00
Farnabaz
a297c3b41e docs: move shiki highlighter to composable (#1325) 2024-02-06 16:12:27 +01:00
Benjamin Canac
45121916d0 docs(releases): use head.title
Fixes #1323
2024-02-06 15:38:18 +01:00
Benjamin Canac
6b82429e30 chore(deps): bump 2024-02-06 14:21:11 +01:00
Farnabaz
707753a743 docs(deps): update @nuxt/content (#1310)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-02-06 13:06:20 +01:00
Benjamin Canac
10db14475f fix(components): hydration attribute mismatch with vue 3.4 (#1199) 2024-02-06 12:42:19 +01:00
Inesh Bose
4a5f7b06cf chore(tailwind): put empty object in quotes (#1306) 2024-02-05 16:46:31 +01:00
pierre golfier
f643e7b316 feat(Textarea): add maxrows prop to restrict autoresize (#1302)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-02-05 16:18:20 +01:00
Benjamin Canac
5a5b284e96 fix(RadioGroup): pass help prop to radio children
Resolves #1313
2024-02-05 15:32:36 +01:00
Benjamin Canac
6699a0519d docs(deps): bump @nuxt/ui-pro-edge 2024-02-05 12:24:54 +01:00
Benjamin Canac
8b08edeee7 chore(module): pass resolve and runtimeDir to installTailwind 2024-02-05 12:16:58 +01:00
Benjamin Canac
41ecd2a3d5 feat(Carousel): expose methods to allow autoplay
Resolves #1300
2024-02-01 18:07:39 +01:00
Benjamin Canac
f36158133e docs: bump @nuxt/ui-pro-edge 2024-02-01 16:55:02 +01:00
Inesh Bose
f0ee1893ee refactor(module): provide tailwind config through template (#1272)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-02-01 15:06:28 +01:00
Benjamin Canac
f455dbdd22 docs(releases): lint 2024-02-01 12:57:15 +01:00
Romain Hamel
27c71fa40e feat(Form): use nuxt useId to bind input labels (#1211) 2024-01-31 18:22:02 +01:00
Benjamin Canac
be37daec56 chore: ignore ts errors after nuxt 3.10 2024-01-31 15:05:31 +01:00
Benjamin Canac
9676f51512 chore(deps): update nuxt resolutions 2024-01-31 14:38:22 +01:00
Benjamin Canac
f8ada8042a docs(vercel.json): ignore _payload.json in redirects 2024-01-31 13:52:00 +01:00
Jake
89e15b90b1 docs(carousel): add draggable="false" to image elements (#1297) 2024-01-31 13:04:19 +01:00
Benjamin Canac
5b008b789b docs: put back prerender: false 2024-01-31 13:02:12 +01:00
Benjamin Canac
25d35cf465 docs: display Edge badge in header 2024-01-31 12:08:55 +01:00
Benjamin Canac
ee662986ab docs: remove prerender: false 2024-01-31 11:52:04 +01:00
Benjamin Canac
946a39c739 feat(Input): handle type file
Resolves #563
2024-01-31 11:50:34 +01:00
Benjamin Canac
412cd75edd fix(module): put back all option in icons plugin
Fixes #1237
2024-01-31 10:53:39 +01:00
Benjamin Canac
d0471f66ea chore(deps): update @egoist/tailwindcss-icons 2024-01-31 10:52:14 +01:00
Benjamin Canac
a12f37e4d2 chore(deps): update 2024-01-30 17:32:34 +01:00
Benjamin Canac
b741b42c64 docs: active pro link on /pro/prose 2024-01-30 15:07:44 +01:00
Benjamin Canac
7f8c625b0e docs: add /getting-started/examples redirect 2024-01-30 14:44:00 +01:00
Benjamin Canac
83b6b04eea docs: configure image provider to ipx 2024-01-30 14:26:20 +01:00
Benjamin Canac
aac6fb4334 docs(releases): improve page 2024-01-30 13:14:16 +01:00
Benjamin Canac
ca9f47d7c0 docs: move vercel.json in root dir 2024-01-30 12:37:53 +01:00
Benjamin Canac
e78a0350a5 chore(release): 2.13.0 2024-01-30 11:54:34 +01:00
Benjamin Canac
f42bb95f89 docs: import @nuxt/ui-pro package to display version 2024-01-30 11:51:33 +01:00
Benjamin Canac
f9042c4673 chore(deps): update 2024-01-30 11:51:20 +01:00
Benjamin Canac
e92be71749 docs: new structure (#1282)
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
2024-01-30 11:24:02 +01:00
Anthony Sendra
20ac4b3332 feat(Form): handle multiple paths in validate (#1273) 2024-01-27 11:41:56 +01:00
Benjamin Canac
2e1ef557b5 chore(HorizontalNavigation): handle truncate 2024-01-25 18:02:28 +01:00
Benjamin Canac
8c568b1a29 chore(InputMenu/SelectMenu): harmonize config with buttons 2024-01-25 17:50:43 +01:00
Benjamin Canac
d2481a0f23 chore(CommandPalette): harmonize selected icon size 2024-01-25 17:50:17 +01:00
Benjamin Canac
a3f253f99a chore(Dropdown): harmonize config with buttons 2024-01-25 17:44:55 +01:00
Benjamin Canac
edf70b19eb chore(Breadcrumb): harmonize icon with buttons 2024-01-25 17:39:07 +01:00
Benjamin Canac
5d3a962782 fix(Breadrumb): handle truncate 2024-01-25 17:38:52 +01:00
Benjamin Canac
f640a30e13 chore(Breadcrumb): increase item line-height 2024-01-25 16:42:09 +01:00
Benjamin Canac
b8007bab5e feat(HorizontalNavigation): new component (#1279) 2024-01-25 10:21:06 +01:00
Benjamin Canac
b76e761bbb fix(Link): propagate active prop to slot as isActive 2024-01-24 18:20:25 +01:00
Benjamin Canac
b5b97f3467 chore(CommandPalette): harmonize config with buttons 2024-01-24 17:04:35 +01:00
Benjamin Canac
fc91e90958 chore(VerticalNavigation): harmonize config with buttons 2024-01-24 17:04:18 +01:00
Benjamin Canac
3e81eee6e6 feat(VerticalNavigation)!: use Badge component for consistency 2024-01-24 17:03:25 +01:00
Benjamin Canac
5ff566f0a4 chore(Toggle): missing default function in size prop 2024-01-24 14:52:12 +01:00
Benjamin Canac
3400b56d82 feat(Tooltip): default delay from config 2024-01-24 14:51:49 +01:00
Benjamin Canac
7f5711bc76 feat(Popover): default delay from config 2024-01-24 14:51:41 +01:00
Benjamin Canac
c4a1c04174 feat(Dropdown): default delay from config 2024-01-24 14:51:31 +01:00
Benjamin Canac
5e49fb8736 feat(InputMenu): handle nullable prop when clearing input 2024-01-24 12:45:39 +01:00
Benjamin Canac
2cb41db111 fix(Select): consistent placeholder with input and textarea
Resolves #1276
2024-01-24 11:55:05 +01:00
Benjamin Canac
6fafd78f5f docs(ComponentExample): fix code slot with latest @nuxt/content 2024-01-23 15:29:38 +01:00
Benjamin Canac
5b134b07ef docs(command-palette): add API section 2024-01-23 11:50:23 +01:00
Benjamin Canac
a47d9cc006 docs(form): improve API section 2024-01-23 11:50:09 +01:00
Benjamin Canac
ea9807f921 docs(theming): improve extraProperties examples
Resolves #1002
2024-01-23 10:50:01 +01:00
Matej Černý
f96eb5e8b7 feat(module): add option to disable global css styles (#1266) 2024-01-23 10:47:34 +01:00
Benjamin Canac
865c492616 chore(Select): move global style to sfc
Related to #1266
2024-01-22 22:08:44 +01:00
Benjamin Canac
a2ed3cc376 docs(carousel): hydration issue in one example 2024-01-22 18:41:45 +01:00
Benjamin Canac
d416432703 chore(deps): update 2024-01-22 18:41:29 +01:00
Michał Hanusek
f37b043138 feat(Carousel): new component (#927)
Co-authored-by: Michał Hanusek <m.hanusek@myfreak.pl>
Co-authored-by: Inesh Bose <dev@inesh.xyz>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-01-22 17:47:14 +01:00
Mohamed Fadl
ea58c88baa fix(Slideover): handle translate in RTL mode (#1259) 2024-01-22 17:01:38 +01:00
Benjamin Canac
0083ca276a docs: remove New badges on edge version 2024-01-22 16:58:10 +01:00
Alireza Jahandideh
6faf15bc74 feat(Modal/Slideover): emit close-prevented event (#1207) 2024-01-19 15:45:16 +01:00
Benjamin Canac
ac5224cbae chore(release): 2.12.3 2024-01-18 17:40:47 +01:00
Benjamin Canac
79ec3fd031 fix(link): import type from #vue-router
Resolves #1253
2024-01-18 17:34:41 +01:00
Benjamin Canac
91b27c8581 docs: bump @nuxt/ui-pro 2024-01-18 16:13:28 +01:00
Benjamin Canac
66c78c899c chore(release): 2.12.2 2024-01-18 15:38:59 +01:00
Benjamin Canac
05e90aa1d1 fix(link): improve nuxt link rel type 2024-01-18 15:30:14 +01:00
Benjamin Canac
d28bb0efa8 chore(release): 2.12.1 2024-01-18 15:04:10 +01:00
Benjamin Canac
d67c7482ac chore(deps): pin @headlessui/vue in dependencies instead of resolutions 2024-01-18 15:00:07 +01:00
Benjamin Canac
b8db18513d chore(deps): pin @headlessui/vue as it breaks command palette 2024-01-18 12:47:16 +01:00
Benjamin Canac
a3b33ac917 chore(deps): add missing resolutions update 2024-01-17 23:54:06 +01:00
Benjamin Canac
0f25f8563e chore(deps): update 2024-01-17 23:50:07 +01:00
renovate[bot]
81126b299a chore(deps): update actions/cache action to v4 (#1248)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 23:48:31 +01:00
Benjamin Canac
4ce8348a43 chore(Divider): clean code 2024-01-16 13:07:33 +01:00
Benjamin Canac
0776455a71 docs(accordion): add missing button colors 2024-01-16 13:07:13 +01:00
Benjamin Canac
1a937919a2 fix(InputMenu): take option-attribute into account to display label 2024-01-16 11:17:07 +01:00
Benjamin Canac
b9fe74bca5 fix(SelectMenu): take option-attribute into account to display label
Resolves #1151
2024-01-16 11:16:20 +01:00
Benjamin Canac
e116f931b2 docs(ComponentCard): wrap code in <template> 2024-01-16 11:07:08 +01:00
Benjamin Canac
393b992aeb docs(divider): remove useless color on example 2024-01-15 23:14:20 +01:00
Benjamin Canac
c187d367ff types(Link): add missing props 2024-01-15 16:05:39 +01:00
Benjamin Canac
d43fb835d8 chore(link): add missing props 2024-01-15 16:01:58 +01:00
Benjamin Canac
033fcfacd8 types(Tooltip): add interface 2024-01-15 14:47:20 +01:00
Benjamin Canac
e0977b2933 types(Chip): add missing fields 2024-01-15 14:47:20 +01:00
Benjamin Canac
4405d3239f fix(Tooltip): typo in kbd component 2024-01-15 14:47:20 +01:00
Mohamed Attia
a3a7201396 docs(installation): typo (#1235) 2024-01-14 17:51:47 +01:00
Benjamin Canac
29029ca8ae docs: bump @nuxt/ui-pro-edge 2024-01-12 11:52:25 +01:00
Benjamin Canac
2862741e5f docs(demo): add loading button 2024-01-12 11:50:49 +01:00
Benjamin Canac
e4fd20888b chore(Dropdown): use getNuxtLinkProps to bind items 2024-01-11 12:18:17 +01:00
Benjamin Canac
5c759c326d chore(Breadcrumb): chore(VerticalNavigation): use getULinkProps to bind links 2024-01-11 12:17:49 +01:00
Benjamin Canac
4c9c8d343a chore(VerticalNavigation): use getULinkProps to bind links 2024-01-11 12:17:29 +01:00
Benjamin Canac
28b736a703 chore(utils): improve link utils 2024-01-11 12:16:27 +01:00
Benjamin Canac
02d72df527 chore(Button): use utils to get link props 2024-01-11 11:25:00 +01:00
Benjamin Canac
a44bfc8511 fix(Button): pass-through nuxt link props to ULink 2024-01-11 11:15:27 +01:00
Benjamin Canac
b0df864379 fix(Link): prevent type bind on <a> 2024-01-11 11:15:08 +01:00
Benjamin Canac
969b02d936 docs(link): display props 2024-01-10 17:17:51 +01:00
Benjamin Canac
d3e19dc65a fix(Button): inherit nuxt link props without breaking nuxt-component-meta
Resolves #578
2024-01-10 16:58:47 +01:00
Benjamin Canac
cefa597664 test(Button): import from #components 2024-01-10 16:26:23 +01:00
Benjamin Canac
bad8a69a36 chore(github): improve pull request template 2024-01-10 12:52:17 +01:00
Benjamin Canac
6e4230fd63 chore(release): 2.12.0 2024-01-09 17:42:24 +01:00
Benjamin Canac
0be676a9ef docs: bump @nuxt/ui-pro-edge 2024-01-09 17:13:55 +01:00
Benjamin Canac
e48b61b5df docs(TableExampleAdvanced): improve sorting with v-model:sort and sort-mode props
Resolves #1177
2024-01-09 15:13:29 +01:00
Benjamin Canac
56e0c9a9a0 feat(Table): add sort-mode prop
Resolves #1149
2024-01-09 14:54:13 +01:00
Ivan Topolnjak
c6841d06a4 fix(Table): respect sort prop updates from parent component (#1208)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-01-09 13:03:02 +01:00
Benjamin Canac
8508e84958 chore(Table): rename columns sortFn to sort 2024-01-09 12:05:32 +01:00
Benjamin Canac
6154ae94a9 docs: bump @nuxt/ui-pro + @nuxt/image (required by BlogPost) 2024-01-08 17:29:19 +01:00
renovate[bot]
6384edf92a chore(deps): update all non-major dependencies (#1196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-01-08 14:54:03 +01:00
Ragura
4f3af6cfdb feat(Table): add custom sort function to columns (#1075)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2024-01-08 12:28:19 +01:00
Daniel Roe
893b2466ff docs: ignore /pro when no token is provided (#1205) 2024-01-06 13:36:33 +01:00
Benjamin Canac
9807e58f8f docs(installation): add Modules and TypeScript section
Related to #1169, #1200, #571 and #1190
2024-01-05 18:54:29 +01:00
Benjamin Canac
4124406032 fix(Card)!: remove overflow-hidden on wrapper
Fixes #806, fixes #1034
2024-01-05 17:37:35 +01:00
Benjamin Canac
3258167a14 fix(forms): dont disable inputs and selects on loading
Resolves #1117
2024-01-05 17:35:18 +01:00
Benjamin Canac
520624bd64 chore(InputMenu): handle async search with search prop 2024-01-05 17:33:36 +01:00
Benjamin Canac
e4b8fffc32 docs(SelectMenu): improve async search example 2024-01-05 17:29:47 +01:00
Benjamin Canac
5d781112f1 fix(Alert): always pass a function to actions click events
Fixes #1197
2024-01-04 11:05:33 +01:00
Benjamin Canac
1c8122a00b chore(deps): pin vue to 3.3.13 2024-01-04 10:53:08 +01:00
Benjamin Canac
0976833753 feat(Pagination): add disabled prop
Resolves #1189
2024-01-03 18:18:01 +01:00
Benjamin Canac
bc00f9c4b2 fix(Popover): improve placement with hover mode
Improvement of #781
2024-01-03 17:21:35 +01:00
Benjamin Canac
c6aa4215d7 fix(Dropdown): improve placement with hover mode
Resolves #1179
2024-01-03 17:20:06 +01:00
Benjamin Canac
3334e2af3d fix(Popover): allow manual mode without blocking normal behaviour 2024-01-03 16:51:20 +01:00
Benjamin Canac
3844714644 feat(Dropdown): handle manual mode
Resolves #1143
2024-01-03 16:49:00 +01:00
Benjamin Canac
84e6392981 chore(deps): update lock 2024-01-03 15:44:33 +01:00
Benjamin Canac
c2ef6237d8 chore(InputMenu): allow control of search query 2024-01-03 15:13:34 +01:00
Benjamin Canac
f735db04d6 feat(SelectMenu): allow control of search query
Resolves #1174
2024-01-03 15:13:34 +01:00
Benjamin Canac
e8f573b6bb fix(SelectMenu): input border focus after tailwindcss 3.4 2024-01-03 15:13:34 +01:00
renovate[bot]
288abf239f chore(deps): update all non-major dependencies (#1184)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-03 14:54:34 +01:00
Daniel Roe
44d93a1cfd chore(Accordion): match event listener types (#1193) 2024-01-03 14:53:58 +01:00
Daniel Roe
217840bb41 docs: allow generating docs without github token (#1194) 2024-01-03 14:52:32 +01:00
Romain Hamel
ea2a24b5fe fix(Form): memory leak (#1185) 2024-01-02 16:36:35 +01:00
Romain Hamel
4a25a12390 feat(Form): expose submit function (#1186) 2024-01-02 16:28:38 +01:00
Sébastien Chopin
d64cb8a6fd chore: Update PULL_REQUEST_TEMPLATE.md 2024-01-02 14:57:32 +01:00
Benjamin Canac
00d0fd5919 fix(Table): display nothing instead of error when key is missing
Fixes #1173
2024-01-02 11:10:42 +01:00
Benjamin Canac
30e7a3ca20 chore(deps): update lock 2024-01-02 10:54:32 +01:00
renovate[bot]
7d572c81bb chore(deps): update all non-major dependencies (#1007)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-02 10:37:51 +01:00
John Puaoi
97a3975197 fix(Form): invalid errors when using clear by path (#1165) 2024-01-02 10:34:52 +01:00
Victor Akintunde
43b999c88e docs(notification): add default timeout value (#1181) 2024-01-02 10:33:08 +01:00
Benjamin Canac
7151b7b97d fix(Dropdown): merge item class
Fixes #1157
2023-12-28 13:14:17 +01:00
Conner Blanton
ffd20b3991 feat(VerticalNavigation): ability to add dividers (#963)
* feat(VerticalNavigation): ability to add sections with divider

* lint fix

* updating branch. resolving conflicts

* reverting app.vue

* removing unnecessary style

---------

Co-authored-by: Inesh Bose <dev@inesh.xyz>
2023-12-27 14:34:51 +01:00
Neil Mispelaar
29e64ca963 feat(VerticalNavigation): improve accessibility (#948)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-12-26 13:00:33 +01:00
Benjamin Canac
556ee0d9c4 docs: update dependencies 2023-12-26 12:19:24 +01:00
Benjamin Canac
debafef0fa chore(deps): update dependencies 2023-12-26 11:15:44 +01:00
Benjamin Canac
2d9038bcb0 chore(npmrc): ignore workspace root check 2023-12-26 11:06:36 +01:00
nathanjcollins
f7f8f06b91 chore(deps): update tailwindcss dependency to 3.4.0 (#1145)
* chore: update dependency for tailwindcss to 3.4

* refactor: change w-x h-x to size-x

* up

* up

* revert: h-x w-x to size-x

* fix: undo

* up

---------

Co-authored-by: Nathan Collins <nathancollins@Nathans-MacBook-Pro.local>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-12-26 10:56:57 +01:00
Benjamin Canac
56e1fed373 fix(useShortcuts): invalid code after #1159 2023-12-25 17:39:01 +01:00
Lukas
648eec31b9 fix(useShortcuts): include contenteditable="plaintext-only" elements in usingInput (#1159) 2023-12-25 17:34:24 +01:00
Benjamin Canac
d0ce8ee1c4 Revert "docs: pull nuxt/ui-pro docs from main branch"
This reverts commit 9d8f358139.
2023-12-21 16:19:31 +01:00
Benjamin Canac
9d8f358139 docs: pull nuxt/ui-pro docs from main branch 2023-12-21 11:18:14 +01:00
Jakub Chrobak
bc6474a9ad docs(installation): add bun command (#1141)
* docs: add bun installation command

* fix: add missing bracket
2023-12-20 12:28:14 +01:00
Benjamin Canac
31924e32f2 chore(deps): update 2023-12-19 18:16:39 +01:00
Benjamin Canac
c963ba688f docs(theming): improve Icons section 2023-12-19 17:51:27 +01:00
Benjamin Canac
4dee128524 chore(deps): update @egoist/tailwindcss-icons 2023-12-19 17:36:13 +01:00
Benjamin Canac
4c84839a01 fix(Toggle): add missing change event
Fixes #1113
2023-12-19 13:09:11 +01:00
renovate[bot]
fd30022550 chore(deps): update devdependency date-fns to v3 (#1127)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-19 11:40:59 +01:00
Daniel Roe
1a1c640220 chore: migrate to @nuxt/test-utils alpha (#1133)
* test: update snapshots to remove quotes

* chore: add alpha versions of test-utils

* chore: migrate to new test format

* test: slightly improve typing in suite

* test: improve safety of basic test
2023-12-19 11:37:57 +01:00
Daniel Roe
5c99ae131d fix: update vue and fix type issues (#1112)
* chore: bump vue version to show type errors

* fix: address type issues
2023-12-19 10:54:00 +01:00
Benjamin Canac
b22bd70d54 fix(config): prevent class merge of avatar size 2023-12-16 00:16:34 +01:00
Benjamin Canac
0c8ab9d98e fix(RadioGroup): pass option.disabled to children
Fixes #1109
2023-12-16 00:16:34 +01:00
Inesh Bose
0fdc8f70b6 feat(SelectMenu): allow creating option despite search (#1080)
* chore: initial

* chore: use reusable vnode

* fix: use component with vnode

* chore: option placement

* chore: finish

* up

* up

* up

* fix(selectmenu): non-object custom options

* up

---------

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-12-15 15:04:06 +01:00
Benjamin Canac
23770d8cf0 chore(deps): update tailwind-merge 2023-12-15 14:42:57 +01:00
Benjamin Canac
84e75ad237 chore(playground): add tailwind.config.ts 2023-12-15 12:51:55 +01:00
Benjamin Canac
00dd8c27bd chore(playground): add app.config.ts 2023-12-15 12:50:58 +01:00
Benjamin Canac
5f81a79edf chore(Table): unused omit function 2023-12-15 11:37:08 +01:00
Benjamin Canac
1a02b3abe7 chore(Table): remove unused click attribute in rows 2023-12-14 17:17:43 +01:00
Benjamin Canac
83631ccbca fix(Link): handle active override when value is false 2023-12-14 14:32:31 +01:00
Benjamin Canac
0f9b5d47a6 docs(index): update components count 2023-12-13 15:20:48 +01:00
Benjamin Canac
f623ec1130 feat(Breadcrumb): handle labelClass and merge iconClass 2023-12-12 19:12:01 +01:00
Benjamin Canac
a79f7c0a34 feat(VerticalNavigation): handle labelClass and merge iconClass 2023-12-12 19:11:12 +01:00
Benjamin Canac
1c9835d7f1 feat(Dropdown): handle labelClass and merge iconClass
Resolves #716
2023-12-12 19:07:46 +01:00
Benjamin Canac
6d8d82a265 feat(InputMenu): new component (#1095) 2023-12-12 18:45:04 +01:00
Benjamin Canac
66a80c7486 docs(SelectMenu): add missing New badge on empty slot 2023-12-12 18:19:44 +01:00
Benjamin Canac
0546c7922c docs(ComponentPropsField): improve codeblocks line-height 2023-12-12 18:10:16 +01:00
Benjamin Canac
eafe707c7d docs(ComponentPropsField): wrong line-height on code blocks 2023-12-12 17:02:41 +01:00
Benjamin Canac
5d1919a538 feat(SelectMenu): add empty slot when no options
Resolves #1089
2023-12-12 16:27:42 +01:00
Benjamin Canac
781365a5ed docs(SelectMenu): improve 2023-12-12 16:27:42 +01:00
Benjamin Canac
0129e2db40 docs(SelectMenu): remove duplicate config 2023-12-12 16:27:22 +01:00
Benjamin Canac
45b1a4bd32 docs(releases): display pulls on release day too 2023-12-11 17:22:42 +01:00
Conner Blanton
f32f578125 feat(Popover): open and close events (#1038) 2023-12-11 17:19:19 +01:00
Benjamin Canac
4b044866a5 docs: add ads 2023-12-11 16:50:00 +01:00
Benjamin Canac
9b768ec12b docs: bump @nuxt/ui-pro-edge 2023-12-11 12:47:12 +01:00
Benjamin Canac
7584d72f42 chore(release): 2.11.1 2023-12-11 12:14:39 +01:00
Benjamin Canac
6b5ddc18bd docs: improve error page 2023-12-11 11:58:09 +01:00
Benjamin Canac
4dd92f7f36 chore(CommandPalette): filter not working after refactor 2023-12-08 18:40:40 +01:00
Benjamin Canac
cbc27422a4 docs: bump @nuxt/ui-pro-edge 2023-12-08 15:47:35 +01:00
Benjamin Canac
db508b218f fix(CommandPalette): improve performances and avoid multiple recompute 2023-12-08 15:28:53 +01:00
Benjamin Canac
ad33b26729 fix(CommandPalette): missing right padding on input with close button 2023-12-08 15:26:13 +01:00
Benjamin Canac
f07968afef fix(module): prevent class merging on default children
Fixes #1076
2023-12-07 17:29:36 +01:00
Benjamin Canac
a8dc9b216a docs: bump `@nuxt/ui-pro-edge 2023-12-07 17:15:05 +01:00
Benjamin Canac
32474e21f7 docs: bump `@nuxt/ui-pro-edge 2023-12-07 11:57:12 +01:00
Benjamin Canac
c023fb400c docs(ComponentCard): add ignoreVModel prop 2023-12-07 11:43:55 +01:00
Benjamin Canac
4548809ee5 docs(nuxt.config): add date-fns to vite.optimizeDeps 2023-12-06 22:33:45 +01:00
Benjamin Canac
6b52963339 docs(nuxt.config): typecheck with new nuxt-component-meta 2023-12-06 22:32:08 +01:00
Benjamin Canac
2c2ff0f473 chore(deps): update 2023-12-06 22:25:35 +01:00
Benjamin Canac
0b762d61e7 docs: bump @nuxt/ui-pro-edge 2023-12-06 22:13:21 +01:00
Benjamin Canac
9cbb68871c docs(SelectMenu): display config of ui and ui-menu props
Resolves  #1046
2023-12-06 22:13:10 +01:00
Benjamin Canac
7c5b47ea72 chore(Progress): remove useless cast 2023-12-06 18:43:47 +01:00
Romain Hamel
7196d81b4c fix(RadioGroup): props reactivity issues (#1065) 2023-12-06 17:15:05 +01:00
Benjamin Canac
1cb8df869f docs: bump @nuxt/ui-pro-edge 2023-12-06 16:11:24 +01:00
Benjamin Canac
67cc349c6c docs: bump @nuxt/ui-pro-edge 2023-12-06 16:02:40 +01:00
MiladHp
1f0f6181db fix(Notification): handle dynamic backgrounds (#1063)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-12-05 17:11:56 +01:00
Benjamin Canac
18b6133b11 docs: bump @nuxt/ui-pro-edge 2023-12-05 16:46:13 +01:00
Benjamin Canac
51bfb9a4e1 docs: use @nuxt/ui-pro-edge 2023-12-04 17:09:05 +01:00
Benjamin Canac
76e1cc84db chore(deps): update 2023-12-04 15:35:16 +01:00
Benjamin Canac
d539f2540b chore(deps): remove unused dev dependencies 2023-12-04 15:19:26 +01:00
Muhammad Mahmoud
e53cdeaf0b fix(Breadcrumb): handle divider in rtl (#1049) 2023-12-04 11:26:48 +01:00
Benjamin Canac
4d72a758fa fix(types): favor Record<string, any>> instead of object 2023-11-30 17:19:08 +01:00
Benjamin Canac
a2e9b7da07 chore(useUI): missing undefined in type 2023-11-30 16:54:54 +01:00
Benjamin Canac
e408eabd8b fix(components): move remaining classes to config (#1039) 2023-11-30 16:31:48 +01:00
Benjamin Canac
5718dfd69a fix(types): workaround for popper weak type
Fixes #644
2023-11-30 16:29:37 +01:00
Benjamin Canac
4a9b66aeb3 fix(types): improve with strict mode (#1041) 2023-11-30 12:02:37 +01:00
Benjamin Canac
464ff0b703 docs(OgImageDocs): handle when no description provided 2023-11-29 17:38:37 +01:00
Benjamin Canac
6984989a2c Revert "chore(deps): pin vitest"
This reverts commit 29efa99fb7.
2023-11-28 18:16:29 +01:00
Benjamin Canac
2dcc11ff89 chore(useUI): improve type 2023-11-28 16:38:00 +01:00
Benjamin Canac
29efa99fb7 chore(deps): pin vitest 2023-11-28 16:30:34 +01:00
Benjamin Canac
6c432028ae chore(useUI): improve type 2023-11-28 16:29:35 +01:00
Benjamin Canac
0270ce9251 docs(installation): remove duplicate codeblock on edge 2023-11-27 18:23:51 +01:00
Benjamin Canac
182e3b6e8f docs: bump @nuxt/ui-pro to stable 2023-11-23 12:39:14 +01:00
Benjamin Canac
26afa45fbf docs: remove New badges on edge version 2023-11-23 12:16:45 +01:00
Benjamin Canac
edd92d01a9 docs: fix invalid link 2023-11-23 11:22:45 +01:00
Benjamin Canac
e34c513b1a chore(release): 2.11.0 2023-11-23 11:15:23 +01:00
Conner Blanton
06d4510d1c feat(Popover): ability to add overlay (#1014) 2023-11-23 11:12:42 +01:00
Benjamin Canac
819b5f8a17 test: move Button to elements dir 2023-11-22 17:59:16 +01:00
Benjamin Canac
15a40f53f2 fix(Link): reactivity issue with active prop
Fixes nuxt/nuxt.com#1432
2023-11-22 15:24:36 +01:00
Benjamin Canac
dd55b4f602 docs: add missing New badges 2023-11-22 15:15:28 +01:00
Benjamin Canac
ec58948153 feat(module): allow options override of @egoist/tailwindcss-icons plugin (#1013) 2023-11-22 14:42:56 +01:00
Benjamin Canac
27db7fdd95 docs: bump @nuxt/ui-pro & @nuxtjs/mdc 2023-11-22 14:16:40 +01:00
renovate[bot]
2fc73ffafe chore(deps): update devdependency @release-it/conventional-changelog to v8 (#949)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-22 10:30:40 +01:00
renovate[bot]
5908d1a96b chore(deps): update devdependency release-it to v17 (#947)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-22 10:27:58 +01:00
Inesh Bose
d02858f6c4 refactor(config): break ui.config.ts into separate files (#930) 2023-11-22 10:26:31 +01:00
Levi (Nguyễn Lương Huy)
10ec3d533e docs(README): add and improve contributing guide, local development guide (#860) 2023-11-22 10:20:44 +01:00
Conner Blanton
d39e2de935 feat(FormGroup): add eager validation (#992) 2023-11-21 23:24:15 +01:00
Benjamin Canac
9df9b9a2df docs(releases): improve page 2023-11-21 23:02:35 +01:00
Italo
37fdf224c0 fix(SelectMenu): fixes non-strings and nested searchable attributes (#967)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-11-21 22:20:48 +01:00
renovate[bot]
73d0fa7273 chore(deps): update all non-major dependencies (#867)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-11-21 21:10:40 +01:00
Italo
11ccbbb24e feat(SelectMenu): allows to clear search query on close (#968)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-11-21 18:59:42 +01:00
renovate[bot]
ceb2ed36d4 chore(deps): update devdependency @testing-library/vue to v8 (#986)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-21 18:41:39 +01:00
Iván Máximiliano, Lo Giudice
83c3be716a feat(Notification): customize default timeout (#1003) 2023-11-21 18:34:08 +01:00
Daniel Roe
ca62ce13d3 fix(module): boolean types and bump nuxt to 3.8.2 (#1006) 2023-11-21 18:32:51 +01:00
Benjamin Canac
16663887ca docs(releases): display multiple pulls per day 2023-11-21 17:27:19 +01:00
Benjamin Canac
762c5ebba1 docs: add releases page (#1004) 2023-11-21 17:08:13 +01:00
Conner Blanton
f4be95dcf5 fix(ButtonGroup): handle components with children (#999)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-11-20 19:38:05 +01:00
Conner Blanton
c9b9bd6fb9 docs: sort component size prop (#956) 2023-11-20 17:00:16 +01:00
Benjamin Canac
55697e601e feat(Textarea): add default slot for complex usages
Resolves #971
2023-11-20 15:51:34 +01:00
Benjamin Canac
0cb5cc3947 docs: add pro section on landing 2023-11-20 14:22:04 +01:00
Pacman Doh
f245b4677c docs(VerticalNavigation): add truncate in icon slot example (#998) 2023-11-20 13:51:18 +01:00
Benjamin Canac
a1b38c4b66 feat(Checkbox): config label, required and help size 2023-11-19 13:17:52 +01:00
Conner Blanton
d4f1b5ef82 feat(Chip): new component (#886)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-11-19 13:04:07 +01:00
Benjamin Canac
6cc77a3e6c fix(Link): handle active state when to prop is not provided
Fixes #988
2023-11-17 18:56:54 +01:00
Benjamin Canac
7339324355 feat(types): support custom values from app.config.ts (#863) 2023-11-17 18:48:50 +01:00
Juho Rutila
bcc46b87f5 test: add initial component tests (#923)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-11-17 10:49:43 +01:00
Benjamin Canac
b666c4a1a8 docs(deps): bump @nuxt/ui-pro-edge 2023-11-16 18:14:00 +01:00
Haytham A. Salama
a35bfc7343 feat(Breadcrumb): new component (#506)
Co-authored-by: Eduard Aymerich <eduardaymerich@gmail.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-11-16 18:06:51 +01:00
Florian Zdrada
a97593985c fix(CommandPalette): activate first option after async search (#981) 2023-11-16 17:50:37 +01:00
Benjamin Canac
e1e5fa902b refactor(Dropdown): move item click logic to a proper function 2023-11-16 12:32:41 +01:00
Benjamin Canac
9b976a0b68 docs(ComponentCard): display model-value instead of value 2023-11-15 11:27:46 +01:00
Benjamin Canac
9952581d5b docs: remove useless label from RangeExample 2023-11-15 11:27:28 +01:00
Benjamin Canac
60e195ae60 docs(Toggle): put back lost v-model example
Resolves #916
2023-11-15 11:27:12 +01:00
Benjamin Canac
7c1052f3f7 docs(ComponentCard): add code prop to key to prevent duplicates 2023-11-15 11:11:25 +01:00
Benjamin Canac
60fa2beed0 fix(Dropdown): pass event to click function 2023-11-14 19:26:15 +01:00
Benjamin Canac
050c9c8db9 chore(deps): update lock 2023-11-14 17:42:44 +01:00
Benjamin Canac
9361d47cf7 docs: remove @iconify-json/logos 2023-11-14 17:42:14 +01:00
Benjamin Canac
b3caec3a7d docs: improve og image component 2023-11-14 17:37:56 +01:00
Benjamin Canac
4dbc6240c5 docs: prevent UNotifications slot #description override
Otherwise it alters the display of the Notification examples where actions moves under the title.
2023-11-14 17:21:39 +01:00
Benjamin Canac
7cb987de42 fix(Notification): improve config options 2023-11-14 17:19:59 +01:00
Benjamin Canac
91511b921d fix(Alert): improve config options
Resolves #760
2023-11-14 17:13:21 +01:00
Benjamin Canac
f323379909 fix(Dropdown): use NuxtLink with custom prop to close on select
Fixes #899
2023-11-14 16:26:24 +01:00
Benjamin Canac
ded6a7f73d fix(Notification): prevent gap when no close button or action 2023-11-14 15:55:57 +01:00
Benjamin Canac
9a1a1b8caf fix(Alert): prevent gap when no close button or action
Fixes #831
2023-11-14 15:55:57 +01:00
Sylvain Marroufin
de38afd97b fix(defineShortcuts): support minus - key (#962) 2023-11-14 14:24:46 +01:00
Romain Hamel
a3046aa256 fix(FormGroup): hydration mismatch on inputId (#942) 2023-11-14 14:23:51 +01:00
Conner Blanton
3c71bf36b0 feat(Toggle): add size prop (#950) 2023-11-11 22:42:05 +01:00
max
c55871b844 fix(Progress): percentage calculation (#939) 2023-11-11 17:11:11 +01:00
Benjamin Canac
0eb8d8f7ec docs: consistent usage of :component-example 2023-11-10 11:24:49 +01:00
max
68f6956d6e fix(Input/Textarea): add v-model modifiers (#856) 2023-11-10 11:05:58 +01:00
Benjamin Canac
6f0bfb5d89 chore(Icon): use computed for dynamic prop 2023-11-09 16:20:22 +01:00
Maxime Pauvert
4a62dac8a4 chore(package): add homepage (#929)
Co-authored-by: roiLeo <medina.leo42@gmail.com>
2023-11-08 17:43:07 +01:00
Benjamin Canac
042603a3c7 docs: use new prose component Tabs (#920) 2023-11-07 13:01:42 +01:00
Benjamin Canac
c601fc6c55 feat(Icon): switch to nuxt-icon with dynamic prop or app config (#862) 2023-11-06 18:27:14 +01:00
Benjamin Canac
196e9ac7d4 docs: remove Pricing from pro header 2023-11-06 15:48:18 +01:00
Sébastien Chopin
bfe418f614 docs: update nuxt-og-image 2023-11-06 14:54:33 +01:00
Benjamin Canac
3d205d0c8a docs: move pro navigation at the end on edge version 2023-11-06 11:56:12 +01:00
Benjamin Canac
f3c491a417 chore(release-it): improve github release name 2023-11-04 15:36:43 +01:00
Benjamin Canac
d7cbd05533 docs: bump @nuxt/ui-pro 2023-11-03 16:46:19 +01:00
Arash
8451f4d9bb fix(Notifications): teleport to body (#909) 2023-11-03 15:08:52 +01:00
Benjamin Canac
c153138db1 docs: prevent err on page not found 2023-11-03 14:38:02 +01:00
Daniel Roe
c73a2ab676 docs: don't add pro path if it doesn't exist (#917)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-11-03 14:37:54 +01:00
Romain Hamel
e81d5cf998 fix(FormGroup): remove inputId if the input is a fieldset (#914) 2023-11-03 14:31:15 +01:00
Benjamin Canac
7891ccb9ac test: lint 2023-11-03 11:45:41 +01:00
Daniel Roe
c84438f491 fix(module): use correct alias for #ui-colors (#913) 2023-11-03 11:40:26 +01:00
Benjamin Canac
844b3185e9 docs: integrate @nuxt/ui-pro (#739)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
Co-authored-by: Florent Delerue <florentdelerue@hotmail.com>
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
2023-11-02 16:44:44 +01:00
Juho Rutila
ed4b5e0077 test: add unit tests for the module (#892)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-11-02 11:00:20 +01:00
Conner Blanton
a2d70f04e9 fix(Radio): prevent help text from inlining with label (#894) 2023-10-31 14:29:48 +01:00
Benjamin Canac
1f9a063d98 docs: remove New badges for edge 2023-10-31 10:33:49 +01:00
Benjamin Canac
033910d90a docs: invalid radio links 2023-10-31 10:33:35 +01:00
Benjamin Canac
3e783277be chore(release): 2.10.0 2023-10-31 10:21:59 +01:00
Benjamin Canac
3ff4f0f8f5 chore(deps): update lock 2023-10-31 10:21:24 +01:00
Benjamin Canac
c37ad8b79a fix(Dropdown): use NuxtLink instead of ULink (#882) 2023-10-29 17:11:12 +01:00
Levy
f5f33882f9 fix(FormGroup): ensure size exists in config (#695)
Co-authored-by: Sma11X <540351143@qq.com>
Co-authored-by: saveliy <savelii.moshkota@ext.jumingo.com>
2023-10-28 17:59:51 +02:00
Conner
5a2644b329 feat(RadioGroup): configurable label size (#881) 2023-10-27 23:11:58 +02:00
Benjamin Canac
327c7769da chore(MeterGroup): unused import 2023-10-27 22:45:38 +02:00
Benjamin Canac
a0ffd3e334 docs(vertical-navigation): simplify default slot example
Resolves #813
2023-10-27 22:27:42 +02:00
Benjamin Canac
18e8d28272 chore(MeterGroup): consistency when multiple useUI 2023-10-27 22:08:29 +02:00
Benjamin Canac
339eaf69a5 chore(ui.config): rename popperArrow 2023-10-27 20:43:37 +02:00
Benjamin Canac
53b26b8194 docs: rename Preset title to Config 2023-10-27 20:43:23 +02:00
Italo
abbcc37fbb feat(Meter): new component (#827)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-27 20:40:39 +02:00
Benjamin Canac
5296cf2319 chore(Progress): add missing sizes for text 2023-10-27 17:33:28 +02:00
Benjamin Canac
3cb3914386 feat(Range): add 2xs, xs, xl and 2xl sizes to match progress component
Fixes #673
2023-10-27 16:36:11 +02:00
Benjamin Canac
5ce60f775d chore(progress): improve sizes 2023-10-27 16:36:00 +02:00
Benjamin Canac
8138814d71 docs(progress): default size to md for consistency 2023-10-27 16:15:58 +02:00
Benjamin Canac
56a19830b0 chore(progress): use .d.ts 2023-10-27 16:06:09 +02:00
Italo
2c5559b73e feat(Progress): new component (#697)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-27 16:01:47 +02:00
Benjamin Canac
f5f76cc77e docs(button): add group props & preset 2023-10-27 15:56:15 +02:00
Benjamin Canac
4005defb39 docs(avatar): add group props & preset 2023-10-27 15:56:05 +02:00
Romain Hamel
23d5dc7b98 feat(RadioGroup): new component (#730)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-27 15:47:24 +02:00
Conner
f785ecd46f feat(popper): arrow option & docs consistency across components (#875) 2023-10-27 15:03:06 +02:00
Conner
4ce23746da feat(Tooltip): adding option to show popper arrow (#868)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-26 15:41:42 +02:00
Benjamin Canac
8ba2a791e4 feat(CommandPalette): handle filter attribute in groups (#871) 2023-10-26 11:59:55 +02:00
Bryce
68f024f742 docs(shortcuts): add example usage for arrow keys (#859) 2023-10-26 10:49:58 +02:00
max
c5ce997ba9 feat(Pagination): add first and last page buttons (#842)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: Max Steinwand <msteinwand@kues.de>
2023-10-25 19:23:51 +02:00
renovate[bot]
9c05b3a317 chore(deps): update actions/setup-node action to v4 (#851)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-25 19:22:41 +02:00
renovate[bot]
a5d1661d66 chore(deps): update all non-major dependencies (#865)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-25 19:00:08 +02:00
renovate[bot]
0e116e6276 chore(deps): update devdependency @nuxt/devtools to v1 (#843)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-25 18:34:44 +02:00
renovate[bot]
d112808994 chore(deps): update all non-major dependencies (#810)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-25 18:31:50 +02:00
Benjamin Canac
f69024243e Revert "fix(types): take user app config into account"
This reverts commit ace8fc1c00.
2023-10-25 17:53:10 +02:00
Benjamin Canac
9023227cc0 docs(button): add ButtonGroup example with input
Resolves #804
2023-10-25 16:28:53 +02:00
Benjamin Canac
ace8fc1c00 fix(types): take user app config into account
Fixes #858
2023-10-25 12:17:13 +02:00
Benjamin Canac
7be2af7127 fix(types): handle sub-objects in app.config.ts (button colors)
Fixes #858
2023-10-25 11:43:36 +02:00
Benjamin Canac
2b7c5c575f docs(theming): improve colors customization with tailwind 2023-10-23 17:00:33 +02:00
renovate[bot]
4a18ff1da9 chore(deps): update devdependency @nuxthq/studio to v1 (#775)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-20 12:48:30 +02:00
mwohlan
51f4d54999 fix(Table): prevent @select event call when selecting all rows (#838) 2023-10-20 12:48:05 +02:00
Benjamin Canac
cca9dfbe22 docs(deps): bump @nuxt/ui-pro 2023-10-19 22:04:56 +02:00
Benjamin Canac
afbd47b7b0 docs(Link): fix code with prettier 2023-10-19 18:23:35 +02:00
Benjamin Canac
a735483381 docs(Link): add usage example
Resolves #749
2023-10-19 15:46:32 +02:00
mwohlan
b4f7b035f7 fix(Table): enable sorting for nested column keys (#835) 2023-10-19 11:23:32 +02:00
Benjamin Canac
0c36996adb docs: add pro link in header 2023-10-18 17:56:44 +02:00
Muhammad Mahmoud
40f3b16100 fix(Notification): add roles for accessibility (#724) 2023-10-18 17:49:27 +02:00
Daniel Roe
a8279d1c97 fix: use explicit type imports (#830) 2023-10-18 11:38:29 +02:00
Daniel Roe
360cfe663f chore: specify build command (#829) 2023-10-18 11:30:27 +02:00
Benjamin Canac
e5cbeac34b docs: improve pro page 2023-10-17 18:55:59 +02:00
Benjamin Canac
431a61c2b5 docs: add temporary pro page 2023-10-17 18:33:28 +02:00
KeJun
8867936e01 docs(ComponentCard): show all props for the code (#797)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-15 17:52:20 +02:00
Italo
9f4d88e0aa feat(Table): add v-model:sort prop (#803)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-14 19:18:49 +02:00
kevin olson
8bfd3591a6 feat(Input/Textarea): allow specifying autofocus delay for page transitions (#816) 2023-10-14 16:12:39 +02:00
Benjamin Canac
550ac10e49 fix(Modal): remove padding on mobile with fullscreen enabled
Resolves #811
2023-10-12 16:31:22 +02:00
Benjamin Canac
6137acad04 chore(github): edge release only when src/ changes 2023-10-12 15:30:08 +02:00
Benjamin Canac
0bd12fdf92 chore(useUI): add option to force appConfig merge 2023-10-12 15:27:22 +02:00
Sma11X
3ae78aadee docs(input): add type description (#794)
Co-authored-by: Haytham A. Salama <haythamasalama@gmail.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-12 14:48:37 +02:00
renovate[bot]
7a48e8c45d chore(deps): update all non-major dependencies (#762)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-12 14:46:27 +02:00
Benjamin Canac
ddbb431953 fix(Tabs): truncate buttons content
Resolves #796
2023-10-12 14:37:38 +02:00
Benjamin Canac
3697dbeda2 docs(popover): add New badge on manual section 2023-10-12 12:30:58 +02:00
Nils Olsson
92b86186e7 feat(Popover): manual mode & horizontal offset (#781)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: Lnunu <62177121+Lnunu@users.noreply.github.com>
2023-10-12 12:14:40 +02:00
Benjamin Canac
827f2f45d9 docs: add fatal on createError 2023-10-12 11:47:14 +02:00
Sma11X
96296c3d38 fix(Accordion): toggle correct element when keyboard press (#805)
Co-authored-by: Haytham Salama <haythamasalama@gmail.com>
2023-10-12 11:46:02 +02:00
Benjamin Canac
94cabca65a docs: add missing target _blank on callouts 2023-10-10 18:48:07 +02:00
Albert
e16379fdbd feat(Form): handle @error event (#718)
Co-authored-by: Albert <albert@Alberts-MacBook-Pro.local>
Co-authored-by: Romain Hamel <romain@boilr.io>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-10 17:47:22 +02:00
Benjamin Canac
1df07e2b4c chore(github): remove pull_request trigger on ci 2023-10-10 16:30:00 +02:00
Benjamin Canac
972618fac8 docs(header): add github link on mobile 2023-10-10 14:42:47 +02:00
Benjamin Canac
168ef018f1 docs: remove duplicate features from landing 2023-10-10 11:40:54 +02:00
Benjamin Canac
e4d500f7c7 docs(examples): fix color mode code-block 2023-10-09 18:22:48 +02:00
Sébastien Chopin
aa42c4a5d1 docs: enable CF analytics 2023-10-09 12:01:54 +02:00
KeJun
fe348b48c6 docs(ComponentExample): automatically read code (#789) 2023-10-09 10:44:47 +02:00
Clayton Chew
cf93d968af docs: update ui.notifications position configuration (#788)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: Clayton Chew <30117799+claytonchew@users.noreply.github.com>
2023-10-06 18:27:37 +02:00
Sébastien Chopin
3b8e014449 docs: improve form docs (#761)
Co-authored-by: Haytham A. Salama <haythamasalama@gmail.com>
2023-10-06 18:25:22 +02:00
Haytham A. Salama
f4a3479e7c docs: add link to the FormExampleElements (#787) 2023-10-06 17:33:24 +02:00
Benjamin Canac
ccb353d4bd docs: bump @nuxt/ui-pro 2023-10-05 15:22:54 +02:00
Benjamin Canac
3c5c3389f8 fix(Divider): display a single border when no content 2023-10-05 15:22:54 +02:00
Haytham A. Salama
eb9ce6a0dd feat(Divider): new component (#757)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-05 15:22:54 +02:00
Haytham A. Salama
0c807db005 docs: improve select options from types (#758)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-10-05 15:22:54 +02:00
Lnunu
49a753f80f docs(shortcuts): invalid dropdown items (#778) 2023-10-05 15:22:54 +02:00
Benjamin Canac
498db5ca21 docs(popover): add panel slot example
Resolves #763
2023-10-05 15:22:54 +02:00
Benjamin Canac
25ab781c14 docs: bump @nuxt/ui-pro 2023-10-05 15:22:54 +02:00
Benjamin Canac
af3db2a544 docs: remove New badges 2023-10-05 15:22:54 +02:00
Benjamin Canac
537bd08aaa docs(installation): invalid filename 2023-10-05 15:22:40 +02:00
Benjamin Canac
f3c7ad8470 docs: update badges 2023-10-02 18:07:17 +02:00
Benjamin Canac
64897a39bf chore(release): 2.9.0 2023-10-02 17:29:03 +02:00
Benjamin Canac
dfda33c1aa chore(deps): bump 2023-10-02 11:07:56 +02:00
Benjamin Canac
d46eafb248 chore(Badge): add type 2023-09-29 16:17:06 +02:00
Benjamin Canac
ee6f0d0c49 chore(deps): dedupe lock 2023-09-29 14:55:03 +02:00
Haytham A. Salama
b7b86bcc44 docs: add discord link to the section community (#759)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-29 11:34:00 +02:00
Haytham A. Salama
bbf3424933 docs: add contributing page (#729)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-29 11:10:03 +02:00
Levy
2fc938575d feat(FormGroup): add slots (#714)
Co-authored-by: Romain Hamel <rom.hml@gmail.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: saveliy <savelii.moshkota@ext.jumingo.com>
2023-09-28 18:30:41 +02:00
renovate[bot]
ff9d51863e chore(deps): update all non-major dependencies (#683)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-28 18:01:28 +02:00
Benjamin Canac
adb0a0fbe4 docs: bump @nuxt/content & @nuxt/ui-pro
Resolves #754
2023-09-28 17:42:42 +02:00
Haytham A. Salama
a071e4b875 fix(Pagination): handle max > 5 and max equal total pages (#728) 2023-09-28 17:01:44 +02:00
Benjamin Canac
a74de152d7 chore(deps): bump @nuxt/ui-pro 2023-09-28 14:24:15 +02:00
Aditio Pangestu
109ec52d50 fix(module): retain props reactivity through useUI (#745)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-28 14:06:57 +02:00
Haytham A. Salama
874447cb41 feat(Table): add ability to custom style for td and tr (#741)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-28 12:11:26 +02:00
KeJun
8b7a013319 docs(ComponentCard): fix inline highlighter (#750)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-28 11:28:43 +02:00
Benjamin Canac
3e647e4af1 fix(module): move @headlessui/tailwindcss to plugins on module install 2023-09-27 15:13:57 +02:00
Benjamin Canac
0da85e1463 docs: bump @nuxt/content 2023-09-27 14:52:44 +02:00
Benjamin Canac
dcf6e63471 docs: bump @nuxt/content to 2.8.3 2023-09-27 13:48:06 +02:00
Benjamin Canac
cbb2f28c3f fix(Tabs): prevent focus of TabPanel with tabindex="-1" 2023-09-27 13:47:48 +02:00
Horu
be734fc026 fix(Tabs): add visible focus indicator on active tabs (#690) 2023-09-27 13:38:58 +02:00
Sébastien Chopin
b306138574 docs: add figma kit 2023-09-26 16:41:09 +02:00
Benjamin Canac
1ebf456ffc docs: add figma kit community link 2023-09-26 15:10:53 +02:00
Benjamin Canac
8257a11dcb feat(Link): add active prop to override default behaviour (#732)
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
2023-09-25 20:57:41 +02:00
Haytham A. Salama
6887f732ee fix(Accordion): close other items in circular order (#735) 2023-09-24 11:36:35 +02:00
Benjamin Canac
d088d8a7b8 chore(github): missing question form 2023-09-23 14:34:55 +02:00
Benjamin Canac
f60543a234 chore(github): update issue forms 2023-09-23 14:33:44 +02:00
Benjamin Canac
2531c8e66d chore(github): use issue forms 2023-09-23 14:26:18 +02:00
Benjamin Canac
4b68760f6a chore(github): improve issue templates 2023-09-23 12:04:43 +02:00
Benjamin Canac
568772382f playground: add missing .nuxtrc 2023-09-22 10:17:45 +02:00
Romain Hamel
46879dc1b7 chore(FormGroup): simplify bindings between input and form group p… (#704)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-21 23:22:55 +02:00
Benjamin Canac
a94782d94b docs: fetch select values from config 2023-09-21 22:16:34 +02:00
Benjamin Canac
853d58ad5f chore(module): add @ts-ignore on appConfig assign 2023-09-21 16:01:24 +02:00
Benjamin Canac
38b1eb6c5f docs: migrate to @nuxt/ui-pro 2023-09-21 15:00:08 +02:00
Benjamin Canac
f24ff9c47f chore: revert ui. prefix when using useUI composable 2023-09-21 14:30:34 +02:00
Benjamin Canac
60210aad75 chore(module): allow key extend in app.config 2023-09-21 14:26:21 +02:00
Benjamin Canac
67e85f98e2 docs: bump @nuxthq/elements 2023-09-21 13:14:20 +02:00
Benjamin Canac
b3a52482f2 docs: invalid Edit this page link on main branch 2023-09-21 12:53:42 +02:00
Benjamin Canac
86dc49ecc9 chore: use get in useUI 2023-09-21 12:50:18 +02:00
Benjamin Canac
c937736734 chore: rename prepare to dev:prepare 2023-09-21 11:29:14 +02:00
Benjamin Canac
d379c579c0 docs: fix preset display 2023-09-21 11:12:03 +02:00
Benjamin Canac
f983c974c4 chore(scripts): remove pnpm install 2023-09-20 18:51:29 +02:00
Benjamin Canac
b90b151588 chore(github): add pull request template 2023-09-20 18:11:08 +02:00
Benjamin Canac
34d2f57801 feat(module)!: use tailwind-merge for app.config & move config to components & type props (#692)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2023-09-20 18:07:51 +02:00
Benjamin Canac
2c98628f98 docs: add discord link in footer 2023-09-20 12:28:49 +02:00
Aditio Pangestu
681f0e5684 fix(FormGroup): use explicit label instead of implicit label (#638) 2023-09-20 11:06:23 +02:00
Haytham A. Salama
e40491208a feat(Link): add as prop (#535)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-16 21:50:55 +02:00
Benjamin Canac
00594ea59b docs: improve plausible track event 2023-09-15 17:50:54 +02:00
Benjamin Canac
3ba95d3c4d docs: fix validation warns on color picker 2023-09-15 17:50:40 +02:00
Benjamin Canac
3424ce118d docs: fetch index page from dev source 2023-09-15 17:50:22 +02:00
Benjamin Canac
40b1d30f5c docs: bump @nuxthq/elements & nuxt-component-meta 2023-09-15 17:50:12 +02:00
Benjamin Canac
8ec23c042d docs: improve multi-source handling (#682) 2023-09-15 14:37:53 +02:00
Benjamin Canac
81463cd21d docs: lazy load images for performances 2023-09-14 22:55:55 +02:00
renovate[bot]
c44d363f62 chore(deps): update all non-major dependencies (#649)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 19:40:25 +02:00
Benjamin Canac
fbfa14a6a3 docs: track search 2023-09-14 19:30:26 +02:00
Benjamin Canac
4127caac76 docs: remove lodash (#678) 2023-09-14 19:19:20 +02:00
Younes Barrad
d6476d17f9 feat: remove lodash-es (#648)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2023-09-14 18:47:09 +02:00
Benjamin Canac
5fc44b97c6 chore(CommandPalette): add search? function to types 2023-09-14 18:43:14 +02:00
Honza Pobořil
15e418e6c6 fix(Tabs): allow custom keys in TabItem (#671) 2023-09-13 17:39:29 +02:00
Benjamin Canac
3b8ca9886d docs: fix demo components z-index
Fixes #670
2023-09-13 15:28:58 +02:00
Romain Hamel
4c5833083f fix(FormGroup): prevent input click from propagating to label (#651) 2023-09-12 16:01:01 +02:00
Sma11X
83d609d530 fix(Table): select all rows without select listener (#652) 2023-09-12 15:55:50 +02:00
Farnabaz
1b34df15ac docs(ComponentCard): use inline highlighter (#664) 2023-09-12 15:49:44 +02:00
Benjamin Canac
0178ca9586 docs: hmr for tailwindcss classes in yml 2023-09-12 15:15:07 +02:00
Benjamin Canac
40ecb23d9a docs: add more padding on demo 2023-09-12 15:14:51 +02:00
Benjamin Canac
85734b8615 docs: accessibilty issue on range example 2023-09-12 15:14:43 +02:00
Benjamin Canac
ab26e4ba7d docs: embed playground 2023-09-12 14:50:35 +02:00
Benjamin Canac
edbbb33f69 docs: improve demo animation performances 2023-09-12 14:49:30 +02:00
Benjamin Canac
3de3aa006c chore(CommandPalette): add aria-label on input 2023-09-12 11:35:50 +02:00
Benjamin Canac
784f1f51dd docs: improve demo accessibility 2023-09-12 11:31:02 +02:00
Benjamin Canac
0787ec2d12 docs: bump @nuxthq/elements 2023-09-12 11:30:53 +02:00
Benjamin Canac
a8f643939e docs: improve notification in demo 2023-09-12 11:05:16 +02:00
Benjamin Canac
6f77ee80ce chore: add aria-label on close buttons 2023-09-12 10:59:26 +02:00
Florent Delerue
e2d4ba529d docs: improve landing demo animation (#661)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-12 10:50:05 +02:00
Benjamin Canac
1c707ca00d docs: remove pick usage 2023-09-11 19:08:40 +02:00
Benjamin Canac
00e951f708 docs(SelectMenu): improve default slot example 2023-09-11 14:48:56 +02:00
Benjamin Canac
0544a01c5b fix(SelectMenu): handle numbers
Resolves #574
2023-09-11 14:48:44 +02:00
Benjamin Canac
290ab1d9c5 chore: reactive attrs without class
Fixes #650
2023-09-11 12:55:24 +02:00
Benjamin Canac
254c4ed7d3 docs: lazy load DatePicker component 2023-09-11 11:51:01 +02:00
Benjamin Canac
a603ea56c1 fix(Table): add missing classes in app.config.ts
Fixes #655
2023-09-11 11:31:04 +02:00
Benjamin Canac
a90e95f7d1 docs: bump @nuxthq/elements 2023-09-11 11:30:32 +02:00
Benjamin Canac
bc2315b7d9 docs: improve accessibility 2023-09-11 11:25:23 +02:00
Benjamin Canac
87fd85ec3f chore(Table): improve accessibility 2023-09-11 11:25:06 +02:00
Benjamin Canac
3fef86834f chore(Pagination): improve accessibility 2023-09-11 11:24:57 +02:00
Benjamin Canac
b5e8685a2c docs: prevent code ast duplicate with slots
Fixes #654
2023-09-10 21:38:25 +02:00
renovate[bot]
15ee768729 chore(deps): update all non-major dependencies (#612)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-09 18:25:04 +02:00
jduartea
8955595dc6 fix(Range): fix track pseudo-elements for mozilla (#636) 2023-09-09 18:24:06 +02:00
Haytham A. Salama
fd6bcd3f84 docs: add examples link in header (#618) 2023-09-09 18:21:23 +02:00
Benjamin Canac
9d23b82d1d chore(release): 2.8.1 2023-09-09 13:59:54 +02:00
Benjamin Canac
511ed6a86c docs(Form): fix valibot example typecheck 2023-09-09 13:44:10 +02:00
jduartea
e8daf7f810 fix(Form): fix getValibotError to avoid importing safeParseAsync (#640) 2023-09-09 13:37:56 +02:00
Benjamin Canac
a43c68c501 docs: try to fix the ContentRenderer error when changing props 2023-09-08 17:58:37 +02:00
Benjamin Canac
ef7d3ce549 docs(footer): links contrast 2023-09-08 17:58:17 +02:00
Benjamin Canac
c2e561cfe4 docs: optimize landing images 2023-09-08 17:58:08 +02:00
Benjamin Canac
1d1c36b44c docs(examples): broken responsive 2023-09-08 12:55:20 +02:00
Benjamin Canac
95abc759b9 docs: prevent weird display in props 2023-09-08 12:55:20 +02:00
Benjamin Canac
700b2bb4d7 docs: bump @nuxthq/elements 2023-09-08 12:55:20 +02:00
Benjamin Canac
1d077c45d5 docs: tabs examples accessibility 2023-09-08 12:55:20 +02:00
Benjamin Canac
14cca48e96 docs: bump @nuxthq/elements 2023-09-08 12:55:20 +02:00
Eduard Aymerich
22430e168a docs: broken Edit this page link (#620) 2023-09-08 12:28:50 +02:00
hxp971130
c1e0654417 fix(Pagination): page numbers not clickable (#624) 2023-09-08 12:27:08 +02:00
Romain Hamel
1a7eb27cad fix(Form): fix valibot imports (#617) 2023-09-08 10:10:45 +02:00
Benjamin Canac
0d5f008168 docs(robots.txt): add user-agent 2023-09-07 17:51:42 +02:00
Benjamin Canac
ba2716a66a docs(favicon): set color to green 2023-09-07 17:51:42 +02:00
Benjamin Canac
5d66155885 docs: improve accessibility 2023-09-07 17:51:42 +02:00
Benjamin Canac
02f3164af3 docs: improve landing grid performances 2023-09-07 17:51:42 +02:00
Sébastien Chopin
240db8ee19 docs: fix pnpm command 2023-09-07 16:23:46 +02:00
Benjamin Canac
b905216a95 docs: improve search button on mobile 2023-09-07 16:16:22 +02:00
Benjamin Canac
c47d928f49 docs: update x.com url 2023-09-07 16:16:22 +02:00
Sébastien Chopin
7e0a655c64 docs: remove dev dependency 2023-09-07 16:14:42 +02:00
Benjamin Canac
02bbc9b9cf docs: display cta avatars client only 2023-09-07 15:56:51 +02:00
Benjamin Canac
98e1d1b90e docs: remove New badges from edge docs 2023-09-07 15:52:25 +02:00
Benjamin Canac
2b1e7bcc57 docs: update volta token 2023-09-07 15:21:04 +02:00
Benjamin Canac
52958af81a chore(release): 2.8.0 2023-09-07 15:17:32 +02:00
Benjamin Canac
de4416d5bf chore(release-it): preset name 2023-09-07 15:17:19 +02:00
Sébastien Chopin
9ae038489e docs: use new url for module stats 2023-09-07 15:13:48 +02:00
Benjamin Canac
6ad1afd308 docs: update badges 2023-09-07 15:13:48 +02:00
SevicheCC
ab5153ac19 feat(Form): add valibot supprt (#615)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-07 15:13:48 +02:00
Benjamin Canac
eebff72d01 docs: bump @nuxthq/elements 2023-09-07 15:13:48 +02:00
Benjamin Canac
c20aefdd91 chore(github): put back typecheck as @nuxthq/elements uses @nuxt/ui-edge 2023-09-07 15:13:48 +02:00
Benjamin Canac
0f252d0caf fix(module): missing useHead import 2023-09-07 15:13:48 +02:00
Benjamin Canac
888effea0a fix(module): missing useNuxtApp import 2023-09-07 15:13:48 +02:00
Benjamin Canac
3ed282df98 chore(github): disable typecheck to publish edge package 2023-09-07 15:13:48 +02:00
Benjamin Canac
22f7536154 chore: migrate to https://ui.nuxt.com and @nuxt/ui (#616) 2023-09-07 15:13:48 +02:00
Benjamin Canac
9f9d8f5cec docs: landing page (#611)
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
2023-09-07 15:13:48 +02:00
Benjamin Canac
190378aaa9 chore(Alert): optional click function 2023-09-07 15:13:48 +02:00
Benjamin Canac
9b3a22ea14 fix(Radio): put back id for label selection 2023-09-07 15:13:48 +02:00
Benjamin Canac
7c157ce886 fix(Badge): allow label as number 2023-09-07 15:13:47 +02:00
Benjamin Canac
e49c673573 fix(AvatarGroup): pass default size to max avatar 2023-09-07 15:13:47 +02:00
Benjamin Canac
e578b0dd9e fix(AvatarGroup): add justify-end to wrapper to prevent right align 2023-09-07 15:13:47 +02:00
Eduard Aymerich
b3bc6e2e9e feat(ButtonGroup): add orientation prop (#603)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-07 15:13:47 +02:00
Kekeocha Justin Chetachukwu
e04c212d0d chore(Table): add overflow-x-auto to wrapper (#609) 2023-09-07 15:13:47 +02:00
renovate[bot]
92da3238eb chore(deps): update all non-major dependencies (#593)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-07 15:13:47 +02:00
Aditio Pangestu
d9363168b2 fix(Table): missing component imports (#608) 2023-09-07 15:13:47 +02:00
Benjamin Canac
53b2655ae5 docs: improve props types (#588) 2023-09-07 15:13:47 +02:00
Sébastien Chopin
f12c149e4e docs: remove concurrency to 1 2023-09-07 15:13:47 +02:00
Benjamin Canac
c4bcf0220b chore(deps): pin @nuxtjs/mdc 2023-09-07 15:13:47 +02:00
Benjamin Canac
73fc310e8d chore(deps): bump 2023-09-07 15:13:47 +02:00
Sébastien Chopin
7dff23912d docs: improve performances (#570)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-07 15:13:47 +02:00
Benjamin Canac
1145f88bca docs(deps): bump @nuxthq/elements 2023-09-07 15:13:47 +02:00
Sébastien Chopin
573c8a2f54 docs: fix social card link 2023-09-07 15:13:47 +02:00
Sébastien Chopin
7dbfe4ecd6 docs: update readme 2023-09-07 15:13:47 +02:00
Benjamin Canac
98b3c3550c docs: add missing component slots 2023-09-07 15:13:47 +02:00
Sébastien Chopin
791804b2fb fix: use head instance from plugin 2023-09-07 15:13:47 +02:00
Ling
f1ed0076e5 fix(Tooltip): hide on touch devices (#580) 2023-09-07 15:13:47 +02:00
Eduard Aymerich
11980a3c9c docs(ComponentCard): prevent label prop as select (#568) 2023-09-07 15:13:47 +02:00
Benjamin Canac
b901222c4b docs: specify multi-word component titles 2023-09-07 15:13:47 +02:00
Benjamin Canac
2e056fa3cf docs(SelectMenu): add slots examples
Resolves #557
2023-09-07 15:13:47 +02:00
renovate[bot]
b955f57084 chore(deps): update devdependency unbuild to v2 (#565)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-07 15:13:47 +02:00
rogepi
1435856586 docs: add colon before numeric props (#564)
Co-authored-by: rogepi <rogepi@outlook.com>
2023-09-07 15:13:47 +02:00
adjabaev
ce160c9a97 docs: dead links in Form and FormGroup pages (#544) 2023-09-07 15:13:47 +02:00
renovate[bot]
c88c8094a5 chore(deps): update all non-major dependencies (#530)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-07 15:13:47 +02:00
Benjamin Canac
7e7e9d0f85 docs: add version select (#532) 2023-09-07 15:13:47 +02:00
Benjamin Canac
ee663157b7 chore(Table): handle loading-state prop merge like empty-state 2023-09-07 15:13:47 +02:00
Eduard Aymerich
44ba758c0d fix(Table): empty state is displayed if null (#517) 2023-09-07 15:13:47 +02:00
Benjamin Canac
cb5484a603 docs: bump @nuxthq/elements 2023-09-07 15:13:47 +02:00
Benjamin Canac
998314e1cb fix(SelectMenu): invalid gap values 2023-09-07 15:13:47 +02:00
Benjamin Canac
d4e3ab606b fix(ButtonGroup): switch back to ui prop 2023-09-07 15:13:47 +02:00
Benjamin Canac
0a7c50ba98 chore(Popover): set default open-delay to 0 2023-09-07 15:13:47 +02:00
Benjamin Canac
88cc2e93af chore(Dropdown): set default open-delay to 0 2023-09-07 15:13:47 +02:00
Benjamin Canac
39042b3de1 fix(FormGroup): add missing ref import from vue 2023-09-07 15:13:47 +02:00
Benjamin Canac
8880bdc456 feat(module)!: use tailwind-merge for class merging (#509) 2023-09-07 15:13:47 +02:00
Romain Hamel
6d7973f6e1 feat(Form): improve form control and input validation trigger (#487)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-07 15:13:47 +02:00
renovate[bot]
60bb74675c chore(deps): update all non-major dependencies (#340)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-07 15:13:47 +02:00
Haytham A. Salama
a488b879f5 chore: add eslint rules for spacing (#526) 2023-09-07 15:13:47 +02:00
Benjamin Canac
fa1103b4ec docs: rebrand to Nuxt UI 2023-09-07 15:13:47 +02:00
Benjamin Canac
28ebfc2575 docs: @nuxt-themes/ui-kit is now @nuxthq/elements 2023-09-07 15:13:47 +02:00
Christian López C
fdce429b3e fix(Tabs): recompute marker position when v-model changes (#524) 2023-09-07 15:13:47 +02:00
Eduard Aymerich
7e2bebd3ef feat(Modal): add fullscreen prop (#523)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-07 15:13:47 +02:00
Benjamin Canac
ccb0f6207c chore(Table): typecheck 2023-09-07 15:13:47 +02:00
Benjamin Canac
f501460ebb docs: disable @nuxt/devtools 2023-09-07 15:13:47 +02:00
Vladyslav
858886a852 feat(Table): support nested keys in columns (#503)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-07 15:13:47 +02:00
Benjamin Canac
74f4903836 docs: bump @nuxt-themes/ui-kit 2023-09-07 15:13:47 +02:00
Benjamin Canac
16ac4a0533 docs: bump @nuxt-themes/ui-kit 2023-09-07 15:13:47 +02:00
Benjamin Canac
451e72a583 chore(app.config): revert -primary shortcuts after #493
Class priority issues in some cases when ring already defined on dark mode for example (input).
2023-09-07 15:13:47 +02:00
171H
a8a1c150a0 fix(Button): add missing prop types (#508) 2023-09-07 15:13:47 +02:00
171H
b243e8c946 fix(Alert): fix wrong type of actions (#507) 2023-09-07 15:13:47 +02:00
Benjamin Canac
a29877059e docs: improve icon sections of Alert, Avatar and Notification 2023-09-07 15:13:47 +02:00
Benjamin Canac
55daed0e5a feat(Avatar): handle icon default from app.config.ts 2023-09-07 15:13:47 +02:00
Benjamin Canac
1c00a366c2 chore(Link): use $route instead of useRoute() 2023-09-07 15:13:47 +02:00
Benjamin Canac
9866f051b2 chore(Avatar): add flex-shrink-0 to wrapper 2023-09-07 15:13:47 +02:00
Paul Grau
3d6839da97 fix(Form): fix wrong type of validate (#496)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-09-07 15:13:47 +02:00
Paul Grau
8b19b1880e fix(Form): use safeParseAsync for zod (#497) 2023-09-07 15:13:47 +02:00
Benjamin Canac
2d6badd4b0 docs(Avatar): add edge badge on icon 2023-09-07 15:13:47 +02:00
Benjamin Canac
df3b2028ed feat(Avatar): add icon prop as fallback 2023-09-07 15:13:47 +02:00
Benjamin Canac
eb609b13e4 fix(AvatarGroup): use ui.wrapper as inheritAttrs is not false 2023-09-07 15:13:47 +02:00
Benjamin Canac
aaf09ad555 feat(Tabs): control selected index (#490) 2023-09-07 15:13:47 +02:00
Benjamin Canac
ad0fe230ba docs(ui): also add the --color-primary-DEFAULT variable 2023-09-07 15:13:47 +02:00
Benjamin Canac
c6056ed133 feat(module): add DEFAULT shade to primary color (#493) 2023-09-07 15:13:47 +02:00
Benjamin Canac
7008df0988 fix(FormGroup): size were invalid since default has been removed
Bug introduced in c59595f2c6
2023-09-07 15:13:47 +02:00
Benjamin Canac
dc951ff69d fix(Popover): handle hover mode with padding like dropdown 2023-09-07 15:13:47 +02:00
Romain Hamel
e2146a5a58 docs(Form): fixed invalid state attributes in examples (#479) 2023-09-07 15:13:47 +02:00
Benjamin Canac
75d26e0c2b docs: improve dynamic page 2023-09-07 15:13:47 +02:00
Benjamin Canac
32a32d00ab docs: update badges 2023-08-12 22:26:02 +02:00
Benjamin Canac
189bd4cd3e chore(release): 2.7.0 2023-08-01 14:53:24 +02:00
Benjamin Canac
871d3b3a85 docs(tailwind.config): override green with nuxt one 2023-08-01 14:52:34 +02:00
Romain Hamel
248b0a68c6 fix(Form): return state on validate (#472) 2023-08-01 12:56:55 +02:00
Benjamin Canac
396aae7563 fix(Link): handle disabled prop
Fixes #473
2023-08-01 12:32:11 +02:00
Romain Hamel
dc1979cae1 fix(FormGroup): missing imports (#470) 2023-07-31 16:11:24 +02:00
Benjamin Canac
d51ad93f40 docs(Form): prevent duplicate ids 2023-07-31 15:43:20 +02:00
Benjamin Canac
c59595f2c6 fix(FormGroup): set size default to null
This prevents passing a `size` prop when not specified, especially when having a Checkbox, Radio, etc. underneath that don't support this prop.
2023-07-31 15:42:54 +02:00
Romain Hamel
a3aba1abad feat(Form): new component (#439)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-31 15:22:14 +02:00
Exotical
c37a927b4e docs(installation): fix incorrectly placed comma in array (#467) 2023-07-31 10:20:09 +02:00
Benjamin Canac
05ea5d2d78 chore(Link): add missing useRoute import 2023-07-30 21:11:46 +02:00
Benjamin Canac
963d81324c docs: bump @nuxt-themes/ui-kit 2023-07-30 20:04:17 +02:00
Benjamin Canac
927b63fa2e fix(module): omit colors defined as strings 2023-07-30 20:04:04 +02:00
Benjamin Canac
cefe5a76e0 feat(Link)!: rename from LinkCustom and add exact-query / exact-hash props 2023-07-30 19:46:27 +02:00
Haytham A. Salama
a9300db91e docs(examples): add advanced table example (#393)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-30 16:55:38 +02:00
KeJun
8e1aa2f1b6 docs(VerticalNavigation): add slots examples (#456)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-30 16:12:41 +02:00
Haytham A. Salama
5221294f78 chore: add eslint rules for spacing (#464)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-30 15:56:01 +02:00
Benjamin Canac
1bc055935e docs: update badges 2023-07-30 15:13:44 +02:00
Benjamin Canac
e25be118b7 fix(module): smart safelisting for components in snake case
Fixes #461
2023-07-30 14:56:48 +02:00
Benjamin Canac
93aebe6fc6 fix(FormGroup): err when no prop defined 2023-07-30 14:53:48 +02:00
Haytham A. Salama
2b3dc8d065 fix(Table): hide data when loading state is active (#460) 2023-07-29 23:31:29 +02:00
Benjamin Canac
5cf3bcf32d docs: fix after inject refactor 2023-07-29 20:30:32 +02:00
Benjamin Canac
3b183ac9cd feat(Range): increase narrowed surface (#459) 2023-07-29 20:15:46 +02:00
Benjamin Canac
3400e17d17 docs: bump @nuxt-themes/ui-kit 2023-07-29 20:14:18 +02:00
Benjamin Canac
4cd38ecc5a docs: lint example 2023-07-29 20:13:56 +02:00
Benjamin Canac
8380607a85 chore(github): run build before typecheck 2023-07-29 15:03:13 +02:00
Benjamin Canac
4561816b50 docs: add @nuxthq/ui dep to workspace 2023-07-29 15:00:05 +02:00
Benjamin Canac
e6d1106b83 docs: improve props and preset 2023-07-28 14:09:13 +02:00
Benjamin Canac
94f1c4e6a0 docs: bump @nuxt-themes/ui-kit & @nuxt/content 2023-07-28 13:47:29 +02:00
Benjamin Canac
09d0ea27ab feat(ui): apply primary bg on ::selection 2023-07-28 12:40:06 +02:00
Benjamin Canac
66ab95a2be chore(Tabs): add missing vue imports 2023-07-28 10:03:03 +02:00
Benjamin Canac
2cd620899f fix(module): safelist all colors for toast.add
Resolves #375, resolves #440
2023-07-27 18:28:25 +02:00
Benjamin Canac
0300be8539 docs(Alert): uniformize navigation badge 2023-07-27 18:22:49 +02:00
Benjamin Canac
5bd5dc2bca feat(Badge): rename outline to subtle + add soft variants 2023-07-27 18:22:21 +02:00
Benjamin Canac
572b7a5984 chore(deps): bump 2023-07-27 18:14:51 +02:00
Benjamin Canac
ab2abae48a feat(Alert): new component (#449) 2023-07-27 16:59:50 +02:00
Benjamin Canac
8298b62f21 feat(Tabs): new component (#450) 2023-07-27 16:22:49 +02:00
KeJun
10890e6704 fix(Popover): hover mode (#453) 2023-07-27 14:35:27 +02:00
Benjamin Canac
3af39cacf7 chore: remove prettierrc.json
Resolves #420
2023-07-27 12:51:00 +02:00
Larra Su
58e3958390 docs(Skeleton): fix usage example (#452) 2023-07-27 12:43:30 +02:00
Benjamin Canac
3dd0492f91 fix(FormGroup): required star display 2023-07-27 12:42:49 +02:00
Benjamin Canac
9a73c5fb64 docs(Badge): add Edge badges on new colors 2023-07-26 16:14:32 +02:00
Benjamin Canac
e7cfca2aa7 chore(Badge): add missing 500 color in safelist 2023-07-26 15:23:51 +02:00
Benjamin Canac
dc77cf292b docs(Button): add rounded section with ui prop 2023-07-26 15:01:48 +02:00
Benjamin Canac
05503e564c feat(Badge)!: add colors and variants (solid has changed) 2023-07-26 15:01:25 +02:00
Benjamin Canac
0420a17c1d docs: disable @nuxthq/studio 2023-07-26 13:00:03 +02:00
Benjamin Canac
a9578f8c50 chore(module): fix nuxt/schema augmentation 2023-07-25 18:59:22 +02:00
Benjamin Canac
d9ae1ee5b0 chore(deps): bump 2023-07-25 18:58:42 +02:00
Benjamin Canac
9e5f265f42 chore(CommandPalette): fix lint 2023-07-25 18:55:15 +02:00
Benjamin Canac
041f9e17de docs: fix lint 2023-07-25 18:55:05 +02:00
Benjamin Canac
df1e4a40ca chore(types): export accordion 2023-07-25 18:30:36 +02:00
MadDog4533
f005cbb95e docs(installation): add documentation for intellisense on SFC objects (#382)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-24 19:37:58 +02:00
henrycunh
d2a8a07a21 feat(FormGroup): add size prop and theme options (#391)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-24 19:36:58 +02:00
KeJun
b0440f81ce feat(CommandPalette): bind active and selected to scoped slot (#441) 2023-07-24 19:33:49 +02:00
Benjamin Canac
4f4a659ccc chore(types): remove partials 2023-07-20 18:11:11 +02:00
Benjamin Canac
beffde1849 docs(installation): move pnpm first 2023-07-20 13:06:00 +02:00
Marc-Olivier Castagnetti
959c968420 feat(SelectMenu): add value-attribute prop (#429)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-20 12:11:04 +02:00
Benjamin Canac
7cccbcfef8 fix(SelectMenu)!: invert ui and ui-select props (#432) 2023-07-20 12:00:23 +02:00
Benjamin Canac
df455db3ca feat(Notification): support html with title and description slots (#431) 2023-07-20 11:58:43 +02:00
Benjamin Canac
9fc786eda0 docs: and .env.example 2023-07-20 11:54:59 +02:00
Benjamin Canac
92a9ac0c85 docs: disabled payloadExtraction 2023-07-20 11:19:46 +02:00
Benjamin Canac
5a9910c2a3 docs: configure componentMeta with globalsOnly 2023-07-20 11:19:34 +02:00
Benjamin Canac
a0f485c49d docs(ComponentCard): improve boolean prop 2023-07-20 11:19:16 +02:00
Benjamin Canac
e92f341224 chore(Button): move some logic to LinkCustom 2023-07-20 11:19:03 +02:00
Benjamin Canac
c4e0e5a685 docs(deps): bump @nuxt-themes/ui-kit 2023-07-19 21:04:19 +02:00
Benjamin Canac
72ee359b73 chore(deps): bump nuxt to 3.6.5 2023-07-19 20:24:41 +02:00
Benjamin Canac
8a2b2604be chore(deps): fix @nuxt/content to 2.7.0 2023-07-19 18:39:47 +02:00
Benjamin Canac
d94c1b5b15 chore(deps): bump nuxt to 3.6.4 2023-07-19 18:29:30 +02:00
Benjamin Canac
b0486140e2 docs(SelectMenu): improve width of selects 2023-07-19 17:23:36 +02:00
Benjamin Canac
b7d9c08a1c docs(ComponentCard): fix booleans and padding 2023-07-19 17:23:25 +02:00
Benjamin Canac
dbcb02d0ea chore(playground): improve design 2023-07-19 16:56:52 +02:00
Benjamin Canac
208acca1e9 fix(module): ensure red color is safelisted for form elements
Resolves #423, resolves #373
2023-07-19 16:56:44 +02:00
Benjamin Canac
82e152be02 fix(LinkCustom): exact prop wasn't working
Resolves #417
2023-07-19 14:36:30 +02:00
Benjamin Canac
403899f11a chore: add playground 2023-07-19 13:21:39 +02:00
Benjamin Canac
914d156103 fix(LinkCustom): improve prop binding and prevent error with externals 2023-07-19 13:08:11 +02:00
Benjamin Canac
0f06b7c3fe chore(Button): use ULinkCustom with all NuxtLink props 2023-07-19 13:07:27 +02:00
Benjamin Canac
2c454b528a chore(Dropdown): extend types from NuxtLinkProps 2023-07-19 12:57:25 +02:00
Benjamin Canac
b28ae68945 chore(VerticalNavigation): extend types from NuxtLinkProps 2023-07-19 12:57:11 +02:00
Benjamin Canac
1171724791 chore(Dropdown): missing slot from link bind omit 2023-07-19 12:55:41 +02:00
Benjamin Canac
ad63c72d37 docs: add target="_blank" to social links 2023-07-19 12:49:48 +02:00
Benjamin Canac
d7f74d1868 docs: bump @nuxt-themes/ui-kit 2023-07-19 12:48:59 +02:00
Benjamin Canac
a0ffdce36c docs(VerticalNavigation): specify usage links 2023-07-19 12:48:46 +02:00
Benjamin Canac
a31e7dfa28 docs: add target: '_blank' to anchors 2023-07-18 17:51:34 +02:00
Benjamin Canac
c91ea60c84 docs: update Edge and New badges 2023-07-18 17:31:04 +02:00
Benjamin Canac
a11248fd33 chore(release): 2.6.0 2023-07-18 17:01:45 +02:00
Benjamin Canac
2fc579560e docs: update deps 2023-07-18 17:00:30 +02:00
Marc-Olivier Castagnetti
5f8fe8559f feat(SelectMenu): handle async search (#426)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-18 15:58:16 +02:00
John Puaoi Tech
46b444a3e0 fix(Table): fixed row deletion bug on deselect (#425)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-18 12:52:53 +02:00
Benjamin Canac
0ea1f310a9 docs: missing disabled in SelectExampleObjects 2023-07-18 12:51:55 +02:00
Benjamin Canac
b1825ffa7d chore(deps): bump 2023-07-17 20:24:34 +02:00
Benjamin Canac
7be48fd6f3 docs: enable experimental.payloadExtraction 2023-07-17 20:24:05 +02:00
9uenther
d292706967 feat(Table): add click event for the entire row (#353)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-17 14:51:57 +02:00
Benjamin Canac
31d571abb5 docs: migrate to @nuxthq/ui-kit (#405)
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
2023-07-17 14:49:50 +02:00
Benjamin Canac
2ec28e7cbd chore(Accordion): type for items
Resolves #412
2023-07-17 11:25:59 +02:00
Benjamin Canac
908235e8dd chore(VerticalNavigation): rename Link to VerticalNavigationLink type 2023-07-17 11:18:05 +02:00
Benjamin Canac
5a4d0e1097 chore(Dropdown): rename Item to DropdownItem type 2023-07-17 11:17:39 +02:00
Beautus
773a23f969 feat(Avatar)!: bind component attributes to img element (#421) 2023-07-17 10:52:06 +02:00
Jose Salazar
7554a10206 docs: explicit settings.json path (#411)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-17 10:34:47 +02:00
Robin Ambrosius
914cb03a5d docs(Select): disable single select options (#422) 2023-07-17 10:33:16 +02:00
Benjamin Canac
4afdd3bd64 chore(Notification): optional action click type 2023-07-13 16:08:41 +02:00
Benjamin Canac
05b8a22eec chore(Dropdown): add Item type 2023-07-12 18:44:09 +02:00
Benjamin Canac
7e08e5b024 chore(VerticalNavigation): add Link type 2023-07-12 18:43:45 +02:00
Benjamin Canac
d15e8163e7 feat(Slideover): add prevent-close prop 2023-07-12 16:00:00 +02:00
Benjamin Canac
2cc5c0d810 feat(Modal): add prevent-close prop
Resolves #303
2023-07-12 15:44:17 +02:00
Haytham A. Salama
e08263ff38 docs(Dropdown): add an example item slot (#304)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-12 14:52:57 +02:00
David De Sloovere
57c3023909 docs: add nuxt.config.ts ui entry example (#407)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-12 14:12:20 +02:00
Benjamin Canac
b874bb5061 chore(deps): bump 2023-07-10 10:42:59 +02:00
Benjamin Canac
cbe2b1bfb8 fix(SelectMenu): missing appear on transition
Resolves #400
2023-07-10 10:40:15 +02:00
Benjamin Canac
3b432fde7a chore(Accordion): add transition to trailing icon 2023-07-05 11:43:15 +02:00
HylaruCoder
a79c165eee fix(Range): progress style (#385) 2023-07-04 20:03:12 +02:00
Benjamin Canac
cd2b671075 chore(deps): bump 2023-07-04 15:24:50 +02:00
Benjamin Canac
3de6b349d8 fix(Accordion): missing ref import from vue 2023-07-04 15:21:59 +02:00
Haytham A. Salama
eaf0043da6 fix(Accordion): solve the shift between buttons when they are opened (#379)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-03 17:20:08 +02:00
Dominik Opyd
b78fcf91a4 feat(Accordion): add multiple prop and close others by default (#364)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-07-03 14:38:13 +02:00
Benjamin Canac
e0f1798f07 docs(installation): add example for intellisense in ui prop 2023-07-03 12:35:43 +02:00
Benjamin Canac
e4233718a6 docs: improve mobile design 2023-06-29 18:01:21 +02:00
Benjamin Canac
a11abd6347 docs: disable search modal transition on mobile 2023-06-29 17:49:02 +02:00
Benjamin Canac
db346652b8 fix(Modal): disabling transition prop had no effect 2023-06-29 17:48:44 +02:00
Benjamin Canac
52b614fcb0 chore(Table): missing types 2023-06-29 17:42:49 +02:00
Benjamin Canac
5dffa868b1 feat(Table): allow columns class customization
Resolves #366
2023-06-29 17:42:34 +02:00
Benjamin Canac
cbd8cc49fb docs: fix toc on mobile 2023-06-29 16:55:30 +02:00
Benjamin Canac
f3c6f83232 chore(Accordion): transition on height 2023-06-29 16:48:46 +02:00
Benjamin Canac
80a9738490 fix(ButtonGroup): err when no props on buttons
Resolves #360
2023-06-28 15:10:46 +02:00
Benjamin Canac
54b6f734a3 docs(Accordion): headlessui label link as Disclosure 2023-06-28 12:19:21 +02:00
Benjamin Canac
41a5238579 fix(Button): missing disabled state on some variants 2023-06-28 11:04:11 +02:00
Benjamin Canac
c92dc980c9 fix(Range): disabled thumb opacity 2023-06-28 10:55:37 +02:00
Haytham A. Salama
2451541d7d chore: add lint:fix command (#347) 2023-06-27 22:20:25 +02:00
Benjamin Canac
103a20897c chore(README): docs link as https 2023-06-27 21:55:01 +02:00
Haytham A. Salama
e50f377b94 feat(Accordion): new component (#301)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-06-27 21:54:05 +02:00
Benjamin Canac
0bfe4b01bd docs(examples): add pagination rtl github link 2023-06-27 17:37:04 +02:00
Benjamin Canac
80e09df342 docs(examples): update rtl support 2023-06-27 17:36:15 +02:00
Benjamin Canac
7a2845d75e docs: update Edge and New badges 2023-06-27 17:29:00 +02:00
Benjamin Canac
10a9a3ea2b chore(release): 2.5.0 2023-06-27 17:05:34 +02:00
Benjamin Canac
1ff11ac1a3 feat(Table): reset sort on third click
Resolves #300
2023-06-27 15:32:19 +02:00
Benjamin Canac
07b27a228d fix(Table): default sortButton icon
Fixes 0f3fe0d54e
2023-06-27 15:31:31 +02:00
Benjamin Canac
6be9290f68 fix(FormGroup): prevent overriding color of children
Resolves #352
2023-06-27 15:17:53 +02:00
Benjamin Canac
0f3fe0d54e fix(Table): missing default sort icon when overriding sort-button prop 2023-06-27 15:11:32 +02:00
Benjamin Canac
0815f688ed chore(deps): bump 2023-06-27 14:34:07 +02:00
Benjamin Canac
8399ffe1f1 docs(installation): add IntelliSense section 2023-06-27 13:14:07 +02:00
Haytham A. Salama
91f6103719 docs: add support for RTL and LTR (#348) 2023-06-27 12:42:41 +02:00
Haytham A. Salama
278a1ea93c chore: improve RTL support (#334)
Co-authored-by: Hassan Kadhim <hassan57905@gmail.com>
2023-06-23 23:19:28 +02:00
Benjamin Canac
3f27c0ccae chore(deps): revert node engines bump 2023-06-23 22:43:37 +02:00
renovate[bot]
5a2f46683a chore(deps): update all non-major dependencies (#136)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-23 22:36:35 +02:00
Benjamin Canac
c8a0005253 chore(github): use pnpm 8 2023-06-23 21:35:18 +02:00
Haytham A. Salama
881f3547f2 docs(ComponentCard): preview component only (#302) 2023-06-22 18:38:04 +02:00
Benjamin Canac
8c99b871e2 docs(Avatar): add edge badge on chip-text prop 2023-06-22 14:53:45 +02:00
Benjamin Canac
41b85d50a8 fix(components): prefix @headlessui/vue components
Resolves #315
2023-06-22 13:01:58 +02:00
JPB
759af058df feat(Avatar): handle chipText (#306)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-06-22 12:24:56 +02:00
Benjamin Canac
48636363d1 chore(release-it): add header to changelog 2023-06-21 19:09:11 +02:00
Hassan Kadhim
4ea114a4d6 feat: RTL support (#320) 2023-06-21 19:09:11 +02:00
Benjamin Canac
ad2349e570 chore(deps): bump 2023-06-21 19:09:11 +02:00
Haytham A. Salama
ffb312d34d feat(Radio/Checkbox/Toggle)!: handle color prop for form elements (#323)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-06-21 19:09:11 +02:00
TomSmith27
97a1c86433 feat(Range): new component (#290)
Co-authored-by: Tom Smith <tom.smith2711@gmail.com>
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: Tom Smith <tom.smith@qunifi.com>
2023-06-21 19:09:11 +02:00
Benjamin Canac
c2ebb0416e fix(Toggle): add opacity-50 when disabled 2023-06-21 19:09:01 +02:00
Alex Liu
e1548062c7 chore(utils): types (#321) 2023-06-21 19:09:01 +02:00
Benjamin Canac
9cd73aa49d fix(defineShortcuts): missing useDebounceFn import 2023-06-21 19:09:01 +02:00
Benjamin Canac
a880379480 fix(defineShortcuts): missing ref import 2023-06-21 19:09:01 +02:00
TomSmith27
71c2465d7b feat(Table): pass row index to table cell (#291)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-06-21 19:08:51 +02:00
Benjamin Canac
0272307f28 docs: improve notification page 2023-06-21 19:08:51 +02:00
Benjamin Canac
2ea358703e docs: fix focus on raycast command palette example 2023-06-21 19:08:51 +02:00
Benjamin Canac
c458f388bb docs: improve with examples 2023-06-21 19:08:51 +02:00
Benjamin Canac
1b03b8a531 fix(Tooltip): add color in config 2023-06-21 19:08:40 +02:00
Benjamin Canac
e2f7d82d62 docs: disable documentDriven mode 2023-06-21 19:08:40 +02:00
Benjamin Canac
c8e6ed8df9 chore(deps): bump 2023-06-21 19:08:40 +02:00
Sylvain Marroufin
a67f691a00 feat(defineShortcuts): chained shortcuts + docs update (#282)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-06-21 19:08:32 +02:00
Benjamin Canac
dfccbcf1a9 docs: add missing icons to override in theming 2023-06-21 17:59:30 +02:00
Benjamin Canac
38ecb088ec docs: improve theming dark mode section 2023-06-21 17:59:30 +02:00
Benjamin Canac
8236b18d0d docs: edge badges to new following 2.4.0 2023-06-21 17:59:30 +02:00
Benjamin Canac
1e05b0f072 chore(release): 2.4.1 2023-06-21 17:53:38 +02:00
Benjamin Canac
87e98f038a chore(deps): migrate from standard-version to release-it 2023-06-21 17:53:21 +02:00
Benjamin Canac
f7e2082983 fix(module): safelist regex when a : was present before color
Also prevents parsing colors already safelisted initially.
2023-06-21 17:42:02 +02:00
Benjamin Canac
f719111abb fix(module): safelist aliases for input
To make it work when doing `<USelect color="yellow" />` for example
2023-06-21 17:41:51 +02:00
Benjamin Canac
3bac0874f1 fix(Radio/Checkbox): remove legacy custom 2023-06-21 17:41:39 +02:00
Selemondev
457b7a9fb7 fix(forms): precise type assertion for onInput event handler (#293)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-06-21 17:41:15 +02:00
Benjamin Canac
4023fbec29 fix(module): let tailwindcss viewer enabled by default
Resolves #292
2023-06-21 17:40:54 +02:00
Benjamin Canac
a274a0cdbb chore(release): 2.4.0 2023-06-13 17:42:38 +02:00
Benjamin Canac
717a514451 fix(SelectMenu): input focus after be5f352 2023-06-13 17:34:34 +02:00
9uenther
786d7765f5 fix(Table): colspan of empty and loading is wrong when selection enabled (#284) 2023-06-13 17:06:06 +02:00
Benjamin Canac
a733c13866 fix(module): hardcode gray safelist instead of deduplicate complex logic 2023-06-13 16:31:13 +02:00
Benjamin Canac
88c1930845 fix(module): transform vue files to detect multi-line components 2023-06-13 15:53:02 +02:00
Benjamin Canac
c3f5c44461 docs: improve theming colors safelisting section 2023-06-13 15:51:05 +02:00
Benjamin Canac
2cfa1f8d03 fix(module): deduplicate default safelist as components may share same rules 2023-06-13 15:27:25 +02:00
Benjamin Canac
5f7de8e595 docs: only safelist valid colors 2023-06-13 15:26:45 +02:00
Benjamin Canac
cdce519742 fix(module): only safelist known colors 2023-06-13 14:52:56 +02:00
Benjamin Canac
ccd9ca5106 fix(module): prevent safelisting dynamic :color variables 2023-06-13 14:52:32 +02:00
Benjamin Canac
9031742acc chore(deps): bump 2023-06-13 14:52:04 +02:00
Benjamin Canac
9559d0b3bc fix(deps): move @tailwindcss/container-queries to dependencies 2023-06-13 12:27:17 +02:00
Benjamin Canac
0e6550ec45 chore(deps): bump 2023-06-13 12:25:37 +02:00
Benjamin Canac
20fa4d2317 feat(module): smart safelisting (#268)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2023-06-13 12:18:38 +02:00
Benjamin Canac
e12e9740c9 fix(forms)!: bind $attrs to elements (#279) 2023-06-13 11:35:05 +02:00
Benjamin Canac
cbc8ef13cc fix(CommandPalette): input focus after be5f352 2023-06-12 14:56:13 +02:00
Haytham A. Salama
652af93f5c feat(CommandPalette): handle empty-state (#271)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-06-12 14:54:34 +02:00
Benjamin Canac
b4a96a8b01 chore(Select)!: rename text-attribute to option-attribute and defaults to label 2023-06-12 14:42:33 +02:00
Benjamin Canac
bc81d45b2b docs: improve forms usage with examples 2023-06-12 14:42:33 +02:00
Benjamin Canac
429791dab0 fix(Radio/Checkbox): split preset as indeterminate is checkbox only 2023-06-12 14:42:33 +02:00
Benjamin Canac
fe833eb2b2 fix(Toggle): missing disabled prop 2023-06-12 14:42:17 +02:00
Benjamin Canac
be5f352296 fix(module): use @tailwindcss/forms class strategy (#278) 2023-06-12 14:27:08 +02:00
Haytham A. Salama
47415322ea feat(table): add loading state (#259)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-06-12 14:26:29 +02:00
Benjamin Canac
d20983d355 docs: add Edge badge for next release features
Resolves #277
2023-06-12 10:53:06 +02:00
Sylvain Marroufin
f0b24ba25d feat(Pagination): new component (#257)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
Co-authored-by: Haytham A. Salama <haythamasalama@gmail.com>
2023-06-09 18:12:40 +02:00
Haytham A. Salama
f7a34c8fee feat(table): add slot for empty state (#260)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-06-09 17:06:42 +02:00
Benjamin Canac
4e5e614eb4 docs: notification color default to primary 2023-06-09 14:32:53 +02:00
Benjamin Canac
07f7855a26 fix(Notification): class priority for icon color 2023-06-09 11:40:46 +02:00
Benjamin Canac
57f95102e2 chore: add @tailwindcss/container-queries official plugin 2023-06-09 11:39:46 +02:00
Benjamin Canac
3f8d927438 chore(Dropdown): handle height for overflow 2023-06-08 12:55:38 +02:00
Benjamin Canac
d91c0bb894 fix(ButtonGroup): use -space-x-px on wrapper 2023-06-06 15:58:24 +02:00
Benjamin Canac
a6176720c7 fix(ButtonGroup): invalid size validator 2023-06-06 14:59:18 +02:00
Benjamin Canac
a6903df58f fix(Button): same size when no label + uniformize form elements 2023-06-06 12:30:03 +02:00
Benjamin Canac
19b149518e docs: add space between header icons 2023-06-06 12:26:34 +02:00
Benjamin Canac
c66a99a60f docs: only display links section in header when needed 2023-06-06 11:48:16 +02:00
Benjamin Canac
4a7c6035b6 chore(deps): bump 2023-06-06 10:33:17 +02:00
Benjamin Canac
207444fdea fix(forms): padded prop with p-0 class 2023-06-06 10:33:11 +02:00
Benjamin Canac
60eea0e46b chore(release): 2.3.0 2023-06-05 12:12:48 +02:00
Benjamin Canac
5e50eb9eb8 fix: use cloneVNode when altering props in render functions
Resolves #252

https://vuejs.org/api/render-function.html#clonevnode
2023-06-05 11:17:31 +02:00
Dominik Opyd
af65683123 docs(github): support for various file extensions (#250) 2023-06-02 11:35:31 +02:00
Benjamin Canac
2c673f5377 fix(CommandPalette): override of closeButton and emptyState props 2023-06-01 17:15:04 +02:00
Benjamin Canac
192b0e6301 fix(Table): override of sortButton and emptyState props 2023-06-01 17:14:45 +02:00
Benjamin Canac
71edb91c4f fix(Avatar): placeholder font size 2023-06-01 16:47:23 +02:00
Benjamin Canac
f9b935f5f5 fix(Badge): remove console.log in validator 2023-06-01 16:24:19 +02:00
Benjamin Canac
23833e92cb chore(Badge): handle color override like buttons 2023-06-01 16:06:07 +02:00
Benjamin Canac
241df7f05e docs: fix toc scroll when duplicated names 2023-06-01 15:41:23 +02:00
Benjamin Canac
130a1f2c54 docs: improve slots sections 2023-06-01 15:29:02 +02:00
Benjamin Canac
c63981e31c docs: :component-card now handle slots 2023-06-01 15:28:39 +02:00
Benjamin Canac
687f0c6f63 docs: improve inline code blocks inside Alert component 2023-06-01 15:28:12 +02:00
Benjamin Canac
f59a92ca15 chore(Input)!: move pointer class inside its own preset class 2023-06-01 15:27:53 +02:00
Benjamin Canac
01fa85c7a3 fix(defineShortcuts): err with input autocomplete that triggers keydown 2023-06-01 15:26:46 +02:00
Benjamin Canac
3434bc7f2b chore(deps): bump @nuxthq/studio 2023-06-01 11:43:47 +02:00
Benjamin Canac
9b1aacb1da docs: move slots sections as h2 2023-06-01 11:39:07 +02:00
Benjamin Canac
8951923a11 fix(SelectMenu): disable on loading 2023-06-01 11:08:16 +02:00
Benjamin Canac
e200d4cc74 chore(package): remove preinstall script 2023-06-01 10:49:36 +02:00
Benjamin Canac
e05619f8c8 chore: add leading and trailing slots
Resolves #246
2023-05-31 23:53:31 +02:00
Benjamin Canac
5ea43ab4e4 chore: uniformize icons in Button / Input / Select / SelectMenu
Also adds `loading` to `Select` and `SelectMenu`
2023-05-31 23:30:52 +02:00
Benjamin Canac
ba44c58a80 chore(SelectMenu)!: remove inline-flex from wrapper to behave like other form elements 2023-05-31 23:22:58 +02:00
Benjamin Canac
490025a981 docs: add Table icons in theming icons section 2023-05-31 18:31:15 +02:00
Benjamin Canac
2966373a86 chore(Table): handle empty-state
Resolves #243
2023-05-31 18:30:49 +02:00
Sylvain Marroufin
8bdb8c45f7 chore(Dropdown): hover mode with padding instead of offset + improve docs (#242)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-05-31 14:28:14 +02:00
Sylvain Marroufin
9827de0b58 docs(textarea): improve props documentation (#241) 2023-05-31 12:49:47 +02:00
Benjamin Canac
23f01fde41 chore(Table): rename preset container to base 2023-05-31 12:11:28 +02:00
Benjamin Canac
f680318e44 docs: fix overflow in table page
Fixes #244
2023-05-31 12:11:12 +02:00
Benjamin Canac
cd2d1eb1fa docs(table): add alert on sort prop without sortable 2023-05-30 18:06:03 +02:00
Benjamin Canac
3ba0aedcba fix(Table): type sort prop 2023-05-30 18:03:24 +02:00
Benjamin Canac
40b6884424 chore(Table): handle default sort and default column direction 2023-05-30 17:59:30 +02:00
Benjamin Canac
a2638c6057 chore(Table): split container divide 2023-05-30 16:23:17 +02:00
Benjamin Canac
6bd5142a37 fix(Table): add missing text-left in th.base 2023-05-30 16:21:54 +02:00
Benjamin Canac
bc1d653857 chore(Table): split preset for th and td 2023-05-30 16:17:17 +02:00
Benjamin Canac
6c215e07a6 chore(deps): bump 2023-05-30 12:18:05 +02:00
Benjamin Canac
272af9d24c fix(Table): missing ref import from vue 2023-05-30 12:17:59 +02:00
Benjamin Canac
cce000ab2b feat: add Table component (#237) 2023-05-30 12:13:57 +02:00
Benjamin Canac
4a99d6a7bb docs: fix notification preset for closeButton and actionButton 2023-05-29 22:45:33 +02:00
Benjamin Canac
4458656be5 chore(Notification)!: rename to closeButton and actionButton for consistency 2023-05-29 21:59:59 +02:00
Benjamin Canac
daca46371c chore(CommandPalette)!: rename props to emptyState and closeButton for consistency 2023-05-29 21:55:08 +02:00
Benjamin Canac
8ee2ac10e7 chore(Toggle)!: rename icons to onIcon / offIcon for consistency 2023-05-29 21:38:51 +02:00
Benjamin Canac
1ebaa5aa00 fix(Button): invalid padding when using square prop 2023-05-29 21:36:28 +02:00
Benjamin Canac
cb43548305 chore(SelectMenu): handle multiple default display + specific placeholder 2023-05-29 11:52:02 +02:00
Benjamin Canac
360084af7c chore(Toggle): improve component
- allow `iconOn` / `iconOff` default values from preset
- `bg-gray-900` on dark mode inside of `bg-white`
- added `name` prop for form control
2023-05-27 22:27:31 +02:00
Benjamin Canac
0af5184c70 chore(release): 2.2.1 2023-05-27 12:27:53 +02:00
Benjamin Canac
44c3e2c46a chore(forms): remove required on Input, Select and Textarea name
Resolves #236
2023-05-27 12:03:29 +02:00
Benjamin Canac
a96dc19215 fix(FormGroup): missing h import from vue
Resolves #236
2023-05-27 12:02:51 +02:00
Benjamin Canac
aa881a8d00 chore(release): 2.2.0 2023-05-26 23:19:53 +02:00
Benjamin Canac
08413f198b scripts: update to pnpm 2023-05-26 22:46:17 +02:00
Benjamin Canac
75ab1d2ed5 chore(deps): bump 2023-05-26 22:25:58 +02:00
Sumit Kolhe
2d6ce654f4 docs: add close button to Slideover example (#211)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-05-26 22:20:34 +02:00
Benjamin Canac
9ce531a06f feat!: handle color states on form elements (#234) 2023-05-26 22:07:49 +02:00
Benjamin Canac
1a9dc5c980 fix(Notification): remove default color on icon 2023-05-26 18:28:52 +02:00
Benjamin Canac
589f86ef1b chore(Avatar): dark variant for chip background color 2023-05-26 18:28:32 +02:00
Benjamin Canac
1b61ec72e2 chore(Notification)!: rename progressColor to color and style icon
This also removes `progressVariant` prop
2023-05-26 18:03:54 +02:00
Benjamin Canac
1f22f84360 chore(Avatar)!: remove chipVariant prop 2023-05-26 18:02:48 +02:00
Benjamin Canac
2c6db975f9 chore(deps): switch to pnpm (#228) 2023-05-26 17:41:07 +02:00
Benjamin Canac
b7099aa0d3 chore(SelectMenu): add searchablePlaceholder prop
Resolves #231
2023-05-26 15:02:21 +02:00
Benjamin Canac
36b0869bc2 docs: fix prev card gap on first page 2023-05-23 16:57:42 +02:00
Benjamin Canac
28167e41ff docs: add VerticalNavigation tailwind example 2023-05-23 15:27:13 +02:00
Benjamin Canac
19923cbf1e chore(VerticalNavigation)!: split preset 2023-05-23 15:26:47 +02:00
Benjamin Canac
1210e99ec1 chore(VerticalNavigation): improve types import 2023-05-23 15:25:28 +02:00
Benjamin Canac
fc894bc1ae chore(Dropdown): improve types import 2023-05-23 15:25:12 +02:00
Benjamin Canac
9491ac7172 chore(CommandPalette): improve types import 2023-05-23 15:25:00 +02:00
Benjamin Canac
32dc2264d8 chore(types): export button 2023-05-23 15:24:41 +02:00
Benjamin Canac
45ba3b26da chore(Notification): improve types 2023-05-23 15:24:32 +02:00
Benjamin Canac
6d3309c42d chore(Notification): move padding to app.config 2023-05-23 11:25:56 +02:00
Benjamin Canac
530b85136d docs: handle color mode in volta embed 2023-05-23 11:11:19 +02:00
Benjamin Canac
cb9ed9ad3f chore(Button): inject NuxtLink in components 2023-05-22 19:05:39 +02:00
Benjamin Canac
524e220914 chore(VerticalNavigation): improve binds & types 2023-05-22 19:05:17 +02:00
Benjamin Canac
e3e6ef27a2 docs: improve Dropdown example with click and disabled 2023-05-22 19:04:39 +02:00
Benjamin Canac
55f115f9fe chore(Dropdown): use ULinkCustom + improve item binds & types
Fixes #215
2023-05-22 19:04:18 +02:00
Benjamin Canac
bdaf2dbbd4 chore(CommandPalette): handle loading state (#221) 2023-05-22 16:00:31 +02:00
Benjamin Canac
e7eea067b2 chore(Notification): add progressColor and progressVariant props (#219)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
2023-05-22 15:01:19 +02:00
Benjamin Canac
a56dbeab35 fix(Radio/Checkbox): remove ring offset on focus 2023-05-22 13:41:56 +02:00
Benjamin Canac
570b82d1e7 chore(Avatar): allow default value for chipColor through app.config.ts 2023-05-22 12:24:17 +02:00
Harry Yep
b5189c0c07 docs: LogoLabs not shown (#216) 2023-05-21 23:01:08 +02:00
Sébastien Chopin
8a0a5d8ba0 docs: pre-render component-meta routes 2023-05-20 19:13:58 +02:00
Sébastien Chopin
d3e5f4e15d docs: remove console.log 2023-05-20 18:53:32 +02:00
Sébastien Chopin
5a592b7ee0 docs: use CF rules for redirect 2023-05-20 18:49:39 +02:00
Sébastien Chopin
43787eca74 docs: move vercel.json to public dir 2023-05-20 18:41:07 +02:00
Sébastien Chopin
595ed9fb46 docs: add vercel redirect 2023-05-20 18:38:19 +02:00
Sébastien Chopin
5c4ab26d25 docs: support ssg 2023-05-20 18:31:56 +02:00
Sébastien Chopin
2030f24a47 docs: update logo on aside on mobile 2023-05-20 13:18:19 +02:00
Benjamin Canac
6eda322496 chore(VerticalNavigation): links badge type as number
Resolves #206
2023-05-19 15:55:18 +02:00
Benjamin Canac
318f8b2f08 docs: improve theming colors section 2023-05-19 15:00:39 +02:00
Benjamin Canac
dfab900562 docs: add badge in VerticalNavigation example 2023-05-19 14:51:31 +02:00
Benjamin Canac
d2ee5058f8 fix(VerticalNavigation): badge display
Resolves #205
2023-05-19 14:51:16 +02:00
Benjamin Canac
e358183165 docs: getting started title on index 2023-05-19 13:01:34 +02:00
Benjamin Canac
26579538f5 docs: prevent Alert text hover without link 2023-05-19 13:00:50 +02:00
Benjamin Canac
f99b9e283a chore(release): 2.1.0 2023-05-19 12:25:37 +02:00
Benjamin Canac
246449b328 fix(module): add .mjs extension to tailwind content when builded
Resolves #172
2023-05-19 12:22:05 +02:00
Benjamin Canac
ea740bf10a fix(Textarea): expose ref 2023-05-19 12:15:40 +02:00
Benjamin Canac
2ded24bec9 fix(Input): expose ref 2023-05-19 12:15:33 +02:00
Benjamin Canac
180a1df374 chore(CommandPalette): remove useless ref 2023-05-19 12:13:32 +02:00
Benjamin Canac
b9edf31aed chore(Button): remove useless ref 2023-05-19 12:12:59 +02:00
Benjamin Canac
526f84692e docs: exclude label prop on button icon section 2023-05-19 11:56:29 +02:00
Benjamin Canac
d66f4c5e46 docs: reduce gap on prev next card 2023-05-19 11:56:17 +02:00
Benjamin Canac
ec3fd88472 docs: rename xxs to 2xs in button group section
Resolves #203
2023-05-19 11:50:21 +02:00
Benjamin Canac
0b097352b4 docs: theming icons with all param 2023-05-19 11:28:52 +02:00
Benjamin Canac
85b10ba4ee chore(module): handle icons as string 2023-05-19 11:28:24 +02:00
Benjamin Canac
4ac0e0c481 docs: update edit on github link icon 2023-05-19 11:22:02 +02:00
Benjamin Canac
617567d6e5 chore(SelectMenu): empty option shorter text 2023-05-19 11:20:30 +02:00
Sébastien Chopin
e59fe42cc9 docs: improve page descriptions and prev/next (#184)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-05-19 10:33:09 +02:00
Sébastien Chopin
1743ea91d5 chore(Notifications): simplify how to position them (#190)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-05-19 10:01:43 +02:00
BoBruce
fa59ea9d83 docs: fix copy button overlap code content (#194) 2023-05-18 17:57:35 +02:00
Benjamin Canac
efb9e8a263 docs: add _blank target on stackblitz link 2023-05-17 17:46:59 +02:00
Sébastien Chopin
0931372157 docs(footer): fix when page is not defined 2023-05-17 17:17:22 +02:00
Arash
7f00ec6c3d fix(DocsPageHeader): github component link (#182) 2023-05-17 17:00:36 +02:00
Benjamin Canac
2bdeb04f56 docs: add CommandPalette async search example 2023-05-17 15:13:34 +02:00
Benjamin Canac
c834f401cd docs: lint on page footer button 2023-05-17 15:03:48 +02:00
Benjamin Canac
421f3bd2be chore(github): add stackblitz link in bug report issue template 2023-05-17 15:00:50 +02:00
Benjamin Canac
e63d5b74fc docs: add stackblitz playground link in installation page 2023-05-17 14:57:07 +02:00
Benjamin Canac
9ffcef9cd0 docs: add footer with nuxtlabs and github edit links 2023-05-17 14:56:54 +02:00
Benjamin Canac
1aa8376d4f docs: add Select component description 2023-05-17 13:12:11 +02:00
Benjamin Canac
94f24da723 docs: volta embed url with gray and primary 2023-05-17 13:08:01 +02:00
Sébastien Chopin
44457a0530 chore: fix node engine version (#176)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-05-17 12:46:41 +02:00
ciaasteczkowy
3fa10aa4eb fix(ButtonGroup/AvatarGroup): allow v-for (#173)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-05-17 12:46:26 +02:00
Benjamin Canac
ead46f6798 chore(deps): use @nuxt/eslint-config 2023-05-17 12:30:03 +02:00
Benjamin Canac
1bfcf31964 docs: add roadmap page with volta board 2023-05-17 12:16:52 +02:00
Benjamin Canac
b795f0f65b docs: handle layout without toc 2023-05-17 12:13:24 +02:00
Benjamin Canac
d93e995298 chore(colors): prevent err and add warning when specific colors dont exist 2023-05-17 11:02:29 +02:00
Benjamin Canac
00641b1439 docs: add warning to prevent double module installation 2023-05-17 10:59:48 +02:00
Benjamin Canac
07197c531e chore(github): add issue templates 2023-05-17 10:05:23 +02:00
Žan Fras
4ac9a613e3 docs: update icon theming installation commands (#166) 2023-05-17 09:54:17 +02:00
Manaus
5336436da0 docs: use preferred naming for Tailwind CSS (#168) 2023-05-17 09:52:44 +02:00
Benjamin Canac
7588eca148 docs: use a single svg icon 2023-05-16 17:33:31 +02:00
Sébastien Chopin
c0a4b28f54 docs: add badges 2023-05-16 16:52:35 +02:00
Benjamin Canac
157e34f2c0 docs: put DocsSearch on client only 2023-05-16 16:48:49 +02:00
Benjamin Canac
6675bcf396 docs: add favicon 2023-05-16 16:48:48 +02:00
Sébastien Chopin
3d43fc7a32 docs: Update README.md 2023-05-16 16:47:00 +02:00
Benjamin Canac
b3b349aab7 docs: improve icons installations with all package managers 2023-05-16 16:15:55 +02:00
Benjamin Canac
ab67659412 docs: fix command palette examples links 2023-05-16 15:23:29 +02:00
Benjamin Canac
c090a9e9cd docs: improve seo 2023-05-16 15:20:58 +02:00
Benjamin Canac
5e3357b696 docs: add social-preview 2023-05-16 15:20:48 +02:00
Benjamin Canac
11941bd581 chore(module): default primary to green 2023-05-16 15:18:12 +02:00
Benjamin Canac
036658b6de chore(readme): update 2023-05-16 15:17:54 +02:00
Benjamin Canac
86dd6092f3 docs: add @nuxthq/studio and @nuxt/devtools 2023-05-16 15:17:04 +02:00
Benjamin Canac
cba95de72b chore(Container): add as prop 2023-05-16 12:57:35 +02:00
Benjamin Canac
4d8dbfb912 chore(Card): add as prop 2023-05-16 12:57:35 +02:00
Benjamin Canac
703fdef9bd fix(app.config): trailing space 2023-05-16 12:57:35 +02:00
Sylvain Marroufin
c78d5ab0d3 docs(shortcuts): add config details (#155) 2023-05-16 12:48:10 +02:00
Benjamin Canac
10f3c0c271 docs: improve index description 2023-05-16 12:07:05 +02:00
Benjamin Canac
370c31296a chore(license): rename to md 2023-05-16 12:03:05 +02:00
Benjamin Canac
f5b57bb3c8 chore(license): add 2023-05-16 12:02:04 +02:00
Benjamin Canac
8286d15d1e chore(readme): improve 2023-05-16 12:01:58 +02:00
Benjamin Canac
f528a5ebc0 docs: move dark mode in theming 2023-05-16 12:00:33 +02:00
Benjamin Canac
5fea0eb8d5 chore(deps): bump @nuxtjs/tailwindcss 2023-05-15 19:02:38 +02:00
Benjamin Canac
5ede417bd8 chore(deps): bump 2023-05-15 14:14:19 +02:00
Benjamin Canac
066b239299 chore(release): 2.0.4 2023-05-15 14:08:04 +02:00
Benjamin Canac
97da6c6343 chore(SelectMenu): add required input only when needed 2023-05-15 14:07:41 +02:00
Benjamin Canac
6d9e4d424b docs: improve alert code blocks on light mode 2023-05-15 14:07:23 +02:00
Benjamin Canac
52192a4ac0 docs: add input group section 2023-05-15 14:07:14 +02:00
Benjamin Canac
a6c53e4d20 chore(app.config): improve forms required 2023-05-15 14:07:02 +02:00
Benjamin Canac
e8b46540d8 fix(SelectMenu): add missing inline-flex on wrapper 2023-05-15 12:15:11 +02:00
Benjamin Canac
a01e0279a9 chore(release): 2.0.3 2023-05-15 11:22:09 +02:00
Benjamin Canac
ccbf3e78b1 docs: typo in button 2023-05-15 11:21:51 +02:00
Benjamin Canac
dcc0a6b3a9 docs: minor improvements 2023-05-14 17:07:11 +02:00
Benjamin Canac
bb4cd0b1b9 docs: add CommandPalette full-text search section 2023-05-14 17:06:31 +02:00
Benjamin Canac
ae02f23a8c chore(Kbd): usage with value prop 2023-05-14 17:06:08 +02:00
Benjamin Canac
8caa78819a chore(Skeleton): new component 2023-05-14 17:05:38 +02:00
Benjamin Canac
6fd5a70ac9 docs: improve ContextMenu example 2023-05-14 15:08:16 +02:00
Benjamin Canac
cfcd2f1371 docs: uniformize isOpen in examples 2023-05-14 15:05:33 +02:00
Benjamin Canac
c47f5e6a68 docs: improve forms cards 2023-05-14 15:04:56 +02:00
Benjamin Canac
37f1a1b5ad docs: lots of improvements 2023-05-13 23:22:07 +02:00
Benjamin Canac
0c2a5d98cf chore(SelectMenu): use trailingIcon default from Select for consistency 2023-05-13 23:21:32 +02:00
Benjamin Canac
aabf1dd9eb chore(release): 2.0.2 2023-05-11 17:12:50 +02:00
Benjamin Canac
c7c78cb47b fix(LinkCustom): handle button when no to prop 2023-05-11 17:03:02 +02:00
Benjamin Canac
3335a6a32c docs: put back router.options.ts 2023-05-11 16:51:30 +02:00
Benjamin Canac
15f9db9420 chore(release): 2.0.1 2023-05-11 16:26:11 +02:00
Benjamin Canac
aacb7e9841 fix(CommandPalette): put back searchable on v-show to input ref always exists 2023-05-11 15:45:33 +02:00
Benjamin Canac
3ded73194d docs: improve command palettes 2023-05-11 15:24:26 +02:00
Benjamin Canac
82adedf764 docs: improve search 2023-05-11 15:18:01 +02:00
Benjamin Canac
192bf4c375 fix(CommandPalette): expose input ref to template 2023-05-11 15:17:47 +02:00
Benjamin Canac
59fc14e93f chore(SelectMenu): add prop for trailingIcon and fix padding when selected 2023-05-11 14:28:58 +02:00
Benjamin Canac
0d83366427 chore(Select): add prop for trailingIcon 2023-05-11 14:21:30 +02:00
Benjamin Canac
cc65afafbd chore(CommandPaletteGroup): rename ui.group.command.selected.icon to ui.group.command.selectedIcon.base 2023-05-11 14:21:01 +02:00
Benjamin Canac
c7e0cb40e7 chore(CommandPaletteGroup): style <mark> with primary 2023-05-11 14:18:14 +02:00
Benjamin Canac
24434dc561 docs: default value in select menu basic example 2023-05-11 14:17:28 +02:00
Benjamin Canac
6c35ee9270 docs: typo in context-menu 2023-05-11 14:17:12 +02:00
Benjamin Canac
950b341696 docs: prevent aside to scroll up on page change 2023-05-11 14:17:01 +02:00
Benjamin Canac
24e7109959 chore(deps): bump 2023-05-10 18:35:24 +02:00
Benjamin Canac
be96824323 chore(SelectMenu): improve option.selected preset 2023-05-10 18:33:43 +02:00
Benjamin Canac
d5471f4d37 fix(Toggle): wrong icon-off positioning 2023-05-10 18:14:21 +02:00
Benjamin Canac
00b444b3eb chore: rename spacing to padding 2023-05-10 16:24:28 +02:00
Benjamin Canac
76a0d61a0f fix(colors): missing useNuxtApp import 2023-05-10 12:39:08 +02:00
Benjamin Canac
6d79548ee8 chore(Slideover): default side to right 2023-05-10 12:27:20 +02:00
Benjamin Canac
f48ead6faf fix(docs): sticky search button z-index 2023-05-10 11:59:30 +02:00
Benjamin Canac
fd4c80acd4 fix(Avatar): gray missing for chipColor 2023-05-10 11:59:16 +02:00
Benjamin Canac
3df917ae70 chore(deps): fix vue-tsc version to 1.6.3 2023-05-10 00:22:10 +02:00
Benjamin Canac
19a34c44da chore(plugins): move hexToRgb fn to utils 2023-05-10 00:19:27 +02:00
Benjamin Canac
365c843fc0 chore(SelectMenu): put back required input 2023-05-10 00:18:14 +02:00
Benjamin Canac
cd430a4cad fix(Icon): missing import 2023-05-10 00:17:20 +02:00
Benjamin Canac
32ada0b28b chore(deps): bump @nuxtjs/tailwindcss 2023-05-09 18:55:28 +02:00
Benjamin Canac
034a95d3c9 fix(VerticalNavigation): improve focus 2023-05-09 18:55:15 +02:00
Benjamin Canac
530d8a8c27 chore(Dropdown): improve preset 2023-05-09 17:58:07 +02:00
Benjamin Canac
939efba47c fix(app.config): remove old u- classes 2023-05-09 16:26:12 +02:00
Benjamin Canac
c43c212ae1 chore(Toggle): shrink size and move focus to focus-visible 2023-05-09 16:25:09 +02:00
Benjamin Canac
0404c871fb chore(Radio/Checkbox): change focus to focus-visible 2023-05-09 16:24:36 +02:00
Benjamin Canac
ebf5fd6aeb fix(Avatar): shrink chip ring 2023-05-09 16:23:51 +02:00
Benjamin Canac
d5d250b8cf chore(Badge): default size to sm and add lg 2023-05-09 14:30:43 +02:00
Benjamin Canac
410d2351d6 chore(Avatar): default size to sm 2023-05-09 14:30:43 +02:00
Benjamin Canac
949a476125 docs: add fallback on colorMode button 2023-05-09 14:30:43 +02:00
Benjamin Canac
4586eed90c chore(Kbd): new component 2023-05-09 14:30:43 +02:00
Benjamin Canac
b21c55f5c4 chore(Dropdown): move resolve class logic into template 2023-05-09 14:30:43 +02:00
Benjamin Canac
fc11612a49 chore(SelectMenu): move resolve class logic into template 2023-05-09 14:30:05 +02:00
Benjamin Canac
6de57aa1a0 chore(deps): bump 2023-05-09 11:50:28 +02:00
Benjamin Canac
6355b16156 chore(Button): add flex-shrink-0 by default 2023-05-05 18:17:43 +02:00
Benjamin Canac
26fc923ea4 chore(Input): add placeholder color to none appearance 2023-05-05 18:17:32 +02:00
Benjamin Canac
28ee9179f5 fix(VerticalNavigation): improve stacking context 2023-05-05 18:17:13 +02:00
Benjamin Canac
4665563e6f fix(CommandPalette): wrong type usage 2023-05-05 17:19:39 +02:00
Benjamin Canac
f221b890a9 chore(Card): update ring and divide colors 2023-05-05 17:17:46 +02:00
Benjamin Canac
d1d8ab3c64 fix(Button): variant validator takes color into account 2023-05-05 14:38:03 +02:00
Benjamin Canac
5b8ab168ba chore(app.config): remove commented button gray variant 2023-05-05 12:16:18 +02:00
Benjamin Canac
767a2bf3fc chore(app.config): improve modal and slideover overlay background 2023-05-05 12:15:59 +02:00
Benjamin Canac
0c69385771 fix: prefix imported components 2023-05-05 12:15:20 +02:00
Daniel Roe
97b1a85ea1 fix: revert back to runtime app for hmr (#153) 2023-05-04 18:18:36 +02:00
Benjamin Canac
9ce43ac68b fix(Notifications): missing computed from vue 2023-05-04 17:59:10 +02:00
Benjamin Canac
fa05653f23 fix(Select): move types from template 2023-05-04 17:51:23 +02:00
Benjamin Canac
626409e101 fix: put back app.config for hmr 2023-05-04 17:51:08 +02:00
Daniel Roe
f5c0030a19 fix: remove augmentation of app (#152) 2023-05-04 17:32:25 +02:00
Daniel Roe
11e00a10e4 fix: update to fix type issues (#151) 2023-05-04 17:24:22 +02:00
Benjamin Canac
b55a7c58f6 docs: improve installation description 2023-05-04 16:02:26 +02:00
Benjamin Canac
8c8bc0b751 docs: hide unfinished pages 2023-05-04 16:00:20 +02:00
Benjamin Canac
a076cae4bf fix(module): remove .ts ext from app.config 2023-05-04 15:38:32 +02:00
Benjamin Canac
5facfee76c Revert "chore(package): volta pin node 18"
This reverts commit a38ef00fb8.
2023-05-04 14:59:45 +02:00
Benjamin Canac
3c5256c462 chore(release): 2.0.0 2023-05-04 14:56:33 +02:00
Benjamin Canac
a38ef00fb8 chore(package): volta pin node 18 2023-05-04 14:55:18 +02:00
Benjamin Canac
6da0db0113 feat: rewrite to use app config and rework docs (#143)
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
2023-05-04 14:49:19 +02:00
Benjamin Canac
56230ea915 chore(release): 1.2.11 2023-05-04 11:01:28 +02:00
Benjamin Canac
126b5fcfd4 Revert "chore(github): add v1 branch to ci dev"
This reverts commit d3536d8768.
2023-05-04 11:00:12 +02:00
Benjamin Canac
d3536d8768 chore(github): add v1 branch to ci dev 2023-05-04 10:52:54 +02:00
Sylvain Marroufin
59f62d322f fix(defineShortcuts): use useEventListener (#150) 2023-05-04 10:50:10 +02:00
Sylvain Marroufin
b85a8e7203 chore(defineShortcuts): config prop whenever more flexible (#149) 2023-05-02 14:47:31 +02:00
Benjamin Canac
8830d848fd chore(release): 1.2.10 2023-04-07 19:23:36 +02:00
Benjamin Canac
cfce1524b2 fix(CommandPalette): typecheck 2023-04-07 19:23:25 +02:00
Benjamin Canac
f845e89a76 chore(release): 1.2.9 2023-04-07 19:21:55 +02:00
Benjamin Canac
d9ca5d188a chore(CommandPalette): improve command highlight 2023-04-07 18:30:25 +02:00
Benjamin Canac
2429bcf5a7 chore(SelectCustom): right padding only when selected 2023-04-05 13:01:16 +02:00
Benjamin Canac
f45f4a3e56 chore(release): 1.2.8 2023-04-04 15:14:06 +02:00
Benjamin Canac
09e957e702 chore(deps): remove @tailwindcss/line-clamp as its included by default in tailwind 3.3 2023-04-04 13:55:38 +02:00
Benjamin Canac
1ecd7cefde chore(release): 1.2.7 2023-04-04 13:36:43 +02:00
Benjamin Canac
aafdfdb59c fix(useTimer): remaining after pause 2023-04-04 13:36:24 +02:00
Benjamin Canac
453ff6ca20 chore(release): 1.2.6 2023-04-04 11:26:00 +02:00
Benjamin Canac
55832b6b99 docs: ts ignore 2023-04-04 11:25:33 +02:00
Benjamin Canac
6b93bbe5cd chore(release): 1.2.5 2023-04-04 11:17:30 +02:00
Benjamin Canac
1402553145 chore(deps): bump 2023-04-04 11:17:14 +02:00
Benjamin Canac
5d84dfd05b chore(release): 1.2.4 2023-04-04 11:08:58 +02:00
Benjamin Canac
7dc59a05ec chore(useTimer): pass options to useTimestamp 2023-04-04 11:08:41 +02:00
Benjamin Canac
4bd994985d chore(release): 1.2.3 2023-03-22 16:21:49 +01:00
Benjamin Canac
c83d3b7147 chore(Avatar): remove useless chipVariant prop 2023-03-22 16:21:29 +01:00
Benjamin Canac
f022665351 chore(release): 1.2.2 2023-03-20 16:17:55 +01:00
Benjamin Canac
f29c325dc7 chore(deps): fix @headlessui/vue to 1.7.10 because of inert dialogs 2023-03-20 16:17:36 +01:00
Benjamin Canac
876f9578c2 chore(release): 1.2.1 2023-03-20 15:59:15 +01:00
Benjamin Canac
f69f584188 chore(deps): bump 2023-03-20 15:58:53 +01:00
Sylvain Marroufin
377b4189ca fix(defineShortcuts): shift + alphabetic character handling (#140) 2023-03-13 14:11:52 +01:00
Benjamin Canac
f76a9f0ab0 chore(release): 1.2.0 2023-03-09 16:55:06 +01:00
Sylvain Marroufin
37b2271bf0 fix(defineShortcuts): add missing import 2023-03-09 16:09:31 +01:00
Sylvain Marroufin
fa49d52f17 fix(Tooltip): shortcutsClass prop type 2023-03-09 15:37:42 +01:00
Sylvain Marroufin
fd4b608150 chore: add more composables (#138) 2023-03-09 11:42:22 +01:00
Sylvain Marroufin
fef93f3198 chore: allow preset override of components shortcuts (#139)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2023-03-09 11:40:04 +01:00
Benjamin Canac
0826ef8d59 chore(deps): bump 2023-03-03 16:51:41 +01:00
Benjamin Canac
0e3066d865 chore(release): 1.1.4 2023-03-02 12:37:17 +01:00
Benjamin Canac
fb9d6cb544 chore(deps): freeze @headlessui/vue to 1.7.10 2023-03-02 12:36:55 +01:00
Benjamin Canac
531a89cdb8 chore(release): 1.1.3 2023-03-02 11:02:04 +01:00
Benjamin Canac
6970c2d665 chore(CommandPalette): add slot for command icon 2023-02-28 16:49:50 +01:00
Benjamin Canac
9719ea3858 chore(release): 1.1.2 2023-02-28 11:58:28 +01:00
Benjamin Canac
a4af6b3805 chore(deps): bump 2023-02-28 10:50:50 +01:00
Benjamin Canac
3493c138d9 chore: split props for Dropdown, ContextMenu and Popover 2023-02-24 17:33:57 +01:00
Benjamin Canac
d08e64d53f fix(Tooltip): truncate 2023-02-22 15:59:02 +01:00
renovate[bot]
6aecb082d2 chore(deps): update devdependency vue-tsc to ^1.1.7 (#132)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-22 12:31:21 +01:00
Sylvain Marroufin
63e27f8b4b chore(docs): add ContextMenu component page (#128) 2023-02-22 12:31:08 +01:00
Benjamin Canac
7970aefcb0 fix(VerticalNavigation): links to type 2023-02-22 12:22:54 +01:00
renovate[bot]
a893d7fa2e chore(deps): update all non-major dependencies (#124)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-21 19:26:03 +01:00
Benjamin Canac
8ace629ff8 chore(release): 1.1.1 2023-02-20 18:06:15 +01:00
Benjamin Canac
0d35b82ecb chore(CommandPalette): expose query 2023-02-20 18:05:52 +01:00
Benjamin Canac
5f37077835 types(CommandPalette): options no longer exists 2023-02-20 18:05:39 +01:00
Benjamin Canac
948f4b89b1 chore(release): 1.1.0 2023-02-17 19:08:09 +01:00
Benjamin Canac
e6d0dd5898 chore(CommandPalette): set debounce to 200 2023-02-17 19:07:38 +01:00
Benjamin Canac
4702a4f103 fix(CommandPalette): types 2023-02-17 18:14:11 +01:00
Benjamin Canac
efa9674815 feat(CommandPalette): handle async search for specific groups 2023-02-17 18:03:59 +01:00
Benjamin Canac
97d40395d3 chore(release): 1.0.0 2023-02-17 15:35:51 +01:00
Benjamin Canac
a2fb22d835 docs: ts-ignore module import 2023-02-17 14:53:35 +01:00
Benjamin Canac
d14a1a82c2 chore(deps): bump @egoist/tailwindcss-icons 2023-02-17 14:50:41 +01:00
Benjamin Canac
a566627a23 chore: bump deps 2023-02-17 14:26:20 +01:00
Benjamin Canac
ee3352278c feat: migrate to @egoist/tailwindcss-icons 2023-02-17 12:58:19 +01:00
Benjamin Canac
b1d9e01818 chore(release): 0.2.1 2023-02-16 17:02:23 +01:00
Benjamin Canac
ca171f3095 chore(ci): disable typecheck 2023-02-16 17:02:07 +01:00
Benjamin Canac
c0e493d96a chore(deps): bump nuxt-icon 2023-02-16 17:02:00 +01:00
Benjamin Canac
d0d3235860 chore(release): 0.2.0 2023-02-16 16:17:24 +01:00
Benjamin Canac
18915975be chore(release): 0.1.39 2023-02-16 16:16:57 +01:00
Benjamin Canac
f5d068be9d feat: use nuxt-icon 2023-02-16 16:16:37 +01:00
Benjamin Canac
6018f009a8 fix(SelectCustom): handle search on string arrays 2023-02-16 12:02:38 +01:00
Benjamin Canac
2b78b5d7dc chore(SelectCustom): improve options type 2023-02-16 11:53:19 +01:00
Benjamin Canac
87f3f0b4c0 chore(release): 0.1.38 2023-02-03 18:09:49 +01:00
Benjamin Canac
41bf56f2ae chore(tsconfig): remove override 2023-02-03 18:04:30 +01:00
Benjamin Canac
b7795f4ef6 chore(deps): add @types/node 2023-02-03 18:04:19 +01:00
Benjamin Canac
57f8145a8d chore(deps): bump 2023-02-03 17:51:06 +01:00
Benjamin Canac
70fbcb6b24 chore(release): 0.1.37 2023-02-03 16:02:21 +01:00
Kevin Marrec
bea47b5906 fix(CommandPalette): improve accessibility (#129) 2023-02-03 16:01:43 +01:00
Benjamin Canac
fc1b3b2f17 chore(release): 0.1.36 2023-02-02 15:10:25 +01:00
Benjamin Canac
5bf5a314c4 fix(CommandPalette): put back cursor on top only when query changes 2023-02-01 15:20:21 +01:00
Benjamin Canac
3558eb1a4f chore(release): 0.1.35 2023-02-01 14:38:15 +01:00
Benjamin Canac
1c4d46e056 fix(Dropdown): lint 2023-02-01 14:38:07 +01:00
Benjamin Canac
1b0ed9e732 docs: simplify popover panel template 2023-02-01 14:37:55 +01:00
Benjamin Canac
b72037a777 chore: handle disabled prop for Dropdown and Popover 2023-02-01 14:34:28 +01:00
Benjamin Canac
a7644860b8 fix(Dropdown): prevent panel display when no items 2023-01-31 12:33:27 +01:00
Benjamin Canac
c90cd9c4f3 fix(AvatarGroup): preset size prop 2023-01-28 01:49:24 +01:00
Benjamin Canac
7805168685 chore(release): 0.1.34 2023-01-27 14:10:46 +01:00
Benjamin Canac
27717a55b3 fix(CommandPalette): typecheck 2023-01-27 14:10:35 +01:00
Benjamin Canac
d651a22dce chore(release): 0.1.33 2023-01-27 13:02:18 +01:00
Benjamin Canac
c3ecbf4b20 chore(CommandPalette): start preset 2023-01-27 13:02:01 +01:00
Benjamin Canac
d8b10f3eef chore(release): 0.1.32 2023-01-23 14:24:36 +01:00
Benjamin Canac
1071b80b39 chore(deps): bump 2023-01-23 14:24:20 +01:00
Benjamin Canac
c5e9a1ef46 chore(release): 0.1.31 2023-01-17 15:35:38 +01:00
Benjamin Canac
afe69a570d chore(deps): bump 2023-01-17 15:35:16 +01:00
Benjamin Canac
e6ed834cea chore(release): 0.1.30 2023-01-17 15:00:54 +01:00
Benjamin Canac
30c5412a6b chore(CommandPalette): input close icon position 2023-01-17 15:00:21 +01:00
Benjamin Canac
01f56d9553 chore(Button): handle compact 2023-01-17 15:00:21 +01:00
Benjamin Canac
91f273c117 chore(release): 0.1.29 2023-01-17 15:00:19 +01:00
Benjamin Canac
cda8ce32a3 chore(release): 0.1.28 2023-01-13 18:33:18 +01:00
Benjamin Canac
2bc0eb05d1 chore(Slideover): emit event 2023-01-13 18:32:45 +01:00
Benjamin Canac
cfc4bdfbfe chore(release): 0.1.27 2023-01-12 15:33:35 +01:00
Sylvain Marroufin
370d05921d chore(lighthouse): improve CommandPalette 2023-01-12 14:28:29 +01:00
Sylvain Marroufin
b6455a151d chore(lighthouse): improve components accessibility (#127) 2023-01-12 12:32:42 +01:00
Benjamin Canac
8c0e0ec823 chore(release): 0.1.26 2023-01-09 18:43:45 +01:00
Sylvain Marroufin
4f56921096 fix(CommandPalette): select first item on search changes (#126) 2023-01-09 18:43:12 +01:00
Benjamin Canac
6a5ee32e05 chore(release): 0.1.25 2023-01-09 18:42:53 +01:00
Benjamin Canac
4ea07e1077 chore(release): 0.1.24 2023-01-04 12:17:13 +01:00
Benjamin Canac
5fd65d0917 chore(deps): bump 2023-01-04 11:39:24 +01:00
Benjamin Canac
2ec0cee1d9 chore(release): 0.1.23 2022-12-20 16:27:30 +01:00
Benjamin Canac
758e6f1400 Revert "chore: put back stop propagation on mode hover (#121)"
This reverts commit c015148f29.
2022-12-20 16:26:55 +01:00
Benjamin Canac
275fa1831d chore(release): 0.1.22 2022-12-19 18:27:36 +01:00
Benjamin Canac
8b5e08f6f2 chore(Tooltip): add prevent prop 2022-12-19 18:27:19 +01:00
Benjamin Canac
1635f57de6 chore(release): 0.1.21 2022-12-19 16:22:41 +01:00
Sylvain Marroufin
b3e0122001 chore(SelectCustom): add emit on open/close (#125) 2022-12-19 16:22:15 +01:00
Benjamin Canac
4f9d20e603 chore(release): 0.1.20 2022-12-19 11:37:46 +01:00
Benjamin Canac
f7add47cf2 chore(deps): pin @headlessui/vue version to 1.7.4 2022-12-19 11:37:28 +01:00
renovate[bot]
99c1c683eb Update all non-major dependencies (#122)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-17 16:57:12 +01:00
Anthony Fu
ff9f6c251d fix: avoid referring to complex types in props (#123) 2022-12-17 16:56:49 +01:00
496 changed files with 60657 additions and 14347 deletions

View File

@@ -1,14 +0,0 @@
node_modules
dist
.nuxt
coverage
*.log*
.DS_Store
.code
*.iml
package-lock.json
templates/*
sw.js
# Templates
src/templates

View File

@@ -1,9 +0,0 @@
module.exports = {
root: true,
extends: [
'@nuxtjs/eslint-config-typescript'
],
rules: {
'vue/multi-word-component-names': 0
}
}

60
.github/ISSUE_TEMPLATE/bug-report.yml vendored Normal file
View File

@@ -0,0 +1,60 @@
name: "🐛 Bug report"
description: Report a bug to help us improve the module.
labels: ["triage", "bug"]
body:
- type: markdown
attributes:
value: |
Before reporting a bug, please make sure that you have read through our [documentation](https://ui.nuxt.com) and existing [issues](https://github.com/nuxt/ui/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).
- type: textarea
id: env
attributes:
label: Environment
description: You can use `npx nuxi info` to fill this section
placeholder: |
- Operating System: `Darwin`
- Node Version: `v18.16.0`
- Nuxt Version: `3.7.3`
- CLI Version: `3.8.4`
- Nitro Version: `2.6.3`
- Package Manager: `pnpm@8.7.4`
- Builder: `-`
- User Config: `-`
- Runtime Modules: `-`
- Build Modules: `-`
validations:
required: true
- type: input
id: version
attributes:
label: Version
placeholder: v2.8.0
validations:
required: true
- type: textarea
id: reproduction
attributes:
label: Reproduction
description: Please provide a reproduction link using this template https://stackblitz.com/edit/nuxt-ui. A minimal [reproduction is required](https://antfu.me/posts/why-reproductions-are-required) unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "needs reproduction" label. If no reproduction is provided we might close it.
placeholder: https://stackblitz.com/edit/nuxt-ui
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description.
validations:
required: true
- type: textarea
id: additonal
attributes:
label: Additional context
description: If applicable, add any other context or screenshots here.
- type: textarea
id: logs
attributes:
label: Logs
description: |
Optional if provided reproduction. Please try not to insert an image but copy paste the log text.
render: shell-script

8
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: 📖 Documentation
url: https://ui.nuxt.com
about: Check the documentation for guides and examples.
- name: 📚 Discord
url: https://go.nuxt.com/discord
about: Consider asking questions in the help channel.

View File

@@ -0,0 +1,20 @@
name: "🚀 Feature request"
description: Suggest an idea or enhancement for the module.
labels: ["triage", "enhancement"]
body:
- type: markdown
attributes:
value: |
Before requesting a feature, please make sure that you have read through our [documentation](https://ui.nuxt.com) and existing [issues](https://github.com/nuxt/ui/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of what you think would be an helpful addition to the module, including the possible use cases and alternatives you have considered. If you have a working prototype or module that implements it, please include a link.
validations:
required: true
- type: textarea
id: additonal
attributes:
label: Additional context
description: If applicable, add any other context or screenshots here.

14
.github/ISSUE_TEMPLATE/question.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: "💬 Question"
description: Ask a question about the module.
labels: ["question"]
body:
- type: markdown
attributes:
value: |
Before asking a question, please make sure that you have read through our [documentation](https://ui.nuxt.com) and existing [issues](https://github.com/nuxt/ui/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc).
- type: textarea
id: description
attributes:
label: Description
validations:
required: true

32
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,32 @@
<!---
☝️ PR title should follow conventional commits (https://conventionalcommits.org)
-->
### 🔗 Linked issue
<!-- If it resolves an open issue, please link the issue here. For example "Resolves #123" -->
### ❓ Type of change
<!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. -->
- [ ] 📖 Documentation (updates to the documentation or readme)
- [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
- [ ] 👌 Enhancement (improving an existing functionality)
- [ ] ✨ New feature (a non-breaking change that adds functionality)
- [ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
- [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
### 📚 Description
<!-- Describe your changes in detail -->
<!-- Why is this change required? What problem does it solve? -->
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.

View File

@@ -1,54 +0,0 @@
name: ci-dev
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest
node: [16]
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- name: Cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
- name: Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: Lint
run: yarn lint
- name: Typecheck
run: yarn typecheck
- name: Build
run: yarn build
- name: Release Edge
if: github.event_name == 'push'
run: ./scripts/release-edge.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

56
.github/workflows/ci-v3.yml vendored Normal file
View File

@@ -0,0 +1,56 @@
name: ci-v3
on:
push:
branches:
- v3
pull_request:
branches:
- v3
jobs:
ci:
runs-on: ${{ matrix.os }}
permissions:
contents: read
pull-requests: read
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest
node: [20]
env:
NUXT_GITHUB_TOKEN: ${{ secrets.NUXT_GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Prepare
run: pnpm run dev:prepare
- name: Lint
run: pnpm run lint
- name: Typecheck
run: pnpm run typecheck
- name: Test
run: pnpm run test
- name: Build
run: pnpm run build

View File

@@ -1,60 +0,0 @@
name: ci-main
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest
node: [16]
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- name: Cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
- name: Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: Lint
run: yarn lint
- name: Typecheck
run: yarn typecheck
- name: Build
run: yarn build
- name: Version Check
id: check
uses: EndBug/version-check@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Release
if: github.event_name == 'push' && steps.check.outputs.changed == 'true'
run: ./scripts/release.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

23
.github/workflows/stale.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: stale
on:
schedule:
- cron: '30 1 * * *'
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v9
with:
exempt-issue-labels: triage,v3
stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity.'
stale-issue-label: stale
stale-pr-label: stale
days-before-stale: 30
days-before-close: -1

26
.gitignore vendored
View File

@@ -1,8 +1,24 @@
node_modules
*.log
.nuxt
nuxt.d.ts
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist
# Node dependencies
node_modules
# Logs
logs
*.log
# Misc
.DS_Store
.history
.fleet
.idea
# Local env files
.env
.env.*
!.env.example

3
.npmrc Normal file
View File

@@ -0,0 +1,3 @@
shamefully-hoist=true
auto-install-peers=true
ignore-workspace-root-check=true

16
.release-it.json Normal file
View File

@@ -0,0 +1,16 @@
{
"git": {
"commitMessage": "chore(release): v${version}",
"tagName": "v${version}"
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "conventionalcommits"
},
"infile": "CHANGELOG.md",
"header": "# Changelog",
"ignoreRecommendedBump": true
}
}
}

File diff suppressed because it is too large Load Diff

9
LICENSE.md Normal file
View File

@@ -0,0 +1,9 @@
MIT License
Copyright (c) 2023 NuxtLabs
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

107
README.md
View File

@@ -1,71 +1,100 @@
# @nuxthq/ui
[![nuxt-ui.png](https://repository-images.githubusercontent.com/428329515/43fec891-9030-4601-8233-5d45ba5c6013)](https://ui.nuxt.com)
Components library as a Nuxt module using [TailwindCSS](https://tailwindcss.com).
# Nuxt UI
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![License][license-src]][license-href]
[![Nuxt][nuxt-src]][nuxt-href]
Nuxt UI is a module that provides a set of Vue components and composables built with [Tailwind CSS](https://tailwindcss.com/) and [Headless UI](https://headlessui.dev/) to help you build beautiful and accessible user interfaces.
Its goal is to provide everything related to UI when building a Nuxt app. This includes components, icons, colors, dark mode but also keyboard shortcuts.
## Features
- Built with [Headless UI](https://headlessui.dev/) and [Tailwind CSS](https://tailwindcss.com/)
- HMR support through Nuxt App Config
- Dark mode support
- Support for LTR and RTL languages
- Keyboard shortcuts
- Bundled icons
- Fully typed
- [Figma Kit](https://www.figma.com/community/file/1288455405058138934)
Read more on [ui.nuxt.com](https://ui.nuxt.com)
## Installation
```bash
yarn add --dev @nuxthq/ui
# npm
npm install @nuxt/ui
# yarn
yarn add @nuxt/ui
# pnpm
pnpm add @nuxt/ui
# bun
bun add @nuxt/ui
```
Then, register the module in your `nuxt.config.js`:
Then, register the module in your `nuxt.config.ts`:
```js
import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({
buildModules: [
'@nuxthq/ui'
modules: [
'@nuxt/ui'
]
})
```
If you want latest updates, please use `@nuxthq/ui-edge` in your `package.json`:
If you want latest updates, please use `@nuxt/ui-edge` in your `package.json`:
```json
{
"devDependencies": {
"@nuxthq/ui": "npm:@nuxthq/ui-edge@latest"
"@nuxt/ui": "npm:@nuxt/ui-edge@latest"
}
}
```
## Options
## Documentation
- `primary`
Visit https://ui.nuxt.com to explore the documentation.
Define the primary variant. Defaults to `indigo`. You can specify your own object of colors like here:
## Credits
**Example:**
- [nuxt/nuxt](https://github.com/nuxt/nuxt)
- [nuxt-modules/color-mode](https://github.com/nuxt-modules/color-mode)
- [nuxt-modules/tailwindcss](https://github.com/nuxt-modules/tailwindcss)
- [tailwindlabs/tailwindcss](https://github.com/tailwindlabs/tailwindcss)
- [tailwindlabs/headlessui](https://github.com/tailwindlabs/headlessui)
- [vueuse/vueuse](https://github.com/vueuse/vueuse)
- [egoist/tailwindcss-icons](https://github.com/egoist/tailwindcss-icons)
```js
import { defineNuxtConfig } from 'nuxt'
## Contributing
export default defineNuxtConfig({
buildModules: [
'@nuxthq/ui'
],
ui: {
primary: 'blue'
}
})
```
Thank you for considering contributing to Nuxt UI. Here are a few ways you can get involved:
- `prefix`
- Reporting Bugs: If you come across any bugs or issues, please check out the reporting bugs guide to learn how to submit a bug report.
- Suggestions: Have any thoughts to enhance Nuxt UI? We'd love to hear them! Check out the [contribution guide](https://ui.nuxt.com/getting-started/contributing) to share your suggestions.
Define the prefix of the imported components. Defaults to `u`.
## Local Development
**Example:**
Follow the docs to [Set up your local development environment](https://ui.nuxt.com/getting-started/contributing#_2-local-development-setup) and contribute.
```js
import { defineNuxtConfig } from 'nuxt'
## License
export default defineNuxtConfig({
buildModules: [
'@nuxthq/ui'
],
ui: {
prefix: 'tw'
}
})
```
Licensed under the [MIT license](https://github.com/nuxt/ui/blob/dev/LICENSE.md).
<!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/@nuxt/ui/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-version-href]: https://npmjs.com/package/@nuxt/ui
[npm-downloads-src]: https://img.shields.io/npm/dm/@nuxt/ui.svg?style=flat&colorA=18181B&colorB=28CF8D
[npm-downloads-href]: https://npmjs.com/package/@nuxt/ui
[license-src]: https://img.shields.io/github/license/nuxt/ui.svg?style=flat&colorA=18181B&colorB=28CF8D
[license-href]: https://github.com/nuxt/ui/blob/main/LICENSE.md
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
[nuxt-href]: https://nuxt.com

View File

@@ -1,12 +0,0 @@
import fs from 'node:fs/promises'
import { join, resolve } from 'node:path'
import { defineBuildConfig } from 'unbuild'
export default defineBuildConfig({
hooks: {
'rollup:done': async (ctx) => {
// copy env.d.ts to dist
await fs.copyFile(resolve('src/env.d.ts'), join(ctx.options.outDir, 'env.d.ts'))
}
}
})

83
cli/commands/init.mjs Normal file
View File

@@ -0,0 +1,83 @@
import { existsSync, promises as fsp } from 'node:fs'
import { resolve } from 'pathe'
import { defineCommand } from 'citty'
import { consola } from 'consola'
import { splitByCase, upperFirst, camelCase, kebabCase } from 'scule'
import { appendFile, sortFile } from '../utils.mjs'
import templates from '../templates.mjs'
export default defineCommand({
meta: {
name: 'init',
description: 'Init a new component.'
},
args: {
name: {
type: 'positional',
required: true,
description: 'Name of the component.'
},
primitive: {
type: 'boolean',
description: 'Create a primitive component.'
},
pro: {
type: 'boolean',
description: 'Create a pro component.'
},
prose: {
type: 'boolean',
description: 'Create a prose component (with --pro).'
},
content: {
type: 'boolean',
description: 'Create a content component (with --pro).'
}
},
async setup({ args }) {
const name = args.name
if (!name) {
consola.error('`name` argument is missing!')
process.exit(1)
}
if (args.prose && !args.pro) {
consola.error('`--prose` flag can only be used with `--pro` flag!')
process.exit(1)
}
if (args.content && !args.pro) {
consola.error('`--content` flag can only be used with `--pro` flag!')
process.exit(1)
}
const path = resolve('.')
for (const template of Object.keys(templates)) {
const { filename, contents } = templates[template](args)
if (!contents) {
continue
}
const filePath = resolve(path, filename)
if (existsSync(filePath)) {
consola.error(`🚨 ${filePath} already exists!`)
continue
}
await fsp.writeFile(filePath, contents.trim() + '\n')
consola.success(`🪄 Generated ${filePath}!`)
}
const themePath = resolve(path, `src/theme/${args.prose ? 'prose/' : ''}${args.content ? 'content/' : ''}index.ts`)
await appendFile(themePath, `export { default as ${camelCase(name)} } from './${kebabCase(name)}'`)
await sortFile(themePath)
if (!args.prose) {
const typesPath = resolve(path, 'src/runtime/types/index.d.ts')
await appendFile(typesPath, `export * from '../components/${args.content ? 'content/' : ''}${splitByCase(name).map(p => upperFirst(p)).join('')}.vue'`)
await sortFile(typesPath)
}
}
})

15
cli/index.mjs Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env node
import { defineCommand, runMain } from 'citty'
import init from './commands/init.mjs'
const main = defineCommand({
meta: {
name: 'nuxt-ui',
description: 'Nuxt UI CLI'
},
subCommands: {
init
}
})
runMain(main)

13
cli/package.json Normal file
View File

@@ -0,0 +1,13 @@
{
"name": "@nuxt/ui-cli",
"type": "module",
"exports": {
".": "./index.mjs"
},
"dependencies": {
"citty": "^0.1.6",
"consola": "^3.2.3",
"pathe": "^1.1.2",
"scule": "^1.3.0"
}
}

171
cli/templates.mjs Normal file
View File

@@ -0,0 +1,171 @@
import { splitByCase, upperFirst, camelCase, kebabCase } from 'scule'
const playground = ({ name, pro }) => {
const upperName = splitByCase(name).map(p => upperFirst(p)).join('')
const kebabName = kebabCase(name)
return {
filename: `playground/pages/components/${kebabName}.vue`,
contents: pro
? undefined
: `
<template>
<div>
<U${upperName} />
</div>
</template>
`
}
}
const component = ({ name, primitive, pro, prose, content }) => {
const upperName = splitByCase(name).map(p => upperFirst(p)).join('')
const camelName = camelCase(name)
const kebabName = kebabCase(name)
const key = pro ? 'uiPro' : 'ui'
const path = pro ? 'ui-pro' : 'ui'
return {
filename: `src/runtime/components/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${upperName}.vue`,
contents: primitive
? `
<script lang="ts">
import { tv } from 'tailwind-variants'
import type { AppConfig } from '@nuxt/schema'
import _appConfig from '#build/app.config'
import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
const appConfig = _appConfig as AppConfig & { ${key}: { ${prose ? 'prose: { ' : ''}${camelName}: Partial<typeof theme> } }${prose ? ' }' : ''}
const ${camelName} = tv({ extend: tv(theme), ...(appConfig.${key}?.${prose ? 'prose?.' : ''}${camelName} || {}) })
export interface ${upperName}Props {
/**
* The element or component this component should render as.
* @defaultValue \`div\`
*/
as?: any
class?: any
ui?: Partial<typeof ${camelName}.slots>
}
export interface ${upperName}Slots {
default(props?: {}): any
}
</script>
<script setup lang="ts">
import { Primitive } from 'radix-vue'
const props = withDefaults(defineProps<${upperName}Props>(), { as: 'div' })
defineSlots<${upperName}Slots>()
const ui = ${camelName}()
</script>
<template>
<Primitive :as="as" :class="ui.root({ class: [props.class, props.ui?.root] })">
<slot />
</Primitive>
</template>
`
: `
<script lang="ts">
import { tv, type VariantProps } from 'tailwind-variants'
import type { ${upperName}RootProps, ${upperName}RootEmits } from 'radix-vue'
import type { AppConfig } from '@nuxt/schema'
import _appConfig from '#build/app.config'
import theme from '#build/${path}/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}'
const appConfig = _appConfig as AppConfig & { ${key}: { ${prose ? 'prose: { ' : ''}${camelName}: Partial<typeof theme> } }${prose ? ' }' : ''}
const ${camelName} = tv({ extend: tv(theme), ...(appConfig.${key}?.${prose ? 'prose?.' : ''}${camelName} || {}) })
type ${upperName}Variants = VariantProps<typeof ${camelName}>
export interface ${upperName}Props extends Pick<${upperName}RootProps> {
class?: any
ui?: Partial<typeof ${camelName}.slots>
}
export interface ${upperName}Emits extends ${upperName}RootEmits {}
export interface ${upperName}Slots {}
</script>
<script setup lang="ts">
import { ${upperName}Root, useForwardPropsEmits } from 'radix-vue'
import { reactivePick } from '@vueuse/core'
const props = defineProps<${upperName}Props>()
const emits = defineEmits<${upperName}Emits>()
const slots = defineSlots<${upperName}Slots>()
const rootProps = useForwardPropsEmits(reactivePick(props), emits)
const ui = ${camelName}()
</script>
<template>
<${upperName}Root v-bind="rootProps" :class="ui.root({ class: [props.class, props.ui?.root] })" />
</template>
`
}
}
const theme = ({ name, prose, content }) => {
const kebabName = kebabCase(name)
return {
filename: `src/theme/${prose ? 'prose/' : ''}${content ? 'content/' : ''}${kebabName}.ts`,
contents: prose
? `
export default {
base: ''
}
`
: `
export default {
slots: {
root: ''
}
}
`
}
}
const test = ({ name, prose, content }) => {
const upperName = splitByCase(name).map(p => upperFirst(p)).join('')
return {
filename: `test/components/${content ? 'content/' : ''}${upperName}.spec.ts`,
contents: prose
? undefined
: `
import { describe, it, expect } from 'vitest'
import ${upperName}, { type ${upperName}Props, type ${upperName}Slots } from '../../${content ? '../' : ''}src/runtime/components/${content ? 'content/' : ''}${upperName}.vue'
import ComponentRender from '../${content ? '../' : ''}component-render'
describe('${upperName}', () => {
it.each([
// Props
['with as', { props: { as: 'div' } }],
['with class', { props: { class: '' } }],
['with ui', { props: { ui: {} } }],
// Slots
['with default slot', { slots: { default: () => 'Default slot' } }]
])('renders %s correctly', async (nameOrHtml: string, options: { props?: ${upperName}Props, slots?: Partial<${upperName}Slots> }) => {
const html = await ComponentRender(nameOrHtml, options, ${upperName})
expect(html).toMatchSnapshot()
})
})
`
}
}
export default {
playground,
component,
theme,
test
}

17
cli/utils.mjs Normal file
View File

@@ -0,0 +1,17 @@
import { promises as fsp } from 'node:fs'
export async function sortFile(path) {
const file = await fsp.readFile(path, 'utf-8')
const lines = file.trim().split('\n').sort()
await fsp.writeFile(path, lines.join('\n') + '\n')
}
export async function appendFile(path, contents) {
const file = await fsp.readFile(path, 'utf-8')
if (!file.includes(contents)) {
await fsp.writeFile(path, file.trim() + '\n' + contents + '\n')
}
}

8
docs/.env.example Normal file
View File

@@ -0,0 +1,8 @@
# Specify the path of @nuxt/ui-pro locally
NUXT_UI_PRO_PATH=
# Production token for @nuxt/ui-pro, purchase on https://ui.nuxt.com/pro/purchase
NUXT_UI_PRO_LICENSE=
# Used when pre-rendering the docs for dynamic OG images
NUXT_PUBLIC_SITE_URL=
# Used to fetch `nuxt/ui-pro` docs content
NUXT_GITHUB_TOKEN=

View File

@@ -1,95 +0,0 @@
<template>
<div>
<nav class="u-bg-white border-b u-border-gray-200 fixed top-0 inset-x-0 z-10">
<UContainer padded>
<div class="flex items-center justify-between h-16">
<div class="flex items-center">
<NuxtLink to="/" class="block font-bold text-lg u-text-gray-900">
@nuxthq/ui
</NuxtLink>
</div>
<div class="flex items-center gap-3">
<ColorScheme placeholder="" tag="span">
<UButton variant="transparent" :icon="colorMode.value === 'dark' ? 'heroicons-outline:moon' : 'heroicons-outline:sun'" @click="toggleDark" />
</ColorScheme>
<UButton to="https://github.com/nuxtlabs/ui" target="_blank" variant="transparent" icon="fa-brands:github" />
</div>
</div>
</UContainer>
</nav>
<UContainer class="mt-16">
<div class="lg:grid lg:grid-cols-10 lg:gap-10 lg:relative">
<aside class="lg:flex lg:flex-col pb-8 lg:pb-0 lg:sticky lg:top-0 px-4 sm:px-6 lg:px-0 lg:pt-16 lg:-mt-16 lg:self-start lg:col-span-2 lg:overflow-hidden lg:h-screen">
<nav class="overflow-y-auto h-auto pt-8 lg:py-12">
<ul class="space-y-6">
<li v-for="section of sections" :key="section">
<h5 class="mb-3 uppercase tracking-wide font-semibold text-xs u-text-gray-900">
{{ section.label }}
</h5>
<ul class="space-y-1.5">
<li v-for="(link, index) of section.links" :key="index">
<ULink
:to="link.to"
class="relative block text-sm rounded-md"
active-class="text-primary-600"
inactive-class="u-text-gray-500 hover:u-text-gray-700"
exact
>
{{ link.label }}
</ULink>
</li>
</ul>
</li>
</ul>
</nav>
</aside>
<div class="space-y-6 sm:px-6 lg:px-0 lg:col-span-8 lg:py-12">
<NuxtPage />
</div>
</div>
</UContainer>
<ClientOnly>
<UNotifications />
</ClientOnly>
</div>
</template>
<script setup>
useHead({
title: '@nuxthq/ui',
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1' }
],
link: [
{ rel: 'stylesheet', href: 'https://rsms.me/inter/inter.css' }
],
bodyAttrs: {
class: 'antialiased font-sans text-gray-700 bg-gray-50 dark:bg-gray-900 dark:text-gray-200 bg-white dark:bg-black'
}
})
const colorMode = useColorMode()
const toggleDark = () => {
colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark'
}
const sections = [
{ label: 'Getting Started', links: [{ label: 'Usage', to: '/' }, { label: 'Examples', to: '/examples' }, { label: 'Migration', to: '/migration' }, { label: 'Dark mode', to: '/dark' }] },
{ label: 'Elements', links: [{ label: 'Avatar', to: '/components/Avatar' }, { label: 'AvatarGroup', to: '/components/AvatarGroup' }, { label: 'Badge', to: '/components/Badge' }, { label: 'Button', to: '/components/Button' }, { label: 'Dropdown', to: '/components/Dropdown' }, { label: 'Icon', to: '/components/Icon' }] },
{ label: 'Feedback', links: [{ label: 'Alert', to: '/components/Alert' }, { label: 'AlertDialog', to: '/components/AlertDialog' }] },
{ label: 'Forms', links: [{ label: 'Checkbox', to: '/components/Checkbox' }, { label: 'Input', to: '/components/Input' }, { label: 'FormGroup', to: '/components/FormGroup' }, { label: 'Radio', to: '/components/Radio' }, { label: 'Select', to: '/components/Select' }, { label: 'SelectCustom', to: '/components/SelectCustom' }, { label: 'Textarea', to: '/components/Textarea' }, { label: 'Toggle', to: '/components/Toggle' }] },
{ label: 'Layout', links: [{ label: 'Card', to: '/components/Card' }, { label: 'Container', to: '/components/Container' }] },
{ label: 'Navigation', links: [{ label: 'Pills', to: '/components/Pills' }, { label: 'Tabs', to: '/components/Tabs' }, { label: 'VerticalNavigation', to: '/components/VerticalNavigation' }, { label: 'CommandPalette', to: '/components/CommandPalette' }] },
{ label: 'Overlays', links: [{ label: 'Modal', to: '/components/Modal' }, { label: 'Notification', to: '/components/Notification' }, { label: 'Popover', to: '/components/Popover' }, { label: 'Slideover', to: '/components/Slideover' }, { label: 'Tooltip', to: '/components/Tooltip' }] }
]
</script>
<style>
html.dark {
@apply bg-black;
}
</style>

8
docs/app/app.config.ts Normal file
View File

@@ -0,0 +1,8 @@
export default defineAppConfig({
ui: {
colors: {
primary: 'sky',
gray: 'cool'
}
}
})

104
docs/app/app.vue Normal file
View File

@@ -0,0 +1,104 @@
<script setup lang="ts">
import { withoutTrailingSlash } from 'ufo'
// import { debounce } from 'perfect-debounce'
import type { ContentSearchFile } from '@nuxt/ui-pro'
const route = useRoute()
// const colorMode = useColorMode()
const runtimeConfig = useRuntimeConfig()
const { integrity, api } = runtimeConfig.public.content
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] })
const { data: files } = await useLazyFetch<ContentSearchFile[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
const searchTerm = ref('')
// watch(searchTerm, debounce((query: string) => {
// if (!query) {
// return
// }
// useTrackEvent('Search', { props: { query: `${query} - ${searchTerm.value?.commandPaletteRef.results.length} results` } })
// }, 500))
const links = computed(() => {
return [{
label: 'Docs',
icon: 'i-heroicons-book-open',
to: '/getting-started',
active: route.path.startsWith('/getting-started') || route.path.startsWith('/components')
}, ...(navigation.value.find(item => item._path === '/pro')
? [{
label: 'Pro',
icon: 'i-heroicons-square-3-stack-3d',
to: '/pro',
active: route.path.startsWith('/pro/getting-started') || route.path.startsWith('/pro/components') || route.path.startsWith('/pro/prose')
}, {
label: 'Pricing',
icon: 'i-heroicons-credit-card',
to: '/pro/pricing'
}, {
label: 'Templates',
icon: 'i-heroicons-computer-desktop',
to: '/pro/templates'
}]
: []), {
label: 'Releases',
icon: 'i-heroicons-rocket-launch',
to: '/releases'
}].filter(Boolean)
})
// const color = computed(() => colorMode.value === 'dark' ? '#18181b' : 'white')
useHead({
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
// { key: 'theme-color', name: 'theme-color', content: color }
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' },
{ rel: 'canonical', href: `https://ui.nuxt.com${withoutTrailingSlash(route.path)}` }
],
htmlAttrs: {
lang: 'en'
}
})
useServerSeoMeta({
ogSiteName: 'Nuxt UI',
twitterCard: 'summary_large_image'
})
provide('navigation', navigation)
provide('files', files)
</script>
<template>
<UApp>
<NuxtLoadingIndicator />
<Banner v-if="!route.path.startsWith('/examples')" />
<Header v-if="!route.path.startsWith('/examples')" :links="links" />
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
<Footer v-if="!route.path.startsWith('/examples')" />
<LazyUContentSearch v-model:search-term="searchTerm" :files="files" :navigation="navigation" :fuse="{ resultLimit: 42 }" />
</UApp>
</template>
<style>
@import "tailwindcss";
@import "@nuxt/ui-pro";
@source "../content/**/*.md";
@theme {
--font-family-sans: 'Inter', sans-serif;
}
</style>

View File

@@ -0,0 +1,34 @@
<svg width="290" height="290" viewBox="0 0 290 290" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M226.269 52.4044L226.274 52.4067C237.406 58.2619 245.614 66.3008 250.94 76.5218C256.285 86.7776 258.969 98.4614 258.969 111.596C258.969 124.732 256.285 136.34 250.943 146.446C245.618 156.521 237.447 164.451 226.389 170.234C221.59 172.712 219.355 178.881 222.459 183.542L257.922 236.789C261.773 242.571 257.628 250.311 250.681 250.311H196.906C193.806 250.311 190.939 248.661 189.382 245.98L79.3991 56.5686C76.0313 50.7687 80.2159 43.5 86.9227 43.5H183.394C200.888 43.5 215.161 46.4896 226.269 52.4044Z" fill="url(#paint0_linear_30_25)" stroke="url(#paint1_linear_30_25)" stroke-width="1.93333"/>
<path d="M116.722 247.228C113.004 253.687 103.684 253.687 99.9661 247.228L26.2042 119.085C22.4947 112.64 27.1462 104.596 34.5821 104.596L182.106 104.596C189.542 104.596 194.193 112.64 190.484 119.085L116.722 247.228Z" fill="url(#paint2_radial_30_25)"/>
<path d="M116.722 247.228C113.004 253.687 103.684 253.687 99.9661 247.228L26.2042 119.085C22.4947 112.64 27.1462 104.596 34.5821 104.596L182.106 104.596C189.542 104.596 194.193 112.64 190.484 119.085L116.722 247.228Z" fill="url(#paint3_radial_30_25)" fill-opacity="0.5"/>
<path d="M100.804 246.745L27.042 118.602C23.7034 112.802 27.8898 105.562 34.5821 105.562L182.106 105.562C188.798 105.562 192.985 112.802 189.646 118.602L115.884 246.745C112.538 252.558 104.15 252.558 100.804 246.745Z" fill="url(#paint4_radial_30_25)" fill-opacity="0.5" stroke="url(#paint5_linear_30_25)" stroke-width="1.93333" stroke-linejoin="round"/>
<defs>
<linearGradient id="paint0_linear_30_25" x1="241.666" y1="264.867" x2="88.9331" y2="7.73334" gradientUnits="userSpaceOnUse">
<stop stop-color="#00996C"/>
<stop offset="1" stop-color="#7AFFD8"/>
</linearGradient>
<linearGradient id="paint1_linear_30_25" x1="192.366" y1="289.033" x2="233.933" y2="42.5333" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0.56"/>
<stop offset="0.494792" stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white"/>
</linearGradient>
<radialGradient id="paint2_radial_30_25" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(185.6 110.2) rotate(147.858) scale(129.006 128.619)">
<stop offset="0.48614" stop-color="#00C58A"/>
<stop offset="1" stop-color="white" stop-opacity="0.21"/>
</radialGradient>
<radialGradient id="paint3_radial_30_25" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(108.266 160.467) rotate(90) scale(191.4 190.827)">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white"/>
</radialGradient>
<radialGradient id="paint4_radial_30_25" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(108.266 181.733) rotate(-90) scale(129.533 129.145)">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white"/>
</radialGradient>
<linearGradient id="paint5_linear_30_25" x1="105.366" y1="105.367" x2="105.366" y2="261" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0.6"/>
<stop offset="0.494792" stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white" stop-opacity="0.38"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -0,0 +1,7 @@
<template>
<UBanner icon="i-heroicons-wrench-screwdriver" :actions="[{ label: 'Go to Nuxt UI v2', to: 'https://ui.nuxt.com', trailingIcon: 'i-heroicons-arrow-right-20-solid', class: 'rounded-full' }]" :close="false">
<template #title>
You're looking at the documentation for <span class="font-semibold">Nuxt UI v3</span>!
</template>
</UBanner>
</template>

View File

@@ -0,0 +1,71 @@
<script setup lang="ts">
const route = useRoute()
// const items = [{
// label: 'Figma Kit',
// to: 'https://www.figma.com/community/file/1288455405058138934',
// target: '_blank'
// }, {
// label: 'Playground',
// to: 'https://stackblitz.com/edit/nuxt-ui',
// target: '_blank'
// }, {
// label: 'Roadmap',
// to: '/roadmap'
// }, {
// label: 'Releases',
// to: '/releases'
// }]
</script>
<template>
<USeparator icon="i-simple-icons-nuxtdotjs" class="h-px" />
<UFooter>
<template #left>
<NuxtLink v-if="route.path.startsWith('/pro')" to="https://ui.nuxt.com/pro/purchase" target="_blank" class="text-sm text-gray-500 dark:text-gray-400">
Purchase <span class="text-gray-900 dark:text-white">Nuxt UI Pro</span>
</NuxtLink>
<NuxtLink v-else to="https://github.com/nuxt/ui" target="_blank" class="text-sm text-gray-500 dark:text-gray-400">
Published under <span class="text-gray-900 dark:text-white">MIT License</span>
</NuxtLink>
</template>
<!-- <UNavigationMenu :items="items" variant="link" color="gray" /> -->
<template #right>
<UButton
aria-label="Nuxt Website"
icon="i-simple-icons-nuxtdotjs"
to="https://nuxt.com"
target="_blank"
color="gray"
variant="ghost"
/>
<UButton
aria-label="Nuxt UI on Discord"
icon="i-simple-icons-discord"
to="https://chat.nuxt.dev"
target="_blank"
color="gray"
variant="ghost"
/>
<UButton
aria-label="Nuxt on X"
icon="i-simple-icons-x"
to="https://x.com/nuxt_js"
target="_blank"
color="gray"
variant="ghost"
/>
<UButton
aria-label="Nuxt UI on GitHub"
icon="i-simple-icons-github"
to="https://github.com/nuxt/ui"
target="_blank"
color="gray"
variant="ghost"
/>
</template>
</UFooter>
</template>

View File

@@ -0,0 +1,55 @@
<script setup lang="ts">
import type { NavItem } from '@nuxt/content'
import type { NavigationMenuItem } from '@nuxt/ui'
const props = defineProps<{
links: NavigationMenuItem[]
}>()
const config = useRuntimeConfig().public
const navigation = inject<Ref<NavItem[]>>('navigation')
const items = computed(() => props.links.map(({ icon, ...link }) => link))
</script>
<template>
<UHeader>
<template #left>
<NuxtLink to="/" class="flex items-end gap-2 font-bold text-xl text-gray-900 dark:text-white" aria-label="Nuxt UI">
<Logo class="w-auto h-6" />
<UBadge :label="`v${config.version}`" variant="subtle" size="sm" class="-mb-[2px] rounded font-semibold" />
</NuxtLink>
</template>
<!-- <UNavigationMenu :items="items" variant="link" /> -->
<template #right>
<ColorPicker />
<UTooltip text="Search" :kbds="['meta', 'K']">
<UContentSearchButton />
</UTooltip>
<!-- <UColorModeButton /> -->
<UButton
color="gray"
variant="ghost"
to="https://github.com/nuxt/ui"
target="_blank"
icon="i-simple-icons-github"
aria-label="GitHub"
/>
</template>
<template #content>
<UNavigationMenu orientation="vertical" :items="items" class="-ml-2.5" />
<USeparator type="dashed" class="my-4" />
<UContentNavigation :navigation="navigation" />
</template>
</UHeader>
</template>

View File

@@ -0,0 +1,11 @@
<template>
<svg width="1020" height="200" viewBox="0 0 1020 200" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M377 200C379.16 200 381 198.209 381 196V103C381 103 386 112 395 127L434 194C435.785 197.74 439.744 200 443 200H470V50H443C441.202 50 439 51.4941 439 54V148L421 116L385 55C383.248 51.8912 379.479 50 376 50H350V200H377Z" fill="currentColor" />
<path d="M726 92H739C742.314 92 745 89.3137 745 86V60H773V92H800V116H773V159C773 169.5 778.057 174 787 174H800V200H783C759.948 200 745 185.071 745 160V116H726V92Z" fill="currentColor" />
<path d="M591 92V154C591 168.004 585.742 179.809 578 188C570.258 196.191 559.566 200 545 200C530.434 200 518.742 196.191 511 188C503.389 179.809 498 168.004 498 154V92H514C517.412 92 520.769 92.622 523 95C525.231 97.2459 526 98.5652 526 102V154C526 162.059 526.457 167.037 530 171C533.543 174.831 537.914 176 545 176C552.217 176 555.457 174.831 559 171C562.543 167.037 563 162.059 563 154V102C563 98.5652 563.769 96.378 566 94C567.96 91.9107 570.028 91.9599 573 92C573.411 92.0055 574.586 92 575 92H591Z" fill="currentColor" />
<path d="M676 144L710 92H684C680.723 92 677.812 93.1758 676 96L660 120L645 97C643.188 94.1758 639.277 92 636 92H611L645 143L608 200H634C637.25 200 640.182 196.787 642 194L660 167L679 195C680.818 197.787 683.75 200 687 200H713L676 144Z" fill="currentColor" />
<path d="M168 200H279C282.542 200 285.932 198.756 289 197C292.068 195.244 295.23 193.041 297 190C298.77 186.959 300.002 183.51 300 179.999C299.998 176.488 298.773 173.04 297 170.001L222 41C220.23 37.96 218.067 35.7552 215 34C211.933 32.2448 207.542 31 204 31C200.458 31 197.067 32.2448 194 34C190.933 35.7552 188.77 37.96 187 41L168 74L130 9.99764C128.228 6.95784 126.068 3.75491 123 2C119.932 0.245087 116.542 0 113 0C109.458 0 106.068 0.245087 103 2C99.9323 3.75491 96.7717 6.95784 95 9.99764L2 170.001C0.226979 173.04 0.00154312 176.488 1.90993e-06 179.999C-0.0015393 183.51 0.229648 186.959 2 190C3.77035 193.04 6.93245 195.244 10 197C13.0675 198.756 16.4578 200 20 200H90C117.737 200 137.925 187.558 152 164L186 105L204 74L259 168H186L168 200ZM89 168H40L113 42L150 105L125.491 147.725C116.144 163.01 105.488 168 89 168Z" fill="var(--color-primary-DEFAULT)" />
<path d="M958 60.0001H938C933.524 60.0001 929.926 59.9395 927 63C924.074 65.8905 925 67.5792 925 72V141C925 151.372 923.648 156.899 919 162C914.352 166.931 908.468 169 899 169C889.705 169 882.648 166.931 878 162C873.352 156.899 873 151.372 873 141V72.0001C873 67.5793 872.926 65.8906 870 63.0001C867.074 59.9396 863.476 60.0001 859 60.0001H840V141C840 159.023 845.016 173.458 855 184C865.156 194.542 879.893 200 899 200C918.107 200 932.844 194.542 943 184C953.156 173.458 958 159.023 958 141V60.0001Z" fill="var(--color-primary-DEFAULT)" />
<path fill-rule="evenodd" clip-rule="evenodd" d="M1000 60.0233L1020 60V77L1020 128V156.007L1020 181L1020 189.004C1020 192.938 1019.98 194.429 1017 197.001C1014.02 199.725 1009.56 200 1005 200H986.001V181.006L986 130.012V70.0215C986 66.1576 986.016 64.5494 989 62.023C991.819 59.6358 995.437 60.0233 1000 60.0233Z" fill="var(--color-primary-DEFAULT)" />
</svg>
</template>

View File

@@ -0,0 +1,62 @@
<template>
<UPopover mode="hover" :ui="{ content: 'p-2' }">
<template #default="{ open }">
<UButton
icon="i-heroicons-swatch-20-solid"
color="gray"
:variant="open ? 'soft' : 'ghost'"
square
aria-label="Color picker"
:ui="{ leadingIcon: 'text-primary-500 dark:text-primary-400' }"
/>
</template>
<template #content>
<fieldset class="grid grid-cols-5 gap-px">
<legend class="text-[11px] font-bold mb-1">
Primary
</legend>
<ColorPickerPill v-for="color in primaryColors" :key="color" :color="color" :selected="primary" @select="primary = color" />
</fieldset>
<USeparator class="my-2" type="dashed" />
<fieldset class="grid grid-cols-5 gap-px">
<legend class="text-[11px] font-bold mb-1">
Gray
</legend>
<ColorPickerPill v-for="color in grayColors" :key="color" :color="color" :selected="gray" @select="gray = color" />
</fieldset>
</template>
</UPopover>
</template>
<script setup lang="ts">
const appConfig = useAppConfig()
// Computed
const primaryColors = ['red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose']
const primary = computed({
get() {
return appConfig.ui.colors.primary
},
set(option) {
appConfig.ui.colors.primary = option
window.localStorage.setItem('nuxt-ui-primary', appConfig.ui.colors.primary)
}
})
const grayColors = ['slate', 'cool', 'zinc', 'neutral', 'stone']
const gray = computed({
get() {
return appConfig.ui.colors.gray
},
set(option) {
appConfig.ui.colors.gray = option
window.localStorage.setItem('nuxt-ui-gray', appConfig.ui.colors.gray)
}
})
</script>

View File

@@ -0,0 +1,24 @@
<template>
<UTooltip :text="color" class="capitalize" :portal="false">
<UButton
color="gray"
square
:variant="color === selected ? 'soft' : 'ghost'"
@click.stop.prevent="$emit('select')"
>
<span
class="inline-block w-3 h-3 rounded-full"
:class="`bg-[--color-light] dark:bg-[--color-dark]`"
:style="{
'--color-light': `var(--color-${color}-500)`,
'--color-dark': `var(--color-${color}-400)`
}"
/>
</UButton>
</UTooltip>
</template>
<script setup lang="ts">
defineProps<{ color: string, selected: string }>()
defineEmits(['select'])
</script>

View File

@@ -0,0 +1,265 @@
<!-- eslint-disable no-useless-escape -->
<script setup lang="ts">
import json5 from 'json5'
import { upperFirst, camelCase, kebabCase } from 'scule'
import * as theme from '#build/ui'
import { get, set } from '#ui/utils'
const props = defineProps<{
class?: any
/** List of props to ignore in selection */
ignore?: string[]
/** List of props to hide from code and selection */
hide?: string[]
/** List of props to externalize in script setup */
external?: string[]
/** List of items for each prop */
items?: { [key: string]: string[] }
props?: { [key: string]: any }
slots?: { [key: string]: any }
/**
* Whether to format the code with Prettier
* @defaultValue false
*/
prettier?: boolean
/**
* Whether to collapse the code block
* @defaultValue false
*/
collapse?: boolean
}>()
const route = useRoute()
const { $prettier } = useNuxtApp()
const camelName = camelCase(route.params.slug[route.params.slug.length - 1])
const name = `U${upperFirst(camelName)}`
const componentProps = reactive({ ...(props.props || {}) })
function getComponentProp(name: string) {
return get(componentProps, name) || undefined
}
function setComponentProp(name: string, value: any) {
set(componentProps, name, value)
}
const componentTheme = theme[camelName]
const meta = await fetchComponentMeta(name as any)
function mapKeys(obj, parentKey = '') {
return Object.entries(obj || {}).flatMap(([key, value]) => {
if (typeof value === 'object' && !Array.isArray(value)) {
return mapKeys(value, key)
}
const fullKey = parentKey ? `${parentKey}.${key}` : key
return !props.ignore?.includes(fullKey) && !props.hide?.includes(fullKey) ? fullKey : undefined
}).filter(Boolean)
}
const options = computed(() => {
const keys = mapKeys(props.props || {})
return keys.map((key) => {
const prop = meta?.meta?.props?.find((prop: any) => prop.name === key)
const propItems = get(props.items, key, [])
const items = propItems.length
? propItems.map(item => ({
value: item,
label: item
}))
: prop?.type === 'boolean'
? [{ value: true, label: 'true' }, { value: false, label: 'false' }]
: Object.keys(componentTheme?.variants?.[key] || {}).map(variant => ({
value: variant,
label: variant,
chip: key.toLowerCase().endsWith('color') ? { color: variant } : undefined
})).filter(variant => key.toLowerCase().endsWith('color') ? !['error'].includes(variant.value) : true)
return {
name: key,
label: key,
type: prop?.type,
items
}
})
})
const code = computed(() => {
let code = ''
if (props.collapse) {
code += `::code-collapse
`
}
code += `\`\`\`vue`
if (props.external?.length) {
code += `
<script setup lang="ts">
`
for (const key of props.external) {
code += `const ${key === 'modelValue' ? 'value' : key} = ref(${json5.stringify(componentProps[key], null, 2).replace(/,([ |\t\n]+[}|\]])/g, '$1')})
`
}
code += `<\/script>
`
}
code += `
<template>
<${name}`
for (const [key, value] of Object.entries(componentProps)) {
if (key === 'modelValue') {
code += ` v-model="value"`
continue
}
if (value === undefined || value === null || value === '' || props.hide?.includes(key)) {
continue
}
const prop = meta?.meta?.props?.find((prop: any) => prop.name === key)
const name = kebabCase(key)
if (typeof value === 'boolean') {
if (value && prop?.default === 'true') {
continue
}
if (!value && (!prop?.default || prop.default === 'false')) {
continue
}
code += value ? ` ${name}` : ` :${key}="false"`
} else if (typeof value === 'object') {
const parsedValue = !props.external?.includes(key) ? json5.stringify(value, null, 2).replace(/,([ |\t\n]+[}|\])])/g, '$1') : key
code += ` :${name}="${parsedValue}"`
} else {
const propDefault = prop && (prop.default ?? prop.tags?.find(tag => tag.name === 'defaultValue')?.text ?? componentTheme?.defaultVariants?.[prop.name])
if (propDefault === value) {
continue
}
code += ` ${prop?.type.includes('number') ? ':' : ''}${name}="${value}"`
}
}
if (props.slots) {
code += `>`
for (const [key, value] of Object.entries(props.slots)) {
if (key === 'default') {
code += props.slots.default
} else {
code += `
<template #${key}>
${value}
</template>`
}
}
code += (Object.keys(props.slots).length > 1 ? '\n' : '') + `</${name}>`
} else {
code += ' />'
}
code += `\n</template>
\`\`\`
`
if (props.collapse) {
code += `
::`
}
return code
})
const { data: ast } = await useAsyncData(`component-code-${name}-${JSON.stringify({ props: componentProps, slots: props.slots })}`, async () => {
if (!props.prettier) {
return parseMarkdown(code.value)
}
let formatted = ''
try {
formatted = await $prettier.format(code.value, {
trailingComma: 'none',
semi: false,
singleQuote: true
})
} catch {
formatted = code.value
}
return parseMarkdown(formatted)
}, { watch: [code] })
</script>
<template>
<div class="my-5">
<div>
<div v-if="options.length" class="flex items-center gap-2.5 border border-gray-300 dark:border-gray-700 border-b-0 relative rounded-t-md px-4 py-2.5 overflow-x-auto">
<template v-for="option in options" :key="option.name">
<UFormField
:label="option.label"
size="sm"
class="inline-flex ring ring-gray-300 dark:ring-gray-700 rounded"
:ui="{
wrapper: 'bg-gray-50 dark:bg-gray-800/50 rounded-l flex border-r border-gray-300 dark:border-gray-700',
label: 'text-gray-500 dark:text-gray-400 px-2 py-1.5',
container: 'mt-0'
}"
>
<USelectMenu
v-if="option.items?.length"
:model-value="getComponentProp(option.name)"
:items="option.items"
value-key="value"
color="gray"
variant="soft"
class="rounded rounded-l-none min-w-12"
:search="false"
:class="[option.name.toLowerCase().endsWith('color') && 'pl-6']"
:ui="{ itemLeadingChip: 'size-2' }"
@update:model-value="setComponentProp(option.name, $event)"
>
<template v-if="option.name.toLowerCase().endsWith('color')" #leading="{ modelValue, ui }">
<UChip
v-if="modelValue"
inset
standalone
:color="(modelValue as any)"
:size="ui.itemLeadingChipSize()"
class="size-2"
/>
</template>
</USelectMenu>
<UInput
v-else
:type="option.type?.includes('number') ? 'number' : 'text'"
:model-value="getComponentProp(option.name)"
color="gray"
variant="soft"
:ui="{ base: 'rounded rounded-l-none min-w-12' }"
@update:model-value="setComponentProp(option.name, $event)"
/>
</UFormField>
</template>
</div>
<div class="flex border border-b-0 border-gray-300 dark:border-gray-700 relative p-4 z-[1]" :class="[!options.length && 'rounded-t-md', props.class]">
<component :is="name" v-bind="componentProps" @update:model-value="!!componentProps.modelValue && setComponentProp('modelValue', $event)">
<template v-for="slot in Object.keys(slots || {})" :key="slot" #[slot]>
<ContentSlot :name="slot" unwrap="p">
{{ slots[slot] }}
</ContentSlot>
</template>
</component>
</div>
</div>
<MDCRenderer v-if="ast" :body="ast.body" :data="ast.data" class="[&_pre]:!rounded-t-none [&_div.my-5]:!mt-0" />
</div>
</template>

View File

@@ -0,0 +1,37 @@
<script setup lang="ts">
import { upperFirst, camelCase } from 'scule'
const route = useRoute()
const camelName = camelCase(route.params.slug[route.params.slug.length - 1])
const name = `U${upperFirst(camelName)}`
const meta = await fetchComponentMeta(name as any)
</script>
<template>
<ProseTable>
<ProseThead>
<ProseTr>
<ProseTh>
Event
</ProseTh>
<ProseTh>
Type
</ProseTh>
</ProseTr>
</ProseThead>
<ProseTbody>
<ProseTr v-for="event in meta.meta.events" :key="event.name">
<ProseTd>
<ProseCodeInline>
{{ event.name }}
</ProseCodeInline>
</ProseTd>
<ProseTd>
<HighlightInlineType v-if="event.type" :type="event.type" />
</ProseTd>
</ProseTr>
</ProseTbody>
</ProseTable>
</template>

View File

@@ -0,0 +1,86 @@
<script setup lang="ts">
import { camelCase } from 'scule'
const props = withDefaults(defineProps<{
name: string
class?: any
props?: { [key: string]: any }
/**
* Whether to format the code with Prettier
* @defaultValue false
*/
prettier?: boolean
/**
* Whether to collapse the code block
* @defaultValue false
*/
collapse?: boolean
/**
* Whether to show the preview
* When `false`, the filename will be shown instead
* @defaultValue true
*/
preview?: boolean
}>(), {
preview: true
})
const { $prettier } = useNuxtApp()
const camelName = camelCase(props.name)
const data = await fetchComponentExample(camelName)
const componentProps = reactive({ ...(props.props || {}) })
const code = computed(() => {
let code = ''
if (props.collapse) {
code += `::code-collapse
`
}
code += `\`\`\`vue${props.preview ? '' : ` [${data.pascalName}.vue]`}
${data?.code ?? ''}
\`\`\``
if (props.collapse) {
code += `
::`
}
return code
})
const { data: ast } = await useAsyncData(`component-example-${camelName}`, async () => {
if (!props.prettier) {
return parseMarkdown(code.value)
}
let formatted = ''
try {
formatted = await $prettier.format(code.value, {
trailingComma: 'none',
semi: false,
singleQuote: true
})
} catch {
formatted = code.value
}
return parseMarkdown(formatted)
}, { watch: [code] })
</script>
<template>
<div class="my-5">
<div v-if="preview">
<div class="flex border border-b-0 border-gray-300 dark:border-gray-700 relative p-4 rounded-t-md z-[1]" :class="[props.class]">
<component :is="camelName" v-bind="componentProps" />
</div>
</div>
<MDCRenderer v-if="ast" :body="ast.body" :data="ast.data" class="[&_pre]:!rounded-t-none [&_div.my-5]:!mt-0" />
</div>
</template>

View File

@@ -0,0 +1,85 @@
<script setup lang="ts">
import { upperFirst, camelCase } from 'scule'
import type { ComponentMeta } from 'vue-component-meta'
import * as theme from '#build/ui'
const props = defineProps<{
ignore?: string[]
}>()
const route = useRoute()
const camelName = camelCase(route.params.slug[route.params.slug.length - 1])
const name = `U${upperFirst(camelName)}`
const componentTheme = theme[camelName]
const meta = await fetchComponentMeta(name as any)
const metaProps: ComputedRef<ComponentMeta['props']> = computed(() => {
if (!meta?.meta?.props?.length) {
return []
}
return meta.meta.props.filter((prop) => {
return !props.ignore?.includes(prop.name)
}).map((prop) => {
prop.default = prop.default ?? prop.tags?.find(tag => tag.name === 'defaultValue')?.text ?? componentTheme?.defaultVariants?.[prop.name]
// @ts-expect-error - Type is not correct
prop.type = !prop.type.startsWith('boolean') && prop.schema?.kind === 'enum' && Object.keys(prop.schema.schema)?.length ? Object.values(prop.schema.schema).map(schema => schema?.type ? schema.type : schema).join(' | ') : prop.type
return prop
}).sort((a, b) => {
if (a.name === 'as') {
return -1
}
if (b.name === 'as') {
return 1
}
if (a.name === 'ui') {
return 1
}
if (b.name === 'ui') {
return -1
}
})
})
</script>
<template>
<ProseTable>
<ProseThead>
<ProseTr>
<ProseTh>
Prop
</ProseTh>
<ProseTh>
Default
</ProseTh>
<ProseTh>
Type
</ProseTh>
</ProseTr>
</ProseThead>
<ProseTbody>
<ProseTr v-for="prop in metaProps" :key="prop.name">
<ProseTd>
<ProseCodeInline>
{{ prop.name }}
</ProseCodeInline>
</ProseTd>
<ProseTd>
<HighlightInlineType v-if="prop.default" :type="prop.default" />
</ProseTd>
<ProseTd>
<HighlightInlineType v-if="prop.type" :type="prop.type" />
<MDC v-if="prop.description" :value="prop.description" class="text-gray-600 dark:text-gray-300 mt-1" />
<ComponentPropsSchema v-if="prop.schema" :prop="prop" :ignore="ignore" />
</ProseTd>
</ProseTr>
</ProseTbody>
</ProseTable>
</template>

View File

@@ -0,0 +1,47 @@
<script setup lang="ts">
import type { PropertyMeta } from 'vue-component-meta'
const props = defineProps<{
prop: PropertyMeta
ignore?: string[]
}>()
function getSchemaProps(schema: PropertyMeta['schema']) {
if (!schema || typeof schema === 'string' || !schema.schema) {
return []
}
if (schema.kind === 'object') {
return Object.values(schema.schema).filter(prop => !props.ignore?.includes(prop.name))
}
return (Array.isArray(schema.schema) ? schema.schema : Object.values(schema.schema)).flatMap(getSchemaProps)
}
const schemaProps = computed(() => {
return getSchemaProps(props.prop.schema).map((prop) => {
const defaultValue = prop.default ?? prop.tags?.find(tag => tag.name === 'defaultValue')?.text
let description = prop.description
if (defaultValue) {
description = description ? `${description} Defaults to \`${defaultValue}\`{lang="ts-type"}.` : `Defaults to \`${defaultValue}\`{lang="ts-type"}.`
}
return {
...prop,
description
}
})
})
</script>
<template>
<Collapsible v-if="schemaProps?.length" class="mt-1">
<ProseUl>
<ProseLi v-for="schemaProp in schemaProps" :key="schemaProp.name">
<HighlightInlineType :type="`${schemaProp.name}${schemaProp.required === false ? '?' : ''}: ${schemaProp.type}`" />
<MDC v-if="schemaProp.description" :value="schemaProp.description" class="text-gray-500 dark:text-gray-400 my-1" />
</ProseLi>
</ProseUl>
</Collapsible>
</template>

View File

@@ -0,0 +1,39 @@
<script setup lang="ts">
import { upperFirst, camelCase } from 'scule'
const route = useRoute()
const camelName = camelCase(route.params.slug[route.params.slug.length - 1])
const name = `U${upperFirst(camelName)}`
const meta = await fetchComponentMeta(name as any)
</script>
<template>
<ProseTable>
<ProseThead>
<ProseTr>
<ProseTh>
Slot
</ProseTh>
<ProseTh>
Type
</ProseTh>
</ProseTr>
</ProseThead>
<ProseTbody>
<ProseTr v-for="slot in meta.meta.slots" :key="slot.name">
<ProseTd>
<ProseCodeInline>
{{ slot.name }}
</ProseCodeInline>
</ProseTd>
<ProseTd>
<HighlightInlineType v-if="slot.type" :type="slot.type" />
<MDC v-if="slot.description" :value="slot.description" class="text-gray-600 dark:text-gray-300 mt-1" />
</ProseTd>
</ProseTr>
</ProseTbody>
</ProseTable>
</template>

View File

@@ -0,0 +1,69 @@
<script setup lang="ts">
import json5 from 'json5'
import { camelCase } from 'scule'
import * as theme from '#build/ui'
const route = useRoute()
const name = camelCase(route.params.slug[route.params.slug.length - 1])
const strippedCompoundVariants = ref(false)
function stripCompoundVariants(component) {
if (component.compoundVariants) {
component.compoundVariants = component.compoundVariants.filter((compoundVariant: any) => {
if (compoundVariant.color) {
if (!['primary', 'gray'].includes(compoundVariant.color)) {
strippedCompoundVariants.value = true
return false
}
}
if (compoundVariant.highlightColor) {
if (!['primary', 'gray'].includes(compoundVariant.highlightColor)) {
strippedCompoundVariants.value = true
return false
}
}
return true
})
}
return component
}
const component = computed(() => {
return {
ui: {
[name]: stripCompoundVariants(theme[name])
}
}
})
const { data: ast } = await useAsyncData(`component-theme-${name}`, async () => {
const md = `
::code-collapse
\`\`\`ts [app.config.ts]
export default defineAppConfig(${json5.stringify(component.value, null, 2).replace(/,([ |\t\n]+[}|\])])/g, '$1')})
\`\`\`\
::
${strippedCompoundVariants.value
? `
::callout{icon="i-simple-icons-github" to="https://github.com/nuxt/ui/blob/v3/src/theme/${name}.ts"}
Some colors in \`compoundVariants\` are omitted for readability. Check out the source code on GitHub.
::`
: ''}
`
return parseMarkdown(md)
})
</script>
<template>
<MDCRenderer v-if="ast" :body="ast.body" :data="ast.data" />
</template>

View File

@@ -0,0 +1,29 @@
<script setup lang="ts">
const props = defineProps<{
type: string
}>()
const type = computed(() => {
let type = props.type
if (type.includes(', "as" | "asChild" | "forceMount">')) {
type = type.replace(`, "as" | "asChild" | "forceMount">`, ``).replace('Omit<', '')
}
if (type.includes(', "as" | "asChild">')) {
type = type.replace(', "as" | "asChild">', '').replace('Omit<', '')
}
if (type.startsWith('undefined |')) {
type = type.replace('undefined |', '')
}
if (type.endsWith('| undefined')) {
type = type.replace('| undefined', '')
}
return type
})
const { data: ast } = await useAsyncData(`hightlight-inline-code-${type.value}`, () => parseMarkdown(`\`${type.value}\`{lang="ts-type"}`))
</script>
<template>
<MDCRenderer v-if="ast" :body="ast.body" :data="ast.data" />
</template>

View File

@@ -0,0 +1,27 @@
<script setup lang="ts">
import json5 from 'json5'
const appConfig = useAppConfig()
const icons = computed(() => {
return {
ui: {
icons: appConfig.ui.icons
}
}
})
const { data: ast } = await useAsyncData(`icons-theme`, async () => {
const md = `
\`\`\`ts [app.config.ts]
export default defineAppConfig(${json5.stringify(icons.value, null, 2).replace(/,([ |\t\n]+[}|\])])/g, '$1')})
\`\`\`\
`
return parseMarkdown(md)
})
</script>
<template>
<MDCRenderer v-if="ast" :body="ast.body" :data="ast.data" />
</template>

View File

@@ -0,0 +1,21 @@
<template>
<div class="relative overflow-hidden rounded border border-dashed border-gray-400 dark:border-gray-500 opacity-75 px-4 flex items-center justify-center">
<svg class="absolute inset-0 h-full w-full stroke-gray-900/10 dark:stroke-white/10" fill="none">
<defs>
<pattern
id="pattern-5c1e4f0e-62d5-498b-8ff0-cf77bb448c8e"
x="0"
y="0"
width="10"
height="10"
patternUnits="userSpaceOnUse"
>
<path d="M-3 13 15-5M-5 5l18-18M-1 21 17 3" />
</pattern>
</defs>
<rect stroke="none" fill="url(#pattern-5c1e4f0e-62d5-498b-8ff0-cf77bb448c8e)" width="100%" height="100%" />
</svg>
<slot />
</div>
</template>

View File

@@ -0,0 +1,24 @@
<script setup lang="ts">
const items = [
{
label: 'Icons',
icon: 'i-heroicons-face-smile'
},
{
label: 'Colors',
icon: 'i-heroicons-swatch'
},
{
label: 'Components',
icon: 'i-heroicons-cube-transparent'
}
]
</script>
<template>
<UAccordion :items="items">
<template #body="{ item }">
This is the {{ item.label }} panel.
</template>
</UAccordion>
</template>

View File

@@ -0,0 +1,26 @@
<script setup lang="ts">
const items = [
{
label: 'Icons',
icon: 'i-heroicons-face-smile'
},
{
label: 'Colors',
icon: 'i-heroicons-swatch'
},
{
label: 'Components',
icon: 'i-heroicons-cube-transparent'
}
]
</script>
<template>
<UAccordion :items="items">
<template #content="{ item }">
<p class="pb-3.5 text-sm text-gray-500 dark:text-gray-400">
This is the {{ item.label }} panel.
</p>
</template>
</UAccordion>
</template>

View File

@@ -0,0 +1,30 @@
<script setup lang="ts">
const items = [
{
label: 'Icons',
icon: 'i-heroicons-face-smile',
content: 'You have nothing to do, @nuxt/icon will handle it automatically.'
},
{
label: 'Colors',
icon: 'i-heroicons-swatch',
slot: 'colors',
content: 'Choose a primary and a gray color from your Tailwind CSS theme.'
},
{
label: 'Components',
icon: 'i-heroicons-cube-transparent',
content: 'You can customize components by using the `class` / `ui` props or in your app.config.ts.'
}
]
</script>
<template>
<UAccordion :items="items">
<template #colors="{ item }">
<p class="text-sm pb-3.5 text-primary-500 dark:text-primary-400">
{{ item.content }}
</p>
</template>
</UAccordion>
</template>

View File

@@ -0,0 +1,32 @@
<script setup lang="ts">
const items = [
{
label: 'Icons',
icon: 'i-heroicons-face-smile',
content: 'You have nothing to do, @nuxt/icon will handle it automatically.'
},
{
label: 'Colors',
icon: 'i-heroicons-swatch',
content: 'Choose a primary and a gray color from your Tailwind CSS theme.'
},
{
label: 'Components',
icon: 'i-heroicons-cube-transparent',
content: 'You can customize components by using the `class` / `ui` props or in your app.config.ts.'
}
]
const active = ref('0')
// Note: This is for demonstration purposes only. Don't do this at home.
onMounted(() => {
setInterval(() => {
active.value = String((Number(active.value) + 1) % items.length)
}, 2000)
})
</script>
<template>
<UAccordion v-model="active" :items="items" />
</template>

View File

@@ -0,0 +1,24 @@
<template>
<UAvatarGroup>
<UChip inset color="green">
<UAvatar
src="https://avatars.githubusercontent.com/u/739984?v=4"
alt="Benjamin Canac"
/>
</UChip>
<UChip inset color="amber">
<UAvatar
src="https://avatars.githubusercontent.com/u/25613751?v=4"
alt="Romain Hamel"
/>
</UChip>
<UChip inset color="red">
<UAvatar
src="https://avatars.githubusercontent.com/u/19751938?v=4"
alt="Neil Richter"
/>
</UChip>
</UAvatarGroup>
</template>

View File

@@ -0,0 +1,39 @@
<template>
<UAvatarGroup>
<ULink
to="https://github.com/benjamincanac"
target="_blank"
class="hover:ring-primary-500 dark:hover:ring-primary-400 transition"
raw
>
<UAvatar
src="https://avatars.githubusercontent.com/u/739984?v=4"
alt="Benjamin Canac"
/>
</ULink>
<ULink
to="https://github.com/romhml"
target="_blank"
class="hover:ring-primary-500 dark:hover:ring-primary-400 transition"
raw
>
<UAvatar
src="https://avatars.githubusercontent.com/u/25613751?v=4"
alt="Romain Hamel"
/>
</ULink>
<ULink
to="https://github.com/noook"
target="_blank"
class="hover:ring-primary-500 dark:hover:ring-primary-400 transition"
raw
>
<UAvatar
src="https://avatars.githubusercontent.com/u/19751938?v=4"
alt="Neil Richter"
/>
</ULink>
</UAvatarGroup>
</template>

View File

@@ -0,0 +1,24 @@
<template>
<UAvatarGroup>
<UTooltip text="benjamincanac">
<UAvatar
src="https://avatars.githubusercontent.com/u/739984?v=4"
alt="Benjamin Canac"
/>
</UTooltip>
<UTooltip text="romhml">
<UAvatar
src="https://avatars.githubusercontent.com/u/25613751?v=4"
alt="Romain Hamel"
/>
</UTooltip>
<UTooltip text="noook">
<UAvatar
src="https://avatars.githubusercontent.com/u/19751938?v=4"
alt="Neil Richter"
/>
</UTooltip>
</UAvatarGroup>
</template>

View File

@@ -0,0 +1,8 @@
<template>
<UChip inset>
<UAvatar
src="https://avatars.githubusercontent.com/u/739984?v=4"
alt="Benjamin Canac"
/>
</UChip>
</template>

View File

@@ -0,0 +1,8 @@
<template>
<UTooltip text="Benjamin Canac">
<UAvatar
src="https://avatars.githubusercontent.com/u/739984?v=4"
alt="Benjamin Canac"
/>
</UTooltip>
</template>

View File

@@ -0,0 +1,32 @@
<script setup lang="ts">
const items = [{
label: 'Home',
to: '/'
}, {
slot: 'dropdown',
icon: 'i-heroicons-ellipsis-horizontal',
children: [{
label: 'Documentation'
}, {
label: 'Themes'
}, {
label: 'GitHub'
}]
}, {
label: 'Components',
to: '/components'
}, {
label: 'Breadcrumb',
to: '/components/breadcrumb'
}]
</script>
<template>
<UBreadcrumb :items="items">
<template #dropdown="{ item }">
<UDropdownMenu :items="item.children">
<UButton :icon="item.icon" color="gray" variant="link" class="p-0.5" />
</UDropdownMenu>
</template>
</UBreadcrumb>
</template>

View File

@@ -0,0 +1,20 @@
<script setup lang="ts">
const items = [{
label: 'Home',
to: '/'
}, {
label: 'Components',
to: '/components'
}, {
label: 'Breadcrumb',
to: '/components/breadcrumb'
}]
</script>
<template>
<UBreadcrumb :items="items">
<template #separator>
<span class="mx-2 text-gray-500 dark:text-gray-400">/</span>
</template>
</UBreadcrumb>
</template>

View File

@@ -0,0 +1,33 @@
<script setup lang="ts">
const items = [{
label: 'Team',
icon: 'i-heroicons-users'
}, {
label: 'Invite users',
icon: 'i-heroicons-user-plus',
children: [{
label: 'Invite by email',
icon: 'i-heroicons-paper-airplane'
}, {
label: 'Invite by link',
icon: 'i-heroicons-link'
}]
}, {
label: 'New team',
icon: 'i-heroicons-plus'
}]
</script>
<template>
<UButtonGroup>
<UButton color="gray" variant="subtle" label="Settings" />
<UDropdownMenu :items="items">
<UButton
color="gray"
variant="outline"
icon="i-heroicons-chevron-down-20-solid"
/>
</UDropdownMenu>
</UButtonGroup>
</template>

View File

@@ -0,0 +1,13 @@
<template>
<UButtonGroup>
<UInput color="gray" variant="outline" placeholder="Enter token" />
<UTooltip text="Copy to clipboard">
<UButton
color="gray"
variant="subtle"
icon="i-heroicons-clipboard-document"
/>
</UTooltip>
</UButtonGroup>
</template>

View File

@@ -0,0 +1,13 @@
<template>
<UCard>
<template #header>
<Placeholder class="h-8" />
</template>
<Placeholder class="h-32" />
<template #footer>
<Placeholder class="h-8" />
</template>
</UCard>
</template>

View File

@@ -0,0 +1,26 @@
<script setup lang="ts">
const statuses = ['online', 'away', 'busy', 'offline']
const status = ref(statuses[0])
const color = computed(() => ({
online: 'green',
away: 'amber',
busy: 'red',
offline: 'gray'
})[status.value] as any)
const show = computed(() => status.value !== 'offline')
// Note: This is for demonstration purposes only. Don't do this at home.
onMounted(() => {
setInterval(() => {
status.value = statuses[(statuses.indexOf(status.value) + 1) % statuses.length]
}, 1000)
})
</script>
<template>
<UChip :color="color" :show="show" inset>
<UAvatar src="https://avatars.githubusercontent.com/u/739984?v=4" />
</UChip>
</template>

View File

@@ -0,0 +1,19 @@
<template>
<UCollapsible class="w-48">
<UButton
class="group"
label="Open"
color="gray"
variant="subtle"
trailing-icon="i-heroicons-chevron-down-20-solid"
:ui="{
trailingIcon: 'group-data-[state=open]:rotate-180 transition-transform duration-200'
}"
block
/>
<template #content>
<Placeholder class="h-48" />
</template>
</UCollapsible>
</template>

View File

@@ -0,0 +1,23 @@
<script setup lang="ts">
const open = ref(true)
defineShortcuts({
o: () => open.value = !open.value
})
</script>
<template>
<UCollapsible v-model:open="open" class="w-48">
<UButton
label="Open"
color="gray"
variant="subtle"
trailing-icon="i-heroicons-chevron-down-20-solid"
block
/>
<template #content>
<Placeholder class="h-48" />
</template>
</UCollapsible>
</template>

View File

@@ -0,0 +1,5 @@
<template>
<UContainer>
<Placeholder class="h-32" />
</UContainer>
</template>

View File

@@ -0,0 +1,28 @@
<script setup lang="ts">
const loading = ref(true)
const items = [{
label: 'Refresh the Page',
slot: 'refresh'
}, {
label: 'Clear Cookies and Refresh'
}, {
label: 'Clear Cache and Refresh'
}]
</script>
<template>
<UContextMenu :items="items" class="w-48">
<div class="flex items-center justify-center rounded-md border border-dashed border-gray-300 dark:border-gray-700 text-sm aspect-video w-72">
Right click here
</div>
<template #refresh-label>
{{ loading ? 'Refreshing...' : 'Refresh the Page' }}
</template>
<template #refresh-trailing>
<UIcon v-if="loading" name="i-heroicons-arrow-path-20-solid" class="shrink-0 size-5 text-primary-500 dark:text-primary-400 animate-spin" />
</template>
</UContextMenu>
</template>

View File

@@ -0,0 +1,34 @@
<script setup lang="ts">
const searchTerm = ref('')
const { data: users, status } = await useFetch('https://jsonplaceholder.typicode.com/users', {
params: { q: searchTerm },
transform: (data: any[]) => {
return data?.map(user => ({ id: user.id, label: user.name, suffix: user.email, avatar: { src: `https://i.pravatar.cc/120?img=${user.id}` } })) || []
},
lazy: true
})
const groups = computed(() => [{
id: 'users',
label: searchTerm.value ? `Users matching “${searchTerm.value}”...` : 'Users',
items: users.value || [],
filter: false
}])
</script>
<template>
<UDrawer>
<UButton label="Search users..." color="gray" variant="subtle" icon="i-heroicons-magnifying-glass" />
<template #content>
<UCommandPalette
v-model:search-term="searchTerm"
:loading="status === 'pending'"
:groups="groups"
placeholder="Search users..."
class="h-96 border-t border-gray-200 dark:border-gray-800"
/>
</template>
</UDrawer>
</template>

View File

@@ -0,0 +1,18 @@
<script setup lang="ts">
const open = ref(false)
</script>
<template>
<UDrawer v-model:open="open" title="Drawer with footer" description="This is useful when you want a form in a Drawer.">
<UButton label="Open" color="gray" variant="subtle" trailing-icon="i-heroicons-chevron-up-20-solid" />
<template #body>
<Placeholder class="h-48" />
</template>
<template #footer>
<UButton label="Submit" color="gray" class="justify-center" />
<UButton label="Cancel" color="gray" variant="outline" class="justify-center" @click="open = false" />
</template>
</UDrawer>
</template>

View File

@@ -0,0 +1,17 @@
<script setup lang="ts">
const open = ref(false)
defineShortcuts({
o: () => open.value = !open.value
})
</script>
<template>
<UDrawer v-model:open="open">
<UButton label="Open" color="gray" variant="subtle" trailing-icon="i-heroicons-chevron-up-20-solid" />
<template #content>
<Placeholder class="h-48 m-4" />
</template>
</UDrawer>
</template>

View File

@@ -0,0 +1,23 @@
<script setup lang="ts">
const items = [{
label: 'Profile',
icon: 'i-heroicons-user',
slot: 'profile'
}, {
label: 'Billing',
icon: 'i-heroicons-credit-card'
}, {
label: 'Settings',
icon: 'i-heroicons-cog'
}]
</script>
<template>
<UDropdownMenu :items="items" class="w-48">
<UButton label="Open" color="gray" variant="outline" icon="i-heroicons-bars-3" />
<template #profile-trailing>
<UIcon name="i-heroicons-check-badge" class="shrink-0 size-5 text-primary-500 dark:text-primary-400" />
</template>
</UDropdownMenu>
</template>

View File

@@ -0,0 +1,24 @@
<script setup lang="ts">
const open = ref(false)
defineShortcuts({
o: () => open.value = !open.value
})
const items = [{
label: 'Profile',
icon: 'i-heroicons-user'
}, {
label: 'Billing',
icon: 'i-heroicons-credit-card'
}, {
label: 'Settings',
icon: 'i-heroicons-cog'
}]
</script>
<template>
<UDropdownMenu v-model:open="open" :items="items" class="w-48">
<UButton label="Open" color="gray" variant="outline" icon="i-heroicons-bars-3" />
</UDropdownMenu>
</template>

View File

@@ -0,0 +1,34 @@
<script setup lang="ts">
const searchTerm = ref('')
const { data: users, status } = await useFetch('https://jsonplaceholder.typicode.com/users', {
params: { q: searchTerm },
transform: (data: any[]) => {
return data?.map(user => ({ id: user.id, label: user.name, suffix: user.email, avatar: { src: `https://i.pravatar.cc/120?img=${user.id}` } })) || []
},
lazy: true
})
const groups = computed(() => [{
id: 'users',
label: searchTerm.value ? `Users matching “${searchTerm.value}”...` : 'Users',
items: users.value || [],
filter: false
}])
</script>
<template>
<UModal>
<UButton label="Search users..." color="gray" variant="subtle" icon="i-heroicons-magnifying-glass" />
<template #content>
<UCommandPalette
v-model:search-term="searchTerm"
:loading="status === 'pending'"
:groups="groups"
placeholder="Search users..."
class="h-96"
/>
</template>
</UModal>
</template>

View File

@@ -0,0 +1,15 @@
<script setup lang="ts">
const modal = useModal()
defineProps<{
count: number
}>()
</script>
<template>
<UModal :title="`This modal was opened programmatically ${count} times`">
<template #footer>
<UButton color="gray" label="Close" @click="modal.close()" />
</template>
</UModal>
</template>

View File

@@ -0,0 +1,18 @@
<script setup lang="ts">
const open = ref(false)
</script>
<template>
<UModal v-model:open="open" title="Modal with footer" description="This is useful when you want a form in a Modal." :ui="{ footer: 'justify-end' }">
<UButton label="Open" color="gray" variant="subtle" />
<template #body>
<Placeholder class="h-48" />
</template>
<template #footer>
<UButton label="Cancel" color="gray" variant="outline" @click="open = false" />
<UButton label="Submit" color="gray" />
</template>
</UModal>
</template>

View File

@@ -0,0 +1,22 @@
<script setup lang="ts">
const first = ref(false)
const second = ref(false)
</script>
<template>
<UModal v-model:open="first" title="First modal" :ui="{ footer: 'justify-end' }">
<UButton color="gray" variant="subtle" label="Open" />
<template #footer>
<UButton label="Close" color="gray" variant="outline" @click="first = false" />
<UModal v-model:open="second" title="Second modal" :ui="{ footer: 'justify-end' }">
<UButton label="Open second" color="gray" />
<template #footer>
<UButton label="Close" color="gray" variant="outline" @click="second = false" />
</template>
</UModal>
</template>
</UModal>
</template>

View File

@@ -0,0 +1,17 @@
<script setup lang="ts">
const open = ref(false)
defineShortcuts({
o: () => open.value = !open.value
})
</script>
<template>
<UModal v-model:open="open">
<UButton label="Open" color="gray" variant="subtle" />
<template #content>
<Placeholder class="h-48 m-4" />
</template>
</UModal>
</template>

View File

@@ -0,0 +1,20 @@
<script setup lang="ts">
import { LazyModalExample } from '#components'
const count = ref(0)
const modal = useModal()
function open() {
count.value++
modal.open(LazyModalExample, {
description: 'And you can even provide a description!',
count: count.value
})
}
</script>
<template>
<UButton label="Open" color="gray" variant="subtle" @click="open" />
</template>

View File

@@ -0,0 +1,27 @@
<script setup lang="ts">
const items = [
{
label: 'Guide',
icon: 'i-heroicons-book-open'
},
{
label: 'Composables',
icon: 'i-heroicons-circle-stack'
},
{
label: 'Components',
icon: 'i-heroicons-cube-transparent',
slot: 'components'
}
]
</script>
<template>
<UNavigationMenu :items="items" class="justify-center">
<template #components-trailing>
<UBadge label="44" variant="subtle" size="sm" />
</template>
</UNavigationMenu>
</template>

View File

@@ -0,0 +1,110 @@
<script setup lang="ts">
const items = [
{
label: 'Guide',
icon: 'i-heroicons-book-open',
children: [
{
label: 'Introduction',
description: 'Fully styled and customizable components for Nuxt.',
icon: 'i-heroicons-home'
},
{
label: 'Installation',
description: 'Learn how to install and configure Nuxt UI in your application.',
icon: 'i-heroicons-cloud-arrow-down'
},
{
label: 'Icons',
icon: 'i-heroicons-face-smile',
description: 'You have nothing to do, @nuxt/icon will handle it automatically.'
},
{
label: 'Colors',
icon: 'i-heroicons-swatch',
description: 'Choose a primary and a gray color from your Tailwind CSS theme.'
},
{
label: 'Theme',
icon: 'i-heroicons-cog',
description: 'You can customize components by using the `class` / `ui` props or in your app.config.ts.'
}
]
},
{
label: 'Composables',
icon: 'i-heroicons-circle-stack',
children: [
{
label: 'defineShortcuts',
icon: 'i-heroicons-document-text-20-solid',
description: 'Define shortcuts for your application.'
},
{
label: 'useModal',
icon: 'i-heroicons-document-text-20-solid',
description: 'Display a modal within your application.'
},
{
label: 'useSlideover',
icon: 'i-heroicons-document-text-20-solid',
description: 'Display a slideover within your application.'
},
{
label: 'useToast',
icon: 'i-heroicons-document-text-20-solid',
description: 'Display a toast within your application.'
}
]
},
{
label: 'Components',
icon: 'i-heroicons-cube-transparent',
children: [
{
label: 'Link',
icon: 'i-heroicons-document-text-20-solid',
description: 'Use NuxtLink with superpowers.'
},
{
label: 'Modal',
icon: 'i-heroicons-document-text-20-solid',
description: 'Display a modal within your application.'
},
{
label: 'NavigationMenu',
icon: 'i-heroicons-document-text-20-solid',
description: 'Display a list of links.'
},
{
label: 'Pagination',
icon: 'i-heroicons-document-text-20-solid',
description: 'Display a list of pages.'
},
{
label: 'Popover',
icon: 'i-heroicons-document-text-20-solid',
description: 'Display a non-modal dialog that floats around a trigger element.'
},
{
label: 'Progress',
icon: 'i-heroicons-document-text-20-solid',
description: 'Show a horizontal bar to indicate task progression.'
}
]
}
]
const active = ref('0')
// Note: This is for demonstration purposes only. Don't do this at home.
onMounted(() => {
setInterval(() => {
active.value = String((Number(active.value) + 1) % items.length)
}, 2000)
})
</script>
<template>
<UNavigationMenu v-model="active" :items="items" class="justify-center" />
</template>

View File

@@ -0,0 +1,17 @@
<script setup lang="ts">
const open = ref(false)
defineShortcuts({
o: () => open.value = !open.value
})
</script>
<template>
<UPopover v-model:open="open">
<UButton label="Open" color="gray" variant="subtle" />
<template #content>
<Placeholder class="size-48 m-4 inline-flex" />
</template>
</UPopover>
</template>

View File

@@ -0,0 +1,35 @@
<script setup lang="ts">
const { data: users, status } = await useFetch('https://jsonplaceholder.typicode.com/users', {
transform: (data: { name: string, id: number }[]) => {
return data?.map(user => ({
label: user.name,
value: String(user.id),
avatar: { src: `https://i.pravatar.cc/120?img=${user.id}` }
})) || []
},
lazy: true
})
function getUserAvatar(value: string) {
return users.value?.find(user => user.value === value)?.avatar || {}
}
</script>
<template>
<USelect
:items="users || []"
:loading="status === 'pending'"
icon="i-heroicons-user"
placeholder="Select user"
class="w-48"
>
<template #leading="{ modelValue, ui }">
<UAvatar
v-if="modelValue"
v-bind="getUserAvatar(modelValue)"
:size="ui.itemLeadingAvatarSize()"
:class="ui.itemLeadingAvatar()"
/>
</template>
</USelect>
</template>

View File

@@ -0,0 +1,13 @@
<script setup lang="ts">
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done'])
</script>
<template>
<USelect
default-value="Backlog"
:items="items"
:ui="{
trailingIcon: 'group-data-[state=open]:rotate-180 transition-transform duration-200'
}"
/>
</template>

View File

@@ -0,0 +1,45 @@
<script setup lang="ts">
const items = ref([
{
label: 'benjamincanac',
value: 'benjamincanac',
avatar: {
src: 'https://github.com/benjamincanac.png',
alt: 'benjamincanac'
}
},
{
label: 'romhml',
value: 'romhml',
avatar: {
src: 'https://github.com/romhml.png',
alt: 'romhml'
}
},
{
label: 'noook',
value: 'noook',
avatar: {
src: 'https://github.com/noook.png',
alt: 'noook'
}
}
])
function getAvatar(value: string) {
return items.value.find(item => item.value === value)?.avatar
}
</script>
<template>
<USelect default-value="benjamincanac" :items="items" class="w-40">
<template #leading="{ modelValue, ui }">
<UAvatar
v-if="modelValue"
v-bind="getAvatar(modelValue)"
:size="ui.itemLeadingAvatarSize()"
:class="ui.itemLeadingAvatar()"
/>
</template>
</USelect>
</template>

View File

@@ -0,0 +1,44 @@
<script setup lang="ts">
const items = ref([
{
label: 'bug',
value: 'bug',
chip: {
color: 'red' as const
}
},
{
label: 'enhancement',
value: 'enhancement',
chip: {
color: 'blue' as const
}
},
{
label: 'feature',
value: 'feature',
chip: {
color: 'violet' as const
}
}
])
function getChip(value: string) {
return items.value.find(item => item.value === value)?.chip
}
</script>
<template>
<USelect default-value="bug" :items="items" class="w-40">
<template #leading="{ modelValue, ui }">
<UChip
v-if="modelValue"
v-bind="getChip(modelValue)"
inset
standalone
:size="ui.itemLeadingChipSize()"
:class="ui.itemLeadingChip()"
/>
</template>
</USelect>
</template>

View File

@@ -0,0 +1,31 @@
<script setup lang="ts">
const selected = ref('backlog')
const items = ref([
{
label: 'Backlog',
value: 'backlog',
icon: 'i-heroicons-question-mark-circle'
},
{
label: 'Todo',
value: 'todo',
icon: 'i-heroicons-plus-circle'
},
{
label: 'In Progress',
value: 'in_progress',
icon: 'i-heroicons-arrow-up-circle'
},
{
label: 'Done',
value: 'done',
icon: 'i-heroicons-check-circle'
}
])
const icon = computed(() => items.value.find(item => item.value === selected.value)?.icon)
</script>
<template>
<USelect v-model="selected" :icon="icon" :items="items" class="w-40" />
</template>

View File

@@ -0,0 +1,12 @@
<script setup lang="ts">
const open = ref(false)
const items = ref(['Backlog', 'Todo', 'In Progress', 'Done'])
defineShortcuts({
o: () => open.value = !open.value
})
</script>
<template>
<USelect v-model:open="open" default-value="Backlog" :items="items" />
</template>

View File

@@ -0,0 +1,10 @@
<template>
<div class="flex items-center gap-4">
<USkeleton class="h-12 w-12 rounded-full" />
<div class="grid gap-2">
<USkeleton class="h-4 w-[250px]" />
<USkeleton class="h-4 w-[200px]" />
</div>
</div>
</template>

View File

@@ -0,0 +1,19 @@
<script setup lang="ts">
const slideover = useSlideover()
defineProps<{
count: number
}>()
</script>
<template>
<USlideover :description="`This slideover was opened programmatically ${count} times`">
<template #body>
<Placeholder class="h-full" />
</template>
<template #footer>
<UButton color="gray" label="Close" @click="slideover.close()" />
</template>
</USlideover>
</template>

View File

@@ -0,0 +1,18 @@
<script setup lang="ts">
const open = ref(false)
</script>
<template>
<USlideover v-model:open="open" title="Slideover with footer" description="This is useful when you want a form in a Slideover." :ui="{ footer: 'justify-end' }">
<UButton label="Open" color="gray" variant="subtle" />
<template #body>
<Placeholder class="h-full" />
</template>
<template #footer>
<UButton label="Cancel" color="gray" variant="outline" @click="open = false" />
<UButton label="Submit" color="gray" />
</template>
</USlideover>
</template>

View File

@@ -0,0 +1,30 @@
<script setup lang="ts">
const first = ref(false)
const second = ref(false)
</script>
<template>
<USlideover v-model:open="first" title="First slideover" :ui="{ footer: 'justify-end' }">
<UButton color="gray" variant="subtle" label="Open" />
<template #body>
<Placeholder class="h-full" />
</template>
<template #footer>
<UButton label="Close" color="gray" variant="outline" @click="first = false" />
<USlideover v-model:open="second" title="Second slideover" :ui="{ footer: 'justify-end' }">
<UButton label="Open second" color="gray" />
<template #body>
<Placeholder class="h-full" />
</template>
<template #footer>
<UButton label="Close" color="gray" variant="outline" @click="second = false" />
</template>
</USlideover>
</template>
</USlideover>
</template>

View File

@@ -0,0 +1,17 @@
<script setup lang="ts">
const open = ref(false)
defineShortcuts({
o: () => open.value = !open.value
})
</script>
<template>
<USlideover v-model:open="open">
<UButton label="Open" color="gray" variant="subtle" />
<template #content>
<Placeholder class="h-full m-4" />
</template>
</USlideover>
</template>

View File

@@ -0,0 +1,20 @@
<script setup lang="ts">
import { LazySlideoverExample } from '#components'
const count = ref(0)
const slideover = useSlideover()
function open() {
count.value++
slideover.open(LazySlideoverExample, {
title: 'Slideover',
count: count.value
})
}
</script>
<template>
<UButton label="Open" color="gray" variant="subtle" @click="open" />
</template>

View File

@@ -0,0 +1,20 @@
<script setup lang="ts">
const items = [
{
label: 'Account',
icon: 'i-heroicons-user'
},
{
label: 'Password',
icon: 'i-heroicons-lock-closed'
}
]
</script>
<template>
<UTabs :items="items" class="w-full">
<template #content="{ item }">
<p>This is the {{ item.label }} tab.</p>
</template>
</UTabs>
</template>

View File

@@ -0,0 +1,65 @@
<script setup lang="ts">
const items = [
{
label: 'Account',
description: 'Make changes to your account here. Click save when you\'re done.',
icon: 'i-heroicons-user',
slot: 'account'
},
{
label: 'Password',
description: 'Change your password here. After saving, you\'ll be logged out.',
icon: 'i-heroicons-lock-closed',
slot: 'password'
}
]
const state = reactive({
name: 'Benjamin Canac',
username: 'benjamincanac',
currentPassword: '',
newPassword: '',
confirmPassword: ''
})
</script>
<template>
<UTabs :items="items" variant="link" class="gap-4 w-full" :ui="{ trigger: 'flex-1' }">
<template #account="{ item }">
<p class="text-gray-500 dark:text-gray-400 mb-4">
{{ item.description }}
</p>
<UForm :state="state" class="flex flex-col gap-4">
<UFormField label="Name" name="name">
<UInput v-model="state.name" class="w-full" />
</UFormField>
<UFormField label="Username" name="username">
<UInput v-model="state.username" class="w-full" />
</UFormField>
<UButton label="Save changes" type="submit" variant="soft" class="self-end" />
</UForm>
</template>
<template #password="{ item }">
<p class="text-gray-500 dark:text-gray-400 mb-4">
{{ item.description }}
</p>
<UForm :state="state" class="flex flex-col gap-4">
<UFormField label="Current Password" name="current" required>
<UInput v-model="state.currentPassword" type="password" required class="w-full" />
</UFormField>
<UFormField label="New Password" name="new" required>
<UInput v-model="state.newPassword" type="password" required class="w-full" />
</UFormField>
<UFormField label="Confirm Password" name="confirm" required>
<UInput v-model="state.confirmPassword" type="password" required class="w-full" />
</UFormField>
<UButton label="Change password" type="submit" variant="soft" class="self-end" />
</UForm>
</template>
</UTabs>
</template>

View File

@@ -0,0 +1,23 @@
<script setup lang="ts">
const items = [
{
label: 'Account'
},
{
label: 'Password'
}
]
const active = ref('0')
// Note: This is for demonstration purposes only. Don't do this at home.
onMounted(() => {
setInterval(() => {
active.value = String((Number(active.value) + 1) % items.length)
}, 2000)
})
</script>
<template>
<UTabs v-model="active" :content="false" :items="items" class="w-full" />
</template>

View File

@@ -0,0 +1,13 @@
<script setup lang="ts">
const open = ref(false)
defineShortcuts({
o: () => open.value = !open.value
})
</script>
<template>
<UTooltip v-model:open="open" text="Open on GitHub">
<UButton label="Open" color="gray" variant="subtle" />
</UTooltip>
</template>

View File

@@ -0,0 +1,190 @@
<script setup lang="ts">
defineOptions({
inheritAttrs: false
})
defineProps({
title: {
type: String,
required: true
},
description: {
type: String,
required: true
},
headline: {
type: String,
default: ''
}
})
</script>
<template>
<div class="w-full h-full flex flex-col justify-center bg-slate-900">
<svg
class="absolute right-0 top-0"
width="629"
height="593"
viewBox="0 0 629 593"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g filter="url(#filter0_f_199_94966)">
<path d="M628.5 -578L639.334 -94.4223L806.598 -548.281L659.827 -87.387L965.396 -462.344L676.925 -74.0787L1087.69 -329.501L688.776 -55.9396L1160.22 -164.149L694.095 -34.9354L1175.13 15.7948L692.306 -13.3422L1130.8 190.83L683.602 6.50012L1032.04 341.989L668.927 22.4412L889.557 452.891L649.872 32.7537L718.78 511.519L628.5 36.32L538.22 511.519L607.128 32.7537L367.443 452.891L588.073 22.4412L224.955 341.989L573.398 6.50012L126.198 190.83L564.694 -13.3422L81.8734 15.7948L562.905 -34.9354L96.7839 -164.149L568.224 -55.9396L169.314 -329.501L580.075 -74.0787L291.604 -462.344L597.173 -87.387L450.402 -548.281L617.666 -94.4223L628.5 -578Z" fill="#00DC82" />
</g>
<defs>
<filter
id="filter0_f_199_94966"
x="0.873535"
y="-659"
width="1255.25"
height="1251.52"
filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
<feGaussianBlur stdDeviation="40.5" result="effect1_foregroundBlur_199_94966" />
</filter>
</defs>
</svg>
<div class="w-[700px] pl-[100px]">
<p v-if="headline" class="uppercase text-[24px] text-[#00DC82] mb-4 font-semibold">
{{ headline }}
</p>
<h1 class="m-0 text-[75px] font-semibold mb-2 text-white flex items-center">
<span>{{ title }}</span>
</h1>
<p v-if="description" class="text-[32px] text-[#94a3b8] leading-tight">
{{ description.slice(0, 200) }}
</p>
</div>
<svg
class="absolute top-[160px] right-[90px]"
width="340"
height="340"
viewBox="0 0 340 340"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M86.6286 103.106C88.2099 94.7477 94.7477 88.2099 103.106 86.6286L104.427 86.3788C146.343 78.4485 189.386 78.5576 231.262 86.7002L232.272 86.8967C239.615 88.3244 245.4 93.99 246.981 101.301L247.277 102.671C256.565 145.63 256.438 190.092 246.903 232.997C245.361 239.939 239.939 245.361 232.997 246.903C190.092 256.438 145.63 256.565 102.671 247.277L101.301 246.981C93.99 245.4 88.3244 239.615 86.8967 232.272L86.7002 231.262C78.5576 189.386 78.4485 146.343 86.3788 104.426L86.6286 103.106Z" fill="url(#paint0_linear_199_94959)" />
<path d="M86.6286 103.106C88.2099 94.7477 94.7477 88.2099 103.106 86.6286L104.427 86.3788C146.343 78.4485 189.386 78.5576 231.262 86.7002L232.272 86.8967C239.615 88.3244 245.4 93.99 246.981 101.301L247.277 102.671C256.565 145.63 256.438 190.092 246.903 232.997C245.361 239.939 239.939 245.361 232.997 246.903C190.092 256.438 145.63 256.565 102.671 247.277L101.301 246.981C93.99 245.4 88.3244 239.615 86.8967 232.272L86.7002 231.262C78.5576 189.386 78.4485 146.343 86.3788 104.426L86.6286 103.106Z" fill="url(#paint1_radial_199_94959)" fill-opacity="0.06" />
<path d="M103.028 86.2151C94.4994 87.8286 87.8286 94.4994 86.2151 103.028L85.9653 104.348C78.0252 146.318 78.1344 189.414 86.2872 231.342L86.4836 232.353C87.9434 239.86 93.7366 245.776 101.212 247.392L102.582 247.688C145.601 256.989 190.124 256.862 233.089 247.314C240.19 245.736 245.736 240.19 247.314 233.089C256.862 190.124 256.989 145.601 247.688 102.582L247.392 101.212C245.776 93.7366 239.86 87.9434 232.353 86.4836L231.342 86.2872C189.414 78.1344 146.318 78.0252 104.348 85.9653L103.028 86.2151Z" stroke="url(#paint2_linear_199_94959)" stroke-opacity="0.2" stroke-width="0.841584" />
<path d="M86.5693 66.0418C76.1888 68.0728 68.0728 76.1888 66.0418 86.5693L65.7807 87.9041C55.4495 140.708 55.5631 195.024 66.1151 247.784L66.3095 248.756C68.1871 258.144 75.4486 265.527 84.8039 267.561L86.1767 267.86C140.001 279.561 195.755 279.425 249.525 267.477C258.483 265.486 265.485 258.489 267.475 249.53C279.429 195.737 279.558 139.989 267.852 86.1413L267.553 84.7671C265.524 75.4341 258.158 68.19 248.793 66.3169L247.784 66.1151C195.024 55.5631 140.708 55.4495 87.904 65.7807L86.5693 66.0418Z" stroke="url(#paint3_linear_199_94959)" stroke-opacity="0.6" stroke-width="1.7" />
<path d="M66.1749 44.2983C55.2117 46.6476 46.6475 55.2117 44.2983 66.1749L43.1523 71.5228C29.5422 135.037 29.5422 200.713 43.1523 264.227L44.425 270.166C46.7026 280.795 54.917 289.15 65.5055 291.608C132.857 307.243 203.127 307.189 270.477 291.554C280.924 289.129 289.129 280.924 291.554 270.477C307.189 203.127 307.243 132.857 291.608 65.5055C289.15 54.917 280.795 46.7026 270.166 44.425L264.227 43.1523C200.713 29.5422 135.037 29.5422 71.5228 43.1523L66.1749 44.2983Z" stroke="url(#paint4_linear_199_94959)" stroke-opacity="0.4" stroke-width="1.7" />
<path d="M47.0949 24.9846C36.0029 27.3375 27.3375 36.0029 24.9846 47.0949L19.3193 73.8027C5.86738 137.219 5.96967 202.762 19.6195 266.137L25.0028 291.131C27.3518 302.037 35.8106 310.592 46.6894 313.064L67.2583 317.739C134.879 333.107 205.098 332.991 272.667 317.398L291.54 313.043C302.229 310.576 310.576 302.229 313.043 291.54L317.398 272.667C332.991 205.098 333.107 134.879 317.739 67.2583L313.064 46.6894C310.592 35.8106 302.037 27.3518 291.131 25.0028L266.137 19.6195C202.762 5.96966 137.219 5.86738 73.8027 19.3193L47.0949 24.9846Z" stroke="url(#paint5_linear_199_94959)" stroke-opacity="0.2" stroke-width="2.125" />
<path d="M174.667 190.325H203.105C204.009 190.325 204.896 190.084 205.678 189.626C206.461 189.168 207.11 188.509 207.561 187.715C208.013 186.921 208.25 186.021 208.25 185.105C208.25 184.188 208.011 183.288 207.559 182.495L188.461 148.938C188.009 148.145 187.36 147.486 186.578 147.028C185.796 146.57 184.909 146.328 184.006 146.328C183.103 146.328 182.215 146.57 181.433 147.028C180.651 147.486 180.002 148.145 179.551 148.938L174.667 157.524L165.119 140.734C164.668 139.941 164.018 139.282 163.236 138.824C162.453 138.366 161.566 138.125 160.663 138.125C159.76 138.125 158.872 138.366 158.09 138.824C157.308 139.282 156.658 139.941 156.206 140.734L132.441 182.495C131.989 183.288 131.75 184.188 131.75 185.105C131.75 186.021 131.987 186.921 132.439 187.715C132.89 188.509 133.539 189.168 134.322 189.626C135.104 190.084 135.991 190.325 136.895 190.325H154.746C161.819 190.325 167.035 187.173 170.624 181.025L179.337 165.717L184.004 157.524L198.011 182.133H179.337L174.667 190.325ZM154.455 182.124L141.997 182.121L160.671 149.312L169.989 165.717L163.75 176.681C161.367 180.671 158.659 182.124 154.455 182.124Z" fill="#00DC82" />
<path d="M176.761 189.109H203.105H203.106C203.792 189.109 204.467 188.926 205.064 188.576C205.66 188.227 206.158 187.723 206.504 187.113L207.561 187.715L206.504 187.113C206.851 186.504 207.034 185.811 207.034 185.105C207.033 184.399 206.85 183.707 206.502 183.098L206.502 183.097L187.404 149.54L187.404 149.54C187.057 148.93 186.56 148.427 185.963 148.077C185.367 147.728 184.692 147.545 184.006 147.545C183.32 147.545 182.645 147.728 182.048 148.077C181.452 148.427 180.954 148.93 180.608 149.539C180.608 149.539 180.608 149.54 180.608 149.54L175.725 158.126L174.667 159.985L173.61 158.125L164.062 141.336L176.761 189.109ZM176.761 189.109L180.044 183.349H198.011H200.103L199.069 181.531L185.061 156.922L184.005 155.066L182.947 156.922L178.28 165.115L178.28 165.115L169.57 180.417C166.187 186.208 161.362 189.109 154.746 189.109H136.895H136.894C136.208 189.109 135.533 188.926 134.936 188.576C134.34 188.227 133.842 187.723 133.496 187.113L132.44 187.714L133.496 187.113C133.149 186.504 132.966 185.811 132.966 185.105C132.967 184.399 133.15 183.707 133.498 183.098L133.498 183.097L157.263 141.336C157.263 141.336 157.263 141.336 157.263 141.336C157.61 140.727 158.108 140.223 158.705 139.874C159.301 139.525 159.976 139.341 160.663 139.341C161.349 139.341 162.025 139.525 162.621 139.874L163.236 138.824L162.621 139.874C163.218 140.223 163.715 140.727 164.062 141.336L176.761 189.109ZM154.454 183.34H154.455C156.699 183.34 158.653 182.952 160.391 181.953C162.126 180.957 163.533 179.417 164.794 177.305L164.801 177.294L164.807 177.283L171.046 166.318L171.388 165.717L171.047 165.116L161.729 148.711L160.672 146.851L159.614 148.71L140.94 181.52L139.905 183.337L141.997 183.338L154.454 183.34Z" stroke="url(#paint6_linear_199_94959)" stroke-opacity="0.2" stroke-width="2.43271" />
<g filter="url(#filter0_f_199_94959)">
<path d="M174.667 190.325H203.105C204.009 190.325 204.896 190.084 205.678 189.626C206.461 189.168 207.11 188.509 207.561 187.715C208.013 186.921 208.25 186.021 208.25 185.105C208.25 184.188 208.011 183.288 207.559 182.495L188.461 148.938C188.009 148.145 187.36 147.486 186.578 147.028C185.796 146.57 184.909 146.328 184.006 146.328C183.103 146.328 182.215 146.57 181.433 147.028C180.651 147.486 180.002 148.145 179.551 148.938L174.667 157.524L165.119 140.734C164.668 139.941 164.018 139.282 163.236 138.824C162.453 138.366 161.566 138.125 160.663 138.125C159.76 138.125 158.872 138.366 158.09 138.824C157.308 139.282 156.658 139.941 156.206 140.734L132.441 182.495C131.989 183.288 131.75 184.188 131.75 185.105C131.75 186.021 131.987 186.921 132.439 187.715C132.89 188.509 133.539 189.168 134.322 189.626C135.104 190.084 135.991 190.325 136.895 190.325H154.746C161.819 190.325 167.035 187.173 170.624 181.025L179.337 165.717L184.004 157.524L198.011 182.133H179.337L174.667 190.325ZM154.455 182.124L141.997 182.121L160.671 149.312L169.989 165.717L163.75 176.681C161.367 180.671 158.659 182.124 154.455 182.124Z" fill="#00DC82" />
<path d="M176.761 189.109H203.105H203.106C203.792 189.109 204.467 188.926 205.064 188.576C205.66 188.227 206.158 187.723 206.504 187.113L207.561 187.715L206.504 187.113C206.851 186.504 207.034 185.811 207.034 185.105C207.033 184.399 206.85 183.707 206.502 183.098L206.502 183.097L187.404 149.54L187.404 149.54C187.057 148.93 186.56 148.427 185.963 148.077C185.367 147.728 184.692 147.545 184.006 147.545C183.32 147.545 182.645 147.728 182.048 148.077C181.452 148.427 180.954 148.93 180.608 149.539C180.608 149.539 180.608 149.54 180.608 149.54L175.725 158.126L174.667 159.985L173.61 158.125L164.062 141.336L176.761 189.109ZM176.761 189.109L180.044 183.349H198.011H200.103L199.069 181.531L185.061 156.922L184.005 155.066L182.947 156.922L178.28 165.115L178.28 165.115L169.57 180.417C166.187 186.208 161.362 189.109 154.746 189.109H136.895H136.894C136.208 189.109 135.533 188.926 134.936 188.576C134.34 188.227 133.842 187.723 133.496 187.113L132.44 187.714L133.496 187.113C133.149 186.504 132.966 185.811 132.966 185.105C132.967 184.399 133.15 183.707 133.498 183.098L133.498 183.097L157.263 141.336C157.263 141.336 157.263 141.336 157.263 141.336C157.61 140.727 158.108 140.223 158.705 139.874C159.301 139.525 159.976 139.341 160.663 139.341C161.349 139.341 162.025 139.525 162.621 139.874L163.236 138.824L162.621 139.874C163.218 140.223 163.715 140.727 164.062 141.336L176.761 189.109ZM154.454 183.34H154.455C156.699 183.34 158.653 182.952 160.391 181.953C162.126 180.957 163.533 179.417 164.794 177.305L164.801 177.294L164.807 177.283L171.046 166.318L171.388 165.717L171.047 165.116L161.729 148.711L160.672 146.851L159.614 148.71L140.94 181.52L139.905 183.337L141.997 183.338L154.454 183.34Z" stroke="url(#paint7_linear_199_94959)" stroke-opacity="0.2" stroke-width="2.43271" />
</g>
<defs>
<filter
id="filter0_f_199_94959"
x="124.176"
y="130.551"
width="91.6485"
height="67.3485"
filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape" />
<feGaussianBlur stdDeviation="3.78713" result="effect1_foregroundBlur_199_94959" />
</filter>
<linearGradient
id="paint0_linear_199_94959"
x1="167.875"
y1="74.375"
x2="88"
y2="261"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#0F172A" />
<stop offset="1" stop-color="#0F172A" stop-opacity="0" />
</linearGradient>
<radialGradient
id="paint1_radial_199_94959"
cx="0"
cy="0"
r="1"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(167.875 167.875) rotate(-90) scale(100.596 107.502)"
>
<stop stop-color="white" />
<stop offset="1" stop-opacity="0" />
</radialGradient>
<linearGradient
id="paint2_linear_199_94959"
x1="247.183"
y1="96.4978"
x2="194.172"
y2="229.234"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="white" />
<stop offset="1" stop-opacity="0" />
</linearGradient>
<linearGradient
id="paint3_linear_199_94959"
x1="267.01"
y1="78.6537"
x2="200.746"
y2="244.574"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#00DC82" />
<stop offset="1" stop-opacity="0" />
<stop offset="1" stop-opacity="0" />
</linearGradient>
<linearGradient
id="paint4_linear_199_94959"
x1="292.405"
y1="57.8159"
x2="209.877"
y2="264.463"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#00DC82" />
<stop offset="1" stop-opacity="0" />
</linearGradient>
<linearGradient
id="paint5_linear_199_94959"
x1="314.196"
y1="40.2232"
x2="217.813"
y2="281.562"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#00DC82" />
<stop offset="1" stop-opacity="0" />
</linearGradient>
<linearGradient
id="paint6_linear_199_94959"
x1="202.444"
y1="144.3"
x2="191.546"
y2="184.293"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="white" />
<stop offset="1" stop-opacity="0" />
</linearGradient>
<linearGradient
id="paint7_linear_199_94959"
x1="202.444"
y1="144.3"
x2="191.546"
y2="184.293"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="white" />
<stop offset="1" stop-opacity="0" />
</linearGradient>
</defs>
</svg>
</div>
</template>

View File

@@ -0,0 +1,32 @@
const useComponentExampleState = () => useState('component-example-state', () => ({}))
export async function fetchComponentExample(name: string) {
const state = useComponentExampleState()
if (state.value[name]?.then) {
await state.value[name]
return state.value[name]
}
if (state.value[name]) {
return state.value[name]
}
// Add to nitro prerender
if (import.meta.server) {
const event = useRequestEvent()
event.node.res.setHeader(
'x-nitro-prerender',
[event.node.res.getHeader('x-nitro-prerender'), `/api/component-example/${name}.json`].filter(Boolean).join(',')
)
}
// Store promise to avoid multiple calls
state.value[name] = $fetch(`/api/component-example/${name}.json`).then((data) => {
state.value[name] = data
}).catch(() => {
state.value[name] = {}
})
await state.value[name]
return state.value[name]
}

View File

@@ -0,0 +1,34 @@
import type { ComponentMeta } from 'vue-component-meta'
const useComponentsMetaState = () => useState('component-meta-state', () => ({}))
export async function fetchComponentMeta(name: string): Promise<{ meta: ComponentMeta }> {
const state = useComponentsMetaState()
if (state.value[name]?.then) {
await state.value[name]
return state.value[name]
}
if (state.value[name]) {
return state.value[name]
}
// Add to nitro prerender
if (import.meta.server) {
const event = useRequestEvent()
event.node.res.setHeader(
'x-nitro-prerender',
[event.node.res.getHeader('x-nitro-prerender'), `/api/component-meta/${name}.json`].filter(Boolean).join(',')
)
}
// Store promise to avoid multiple calls
state.value[name] = $fetch(`/api/component-meta/${name}.json`).then((meta) => {
state.value[name] = meta
}).catch(() => {
state.value[name] = {}
})
await state.value[name]
return state.value[name]
}

94
docs/app/error.vue Normal file
View File

@@ -0,0 +1,94 @@
<script setup lang="ts">
import type { NuxtError } from '#app'
import type { ContentSearchFile } from '@nuxt/ui-pro'
useSeoMeta({
title: 'Page not found',
description: 'We are sorry but this page could not be found.'
})
defineProps<{
error: NuxtError
}>()
const route = useRoute()
// const colorMode = useColorMode()
// const { branch } = useContentSource()
const runtimeConfig = useRuntimeConfig()
const { integrity, api } = runtimeConfig.public.content
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] })
const { data: files } = await useLazyFetch<ContentSearchFile[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
// Computed
// const color = computed(() => colorMode.value === 'dark' ? '#18181b' : 'white')
const links = computed(() => {
return [{
label: 'Docs',
icon: 'i-heroicons-book-open',
to: '/getting-started',
active: route.path.startsWith('/getting-started') || route.path.startsWith('/components')
}, ...(navigation.value.find(item => item._path === '/pro')
? [{
label: 'Pro',
icon: 'i-heroicons-square-3-stack-3d',
to: '/pro',
active: route.path.startsWith('/pro/getting-started') || route.path.startsWith('/pro/components') || route.path.startsWith('/pro/prose')
}, {
label: 'Pricing',
icon: 'i-heroicons-credit-card',
to: '/pro/pricing'
}, {
label: 'Templates',
icon: 'i-heroicons-computer-desktop',
to: '/pro/templates'
}]
: []), {
label: 'Releases',
icon: 'i-heroicons-rocket-launch',
to: '/releases'
}].filter(Boolean)
})
// Head
useHead({
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
// { key: 'theme-color', name: 'theme-color', content: color }
],
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/icon.svg' }
],
htmlAttrs: {
lang: 'en'
}
})
// Provide
provide('navigation', navigation)
provide('files', files)
</script>
<template>
<UApp>
<NuxtLoadingIndicator />
<Header :links="links" />
<UContainer>
<UMain>
<UPage>
<!-- <UPageError :error="error" /> -->
</UPage>
</UMain>
</UContainer>
<Footer />
<LazyUContentSearch :files="files" :navigation="navigation" :fuse="{ resultLimit: 42 }" />
</UApp>
</template>

View File

@@ -0,0 +1,5 @@
<template>
<div>
<slot />
</div>
</template>

23
docs/app/layouts/docs.vue Normal file
View File

@@ -0,0 +1,23 @@
<script setup lang="ts">
import type { NavItem } from '@nuxt/content'
const nav = inject<Ref<NavItem[]>>('navigation')
const navigation = computed(() => nav.value.filter(item => !item._path.startsWith('/pro')))
</script>
<template>
<UMain>
<UContainer>
<UPage>
<template #left>
<UPageAside>
<UContentNavigation :navigation="navigation" highlight />
</UPageAside>
</template>
<slot />
</UPage>
</UContainer>
</UMain>
</template>

View File

@@ -0,0 +1,111 @@
<script setup lang="ts">
import { withoutTrailingSlash } from 'ufo'
import { findPageHeadline } from '#ui-pro/utils/content'
const route = useRoute()
definePageMeta({
layout: 'docs'
})
const { data: page } = await useAsyncData(route.path, () => queryContent(route.path).findOne())
if (!page.value) {
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true })
}
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => {
return queryContent()
.where({
_extension: 'md',
navigation: {
$ne: false
}
})
.only(['title', 'description', '_path'])
.findSurround(withoutTrailingSlash(route.path))
}, { default: () => [] })
const headline = computed(() => findPageHeadline(page.value))
useSeoMeta({
titleTemplate: '%s - Nuxt UI',
title: page.value.title,
ogTitle: `${page.value.title} - Nuxt UI`,
description: page.value.description,
ogDescription: page.value.description
})
defineOgImageComponent('Docs', {
headline: headline.value
})
// const communityLinks = computed(() => [{
// icon: 'i-heroicons-pencil-square',
// label: 'Edit this page',
// to: `https://github.com/nuxt/ui/edit/dev/docs/content/${page?.value?._file}`,
// target: '_blank'
// }, {
// icon: 'i-heroicons-star',
// label: 'Star on GitHub',
// to: 'https://github.com/nuxt/ui',
// target: '_blank'
// }, {
// icon: 'i-heroicons-lifebuoy',
// label: 'Contributing',
// to: '/getting-started/contributing'
// }, {
// label: 'Roadmap',
// icon: 'i-heroicons-map',
// to: '/roadmap'
// }])
// const resourcesLinks = [{
// icon: 'i-simple-icons-figma',
// label: 'Figma Kit',
// to: 'https://www.figma.com/community/file/1288455405058138934',
// target: '_blank'
// }, {
// label: 'Playground',
// icon: 'i-simple-icons-stackblitz',
// to: 'https://stackblitz.com/edit/nuxt-ui',
// target: '_blank'
// }, {
// icon: 'i-simple-icons-nuxtdotjs',
// label: 'Nuxt docs',
// to: 'https://nuxt.com',
// target: '_blank'
// }]
</script>
<template>
<UPage v-if="page">
<UPageHeader :title="page.title" :description="page.description" :links="page.links" :headline="headline" />
<UPageBody>
<ContentRenderer v-if="page.body" :value="page" />
<USeparator />
<UContentSurround :surround="surround" />
</UPageBody>
<template v-if="page?.body?.toc?.links?.length" #right>
<UContentToc :links="page.body.toc.links">
<!-- <template #bottom>
<USeparator v-if="page.body?.toc?.links?.length" type="dashed" />
<UPageLinks title="Community" :links="communityLinks" />
<USeparator type="dashed" />
<UPageLinks title="Resources" :links="resourcesLinks" />
<USeparator type="dashed" />
<AdsPro />
<AdsCarbon />
</template> -->
</UContentToc>
</template>
</UPage>
</template>

Some files were not shown because too many files have changed in this diff Show More