@ndla/primitives 1.0.53-alpha.0 → 1.0.55-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 +5 -3
- package/dist/styles.css +20 -12
- package/es/Button.js +10 -0
- package/es/Combobox.js +8 -1
- package/es/Menu.js +7 -1
- package/es/NdlaLogo.js +2 -0
- package/es/Select.js +7 -1
- package/es/Spinner.js +2 -2
- package/es/ToggleGroup.js +3 -49
- package/es/index.js +3 -2
- package/lib/Button.d.ts +10 -0
- package/lib/Button.js +10 -0
- package/lib/Combobox.d.ts +3 -0
- package/lib/Combobox.js +24 -17
- package/lib/Menu.d.ts +3 -0
- package/lib/Menu.js +8 -2
- package/lib/NdlaLogo.js +2 -0
- package/lib/Select.d.ts +3 -0
- package/lib/Select.js +8 -2
- package/lib/Spinner.d.ts +2 -2
- package/lib/Spinner.js +2 -2
- package/lib/ToggleGroup.d.ts +4 -30
- package/lib/ToggleGroup.js +5 -51
- package/lib/index.d.ts +4 -3
- package/lib/index.js +19 -0
- package/package.json +2 -2
|
@@ -131,12 +131,15 @@
|
|
|
131
131
|
"color]___[value:text.onAction]___[cond:_active",
|
|
132
132
|
"background]___[value:surface.action.active]___[cond:_active",
|
|
133
133
|
"boxShadow]___[value:inset 0 0 0 var(--shadow-width, 3px) var(--shadow-color), inset 0px 0px 0px calc(var(--shadow-width, 3px) * 2) currentcolor]___[cond:_focusVisible",
|
|
134
|
+
"background]___[value:surface.action.selected]___[cond:_on",
|
|
134
135
|
"color]___[value:text.strong",
|
|
135
136
|
"background]___[value:surface.actionSubtle.hover.strong]___[cond:_active",
|
|
137
|
+
"background]___[value:surface.actionSubtle.active]___[cond:_on",
|
|
136
138
|
"background]___[value:transparent",
|
|
137
139
|
"boxShadow]___[value:inset 0 0 0 1px var(--shadow-color)]___[cond:_hover",
|
|
138
140
|
"boxShadow]___[value:inset 0 0 0 var(--shadow-width, 3px) var(--shadow-color)]___[cond:_hover<___>_focusVisible",
|
|
139
141
|
"borderColor]___[value:stroke.default]___[cond:_active",
|
|
142
|
+
"boxShadow]___[value:inset 0 0 0 1px var(--shadow-color)]___[cond:_on",
|
|
140
143
|
"color]___[value:stroke.hover]___[cond:_hover",
|
|
141
144
|
"color]___[value:surface.actionSubtle.hover.strong]___[cond:_hover",
|
|
142
145
|
"background]___[value:surface.danger",
|
|
@@ -504,6 +507,8 @@
|
|
|
504
507
|
"borderInlineEndColor]___[value:stroke.default",
|
|
505
508
|
"animationDuration]___[value:2s]___[cond:_motionReduce",
|
|
506
509
|
"borderWidth]___[value:4px",
|
|
510
|
+
"height]___[value:small",
|
|
511
|
+
"width]___[value:small",
|
|
507
512
|
"borderWidth]___[value:8px",
|
|
508
513
|
"background]___[value:surface.disabled.strong",
|
|
509
514
|
"padding]___[value:1",
|
|
@@ -645,9 +650,6 @@
|
|
|
645
650
|
"top]___[value:xxsmall",
|
|
646
651
|
"right]___[value:xxsmall",
|
|
647
652
|
"flexDirection]___[value:row",
|
|
648
|
-
"background]___[value:surface.action.selected]___[cond:_on",
|
|
649
|
-
"background]___[value:surface.actionSubtle.active]___[cond:_on",
|
|
650
|
-
"boxShadow]___[value:inset 0 0 0 1px var(--shadow-color)]___[cond:_on",
|
|
651
653
|
"--arrow-size]___[value:spacing.xxsmall",
|
|
652
654
|
"--arrow-background]___[value:colors.surface.action",
|
|
653
655
|
"height]___[value:200px",
|
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
|
}
|
|
@@ -1541,6 +1549,18 @@
|
|
|
1541
1549
|
--shadow-color: var(--colors-surface-disabled);
|
|
1542
1550
|
}
|
|
1543
1551
|
|
|
1552
|
+
.on\:bg_surface\.action\.selected:is([data-state="on"]) {
|
|
1553
|
+
background: var(--colors-surface-action-selected);
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
.on\:bg_surface\.actionSubtle\.active:is([data-state="on"]) {
|
|
1557
|
+
background: var(--colors-surface-action-subtle-active);
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
.on\:bx-sh_inset_0_0_0_1px_var\(--shadow-color\):is([data-state="on"]) {
|
|
1561
|
+
box-shadow: inset 0 0 0 1px var(--shadow-color);
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1544
1564
|
.\[\&_svg\]\:mx_0 svg {
|
|
1545
1565
|
margin-inline: 0;
|
|
1546
1566
|
}
|
|
@@ -1904,18 +1924,6 @@
|
|
|
1904
1924
|
display: inline-block;
|
|
1905
1925
|
}
|
|
1906
1926
|
|
|
1907
|
-
.on\:bg_surface\.action\.selected:is([data-state="on"]) {
|
|
1908
|
-
background: var(--colors-surface-action-selected);
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
.on\:bg_surface\.actionSubtle\.active:is([data-state="on"]) {
|
|
1912
|
-
background: var(--colors-surface-action-subtle-active);
|
|
1913
|
-
}
|
|
1914
|
-
|
|
1915
|
-
.on\:bx-sh_inset_0_0_0_1px_var\(--shadow-color\):is([data-state="on"]) {
|
|
1916
|
-
box-shadow: inset 0 0 0 1px var(--shadow-color);
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
1927
|
.\[\&\]\:w_100\% {
|
|
1920
1928
|
width: 100%;
|
|
1921
1929
|
}
|
package/es/Button.js
CHANGED
|
@@ -67,6 +67,9 @@ export const buttonBaseRecipe = cva({
|
|
|
67
67
|
},
|
|
68
68
|
_focusVisible: {
|
|
69
69
|
boxShadow: "inset 0 0 0 var(--shadow-width, 3px) var(--shadow-color), inset 0px 0px 0px calc(var(--shadow-width, 3px) * 2) currentcolor"
|
|
70
|
+
},
|
|
71
|
+
_on: {
|
|
72
|
+
background: "surface.action.selected"
|
|
70
73
|
}
|
|
71
74
|
},
|
|
72
75
|
secondary: {
|
|
@@ -78,6 +81,9 @@ export const buttonBaseRecipe = cva({
|
|
|
78
81
|
},
|
|
79
82
|
_active: {
|
|
80
83
|
background: "surface.actionSubtle.hover.strong"
|
|
84
|
+
},
|
|
85
|
+
_on: {
|
|
86
|
+
background: "surface.actionSubtle.active"
|
|
81
87
|
}
|
|
82
88
|
},
|
|
83
89
|
tertiary: {
|
|
@@ -93,6 +99,10 @@ export const buttonBaseRecipe = cva({
|
|
|
93
99
|
_active: {
|
|
94
100
|
borderColor: "stroke.default",
|
|
95
101
|
background: "surface.actionSubtle.hover.strong"
|
|
102
|
+
},
|
|
103
|
+
_on: {
|
|
104
|
+
background: "surface.actionSubtle.active",
|
|
105
|
+
boxShadow: "inset 0 0 0 1px var(--shadow-color)"
|
|
96
106
|
}
|
|
97
107
|
},
|
|
98
108
|
clear: {
|
package/es/Combobox.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { forwardRef } from "react";
|
|
9
10
|
import { Combobox, comboboxAnatomy } from "@ark-ui/react";
|
|
10
11
|
import { sva } from "@ndla/styled-system/css";
|
|
11
12
|
import { createStyleContext } from "./createStyleContext";
|
|
@@ -162,9 +163,15 @@ export const ComboboxRoot = _ref => {
|
|
|
162
163
|
export const ComboboxClearTrigger = withContext(Combobox.ClearTrigger, "clearTrigger", {
|
|
163
164
|
baseComponent: true
|
|
164
165
|
});
|
|
165
|
-
export const
|
|
166
|
+
export const ComboboxContentStandalone = withContext(Combobox.Content, "content", {
|
|
166
167
|
baseComponent: true
|
|
167
168
|
});
|
|
169
|
+
export const ComboboxContent = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(ComboboxPositioner, {
|
|
170
|
+
children: /*#__PURE__*/_jsx(ComboboxContentStandalone, {
|
|
171
|
+
ref: ref,
|
|
172
|
+
...props
|
|
173
|
+
})
|
|
174
|
+
}));
|
|
168
175
|
export const ComboboxControl = withContext(Combobox.Control, "control", {
|
|
169
176
|
baseComponent: true
|
|
170
177
|
});
|
package/es/Menu.js
CHANGED
|
@@ -148,9 +148,15 @@ export const MenuRoot = _ref => {
|
|
|
148
148
|
...props
|
|
149
149
|
});
|
|
150
150
|
};
|
|
151
|
-
export const
|
|
151
|
+
export const MenuContentStandalone = withContext(Menu.Content, "content", {
|
|
152
152
|
baseComponent: true
|
|
153
153
|
});
|
|
154
|
+
export const MenuContent = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(MenuPositioner, {
|
|
155
|
+
children: /*#__PURE__*/_jsx(MenuContentStandalone, {
|
|
156
|
+
ref: ref,
|
|
157
|
+
...props
|
|
158
|
+
})
|
|
159
|
+
}));
|
|
154
160
|
const InternalMenuItemGroupLabel = withContext(Menu.ItemGroupLabel, "itemGroupLabel");
|
|
155
161
|
export const MenuItemGroupLabel = _ref2 => {
|
|
156
162
|
let {
|
package/es/NdlaLogo.js
CHANGED
|
@@ -12,11 +12,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
const BaseSvg = _ref => {
|
|
13
13
|
let {
|
|
14
14
|
color = "primary",
|
|
15
|
+
"aria-hidden": ariaHidden = true,
|
|
15
16
|
css: cssProp,
|
|
16
17
|
...props
|
|
17
18
|
} = _ref;
|
|
18
19
|
return /*#__PURE__*/_jsx(styled.svg, {
|
|
19
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
+
"aria-hidden": ariaHidden,
|
|
20
22
|
css: css.raw({
|
|
21
23
|
color
|
|
22
24
|
}, cssProp),
|
package/es/Select.js
CHANGED
|
@@ -163,9 +163,15 @@ export const SelectRoot = _ref => {
|
|
|
163
163
|
export const SelectClearTrigger = withContext(Select.ClearTrigger, "clearTrigger", {
|
|
164
164
|
baseComponent: true
|
|
165
165
|
});
|
|
166
|
-
export const
|
|
166
|
+
export const SelectContentStandalone = withContext(Select.Content, "content", {
|
|
167
167
|
baseComponent: true
|
|
168
168
|
});
|
|
169
|
+
export const SelectContent = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(SelectPositioner, {
|
|
170
|
+
children: /*#__PURE__*/_jsx(SelectContentStandalone, {
|
|
171
|
+
ref: ref,
|
|
172
|
+
...props
|
|
173
|
+
})
|
|
174
|
+
}));
|
|
169
175
|
export const SelectControl = withContext(Select.Control, "control", {
|
|
170
176
|
baseComponent: true
|
|
171
177
|
});
|
package/es/Spinner.js
CHANGED
package/es/ToggleGroup.js
CHANGED
|
@@ -6,12 +6,9 @@
|
|
|
6
6
|
*
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { forwardRef } from "react";
|
|
10
9
|
import { toggleGroupAnatomy, ToggleGroup } from "@ark-ui/react";
|
|
11
|
-
import {
|
|
12
|
-
import { IconButton } from "./Button";
|
|
10
|
+
import { sva } from "@ndla/styled-system/css";
|
|
13
11
|
import { createStyleContext } from "./createStyleContext";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
12
|
const toggleGroupRecipe = sva({
|
|
16
13
|
slots: toggleGroupAnatomy.keys(),
|
|
17
14
|
base: {
|
|
@@ -22,31 +19,6 @@ const toggleGroupRecipe = sva({
|
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
21
|
});
|
|
25
|
-
const toggleGroupItemRecipe = cva({
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
variant: "primary"
|
|
28
|
-
},
|
|
29
|
-
variants: {
|
|
30
|
-
variant: {
|
|
31
|
-
primary: {
|
|
32
|
-
_on: {
|
|
33
|
-
background: "surface.action.selected"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
secondary: {
|
|
37
|
-
_on: {
|
|
38
|
-
background: "surface.actionSubtle.active"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
tertiary: {
|
|
42
|
-
_on: {
|
|
43
|
-
background: "surface.actionSubtle.active",
|
|
44
|
-
boxShadow: "inset 0 0 0 1px var(--shadow-color)"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
22
|
const {
|
|
51
23
|
withProvider,
|
|
52
24
|
withContext
|
|
@@ -54,24 +26,6 @@ const {
|
|
|
54
26
|
export const ToggleGroupRoot = withProvider(ToggleGroup.Root, "root", {
|
|
55
27
|
baseComponent: true
|
|
56
28
|
});
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
let {
|
|
60
|
-
children,
|
|
61
|
-
variant,
|
|
62
|
-
css: cssProp,
|
|
63
|
-
...props
|
|
64
|
-
} = _ref;
|
|
65
|
-
return /*#__PURE__*/_jsx(InternalToggleGroupItem, {
|
|
66
|
-
...props,
|
|
67
|
-
css: css.raw(toggleGroupItemRecipe.raw({
|
|
68
|
-
variant
|
|
69
|
-
}), cssProp),
|
|
70
|
-
ref: ref,
|
|
71
|
-
asChild: true,
|
|
72
|
-
children: /*#__PURE__*/_jsx(IconButton, {
|
|
73
|
-
variant: variant,
|
|
74
|
-
children: children
|
|
75
|
-
})
|
|
76
|
-
});
|
|
29
|
+
export const ToggleGroupItem = withContext(ToggleGroup.Item, "item", {
|
|
30
|
+
baseComponent: true
|
|
77
31
|
});
|
package/es/index.js
CHANGED
|
@@ -12,9 +12,10 @@ 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
|
-
export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, ComboboxList } from "./Combobox";
|
|
18
|
+
export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxContentStandalone, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, ComboboxList } from "./Combobox";
|
|
18
19
|
export { DialogRoot, DialogBackdrop, DialogStandaloneContent, DialogPositioner, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DialogCloseTrigger, DialogHeader, DialogBody, DialogFooter } from "./Dialog";
|
|
19
20
|
export { ExpandableBox, ExpandableBoxSummary } from "./ExpandableBox";
|
|
20
21
|
export { ErrorMessageRoot, ErrorMessageContent, ErrorMessageActions, ErrorMessageDescription, ErrorMessageTitle } from "./ErrorMessage/ErrorMessage";
|
|
@@ -36,7 +37,7 @@ export { NdlaLogoEn, NdlaLogoNb, NdlaLogoText } from "./NdlaLogo";
|
|
|
36
37
|
export { PaginationRoot, PaginationContext, PaginationItem, PaginationEllipsis, PaginationPrevTrigger, PaginationNextTrigger } from "./Pagination";
|
|
37
38
|
export { PopoverRoot, PopoverAnchor, PopoverArrowStandalone, PopoverArrow, PopoverArrowTip, PopoverCloseTrigger, PopoverContentStandalone, PopoverContent, PopoverDescription, PopoverIndicator, PopoverPositioner, PopoverTitle, PopoverTrigger } from "./Popover";
|
|
38
39
|
export { RadioGroupRoot, RadioGroupIndicator, RadioGroupItemControl, RadioGroupItem, RadioGroupItemText, RadioGroupLabel, RadioGroupItemHiddenInput } from "./RadioGroup";
|
|
39
|
-
export { SelectRoot, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItemGroupLabel, SelectItemGroup, SelectItemIndicator, SelectItem, SelectItemText, SelectLabel, SelectPositioner, SelectTrigger, SelectValueText, SelectList, SelectHiddenSelect } from "./Select";
|
|
40
|
+
export { SelectRoot, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItemGroupLabel, SelectItemGroup, SelectItemIndicator, SelectItem, SelectItemText, SelectLabel, SelectPositioner, SelectContentStandalone, SelectTrigger, SelectValueText, SelectList, SelectHiddenSelect } from "./Select";
|
|
40
41
|
export { Skeleton } from "./Skeleton";
|
|
41
42
|
export { SliderRoot, SliderControl, SliderTrack, SliderRange, SliderThumb, SliderLabel, SliderHiddenInput } from "./Slider";
|
|
42
43
|
export { Spinner } from "./Spinner";
|
package/lib/Button.d.ts
CHANGED
|
@@ -25,6 +25,9 @@ export declare const buttonBaseRecipe: import("@ndla/styled-system/types").Recip
|
|
|
25
25
|
_focusVisible: {
|
|
26
26
|
boxShadow: "inset 0 0 0 var(--shadow-width, 3px) var(--shadow-color), inset 0px 0px 0px calc(var(--shadow-width, 3px) * 2) currentcolor";
|
|
27
27
|
};
|
|
28
|
+
_on: {
|
|
29
|
+
background: "surface.action.selected";
|
|
30
|
+
};
|
|
28
31
|
};
|
|
29
32
|
secondary: {
|
|
30
33
|
color: "text.strong";
|
|
@@ -36,6 +39,9 @@ export declare const buttonBaseRecipe: import("@ndla/styled-system/types").Recip
|
|
|
36
39
|
_active: {
|
|
37
40
|
background: "surface.actionSubtle.hover.strong";
|
|
38
41
|
};
|
|
42
|
+
_on: {
|
|
43
|
+
background: "surface.actionSubtle.active";
|
|
44
|
+
};
|
|
39
45
|
};
|
|
40
46
|
tertiary: {
|
|
41
47
|
color: "text.strong";
|
|
@@ -51,6 +57,10 @@ export declare const buttonBaseRecipe: import("@ndla/styled-system/types").Recip
|
|
|
51
57
|
borderColor: "stroke.default";
|
|
52
58
|
background: "surface.actionSubtle.hover.strong";
|
|
53
59
|
};
|
|
60
|
+
_on: {
|
|
61
|
+
background: "surface.actionSubtle.active";
|
|
62
|
+
boxShadow: "inset 0 0 0 1px var(--shadow-color)";
|
|
63
|
+
};
|
|
54
64
|
};
|
|
55
65
|
clear: {
|
|
56
66
|
background: "transparent";
|
package/lib/Button.js
CHANGED
|
@@ -73,6 +73,9 @@ const buttonBaseRecipe = exports.buttonBaseRecipe = (0, _css.cva)({
|
|
|
73
73
|
},
|
|
74
74
|
_focusVisible: {
|
|
75
75
|
boxShadow: "inset 0 0 0 var(--shadow-width, 3px) var(--shadow-color), inset 0px 0px 0px calc(var(--shadow-width, 3px) * 2) currentcolor"
|
|
76
|
+
},
|
|
77
|
+
_on: {
|
|
78
|
+
background: "surface.action.selected"
|
|
76
79
|
}
|
|
77
80
|
},
|
|
78
81
|
secondary: {
|
|
@@ -84,6 +87,9 @@ const buttonBaseRecipe = exports.buttonBaseRecipe = (0, _css.cva)({
|
|
|
84
87
|
},
|
|
85
88
|
_active: {
|
|
86
89
|
background: "surface.actionSubtle.hover.strong"
|
|
90
|
+
},
|
|
91
|
+
_on: {
|
|
92
|
+
background: "surface.actionSubtle.active"
|
|
87
93
|
}
|
|
88
94
|
},
|
|
89
95
|
tertiary: {
|
|
@@ -99,6 +105,10 @@ const buttonBaseRecipe = exports.buttonBaseRecipe = (0, _css.cva)({
|
|
|
99
105
|
_active: {
|
|
100
106
|
borderColor: "stroke.default",
|
|
101
107
|
background: "surface.actionSubtle.hover.strong"
|
|
108
|
+
},
|
|
109
|
+
_on: {
|
|
110
|
+
background: "surface.actionSubtle.active",
|
|
111
|
+
boxShadow: "inset 0 0 0 1px var(--shadow-color)"
|
|
102
112
|
}
|
|
103
113
|
},
|
|
104
114
|
clear: {
|
package/lib/Combobox.d.ts
CHANGED
|
@@ -42,6 +42,9 @@ export declare const ComboboxClearTrigger: import("react").ForwardRefExoticCompo
|
|
|
42
42
|
consumeCss?: boolean;
|
|
43
43
|
} & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLButtonElement>>;
|
|
44
44
|
export type ComboboxContentProps = Combobox.ContentProps & JsxStyleProps;
|
|
45
|
+
export declare const ComboboxContentStandalone: import("react").ForwardRefExoticComponent<Combobox.ContentProps & {
|
|
46
|
+
consumeCss?: boolean;
|
|
47
|
+
} & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLDivElement>>;
|
|
45
48
|
export declare const ComboboxContent: import("react").ForwardRefExoticComponent<Combobox.ContentProps & {
|
|
46
49
|
consumeCss?: boolean;
|
|
47
50
|
} & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLDivElement>>;
|
package/lib/Combobox.js
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ComboboxTrigger = exports.ComboboxRoot = exports.ComboboxPositioner = exports.ComboboxList = exports.ComboboxLabel = exports.ComboboxItemText = exports.ComboboxItemIndicator = exports.ComboboxItemGroupLabel = exports.ComboboxItemGroup = exports.ComboboxItem = exports.ComboboxInput = exports.ComboboxControl = exports.ComboboxContent = exports.ComboboxClearTrigger = void 0;
|
|
7
|
-
var _react = require("
|
|
6
|
+
exports.ComboboxTrigger = exports.ComboboxRoot = exports.ComboboxPositioner = exports.ComboboxList = exports.ComboboxLabel = exports.ComboboxItemText = exports.ComboboxItemIndicator = exports.ComboboxItemGroupLabel = exports.ComboboxItemGroup = exports.ComboboxItem = exports.ComboboxInput = exports.ComboboxControl = exports.ComboboxContentStandalone = exports.ComboboxContent = exports.ComboboxClearTrigger = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _react2 = require("@ark-ui/react");
|
|
8
9
|
var _css = require("@ndla/styled-system/css");
|
|
9
10
|
var _createStyleContext = require("./createStyleContext");
|
|
10
11
|
var _Label = require("./Label");
|
|
@@ -19,7 +20,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
20
|
*/
|
|
20
21
|
|
|
21
22
|
const comboboxRecipe = (0, _css.sva)({
|
|
22
|
-
slots:
|
|
23
|
+
slots: _react2.comboboxAnatomy.keys(),
|
|
23
24
|
base: {
|
|
24
25
|
root: {
|
|
25
26
|
display: "flex",
|
|
@@ -150,7 +151,7 @@ const {
|
|
|
150
151
|
withProvider,
|
|
151
152
|
withContext
|
|
152
153
|
} = (0, _createStyleContext.createStyleContext)(comboboxRecipe);
|
|
153
|
-
const InternalComboboxRoot = withProvider(
|
|
154
|
+
const InternalComboboxRoot = withProvider(_react2.Combobox.Root, "root", {
|
|
154
155
|
baseComponent: true
|
|
155
156
|
});
|
|
156
157
|
const ComboboxRoot = _ref => {
|
|
@@ -166,19 +167,25 @@ const ComboboxRoot = _ref => {
|
|
|
166
167
|
});
|
|
167
168
|
};
|
|
168
169
|
exports.ComboboxRoot = ComboboxRoot;
|
|
169
|
-
const ComboboxClearTrigger = exports.ComboboxClearTrigger = withContext(
|
|
170
|
+
const ComboboxClearTrigger = exports.ComboboxClearTrigger = withContext(_react2.Combobox.ClearTrigger, "clearTrigger", {
|
|
170
171
|
baseComponent: true
|
|
171
172
|
});
|
|
172
|
-
const
|
|
173
|
+
const ComboboxContentStandalone = exports.ComboboxContentStandalone = withContext(_react2.Combobox.Content, "content", {
|
|
173
174
|
baseComponent: true
|
|
174
175
|
});
|
|
175
|
-
const
|
|
176
|
+
const ComboboxContent = exports.ComboboxContent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(ComboboxPositioner, {
|
|
177
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ComboboxContentStandalone, {
|
|
178
|
+
ref: ref,
|
|
179
|
+
...props
|
|
180
|
+
})
|
|
181
|
+
}));
|
|
182
|
+
const ComboboxControl = exports.ComboboxControl = withContext(_react2.Combobox.Control, "control", {
|
|
176
183
|
baseComponent: true
|
|
177
184
|
});
|
|
178
|
-
const ComboboxInput = exports.ComboboxInput = withContext(
|
|
185
|
+
const ComboboxInput = exports.ComboboxInput = withContext(_react2.Combobox.Input, "input", {
|
|
179
186
|
baseComponent: true
|
|
180
187
|
});
|
|
181
|
-
const InternalComboboxItemGroupLabel = withContext(
|
|
188
|
+
const InternalComboboxItemGroupLabel = withContext(_react2.Combobox.ItemGroupLabel, "itemGroupLabel");
|
|
182
189
|
const ComboboxItemGroupLabel = _ref2 => {
|
|
183
190
|
let {
|
|
184
191
|
children,
|
|
@@ -201,16 +208,16 @@ const ComboboxItemGroupLabel = _ref2 => {
|
|
|
201
208
|
});
|
|
202
209
|
};
|
|
203
210
|
exports.ComboboxItemGroupLabel = ComboboxItemGroupLabel;
|
|
204
|
-
const ComboboxItemGroup = exports.ComboboxItemGroup = withContext(
|
|
211
|
+
const ComboboxItemGroup = exports.ComboboxItemGroup = withContext(_react2.Combobox.ItemGroup, "itemGroup", {
|
|
205
212
|
baseComponent: true
|
|
206
213
|
});
|
|
207
|
-
const ComboboxItemIndicator = exports.ComboboxItemIndicator = withContext(
|
|
214
|
+
const ComboboxItemIndicator = exports.ComboboxItemIndicator = withContext(_react2.Combobox.ItemIndicator, "itemIndicator", {
|
|
208
215
|
baseComponent: true
|
|
209
216
|
});
|
|
210
|
-
const ComboboxItem = exports.ComboboxItem = withContext(
|
|
217
|
+
const ComboboxItem = exports.ComboboxItem = withContext(_react2.Combobox.Item, "item", {
|
|
211
218
|
baseComponent: true
|
|
212
219
|
});
|
|
213
|
-
const InternalComboboxItemText = withContext(
|
|
220
|
+
const InternalComboboxItemText = withContext(_react2.Combobox.ItemText, "itemText");
|
|
214
221
|
const ComboboxItemText = _ref3 => {
|
|
215
222
|
let {
|
|
216
223
|
textStyle = "label.medium",
|
|
@@ -231,7 +238,7 @@ const ComboboxItemText = _ref3 => {
|
|
|
231
238
|
});
|
|
232
239
|
};
|
|
233
240
|
exports.ComboboxItemText = ComboboxItemText;
|
|
234
|
-
const InternalComboboxLabel = withContext(
|
|
241
|
+
const InternalComboboxLabel = withContext(_react2.Combobox.Label, "label");
|
|
235
242
|
const ComboboxLabel = _ref4 => {
|
|
236
243
|
let {
|
|
237
244
|
textStyle = "label.medium",
|
|
@@ -248,12 +255,12 @@ const ComboboxLabel = _ref4 => {
|
|
|
248
255
|
});
|
|
249
256
|
};
|
|
250
257
|
exports.ComboboxLabel = ComboboxLabel;
|
|
251
|
-
const ComboboxPositioner = exports.ComboboxPositioner = withContext(
|
|
258
|
+
const ComboboxPositioner = exports.ComboboxPositioner = withContext(_react2.Combobox.Positioner, "positioner", {
|
|
252
259
|
baseComponent: true
|
|
253
260
|
});
|
|
254
|
-
const ComboboxTrigger = exports.ComboboxTrigger = withContext(
|
|
261
|
+
const ComboboxTrigger = exports.ComboboxTrigger = withContext(_react2.Combobox.Trigger, "trigger", {
|
|
255
262
|
baseComponent: true
|
|
256
263
|
});
|
|
257
|
-
const ComboboxList = exports.ComboboxList = withContext(
|
|
264
|
+
const ComboboxList = exports.ComboboxList = withContext(_react2.Combobox.List, "list", {
|
|
258
265
|
baseComponent: true
|
|
259
266
|
});
|
package/lib/Menu.d.ts
CHANGED
|
@@ -48,6 +48,9 @@ declare const itemCva: import("@ndla/styled-system/types").RecipeRuntimeFn<{
|
|
|
48
48
|
}>;
|
|
49
49
|
export type MenuRootProps = Menu.RootProps;
|
|
50
50
|
export declare const MenuRoot: ({ lazyMount, unmountOnExit, ...props }: MenuRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
export declare const MenuContentStandalone: import("react").ForwardRefExoticComponent<{
|
|
52
|
+
consumeCss?: boolean;
|
|
53
|
+
} & import("@ndla/styled-system/types").WithCss & Menu.ContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
54
|
export declare const MenuContent: import("react").ForwardRefExoticComponent<{
|
|
52
55
|
consumeCss?: boolean;
|
|
53
56
|
} & import("@ndla/styled-system/types").WithCss & Menu.ContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/lib/Menu.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.MenuTriggerItem = exports.MenuTrigger = exports.MenuSeparator = exports.MenuRoot = exports.MenuPositioner = exports.MenuItemText = exports.MenuItemGroupLabel = exports.MenuItemGroup = exports.MenuItem = exports.MenuContent = void 0;
|
|
6
|
+
exports.MenuTriggerItem = exports.MenuTrigger = exports.MenuSeparator = exports.MenuRoot = exports.MenuPositioner = exports.MenuItemText = exports.MenuItemGroupLabel = exports.MenuItemGroup = exports.MenuItem = exports.MenuContentStandalone = exports.MenuContent = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@ark-ui/react");
|
|
9
9
|
var _css = require("@ndla/styled-system/css");
|
|
@@ -155,9 +155,15 @@ const MenuRoot = _ref => {
|
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
157
|
exports.MenuRoot = MenuRoot;
|
|
158
|
-
const
|
|
158
|
+
const MenuContentStandalone = exports.MenuContentStandalone = withContext(_react2.Menu.Content, "content", {
|
|
159
159
|
baseComponent: true
|
|
160
160
|
});
|
|
161
|
+
const MenuContent = exports.MenuContent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuPositioner, {
|
|
162
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuContentStandalone, {
|
|
163
|
+
ref: ref,
|
|
164
|
+
...props
|
|
165
|
+
})
|
|
166
|
+
}));
|
|
161
167
|
const InternalMenuItemGroupLabel = withContext(_react2.Menu.ItemGroupLabel, "itemGroupLabel");
|
|
162
168
|
const MenuItemGroupLabel = _ref2 => {
|
|
163
169
|
let {
|
package/lib/NdlaLogo.js
CHANGED
|
@@ -18,11 +18,13 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
18
18
|
const BaseSvg = _ref => {
|
|
19
19
|
let {
|
|
20
20
|
color = "primary",
|
|
21
|
+
"aria-hidden": ariaHidden = true,
|
|
21
22
|
css: cssProp,
|
|
22
23
|
...props
|
|
23
24
|
} = _ref;
|
|
24
25
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsx2.styled.svg, {
|
|
25
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
"aria-hidden": ariaHidden,
|
|
26
28
|
css: _css.css.raw({
|
|
27
29
|
color
|
|
28
30
|
}, cssProp),
|
package/lib/Select.d.ts
CHANGED
|
@@ -13,6 +13,9 @@ export declare const SelectRoot: <T extends unknown>({ lazyMount, unmountOnExit,
|
|
|
13
13
|
export declare const SelectClearTrigger: import("react").ForwardRefExoticComponent<Select.ClearTriggerProps & {
|
|
14
14
|
consumeCss?: boolean;
|
|
15
15
|
} & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export declare const SelectContentStandalone: import("react").ForwardRefExoticComponent<Select.ContentProps & {
|
|
17
|
+
consumeCss?: boolean;
|
|
18
|
+
} & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
19
|
export declare const SelectContent: import("react").ForwardRefExoticComponent<Select.ContentProps & {
|
|
17
20
|
consumeCss?: boolean;
|
|
18
21
|
} & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLDivElement>>;
|
package/lib/Select.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.SelectValueText = exports.SelectTrigger = exports.SelectRoot = exports.SelectPositioner = exports.SelectList = exports.SelectLabel = exports.SelectItemText = exports.SelectItemIndicator = exports.SelectItemGroupLabel = exports.SelectItemGroup = exports.SelectItem = exports.SelectIndicator = exports.SelectHiddenSelect = exports.SelectControl = exports.SelectContent = exports.SelectClearTrigger = void 0;
|
|
6
|
+
exports.SelectValueText = exports.SelectTrigger = exports.SelectRoot = exports.SelectPositioner = exports.SelectList = exports.SelectLabel = exports.SelectItemText = exports.SelectItemIndicator = exports.SelectItemGroupLabel = exports.SelectItemGroup = exports.SelectItem = exports.SelectIndicator = exports.SelectHiddenSelect = exports.SelectControl = exports.SelectContentStandalone = exports.SelectContent = exports.SelectClearTrigger = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@ark-ui/react");
|
|
9
9
|
var _css = require("@ndla/styled-system/css");
|
|
@@ -170,9 +170,15 @@ exports.SelectRoot = SelectRoot;
|
|
|
170
170
|
const SelectClearTrigger = exports.SelectClearTrigger = withContext(_react2.Select.ClearTrigger, "clearTrigger", {
|
|
171
171
|
baseComponent: true
|
|
172
172
|
});
|
|
173
|
-
const
|
|
173
|
+
const SelectContentStandalone = exports.SelectContentStandalone = withContext(_react2.Select.Content, "content", {
|
|
174
174
|
baseComponent: true
|
|
175
175
|
});
|
|
176
|
+
const SelectContent = exports.SelectContent = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectPositioner, {
|
|
177
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(SelectContentStandalone, {
|
|
178
|
+
ref: ref,
|
|
179
|
+
...props
|
|
180
|
+
})
|
|
181
|
+
}));
|
|
176
182
|
const SelectControl = exports.SelectControl = withContext(_react2.Select.Control, "control", {
|
|
177
183
|
baseComponent: true
|
|
178
184
|
});
|
package/lib/Spinner.d.ts
CHANGED
package/lib/Spinner.js
CHANGED
package/lib/ToggleGroup.d.ts
CHANGED
|
@@ -8,40 +8,14 @@
|
|
|
8
8
|
import { ToggleGroup } from "@ark-ui/react";
|
|
9
9
|
import { RecipeVariantProps } from "@ndla/styled-system/css";
|
|
10
10
|
import { JsxStyleProps } from "@ndla/styled-system/types";
|
|
11
|
-
import { IconButtonProps } from "./Button";
|
|
12
11
|
declare const toggleGroupRecipe: import("@ndla/styled-system/types").SlotRecipeRuntimeFn<"root" | "item", import("@ndla/styled-system/types").SlotRecipeVariantRecord<"root" | "item">>;
|
|
13
|
-
declare const toggleGroupItemRecipe: import("@ndla/styled-system/types").RecipeRuntimeFn<{
|
|
14
|
-
variant: {
|
|
15
|
-
primary: {
|
|
16
|
-
_on: {
|
|
17
|
-
background: "surface.action.selected";
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
secondary: {
|
|
21
|
-
_on: {
|
|
22
|
-
background: "surface.actionSubtle.active";
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
tertiary: {
|
|
26
|
-
_on: {
|
|
27
|
-
background: "surface.actionSubtle.active";
|
|
28
|
-
boxShadow: "inset 0 0 0 1px var(--shadow-color)";
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
}>;
|
|
33
12
|
export type ToggleGroupVariantProps = RecipeVariantProps<typeof toggleGroupRecipe>;
|
|
34
13
|
export type ToggleGroupRootProps = ToggleGroup.RootProps & JsxStyleProps & ToggleGroupVariantProps;
|
|
35
14
|
export declare const ToggleGroupRoot: import("react").ForwardRefExoticComponent<ToggleGroup.RootProps & {
|
|
36
15
|
consumeCss?: boolean;
|
|
37
16
|
} & import("@ndla/styled-system/types").WithCss & {} & import("react").RefAttributes<HTMLDivElement>>;
|
|
38
|
-
export type
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} & {
|
|
43
|
-
size?: "small" | "medium" | undefined;
|
|
44
|
-
} & {
|
|
45
|
-
variant?: "primary" | "secondary" | "tertiary" | undefined;
|
|
46
|
-
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
export type ToggleGroupItemProps = ToggleGroup.ItemProps & JsxStyleProps;
|
|
18
|
+
export declare const ToggleGroupItem: import("react").ForwardRefExoticComponent<ToggleGroup.ItemProps & {
|
|
19
|
+
consumeCss?: boolean;
|
|
20
|
+
} & import("@ndla/styled-system/types").WithCss & import("react").RefAttributes<HTMLButtonElement>>;
|
|
47
21
|
export {};
|
package/lib/ToggleGroup.js
CHANGED
|
@@ -4,12 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ToggleGroupRoot = exports.ToggleGroupItem = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _react2 = require("@ark-ui/react");
|
|
7
|
+
var _react = require("@ark-ui/react");
|
|
9
8
|
var _css = require("@ndla/styled-system/css");
|
|
10
|
-
var _Button = require("./Button");
|
|
11
9
|
var _createStyleContext = require("./createStyleContext");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
10
|
/**
|
|
14
11
|
* Copyright (c) 2024-present, NDLA.
|
|
15
12
|
*
|
|
@@ -19,7 +16,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
19
16
|
*/
|
|
20
17
|
|
|
21
18
|
const toggleGroupRecipe = (0, _css.sva)({
|
|
22
|
-
slots:
|
|
19
|
+
slots: _react.toggleGroupAnatomy.keys(),
|
|
23
20
|
base: {
|
|
24
21
|
root: {
|
|
25
22
|
display: "flex",
|
|
@@ -28,56 +25,13 @@ const toggleGroupRecipe = (0, _css.sva)({
|
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
27
|
});
|
|
31
|
-
const toggleGroupItemRecipe = (0, _css.cva)({
|
|
32
|
-
defaultVariants: {
|
|
33
|
-
variant: "primary"
|
|
34
|
-
},
|
|
35
|
-
variants: {
|
|
36
|
-
variant: {
|
|
37
|
-
primary: {
|
|
38
|
-
_on: {
|
|
39
|
-
background: "surface.action.selected"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
secondary: {
|
|
43
|
-
_on: {
|
|
44
|
-
background: "surface.actionSubtle.active"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
tertiary: {
|
|
48
|
-
_on: {
|
|
49
|
-
background: "surface.actionSubtle.active",
|
|
50
|
-
boxShadow: "inset 0 0 0 1px var(--shadow-color)"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
28
|
const {
|
|
57
29
|
withProvider,
|
|
58
30
|
withContext
|
|
59
31
|
} = (0, _createStyleContext.createStyleContext)(toggleGroupRecipe);
|
|
60
|
-
const ToggleGroupRoot = exports.ToggleGroupRoot = withProvider(
|
|
32
|
+
const ToggleGroupRoot = exports.ToggleGroupRoot = withProvider(_react.ToggleGroup.Root, "root", {
|
|
61
33
|
baseComponent: true
|
|
62
34
|
});
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
let {
|
|
66
|
-
children,
|
|
67
|
-
variant,
|
|
68
|
-
css: cssProp,
|
|
69
|
-
...props
|
|
70
|
-
} = _ref;
|
|
71
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(InternalToggleGroupItem, {
|
|
72
|
-
...props,
|
|
73
|
-
css: _css.css.raw(toggleGroupItemRecipe.raw({
|
|
74
|
-
variant
|
|
75
|
-
}), cssProp),
|
|
76
|
-
ref: ref,
|
|
77
|
-
asChild: true,
|
|
78
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.IconButton, {
|
|
79
|
-
variant: variant,
|
|
80
|
-
children: children
|
|
81
|
-
})
|
|
82
|
-
});
|
|
35
|
+
const ToggleGroupItem = exports.ToggleGroupItem = withContext(_react.ToggleGroup.Item, "item", {
|
|
36
|
+
baseComponent: true
|
|
83
37
|
});
|
package/lib/index.d.ts
CHANGED
|
@@ -17,12 +17,13 @@ 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
|
-
export type { ToggleGroupRootProps, ToggleGroupVariantProps, ToggleGroupItemProps
|
|
22
|
+
export type { ToggleGroupRootProps, ToggleGroupVariantProps, ToggleGroupItemProps } from "./ToggleGroup";
|
|
22
23
|
export type { CheckboxVariantProps, CheckboxRootProps } from "./Checkbox";
|
|
23
24
|
export { CheckboxRoot, CheckboxIndicator, CheckboxLabel, CheckboxControl, CheckboxGroup, CheckboxHiddenInput, } from "./Checkbox";
|
|
24
25
|
export type { ComboboxVariantProps, ComboboxRootProps, ComboboxClearTriggerProps, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemProps, ComboboxItemIndicatorProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxTriggerProps, ComboboxListProps, } from "./Combobox";
|
|
25
|
-
export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, ComboboxList, } from "./Combobox";
|
|
26
|
+
export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxContentStandalone, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, ComboboxList, } from "./Combobox";
|
|
26
27
|
export type { DialogVariantProps, DialogRootProps } from "./Dialog";
|
|
27
28
|
export { DialogRoot, DialogBackdrop, DialogStandaloneContent, DialogPositioner, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DialogCloseTrigger, DialogHeader, DialogBody, DialogFooter, } from "./Dialog";
|
|
28
29
|
export type { ExpandableBoxProps, ExpandableBoxSummaryProps } from "./ExpandableBox";
|
|
@@ -64,7 +65,7 @@ export { PopoverRoot, PopoverAnchor, PopoverArrowStandalone, PopoverArrow, Popov
|
|
|
64
65
|
export type { RadioGroupRootProps } from "./RadioGroup";
|
|
65
66
|
export { RadioGroupRoot, RadioGroupIndicator, RadioGroupItemControl, RadioGroupItem, RadioGroupItemText, RadioGroupLabel, RadioGroupItemHiddenInput, } from "./RadioGroup";
|
|
66
67
|
export type { SelectRootProps } from "./Select";
|
|
67
|
-
export { SelectRoot, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItemGroupLabel, SelectItemGroup, SelectItemIndicator, SelectItem, SelectItemText, SelectLabel, SelectPositioner, SelectTrigger, SelectValueText, SelectList, SelectHiddenSelect, } from "./Select";
|
|
68
|
+
export { SelectRoot, SelectClearTrigger, SelectContent, SelectControl, SelectIndicator, SelectItemGroupLabel, SelectItemGroup, SelectItemIndicator, SelectItem, SelectItemText, SelectLabel, SelectPositioner, SelectContentStandalone, SelectTrigger, SelectValueText, SelectList, SelectHiddenSelect, } from "./Select";
|
|
68
69
|
export type { SkeletonProps } from "./Skeleton";
|
|
69
70
|
export { Skeleton } from "./Skeleton";
|
|
70
71
|
export type { SliderRootProps } from "./Slider";
|
package/lib/index.js
CHANGED
|
@@ -129,6 +129,12 @@ Object.defineProperty(exports, "ComboboxContent", {
|
|
|
129
129
|
return _Combobox.ComboboxContent;
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
+
Object.defineProperty(exports, "ComboboxContentStandalone", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _Combobox.ComboboxContentStandalone;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
132
138
|
Object.defineProperty(exports, "ComboboxControl", {
|
|
133
139
|
enumerable: true,
|
|
134
140
|
get: function () {
|
|
@@ -831,6 +837,12 @@ Object.defineProperty(exports, "SelectContent", {
|
|
|
831
837
|
return _Select.SelectContent;
|
|
832
838
|
}
|
|
833
839
|
});
|
|
840
|
+
Object.defineProperty(exports, "SelectContentStandalone", {
|
|
841
|
+
enumerable: true,
|
|
842
|
+
get: function () {
|
|
843
|
+
return _Select.SelectContentStandalone;
|
|
844
|
+
}
|
|
845
|
+
});
|
|
834
846
|
Object.defineProperty(exports, "SelectControl", {
|
|
835
847
|
enumerable: true,
|
|
836
848
|
get: function () {
|
|
@@ -1287,6 +1299,12 @@ Object.defineProperty(exports, "buttonRecipe", {
|
|
|
1287
1299
|
return _Button.buttonRecipe;
|
|
1288
1300
|
}
|
|
1289
1301
|
});
|
|
1302
|
+
Object.defineProperty(exports, "createStyleContext", {
|
|
1303
|
+
enumerable: true,
|
|
1304
|
+
get: function () {
|
|
1305
|
+
return _createStyleContext.createStyleContext;
|
|
1306
|
+
}
|
|
1307
|
+
});
|
|
1290
1308
|
Object.defineProperty(exports, "getSrcSet", {
|
|
1291
1309
|
enumerable: true,
|
|
1292
1310
|
get: function () {
|
|
@@ -1311,6 +1329,7 @@ var _Badge = require("./Badge");
|
|
|
1311
1329
|
var _BlockQuote = require("./BlockQuote");
|
|
1312
1330
|
var _Button = require("./Button");
|
|
1313
1331
|
var _Card = require("./Card/Card");
|
|
1332
|
+
var _createStyleContext = require("./createStyleContext");
|
|
1314
1333
|
var _ToggleGroup = require("./ToggleGroup");
|
|
1315
1334
|
var _Checkbox = require("./Checkbox");
|
|
1316
1335
|
var _Combobox = require("./Combobox");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/primitives",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55-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": "
|
|
46
|
+
"gitHead": "428dc6978a13bfff19a02020ecdbb69ce5e3fb5e"
|
|
47
47
|
}
|