@ndla/primitives 1.0.126-alpha.0 → 1.0.128-alpha.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.
- package/dist/panda.buildinfo.json +1 -1
- package/dist/styles.css +20 -103
- package/package.json +6 -6
package/dist/styles.css
CHANGED
|
@@ -114,9 +114,6 @@
|
|
|
114
114
|
font-size: calc(var(--font-sizes-xxsmall) * 1.11);
|
|
115
115
|
line-height: calc(var(--line-heights-xsmall) * 1.11);
|
|
116
116
|
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@media print {
|
|
120
117
|
.textStyle_label\.medium {
|
|
121
118
|
font-size: var(--font-sizes-xsmall);
|
|
122
119
|
line-height: var(--line-heights-xsmall);
|
|
@@ -126,9 +123,6 @@
|
|
|
126
123
|
font-size: calc(var(--font-sizes-xsmall) * 1.11);
|
|
127
124
|
line-height: calc(var(--line-heights-xsmall) * 1.11);
|
|
128
125
|
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
@media print {
|
|
132
126
|
.textStyle_label\.large\! {
|
|
133
127
|
font-size: var(--font-sizes-small) !important;
|
|
134
128
|
line-height: var(--line-heights-small) !important;
|
|
@@ -138,9 +132,6 @@
|
|
|
138
132
|
font-size: calc(var(--font-sizes-small) * 1.11) !important;
|
|
139
133
|
line-height: calc(var(--line-heights-small) * 1.11) !important;
|
|
140
134
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@media print {
|
|
144
135
|
.textStyle_label\.xsmall {
|
|
145
136
|
font-size: var(--font-sizes-xxsmall);
|
|
146
137
|
line-height: var(--line-heights-xxsmall);
|
|
@@ -150,9 +141,6 @@
|
|
|
150
141
|
font-size: calc(var(--font-sizes-xxsmall) * 1.11);
|
|
151
142
|
line-height: calc(var(--line-heights-xxsmall) * 1.11);
|
|
152
143
|
}
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
@media print {
|
|
156
144
|
.textStyle_body\.medium {
|
|
157
145
|
font-size: var(--font-sizes-xsmall);
|
|
158
146
|
line-height: var(--line-heights-xsmall);
|
|
@@ -162,9 +150,6 @@
|
|
|
162
150
|
font-size: calc(var(--font-sizes-xsmall) * 1.11);
|
|
163
151
|
line-height: calc(var(--line-heights-xsmall) * 1.11);
|
|
164
152
|
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
@media print {
|
|
168
153
|
.textStyle_heading\.medium {
|
|
169
154
|
font-size: var(--font-sizes-xxlarge);
|
|
170
155
|
line-height: var(--line-heights-xxlarge);
|
|
@@ -174,9 +159,6 @@
|
|
|
174
159
|
font-size: calc(var(--font-sizes-xxlarge) * 1.11);
|
|
175
160
|
line-height: calc(var(--line-heights-xxlarge) * 1.11);
|
|
176
161
|
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
@media print {
|
|
180
162
|
.\[\&_\>_\*\]\:textStyle_label\.large\! > * {
|
|
181
163
|
font-size: var(--font-sizes-small) !important;
|
|
182
164
|
line-height: var(--line-heights-small) !important;
|
|
@@ -1750,12 +1732,7 @@
|
|
|
1750
1732
|
border-color: var(--colors-surface-action);
|
|
1751
1733
|
}
|
|
1752
1734
|
|
|
1753
|
-
.checked\:text-decoration_underline:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
|
|
1754
|
-
text-decoration: underline;
|
|
1755
|
-
text-decoration-thickness: max(0.0625em, 1px);
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
.highlighted\:text-decoration_underline[data-highlighted] {
|
|
1735
|
+
.checked\:text-decoration_underline:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]),.highlighted\:text-decoration_underline[data-highlighted] {
|
|
1759
1736
|
text-decoration: underline;
|
|
1760
1737
|
text-decoration-thickness: max(0.0625em, 1px);
|
|
1761
1738
|
}
|
|
@@ -2253,11 +2230,7 @@
|
|
|
2253
2230
|
border-radius: var(--radii-xsmall);
|
|
2254
2231
|
}
|
|
2255
2232
|
|
|
2256
|
-
.focusVisible\:ring_2px_solid:is(:focus-visible, [data-focus-visible]) {
|
|
2257
|
-
outline: 2px solid;
|
|
2258
|
-
}
|
|
2259
|
-
|
|
2260
|
-
.\[\&\:has\(input\:focus-visible\)\]\:ring_2px_solid:has(input:focus-visible) {
|
|
2233
|
+
.focusVisible\:ring_2px_solid:is(:focus-visible, [data-focus-visible]),.\[\&\:has\(input\:focus-visible\)\]\:ring_2px_solid:has(input:focus-visible) {
|
|
2261
2234
|
outline: 2px solid;
|
|
2262
2235
|
}
|
|
2263
2236
|
|
|
@@ -2539,11 +2512,7 @@
|
|
|
2539
2512
|
background: var(--colors-surface-disabled-subtle);
|
|
2540
2513
|
}
|
|
2541
2514
|
|
|
2542
|
-
.disabled\:hover\:bg_surface\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:hover, [data-hover]) {
|
|
2543
|
-
background: var(--colors-surface-disabled);
|
|
2544
|
-
}
|
|
2545
|
-
|
|
2546
|
-
.disabled\:checked\:bg_surface\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
|
|
2515
|
+
.disabled\:hover\:bg_surface\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:hover, [data-hover]),.disabled\:checked\:bg_surface\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
|
|
2547
2516
|
background: var(--colors-surface-disabled);
|
|
2548
2517
|
}
|
|
2549
2518
|
|
|
@@ -2563,31 +2532,15 @@
|
|
|
2563
2532
|
background: var(--colors-surface-default);
|
|
2564
2533
|
}
|
|
2565
2534
|
|
|
2566
|
-
.selected\:hover\:bg_surface\.hover:is([aria-selected=true], [data-selected]):is(:hover, [data-hover]) {
|
|
2567
|
-
background: var(--colors-surface-hover);
|
|
2568
|
-
}
|
|
2569
|
-
|
|
2570
|
-
.selected\:highlighted\:bg_surface\.hover:is([aria-selected=true], [data-selected])[data-highlighted] {
|
|
2571
|
-
background: var(--colors-surface-hover);
|
|
2572
|
-
}
|
|
2573
|
-
|
|
2574
|
-
.highlighted\:hover\:bg_surface\.hover[data-highlighted]:is(:hover, [data-hover]) {
|
|
2535
|
+
.selected\:hover\:bg_surface\.hover:is([aria-selected=true], [data-selected]):is(:hover, [data-hover]),.selected\:highlighted\:bg_surface\.hover:is([aria-selected=true], [data-selected])[data-highlighted],.highlighted\:hover\:bg_surface\.hover[data-highlighted]:is(:hover, [data-hover]) {
|
|
2575
2536
|
background: var(--colors-surface-hover);
|
|
2576
2537
|
}
|
|
2577
2538
|
|
|
2578
|
-
.disabled\:highlighted\:bg_surface\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])[data-highlighted] {
|
|
2539
|
+
.disabled\:highlighted\:bg_surface\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])[data-highlighted],.disabled\:selected\:bg_surface\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is([aria-selected=true], [data-selected]) {
|
|
2579
2540
|
background: var(--colors-surface-disabled);
|
|
2580
2541
|
}
|
|
2581
2542
|
|
|
2582
|
-
.disabled\:
|
|
2583
|
-
background: var(--colors-surface-disabled);
|
|
2584
|
-
}
|
|
2585
|
-
|
|
2586
|
-
.disabled\:hover\:bd-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:hover, [data-hover]) {
|
|
2587
|
-
border-color: var(--colors-stroke-disabled);
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
.disabled\:checked\:bd-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
|
|
2543
|
+
.disabled\:hover\:bd-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:hover, [data-hover]),.disabled\:checked\:bd-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) {
|
|
2591
2544
|
border-color: var(--colors-stroke-disabled);
|
|
2592
2545
|
}
|
|
2593
2546
|
|
|
@@ -2659,11 +2612,7 @@
|
|
|
2659
2612
|
list-style-type: square;
|
|
2660
2613
|
}
|
|
2661
2614
|
|
|
2662
|
-
.disabled\:\[\&_svg\]\:c_text\.onAction:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) svg {
|
|
2663
|
-
color: var(--colors-text-on-action);
|
|
2664
|
-
}
|
|
2665
|
-
|
|
2666
|
-
.disabled\:hover\:c_text\.onAction:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:hover, [data-hover]) {
|
|
2615
|
+
.disabled\:\[\&_svg\]\:c_text\.onAction:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) svg,.disabled\:hover\:c_text\.onAction:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is(:hover, [data-hover]) {
|
|
2667
2616
|
color: var(--colors-text-on-action);
|
|
2668
2617
|
}
|
|
2669
2618
|
|
|
@@ -2743,11 +2692,7 @@
|
|
|
2743
2692
|
margin-block-end: calc(var(--spacing-xxsmall) * -1);
|
|
2744
2693
|
}
|
|
2745
2694
|
|
|
2746
|
-
.ariaInvalid\:hover\:bx-sh-c_stroke\.error:has([aria-invalid='true']):is(:hover, [data-hover]),.ariaInvalid\:hover\:bx-sh-c_stroke\.error[aria-invalid='true']:is(:hover, [data-hover]) {
|
|
2747
|
-
--shadow-color: var(--colors-stroke-error);
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2750
|
-
.ariaInvalid\:focusWithin\:bx-sh-c_stroke\.error:has([aria-invalid='true']):focus-within,.ariaInvalid\:focusWithin\:bx-sh-c_stroke\.error[aria-invalid='true']:focus-within {
|
|
2695
|
+
.ariaInvalid\:hover\:bx-sh-c_stroke\.error:has([aria-invalid='true']):is(:hover, [data-hover]),.ariaInvalid\:hover\:bx-sh-c_stroke\.error[aria-invalid='true']:is(:hover, [data-hover]),.ariaInvalid\:focusWithin\:bx-sh-c_stroke\.error:has([aria-invalid='true']):focus-within,.ariaInvalid\:focusWithin\:bx-sh-c_stroke\.error[aria-invalid='true']:focus-within {
|
|
2751
2696
|
--shadow-color: var(--colors-stroke-error);
|
|
2752
2697
|
}
|
|
2753
2698
|
|
|
@@ -2763,11 +2708,7 @@
|
|
|
2763
2708
|
color: var(--colors-icon-default);
|
|
2764
2709
|
}
|
|
2765
2710
|
|
|
2766
|
-
.disabled\:highlighted\:c_text\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])[data-highlighted] {
|
|
2767
|
-
color: var(--colors-text-disabled);
|
|
2768
|
-
}
|
|
2769
|
-
|
|
2770
|
-
.disabled\:selected\:c_text\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is([aria-selected=true], [data-selected]) {
|
|
2711
|
+
.disabled\:highlighted\:c_text\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])[data-highlighted],.disabled\:selected\:c_text\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled=true]):is([aria-selected=true], [data-selected]) {
|
|
2771
2712
|
color: var(--colors-text-disabled);
|
|
2772
2713
|
}
|
|
2773
2714
|
|
|
@@ -2795,16 +2736,6 @@
|
|
|
2795
2736
|
color: var(--colors-text-subtle);
|
|
2796
2737
|
}
|
|
2797
2738
|
|
|
2798
|
-
.peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:horizontal\:bdr-t_xsmall[data-orientation=horizontal] {
|
|
2799
|
-
border-top-left-radius: var(--radii-xsmall);
|
|
2800
|
-
border-top-right-radius: var(--radii-xsmall);
|
|
2801
|
-
}
|
|
2802
|
-
|
|
2803
|
-
.peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:vertical\:bdr-r_xsmall[data-orientation=vertical] {
|
|
2804
|
-
border-top-right-radius: var(--radii-xsmall);
|
|
2805
|
-
border-bottom-right-radius: var(--radii-xsmall);
|
|
2806
|
-
}
|
|
2807
|
-
|
|
2808
2739
|
.highlighted\:\[\&_svg\]\:c_stroke\.hover[data-highlighted] svg {
|
|
2809
2740
|
color: var(--colors-stroke-hover);
|
|
2810
2741
|
}
|
|
@@ -2817,6 +2748,16 @@
|
|
|
2817
2748
|
--shadow-color: var(--colors-stroke-default);
|
|
2818
2749
|
}
|
|
2819
2750
|
|
|
2751
|
+
.peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:horizontal\:bdr-t_xsmall[data-orientation=horizontal] {
|
|
2752
|
+
border-top-left-radius: var(--radii-xsmall);
|
|
2753
|
+
border-top-right-radius: var(--radii-xsmall);
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
.peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:vertical\:bdr-r_xsmall[data-orientation=vertical] {
|
|
2757
|
+
border-top-right-radius: var(--radii-xsmall);
|
|
2758
|
+
border-bottom-right-radius: var(--radii-xsmall);
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2820
2761
|
.hover\:disabled\:border-style_solid:is(:hover, [data-hover]):is(:disabled, [disabled], [data-disabled], [aria-disabled=true]) {
|
|
2821
2762
|
border-style: solid;
|
|
2822
2763
|
}
|
|
@@ -2983,21 +2924,9 @@
|
|
|
2983
2924
|
.motionReduce\:anim-dur_2s {
|
|
2984
2925
|
animation-duration: 2s;
|
|
2985
2926
|
}
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2989
|
-
.open\:motionReduce\:anim_none:is([open], [data-open], [data-state="open"], :popover-open) {
|
|
2990
|
-
animation: none;
|
|
2991
|
-
}
|
|
2992
|
-
}
|
|
2993
|
-
|
|
2994
|
-
@media (prefers-reduced-motion: reduce) {
|
|
2995
|
-
.closed\:motionReduce\:anim_none:is([closed], [data-closed], [data-state="closed"]) {
|
|
2927
|
+
.open\:motionReduce\:anim_none:is([open], [data-open], [data-state="open"], :popover-open),.closed\:motionReduce\:anim_none:is([closed], [data-closed], [data-state="closed"]) {
|
|
2996
2928
|
animation: none;
|
|
2997
2929
|
}
|
|
2998
|
-
}
|
|
2999
|
-
|
|
3000
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3001
2930
|
.\[\&_svg\]\:motionReduce\:trs_none svg,.highlighted\:motionReduce\:trs_none[data-highlighted] {
|
|
3002
2931
|
transition: none;
|
|
3003
2932
|
}
|
|
@@ -3005,28 +2934,16 @@
|
|
|
3005
2934
|
--transition-duration: 0s;
|
|
3006
2935
|
transition-duration: 0s;
|
|
3007
2936
|
}
|
|
3008
|
-
}
|
|
3009
|
-
|
|
3010
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3011
2937
|
.hover\:motionReduce\:trs_none:is(:hover, [data-hover]) {
|
|
3012
2938
|
transition: none;
|
|
3013
2939
|
}
|
|
3014
|
-
}
|
|
3015
|
-
|
|
3016
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3017
2940
|
.hover\:motionReduce\:trf_translateX\(0\):is(:hover, [data-hover]) {
|
|
3018
2941
|
transform: translateX(0);
|
|
3019
2942
|
}
|
|
3020
|
-
}
|
|
3021
|
-
|
|
3022
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3023
2943
|
.hover\:motionReduce\:trs-dur_0s:is(:hover, [data-hover]) {
|
|
3024
2944
|
--transition-duration: 0s;
|
|
3025
2945
|
transition-duration: 0s;
|
|
3026
2946
|
}
|
|
3027
|
-
}
|
|
3028
|
-
|
|
3029
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3030
2947
|
.checked\:hover\:motionReduce\:trf_translateX\(120\%\):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):is(:hover, [data-hover]) {
|
|
3031
2948
|
transform: translateX(120%);
|
|
3032
2949
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/primitives",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.128-alpha.0",
|
|
5
5
|
"description": "Primitive components for NDLA.",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"exports": {
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@ark-ui/react": "^5.34.1",
|
|
36
|
-
"@ndla/styled-system": "^0.0.
|
|
37
|
-
"@ndla/util": "^5.0.
|
|
36
|
+
"@ndla/styled-system": "^0.0.49",
|
|
37
|
+
"@ndla/util": "^5.0.21-alpha.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ndla/preset-panda": "^0.0.
|
|
41
|
-
"@pandacss/dev": "^1.
|
|
40
|
+
"@ndla/preset-panda": "^0.0.76",
|
|
41
|
+
"@pandacss/dev": "^1.10.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">= 18",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f8a73392a71c05f052f6cc69d55ca57c38e0db5b"
|
|
51
51
|
}
|