@broxus/react-uikit 0.21.0 → 0.23.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/assets/accordion.css +135 -0
- package/dist/assets/alert.css +120 -0
- package/dist/assets/align.css +105 -0
- package/dist/assets/animation.css +387 -0
- package/dist/assets/article.css +51 -0
- package/dist/assets/background.css +209 -0
- package/dist/assets/badge.css +46 -0
- package/dist/assets/base.css +571 -0
- package/dist/assets/breadcrumb.css +69 -0
- package/dist/assets/button.css +491 -0
- package/dist/assets/card.css +255 -0
- package/dist/assets/checkbox.css +240 -0
- package/dist/assets/close.css +24 -0
- package/dist/assets/column.css +145 -0
- package/dist/assets/comment.css +87 -0
- package/dist/assets/container.css +171 -0
- package/dist/assets/control.css +262 -0
- package/dist/assets/cover.css +55 -0
- package/dist/assets/datepicker.css +662 -0
- package/dist/assets/description-list.css +39 -0
- package/dist/assets/divider.css +98 -0
- package/dist/assets/dotnav.css +100 -0
- package/dist/assets/drawer.css +562 -0
- package/dist/assets/drop.css +47 -0
- package/dist/assets/dropdown.css +118 -0
- package/dist/assets/flex.css +392 -0
- package/dist/assets/form.css +486 -0
- package/dist/assets/grid.css +545 -0
- package/dist/assets/heading.css +175 -0
- package/dist/assets/height.css +63 -0
- package/dist/assets/icon.css +188 -0
- package/dist/assets/iconnav.css +83 -0
- package/dist/assets/input-number.css +89 -0
- package/dist/assets/input-password.css +24 -0
- package/dist/assets/inverse.css +746 -0
- package/dist/assets/label.css +70 -0
- package/dist/assets/leader.css +44 -0
- package/dist/assets/link.css +79 -0
- package/dist/assets/list.css +211 -0
- package/dist/assets/margin.css +362 -0
- package/dist/assets/marker.css +28 -0
- package/dist/assets/mixin.css +1 -0
- package/dist/assets/mixins.css +1 -0
- package/dist/assets/modal.css +227 -0
- package/dist/assets/motion.css +492 -0
- package/dist/assets/nav.css +406 -0
- package/dist/assets/navbar.css +468 -0
- package/dist/assets/overlay.css +38 -0
- package/dist/assets/padding.css +70 -0
- package/dist/assets/pagination.css +78 -0
- package/dist/assets/placeholder.css +27 -0
- package/dist/assets/position.css +216 -0
- package/dist/assets/print.css +43 -0
- package/dist/assets/progress.css +79 -0
- package/dist/assets/radio.css +196 -0
- package/dist/assets/search.css +258 -0
- package/dist/assets/section.css +138 -0
- package/dist/assets/segmented.css +193 -0
- package/dist/assets/select.css +515 -0
- package/dist/assets/slider.css +392 -0
- package/dist/assets/spinner.css +51 -0
- package/dist/assets/sticky.css +31 -0
- package/dist/assets/subnav.css +171 -0
- package/dist/assets/svg.css +23 -0
- package/dist/assets/switch.css +167 -0
- package/dist/assets/table.css +224 -0
- package/dist/assets/tabs.css +631 -0
- package/dist/assets/text.css +385 -0
- package/dist/assets/textarea.css +54 -0
- package/dist/assets/thumbnav.css +67 -0
- package/dist/assets/tile.css +138 -0
- package/dist/assets/tooltip.css +47 -0
- package/dist/assets/totop.css +32 -0
- package/dist/assets/transition.css +154 -0
- package/dist/assets/uikit.min.css +1 -0
- package/dist/assets/utility.css +494 -0
- package/dist/assets/variables.css +1 -0
- package/dist/assets/vars.css +89 -0
- package/dist/assets/visibility.css +140 -0
- package/dist/assets/width.css +538 -0
- package/dist/cjs/components/Accordion/Accordion.d.ts +3 -2
- package/dist/cjs/components/Accordion/Accordion.js +2 -2
- package/dist/cjs/components/Accordion/Item.d.ts +1 -5
- package/dist/cjs/components/Accordion/Item.js +2 -7
- package/dist/cjs/components/Accordion/index.d.ts +1 -1
- package/dist/cjs/components/Alert/index.js +4 -6
- package/dist/cjs/components/Align/Align.d.ts +2 -2
- package/dist/cjs/components/Align/Align.js +3 -3
- package/dist/cjs/components/Align/Center.d.ts +1 -1
- package/dist/cjs/components/Align/Left.d.ts +1 -1
- package/dist/cjs/components/Align/Right.d.ts +1 -1
- package/dist/cjs/components/Article/Article.d.ts +1 -1
- package/dist/cjs/components/Article/Article.js +2 -2
- package/dist/cjs/components/Article/Meta.d.ts +4 -4
- package/dist/cjs/components/Article/Meta.js +3 -3
- package/dist/cjs/components/Article/Title.d.ts +4 -4
- package/dist/cjs/components/Article/Title.js +3 -3
- package/dist/cjs/components/Article/context.d.ts +2 -2
- package/dist/cjs/components/Badge/index.d.ts +4 -4
- package/dist/cjs/components/Badge/index.js +2 -2
- package/dist/cjs/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/cjs/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/cjs/components/Breadcrumb/Item.d.ts +1 -1
- package/dist/cjs/components/Breadcrumb/Item.js +2 -3
- package/dist/cjs/components/Button/Button.d.ts +2 -2
- package/dist/cjs/components/Button/Button.js +2 -2
- package/dist/cjs/components/Button/Group.d.ts +1 -1
- package/dist/cjs/components/Button/Group.js +2 -2
- package/dist/cjs/components/Card/Badge.d.ts +1 -1
- package/dist/cjs/components/Card/Badge.js +3 -3
- package/dist/cjs/components/Card/Body.d.ts +4 -4
- package/dist/cjs/components/Card/Body.js +3 -3
- package/dist/cjs/components/Card/Card.d.ts +4 -4
- package/dist/cjs/components/Card/Card.js +4 -4
- package/dist/cjs/components/Card/Footer.d.ts +4 -4
- package/dist/cjs/components/Card/Footer.js +3 -3
- package/dist/cjs/components/Card/Header.d.ts +4 -4
- package/dist/cjs/components/Card/Header.js +3 -3
- package/dist/cjs/components/Card/Media.d.ts +4 -4
- package/dist/cjs/components/Card/Media.js +3 -3
- package/dist/cjs/components/Card/Title.d.ts +4 -4
- package/dist/cjs/components/Card/Title.js +3 -3
- package/dist/cjs/components/Close/index.d.ts +1 -1
- package/dist/cjs/components/Close/index.js +2 -2
- package/dist/cjs/components/Component/index.d.ts +1 -1
- package/dist/cjs/components/Component/index.js +1 -4
- package/dist/cjs/components/ConfigProvider/index.d.ts +55 -40
- package/dist/cjs/components/ConfigProvider/index.js +3 -3
- package/dist/cjs/components/Container/index.d.ts +7 -2
- package/dist/cjs/components/Container/index.js +6 -6
- package/dist/cjs/components/Control/Checkbox/Checkbox.d.ts +2 -2
- package/dist/cjs/components/Control/Checkbox/Checkbox.js +2 -2
- package/dist/cjs/components/Control/Checkbox/Group.d.ts +2 -2
- package/dist/cjs/components/Control/Checkbox/Group.js +2 -2
- package/dist/cjs/components/Control/Checkbox/index.d.ts +1 -1
- package/dist/cjs/components/Control/Input/Input.js +3 -6
- package/dist/cjs/components/Control/Input/Number/index.js +4 -4
- package/dist/cjs/components/Control/Input/Password/index.js +2 -2
- package/dist/cjs/components/Control/Input/useInput.js +2 -1
- package/dist/cjs/components/Control/Radio/Group.js +4 -6
- package/dist/cjs/components/Control/Radio/Radio.js +2 -2
- package/dist/cjs/components/Control/Radio/index.d.ts +1 -1
- package/dist/cjs/components/Control/Select/Select.d.ts +18 -0
- package/dist/cjs/components/Control/Select/Select.js +248 -0
- package/dist/cjs/components/Control/Select/index.d.ts +4 -23
- package/dist/cjs/components/Control/Select/index.js +2 -253
- package/dist/cjs/components/Control/Select/placements.d.ts +1 -1
- package/dist/cjs/components/Control/TextArea/index.d.ts +3 -3
- package/dist/cjs/components/Control/TextArea/index.js +8 -7
- package/dist/cjs/components/Cover/index.d.ts +1 -1
- package/dist/cjs/components/Cover/index.js +2 -2
- package/dist/cjs/components/DatePicker/PickerButton.d.ts +1 -1
- package/dist/cjs/components/DatePicker/PickerButton.js +4 -2
- package/dist/cjs/components/DatePicker/generatePurePicker.js +1 -3
- package/dist/cjs/components/DescriptionList/Description.d.ts +1 -1
- package/dist/cjs/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/dist/cjs/components/DescriptionList/DescriptionList.js +2 -2
- package/dist/cjs/components/DescriptionList/Term.d.ts +1 -1
- package/dist/cjs/components/Divider/index.d.ts +1 -1
- package/dist/cjs/components/Divider/index.js +2 -2
- package/dist/cjs/components/Dotnav/Dotnav.d.ts +1 -1
- package/dist/cjs/components/Dotnav/Dotnav.js +2 -2
- package/dist/cjs/components/Dotnav/Item.d.ts +1 -1
- package/dist/cjs/components/Dotnav/Item.js +2 -3
- package/dist/cjs/components/Drawer/index.d.ts +3 -3
- package/dist/cjs/components/Drawer/index.js +2 -2
- package/dist/cjs/components/Drop/index.d.ts +5 -6
- package/dist/cjs/components/Drop/index.js +4 -3
- package/dist/cjs/components/Dropdown/index.js +2 -2
- package/dist/cjs/components/Flex/Flex.d.ts +2 -2
- package/dist/cjs/components/Flex/Flex.js +3 -3
- package/dist/cjs/components/Flex/Item.d.ts +2 -2
- package/dist/cjs/components/Flex/Item.js +3 -3
- package/dist/cjs/components/Flex/context.d.ts +2 -2
- package/dist/cjs/components/Flex/index.d.ts +1 -1
- package/dist/cjs/components/Form/Controls.d.ts +1 -1
- package/dist/cjs/components/Form/Controls.js +2 -2
- package/dist/cjs/components/Form/ControlsText.d.ts +1 -1
- package/dist/cjs/components/Form/ControlsText.js +2 -2
- package/dist/cjs/components/Form/Fieldset.d.ts +1 -1
- package/dist/cjs/components/Form/Fieldset.js +2 -2
- package/dist/cjs/components/Form/Form.d.ts +2 -2
- package/dist/cjs/components/Form/Form.js +3 -3
- package/dist/cjs/components/Form/Label.d.ts +1 -1
- package/dist/cjs/components/Form/Label.js +2 -2
- package/dist/cjs/components/Form/Legend.d.ts +1 -1
- package/dist/cjs/components/Form/Legend.js +2 -2
- package/dist/cjs/components/Form/context.d.ts +2 -2
- package/dist/cjs/components/Grid/index.d.ts +4 -4
- package/dist/cjs/components/Grid/index.js +3 -3
- package/dist/cjs/components/Heading/index.d.ts +4 -4
- package/dist/cjs/components/Heading/index.js +2 -2
- package/dist/cjs/components/Icon/Button.d.ts +1 -1
- package/dist/cjs/components/Icon/Icon.d.ts +4 -4
- package/dist/cjs/components/Icon/Icon.js +3 -3
- package/dist/cjs/components/Icon/Link.d.ts +1 -1
- package/dist/cjs/components/Icon/index.d.ts +1 -1
- package/dist/cjs/components/Iconnav/Iconnav.d.ts +1 -1
- package/dist/cjs/components/Iconnav/Iconnav.js +2 -2
- package/dist/cjs/components/Iconnav/Item.d.ts +1 -1
- package/dist/cjs/components/Iconnav/Item.js +2 -3
- package/dist/cjs/components/Inverse/index.d.ts +2 -2
- package/dist/cjs/components/Inverse/index.js +4 -3
- package/dist/cjs/components/Label/index.d.ts +1 -1
- package/dist/cjs/components/Label/index.js +2 -2
- package/dist/cjs/components/Link/index.d.ts +2 -2
- package/dist/cjs/components/Link/index.js +3 -3
- package/dist/cjs/components/List/Item.d.ts +1 -3
- package/dist/cjs/components/List/List.d.ts +1 -1
- package/dist/cjs/components/List/List.js +2 -2
- package/dist/cjs/components/Modal/index.d.ts +1 -1
- package/dist/cjs/components/Modal/index.js +2 -2
- package/dist/cjs/components/Nav/Divider.d.ts +1 -1
- package/dist/cjs/components/Nav/Divider.js +5 -10
- package/dist/cjs/components/Nav/Group/InternalNavGroup.d.ts +10 -0
- package/dist/cjs/components/Nav/Group/{InternalNavItemGroup.js → InternalNavGroup.js} +9 -9
- package/dist/cjs/components/Nav/Group/index.d.ts +4 -2
- package/dist/cjs/components/Nav/Group/index.js +9 -12
- package/dist/cjs/components/Nav/Header.d.ts +1 -3
- package/dist/cjs/components/Nav/Header.js +5 -6
- package/dist/cjs/components/Nav/Icon/index.d.ts +7 -0
- package/dist/cjs/components/Nav/{context/PrivateContext.js → Icon/index.js} +13 -5
- package/dist/cjs/components/Nav/Item/InternalNavItem.d.ts +1 -5
- package/dist/cjs/components/Nav/Item/InternalNavItem.js +26 -47
- package/dist/cjs/components/Nav/Item/LegacyNavItem.js +12 -6
- package/dist/cjs/components/Nav/Item/index.d.ts +1 -1
- package/dist/cjs/components/Nav/Item/index.js +6 -9
- package/dist/cjs/components/Nav/Nav.d.ts +8 -21
- package/dist/cjs/components/Nav/Nav.js +86 -91
- package/dist/cjs/components/Nav/Sub/InlineSubNavList.d.ts +1 -1
- package/dist/cjs/components/Nav/Sub/InlineSubNavList.js +6 -6
- package/dist/cjs/components/Nav/Sub/InternalSubNav.d.ts +15 -0
- package/dist/cjs/components/Nav/Sub/InternalSubNav.js +196 -0
- package/dist/cjs/components/Nav/Sub/PopupTrigger.d.ts +2 -1
- package/dist/cjs/components/Nav/Sub/PopupTrigger.js +10 -11
- package/dist/cjs/components/Nav/Sub/SubNavList.d.ts +1 -2
- package/dist/cjs/components/Nav/Sub/SubNavList.js +5 -5
- package/dist/cjs/components/Nav/Sub/index.d.ts +4 -15
- package/dist/cjs/components/Nav/Sub/index.js +11 -174
- package/dist/cjs/components/Nav/context/NavContext.d.ts +7 -3
- package/dist/cjs/components/Nav/context/NavContext.js +6 -6
- package/dist/cjs/components/Nav/context/index.d.ts +3 -0
- package/dist/cjs/components/Nav/context/index.js +19 -0
- package/dist/cjs/components/Nav/hooks/index.d.ts +5 -0
- package/dist/cjs/components/Nav/hooks/index.js +21 -0
- package/dist/cjs/components/Nav/hooks/useAccessibility.d.ts +11 -0
- package/dist/cjs/components/Nav/hooks/useAccessibility.js +97 -99
- package/dist/cjs/components/Nav/hooks/useActive.js +5 -13
- package/dist/cjs/components/Nav/hooks/useDirectionStyle.js +2 -2
- package/dist/cjs/components/Nav/hooks/useKeyRecords.d.ts +3 -3
- package/dist/cjs/components/Nav/hooks/useKeyRecords.js +5 -8
- package/dist/cjs/components/Nav/types.d.ts +16 -3
- package/dist/cjs/components/Nav/utils/alignUtil.d.ts +1 -1
- package/dist/cjs/components/Nav/utils/alignUtil.js +1 -4
- package/dist/cjs/components/Nav/utils/index.d.ts +5 -0
- package/dist/cjs/components/Nav/utils/index.js +21 -0
- package/dist/cjs/components/Nav/utils/nodeUtil.d.ts +2 -2
- package/dist/cjs/components/Nav/utils/nodeUtil.js +38 -34
- package/dist/cjs/components/Nav/utils/warnUtil.js +2 -5
- package/dist/cjs/components/Navbar/Center.d.ts +2 -2
- package/dist/cjs/components/Navbar/Center.js +3 -3
- package/dist/cjs/components/Navbar/Container.d.ts +2 -2
- package/dist/cjs/components/Navbar/Container.js +3 -3
- package/dist/cjs/components/Navbar/Item.d.ts +2 -2
- package/dist/cjs/components/Navbar/Item.js +3 -3
- package/dist/cjs/components/Navbar/Left.d.ts +2 -2
- package/dist/cjs/components/Navbar/Left.js +3 -3
- package/dist/cjs/components/Navbar/Nav.d.ts +1 -1
- package/dist/cjs/components/Navbar/Nav.js +2 -2
- package/dist/cjs/components/Navbar/Navbar.d.ts +1 -1
- package/dist/cjs/components/Navbar/Navbar.js +2 -2
- package/dist/cjs/components/Navbar/Right.d.ts +2 -2
- package/dist/cjs/components/Navbar/Right.js +3 -3
- package/dist/cjs/components/Navbar/Toggle.d.ts +2 -2
- package/dist/cjs/components/Navbar/Toggle.js +3 -3
- package/dist/cjs/components/Overlay/index.d.ts +1 -1
- package/dist/cjs/components/Overlay/index.js +3 -3
- package/dist/cjs/components/Progress/index.d.ts +1 -1
- package/dist/cjs/components/Progress/index.js +2 -2
- package/dist/cjs/components/Section/index.d.ts +2 -2
- package/dist/cjs/components/Section/index.js +3 -3
- package/dist/cjs/components/Segmented/index.d.ts +1 -1
- package/dist/cjs/components/Segmented/index.js +2 -2
- package/dist/cjs/components/Slider/index.d.ts +3 -0
- package/dist/cjs/components/{Nav/hooks/useUUID.js → Slider/index.js} +10 -17
- package/dist/cjs/components/Spinner/index.d.ts +1 -1
- package/dist/cjs/components/Spinner/index.js +2 -2
- package/dist/cjs/components/Subnav/Item.d.ts +1 -1
- package/dist/cjs/components/Subnav/Subnav.d.ts +1 -1
- package/dist/cjs/components/Subnav/Subnav.js +2 -2
- package/dist/cjs/components/Switch/index.d.ts +2 -2
- package/dist/cjs/components/Switch/index.js +2 -3
- package/dist/cjs/components/Tabs/index.d.ts +6 -4
- package/dist/cjs/components/Tabs/index.js +10 -9
- package/dist/cjs/components/Text/index.d.ts +4 -4
- package/dist/cjs/components/Text/index.js +3 -3
- package/dist/cjs/components/Tile/index.d.ts +4 -4
- package/dist/cjs/components/Tile/index.js +3 -3
- package/dist/cjs/components/Width/Width.d.ts +2 -2
- package/dist/cjs/components/Width/Width.js +3 -3
- package/dist/cjs/constants.d.ts +12 -0
- package/dist/cjs/constants.js +16 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/utils/motion.d.ts +1 -1
- package/dist/esm/components/Accordion/Accordion.d.ts +3 -2
- package/dist/esm/components/Accordion/Accordion.js +2 -2
- package/dist/esm/components/Accordion/Item.d.ts +1 -5
- package/dist/esm/components/Accordion/Item.js +2 -7
- package/dist/esm/components/Accordion/index.d.ts +1 -1
- package/dist/esm/components/Alert/index.js +4 -6
- package/dist/esm/components/Align/Align.d.ts +2 -2
- package/dist/esm/components/Align/Align.js +3 -3
- package/dist/esm/components/Align/Center.d.ts +1 -1
- package/dist/esm/components/Align/Left.d.ts +1 -1
- package/dist/esm/components/Align/Right.d.ts +1 -1
- package/dist/esm/components/Article/Article.d.ts +1 -1
- package/dist/esm/components/Article/Article.js +2 -2
- package/dist/esm/components/Article/Meta.d.ts +4 -4
- package/dist/esm/components/Article/Meta.js +3 -3
- package/dist/esm/components/Article/Title.d.ts +4 -4
- package/dist/esm/components/Article/Title.js +3 -3
- package/dist/esm/components/Article/context.d.ts +2 -2
- package/dist/esm/components/Badge/index.d.ts +4 -4
- package/dist/esm/components/Badge/index.js +2 -2
- package/dist/esm/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/dist/esm/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/esm/components/Breadcrumb/Item.d.ts +1 -1
- package/dist/esm/components/Breadcrumb/Item.js +2 -3
- package/dist/esm/components/Button/Button.d.ts +2 -2
- package/dist/esm/components/Button/Button.js +2 -2
- package/dist/esm/components/Button/Group.d.ts +1 -1
- package/dist/esm/components/Button/Group.js +2 -2
- package/dist/esm/components/Card/Badge.d.ts +1 -1
- package/dist/esm/components/Card/Badge.js +3 -3
- package/dist/esm/components/Card/Body.d.ts +4 -4
- package/dist/esm/components/Card/Body.js +3 -3
- package/dist/esm/components/Card/Card.d.ts +4 -4
- package/dist/esm/components/Card/Card.js +4 -4
- package/dist/esm/components/Card/Footer.d.ts +4 -4
- package/dist/esm/components/Card/Footer.js +3 -3
- package/dist/esm/components/Card/Header.d.ts +4 -4
- package/dist/esm/components/Card/Header.js +3 -3
- package/dist/esm/components/Card/Media.d.ts +4 -4
- package/dist/esm/components/Card/Media.js +3 -3
- package/dist/esm/components/Card/Title.d.ts +4 -4
- package/dist/esm/components/Card/Title.js +3 -3
- package/dist/esm/components/Close/index.d.ts +1 -1
- package/dist/esm/components/Close/index.js +2 -2
- package/dist/esm/components/Component/index.d.ts +1 -1
- package/dist/esm/components/Component/index.js +1 -4
- package/dist/esm/components/ConfigProvider/index.d.ts +55 -40
- package/dist/esm/components/ConfigProvider/index.js +3 -3
- package/dist/esm/components/Container/index.d.ts +7 -2
- package/dist/esm/components/Container/index.js +4 -4
- package/dist/esm/components/Control/Checkbox/Checkbox.d.ts +2 -2
- package/dist/esm/components/Control/Checkbox/Checkbox.js +2 -2
- package/dist/esm/components/Control/Checkbox/Group.d.ts +2 -2
- package/dist/esm/components/Control/Checkbox/Group.js +2 -2
- package/dist/esm/components/Control/Checkbox/index.d.ts +1 -1
- package/dist/esm/components/Control/Input/Input.js +2 -5
- package/dist/esm/components/Control/Input/Number/index.js +3 -3
- package/dist/esm/components/Control/Input/Password/index.js +2 -2
- package/dist/esm/components/Control/Input/useInput.js +2 -1
- package/dist/esm/components/Control/Radio/Group.js +4 -6
- package/dist/esm/components/Control/Radio/Radio.js +2 -2
- package/dist/esm/components/Control/Radio/index.d.ts +1 -1
- package/dist/esm/components/Control/Select/Select.d.ts +18 -0
- package/dist/esm/components/Control/Select/Select.js +209 -0
- package/dist/esm/components/Control/Select/index.d.ts +4 -23
- package/dist/esm/components/Control/Select/index.js +1 -217
- package/dist/esm/components/Control/Select/placements.d.ts +1 -1
- package/dist/esm/components/Control/TextArea/index.d.ts +3 -3
- package/dist/esm/components/Control/TextArea/index.js +7 -6
- package/dist/esm/components/Cover/index.d.ts +1 -1
- package/dist/esm/components/Cover/index.js +2 -2
- package/dist/esm/components/DatePicker/PickerButton.d.ts +1 -1
- package/dist/esm/components/DatePicker/PickerButton.js +3 -1
- package/dist/esm/components/DatePicker/generatePurePicker.js +1 -3
- package/dist/esm/components/DescriptionList/Description.d.ts +1 -1
- package/dist/esm/components/DescriptionList/DescriptionList.d.ts +1 -1
- package/dist/esm/components/DescriptionList/DescriptionList.js +2 -2
- package/dist/esm/components/DescriptionList/Term.d.ts +1 -1
- package/dist/esm/components/Divider/index.d.ts +1 -1
- package/dist/esm/components/Divider/index.js +2 -2
- package/dist/esm/components/Dotnav/Dotnav.d.ts +1 -1
- package/dist/esm/components/Dotnav/Dotnav.js +2 -2
- package/dist/esm/components/Dotnav/Item.d.ts +1 -1
- package/dist/esm/components/Dotnav/Item.js +2 -3
- package/dist/esm/components/Drawer/index.d.ts +3 -3
- package/dist/esm/components/Drawer/index.js +2 -2
- package/dist/esm/components/Drop/index.d.ts +5 -6
- package/dist/esm/components/Drop/index.js +4 -3
- package/dist/esm/components/Dropdown/index.js +2 -2
- package/dist/esm/components/Flex/Flex.d.ts +2 -2
- package/dist/esm/components/Flex/Flex.js +3 -3
- package/dist/esm/components/Flex/Item.d.ts +2 -2
- package/dist/esm/components/Flex/Item.js +3 -3
- package/dist/esm/components/Flex/context.d.ts +2 -2
- package/dist/esm/components/Flex/index.d.ts +1 -1
- package/dist/esm/components/Form/Controls.d.ts +1 -1
- package/dist/esm/components/Form/Controls.js +2 -2
- package/dist/esm/components/Form/ControlsText.d.ts +1 -1
- package/dist/esm/components/Form/ControlsText.js +2 -2
- package/dist/esm/components/Form/Fieldset.d.ts +1 -1
- package/dist/esm/components/Form/Fieldset.js +2 -2
- package/dist/esm/components/Form/Form.d.ts +2 -2
- package/dist/esm/components/Form/Form.js +3 -3
- package/dist/esm/components/Form/Label.d.ts +1 -1
- package/dist/esm/components/Form/Label.js +2 -2
- package/dist/esm/components/Form/Legend.d.ts +1 -1
- package/dist/esm/components/Form/Legend.js +2 -2
- package/dist/esm/components/Form/context.d.ts +2 -2
- package/dist/esm/components/Grid/index.d.ts +4 -4
- package/dist/esm/components/Grid/index.js +3 -3
- package/dist/esm/components/Heading/index.d.ts +4 -4
- package/dist/esm/components/Heading/index.js +2 -2
- package/dist/esm/components/Icon/Button.d.ts +1 -1
- package/dist/esm/components/Icon/Icon.d.ts +4 -4
- package/dist/esm/components/Icon/Icon.js +3 -3
- package/dist/esm/components/Icon/Link.d.ts +1 -1
- package/dist/esm/components/Icon/index.d.ts +1 -1
- package/dist/esm/components/Iconnav/Iconnav.d.ts +1 -1
- package/dist/esm/components/Iconnav/Iconnav.js +2 -2
- package/dist/esm/components/Iconnav/Item.d.ts +1 -1
- package/dist/esm/components/Iconnav/Item.js +2 -3
- package/dist/esm/components/Inverse/index.d.ts +2 -2
- package/dist/esm/components/Inverse/index.js +2 -2
- package/dist/esm/components/Label/index.d.ts +1 -1
- package/dist/esm/components/Label/index.js +2 -2
- package/dist/esm/components/Link/index.d.ts +2 -2
- package/dist/esm/components/Link/index.js +3 -3
- package/dist/esm/components/List/Item.d.ts +1 -3
- package/dist/esm/components/List/List.d.ts +1 -1
- package/dist/esm/components/List/List.js +2 -2
- package/dist/esm/components/Modal/index.d.ts +1 -1
- package/dist/esm/components/Modal/index.js +2 -2
- package/dist/esm/components/Nav/Divider.d.ts +1 -1
- package/dist/esm/components/Nav/Divider.js +3 -8
- package/dist/esm/components/Nav/Group/InternalNavGroup.d.ts +10 -0
- package/dist/esm/components/Nav/Group/InternalNavGroup.js +16 -0
- package/dist/esm/components/Nav/Group/index.d.ts +4 -2
- package/dist/esm/components/Nav/Group/index.js +6 -6
- package/dist/esm/components/Nav/Header.d.ts +1 -3
- package/dist/esm/components/Nav/Header.js +4 -5
- package/dist/esm/components/Nav/Icon/index.d.ts +7 -0
- package/dist/esm/components/Nav/Icon/index.js +14 -0
- package/dist/esm/components/Nav/Item/InternalNavItem.d.ts +1 -5
- package/dist/esm/components/Nav/Item/InternalNavItem.js +16 -37
- package/dist/esm/components/Nav/Item/LegacyNavItem.js +11 -5
- package/dist/esm/components/Nav/Item/index.d.ts +1 -1
- package/dist/esm/components/Nav/Item/index.js +4 -7
- package/dist/esm/components/Nav/Nav.d.ts +8 -21
- package/dist/esm/components/Nav/Nav.js +72 -77
- package/dist/esm/components/Nav/Sub/InlineSubNavList.d.ts +1 -1
- package/dist/esm/components/Nav/Sub/InlineSubNavList.js +3 -3
- package/dist/esm/components/Nav/Sub/InternalSubNav.d.ts +15 -0
- package/dist/esm/components/Nav/Sub/InternalSubNav.js +157 -0
- package/dist/esm/components/Nav/Sub/PopupTrigger.d.ts +2 -1
- package/dist/esm/components/Nav/Sub/PopupTrigger.js +9 -10
- package/dist/esm/components/Nav/Sub/SubNavList.d.ts +1 -2
- package/dist/esm/components/Nav/Sub/SubNavList.js +4 -4
- package/dist/esm/components/Nav/Sub/index.d.ts +4 -15
- package/dist/esm/components/Nav/Sub/index.js +7 -167
- package/dist/esm/components/Nav/context/NavContext.d.ts +7 -3
- package/dist/esm/components/Nav/context/NavContext.js +6 -6
- package/dist/esm/components/Nav/context/index.d.ts +3 -0
- package/dist/esm/components/Nav/context/index.js +3 -0
- package/dist/esm/components/Nav/hooks/index.d.ts +5 -0
- package/dist/esm/components/Nav/hooks/index.js +5 -0
- package/dist/esm/components/Nav/hooks/useAccessibility.d.ts +11 -0
- package/dist/esm/components/Nav/hooks/useAccessibility.js +96 -100
- package/dist/esm/components/Nav/hooks/useActive.js +5 -13
- package/dist/esm/components/Nav/hooks/useDirectionStyle.js +1 -1
- package/dist/esm/components/Nav/hooks/useKeyRecords.d.ts +3 -3
- package/dist/esm/components/Nav/hooks/useKeyRecords.js +3 -3
- package/dist/esm/components/Nav/types.d.ts +16 -3
- package/dist/esm/components/Nav/utils/alignUtil.d.ts +1 -1
- package/dist/esm/components/Nav/utils/alignUtil.js +1 -4
- package/dist/esm/components/Nav/utils/index.d.ts +5 -0
- package/dist/esm/components/Nav/utils/index.js +5 -0
- package/dist/esm/components/Nav/utils/nodeUtil.d.ts +2 -2
- package/dist/esm/components/Nav/utils/nodeUtil.js +38 -31
- package/dist/esm/components/Nav/utils/warnUtil.js +1 -1
- package/dist/esm/components/Navbar/Center.d.ts +2 -2
- package/dist/esm/components/Navbar/Center.js +3 -3
- package/dist/esm/components/Navbar/Container.d.ts +2 -2
- package/dist/esm/components/Navbar/Container.js +3 -3
- package/dist/esm/components/Navbar/Item.d.ts +2 -2
- package/dist/esm/components/Navbar/Item.js +3 -3
- package/dist/esm/components/Navbar/Left.d.ts +2 -2
- package/dist/esm/components/Navbar/Left.js +3 -3
- package/dist/esm/components/Navbar/Nav.d.ts +1 -1
- package/dist/esm/components/Navbar/Nav.js +2 -2
- package/dist/esm/components/Navbar/Navbar.d.ts +1 -1
- package/dist/esm/components/Navbar/Navbar.js +2 -2
- package/dist/esm/components/Navbar/Right.d.ts +2 -2
- package/dist/esm/components/Navbar/Right.js +3 -3
- package/dist/esm/components/Navbar/Toggle.d.ts +2 -2
- package/dist/esm/components/Navbar/Toggle.js +3 -3
- package/dist/esm/components/Overlay/index.d.ts +1 -1
- package/dist/esm/components/Overlay/index.js +3 -3
- package/dist/esm/components/Progress/index.d.ts +1 -1
- package/dist/esm/components/Progress/index.js +2 -2
- package/dist/esm/components/Section/index.d.ts +2 -2
- package/dist/esm/components/Section/index.js +3 -3
- package/dist/esm/components/Segmented/index.d.ts +1 -1
- package/dist/esm/components/Segmented/index.js +2 -2
- package/dist/esm/components/Slider/index.d.ts +3 -0
- package/dist/esm/components/Slider/index.js +10 -0
- package/dist/esm/components/Spinner/index.d.ts +1 -1
- package/dist/esm/components/Spinner/index.js +2 -2
- package/dist/esm/components/Subnav/Item.d.ts +1 -1
- package/dist/esm/components/Subnav/Subnav.d.ts +1 -1
- package/dist/esm/components/Subnav/Subnav.js +2 -2
- package/dist/esm/components/Switch/index.d.ts +2 -2
- package/dist/esm/components/Switch/index.js +2 -3
- package/dist/esm/components/Tabs/index.d.ts +6 -4
- package/dist/esm/components/Tabs/index.js +10 -9
- package/dist/esm/components/Text/index.d.ts +4 -4
- package/dist/esm/components/Text/index.js +3 -3
- package/dist/esm/components/Tile/index.d.ts +4 -4
- package/dist/esm/components/Tile/index.js +3 -3
- package/dist/esm/components/Width/Width.d.ts +2 -2
- package/dist/esm/components/Width/Width.js +3 -3
- package/dist/esm/constants.d.ts +12 -0
- package/dist/esm/constants.js +13 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/utils/motion.d.ts +1 -1
- package/package.json +30 -29
- package/styles/_import.components.scss +3 -5
- package/styles/_import.scss +5 -8
- package/styles/accordion.scss +56 -30
- package/styles/alert.scss +6 -5
- package/styles/animation.scss +64 -213
- package/styles/background.scss +34 -131
- package/styles/base.scss +37 -65
- package/styles/breadcrumb.scss +6 -9
- package/styles/button.scss +22 -62
- package/styles/control.scss +1 -0
- package/styles/datepicker.scss +3 -2
- package/styles/input-number.scss +11 -21
- package/styles/leader.scss +2 -2
- package/styles/mixins.scss +40 -31
- package/styles/nav.scss +7 -28
- package/styles/navbar.scss +185 -160
- package/styles/search.scss +16 -46
- package/styles/select.scss +111 -292
- package/styles/slider.scss +521 -0
- package/styles/subnav.scss +1 -1
- package/styles/switch.scss +12 -0
- package/styles/tabs.scss +65 -37
- package/styles/text.scss +65 -65
- package/styles/thumbnav.scss +4 -4
- package/styles/variables.scss +85 -28
- package/dist/cjs/components/Nav/Group/InternalNavItemGroup.d.ts +0 -14
- package/dist/cjs/components/Nav/context/PrivateContext.d.ts +0 -7
- package/dist/cjs/components/Nav/hooks/useUUID.d.ts +0 -1
- package/dist/esm/components/Nav/Group/InternalNavItemGroup.d.ts +0 -14
- package/dist/esm/components/Nav/Group/InternalNavItemGroup.js +0 -16
- package/dist/esm/components/Nav/context/PrivateContext.d.ts +0 -7
- package/dist/esm/components/Nav/context/PrivateContext.js +0 -6
- package/dist/esm/components/Nav/hooks/useUUID.d.ts +0 -1
- package/dist/esm/components/Nav/hooks/useUUID.js +0 -17
|
@@ -3,4 +3,4 @@ export interface SubnavProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
|
3
3
|
prefixCls?: string;
|
|
4
4
|
type?: 'divider' | 'pill';
|
|
5
5
|
}
|
|
6
|
-
export declare function Subnav(props: SubnavProps): React.
|
|
6
|
+
export declare function Subnav({ className, type, ...props }: SubnavProps): React.ReactElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useConfig } from '../../components/ConfigProvider';
|
|
4
|
-
export function Subnav(props) {
|
|
4
|
+
export function Subnav({ className, type, ...props }) {
|
|
5
5
|
const config = useConfig();
|
|
6
|
-
const {
|
|
6
|
+
const { prefixCls = config.prefixCls, ...restProps } = props;
|
|
7
7
|
const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'subnav'), [config, prefixCls]);
|
|
8
8
|
return (React.createElement("ul", { className: classNames(rootCls, {
|
|
9
9
|
[`${rootCls}-${type}`]: type !== undefined,
|
|
@@ -2,7 +2,7 @@ import { type SwitchChangeEventHandler, type SwitchClickEventHandler } from '@rc
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { type Direction } from '../../types';
|
|
4
4
|
export type SwitchSize = 'small';
|
|
5
|
-
export
|
|
5
|
+
export interface SwitchProps {
|
|
6
6
|
autoFocus?: boolean;
|
|
7
7
|
checked?: boolean;
|
|
8
8
|
checkedChildren?: React.ReactNode;
|
|
@@ -22,5 +22,5 @@ export type SwitchProps = {
|
|
|
22
22
|
onChange?: SwitchChangeEventHandler;
|
|
23
23
|
onClick?: SwitchClickEventHandler;
|
|
24
24
|
onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
25
|
-
}
|
|
25
|
+
}
|
|
26
26
|
export declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3,10 +3,9 @@ import classNames from 'classnames';
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useConfig } from '../../components/ConfigProvider';
|
|
5
5
|
import { Spinner } from '../../components/Spinner';
|
|
6
|
-
export const Switch = React.forwardRef((props, ref) => {
|
|
6
|
+
export const Switch = React.forwardRef(({ className, loading, loadingIcon, size, ...props }, ref) => {
|
|
7
7
|
const config = useConfig();
|
|
8
|
-
const {
|
|
9
|
-
const { size } = props;
|
|
8
|
+
const { direction = config.direction, prefixCls = config.prefixCls, ...restProps } = props;
|
|
10
9
|
const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'switch'), [config, prefixCls]);
|
|
11
10
|
const mergedLoadingIcon = React.useMemo(() => (React.createElement("div", { className: `${rootCls}-handle` }, loading && (loadingIcon ?? React.createElement(Spinner, { className: `${rootCls}-loading-icon` })))), [loading, loadingIcon, rootCls]);
|
|
12
11
|
return (React.createElement(RcSwitch, { ref: ref, className: classNames({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type TabsProps as RcTabsProps } from '@rc-component/tabs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { type Direction } from '../../types';
|
|
3
4
|
export type TabsPosition = 'left' | 'right' | 'top' | 'bottom';
|
|
4
|
-
export interface Tab {
|
|
5
|
+
export interface Tab extends React.PropsWithChildren {
|
|
5
6
|
active?: boolean;
|
|
6
7
|
animated?: boolean;
|
|
7
|
-
children?: React.ReactNode;
|
|
8
8
|
className?: string;
|
|
9
9
|
closable?: boolean;
|
|
10
10
|
closeIcon?: React.ReactNode;
|
|
@@ -17,12 +17,14 @@ export interface Tab {
|
|
|
17
17
|
label: React.ReactNode;
|
|
18
18
|
prefixCls?: string;
|
|
19
19
|
style?: React.CSSProperties;
|
|
20
|
+
tab?: React.ReactNode;
|
|
20
21
|
tabKey?: string;
|
|
21
22
|
}
|
|
22
23
|
export type TabType = 'line' | 'card' | 'editable-card';
|
|
23
|
-
export interface TabsProps extends Exclude<RcTabsProps, 'editable' | 'items' | 'tabPosition'> {
|
|
24
|
+
export interface TabsProps extends Exclude<RcTabsProps, 'direction' | 'editable' | 'items' | 'tabPosition'> {
|
|
24
25
|
addIcon?: React.ReactNode;
|
|
25
26
|
centered?: boolean;
|
|
27
|
+
direction?: Direction;
|
|
26
28
|
hideAdd?: boolean;
|
|
27
29
|
items?: Tab[];
|
|
28
30
|
size?: 'medium' | 'large';
|
|
@@ -30,4 +32,4 @@ export interface TabsProps extends Exclude<RcTabsProps, 'editable' | 'items' | '
|
|
|
30
32
|
type?: TabType;
|
|
31
33
|
onEdit?: (event: React.MouseEvent | React.KeyboardEvent | string, action: 'add' | 'remove') => void;
|
|
32
34
|
}
|
|
33
|
-
export declare function Tabs(props: TabsProps): React.
|
|
35
|
+
export declare function Tabs({ addIcon, animated, centered, className, direction, hideAdd, items, more, size, type, onEdit, ...props }: TabsProps): React.ReactElement;
|
|
@@ -5,27 +5,28 @@ import { useConfig } from '../../components/ConfigProvider';
|
|
|
5
5
|
import { Icon } from '../../components/Icon';
|
|
6
6
|
import { useAnimateConfig } from '../../components/Tabs/hooks';
|
|
7
7
|
import { getMotionName } from '../../utils';
|
|
8
|
-
export function Tabs(props) {
|
|
8
|
+
export function Tabs({ addIcon, animated, centered, className, direction, hideAdd, items, more, size, type, onEdit, ...props }) {
|
|
9
9
|
const config = useConfig();
|
|
10
|
-
const {
|
|
10
|
+
const { prefixCls = config.prefixCls, ...restProps } = props;
|
|
11
11
|
const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'tabs'), [config, prefixCls]);
|
|
12
12
|
const editable = React.useMemo(() => (type === 'editable-card'
|
|
13
13
|
? {
|
|
14
|
-
addIcon: addIcon || React.createElement(Icon, { icon: "add" }),
|
|
15
|
-
removeIcon: React.createElement(Icon, { icon: "close" }),
|
|
14
|
+
addIcon: addIcon || config.tabs?.addIcon || React.createElement(Icon, { icon: "add" }),
|
|
15
|
+
removeIcon: config.tabs?.removeIcon || React.createElement(Icon, { icon: "close" }),
|
|
16
16
|
showAdd: hideAdd !== true,
|
|
17
17
|
onEdit: (editType, { event, key }) => {
|
|
18
18
|
onEdit?.(editType === 'add' ? event : key, editType);
|
|
19
19
|
},
|
|
20
20
|
}
|
|
21
|
-
: undefined), [addIcon, hideAdd, onEdit, type]);
|
|
22
|
-
return (React.createElement(RcTabs, { animated: useAnimateConfig(rootCls, animated),
|
|
21
|
+
: undefined), [addIcon, config.tabs?.addIcon, config.tabs?.removeIcon, hideAdd, onEdit, type]);
|
|
22
|
+
return (React.createElement(RcTabs, { animated: useAnimateConfig(rootCls, animated), classNames: {
|
|
23
|
+
popup: 'test',
|
|
24
|
+
}, direction: direction, items: items, ...restProps, className: classNames({
|
|
23
25
|
[`${rootCls}-${size}`]: size,
|
|
24
|
-
[`${rootCls}-card`]: ['card', 'editable-card'].includes(type),
|
|
26
|
+
[`${rootCls}-card`]: type && ['card', 'editable-card'].includes(type),
|
|
25
27
|
[`${rootCls}-centered`]: centered,
|
|
26
|
-
[`${rootCls}-editable-card`]: type === 'editable-card',
|
|
27
28
|
}, className), editable: editable, more: {
|
|
28
|
-
icon: React.createElement(Icon, { icon: "more_horizontal" }),
|
|
29
|
+
icon: config.tabs?.moreIcon || React.createElement(Icon, { icon: "more_horizontal" }),
|
|
29
30
|
transitionName: getMotionName(prefixCls || config.prefixCls, 'slide-bottom-small'),
|
|
30
31
|
...more,
|
|
31
32
|
}, prefixCls: rootCls }));
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type PolymorphicProps } from '../../components/Component';
|
|
3
3
|
import { type BreakpointsConfig } from '../../types';
|
|
4
4
|
export type TextAlign = 'left' | 'right' | 'center' | 'justify';
|
|
5
|
-
export
|
|
5
|
+
export interface TextOwnProps {
|
|
6
6
|
align?: TextAlign | BreakpointsConfig<TextAlign>;
|
|
7
7
|
className?: string;
|
|
8
8
|
color?: 'muted' | 'emphasis' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
|
|
@@ -18,8 +18,8 @@ export type TextOwnProps = {
|
|
|
18
18
|
verticalAlign?: 'top' | 'middle' | 'bottom' | 'baseline';
|
|
19
19
|
weight?: 'thin' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | 'lighter' | 'bolder';
|
|
20
20
|
wrap?: 'truncate' | 'break' | 'nowrap';
|
|
21
|
-
}
|
|
22
|
-
export type TextProps<E extends React.ElementType = React.ElementType> =
|
|
21
|
+
}
|
|
22
|
+
export type TextProps<E extends React.ElementType = React.ElementType> = TextOwnProps & PolymorphicProps<E> & PolymorphicProps<E, TextOwnProps>;
|
|
23
23
|
declare const defaultElement = "span";
|
|
24
|
-
export declare function Text<E extends React.ElementType = typeof defaultElement>(props: TextProps<E
|
|
24
|
+
export declare function Text<E extends React.ElementType = typeof defaultElement>({ align, className, color, column, component, decoration, dropcap, italic, kind, loading, size, transform, verticalAlign, weight, wrap, ...props }: React.PropsWithChildren<TextProps<E>>): React.ReactElement;
|
|
25
25
|
export {};
|
|
@@ -4,9 +4,9 @@ import { Component } from '../../components/Component';
|
|
|
4
4
|
import { useConfig } from '../../components/ConfigProvider';
|
|
5
5
|
import { getBreakpointsConfigClasses } from '../../utils';
|
|
6
6
|
const defaultElement = 'span';
|
|
7
|
-
export function Text(props) {
|
|
7
|
+
export function Text({ align, className, color, column, component = defaultElement, decoration, dropcap, italic, kind, loading, size, transform, verticalAlign, weight, wrap, ...props }) {
|
|
8
8
|
const config = useConfig();
|
|
9
|
-
const {
|
|
9
|
+
const { prefixCls = config.prefixCls, ...restProps } = props;
|
|
10
10
|
const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'text'), [config, prefixCls]);
|
|
11
11
|
const alignClassName = React.useMemo(() => (typeof align === 'string'
|
|
12
12
|
? `${rootCls}-${align}`
|
|
@@ -44,5 +44,5 @@ export function Text(props) {
|
|
|
44
44
|
[`${rootCls}-decoration-none`]: decoration === 'none',
|
|
45
45
|
[`${rootCls}-italic`]: italic,
|
|
46
46
|
[`${rootCls}-loading`]: loading,
|
|
47
|
-
}, className), component:
|
|
47
|
+
}, className), component: component, ...restProps }));
|
|
48
48
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type PolymorphicProps } from '../../components/Component';
|
|
3
|
-
export
|
|
3
|
+
export interface TileOwnProps {
|
|
4
4
|
kind?: 'default' | 'muted' | 'primary' | 'secondary' | 'tertiary';
|
|
5
5
|
prefixCls?: string;
|
|
6
6
|
preserveColor?: boolean;
|
|
7
7
|
size?: 'xsmall' | 'small' | 'large' | 'xlarge';
|
|
8
|
-
}
|
|
9
|
-
export type TileProps<E extends React.ElementType = React.ElementType> =
|
|
8
|
+
}
|
|
9
|
+
export type TileProps<E extends React.ElementType = React.ElementType> = TileOwnProps & PolymorphicProps<E> & PolymorphicProps<E, TileOwnProps>;
|
|
10
10
|
declare const defaultElement = "div";
|
|
11
|
-
export declare function Tile<E extends React.ElementType = typeof defaultElement>(props: TileProps<E
|
|
11
|
+
export declare function Tile<E extends React.ElementType = typeof defaultElement>({ className, component, kind, preserveColor, size, ...props }: React.PropsWithChildren<TileProps<E>>): React.ReactElement;
|
|
12
12
|
export {};
|
|
@@ -3,13 +3,13 @@ import * as React from 'react';
|
|
|
3
3
|
import { Component } from '../../components/Component';
|
|
4
4
|
import { useConfig } from '../../components/ConfigProvider';
|
|
5
5
|
const defaultElement = 'div';
|
|
6
|
-
export function Tile(props) {
|
|
6
|
+
export function Tile({ className, component = defaultElement, kind, preserveColor, size, ...props }) {
|
|
7
7
|
const config = useConfig();
|
|
8
|
-
const {
|
|
8
|
+
const { prefixCls = config.prefixCls, ...restProps } = props;
|
|
9
9
|
const rootCls = React.useMemo(() => config.getRootPrefixCls(prefixCls || config.prefixCls, 'tile'), [config, prefixCls]);
|
|
10
10
|
return (React.createElement(Component, { className: classNames(rootCls, {
|
|
11
11
|
[`${prefixCls || config.prefixCls}-preserve-color`]: preserveColor,
|
|
12
12
|
[`${rootCls}-${kind}`]: kind && ['default', 'muted', 'primary', 'secondary', 'tertiary'].includes(kind),
|
|
13
13
|
[`${rootCls}-${size}`]: size && ['xsmall', 'small', 'large', 'xlarge'].includes(size),
|
|
14
|
-
}, className), component:
|
|
14
|
+
}, className), component: component, ...restProps }));
|
|
15
15
|
}
|
|
@@ -5,7 +5,7 @@ export interface WidthOwnProps extends Omit<WidthBreakpointsConfig, 'default'> {
|
|
|
5
5
|
prefixCls?: string;
|
|
6
6
|
size?: WidthSize | WidthBreakpointsConfig;
|
|
7
7
|
}
|
|
8
|
-
export type WidthProps<E extends React.ElementType = React.ElementType> =
|
|
8
|
+
export type WidthProps<E extends React.ElementType = React.ElementType> = WidthOwnProps & PolymorphicProps<E> & PolymorphicProps<E, WidthOwnProps>;
|
|
9
9
|
declare const defaultElement = "div";
|
|
10
|
-
export declare function Width<E extends React.ElementType = typeof defaultElement>(props: WidthProps<E
|
|
10
|
+
export declare function Width<E extends React.ElementType = typeof defaultElement>({ className, component, l, m, s, size, xl, ...props }: React.PropsWithChildren<WidthProps<E>>): React.ReactElement;
|
|
11
11
|
export {};
|
|
@@ -4,8 +4,8 @@ import { Component } from '../../components/Component';
|
|
|
4
4
|
import { useConfig } from '../../components/ConfigProvider';
|
|
5
5
|
import { getWidthClassname } from '../../components/Width/utils';
|
|
6
6
|
const defaultElement = 'div';
|
|
7
|
-
export function Width(props) {
|
|
7
|
+
export function Width({ className, component = defaultElement, l, m, s, size, xl, ...props }) {
|
|
8
8
|
const config = useConfig();
|
|
9
|
-
const {
|
|
10
|
-
return (React.createElement(Component, { className: classNames(getWidthClassname(size, prefixCls || config.prefixCls), getWidthClassname({ l, m, s, xl }, prefixCls || config.prefixCls), className), component:
|
|
9
|
+
const { prefixCls = config.prefixCls, ...restProps } = props;
|
|
10
|
+
return (React.createElement(Component, { className: classNames(getWidthClassname(size, prefixCls || config.prefixCls), getWidthClassname({ l, m, s, xl }, prefixCls || config.prefixCls), className), component: component, ...restProps }));
|
|
11
11
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var KeyCode;
|
|
2
|
+
(function (KeyCode) {
|
|
3
|
+
KeyCode["ArrowDown"] = "ArrowDown";
|
|
4
|
+
KeyCode["ArrowLeft"] = "ArrowLeft";
|
|
5
|
+
KeyCode["ArrowRight"] = "ArrowRight";
|
|
6
|
+
KeyCode["ArrowUp"] = "ArrowUp";
|
|
7
|
+
KeyCode["End"] = "End";
|
|
8
|
+
KeyCode["Enter"] = "Enter";
|
|
9
|
+
KeyCode["Escape"] = "Escape";
|
|
10
|
+
KeyCode["Home"] = "Home";
|
|
11
|
+
KeyCode["Space"] = "Space";
|
|
12
|
+
KeyCode["Tab"] = "Tab";
|
|
13
|
+
})(KeyCode || (KeyCode = {}));
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './components/Form';
|
|
|
8
8
|
export * from './components/Control';
|
|
9
9
|
export * from './components/Button';
|
|
10
10
|
export * from './components/Progress';
|
|
11
|
+
export * from './components/Slider';
|
|
11
12
|
export * from './components/Switch';
|
|
12
13
|
export * from './components/Close';
|
|
13
14
|
export * from './components/Spinner';
|
package/dist/esm/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from './components/Form';
|
|
|
9
9
|
export * from './components/Control';
|
|
10
10
|
export * from './components/Button';
|
|
11
11
|
export * from './components/Progress';
|
|
12
|
+
export * from './components/Slider';
|
|
12
13
|
export * from './components/Switch';
|
|
13
14
|
export * from './components/Close';
|
|
14
15
|
export * from './components/Spinner';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CSSMotionProps } from 'rc-motion';
|
|
1
|
+
import { type CSSMotionProps } from '@rc-component/motion';
|
|
2
2
|
export declare function getMotionName(prefixCls: string, motion: string, transitionName?: string): string;
|
|
3
3
|
export declare function getCollapseMotion(prefixCls: string): CSSMotionProps;
|
|
4
4
|
export declare function mergeDropMaskMotion(prefixCls: string, motion?: CSSMotionProps): CSSMotionProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@broxus/react-uikit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "React-based UIkit library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"require": "./dist/cjs/index.js",
|
|
26
26
|
"import": "./dist/esm/index.js"
|
|
27
27
|
},
|
|
28
|
+
"./assets/*": "./dist/assets/*",
|
|
28
29
|
"./styles/*": "./styles/*",
|
|
29
30
|
"./package.json": "./package.json"
|
|
30
31
|
},
|
|
@@ -44,12 +45,15 @@
|
|
|
44
45
|
"npm": ">=8"
|
|
45
46
|
},
|
|
46
47
|
"scripts": {
|
|
47
|
-
"build": "npx yarn build:js",
|
|
48
|
+
"build": "npx yarn build:js & npx yarn build:css",
|
|
48
49
|
"build:js": "npx yarn build:cjs & npx yarn build:esm",
|
|
49
50
|
"build:cjs": "tsc -p tsconfig.cjs.json && tsc-alias -p tsconfig.cjs.json",
|
|
50
51
|
"build:esm": "tsc -p tsconfig.esm.json && tsc-alias -p tsconfig.esm.json",
|
|
51
|
-
"
|
|
52
|
+
"build:css": "npx yarn build:css:base & npx yarn build:css:uikit",
|
|
53
|
+
"build:css:base": "npx sass styles:dist/assets --no-source-map",
|
|
54
|
+
"build:css:uikit": "npx sass styles/_import.scss dist/assets/uikit.min.css --no-source-map --style compressed",
|
|
52
55
|
"dev": "npx yarn watch:js",
|
|
56
|
+
"watch:js": "npx chokidar \"src/**/*.{ts,tsx}\" -c \"npx yarn build:esm -- --incremental\"",
|
|
53
57
|
"lint": "npx eslint src --ext .ts,.tsx",
|
|
54
58
|
"lint:fix": "npx eslint src --ext .ts,.tsx --fix",
|
|
55
59
|
"cleanup": "npx rimraf dist",
|
|
@@ -57,29 +61,29 @@
|
|
|
57
61
|
},
|
|
58
62
|
"dependencies": {
|
|
59
63
|
"@broxus/js-utils": "^1.5.1",
|
|
60
|
-
"@rc-component/collapse": "
|
|
61
|
-
"@rc-component/dialog": "
|
|
62
|
-
"@rc-component/drawer": "1.1.0",
|
|
63
|
-
"@rc-component/dropdown": "
|
|
64
|
-
"@rc-component/input": "
|
|
65
|
-
"@rc-component/input-number": "
|
|
66
|
-
"@rc-component/motion": "
|
|
67
|
-
"@rc-component/picker": "
|
|
68
|
-
"@rc-component/resize-observer": "
|
|
69
|
-
"@rc-component/segmented": "
|
|
70
|
-
"@rc-component/select": "
|
|
71
|
-
"@rc-component/
|
|
72
|
-
"@rc-component/
|
|
73
|
-
"@rc-component/
|
|
74
|
-
"@rc-component/
|
|
75
|
-
"@rc-component/
|
|
64
|
+
"@rc-component/collapse": "~1.1.2",
|
|
65
|
+
"@rc-component/dialog": "~1.5.1",
|
|
66
|
+
"@rc-component/drawer": "~1.1.0",
|
|
67
|
+
"@rc-component/dropdown": "~1.0.2",
|
|
68
|
+
"@rc-component/input": "~1.1.2",
|
|
69
|
+
"@rc-component/input-number": "~1.6.2",
|
|
70
|
+
"@rc-component/motion": "~1.1.6",
|
|
71
|
+
"@rc-component/picker": "~1.6.0",
|
|
72
|
+
"@rc-component/resize-observer": "~1.0.1",
|
|
73
|
+
"@rc-component/segmented": "~1.2.3",
|
|
74
|
+
"@rc-component/select": "~1.3.4",
|
|
75
|
+
"@rc-component/slider": "~1.0.1",
|
|
76
|
+
"@rc-component/switch": "~1.0.3",
|
|
77
|
+
"@rc-component/tabs": "~1.7.0",
|
|
78
|
+
"@rc-component/textarea": "~1.1.2",
|
|
79
|
+
"@rc-component/trigger": "~3.7.1",
|
|
80
|
+
"@rc-component/util": "~1.4.0",
|
|
76
81
|
"classnames": "^2.5.1",
|
|
77
|
-
"rc-
|
|
78
|
-
"rc-
|
|
79
|
-
"rc-
|
|
80
|
-
"rc-
|
|
81
|
-
"rc-util": "npm:@rc-component/util
|
|
82
|
-
"shallowequal": "^1.1.0",
|
|
82
|
+
"rc-dialog": "npm:@rc-component/dialog@~1.5.1",
|
|
83
|
+
"rc-motion": "npm:@rc-component/motion@~1.1.6",
|
|
84
|
+
"rc-overflow": "~1.5.0",
|
|
85
|
+
"rc-resize-observer": "npm:@rc-component/resize-observer@~1.0.1",
|
|
86
|
+
"rc-util": "npm:@rc-component/util@~1.4.0",
|
|
83
87
|
"uikit": "^3.24.2"
|
|
84
88
|
},
|
|
85
89
|
"peerDependencies": {
|
|
@@ -87,8 +91,5 @@
|
|
|
87
91
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
88
92
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
89
93
|
},
|
|
90
|
-
"
|
|
91
|
-
"@rc-component/input": "^1.1.1"
|
|
92
|
-
},
|
|
93
|
-
"gitHead": "fa7a48a57ed1ad72d4d2dea298cf15a00cf56753"
|
|
94
|
+
"gitHead": "ba4aebd93f9870285da09017e289a6b0a468f2ce"
|
|
94
95
|
}
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
@forward 'heading';
|
|
9
9
|
@forward 'divider';
|
|
10
10
|
@forward 'list';
|
|
11
|
-
@forward 'description-list';
|
|
12
|
-
|
|
11
|
+
@forward 'description-list'; //
|
|
13
12
|
// @forward 'table';
|
|
14
13
|
@forward 'icon';
|
|
15
14
|
@forward 'form'; // After: Icon
|
|
@@ -21,6 +20,7 @@
|
|
|
21
20
|
@forward 'datepicker';
|
|
22
21
|
@forward 'button';
|
|
23
22
|
@forward 'progress';
|
|
23
|
+
@forward 'slider';
|
|
24
24
|
@forward 'switch';
|
|
25
25
|
|
|
26
26
|
// Layout
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
@forward 'placeholder';
|
|
40
40
|
@forward 'badge';
|
|
41
41
|
@forward 'label';
|
|
42
|
-
|
|
43
42
|
@forward 'overlay'; // After: Icon
|
|
44
43
|
@forward 'article'; // After: Subnav
|
|
45
44
|
// @forward 'comment';
|
|
@@ -50,8 +49,7 @@
|
|
|
50
49
|
@forward 'navbar'; // After: Card, Grid, Nav, Icon, Search
|
|
51
50
|
@forward 'subnav';
|
|
52
51
|
@forward 'segmented';
|
|
53
|
-
@forward 'breadcrumb';
|
|
54
|
-
|
|
52
|
+
@forward 'breadcrumb'; //
|
|
55
53
|
// @forward 'pagination';
|
|
56
54
|
@forward 'tabs';
|
|
57
55
|
@forward 'dotnav';
|
package/styles/_import.scss
CHANGED
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
@forward 'heading';
|
|
9
9
|
@forward 'divider';
|
|
10
10
|
@forward 'list';
|
|
11
|
-
@forward 'description-list';
|
|
12
|
-
|
|
11
|
+
@forward 'description-list'; //
|
|
13
12
|
// @forward 'table';
|
|
14
13
|
@forward 'icon';
|
|
15
14
|
@forward 'form'; // After: Icon
|
|
@@ -21,11 +20,13 @@
|
|
|
21
20
|
@forward 'datepicker';
|
|
22
21
|
@forward 'button';
|
|
23
22
|
@forward 'progress';
|
|
23
|
+
@forward 'slider';
|
|
24
24
|
@forward 'switch';
|
|
25
25
|
|
|
26
26
|
// Layout
|
|
27
27
|
@forward 'section';
|
|
28
28
|
@forward 'container';
|
|
29
|
+
@forward 'grid';
|
|
29
30
|
@forward 'tile';
|
|
30
31
|
@forward 'card';
|
|
31
32
|
|
|
@@ -50,16 +51,12 @@
|
|
|
50
51
|
@forward 'modal'; // After: Close
|
|
51
52
|
@forward 'drawer';
|
|
52
53
|
@forward 'datepicker';
|
|
53
|
-
@forward 'sticky';
|
|
54
|
-
|
|
54
|
+
@forward 'sticky'; //
|
|
55
55
|
// @forward 'leader';
|
|
56
|
-
@forward 'tooltip';
|
|
57
|
-
|
|
56
|
+
@forward 'tooltip'; //
|
|
58
57
|
// @forward 'sortable';
|
|
59
58
|
// @forward 'countdown';
|
|
60
59
|
|
|
61
|
-
@forward 'grid';
|
|
62
|
-
|
|
63
60
|
// Navs
|
|
64
61
|
@forward 'nav';
|
|
65
62
|
@forward 'navbar'; // After: Card, Grid, Nav, Icon, Search
|
package/styles/accordion.scss
CHANGED
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
========================================================================== */
|
|
29
29
|
|
|
30
30
|
.uk-accordion {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: var(--accordion-gutter);
|
|
31
34
|
list-style: none;
|
|
32
35
|
padding: 0;
|
|
33
36
|
@if meta.mixin-exists('hook-accordion') {
|
|
@@ -39,8 +42,7 @@
|
|
|
39
42
|
/* Item
|
|
40
43
|
========================================================================== */
|
|
41
44
|
|
|
42
|
-
.uk-accordion
|
|
43
|
-
margin-top: var(--accordion-item-margin-top);
|
|
45
|
+
.uk-accordion-item {
|
|
44
46
|
@if meta.mixin-exists('hook-accordion-item') {
|
|
45
47
|
@include hook-accordion-item;
|
|
46
48
|
}
|
|
@@ -55,36 +57,61 @@
|
|
|
55
57
|
color: var(--accordion-header-color);
|
|
56
58
|
cursor: pointer;
|
|
57
59
|
display: flex;
|
|
58
|
-
font-size: var(--accordion-header-font-size);
|
|
59
|
-
line-height: var(--accordion-header-line-height);
|
|
60
60
|
@if meta.mixin-exists('hook-accordion-header') {
|
|
61
61
|
@include hook-accordion-header;
|
|
62
62
|
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/*
|
|
66
|
+
* Header collapsible area
|
|
67
|
+
*/
|
|
68
|
+
.uk-accordion-collapsible-header {
|
|
69
|
+
cursor: default;
|
|
70
|
+
@if meta.mixin-exists('hook-accordion-collapsible-header') {
|
|
71
|
+
@include hook-accordion-collapsible-header;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.uk-accordion-collapsible-header .uk-accordion-title {
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
63
78
|
|
|
79
|
+
.uk-accordion-collapsible-header .uk-accordion-expand-icon {
|
|
80
|
+
pointer-events: none;
|
|
64
81
|
}
|
|
65
82
|
|
|
66
|
-
|
|
83
|
+
/*
|
|
84
|
+
* Icon collapsible area
|
|
85
|
+
*/
|
|
86
|
+
.uk-accordion-collapsible-icon {
|
|
67
87
|
cursor: default;
|
|
68
|
-
@if meta.mixin-exists('hook-accordion-
|
|
69
|
-
@include hook-accordion-
|
|
88
|
+
@if meta.mixin-exists('hook-accordion-collapsible-icon') {
|
|
89
|
+
@include hook-accordion-collapsible-icon;
|
|
70
90
|
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.uk-accordion-collapsible-icon .uk-accordion-expand-icon {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
71
96
|
|
|
72
|
-
|
|
73
|
-
|
|
97
|
+
/* Title */
|
|
98
|
+
.uk-accordion-title {
|
|
99
|
+
color: var(--accordion-title-color);
|
|
100
|
+
font-size: var(--accordion-title-font-size);
|
|
101
|
+
line-height: var(--accordion-title-line-height);
|
|
102
|
+
@if meta.mixin-exists('hook-accordion-title') {
|
|
103
|
+
@include hook-accordion-title;
|
|
74
104
|
}
|
|
75
105
|
}
|
|
76
106
|
|
|
77
107
|
/* Hover + Focus */
|
|
78
|
-
.uk-accordion-
|
|
79
|
-
.uk-accordion-
|
|
108
|
+
:not(.uk-accordion-collapsible-disabled, .uk-accordion-collapsible-icon):hover > .uk-accordion-title,
|
|
109
|
+
:not(.uk-accordion-collapsible-disabled, .uk-accordion-collapsible-icon) > .uk-accordion-title:hover {
|
|
110
|
+
color: var(--accordion-title-hover-color);
|
|
80
111
|
outline: none;
|
|
81
112
|
text-decoration: none;
|
|
82
|
-
@if meta.mixin-exists('hook-accordion-
|
|
83
|
-
@include hook-accordion-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&:not(.uk-accordion-item-disabled) {
|
|
87
|
-
color: var(--accordion-header-hover-color);
|
|
113
|
+
@if meta.mixin-exists('hook-accordion-title-hover') {
|
|
114
|
+
@include hook-accordion-title-hover;
|
|
88
115
|
}
|
|
89
116
|
}
|
|
90
117
|
|
|
@@ -94,20 +121,17 @@
|
|
|
94
121
|
margin-right: var(--accordion-icon-margin-right);
|
|
95
122
|
}
|
|
96
123
|
|
|
124
|
+
|
|
97
125
|
/* Disabled item
|
|
98
126
|
========================================================================== */
|
|
99
127
|
|
|
100
|
-
.uk-accordion-
|
|
128
|
+
.uk-accordion-collapsible-disabled {
|
|
101
129
|
color: var(--accordion-item-disabled-color);
|
|
102
130
|
cursor: not-allowed;
|
|
103
131
|
opacity: 0.7;
|
|
104
132
|
@if meta.mixin-exists('hook-accordion-item-disable') {
|
|
105
133
|
@include hook-accordion-item-disable;
|
|
106
134
|
}
|
|
107
|
-
|
|
108
|
-
.uk-accordion-header {
|
|
109
|
-
cursor: not-allowed;
|
|
110
|
-
}
|
|
111
135
|
}
|
|
112
136
|
|
|
113
137
|
|
|
@@ -115,6 +139,7 @@
|
|
|
115
139
|
========================================================================== */
|
|
116
140
|
|
|
117
141
|
.uk-accordion-panel {
|
|
142
|
+
box-sizing: border-box;
|
|
118
143
|
display: flow-root;
|
|
119
144
|
overflow: hidden;
|
|
120
145
|
@if meta.mixin-exists('hook-accordion-panel') {
|
|
@@ -129,7 +154,8 @@
|
|
|
129
154
|
.uk-accordion-panel > :last-child { margin-bottom: 0; }
|
|
130
155
|
|
|
131
156
|
.uk-accordion-body {
|
|
132
|
-
|
|
157
|
+
box-sizing: border-box;
|
|
158
|
+
margin-top: var(--accordion-gutter);
|
|
133
159
|
@if meta.mixin-exists('hook-accordion-body') {
|
|
134
160
|
@include hook-accordion-body;
|
|
135
161
|
}
|
|
@@ -179,20 +205,20 @@
|
|
|
179
205
|
// ========================================================================
|
|
180
206
|
|
|
181
207
|
:root {
|
|
182
|
-
--accordion-
|
|
208
|
+
--accordion-gutter: var(--global-margin);
|
|
183
209
|
--accordion-item-disabled-color: var(--global-muted-color);
|
|
184
|
-
--accordion-header-font-size: var(--global-medium-font-size);
|
|
185
|
-
--accordion-header-line-height: #{$accordion-title-line-height};
|
|
186
210
|
--accordion-header-color: var(--global-emphasis-color);
|
|
187
|
-
--accordion-
|
|
211
|
+
--accordion-title-font-size: var(--global-medium-font-size);
|
|
212
|
+
--accordion-title-line-height: #{$accordion-title-line-height};
|
|
213
|
+
--accordion-title-color: var(--global-emphasis-color);
|
|
214
|
+
--accordion-title-hover-color: var(--global-color);
|
|
188
215
|
--accordion-extra-margin-horizontal: var(--global-small-margin);
|
|
189
|
-
--accordion-panel-margin-top: var(--global-margin);
|
|
190
216
|
--accordion-icon-margin-right: var(--global-small-margin);
|
|
191
217
|
--accordion-icon-color: var(--global-color);
|
|
192
218
|
--accordion-icon-size: #{$accordion-icon-size};
|
|
193
219
|
|
|
194
220
|
// Inverse
|
|
195
|
-
--inverse-accordion-
|
|
196
|
-
--inverse-accordion-
|
|
221
|
+
--inverse-accordion-title-color: var(--inverse-global-emphasis-color);
|
|
222
|
+
--inverse-accordion-title-hover-color: var(--inverse-global-color);
|
|
197
223
|
--inverse-accordion-item-disabled-color: var(--inverse-global-emphasis-color);
|
|
198
224
|
}
|
package/styles/alert.scss
CHANGED
|
@@ -150,11 +150,12 @@
|
|
|
150
150
|
.uk-alert-motion-leave {
|
|
151
151
|
opacity: 1;
|
|
152
152
|
overflow: hidden;
|
|
153
|
-
transition:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
transition:
|
|
154
|
+
max-height var(--transition-duration) var(--ease-in-out-circ),
|
|
155
|
+
opacity var(--transition-duration) var(--ease-in-out-circ),
|
|
156
|
+
padding-top var(--transition-duration) var(--ease-in-out-circ),
|
|
157
|
+
padding-bottom var(--transition-duration) var(--ease-in-out-circ),
|
|
158
|
+
margin-bottom var(--transition-duration) var(--ease-in-out-circ);
|
|
158
159
|
}
|
|
159
160
|
|
|
160
161
|
.uk-alert-motion-leave-active {
|