@react-fabric/core 1.0.0-beta.4 → 1.0.0-beta.40
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/{src/components/actionLabel/ActionLabel.module.css → css/components/_actionLabel.css} +4 -4
- package/{src/overlays/alert/Alert.module.css → css/components/_alert.css} +3 -3
- package/{src/components/animations/Animations.module.css → css/components/_animations.css} +9 -9
- package/{src/components/avatar/Avatar.module.css → css/components/_avatar.css} +11 -11
- package/{src/components/badge/Badge.module.css → css/components/_badge.css} +19 -17
- package/{src/components/breadcrumbs/Breadcrumbs.module.css → css/components/_breadcrumbs.css} +49 -44
- package/{src/components/button/Button.module.css → css/components/_button.css} +68 -78
- package/{src/components/card/Card.module.css → css/components/_card.css} +32 -28
- package/{src/components/chip/Chip.module.css → css/components/_chip.css} +15 -11
- package/{src/components/collapsable/Collapsable.module.css → css/components/_collapsable.css} +3 -3
- package/css/components/_divider.css +32 -0
- package/{src/components/dropdown/Dropdown.module.css → css/components/_dropdown.css} +2 -2
- package/{src/overlays/flyout/Flyout.module.css → css/components/_flyout.css} +6 -6
- package/{src/components/icon/Icon.module.css → css/components/_icon.css} +8 -5
- package/{src/components/media/Media.module.css → css/components/_media.css} +17 -17
- package/{src/components/menu/Menu.module.css → css/components/_menu.css} +15 -16
- package/{src/overlays/message/Message.module.css → css/components/_message.css} +2 -2
- package/{src/components/meter/Meter.module.css → css/components/_meter.css} +10 -10
- package/{src/overlays/modal/Modal.module.css → css/components/_modal.css} +6 -6
- package/{src/components/panel/Panel.module.css → css/components/_panel.css} +17 -17
- package/{src/components/progress/Progress.module.css → css/components/_progress.css} +7 -10
- package/{src/components/tabpanel/TabPanel.module.css → css/components/_tabPanel.css} +73 -84
- package/{src/overlays/toast/Toast.module.css → css/components/_toast.css} +2 -2
- package/css/components/_tooltip.css +29 -0
- package/{src/core/content/Content.module.css → css/components/index.css} +25 -18
- package/{src/core/aside/Aside.module.css → css/core/_aside.css} +42 -42
- package/{src/core/section/Section.module.css → css/core/_content.css} +5 -3
- package/{src/core/boundary/ErrorBoundary.module.css → css/core/_errorboundary.css} +9 -9
- package/{src/core/headfoot/HeadFoot.module.css → css/core/_headfoot.css} +4 -10
- package/{src/core/page/Page.module.css → css/core/_page.css} +10 -14
- package/{src/core/responsive/Responsive.module.css → css/core/_responsive.css} +10 -10
- package/css/core/_section.css +28 -0
- package/{src/core/theme/Theme.module.css → css/core/_theme.css} +3 -3
- package/{src/typography/Typography.module.css → css/core/_typography.css} +14 -12
- package/{src/core/viewport/Viewport.module.css → css/core/_viewport.css} +7 -3
- package/css/core/index.css +33 -0
- package/css/reset/_gradients.css +8 -8
- package/css/reset/_reset.css +41 -223
- package/css/reset/_text.css +14 -29
- package/css/reset/_theme.css +315 -32
- package/css/reset/index.css +4 -4
- package/css/styles.css +7 -6
- package/css/theme/_colors.css +320 -0
- package/css/theme/_utilities.css +530 -0
- package/css/theme/index.css +44 -0
- package/dist/cjs/components/actionLabel/ActionLabel.js +3 -3
- package/dist/cjs/components/animations/Animations.js +29 -18
- package/dist/cjs/components/avatar/Avatar.js +10 -13
- package/dist/cjs/components/avatar/AvatarGroup.js +3 -3
- package/dist/cjs/components/badge/Badge.js +5 -5
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +10 -8
- package/dist/cjs/components/button/Button.js +18 -14
- package/dist/cjs/components/button/ButtonGroup.js +4 -3
- package/dist/cjs/components/button/ConfirmButton.js +7 -2
- package/dist/cjs/components/button/ToggleButtonGroup.js +3 -3
- package/dist/cjs/components/callout/Callout.js +15 -4
- package/dist/cjs/components/card/Card.js +8 -7
- package/dist/cjs/components/card/CardCover.js +10 -5
- package/dist/cjs/components/chip/Chip.js +11 -7
- package/dist/cjs/components/collapsable/Collapsable.js +5 -5
- package/dist/cjs/components/divider/Divider.js +10 -7
- package/dist/cjs/components/dropdown/Dropdown.js +5 -4
- package/dist/cjs/components/dropdown/DropdownTool.js +4 -3
- package/dist/cjs/components/icon/Icon.js +15 -14
- package/dist/cjs/components/media/Media.js +116 -75
- package/dist/cjs/components/menu/ContextMenu.js +30 -10
- package/dist/cjs/components/menu/Menu.js +39 -20
- package/dist/cjs/components/menu/MenuItem.js +30 -16
- package/dist/cjs/components/meter/Meter.js +2 -3
- package/dist/cjs/components/navigator/Navigator.js +16 -9
- package/dist/cjs/components/panel/Panel.js +10 -9
- package/dist/cjs/components/panel/PanelGroup.js +1 -2
- package/dist/cjs/components/progress/ProgressBar.js +6 -5
- package/dist/cjs/components/progress/ProgressCircle.js +6 -4
- package/dist/cjs/components/tabpanel/Tab.js +58 -38
- package/dist/cjs/components/tabpanel/TabPanel.js +20 -16
- package/dist/cjs/core/aside/Aside.js +11 -10
- package/dist/cjs/core/boundary/ErrorBoundary.js +6 -7
- package/dist/cjs/core/boundary/ErrorIcon.js +1 -2
- package/dist/cjs/core/content/Content.js +9 -7
- package/dist/cjs/core/headfoot/HeadFoot.js +2 -20
- package/dist/cjs/core/page/Page.js +3 -3
- package/dist/cjs/core/responsive/Responsive.js +3 -4
- package/dist/cjs/core/section/Section.js +1 -2
- package/dist/cjs/core/theme/ThemeProvider.js +7 -8
- package/dist/cjs/core/viewport/Viewport.js +4 -2
- package/dist/cjs/hooks/useNavigator.js +6 -4
- package/dist/cjs/hotkeys/HotKeyLabel.js +1 -1
- package/dist/cjs/hotkeys/HotKeyWrapper.js +3 -1
- package/dist/cjs/index.js +6 -2
- package/dist/cjs/overlays/alert/Alert.js +19 -13
- package/dist/cjs/overlays/flyout/Flyout.js +42 -44
- package/dist/cjs/overlays/message/Message.js +6 -3
- package/dist/cjs/overlays/modal/Modal.js +9 -10
- package/dist/cjs/overlays/toast/Toast.js +17 -9
- package/dist/cjs/overlays/tooltip/Tooltip.js +20 -8
- package/dist/cjs/types/icons.js +4 -0
- package/dist/cjs/typography/Abbr.js +2 -3
- package/dist/cjs/typography/{Link.js → Anchor.js} +5 -4
- package/dist/cjs/typography/Mark.js +2 -3
- package/dist/cjs/typography/Text.js +3 -4
- package/dist/cjs/typography/Title.js +3 -3
- package/dist/cjs/utils/cloneElement.js +44 -0
- package/dist/cjs/utils/getColor.js +1 -18
- package/dist/esm/components/actionLabel/ActionLabel.js +3 -3
- package/dist/esm/components/animations/Animations.js +30 -19
- package/dist/esm/components/avatar/Avatar.js +11 -14
- package/dist/esm/components/avatar/AvatarGroup.js +3 -3
- package/dist/esm/components/badge/Badge.js +5 -5
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +10 -8
- package/dist/esm/components/button/Button.js +18 -14
- package/dist/esm/components/button/ButtonGroup.js +5 -4
- package/dist/esm/components/button/ConfirmButton.js +7 -2
- package/dist/esm/components/button/ToggleButtonGroup.js +4 -4
- package/dist/esm/components/callout/Callout.js +15 -4
- package/dist/esm/components/card/Card.js +8 -7
- package/dist/esm/components/card/CardCover.js +10 -5
- package/dist/esm/components/chip/Chip.js +12 -8
- package/dist/esm/components/collapsable/Collapsable.js +5 -5
- package/dist/esm/components/divider/Divider.js +11 -8
- package/dist/esm/components/dropdown/Dropdown.js +5 -4
- package/dist/esm/components/dropdown/DropdownTool.js +4 -3
- package/dist/esm/components/icon/Icon.js +15 -14
- package/dist/esm/components/media/Media.js +117 -76
- package/dist/esm/components/menu/ContextMenu.js +32 -12
- package/dist/esm/components/menu/Menu.js +41 -22
- package/dist/esm/components/menu/MenuItem.js +24 -10
- package/dist/esm/components/meter/Meter.js +2 -3
- package/dist/esm/components/navigator/Navigator.js +16 -9
- package/dist/esm/components/panel/Panel.js +10 -9
- package/dist/esm/components/panel/PanelGroup.js +1 -2
- package/dist/esm/components/progress/ProgressBar.js +6 -5
- package/dist/esm/components/progress/ProgressCircle.js +6 -4
- package/dist/esm/components/tabpanel/Tab.js +59 -39
- package/dist/esm/components/tabpanel/TabPanel.js +20 -16
- package/dist/esm/core/aside/Aside.js +11 -10
- package/dist/esm/core/boundary/ErrorBoundary.js +6 -7
- package/dist/esm/core/boundary/ErrorIcon.js +1 -2
- package/dist/esm/core/content/Content.js +9 -7
- package/dist/esm/core/headfoot/HeadFoot.js +2 -20
- package/dist/esm/core/page/Page.js +3 -3
- package/dist/esm/core/responsive/Responsive.js +3 -4
- package/dist/esm/core/section/Section.js +1 -2
- package/dist/esm/core/theme/ThemeProvider.js +7 -8
- package/dist/esm/core/viewport/Viewport.js +4 -2
- package/dist/esm/hooks/useNavigator.js +7 -5
- package/dist/esm/hotkeys/HotKeyLabel.js +1 -1
- package/dist/esm/hotkeys/HotKeyWrapper.js +3 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/overlays/alert/Alert.js +20 -14
- package/dist/esm/overlays/flyout/Flyout.js +43 -45
- package/dist/esm/overlays/message/Message.js +7 -4
- package/dist/esm/overlays/modal/Modal.js +10 -11
- package/dist/esm/overlays/toast/Toast.js +18 -10
- package/dist/esm/overlays/tooltip/Tooltip.js +20 -8
- package/dist/esm/types/icons.js +4 -0
- package/dist/esm/typography/Abbr.js +2 -3
- package/dist/esm/typography/{Link.js → Anchor.js} +6 -5
- package/dist/esm/typography/Mark.js +2 -3
- package/dist/esm/typography/Text.js +4 -5
- package/dist/esm/typography/Title.js +4 -4
- package/dist/esm/utils/cloneElement.js +44 -0
- package/dist/esm/utils/getColor.js +2 -16
- package/dist/types/components/actionLabel/ActionLabel.d.ts +2 -2
- package/dist/types/components/animations/Animations.d.ts +5 -5
- package/dist/types/components/avatar/Avatar.d.ts +3 -3
- package/dist/types/components/badge/Badge.d.ts +5 -1
- package/dist/types/components/breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/types/components/button/Button.d.ts +7 -5
- package/dist/types/components/button/ButtonGroup.d.ts +2 -2
- package/dist/types/components/button/ConfirmButton.d.ts +6 -1
- package/dist/types/components/callout/Callout.d.ts +2 -2
- package/dist/types/components/card/Card.d.ts +3 -3
- package/dist/types/components/chip/Chip.d.ts +3 -3
- package/dist/types/components/collapsable/Collapsable.d.ts +5 -1
- package/dist/types/components/divider/Divider.d.ts +7 -3
- package/dist/types/components/dropdown/DropdownTool.d.ts +2 -1
- package/dist/types/components/icon/Icon.d.ts +3 -3
- package/dist/types/components/media/Media.d.ts +2 -2
- package/dist/types/components/menu/ContextMenu.d.ts +2 -1
- package/dist/types/components/menu/MenuItem.d.ts +1 -1
- package/dist/types/components/menu/types.d.ts +2 -2
- package/dist/types/components/navigator/Navigator.d.ts +4 -4
- package/dist/types/components/progress/ProgressBar.d.ts +2 -2
- package/dist/types/components/progress/ProgressCircle.d.ts +2 -2
- package/dist/types/components/tabpanel/Tab.d.ts +5 -5
- package/dist/types/components/tabpanel/TabPanel.d.ts +10 -1
- package/dist/types/core/content/Content.d.ts +3 -2
- package/dist/types/core/headfoot/HeadFoot.d.ts +1 -9
- package/dist/types/core/responsive/Responsive.d.ts +1 -1
- package/dist/types/core/theme/ThemeProvider.d.ts +4 -4
- package/dist/types/hooks/useOverlayService.d.ts +3 -5
- package/dist/types/index.d.ts +3 -0
- package/dist/types/overlays/alert/Alert.d.ts +2 -2
- package/dist/types/overlays/flyout/Flyout.d.ts +3 -2
- package/dist/types/overlays/message/Message.d.ts +2 -2
- package/dist/types/overlays/modal/Modal.d.ts +4 -3
- package/dist/types/overlays/toast/Toast.d.ts +2 -2
- package/dist/types/overlays/tooltip/Tooltip.d.ts +1 -1
- package/dist/types/types/icons.d.ts +4 -0
- package/dist/types/types/index.d.ts +18 -6
- package/dist/types/typography/Abbr.d.ts +6 -2
- package/dist/types/typography/Anchor.d.ts +25 -0
- package/dist/types/typography/Mark.d.ts +2 -2
- package/dist/types/typography/index.d.ts +1 -1
- package/dist/types/utils/cloneElement.d.ts +2 -0
- package/dist/types/utils/getColor.d.ts +1 -4
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +7 -9
- package/src/components/actionLabel/ActionLabel.tsx +15 -6
- package/src/components/animations/Animations.tsx +29 -23
- package/src/components/avatar/Avatar.tsx +74 -88
- package/src/components/avatar/AvatarGroup.tsx +4 -4
- package/src/components/badge/Badge.tsx +11 -7
- package/src/components/breadcrumbs/Breadcrumbs.tsx +13 -9
- package/src/components/button/Button.tsx +27 -22
- package/src/components/button/ButtonGroup.tsx +7 -7
- package/src/components/button/ConfirmButton.tsx +15 -5
- package/src/components/button/ToggleButtonGroup.tsx +5 -5
- package/src/components/callout/Callout.tsx +26 -11
- package/src/components/card/Card.tsx +10 -7
- package/src/components/card/CardCover.tsx +11 -6
- package/src/components/chip/Chip.tsx +17 -13
- package/src/components/collapsable/Collapsable.tsx +9 -4
- package/src/components/divider/Divider.tsx +15 -10
- package/src/components/dropdown/Dropdown.tsx +5 -5
- package/src/components/dropdown/DropdownTool.tsx +5 -3
- package/src/components/icon/Icon.tsx +55 -67
- package/src/components/media/Media.tsx +141 -106
- package/src/components/menu/ContextMenu.tsx +36 -11
- package/src/components/menu/Menu.tsx +51 -30
- package/src/components/menu/MenuItem.tsx +19 -9
- package/src/components/menu/types.ts +2 -2
- package/src/components/meter/Meter.tsx +2 -3
- package/src/components/navigator/Navigator.tsx +19 -5
- package/src/components/panel/Panel.tsx +10 -9
- package/src/components/panel/PanelGroup.tsx +1 -2
- package/src/components/progress/ProgressBar.tsx +8 -9
- package/src/components/progress/ProgressCircle.tsx +6 -9
- package/src/components/tabpanel/Tab.tsx +81 -64
- package/src/components/tabpanel/TabPanel.tsx +34 -12
- package/src/core/aside/Aside.tsx +11 -10
- package/src/core/boundary/ErrorBoundary.tsx +8 -7
- package/src/core/boundary/ErrorIcon.tsx +1 -2
- package/src/core/content/Content.tsx +17 -12
- package/src/core/headfoot/HeadFoot.tsx +2 -35
- package/src/core/page/Page.tsx +3 -3
- package/src/core/responsive/Responsive.tsx +8 -7
- package/src/core/section/Section.tsx +1 -2
- package/src/core/theme/ThemeProvider.tsx +11 -12
- package/src/core/viewport/Viewport.tsx +1 -2
- package/src/hooks/useNavigator.tsx +10 -5
- package/src/hooks/useOverlayService.tsx +12 -6
- package/src/hotkeys/HotKeyLabel.tsx +1 -1
- package/src/hotkeys/HotKeyWrapper.tsx +3 -1
- package/src/index.ts +4 -0
- package/src/overlays/alert/Alert.tsx +25 -31
- package/src/overlays/flyout/Flyout.tsx +65 -64
- package/src/overlays/message/Message.tsx +10 -7
- package/src/overlays/modal/Modal.tsx +18 -13
- package/src/overlays/toast/Toast.tsx +18 -27
- package/src/overlays/tooltip/Tooltip.tsx +30 -9
- package/src/types/icons.ts +9 -0
- package/src/types/index.ts +240 -27
- package/src/typography/Abbr.tsx +15 -9
- package/src/typography/{Link.tsx → Anchor.tsx} +8 -13
- package/src/typography/Mark.tsx +4 -9
- package/src/typography/Text.tsx +4 -12
- package/src/typography/Title.tsx +2 -6
- package/src/typography/index.ts +1 -1
- package/src/utils/cloneElement.ts +44 -0
- package/src/utils/getColor.ts +1 -17
- package/src/utils/index.ts +1 -0
- package/css/index.js +0 -250
- package/css/tailwind/colors.ts +0 -158
- package/dist/cjs/components/actionLabel/ActionLabel.module.css +0 -1
- package/dist/cjs/components/animations/Animations.module.css +0 -1
- package/dist/cjs/components/avatar/Avatar.module.css +0 -1
- package/dist/cjs/components/badge/Badge.module.css +0 -1
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.module.css +0 -1
- package/dist/cjs/components/button/Button.module.css +0 -1
- package/dist/cjs/components/card/Card.module.css +0 -1
- package/dist/cjs/components/chip/Chip.module.css +0 -1
- package/dist/cjs/components/collapsable/Collapsable.module.css +0 -1
- package/dist/cjs/components/dropdown/Dropdown.module.css +0 -1
- package/dist/cjs/components/icon/Icon.module.css +0 -1
- package/dist/cjs/components/media/Media.module.css +0 -1
- package/dist/cjs/components/menu/Menu.module.css +0 -1
- package/dist/cjs/components/meter/Meter.module.css +0 -1
- package/dist/cjs/components/panel/Panel.module.css +0 -1
- package/dist/cjs/components/progress/Progress.module.css +0 -1
- package/dist/cjs/components/tabpanel/TabPanel.module.css +0 -1
- package/dist/cjs/core/aside/Aside.module.css +0 -1
- package/dist/cjs/core/boundary/ErrorBoundary.module.css +0 -1
- package/dist/cjs/core/content/Content.module.css +0 -1
- package/dist/cjs/core/headfoot/HeadFoot.module.css +0 -1
- package/dist/cjs/core/page/Page.module.css +0 -1
- package/dist/cjs/core/responsive/Responsive.module.css +0 -1
- package/dist/cjs/core/section/Section.module.css +0 -1
- package/dist/cjs/core/theme/Theme.module.css +0 -1
- package/dist/cjs/core/viewport/Viewport.module.css +0 -1
- package/dist/cjs/overlays/alert/Alert.module.css +0 -1
- package/dist/cjs/overlays/flyout/Flyout.module.css +0 -1
- package/dist/cjs/overlays/message/Message.module.css +0 -1
- package/dist/cjs/overlays/modal/Modal.module.css +0 -1
- package/dist/cjs/overlays/toast/Toast.module.css +0 -1
- package/dist/cjs/overlays/tooltip/Tooltip.module.css +0 -1
- package/dist/cjs/typography/Typography.module.css +0 -1
- package/dist/esm/components/actionLabel/ActionLabel.module.css +0 -1
- package/dist/esm/components/animations/Animations.module.css +0 -1
- package/dist/esm/components/avatar/Avatar.module.css +0 -1
- package/dist/esm/components/badge/Badge.module.css +0 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.module.css +0 -1
- package/dist/esm/components/button/Button.module.css +0 -1
- package/dist/esm/components/card/Card.module.css +0 -1
- package/dist/esm/components/chip/Chip.module.css +0 -1
- package/dist/esm/components/collapsable/Collapsable.module.css +0 -1
- package/dist/esm/components/dropdown/Dropdown.module.css +0 -1
- package/dist/esm/components/icon/Icon.module.css +0 -1
- package/dist/esm/components/media/Media.module.css +0 -1
- package/dist/esm/components/menu/Menu.module.css +0 -1
- package/dist/esm/components/meter/Meter.module.css +0 -1
- package/dist/esm/components/panel/Panel.module.css +0 -1
- package/dist/esm/components/progress/Progress.module.css +0 -1
- package/dist/esm/components/tabpanel/TabPanel.module.css +0 -1
- package/dist/esm/core/aside/Aside.module.css +0 -1
- package/dist/esm/core/boundary/ErrorBoundary.module.css +0 -1
- package/dist/esm/core/content/Content.module.css +0 -1
- package/dist/esm/core/headfoot/HeadFoot.module.css +0 -1
- package/dist/esm/core/page/Page.module.css +0 -1
- package/dist/esm/core/responsive/Responsive.module.css +0 -1
- package/dist/esm/core/section/Section.module.css +0 -1
- package/dist/esm/core/theme/Theme.module.css +0 -1
- package/dist/esm/core/viewport/Viewport.module.css +0 -1
- package/dist/esm/overlays/alert/Alert.module.css +0 -1
- package/dist/esm/overlays/flyout/Flyout.module.css +0 -1
- package/dist/esm/overlays/message/Message.module.css +0 -1
- package/dist/esm/overlays/modal/Modal.module.css +0 -1
- package/dist/esm/overlays/toast/Toast.module.css +0 -1
- package/dist/esm/overlays/tooltip/Tooltip.module.css +0 -1
- package/dist/esm/typography/Typography.module.css +0 -1
- package/dist/types/typography/Link.d.ts +0 -25
- package/src/overlays/tooltip/Tooltip.module.css +0 -53
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* React Fabric
|
|
3
|
+
* @version: 1.0.0
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* The MIT License (MIT)
|
|
7
|
+
* Copyright (c) 2025 Adarsh Pastakia
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
10
|
+
* and associated documentation files (the Software), to deal in the Software without restriction,
|
|
11
|
+
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
12
|
+
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
13
|
+
* subject to the following conditions:
|
|
14
|
+
*
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
16
|
+
* portions of the Software.
|
|
17
|
+
*
|
|
18
|
+
* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
19
|
+
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
20
|
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
@keyframes cardpulse {
|
|
25
|
+
50% {
|
|
26
|
+
opacity: 0.5;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes bgprogress {
|
|
31
|
+
0% {
|
|
32
|
+
background-position-x: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
100% {
|
|
36
|
+
background-position-x: 1rem;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@variant dark (&:where([data-color-scheme="dark"], [data-color-scheme="dark"] *));
|
|
41
|
+
|
|
42
|
+
@utility area-* {
|
|
43
|
+
grid-area: --value([*]);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@utility area-content {
|
|
47
|
+
grid-area: content;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@utility area-head {
|
|
51
|
+
grid-area: head;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@utility area-foot {
|
|
55
|
+
grid-area: foot;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@utility area-body {
|
|
59
|
+
grid-area: body;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@utility area-side-s {
|
|
63
|
+
grid-area: side-s;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@utility area-side-e {
|
|
67
|
+
grid-area: side-e;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@utility overflow-wrap {
|
|
71
|
+
text-wrap: wrap;
|
|
72
|
+
word-break: normal;
|
|
73
|
+
overflow-wrap: anywhere;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@utility fixed-numbers {
|
|
77
|
+
font-variant-numeric: tabular-nums;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@utility mixed-lang {
|
|
81
|
+
unicode-bidi: plaintext;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@utility flex-full {
|
|
85
|
+
flex: 1 1 100%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@utility rounded {
|
|
89
|
+
border-radius: var(--rounding);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@utility rounded-capped {
|
|
93
|
+
border-radius: var(--rounding-cap);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@utility scroll-hide {
|
|
97
|
+
&::-webkit-scrollbar {
|
|
98
|
+
width: 0;
|
|
99
|
+
height: 0;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@utility scroll-thin {
|
|
104
|
+
&::-webkit-scrollbar {
|
|
105
|
+
width: 3px;
|
|
106
|
+
height: 3px;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@utility sectioned {
|
|
111
|
+
display: grid;
|
|
112
|
+
grid-template: "head head head" auto "side-s content side-e" 1fr "foot foot foot" auto / auto 1fr auto;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@utility scroll-snap-start {
|
|
116
|
+
scroll-snap-type: both proximity;
|
|
117
|
+
|
|
118
|
+
& > * {
|
|
119
|
+
scroll-snap-align: start;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@utility scroll-snap-center {
|
|
124
|
+
scroll-snap-type: both proximity;
|
|
125
|
+
|
|
126
|
+
& > * {
|
|
127
|
+
scroll-snap-align: center;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@utility scroll-snap-end {
|
|
132
|
+
scroll-snap-type: both proximity;
|
|
133
|
+
|
|
134
|
+
& > * {
|
|
135
|
+
scroll-snap-align: end;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@utility break-words {
|
|
140
|
+
word-break: break-word;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@utility outline-thin {
|
|
144
|
+
outline-width: 0.5px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@utility link {
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
user-select: none;
|
|
150
|
+
|
|
151
|
+
font-weight: 500;
|
|
152
|
+
color: var(--color-accent-600);
|
|
153
|
+
text-decoration: underline dotted;
|
|
154
|
+
|
|
155
|
+
&:hover {
|
|
156
|
+
text-decoration: underline solid;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@utility bg-odd {
|
|
161
|
+
background-color: color-mix(
|
|
162
|
+
in oklab,
|
|
163
|
+
var(--fabric-bg) 99%,
|
|
164
|
+
var(--color-tint)
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
@utility bg-even {
|
|
169
|
+
background-color: color-mix(
|
|
170
|
+
in oklab,
|
|
171
|
+
var(--fabric-bg) 92%,
|
|
172
|
+
var(--color-tint)
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@utility bg-alternate {
|
|
177
|
+
& > :nth-child(even) {
|
|
178
|
+
background-color: color-mix(
|
|
179
|
+
in oklab,
|
|
180
|
+
var(--fabric-bg) 92%,
|
|
181
|
+
var(--color-tint)
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
& > :nth-child(odd) {
|
|
186
|
+
background-color: color-mix(
|
|
187
|
+
in oklab,
|
|
188
|
+
var(--fabric-bg) 99%,
|
|
189
|
+
var(--color-tint)
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@utility bg-base {
|
|
195
|
+
background-color: var(--bg-color-base);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@utility bg-content {
|
|
199
|
+
background-color: var(--bg-color-content);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@utility bg-dimmed {
|
|
203
|
+
background-color: var(--bg-color-dimmed);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@utility bg-muted {
|
|
207
|
+
background-color: var(--bg-color-muted);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
@utility bg-gray {
|
|
211
|
+
background-color: var(--bg-color-gray);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@utility bg-dark {
|
|
215
|
+
background-color: var(--bg-color-dark);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@utility bg-light {
|
|
219
|
+
background-color: var(--bg-color-light);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@utility bg-invert {
|
|
223
|
+
background-color: var(--bg-color-invert);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
@utility text-base {
|
|
227
|
+
color: var(--text-color-base);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
@utility text-dimmed {
|
|
231
|
+
color: var(--text-color-dimmed);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@utility text-muted {
|
|
235
|
+
color: var(--text-color-muted);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
@utility text-gray {
|
|
239
|
+
color: var(--text-color-gray);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@utility text-dark {
|
|
243
|
+
color: var(--text-color-dark);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
@utility text-light {
|
|
247
|
+
color: var(--text-color-light);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@utility text-invert {
|
|
251
|
+
color: var(--text-color-invert);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
@utility border-base {
|
|
255
|
+
border-color: var(--border-color-base);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@utility border-dimmed {
|
|
259
|
+
border-color: var(--border-color-dimmed);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@utility border-muted {
|
|
263
|
+
border-color: var(--border-color-muted);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
@utility border-gray {
|
|
267
|
+
border-color: var(--color-tint);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@utility border-dark {
|
|
271
|
+
border-color: var(--border-color-dark);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@utility border-light {
|
|
275
|
+
border-color: var(--border-color-light);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@utility outline-base {
|
|
279
|
+
outline-color: var(--border-color-base);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@utility outline-dimmed {
|
|
283
|
+
outline-color: var(--border-color-dimmed);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@utility outline-muted {
|
|
287
|
+
outline-color: var(--border-color-muted);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@utility outline-gray {
|
|
291
|
+
outline-color: var(--color-tint);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
@utility outline-dark {
|
|
295
|
+
outline-color: var(--border-color-dark);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@utility outline-light {
|
|
299
|
+
outline-color: var(--border-color-light);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
@utility stroke-base {
|
|
303
|
+
stroke: var(--border-color-base);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@utility stroke-dimmed {
|
|
307
|
+
stroke: var(--border-color-dimmed);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@utility stroke-muted {
|
|
311
|
+
stroke: var(--border-color-muted);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@utility stroke-gray {
|
|
315
|
+
stroke: var(--color-tint);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
@utility stroke-dark {
|
|
319
|
+
stroke: var(--border-color-dark);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
@utility stroke-light {
|
|
323
|
+
stroke: var(--border-color-light);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@utility fill-base {
|
|
327
|
+
fill: var(--bg-color-base);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
@utility fill-dimmed {
|
|
331
|
+
fill: var(--bg-color-dimmed);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@utility fill-muted {
|
|
335
|
+
fill: var(--bg-color-muted);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@utility fill-gray {
|
|
339
|
+
fill: var(--bg-color-gray);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@utility fill-dark {
|
|
343
|
+
fill: var(--bg-color-dark);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@utility fill-light {
|
|
347
|
+
fill: var(--bg-color-light);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@utility fill-invert {
|
|
351
|
+
fill: var(--bg-color-invert);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@utility gap-* {
|
|
355
|
+
&:where(.fabric-row) {
|
|
356
|
+
--gutter: calc(var(--spacing) * --value(integer));
|
|
357
|
+
|
|
358
|
+
gap: 0 !important;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@utility span-* {
|
|
363
|
+
flex: 0 1 calc((--value(integer) / 12) * 100% - var(--gutter, 0px));
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
@media (min-width: theme(screens.xs)) {
|
|
367
|
+
.hide-xs {
|
|
368
|
+
@apply hidden;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
@media (max-width: theme(screens.sm)) {
|
|
372
|
+
.hide-xs-only {
|
|
373
|
+
@apply hidden;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.show-sm-only,
|
|
377
|
+
.show-md-only,
|
|
378
|
+
.show-lg-only,
|
|
379
|
+
.show-xl-only,
|
|
380
|
+
.show-2xl-only {
|
|
381
|
+
@apply hidden;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
@media (min-width: theme(screens.sm)) {
|
|
387
|
+
.hide-sm {
|
|
388
|
+
@apply hidden;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
@media (max-width: theme(screens.md)) {
|
|
392
|
+
.hide-sm-only {
|
|
393
|
+
@apply hidden;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.show-xs-only,
|
|
397
|
+
.show-md-only,
|
|
398
|
+
.show-lg-only,
|
|
399
|
+
.show-xl-only,
|
|
400
|
+
.show-2xl-only {
|
|
401
|
+
@apply hidden;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
@media (min-width: theme(screens.md)) {
|
|
407
|
+
.hide-md {
|
|
408
|
+
@apply hidden;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
@media (max-width: theme(screens.lg)) {
|
|
412
|
+
.hide-md-only {
|
|
413
|
+
@apply hidden;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.show-xs-only,
|
|
417
|
+
.show-sm-only,
|
|
418
|
+
.show-lg-only,
|
|
419
|
+
.show-xl-only,
|
|
420
|
+
.show-2xl-only {
|
|
421
|
+
@apply hidden;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
@media (min-width: theme(screens.lg)) {
|
|
427
|
+
.hide-lg {
|
|
428
|
+
@apply hidden;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
@media (max-width: theme(screens.xl)) {
|
|
432
|
+
.hide-lg-only {
|
|
433
|
+
@apply hidden;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.show-xs-only,
|
|
437
|
+
.show-sm-only,
|
|
438
|
+
.show-md-only,
|
|
439
|
+
.show-xl-only,
|
|
440
|
+
.show-2xl-only {
|
|
441
|
+
@apply hidden;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
@media (min-width: theme(screens.xl)) {
|
|
447
|
+
.hide-xl {
|
|
448
|
+
@apply hidden;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
@media (max-width: theme(screens.2xl)) {
|
|
452
|
+
.hide-xl-only {
|
|
453
|
+
@apply hidden;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.show-xs-only,
|
|
457
|
+
.show-sm-only,
|
|
458
|
+
.show-md-only,
|
|
459
|
+
.show-lg-only,
|
|
460
|
+
.show-2xl-only {
|
|
461
|
+
@apply hidden;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
@media (min-width: theme(screens.2xl)) {
|
|
467
|
+
.hide-2xl,
|
|
468
|
+
.hide-2xl-only {
|
|
469
|
+
@apply hidden;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.show-xs-only,
|
|
473
|
+
.show-sm-only,
|
|
474
|
+
.show-md-only,
|
|
475
|
+
.show-lg-only,
|
|
476
|
+
.show-xl-only {
|
|
477
|
+
@apply hidden;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
@media (max-width: theme(screens.xs)) {
|
|
482
|
+
.show-xs,
|
|
483
|
+
.show-sm,
|
|
484
|
+
.show-md,
|
|
485
|
+
.show-lg,
|
|
486
|
+
.show-xl,
|
|
487
|
+
.show-2xl {
|
|
488
|
+
@apply hidden;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
@media (max-width: theme(screens.sm)) {
|
|
493
|
+
.show-sm,
|
|
494
|
+
.show-md,
|
|
495
|
+
.show-lg,
|
|
496
|
+
.show-xl,
|
|
497
|
+
.show-2xl {
|
|
498
|
+
@apply hidden;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
@media (max-width: theme(screens.md)) {
|
|
503
|
+
.show-md,
|
|
504
|
+
.show-lg,
|
|
505
|
+
.show-xl,
|
|
506
|
+
.show-2xl {
|
|
507
|
+
@apply hidden;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
@media (max-width: theme(screens.lg)) {
|
|
512
|
+
.show-lg,
|
|
513
|
+
.show-xl,
|
|
514
|
+
.show-2xl {
|
|
515
|
+
@apply hidden;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@media (max-width: theme(screens.xl)) {
|
|
520
|
+
.show-xl,
|
|
521
|
+
.show-2xl {
|
|
522
|
+
@apply hidden;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
@media (max-width: theme(screens.2xl)) {
|
|
527
|
+
.show-2xl {
|
|
528
|
+
@apply hidden;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* React Fabric
|
|
3
|
+
* @version: 1.0.0
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* The MIT License (MIT)
|
|
7
|
+
* Copyright (c) 2024 Adarsh Pastakia
|
|
8
|
+
*
|
|
9
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
10
|
+
* and associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
11
|
+
* including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
12
|
+
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
13
|
+
* subject to the following conditions:
|
|
14
|
+
*
|
|
15
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
16
|
+
* portions of the Software.
|
|
17
|
+
*
|
|
18
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
19
|
+
* TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
20
|
+
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
@import "./_colors.css";
|
|
25
|
+
@import "./_utilities.css";
|
|
26
|
+
|
|
27
|
+
@theme static {
|
|
28
|
+
--font-sans: "Avenir Next", Avenir, "Noto Sans", Roboto, "Helvetica Neue",
|
|
29
|
+
"Segoe UI", Arial, sans-serif, BlinkMacSystemFont, "Apple Color Emoji",
|
|
30
|
+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
31
|
+
--font-serif: "Noto Serif", Georgia, Cambria, "Times New Roman", Times, serif;
|
|
32
|
+
--font-mono: "Noto Sans Mono", Menlo, Monaco, Consolas, "Liberation Mono",
|
|
33
|
+
"Courier New", monospace;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@theme static {
|
|
37
|
+
--animate-pulse: cardpulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
38
|
+
--animate-progress: bgprogress 750ms linear infinite;
|
|
39
|
+
--breakpoint-xs: 320px;
|
|
40
|
+
--aspect-portrait: 3 / 4;
|
|
41
|
+
--aspect-screen: 4 / 3;
|
|
42
|
+
--radius-capped: var(--rounding-cap);
|
|
43
|
+
--shadow-paper: 0 1px 3px 0 var(--fabric-shadow);
|
|
44
|
+
}
|
|
@@ -5,7 +5,6 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
|
|
|
5
5
|
var classNames = require('classnames');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var ButtonGroup = require('../button/ButtonGroup.js');
|
|
8
|
-
var ActionLabel_module = require('./ActionLabel.module.css');
|
|
9
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
9
|
|
|
11
10
|
var _excluded = ["children", "className", "align", "actions", "disabled"];
|
|
@@ -39,12 +38,13 @@ var ActionLabel = function ActionLabel(_ref) {
|
|
|
39
38
|
}
|
|
40
39
|
}, []);
|
|
41
40
|
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread(_objectSpread({
|
|
42
|
-
className: classNames(className,
|
|
41
|
+
className: classNames(className, "fabric-actionLabel", "flex overflow-hidden gap-1 items-center cursor-default select-none"),
|
|
43
42
|
"data-disabled": disabled
|
|
44
43
|
}, rest), {}, {
|
|
45
44
|
children: [/*#__PURE__*/jsxRuntime.jsx(ButtonGroup.ButtonGroup, {
|
|
46
45
|
ref: calculateBasis,
|
|
47
|
-
|
|
46
|
+
"data-inner-clickable": true,
|
|
47
|
+
className: classNames("fabric-actions", "overflow-hidden flex-content", align === "end" && "order-2"),
|
|
48
48
|
children: actions
|
|
49
49
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
50
50
|
className: "flex-initial truncate",
|
|
@@ -5,12 +5,12 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
|
|
|
5
5
|
var classNames = require('classnames');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var useEffectDebugger = require('../../hooks/useEffectDebugger.js');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
9
|
var getColor = require('../../utils/getColor.js');
|
|
9
10
|
require('@react-fabric/utilities');
|
|
10
|
-
var Animations_module = require('./Animations.module.css');
|
|
11
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
12
11
|
|
|
13
|
-
var _excluded = ["className", "color", "strokeColor", "type"]
|
|
12
|
+
var _excluded = ["className", "color", "strokeColor", "type"],
|
|
13
|
+
_excluded2 = ["className"];
|
|
14
14
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
15
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
16
|
var AnimationIndicator = function AnimationIndicator(_ref) {
|
|
@@ -39,36 +39,40 @@ var AnimationIndicator = function AnimationIndicator(_ref) {
|
|
|
39
39
|
/** ***************** component *******************/
|
|
40
40
|
return /*#__PURE__*/jsxRuntime.jsxs("svg", _objectSpread(_objectSpread({
|
|
41
41
|
"data-ref": "animated-indicator",
|
|
42
|
-
className: classNames(
|
|
42
|
+
className: classNames("fabric-checkAnimation", className, "inline-block rounded-full"),
|
|
43
43
|
style: styles,
|
|
44
44
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45
45
|
viewBox: "0 0 52 52",
|
|
46
46
|
"aria-hidden": "true"
|
|
47
47
|
}, aria), {}, {
|
|
48
48
|
children: [/*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
49
|
-
className:
|
|
49
|
+
className: "fabric-circlePart",
|
|
50
50
|
cx: "26",
|
|
51
51
|
cy: "26",
|
|
52
52
|
r: "25"
|
|
53
53
|
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
54
|
-
className: classNames(
|
|
54
|
+
className: classNames("fabric-iconPart"),
|
|
55
|
+
style: {
|
|
56
|
+
color: strokeColor ? getColor.getColor(strokeColor) : "var(--text-color-invert)"
|
|
57
|
+
},
|
|
55
58
|
d: path
|
|
56
59
|
})]
|
|
57
60
|
}));
|
|
58
61
|
};
|
|
59
62
|
var AnimationBars = function AnimationBars(_ref2) {
|
|
60
63
|
var _ref2$color = _ref2.color,
|
|
61
|
-
color = _ref2$color === void 0 ? "tint" : _ref2$color,
|
|
64
|
+
color = _ref2$color === void 0 ? "tint-500" : _ref2$color,
|
|
62
65
|
_ref2$size = _ref2.size,
|
|
63
66
|
size = _ref2$size === void 0 ? "2rem" : _ref2$size;
|
|
64
67
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
65
68
|
className: classNames("absolute inset-0 z-10 flex justify-center items-center cursor-wait"),
|
|
66
69
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
67
|
-
className: classNames("outline outline-tint-500/20 p-4 bg-
|
|
70
|
+
className: classNames("outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm rounded"),
|
|
68
71
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
69
|
-
className: classNames(
|
|
72
|
+
className: classNames("fabric-bars"),
|
|
70
73
|
style: {
|
|
71
|
-
width: size
|
|
74
|
+
width: size,
|
|
75
|
+
color: getColor.getColor(color)
|
|
72
76
|
}
|
|
73
77
|
})
|
|
74
78
|
})
|
|
@@ -81,12 +85,14 @@ var AnimationSpinner = function AnimationSpinner(_ref3) {
|
|
|
81
85
|
size = _ref3$size === void 0 ? "2rem" : _ref3$size;
|
|
82
86
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
83
87
|
className: classNames("absolute inset-0 z-10 flex justify-center items-center cursor-wait"),
|
|
88
|
+
"data-ref": "spinner",
|
|
84
89
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
85
|
-
className: classNames("outline outline-tint-500/20 p-4 bg-
|
|
90
|
+
className: classNames("outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm rounded"),
|
|
86
91
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
87
|
-
className: classNames(
|
|
92
|
+
className: classNames("fabric-spinner"),
|
|
88
93
|
style: {
|
|
89
|
-
width: size
|
|
94
|
+
width: size,
|
|
95
|
+
color: getColor.getColor(color)
|
|
90
96
|
}
|
|
91
97
|
})
|
|
92
98
|
})
|
|
@@ -94,15 +100,20 @@ var AnimationSpinner = function AnimationSpinner(_ref3) {
|
|
|
94
100
|
};
|
|
95
101
|
var Loading = function Loading() {
|
|
96
102
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
97
|
-
className: classNames(
|
|
103
|
+
className: classNames("fabric-loader", "area-[loader] relative overflow-x-clip"),
|
|
104
|
+
"data-ref": "loading",
|
|
98
105
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
99
106
|
className: "absolute z-10 py-px inset-x-0 top-0 after:h-0.5 after:block after:bg-primary-500"
|
|
100
107
|
})
|
|
101
108
|
});
|
|
102
109
|
};
|
|
103
|
-
var Skeleton = function Skeleton() {
|
|
104
|
-
|
|
105
|
-
|
|
110
|
+
var Skeleton = function Skeleton(_ref4) {
|
|
111
|
+
var className = _ref4.className,
|
|
112
|
+
rest = _objectWithoutProperties(_ref4, _excluded2);
|
|
113
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread(_objectSpread({
|
|
114
|
+
className: classNames(className, "p-2 animate-pulse flex gap-2 max-w-lg"),
|
|
115
|
+
"data-ref": "skeleton"
|
|
116
|
+
}, rest), {}, {
|
|
106
117
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
107
118
|
className: "bg-tint-100 rounded aspect-square h-12"
|
|
108
119
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -125,7 +136,7 @@ var Skeleton = function Skeleton() {
|
|
|
125
136
|
})]
|
|
126
137
|
})]
|
|
127
138
|
})]
|
|
128
|
-
});
|
|
139
|
+
}));
|
|
129
140
|
};
|
|
130
141
|
|
|
131
142
|
exports.AnimationBars = AnimationBars;
|