@bolio-ui/core 2.0.0-alpha.2 → 3.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/index.js +7 -7
- package/dist/Badge/Badge.d.ts +1 -0
- package/dist/Badge/index.js +7 -7
- package/dist/BolioUIProvider/index.js +10 -10
- package/dist/Breadcrumbs/index.js +8 -8
- package/dist/Button/Button.d.ts +1 -0
- package/dist/Button/ButtonIcon.d.ts +1 -3
- package/dist/Button/index.js +8 -8
- package/dist/Button/utils.d.ts +1 -1
- package/dist/ButtonDropdown/ButtonDropdown.d.ts +2 -0
- package/dist/ButtonDropdown/ButtonDropdownContext.d.ts +3 -0
- package/dist/ButtonDropdown/ButtonDropdownItem.d.ts +2 -1
- package/dist/ButtonDropdown/index.d.ts +1 -0
- package/dist/ButtonDropdown/index.js +8 -8
- package/dist/ButtonGroup/index.js +7 -7
- package/dist/Calendar/Calendar.d.ts +29 -6
- package/dist/Calendar/date-utils.d.ts +1 -0
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +7 -7
- package/dist/Capacity/index.js +7 -7
- package/dist/Card/Card.d.ts +3 -0
- package/dist/Card/index.js +9 -9
- package/dist/Checkbox/index.js +7 -7
- package/dist/Code/index.js +8 -7
- package/dist/Col/index.js +2 -2
- package/dist/Collapse/index.js +7 -7
- package/dist/Combobox/Combobox.d.ts +7 -0
- package/dist/Combobox/index.js +9 -7
- package/dist/Command/Command.d.ts +19 -0
- package/dist/Command/index.d.ts +3 -0
- package/dist/Command/index.js +33 -0
- package/dist/Container/index.js +6 -6
- package/dist/CssBaseline/index.js +6 -6
- package/dist/DatePicker/DatePicker.d.ts +7 -0
- package/dist/DatePicker/index.js +10 -8
- package/dist/Description/index.js +7 -7
- package/dist/Display/index.js +7 -7
- package/dist/Divider/index.js +7 -7
- package/dist/Dot/index.js +7 -7
- package/dist/Drawer/index.js +9 -9
- package/dist/EmptyState/EmptyState.d.ts +12 -0
- package/dist/EmptyState/index.d.ts +3 -0
- package/dist/EmptyState/index.js +14 -0
- package/dist/Fieldset/index.js +7 -7
- package/dist/Grid/Grid.d.ts +2 -2
- package/dist/Grid/GridContainer.d.ts +2 -2
- package/dist/Grid/index.js +7 -7
- package/dist/Image/index.js +8 -8
- package/dist/Input/InputIconClear.d.ts +2 -1
- package/dist/Input/InputProps.d.ts +9 -0
- package/dist/Input/index.js +11 -10
- package/dist/Input/styles.d.ts +10 -1
- package/dist/Keyboard/index.js +7 -7
- package/dist/Link/index.js +7 -7
- package/dist/Loading/index.js +7 -7
- package/dist/Marquee/Marquee.d.ts +14 -0
- package/dist/Marquee/index.d.ts +3 -0
- package/dist/Marquee/index.js +14 -0
- package/dist/MdxWidgets/index.js +22 -10
- package/dist/Menu/index.js +8 -8
- package/dist/Modal/index.js +11 -11
- package/dist/Note/index.js +7 -7
- package/dist/NumberInput/NumberInput.d.ts +5 -0
- package/dist/NumberInput/index.js +10 -9
- package/dist/Page/index.js +7 -7
- package/dist/Pagination/PaginationItem.d.ts +1 -1
- package/dist/Pagination/index.js +7 -7
- package/dist/Popover/index.js +8 -8
- package/dist/Progress/Progress.d.ts +2 -0
- package/dist/Progress/index.js +7 -7
- package/dist/Radio/index.js +7 -7
- package/dist/Radio/styles.d.ts +1 -6
- package/dist/Rating/Rating.d.ts +16 -9
- package/dist/Rating/index.d.ts +1 -1
- package/dist/Rating/index.js +7 -7
- package/dist/Row/index.js +6 -6
- package/dist/Section/index.js +7 -7
- package/dist/Select/Select.d.ts +5 -0
- package/dist/Select/index.js +11 -9
- package/dist/Shared/backdrop.d.ts +1 -1
- package/dist/Skeleton/index.js +7 -7
- package/dist/Slider/index.js +7 -7
- package/dist/Snippet/index.js +7 -7
- package/dist/Spacer/index.js +7 -7
- package/dist/Spinner/index.js +7 -7
- package/dist/Stat/Stat.d.ts +12 -0
- package/dist/Stat/index.d.ts +3 -0
- package/dist/Stat/index.js +14 -0
- package/dist/Stepper/index.js +7 -7
- package/dist/Table/Table.d.ts +7 -0
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +11 -7
- package/dist/Tabs/Tabs.d.ts +1 -0
- package/dist/Tabs/index.js +7 -7
- package/dist/Tag/index.js +8 -7
- package/dist/Text/index.js +7 -7
- package/dist/Textarea/Textarea.d.ts +5 -0
- package/dist/Textarea/index.js +9 -8
- package/dist/Themes/index.js +3 -3
- package/dist/Timeline/Timeline.d.ts +10 -0
- package/dist/Timeline/TimelineItem.d.ts +13 -0
- package/dist/Timeline/index.d.ts +9 -0
- package/dist/Timeline/index.js +14 -0
- package/dist/Toggle/Toggle.d.ts +2 -0
- package/dist/Toggle/index.js +7 -7
- package/dist/Tooltip/index.js +7 -7
- package/dist/{chunk-IB2FP4DM.js → chunk-2PRUFY2Q.js} +114 -76
- package/dist/chunk-4QA7Z7VP.js +132 -0
- package/dist/chunk-56NE4QGR.js +284 -0
- package/dist/{chunk-UVCSH6DW.js → chunk-5HRVN7L7.js} +2 -2
- package/dist/chunk-5M4QUTS4.js +74 -0
- package/dist/chunk-67WAS5AY.js +84 -0
- package/dist/chunk-6BCLZSSK.js +524 -0
- package/dist/chunk-6KMHJRCY.js +324 -0
- package/dist/chunk-6U7FXFJP.js +425 -0
- package/dist/{chunk-RF5ZQ37O.js → chunk-6VDRKYLW.js} +2 -2
- package/dist/chunk-6ZBFUZSL.js +363 -0
- package/dist/chunk-7N7PEBRB.js +82 -0
- package/dist/chunk-A2NLRQ55.js +177 -0
- package/dist/chunk-A6N5PIXN.js +166 -0
- package/dist/chunk-AFBCMW2I.js +100 -0
- package/dist/chunk-AHWF22ZQ.js +97 -0
- package/dist/chunk-BJRUC4XL.js +40 -0
- package/dist/chunk-CGEUUDJ4.js +250 -0
- package/dist/chunk-D7CNDAYB.js +92 -0
- package/dist/chunk-DAZ2GHNP.js +73 -0
- package/dist/chunk-DXHNQANX.js +487 -0
- package/dist/chunk-E5EDUOQT.js +373 -0
- package/dist/chunk-EAHIBHMI.js +250 -0
- package/dist/chunk-EEZG4FGY.js +142 -0
- package/dist/{chunk-TFZ2IGNH.js → chunk-FEA5BJ35.js} +2 -2
- package/dist/chunk-FLK7EAOE.js +370 -0
- package/dist/chunk-FQU5SKDF.js +312 -0
- package/dist/chunk-GGCVPMXO.js +188 -0
- package/dist/chunk-GJ77XHZ3.js +83 -0
- package/dist/chunk-HIFS4JIO.js +225 -0
- package/dist/chunk-HK6XCH2C.js +76 -0
- package/dist/chunk-IBC5BABS.js +415 -0
- package/dist/chunk-IIKZQZXS.js +269 -0
- package/dist/chunk-ISLUC2SD.js +140 -0
- package/dist/chunk-JAVXTBV2.js +238 -0
- package/dist/chunk-JFNYQSEZ.js +200 -0
- package/dist/chunk-KBZEYKCZ.js +98 -0
- package/dist/chunk-KWKFVS32.js +225 -0
- package/dist/chunk-LA46RLOT.js +180 -0
- package/dist/chunk-LMDBE6T6.js +88 -0
- package/dist/chunk-LQYCPFUA.js +188 -0
- package/dist/chunk-LSSL324I.js +84 -0
- package/dist/{chunk-S62PPQHN.js → chunk-MAICNLTY.js} +2 -2
- package/dist/chunk-MGHMAZRL.js +231 -0
- package/dist/chunk-NEG5UNM6.js +451 -0
- package/dist/chunk-NLJHFKAN.js +165 -0
- package/dist/chunk-OAMGJMK4.js +210 -0
- package/dist/chunk-PGQYW6YF.js +245 -0
- package/dist/chunk-QCE3XFHZ.js +32 -0
- package/dist/{chunk-5BRAW5HK.js → chunk-QILHI3LO.js} +2 -2
- package/dist/chunk-RD4CEB5S.js +155 -0
- package/dist/chunk-RRFCNZ2T.js +70 -0
- package/dist/chunk-RZSTPJ76.js +49 -0
- package/dist/chunk-SDC2VF5K.js +54 -0
- package/dist/chunk-SGWX6H4Y.js +354 -0
- package/dist/{chunk-VCTKX4AS.js → chunk-SZIX7BM5.js} +1 -1
- package/dist/chunk-T5BYQGC3.js +79 -0
- package/dist/chunk-T74YHCG6.js +151 -0
- package/dist/chunk-TJUNBMNF.js +65 -0
- package/dist/chunk-TKICX5R6.js +351 -0
- package/dist/chunk-TKIUVNKP.js +217 -0
- package/dist/chunk-TWIOSRRP.js +294 -0
- package/dist/chunk-TZ7TOEP3.js +54 -0
- package/dist/chunk-UOGCO6CV.js +43 -0
- package/dist/chunk-UVVBMWR4.js +137 -0
- package/dist/{chunk-45MVPPJN.js → chunk-V5I4ORQQ.js} +2 -2
- package/dist/chunk-WEYAL53O.js +103 -0
- package/dist/chunk-WXW7BYE7.js +297 -0
- package/dist/{chunk-QUMM6MGX.js → chunk-X5PGXMVQ.js} +2 -2
- package/dist/chunk-XC33TGGT.js +110 -0
- package/dist/{chunk-CPIFYIT3.js → chunk-XF4TPE2W.js} +208 -140
- package/dist/chunk-XWRDUQKY.js +98 -0
- package/dist/chunk-YHZFOVVI.js +611 -0
- package/dist/css/Avatar-AvatarGroup.css +17 -0
- package/dist/css/Avatar-AvatarSkeleton.css +24 -0
- package/dist/css/Avatar.css +31 -0
- package/dist/css/Badge-BadgeAnchor.css +15 -0
- package/dist/css/Badge.css +45 -0
- package/dist/css/Breadcrumbs.css +32 -0
- package/dist/css/Button-ButtonDrip.css +35 -0
- package/dist/css/Button-ButtonIcon.css +17 -0
- package/dist/css/Button-ButtonLoading.css +12 -0
- package/dist/css/Button.css +51 -0
- package/dist/css/ButtonDropdown-ButtonDropdownItem.css +50 -0
- package/dist/css/ButtonDropdown-Icon.css +6 -0
- package/dist/css/ButtonDropdown.css +70 -0
- package/dist/css/ButtonGroup.css +44 -0
- package/dist/css/Calendar.css +122 -0
- package/dist/css/Capacity.css +13 -0
- package/dist/css/Card-CardContent.css +10 -0
- package/dist/css/Card-CardFooter.css +16 -0
- package/dist/css/Card.css +45 -0
- package/dist/css/Checkbox-CheckboxGroup.css +11 -0
- package/dist/css/Checkbox-CheckboxIcon.css +9 -0
- package/dist/css/Checkbox.css +35 -0
- package/dist/css/Code.css +98 -0
- package/dist/css/Col.css +8 -0
- package/dist/css/Collapse-CollapseGroup.css +6 -0
- package/dist/css/Collapse-CollapseIcon.css +8 -0
- package/dist/css/Collapse.css +44 -0
- package/dist/css/Combobox.css +107 -0
- package/dist/css/Command.css +42 -0
- package/dist/css/Container.css +9 -0
- package/dist/css/DatePicker.css +92 -0
- package/dist/css/Description.css +24 -0
- package/dist/css/Display.css +31 -0
- package/dist/css/Divider.css +34 -0
- package/dist/css/Dot.css +24 -0
- package/dist/css/Drawer-DrawerWrapper.css +89 -0
- package/dist/css/EmptyState.css +36 -0
- package/dist/css/Fieldset-FieldsetContent.css +10 -0
- package/dist/css/Fieldset-FieldsetFooter.css +10 -0
- package/dist/css/Fieldset-FieldsetGroup.css +59 -0
- package/dist/css/Fieldset-FieldsetSubtitle.css +9 -0
- package/dist/css/Fieldset-FieldsetTitle.css +12 -0
- package/dist/css/Grid-BasicItem.css +66 -0
- package/dist/css/Image-ImageBrowser.css +101 -0
- package/dist/css/Image-ImageBrowserHttpsIcon.css +7 -0
- package/dist/css/Image-ImageSkeleton.css +24 -0
- package/dist/css/Image.css +13 -0
- package/dist/css/Input-InputBlockLabel.css +17 -0
- package/dist/css/Input-InputIcon.css +26 -0
- package/dist/css/Input-InputIconClear.css +33 -0
- package/dist/css/Input-InputLabel.css +13 -0
- package/dist/css/Input.css +117 -0
- package/dist/css/Keyboard.css +20 -0
- package/dist/css/Link-Icon.css +9 -0
- package/dist/css/Link.css +21 -0
- package/dist/css/Loading.css +62 -0
- package/dist/css/Marquee.css +46 -0
- package/dist/css/MdxWidgets-MockPage.css +20 -0
- package/dist/css/Menu-MenuItem.css +70 -0
- package/dist/css/Menu-MenuList.css +23 -0
- package/dist/css/Menu-MenuSub.css +12 -0
- package/dist/css/Menu.css +6 -0
- package/dist/css/Modal-ModalAction.css +8 -0
- package/dist/css/Modal-ModalActions.css +21 -0
- package/dist/css/Modal-ModalContent.css +15 -0
- package/dist/css/Modal-ModalSubtitle.css +11 -0
- package/dist/css/Modal-ModalTitle.css +14 -0
- package/dist/css/Modal-ModalWrapper.css +47 -0
- package/dist/css/Note.css +17 -0
- package/dist/css/NumberInput.css +79 -0
- package/dist/css/Page-PageHeader.css +8 -0
- package/dist/css/Page.css +17 -0
- package/dist/css/Pagination-PaginationEllipsis.css +9 -0
- package/dist/css/Pagination-PaginationItem.css +60 -0
- package/dist/css/Pagination.css +17 -0
- package/dist/css/Popover-PopoverItem.css +26 -0
- package/dist/css/Progress.css +65 -0
- package/dist/css/Radio-RadioGroup.css +16 -0
- package/dist/css/Radio.css +80 -0
- package/dist/css/Rating.css +87 -0
- package/dist/css/Row.css +8 -0
- package/dist/css/Select-SelectDropdown.css +13 -0
- package/dist/css/Select-SelectIcon.css +10 -0
- package/dist/css/Select-SelectIconClear.css +26 -0
- package/dist/css/Select-SelectInput.css +15 -0
- package/dist/css/Select-SelectMultipleValue.css +24 -0
- package/dist/css/Select-SelectOption.css +57 -0
- package/dist/css/Select.css +89 -0
- package/dist/css/Shared-backdrop.css +64 -0
- package/dist/css/Shared-ellipsis.css +9 -0
- package/dist/css/Skeleton.css +46 -0
- package/dist/css/Slider-SliderDot.css +39 -0
- package/dist/css/Slider-SliderMark.css +10 -0
- package/dist/css/Slider.css +7 -0
- package/dist/css/Snippet-SnippetIcon.css +7 -0
- package/dist/css/Snippet.css +45 -0
- package/dist/css/Spinner.css +95 -0
- package/dist/css/Stat.css +30 -0
- package/dist/css/Stepper-StepperStep.css +106 -0
- package/dist/css/Stepper.css +12 -0
- package/dist/css/Table-TableBody.css +27 -0
- package/dist/css/Table-TableHead.css +47 -0
- package/dist/css/Table.css +20 -0
- package/dist/css/Tabs-TabsItem.css +90 -0
- package/dist/css/Tabs.css +65 -0
- package/dist/css/Tag.css +8 -0
- package/dist/css/Textarea.css +61 -0
- package/dist/css/Timeline.css +68 -0
- package/dist/css/Toggle.css +84 -0
- package/dist/css/Tooltip-TooltipContent.css +16 -0
- package/dist/css/Tooltip-TooltipIcon.css +11 -0
- package/dist/css/Tooltip.css +7 -0
- package/dist/css/use-toasts-toast-container.css +26 -0
- package/dist/css/use-toasts-toast-item.css +60 -0
- package/dist/index.d.ts +12 -2
- package/dist/index.js +97 -77
- package/dist/styles.css +4182 -0
- package/dist/use-all-themes/index.js +4 -4
- package/dist/use-media-query/index.js +6 -6
- package/dist/use-scale/index.js +6 -6
- package/dist/use-theme/index.js +5 -5
- package/esm/Avatar/index.js +6 -6
- package/esm/Badge/Badge.d.ts +1 -0
- package/esm/Badge/index.js +6 -6
- package/esm/BolioUIProvider/index.js +9 -9
- package/esm/Breadcrumbs/index.js +7 -7
- package/esm/Button/Button.d.ts +1 -0
- package/esm/Button/ButtonIcon.d.ts +1 -3
- package/esm/Button/index.js +7 -7
- package/esm/Button/utils.d.ts +1 -1
- package/esm/ButtonDropdown/ButtonDropdown.d.ts +2 -0
- package/esm/ButtonDropdown/ButtonDropdownContext.d.ts +3 -0
- package/esm/ButtonDropdown/ButtonDropdownItem.d.ts +2 -1
- package/esm/ButtonDropdown/index.d.ts +1 -0
- package/esm/ButtonDropdown/index.js +7 -7
- package/esm/ButtonGroup/index.js +6 -6
- package/esm/Calendar/Calendar.d.ts +29 -6
- package/esm/Calendar/date-utils.d.ts +1 -0
- package/esm/Calendar/index.d.ts +1 -1
- package/esm/Calendar/index.js +6 -6
- package/esm/Capacity/index.js +6 -6
- package/esm/Card/Card.d.ts +3 -0
- package/esm/Card/index.js +8 -8
- package/esm/Checkbox/index.js +6 -6
- package/esm/Code/index.js +7 -6
- package/esm/Col/index.js +1 -1
- package/esm/Collapse/index.js +6 -6
- package/esm/Combobox/Combobox.d.ts +7 -0
- package/esm/Combobox/index.js +8 -6
- package/esm/Command/Command.d.ts +19 -0
- package/esm/Command/index.d.ts +3 -0
- package/esm/Command/index.js +33 -0
- package/esm/Container/index.js +5 -5
- package/esm/CssBaseline/index.js +5 -5
- package/esm/DatePicker/DatePicker.d.ts +7 -0
- package/esm/DatePicker/index.js +9 -7
- package/esm/Description/index.js +6 -6
- package/esm/Display/index.js +6 -6
- package/esm/Divider/index.js +6 -6
- package/esm/Dot/index.js +6 -6
- package/esm/Drawer/index.js +8 -8
- package/esm/EmptyState/EmptyState.d.ts +12 -0
- package/esm/EmptyState/index.d.ts +3 -0
- package/esm/EmptyState/index.js +14 -0
- package/esm/Fieldset/index.js +6 -6
- package/esm/Grid/Grid.d.ts +2 -2
- package/esm/Grid/GridContainer.d.ts +2 -2
- package/esm/Grid/index.js +6 -6
- package/esm/Image/index.js +7 -7
- package/esm/Input/InputIconClear.d.ts +2 -1
- package/esm/Input/InputProps.d.ts +9 -0
- package/esm/Input/index.js +10 -9
- package/esm/Input/styles.d.ts +10 -1
- package/esm/Keyboard/index.js +6 -6
- package/esm/Link/index.js +6 -6
- package/esm/Loading/index.js +6 -6
- package/esm/Marquee/Marquee.d.ts +14 -0
- package/esm/Marquee/index.d.ts +3 -0
- package/esm/Marquee/index.js +14 -0
- package/esm/MdxWidgets/index.js +21 -9
- package/esm/Menu/index.js +7 -7
- package/esm/Modal/index.js +10 -10
- package/esm/Note/index.js +6 -6
- package/esm/NumberInput/NumberInput.d.ts +5 -0
- package/esm/NumberInput/index.js +9 -8
- package/esm/Page/index.js +6 -6
- package/esm/Pagination/PaginationItem.d.ts +1 -1
- package/esm/Pagination/index.js +6 -6
- package/esm/Popover/index.js +7 -7
- package/esm/Progress/Progress.d.ts +2 -0
- package/esm/Progress/index.js +6 -6
- package/esm/Radio/index.js +6 -6
- package/esm/Radio/styles.d.ts +1 -6
- package/esm/Rating/Rating.d.ts +16 -9
- package/esm/Rating/index.d.ts +1 -1
- package/esm/Rating/index.js +6 -6
- package/esm/Row/index.js +5 -5
- package/esm/Section/index.js +6 -6
- package/esm/Select/Select.d.ts +5 -0
- package/esm/Select/index.js +10 -8
- package/esm/Shared/backdrop.d.ts +1 -1
- package/esm/Skeleton/index.js +6 -6
- package/esm/Slider/index.js +6 -6
- package/esm/Snippet/index.js +6 -6
- package/esm/Spacer/index.js +6 -6
- package/esm/Spinner/index.js +6 -6
- package/esm/Stat/Stat.d.ts +12 -0
- package/esm/Stat/index.d.ts +3 -0
- package/esm/Stat/index.js +14 -0
- package/esm/Stepper/index.js +6 -6
- package/esm/Table/Table.d.ts +7 -0
- package/esm/Table/index.d.ts +1 -1
- package/esm/Table/index.js +10 -6
- package/esm/Tabs/Tabs.d.ts +1 -0
- package/esm/Tabs/index.js +6 -6
- package/esm/Tag/index.js +7 -6
- package/esm/Text/index.js +6 -6
- package/esm/Textarea/Textarea.d.ts +5 -0
- package/esm/Textarea/index.js +8 -7
- package/esm/Themes/index.js +2 -2
- package/esm/Timeline/Timeline.d.ts +10 -0
- package/esm/Timeline/TimelineItem.d.ts +13 -0
- package/esm/Timeline/index.d.ts +9 -0
- package/esm/Timeline/index.js +14 -0
- package/esm/Toggle/Toggle.d.ts +2 -0
- package/esm/Toggle/index.js +6 -6
- package/esm/Tooltip/index.js +6 -6
- package/esm/{chunk-IB2FP4DM.js → chunk-2PRUFY2Q.js} +109 -71
- package/esm/chunk-4QA7Z7VP.js +132 -0
- package/esm/chunk-56NE4QGR.js +284 -0
- package/esm/{chunk-UVCSH6DW.js → chunk-5HRVN7L7.js} +1 -1
- package/esm/chunk-5M4QUTS4.js +74 -0
- package/esm/chunk-67WAS5AY.js +84 -0
- package/esm/chunk-6BCLZSSK.js +524 -0
- package/esm/chunk-6KMHJRCY.js +324 -0
- package/esm/chunk-6U7FXFJP.js +425 -0
- package/esm/{chunk-RF5ZQ37O.js → chunk-6VDRKYLW.js} +1 -1
- package/esm/chunk-6ZBFUZSL.js +363 -0
- package/esm/chunk-7N7PEBRB.js +82 -0
- package/esm/chunk-A2NLRQ55.js +177 -0
- package/esm/chunk-A6N5PIXN.js +166 -0
- package/esm/chunk-AFBCMW2I.js +100 -0
- package/esm/chunk-AHWF22ZQ.js +97 -0
- package/esm/chunk-BJRUC4XL.js +40 -0
- package/esm/chunk-CGEUUDJ4.js +250 -0
- package/esm/chunk-D7CNDAYB.js +92 -0
- package/esm/chunk-DAZ2GHNP.js +73 -0
- package/esm/chunk-DXHNQANX.js +487 -0
- package/esm/chunk-E5EDUOQT.js +373 -0
- package/esm/chunk-EAHIBHMI.js +250 -0
- package/esm/chunk-EEZG4FGY.js +142 -0
- package/esm/{chunk-TFZ2IGNH.js → chunk-FEA5BJ35.js} +1 -1
- package/esm/chunk-FLK7EAOE.js +370 -0
- package/esm/chunk-FQU5SKDF.js +312 -0
- package/esm/chunk-GGCVPMXO.js +188 -0
- package/esm/chunk-GJ77XHZ3.js +83 -0
- package/esm/chunk-HIFS4JIO.js +225 -0
- package/esm/chunk-HK6XCH2C.js +76 -0
- package/esm/chunk-IBC5BABS.js +415 -0
- package/esm/chunk-IIKZQZXS.js +269 -0
- package/esm/chunk-ISLUC2SD.js +140 -0
- package/esm/chunk-JAVXTBV2.js +238 -0
- package/esm/chunk-JFNYQSEZ.js +200 -0
- package/esm/chunk-KBZEYKCZ.js +98 -0
- package/esm/chunk-KWKFVS32.js +225 -0
- package/esm/chunk-LA46RLOT.js +180 -0
- package/esm/chunk-LMDBE6T6.js +88 -0
- package/esm/chunk-LQYCPFUA.js +188 -0
- package/esm/chunk-LSSL324I.js +84 -0
- package/esm/{chunk-S62PPQHN.js → chunk-MAICNLTY.js} +1 -1
- package/esm/chunk-MGHMAZRL.js +231 -0
- package/esm/chunk-NEG5UNM6.js +451 -0
- package/esm/chunk-NLJHFKAN.js +165 -0
- package/esm/chunk-OAMGJMK4.js +210 -0
- package/esm/chunk-PGQYW6YF.js +245 -0
- package/esm/chunk-QCE3XFHZ.js +32 -0
- package/esm/{chunk-5BRAW5HK.js → chunk-QILHI3LO.js} +1 -1
- package/esm/chunk-RD4CEB5S.js +155 -0
- package/esm/chunk-RRFCNZ2T.js +70 -0
- package/esm/chunk-RZSTPJ76.js +49 -0
- package/esm/chunk-SDC2VF5K.js +54 -0
- package/esm/chunk-SGWX6H4Y.js +354 -0
- package/esm/{chunk-VCTKX4AS.js → chunk-SZIX7BM5.js} +1 -1
- package/esm/chunk-T5BYQGC3.js +79 -0
- package/esm/chunk-T74YHCG6.js +151 -0
- package/esm/chunk-TJUNBMNF.js +65 -0
- package/esm/chunk-TKICX5R6.js +351 -0
- package/esm/chunk-TKIUVNKP.js +217 -0
- package/esm/chunk-TWIOSRRP.js +294 -0
- package/esm/chunk-TZ7TOEP3.js +54 -0
- package/esm/chunk-UOGCO6CV.js +43 -0
- package/esm/chunk-UVVBMWR4.js +137 -0
- package/esm/{chunk-45MVPPJN.js → chunk-V5I4ORQQ.js} +1 -1
- package/esm/chunk-WEYAL53O.js +103 -0
- package/esm/chunk-WXW7BYE7.js +297 -0
- package/esm/{chunk-QUMM6MGX.js → chunk-X5PGXMVQ.js} +1 -1
- package/esm/chunk-XC33TGGT.js +110 -0
- package/esm/{chunk-CPIFYIT3.js → chunk-XF4TPE2W.js} +210 -142
- package/esm/chunk-XWRDUQKY.js +98 -0
- package/esm/chunk-YHZFOVVI.js +611 -0
- package/esm/css/Avatar-AvatarGroup.css +17 -0
- package/esm/css/Avatar-AvatarSkeleton.css +24 -0
- package/esm/css/Avatar.css +31 -0
- package/esm/css/Badge-BadgeAnchor.css +15 -0
- package/esm/css/Badge.css +45 -0
- package/esm/css/Breadcrumbs.css +32 -0
- package/esm/css/Button-ButtonDrip.css +35 -0
- package/esm/css/Button-ButtonIcon.css +17 -0
- package/esm/css/Button-ButtonLoading.css +12 -0
- package/esm/css/Button.css +51 -0
- package/esm/css/ButtonDropdown-ButtonDropdownItem.css +50 -0
- package/esm/css/ButtonDropdown-Icon.css +6 -0
- package/esm/css/ButtonDropdown.css +70 -0
- package/esm/css/ButtonGroup.css +44 -0
- package/esm/css/Calendar.css +122 -0
- package/esm/css/Capacity.css +13 -0
- package/esm/css/Card-CardContent.css +10 -0
- package/esm/css/Card-CardFooter.css +16 -0
- package/esm/css/Card.css +45 -0
- package/esm/css/Checkbox-CheckboxGroup.css +11 -0
- package/esm/css/Checkbox-CheckboxIcon.css +9 -0
- package/esm/css/Checkbox.css +35 -0
- package/esm/css/Code.css +98 -0
- package/esm/css/Col.css +8 -0
- package/esm/css/Collapse-CollapseGroup.css +6 -0
- package/esm/css/Collapse-CollapseIcon.css +8 -0
- package/esm/css/Collapse.css +44 -0
- package/esm/css/Combobox.css +107 -0
- package/esm/css/Command.css +42 -0
- package/esm/css/Container.css +9 -0
- package/esm/css/DatePicker.css +92 -0
- package/esm/css/Description.css +24 -0
- package/esm/css/Display.css +31 -0
- package/esm/css/Divider.css +34 -0
- package/esm/css/Dot.css +24 -0
- package/esm/css/Drawer-DrawerWrapper.css +89 -0
- package/esm/css/EmptyState.css +36 -0
- package/esm/css/Fieldset-FieldsetContent.css +10 -0
- package/esm/css/Fieldset-FieldsetFooter.css +10 -0
- package/esm/css/Fieldset-FieldsetGroup.css +59 -0
- package/esm/css/Fieldset-FieldsetSubtitle.css +9 -0
- package/esm/css/Fieldset-FieldsetTitle.css +12 -0
- package/esm/css/Grid-BasicItem.css +66 -0
- package/esm/css/Image-ImageBrowser.css +101 -0
- package/esm/css/Image-ImageBrowserHttpsIcon.css +7 -0
- package/esm/css/Image-ImageSkeleton.css +24 -0
- package/esm/css/Image.css +13 -0
- package/esm/css/Input-InputBlockLabel.css +17 -0
- package/esm/css/Input-InputIcon.css +26 -0
- package/esm/css/Input-InputIconClear.css +33 -0
- package/esm/css/Input-InputLabel.css +13 -0
- package/esm/css/Input.css +117 -0
- package/esm/css/Keyboard.css +20 -0
- package/esm/css/Link-Icon.css +9 -0
- package/esm/css/Link.css +21 -0
- package/esm/css/Loading.css +62 -0
- package/esm/css/Marquee.css +46 -0
- package/esm/css/MdxWidgets-MockPage.css +20 -0
- package/esm/css/Menu-MenuItem.css +70 -0
- package/esm/css/Menu-MenuList.css +23 -0
- package/esm/css/Menu-MenuSub.css +12 -0
- package/esm/css/Menu.css +6 -0
- package/esm/css/Modal-ModalAction.css +8 -0
- package/esm/css/Modal-ModalActions.css +21 -0
- package/esm/css/Modal-ModalContent.css +15 -0
- package/esm/css/Modal-ModalSubtitle.css +11 -0
- package/esm/css/Modal-ModalTitle.css +14 -0
- package/esm/css/Modal-ModalWrapper.css +47 -0
- package/esm/css/Note.css +17 -0
- package/esm/css/NumberInput.css +79 -0
- package/esm/css/Page-PageHeader.css +8 -0
- package/esm/css/Page.css +17 -0
- package/esm/css/Pagination-PaginationEllipsis.css +9 -0
- package/esm/css/Pagination-PaginationItem.css +60 -0
- package/esm/css/Pagination.css +17 -0
- package/esm/css/Popover-PopoverItem.css +26 -0
- package/esm/css/Progress.css +65 -0
- package/esm/css/Radio-RadioGroup.css +16 -0
- package/esm/css/Radio.css +80 -0
- package/esm/css/Rating.css +87 -0
- package/esm/css/Row.css +8 -0
- package/esm/css/Select-SelectDropdown.css +13 -0
- package/esm/css/Select-SelectIcon.css +10 -0
- package/esm/css/Select-SelectIconClear.css +26 -0
- package/esm/css/Select-SelectInput.css +15 -0
- package/esm/css/Select-SelectMultipleValue.css +24 -0
- package/esm/css/Select-SelectOption.css +57 -0
- package/esm/css/Select.css +89 -0
- package/esm/css/Shared-backdrop.css +64 -0
- package/esm/css/Shared-ellipsis.css +9 -0
- package/esm/css/Skeleton.css +46 -0
- package/esm/css/Slider-SliderDot.css +39 -0
- package/esm/css/Slider-SliderMark.css +10 -0
- package/esm/css/Slider.css +7 -0
- package/esm/css/Snippet-SnippetIcon.css +7 -0
- package/esm/css/Snippet.css +45 -0
- package/esm/css/Spinner.css +95 -0
- package/esm/css/Stat.css +30 -0
- package/esm/css/Stepper-StepperStep.css +106 -0
- package/esm/css/Stepper.css +12 -0
- package/esm/css/Table-TableBody.css +27 -0
- package/esm/css/Table-TableHead.css +47 -0
- package/esm/css/Table.css +20 -0
- package/esm/css/Tabs-TabsItem.css +90 -0
- package/esm/css/Tabs.css +65 -0
- package/esm/css/Tag.css +8 -0
- package/esm/css/Textarea.css +61 -0
- package/esm/css/Timeline.css +68 -0
- package/esm/css/Toggle.css +84 -0
- package/esm/css/Tooltip-TooltipContent.css +16 -0
- package/esm/css/Tooltip-TooltipIcon.css +11 -0
- package/esm/css/Tooltip.css +7 -0
- package/esm/css/use-toasts-toast-container.css +26 -0
- package/esm/css/use-toasts-toast-item.css +60 -0
- package/esm/index.d.ts +12 -2
- package/esm/index.js +119 -99
- package/esm/styles.css +4182 -0
- package/esm/use-all-themes/index.js +3 -3
- package/esm/use-media-query/index.js +5 -5
- package/esm/use-scale/index.js +5 -5
- package/esm/use-theme/index.js +4 -4
- package/package.json +9 -22
- package/dist/Next/StyledJsxRegistry.d.ts +0 -3
- package/dist/Next/index.d.ts +0 -3
- package/dist/Next/index.js +0 -25
- package/dist/Select/styles.d.ts +0 -10
- package/dist/chunk-33WYJZ4F.js +0 -88
- package/dist/chunk-3BVFLDHI.js +0 -295
- package/dist/chunk-3XTTDT42.js +0 -72
- package/dist/chunk-4RJGB3WA.js +0 -107
- package/dist/chunk-4VCNNVZ4.js +0 -310
- package/dist/chunk-5GR6MFT5.js +0 -70
- package/dist/chunk-5JAYTLFV.js +0 -227
- package/dist/chunk-5KWSYI7C.js +0 -143
- package/dist/chunk-5W4MJC2K.js +0 -55
- package/dist/chunk-6BHDVSPB.js +0 -226
- package/dist/chunk-6XJS3KMW.js +0 -436
- package/dist/chunk-7L3HCDGD.js +0 -65
- package/dist/chunk-APDSEVV6.js +0 -443
- package/dist/chunk-BDEBNBW6.js +0 -61
- package/dist/chunk-CNY7HPMQ.js +0 -191
- package/dist/chunk-CV4DIXTB.js +0 -93
- package/dist/chunk-DD72MTCX.js +0 -55
- package/dist/chunk-DTRBG524.js +0 -195
- package/dist/chunk-ELIPUM6Q.js +0 -142
- package/dist/chunk-EMDU5OPY.js +0 -236
- package/dist/chunk-EZILJ6TJ.js +0 -133
- package/dist/chunk-F5ENWFJU.js +0 -273
- package/dist/chunk-HH2IP5Z4.js +0 -189
- package/dist/chunk-HMOOLCMA.js +0 -401
- package/dist/chunk-HMOTWEQB.js +0 -113
- package/dist/chunk-HX5M3GSJ.js +0 -63
- package/dist/chunk-IUOX444H.js +0 -282
- package/dist/chunk-IWMGNPNV.js +0 -76
- package/dist/chunk-J6KQRS7O.js +0 -226
- package/dist/chunk-JM3DV57W.js +0 -44
- package/dist/chunk-K53ERLS7.js +0 -150
- package/dist/chunk-KBCAV5FR.js +0 -22
- package/dist/chunk-KHB3EKRQ.js +0 -36
- package/dist/chunk-KVIIL2O6.js +0 -192
- package/dist/chunk-KZXX7IEN.js +0 -44
- package/dist/chunk-MYAZEMZC.js +0 -134
- package/dist/chunk-NRSWR3C4.js +0 -165
- package/dist/chunk-OEHIZKSM.js +0 -31
- package/dist/chunk-OFNHKVGZ.js +0 -136
- package/dist/chunk-PGK3BYA2.js +0 -60
- package/dist/chunk-PHKAYQE4.js +0 -42
- package/dist/chunk-PJH7CP77.js +0 -27
- package/dist/chunk-QMV4ULSR.js +0 -124
- package/dist/chunk-RSHEENJP.js +0 -156
- package/dist/chunk-TF3CTLKX.js +0 -42
- package/dist/chunk-TUWG4TLU.js +0 -97
- package/dist/chunk-TXG6TBSG.js +0 -91
- package/dist/chunk-U2NJJS3T.js +0 -88
- package/dist/chunk-UEWD6OUC.js +0 -137
- package/dist/chunk-W4T2KO5B.js +0 -129
- package/dist/chunk-XSXJO2KP.js +0 -29
- package/dist/chunk-XXMCR322.js +0 -199
- package/dist/chunk-Y6X5SEN7.js +0 -232
- package/dist/chunk-YFQOB5OC.js +0 -204
- package/dist/chunk-YHEIC6EK.js +0 -102
- package/dist/chunk-YS5PWRS7.js +0 -288
- package/dist/chunk-ZNNLYTW5.js +0 -64
- package/dist/chunk-ZQ25CQCG.js +0 -153
- package/esm/Next/StyledJsxRegistry.d.ts +0 -3
- package/esm/Next/index.d.ts +0 -3
- package/esm/Next/index.js +0 -25
- package/esm/Select/styles.d.ts +0 -10
- package/esm/chunk-33WYJZ4F.js +0 -88
- package/esm/chunk-3BVFLDHI.js +0 -295
- package/esm/chunk-3XTTDT42.js +0 -72
- package/esm/chunk-4RJGB3WA.js +0 -107
- package/esm/chunk-4VCNNVZ4.js +0 -310
- package/esm/chunk-5GR6MFT5.js +0 -70
- package/esm/chunk-5JAYTLFV.js +0 -227
- package/esm/chunk-5KWSYI7C.js +0 -143
- package/esm/chunk-5W4MJC2K.js +0 -55
- package/esm/chunk-6BHDVSPB.js +0 -226
- package/esm/chunk-6XJS3KMW.js +0 -436
- package/esm/chunk-7L3HCDGD.js +0 -65
- package/esm/chunk-APDSEVV6.js +0 -443
- package/esm/chunk-BDEBNBW6.js +0 -61
- package/esm/chunk-CNY7HPMQ.js +0 -191
- package/esm/chunk-CV4DIXTB.js +0 -93
- package/esm/chunk-DD72MTCX.js +0 -55
- package/esm/chunk-DTRBG524.js +0 -195
- package/esm/chunk-ELIPUM6Q.js +0 -142
- package/esm/chunk-EMDU5OPY.js +0 -236
- package/esm/chunk-EZILJ6TJ.js +0 -133
- package/esm/chunk-F5ENWFJU.js +0 -273
- package/esm/chunk-HH2IP5Z4.js +0 -189
- package/esm/chunk-HMOOLCMA.js +0 -401
- package/esm/chunk-HMOTWEQB.js +0 -113
- package/esm/chunk-HX5M3GSJ.js +0 -63
- package/esm/chunk-IUOX444H.js +0 -282
- package/esm/chunk-IWMGNPNV.js +0 -76
- package/esm/chunk-J6KQRS7O.js +0 -226
- package/esm/chunk-JM3DV57W.js +0 -44
- package/esm/chunk-K53ERLS7.js +0 -150
- package/esm/chunk-KBCAV5FR.js +0 -22
- package/esm/chunk-KHB3EKRQ.js +0 -36
- package/esm/chunk-KVIIL2O6.js +0 -192
- package/esm/chunk-KZXX7IEN.js +0 -44
- package/esm/chunk-MYAZEMZC.js +0 -134
- package/esm/chunk-NRSWR3C4.js +0 -165
- package/esm/chunk-OEHIZKSM.js +0 -31
- package/esm/chunk-OFNHKVGZ.js +0 -136
- package/esm/chunk-PGK3BYA2.js +0 -60
- package/esm/chunk-PHKAYQE4.js +0 -42
- package/esm/chunk-PJH7CP77.js +0 -27
- package/esm/chunk-QMV4ULSR.js +0 -124
- package/esm/chunk-RSHEENJP.js +0 -156
- package/esm/chunk-TF3CTLKX.js +0 -42
- package/esm/chunk-TUWG4TLU.js +0 -97
- package/esm/chunk-TXG6TBSG.js +0 -91
- package/esm/chunk-U2NJJS3T.js +0 -88
- package/esm/chunk-UEWD6OUC.js +0 -137
- package/esm/chunk-W4T2KO5B.js +0 -129
- package/esm/chunk-XSXJO2KP.js +0 -29
- package/esm/chunk-XXMCR322.js +0 -199
- package/esm/chunk-Y6X5SEN7.js +0 -232
- package/esm/chunk-YFQOB5OC.js +0 -204
- package/esm/chunk-YHEIC6EK.js +0 -102
- package/esm/chunk-YS5PWRS7.js +0 -288
- package/esm/chunk-ZNNLYTW5.js +0 -64
- package/esm/chunk-ZQ25CQCG.js +0 -153
- package/examples/create-redwoodjs/.redwood/README.md +0 -44
package/esm/chunk-CNY7HPMQ.js
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Link_default
|
|
3
|
-
} from "./chunk-3XTTDT42.js";
|
|
4
|
-
import {
|
|
5
|
-
use_scale_default,
|
|
6
|
-
with_scale_default
|
|
7
|
-
} from "./chunk-S62PPQHN.js";
|
|
8
|
-
import {
|
|
9
|
-
use_theme_default
|
|
10
|
-
} from "./chunk-45MVPPJN.js";
|
|
11
|
-
import {
|
|
12
|
-
use_classes_default
|
|
13
|
-
} from "./chunk-5KUROAEP.js";
|
|
14
|
-
|
|
15
|
-
// core/Image/Image.tsx
|
|
16
|
-
import _JSXStyle2 from "styled-jsx/style";
|
|
17
|
-
import React2, { useEffect, useImperativeHandle, useMemo, useRef, useState } from "react";
|
|
18
|
-
|
|
19
|
-
// core/Image/ImageSkeleton.tsx
|
|
20
|
-
import _JSXStyle from "styled-jsx/style";
|
|
21
|
-
import React from "react";
|
|
22
|
-
import { jsx } from "react/jsx-runtime";
|
|
23
|
-
var ImageSkeleton = React.memo(({
|
|
24
|
-
opacity = 0.5,
|
|
25
|
-
...props
|
|
26
|
-
}) => {
|
|
27
|
-
const theme = use_theme_default();
|
|
28
|
-
return /* @__PURE__ */ jsx("div", { ...props, 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"), children: /* @__PURE__ */ jsx(_JSXStyle, { id: "2946022605", dynamic: [theme.palette.accents_1, theme.palette.accents_2, theme.palette.accents_2, theme.palette.accents_1, opacity], children: `.skeleton.__jsx-style-dynamic-selector{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background-image:linear-gradient( 270deg, ${theme.palette.accents_1}, ${theme.palette.accents_2}, ${theme.palette.accents_2}, ${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:${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;}}` }) });
|
|
29
|
-
});
|
|
30
|
-
ImageSkeleton.displayName = "BolioUIImageSkeleton";
|
|
31
|
-
var ImageSkeleton_default = ImageSkeleton;
|
|
32
|
-
|
|
33
|
-
// core/Image/helpers.ts
|
|
34
|
-
var transformDataSource = (src) => {
|
|
35
|
-
const left = `${src}`.slice(0, 4);
|
|
36
|
-
if (encodeURIComponent(left) === "%3Csvg") {
|
|
37
|
-
return `data:image/svg+xml;utf8,${src}`;
|
|
38
|
-
}
|
|
39
|
-
return src;
|
|
40
|
-
};
|
|
41
|
-
var getHostFromUrl = (url) => {
|
|
42
|
-
try {
|
|
43
|
-
return new URL(url).host;
|
|
44
|
-
} catch {
|
|
45
|
-
return url;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// core/Image/Image.tsx
|
|
50
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
51
|
-
var ImageComponent = React2.forwardRef(({
|
|
52
|
-
src,
|
|
53
|
-
disableSkeleton = false,
|
|
54
|
-
className = "",
|
|
55
|
-
maxDelay = 3e3,
|
|
56
|
-
...props
|
|
57
|
-
}, ref) => {
|
|
58
|
-
const {
|
|
59
|
-
SCALES,
|
|
60
|
-
getScaleProps
|
|
61
|
-
} = use_scale_default();
|
|
62
|
-
const width = getScaleProps(["width", "w"]);
|
|
63
|
-
const height = getScaleProps(["height", "h"]);
|
|
64
|
-
const showAnimation = !disableSkeleton && width && height;
|
|
65
|
-
const theme = use_theme_default();
|
|
66
|
-
const [loading, setLoading] = useState(true);
|
|
67
|
-
const [showSkeleton, setShowSkeleton] = useState(true);
|
|
68
|
-
const imageRef = useRef(null);
|
|
69
|
-
useImperativeHandle(ref, () => imageRef.current);
|
|
70
|
-
const url = useMemo(() => transformDataSource(src), [src]);
|
|
71
|
-
const imageLoaded = () => {
|
|
72
|
-
if (!showAnimation) return;
|
|
73
|
-
setLoading(false);
|
|
74
|
-
};
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
if (!showAnimation) return;
|
|
77
|
-
if (!imageRef.current) return;
|
|
78
|
-
if (imageRef.current.complete) {
|
|
79
|
-
setLoading(false);
|
|
80
|
-
setShowSkeleton(false);
|
|
81
|
-
}
|
|
82
|
-
}, [showAnimation]);
|
|
83
|
-
useEffect(() => {
|
|
84
|
-
const timer = setTimeout(() => {
|
|
85
|
-
if (showAnimation) {
|
|
86
|
-
setShowSkeleton(false);
|
|
87
|
-
}
|
|
88
|
-
clearTimeout(timer);
|
|
89
|
-
}, maxDelay);
|
|
90
|
-
return () => clearTimeout(timer);
|
|
91
|
-
}, [loading, maxDelay, showAnimation]);
|
|
92
|
-
return /* @__PURE__ */ jsxs("div", { className: _JSXStyle2.dynamic([["3930247108", [theme.layout.radius, SCALES.width(1, "auto"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, "auto"), SCALES.height(1, "auto")]]]) + " " + (use_classes_default("image", className) || ""), children: [
|
|
93
|
-
showSkeleton && showAnimation && /* @__PURE__ */ jsx2(ImageSkeleton_default, { opacity: loading ? 1 : 0 }),
|
|
94
|
-
/* @__PURE__ */ jsx2("img", { ref: imageRef, onLoad: imageLoaded, src: url, ...props, className: _JSXStyle2.dynamic([["3930247108", [theme.layout.radius, SCALES.width(1, "auto"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, "auto"), SCALES.height(1, "auto")]]]) + " " + (props && props.className != null && props.className || "") }),
|
|
95
|
-
/* @__PURE__ */ jsx2(_JSXStyle2, { id: "3930247108", dynamic: [theme.layout.radius, SCALES.width(1, "auto"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.width(1, "auto"), SCALES.height(1, "auto")], children: `.image.__jsx-style-dynamic-selector{position:relative;border-radius:${theme.layout.radius};overflow:hidden;max-width:100%;width:${SCALES.width(1, "auto")};height:${SCALES.height(1, "auto")};margin:${SCALES.mt(0)} ${SCALES.mr(0, "auto")} ${SCALES.mb(0)} ${SCALES.ml(0, "auto")};padding:${SCALES.pt(0)} ${SCALES.pr(0)} ${SCALES.pb(0)} ${SCALES.pl(0)};}img.__jsx-style-dynamic-selector{width:${SCALES.width(1, "auto")};height:${SCALES.height(1, "auto")};object-fit:scale-down;display:inline-block;}` })
|
|
96
|
-
] });
|
|
97
|
-
});
|
|
98
|
-
ImageComponent.displayName = "BolioUIImage";
|
|
99
|
-
var Image = with_scale_default(ImageComponent);
|
|
100
|
-
var Image_default = Image;
|
|
101
|
-
|
|
102
|
-
// core/Image/ImageBrowser.tsx
|
|
103
|
-
import _JSXStyle4 from "styled-jsx/style";
|
|
104
|
-
import React4, { useMemo as useMemo2 } from "react";
|
|
105
|
-
|
|
106
|
-
// core/Image/ImageBrowserHttpsIcon.tsx
|
|
107
|
-
import _JSXStyle3 from "styled-jsx/style";
|
|
108
|
-
import React3 from "react";
|
|
109
|
-
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
110
|
-
var ImageBrowserHttpsIcon = () => {
|
|
111
|
-
return /* @__PURE__ */ jsxs2("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "jsx-4165143638", children: [
|
|
112
|
-
/* @__PURE__ */ jsx3("path", { d: "M5 10.2H19V21H5V10.2Z", className: "jsx-4165143638" }),
|
|
113
|
-
/* @__PURE__ */ jsx3("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 12C13.933 12 15.5 10.3882 15.5 8.4C15.5 6.41177 13.933 4.8 12 4.8C10.067 4.8 8.5 6.41177 8.5 8.4C8.5 10.3882 10.067 12 12 12ZM12 13.8C14.8995 13.8 17.25 11.3823 17.25 8.4C17.25 5.41766 14.8995 3 12 3C9.10051 3 6.75 5.41766 6.75 8.4C6.75 11.3823 9.10051 13.8 12 13.8Z", className: "jsx-4165143638" }),
|
|
114
|
-
/* @__PURE__ */ jsx3(_JSXStyle3, { id: "4165143638", children: "svg.jsx-4165143638{width:1em;height:1em;}" })
|
|
115
|
-
] });
|
|
116
|
-
};
|
|
117
|
-
var MemoImageBrowserHttpsIcon = React3.memo(ImageBrowserHttpsIcon);
|
|
118
|
-
var ImageBrowserHttpsIcon_default = MemoImageBrowserHttpsIcon;
|
|
119
|
-
|
|
120
|
-
// core/Image/styles.ts
|
|
121
|
-
var getBrowserColors = (invert, palette) => {
|
|
122
|
-
return invert ? {
|
|
123
|
-
color: palette.background,
|
|
124
|
-
barBgColor: palette.foreground,
|
|
125
|
-
inputBgColor: palette.accents_8,
|
|
126
|
-
borderColor: palette.accents_7,
|
|
127
|
-
titleColor: palette.accents_2
|
|
128
|
-
} : {
|
|
129
|
-
color: palette.foreground,
|
|
130
|
-
barBgColor: palette.background,
|
|
131
|
-
inputBgColor: palette.accents_1,
|
|
132
|
-
borderColor: palette.border,
|
|
133
|
-
titleColor: palette.accents_5
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
// core/Image/ImageBrowser.tsx
|
|
138
|
-
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
139
|
-
var getTitle = (title, colors) => /* @__PURE__ */ jsxs3("div", { className: _JSXStyle4.dynamic([["524099755", [colors.titleColor]]]) + " title", children: [
|
|
140
|
-
title,
|
|
141
|
-
/* @__PURE__ */ jsx4(_JSXStyle4, { id: "524099755", dynamic: [colors.titleColor], children: `.title.__jsx-style-dynamic-selector{color:${colors.titleColor};font-size:0.75em;}` })
|
|
142
|
-
] });
|
|
143
|
-
var getAddressInput = (url, showFullLink, colors, anchorProps) => /* @__PURE__ */ jsxs3("div", { className: _JSXStyle4.dynamic([["3718009574", [colors.inputBgColor]]]) + " address-input", children: [
|
|
144
|
-
/* @__PURE__ */ jsx4("span", { className: _JSXStyle4.dynamic([["3718009574", [colors.inputBgColor]]]) + " https", children: /* @__PURE__ */ jsx4(ImageBrowserHttpsIcon_default, {}) }),
|
|
145
|
-
/* @__PURE__ */ jsx4(Link_default, { href: url, title: url, target: "_blank", ...anchorProps, children: showFullLink ? url : getHostFromUrl(url) }),
|
|
146
|
-
/* @__PURE__ */ jsx4(_JSXStyle4, { id: "3718009574", dynamic: [colors.inputBgColor], children: `.address-input.__jsx-style-dynamic-selector{height:1.75em;max-width:60%;min-width:40%;background-color:${colors.inputBgColor};color:inherit;border-radius:3px;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:0 10px;overflow:hidden;position:relative;}.address-input.__jsx-style-dynamic-selector *{font-size:0.75em;color:inherit;}.address-input.__jsx-style-dynamic-selector a{max-width:90%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:inline-block;color:inherit;}.https.__jsx-style-dynamic-selector{width:0.75em;height:0.75em;font-size:1em;margin-right:0.31em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-top:-1px;color:inherit;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;}` })
|
|
147
|
-
] });
|
|
148
|
-
var ImageBrowserComponent = React4.forwardRef(({
|
|
149
|
-
url,
|
|
150
|
-
title,
|
|
151
|
-
children,
|
|
152
|
-
showFullLink = false,
|
|
153
|
-
invert = false,
|
|
154
|
-
anchorProps = {},
|
|
155
|
-
className = "",
|
|
156
|
-
...props
|
|
157
|
-
}, ref) => {
|
|
158
|
-
const theme = use_theme_default();
|
|
159
|
-
const {
|
|
160
|
-
SCALES
|
|
161
|
-
} = use_scale_default();
|
|
162
|
-
const colors = useMemo2(() => getBrowserColors(invert, theme.palette), [invert, theme.palette]);
|
|
163
|
-
const input = useMemo2(() => {
|
|
164
|
-
if (url) return getAddressInput(url, showFullLink, colors, anchorProps);
|
|
165
|
-
if (title) return getTitle(title, colors);
|
|
166
|
-
return null;
|
|
167
|
-
}, [url, showFullLink, title, colors, anchorProps]);
|
|
168
|
-
return /* @__PURE__ */ jsxs3("div", { ref, ...props, className: _JSXStyle4.dynamic([["2129234839", [theme.expressiveness.shadowLarge, theme.layout.radius, SCALES.font(1), SCALES.width(1, "max-content"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme.layout.gapHalf]]]) + " " + (props && props.className != null && props.className || use_classes_default("browser", className) || ""), children: [
|
|
169
|
-
/* @__PURE__ */ jsxs3("header", { className: _JSXStyle4.dynamic([["2129234839", [theme.expressiveness.shadowLarge, theme.layout.radius, SCALES.font(1), SCALES.width(1, "max-content"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme.layout.gapHalf]]]), children: [
|
|
170
|
-
/* @__PURE__ */ jsxs3("div", { className: _JSXStyle4.dynamic([["2129234839", [theme.expressiveness.shadowLarge, theme.layout.radius, SCALES.font(1), SCALES.width(1, "max-content"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme.layout.gapHalf]]]) + " traffic", children: [
|
|
171
|
-
/* @__PURE__ */ jsx4("span", { className: _JSXStyle4.dynamic([["2129234839", [theme.expressiveness.shadowLarge, theme.layout.radius, SCALES.font(1), SCALES.width(1, "max-content"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme.layout.gapHalf]]]) + " close" }),
|
|
172
|
-
/* @__PURE__ */ jsx4("span", { className: _JSXStyle4.dynamic([["2129234839", [theme.expressiveness.shadowLarge, theme.layout.radius, SCALES.font(1), SCALES.width(1, "max-content"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme.layout.gapHalf]]]) + " mini" }),
|
|
173
|
-
/* @__PURE__ */ jsx4("span", { className: _JSXStyle4.dynamic([["2129234839", [theme.expressiveness.shadowLarge, theme.layout.radius, SCALES.font(1), SCALES.width(1, "max-content"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme.layout.gapHalf]]]) + " full" })
|
|
174
|
-
] }),
|
|
175
|
-
input
|
|
176
|
-
] }),
|
|
177
|
-
children,
|
|
178
|
-
/* @__PURE__ */ jsx4(_JSXStyle4, { id: "2129234839", dynamic: [theme.expressiveness.shadowLarge, theme.layout.radius, SCALES.font(1), SCALES.width(1, "max-content"), SCALES.height(1, "auto"), SCALES.mt(0), SCALES.mr(0, "auto"), SCALES.mb(0), SCALES.ml(0, "auto"), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), colors.color, colors.barBgColor, colors.borderColor, theme.layout.gapHalf], children: `.browser.__jsx-style-dynamic-selector{background-color:transparent;box-shadow:${theme.expressiveness.shadowLarge};max-width:100%;border-radius:${theme.layout.radius};overflow:hidden;font-size:${SCALES.font(1)};width:${SCALES.width(1, "max-content")};height:${SCALES.height(1, "auto")};margin:${SCALES.mt(0)} ${SCALES.mr(0, "auto")} ${SCALES.mb(0)} ${SCALES.ml(0, "auto")};padding:${SCALES.pt(0)} ${SCALES.pr(0)} ${SCALES.pb(0)} ${SCALES.pl(0)};}.browser.__jsx-style-dynamic-selector .image{border-top-left-radius:0;border-top-right-radius:0;}header.__jsx-style-dynamic-selector{height:2.5em;width:100%;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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:relative;color:${colors.color};background-color:${colors.barBgColor};border-bottom:1px solid ${colors.borderColor};}.traffic.__jsx-style-dynamic-selector{width:auto;position:absolute;left:${theme.layout.gapHalf};top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);bottom:0;height:100%;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;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:inherit;}.traffic.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{border-radius:50%;width:0.75em;height:0.75em;max-width:20px;max-height:20px;display:inline-block;margin-right:0.5em;}.close.__jsx-style-dynamic-selector{background-color:#ff5f56;}.mini.__jsx-style-dynamic-selector{background-color:#ffbd2e;}.full.__jsx-style-dynamic-selector{background-color:#27c93f;}` })
|
|
179
|
-
] });
|
|
180
|
-
});
|
|
181
|
-
ImageBrowserComponent.displayName = "BolioUIImageBrowser";
|
|
182
|
-
var ImageBrowser = with_scale_default(ImageBrowserComponent);
|
|
183
|
-
var ImageBrowser_default = ImageBrowser;
|
|
184
|
-
|
|
185
|
-
// core/Image/index.ts
|
|
186
|
-
Image_default.Browser = ImageBrowser_default;
|
|
187
|
-
var Image_default2 = Image_default;
|
|
188
|
-
|
|
189
|
-
export {
|
|
190
|
-
Image_default2 as Image_default
|
|
191
|
-
};
|
package/esm/chunk-CV4DIXTB.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
addColorAlpha
|
|
3
|
-
} from "./chunk-RZBEZ26A.js";
|
|
4
|
-
import {
|
|
5
|
-
use_scale_default,
|
|
6
|
-
with_scale_default
|
|
7
|
-
} from "./chunk-S62PPQHN.js";
|
|
8
|
-
import {
|
|
9
|
-
use_theme_default
|
|
10
|
-
} from "./chunk-45MVPPJN.js";
|
|
11
|
-
|
|
12
|
-
// core/Code/Code.tsx
|
|
13
|
-
import _JSXStyle from "styled-jsx/style";
|
|
14
|
-
import React, { useMemo } from "react";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
var CodeComponent = React.forwardRef(({
|
|
17
|
-
children,
|
|
18
|
-
block = false,
|
|
19
|
-
className = "",
|
|
20
|
-
name = "",
|
|
21
|
-
classic = false,
|
|
22
|
-
tabs = [],
|
|
23
|
-
activeTab = 0,
|
|
24
|
-
onTabChange,
|
|
25
|
-
...props
|
|
26
|
-
}, ref) => {
|
|
27
|
-
const {
|
|
28
|
-
SCALES
|
|
29
|
-
} = use_scale_default();
|
|
30
|
-
const theme = use_theme_default();
|
|
31
|
-
const id = React.useId();
|
|
32
|
-
const tabRefs = React.useRef([]);
|
|
33
|
-
const {
|
|
34
|
-
background,
|
|
35
|
-
border,
|
|
36
|
-
tab
|
|
37
|
-
} = useMemo(() => {
|
|
38
|
-
if (!classic) return {
|
|
39
|
-
border: theme.palette.accents_2,
|
|
40
|
-
background: addColorAlpha(theme.palette.accents_1, 0.75),
|
|
41
|
-
tab: theme.palette.accents_1
|
|
42
|
-
};
|
|
43
|
-
return {
|
|
44
|
-
border: theme.palette.accents_2,
|
|
45
|
-
background: theme.palette.background,
|
|
46
|
-
tab: theme.palette.background
|
|
47
|
-
};
|
|
48
|
-
}, [classic, theme.palette]);
|
|
49
|
-
const hasTabs = tabs.length > 0;
|
|
50
|
-
const moveTab = (event, index) => {
|
|
51
|
-
var _a;
|
|
52
|
-
const last = tabs.length - 1;
|
|
53
|
-
const target = {
|
|
54
|
-
ArrowRight: index === last ? 0 : index + 1,
|
|
55
|
-
ArrowLeft: index === 0 ? last : index - 1,
|
|
56
|
-
Home: 0,
|
|
57
|
-
End: last
|
|
58
|
-
}[event.key];
|
|
59
|
-
if (target === void 0) return;
|
|
60
|
-
event.preventDefault();
|
|
61
|
-
onTabChange == null ? void 0 : onTabChange(target);
|
|
62
|
-
(_a = tabRefs.current[target]) == null ? void 0 : _a.focus();
|
|
63
|
-
};
|
|
64
|
-
if (!block) return /* @__PURE__ */ jsx("code", { ref, ...props, children });
|
|
65
|
-
return /* @__PURE__ */ jsxs("div", { ref, className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]) + " pre", children: [
|
|
66
|
-
/* @__PURE__ */ jsxs("header", { className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]), children: [
|
|
67
|
-
/* @__PURE__ */ jsxs("div", { className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]) + " traffic", children: [
|
|
68
|
-
/* @__PURE__ */ jsx("span", { className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]) + " close" }),
|
|
69
|
-
/* @__PURE__ */ jsx("span", { className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]) + " mini" }),
|
|
70
|
-
/* @__PURE__ */ jsx("span", { className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]) + " full" })
|
|
71
|
-
] }),
|
|
72
|
-
hasTabs ? /* @__PURE__ */ jsx("div", { role: "tablist", className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]) + " tabs", children: tabs.map((label, index) => /* @__PURE__ */ jsx("button", { ref: (element) => {
|
|
73
|
-
tabRefs.current[index] = element;
|
|
74
|
-
}, type: "button", role: "tab", id: `${id}-tab-${index}`, "aria-selected": index === activeTab, "aria-controls": `${id}-panel`, tabIndex: index === activeTab ? 0 : -1, onClick: () => onTabChange == null ? void 0 : onTabChange(index), onKeyDown: (event) => moveTab(event, index), className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]) + ` name tab${index === activeTab ? " active" : ""}`, children: /* @__PURE__ */ jsx("span", { className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]), children: label }) }, `${label}-${index}`)) }) : name && /* @__PURE__ */ jsx("div", { className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]) + " name active", children: name })
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ jsx("pre", { ...hasTabs && {
|
|
77
|
-
role: "tabpanel",
|
|
78
|
-
id: `${id}-panel`,
|
|
79
|
-
"aria-labelledby": `${id}-tab-${activeTab}`
|
|
80
|
-
}, ...props, className: _JSXStyle.dynamic([["1321188974", [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5]]]) + " " + (props && props.className != null && props.className || className || ""), children }),
|
|
81
|
-
/* @__PURE__ */ jsx(_JSXStyle, { id: "1321188974", dynamic: [border, SCALES.font(0.875), SCALES.width(1, "initial"), SCALES.height(1, "auto"), SCALES.mt(1.3), SCALES.mr(0), SCALES.mb(1.3), SCALES.ml(0), theme.layout.radius, background, SCALES.pt(1.1), SCALES.pr(1), SCALES.pb(1.1), SCALES.pl(1), theme.palette.accents_2, theme.palette.border, theme.layout.gapHalf, theme.palette.accents_2, theme.palette.accents_5, SCALES.font(0.8125), SCALES.font(0.32), SCALES.font(0.5), SCALES.font(0.32), SCALES.font(0.5), tab, theme.palette.foreground, theme.palette.accents_5], children: `.pre.__jsx-style-dynamic-selector{max-width:100%;border:1px solid ${border};font-size:${SCALES.font(0.875)};width:${SCALES.width(1, "initial")};height:${SCALES.height(1, "auto")};margin:${SCALES.mt(1.3)} ${SCALES.mr(0)} ${SCALES.mb(1.3)} ${SCALES.ml(0)};border-radius:${theme.layout.radius};background-color:${background};overflow:hidden;}pre.__jsx-style-dynamic-selector{max-width:100%;font-size:inherit;border:none;border-radius:0;margin:0;line-height:1.5em;padding:${SCALES.pt(1.1)} ${SCALES.pr(1)} ${SCALES.pb(1.1)} ${SCALES.pl(1)};}.dark.__jsx-style-dynamic-selector{color:white;background:black;}.dark.__jsx-style-dynamic-selector code.__jsx-style-dynamic-selector{color:white;}header.__jsx-style-dynamic-selector{height:2.5em;width:100%;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;border-bottom:1px solid ${theme.palette.accents_2};background-color:${theme.palette.border};}.traffic.__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;padding:0 ${theme.layout.gapHalf};-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.traffic.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{border-radius:50%;width:0.75em;height:0.75em;max-width:12px;max-height:12px;display:inline-block;margin-right:0.5em;}.traffic.__jsx-style-dynamic-selector .close.__jsx-style-dynamic-selector{background-color:#ff5f56;}.traffic.__jsx-style-dynamic-selector .mini.__jsx-style-dynamic-selector{background-color:#ffbd2e;}.traffic.__jsx-style-dynamic-selector .full.__jsx-style-dynamic-selector{background-color:#27c93f;}.tabs.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;max-width:100%;}.tab.__jsx-style-dynamic-selector{min-width:0;}.tab.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{overflow:hidden;text-overflow:ellipsis;}.name.__jsx-style-dynamic-selector{margin-bottom:-1px;border:none;border-right:1px solid ${theme.palette.accents_2};background-color:transparent;color:${theme.palette.accents_5};height:auto;line-height:1.35em;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;font-size:${SCALES.font(0.8125)};padding:${SCALES.font(0.32)} ${SCALES.font(0.5)} ${SCALES.font(0.32)} ${SCALES.font(0.5)};width:auto;white-space:nowrap;}.name.active.__jsx-style-dynamic-selector{background-color:${tab};}.tab.__jsx-style-dynamic-selector{font-family:inherit;cursor:pointer;}.tab.__jsx-style-dynamic-selector:hover,.tab.active.__jsx-style-dynamic-selector{color:${theme.palette.foreground};}.tab.__jsx-style-dynamic-selector:focus-visible{outline:2px solid ${theme.palette.accents_5};outline-offset:-2px;}` })
|
|
82
|
-
] });
|
|
83
|
-
});
|
|
84
|
-
CodeComponent.displayName = "BolioUICode";
|
|
85
|
-
var Code = with_scale_default(CodeComponent);
|
|
86
|
-
var Code_default = Code;
|
|
87
|
-
|
|
88
|
-
// core/Code/index.ts
|
|
89
|
-
var Code_default2 = Code_default;
|
|
90
|
-
|
|
91
|
-
export {
|
|
92
|
-
Code_default2 as Code_default
|
|
93
|
-
};
|
package/esm/chunk-DD72MTCX.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
use_scale_default,
|
|
3
|
-
with_scale_default
|
|
4
|
-
} from "./chunk-S62PPQHN.js";
|
|
5
|
-
import {
|
|
6
|
-
use_theme_default
|
|
7
|
-
} from "./chunk-45MVPPJN.js";
|
|
8
|
-
import {
|
|
9
|
-
use_classes_default
|
|
10
|
-
} from "./chunk-5KUROAEP.js";
|
|
11
|
-
|
|
12
|
-
// core/Dot/Dot.tsx
|
|
13
|
-
import _JSXStyle from "styled-jsx/style";
|
|
14
|
-
import React, { useMemo } from "react";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
var getColor = (type, theme) => {
|
|
17
|
-
const colors = {
|
|
18
|
-
default: theme.palette.accents_2,
|
|
19
|
-
primary: theme.palette.primary,
|
|
20
|
-
secondary: theme.palette.secondary,
|
|
21
|
-
success: theme.palette.success,
|
|
22
|
-
warning: theme.palette.warning,
|
|
23
|
-
error: theme.palette.error,
|
|
24
|
-
info: theme.palette.info
|
|
25
|
-
};
|
|
26
|
-
return colors[type] || colors.default;
|
|
27
|
-
};
|
|
28
|
-
var DotComponent = React.forwardRef(({
|
|
29
|
-
type = "default",
|
|
30
|
-
children,
|
|
31
|
-
className = "",
|
|
32
|
-
color = "",
|
|
33
|
-
...props
|
|
34
|
-
}, ref) => {
|
|
35
|
-
const theme = use_theme_default();
|
|
36
|
-
const {
|
|
37
|
-
SCALES
|
|
38
|
-
} = use_scale_default();
|
|
39
|
-
const typeColor = useMemo(() => getColor(type, theme), [type, theme]);
|
|
40
|
-
return /* @__PURE__ */ jsxs("span", { ref, ...props, className: _JSXStyle.dynamic([["2211116772", [SCALES.font(1), SCALES.width(1, "auto"), 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), color ? color : typeColor]]]) + " " + (props && props.className != null && props.className || use_classes_default("dot", className) || ""), children: [
|
|
41
|
-
/* @__PURE__ */ jsx("span", { className: _JSXStyle.dynamic([["2211116772", [SCALES.font(1), SCALES.width(1, "auto"), 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), color ? color : typeColor]]]) + " icon" }),
|
|
42
|
-
/* @__PURE__ */ jsx("span", { className: _JSXStyle.dynamic([["2211116772", [SCALES.font(1), SCALES.width(1, "auto"), 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), color ? color : typeColor]]]) + " label", children }),
|
|
43
|
-
/* @__PURE__ */ jsx(_JSXStyle, { id: "2211116772", dynamic: [SCALES.font(1), SCALES.width(1, "auto"), 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), color ? color : typeColor], children: `.dot.__jsx-style-dynamic-selector{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;font-size:${SCALES.font(1)};width:${SCALES.width(1, "auto")};height:${SCALES.height(1, "auto")};padding:${SCALES.pt(0)} ${SCALES.pr(0)} ${SCALES.pb(0)} ${SCALES.pl(0)};margin:${SCALES.mt(0)} ${SCALES.mr(0)} ${SCALES.mb(0)} ${SCALES.ml(0)};}.icon.__jsx-style-dynamic-selector{width:0.625em;height:0.625em;min-width:calc(0.625 * 12px);min-height:calc(0.625 * 12px);line-height:0.625em;border-radius:50%;background-color:${color ? color : typeColor};-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.label.__jsx-style-dynamic-selector{margin-left:0.5em;font-size:1em;line-height:1em;text-transform:capitalize;}` })
|
|
44
|
-
] });
|
|
45
|
-
});
|
|
46
|
-
DotComponent.displayName = "BolioUIDot";
|
|
47
|
-
var Dot = with_scale_default(DotComponent);
|
|
48
|
-
var Dot_default = Dot;
|
|
49
|
-
|
|
50
|
-
// core/Dot/index.ts
|
|
51
|
-
var Dot_default2 = Dot_default;
|
|
52
|
-
|
|
53
|
-
export {
|
|
54
|
-
Dot_default2 as Dot_default
|
|
55
|
-
};
|
package/esm/chunk-DTRBG524.js
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ModalContent_default,
|
|
3
|
-
ModalSubtitle_default,
|
|
4
|
-
ModalTitle_default,
|
|
5
|
-
backdrop_default,
|
|
6
|
-
use_body_scroll_default
|
|
7
|
-
} from "./chunk-K53ERLS7.js";
|
|
8
|
-
import {
|
|
9
|
-
use_keyboard_default
|
|
10
|
-
} from "./chunk-F3AL4TQZ.js";
|
|
11
|
-
import {
|
|
12
|
-
css_transition_default
|
|
13
|
-
} from "./chunk-LDTDMDE6.js";
|
|
14
|
-
import {
|
|
15
|
-
use_portal_default
|
|
16
|
-
} from "./chunk-BXDUHMWS.js";
|
|
17
|
-
import {
|
|
18
|
-
use_scale_default,
|
|
19
|
-
with_scale_default
|
|
20
|
-
} from "./chunk-S62PPQHN.js";
|
|
21
|
-
import {
|
|
22
|
-
isChildElement
|
|
23
|
-
} from "./chunk-UX2B3G6U.js";
|
|
24
|
-
import {
|
|
25
|
-
use_theme_default
|
|
26
|
-
} from "./chunk-45MVPPJN.js";
|
|
27
|
-
import {
|
|
28
|
-
use_classes_default
|
|
29
|
-
} from "./chunk-5KUROAEP.js";
|
|
30
|
-
|
|
31
|
-
// core/Drawer/Drawer.tsx
|
|
32
|
-
import React2, { useEffect as useEffect2, useState } from "react";
|
|
33
|
-
import { createPortal } from "react-dom";
|
|
34
|
-
|
|
35
|
-
// core/Drawer/DrawerWrapper.tsx
|
|
36
|
-
import _JSXStyle from "styled-jsx/style";
|
|
37
|
-
import React, { useEffect, useImperativeHandle, useMemo, useRef } from "react";
|
|
38
|
-
|
|
39
|
-
// core/Drawer/helper.ts
|
|
40
|
-
var getDrawerTransform = (placement) => {
|
|
41
|
-
const translates = {
|
|
42
|
-
top: {
|
|
43
|
-
initial: "translate3d(0, -100%, 0)",
|
|
44
|
-
hidden: "translate3d(0, -100%, 0)",
|
|
45
|
-
visible: "translate3d(0, 0, 0)"
|
|
46
|
-
},
|
|
47
|
-
left: {
|
|
48
|
-
initial: "translate3d(-100%, 0, 0)",
|
|
49
|
-
hidden: "translate3d(-100%, 0, 0)",
|
|
50
|
-
visible: "translate3d(0, 0, 0)"
|
|
51
|
-
},
|
|
52
|
-
bottom: {
|
|
53
|
-
initial: "translate3d(0, 100%, 0)",
|
|
54
|
-
hidden: "translate3d(0, 100%, 0)",
|
|
55
|
-
visible: "translate3d(0, 0, 0)"
|
|
56
|
-
},
|
|
57
|
-
right: {
|
|
58
|
-
initial: "translate3d(100%, 0, 0)",
|
|
59
|
-
hidden: "translate3d(100%, 0, 0)",
|
|
60
|
-
visible: "translate3d(0, 0, 0)"
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
return translates[placement];
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// core/Drawer/DrawerWrapper.tsx
|
|
67
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
68
|
-
var DrawerWrapper = React.forwardRef(({
|
|
69
|
-
className = "",
|
|
70
|
-
children,
|
|
71
|
-
visible = false,
|
|
72
|
-
placement,
|
|
73
|
-
...props
|
|
74
|
-
}, ref) => {
|
|
75
|
-
const theme = use_theme_default();
|
|
76
|
-
const {
|
|
77
|
-
SCALES
|
|
78
|
-
} = use_scale_default();
|
|
79
|
-
const modalContent = useRef(null);
|
|
80
|
-
useImperativeHandle(ref, () => modalContent.current);
|
|
81
|
-
const tabStart = useRef(null);
|
|
82
|
-
const tabEnd = useRef(null);
|
|
83
|
-
const transform = useMemo(() => getDrawerTransform(placement), [placement]);
|
|
84
|
-
const classes = use_classes_default("wrapper", placement, className);
|
|
85
|
-
useEffect(() => {
|
|
86
|
-
if (!visible) return;
|
|
87
|
-
const activeElement = document.activeElement;
|
|
88
|
-
const isChild = isChildElement(modalContent.current, activeElement);
|
|
89
|
-
if (isChild) return;
|
|
90
|
-
if (tabStart.current) tabStart.current.focus();
|
|
91
|
-
}, [visible]);
|
|
92
|
-
const onKeyDown = (event) => {
|
|
93
|
-
const isTabDown = event.keyCode === 9;
|
|
94
|
-
if (!visible || !isTabDown) return;
|
|
95
|
-
const activeElement = document.activeElement;
|
|
96
|
-
if (event.shiftKey) {
|
|
97
|
-
if (activeElement === tabStart.current) {
|
|
98
|
-
if (tabEnd.current) tabEnd.current.focus();
|
|
99
|
-
}
|
|
100
|
-
} else {
|
|
101
|
-
if (activeElement === tabEnd.current) {
|
|
102
|
-
if (tabStart.current) tabStart.current.focus();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
return /* @__PURE__ */ jsx(css_transition_default, { name: "wrapper", visible, clearTime: 300, children: /* @__PURE__ */ jsxs("div", { role: "dialog", "aria-modal": "true", tabIndex: -1, onKeyDown, ref: modalContent, ...props, className: _JSXStyle.dynamic([["157760385", [theme.palette.background, theme.palette.foreground, theme.layout.radius, theme.expressiveness.shadowLarge, transform.initial, SCALES.font(1), SCALES.pl(1.3125), SCALES.pr(1.3125), SCALES.pt(1.3125), SCALES.pb(1.3125), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, "100%"), SCALES.height(1, "auto"), SCALES.width(1, "auto"), SCALES.height(1, "100%"), transform.hidden, transform.visible, transform.visible, transform.hidden]]]) + " " + (props && props.className != null && props.className || classes || ""), children: [
|
|
107
|
-
/* @__PURE__ */ jsx("div", { tabIndex: 0, "aria-hidden": "true", ref: tabStart, className: _JSXStyle.dynamic([["157760385", [theme.palette.background, theme.palette.foreground, theme.layout.radius, theme.expressiveness.shadowLarge, transform.initial, SCALES.font(1), SCALES.pl(1.3125), SCALES.pr(1.3125), SCALES.pt(1.3125), SCALES.pb(1.3125), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, "100%"), SCALES.height(1, "auto"), SCALES.width(1, "auto"), SCALES.height(1, "100%"), transform.hidden, transform.visible, transform.visible, transform.hidden]]]) + " hide-tab start" }),
|
|
108
|
-
children,
|
|
109
|
-
/* @__PURE__ */ jsx("div", { tabIndex: 0, "aria-hidden": "true", ref: tabEnd, className: _JSXStyle.dynamic([["157760385", [theme.palette.background, theme.palette.foreground, theme.layout.radius, theme.expressiveness.shadowLarge, transform.initial, SCALES.font(1), SCALES.pl(1.3125), SCALES.pr(1.3125), SCALES.pt(1.3125), SCALES.pb(1.3125), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, "100%"), SCALES.height(1, "auto"), SCALES.width(1, "auto"), SCALES.height(1, "100%"), transform.hidden, transform.visible, transform.visible, transform.hidden]]]) + " hide-tab end" }),
|
|
110
|
-
/* @__PURE__ */ jsx(_JSXStyle, { id: "157760385", dynamic: [theme.palette.background, theme.palette.foreground, theme.layout.radius, theme.expressiveness.shadowLarge, transform.initial, SCALES.font(1), SCALES.pl(1.3125), SCALES.pr(1.3125), SCALES.pt(1.3125), SCALES.pb(1.3125), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, "100%"), SCALES.height(1, "auto"), SCALES.width(1, "auto"), SCALES.height(1, "100%"), transform.hidden, transform.visible, transform.visible, transform.hidden], children: `.wrapper.__jsx-style-dynamic-selector{position:fixed;top:0;left:0;right:0;bottom:0;max-width:100%;vertical-align:middle;overflow:auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;background-color:${theme.palette.background};color:${theme.palette.foreground};border-radius:calc(3 * ${theme.layout.radius});box-shadow:${theme.expressiveness.shadowLarge};opacity:0;outline:none;-webkit-transform:${transform.initial};-ms-transform:${transform.initial};transform:${transform.initial};-webkit-transition: opacity, -webkit-transform 400ms cubic-bezier(0.1,0.6,0.1,1);-webkit-transition: opacity, transform 400ms cubic-bezier(0.1,0.6,0.1,1);transition: opacity, transform 400ms cubic-bezier(0.1,0.6,0.1,1);font-size:${SCALES.font(1)};--modal-wrapper-padding-left:${SCALES.pl(1.3125)};--modal-wrapper-padding-right:${SCALES.pr(1.3125)};padding:${SCALES.pt(1.3125)} var(--modal-wrapper-padding-right) ${SCALES.pb(1.3125)} var(--modal-wrapper-padding-left);margin:${SCALES.mt(0)} ${SCALES.mr(0)} ${SCALES.mb(0)} ${SCALES.ml(0)};}.top.__jsx-style-dynamic-selector,.bottom.__jsx-style-dynamic-selector{width:${SCALES.width(1, "100%")};height:${SCALES.height(1, "auto")};}.left.__jsx-style-dynamic-selector,.right.__jsx-style-dynamic-selector{width:${SCALES.width(1, "auto")};height:${SCALES.height(1, "100%")};}.top.__jsx-style-dynamic-selector{bottom:auto;border-top-left-radius:0;border-top-right-radius:0;}.left.__jsx-style-dynamic-selector{right:auto;border-top-left-radius:0;border-bottom-left-radius:0;}.bottom.__jsx-style-dynamic-selector{top:auto;border-bottom-left-radius:0;border-bottom-right-radius:0;}.right.__jsx-style-dynamic-selector{left:auto;border-top-right-radius:0;border-bottom-right-radius:0;}.wrapper-enter.__jsx-style-dynamic-selector{opacity:0;-webkit-transform:${transform.hidden};-ms-transform:${transform.hidden};transform:${transform.hidden};}.wrapper-enter-active.__jsx-style-dynamic-selector{opacity:1;-webkit-transform:${transform.visible};-ms-transform:${transform.visible};transform:${transform.visible};}.wrapper-leave.__jsx-style-dynamic-selector{opacity:1;-webkit-transform:${transform.visible};-ms-transform:${transform.visible};transform:${transform.visible};-webkit-transition: opacity, -webkit-transform 400ms cubic-bezier(0.1,0.2,0.1,1);-webkit-transition: opacity, transform 400ms cubic-bezier(0.1,0.2,0.1,1);transition: opacity, transform 400ms cubic-bezier(0.1,0.2,0.1,1);}.wrapper-leave-active.__jsx-style-dynamic-selector{opacity:0.4;-webkit-transform:${transform.hidden};-ms-transform:${transform.hidden};transform:${transform.hidden};}.hide-tab.__jsx-style-dynamic-selector{outline:none;overflow:hidden;width:0;height:0;opacity:0;}` })
|
|
111
|
-
] }) });
|
|
112
|
-
});
|
|
113
|
-
DrawerWrapper.displayName = "BolioUIDrawerWrapper";
|
|
114
|
-
var DrawerWrapper_default = DrawerWrapper;
|
|
115
|
-
|
|
116
|
-
// core/Drawer/Drawer.tsx
|
|
117
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
118
|
-
var DrawerComponent = React2.forwardRef(
|
|
119
|
-
({
|
|
120
|
-
visible: customVisible,
|
|
121
|
-
keyboard = true,
|
|
122
|
-
disableBackdropClick,
|
|
123
|
-
wrapClassName,
|
|
124
|
-
children,
|
|
125
|
-
placement,
|
|
126
|
-
onClose,
|
|
127
|
-
onContentClick,
|
|
128
|
-
...props
|
|
129
|
-
}, ref) => {
|
|
130
|
-
const portal = use_portal_default("drawer");
|
|
131
|
-
const [visible, setVisible] = useState(false);
|
|
132
|
-
const [, setBodyHidden] = use_body_scroll_default(null, { delayReset: 300 });
|
|
133
|
-
const closeDrawer = () => {
|
|
134
|
-
if (onClose) onClose();
|
|
135
|
-
setVisible(false);
|
|
136
|
-
setBodyHidden(false);
|
|
137
|
-
};
|
|
138
|
-
useEffect2(() => {
|
|
139
|
-
if (typeof customVisible === "undefined") return;
|
|
140
|
-
setVisible(customVisible);
|
|
141
|
-
setBodyHidden(customVisible);
|
|
142
|
-
}, [customVisible, setBodyHidden]);
|
|
143
|
-
const { bindings } = use_keyboard_default(
|
|
144
|
-
() => {
|
|
145
|
-
if (keyboard) closeDrawer();
|
|
146
|
-
},
|
|
147
|
-
27 /* Escape */,
|
|
148
|
-
{
|
|
149
|
-
disableGlobalEvent: true
|
|
150
|
-
}
|
|
151
|
-
);
|
|
152
|
-
const closeFromBackdrop = () => {
|
|
153
|
-
if (disableBackdropClick) return;
|
|
154
|
-
closeDrawer();
|
|
155
|
-
};
|
|
156
|
-
if (!portal) return null;
|
|
157
|
-
return createPortal(
|
|
158
|
-
/* @__PURE__ */ jsx2(
|
|
159
|
-
backdrop_default,
|
|
160
|
-
{
|
|
161
|
-
onClick: closeFromBackdrop,
|
|
162
|
-
onContentClick,
|
|
163
|
-
visible,
|
|
164
|
-
width: "100%",
|
|
165
|
-
...bindings,
|
|
166
|
-
children: /* @__PURE__ */ jsx2(
|
|
167
|
-
DrawerWrapper_default,
|
|
168
|
-
{
|
|
169
|
-
ref,
|
|
170
|
-
visible,
|
|
171
|
-
className: wrapClassName,
|
|
172
|
-
placement,
|
|
173
|
-
...props,
|
|
174
|
-
children
|
|
175
|
-
}
|
|
176
|
-
)
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
portal
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
);
|
|
183
|
-
DrawerComponent.displayName = "BolioUIDrawer";
|
|
184
|
-
var Drawer = with_scale_default(DrawerComponent);
|
|
185
|
-
var Drawer_default = Drawer;
|
|
186
|
-
|
|
187
|
-
// core/Drawer/index.ts
|
|
188
|
-
Drawer_default.Title = ModalTitle_default;
|
|
189
|
-
Drawer_default.Subtitle = ModalSubtitle_default;
|
|
190
|
-
Drawer_default.Content = ModalContent_default;
|
|
191
|
-
var Drawer_default2 = Drawer_default;
|
|
192
|
-
|
|
193
|
-
export {
|
|
194
|
-
Drawer_default2 as Drawer_default
|
|
195
|
-
};
|