@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.
- package/dist/panda.buildinfo.json +0 -1
- package/dist/styles.css +0 -4
- package/es/Card/Card.js +3 -1
- package/es/Combobox.js +4 -0
- package/lib/Card/Card.d.ts +3 -1
- package/lib/Card/Card.js +3 -1
- package/lib/Combobox.d.ts +1 -1
- package/lib/Combobox.js +4 -0
- package/lib/index.d.ts +1 -0
- package/package.json +4 -4
|
@@ -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
package/es/Card/Card.js
CHANGED
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
|
};
|
package/lib/Card/Card.d.ts
CHANGED
package/lib/Card/Card.js
CHANGED
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.
|
|
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.
|
|
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.
|
|
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": "
|
|
46
|
+
"gitHead": "a50ec9bd699eabeb3b250d922107e8f9a1d18304"
|
|
47
47
|
}
|