@ndla/primitives 1.0.53-alpha.0 → 1.0.54-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.
@@ -504,6 +504,8 @@
504
504
  "borderInlineEndColor]___[value:stroke.default",
505
505
  "animationDuration]___[value:2s]___[cond:_motionReduce",
506
506
  "borderWidth]___[value:4px",
507
+ "height]___[value:small",
508
+ "width]___[value:small",
507
509
  "borderWidth]___[value:8px",
508
510
  "background]___[value:surface.disabled.strong",
509
511
  "padding]___[value:1",
package/dist/styles.css CHANGED
@@ -813,6 +813,14 @@
813
813
  border-block-color: var(--colors-background-subtle);
814
814
  }
815
815
 
816
+ .h_small {
817
+ height: var(--sizes-small);
818
+ }
819
+
820
+ .w_small {
821
+ width: var(--sizes-small);
822
+ }
823
+
816
824
  .bg_surface\.disabled\.strong {
817
825
  background: var(--colors-surface-disabled-strong);
818
826
  }
package/es/Spinner.js CHANGED
@@ -32,8 +32,8 @@ export const spinnerRecipe = cva({
32
32
  size: {
33
33
  small: {
34
34
  borderWidth: "4px",
35
- height: "medium",
36
- width: "medium"
35
+ height: "small",
36
+ width: "small"
37
37
  },
38
38
  medium: {
39
39
  borderWidth: "4px",
package/es/index.js CHANGED
@@ -12,6 +12,7 @@ export { Badge } from "./Badge";
12
12
  export { BlockQuote } from "./BlockQuote";
13
13
  export { Button, IconButton, buttonBaseRecipe, buttonRecipe, iconButtonRecipe } from "./Button";
14
14
  export { CardRoot, CardHeading, CardContent, CardImage } from "./Card/Card";
15
+ export { createStyleContext } from "./createStyleContext";
15
16
  export { ToggleGroupRoot, ToggleGroupItem } from "./ToggleGroup";
16
17
  export { CheckboxRoot, CheckboxIndicator, CheckboxLabel, CheckboxControl, CheckboxGroup, CheckboxHiddenInput } from "./Checkbox";
17
18
  export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, ComboboxList } from "./Combobox";
package/lib/Spinner.d.ts CHANGED
@@ -12,8 +12,8 @@ export declare const spinnerRecipe: import("@ndla/styled-system/types").RecipeRu
12
12
  size: {
13
13
  small: {
14
14
  borderWidth: "4px";
15
- height: "medium";
16
- width: "medium";
15
+ height: "small";
16
+ width: "small";
17
17
  };
18
18
  medium: {
19
19
  borderWidth: "4px";
package/lib/Spinner.js CHANGED
@@ -38,8 +38,8 @@ const spinnerRecipe = exports.spinnerRecipe = (0, _css.cva)({
38
38
  size: {
39
39
  small: {
40
40
  borderWidth: "4px",
41
- height: "medium",
42
- width: "medium"
41
+ height: "small",
42
+ width: "small"
43
43
  },
44
44
  medium: {
45
45
  borderWidth: "4px",
package/lib/index.d.ts CHANGED
@@ -17,6 +17,7 @@ export type { ButtonProps, ButtonVariantProps, IconButtonProps, IconButtonVarian
17
17
  export { Button, IconButton, buttonBaseRecipe, buttonRecipe, iconButtonRecipe } from "./Button";
18
18
  export type { CardRootProps, CardVariantProps } from "./Card/Card";
19
19
  export { CardRoot, CardHeading, CardContent, CardImage } from "./Card/Card";
20
+ export { createStyleContext } from "./createStyleContext";
20
21
  export { ToggleGroupRoot, ToggleGroupItem } from "./ToggleGroup";
21
22
  export type { ToggleGroupRootProps, ToggleGroupVariantProps, ToggleGroupItemProps, ToggleGroupItemVariantProps, } from "./ToggleGroup";
22
23
  export type { CheckboxVariantProps, CheckboxRootProps } from "./Checkbox";
package/lib/index.js CHANGED
@@ -1287,6 +1287,12 @@ Object.defineProperty(exports, "buttonRecipe", {
1287
1287
  return _Button.buttonRecipe;
1288
1288
  }
1289
1289
  });
1290
+ Object.defineProperty(exports, "createStyleContext", {
1291
+ enumerable: true,
1292
+ get: function () {
1293
+ return _createStyleContext.createStyleContext;
1294
+ }
1295
+ });
1290
1296
  Object.defineProperty(exports, "getSrcSet", {
1291
1297
  enumerable: true,
1292
1298
  get: function () {
@@ -1311,6 +1317,7 @@ var _Badge = require("./Badge");
1311
1317
  var _BlockQuote = require("./BlockQuote");
1312
1318
  var _Button = require("./Button");
1313
1319
  var _Card = require("./Card/Card");
1320
+ var _createStyleContext = require("./createStyleContext");
1314
1321
  var _ToggleGroup = require("./ToggleGroup");
1315
1322
  var _Checkbox = require("./Checkbox");
1316
1323
  var _Combobox = require("./Combobox");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "1.0.53-alpha.0",
3
+ "version": "1.0.54-alpha.0",
4
4
  "description": "Primitive components for NDLA.",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "2efa77f5b96c8c53d39d536d4f428bae6412c862"
46
+ "gitHead": "e06a706dabbce890a06465bf25e2a424811e7523"
47
47
  }