@react-fabric/core 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +10 -0
- package/css/flags.rect.css +1607 -0
- package/css/flags.wavy.css +1606 -0
- package/css/index.js +250 -0
- package/css/reset/_gradients.css +51 -0
- package/css/reset/_reset.css +407 -0
- package/css/reset/_text.css +179 -0
- package/css/reset/_theme.css +110 -0
- package/css/reset/index.css +27 -0
- package/css/styles.css +31 -0
- package/css/tailwind/colors.ts +158 -0
- package/dist/cjs/components/actionLabel/ActionLabel.js +56 -0
- package/dist/cjs/components/actionLabel/ActionLabel.module.css +1 -0
- package/dist/cjs/components/animations/Animations.js +135 -0
- package/dist/cjs/components/animations/Animations.module.css +1 -0
- package/dist/cjs/components/avatar/Avatar.js +144 -0
- package/dist/cjs/components/avatar/Avatar.module.css +1 -0
- package/dist/cjs/components/avatar/AvatarGroup.js +74 -0
- package/dist/cjs/components/badge/Badge.js +82 -0
- package/dist/cjs/components/badge/Badge.module.css +1 -0
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.js +71 -0
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.module.css +1 -0
- package/dist/cjs/components/button/Button.js +170 -0
- package/dist/cjs/components/button/Button.module.css +1 -0
- package/dist/cjs/components/button/ButtonGroup.js +41 -0
- package/dist/cjs/components/button/ConfirmButton.js +166 -0
- package/dist/cjs/components/button/ToggleButtonGroup.js +68 -0
- package/dist/cjs/components/callout/Callout.js +54 -0
- package/dist/cjs/components/card/Card.js +62 -0
- package/dist/cjs/components/card/Card.module.css +1 -0
- package/dist/cjs/components/card/CardCover.js +48 -0
- package/dist/cjs/components/chip/Chip.js +94 -0
- package/dist/cjs/components/chip/Chip.module.css +1 -0
- package/dist/cjs/components/collapsable/Collapsable.js +84 -0
- package/dist/cjs/components/collapsable/Collapsable.module.css +1 -0
- package/dist/cjs/components/divider/Divider.js +65 -0
- package/dist/cjs/components/dropdown/Dropdown.js +180 -0
- package/dist/cjs/components/dropdown/Dropdown.module.css +1 -0
- package/dist/cjs/components/dropdown/DropdownTool.js +26 -0
- package/dist/cjs/components/empty/EmptyContent.js +92 -0
- package/dist/cjs/components/icon/Icon.js +106 -0
- package/dist/cjs/components/icon/Icon.module.css +1 -0
- package/dist/cjs/components/media/Media.js +149 -0
- package/dist/cjs/components/media/Media.module.css +1 -0
- package/dist/cjs/components/menu/ContextMenu.js +84 -0
- package/dist/cjs/components/menu/Menu.js +204 -0
- package/dist/cjs/components/menu/Menu.module.css +1 -0
- package/dist/cjs/components/menu/MenuItem.js +119 -0
- package/dist/cjs/components/meter/Meter.js +41 -0
- package/dist/cjs/components/meter/Meter.module.css +1 -0
- package/dist/cjs/components/navigator/Navigator.js +54 -0
- package/dist/cjs/components/panel/Panel.js +125 -0
- package/dist/cjs/components/panel/Panel.module.css +1 -0
- package/dist/cjs/components/panel/PanelGroup.js +50 -0
- package/dist/cjs/components/panel/PanelStack.js +85 -0
- package/dist/cjs/components/progress/Progress.module.css +1 -0
- package/dist/cjs/components/progress/ProgressBar.js +62 -0
- package/dist/cjs/components/progress/ProgressCircle.js +96 -0
- package/dist/cjs/components/tabpanel/Tab.js +78 -0
- package/dist/cjs/components/tabpanel/TabPanel.js +77 -0
- package/dist/cjs/components/tabpanel/TabPanel.module.css +1 -0
- package/dist/cjs/context/Global.js +169 -0
- package/dist/cjs/context/NotificationCenter.js +254 -0
- package/dist/cjs/core/aside/Aside.js +152 -0
- package/dist/cjs/core/aside/Aside.module.css +1 -0
- package/dist/cjs/core/boundary/ErrorBoundary.js +140 -0
- package/dist/cjs/core/boundary/ErrorBoundary.module.css +1 -0
- package/dist/cjs/core/boundary/ErrorIcon.js +51 -0
- package/dist/cjs/core/content/Content.js +70 -0
- package/dist/cjs/core/content/Content.module.css +1 -0
- package/dist/cjs/core/headfoot/HeadFoot.js +62 -0
- package/dist/cjs/core/headfoot/HeadFoot.module.css +1 -0
- package/dist/cjs/core/page/Page.js +65 -0
- package/dist/cjs/core/page/Page.module.css +1 -0
- package/dist/cjs/core/responsive/Responsive.js +64 -0
- package/dist/cjs/core/responsive/Responsive.module.css +1 -0
- package/dist/cjs/core/section/Section.js +44 -0
- package/dist/cjs/core/section/Section.module.css +1 -0
- package/dist/cjs/core/theme/Theme.module.css +1 -0
- package/dist/cjs/core/theme/ThemeProvider.js +74 -0
- package/dist/cjs/core/viewport/Viewport.js +39 -0
- package/dist/cjs/core/viewport/Viewport.module.css +1 -0
- package/dist/cjs/hooks/useClientService.js +30 -0
- package/dist/cjs/hooks/useControlledValue.js +22 -0
- package/dist/cjs/hooks/useDebounce.js +56 -0
- package/dist/cjs/hooks/useEffectDebugger.js +113 -0
- package/dist/cjs/hooks/useIsDark.js +33 -0
- package/dist/cjs/hooks/useIsRtl.js +27 -0
- package/dist/cjs/hooks/useNavigator.js +36 -0
- package/dist/cjs/hooks/useOverlayService.js +55 -0
- package/dist/cjs/hooks/usePropToggle.js +40 -0
- package/dist/cjs/hooks/useResize.js +75 -0
- package/dist/cjs/hooks/useResizeObserver.js +38 -0
- package/dist/cjs/hooks/useStorage.js +44 -0
- package/dist/cjs/hotkeys/HotKey.js +47 -0
- package/dist/cjs/hotkeys/HotKeyLabel.js +52 -0
- package/dist/cjs/hotkeys/HotKeyWrapper.js +98 -0
- package/dist/cjs/hotkeys/commons.js +56 -0
- package/dist/cjs/i18n/ar.json.js +31 -0
- package/dist/cjs/i18n/en.json.js +46 -0
- package/dist/cjs/i18n/index.js +55 -0
- package/dist/cjs/index.js +162 -0
- package/dist/cjs/overlays/alert/Alert.js +163 -0
- package/dist/cjs/overlays/alert/Alert.module.css +1 -0
- package/dist/cjs/overlays/flyout/Flyout.js +152 -0
- package/dist/cjs/overlays/flyout/Flyout.module.css +1 -0
- package/dist/cjs/overlays/message/Message.js +84 -0
- package/dist/cjs/overlays/message/Message.module.css +1 -0
- package/dist/cjs/overlays/modal/Modal.js +132 -0
- package/dist/cjs/overlays/modal/Modal.module.css +1 -0
- package/dist/cjs/overlays/toast/Toast.js +166 -0
- package/dist/cjs/overlays/toast/Toast.module.css +1 -0
- package/dist/cjs/overlays/tooltip/Tooltip.js +133 -0
- package/dist/cjs/overlays/tooltip/Tooltip.module.css +1 -0
- package/dist/cjs/types/icons.js +197 -0
- package/dist/cjs/typography/Abbr.js +108 -0
- package/dist/cjs/typography/Copy.js +59 -0
- package/dist/cjs/typography/Link.js +55 -0
- package/dist/cjs/typography/Mark.js +86 -0
- package/dist/cjs/typography/Text.js +121 -0
- package/dist/cjs/typography/Title.js +58 -0
- package/dist/cjs/typography/Typography.module.css +1 -0
- package/dist/cjs/typography/types.js +42 -0
- package/dist/cjs/utils/calculateDimensions.js +51 -0
- package/dist/cjs/utils/getColor.js +52 -0
- package/dist/cjs/utils/nodeCheck.js +35 -0
- package/dist/esm/components/actionLabel/ActionLabel.js +56 -0
- package/dist/esm/components/actionLabel/ActionLabel.module.css +1 -0
- package/dist/esm/components/animations/Animations.js +131 -0
- package/dist/esm/components/animations/Animations.module.css +1 -0
- package/dist/esm/components/avatar/Avatar.js +144 -0
- package/dist/esm/components/avatar/Avatar.module.css +1 -0
- package/dist/esm/components/avatar/AvatarGroup.js +74 -0
- package/dist/esm/components/badge/Badge.js +81 -0
- package/dist/esm/components/badge/Badge.module.css +1 -0
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +71 -0
- package/dist/esm/components/breadcrumbs/Breadcrumbs.module.css +1 -0
- package/dist/esm/components/button/Button.js +170 -0
- package/dist/esm/components/button/Button.module.css +1 -0
- package/dist/esm/components/button/ButtonGroup.js +41 -0
- package/dist/esm/components/button/ConfirmButton.js +166 -0
- package/dist/esm/components/button/ToggleButtonGroup.js +68 -0
- package/dist/esm/components/callout/Callout.js +54 -0
- package/dist/esm/components/card/Card.js +62 -0
- package/dist/esm/components/card/Card.module.css +1 -0
- package/dist/esm/components/card/CardCover.js +48 -0
- package/dist/esm/components/chip/Chip.js +94 -0
- package/dist/esm/components/chip/Chip.module.css +1 -0
- package/dist/esm/components/collapsable/Collapsable.js +84 -0
- package/dist/esm/components/collapsable/Collapsable.module.css +1 -0
- package/dist/esm/components/divider/Divider.js +65 -0
- package/dist/esm/components/dropdown/Dropdown.js +179 -0
- package/dist/esm/components/dropdown/Dropdown.module.css +1 -0
- package/dist/esm/components/dropdown/DropdownTool.js +26 -0
- package/dist/esm/components/empty/EmptyContent.js +92 -0
- package/dist/esm/components/icon/Icon.js +106 -0
- package/dist/esm/components/icon/Icon.module.css +1 -0
- package/dist/esm/components/media/Media.js +148 -0
- package/dist/esm/components/media/Media.module.css +1 -0
- package/dist/esm/components/menu/ContextMenu.js +84 -0
- package/dist/esm/components/menu/Menu.js +204 -0
- package/dist/esm/components/menu/Menu.module.css +1 -0
- package/dist/esm/components/menu/MenuItem.js +119 -0
- package/dist/esm/components/meter/Meter.js +41 -0
- package/dist/esm/components/meter/Meter.module.css +1 -0
- package/dist/esm/components/navigator/Navigator.js +54 -0
- package/dist/esm/components/panel/Panel.js +125 -0
- package/dist/esm/components/panel/Panel.module.css +1 -0
- package/dist/esm/components/panel/PanelGroup.js +50 -0
- package/dist/esm/components/panel/PanelStack.js +85 -0
- package/dist/esm/components/progress/Progress.module.css +1 -0
- package/dist/esm/components/progress/ProgressBar.js +62 -0
- package/dist/esm/components/progress/ProgressCircle.js +96 -0
- package/dist/esm/components/tabpanel/Tab.js +78 -0
- package/dist/esm/components/tabpanel/TabPanel.js +77 -0
- package/dist/esm/components/tabpanel/TabPanel.module.css +1 -0
- package/dist/esm/context/Global.js +165 -0
- package/dist/esm/context/NotificationCenter.js +254 -0
- package/dist/esm/core/aside/Aside.js +152 -0
- package/dist/esm/core/aside/Aside.module.css +1 -0
- package/dist/esm/core/boundary/ErrorBoundary.js +140 -0
- package/dist/esm/core/boundary/ErrorBoundary.module.css +1 -0
- package/dist/esm/core/boundary/ErrorIcon.js +51 -0
- package/dist/esm/core/content/Content.js +70 -0
- package/dist/esm/core/content/Content.module.css +1 -0
- package/dist/esm/core/headfoot/HeadFoot.js +61 -0
- package/dist/esm/core/headfoot/HeadFoot.module.css +1 -0
- package/dist/esm/core/page/Page.js +65 -0
- package/dist/esm/core/page/Page.module.css +1 -0
- package/dist/esm/core/responsive/Responsive.js +62 -0
- package/dist/esm/core/responsive/Responsive.module.css +1 -0
- package/dist/esm/core/section/Section.js +44 -0
- package/dist/esm/core/section/Section.module.css +1 -0
- package/dist/esm/core/theme/Theme.module.css +1 -0
- package/dist/esm/core/theme/ThemeProvider.js +74 -0
- package/dist/esm/core/viewport/Viewport.js +39 -0
- package/dist/esm/core/viewport/Viewport.module.css +1 -0
- package/dist/esm/hooks/useClientService.js +30 -0
- package/dist/esm/hooks/useControlledValue.js +22 -0
- package/dist/esm/hooks/useDebounce.js +56 -0
- package/dist/esm/hooks/useEffectDebugger.js +111 -0
- package/dist/esm/hooks/useIsDark.js +33 -0
- package/dist/esm/hooks/useIsRtl.js +27 -0
- package/dist/esm/hooks/useNavigator.js +36 -0
- package/dist/esm/hooks/useOverlayService.js +55 -0
- package/dist/esm/hooks/usePropToggle.js +40 -0
- package/dist/esm/hooks/useResize.js +75 -0
- package/dist/esm/hooks/useResizeObserver.js +38 -0
- package/dist/esm/hooks/useStorage.js +43 -0
- package/dist/esm/hotkeys/HotKey.js +47 -0
- package/dist/esm/hotkeys/HotKeyLabel.js +52 -0
- package/dist/esm/hotkeys/HotKeyWrapper.js +96 -0
- package/dist/esm/hotkeys/commons.js +56 -0
- package/dist/esm/i18n/ar.json.js +27 -0
- package/dist/esm/i18n/en.json.js +41 -0
- package/dist/esm/i18n/index.js +55 -0
- package/dist/esm/index.js +75 -0
- package/dist/esm/overlays/alert/Alert.js +163 -0
- package/dist/esm/overlays/alert/Alert.module.css +1 -0
- package/dist/esm/overlays/flyout/Flyout.js +152 -0
- package/dist/esm/overlays/flyout/Flyout.module.css +1 -0
- package/dist/esm/overlays/message/Message.js +84 -0
- package/dist/esm/overlays/message/Message.module.css +1 -0
- package/dist/esm/overlays/modal/Modal.js +132 -0
- package/dist/esm/overlays/modal/Modal.module.css +1 -0
- package/dist/esm/overlays/toast/Toast.js +166 -0
- package/dist/esm/overlays/toast/Toast.module.css +1 -0
- package/dist/esm/overlays/tooltip/Tooltip.js +132 -0
- package/dist/esm/overlays/tooltip/Tooltip.module.css +1 -0
- package/dist/esm/types/icons.js +199 -0
- package/dist/esm/typography/Abbr.js +108 -0
- package/dist/esm/typography/Copy.js +59 -0
- package/dist/esm/typography/Link.js +55 -0
- package/dist/esm/typography/Mark.js +86 -0
- package/dist/esm/typography/Text.js +121 -0
- package/dist/esm/typography/Title.js +58 -0
- package/dist/esm/typography/Typography.module.css +1 -0
- package/dist/esm/typography/types.js +41 -0
- package/dist/esm/utils/calculateDimensions.js +50 -0
- package/dist/esm/utils/getColor.js +49 -0
- package/dist/esm/utils/nodeCheck.js +35 -0
- package/dist/types/components/actionLabel/ActionLabel.d.ts +21 -0
- package/dist/types/components/animations/Animations.d.ts +23 -0
- package/dist/types/components/avatar/Avatar.d.ts +48 -0
- package/dist/types/components/avatar/AvatarGroup.d.ts +24 -0
- package/dist/types/components/badge/Badge.d.ts +25 -0
- package/dist/types/components/breadcrumbs/Breadcrumbs.d.ts +17 -0
- package/dist/types/components/button/Button.d.ts +94 -0
- package/dist/types/components/button/ButtonGroup.d.ts +34 -0
- package/dist/types/components/button/ConfirmButton.d.ts +27 -0
- package/dist/types/components/button/ToggleButtonGroup.d.ts +56 -0
- package/dist/types/components/callout/Callout.d.ts +28 -0
- package/dist/types/components/card/Card.d.ts +39 -0
- package/dist/types/components/card/CardCover.d.ts +16 -0
- package/dist/types/components/chip/Chip.d.ts +41 -0
- package/dist/types/components/collapsable/Collapsable.d.ts +43 -0
- package/dist/types/components/divider/Divider.d.ts +20 -0
- package/dist/types/components/dropdown/Dropdown.d.ts +50 -0
- package/dist/types/components/dropdown/DropdownTool.d.ts +8 -0
- package/dist/types/components/empty/EmptyContent.d.ts +21 -0
- package/dist/types/components/icon/Icon.d.ts +44 -0
- package/dist/types/components/index.d.ts +33 -0
- package/dist/types/components/media/Media.d.ts +37 -0
- package/dist/types/components/menu/ContextMenu.d.ts +7 -0
- package/dist/types/components/menu/Menu.d.ts +2 -0
- package/dist/types/components/menu/MenuItem.d.ts +4 -0
- package/dist/types/components/menu/types.d.ts +59 -0
- package/dist/types/components/meter/Meter.d.ts +12 -0
- package/dist/types/components/navigator/Navigator.d.ts +12 -0
- package/dist/types/components/panel/Panel.d.ts +59 -0
- package/dist/types/components/panel/PanelGroup.d.ts +12 -0
- package/dist/types/components/panel/PanelStack.d.ts +16 -0
- package/dist/types/components/progress/ProgressBar.d.ts +24 -0
- package/dist/types/components/progress/ProgressCircle.d.ts +16 -0
- package/dist/types/components/tabpanel/Tab.d.ts +41 -0
- package/dist/types/components/tabpanel/TabPanel.d.ts +41 -0
- package/dist/types/context/Global.d.ts +81 -0
- package/dist/types/context/NotificationCenter.d.ts +11 -0
- package/dist/types/core/aside/Aside.d.ts +52 -0
- package/dist/types/core/boundary/ErrorBoundary.d.ts +26 -0
- package/dist/types/core/boundary/ErrorIcon.d.ts +1 -0
- package/dist/types/core/content/Content.d.ts +15 -0
- package/dist/types/core/headfoot/HeadFoot.d.ts +24 -0
- package/dist/types/core/index.d.ts +9 -0
- package/dist/types/core/page/Page.d.ts +23 -0
- package/dist/types/core/responsive/Responsive.d.ts +53 -0
- package/dist/types/core/section/Section.d.ts +7 -0
- package/dist/types/core/theme/ThemeProvider.d.ts +37 -0
- package/dist/types/core/viewport/Viewport.d.ts +5 -0
- package/dist/types/hooks/useClientService.d.ts +1 -0
- package/dist/types/hooks/useControlledValue.d.ts +5 -0
- package/dist/types/hooks/useDebounce.d.ts +4 -0
- package/dist/types/hooks/useEffectDebugger.d.ts +4 -0
- package/dist/types/hooks/useIsDark.d.ts +1 -0
- package/dist/types/hooks/useIsRtl.d.ts +1 -0
- package/dist/types/hooks/useNavigator.d.ts +7 -0
- package/dist/types/hooks/useOverlayService.d.ts +10 -0
- package/dist/types/hooks/usePropToggle.d.ts +9 -0
- package/dist/types/hooks/useResize.d.ts +27 -0
- package/dist/types/hooks/useResizeObserver.d.ts +3 -0
- package/dist/types/hooks/useStorage.d.ts +2 -0
- package/dist/types/hotkeys/HotKey.d.ts +2 -0
- package/dist/types/hotkeys/HotKeyLabel.d.ts +2 -0
- package/dist/types/hotkeys/HotKeyWrapper.d.ts +11 -0
- package/dist/types/hotkeys/commons.d.ts +28 -0
- package/dist/types/i18n/index.d.ts +6 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/types/overlays/alert/Alert.d.ts +33 -0
- package/dist/types/overlays/flyout/Flyout.d.ts +57 -0
- package/dist/types/overlays/index.d.ts +6 -0
- package/dist/types/overlays/message/Message.d.ts +21 -0
- package/dist/types/overlays/modal/Modal.d.ts +53 -0
- package/dist/types/overlays/toast/Toast.d.ts +33 -0
- package/dist/types/overlays/tooltip/Tooltip.d.ts +18 -0
- package/dist/types/types/icons.d.ts +194 -0
- package/dist/types/types/index.d.ts +140 -0
- package/dist/types/typography/Abbr.d.ts +22 -0
- package/dist/types/typography/Copy.d.ts +9 -0
- package/dist/types/typography/Link.d.ts +24 -0
- package/dist/types/typography/Mark.d.ts +18 -0
- package/dist/types/typography/Text.d.ts +35 -0
- package/dist/types/typography/Title.d.ts +29 -0
- package/dist/types/typography/index.d.ts +6 -0
- package/dist/types/typography/types.d.ts +2 -0
- package/dist/types/utils/calculateDimensions.d.ts +6 -0
- package/dist/types/utils/getColor.d.ts +4 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/nodeCheck.d.ts +2 -0
- package/package.json +60 -0
- package/src/components/actionLabel/ActionLabel.module.css +38 -0
- package/src/components/actionLabel/ActionLabel.tsx +97 -0
- package/src/components/animations/Animations.module.css +253 -0
- package/src/components/animations/Animations.tsx +190 -0
- package/src/components/avatar/Avatar.module.css +90 -0
- package/src/components/avatar/Avatar.tsx +218 -0
- package/src/components/avatar/AvatarGroup.tsx +140 -0
- package/src/components/badge/Badge.module.css +165 -0
- package/src/components/badge/Badge.tsx +148 -0
- package/src/components/breadcrumbs/Breadcrumbs.module.css +189 -0
- package/src/components/breadcrumbs/Breadcrumbs.tsx +109 -0
- package/src/components/button/Button.module.css +375 -0
- package/src/components/button/Button.tsx +323 -0
- package/src/components/button/ButtonGroup.tsx +112 -0
- package/src/components/button/ConfirmButton.tsx +221 -0
- package/src/components/button/ToggleButtonGroup.tsx +161 -0
- package/src/components/callout/Callout.tsx +104 -0
- package/src/components/card/Card.module.css +152 -0
- package/src/components/card/Card.tsx +154 -0
- package/src/components/card/CardCover.tsx +87 -0
- package/src/components/chip/Chip.module.css +118 -0
- package/src/components/chip/Chip.tsx +201 -0
- package/src/components/collapsable/Collapsable.module.css +30 -0
- package/src/components/collapsable/Collapsable.tsx +153 -0
- package/src/components/divider/Divider.tsx +105 -0
- package/src/components/dropdown/Dropdown.module.css +39 -0
- package/src/components/dropdown/Dropdown.tsx +307 -0
- package/src/components/dropdown/DropdownTool.tsx +56 -0
- package/src/components/empty/EmptyContent.tsx +141 -0
- package/src/components/icon/Icon.module.css +71 -0
- package/src/components/icon/Icon.tsx +188 -0
- package/src/components/index.ts +61 -0
- package/src/components/media/Media.module.css +112 -0
- package/src/components/media/Media.tsx +224 -0
- package/src/components/menu/ContextMenu.tsx +116 -0
- package/src/components/menu/Menu.module.css +109 -0
- package/src/components/menu/Menu.tsx +278 -0
- package/src/components/menu/MenuItem.tsx +162 -0
- package/src/components/menu/types.ts +100 -0
- package/src/components/meter/Meter.module.css +116 -0
- package/src/components/meter/Meter.tsx +80 -0
- package/src/components/navigator/Navigator.tsx +77 -0
- package/src/components/panel/Panel.module.css +86 -0
- package/src/components/panel/Panel.tsx +254 -0
- package/src/components/panel/PanelGroup.tsx +99 -0
- package/src/components/panel/PanelStack.tsx +133 -0
- package/src/components/progress/Progress.module.css +70 -0
- package/src/components/progress/ProgressBar.tsx +122 -0
- package/src/components/progress/ProgressCircle.tsx +118 -0
- package/src/components/tabpanel/Tab.tsx +175 -0
- package/src/components/tabpanel/TabPanel.module.css +200 -0
- package/src/components/tabpanel/TabPanel.tsx +155 -0
- package/src/context/Global.tsx +241 -0
- package/src/context/NotificationCenter.tsx +223 -0
- package/src/core/aside/Aside.module.css +231 -0
- package/src/core/aside/Aside.tsx +262 -0
- package/src/core/boundary/ErrorBoundary.module.css +65 -0
- package/src/core/boundary/ErrorBoundary.tsx +146 -0
- package/src/core/boundary/ErrorIcon.tsx +50 -0
- package/src/core/content/Content.module.css +40 -0
- package/src/core/content/Content.tsx +91 -0
- package/src/core/headfoot/HeadFoot.module.css +38 -0
- package/src/core/headfoot/HeadFoot.tsx +114 -0
- package/src/core/index.ts +32 -0
- package/src/core/page/Page.module.css +46 -0
- package/src/core/page/Page.tsx +100 -0
- package/src/core/responsive/Responsive.module.css +85 -0
- package/src/core/responsive/Responsive.tsx +172 -0
- package/src/core/section/Section.module.css +28 -0
- package/src/core/section/Section.tsx +48 -0
- package/src/core/theme/Theme.module.css +30 -0
- package/src/core/theme/ThemeProvider.tsx +112 -0
- package/src/core/viewport/Viewport.module.css +32 -0
- package/src/core/viewport/Viewport.tsx +43 -0
- package/src/hooks/useClientService.tsx +29 -0
- package/src/hooks/useControlledValue.tsx +43 -0
- package/src/hooks/useDebounce.ts +52 -0
- package/src/hooks/useEffectDebugger.ts +154 -0
- package/src/hooks/useIsDark.ts +50 -0
- package/src/hooks/useIsRtl.ts +46 -0
- package/src/hooks/useNavigator.tsx +54 -0
- package/src/hooks/useOverlayService.tsx +51 -0
- package/src/hooks/usePropToggle.ts +61 -0
- package/src/hooks/useResize.ts +90 -0
- package/src/hooks/useResizeObserver.ts +55 -0
- package/src/hooks/useStorage.ts +76 -0
- package/src/hotkeys/HotKey.tsx +39 -0
- package/src/hotkeys/HotKeyLabel.tsx +61 -0
- package/src/hotkeys/HotKeyWrapper.tsx +137 -0
- package/src/hotkeys/commons.ts +74 -0
- package/src/i18n/ar.json +21 -0
- package/src/i18n/en.json +34 -0
- package/src/i18n/index.ts +50 -0
- package/src/index.ts +51 -0
- package/src/overlays/alert/Alert.module.css +44 -0
- package/src/overlays/alert/Alert.tsx +229 -0
- package/src/overlays/flyout/Flyout.module.css +52 -0
- package/src/overlays/flyout/Flyout.tsx +283 -0
- package/src/overlays/index.ts +29 -0
- package/src/overlays/message/Message.module.css +37 -0
- package/src/overlays/message/Message.tsx +107 -0
- package/src/overlays/modal/Modal.module.css +53 -0
- package/src/overlays/modal/Modal.tsx +244 -0
- package/src/overlays/toast/Toast.module.css +37 -0
- package/src/overlays/toast/Toast.tsx +216 -0
- package/src/overlays/tooltip/Tooltip.module.css +53 -0
- package/src/overlays/tooltip/Tooltip.tsx +200 -0
- package/src/types/global.d.ts +83 -0
- package/src/types/icons.ts +420 -0
- package/src/types/index.ts +238 -0
- package/src/typography/Abbr.tsx +152 -0
- package/src/typography/Copy.tsx +61 -0
- package/src/typography/Link.tsx +110 -0
- package/src/typography/Mark.tsx +122 -0
- package/src/typography/Text.tsx +194 -0
- package/src/typography/Title.tsx +126 -0
- package/src/typography/Typography.module.css +68 -0
- package/src/typography/index.ts +29 -0
- package/src/typography/types.ts +38 -0
- package/src/utils/calculateDimensions.ts +72 -0
- package/src/utils/getColor.ts +49 -0
- package/src/utils/index.ts +28 -0
- package/src/utils/nodeCheck.ts +34 -0
package/css/index.js
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
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
|
+
/* istanbul ignore file */
|
|
24
|
+
|
|
25
|
+
import {
|
|
26
|
+
backgroundColor,
|
|
27
|
+
borderColor,
|
|
28
|
+
colors,
|
|
29
|
+
textColor,
|
|
30
|
+
} from "./tailwind/colors";
|
|
31
|
+
const plugin = require("tailwindcss/plugin");
|
|
32
|
+
|
|
33
|
+
module.exports = plugin(
|
|
34
|
+
({ addUtilities, matchUtilities, addBase, theme }) => {
|
|
35
|
+
matchUtilities({
|
|
36
|
+
area: (value) => ({
|
|
37
|
+
gridArea: value,
|
|
38
|
+
}),
|
|
39
|
+
});
|
|
40
|
+
addUtilities({
|
|
41
|
+
".z-1": { "z-index": 1 },
|
|
42
|
+
".z-2": { "z-index": 2 },
|
|
43
|
+
".z-3": { "z-index": 3 },
|
|
44
|
+
".z-4": { "z-index": 4 },
|
|
45
|
+
".z-5": { "z-index": 5 },
|
|
46
|
+
".area-content": { "grid-area": "content" },
|
|
47
|
+
".area-head": { "grid-area": "head" },
|
|
48
|
+
".area-foot": { "grid-area": "foot" },
|
|
49
|
+
".area-side-s": { "grid-area": "side-s" },
|
|
50
|
+
".area-side-e": { "grid-area": "side-e" },
|
|
51
|
+
".area-body": { "grid-area": "body" },
|
|
52
|
+
".overflow-wrap": {
|
|
53
|
+
"overflow-wrap": "anywhere",
|
|
54
|
+
"word-break": "normal",
|
|
55
|
+
"text-wrap": "wrap",
|
|
56
|
+
},
|
|
57
|
+
".fixed-numbers": {
|
|
58
|
+
"font-variant-numeric": "tabular-nums",
|
|
59
|
+
},
|
|
60
|
+
".mixed-lang": {},
|
|
61
|
+
".bg-alternate": {},
|
|
62
|
+
".scroll-thin": {},
|
|
63
|
+
".scroll-hide": {},
|
|
64
|
+
...Object.fromEntries(
|
|
65
|
+
Object.entries(theme("spacing")).map(([key, size]) => [
|
|
66
|
+
`.gap-${key}`,
|
|
67
|
+
{ gap: size, "--gutter": size },
|
|
68
|
+
]),
|
|
69
|
+
),
|
|
70
|
+
".span-1": { flex: "0 1 calc((1 / 12) * 100% - var(--gutter, 0px))" },
|
|
71
|
+
".span-2": { flex: "0 1 calc((2 / 12) * 100% - var(--gutter, 0px))" },
|
|
72
|
+
".span-3": { flex: "0 1 calc((3 / 12) * 100% - var(--gutter, 0px))" },
|
|
73
|
+
".span-4": { flex: "0 1 calc((4 / 12) * 100% - var(--gutter, 0px))" },
|
|
74
|
+
".span-5": { flex: "0 1 calc((5 / 12) * 100% - var(--gutter, 0px))" },
|
|
75
|
+
".span-6": { flex: "0 1 calc((6 / 12) * 100% - var(--gutter, 0px))" },
|
|
76
|
+
".span-7": { flex: "0 1 calc((7 / 12) * 100% - var(--gutter, 0px))" },
|
|
77
|
+
".span-8": { flex: "0 1 calc((8 / 12) * 100% - var(--gutter, 0px))" },
|
|
78
|
+
".span-9": { flex: "0 1 calc((9 / 12) * 100% - var(--gutter, 0px))" },
|
|
79
|
+
".span-10": { flex: "0 1 calc((10 / 12) * 100% - var(--gutter, 0px))" },
|
|
80
|
+
".span-11": { flex: "0 1 calc((11 / 12) * 100% - var(--gutter, 0px))" },
|
|
81
|
+
".span-12": { flex: "0 1 calc((12 / 12) * 100% - var(--gutter, 0px))" },
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
darkMode: ["selector", '[data-color-scheme="dark"]'],
|
|
86
|
+
safelist: [
|
|
87
|
+
"font-san",
|
|
88
|
+
"font-serif",
|
|
89
|
+
"font-mono",
|
|
90
|
+
"object-fit",
|
|
91
|
+
"object-cover",
|
|
92
|
+
"object-contain",
|
|
93
|
+
"self-start",
|
|
94
|
+
"self-center",
|
|
95
|
+
"self-end",
|
|
96
|
+
"self-stretch",
|
|
97
|
+
"items-start",
|
|
98
|
+
"items-center",
|
|
99
|
+
"items-end",
|
|
100
|
+
"items-stretch",
|
|
101
|
+
"justify-start",
|
|
102
|
+
"justify-center",
|
|
103
|
+
"justify-end",
|
|
104
|
+
"justify-between",
|
|
105
|
+
"animate-spin",
|
|
106
|
+
"animate-pulse",
|
|
107
|
+
"animate-bounce",
|
|
108
|
+
"animate-progress",
|
|
109
|
+
{
|
|
110
|
+
pattern:
|
|
111
|
+
/bg-(black|white|base|dimmed|muted|dark|light|invert|silver|steel|olive|sand|info|danger|success|warning|scarlet|pumpkin|marigold|avacado|jade|denim|iris|lilac|coral|wood|primary|accent|tint)(-\d*)?/,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
pattern:
|
|
115
|
+
/text-(black|white|base|dimmed|muted|dark|light|invert|silver|steel|olive|sand|info|danger|success|warning|scarlet|pumpkin|marigold|avacado|jade|denim|iris|lilac|coral|wood|primary|accent|tint)(-\d*)?/,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
pattern:
|
|
119
|
+
/ring-(info|danger|success|warning|primary|accent|tint)(-\d*)?/,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
pattern:
|
|
123
|
+
/border-(black|white|base|dimmed|muted|dark|light|invert|silver|steel|olive|sand|info|danger|success|warning|scarlet|pumpkin|marigold|avacado|jade|denim|iris|lilac|coral|wood|primary|accent|tint)(-\d*)?/,
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
theme: {
|
|
127
|
+
fontFamily: {
|
|
128
|
+
sans: [
|
|
129
|
+
"Avenir Next",
|
|
130
|
+
"Avenir",
|
|
131
|
+
"Noto Sans",
|
|
132
|
+
"Roboto",
|
|
133
|
+
"Helvetica Neue",
|
|
134
|
+
"Segoe UI",
|
|
135
|
+
"Arial",
|
|
136
|
+
"sans-serif",
|
|
137
|
+
"BlinkMacSystemFont",
|
|
138
|
+
"Apple Color Emoji",
|
|
139
|
+
"Segoe UI Emoji",
|
|
140
|
+
"Segoe UI Symbol",
|
|
141
|
+
"Noto Color Emoji",
|
|
142
|
+
],
|
|
143
|
+
serif: [
|
|
144
|
+
"Noto Serif",
|
|
145
|
+
"Georgia",
|
|
146
|
+
"Cambria",
|
|
147
|
+
"Times New Roman",
|
|
148
|
+
"Times",
|
|
149
|
+
"serif",
|
|
150
|
+
],
|
|
151
|
+
mono: [
|
|
152
|
+
"Noto Sans Mono",
|
|
153
|
+
"Menlo",
|
|
154
|
+
"Monaco",
|
|
155
|
+
"Consolas",
|
|
156
|
+
"Liberation Mono",
|
|
157
|
+
"Courier New",
|
|
158
|
+
"monospace",
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
colors,
|
|
162
|
+
gap: {},
|
|
163
|
+
fontSize: {
|
|
164
|
+
xs: ["0.75rem", { lineHeight: "1rem" }],
|
|
165
|
+
sm: ["0.875rem", { lineHeight: "1.25rem" }],
|
|
166
|
+
reset: ["1rem", { lineHeight: "1.5rem" }],
|
|
167
|
+
md: ["1.125rem", { lineHeight: "1.5rem" }],
|
|
168
|
+
lg: ["1.25rem", { lineHeight: "1.75rem" }],
|
|
169
|
+
xl: ["1.5rem", { lineHeight: "2rem" }],
|
|
170
|
+
"2xl": ["1.75rem", { lineHeight: "2.25rem" }],
|
|
171
|
+
"3xl": ["1.875rem", { lineHeight: "2.25rem" }],
|
|
172
|
+
"4xl": ["2.25rem", { lineHeight: "2.5rem" }],
|
|
173
|
+
"5xl": ["3rem", { lineHeight: "1" }],
|
|
174
|
+
"6xl": ["3.75rem", { lineHeight: "1" }],
|
|
175
|
+
"7xl": ["4.5rem", { lineHeight: "1" }],
|
|
176
|
+
"8xl": ["6rem", { lineHeight: "1" }],
|
|
177
|
+
"9xl": ["8rem", { lineHeight: "1" }],
|
|
178
|
+
},
|
|
179
|
+
extend: {
|
|
180
|
+
backgroundColor,
|
|
181
|
+
borderColor,
|
|
182
|
+
stroke: borderColor,
|
|
183
|
+
outlineColor: borderColor,
|
|
184
|
+
textColor,
|
|
185
|
+
fill: backgroundColor,
|
|
186
|
+
screens: {
|
|
187
|
+
xs: "320px",
|
|
188
|
+
},
|
|
189
|
+
keyframes: {
|
|
190
|
+
cardpulse: {
|
|
191
|
+
"50%": { opacity: 0.5 },
|
|
192
|
+
},
|
|
193
|
+
progress: {
|
|
194
|
+
"0%": {
|
|
195
|
+
"background-position-x": 0,
|
|
196
|
+
},
|
|
197
|
+
"100%": {
|
|
198
|
+
"background-position-x": "1rem",
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
},
|
|
202
|
+
animation: {
|
|
203
|
+
pulse: "cardpulse 2s cubic-bezier(.4,0,.6,1) infinite",
|
|
204
|
+
progress: "progress 750ms linear infinite",
|
|
205
|
+
},
|
|
206
|
+
aspectRatio: {
|
|
207
|
+
screen: "4 / 3",
|
|
208
|
+
portrait: "3 / 4",
|
|
209
|
+
},
|
|
210
|
+
flex: {
|
|
211
|
+
full: "1 1 100%",
|
|
212
|
+
content: "0 0 auto",
|
|
213
|
+
},
|
|
214
|
+
maxWidth: {
|
|
215
|
+
screen: "100vw",
|
|
216
|
+
},
|
|
217
|
+
minWidth: {
|
|
218
|
+
screen: "100vw",
|
|
219
|
+
},
|
|
220
|
+
borderRadius: {
|
|
221
|
+
capped: "var(--rounding-cap)",
|
|
222
|
+
DEFAULT: "var(--rounding)",
|
|
223
|
+
},
|
|
224
|
+
boxShadow: {
|
|
225
|
+
1: "0 0 0 1px var(--tw-shadow-color)",
|
|
226
|
+
xs: "0 1px 1px 0 var(--tw-shadow-color)",
|
|
227
|
+
sm: "0 1px 2px 0 var(--tw-shadow-color)",
|
|
228
|
+
DEFAULT:
|
|
229
|
+
"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)",
|
|
230
|
+
md: "0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color)",
|
|
231
|
+
lg: "0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",
|
|
232
|
+
xl: "0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color)",
|
|
233
|
+
"2xl": "0 25px 50px -12px var(--tw-shadow-color)",
|
|
234
|
+
inset: "inset 0 0 2px var(--tw-shadow-color)",
|
|
235
|
+
inner: "inset 0 2px 4px 0 var(--tw-shadow-color)",
|
|
236
|
+
paper: "0 1px 3px 0 var(--tw-shadow-color)",
|
|
237
|
+
none: "none",
|
|
238
|
+
},
|
|
239
|
+
boxShadowColor: {
|
|
240
|
+
...borderColor,
|
|
241
|
+
DEFAULT: "var(--fabric-shadow)",
|
|
242
|
+
base: "var(--fabric-shadow)",
|
|
243
|
+
},
|
|
244
|
+
ringOffsetColor: {
|
|
245
|
+
base: "var(--fabric-bg)",
|
|
246
|
+
},
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
);
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
@layer reset {
|
|
25
|
+
:root {
|
|
26
|
+
--click-gradient: linear-gradient(
|
|
27
|
+
var(--fabric-gradient-deg, 180deg),
|
|
28
|
+
rgb(255 255 255 / 8%) 0%,
|
|
29
|
+
transparent 25%,
|
|
30
|
+
transparent 50%,
|
|
31
|
+
rgb(0 0 0 / 8%) 100%
|
|
32
|
+
);
|
|
33
|
+
--active-gradient: linear-gradient(
|
|
34
|
+
0deg,
|
|
35
|
+
rgb(255 255 255 / 5%) 0%,
|
|
36
|
+
transparent 15%,
|
|
37
|
+
transparent 85%,
|
|
38
|
+
rgb(0 0 0 / 5%) 100%
|
|
39
|
+
);
|
|
40
|
+
--progress-gradient: linear-gradient(
|
|
41
|
+
-45deg,
|
|
42
|
+
color(from var(--white) srgb r g b / 10%) 25%,
|
|
43
|
+
color(from var(--tint) srgb r g b / 10%) 25%,
|
|
44
|
+
color(from var(--tint) srgb r g b / 10%) 50%,
|
|
45
|
+
color(from var(--white) srgb r g b / 10%) 50%,
|
|
46
|
+
color(from var(--white) srgb r g b / 10%) 75%,
|
|
47
|
+
color(from var(--tint) srgb r g b / 10%) 75%,
|
|
48
|
+
color(from var(--tint) srgb r g b / 10%)
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,407 @@
|
|
|
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
|
+
@layer reset {
|
|
25
|
+
html,
|
|
26
|
+
body {
|
|
27
|
+
width: 100vw;
|
|
28
|
+
height: 100vh;
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding: 0;
|
|
31
|
+
|
|
32
|
+
-webkit-font-smoothing: antialiased;
|
|
33
|
+
-moz-osx-font-smoothing: grayscale;
|
|
34
|
+
vertical-align: baseline;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:root {
|
|
38
|
+
font-family: theme(fontFamily.sans);
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
line-height: 1.5;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
p,
|
|
44
|
+
div,
|
|
45
|
+
h1,
|
|
46
|
+
h2,
|
|
47
|
+
h3,
|
|
48
|
+
h4,
|
|
49
|
+
h5,
|
|
50
|
+
h6,
|
|
51
|
+
input,
|
|
52
|
+
textarea,
|
|
53
|
+
fieldset,
|
|
54
|
+
section,
|
|
55
|
+
aside,
|
|
56
|
+
header,
|
|
57
|
+
footer,
|
|
58
|
+
nav,
|
|
59
|
+
menu,
|
|
60
|
+
dialog {
|
|
61
|
+
margin: 0;
|
|
62
|
+
padding: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
fieldset {
|
|
66
|
+
min-inline-size: unset;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
body {
|
|
70
|
+
a,
|
|
71
|
+
label,
|
|
72
|
+
button {
|
|
73
|
+
user-select: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
::-webkit-scrollbar {
|
|
77
|
+
width: 6px;
|
|
78
|
+
height: 6px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
::-webkit-scrollbar-track {
|
|
82
|
+
background-color: color-mix(in lab, var(--fabric-bg) 72%, var(--tint));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
::-webkit-scrollbar-thumb {
|
|
86
|
+
background-color: color-mix(in lab, var(--fabric-bg) 35%, var(--tint));
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
background-color: color-mix(
|
|
90
|
+
in lab,
|
|
91
|
+
var(--fabric-text) 50%,
|
|
92
|
+
var(--tint)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:active {
|
|
97
|
+
background-color: color-mix(
|
|
98
|
+
in lab,
|
|
99
|
+
var(--fabric-bg) 50%,
|
|
100
|
+
var(--fabric-text)
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
::-webkit-scrollbar-corner {
|
|
106
|
+
background-color: var(--fabric-bg);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
input:not(:disabled)::-webkit-file-upload-button {
|
|
110
|
+
cursor: pointer;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.scroll-thin {
|
|
114
|
+
&::-webkit-scrollbar,
|
|
115
|
+
& ::-webkit-scrollbar {
|
|
116
|
+
width: 3px;
|
|
117
|
+
height: 3px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.scroll-hide {
|
|
122
|
+
&::-webkit-scrollbar,
|
|
123
|
+
& ::-webkit-scrollbar {
|
|
124
|
+
width: 0;
|
|
125
|
+
height: 0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
:focus-visible {
|
|
130
|
+
outline: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
::placeholder {
|
|
134
|
+
color: theme(colors.tint.400);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
::selection {
|
|
138
|
+
background-color: color-mix(in lab, var(--accent) 35%, var(--fabric-bg));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
*,
|
|
142
|
+
::before,
|
|
143
|
+
::after {
|
|
144
|
+
--tw-ring-offset-color: var(--fabric-bg);
|
|
145
|
+
--tw-ring-color: var(--primary);
|
|
146
|
+
|
|
147
|
+
box-sizing: border-box;
|
|
148
|
+
text-underline-offset: 0.25em;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
img,
|
|
152
|
+
svg {
|
|
153
|
+
display: inline-block;
|
|
154
|
+
fill: currentcolor;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
hr {
|
|
158
|
+
transform: scaleY(0.5);
|
|
159
|
+
|
|
160
|
+
height: auto;
|
|
161
|
+
margin: 1rem 0;
|
|
162
|
+
|
|
163
|
+
background: none;
|
|
164
|
+
border: 0;
|
|
165
|
+
border-top: 3px solid color-mix(in lab, var(--fabric-bg) 95%, var(--tint)) !important;
|
|
166
|
+
border-bottom: 2px solid
|
|
167
|
+
color-mix(in lab, var(--fabric-bg) 50%, var(--tint));
|
|
168
|
+
|
|
169
|
+
&.vertical {
|
|
170
|
+
transform: scaleX(0.5);
|
|
171
|
+
|
|
172
|
+
display: inline-block;
|
|
173
|
+
|
|
174
|
+
margin: 0 0.25rem;
|
|
175
|
+
|
|
176
|
+
border: 0;
|
|
177
|
+
border-inline-start: 3px solid
|
|
178
|
+
color-mix(in lab, var(--fabric-bg) 95%, var(--tint)) !important;
|
|
179
|
+
border-inline-end: 2px solid
|
|
180
|
+
color-mix(in lab, var(--fabric-bg) 50%, var(--tint));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
label {
|
|
185
|
+
cursor: inherit;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
[data-clickable="true"] {
|
|
189
|
+
cursor: pointer;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.sectioned {
|
|
193
|
+
display: grid;
|
|
194
|
+
grid-template: "head head head" auto "side-s content side-e" 1fr "foot foot foot" auto / auto 1fr auto;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
@media (min-width: theme(screens.xs)) {
|
|
198
|
+
.hide-xs {
|
|
199
|
+
@apply hidden;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
@media (max-width: theme(screens.sm)) {
|
|
203
|
+
.hide-xs-only {
|
|
204
|
+
@apply hidden;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.show-sm-only,
|
|
208
|
+
.show-md-only,
|
|
209
|
+
.show-lg-only,
|
|
210
|
+
.show-xl-only,
|
|
211
|
+
.show-2xl-only {
|
|
212
|
+
@apply hidden;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@media (min-width: theme(screens.sm)) {
|
|
218
|
+
.hide-sm {
|
|
219
|
+
@apply hidden;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
@media (max-width: theme(screens.md)) {
|
|
223
|
+
.hide-sm-only {
|
|
224
|
+
@apply hidden;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.show-xs-only,
|
|
228
|
+
.show-md-only,
|
|
229
|
+
.show-lg-only,
|
|
230
|
+
.show-xl-only,
|
|
231
|
+
.show-2xl-only {
|
|
232
|
+
@apply hidden;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@media (min-width: theme(screens.md)) {
|
|
238
|
+
.hide-md {
|
|
239
|
+
@apply hidden;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@media (max-width: theme(screens.lg)) {
|
|
243
|
+
.hide-md-only {
|
|
244
|
+
@apply hidden;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.show-xs-only,
|
|
248
|
+
.show-sm-only,
|
|
249
|
+
.show-lg-only,
|
|
250
|
+
.show-xl-only,
|
|
251
|
+
.show-2xl-only {
|
|
252
|
+
@apply hidden;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
@media (min-width: theme(screens.lg)) {
|
|
258
|
+
.hide-lg {
|
|
259
|
+
@apply hidden;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
@media (max-width: theme(screens.xl)) {
|
|
263
|
+
.hide-lg-only {
|
|
264
|
+
@apply hidden;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.show-xs-only,
|
|
268
|
+
.show-sm-only,
|
|
269
|
+
.show-md-only,
|
|
270
|
+
.show-xl-only,
|
|
271
|
+
.show-2xl-only {
|
|
272
|
+
@apply hidden;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
@media (min-width: theme(screens.xl)) {
|
|
278
|
+
.hide-xl {
|
|
279
|
+
@apply hidden;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@media (max-width: theme(screens.2xl)) {
|
|
283
|
+
.hide-xl-only {
|
|
284
|
+
@apply hidden;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.show-xs-only,
|
|
288
|
+
.show-sm-only,
|
|
289
|
+
.show-md-only,
|
|
290
|
+
.show-lg-only,
|
|
291
|
+
.show-2xl-only {
|
|
292
|
+
@apply hidden;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@media (min-width: theme(screens.2xl)) {
|
|
298
|
+
.hide-2xl,
|
|
299
|
+
.hide-2xl-only {
|
|
300
|
+
@apply hidden;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.show-xs-only,
|
|
304
|
+
.show-sm-only,
|
|
305
|
+
.show-md-only,
|
|
306
|
+
.show-lg-only,
|
|
307
|
+
.show-xl-only {
|
|
308
|
+
@apply hidden;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
@media (max-width: theme(screens.xs)) {
|
|
313
|
+
.show-xs,
|
|
314
|
+
.show-sm,
|
|
315
|
+
.show-md,
|
|
316
|
+
.show-lg,
|
|
317
|
+
.show-xl,
|
|
318
|
+
.show-2xl {
|
|
319
|
+
@apply hidden;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@media (max-width: theme(screens.sm)) {
|
|
324
|
+
.show-sm,
|
|
325
|
+
.show-md,
|
|
326
|
+
.show-lg,
|
|
327
|
+
.show-xl,
|
|
328
|
+
.show-2xl {
|
|
329
|
+
@apply hidden;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
@media (max-width: theme(screens.md)) {
|
|
334
|
+
.show-md,
|
|
335
|
+
.show-lg,
|
|
336
|
+
.show-xl,
|
|
337
|
+
.show-2xl {
|
|
338
|
+
@apply hidden;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@media (max-width: theme(screens.lg)) {
|
|
343
|
+
.show-lg,
|
|
344
|
+
.show-xl,
|
|
345
|
+
.show-2xl {
|
|
346
|
+
@apply hidden;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
@media (max-width: theme(screens.xl)) {
|
|
351
|
+
.show-xl,
|
|
352
|
+
.show-2xl {
|
|
353
|
+
@apply hidden;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@media (max-width: theme(screens.2xl)) {
|
|
358
|
+
.show-2xl {
|
|
359
|
+
@apply hidden;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.scroll-snap-start {
|
|
365
|
+
scroll-snap-type: both proximity;
|
|
366
|
+
|
|
367
|
+
& > * {
|
|
368
|
+
scroll-snap-align: start;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.scroll-snap-center {
|
|
373
|
+
scroll-snap-type: both proximity;
|
|
374
|
+
|
|
375
|
+
& > * {
|
|
376
|
+
scroll-snap-align: center;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.break-words {
|
|
381
|
+
word-break: break-word;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.outline-thin {
|
|
385
|
+
outline-width: 0.5px;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.outline {
|
|
389
|
+
outline-width: 1px;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.container {
|
|
393
|
+
margin-inline: auto;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
p,
|
|
397
|
+
pre,
|
|
398
|
+
h1,
|
|
399
|
+
h2,
|
|
400
|
+
h3,
|
|
401
|
+
h4,
|
|
402
|
+
h5,
|
|
403
|
+
h6,
|
|
404
|
+
.mixed-lang {
|
|
405
|
+
unicode-bidi: plaintext;
|
|
406
|
+
}
|
|
407
|
+
}
|