@nextui-org/react 1.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +100 -0
- package/avatar/package.json +6 -0
- package/backdrop/package.json +6 -0
- package/badge/package.json +6 -0
- package/button/package.json +6 -0
- package/card/package.json +6 -0
- package/checkbox/package.json +6 -0
- package/cjs/avatar/avatar-group.js +1 -0
- package/cjs/avatar/avatar-group.styles.js +1 -0
- package/cjs/avatar/avatar.js +1 -0
- package/cjs/avatar/avatar.styles.js +1 -0
- package/cjs/avatar/index.js +1 -0
- package/cjs/backdrop/backdrop.js +1 -0
- package/cjs/backdrop/backdrop.styles.js +1 -0
- package/cjs/backdrop/index.js +1 -0
- package/cjs/badge/badge.animations.js +1 -0
- package/cjs/badge/badge.js +1 -0
- package/cjs/badge/badge.styles.js +1 -0
- package/cjs/badge/index.js +1 -0
- package/cjs/button/button-group-context.js +1 -0
- package/cjs/button/button-group.js +1 -0
- package/cjs/button/button-group.styles.js +1 -0
- package/cjs/button/button-icon.js +1 -0
- package/cjs/button/button.js +1 -0
- package/cjs/button/button.styles.js +1 -0
- package/cjs/button/index.js +1 -0
- package/cjs/button/utils.js +1 -0
- package/cjs/card/card.js +1 -0
- package/cjs/card/card.styles.js +1 -0
- package/cjs/card/index.js +1 -0
- package/cjs/card/use-card.js +1 -0
- package/cjs/checkbox/checkbox-context.js +1 -0
- package/cjs/checkbox/checkbox-group.js +1 -0
- package/cjs/checkbox/checkbox.js +1 -0
- package/cjs/checkbox/checkbox.styles.js +1 -0
- package/cjs/checkbox/index.js +1 -0
- package/cjs/checkbox/use-checkbox-group.js +1 -0
- package/cjs/checkbox/use-checkbox.js +1 -0
- package/cjs/code/code.js +1 -0
- package/cjs/code/code.styles.js +1 -0
- package/cjs/code/index.js +1 -0
- package/cjs/col/col.js +1 -0
- package/cjs/col/col.styles.js +1 -0
- package/cjs/col/index.js +1 -0
- package/cjs/collapse/collapse-context.js +1 -0
- package/cjs/collapse/collapse-group.js +1 -0
- package/cjs/collapse/collapse-icon.js +1 -0
- package/cjs/collapse/collapse.js +1 -0
- package/cjs/collapse/collapse.styles.js +1 -0
- package/cjs/collapse/index.js +1 -0
- package/cjs/container/container.js +1 -0
- package/cjs/container/container.styles.js +1 -0
- package/cjs/container/index.js +1 -0
- package/cjs/css-baseline/css-baseline.js +1 -0
- package/cjs/css-baseline/index.js +1 -0
- package/cjs/divider/divider.js +1 -0
- package/cjs/divider/divider.styles.js +1 -0
- package/cjs/divider/index.js +1 -0
- package/cjs/dropdown/base/dropdown-item-base.js +1 -0
- package/cjs/dropdown/dropdown-button.js +1 -0
- package/cjs/dropdown/dropdown-context.js +1 -0
- package/cjs/dropdown/dropdown-icon.js +1 -0
- package/cjs/dropdown/dropdown-item.js +1 -0
- package/cjs/dropdown/dropdown-menu.js +1 -0
- package/cjs/dropdown/dropdown-section.js +1 -0
- package/cjs/dropdown/dropdown-trigger.js +1 -0
- package/cjs/dropdown/dropdown-types.js +1 -0
- package/cjs/dropdown/dropdown.js +1 -0
- package/cjs/dropdown/dropdown.styles.js +1 -0
- package/cjs/dropdown/index.js +1 -0
- package/cjs/dropdown/use-dropdown.js +1 -0
- package/cjs/grid/grid-container.js +1 -0
- package/cjs/grid/grid-item.js +1 -0
- package/cjs/grid/grid.js +1 -0
- package/cjs/grid/grid.styles.js +1 -0
- package/cjs/grid/index.js +1 -0
- package/cjs/image/image.js +1 -0
- package/cjs/image/image.skeleton.js +1 -0
- package/cjs/image/image.styles.js +1 -0
- package/cjs/image/index.js +1 -0
- package/cjs/index.js +1 -0
- package/cjs/input/index.js +1 -0
- package/cjs/input/input-password.js +1 -0
- package/cjs/input/input-props.js +1 -0
- package/cjs/input/input.js +1 -0
- package/cjs/input/input.styles.js +1 -0
- package/cjs/input/password-icon.js +1 -0
- package/cjs/link/icon.js +1 -0
- package/cjs/link/index.js +1 -0
- package/cjs/link/link.js +1 -0
- package/cjs/link/link.styles.js +1 -0
- package/cjs/loading/index.js +1 -0
- package/cjs/loading/loading.js +1 -0
- package/cjs/loading/loading.styles.js +1 -0
- package/cjs/loading/spinner.js +1 -0
- package/cjs/modal/index.js +1 -0
- package/cjs/modal/modal-body.js +1 -0
- package/cjs/modal/modal-close-button.js +1 -0
- package/cjs/modal/modal-context.js +1 -0
- package/cjs/modal/modal-footer.js +1 -0
- package/cjs/modal/modal-header.js +1 -0
- package/cjs/modal/modal-wrapper.js +1 -0
- package/cjs/modal/modal.js +1 -0
- package/cjs/modal/modal.styles.js +1 -0
- package/cjs/modal/use-modal.js +1 -0
- package/cjs/navbar/index.js +1 -0
- package/cjs/navbar/navbar-brand.js +1 -0
- package/cjs/navbar/navbar-collapse-context.js +1 -0
- package/cjs/navbar/navbar-collapse-item.js +1 -0
- package/cjs/navbar/navbar-collapse.js +1 -0
- package/cjs/navbar/navbar-content-context.js +1 -0
- package/cjs/navbar/navbar-content.js +1 -0
- package/cjs/navbar/navbar-context.js +1 -0
- package/cjs/navbar/navbar-item.js +1 -0
- package/cjs/navbar/navbar-link.js +1 -0
- package/cjs/navbar/navbar-toggle-icon.js +1 -0
- package/cjs/navbar/navbar-toggle.js +1 -0
- package/cjs/navbar/navbar.js +1 -0
- package/cjs/navbar/navbar.styles.js +1 -0
- package/cjs/navbar/use-navbar-collapse.js +1 -0
- package/cjs/navbar/use-navbar-content.js +1 -0
- package/cjs/navbar/use-navbar.js +1 -0
- package/cjs/pagination/index.js +1 -0
- package/cjs/pagination/pagination-ellipsis.js +1 -0
- package/cjs/pagination/pagination-highlight.js +1 -0
- package/cjs/pagination/pagination-icon.js +1 -0
- package/cjs/pagination/pagination-item.js +1 -0
- package/cjs/pagination/pagination.js +1 -0
- package/cjs/pagination/pagination.styles.js +1 -0
- package/cjs/popover/index.js +1 -0
- package/cjs/popover/popover-content.js +1 -0
- package/cjs/popover/popover-context.js +1 -0
- package/cjs/popover/popover-trigger.js +1 -0
- package/cjs/popover/popover.js +1 -0
- package/cjs/popover/popover.styles.js +1 -0
- package/cjs/popover/use-popover.js +1 -0
- package/cjs/popover/utils.js +1 -0
- package/cjs/progress/index.js +1 -0
- package/cjs/progress/progress.js +1 -0
- package/cjs/progress/progress.styles.js +1 -0
- package/cjs/radio/index.js +1 -0
- package/cjs/radio/radio-context.js +1 -0
- package/cjs/radio/radio-group.js +1 -0
- package/cjs/radio/radio.js +1 -0
- package/cjs/radio/radio.styles.js +1 -0
- package/cjs/radio/use-radio-group.js +1 -0
- package/cjs/radio/use-radio.js +1 -0
- package/cjs/row/index.js +1 -0
- package/cjs/row/row.js +1 -0
- package/cjs/row/row.styles.js +1 -0
- package/cjs/snippet/index.js +1 -0
- package/cjs/snippet/snippet-icon.js +1 -0
- package/cjs/snippet/snippet.js +1 -0
- package/cjs/snippet/snippet.styles.js +1 -0
- package/cjs/spacer/index.js +1 -0
- package/cjs/spacer/spacer.js +1 -0
- package/cjs/spacer/spacer.styles.js +1 -0
- package/cjs/switch/index.js +1 -0
- package/cjs/switch/switch.js +1 -0
- package/cjs/switch/switch.styles.js +1 -0
- package/cjs/table/base/index.js +1 -0
- package/cjs/table/base/table-body.js +1 -0
- package/cjs/table/base/table-cell.js +1 -0
- package/cjs/table/base/table-column.js +1 -0
- package/cjs/table/base/table-header.js +1 -0
- package/cjs/table/base/table-row.js +1 -0
- package/cjs/table/index.js +1 -0
- package/cjs/table/table-body.js +1 -0
- package/cjs/table/table-cell.js +1 -0
- package/cjs/table/table-checkbox-cell.js +1 -0
- package/cjs/table/table-column-header.js +1 -0
- package/cjs/table/table-context.js +1 -0
- package/cjs/table/table-footer.js +1 -0
- package/cjs/table/table-header-row.js +1 -0
- package/cjs/table/table-pagination.js +1 -0
- package/cjs/table/table-row-group.js +1 -0
- package/cjs/table/table-row.js +1 -0
- package/cjs/table/table-select-all-checkbox.js +1 -0
- package/cjs/table/table-sort-icon.js +1 -0
- package/cjs/table/table.js +1 -0
- package/cjs/table/table.styles.js +1 -0
- package/cjs/table/utils.js +1 -0
- package/cjs/text/child.js +1 -0
- package/cjs/text/index.js +1 -0
- package/cjs/text/text.js +1 -0
- package/cjs/text/text.styles.js +1 -0
- package/cjs/textarea/index.js +1 -0
- package/cjs/textarea/textarea.js +1 -0
- package/cjs/textarea/utils.js +1 -0
- package/cjs/theme/colors/blue.js +1 -0
- package/cjs/theme/colors/cyan.js +1 -0
- package/cjs/theme/colors/gray.js +1 -0
- package/cjs/theme/colors/green.js +1 -0
- package/cjs/theme/colors/index.js +1 -0
- package/cjs/theme/colors/pink.js +1 -0
- package/cjs/theme/colors/purple.js +1 -0
- package/cjs/theme/colors/red.js +1 -0
- package/cjs/theme/colors/yellow.js +1 -0
- package/cjs/theme/common.js +1 -0
- package/cjs/theme/dark-theme.js +1 -0
- package/cjs/theme/index.js +1 -0
- package/cjs/theme/light-theme.js +1 -0
- package/cjs/theme/shared-css.js +1 -0
- package/cjs/theme/stitches.config.js +1 -0
- package/cjs/theme/theme-context.js +1 -0
- package/cjs/theme/theme-provider.js +1 -0
- package/cjs/theme/types.js +1 -0
- package/cjs/theme/utils.js +1 -0
- package/cjs/tooltip/index.js +1 -0
- package/cjs/tooltip/placement.js +1 -0
- package/cjs/tooltip/tooltip-content.js +1 -0
- package/cjs/tooltip/tooltip.js +1 -0
- package/cjs/tooltip/tooltip.styles.js +1 -0
- package/cjs/use-body-scroll/index.js +1 -0
- package/cjs/use-body-scroll/use-body-scroll.js +1 -0
- package/cjs/use-click-anywhere/index.js +1 -0
- package/cjs/use-click-anywhere/use-click-anywhere.js +1 -0
- package/cjs/use-click-away/index.js +1 -0
- package/cjs/use-click-away/use-click-away.js +1 -0
- package/cjs/use-clipboard/index.js +1 -0
- package/cjs/use-clipboard/use-clipboard.js +1 -0
- package/cjs/use-current-state/index.js +1 -0
- package/cjs/use-current-state/use-current-state.js +1 -0
- package/cjs/use-drip/index.js +1 -0
- package/cjs/use-drip/use-drip.js +1 -0
- package/cjs/use-input/index.js +1 -0
- package/cjs/use-input/use-input.js +1 -0
- package/cjs/use-intersection-observer/index.js +1 -0
- package/cjs/use-intersection-observer/use-intersection-observer.js +1 -0
- package/cjs/use-keyboard/codes.js +1 -0
- package/cjs/use-keyboard/helper.js +1 -0
- package/cjs/use-keyboard/index.js +1 -0
- package/cjs/use-keyboard/use-keyboard.js +1 -0
- package/cjs/use-pagination/index.js +1 -0
- package/cjs/use-portal/index.js +1 -0
- package/cjs/use-portal/use-portal.js +1 -0
- package/cjs/use-real-shape/index.js +1 -0
- package/cjs/use-real-shape/use-real-shape.js +1 -0
- package/cjs/use-resize/index.js +1 -0
- package/cjs/use-resize/use-resize.js +1 -0
- package/cjs/use-scroll-position/index.js +1 -0
- package/cjs/use-scroll-position/use-scroll-position.js +1 -0
- package/cjs/use-ssr/index.js +1 -0
- package/cjs/use-ssr/use-ssr.js +1 -0
- package/cjs/use-theme/index.js +1 -0
- package/cjs/use-theme/use-theme.js +1 -0
- package/cjs/user/index.js +1 -0
- package/cjs/user/user-link.js +1 -0
- package/cjs/user/user.js +1 -0
- package/cjs/user/user.styles.js +1 -0
- package/cjs/utils/animations.js +1 -0
- package/cjs/utils/assertion.js +1 -0
- package/cjs/utils/checkmark.js +1 -0
- package/cjs/utils/clear-icon.js +1 -0
- package/cjs/utils/clsx.js +1 -0
- package/cjs/utils/collections.js +1 -0
- package/cjs/utils/color.js +1 -0
- package/cjs/utils/console.js +1 -0
- package/cjs/utils/context.js +1 -0
- package/cjs/utils/css-transition.js +1 -0
- package/cjs/utils/deep-merge.js +1 -0
- package/cjs/utils/dimensions.js +1 -0
- package/cjs/utils/dom.js +1 -0
- package/cjs/utils/drip.js +1 -0
- package/cjs/utils/expand.js +1 -0
- package/cjs/utils/icons.js +1 -0
- package/cjs/utils/numbers.js +1 -0
- package/cjs/utils/object.js +1 -0
- package/cjs/utils/prop-types.js +1 -0
- package/cjs/utils/react.js +1 -0
- package/cjs/utils/refs.js +1 -0
- package/cjs/utils/strings.js +1 -0
- package/cjs/utils/system.js +1 -0
- package/cjs/utils/with-defaults.js +1 -0
- package/code/package.json +6 -0
- package/col/package.json +6 -0
- package/collapse/package.json +6 -0
- package/container/package.json +6 -0
- package/css-baseline/package.json +6 -0
- package/divider/package.json +6 -0
- package/dropdown/package.json +6 -0
- package/esm/avatar/avatar-group.js +1 -0
- package/esm/avatar/avatar-group.styles.js +1 -0
- package/esm/avatar/avatar.js +1 -0
- package/esm/avatar/avatar.styles.js +1 -0
- package/esm/avatar/index.js +1 -0
- package/esm/backdrop/backdrop.js +1 -0
- package/esm/backdrop/backdrop.styles.js +1 -0
- package/esm/backdrop/index.js +1 -0
- package/esm/badge/badge.animations.js +1 -0
- package/esm/badge/badge.js +1 -0
- package/esm/badge/badge.styles.js +1 -0
- package/esm/badge/index.js +1 -0
- package/esm/button/button-group-context.js +1 -0
- package/esm/button/button-group.js +1 -0
- package/esm/button/button-group.styles.js +1 -0
- package/esm/button/button-icon.js +1 -0
- package/esm/button/button.js +1 -0
- package/esm/button/button.styles.js +1 -0
- package/esm/button/index.js +1 -0
- package/esm/button/utils.js +1 -0
- package/esm/card/card.js +1 -0
- package/esm/card/card.styles.js +1 -0
- package/esm/card/index.js +1 -0
- package/esm/card/use-card.js +1 -0
- package/esm/checkbox/checkbox-context.js +1 -0
- package/esm/checkbox/checkbox-group.js +1 -0
- package/esm/checkbox/checkbox.js +1 -0
- package/esm/checkbox/checkbox.styles.js +1 -0
- package/esm/checkbox/index.js +1 -0
- package/esm/checkbox/use-checkbox-group.js +1 -0
- package/esm/checkbox/use-checkbox.js +1 -0
- package/esm/code/code.js +1 -0
- package/esm/code/code.styles.js +1 -0
- package/esm/code/index.js +1 -0
- package/esm/col/col.js +1 -0
- package/esm/col/col.styles.js +1 -0
- package/esm/col/index.js +1 -0
- package/esm/collapse/collapse-context.js +1 -0
- package/esm/collapse/collapse-group.js +1 -0
- package/esm/collapse/collapse-icon.js +1 -0
- package/esm/collapse/collapse.js +1 -0
- package/esm/collapse/collapse.styles.js +1 -0
- package/esm/collapse/index.js +1 -0
- package/esm/container/container.js +1 -0
- package/esm/container/container.styles.js +1 -0
- package/esm/container/index.js +1 -0
- package/esm/css-baseline/css-baseline.js +1 -0
- package/esm/css-baseline/index.js +1 -0
- package/esm/divider/divider.js +1 -0
- package/esm/divider/divider.styles.js +1 -0
- package/esm/divider/index.js +1 -0
- package/esm/dropdown/base/dropdown-item-base.js +1 -0
- package/esm/dropdown/dropdown-button.js +1 -0
- package/esm/dropdown/dropdown-context.js +1 -0
- package/esm/dropdown/dropdown-icon.js +1 -0
- package/esm/dropdown/dropdown-item.js +1 -0
- package/esm/dropdown/dropdown-menu.js +1 -0
- package/esm/dropdown/dropdown-section.js +1 -0
- package/esm/dropdown/dropdown-trigger.js +1 -0
- package/esm/dropdown/dropdown-types.js +1 -0
- package/esm/dropdown/dropdown.js +1 -0
- package/esm/dropdown/dropdown.styles.js +1 -0
- package/esm/dropdown/index.js +1 -0
- package/esm/dropdown/use-dropdown.js +1 -0
- package/esm/grid/grid-container.js +1 -0
- package/esm/grid/grid-item.js +1 -0
- package/esm/grid/grid.js +1 -0
- package/esm/grid/grid.styles.js +1 -0
- package/esm/grid/index.js +1 -0
- package/esm/image/image.js +1 -0
- package/esm/image/image.skeleton.js +1 -0
- package/esm/image/image.styles.js +1 -0
- package/esm/image/index.js +1 -0
- package/esm/index.js +1 -0
- package/esm/input/index.js +1 -0
- package/esm/input/input-password.js +1 -0
- package/esm/input/input-props.js +1 -0
- package/esm/input/input.js +1 -0
- package/esm/input/input.styles.js +1 -0
- package/esm/input/password-icon.js +1 -0
- package/esm/link/icon.js +1 -0
- package/esm/link/index.js +1 -0
- package/esm/link/link.js +1 -0
- package/esm/link/link.styles.js +1 -0
- package/esm/loading/index.js +1 -0
- package/esm/loading/loading.js +1 -0
- package/esm/loading/loading.styles.js +1 -0
- package/esm/loading/spinner.js +1 -0
- package/esm/modal/index.js +1 -0
- package/esm/modal/modal-body.js +1 -0
- package/esm/modal/modal-close-button.js +1 -0
- package/esm/modal/modal-context.js +1 -0
- package/esm/modal/modal-footer.js +1 -0
- package/esm/modal/modal-header.js +1 -0
- package/esm/modal/modal-wrapper.js +1 -0
- package/esm/modal/modal.js +1 -0
- package/esm/modal/modal.styles.js +1 -0
- package/esm/modal/use-modal.js +1 -0
- package/esm/navbar/index.js +1 -0
- package/esm/navbar/navbar-brand.js +1 -0
- package/esm/navbar/navbar-collapse-context.js +1 -0
- package/esm/navbar/navbar-collapse-item.js +1 -0
- package/esm/navbar/navbar-collapse.js +1 -0
- package/esm/navbar/navbar-content-context.js +1 -0
- package/esm/navbar/navbar-content.js +1 -0
- package/esm/navbar/navbar-context.js +1 -0
- package/esm/navbar/navbar-item.js +1 -0
- package/esm/navbar/navbar-link.js +1 -0
- package/esm/navbar/navbar-toggle-icon.js +1 -0
- package/esm/navbar/navbar-toggle.js +1 -0
- package/esm/navbar/navbar.js +1 -0
- package/esm/navbar/navbar.styles.js +1 -0
- package/esm/navbar/use-navbar-collapse.js +1 -0
- package/esm/navbar/use-navbar-content.js +1 -0
- package/esm/navbar/use-navbar.js +1 -0
- package/esm/pagination/index.js +1 -0
- package/esm/pagination/pagination-ellipsis.js +1 -0
- package/esm/pagination/pagination-highlight.js +1 -0
- package/esm/pagination/pagination-icon.js +1 -0
- package/esm/pagination/pagination-item.js +1 -0
- package/esm/pagination/pagination.js +1 -0
- package/esm/pagination/pagination.styles.js +1 -0
- package/esm/popover/index.js +1 -0
- package/esm/popover/popover-content.js +1 -0
- package/esm/popover/popover-context.js +1 -0
- package/esm/popover/popover-trigger.js +1 -0
- package/esm/popover/popover.js +1 -0
- package/esm/popover/popover.styles.js +1 -0
- package/esm/popover/use-popover.js +1 -0
- package/esm/popover/utils.js +1 -0
- package/esm/progress/index.js +1 -0
- package/esm/progress/progress.js +1 -0
- package/esm/progress/progress.styles.js +1 -0
- package/esm/radio/index.js +1 -0
- package/esm/radio/radio-context.js +1 -0
- package/esm/radio/radio-group.js +1 -0
- package/esm/radio/radio.js +1 -0
- package/esm/radio/radio.styles.js +1 -0
- package/esm/radio/use-radio-group.js +1 -0
- package/esm/radio/use-radio.js +1 -0
- package/esm/row/index.js +1 -0
- package/esm/row/row.js +1 -0
- package/esm/row/row.styles.js +1 -0
- package/esm/snippet/index.js +1 -0
- package/esm/snippet/snippet-icon.js +1 -0
- package/esm/snippet/snippet.js +1 -0
- package/esm/snippet/snippet.styles.js +1 -0
- package/esm/spacer/index.js +1 -0
- package/esm/spacer/spacer.js +1 -0
- package/esm/spacer/spacer.styles.js +1 -0
- package/esm/switch/index.js +1 -0
- package/esm/switch/switch.js +1 -0
- package/esm/switch/switch.styles.js +1 -0
- package/esm/table/base/index.js +1 -0
- package/esm/table/base/table-body.js +1 -0
- package/esm/table/base/table-cell.js +1 -0
- package/esm/table/base/table-column.js +1 -0
- package/esm/table/base/table-header.js +1 -0
- package/esm/table/base/table-row.js +1 -0
- package/esm/table/index.js +1 -0
- package/esm/table/table-body.js +1 -0
- package/esm/table/table-cell.js +1 -0
- package/esm/table/table-checkbox-cell.js +1 -0
- package/esm/table/table-column-header.js +1 -0
- package/esm/table/table-context.js +1 -0
- package/esm/table/table-footer.js +1 -0
- package/esm/table/table-header-row.js +1 -0
- package/esm/table/table-pagination.js +1 -0
- package/esm/table/table-row-group.js +1 -0
- package/esm/table/table-row.js +1 -0
- package/esm/table/table-select-all-checkbox.js +1 -0
- package/esm/table/table-sort-icon.js +1 -0
- package/esm/table/table.js +1 -0
- package/esm/table/table.styles.js +1 -0
- package/esm/table/utils.js +1 -0
- package/esm/text/child.js +1 -0
- package/esm/text/index.js +1 -0
- package/esm/text/text.js +1 -0
- package/esm/text/text.styles.js +1 -0
- package/esm/textarea/index.js +1 -0
- package/esm/textarea/textarea.js +1 -0
- package/esm/textarea/utils.js +1 -0
- package/esm/theme/colors/blue.js +1 -0
- package/esm/theme/colors/cyan.js +1 -0
- package/esm/theme/colors/gray.js +1 -0
- package/esm/theme/colors/green.js +1 -0
- package/esm/theme/colors/index.js +1 -0
- package/esm/theme/colors/pink.js +1 -0
- package/esm/theme/colors/purple.js +1 -0
- package/esm/theme/colors/red.js +1 -0
- package/esm/theme/colors/yellow.js +1 -0
- package/esm/theme/common.js +1 -0
- package/esm/theme/dark-theme.js +1 -0
- package/esm/theme/index.js +1 -0
- package/esm/theme/light-theme.js +1 -0
- package/esm/theme/shared-css.js +1 -0
- package/esm/theme/stitches.config.js +1 -0
- package/esm/theme/theme-context.js +1 -0
- package/esm/theme/theme-provider.js +1 -0
- package/esm/theme/types.js +1 -0
- package/esm/theme/utils.js +1 -0
- package/esm/tooltip/index.js +1 -0
- package/esm/tooltip/placement.js +1 -0
- package/esm/tooltip/tooltip-content.js +1 -0
- package/esm/tooltip/tooltip.js +1 -0
- package/esm/tooltip/tooltip.styles.js +1 -0
- package/esm/use-body-scroll/index.js +1 -0
- package/esm/use-body-scroll/use-body-scroll.js +1 -0
- package/esm/use-click-anywhere/index.js +1 -0
- package/esm/use-click-anywhere/use-click-anywhere.js +1 -0
- package/esm/use-click-away/index.js +1 -0
- package/esm/use-click-away/use-click-away.js +1 -0
- package/esm/use-clipboard/index.js +1 -0
- package/esm/use-clipboard/use-clipboard.js +1 -0
- package/esm/use-current-state/index.js +1 -0
- package/esm/use-current-state/use-current-state.js +1 -0
- package/esm/use-drip/index.js +1 -0
- package/esm/use-drip/use-drip.js +1 -0
- package/esm/use-input/index.js +1 -0
- package/esm/use-input/use-input.js +1 -0
- package/esm/use-intersection-observer/index.js +1 -0
- package/esm/use-intersection-observer/use-intersection-observer.js +1 -0
- package/esm/use-keyboard/codes.js +1 -0
- package/esm/use-keyboard/helper.js +1 -0
- package/esm/use-keyboard/index.js +1 -0
- package/esm/use-keyboard/use-keyboard.js +1 -0
- package/esm/use-pagination/index.js +1 -0
- package/esm/use-portal/index.js +1 -0
- package/esm/use-portal/use-portal.js +1 -0
- package/esm/use-real-shape/index.js +1 -0
- package/esm/use-real-shape/use-real-shape.js +1 -0
- package/esm/use-resize/index.js +1 -0
- package/esm/use-resize/use-resize.js +1 -0
- package/esm/use-scroll-position/index.js +1 -0
- package/esm/use-scroll-position/use-scroll-position.js +1 -0
- package/esm/use-ssr/index.js +1 -0
- package/esm/use-ssr/use-ssr.js +1 -0
- package/esm/use-theme/index.js +1 -0
- package/esm/use-theme/use-theme.js +1 -0
- package/esm/user/index.js +1 -0
- package/esm/user/user-link.js +1 -0
- package/esm/user/user.js +1 -0
- package/esm/user/user.styles.js +1 -0
- package/esm/utils/animations.js +1 -0
- package/esm/utils/assertion.js +1 -0
- package/esm/utils/checkmark.js +1 -0
- package/esm/utils/clear-icon.js +1 -0
- package/esm/utils/clsx.js +1 -0
- package/esm/utils/collections.js +1 -0
- package/esm/utils/color.js +1 -0
- package/esm/utils/console.js +1 -0
- package/esm/utils/context.js +1 -0
- package/esm/utils/css-transition.js +1 -0
- package/esm/utils/deep-merge.js +1 -0
- package/esm/utils/dimensions.js +1 -0
- package/esm/utils/dom.js +1 -0
- package/esm/utils/drip.js +1 -0
- package/esm/utils/expand.js +1 -0
- package/esm/utils/icons.js +1 -0
- package/esm/utils/numbers.js +1 -0
- package/esm/utils/object.js +1 -0
- package/esm/utils/prop-types.js +1 -0
- package/esm/utils/react.js +1 -0
- package/esm/utils/refs.js +1 -0
- package/esm/utils/strings.js +1 -0
- package/esm/utils/system.js +1 -0
- package/esm/utils/with-defaults.js +1 -0
- package/grid/package.json +6 -0
- package/image/package.json +6 -0
- package/input/package.json +6 -0
- package/link/package.json +6 -0
- package/loading/package.json +6 -0
- package/modal/package.json +6 -0
- package/navbar/package.json +6 -0
- package/package.json +70 -0
- package/pagination/package.json +6 -0
- package/popover/package.json +6 -0
- package/progress/package.json +6 -0
- package/radio/package.json +6 -0
- package/row/package.json +6 -0
- package/snippet/package.json +6 -0
- package/spacer/package.json +6 -0
- package/switch/package.json +6 -0
- package/table/package.json +6 -0
- package/text/package.json +6 -0
- package/textarea/package.json +6 -0
- package/tooltip/package.json +6 -0
- package/types/avatar/avatar-group.d.ts +39 -0
- package/types/avatar/avatar-group.styles.d.ts +2149 -0
- package/types/avatar/avatar.d.ts +1411 -0
- package/types/avatar/avatar.styles.d.ts +2441 -0
- package/types/avatar/index.d.ts +7 -0
- package/types/backdrop/backdrop.d.ts +37 -0
- package/types/backdrop/backdrop.styles.d.ts +3225 -0
- package/types/backdrop/index.d.ts +5 -0
- package/types/badge/badge.animations.d.ts +36 -0
- package/types/badge/badge.d.ts +13 -0
- package/types/badge/badge.styles.d.ts +3240 -0
- package/types/badge/index.d.ts +5 -0
- package/types/button/button-group-context.d.ts +20 -0
- package/types/button/button-group.d.ts +34 -0
- package/types/button/button-group.styles.d.ts +1081 -0
- package/types/button/button-icon.d.ts +1095 -0
- package/types/button/button.d.ts +32 -0
- package/types/button/button.styles.d.ts +3472 -0
- package/types/button/index.d.ts +10 -0
- package/types/button/utils.d.ts +53 -0
- package/types/card/card.d.ts +22 -0
- package/types/card/card.styles.d.ts +6689 -0
- package/types/card/index.d.ts +5 -0
- package/types/card/use-card.d.ts +41 -0
- package/types/checkbox/checkbox-context.d.ts +3 -0
- package/types/checkbox/checkbox-group.d.ts +11 -0
- package/types/checkbox/checkbox.d.ts +19 -0
- package/types/checkbox/checkbox.styles.d.ts +10848 -0
- package/types/checkbox/index.d.ts +6 -0
- package/types/checkbox/use-checkbox-group.d.ts +30 -0
- package/types/checkbox/use-checkbox.d.ts +26 -0
- package/types/code/code.d.ts +15 -0
- package/types/code/code.styles.d.ts +2146 -0
- package/types/code/index.d.ts +5 -0
- package/types/col/col.d.ts +20 -0
- package/types/col/col.styles.d.ts +1075 -0
- package/types/col/index.d.ts +5 -0
- package/types/collapse/collapse-context.d.ts +9 -0
- package/types/collapse/collapse-group.d.ts +18 -0
- package/types/collapse/collapse-icon.d.ts +24 -0
- package/types/collapse/collapse.d.ts +43 -0
- package/types/collapse/collapse.styles.d.ts +6470 -0
- package/types/collapse/index.d.ts +6 -0
- package/types/container/container.d.ts +40 -0
- package/types/container/container.styles.d.ts +1078 -0
- package/types/container/index.d.ts +5 -0
- package/types/css-baseline/css-baseline.d.ts +9 -0
- package/types/css-baseline/index.d.ts +1 -0
- package/types/divider/divider.d.ts +22 -0
- package/types/divider/divider.styles.d.ts +2151 -0
- package/types/divider/index.d.ts +5 -0
- package/types/dropdown/base/dropdown-item-base.d.ts +23 -0
- package/types/dropdown/dropdown-button.d.ts +306 -0
- package/types/dropdown/dropdown-context.d.ts +290 -0
- package/types/dropdown/dropdown-icon.d.ts +9 -0
- package/types/dropdown/dropdown-item.d.ts +35 -0
- package/types/dropdown/dropdown-menu.d.ts +30 -0
- package/types/dropdown/dropdown-section.d.ts +29 -0
- package/types/dropdown/dropdown-trigger.d.ts +9 -0
- package/types/dropdown/dropdown-types.d.ts +24 -0
- package/types/dropdown/dropdown.d.ts +24 -0
- package/types/dropdown/dropdown.styles.d.ts +12155 -0
- package/types/dropdown/index.d.ts +9 -0
- package/types/dropdown/use-dropdown.d.ts +175 -0
- package/types/grid/grid-container.d.ts +19 -0
- package/types/grid/grid-item.d.ts +31 -0
- package/types/grid/grid.d.ts +9 -0
- package/types/grid/grid.styles.d.ts +2147 -0
- package/types/grid/index.d.ts +7 -0
- package/types/image/image.d.ts +46 -0
- package/types/image/image.skeleton.d.ts +19 -0
- package/types/image/image.styles.d.ts +3222 -0
- package/types/image/index.d.ts +5 -0
- package/types/index.d.ts +97 -0
- package/types/input/index.d.ts +7 -0
- package/types/input/input-password.d.ts +98 -0
- package/types/input/input-props.d.ts +66 -0
- package/types/input/input.d.ts +18 -0
- package/types/input/input.styles.d.ts +11856 -0
- package/types/input/password-icon.d.ts +6 -0
- package/types/link/icon.d.ts +4 -0
- package/types/link/index.d.ts +5 -0
- package/types/link/link.d.ts +11 -0
- package/types/link/link.styles.d.ts +3303 -0
- package/types/loading/index.d.ts +7 -0
- package/types/loading/loading.d.ts +24 -0
- package/types/loading/loading.styles.d.ts +6448 -0
- package/types/loading/spinner.d.ts +17 -0
- package/types/modal/index.d.ts +8 -0
- package/types/modal/modal-body.d.ts +50 -0
- package/types/modal/modal-close-button.d.ts +13 -0
- package/types/modal/modal-context.d.ts +8 -0
- package/types/modal/modal-footer.d.ts +24 -0
- package/types/modal/modal-header.d.ts +24 -0
- package/types/modal/modal-wrapper.d.ts +24 -0
- package/types/modal/modal.d.ts +40 -0
- package/types/modal/modal.styles.d.ts +6453 -0
- package/types/modal/use-modal.d.ts +11 -0
- package/types/navbar/index.d.ts +11 -0
- package/types/navbar/navbar-brand.d.ts +9 -0
- package/types/navbar/navbar-collapse-context.d.ts +798 -0
- package/types/navbar/navbar-collapse-item.d.ts +12 -0
- package/types/navbar/navbar-collapse.d.ts +4 -0
- package/types/navbar/navbar-content-context.d.ts +886 -0
- package/types/navbar/navbar-content.d.ts +11 -0
- package/types/navbar/navbar-context.d.ts +842 -0
- package/types/navbar/navbar-item.d.ts +10 -0
- package/types/navbar/navbar-link.d.ts +10 -0
- package/types/navbar/navbar-toggle-icon.d.ts +9 -0
- package/types/navbar/navbar-toggle.d.ts +9 -0
- package/types/navbar/navbar.d.ts +24 -0
- package/types/navbar/navbar.styles.d.ts +42225 -0
- package/types/navbar/use-navbar-collapse.d.ts +419 -0
- package/types/navbar/use-navbar-content.d.ts +480 -0
- package/types/navbar/use-navbar.d.ts +475 -0
- package/types/pagination/index.d.ts +7 -0
- package/types/pagination/pagination-ellipsis.d.ts +11 -0
- package/types/pagination/pagination-highlight.d.ts +15 -0
- package/types/pagination/pagination-icon.d.ts +16 -0
- package/types/pagination/pagination-item.d.ts +22 -0
- package/types/pagination/pagination.d.ts +46 -0
- package/types/pagination/pagination.styles.d.ts +6461 -0
- package/types/popover/index.d.ts +5 -0
- package/types/popover/popover-content.d.ts +14 -0
- package/types/popover/popover-context.d.ts +192 -0
- package/types/popover/popover-trigger.d.ts +6 -0
- package/types/popover/popover.d.ts +17 -0
- package/types/popover/popover.styles.d.ts +3307 -0
- package/types/popover/use-popover.d.ts +156 -0
- package/types/popover/utils.d.ts +6 -0
- package/types/progress/index.d.ts +5 -0
- package/types/progress/progress.d.ts +70 -0
- package/types/progress/progress.styles.d.ts +2157 -0
- package/types/radio/index.d.ts +4 -0
- package/types/radio/radio-context.d.ts +22 -0
- package/types/radio/radio-group.d.ts +15 -0
- package/types/radio/radio.d.ts +22 -0
- package/types/radio/radio.styles.d.ts +8606 -0
- package/types/radio/use-radio-group.d.ts +26 -0
- package/types/radio/use-radio.d.ts +31 -0
- package/types/row/index.d.ts +5 -0
- package/types/row/row.d.ts +21 -0
- package/types/row/row.styles.d.ts +1077 -0
- package/types/snippet/index.d.ts +5 -0
- package/types/snippet/snippet-icon.d.ts +21 -0
- package/types/snippet/snippet.d.ts +35 -0
- package/types/snippet/snippet.styles.d.ts +4298 -0
- package/types/spacer/index.d.ts +5 -0
- package/types/spacer/spacer.d.ts +46 -0
- package/types/spacer/spacer.styles.d.ts +1076 -0
- package/types/switch/index.d.ts +5 -0
- package/types/switch/switch.d.ts +87 -0
- package/types/switch/switch.styles.d.ts +4307 -0
- package/types/table/base/index.d.ts +5 -0
- package/types/table/base/table-body.d.ts +8 -0
- package/types/table/base/table-cell.d.ts +8 -0
- package/types/table/base/table-column.d.ts +8 -0
- package/types/table/base/table-header.d.ts +4 -0
- package/types/table/base/table-row.d.ts +8 -0
- package/types/table/index.d.ts +12 -0
- package/types/table/table-body.d.ts +20 -0
- package/types/table/table-cell.d.ts +20 -0
- package/types/table/table-checkbox-cell.d.ts +23 -0
- package/types/table/table-column-header.d.ts +1175 -0
- package/types/table/table-context.d.ts +29 -0
- package/types/table/table-footer.d.ts +36 -0
- package/types/table/table-header-row.d.ts +19 -0
- package/types/table/table-pagination.d.ts +16 -0
- package/types/table/table-row-group.d.ts +14 -0
- package/types/table/table-row.d.ts +19 -0
- package/types/table/table-select-all-checkbox.d.ts +20 -0
- package/types/table/table-sort-icon.d.ts +1085 -0
- package/types/table/table.d.ts +29 -0
- package/types/table/table.styles.d.ts +18448 -0
- package/types/table/utils.d.ts +7 -0
- package/types/text/child.d.ts +8722 -0
- package/types/text/index.d.ts +4 -0
- package/types/text/text.d.ts +25 -0
- package/types/text/text.styles.d.ts +5396 -0
- package/types/textarea/index.d.ts +3 -0
- package/types/textarea/textarea.d.ts +42 -0
- package/types/textarea/utils.d.ts +13 -0
- package/types/theme/colors/blue.d.ts +24 -0
- package/types/theme/colors/cyan.d.ts +24 -0
- package/types/theme/colors/gray.d.ts +24 -0
- package/types/theme/colors/green.d.ts +24 -0
- package/types/theme/colors/index.d.ts +8 -0
- package/types/theme/colors/pink.d.ts +24 -0
- package/types/theme/colors/purple.d.ts +24 -0
- package/types/theme/colors/red.d.ts +24 -0
- package/types/theme/colors/yellow.d.ts +24 -0
- package/types/theme/common.d.ts +1761 -0
- package/types/theme/dark-theme.d.ts +136 -0
- package/types/theme/index.d.ts +4 -0
- package/types/theme/light-theme.d.ts +109 -0
- package/types/theme/shared-css.d.ts +10729 -0
- package/types/theme/stitches.config.d.ts +8486 -0
- package/types/theme/theme-context.d.ts +5 -0
- package/types/theme/theme-provider.d.ts +14 -0
- package/types/theme/types.d.ts +85 -0
- package/types/theme/utils.d.ts +16 -0
- package/types/tooltip/index.d.ts +6 -0
- package/types/tooltip/placement.d.ts +39 -0
- package/types/tooltip/tooltip-content.d.ts +27 -0
- package/types/tooltip/tooltip.d.ts +59 -0
- package/types/tooltip/tooltip.styles.d.ts +4299 -0
- package/types/use-body-scroll/index.d.ts +3 -0
- package/types/use-body-scroll/use-body-scroll.d.ts +9 -0
- package/types/use-click-anywhere/index.d.ts +2 -0
- package/types/use-click-anywhere/use-click-anywhere.d.ts +2 -0
- package/types/use-click-away/index.d.ts +2 -0
- package/types/use-click-away/use-click-away.d.ts +3 -0
- package/types/use-clipboard/index.d.ts +3 -0
- package/types/use-clipboard/use-clipboard.d.ts +8 -0
- package/types/use-current-state/index.d.ts +2 -0
- package/types/use-current-state/use-current-state.d.ts +4 -0
- package/types/use-drip/index.d.ts +2 -0
- package/types/use-drip/use-drip.d.ts +10 -0
- package/types/use-input/index.d.ts +2 -0
- package/types/use-input/use-input.d.ts +13 -0
- package/types/use-intersection-observer/index.d.ts +2 -0
- package/types/use-intersection-observer/use-intersection-observer.d.ts +11 -0
- package/types/use-keyboard/codes.d.ts +92 -0
- package/types/use-keyboard/helper.d.ts +3 -0
- package/types/use-keyboard/index.d.ts +5 -0
- package/types/use-keyboard/use-keyboard.d.ts +22 -0
- package/types/use-pagination/index.d.ts +20 -0
- package/types/use-portal/index.d.ts +2 -0
- package/types/use-portal/use-portal.d.ts +2 -0
- package/types/use-real-shape/index.d.ts +2 -0
- package/types/use-real-shape/use-real-shape.d.ts +9 -0
- package/types/use-resize/index.d.ts +2 -0
- package/types/use-resize/use-resize.d.ts +2 -0
- package/types/use-scroll-position/index.d.ts +2 -0
- package/types/use-scroll-position/use-scroll-position.d.ts +16 -0
- package/types/use-ssr/index.d.ts +2 -0
- package/types/use-ssr/use-ssr.d.ts +6 -0
- package/types/use-theme/index.d.ts +2 -0
- package/types/use-theme/use-theme.d.ts +3 -0
- package/types/user/index.d.ts +5 -0
- package/types/user/user-link.d.ts +8 -0
- package/types/user/user.d.ts +43 -0
- package/types/user/user.styles.d.ts +4290 -0
- package/types/utils/animations.d.ts +12 -0
- package/types/utils/assertion.d.ts +9 -0
- package/types/utils/checkmark.d.ts +19 -0
- package/types/utils/clear-icon.d.ts +16 -0
- package/types/utils/clsx.d.ts +1 -0
- package/types/utils/collections.d.ts +13 -0
- package/types/utils/color.d.ts +30 -0
- package/types/utils/console.d.ts +1 -0
- package/types/utils/context.d.ts +24 -0
- package/types/utils/css-transition.d.ts +30 -0
- package/types/utils/deep-merge.d.ts +1 -0
- package/types/utils/dimensions.d.ts +1 -0
- package/types/utils/dom.d.ts +22 -0
- package/types/utils/drip.d.ts +1123 -0
- package/types/utils/expand.d.ts +20 -0
- package/types/utils/numbers.d.ts +9 -0
- package/types/utils/object.d.ts +29 -0
- package/types/utils/prop-types.d.ts +64 -0
- package/types/utils/refs.d.ts +17 -0
- package/types/utils/system.d.ts +32 -0
- package/types/utils/with-defaults.d.ts +3 -0
- package/umd/nextui.js +33940 -0
- package/umd/nextui.min.js +2 -0
- package/umd/nextui.min.js.LICENSE.txt +14 -0
- package/use-body-scroll/package.json +6 -0
- package/use-click-anywhere/package.json +6 -0
- package/use-click-away/package.json +6 -0
- package/use-clipboard/package.json +6 -0
- package/use-current-state/package.json +6 -0
- package/use-drip/package.json +6 -0
- package/use-input/package.json +6 -0
- package/use-intersection-observer/package.json +6 -0
- package/use-keyboard/package.json +6 -0
- package/use-portal/package.json +6 -0
- package/use-real-shape/package.json +6 -0
- package/use-resize/package.json +6 -0
- package/use-scroll-position/package.json +6 -0
- package/use-ssr/package.json +6 -0
- package/use-theme/package.json +6 -0
- package/user/package.json +6 -0
- package/utils/package.json +6 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const cyan={cyan50:"#F0FCFF",cyan100:"#E6FAFE",cyan200:"#D7F8FE",cyan300:"#C3F4FD",cyan400:"#A5EEFD",cyan500:"#7EE7FC",cyan600:"#06B7DB",cyan700:"#09AACD",cyan800:"#0E8AAA",cyan900:"#053B48"};export const cyanDark={cyan50:"#012A32",cyan100:"#023A46",cyan200:"#024B5A",cyan300:"#036072",cyan400:"#037086",cyan500:"#048EA9",cyan600:"#06B7DB",cyan700:"#33D9FA",cyan800:"#6FE4FB",cyan900:"#EBFBFE"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const gray={gray50:"#F1F3F5",gray100:"#ECEEF0",gray200:"#E6E8EB",gray300:"#DFE3E6",gray400:"#D7DBDF",gray500:"#C1C8CD",gray600:"#889096",gray700:"#7E868C",gray800:"#687076",gray900:"#11181C"};export const grayDark={gray50:"#16181A",gray100:"#26292B",gray200:"#2B2F31",gray300:"#313538",gray400:"#3A3F42",gray500:"#4C5155",gray600:"#697177",gray700:"#787F85",gray800:"#9BA1A6",gray900:"#ECEDEE"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const green={green50:"#F1FDF7",green100:"#E8FCF1",green200:"#DAFBE8",green300:"#C8F9DD",green400:"#ADF5CC",green500:"#88F1B6",green600:"#17C964",green700:"#13A452",green800:"#108944",green900:"#06371B"};export const greenDark={green50:"#042F14",green100:"#06381B",green200:"#074A24",green300:"#0A6130",green400:"#0B7439",green500:"#0F9549",green600:"#17C964",green700:"#41EC8B",green800:"#78F2AD",green900:"#ECFDF4"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./blue";export*from"./purple";export*from"./green";export*from"./yellow";export*from"./red";export*from"./cyan";export*from"./pink";export*from"./gray";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const pink={pink50:"#FFF0FB",pink100:"#FFE5F8",pink200:"#FFD6F3",pink300:"#FFC2EE",pink400:"#FFA3E5",pink500:"#FF7AD9",pink600:"#FF4ECD",pink700:"#D6009A",pink800:"#B80084",pink900:"#4D0037"};export const pinkDark={pink50:"#330025",pink100:"#470033",pink200:"#5C0042",pink300:"#750054",pink400:"#8A0063",pink500:"#AD007C",pink600:"#FF4ECD",pink700:"#FF2EC4",pink800:"#FF6BD5",pink900:"#FFEBF9"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const purple={purple50:"#F7F2FD",purple100:"#F1E8FB",purple200:"#EADCF8",purple300:"#E0CBF5",purple400:"#D1B1F0",purple500:"#BC8EE9",purple600:"#7828C8",purple700:"#6622AA",purple800:"#4D1980",purple900:"#290E44"};export const purpleDark={purple50:"#1F0A33",purple100:"#240C3C",purple200:"#2E0F4D",purple300:"#3B1362",purple400:"#451773",purple500:"#571D91",purple600:"#7828C8",purple700:"#9750DD",purple800:"#B583E7",purple900:"#F7ECFC"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const red={red50:"#FEF0F5",red100:"#FEE7EF",red200:"#FDD8E5",red300:"#FCC5D8",red400:"#FAA8C5",red500:"#F881AB",red600:"#F31260",red700:"#B80A47",red800:"#910838",red900:"#4E041E"};export const redDark={red50:"#300313",red100:"#300313",red200:"#44041A",red300:"#5C0523",red400:"#6F062B",red500:"#910838",red600:"#F31260",red700:"#F4256D",red800:"#F75F94",red900:"#FDD8E5"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const yellow={yellow50:"#FEF9F0",yellow100:"#FEF5E7",yellow200:"#FDEFD8",yellow300:"#FCE7C5",yellow400:"#FBDBA7",yellow500:"#F9CB80",yellow600:"#F5A524",yellow700:"#B97509",yellow800:"#925D07",yellow900:"#4E3104"};export const yellowDark={yellow50:"#3A2503",yellow100:"#442B03",yellow200:"#583804",yellow300:"#704705",yellow400:"#845306",yellow500:"#A66908",yellow600:"#F5A524",yellow700:"#F6AD37",yellow800:"#F8C572",yellow900:"#FEF7EC"};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defaultThemeMap as e}from"@stitches/react";export const defaultTokens={fonts:{sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;",mono:"Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono','Courier New', monospace;"},fontSizes:{xs:"0.75rem",sm:"0.875rem",base:"1rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{xs:1,sm:1.25,base:1.5,md:1.5,lg:1.75,xl:1.75,"2xl":2,"3xl":2.25,"4xl":2.5,"5xl":1,"6xl":1,"7xl":1,"8xl":1,"9xl":1},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},space:{0:"0rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2.25rem","2xl":"3rem","3xl":"5rem","4xl":"10rem","5xl":"14rem","6xl":"18rem","7xl":"24rem","8xl":"32rem","9xl":"40rem",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",full:"100%",px:"1px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",7:"0.875rem",8:"1rem",9:"1.25rem",10:"1.5rem",11:"1.75rem",12:"2rem",13:"2.25rem",14:"2.5rem",15:"2.75rem",16:"3rem",17:"3.5rem",18:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},radii:{xs:"7px",sm:"9px",md:"12px",base:"14px",lg:"14px",xl:"18px","2xl":"24px","3xl":"32px",squared:"33%",rounded:"50%",pill:"9999px"},zIndices:{1:"100",2:"200",3:"300",4:"400",5:"500",10:"1000",max:"9999"},borderWeights:{light:"1px",normal:"2px",bold:"3px",extrabold:"4px",black:"5px"},transitions:{default:"all 250ms ease",button:"background 0.25s ease 0s, color 0.25s ease 0s, border-color 0.25s ease 0s, box-shadow 0.25s ease 0s, transform 0.25s ease 0s, opacity 0.25s ease 0s",avatar:"box-shadow 0.25s ease 0s, opacity 0.25s ease 0s",card:"transform 0.25s ease 0s, filter 0.25s ease 0s, box-shadow 0.25s ease 0s",dropdownItem:"background 0.12s ease, transform 0.12s ease, color 0.12s ease, box-shadow 0.12s ease 0s"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}};export const defaultColors={white:"#ffffff",black:"#000000",primaryLight:"$blue200",primaryLightHover:"$blue300",primaryLightActive:"$blue400",primaryLightContrast:"$blue600",primary:"$blue600",primaryBorder:"$blue500",primaryBorderHover:"$blue600",primarySolidHover:"$blue700",primarySolidContrast:"$white",primaryShadow:"$blue500",secondaryLight:"$purple200",secondaryLightHover:"$purple300",secondaryLightActive:"$purple400",secondaryLightContrast:"$purple600",secondary:"$purple600",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondarySolidContrast:"$white",secondaryShadow:"$purple500",successLight:"$green200",successLightHover:"$green300",successLightActive:"$green400",successLightContrast:"$green700",success:"$green600",successBorder:"$green500",successBorderHover:"$green600",successSolidHover:"$green700",successSolidContrast:"$white",successShadow:"$green500",warningLight:"$yellow200",warningLightHover:"$yellow300",warningLightActive:"$yellow400",warningLightContrast:"$yellow700",warning:"$yellow600",warningBorder:"$yellow500",warningBorderHover:"$yellow600",warningSolidHover:"$yellow700",warningSolidContrast:"$white",warningShadow:"$yellow500",errorLight:"$red200",errorLightHover:"$red300",errorLightActive:"$red400",errorLightContrast:"$red600",error:"$red600",errorBorder:"$red500",errorBorderHover:"$red600",errorSolidHover:"$red700",errorSolidContrast:"$white",errorShadow:"$red500",neutralLight:"$gray100",neutralLightHover:"$gray200",neutralLightActive:"$gray300",neutralLightContrast:"$gray800",neutral:"$gray600",neutralBorder:"$gray400",neutralBorderHover:"$gray500",neutralSolidHover:"$gray600",neutralSolidContrast:"$white",neutralShadow:"$gray400",gradient:"linear-gradient(112deg, $cyan600 -63.59%, $pink600 -20.3%, $blue600 70.46%)",accents0:"$gray50",accents1:"$gray100",accents2:"$gray200",accents3:"$gray300",accents4:"$gray400",accents5:"$gray500",accents6:"$gray600",accents7:"$gray700",accents8:"$gray800",accents9:"$gray900"};export const defaultMedia={xs:`(min-width: ${defaultTokens.breakpoints.xs})`,sm:`(min-width: ${defaultTokens.breakpoints.sm})`,md:`(min-width: ${defaultTokens.breakpoints.md})`,lg:`(min-width: ${defaultTokens.breakpoints.lg})`,xl:`(min-width: ${defaultTokens.breakpoints.xl})`,xsMin:`(min-width: ${defaultTokens.breakpoints.xs})`,smMin:`(min-width: ${defaultTokens.breakpoints.sm})`,mdMin:`(min-width: ${defaultTokens.breakpoints.md})`,lgMin:`(min-width: ${defaultTokens.breakpoints.lg})`,xlMin:`(min-width: ${defaultTokens.breakpoints.xl})`,xsMax:`(max-width: ${defaultTokens.breakpoints.xs})`,smMax:`(max-width: ${defaultTokens.breakpoints.sm})`,mdMax:`(max-width: ${defaultTokens.breakpoints.md})`,lgMax:`(max-width: ${defaultTokens.breakpoints.lg})`,xlMax:`(max-width: ${defaultTokens.breakpoints.xl})`,motion:"(prefers-reduced-motion: reduce)",safari:"not all and (min-resolution:.001dpcm)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"};export const defaultUtils={p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),ta:e=>({textAlign:e}),tt:e=>({textTransform:e}),to:e=>({textOverflow:e}),d:e=>({display:e}),dflex:e=>({display:"flex",alignItems:e,justifyContent:e}),fd:e=>({flexDirection:e}),fw:e=>({flexWrap:e}),ai:e=>({alignItems:e}),ac:e=>({alignContent:e}),jc:e=>({justifyContent:e}),as:e=>({alignSelf:e}),fg:e=>({flexGrow:e}),fs:e=>({fontSize:e}),fb:e=>({flexBasis:e}),bc:e=>({backgroundColor:e}),bf:e=>({backdropFilter:e}),bg:e=>({background:e}),bgBlur:e=>({bf:"saturate(180%) blur(10px)",bg:e}),bgColor:e=>({backgroundColor:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),bgClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),br:e=>({borderRadius:e}),bw:e=>({borderWidth:e}),btrr:e=>({borderTopRightRadius:e}),bbrr:e=>({borderBottomRightRadius:e}),bblr:e=>({borderBottomLeftRadius:e}),btlr:e=>({borderTopLeftRadius:e}),bs:e=>({boxShadow:e}),ds:e=>({dropShadow:e}),shadow:e=>({boxShadow:e}),dshadow:e=>({dropShadow:e}),dropShadow:e=>({filter:`$dropShadows${e}`}),normalShadow:e=>({boxShadow:`0 4px 14px 0 $colors${e}`}),normalShadowVar:e=>({boxShadow:`0 4px 14px 0 ${e}`}),lh:e=>({lineHeight:e}),ov:e=>({overflow:e}),ox:e=>({overflowX:e}),oy:e=>({overflowY:e}),pe:e=>({pointerEvents:e}),events:e=>({pointerEvents:e}),us:e=>({WebkitUserSelect:e,userSelect:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),w:e=>({width:e}),h:e=>({height:e}),mw:e=>({maxWidth:e}),maxW:e=>({maxWidth:e}),mh:e=>({maxHeight:e}),maxH:e=>({maxHeight:e}),size:e=>({width:e,height:e}),minSize:e=>({minWidth:e,minHeight:e,width:e,height:e}),sizeMin:e=>({minWidth:e,minHeight:e,width:e,height:e}),maxSize:e=>({maxWidth:e,maxHeight:e}),sizeMax:e=>({maxWidth:e,maxHeight:e}),appearance:e=>({WebkitAppearance:e,appearance:e}),scale:e=>({transform:`scale(${e})`}),linearGradient:e=>({backgroundImage:`linear-gradient(${e})`}),tdl:e=>({textDecorationLine:e}),truncateText:e=>({maxWidth:e,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),textGradient:e=>({backgroundImage:`linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent","&::selection":{WebkitTextFillColor:"$colors$text"}})};export const defaultThemeMap={...e,width:"space",height:"space",minWidth:"space",maxWidth:"space",minHeight:"space",maxHeight:"space",flexBasis:"space",gridTemplateColumns:"space",gridTemplateRows:"space",blockSize:"space",minBlockSize:"space",maxBlockSize:"space",inlineSize:"space",minInlineSize:"space",maxInlineSize:"space",borderWidth:"borderWeights"};export default{prefix:"nextui",theme:{...defaultTokens,colors:defaultColors,shadows:{},dropShadows:{}},media:defaultMedia,utils:defaultUtils,themeMap:defaultThemeMap};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{blueDark as r,greenDark as e,purpleDark as p,yellowDark as o,redDark as g,cyanDark as a,pinkDark as t,grayDark as d}from"./colors";export default{colors:{background:"$black",backgroundAlpha:"rgba(0, 0, 0, 0.6)",foreground:"$white",backgroundContrast:"$accents0",...r,...p,...e,...o,...g,...a,...t,...d,primaryLight:"$blue50",primaryLightHover:"$blue100",primaryLightActive:"$blue200",primaryLightContrast:"$blue600",secondaryLight:"$purple50",secondaryLightHover:"$purple100",secondaryLightActive:"$purple200",secondaryLightContrast:"$purple800",secondary:"$purple700",secondaryBorder:"$purple500",secondaryBorderHover:"$purple600",secondarySolidHover:"$purple700",secondaryShadow:"$purple500",successLight:"$green50",successLightHover:"$green100",successLightActive:"$green200",warningLight:"$yellow50",warningLightHover:"$yellow100",warningLightActive:"$yellow200",errorLight:"$red50",errorLightHover:"$red100",errorLightActive:"$red200",errorLightContrast:"$red700",neutralLight:"$gray200",neutralLightHover:"$gray300",neutralLightActive:"$gray400",neutralSolidContrast:"$white",text:"$gray900",link:"$blue700",codeLight:"$cyan50",code:"$cyan600",selection:"$pink800",border:"rgba(255, 255, 255, 0.15)"},shadows:{xs:"0 2px 8px 1px rgb(0 0 0 / 0.07), 0 1px 1px -1px rgb(0 0 0 / 0.04)",sm:"0 2px 8px 2px rgb(0 0 0 / 0.07), 0 2px 4px -1px rgb(0 0 0 / 0.04)",md:"0 12px 20px 6px rgb(0 0 0 / 0.08)",lg:"0 12px 34px 6px rgb(0 0 0 / 0.18)",xl:"0 25px 65px 0px rgb(0 0 0 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(0 0 0 / 0.07)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 4px rgb(0 0 0 / 0.04))",md:"drop-shadow(0 4px 12px rgb(0 0 0 / 0.08)) drop-shadow(0 20px 8px rgb(0 0 0 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(0 0 0 / 0.15)) drop-shadow(0 12px 14px rgb(0 0 0 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(0 0 0 / 0.35))"}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./types";export*from"./stitches.config";export*from"./colors";export{default as NextUIProvider}from"./theme-provider";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{blue as p,purple as x,green as r,yellow as o,red as d,cyan as g,pink as b,gray as a}from"./colors";export default{colors:{background:"$white",backgroundAlpha:"rgba(255, 255, 255, 0.8)",foreground:"$black",backgroundContrast:"$white",...p,...x,...r,...o,...d,...g,...b,...a,text:"$gray900",link:"$blue600",codeLight:"$pink100",code:"$pink600",selection:"$blue200",border:"rgba(0, 0, 0, 0.15)"},shadows:{xs:"0 2px 8px 1px rgb(104 112 118 / 0.07), 0 1px 1px -1px rgb(104 112 118 / 0.04)",sm:"0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)",md:"0 12px 20px 6px rgb(104 112 118 / 0.08)",lg:"0 12px 34px 6px rgb(104 112 118 / 0.18)",xl:"0 25px 65px 0px rgb(104 112 118 / 0.35)"},dropShadows:{xs:"drop-shadow(0 2px 4px rgb(104 112 118 / 0.07)) drop-shadow(0 1px 1px rgb(104 112 118 / 0.04))",sm:"drop-shadow(0 2px 8px rgb(104 112 118 / 0.07)) drop-shadow(0 2px 4px rgb(104 112 118 / 0.04))",md:"drop-shadow(0 4px 12px rgb(104 112 118 / 0.08)) drop-shadow(0 20px 8px rgb(104 112 118 / 0.04))",lg:"drop-shadow(0 12px 24px rgb(104 112 118 / 0.15)) drop-shadow(0 12px 14px rgb(104 112 118 / 0.1))",xl:"drop-shadow(0 25px 34px rgb(104 112 118 / 0.35))"}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{css as o}from"./stitches.config";export const sharedFocus=o({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}});export const cssFocusVisible=o({variants:{isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}});export const cssNoBlurriness=o({transform:"translateZ(0)",backfaceVisibility:"hidden"});export const sharedVisuallyHidden=o({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"});export const cssHideIn=o({variants:{hideIn:{xs:{"@xsMax":{display:"none"}},sm:{"@smMax":{display:"none"}},md:{"@mdMax":{display:"none"}},lg:{"@lgMax":{display:"none"}},xl:{"@xlMax":{display:"none"}}}}});export const cssShowIn=o({variants:{showIn:{xs:{"@xs":{display:"none"}},sm:{"@sm":{display:"none"}},md:{"@md":{display:"none"}},lg:{"@lg":{display:"none"}},xl:{"@xl":{display:"none"}}}}});export const cssHideShowIn=o(cssHideIn,cssShowIn);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createStitches as e}from"@stitches/react";import t from"../utils/deep-merge";import o from"./common";import s from"./light-theme";import r from"./dark-theme";export const getStitchesTheme=e=>t(e,o.theme);const m=e({...o,theme:{...o.theme,shadows:{...s.shadows},dropShadows:{...s.dropShadows},colors:{...o.theme.colors,...s.colors}}});export const createThemeBase=m.createTheme;export const styled=m.styled;export const css=m.css;export const globalCss=m.globalCss;export const keyframes=m.keyframes;export const getCssText=m.getCssText;export const theme=m.theme;export const config=m.config;export const createTheme=({type:e,theme:o,className:m})=>{if(!e)throw new Error("Theme type is required");return createThemeBase(m||`${e}-theme`,t("dark"===e?r:s,o))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";import{theme as e}from"./stitches.config";export const defaultContext={isDark:!1,theme:e,type:"light"};const o=t.createContext(defaultContext);export default o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useState as t,useMemo as r,useEffect as o}from"react";import{SSRProvider as m}from"@react-aria/ssr";import{OverlayProvider as s}from"@react-aria/overlays";import i from"../css-baseline";import l from"../utils/with-defaults";import a from"../utils/deep-merge";import{copyObject as n}from"../utils/object";import u from"../use-ssr";import{changeTheme as d,getThemeName as c,getDocumentCSSTokens as p,getDocumentTheme as v}from"./utils";import f,{defaultContext as b}from"./theme-context";import{jsx as h}from"react/jsx-runtime";import{jsxs as y}from"react/jsx-runtime";export default l((({theme:e,disableBaseline:l,children:x})=>{const{isBrowser:j}=u(),[B,N]=t(b.type),g=e=>{N((t=>t!==e?e:t))},w=e=>{const t=v(e);t&&g(t)},E=r((()=>{const e=j?p():{},t=a(n(b.theme),e),r=c(B);return{theme:t,type:r,isDark:"dark"===r}}),[B,j]);return o((()=>{var e,t,r;w(null==(e=document)?void 0:e.documentElement);const o=new MutationObserver((e=>{var t;if(e&&e.length>0&&"BODY"===(null==(t=e[0])?void 0:t.target.nodeName)){var r,o,m;const e=null==(r=document)||null==(o=r.body)||null==(m=o.dataset)?void 0:m.theme;e&&g(e)}else{var s;w(null==(s=document)?void 0:s.documentElement)}}));return o.observe(null==(t=document)?void 0:t.documentElement,{attributes:!0,attributeFilter:["data-theme","style"]}),o.observe(null==(r=document)?void 0:r.body,{attributes:!0,attributeFilter:["data-theme","style"]}),()=>o.disconnect()}),[]),o((()=>{j&&e&&null!=e&&e.className&&(d(e.className),g(c(e.className)))}),[j,e]),h(m,{children:h(s,{children:y(f.Provider,{value:E,children:[!l&&h(i,{}),x]})})})}),{disableBaseline:!1});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../utils/clsx";import{rgbToRgba as t,hexToRGBA as l}from"../utils/color";import o from"./common";import r from"./light-theme";export const getTokenValue=(e,r,n=1)=>{if("undefined"==typeof document||!e)return"";let s=getComputedStyle(document.documentElement);const c=`--${o.prefix}-${e}-${r}`,u=s.getPropertyValue(c);if(u&&u.includes("var")&&getTokenValue(e,u),u&&1!==n){if(u.includes("rgb"))return t(u,n);if(u.includes("#"))return l(u,n)}return u};export const getDocumentCSSTokens=()=>{const e=[...Object.keys(o.theme.colors),...Object.keys(r.colors)],t=Object.keys(r.shadows);return{colors:e.reduce(((e,t)=>{const l=getTokenValue("colors",t);return l&&(e[t]={prefix:o.prefix,scale:"colors",token:t,value:l}),e}),{}),shadows:t.reduce(((e,t)=>{const l=getTokenValue("shadows",t);return l&&(e[t]={prefix:o.prefix,scale:"shadows",token:t,value:l}),e}),{})}};export const getDocumentTheme=e=>{var t;const l=(null==e||null==(t=e.getAttribute("style"))?void 0:t.split(";").map((e=>e.trim())).filter((e=>e.includes("color-scheme"))))||[],o=l.length>0?l[0].replace("color-scheme: ","").replace(";",""):"";return(null==e?void 0:e.getAttribute("data-theme"))||o};export const getThemeName=e=>"string"==typeof e&&null!=e&&e.includes("-theme")?null==e?void 0:e.replace("-theme",""):e;export const changeTheme=t=>{var l,o;if(!document)return;const r=document.documentElement,n=(null==r||null==(l=r.getAttribute("class"))?void 0:l.split(" ").filter((e=>!e.includes("theme")&&!e.includes("light")&&!e.includes("dark"))))||[],s=(null==r||null==(o=r.getAttribute("style"))?void 0:o.split(";").filter((e=>!e.includes("color-scheme")&&e.length)).map((e=>`${e};`)))||[];null==r||r.setAttribute("class",e(n,`${getThemeName(t)}-theme`)),null==r||r.setAttribute("style",e(s,`color-scheme: ${t};`))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./tooltip";export{StyledTooltipTrigger,StyledTooltipArrow,StyledTooltipContent,StyledTooltip}from"./tooltip.styles";export default o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={top:-1e3,left:-1e3,right:-1e3,bottom:-1e3,width:0,height:0};export const getRect=o=>{if(!o||!o.current)return t;const e=o.current.getBoundingClientRect();return{...e,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top,top:e.top+document.documentElement.scrollTop,bottom:e.bottom+document.documentElement.scrollTop,left:e.left+document.documentElement.scrollLeft,right:e.right+document.documentElement.scrollLeft}};export const defaultTooltipPlacement={top:"-1000px",left:"-1000px",transform:"none"};export const getPlacement=(t,o,e)=>{const r={top:{top:o.top-e+"px",left:`${o.left+o.width/2}px`,transform:"translate(-50%, -100%)"},topStart:{top:o.top-e+"px",left:`${o.left}px`,transform:"translate(0, -100%)"},topEnd:{top:o.top-e+"px",left:`${o.left+o.width}px`,transform:"translate(-100%, -100%)"},bottom:{top:`${o.bottom+e}px`,left:`${o.left+o.width/2}px`,transform:"translate(-50%, 0)"},bottomStart:{top:`${o.bottom+e}px`,left:`${o.left}px`,transform:"translate(0, 0)"},bottomEnd:{top:`${o.bottom+e}px`,left:`${o.left+o.width}px`,transform:"translate(-100%, 0)"},left:{top:`${o.top+o.height/2}px`,left:o.left-e+"px",transform:"translate(-100%, -50%)"},leftStart:{top:`${o.top}px`,left:o.left-e+"px",transform:"translate(-100%, 0)"},leftEnd:{top:`${o.top+o.height}px`,left:o.left-e+"px",transform:"translate(-100%, -100%)"},right:{top:`${o.top+o.height/2}px`,left:`${o.right+e}px`,transform:"translate(0, -50%)"},rightStart:{top:`${o.top}px`,left:`${o.right+e}px`,transform:"translate(0, 0)"},rightEnd:{top:`${o.top+o.height}px`,left:`${o.right+e}px`,transform:"translate(0, -100%)"}};return r[t]||r.top};export const getIconPlacement=(t,o)=>{const e={top:{top:"auto",right:"auto",left:"50%",bottom:"0px",transform:"translate(-50%, 100%) rotate(45deg)"},topStart:{top:"auto",right:"auto",left:"8%",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},topEnd:{top:"auto",right:"8%",left:"auto",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},bottom:{top:"0px",right:"auto",left:"50%",bottom:"auto",transform:"translate(-50%, -100%) rotate(225deg)"},bottomStart:{top:"0px",right:"auto",left:"8%",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},bottomEnd:{top:"0px",right:"8%",left:"auto",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},left:{top:"50%",right:`-${o-1}px`,left:"auto",bottom:"auto",transform:"translate(100%, -50%) rotate(-45deg)"},leftStart:{top:"calc(15% + 1px)",right:`-${o-1}px`,left:"auto",bottom:"auto",transform:"translate(100%, 0) rotate(-45deg)"},leftEnd:{top:"auto",right:`-${o-1}px`,left:"auto",bottom:"calc(15% + 1px)",transform:"translate(100%, 0) rotate(-45deg)"},right:{top:"50%",right:"auto",left:`-${o-1}px`,bottom:"auto",transform:"translate(-100%, -50%) rotate(135deg)"},rightStart:{top:"calc(15% + 1px)",right:"auto",left:`-${o-1}px`,bottom:"auto",transform:"translate(-100%, 0) rotate(135deg)"},rightEnd:{top:"auto",right:"auto",left:`-${o-1}px`,bottom:"calc(15% + 1px)",transform:"translate(-100%, 0) rotate(135deg)"}};return e[t]||e.top};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useEffect as o,useMemo as e,useRef as r,useState as i}from"react";import{createPortal as s}from"react-dom";import a from"../use-portal";import m from"../use-resize";import n from"../utils/css-transition";import l from"../use-click-anywhere";import p from"../utils/clsx";import c from"../utils/with-defaults";import{StyledTooltipContent as f,StyledTooltip as u,StyledTooltipArrow as d}from"./tooltip.styles";import{getRect as h,getPlacement as w,defaultTooltipPlacement as x,getIconPlacement as $}from"./placement";import{jsx as v}from"react/jsx-runtime";import{jsxs as g}from"react/jsx-runtime";const N="nextui-tooltip",b=({children:t,parent:c,visible:b,offset:j,placement:y,rounded:k,animated:A,className:P,hideArrow:T,css:z,...C})=>{const E=a("tooltip"),I=r(null),[S,q]=i(x);if(!c)return null;const B=()=>{const t=w(y,h(c),j);q(t)},{transform:D,top:F,left:G,right:H,bottom:J}=e((()=>$(y,5)),[y]);m(B),l((()=>B())),o((()=>{B()}),[b]);const K=e((()=>b?"open":"closed"),[b]);return E?s(v(n,{enterTime:20,leaveTime:20,name:`${N}-wrapper`,visible:b,children:v(f,{ref:I,animated:A,className:p(`${N}-content`,`${N}--${K}`,P),css:{left:S.left,top:`calc(${S.top} + 6px)`,transform:S.transform,[`&.${N}-wrapper-enter-active`]:{opacity:1,top:S.top},...z},"data-state":K,onClick:t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},...C,children:g(u,{className:p(N,{[`${N}--with-arrow`]:!T}),"data-state":K,hideArrow:T,role:"tooltip",children:[v(d,{className:`${N}-arrow`,css:{left:G,top:F,right:H,bottom:J,transform:D}}),t]})})}),E):null};b.toString=()=>".nextui-tooltip-content";export default c(b,{placement:"top",offset:12,className:""});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useEffect as o,useRef as t,useState as r}from"react";import i from"../utils/with-defaults";import n from"../use-click-away";import l from"./tooltip-content";import{StyledTooltipTrigger as s}from"./tooltip.styles";import{jsx as a}from"react/jsx-runtime";import{jsxs as c}from"react/jsx-runtime";const m=({children:e,initialVisible:i,content:m,offset:u,placement:d,portalClassName:p,enterDelay:f,leaveDelay:h,trigger:w,rounded:b,animated:g,shadow:v,className:C,color:x,contentColor:k,onVisibleChange:y,hideArrow:N,css:j,triggerCss:D,onClick:M,keepMounted:V,visible:A,...T})=>{const B=t(),E=t(null),[F,I]=r(i),K={animated:g,visible:F,css:j,shadow:v,offset:u,placement:d,rounded:b,color:x,contentColor:k,hideArrow:N,parent:E,className:p},L=e=>{const o=()=>{clearTimeout(B.current),B.current=void 0},t=e=>{I(e),y(e),o()};o(),B.current=e?window.setTimeout((()=>t(!0)),f):window.setTimeout((()=>t(!1)),h)},S=e=>{"hover"===w&&L(e)};return n(E,(()=>"click"===w&&!V&&L(!1))),o((()=>{void 0!==A&&L(A)}),[A]),c(s,{ref:E,className:`nextui-tooltip-button ${C}`,css:{...D},role:"button",tabIndex:-1,onBlur:()=>S(!1),onClick:()=>{"click"===w&&L(!F),null==M||M()},onFocus:()=>S(!0),onKeyUp:()=>S(!0),onMouseEnter:()=>S(!0),onMouseLeave:()=>S(!1),...T,children:[e,m&&a(l,{...K,children:m})]})};m.toString=()=>".nextui-tooltip";export default i(m,{initialVisible:!1,hideArrow:!1,animated:!0,shadow:!0,rounded:!1,keepMounted:!1,trigger:"hover",enterDelay:0,leaveDelay:0,className:"",portalClassName:"",onVisibleChange:()=>{}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{styled as o}from"../theme/stitches.config";export const StyledTooltipTrigger=o("div",{width:"max-content",display:"inherit"});export const StyledTooltipArrow=o("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"});export const StyledTooltip=o("div",{position:"relative",fs:"$sm",padding:0,variants:{hideArrow:{false:{[`& ${StyledTooltipArrow}`]:{display:"block"}}}}});export const StyledTooltipContent=o("div",{position:"absolute",width:"auto",padding:"$3 $sm",opacity:0,zIndex:"$10",br:"$lg","@motion":{transition:"none"},variants:{color:{default:{$$tooltipColor:"$colors$background",bg:"$$tooltipColor"},primary:{$$tooltipColor:"$colors$primary",bg:"$$tooltipColor"},secondary:{$$tooltipColor:"$colors$secondary",bg:"$$tooltipColor"},success:{$$tooltipColor:"$colors$success",bg:"$$tooltipColor"},warning:{$$tooltipColor:"$colors$warning",bg:"$$tooltipColor"},error:{$$tooltipColor:"$colors$error",bg:"$$tooltipColor"},invert:{$$tooltipColor:"$colors$foreground",bg:"$$tooltipColor"}},contentColor:{default:{$$tooltipTextColor:"$colors$text",color:"$$tooltipTextColor"},primary:{$$tooltipTextColor:"$colors$primary",color:"$$tooltipTextColor"},secondary:{$$tooltipTextColor:"$colors$secondary",color:"$$tooltipTextColor"},success:{$$tooltipTextColor:"$colors$success",color:"$$tooltipTextColor"},warning:{$$tooltipTextColor:"$colors$warning",color:"$$tooltipTextColor"},error:{$$tooltipTextColor:"$colors$error",color:"$$tooltipTextColor"},invert:{$$tooltipTextColor:"$colors$invert",color:"$$tooltipTextColor"}},rounded:{true:{br:"$pill"}},shadow:{true:{bs:"$md"}},animated:{true:{transition:"opacity 0.25s ease 0s, top 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{color:"primary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"secondary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"success",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"error",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"invert",contentColor:"default",css:{$$tooltipTextColor:"$colors$background"}}],defaultVariants:{color:"default",contentColor:"default"}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./use-body-scroll";export default o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e,useRef as t,useState as r}from"react";const n={scrollLayer:!1},o=new Map,u=e=>!!(e.touches&&e.touches.length>1)||(e.preventDefault(),!1);export default(c,s)=>{if("undefined"==typeof document)return[!1,e=>e];const d=c||t(document.body),[i,a]=r(!1),l={...n,...s||{}},f=()=>!l.scrollLayer&&(!("undefined"==typeof window||!window.navigator)&&/iP(ad|hone|od)/.test(window.navigator.platform));return e((()=>{if(!d||!d.current)return;const e=d.current.style.overflow;if(i){if(o.has(d.current))return;return f()?document.addEventListener("touchmove",u,{passive:!1}):d.current.style.overflow="hidden",void o.set(d.current,{last:e})}if(o.has(d.current)){if(f())document.removeEventListener("touchmove",u);else{const e=o.get(d.current);d.current.style.overflow=e.last}o.delete(d.current)}}),[i,d]),[i,a]};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./use-click-anywhere";export default e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e}from"react";export default t=>{e((()=>{const e=e=>t(e);return document.addEventListener("click",e),()=>document.removeEventListener("click",e)}),[t])};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import a from"./use-click-away";export default a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as t}from"react";export default(e,n)=>{t((()=>{const t=t=>{const r=e.current;t&&r&&!r.contains(t.target)&&n(t)};return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}),[e,n])};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./use-clipboard";export default o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useCallback as o}from"react";import e from"../use-portal";import{warn as t}from"../utils/console";import{__DEV__ as r}from"../utils/assertion";const n={onError:()=>r&&t("Failed to copy.","use-clipboard")};export default(t=n)=>{const r=e("clipboard"),c=o((o=>{((o,e)=>{if(!o||!e)return;const r=window.getSelection();if(!r)return;o.style.whiteSpace="pre",o.textContent=e;const n=window.document.createRange();r.removeAllRanges(),n.selectNode(o),r.addRange(n);try{window.document.execCommand("copy")}catch(o){t.onError&&t.onError()}r.removeAllRanges(),o&&(o.textContent="")})(r,o)}),[r]);return{copy:c}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"./use-current-state";export default t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as t,useRef as r,useState as n}from"react";export default e=>{const[o,c]=n((()=>"function"==typeof e?e():e)),u=r(e);t((()=>{u.current=o}),[o]);return[o,t=>{const r="function"==typeof t?t(u.current):t;u.current=r,c(r)},u]};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./use-drip";export default r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useState as t}from"react";export default(e=!1,n)=>{const[r,o]=t(e),[c,i]=t(0),[l,u]=t(0);return{visible:r,x:c,y:l,onClick:t=>{if(!n.current)return;const e=n.current.getBoundingClientRect();o(!0),i(t.clientX-e.left),u(t.clientY-e.top)},onCompleted:()=>{o(!1),i(0),u(0)}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"./use-input";export default t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"../use-current-state";export default t=>{const[r,a,u]=e(t);return{value:r,setValue:a,currentRef:u,reset:()=>a(t),bindings:{value:r,onChange:e=>{"object"==typeof e&&e.target?a(e.target.value):a(e)}}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./use-intersection-observer";export default e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e,useState as n}from"react";function r(r,{threshold:t=0,root:o=null,rootMargin:i="0%",freezeOnceVisible:s=!1}={}){const[c,l]=n(),u=(null==c?void 0:c.isIntersecting)&&s,d=!(null==c||!c.isIntersecting),f=([e])=>{l(e)};return e((()=>{if("undefined"==typeof window)return;const e=null==r?void 0:r.current;if(!!!window.IntersectionObserver||u||!e)return;const n=new IntersectionObserver(f,{threshold:t,root:o,rootMargin:i});return n.observe(e),()=>n.disconnect()}),[r,t,o,i,u]),{entry:c,setEntry:l,isVisible:d,isFrozen:u}}export default r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const KeyCode={Unknown:0,Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,Meta:91,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,Equal:187,Minus:189,Backquote:192,Backslash:220};export const KeyMod={CtrlCmd:2048,Shift:1024,Alt:512,WinCtrl:256};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getKeyValue as t}from"../utils/object";import{isMac as r}from"../utils/collections";import{KeyMod as o}from"./codes";export const getCtrlKeysByPlatform=()=>({CtrlCmd:r()?"metaKey":"ctrlKey",WinCtrl:r()?"ctrlKey":"metaKey"});export const getActiveModMap=r=>{const e=r.filter((r=>!!t(o,r))),l={CtrlCmd:!1,Shift:!1,Alt:!1,WinCtrl:!1};return e.forEach((r=>{const e=t(o,r);l[e]=!0})),l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./use-keyboard";import{KeyMod as r,KeyCode as e}from"./codes";export{r as KeyMod,e as KeyCode};export default o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e}from"react";import{getKeyValue as t}from"../utils/object";import{KeyMod as r}from"./codes";import{getActiveModMap as o,getCtrlKeysByPlatform as n}from"./helper";export default(p,s,i={})=>{const a=Array.isArray(s)?s:[s],{disableGlobalEvent:y=!1,capture:l=!1,stopPropagation:d=!1,preventDefault:u=!1,event:m="keydown"}=i,f=o(a),C=a.filter((e=>!t(r,e))),{CtrlCmd:c,WinCtrl:k}=n(),K=e=>{f.Shift&&!e.shiftKey||f.Alt&&!e.altKey||f.CtrlCmd&&!e[c]||f.WinCtrl&&!e[k]||C.length>0&&!C.includes(e.keyCode)||(d&&e.stopPropagation(),u&&e.preventDefault(),p&&p(e))};e((()=>(y||document.addEventListener(m,K),()=>{document.removeEventListener(m,K)})),[y]);const v=(e,t=!1)=>e!==m||t!==l?()=>{}:e=>K(e);return{bindings:{onKeyDown:v("keydown"),onKeyDownCapture:v("keydown",!0),onKeyPress:v("keypress"),onKeyPressCapture:v("keypress",!0),onKeyUp:v("keyup"),onKeyUpCapture:v("keyup",!0)}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useMemo as t,useCallback as r,useState as e,useEffect as n}from"react";import{range as i}from"../utils/numbers";export const DOTS="dots";export default({page:o,total:a,siblings:s=1,boundaries:u=1,initialPage:c=1,onChange:f})=>{const[m,g]=e(o||c),l=t=>{g(t),f&&f(t)};n((()=>{o&&o!==m&&g(o)}),[o]);const p=r((t=>{l(t<=0?1:t>a?a:t)}),[a]);return{range:t((()=>{if(2*s+3+2*u>=a)return i(1,a);const t=Math.max(m-s,u),r=Math.min(m+s,a-u),e=t>u+2,n=r<a-(u+1);if(!e&&n){return[...i(1,2*s+u+2),DOTS,...i(a-(u-1),a)]}if(e&&!n){const t=u+1+2*s;return[...i(1,u),DOTS,...i(a-t,a)]}return[...i(1,u),DOTS,...i(t,r),DOTS,...i(a-u+1,a)]}),[a,s,m]),active:m,setPage:p,next:()=>p(m+1),previous:()=>p(m-1),first:()=>p(1),last:()=>p(a)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./use-portal";export default o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as t,useState as e}from"react";import o from"../use-ssr";import{getId as r}from"../utils/collections";const n=t=>{const e=document.createElement("div");return e.setAttribute("id",t),e};export default(l=r(),u)=>{const i=`nextui-${l}`,{isBrowser:s}=o(),[c,d]=e(s?n(i):null);return t((()=>{const t=(u?u():null)||document.body,e=null==t?void 0:t.querySelector(`#${i}`),o=e||n(i);e||t.appendChild(o),d(o)}),[]),c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./use-real-shape";export default e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as t,useState as e}from"react";const i=(t,e)=>{if(!t)return 0;const i=t.includes("px")?+t.split("px")[0]:t.includes("%")?+t.split("%")[0]*e*.01:t;return Number.isNaN(+i)?0:+i};export const getRealShape=t=>{if(!t||"undefined"==typeof window)return{width:0,height:0};const e=t.getBoundingClientRect(),{width:h,height:n}=window.getComputedStyle(t);return{width:i(`${h}`,e.width),height:i(`${n}`,e.height)}};export default i=>{const[h,n]=e({width:0,height:0}),r=()=>{const{width:t,height:e}=getRealShape(i.current);n({width:t,height:e})};return t((()=>r()),[i.current]),[h,r]};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./use-resize";export default e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e}from"react";export default(r,t=!0)=>{e((()=>{const e=()=>r();return t&&e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[])};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"./use-scroll-position";export default o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useRef as n,useEffect as r}from"react";const e="undefined"!=typeof window;function t(n){return e?n?{x:n.scrollLeft,y:n.scrollTop}:{x:window.scrollX,y:window.scrollY}:{x:0,y:0}}export default e=>{const{elementRef:l,wait:o=30,callback:c,enabled:u}=e,i=n(u?t(null==l?void 0:l.current):{x:0,y:0});let s=null;const d=()=>{const n=t(null==l?void 0:l.current);"function"==typeof c&&c({prevPos:i.current,currPos:n}),i.current=n,s=null};return r((()=>{if(!u)return;const n=()=>{o?null===s&&(s=setTimeout(d,o)):d()},r=(null==l?void 0:l.current)||window;return r.addEventListener("scroll",n),()=>r.removeEventListener("scroll",n)}),[null==l?void 0:l.current,o,u]),i.current};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"./use-ssr";export default r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useEffect as e,useState as o}from"react";export default()=>{const[n,r]=o(!1);return e((()=>{r(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))}),[]),{isBrowser:n,isServer:!n}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./use-theme";export default e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";import e from"../theme/theme-context";export default()=>t.useContext(e);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./user";import r from"./user-link";e.Link=r;export{StyledUser,StyledUserInfo,StyledUserName,StyledUserDesc}from"./user.styles";export default e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"react";import e from"../link";import t from"../utils/clsx";import{__DEV__ as o}from"../utils/assertion";import{jsx as i}from"react/jsx-runtime";const s=r.forwardRef(((r,o)=>{const{rel:s="noopener",color:n="primary",target:l="_blank",className:m,children:a,...c}=r;return i(e,{ref:o,className:t("nextui-user-link",m),color:n,rel:s,target:l,...c,children:a})}));o&&(s.displayName="NextUI.UserLink"),s.toString=()=>".nextui-user-link";const n=r.memo(s);export default n;
|
package/esm/user/user.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useFocusRing as r}from"@react-aria/focus";import e from"react";import{mergeProps as s}from"@react-aria/utils";import{Avatar as o}from"../index";import{useDOMRef as t}from"../utils/dom";import{__DEV__ as i}from"../utils/assertion";import{StyledUser as a,StyledUserInfo as n,StyledUserName as c,StyledUserDesc as m}from"./user.styles";import{jsx as u}from"react/jsx-runtime";import{jsxs as d}from"react/jsx-runtime";export const User=e.forwardRef(((e,i)=>{const{as:l,css:p,src:x,text:f,name:b,children:N,altText:U,color:h,squared:j,bordered:z,size:g,description:q,zoomed:y,pointer:F,...R}=e,V=t(i),{isFocusVisible:k,focusProps:v}=r();return d(a,{ref:V,as:l,...s(R,v),css:s("button"===l?{borderRadius:"$xs",background:"none",appearance:"none",p:0,m:0,outline:"none",border:"none",cursor:"pointer"}:{},p),isFocusVisible:k,children:[u(o,{alt:U,bordered:z,className:"nextui-user-avatar",color:h,pointer:F,size:g,squared:j,src:x,text:f,zoomed:y}),d(n,{className:"nextui-user-info",children:[u(c,{className:"nextui-user-name",children:b}),u(m,{className:"nextui-user-desc",children:q||N})]})]})}));i&&(User.displayName="NextUI.User"),User.toString=()=>".nextui-user";export default User;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{styled as e}from"../theme/stitches.config";import{cssFocusVisible as t}from"../theme/shared-css";export const StyledUser=e("div",{d:"inline-flex",p:"0 $sm",jc:"center",ai:"center",w:"max-content",maxWidth:"100%",transition:"transform 250ms ease 0ms, box-shadow 0.25s ease 0s","@motion":{transition:"none"}},t);export const StyledUserInfo=e("div",{ml:"$sm",d:"inline-flex",fd:"column",alignItems:"flex-start",whiteSpace:"nowrap"});export const StyledUserName=e("span",{fontSize:"$sm",color:"$text",lh:"$sm",tt:"capitalize",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"});export const StyledUserDesc=e("span",{fontSize:"$xs",color:"$accents7","*:first-child":{mt:0},"*:last-child":{mb:0}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{keyframes as a}from"../theme/stitches.config";export const reboundAnimation=a({"0%":{transform:"scale(0.95)"},"40%":{transform:"scale(1.02)"},"80%":{transform:"scale(0.98)"},"100%":{transform:"scale(1)"}});export const appearanceIn=a({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.02)"},"100%":{opacity:1,transform:"scale(1)"}});export const appearanceOut=a({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.95)"}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const __DEV__="production"!==process.env.NODE_ENV;export const __TEST__="test"===process.env.NODE_ENV;export function isArray(t){return Array.isArray(t)}export function isEmptyArray(t){return isArray(t)&&0===t.length}export function isObject(t){const r=typeof t;return null!=t&&("object"===r||"function"===r)&&!isArray(t)}export function isEmptyObject(t){return isObject(t)&&0===Object.keys(t).length}export function isEmpty(t){return isArray(t)?isEmptyArray(t):isObject(t)?isEmptyObject(t):null==t||""===t}export function isFunction(t){return"function"==typeof t}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";import{styled as r,keyframes as e}from"../theme/stitches.config";import s from"./clsx";import{__DEV__ as o}from"./assertion";import{jsx as i}from"react/jsx-runtime";export const stroke=e({"100%":{strokeDashoffset:0}});const a=r("svg",{d:"block",path:{transformOrigin:"50% 50%",strokeDasharray:48,strokeDashoffset:48,animation:`${stroke} .25s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards`}}),c=t=>{const{width:r=24,height:e=24,size:o,strokeWidth:c=3,fill:m="currentColor",css:h,className:n}=t;return i(a,{className:s("nextui-checkmark",n),css:{...h},height:o||e,role:"img",viewBox:"0 0 52 52",width:o||r,xmlns:"http://www.w3.org/2000/svg",children:i("path",{d:"M14.1 27.2l7.1 7.2 16.7-16.8",fill:"none",stroke:m,strokeWidth:c})})};o&&(c.displayName="NextUI.Checkmark"),c.toString=()=>".nextui-checkmark";export default c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import i from"./with-defaults";import{jsx as t}from"react/jsx-runtime";const a=({size:e,fill:i,plain:a,width:l,height:s,className:o,...h})=>t("svg",a?{className:o,fill:"none",height:e||s,stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:e||l,...h,children:t("path",{d:"M18 6L6 18M6 6l12 12"})}:{className:o,height:e||s,viewBox:"0 0 24 24",width:e||l,...h,children:t("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:i})}),l=e.memo(a);export default i(l,{width:24,height:24,plain:!1,className:""});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}export default function(...e){for(var t,f,n=0,o="";n<e.length;)(t=e[n++])&&(f=r(t))&&(o&&(o+=" "),o+=f);return o}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";export const getId=()=>Math.random().toString(32).slice(2,10);export const hasChild=(t,n)=>(e.Children.map(t,(t=>e.isValidElement(t)?t.type:null))||[]).includes(n);export const pick=(e,t)=>e.reduce(((e,n)=>(e[n]=t[n],e)),{});export const pickChild=(t,n)=>{let r=[];return[e.Children.map(t,(t=>e.isValidElement(t)&&t.type===n?(r.push(t),null):t)),r.length>=0?r:void 0]};export const pickSingleChild=(e,t)=>{const[n,r]=pickChild(e,t);let o=null;return r&&r.length>=1&&(o=r.length>=0?r[0]:void 0),[n,o]};export const isChildElement=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1};export const isBrowser=()=>Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);export const isMac=()=>!!Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)&&navigator.platform.toUpperCase().indexOf("MAC")>=0;export const setChildrenIndex=(t,n=[])=>{if(0===e.Children.count(t))return[];const r=0===n.length,o=(t,n={})=>e.cloneElement(t,n);let i=0;return e.Children.map(t,(t=>{if(!e.isValidElement(t))return t;if(i+=1,r)return o(t,{index:i});return n.find((e=>e===t.type))?o(t,{index:i}):(i-=1,t)}))};export const flattenArray=e=>e.reduce(((e,t)=>e.concat(Array.isArray(t)?flattenArray(t):t)),[]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{normalColors as t,simpleColors as r}from"./prop-types";export const getCssVar=(t,r=null)=>{if("undefined"==typeof document||!t)return"";const e=r||document.documentElement,o=isCssVar(t)?t.replace("var(","").replace(")",""):t.includes("--")?t:`--${t}`;return getComputedStyle(e).getPropertyValue(o)};export const isCssVar=t=>!(!t||0!==(null==t?void 0:t.indexOf("var(")));export const isHex=t=>/#[a-fA-F0-9]{3,6}/g.test(t);export const hexToRGBA=(t,r=1)=>{let e=0,o=0,n=0;return 4==t.length?(e="0x"+t[1]+t[1],o="0x"+t[2]+t[2],n="0x"+t[3]+t[3]):7==t.length&&(e="0x"+t[1]+t[2],o="0x"+t[3]+t[4],n="0x"+t[5]+t[6]),`rgba(${+e},${+o},${+n},${r})`};export const isNormalColor=r=>{let e=t.find((t=>t===r));return null!=e};export const isSimpleColor=t=>{let e=r.find((r=>r===t));return null!=e};export const isColor=t=>{let r=(new Option).style;return r.color=t,r.color==t};export const hexToRgb=t=>{const r=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((t,r,e,o)=>`${r}${r}${e}${e}${o}${o}`)),e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);if(!e)throw new Error(`Next UI: Unsupported ${t} color.`);return[Number.parseInt(e[1],16),Number.parseInt(e[2],16),Number.parseInt(e[3],16)]};export const hexFromString=(t,r="",e=!1)=>{const o=t.match(/#[a-fA-F0-9]{6}|#[a-fA-F0-9]{3}$/g);return o&&o.length>0?e?o[o.length-1]:o:r};export const colorToRgbValues=t=>{const r=isCssVar(t)?getCssVar(t):t;if("#"===r.charAt(0))return hexToRgb(r);const e=r.replace(/ /g,""),o=r.substr(0,4),n=e.match(/\((.+)\)/);return o.startsWith("rgb")&&n?n[1].split(",").map((t=>Number.parseFloat(t))):(console.warn('NextUI: Only supports ["RGB", "RGBA", "HEX"] color.'),[0,0,0])};export const addColorAlpha=(t,r=1)=>{if(!t)return"";const e=isCssVar(t)?getCssVar(t):t;if(/#[a-fA-F0-9]{3,6}/g.test(e))return hexToRGBA(e,r);if(!/^#|rgb|RGB/.test(e))return e;const[o,n,s]=colorToRgbValues(e);return`rgba(${o}, ${n}, ${s}, ${r>1?1:r<0?0:r})`};export const rgbToRgba=(t,r=1)=>{const[e,o,n]=t.split(",").map((t=>Number.parseFloat(t)));return`rgba(${e}, ${o}, ${n}, ${r>1?1:r<0?0:r})`};function e(t,r){return r=r||2,(new Array(r).join("0")+t).slice(-r)}export const invertHex=(t,r=!0)=>{let o=isCssVar(t)?getCssVar(t):t;if(0===o.indexOf("#")&&(o=o.slice(1)),3===o.length&&(o=o[0]+o[0]+o[1]+o[1]+o[2]+o[2]),6!==o.length)return t;let n=parseInt(o.slice(0,2),16),s=parseInt(o.slice(2,4),16),l=parseInt(o.slice(4,6),16);return r?.299*n+.587*s+.114*l>186?"#000000":"#FFFFFF":(n=255-n,s=255-s,l=255-l,"#"+e(n.toString(16))+e(s.toString(16))+e(l.toString(16)))};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={};export const warn=(n,e)=>{const r=`[Next UI]${e?` [${e}]`:" "}: ${n}`;if("undefined"!=typeof console&&!o[r]){if(o[r]=!0,"production"!==process.env.NODE_ENV)return console.error(r);console.warn(r)}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as r from"react";export function createContext(t={}){const{strict:e=!0,errorMessage:o="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=t,c=r.createContext(void 0);return c.displayName=n,[c.Provider,function t(){const n=r.useContext(c);if(!n&&e){const r=new Error(o);throw r.name="ContextError",null==Error.captureStackTrace||Error.captureStackTrace(r,t),r}return n},c]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useEffect as l,useState as t}from"react";import r from"./with-defaults";import i from"./clsx";export default r((({children:r,childrenRef:n,className:a,visible:m,enterTime:s,leaveTime:c,clearTime:o,name:u,onExited:T,onEntered:d,...f})=>{const[p,v]=t(""),[N,$]=t(m);return l((()=>{const e=m?"enter":"leave",l=m?s:c;m&&!N&&$(!0),v(`${u}-${e}`);const t=setTimeout((()=>{v(`${u}-${e} ${u}-${e}-active`),"leave"===e?null==T||T():null==d||d(),clearTimeout(t)}),l),r=setTimeout((()=>{m||(v(""),$(!1)),clearTimeout(r)}),l+o);return()=>{clearTimeout(t),clearTimeout(r)}}),[m,N]),l((()=>{if(null==n||!n.current)return;const e=p.split(" "),l=n.current.className.split(" ").filter((e=>!e.includes(u)));n.current.className=i(l,e)}),[n,p]),e.isValidElement(r)&&N?e.cloneElement(r,{...f,className:i(r.props.className,a,null!=n&&n.current?"":p)}):null}),{visible:!1,enterTime:60,leaveTime:60,clearTime:60,className:"",name:"transition"});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function t(o){for(var r,e,l=Array.prototype.slice.call(arguments,1);l.length;)for(e in r=l.shift())r.hasOwnProperty(e)&&("object"==typeof o[e]&&o[e]&&"[object Array]"!==Object.prototype.toString.call(o[e])&&"object"==typeof r[e]&&null!==r[e]?o[e]=t({},o[e],r[e]):o[e]=r[e]);return o}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const getMargin=t=>`calc(${15.25*t}pt + 1px * ${t-1})`;
|
package/esm/utils/dom.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useImperativeHandle as e,useLayoutEffect as t,useRef as r}from"react";export function canUseDOM(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}export const isBrowser=canUseDOM();export function detectDeviceType(e){const{userAgent:t}=e;return/(tablet)|(iPad)|(Nexus 9)/i.test(t)?"tablet":/(mobi)/i.test(t)?"phone":"desktop"}export function detectOS(e){return!!isBrowser&&function(e){const{userAgent:t,platform:r}=e;switch(!0){case/Android/.test(t):return"Android";case/iPhone|iPad|iPod/.test(r):return"iOS";case/Win/.test(r):return"Windows";case/Mac/.test(r):return"Mac";case/CrOS/.test(t):return"Chrome OS";case/Firefox/.test(t):return"Firefox OS";default:return null}}(window.navigator)===e}export function detectBrowser(e){return!!isBrowser&&function(e){const{userAgent:t,vendor:r}=e,n=/(android)/i.test(t);switch(!0){case/CriOS/.test(t):return"Chrome for iOS";case/Edg\//.test(t):return"Edge";case n&&/Silk\//.test(t):return"Silk";case/Chrome/.test(t)&&/Google Inc/.test(r):return"Chrome";case/Firefox\/\d+\.\d+$/.test(t):return"Firefox";case n:return"AOSP";case/MSIE|Trident/.test(t):return"IE";case/Safari/.test(e.userAgent)&&/Apple Computer/.test(t):return"Safari";case/AppleWebKit/.test(t):return"WebKit";default:return null}}(window.navigator)===e}export function detectTouch(){return!!isBrowser&&(null===window.ontouchstart&&null===window.ontouchmove&&null===window.ontouchend)}export function createDOMRef(e){return{UNSAFE_getDOMNode:()=>e.current}}export function createFocusableRef(e,t=e){return{...createDOMRef(e),focus(){t.current&&t.current.focus()}}}export function useDOMRef(t){const n=r(null);return e(t,(()=>n.current)),n}export function useFocusableRef(t,n){const o=r(null);return e(t,(()=>createFocusableRef(o,n))),o}export function useSyncRef(e,r){t((()=>{if(e&&e.ref&&r&&r.current)return e.ref.current=r.current,()=>{var t;null!=(t=e.ref)&&t.current&&(e.ref.current=null)}}),[e,r])}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useEffect as e,useRef as i}from"react";import{styled as o,keyframes as r}from"../theme/stitches.config";import l from"../utils/with-defaults";import n from"../utils/clsx";import{jsx as s}from"react/jsx-runtime";const a=r({"0%":{opacity:0,transform:"scale(0.25)"},"30%":{opacity:1},"80%":{opacity:.5},"100%":{transform:"scale(28)",opacity:0}});export const StyledDrip=o("div",{position:"absolute",left:0,right:0,top:0,bottom:0,"& svg":{position:"absolute",animation:`350ms linear ${a}`,animationFillMode:"forwards",width:"$md",height:"$md"}});const m=({visible:t,x:o,y:r,color:l,onCompleted:a,className:m,...c})=>{const d=i(null),p=Number.isNaN(+r)?0:r-10,f=Number.isNaN(+o)?0:o-10;return e((()=>{let t=d.current;if(t)return t.addEventListener("animationend",a),()=>{t&&t.removeEventListener("animationend",a)}})),t?s(StyledDrip,{ref:d,className:n("nextui-drip",m),...c,children:s("svg",{height:"20",style:{top:p,left:f},viewBox:"0 0 20 20",width:"20",children:s("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:s("g",{className:"nextui-drip-filler",fill:l,children:s("rect",{height:"100%",rx:"10",width:"100%"})})})})}):null},c=t.memo(m);export default l(c,{visible:!1,x:0,y:0,className:""});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e,{useEffect as t,useRef as r,useState as i}from"react";import{styled as n}from"../theme/stitches.config";import a from"../utils/with-defaults";import o from"../use-real-shape";import{jsx as c}from"react/jsx-runtime";const s=n("div",{p:0,m:0,h:0,opacity:0,overflow:"hidden",variants:{expanded:{true:{opacity:1}}}});export default a((({isExpanded:e,delay:n,animated:a,css:u,children:m})=>{const[d,h]=i(e?"auto":"0"),[l,p]=i(e),f=r(null),x=r(),T=r(),w=r(),[g,y]=o(f);return t((()=>h(`${g.height}px`)),[g.height]),t((()=>{if(e!==l)return e||(y(),h(`${g.height}px`)),x.current=window.setTimeout((()=>{p(e),clearTimeout(x.current)}),30),e?w.current=window.setTimeout((()=>{h("auto"),clearTimeout(w.current)}),n):T.current=window.setTimeout((()=>{clearTimeout(T.current)}),n/2),()=>{clearTimeout(x.current),clearTimeout(T.current),clearTimeout(w.current)}}),[e]),c(s,{css:{height:l?d:"0",transition:a?`height ${n}ms ease 0ms,\n opacity ${1.5*n}ms ease 0ms;`:"none",...u},expanded:l,children:c("div",{ref:f,className:"nextui-expand-content",children:m})})}),{isExpanded:!1,animated:!0,delay:200});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t from"react";import{jsx as e}from"react/jsx-runtime";import{jsxs as i}from"react/jsx-runtime";export const Sun=({fill:t,filled:o,size:r,height:n,width:h,...s})=>o?e("svg",{height:r||n||24,viewBox:"0 0 512 512",width:r||h||24,...s,children:e("path",{d:"M256 118a22 22 0 01-22-22V48a22 22 0 0144 0v48a22 22 0 01-22 22zM256 486a22 22 0 01-22-22v-48a22 22 0 0144 0v48a22 22 0 01-22 22zM369.14 164.86a22 22 0 01-15.56-37.55l33.94-33.94a22 22 0 0131.11 31.11l-33.94 33.94a21.93 21.93 0 01-15.55 6.44zM108.92 425.08a22 22 0 01-15.55-37.56l33.94-33.94a22 22 0 1131.11 31.11l-33.94 33.94a21.94 21.94 0 01-15.56 6.45zM464 278h-48a22 22 0 010-44h48a22 22 0 010 44zM96 278H48a22 22 0 010-44h48a22 22 0 010 44zM403.08 425.08a21.94 21.94 0 01-15.56-6.45l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.55 37.56zM142.86 164.86a21.89 21.89 0 01-15.55-6.44l-33.94-33.94a22 22 0 0131.11-31.11l33.94 33.94a22 22 0 01-15.56 37.55zM256 358a102 102 0 11102-102 102.12 102.12 0 01-102 102z",fill:t})}):i("svg",{height:r||n||24,viewBox:"0 0 512 512",width:r||h||24,...s,children:[e("path",{d:"M256 48v48M256 416v48M403.08 108.92l-33.94 33.94M142.86 369.14l-33.94 33.94M464 256h-48M96 256H48M403.08 403.08l-33.94-33.94M142.86 142.86l-33.94-33.94",fill:"none",stroke:t,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32}),e("circle",{cx:256,cy:256,fill:"none",r:80,stroke:t,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32})]});export const Mail=({fill:t,size:o,height:r,width:n,...h})=>e("svg",{height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,...h,children:i("g",{fill:"none",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[e("path",{d:"M12 20.5H7c-3 0-5-1.5-5-5v-7c0-3.5 2-5 5-5h10c3 0 5 1.5 5 5v3"}),e("path",{d:"M17 9l-3.13 2.5a3.166 3.166 0 01-3.75 0L7 9M19.21 14.77l-3.539 3.54a1.232 1.232 0 00-.3.59l-.19 1.35a.635.635 0 00.76.76l1.35-.19a1.189 1.189 0 00.59-.3l3.54-3.54a1.365 1.365 0 000-2.22 1.361 1.361 0 00-2.211.01zM18.7 15.28a3.185 3.185 0 002.22 2.22"})]})});export const Moon=({fill:t,filled:i,size:o,height:r,width:n,...h})=>e("svg",i?{height:o||r||24,viewBox:"0 0 512 512",width:o||n||24,...h,children:e("path",{d:"M152.62 126.77c0-33 4.85-66.35 17.23-94.77C87.54 67.83 32 151.89 32 247.38 32 375.85 136.15 480 264.62 480c95.49 0 179.55-55.54 215.38-137.85-28.42 12.38-61.8 17.23-94.77 17.23-128.47 0-232.61-104.14-232.61-232.61z",fill:t})}:{height:o||r||24,viewBox:"0 0 512 512",width:o||n||24,...h,children:e("path",{d:"M160 136c0-30.62 4.51-61.61 16-88C99.57 81.27 48 159.32 48 248c0 119.29 96.71 216 216 216 88.68 0 166.73-51.57 200-128-26.39 11.49-57.38 16-88 16-119.29 0-216-96.71-216-216z",fill:"none",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32})});export const Lock=({fill:t,size:o,height:r,width:n,...h})=>{const s=t;return e("svg",{"data-name":"Iconly/Curved/Lock",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:i("g",{transform:"translate(3.5 2)",children:[e("path",{d:"M9.121,6.653V4.5A4.561,4.561,0,0,0,0,4.484V6.653",fill:"none",stroke:s,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5,transform:"translate(3.85 0.75)"}),e("path",{d:"M.5,0V2.221",fill:"none",stroke:s,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5,transform:"translate(7.91 12.156)"}),e("path",{d:"M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.4,0,7.66,0Z",fill:"none",stroke:s,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5,transform:"translate(0.75 6.824)"})]})})};export const Unlock=({fill:t,size:o,height:r,width:n,...h})=>{const s=t;return e("svg",{"data-name":"Iconly/Curved/Lock",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:i("g",{transform:"translate(3.5 2)",children:[e("path",{d:"M8.927,3.237A4.562,4.562,0,0,0,0,4.484V6.653",fill:"none",stroke:s,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5,transform:"translate(3.849 0.75)"}),e("path",{d:"M.5,0V2.221",fill:"none",stroke:s,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5,transform:"translate(7.91 12.156)"}),e("path",{d:"M7.66,0C1.915,0,0,1.568,0,6.271s1.915,6.272,7.66,6.272,7.661-1.568,7.661-6.272S13.406,0,7.66,0Z",fill:"none",stroke:s,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5,transform:"translate(0.75 6.824)"})]})})};export const Password=({fill:t,size:o,height:r,width:n,...h})=>e("svg",{height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,...h,children:i("g",{fill:t,children:[e("path",{d:"M18.75 8v2.1a12.984 12.984 0 00-1.5-.1V8c0-3.15-.89-5.25-5.25-5.25S6.75 4.85 6.75 8v2a12.984 12.984 0 00-1.5.1V8c0-2.9.7-6.75 6.75-6.75S18.75 5.1 18.75 8z"}),e("path",{d:"M18.75 10.1a12.984 12.984 0 00-1.5-.1H6.75a12.984 12.984 0 00-1.5.1C2.7 10.41 2 11.66 2 15v2c0 4 1 5 5 5h10c4 0 5-1 5-5v-2c0-3.34-.7-4.59-3.25-4.9zM8.71 16.71A1.052 1.052 0 018 17a1 1 0 01-.38-.08 1.032 1.032 0 01-.33-.21A1.052 1.052 0 017 16a1 1 0 01.08-.38 1.155 1.155 0 01.21-.33 1.032 1.032 0 01.33-.21 1 1 0 011.09.21 1.155 1.155 0 01.21.33A1 1 0 019 16a1.052 1.052 0 01-.29.71zm4.21-.33a1.155 1.155 0 01-.21.33A1.052 1.052 0 0112 17a1.033 1.033 0 01-.71-.29 1.155 1.155 0 01-.21-.33A1 1 0 0111 16a1.033 1.033 0 01.29-.71 1.047 1.047 0 011.42 0A1.033 1.033 0 0113 16a1 1 0 01-.08.38zm3.79.33a1.014 1.014 0 01-1.42 0 1.014 1.014 0 010-1.42 1.047 1.047 0 011.42 0c.04.05.08.1.12.16a.556.556 0 01.09.17.636.636 0 01.06.18 1.5 1.5 0 01.02.2 1.052 1.052 0 01-.29.71z"})]})});export const Notification=({fill:t,size:i,height:o,width:r,...n})=>e("svg",{fill:"none",height:i||o||24,viewBox:"0 0 24 24",width:i||r||24,xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{clipRule:"evenodd",d:"M18.707 8.796c0 1.256.332 1.997 1.063 2.85.553.628.73 1.435.73 2.31 0 .874-.287 1.704-.863 2.378a4.537 4.537 0 01-2.9 1.413c-1.571.134-3.143.247-4.736.247-1.595 0-3.166-.068-4.737-.247a4.532 4.532 0 01-2.9-1.413 3.616 3.616 0 01-.864-2.378c0-.875.178-1.682.73-2.31.754-.854 1.064-1.594 1.064-2.85V8.37c0-1.682.42-2.781 1.283-3.858C7.861 2.942 9.919 2 11.956 2h.09c2.08 0 4.204.987 5.466 2.625.82 1.054 1.195 2.108 1.195 3.745v.426zM9.074 20.061c0-.504.462-.734.89-.833.5-.106 3.545-.106 4.045 0 .428.099.89.33.89.833-.025.48-.306.904-.695 1.174a3.635 3.635 0 01-1.713.731 3.795 3.795 0 01-1.008 0 3.618 3.618 0 01-1.714-.732c-.39-.269-.67-.694-.695-1.173z",fill:t,fillRule:"evenodd"})});export const User=({fill:t,size:o,height:r,width:n,...h})=>e("svg",{"data-name":"Iconly/Curved/Profile",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:i("g",{fill:"none",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[e("path",{d:"M11.845 21.662C8.153 21.662 5 21.088 5 18.787s3.133-4.425 6.845-4.425c3.692 0 6.845 2.1 6.845 4.4s-3.134 2.9-6.845 2.9z","data-name":"Stroke 1"}),e("path",{d:"M11.837 11.174a4.372 4.372 0 10-.031 0z","data-name":"Stroke 3"})]})});export const VolumeUp=({fill:t,size:i,height:o,width:r,...n})=>e("svg",{fill:"none",height:i||o||24,viewBox:"0 0 24 24",width:i||r||24,xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{clipRule:"evenodd",d:"M13.357 6.45c-.05-.486-.103-.99-.232-1.494C12.775 3.752 11.801 3 10.758 3c-.582-.002-1.318.356-1.736.72l-3.46 2.897h-1.81c-1.333 0-2.404 1.027-2.607 2.51-.172 1.424-.214 4.11 0 5.677.186 1.567 1.21 2.579 2.607 2.579h1.81l3.527 2.94c.362.315 1 .676 1.588.676l.105.001c1.063 0 2-.78 2.35-1.98.133-.509.18-.985.224-1.445l.001-.008.047-.459c.18-1.487.18-8.739 0-10.215l-.047-.442zm4.05.045a.907.907 0 00-1.279-.237.957.957 0 00-.228 1.308c.802 1.182 1.243 2.756 1.243 4.434 0 1.677-.441 3.252-1.243 4.434a.956.956 0 00.23 1.308.905.905 0 001.277-.237c1.012-1.492 1.571-3.447 1.571-5.505s-.559-4.013-1.571-5.505zM19.29 3.22a.905.905 0 011.277.236C22.136 5.767 23 8.802 23 12c0 3.2-.864 6.234-2.433 8.544a.902.902 0 01-1.276.236.957.957 0 01-.23-1.308c1.356-1.999 2.104-4.653 2.104-7.472 0-2.818-.748-5.472-2.105-7.471a.958.958 0 01.23-1.308z",fill:t,fillRule:"evenodd"})});export const Camera=({fill:t,size:i,height:o,width:r,...n})=>e("svg",{fill:"none",height:i||o||24,viewBox:"0 0 24 24",width:i||r||24,xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{clipRule:"evenodd",d:"M17.44 6.236c.04.07.11.12.2.12 2.4 0 4.36 1.958 4.36 4.355v5.934A4.368 4.368 0 0117.64 21H6.36A4.361 4.361 0 012 16.645V10.71a4.361 4.361 0 014.36-4.355c.08 0 .16-.04.19-.12l.06-.12.106-.222a97.79 97.79 0 01.714-1.486C7.89 3.51 8.67 3.01 9.64 3h4.71c.97.01 1.76.51 2.22 1.408.157.315.397.822.629 1.31l.141.299.1.22zm-.73 3.836c0 .5.4.9.9.9s.91-.4.91-.9-.41-.909-.91-.909-.9.41-.9.91zm-6.44 1.548c.47-.47 1.08-.719 1.73-.719.65 0 1.26.25 1.72.71.46.459.71 1.068.71 1.717A2.438 2.438 0 0112 15.756c-.65 0-1.26-.25-1.72-.71a2.408 2.408 0 01-.71-1.717v-.01c-.01-.63.24-1.24.7-1.699zm4.5 4.485a3.91 3.91 0 01-2.77 1.15 3.921 3.921 0 01-3.93-3.926 3.865 3.865 0 011.14-2.767A3.921 3.921 0 0112 9.402c1.05 0 2.04.41 2.78 1.15.74.749 1.15 1.738 1.15 2.777a3.958 3.958 0 01-1.16 2.776z",fill:t,fillRule:"evenodd"})});export const Activity=({fill:t,size:o,height:r,width:n,...h})=>e("svg",{"data-name":"Iconly/Curved/Activity",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:i("g",{fill:"none",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[e("path",{d:"M6.918 14.854l2.993-3.889 3.414 2.68 2.929-3.78"}),e("path",{d:"M19.668 2.35a1.922 1.922 0 11-1.922 1.922 1.921 1.921 0 011.922-1.922z"}),e("path",{d:"M20.756 9.269a20.809 20.809 0 01.194 3.034c0 6.938-2.312 9.25-9.25 9.25s-9.25-2.312-9.25-9.25 2.313-9.25 9.25-9.25a20.931 20.931 0 012.983.187"})]})});export const Plus=({fill:t,size:o,height:r,width:n,...h})=>e("svg",{height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:i("g",{fill:"none",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[e("path",{d:"M6 12h12"}),e("path",{d:"M12 18V6"})]})});export const Minus=({fill:t,size:i,height:o,width:r,...n})=>e("svg",{height:i||o||24,viewBox:"0 0 24 24",width:i||r||24,xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{d:"M6 12h12",fill:"none",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})});export const Eye=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r||24,viewBox:"0 0 20 20",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M12.9833 10C12.9833 11.65 11.65 12.9833 10 12.9833C8.35 12.9833 7.01666 11.65 7.01666 10C7.01666 8.35 8.35 7.01666 10 7.01666C11.65 7.01666 12.9833 8.35 12.9833 10Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),e("path",{d:"M9.99999 16.8916C12.9417 16.8916 15.6833 15.1583 17.5917 12.1583C18.3417 10.9833 18.3417 9.00831 17.5917 7.83331C15.6833 4.83331 12.9417 3.09998 9.99999 3.09998C7.05833 3.09998 4.31666 4.83331 2.40833 7.83331C1.65833 9.00831 1.65833 10.9833 2.40833 12.1583C4.31666 15.1583 7.05833 16.8916 9.99999 16.8916Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})]});export const Edit=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r||24,viewBox:"0 0 20 20",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M11.05 3.00002L4.20835 10.2417C3.95002 10.5167 3.70002 11.0584 3.65002 11.4334L3.34169 14.1334C3.23335 15.1084 3.93335 15.775 4.90002 15.6084L7.58335 15.15C7.95835 15.0834 8.48335 14.8084 8.74168 14.525L15.5834 7.28335C16.7667 6.03335 17.3 4.60835 15.4583 2.86668C13.625 1.14168 12.2334 1.75002 11.05 3.00002Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5}),e("path",{d:"M9.90833 4.20831C10.2667 6.50831 12.1333 8.26665 14.45 8.49998",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5}),e("path",{d:"M2.5 18.3333H17.5",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5})]});export const Delete=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r||24,viewBox:"0 0 20 20",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M17.5 4.98332C14.725 4.70832 11.9333 4.56665 9.15 4.56665C7.5 4.56665 5.85 4.64998 4.2 4.81665L2.5 4.98332",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),e("path",{d:"M7.08331 4.14169L7.26665 3.05002C7.39998 2.25835 7.49998 1.66669 8.90831 1.66669H11.0916C12.5 1.66669 12.6083 2.29169 12.7333 3.05835L12.9166 4.14169",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),e("path",{d:"M15.7084 7.61664L15.1667 16.0083C15.075 17.3166 15 18.3333 12.675 18.3333H7.32502C5.00002 18.3333 4.92502 17.3166 4.83335 16.0083L4.29169 7.61664",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),e("path",{d:"M8.60834 13.75H11.3833",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),e("path",{d:"M7.91669 10.4167H12.0834",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})]});export const ChevronDown=({fill:t,size:i,height:o,width:r,...n})=>e("svg",{fill:"none",height:i||o||24,viewBox:"0 0 24 24",width:i||r||24,xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{d:"m19.92 8.95-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5})});export const ChevronDownBold=({fill:t,size:i,height:o,width:r,...n})=>e("svg",{fill:"none",height:i||o||24,viewBox:"0 0 24 24",width:i||r||24,xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{d:"M17.9188 8.17969H11.6888H6.07877C5.11877 8.17969 4.63877 9.33969 5.31877 10.0197L10.4988 15.1997C11.3288 16.0297 12.6788 16.0297 13.5088 15.1997L15.4788 13.2297L18.6888 10.0197C19.3588 9.33969 18.8788 8.17969 17.9188 8.17969Z",fill:t})});export const NewFile=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M8 2V5",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5}),e("path",{d:"M16 2V5",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5}),e("path",{d:"M21 8.5V13.63C20.11 12.92 18.98 12.5 17.75 12.5C16.52 12.5 15.37 12.93 14.47 13.66C13.26 14.61 12.5 16.1 12.5 17.75C12.5 18.73 12.78 19.67 13.26 20.45C13.63 21.06 14.11 21.59 14.68 22H8C4.5 22 3 20 3 17V8.5C3 5.5 4.5 3.5 8 3.5H16C19.5 3.5 21 5.5 21 8.5Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5}),e("path",{d:"M7 11H13",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5}),e("path",{d:"M7 16H9.62",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5}),e("path",{d:"M23 17.75C23 18.73 22.72 19.67 22.24 20.45C21.96 20.93 21.61 21.35 21.2 21.69C20.28 22.51 19.08 23 17.75 23C16.6 23 15.54 22.63 14.68 22C14.11 21.59 13.63 21.06 13.26 20.45C12.78 19.67 12.5 18.73 12.5 17.75C12.5 16.1 13.26 14.61 14.47 13.66C15.37 12.93 16.52 12.5 17.75 12.5C18.98 12.5 20.11 12.92 21 13.63C22.22 14.59 23 16.08 23 17.75Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5}),e("path",{d:"M17.75 20.25C17.75 18.87 18.87 17.75 20.25 17.75C18.87 17.75 17.75 16.63 17.75 15.25C17.75 16.63 16.63 17.75 15.25 17.75C16.63 17.75 17.75 18.87 17.75 20.25Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})]});export const AddNoteBulk=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M7.37 22h9.25a4.87 4.87 0 0 0 4.87-4.87V8.37a4.87 4.87 0 0 0-4.87-4.87H7.37A4.87 4.87 0 0 0 2.5 8.37v8.75c0 2.7 2.18 4.88 4.87 4.88Z",fill:t,opacity:.4}),e("path",{d:"M8.29 6.29c-.42 0-.75-.34-.75-.75V2.75a.749.749 0 1 1 1.5 0v2.78c0 .42-.33.76-.75.76ZM15.71 6.29c-.42 0-.75-.34-.75-.75V2.75a.749.749 0 1 1 1.5 0v2.78c0 .42-.33.76-.75.76ZM12 14.75h-1.69V13c0-.41-.34-.75-.75-.75s-.75.34-.75.75v1.75H7c-.41 0-.75.34-.75.75s.34.75.75.75h1.81V18c0 .41.34.75.75.75s.75-.34.75-.75v-1.75H12c.41 0 .75-.34.75-.75s-.34-.75-.75-.75Z",fill:t})]});export const CopyDocumentBulk=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M15.5 13.15h-2.17c-1.78 0-3.23-1.44-3.23-3.23V7.75c0-.41-.33-.75-.75-.75H6.18C3.87 7 2 8.5 2 11.18v6.64C2 20.5 3.87 22 6.18 22h5.89c2.31 0 4.18-1.5 4.18-4.18V13.9c0-.42-.34-.75-.75-.75Z",fill:t,opacity:.4}),e("path",{d:"M17.82 2H11.93C9.67 2 7.84 3.44 7.76 6.01c.06 0 .11-.01.17-.01h5.89C16.13 6 18 7.5 18 10.18V16.83c0 .06-.01.11-.01.16 2.23-.07 4.01-1.55 4.01-4.16V6.18C22 3.5 20.13 2 17.82 2Z",fill:t}),e("path",{d:"M11.98 7.15c-.31-.31-.84-.1-.84.33v2.62c0 1.1.93 2 2.07 2 .71.01 1.7.01 2.55.01.43 0 .65-.5.35-.8-1.09-1.09-3.03-3.04-4.13-4.16Z",fill:t})]});export const EditDocumentBulk=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M15.48 3H7.52C4.07 3 2 5.06 2 8.52v7.95C2 19.94 4.07 22 7.52 22h7.95c3.46 0 5.52-2.06 5.52-5.52V8.52C21 5.06 18.93 3 15.48 3Z",fill:t,opacity:.4}),e("path",{d:"M21.02 2.98c-1.79-1.8-3.54-1.84-5.38 0L14.51 4.1c-.1.1-.13.24-.09.37.7 2.45 2.66 4.41 5.11 5.11.03.01.08.01.11.01.1 0 .2-.04.27-.11l1.11-1.12c.91-.91 1.36-1.78 1.36-2.67 0-.9-.45-1.79-1.36-2.71ZM17.86 10.42c-.27-.13-.53-.26-.77-.41-.2-.12-.4-.25-.59-.39-.16-.1-.34-.25-.52-.4-.02-.01-.08-.06-.16-.14-.31-.25-.64-.59-.95-.96-.02-.02-.08-.08-.13-.17-.1-.11-.25-.3-.38-.51-.11-.14-.24-.34-.36-.55-.15-.25-.28-.5-.4-.76-.13-.28-.23-.54-.32-.79L7.9 10.72c-.35.35-.69 1.01-.76 1.5l-.43 2.98c-.09.63.08 1.22.47 1.61.33.33.78.5 1.28.5.11 0 .22-.01.33-.02l2.97-.42c.49-.07 1.15-.4 1.5-.76l5.38-5.38c-.25-.08-.5-.19-.78-.31Z",fill:t})]});export const DeleteDocumentBulk=({fill:t,size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M21.07 5.23c-1.61-.16-3.22-.28-4.84-.37v-.01l-.22-1.3c-.15-.92-.37-2.3-2.71-2.3h-2.62c-2.33 0-2.55 1.32-2.71 2.29l-.21 1.28c-.93.06-1.86.12-2.79.21l-2.04.2c-.42.04-.72.41-.68.82.04.41.4.71.82.67l2.04-.2c5.24-.52 10.52-.32 15.82.21h.08c.38 0 .71-.29.75-.68a.766.766 0 0 0-.69-.82Z",fill:t}),e("path",{d:"M19.23 8.14c-.24-.25-.57-.39-.91-.39H5.68c-.34 0-.68.14-.91.39-.23.25-.36.59-.34.94l.62 10.26c.11 1.52.25 3.42 3.74 3.42h6.42c3.49 0 3.63-1.89 3.74-3.42l.62-10.25c.02-.36-.11-.7-.34-.95Z",fill:t,opacity:.399}),e("path",{clipRule:"evenodd",d:"M9.58 17a.75.75 0 0 1 .75-.75h3.33a.75.75 0 0 1 0 1.5h-3.33a.75.75 0 0 1-.75-.75ZM8.75 13a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 0 1.5h-5a.75.75 0 0 1-.75-.75Z",fill:t,fillRule:"evenodd"})]});export const CartIcon=({fill:t="currentColor",size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r||24,viewBox:"0 0 24 24",width:o||n||24,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M16.25 22.5C17.2165 22.5 18 21.7165 18 20.75C18 19.7835 17.2165 19 16.25 19C15.2835 19 14.5 19.7835 14.5 20.75C14.5 21.7165 15.2835 22.5 16.25 22.5Z",fill:t}),e("path",{d:"M8.25 22.5C9.2165 22.5 10 21.7165 10 20.75C10 19.7835 9.2165 19 8.25 19C7.2835 19 6.5 19.7835 6.5 20.75C6.5 21.7165 7.2835 22.5 8.25 22.5Z",fill:t}),e("path",{d:"M4.84 3.94L4.64 6.39C4.6 6.86 4.97 7.25 5.44 7.25H20.75C21.17 7.25 21.52 6.93 21.55 6.51C21.68 4.74 20.33 3.3 18.56 3.3H6.27C6.17 2.86 5.97 2.44 5.66 2.09C5.16 1.56 4.46 1.25 3.74 1.25H2C1.59 1.25 1.25 1.59 1.25 2C1.25 2.41 1.59 2.75 2 2.75H3.74C4.05 2.75 4.34 2.88 4.55 3.1C4.76 3.33 4.86 3.63 4.84 3.94Z",fill:t}),e("path",{d:"M20.5101 8.75H5.17005C4.75005 8.75 4.41005 9.07 4.37005 9.48L4.01005 13.83C3.87005 15.54 5.21005 17 6.92005 17H18.0401C19.5401 17 20.8601 15.77 20.9701 14.27L21.3001 9.6C21.3401 9.14 20.9801 8.75 20.5101 8.75Z",fill:t})]});export const Flash=({fill:t="currentColor",size:i,height:o,width:r,...n})=>e("svg",{fill:"none",height:i||o,viewBox:"0 0 24 24",width:i||r,xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{d:"M6.09 13.28h3.09v7.2c0 1.68.91 2.02 2.02.76l7.57-8.6c.93-1.05.54-1.92-.87-1.92h-3.09v-7.2c0-1.68-.91-2.02-2.02-.76l-7.57 8.6c-.92 1.06-.53 1.92.87 1.92Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5})});export const Server=({fill:t="currentColor",size:i,height:o,width:r,...n})=>e("svg",{fill:"none",height:i||o,viewBox:"0 0 24 24",width:i||r,xmlns:"http://www.w3.org/2000/svg",...n,children:e("path",{d:"M19.32 10H4.69c-1.48 0-2.68-1.21-2.68-2.68V4.69c0-1.48 1.21-2.68 2.68-2.68h14.63C20.8 2.01 22 3.22 22 4.69v2.63C22 8.79 20.79 10 19.32 10ZM19.32 22H4.69c-1.48 0-2.68-1.21-2.68-2.68v-2.63c0-1.48 1.21-2.68 2.68-2.68h14.63c1.48 0 2.68 1.21 2.68 2.68v2.63c0 1.47-1.21 2.68-2.68 2.68ZM6 5v2M10 5v2M6 17v2M10 17v2M14 6h4M14 18h4",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})});export const TagUser=({fill:t="currentColor",size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r,viewBox:"0 0 24 24",width:o||n,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M18 18.86h-.76c-.8 0-1.56.31-2.12.87l-1.71 1.69c-.78.77-2.05.77-2.83 0l-1.71-1.69c-.56-.56-1.33-.87-2.12-.87H6c-1.66 0-3-1.33-3-2.97V4.98c0-1.64 1.34-2.97 3-2.97h12c1.66 0 3 1.33 3 2.97v10.91c0 1.63-1.34 2.97-3 2.97Z",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5}),e("path",{d:"M12 10a2.33 2.33 0 1 0 0-4.66A2.33 2.33 0 0 0 12 10ZM16 15.66c0-1.8-1.79-3.26-4-3.26s-4 1.46-4 3.26",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})]});export const Scale=({fill:t="currentColor",size:o,height:r,width:n,...h})=>i("svg",{fill:"none",height:o||r,viewBox:"0 0 24 24",width:o||n,xmlns:"http://www.w3.org/2000/svg",...h,children:[e("path",{d:"M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM18 6 6 18",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5}),e("path",{d:"M18 10V6h-4M6 14v4h4",stroke:t,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})]});export const Search=({size:t,fill:i,width:o=24,height:r=24,...n})=>e("svg",{fill:"none",height:t||r,viewBox:"0 0 24 24",width:t||o,...n,children:e("path",{d:"M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2})});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function valueToPercent(r,n,e){return 100*(r-n)/(e-n)}export function range(r,n){const e=n-r+1;return Array.from({length:e},((n,e)=>e+r))}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const isObject=e=>e&&"object"==typeof e;export const renameProp=(e,t,{[e]:r,...o})=>({[t]:r,...o});export const copyObject=e=>isObject(e)?e instanceof Array?[...e]:{...e}:e;export const omitObject=(e,t)=>{if(!isObject(e))return e;if(e instanceof Array)return[...e];const r={...e};return t.forEach((e=>r[e]&&delete r[e])),r};export const cleanObject=e=>{if(!isObject(e))return e;if(e instanceof Array)return[...e];const t={...e};return Object.keys(t).forEach((e=>{void 0!==t[e]&&null!==t[e]||delete t[e]})),t};export const cleanObjectKeys=(e,t=[])=>{if(!isObject(e))return e;if(e instanceof Array)return[...e];const r={...e};return t.forEach((e=>{r[e]&&delete r[e]})),r};export const getKeyValue=(e,t)=>isObject(e)?e instanceof Array?[...e]:e[t]:e;export const getProp=(e,t,r,o)=>{const n="string"==typeof t?t.split("."):[t];for(o=0;o<n.length&&e;o+=1)e=e[n[o]];return void 0===e?r:e};export const arrayToObject=e=>e.length&&Array.isArray(e)?e.reduce(((e,t)=>({...e,...t})),{}):{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const tuple=(...e)=>e;tuple("xs","sm","md","lg","xl");export const normalColors=tuple("default","primary","secondary","success","warning","error","gradient");export const simpleColors=tuple("default","primary","secondary","success","warning","error");export const extendedColors=tuple("default","primary","secondary","success","warning","error","invert","gradient");export const extendedColorsNoGradient=tuple("default","primary","secondary","success","warning","error","invert");export const extraColors=tuple("default","primary","secondary","success","warning","error","dark","lite","alert","purple","violet","gradient","cyan");export const normalLoaders=tuple("default","points","points-opacity","gradient","spinner");export const normalWeights=tuple("light","normal","bold","extrabold","black");export const textWeights=tuple("normal","bold","lighter","bolder","inherit","initial","revert","unset");export const textTransforms=tuple("none","capitalize","uppercase","lowercase","full-width","full-size-kana","inherit","initial","revert","unset");tuple("default","slient","prevent"),tuple("hover","click"),tuple("top","topStart","topEnd","left","leftStart","leftEnd","bottom","bottomStart","bottomEnd","right","rightStart","rightEnd"),tuple("static","relative","absolute","fixed","sticky","inherit","initial","revert","unset"),tuple("contain","cover","fill","none","scale-down","inherit","initial","revert","unset"),tuple("start","center","end","left","right"),tuple("flex-start","center","flex-end","space-between","space-around","space-evenly"),tuple("flex-start","flex-end","center","stretch","baseline"),tuple("stretch","center","flex-start","flex-end","space-between","space-around"),tuple("row","row-reverse","column","column-reverse"),tuple("nowrap","wrap","wrap-reverse"),tuple("flex","block","grid","inline","inline-block","inline-flex","inline-grid"),tuple("left","right"),tuple("start","center","end");export const excludedInputPropsForTextarea=tuple("clearable","as","rounded","labelLeft","labelRight","contentLeft","contentRight","contentClickable","contentLeftStyling","contentRightStyling","onContentClick","onClearClick","css");tuple("toggle","replace"),tuple("none","single","multiple"),tuple("flat","light","solid","shadow"),tuple("flat","bordered","shadow");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";export function getValidChildren(r){return e.Children.toArray(r).filter((r=>e.isValidElement(r)))}export function addChildrenClass(r,l){return getValidChildren(r).map((r=>e.cloneElement(r,{className:`${r.props.className} ${l}`})))}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{isFunction as r}from"./assertion";export function assignRef(e,n){if(null!=e)if(r(e))e(n);else try{e.current=n}catch(r){throw new Error(`Cannot assign value '${n}' to ref '${e}'`)}}export function mergeRefs(...r){return e=>{r.forEach((r=>assignRef(r,e)))}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const kebabCase=l=>{var e,n,a;return null==l||null==l.replace||null==(e=l.replace(/([a-z])([A-Z])/g,"$1-$2"))||null==e.replace||null==(n=(a=e.replace(/\s+/g,"-")).toLowerCase)?void 0:n.call(a)};export const includes=(l,e)=>null==e?void 0:e.some((e=>null==l?void 0:l.includes(e)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{forwardRef as r}from"react";export function forwardRef(f){return r(f)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default(e,t)=>(e.defaultProps=t,e);
|