Commit Graph

188 Commits

Author SHA1 Message Date
Saeid Zareie
38f5672e59
docs: adding contribution guide (#413) 2024-03-15 21:35:57 +03:30
zernonia
72f9bd5ef5
refactor: code preview (#411)
* feat: generate code dynamically

* chore: cleanup and transform path on component

* feat: create config sheet

* feat: code wrapper

* fix: not acting immediately

* chore: add key to vnode

* chore: add vue-sonner to demos dependencies, add placeholder for codeConfigs

* chore: fix wrong icons

* chore: improve crawling logic

---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2024-03-14 18:28:13 +08:00
Saeid Zareie
4d08adc81e
feat: breadcrumb component (#405)
* feat: adding breadcrumb component, resolves #395

* fix: revert kbd component in main layout

* feat: add slot for `BreadcrumbEllipsis` icons too

build registry, bump radix-vue

* refactor: using primitive instead of computed

* chore: update

---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2024-03-13 15:33:22 +08:00
Sadegh Barati
454ecf0df7
feat: PinInput with input-otp demos and styles (#402) 2024-03-10 19:15:39 +03:30
Sadegh Barati
7af3b612d6
fix: unable to close Combobox with esc key (#401) 2024-03-09 20:36:35 +03:30
Sadegh Barati
f2f5641b33
chore: docs stuff (#400) 2024-03-09 20:21:24 +03:30
Davlatov Shahzod
7e8d658c21
docs: resizable demos not working (#399) 2024-03-08 19:43:59 +03:30
Sadegh Barati
126e1877fd
feat: resizeable component (#385) 2024-03-06 18:21:31 +03:30
Saeid Zareie
c487137ac5
docs: adding more examples for DropdownMenu and Select components 2024-03-05 16:52:07 +03:30
Saeid Zareie
75cf9c40c4
docs: adding remaining usages of drawer (#380) 2024-03-05 14:45:30 +03:30
Saeid Zareie
3ec55ada1b
docs: adding skeleton card example (#382) 2024-03-05 14:37:35 +03:30
ɹǝʞɹɐԀ uǝʌS
edd713fd08
docs: add new example for slider in form (#377) 2024-03-04 15:28:02 +03:30
Saeid Zareie
64e2f9c199
feat: vaul-vue integration (#374) 2024-03-04 10:04:28 +03:30
Sadegh Barati
5d9176725b fix: vue-sonner wrong props
update deps
run registry
2024-03-01 21:18:14 +03:30
Braden Wong
3d3c5ab3e6
docs: fix form examples tag capitalization (#367) 2024-03-01 13:13:16 +03:30
zernonia
0aaad536fb chore: update DialogScrollContent component 2024-02-21 14:23:59 +08:00
Roman Hrynevych
915df39075
feat: add ScrollBody and ScrollOverlay demos for Dialog (#287)
* feat(dialog-with-scroll-body): add demos with body scroll for Dialog component


---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2024-02-15 22:47:09 +03:30
Sadegh Barati
43f9f56077
feat: tags input (#328)
* feat: tags input

* chore: add `tags-input` to sidebar links

* chore: update

* chore: add combobox demo

* chore: improve tag highlight

* chore: update

* chore: rename title

* chore: add static width to `TagsInputCombo` example

---------

Co-authored-by: zernonia <zernonia@gmail.com>
2024-02-15 22:06:15 +03:30
Roman Hrynevych
9c015067e3
docs: add Input with icon example (#346) 2024-02-15 16:38:29 +03:30
Greg Sanderson
406e4ff8a8
fix: calendar weeks alignment (#344)
The component's CSS adds additional padding which results in Saturday and Sunday not being aligned with the rest of the days.


---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2024-02-15 16:20:23 +03:30
Greg Sanderson
3d99ca42b7
refactor: update SelectItem.vue to put the check icon on the left (#340)
The original shadcn library put the check on the left (for the default style) of the selected option
2024-02-14 17:49:59 +03:30
Victor Garcia
08d6ea6a53
docs: calendar typo (#330) 2024-02-09 15:57:05 +03:30
Sadegh Barati
6ab704a6fb
feat: pin input (#325)
* feat: pin input

* chore: build registry

* chore: build registry, add form example

* chore: update demo abit

---------

Co-authored-by: zernonia <zernonia@gmail.com>
2024-02-06 10:06:59 +08:00
Sadegh Barati
b0e1b55537
docs: add simple column pinning example (#320) 2024-02-05 21:00:31 +03:30
zernonia
67d10e1191 chore: revert dismissable 2024-02-05 16:58:07 +08:00
Sadegh Barati
b486a10129
fix: CommandItem hightlighted bg (#322)
* fix: `CommandItem` hightlighted bg

* fix: escape key not closing combobox

---------

Co-authored-by: zernonia <zernonia@gmail.com>
2024-02-05 16:30:32 +08:00
Roman Hrynevych
fc718145ae
refactor: tailwindcss, remove all unnecessary arbitrary values, update TailwindCSS to v3.4 (#269) 2024-02-02 22:48:58 +03:30
Wasim Thoufiq
6d24fb801b
fix: month and year popover (#317) 2024-02-02 22:01:07 +03:30
Sadegh Barati
a829212d42
refactor: use class as prop to prevent class duplication with cn function (#241) 2024-02-02 19:08:06 +03:30
Jackson Bowe
8875261576
fix: weekdays spacing (#300) 2024-01-31 20:46:01 +03:30
Pier107
8bd5525368
fix: ScrollAreaThumb width in horizontal orientation (#309) 2024-01-28 13:11:54 +03:30
Sadegh Barati
42f0086586 chore: add vue-sonner to dependencies in registry files 2024-01-22 20:30:08 +03:30
Robert Shaw
eba85c6b5c
feat(sonner): add sonner component (#301) 2024-01-22 19:15:30 +03:30
trolladam
f41642f5d8
fix: separator background color (#295) 2024-01-20 15:12:36 +03:30
Valentin Hutter
cb974f95e0
feat: Calendar component inherits the VCalendar slots (#285) 2024-01-18 16:06:56 +03:30
Valentin Hutter
8e7bbe3a8d
fix: hide navigation in "time" mode (#283)
Co-authored-by: Valentin Hutter <valentin@macbook-pro-de-valentin.home>
2024-01-17 22:24:28 +03:30
Anton Reshetov
7727c7282c
fix: radio group indicator fill (#280)
* fix: radio group indicator fill

---------

Co-authored-by: zernonia <zernonia@gmail.com>
2024-01-17 14:28:32 +08:00
Sadegh Barati
0c7da48f8f
feat: toggle group (#275)
* feat: toggle group

* chore: remove dummy examples

* chore: update pathe and typescript, include scripts in tsconfig include

* refactor: move import type from normal script to script setup

don't know how detypes would react with that normal script
2024-01-16 10:56:54 +03:30
Sadegh Barati
c33acba4ff
fix: prevent page zoom while tapping carousel buttons (#274)
* fix: prevent page zoom while tapping carousel buttons

choose shadcn-ui icons and sizes for buttons

* docs: fix carousel page responsive issues and ordering docs as shadcn-ui
2024-01-15 18:55:22 +03:30
Anton Reshetov
72857b6a56
fix: select popper position (#272) 2024-01-14 18:03:12 +03:30
Roman Hrynevych
825f14e8b5
fix: add whitespace-nowrap for Button, Select, Tab (#266)
* fix(Button): add 'whitespace-nowrap' to base styles

* refactor(Button): use VariantProps for Button Props instead of NonNullable

* fix(Select): add whitespace-nowrap and truncate to SelectTrigger
2024-01-13 00:04:05 +03:30
Valentin Hutter
dfbb738aee
feat: add style to work with v-calendar time picker (#243) (#265)
* feat: add style to work with v-calendar time picker (#243)

* docs: add datetime picker to doc + build registery

* build: build registery in apps/www

* chore: tweaks and fix darkmode selectbox bg

---------

Co-authored-by: Valentin Hutter <valentin@macbook-pro-de-valentin.home>
Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2024-01-12 01:55:22 +03:30
Roman Hrynevych
b941b92dee
fix(popover): add max-height to SelectContent (#263) (#264)
* fix(popover): add max-height to SelectContent (#263)

Closes: #263

* fix(popover): add max-height to SelectContent [default style] (#263)

Closes: #263
2024-01-11 23:45:52 +03:30
Wasim Thoufiq
97c7417352
feat: add carousel component (#227)
* feat: create new carousel component with embala-carousel

* feat: create demos for the carousel component

* feat: add the default carousel component to the docs

* feat: add new-york styling for carousels

* feat: add more examples for spacing, size and options

* refactor: change ways to better pass the data to parent

* feat: add examples for carousel api handling

* feat: add example for using embla plugin

* chore: add carousel component doc to the table of contents

* feat: add focusability on carousel element

* fix: update docs

* chore: add docs for slot props

* feat: expose api for the parent component

* chore: include missing filenames

* chore: update embla carousel dependency versions

* chore: fix typescript error by getting the types from core package

* chore: prevent duplicate classes by using class as prop

* feat: use slot fallback content

so user could change navigation button icons

* fix: change attribute inheritance element

* chore: update www package.json `scripts`

update tsconfig exclude for the strict registry build

* refactor: fix embla-carousel types after v8.0.0-rc18

update embla deps

* chore: update @vue/tsconfig

* chore: run registry

* refactor: remove uneended ref

* fix: dependencies for embla missing

* docs: update carousel for optional plugin installation

---------

Co-authored-by: sadeghbarati <sadeghbaratiwork@gmail.com>
Co-authored-by: zernonia <zernonia@gmail.com>
2024-01-09 00:51:55 +08:00
Valentin Hutter
4214134e18
fix remove today design when in the current range in new york style following #252 (#253) 2024-01-08 13:08:31 +03:30
Valentin Hutter
54a846f93a
fix remove today design when in the current range (#252) 2024-01-08 12:55:43 +03:30
Valentin Hutter
1702ca75ad
#244 - fix day borders (#251)
* fix: #244 - day borders

* fix: vc-day is-today style, unhover bg color and radius glitch

update new-york `Calendar.vue`

---------

Co-authored-by: sadeghbarati <sadeghbaratiwork@gmail.com>
2024-01-08 09:43:23 +03:30
Sadegh Barati
5332610012
docs: prevent default browser behaviour with ctrl-k/j in useMagicKeys (#246)
build registry for stackblitz and codesandbox demos
2024-01-06 11:10:26 +03:30
Starker-xp
9d9a6f929c
fix: dialog props missing (#242) 2024-01-04 16:37:25 +03:30
Paras Solanki
0f0f1ef3ca
fix: Input attrs not reactive (#228)
* fix: default input props not reactive

* fix: new-york input props are not reactive

* fix: default input not reactive added class prop

* fix: new-york input not reactive added class prop

* fix: update

---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2024-01-03 00:07:30 +03:30
Sadegh Barati
f6f87d3cd6
chore: fix ComboboxDemo.vue types (#233)
* chore: fix `ComboboxDemo.vue` example types

* chore: update `radix-vue`
2023-12-31 22:37:23 +03:30
Ole Marius Løset
ef3ec54a4e
Output consistency across platforms (#181)
* fix: normalize newline

* fix: sort readdir

* fix: correct sorting

* fix: missing npm run in build:registry npm script

* Update apps/www/package.json

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>

---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2023-12-31 21:10:47 +03:30
itsTPM
c2e05239f6
docs: change cards radius to rounded-lg (#231) 2023-12-30 20:40:31 +03:30
Sadegh Barati
5e22ffc037
fix: toggle not setting pressed property on init (#223)
* fix: toggle not setting pressed property on init

* refactor: move class outside of toggleVariants
2023-12-30 00:24:20 +03:30
Sadegh Barati
010e377669
fix: avoid failing resolve types by adding radix-vue to project deps in shadcn-vue init before the add command (#216)
* fix: avoid failing resolve types by adding `radix-vue` to project deps in `init` command

* chore: add `shell-emulator` and remove `cross-env`

fix some registry example import path

* chore: remove additional `radix-vue`  dependency from components registry

* chore: update `tsx` and `vue-tsc`

* fix: normalize `components:example` path to process `crawlExample` function correctly

* chore: build registry

---------

Co-authored-by: zernonia <zernonia@gmail.com>
2023-12-21 09:06:14 +08:00
Sadegh Barati
b40321e3d9
docs: fix vee-validate checkbox and radio-group examples (#213)
* docs: fix checkbox and radio form examples

add type="checkbox|radio" and name in FormField

* docs: add `vee-validate` documentation link for checkbox and radio inputs

* chore: update `vee-validate` deps
2023-12-19 18:23:05 +03:30
sadeghbarati
f82e4011e6 chore: fix label for attribute in registry examples
`html-for` -> `for`
2023-12-12 10:02:55 +03:30
zernonia
269caf00b0
fix(Button): missing asChild (#203)
* fix: button should use primitive

* docs: fix missing NuxtLink import

* chore: build registry
2023-12-06 09:59:36 +08:00
zernonia
692191104d chore: lint, fix frozen lockfile 2023-12-01 11:36:12 +08:00
Sadegh Barati
13ba39e2aa
fix: input duplicated class name, remove type="text" (#194)
If the **type** attribute is not specified, the default type is "text"
2023-12-01 10:32:06 +08:00
Youssef
e2d9e04daa
fix: Calendar transition bug (#195)
* fix: `calendar` transition glitch

* fix: calendar transition bugs

Added overflow hidden + z-index to the buttons

---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2023-12-01 10:30:37 +08:00
Benjamin Gervan
4156bf6703
fix: checkbox icon off-center fix (#184)
* fix: checkbox icon off-center fix

* fix: checkbox icon off-center update fix

* fix: revert box-content
2023-11-26 01:23:05 -08:00
zernonia
8d1dfe8da9 docs: fix demo after refactoring 2023-11-25 23:56:25 +08:00
Ole Marius Løset
c242a7955a
add vue-tsc typecheck before build registry (#182)
* chore: add vue-tsc script

* fix: remove non existent props from ModelSelector

* fix: add basic typing for files

* fix: fix Artwork object in demo

* fix: use DatePickerModel from v-calendar on modelValue

Fixes vue-tsc validation errors

* chore: add `@vue/tsconfig`

* refactor: extracted types from v-calendar

---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2023-11-20 14:22:36 +03:30
Ole Marius Løset
87da925085
refactor: use pathe instead of node:path (#179)
Closes #178
2023-11-18 08:55:21 +08:00
Anonimus Programus
cbb40522dc
fix: add missing presentation role in new-york style (#175)
A <div role="presentation"> is missing from "new-york" but exists in "default"
2023-11-17 17:39:19 +03:30
zernonia
ceb090d60d fix: pipeline with some missing 2023-11-09 18:53:14 +08:00
Selemondev
e5cecae352
docs: Improve the API reference of all the components (#152)
* docs: improve the api reference of all the components

* docs(app): #152 add new-york theme

This pull request is intended to add the new-york theme for the newly created component examples.

Closes: #152

* chore: build registry

* chore: change usage of lucide icon in new-york

---------

Co-authored-by: zernonia <zernonia@gmail.com>
2023-11-09 18:42:01 +08:00
zernonia
4fcfb4edf2 fix: missing dependencies for calendar 2023-11-06 13:30:45 +08:00
zernonia
cd3c767c71
chore: update registry (#151)
* fix: missing dependencies after import

* fix: demo component paths incorrect with subfolder
2023-11-06 12:47:31 +08:00
Nik
ef4609abbf
feat: add toast (#122)
* feat: add toast

* feat: add new york version

* feat: add `VNode` type to toast description

* docs: use `toast` in form demos

* chore: run build registry

* docs: update announcement component, menu label

* refactor: change 'onUpdate:open' to 'onOpenChange' a more friendlier name

---------

Co-authored-by: Nik <dev@nkutinha.slmail.me>
Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
Co-authored-by: zernonia <zernonia@gmail.com>
2023-11-03 09:45:40 +08:00
zernonia
27dc777d19 chore: build registry 2023-10-24 20:57:02 +08:00
zernonia
73c561d698
chore: bump Radix Vue v1 (#139)
* refactor: apply all v1 changes

* chore: bump radix-vue version

* chore: remove WIP

* chore: update component preview

* chore: fix old pnpm lock
2023-10-24 20:51:00 +08:00
zernonia
b2caaca1e2
feat: stackblitz/codesandbox editor (#130)
* feat: stackblitz editor

* chore: update lockfile

* fix: cant fetch ?raw dynamically after bundling

* feat: add codesandbox
2023-10-21 21:21:46 +08:00
Ole Marius Løset
03e1fcebb8
fix: add v-bind="$attrs" to DatePicker in Calendar (#117)
* fix: add v-bind="$attrs" to calendar

* fix: `inheritAttrs` false, remove duplicated `nextTick`

---------

Co-authored-by: Sadegh Barati <sadeghbaratiwork@gmail.com>
2023-10-21 10:56:41 +08:00
Sadegh Barati
e5b33f652f
feat: add pagination (#109)
feat: update
2023-10-10 15:09:16 +08:00
Sadegh Barati
9b75dcf9d2
docs: add @formkit/auto-animate example in form.md (#108)
* fix: typo for injection key

* docs: add `@formkit/auto-animate` example
2023-10-09 20:35:49 +08:00
zernonia
d2aa7534fe chore: build registry 2023-10-06 13:26:59 +08:00
zernonia
9b4b0c289e chore: fix demo reactivitiy 2023-10-06 13:23:49 +08:00
Sadegh Barati
d03067db67
feat: add vee-validate (#85)
* feat: add `vee-validate`

* chore: update

* chore: update `AccountForm` example

- add `FormDescription` component
- include `src` in tsconfig

* refactor: use radix-vue `Slot` component

* chore: refresh lockfile

* chore: update `ProfileForm.vue` and `AccountForm`

fix vee-validate initialValues on components with `componentField` slotProp

* chore: update `AppearanceForm.vue`

update pnpm and some deps -_-

* refactor: update

- add new-york style
- off eslint import/first rule
- use `useId` from radix-vue

* fix: class-name -> class

* refactor: simplify validation for `Command` component

* fix: v-bind="field" -> v-bind="componentField"

* fix: useAttrs to prevent class duplication

* docs: add `form.md`

- change TabPreview.vue to showcase way of using vee-validate

* docs: add form example for `checkbox` `input` and `datepicker`

* docs: add `combobox`, `datepicker`, `radio-group`, `select`, `switch` and `textarea` form and some other exmaples

* chore: typo, update `zod`, `vite`, and `@vitejs/plugin-vue`
2023-10-06 12:04:38 +08:00
Muhammad Mahmoud
e0cecc34d6
fix: avatar class typo (#97)
* fix: class typo

* fix: same typo different file
2023-10-02 17:01:25 +08:00
zernonia
7fd9ebecfe fix: hotfix for tabs wasn't import correctly 2023-10-02 10:14:27 +08:00
Léo Gallot
223583b217
fix: add emits to the tabs component (#93) 2023-10-01 23:33:41 +08:00
zernonia
d49126ecc8
feat: implement utilities from radix vue (#89)
* refactor: change all popper related element to use useForwardPropsEmits

* refactor: use useEmitAsProps from radix-vue
2023-09-28 16:51:31 +08:00
zernonia
02fe76d1f0
refactor: replace iconify icons with @radix-icons/vue for newyork style (#87)
* refactor: changes all instance of unplugin-icons to radix-icons

* chore: build registry

* test: fix new deps
2023-09-27 12:26:24 +08:00
Ahmed
8b4a0b455e fix: complete textarea 2023-09-24 18:54:34 +01:00
zernonia
05e3f9484e
chore: updates charts using unovis/vue (#77)
* chore: updates charts using unovis/vue

* fix: minor styling
2023-09-23 22:18:14 +08:00
Ahmed Mayara
45eeb25149
fix: dialog overlay background color (#76) 2023-09-23 21:46:30 +08:00
zernonia
97e9b57eb0 docs: fix className reference 2023-09-22 09:48:30 +08:00
zernonia
f192d154c1 fix: ssr issue with popper components 2023-09-20 17:15:55 +08:00
zernonia
0456a5ba0b docs: update docs build, some content 2023-09-20 14:19:08 +08:00
Ahmed Mayara
cc49dd59bf
feat: add command palette (#59)
* feat: add command palette

* fix: add command empty

---------

Co-authored-by: zernonia <59365435+zernonia@users.noreply.github.com>
2023-09-20 13:04:33 +08:00
Selemondev
d5bb3a8a7a
docs: improve the installation section for each component (#50)
* docs: improve the installation section for each component

* docs: improve the installation section for each component

---------

Co-authored-by: Selemondev <selemondev@Selemondevs-MacBook-Pro.local>
2023-09-20 13:02:01 +08:00
zernonia
e9634a9f5e fix: tooltip popover trigger issue 2023-09-19 23:16:02 +08:00
zernonia
0bc0dcba22 docs: view transition api 2023-09-19 22:07:07 +08:00
zernonia
69a498395e feat: update exampels with command component 2023-09-18 01:16:40 +08:00
zernonia
7e8b7c5b54 chore: fix responsiveness 2023-09-17 23:24:18 +08:00
zernonia
7dcc589a1d
feat: add combobox, commands (#52)
* feat: add combobox, commands

* chore: add new label
2023-09-15 16:18:38 +08:00
Sadegh Barati
e5c9b6a06f
refactor(apps/www): use vite postcss depdendecy, use tsx instead of ts-node (#42)
* refactor(apps/www): use `vite` postcss dependency, use `tsx` instead of `ts-node`

- fix Excessive stack depth comparing types by updating vite to latest
- update deps

* docs: fix `DataTableDemo.vue` scroll-x on mobile devices

* docs: tweaks

* docs: bump `vitepress`

* docs: update deps
2023-09-13 09:57:25 +08:00
Ahmed Mayara
3636e992c3
feat: add profile section in forms example (#44)
* feat: add profile section in forms example

* feat: add account and appearance sections in forms example

* feat: add notifications and display sections in forms example

* fix: fix checked prop in display form
2023-09-13 09:26:12 +08:00