@gentleduck/registry-ui 0.2.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/CHANGELOG.md +62 -0
- package/index.css +3 -0
- package/package.json +59 -0
- package/src/_old/_table/index.ts +5 -0
- package/src/_old/_table/table-advanced.constants.tsx +24 -0
- package/src/_old/_table/table-advanced.tsx +311 -0
- package/src/_old/_table/table-advanced.types.ts +272 -0
- package/src/_old/_table/table.constants.ts +2 -0
- package/src/_old/_table/table.hook.tsx +115 -0
- package/src/_old/_table/table.lib.ts +85 -0
- package/src/_old/_table/table.tsx +916 -0
- package/src/_old/_table/table.types.ts +118 -0
- package/src/_old/_table/todo.md +11 -0
- package/src/_old/_upload/index.ts +9 -0
- package/src/_old/_upload/todo.md +38 -0
- package/src/_old/_upload/upload-advanced-chunks.tsx +1624 -0
- package/src/_old/_upload/upload-advanced.tsx +507 -0
- package/src/_old/_upload/upload-sonner.tsx +58 -0
- package/src/_old/_upload/upload.assets.tsx +239 -0
- package/src/_old/_upload/upload.constants.tsx +75 -0
- package/src/_old/_upload/upload.dto.ts +19 -0
- package/src/_old/_upload/upload.lib.tsx +630 -0
- package/src/_old/_upload/upload.tsx +491 -0
- package/src/_old/_upload/upload.types.ts +436 -0
- package/src/accordion/accordion.tsx +247 -0
- package/src/accordion/index.ts +1 -0
- package/src/alert/alert.constants.ts +17 -0
- package/src/alert/alert.tsx +52 -0
- package/src/alert/index.ts +2 -0
- package/src/alert-dialog/alert-dialog.tsx +107 -0
- package/src/alert-dialog/index.ts +1 -0
- package/src/aspect-ratio/aspect-ratio.tsx +33 -0
- package/src/aspect-ratio/index.ts +1 -0
- package/src/audio/audio-record.tsx +776 -0
- package/src/audio/audio-visualizer.tsx +377 -0
- package/src/audio/audio.libs.ts +5 -0
- package/src/audio/audio.types.ts +50 -0
- package/src/audio/index.ts +2 -0
- package/src/avatar/avatar.tsx +78 -0
- package/src/avatar/index.ts +1 -0
- package/src/badge/badge.constants.ts +38 -0
- package/src/badge/badge.tsx +19 -0
- package/src/badge/index.ts +2 -0
- package/src/breadcrumb/breadcrumb.tsx +119 -0
- package/src/breadcrumb/index.ts +1 -0
- package/src/button/button.constants.ts +44 -0
- package/src/button/button.tsx +79 -0
- package/src/button/button.types.ts +38 -0
- package/src/button/index.ts +3 -0
- package/src/button-group/button-group.constants.ts +26 -0
- package/src/button-group/button-group.tsx +65 -0
- package/src/button-group/index.ts +2 -0
- package/src/calendar/calendar.tsx +191 -0
- package/src/calendar/index.ts +1 -0
- package/src/card/card.tsx +81 -0
- package/src/card/index.ts +1 -0
- package/src/carousel/carousel.tsx +211 -0
- package/src/carousel/carousel.types.ts +23 -0
- package/src/carousel/index.ts +2 -0
- package/src/chart/chart.libs.ts +27 -0
- package/src/chart/chart.tsx +260 -0
- package/src/chart/chart.types.ts +38 -0
- package/src/chart/index.ts +3 -0
- package/src/checkbox/checkbox.tsx +144 -0
- package/src/checkbox/checkbox.types.ts +24 -0
- package/src/checkbox/index.ts +2 -0
- package/src/collapsible/collapsible.tsx +151 -0
- package/src/collapsible/index.ts +1 -0
- package/src/combobox/combobox.tsx +132 -0
- package/src/combobox/index.ts +1 -0
- package/src/command/command.tsx +192 -0
- package/src/command/command.types.ts +11 -0
- package/src/command/index.ts +2 -0
- package/src/context-menu/context-menu.tsx +178 -0
- package/src/context-menu/index.ts +1 -0
- package/src/dialog/dialog-responsive.tsx +137 -0
- package/src/dialog/dialog.tsx +97 -0
- package/src/dialog/index.ts +2 -0
- package/src/direction/direction.tsx +13 -0
- package/src/direction/index.ts +1 -0
- package/src/drawer/drawer.tsx +185 -0
- package/src/drawer/index.ts +1 -0
- package/src/dropdown-menu/dropdown-menu.tsx +181 -0
- package/src/dropdown-menu/index.ts +1 -0
- package/src/empty/empty.constants.ts +15 -0
- package/src/empty/empty.tsx +73 -0
- package/src/empty/index.ts +2 -0
- package/src/field/field.constants.ts +22 -0
- package/src/field/field.tsx +203 -0
- package/src/field/index.ts +2 -0
- package/src/hover-card/hover-card.tsx +79 -0
- package/src/hover-card/index.ts +1 -0
- package/src/input/index.ts +1 -0
- package/src/input/input.tsx +45 -0
- package/src/input-group/index.ts +1 -0
- package/src/input-group/input-group.tsx +170 -0
- package/src/input-otp/index.ts +1 -0
- package/src/input-otp/input-otp.tsx +66 -0
- package/src/item/index.ts +2 -0
- package/src/item/item.constants.ts +22 -0
- package/src/item/item.tsx +185 -0
- package/src/json-editor/index.ts +4 -0
- package/src/json-editor/json-editor.hooks.ts +21 -0
- package/src/json-editor/json-editor.libs.ts +34 -0
- package/src/json-editor/json-editor.tsx +425 -0
- package/src/json-editor/json-editor.types.ts +80 -0
- package/src/json-editor/json-editor.view.tsx +110 -0
- package/src/json-editor/json-text-area.tsx +7 -0
- package/src/kbd/index.ts +1 -0
- package/src/kbd/kbd.tsx +39 -0
- package/src/label/index.ts +1 -0
- package/src/label/label.tsx +28 -0
- package/src/menubar/index.ts +1 -0
- package/src/menubar/menubar.tsx +213 -0
- package/src/navigation-menu/index.ts +1 -0
- package/src/navigation-menu/navigation-menu.tsx +152 -0
- package/src/pagination/index.ts +2 -0
- package/src/pagination/pagination.tsx +191 -0
- package/src/pagination/pagination.types.ts +17 -0
- package/src/popover/index.ts +1 -0
- package/src/popover/popover.tsx +35 -0
- package/src/preview-panel/index.ts +3 -0
- package/src/preview-panel/preview-panel-dialog.tsx +99 -0
- package/src/preview-panel/preview-panel.tsx +389 -0
- package/src/preview-panel/preview-panel.types.ts +49 -0
- package/src/progress/index.ts +1 -0
- package/src/progress/progress.tsx +32 -0
- package/src/radio-group/index.ts +1 -0
- package/src/radio-group/radio-group.tsx +92 -0
- package/src/resizable/index.ts +1 -0
- package/src/resizable/resizable.tsx +52 -0
- package/src/scroll-area/index.ts +1 -0
- package/src/scroll-area/scroll-area.tsx +30 -0
- package/src/select/index.ts +1 -0
- package/src/select/select.tsx +138 -0
- package/src/separator/index.ts +1 -0
- package/src/separator/separator.tsx +28 -0
- package/src/sheet/index.ts +2 -0
- package/src/sheet/sheet.constants.tsx +20 -0
- package/src/sheet/sheet.tsx +92 -0
- package/src/sidebar/index.ts +4 -0
- package/src/sidebar/sidebar.constants.ts +30 -0
- package/src/sidebar/sidebar.hooks.ts +13 -0
- package/src/sidebar/sidebar.tsx +676 -0
- package/src/sidebar/sidebar.types.ts +28 -0
- package/src/skeleton/index.ts +1 -0
- package/src/skeleton/skeleton.tsx +22 -0
- package/src/slider/index.ts +1 -0
- package/src/slider/slider.tsx +57 -0
- package/src/sonner/index.ts +4 -0
- package/src/sonner/sonner.chunks.tsx +80 -0
- package/src/sonner/sonner.libs.ts +13 -0
- package/src/sonner/sonner.tsx +31 -0
- package/src/sonner/sonner.types.ts +9 -0
- package/src/switch/index.ts +1 -0
- package/src/switch/switch.tsx +63 -0
- package/src/table/index.ts +1 -0
- package/src/table/table.tsx +95 -0
- package/src/tabs/index.ts +1 -0
- package/src/tabs/tabs.tsx +151 -0
- package/src/textarea/index.ts +1 -0
- package/src/textarea/textarea.tsx +24 -0
- package/src/toggle/index.ts +2 -0
- package/src/toggle/toggle.constants.ts +22 -0
- package/src/toggle/toggle.tsx +24 -0
- package/src/toggle-group/index.ts +1 -0
- package/src/toggle-group/toggle-group.tsx +69 -0
- package/src/tooltip/index.ts +1 -0
- package/src/tooltip/tooltip.tsx +32 -0
- package/src/upload/index.ts +1 -0
- package/src/upload/upload.constants.tsx +19 -0
- package/src/upload/upload.libs.ts +97 -0
- package/src/upload/upload.tsx +340 -0
- package/src/upload/upload.types.ts +44 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
// //@ts-nocheck
|
|
2
|
+
// //
|
|
3
|
+
// //NOTE: BOX SVG
|
|
4
|
+
// export const UploadOrDragSvg = ({ className }: { className?: string }) => {
|
|
5
|
+
// return (
|
|
6
|
+
// <svg
|
|
7
|
+
// xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
// width="107px"
|
|
9
|
+
// height="112px"
|
|
10
|
+
// viewBox="0 0 107 112"
|
|
11
|
+
// version="1.1"
|
|
12
|
+
// className={className}
|
|
13
|
+
// >
|
|
14
|
+
// <title>Group</title>
|
|
15
|
+
// <desc>Created with Sketch.</desc>
|
|
16
|
+
// <defs>
|
|
17
|
+
// <rect id="path-1" x="0" y="0" width="32" height="32" />
|
|
18
|
+
// <rect id="path-3" x="0" y="0" width="32" height="32" />
|
|
19
|
+
// <rect id="path-5" x="0" y="0" width="32" height="32" />
|
|
20
|
+
// <rect id="path-7" x="0" y="0" width="32" height="32" />
|
|
21
|
+
// <rect id="path-9" x="0" y="0" width="32" height="32" />
|
|
22
|
+
// </defs>
|
|
23
|
+
// <g
|
|
24
|
+
// id="Page-1"
|
|
25
|
+
// stroke="none"
|
|
26
|
+
// strokeWidth="1"
|
|
27
|
+
// fill="none"
|
|
28
|
+
// fillRule="evenodd"
|
|
29
|
+
// >
|
|
30
|
+
// <g id="Group" transform="translate(0.725557, -11.000000)">
|
|
31
|
+
// <polygon
|
|
32
|
+
// id="Rectangle"
|
|
33
|
+
// fill="#404040"
|
|
34
|
+
// points="17.2744429 66 54.2744429 53.2768099 91.2744429 66 54.2744429 78.4696017"
|
|
35
|
+
// />
|
|
36
|
+
// <polygon
|
|
37
|
+
// id="Rectangle"
|
|
38
|
+
// fill="#404040"
|
|
39
|
+
// points="17.2744429 66 54.2744429 53.2768099 54.2744429 78.4696017"
|
|
40
|
+
// />
|
|
41
|
+
// <polygon
|
|
42
|
+
// id="Rectangle"
|
|
43
|
+
// fill="#9A9A9A"
|
|
44
|
+
// points="-1.6795256e-13 51.6636125 38.5238299 39.4235592 54.2744429 53.2768099 17.2744429 65.8732058"
|
|
45
|
+
// />
|
|
46
|
+
// <polygon
|
|
47
|
+
// id="Rectangle"
|
|
48
|
+
// fill="#8B8B8B"
|
|
49
|
+
// points="69.6714788 41.0959162 105.129824 52.6483825 91.2744429 65.8732058 54.5488858 53.4496466"
|
|
50
|
+
// />
|
|
51
|
+
// <g
|
|
52
|
+
// id="image-filled"
|
|
53
|
+
// transform="translate(35.774443, 64.750000) rotate(-13.000000) translate(-35.774443, -64.750000) translate(18.274443, 49.000000)"
|
|
54
|
+
// fillRule="nonzero"
|
|
55
|
+
// >
|
|
56
|
+
// <rect
|
|
57
|
+
// id="Rectangle"
|
|
58
|
+
// stroke="#727272"
|
|
59
|
+
// fill="#888888"
|
|
60
|
+
// x="0"
|
|
61
|
+
// y="0"
|
|
62
|
+
// width="35"
|
|
63
|
+
// height="30.625"
|
|
64
|
+
// rx="2"
|
|
65
|
+
// />
|
|
66
|
+
// <path
|
|
67
|
+
// d="M29.716563,12.2570055 L35,17.0602671 L35,17.0602671 L35,27.7083333 C35,29.3191639 33.6941639,30.625 32.0833333,30.625 L3.09610653,30.625 L3.09610653,30.625 L11.8121678,19.1480546 C12.713849,17.9607584 14.3657745,17.6445878 15.6421544,18.4150136 L18.9583333,20.4166667 L18.9583333,20.4166667 L25.5136882,12.5482153 C26.5447601,11.3106105 28.383886,11.1431825 29.6214908,12.1742544 C29.6537739,12.20115 29.6854721,12.2287402 29.716563,12.2570055 Z"
|
|
68
|
+
// id="Rectangle"
|
|
69
|
+
// fill="#727272"
|
|
70
|
+
// />
|
|
71
|
+
// <circle
|
|
72
|
+
// id="Oval"
|
|
73
|
+
// fill="#727272"
|
|
74
|
+
// cx="10.2083333"
|
|
75
|
+
// cy="10.2083333"
|
|
76
|
+
// r="4.375"
|
|
77
|
+
// />
|
|
78
|
+
// </g>
|
|
79
|
+
// <g
|
|
80
|
+
// id="video-filled"
|
|
81
|
+
// transform="translate(49.774443, 75.312500) rotate(-7.000000) translate(-49.774443, -75.312500) translate(32.274443, 60.000000)"
|
|
82
|
+
// fillRule="nonzero"
|
|
83
|
+
// >
|
|
84
|
+
// <rect
|
|
85
|
+
// id="Rectangle"
|
|
86
|
+
// fill="#888888"
|
|
87
|
+
// x="0"
|
|
88
|
+
// y="0"
|
|
89
|
+
// width="35"
|
|
90
|
+
// height="30.625"
|
|
91
|
+
// rx="2"
|
|
92
|
+
// />
|
|
93
|
+
// <path
|
|
94
|
+
// d="M19.3614068,11.9160992 L22.8351072,18.8635001 C23.1952999,19.5838854 22.903306,20.4598668 22.1829207,20.8200596 C21.9804232,20.9213083 21.7571333,20.9740199 21.5307342,20.9740199 L14.5833333,20.9740199 C13.777918,20.9740199 13.125,20.3211018 13.125,19.5156866 C13.125,19.2892875 13.1777116,19.0659975 13.2789603,18.8635001 L16.7526608,11.9160992 C17.1128535,11.1957139 17.9888349,10.9037201 18.7092203,11.2639127 C18.9914477,11.4050265 19.220293,11.6338718 19.3614068,11.9160992 Z"
|
|
95
|
+
// id="Triangle"
|
|
96
|
+
// fill="#727272"
|
|
97
|
+
// transform="translate(18.057193, 16.041826) rotate(90.000000) translate(-18.057193, -16.041826) "
|
|
98
|
+
// />
|
|
99
|
+
// <path
|
|
100
|
+
// d="M32.0833333,0 C33.6941639,0 35,1.30583615 35,2.91666667 L35,27.7083333 C35,29.3191639 33.6941639,30.625 32.0833333,30.625 L2.91666667,30.625 C1.30583615,30.625 0,29.3191639 0,27.7083333 L0,2.91666667 C0,1.30583615 1.30583615,0 2.91666667,0 L32.0833333,0 Z M26.25,1.45833333 L8.75,1.45833333 C7.21238904,1.45833333 5.95267587,2.64815511 5.84133337,4.15732575 L5.83333333,4.375 L5.83333333,26.25 C5.83333333,27.787611 7.02315511,29.0473241 8.53232575,29.1586667 L8.75,29.1666667 L26.25,29.1666667 C27.787611,29.1666667 29.0473241,27.9768449 29.1586667,26.4676742 L29.1666667,26.25 L29.1666667,4.375 C29.1666667,2.76416948 27.8608305,1.45833333 26.25,1.45833333 Z M3.64583333,23.3333333 L2.1875,23.3333333 C1.78479238,23.3333333 1.45833333,23.6597923 1.45833333,24.0625 L1.45833333,24.0625 L1.45833333,28.4375 C1.45833333,28.8402077 1.78479238,29.1666667 2.1875,29.1666667 L2.1875,29.1666667 L3.64583333,29.1666667 C4.04854096,29.1666667 4.375,28.8402077 4.375,28.4375 L4.375,28.4375 L4.375,24.0625 C4.375,23.6597923 4.04854096,23.3333333 3.64583333,23.3333333 L3.64583333,23.3333333 Z M32.8125,23.3333333 L31.3541667,23.3333333 C30.951459,23.3333333 30.625,23.6597923 30.625,24.0625 L30.625,24.0625 L30.625,28.4375 C30.625,28.8402077 30.951459,29.1666667 31.3541667,29.1666667 L31.3541667,29.1666667 L32.8125,29.1666667 C33.2152077,29.1666667 33.5416667,28.8402077 33.5416667,28.4375 L33.5416667,28.4375 L33.5416667,24.0625 C33.5416667,23.6597923 33.2152077,23.3333333 32.8125,23.3333333 L32.8125,23.3333333 Z M3.64583333,16.0416667 L2.1875,16.0416667 C1.78479238,16.0416667 1.45833333,16.3681257 1.45833333,16.7708333 L1.45833333,16.7708333 L1.45833333,21.1458333 C1.45833333,21.548541 1.78479238,21.875 2.1875,21.875 L2.1875,21.875 L3.64583333,21.875 C4.04854096,21.875 4.375,21.548541 4.375,21.1458333 L4.375,21.1458333 L4.375,16.7708333 C4.375,16.3681257 4.04854096,16.0416667 3.64583333,16.0416667 L3.64583333,16.0416667 Z M32.8125,16.0416667 L31.3541667,16.0416667 C30.951459,16.0416667 30.625,16.3681257 30.625,16.7708333 L30.625,16.7708333 L30.625,21.1458333 C30.625,21.548541 30.951459,21.875 31.3541667,21.875 L31.3541667,21.875 L32.8125,21.875 C33.2152077,21.875 33.5416667,21.548541 33.5416667,21.1458333 L33.5416667,21.1458333 L33.5416667,16.7708333 C33.5416667,16.3681257 33.2152077,16.0416667 32.8125,16.0416667 L32.8125,16.0416667 Z M3.64583333,8.75 L2.1875,8.75 C1.78479238,8.75 1.45833333,9.07645904 1.45833333,9.47916667 L1.45833333,9.47916667 L1.45833333,13.8541667 C1.45833333,14.2568743 1.78479238,14.5833333 2.1875,14.5833333 L2.1875,14.5833333 L3.64583333,14.5833333 C4.04854096,14.5833333 4.375,14.2568743 4.375,13.8541667 L4.375,13.8541667 L4.375,9.47916667 C4.375,9.07645904 4.04854096,8.75 3.64583333,8.75 L3.64583333,8.75 Z M32.8125,8.75 L31.3541667,8.75 C30.951459,8.75 30.625,9.07645904 30.625,9.47916667 L30.625,9.47916667 L30.625,13.8541667 C30.625,14.2568743 30.951459,14.5833333 31.3541667,14.5833333 L31.3541667,14.5833333 L32.8125,14.5833333 C33.2152077,14.5833333 33.5416667,14.2568743 33.5416667,13.8541667 L33.5416667,13.8541667 L33.5416667,9.47916667 C33.5416667,9.07645904 33.2152077,8.75 32.8125,8.75 L32.8125,8.75 Z M3.64583333,1.45833333 L2.1875,1.45833333 C1.78479238,1.45833333 1.45833333,1.78479238 1.45833333,2.1875 L1.45833333,2.1875 L1.45833333,6.5625 C1.45833333,6.96520762 1.78479238,7.29166667 2.1875,7.29166667 L2.1875,7.29166667 L3.64583333,7.29166667 C4.04854096,7.29166667 4.375,6.96520762 4.375,6.5625 L4.375,6.5625 L4.375,2.1875 C4.375,1.78479238 4.04854096,1.45833333 3.64583333,1.45833333 L3.64583333,1.45833333 Z M32.8125,1.45833333 L31.3541667,1.45833333 C30.951459,1.45833333 30.625,1.78479238 30.625,2.1875 L30.625,2.1875 L30.625,6.5625 C30.625,6.96520762 30.951459,7.29166667 31.3541667,7.29166667 L31.3541667,7.29166667 L32.8125,7.29166667 C33.2152077,7.29166667 33.5416667,6.96520762 33.5416667,6.5625 L33.5416667,6.5625 L33.5416667,2.1875 C33.5416667,1.78479238 33.2152077,1.45833333 32.8125,1.45833333 L32.8125,1.45833333 Z"
|
|
101
|
+
// id="Combined-Shape"
|
|
102
|
+
// fill="#727272"
|
|
103
|
+
// />
|
|
104
|
+
// </g>
|
|
105
|
+
// <g
|
|
106
|
+
// id="audio-filled"
|
|
107
|
+
// transform="translate(67.774443, 66.500000) rotate(11.000000) translate(-67.774443, -66.500000) translate(52.274443, 51.000000)"
|
|
108
|
+
// fill="#888888"
|
|
109
|
+
// fillRule="nonzero"
|
|
110
|
+
// stroke="#6F6F6F"
|
|
111
|
+
// >
|
|
112
|
+
// <path
|
|
113
|
+
// d="M30.4926751,2.15980127 L30.4926751,3.5883727 L30.4916751,3.60816221 L30.4926751,23.5883727 C30.4926751,26.6708922 28.0519127,29.1833412 24.9975752,29.2985321 L24.7783894,29.3026584 C21.6224766,29.3026584 19.0641037,26.7442856 19.0641037,23.5883727 C19.0641037,20.4324598 21.6224766,17.874087 24.7783894,17.874087 C25.2717358,17.874087 25.7504798,17.9366068 26.2071309,18.0541557 L26.2066751,5.28916221 L11.9206751,6.19716221 L11.9212466,25.4455156 C11.9212466,25.5507127 11.9050029,25.6521158 11.874887,25.7473538 C11.5164582,28.5582509 9.11547274,30.7312298 6.20696085,30.7312298 C3.05104799,30.7312298 0.492675137,28.172857 0.492675137,25.0169441 C0.492675137,21.8610313 3.05104799,19.3026584 6.20696085,19.3026584 C6.70020715,19.3026584 7.17885708,19.3651529 7.63542453,19.4826557 L7.63553228,3.15980127 C7.63553228,2.60751652 8.08324753,2.15980127 8.63553228,2.15980127 L8.71874605,2.15826839 C8.82933837,2.12377779 8.94501944,2.10184869 9.06410371,2.09427389 L29.0641037,0.822099447 C29.8530819,0.771913551 30.4926751,1.37082306 30.4926751,2.15980127 Z"
|
|
114
|
+
// id="Combined-Shape"
|
|
115
|
+
// />
|
|
116
|
+
// </g>
|
|
117
|
+
// <polygon
|
|
118
|
+
// id="Rectangle"
|
|
119
|
+
// fill="#9A9A9A"
|
|
120
|
+
// points="17.2744429 66 54.2744429 78.4696017 54.2744429 122.469602 17.2744429 110"
|
|
121
|
+
// />
|
|
122
|
+
// <polygon
|
|
123
|
+
// id="Rectangle"
|
|
124
|
+
// fill="#B0B0B0"
|
|
125
|
+
// transform="translate(72.774443, 94.234801) scale(-1, 1) translate(-72.774443, -94.234801) "
|
|
126
|
+
// points="54.2744429 66 91.2744429 78.4696017 91.2744429 122.469602 54.2744429 110"
|
|
127
|
+
// />
|
|
128
|
+
// <polygon
|
|
129
|
+
// id="Rectangle"
|
|
130
|
+
// fill="#8B8B8B"
|
|
131
|
+
// points="17.2744429 66 54.2744429 78.4696017 37.3329548 93.2446257 1.31450406e-13 80.3759293"
|
|
132
|
+
// />
|
|
133
|
+
// <polygon
|
|
134
|
+
// id="Rectangle"
|
|
135
|
+
// fill="#9A9A9A"
|
|
136
|
+
// points="54.2744429 78.4696017 91.2744429 66 106.345958 79.6223129 68.2965835 92.098224"
|
|
137
|
+
// />
|
|
138
|
+
// <g
|
|
139
|
+
// id="file-filled"
|
|
140
|
+
// transform="translate(54.274443, 16.000000)"
|
|
141
|
+
// fillRule="nonzero"
|
|
142
|
+
// >
|
|
143
|
+
// <path
|
|
144
|
+
// d="M2.94117647,0 L14.7058824,0 L14.7058824,0 L25,10.2941176 L25,27.9411765 C25,29.5655434 23.6831904,30.8823529 22.0588235,30.8823529 L2.94117647,30.8823529 C1.31680956,30.8823529 0,29.5655434 0,27.9411765 L0,2.94117647 C0,1.31680956 1.31680956,0 2.94117647,0 Z"
|
|
145
|
+
// id="Rectangle"
|
|
146
|
+
// stroke="#6F6F6F"
|
|
147
|
+
// fill="#888888"
|
|
148
|
+
// />
|
|
149
|
+
// <path
|
|
150
|
+
// d="M14.7058824,0 L25,10.2941176 L17.6470588,10.2941176 C16.0226919,10.2941176 14.7058824,8.97730809 14.7058824,7.35294118 L14.7058824,0 L14.7058824,0 Z"
|
|
151
|
+
// id="Triangle"
|
|
152
|
+
// fill="#727272"
|
|
153
|
+
// />
|
|
154
|
+
// </g>
|
|
155
|
+
// <g id="closedhand" transform="translate(57.274443, 0.000000)">
|
|
156
|
+
// <g id="Clipped">
|
|
157
|
+
// <mask id="mask-2" fill="white">
|
|
158
|
+
// <use />
|
|
159
|
+
// </mask>
|
|
160
|
+
// <g id="SVGID_1_" />
|
|
161
|
+
// <path
|
|
162
|
+
// d="M12.6,13 C13.1,12.8 14,12.9 14.3,13.5 C14.5,14 14.7,14.7 14.7,14.6 C14.7,14.2 14.7,13.4 14.8,13 C14.9,12.7 15.1,12.4 15.5,12.3 C15.8,12.2 16.1,12.2 16.4,12.2 C16.7,12.3 17,12.5 17.2,12.7 C17.6,13.3 17.6,14.6 17.6,14.5 C17.7,14.2 17.7,13.3 17.9,12.9 C18,12.7 18.4,12.5 18.6,12.4 C18.9,12.3 19.3,12.3 19.6,12.4 C19.8,12.4 20.2,12.7 20.3,12.9 C20.5,13.2 20.6,14.2 20.7,14.6 C20.7,14.7 20.8,14.2 21,13.9 C21.4,13.3 22.8,13.1 22.9,14.5 C22.9,15.2 22.9,15.1 22.9,15.6 C22.9,16.1 22.9,16.4 22.9,16.8 C22.9,17.2 22.8,18.1 22.7,18.5 C22.6,18.8 22.3,19.5 22,19.9 C22,19.9 20.9,21.1 20.8,21.7 C20.7,22.3 20.7,22.3 20.7,22.7 C20.7,23.1 20.8,23.6 20.8,23.6 C20.8,23.6 20,23.7 19.6,23.6 C19.2,23.5 18.7,22.8 18.6,22.5 C18.4,22.2 18.1,22.2 17.9,22.5 C17.7,22.9 17.2,23.6 16.9,23.6 C16.2,23.7 14.8,23.6 13.8,23.6 C13.8,23.6 14,22.6 13.6,22.2 C13.3,21.9 12.8,21.4 12.5,21.1 L11.7,20.2 C11.4,19.8 10.7,19.3 10.5,18.2 C10.3,17.3 10.3,16.8 10.5,16.4 C10.7,16 11.2,15.8 11.4,15.8 C11.6,15.8 12.1,15.8 12.3,15.9 C12.5,16 12.6,16.1 12.8,16.3 C13,16.6 13.1,16.8 13,16.4 C12.9,16.1 12.7,15.8 12.6,15.4 C12.5,15 12.2,14.5 12.2,13.9 C11.7,13.9 11.8,13.3 12.6,13"
|
|
163
|
+
// id="Path"
|
|
164
|
+
// fill="#FFFFFF"
|
|
165
|
+
// fillRule="nonzero"
|
|
166
|
+
// mask="url(#mask-2)"
|
|
167
|
+
// />
|
|
168
|
+
// </g>
|
|
169
|
+
// <g id="Clipped">
|
|
170
|
+
// <mask id="mask-4" fill="white">
|
|
171
|
+
// <use />
|
|
172
|
+
// </mask>
|
|
173
|
+
// <g id="SVGID_1_" />
|
|
174
|
+
// <path
|
|
175
|
+
// d="M12.6,13 C13.1,12.8 14,12.9 14.3,13.5 C14.5,14 14.7,14.7 14.7,14.6 C14.7,14.2 14.7,13.4 14.8,13 C14.9,12.7 15.1,12.4 15.5,12.3 C15.8,12.2 16.1,12.2 16.4,12.2 C16.7,12.3 17,12.5 17.2,12.7 C17.6,13.3 17.6,14.6 17.6,14.5 C17.7,14.2 17.7,13.3 17.9,12.9 C18,12.7 18.4,12.5 18.6,12.4 C18.9,12.3 19.3,12.3 19.6,12.4 C19.8,12.4 20.2,12.7 20.3,12.9 C20.5,13.2 20.6,14.2 20.7,14.6 C20.7,14.7 20.8,14.2 21,13.9 C21.4,13.3 22.8,13.1 22.9,14.5 C22.9,15.2 22.9,15.1 22.9,15.6 C22.9,16.1 22.9,16.4 22.9,16.8 C22.9,17.2 22.8,18.1 22.7,18.5 C22.6,18.8 22.3,19.5 22,19.9 C22,19.9 20.9,21.1 20.8,21.7 C20.7,22.3 20.7,22.3 20.7,22.7 C20.7,23.1 20.8,23.6 20.8,23.6 C20.8,23.6 20,23.7 19.6,23.6 C19.2,23.5 18.7,22.8 18.6,22.5 C18.4,22.2 18.1,22.2 17.9,22.5 C17.7,22.9 17.2,23.6 16.9,23.6 C16.2,23.7 14.8,23.6 13.8,23.6 C13.8,23.6 14,22.6 13.6,22.2 C13.3,21.9 12.8,21.4 12.5,21.1 L11.7,20.2 C11.4,19.8 10.7,19.3 10.5,18.2 C10.3,17.3 10.3,16.8 10.5,16.4 C10.7,16 11.2,15.8 11.4,15.8 C11.6,15.8 12.1,15.8 12.3,15.9 C12.5,16 12.6,16.1 12.8,16.3 C13,16.6 13.1,16.8 13,16.4 C12.9,16.1 12.7,15.8 12.6,15.4 C12.5,15 12.2,14.5 12.2,13.9 C11.7,13.9 11.8,13.3 12.6,13 Z"
|
|
176
|
+
// id="Path"
|
|
177
|
+
// stroke="#000000"
|
|
178
|
+
// strokeWidth="0.75"
|
|
179
|
+
// strokeLinejoin="round"
|
|
180
|
+
// mask="url(#mask-4)"
|
|
181
|
+
// />
|
|
182
|
+
// </g>
|
|
183
|
+
// <g id="Clipped">
|
|
184
|
+
// <mask id="mask-6" fill="white">
|
|
185
|
+
// <use />
|
|
186
|
+
// </mask>
|
|
187
|
+
// <g id="SVGID_1_" />
|
|
188
|
+
// <line
|
|
189
|
+
// x1="19.6"
|
|
190
|
+
// y1="20.7"
|
|
191
|
+
// x2="19.6"
|
|
192
|
+
// y2="17.3"
|
|
193
|
+
// id="Path"
|
|
194
|
+
// stroke="#000000"
|
|
195
|
+
// strokeWidth="0.75"
|
|
196
|
+
// strokeLinecap="round"
|
|
197
|
+
// mask="url(#mask-6)"
|
|
198
|
+
// />
|
|
199
|
+
// </g>
|
|
200
|
+
// <g id="Clipped">
|
|
201
|
+
// <mask id="mask-8" fill="white">
|
|
202
|
+
// <use />
|
|
203
|
+
// </mask>
|
|
204
|
+
// <g id="SVGID_1_" />
|
|
205
|
+
// <line
|
|
206
|
+
// x1="17.6"
|
|
207
|
+
// y1="20.7"
|
|
208
|
+
// x2="17.5"
|
|
209
|
+
// y2="17.3"
|
|
210
|
+
// id="Path"
|
|
211
|
+
// stroke="#000000"
|
|
212
|
+
// strokeWidth="0.75"
|
|
213
|
+
// strokeLinecap="round"
|
|
214
|
+
// mask="url(#mask-8)"
|
|
215
|
+
// />
|
|
216
|
+
// </g>
|
|
217
|
+
// <g id="Clipped">
|
|
218
|
+
// <mask id="mask-10" fill="white">
|
|
219
|
+
// <use />
|
|
220
|
+
// </mask>
|
|
221
|
+
// <g id="SVGID_1_" />
|
|
222
|
+
// <line
|
|
223
|
+
// x1="15.6"
|
|
224
|
+
// y1="17.3"
|
|
225
|
+
// x2="15.6"
|
|
226
|
+
// y2="20.7"
|
|
227
|
+
// id="Path"
|
|
228
|
+
// stroke="#000000"
|
|
229
|
+
// strokeWidth="0.75"
|
|
230
|
+
// strokeLinecap="round"
|
|
231
|
+
// mask="url(#mask-10)"
|
|
232
|
+
// />
|
|
233
|
+
// </g>
|
|
234
|
+
// </g>
|
|
235
|
+
// </g>
|
|
236
|
+
// </g>
|
|
237
|
+
// </svg>
|
|
238
|
+
// )
|
|
239
|
+
// }
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// //@ts-nocheck
|
|
2
|
+
// import {
|
|
3
|
+
// Columns2,
|
|
4
|
+
// File,
|
|
5
|
+
// FileAudio,
|
|
6
|
+
// FileImage,
|
|
7
|
+
// FileText,
|
|
8
|
+
// FileVideo,
|
|
9
|
+
// Rows2,
|
|
10
|
+
// } from 'lucide-react'
|
|
11
|
+
// import { DuckDropdownMenuRadioGroupProps } from '../dropdown-menu'
|
|
12
|
+
//
|
|
13
|
+
// /**
|
|
14
|
+
// * Enum representing different file types.
|
|
15
|
+
// * @enum {string}
|
|
16
|
+
// */
|
|
17
|
+
// export enum FileTypeEnum {
|
|
18
|
+
// Audio = 'audio',
|
|
19
|
+
// Text = 'text',
|
|
20
|
+
// Image = 'image',
|
|
21
|
+
// Video = 'video',
|
|
22
|
+
// Pdf = 'pdf',
|
|
23
|
+
// Unknown = 'unknown',
|
|
24
|
+
// }
|
|
25
|
+
//
|
|
26
|
+
// /**
|
|
27
|
+
// * Mapping of file types to their corresponding icons.
|
|
28
|
+
// * @type {Record<FileTypeEnum, JSX.Element>}
|
|
29
|
+
// */
|
|
30
|
+
// export const FILE_TYPE_ICONS: Record<FileTypeEnum, JSX.Element> = {
|
|
31
|
+
// [FileTypeEnum.Audio]: <FileAudio className="w-8 h-8" />,
|
|
32
|
+
// [FileTypeEnum.Text]: <FileText className="w-8 h-8" />,
|
|
33
|
+
// [FileTypeEnum.Image]: <FileImage className="w-8 h-8" />,
|
|
34
|
+
// [FileTypeEnum.Video]: <FileVideo className="w-8 h-8" />,
|
|
35
|
+
// [FileTypeEnum.Pdf]: <FileText className="w-8 h-8" />,
|
|
36
|
+
// [FileTypeEnum.Unknown]: <File className="w-8 h-8" />,
|
|
37
|
+
// }
|
|
38
|
+
//
|
|
39
|
+
// // Maximum file size allowed for uploads (10MB).
|
|
40
|
+
// export const MAX_FILE_SIZE = 10 * 1024 * 1024 // 10MB
|
|
41
|
+
//
|
|
42
|
+
// // CSS class for tree height.
|
|
43
|
+
// export const TREE_HEIGHT = `h-[510px]`
|
|
44
|
+
//
|
|
45
|
+
// // CSS class for tree width.
|
|
46
|
+
// export const TREE_WIDTH = `w-[250px]`
|
|
47
|
+
// export const PREVIEW_WIDTH = `w-[400px]`
|
|
48
|
+
// export const CONTENT_WIDTH_PREVIEW_OPEN = `w-[calc(100%-400px)]`
|
|
49
|
+
//
|
|
50
|
+
// // Items to display in the breadcrumb.
|
|
51
|
+
// export const ITEMS_TO_DISPLAY_BREADCRUMB = 4
|
|
52
|
+
//
|
|
53
|
+
// /**
|
|
54
|
+
// * Content options for dropdown menus.
|
|
55
|
+
// * @type {Record<string, DuckDropdownMenuRadioGroupProps['content']>}
|
|
56
|
+
// */
|
|
57
|
+
// export const CONTENT_POILERPLATE: Record<
|
|
58
|
+
// string,
|
|
59
|
+
// DuckDropdownMenuRadioGroupProps['content']
|
|
60
|
+
// > = {
|
|
61
|
+
// view: [
|
|
62
|
+
// { children: 'As Columns', value: 'column', icon: { children: Columns2 } },
|
|
63
|
+
// { children: 'As Rows', value: 'row', icon: { children: Rows2 } },
|
|
64
|
+
// ],
|
|
65
|
+
// sort: [
|
|
66
|
+
// { children: 'Name', value: 'name' },
|
|
67
|
+
// { children: 'Time created', value: 'time_created' },
|
|
68
|
+
// { children: 'Time modified', value: 'time_modified' },
|
|
69
|
+
// { children: 'Last time accessed', value: 'last_time_accessed' },
|
|
70
|
+
// ],
|
|
71
|
+
// order: [
|
|
72
|
+
// { children: 'Ascending', value: 'asc' },
|
|
73
|
+
// { children: 'Descending', value: 'desc' },
|
|
74
|
+
// ],
|
|
75
|
+
// }
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
export const fileTypeSchema = z.object({
|
|
5
|
+
createdAt: z.instanceof(Date),
|
|
6
|
+
file: z.instanceof(File),
|
|
7
|
+
id: z.string().uuid(),
|
|
8
|
+
name: z.string(),
|
|
9
|
+
size: z.string(),
|
|
10
|
+
type: z.string(),
|
|
11
|
+
updatedAt: z.instanceof(Date),
|
|
12
|
+
url: z.string().nullable(),
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export type FileSchemaType = z.infer<typeof fileTypeSchema>
|
|
16
|
+
|
|
17
|
+
export const attachmentSchema = fileTypeSchema.extend({
|
|
18
|
+
treeLevel: z.number(),
|
|
19
|
+
})
|