@ndla/primitives 1.0.44-alpha.0 → 1.0.45-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.
@@ -646,7 +646,6 @@
646
646
  "boxShadow]___[value:inset 0 0 0 1px var(--shadow-color)]___[cond:_on",
647
647
  "--arrow-size]___[value:spacing.xxsmall",
648
648
  "--arrow-background]___[value:colors.surface.action",
649
- "background]___[value:surface.actionSubtle.hover",
650
649
  "height]___[value:200px",
651
650
  "gap]___[value:xxlarge",
652
651
  "gap]___[value:medium",
package/dist/styles.css CHANGED
@@ -921,10 +921,6 @@
921
921
  --arrow-background: var(--colors-surface-action);
922
922
  }
923
923
 
924
- .bg_surface\.actionSubtle\.hover {
925
- background: var(--colors-surface-action-subtle-hover);
926
- }
927
-
928
924
  .h_200px {
929
925
  height: 200px;
930
926
  }
package/es/Card/Card.js CHANGED
@@ -57,7 +57,9 @@ const cardRecipe = sva({
57
57
  subtle: {},
58
58
  intense: {
59
59
  root: {
60
- background: "surface.actionSubtle.hover"
60
+ _hover: {
61
+ background: "surface.actionSubtle.hover"
62
+ }
61
63
  }
62
64
  }
63
65
  }
package/es/Combobox.js CHANGED
@@ -141,9 +141,13 @@ const InternalComboboxRoot = withProvider(Combobox.Root, "root", {
141
141
  });
142
142
  export const ComboboxRoot = _ref => {
143
143
  let {
144
+ lazyMount = true,
145
+ unmountOnExit = true,
144
146
  ...props
145
147
  } = _ref;
146
148
  return /*#__PURE__*/_jsx(InternalComboboxRoot, {
149
+ lazyMount: lazyMount,
150
+ unmountOnExit: unmountOnExit,
147
151
  ...props
148
152
  });
149
153
  };
@@ -14,7 +14,9 @@ declare const cardRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeF
14
14
  subtle: {};
15
15
  intense: {
16
16
  root: {
17
- background: "surface.actionSubtle.hover";
17
+ _hover: {
18
+ background: "surface.actionSubtle.hover";
19
+ };
18
20
  };
19
21
  };
20
22
  };
package/lib/Card/Card.js CHANGED
@@ -63,7 +63,9 @@ const cardRecipe = (0, _css.sva)({
63
63
  subtle: {},
64
64
  intense: {
65
65
  root: {
66
- background: "surface.actionSubtle.hover"
66
+ _hover: {
67
+ background: "surface.actionSubtle.hover"
68
+ }
67
69
  }
68
70
  }
69
71
  }
package/lib/Combobox.d.ts CHANGED
@@ -29,7 +29,7 @@ export type ComboboxVariantProps = RecipeVariantProps<typeof comboboxRecipe>;
29
29
  export type ComboboxRootProps<T extends Combobox.CollectionItem> = Combobox.RootProps<T> & ComboboxVariantProps & JsxStyleProps & {
30
30
  translations: Combobox.RootProps<T>["translations"];
31
31
  };
32
- export declare const ComboboxRoot: <T extends unknown>({ ...props }: ComboboxRootProps<T>) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const ComboboxRoot: <T extends unknown>({ lazyMount, unmountOnExit, ...props }: ComboboxRootProps<T>) => import("react/jsx-runtime").JSX.Element;
33
33
  export type ComboboxClearTriggerProps = Combobox.ClearTriggerProps & JsxStyleProps;
34
34
  export declare const ComboboxClearTrigger: import("react").ForwardRefExoticComponent<Combobox.ClearTriggerProps & {
35
35
  consumeCss?: boolean | undefined;
package/lib/Combobox.js CHANGED
@@ -147,9 +147,13 @@ const InternalComboboxRoot = withProvider(_react.Combobox.Root, "root", {
147
147
  });
148
148
  const ComboboxRoot = _ref => {
149
149
  let {
150
+ lazyMount = true,
151
+ unmountOnExit = true,
150
152
  ...props
151
153
  } = _ref;
152
154
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(InternalComboboxRoot, {
155
+ lazyMount: lazyMount,
156
+ unmountOnExit: unmountOnExit,
153
157
  ...props
154
158
  });
155
159
  };
package/lib/index.d.ts CHANGED
@@ -41,6 +41,7 @@ export type { HeroVariantProps, HeroVariant, HeroProps, HeroBackgroundProps, Her
41
41
  export { Hero, HeroBackground, HeroContent } from "./Hero";
42
42
  export type { ImageCrop, ImageFocalPoint, PictureProps, ImgProps, ImageProps } from "./Image";
43
43
  export { Picture, Img, Image, makeSrcQueryString, getSrcSet } from "./Image";
44
+ export type { InputProps } from "./Input";
44
45
  export { Input, FieldInput, InputContainer, TextArea, FieldTextArea } from "./Input";
45
46
  export type { LabelProps, LegendProps, FieldsetLegendProps } from "./Label";
46
47
  export { Label, FieldLabel, Legend, FieldsetLegend } from "./Label";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/primitives",
3
- "version": "1.0.44-alpha.0",
3
+ "version": "1.0.45-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": "^4.1.1",
31
+ "@ark-ui/react": "^4.1.2",
32
32
  "@ndla/styled-system": "^0.0.24",
33
33
  "@ndla/util": "^5.0.0-alpha.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@ndla/preset-panda": "^0.0.39",
36
+ "@ndla/preset-panda": "^0.0.40",
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": "98f727d2e22b4030ec61672a8f843b2d0d0ef278"
46
+ "gitHead": "a50ec9bd699eabeb3b250d922107e8f9a1d18304"
47
47
  }