pixelize-design-library 2.2.192 → 3.0.1-beta.1
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/.claude/settings.local.json +9 -0
- package/MIGRATION.md +562 -0
- package/coverage/clover.xml +638 -0
- package/coverage/coverage-final.json +20 -0
- package/coverage/lcov-report/Table/CompactSelect.tsx.html +379 -0
- package/coverage/lcov-report/Table/Components/ActiveFilters.tsx.html +514 -0
- package/coverage/lcov-report/Table/Components/HeaderActions.tsx.html +373 -0
- package/coverage/lcov-report/Table/Components/Pagination.tsx.html +574 -0
- package/coverage/lcov-report/Table/Components/TableActions.tsx.html +574 -0
- package/coverage/lcov-report/Table/Components/TableBody.tsx.html +1027 -0
- package/coverage/lcov-report/Table/Components/TableFilters.tsx.html +397 -0
- package/coverage/lcov-report/Table/Components/TableHeader.tsx.html +1060 -0
- package/coverage/lcov-report/Table/Components/TableLoading.tsx.html +361 -0
- package/coverage/lcov-report/Table/Components/TableSearch.tsx.html +337 -0
- package/coverage/lcov-report/Table/Components/index.html +266 -0
- package/coverage/lcov-report/Table/Components/useDebounce.ts.html +178 -0
- package/coverage/lcov-report/Table/Components/useTable.ts.html +778 -0
- package/coverage/lcov-report/Table/LeftFilterPane.tsx.html +1810 -0
- package/coverage/lcov-report/Table/SelectOperationControls.tsx.html +178 -0
- package/coverage/lcov-report/Table/Table.tsx.html +1567 -0
- package/coverage/lcov-report/Table/TableProps.tsx.html +658 -0
- package/coverage/lcov-report/Table/TableSettings/ManageColumns.tsx.html +619 -0
- package/coverage/lcov-report/Table/TableSettings/TableFilters.tsx.html +229 -0
- package/coverage/lcov-report/Table/TableSettings/TableSettings.tsx.html +532 -0
- package/coverage/lcov-report/Table/TableSettings/index.html +146 -0
- package/coverage/lcov-report/Table/TableToDo.tsx.html +973 -0
- package/coverage/lcov-report/Table/TextOperationControls.tsx.html +271 -0
- package/coverage/lcov-report/Table/filterTypes.ts.html +97 -0
- package/coverage/lcov-report/Table/index.html +176 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +146 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +210 -0
- package/coverage/lcov.info +1836 -0
- package/dist/Assets/defaultLogo.tsx +31 -0
- package/dist/Components/Table/Components/ActiveFilters.js +3 -3
- package/dist/Theme/Dark/palette.d.ts +370 -0
- package/dist/Theme/Dark/palette.js +372 -0
- package/dist/components-v2/AlertDialog/AlertDialog.d.ts +23 -0
- package/dist/components-v2/AlertDialog/AlertDialog.js +98 -0
- package/dist/components-v2/Breadcrumbs/Breadcrumbs.d.ts +14 -0
- package/dist/components-v2/Breadcrumbs/Breadcrumbs.js +66 -0
- package/dist/components-v2/Charts/AreaChart.d.ts +23 -0
- package/dist/components-v2/Charts/AreaChart.js +63 -0
- package/dist/components-v2/Charts/BarChart.d.ts +25 -0
- package/dist/components-v2/Charts/BarChart.js +57 -0
- package/dist/components-v2/Charts/LineChart.d.ts +23 -0
- package/dist/components-v2/Charts/LineChart.js +55 -0
- package/dist/components-v2/Charts/PieChart.d.ts +15 -0
- package/dist/components-v2/Charts/PieChart.js +54 -0
- package/dist/components-v2/Charts/PolarChart.d.ts +14 -0
- package/dist/components-v2/Charts/PolarChart.js +54 -0
- package/dist/components-v2/Charts/chartOptions.d.ts +7 -0
- package/dist/components-v2/Charts/chartOptions.js +41 -0
- package/dist/components-v2/Charts/useChartTheme.d.ts +22 -0
- package/dist/components-v2/Charts/useChartTheme.js +106 -0
- package/dist/components-v2/ContactForm/ContactForm.d.ts +25 -0
- package/dist/components-v2/ContactForm/ContactForm.js +116 -0
- package/dist/components-v2/DatePicker/Calendar.d.ts +19 -0
- package/dist/components-v2/DatePicker/Calendar.js +212 -0
- package/dist/components-v2/DatePicker/DatePicker.d.ts +46 -0
- package/dist/components-v2/DatePicker/DatePicker.js +189 -0
- package/dist/components-v2/DatePicker/TimePicker.d.ts +12 -0
- package/dist/components-v2/DatePicker/TimePicker.js +105 -0
- package/dist/components-v2/DatePicker/utils.d.ts +31 -0
- package/dist/components-v2/DatePicker/utils.js +109 -0
- package/dist/components-v2/Drawer/Drawer.d.ts +27 -0
- package/dist/components-v2/Drawer/Drawer.js +132 -0
- package/dist/components-v2/FeedbackForm/FeedbackForm.d.ts +26 -0
- package/dist/components-v2/FeedbackForm/FeedbackForm.js +112 -0
- package/dist/components-v2/FileUploader/FileUploader.d.ts +28 -0
- package/dist/components-v2/FileUploader/FileUploader.js +127 -0
- package/dist/components-v2/Input/TextInput.d.ts +41 -0
- package/dist/components-v2/Input/TextInput.js +169 -0
- package/dist/components-v2/KanbanBoard/KanbanBoard.d.ts +39 -0
- package/dist/components-v2/KanbanBoard/KanbanBoard.js +101 -0
- package/dist/components-v2/Layout/AppLayout.d.ts +22 -0
- package/dist/components-v2/Layout/AppLayout.js +53 -0
- package/dist/components-v2/Loading/Loading.d.ts +19 -0
- package/dist/components-v2/Loading/Loading.js +55 -0
- package/dist/components-v2/Modal/Modal.d.ts +30 -0
- package/dist/components-v2/Modal/Modal.js +82 -0
- package/dist/components-v2/NavigationBar/NavigationBar.d.ts +47 -0
- package/dist/components-v2/NavigationBar/NavigationBar.js +148 -0
- package/dist/components-v2/Notification/Notification.d.ts +22 -0
- package/dist/components-v2/Notification/Notification.js +113 -0
- package/dist/components-v2/NumberInput/NumberInput.d.ts +37 -0
- package/dist/components-v2/NumberInput/NumberInput.js +210 -0
- package/dist/components-v2/PinInput/PinInput.d.ts +26 -0
- package/dist/components-v2/PinInput/PinInput.js +138 -0
- package/dist/components-v2/ProfilePhotoViewer/ProfilePhotoViewer.d.ts +18 -0
- package/dist/components-v2/ProfilePhotoViewer/ProfilePhotoViewer.js +91 -0
- package/dist/components-v2/Select/Select.d.ts +41 -0
- package/dist/components-v2/Select/Select.js +284 -0
- package/dist/components-v2/Sidebar/Sidebar.d.ts +41 -0
- package/dist/components-v2/Sidebar/Sidebar.js +182 -0
- package/dist/components-v2/Slider/Slider.d.ts +18 -0
- package/dist/components-v2/Slider/Slider.js +101 -0
- package/dist/components-v2/Table/Table.d.ts +7 -0
- package/dist/components-v2/Table/Table.js +172 -0
- package/dist/components-v2/Table/TableProps.d.ts +139 -0
- package/dist/components-v2/Table/TableProps.js +9 -0
- package/dist/components-v2/Table/components/ActiveFilters.d.ts +10 -0
- package/dist/components-v2/Table/components/ActiveFilters.js +70 -0
- package/dist/components-v2/Table/components/BulkActionBar.d.ts +11 -0
- package/dist/components-v2/Table/components/BulkActionBar.js +92 -0
- package/dist/components-v2/Table/components/ColumnResizeHandle.d.ts +7 -0
- package/dist/components-v2/Table/components/ColumnResizeHandle.js +41 -0
- package/dist/components-v2/Table/components/Pagination.d.ts +11 -0
- package/dist/components-v2/Table/components/Pagination.js +92 -0
- package/dist/components-v2/Table/components/TableBody.d.ts +23 -0
- package/dist/components-v2/Table/components/TableBody.js +69 -0
- package/dist/components-v2/Table/components/TableCell.d.ts +14 -0
- package/dist/components-v2/Table/components/TableCell.js +63 -0
- package/dist/components-v2/Table/components/TableEmptyState.d.ts +12 -0
- package/dist/components-v2/Table/components/TableEmptyState.js +55 -0
- package/dist/components-v2/Table/components/TableErrorState.d.ts +6 -0
- package/dist/components-v2/Table/components/TableErrorState.js +52 -0
- package/dist/components-v2/Table/components/TableHeader.d.ts +21 -0
- package/dist/components-v2/Table/components/TableHeader.js +94 -0
- package/dist/components-v2/Table/components/TableRow.d.ts +20 -0
- package/dist/components-v2/Table/components/TableRow.js +64 -0
- package/dist/components-v2/Table/components/TableSearch.d.ts +8 -0
- package/dist/components-v2/Table/components/TableSearch.js +47 -0
- package/dist/components-v2/Table/filters/FilterChips.d.ts +6 -0
- package/dist/components-v2/Table/filters/FilterChips.js +9 -0
- package/dist/components-v2/Table/filters/LeftFilterPane.d.ts +17 -0
- package/dist/components-v2/Table/filters/LeftFilterPane.js +105 -0
- package/dist/components-v2/Table/filters/TableFilters.d.ts +12 -0
- package/dist/components-v2/Table/filters/TableFilters.js +127 -0
- package/dist/components-v2/Table/hooks/useColumnResize.d.ts +15 -0
- package/dist/components-v2/Table/hooks/useColumnResize.js +104 -0
- package/dist/components-v2/Table/hooks/useTable.d.ts +58 -0
- package/dist/components-v2/Table/hooks/useTable.js +254 -0
- package/dist/components-v2/Table/hooks/useTableKeyboard.d.ts +25 -0
- package/dist/components-v2/Table/hooks/useTableKeyboard.js +112 -0
- package/dist/components-v2/Table/hooks/useVirtualScroll.d.ts +29 -0
- package/dist/components-v2/Table/hooks/useVirtualScroll.js +83 -0
- package/dist/components-v2/Table/settings/ManageColumns.d.ts +12 -0
- package/dist/components-v2/Table/settings/ManageColumns.js +59 -0
- package/dist/components-v2/Table/settings/TableSettings.d.ts +12 -0
- package/dist/components-v2/Table/settings/TableSettings.js +57 -0
- package/dist/components-v2/Table/utils/filterUtils.d.ts +7 -0
- package/dist/components-v2/Table/utils/filterUtils.js +149 -0
- package/dist/components-v2/Table/utils/sortUtils.d.ts +6 -0
- package/dist/components-v2/Table/utils/sortUtils.js +65 -0
- package/dist/components-v2/Tag/Tag.d.ts +15 -0
- package/dist/components-v2/Tag/Tag.js +87 -0
- package/dist/components-v2/Timeline/Timeline.d.ts +18 -0
- package/dist/components-v2/Timeline/Timeline.js +76 -0
- package/dist/components-v2/Toaster/Toaster.d.ts +61 -0
- package/dist/components-v2/Toaster/Toaster.js +63 -0
- package/dist/components-v2/Toggle/Toggle.d.ts +28 -0
- package/dist/components-v2/Toggle/Toggle.js +90 -0
- package/dist/components-v2/ui/accordion.d.ts +12 -0
- package/dist/components-v2/ui/accordion.js +104 -0
- package/dist/components-v2/ui/alert.d.ts +18 -0
- package/dist/components-v2/ui/alert.js +99 -0
- package/dist/components-v2/ui/avatar.d.ts +12 -0
- package/dist/components-v2/ui/avatar.js +80 -0
- package/dist/components-v2/ui/badge.d.ts +10 -0
- package/dist/components-v2/ui/badge.js +76 -0
- package/dist/components-v2/ui/button.d.ts +18 -0
- package/dist/components-v2/ui/button.js +97 -0
- package/dist/components-v2/ui/checkbox.d.ts +15 -0
- package/dist/components-v2/ui/checkbox.js +86 -0
- package/dist/components-v2/ui/dialog.d.ts +30 -0
- package/dist/components-v2/ui/dialog.js +115 -0
- package/dist/components-v2/ui/dropdown-menu.d.ts +26 -0
- package/dist/components-v2/ui/dropdown-menu.js +121 -0
- package/dist/components-v2/ui/field.d.ts +32 -0
- package/dist/components-v2/ui/field.js +62 -0
- package/dist/components-v2/ui/form-field.d.ts +25 -0
- package/dist/components-v2/ui/form-field.js +96 -0
- package/dist/components-v2/ui/input.d.ts +9 -0
- package/dist/components-v2/ui/input.js +73 -0
- package/dist/components-v2/ui/label.d.ts +10 -0
- package/dist/components-v2/ui/label.js +70 -0
- package/dist/components-v2/ui/popover.d.ts +9 -0
- package/dist/components-v2/ui/popover.js +60 -0
- package/dist/components-v2/ui/progress.d.ts +12 -0
- package/dist/components-v2/ui/progress.js +75 -0
- package/dist/components-v2/ui/radio-group.d.ts +17 -0
- package/dist/components-v2/ui/radio-group.js +91 -0
- package/dist/components-v2/ui/select.d.ts +24 -0
- package/dist/components-v2/ui/select.js +122 -0
- package/dist/components-v2/ui/separator.d.ts +5 -0
- package/dist/components-v2/ui/separator.js +55 -0
- package/dist/components-v2/ui/skeleton.d.ts +9 -0
- package/dist/components-v2/ui/skeleton.js +68 -0
- package/dist/components-v2/ui/spinner.d.ts +16 -0
- package/dist/components-v2/ui/spinner.js +64 -0
- package/dist/components-v2/ui/switch.d.ts +10 -0
- package/dist/components-v2/ui/switch.js +81 -0
- package/dist/components-v2/ui/tabs.d.ts +13 -0
- package/dist/components-v2/ui/tabs.js +95 -0
- package/dist/components-v2/ui/textarea.d.ts +10 -0
- package/dist/components-v2/ui/textarea.js +96 -0
- package/dist/components-v2/ui/tooltip.d.ts +17 -0
- package/dist/components-v2/ui/tooltip.js +75 -0
- package/dist/index.d.ts +128 -64
- package/dist/index.js +246 -173
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +8 -0
- package/dist/theme-v2/ThemeProvider.d.ts +19 -0
- package/dist/theme-v2/ThemeProvider.js +149 -0
- package/dist/theme-v2/dark.css +47 -0
- package/dist/theme-v2/tokens.css +72 -0
- package/package.json +41 -20
- package/tailwind.config.ts +91 -0
- package/vite.config.ts +49 -10
- package/index.html +0 -13
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var darkPalette = {
|
|
4
|
+
primary: {
|
|
5
|
+
50: "#2d1f4a",
|
|
6
|
+
100: "#3d2a63",
|
|
7
|
+
200: "#4e357c",
|
|
8
|
+
300: "#6244a0",
|
|
9
|
+
400: "#7a56c5",
|
|
10
|
+
500: "#9A4FE5",
|
|
11
|
+
600: "#a967e8",
|
|
12
|
+
700: "#bb83ed",
|
|
13
|
+
800: "#cca3f2",
|
|
14
|
+
900: "#dfc3f7",
|
|
15
|
+
opacity: {
|
|
16
|
+
4: "#9A4FE50a",
|
|
17
|
+
8: "#9A4FE514",
|
|
18
|
+
16: "#9A4FE529",
|
|
19
|
+
24: "#9A4FE53d",
|
|
20
|
+
32: "#9A4FE552",
|
|
21
|
+
40: "#9A4FE566",
|
|
22
|
+
48: "#9A4FE57a",
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
secondary: {
|
|
26
|
+
50: "#1e2235",
|
|
27
|
+
100: "#252b42",
|
|
28
|
+
200: "#2d3554",
|
|
29
|
+
300: "#3a4269",
|
|
30
|
+
400: "#47507e",
|
|
31
|
+
500: "#5a6496",
|
|
32
|
+
600: "#6f79a8",
|
|
33
|
+
700: "#8e97be",
|
|
34
|
+
800: "#adb4d3",
|
|
35
|
+
900: "#ccd0e7",
|
|
36
|
+
opacity: {
|
|
37
|
+
4: "#5a64960a",
|
|
38
|
+
8: "#5a649614",
|
|
39
|
+
16: "#5a649629",
|
|
40
|
+
24: "#5a64963d",
|
|
41
|
+
32: "#5a649652",
|
|
42
|
+
40: "#5a649666",
|
|
43
|
+
48: "#5a64967a",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
tertiary: {
|
|
47
|
+
50: "#1a1d2e",
|
|
48
|
+
100: "#21253a",
|
|
49
|
+
200: "#292e48",
|
|
50
|
+
300: "#333857",
|
|
51
|
+
400: "#3d4366",
|
|
52
|
+
500: "#4a5175",
|
|
53
|
+
600: "#5f668b",
|
|
54
|
+
700: "#7d83a4",
|
|
55
|
+
800: "#9ca1bc",
|
|
56
|
+
900: "#bbbfd4",
|
|
57
|
+
opacity: {
|
|
58
|
+
4: "#4a51750a",
|
|
59
|
+
8: "#4a517514",
|
|
60
|
+
16: "#4a517529",
|
|
61
|
+
24: "#4a51753d",
|
|
62
|
+
32: "#4a517552",
|
|
63
|
+
40: "#4a517566",
|
|
64
|
+
48: "#4a51757a",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
transparent: "transparent",
|
|
68
|
+
black: "#000",
|
|
69
|
+
white: "#fff",
|
|
70
|
+
semantic: {
|
|
71
|
+
success: {
|
|
72
|
+
50: "#0d2e1f",
|
|
73
|
+
100: "#133d28",
|
|
74
|
+
200: "#1a5236",
|
|
75
|
+
300: "#216644",
|
|
76
|
+
400: "#297b53",
|
|
77
|
+
500: "#23b85c",
|
|
78
|
+
600: "#3dc770",
|
|
79
|
+
700: "#5fd388",
|
|
80
|
+
800: "#88e0a7",
|
|
81
|
+
900: "#b3edc6",
|
|
82
|
+
},
|
|
83
|
+
error: {
|
|
84
|
+
50: "#2e1210",
|
|
85
|
+
100: "#3d1917",
|
|
86
|
+
200: "#52201e",
|
|
87
|
+
300: "#662825",
|
|
88
|
+
400: "#7b302c",
|
|
89
|
+
500: "#f2463a",
|
|
90
|
+
600: "#f45f54",
|
|
91
|
+
700: "#f6796f",
|
|
92
|
+
800: "#f9998f",
|
|
93
|
+
900: "#fbbbb6",
|
|
94
|
+
},
|
|
95
|
+
warning: {
|
|
96
|
+
50: "#2e1f0d",
|
|
97
|
+
100: "#3d2a12",
|
|
98
|
+
200: "#523817",
|
|
99
|
+
300: "#66461d",
|
|
100
|
+
400: "#7b5523",
|
|
101
|
+
500: "#Ff9162",
|
|
102
|
+
600: "#ffa07a",
|
|
103
|
+
700: "#ffb395",
|
|
104
|
+
800: "#ffc7ae",
|
|
105
|
+
900: "#ffdacb",
|
|
106
|
+
},
|
|
107
|
+
info: {
|
|
108
|
+
50: "#0d2430",
|
|
109
|
+
100: "#123040",
|
|
110
|
+
200: "#184055",
|
|
111
|
+
300: "#1e5069",
|
|
112
|
+
400: "#24607e",
|
|
113
|
+
500: "#5FC4de",
|
|
114
|
+
600: "#76cde3",
|
|
115
|
+
700: "#90d8ea",
|
|
116
|
+
800: "#aee3f1",
|
|
117
|
+
900: "#caecf7",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
gray: {
|
|
121
|
+
50: "#f7fafc",
|
|
122
|
+
100: "#edf2f7",
|
|
123
|
+
200: "#e2e8f0",
|
|
124
|
+
300: "#cbd5e0",
|
|
125
|
+
400: "#a0aec0",
|
|
126
|
+
500: "#718096",
|
|
127
|
+
600: "#4a5568",
|
|
128
|
+
700: "#2d3748",
|
|
129
|
+
800: "#1a202c",
|
|
130
|
+
900: "#171923",
|
|
131
|
+
},
|
|
132
|
+
red: {
|
|
133
|
+
50: "#2e1210",
|
|
134
|
+
100: "#3d1917",
|
|
135
|
+
200: "#52201e",
|
|
136
|
+
300: "#662825",
|
|
137
|
+
400: "#7b302c",
|
|
138
|
+
500: "#f2463a",
|
|
139
|
+
600: "#f45f54",
|
|
140
|
+
700: "#f6796f",
|
|
141
|
+
800: "#f9998f",
|
|
142
|
+
900: "#fbbbb6",
|
|
143
|
+
},
|
|
144
|
+
orange: {
|
|
145
|
+
50: "#2e1f0d",
|
|
146
|
+
100: "#3d2a12",
|
|
147
|
+
200: "#523817",
|
|
148
|
+
300: "#66461d",
|
|
149
|
+
400: "#7b5523",
|
|
150
|
+
500: "#Ff9162",
|
|
151
|
+
600: "#ffa07a",
|
|
152
|
+
700: "#ffb395",
|
|
153
|
+
800: "#ffc7ae",
|
|
154
|
+
900: "#ffdacb",
|
|
155
|
+
},
|
|
156
|
+
yellow: {
|
|
157
|
+
50: "#2b2509",
|
|
158
|
+
100: "#3a310d",
|
|
159
|
+
200: "#4d4211",
|
|
160
|
+
300: "#615315",
|
|
161
|
+
400: "#756419",
|
|
162
|
+
500: "#f7d343",
|
|
163
|
+
600: "#f9db62",
|
|
164
|
+
700: "#fbe281",
|
|
165
|
+
800: "#fdeaa5",
|
|
166
|
+
900: "#fef2c8",
|
|
167
|
+
},
|
|
168
|
+
green: {
|
|
169
|
+
50: "#0d2e1f",
|
|
170
|
+
100: "#133d28",
|
|
171
|
+
200: "#1a5236",
|
|
172
|
+
300: "#216644",
|
|
173
|
+
400: "#297b53",
|
|
174
|
+
500: "#23b85c",
|
|
175
|
+
600: "#3dc770",
|
|
176
|
+
700: "#5fd388",
|
|
177
|
+
800: "#88e0a7",
|
|
178
|
+
900: "#b3edc6",
|
|
179
|
+
},
|
|
180
|
+
teal: {
|
|
181
|
+
50: "#0d2430",
|
|
182
|
+
100: "#123040",
|
|
183
|
+
200: "#184055",
|
|
184
|
+
300: "#1e5069",
|
|
185
|
+
400: "#24607e",
|
|
186
|
+
500: "#5FC4de",
|
|
187
|
+
600: "#76cde3",
|
|
188
|
+
700: "#90d8ea",
|
|
189
|
+
800: "#aee3f1",
|
|
190
|
+
900: "#caecf7",
|
|
191
|
+
},
|
|
192
|
+
blue: {
|
|
193
|
+
50: "#0d2033",
|
|
194
|
+
100: "#122b44",
|
|
195
|
+
200: "#173959",
|
|
196
|
+
300: "#1c476e",
|
|
197
|
+
400: "#215583",
|
|
198
|
+
500: "#3182ce",
|
|
199
|
+
600: "#4a95d9",
|
|
200
|
+
700: "#6aaae2",
|
|
201
|
+
800: "#8dbfeb",
|
|
202
|
+
900: "#b4d5f3",
|
|
203
|
+
},
|
|
204
|
+
cyan: {
|
|
205
|
+
50: "#0d2a2e",
|
|
206
|
+
100: "#12383d",
|
|
207
|
+
200: "#174b51",
|
|
208
|
+
300: "#1c5e65",
|
|
209
|
+
400: "#21717a",
|
|
210
|
+
500: "#00b5d8",
|
|
211
|
+
600: "#1fc4e5",
|
|
212
|
+
700: "#44cfec",
|
|
213
|
+
800: "#72dcf2",
|
|
214
|
+
900: "#a3e9f7",
|
|
215
|
+
},
|
|
216
|
+
purple: {
|
|
217
|
+
50: "#1e1533",
|
|
218
|
+
100: "#281d44",
|
|
219
|
+
200: "#34265a",
|
|
220
|
+
300: "#422f70",
|
|
221
|
+
400: "#513987",
|
|
222
|
+
500: "#805ad5",
|
|
223
|
+
600: "#9f7aea",
|
|
224
|
+
700: "#b794f4",
|
|
225
|
+
800: "#d6bcfa",
|
|
226
|
+
900: "#e9d8fd",
|
|
227
|
+
},
|
|
228
|
+
pink: {
|
|
229
|
+
50: "#2e1020",
|
|
230
|
+
100: "#3d152b",
|
|
231
|
+
200: "#521c3a",
|
|
232
|
+
300: "#662249",
|
|
233
|
+
400: "#7b2958",
|
|
234
|
+
500: "#d53f8c",
|
|
235
|
+
600: "#dd5a9e",
|
|
236
|
+
700: "#e577b2",
|
|
237
|
+
800: "#ed98c8",
|
|
238
|
+
900: "#f5badc",
|
|
239
|
+
},
|
|
240
|
+
background: {
|
|
241
|
+
50: "#1a1d2e",
|
|
242
|
+
100: "#1e2235",
|
|
243
|
+
200: "#22273c",
|
|
244
|
+
300: "#262c43",
|
|
245
|
+
400: "#2a314a",
|
|
246
|
+
500: "#2e3652",
|
|
247
|
+
600: "#434d6b",
|
|
248
|
+
700: "#616e8e",
|
|
249
|
+
800: "#8490ae",
|
|
250
|
+
900: "#a8b1ca",
|
|
251
|
+
},
|
|
252
|
+
backgroundColor: {
|
|
253
|
+
main: "#111827",
|
|
254
|
+
secondary: "#1a202c",
|
|
255
|
+
tertiary: "#1e2535",
|
|
256
|
+
quaternary: "#252e3d",
|
|
257
|
+
light: "#161b27",
|
|
258
|
+
medium: "#1c2333",
|
|
259
|
+
accent: "#212840",
|
|
260
|
+
subtle: "#131926",
|
|
261
|
+
muted: "#202840",
|
|
262
|
+
neutral: "#1a2133",
|
|
263
|
+
base: "#111827",
|
|
264
|
+
tableHeader: "#161d2e",
|
|
265
|
+
},
|
|
266
|
+
text: {
|
|
267
|
+
50: "#1a1d2b",
|
|
268
|
+
100: "#2d3149",
|
|
269
|
+
200: "#434867",
|
|
270
|
+
300: "#5c6180",
|
|
271
|
+
400: "#777c9a",
|
|
272
|
+
500: "#9499b4",
|
|
273
|
+
600: "#adb1c8",
|
|
274
|
+
700: "#c6c9da",
|
|
275
|
+
800: "#dfe1eb",
|
|
276
|
+
900: "#f0f1f7",
|
|
277
|
+
},
|
|
278
|
+
header: {
|
|
279
|
+
50: "#1c2130",
|
|
280
|
+
100: "#252c3f",
|
|
281
|
+
200: "#2f384e",
|
|
282
|
+
300: "#39445e",
|
|
283
|
+
400: "#44506e",
|
|
284
|
+
500: "#c8cfe0",
|
|
285
|
+
600: "#d4dae8",
|
|
286
|
+
700: "#e0e5f0",
|
|
287
|
+
800: "#eceff7",
|
|
288
|
+
900: "#f5f7fb",
|
|
289
|
+
},
|
|
290
|
+
placeholder: {
|
|
291
|
+
50: "#1e2235",
|
|
292
|
+
100: "#272c42",
|
|
293
|
+
200: "#31374f",
|
|
294
|
+
300: "#3b425c",
|
|
295
|
+
400: "#464d6a",
|
|
296
|
+
500: "#6b7191",
|
|
297
|
+
600: "#8388a5",
|
|
298
|
+
700: "#9da2ba",
|
|
299
|
+
800: "#b7bbcf",
|
|
300
|
+
900: "#d1d4e4",
|
|
301
|
+
},
|
|
302
|
+
boxShadow: {
|
|
303
|
+
primary: "#9A52E247",
|
|
304
|
+
error: "#F2463A47",
|
|
305
|
+
default: "#00000066",
|
|
306
|
+
},
|
|
307
|
+
sidebar: {
|
|
308
|
+
background: {
|
|
309
|
+
50: "#0d1117",
|
|
310
|
+
100: "#111827",
|
|
311
|
+
200: "#0d1526",
|
|
312
|
+
300: "#1a2540",
|
|
313
|
+
400: "#1f2d4d",
|
|
314
|
+
500: "#0a0f1e",
|
|
315
|
+
600: "#090d1b",
|
|
316
|
+
700: "#070b17",
|
|
317
|
+
800: "#060913",
|
|
318
|
+
900: "#04070f",
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
boxborder: {
|
|
322
|
+
50: "#1e2235",
|
|
323
|
+
100: "#252b42",
|
|
324
|
+
200: "#2c3250",
|
|
325
|
+
300: "#33395e",
|
|
326
|
+
400: "#3a406c",
|
|
327
|
+
500: "#41477a",
|
|
328
|
+
600: "#565c91",
|
|
329
|
+
700: "#7479a8",
|
|
330
|
+
800: "#9499bf",
|
|
331
|
+
900: "#b5b9d6",
|
|
332
|
+
},
|
|
333
|
+
border: {
|
|
334
|
+
50: "#1a1e2e",
|
|
335
|
+
100: "#1f2438",
|
|
336
|
+
200: "#252a42",
|
|
337
|
+
300: "#2b314c",
|
|
338
|
+
400: "#313756",
|
|
339
|
+
500: "#373d60",
|
|
340
|
+
600: "#4d5479",
|
|
341
|
+
700: "#6b7296",
|
|
342
|
+
800: "#8d93b3",
|
|
343
|
+
900: "#b0b4d0",
|
|
344
|
+
},
|
|
345
|
+
table: {
|
|
346
|
+
hover: {
|
|
347
|
+
50: "#171c2c",
|
|
348
|
+
100: "#1b2033",
|
|
349
|
+
200: "#1f243a",
|
|
350
|
+
300: "#232841",
|
|
351
|
+
400: "#272c48",
|
|
352
|
+
500: "#2b304f",
|
|
353
|
+
600: "#3a3f63",
|
|
354
|
+
700: "#545879",
|
|
355
|
+
800: "#72768f",
|
|
356
|
+
900: "#9295a6",
|
|
357
|
+
},
|
|
358
|
+
},
|
|
359
|
+
disabled: {
|
|
360
|
+
50: "#1a1e2e",
|
|
361
|
+
100: "#1f2438",
|
|
362
|
+
200: "#252a42",
|
|
363
|
+
300: "#2b314c",
|
|
364
|
+
400: "#313756",
|
|
365
|
+
500: "#373d60",
|
|
366
|
+
600: "#4d5479",
|
|
367
|
+
700: "#6b7296",
|
|
368
|
+
800: "#8d93b3",
|
|
369
|
+
900: "#b0b4d0",
|
|
370
|
+
},
|
|
371
|
+
};
|
|
372
|
+
exports.default = darkPalette;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
export declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
|
+
export declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
|
+
export declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare function AlertDialogHeader({ className, ...rest }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
9
|
+
export declare namespace AlertDialogHeader {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function AlertDialogFooter({ className, ...rest }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
13
|
+
export declare namespace AlertDialogFooter {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
+
export declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
+
export interface AlertDialogActionProps extends React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> {
|
|
19
|
+
/** Defaults to "default" — pass "destructive" for delete-style confirmations. */
|
|
20
|
+
variant?: "default" | "destructive";
|
|
21
|
+
}
|
|
22
|
+
export declare const AlertDialogAction: React.ForwardRefExoticComponent<AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
23
|
+
export declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
36
|
+
var t = {};
|
|
37
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
38
|
+
t[p] = s[p];
|
|
39
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
40
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
41
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
42
|
+
t[p[i]] = s[p[i]];
|
|
43
|
+
}
|
|
44
|
+
return t;
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.AlertDialogCancel = exports.AlertDialogAction = exports.AlertDialogDescription = exports.AlertDialogTitle = exports.AlertDialogContent = exports.AlertDialogOverlay = exports.AlertDialogPortal = exports.AlertDialogTrigger = exports.AlertDialog = void 0;
|
|
48
|
+
exports.AlertDialogHeader = AlertDialogHeader;
|
|
49
|
+
exports.AlertDialogFooter = AlertDialogFooter;
|
|
50
|
+
const React = __importStar(require("react"));
|
|
51
|
+
const AlertDialogPrimitive = __importStar(require("@radix-ui/react-alert-dialog"));
|
|
52
|
+
const utils_1 = require("../../lib/utils");
|
|
53
|
+
const button_1 = require("../ui/button");
|
|
54
|
+
exports.AlertDialog = AlertDialogPrimitive.Root;
|
|
55
|
+
exports.AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
56
|
+
exports.AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
57
|
+
exports.AlertDialogOverlay = React.forwardRef((_a, ref) => {
|
|
58
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
|
59
|
+
return (React.createElement(AlertDialogPrimitive.Overlay, Object.assign({ ref: ref, className: (0, utils_1.cn)("fixed inset-0 z-50 bg-foreground/40 backdrop-blur-sm", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className) }, rest)));
|
|
60
|
+
});
|
|
61
|
+
exports.AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
62
|
+
exports.AlertDialogContent = React.forwardRef((_a, ref) => {
|
|
63
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
|
64
|
+
return (React.createElement(exports.AlertDialogPortal, null,
|
|
65
|
+
React.createElement(exports.AlertDialogOverlay, null),
|
|
66
|
+
React.createElement(AlertDialogPrimitive.Content, Object.assign({ ref: ref, className: (0, utils_1.cn)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-md -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-lg", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", className) }, rest))));
|
|
67
|
+
});
|
|
68
|
+
exports.AlertDialogContent.displayName = "AlertDialogContent";
|
|
69
|
+
function AlertDialogHeader(_a) {
|
|
70
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
|
71
|
+
return (React.createElement("div", Object.assign({ className: (0, utils_1.cn)("flex flex-col gap-1.5 text-left", className) }, rest)));
|
|
72
|
+
}
|
|
73
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
74
|
+
function AlertDialogFooter(_a) {
|
|
75
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
|
76
|
+
return (React.createElement("div", Object.assign({ className: (0, utils_1.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className) }, rest)));
|
|
77
|
+
}
|
|
78
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
79
|
+
exports.AlertDialogTitle = React.forwardRef((_a, ref) => {
|
|
80
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
|
81
|
+
return (React.createElement(AlertDialogPrimitive.Title, Object.assign({ ref: ref, className: (0, utils_1.cn)("text-lg font-semibold leading-none tracking-tight text-foreground", className) }, rest)));
|
|
82
|
+
});
|
|
83
|
+
exports.AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
84
|
+
exports.AlertDialogDescription = React.forwardRef((_a, ref) => {
|
|
85
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
|
86
|
+
return (React.createElement(AlertDialogPrimitive.Description, Object.assign({ ref: ref, className: (0, utils_1.cn)("text-sm text-muted-foreground", className) }, rest)));
|
|
87
|
+
});
|
|
88
|
+
exports.AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
89
|
+
exports.AlertDialogAction = React.forwardRef((_a, ref) => {
|
|
90
|
+
var { className, variant = "default" } = _a, rest = __rest(_a, ["className", "variant"]);
|
|
91
|
+
return (React.createElement(AlertDialogPrimitive.Action, Object.assign({ ref: ref, className: (0, utils_1.cn)((0, button_1.buttonVariants)({ variant }), className) }, rest)));
|
|
92
|
+
});
|
|
93
|
+
exports.AlertDialogAction.displayName = "AlertDialogAction";
|
|
94
|
+
exports.AlertDialogCancel = React.forwardRef((_a, ref) => {
|
|
95
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
|
96
|
+
return (React.createElement(AlertDialogPrimitive.Cancel, Object.assign({ ref: ref, className: (0, utils_1.cn)((0, button_1.buttonVariants)({ variant: "outline" }), "mt-0", className) }, rest)));
|
|
97
|
+
});
|
|
98
|
+
exports.AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface BreadcrumbItem {
|
|
3
|
+
label: React.ReactNode;
|
|
4
|
+
href?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export interface BreadcrumbsProps {
|
|
8
|
+
items: BreadcrumbItem[];
|
|
9
|
+
separator?: React.ReactNode;
|
|
10
|
+
/** Collapse middle items with an ellipsis above this count. */
|
|
11
|
+
maxItems?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function Breadcrumbs({ items, separator, maxItems, className, }: BreadcrumbsProps): React.ReactElement;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.Breadcrumbs = Breadcrumbs;
|
|
37
|
+
const React = __importStar(require("react"));
|
|
38
|
+
const lucide_react_1 = require("lucide-react");
|
|
39
|
+
const utils_1 = require("../../lib/utils");
|
|
40
|
+
function Breadcrumbs({ items, separator, maxItems, className, }) {
|
|
41
|
+
const [expanded, setExpanded] = React.useState(false);
|
|
42
|
+
const shouldCollapse = typeof maxItems === "number" && !expanded && items.length > maxItems;
|
|
43
|
+
const rendered = shouldCollapse
|
|
44
|
+
? [items[0], "ellipsis", ...items.slice(-Math.max(maxItems - 2, 1))]
|
|
45
|
+
: items;
|
|
46
|
+
const sep = separator !== null && separator !== void 0 ? separator : (React.createElement(lucide_react_1.ChevronRight, { "aria-hidden": "true", className: "h-3.5 w-3.5 text-muted-foreground" }));
|
|
47
|
+
return (React.createElement("nav", { "aria-label": "Breadcrumb", className: (0, utils_1.cn)("min-w-0 flex-1", className) },
|
|
48
|
+
React.createElement("ol", { className: "flex min-w-0 flex-wrap items-center gap-1 text-sm" }, rendered.map((entry, index) => {
|
|
49
|
+
const isLast = index === rendered.length - 1;
|
|
50
|
+
if (entry === "ellipsis") {
|
|
51
|
+
return (React.createElement(React.Fragment, { key: "ellipsis" },
|
|
52
|
+
React.createElement("li", null,
|
|
53
|
+
React.createElement("button", { type: "button", "aria-label": "Show hidden breadcrumb items", onClick: () => setExpanded(true), className: "inline-flex items-center rounded-sm px-1 text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring" },
|
|
54
|
+
React.createElement(lucide_react_1.MoreHorizontal, { "aria-hidden": "true", className: "h-4 w-4" }))),
|
|
55
|
+
React.createElement("li", { "aria-hidden": "true", className: "flex items-center" }, sep)));
|
|
56
|
+
}
|
|
57
|
+
return (React.createElement(React.Fragment, { key: `${index}-${String(entry.label)}` },
|
|
58
|
+
React.createElement("li", { className: "flex min-w-0 items-center" }, isLast ? (React.createElement("span", { "aria-current": "page", className: "truncate font-medium text-foreground" }, entry.label)) : entry.href || entry.onClick ? (React.createElement("a", { href: entry.href, onClick: (event) => {
|
|
59
|
+
if (entry.onClick) {
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
entry.onClick();
|
|
62
|
+
}
|
|
63
|
+
}, className: "truncate rounded-sm text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring" }, entry.label)) : (React.createElement("span", { className: "truncate text-muted-foreground" }, entry.label))),
|
|
64
|
+
!isLast && (React.createElement("li", { "aria-hidden": "true", className: "flex items-center" }, sep))));
|
|
65
|
+
}))));
|
|
66
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ApexOptions } from "apexcharts";
|
|
3
|
+
export interface AreaPoint {
|
|
4
|
+
x: string | number | Date;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
export interface AreaSeries {
|
|
8
|
+
name: string;
|
|
9
|
+
data: AreaPoint[] | number[];
|
|
10
|
+
}
|
|
11
|
+
export interface AreaChartProps {
|
|
12
|
+
series: AreaSeries[];
|
|
13
|
+
categories?: (string | number)[];
|
|
14
|
+
height?: number | string;
|
|
15
|
+
stacked?: boolean;
|
|
16
|
+
showLegend?: boolean;
|
|
17
|
+
options?: ApexOptions;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function AreaChart({ series, categories, height, stacked, showLegend, options, className, }: AreaChartProps): React.ReactElement;
|
|
21
|
+
export declare namespace AreaChart {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.AreaChart = AreaChart;
|
|
40
|
+
const React = __importStar(require("react"));
|
|
41
|
+
const react_apexcharts_1 = __importDefault(require("react-apexcharts"));
|
|
42
|
+
const utils_1 = require("../../lib/utils");
|
|
43
|
+
const chartOptions_1 = require("./chartOptions");
|
|
44
|
+
const useChartTheme_1 = require("./useChartTheme");
|
|
45
|
+
function AreaChart({ series, categories, height = 320, stacked = false, showLegend = true, options, className, }) {
|
|
46
|
+
const theme = (0, useChartTheme_1.useChartTheme)();
|
|
47
|
+
const merged = React.useMemo(() => {
|
|
48
|
+
const base = (0, chartOptions_1.baseApexOptions)(theme);
|
|
49
|
+
return Object.assign(Object.assign(Object.assign({}, base), { chart: Object.assign(Object.assign({}, base.chart), { type: "area", stacked }), fill: {
|
|
50
|
+
type: "gradient",
|
|
51
|
+
gradient: {
|
|
52
|
+
shadeIntensity: 1,
|
|
53
|
+
opacityFrom: 0.4,
|
|
54
|
+
opacityTo: 0.05,
|
|
55
|
+
stops: [0, 100],
|
|
56
|
+
},
|
|
57
|
+
}, stroke: { curve: "smooth", width: 2 }, xaxis: categories
|
|
58
|
+
? Object.assign(Object.assign({}, base.xaxis), { categories }) : base.xaxis, legend: Object.assign(Object.assign({}, base.legend), { show: showLegend }) }), options);
|
|
59
|
+
}, [theme, categories, stacked, showLegend, options]);
|
|
60
|
+
return (React.createElement("div", { className: (0, utils_1.cn)("w-full", className) },
|
|
61
|
+
React.createElement(react_apexcharts_1.default, { key: `${theme.mode}-${theme.primary}`, options: merged, series: series, type: "area", height: height })));
|
|
62
|
+
}
|
|
63
|
+
AreaChart.displayName = "AreaChart";
|