@ndla/primitives 1.0.37-alpha.0 → 1.0.38-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.
@@ -575,13 +575,17 @@
575
575
  "borderTopLeftRadius]___[value:xsmall]___[cond:_vertical",
576
576
  "borderBottomLeftRadius]___[value:xsmall]___[cond:_vertical",
577
577
  "background]___[value:surface.default]___[cond:_selected",
578
- "borderColor]___[value:stroke.subtle]___[cond:_selected",
579
- "borderBottomColor]___[value:transparent]___[cond:_selected<___>_horizontal",
580
- "borderRightColor]___[value:transparent]___[cond:_selected<___>_vertical",
578
+ "borderColor]___[value:stroke.default]___[cond:_selected",
579
+ "borderBottom]___[value:none]___[cond:_selected<___>_horizontal",
580
+ "borderRight]___[value:none]___[cond:_selected<___>_vertical",
581
581
  "outlineOffset]___[value:-3px]___[cond:_focusVisible",
582
582
  "paddingBlockStart]___[value:xsmall]___[cond:_horizontal",
583
583
  "paddingInlineStart]___[value:xsmall]___[cond:_vertical",
584
584
  "boxShadow]___[value:0 0 0 3px var(--shadow-color)]___[cond:_focusVisible",
585
+ "borderBottomRadius]___[value:xsmall]___[cond:_vertical",
586
+ "borderRightRadius]___[value:xsmall]___[cond:_vertical",
587
+ "borderRightRadius]___[value:xsmall]___[cond:_horizontal",
588
+ "borderBottomLeftRadius]___[value:xsmall]___[cond:_horizontal",
585
589
  "background]___[value:stroke.default",
586
590
  "height]___[value:var(--height)]___[cond:_peerFocusVisible",
587
591
  "width]___[value:var(--width)]___[cond:_peerFocusVisible",
package/dist/styles.css CHANGED
@@ -1850,6 +1850,16 @@
1850
1850
  padding-inline-start: var(--spacing-xsmall);
1851
1851
  }
1852
1852
 
1853
+ .vertical\:bdr-b_xsmall[data-orientation=vertical] {
1854
+ border-bottom-left-radius: var(--radii-xsmall);
1855
+ border-bottom-right-radius: var(--radii-xsmall);
1856
+ }
1857
+
1858
+ .vertical\:bdr-r_xsmall[data-orientation=vertical],.horizontal\:bdr-r_xsmall[data-orientation=horizontal] {
1859
+ border-top-right-radius: var(--radii-xsmall);
1860
+ border-bottom-right-radius: var(--radii-xsmall);
1861
+ }
1862
+
1853
1863
  .horizontal\:h_3[data-orientation=horizontal] {
1854
1864
  height: var(--sizes-3);
1855
1865
  }
@@ -2038,8 +2048,12 @@
2038
2048
  border-bottom-left-radius: var(--radii-xsmall);
2039
2049
  }
2040
2050
 
2041
- .selected\:bd-c_stroke\.subtle:is([aria-selected=true], [data-selected]) {
2042
- border-color: var(--colors-stroke-subtle);
2051
+ .selected\:bd-c_stroke\.default:is([aria-selected=true], [data-selected]) {
2052
+ border-color: var(--colors-stroke-default);
2053
+ }
2054
+
2055
+ .horizontal\:bdr-bl_xsmall[data-orientation=horizontal] {
2056
+ border-bottom-left-radius: var(--radii-xsmall);
2043
2057
  }
2044
2058
 
2045
2059
  .horizontal\:top_calc\(var\(--top\)_\+_var\(--height\)_-_6px\)[data-orientation=horizontal] {
@@ -2580,6 +2594,14 @@
2580
2594
  color: var(--colors-text-subtle);
2581
2595
  }
2582
2596
 
2597
+ .selected\:horizontal\:bd-b_none:is([aria-selected=true], [data-selected])[data-orientation=horizontal] {
2598
+ border-bottom: none;
2599
+ }
2600
+
2601
+ .selected\:vertical\:bd-r_none:is([aria-selected=true], [data-selected])[data-orientation=vertical] {
2602
+ border-right: none;
2603
+ }
2604
+
2583
2605
  .peer:is(:focus-visible, [data-focus-visible]) ~ .peerFocusVisible\:horizontal\:bdr-t_xsmall[data-orientation=horizontal] {
2584
2606
  border-top-left-radius: var(--radii-xsmall);
2585
2607
  border-top-right-radius: var(--radii-xsmall);
@@ -2682,14 +2704,6 @@
2682
2704
  border-color: var(--colors-stroke-default);
2683
2705
  }
2684
2706
 
2685
- .selected\:horizontal\:bd-b-c_transparent:is([aria-selected=true], [data-selected])[data-orientation=horizontal] {
2686
- border-bottom-color: transparent;
2687
- }
2688
-
2689
- .selected\:vertical\:bd-r-c_transparent:is([aria-selected=true], [data-selected])[data-orientation=vertical] {
2690
- border-right-color: transparent;
2691
- }
2692
-
2693
2707
  .peer:is(:focus-visible, [data-focus-visible]) ~ .horizontal\:peerFocusVisible\:top_var\(--top\)[data-orientation=horizontal] {
2694
2708
  top: var(--top);
2695
2709
  }
package/es/Tabs.js CHANGED
@@ -176,12 +176,12 @@ const tabsRecipe = sva({
176
176
  },
177
177
  _selected: {
178
178
  background: "surface.default",
179
- borderColor: "stroke.subtle",
179
+ borderColor: "stroke.default",
180
180
  _horizontal: {
181
- borderBottomColor: "transparent"
181
+ borderBottom: "none"
182
182
  },
183
183
  _vertical: {
184
- borderRightColor: "transparent"
184
+ borderRight: "none"
185
185
  }
186
186
  },
187
187
  _focusVisible: {
@@ -192,10 +192,18 @@ const tabsRecipe = sva({
192
192
  },
193
193
  content: {
194
194
  borderWidth: "1px",
195
- borderColor: "stroke.subtle",
195
+ borderColor: "stroke.default",
196
196
  background: "surface.default",
197
197
  width: "100%",
198
198
  padding: "xsmall",
199
+ _vertical: {
200
+ borderBottomRadius: "xsmall",
201
+ borderRightRadius: "xsmall"
202
+ },
203
+ _horizontal: {
204
+ borderRightRadius: "xsmall",
205
+ borderBottomLeftRadius: "xsmall"
206
+ },
199
207
  _focusVisible: {
200
208
  outline: "3px solid",
201
209
  outlineOffset: "-3px",
package/lib/Tabs.d.ts CHANGED
@@ -103,12 +103,12 @@ declare const tabsRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeF
103
103
  };
104
104
  _selected: {
105
105
  background: "surface.default";
106
- borderColor: "stroke.subtle";
106
+ borderColor: "stroke.default";
107
107
  _horizontal: {
108
- borderBottomColor: "transparent";
108
+ borderBottom: "none";
109
109
  };
110
110
  _vertical: {
111
- borderRightColor: "transparent";
111
+ borderRight: "none";
112
112
  };
113
113
  };
114
114
  _focusVisible: {
@@ -119,10 +119,18 @@ declare const tabsRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeF
119
119
  };
120
120
  content: {
121
121
  borderWidth: "1px";
122
- borderColor: "stroke.subtle";
122
+ borderColor: "stroke.default";
123
123
  background: "surface.default";
124
124
  width: "100%";
125
125
  padding: "xsmall";
126
+ _vertical: {
127
+ borderBottomRadius: "xsmall";
128
+ borderRightRadius: "xsmall";
129
+ };
130
+ _horizontal: {
131
+ borderRightRadius: "xsmall";
132
+ borderBottomLeftRadius: "xsmall";
133
+ };
126
134
  _focusVisible: {
127
135
  outline: "3px solid";
128
136
  outlineOffset: "-3px";
package/lib/Tabs.js CHANGED
@@ -182,12 +182,12 @@ const tabsRecipe = (0, _css.sva)({
182
182
  },
183
183
  _selected: {
184
184
  background: "surface.default",
185
- borderColor: "stroke.subtle",
185
+ borderColor: "stroke.default",
186
186
  _horizontal: {
187
- borderBottomColor: "transparent"
187
+ borderBottom: "none"
188
188
  },
189
189
  _vertical: {
190
- borderRightColor: "transparent"
190
+ borderRight: "none"
191
191
  }
192
192
  },
193
193
  _focusVisible: {
@@ -198,10 +198,18 @@ const tabsRecipe = (0, _css.sva)({
198
198
  },
199
199
  content: {
200
200
  borderWidth: "1px",
201
- borderColor: "stroke.subtle",
201
+ borderColor: "stroke.default",
202
202
  background: "surface.default",
203
203
  width: "100%",
204
204
  padding: "xsmall",
205
+ _vertical: {
206
+ borderBottomRadius: "xsmall",
207
+ borderRightRadius: "xsmall"
208
+ },
209
+ _horizontal: {
210
+ borderRightRadius: "xsmall",
211
+ borderBottomLeftRadius: "xsmall"
212
+ },
205
213
  _focusVisible: {
206
214
  outline: "3px solid",
207
215
  outlineOffset: "-3px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "1.0.37-alpha.0",
3
+ "version": "1.0.38-alpha.0",
4
4
  "description": "Primitive components for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -28,7 +28,7 @@
28
28
  "lib"
29
29
  ],
30
30
  "dependencies": {
31
- "@ark-ui/react": "^4.0.0",
31
+ "@ark-ui/react": "^4.1.0",
32
32
  "@ndla/styled-system": "^0.0.23",
33
33
  "@ndla/util": "^5.0.0-alpha.0"
34
34
  },
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "29f766c461881909c892102640cd09944f64d694"
46
+ "gitHead": "fa8b235f77c036a235f87c3e5875a2e938cb0ccd"
47
47
  }