@fuf-stack/pixels 1.15.1 → 2.0.0-next.3
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/Accordion/Accordion.d.mts +23 -545
- package/dist/Accordion/Accordion.d.mts.map +1 -1
- package/dist/Accordion/Accordion.mjs +77 -48
- package/dist/Accordion/Accordion.mjs.map +1 -1
- package/dist/Accordion/accordionVariants.d.mts +616 -0
- package/dist/Accordion/accordionVariants.d.mts.map +1 -0
- package/dist/Accordion/accordionVariants.mjs +52 -0
- package/dist/Accordion/accordionVariants.mjs.map +1 -0
- package/dist/Accordion/index.d.mts +2 -1
- package/dist/Accordion/index.mjs +2 -1
- package/dist/Accordion/index.mjs.map +1 -1
- package/dist/Accordion/subcomponents/AccordionItem.mjs +96 -0
- package/dist/Accordion/subcomponents/AccordionItem.mjs.map +1 -0
- package/dist/Accordion/subcomponents/AccordionPanel.mjs +51 -0
- package/dist/Accordion/subcomponents/AccordionPanel.mjs.map +1 -0
- package/dist/Alert/Alert.d.mts +12 -470
- package/dist/Alert/Alert.d.mts.map +1 -1
- package/dist/Alert/Alert.mjs +63 -73
- package/dist/Alert/Alert.mjs.map +1 -1
- package/dist/Alert/alertVariants.d.mts +468 -0
- package/dist/Alert/alertVariants.d.mts.map +1 -0
- package/dist/Alert/alertVariants.mjs +62 -0
- package/dist/Alert/alertVariants.mjs.map +1 -0
- package/dist/Alert/index.d.mts +2 -1
- package/dist/Alert/index.mjs +2 -1
- package/dist/Alert/index.mjs.map +1 -1
- package/dist/Alert/subcomponents/AlertCloseButton.mjs +42 -0
- package/dist/Alert/subcomponents/AlertCloseButton.mjs.map +1 -0
- package/dist/Alert/subcomponents/AlertIcon.mjs +57 -0
- package/dist/Alert/subcomponents/AlertIcon.mjs.map +1 -0
- package/dist/Avatar/Avatar.d.mts +12 -748
- package/dist/Avatar/Avatar.d.mts.map +1 -1
- package/dist/Avatar/Avatar.mjs +32 -25
- package/dist/Avatar/Avatar.mjs.map +1 -1
- package/dist/Avatar/avatarVariants.d.mts +444 -0
- package/dist/Avatar/avatarVariants.d.mts.map +1 -0
- package/dist/Avatar/avatarVariants.mjs +45 -0
- package/dist/Avatar/avatarVariants.mjs.map +1 -0
- package/dist/Avatar/index.d.mts +2 -1
- package/dist/Avatar/index.mjs +2 -1
- package/dist/Avatar/index.mjs.map +1 -1
- package/dist/Avatar/subcomponents/AvatarGroupContext.mjs +7 -0
- package/dist/Avatar/subcomponents/AvatarGroupContext.mjs.map +1 -0
- package/dist/Avatar/subcomponents/AvatarImage.mjs +40 -0
- package/dist/Avatar/subcomponents/AvatarImage.mjs.map +1 -0
- package/dist/Avatar/subcomponents/AvatarPlaceholder.mjs +28 -0
- package/dist/Avatar/subcomponents/AvatarPlaceholder.mjs.map +1 -0
- package/dist/AvatarGroup/AvatarGroup.d.mts +10 -4
- package/dist/AvatarGroup/AvatarGroup.d.mts.map +1 -1
- package/dist/AvatarGroup/AvatarGroup.mjs +35 -27
- package/dist/AvatarGroup/AvatarGroup.mjs.map +1 -1
- package/dist/AvatarGroup/avatarGroupVariants.d.mts +389 -0
- package/dist/AvatarGroup/avatarGroupVariants.d.mts.map +1 -0
- package/dist/AvatarGroup/avatarGroupVariants.mjs +16 -0
- package/dist/AvatarGroup/avatarGroupVariants.mjs.map +1 -0
- package/dist/AvatarGroup/index.d.mts +2 -1
- package/dist/AvatarGroup/index.mjs +2 -1
- package/dist/AvatarGroup/index.mjs.map +1 -1
- package/dist/AvatarGroup/subcomponents/AvatarGroupCount.mjs +31 -0
- package/dist/AvatarGroup/subcomponents/AvatarGroupCount.mjs.map +1 -0
- package/dist/Badge/Badge.d.mts +18 -404
- package/dist/Badge/Badge.d.mts.map +1 -1
- package/dist/Badge/Badge.mjs +27 -22
- package/dist/Badge/Badge.mjs.map +1 -1
- package/dist/Badge/badgeVariants.d.mts +350 -0
- package/dist/Badge/badgeVariants.d.mts.map +1 -0
- package/dist/Badge/badgeVariants.mjs +83 -0
- package/dist/Badge/badgeVariants.mjs.map +1 -0
- package/dist/Badge/index.d.mts +3 -2
- package/dist/Badge/index.mjs +4 -3
- package/dist/Badge/index.mjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.d.mts +16 -889
- package/dist/Breadcrumb/Breadcrumb.d.mts.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.mjs +51 -44
- package/dist/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/dist/Breadcrumb/breadcrumbVariants.d.mts +686 -0
- package/dist/Breadcrumb/breadcrumbVariants.d.mts.map +1 -0
- package/dist/Breadcrumb/breadcrumbVariants.mjs +158 -0
- package/dist/Breadcrumb/breadcrumbVariants.mjs.map +1 -0
- package/dist/Breadcrumb/index.d.mts +2 -1
- package/dist/Breadcrumb/index.mjs +2 -1
- package/dist/Breadcrumb/index.mjs.map +1 -1
- package/dist/Breadcrumb/subcomponents/BreadcrumbItem.mjs +90 -0
- package/dist/Breadcrumb/subcomponents/BreadcrumbItem.mjs.map +1 -0
- package/dist/Breadcrumb/subcomponents/BreadcrumbSeparator.mjs +26 -0
- package/dist/Breadcrumb/subcomponents/BreadcrumbSeparator.mjs.map +1 -0
- package/dist/Button/Button.d.mts +26 -29
- package/dist/Button/Button.d.mts.map +1 -1
- package/dist/Button/Button.mjs +62 -90
- package/dist/Button/Button.mjs.map +1 -1
- package/dist/Button/buttonVariants.d.mts +266 -0
- package/dist/Button/buttonVariants.d.mts.map +1 -0
- package/dist/Button/buttonVariants.mjs +417 -0
- package/dist/Button/buttonVariants.mjs.map +1 -0
- package/dist/Button/hooks/useButtonRipple.mjs +40 -0
- package/dist/Button/hooks/useButtonRipple.mjs.map +1 -0
- package/dist/Button/index.d.mts +2 -1
- package/dist/Button/index.mjs +2 -1
- package/dist/Button/index.mjs.map +1 -1
- package/dist/Button/subcomponents/ButtonRipple.mjs +37 -0
- package/dist/Button/subcomponents/ButtonRipple.mjs.map +1 -0
- package/dist/Button/subcomponents/LoadingSpinner.mjs +3 -5
- package/dist/Button/subcomponents/LoadingSpinner.mjs.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.mts +30 -6
- package/dist/ButtonGroup/ButtonGroup.d.mts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.mjs +49 -6
- package/dist/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/dist/ButtonGroup/ButtonGroupContext.mjs +6 -0
- package/dist/ButtonGroup/ButtonGroupContext.mjs.map +1 -0
- package/dist/ButtonGroup/buttonGroupVariants.d.mts +106 -0
- package/dist/ButtonGroup/buttonGroupVariants.d.mts.map +1 -0
- package/dist/ButtonGroup/buttonGroupVariants.mjs +11 -0
- package/dist/ButtonGroup/buttonGroupVariants.mjs.map +1 -0
- package/dist/ButtonGroup/index.d.mts +2 -1
- package/dist/ButtonGroup/index.mjs +2 -1
- package/dist/ButtonGroup/index.mjs.map +1 -1
- package/dist/Card/Card.d.mts +7 -749
- package/dist/Card/Card.d.mts.map +1 -1
- package/dist/Card/Card.mjs +34 -32
- package/dist/Card/Card.mjs.map +1 -1
- package/dist/Card/cardVariants.d.mts +753 -0
- package/dist/Card/cardVariants.d.mts.map +1 -0
- package/dist/Card/cardVariants.mjs +23 -0
- package/dist/Card/cardVariants.mjs.map +1 -0
- package/dist/Card/index.d.mts +2 -1
- package/dist/Card/index.mjs +2 -1
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Drawer/Drawer.d.mts +20 -1009
- package/dist/Drawer/Drawer.d.mts.map +1 -1
- package/dist/Drawer/Drawer.mjs +23 -67
- package/dist/Drawer/Drawer.mjs.map +1 -1
- package/dist/Drawer/drawerVariants.d.mts +638 -0
- package/dist/Drawer/drawerVariants.d.mts.map +1 -0
- package/dist/Drawer/drawerVariants.mjs +80 -0
- package/dist/Drawer/drawerVariants.mjs.map +1 -0
- package/dist/Drawer/index.d.mts +2 -1
- package/dist/Drawer/index.mjs +2 -1
- package/dist/Drawer/index.mjs.map +1 -1
- package/dist/Json/Json.mjs +3 -1
- package/dist/Json/Json.mjs.map +1 -1
- package/dist/Label/Label.d.mts +17 -447
- package/dist/Label/Label.d.mts.map +1 -1
- package/dist/Label/Label.mjs +40 -73
- package/dist/Label/Label.mjs.map +1 -1
- package/dist/Label/index.d.mts +2 -1
- package/dist/Label/index.mjs +2 -1
- package/dist/Label/index.mjs.map +1 -1
- package/dist/Label/labelVariants.d.mts +638 -0
- package/dist/Label/labelVariants.d.mts.map +1 -0
- package/dist/Label/labelVariants.mjs +317 -0
- package/dist/Label/labelVariants.mjs.map +1 -0
- package/dist/Label/subcomponents/LabelEndContent.mjs +35 -0
- package/dist/Label/subcomponents/LabelEndContent.mjs.map +1 -0
- package/dist/Menu/Menu.d.mts +46 -425
- package/dist/Menu/Menu.d.mts.map +1 -1
- package/dist/Menu/Menu.mjs +25 -86
- package/dist/Menu/Menu.mjs.map +1 -1
- package/dist/Menu/index.d.mts +2 -1
- package/dist/Menu/index.mjs +2 -1
- package/dist/Menu/index.mjs.map +1 -1
- package/dist/Menu/menuVariants.d.mts +1358 -0
- package/dist/Menu/menuVariants.d.mts.map +1 -0
- package/dist/Menu/menuVariants.mjs +33 -0
- package/dist/Menu/menuVariants.mjs.map +1 -0
- package/dist/Menu/subcomponents/MenuOption.mjs +48 -0
- package/dist/Menu/subcomponents/MenuOption.mjs.map +1 -0
- package/dist/Menu/subcomponents/MenuOptions.mjs +42 -0
- package/dist/Menu/subcomponents/MenuOptions.mjs.map +1 -0
- package/dist/Menu/subcomponents/MenuOverlay.mjs +20 -0
- package/dist/Menu/subcomponents/MenuOverlay.mjs.map +1 -0
- package/dist/Menu/subcomponents/MenuSurface.mjs +92 -0
- package/dist/Menu/subcomponents/MenuSurface.mjs.map +1 -0
- package/dist/Menu/subcomponents/MenuTriggerButton.mjs +59 -0
- package/dist/Menu/subcomponents/MenuTriggerButton.mjs.map +1 -0
- package/dist/Modal/Modal.d.mts +15 -375
- package/dist/Modal/Modal.d.mts.map +1 -1
- package/dist/Modal/Modal.mjs +19 -47
- package/dist/Modal/Modal.mjs.map +1 -1
- package/dist/Modal/ModalHost.mjs +2 -2
- package/dist/Modal/ModalHost.mjs.map +1 -1
- package/dist/Modal/hooks/useModalViewportHeight.mjs +29 -0
- package/dist/Modal/hooks/useModalViewportHeight.mjs.map +1 -0
- package/dist/Modal/index.d.mts +2 -1
- package/dist/Modal/index.mjs +2 -1
- package/dist/Modal/index.mjs.map +1 -1
- package/dist/Modal/modalStore.mjs.map +1 -1
- package/dist/Modal/modalVariants.d.mts +371 -0
- package/dist/Modal/modalVariants.d.mts.map +1 -0
- package/dist/Modal/modalVariants.mjs +41 -0
- package/dist/Modal/modalVariants.mjs.map +1 -0
- package/dist/Modal/subcomponents/ModalCloseButton.mjs +46 -0
- package/dist/Modal/subcomponents/ModalCloseButton.mjs.map +1 -0
- package/dist/Modal/subcomponents/ModalOverlay.mjs +28 -0
- package/dist/Modal/subcomponents/ModalOverlay.mjs.map +1 -0
- package/dist/Modal/subcomponents/ModalSections.mjs +27 -0
- package/dist/Modal/subcomponents/ModalSections.mjs.map +1 -0
- package/dist/Modal/subcomponents/ModalSurface.mjs +101 -0
- package/dist/Modal/subcomponents/ModalSurface.mjs.map +1 -0
- package/dist/Popover/Popover.d.mts +23 -1119
- package/dist/Popover/Popover.d.mts.map +1 -1
- package/dist/Popover/Popover.mjs +27 -63
- package/dist/Popover/Popover.mjs.map +1 -1
- package/dist/Popover/index.d.mts +2 -1
- package/dist/Popover/index.mjs +2 -1
- package/dist/Popover/index.mjs.map +1 -1
- package/dist/Popover/popoverVariants.d.mts +1358 -0
- package/dist/Popover/popoverVariants.d.mts.map +1 -0
- package/dist/Popover/popoverVariants.mjs +75 -0
- package/dist/Popover/popoverVariants.mjs.map +1 -0
- package/dist/Popover/subcomponents/PopoverContent.mjs +59 -0
- package/dist/Popover/subcomponents/PopoverContent.mjs.map +1 -0
- package/dist/Popover/subcomponents/PopoverOverlay.mjs +105 -0
- package/dist/Popover/subcomponents/PopoverOverlay.mjs.map +1 -0
- package/dist/Popover/subcomponents/PopoverTrigger.mjs +46 -0
- package/dist/Popover/subcomponents/PopoverTrigger.mjs.map +1 -0
- package/dist/Progress/Progress.d.mts +15 -349
- package/dist/Progress/Progress.d.mts.map +1 -1
- package/dist/Progress/Progress.mjs +52 -40
- package/dist/Progress/Progress.mjs.map +1 -1
- package/dist/Progress/index.d.mts +2 -1
- package/dist/Progress/index.mjs +2 -1
- package/dist/Progress/index.mjs.map +1 -1
- package/dist/Progress/progressVariants.d.mts +480 -0
- package/dist/Progress/progressVariants.d.mts.map +1 -0
- package/dist/Progress/progressVariants.mjs +56 -0
- package/dist/Progress/progressVariants.mjs.map +1 -0
- package/dist/Progress/subcomponents/ProgressIndicator.mjs +31 -0
- package/dist/Progress/subcomponents/ProgressIndicator.mjs.map +1 -0
- package/dist/ProgressCircular/ProgressCircular.d.mts +16 -532
- package/dist/ProgressCircular/ProgressCircular.d.mts.map +1 -1
- package/dist/ProgressCircular/ProgressCircular.mjs +46 -81
- package/dist/ProgressCircular/ProgressCircular.mjs.map +1 -1
- package/dist/ProgressCircular/index.d.mts +2 -1
- package/dist/ProgressCircular/index.mjs +2 -1
- package/dist/ProgressCircular/index.mjs.map +1 -1
- package/dist/ProgressCircular/progressCircularVariants.d.mts +624 -0
- package/dist/ProgressCircular/progressCircularVariants.d.mts.map +1 -0
- package/dist/ProgressCircular/progressCircularVariants.mjs +72 -0
- package/dist/ProgressCircular/progressCircularVariants.mjs.map +1 -0
- package/dist/ProgressCircular/subcomponents/ProgressCircularRing.mjs +52 -0
- package/dist/ProgressCircular/subcomponents/ProgressCircularRing.mjs.map +1 -0
- package/dist/ScrollShadow/ScrollShadow.d.mts +9 -11
- package/dist/ScrollShadow/ScrollShadow.d.mts.map +1 -1
- package/dist/ScrollShadow/ScrollShadow.mjs +32 -16
- package/dist/ScrollShadow/ScrollShadow.mjs.map +1 -1
- package/dist/ScrollShadow/hooks/useScrollShadow.mjs +84 -0
- package/dist/ScrollShadow/hooks/useScrollShadow.mjs.map +1 -0
- package/dist/ScrollShadow/index.d.mts +3 -2
- package/dist/ScrollShadow/index.mjs +4 -3
- package/dist/ScrollShadow/index.mjs.map +1 -1
- package/dist/ScrollShadow/scrollShadowVariants.d.mts +103 -0
- package/dist/ScrollShadow/scrollShadowVariants.d.mts.map +1 -0
- package/dist/ScrollShadow/scrollShadowVariants.mjs +29 -0
- package/dist/ScrollShadow/scrollShadowVariants.mjs.map +1 -0
- package/dist/SearchInput/SearchInput.d.mts +13 -644
- package/dist/SearchInput/SearchInput.d.mts.map +1 -1
- package/dist/SearchInput/SearchInput.mjs +13 -44
- package/dist/SearchInput/SearchInput.mjs.map +1 -1
- package/dist/SearchInput/index.d.mts +2 -1
- package/dist/SearchInput/index.mjs +2 -1
- package/dist/SearchInput/index.mjs.map +1 -1
- package/dist/SearchInput/searchInputVariants.d.mts +402 -0
- package/dist/SearchInput/searchInputVariants.d.mts.map +1 -0
- package/dist/SearchInput/searchInputVariants.mjs +56 -0
- package/dist/SearchInput/searchInputVariants.mjs.map +1 -0
- package/dist/SearchInput/subcomponents/SearchInputClearButton.mjs +40 -0
- package/dist/SearchInput/subcomponents/SearchInputClearButton.mjs.map +1 -0
- package/dist/SearchInput/subcomponents/SearchInputControl.mjs +97 -0
- package/dist/SearchInput/subcomponents/SearchInputControl.mjs.map +1 -0
- package/dist/StylingProvider/StylingProvider.d.mts +10 -0
- package/dist/StylingProvider/StylingProvider.d.mts.map +1 -0
- package/dist/StylingProvider/StylingProvider.mjs +18 -0
- package/dist/StylingProvider/StylingProvider.mjs.map +1 -0
- package/dist/StylingProvider/index.d.mts +2 -0
- package/dist/StylingProvider/index.mjs +1 -0
- package/dist/Table/Table.d.mts +22 -546
- package/dist/Table/Table.d.mts.map +1 -1
- package/dist/Table/Table.mjs +32 -66
- package/dist/Table/Table.mjs.map +1 -1
- package/dist/Table/hooks/useTableVirtualizer.mjs +156 -0
- package/dist/Table/hooks/useTableVirtualizer.mjs.map +1 -0
- package/dist/Table/index.d.mts +2 -1
- package/dist/Table/index.mjs +2 -1
- package/dist/Table/index.mjs.map +1 -1
- package/dist/Table/subcomponents/TableBodyRow.mjs +39 -0
- package/dist/Table/subcomponents/TableBodyRow.mjs.map +1 -0
- package/dist/Table/subcomponents/TableCell.mjs +27 -0
- package/dist/Table/subcomponents/TableCell.mjs.map +1 -0
- package/dist/Table/subcomponents/TableGrid.mjs +147 -0
- package/dist/Table/subcomponents/TableGrid.mjs.map +1 -0
- package/dist/Table/subcomponents/TableHeaderCell.mjs +29 -0
- package/dist/Table/subcomponents/TableHeaderCell.mjs.map +1 -0
- package/dist/Table/subcomponents/TableHeaderRow.mjs +33 -0
- package/dist/Table/subcomponents/TableHeaderRow.mjs.map +1 -0
- package/dist/Table/tableVariants.d.mts +660 -0
- package/dist/Table/tableVariants.d.mts.map +1 -0
- package/dist/Table/tableVariants.mjs +55 -0
- package/dist/Table/tableVariants.mjs.map +1 -0
- package/dist/Tabs/Tabs.d.mts +4 -984
- package/dist/Tabs/Tabs.d.mts.map +1 -1
- package/dist/Tabs/Tabs.mjs +57 -36
- package/dist/Tabs/Tabs.mjs.map +1 -1
- package/dist/Tabs/index.d.mts +2 -1
- package/dist/Tabs/index.mjs +2 -1
- package/dist/Tabs/index.mjs.map +1 -1
- package/dist/Tabs/subcomponents/TabsItem.mjs +29 -0
- package/dist/Tabs/subcomponents/TabsItem.mjs.map +1 -0
- package/dist/Tabs/tabsVariants.d.mts +651 -0
- package/dist/Tabs/tabsVariants.d.mts.map +1 -0
- package/dist/Tabs/tabsVariants.mjs +163 -0
- package/dist/Tabs/tabsVariants.mjs.map +1 -0
- package/dist/Toast/Toaster.mjs +2 -1
- package/dist/Toast/Toaster.mjs.map +1 -1
- package/dist/Tooltip/Tooltip.d.mts +18 -486
- package/dist/Tooltip/Tooltip.d.mts.map +1 -1
- package/dist/Tooltip/Tooltip.mjs +21 -92
- package/dist/Tooltip/Tooltip.mjs.map +1 -1
- package/dist/Tooltip/index.d.mts +2 -1
- package/dist/Tooltip/index.mjs +2 -1
- package/dist/Tooltip/index.mjs.map +1 -1
- package/dist/Tooltip/subcomponents/TooltipContent.mjs +33 -0
- package/dist/Tooltip/subcomponents/TooltipContent.mjs.map +1 -0
- package/dist/Tooltip/subcomponents/TooltipOverlay.mjs +16 -0
- package/dist/Tooltip/subcomponents/TooltipOverlay.mjs.map +1 -0
- package/dist/Tooltip/subcomponents/TooltipSurface.mjs +94 -0
- package/dist/Tooltip/subcomponents/TooltipSurface.mjs.map +1 -0
- package/dist/Tooltip/subcomponents/TooltipTextTrigger.mjs +23 -0
- package/dist/Tooltip/subcomponents/TooltipTextTrigger.mjs.map +1 -0
- package/dist/Tooltip/subcomponents/TooltipTriggerElement.mjs +23 -0
- package/dist/Tooltip/subcomponents/TooltipTriggerElement.mjs.map +1 -0
- package/dist/Tooltip/tooltipVariants.d.mts +1772 -0
- package/dist/Tooltip/tooltipVariants.d.mts.map +1 -0
- package/dist/Tooltip/tooltipVariants.mjs +54 -0
- package/dist/Tooltip/tooltipVariants.mjs.map +1 -0
- package/dist/hooks/useDebounce/useDebounce.mjs +1 -1
- package/dist/index.d.mts +40 -19
- package/dist/index.mjs +34 -14
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/Container.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/comps/Copied.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs +2 -2
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/index.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/Expands.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/Section.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/ShowTools.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/Symbols.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store/Types.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/store.mjs +1 -1
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/types/index.mjs +12 -12
- package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.44_@babel_runtime@7.29.7_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/@uiw/react-json-view/esm/types/index.mjs.map +1 -1
- package/dist/utils/createWithSuspense/createWithSuspense.mjs +1 -1
- package/package.json +14 -29
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
|
|
2
|
+
/** Corner badge surface, outline and content sizing */
|
|
3
|
+
export declare const badgeVariants: ((props?: ({
|
|
4
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
6
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
7
|
+
isOneChar?: boolean | undefined;
|
|
8
|
+
isDot?: boolean | undefined;
|
|
9
|
+
noOutline?: boolean | undefined;
|
|
10
|
+
} & ({
|
|
11
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
12
|
+
className?: never;
|
|
13
|
+
} | {
|
|
14
|
+
class?: never;
|
|
15
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
16
|
+
})) | undefined) => {
|
|
17
|
+
badge: (slotProps?: ({
|
|
18
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
19
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
21
|
+
isOneChar?: boolean | undefined;
|
|
22
|
+
isDot?: boolean | undefined;
|
|
23
|
+
noOutline?: boolean | undefined;
|
|
24
|
+
} & ({
|
|
25
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
26
|
+
className?: never;
|
|
27
|
+
} | {
|
|
28
|
+
class?: never;
|
|
29
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
30
|
+
})) | undefined) => string;
|
|
31
|
+
base: (slotProps?: ({
|
|
32
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
33
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
34
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
35
|
+
isOneChar?: boolean | undefined;
|
|
36
|
+
isDot?: boolean | undefined;
|
|
37
|
+
noOutline?: boolean | undefined;
|
|
38
|
+
} & ({
|
|
39
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
40
|
+
className?: never;
|
|
41
|
+
} | {
|
|
42
|
+
class?: never;
|
|
43
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
44
|
+
})) | undefined) => string;
|
|
45
|
+
} & {
|
|
46
|
+
badge: (slotProps?: ({
|
|
47
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
48
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
49
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
50
|
+
isOneChar?: boolean | undefined;
|
|
51
|
+
isDot?: boolean | undefined;
|
|
52
|
+
noOutline?: boolean | undefined;
|
|
53
|
+
} & ({
|
|
54
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
55
|
+
className?: never;
|
|
56
|
+
} | {
|
|
57
|
+
class?: never;
|
|
58
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
59
|
+
})) | undefined) => string;
|
|
60
|
+
base: (slotProps?: ({
|
|
61
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
62
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
63
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
64
|
+
isOneChar?: boolean | undefined;
|
|
65
|
+
isDot?: boolean | undefined;
|
|
66
|
+
noOutline?: boolean | undefined;
|
|
67
|
+
} & ({
|
|
68
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
69
|
+
className?: never;
|
|
70
|
+
} | {
|
|
71
|
+
class?: never;
|
|
72
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
73
|
+
})) | undefined) => string;
|
|
74
|
+
} & {}) & {
|
|
75
|
+
extend: ((props?: ({
|
|
76
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
77
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
78
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
79
|
+
isOneChar?: boolean | undefined;
|
|
80
|
+
isDot?: boolean | undefined;
|
|
81
|
+
noOutline?: boolean | undefined;
|
|
82
|
+
} & ({
|
|
83
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
84
|
+
className?: never;
|
|
85
|
+
} | {
|
|
86
|
+
class?: never;
|
|
87
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
88
|
+
})) | undefined) => {} & {
|
|
89
|
+
badge: (slotProps?: ({
|
|
90
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
91
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
92
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
93
|
+
isOneChar?: boolean | undefined;
|
|
94
|
+
isDot?: boolean | undefined;
|
|
95
|
+
noOutline?: boolean | undefined;
|
|
96
|
+
} & ({
|
|
97
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
98
|
+
className?: never;
|
|
99
|
+
} | {
|
|
100
|
+
class?: never;
|
|
101
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
102
|
+
})) | undefined) => string;
|
|
103
|
+
base: (slotProps?: ({
|
|
104
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
105
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
106
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
107
|
+
isOneChar?: boolean | undefined;
|
|
108
|
+
isDot?: boolean | undefined;
|
|
109
|
+
noOutline?: boolean | undefined;
|
|
110
|
+
} & ({
|
|
111
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
112
|
+
className?: never;
|
|
113
|
+
} | {
|
|
114
|
+
class?: never;
|
|
115
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
116
|
+
})) | undefined) => string;
|
|
117
|
+
} & {}) & {
|
|
118
|
+
extend: undefined;
|
|
119
|
+
base: undefined;
|
|
120
|
+
slots: {
|
|
121
|
+
/** Badge content positioned over the wrapped element */
|
|
122
|
+
badge: string[];
|
|
123
|
+
/** Positioning container around the wrapped element */
|
|
124
|
+
base: string;
|
|
125
|
+
};
|
|
126
|
+
variants: {
|
|
127
|
+
color: {
|
|
128
|
+
default: {
|
|
129
|
+
badge: string;
|
|
130
|
+
};
|
|
131
|
+
primary: {
|
|
132
|
+
badge: string;
|
|
133
|
+
};
|
|
134
|
+
secondary: {
|
|
135
|
+
badge: string;
|
|
136
|
+
};
|
|
137
|
+
success: {
|
|
138
|
+
badge: string;
|
|
139
|
+
};
|
|
140
|
+
warning: {
|
|
141
|
+
badge: string;
|
|
142
|
+
};
|
|
143
|
+
danger: {
|
|
144
|
+
badge: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
isDot: {
|
|
148
|
+
true: {};
|
|
149
|
+
};
|
|
150
|
+
isOneChar: {
|
|
151
|
+
true: {};
|
|
152
|
+
};
|
|
153
|
+
noOutline: {
|
|
154
|
+
true: {
|
|
155
|
+
badge: string;
|
|
156
|
+
};
|
|
157
|
+
false: {
|
|
158
|
+
badge: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
placement: {
|
|
162
|
+
'top-right': {
|
|
163
|
+
badge: string;
|
|
164
|
+
};
|
|
165
|
+
'top-left': {
|
|
166
|
+
badge: string;
|
|
167
|
+
};
|
|
168
|
+
'bottom-right': {
|
|
169
|
+
badge: string;
|
|
170
|
+
};
|
|
171
|
+
'bottom-left': {
|
|
172
|
+
badge: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
size: {
|
|
176
|
+
sm: {
|
|
177
|
+
badge: string;
|
|
178
|
+
};
|
|
179
|
+
md: {
|
|
180
|
+
badge: string;
|
|
181
|
+
};
|
|
182
|
+
lg: {
|
|
183
|
+
badge: string;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
defaultVariants: {
|
|
188
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
189
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
190
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
191
|
+
isOneChar?: boolean | undefined;
|
|
192
|
+
isDot?: boolean | undefined;
|
|
193
|
+
noOutline?: boolean | undefined;
|
|
194
|
+
};
|
|
195
|
+
compoundVariants: ({
|
|
196
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | ("primary" | "secondary" | "success" | "warning" | "danger" | "default")[] | undefined;
|
|
197
|
+
size?: "sm" | "md" | "lg" | ("sm" | "md" | "lg")[] | undefined;
|
|
198
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | ("top-right" | "top-left" | "bottom-right" | "bottom-left")[] | undefined;
|
|
199
|
+
isOneChar?: boolean | boolean[] | undefined;
|
|
200
|
+
isDot?: boolean | boolean[] | undefined;
|
|
201
|
+
noOutline?: boolean | boolean[] | undefined;
|
|
202
|
+
} & ({
|
|
203
|
+
class?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
204
|
+
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
205
|
+
badge?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
206
|
+
};
|
|
207
|
+
className?: never;
|
|
208
|
+
} | {
|
|
209
|
+
class?: never;
|
|
210
|
+
className?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
211
|
+
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
212
|
+
badge?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
213
|
+
};
|
|
214
|
+
}))[];
|
|
215
|
+
compoundSlots: ({
|
|
216
|
+
slots: ("base" | "badge")[];
|
|
217
|
+
} & ({
|
|
218
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | ("primary" | "secondary" | "success" | "warning" | "danger" | "default")[] | undefined;
|
|
219
|
+
isDot?: boolean | boolean[] | undefined;
|
|
220
|
+
isOneChar?: boolean | boolean[] | undefined;
|
|
221
|
+
noOutline?: boolean | boolean[] | undefined;
|
|
222
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | ("top-right" | "top-left" | "bottom-right" | "bottom-left")[] | undefined;
|
|
223
|
+
size?: "sm" | "md" | "lg" | ("sm" | "md" | "lg")[] | undefined;
|
|
224
|
+
} & ({
|
|
225
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
226
|
+
className?: never;
|
|
227
|
+
} | {
|
|
228
|
+
class?: never;
|
|
229
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
230
|
+
})))[];
|
|
231
|
+
variantKeys: ("color" | "size" | "placement" | "isOneChar" | "isDot" | "noOutline")[];
|
|
232
|
+
};
|
|
233
|
+
base: undefined;
|
|
234
|
+
slots: {
|
|
235
|
+
/** Badge content positioned over the wrapped element */
|
|
236
|
+
badge: string[];
|
|
237
|
+
/** Positioning container around the wrapped element */
|
|
238
|
+
base: string;
|
|
239
|
+
};
|
|
240
|
+
variants: {
|
|
241
|
+
color: {
|
|
242
|
+
default: {
|
|
243
|
+
badge: string;
|
|
244
|
+
};
|
|
245
|
+
primary: {
|
|
246
|
+
badge: string;
|
|
247
|
+
};
|
|
248
|
+
secondary: {
|
|
249
|
+
badge: string;
|
|
250
|
+
};
|
|
251
|
+
success: {
|
|
252
|
+
badge: string;
|
|
253
|
+
};
|
|
254
|
+
warning: {
|
|
255
|
+
badge: string;
|
|
256
|
+
};
|
|
257
|
+
danger: {
|
|
258
|
+
badge: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
isDot: {
|
|
262
|
+
true: {};
|
|
263
|
+
};
|
|
264
|
+
isOneChar: {
|
|
265
|
+
true: {};
|
|
266
|
+
};
|
|
267
|
+
noOutline: {
|
|
268
|
+
true: {
|
|
269
|
+
badge: string;
|
|
270
|
+
};
|
|
271
|
+
false: {
|
|
272
|
+
badge: string;
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
placement: {
|
|
276
|
+
'top-right': {
|
|
277
|
+
badge: string;
|
|
278
|
+
};
|
|
279
|
+
'top-left': {
|
|
280
|
+
badge: string;
|
|
281
|
+
};
|
|
282
|
+
'bottom-right': {
|
|
283
|
+
badge: string;
|
|
284
|
+
};
|
|
285
|
+
'bottom-left': {
|
|
286
|
+
badge: string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
size: {
|
|
290
|
+
sm: {
|
|
291
|
+
badge: string;
|
|
292
|
+
};
|
|
293
|
+
md: {
|
|
294
|
+
badge: string;
|
|
295
|
+
};
|
|
296
|
+
lg: {
|
|
297
|
+
badge: string;
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
defaultVariants: {
|
|
302
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | undefined;
|
|
303
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
304
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | undefined;
|
|
305
|
+
isOneChar?: boolean | undefined;
|
|
306
|
+
isDot?: boolean | undefined;
|
|
307
|
+
noOutline?: boolean | undefined;
|
|
308
|
+
};
|
|
309
|
+
compoundVariants: ({
|
|
310
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | ("primary" | "secondary" | "success" | "warning" | "danger" | "default")[] | undefined;
|
|
311
|
+
size?: "sm" | "md" | "lg" | ("sm" | "md" | "lg")[] | undefined;
|
|
312
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | ("top-right" | "top-left" | "bottom-right" | "bottom-left")[] | undefined;
|
|
313
|
+
isOneChar?: boolean | boolean[] | undefined;
|
|
314
|
+
isDot?: boolean | boolean[] | undefined;
|
|
315
|
+
noOutline?: boolean | boolean[] | undefined;
|
|
316
|
+
} & ({
|
|
317
|
+
class?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
318
|
+
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
319
|
+
badge?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
320
|
+
};
|
|
321
|
+
className?: never;
|
|
322
|
+
} | {
|
|
323
|
+
class?: never;
|
|
324
|
+
className?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
|
|
325
|
+
base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
326
|
+
badge?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
327
|
+
};
|
|
328
|
+
}))[];
|
|
329
|
+
compoundSlots: ({
|
|
330
|
+
slots: ("base" | "badge")[];
|
|
331
|
+
} & ({
|
|
332
|
+
color?: "primary" | "secondary" | "success" | "warning" | "danger" | "default" | ("primary" | "secondary" | "success" | "warning" | "danger" | "default")[] | undefined;
|
|
333
|
+
isDot?: boolean | boolean[] | undefined;
|
|
334
|
+
isOneChar?: boolean | boolean[] | undefined;
|
|
335
|
+
noOutline?: boolean | boolean[] | undefined;
|
|
336
|
+
placement?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | ("top-right" | "top-left" | "bottom-right" | "bottom-left")[] | undefined;
|
|
337
|
+
size?: "sm" | "md" | "lg" | ("sm" | "md" | "lg")[] | undefined;
|
|
338
|
+
} & ({
|
|
339
|
+
class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
340
|
+
className?: never;
|
|
341
|
+
} | {
|
|
342
|
+
class?: never;
|
|
343
|
+
className?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
|
|
344
|
+
})))[];
|
|
345
|
+
variantKeys: ("color" | "size" | "placement" | "isOneChar" | "isDot" | "noOutline")[];
|
|
346
|
+
};
|
|
347
|
+
export type VariantProps = TVProps<typeof badgeVariants>;
|
|
348
|
+
export type ClassName = TVClassName<typeof badgeVariants>;
|
|
349
|
+
export { badgeVariants as default };
|
|
350
|
+
//# sourceMappingURL=badgeVariants.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badgeVariants.d.mts","names":[],"sources":["../../src/Badge/badgeVariants.ts"],"mappings":";;qBAKa,iBAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkFd,eAAe,eAAe;YAE9B,YAAY,mBAAmB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { tv } from "@fuf-stack/pixel-utils";
|
|
2
|
+
// src/Badge/badgeVariants.ts
|
|
3
|
+
/** Corner badge surface, outline and content sizing */
|
|
4
|
+
const badgeVariants = tv({
|
|
5
|
+
slots: {
|
|
6
|
+
/** Badge content positioned over the wrapped element */
|
|
7
|
+
badge: ["font-regular absolute z-10 box-border flex origin-center select-none flex-wrap place-content-center items-center whitespace-nowrap rounded-full subpixel-antialiased", "scale-100 opacity-100 !duration-300 !ease-soft-spring transition-transform-opacity motion-reduce:transition-none"],
|
|
8
|
+
/** Positioning container around the wrapped element */
|
|
9
|
+
base: "relative inline-flex shrink-0"
|
|
10
|
+
},
|
|
11
|
+
variants: {
|
|
12
|
+
color: {
|
|
13
|
+
default: { badge: "bg-default text-default-foreground" },
|
|
14
|
+
primary: { badge: "bg-primary text-primary-foreground" },
|
|
15
|
+
secondary: { badge: "bg-secondary text-secondary-foreground" },
|
|
16
|
+
success: { badge: "bg-success text-success-foreground" },
|
|
17
|
+
warning: { badge: "bg-warning text-warning-foreground" },
|
|
18
|
+
danger: { badge: "bg-danger text-danger-foreground" }
|
|
19
|
+
},
|
|
20
|
+
isDot: { true: {} },
|
|
21
|
+
isOneChar: { true: {} },
|
|
22
|
+
noOutline: {
|
|
23
|
+
true: { badge: "border-0 border-transparent" },
|
|
24
|
+
false: { badge: "border-2 border-background" }
|
|
25
|
+
},
|
|
26
|
+
placement: {
|
|
27
|
+
"top-right": { badge: "right-[5%] top-[5%] -translate-y-1/2 translate-x-1/2" },
|
|
28
|
+
"top-left": { badge: "left-[5%] top-[5%] -translate-x-1/2 -translate-y-1/2" },
|
|
29
|
+
"bottom-right": { badge: "bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2" },
|
|
30
|
+
"bottom-left": { badge: "bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2" }
|
|
31
|
+
},
|
|
32
|
+
size: {
|
|
33
|
+
sm: { badge: "px-1 text-tiny" },
|
|
34
|
+
md: { badge: "px-1 text-small" },
|
|
35
|
+
lg: { badge: "px-1 text-small" }
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
compoundVariants: [
|
|
39
|
+
{
|
|
40
|
+
isOneChar: true,
|
|
41
|
+
class: { badge: "px-0" }
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
isOneChar: true,
|
|
45
|
+
size: "sm",
|
|
46
|
+
class: { badge: "h-4 min-h-4 w-4 min-w-4" }
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
isOneChar: true,
|
|
50
|
+
size: "md",
|
|
51
|
+
class: { badge: "h-5 min-h-5 w-5 min-w-5" }
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
isOneChar: true,
|
|
55
|
+
size: "lg",
|
|
56
|
+
class: { badge: "h-6 min-h-6 w-6 min-w-6" }
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
isDot: true,
|
|
60
|
+
size: "sm",
|
|
61
|
+
class: { badge: "h-3 min-h-3 w-3 min-w-3" }
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
isDot: true,
|
|
65
|
+
size: "md",
|
|
66
|
+
class: { badge: "h-3.5 min-h-3.5 w-3.5 min-w-3.5" }
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
isDot: true,
|
|
70
|
+
size: "lg",
|
|
71
|
+
class: { badge: "h-4 min-h-4 w-4 min-w-4" }
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
defaultVariants: {
|
|
75
|
+
color: "default",
|
|
76
|
+
noOutline: false,
|
|
77
|
+
placement: "top-right",
|
|
78
|
+
size: "md"
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export { badgeVariants, badgeVariants as default };
|
|
82
|
+
|
|
83
|
+
//# sourceMappingURL=badgeVariants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badgeVariants.mjs","names":[],"sources":["../../src/Badge/badgeVariants.ts"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\n\nimport { tv } from '@fuf-stack/pixel-utils';\n\n/** Corner badge surface, outline and content sizing */\nexport const badgeVariants = tv({\n slots: {\n /** Badge content positioned over the wrapped element */\n badge: [\n // centered content inside the floating pill\n 'font-regular absolute z-10 box-border flex origin-center select-none flex-wrap place-content-center items-center whitespace-nowrap rounded-full subpixel-antialiased',\n // retain appearance changes without animating reduced-motion users\n 'scale-100 opacity-100 !duration-300 !ease-soft-spring transition-transform-opacity motion-reduce:transition-none',\n ],\n /** Positioning container around the wrapped element */\n base: 'relative inline-flex shrink-0',\n },\n variants: {\n color: {\n default: { badge: 'bg-default text-default-foreground' },\n primary: { badge: 'bg-primary text-primary-foreground' },\n secondary: { badge: 'bg-secondary text-secondary-foreground' },\n success: { badge: 'bg-success text-success-foreground' },\n warning: { badge: 'bg-warning text-warning-foreground' },\n danger: { badge: 'bg-danger text-danger-foreground' },\n },\n isDot: { true: {} },\n isOneChar: { true: {} },\n noOutline: {\n true: { badge: 'border-0 border-transparent' },\n false: { badge: 'border-2 border-background' },\n },\n placement: {\n 'top-right': {\n badge: 'right-[5%] top-[5%] -translate-y-1/2 translate-x-1/2',\n },\n 'top-left': {\n badge: 'left-[5%] top-[5%] -translate-x-1/2 -translate-y-1/2',\n },\n 'bottom-right': {\n badge: 'bottom-[5%] right-[5%] translate-x-1/2 translate-y-1/2',\n },\n 'bottom-left': {\n badge: 'bottom-[5%] left-[5%] -translate-x-1/2 translate-y-1/2',\n },\n },\n size: {\n sm: { badge: 'px-1 text-tiny' },\n md: { badge: 'px-1 text-small' },\n lg: { badge: 'px-1 text-small' },\n },\n },\n compoundVariants: [\n { isOneChar: true, class: { badge: 'px-0' } },\n // fixed diameters for a single character\n {\n isOneChar: true,\n size: 'sm',\n class: { badge: 'h-4 min-h-4 w-4 min-w-4' },\n },\n {\n isOneChar: true,\n size: 'md',\n class: { badge: 'h-5 min-h-5 w-5 min-w-5' },\n },\n {\n isOneChar: true,\n size: 'lg',\n class: { badge: 'h-6 min-h-6 w-6 min-w-6' },\n },\n // empty strings retain the compact status dot\n { isDot: true, size: 'sm', class: { badge: 'h-3 min-h-3 w-3 min-w-3' } },\n {\n isDot: true,\n size: 'md',\n class: { badge: 'h-3.5 min-h-3.5 w-3.5 min-w-3.5' },\n },\n { isDot: true, size: 'lg', class: { badge: 'h-4 min-h-4 w-4 min-w-4' } },\n ],\n defaultVariants: {\n color: 'default',\n noOutline: false,\n placement: 'top-right',\n size: 'md',\n },\n});\n\nexport type VariantProps = TVProps<typeof badgeVariants>;\n\nexport type ClassName = TVClassName<typeof badgeVariants>;\n\nexport default badgeVariants;\n"],"mappings":";;;AAKA,MAAa,gBAAgB,GAAG;CAC9B,OAAO;;EAEL,OAAO,CAEL,wKAEA,kHACF;;EAEA,MAAM;CACR;CACA,UAAU;EACR,OAAO;GACL,SAAS,EAAE,OAAO,qCAAqC;GACvD,SAAS,EAAE,OAAO,qCAAqC;GACvD,WAAW,EAAE,OAAO,yCAAyC;GAC7D,SAAS,EAAE,OAAO,qCAAqC;GACvD,SAAS,EAAE,OAAO,qCAAqC;GACvD,QAAQ,EAAE,OAAO,mCAAmC;EACtD;EACA,OAAO,EAAE,MAAM,CAAC,EAAE;EAClB,WAAW,EAAE,MAAM,CAAC,EAAE;EACtB,WAAW;GACT,MAAM,EAAE,OAAO,8BAA8B;GAC7C,OAAO,EAAE,OAAO,6BAA6B;EAC/C;EACA,WAAW;GACT,aAAa,EACX,OAAO,uDACT;GACA,YAAY,EACV,OAAO,uDACT;GACA,gBAAgB,EACd,OAAO,yDACT;GACA,eAAe,EACb,OAAO,yDACT;EACF;EACA,MAAM;GACJ,IAAI,EAAE,OAAO,iBAAiB;GAC9B,IAAI,EAAE,OAAO,kBAAkB;GAC/B,IAAI,EAAE,OAAO,kBAAkB;EACjC;CACF;CACA,kBAAkB;EAChB;GAAE,WAAW;GAAM,OAAO,EAAE,OAAO,OAAO;EAAE;EAE5C;GACE,WAAW;GACX,MAAM;GACN,OAAO,EAAE,OAAO,0BAA0B;EAC5C;EACA;GACE,WAAW;GACX,MAAM;GACN,OAAO,EAAE,OAAO,0BAA0B;EAC5C;EACA;GACE,WAAW;GACX,MAAM;GACN,OAAO,EAAE,OAAO,0BAA0B;EAC5C;EAEA;GAAE,OAAO;GAAM,MAAM;GAAM,OAAO,EAAE,OAAO,0BAA0B;EAAE;EACvE;GACE,OAAO;GACP,MAAM;GACN,OAAO,EAAE,OAAO,kCAAkC;EACpD;EACA;GAAE,OAAO;GAAM,MAAM;GAAM,OAAO,EAAE,OAAO,0BAA0B;EAAE;CACzE;CACA,iBAAiB;EACf,OAAO;EACP,WAAW;EACX,WAAW;EACX,MAAM;CACR;AACF,CAAC"}
|
package/dist/Badge/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import Badge, { BadgeProps } from "./Badge.mjs";
|
|
2
|
+
import { badgeVariants } from "./badgeVariants.mjs";
|
|
3
|
+
export { Badge, Badge as default, type BadgeProps, badgeVariants };
|
package/dist/Badge/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Badge from "./Badge.mjs";
|
|
2
|
+
import { badgeVariants } from "./badgeVariants.mjs";
|
|
2
3
|
// src/Badge/index.ts
|
|
3
|
-
var Badge_default =
|
|
4
|
-
export {
|
|
4
|
+
var Badge_default = Badge;
|
|
5
|
+
export { Badge, badgeVariants, Badge_default as default };
|
|
5
6
|
|
|
6
7
|
//# sourceMappingURL=index.mjs.map
|
package/dist/Badge/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/Badge/index.ts"],"sourcesContent":["import Badge from './Badge';\n\nexport { badgeVariants } from './badgeVariants';\n\nexport type { BadgeProps } from './Badge';\n\nexport { Badge };\n\nexport default Badge;\n"],"mappings":";;;AAQA,IAAA,gBAAe"}
|