@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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
2
|
+
export type SidebarVariant = 'default' | 'bordered' | 'floating';
|
|
3
|
+
export type SidebarPosition = 'left' | 'right';
|
|
4
|
+
export interface SidebarItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
href?: string;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
children?: SidebarItem[];
|
|
11
|
+
badge?: ReactNode;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface SidebarProps {
|
|
15
|
+
items: SidebarItem[];
|
|
16
|
+
collapsed?: boolean;
|
|
17
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
18
|
+
width?: number | string;
|
|
19
|
+
collapsedWidth?: number | string;
|
|
20
|
+
header?: ReactNode;
|
|
21
|
+
footer?: ReactNode;
|
|
22
|
+
activeItemId?: string;
|
|
23
|
+
onItemClick?: (item: SidebarItem) => void;
|
|
24
|
+
variant?: SidebarVariant;
|
|
25
|
+
position?: SidebarPosition;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: CSSProperties;
|
|
28
|
+
testId?: string;
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface SidebarGroupProps {
|
|
32
|
+
title?: string;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
collapsible?: boolean;
|
|
35
|
+
defaultCollapsed?: boolean;
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface SidebarItemComponentProps {
|
|
39
|
+
item: SidebarItem;
|
|
40
|
+
isActive?: boolean;
|
|
41
|
+
collapsed?: boolean;
|
|
42
|
+
depth?: number;
|
|
43
|
+
onClick?: (item: SidebarItem) => void;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("react"),t=require("../../../../utils/cn.cjs"),d=require("../../../Icon/index.cjs"),o=require("../../Sidebar.const.cjs"),S=n=>{const{title:a,children:c,collapsible:r=!1,defaultCollapsed:i=!1,className:l}=n,[s,u]=b.useState(i);return e.jsxs("div",{className:t.cn("Bear-Sidebar__group bear-mb-4",l),children:[a&&e.jsxs("button",{type:"button",onClick:()=>r&&u(!s),className:t.cn("Bear-Sidebar__group-title",o.SIDEBAR_GROUP_TITLE_CLASSES,r&&"bear-cursor-pointer hover:bear-text-zinc-600 dark:hover:bear-text-zinc-300"),children:[r&&e.jsx(d.ChevronDownIcon,{size:o.SIDEBAR_ICON_SIZE-2,className:t.cn("bear-transition-transform",s&&"-bear-rotate-90")}),a]}),!s&&e.jsx("div",{className:"Bear-Sidebar__group-content bear-space-y-1",children:c})]})};exports.SidebarGroup=S;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsxs as t, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
3
|
+
import { cn as a } from "../../../../utils/cn.js";
|
|
4
|
+
import { ChevronDownIcon as b } from "../../../Icon/index.js";
|
|
5
|
+
import { SIDEBAR_ICON_SIZE as d, SIDEBAR_GROUP_TITLE_CLASSES as S } from "../../Sidebar.const.js";
|
|
6
|
+
const h = (i) => {
|
|
7
|
+
const {
|
|
8
|
+
title: o,
|
|
9
|
+
children: l,
|
|
10
|
+
collapsible: e = !1,
|
|
11
|
+
defaultCollapsed: n = !1,
|
|
12
|
+
className: c
|
|
13
|
+
} = i, [r, m] = p(n);
|
|
14
|
+
return /* @__PURE__ */ t("div", { className: a("Bear-Sidebar__group bear-mb-4", c), children: [
|
|
15
|
+
o && /* @__PURE__ */ t(
|
|
16
|
+
"button",
|
|
17
|
+
{
|
|
18
|
+
type: "button",
|
|
19
|
+
onClick: () => e && m(!r),
|
|
20
|
+
className: a(
|
|
21
|
+
"Bear-Sidebar__group-title",
|
|
22
|
+
S,
|
|
23
|
+
e && "bear-cursor-pointer hover:bear-text-zinc-600 dark:hover:bear-text-zinc-300"
|
|
24
|
+
),
|
|
25
|
+
children: [
|
|
26
|
+
e && /* @__PURE__ */ s(
|
|
27
|
+
b,
|
|
28
|
+
{
|
|
29
|
+
size: d - 2,
|
|
30
|
+
className: a(
|
|
31
|
+
"bear-transition-transform",
|
|
32
|
+
r && "-bear-rotate-90"
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
o
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
!r && /* @__PURE__ */ s("div", { className: "Bear-Sidebar__group-content bear-space-y-1", children: l })
|
|
41
|
+
] });
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
h as SidebarGroup
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("react"),b=require("../../../../utils/cn.cjs"),u=require("../../../Icon/index.cjs"),r=require("../../Sidebar.const.cjs"),S=_=>{const{item:e,isActive:o,collapsed:i,depth:c=0,onClick:s}=_,[l,m]=d.useState(!1),t=e.children&&e.children.length>0,E=i?r.SIDEBAR_PADDING_BASE:r.SIDEBAR_PADDING_BASE+c*r.SIDEBAR_DEPTH_INDENT,I=d.useCallback(()=>{t&&m(n=>!n),e.onClick&&e.onClick(),s==null||s(e)},[t,e,s]),h=a.jsxs(a.Fragment,{children:[e.icon&&a.jsx("span",{className:"Bear-Sidebar__item-icon bear-shrink-0 bear-w-5 bear-h-5 bear-flex bear-items-center bear-justify-center",children:e.icon}),!i&&a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"Bear-Sidebar__item-label bear-flex-1 bear-truncate",children:e.label}),e.badge&&a.jsx("span",{className:"Bear-Sidebar__item-badge bear-ml-auto",children:e.badge}),t&&a.jsx(u.ChevronDownIcon,{size:r.SIDEBAR_ICON_SIZE,className:b.cn("Bear-Sidebar__item-chevron bear-ml-1 bear-transition-transform bear-duration-200",l&&"bear-rotate-180")})]})]}),A=b.cn("Bear-Sidebar__item",r.SIDEBAR_ITEM_BASE_CLASSES,o?`Bear-Sidebar__item--active ${r.SIDEBAR_ITEM_ACTIVE_CLASSES}`:r.SIDEBAR_ITEM_INACTIVE_CLASSES,e.disabled&&`Bear-Sidebar__item--disabled ${r.SIDEBAR_ITEM_DISABLED_CLASSES}`,i&&"Bear-Sidebar__item--collapsed bear-justify-center"),B=e.href?"a":"button";return a.jsxs("div",{className:"Bear-Sidebar__item-wrapper",children:[a.jsx(B,{href:e.href,onClick:I,disabled:e.disabled,className:A,style:{paddingLeft:E},title:i?e.label:void 0,children:h}),t&&l&&!i&&a.jsx("div",{className:"Bear-Sidebar__children bear-mt-1",children:e.children.map(n=>a.jsx(S,{item:n,isActive:!1,collapsed:i,depth:c+1,onClick:s},n.id))})]})};exports.SidebarItem=S;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsxs as s, Fragment as d, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useState as A, useCallback as f } from "react";
|
|
3
|
+
import { cn as m } from "../../../../utils/cn.js";
|
|
4
|
+
import { ChevronDownIcon as C } from "../../../Icon/index.js";
|
|
5
|
+
import { SIDEBAR_ICON_SIZE as D, SIDEBAR_ITEM_DISABLED_CLASSES as N, SIDEBAR_ITEM_ACTIVE_CLASSES as u, SIDEBAR_ITEM_INACTIVE_CLASSES as v, SIDEBAR_ITEM_BASE_CLASSES as T, SIDEBAR_PADDING_BASE as o, SIDEBAR_DEPTH_INDENT as R } from "../../Sidebar.const.js";
|
|
6
|
+
const g = (b) => {
|
|
7
|
+
const {
|
|
8
|
+
item: e,
|
|
9
|
+
isActive: _,
|
|
10
|
+
collapsed: r,
|
|
11
|
+
depth: l = 0,
|
|
12
|
+
onClick: i
|
|
13
|
+
} = b, [c, S] = A(!1), t = e.children && e.children.length > 0, h = r ? o : o + l * R, E = f(() => {
|
|
14
|
+
t && S((n) => !n), e.onClick && e.onClick(), i == null || i(e);
|
|
15
|
+
}, [t, e, i]), I = /* @__PURE__ */ s(d, { children: [
|
|
16
|
+
e.icon && /* @__PURE__ */ a("span", { className: "Bear-Sidebar__item-icon bear-shrink-0 bear-w-5 bear-h-5 bear-flex bear-items-center bear-justify-center", children: e.icon }),
|
|
17
|
+
!r && /* @__PURE__ */ s(d, { children: [
|
|
18
|
+
/* @__PURE__ */ a("span", { className: "Bear-Sidebar__item-label bear-flex-1 bear-truncate", children: e.label }),
|
|
19
|
+
e.badge && /* @__PURE__ */ a("span", { className: "Bear-Sidebar__item-badge bear-ml-auto", children: e.badge }),
|
|
20
|
+
t && /* @__PURE__ */ a(
|
|
21
|
+
C,
|
|
22
|
+
{
|
|
23
|
+
size: D,
|
|
24
|
+
className: m(
|
|
25
|
+
"Bear-Sidebar__item-chevron bear-ml-1 bear-transition-transform bear-duration-200",
|
|
26
|
+
c && "bear-rotate-180"
|
|
27
|
+
)
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
] })
|
|
31
|
+
] }), B = m(
|
|
32
|
+
"Bear-Sidebar__item",
|
|
33
|
+
T,
|
|
34
|
+
_ ? `Bear-Sidebar__item--active ${u}` : v,
|
|
35
|
+
e.disabled && `Bear-Sidebar__item--disabled ${N}`,
|
|
36
|
+
r && "Bear-Sidebar__item--collapsed bear-justify-center"
|
|
37
|
+
), p = e.href ? "a" : "button";
|
|
38
|
+
return /* @__PURE__ */ s("div", { className: "Bear-Sidebar__item-wrapper", children: [
|
|
39
|
+
/* @__PURE__ */ a(
|
|
40
|
+
p,
|
|
41
|
+
{
|
|
42
|
+
href: e.href,
|
|
43
|
+
onClick: E,
|
|
44
|
+
disabled: e.disabled,
|
|
45
|
+
className: B,
|
|
46
|
+
style: { paddingLeft: h },
|
|
47
|
+
title: r ? e.label : void 0,
|
|
48
|
+
children: I
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
t && c && !r && /* @__PURE__ */ a("div", { className: "Bear-Sidebar__children bear-mt-1", children: e.children.map((n) => /* @__PURE__ */ a(
|
|
52
|
+
g,
|
|
53
|
+
{
|
|
54
|
+
item: n,
|
|
55
|
+
isActive: !1,
|
|
56
|
+
collapsed: r,
|
|
57
|
+
depth: l + 1,
|
|
58
|
+
onClick: i
|
|
59
|
+
},
|
|
60
|
+
n.id
|
|
61
|
+
)) })
|
|
62
|
+
] });
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
g as SidebarItem
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),a=require("react"),_=require("../../utils/cn.cjs"),w=require("../Button/Button.cjs"),s=require("./SignPad.const.cjs"),V=y=>{const{onChange:r,width:P=s.SIGN_PAD_DEFAULT_WIDTH,height:A=s.SIGN_PAD_DEFAULT_HEIGHT,strokeColor:B,strokeWidth:b=s.SIGN_PAD_DEFAULT_STROKE_WIDTH,backgroundColor:O,placeholder:U=s.SIGN_PAD_DEFAULT_PLACEHOLDER,disabled:o=!1,readOnly:i=!1,showClear:I=!0,showSave:v=!1,clearText:M="Clear",saveText:j="Save",outputFormat:h=s.SIGN_PAD_DEFAULT_OUTPUT_FORMAT,outputQuality:D=s.SIGN_PAD_DEFAULT_OUTPUT_QUALITY,className:F,testId:H,id:K,...W}=y,l=a.useRef(null),[g,k]=a.useState(!1),[u,L]=a.useState(!1),[f,E]=a.useState(null),[T,q]=a.useState(!1);a.useEffect(()=>{const e=()=>{const n=document.documentElement.classList.contains("dark");q(n)};e();const t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>t.disconnect()},[]);const R=B||(T?s.SIGN_PAD_STROKE_DARK:s.SIGN_PAD_STROKE_LIGHT),S=O||(T?s.SIGN_PAD_BG_DARK:s.SIGN_PAD_BG_LIGHT);a.useEffect(()=>{const e=l.current;if(!e)return;const t=e.getContext("2d");t&&(e.width=P,e.height=A,t.fillStyle=S,t.fillRect(0,0,P,A))},[P,A,S,T]);const C=a.useCallback(e=>{const t=l.current;if(!t)return{x:0,y:0};const n=t.getBoundingClientRect(),d=t.width/n.width,G=t.height/n.height;if("touches"in e){const p=e.touches[0];return{x:(p.clientX-n.left)*d,y:(p.clientY-n.top)*G}}return{x:(e.clientX-n.left)*d,y:(e.clientY-n.top)*G}},[]),x=a.useCallback(e=>{if(o||i)return;const t=C(e);k(!0),E(t)},[o,i,C]),m=a.useCallback(e=>{if(!g||o||i)return;const t=l.current,n=t==null?void 0:t.getContext("2d");if(!t||!n||!f)return;const d=C(e);n.beginPath(),n.moveTo(f.x,f.y),n.lineTo(d.x,d.y),n.strokeStyle=R,n.lineWidth=b,n.lineCap="round",n.lineJoin="round",n.stroke(),E(d),L(!0)},[g,o,i,f,R,b,C]),N=a.useCallback(()=>{if(g&&u){const e=l.current;if(e&&r){const t=e.toDataURL(h,D);r(t)}}k(!1),E(null)},[g,u,r,h,D]),X=a.useCallback(()=>{const e=l.current,t=e==null?void 0:e.getContext("2d");!e||!t||(t.fillStyle=S==="transparent"?"rgba(0,0,0,0)":S,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),L(!1),r==null||r(null))},[S,r]),Y=a.useCallback(()=>{const e=l.current;if(!e||!u)return;const t=e.toDataURL(h,D);r==null||r(t)},[u,r,h,D]);return c.jsxs("div",{id:K,"data-testid":H,className:_.cn("Bear-SignPad",s.SIGN_PAD_ROOT_CLASSES,o&&"Bear-SignPad--disabled bear-opacity-50",i&&"Bear-SignPad--readonly",F),...W,children:[c.jsxs("div",{className:_.cn("Bear-SignPad__canvas-wrapper",s.SIGN_PAD_CANVAS_WRAPPER_CLASSES,!o&&!i&&s.SIGN_PAD_CANVAS_WRAPPER_HOVER,o&&"bear-cursor-not-allowed",!o&&!i&&"bear-cursor-crosshair"),children:[c.jsx("canvas",{ref:l,className:"Bear-SignPad__canvas bear-block bear-rounded-lg",style:{width:P,height:A},onMouseDown:x,onMouseMove:m,onMouseUp:N,onMouseLeave:N,onTouchStart:x,onTouchMove:m,onTouchEnd:N}),!u&&c.jsx("div",{className:_.cn("Bear-SignPad__placeholder",s.SIGN_PAD_PLACEHOLDER_CLASSES),children:U}),c.jsx("div",{className:_.cn("Bear-SignPad__line",s.SIGN_PAD_LINE_CLASSES)}),c.jsx("span",{className:_.cn("Bear-SignPad__x-mark",s.SIGN_PAD_X_MARK_CLASSES),children:"×"})]}),(I||v)&&c.jsxs("div",{className:_.cn("Bear-SignPad__actions",s.SIGN_PAD_ACTIONS_CLASSES),children:[I&&c.jsx(w.Button,{size:"sm",variant:"ghost",onClick:X,disabled:o||!u,children:M}),v&&c.jsx(w.Button,{size:"sm",variant:"primary",onClick:Y,disabled:o||!u,children:j})]})]})};exports.SignPad=V;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=400,e=200,A=2,S="Sign here",r="image/png",D=.92,a="#1f2937",b="#f3f4f6",t="#ffffff",P="#18181b",I="bear-inline-flex bear-flex-col bear-gap-2",E="bear-relative bear-rounded-lg bear-border-2 bear-border-dashed bear-border-gray-300 dark:bear-border-zinc-600",o="hover:bear-border-pink-400 dark:hover:bear-border-pink-500",T="bear-absolute bear-inset-0 bear-flex bear-items-center bear-justify-center bear-text-gray-400 dark:bear-text-zinc-500 bear-text-sm bear-pointer-events-none",G="bear-absolute bear-bottom-8 bear-left-4 bear-right-4 bear-border-b bear-border-gray-300 dark:bear-border-zinc-600",N="bear-absolute bear-bottom-6 bear-left-4 bear-text-gray-400 dark:bear-text-zinc-500 bear-text-lg bear-font-bold",L="bear-flex bear-gap-2 bear-justify-end";exports.SIGN_PAD_ACTIONS_CLASSES=L;exports.SIGN_PAD_BG_DARK=P;exports.SIGN_PAD_BG_LIGHT=t;exports.SIGN_PAD_CANVAS_WRAPPER_CLASSES=E;exports.SIGN_PAD_CANVAS_WRAPPER_HOVER=o;exports.SIGN_PAD_DEFAULT_HEIGHT=e;exports.SIGN_PAD_DEFAULT_OUTPUT_FORMAT=r;exports.SIGN_PAD_DEFAULT_OUTPUT_QUALITY=D;exports.SIGN_PAD_DEFAULT_PLACEHOLDER=S;exports.SIGN_PAD_DEFAULT_STROKE_WIDTH=A;exports.SIGN_PAD_DEFAULT_WIDTH=_;exports.SIGN_PAD_LINE_CLASSES=G;exports.SIGN_PAD_PLACEHOLDER_CLASSES=T;exports.SIGN_PAD_ROOT_CLASSES=I;exports.SIGN_PAD_STROKE_DARK=b;exports.SIGN_PAD_STROKE_LIGHT=a;exports.SIGN_PAD_X_MARK_CLASSES=N;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const SIGN_PAD_DEFAULT_WIDTH = 400;
|
|
2
|
+
export declare const SIGN_PAD_DEFAULT_HEIGHT = 200;
|
|
3
|
+
export declare const SIGN_PAD_DEFAULT_STROKE_COLOR = "currentColor";
|
|
4
|
+
export declare const SIGN_PAD_DEFAULT_STROKE_WIDTH = 2;
|
|
5
|
+
export declare const SIGN_PAD_DEFAULT_BACKGROUND = "transparent";
|
|
6
|
+
export declare const SIGN_PAD_DEFAULT_PLACEHOLDER = "Sign here";
|
|
7
|
+
export declare const SIGN_PAD_DEFAULT_OUTPUT_FORMAT = "image/png";
|
|
8
|
+
export declare const SIGN_PAD_DEFAULT_OUTPUT_QUALITY = 0.92;
|
|
9
|
+
export declare const SIGN_PAD_STROKE_LIGHT = "#1f2937";
|
|
10
|
+
export declare const SIGN_PAD_STROKE_DARK = "#f3f4f6";
|
|
11
|
+
export declare const SIGN_PAD_BG_LIGHT = "#ffffff";
|
|
12
|
+
export declare const SIGN_PAD_BG_DARK = "#18181b";
|
|
13
|
+
export declare const SIGN_PAD_ROOT_CLASSES = "bear-inline-flex bear-flex-col bear-gap-2";
|
|
14
|
+
export declare const SIGN_PAD_CANVAS_WRAPPER_CLASSES = "bear-relative bear-rounded-lg bear-border-2 bear-border-dashed bear-border-gray-300 dark:bear-border-zinc-600";
|
|
15
|
+
export declare const SIGN_PAD_CANVAS_WRAPPER_HOVER = "hover:bear-border-pink-400 dark:hover:bear-border-pink-500";
|
|
16
|
+
export declare const SIGN_PAD_PLACEHOLDER_CLASSES = "bear-absolute bear-inset-0 bear-flex bear-items-center bear-justify-center bear-text-gray-400 dark:bear-text-zinc-500 bear-text-sm bear-pointer-events-none";
|
|
17
|
+
export declare const SIGN_PAD_LINE_CLASSES = "bear-absolute bear-bottom-8 bear-left-4 bear-right-4 bear-border-b bear-border-gray-300 dark:bear-border-zinc-600";
|
|
18
|
+
export declare const SIGN_PAD_X_MARK_CLASSES = "bear-absolute bear-bottom-6 bear-left-4 bear-text-gray-400 dark:bear-text-zinc-500 bear-text-lg bear-font-bold";
|
|
19
|
+
export declare const SIGN_PAD_ACTIONS_CLASSES = "bear-flex bear-gap-2 bear-justify-end";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const e = 400, r = 200, _ = 2, a = "Sign here", b = "image/png", t = 0.92, A = "#1f2937", o = "#f3f4f6", S = "#ffffff", n = "#18181b", D = "bear-inline-flex bear-flex-col bear-gap-2", s = "bear-relative bear-rounded-lg bear-border-2 bear-border-dashed bear-border-gray-300 dark:bear-border-zinc-600", I = "hover:bear-border-pink-400 dark:hover:bear-border-pink-500", P = "bear-absolute bear-inset-0 bear-flex bear-items-center bear-justify-center bear-text-gray-400 dark:bear-text-zinc-500 bear-text-sm bear-pointer-events-none", c = "bear-absolute bear-bottom-8 bear-left-4 bear-right-4 bear-border-b bear-border-gray-300 dark:bear-border-zinc-600", E = "bear-absolute bear-bottom-6 bear-left-4 bear-text-gray-400 dark:bear-text-zinc-500 bear-text-lg bear-font-bold", G = "bear-flex bear-gap-2 bear-justify-end";
|
|
2
|
+
export {
|
|
3
|
+
G as SIGN_PAD_ACTIONS_CLASSES,
|
|
4
|
+
n as SIGN_PAD_BG_DARK,
|
|
5
|
+
S as SIGN_PAD_BG_LIGHT,
|
|
6
|
+
s as SIGN_PAD_CANVAS_WRAPPER_CLASSES,
|
|
7
|
+
I as SIGN_PAD_CANVAS_WRAPPER_HOVER,
|
|
8
|
+
r as SIGN_PAD_DEFAULT_HEIGHT,
|
|
9
|
+
b as SIGN_PAD_DEFAULT_OUTPUT_FORMAT,
|
|
10
|
+
t as SIGN_PAD_DEFAULT_OUTPUT_QUALITY,
|
|
11
|
+
a as SIGN_PAD_DEFAULT_PLACEHOLDER,
|
|
12
|
+
_ as SIGN_PAD_DEFAULT_STROKE_WIDTH,
|
|
13
|
+
e as SIGN_PAD_DEFAULT_WIDTH,
|
|
14
|
+
c as SIGN_PAD_LINE_CLASSES,
|
|
15
|
+
P as SIGN_PAD_PLACEHOLDER_CLASSES,
|
|
16
|
+
D as SIGN_PAD_ROOT_CLASSES,
|
|
17
|
+
o as SIGN_PAD_STROKE_DARK,
|
|
18
|
+
A as SIGN_PAD_STROKE_LIGHT,
|
|
19
|
+
E as SIGN_PAD_X_MARK_CLASSES
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SignPadProps } from './SignPad.types';
|
|
3
|
+
/**
|
|
4
|
+
* SignPad - Digital signature capture component
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* const [signature, setSignature] = useState<string | null>(null);
|
|
9
|
+
*
|
|
10
|
+
* <SignPad
|
|
11
|
+
* onChange={setSignature}
|
|
12
|
+
* placeholder="Sign here"
|
|
13
|
+
* />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const SignPad: FC<SignPadProps>;
|
|
17
|
+
export default SignPad;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { jsxs as I, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as J, useState as m, useEffect as y, useCallback as d } from "react";
|
|
3
|
+
import { cn as _ } from "../../utils/cn.js";
|
|
4
|
+
import { Button as O } from "../Button/Button.js";
|
|
5
|
+
import { SIGN_PAD_DEFAULT_WIDTH as q, SIGN_PAD_DEFAULT_HEIGHT as Z, SIGN_PAD_DEFAULT_STROKE_WIDTH as $, SIGN_PAD_DEFAULT_PLACEHOLDER as tt, SIGN_PAD_DEFAULT_OUTPUT_FORMAT as et, SIGN_PAD_DEFAULT_OUTPUT_QUALITY as nt, SIGN_PAD_BG_DARK as rt, SIGN_PAD_BG_LIGHT as ot, SIGN_PAD_STROKE_DARK as at, SIGN_PAD_STROKE_LIGHT as st, SIGN_PAD_PLACEHOLDER_CLASSES as ct, SIGN_PAD_LINE_CLASSES as it, SIGN_PAD_X_MARK_CLASSES as lt, SIGN_PAD_CANVAS_WRAPPER_HOVER as dt, SIGN_PAD_CANVAS_WRAPPER_CLASSES as _t, SIGN_PAD_ACTIONS_CLASSES as ut, SIGN_PAD_ROOT_CLASSES as St } from "./SignPad.const.js";
|
|
6
|
+
const gt = (U) => {
|
|
7
|
+
const {
|
|
8
|
+
onChange: r,
|
|
9
|
+
width: S = q,
|
|
10
|
+
height: A = Z,
|
|
11
|
+
strokeColor: B,
|
|
12
|
+
strokeWidth: p = $,
|
|
13
|
+
backgroundColor: M,
|
|
14
|
+
placeholder: F = tt,
|
|
15
|
+
disabled: o = !1,
|
|
16
|
+
readOnly: a = !1,
|
|
17
|
+
showClear: v = !0,
|
|
18
|
+
showSave: C = !1,
|
|
19
|
+
clearText: H = "Clear",
|
|
20
|
+
saveText: K = "Save",
|
|
21
|
+
outputFormat: h = et,
|
|
22
|
+
outputQuality: P = nt,
|
|
23
|
+
className: W,
|
|
24
|
+
testId: X,
|
|
25
|
+
id: Y,
|
|
26
|
+
...V
|
|
27
|
+
} = U, s = J(null), [D, L] = m(!1), [c, R] = m(!1), [f, E] = m(null), [N, j] = m(!1);
|
|
28
|
+
y(() => {
|
|
29
|
+
const t = () => {
|
|
30
|
+
const n = document.documentElement.classList.contains("dark");
|
|
31
|
+
j(n);
|
|
32
|
+
};
|
|
33
|
+
t();
|
|
34
|
+
const e = new MutationObserver(t);
|
|
35
|
+
return e.observe(document.documentElement, { attributes: !0, attributeFilter: ["class"] }), () => e.disconnect();
|
|
36
|
+
}, []);
|
|
37
|
+
const G = B || (N ? at : st), u = M || (N ? rt : ot);
|
|
38
|
+
y(() => {
|
|
39
|
+
const t = s.current;
|
|
40
|
+
if (!t) return;
|
|
41
|
+
const e = t.getContext("2d");
|
|
42
|
+
e && (t.width = S, t.height = A, e.fillStyle = u, e.fillRect(0, 0, S, A));
|
|
43
|
+
}, [S, A, u, N]);
|
|
44
|
+
const g = d((t) => {
|
|
45
|
+
const e = s.current;
|
|
46
|
+
if (!e) return { x: 0, y: 0 };
|
|
47
|
+
const n = e.getBoundingClientRect(), i = e.width / n.width, w = e.height / n.height;
|
|
48
|
+
if ("touches" in t) {
|
|
49
|
+
const x = t.touches[0];
|
|
50
|
+
return {
|
|
51
|
+
x: (x.clientX - n.left) * i,
|
|
52
|
+
y: (x.clientY - n.top) * w
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
x: (t.clientX - n.left) * i,
|
|
57
|
+
y: (t.clientY - n.top) * w
|
|
58
|
+
};
|
|
59
|
+
}, []), b = d((t) => {
|
|
60
|
+
if (o || a) return;
|
|
61
|
+
const e = g(t);
|
|
62
|
+
L(!0), E(e);
|
|
63
|
+
}, [o, a, g]), k = d((t) => {
|
|
64
|
+
if (!D || o || a) return;
|
|
65
|
+
const e = s.current, n = e == null ? void 0 : e.getContext("2d");
|
|
66
|
+
if (!e || !n || !f) return;
|
|
67
|
+
const i = g(t);
|
|
68
|
+
n.beginPath(), n.moveTo(f.x, f.y), n.lineTo(i.x, i.y), n.strokeStyle = G, n.lineWidth = p, n.lineCap = "round", n.lineJoin = "round", n.stroke(), E(i), R(!0);
|
|
69
|
+
}, [D, o, a, f, G, p, g]), T = d(() => {
|
|
70
|
+
if (D && c) {
|
|
71
|
+
const t = s.current;
|
|
72
|
+
if (t && r) {
|
|
73
|
+
const e = t.toDataURL(h, P);
|
|
74
|
+
r(e);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
L(!1), E(null);
|
|
78
|
+
}, [D, c, r, h, P]), z = d(() => {
|
|
79
|
+
const t = s.current, e = t == null ? void 0 : t.getContext("2d");
|
|
80
|
+
!t || !e || (e.fillStyle = u === "transparent" ? "rgba(0,0,0,0)" : u, e.clearRect(0, 0, t.width, t.height), e.fillRect(0, 0, t.width, t.height), R(!1), r == null || r(null));
|
|
81
|
+
}, [u, r]), Q = d(() => {
|
|
82
|
+
const t = s.current;
|
|
83
|
+
if (!t || !c) return;
|
|
84
|
+
const e = t.toDataURL(h, P);
|
|
85
|
+
r == null || r(e);
|
|
86
|
+
}, [c, r, h, P]);
|
|
87
|
+
return /* @__PURE__ */ I(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
id: Y,
|
|
91
|
+
"data-testid": X,
|
|
92
|
+
className: _(
|
|
93
|
+
"Bear-SignPad",
|
|
94
|
+
St,
|
|
95
|
+
o && "Bear-SignPad--disabled bear-opacity-50",
|
|
96
|
+
a && "Bear-SignPad--readonly",
|
|
97
|
+
W
|
|
98
|
+
),
|
|
99
|
+
...V,
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ I(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
className: _(
|
|
105
|
+
"Bear-SignPad__canvas-wrapper",
|
|
106
|
+
_t,
|
|
107
|
+
!o && !a && dt,
|
|
108
|
+
o && "bear-cursor-not-allowed",
|
|
109
|
+
!o && !a && "bear-cursor-crosshair"
|
|
110
|
+
),
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ l(
|
|
113
|
+
"canvas",
|
|
114
|
+
{
|
|
115
|
+
ref: s,
|
|
116
|
+
className: "Bear-SignPad__canvas bear-block bear-rounded-lg",
|
|
117
|
+
style: { width: S, height: A },
|
|
118
|
+
onMouseDown: b,
|
|
119
|
+
onMouseMove: k,
|
|
120
|
+
onMouseUp: T,
|
|
121
|
+
onMouseLeave: T,
|
|
122
|
+
onTouchStart: b,
|
|
123
|
+
onTouchMove: k,
|
|
124
|
+
onTouchEnd: T
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
!c && /* @__PURE__ */ l("div", { className: _("Bear-SignPad__placeholder", ct), children: F }),
|
|
128
|
+
/* @__PURE__ */ l("div", { className: _("Bear-SignPad__line", it) }),
|
|
129
|
+
/* @__PURE__ */ l("span", { className: _("Bear-SignPad__x-mark", lt), children: "×" })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
(v || C) && /* @__PURE__ */ I("div", { className: _("Bear-SignPad__actions", ut), children: [
|
|
134
|
+
v && /* @__PURE__ */ l(
|
|
135
|
+
O,
|
|
136
|
+
{
|
|
137
|
+
size: "sm",
|
|
138
|
+
variant: "ghost",
|
|
139
|
+
onClick: z,
|
|
140
|
+
disabled: o || !c,
|
|
141
|
+
children: H
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
C && /* @__PURE__ */ l(
|
|
145
|
+
O,
|
|
146
|
+
{
|
|
147
|
+
size: "sm",
|
|
148
|
+
variant: "primary",
|
|
149
|
+
onClick: Q,
|
|
150
|
+
disabled: o || !c,
|
|
151
|
+
children: K
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
] })
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
);
|
|
158
|
+
};
|
|
159
|
+
export {
|
|
160
|
+
gt as SignPad
|
|
161
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface SignPadProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
3
|
+
/** Callback when signature changes - receives base64 image data */
|
|
4
|
+
onChange?: (signature: string | null) => void;
|
|
5
|
+
/** Width of the canvas */
|
|
6
|
+
width?: number;
|
|
7
|
+
/** Height of the canvas */
|
|
8
|
+
height?: number;
|
|
9
|
+
/** Stroke color */
|
|
10
|
+
strokeColor?: string;
|
|
11
|
+
/** Stroke width */
|
|
12
|
+
strokeWidth?: number;
|
|
13
|
+
/** Background color */
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
/** Placeholder text */
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
/** Disabled state */
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Read-only state */
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
/** Show clear button */
|
|
22
|
+
showClear?: boolean;
|
|
23
|
+
/** Show save button */
|
|
24
|
+
showSave?: boolean;
|
|
25
|
+
/** Clear button text */
|
|
26
|
+
clearText?: string;
|
|
27
|
+
/** Save button text */
|
|
28
|
+
saveText?: string;
|
|
29
|
+
/** Output format */
|
|
30
|
+
outputFormat?: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
31
|
+
/** Output quality (0-1 for jpeg/webp) */
|
|
32
|
+
outputQuality?: number;
|
|
33
|
+
/** Test ID */
|
|
34
|
+
testId?: string;
|
|
35
|
+
/** Unique ID */
|
|
36
|
+
id?: string;
|
|
37
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),c=require("react"),T=require("../../utils/cn.cjs"),d=require("./Skeleton.const.cjs"),_=()=>{const e="bear-skeleton-styles";if(typeof document<"u"&&!document.getElementById(e)){const t=document.createElement("style");t.id=e,t.textContent=d.SKELETON_WAVE_STYLES,document.head.appendChild(t)}},a=c.forwardRef(({variant:e="text",animation:t="pulse",width:l,height:s,borderRadius:n,count:i=1,gap:E=8,className:o,style:f,testId:y,...h},p)=>{c.useEffect(()=>{t==="wave"&&_()},[t]);const x=S=>{if(S!==void 0)return typeof S=="number"?`${S}px`:S},N={width:x(l),height:x(s)||(e==="text"?d.SKELETON_TEXT_HEIGHT:void 0),borderRadius:n?x(n):void 0,...f},k=T.cn(d.SKELETON_BASE_CLASSES,d.SKELETON_VARIANT_CLASSES[e],d.SKELETON_ANIMATION_CLASSES[t],d.SKELETON_BG_CLASSES,o);return i>1?r.jsx("div",{className:"Bear-Skeleton__group flex flex-col",style:{gap:x(E)},"data-testid":y,children:Array.from({length:i}).map((S,g)=>r.jsx("div",{ref:g===0?p:void 0,className:k,style:N,...h},g))}):r.jsx("div",{ref:p,className:k,style:N,"data-testid":y,...h})});a.displayName="Skeleton";const u=c.forwardRef(({lines:e=3,lastLineWidth:t="80%",gap:l=8,animation:s="pulse",...n},i)=>{c.useEffect(()=>{s==="wave"&&_()},[s]);const E=o=>{if(o!==void 0)return typeof o=="number"?`${o}px`:o};return r.jsx("div",{ref:i,className:"Bear-SkeletonText flex flex-col",style:{gap:E(l)},children:Array.from({length:e}).map((o,f)=>r.jsx(a,{variant:"text",animation:s,width:f===e-1?t:"100%",...n},f))})});u.displayName="SkeletonText";const m=c.forwardRef(({size:e="md",animation:t="pulse",...l},s)=>{const n=typeof e=="number"?e:d.SKELETON_AVATAR_SIZES[e];return r.jsx(a,{ref:s,variant:"circular",animation:t,width:n,height:n,...l})});m.displayName="SkeletonAvatar";const A=c.forwardRef(({animation:e="pulse",className:t,...l},s)=>r.jsxs("div",{ref:s,className:T.cn("Bear-SkeletonCard p-4 rounded-lg border border-gray-200 dark:border-zinc-700 bg-white dark:bg-zinc-900",t),...l,children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx(m,{animation:e}),r.jsxs("div",{className:"flex-1",children:[r.jsx(a,{animation:e,width:"60%",height:16,className:"mb-2"}),r.jsx(a,{animation:e,width:"40%",height:12})]})]}),r.jsx(u,{animation:e,lines:3})]}));A.displayName="SkeletonCard";exports.Skeleton=a;exports.SkeletonAvatar=m;exports.SkeletonCard=A;exports.SkeletonText=u;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="Bear-Skeleton relative overflow-hidden",n={text:"rounded",circular:"rounded-full",rectangular:"rounded-none",rounded:"rounded-lg"},a={pulse:"animate-pulse",wave:"Bear-Skeleton--wave",none:""},r="bg-gray-200 dark:bg-zinc-700",S=`
|
|
2
|
+
@keyframes Bear-Skeleton-wave {
|
|
3
|
+
0% {
|
|
4
|
+
transform: translateX(-100%);
|
|
5
|
+
}
|
|
6
|
+
50% {
|
|
7
|
+
transform: translateX(100%);
|
|
8
|
+
}
|
|
9
|
+
100% {
|
|
10
|
+
transform: translateX(100%);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.Bear-Skeleton--wave::after {
|
|
15
|
+
content: '';
|
|
16
|
+
position: absolute;
|
|
17
|
+
inset: 0;
|
|
18
|
+
transform: translateX(-100%);
|
|
19
|
+
background: linear-gradient(
|
|
20
|
+
90deg,
|
|
21
|
+
transparent,
|
|
22
|
+
rgba(255, 255, 255, 0.3),
|
|
23
|
+
transparent
|
|
24
|
+
);
|
|
25
|
+
animation: Bear-Skeleton-wave 1.6s linear 0.5s infinite;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.dark .Bear-Skeleton--wave::after {
|
|
29
|
+
background: linear-gradient(
|
|
30
|
+
90deg,
|
|
31
|
+
transparent,
|
|
32
|
+
rgba(255, 255, 255, 0.1),
|
|
33
|
+
transparent
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
`,t="1em",E={sm:32,md:40,lg:56};exports.SKELETON_ANIMATION_CLASSES=a;exports.SKELETON_AVATAR_SIZES=E;exports.SKELETON_BASE_CLASSES=e;exports.SKELETON_BG_CLASSES=r;exports.SKELETON_TEXT_HEIGHT=t;exports.SKELETON_VARIANT_CLASSES=n;exports.SKELETON_WAVE_STYLES=S;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SkeletonVariant, SkeletonAnimation } from './Skeleton.types';
|
|
2
|
+
export declare const SKELETON_BASE_CLASSES = "Bear-Skeleton relative overflow-hidden";
|
|
3
|
+
export declare const SKELETON_VARIANT_CLASSES: Record<SkeletonVariant, string>;
|
|
4
|
+
export declare const SKELETON_ANIMATION_CLASSES: Record<SkeletonAnimation, string>;
|
|
5
|
+
export declare const SKELETON_BG_CLASSES = "bg-gray-200 dark:bg-zinc-700";
|
|
6
|
+
export declare const SKELETON_WAVE_STYLES = "\n @keyframes Bear-Skeleton-wave {\n 0% {\n transform: translateX(-100%);\n }\n 50% {\n transform: translateX(100%);\n }\n 100% {\n transform: translateX(100%);\n }\n }\n \n .Bear-Skeleton--wave::after {\n content: '';\n position: absolute;\n inset: 0;\n transform: translateX(-100%);\n background: linear-gradient(\n 90deg,\n transparent,\n rgba(255, 255, 255, 0.3),\n transparent\n );\n animation: Bear-Skeleton-wave 1.6s linear 0.5s infinite;\n }\n \n .dark .Bear-Skeleton--wave::after {\n background: linear-gradient(\n 90deg,\n transparent,\n rgba(255, 255, 255, 0.1),\n transparent\n );\n }\n";
|
|
7
|
+
export declare const SKELETON_TEXT_HEIGHT = "1em";
|
|
8
|
+
export declare const SKELETON_AVATAR_SIZES: {
|
|
9
|
+
sm: number;
|
|
10
|
+
md: number;
|
|
11
|
+
lg: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const e = "Bear-Skeleton relative overflow-hidden", n = {
|
|
2
|
+
text: "rounded",
|
|
3
|
+
circular: "rounded-full",
|
|
4
|
+
rectangular: "rounded-none",
|
|
5
|
+
rounded: "rounded-lg"
|
|
6
|
+
}, a = {
|
|
7
|
+
pulse: "animate-pulse",
|
|
8
|
+
wave: "Bear-Skeleton--wave",
|
|
9
|
+
none: ""
|
|
10
|
+
}, r = "bg-gray-200 dark:bg-zinc-700", t = `
|
|
11
|
+
@keyframes Bear-Skeleton-wave {
|
|
12
|
+
0% {
|
|
13
|
+
transform: translateX(-100%);
|
|
14
|
+
}
|
|
15
|
+
50% {
|
|
16
|
+
transform: translateX(100%);
|
|
17
|
+
}
|
|
18
|
+
100% {
|
|
19
|
+
transform: translateX(100%);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.Bear-Skeleton--wave::after {
|
|
24
|
+
content: '';
|
|
25
|
+
position: absolute;
|
|
26
|
+
inset: 0;
|
|
27
|
+
transform: translateX(-100%);
|
|
28
|
+
background: linear-gradient(
|
|
29
|
+
90deg,
|
|
30
|
+
transparent,
|
|
31
|
+
rgba(255, 255, 255, 0.3),
|
|
32
|
+
transparent
|
|
33
|
+
);
|
|
34
|
+
animation: Bear-Skeleton-wave 1.6s linear 0.5s infinite;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.dark .Bear-Skeleton--wave::after {
|
|
38
|
+
background: linear-gradient(
|
|
39
|
+
90deg,
|
|
40
|
+
transparent,
|
|
41
|
+
rgba(255, 255, 255, 0.1),
|
|
42
|
+
transparent
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
`, o = "1em", S = {
|
|
46
|
+
sm: 32,
|
|
47
|
+
md: 40,
|
|
48
|
+
lg: 56
|
|
49
|
+
};
|
|
50
|
+
export {
|
|
51
|
+
a as SKELETON_ANIMATION_CLASSES,
|
|
52
|
+
S as SKELETON_AVATAR_SIZES,
|
|
53
|
+
e as SKELETON_BASE_CLASSES,
|
|
54
|
+
r as SKELETON_BG_CLASSES,
|
|
55
|
+
o as SKELETON_TEXT_HEIGHT,
|
|
56
|
+
n as SKELETON_VARIANT_CLASSES,
|
|
57
|
+
t as SKELETON_WAVE_STYLES
|
|
58
|
+
};
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SkeletonProps } from './Skeleton.types';
|
|
1
|
+
import { SkeletonProps, SkeletonTextProps, SkeletonAvatarProps } from './Skeleton.types';
|
|
3
2
|
/**
|
|
4
|
-
* Skeleton
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <Skeleton variant="text" width={200} />
|
|
9
|
-
* <Skeleton variant="circular" width={40} height={40} />
|
|
10
|
-
* <Skeleton variant="rectangular" width="100%" height={200} />
|
|
11
|
-
* <Skeleton variant="text" count={3} />
|
|
12
|
-
* ```
|
|
3
|
+
* Skeleton - Loading placeholder with animation
|
|
13
4
|
*/
|
|
14
|
-
export declare const Skeleton:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
5
|
+
export declare const Skeleton: import('react').ForwardRefExoticComponent<SkeletonProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
+
/**
|
|
7
|
+
* SkeletonText - Text placeholder with multiple lines
|
|
8
|
+
*/
|
|
9
|
+
export declare const SkeletonText: import('react').ForwardRefExoticComponent<SkeletonTextProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
/**
|
|
11
|
+
* SkeletonAvatar - Circular avatar placeholder
|
|
12
|
+
*/
|
|
13
|
+
export declare const SkeletonAvatar: import('react').ForwardRefExoticComponent<SkeletonAvatarProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
|
+
/**
|
|
15
|
+
* SkeletonCard - Card placeholder
|
|
16
|
+
*/
|
|
17
|
+
export declare const SkeletonCard: import('react').ForwardRefExoticComponent<SkeletonProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
27
18
|
export default Skeleton;
|