@me1a/ui 2.2.2 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{atoms/accordion.mjs → accordion/index.mjs} +2 -2
- package/dist/accordion/index.mjs.map +1 -0
- package/dist/{atoms/avatar.mjs → avatar/index.mjs} +2 -2
- package/dist/avatar/index.mjs.map +1 -0
- package/dist/{atoms/badge.d.mts → badge/index.d.mts} +9 -8
- package/dist/{atoms/badge.mjs → badge/index.mjs} +2 -2
- package/dist/{atoms/badge.mjs.map → badge/index.mjs.map} +1 -1
- package/dist/{atoms/box.mjs → box/index.mjs} +2 -2
- package/dist/box/index.mjs.map +1 -0
- package/dist/{atoms/breadcrumb.mjs → breadcrumb/index.mjs} +2 -2
- package/dist/breadcrumb/index.mjs.map +1 -0
- package/dist/{atoms/button.d.mts → button/index.d.mts} +2 -2
- package/dist/{atoms/button.mjs → button/index.mjs} +2 -2
- package/dist/button/index.mjs.map +1 -0
- package/dist/card/index.d.mts +127 -0
- package/dist/card/index.mjs +2 -0
- package/dist/card/index.mjs.map +1 -0
- package/dist/{atoms/checkbox.mjs → checkbox/index.mjs} +2 -2
- package/dist/checkbox/index.mjs.map +1 -0
- package/dist/{atoms/collapsible.mjs → collapsible/index.mjs} +2 -2
- package/dist/collapsible/index.mjs.map +1 -0
- package/dist/{atoms/command.mjs → command/index.mjs} +2 -2
- package/dist/command/index.mjs.map +1 -0
- package/dist/container/index.d.mts +33 -0
- package/dist/{atoms/container.mjs → container/index.mjs} +2 -2
- package/dist/container/index.mjs.map +1 -0
- package/dist/{atoms/dialog.mjs → dialog/index.mjs} +2 -2
- package/dist/dialog/index.mjs.map +1 -0
- package/dist/{organisms/drawer.mjs → drawer/index.mjs} +2 -2
- package/dist/drawer/index.mjs.map +1 -0
- package/dist/{organisms/dropdown-menu.d.mts → dropdown-menu/index.d.mts} +2 -2
- package/dist/{organisms/dropdown-menu.mjs → dropdown-menu/index.mjs} +2 -2
- package/dist/dropdown-menu/index.mjs.map +1 -0
- package/dist/{rhf/form.mjs → form/index.mjs} +2 -2
- package/dist/form/index.mjs.map +1 -0
- package/dist/{hooks.d.mts → hooks/index.d.mts} +2 -2
- package/dist/{hooks.mjs → hooks/index.mjs} +2 -2
- package/dist/{hooks.js.map → hooks/index.mjs.map} +1 -1
- package/dist/index.d.mts +159 -39
- package/dist/index.mjs +47 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{atoms/input.mjs → input/index.mjs} +2 -2
- package/dist/{atoms/input.mjs.map → input/index.mjs.map} +1 -1
- package/dist/{atoms/label.d.mts → label/index.d.mts} +2 -2
- package/dist/{atoms/label.mjs → label/index.mjs} +2 -2
- package/dist/{atoms/label.mjs.map → label/index.mjs.map} +1 -1
- package/dist/{molecules/navigation-menu.d.mts → navigation-menu/index.d.mts} +21 -20
- package/dist/{molecules/navigation-menu.mjs → navigation-menu/index.mjs} +2 -2
- package/dist/navigation-menu/index.mjs.map +1 -0
- package/dist/{atoms/page-loader.d.mts → page-loader/index.d.mts} +2 -2
- package/dist/{atoms/page-loader.mjs → page-loader/index.mjs} +2 -2
- package/dist/page-loader/index.mjs.map +1 -0
- package/dist/{atoms/pagination.d.mts → pagination/index.d.mts} +2 -2
- package/dist/{atoms/pagination.mjs → pagination/index.mjs} +2 -2
- package/dist/pagination/index.mjs.map +1 -0
- package/dist/{atoms/popover.mjs → popover/index.mjs} +2 -2
- package/dist/popover/index.mjs.map +1 -0
- package/dist/{atoms/radio-group.d.mts → radio-group/index.d.mts} +2 -2
- package/dist/{atoms/radio-group.mjs → radio-group/index.mjs} +2 -2
- package/dist/radio-group/index.mjs.map +1 -0
- package/dist/{atoms/resizable.mjs → resizable/index.mjs} +2 -2
- package/dist/resizable/index.mjs.map +1 -0
- package/dist/{rhf/rhf-checkbox.mjs → rhf-checkbox/index.mjs} +2 -2
- package/dist/rhf-checkbox/index.mjs.map +1 -0
- package/dist/{rhf/rhf-multi-select.mjs → rhf-multi-select/index.mjs} +2 -2
- package/dist/rhf-multi-select/index.mjs.map +1 -0
- package/dist/{rhf/rhf-radio-button-group.mjs → rhf-radio-button-group/index.mjs} +2 -2
- package/dist/rhf-radio-button-group/index.mjs.map +1 -0
- package/dist/{rhf/rhf-radio-group.mjs → rhf-radio-group/index.mjs} +2 -2
- package/dist/rhf-radio-group/index.mjs.map +1 -0
- package/dist/{rhf/rhf-select.mjs → rhf-select/index.mjs} +2 -2
- package/dist/rhf-select/index.mjs.map +1 -0
- package/dist/{rhf/rhf-switch.mjs → rhf-switch/index.mjs} +2 -2
- package/dist/rhf-switch/index.mjs.map +1 -0
- package/dist/{rhf/rhf-textarea.mjs → rhf-textarea/index.mjs} +2 -2
- package/dist/rhf-textarea/index.mjs.map +1 -0
- package/dist/{atoms/separator.mjs → separator/index.mjs} +2 -2
- package/dist/separator/index.mjs.map +1 -0
- package/dist/{atoms/sheet.d.mts → sheet/index.d.mts} +2 -2
- package/dist/{atoms/sheet.mjs → sheet/index.mjs} +2 -2
- package/dist/{atoms/sheet.mjs.map → sheet/index.mjs.map} +1 -1
- package/dist/{organisms/sidebar.d.mts → sidebar/index.d.mts} +4 -4
- package/dist/{organisms/sidebar.mjs → sidebar/index.mjs} +2 -2
- package/dist/sidebar/index.mjs.map +1 -0
- package/dist/skeleton/index.d.mts +17 -0
- package/dist/skeleton/index.mjs +2 -0
- package/dist/skeleton/index.mjs.map +1 -0
- package/dist/{atoms/stack.mjs → stack/index.mjs} +2 -2
- package/dist/{atoms/stack.mjs.map → stack/index.mjs.map} +1 -1
- package/dist/{atoms/switch.mjs → switch/index.mjs} +2 -2
- package/dist/switch/index.mjs.map +1 -0
- package/dist/{atoms/table.mjs → table/index.mjs} +2 -2
- package/dist/{atoms/table.mjs.map → table/index.mjs.map} +1 -1
- package/dist/tabs/index.d.mts +97 -0
- package/dist/tabs/index.mjs +2 -0
- package/dist/tabs/index.mjs.map +1 -0
- package/dist/{atoms/text-field.d.mts → text-field/index.d.mts} +2 -2
- package/dist/{atoms/text-field.mjs → text-field/index.mjs} +2 -2
- package/dist/text-field/index.mjs.map +1 -0
- package/dist/textarea/index.d.mts +24 -0
- package/dist/{atoms/textarea.mjs → textarea/index.mjs} +2 -2
- package/dist/textarea/index.mjs.map +1 -0
- package/dist/{atoms/toast.d.mts → toast/index.d.mts} +2 -2
- package/dist/{atoms/toast.mjs → toast/index.mjs} +2 -2
- package/dist/{atoms/toast.mjs.map → toast/index.mjs.map} +1 -1
- package/dist/{atoms/toaster.mjs → toaster/index.mjs} +2 -2
- package/dist/toaster/index.mjs.map +1 -0
- package/dist/{atoms/tooltip.mjs → tooltip/index.mjs} +2 -2
- package/dist/tooltip/index.mjs.map +1 -0
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.mjs +2 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/{atoms/typography.d.mts → typography/index.d.mts} +2 -2
- package/dist/{atoms/typography.mjs → typography/index.mjs} +2 -2
- package/dist/typography/index.mjs.map +1 -0
- package/dist/utils/index.d.mts +5 -0
- package/dist/{utils.mjs → utils/index.mjs} +2 -2
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +197 -257
- package/dist/atoms/accordion.d.ts +0 -94
- package/dist/atoms/accordion.js +0 -2
- package/dist/atoms/accordion.js.map +0 -1
- package/dist/atoms/accordion.mjs.map +0 -1
- package/dist/atoms/avatar.d.ts +0 -34
- package/dist/atoms/avatar.js +0 -2
- package/dist/atoms/avatar.js.map +0 -1
- package/dist/atoms/avatar.mjs.map +0 -1
- package/dist/atoms/badge.d.ts +0 -40
- package/dist/atoms/badge.js +0 -2
- package/dist/atoms/badge.js.map +0 -1
- package/dist/atoms/box.d.ts +0 -50
- package/dist/atoms/box.js +0 -2
- package/dist/atoms/box.js.map +0 -1
- package/dist/atoms/box.mjs.map +0 -1
- package/dist/atoms/breadcrumb.d.ts +0 -35
- package/dist/atoms/breadcrumb.js +0 -2
- package/dist/atoms/breadcrumb.js.map +0 -1
- package/dist/atoms/breadcrumb.mjs.map +0 -1
- package/dist/atoms/button.d.ts +0 -82
- package/dist/atoms/button.js +0 -2
- package/dist/atoms/button.js.map +0 -1
- package/dist/atoms/button.mjs.map +0 -1
- package/dist/atoms/checkbox.d.ts +0 -21
- package/dist/atoms/checkbox.js +0 -2
- package/dist/atoms/checkbox.js.map +0 -1
- package/dist/atoms/checkbox.mjs.map +0 -1
- package/dist/atoms/collapsible.d.ts +0 -26
- package/dist/atoms/collapsible.js +0 -2
- package/dist/atoms/collapsible.js.map +0 -1
- package/dist/atoms/collapsible.mjs.map +0 -1
- package/dist/atoms/command.d.ts +0 -122
- package/dist/atoms/command.js +0 -2
- package/dist/atoms/command.js.map +0 -1
- package/dist/atoms/command.mjs.map +0 -1
- package/dist/atoms/container.js +0 -2
- package/dist/atoms/container.js.map +0 -1
- package/dist/atoms/container.mjs.map +0 -1
- package/dist/atoms/dialog.d.ts +0 -35
- package/dist/atoms/dialog.js +0 -2
- package/dist/atoms/dialog.js.map +0 -1
- package/dist/atoms/dialog.mjs.map +0 -1
- package/dist/atoms/input.d.ts +0 -12
- package/dist/atoms/input.js +0 -2
- package/dist/atoms/input.js.map +0 -1
- package/dist/atoms/label.d.ts +0 -18
- package/dist/atoms/label.js +0 -2
- package/dist/atoms/label.js.map +0 -1
- package/dist/atoms/page-loader.d.ts +0 -29
- package/dist/atoms/page-loader.js +0 -2
- package/dist/atoms/page-loader.js.map +0 -1
- package/dist/atoms/page-loader.mjs.map +0 -1
- package/dist/atoms/pagination.d.ts +0 -105
- package/dist/atoms/pagination.js +0 -2
- package/dist/atoms/pagination.js.map +0 -1
- package/dist/atoms/pagination.mjs.map +0 -1
- package/dist/atoms/popover.d.ts +0 -30
- package/dist/atoms/popover.js +0 -2
- package/dist/atoms/popover.js.map +0 -1
- package/dist/atoms/popover.mjs.map +0 -1
- package/dist/atoms/radio-group.d.ts +0 -62
- package/dist/atoms/radio-group.js +0 -2
- package/dist/atoms/radio-group.js.map +0 -1
- package/dist/atoms/radio-group.mjs.map +0 -1
- package/dist/atoms/resizable.d.ts +0 -53
- package/dist/atoms/resizable.js +0 -2
- package/dist/atoms/resizable.js.map +0 -1
- package/dist/atoms/resizable.mjs.map +0 -1
- package/dist/atoms/separator.d.ts +0 -13
- package/dist/atoms/separator.js +0 -2
- package/dist/atoms/separator.js.map +0 -1
- package/dist/atoms/separator.mjs.map +0 -1
- package/dist/atoms/sheet.d.ts +0 -42
- package/dist/atoms/sheet.js +0 -2
- package/dist/atoms/sheet.js.map +0 -1
- package/dist/atoms/skeleton.js +0 -2
- package/dist/atoms/skeleton.js.map +0 -1
- package/dist/atoms/skeleton.mjs +0 -2
- package/dist/atoms/skeleton.mjs.map +0 -1
- package/dist/atoms/stack.d.ts +0 -121
- package/dist/atoms/stack.js +0 -2
- package/dist/atoms/stack.js.map +0 -1
- package/dist/atoms/switch.d.ts +0 -21
- package/dist/atoms/switch.js +0 -2
- package/dist/atoms/switch.js.map +0 -1
- package/dist/atoms/switch.mjs.map +0 -1
- package/dist/atoms/table.d.ts +0 -53
- package/dist/atoms/table.js +0 -2
- package/dist/atoms/table.js.map +0 -1
- package/dist/atoms/text-field.d.ts +0 -65
- package/dist/atoms/text-field.js +0 -2
- package/dist/atoms/text-field.js.map +0 -1
- package/dist/atoms/text-field.mjs.map +0 -1
- package/dist/atoms/textarea.js +0 -2
- package/dist/atoms/textarea.js.map +0 -1
- package/dist/atoms/textarea.mjs.map +0 -1
- package/dist/atoms/toast.d.ts +0 -18
- package/dist/atoms/toast.js +0 -2
- package/dist/atoms/toast.js.map +0 -1
- package/dist/atoms/toaster.d.ts +0 -26
- package/dist/atoms/toaster.js +0 -2
- package/dist/atoms/toaster.js.map +0 -1
- package/dist/atoms/toaster.mjs.map +0 -1
- package/dist/atoms/tooltip.d.ts +0 -25
- package/dist/atoms/tooltip.js +0 -2
- package/dist/atoms/tooltip.js.map +0 -1
- package/dist/atoms/tooltip.mjs.map +0 -1
- package/dist/atoms/typography.d.ts +0 -24
- package/dist/atoms/typography.js +0 -2
- package/dist/atoms/typography.js.map +0 -1
- package/dist/atoms/typography.mjs.map +0 -1
- package/dist/atoms.d.mts +0 -1237
- package/dist/atoms.d.ts +0 -1237
- package/dist/atoms.js +0 -2
- package/dist/atoms.js.map +0 -1
- package/dist/atoms.mjs +0 -2
- package/dist/atoms.mjs.map +0 -1
- package/dist/hooks.d.ts +0 -57
- package/dist/hooks.js +0 -2
- package/dist/hooks.mjs.map +0 -1
- package/dist/index.d.ts +0 -2619
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/molecules/card.d.mts +0 -72
- package/dist/molecules/card.d.ts +0 -72
- package/dist/molecules/card.js +0 -2
- package/dist/molecules/card.js.map +0 -1
- package/dist/molecules/card.mjs +0 -2
- package/dist/molecules/card.mjs.map +0 -1
- package/dist/molecules/navigation-menu.d.ts +0 -103
- package/dist/molecules/navigation-menu.js +0 -2
- package/dist/molecules/navigation-menu.js.map +0 -1
- package/dist/molecules/navigation-menu.mjs.map +0 -1
- package/dist/molecules/tabs.d.mts +0 -32
- package/dist/molecules/tabs.d.ts +0 -32
- package/dist/molecules/tabs.js +0 -2
- package/dist/molecules/tabs.js.map +0 -1
- package/dist/molecules/tabs.mjs +0 -2
- package/dist/molecules/tabs.mjs.map +0 -1
- package/dist/molecules.d.mts +0 -201
- package/dist/molecules.d.ts +0 -201
- package/dist/molecules.js +0 -2
- package/dist/molecules.js.map +0 -1
- package/dist/molecules.mjs +0 -2
- package/dist/molecules.mjs.map +0 -1
- package/dist/organisms/drawer.d.ts +0 -63
- package/dist/organisms/drawer.js +0 -2
- package/dist/organisms/drawer.js.map +0 -1
- package/dist/organisms/drawer.mjs.map +0 -1
- package/dist/organisms/dropdown-menu.d.ts +0 -335
- package/dist/organisms/dropdown-menu.js +0 -2
- package/dist/organisms/dropdown-menu.js.map +0 -1
- package/dist/organisms/dropdown-menu.mjs.map +0 -1
- package/dist/organisms/sidebar.d.ts +0 -328
- package/dist/organisms/sidebar.js +0 -2
- package/dist/organisms/sidebar.js.map +0 -1
- package/dist/organisms/sidebar.mjs.map +0 -1
- package/dist/organisms.d.mts +0 -717
- package/dist/organisms.d.ts +0 -717
- package/dist/organisms.js +0 -2
- package/dist/organisms.js.map +0 -1
- package/dist/organisms.mjs +0 -2
- package/dist/organisms.mjs.map +0 -1
- package/dist/rhf/form.d.ts +0 -96
- package/dist/rhf/form.js +0 -2
- package/dist/rhf/form.js.map +0 -1
- package/dist/rhf/form.mjs.map +0 -1
- package/dist/rhf/rhf-checkbox.d.ts +0 -57
- package/dist/rhf/rhf-checkbox.js +0 -2
- package/dist/rhf/rhf-checkbox.js.map +0 -1
- package/dist/rhf/rhf-checkbox.mjs.map +0 -1
- package/dist/rhf/rhf-multi-select.d.ts +0 -84
- package/dist/rhf/rhf-multi-select.js +0 -2
- package/dist/rhf/rhf-multi-select.js.map +0 -1
- package/dist/rhf/rhf-multi-select.mjs.map +0 -1
- package/dist/rhf/rhf-radio-button-group.d.ts +0 -73
- package/dist/rhf/rhf-radio-button-group.js +0 -2
- package/dist/rhf/rhf-radio-button-group.js.map +0 -1
- package/dist/rhf/rhf-radio-button-group.mjs.map +0 -1
- package/dist/rhf/rhf-radio-group.d.ts +0 -103
- package/dist/rhf/rhf-radio-group.js +0 -2
- package/dist/rhf/rhf-radio-group.js.map +0 -1
- package/dist/rhf/rhf-radio-group.mjs.map +0 -1
- package/dist/rhf/rhf-select.d.ts +0 -80
- package/dist/rhf/rhf-select.js +0 -2
- package/dist/rhf/rhf-select.js.map +0 -1
- package/dist/rhf/rhf-select.mjs.map +0 -1
- package/dist/rhf/rhf-switch.d.ts +0 -57
- package/dist/rhf/rhf-switch.js +0 -2
- package/dist/rhf/rhf-switch.js.map +0 -1
- package/dist/rhf/rhf-switch.mjs.map +0 -1
- package/dist/rhf/rhf-textarea.d.ts +0 -66
- package/dist/rhf/rhf-textarea.js +0 -2
- package/dist/rhf/rhf-textarea.js.map +0 -1
- package/dist/rhf/rhf-textarea.mjs.map +0 -1
- package/dist/rhf.d.mts +0 -614
- package/dist/rhf.d.ts +0 -614
- package/dist/rhf.js +0 -2
- package/dist/rhf.js.map +0 -1
- package/dist/rhf.mjs +0 -2
- package/dist/rhf.mjs.map +0 -1
- package/dist/types.js +0 -2
- package/dist/types.js.map +0 -1
- package/dist/types.mjs +0 -2
- package/dist/types.mjs.map +0 -1
- package/dist/utils.js +0 -2
- package/dist/utils.js.map +0 -1
- package/dist/utils.mjs.map +0 -1
- /package/dist/{atoms/accordion.d.mts → accordion/index.d.mts} +0 -0
- /package/dist/{atoms/avatar.d.mts → avatar/index.d.mts} +0 -0
- /package/dist/{atoms/box.d.mts → box/index.d.mts} +0 -0
- /package/dist/{atoms/breadcrumb.d.mts → breadcrumb/index.d.mts} +0 -0
- /package/dist/{atoms/checkbox.d.mts → checkbox/index.d.mts} +0 -0
- /package/dist/{atoms/collapsible.d.mts → collapsible/index.d.mts} +0 -0
- /package/dist/{atoms/command.d.mts → command/index.d.mts} +0 -0
- /package/dist/{atoms/dialog.d.mts → dialog/index.d.mts} +0 -0
- /package/dist/{organisms/drawer.d.mts → drawer/index.d.mts} +0 -0
- /package/dist/{rhf/form.d.mts → form/index.d.mts} +0 -0
- /package/dist/{atoms/input.d.mts → input/index.d.mts} +0 -0
- /package/dist/{atoms/popover.d.mts → popover/index.d.mts} +0 -0
- /package/dist/{atoms/resizable.d.mts → resizable/index.d.mts} +0 -0
- /package/dist/{rhf/rhf-checkbox.d.mts → rhf-checkbox/index.d.mts} +0 -0
- /package/dist/{rhf/rhf-multi-select.d.mts → rhf-multi-select/index.d.mts} +0 -0
- /package/dist/{rhf/rhf-radio-button-group.d.mts → rhf-radio-button-group/index.d.mts} +0 -0
- /package/dist/{rhf/rhf-radio-group.d.mts → rhf-radio-group/index.d.mts} +0 -0
- /package/dist/{rhf/rhf-select.d.mts → rhf-select/index.d.mts} +0 -0
- /package/dist/{rhf/rhf-switch.d.mts → rhf-switch/index.d.mts} +0 -0
- /package/dist/{rhf/rhf-textarea.d.mts → rhf-textarea/index.d.mts} +0 -0
- /package/dist/{atoms/separator.d.mts → separator/index.d.mts} +0 -0
- /package/dist/{atoms/stack.d.mts → stack/index.d.mts} +0 -0
- /package/dist/{atoms/switch.d.mts → switch/index.d.mts} +0 -0
- /package/dist/{atoms/table.d.mts → table/index.d.mts} +0 -0
- /package/dist/{atoms/toaster.d.mts → toaster/index.d.mts} +0 -0
- /package/dist/{atoms/tooltip.d.mts → tooltip/index.d.mts} +0 -0
package/package.json
CHANGED
|
@@ -1,270 +1,209 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@me1a/ui",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"private": false,
|
|
5
|
-
"main": "./dist/index.
|
|
6
|
-
"module": "./dist/index.
|
|
7
|
-
"types": "./dist/index.d.
|
|
5
|
+
"main": "./dist/index.mjs",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.mts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
"*": {
|
|
10
|
+
"*": [
|
|
11
|
+
"./dist/*/index.d.mts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
8
15
|
"exports": {
|
|
9
|
-
"
|
|
10
|
-
"types": "./dist/index.d.
|
|
11
|
-
"import": "./dist/index.
|
|
12
|
-
"require": "./dist/index.cjs.js"
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.mts",
|
|
18
|
+
"import": "./dist/index.mjs"
|
|
13
19
|
},
|
|
14
20
|
"./hooks": {
|
|
15
|
-
"types": "./dist/hooks.d.
|
|
16
|
-
"import": "./dist/hooks.
|
|
17
|
-
"require": "./dist/hooks.cjs.js"
|
|
21
|
+
"types": "./dist/hooks/index.d.mts",
|
|
22
|
+
"import": "./dist/hooks/index.mjs"
|
|
18
23
|
},
|
|
19
24
|
"./utils": {
|
|
20
|
-
"types": "./dist/utils.d.
|
|
21
|
-
"import": "./dist/utils.
|
|
22
|
-
"require": "./dist/utils.cjs.js"
|
|
25
|
+
"types": "./dist/utils/index.d.mts",
|
|
26
|
+
"import": "./dist/utils/index.mjs"
|
|
23
27
|
},
|
|
24
28
|
"./types": {
|
|
25
|
-
"types": "./dist/types.d.
|
|
26
|
-
"import": "./dist/types.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
},
|
|
44
|
-
"./
|
|
45
|
-
"types": "./dist/
|
|
46
|
-
"import": "./dist/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
},
|
|
64
|
-
"./
|
|
65
|
-
"types": "./dist/
|
|
66
|
-
"import": "./dist/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
},
|
|
84
|
-
"./
|
|
85
|
-
"types": "./dist/
|
|
86
|
-
"import": "./dist/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
},
|
|
104
|
-
"./
|
|
105
|
-
"types": "./dist/
|
|
106
|
-
"import": "./dist/
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
},
|
|
124
|
-
"./
|
|
125
|
-
"types": "./dist/
|
|
126
|
-
"import": "./dist/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
},
|
|
144
|
-
"./
|
|
145
|
-
"types": "./dist/
|
|
146
|
-
"import": "./dist/
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
"
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
},
|
|
164
|
-
"./
|
|
165
|
-
"types": "./dist/
|
|
166
|
-
"import": "./dist/
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
"
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
},
|
|
184
|
-
"./
|
|
185
|
-
"types": "./dist/
|
|
186
|
-
"import": "./dist/
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
"
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
},
|
|
204
|
-
"./molecules/navigation-menu": {
|
|
205
|
-
"types": "./dist/molecules/navigation-menu.d.ts",
|
|
206
|
-
"import": "./dist/molecules/navigation-menu.esm.js",
|
|
207
|
-
"require": "./dist/molecules/navigation-menu.cjs.js"
|
|
208
|
-
},
|
|
209
|
-
"./molecules/card": {
|
|
210
|
-
"types": "./dist/molecules/card.d.ts",
|
|
211
|
-
"import": "./dist/molecules/card.esm.js",
|
|
212
|
-
"require": "./dist/molecules/card.cjs.js"
|
|
213
|
-
},
|
|
214
|
-
"./organisms/sidebar": {
|
|
215
|
-
"types": "./dist/organisms/sidebar.d.ts",
|
|
216
|
-
"import": "./dist/organisms/sidebar.esm.js",
|
|
217
|
-
"require": "./dist/organisms/sidebar.cjs.js"
|
|
218
|
-
},
|
|
219
|
-
"./organisms/dropdown-menu": {
|
|
220
|
-
"types": "./dist/organisms/dropdown-menu.d.ts",
|
|
221
|
-
"import": "./dist/organisms/dropdown-menu.esm.js",
|
|
222
|
-
"require": "./dist/organisms/dropdown-menu.cjs.js"
|
|
223
|
-
},
|
|
224
|
-
"./organisms/drawer": {
|
|
225
|
-
"types": "./dist/organisms/drawer.d.ts",
|
|
226
|
-
"import": "./dist/organisms/drawer.esm.js",
|
|
227
|
-
"require": "./dist/organisms/drawer.cjs.js"
|
|
228
|
-
},
|
|
229
|
-
"./rhf/rhf-textarea": {
|
|
230
|
-
"types": "./dist/rhf/rhf-textarea.d.ts",
|
|
231
|
-
"import": "./dist/rhf/rhf-textarea.esm.js",
|
|
232
|
-
"require": "./dist/rhf/rhf-textarea.cjs.js"
|
|
233
|
-
},
|
|
234
|
-
"./rhf/rhf-switch": {
|
|
235
|
-
"types": "./dist/rhf/rhf-switch.d.ts",
|
|
236
|
-
"import": "./dist/rhf/rhf-switch.esm.js",
|
|
237
|
-
"require": "./dist/rhf/rhf-switch.cjs.js"
|
|
238
|
-
},
|
|
239
|
-
"./rhf/rhf-select": {
|
|
240
|
-
"types": "./dist/rhf/rhf-select.d.ts",
|
|
241
|
-
"import": "./dist/rhf/rhf-select.esm.js",
|
|
242
|
-
"require": "./dist/rhf/rhf-select.cjs.js"
|
|
243
|
-
},
|
|
244
|
-
"./rhf/rhf-radio-group": {
|
|
245
|
-
"types": "./dist/rhf/rhf-radio-group.d.ts",
|
|
246
|
-
"import": "./dist/rhf/rhf-radio-group.esm.js",
|
|
247
|
-
"require": "./dist/rhf/rhf-radio-group.cjs.js"
|
|
248
|
-
},
|
|
249
|
-
"./rhf/rhf-radio-button-group": {
|
|
250
|
-
"types": "./dist/rhf/rhf-radio-button-group.d.ts",
|
|
251
|
-
"import": "./dist/rhf/rhf-radio-button-group.esm.js",
|
|
252
|
-
"require": "./dist/rhf/rhf-radio-button-group.cjs.js"
|
|
253
|
-
},
|
|
254
|
-
"./rhf/rhf-multi-select": {
|
|
255
|
-
"types": "./dist/rhf/rhf-multi-select.d.ts",
|
|
256
|
-
"import": "./dist/rhf/rhf-multi-select.esm.js",
|
|
257
|
-
"require": "./dist/rhf/rhf-multi-select.cjs.js"
|
|
258
|
-
},
|
|
259
|
-
"./rhf/rhf-checkbox": {
|
|
260
|
-
"types": "./dist/rhf/rhf-checkbox.d.ts",
|
|
261
|
-
"import": "./dist/rhf/rhf-checkbox.esm.js",
|
|
262
|
-
"require": "./dist/rhf/rhf-checkbox.cjs.js"
|
|
263
|
-
},
|
|
264
|
-
"./rhf/form": {
|
|
265
|
-
"types": "./dist/rhf/form.d.ts",
|
|
266
|
-
"import": "./dist/rhf/form.esm.js",
|
|
267
|
-
"require": "./dist/rhf/form.cjs.js"
|
|
29
|
+
"types": "./dist/types/index.d.mts",
|
|
30
|
+
"import": "./dist/types/index.mjs"
|
|
31
|
+
},
|
|
32
|
+
"./typography": {
|
|
33
|
+
"types": "./dist/typography/index.d.mts",
|
|
34
|
+
"import": "./dist/typography/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"./tooltip": {
|
|
37
|
+
"types": "./dist/tooltip/index.d.mts",
|
|
38
|
+
"import": "./dist/tooltip/index.mjs"
|
|
39
|
+
},
|
|
40
|
+
"./toaster": {
|
|
41
|
+
"types": "./dist/toaster/index.d.mts",
|
|
42
|
+
"import": "./dist/toaster/index.mjs"
|
|
43
|
+
},
|
|
44
|
+
"./toast": {
|
|
45
|
+
"types": "./dist/toast/index.d.mts",
|
|
46
|
+
"import": "./dist/toast/index.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./textarea": {
|
|
49
|
+
"types": "./dist/textarea/index.d.mts",
|
|
50
|
+
"import": "./dist/textarea/index.mjs"
|
|
51
|
+
},
|
|
52
|
+
"./text-field": {
|
|
53
|
+
"types": "./dist/text-field/index.d.mts",
|
|
54
|
+
"import": "./dist/text-field/index.mjs"
|
|
55
|
+
},
|
|
56
|
+
"./table": {
|
|
57
|
+
"types": "./dist/table/index.d.mts",
|
|
58
|
+
"import": "./dist/table/index.mjs"
|
|
59
|
+
},
|
|
60
|
+
"./switch": {
|
|
61
|
+
"types": "./dist/switch/index.d.mts",
|
|
62
|
+
"import": "./dist/switch/index.mjs"
|
|
63
|
+
},
|
|
64
|
+
"./stack": {
|
|
65
|
+
"types": "./dist/stack/index.d.mts",
|
|
66
|
+
"import": "./dist/stack/index.mjs"
|
|
67
|
+
},
|
|
68
|
+
"./skeleton": {
|
|
69
|
+
"types": "./dist/skeleton/index.d.mts",
|
|
70
|
+
"import": "./dist/skeleton/index.mjs"
|
|
71
|
+
},
|
|
72
|
+
"./sheet": {
|
|
73
|
+
"types": "./dist/sheet/index.d.mts",
|
|
74
|
+
"import": "./dist/sheet/index.mjs"
|
|
75
|
+
},
|
|
76
|
+
"./separator": {
|
|
77
|
+
"types": "./dist/separator/index.d.mts",
|
|
78
|
+
"import": "./dist/separator/index.mjs"
|
|
79
|
+
},
|
|
80
|
+
"./resizable": {
|
|
81
|
+
"types": "./dist/resizable/index.d.mts",
|
|
82
|
+
"import": "./dist/resizable/index.mjs"
|
|
83
|
+
},
|
|
84
|
+
"./radio-group": {
|
|
85
|
+
"types": "./dist/radio-group/index.d.mts",
|
|
86
|
+
"import": "./dist/radio-group/index.mjs"
|
|
87
|
+
},
|
|
88
|
+
"./popover": {
|
|
89
|
+
"types": "./dist/popover/index.d.mts",
|
|
90
|
+
"import": "./dist/popover/index.mjs"
|
|
91
|
+
},
|
|
92
|
+
"./pagination": {
|
|
93
|
+
"types": "./dist/pagination/index.d.mts",
|
|
94
|
+
"import": "./dist/pagination/index.mjs"
|
|
95
|
+
},
|
|
96
|
+
"./page-loader": {
|
|
97
|
+
"types": "./dist/page-loader/index.d.mts",
|
|
98
|
+
"import": "./dist/page-loader/index.mjs"
|
|
99
|
+
},
|
|
100
|
+
"./label": {
|
|
101
|
+
"types": "./dist/label/index.d.mts",
|
|
102
|
+
"import": "./dist/label/index.mjs"
|
|
103
|
+
},
|
|
104
|
+
"./input": {
|
|
105
|
+
"types": "./dist/input/index.d.mts",
|
|
106
|
+
"import": "./dist/input/index.mjs"
|
|
107
|
+
},
|
|
108
|
+
"./dialog": {
|
|
109
|
+
"types": "./dist/dialog/index.d.mts",
|
|
110
|
+
"import": "./dist/dialog/index.mjs"
|
|
111
|
+
},
|
|
112
|
+
"./container": {
|
|
113
|
+
"types": "./dist/container/index.d.mts",
|
|
114
|
+
"import": "./dist/container/index.mjs"
|
|
115
|
+
},
|
|
116
|
+
"./command": {
|
|
117
|
+
"types": "./dist/command/index.d.mts",
|
|
118
|
+
"import": "./dist/command/index.mjs"
|
|
119
|
+
},
|
|
120
|
+
"./collapsible": {
|
|
121
|
+
"types": "./dist/collapsible/index.d.mts",
|
|
122
|
+
"import": "./dist/collapsible/index.mjs"
|
|
123
|
+
},
|
|
124
|
+
"./checkbox": {
|
|
125
|
+
"types": "./dist/checkbox/index.d.mts",
|
|
126
|
+
"import": "./dist/checkbox/index.mjs"
|
|
127
|
+
},
|
|
128
|
+
"./button": {
|
|
129
|
+
"types": "./dist/button/index.d.mts",
|
|
130
|
+
"import": "./dist/button/index.mjs"
|
|
131
|
+
},
|
|
132
|
+
"./breadcrumb": {
|
|
133
|
+
"types": "./dist/breadcrumb/index.d.mts",
|
|
134
|
+
"import": "./dist/breadcrumb/index.mjs"
|
|
135
|
+
},
|
|
136
|
+
"./box": {
|
|
137
|
+
"types": "./dist/box/index.d.mts",
|
|
138
|
+
"import": "./dist/box/index.mjs"
|
|
139
|
+
},
|
|
140
|
+
"./badge": {
|
|
141
|
+
"types": "./dist/badge/index.d.mts",
|
|
142
|
+
"import": "./dist/badge/index.mjs"
|
|
143
|
+
},
|
|
144
|
+
"./avatar": {
|
|
145
|
+
"types": "./dist/avatar/index.d.mts",
|
|
146
|
+
"import": "./dist/avatar/index.mjs"
|
|
147
|
+
},
|
|
148
|
+
"./accordion": {
|
|
149
|
+
"types": "./dist/accordion/index.d.mts",
|
|
150
|
+
"import": "./dist/accordion/index.mjs"
|
|
151
|
+
},
|
|
152
|
+
"./tabs": {
|
|
153
|
+
"types": "./dist/tabs/index.d.mts",
|
|
154
|
+
"import": "./dist/tabs/index.mjs"
|
|
155
|
+
},
|
|
156
|
+
"./navigation-menu": {
|
|
157
|
+
"types": "./dist/navigation-menu/index.d.mts",
|
|
158
|
+
"import": "./dist/navigation-menu/index.mjs"
|
|
159
|
+
},
|
|
160
|
+
"./card": {
|
|
161
|
+
"types": "./dist/card/index.d.mts",
|
|
162
|
+
"import": "./dist/card/index.mjs"
|
|
163
|
+
},
|
|
164
|
+
"./sidebar": {
|
|
165
|
+
"types": "./dist/sidebar/index.d.mts",
|
|
166
|
+
"import": "./dist/sidebar/index.mjs"
|
|
167
|
+
},
|
|
168
|
+
"./dropdown-menu": {
|
|
169
|
+
"types": "./dist/dropdown-menu/index.d.mts",
|
|
170
|
+
"import": "./dist/dropdown-menu/index.mjs"
|
|
171
|
+
},
|
|
172
|
+
"./drawer": {
|
|
173
|
+
"types": "./dist/drawer/index.d.mts",
|
|
174
|
+
"import": "./dist/drawer/index.mjs"
|
|
175
|
+
},
|
|
176
|
+
"./rhf-textarea": {
|
|
177
|
+
"types": "./dist/rhf-textarea/index.d.mts",
|
|
178
|
+
"import": "./dist/rhf-textarea/index.mjs"
|
|
179
|
+
},
|
|
180
|
+
"./rhf-switch": {
|
|
181
|
+
"types": "./dist/rhf-switch/index.d.mts",
|
|
182
|
+
"import": "./dist/rhf-switch/index.mjs"
|
|
183
|
+
},
|
|
184
|
+
"./rhf-select": {
|
|
185
|
+
"types": "./dist/rhf-select/index.d.mts",
|
|
186
|
+
"import": "./dist/rhf-select/index.mjs"
|
|
187
|
+
},
|
|
188
|
+
"./rhf-radio-group": {
|
|
189
|
+
"types": "./dist/rhf-radio-group/index.d.mts",
|
|
190
|
+
"import": "./dist/rhf-radio-group/index.mjs"
|
|
191
|
+
},
|
|
192
|
+
"./rhf-radio-button-group": {
|
|
193
|
+
"types": "./dist/rhf-radio-button-group/index.d.mts",
|
|
194
|
+
"import": "./dist/rhf-radio-button-group/index.mjs"
|
|
195
|
+
},
|
|
196
|
+
"./rhf-multi-select": {
|
|
197
|
+
"types": "./dist/rhf-multi-select/index.d.mts",
|
|
198
|
+
"import": "./dist/rhf-multi-select/index.mjs"
|
|
199
|
+
},
|
|
200
|
+
"./rhf-checkbox": {
|
|
201
|
+
"types": "./dist/rhf-checkbox/index.d.mts",
|
|
202
|
+
"import": "./dist/rhf-checkbox/index.mjs"
|
|
203
|
+
},
|
|
204
|
+
"./form": {
|
|
205
|
+
"types": "./dist/form/index.d.mts",
|
|
206
|
+
"import": "./dist/form/index.mjs"
|
|
268
207
|
}
|
|
269
208
|
},
|
|
270
209
|
"sideEffects": false,
|
|
@@ -316,6 +255,7 @@
|
|
|
316
255
|
"@vitejs/plugin-react": "^4.4.1",
|
|
317
256
|
"autoprefixer": "^10.4.21",
|
|
318
257
|
"babel-jest": "^29.7.0",
|
|
258
|
+
"babel-plugin-transform-imports": "^2.0.0",
|
|
319
259
|
"eslint": "^8.56.0",
|
|
320
260
|
"eslint-config-airbnb": "^19.0.4",
|
|
321
261
|
"eslint-config-next": "^14.1.0",
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Props for a single-item accordion
|
|
6
|
-
*/
|
|
7
|
-
type AccordionSingleProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & {
|
|
8
|
-
/** The type of accordion - must be "single" for this variant */
|
|
9
|
-
type: "single";
|
|
10
|
-
/** The default value of the accordion item */
|
|
11
|
-
defaultValue?: string;
|
|
12
|
-
/** The controlled value of the accordion item */
|
|
13
|
-
value?: string;
|
|
14
|
-
/** Callback fired when the value changes */
|
|
15
|
-
onValueChange?: (_value: string) => void;
|
|
16
|
-
/** Whether the accordion item can be collapsed */
|
|
17
|
-
collapsible?: boolean;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Props for a multiple-item accordion
|
|
21
|
-
*/
|
|
22
|
-
type AccordionMultipleProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root> & {
|
|
23
|
-
/** The type of accordion - must be "multiple" for this variant */
|
|
24
|
-
type: "multiple";
|
|
25
|
-
/** The default values of the accordion items */
|
|
26
|
-
defaultValue?: string[];
|
|
27
|
-
/** The controlled values of the accordion items */
|
|
28
|
-
value?: string[];
|
|
29
|
-
/** Callback fired when the values change */
|
|
30
|
-
onValueChange?: (_value: string[]) => void;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Props for the Accordion component
|
|
34
|
-
*/
|
|
35
|
-
type AccordionProps = AccordionSingleProps | AccordionMultipleProps;
|
|
36
|
-
/**
|
|
37
|
-
* Props for an individual accordion item
|
|
38
|
-
*/
|
|
39
|
-
interface AccordionItemProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> {
|
|
40
|
-
/** The value of the accordion item */
|
|
41
|
-
value: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Props for the accordion trigger button
|
|
45
|
-
*/
|
|
46
|
-
interface AccordionTriggerProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger> {
|
|
47
|
-
/** The content of the accordion trigger */
|
|
48
|
-
children: React.ReactNode;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Props for the accordion content panel
|
|
52
|
-
*/
|
|
53
|
-
interface AccordionContentProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content> {
|
|
54
|
-
/** The content of the accordion panel */
|
|
55
|
-
children: React.ReactNode;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Accordion component that displays a list of expandable/collapsible sections.
|
|
60
|
-
* Built on top of Radix UI's Accordion primitive.
|
|
61
|
-
*
|
|
62
|
-
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-accordion--docs
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```tsx
|
|
66
|
-
* <Accordion type="single" collapsible>
|
|
67
|
-
* <AccordionItem value="item-1">
|
|
68
|
-
* <AccordionTrigger>Section 1</AccordionTrigger>
|
|
69
|
-
* <AccordionContent>Content 1</AccordionContent>
|
|
70
|
-
* </AccordionItem>
|
|
71
|
-
* <AccordionItem value="item-2">
|
|
72
|
-
* <AccordionTrigger>Section 2</AccordionTrigger>
|
|
73
|
-
* <AccordionContent>Content 2</AccordionContent>
|
|
74
|
-
* </AccordionItem>
|
|
75
|
-
* </Accordion>
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
declare const Accordion: React.ForwardRefExoticComponent<((Omit<AccordionPrimitive.AccordionSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
79
|
-
type: "single";
|
|
80
|
-
defaultValue?: string;
|
|
81
|
-
value?: string;
|
|
82
|
-
onValueChange?: (_value: string) => void;
|
|
83
|
-
collapsible?: boolean;
|
|
84
|
-
}) | (Omit<AccordionPrimitive.AccordionMultipleProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
85
|
-
type: "multiple";
|
|
86
|
-
defaultValue?: string[];
|
|
87
|
-
value?: string[];
|
|
88
|
-
onValueChange?: (_value: string[]) => void;
|
|
89
|
-
})) & React.RefAttributes<HTMLDivElement>>;
|
|
90
|
-
declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
92
|
-
declare const AccordionContent: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
93
|
-
|
|
94
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps };
|
package/dist/atoms/accordion.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var n=require('react'),o=require('@radix-ui/react-accordion'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var n__namespace=/*#__PURE__*/_interopNamespace(n);var o__namespace=/*#__PURE__*/_interopNamespace(o);function t(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var f=n__namespace.forwardRef(({className:e,...r},i)=>jsxRuntime.jsx(o__namespace.Root,{ref:i,className:t("w-full",e),...r}));f.displayName="Accordion";var p=n__namespace.forwardRef(({className:e,...r},i)=>jsxRuntime.jsx(o__namespace.Item,{ref:i,className:t("border-b",e),...r}));p.displayName="AccordionItem";var l=n__namespace.forwardRef(({className:e,children:r,...i},a)=>jsxRuntime.jsx(o__namespace.Header,{className:"flex",children:jsxRuntime.jsxs(o__namespace.Trigger,{ref:a,className:t("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...i,children:[r,jsxRuntime.jsx(lucideReact.ChevronDown,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));l.displayName=o__namespace.Trigger.displayName;var A=n__namespace.forwardRef(({className:e,children:r,...i},a)=>jsxRuntime.jsx(o__namespace.Content,{ref:a,className:t("overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",e),...i,children:jsxRuntime.jsx("div",{className:t("pb-4 pt-0",e),children:r})}));A.displayName=o__namespace.Content.displayName;exports.Accordion=f;exports.AccordionContent=A;exports.AccordionItem=p;exports.AccordionTrigger=l;//# sourceMappingURL=accordion.js.map
|
|
2
|
-
//# sourceMappingURL=accordion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/cn.ts","../../src/components/atoms/accordion/accordion.tsx"],"names":["cn","inputs","twMerge","clsx","Accordion","n","className","props","ref","jsx","o","AccordionItem","AccordionTrigger","children","jsxs","ChevronDown","AccordionContent"],"mappings":"6mBAGO,SAASA,CAAMC,CAAAA,GAAAA,CAAAA,CAAsB,CAC1C,OAAOC,sBAAQC,SAAKF,CAAAA,CAAM,CAAC,CAC7B,KC2BMG,CAAkB,CAAAC,YAAA,CAAA,UAAA,CAGtB,CAAC,CAAE,SAAA,CAAAC,EAAW,GAAGC,CAAM,CAAGC,CAAAA,CAAAA,GAC1BC,eAAoBC,YAAnB,CAAA,IAAA,CAAA,CAAwB,IAAKF,CAAK,CAAA,SAAA,CAAWR,EAAG,QAAUM,CAAAA,CAAS,CAAI,CAAA,GAAGC,EAAO,CACnF,EACDH,EAAU,WAAc,CAAA,WAAA,KAElBO,CAAsB,CAAAN,YAAA,CAAA,UAAA,CAG1B,CAAC,CAAE,UAAAC,CAAW,CAAA,GAAGC,CAAM,CAAGC,CAAAA,CAAAA,GAC1BC,eAAoBC,YAAnB,CAAA,IAAA,CAAA,CAAwB,IAAKF,CAAK,CAAA,SAAA,CAAWR,EAAG,UAAYM,CAAAA,CAAS,EAAI,GAAGC,CAAAA,CAAO,CACrF,EACDI,CAAAA,CAAc,WAAc,CAAA,eAAA,KAEtBC,CAAyB,CAAAP,YAAA,CAAA,UAAA,CAG7B,CAAC,CAAE,SAAA,CAAAC,EAAW,QAAAO,CAAAA,CAAAA,CAAU,GAAGN,CAAM,EAAGC,CACpCC,GAAAA,cAAAA,CAAoBC,oBAAnB,CAA0B,SAAA,CAAU,OACnC,QAAAI,CAAAA,eAAAA,CAAoBJ,YAAnB,CAAA,OAAA,CAAA,CACC,IAAKF,CACL,CAAA,SAAA,CAAWR,EACT,gJACAM,CAAAA,CACF,EACC,GAAGC,CAAAA,CAEH,UAAAM,CACDJ,CAAAA,cAAAA,CAACM,wBAAA,CAAY,SAAA,CAAU,2EAA2E,CACpG,CAAA,CAAA,CAAA,CACF,CACD,EACDH,CAAAA,CAAiB,WAAiC,CAAAF,YAAA,CAAA,OAAA,CAAQ,YAEpDM,IAAAA,CAAAA,CAAyBX,wBAG7B,CAAC,CAAE,UAAAC,CAAW,CAAA,QAAA,CAAAO,CAAU,CAAA,GAAGN,CAAM,CAAGC,CAAAA,CAAAA,GACpCC,eAAoBC,YAAnB,CAAA,OAAA,CAAA,CACC,IAAKF,CACL,CAAA,SAAA,CAAWR,CACT,CAAA,2GAAA,CACAM,CACF,CACC,CAAA,GAAGC,EAEJ,QAAAE,CAAAA,cAAAA,CAAC,OAAI,SAAWT,CAAAA,CAAAA,CAAG,YAAaM,CAAS,CAAA,CAAI,SAAAO,CAAS,CAAA,CAAA,CACxD,CACD,EACDG,CAAAA,CAAiB,YAAiCN,YAAQ,CAAA,OAAA,CAAA,WAAA","file":"accordion.js","sourcesContent":["import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { ChevronDown } from \"lucide-react\"\n\nimport { cn } from \"@/utils/index\"\nimport type {\n AccordionProps,\n AccordionItemProps,\n AccordionTriggerProps,\n AccordionContentProps\n} from \"./accordion.types\"\n\n/**\n * Accordion component that displays a list of expandable/collapsible sections.\n * Built on top of Radix UI's Accordion primitive.\n *\n * @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-accordion--docs\n *\n * @example\n * ```tsx\n * <Accordion type=\"single\" collapsible>\n * <AccordionItem value=\"item-1\">\n * <AccordionTrigger>Section 1</AccordionTrigger>\n * <AccordionContent>Content 1</AccordionContent>\n * </AccordionItem>\n * <AccordionItem value=\"item-2\">\n * <AccordionTrigger>Section 2</AccordionTrigger>\n * <AccordionContent>Content 2</AccordionContent>\n * </AccordionItem>\n * </Accordion>\n * ```\n */\nconst Accordion = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Root>,\n AccordionProps\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Root ref={ref} className={cn(\"w-full\", className)} {...props} />\n))\nAccordion.displayName = \"Accordion\"\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n AccordionItemProps\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn(\"border-b\", className)} {...props} />\n))\nAccordionItem.displayName = \"AccordionItem\"\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n AccordionTriggerProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDown className=\"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n))\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n AccordionContentProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className={cn(\n \"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down\",\n className\n )}\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n))\nAccordionContent.displayName = AccordionPrimitive.Content.displayName\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/cn.ts","../../src/components/atoms/accordion/accordion.tsx"],"names":["cn","inputs","twMerge","clsx","Accordion","className","props","ref","jsx","AccordionItem","AccordionTrigger","children","jsxs","ChevronDown","AccordionContent"],"mappings":"iNAGO,SAASA,CAAMC,CAAAA,GAAAA,CAAAA,CAAsB,CAC1C,OAAOC,QAAQC,IAAKF,CAAAA,CAAM,CAAC,CAC7B,KC2BMG,CAAkB,CAAA,CAAA,CAAA,UAAA,CAGtB,CAAC,CAAE,SAAA,CAAAC,EAAW,GAAGC,CAAM,CAAGC,CAAAA,CAAAA,GAC1BC,IAAoB,CAAnB,CAAA,IAAA,CAAA,CAAwB,IAAKD,CAAK,CAAA,SAAA,CAAWP,EAAG,QAAUK,CAAAA,CAAS,CAAI,CAAA,GAAGC,EAAO,CACnF,EACDF,EAAU,WAAc,CAAA,WAAA,KAElBK,CAAsB,CAAA,CAAA,CAAA,UAAA,CAG1B,CAAC,CAAE,UAAAJ,CAAW,CAAA,GAAGC,CAAM,CAAGC,CAAAA,CAAAA,GAC1BC,IAAoB,CAAnB,CAAA,IAAA,CAAA,CAAwB,IAAKD,CAAK,CAAA,SAAA,CAAWP,EAAG,UAAYK,CAAAA,CAAS,EAAI,GAAGC,CAAAA,CAAO,CACrF,EACDG,CAAAA,CAAc,WAAc,CAAA,eAAA,KAEtBC,CAAyB,CAAA,CAAA,CAAA,UAAA,CAG7B,CAAC,CAAE,SAAA,CAAAL,EAAW,QAAAM,CAAAA,CAAAA,CAAU,GAAGL,CAAM,EAAGC,CACpCC,GAAAA,GAAAA,CAAoB,SAAnB,CAA0B,SAAA,CAAU,OACnC,QAAAI,CAAAA,IAAAA,CAAoB,CAAnB,CAAA,OAAA,CAAA,CACC,IAAKL,CACL,CAAA,SAAA,CAAWP,EACT,gJACAK,CAAAA,CACF,EACC,GAAGC,CAAAA,CAEH,UAAAK,CACDH,CAAAA,GAAAA,CAACK,YAAA,CAAY,SAAA,CAAU,2EAA2E,CACpG,CAAA,CAAA,CAAA,CACF,CACD,EACDH,CAAAA,CAAiB,WAAiC,CAAA,CAAA,CAAA,OAAA,CAAQ,YAEpDI,IAAAA,CAAAA,CAAyB,aAG7B,CAAC,CAAE,UAAAT,CAAW,CAAA,QAAA,CAAAM,CAAU,CAAA,GAAGL,CAAM,CAAGC,CAAAA,CAAAA,GACpCC,IAAoB,CAAnB,CAAA,OAAA,CAAA,CACC,IAAKD,CACL,CAAA,SAAA,CAAWP,CACT,CAAA,2GAAA,CACAK,CACF,CACC,CAAA,GAAGC,EAEJ,QAAAE,CAAAA,GAAAA,CAAC,OAAI,SAAWR,CAAAA,CAAAA,CAAG,YAAaK,CAAS,CAAA,CAAI,SAAAM,CAAS,CAAA,CAAA,CACxD,CACD,EACDG,CAAAA,CAAiB,YAAiC,CAAQ,CAAA,OAAA,CAAA,WAAA","file":"accordion.mjs","sourcesContent":["import { type ClassValue, clsx } from \"clsx\"\nimport { twMerge } from \"tailwind-merge\"\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n","import * as React from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { ChevronDown } from \"lucide-react\"\n\nimport { cn } from \"@/utils/index\"\nimport type {\n AccordionProps,\n AccordionItemProps,\n AccordionTriggerProps,\n AccordionContentProps\n} from \"./accordion.types\"\n\n/**\n * Accordion component that displays a list of expandable/collapsible sections.\n * Built on top of Radix UI's Accordion primitive.\n *\n * @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-accordion--docs\n *\n * @example\n * ```tsx\n * <Accordion type=\"single\" collapsible>\n * <AccordionItem value=\"item-1\">\n * <AccordionTrigger>Section 1</AccordionTrigger>\n * <AccordionContent>Content 1</AccordionContent>\n * </AccordionItem>\n * <AccordionItem value=\"item-2\">\n * <AccordionTrigger>Section 2</AccordionTrigger>\n * <AccordionContent>Content 2</AccordionContent>\n * </AccordionItem>\n * </Accordion>\n * ```\n */\nconst Accordion = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Root>,\n AccordionProps\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Root ref={ref} className={cn(\"w-full\", className)} {...props} />\n))\nAccordion.displayName = \"Accordion\"\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Item>,\n AccordionItemProps\n>(({ className, ...props }, ref) => (\n <AccordionPrimitive.Item ref={ref} className={cn(\"border-b\", className)} {...props} />\n))\nAccordionItem.displayName = \"AccordionItem\"\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Trigger>,\n AccordionTriggerProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n ref={ref}\n className={cn(\n \"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDown className=\"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n))\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef<typeof AccordionPrimitive.Content>,\n AccordionContentProps\n>(({ className, children, ...props }, ref) => (\n <AccordionPrimitive.Content\n ref={ref}\n className={cn(\n \"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down\",\n className\n )}\n {...props}\n >\n <div className={cn(\"pb-4 pt-0\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n))\nAccordionContent.displayName = AccordionPrimitive.Content.displayName\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n"]}
|