@economic/taco 2.60.1-date-fns.0 → 2.61.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/dist/taco.cjs +2638 -518
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.css +37 -31
- package/dist/taco.d.ts +6 -1
- package/dist/taco.js +2638 -518
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.css
CHANGED
@@ -532,54 +532,54 @@ table.yt-table tbody.yt-table__body tr.yt-table__row td.yt-table__cell {
|
|
532
532
|
@apply -mt-px py-0 px-2;
|
533
533
|
}
|
534
534
|
/* Base radio styles */
|
535
|
-
[data-taco='radio-group'] label {
|
535
|
+
[data-taco='radio-group'] > label {
|
536
536
|
@apply flex cursor-pointer items-center gap-2;
|
537
537
|
}
|
538
|
-
[data-taco='radio-group'] label[data-disabled] {
|
538
|
+
[data-taco='radio-group'] > label[data-disabled] {
|
539
539
|
@apply text-grey-300;
|
540
540
|
}
|
541
|
-
[data-taco='radio-group'] label[data-readonly] {
|
541
|
+
[data-taco='radio-group'] > label[data-readonly] {
|
542
542
|
@apply cursor-default;
|
543
543
|
}
|
544
|
-
[data-taco='radio-group'] label[data-disabled]:not([data-readonly]) {
|
544
|
+
[data-taco='radio-group'] > label[data-disabled]:not([data-readonly]) {
|
545
545
|
@apply cursor-not-allowed;
|
546
546
|
}
|
547
547
|
/* Radio button indicator */
|
548
|
-
[data-taco='radio-group'] label::before {
|
548
|
+
[data-taco='radio-group'] > label::before {
|
549
549
|
content: '';
|
550
550
|
@apply border-grey-500 mt-[0.2rem] flex h-4 w-4 flex-shrink-0 items-center justify-center self-start rounded-full border-2 bg-white;
|
551
551
|
}
|
552
552
|
/* Add focus ring when focused */
|
553
|
-
[data-taco='radio-group'] label::before[data-focus-visible='true'] {
|
553
|
+
[data-taco='radio-group'] > label::before[data-focus-visible='true'] {
|
554
554
|
@apply ring-2 ring-blue-500 ring-offset-2;
|
555
555
|
}
|
556
|
-
[data-taco='radio-group'] label::before:not([data-disabled]):not([data-readonly]):not([data-invalid]):not([data-selected]):hover {
|
556
|
+
[data-taco='radio-group'] > label::before:not([data-disabled]):not([data-readonly]):not([data-invalid]):not([data-selected]):hover {
|
557
557
|
@apply border-grey-700;
|
558
558
|
}
|
559
|
-
[data-taco='radio-group'] label::before:not([data-disabled]):not([data-readonly]):hover {
|
559
|
+
[data-taco='radio-group'] > label::before:not([data-disabled]):not([data-readonly]):hover {
|
560
560
|
@apply border-4;
|
561
561
|
}
|
562
|
-
[data-taco='radio-group'] label::before[data-disabled] {
|
562
|
+
[data-taco='radio-group'] > label::before[data-disabled] {
|
563
563
|
@apply border-grey-500/50;
|
564
564
|
}
|
565
565
|
/* Selected state */
|
566
|
-
[data-taco='radio-group'] label[data-selected]::before {
|
566
|
+
[data-taco='radio-group'] > label[data-selected]::before {
|
567
567
|
@apply border-4 border-blue-500;
|
568
568
|
}
|
569
|
-
[data-taco='radio-group'] label[data-selected]::before:not([data-readonly]):not([data-invalid]):not([data-disabled]):hover {
|
569
|
+
[data-taco='radio-group'] > label[data-selected]::before:not([data-readonly]):not([data-invalid]):not([data-disabled]):hover {
|
570
570
|
@apply border-blue-700;
|
571
571
|
}
|
572
|
-
[data-taco='radio-group'] label[data-selected]::before[data-disabled] {
|
572
|
+
[data-taco='radio-group'] > label[data-selected]::before[data-disabled] {
|
573
573
|
@apply border-blue-500/50;
|
574
574
|
}
|
575
575
|
/* Invalid state */
|
576
|
-
[data-taco='radio-group'] label[data-invalid]::before {
|
576
|
+
[data-taco='radio-group'] > label[data-invalid]::before {
|
577
577
|
@apply border-red-500;
|
578
578
|
}
|
579
|
-
[data-taco='radio-group'] label[data-invalid]::before:not([data-readonly]):not([data-disabled]):hover {
|
579
|
+
[data-taco='radio-group'] > label[data-invalid]::before:not([data-readonly]):not([data-disabled]):hover {
|
580
580
|
@apply border-red-700;
|
581
581
|
}
|
582
|
-
[data-taco='radio-group'] label[data-invalid]::before[data-disabled] {
|
582
|
+
[data-taco='radio-group'] > label[data-invalid]::before[data-disabled] {
|
583
583
|
@apply border-red-500/50;
|
584
584
|
}
|
585
585
|
table[data-taco^='table'] {
|
@@ -799,20 +799,22 @@ table[data-taco^='table'] td:not([data-cell-truncate='true']) {
|
|
799
799
|
}
|
800
800
|
|
801
801
|
/* FOOTER */
|
802
|
+
|
803
|
+
table[data-taco^='table'] tfoot tr {
|
804
|
+
@apply border-grey-300 border-t-2;
|
805
|
+
}
|
806
|
+
|
802
807
|
table[data-taco^='table'] tfoot tr:not([data-row-index]) td {
|
803
|
-
|
808
|
+
/*
|
804
809
|
* Since footer has sticky position, the top and bottom padding ensures that the inner content doesn't come over
|
805
810
|
* the border of the footer row.
|
806
811
|
*/
|
807
|
-
|
808
|
-
}
|
809
|
-
table[data-taco^='table'] tfoot tr:not([data-row-index]) td:first-child {
|
810
|
-
@apply z-30 !pb-0 !pt-[2px];
|
812
|
+
@apply border-0 !py-0 font-bold;
|
811
813
|
}
|
812
814
|
|
813
|
-
table[data-taco^='table'] tfoot td:
|
814
|
-
|
815
|
-
}
|
815
|
+
table[data-taco^='table'] tfoot tr:not([data-row-index]) td:first-child {
|
816
|
+
@apply z-30;
|
817
|
+
}
|
816
818
|
|
817
819
|
/* OTHER */
|
818
820
|
|
@@ -1606,17 +1608,21 @@ table[data-taco^='table'] tr:not([data-row-id^='temp-']) [data-row-move-indicato
|
|
1606
1608
|
@apply top-full rounded-b-md;
|
1607
1609
|
}
|
1608
1610
|
|
1609
|
-
table[data-taco^='table'][data-table-row-height='short'] tr[data-row-create] td,
|
1610
|
-
table[data-taco^='table'][data-table-row-height='medium'] tr[data-row-create] td,
|
1611
|
-
table[data-taco^='table'][data-table-row-height='tall'] tr[data-row-create] td,
|
1612
|
-
table[data-taco^='table'][data-table-row-height='extra-tall'] tr[data-row-create] td {
|
1613
|
-
@apply !min-h-[41px] !pt-[10px];
|
1614
|
-
}
|
1615
|
-
|
1616
1611
|
/* Hiding CreateNewRow using CSS to ensure higher specificity for hiding the row */
|
1617
1612
|
table[data-taco^='table'] tr[data-row-create] {
|
1618
|
-
@apply print:hidden;
|
1613
|
+
@apply border-grey-300 border-t-2 print:hidden;
|
1619
1614
|
}
|
1615
|
+
table[data-taco^='table'] tr[data-row-create] td {
|
1616
|
+
@apply !h-[41px] !min-h-[41px] items-center !border-0 !p-0;
|
1617
|
+
}
|
1618
|
+
|
1619
|
+
table[data-taco^='table'] tbody tr[data-row-create] td {
|
1620
|
+
@apply !h-[44px] !min-h-[44px];
|
1621
|
+
}
|
1622
|
+
|
1623
|
+
table[data-taco^='table'] tbody tr[data-row-create] td button {
|
1624
|
+
@apply -mt-[3px];
|
1625
|
+
}
|
1620
1626
|
[data-taco='card-content'] > [data-taco='chart-wrapper']:not(:has([data-taco='chart-donut'], [data-taco='chart-pie'])) {
|
1621
1627
|
@apply w-full;
|
1622
1628
|
}
|
package/dist/taco.d.ts
CHANGED
@@ -3208,6 +3208,7 @@ export declare type TableColumnProps<TType = unknown> = TableColumnIdentifierPro
|
|
3208
3208
|
dataType?: TableColumnDataType;
|
3209
3209
|
defaultHidden?: boolean;
|
3210
3210
|
defaultWidth?: TableColumnWidth;
|
3211
|
+
emptyState?: React.ReactNode;
|
3211
3212
|
enableEditing?: boolean;
|
3212
3213
|
enableFiltering?: boolean;
|
3213
3214
|
enableGrouping?: boolean;
|
@@ -3406,7 +3407,10 @@ export declare type TableRef = HTMLTableElement & {
|
|
3406
3407
|
|
3407
3408
|
export declare type TableRowActionGroupRenderer<TType = unknown> = (rows: TType[]) => JSX.Element | null;
|
3408
3409
|
|
3409
|
-
export declare type TableRowActionRenderer<TType = unknown> = (row: TType,
|
3410
|
+
export declare type TableRowActionRenderer<TType = unknown> = (row: TType, helpers: {
|
3411
|
+
cleanup: (rowId: string) => void;
|
3412
|
+
isEditing: boolean;
|
3413
|
+
}) => JSX.Element | null;
|
3410
3414
|
|
3411
3415
|
export declare type TableRowClickHandler<TType = unknown> = (row: TType) => void;
|
3412
3416
|
|
@@ -4083,6 +4087,7 @@ declare module '@tanstack/table-core' {
|
|
4083
4087
|
dataType?: TableColumnDataType;
|
4084
4088
|
dataTypeOptions?: TableColumnDataTypeOptions;
|
4085
4089
|
defaultWidth?: number;
|
4090
|
+
emptyState?: React.ReactNode;
|
4086
4091
|
enableEditing?: boolean;
|
4087
4092
|
enableOrdering?: boolean;
|
4088
4093
|
enablePrinting?: boolean;
|