@ndla/primitives 0.0.17 → 0.0.18
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 +12 -10
- package/dist/styles.css +18 -10
- package/es/Accordion.js +58 -30
- package/es/Button.js +1 -1
- package/es/Card/Card.js +77 -0
- package/es/Checkbox.js +12 -4
- package/es/Combobox.js +30 -10
- package/es/Dialog.js +9 -3
- package/es/Menu.js +21 -7
- package/es/Pagination.js +15 -5
- package/es/Popover.js +30 -10
- package/es/RadioGroup.js +12 -4
- package/es/Select.js +36 -12
- package/es/Slider.js +15 -5
- package/es/Switch.js +9 -3
- package/es/Tabs.js +15 -5
- package/es/TagsInput.js +27 -9
- package/es/Toast.js +9 -3
- package/es/Tooltip.js +15 -5
- package/es/createStyleContext.js +4 -10
- package/es/index.js +2 -1
- package/lib/Accordion.d.ts +41 -2
- package/lib/Accordion.js +58 -30
- package/lib/Badge.d.ts +1 -0
- package/lib/Button.d.ts +1 -1
- package/lib/Button.js +1 -1
- package/lib/Card/Card.d.ts +19 -0
- package/lib/Card/Card.js +83 -0
- package/lib/Checkbox.js +12 -4
- package/lib/Combobox.d.ts +45 -13
- package/lib/Combobox.js +30 -10
- package/lib/Dialog.js +9 -3
- package/lib/Menu.js +21 -7
- package/lib/Pagination.d.ts +6 -2
- package/lib/Pagination.js +15 -5
- package/lib/Popover.js +30 -10
- package/lib/RadioGroup.js +12 -4
- package/lib/Select.js +36 -12
- package/lib/Slider.js +15 -5
- package/lib/Switch.js +9 -3
- package/lib/Tabs.d.ts +4 -1
- package/lib/Tabs.js +15 -5
- package/lib/TagsInput.d.ts +15 -2
- package/lib/TagsInput.js +27 -9
- package/lib/Toast.js +9 -3
- package/lib/Tooltip.js +15 -5
- package/lib/createStyleContext.d.ts +5 -2
- package/lib/createStyleContext.js +4 -10
- package/lib/index.d.ts +5 -4
- package/lib/index.js +37 -0
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -9,15 +9,16 @@ export type { AccordionRootProps } from "./Accordion";
|
|
|
9
9
|
export { AccordionRoot, AccordionItemContent, AccordionItemIndicator, AccordionItem, AccordionItemTrigger, } from "./Accordion";
|
|
10
10
|
export type { OrderedListProps, OrderedListVariantProps, UnOrderedListProps, DefinitionListProps, } from "./ArticleLists";
|
|
11
11
|
export { OrderedList, UnOrderedList, DefinitionList } from "./ArticleLists";
|
|
12
|
-
export type { BadgeVariantProps, BadgeProps } from "./Badge";
|
|
12
|
+
export type { BadgeVariantProps, BadgeProps, BadgeVariant } from "./Badge";
|
|
13
13
|
export { Badge } from "./Badge";
|
|
14
14
|
export type { BlockQuoteVariantProps, BlockQuoteProps } from "./BlockQuote";
|
|
15
15
|
export { BlockQuote } from "./BlockQuote";
|
|
16
16
|
export type { ButtonProps, ButtonVariantProps, IconButtonProps, IconButtonVariantProps } from "./Button";
|
|
17
17
|
export { Button, IconButton, buttonBaseRecipe, buttonRecipe, iconButtonRecipe } from "./Button";
|
|
18
|
+
export { CardRoot, CardHeading, CardContent, CardImage } from "./Card/Card";
|
|
18
19
|
export type { CheckboxVariantProps, CheckboxRootProps } from "./Checkbox";
|
|
19
20
|
export { CheckboxRoot, CheckboxIndicator, CheckboxLabel, CheckboxControl, CheckboxGroup, CheckboxHiddenInput, } from "./Checkbox";
|
|
20
|
-
export type { ComboboxVariantProps, ComboboxRootProps } from "./Combobox";
|
|
21
|
+
export type { ComboboxVariantProps, ComboboxRootProps, ComboboxClearTriggerProps, ComboboxContentProps, ComboboxControlProps, ComboboxInputProps, ComboboxItemGroupLabelProps, ComboboxItemGroupProps, ComboboxItemProps, ComboboxItemIndicatorProps, ComboboxItemTextProps, ComboboxLabelProps, ComboboxPositionerProps, ComboboxTriggerProps, } from "./Combobox";
|
|
21
22
|
export { ComboboxRoot, ComboboxClearTrigger, ComboboxContent, ComboboxControl, ComboboxInput, ComboboxItemGroupLabel, ComboboxItemGroup, ComboboxItemIndicator, ComboboxItem, ComboboxItemText, ComboboxLabel, ComboboxPositioner, ComboboxTrigger, } from "./Combobox";
|
|
22
23
|
export type { DialogVariantProps, DialogRootProps } from "./Dialog";
|
|
23
24
|
export { DialogRoot, DialogBackdrop, DialogStandaloneContent, DialogPositioner, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DialogCloseTrigger, DialogHeader, DialogBody, } from "./Dialog";
|
|
@@ -31,7 +32,7 @@ export { Figure } from "./Figure";
|
|
|
31
32
|
export type { FramedContentVariantProps, FramedContentProps } from "./FramedContent";
|
|
32
33
|
export { FramedContent } from "./FramedContent";
|
|
33
34
|
export type { ImageCrop, ImageFocalPoint, PictureProps, ImgProps, ImageProps } from "./Image";
|
|
34
|
-
export { Picture, Img, Image } from "./Image";
|
|
35
|
+
export { Picture, Img, Image, makeSrcQueryString, getSrcSet } from "./Image";
|
|
35
36
|
export { Input, FieldInput, InputContainer, TextArea, FieldTextArea } from "./Input";
|
|
36
37
|
export type { LabelProps } from "./Label";
|
|
37
38
|
export { Label, FieldLabel } from "./Label";
|
|
@@ -59,7 +60,7 @@ export type { SwitchVariantProps, SwitchRootProps } from "./Switch";
|
|
|
59
60
|
export { SwitchRoot, SwitchControl, SwitchThumb, SwitchLabel, SwitchHiddenInput } from "./Switch";
|
|
60
61
|
export type { TableProps } from "./Table";
|
|
61
62
|
export { Table } from "./Table";
|
|
62
|
-
export type { TagsInputRootProps } from "./TagsInput";
|
|
63
|
+
export type { TagsInputRootProps, TagsInputClearTriggerProps, TagsInputControlProps, TagsInputInputProps, TagsInputItemDeleteTriggerProps, TagsInputItemInputProps, TagsInputItemPreviewProps, TagsInputItemProps, TagsInputItemTextProps, TagsInputLabelProps, } from "./TagsInput";
|
|
63
64
|
export { TagsInputRoot, TagsInputClearTrigger, TagsInputControl, TagsInputInput, TagsInputItemDeleteTrigger, TagsInputItemInput, TagsInputItemPreview, TagsInputItem, TagsInputItemText, TagsInputLabel, } from "./TagsInput";
|
|
64
65
|
export type { TabsVariantProps, TabsRootProps } from "./Tabs";
|
|
65
66
|
export { TabsRoot, TabsContent, TabsIndicator, TabsList, TabsTrigger } from "./Tabs";
|
package/lib/index.js
CHANGED
|
@@ -51,6 +51,30 @@ Object.defineProperty(exports, "Button", {
|
|
|
51
51
|
return _Button.Button;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
+
Object.defineProperty(exports, "CardContent", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _Card.CardContent;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "CardHeading", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _Card.CardHeading;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "CardImage", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _Card.CardImage;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "CardRoot", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () {
|
|
75
|
+
return _Card.CardRoot;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
54
78
|
Object.defineProperty(exports, "CheckboxControl", {
|
|
55
79
|
enumerable: true,
|
|
56
80
|
get: function () {
|
|
@@ -945,17 +969,30 @@ Object.defineProperty(exports, "buttonRecipe", {
|
|
|
945
969
|
return _Button.buttonRecipe;
|
|
946
970
|
}
|
|
947
971
|
});
|
|
972
|
+
Object.defineProperty(exports, "getSrcSet", {
|
|
973
|
+
enumerable: true,
|
|
974
|
+
get: function () {
|
|
975
|
+
return _Image.getSrcSet;
|
|
976
|
+
}
|
|
977
|
+
});
|
|
948
978
|
Object.defineProperty(exports, "iconButtonRecipe", {
|
|
949
979
|
enumerable: true,
|
|
950
980
|
get: function () {
|
|
951
981
|
return _Button.iconButtonRecipe;
|
|
952
982
|
}
|
|
953
983
|
});
|
|
984
|
+
Object.defineProperty(exports, "makeSrcQueryString", {
|
|
985
|
+
enumerable: true,
|
|
986
|
+
get: function () {
|
|
987
|
+
return _Image.makeSrcQueryString;
|
|
988
|
+
}
|
|
989
|
+
});
|
|
954
990
|
var _Accordion = require("./Accordion");
|
|
955
991
|
var _ArticleLists = require("./ArticleLists");
|
|
956
992
|
var _Badge = require("./Badge");
|
|
957
993
|
var _BlockQuote = require("./BlockQuote");
|
|
958
994
|
var _Button = require("./Button");
|
|
995
|
+
var _Card = require("./Card/Card");
|
|
959
996
|
var _Checkbox = require("./Checkbox");
|
|
960
997
|
var _Combobox = require("./Combobox");
|
|
961
998
|
var _Dialog = require("./Dialog");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/primitives",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "Primitive components for NDLA.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@ndla/util": "^4.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@ndla/preset-panda": "^0.0.
|
|
36
|
+
"@ndla/preset-panda": "^0.0.11",
|
|
37
37
|
"@pandacss/dev": "^0.42.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "6fdfbed9f18bbd725c837fb74de2f093e80d5605"
|
|
47
47
|
}
|