@ndla/primitives 1.0.23-alpha.0 → 1.0.25-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 +11 -5
- package/dist/styles.css +38 -16
- package/es/ArticleLists.js +10 -7
- package/es/Figure.js +8 -2
- package/es/Hero.js +2 -2
- package/es/ListItem/ListItem.js +8 -0
- package/es/index.js +1 -0
- package/lib/ArticleLists.d.ts +10 -7
- package/lib/ArticleLists.js +10 -7
- package/lib/Figure.js +8 -2
- package/lib/Hero.d.ts +3 -3
- package/lib/Hero.js +2 -2
- package/lib/ListItem/ListItem.d.ts +8 -0
- package/lib/ListItem/ListItem.js +8 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +31 -0
- package/package.json +5 -5
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"counterReset]___[value:level4 var(--start, 0)]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > ol:not([data-variant='letters'])<___>&[data-count='true']",
|
|
74
74
|
"counterIncrement]___[value:level4]___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > ol:not([data-variant='letters'])<___>& > li",
|
|
75
75
|
"content]___[value:counter(level1, decimal) '.' counter(level2, decimal) '.' counter(level3, decimal) '.' counter(level4, decimal) '. ']___[cond:& > li<___>& > ol:not([data-variant='letters'])<___>& > li<___>& > ol:not([data-variant='letters'])<___>& > ol:not([data-variant='letters'])<___>& > li<___>_marker",
|
|
76
|
-
"paddingInlineStart]___[value:
|
|
76
|
+
"paddingInlineStart]___[value:medium",
|
|
77
77
|
"content]___[value:counter(level1, upper-alpha) '. ']___[cond:& > li<___>_marker",
|
|
78
|
-
"
|
|
79
|
-
"content]___[value:counter(level1, lower-
|
|
78
|
+
"paddingInlineStart]___[value:small]___[cond:& > li<___>& > ol[data-variant='letters']",
|
|
79
|
+
"content]___[value:counter(level1, lower-alpha) '. ']___[cond:& > li<___>& > ol[data-variant='letters']<___>& > li<___>_marker",
|
|
80
|
+
"content]___[value:counter(level1, lower-roman) '. ']___[cond:& > li<___>& > ol[data-variant='letters']<___>& > li<___>& > ol[data-variant='letters'] > li<___>_marker",
|
|
80
81
|
"listStyle]___[value:revert",
|
|
81
|
-
"paddingInlineStart]___[value:medium",
|
|
82
82
|
"color]___[value:icon.strong]___[cond:& li<___>_marker",
|
|
83
83
|
"fontWeight]___[value:bold]___[cond:& dt",
|
|
84
84
|
"marginInlineStart]___[value:medium]___[cond:& dd",
|
|
@@ -342,6 +342,8 @@
|
|
|
342
342
|
"left]___[value:auto",
|
|
343
343
|
"marginBlock]___[value:xsmall",
|
|
344
344
|
"paddingInlineEnd]___[value:medium",
|
|
345
|
+
"paddingInlineEnd]___[value:0]___[cond:tabletDown",
|
|
346
|
+
"paddingInlineStart]___[value:0]___[cond:tabletDown",
|
|
345
347
|
"paddingInlineStart]___[value:0",
|
|
346
348
|
"paddingInlineEnd]___[value:0",
|
|
347
349
|
"gap]___[value:small",
|
|
@@ -375,6 +377,7 @@
|
|
|
375
377
|
"background]___[value:surface.brand.2.bold",
|
|
376
378
|
"background]___[value:surface.brand.2",
|
|
377
379
|
"background]___[value:surface.brand.1",
|
|
380
|
+
"background]___[value:surface.brand.1.moderate",
|
|
378
381
|
"background]___[value:surface.infoSubtle",
|
|
379
382
|
"flexWrap]___[value:wrap",
|
|
380
383
|
"alignItems]___[value:flex-end",
|
|
@@ -619,7 +622,6 @@
|
|
|
619
622
|
"zIndex]___[value:var(--z-index)",
|
|
620
623
|
"transitionDuration]___[value:slow",
|
|
621
624
|
"transitionProperty]___[value:translate, scale, opacity, height",
|
|
622
|
-
"background]___[value:surface.brand.1.moderate",
|
|
623
625
|
"background]___[value:surface.brand.1.strong",
|
|
624
626
|
"paddingInlineEnd]___[value:xxlarge",
|
|
625
627
|
"top]___[value:xxsmall",
|
|
@@ -675,6 +677,10 @@
|
|
|
675
677
|
"--background-hover]___[value:colors.surface.brand.2.moderate",
|
|
676
678
|
"--background-current]___[value:colors.surface.brand.2.bold",
|
|
677
679
|
"--border-hover]___[value:colors.surface.brand.2.strong",
|
|
680
|
+
"--background-hover]___[value:colors.surface.action.myNdla.hover",
|
|
681
|
+
"--background-current]___[value:colors.surface.action.myNdla.current",
|
|
682
|
+
"--border-hover]___[value:colors.stroke.subtle",
|
|
683
|
+
"--color-current-hover]___[value:colors.text.default",
|
|
678
684
|
"borderBlockColor]___[value:stroke.subtle",
|
|
679
685
|
"borderBlockColor]___[value:var(--border-hover)]___[cond:_hover",
|
|
680
686
|
"borderBlockColor]___[value:var(--border-hover)]___[cond:_highlighted",
|
package/dist/styles.css
CHANGED
|
@@ -158,18 +158,14 @@
|
|
|
158
158
|
margin-inline: var(--spacing-small);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.
|
|
162
|
-
padding-inline-start: var(--spacing-
|
|
161
|
+
.ps_medium {
|
|
162
|
+
padding-inline-start: var(--spacing-medium);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.li-s_revert {
|
|
166
166
|
list-style: revert;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
.ps_medium {
|
|
170
|
-
padding-inline-start: var(--spacing-medium);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
169
|
.px_xsmall {
|
|
174
170
|
padding-inline: var(--spacing-xsmall);
|
|
175
171
|
}
|
|
@@ -633,6 +629,10 @@
|
|
|
633
629
|
background: var(--colors-surface-brand-1);
|
|
634
630
|
}
|
|
635
631
|
|
|
632
|
+
.bg_surface\.brand\.1\.moderate {
|
|
633
|
+
background: var(--colors-surface-brand-1-moderate);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
636
|
.bg_surface\.infoSubtle {
|
|
637
637
|
background: var(--colors-surface-info-subtle);
|
|
638
638
|
}
|
|
@@ -893,10 +893,6 @@
|
|
|
893
893
|
z-index: var(--z-index);
|
|
894
894
|
}
|
|
895
895
|
|
|
896
|
-
.bg_surface\.brand\.1\.moderate {
|
|
897
|
-
background: var(--colors-surface-brand-1-moderate);
|
|
898
|
-
}
|
|
899
|
-
|
|
900
896
|
.bg_surface\.brand\.1\.strong {
|
|
901
897
|
background: var(--colors-surface-brand-1-strong);
|
|
902
898
|
}
|
|
@@ -989,6 +985,22 @@
|
|
|
989
985
|
--border-hover: var(--colors-surface-brand-2-strong);
|
|
990
986
|
}
|
|
991
987
|
|
|
988
|
+
.\--background-hover_colors\.surface\.action\.myNdla\.hover {
|
|
989
|
+
--background-hover: var(--colors-surface-action-my-ndla-hover);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
.\--background-current_colors\.surface\.action\.myNdla\.current {
|
|
993
|
+
--background-current: var(--colors-surface-action-my-ndla-current);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.\--border-hover_colors\.stroke\.subtle {
|
|
997
|
+
--border-hover: var(--colors-stroke-subtle);
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.\--color-current-hover_colors\.text\.default {
|
|
1001
|
+
--color-current-hover: var(--colors-text-default);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
992
1004
|
.bd-y-c_stroke\.subtle {
|
|
993
1005
|
border-block-color: var(--colors-stroke-subtle);
|
|
994
1006
|
}
|
|
@@ -2364,6 +2376,10 @@
|
|
|
2364
2376
|
counter-reset: level2;
|
|
2365
2377
|
}
|
|
2366
2378
|
|
|
2379
|
+
.\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]\]\:ps_small > li > ol[data-variant='letters'] {
|
|
2380
|
+
padding-inline-start: var(--spacing-small);
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2367
2383
|
.\[\&_li\]\:marker\:c_icon\.strong li::marker {
|
|
2368
2384
|
color: var(--colors-icon-strong);
|
|
2369
2385
|
}
|
|
@@ -2686,10 +2702,6 @@
|
|
|
2686
2702
|
--shadow-color: var(--color-current-hover);
|
|
2687
2703
|
}
|
|
2688
2704
|
|
|
2689
|
-
.\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:marker\:content_counter\(level1\,_lower-alpha\)_\'\._\' > li > ol[data-variant='letters'] > li::marker {
|
|
2690
|
-
content: counter(level1, lower-alpha) '. ';
|
|
2691
|
-
}
|
|
2692
|
-
|
|
2693
2705
|
.disabled\:checked\:hover\:bd-c_stroke\.disabled:is(:disabled, [disabled], [data-disabled], [aria-disabled='true']):is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]):is(:hover, [data-hover]) {
|
|
2694
2706
|
border-color: var(--colors-stroke-disabled);
|
|
2695
2707
|
}
|
|
@@ -2722,8 +2734,8 @@
|
|
|
2722
2734
|
content: counter(level1, decimal) '.' counter(level2, decimal) '. ';
|
|
2723
2735
|
}
|
|
2724
2736
|
|
|
2725
|
-
.\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]
|
|
2726
|
-
content: counter(level1, lower-
|
|
2737
|
+
.\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]\]\:\[\&_\>_li\]\:marker\:content_counter\(level1\,_lower-alpha\)_\'\._\' > li > ol[data-variant='letters'] > li::marker {
|
|
2738
|
+
content: counter(level1, lower-alpha) '. ';
|
|
2727
2739
|
}
|
|
2728
2740
|
|
|
2729
2741
|
.\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&\[data-count\=\'true\'\]\]\:counter-reset_level3_var\(--start\,_0\) > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters'])[data-count='true'] {
|
|
@@ -2738,6 +2750,10 @@
|
|
|
2738
2750
|
counter-reset: level4;
|
|
2739
2751
|
}
|
|
2740
2752
|
|
|
2753
|
+
.\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]\]\:\[\&_\>_li\]\:\[\&_\>_ol\[data-variant\=\'letters\'\]_\>_li\]\:marker\:content_counter\(level1\,_lower-roman\)_\'\._\' > li > ol[data-variant='letters'] > li > ol[data-variant='letters'] > li::marker {
|
|
2754
|
+
content: counter(level1, lower-roman) '. ';
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2741
2757
|
.\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_li\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&_\>_ol\:not\(\[data-variant\=\'letters\'\]\)\]\:\[\&\[data-count\=\'true\'\]\]\:counter-reset_level4_var\(--start\,_0\) > li > ol:not([data-variant='letters']) > li > ol:not([data-variant='letters']) > ol:not([data-variant='letters'])[data-count='true'] {
|
|
2742
2758
|
counter-reset: level4 var(--start, 0);
|
|
2743
2759
|
}
|
|
@@ -2817,6 +2833,12 @@
|
|
|
2817
2833
|
}
|
|
2818
2834
|
.tabletDown\:min-h_100\% {
|
|
2819
2835
|
min-height: 100%;
|
|
2836
|
+
}
|
|
2837
|
+
.tabletDown\:pe_0 {
|
|
2838
|
+
padding-inline-end: 0;
|
|
2839
|
+
}
|
|
2840
|
+
.tabletDown\:ps_0 {
|
|
2841
|
+
padding-inline-start: 0;
|
|
2820
2842
|
}
|
|
2821
2843
|
}
|
|
2822
2844
|
|
package/es/ArticleLists.js
CHANGED
|
@@ -78,19 +78,22 @@ const orderedListRecipe = cva({
|
|
|
78
78
|
"&[data-count='true']": {
|
|
79
79
|
counterReset: "level1 var(--start, 0)"
|
|
80
80
|
},
|
|
81
|
-
paddingInlineStart: "
|
|
81
|
+
paddingInlineStart: "medium",
|
|
82
82
|
"& > li": {
|
|
83
83
|
counterIncrement: "level1",
|
|
84
84
|
_marker: {
|
|
85
85
|
content: "counter(level1, upper-alpha) '. '"
|
|
86
86
|
},
|
|
87
|
-
"& > ol[data-variant='letters']
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
"& > ol[data-variant='letters'] > li": {
|
|
87
|
+
"& > ol[data-variant='letters']": {
|
|
88
|
+
paddingInlineStart: "small",
|
|
89
|
+
"& > li": {
|
|
92
90
|
_marker: {
|
|
93
|
-
content: "counter(level1, lower-
|
|
91
|
+
content: "counter(level1, lower-alpha) '. '"
|
|
92
|
+
},
|
|
93
|
+
"& > ol[data-variant='letters'] > li": {
|
|
94
|
+
_marker: {
|
|
95
|
+
content: "counter(level1, lower-roman) '. '"
|
|
96
|
+
}
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
99
|
}
|
package/es/Figure.js
CHANGED
|
@@ -81,13 +81,19 @@ const figureRecipe = cva({
|
|
|
81
81
|
float: "left",
|
|
82
82
|
size: ["medium", "small", "xsmall"],
|
|
83
83
|
css: {
|
|
84
|
-
paddingInlineEnd: "medium"
|
|
84
|
+
paddingInlineEnd: "medium",
|
|
85
|
+
tabletDown: {
|
|
86
|
+
paddingInlineEnd: "0"
|
|
87
|
+
}
|
|
85
88
|
}
|
|
86
89
|
}, {
|
|
87
90
|
float: "right",
|
|
88
91
|
size: ["medium", "small", "xsmall"],
|
|
89
92
|
css: {
|
|
90
|
-
paddingInlineStart: "medium"
|
|
93
|
+
paddingInlineStart: "medium",
|
|
94
|
+
tabletDown: {
|
|
95
|
+
paddingInlineStart: "0"
|
|
96
|
+
}
|
|
91
97
|
}
|
|
92
98
|
}, {
|
|
93
99
|
float: ["left", "right"],
|
package/es/Hero.js
CHANGED
package/es/ListItem/ListItem.js
CHANGED
|
@@ -122,6 +122,14 @@ export const listItemRecipe = sva({
|
|
|
122
122
|
"--border-hover": "colors.surface.brand.2.strong",
|
|
123
123
|
"--color-current-hover": "colors.text.onAction"
|
|
124
124
|
}
|
|
125
|
+
},
|
|
126
|
+
brand3: {
|
|
127
|
+
root: {
|
|
128
|
+
"--background-hover": "colors.surface.action.myNdla.hover",
|
|
129
|
+
"--background-current": "colors.surface.action.myNdla.current",
|
|
130
|
+
"--border-hover": "colors.stroke.subtle",
|
|
131
|
+
"--color-current-hover": "colors.text.default"
|
|
132
|
+
}
|
|
125
133
|
}
|
|
126
134
|
},
|
|
127
135
|
variant: {
|
package/es/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export { CheckboxRoot, CheckboxIndicator, CheckboxLabel, CheckboxControl, Checkb
|
|
|
17
17
|
export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, ComboboxList } from "./Combobox";
|
|
18
18
|
export { DialogRoot, DialogBackdrop, DialogStandaloneContent, DialogPositioner, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DialogCloseTrigger, DialogHeader, DialogBody } from "./Dialog";
|
|
19
19
|
export { ExpandableBox, ExpandableBoxSummary } from "./ExpandableBox";
|
|
20
|
+
export { ErrorMessageRoot, ErrorMessageContent, ErrorMessageActions, ErrorMessageDescription, ErrorMessageTitle } from "./ErrorMessage/ErrorMessage";
|
|
20
21
|
export { FieldRoot, FieldsetRoot } from "./Field";
|
|
21
22
|
export { FieldErrorMessage, FieldsetErrorText } from "./FieldErrorMessage";
|
|
22
23
|
export { FieldHelper, FieldsetHelper } from "./FieldHelper";
|
package/lib/ArticleLists.d.ts
CHANGED
|
@@ -65,19 +65,22 @@ declare const orderedListRecipe: import("@ndla/styled-system/types").RecipeRunti
|
|
|
65
65
|
"&[data-count='true']": {
|
|
66
66
|
counterReset: "level1 var(--start, 0)";
|
|
67
67
|
};
|
|
68
|
-
paddingInlineStart: "
|
|
68
|
+
paddingInlineStart: "medium";
|
|
69
69
|
"& > li": {
|
|
70
70
|
counterIncrement: "level1";
|
|
71
71
|
_marker: {
|
|
72
72
|
content: "counter(level1, upper-alpha) '. '";
|
|
73
73
|
};
|
|
74
|
-
"& > ol[data-variant='letters']
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
};
|
|
78
|
-
"& > ol[data-variant='letters'] > li": {
|
|
74
|
+
"& > ol[data-variant='letters']": {
|
|
75
|
+
paddingInlineStart: "small";
|
|
76
|
+
"& > li": {
|
|
79
77
|
_marker: {
|
|
80
|
-
content: "counter(level1, lower-
|
|
78
|
+
content: "counter(level1, lower-alpha) '. '";
|
|
79
|
+
};
|
|
80
|
+
"& > ol[data-variant='letters'] > li": {
|
|
81
|
+
_marker: {
|
|
82
|
+
content: "counter(level1, lower-roman) '. '";
|
|
83
|
+
};
|
|
81
84
|
};
|
|
82
85
|
};
|
|
83
86
|
};
|
package/lib/ArticleLists.js
CHANGED
|
@@ -84,19 +84,22 @@ const orderedListRecipe = (0, _css.cva)({
|
|
|
84
84
|
"&[data-count='true']": {
|
|
85
85
|
counterReset: "level1 var(--start, 0)"
|
|
86
86
|
},
|
|
87
|
-
paddingInlineStart: "
|
|
87
|
+
paddingInlineStart: "medium",
|
|
88
88
|
"& > li": {
|
|
89
89
|
counterIncrement: "level1",
|
|
90
90
|
_marker: {
|
|
91
91
|
content: "counter(level1, upper-alpha) '. '"
|
|
92
92
|
},
|
|
93
|
-
"& > ol[data-variant='letters']
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
"& > ol[data-variant='letters'] > li": {
|
|
93
|
+
"& > ol[data-variant='letters']": {
|
|
94
|
+
paddingInlineStart: "small",
|
|
95
|
+
"& > li": {
|
|
98
96
|
_marker: {
|
|
99
|
-
content: "counter(level1, lower-
|
|
97
|
+
content: "counter(level1, lower-alpha) '. '"
|
|
98
|
+
},
|
|
99
|
+
"& > ol[data-variant='letters'] > li": {
|
|
100
|
+
_marker: {
|
|
101
|
+
content: "counter(level1, lower-roman) '. '"
|
|
102
|
+
}
|
|
100
103
|
}
|
|
101
104
|
}
|
|
102
105
|
}
|
package/lib/Figure.js
CHANGED
|
@@ -87,13 +87,19 @@ const figureRecipe = (0, _css.cva)({
|
|
|
87
87
|
float: "left",
|
|
88
88
|
size: ["medium", "small", "xsmall"],
|
|
89
89
|
css: {
|
|
90
|
-
paddingInlineEnd: "medium"
|
|
90
|
+
paddingInlineEnd: "medium",
|
|
91
|
+
tabletDown: {
|
|
92
|
+
paddingInlineEnd: "0"
|
|
93
|
+
}
|
|
91
94
|
}
|
|
92
95
|
}, {
|
|
93
96
|
float: "right",
|
|
94
97
|
size: ["medium", "small", "xsmall"],
|
|
95
98
|
css: {
|
|
96
|
-
paddingInlineStart: "medium"
|
|
99
|
+
paddingInlineStart: "medium",
|
|
100
|
+
tabletDown: {
|
|
101
|
+
paddingInlineStart: "0"
|
|
102
|
+
}
|
|
97
103
|
}
|
|
98
104
|
}, {
|
|
99
105
|
float: ["left", "right"],
|
package/lib/Hero.d.ts
CHANGED
|
@@ -43,9 +43,9 @@ declare const heroRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeF
|
|
|
43
43
|
background: "surface.brand.1";
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
brand1Moderate: {
|
|
47
47
|
background: {
|
|
48
|
-
background: "surface.brand.1.
|
|
48
|
+
background: "surface.brand.1.moderate";
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
neutral: {
|
|
@@ -62,7 +62,7 @@ export declare const Hero: import("react").ForwardRefExoticComponent<Omit<import
|
|
|
62
62
|
consumeCss?: boolean | undefined;
|
|
63
63
|
} & import("@ndla/styled-system/types").WithCss & {
|
|
64
64
|
absolute?: boolean | undefined;
|
|
65
|
-
variant?: "primary" | "neutral" | "brand1" | "brand2" | "brand2Bold" | "
|
|
65
|
+
variant?: "primary" | "neutral" | "brand1" | "brand2" | "brand2Bold" | "brand1Moderate" | undefined;
|
|
66
66
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
67
67
|
export type HeroBackgroundProps = HTMLArkProps<"div"> & JsxStyleProps;
|
|
68
68
|
export declare const HeroBackground: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("@ark-ui/react").PolymorphicProps & {
|
package/lib/Hero.js
CHANGED
|
@@ -75,6 +75,14 @@ export declare const listItemRecipe: import("@ndla/styled-system/types").SlotRec
|
|
|
75
75
|
"--color-current-hover": "colors.text.onAction";
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
|
+
brand3: {
|
|
79
|
+
root: {
|
|
80
|
+
"--background-hover": "colors.surface.action.myNdla.hover";
|
|
81
|
+
"--background-current": "colors.surface.action.myNdla.current";
|
|
82
|
+
"--border-hover": "colors.stroke.subtle";
|
|
83
|
+
"--color-current-hover": "colors.text.default";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
78
86
|
};
|
|
79
87
|
variant: {
|
|
80
88
|
standalone: {
|
package/lib/ListItem/ListItem.js
CHANGED
|
@@ -128,6 +128,14 @@ const listItemRecipe = exports.listItemRecipe = (0, _css.sva)({
|
|
|
128
128
|
"--border-hover": "colors.surface.brand.2.strong",
|
|
129
129
|
"--color-current-hover": "colors.text.onAction"
|
|
130
130
|
}
|
|
131
|
+
},
|
|
132
|
+
brand3: {
|
|
133
|
+
root: {
|
|
134
|
+
"--background-hover": "colors.surface.action.myNdla.hover",
|
|
135
|
+
"--background-current": "colors.surface.action.myNdla.current",
|
|
136
|
+
"--border-hover": "colors.stroke.subtle",
|
|
137
|
+
"--color-current-hover": "colors.text.default"
|
|
138
|
+
}
|
|
131
139
|
}
|
|
132
140
|
},
|
|
133
141
|
variant: {
|
package/lib/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export type { DialogVariantProps, DialogRootProps } from "./Dialog";
|
|
|
26
26
|
export { DialogRoot, DialogBackdrop, DialogStandaloneContent, DialogPositioner, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DialogCloseTrigger, DialogHeader, DialogBody, } from "./Dialog";
|
|
27
27
|
export type { ExpandableBoxProps, ExpandableBoxSummaryProps } from "./ExpandableBox";
|
|
28
28
|
export { ExpandableBox, ExpandableBoxSummary } from "./ExpandableBox";
|
|
29
|
+
export { ErrorMessageRoot, ErrorMessageContent, ErrorMessageActions, ErrorMessageDescription, ErrorMessageTitle, } from "./ErrorMessage/ErrorMessage";
|
|
29
30
|
export { FieldRoot, FieldsetRoot } from "./Field";
|
|
30
31
|
export { FieldErrorMessage, FieldsetErrorText } from "./FieldErrorMessage";
|
|
31
32
|
export { FieldHelper, FieldsetHelper } from "./FieldHelper";
|
package/lib/index.js
CHANGED
|
@@ -273,6 +273,36 @@ Object.defineProperty(exports, "DialogTrigger", {
|
|
|
273
273
|
return _Dialog.DialogTrigger;
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
+
Object.defineProperty(exports, "ErrorMessageActions", {
|
|
277
|
+
enumerable: true,
|
|
278
|
+
get: function () {
|
|
279
|
+
return _ErrorMessage.ErrorMessageActions;
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(exports, "ErrorMessageContent", {
|
|
283
|
+
enumerable: true,
|
|
284
|
+
get: function () {
|
|
285
|
+
return _ErrorMessage.ErrorMessageContent;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
Object.defineProperty(exports, "ErrorMessageDescription", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function () {
|
|
291
|
+
return _ErrorMessage.ErrorMessageDescription;
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
Object.defineProperty(exports, "ErrorMessageRoot", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function () {
|
|
297
|
+
return _ErrorMessage.ErrorMessageRoot;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
Object.defineProperty(exports, "ErrorMessageTitle", {
|
|
301
|
+
enumerable: true,
|
|
302
|
+
get: function () {
|
|
303
|
+
return _ErrorMessage.ErrorMessageTitle;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
276
306
|
Object.defineProperty(exports, "ExpandableBox", {
|
|
277
307
|
enumerable: true,
|
|
278
308
|
get: function () {
|
|
@@ -1196,6 +1226,7 @@ var _Checkbox = require("./Checkbox");
|
|
|
1196
1226
|
var _Combobox = require("./Combobox");
|
|
1197
1227
|
var _Dialog = require("./Dialog");
|
|
1198
1228
|
var _ExpandableBox = require("./ExpandableBox");
|
|
1229
|
+
var _ErrorMessage = require("./ErrorMessage/ErrorMessage");
|
|
1199
1230
|
var _Field = require("./Field");
|
|
1200
1231
|
var _FieldErrorMessage = require("./FieldErrorMessage");
|
|
1201
1232
|
var _FieldHelper = require("./FieldHelper");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/primitives",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25-alpha.0",
|
|
4
4
|
"description": "Primitive components for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"lib"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ark-ui/react": "^3.11.
|
|
32
|
-
"@ndla/styled-system": "^0.0.
|
|
31
|
+
"@ark-ui/react": "^3.11.1",
|
|
32
|
+
"@ndla/styled-system": "^0.0.21",
|
|
33
33
|
"@ndla/util": "^4.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@ndla/preset-panda": "^0.0.
|
|
36
|
+
"@ndla/preset-panda": "^0.0.29",
|
|
37
37
|
"@pandacss/dev": "^0.46.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "d97a2f9c0e8bc60c499000bb27c8fe4441740381"
|
|
47
47
|
}
|