@forgedevstack/bear 1.0.2 → 1.0.4-alpha
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/components/Accordion/Accordion.cjs +1 -1
- package/dist/components/Accordion/Accordion.const.cjs +1 -0
- package/dist/components/Accordion/Accordion.const.d.ts +10 -0
- package/dist/components/Accordion/Accordion.const.js +8 -0
- package/dist/components/Accordion/Accordion.d.ts +1 -0
- package/dist/components/Accordion/Accordion.js +49 -44
- package/dist/components/Accordion/Accordion.types.d.ts +2 -0
- package/dist/components/Accordion/index.d.ts +3 -2
- package/dist/components/ActiveBar/ActiveBar.cjs +8 -0
- package/dist/components/ActiveBar/ActiveBar.d.ts +2 -0
- package/dist/components/ActiveBar/ActiveBar.js +90 -0
- package/dist/components/ActiveBar/ActiveBar.types.d.ts +16 -0
- package/dist/components/ActiveBar/index.d.ts +2 -0
- package/dist/components/ActivityItem/ActivityItem.cjs +1 -0
- package/dist/components/ActivityItem/ActivityItem.d.ts +7 -0
- package/dist/components/ActivityItem/ActivityItem.js +44 -0
- package/dist/components/ActivityItem/ActivityItem.types.d.ts +17 -0
- package/dist/components/ActivityItem/index.d.ts +2 -0
- package/dist/components/Alert/Alert.cjs +1 -1
- package/dist/components/Alert/Alert.const.cjs +1 -0
- package/dist/components/Alert/Alert.const.d.ts +14 -0
- package/dist/components/Alert/Alert.const.js +27 -0
- package/dist/components/Alert/Alert.js +54 -63
- package/dist/components/Alert/Alert.types.d.ts +3 -1
- package/dist/components/Avatar/Avatar.cjs +1 -1
- package/dist/components/Avatar/Avatar.const.cjs +1 -0
- package/dist/components/Avatar/Avatar.const.d.ts +28 -0
- package/dist/components/Avatar/Avatar.const.js +28 -0
- package/dist/components/Avatar/Avatar.js +49 -60
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.cjs +1 -1
- package/dist/components/Badge/Badge.js +24 -22
- package/dist/components/BearLogo/EmberLogo.cjs +17 -0
- package/dist/components/BearLogo/EmberLogo.js +91 -0
- package/dist/components/BearLogo/index.d.ts +2 -0
- package/dist/components/Box/Box.cjs +1 -0
- package/dist/components/Box/Box.d.ts +2 -0
- package/dist/components/Box/Box.js +64 -0
- package/dist/components/Box/Box.types.d.ts +24 -0
- package/dist/components/Box/Box.utils.cjs +1 -0
- package/dist/components/Box/Box.utils.d.ts +3 -0
- package/dist/components/Box/Box.utils.js +21 -0
- package/dist/components/Box/index.d.ts +2 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.const.cjs +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.const.d.ts +16 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.const.js +19 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +49 -34
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +8 -1
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.constants.cjs +1 -1
- package/dist/components/Button/Button.constants.d.ts +2 -2
- package/dist/components/Button/Button.constants.js +2 -2
- package/dist/components/Button/Button.js +41 -46
- package/dist/components/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.const.cjs +1 -0
- package/dist/components/Calendar/Calendar.const.d.ts +18 -0
- package/dist/components/Calendar/Calendar.const.js +27 -0
- package/dist/components/Calendar/Calendar.helpers.cjs +1 -0
- package/dist/components/Calendar/Calendar.helpers.d.ts +10 -0
- package/dist/components/Calendar/Calendar.helpers.js +9 -0
- package/dist/components/Calendar/Calendar.js +132 -149
- package/dist/components/Calendar/Calendar.types.d.ts +4 -0
- package/dist/components/Calendar/Calendar.utils.cjs +1 -0
- package/dist/components/Calendar/Calendar.utils.d.ts +41 -0
- package/dist/components/Calendar/Calendar.utils.js +33 -0
- package/dist/components/Calendar/index.d.ts +2 -0
- package/dist/components/Card/Card.cjs +1 -1
- package/dist/components/Card/Card.const.cjs +1 -0
- package/dist/components/Card/Card.const.d.ts +13 -0
- package/dist/components/Card/Card.const.js +32 -0
- package/dist/components/Card/Card.d.ts +1 -0
- package/dist/components/Card/Card.js +101 -105
- package/dist/components/Card/index.d.ts +3 -2
- package/dist/components/Chart/Chart.cjs +1 -0
- package/dist/components/Chart/Chart.const.d.ts +15 -0
- package/dist/components/Chart/Chart.d.ts +18 -0
- package/dist/components/Chart/Chart.js +225 -0
- package/dist/components/Chart/Chart.types.d.ts +51 -0
- package/dist/components/Chart/Chart.utils.d.ts +31 -0
- package/dist/components/Chart/index.d.ts +2 -0
- package/dist/components/CodeBlock/CodeBlock.cjs +2 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +2 -0
- package/dist/components/CodeBlock/CodeBlock.js +68 -0
- package/dist/components/CodeBlock/CodeBlock.types.d.ts +21 -0
- package/dist/components/CodeBlock/index.d.ts +2 -0
- package/dist/components/Columns/Columns.cjs +1 -0
- package/dist/components/Columns/Columns.d.ts +5 -0
- package/dist/components/Columns/Columns.js +54 -0
- package/dist/components/Columns/Columns.types.d.ts +17 -0
- package/dist/components/Columns/index.d.ts +2 -0
- package/dist/components/DateTimePicker/DateTimePicker.cjs +1 -1
- package/dist/components/DateTimePicker/DateTimePicker.js +28 -28
- package/dist/components/Editable/Editable.cjs +1 -0
- package/dist/components/Editable/Editable.d.ts +10 -0
- package/dist/components/Editable/Editable.js +194 -0
- package/dist/components/Editable/Editable.types.d.ts +39 -0
- package/dist/components/Editable/index.d.ts +2 -0
- package/dist/components/Em/Em.cjs +1 -0
- package/dist/components/Em/Em.d.ts +2 -0
- package/dist/components/Em/Em.js +24 -0
- package/dist/components/Em/Em.types.d.ts +5 -0
- package/dist/components/Em/index.d.ts +2 -0
- package/dist/components/Fab/Fab.cjs +1 -1
- package/dist/components/Fab/Fab.js +9 -9
- package/dist/components/Gauge/Gauge.cjs +1 -0
- package/dist/components/Gauge/Gauge.d.ts +3 -0
- package/dist/components/Gauge/Gauge.js +92 -0
- package/dist/components/Gauge/Gauge.types.d.ts +27 -0
- package/dist/components/Gauge/index.d.ts +2 -0
- package/dist/components/Highlight/Highlight.cjs +1 -0
- package/dist/components/Highlight/Highlight.d.ts +2 -0
- package/dist/components/Highlight/Highlight.js +28 -0
- package/dist/components/Highlight/Highlight.types.d.ts +6 -0
- package/dist/components/Highlight/index.d.ts +2 -0
- package/dist/components/HoverCard/HoverCard.cjs +6 -0
- package/dist/components/HoverCard/HoverCard.d.ts +2 -0
- package/dist/components/HoverCard/HoverCard.js +68 -0
- package/dist/components/HoverCard/HoverCard.types.d.ts +13 -0
- package/dist/components/HoverCard/HoverCard.utils.cjs +1 -0
- package/dist/components/HoverCard/HoverCard.utils.d.ts +2 -0
- package/dist/components/HoverCard/HoverCard.utils.js +23 -0
- package/dist/components/HoverCard/index.d.ts +2 -0
- package/dist/components/Icon/icons/editor.cjs +1 -1
- package/dist/components/Icon/icons/editor.d.ts +1 -0
- package/dist/components/Icon/icons/editor.js +66 -61
- package/dist/components/Icon/icons/misc.cjs +1 -1
- package/dist/components/Icon/icons/misc.d.ts +13 -0
- package/dist/components/Icon/icons/misc.js +157 -88
- package/dist/components/Icon/icons/status.js +1 -1
- package/dist/components/Icon/index.cjs +1 -1
- package/dist/components/Icon/index.d.ts +27 -0
- package/dist/components/Icon/index.js +28 -21
- package/dist/components/Input/Input.cjs +1 -1
- package/dist/components/Input/Input.js +36 -35
- package/dist/components/Mark/Mark.cjs +1 -0
- package/dist/components/Mark/Mark.d.ts +2 -0
- package/dist/components/Mark/Mark.js +26 -0
- package/dist/components/Mark/Mark.types.d.ts +5 -0
- package/dist/components/Mark/index.d.ts +2 -0
- package/dist/components/Modal/Modal.cjs +1 -1
- package/dist/components/Modal/Modal.const.cjs +1 -0
- package/dist/components/Modal/Modal.const.d.ts +10 -0
- package/dist/components/Modal/Modal.const.js +17 -0
- package/dist/components/Modal/Modal.d.ts +11 -0
- package/dist/components/Modal/Modal.js +80 -77
- package/dist/components/Modal/Modal.types.d.ts +6 -1
- package/dist/components/Modal/index.d.ts +3 -2
- package/dist/components/Rating/Rating.cjs +1 -1
- package/dist/components/Rating/Rating.const.cjs +1 -0
- package/dist/components/Rating/Rating.const.d.ts +14 -0
- package/dist/components/Rating/Rating.const.js +22 -0
- package/dist/components/Rating/Rating.d.ts +5 -10
- package/dist/components/Rating/Rating.js +135 -93
- package/dist/components/Rating/Rating.types.d.ts +27 -25
- package/dist/components/Rating/index.d.ts +2 -2
- package/dist/components/RichEditor/RichEditor.cjs +1 -0
- package/dist/components/RichEditor/RichEditor.const.cjs +141 -0
- package/dist/components/RichEditor/RichEditor.const.d.ts +137 -0
- package/dist/components/RichEditor/RichEditor.const.js +279 -0
- package/dist/components/RichEditor/RichEditor.d.ts +18 -0
- package/dist/components/RichEditor/RichEditor.js +363 -0
- package/dist/components/RichEditor/RichEditor.types.d.ts +57 -0
- package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.cjs +1 -0
- package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.d.ts +4 -0
- package/dist/components/RichEditor/components/ToolbarButton/ToolbarButton.js +25 -0
- package/dist/components/RichEditor/components/ToolbarButton/index.d.ts +1 -0
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.cjs +1 -0
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.d.ts +4 -0
- package/dist/components/RichEditor/components/ToolbarColorPicker/ToolbarColorPicker.js +126 -0
- package/dist/components/RichEditor/components/ToolbarColorPicker/index.d.ts +1 -0
- package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.cjs +1 -0
- package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.d.ts +4 -0
- package/dist/components/RichEditor/components/ToolbarDropdown/ToolbarDropdown.js +57 -0
- package/dist/components/RichEditor/components/ToolbarDropdown/index.d.ts +1 -0
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.cjs +1 -0
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.d.ts +7 -0
- package/dist/components/RichEditor/components/ToolbarMore/ToolbarMore.js +45 -0
- package/dist/components/RichEditor/components/ToolbarMore/index.d.ts +2 -0
- package/dist/components/RichEditor/components/index.d.ts +4 -0
- package/dist/components/RichEditor/helpers/formatHelpers.cjs +1 -0
- package/dist/components/RichEditor/helpers/formatHelpers.d.ts +57 -0
- package/dist/components/RichEditor/helpers/formatHelpers.js +26 -0
- package/dist/components/RichEditor/helpers/index.d.ts +1 -0
- package/dist/components/RichEditor/index.d.ts +4 -0
- package/dist/components/Sidebar/Sidebar.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.const.cjs +1 -0
- package/dist/components/Sidebar/Sidebar.const.d.ts +16 -0
- package/dist/components/Sidebar/Sidebar.const.js +22 -0
- package/dist/components/Sidebar/Sidebar.d.ts +17 -0
- package/dist/components/Sidebar/Sidebar.js +70 -0
- package/dist/components/Sidebar/Sidebar.types.d.ts +44 -0
- package/dist/components/Sidebar/components/SidebarGroup/SidebarGroup.cjs +1 -0
- package/dist/components/Sidebar/components/SidebarGroup/SidebarGroup.d.ts +4 -0
- package/dist/components/Sidebar/components/SidebarGroup/SidebarGroup.js +45 -0
- package/dist/components/Sidebar/components/SidebarGroup/index.d.ts +2 -0
- package/dist/components/Sidebar/components/SidebarItem/SidebarItem.cjs +1 -0
- package/dist/components/Sidebar/components/SidebarItem/SidebarItem.d.ts +4 -0
- package/dist/components/Sidebar/components/SidebarItem/SidebarItem.js +66 -0
- package/dist/components/Sidebar/components/SidebarItem/index.d.ts +2 -0
- package/dist/components/Sidebar/components/index.d.ts +2 -0
- package/dist/components/Sidebar/index.d.ts +5 -0
- package/dist/components/SignPad/SignPad.cjs +1 -0
- package/dist/components/SignPad/SignPad.const.cjs +1 -0
- package/dist/components/SignPad/SignPad.const.d.ts +19 -0
- package/dist/components/SignPad/SignPad.const.js +20 -0
- package/dist/components/SignPad/SignPad.d.ts +17 -0
- package/dist/components/SignPad/SignPad.js +161 -0
- package/dist/components/SignPad/SignPad.types.d.ts +37 -0
- package/dist/components/SignPad/index.d.ts +3 -0
- package/dist/components/Skeleton/Skeleton.cjs +1 -1
- package/dist/components/Skeleton/Skeleton.const.cjs +36 -0
- package/dist/components/Skeleton/Skeleton.const.d.ts +12 -0
- package/dist/components/Skeleton/Skeleton.const.js +58 -0
- package/dist/components/Skeleton/Skeleton.d.ts +15 -24
- package/dist/components/Skeleton/Skeleton.js +132 -103
- package/dist/components/Skeleton/Skeleton.types.d.ts +18 -8
- package/dist/components/Skeleton/index.d.ts +2 -2
- package/dist/components/Slider/Slider.cjs +1 -1
- package/dist/components/Slider/Slider.js +8 -8
- package/dist/components/Sparkline/Sparkline.cjs +1 -0
- package/dist/components/Sparkline/Sparkline.const.cjs +1 -0
- package/dist/components/Sparkline/Sparkline.const.d.ts +16 -0
- package/dist/components/Sparkline/Sparkline.const.js +16 -0
- package/dist/components/Sparkline/Sparkline.d.ts +3 -0
- package/dist/components/Sparkline/Sparkline.js +80 -0
- package/dist/components/Sparkline/Sparkline.types.d.ts +19 -0
- package/dist/components/Sparkline/Sparkline.utils.cjs +1 -0
- package/dist/components/Sparkline/Sparkline.utils.d.ts +27 -0
- package/dist/components/Sparkline/Sparkline.utils.js +30 -0
- package/dist/components/Sparkline/index.d.ts +5 -0
- package/dist/components/SpeedDial/SpeedDial.cjs +12 -1
- package/dist/components/SpeedDial/SpeedDial.const.cjs +1 -0
- package/dist/components/SpeedDial/SpeedDial.const.d.ts +22 -0
- package/dist/components/SpeedDial/SpeedDial.const.js +26 -0
- package/dist/components/SpeedDial/SpeedDial.d.ts +5 -7
- package/dist/components/SpeedDial/SpeedDial.js +154 -144
- package/dist/components/SpeedDial/SpeedDial.types.d.ts +26 -29
- package/dist/components/SpeedDial/index.d.ts +1 -1
- package/dist/components/Spinner/Spinner.cjs +1 -1
- package/dist/components/Spinner/Spinner.js +17 -15
- package/dist/components/StatCard/StatCard.cjs +1 -0
- package/dist/components/StatCard/StatCard.d.ts +7 -0
- package/dist/components/StatCard/StatCard.js +36 -0
- package/dist/components/StatCard/StatCard.types.d.ts +13 -0
- package/dist/components/StatCard/index.d.ts +2 -0
- package/dist/components/Stepper/Stepper.cjs +1 -1
- package/dist/components/Stepper/Stepper.const.cjs +1 -0
- package/dist/components/Stepper/Stepper.const.d.ts +29 -0
- package/dist/components/Stepper/Stepper.const.js +46 -0
- package/dist/components/Stepper/Stepper.d.ts +10 -3
- package/dist/components/Stepper/Stepper.js +143 -92
- package/dist/components/Stepper/Stepper.types.d.ts +63 -13
- package/dist/components/Stepper/index.d.ts +2 -2
- package/dist/components/Switch/Switch.cjs +1 -1
- package/dist/components/Switch/Switch.js +74 -47
- package/dist/components/Switch/Switch.types.d.ts +11 -1
- package/dist/components/Tabs/Tabs.cjs +1 -1
- package/dist/components/Tabs/Tabs.js +33 -29
- package/dist/components/TimePicker/TimePicker.cjs +1 -1
- package/dist/components/TimePicker/TimePicker.constants.cjs +1 -1
- package/dist/components/TimePicker/TimePicker.constants.d.ts +14 -0
- package/dist/components/TimePicker/TimePicker.constants.js +18 -4
- package/dist/components/TimePicker/TimePicker.js +92 -91
- package/dist/components/Timeline/Timeline.cjs +1 -1
- package/dist/components/Timeline/Timeline.const.cjs +1 -0
- package/dist/components/Timeline/Timeline.const.d.ts +40 -0
- package/dist/components/Timeline/Timeline.const.js +58 -0
- package/dist/components/Timeline/Timeline.d.ts +16 -2
- package/dist/components/Timeline/Timeline.js +131 -63
- package/dist/components/Timeline/Timeline.types.d.ts +30 -11
- package/dist/components/Timeline/index.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.cjs +1 -1
- package/dist/components/Tooltip/Tooltip.js +37 -35
- package/dist/components/Typography/Typography.cjs +1 -1
- package/dist/components/Typography/Typography.js +38 -36
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +38 -4
- package/dist/components/index.js +213 -168
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.ts +24 -0
- package/dist/hooks/index.js +42 -14
- package/dist/hooks/useBounce/index.d.ts +2 -0
- package/dist/hooks/useBounce/useBounce.cjs +1 -0
- package/dist/hooks/useBounce/useBounce.d.ts +2 -0
- package/dist/hooks/useBounce/useBounce.js +36 -0
- package/dist/hooks/useBounce/useBounce.types.d.ts +27 -0
- package/dist/hooks/useClickOutside/index.d.ts +2 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +22 -0
- package/dist/hooks/useClickOutside/useClickOutside.types.d.ts +10 -0
- package/dist/hooks/useClipboard/index.d.ts +2 -0
- package/dist/hooks/useClipboard/useClipboard.cjs +1 -0
- package/dist/hooks/useClipboard/useClipboard.d.ts +15 -0
- package/dist/hooks/useClipboard/useClipboard.js +22 -0
- package/dist/hooks/useClipboard/useClipboard.types.d.ts +20 -0
- package/dist/hooks/useDebounce/index.d.ts +2 -0
- package/dist/hooks/useDebounce/useDebounce.cjs +1 -0
- package/dist/hooks/useDebounce/useDebounce.d.ts +32 -0
- package/dist/hooks/useDebounce/useDebounce.js +39 -0
- package/dist/hooks/useDebounce/useDebounce.types.d.ts +20 -0
- package/dist/hooks/useFloat/index.d.ts +2 -0
- package/dist/hooks/useFloat/useFloat.cjs +1 -0
- package/dist/hooks/useFloat/useFloat.d.ts +2 -0
- package/dist/hooks/useFloat/useFloat.js +37 -0
- package/dist/hooks/useFloat/useFloat.types.d.ts +25 -0
- package/dist/hooks/useIntersectionObserver/index.d.ts +2 -0
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.cjs +1 -0
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.d.ts +25 -0
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.js +39 -0
- package/dist/hooks/useIntersectionObserver/useIntersectionObserver.types.d.ts +22 -0
- package/dist/hooks/useKeyPress/index.d.ts +2 -0
- package/dist/hooks/useKeyPress/useKeyPress.cjs +1 -0
- package/dist/hooks/useKeyPress/useKeyPress.d.ts +22 -0
- package/dist/hooks/useKeyPress/useKeyPress.js +39 -0
- package/dist/hooks/useKeyPress/useKeyPress.types.d.ts +19 -0
- package/dist/hooks/useLocalStorage/index.d.ts +2 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.cjs +1 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.d.ts +11 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.js +47 -0
- package/dist/hooks/useLocalStorage/useLocalStorage.types.d.ts +16 -0
- package/dist/hooks/useMediaQuery/index.d.ts +3 -0
- package/dist/hooks/useMediaQuery/useMediaQuery.d.ts +12 -0
- package/dist/hooks/useMediaQuery/useMediaQuery.types.d.ts +21 -0
- package/dist/hooks/useParallax/index.d.ts +2 -0
- package/dist/hooks/useParallax/useParallax.cjs +1 -0
- package/dist/hooks/useParallax/useParallax.d.ts +2 -0
- package/dist/hooks/useParallax/useParallax.js +36 -0
- package/dist/hooks/useParallax/useParallax.types.d.ts +19 -0
- package/dist/hooks/usePulse/index.d.ts +2 -0
- package/dist/hooks/usePulse/usePulse.cjs +1 -0
- package/dist/hooks/usePulse/usePulse.d.ts +2 -0
- package/dist/hooks/usePulse/usePulse.js +38 -0
- package/dist/hooks/usePulse/usePulse.types.d.ts +29 -0
- package/dist/hooks/useShake/index.d.ts +2 -0
- package/dist/hooks/useShake/useShake.cjs +1 -0
- package/dist/hooks/useShake/useShake.d.ts +2 -0
- package/dist/hooks/useShake/useShake.js +14 -0
- package/dist/hooks/useShake/useShake.types.d.ts +19 -0
- package/dist/hooks/useSlide/index.d.ts +2 -0
- package/dist/hooks/useSlide/useSlide.cjs +1 -0
- package/dist/hooks/useSlide/useSlide.d.ts +2 -0
- package/dist/hooks/useSlide/useSlide.js +68 -0
- package/dist/hooks/useSlide/useSlide.types.d.ts +36 -0
- package/dist/hooks/useThrottle/index.d.ts +2 -0
- package/dist/hooks/useThrottle/useThrottle.cjs +1 -0
- package/dist/hooks/useThrottle/useThrottle.d.ts +26 -0
- package/dist/hooks/useThrottle/useThrottle.js +44 -0
- package/dist/hooks/useThrottle/useThrottle.types.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +275 -202
- package/dist/styles.css +1 -1
- package/package.json +15 -22
|
@@ -1,103 +1,94 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { cn as
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as k } from "react";
|
|
3
|
+
import { cn as x } from "../../utils/cn.js";
|
|
4
|
+
import { ALERT_DEFAULTS as i, ALERT_SEVERITY_COLORS as C, ALERT_VARIANT_CLASSES as B } from "./Alert.const.js";
|
|
4
5
|
const w = {
|
|
5
|
-
success: /* @__PURE__ */
|
|
6
|
+
success: /* @__PURE__ */ r("svg", { width: 20, height: 20, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: [
|
|
6
7
|
/* @__PURE__ */ e("path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14" }),
|
|
7
8
|
/* @__PURE__ */ e("polyline", { points: "22 4 12 14.01 9 11.01" })
|
|
8
9
|
] }),
|
|
9
|
-
info: /* @__PURE__ */
|
|
10
|
+
info: /* @__PURE__ */ r("svg", { width: 20, height: 20, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: [
|
|
10
11
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
|
|
11
12
|
/* @__PURE__ */ e("line", { x1: "12", y1: "16", x2: "12", y2: "12" }),
|
|
12
13
|
/* @__PURE__ */ e("line", { x1: "12", y1: "8", x2: "12.01", y2: "8" })
|
|
13
14
|
] }),
|
|
14
|
-
warning: /* @__PURE__ */
|
|
15
|
+
warning: /* @__PURE__ */ r("svg", { width: 20, height: 20, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: [
|
|
15
16
|
/* @__PURE__ */ e("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
16
17
|
/* @__PURE__ */ e("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
17
18
|
/* @__PURE__ */ e("line", { x1: "12", y1: "17", x2: "12.01", y2: "17" })
|
|
18
19
|
] }),
|
|
19
|
-
error: /* @__PURE__ */
|
|
20
|
+
error: /* @__PURE__ */ r("svg", { width: 20, height: 20, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: [
|
|
20
21
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "10" }),
|
|
21
22
|
/* @__PURE__ */ e("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
|
|
22
23
|
/* @__PURE__ */ e("line", { x1: "9", y1: "9", x2: "15", y2: "15" })
|
|
23
24
|
] })
|
|
24
|
-
},
|
|
25
|
+
}, N = () => /* @__PURE__ */ r("svg", { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, "aria-hidden": "true", children: [
|
|
25
26
|
/* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
26
27
|
/* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
27
|
-
] }),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
action: c,
|
|
48
|
-
closable: x = !1,
|
|
49
|
-
onClose: i,
|
|
50
|
-
children: d,
|
|
51
|
-
className: f,
|
|
52
|
-
testId: g,
|
|
53
|
-
...u
|
|
54
|
-
}) => {
|
|
55
|
-
const [m, y] = p(!0);
|
|
56
|
-
if (!m) return null;
|
|
57
|
-
const t = C[r], a = n === "filled", k = () => {
|
|
58
|
-
y(!1), i == null || i();
|
|
59
|
-
}, h = () => l === !1 ? null : l !== !0 ? l : w[r];
|
|
60
|
-
return /* @__PURE__ */ o(
|
|
28
|
+
] }), R = (u) => {
|
|
29
|
+
const {
|
|
30
|
+
severity: l = i.SEVERITY,
|
|
31
|
+
variant: o = i.VARIANT,
|
|
32
|
+
title: c,
|
|
33
|
+
icon: n = i.SHOW_ICON,
|
|
34
|
+
action: d,
|
|
35
|
+
closable: f = i.CLOSABLE,
|
|
36
|
+
onClose: a,
|
|
37
|
+
children: h,
|
|
38
|
+
className: m,
|
|
39
|
+
testId: v,
|
|
40
|
+
id: y,
|
|
41
|
+
...g
|
|
42
|
+
} = u, [A, _] = k(!0);
|
|
43
|
+
if (!A) return null;
|
|
44
|
+
const t = C[l], s = o === "filled", p = () => {
|
|
45
|
+
_(!1), a == null || a();
|
|
46
|
+
}, b = () => n === !1 ? null : n !== !0 ? n : w[l];
|
|
47
|
+
return /* @__PURE__ */ r(
|
|
61
48
|
"div",
|
|
62
49
|
{
|
|
50
|
+
id: y,
|
|
63
51
|
role: "alert",
|
|
64
|
-
|
|
52
|
+
"aria-live": "polite",
|
|
53
|
+
className: x(
|
|
54
|
+
"Bear-Alert",
|
|
65
55
|
"bear-flex bear-items-start bear-gap-3 bear-p-4 bear-rounded-lg",
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
B[o](l),
|
|
57
|
+
m
|
|
68
58
|
),
|
|
69
59
|
style: {
|
|
70
|
-
backgroundColor:
|
|
71
|
-
borderColor:
|
|
72
|
-
color:
|
|
60
|
+
backgroundColor: s ? void 0 : t.bg,
|
|
61
|
+
borderColor: o === "outlined" ? t.border : void 0,
|
|
62
|
+
color: s ? void 0 : t.text
|
|
73
63
|
},
|
|
74
|
-
"data-testid":
|
|
75
|
-
...
|
|
64
|
+
"data-testid": v,
|
|
65
|
+
...g,
|
|
76
66
|
children: [
|
|
77
|
-
|
|
67
|
+
b() && /* @__PURE__ */ e(
|
|
78
68
|
"span",
|
|
79
69
|
{
|
|
80
|
-
className: "bear-flex-shrink-0 bear-mt-0.5",
|
|
81
|
-
style: { color:
|
|
82
|
-
children:
|
|
70
|
+
className: "Bear-Alert__icon bear-flex-shrink-0 bear-mt-0.5",
|
|
71
|
+
style: { color: s ? "currentColor" : t.icon },
|
|
72
|
+
children: b()
|
|
83
73
|
}
|
|
84
74
|
),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
87
|
-
|
|
75
|
+
/* @__PURE__ */ r("div", { className: "Bear-Alert__content bear-flex-1 bear-min-w-0", children: [
|
|
76
|
+
c && /* @__PURE__ */ e("div", { className: "Bear-Alert__title bear-font-semibold bear-mb-1", children: c }),
|
|
77
|
+
h && /* @__PURE__ */ e("div", { className: "Bear-Alert__message bear-text-sm", children: h })
|
|
88
78
|
] }),
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
d && /* @__PURE__ */ e("div", { className: "Bear-Alert__action bear-flex-shrink-0", children: d }),
|
|
80
|
+
f && /* @__PURE__ */ e(
|
|
91
81
|
"button",
|
|
92
82
|
{
|
|
93
83
|
type: "button",
|
|
94
|
-
onClick:
|
|
95
|
-
className:
|
|
84
|
+
onClick: p,
|
|
85
|
+
className: x(
|
|
86
|
+
"Bear-Alert__close",
|
|
96
87
|
"bear-flex-shrink-0 bear-p-1 bear-rounded hover:bear-bg-black/10 bear-transition-colors",
|
|
97
88
|
"bear-bg-transparent bear-border-none bear-cursor-pointer"
|
|
98
89
|
),
|
|
99
90
|
"aria-label": "Close alert",
|
|
100
|
-
children: /* @__PURE__ */ e(
|
|
91
|
+
children: /* @__PURE__ */ e(N, {})
|
|
101
92
|
}
|
|
102
93
|
)
|
|
103
94
|
]
|
|
@@ -105,5 +96,5 @@ const w = {
|
|
|
105
96
|
);
|
|
106
97
|
};
|
|
107
98
|
export {
|
|
108
|
-
|
|
99
|
+
R as Alert
|
|
109
100
|
};
|
|
@@ -18,6 +18,8 @@ export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'
|
|
|
18
18
|
onClose?: () => void;
|
|
19
19
|
/** Content of the alert */
|
|
20
20
|
children?: ReactNode;
|
|
21
|
-
/**
|
|
21
|
+
/** Unique identifier for testing */
|
|
22
22
|
testId?: string;
|
|
23
|
+
/** HTML id attribute */
|
|
24
|
+
id?: string;
|
|
23
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("react"),c=require("../../utils/cn.cjs"),r=require("./Avatar.const.cjs"),h=A=>{const{src:i,alt:a=r.AVATAR_DEFAULTS.ALT,initials:n,size:o=r.AVATAR_DEFAULTS.SIZE,variant:s=r.AVATAR_DEFAULTS.VARIANT,status:t,bordered:b=!1,className:d,testId:l,...u}=A,[v,m]=g.useState(!1),_=!i||v;return e.jsxs("div",{className:c.cn("Bear-Avatar","bear-relative bear-inline-flex bear-items-center bear-justify-center","bear-bg-gray-200 dark:bear-bg-gray-700","bear-overflow-hidden",r.AVATAR_SIZE[o],r.AVATAR_VARIANT[s],b&&"Bear-Avatar--bordered bear-ring-2 bear-ring-white dark:bear-ring-gray-900",d),"data-testid":l,children:[_?n?e.jsx("span",{className:"Bear-Avatar__initials bear-font-medium bear-text-gray-600 dark:bear-text-gray-300 bear-uppercase",children:n.slice(0,r.AVATAR_DEFAULTS.MAX_INITIALS)}):e.jsx("svg",{className:"Bear-Avatar__placeholder bear-w-3/5 bear-h-3/5 bear-text-gray-400",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})}):e.jsx("img",{src:i,alt:a,onError:()=>m(!0),className:"Bear-Avatar__image bear-w-full bear-h-full bear-object-cover",...u}),t&&e.jsx("span",{className:c.cn("Bear-Avatar__status",`Bear-Avatar__status--${t}`,"bear-absolute bear-bottom-0 bear-right-0","bear-w-1/4 bear-h-1/4 bear-min-w-[8px] bear-min-h-[8px]","bear-rounded-full bear-ring-2 bear-ring-white dark:bear-ring-gray-900",r.AVATAR_STATUS[t])})]})},x=A=>{const{children:i,max:a,size:n=r.AVATAR_DEFAULTS.SIZE,className:o}=A,s=g.Children.toArray(i),t=a?s.slice(0,a):s,b=a?s.length-a:0;return e.jsxs("div",{className:c.cn("Bear-AvatarGroup bear-flex bear--space-x-2",o),children:[t.map((d,l)=>e.jsx("div",{className:"Bear-AvatarGroup__item bear-relative",style:{zIndex:t.length-l},children:d},l)),b>0&&e.jsxs("div",{className:c.cn("Bear-AvatarGroup__overflow","bear-relative bear-inline-flex bear-items-center bear-justify-center","bear-bg-gray-200 dark:bear-bg-gray-700 bear-rounded-full","bear-ring-2 bear-ring-white dark:bear-ring-gray-900","bear-text-gray-600 dark:bear-text-gray-300 bear-font-medium",r.AVATAR_SIZE[n]),style:{zIndex:0},children:["+",b]})]})};exports.Avatar=h;exports.AvatarGroup=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={xs:"bear-w-6 bear-h-6 bear-text-xs",sm:"bear-w-8 bear-h-8 bear-text-sm",md:"bear-w-10 bear-h-10 bear-text-base",lg:"bear-w-12 bear-h-12 bear-text-lg",xl:"bear-w-16 bear-h-16 bear-text-xl","2xl":"bear-w-20 bear-h-20 bear-text-2xl"},r={circle:"bear-rounded-full",rounded:"bear-rounded-lg",square:"bear-rounded-none"},A={online:"bear-bg-green-500",offline:"bear-bg-gray-400",away:"bear-bg-yellow-500",busy:"bear-bg-red-500"},a={SIZE:"md",VARIANT:"circle",ALT:"Avatar",MAX_INITIALS:2};exports.AVATAR_DEFAULTS=a;exports.AVATAR_SIZE=e;exports.AVATAR_STATUS=A;exports.AVATAR_VARIANT=r;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Avatar component constants
|
|
3
|
+
*/
|
|
4
|
+
export declare const AVATAR_SIZE: {
|
|
5
|
+
readonly xs: "bear-w-6 bear-h-6 bear-text-xs";
|
|
6
|
+
readonly sm: "bear-w-8 bear-h-8 bear-text-sm";
|
|
7
|
+
readonly md: "bear-w-10 bear-h-10 bear-text-base";
|
|
8
|
+
readonly lg: "bear-w-12 bear-h-12 bear-text-lg";
|
|
9
|
+
readonly xl: "bear-w-16 bear-h-16 bear-text-xl";
|
|
10
|
+
readonly '2xl': "bear-w-20 bear-h-20 bear-text-2xl";
|
|
11
|
+
};
|
|
12
|
+
export declare const AVATAR_VARIANT: {
|
|
13
|
+
readonly circle: "bear-rounded-full";
|
|
14
|
+
readonly rounded: "bear-rounded-lg";
|
|
15
|
+
readonly square: "bear-rounded-none";
|
|
16
|
+
};
|
|
17
|
+
export declare const AVATAR_STATUS: {
|
|
18
|
+
readonly online: "bear-bg-green-500";
|
|
19
|
+
readonly offline: "bear-bg-gray-400";
|
|
20
|
+
readonly away: "bear-bg-yellow-500";
|
|
21
|
+
readonly busy: "bear-bg-red-500";
|
|
22
|
+
};
|
|
23
|
+
export declare const AVATAR_DEFAULTS: {
|
|
24
|
+
readonly SIZE: "md";
|
|
25
|
+
readonly VARIANT: "circle";
|
|
26
|
+
readonly ALT: "Avatar";
|
|
27
|
+
readonly MAX_INITIALS: 2;
|
|
28
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
xs: "bear-w-6 bear-h-6 bear-text-xs",
|
|
3
|
+
sm: "bear-w-8 bear-h-8 bear-text-sm",
|
|
4
|
+
md: "bear-w-10 bear-h-10 bear-text-base",
|
|
5
|
+
lg: "bear-w-12 bear-h-12 bear-text-lg",
|
|
6
|
+
xl: "bear-w-16 bear-h-16 bear-text-xl",
|
|
7
|
+
"2xl": "bear-w-20 bear-h-20 bear-text-2xl"
|
|
8
|
+
}, r = {
|
|
9
|
+
circle: "bear-rounded-full",
|
|
10
|
+
rounded: "bear-rounded-lg",
|
|
11
|
+
square: "bear-rounded-none"
|
|
12
|
+
}, a = {
|
|
13
|
+
online: "bear-bg-green-500",
|
|
14
|
+
offline: "bear-bg-gray-400",
|
|
15
|
+
away: "bear-bg-yellow-500",
|
|
16
|
+
busy: "bear-bg-red-500"
|
|
17
|
+
}, b = {
|
|
18
|
+
SIZE: "md",
|
|
19
|
+
VARIANT: "circle",
|
|
20
|
+
ALT: "Avatar",
|
|
21
|
+
MAX_INITIALS: 2
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
b as AVATAR_DEFAULTS,
|
|
25
|
+
e as AVATAR_SIZE,
|
|
26
|
+
a as AVATAR_STATUS,
|
|
27
|
+
r as AVATAR_VARIANT
|
|
28
|
+
};
|
|
@@ -1,91 +1,80 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
busy: "bear-bg-red-500"
|
|
20
|
-
}, j = ({
|
|
21
|
-
src: t,
|
|
22
|
-
alt: e = "Avatar",
|
|
23
|
-
initials: s,
|
|
24
|
-
size: o = "md",
|
|
25
|
-
variant: a = "circle",
|
|
26
|
-
status: b,
|
|
27
|
-
bordered: l = !1,
|
|
28
|
-
className: c,
|
|
29
|
-
testId: n,
|
|
30
|
-
...m
|
|
31
|
-
}) => {
|
|
32
|
-
const [h, u] = y(!1), x = !t || h;
|
|
33
|
-
return /* @__PURE__ */ d(
|
|
1
|
+
import { jsxs as A, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import p, { useState as _ } from "react";
|
|
3
|
+
import { cn as o } from "../../utils/cn.js";
|
|
4
|
+
import { AVATAR_DEFAULTS as s, AVATAR_STATUS as x, AVATAR_VARIANT as y, AVATAR_SIZE as g } from "./Avatar.const.js";
|
|
5
|
+
const T = (c) => {
|
|
6
|
+
const {
|
|
7
|
+
src: i,
|
|
8
|
+
alt: r = s.ALT,
|
|
9
|
+
initials: b,
|
|
10
|
+
size: d = s.SIZE,
|
|
11
|
+
variant: t = s.VARIANT,
|
|
12
|
+
status: a,
|
|
13
|
+
bordered: l = !1,
|
|
14
|
+
className: m,
|
|
15
|
+
testId: n,
|
|
16
|
+
...v
|
|
17
|
+
} = c, [h, u] = _(!1), f = !i || h;
|
|
18
|
+
return /* @__PURE__ */ A(
|
|
34
19
|
"div",
|
|
35
20
|
{
|
|
36
|
-
className:
|
|
21
|
+
className: o(
|
|
22
|
+
"Bear-Avatar",
|
|
37
23
|
"bear-relative bear-inline-flex bear-items-center bear-justify-center",
|
|
38
24
|
"bear-bg-gray-200 dark:bear-bg-gray-700",
|
|
39
25
|
"bear-overflow-hidden",
|
|
40
|
-
g[
|
|
41
|
-
|
|
42
|
-
l && "bear-ring-2 bear-ring-white dark:bear-ring-gray-900",
|
|
43
|
-
|
|
26
|
+
g[d],
|
|
27
|
+
y[t],
|
|
28
|
+
l && "Bear-Avatar--bordered bear-ring-2 bear-ring-white dark:bear-ring-gray-900",
|
|
29
|
+
m
|
|
44
30
|
),
|
|
45
31
|
"data-testid": n,
|
|
46
32
|
children: [
|
|
47
|
-
|
|
33
|
+
f ? b ? /* @__PURE__ */ e("span", { className: "Bear-Avatar__initials bear-font-medium bear-text-gray-600 dark:bear-text-gray-300 bear-uppercase", children: b.slice(0, s.MAX_INITIALS) }) : /* @__PURE__ */ e("svg", { className: "Bear-Avatar__placeholder bear-w-3/5 bear-h-3/5 bear-text-gray-400", fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }) }) : /* @__PURE__ */ e(
|
|
48
34
|
"img",
|
|
49
35
|
{
|
|
50
|
-
src:
|
|
51
|
-
alt:
|
|
36
|
+
src: i,
|
|
37
|
+
alt: r,
|
|
52
38
|
onError: () => u(!0),
|
|
53
|
-
className: "bear-w-full bear-h-full bear-object-cover",
|
|
54
|
-
...
|
|
39
|
+
className: "Bear-Avatar__image bear-w-full bear-h-full bear-object-cover",
|
|
40
|
+
...v
|
|
55
41
|
}
|
|
56
42
|
),
|
|
57
|
-
|
|
43
|
+
a && /* @__PURE__ */ e(
|
|
58
44
|
"span",
|
|
59
45
|
{
|
|
60
|
-
className:
|
|
46
|
+
className: o(
|
|
47
|
+
"Bear-Avatar__status",
|
|
48
|
+
`Bear-Avatar__status--${a}`,
|
|
61
49
|
"bear-absolute bear-bottom-0 bear-right-0",
|
|
62
50
|
"bear-w-1/4 bear-h-1/4 bear-min-w-[8px] bear-min-h-[8px]",
|
|
63
51
|
"bear-rounded-full bear-ring-2 bear-ring-white dark:bear-ring-gray-900",
|
|
64
|
-
|
|
52
|
+
x[a]
|
|
65
53
|
)
|
|
66
54
|
}
|
|
67
55
|
)
|
|
68
56
|
]
|
|
69
57
|
}
|
|
70
58
|
);
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return /* @__PURE__ */
|
|
79
|
-
|
|
80
|
-
l > 0 && /* @__PURE__ */
|
|
59
|
+
}, k = (c) => {
|
|
60
|
+
const {
|
|
61
|
+
children: i,
|
|
62
|
+
max: r,
|
|
63
|
+
size: b = s.SIZE,
|
|
64
|
+
className: d
|
|
65
|
+
} = c, t = p.Children.toArray(i), a = r ? t.slice(0, r) : t, l = r ? t.length - r : 0;
|
|
66
|
+
return /* @__PURE__ */ A("div", { className: o("Bear-AvatarGroup bear-flex bear--space-x-2", d), children: [
|
|
67
|
+
a.map((m, n) => /* @__PURE__ */ e("div", { className: "Bear-AvatarGroup__item bear-relative", style: { zIndex: a.length - n }, children: m }, n)),
|
|
68
|
+
l > 0 && /* @__PURE__ */ A(
|
|
81
69
|
"div",
|
|
82
70
|
{
|
|
83
|
-
className:
|
|
71
|
+
className: o(
|
|
72
|
+
"Bear-AvatarGroup__overflow",
|
|
84
73
|
"bear-relative bear-inline-flex bear-items-center bear-justify-center",
|
|
85
74
|
"bear-bg-gray-200 dark:bear-bg-gray-700 bear-rounded-full",
|
|
86
75
|
"bear-ring-2 bear-ring-white dark:bear-ring-gray-900",
|
|
87
76
|
"bear-text-gray-600 dark:bear-text-gray-300 bear-font-medium",
|
|
88
|
-
g[
|
|
77
|
+
g[b]
|
|
89
78
|
),
|
|
90
79
|
style: { zIndex: 0 },
|
|
91
80
|
children: [
|
|
@@ -97,6 +86,6 @@ const g = {
|
|
|
97
86
|
] });
|
|
98
87
|
};
|
|
99
88
|
export {
|
|
100
|
-
|
|
101
|
-
|
|
89
|
+
T as Avatar,
|
|
90
|
+
k as AvatarGroup
|
|
102
91
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("../../utils/cn.cjs"),e=require("./Badge.constants.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("../../utils/cn.cjs"),e=require("./Badge.constants.cjs"),u=({variant:s="neutral",size:n="sm",pill:t=!1,dot:d=!1,className:l,children:o,testId:c,...i})=>a.jsxs("span",{className:r.cn("Bear-Badge","bear-inline-flex bear-items-center bear-gap-1.5 bear-font-medium",e.sizeClasses[n],e.variantClasses[s],t?"Bear-Badge--pill bear-rounded-full":"bear-rounded-md",l),"data-testid":c,...i,children:[d&&a.jsx("span",{className:r.cn("Bear-Badge__dot",e.BADGE_DOT_SIZE_CLASSES,"bear-rounded-full",e.dotVariantColors[s])}),a.jsx("span",{className:"Bear-Badge__content",children:o})]});exports.Badge=u;
|
|
@@ -1,42 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { dotVariantColors as
|
|
4
|
-
const
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as r } from "../../utils/cn.js";
|
|
3
|
+
import { dotVariantColors as B, BADGE_DOT_SIZE_CLASSES as f, variantClasses as p, sizeClasses as c } from "./Badge.constants.js";
|
|
4
|
+
const g = ({
|
|
5
5
|
variant: e = "neutral",
|
|
6
|
-
size:
|
|
7
|
-
pill:
|
|
6
|
+
size: s = "sm",
|
|
7
|
+
pill: d = !1,
|
|
8
8
|
dot: l = !1,
|
|
9
9
|
className: n,
|
|
10
|
-
children:
|
|
11
|
-
testId:
|
|
12
|
-
...
|
|
13
|
-
}) => /* @__PURE__ */
|
|
10
|
+
children: t,
|
|
11
|
+
testId: o,
|
|
12
|
+
...m
|
|
13
|
+
}) => /* @__PURE__ */ i(
|
|
14
14
|
"span",
|
|
15
15
|
{
|
|
16
|
-
className:
|
|
16
|
+
className: r(
|
|
17
|
+
"Bear-Badge",
|
|
17
18
|
"bear-inline-flex bear-items-center bear-gap-1.5 bear-font-medium",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
c[s],
|
|
20
|
+
p[e],
|
|
21
|
+
d ? "Bear-Badge--pill bear-rounded-full" : "bear-rounded-md",
|
|
21
22
|
n
|
|
22
23
|
),
|
|
23
|
-
"data-testid":
|
|
24
|
-
...
|
|
24
|
+
"data-testid": o,
|
|
25
|
+
...m,
|
|
25
26
|
children: [
|
|
26
|
-
l && /* @__PURE__ */
|
|
27
|
+
l && /* @__PURE__ */ a(
|
|
27
28
|
"span",
|
|
28
29
|
{
|
|
29
|
-
className:
|
|
30
|
-
|
|
30
|
+
className: r(
|
|
31
|
+
"Bear-Badge__dot",
|
|
32
|
+
f,
|
|
31
33
|
"bear-rounded-full",
|
|
32
|
-
|
|
34
|
+
B[e]
|
|
33
35
|
)
|
|
34
36
|
}
|
|
35
37
|
),
|
|
36
|
-
|
|
38
|
+
/* @__PURE__ */ a("span", { className: "Bear-Badge__content", children: t })
|
|
37
39
|
]
|
|
38
40
|
}
|
|
39
41
|
);
|
|
40
42
|
export {
|
|
41
|
-
|
|
43
|
+
g as Badge
|
|
42
44
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../utils/cn.cjs"),t=({size:r=48,className:o,animated:s=!1})=>e.jsxs("svg",{width:r,height:r,viewBox:"0 0 100 100",fill:"none",className:l.cn("bear-logo",s&&"bear-animate-bear-glow",o),children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"emberFlameGrad",x1:"50%",y1:"100%",x2:"50%",y2:"0%",children:[e.jsx("stop",{offset:"0%",stopColor:"#ea580c"}),e.jsx("stop",{offset:"30%",stopColor:"#f97316"}),e.jsx("stop",{offset:"60%",stopColor:"#fb923c"}),e.jsx("stop",{offset:"100%",stopColor:"#fed7aa"})]}),e.jsxs("linearGradient",{id:"emberCoreGrad",x1:"50%",y1:"100%",x2:"50%",y2:"0%",children:[e.jsx("stop",{offset:"0%",stopColor:"#f97316"}),e.jsx("stop",{offset:"50%",stopColor:"#fbbf24"}),e.jsx("stop",{offset:"100%",stopColor:"#fef3c7"})]}),e.jsxs("filter",{id:"emberGlow",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[e.jsx("feGaussianBlur",{stdDeviation:"3",result:"coloredBlur"}),e.jsxs("feMerge",{children:[e.jsx("feMergeNode",{in:"coloredBlur"}),e.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),e.jsx("circle",{cx:"50",cy:"50",r:"45",fill:"#1a1a2e",stroke:"url(#emberFlameGrad)",strokeWidth:"2"}),e.jsx("path",{d:`M50 15
|
|
2
|
+
C35 30 25 45 25 60
|
|
3
|
+
C25 75 35 85 50 85
|
|
4
|
+
C65 85 75 75 75 60
|
|
5
|
+
C75 50 68 40 60 32
|
|
6
|
+
C55 27 50 25 50 35
|
|
7
|
+
C50 42 55 48 55 55
|
|
8
|
+
C55 62 52 67 50 67
|
|
9
|
+
C48 67 45 62 45 55
|
|
10
|
+
C45 45 55 35 55 25
|
|
11
|
+
C55 20 52 17 50 15
|
|
12
|
+
Z`,fill:"url(#emberFlameGrad)",filter:"url(#emberGlow)"}),e.jsx("path",{d:`M50 45
|
|
13
|
+
C45 50 42 55 42 62
|
|
14
|
+
C42 72 46 78 50 78
|
|
15
|
+
C54 78 58 72 58 62
|
|
16
|
+
C58 55 55 50 50 45
|
|
17
|
+
Z`,fill:"url(#emberCoreGrad)",opacity:"0.9"}),e.jsx("circle",{cx:"38",cy:"35",r:"2",fill:"#fed7aa",opacity:"0.8"}),e.jsx("circle",{cx:"62",cy:"38",r:"1.5",fill:"#fef3c7",opacity:"0.7"}),e.jsx("circle",{cx:"45",cy:"28",r:"1",fill:"#ffffff",opacity:"0.6"})]});exports.EmberLogo=t;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as t } from "../../utils/cn.js";
|
|
3
|
+
const c = ({
|
|
4
|
+
size: o = 48,
|
|
5
|
+
className: l,
|
|
6
|
+
animated: f = !1
|
|
7
|
+
}) => /* @__PURE__ */ r(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
width: o,
|
|
11
|
+
height: o,
|
|
12
|
+
viewBox: "0 0 100 100",
|
|
13
|
+
fill: "none",
|
|
14
|
+
className: t(
|
|
15
|
+
"bear-logo",
|
|
16
|
+
f && "bear-animate-bear-glow",
|
|
17
|
+
l
|
|
18
|
+
),
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ r("defs", { children: [
|
|
21
|
+
/* @__PURE__ */ r("linearGradient", { id: "emberFlameGrad", x1: "50%", y1: "100%", x2: "50%", y2: "0%", children: [
|
|
22
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#ea580c" }),
|
|
23
|
+
/* @__PURE__ */ e("stop", { offset: "30%", stopColor: "#f97316" }),
|
|
24
|
+
/* @__PURE__ */ e("stop", { offset: "60%", stopColor: "#fb923c" }),
|
|
25
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: "#fed7aa" })
|
|
26
|
+
] }),
|
|
27
|
+
/* @__PURE__ */ r("linearGradient", { id: "emberCoreGrad", x1: "50%", y1: "100%", x2: "50%", y2: "0%", children: [
|
|
28
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: "#f97316" }),
|
|
29
|
+
/* @__PURE__ */ e("stop", { offset: "50%", stopColor: "#fbbf24" }),
|
|
30
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: "#fef3c7" })
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ r("filter", { id: "emberGlow", x: "-50%", y: "-50%", width: "200%", height: "200%", children: [
|
|
33
|
+
/* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "3", result: "coloredBlur" }),
|
|
34
|
+
/* @__PURE__ */ r("feMerge", { children: [
|
|
35
|
+
/* @__PURE__ */ e("feMergeNode", { in: "coloredBlur" }),
|
|
36
|
+
/* @__PURE__ */ e("feMergeNode", { in: "SourceGraphic" })
|
|
37
|
+
] })
|
|
38
|
+
] })
|
|
39
|
+
] }),
|
|
40
|
+
/* @__PURE__ */ e(
|
|
41
|
+
"circle",
|
|
42
|
+
{
|
|
43
|
+
cx: "50",
|
|
44
|
+
cy: "50",
|
|
45
|
+
r: "45",
|
|
46
|
+
fill: "#1a1a2e",
|
|
47
|
+
stroke: "url(#emberFlameGrad)",
|
|
48
|
+
strokeWidth: "2"
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ e(
|
|
52
|
+
"path",
|
|
53
|
+
{
|
|
54
|
+
d: `M50 15
|
|
55
|
+
C35 30 25 45 25 60
|
|
56
|
+
C25 75 35 85 50 85
|
|
57
|
+
C65 85 75 75 75 60
|
|
58
|
+
C75 50 68 40 60 32
|
|
59
|
+
C55 27 50 25 50 35
|
|
60
|
+
C50 42 55 48 55 55
|
|
61
|
+
C55 62 52 67 50 67
|
|
62
|
+
C48 67 45 62 45 55
|
|
63
|
+
C45 45 55 35 55 25
|
|
64
|
+
C55 20 52 17 50 15
|
|
65
|
+
Z`,
|
|
66
|
+
fill: "url(#emberFlameGrad)",
|
|
67
|
+
filter: "url(#emberGlow)"
|
|
68
|
+
}
|
|
69
|
+
),
|
|
70
|
+
/* @__PURE__ */ e(
|
|
71
|
+
"path",
|
|
72
|
+
{
|
|
73
|
+
d: `M50 45
|
|
74
|
+
C45 50 42 55 42 62
|
|
75
|
+
C42 72 46 78 50 78
|
|
76
|
+
C54 78 58 72 58 62
|
|
77
|
+
C58 55 55 50 50 45
|
|
78
|
+
Z`,
|
|
79
|
+
fill: "url(#emberCoreGrad)",
|
|
80
|
+
opacity: "0.9"
|
|
81
|
+
}
|
|
82
|
+
),
|
|
83
|
+
/* @__PURE__ */ e("circle", { cx: "38", cy: "35", r: "2", fill: "#fed7aa", opacity: "0.8" }),
|
|
84
|
+
/* @__PURE__ */ e("circle", { cx: "62", cy: "38", r: "1.5", fill: "#fef3c7", opacity: "0.7" }),
|
|
85
|
+
/* @__PURE__ */ e("circle", { cx: "45", cy: "28", r: "1", fill: "#ffffff", opacity: "0.6" })
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
export {
|
|
90
|
+
c as EmberLogo
|
|
91
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("react/jsx-runtime"),O=require("react"),s=require("./Box.utils.cjs"),l=O.forwardRef(({children:i,as:e="div",className:p="",p:t,px:r,py:C,pt:g,pb:T,pl:m,pr:d,m:u,mx:x,my:b,mt:y,mb:B,ml:$,mr:f,bg:a,rounded:o,shadow:n,border:j,borderColor:c,style:q,...M},R)=>{const S=[s.spacingToClass(t,"p"),s.spacingToClass(r,"px"),s.spacingToClass(C,"py"),s.spacingToClass(g,"pt"),s.spacingToClass(T,"pb"),s.spacingToClass(m,"pl"),s.spacingToClass(d,"pr"),s.spacingToClass(u,"m"),s.spacingToClass(x,"mx"),s.spacingToClass(b,"my"),s.spacingToClass(y,"mt"),s.spacingToClass(B,"mb"),s.spacingToClass($,"ml"),s.spacingToClass(f,"mr")].filter(Boolean).join(" "),v=o?s.roundedMap[o]:"",w=n?s.shadowMap[n]:"",N=j?"border":"",h={...q,...a?{backgroundColor:a}:{},...c?{borderColor:c}:{}};return k.jsx(e,{ref:R,className:`bear-box ${S} ${v} ${w} ${N} ${p}`.trim(),style:h,...M,children:i})});l.displayName="Box";exports.Box=l;
|