@fuf-stack/pixels 1.13.0 → 1.13.2
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 +18 -18
- package/dist/Accordion/Accordion.mjs.map +1 -1
- package/dist/Alert/Alert.d.mts +46 -46
- package/dist/Alert/Alert.mjs.map +1 -1
- package/dist/Avatar/Avatar.d.mts +16 -16
- package/dist/AvatarGroup/AvatarGroup.mjs.map +1 -1
- package/dist/Breadcrumb/Breadcrumb.d.mts +22 -22
- package/dist/Breadcrumb/Breadcrumb.mjs.map +1 -1
- package/dist/Button/Button.d.mts +3 -0
- package/dist/Button/Button.d.mts.map +1 -1
- package/dist/Button/Button.mjs +2 -1
- package/dist/Button/Button.mjs.map +1 -1
- package/dist/Button/subcomponents/LoadingSpinner.mjs.map +1 -1
- package/dist/Card/Card.mjs.map +1 -1
- package/dist/Drawer/Drawer.d.mts +16 -16
- package/dist/Drawer/Drawer.mjs.map +1 -1
- package/dist/Json/Json.mjs +1 -1
- package/dist/Json/Json.mjs.map +1 -1
- package/dist/Json/subcomponents/CopiedRenderer.mjs +1 -1
- package/dist/Json/subcomponents/CopiedRenderer.mjs.map +1 -1
- package/dist/Json/subcomponents/ErrorRenderer.mjs.map +1 -1
- package/dist/Json/subcomponents/NullRenderer.mjs +1 -1
- package/dist/Json/subcomponents/NullRenderer.mjs.map +1 -1
- package/dist/Label/Label.d.mts +58 -58
- package/dist/Label/Label.mjs.map +1 -1
- package/dist/Menu/Menu.d.mts +10 -10
- package/dist/Menu/Menu.mjs.map +1 -1
- package/dist/Menu/VerticalDotsIcon.mjs.map +1 -1
- package/dist/Modal/Modal.d.mts +39 -39
- package/dist/Modal/Modal.mjs.map +1 -1
- package/dist/Modal/ModalHost.mjs.map +1 -1
- package/dist/Modal/modalStore.d.mts.map +1 -1
- package/dist/Popover/Popover.d.mts +22 -22
- package/dist/Popover/Popover.mjs.map +1 -1
- package/dist/Progress/Progress.d.mts +36 -36
- package/dist/ProgressCircular/ProgressCircular.d.mts +70 -70
- package/dist/SearchInput/SearchInput.d.mts +10 -10
- package/dist/Table/Table.d.mts +50 -50
- package/dist/Table/Table.mjs.map +1 -1
- package/dist/Tabs/Tabs.mjs.map +1 -1
- package/dist/Toast/toast.d.mts.map +1 -1
- package/dist/Toast/toast.mjs.map +1 -1
- package/dist/Tooltip/Tooltip.d.mts +49 -49
- package/dist/Tooltip/Tooltip.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/Container.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/Container.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/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.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/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.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/Copied.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/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.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/NestedClose.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/NestedClose.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/Value.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/Value.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/comps/useIdCompat.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/index.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/Copied.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/Copied.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/CountInfo.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/CountInfo.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/Ellipsis.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/Ellipsis.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/KeyName.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/KeyName.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/Row.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/section/Row.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/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.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/store/Expands.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/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.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/store/Section.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/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.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/store/ShowTools.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/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.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/store/Symbols.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/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.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/store/Types.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/store.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/store.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/Arrow.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/Arrow.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/BraceLeft.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/BraceLeft.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/BraceRight.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/BraceRight.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/BracketsLeft.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/BracketsLeft.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/BracketsRight.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/BracketsRight.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/Colon.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/Colon.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/Quote.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/Quote.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/ValueQuote.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/ValueQuote.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/index.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/symbol/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Bigint.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Bigint.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Date.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Date.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/False.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/False.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Float.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Float.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Int.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Int.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Map.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Map.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Nan.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Nan.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Null.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Null.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Set.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Set.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/String.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/String.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/True.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/True.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Undefined.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Undefined.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Url.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/Url.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/index.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/types/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/utils/useHighlight.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/utils/useHighlight.mjs.map +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/utils/useRender.mjs +1 -1
- package/dist/node_modules/.pnpm/{@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.7_react@19.2.7__react@19.2.7 → @uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8}/node_modules/@uiw/react-json-view/esm/utils/useRender.mjs.map +1 -1
- package/dist/utils/createWithSuspense/createWithSuspense.d.mts.map +1 -1
- package/dist/utils/createWithSuspense/createWithSuspense.mjs.map +1 -1
- package/package.json +9 -9
package/dist/Table/Table.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.mjs","names":["Table","HeroTable"],"sources":["../../src/Table/Table.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport {\n getKeyValue,\n Table as HeroTable,\n TableBody,\n TableCell,\n TableColumn,\n TableHeader,\n TableRow,\n} from '@heroui/table';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// table styling variants\nexport const tableVariants = tv({\n slots: {\n base: '',\n wrapper: '',\n table: '',\n thead: '',\n tbody: '',\n tr: '',\n th: 'bg-content2',\n td: '',\n tfoot: '',\n sortIcon: '',\n emptyWrapper: '',\n loadingWrapper: '',\n },\n variants: {\n separation: {\n divider: {\n tr: 'divide-x rounded-lg border-b data-[last=true]:border-none [&:first-child:not([data-first=\"true\"])]:border-none',\n },\n 'divider-x': {\n tr: 'divide-x',\n },\n 'divider-y': {\n tr: 'rounded-lg border-b data-[last=true]:border-none [&:first-child:not([data-first=\"true\"])]:border-none',\n },\n 'striped-divider-x': {\n tr: 'divide-x',\n th: 'border-divider',\n td: 'border-divider first:rounded-s-lg last:rounded-e-lg group-data-[odd=true]:bg-content2',\n },\n striped: {\n tr: '',\n td: 'first:rounded-s-lg last:rounded-e-lg group-data-[odd=true]:bg-content2',\n },\n none: {},\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof tableVariants>;\ntype ClassName = TVClassName<typeof tableVariants>;\n\nexport interface TableColumnProps {\n key: string;\n label: ReactNode;\n}\n\nexport interface TableRowProps {\n key: string | number;\n [key: string | number]: ReactNode;\n}\n\nexport interface TableProps extends VariantProps {\n /** Aria label for the Table. */\n ariaLabel?: string;\n /** Component to display at the bottom of the Table. */\n bottomContent?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Objects with table data */\n columns: TableColumnProps[];\n /** Component to display if there are no rows! */\n emptyContent?: ReactNode;\n /** Determine if the Table should have a card like wrapper. */\n hasWrapper?: boolean;\n /** remove header */\n hideHeader?: boolean;\n /** Tells the Table to show the loading component. */\n loading?: boolean;\n /** Loading animation component. */\n loadingContent?: ReactNode;\n /** The maximum height of the table in pixels. Required when using virtualization. */\n maxTableHeight?: number;\n /** The fixed height of each row item in pixels. Required when using virtualization. */\n rowHeight?: number;\n /** Items displayed as rows in the Table. Should have key-value pair for each column. */\n rows?: TableRowProps[];\n /** Separation style for the rows & columns. */\n separation?:\n | 'none'\n | 'striped'\n | 'striped-divider-x'\n | 'divider-x'\n | 'divider-y'\n | 'divider';\n /** Keeps the header of the Table in view while scrolling a height limited Table. */\n stickyHeader?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Virtualize allows efficient rendering of large lists by only rendering items that are visible in the viewport. */\n virtualized?: boolean;\n}\n\n/**\n * Table component based on [HeroUI Table](https://www.heroui.com//docs/components/table)\n */\nconst Table = ({\n ariaLabel = undefined,\n bottomContent = undefined,\n className = undefined,\n columns,\n emptyContent = 'No rows to display.',\n hasWrapper = false,\n hideHeader = false,\n loading = false,\n loadingContent = undefined,\n maxTableHeight = undefined,\n rowHeight = undefined,\n rows = [],\n separation = 'none',\n stickyHeader = false,\n testId = undefined,\n virtualized = false,\n}: TableProps) => {\n const variants = tableVariants({ separation });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroTable\n aria-label={ariaLabel}\n bottomContent={bottomContent}\n classNames={classNames}\n data-testid={testId ? slugify(testId) : null}\n hideHeader={hideHeader}\n isHeaderSticky={stickyHeader}\n isStriped={separation === 'striped' || separation === 'striped-divider-x'}\n isVirtualized={virtualized}\n maxTableHeight={maxTableHeight}\n removeWrapper={virtualized ? false : !hasWrapper} // always show wrapper if virtualized\n rowHeight={rowHeight}\n >\n <TableHeader columns={columns}>\n {(column: TableColumnProps) => {\n return <TableColumn key={column.key}>{column.label}</TableColumn>;\n }}\n </TableHeader>\n <TableBody\n emptyContent={emptyContent}\n isLoading={loading}\n items={rows}\n loadingContent={loadingContent ?? '...'} // TODO: use future spinner/loading component\n >\n {(item: TableRowProps) => {\n return (\n <TableRow\n key={item.key}\n // data-testid={`${slugify(testId || 'table')}_item_${slugify(JSON.stringify(item.testId || item.key))}`}\n >\n {(columnKey) => {\n return <TableCell>{getKeyValue(item, columnKey)}</TableCell>;\n }}\n </TableRow>\n );\n }}\n </TableBody>\n </HeroTable>\n );\n};\n\nexport default Table;\n"],"mappings":";;;;AAgBA,MAAa,gBAAgB,GAAG;CAC9B,OAAO;EACL,MAAM;EACN,SAAS;EACT,OAAO;EACP,OAAO;EACP,OAAO;EACP,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,OAAO;EACP,UAAU;EACV,cAAc;EACd,gBAAgB;CAClB;CACA,UAAU,EACR,YAAY;EACV,SAAS,EACP,IAAI,mHACN;EACA,aAAa,EACX,IAAI,WACN;EACA,aAAa,EACX,IAAI,0GACN;EACA,qBAAqB;GACnB,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;EACA,SAAS;GACP,IAAI;GACJ,IAAI;EACN;EACA,MAAM,CAAC;CACT,EACF;AACF,CAAC;;;;AA2DD,MAAMA,WAAS,EACb,YAAY,KAAA,GACZ,gBAAgB,KAAA,GAChB,YAAY,KAAA,GACZ,SACA,eAAe,uBACf,aAAa,OACb,aAAa,OACb,UAAU,OACV,iBAAiB,KAAA,GACjB,iBAAiB,KAAA,GACjB,YAAY,KAAA,GACZ,OAAO,CAAC,GACR,aAAa,QACb,eAAe,OACf,SAAS,KAAA,GACT,cAAc,YACE;CAIhB,OACE,qBAACC,OAAD;EACE,cAAY;EACG;EACf,YANe,qBADF,cAAc,EAAE,WAAW,CACG,GAAG,WAAW,MAMpC;EACrB,eAAa,SAAS,QAAQ,MAAM,IAAI;EAC5B;EACZ,gBAAgB;EAChB,WAAW,eAAe,aAAa,eAAe;EACtD,eAAe;EACC;EAChB,eAAe,cAAc,QAAQ,CAAC;EAC3B;
|
|
1
|
+
{"version":3,"file":"Table.mjs","names":["Table","HeroTable"],"sources":["../../src/Table/Table.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport {\n getKeyValue,\n Table as HeroTable,\n TableBody,\n TableCell,\n TableColumn,\n TableHeader,\n TableRow,\n} from '@heroui/table';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\n// table styling variants\nexport const tableVariants = tv({\n slots: {\n base: '',\n wrapper: '',\n table: '',\n thead: '',\n tbody: '',\n tr: '',\n th: 'bg-content2',\n td: '',\n tfoot: '',\n sortIcon: '',\n emptyWrapper: '',\n loadingWrapper: '',\n },\n variants: {\n separation: {\n divider: {\n tr: 'divide-x rounded-lg border-b data-[last=true]:border-none [&:first-child:not([data-first=\"true\"])]:border-none',\n },\n 'divider-x': {\n tr: 'divide-x',\n },\n 'divider-y': {\n tr: 'rounded-lg border-b data-[last=true]:border-none [&:first-child:not([data-first=\"true\"])]:border-none',\n },\n 'striped-divider-x': {\n tr: 'divide-x',\n th: 'border-divider',\n td: 'border-divider first:rounded-s-lg last:rounded-e-lg group-data-[odd=true]:bg-content2',\n },\n striped: {\n tr: '',\n td: 'first:rounded-s-lg last:rounded-e-lg group-data-[odd=true]:bg-content2',\n },\n none: {},\n },\n },\n});\n\nexport type VariantProps = TVProps<typeof tableVariants>;\ntype ClassName = TVClassName<typeof tableVariants>;\n\nexport interface TableColumnProps {\n key: string;\n label: ReactNode;\n}\n\nexport interface TableRowProps {\n key: string | number;\n [key: string | number]: ReactNode;\n}\n\nexport interface TableProps extends VariantProps {\n /** Aria label for the Table. */\n ariaLabel?: string;\n /** Component to display at the bottom of the Table. */\n bottomContent?: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** Objects with table data */\n columns: TableColumnProps[];\n /** Component to display if there are no rows! */\n emptyContent?: ReactNode;\n /** Determine if the Table should have a card like wrapper. */\n hasWrapper?: boolean;\n /** remove header */\n hideHeader?: boolean;\n /** Tells the Table to show the loading component. */\n loading?: boolean;\n /** Loading animation component. */\n loadingContent?: ReactNode;\n /** The maximum height of the table in pixels. Required when using virtualization. */\n maxTableHeight?: number;\n /** The fixed height of each row item in pixels. Required when using virtualization. */\n rowHeight?: number;\n /** Items displayed as rows in the Table. Should have key-value pair for each column. */\n rows?: TableRowProps[];\n /** Separation style for the rows & columns. */\n separation?:\n | 'none'\n | 'striped'\n | 'striped-divider-x'\n | 'divider-x'\n | 'divider-y'\n | 'divider';\n /** Keeps the header of the Table in view while scrolling a height limited Table. */\n stickyHeader?: boolean;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Virtualize allows efficient rendering of large lists by only rendering items that are visible in the viewport. */\n virtualized?: boolean;\n}\n\n/**\n * Table component based on [HeroUI Table](https://www.heroui.com//docs/components/table)\n */\nconst Table = ({\n ariaLabel = undefined,\n bottomContent = undefined,\n className = undefined,\n columns,\n emptyContent = 'No rows to display.',\n hasWrapper = false,\n hideHeader = false,\n loading = false,\n loadingContent = undefined,\n maxTableHeight = undefined,\n rowHeight = undefined,\n rows = [],\n separation = 'none',\n stickyHeader = false,\n testId = undefined,\n virtualized = false,\n}: TableProps) => {\n const variants = tableVariants({ separation });\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroTable\n aria-label={ariaLabel}\n bottomContent={bottomContent}\n classNames={classNames}\n data-testid={testId ? slugify(testId) : null}\n hideHeader={hideHeader}\n isHeaderSticky={stickyHeader}\n isStriped={separation === 'striped' || separation === 'striped-divider-x'}\n isVirtualized={virtualized}\n maxTableHeight={maxTableHeight}\n removeWrapper={virtualized ? false : !hasWrapper} // always show wrapper if virtualized\n rowHeight={rowHeight}\n >\n <TableHeader columns={columns}>\n {(column: TableColumnProps) => {\n return <TableColumn key={column.key}>{column.label}</TableColumn>;\n }}\n </TableHeader>\n <TableBody\n emptyContent={emptyContent}\n isLoading={loading}\n items={rows}\n loadingContent={loadingContent ?? '...'} // TODO: use future spinner/loading component\n >\n {(item: TableRowProps) => {\n return (\n <TableRow\n key={item.key}\n // data-testid={`${slugify(testId || 'table')}_item_${slugify(JSON.stringify(item.testId || item.key))}`}\n >\n {(columnKey) => {\n return <TableCell>{getKeyValue(item, columnKey)}</TableCell>;\n }}\n </TableRow>\n );\n }}\n </TableBody>\n </HeroTable>\n );\n};\n\nexport default Table;\n"],"mappings":";;;;AAgBA,MAAa,gBAAgB,GAAG;CAC9B,OAAO;EACL,MAAM;EACN,SAAS;EACT,OAAO;EACP,OAAO;EACP,OAAO;EACP,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,OAAO;EACP,UAAU;EACV,cAAc;EACd,gBAAgB;CAClB;CACA,UAAU,EACR,YAAY;EACV,SAAS,EACP,IAAI,mHACN;EACA,aAAa,EACX,IAAI,WACN;EACA,aAAa,EACX,IAAI,0GACN;EACA,qBAAqB;GACnB,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;EACA,SAAS;GACP,IAAI;GACJ,IAAI;EACN;EACA,MAAM,CAAC;CACT,EACF;AACF,CAAC;;;;AA2DD,MAAMA,WAAS,EACb,YAAY,KAAA,GACZ,gBAAgB,KAAA,GAChB,YAAY,KAAA,GACZ,SACA,eAAe,uBACf,aAAa,OACb,aAAa,OACb,UAAU,OACV,iBAAiB,KAAA,GACjB,iBAAiB,KAAA,GACjB,YAAY,KAAA,GACZ,OAAO,CAAC,GACR,aAAa,QACb,eAAe,OACf,SAAS,KAAA,GACT,cAAc,YACE;CAIhB,OACE,qBAACC,OAAD;EACE,cAAY;EACG;EACf,YANe,qBADF,cAAc,EAAE,WAAW,CACG,GAAG,WAAW,MAMpC;EACrB,eAAa,SAAS,QAAQ,MAAM,IAAI;EAC5B;EACZ,gBAAgB;EAChB,WAAW,eAAe,aAAa,eAAe;EACtD,eAAe;EACC;EAChB,eAAe,cAAc,QAAQ,CAAC;EAC3B;EAXb,UAAA,CAaE,oBAAC,aAAD;GAAsB;GAClB,WAAA,WAA6B;IAC7B,OAAO,oBAAC,aAAD,EAAA,UAA+B,OAAO,MAAmB,GAAvC,OAAO,GAAgC;GAClE;EACW,CAAA,GACb,oBAAC,WAAD;GACgB;GACd,WAAW;GACX,OAAO;GACP,gBAAgB,kBAAkB;GAEhC,WAAA,SAAwB;IACxB,OACE,oBAAC,UAAD,EAAA,WAII,cAAc;KACd,OAAO,oBAAC,WAAD,EAAA,UAAY,YAAY,MAAM,SAAS,EAAa,CAAA;IAC7D,EACQ,GANH,KAAK,GAMF;GAEd;EACS,CAAA,CACF;;AAEf"}
|
package/dist/Tabs/Tabs.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.mjs","names":["Tabs","HeroTabs","HeroTab"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Tab as HeroTab, Tabs as HeroTabs } from '@heroui/tabs';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const tabsVariants = tv({\n slots: {\n base: '',\n cursor: '',\n panel: '',\n tab: 'data-[hover-unselected=true]:opacity-100',\n tabContent: 'text-foreground',\n tabList: '',\n tabWrapper: '',\n },\n});\n\ntype VariantProps = TVProps<typeof tabsVariants>;\ntype ClassName = TVClassName<typeof tabsVariants>;\n\ntype Key = string | number;\n\nexport interface TabProps {\n /** Content to be displayed in the tab panel */\n content: ReactNode;\n /** Disables the tab so it can not be selected */\n disabled?: boolean;\n /** Unique identifier for the tab */\n key: Key;\n /** Label content displayed in the tab button */\n label: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\nexport interface TabsProps extends VariantProps {\n /** Accessible label for the tabs component */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** Key of the tab that should be selected by default */\n defaultSelectedKey?: string | number;\n /** Whether to destroy inactive tab panel DOM nodes */\n destroyInactiveTabPanel?: boolean;\n /** Whether the animation should be disabled. */\n disableAnimation?: boolean;\n /** Array of keys for the tabs to disable */\n disabledKeys?: string[];\n /** Whether tabs should take up full container width */\n fullWidth?: boolean;\n /** Callback fired when tab selection changes */\n onSelectionChange?: (key: Key | null) => void;\n /** Position of the tab list relative to the content */\n placement?: 'top' | 'bottom' | 'start' | 'end' | undefined;\n /** Radius of the tabs */\n radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';\n /** Selected tab key (controlled) */\n selectedKey?: Key;\n /** Size of the tabs */\n size?: 'sm' | 'md' | 'lg';\n /** Array of tab configurations */\n tabs: TabProps[];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Style variant of the tabs */\n variant?: 'bordered' | 'light' | 'solid' | 'underlined';\n /** Whether to display tabs vertically */\n vertical?: boolean;\n}\n\n/**\n * Tabs component based on [HeroUI Tabs](https://www.heroui.com//docs/components/tabs)\n */\nconst Tabs = ({\n ariaLabel = undefined,\n className = undefined,\n defaultSelectedKey = undefined,\n destroyInactiveTabPanel = true,\n disableAnimation = false,\n disabledKeys = undefined,\n fullWidth = true,\n onSelectionChange = undefined,\n placement = undefined,\n radius = undefined,\n selectedKey = undefined,\n size = 'md',\n tabs,\n testId = 'tab',\n variant = 'solid',\n vertical = false,\n}: TabsProps) => {\n const variants = tabsVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroTabs\n aria-label={ariaLabel}\n classNames={classNames}\n defaultSelectedKey={defaultSelectedKey}\n destroyInactiveTabPanel={destroyInactiveTabPanel}\n disableAnimation={disableAnimation}\n disabledKeys={disabledKeys}\n fullWidth={fullWidth}\n isVertical={vertical}\n items={tabs || []}\n onSelectionChange={onSelectionChange}\n placement={placement}\n radius={radius}\n selectedKey={selectedKey}\n size={size}\n variant={variant}\n >\n {(item) => {\n return (\n <HeroTab\n key={item.key}\n data-testid={slugify(`${testId}_${item.testId ?? item.key}`)}\n isDisabled={!!item.disabled}\n title={item.label}\n >\n {item.content}\n </HeroTab>\n );\n }}\n </HeroTabs>\n );\n};\n\nexport default Tabs;\n"],"mappings":";;;;AAOA,MAAa,eAAe,GAAG,EAC7B,OAAO;CACL,MAAM;CACN,QAAQ;CACR,OAAO;CACP,KAAK;CACL,YAAY;CACZ,SAAS;CACT,YAAY;AACd,EACF,CAAC;;;;AA0DD,MAAMA,UAAQ,EACZ,YAAY,KAAA,GACZ,YAAY,KAAA,GACZ,qBAAqB,KAAA,GACrB,0BAA0B,MAC1B,mBAAmB,OACnB,eAAe,KAAA,GACf,YAAY,MACZ,oBAAoB,KAAA,GACpB,YAAY,KAAA,GACZ,SAAS,KAAA,GACT,cAAc,KAAA,GACd,OAAO,MACP,MACA,SAAS,OACT,UAAU,SACV,WAAW,YACI;CAIf,OACE,oBAACC,MAAD;EACE,cAAY;EACZ,YALe,qBADF,aAC8B,GAAG,WAAW,MAKpC;EACD;EACK;EACP;EACJ;EACH;EACX,YAAY;EACZ,OAAO,QAAQ,CAAC;EACG;EACR;EACH;EACK;EACP;EACG;
|
|
1
|
+
{"version":3,"file":"Tabs.mjs","names":["Tabs","HeroTabs","HeroTab"],"sources":["../../src/Tabs/Tabs.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { ReactNode } from 'react';\n\nimport { Tab as HeroTab, Tabs as HeroTabs } from '@heroui/tabs';\n\nimport { slugify, tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nexport const tabsVariants = tv({\n slots: {\n base: '',\n cursor: '',\n panel: '',\n tab: 'data-[hover-unselected=true]:opacity-100',\n tabContent: 'text-foreground',\n tabList: '',\n tabWrapper: '',\n },\n});\n\ntype VariantProps = TVProps<typeof tabsVariants>;\ntype ClassName = TVClassName<typeof tabsVariants>;\n\ntype Key = string | number;\n\nexport interface TabProps {\n /** Content to be displayed in the tab panel */\n content: ReactNode;\n /** Disables the tab so it can not be selected */\n disabled?: boolean;\n /** Unique identifier for the tab */\n key: Key;\n /** Label content displayed in the tab button */\n label: ReactNode;\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n}\n\nexport interface TabsProps extends VariantProps {\n /** Accessible label for the tabs component */\n ariaLabel?: string;\n /** CSS class name */\n className?: ClassName;\n /** Key of the tab that should be selected by default */\n defaultSelectedKey?: string | number;\n /** Whether to destroy inactive tab panel DOM nodes */\n destroyInactiveTabPanel?: boolean;\n /** Whether the animation should be disabled. */\n disableAnimation?: boolean;\n /** Array of keys for the tabs to disable */\n disabledKeys?: string[];\n /** Whether tabs should take up full container width */\n fullWidth?: boolean;\n /** Callback fired when tab selection changes */\n onSelectionChange?: (key: Key | null) => void;\n /** Position of the tab list relative to the content */\n placement?: 'top' | 'bottom' | 'start' | 'end' | undefined;\n /** Radius of the tabs */\n radius?: 'none' | 'sm' | 'md' | 'lg' | 'full';\n /** Selected tab key (controlled) */\n selectedKey?: Key;\n /** Size of the tabs */\n size?: 'sm' | 'md' | 'lg';\n /** Array of tab configurations */\n tabs: TabProps[];\n /** HTML data-testid attribute used in e2e tests */\n testId?: string;\n /** Style variant of the tabs */\n variant?: 'bordered' | 'light' | 'solid' | 'underlined';\n /** Whether to display tabs vertically */\n vertical?: boolean;\n}\n\n/**\n * Tabs component based on [HeroUI Tabs](https://www.heroui.com//docs/components/tabs)\n */\nconst Tabs = ({\n ariaLabel = undefined,\n className = undefined,\n defaultSelectedKey = undefined,\n destroyInactiveTabPanel = true,\n disableAnimation = false,\n disabledKeys = undefined,\n fullWidth = true,\n onSelectionChange = undefined,\n placement = undefined,\n radius = undefined,\n selectedKey = undefined,\n size = 'md',\n tabs,\n testId = 'tab',\n variant = 'solid',\n vertical = false,\n}: TabsProps) => {\n const variants = tabsVariants();\n const classNames = variantsToClassNames(variants, className, 'base');\n\n return (\n <HeroTabs\n aria-label={ariaLabel}\n classNames={classNames}\n defaultSelectedKey={defaultSelectedKey}\n destroyInactiveTabPanel={destroyInactiveTabPanel}\n disableAnimation={disableAnimation}\n disabledKeys={disabledKeys}\n fullWidth={fullWidth}\n isVertical={vertical}\n items={tabs || []}\n onSelectionChange={onSelectionChange}\n placement={placement}\n radius={radius}\n selectedKey={selectedKey}\n size={size}\n variant={variant}\n >\n {(item) => {\n return (\n <HeroTab\n key={item.key}\n data-testid={slugify(`${testId}_${item.testId ?? item.key}`)}\n isDisabled={!!item.disabled}\n title={item.label}\n >\n {item.content}\n </HeroTab>\n );\n }}\n </HeroTabs>\n );\n};\n\nexport default Tabs;\n"],"mappings":";;;;AAOA,MAAa,eAAe,GAAG,EAC7B,OAAO;CACL,MAAM;CACN,QAAQ;CACR,OAAO;CACP,KAAK;CACL,YAAY;CACZ,SAAS;CACT,YAAY;AACd,EACF,CAAC;;;;AA0DD,MAAMA,UAAQ,EACZ,YAAY,KAAA,GACZ,YAAY,KAAA,GACZ,qBAAqB,KAAA,GACrB,0BAA0B,MAC1B,mBAAmB,OACnB,eAAe,KAAA,GACf,YAAY,MACZ,oBAAoB,KAAA,GACpB,YAAY,KAAA,GACZ,SAAS,KAAA,GACT,cAAc,KAAA,GACd,OAAO,MACP,MACA,SAAS,OACT,UAAU,SACV,WAAW,YACI;CAIf,OACE,oBAACC,MAAD;EACE,cAAY;EACZ,YALe,qBADF,aAC8B,GAAG,WAAW,MAKpC;EACD;EACK;EACP;EACJ;EACH;EACX,YAAY;EACZ,OAAO,QAAQ,CAAC;EACG;EACR;EACH;EACK;EACP;EACG;EAEP,WAAA,SAAS;GACT,OACE,oBAACC,KAAD;IAEE,eAAa,QAAQ,GAAG,OAAO,GAAG,KAAK,UAAU,KAAK,KAAK;IAC3D,YAAY,CAAC,CAAC,KAAK;IACnB,OAAO,KAAK;IAEX,UAAA,KAAK;GACC,GANF,KAAK,GAMH;EAEb;CACQ,CAAA;AAEd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.mts","names":[],"sources":["../../src/Toast/toast.tsx"],"mappings":";;;;;KAUK,eAAe,YAAY;;UAGf;;EAEf;;EAEA;;EAEA,aAAa;;EAEb,OAAO;;EAEP,SAAS;;EAET,SAAS;;EAET,QAAQ;;;UAIO;;EAEf;;EAEA;;EAEA,aAAa;;EAEb,OAAO;;EAEP,cAAc;;EAEd,UAAU;;EAEV,WAAW;;EAEX,UAAU,OAAO,qBAAqB;;EAEtC;;;cAyDI;;;;;
|
|
1
|
+
{"version":3,"file":"toast.d.mts","names":[],"sources":["../../src/Toast/toast.tsx"],"mappings":";;;;;KAUK,eAAe,YAAY;;UAGf;;EAEf;;EAEA;;EAEA,aAAa;;EAEb,OAAO;;EAEP,SAAS;;EAET,SAAS;;EAET,QAAQ;;;UAIO;;EAEf;;EAEA;;EAEA,aAAa;;EAEb,OAAO;;EAEP,cAAc;;EAEd,UAAU;;EAEV,WAAW;;EAEX,UAAU,OAAO,qBAAqB;;EAEtC;;;cAyDI;;;;;EAKe,UAAA,SAAA,WAAS,UAAY;;;;;EAOxB,OAAA,SAAA,WAAS,UAAY;;;;;EAOrB,OAAA,SAAA,WAAS,UAAY;;;;;EAWlB,UAAA,SAAA,WAAS,UAAY;;;;;EAOvB,QAAA,SAAA,WAAS,UAAY;;EAQrB,QAAA"}
|
package/dist/Toast/toast.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.mjs","names":["sonnerToast","toast"],"sources":["../../src/Toast/toast.tsx"],"sourcesContent":["import type { ReactElement, ReactNode } from 'react';\nimport type { ExternalToast } from 'sonner';\nimport type { AlertProps } from '../Alert';\n\nimport { toast as sonnerToast } from 'sonner';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { Alert } from '../Alert';\n\ntype AlertVariant = NonNullable<AlertProps['variant']>;\n\n/** Props passed to a custom render function */\nexport interface ToastRenderProps {\n /** Whether the toast can be closed by the user */\n closable?: boolean;\n /** Function to close the toast */\n close: () => void;\n /** Content displayed at the end of the toast */\n endContent?: ReactNode;\n /** Icon displayed at the start of the toast */\n icon?: ReactNode;\n /** The toast message */\n message: ReactNode;\n /** The color/severity of the toast */\n variant: AlertVariant;\n /** Title displayed above the toast message */\n title?: ReactNode;\n}\n\n/** Options passed to each toast method */\nexport interface ToastOptions {\n /** Whether the toast can be closed by the user */\n closable?: boolean;\n /** Duration in milliseconds before the toast auto-closes */\n duration?: number;\n /** Content displayed at the end of the toast */\n endContent?: ReactNode;\n /** Icon displayed at the start of the toast */\n icon?: ReactNode;\n /** Callback fired when the toast auto-closes */\n onAutoClose?: ExternalToast['onAutoClose'];\n /** Callback fired when the toast is closed */\n onClose?: ExternalToast['onDismiss'];\n /** Position of the toast on the screen */\n position?: ExternalToast['position'];\n /** Custom render function to override the default Alert */\n render?: (props: ToastRenderProps) => ReactElement;\n /** Title of the toast message */\n title?: string;\n}\n\nconst showToast = (\n message: ReactNode,\n variant: AlertVariant,\n options?: ToastOptions,\n) => {\n // Map custom ToastOptions to Sonner's ExternalToast format:\n // - onClose is mapped to Sonner's onDismiss\n // - closable is handled separately (not a Sonner option)\n // - position defaults to 'top-center'\n const { onClose, closable, title, endContent, icon, render, ...rest } =\n options ?? {};\n const sonnerOptions: ExternalToast = {\n position: 'top-center' as const,\n onDismiss: onClose,\n ...rest,\n };\n return sonnerToast.custom((id) => {\n // Close function passed to custom render or Alert\n const close = () => {\n return sonnerToast.dismiss(id);\n };\n\n // Allow custom rendering via render prop\n if (render) {\n return render({\n closable,\n close,\n endContent,\n icon,\n message,\n title,\n variant,\n });\n }\n\n // Default: render Alert\n return (\n <Alert\n // default toast in light mode is white, in dark mode is background\n className={cn({ 'bg-white dark:bg-background': variant === 'default' })}\n closable={closable}\n endContent={endContent}\n icon={icon}\n onClose={closable ? close : undefined}\n title={title}\n variant={variant}\n >\n {message}\n </Alert>\n );\n }, sonnerOptions);\n};\n\n/** Toast object with convenience methods for different severity levels */\nconst toast = {\n /**\n * Show a default toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n default: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'default', options);\n },\n /**\n * Show an info toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n info: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'info', options);\n },\n /**\n * Show a warning toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n warn: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'warning', {\n duration: 60000,\n closable: true,\n ...options,\n });\n },\n /**\n * Show a success toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n success: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'success', options);\n },\n /**\n * Show an error toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n error: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'danger', {\n duration: 60000,\n closable: true,\n ...options,\n });\n },\n /** Close a toast by its id */\n close: (toastId: string | number) => {\n sonnerToast.dismiss(toastId);\n },\n};\n\nexport default toast;\n"],"mappings":";;;;;AAoDA,MAAM,aACJ,SACA,SACA,YACG;CAKH,MAAM,EAAE,SAAS,UAAU,OAAO,YAAY,MAAM,QAAQ,GAAG,SAC7D,WAAW,CAAC;CACd,MAAM,gBAA+B;EACnC,UAAU;EACV,WAAW;EACX,GAAG;CACL;CACA,OAAOA,MAAY,QAAQ,OAAO;EAEhC,MAAM,cAAc;GAClB,OAAOA,MAAY,QAAQ,EAAE;EAC/B;EAGA,IAAI,QACF,OAAO,OAAO;GACZ;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAAC;EAIH,OACE,oBAAC,OAAD;GAEE,WAAW,GAAG,EAAE,+BAA+B,YAAY,UAAU,CAAC;GAC5D;GACE;GACN;GACN,SAAS,WAAW,QAAQ,KAAA;GACrB;GACE;
|
|
1
|
+
{"version":3,"file":"toast.mjs","names":["sonnerToast","toast"],"sources":["../../src/Toast/toast.tsx"],"sourcesContent":["import type { ReactElement, ReactNode } from 'react';\nimport type { ExternalToast } from 'sonner';\nimport type { AlertProps } from '../Alert';\n\nimport { toast as sonnerToast } from 'sonner';\n\nimport { cn } from '@fuf-stack/pixel-utils';\n\nimport { Alert } from '../Alert';\n\ntype AlertVariant = NonNullable<AlertProps['variant']>;\n\n/** Props passed to a custom render function */\nexport interface ToastRenderProps {\n /** Whether the toast can be closed by the user */\n closable?: boolean;\n /** Function to close the toast */\n close: () => void;\n /** Content displayed at the end of the toast */\n endContent?: ReactNode;\n /** Icon displayed at the start of the toast */\n icon?: ReactNode;\n /** The toast message */\n message: ReactNode;\n /** The color/severity of the toast */\n variant: AlertVariant;\n /** Title displayed above the toast message */\n title?: ReactNode;\n}\n\n/** Options passed to each toast method */\nexport interface ToastOptions {\n /** Whether the toast can be closed by the user */\n closable?: boolean;\n /** Duration in milliseconds before the toast auto-closes */\n duration?: number;\n /** Content displayed at the end of the toast */\n endContent?: ReactNode;\n /** Icon displayed at the start of the toast */\n icon?: ReactNode;\n /** Callback fired when the toast auto-closes */\n onAutoClose?: ExternalToast['onAutoClose'];\n /** Callback fired when the toast is closed */\n onClose?: ExternalToast['onDismiss'];\n /** Position of the toast on the screen */\n position?: ExternalToast['position'];\n /** Custom render function to override the default Alert */\n render?: (props: ToastRenderProps) => ReactElement;\n /** Title of the toast message */\n title?: string;\n}\n\nconst showToast = (\n message: ReactNode,\n variant: AlertVariant,\n options?: ToastOptions,\n) => {\n // Map custom ToastOptions to Sonner's ExternalToast format:\n // - onClose is mapped to Sonner's onDismiss\n // - closable is handled separately (not a Sonner option)\n // - position defaults to 'top-center'\n const { onClose, closable, title, endContent, icon, render, ...rest } =\n options ?? {};\n const sonnerOptions: ExternalToast = {\n position: 'top-center' as const,\n onDismiss: onClose,\n ...rest,\n };\n return sonnerToast.custom((id) => {\n // Close function passed to custom render or Alert\n const close = () => {\n return sonnerToast.dismiss(id);\n };\n\n // Allow custom rendering via render prop\n if (render) {\n return render({\n closable,\n close,\n endContent,\n icon,\n message,\n title,\n variant,\n });\n }\n\n // Default: render Alert\n return (\n <Alert\n // default toast in light mode is white, in dark mode is background\n className={cn({ 'bg-white dark:bg-background': variant === 'default' })}\n closable={closable}\n endContent={endContent}\n icon={icon}\n onClose={closable ? close : undefined}\n title={title}\n variant={variant}\n >\n {message}\n </Alert>\n );\n }, sonnerOptions);\n};\n\n/** Toast object with convenience methods for different severity levels */\nconst toast = {\n /**\n * Show a default toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n default: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'default', options);\n },\n /**\n * Show an info toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n info: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'info', options);\n },\n /**\n * Show a warning toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n warn: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'warning', {\n duration: 60000,\n closable: true,\n ...options,\n });\n },\n /**\n * Show a success toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n success: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'success', options);\n },\n /**\n * Show an error toast.\n * @returns The toast id which can be passed to `toast.close()`\n */\n error: (message: ReactNode, options?: ToastOptions) => {\n return showToast(message, 'danger', {\n duration: 60000,\n closable: true,\n ...options,\n });\n },\n /** Close a toast by its id */\n close: (toastId: string | number) => {\n sonnerToast.dismiss(toastId);\n },\n};\n\nexport default toast;\n"],"mappings":";;;;;AAoDA,MAAM,aACJ,SACA,SACA,YACG;CAKH,MAAM,EAAE,SAAS,UAAU,OAAO,YAAY,MAAM,QAAQ,GAAG,SAC7D,WAAW,CAAC;CACd,MAAM,gBAA+B;EACnC,UAAU;EACV,WAAW;EACX,GAAG;CACL;CACA,OAAOA,MAAY,QAAQ,OAAO;EAEhC,MAAM,cAAc;GAClB,OAAOA,MAAY,QAAQ,EAAE;EAC/B;EAGA,IAAI,QACF,OAAO,OAAO;GACZ;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAAC;EAIH,OACE,oBAAC,OAAD;GAEE,WAAW,GAAG,EAAE,+BAA+B,YAAY,UAAU,CAAC;GAC5D;GACE;GACN;GACN,SAAS,WAAW,QAAQ,KAAA;GACrB;GACE;GAER,UAAA;EACI,CAAA;CAEX,GAAG,aAAa;AAClB;;AAGA,MAAMC,UAAQ;;;;;CAKZ,UAAU,SAAoB,YAA2B;EACvD,OAAO,UAAU,SAAS,WAAW,OAAO;CAC9C;;;;;CAKA,OAAO,SAAoB,YAA2B;EACpD,OAAO,UAAU,SAAS,QAAQ,OAAO;CAC3C;;;;;CAKA,OAAO,SAAoB,YAA2B;EACpD,OAAO,UAAU,SAAS,WAAW;GACnC,UAAU;GACV,UAAU;GACV,GAAG;EACL,CAAC;CACH;;;;;CAKA,UAAU,SAAoB,YAA2B;EACvD,OAAO,UAAU,SAAS,WAAW,OAAO;CAC9C;;;;;CAKA,QAAQ,SAAoB,YAA2B;EACrD,OAAO,UAAU,SAAS,UAAU;GAClC,UAAU;GACV,UAAU;GACV,GAAG;EACL,CAAC;CACH;;CAEA,QAAQ,YAA6B;EACnC,MAAY,QAAQ,OAAO;CAC7B;AACF"}
|