@dyrected/admin 2.5.35 → 2.5.36
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/admin.css +113 -0
- package/dist/components/ui/popover.d.ts +2 -1
- package/dist/components/ui/spreadsheet-editor.d.ts +10 -0
- package/dist/index.mjs +5933 -5276
- package/package.json +4 -3
package/dist/admin.css
CHANGED
|
@@ -1058,6 +1058,10 @@
|
|
|
1058
1058
|
bottom: 0.75rem;
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
+
.dy-bottom-4{
|
|
1062
|
+
bottom: 1rem;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1061
1065
|
.dy-left-0{
|
|
1062
1066
|
left: 0px;
|
|
1063
1067
|
}
|
|
@@ -1178,6 +1182,10 @@
|
|
|
1178
1182
|
z-index: 100;
|
|
1179
1183
|
}
|
|
1180
1184
|
|
|
1185
|
+
.dy-z-\[150\]{
|
|
1186
|
+
z-index: 150;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1181
1189
|
.dy-order-1{
|
|
1182
1190
|
order: 1;
|
|
1183
1191
|
}
|
|
@@ -1480,6 +1488,10 @@
|
|
|
1480
1488
|
height: 0.875rem;
|
|
1481
1489
|
}
|
|
1482
1490
|
|
|
1491
|
+
.dy-h-32{
|
|
1492
|
+
height: 8rem;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1483
1495
|
.dy-h-4{
|
|
1484
1496
|
height: 1rem;
|
|
1485
1497
|
}
|
|
@@ -1592,6 +1604,10 @@
|
|
|
1592
1604
|
max-height: 10rem;
|
|
1593
1605
|
}
|
|
1594
1606
|
|
|
1607
|
+
.dy-max-h-60{
|
|
1608
|
+
max-height: 15rem;
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1595
1611
|
.dy-max-h-80{
|
|
1596
1612
|
max-height: 20rem;
|
|
1597
1613
|
}
|
|
@@ -1676,6 +1692,10 @@
|
|
|
1676
1692
|
min-height: 180px;
|
|
1677
1693
|
}
|
|
1678
1694
|
|
|
1695
|
+
.dy-min-h-\[200px\]{
|
|
1696
|
+
min-height: 200px;
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1679
1699
|
.dy-min-h-\[220px\]{
|
|
1680
1700
|
min-height: 220px;
|
|
1681
1701
|
}
|
|
@@ -1796,6 +1816,10 @@
|
|
|
1796
1816
|
width: 2rem;
|
|
1797
1817
|
}
|
|
1798
1818
|
|
|
1819
|
+
.dy-w-80{
|
|
1820
|
+
width: 20rem;
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1799
1823
|
.dy-w-9{
|
|
1800
1824
|
width: 2.25rem;
|
|
1801
1825
|
}
|
|
@@ -2108,6 +2132,10 @@
|
|
|
2108
2132
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2109
2133
|
}
|
|
2110
2134
|
|
|
2135
|
+
.dy-transform{
|
|
2136
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2111
2139
|
@keyframes dy-bounce{
|
|
2112
2140
|
|
|
2113
2141
|
0%, 100%{
|
|
@@ -2187,6 +2215,10 @@
|
|
|
2187
2215
|
resize: none;
|
|
2188
2216
|
}
|
|
2189
2217
|
|
|
2218
|
+
.dy-resize-y{
|
|
2219
|
+
resize: vertical;
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2190
2222
|
.dy-list-inside{
|
|
2191
2223
|
list-style-position: inside;
|
|
2192
2224
|
}
|
|
@@ -2407,6 +2439,10 @@
|
|
|
2407
2439
|
border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
|
|
2408
2440
|
}
|
|
2409
2441
|
|
|
2442
|
+
.dy-divide-border > :not([hidden]) ~ :not([hidden]){
|
|
2443
|
+
border-color: hsl(var(--border));
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2410
2446
|
.dy-divide-border\/30 > :not([hidden]) ~ :not([hidden]){
|
|
2411
2447
|
border-color: hsl(var(--border) / 0.3);
|
|
2412
2448
|
}
|
|
@@ -2751,6 +2787,10 @@
|
|
|
2751
2787
|
background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
|
|
2752
2788
|
}
|
|
2753
2789
|
|
|
2790
|
+
.dy-bg-amber-500\/5{
|
|
2791
|
+
background-color: rgb(245 158 11 / 0.05);
|
|
2792
|
+
}
|
|
2793
|
+
|
|
2754
2794
|
.dy-bg-background{
|
|
2755
2795
|
background-color: hsl(var(--background));
|
|
2756
2796
|
}
|
|
@@ -4179,6 +4219,75 @@
|
|
|
4179
4219
|
pointer-events: none;
|
|
4180
4220
|
}
|
|
4181
4221
|
|
|
4222
|
+
/* React Datasheet Grid custom design system variables integration */
|
|
4223
|
+
|
|
4224
|
+
.dy-admin-ui .dsg-container {
|
|
4225
|
+
--dsg-border-color: hsl(var(--border) / 0.8) !important;
|
|
4226
|
+
--dsg-selection-border-color: hsl(var(--intelligence)) !important;
|
|
4227
|
+
--dsg-selection-border-radius: var(--radius) !important;
|
|
4228
|
+
--dsg-selection-border-width: 2px !important;
|
|
4229
|
+
--dsg-selection-background-color: hsl(var(--intelligence) / 0.04) !important;
|
|
4230
|
+
--dsg-selection-disabled-border-color: hsl(var(--muted-foreground) / 0.5) !important;
|
|
4231
|
+
--dsg-selection-disabled-background-color: hsl(var(--muted) / 0.2) !important;
|
|
4232
|
+
--dsg-corner-indicator-width: 8px !important;
|
|
4233
|
+
--dsg-header-text-color: hsl(var(--muted-foreground)) !important;
|
|
4234
|
+
--dsg-header-active-text-color: hsl(var(--foreground)) !important;
|
|
4235
|
+
--dsg-cell-background-color: hsl(var(--card)) !important;
|
|
4236
|
+
--dsg-cell-disabled-background-color: hsl(var(--muted) / 0.1) !important;
|
|
4237
|
+
--dsg-transition-duration: .15s !important;
|
|
4238
|
+
--dsg-expand-rows-indicator-width: 10px !important;
|
|
4239
|
+
--dsg-scroll-shadow-width: 8px !important;
|
|
4240
|
+
--dsg-scroll-shadow-color: rgba(0, 0, 0, 0.08) !important;
|
|
4241
|
+
border: 1px solid var(--dsg-border-color);
|
|
4242
|
+
border-radius: var(--radius);
|
|
4243
|
+
overflow: hidden;
|
|
4244
|
+
box-shadow: none;
|
|
4245
|
+
font-family: var(--font-sans) !important;
|
|
4246
|
+
}
|
|
4247
|
+
|
|
4248
|
+
.dy-admin-ui .dsg-row-header,
|
|
4249
|
+
.dy-admin-ui .dsg-corner-header {
|
|
4250
|
+
background-color: hsl(var(--muted) / 0.3) !important;
|
|
4251
|
+
font-size: 11px;
|
|
4252
|
+
font-weight: 500;
|
|
4253
|
+
text-transform: uppercase;
|
|
4254
|
+
letter-spacing: 0.05em;
|
|
4255
|
+
}
|
|
4256
|
+
|
|
4257
|
+
.dy-admin-ui .dsg-cell {
|
|
4258
|
+
font-size: 13px !important;
|
|
4259
|
+
color: hsl(var(--foreground)) !important;
|
|
4260
|
+
}
|
|
4261
|
+
|
|
4262
|
+
.dy-admin-ui .dsg-input {
|
|
4263
|
+
font-family: var(--font-sans) !important;
|
|
4264
|
+
font-size: 13px !important;
|
|
4265
|
+
color: hsl(var(--foreground)) !important;
|
|
4266
|
+
padding: 0 8px !important;
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
.dy-admin-ui .dsg-container {
|
|
4270
|
+
border: solid 1px hsl(var(--border) / 0.8) !important;
|
|
4271
|
+
border-top: none !important;
|
|
4272
|
+
border-left: none !important;
|
|
4273
|
+
cursor: cell !important;
|
|
4274
|
+
-webkit-user-select: none !important;
|
|
4275
|
+
-moz-user-select: none !important;
|
|
4276
|
+
user-select: none !important;
|
|
4277
|
+
box-sizing: border-box !important;
|
|
4278
|
+
color: hsl(var(--foreground)) !important;
|
|
4279
|
+
background: hsl(var(--card)) !important;
|
|
4280
|
+
position: relative !important;
|
|
4281
|
+
width: 100% !important;
|
|
4282
|
+
overflow: auto !important;
|
|
4283
|
+
will-change: transform !important;
|
|
4284
|
+
direction: ltr !important;
|
|
4285
|
+
}
|
|
4286
|
+
|
|
4287
|
+
.dy-admin-ui .dsg-container .dsg-add-row {
|
|
4288
|
+
background: hsl(var(--card)) !important;
|
|
4289
|
+
}
|
|
4290
|
+
|
|
4182
4291
|
.dy-admin-ui .hover\:dy-text-primary:hover {
|
|
4183
4292
|
color: hsl(var(--intelligence));
|
|
4184
4293
|
}
|
|
@@ -4554,6 +4663,10 @@
|
|
|
4554
4663
|
background-color: hsl(var(--accent) / 0.7);
|
|
4555
4664
|
}
|
|
4556
4665
|
|
|
4666
|
+
.hover\:dy-bg-amber-500\/10:hover{
|
|
4667
|
+
background-color: rgb(245 158 11 / 0.1);
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4557
4670
|
.hover\:dy-bg-background:hover{
|
|
4558
4671
|
background-color: hsl(var(--background));
|
|
4559
4672
|
}
|
|
@@ -3,4 +3,5 @@ import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
|
3
3
|
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
4
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
|
|
6
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CollectionConfig } from '@dyrected/core';
|
|
2
|
+
interface SpreadsheetEditorProps {
|
|
3
|
+
slug: string;
|
|
4
|
+
schema: CollectionConfig;
|
|
5
|
+
data: Record<string, unknown>[];
|
|
6
|
+
onSave: (updates: Record<string, Record<string, unknown>>, creates?: Record<string, unknown>[]) => Promise<void>;
|
|
7
|
+
isSaving: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function SpreadsheetEditor({ slug, schema, data, onSave, isSaving, }: SpreadsheetEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|