@activecollab/components 1.0.350 → 1.0.351
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/cjs/components/Accordion/Styles.js +4 -4
- package/dist/cjs/components/Bubble/Styles.js +8 -7
- package/dist/cjs/components/Bubble/Styles.js.map +1 -1
- package/dist/cjs/components/ButtonGroup/Styles.js +2 -2
- package/dist/cjs/components/Choose/Styles.js +9 -9
- package/dist/cjs/components/CompleteCheckbox/Styles.js +8 -8
- package/dist/cjs/components/DatePicker/Styles.js +2 -2
- package/dist/cjs/components/EditableContent/Styles.js +12 -15
- package/dist/cjs/components/EditableContent/Styles.js.map +1 -1
- package/dist/cjs/components/Expanders/Styles.js +2 -2
- package/dist/cjs/components/Links/Styles.js +19 -19
- package/dist/cjs/components/Menu/Styles.js +3 -3
- package/dist/cjs/components/MenuSelector/Styles.js +7 -7
- package/dist/cjs/components/Nav/Styles.js +8 -8
- package/dist/cjs/components/Pickers/Styles.js +6 -6
- package/dist/cjs/components/ScrollShadow/Styles.js +4 -4
- package/dist/cjs/components/SelectDate/Styles.js +2 -2
- package/dist/cjs/components/Sheet/Styles.js +2 -2
- package/dist/cjs/components/Signifier/Styles.js +2 -2
- package/dist/cjs/components/Steppers/DateStepper/Styles.js +26 -26
- package/dist/cjs/components/Tables/Styles.js +20 -19
- package/dist/cjs/components/Tables/Styles.js.map +1 -1
- package/dist/esm/components/Accordion/Styles.js +4 -4
- package/dist/esm/components/Bubble/Styles.js +8 -7
- package/dist/esm/components/Bubble/Styles.js.map +1 -1
- package/dist/esm/components/ButtonGroup/Styles.js +2 -2
- package/dist/esm/components/Choose/Styles.js +9 -9
- package/dist/esm/components/CompleteCheckbox/Styles.js +8 -8
- package/dist/esm/components/DatePicker/Styles.js +2 -2
- package/dist/esm/components/EditableContent/Styles.js +12 -15
- package/dist/esm/components/EditableContent/Styles.js.map +1 -1
- package/dist/esm/components/Expanders/Styles.js +2 -2
- package/dist/esm/components/Links/Styles.js +19 -19
- package/dist/esm/components/Menu/Styles.js +3 -3
- package/dist/esm/components/MenuSelector/Styles.js +7 -7
- package/dist/esm/components/Nav/Styles.js +8 -8
- package/dist/esm/components/Pickers/Styles.js +6 -6
- package/dist/esm/components/ScrollShadow/Styles.js +4 -4
- package/dist/esm/components/SelectDate/Styles.js +2 -2
- package/dist/esm/components/Sheet/Styles.js +2 -2
- package/dist/esm/components/Signifier/Styles.js +2 -2
- package/dist/esm/components/Steppers/DateStepper/Styles.js +26 -26
- package/dist/esm/components/Tables/Styles.js +20 -19
- package/dist/esm/components/Tables/Styles.js.map +1 -1
- package/dist/index.js +146 -147
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -24,8 +24,8 @@ export var StyledSheetWrapper = styled.div.withConfig({
|
|
|
24
24
|
});
|
|
25
25
|
}, function (props) {
|
|
26
26
|
return props.$position === "right" && css(["", ""], {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"marginLeft": "auto",
|
|
28
|
+
"marginRight": "0.5rem"
|
|
29
29
|
});
|
|
30
30
|
}, function (props) {
|
|
31
31
|
return props.$mode === "stretch" && props.$position !== "left" && css(["", "{span{right:48px;}}"], StyledSheetIcons);
|
|
@@ -24,9 +24,9 @@ export var StyledIcon = styled.svg.withConfig({
|
|
|
24
24
|
displayName: "Styles__StyledIcon",
|
|
25
25
|
componentId: "sc-1idn4je-2"
|
|
26
26
|
})(["", ""], {
|
|
27
|
+
"marginRight": "0.25rem",
|
|
27
28
|
"fontSize": "0.75rem",
|
|
28
|
-
"lineHeight": "1rem"
|
|
29
|
-
"marginRight": "0.25rem"
|
|
29
|
+
"lineHeight": "1rem"
|
|
30
30
|
});
|
|
31
31
|
StyledIcon.displayName = "StyledIcon";
|
|
32
32
|
//# sourceMappingURL=Styles.js.map
|
|
@@ -10,29 +10,29 @@ export var StyledButton = styled.button.withConfig({
|
|
|
10
10
|
componentId: "sc-1v8h7mt-0"
|
|
11
11
|
})(["", " ", " ", " color:var(--color-theme-700);margin:0;padding:0;background:none;width:100%;height:auto;border:none;height:30px;line-height:1;transition:all 0.3s ease;svg{fill:currentColor;}&::-moz-focus-inner{border:0;}&:focus{outline:none;}&:hover{text-decoration:none;}&:disabled{cursor:default;opacity:50%;pointer-events:none;}"], FontStyle, BoxSizingStyle, {
|
|
12
12
|
"position": "relative",
|
|
13
|
-
"WebkitFontSmoothing": "antialiased",
|
|
14
|
-
"MozOsxFontSmoothing": "grayscale",
|
|
15
|
-
"verticalAlign": "middle",
|
|
16
|
-
"fontWeight": "500",
|
|
17
|
-
"display": "inline-block",
|
|
18
|
-
"lineHeight": "1.25rem",
|
|
19
13
|
"margin": "0px",
|
|
20
|
-
"
|
|
21
|
-
"fontSize": "0.875rem",
|
|
22
|
-
"userSelect": "none",
|
|
14
|
+
"display": "inline-block",
|
|
23
15
|
"cursor": "pointer",
|
|
24
|
-
"
|
|
16
|
+
"userSelect": "none",
|
|
17
|
+
"textAlign": "center",
|
|
18
|
+
"verticalAlign": "middle",
|
|
19
|
+
"fontSize": "0.875rem",
|
|
20
|
+
"lineHeight": "1",
|
|
21
|
+
"fontWeight": "500",
|
|
22
|
+
"textDecorationLine": "none",
|
|
23
|
+
"WebkitFontSmoothing": "antialiased",
|
|
24
|
+
"MozOsxFontSmoothing": "grayscale"
|
|
25
25
|
});
|
|
26
26
|
export var StyledMenu = styled(Menu).withConfig({
|
|
27
27
|
displayName: "Styles__StyledMenu",
|
|
28
28
|
componentId: "sc-1v8h7mt-1"
|
|
29
29
|
})(["", ""], {
|
|
30
|
-
"width": "auto",
|
|
31
30
|
"height": "auto",
|
|
32
|
-
"
|
|
33
|
-
"paddingBottom": "1rem",
|
|
31
|
+
"width": "auto",
|
|
34
32
|
"paddingLeft": "0.5rem",
|
|
35
|
-
"paddingRight": "0.5rem"
|
|
33
|
+
"paddingRight": "0.5rem",
|
|
34
|
+
"paddingTop": "1rem",
|
|
35
|
+
"paddingBottom": "1rem"
|
|
36
36
|
});
|
|
37
37
|
export var StyledButtonGroup = styled(ButtonGroup).withConfig({
|
|
38
38
|
displayName: "Styles__StyledButtonGroup",
|
|
@@ -53,21 +53,21 @@ export var StyledDiv = styled.div.withConfig({
|
|
|
53
53
|
return props.$isRounded && css(["border-radius:var(--ac-br-rounded);"]);
|
|
54
54
|
}, {
|
|
55
55
|
"position": "relative",
|
|
56
|
-
"textAlign": "center",
|
|
57
|
-
"padding": "0px",
|
|
58
|
-
"WebkitFontSmoothing": "antialiased",
|
|
59
|
-
"MozOsxFontSmoothing": "grayscale",
|
|
60
|
-
"verticalAlign": "middle",
|
|
61
|
-
"fontWeight": "500",
|
|
62
|
-
"display": "inline-block",
|
|
63
|
-
"lineHeight": "1.25rem",
|
|
64
56
|
"margin": "0px",
|
|
65
|
-
"
|
|
66
|
-
"fontSize": "0.875rem",
|
|
67
|
-
"userSelect": "none",
|
|
57
|
+
"display": "inline-block",
|
|
68
58
|
"cursor": "pointer",
|
|
59
|
+
"userSelect": "none",
|
|
69
60
|
"borderWidth": "1px",
|
|
70
|
-
"borderStyle": "solid"
|
|
61
|
+
"borderStyle": "solid",
|
|
62
|
+
"padding": "0px",
|
|
63
|
+
"textAlign": "center",
|
|
64
|
+
"verticalAlign": "middle",
|
|
65
|
+
"fontSize": "0.875rem",
|
|
66
|
+
"lineHeight": "1",
|
|
67
|
+
"fontWeight": "500",
|
|
68
|
+
"textDecorationLine": "none",
|
|
69
|
+
"WebkitFontSmoothing": "antialiased",
|
|
70
|
+
"MozOsxFontSmoothing": "grayscale"
|
|
71
71
|
}, screen.md);
|
|
72
72
|
export var StyledControl = styled(IconButton).withConfig({
|
|
73
73
|
displayName: "Styles__StyledControl",
|
|
@@ -8,15 +8,15 @@ export var StyledTableHead = styled.thead.withConfig({
|
|
|
8
8
|
"textAlign": "left",
|
|
9
9
|
"textTransform": "uppercase"
|
|
10
10
|
}, {
|
|
11
|
-
"
|
|
11
|
+
"fontSize": "0.6875rem",
|
|
12
12
|
"fontWeight": "600",
|
|
13
|
-
"
|
|
13
|
+
"color": "var(--color-theme-700)"
|
|
14
14
|
}, function (props) {
|
|
15
15
|
return props.$headerVariant && props.$headerVariant === "primary" && css(["th{", "}tr{td:first-child,th:first-child{", "}}"], {
|
|
16
16
|
"whiteSpace": "nowrap",
|
|
17
|
+
"paddingBottom": "2rem",
|
|
17
18
|
"paddingLeft": "1rem",
|
|
18
19
|
"paddingRight": "1rem",
|
|
19
|
-
"paddingBottom": "2rem",
|
|
20
20
|
"paddingTop": "0.5rem"
|
|
21
21
|
}, {
|
|
22
22
|
"paddingLeft": "1.5rem"
|
|
@@ -41,29 +41,30 @@ export var StyledTableBody = styled.tbody.withConfig({
|
|
|
41
41
|
}, {
|
|
42
42
|
"color": "var(--color-theme-700)"
|
|
43
43
|
}, {
|
|
44
|
-
"
|
|
45
|
-
"
|
|
44
|
+
"color": "var(--color-primary)",
|
|
45
|
+
"textDecorationLine": "none"
|
|
46
46
|
}, {
|
|
47
|
-
"
|
|
47
|
+
"textDecorationLine": "underline"
|
|
48
48
|
});
|
|
49
49
|
StyledTableBody.displayName = "StyledTableBody";
|
|
50
50
|
export var StyledTableWrapper = styled.div.withConfig({
|
|
51
51
|
displayName: "Styles__StyledTableWrapper",
|
|
52
52
|
componentId: "sc-e16t6w-2"
|
|
53
53
|
})(["", " ", " ", " &:before{", " content:\"\";top:39px;z-index:-1;}"], FontStyle, BoxSizingStyle, {
|
|
54
|
-
"marginTop": "2rem",
|
|
55
54
|
"marginLeft": "1rem",
|
|
56
55
|
"marginRight": "1rem",
|
|
56
|
+
"marginTop": "2rem",
|
|
57
57
|
"overflowX": "auto",
|
|
58
58
|
"overflowY": "hidden"
|
|
59
59
|
}, {
|
|
60
60
|
"position": "absolute",
|
|
61
|
+
"bottom": "0px",
|
|
61
62
|
"left": "0px",
|
|
62
63
|
"right": "0px",
|
|
63
|
-
"bottom": "0px",
|
|
64
|
-
"backgroundColor": "var(--page-paper-main)",
|
|
65
64
|
"borderRadius": "0.5rem",
|
|
66
|
-
"
|
|
65
|
+
"backgroundColor": "var(--page-paper-main)",
|
|
66
|
+
"--tw-shadow": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
67
|
+
"--tw-shadow-colored": "0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",
|
|
67
68
|
"boxShadow": "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"
|
|
68
69
|
});
|
|
69
70
|
StyledTableWrapper.displayName = "StyledTableWrapper";
|
|
@@ -73,16 +74,16 @@ export var StyledTable = styled.table.withConfig({
|
|
|
73
74
|
})(["", " border-spacing:0;", " tr th,", " tr td{&:last-child{", "}}td{", "}", ""], {
|
|
74
75
|
"width": "100%",
|
|
75
76
|
"padding": "0px",
|
|
77
|
+
"paddingBottom": "1rem",
|
|
76
78
|
"fontSize": "0.75rem",
|
|
77
|
-
"lineHeight": "1rem"
|
|
78
|
-
"paddingBottom": "1rem"
|
|
79
|
+
"lineHeight": "1rem"
|
|
79
80
|
}, StyledTableHead, StyledTableBody, {
|
|
80
81
|
"textAlign": "right"
|
|
81
82
|
}, {
|
|
82
|
-
"paddingTop": "0.75rem",
|
|
83
|
-
"paddingBottom": "0.75rem",
|
|
84
83
|
"paddingLeft": "1rem",
|
|
85
|
-
"paddingRight": "1rem"
|
|
84
|
+
"paddingRight": "1rem",
|
|
85
|
+
"paddingTop": "0.75rem",
|
|
86
|
+
"paddingBottom": "0.75rem"
|
|
86
87
|
}, function (props) {
|
|
87
88
|
return props.$striped && css(["", ":not(.c-table__grouped__head){tr:nth-child(odd){", "}}"], StyledTableBody, {
|
|
88
89
|
"backgroundColor": "var(--color-theme-200)"
|
|
@@ -103,17 +104,17 @@ export var StyledDataTable = styled.div.withConfig({
|
|
|
103
104
|
}, {
|
|
104
105
|
"opacity": "0.5"
|
|
105
106
|
}, {
|
|
107
|
+
"pointerEvents": "none",
|
|
106
108
|
"position": "absolute",
|
|
107
|
-
"width": "100%",
|
|
108
109
|
"left": "0px",
|
|
109
|
-
"
|
|
110
|
+
"width": "100%"
|
|
110
111
|
}, {
|
|
111
112
|
"display": "inline-block",
|
|
112
113
|
"userSelect": "none"
|
|
113
114
|
}, {
|
|
114
115
|
"borderWidth": "0px",
|
|
115
|
-
"
|
|
116
|
-
"
|
|
116
|
+
"borderStyle": "solid",
|
|
117
|
+
"borderColor": "transparent"
|
|
117
118
|
}, {
|
|
118
119
|
"marginLeft": "0.25rem"
|
|
119
120
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","FontStyle","StyledTableHead","thead","props","$headerVariant","displayName","StyledTableBody","tbody","StyledTableWrapper","div","StyledTable","table","$striped","StyledDataTable"],"sources":["../../../../src/components/Tables/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\nimport tw from \"twin.macro\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\nexport const StyledTableHead = styled.thead<{\n $headerVariant: \"primary\" | \"secondary\";\n}>`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-text-left tw-uppercase`}\n ${tw`tw-text-theme-700 tw-font-semibold tw-text-xxs`}\n\n ${(props) =>\n props.$headerVariant &&\n props.$headerVariant === \"primary\" &&\n css`\n th {\n ${tw`tw-whitespace-nowrap tw-pl-4 tw-pr-4 tw-pb-8 tw-pt-2`}\n }\n\n tr {\n td:first-child,\n th:first-child {\n ${tw`tw-pl-6`}\n }\n }\n `}\n\n ${(props) =>\n props.$headerVariant &&\n props.$headerVariant === \"secondary\" &&\n css`\n th {\n ${tw`tw-whitespace-nowrap`}\n }\n\n tr {\n th {\n padding-bottom: 8px;\n padding-left: 16px;\n }\n }\n\n tr {\n th:last-child {\n padding-right: 16px;\n }\n }\n `}\n`;\nStyledTableHead.displayName = \"StyledTableHead\";\n\nexport const StyledTableBody = styled.tbody`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-truncate`}\n\n td {\n ${tw`tw-truncate`}\n }\n\n &:not(.c-table__grouped__head) {\n td {\n ${tw`tw-text-theme-700`}\n }\n }\n\n a {\n ${tw`tw-no-underline tw-text-primary`}\n &:hover {\n ${tw`tw-underline`}\n }\n }\n`;\nStyledTableBody.displayName = \"StyledTableBody\";\n\nexport const StyledTableWrapper = styled.div`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-mt-8 tw-mx-4 tw-overflow-x-auto tw-overflow-y-hidden`}\n\n &:before {\n ${tw`tw-absolute tw-left-0 tw-right-0 tw-bottom-0 tw-bg-page-paper-main tw-rounded-lg tw-shadow-lg`}\n content: \"\";\n top: 39px;\n z-index: -1;\n }\n`;\nStyledTableWrapper.displayName = \"StyledTableWrapper\";\n\nexport const StyledTable = styled.table<{\n $striped: boolean;\n}>`\n ${tw`tw-w-full tw-p-0 tw-text-xs tw-pb-4`}\n border-spacing: 0;\n\n ${StyledTableHead} tr th,\n ${StyledTableBody} tr td {\n &:last-child {\n ${tw`tw-text-right`}\n }\n }\n\n td {\n ${tw`tw-py-3 tw-px-4`}\n }\n\n ${(props) =>\n props.$striped &&\n css`\n ${StyledTableBody}:not(.c-table__grouped__head) {\n tr:nth-child(odd) {\n ${tw`tw-bg-theme-200`}\n }\n }\n `}\n`;\nStyledTable.displayName = \"StyledTable\";\n\nexport const StyledDataTable = styled.div`\n ${FontStyle}\n ${BoxSizingStyle}\n\n &.c-table__collapsible {\n .c-table__head {\n tr {\n th {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n }\n }\n }\n &.c-table__grouped {\n .c-table__head th {\n ${tw`tw-pb-4`}\n &:last-child {\n ${tw`tw-pr-0`}\n }\n }\n }\n &.c-data-table {\n position: relative;\n .c-table__head th {\n &:last-child {\n ${tw`tw-pr-0`}\n }\n }\n }\n .c-table__cell {\n ${tw`tw-relative`}\n &:hover {\n .c-table__icon {\n ${tw`tw-opacity-50`}\n }\n }\n }\n .c-table__overlay {\n ${tw`tw-absolute tw-w-full tw-left-0 tw-pointer-events-none`}\n top: 0px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n background: rgba(0, 0, 0, 0.02);\n .neon & {\n background: rgba(0, 0, 0, 0.1);\n }\n z-index: 5;\n }\n .c-table__icon-wrapper {\n ${tw`tw-inline-block tw-select-none`}\n }\n .c-table__label {\n ${tw`tw-border-0 tw-border-0 tw-border-transparent tw-border-solid`}\n }\n .c-table__icon {\n transform: translateY(1px);\n ${tw`tw-ml-1`}\n fill: var(--color-theme-900);\n\n &:hover {\n ${tw`tw-opacity-100`}\n }\n }\n .c-table__icon--inactive {\n ${tw`tw-opacity-0`}\n }\n .c-table__icon--active {\n ${tw`tw-opacity-100`}\n }\n .c-table__icon--desc {\n transform: rotate(-180deg) scale(-1, 1);\n }\n .c-table__grouped__head {\n ${tw`tw-font-bold`}\n > :first-child {\n ${tw`tw-text-theme-900`}\n }\n a:first-child {\n ${tw`tw-text-primary`}\n }\n }\n .c-table__head--hidden {\n ${tw`tw-pointer-events-none tw-opacity-0`}\n }\n .c-table__collapse_icon--expanded {\n transition-duration: 0.3s;\n ${tw`tw-cursor-pointer`}\n }\n .c-table__collapse_icon--collapsed {\n transform: rotate(180deg);\n transition-duration: 0.3s;\n ${tw`tw-cursor-pointer`}\n }\n .c-table__head__icon-wrapper__icon {\n ${tw`tw-absolute tw-cursor-pointer`}\n transform: translate(-24px, -5px);\n }\n &.c-table__collapsible {\n .c-table__group {\n .c-table__row:last-child .c-table__cell {\n border-bottom: 1px solid var(--border-primary);\n }\n &:last-child {\n .c-table__row:last-child .c-table__cell {\n border-bottom: 0;\n }\n }\n }\n .c-table__grouped__head {\n tr td {\n border-bottom: 1px solid var(--border-primary);\n }\n .c-table__body__collapse td {\n border-bottom: 0;\n }\n &.last {\n tr td {\n border-bottom: 0 !important;\n }\n }\n }\n .c-table__grouped__head--expanded {\n tr:last-child td {\n border-bottom: 0;\n }\n }\n }\n .c-table__collapse_body {\n tr {\n background-color: transparent !important;\n }\n td:last-child {\n ${tw`tw-border-0`}\n }\n ${tw`tw-absolute`}\n }\n .c-table__row {\n td:first-child {\n position: sticky;\n left: 0;\n z-index: 1;\n }\n &:nth-child(odd) {\n td {\n ${tw`tw-bg-theme-200`}\n }\n }\n &:nth-child(even) {\n td {\n ${tw`tw-bg-page-paper-main`}\n }\n }\n }\n .c-table__row {\n th:first-child {\n position: sticky;\n left: 0;\n z-index: 2 !important;\n }\n }\n &.c-table__collapsible .c-table__body {\n tr {\n td:first-child,\n th:first-child {\n ${tw`tw-pl-6`}\n }\n }\n }\n .c-table__body__icon {\n ${tw`tw-p-0`}\n padding-left: 0 !important;\n transform: translateY(8px);\n }\n &.padding-b-0 {\n ${tw`tw-pb-0`}\n }\n .cursor-pointer {\n ${tw`tw-cursor-pointer`}\n }\n .text-center {\n ${tw`tw-text-center`}\n }\n .opacity-75 {\n ${tw`tw-opacity-75`}\n }\n .hidden {\n ${tw`tw-hidden`}\n }\n`;\nStyledDataTable.displayName = \"StyledDataTable\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,SAAS,QAAQ,cAAc;AAExC,OAAO,IAAMC,eAAe,GAAGJ,MAAM,CAACK,KAAK;EAAA;EAAA;AAAA,sCAGvCF,SAAS,EACTD,cAAc,EAEZ;EAAA;EAAA;AAA0B,CAAC,EAC3B;EAAA;EAAA;EAAA;AAA+C,CAAC,EAElD,UAACI,KAAK;EAAA,OACNA,KAAK,CAACC,cAAc,IACpBD,KAAK,CAACC,cAAc,KAAK,SAAS,IAClCN,GAAG,sDAEK;IAAA;IAAA;IAAA;IAAA;IAAA;EAAqD,CAAC,EAMpD;IAAA;EAAQ,CAAC,CAGlB;AAAA,GAEC,UAACK,KAAK;EA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A;AAAQ,CAAC,EAQT;EAAA;AAAQ,CAAC,EAKb;EAAA;AAAY,CAAC,EAGT;EAAA;AAAc,CAAC,EAKnB;EAAA;EAAA;EAAA;EAAA;AAAuD,CAAC,EAWxD;EAAA;EAAA;AAA+B,CAAC,EAGhC;EAAA;EAAA;EAAA;AAA8D,CAAC,EAI/D;EAAA;AAAQ,CAAC,EAIP;EAAA;AAAe,CAAC,EAIlB;EAAA;AAAa,CAAC,EAGd;EAAA;AAAe,CAAC,EAMhB;EAAA;AAAa,CAAC,EAEZ;EAAA;AAAkB,CAAC,EAGnB;EAAA;AAAgB,CAAC,EAInB;EAAA;EAAA;AAAoC,CAAC,EAIrC;EAAA;AAAkB,CAAC,EAKnB;EAAA;AAAkB,CAAC,EAGnB;EAAA;EAAA;AAA8B,CAAC,EAsC7B;EAAA;AAAY,CAAC,EAEf;EAAA;AAAY,CAAC,EAUT;EAAA;AAAgB,CAAC,EAKjB;EAAA;AAAsB,CAAC,EAevB;EAAA;AAAQ,CAAC,EAKb;EAAA;AAAO,CAAC,EAKR;EAAA;AAAQ,CAAC,EAGT;EAAA;AAAkB,CAAC,EAGnB;EAAA;AAAe,CAAC,EAGhB;EAAA;AAAc,CAAC,EAGf;EAAA;AAAU,CAAC,CAElB;AACDc,eAAe,CAACR,WAAW,GAAG,iBAAiB"}
|
|
1
|
+
{"version":3,"file":"Styles.js","names":["styled","css","BoxSizingStyle","FontStyle","StyledTableHead","thead","props","$headerVariant","displayName","StyledTableBody","tbody","StyledTableWrapper","div","StyledTable","table","$striped","StyledDataTable"],"sources":["../../../../src/components/Tables/Styles.ts"],"sourcesContent":["import styled, { css } from \"styled-components\";\nimport tw from \"twin.macro\";\nimport { BoxSizingStyle } from \"../BoxSizingStyle\";\nimport { FontStyle } from \"../FontStyle\";\n\nexport const StyledTableHead = styled.thead<{\n $headerVariant: \"primary\" | \"secondary\";\n}>`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-text-left tw-uppercase`}\n ${tw`tw-text-theme-700 tw-font-semibold tw-text-xxs`}\n\n ${(props) =>\n props.$headerVariant &&\n props.$headerVariant === \"primary\" &&\n css`\n th {\n ${tw`tw-whitespace-nowrap tw-pl-4 tw-pr-4 tw-pb-8 tw-pt-2`}\n }\n\n tr {\n td:first-child,\n th:first-child {\n ${tw`tw-pl-6`}\n }\n }\n `}\n\n ${(props) =>\n props.$headerVariant &&\n props.$headerVariant === \"secondary\" &&\n css`\n th {\n ${tw`tw-whitespace-nowrap`}\n }\n\n tr {\n th {\n padding-bottom: 8px;\n padding-left: 16px;\n }\n }\n\n tr {\n th:last-child {\n padding-right: 16px;\n }\n }\n `}\n`;\nStyledTableHead.displayName = \"StyledTableHead\";\n\nexport const StyledTableBody = styled.tbody`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-truncate`}\n\n td {\n ${tw`tw-truncate`}\n }\n\n &:not(.c-table__grouped__head) {\n td {\n ${tw`tw-text-theme-700`}\n }\n }\n\n a {\n ${tw`tw-no-underline tw-text-primary`}\n &:hover {\n ${tw`tw-underline`}\n }\n }\n`;\nStyledTableBody.displayName = \"StyledTableBody\";\n\nexport const StyledTableWrapper = styled.div`\n ${FontStyle}\n ${BoxSizingStyle}\n\n ${tw`tw-mt-8 tw-mx-4 tw-overflow-x-auto tw-overflow-y-hidden`}\n\n &:before {\n ${tw`tw-absolute tw-left-0 tw-right-0 tw-bottom-0 tw-bg-page-paper-main tw-rounded-lg tw-shadow-lg`}\n content: \"\";\n top: 39px;\n z-index: -1;\n }\n`;\nStyledTableWrapper.displayName = \"StyledTableWrapper\";\n\nexport const StyledTable = styled.table<{\n $striped: boolean;\n}>`\n ${tw`tw-w-full tw-p-0 tw-text-xs tw-pb-4`}\n border-spacing: 0;\n\n ${StyledTableHead} tr th,\n ${StyledTableBody} tr td {\n &:last-child {\n ${tw`tw-text-right`}\n }\n }\n\n td {\n ${tw`tw-py-3 tw-px-4`}\n }\n\n ${(props) =>\n props.$striped &&\n css`\n ${StyledTableBody}:not(.c-table__grouped__head) {\n tr:nth-child(odd) {\n ${tw`tw-bg-theme-200`}\n }\n }\n `}\n`;\nStyledTable.displayName = \"StyledTable\";\n\nexport const StyledDataTable = styled.div`\n ${FontStyle}\n ${BoxSizingStyle}\n\n &.c-table__collapsible {\n .c-table__head {\n tr {\n th {\n position: sticky;\n top: 0;\n z-index: 1;\n }\n }\n }\n }\n &.c-table__grouped {\n .c-table__head th {\n ${tw`tw-pb-4`}\n &:last-child {\n ${tw`tw-pr-0`}\n }\n }\n }\n &.c-data-table {\n position: relative;\n .c-table__head th {\n &:last-child {\n ${tw`tw-pr-0`}\n }\n }\n }\n .c-table__cell {\n ${tw`tw-relative`}\n &:hover {\n .c-table__icon {\n ${tw`tw-opacity-50`}\n }\n }\n }\n .c-table__overlay {\n ${tw`tw-absolute tw-w-full tw-left-0 tw-pointer-events-none`}\n top: 0px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n background: rgba(0, 0, 0, 0.02);\n .neon & {\n background: rgba(0, 0, 0, 0.1);\n }\n z-index: 5;\n }\n .c-table__icon-wrapper {\n ${tw`tw-inline-block tw-select-none`}\n }\n .c-table__label {\n ${tw`tw-border-0 tw-border-0 tw-border-transparent tw-border-solid`}\n }\n .c-table__icon {\n transform: translateY(1px);\n ${tw`tw-ml-1`}\n fill: var(--color-theme-900);\n\n &:hover {\n ${tw`tw-opacity-100`}\n }\n }\n .c-table__icon--inactive {\n ${tw`tw-opacity-0`}\n }\n .c-table__icon--active {\n ${tw`tw-opacity-100`}\n }\n .c-table__icon--desc {\n transform: rotate(-180deg) scale(-1, 1);\n }\n .c-table__grouped__head {\n ${tw`tw-font-bold`}\n > :first-child {\n ${tw`tw-text-theme-900`}\n }\n a:first-child {\n ${tw`tw-text-primary`}\n }\n }\n .c-table__head--hidden {\n ${tw`tw-pointer-events-none tw-opacity-0`}\n }\n .c-table__collapse_icon--expanded {\n transition-duration: 0.3s;\n ${tw`tw-cursor-pointer`}\n }\n .c-table__collapse_icon--collapsed {\n transform: rotate(180deg);\n transition-duration: 0.3s;\n ${tw`tw-cursor-pointer`}\n }\n .c-table__head__icon-wrapper__icon {\n ${tw`tw-absolute tw-cursor-pointer`}\n transform: translate(-24px, -5px);\n }\n &.c-table__collapsible {\n .c-table__group {\n .c-table__row:last-child .c-table__cell {\n border-bottom: 1px solid var(--border-primary);\n }\n &:last-child {\n .c-table__row:last-child .c-table__cell {\n border-bottom: 0;\n }\n }\n }\n .c-table__grouped__head {\n tr td {\n border-bottom: 1px solid var(--border-primary);\n }\n .c-table__body__collapse td {\n border-bottom: 0;\n }\n &.last {\n tr td {\n border-bottom: 0 !important;\n }\n }\n }\n .c-table__grouped__head--expanded {\n tr:last-child td {\n border-bottom: 0;\n }\n }\n }\n .c-table__collapse_body {\n tr {\n background-color: transparent !important;\n }\n td:last-child {\n ${tw`tw-border-0`}\n }\n ${tw`tw-absolute`}\n }\n .c-table__row {\n td:first-child {\n position: sticky;\n left: 0;\n z-index: 1;\n }\n &:nth-child(odd) {\n td {\n ${tw`tw-bg-theme-200`}\n }\n }\n &:nth-child(even) {\n td {\n ${tw`tw-bg-page-paper-main`}\n }\n }\n }\n .c-table__row {\n th:first-child {\n position: sticky;\n left: 0;\n z-index: 2 !important;\n }\n }\n &.c-table__collapsible .c-table__body {\n tr {\n td:first-child,\n th:first-child {\n ${tw`tw-pl-6`}\n }\n }\n }\n .c-table__body__icon {\n ${tw`tw-p-0`}\n padding-left: 0 !important;\n transform: translateY(8px);\n }\n &.padding-b-0 {\n ${tw`tw-pb-0`}\n }\n .cursor-pointer {\n ${tw`tw-cursor-pointer`}\n }\n .text-center {\n ${tw`tw-text-center`}\n }\n .opacity-75 {\n ${tw`tw-opacity-75`}\n }\n .hidden {\n ${tw`tw-hidden`}\n }\n`;\nStyledDataTable.displayName = \"StyledDataTable\";\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SAASC,cAAc,QAAQ,mBAAmB;AACl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