@veracity/vui 0.3.1 → 0.4.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/avatar/avatar.d.ts +2 -2
- package/avatar/avatar.js +9 -29
- package/avatar/avatar.types.d.ts +9 -2
- package/avatar/helpers.d.ts +2 -0
- package/avatar/helpers.js +26 -0
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +1 -1
- package/avatar/theme.d.ts +1 -0
- package/avatar/theme.js +7 -0
- package/box/box.d.ts +2 -2
- package/box/box.js +9 -8
- package/box/box.types.d.ts +13 -2
- package/box/index.d.ts +1 -1
- package/box/index.js +1 -1
- package/box/theme.d.ts +1 -0
- package/box/theme.js +2 -0
- package/button/button.d.ts +7 -3
- package/button/button.js +24 -14
- package/button/button.types.d.ts +16 -34
- package/button/buttonIcon.d.ts +1 -0
- package/button/buttonIcon.js +3 -5
- package/button/buttonText.d.ts +1 -0
- package/button/buttonText.js +3 -5
- package/button/buttons.js +1 -1
- package/button/consts.js +2 -2
- package/button/index.d.ts +2 -2
- package/button/index.js +3 -3
- package/button/theme.d.ts +1 -0
- package/button/theme.js +5 -3
- package/buttonGroup/buttonGroup.d.ts +5 -2
- package/buttonGroup/buttonGroup.js +12 -8
- package/buttonGroup/buttonGroup.types.d.ts +4 -2
- package/buttonGroup/helpers.d.ts +1 -1
- package/buttonGroup/helpers.js +1 -1
- package/buttonGroup/index.d.ts +1 -1
- package/buttonGroup/index.js +2 -2
- package/card/card.d.ts +4 -0
- package/card/card.js +8 -0
- package/card/card.types.d.ts +3 -2
- package/card/index.d.ts +1 -1
- package/card/index.js +1 -1
- package/card/theme.d.ts +1 -0
- package/card/theme.js +2 -0
- package/checkbox/checkbox.d.ts +5 -4
- package/checkbox/checkbox.js +20 -10
- package/checkbox/checkbox.types.d.ts +21 -4
- package/checkbox/checkboxGroup.d.ts +5 -2
- package/checkbox/checkboxGroup.js +11 -7
- package/checkbox/checkboxGroup.types.d.ts +9 -2
- package/checkbox/index.d.ts +1 -1
- package/checkbox/index.js +2 -2
- package/checkbox/theme.d.ts +1 -0
- package/checkbox/theme.js +2 -0
- package/core/index.d.ts +4 -5
- package/core/index.js +4 -12
- package/core/media.d.ts +38 -0
- package/core/media.js +79 -0
- package/core/styled.d.ts +3 -0
- package/core/styled.js +21 -3
- package/core/theme.d.ts +41 -0
- package/core/theme.js +94 -0
- package/core/vui.d.ts +31 -0
- package/core/vui.js +20 -0
- package/core/vuiProvider/fontFaces.js +4 -0
- package/core/{globalStyle.d.ts → vuiProvider/globalStyle.d.ts} +7 -0
- package/core/{globalStyle.js → vuiProvider/globalStyle.js} +17 -9
- package/core/vuiProvider/index.d.ts +5 -0
- package/core/vuiProvider/index.js +26 -0
- package/core/{resetCSS.d.ts → vuiProvider/resetCSS.d.ts} +1 -0
- package/core/{resetCSS.js → vuiProvider/resetCSS.js} +2 -1
- package/core/vuiProvider/vuiProvider.d.ts +13 -0
- package/core/{vuiProvider.js → vuiProvider/vuiProvider.js} +3 -2
- package/divider/divider.d.ts +2 -2
- package/divider/divider.js +5 -4
- package/divider/divider.types.d.ts +5 -2
- package/divider/index.d.ts +1 -1
- package/divider/index.js +1 -1
- package/divider/theme.d.ts +1 -0
- package/divider/theme.js +2 -0
- package/footer/consts.d.ts +108 -8
- package/footer/consts.js +21 -9
- package/footer/footer.d.ts +3 -1
- package/footer/footer.js +21 -10
- package/footer/footer.types.d.ts +5 -0
- package/footer/footerColumn.d.ts +122 -121
- package/footer/footerColumn.js +1 -0
- package/footer/footerHeading.d.ts +1 -0
- package/footer/footerHeading.js +1 -0
- package/footer/footerLink.d.ts +1 -0
- package/footer/footerLink.js +1 -0
- package/footer/footerRow.d.ts +1 -0
- package/footer/footerRow.js +1 -0
- package/footer/footerSection.d.ts +1 -0
- package/footer/footerSection.js +2 -1
- package/footer/footerTrademark.d.ts +1 -0
- package/footer/footerTrademark.js +1 -0
- package/footer/helpers.d.ts +2 -3
- package/footer/helpers.js +16 -16
- package/footer/index.d.ts +2 -1
- package/footer/index.js +2 -2
- package/footer/theme.d.ts +1 -0
- package/footer/theme.js +2 -0
- package/header/consts.d.ts +58 -0
- package/header/consts.js +76 -0
- package/header/context.d.ts +4 -0
- package/header/context.js +23 -0
- package/header/header.d.ts +34 -0
- package/header/header.js +133 -0
- package/header/header.types.d.ts +103 -0
- package/header/headerAccount.d.ts +4 -0
- package/header/headerAccount.js +109 -0
- package/header/headerAccount.types.d.ts +35 -0
- package/header/headerContent.d.ts +4 -0
- package/header/headerContent.js +28 -0
- package/header/headerCreateAccount.d.ts +4 -0
- package/header/headerCreateAccount.js +47 -0
- package/header/headerDivider.d.ts +4 -0
- package/header/headerDivider.js +28 -0
- package/header/headerLinkItem.d.ts +4 -0
- package/header/headerLinkItem.js +53 -0
- package/header/headerLinksList.d.ts +4 -0
- package/header/headerLinksList.js +44 -0
- package/header/headerLogo.d.ts +4 -0
- package/header/headerLogo.js +44 -0
- package/header/headerMobileContent.d.ts +4 -0
- package/header/headerMobileContent.js +31 -0
- package/header/headerMobileToggle.d.ts +4 -0
- package/header/headerMobileToggle.js +33 -0
- package/header/headerNotifications.d.ts +4 -0
- package/header/headerNotifications.js +51 -0
- package/header/headerServices.d.ts +4 -0
- package/header/headerServices.js +55 -0
- package/header/headerSignIn.d.ts +4 -0
- package/header/headerSignIn.js +40 -0
- package/header/helpers.d.ts +17 -0
- package/header/helpers.js +66 -0
- package/header/index.d.ts +21 -0
- package/header/index.js +38 -0
- package/header/loggedInHeader.d.ts +4 -0
- package/header/loggedInHeader.js +57 -0
- package/header/loggedOutHeader.d.ts +4 -0
- package/header/loggedOutHeader.js +57 -0
- package/header/theme.d.ts +85 -0
- package/header/theme.js +89 -0
- package/heading/heading.d.ts +2 -2
- package/heading/heading.js +5 -4
- package/heading/heading.types.d.ts +7 -2
- package/heading/headings.js +1 -1
- package/heading/index.d.ts +1 -1
- package/heading/index.js +2 -2
- package/heading/theme.d.ts +1 -0
- package/heading/theme.js +2 -0
- package/icon/helpers.js +2 -2
- package/icon/icon.d.ts +1 -0
- package/icon/icon.js +2 -2
- package/icon/icon.types.d.ts +7 -4
- package/icon/index.d.ts +1 -1
- package/icon/index.js +1 -1
- package/icon/theme.d.ts +1 -0
- package/icon/theme.js +2 -0
- package/icons/baseIcons/fal/falFileInvoiceDollar.d.ts +3 -0
- package/icons/baseIcons/fal/falFileInvoiceDollar.js +7 -0
- package/icons/baseIcons/fas/fasCalendarAlt.js +1 -1
- package/icons/baseIcons/icons.d.ts +1 -0
- package/icons/baseIcons/icons.js +5 -3
- package/icons/baseIcons/types.d.ts +1 -1
- package/icons/cache.d.ts +15 -0
- package/icons/{library.js → cache.js} +10 -6
- package/icons/index.d.ts +1 -1
- package/icons/index.js +3 -3
- package/icons/types.d.ts +10 -3
- package/image/image.d.ts +2 -0
- package/image/image.js +11 -2
- package/image/image.types.d.ts +3 -2
- package/image/index.d.ts +1 -1
- package/image/index.js +1 -1
- package/image/theme.d.ts +1 -0
- package/image/theme.js +2 -0
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/input/consts.js +2 -2
- package/input/helpers.d.ts +1 -0
- package/input/helpers.js +1 -0
- package/input/index.d.ts +1 -1
- package/input/index.js +2 -2
- package/input/input.d.ts +7 -3
- package/input/input.js +17 -7
- package/input/input.types.d.ts +36 -7
- package/input/inputIcon.d.ts +1 -0
- package/input/inputIcon.js +2 -1
- package/input/inputInput.d.ts +2 -2
- package/input/inputInput.js +10 -5
- package/input/theme.d.ts +1 -0
- package/input/theme.js +2 -0
- package/link/index.d.ts +1 -1
- package/link/index.js +2 -2
- package/link/link.d.ts +6 -3
- package/link/link.js +15 -9
- package/link/link.types.d.ts +15 -7
- package/link/linkIcon.d.ts +1 -0
- package/link/linkIcon.js +3 -5
- package/link/linkText.d.ts +1 -0
- package/link/linkText.js +3 -5
- package/link/theme.d.ts +6 -0
- package/link/theme.js +9 -1
- package/list/index.d.ts +1 -1
- package/list/index.js +2 -2
- package/list/list.d.ts +3 -3
- package/list/list.js +13 -8
- package/list/list.types.d.ts +29 -8
- package/list/listDivider.d.ts +1 -0
- package/list/listDivider.js +3 -5
- package/list/listHeading.d.ts +1 -0
- package/list/listHeading.js +4 -6
- package/list/listIcon.d.ts +1 -0
- package/list/listIcon.js +3 -5
- package/list/listItem.d.ts +5 -2
- package/list/listItem.js +52 -19
- package/list/listText.d.ts +1 -0
- package/list/listText.js +3 -5
- package/list/theme.d.ts +1 -0
- package/list/theme.js +5 -2
- package/menu/menu.d.ts +1 -0
- package/menu/menu.js +1 -0
- package/menu/menu.types.d.ts +3 -0
- package/menu/menuButton.d.ts +1 -0
- package/menu/menuButton.js +3 -4
- package/menu/menuItem.d.ts +1 -0
- package/menu/menuItem.js +9 -23
- package/menu/menuList.d.ts +1 -0
- package/menu/menuList.js +3 -4
- package/menu/theme.d.ts +16 -2
- package/menu/theme.js +18 -3
- package/modal/context.d.ts +4 -0
- package/modal/context.js +23 -0
- package/modal/focusLock.d.ts +9 -0
- package/modal/focusLock.js +47 -0
- package/modal/focusLock.types.d.ts +28 -0
- package/modal/focusLock.types.js +2 -0
- package/modal/index.d.ts +7 -0
- package/modal/index.js +24 -0
- package/modal/modal.d.ts +10 -0
- package/modal/modal.js +109 -0
- package/modal/modal.types.d.ts +40 -0
- package/modal/modal.types.js +2 -0
- package/modal/modalBackdrop.d.ts +4 -0
- package/modal/modalBackdrop.js +38 -0
- package/modal/modalManager.d.ts +12 -0
- package/modal/modalManager.js +33 -0
- package/modal/theme.d.ts +7 -0
- package/modal/theme.js +12 -0
- package/notification/consts.js +2 -2
- package/notification/index.d.ts +2 -2
- package/notification/index.js +3 -3
- package/notification/notification.d.ts +5 -1
- package/notification/notification.js +12 -27
- package/notification/notification.types.d.ts +11 -4
- package/notification/notificationButton.d.ts +1 -0
- package/notification/notificationButton.js +4 -5
- package/notification/notificationIcon.d.ts +1 -0
- package/notification/notificationIcon.js +7 -7
- package/notification/notificationText.d.ts +1 -0
- package/notification/notificationText.js +3 -5
- package/notification/notificationTitle.d.ts +1 -0
- package/notification/notificationTitle.js +3 -5
- package/notification/theme.d.ts +1 -0
- package/notification/theme.js +2 -0
- package/p/index.d.ts +1 -1
- package/p/index.js +1 -1
- package/p/p.d.ts +2 -2
- package/p/p.js +5 -4
- package/p/p.types.d.ts +7 -2
- package/p/theme.d.ts +1 -0
- package/p/theme.js +2 -0
- package/package.json +3 -1
- package/panel/index.d.ts +1 -1
- package/panel/index.js +1 -1
- package/panel/panel.d.ts +4 -0
- package/panel/panel.js +4 -0
- package/panel/panel.types.d.ts +1 -2
- package/panel/theme.d.ts +1 -0
- package/panel/theme.js +2 -0
- package/popover/consts.d.ts +6 -0
- package/popover/consts.js +42 -0
- package/popover/index.d.ts +1 -1
- package/popover/index.js +1 -1
- package/popover/popover.d.ts +6 -2
- package/popover/popover.js +20 -4
- package/popover/popover.types.d.ts +4 -1
- package/popover/popoverContent.d.ts +2 -1
- package/popover/popoverContent.js +6 -1
- package/popover/popoverTrigger.d.ts +4 -0
- package/popover/popoverTrigger.js +4 -0
- package/popover/theme.d.ts +1 -0
- package/popover/theme.js +2 -0
- package/popover/usePopover.d.ts +5 -0
- package/popover/usePopover.js +26 -18
- package/popover/usePopover.types.d.ts +17 -6
- package/portal/index.d.ts +3 -0
- package/{styles → portal}/index.js +5 -5
- package/portal/portal.d.ts +5 -0
- package/portal/portal.js +56 -0
- package/portal/portal.types.d.ts +7 -0
- package/portal/portal.types.js +2 -0
- package/radio/index.d.ts +1 -1
- package/radio/index.js +2 -2
- package/radio/radio.d.ts +5 -4
- package/radio/radio.js +20 -10
- package/radio/radio.types.d.ts +19 -4
- package/radio/radioGroup.d.ts +5 -2
- package/radio/radioGroup.js +11 -7
- package/radio/radioGroup.types.d.ts +10 -2
- package/radio/theme.d.ts +1 -0
- package/radio/theme.js +2 -0
- package/skeleton/index.d.ts +1 -1
- package/skeleton/index.js +1 -1
- package/skeleton/skeleton.d.ts +2 -2
- package/skeleton/skeleton.js +4 -3
- package/skeleton/skeleton.types.d.ts +5 -2
- package/skeleton/theme.d.ts +1 -0
- package/skeleton/theme.js +2 -0
- package/spinner/index.d.ts +1 -1
- package/spinner/index.js +1 -1
- package/spinner/spinner.d.ts +6 -2
- package/spinner/spinner.js +12 -5
- package/spinner/spinner.types.d.ts +10 -6
- package/spinner/theme.d.ts +1 -0
- package/spinner/theme.js +2 -0
- package/svg/helpers.d.ts +1 -1
- package/svg/index.d.ts +1 -1
- package/svg/index.js +1 -1
- package/svg/svg.d.ts +6 -1
- package/svg/svg.js +16 -5
- package/svg/svg.types.d.ts +7 -5
- package/switch/context.d.ts +2 -2
- package/switch/index.d.ts +1 -1
- package/switch/index.js +2 -2
- package/switch/switch.d.ts +6 -3
- package/switch/switch.js +15 -12
- package/switch/switch.types.d.ts +37 -4
- package/switch/switchButton.d.ts +5 -5
- package/switch/switchButton.js +34 -26
- package/switch/switchLabel.d.ts +1 -0
- package/switch/switchLabel.js +3 -5
- package/switch/theme.d.ts +1 -0
- package/switch/theme.js +2 -0
- package/system/animations.d.ts +3 -4
- package/system/backgrounds.d.ts +4 -5
- package/system/borders.d.ts +60 -61
- package/system/custom.d.ts +4 -4
- package/system/effects.d.ts +7 -8
- package/system/flexboxGrids.d.ts +5 -6
- package/system/flexboxes.d.ts +28 -29
- package/system/grids.d.ts +25 -26
- package/system/index.d.ts +0 -1
- package/system/index.js +0 -6
- package/system/interactivity.d.ts +11 -12
- package/system/layout.d.ts +31 -32
- package/system/sizing.d.ts +13 -14
- package/system/space.d.ts +37 -38
- package/system/system.d.ts +4 -5
- package/system/system.js +3 -1
- package/system/tables.d.ts +5 -6
- package/system/transforms.d.ts +22 -23
- package/system/transitions.d.ts +11 -12
- package/system/typography.d.ts +33 -34
- package/t/index.d.ts +1 -1
- package/t/index.js +1 -1
- package/t/t.d.ts +2 -2
- package/t/t.js +5 -4
- package/t/t.types.d.ts +8 -2
- package/t/theme.d.ts +1 -0
- package/t/theme.js +2 -0
- package/tag/index.d.ts +1 -1
- package/tag/index.js +2 -2
- package/tag/tag.d.ts +6 -3
- package/tag/tag.js +14 -7
- package/tag/tag.types.d.ts +19 -6
- package/tag/tagButton.d.ts +1 -0
- package/tag/tagButton.js +4 -16
- package/tag/tagIcon.d.ts +1 -0
- package/tag/tagIcon.js +3 -5
- package/tag/tagText.d.ts +1 -0
- package/tag/tagText.js +3 -5
- package/tag/theme.d.ts +1 -0
- package/tag/theme.js +8 -0
- package/textarea/helpers.d.ts +1 -0
- package/textarea/helpers.js +1 -0
- package/textarea/index.d.ts +1 -1
- package/textarea/index.js +1 -1
- package/textarea/textarea.d.ts +5 -3
- package/textarea/textarea.js +23 -10
- package/textarea/textarea.types.d.ts +22 -2
- package/textarea/theme.d.ts +1 -0
- package/textarea/theme.js +2 -0
- package/theme/components.d.ts +129 -2
- package/theme/components.js +38 -36
- package/theme/defaultTheme.d.ts +134 -2
- package/theme/foundations/colors.d.ts +10 -0
- package/theme/foundations/colors.js +8 -2
- package/theme/foundations/index.d.ts +5 -0
- package/theme/foundations/shadows.js +3 -3
- package/theme/foundations/transformers.js +3 -2
- package/theme/index.d.ts +1 -3
- package/theme/index.js +4 -5
- package/theme/types.d.ts +3 -2
- package/utils/assertion.d.ts +5 -5
- package/utils/assertion.js +8 -4
- package/utils/index.d.ts +1 -0
- package/utils/index.js +1 -0
- package/utils/object.d.ts +2 -2
- package/utils/object.js +3 -1
- package/utils/react.d.ts +10 -5
- package/utils/react.js +64 -9
- package/utils/string.d.ts +5 -0
- package/utils/string.js +19 -0
- package/utils/styles.d.ts +2 -2
- package/utils/styles.js +4 -4
- package/utils/types.d.ts +11 -4
- package/core/types/component.d.ts +0 -25
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -14
- package/core/types/themeGet.d.ts +0 -24
- package/core/utils.d.ts +0 -56
- package/core/utils.js +0 -194
- package/core/vuiProvider.d.ts +0 -20
- package/icons/library.d.ts +0 -11
- package/popover/plugins.d.ts +0 -3
- package/popover/plugins.js +0 -24
- package/styles/fontFaces.js +0 -4
- package/styles/helpers.d.ts +0 -4
- package/styles/helpers.js +0 -8
- package/styles/index.d.ts +0 -3
- /package/{styles → core/vuiProvider}/animations.d.ts +0 -0
- /package/{styles → core/vuiProvider}/animations.js +0 -0
- /package/{styles → core/vuiProvider}/fontFaces.d.ts +0 -0
- /package/{core/types/component.js → header/header.types.js} +0 -0
- /package/{core/types/themeGet.js → header/headerAccount.types.js} +0 -0
package/tag/tag.js
CHANGED
|
@@ -50,15 +50,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
51
|
exports.Tag = exports.TagBase = void 0;
|
|
52
52
|
var react_1 = __importStar(require("react"));
|
|
53
|
-
var
|
|
53
|
+
var core_1 = require("../core");
|
|
54
|
+
var utils_1 = require("../utils");
|
|
54
55
|
var context_1 = require("./context");
|
|
55
56
|
var tagButton_1 = __importDefault(require("./tagButton"));
|
|
56
57
|
var tagIcon_1 = __importDefault(require("./tagIcon"));
|
|
57
58
|
var tagText_1 = __importDefault(require("./tagText"));
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
exports.TagBase = core_1.styled.spanBox(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\talign-items: center;\n\tborder-radius: md;\n\tdisplay: inline-flex;\n\tfont-weight: medium;\n\tjustify-content: center;\n\tline-height: normal;\n\tposition: relative;\n\ttransition-duration: fast;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t&[aria-disabled='true'] {\n\t\tbackground-color: disabled.bg;\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t\tuser-select: none;\n\t}\n"], ["\n\talign-items: center;\n\tborder-radius: md;\n\tdisplay: inline-flex;\n\tfont-weight: medium;\n\tjustify-content: center;\n\tline-height: normal;\n\tposition: relative;\n\ttransition-duration: fast;\n\twidth: fit-content;\n\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t}\n\n\t&[aria-disabled='true'] {\n\t\tbackground-color: disabled.bg;\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t\tuser-select: none;\n\t}\n"
|
|
60
|
+
/**
|
|
61
|
+
* Displays text, icons or custom content. Can be made interactive or a link.
|
|
62
|
+
* Exposes some props to the children via context.
|
|
63
|
+
*/
|
|
64
|
+
])));
|
|
65
|
+
/**
|
|
66
|
+
* Displays text, icons or custom content. Can be made interactive or a link.
|
|
67
|
+
* Exposes some props to the children via context.
|
|
68
|
+
*/
|
|
62
69
|
exports.Tag = (0, core_1.vui)(function (props, ref) {
|
|
63
70
|
var casing = props.casing, children = props.children, className = props.className, _a = props.colorScheme, colorScheme = _a === void 0 ? 'blue' : _a, disabled = props.disabled, icon = props.icon, iconLeft = props.iconLeft, iconRight = props.iconRight, isFullWidth = props.isFullWidth, _b = props.isInteractive, isInteractive = _b === void 0 ? props.onClick !== undefined : _b, isRound = props.isRound, _c = props.isTruncated, isTruncated = _c === void 0 ? true : _c, itemLeft = props.itemLeft, itemRight = props.itemRight, onClick = props.onClick, onDelete = props.onDelete, _d = props.size, size = _d === void 0 ? 'md' : _d, text = props.text, _e = props.variant, variant = _e === void 0 ? 'subtle' : _e, weight = props.weight, rest = __rest(props, ["casing", "children", "className", "colorScheme", "disabled", "icon", "iconLeft", "iconRight", "isFullWidth", "isInteractive", "isRound", "isTruncated", "itemLeft", "itemRight", "onClick", "onDelete", "size", "text", "variant", "weight"]);
|
|
64
71
|
var styles = (0, core_1.useStyleConfig)('Tag', props);
|
|
@@ -80,13 +87,13 @@ exports.Tag = (0, core_1.vui)(function (props, ref) {
|
|
|
80
87
|
: {};
|
|
81
88
|
var aliasedProps = (0, utils_1.filterUndefined)({
|
|
82
89
|
borderRadius: isRound ? h / 2 : undefined,
|
|
83
|
-
'
|
|
90
|
+
'aria-disabled': disabled,
|
|
84
91
|
fontWeight: weight,
|
|
85
92
|
textTransform: casing,
|
|
86
93
|
w: isFullWidth ? '100%' : undefined
|
|
87
94
|
});
|
|
88
95
|
return (react_1.default.createElement(context_1.TagProvider, { value: context },
|
|
89
|
-
react_1.default.createElement(exports.TagBase, __assign({
|
|
96
|
+
react_1.default.createElement(exports.TagBase, __assign({ className: (0, utils_1.cs)('vui-tag', className), h: h, onClick: !disabled ? onClick : undefined, pl: pl, pr: pr, ref: ref }, tagStyles, interactiveProps, aliasedProps, rest),
|
|
90
97
|
(0, utils_1.isString)(icon) ? react_1.default.createElement(tagIcon_1.default, { name: icon }) : icon,
|
|
91
98
|
!icon && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
92
99
|
itemLeft,
|
package/tag/tag.types.d.ts
CHANGED
|
@@ -2,20 +2,33 @@
|
|
|
2
2
|
import { IconProp } from '../icon';
|
|
3
3
|
import { SystemProps, TypographyProps } from '../system';
|
|
4
4
|
import { ThemingProps } from '../theme';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
export declare type TagProps = SystemProps & ThemingProps<'Tag'> & {
|
|
6
|
+
/** Alias for textTransform prop. @deprecated */
|
|
7
7
|
casing?: TypographyProps['textTransform'];
|
|
8
|
+
/** Available theme colors for this component. @default blue */
|
|
8
9
|
colorScheme?: 'blue' | 'green' | 'grey' | 'prussian' | 'red' | 'yellow';
|
|
10
|
+
/** Displays tag and its content in disabled state with appropriate styling. */
|
|
9
11
|
disabled?: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
/** Icon that replaces any other content. */
|
|
13
|
+
icon?: IconProp | JSX.Element;
|
|
14
|
+
/** Socket displaying icon on the left side. */
|
|
15
|
+
iconLeft?: IconProp | JSX.Element;
|
|
16
|
+
/** Socket displaying icon on the right side. */
|
|
17
|
+
iconRight?: IconProp | JSX.Element;
|
|
18
|
+
/** Makes the button take full width of the container. @deprecated */
|
|
13
19
|
isFullWidth?: boolean;
|
|
20
|
+
/** Makes item clickable and focusable with appropriate styling. */
|
|
14
21
|
isInteractive?: boolean;
|
|
22
|
+
/** Rounds the borders. @default false */
|
|
15
23
|
isRound?: boolean;
|
|
24
|
+
/** Socket displaying a custom item on the left. */
|
|
16
25
|
itemLeft?: React.ReactNode;
|
|
26
|
+
/** Socket displaying a custom item on right left. */
|
|
17
27
|
itemRight?: React.ReactNode;
|
|
28
|
+
/** If provided, displays a remove button with this function as onClick. */
|
|
18
29
|
onDelete?: () => void;
|
|
30
|
+
/** Socket displaying text as alternative to children. */
|
|
19
31
|
text?: React.ReactNode;
|
|
32
|
+
/** Alias for fontWeight prop. @deprecated */
|
|
20
33
|
weight?: TypographyProps['fontWeight'];
|
|
21
|
-
}
|
|
34
|
+
};
|
package/tag/tagButton.d.ts
CHANGED
package/tag/tagButton.js
CHANGED
|
@@ -10,32 +10,20 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
15
|
};
|
|
27
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
17
|
exports.TagButton = void 0;
|
|
29
18
|
var react_1 = __importDefault(require("react"));
|
|
30
|
-
var context_1 = require("./context");
|
|
31
19
|
var button_1 = __importDefault(require("../button"));
|
|
32
20
|
var core_1 = require("../core");
|
|
21
|
+
var context_1 = require("./context");
|
|
22
|
+
/** Displays a button within the Tag. */
|
|
33
23
|
exports.TagButton = (0, core_1.vui)(function (props, ref) {
|
|
34
|
-
var
|
|
35
|
-
var _b = (_a = (0, context_1.useTag)()) !== null && _a !== void 0 ? _a : {}, disabled = _b.disabled, tagProps = __rest(_b, ["disabled"]);
|
|
36
|
-
var mergedProps = __assign(__assign({}, tagProps), props);
|
|
24
|
+
var mergedProps = __assign(__assign({}, (0, context_1.useTag)()), props);
|
|
37
25
|
var styles = (0, core_1.useStyleConfig)('Tag', mergedProps);
|
|
38
|
-
return (react_1.default.createElement(button_1.default, __assign({ borderColor: "transparent", className: "vui-tagButton", colorScheme: mergedProps.colorScheme, disabled: disabled, hoverBorderColor: "transparent", icon: "falTimes", mr: -0.5, ref: ref, variant: "text" }, styles.button, props)));
|
|
26
|
+
return (react_1.default.createElement(button_1.default, __assign({ borderColor: "transparent", className: "vui-tagButton", colorScheme: mergedProps.colorScheme, disabled: mergedProps.disabled, hoverBorderColor: "transparent", icon: "falTimes", mr: -0.5, ref: ref, variant: "text" }, styles.button, props)));
|
|
39
27
|
});
|
|
40
28
|
exports.TagButton.displayName = 'TagButton';
|
|
41
29
|
exports.default = exports.TagButton;
|
package/tag/tagIcon.d.ts
CHANGED
package/tag/tagIcon.js
CHANGED
|
@@ -16,14 +16,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.TagIcon = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var context_1 = require("./context");
|
|
20
19
|
var core_1 = require("../core");
|
|
21
20
|
var icon_1 = __importDefault(require("../icon"));
|
|
21
|
+
var context_1 = require("./context");
|
|
22
|
+
/** Displays an icon within the Tag. */
|
|
22
23
|
exports.TagIcon = (0, core_1.vui)(function (props, ref) {
|
|
23
|
-
var
|
|
24
|
-
var tagProps = (_a = (0, context_1.useTag)()) !== null && _a !== void 0 ? _a : {};
|
|
25
|
-
var mergedProps = __assign(__assign({}, tagProps), props);
|
|
26
|
-
var styles = (0, core_1.useStyleConfig)('Tag', mergedProps);
|
|
24
|
+
var styles = (0, core_1.useStyleConfig)('Tag', __assign(__assign({}, (0, context_1.useTag)()), props));
|
|
27
25
|
return react_1.default.createElement(icon_1.default, __assign({ className: "vui-tagIcon", ref: ref }, styles.icon, props));
|
|
28
26
|
});
|
|
29
27
|
exports.TagIcon.displayName = 'TagIcon';
|
package/tag/tagText.d.ts
CHANGED
package/tag/tagText.js
CHANGED
|
@@ -16,14 +16,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.TagText = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var context_1 = require("./context");
|
|
20
19
|
var core_1 = require("../core");
|
|
21
20
|
var t_1 = __importDefault(require("../t"));
|
|
21
|
+
var context_1 = require("./context");
|
|
22
|
+
/** Displays text within the Tag. */
|
|
22
23
|
exports.TagText = (0, core_1.vui)(function (props, ref) {
|
|
23
|
-
var
|
|
24
|
-
var tagProps = (_a = (0, context_1.useTag)()) !== null && _a !== void 0 ? _a : {};
|
|
25
|
-
var mergedProps = __assign(__assign({}, tagProps), props);
|
|
26
|
-
var styles = (0, core_1.useStyleConfig)('Tag', mergedProps);
|
|
24
|
+
var styles = (0, core_1.useStyleConfig)('Tag', __assign(__assign({}, (0, context_1.useTag)()), props));
|
|
27
25
|
return react_1.default.createElement(t_1.default, __assign({ className: "vui-tagText", fontSize: "inherit", ref: ref }, styles.text, props));
|
|
28
26
|
});
|
|
29
27
|
exports.TagText.displayName = 'TagText';
|
package/tag/theme.d.ts
CHANGED
package/tag/theme.js
CHANGED
|
@@ -14,6 +14,12 @@ function variantSolid(props) {
|
|
|
14
14
|
bg: c + ".80",
|
|
15
15
|
color: 'white'
|
|
16
16
|
};
|
|
17
|
+
if (c === 'prussian') {
|
|
18
|
+
container.hoverBg = 'prussian.60';
|
|
19
|
+
container.activeBg = 'prussian.50';
|
|
20
|
+
button.hoverBg = 'prussian.60';
|
|
21
|
+
button.activeBg = 'prussian.50';
|
|
22
|
+
}
|
|
17
23
|
if (c === 'yellow') {
|
|
18
24
|
container.hoverBg = 'yellow.80';
|
|
19
25
|
container.activeBg = 'yellow.90';
|
|
@@ -51,6 +57,7 @@ function variantSubtle(props) {
|
|
|
51
57
|
}
|
|
52
58
|
return { container: container, button: button };
|
|
53
59
|
}
|
|
60
|
+
var baseStyle = {};
|
|
54
61
|
var defaultProps = {
|
|
55
62
|
colorScheme: 'blue',
|
|
56
63
|
size: 'md',
|
|
@@ -103,6 +110,7 @@ var variants = {
|
|
|
103
110
|
subtle: variantSubtle
|
|
104
111
|
};
|
|
105
112
|
exports.default = {
|
|
113
|
+
baseStyle: baseStyle,
|
|
106
114
|
defaultProps: defaultProps,
|
|
107
115
|
parts: parts,
|
|
108
116
|
sizes: sizes,
|
package/textarea/helpers.d.ts
CHANGED
package/textarea/helpers.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInitialCount = void 0;
|
|
4
|
+
/** Returns length of the initial textarea's value. */
|
|
4
5
|
function getInitialCount(props) {
|
|
5
6
|
var _a, _b;
|
|
6
7
|
var defaultValue = props.defaultValue, value = props.value;
|
package/textarea/index.d.ts
CHANGED
package/textarea/index.js
CHANGED
|
@@ -15,6 +15,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.default = void 0;
|
|
17
17
|
__exportStar(require("./textarea"), exports);
|
|
18
|
-
__exportStar(require("./textarea.types"), exports);
|
|
19
18
|
var textarea_1 = require("./textarea");
|
|
20
19
|
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(textarea_1).default; } });
|
|
20
|
+
__exportStar(require("./textarea.types"), exports);
|
package/textarea/textarea.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TextareaProps } from './textarea.types';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const TextareaBase: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("..").SystemProps, never>;
|
|
3
|
+
/**
|
|
4
|
+
* Displays a textarea element wrapped in a div to allow extra content, like counter.
|
|
5
|
+
* Forwards many relevant props to the inner textarea. Exposes some props to the children via context.
|
|
6
|
+
*/
|
|
5
7
|
export declare const Textarea: import("../core").VuiComponent<"div", TextareaProps>;
|
|
6
8
|
export default Textarea;
|
package/textarea/textarea.js
CHANGED
|
@@ -64,19 +64,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
64
64
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.Textarea = exports.TextareaBase =
|
|
67
|
+
exports.Textarea = exports.TextareaBase = void 0;
|
|
68
68
|
var react_1 = __importStar(require("react"));
|
|
69
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
70
|
-
var helpers_1 = require("./helpers");
|
|
71
69
|
var core_1 = require("../core");
|
|
72
|
-
var system_1 = require("../system");
|
|
73
70
|
var t_1 = __importDefault(require("../t"));
|
|
74
71
|
var utils_1 = require("../utils");
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
var helpers_1 = require("./helpers");
|
|
73
|
+
var TextareaTextarea = core_1.styled.textareaBox(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tborder-radius: md;\n\tborder-width: 1px;\n\theight: 100%;\n\toutline: none;\n\tpadding: 1;\n\tresize: none;\n\ttransition-duration: fast;\n\twidth: 100%;\n\n\t&::placeholder {\n\t\tcolor: grey.60;\n\t}\n\n\t&[aria-disabled='true'],\n\t&[aria-disabled='true']::placeholder {\n\t\tbackground-color: disabled.bg;\n\t\tborder-color: disabled.border;\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"], ["\n\tborder-radius: md;\n\tborder-width: 1px;\n\theight: 100%;\n\toutline: none;\n\tpadding: 1;\n\tresize: none;\n\ttransition-duration: fast;\n\twidth: 100%;\n\n\t&::placeholder {\n\t\tcolor: grey.60;\n\t}\n\n\t&[aria-disabled='true'],\n\t&[aria-disabled='true']::placeholder {\n\t\tbackground-color: disabled.bg;\n\t\tborder-color: disabled.border;\n\t\tcolor: disabled.color;\n\t\tcursor: not-allowed;\n\t}\n"])));
|
|
74
|
+
exports.TextareaBase = core_1.styled.divBox(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 80px;\n\tposition: relative;\n\twidth: 100%;\n"], ["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmin-height: 80px;\n\tposition: relative;\n\twidth: 100%;\n"
|
|
75
|
+
/**
|
|
76
|
+
* Displays a textarea element wrapped in a div to allow extra content, like counter.
|
|
77
|
+
* Forwards many relevant props to the inner textarea. Exposes some props to the children via context.
|
|
78
|
+
*/
|
|
79
|
+
])));
|
|
80
|
+
/**
|
|
81
|
+
* Displays a textarea element wrapped in a div to allow extra content, like counter.
|
|
82
|
+
* Forwards many relevant props to the inner textarea. Exposes some props to the children via context.
|
|
83
|
+
*/
|
|
77
84
|
exports.Textarea = (0, core_1.vui)(function (props, ref) {
|
|
78
85
|
var _a = __read((0, react_1.useState)((0, helpers_1.getInitialCount)(props)), 2), count = _a[0], setCount = _a[1];
|
|
79
|
-
var _b = (0, core_1.omitThemingProps)(props), autoFocus = _b.autoFocus, className = _b.className, colorSchemeProp = _b.colorScheme, defaultValue = _b.defaultValue, disabled = _b.disabled, id = _b.id, isInvalid = _b.isInvalid, maxLength = _b.maxLength, name = _b.name, onBlur = _b.onBlur, onChangeProp = _b.onChange, onFocus = _b.onFocus, placeholder = _b.placeholder, readOnly = _b.readOnly, required = _b.required,
|
|
86
|
+
var _b = (0, core_1.omitThemingProps)(props), autoFocus = _b.autoFocus, className = _b.className, colorSchemeProp = _b.colorScheme, cols = _b.cols, defaultValue = _b.defaultValue, disabled = _b.disabled, id = _b.id, isInvalid = _b.isInvalid, maxLength = _b.maxLength, name = _b.name, onBlur = _b.onBlur, onChangeProp = _b.onChange, onFocus = _b.onFocus, placeholder = _b.placeholder, readOnly = _b.readOnly, required = _b.required, _c = _b.resize, resize = _c === void 0 ? 'none' : _c, rows = _b.rows, showCount = _b.showCount, _d = _b.textareaProps, textareaProps = _d === void 0 ? {} : _d, textareaRef = _b.textareaRef, value = _b.value, rest = __rest(_b, ["autoFocus", "className", "colorScheme", "cols", "defaultValue", "disabled", "id", "isInvalid", "maxLength", "name", "onBlur", "onChange", "onFocus", "placeholder", "readOnly", "required", "resize", "rows", "showCount", "textareaProps", "textareaRef", "value"]);
|
|
80
87
|
var colorProps = (0, utils_1.filterUndefined)({
|
|
81
88
|
colorScheme: colorSchemeProp !== null && colorSchemeProp !== void 0 ? colorSchemeProp : (isInvalid ? 'red' : undefined)
|
|
82
89
|
});
|
|
@@ -86,13 +93,18 @@ exports.Textarea = (0, core_1.vui)(function (props, ref) {
|
|
|
86
93
|
onChangeProp === null || onChangeProp === void 0 ? void 0 : onChangeProp(e);
|
|
87
94
|
}
|
|
88
95
|
var aliasedProps = (0, utils_1.filterUndefined)({
|
|
96
|
+
'aria-disabled': disabled
|
|
97
|
+
});
|
|
98
|
+
var textareaAliasedProps = (0, utils_1.filterUndefined)({
|
|
99
|
+
'aria-disabled': disabled,
|
|
89
100
|
bg: readOnly ? 'grey.20' : undefined,
|
|
90
101
|
focusBorderColor: !readOnly ? 'transparent' : undefined,
|
|
91
102
|
focusRing: readOnly ? 0 : undefined
|
|
92
103
|
});
|
|
93
|
-
return (react_1.default.createElement(exports.TextareaBase, __assign({ className: (0, utils_1.cs)('vui-textarea', className), ref: ref }, styles.container, rest),
|
|
94
|
-
react_1.default.createElement(
|
|
104
|
+
return (react_1.default.createElement(exports.TextareaBase, __assign({ className: (0, utils_1.cs)('vui-textarea', className), ref: ref }, styles.container, aliasedProps, rest),
|
|
105
|
+
react_1.default.createElement(TextareaTextarea, __assign({ className: "vui-textareaTextarea", ref: textareaRef }, {
|
|
95
106
|
autoFocus: autoFocus,
|
|
107
|
+
cols: cols,
|
|
96
108
|
defaultValue: defaultValue,
|
|
97
109
|
disabled: disabled,
|
|
98
110
|
id: id,
|
|
@@ -105,8 +117,9 @@ exports.Textarea = (0, core_1.vui)(function (props, ref) {
|
|
|
105
117
|
readOnly: readOnly,
|
|
106
118
|
required: required,
|
|
107
119
|
resize: resize,
|
|
120
|
+
rows: rows,
|
|
108
121
|
value: value
|
|
109
|
-
}, styles.textarea,
|
|
122
|
+
}, styles.textarea, textareaAliasedProps, textareaProps)),
|
|
110
123
|
showCount && (react_1.default.createElement(t_1.default, { color: "grey.80", position: "absolute", right: 0, size: "sm", top: "calc(100% + 1px)" },
|
|
111
124
|
count,
|
|
112
125
|
" / ",
|
|
@@ -2,25 +2,45 @@
|
|
|
2
2
|
import { SystemProps } from '../system';
|
|
3
3
|
import { ThemingProps } from '../theme';
|
|
4
4
|
import { ChangeEventHandler, FocusEventHandler, PropsOf } from '../utils';
|
|
5
|
-
export
|
|
5
|
+
export declare type TextareaProps = SystemProps & ThemingProps<'Textarea'> & {
|
|
6
|
+
/** Passed to the inner input. */
|
|
6
7
|
autoFocus?: boolean;
|
|
8
|
+
/** Children are disabled for this component. */
|
|
7
9
|
children?: never;
|
|
10
|
+
/** Available theme colors for this component. @default grey */
|
|
8
11
|
colorScheme?: 'green' | 'grey' | 'red';
|
|
12
|
+
/** Passed to the inner input. */
|
|
9
13
|
cols?: number;
|
|
14
|
+
/** Passed to the inner input. */
|
|
10
15
|
defaultValue?: number | string;
|
|
16
|
+
/** Passed to the inner input. */
|
|
11
17
|
disabled?: boolean;
|
|
18
|
+
/** Styles the textarea in invalid state. */
|
|
12
19
|
isInvalid?: boolean;
|
|
20
|
+
/** Passed to the inner input. */
|
|
13
21
|
maxLength?: number;
|
|
22
|
+
/** Passed to the inner input. */
|
|
14
23
|
name?: string;
|
|
24
|
+
/** Passed to the inner input. */
|
|
15
25
|
onBlur?: FocusEventHandler<HTMLTextAreaElement>;
|
|
26
|
+
/** Passed to the inner input. */
|
|
16
27
|
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
28
|
+
/** Passed to the inner input. */
|
|
17
29
|
onFocus?: FocusEventHandler<HTMLTextAreaElement>;
|
|
30
|
+
/** Passed to the inner input. */
|
|
18
31
|
placeholder?: string;
|
|
32
|
+
/** Passed to the inner input. */
|
|
19
33
|
readOnly?: boolean;
|
|
34
|
+
/** Passed to the inner input. */
|
|
20
35
|
required?: boolean;
|
|
36
|
+
/** Passed to the inner input. */
|
|
21
37
|
rows?: number;
|
|
38
|
+
/** Displays length of textarea value if also using maxLength. */
|
|
22
39
|
showCount?: boolean;
|
|
40
|
+
/** Props object passed to the inner textarea. */
|
|
23
41
|
textareaProps?: PropsOf<'textarea', SystemProps>;
|
|
42
|
+
/** Ref passed to the inner textarea. */
|
|
24
43
|
textareaRef?: React.MutableRefObject<HTMLTextAreaElement | null> | null;
|
|
44
|
+
/** Passed to the inner input. */
|
|
25
45
|
value?: number | string;
|
|
26
|
-
}
|
|
46
|
+
};
|
package/textarea/theme.d.ts
CHANGED
package/textarea/theme.js
CHANGED
|
@@ -14,6 +14,7 @@ function variantDefault(props) {
|
|
|
14
14
|
}
|
|
15
15
|
return { container: container, textarea: textarea };
|
|
16
16
|
}
|
|
17
|
+
var baseStyle = {};
|
|
17
18
|
var defaultProps = {
|
|
18
19
|
colorScheme: 'grey',
|
|
19
20
|
variant: 'default'
|
|
@@ -24,6 +25,7 @@ var variants = {
|
|
|
24
25
|
default: variantDefault
|
|
25
26
|
};
|
|
26
27
|
exports.default = {
|
|
28
|
+
baseStyle: baseStyle,
|
|
27
29
|
defaultProps: defaultProps,
|
|
28
30
|
parts: parts,
|
|
29
31
|
sizes: sizes,
|