@a2v2ai/uikit 0.0.38 → 0.0.39
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/Alert/Alert.d.ts +13 -0
- package/Alert/Alert.js +25 -0
- package/AlertDialog/AlertDialog.d.ts +43 -0
- package/AlertDialog/AlertDialog.js +71 -0
- package/Avatar/Avatar.d.ts +14 -0
- package/Avatar/Avatar.js +25 -0
- package/Badge/Badge.d.ts +11 -0
- package/Badge/Badge.js +23 -0
- package/Breadcrumb/Breadcrumb.d.ts +19 -0
- package/Breadcrumb/Breadcrumb.js +23 -0
- package/Button/Button.d.ts +23 -0
- package/Button/Button.js +52 -0
- package/Calendar/Calendar.d.ts +20 -0
- package/Calendar/Calendar.js +78 -0
- package/Card/Card.d.ts +16 -0
- package/Card/Card.js +28 -0
- package/Carousel/Carousel.d.ts +37 -0
- package/Carousel/Carousel.js +132 -0
- package/ChatBubble/ChatBubble.d.ts +33 -0
- package/ChatBubble/ChatBubble.js +107 -0
- package/Checkbox/Checkbox.d.ts +12 -0
- package/Checkbox/Checkbox.js +20 -0
- package/DataTable/DataTable.d.ts +35 -0
- package/DataTable/DataTable.js +51 -0
- package/Drawer/Drawer.d.ts +33 -0
- package/Drawer/Drawer.js +55 -0
- package/DropdownMenu/DropdownMenu.d.ts +27 -0
- package/DropdownMenu/DropdownMenu.js +35 -0
- package/ErrorMessage/ErrorMessage.d.ts +27 -0
- package/ErrorMessage/ErrorMessage.js +14 -0
- package/Flex/Flex.d.ts +31 -0
- package/Flex/Flex.js +64 -0
- package/IconButton/IconButton.d.ts +23 -0
- package/IconButton/IconButton.js +48 -0
- package/Input/Input.d.ts +27 -0
- package/Input/Input.js +42 -0
- package/InputOTP/InputOTP.d.ts +20 -0
- package/InputOTP/InputOTP.js +44 -0
- package/Label/Label.d.ts +13 -0
- package/Label/Label.js +19 -0
- package/Loader/Loader.d.ts +21 -0
- package/Loader/Loader.js +30 -0
- package/Menubar/Menubar.d.ts +26 -0
- package/Menubar/Menubar.js +54 -0
- package/Menubar/index.d.ts +1 -0
- package/Menubar/index.js +1 -0
- package/Pagination/Pagination.d.ts +35 -0
- package/Pagination/Pagination.js +37 -0
- package/Popover/Popover.d.ts +7 -0
- package/Popover/Popover.js +10 -0
- package/Progress/Progress.d.ts +17 -0
- package/Progress/Progress.js +33 -0
- package/RadioGroup/RadioGroup.d.ts +13 -0
- package/RadioGroup/RadioGroup.js +26 -0
- package/ScrollArea/ScrollArea.d.ts +5 -0
- package/ScrollArea/ScrollArea.js +11 -0
- package/Select/Select.d.ts +29 -0
- package/Select/Select.js +50 -0
- package/Separator/Separator.d.ts +4 -0
- package/Separator/Separator.js +7 -0
- package/Sidebar/Sidebar.d.ts +48 -0
- package/Sidebar/Sidebar.js +116 -0
- package/Sidebar/index.d.ts +2 -0
- package/Sidebar/index.js +1 -0
- package/Skeleton/Skeleton.d.ts +4 -0
- package/Skeleton/Skeleton.js +7 -0
- package/Slider/Slider.d.ts +6 -0
- package/Slider/Slider.js +7 -0
- package/Spinner/Spinner.d.ts +19 -0
- package/Spinner/Spinner.js +31 -0
- package/Switch/Switch.d.ts +12 -0
- package/Switch/Switch.js +30 -0
- package/Table/Table.d.ts +10 -0
- package/Table/Table.js +20 -0
- package/Tabs/Tabs.d.ts +15 -0
- package/Tabs/Tabs.js +24 -0
- package/Textarea/Textarea.d.ts +19 -0
- package/Textarea/Textarea.js +31 -0
- package/Toast/Toast.d.ts +12 -0
- package/Toast/Toast.js +25 -0
- package/Tooltip/Tooltip.d.ts +17 -0
- package/Tooltip/Tooltip.js +29 -0
- package/Typography/Typography.d.ts +20 -0
- package/Typography/Typography.js +71 -0
- package/helpers.d.ts +4 -0
- package/helpers.js +5 -0
- package/icons.d.ts +1 -0
- package/{icons.ts → icons.js} +1 -1
- package/index.css +68 -0
- package/index.d.ts +42 -0
- package/index.js +45 -0
- package/lib/typography-types.d.ts +4 -0
- package/lib/typography-types.js +118 -0
- package/lib/utils.d.ts +3 -0
- package/lib/utils.js +14 -0
- package/package.json +1 -1
- package/Alert/Alert.stories.tsx +0 -121
- package/Alert/Alert.tsx +0 -71
- package/AlertDialog/AlertDialog.stories.tsx +0 -665
- package/AlertDialog/AlertDialog.tsx +0 -241
- package/Avatar/Avatar.stories.tsx +0 -128
- package/Avatar/Avatar.tsx +0 -71
- package/Badge/Badge.stories.tsx +0 -76
- package/Badge/Badge.tsx +0 -39
- package/Breadcrumb/Breadcrumb.stories.tsx +0 -231
- package/Breadcrumb/Breadcrumb.tsx +0 -114
- package/Button/Button.stories.tsx +0 -684
- package/Button/Button.tsx +0 -107
- package/Calendar/Calendar.stories.tsx +0 -291
- package/Calendar/Calendar.tsx +0 -246
- package/Card/Card.stories.tsx +0 -136
- package/Card/Card.tsx +0 -96
- package/Carousel/Carousel.stories.tsx +0 -256
- package/Carousel/Carousel.tsx +0 -301
- package/ChatBubble/ChatBubble.stories.tsx +0 -339
- package/ChatBubble/ChatBubble.tsx +0 -179
- package/Checkbox/Checkbox.stories.tsx +0 -137
- package/Checkbox/Checkbox.tsx +0 -53
- package/DataTable/DataTable.stories.tsx +0 -400
- package/DataTable/DataTable.tsx +0 -207
- package/Drawer/Drawer.stories.tsx +0 -721
- package/Drawer/Drawer.tsx +0 -201
- package/DropdownMenu/DropdownMenu.stories.tsx +0 -251
- package/DropdownMenu/DropdownMenu.tsx +0 -199
- package/ErrorMessage/ErrorMessage.stories.tsx +0 -159
- package/ErrorMessage/ErrorMessage.tsx +0 -55
- package/Flex/Flex.stories.tsx +0 -390
- package/Flex/Flex.tsx +0 -102
- package/IconButton/IconButton.stories.tsx +0 -566
- package/IconButton/IconButton.tsx +0 -95
- package/Input/Input.stories.tsx +0 -566
- package/Input/Input.tsx +0 -168
- package/InputOTP/InputOTP.stories.tsx +0 -246
- package/InputOTP/InputOTP.tsx +0 -127
- package/Label/Label.stories.tsx +0 -110
- package/Label/Label.tsx +0 -44
- package/Loader/Loader.stories.tsx +0 -170
- package/Loader/Loader.tsx +0 -62
- package/Menubar/Menubar.stories.tsx +0 -382
- package/Menubar/Menubar.tsx +0 -274
- package/Menubar/index.ts +0 -18
- package/Pagination/Pagination.stories.tsx +0 -196
- package/Pagination/Pagination.tsx +0 -122
- package/Popover/Popover.stories.tsx +0 -133
- package/Popover/Popover.tsx +0 -31
- package/Progress/Progress.stories.tsx +0 -146
- package/Progress/Progress.tsx +0 -67
- package/RadioGroup/RadioGroup.stories.tsx +0 -159
- package/RadioGroup/RadioGroup.tsx +0 -68
- package/ScrollArea/ScrollArea.stories.tsx +0 -136
- package/ScrollArea/ScrollArea.tsx +0 -46
- package/Select/Select.stories.tsx +0 -378
- package/Select/Select.tsx +0 -230
- package/Separator/Separator.stories.tsx +0 -110
- package/Separator/Separator.tsx +0 -29
- package/Sidebar/Sidebar.stories.tsx +0 -340
- package/Sidebar/Sidebar.tsx +0 -414
- package/Sidebar/index.ts +0 -28
- package/Skeleton/Skeleton.stories.tsx +0 -117
- package/Skeleton/Skeleton.tsx +0 -16
- package/Slider/Slider.stories.tsx +0 -216
- package/Slider/Slider.tsx +0 -29
- package/Spinner/Spinner.stories.tsx +0 -210
- package/Spinner/Spinner.tsx +0 -78
- package/Switch/Switch.stories.tsx +0 -146
- package/Switch/Switch.tsx +0 -59
- package/Table/Table.stories.tsx +0 -510
- package/Table/Table.tsx +0 -114
- package/Tabs/Tabs.stories.tsx +0 -197
- package/Tabs/Tabs.tsx +0 -74
- package/Textarea/Textarea.stories.tsx +0 -187
- package/Textarea/Textarea.tsx +0 -73
- package/Toast/Toast.stories.tsx +0 -285
- package/Toast/Toast.tsx +0 -59
- package/Tooltip/Tooltip.stories.tsx +0 -463
- package/Tooltip/Tooltip.tsx +0 -96
- package/Typography/Typography.stories.tsx +0 -425
- package/Typography/Typography.tsx +0 -106
- package/helpers.ts +0 -5
- package/index.ts +0 -217
- package/lib/typography-types.ts +0 -223
- package/lib/utils.ts +0 -15
- package/tsconfig.json +0 -22
package/Flex/Flex.tsx
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import { cva } from "class-variance-authority"
|
|
3
|
-
import { cn } from "../lib/utils"
|
|
4
|
-
|
|
5
|
-
type FlexDirection = "row" | "column" | "row-reverse" | "column-reverse"
|
|
6
|
-
type FlexAlign = "start" | "center" | "end" | "stretch" | "baseline"
|
|
7
|
-
type FlexJustify = "start" | "center" | "end" | "between" | "around" | "evenly"
|
|
8
|
-
type FlexWrap = "nowrap" | "wrap" | "wrap-reverse"
|
|
9
|
-
type FlexGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24 | 32 | 40 | 48
|
|
10
|
-
|
|
11
|
-
const flexVariants = cva("flex", {
|
|
12
|
-
variants: {
|
|
13
|
-
direction: {
|
|
14
|
-
row: "flex-row",
|
|
15
|
-
column: "flex-col",
|
|
16
|
-
"row-reverse": "flex-row-reverse",
|
|
17
|
-
"column-reverse": "flex-col-reverse",
|
|
18
|
-
},
|
|
19
|
-
align: {
|
|
20
|
-
start: "items-start",
|
|
21
|
-
center: "items-center",
|
|
22
|
-
end: "items-end",
|
|
23
|
-
stretch: "items-stretch",
|
|
24
|
-
baseline: "items-baseline",
|
|
25
|
-
},
|
|
26
|
-
justify: {
|
|
27
|
-
start: "justify-start",
|
|
28
|
-
center: "justify-center",
|
|
29
|
-
end: "justify-end",
|
|
30
|
-
between: "justify-between",
|
|
31
|
-
around: "justify-around",
|
|
32
|
-
evenly: "justify-evenly",
|
|
33
|
-
},
|
|
34
|
-
wrap: {
|
|
35
|
-
nowrap: "flex-nowrap",
|
|
36
|
-
wrap: "flex-wrap",
|
|
37
|
-
"wrap-reverse": "flex-wrap-reverse",
|
|
38
|
-
},
|
|
39
|
-
gap: {
|
|
40
|
-
0: "gap-0",
|
|
41
|
-
1: "gap-1",
|
|
42
|
-
2: "gap-2",
|
|
43
|
-
3: "gap-3",
|
|
44
|
-
4: "gap-4",
|
|
45
|
-
5: "gap-5",
|
|
46
|
-
6: "gap-6",
|
|
47
|
-
8: "gap-8",
|
|
48
|
-
10: "gap-10",
|
|
49
|
-
12: "gap-12",
|
|
50
|
-
16: "gap-16",
|
|
51
|
-
20: "gap-20",
|
|
52
|
-
24: "gap-24",
|
|
53
|
-
32: "gap-32",
|
|
54
|
-
40: "gap-40",
|
|
55
|
-
48: "gap-48",
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
defaultVariants: {
|
|
59
|
-
direction: "column",
|
|
60
|
-
align: "start",
|
|
61
|
-
justify: "start",
|
|
62
|
-
wrap: "nowrap",
|
|
63
|
-
gap: 0,
|
|
64
|
-
},
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
type FlexProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
68
|
-
direction?: FlexDirection
|
|
69
|
-
align?: FlexAlign
|
|
70
|
-
justify?: FlexJustify
|
|
71
|
-
wrap?: FlexWrap
|
|
72
|
-
gap?: FlexGap
|
|
73
|
-
as?: React.ElementType
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
const Flex = React.forwardRef<HTMLDivElement, FlexProps>(
|
|
77
|
-
(
|
|
78
|
-
{
|
|
79
|
-
className,
|
|
80
|
-
direction,
|
|
81
|
-
align,
|
|
82
|
-
justify,
|
|
83
|
-
wrap,
|
|
84
|
-
gap,
|
|
85
|
-
as: Component = "div",
|
|
86
|
-
...props
|
|
87
|
-
},
|
|
88
|
-
ref
|
|
89
|
-
) => {
|
|
90
|
-
return (
|
|
91
|
-
<Component
|
|
92
|
-
ref={ref}
|
|
93
|
-
className={cn(flexVariants({ direction, align, justify, wrap, gap, className }))}
|
|
94
|
-
{...props}
|
|
95
|
-
/>
|
|
96
|
-
)
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
Flex.displayName = "Flex"
|
|
100
|
-
|
|
101
|
-
export { Flex, flexVariants }
|
|
102
|
-
export type { FlexProps, FlexDirection, FlexAlign, FlexJustify, FlexWrap, FlexGap }
|