@economic/taco 2.14.2 → 2.16.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Drawer/Drawer.d.ts +5 -1
- package/dist/components/Icon/components/AiChatSolid.d.ts +3 -0
- package/dist/components/Icon/components/AiStars.d.ts +3 -0
- package/dist/components/Icon/components/EnvelopeSolid.d.ts +3 -0
- package/dist/components/Icon/components/PhoneSolid.d.ts +3 -0
- package/dist/components/Icon/components/QuestionMarkBold.d.ts +3 -0
- package/dist/components/Icon/components/index.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Menu/components/Item.d.ts +1 -1
- package/dist/components/Menu/components/Link.d.ts +1 -1
- package/dist/components/Navigation2/components/Link.d.ts +1 -1
- package/dist/components/Provider/Localization.d.ts +19 -0
- package/dist/components/SearchInput2/SearchInput2.d.ts +1 -0
- package/dist/components/Select2/components/Option.d.ts +2 -2
- package/dist/components/Select2/components/Search.d.ts +1 -1
- package/dist/components/Table3/components/alert/ErrorAlert.d.ts +10 -0
- package/dist/components/Table3/components/columns/cell/DisplayCell.d.ts +5 -2
- package/dist/components/Table3/components/columns/cell/EditingCell.d.ts +3 -0
- package/dist/components/Table3/components/columns/cell/Highlight.d.ts +2 -0
- package/dist/components/Table3/components/columns/internal/EditingActions.d.ts +1 -1
- package/dist/components/Table3/components/rows/Row.d.ts +2 -0
- package/dist/components/Table3/components/rows/RowContext.d.ts +1 -0
- package/dist/components/Table3/hooks/features/useEditing.d.ts +12 -11
- package/dist/components/Table3/hooks/features/usePauseShortcuts.d.ts +5 -0
- package/dist/components/Table3/hooks/features/useSearch.d.ts +2 -0
- package/dist/components/Table3/hooks/features/useValidation.d.ts +13 -0
- package/dist/components/Table3/hooks/useTable.d.ts +4 -0
- package/dist/components/Table3/types.d.ts +26 -1
- package/dist/components/Table3/util/editing.d.ts +6 -0
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -0
- package/dist/esm/index.css +112 -33
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js +7 -2
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Field/Field.js +19 -3
- package/dist/esm/packages/taco/src/components/Field/Field.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Icon/components/AiChatSolid.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AiChatSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AiStars.js +30 -0
- package/dist/esm/packages/taco/src/components/Icon/components/AiStars.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EnvelopeSolid.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/EnvelopeSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PhoneSolid.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/PhoneSolid.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/QuestionMarkBold.js +17 -0
- package/dist/esm/packages/taco/src/components/Icon/components/QuestionMarkBold.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js +10 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +19 -0
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
- package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js +4 -0
- package/dist/esm/packages/taco/src/components/SearchInput2/SearchInput2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js +28 -4
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js +154 -0
- package/dist/esm/packages/taco/src/components/Table3/components/alert/ErrorAlert.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js +51 -6
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Cell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js +7 -55
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/DisplayCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js +69 -37
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js +17 -17
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/EditingControl.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js +41 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/Highlight.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js +21 -12
- package/dist/esm/packages/taco/src/components/Table3/components/columns/cell/controls/TextareaControl.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/footer/Footer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js +6 -5
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Group.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js +2 -2
- package/dist/esm/packages/taco/src/components/Table3/components/columns/header/Header.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js +57 -17
- package/dist/esm/packages/taco/src/components/Table3/components/columns/internal/EditingActions.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js +42 -32
- package/dist/esm/packages/taco/src/components/Table3/components/rows/Row.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js +2 -1
- package/dist/esm/packages/taco/src/components/Table3/components/rows/RowContext.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js +8 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Filter/filters/Filters.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js +2 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/PrintButton/hooks/useParentStylesheets.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js +48 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Search.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js +2 -2
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Settings.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/toolbar/Toolbar.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js +185 -101
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useEditing.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js +12 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/usePauseShortcuts.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js +4 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useSearch.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js +178 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/features/useValidation.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useConvertChildrenToColumns.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js +8 -2
- package/dist/esm/packages/taco/src/components/Table3/hooks/useTable.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/strategies/virtualised.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/types.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/util/editing.js +21 -1
- package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js +4 -0
- package/dist/esm/packages/taco/src/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/packages/taco/src/utils/hooks/useTruncated.js +20 -0
- package/dist/esm/packages/taco/src/utils/hooks/useTruncated.js.map +1 -0
- package/dist/index.css +112 -33
- package/dist/taco.cjs.development.js +1735 -957
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +2 -2
- package/types.json +23852 -10957
@@ -0,0 +1,20 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
|
3
|
+
const isTruncated = targetElement => {
|
4
|
+
if (targetElement !== null) {
|
5
|
+
return targetElement.offsetWidth < targetElement.scrollWidth;
|
6
|
+
}
|
7
|
+
return false;
|
8
|
+
};
|
9
|
+
const useTruncated = (element, deps = []) => {
|
10
|
+
const [truncated, setTruncated] = React__default.useState(isTruncated(element));
|
11
|
+
React__default.useEffect(() => {
|
12
|
+
setTruncated(isTruncated(element));
|
13
|
+
}, [element, ...deps]);
|
14
|
+
return {
|
15
|
+
truncated
|
16
|
+
};
|
17
|
+
};
|
18
|
+
|
19
|
+
export { useTruncated };
|
20
|
+
//# sourceMappingURL=useTruncated.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTruncated.js","sources":["../../../../../../../src/utils/hooks/useTruncated.tsx"],"sourcesContent":["import React from 'react';\n\nconst isTruncated = (targetElement: HTMLElement | null) => {\n if (targetElement !== null) {\n return targetElement.offsetWidth < targetElement.scrollWidth;\n }\n\n return false;\n};\n\nexport const useTruncated = (element: HTMLElement | null, deps: any[] = []) => {\n const [truncated, setTruncated] = React.useState<boolean>(isTruncated(element));\n\n React.useEffect(() => {\n setTruncated(isTruncated(element));\n }, [element, ...deps]);\n\n return { truncated };\n};\n"],"names":["isTruncated","targetElement","offsetWidth","scrollWidth","useTruncated","element","deps","truncated","setTruncated","React","useState","useEffect"],"mappings":";;AAEA,MAAMA,WAAW,GAAIC,aAAiC;EAClD,IAAIA,aAAa,KAAK,IAAI,EAAE;IACxB,OAAOA,aAAa,CAACC,WAAW,GAAGD,aAAa,CAACE,WAAW;;EAGhE,OAAO,KAAK;AAChB,CAAC;MAEYC,YAAY,GAAGA,CAACC,OAA2B,EAAEC,OAAc,EAAE;EACtE,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGC,cAAK,CAACC,QAAQ,CAAUV,WAAW,CAACK,OAAO,CAAC,CAAC;EAE/EI,cAAK,CAACE,SAAS,CAAC;IACZH,YAAY,CAACR,WAAW,CAACK,OAAO,CAAC,CAAC;GACrC,EAAE,CAACA,OAAO,EAAE,GAAGC,IAAI,CAAC,CAAC;EAEtB,OAAO;IAAEC;GAAW;AACxB;;;;"}
|
package/dist/index.css
CHANGED
@@ -652,6 +652,10 @@
|
|
652
652
|
@apply flex;
|
653
653
|
}
|
654
654
|
|
655
|
+
[data-taco='table3-column-group'] > div {
|
656
|
+
@apply grow;
|
657
|
+
}
|
658
|
+
|
655
659
|
/* In cases where row height might differ from default one (example: textarea without truncate or changing of font size or row height),
|
656
660
|
we need to prevent editing controls to take all available space */
|
657
661
|
[role='cell']:not([data-highlighted='true']) {
|
@@ -701,94 +705,108 @@
|
|
701
705
|
}
|
702
706
|
|
703
707
|
/* normal rows */
|
704
|
-
[role='row']:not([data-selected='true']):not([data-
|
708
|
+
[role='row']:not([data-selected='true']):not([data-invalid='true']) [role='cell'] {
|
705
709
|
@apply bg-white;
|
706
710
|
}
|
707
|
-
[role='row']:not([data-selected='true']):not([data-
|
711
|
+
[role='row']:not([data-selected='true']):not([data-invalid='true']):hover [role='cell'] {
|
708
712
|
--table3-row-actions-shadow: theme(colors.grey.100);
|
709
713
|
@apply bg-grey-100;
|
710
714
|
}
|
711
|
-
[role='row']:not([data-selected='true']):not([data-
|
715
|
+
[role='row']:not([data-selected='true']):not([data-invalid='true'])[data-current='true'] [role='cell'] {
|
712
716
|
--table3-row-actions-shadow: theme(colors.grey.100);
|
713
717
|
@apply bg-grey-100;
|
714
718
|
}
|
715
|
-
[role='row']:not([data-selected='true']):not([data-
|
719
|
+
[role='row']:not([data-selected='true']):not([data-invalid='true'])[data-current='true']:hover [role='cell'] {
|
716
720
|
--table3-row-actions-shadow: theme(colors.grey.100);
|
717
721
|
@apply bg-grey-100;
|
718
722
|
}
|
723
|
+
/* Fields shouldn’t have white background when not in current row and hovered*/
|
724
|
+
[role='row']:not([data-selected='true']):not([data-invalid='true'])[data-current='false']:hover [role='cell'] .bg-white {
|
725
|
+
@apply !bg-grey-100;
|
726
|
+
}
|
719
727
|
/* normal rows when focus is inside the table */
|
720
728
|
[data-taco='table2']:focus-within
|
721
|
-
[role='row'][data-current='true']:not([data-selected='true']):not([data-
|
729
|
+
[role='row'][data-current='true']:not([data-selected='true']):not([data-invalid='true'])
|
722
730
|
[role='cell'] {
|
723
731
|
--table3-row-actions-shadow: theme(colors.grey.200);
|
724
732
|
@apply bg-grey-200;
|
725
733
|
}
|
726
734
|
/* normal rows when hover is paused */
|
727
|
-
[data-pause-hover='true'] [role='row']:not([data-selected='true']):not([data-
|
735
|
+
[data-pause-hover='true'] [role='row']:not([data-selected='true']):not([data-invalid='true']):hover:not([data-current='true']) [role='cell'] {
|
728
736
|
--table3-row-actions-shadow: theme(colors.white);
|
729
737
|
@apply !bg-white;
|
730
738
|
}
|
731
|
-
[data-pause-hover='true'] [role='row']:not([data-selected='true']):not([data-
|
739
|
+
[data-pause-hover='true'] [role='row']:not([data-selected='true']):not([data-invalid='true']):hover[data-current='true'] [role='cell'] {
|
732
740
|
--table3-row-actions-shadow: theme(colors.grey.200);
|
733
741
|
@apply !bg-grey-200;
|
734
742
|
}
|
735
743
|
|
736
744
|
/* selected rows */
|
737
|
-
[role='row'][data-selected='true']:not([data-
|
745
|
+
[role='row'][data-selected='true']:not([data-invalid='true']) [role='cell'] {
|
738
746
|
@apply bg-blue-100;
|
739
747
|
}
|
740
|
-
[role='row'][data-selected='true']:not([data-
|
748
|
+
[role='row'][data-selected='true']:not([data-invalid='true']):hover [role='cell'] {
|
741
749
|
--table3-row-actions-shadow: #d6e3f6;
|
742
750
|
@apply bg-[#D6E3F6];
|
743
751
|
}
|
744
|
-
[role='row'][data-selected='true']:not([data-
|
752
|
+
[role='row'][data-selected='true']:not([data-invalid='true'])[data-current='true']:hover [role='cell'],
|
745
753
|
|
746
|
-
[role='row'][data-selected='true']:not([data-
|
754
|
+
[role='row'][data-selected='true']:not([data-invalid='true'])[data-current='true'] [role='cell'] {
|
747
755
|
--table3-row-actions-shadow: #d6e3f6;
|
748
756
|
@apply bg-[#D6E3F6];
|
749
757
|
}
|
750
758
|
/* selected rows when focus is inside the table */
|
751
|
-
[data-taco='table2']:focus-within
|
759
|
+
[data-taco='table2']:focus-within
|
760
|
+
[role='row'][data-current='true'][data-selected='true']:not([data-invalid='true'])
|
761
|
+
[role='cell'] {
|
752
762
|
--table3-row-actions-shadow: #ccd8eb;
|
753
763
|
@apply bg-[#CCD8EB];
|
754
764
|
}
|
755
765
|
/* selected rows when hover is paused */
|
756
|
-
[data-pause-hover='true'] [role='row'][data-selected='true']:not([data-
|
766
|
+
[data-pause-hover='true'] [role='row'][data-selected='true']:not([data-invalid='true']):hover:not([data-current='true']) [role='cell'] {
|
757
767
|
--table3-row-actions-shadow: theme(colors.blue.100);
|
758
768
|
@apply !bg-blue-100;
|
759
769
|
}
|
760
|
-
[data-pause-hover='true'] [role='row'][data-selected='true']:not([data-
|
770
|
+
[data-pause-hover='true'] [role='row'][data-selected='true']:not([data-invalid='true']):hover[data-current='true'] [role='cell'] {
|
761
771
|
--table3-row-actions-shadow: #ccd8eb;
|
762
772
|
@apply !bg-[#CCD8EB];
|
763
773
|
}
|
764
774
|
|
765
775
|
/* error rows */
|
766
|
-
[role='row'][data-
|
776
|
+
[role='row'][data-invalid='true'] [role='cell'] {
|
767
777
|
@apply bg-[#FFEDE9];
|
768
778
|
}
|
769
|
-
[role='row'][data-
|
779
|
+
[role='row'][data-invalid='true']:hover [role='cell'] {
|
770
780
|
--table3-row-actions-shadow: #ffe4de;
|
771
781
|
@apply bg-[#FFE4DE];
|
772
782
|
}
|
773
|
-
[role='row'][data-
|
783
|
+
[role='row'][data-invalid='true'][data-current='true'] [role='cell'] {
|
774
784
|
--table3-row-actions-shadow: theme(colors.red.100);
|
775
785
|
@apply bg-red-100;
|
776
786
|
}
|
777
|
-
[role='row'][data-
|
787
|
+
[role='row'][data-invalid='true'][data-current='true']:hover [role='cell'] {
|
778
788
|
--table3-row-actions-shadow: #ffe4de;
|
779
789
|
@apply bg-[#FFE4DE];
|
780
790
|
}
|
791
|
+
/* Fields with errors shouldn’t have white background when not in current row */
|
792
|
+
[role='row'][data-invalid='true'][data-current='false'] [role='cell'] .bg-white {
|
793
|
+
@apply !bg-[#FFEDE9];
|
794
|
+
}
|
795
|
+
/* Request from UX: In error state, input backgroud color should be the same as row background color */
|
796
|
+
[role='row'][data-invalid='true'][data-current='false']:hover [role='cell'] .bg-white {
|
797
|
+
@apply !bg-[#FFE4DE];
|
798
|
+
}
|
781
799
|
/* error rows when focus is inside the table */
|
782
|
-
[data-taco='table2']:focus-within [role='row'][data-current='true'][data-
|
800
|
+
[data-taco='table2']:focus-within [role='row'][data-current='true'][data-invalid='true'] [role='cell'] {
|
783
801
|
--table3-row-actions-shadow: theme(colors.red.100);
|
784
802
|
@apply bg-red-100;
|
785
803
|
}
|
786
804
|
/* error rows when hover is paused */
|
787
|
-
[data-pause-hover='true'] [role='row'][data-
|
805
|
+
[data-pause-hover='true'] [role='row'][data-invalid='true']:hover:not([data-current='true']) [role='cell'] {
|
788
806
|
--table3-row-actions-shadow: #ffede9;
|
789
807
|
@apply !bg-[#FFEDE9];
|
790
808
|
}
|
791
|
-
[data-pause-hover='true'] [role='row'][data-
|
809
|
+
[data-pause-hover='true'] [role='row'][data-invalid='true']:hover[data-current='true'] [role='cell'] {
|
792
810
|
--table3-row-actions-shadow: theme(colors.red.100);
|
793
811
|
@apply !bg-red-100;
|
794
812
|
}
|
@@ -802,6 +820,12 @@
|
|
802
820
|
@apply !wcag-blue-500;
|
803
821
|
}
|
804
822
|
|
823
|
+
/* error row */
|
824
|
+
/*!!!!*/
|
825
|
+
[data-taco='table2-body'] [role='row'][data-invalid='true'] [role='cell'] {
|
826
|
+
/*@apply !bg-[#FFF5F2];*/
|
827
|
+
}
|
828
|
+
|
805
829
|
/* cell component overrides */
|
806
830
|
|
807
831
|
/* small font size */
|
@@ -820,7 +844,9 @@
|
|
820
844
|
}
|
821
845
|
|
822
846
|
[data-font-size='small'] [role='cell'] [data-taco='badge'],
|
823
|
-
[data-font-size='small'] [role='cell'] [data-taco='badge-icon']
|
847
|
+
[data-font-size='small'] [role='cell'] [data-taco='badge-icon'],
|
848
|
+
[data-font-size='small'] [role='cell'] [data-taco='icon'],
|
849
|
+
[data-font-size='small'] [role='cell'] [data-taco='spinner'] {
|
824
850
|
@apply !-my-0.5 !text-xs;
|
825
851
|
}
|
826
852
|
|
@@ -828,11 +854,21 @@
|
|
828
854
|
@apply !-my-1;
|
829
855
|
}
|
830
856
|
|
831
|
-
[data-font-size='small'] [role='cell'] [data-taco='
|
832
|
-
[data-font-size='small'] [role='cell'] [data-taco='
|
857
|
+
[data-font-size='small'] [role='cell'] [data-taco='Select2'],
|
858
|
+
[data-font-size='small'] [role='cell'] [data-taco='input-container'] {
|
833
859
|
@apply !-my-[3px];
|
834
860
|
}
|
835
861
|
|
862
|
+
/* from validation */
|
863
|
+
[data-font-size='small'] [role='row'][data-invalid='true'] [role='cell'] [data-taco='Select2'],
|
864
|
+
[data-font-size='small'] [role='row'][data-invalid='true'] [role='cell'] [data-taco='input-container'],
|
865
|
+
[data-font-size='small'] [role='row'] [role='cell'][data-invalid='true'] [data-taco='Select2'],
|
866
|
+
[data-font-size='small'] [role='row'] [role='cell'][data-invalid='true'] [data-taco='input-container'] {
|
867
|
+
@apply !-mt-1;
|
868
|
+
@apply !mb-0;
|
869
|
+
}
|
870
|
+
/*---*/
|
871
|
+
|
836
872
|
[data-font-size='small'] [role='cell'] [data-taco='input'],
|
837
873
|
[data-font-size='small'] [role='cell'] [data-taco='Select2'],
|
838
874
|
[data-font-size='small'] [role='cell'] [data-taco='textarea'] {
|
@@ -859,9 +895,18 @@
|
|
859
895
|
@apply !my-0;
|
860
896
|
}
|
861
897
|
|
862
|
-
|
863
|
-
|
864
|
-
|
898
|
+
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself */
|
899
|
+
|
900
|
+
[data-font-size='small'] [role='cell'][data-editable]:not([data-highlighted='true']) {
|
901
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_6px)];
|
902
|
+
}
|
903
|
+
|
904
|
+
/* When cell is editable and highlighted, the padding should apply to highlight wrapper,
|
905
|
+
because it should take all the available space in the cell */
|
906
|
+
|
907
|
+
[data-font-size='small'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
|
908
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_6px)];
|
909
|
+
}
|
865
910
|
|
866
911
|
[data-font-size='small'] [role='cell'][data-editable] [data-taco='checkbox'],
|
867
912
|
[data-font-size='small'] [role='cell'][data-editable] [data-taco='checkbox-container'],
|
@@ -889,9 +934,18 @@
|
|
889
934
|
@apply !-my-[5px];
|
890
935
|
}
|
891
936
|
|
892
|
-
|
893
|
-
|
894
|
-
|
937
|
+
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself */
|
938
|
+
|
939
|
+
[data-font-size='medium'] [role='cell'][data-editable]:not([data-highlighted='true']) {
|
940
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_8px)];
|
941
|
+
}
|
942
|
+
|
943
|
+
/* When cell is editable and highlighted, the padding should apply to highlight wrapper,
|
944
|
+
because it should take all the available space in the cell */
|
945
|
+
|
946
|
+
[data-font-size='medium'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
|
947
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_8px)];
|
948
|
+
}
|
895
949
|
|
896
950
|
[data-font-size='medium'] [role='cell'][data-editable] [data-taco='checkbox'],
|
897
951
|
[data-font-size='medium'] [role='cell'][data-editable] [data-taco='checkbox-container'],
|
@@ -900,6 +954,14 @@
|
|
900
954
|
@apply !mx-[calc(var(--table3-cell-padding-x)_-_3px)] !mt-px;
|
901
955
|
}
|
902
956
|
|
957
|
+
[data-font-size='medium'] [role='row'][data-invalid='true'] [role='cell'] [data-taco='Select2'],
|
958
|
+
[data-font-size='medium'] [role='row'][data-invalid='true'] [role='cell'] [data-taco='input-container'],
|
959
|
+
[data-font-size='medium'] [role='row'] [role='cell'][data-invalid='true'] [data-taco='Select2'],
|
960
|
+
[data-font-size='medium'] [role='row'] [role='cell'][data-invalid='true'] [data-taco='input-container'] {
|
961
|
+
@apply !-mt-1.5;
|
962
|
+
@apply !mb-0;
|
963
|
+
}
|
964
|
+
|
903
965
|
/* large font size */
|
904
966
|
[data-font-size='large'] [role='cell'] > [data-taco='button'],
|
905
967
|
[data-font-size='large'] [role='cell'] > [data-taco='icon-button'] {
|
@@ -919,6 +981,14 @@
|
|
919
981
|
@apply !-my-[7.5px];
|
920
982
|
}
|
921
983
|
|
984
|
+
[data-font-size='large'] [role='row'][data-invalid='true'] [role='cell'] [data-taco='Select2'],
|
985
|
+
[data-font-size='large'] [role='row'][data-invalid='true'] [role='cell'] [data-taco='input-container'],
|
986
|
+
[data-font-size='large'] [role='row'] [role='cell'][data-invalid='true'] [data-taco='Select2'],
|
987
|
+
[data-font-size='large'] [role='row'] [role='cell'][data-invalid='true'] [data-taco='input-container'] {
|
988
|
+
@apply !-mt-2;
|
989
|
+
@apply !mb-0;
|
990
|
+
}
|
991
|
+
|
922
992
|
[data-font-size='large'] [role='cell'] [data-taco='input'],
|
923
993
|
[data-font-size='large'] [role='cell'] [data-taco='Select2'],
|
924
994
|
[data-font-size='large'] [role='cell'] [data-taco='textarea'] {
|
@@ -933,9 +1003,18 @@
|
|
933
1003
|
@apply !h-6 !w-6;
|
934
1004
|
}
|
935
1005
|
|
936
|
-
|
937
|
-
|
938
|
-
|
1006
|
+
/* When cell is editable, but not highlighted, then we apply cell padding to a cell itself */
|
1007
|
+
|
1008
|
+
[data-font-size='large'] [role='cell'][data-editable]:not([data-highlighted='true']) {
|
1009
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_10px)];
|
1010
|
+
}
|
1011
|
+
|
1012
|
+
/* When cell is editable and highlighted, the padding should apply to highlight wrapper,
|
1013
|
+
because it should take all the available space in the cell */
|
1014
|
+
|
1015
|
+
[data-font-size='large'] [role='cell'][data-editable][data-highlighted='true'] [data-taco='highlight'] {
|
1016
|
+
@apply px-[calc(var(--table3-cell-padding-x)_-_10px)];
|
1017
|
+
}
|
939
1018
|
|
940
1019
|
[data-font-size='large'] [role='cell'][data-editable] [data-taco='checkbox'],
|
941
1020
|
[data-font-size='large'] [role='cell'][data-editable] [data-taco='checkbox-container'],
|