@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.
- package/dist/panda.buildinfo.json +0 -1
- package/dist/styles.css +0 -4
- package/es/Card/Card.js +3 -1
- package/es/Combobox.js +18 -6
- package/lib/Card/Card.d.ts +3 -1
- package/lib/Card/Card.js +3 -1
- package/lib/Combobox.d.ts +13 -6
- package/lib/Combobox.js +18 -6
- 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
|
@@ -112,23 +112,31 @@ const comboboxRecipe = sva({
|
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
defaultVariants: {
|
|
115
|
-
|
|
115
|
+
context: "standalone",
|
|
116
|
+
variant: "simple"
|
|
116
117
|
},
|
|
117
118
|
variants: {
|
|
118
|
-
|
|
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
|
-
|
|
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
|
};
|
package/lib/Card/Card.d.ts
CHANGED
package/lib/Card/Card.js
CHANGED
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
121
|
+
context: "standalone",
|
|
122
|
+
variant: "simple"
|
|
122
123
|
},
|
|
123
124
|
variants: {
|
|
124
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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": "2277fee3427d8c14db9b299485dc57f2779af69f"
|
|
47
47
|
}
|