@ndla/primitives 1.0.44-alpha.0 → 1.0.46-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
@@ -112,23 +112,31 @@ const comboboxRecipe = sva({
112
112
  }
113
113
  },
114
114
  defaultVariants: {
115
- variant: "standalone"
115
+ context: "standalone",
116
+ variant: "simple"
116
117
  },
117
118
  variants: {
118
- variant: {
119
+ context: {
119
120
  standalone: {
121
+ content: {
122
+ boxShadow: "large",
123
+ borderRadius: "xsmall",
124
+ padding: "xsmall"
125
+ }
126
+ },
127
+ composite: {}
128
+ },
129
+ variant: {
130
+ simple: {
120
131
  item: {
121
132
  padding: "xsmall",
122
133
  borderRadius: "xsmall"
123
134
  },
124
135
  content: {
125
- boxShadow: "large",
126
- borderRadius: "xsmall",
127
- padding: "xsmall",
128
136
  gap: "4xsmall"
129
137
  }
130
138
  },
131
- composite: {}
139
+ complex: {}
132
140
  }
133
141
  }
134
142
  });
@@ -141,9 +149,13 @@ const InternalComboboxRoot = withProvider(Combobox.Root, "root", {
141
149
  });
142
150
  export const ComboboxRoot = _ref => {
143
151
  let {
152
+ lazyMount = true,
153
+ unmountOnExit = true,
144
154
  ...props
145
155
  } = _ref;
146
156
  return /*#__PURE__*/_jsx(InternalComboboxRoot, {
157
+ lazyMount: lazyMount,
158
+ unmountOnExit: unmountOnExit,
147
159
  ...props
148
160
  });
149
161
  };
@@ -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
@@ -9,27 +9,34 @@ import { Combobox } from "@ark-ui/react";
9
9
  import { JsxStyleProps, RecipeVariantProps } from "@ndla/styled-system/types";
10
10
  import { TextProps } from "./Text";
11
11
  declare const comboboxRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"input" | "label" | "content" | "list" | "root" | "item" | "itemIndicator" | "control" | "clearTrigger" | "itemGroup" | "itemGroupLabel" | "itemText" | "positioner" | "trigger", {
12
- variant: {
12
+ context: {
13
13
  standalone: {
14
+ content: {
15
+ boxShadow: "large";
16
+ borderRadius: "xsmall";
17
+ padding: "xsmall";
18
+ };
19
+ };
20
+ composite: {};
21
+ };
22
+ variant: {
23
+ simple: {
14
24
  item: {
15
25
  padding: "xsmall";
16
26
  borderRadius: "xsmall";
17
27
  };
18
28
  content: {
19
- boxShadow: "large";
20
- borderRadius: "xsmall";
21
- padding: "xsmall";
22
29
  gap: "4xsmall";
23
30
  };
24
31
  };
25
- composite: {};
32
+ complex: {};
26
33
  };
27
34
  }>;
28
35
  export type ComboboxVariantProps = RecipeVariantProps<typeof comboboxRecipe>;
29
36
  export type ComboboxRootProps<T extends Combobox.CollectionItem> = Combobox.RootProps<T> & ComboboxVariantProps & JsxStyleProps & {
30
37
  translations: Combobox.RootProps<T>["translations"];
31
38
  };
32
- export declare const ComboboxRoot: <T extends unknown>({ ...props }: ComboboxRootProps<T>) => import("react/jsx-runtime").JSX.Element;
39
+ export declare const ComboboxRoot: <T extends unknown>({ lazyMount, unmountOnExit, ...props }: ComboboxRootProps<T>) => import("react/jsx-runtime").JSX.Element;
33
40
  export type ComboboxClearTriggerProps = Combobox.ClearTriggerProps & JsxStyleProps;
34
41
  export declare const ComboboxClearTrigger: import("react").ForwardRefExoticComponent<Combobox.ClearTriggerProps & {
35
42
  consumeCss?: boolean | undefined;
package/lib/Combobox.js CHANGED
@@ -118,23 +118,31 @@ const comboboxRecipe = (0, _css.sva)({
118
118
  }
119
119
  },
120
120
  defaultVariants: {
121
- variant: "standalone"
121
+ context: "standalone",
122
+ variant: "simple"
122
123
  },
123
124
  variants: {
124
- variant: {
125
+ context: {
125
126
  standalone: {
127
+ content: {
128
+ boxShadow: "large",
129
+ borderRadius: "xsmall",
130
+ padding: "xsmall"
131
+ }
132
+ },
133
+ composite: {}
134
+ },
135
+ variant: {
136
+ simple: {
126
137
  item: {
127
138
  padding: "xsmall",
128
139
  borderRadius: "xsmall"
129
140
  },
130
141
  content: {
131
- boxShadow: "large",
132
- borderRadius: "xsmall",
133
- padding: "xsmall",
134
142
  gap: "4xsmall"
135
143
  }
136
144
  },
137
- composite: {}
145
+ complex: {}
138
146
  }
139
147
  }
140
148
  });
@@ -147,9 +155,13 @@ const InternalComboboxRoot = withProvider(_react.Combobox.Root, "root", {
147
155
  });
148
156
  const ComboboxRoot = _ref => {
149
157
  let {
158
+ lazyMount = true,
159
+ unmountOnExit = true,
150
160
  ...props
151
161
  } = _ref;
152
162
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(InternalComboboxRoot, {
163
+ lazyMount: lazyMount,
164
+ unmountOnExit: unmountOnExit,
153
165
  ...props
154
166
  });
155
167
  };
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.46-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": "2277fee3427d8c14db9b299485dc57f2779af69f"
47
47
  }