@milktop/react-ui 0.3.18 → 0.3.19
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/chart/chart.css
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
[data-scope=sparkline][data-part=line] { stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
|
|
30
30
|
}
|
|
31
31
|
@layer ui {
|
|
32
|
-
[data-scope=donut][data-part=root] { display: inline-flex; align-items: center; gap: 1.5rem; max-width: 100%; color: var(--ui-text); font-family: var(--ui-font); font-size: 13px;
|
|
32
|
+
[data-scope=donut][data-part=root] { position: relative; display: inline-flex; align-items: center; gap: 1.5rem; max-width: 100%; color: var(--ui-text); font-family: var(--ui-font); font-size: 13px;
|
|
33
33
|
&[data-legend=bottom] { flex-direction: column; gap: 1rem; } }
|
|
34
34
|
[data-scope=donut][data-part=frame] { position: relative; flex-shrink: 0; }
|
|
35
35
|
[data-scope=donut][data-part=svg] { display: block; overflow: visible; }
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@layer ui {
|
|
2
|
-
|
|
2
|
+
/* Positioned so the hidden input and label stay inside it, not placed against the body
|
|
3
|
+
past a scrolling Page, where focusing one scrolls the window. */
|
|
4
|
+
[data-scope=checkbox][data-part=root] { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; vertical-align: top; cursor: pointer;
|
|
3
5
|
color: var(--ui-text); font-family: var(--ui-font); font-size: 14px;
|
|
4
6
|
&[data-disabled] { opacity: 0.5; cursor: not-allowed; } }
|
|
5
7
|
[data-scope=checkbox][data-part=control] { display: grid; place-items: center; flex-shrink: 0; width: 1rem; height: 1rem; box-sizing: border-box;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui {
|
|
2
|
-
[data-scope=file-upload][data-part=root] { display: block; min-width: 0; color: var(--ui-text); font-family: var(--ui-font); }
|
|
2
|
+
[data-scope=file-upload][data-part=root] { position: relative; display: block; min-width: 0; color: var(--ui-text); font-family: var(--ui-font); }
|
|
3
3
|
[data-scope=file-upload][data-part=label] { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0.375rem; }
|
|
4
4
|
[data-scope=file-upload][data-part=dropzone] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem;
|
|
5
5
|
padding: 1.5rem; box-sizing: border-box; text-align: center; background: var(--ui-surface);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui {
|
|
2
|
-
[data-scope=pin-input][data-part=root] { display: block; color: var(--ui-text); font-family: var(--ui-font); }
|
|
2
|
+
[data-scope=pin-input][data-part=root] { position: relative; display: block; color: var(--ui-text); font-family: var(--ui-font); }
|
|
3
3
|
[data-scope=pin-input][data-part=label] { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0.375rem; }
|
|
4
4
|
[data-scope=pin-input][data-part=control] { display: flex; gap: 0.5rem; }
|
|
5
5
|
[data-scope=pin-input][data-part=input] { width: var(--ui-control-height); height: var(--ui-control-height); padding: 0; box-sizing: border-box;
|
package/dist/switch/switch.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@layer ui {
|
|
2
|
-
[data-scope=switch][data-part=root] { display: inline-flex; align-items: center; gap: 0.5rem; vertical-align: top; cursor: pointer;
|
|
2
|
+
[data-scope=switch][data-part=root] { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; vertical-align: top; cursor: pointer;
|
|
3
3
|
color: var(--ui-text); font-family: var(--ui-font); font-size: 14px;
|
|
4
4
|
&[data-disabled] { opacity: 0.5; cursor: not-allowed; } }
|
|
5
5
|
[data-scope=switch][data-part=control] { display: inline-flex; align-items: center; flex-shrink: 0; width: 2.25rem; height: 1.25rem;
|
package/dist/table/table.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
&[data-size=sm] { --cell-x: 0.625rem; --cell-y: 0.375rem; --cell-h: 2.25rem; --head-h: 2rem; }
|
|
7
7
|
&[data-size=lg] { --cell-x: 1rem; --cell-y: 1rem; --cell-h: 3.5rem; --head-h: 2.5rem; } }
|
|
8
8
|
/* Scrolls sideways on narrow screens; with maxHeight, down too, under a sticky header. */
|
|
9
|
-
[data-scope=table][data-part=scroll] { width: 100%; overflow-x: auto; box-sizing: border-box;
|
|
9
|
+
[data-scope=table][data-part=scroll] { position: relative; width: 100%; overflow-x: auto; box-sizing: border-box;
|
|
10
10
|
background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: calc(var(--ui-radius) + 2px); box-shadow: var(--ui-card-shadow);
|
|
11
11
|
&[data-sticky] { overflow-y: auto; }
|
|
12
12
|
[data-flush] > & { border: none; border-radius: 0; background: transparent; box-shadow: none; }
|