@bolio-ui/core 2.0.0-alpha.1 → 2.0.0-alpha.2
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/Avatar/Avatar.d.ts +3 -2
- package/dist/Avatar/AvatarGroup.d.ts +2 -1
- package/dist/Avatar/index.js +10 -785
- package/dist/Badge/Badge.d.ts +11 -2
- package/dist/Badge/BadgeAnchor.d.ts +3 -3
- package/dist/Badge/index.js +11 -799
- package/dist/BolioUIProvider/index.js +26 -1724
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +3 -2
- package/dist/Breadcrumbs/BreadcrumbsItem.d.ts +3 -2
- package/dist/Breadcrumbs/BreadcrumbsSeparator.d.ts +2 -1
- package/dist/Breadcrumbs/index.js +12 -873
- package/dist/Button/Button.d.ts +2 -1
- package/dist/Button/ButtonIcon.d.ts +2 -1
- package/dist/Button/index.js +18 -1242
- package/dist/Button/styles.d.ts +2 -0
- package/dist/ButtonDropdown/ButtonDropdown.d.ts +3 -2
- package/dist/ButtonDropdown/ButtonDropdownItem.d.ts +2 -1
- package/dist/ButtonDropdown/index.js +16 -1015
- package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup/index.js +11 -706
- package/dist/Calendar/index.js +10 -937
- package/dist/Capacity/Capacity.d.ts +3 -2
- package/dist/Capacity/index.js +11 -693
- package/dist/Card/Card.d.ts +6 -2
- package/dist/Card/CardContent.d.ts +2 -1
- package/dist/Card/CardFooter.d.ts +2 -1
- package/dist/Card/index.js +17 -1159
- package/dist/Card/styles.d.ts +7 -1
- package/dist/Checkbox/Checkbox.d.ts +3 -2
- package/dist/Checkbox/CheckboxGroup.d.ts +2 -1
- package/dist/Checkbox/CheckboxIcon.d.ts +1 -2
- package/dist/Checkbox/index.js +11 -941
- package/dist/Checkbox/styles.d.ts +1 -5
- package/dist/Code/Code.d.ts +6 -2
- package/dist/Code/index.js +10 -714
- package/dist/Col/Col.d.ts +3 -2
- package/dist/Col/index.js +4 -65
- package/dist/Collapse/Collapse.d.ts +3 -2
- package/dist/Collapse/CollapseGroup.d.ts +3 -2
- package/dist/Collapse/index.js +18 -1032
- package/dist/Combobox/index.js +10 -855
- package/dist/Container/Container.d.ts +1 -1
- package/dist/Container/index.js +8 -408
- package/dist/CssBaseline/CssBaseline.d.ts +1 -1
- package/dist/CssBaseline/index.js +7 -331
- package/dist/DatePicker/index.js +16 -1124
- package/dist/Description/Description.d.ts +3 -2
- package/dist/Description/index.js +10 -657
- package/dist/Display/Display.d.ts +3 -2
- package/dist/Display/index.js +10 -661
- package/dist/Divider/Divider.d.ts +3 -2
- package/dist/Divider/index.js +10 -681
- package/dist/Dot/Dot.d.ts +3 -2
- package/dist/Dot/index.js +10 -672
- package/dist/Drawer/Drawer.d.ts +1 -1
- package/dist/Drawer/DrawerWrapper.d.ts +1 -1
- package/dist/Drawer/helper.d.ts +1 -3
- package/dist/Drawer/index.js +21 -1368
- package/dist/Fieldset/Fieldset.d.ts +3 -2
- package/dist/Fieldset/FieldsetContent.d.ts +3 -2
- package/dist/Fieldset/FieldsetFooter.d.ts +3 -2
- package/dist/Fieldset/FieldsetGroup.d.ts +3 -2
- package/dist/Fieldset/index.js +16 -953
- package/dist/Grid/BasicItem.d.ts +3 -2
- package/dist/Grid/Grid.d.ts +107 -105
- package/dist/Grid/GridContainer.d.ts +107 -105
- package/dist/Grid/GridTypes.d.ts +5 -11
- package/dist/Grid/index.js +10 -783
- package/dist/Image/Image.d.ts +3 -2
- package/dist/Image/ImageBrowser.d.ts +4 -3
- package/dist/Image/index.js +12 -979
- package/dist/Input/Input.d.ts +3 -2
- package/dist/Input/InputBlockLabel.d.ts +3 -1
- package/dist/Input/InputProps.d.ts +1 -2
- package/dist/Input/Password.d.ts +3 -2
- package/dist/Input/index.js +17 -1174
- package/dist/Keyboard/Keyboard.d.ts +3 -2
- package/dist/Keyboard/index.js +9 -635
- package/dist/Link/Link.d.ts +3 -2
- package/dist/Link/index.js +11 -766
- package/dist/Loading/Loading.d.ts +3 -2
- package/dist/Loading/index.js +10 -681
- package/dist/MdxWidgets/index.js +42 -401
- package/dist/Menu/Menu.d.ts +20 -0
- package/dist/Menu/MenuContext.d.ts +15 -0
- package/dist/Menu/MenuItem.d.ts +57 -0
- package/dist/Menu/MenuList.d.ts +12 -0
- package/dist/Menu/MenuSub.d.ts +12 -0
- package/dist/Menu/index.d.ts +17 -0
- package/dist/Menu/index.js +24 -0
- package/dist/Modal/Modal.d.ts +3 -2
- package/dist/Modal/ModalAction.d.ts +1 -1
- package/dist/Modal/ModalActions.d.ts +1 -1
- package/dist/Modal/ModalContent.d.ts +1 -1
- package/dist/Modal/ModalSubtitle.d.ts +1 -1
- package/dist/Modal/ModalTitle.d.ts +3 -2
- package/dist/Modal/ModalWrapper.d.ts +1 -1
- package/dist/Modal/index.js +27 -2041
- package/dist/Next/index.js +20 -79
- package/dist/Note/Note.d.ts +6 -3
- package/dist/Note/index.js +11 -688
- package/dist/NumberInput/NumberInput.d.ts +24 -0
- package/dist/NumberInput/index.d.ts +3 -0
- package/dist/NumberInput/index.js +16 -0
- package/dist/Page/Page.d.ts +4 -4
- package/dist/Page/PageContent.d.ts +3 -2
- package/dist/Page/PageFooter.d.ts +3 -2
- package/dist/Page/PageHeader.d.ts +3 -2
- package/dist/Page/index.js +10 -820
- package/dist/Pagination/Pagination.d.ts +3 -2
- package/dist/Pagination/PaginationContext.d.ts +1 -3
- package/dist/Pagination/PaginationItem.d.ts +2 -1
- package/dist/Pagination/PaginationNext.d.ts +2 -1
- package/dist/Pagination/PaginationPrevious.d.ts +2 -1
- package/dist/Pagination/index.js +16 -1071
- package/dist/Popover/Popover.d.ts +1 -1
- package/dist/Popover/PopoverItem.d.ts +3 -2
- package/dist/Popover/index.js +23 -1413
- package/dist/Progress/Progress.d.ts +3 -2
- package/dist/Progress/index.js +11 -717
- package/dist/Radio/Radio.d.ts +3 -2
- package/dist/Radio/RadioDescription.d.ts +3 -2
- package/dist/Radio/RadioGroup.d.ts +3 -2
- package/dist/Radio/index.js +11 -909
- package/dist/Rating/Rating.d.ts +5 -6
- package/dist/Rating/index.js +10 -807
- package/dist/Row/Row.d.ts +1 -1
- package/dist/Row/index.js +8 -406
- package/dist/Section/Section.d.ts +1 -1
- package/dist/Section/index.js +10 -650
- package/dist/Select/Select.d.ts +3 -2
- package/dist/Select/SelectDropdown.d.ts +3 -2
- package/dist/Select/SelectOption.d.ts +3 -2
- package/dist/Select/index.js +24 -1696
- package/dist/Shared/backdrop.d.ts +1 -15
- package/dist/Shared/css-transition.d.ts +3 -17
- package/dist/Shared/expand.d.ts +1 -9
- package/dist/Shared/highlight.d.ts +2 -1
- package/dist/Skeleton/Skeleton.d.ts +13 -0
- package/dist/Skeleton/index.d.ts +3 -0
- package/dist/Skeleton/index.js +14 -0
- package/dist/Slider/Slider.d.ts +3 -2
- package/dist/Slider/SliderDot.d.ts +3 -2
- package/dist/Slider/index.js +16 -1012
- package/dist/Snippet/Snippet.d.ts +6 -2
- package/dist/Snippet/index.js +20 -1069
- package/dist/Snippet/styles.d.ts +7 -1
- package/dist/Spacer/index.js +9 -617
- package/dist/Spinner/Spinner.d.ts +3 -2
- package/dist/Spinner/index.js +10 -675
- package/dist/Stepper/Stepper.d.ts +14 -0
- package/dist/Stepper/StepperContext.d.ts +10 -0
- package/dist/Stepper/StepperStep.d.ts +13 -0
- package/dist/Stepper/index.d.ts +9 -0
- package/dist/Stepper/index.js +14 -0
- package/dist/Table/Table.d.ts +4 -3
- package/dist/Table/TableBody.d.ts +3 -10
- package/dist/Table/TableCell.d.ts +2 -1
- package/dist/Table/TableColumn.d.ts +0 -4
- package/dist/Table/TableContext.d.ts +1 -1
- package/dist/Table/TableHead.d.ts +2 -4
- package/dist/Table/TableTypes.d.ts +2 -1
- package/dist/Table/index.js +17 -1017
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/Tabs/TabsContext.d.ts +7 -2
- package/dist/Tabs/TabsItem.d.ts +5 -2
- package/dist/Tabs/index.js +11 -1018
- package/dist/Tag/Tag.d.ts +5 -2
- package/dist/Tag/index.js +10 -669
- package/dist/Text/Child.d.ts +3 -2
- package/dist/Text/Text.d.ts +4 -3
- package/dist/Text/index.js +9 -751
- package/dist/Textarea/Textarea.d.ts +4 -4
- package/dist/Textarea/index.js +11 -839
- package/dist/Themes/index.js +4 -305
- package/dist/Toggle/Toggle.d.ts +3 -2
- package/dist/Toggle/index.js +10 -763
- package/dist/Tooltip/Tooltip.d.ts +6 -2
- package/dist/Tooltip/TooltipContent.d.ts +3 -0
- package/dist/Tooltip/helper.d.ts +1 -1
- package/dist/Tooltip/index.js +21 -1244
- package/dist/Tooltip/styles.d.ts +7 -1
- package/dist/chunk-33BUV2RX.js +10 -0
- package/dist/chunk-33WYJZ4F.js +88 -0
- package/dist/chunk-3BVFLDHI.js +295 -0
- package/dist/chunk-3WPRUUZ6.js +25 -0
- package/dist/chunk-3XTTDT42.js +72 -0
- package/dist/chunk-45MVPPJN.js +10 -0
- package/dist/chunk-4RJGB3WA.js +107 -0
- package/dist/chunk-4VCNNVZ4.js +310 -0
- package/dist/chunk-5BRAW5HK.js +10 -0
- package/dist/chunk-5GR6MFT5.js +70 -0
- package/dist/chunk-5JAYTLFV.js +227 -0
- package/dist/chunk-5KUROAEP.js +39 -0
- package/dist/chunk-5KWSYI7C.js +143 -0
- package/dist/chunk-5W4MJC2K.js +55 -0
- package/dist/chunk-6BHDVSPB.js +226 -0
- package/dist/chunk-6XJS3KMW.js +436 -0
- package/dist/chunk-7L3HCDGD.js +65 -0
- package/dist/chunk-A3BIV2QM.js +26 -0
- package/dist/chunk-APDSEVV6.js +443 -0
- package/dist/chunk-AXYDJGTN.js +18 -0
- package/dist/chunk-BDEBNBW6.js +61 -0
- package/dist/chunk-BSDZWWUS.js +20 -0
- package/dist/chunk-BXDUHMWS.js +57 -0
- package/dist/chunk-C3ZZPIUO.js +54 -0
- package/dist/chunk-CNY7HPMQ.js +191 -0
- package/dist/chunk-CPIFYIT3.js +465 -0
- package/dist/chunk-CV4DIXTB.js +93 -0
- package/dist/chunk-DD72MTCX.js +55 -0
- package/dist/chunk-DGXZP4VJ.js +10 -0
- package/dist/chunk-DSX6YDJM.js +71 -0
- package/dist/chunk-DTRBG524.js +195 -0
- package/dist/chunk-ELIPUM6Q.js +142 -0
- package/dist/chunk-EMDU5OPY.js +236 -0
- package/dist/chunk-EZILJ6TJ.js +133 -0
- package/dist/chunk-F3AL4TQZ.js +186 -0
- package/dist/chunk-F5ENWFJU.js +273 -0
- package/dist/chunk-GGD4BGH2.js +30 -0
- package/dist/chunk-GJZT47MP.js +32 -0
- package/dist/chunk-HH2IP5Z4.js +189 -0
- package/dist/chunk-HKOESPKZ.js +35 -0
- package/dist/chunk-HMOOLCMA.js +401 -0
- package/dist/chunk-HMOTWEQB.js +113 -0
- package/dist/chunk-HX5M3GSJ.js +63 -0
- package/dist/chunk-I6WWABJN.js +27 -0
- package/dist/chunk-IB2FP4DM.js +307 -0
- package/dist/chunk-IUOX444H.js +282 -0
- package/{esm/Select/styles.js → dist/chunk-IWMGNPNV.js} +26 -12
- package/dist/chunk-J4K4LRBI.js +32 -0
- package/dist/chunk-J6KQRS7O.js +226 -0
- package/dist/chunk-JJFOGZ6V.js +22 -0
- package/dist/chunk-JM3DV57W.js +44 -0
- package/dist/chunk-K53ERLS7.js +150 -0
- package/dist/chunk-KBCAV5FR.js +22 -0
- package/dist/chunk-KHB3EKRQ.js +36 -0
- package/dist/chunk-KVIIL2O6.js +192 -0
- package/dist/chunk-KZXX7IEN.js +44 -0
- package/dist/chunk-LDTDMDE6.js +51 -0
- package/dist/chunk-MYAZEMZC.js +134 -0
- package/dist/chunk-NCUSKYUE.js +95 -0
- package/dist/chunk-NDERASK2.js +13 -0
- package/dist/chunk-NRSWR3C4.js +165 -0
- package/dist/chunk-O3RTRCY5.js +64 -0
- package/dist/chunk-OEHIZKSM.js +31 -0
- package/dist/chunk-OFNHKVGZ.js +136 -0
- package/dist/chunk-PGK3BYA2.js +60 -0
- package/dist/chunk-PHKAYQE4.js +42 -0
- package/dist/chunk-PJH7CP77.js +27 -0
- package/dist/chunk-QMV4ULSR.js +124 -0
- package/dist/chunk-QUMM6MGX.js +10 -0
- package/dist/chunk-RF5ZQ37O.js +66 -0
- package/dist/chunk-RSHEENJP.js +156 -0
- package/dist/chunk-RZBEZ26A.js +38 -0
- package/dist/chunk-S62PPQHN.js +208 -0
- package/dist/chunk-TF3CTLKX.js +42 -0
- package/dist/chunk-TFZ2IGNH.js +14 -0
- package/dist/chunk-TUWG4TLU.js +97 -0
- package/dist/chunk-TXG6TBSG.js +91 -0
- package/dist/chunk-U2NJJS3T.js +88 -0
- package/dist/chunk-UEWD6OUC.js +137 -0
- package/dist/chunk-UF4IKEU2.js +17 -0
- package/dist/chunk-UVCSH6DW.js +16 -0
- package/dist/chunk-UX2B3G6U.js +106 -0
- package/dist/chunk-V57PNXMD.js +14 -0
- package/dist/chunk-VCTKX4AS.js +247 -0
- package/dist/chunk-W4T2KO5B.js +129 -0
- package/dist/chunk-XSXJO2KP.js +29 -0
- package/dist/chunk-XXMCR322.js +199 -0
- package/dist/chunk-Y6X5SEN7.js +232 -0
- package/dist/chunk-YDYRM2KN.js +25 -0
- package/dist/chunk-YFQOB5OC.js +204 -0
- package/dist/chunk-YHEIC6EK.js +102 -0
- package/dist/chunk-YS5PWRS7.js +288 -0
- package/dist/chunk-ZNNLYTW5.js +64 -0
- package/dist/chunk-ZQ25CQCG.js +153 -0
- package/dist/chunk-ZRORQ2WH.js +14 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +325 -10217
- package/dist/use-all-themes/index.js +5 -321
- package/dist/use-body-scroll/index.js +3 -153
- package/dist/use-body-scroll/use-body-scroll.d.ts +1 -1
- package/dist/use-classes/index.d.ts +1 -0
- package/dist/use-classes/index.js +3 -42
- package/dist/use-classes/use-classes.d.ts +1 -0
- package/dist/use-click-away/index.js +3 -23
- package/dist/use-clipboard/index.js +7 -155
- package/dist/use-current-state/index.js +3 -73
- package/dist/use-input/index.js +5 -109
- package/dist/use-keyboard/helper.d.ts +1 -1
- package/dist/use-keyboard/index.js +5 -194
- package/dist/use-media-query/index.js +7 -458
- package/dist/use-media-query/use-media-query.d.ts +2 -4
- package/dist/use-modal/index.js +5 -94
- package/dist/use-scale/index.js +8 -587
- package/dist/use-tabs/index.js +5 -93
- package/dist/use-theme/index.js +6 -319
- package/dist/use-toasts/helpers.d.ts +2 -4
- package/dist/use-toasts/index.js +5 -204
- package/dist/utils/collections.d.ts +1 -1
- package/dist/utils/log-warning.d.ts +2 -0
- package/dist/utils/prop-types.d.ts +8 -17
- package/dist/utils/types.d.ts +3 -1
- package/dist/utils/use-bolio-ui-context.d.ts +3 -3
- package/dist/utils/use-default-props.d.ts +2 -1
- package/dist/utils/use-drag.d.ts +1 -1
- package/dist/utils/use-latest.d.ts +3 -0
- package/dist/utils/use-previous.d.ts +1 -1
- package/dist/utils/variant-colors.d.ts +11 -0
- package/esm/Avatar/Avatar.d.ts +3 -2
- package/esm/Avatar/AvatarGroup.d.ts +2 -1
- package/esm/Avatar/index.js +13 -4
- package/esm/Badge/Badge.d.ts +11 -2
- package/esm/Badge/BadgeAnchor.d.ts +3 -3
- package/esm/Badge/index.js +14 -4
- package/esm/BolioUIProvider/index.js +26 -2
- package/esm/Breadcrumbs/Breadcrumbs.d.ts +3 -2
- package/esm/Breadcrumbs/BreadcrumbsItem.d.ts +3 -2
- package/esm/Breadcrumbs/BreadcrumbsSeparator.d.ts +2 -1
- package/esm/Breadcrumbs/index.js +15 -6
- package/esm/Button/Button.d.ts +2 -1
- package/esm/Button/ButtonIcon.d.ts +2 -1
- package/esm/Button/index.js +18 -2
- package/esm/Button/styles.d.ts +2 -0
- package/esm/ButtonDropdown/ButtonDropdown.d.ts +3 -2
- package/esm/ButtonDropdown/ButtonDropdownItem.d.ts +2 -1
- package/esm/ButtonDropdown/index.js +16 -4
- package/esm/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/esm/ButtonGroup/index.js +14 -2
- package/esm/Calendar/index.js +13 -2
- package/esm/Capacity/Capacity.d.ts +3 -2
- package/esm/Capacity/index.js +14 -2
- package/esm/Card/Card.d.ts +6 -2
- package/esm/Card/CardContent.d.ts +2 -1
- package/esm/Card/CardFooter.d.ts +2 -1
- package/esm/Card/index.js +17 -8
- package/esm/Card/styles.d.ts +7 -1
- package/esm/Checkbox/Checkbox.d.ts +3 -2
- package/esm/Checkbox/CheckboxGroup.d.ts +2 -1
- package/esm/Checkbox/CheckboxIcon.d.ts +1 -2
- package/esm/Checkbox/index.js +14 -4
- package/esm/Checkbox/styles.d.ts +1 -5
- package/esm/Code/Code.d.ts +6 -2
- package/esm/Code/index.js +13 -2
- package/esm/Col/Col.d.ts +3 -2
- package/esm/Col/index.js +7 -2
- package/esm/Collapse/Collapse.d.ts +3 -2
- package/esm/Collapse/CollapseGroup.d.ts +3 -2
- package/esm/Collapse/index.js +18 -4
- package/esm/Combobox/index.js +13 -2
- package/esm/Container/Container.d.ts +1 -1
- package/esm/Container/index.js +11 -2
- package/esm/CssBaseline/CssBaseline.d.ts +1 -1
- package/esm/CssBaseline/index.js +10 -1
- package/esm/DatePicker/index.js +16 -2
- package/esm/Description/Description.d.ts +3 -2
- package/esm/Description/index.js +13 -2
- package/esm/Display/Display.d.ts +3 -2
- package/esm/Display/index.js +13 -2
- package/esm/Divider/Divider.d.ts +3 -2
- package/esm/Divider/index.js +13 -2
- package/esm/Dot/Dot.d.ts +3 -2
- package/esm/Dot/index.js +13 -2
- package/esm/Drawer/Drawer.d.ts +1 -1
- package/esm/Drawer/DrawerWrapper.d.ts +1 -1
- package/esm/Drawer/helper.d.ts +1 -3
- package/esm/Drawer/index.js +21 -8
- package/esm/Fieldset/Fieldset.d.ts +3 -2
- package/esm/Fieldset/FieldsetContent.d.ts +3 -2
- package/esm/Fieldset/FieldsetFooter.d.ts +3 -2
- package/esm/Fieldset/FieldsetGroup.d.ts +3 -2
- package/esm/Fieldset/index.js +16 -13
- package/esm/Grid/BasicItem.d.ts +3 -2
- package/esm/Grid/Grid.d.ts +107 -105
- package/esm/Grid/GridContainer.d.ts +107 -105
- package/esm/Grid/GridTypes.d.ts +5 -11
- package/esm/Grid/index.js +13 -4
- package/esm/Image/Image.d.ts +3 -2
- package/esm/Image/ImageBrowser.d.ts +4 -3
- package/esm/Image/index.js +15 -4
- package/esm/Input/Input.d.ts +3 -2
- package/esm/Input/InputBlockLabel.d.ts +3 -1
- package/esm/Input/InputProps.d.ts +1 -2
- package/esm/Input/Password.d.ts +3 -2
- package/esm/Input/index.js +17 -6
- package/esm/Keyboard/Keyboard.d.ts +3 -2
- package/esm/Keyboard/index.js +12 -2
- package/esm/Link/Link.d.ts +3 -2
- package/esm/Link/index.js +14 -2
- package/esm/Loading/Loading.d.ts +3 -2
- package/esm/Loading/index.js +13 -2
- package/esm/MdxWidgets/index.js +51 -2
- package/esm/Menu/Menu.d.ts +20 -0
- package/esm/Menu/MenuContext.d.ts +15 -0
- package/esm/Menu/MenuItem.d.ts +57 -0
- package/esm/Menu/MenuList.d.ts +12 -0
- package/esm/Menu/MenuSub.d.ts +12 -0
- package/esm/Menu/index.d.ts +17 -0
- package/esm/Menu/index.js +24 -0
- package/esm/Modal/Modal.d.ts +3 -2
- package/esm/Modal/ModalAction.d.ts +1 -1
- package/esm/Modal/ModalActions.d.ts +1 -1
- package/esm/Modal/ModalContent.d.ts +1 -1
- package/esm/Modal/ModalSubtitle.d.ts +1 -1
- package/esm/Modal/ModalTitle.d.ts +3 -2
- package/esm/Modal/ModalWrapper.d.ts +1 -1
- package/esm/Modal/index.js +27 -10
- package/esm/Next/index.js +24 -3
- package/esm/Note/Note.d.ts +6 -3
- package/esm/Note/index.js +14 -2
- package/esm/NumberInput/NumberInput.d.ts +24 -0
- package/esm/NumberInput/index.d.ts +3 -0
- package/esm/NumberInput/index.js +16 -0
- package/esm/Page/Page.d.ts +4 -4
- package/esm/Page/PageContent.d.ts +3 -2
- package/esm/Page/PageFooter.d.ts +3 -2
- package/esm/Page/PageHeader.d.ts +3 -2
- package/esm/Page/index.js +13 -9
- package/esm/Pagination/Pagination.d.ts +3 -2
- package/esm/Pagination/PaginationContext.d.ts +1 -3
- package/esm/Pagination/PaginationItem.d.ts +2 -1
- package/esm/Pagination/PaginationNext.d.ts +2 -1
- package/esm/Pagination/PaginationPrevious.d.ts +2 -1
- package/esm/Pagination/index.js +16 -6
- package/esm/Popover/Popover.d.ts +1 -1
- package/esm/Popover/PopoverItem.d.ts +3 -2
- package/esm/Popover/index.js +23 -5
- package/esm/Progress/Progress.d.ts +3 -2
- package/esm/Progress/index.js +14 -2
- package/esm/Radio/Radio.d.ts +3 -2
- package/esm/Radio/RadioDescription.d.ts +3 -2
- package/esm/Radio/RadioGroup.d.ts +3 -2
- package/esm/Radio/index.js +14 -7
- package/esm/Rating/Rating.d.ts +5 -6
- package/esm/Rating/index.js +13 -2
- package/esm/Row/Row.d.ts +1 -1
- package/esm/Row/index.js +11 -2
- package/esm/Section/Section.d.ts +1 -1
- package/esm/Section/index.js +13 -2
- package/esm/Select/Select.d.ts +3 -2
- package/esm/Select/SelectDropdown.d.ts +3 -2
- package/esm/Select/SelectOption.d.ts +3 -2
- package/esm/Select/index.js +24 -4
- package/esm/Shared/backdrop.d.ts +1 -15
- package/esm/Shared/css-transition.d.ts +3 -17
- package/esm/Shared/expand.d.ts +1 -9
- package/esm/Shared/highlight.d.ts +2 -1
- package/esm/Skeleton/Skeleton.d.ts +13 -0
- package/esm/Skeleton/index.d.ts +3 -0
- package/esm/Skeleton/index.js +14 -0
- package/esm/Slider/Slider.d.ts +3 -2
- package/esm/Slider/SliderDot.d.ts +3 -2
- package/esm/Slider/index.js +16 -2
- package/esm/Snippet/Snippet.d.ts +6 -2
- package/esm/Snippet/index.js +20 -2
- package/esm/Snippet/styles.d.ts +7 -1
- package/esm/Spacer/index.js +12 -2
- package/esm/Spinner/Spinner.d.ts +3 -2
- package/esm/Spinner/index.js +13 -2
- package/esm/Stepper/Stepper.d.ts +14 -0
- package/esm/Stepper/StepperContext.d.ts +10 -0
- package/esm/Stepper/StepperStep.d.ts +13 -0
- package/esm/Stepper/index.d.ts +9 -0
- package/esm/Stepper/index.js +14 -0
- package/esm/Table/Table.d.ts +4 -3
- package/esm/Table/TableBody.d.ts +3 -10
- package/esm/Table/TableCell.d.ts +2 -1
- package/esm/Table/TableColumn.d.ts +0 -4
- package/esm/Table/TableContext.d.ts +1 -1
- package/esm/Table/TableHead.d.ts +2 -4
- package/esm/Table/TableTypes.d.ts +2 -1
- package/esm/Table/index.js +17 -2
- package/esm/Tabs/Tabs.d.ts +1 -1
- package/esm/Tabs/TabsContext.d.ts +7 -2
- package/esm/Tabs/TabsItem.d.ts +5 -2
- package/esm/Tabs/index.js +14 -5
- package/esm/Tag/Tag.d.ts +5 -2
- package/esm/Tag/index.js +13 -2
- package/esm/Text/Child.d.ts +3 -2
- package/esm/Text/Text.d.ts +4 -3
- package/esm/Text/index.js +12 -2
- package/esm/Textarea/Textarea.d.ts +4 -4
- package/esm/Textarea/index.js +14 -2
- package/esm/Themes/index.js +7 -2
- package/esm/Toggle/Toggle.d.ts +3 -2
- package/esm/Toggle/index.js +13 -2
- package/esm/Tooltip/Tooltip.d.ts +6 -2
- package/esm/Tooltip/TooltipContent.d.ts +3 -0
- package/esm/Tooltip/helper.d.ts +1 -1
- package/esm/Tooltip/index.js +21 -2
- package/esm/Tooltip/styles.d.ts +7 -1
- package/esm/chunk-33BUV2RX.js +10 -0
- package/esm/chunk-33WYJZ4F.js +88 -0
- package/esm/chunk-3BVFLDHI.js +295 -0
- package/esm/chunk-3WPRUUZ6.js +25 -0
- package/esm/chunk-3XTTDT42.js +72 -0
- package/esm/chunk-45MVPPJN.js +10 -0
- package/esm/chunk-4RJGB3WA.js +107 -0
- package/esm/chunk-4VCNNVZ4.js +310 -0
- package/esm/chunk-5BRAW5HK.js +10 -0
- package/esm/chunk-5GR6MFT5.js +70 -0
- package/esm/chunk-5JAYTLFV.js +227 -0
- package/esm/chunk-5KUROAEP.js +39 -0
- package/esm/chunk-5KWSYI7C.js +143 -0
- package/esm/chunk-5W4MJC2K.js +55 -0
- package/esm/chunk-6BHDVSPB.js +226 -0
- package/esm/chunk-6XJS3KMW.js +436 -0
- package/esm/chunk-7L3HCDGD.js +65 -0
- package/esm/chunk-A3BIV2QM.js +26 -0
- package/esm/chunk-APDSEVV6.js +443 -0
- package/esm/chunk-AXYDJGTN.js +18 -0
- package/esm/chunk-BDEBNBW6.js +61 -0
- package/esm/chunk-BSDZWWUS.js +20 -0
- package/esm/chunk-BXDUHMWS.js +57 -0
- package/esm/chunk-C3ZZPIUO.js +54 -0
- package/esm/chunk-CNY7HPMQ.js +191 -0
- package/esm/chunk-CPIFYIT3.js +465 -0
- package/esm/chunk-CV4DIXTB.js +93 -0
- package/esm/chunk-DD72MTCX.js +55 -0
- package/esm/chunk-DGXZP4VJ.js +10 -0
- package/esm/chunk-DSX6YDJM.js +71 -0
- package/esm/chunk-DTRBG524.js +195 -0
- package/esm/chunk-ELIPUM6Q.js +142 -0
- package/esm/chunk-EMDU5OPY.js +236 -0
- package/esm/chunk-EZILJ6TJ.js +133 -0
- package/esm/chunk-F3AL4TQZ.js +186 -0
- package/esm/chunk-F5ENWFJU.js +273 -0
- package/esm/chunk-GGD4BGH2.js +30 -0
- package/esm/chunk-GJZT47MP.js +32 -0
- package/esm/chunk-HH2IP5Z4.js +189 -0
- package/esm/chunk-HKOESPKZ.js +35 -0
- package/esm/chunk-HMOOLCMA.js +401 -0
- package/esm/chunk-HMOTWEQB.js +113 -0
- package/esm/chunk-HX5M3GSJ.js +63 -0
- package/esm/chunk-I6WWABJN.js +27 -0
- package/esm/chunk-IB2FP4DM.js +307 -0
- package/esm/chunk-IUOX444H.js +282 -0
- package/esm/{Input/styles.js → chunk-IWMGNPNV.js} +26 -19
- package/esm/chunk-J4K4LRBI.js +32 -0
- package/esm/chunk-J6KQRS7O.js +226 -0
- package/esm/chunk-JJFOGZ6V.js +22 -0
- package/esm/chunk-JM3DV57W.js +44 -0
- package/esm/chunk-K53ERLS7.js +150 -0
- package/esm/chunk-KBCAV5FR.js +22 -0
- package/esm/chunk-KHB3EKRQ.js +36 -0
- package/esm/chunk-KVIIL2O6.js +192 -0
- package/esm/chunk-KZXX7IEN.js +44 -0
- package/esm/chunk-LDTDMDE6.js +51 -0
- package/esm/chunk-MYAZEMZC.js +134 -0
- package/esm/chunk-NCUSKYUE.js +95 -0
- package/esm/chunk-NDERASK2.js +13 -0
- package/esm/chunk-NRSWR3C4.js +165 -0
- package/esm/chunk-O3RTRCY5.js +64 -0
- package/esm/chunk-OEHIZKSM.js +31 -0
- package/esm/chunk-OFNHKVGZ.js +136 -0
- package/esm/chunk-PGK3BYA2.js +60 -0
- package/esm/chunk-PHKAYQE4.js +42 -0
- package/esm/chunk-PJH7CP77.js +27 -0
- package/esm/chunk-QMV4ULSR.js +124 -0
- package/esm/chunk-QUMM6MGX.js +10 -0
- package/esm/chunk-RF5ZQ37O.js +66 -0
- package/esm/chunk-RSHEENJP.js +156 -0
- package/esm/chunk-RZBEZ26A.js +38 -0
- package/esm/chunk-S62PPQHN.js +208 -0
- package/esm/chunk-TF3CTLKX.js +42 -0
- package/esm/chunk-TFZ2IGNH.js +14 -0
- package/esm/chunk-TUWG4TLU.js +97 -0
- package/esm/chunk-TXG6TBSG.js +91 -0
- package/esm/chunk-U2NJJS3T.js +88 -0
- package/esm/chunk-UEWD6OUC.js +137 -0
- package/esm/chunk-UF4IKEU2.js +17 -0
- package/esm/chunk-UVCSH6DW.js +16 -0
- package/esm/chunk-UX2B3G6U.js +106 -0
- package/esm/chunk-V57PNXMD.js +14 -0
- package/esm/chunk-VCTKX4AS.js +247 -0
- package/esm/chunk-W4T2KO5B.js +129 -0
- package/esm/chunk-XSXJO2KP.js +29 -0
- package/esm/chunk-XXMCR322.js +199 -0
- package/esm/chunk-Y6X5SEN7.js +232 -0
- package/esm/chunk-YDYRM2KN.js +25 -0
- package/esm/chunk-YFQOB5OC.js +204 -0
- package/esm/chunk-YHEIC6EK.js +102 -0
- package/esm/chunk-YS5PWRS7.js +288 -0
- package/esm/chunk-ZNNLYTW5.js +64 -0
- package/esm/chunk-ZQ25CQCG.js +153 -0
- package/esm/chunk-ZRORQ2WH.js +14 -0
- package/esm/index.d.ts +8 -0
- package/esm/index.js +325 -74
- package/esm/use-all-themes/index.js +8 -2
- package/esm/use-body-scroll/index.js +6 -2
- package/esm/use-body-scroll/use-body-scroll.d.ts +1 -1
- package/esm/use-classes/index.d.ts +1 -0
- package/esm/use-classes/index.js +8 -2
- package/esm/use-classes/use-classes.d.ts +1 -0
- package/esm/use-click-away/index.js +6 -2
- package/esm/use-clipboard/index.js +10 -2
- package/esm/use-current-state/index.js +6 -2
- package/esm/use-input/index.js +8 -2
- package/esm/use-keyboard/helper.d.ts +1 -1
- package/esm/use-keyboard/index.js +12 -4
- package/esm/use-media-query/index.js +10 -2
- package/esm/use-media-query/use-media-query.d.ts +2 -4
- package/esm/use-modal/index.js +8 -2
- package/esm/use-scale/index.js +23 -6
- package/esm/use-tabs/index.js +8 -2
- package/esm/use-theme/index.js +9 -2
- package/esm/use-toasts/helpers.d.ts +2 -4
- package/esm/use-toasts/index.js +8 -2
- package/esm/utils/collections.d.ts +1 -1
- package/esm/utils/log-warning.d.ts +2 -0
- package/esm/utils/prop-types.d.ts +8 -17
- package/esm/utils/types.d.ts +3 -1
- package/esm/utils/use-bolio-ui-context.d.ts +3 -3
- package/esm/utils/use-default-props.d.ts +2 -1
- package/esm/utils/use-drag.d.ts +1 -1
- package/esm/utils/use-latest.d.ts +3 -0
- package/esm/utils/use-previous.d.ts +1 -1
- package/esm/utils/variant-colors.d.ts +11 -0
- package/package.json +43 -52
- package/dist/utils/use-warning.d.ts +0 -2
- package/esm/Avatar/Avatar.js +0 -91
- package/esm/Avatar/AvatarGroup.js +0 -25
- package/esm/Avatar/AvatarSkeleton.js +0 -20
- package/esm/Avatar/helpers.js +0 -14
- package/esm/Badge/Badge.js +0 -54
- package/esm/Badge/BadgeAnchor.js +0 -64
- package/esm/BolioUIProvider/BolioUIProvider.js +0 -53
- package/esm/BolioUIProvider/ThemeProvider.js +0 -43
- package/esm/Breadcrumbs/Breadcrumbs.js +0 -42
- package/esm/Breadcrumbs/BreadcrumbsItem.js +0 -43
- package/esm/Breadcrumbs/BreadcrumbsSeparator.js +0 -21
- package/esm/Button/Button.js +0 -131
- package/esm/Button/ButtonDrip.js +0 -55
- package/esm/Button/ButtonIcon.js +0 -26
- package/esm/Button/ButtonLoading.js +0 -15
- package/esm/Button/styles.js +0 -232
- package/esm/Button/utils.js +0 -45
- package/esm/ButtonDropdown/ButtonDropdown.js +0 -107
- package/esm/ButtonDropdown/ButtonDropdownContext.js +0 -11
- package/esm/ButtonDropdown/ButtonDropdownItem.js +0 -45
- package/esm/ButtonDropdown/Icon.js +0 -28
- package/esm/ButtonDropdown/styles.js +0 -71
- package/esm/ButtonGroup/ButtonGroup.js +0 -80
- package/esm/ButtonGroup/ButtonGroupContext.js +0 -9
- package/esm/Calendar/Calendar.js +0 -243
- package/esm/Calendar/date-utils.js +0 -39
- package/esm/Capacity/Capacity.js +0 -47
- package/esm/Card/Card.js +0 -66
- package/esm/Card/CardContent.js +0 -24
- package/esm/Card/CardFooter.js +0 -31
- package/esm/Card/styles.js +0 -54
- package/esm/Checkbox/Checkbox.js +0 -102
- package/esm/Checkbox/CheckboxContext.js +0 -10
- package/esm/Checkbox/CheckboxGroup.js +0 -62
- package/esm/Checkbox/CheckboxIcon.js +0 -63
- package/esm/Checkbox/styles.js +0 -34
- package/esm/Code/Code.js +0 -54
- package/esm/Col/Col.js +0 -28
- package/esm/Collapse/Collapse.js +0 -92
- package/esm/Collapse/CollapseContext.js +0 -8
- package/esm/Collapse/CollapseGroup.js +0 -65
- package/esm/Collapse/CollapseIcon.js +0 -26
- package/esm/Combobox/Combobox.js +0 -199
- package/esm/Container/Container.js +0 -62
- package/esm/CssBaseline/CssBaseline.js +0 -12
- package/esm/DatePicker/DatePicker.js +0 -163
- package/esm/Description/Description.js +0 -36
- package/esm/Display/Display.js +0 -40
- package/esm/Divider/Divider.js +0 -60
- package/esm/Dot/Dot.js +0 -51
- package/esm/Drawer/Drawer.js +0 -69
- package/esm/Drawer/DrawerWrapper.js +0 -82
- package/esm/Drawer/helper.js +0 -27
- package/esm/Fieldset/Fieldset.js +0 -84
- package/esm/Fieldset/FieldsetContent.js +0 -25
- package/esm/Fieldset/FieldsetContext.js +0 -9
- package/esm/Fieldset/FieldsetFooter.js +0 -25
- package/esm/Fieldset/FieldsetGroup.js +0 -77
- package/esm/Fieldset/FieldsetSubtitle.js +0 -18
- package/esm/Fieldset/FieldsetTitle.js +0 -20
- package/esm/Grid/BasicItem.js +0 -95
- package/esm/Grid/Grid.js +0 -34
- package/esm/Grid/GridContainer.js +0 -43
- package/esm/Grid/GridTypes.js +0 -6
- package/esm/Image/Image.js +0 -83
- package/esm/Image/ImageBrowser.js +0 -80
- package/esm/Image/ImageBrowserHttpsIcon.js +0 -21
- package/esm/Image/ImageSkeleton.js +0 -20
- package/esm/Image/helpers.js +0 -14
- package/esm/Image/styles.js +0 -15
- package/esm/Input/Input.js +0 -165
- package/esm/Input/InputBlockLabel.js +0 -17
- package/esm/Input/InputIcon.js +0 -17
- package/esm/Input/InputIconClear.js +0 -43
- package/esm/Input/InputLabel.js +0 -16
- package/esm/Input/InputProps.js +0 -13
- package/esm/Input/Password.js +0 -57
- package/esm/Input/PasswordIcon.js +0 -28
- package/esm/Keyboard/Keyboard.js +0 -45
- package/esm/Link/Icon.js +0 -30
- package/esm/Link/Link.js +0 -47
- package/esm/Loading/Loading.js +0 -60
- package/esm/MdxWidgets/MockPage.js +0 -31
- package/esm/MdxWidgets/ParsedCodes/WaitTime.js +0 -11
- package/esm/MdxWidgets/ParsedCodes/index.js +0 -1
- package/esm/Modal/Modal.js +0 -109
- package/esm/Modal/ModalAction.js +0 -67
- package/esm/Modal/ModalActions.js +0 -34
- package/esm/Modal/ModalContent.js +0 -24
- package/esm/Modal/ModalContext.js +0 -6
- package/esm/Modal/ModalSubtitle.js +0 -30
- package/esm/Modal/ModalTitle.js +0 -30
- package/esm/Modal/ModalWrapper.js +0 -76
- package/esm/Next/StyledJsxRegistry.js +0 -26
- package/esm/Note/Note.js +0 -67
- package/esm/Page/Page.js +0 -80
- package/esm/Page/PageContent.js +0 -22
- package/esm/Page/PageFooter.js +0 -21
- package/esm/Page/PageHeader.js +0 -29
- package/esm/Pagination/Pagination.js +0 -99
- package/esm/Pagination/PaginationContext.js +0 -8
- package/esm/Pagination/PaginationEllipsis.js +0 -69
- package/esm/Pagination/PaginationItem.js +0 -44
- package/esm/Pagination/PaginationNext.js +0 -21
- package/esm/Pagination/PaginationPages.js +0 -84
- package/esm/Pagination/PaginationPrevious.js +0 -21
- package/esm/Popover/Popover.js +0 -96
- package/esm/Popover/PopoverContext.js +0 -9
- package/esm/Popover/PopoverItem.js +0 -55
- package/esm/Progress/Progress.js +0 -71
- package/esm/Radio/Radio.js +0 -108
- package/esm/Radio/RadioContext.js +0 -9
- package/esm/Radio/RadioDescription.js +0 -25
- package/esm/Radio/RadioGroup.js +0 -55
- package/esm/Radio/styles.js +0 -41
- package/esm/Rating/Rating.js +0 -104
- package/esm/Rating/RatingIcon.js +0 -18
- package/esm/Row/Row.js +0 -60
- package/esm/Section/Section.js +0 -28
- package/esm/Select/Select.js +0 -223
- package/esm/Select/SelectContext.js +0 -9
- package/esm/Select/SelectDropdown.js +0 -39
- package/esm/Select/SelectIcon.js +0 -21
- package/esm/Select/SelectIconClear.js +0 -37
- package/esm/Select/SelectInput.js +0 -37
- package/esm/Select/SelectMultipleValue.js +0 -21
- package/esm/Select/SelectOption.js +0 -88
- package/esm/Shared/backdrop.js +0 -70
- package/esm/Shared/css-transition.js +0 -66
- package/esm/Shared/dropdown.js +0 -97
- package/esm/Shared/ellipsis.js +0 -13
- package/esm/Shared/expand.js +0 -87
- package/esm/Shared/highlight.js +0 -44
- package/esm/Slider/Slider.js +0 -178
- package/esm/Slider/SliderDot.js +0 -32
- package/esm/Slider/SliderMark.js +0 -35
- package/esm/Slider/styles.js +0 -27
- package/esm/Snippet/Snippet.js +0 -94
- package/esm/Snippet/SnippetIcon.js +0 -25
- package/esm/Snippet/styles.js +0 -58
- package/esm/Spacer/Spacer.js +0 -26
- package/esm/Spinner/Spinner.js +0 -43
- package/esm/Table/Table.js +0 -112
- package/esm/Table/TableBody.js +0 -49
- package/esm/Table/TableCell.js +0 -25
- package/esm/Table/TableColumn.js +0 -35
- package/esm/Table/TableContext.js +0 -9
- package/esm/Table/TableHead.js +0 -55
- package/esm/Table/TableTypes.js +0 -1
- package/esm/Tabs/Tabs.js +0 -140
- package/esm/Tabs/TabsContext.js +0 -8
- package/esm/Tabs/TabsItem.js +0 -89
- package/esm/Tag/Tag.js +0 -79
- package/esm/Text/Child.js +0 -74
- package/esm/Text/Text.js +0 -91
- package/esm/Textarea/Textarea.js +0 -100
- package/esm/Themes/Presets/Dark.js +0 -67
- package/esm/Themes/Presets/Default.js +0 -67
- package/esm/Themes/Presets/Shared.js +0 -42
- package/esm/Themes/Presets/index.js +0 -1
- package/esm/Themes/Themes.js +0 -76
- package/esm/Toggle/Toggle.js +0 -80
- package/esm/Toggle/styles.js +0 -27
- package/esm/Tooltip/Tooltip.js +0 -136
- package/esm/Tooltip/TooltipContent.js +0 -77
- package/esm/Tooltip/TooltipIcon.js +0 -28
- package/esm/Tooltip/helper.js +0 -21
- package/esm/Tooltip/placement.js +0 -160
- package/esm/Tooltip/styles.js +0 -18
- package/esm/use-all-themes/all-themes-context.js +0 -9
- package/esm/use-body-scroll/use-body-scroll.js +0 -60
- package/esm/use-classes/use-classes.js +0 -32
- package/esm/use-click-away/use-click-away.js +0 -19
- package/esm/use-clipboard/use-clipboard.js +0 -39
- package/esm/use-current-state/use-current-state.js +0 -21
- package/esm/use-input/use-input.js +0 -29
- package/esm/use-keyboard/codes.js +0 -95
- package/esm/use-keyboard/helper.js +0 -26
- package/esm/use-keyboard/use-keyboard.js +0 -68
- package/esm/use-media-query/use-media-query.js +0 -79
- package/esm/use-modal/use-modal.js +0 -22
- package/esm/use-scale/scale-context.js +0 -35
- package/esm/use-scale/utils.js +0 -49
- package/esm/use-scale/with-scale.js +0 -105
- package/esm/use-tabs/use-tabs.js +0 -21
- package/esm/use-theme/theme-context.js +0 -7
- package/esm/use-toasts/helpers.js +0 -70
- package/esm/use-toasts/toast-container.js +0 -118
- package/esm/use-toasts/toast-item.js +0 -45
- package/esm/use-toasts/use-toast.js +0 -101
- package/esm/utils/calculations.js +0 -27
- package/esm/utils/collections.js +0 -126
- package/esm/utils/color.js +0 -35
- package/esm/utils/layouts.js +0 -71
- package/esm/utils/prop-types.js +0 -20
- package/esm/utils/types.js +0 -1
- package/esm/utils/use-body-scroll.js +0 -2
- package/esm/utils/use-bolio-ui-context.js +0 -27
- package/esm/utils/use-click-anywhere.js +0 -13
- package/esm/utils/use-click-away.js +0 -2
- package/esm/utils/use-clipboard.js +0 -2
- package/esm/utils/use-context-state/create-bolio-ui-context.js +0 -49
- package/esm/utils/use-context-state/use-context-state.js +0 -38
- package/esm/utils/use-current-state.js +0 -2
- package/esm/utils/use-default-props.js +0 -17
- package/esm/utils/use-dom-observer.js +0 -24
- package/esm/utils/use-drag.js +0 -64
- package/esm/utils/use-portal.js +0 -32
- package/esm/utils/use-previous.js +0 -9
- package/esm/utils/use-real-shape.js +0 -45
- package/esm/utils/use-resize.js +0 -17
- package/esm/utils/use-ssr.js +0 -17
- package/esm/utils/use-warning.d.ts +0 -2
- package/esm/utils/use-warning.js +0 -13
|
@@ -3,7 +3,7 @@ export declare const getId: () => string;
|
|
|
3
3
|
export declare const capitalize: (str: string | symbol | number | undefined | null) => string;
|
|
4
4
|
export declare const hasChild: (children: ReactNode | undefined, child: React.ElementType) => boolean;
|
|
5
5
|
export declare const pickChild: (children: ReactNode | undefined, targetChild: React.ElementType) => [ReactNode | undefined, ReactNode | undefined];
|
|
6
|
-
export declare const pickChildByProps: (children: ReactNode | undefined, key: string, value:
|
|
6
|
+
export declare const pickChildByProps: (children: ReactNode | undefined, key: string, value: unknown) => [ReactNode | undefined, ReactNode | undefined];
|
|
7
7
|
export declare const pickChildrenFirst: (children: ReactNode | undefined) => ReactNode | undefined;
|
|
8
8
|
export declare const setChildrenProps: (children: ReactNode | undefined, props: Record<string, unknown>, targetComponents?: Array<React.ElementType>) => ReactNode | undefined;
|
|
9
9
|
export declare const setChildrenIndex: (children: ReactNode | undefined, targetComponents?: Array<React.ElementType>) => ReactNode | undefined;
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
2
2
|
export declare const tupleNumber: <T extends number[]>(...args: T) => T;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type ButtonTypes = typeof buttonTypes[number];
|
|
12
|
-
export type NormalTypes = typeof normalTypes[number];
|
|
13
|
-
export type SnippetTypes = typeof snippetTypes[number];
|
|
14
|
-
export type CardTypes = typeof cardTypes[number];
|
|
15
|
-
export type CopyTypes = typeof copyTypes[number];
|
|
16
|
-
export type TriggerTypes = typeof triggerTypes[number];
|
|
17
|
-
export type Placement = typeof placement[number];
|
|
18
|
-
export type DividerAlign = typeof dividerAlign[number];
|
|
19
|
-
export {};
|
|
3
|
+
export type ButtonTypes = 'default' | 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error' | 'abort' | 'primary-light' | 'secondary-light' | 'info-light' | 'success-light' | 'warning-light' | 'error-light';
|
|
4
|
+
export type NormalTypes = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
5
|
+
export type SnippetTypes = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'dark' | 'lite';
|
|
6
|
+
export type CardTypes = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'dark' | 'lite' | 'info';
|
|
7
|
+
export type CopyTypes = 'default' | 'silent' | 'prevent';
|
|
8
|
+
export type TriggerTypes = 'hover' | 'click';
|
|
9
|
+
export type Placement = 'top' | 'topStart' | 'topEnd' | 'left' | 'leftStart' | 'leftEnd' | 'bottom' | 'bottomStart' | 'bottomEnd' | 'right' | 'rightStart' | 'rightEnd';
|
|
10
|
+
export type DividerAlign = 'start' | 'center' | 'end' | 'left' | 'right';
|
package/esm/utils/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ToastLayout, Toast } from '../use-toasts/use-toast';
|
|
3
3
|
export declare const defaultToastLayout: Required<ToastLayout>;
|
|
4
|
-
export type UpdateToastsFunction = (fn: (toasts: Array<Toast>) => Array<Toast>) =>
|
|
5
|
-
export type UpdateToastsLayoutFunction = (fn: (layout: Required<ToastLayout>) => Required<ToastLayout>) =>
|
|
6
|
-
export type UpdateToastsIDFunction = (fn: () => string | null) =>
|
|
4
|
+
export type UpdateToastsFunction = (fn: (toasts: Array<Toast>) => Array<Toast>) => void;
|
|
5
|
+
export type UpdateToastsLayoutFunction = (fn: (layout: Required<ToastLayout>) => Required<ToastLayout>) => void;
|
|
6
|
+
export type UpdateToastsIDFunction = (fn: () => string | null) => void;
|
|
7
7
|
export interface BolioUIContextParams {
|
|
8
8
|
toasts: Array<Toast>;
|
|
9
9
|
updateToasts: UpdateToastsFunction;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { AnyObject } from './types';
|
|
2
|
+
declare const useDefaultProps: <T extends AnyObject, D extends Partial<T>>(props: T, defaultProps: D) => T & Required<D>;
|
|
2
3
|
export default useDefaultProps;
|
package/esm/utils/use-drag.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export type DraggingEvent = {
|
|
|
4
4
|
currentX: number;
|
|
5
5
|
};
|
|
6
6
|
export type DraggingHandler = (event: DraggingEvent) => void;
|
|
7
|
-
declare const useDrag: (elementRef: RefObject<HTMLElement> | null, draggingHandler?: DraggingHandler, dragStartHandler?: DraggingHandler, dragEndHandler?: DraggingHandler) => void;
|
|
7
|
+
declare const useDrag: (elementRef: RefObject<HTMLElement | null> | null, draggingHandler?: DraggingHandler, dragStartHandler?: DraggingHandler, dragEndHandler?: DraggingHandler) => void;
|
|
8
8
|
export default useDrag;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const usePrevious: <T>(state: T) => T |
|
|
1
|
+
declare const usePrevious: <T>(state: T) => T | undefined | null;
|
|
2
2
|
export default usePrevious;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BolioUIThemesPalette } from '../Themes/Presets';
|
|
2
|
+
export type SurfaceVariant = 'filled' | 'light' | 'outline' | 'subtle';
|
|
3
|
+
export declare const SEMANTIC_COLOR_TYPES: readonly ["primary", "secondary", "success", "warning", "error", "info"];
|
|
4
|
+
export type SemanticColorType = (typeof SEMANTIC_COLOR_TYPES)[number];
|
|
5
|
+
export declare const isSemanticColorType: (type?: string) => type is SemanticColorType;
|
|
6
|
+
export interface VariantColors {
|
|
7
|
+
bg: string;
|
|
8
|
+
border: string;
|
|
9
|
+
color: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getVariantColors: (palette: BolioUIThemesPalette, type: SemanticColorType, variant: SurfaceVariant) => VariantColors;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolio-ui/core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
4
|
"description": "Amazing, modern and creative tools for React UI. 🥷🏼",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bolio",
|
|
@@ -62,107 +62,98 @@
|
|
|
62
62
|
"dev": "next dev",
|
|
63
63
|
"build": "next build",
|
|
64
64
|
"start": "next start",
|
|
65
|
-
"lint": "eslint src --max-warnings=0",
|
|
66
|
-
"prepare": "husky install",
|
|
65
|
+
"lint": "eslint src core --max-warnings=0",
|
|
67
66
|
"typecheck": "tsc --project tsconfig.json --noEmit",
|
|
68
67
|
"test": "jest",
|
|
68
|
+
"test:react18": "[ -d compat/.work/react18/node_modules ] || npm install --prefix compat/.work/react18 --no-audit --no-fund; jest --config jest.react18.config.js",
|
|
69
69
|
"test:coverage": "jest --coverage",
|
|
70
70
|
"test:watch": "yarn test --watch",
|
|
71
71
|
"generate": "yarn plop --plopfile generators/plopfile.js",
|
|
72
|
-
"storybook": "
|
|
73
|
-
"build-storybook": "
|
|
74
|
-
"build:storybook": "
|
|
72
|
+
"storybook": "storybook dev -p 6006",
|
|
73
|
+
"build-storybook": "storybook build",
|
|
74
|
+
"build:storybook": "storybook build",
|
|
75
75
|
"build:clear": "rm -rf ./dist ./esm",
|
|
76
|
-
"build:
|
|
77
|
-
"build:babel": "babel --no-babelrc --config-file ./scripts/babel.config.js --extensions \".js,.ts,.tsx\" ./core --out-dir ./esm --ignore \"**/__tests__/**/*,**/*.d.ts,**/stories.tsx\"",
|
|
76
|
+
"build:js": "tsup --config scripts/tsup.config.ts",
|
|
78
77
|
"build:after": "node scripts/add-use-client.js",
|
|
79
78
|
"build:webpack": "webpack --config scripts/webpack.config.js",
|
|
80
79
|
"build:types": "tsc -p ./scripts && tsc -p ./scripts --outDir ./esm",
|
|
81
|
-
"build:package": "yarn build:clear && yarn build:
|
|
80
|
+
"build:package": "yarn build:clear && yarn build:js && yarn build:types && yarn build:after",
|
|
82
81
|
"clear-all": "rm -rf .next _static node_modules",
|
|
83
82
|
"re-start": "rm -rf .next _static node_modules && yarn install && yarn dev",
|
|
84
83
|
"re-build": "rm -rf .next _static node_modules && yarn install && yarn build",
|
|
85
84
|
"release": "yarn build && yarn build:package && yarn publish --access public --non-interactive",
|
|
86
85
|
"release:next": "yarn build:package && yarn publish --access public --tag next --non-interactive"
|
|
87
86
|
},
|
|
88
|
-
"lint-staged": {
|
|
89
|
-
"src/**/*.{js,jsx,ts,tsx}": [
|
|
90
|
-
"yarn lint --fix",
|
|
91
|
-
"yarn test --findRelatedTests --bail"
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
87
|
"dependencies": {
|
|
95
|
-
"@babel/runtime": "^7.14.8",
|
|
96
88
|
"styled-jsx": "^5.0.7"
|
|
97
89
|
},
|
|
98
90
|
"devDependencies": {
|
|
99
|
-
"@babel/cli": "^7.14.5",
|
|
100
91
|
"@babel/core": "^7.26.0",
|
|
101
|
-
"@babel/plugin-
|
|
92
|
+
"@babel/plugin-syntax-typescript": "^7",
|
|
102
93
|
"@babel/preset-env": "^7.14.7",
|
|
103
94
|
"@babel/preset-react": "^7.14.5",
|
|
104
95
|
"@babel/preset-typescript": "^7.14.5",
|
|
105
96
|
"@bolio-ui/icons": "^1.0.4",
|
|
97
|
+
"@eslint/js": "^9",
|
|
106
98
|
"@mapbox/rehype-prism": "^0.9.0",
|
|
107
99
|
"@mdx-js/loader": "^3.1.1",
|
|
108
100
|
"@mdx-js/react": "^3.1.1",
|
|
109
|
-
"@next/mdx": "^
|
|
110
|
-
"@
|
|
111
|
-
"@
|
|
112
|
-
"@storybook/
|
|
113
|
-
"@storybook/react": "^6.5.12",
|
|
101
|
+
"@next/mdx": "^16",
|
|
102
|
+
"@serwist/turbopack": "^9",
|
|
103
|
+
"@storybook/addon-docs": "^10.6",
|
|
104
|
+
"@storybook/react-vite": "^10.6",
|
|
114
105
|
"@testing-library/dom": "^10",
|
|
115
|
-
"@testing-library/jest-dom": "^
|
|
106
|
+
"@testing-library/jest-dom": "^6",
|
|
116
107
|
"@testing-library/react": "^16",
|
|
117
|
-
"@types/jest": "^
|
|
118
|
-
"@types/react": "^
|
|
119
|
-
"@types/react-
|
|
120
|
-
"@types/react-dom": "^18.3.0",
|
|
108
|
+
"@types/jest": "^30",
|
|
109
|
+
"@types/react": "^19",
|
|
110
|
+
"@types/react-dom": "^19",
|
|
121
111
|
"@types/react-syntax-highlighter": "^15.5.4",
|
|
122
112
|
"@types/styled-components": "^5.1.11",
|
|
123
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
124
|
-
"@typescript-eslint/parser": "^
|
|
113
|
+
"@typescript-eslint/eslint-plugin": "^8",
|
|
114
|
+
"@typescript-eslint/parser": "^8",
|
|
115
|
+
"@vitejs/plugin-react": "^5",
|
|
125
116
|
"axe-core": "^4.3.2",
|
|
126
117
|
"babel-loader": "^8.2.2",
|
|
127
118
|
"babel-plugin-styled-components": "^1.13.2",
|
|
128
119
|
"classnames": "^2.3.1",
|
|
129
|
-
"
|
|
130
|
-
"eslint
|
|
131
|
-
"eslint-config-prettier": "^
|
|
132
|
-
"eslint-plugin-prettier": "^
|
|
133
|
-
"eslint-plugin-react": "^7.
|
|
134
|
-
"eslint-plugin-react-hooks": "^
|
|
135
|
-
"
|
|
120
|
+
"esbuild": "^0.27",
|
|
121
|
+
"eslint": "^9",
|
|
122
|
+
"eslint-config-prettier": "^10",
|
|
123
|
+
"eslint-plugin-prettier": "^5",
|
|
124
|
+
"eslint-plugin-react": "^7.37",
|
|
125
|
+
"eslint-plugin-react-hooks": "^5",
|
|
126
|
+
"globals": "^17.12.0",
|
|
136
127
|
"gray-matter": "^4.0.3",
|
|
137
|
-
"
|
|
138
|
-
"jest": "^
|
|
128
|
+
"jest": "^30",
|
|
129
|
+
"jest-environment-jsdom": "^30",
|
|
139
130
|
"jest-styled-components": "^7.0.5",
|
|
140
131
|
"kbar": "0.1.0-beta.6",
|
|
141
|
-
"
|
|
142
|
-
"next": "^15.5.0",
|
|
143
|
-
"next-pwa": "^5.6.0",
|
|
144
|
-
"next-seo": "^5.5.0",
|
|
132
|
+
"next": "^16",
|
|
145
133
|
"plop": "^2.7.4",
|
|
146
|
-
"prettier": "
|
|
134
|
+
"prettier": "^3",
|
|
147
135
|
"prism-react-renderer": "^1.2.1",
|
|
148
|
-
"react": "^
|
|
149
|
-
"react-autosuggest": "^10.1.0",
|
|
136
|
+
"react": "^19",
|
|
150
137
|
"react-device-detect": "^1.17.0",
|
|
151
|
-
"react-dom": "^
|
|
138
|
+
"react-dom": "^19",
|
|
152
139
|
"react-live": "^2.2.3",
|
|
153
140
|
"react-syntax-highlighter": "^15.5.0",
|
|
154
141
|
"rehype-join-line": "^1.0.2",
|
|
155
142
|
"remark-autolink-headings": "^6.0.1",
|
|
156
143
|
"remark-gfm": "^4.0.1",
|
|
157
144
|
"remark-slug": "^6.0.0",
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"rollup-plugin-local-resolve": "^1.0.7",
|
|
145
|
+
"serwist": "^9",
|
|
146
|
+
"storybook": "^10.6",
|
|
161
147
|
"styled-components": "^5.3.0",
|
|
162
|
-
"
|
|
148
|
+
"tsup": "^8",
|
|
149
|
+
"typescript": "~5.9.3",
|
|
150
|
+
"vite": "^8"
|
|
163
151
|
},
|
|
164
152
|
"resolutions": {
|
|
165
|
-
"@types/react": "^
|
|
153
|
+
"@types/react": "^19",
|
|
154
|
+
"@types/react-dom": "^19",
|
|
155
|
+
"react": "^19",
|
|
156
|
+
"react-dom": "^19"
|
|
166
157
|
},
|
|
167
158
|
"peerDependencies": {
|
|
168
159
|
"react": "^18.2.0 || ^19.0.0",
|
package/esm/Avatar/Avatar.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["src", "stacked", "text", "isSquare", "className"];
|
|
5
|
-
import _JSXStyle from "styled-jsx/style";
|
|
6
|
-
import React, { useEffect, useRef, useState } from 'react';
|
|
7
|
-
import AvatarSkeleton from './AvatarSkeleton';
|
|
8
|
-
import useTheme from '../use-theme';
|
|
9
|
-
import useScale, { withScale } from '../use-scale';
|
|
10
|
-
import useClasses from '../use-classes';
|
|
11
|
-
var safeText = function safeText(text) {
|
|
12
|
-
if (text.length <= 4) return text;
|
|
13
|
-
return text.slice(0, 3);
|
|
14
|
-
};
|
|
15
|
-
var AvatarComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16
|
-
var src = _ref.src,
|
|
17
|
-
_ref$stacked = _ref.stacked,
|
|
18
|
-
stacked = _ref$stacked === void 0 ? false : _ref$stacked,
|
|
19
|
-
_ref$text = _ref.text,
|
|
20
|
-
text = _ref$text === void 0 ? '' : _ref$text,
|
|
21
|
-
_ref$isSquare = _ref.isSquare,
|
|
22
|
-
isSquare = _ref$isSquare === void 0 ? false : _ref$isSquare,
|
|
23
|
-
_ref$className = _ref.className,
|
|
24
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
25
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
|
-
var theme = useTheme();
|
|
27
|
-
var _useScale = useScale(),
|
|
28
|
-
SCALES = _useScale.SCALES,
|
|
29
|
-
getScaleProps = _useScale.getScaleProps;
|
|
30
|
-
var showText = !src;
|
|
31
|
-
var radius = isSquare ? theme.layout.radius : '50%';
|
|
32
|
-
var marginLeft = stacked ? SCALES.ml(-0.625) : SCALES.ml(0);
|
|
33
|
-
var classes = useClasses('avatar', className);
|
|
34
|
-
var width = getScaleProps(['width', 'w']);
|
|
35
|
-
var height = getScaleProps(['height', 'h']);
|
|
36
|
-
var showAnimation = width && height;
|
|
37
|
-
var _useState = useState(true),
|
|
38
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
39
|
-
loading = _useState2[0],
|
|
40
|
-
setLoading = _useState2[1];
|
|
41
|
-
var _useState3 = useState(true),
|
|
42
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
43
|
-
showSkeleton = _useState4[0],
|
|
44
|
-
setShowSkeleton = _useState4[1];
|
|
45
|
-
var imageRef = useRef(null);
|
|
46
|
-
var imageLoaded = function imageLoaded() {
|
|
47
|
-
if (!showAnimation) return;
|
|
48
|
-
setLoading(false);
|
|
49
|
-
};
|
|
50
|
-
useEffect(function () {
|
|
51
|
-
if (!showAnimation) return;
|
|
52
|
-
if (!imageRef.current) return;
|
|
53
|
-
if (imageRef.current.complete) {
|
|
54
|
-
setLoading(false);
|
|
55
|
-
setShowSkeleton(false);
|
|
56
|
-
}
|
|
57
|
-
}, [showAnimation]);
|
|
58
|
-
useEffect(function () {
|
|
59
|
-
var timer = setTimeout(function () {
|
|
60
|
-
if (showAnimation) {
|
|
61
|
-
setShowSkeleton(false);
|
|
62
|
-
}
|
|
63
|
-
clearTimeout(timer);
|
|
64
|
-
}, 3000);
|
|
65
|
-
return function () {
|
|
66
|
-
return clearTimeout(timer);
|
|
67
|
-
};
|
|
68
|
-
}, [loading, showAnimation]);
|
|
69
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
70
|
-
ref: ref,
|
|
71
|
-
className: _JSXStyle.dynamic([["2602621947", [radius, theme.palette.accents_2, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]]]) + " " + (classes || "")
|
|
72
|
-
}, !showText && /*#__PURE__*/React.createElement(React.Fragment, null, showSkeleton && showAnimation && /*#__PURE__*/React.createElement(AvatarSkeleton, {
|
|
73
|
-
opacity: loading ? 1 : 0
|
|
74
|
-
}), /*#__PURE__*/React.createElement("img", _extends({
|
|
75
|
-
alt: "Avatar",
|
|
76
|
-
src: src,
|
|
77
|
-
ref: imageRef,
|
|
78
|
-
onLoad: imageLoaded,
|
|
79
|
-
draggable: false
|
|
80
|
-
}, props, {
|
|
81
|
-
className: _JSXStyle.dynamic([["2602621947", [radius, theme.palette.accents_2, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]]]) + " " + (props && props.className != null && props.className || "avatar-img")
|
|
82
|
-
}))), showText && /*#__PURE__*/React.createElement("span", _extends({}, props, {
|
|
83
|
-
className: _JSXStyle.dynamic([["2602621947", [radius, theme.palette.accents_2, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]]]) + " " + (props && props.className != null && props.className || "avatar-text")
|
|
84
|
-
}), safeText(text)), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
85
|
-
id: "2602621947",
|
|
86
|
-
dynamic: [radius, theme.palette.accents_2, SCALES.width(1.75) || SCALES.height(1.75), SCALES.height(1.75) || SCALES.width(1.75), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), marginLeft, radius, SCALES.font(1)]
|
|
87
|
-
}, ".avatar.__jsx-style-dynamic-selector{display:inline-block;position:relative;overflow:hidden;border-radius:".concat(radius, ";vertical-align:top;background-color:").concat(theme.palette.accents_2, ";box-sizing:border-box;width:").concat(SCALES.width(1.75) || SCALES.height(1.75), ";height:").concat(SCALES.height(1.75) || SCALES.width(1.75), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(marginLeft, ";}.avatar-img.__jsx-style-dynamic-selector{display:inline-block;object-fit:cover;width:100%;height:100%;border-radius:").concat(radius, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:center;}.avatar-text.__jsx-style-dynamic-selector{position:absolute;left:50%;top:50%;font-size:").concat(SCALES.font(1), ";font-weight:bold;text-align:center;-webkit-transform:translate(-50%,-50%) scale(0.65);-ms-transform:translate(-50%,-50%) scale(0.65);transform:translate(-50%,-50%) scale(0.65);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-transform:none;}")));
|
|
88
|
-
});
|
|
89
|
-
AvatarComponent.displayName = 'BolioUIAvatar';
|
|
90
|
-
var Avatar = withScale(AvatarComponent);
|
|
91
|
-
export default Avatar;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import _JSXStyle from "styled-jsx/style";
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import useTheme from '../use-theme';
|
|
4
|
-
import useScale, { withScale } from '../use-scale';
|
|
5
|
-
import useClasses from '../use-classes';
|
|
6
|
-
function AvatarGroupComponent(_ref) {
|
|
7
|
-
var count = _ref.count,
|
|
8
|
-
_ref$className = _ref.className,
|
|
9
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
10
|
-
children = _ref.children;
|
|
11
|
-
var theme = useTheme();
|
|
12
|
-
var _useScale = useScale(),
|
|
13
|
-
SCALES = _useScale.SCALES;
|
|
14
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
-
className: _JSXStyle.dynamic([["441769479", [SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.ml(0.625), SCALES.font(0.875), theme.palette.accents_7]]]) + " " + (useClasses('avatar-group', className) || "")
|
|
16
|
-
}, children, count && /*#__PURE__*/React.createElement("span", {
|
|
17
|
-
className: _JSXStyle.dynamic([["441769479", [SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.ml(0.625), SCALES.font(0.875), theme.palette.accents_7]]]) + " " + "count"
|
|
18
|
-
}, "+", count), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
19
|
-
id: "441769479",
|
|
20
|
-
dynamic: [SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.ml(0.625), SCALES.font(0.875), theme.palette.accents_7]
|
|
21
|
-
}, ".avatar-group.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:".concat(SCALES.width(1, 'max-content'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.avatar-group.__jsx-style-dynamic-selector .avatar{margin-left:-").concat(SCALES.ml(0.625), ";}.count.__jsx-style-dynamic-selector{font-size:").concat(SCALES.font(0.875), ";display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:5.5px;color:").concat(theme.palette.accents_7, ";}")));
|
|
22
|
-
}
|
|
23
|
-
AvatarGroupComponent.displayName = 'BolioUIAvatarGroup';
|
|
24
|
-
var AvatarGroup = withScale(AvatarGroupComponent);
|
|
25
|
-
export default AvatarGroup;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["opacity"];
|
|
4
|
-
import _JSXStyle from "styled-jsx/style";
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import useTheme from '../use-theme';
|
|
7
|
-
var AvatarSkeleton = /*#__PURE__*/React.memo(function (_ref) {
|
|
8
|
-
var _ref$opacity = _ref.opacity,
|
|
9
|
-
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
10
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
11
|
-
var theme = useTheme();
|
|
12
|
-
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
13
|
-
className: _JSXStyle.dynamic([["2946022605", [theme.palette.accents_1, theme.palette.accents_2, theme.palette.accents_2, theme.palette.accents_1, opacity]]]) + " " + (props && props.className != null && props.className || "skeleton")
|
|
14
|
-
}), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
15
|
-
id: "2946022605",
|
|
16
|
-
dynamic: [theme.palette.accents_1, theme.palette.accents_2, theme.palette.accents_2, theme.palette.accents_1, opacity]
|
|
17
|
-
}, ".skeleton.__jsx-style-dynamic-selector{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background-image:linear-gradient( 270deg, ".concat(theme.palette.accents_1, ", ").concat(theme.palette.accents_2, ", ").concat(theme.palette.accents_2, ", ").concat(theme.palette.accents_1, " );background-size:400% 100%;-webkit-animation:loading-__jsx-style-dynamic-selector 3s ease-in-out infinite;animation:loading-__jsx-style-dynamic-selector 3s ease-in-out infinite;opacity:").concat(opacity, ";-webkit-transition:opacity 300ms ease-out;transition:opacity 300ms ease-out;}@-webkit-keyframes loading-__jsx-style-dynamic-selector{0%{background-position:200% 0;}to{background-position:-200% 0;}}@keyframes loading-__jsx-style-dynamic-selector{0%{background-position:200% 0;}to{background-position:-200% 0;}}")));
|
|
18
|
-
});
|
|
19
|
-
AvatarSkeleton.displayName = 'BolioUIAvatarSkeleton';
|
|
20
|
-
export default AvatarSkeleton;
|
package/esm/Avatar/helpers.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export var transformDataSource = function transformDataSource(src) {
|
|
2
|
-
var left = "".concat(src).slice(0, 4);
|
|
3
|
-
if (encodeURIComponent(left) === '%3Csvg') {
|
|
4
|
-
return "data:image/svg+xml;utf8,".concat(src);
|
|
5
|
-
}
|
|
6
|
-
return src;
|
|
7
|
-
};
|
|
8
|
-
export var getHostFromUrl = function getHostFromUrl(url) {
|
|
9
|
-
try {
|
|
10
|
-
return new URL(url).host;
|
|
11
|
-
} catch (e) {
|
|
12
|
-
return url;
|
|
13
|
-
}
|
|
14
|
-
};
|
package/esm/Badge/Badge.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
-
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["type", "className", "children", "dot"];
|
|
4
|
-
import _JSXStyle from "styled-jsx/style";
|
|
5
|
-
import React, { useMemo } from 'react';
|
|
6
|
-
import useTheme from '../use-theme';
|
|
7
|
-
import useScale, { withScale } from '../use-scale';
|
|
8
|
-
import useClasses from '../use-classes';
|
|
9
|
-
var getBgColor = function getBgColor(type, palette) {
|
|
10
|
-
var colors = {
|
|
11
|
-
"default": palette.accents_2,
|
|
12
|
-
secondary: palette.secondary,
|
|
13
|
-
primary: palette.primary,
|
|
14
|
-
success: palette.success,
|
|
15
|
-
warning: palette.warning,
|
|
16
|
-
error: palette.error,
|
|
17
|
-
info: palette.info
|
|
18
|
-
};
|
|
19
|
-
return colors[type];
|
|
20
|
-
};
|
|
21
|
-
var BadgeComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22
|
-
var _ref$type = _ref.type,
|
|
23
|
-
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
24
|
-
_ref$className = _ref.className,
|
|
25
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
26
|
-
children = _ref.children,
|
|
27
|
-
_ref$dot = _ref.dot,
|
|
28
|
-
dot = _ref$dot === void 0 ? false : _ref$dot,
|
|
29
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
30
|
-
var theme = useTheme();
|
|
31
|
-
var _useScale = useScale(),
|
|
32
|
-
SCALES = _useScale.SCALES;
|
|
33
|
-
var bg = useMemo(function () {
|
|
34
|
-
return getBgColor(type, theme.palette);
|
|
35
|
-
}, [type, theme.palette]);
|
|
36
|
-
var color = useMemo(function () {
|
|
37
|
-
if (!type || type === 'default') return theme.palette.foreground;
|
|
38
|
-
return '#FFFFFF';
|
|
39
|
-
}, [type, theme.palette.foreground]);
|
|
40
|
-
var classes = useClasses('badge', {
|
|
41
|
-
dot: dot
|
|
42
|
-
}, className);
|
|
43
|
-
return /*#__PURE__*/React.createElement("span", _extends({
|
|
44
|
-
ref: ref
|
|
45
|
-
}, props, {
|
|
46
|
-
className: _JSXStyle.dynamic([["795724549", [bg, color, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.5), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.py(0.25), SCALES.px(0.25)]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
47
|
-
}), !dot && children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
48
|
-
id: "795724549",
|
|
49
|
-
dynamic: [bg, color, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.5), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.py(0.25), SCALES.px(0.25)]
|
|
50
|
-
}, ".badge.__jsx-style-dynamic-selector{display:inline-block;border-radius:16px;font-variant:tabular-nums;line-height:1;vertical-align:middle;background-color:".concat(bg, ";color:").concat(color, ";border:0;font-size:").concat(SCALES.font(0.875), ";font-weight:bold;text-transform:none;width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0.5), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.dot.__jsx-style-dynamic-selector{padding:").concat(SCALES.py(0.25), " ").concat(SCALES.px(0.25), ";border-radius:50%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}")));
|
|
51
|
-
});
|
|
52
|
-
BadgeComponent.displayName = 'BolioUIBadge';
|
|
53
|
-
var Badge = withScale(BadgeComponent);
|
|
54
|
-
export default Badge;
|
package/esm/Badge/BadgeAnchor.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import _JSXStyle from "styled-jsx/style";
|
|
3
|
-
import React, { useMemo } from 'react';
|
|
4
|
-
import { pickChild } from '../utils/collections';
|
|
5
|
-
import { tuple } from '../utils/prop-types';
|
|
6
|
-
import Badge from './Badge';
|
|
7
|
-
var placement = tuple('topLeft', 'topRight', 'bottomLeft', 'bottomRight');
|
|
8
|
-
var getTransform = function getTransform(placement) {
|
|
9
|
-
var styles = {
|
|
10
|
-
topLeft: {
|
|
11
|
-
top: '0',
|
|
12
|
-
left: '0',
|
|
13
|
-
value: 'translate(-50%, -50%)',
|
|
14
|
-
origin: '0% 0%'
|
|
15
|
-
},
|
|
16
|
-
topRight: {
|
|
17
|
-
top: '0',
|
|
18
|
-
right: '0',
|
|
19
|
-
value: 'translate(50%, -50%)',
|
|
20
|
-
origin: '100% 0%'
|
|
21
|
-
},
|
|
22
|
-
bottomLeft: {
|
|
23
|
-
left: '0',
|
|
24
|
-
bottom: '0',
|
|
25
|
-
value: 'translate(-50%, 50%)',
|
|
26
|
-
origin: '0% 100%'
|
|
27
|
-
},
|
|
28
|
-
bottomRight: {
|
|
29
|
-
right: '0',
|
|
30
|
-
bottom: '0',
|
|
31
|
-
value: 'translate(50%, 50%)',
|
|
32
|
-
origin: '100% 100%'
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
return styles[placement];
|
|
36
|
-
};
|
|
37
|
-
function BadgeAnchor(_ref) {
|
|
38
|
-
var children = _ref.children,
|
|
39
|
-
_ref$placement = _ref.placement,
|
|
40
|
-
placement = _ref$placement === void 0 ? 'topRight' : _ref$placement;
|
|
41
|
-
var _pickChild = pickChild(children, Badge),
|
|
42
|
-
_pickChild2 = _slicedToArray(_pickChild, 2),
|
|
43
|
-
withoutBadgeChildren = _pickChild2[0],
|
|
44
|
-
badgeChldren = _pickChild2[1];
|
|
45
|
-
var _useMemo = useMemo(function () {
|
|
46
|
-
return getTransform(placement);
|
|
47
|
-
}, [placement]),
|
|
48
|
-
top = _useMemo.top,
|
|
49
|
-
bottom = _useMemo.bottom,
|
|
50
|
-
left = _useMemo.left,
|
|
51
|
-
right = _useMemo.right,
|
|
52
|
-
value = _useMemo.value,
|
|
53
|
-
origin = _useMemo.origin;
|
|
54
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
55
|
-
className: _JSXStyle.dynamic([["1121745930", [top || 'auto', left || 'auto', right || 'auto', bottom || 'auto', value, origin]]]) + " " + "anchor"
|
|
56
|
-
}, withoutBadgeChildren, /*#__PURE__*/React.createElement("sup", {
|
|
57
|
-
className: _JSXStyle.dynamic([["1121745930", [top || 'auto', left || 'auto', right || 'auto', bottom || 'auto', value, origin]]])
|
|
58
|
-
}, badgeChldren), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
59
|
-
id: "1121745930",
|
|
60
|
-
dynamic: [top || 'auto', left || 'auto', right || 'auto', bottom || 'auto', value, origin]
|
|
61
|
-
}, ".anchor.__jsx-style-dynamic-selector{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;box-sizing:border-box;}sup.__jsx-style-dynamic-selector{position:absolute;top:".concat(top || 'auto', ";left:").concat(left || 'auto', ";right:").concat(right || 'auto', ";bottom:").concat(bottom || 'auto', ";-webkit-transform:").concat(value, ";-ms-transform:").concat(value, ";transform:").concat(value, ";-webkit-transform-origin:").concat(origin, ";-ms-transform-origin:").concat(origin, ";transform-origin:").concat(origin, ";z-index:1;}")));
|
|
62
|
-
}
|
|
63
|
-
BadgeAnchor.displayName = 'BolioUIBadgeAnchor';
|
|
64
|
-
export default BadgeAnchor;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import React, { useMemo, useState } from 'react';
|
|
3
|
-
import { BolioUIContent, defaultToastLayout } from '../utils/use-bolio-ui-context';
|
|
4
|
-
import ThemeProvider from './ThemeProvider';
|
|
5
|
-
import useCurrentState from '../utils/use-current-state';
|
|
6
|
-
import ToastContainer from '../use-toasts/toast-container';
|
|
7
|
-
var BolioUIProvider = function BolioUIProvider(_ref) {
|
|
8
|
-
var themes = _ref.themes,
|
|
9
|
-
themeType = _ref.themeType,
|
|
10
|
-
children = _ref.children;
|
|
11
|
-
var _useState = useState(null),
|
|
12
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
-
lastUpdateToastId = _useState2[0],
|
|
14
|
-
setLastUpdateToastId = _useState2[1];
|
|
15
|
-
var _useCurrentState = useCurrentState([]),
|
|
16
|
-
_useCurrentState2 = _slicedToArray(_useCurrentState, 3),
|
|
17
|
-
toasts = _useCurrentState2[0],
|
|
18
|
-
setToasts = _useCurrentState2[1],
|
|
19
|
-
toastsRef = _useCurrentState2[2];
|
|
20
|
-
var _useCurrentState3 = useCurrentState(defaultToastLayout),
|
|
21
|
-
_useCurrentState4 = _slicedToArray(_useCurrentState3, 3),
|
|
22
|
-
toastLayout = _useCurrentState4[0],
|
|
23
|
-
setToastLayout = _useCurrentState4[1],
|
|
24
|
-
toastLayoutRef = _useCurrentState4[2];
|
|
25
|
-
var updateToasts = function updateToasts(fn) {
|
|
26
|
-
var nextToasts = fn(toastsRef.current);
|
|
27
|
-
setToasts(nextToasts);
|
|
28
|
-
};
|
|
29
|
-
var updateToastLayout = function updateToastLayout(fn) {
|
|
30
|
-
var nextLayout = fn(toastLayoutRef.current);
|
|
31
|
-
setToastLayout(nextLayout);
|
|
32
|
-
};
|
|
33
|
-
var updateLastToastId = function updateLastToastId(fn) {
|
|
34
|
-
setLastUpdateToastId(fn());
|
|
35
|
-
};
|
|
36
|
-
var initialValue = useMemo(function () {
|
|
37
|
-
return {
|
|
38
|
-
toasts: toasts,
|
|
39
|
-
toastLayout: toastLayout,
|
|
40
|
-
updateToasts: updateToasts,
|
|
41
|
-
lastUpdateToastId: lastUpdateToastId,
|
|
42
|
-
updateToastLayout: updateToastLayout,
|
|
43
|
-
updateLastToastId: updateLastToastId
|
|
44
|
-
};
|
|
45
|
-
}, [toasts, toastLayout, lastUpdateToastId]);
|
|
46
|
-
return /*#__PURE__*/React.createElement(BolioUIContent.Provider, {
|
|
47
|
-
value: initialValue
|
|
48
|
-
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
49
|
-
themes: themes,
|
|
50
|
-
themeType: themeType
|
|
51
|
-
}, children, /*#__PURE__*/React.createElement(ToastContainer, null)));
|
|
52
|
-
};
|
|
53
|
-
export default BolioUIProvider;
|