@revikornmann/muka-ui 0.49.0 → 0.50.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.
Files changed (71) hide show
  1. package/cli/templates/agents-block.md +16 -0
  2. package/dist/cjs/components/AppShell/AppShell.css +36 -10
  3. package/dist/cjs/components/BottomBar/BottomBar.css +2 -0
  4. package/dist/cjs/components/Dialog/Dialog.css +38 -0
  5. package/dist/cjs/components/DocumentViewer/DocumentViewer.css +22 -0
  6. package/dist/cjs/components/Drawer/Drawer.css +43 -0
  7. package/dist/cjs/components/Page/Page.css +57 -0
  8. package/dist/cjs/components/Page/Page.js +31 -0
  9. package/dist/cjs/components/Page/Page.js.map +1 -0
  10. package/dist/cjs/components/Page/index.js +6 -0
  11. package/dist/cjs/components/Page/index.js.map +1 -0
  12. package/dist/cjs/components/SiteHeader/SiteHeader.css +104 -0
  13. package/dist/cjs/components/SiteHeader/SiteHeader.js +34 -0
  14. package/dist/cjs/components/SiteHeader/SiteHeader.js.map +1 -0
  15. package/dist/cjs/components/SiteHeader/index.js +6 -0
  16. package/dist/cjs/components/SiteHeader/index.js.map +1 -0
  17. package/dist/cjs/components/Toast/Toast.css +12 -10
  18. package/dist/cjs/components/View/View.css +12 -0
  19. package/dist/cjs/components/index.js +7 -3
  20. package/dist/cjs/components/index.js.map +1 -1
  21. package/dist/esm/components/AppShell/AppShell.css +36 -10
  22. package/dist/esm/components/BottomBar/BottomBar.css +2 -0
  23. package/dist/esm/components/Dialog/Dialog.css +38 -0
  24. package/dist/esm/components/DocumentViewer/DocumentViewer.css +22 -0
  25. package/dist/esm/components/Drawer/Drawer.css +43 -0
  26. package/dist/esm/components/Page/Page.css +57 -0
  27. package/dist/esm/components/Page/Page.js +27 -0
  28. package/dist/esm/components/Page/Page.js.map +1 -0
  29. package/dist/esm/components/Page/index.js +2 -0
  30. package/dist/esm/components/Page/index.js.map +1 -0
  31. package/dist/esm/components/SiteHeader/SiteHeader.css +104 -0
  32. package/dist/esm/components/SiteHeader/SiteHeader.js +30 -0
  33. package/dist/esm/components/SiteHeader/SiteHeader.js.map +1 -0
  34. package/dist/esm/components/SiteHeader/index.js +2 -0
  35. package/dist/esm/components/SiteHeader/index.js.map +1 -0
  36. package/dist/esm/components/Toast/Toast.css +12 -10
  37. package/dist/esm/components/View/View.css +12 -0
  38. package/dist/esm/components/index.js +2 -0
  39. package/dist/esm/components/index.js.map +1 -1
  40. package/dist/styles/components/AppShell.css +36 -10
  41. package/dist/styles/components/BottomBar.css +2 -0
  42. package/dist/styles/components/ControlBar.css +72 -0
  43. package/dist/styles/components/Dialog.css +38 -0
  44. package/dist/styles/components/DocumentViewer.css +22 -0
  45. package/dist/styles/components/Drawer.css +43 -0
  46. package/dist/styles/components/Page.css +57 -0
  47. package/dist/styles/components/SiteHeader.css +104 -0
  48. package/dist/styles/components/TablePagination.css +199 -0
  49. package/dist/styles/components/Toast.css +12 -10
  50. package/dist/styles/components/TopBar.css +225 -43
  51. package/dist/styles/components/View.css +12 -0
  52. package/dist/styles/index.css +2145 -1651
  53. package/dist/styles/muka-dark.css +2145 -1651
  54. package/dist/styles/muka-light.css +2145 -1651
  55. package/dist/styles/wireframe-dark.css +2145 -1651
  56. package/dist/styles/wireframe-light.css +2145 -1651
  57. package/dist/types/components/Page/Page.d.ts +38 -0
  58. package/dist/types/components/Page/Page.d.ts.map +1 -0
  59. package/dist/types/components/Page/index.d.ts +3 -0
  60. package/dist/types/components/Page/index.d.ts.map +1 -0
  61. package/dist/types/components/SiteHeader/SiteHeader.d.ts +43 -0
  62. package/dist/types/components/SiteHeader/SiteHeader.d.ts.map +1 -0
  63. package/dist/types/components/SiteHeader/index.d.ts +3 -0
  64. package/dist/types/components/SiteHeader/index.d.ts.map +1 -0
  65. package/dist/types/components/index.d.ts +2 -0
  66. package/dist/types/components/index.d.ts.map +1 -1
  67. package/docs/consumers/README.md +1 -0
  68. package/docs/consumers/devices.md +59 -0
  69. package/docs/consumers/setup-instructions.md +7 -0
  70. package/package.json +1 -1
  71. package/skills/setup-muka/SKILL.md +9 -0
@@ -0,0 +1,72 @@
1
+ /* ControlBar Component Styles */
2
+
3
+ /*
4
+ * Sizing is driven by `--cb-*` custom properties set per tier. Base (small)
5
+ * values live on `.muka-controlbar`; the large tier flips them — either
6
+ * responsively (no `size` prop, scoped with `:not([data-size])`, large at
7
+ * 1024px+ to track the TopBar large tier) or forced via `[data-size="…"]`.
8
+ * Size affects the bar's own box only; `--controlbar-content-radius` is exposed
9
+ * for consumers to apply to nested fields.
10
+ */
11
+ .muka-controlbar {
12
+ display: flex;
13
+ justify-content: center;
14
+ background-color: var(--controlbar-color-background);
15
+ width: 100%;
16
+
17
+ /* ─── Small tier (base) ─── */
18
+ --cb-padding-x: var(--controlbar-padding-x-sm);
19
+ --cb-padding-bottom: var(--controlbar-padding-bottom-sm);
20
+ --cb-max-width: var(--controlbar-max-width-sm);
21
+ --cb-gap: var(--controlbar-gap-sm);
22
+ --controlbar-content-radius: var(--controlbar-content-radius-sm);
23
+
24
+ padding: 0 var(--cb-padding-x) var(--cb-padding-bottom);
25
+ }
26
+
27
+ /* ─── Large tier ─── */
28
+ @media (min-width: 1024px) {
29
+ .muka-controlbar:not([data-size]) {
30
+ --cb-padding-x: var(--controlbar-padding-x-lg);
31
+ --cb-padding-bottom: var(--controlbar-padding-bottom-lg);
32
+ --cb-max-width: var(--controlbar-max-width-lg);
33
+ --cb-gap: var(--controlbar-gap-lg);
34
+ --controlbar-content-radius: var(--controlbar-content-radius-lg);
35
+ }
36
+ }
37
+
38
+ .muka-controlbar[data-size='lg'] {
39
+ --cb-padding-x: var(--controlbar-padding-x-lg);
40
+ --cb-padding-bottom: var(--controlbar-padding-bottom-lg);
41
+ --cb-max-width: var(--controlbar-max-width-lg);
42
+ --cb-gap: var(--controlbar-gap-lg);
43
+ --controlbar-content-radius: var(--controlbar-content-radius-lg);
44
+ }
45
+
46
+ /* Contents are capped at the tier max-width and centered, so they don't
47
+ stretch full-width on larger viewports while the bar background stays edge-to-edge. */
48
+ .muka-controlbar__content {
49
+ display: flex;
50
+ align-items: center;
51
+ gap: var(--cb-gap);
52
+ width: 100%;
53
+ max-width: var(--cb-max-width);
54
+ }
55
+
56
+ /* ─── Justification variants ─────────────────────────── */
57
+
58
+ .muka-controlbar--justify-start .muka-controlbar__content {
59
+ justify-content: flex-start;
60
+ }
61
+
62
+ .muka-controlbar--justify-center .muka-controlbar__content {
63
+ justify-content: center;
64
+ }
65
+
66
+ .muka-controlbar--justify-end .muka-controlbar__content {
67
+ justify-content: flex-end;
68
+ }
69
+
70
+ .muka-controlbar--justify-between .muka-controlbar__content {
71
+ justify-content: space-between;
72
+ }
@@ -319,3 +319,41 @@
319
319
  font-size: var(--text-body-base-regular-fontSize);
320
320
  line-height: var(--text-body-base-regular-lineHeight);
321
321
  }
322
+
323
+ /* ─── Safe areas (notch, status bar, home indicator) ────
324
+ env(safe-area-inset-*) is 0 outside notched devices, so these only change
325
+ an app running edge to edge (viewport-fit=cover, e.g. an iOS shell). */
326
+
327
+ /* The surface never reaches the top of the screen, so its TopBar must not pad
328
+ for the status bar. */
329
+ .muka-dialog .muka-topbar {
330
+ padding-top: 0;
331
+ }
332
+
333
+ @media (max-width: 1023px) {
334
+ /* The tallest sheet still starts below the status bar. */
335
+ .muka-dialog--lg .muka-dialog__surface {
336
+ height: calc(100vh - var(--dialog-margin-top-mobile) - env(safe-area-inset-top, 0px));
337
+ height: calc(100dvh - var(--dialog-margin-top-mobile) - env(safe-area-inset-top, 0px));
338
+ }
339
+
340
+ /* Landscape: keep the body clear of the notch. */
341
+ .muka-dialog__body {
342
+ padding-left: max(var(--dialog-padding-x), env(safe-area-inset-left, 0px));
343
+ padding-right: max(var(--dialog-padding-x), env(safe-area-inset-right, 0px));
344
+ }
345
+
346
+ /* The sheet is bottom-attached. A footer BottomBar pads itself for the home
347
+ indicator; without a visible footer the body does. */
348
+ .muka-dialog__surface:not(:has(.muka-dialog__footer)) .muka-dialog__body,
349
+ .muka-dialog:not(.muka-dialog--non-modal):not(.muka-dialog--no-inputs):not(.muka-dialog--mobile-actions-footer) .muka-dialog__body {
350
+ padding-bottom: calc(var(--dialog-padding-x) + env(safe-area-inset-bottom, 0px));
351
+ }
352
+ }
353
+
354
+ @media (min-width: 1024px) {
355
+ /* Centred card: nothing touches the bottom edge. */
356
+ .muka-dialog__footer .muka-bottombar {
357
+ padding-bottom: 0;
358
+ }
359
+ }
@@ -274,3 +274,25 @@
274
274
  .react-pdf__Page__annotations {
275
275
  max-width: 100%;
276
276
  }
277
+
278
+ /* ─── Safe areas in full screen ─────────────────────────
279
+ Full screen covers the whole display: the toolbar extends behind the status
280
+ bar and the content clears the home indicator and a landscape notch.
281
+ env(safe-area-inset-*) is 0 outside notched devices. */
282
+ .muka-documentviewer--fullscreen {
283
+ height: 100dvh;
284
+ }
285
+
286
+ .muka-documentviewer--fullscreen .muka-documentviewer__toolbar {
287
+ box-sizing: border-box;
288
+ height: calc(var(--documentviewer-toolbar-height) + env(safe-area-inset-top, 0px));
289
+ padding-top: calc(var(--documentviewer-toolbar-padding-y) + env(safe-area-inset-top, 0px));
290
+ padding-left: max(var(--documentviewer-toolbar-padding-x), env(safe-area-inset-left, 0px));
291
+ padding-right: max(var(--documentviewer-toolbar-padding-x), env(safe-area-inset-right, 0px));
292
+ }
293
+
294
+ .muka-documentviewer--fullscreen .muka-documentviewer__content {
295
+ padding-bottom: env(safe-area-inset-bottom, 0px);
296
+ padding-left: env(safe-area-inset-left, 0px);
297
+ padding-right: env(safe-area-inset-right, 0px);
298
+ }
@@ -140,3 +140,46 @@
140
140
  border-top: var(--border-width-regular) solid var(--color-border-default);
141
141
  flex-shrink: 0;
142
142
  }
143
+
144
+ /* ─── Safe areas (notch, status bar, home indicator) ────
145
+ env(safe-area-inset-*) is 0 outside notched devices, so these only change
146
+ an app running edge to edge (viewport-fit=cover, e.g. an iOS shell). */
147
+
148
+ /* Top edge. Side, top and full-height drawers reach the status bar: their
149
+ TopBar pads for it; without a header the surface does. A bottom drawer
150
+ stops short of it, so its TopBar must not. */
151
+ .muka-drawer--right .muka-drawer__surface:not(:has(> .muka-topbar)),
152
+ .muka-drawer--left .muka-drawer__surface:not(:has(> .muka-topbar)),
153
+ .muka-drawer--top .muka-drawer__surface:not(:has(> .muka-topbar)) {
154
+ padding-top: env(safe-area-inset-top, 0px);
155
+ }
156
+
157
+ .muka-drawer--bottom:not(.muka-drawer--full) .muka-topbar {
158
+ padding-top: 0;
159
+ }
160
+
161
+ /* Bottom edge. Side and bottom drawers reach the home indicator: the footer
162
+ pads for it, or the surface when there is no footer. */
163
+ .muka-drawer:not(.muka-drawer--top) .muka-drawer__footer {
164
+ padding-bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
165
+ }
166
+
167
+ .muka-drawer:not(.muka-drawer--top) .muka-drawer__surface:not(:has(> .muka-drawer__footer)) {
168
+ padding-bottom: env(safe-area-inset-bottom, 0px);
169
+ }
170
+
171
+ /* Sides (landscape notch): the edge the drawer is attached to. The TopBar
172
+ already insets its own content. */
173
+ @media (max-width: 1023px) {
174
+ .muka-drawer--left .muka-drawer__body,
175
+ .muka-drawer--top .muka-drawer__body,
176
+ .muka-drawer--bottom .muka-drawer__body {
177
+ padding-left: max(var(--drawer-padding-x), env(safe-area-inset-left, 0px));
178
+ }
179
+
180
+ .muka-drawer--right .muka-drawer__body,
181
+ .muka-drawer--top .muka-drawer__body,
182
+ .muka-drawer--bottom .muka-drawer__body {
183
+ padding-right: max(var(--drawer-padding-x), env(safe-area-inset-right, 0px));
184
+ }
185
+ }
@@ -0,0 +1,57 @@
1
+ /* Page Component Styles */
2
+
3
+ /*
4
+ * Shell for document-scrolling pages (marketing, sign-in, legal). Safe areas:
5
+ * env(safe-area-inset-*) is 0 outside notched devices, so the padding below
6
+ * only appears in an app running edge to edge (viewport-fit=cover).
7
+ *
8
+ * `--muka-page-background` is the page colour. SiteHeader reads it, so a
9
+ * header and its status-bar scrim match the page without configuration.
10
+ */
11
+ .muka-page {
12
+ --muka-page-background: var(--color-surface-level3);
13
+ display: flex;
14
+ flex-direction: column;
15
+ min-height: 100vh;
16
+ min-height: 100dvh;
17
+ background-color: var(--muka-page-background);
18
+ }
19
+
20
+ .muka-page--surface-2 {
21
+ --muka-page-background: var(--color-surface-level2);
22
+ }
23
+
24
+ /* Overscroll (rubber band) shows the document background: keep it the page's. */
25
+ :root:has(.muka-page--surface-2) body {
26
+ background-color: var(--color-surface-level2);
27
+ }
28
+
29
+ .muka-page__main {
30
+ flex: 1 0 auto;
31
+ display: flex;
32
+ flex-direction: column;
33
+ /* Landscape: clear the notch. */
34
+ padding-left: env(safe-area-inset-left, 0px);
35
+ padding-right: env(safe-area-inset-right, 0px);
36
+ }
37
+
38
+ .muka-page__footer {
39
+ flex-shrink: 0;
40
+ padding-left: env(safe-area-inset-left, 0px);
41
+ padding-right: env(safe-area-inset-right, 0px);
42
+ padding-bottom: env(safe-area-inset-bottom, 0px);
43
+ }
44
+
45
+ /* A footer with its own colour: the colour runs under the home indicator. */
46
+ .muka-page__footer--surface-2 {
47
+ background-color: var(--color-surface-level2);
48
+ }
49
+
50
+ .muka-page__footer--surface-3 {
51
+ background-color: var(--color-surface-level3);
52
+ }
53
+
54
+ /* Without a footer, the content is last and clears the home indicator. */
55
+ .muka-page:not(:has(> .muka-page__footer)) > .muka-page__main {
56
+ padding-bottom: env(safe-area-inset-bottom, 0px);
57
+ }
@@ -0,0 +1,104 @@
1
+ /* SiteHeader Component Styles */
2
+
3
+ /*
4
+ * Header for document-scrolling pages. Its colour comes from, in order:
5
+ * `--muka-site-header-background` (set by the consumer), the surrounding
6
+ * Page's `--muka-page-background`, and the base surface.
7
+ *
8
+ * Safe areas: env(safe-area-inset-*) is 0 outside notched devices. In an app
9
+ * running edge to edge, the header extends behind the status bar in its own
10
+ * colour and keeps its content clear of a landscape notch.
11
+ */
12
+ .muka-site-header {
13
+ width: 100%;
14
+ flex-shrink: 0;
15
+ background-color: var(--muka-site-header-background, var(--muka-page-background, var(--color-surface-level3)));
16
+ padding-top: env(safe-area-inset-top, 0px);
17
+ }
18
+
19
+ .muka-site-header--sticky {
20
+ position: sticky;
21
+ top: 0;
22
+ z-index: 30;
23
+ border-bottom: var(--border-width-regular) solid var(--color-border-default);
24
+ }
25
+
26
+ /*
27
+ * A header that scrolls away would leave the status bar over the content. A
28
+ * fixed strip in the header's colour stays behind the status bar instead.
29
+ * Below Muka's overlays, so a dialog's backdrop dims it with the page.
30
+ */
31
+ .muka-site-header:not(.muka-site-header--sticky)::before {
32
+ content: '';
33
+ position: fixed;
34
+ top: 0;
35
+ left: 0;
36
+ right: 0;
37
+ height: env(safe-area-inset-top, 0px);
38
+ background-color: inherit;
39
+ pointer-events: none;
40
+ z-index: 30;
41
+ }
42
+
43
+ .muka-site-header__inner {
44
+ display: flex;
45
+ align-items: center;
46
+ gap: var(--spacing-2);
47
+ width: 100%;
48
+ max-width: var(--container-max-width-xl);
49
+ margin: 0 auto;
50
+ padding-block: var(--spacing-6);
51
+ padding-left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
52
+ padding-right: max(var(--spacing-4), env(safe-area-inset-right, 0px));
53
+ }
54
+
55
+ .muka-site-header__brand {
56
+ display: flex;
57
+ align-items: center;
58
+ flex-shrink: 0;
59
+ min-width: 0;
60
+ }
61
+
62
+ .muka-site-header__nav {
63
+ display: none;
64
+ align-items: center;
65
+ gap: var(--spacing-1);
66
+ min-width: 0;
67
+ }
68
+
69
+ .muka-site-header__actions {
70
+ display: flex;
71
+ align-items: center;
72
+ margin-left: auto;
73
+ min-width: 0;
74
+ }
75
+
76
+ .muka-site-header__action-group {
77
+ display: flex;
78
+ align-items: center;
79
+ gap: var(--spacing-2);
80
+ }
81
+
82
+ /* Small screens: the compact set replaces the full one. */
83
+ .muka-site-header__action-group--wide {
84
+ display: none;
85
+ }
86
+
87
+ @media (min-width: 768px) {
88
+ .muka-site-header__inner {
89
+ gap: var(--spacing-4);
90
+ padding-block: var(--spacing-8);
91
+ }
92
+
93
+ .muka-site-header__nav {
94
+ display: flex;
95
+ }
96
+
97
+ .muka-site-header__action-group--wide {
98
+ display: flex;
99
+ }
100
+
101
+ .muka-site-header__action-group--compact {
102
+ display: none;
103
+ }
104
+ }
@@ -0,0 +1,199 @@
1
+ /* TablePagination Component Styles - Using Muka Design Tokens */
2
+
3
+ /* ========================================
4
+ PAGINATION CONTAINER
5
+ ======================================== */
6
+
7
+ .muka-table-pagination {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: space-between;
11
+ flex-wrap: wrap;
12
+ gap: var(--table-pagination-gap, var(--spacing-4));
13
+ padding: var(--table-pagination-padding, var(--spacing-3));
14
+ background-color: var(--table-pagination-background, var(--color-surface-level1));
15
+ border-top: var(--border-width-regular) solid var(--table-pagination-border, var(--color-border-default));
16
+ font-family: var(--text-body-base-regular-fontFamily);
17
+ font-size: var(--text-body-sm-regular-fontSize);
18
+ line-height: var(--text-body-sm-regular-lineHeight);
19
+ color: var(--color-text-default-default);
20
+ }
21
+
22
+ /* ========================================
23
+ LEFT SECTION (Page Size & Range)
24
+ ======================================== */
25
+
26
+ .muka-table-pagination__left {
27
+ display: flex;
28
+ align-items: center;
29
+ gap: var(--spacing-4);
30
+ }
31
+
32
+ .muka-table-pagination__page-size {
33
+ display: flex;
34
+ align-items: center;
35
+ gap: var(--spacing-2);
36
+ }
37
+
38
+ .muka-table-pagination__label {
39
+ color: var(--color-text-subtle-default);
40
+ white-space: nowrap;
41
+ }
42
+
43
+ .muka-table-pagination__select {
44
+ appearance: none;
45
+ padding: var(--spacing-1) var(--spacing-3) var(--spacing-1) var(--spacing-2);
46
+ background-color: var(--color-surface-level0);
47
+ border: var(--border-width-regular) solid var(--color-border-default);
48
+ border-radius: var(--border-radius-sm);
49
+ font-family: inherit;
50
+ font-size: inherit;
51
+ line-height: inherit;
52
+ color: var(--color-text-default-default);
53
+ cursor: pointer;
54
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
55
+ background-repeat: no-repeat;
56
+ background-position: right var(--spacing-1) center;
57
+ background-size: 12px;
58
+ padding-right: var(--spacing-5);
59
+ }
60
+
61
+ .muka-table-pagination__select:hover {
62
+ border-color: var(--color-border-contrast);
63
+ }
64
+
65
+ .muka-table-pagination__select:focus {
66
+ outline: 2px solid var(--color-action-default);
67
+ outline-offset: -2px;
68
+ }
69
+
70
+ .muka-table-pagination__range {
71
+ color: var(--color-text-subtle-default);
72
+ white-space: nowrap;
73
+ }
74
+
75
+ /* ========================================
76
+ RIGHT SECTION (Page Numbers & Navigation)
77
+ ======================================== */
78
+
79
+ .muka-table-pagination__right {
80
+ display: flex;
81
+ align-items: center;
82
+ gap: var(--spacing-2);
83
+ }
84
+
85
+ .muka-table-pagination__pages {
86
+ display: flex;
87
+ align-items: center;
88
+ gap: var(--spacing-1);
89
+ }
90
+
91
+ .muka-table-pagination__nav-only {
92
+ display: flex;
93
+ align-items: center;
94
+ gap: var(--spacing-2);
95
+ }
96
+
97
+ .muka-table-pagination__page-indicator {
98
+ color: var(--color-text-subtle-default);
99
+ white-space: nowrap;
100
+ min-width: 80px;
101
+ text-align: center;
102
+ }
103
+
104
+ /* ========================================
105
+ BUTTONS
106
+ ======================================== */
107
+
108
+ .muka-table-pagination__button {
109
+ display: inline-flex;
110
+ align-items: center;
111
+ justify-content: center;
112
+ min-width: var(--size-2xl);
113
+ height: var(--size-2xl);
114
+ padding: var(--spacing-1);
115
+ border: var(--border-width-regular) solid transparent;
116
+ border-radius: var(--border-radius-sm);
117
+ background-color: transparent;
118
+ color: var(--color-text-default-default);
119
+ font-family: inherit;
120
+ font-size: inherit;
121
+ line-height: 1;
122
+ cursor: pointer;
123
+ transition: background-color 0.15s, border-color 0.15s, color 0.15s;
124
+ }
125
+
126
+ .muka-table-pagination__button:hover:not(:disabled) {
127
+ background-color: var(--color-surface-level2);
128
+ }
129
+
130
+ .muka-table-pagination__button:focus-visible {
131
+ outline: 2px solid var(--color-action-default);
132
+ outline-offset: -2px;
133
+ }
134
+
135
+ .muka-table-pagination__button:disabled {
136
+ color: var(--color-text-muted-default);
137
+ cursor: not-allowed;
138
+ opacity: 0.5;
139
+ }
140
+
141
+ /* Navigation buttons (arrows) */
142
+ .muka-table-pagination__button--nav {
143
+ gap: -4px;
144
+ }
145
+
146
+ .muka-table-pagination__button--nav svg {
147
+ margin: -2px;
148
+ }
149
+
150
+ /* Page number buttons */
151
+ .muka-table-pagination__button--page {
152
+ font-weight: var(--text-label-md-regular-fontWeight);
153
+ }
154
+
155
+ .muka-table-pagination__button--active {
156
+ background-color: var(--color-action-default);
157
+ color: var(--color-text-default-inverse);
158
+ border-color: var(--color-action-default);
159
+ }
160
+
161
+ .muka-table-pagination__button--active:hover:not(:disabled) {
162
+ background-color: var(--color-action-hover);
163
+ border-color: var(--color-action-hover);
164
+ }
165
+
166
+ /* ========================================
167
+ ELLIPSIS
168
+ ======================================== */
169
+
170
+ .muka-table-pagination__ellipsis {
171
+ display: inline-flex;
172
+ align-items: center;
173
+ justify-content: center;
174
+ min-width: var(--size-2xl);
175
+ height: var(--size-2xl);
176
+ color: var(--color-text-muted-default);
177
+ user-select: none;
178
+ }
179
+
180
+ /* ========================================
181
+ RESPONSIVE
182
+ ======================================== */
183
+
184
+ @media (max-width: 640px) {
185
+ .muka-table-pagination {
186
+ flex-direction: column;
187
+ align-items: stretch;
188
+ }
189
+
190
+ .muka-table-pagination__left,
191
+ .muka-table-pagination__right {
192
+ justify-content: center;
193
+ }
194
+
195
+ .muka-table-pagination__pages {
196
+ flex-wrap: wrap;
197
+ justify-content: center;
198
+ }
199
+ }
@@ -36,34 +36,36 @@
36
36
  z-index: 9999;
37
37
  }
38
38
 
39
+ /* Offsets clear the status bar, home indicator and landscape notch on a device
40
+ that has them (env() is 0 elsewhere). */
39
41
  .muka-toast--top-right {
40
- top: var(--spacing-4);
41
- right: var(--spacing-4);
42
+ top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
43
+ right: max(var(--spacing-4), env(safe-area-inset-right, 0px));
42
44
  }
43
45
 
44
46
  .muka-toast--top-left {
45
- top: var(--spacing-4);
46
- left: var(--spacing-4);
47
+ top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
48
+ left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
47
49
  }
48
50
 
49
51
  .muka-toast--top-center {
50
- top: var(--spacing-4);
52
+ top: calc(var(--spacing-4) + env(safe-area-inset-top, 0px));
51
53
  left: 50%;
52
54
  transform: translateX(-50%);
53
55
  }
54
56
 
55
57
  .muka-toast--bottom-right {
56
- bottom: var(--spacing-4);
57
- right: var(--spacing-4);
58
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
59
+ right: max(var(--spacing-4), env(safe-area-inset-right, 0px));
58
60
  }
59
61
 
60
62
  .muka-toast--bottom-left {
61
- bottom: var(--spacing-4);
62
- left: var(--spacing-4);
63
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
64
+ left: max(var(--spacing-4), env(safe-area-inset-left, 0px));
63
65
  }
64
66
 
65
67
  .muka-toast--bottom-center {
66
- bottom: var(--spacing-4);
68
+ bottom: calc(var(--spacing-4) + env(safe-area-inset-bottom, 0px));
67
69
  left: 50%;
68
70
  transform: translateX(-50%);
69
71
  }