@trackunit/css-core 1.12.12 → 1.12.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/lib/core.css +126 -120
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/css-core",
3
- "version": "1.12.12",
3
+ "version": "1.12.15",
4
4
  "main": "src/lib/core.css",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
package/src/lib/core.css CHANGED
@@ -4,123 +4,129 @@
4
4
  * ALL @import statements MUST come first, before @plugin or any CSS rules
5
5
  */
6
6
 
7
- @import "tailwindcss";
8
- @import "./generated/tailwind-theme.generated.css";
9
- @import "./generated/tailwind-utilities.generated.css";
10
- @import "./generated/component-tokens.generated.css";
11
- @import "react-image-gallery/styles/css/image-gallery.css";
12
- @import "./theme/custom-properties.css";
13
- @import "./react-calendar.css";
14
- @import "./fonts.css";
15
-
16
- /* Load Tailwind plugins AFTER all imports */
17
- @plugin "@tailwindcss/typography";
18
-
19
- /* This loads all trackunit source files for tailwind to watch for changes */
20
- @source "../../../**/*.{ts,tsx,js,jsx,css}";
21
-
22
- /* Override to fix type="button" in safari */
23
- [type="button"] {
24
- -webkit-appearance: none;
25
- -moz-appearance: none;
26
- appearance: none;
27
- }
28
-
29
- /* Hide scrollbar for Chrome, Safari and Opera */
30
- .no-scrollbar::-webkit-scrollbar {
31
- display: none;
32
- }
33
-
34
- /* Hide scrollbar for IE, Edge and Firefox */
35
- .no-scrollbar {
36
- -ms-overflow-style: none; /* IE and Edge */
37
- scrollbar-width: none; /* Firefox */
38
- }
39
-
40
- input[type="date"]::-webkit-datetime-edit-month-field:focus {
41
- color: var(--color-primary-600);
42
- }
43
-
44
- input[type="date"]::-webkit-datetime-edit-day-field:focus {
45
- color: var(--color-primary-600);
46
- }
47
- input[type="date"]::-webkit-datetime-edit-year-field:focus {
48
- color: var(--color-primary-600);
49
- }
50
-
51
- h1,
52
- h2,
53
- h3,
54
- h4 {
55
- text-wrap: balance;
56
- }
57
-
58
- input[type="color"] {
59
- -webkit-appearance: none;
60
- -moz-appearance: none;
61
- appearance: none;
62
- border: none;
63
- padding: 0;
64
- }
65
-
66
- input[type="color"]::-webkit-color-swatch-wrapper {
67
- padding: 0;
68
- }
69
-
70
- input[type="color"]::-webkit-color-swatch {
71
- border: none;
72
- }
73
-
74
- input[type="color"]::-moz-color-swatch {
75
- border: none;
76
- }
77
-
78
- tr > th[data-pinned="left"]:not(:has(+ th[data-pinned="left"])) {
79
- border-right-width: 2px;
80
- }
81
- tr > td[data-pinned="left"]:not(:has(+ td[data-pinned="left"])) {
82
- border-right-width: 2px;
83
- }
84
-
85
- tr > th[data-pinned=""] + th[data-pinned="right"] {
86
- border-left-width: 2px;
87
- }
88
- tr > td[data-pinned=""] + td[data-pinned="right"] {
89
- border-left-width: 2px;
90
- }
91
-
92
- /* Row focus (body rows only) */
93
- .row-focus:has(:focus-visible):not(:has([data-selection-cell] :focus-visible)) {
94
- box-shadow: inset 0 0 0 2px var(--color-primary-600);
95
- outline: none !important;
96
- }
97
-
98
- /* LEFT pinned — first cell in the block: left + top + bottom */
99
- .row-focus:has(:focus-visible) > td[data-pinned="left"] {
100
- box-shadow:
101
- inset 2px 0 0 var(--color-primary-600),
102
- inset 0 2px 0 var(--color-primary-600),
103
- inset 0 -2px 0 var(--color-primary-600);
104
- }
105
-
106
- /* LEFT pinned all following cells in the block: only top + bottom (no inner vertical line) */
107
- .row-focus:has(:focus-visible) > td[data-pinned="left"] + td[data-pinned="left"] {
108
- box-shadow:
109
- inset 0 2px 0 var(--color-primary-600),
110
- inset 0 -2px 0 var(--color-primary-600);
111
- }
112
-
113
- /* RIGHT pinned — last cell in the block: right + top + bottom */
114
- .row-focus:has(:focus-visible) > td[data-pinned="right"] {
115
- box-shadow:
116
- inset -2px 0 0 var(--color-primary-600),
117
- inset 0 2px 0 var(--color-primary-600),
118
- inset 0 -2px 0 var(--color-primary-600);
119
- }
120
-
121
- /* RIGHT pinned all cells that have another right pinned cell on their right: only top + bottom */
122
- .row-focus:has(:focus-visible) > td[data-pinned="right"]:has(+ td[data-pinned="right"]) {
123
- box-shadow:
124
- inset 0 2px 0 var(--color-primary-600),
125
- inset 0 -2px 0 var(--color-primary-600);
126
- }
7
+ @import "tailwindcss";
8
+ @import "./generated/tailwind-theme.generated.css";
9
+ @import "./generated/tailwind-utilities.generated.css";
10
+ @import "./generated/component-tokens.generated.css";
11
+ @import "react-image-gallery/styles/css/image-gallery.css";
12
+ @import "./theme/custom-properties.css";
13
+ @import "./react-calendar.css";
14
+ @import "./fonts.css";
15
+
16
+ /* Load Tailwind plugins AFTER all imports */
17
+ @plugin "@tailwindcss/typography";
18
+
19
+ /* Support yarn with nodelinker pnpm example: node_modules/.store/@trackunit-css-core-npm-1.12.14-cc5bf62088/node_modules/@trackunit/css-core/src/lib/core.css */
20
+ @source "../../../../../../../@trackunit/**/*.{ts,tsx,js,jsx,css}";
21
+ @source "../../../../../../../../libs/**/*.{ts,tsx,js,jsx,css}";
22
+
23
+ /* Support normal npm install example: node_modules/@trackunit/css-core/src/lib/core.css */
24
+ @source "../../../../@trackunit/**/*.{ts,tsx,js,jsx,css}";
25
+ @source "../../../../../libs/**/*.{ts,tsx,js,jsx,css}";
26
+
27
+ /* Override to fix type="button" in safari */
28
+ [type="button"] {
29
+ -webkit-appearance: none;
30
+ -moz-appearance: none;
31
+ appearance: none;
32
+ }
33
+
34
+ /* Hide scrollbar for Chrome, Safari and Opera */
35
+ .no-scrollbar::-webkit-scrollbar {
36
+ display: none;
37
+ }
38
+
39
+ /* Hide scrollbar for IE, Edge and Firefox */
40
+ .no-scrollbar {
41
+ -ms-overflow-style: none; /* IE and Edge */
42
+ scrollbar-width: none; /* Firefox */
43
+ }
44
+
45
+ input[type="date"]::-webkit-datetime-edit-month-field:focus {
46
+ color: var(--color-primary-600);
47
+ }
48
+
49
+ input[type="date"]::-webkit-datetime-edit-day-field:focus {
50
+ color: var(--color-primary-600);
51
+ }
52
+ input[type="date"]::-webkit-datetime-edit-year-field:focus {
53
+ color: var(--color-primary-600);
54
+ }
55
+
56
+ h1,
57
+ h2,
58
+ h3,
59
+ h4 {
60
+ text-wrap: balance;
61
+ }
62
+
63
+ input[type="color"] {
64
+ -webkit-appearance: none;
65
+ -moz-appearance: none;
66
+ appearance: none;
67
+ border: none;
68
+ padding: 0;
69
+ }
70
+
71
+ input[type="color"]::-webkit-color-swatch-wrapper {
72
+ padding: 0;
73
+ }
74
+
75
+ input[type="color"]::-webkit-color-swatch {
76
+ border: none;
77
+ }
78
+
79
+ input[type="color"]::-moz-color-swatch {
80
+ border: none;
81
+ }
82
+
83
+ tr > th[data-pinned="left"]:not(:has(+ th[data-pinned="left"])) {
84
+ border-right-width: 2px;
85
+ }
86
+ tr > td[data-pinned="left"]:not(:has(+ td[data-pinned="left"])) {
87
+ border-right-width: 2px;
88
+ }
89
+
90
+ tr > th[data-pinned=""] + th[data-pinned="right"] {
91
+ border-left-width: 2px;
92
+ }
93
+ tr > td[data-pinned=""] + td[data-pinned="right"] {
94
+ border-left-width: 2px;
95
+ }
96
+
97
+ /* Row focus (body rows only) */
98
+ .row-focus:has(:focus-visible):not(:has([data-selection-cell] :focus-visible)) {
99
+ box-shadow: inset 0 0 0 2px var(--color-primary-600);
100
+ outline: none !important;
101
+ }
102
+
103
+ /* LEFT pinned — first cell in the block: left + top + bottom */
104
+ .row-focus:has(:focus-visible) > td[data-pinned="left"] {
105
+ box-shadow:
106
+ inset 2px 0 0 var(--color-primary-600),
107
+ inset 0 2px 0 var(--color-primary-600),
108
+ inset 0 -2px 0 var(--color-primary-600);
109
+ }
110
+
111
+ /* LEFT pinned — all following cells in the block: only top + bottom (no inner vertical line) */
112
+ .row-focus:has(:focus-visible) > td[data-pinned="left"] + td[data-pinned="left"] {
113
+ box-shadow:
114
+ inset 0 2px 0 var(--color-primary-600),
115
+ inset 0 -2px 0 var(--color-primary-600);
116
+ }
117
+
118
+ /* RIGHT pinned — last cell in the block: right + top + bottom */
119
+ .row-focus:has(:focus-visible) > td[data-pinned="right"] {
120
+ box-shadow:
121
+ inset -2px 0 0 var(--color-primary-600),
122
+ inset 0 2px 0 var(--color-primary-600),
123
+ inset 0 -2px 0 var(--color-primary-600);
124
+ }
125
+
126
+ /* RIGHT pinned — all cells that have another right pinned cell on their right: only top + bottom */
127
+ .row-focus:has(:focus-visible) > td[data-pinned="right"]:has(+ td[data-pinned="right"]) {
128
+ box-shadow:
129
+ inset 0 2px 0 var(--color-primary-600),
130
+ inset 0 -2px 0 var(--color-primary-600);
131
+ }
132
+