@me1a/ui 2.2.0 → 2.2.2
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.d.mts +94 -0
- package/dist/atoms/accordion.d.ts +94 -0
- package/dist/atoms/accordion.js +2 -0
- package/dist/atoms/accordion.js.map +1 -0
- package/dist/atoms/accordion.mjs +2 -0
- package/dist/atoms/accordion.mjs.map +1 -0
- package/dist/atoms/avatar.d.mts +34 -0
- package/dist/atoms/avatar.d.ts +34 -0
- package/dist/atoms/avatar.js +2 -0
- package/dist/atoms/avatar.js.map +1 -0
- package/dist/atoms/avatar.mjs +2 -0
- package/dist/atoms/avatar.mjs.map +1 -0
- package/dist/atoms/badge.d.mts +40 -0
- package/dist/atoms/badge.d.ts +40 -0
- package/dist/atoms/badge.js +2 -0
- package/dist/atoms/badge.js.map +1 -0
- package/dist/atoms/badge.mjs +2 -0
- package/dist/atoms/badge.mjs.map +1 -0
- package/dist/atoms/box.d.mts +50 -0
- package/dist/atoms/box.d.ts +50 -0
- package/dist/atoms/box.js +2 -0
- package/dist/atoms/box.js.map +1 -0
- package/dist/atoms/box.mjs +2 -0
- package/dist/atoms/box.mjs.map +1 -0
- package/dist/atoms/breadcrumb.d.mts +35 -0
- package/dist/atoms/breadcrumb.d.ts +35 -0
- package/dist/atoms/breadcrumb.js +2 -0
- package/dist/atoms/breadcrumb.js.map +1 -0
- package/dist/atoms/breadcrumb.mjs +2 -0
- package/dist/atoms/breadcrumb.mjs.map +1 -0
- package/dist/{tooltip-B4jzaurK.d.mts → atoms/button.d.mts} +1 -23
- package/dist/{tooltip-B4jzaurK.d.ts → atoms/button.d.ts} +1 -23
- package/dist/atoms/button.js +2 -0
- package/dist/atoms/button.js.map +1 -0
- package/dist/atoms/button.mjs +2 -0
- package/dist/atoms/button.mjs.map +1 -0
- package/dist/atoms/checkbox.d.mts +21 -0
- package/dist/atoms/checkbox.d.ts +21 -0
- package/dist/atoms/checkbox.js +2 -0
- package/dist/atoms/checkbox.js.map +1 -0
- package/dist/atoms/checkbox.mjs +2 -0
- package/dist/atoms/checkbox.mjs.map +1 -0
- package/dist/atoms/collapsible.d.mts +26 -0
- package/dist/atoms/collapsible.d.ts +26 -0
- package/dist/atoms/collapsible.js +2 -0
- package/dist/atoms/collapsible.js.map +1 -0
- package/dist/atoms/collapsible.mjs +2 -0
- package/dist/atoms/collapsible.mjs.map +1 -0
- package/dist/atoms/command.d.mts +122 -0
- package/dist/atoms/command.d.ts +122 -0
- package/dist/atoms/command.js +2 -0
- package/dist/atoms/command.js.map +1 -0
- package/dist/atoms/command.mjs +2 -0
- package/dist/atoms/command.mjs.map +1 -0
- package/dist/atoms/container.js +2 -0
- package/dist/atoms/container.js.map +1 -0
- package/dist/atoms/container.mjs +2 -0
- package/dist/atoms/container.mjs.map +1 -0
- package/dist/atoms/dialog.d.mts +35 -0
- package/dist/atoms/dialog.d.ts +35 -0
- package/dist/atoms/dialog.js +2 -0
- package/dist/atoms/dialog.js.map +1 -0
- package/dist/atoms/dialog.mjs +2 -0
- package/dist/atoms/dialog.mjs.map +1 -0
- package/dist/atoms/input.d.mts +12 -0
- package/dist/atoms/input.d.ts +12 -0
- package/dist/atoms/input.js +2 -0
- package/dist/atoms/input.js.map +1 -0
- package/dist/atoms/input.mjs +2 -0
- package/dist/atoms/input.mjs.map +1 -0
- package/dist/atoms/label.d.mts +18 -0
- package/dist/atoms/label.d.ts +18 -0
- package/dist/atoms/label.js +2 -0
- package/dist/atoms/label.js.map +1 -0
- package/dist/atoms/label.mjs +2 -0
- package/dist/atoms/label.mjs.map +1 -0
- package/dist/atoms/page-loader.d.mts +29 -0
- package/dist/atoms/page-loader.d.ts +29 -0
- package/dist/atoms/page-loader.js +2 -0
- package/dist/atoms/page-loader.js.map +1 -0
- package/dist/atoms/page-loader.mjs +2 -0
- package/dist/atoms/page-loader.mjs.map +1 -0
- package/dist/atoms/pagination.d.mts +105 -0
- package/dist/atoms/pagination.d.ts +105 -0
- package/dist/atoms/pagination.js +2 -0
- package/dist/atoms/pagination.js.map +1 -0
- package/dist/atoms/pagination.mjs +2 -0
- package/dist/atoms/pagination.mjs.map +1 -0
- package/dist/atoms/popover.d.mts +30 -0
- package/dist/atoms/popover.d.ts +30 -0
- package/dist/atoms/popover.js +2 -0
- package/dist/atoms/popover.js.map +1 -0
- package/dist/atoms/popover.mjs +2 -0
- package/dist/atoms/popover.mjs.map +1 -0
- package/dist/{checkbox-DxgDKaHx.d.mts → atoms/radio-group.d.mts} +4 -50
- package/dist/{checkbox-DxgDKaHx.d.ts → atoms/radio-group.d.ts} +4 -50
- package/dist/atoms/radio-group.js +2 -0
- package/dist/atoms/radio-group.js.map +1 -0
- package/dist/atoms/radio-group.mjs +2 -0
- package/dist/atoms/radio-group.mjs.map +1 -0
- package/dist/atoms/resizable.d.mts +53 -0
- package/dist/atoms/resizable.d.ts +53 -0
- package/dist/atoms/resizable.js +2 -0
- package/dist/atoms/resizable.js.map +1 -0
- package/dist/atoms/resizable.mjs +2 -0
- package/dist/atoms/resizable.mjs.map +1 -0
- package/dist/atoms/separator.d.mts +13 -0
- package/dist/atoms/separator.d.ts +13 -0
- package/dist/atoms/separator.js +2 -0
- package/dist/atoms/separator.js.map +1 -0
- package/dist/atoms/separator.mjs +2 -0
- package/dist/atoms/separator.mjs.map +1 -0
- package/dist/atoms/sheet.d.mts +42 -0
- package/dist/atoms/sheet.d.ts +42 -0
- package/dist/atoms/sheet.js +2 -0
- package/dist/atoms/sheet.js.map +1 -0
- package/dist/atoms/sheet.mjs +2 -0
- package/dist/atoms/sheet.mjs.map +1 -0
- package/dist/atoms/skeleton.js +2 -0
- package/dist/atoms/skeleton.js.map +1 -0
- package/dist/atoms/skeleton.mjs +2 -0
- package/dist/atoms/skeleton.mjs.map +1 -0
- package/dist/atoms/stack.d.mts +121 -0
- package/dist/atoms/stack.d.ts +121 -0
- package/dist/atoms/stack.js +2 -0
- package/dist/atoms/stack.js.map +1 -0
- package/dist/atoms/stack.mjs +2 -0
- package/dist/atoms/stack.mjs.map +1 -0
- package/dist/atoms/switch.d.mts +21 -0
- package/dist/atoms/switch.d.ts +21 -0
- package/dist/atoms/switch.js +2 -0
- package/dist/atoms/switch.js.map +1 -0
- package/dist/atoms/switch.mjs +2 -0
- package/dist/atoms/switch.mjs.map +1 -0
- package/dist/atoms/table.d.mts +53 -0
- package/dist/atoms/table.d.ts +53 -0
- package/dist/atoms/table.js +2 -0
- package/dist/atoms/table.js.map +1 -0
- package/dist/atoms/table.mjs +2 -0
- package/dist/atoms/table.mjs.map +1 -0
- package/dist/atoms/text-field.d.mts +65 -0
- package/dist/atoms/text-field.d.ts +65 -0
- package/dist/atoms/text-field.js +2 -0
- package/dist/atoms/text-field.js.map +1 -0
- package/dist/atoms/text-field.mjs +2 -0
- package/dist/atoms/text-field.mjs.map +1 -0
- package/dist/atoms/textarea.js +2 -0
- package/dist/atoms/textarea.js.map +1 -0
- package/dist/atoms/textarea.mjs +2 -0
- package/dist/atoms/textarea.mjs.map +1 -0
- package/dist/{toast-2xT7L1tJ.d.mts → atoms/toast.d.mts} +1 -1
- package/dist/{toast-2xT7L1tJ.d.ts → atoms/toast.d.ts} +1 -1
- package/dist/atoms/toast.js +2 -0
- package/dist/atoms/toast.js.map +1 -0
- package/dist/atoms/toast.mjs +2 -0
- package/dist/atoms/toast.mjs.map +1 -0
- package/dist/atoms/toaster.d.mts +26 -0
- package/dist/atoms/toaster.d.ts +26 -0
- package/dist/atoms/toaster.js +2 -0
- package/dist/atoms/toaster.js.map +1 -0
- package/dist/atoms/toaster.mjs +2 -0
- package/dist/atoms/toaster.mjs.map +1 -0
- package/dist/atoms/tooltip.d.mts +25 -0
- package/dist/atoms/tooltip.d.ts +25 -0
- package/dist/atoms/tooltip.js +2 -0
- package/dist/atoms/tooltip.js.map +1 -0
- package/dist/atoms/tooltip.mjs +2 -0
- package/dist/atoms/tooltip.mjs.map +1 -0
- package/dist/atoms/typography.d.mts +24 -0
- package/dist/atoms/typography.d.ts +24 -0
- package/dist/atoms/typography.js +2 -0
- package/dist/atoms/typography.js.map +1 -0
- package/dist/atoms/typography.mjs +2 -0
- package/dist/atoms/typography.mjs.map +1 -0
- package/dist/atoms.d.mts +213 -27
- package/dist/atoms.d.ts +213 -27
- package/dist/atoms.js +2 -0
- package/dist/atoms.js.map +1 -0
- package/dist/atoms.mjs +2 -0
- package/dist/atoms.mjs.map +1 -0
- package/dist/hooks.d.mts +10 -4
- package/dist/hooks.d.ts +10 -4
- package/dist/hooks.js +2 -0
- package/dist/hooks.js.map +1 -0
- package/dist/hooks.mjs +2 -0
- package/dist/hooks.mjs.map +1 -0
- package/dist/index.d.mts +2619 -30
- package/dist/index.d.ts +2619 -30
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/molecules/card.d.mts +72 -0
- package/dist/molecules/card.d.ts +72 -0
- package/dist/molecules/card.js +2 -0
- package/dist/molecules/card.js.map +1 -0
- package/dist/molecules/card.mjs +2 -0
- package/dist/molecules/card.mjs.map +1 -0
- package/dist/molecules/navigation-menu.d.mts +103 -0
- package/dist/molecules/navigation-menu.d.ts +103 -0
- package/dist/molecules/navigation-menu.js +2 -0
- package/dist/molecules/navigation-menu.js.map +1 -0
- package/dist/molecules/navigation-menu.mjs +2 -0
- package/dist/molecules/navigation-menu.mjs.map +1 -0
- package/dist/molecules/tabs.d.mts +32 -0
- package/dist/molecules/tabs.d.ts +32 -0
- package/dist/molecules/tabs.js +2 -0
- package/dist/molecules/tabs.js.map +1 -0
- package/dist/molecules/tabs.mjs +2 -0
- package/dist/molecules/tabs.mjs.map +1 -0
- package/dist/molecules.d.mts +1 -1
- package/dist/molecules.d.ts +1 -1
- package/dist/molecules.js +2 -0
- package/dist/molecules.js.map +1 -0
- package/dist/molecules.mjs +2 -0
- package/dist/molecules.mjs.map +1 -0
- package/dist/organisms/drawer.d.mts +63 -0
- package/dist/organisms/drawer.d.ts +63 -0
- package/dist/organisms/drawer.js +2 -0
- package/dist/organisms/drawer.js.map +1 -0
- package/dist/organisms/drawer.mjs +2 -0
- package/dist/organisms/drawer.mjs.map +1 -0
- package/dist/organisms/dropdown-menu.d.mts +335 -0
- package/dist/organisms/dropdown-menu.d.ts +335 -0
- package/dist/organisms/dropdown-menu.js +2 -0
- package/dist/organisms/dropdown-menu.js.map +1 -0
- package/dist/organisms/dropdown-menu.mjs +2 -0
- package/dist/organisms/dropdown-menu.mjs.map +1 -0
- package/dist/organisms/sidebar.d.mts +328 -0
- package/dist/organisms/sidebar.d.ts +328 -0
- package/dist/organisms/sidebar.js +2 -0
- package/dist/organisms/sidebar.js.map +1 -0
- package/dist/organisms/sidebar.mjs +2 -0
- package/dist/organisms/sidebar.mjs.map +1 -0
- package/dist/organisms.d.mts +56 -12
- package/dist/organisms.d.ts +56 -12
- package/dist/organisms.js +2 -0
- package/dist/organisms.js.map +1 -0
- package/dist/organisms.mjs +2 -0
- package/dist/organisms.mjs.map +1 -0
- package/dist/rhf/form.d.mts +96 -0
- package/dist/rhf/form.d.ts +96 -0
- package/dist/rhf/form.js +2 -0
- package/dist/rhf/form.js.map +1 -0
- package/dist/rhf/form.mjs +2 -0
- package/dist/rhf/form.mjs.map +1 -0
- package/dist/rhf/rhf-checkbox.d.mts +57 -0
- package/dist/rhf/rhf-checkbox.d.ts +57 -0
- package/dist/rhf/rhf-checkbox.js +2 -0
- package/dist/rhf/rhf-checkbox.js.map +1 -0
- package/dist/rhf/rhf-checkbox.mjs +2 -0
- package/dist/rhf/rhf-checkbox.mjs.map +1 -0
- package/dist/rhf/rhf-multi-select.d.mts +84 -0
- package/dist/rhf/rhf-multi-select.d.ts +84 -0
- package/dist/rhf/rhf-multi-select.js +2 -0
- package/dist/rhf/rhf-multi-select.js.map +1 -0
- package/dist/rhf/rhf-multi-select.mjs +2 -0
- package/dist/rhf/rhf-multi-select.mjs.map +1 -0
- package/dist/rhf/rhf-radio-button-group.d.mts +73 -0
- package/dist/rhf/rhf-radio-button-group.d.ts +73 -0
- package/dist/rhf/rhf-radio-button-group.js +2 -0
- package/dist/rhf/rhf-radio-button-group.js.map +1 -0
- package/dist/rhf/rhf-radio-button-group.mjs +2 -0
- package/dist/rhf/rhf-radio-button-group.mjs.map +1 -0
- package/dist/rhf/rhf-radio-group.d.mts +103 -0
- package/dist/rhf/rhf-radio-group.d.ts +103 -0
- package/dist/rhf/rhf-radio-group.js +2 -0
- package/dist/rhf/rhf-radio-group.js.map +1 -0
- package/dist/rhf/rhf-radio-group.mjs +2 -0
- package/dist/rhf/rhf-radio-group.mjs.map +1 -0
- package/dist/rhf/rhf-select.d.mts +80 -0
- package/dist/rhf/rhf-select.d.ts +80 -0
- package/dist/rhf/rhf-select.js +2 -0
- package/dist/rhf/rhf-select.js.map +1 -0
- package/dist/rhf/rhf-select.mjs +2 -0
- package/dist/rhf/rhf-select.mjs.map +1 -0
- package/dist/rhf/rhf-switch.d.mts +57 -0
- package/dist/rhf/rhf-switch.d.ts +57 -0
- package/dist/rhf/rhf-switch.js +2 -0
- package/dist/rhf/rhf-switch.js.map +1 -0
- package/dist/rhf/rhf-switch.mjs +2 -0
- package/dist/rhf/rhf-switch.mjs.map +1 -0
- package/dist/rhf/rhf-textarea.d.mts +66 -0
- package/dist/rhf/rhf-textarea.d.ts +66 -0
- package/dist/rhf/rhf-textarea.js +2 -0
- package/dist/rhf/rhf-textarea.js.map +1 -0
- package/dist/rhf/rhf-textarea.mjs +2 -0
- package/dist/rhf/rhf-textarea.mjs.map +1 -0
- package/dist/rhf.d.mts +213 -7
- package/dist/rhf.d.ts +213 -7
- package/dist/rhf.js +2 -0
- package/dist/rhf.js.map +1 -0
- package/dist/rhf.mjs +2 -0
- package/dist/rhf.mjs.map +1 -0
- package/dist/types.js +2 -0
- package/dist/{types.cjs.js.map → types.js.map} +1 -1
- package/dist/types.mjs +2 -0
- package/dist/{types.esm.js.map → types.mjs.map} +1 -1
- package/dist/{chunk-SL2ZUI4G.cjs.js → utils.js} +2 -2
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +2 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +241 -15
- package/dist/atoms.cjs.js +0 -2
- package/dist/atoms.cjs.js.map +0 -1
- package/dist/atoms.esm.js +0 -2
- package/dist/atoms.esm.js.map +0 -1
- package/dist/chunk-23T2PH5G.esm.js +0 -2
- package/dist/chunk-23T2PH5G.esm.js.map +0 -1
- package/dist/chunk-2QG3QTSW.cjs.js +0 -2
- package/dist/chunk-2QG3QTSW.cjs.js.map +0 -1
- package/dist/chunk-C26U3FL4.esm.js +0 -2
- package/dist/chunk-C26U3FL4.esm.js.map +0 -1
- package/dist/chunk-DTM5LZHM.cjs.js +0 -2
- package/dist/chunk-DTM5LZHM.cjs.js.map +0 -1
- package/dist/chunk-HW32JE75.cjs.js +0 -2
- package/dist/chunk-HW32JE75.cjs.js.map +0 -1
- package/dist/chunk-J5A6PILI.cjs.js +0 -2
- package/dist/chunk-J5A6PILI.cjs.js.map +0 -1
- package/dist/chunk-JIRS6MWF.cjs.js +0 -2
- package/dist/chunk-JIRS6MWF.cjs.js.map +0 -1
- package/dist/chunk-JKTYFZ5M.esm.js +0 -2
- package/dist/chunk-JKTYFZ5M.esm.js.map +0 -1
- package/dist/chunk-JUZG25DH.esm.js +0 -2
- package/dist/chunk-JUZG25DH.esm.js.map +0 -1
- package/dist/chunk-KOYJODOP.cjs.js +0 -2
- package/dist/chunk-KOYJODOP.cjs.js.map +0 -1
- package/dist/chunk-M4S5YZ56.esm.js +0 -2
- package/dist/chunk-M4S5YZ56.esm.js.map +0 -1
- package/dist/chunk-MOYOCJW6.esm.js +0 -2
- package/dist/chunk-MOYOCJW6.esm.js.map +0 -1
- package/dist/chunk-MVWMLXLL.cjs.js +0 -2
- package/dist/chunk-MVWMLXLL.cjs.js.map +0 -1
- package/dist/chunk-Q76IMLQ3.esm.js +0 -2
- package/dist/chunk-Q76IMLQ3.esm.js.map +0 -1
- package/dist/chunk-SL2ZUI4G.cjs.js.map +0 -1
- package/dist/chunk-STRDPP3B.esm.js +0 -2
- package/dist/chunk-STRDPP3B.esm.js.map +0 -1
- package/dist/chunk-U4NMIMU7.esm.js +0 -2
- package/dist/chunk-U4NMIMU7.esm.js.map +0 -1
- package/dist/chunk-UK47BFA3.cjs.js +0 -2
- package/dist/chunk-UK47BFA3.cjs.js.map +0 -1
- package/dist/chunk-WJNYKJP6.cjs.js +0 -2
- package/dist/chunk-WJNYKJP6.cjs.js.map +0 -1
- package/dist/chunk-YEZB7AOJ.esm.js +0 -2
- package/dist/chunk-YEZB7AOJ.esm.js.map +0 -1
- package/dist/hooks.cjs.js +0 -2
- package/dist/hooks.cjs.js.map +0 -1
- package/dist/hooks.esm.js +0 -2
- package/dist/hooks.esm.js.map +0 -1
- package/dist/index.cjs.js +0 -2
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js +0 -2
- package/dist/index.esm.js.map +0 -1
- package/dist/molecules.cjs.js +0 -2
- package/dist/molecules.cjs.js.map +0 -1
- package/dist/molecules.esm.js +0 -2
- package/dist/molecules.esm.js.map +0 -1
- package/dist/organisms.cjs.js +0 -2
- package/dist/organisms.cjs.js.map +0 -1
- package/dist/organisms.esm.js +0 -2
- package/dist/organisms.esm.js.map +0 -1
- package/dist/rhf.cjs.js +0 -2
- package/dist/rhf.cjs.js.map +0 -1
- package/dist/rhf.esm.js +0 -2
- package/dist/rhf.esm.js.map +0 -1
- package/dist/types.cjs.js +0 -2
- package/dist/types.d.mts +0 -2
- package/dist/types.d.ts +0 -2
- package/dist/types.esm.js +0 -2
- package/dist/utils.cjs.js +0 -2
- package/dist/utils.cjs.js.map +0 -1
- package/dist/utils.d.mts +0 -5
- package/dist/utils.d.ts +0 -5
- package/dist/utils.esm.js +0 -2
- package/dist/utils.esm.js.map +0 -1
package/dist/atoms.d.mts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { a as ButtonProps } from './tooltip-B4jzaurK.mjs';
|
|
2
|
-
export { B as Button, T as Tooltip, d as TooltipContent, e as TooltipProvider, c as TooltipTrigger, b as buttonVariants } from './tooltip-B4jzaurK.mjs';
|
|
3
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
2
|
import * as React$1 from 'react';
|
|
5
3
|
import { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react';
|
|
@@ -7,10 +5,11 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
7
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
6
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
9
7
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
10
|
-
export { C as Checkbox, I as Input, L as Label, a as LabelProps, R as RadioGroup, b as RadioGroupItem, d as RadioItemContainer, c as RadioItemLabel, S as Switch } from './checkbox-DxgDKaHx.mjs';
|
|
11
8
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
12
9
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
13
|
-
|
|
10
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
11
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
12
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
14
13
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
15
14
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
16
15
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
@@ -18,9 +17,83 @@ import { Command as Command$1 } from 'cmdk';
|
|
|
18
17
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
19
18
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
20
19
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Props interface for the Button component.
|
|
23
|
+
* Extends the native button HTML attributes and adds support for variants and asChild prop.
|
|
24
|
+
* Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
|
|
25
|
+
*
|
|
26
|
+
* @interface ButtonProps
|
|
27
|
+
* @extends {React.ButtonHTMLAttributes<HTMLButtonElement>}
|
|
28
|
+
* @extends {VariantProps<typeof buttonVariants>}
|
|
29
|
+
*
|
|
30
|
+
* @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
|
|
31
|
+
* @property {ButtonVariant} [variant] - The visual style variant of the button.
|
|
32
|
+
* @property {ButtonSize} [size] - The size variant of the button.
|
|
33
|
+
* @property {string} [className] - Additional CSS classes to apply to the button.
|
|
34
|
+
* @property {React.ReactNode} [startIcon] - Icon to display before the button text.
|
|
35
|
+
* @property {React.ReactNode} [endIcon] - Icon to display after the button text.
|
|
36
|
+
* @property {boolean} [loading] - Whether the button is in a loading state.
|
|
37
|
+
* @property {string} [type] - The type of button (button, submit, reset). Defaults to "button".
|
|
38
|
+
* @property {string} [aria-label] - Accessible label for the button. Falls back to button text if not provided.
|
|
39
|
+
*/
|
|
40
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
41
|
+
asChild?: boolean;
|
|
42
|
+
startIcon?: React$1.ReactNode;
|
|
43
|
+
endIcon?: React$1.ReactNode;
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
type?: "button" | "submit" | "reset";
|
|
46
|
+
"aria-label"?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Button variant styles using class-variance-authority.
|
|
51
|
+
* Defines the visual styles for different button variants and sizes.
|
|
52
|
+
* Follows WCAG 2.1 Level AA guidelines for accessibility.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```tsx
|
|
56
|
+
* <Button variant="primary" size="lg">Click me</Button>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
declare const buttonVariants: (props?: ({
|
|
60
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
61
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
62
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
63
|
+
/**
|
|
64
|
+
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
65
|
+
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
66
|
+
* Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
|
|
67
|
+
*
|
|
68
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-button--docs
|
|
69
|
+
*
|
|
70
|
+
* @component
|
|
71
|
+
* @example
|
|
72
|
+
* ```tsx
|
|
73
|
+
* // Default button
|
|
74
|
+
* <Button>Click me</Button>
|
|
75
|
+
*
|
|
76
|
+
* // Destructive button with small size
|
|
77
|
+
* <Button variant="destructive" size="sm">Delete</Button>
|
|
78
|
+
*
|
|
79
|
+
* // As a link
|
|
80
|
+
* <Button variant="link" asChild>
|
|
81
|
+
* <a href="/about">About</a>
|
|
82
|
+
* </Button>
|
|
83
|
+
*
|
|
84
|
+
* // With icons
|
|
85
|
+
* <Button startIcon={<Icon />}>With Start Icon</Button>
|
|
86
|
+
* <Button endIcon={<Icon />}>With End Icon</Button>
|
|
87
|
+
*
|
|
88
|
+
* // Loading state
|
|
89
|
+
* <Button loading>Loading</Button>
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @param {ButtonProps} props - The component props
|
|
93
|
+
* @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref
|
|
94
|
+
* @returns {JSX.Element} A button element
|
|
95
|
+
*/
|
|
96
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
24
97
|
|
|
25
98
|
/**
|
|
26
99
|
* Props interface for the TextField component.
|
|
@@ -307,6 +380,15 @@ declare const DialogFooter: {
|
|
|
307
380
|
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
308
381
|
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
309
382
|
|
|
383
|
+
/**
|
|
384
|
+
* Input component for creating accessible input fields.
|
|
385
|
+
* Built on top of shadcn/ui's Input component.
|
|
386
|
+
*
|
|
387
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-input--docs
|
|
388
|
+
*
|
|
389
|
+
*/
|
|
390
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
391
|
+
|
|
310
392
|
/**
|
|
311
393
|
* Separator component for creating horizontal or vertical dividers.
|
|
312
394
|
* Built on top of Radix UI's Separator primitive.
|
|
@@ -394,6 +476,27 @@ type AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;
|
|
|
394
476
|
type AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
|
|
395
477
|
type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
|
|
396
478
|
|
|
479
|
+
/**
|
|
480
|
+
* TooltipProvider component for creating accessible tooltips.
|
|
481
|
+
* Built on top of Radix UI's Tooltip primitive.
|
|
482
|
+
*
|
|
483
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-tooltip--docs
|
|
484
|
+
*
|
|
485
|
+
* @example
|
|
486
|
+
* ```tsx
|
|
487
|
+
* <TooltipProvider>
|
|
488
|
+
* <Tooltip>
|
|
489
|
+
* <TooltipTrigger>Hover me</TooltipTrigger>
|
|
490
|
+
* <TooltipContent>Tooltip content</TooltipContent>
|
|
491
|
+
* </Tooltip>
|
|
492
|
+
* </TooltipProvider>
|
|
493
|
+
* ```
|
|
494
|
+
*/
|
|
495
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
496
|
+
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
497
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
498
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
499
|
+
|
|
397
500
|
declare const badgeVariants: (props?: ({
|
|
398
501
|
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
399
502
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
@@ -448,7 +551,7 @@ declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & Re
|
|
|
448
551
|
type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
|
|
449
552
|
type TypographyAlign = NonNullable<VariantProps<typeof typographyVariants>["align"]>;
|
|
450
553
|
|
|
451
|
-
interface PageLoaderProps
|
|
554
|
+
interface PageLoaderProps {
|
|
452
555
|
/**
|
|
453
556
|
* Optional className to extend the component's styles
|
|
454
557
|
*/
|
|
@@ -472,26 +575,31 @@ interface PageLoaderProps$1 {
|
|
|
472
575
|
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-page-loader--docs
|
|
473
576
|
*
|
|
474
577
|
*/
|
|
475
|
-
declare function PageLoader({ className, size, text, color }: PageLoaderProps
|
|
578
|
+
declare function PageLoader({ className, size, text, color }: PageLoaderProps): react_jsx_runtime.JSX.Element;
|
|
476
579
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
* Optional className to extend the component's styles
|
|
480
|
-
*/
|
|
481
|
-
className?: string;
|
|
482
|
-
/**
|
|
483
|
-
* Optional size of the loader (default: "default")
|
|
484
|
-
*/
|
|
485
|
-
size?: "sm" | "default" | "lg";
|
|
486
|
-
/**
|
|
487
|
-
* Optional text to display below the loader
|
|
488
|
-
*/
|
|
489
|
-
text?: string;
|
|
490
|
-
/**
|
|
491
|
-
* Optional color of the loader (default: "primary")
|
|
492
|
-
*/
|
|
493
|
-
color?: "primary" | "secondary" | "accent" | "muted" | "destructive" | string;
|
|
580
|
+
declare const labelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
581
|
+
interface LabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
494
582
|
}
|
|
583
|
+
/**
|
|
584
|
+
* Label component for creating accessible labels.
|
|
585
|
+
* Built on top of Radix UI's Label primitive.
|
|
586
|
+
*
|
|
587
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-label--docs
|
|
588
|
+
*
|
|
589
|
+
*/
|
|
590
|
+
declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
591
|
+
|
|
592
|
+
declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
593
|
+
declare const ToastViewport: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React$1.RefAttributes<HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
594
|
+
declare const Toast: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
595
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
596
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
|
|
597
|
+
declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
598
|
+
declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
599
|
+
declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
600
|
+
declare const ToastDescription: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
601
|
+
type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast>;
|
|
602
|
+
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
495
603
|
|
|
496
604
|
/**
|
|
497
605
|
* Toaster component for managing and displaying toast notifications.
|
|
@@ -727,6 +835,21 @@ type MultiSelectProps = {
|
|
|
727
835
|
*/
|
|
728
836
|
declare function MultiSelect({ options, value, onChange, placeholder, disabled, required, error, className, fullWidth, searchable, id, maxSelections, showSelectAll, renderCommandList }: MultiSelectProps): react_jsx_runtime.JSX.Element;
|
|
729
837
|
|
|
838
|
+
/**
|
|
839
|
+
* Switch component that provides a toggle input control.
|
|
840
|
+
* Built on top of Radix UI's Switch primitive.
|
|
841
|
+
*
|
|
842
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-switch--docs
|
|
843
|
+
*
|
|
844
|
+
* @example
|
|
845
|
+
* ```tsx
|
|
846
|
+
* <Switch />
|
|
847
|
+
* <Switch defaultChecked />
|
|
848
|
+
* <Switch disabled />
|
|
849
|
+
* ```
|
|
850
|
+
*/
|
|
851
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
852
|
+
|
|
730
853
|
type SwitchProps = React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>;
|
|
731
854
|
|
|
732
855
|
/**
|
|
@@ -922,6 +1045,54 @@ type PaginationLinkProps = {
|
|
|
922
1045
|
isActive?: boolean;
|
|
923
1046
|
} & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
|
|
924
1047
|
|
|
1048
|
+
/**
|
|
1049
|
+
* RadioGroup component that allows users to select a single option from a list.
|
|
1050
|
+
* Built on top of Radix UI's RadioGroup primitive.
|
|
1051
|
+
*
|
|
1052
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-radio-group--docs
|
|
1053
|
+
*
|
|
1054
|
+
* @example
|
|
1055
|
+
* ```tsx
|
|
1056
|
+
* <RadioGroup defaultValue="option-1">
|
|
1057
|
+
* <RadioGroupItem value="option-1">Option 1</RadioGroupItem>
|
|
1058
|
+
* <RadioGroupItem value="option-2">Option 2</RadioGroupItem>
|
|
1059
|
+
* </RadioGroup>
|
|
1060
|
+
* ```
|
|
1061
|
+
*/
|
|
1062
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1063
|
+
/**
|
|
1064
|
+
* RadioGroupItem component that represents a single option in a RadioGroup.
|
|
1065
|
+
* Built on top of Radix UI's RadioGroupItem primitive.
|
|
1066
|
+
*
|
|
1067
|
+
* @example
|
|
1068
|
+
* ```tsx
|
|
1069
|
+
* <RadioGroupItem value="option-1">Option 1</RadioGroupItem>
|
|
1070
|
+
* ```
|
|
1071
|
+
*/
|
|
1072
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1073
|
+
/**
|
|
1074
|
+
* RadioItemContainer component that provides a container for radio group items with proper spacing and layout.
|
|
1075
|
+
*
|
|
1076
|
+
* @example
|
|
1077
|
+
* ```tsx
|
|
1078
|
+
* <RadioItemContainer>
|
|
1079
|
+
* <RadioGroupItem value="option-1">Option 1</RadioGroupItem>
|
|
1080
|
+
* <RadioGroupItem value="option-2">Option 2</RadioGroupItem>
|
|
1081
|
+
* </RadioItemContainer>
|
|
1082
|
+
* ```
|
|
1083
|
+
*/
|
|
1084
|
+
declare const RadioItemContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1085
|
+
/**
|
|
1086
|
+
* RadioItemLabel component that provides a label for individual radio items.
|
|
1087
|
+
* Built on top of the Label component.
|
|
1088
|
+
*
|
|
1089
|
+
* @example
|
|
1090
|
+
* ```tsx
|
|
1091
|
+
* <RadioItemLabel>Select an option</RadioItemLabel>
|
|
1092
|
+
* ```
|
|
1093
|
+
*/
|
|
1094
|
+
declare const RadioItemLabel: React$1.ForwardRefExoticComponent<Omit<LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1095
|
+
|
|
925
1096
|
type RadioGroupProps = React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
|
|
926
1097
|
type RadioGroupItemProps = React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
|
|
927
1098
|
|
|
@@ -1015,6 +1186,21 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<AccordionItemProp
|
|
|
1015
1186
|
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1016
1187
|
declare const AccordionContent: React$1.ForwardRefExoticComponent<AccordionContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1017
1188
|
|
|
1189
|
+
/**
|
|
1190
|
+
* Checkbox component built on top of Radix UI's Checkbox primitive.
|
|
1191
|
+
* Provides a customizable checkbox input with proper accessibility and keyboard navigation.
|
|
1192
|
+
*
|
|
1193
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-checkbox--docs
|
|
1194
|
+
*
|
|
1195
|
+
* @example
|
|
1196
|
+
* ```tsx
|
|
1197
|
+
* <Checkbox id="terms" name="terms" />
|
|
1198
|
+
* <label htmlFor="terms">Accept terms and conditions</label>
|
|
1199
|
+
* ```
|
|
1200
|
+
*/
|
|
1201
|
+
|
|
1202
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1203
|
+
|
|
1018
1204
|
type CheckboxProps = React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
|
|
1019
1205
|
|
|
1020
1206
|
interface BreadcrumbProps extends React$1.ComponentPropsWithoutRef<"nav"> {
|
|
@@ -1048,4 +1234,4 @@ declare const BreadcrumbEllipsis: {
|
|
|
1048
1234
|
displayName: string;
|
|
1049
1235
|
};
|
|
1050
1236
|
|
|
1051
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, ButtonProps, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, type CommandEmptyRef, CommandGroup, type CommandGroupProps, type CommandGroupRef, CommandInput, type CommandInputProps, type CommandInputRef, CommandItem, type CommandItemProps, type CommandItemRef, CommandList, type CommandListProps, type CommandListRef, type CommandProps, type CommandRef, CommandSeparator, type CommandSeparatorProps, type CommandSeparatorRef, CommandShortcut, type CommandShortcutProps, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, MultiSelect, type MultiSelectOption, type MultiSelectProps, PageLoader, type PageLoaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, type RadioGroupItemProps, type RadioGroupProps, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, Select, type SelectOption, type SelectProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Stack, type StackProps, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, TextField, type TextFieldProps, Toaster, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, typographyVariants };
|
|
1237
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, type CommandEmptyRef, CommandGroup, type CommandGroupProps, type CommandGroupRef, CommandInput, type CommandInputProps, type CommandInputRef, CommandItem, type CommandItemProps, type CommandItemRef, CommandList, type CommandListProps, type CommandListRef, type CommandProps, type CommandRef, CommandSeparator, type CommandSeparatorProps, type CommandSeparatorRef, CommandShortcut, type CommandShortcutProps, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Input, Label, type LabelProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, PageLoader, type PageLoaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, RadioItemContainer, RadioItemLabel, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, Select, type SelectOption, type SelectProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Stack, type StackProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, TextField, type TextFieldProps, Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, buttonVariants, typographyVariants };
|
package/dist/atoms.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { a as ButtonProps } from './tooltip-B4jzaurK.js';
|
|
2
|
-
export { B as Button, T as Tooltip, d as TooltipContent, e as TooltipProvider, c as TooltipTrigger, b as buttonVariants } from './tooltip-B4jzaurK.js';
|
|
3
1
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
2
|
import * as React$1 from 'react';
|
|
5
3
|
import { ComponentProps, ComponentPropsWithoutRef, ElementRef } from 'react';
|
|
@@ -7,10 +5,11 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
7
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
6
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
9
7
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
10
|
-
export { C as Checkbox, I as Input, L as Label, a as LabelProps, R as RadioGroup, b as RadioGroupItem, d as RadioItemContainer, c as RadioItemLabel, S as Switch } from './checkbox-DxgDKaHx.js';
|
|
11
8
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
12
9
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
13
|
-
|
|
10
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
11
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
12
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
14
13
|
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
15
14
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
16
15
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
@@ -18,9 +17,83 @@ import { Command as Command$1 } from 'cmdk';
|
|
|
18
17
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
19
18
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
20
19
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Props interface for the Button component.
|
|
23
|
+
* Extends the native button HTML attributes and adds support for variants and asChild prop.
|
|
24
|
+
* Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
|
|
25
|
+
*
|
|
26
|
+
* @interface ButtonProps
|
|
27
|
+
* @extends {React.ButtonHTMLAttributes<HTMLButtonElement>}
|
|
28
|
+
* @extends {VariantProps<typeof buttonVariants>}
|
|
29
|
+
*
|
|
30
|
+
* @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
|
|
31
|
+
* @property {ButtonVariant} [variant] - The visual style variant of the button.
|
|
32
|
+
* @property {ButtonSize} [size] - The size variant of the button.
|
|
33
|
+
* @property {string} [className] - Additional CSS classes to apply to the button.
|
|
34
|
+
* @property {React.ReactNode} [startIcon] - Icon to display before the button text.
|
|
35
|
+
* @property {React.ReactNode} [endIcon] - Icon to display after the button text.
|
|
36
|
+
* @property {boolean} [loading] - Whether the button is in a loading state.
|
|
37
|
+
* @property {string} [type] - The type of button (button, submit, reset). Defaults to "button".
|
|
38
|
+
* @property {string} [aria-label] - Accessible label for the button. Falls back to button text if not provided.
|
|
39
|
+
*/
|
|
40
|
+
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
41
|
+
asChild?: boolean;
|
|
42
|
+
startIcon?: React$1.ReactNode;
|
|
43
|
+
endIcon?: React$1.ReactNode;
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
type?: "button" | "submit" | "reset";
|
|
46
|
+
"aria-label"?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Button variant styles using class-variance-authority.
|
|
51
|
+
* Defines the visual styles for different button variants and sizes.
|
|
52
|
+
* Follows WCAG 2.1 Level AA guidelines for accessibility.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```tsx
|
|
56
|
+
* <Button variant="primary" size="lg">Click me</Button>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
declare const buttonVariants: (props?: ({
|
|
60
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
61
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
62
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
63
|
+
/**
|
|
64
|
+
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
65
|
+
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
66
|
+
* Implements proper accessibility features and follows WCAG 2.1 Level AA guidelines.
|
|
67
|
+
*
|
|
68
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-button--docs
|
|
69
|
+
*
|
|
70
|
+
* @component
|
|
71
|
+
* @example
|
|
72
|
+
* ```tsx
|
|
73
|
+
* // Default button
|
|
74
|
+
* <Button>Click me</Button>
|
|
75
|
+
*
|
|
76
|
+
* // Destructive button with small size
|
|
77
|
+
* <Button variant="destructive" size="sm">Delete</Button>
|
|
78
|
+
*
|
|
79
|
+
* // As a link
|
|
80
|
+
* <Button variant="link" asChild>
|
|
81
|
+
* <a href="/about">About</a>
|
|
82
|
+
* </Button>
|
|
83
|
+
*
|
|
84
|
+
* // With icons
|
|
85
|
+
* <Button startIcon={<Icon />}>With Start Icon</Button>
|
|
86
|
+
* <Button endIcon={<Icon />}>With End Icon</Button>
|
|
87
|
+
*
|
|
88
|
+
* // Loading state
|
|
89
|
+
* <Button loading>Loading</Button>
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @param {ButtonProps} props - The component props
|
|
93
|
+
* @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref
|
|
94
|
+
* @returns {JSX.Element} A button element
|
|
95
|
+
*/
|
|
96
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
24
97
|
|
|
25
98
|
/**
|
|
26
99
|
* Props interface for the TextField component.
|
|
@@ -307,6 +380,15 @@ declare const DialogFooter: {
|
|
|
307
380
|
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
308
381
|
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
309
382
|
|
|
383
|
+
/**
|
|
384
|
+
* Input component for creating accessible input fields.
|
|
385
|
+
* Built on top of shadcn/ui's Input component.
|
|
386
|
+
*
|
|
387
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-input--docs
|
|
388
|
+
*
|
|
389
|
+
*/
|
|
390
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
391
|
+
|
|
310
392
|
/**
|
|
311
393
|
* Separator component for creating horizontal or vertical dividers.
|
|
312
394
|
* Built on top of Radix UI's Separator primitive.
|
|
@@ -394,6 +476,27 @@ type AvatarProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>;
|
|
|
394
476
|
type AvatarImageProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>;
|
|
395
477
|
type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>;
|
|
396
478
|
|
|
479
|
+
/**
|
|
480
|
+
* TooltipProvider component for creating accessible tooltips.
|
|
481
|
+
* Built on top of Radix UI's Tooltip primitive.
|
|
482
|
+
*
|
|
483
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-tooltip--docs
|
|
484
|
+
*
|
|
485
|
+
* @example
|
|
486
|
+
* ```tsx
|
|
487
|
+
* <TooltipProvider>
|
|
488
|
+
* <Tooltip>
|
|
489
|
+
* <TooltipTrigger>Hover me</TooltipTrigger>
|
|
490
|
+
* <TooltipContent>Tooltip content</TooltipContent>
|
|
491
|
+
* </Tooltip>
|
|
492
|
+
* </TooltipProvider>
|
|
493
|
+
* ```
|
|
494
|
+
*/
|
|
495
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
496
|
+
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
497
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
498
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
499
|
+
|
|
397
500
|
declare const badgeVariants: (props?: ({
|
|
398
501
|
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info" | null | undefined;
|
|
399
502
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
@@ -448,7 +551,7 @@ declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & Re
|
|
|
448
551
|
type TypographyVariant = NonNullable<VariantProps<typeof typographyVariants>["variant"]>;
|
|
449
552
|
type TypographyAlign = NonNullable<VariantProps<typeof typographyVariants>["align"]>;
|
|
450
553
|
|
|
451
|
-
interface PageLoaderProps
|
|
554
|
+
interface PageLoaderProps {
|
|
452
555
|
/**
|
|
453
556
|
* Optional className to extend the component's styles
|
|
454
557
|
*/
|
|
@@ -472,26 +575,31 @@ interface PageLoaderProps$1 {
|
|
|
472
575
|
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-page-loader--docs
|
|
473
576
|
*
|
|
474
577
|
*/
|
|
475
|
-
declare function PageLoader({ className, size, text, color }: PageLoaderProps
|
|
578
|
+
declare function PageLoader({ className, size, text, color }: PageLoaderProps): react_jsx_runtime.JSX.Element;
|
|
476
579
|
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
* Optional className to extend the component's styles
|
|
480
|
-
*/
|
|
481
|
-
className?: string;
|
|
482
|
-
/**
|
|
483
|
-
* Optional size of the loader (default: "default")
|
|
484
|
-
*/
|
|
485
|
-
size?: "sm" | "default" | "lg";
|
|
486
|
-
/**
|
|
487
|
-
* Optional text to display below the loader
|
|
488
|
-
*/
|
|
489
|
-
text?: string;
|
|
490
|
-
/**
|
|
491
|
-
* Optional color of the loader (default: "primary")
|
|
492
|
-
*/
|
|
493
|
-
color?: "primary" | "secondary" | "accent" | "muted" | "destructive" | string;
|
|
580
|
+
declare const labelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
581
|
+
interface LabelProps extends React$1.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
494
582
|
}
|
|
583
|
+
/**
|
|
584
|
+
* Label component for creating accessible labels.
|
|
585
|
+
* Built on top of Radix UI's Label primitive.
|
|
586
|
+
*
|
|
587
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-label--docs
|
|
588
|
+
*
|
|
589
|
+
*/
|
|
590
|
+
declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
591
|
+
|
|
592
|
+
declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
|
|
593
|
+
declare const ToastViewport: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React$1.RefAttributes<HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
594
|
+
declare const Toast: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
595
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
596
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
|
|
597
|
+
declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
598
|
+
declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
599
|
+
declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
600
|
+
declare const ToastDescription: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
601
|
+
type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast>;
|
|
602
|
+
type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
|
|
495
603
|
|
|
496
604
|
/**
|
|
497
605
|
* Toaster component for managing and displaying toast notifications.
|
|
@@ -727,6 +835,21 @@ type MultiSelectProps = {
|
|
|
727
835
|
*/
|
|
728
836
|
declare function MultiSelect({ options, value, onChange, placeholder, disabled, required, error, className, fullWidth, searchable, id, maxSelections, showSelectAll, renderCommandList }: MultiSelectProps): react_jsx_runtime.JSX.Element;
|
|
729
837
|
|
|
838
|
+
/**
|
|
839
|
+
* Switch component that provides a toggle input control.
|
|
840
|
+
* Built on top of Radix UI's Switch primitive.
|
|
841
|
+
*
|
|
842
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-switch--docs
|
|
843
|
+
*
|
|
844
|
+
* @example
|
|
845
|
+
* ```tsx
|
|
846
|
+
* <Switch />
|
|
847
|
+
* <Switch defaultChecked />
|
|
848
|
+
* <Switch disabled />
|
|
849
|
+
* ```
|
|
850
|
+
*/
|
|
851
|
+
declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
852
|
+
|
|
730
853
|
type SwitchProps = React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>;
|
|
731
854
|
|
|
732
855
|
/**
|
|
@@ -922,6 +1045,54 @@ type PaginationLinkProps = {
|
|
|
922
1045
|
isActive?: boolean;
|
|
923
1046
|
} & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
|
|
924
1047
|
|
|
1048
|
+
/**
|
|
1049
|
+
* RadioGroup component that allows users to select a single option from a list.
|
|
1050
|
+
* Built on top of Radix UI's RadioGroup primitive.
|
|
1051
|
+
*
|
|
1052
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-radio-group--docs
|
|
1053
|
+
*
|
|
1054
|
+
* @example
|
|
1055
|
+
* ```tsx
|
|
1056
|
+
* <RadioGroup defaultValue="option-1">
|
|
1057
|
+
* <RadioGroupItem value="option-1">Option 1</RadioGroupItem>
|
|
1058
|
+
* <RadioGroupItem value="option-2">Option 2</RadioGroupItem>
|
|
1059
|
+
* </RadioGroup>
|
|
1060
|
+
* ```
|
|
1061
|
+
*/
|
|
1062
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1063
|
+
/**
|
|
1064
|
+
* RadioGroupItem component that represents a single option in a RadioGroup.
|
|
1065
|
+
* Built on top of Radix UI's RadioGroupItem primitive.
|
|
1066
|
+
*
|
|
1067
|
+
* @example
|
|
1068
|
+
* ```tsx
|
|
1069
|
+
* <RadioGroupItem value="option-1">Option 1</RadioGroupItem>
|
|
1070
|
+
* ```
|
|
1071
|
+
*/
|
|
1072
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1073
|
+
/**
|
|
1074
|
+
* RadioItemContainer component that provides a container for radio group items with proper spacing and layout.
|
|
1075
|
+
*
|
|
1076
|
+
* @example
|
|
1077
|
+
* ```tsx
|
|
1078
|
+
* <RadioItemContainer>
|
|
1079
|
+
* <RadioGroupItem value="option-1">Option 1</RadioGroupItem>
|
|
1080
|
+
* <RadioGroupItem value="option-2">Option 2</RadioGroupItem>
|
|
1081
|
+
* </RadioItemContainer>
|
|
1082
|
+
* ```
|
|
1083
|
+
*/
|
|
1084
|
+
declare const RadioItemContainer: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1085
|
+
/**
|
|
1086
|
+
* RadioItemLabel component that provides a label for individual radio items.
|
|
1087
|
+
* Built on top of the Label component.
|
|
1088
|
+
*
|
|
1089
|
+
* @example
|
|
1090
|
+
* ```tsx
|
|
1091
|
+
* <RadioItemLabel>Select an option</RadioItemLabel>
|
|
1092
|
+
* ```
|
|
1093
|
+
*/
|
|
1094
|
+
declare const RadioItemLabel: React$1.ForwardRefExoticComponent<Omit<LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
1095
|
+
|
|
925
1096
|
type RadioGroupProps = React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
|
|
926
1097
|
type RadioGroupItemProps = React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
|
|
927
1098
|
|
|
@@ -1015,6 +1186,21 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<AccordionItemProp
|
|
|
1015
1186
|
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1016
1187
|
declare const AccordionContent: React$1.ForwardRefExoticComponent<AccordionContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1017
1188
|
|
|
1189
|
+
/**
|
|
1190
|
+
* Checkbox component built on top of Radix UI's Checkbox primitive.
|
|
1191
|
+
* Provides a customizable checkbox input with proper accessibility and keyboard navigation.
|
|
1192
|
+
*
|
|
1193
|
+
* @url https://sergii-melnykov.github.io/ui/?path=/docs/atoms-checkbox--docs
|
|
1194
|
+
*
|
|
1195
|
+
* @example
|
|
1196
|
+
* ```tsx
|
|
1197
|
+
* <Checkbox id="terms" name="terms" />
|
|
1198
|
+
* <label htmlFor="terms">Accept terms and conditions</label>
|
|
1199
|
+
* ```
|
|
1200
|
+
*/
|
|
1201
|
+
|
|
1202
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1203
|
+
|
|
1018
1204
|
type CheckboxProps = React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
|
|
1019
1205
|
|
|
1020
1206
|
interface BreadcrumbProps extends React$1.ComponentPropsWithoutRef<"nav"> {
|
|
@@ -1048,4 +1234,4 @@ declare const BreadcrumbEllipsis: {
|
|
|
1048
1234
|
displayName: string;
|
|
1049
1235
|
};
|
|
1050
1236
|
|
|
1051
|
-
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, ButtonProps, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, type CommandEmptyRef, CommandGroup, type CommandGroupProps, type CommandGroupRef, CommandInput, type CommandInputProps, type CommandInputRef, CommandItem, type CommandItemProps, type CommandItemRef, CommandList, type CommandListProps, type CommandListRef, type CommandProps, type CommandRef, CommandSeparator, type CommandSeparatorProps, type CommandSeparatorRef, CommandShortcut, type CommandShortcutProps, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, MultiSelect, type MultiSelectOption, type MultiSelectProps, PageLoader, type PageLoaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, type RadioGroupItemProps, type RadioGroupProps, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, Select, type SelectOption, type SelectProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Stack, type StackProps, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, TextField, type TextFieldProps, Toaster, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, typographyVariants };
|
|
1237
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, type ButtonProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, type CommandEmptyRef, CommandGroup, type CommandGroupProps, type CommandGroupRef, CommandInput, type CommandInputProps, type CommandInputRef, CommandItem, type CommandItemProps, type CommandItemRef, CommandList, type CommandListProps, type CommandListRef, type CommandProps, type CommandRef, CommandSeparator, type CommandSeparatorProps, type CommandSeparatorRef, CommandShortcut, type CommandShortcutProps, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Input, Label, type LabelProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, PageLoader, type PageLoaderProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, RadioItemContainer, RadioItemLabel, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, Select, type SelectOption, type SelectProps, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, Stack, type StackProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, TextField, type TextFieldProps, Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Typography, type TypographyAlign, type TypographyProps, type TypographyVariant, badgeVariants, buttonVariants, typographyVariants };
|