@muxima-ui/core 1.1.0 → 1.3.0

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 (43) hide show
  1. package/README.md +15 -0
  2. package/fesm2022/muxima-ui-core-carousel.mjs +377 -0
  3. package/fesm2022/muxima-ui-core-carousel.mjs.map +1 -0
  4. package/fesm2022/muxima-ui-core-color-picker.mjs +755 -0
  5. package/fesm2022/muxima-ui-core-color-picker.mjs.map +1 -0
  6. package/fesm2022/muxima-ui-core-data-grid.mjs +1187 -0
  7. package/fesm2022/muxima-ui-core-data-grid.mjs.map +1 -0
  8. package/fesm2022/muxima-ui-core-editor.mjs +575 -0
  9. package/fesm2022/muxima-ui-core-editor.mjs.map +1 -0
  10. package/fesm2022/muxima-ui-core-image-cropper.mjs +568 -0
  11. package/fesm2022/muxima-ui-core-image-cropper.mjs.map +1 -0
  12. package/fesm2022/muxima-ui-core-kanban.mjs +369 -0
  13. package/fesm2022/muxima-ui-core-kanban.mjs.map +1 -0
  14. package/fesm2022/muxima-ui-core-notification-center.mjs +487 -0
  15. package/fesm2022/muxima-ui-core-notification-center.mjs.map +1 -0
  16. package/fesm2022/muxima-ui-core-sidebar.mjs +333 -0
  17. package/fesm2022/muxima-ui-core-sidebar.mjs.map +1 -0
  18. package/fesm2022/muxima-ui-core-timeline.mjs +117 -0
  19. package/fesm2022/muxima-ui-core-timeline.mjs.map +1 -0
  20. package/fesm2022/muxima-ui-core.mjs +1 -1
  21. package/fesm2022/muxima-ui-core.mjs.map +1 -1
  22. package/package.json +57 -2
  23. package/styles/base.css +17 -0
  24. package/styles/components/carousel.css +113 -0
  25. package/styles/components/color-picker.css +207 -0
  26. package/styles/components/data-grid.css +235 -0
  27. package/styles/components/editor.css +187 -0
  28. package/styles/components/image-cropper.css +113 -0
  29. package/styles/components/kanban.css +115 -0
  30. package/styles/components/notification-center.css +220 -0
  31. package/styles/components/sidebar.css +211 -0
  32. package/styles/components/timeline.css +180 -0
  33. package/styles/muxima.css +9 -0
  34. package/types/muxima-ui-core-carousel.d.ts +72 -0
  35. package/types/muxima-ui-core-color-picker.d.ts +153 -0
  36. package/types/muxima-ui-core-data-grid.d.ts +175 -0
  37. package/types/muxima-ui-core-editor.d.ts +104 -0
  38. package/types/muxima-ui-core-image-cropper.d.ts +105 -0
  39. package/types/muxima-ui-core-kanban.d.ts +83 -0
  40. package/types/muxima-ui-core-notification-center.d.ts +91 -0
  41. package/types/muxima-ui-core-sidebar.d.ts +115 -0
  42. package/types/muxima-ui-core-timeline.d.ts +59 -0
  43. package/types/muxima-ui-core.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muxima-ui/core",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "Componentes Angular acessíveis e sóbrios para aplicações empresariais.",
5
5
  "keywords": [
6
6
  "angular",
@@ -24,7 +24,26 @@
24
24
  "@angular/cdk": ">=21.0.0 <23.0.0",
25
25
  "@angular/common": ">=21.0.0 <23.0.0",
26
26
  "@angular/core": ">=21.0.0 <23.0.0",
27
- "@angular/forms": ">=21.0.0 <23.0.0"
27
+ "@angular/forms": ">=21.0.0 <23.0.0",
28
+ "@angular/platform-browser": ">=21.0.0 <23.0.0",
29
+ "@tiptap/core": "^3.0.0",
30
+ "@tiptap/pm": "^3.0.0",
31
+ "@tiptap/starter-kit": "^3.0.0",
32
+ "@tiptap/extensions": "^3.0.0"
33
+ },
34
+ "peerDependenciesMeta": {
35
+ "@tiptap/core": {
36
+ "optional": true
37
+ },
38
+ "@tiptap/pm": {
39
+ "optional": true
40
+ },
41
+ "@tiptap/starter-kit": {
42
+ "optional": true
43
+ },
44
+ "@tiptap/extensions": {
45
+ "optional": true
46
+ }
28
47
  },
29
48
  "dependencies": {
30
49
  "tslib": "^2.3.0"
@@ -72,6 +91,10 @@
72
91
  "types": "./types/muxima-ui-core-card.d.ts",
73
92
  "default": "./fesm2022/muxima-ui-core-card.mjs"
74
93
  },
94
+ "./carousel": {
95
+ "types": "./types/muxima-ui-core-carousel.d.ts",
96
+ "default": "./fesm2022/muxima-ui-core-carousel.mjs"
97
+ },
75
98
  "./checkbox": {
76
99
  "types": "./types/muxima-ui-core-checkbox.d.ts",
77
100
  "default": "./fesm2022/muxima-ui-core-checkbox.mjs"
@@ -84,6 +107,10 @@
84
107
  "types": "./types/muxima-ui-core-clipboard.d.ts",
85
108
  "default": "./fesm2022/muxima-ui-core-clipboard.mjs"
86
109
  },
110
+ "./color-picker": {
111
+ "types": "./types/muxima-ui-core-color-picker.d.ts",
112
+ "default": "./fesm2022/muxima-ui-core-color-picker.mjs"
113
+ },
87
114
  "./combobox": {
88
115
  "types": "./types/muxima-ui-core-combobox.d.ts",
89
116
  "default": "./fesm2022/muxima-ui-core-combobox.mjs"
@@ -92,6 +119,10 @@
92
119
  "types": "./types/muxima-ui-core-command.d.ts",
93
120
  "default": "./fesm2022/muxima-ui-core-command.mjs"
94
121
  },
122
+ "./data-grid": {
123
+ "types": "./types/muxima-ui-core-data-grid.d.ts",
124
+ "default": "./fesm2022/muxima-ui-core-data-grid.mjs"
125
+ },
95
126
  "./date-picker": {
96
127
  "types": "./types/muxima-ui-core-date-picker.d.ts",
97
128
  "default": "./fesm2022/muxima-ui-core-date-picker.mjs"
@@ -104,6 +135,10 @@
104
135
  "types": "./types/muxima-ui-core-drawer.d.ts",
105
136
  "default": "./fesm2022/muxima-ui-core-drawer.mjs"
106
137
  },
138
+ "./editor": {
139
+ "types": "./types/muxima-ui-core-editor.d.ts",
140
+ "default": "./fesm2022/muxima-ui-core-editor.mjs"
141
+ },
107
142
  "./file-upload": {
108
143
  "types": "./types/muxima-ui-core-file-upload.d.ts",
109
144
  "default": "./fesm2022/muxima-ui-core-file-upload.mjs"
@@ -112,10 +147,22 @@
112
147
  "types": "./types/muxima-ui-core-form-field.d.ts",
113
148
  "default": "./fesm2022/muxima-ui-core-form-field.mjs"
114
149
  },
150
+ "./image-cropper": {
151
+ "types": "./types/muxima-ui-core-image-cropper.d.ts",
152
+ "default": "./fesm2022/muxima-ui-core-image-cropper.mjs"
153
+ },
154
+ "./kanban": {
155
+ "types": "./types/muxima-ui-core-kanban.d.ts",
156
+ "default": "./fesm2022/muxima-ui-core-kanban.mjs"
157
+ },
115
158
  "./menu": {
116
159
  "types": "./types/muxima-ui-core-menu.d.ts",
117
160
  "default": "./fesm2022/muxima-ui-core-menu.mjs"
118
161
  },
162
+ "./notification-center": {
163
+ "types": "./types/muxima-ui-core-notification-center.d.ts",
164
+ "default": "./fesm2022/muxima-ui-core-notification-center.mjs"
165
+ },
119
166
  "./otp": {
120
167
  "types": "./types/muxima-ui-core-otp.d.ts",
121
168
  "default": "./fesm2022/muxima-ui-core-otp.mjs"
@@ -148,6 +195,10 @@
148
195
  "types": "./types/muxima-ui-core-separator.d.ts",
149
196
  "default": "./fesm2022/muxima-ui-core-separator.mjs"
150
197
  },
198
+ "./sidebar": {
199
+ "types": "./types/muxima-ui-core-sidebar.d.ts",
200
+ "default": "./fesm2022/muxima-ui-core-sidebar.mjs"
201
+ },
151
202
  "./skeleton": {
152
203
  "types": "./types/muxima-ui-core-skeleton.d.ts",
153
204
  "default": "./fesm2022/muxima-ui-core-skeleton.mjs"
@@ -176,6 +227,10 @@
176
227
  "types": "./types/muxima-ui-core-time-picker.d.ts",
177
228
  "default": "./fesm2022/muxima-ui-core-time-picker.mjs"
178
229
  },
230
+ "./timeline": {
231
+ "types": "./types/muxima-ui-core-timeline.d.ts",
232
+ "default": "./fesm2022/muxima-ui-core-timeline.mjs"
233
+ },
179
234
  "./toast": {
180
235
  "types": "./types/muxima-ui-core-toast.d.ts",
181
236
  "default": "./fesm2022/muxima-ui-core-toast.mjs"
package/styles/base.css CHANGED
@@ -109,6 +109,23 @@ button.mx-input-addon:is(:focus-visible, [data-mx-state='focus']),
109
109
  .mx-calendar-day:is(:focus-visible, [data-mx-state='focus']),
110
110
  .mx-date-range-input:focus-visible,
111
111
  .mx-chip-remove:focus-visible,
112
+ .mx-editor-tool:focus-visible,
113
+ .mx-editor-text-button:focus-visible,
114
+ .mx-cropper-button:focus-visible,
115
+ .mx-grid-sort:focus-visible,
116
+ .mx-grid-columns-button:focus-visible,
117
+ .mx-color-swatch:focus-visible,
118
+ .mx-color-tool:focus-visible,
119
+ .mx-color-picker-toggle:focus-visible,
120
+ .mx-carousel-button:focus-visible,
121
+ .mx-carousel-play:focus-visible,
122
+ .mx-carousel-dot:focus-visible,
123
+ .mx-notification-main:focus-visible,
124
+ .mx-notification-action:focus-visible,
125
+ .mx-notification-link:focus-visible,
126
+ .mx-notification-bell:focus-visible,
127
+ .mx-sidebar-item:is(:focus-visible, [data-mx-state='focus']),
128
+ .mx-sidebar-toggle:focus-visible,
112
129
  .mx-copy-button:is(:focus-visible, [data-mx-state='focus']),
113
130
  .mx-file-upload-button:focus-visible,
114
131
  .mx-file-upload-remove:focus-visible,
@@ -0,0 +1,113 @@
1
+ /* ---------- Carousel ---------- */
2
+
3
+ .mx-carousel {
4
+ --mx-carousel-per-view: 1;
5
+ --mx-carousel-gap: 16px;
6
+ position: relative;
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 12px;
10
+ width: 100%;
11
+ font-family: var(--mx-font-sans);
12
+ }
13
+ .mx-carousel-viewport {
14
+ position: relative;
15
+ /* com rato e teclado mudam os botões; em ecrãs tácteis desliza-se */
16
+ overflow-x: hidden;
17
+ overscroll-behavior-x: contain;
18
+ scroll-snap-type: x mandatory;
19
+ scrollbar-width: none;
20
+ border-radius: var(--mx-radius-surface);
21
+ }
22
+ @media (hover: none) {
23
+ .mx-carousel-viewport {
24
+ overflow-x: auto;
25
+ }
26
+ }
27
+ .mx-carousel-viewport::-webkit-scrollbar {
28
+ display: none;
29
+ }
30
+ .mx-carousel-track {
31
+ display: flex;
32
+ gap: var(--mx-carousel-gap);
33
+ }
34
+ .mx-carousel-slide {
35
+ flex: 0 0 calc((100% - (var(--mx-carousel-per-view) - 1) * var(--mx-carousel-gap)) / var(--mx-carousel-per-view));
36
+ min-width: 0;
37
+ scroll-snap-align: start;
38
+ }
39
+ .mx-carousel-nav {
40
+ display: flex;
41
+ align-items: center;
42
+ justify-content: center;
43
+ gap: 12px;
44
+ }
45
+ .mx-carousel-button,
46
+ .mx-carousel-play {
47
+ display: inline-flex;
48
+ align-items: center;
49
+ justify-content: center;
50
+ flex-shrink: 0;
51
+ width: 32px;
52
+ height: 32px;
53
+ padding: 0;
54
+ border: 1px solid var(--mx-control-border);
55
+ border-radius: 50%;
56
+ background: var(--mx-surface);
57
+ color: var(--mx-ink);
58
+ cursor: pointer;
59
+ transition: background var(--mx-duration) var(--mx-ease);
60
+ }
61
+ .mx-carousel-button svg,
62
+ .mx-carousel-play svg {
63
+ width: 16px;
64
+ height: 16px;
65
+ }
66
+ .mx-carousel-button:hover:not(:disabled),
67
+ .mx-carousel-play:hover {
68
+ background: var(--mx-subtle);
69
+ }
70
+ .mx-carousel-button:disabled {
71
+ border-color: var(--mx-stone);
72
+ color: var(--mx-stone-strong);
73
+ cursor: not-allowed;
74
+ }
75
+ .mx-carousel-play {
76
+ position: absolute;
77
+ top: 10px;
78
+ right: 10px;
79
+ z-index: 1;
80
+ box-shadow: var(--mx-shadow-overlay);
81
+ }
82
+ .mx-carousel-dots {
83
+ display: flex;
84
+ flex-wrap: wrap;
85
+ justify-content: center;
86
+ gap: 2px;
87
+ }
88
+ .mx-carousel-dot {
89
+ position: relative;
90
+ width: 24px;
91
+ height: 24px;
92
+ padding: 0;
93
+ border: 0;
94
+ border-radius: 50%;
95
+ background: transparent;
96
+ cursor: pointer;
97
+ }
98
+ .mx-carousel-dot::after {
99
+ content: '';
100
+ position: absolute;
101
+ top: 50%;
102
+ left: 50%;
103
+ width: 8px;
104
+ height: 8px;
105
+ border-radius: 999px;
106
+ background: var(--mx-stone-strong);
107
+ transform: translate(-50%, -50%);
108
+ transition: width var(--mx-duration) var(--mx-ease), background var(--mx-duration) var(--mx-ease);
109
+ }
110
+ .mx-carousel-dot[aria-current='true']::after {
111
+ width: 18px;
112
+ background: var(--mx-accent);
113
+ }
@@ -0,0 +1,207 @@
1
+ /* ---------- Color picker ---------- */
2
+
3
+ .mx-color-panel {
4
+ --mx-color-hue: 190;
5
+ --_checker: repeating-conic-gradient(var(--mx-stone) 0% 25%, var(--mx-surface) 0% 50%) 50% / 10px 10px;
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: 12px;
9
+ width: 248px;
10
+ font-family: var(--mx-font-sans);
11
+ }
12
+ .mx-color-panel[data-swatches-only] {
13
+ width: auto;
14
+ }
15
+ .mx-color-panel[data-swatches-only] .mx-color-swatches {
16
+ grid-template-columns: repeat(auto-fill, 32px);
17
+ min-width: 220px;
18
+ }
19
+ .mx-color-panel[data-disabled] {
20
+ opacity: 0.6;
21
+ }
22
+ .mx-color-area {
23
+ position: relative;
24
+ height: 156px;
25
+ border-radius: var(--mx-radius);
26
+ background:
27
+ linear-gradient(to top, #000, transparent),
28
+ linear-gradient(to right, #fff, hsl(var(--mx-color-hue) 100% 50%));
29
+ cursor: crosshair;
30
+ touch-action: none;
31
+ }
32
+ .mx-color-area-thumb {
33
+ position: absolute;
34
+ width: 16px;
35
+ height: 16px;
36
+ box-sizing: border-box;
37
+ border: 2px solid #fff;
38
+ border-radius: 50%;
39
+ background: var(--mx-color-opaque);
40
+ box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35), 0 1px 3px rgb(0 0 0 / 0.3);
41
+ transform: translate(-50%, -50%);
42
+ }
43
+ .mx-color-area-thumb:focus-visible {
44
+ outline: var(--mx-focus-width) solid var(--mx-accent);
45
+ outline-offset: 2px;
46
+ }
47
+ .mx-color-sliders {
48
+ display: flex;
49
+ align-items: center;
50
+ gap: 10px;
51
+ }
52
+ .mx-color-preview {
53
+ flex-shrink: 0;
54
+ width: 28px;
55
+ height: 28px;
56
+ border-radius: 50%;
57
+ background: var(--_checker);
58
+ box-shadow: inset 0 0 0 1px var(--mx-stone);
59
+ overflow: hidden;
60
+ }
61
+ .mx-color-preview span {
62
+ display: block;
63
+ width: 100%;
64
+ height: 100%;
65
+ background: var(--mx-color-current);
66
+ }
67
+ .mx-color-ranges {
68
+ display: flex;
69
+ flex: 1;
70
+ flex-direction: column;
71
+ gap: 10px;
72
+ }
73
+ .mx-color-range {
74
+ appearance: none;
75
+ -webkit-appearance: none;
76
+ display: block;
77
+ width: 100%;
78
+ height: 12px;
79
+ margin: 0;
80
+ border-radius: 999px;
81
+ cursor: pointer;
82
+ }
83
+ .mx-color-hue {
84
+ background: linear-gradient(to right, #f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00);
85
+ }
86
+ .mx-color-alpha {
87
+ background: linear-gradient(to right, transparent, var(--mx-color-opaque)), var(--_checker);
88
+ }
89
+ .mx-color-range::-webkit-slider-thumb {
90
+ -webkit-appearance: none;
91
+ width: 16px;
92
+ height: 16px;
93
+ border: 2px solid #fff;
94
+ border-radius: 50%;
95
+ background: transparent;
96
+ box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35), 0 1px 3px rgb(0 0 0 / 0.3);
97
+ }
98
+ .mx-color-range::-moz-range-thumb {
99
+ box-sizing: border-box;
100
+ width: 16px;
101
+ height: 16px;
102
+ border: 2px solid #fff;
103
+ border-radius: 50%;
104
+ background: transparent;
105
+ box-shadow: 0 0 0 1px rgb(0 0 0 / 0.35);
106
+ }
107
+ .mx-color-range:focus-visible {
108
+ outline: var(--mx-focus-width) solid var(--mx-accent);
109
+ outline-offset: 3px;
110
+ }
111
+ .mx-color-tool {
112
+ display: inline-flex;
113
+ align-items: center;
114
+ justify-content: center;
115
+ flex-shrink: 0;
116
+ width: 30px;
117
+ height: 30px;
118
+ padding: 0;
119
+ border: 1px solid var(--mx-control-border);
120
+ border-radius: var(--mx-radius);
121
+ background: var(--mx-surface);
122
+ color: var(--mx-ink);
123
+ cursor: pointer;
124
+ }
125
+ .mx-color-tool svg {
126
+ width: 16px;
127
+ height: 16px;
128
+ }
129
+ .mx-color-tool:hover {
130
+ background: var(--mx-subtle);
131
+ }
132
+ .mx-color-input-row {
133
+ display: flex;
134
+ align-items: center;
135
+ gap: 8px;
136
+ }
137
+ .mx-color-input-label {
138
+ color: var(--mx-muted);
139
+ font-size: var(--mx-text-sm);
140
+ font-weight: 500;
141
+ }
142
+ .mx-color-hex.mx-input {
143
+ font-family: var(--mx-font-mono);
144
+ text-transform: uppercase;
145
+ }
146
+ .mx-color-swatches {
147
+ display: grid;
148
+ grid-template-columns: repeat(8, 1fr);
149
+ gap: 6px;
150
+ }
151
+ .mx-color-swatch {
152
+ aspect-ratio: 1;
153
+ width: 100%;
154
+ padding: 0;
155
+ border: 0;
156
+ border-radius: calc(var(--mx-radius) - 2px);
157
+ background: var(--mx-swatch);
158
+ box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
159
+ cursor: pointer;
160
+ }
161
+ .mx-color-swatch[aria-pressed='true'] {
162
+ outline: 2px solid var(--mx-ink);
163
+ outline-offset: 2px;
164
+ }
165
+
166
+ /* Campo */
167
+ .mx-color-picker {
168
+ display: block;
169
+ width: 100%;
170
+ font-family: var(--mx-font-sans);
171
+ }
172
+ .mx-color-picker-field {
173
+ position: relative;
174
+ }
175
+ .mx-color-picker-input.mx-input {
176
+ padding-left: 42px;
177
+ font-family: var(--mx-font-mono);
178
+ text-transform: uppercase;
179
+ }
180
+ .mx-color-picker-toggle {
181
+ position: absolute;
182
+ top: 50%;
183
+ left: 6px;
184
+ width: 26px;
185
+ height: 26px;
186
+ padding: 0;
187
+ border: 0;
188
+ border-radius: calc(var(--mx-radius) - 2px);
189
+ background: linear-gradient(var(--mx-swatch), var(--mx-swatch)), repeating-conic-gradient(var(--mx-stone) 0% 25%, var(--mx-surface) 0% 50%) 50% / 8px 8px;
190
+ box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15);
191
+ transform: translateY(-50%);
192
+ cursor: pointer;
193
+ }
194
+ .mx-color-picker-toggle[data-empty] {
195
+ background: linear-gradient(to top right, transparent calc(50% - 1px), var(--mx-danger) 50%, transparent calc(50% + 1px)), var(--mx-surface);
196
+ }
197
+ .mx-color-picker-toggle:disabled {
198
+ cursor: not-allowed;
199
+ }
200
+ .mx-color-picker-panel {
201
+ padding: 12px;
202
+ border: var(--mx-border);
203
+ border-radius: var(--mx-radius-surface);
204
+ background: var(--mx-surface);
205
+ box-shadow: var(--mx-shadow-overlay);
206
+ animation: mx-fade-in var(--mx-duration) var(--mx-ease);
207
+ }
@@ -0,0 +1,235 @@
1
+ /* ---------- Data grid ---------- */
2
+
3
+ .mx-grid {
4
+ --_row-h: 40px;
5
+ display: flex;
6
+ flex-direction: column;
7
+ width: 100%;
8
+ min-width: 0;
9
+ border: var(--mx-border);
10
+ border-radius: var(--mx-radius-surface);
11
+ background: var(--mx-surface);
12
+ color: var(--mx-ink);
13
+ font-family: var(--mx-font-sans);
14
+ font-size: var(--mx-text-md);
15
+ overflow: hidden;
16
+ }
17
+ .mx-grid-toolbar {
18
+ display: flex;
19
+ flex-wrap: wrap;
20
+ align-items: center;
21
+ gap: 8px;
22
+ padding: 10px 12px;
23
+ border-bottom: var(--mx-border);
24
+ }
25
+ .mx-grid-toolbar-slot {
26
+ display: flex;
27
+ flex: 1;
28
+ flex-wrap: wrap;
29
+ align-items: center;
30
+ gap: 8px;
31
+ }
32
+ .mx-grid-columns-button {
33
+ display: inline-flex;
34
+ align-items: center;
35
+ gap: 6px;
36
+ height: 32px;
37
+ margin-left: auto;
38
+ padding: 0 10px;
39
+ border: 1px solid var(--mx-control-border);
40
+ border-radius: var(--mx-radius);
41
+ background: var(--mx-surface);
42
+ color: var(--mx-ink);
43
+ font: inherit;
44
+ font-size: var(--mx-text-sm);
45
+ cursor: pointer;
46
+ }
47
+ .mx-grid-columns-button svg {
48
+ width: 16px;
49
+ height: 16px;
50
+ }
51
+ .mx-grid-columns-button:hover {
52
+ background: var(--mx-subtle);
53
+ }
54
+ .mx-grid-scroller {
55
+ position: relative;
56
+ overflow: auto;
57
+ min-height: 0;
58
+ }
59
+ .mx-grid-table {
60
+ min-width: 100%;
61
+ border-collapse: separate;
62
+ border-spacing: 0;
63
+ table-layout: fixed;
64
+ font-variant-numeric: tabular-nums;
65
+ }
66
+ .mx-grid-table :is(th, td) {
67
+ box-sizing: border-box;
68
+ height: 40px;
69
+ padding: 0 12px;
70
+ overflow: hidden;
71
+ border-bottom: var(--mx-border);
72
+ background: var(--mx-surface);
73
+ text-align: left;
74
+ text-overflow: ellipsis;
75
+ white-space: nowrap;
76
+ vertical-align: middle;
77
+ }
78
+ .mx-grid[data-density='compact'] .mx-grid-table :is(th, td) {
79
+ height: 32px;
80
+ padding: 0 10px;
81
+ font-size: var(--mx-text-sm);
82
+ }
83
+ .mx-grid-table [data-align='end'] {
84
+ text-align: right;
85
+ }
86
+ .mx-grid-table [data-align='center'] {
87
+ text-align: center;
88
+ }
89
+ .mx-grid-table thead :is(th, td) {
90
+ position: sticky;
91
+ top: 0;
92
+ z-index: 2;
93
+ background: var(--mx-subtle);
94
+ color: var(--mx-muted);
95
+ font-size: var(--mx-text-sm);
96
+ font-weight: 500;
97
+ }
98
+ .mx-grid-filter-row td {
99
+ top: 40px !important;
100
+ height: 40px;
101
+ padding: 4px 8px !important;
102
+ }
103
+ .mx-grid[data-density='compact'] .mx-grid-filter-row td {
104
+ top: 32px !important;
105
+ }
106
+ .mx-grid-table th {
107
+ position: sticky;
108
+ }
109
+ .mx-grid-sort {
110
+ display: inline-flex;
111
+ align-items: center;
112
+ gap: 6px;
113
+ max-width: 100%;
114
+ margin: 0 -6px;
115
+ padding: 4px 6px;
116
+ border: 0;
117
+ border-radius: calc(var(--mx-radius) - 2px);
118
+ background: transparent;
119
+ color: inherit;
120
+ font: inherit;
121
+ cursor: pointer;
122
+ }
123
+ .mx-grid-sort:hover,
124
+ [aria-sort='ascending'] > .mx-grid-sort,
125
+ [aria-sort='descending'] > .mx-grid-sort {
126
+ color: var(--mx-ink);
127
+ }
128
+ [aria-sort='ascending'] > .mx-grid-sort .mx-sort-icon,
129
+ [aria-sort='descending'] > .mx-grid-sort .mx-sort-icon {
130
+ opacity: 1;
131
+ color: var(--mx-accent);
132
+ }
133
+ [data-align='end'] > .mx-grid-sort {
134
+ flex-direction: row-reverse;
135
+ }
136
+ .mx-grid-resize {
137
+ position: absolute;
138
+ top: 6px;
139
+ right: 0;
140
+ bottom: 6px;
141
+ width: 8px;
142
+ cursor: col-resize;
143
+ touch-action: none;
144
+ }
145
+ .mx-grid-resize::after {
146
+ content: '';
147
+ position: absolute;
148
+ top: 0;
149
+ bottom: 0;
150
+ right: 3px;
151
+ width: 2px;
152
+ border-radius: 1px;
153
+ background: var(--mx-stone);
154
+ }
155
+ th:hover > .mx-grid-resize::after,
156
+ .mx-grid-resize:hover::after {
157
+ background: var(--mx-accent);
158
+ }
159
+ .mx-grid-filter {
160
+ box-sizing: border-box;
161
+ width: 100%;
162
+ height: 30px;
163
+ padding: 0 8px;
164
+ border: 1px solid var(--mx-control-border);
165
+ border-radius: calc(var(--mx-radius) - 2px);
166
+ background: var(--mx-surface);
167
+ color: var(--mx-ink);
168
+ font: inherit;
169
+ font-size: var(--mx-text-sm);
170
+ font-weight: 400;
171
+ }
172
+ .mx-grid-filter::placeholder {
173
+ color: var(--mx-muted);
174
+ }
175
+ .mx-grid-filter:focus-visible {
176
+ border-color: var(--mx-accent);
177
+ outline: var(--mx-focus-width) solid var(--mx-accent);
178
+ outline-offset: 0;
179
+ }
180
+ .mx-grid-table tbody tr:hover > td {
181
+ background: color-mix(in oklab, var(--mx-subtle) 60%, var(--mx-surface));
182
+ }
183
+ .mx-grid-table tbody tr[aria-selected='true'] > td {
184
+ background: var(--mx-accent-soft);
185
+ }
186
+ .mx-grid-table tbody tr[aria-selected='true'] > td:first-child {
187
+ box-shadow: inset 2px 0 0 var(--mx-accent);
188
+ }
189
+ .mx-grid-table [data-cell]:focus-visible {
190
+ outline: 2px solid var(--mx-accent);
191
+ outline-offset: -2px;
192
+ }
193
+ .mx-grid-check {
194
+ width: 44px;
195
+ padding: 0 0 0 14px !important;
196
+ }
197
+ .mx-grid-pinned-start,
198
+ .mx-grid-pinned-end {
199
+ position: sticky;
200
+ z-index: 1;
201
+ }
202
+ .mx-grid-table thead .mx-grid-pinned-start,
203
+ .mx-grid-table thead .mx-grid-pinned-end {
204
+ z-index: 3;
205
+ }
206
+ .mx-grid-pinned-start:not(:has(+ .mx-grid-pinned-start)) {
207
+ box-shadow: 4px 0 6px -4px rgb(0 0 0 / 0.12), inset -1px 0 0 var(--mx-stone);
208
+ }
209
+ .mx-grid-pinned-end {
210
+ box-shadow: -4px 0 6px -4px rgb(0 0 0 / 0.12), inset 1px 0 0 var(--mx-stone);
211
+ }
212
+ .mx-grid-spacer td {
213
+ padding: 0 !important;
214
+ border: 0 !important;
215
+ }
216
+ .mx-grid-empty {
217
+ height: 120px !important;
218
+ color: var(--mx-muted);
219
+ text-align: center !important;
220
+ }
221
+ .mx-grid-table[aria-busy='true'] tbody {
222
+ opacity: 0.55;
223
+ }
224
+ .mx-grid-footer {
225
+ display: flex;
226
+ flex-wrap: wrap;
227
+ align-items: center;
228
+ justify-content: space-between;
229
+ gap: 8px;
230
+ min-height: 40px;
231
+ padding: 6px 12px;
232
+ border-top: var(--mx-border);
233
+ color: var(--mx-muted);
234
+ font-size: var(--mx-text-sm);
235
+ }