@nextui-org/react 1.0.0-beta.6
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 +98 -0
- package/avatar/package.json +6 -0
- package/backdrop/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/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/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/utils.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/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/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/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/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/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-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-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/use-warning/index.js +1 -0
- package/cjs/use-warning/use-warning.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/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/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/types.d.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/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/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/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/utils.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/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/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/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/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/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-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-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/use-warning/index.js +1 -0
- package/esm/use-warning/use-warning.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/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/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/types.d.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/package.json +64 -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 +34 -0
- package/types/avatar/avatar-group.styles.d.ts +1877 -0
- package/types/avatar/avatar.d.ts +51 -0
- package/types/avatar/avatar.styles.d.ts +950 -0
- package/types/avatar/index.d.ts +7 -0
- package/types/backdrop/backdrop.d.ts +37 -0
- package/types/backdrop/backdrop.styles.d.ts +2817 -0
- package/types/backdrop/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 +945 -0
- package/types/button/button-icon.d.ts +957 -0
- package/types/button/button.d.ts +33 -0
- package/types/button/button.styles.d.ts +3021 -0
- package/types/button/index.d.ts +10 -0
- package/types/button/utils.d.ts +53 -0
- package/types/card/card.d.ts +23 -0
- package/types/card/card.styles.d.ts +3758 -0
- package/types/card/index.d.ts +5 -0
- package/types/checkbox/checkbox-context.d.ts +11 -0
- package/types/checkbox/checkbox-group.d.ts +30 -0
- package/types/checkbox/checkbox.d.ts +51 -0
- package/types/checkbox/checkbox.styles.d.ts +10426 -0
- package/types/checkbox/index.d.ts +6 -0
- package/types/checkbox/utils.d.ts +288 -0
- package/types/code/code.d.ts +15 -0
- package/types/code/code.styles.d.ts +1874 -0
- package/types/code/index.d.ts +5 -0
- package/types/col/col.d.ts +20 -0
- package/types/col/col.styles.d.ts +939 -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 +19 -0
- package/types/collapse/collapse.d.ts +43 -0
- package/types/collapse/collapse.styles.d.ts +5654 -0
- package/types/collapse/index.d.ts +6 -0
- package/types/container/container.d.ts +40 -0
- package/types/container/container.styles.d.ts +942 -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 +1879 -0
- package/types/divider/index.d.ts +5 -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 +1875 -0
- package/types/grid/index.d.ts +7 -0
- package/types/image/image.d.ts +54 -0
- package/types/image/image.skeleton.d.ts +19 -0
- package/types/image/image.styles.d.ts +2814 -0
- package/types/image/index.d.ts +5 -0
- package/types/index.d.ts +87 -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 +10360 -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 +43 -0
- package/types/link/link.styles.d.ts +1880 -0
- package/types/loading/index.d.ts +7 -0
- package/types/loading/loading.d.ts +24 -0
- package/types/loading/loading.styles.d.ts +5632 -0
- package/types/loading/spinner.d.ts +17 -0
- package/types/modal/index.d.ts +8 -0
- package/types/modal/modal-body.d.ts +45 -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 +5637 -0
- package/types/modal/use-modal.d.ts +11 -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 +5645 -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 +42 -0
- package/types/popover/popover-trigger.d.ts +10 -0
- package/types/popover/popover.d.ts +17 -0
- package/types/popover/popover.styles.d.ts +946 -0
- package/types/popover/use-popover.d.ts +62 -0
- package/types/popover/utils.d.ts +4 -0
- package/types/progress/index.d.ts +5 -0
- package/types/progress/progress.d.ts +65 -0
- package/types/progress/progress.styles.d.ts +1885 -0
- package/types/radio/index.d.ts +4 -0
- package/types/radio/radio-context.d.ts +13 -0
- package/types/radio/radio-group.d.ts +84 -0
- package/types/radio/radio.d.ts +78 -0
- package/types/radio/radio.styles.d.ts +5633 -0
- package/types/row/index.d.ts +5 -0
- package/types/row/row.d.ts +21 -0
- package/types/row/row.styles.d.ts +941 -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 +3754 -0
- package/types/spacer/index.d.ts +5 -0
- package/types/spacer/spacer.d.ts +41 -0
- package/types/spacer/spacer.styles.d.ts +940 -0
- package/types/switch/index.d.ts +5 -0
- package/types/switch/switch.d.ts +82 -0
- package/types/switch/switch.styles.d.ts +3760 -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 +1032 -0
- package/types/table/table-context.d.ts +29 -0
- package/types/table/table-footer.d.ts +31 -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 +949 -0
- package/types/table/table.d.ts +29 -0
- package/types/table/table.styles.d.ts +16130 -0
- package/types/table/utils.d.ts +31 -0
- package/types/text/child.d.ts +65 -0
- package/types/text/index.d.ts +4 -0
- package/types/text/text.d.ts +93 -0
- package/types/text/text.styles.d.ts +940 -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/common.d.ts +1668 -0
- package/types/theme/dark-theme.d.ts +44 -0
- package/types/theme/light-theme.d.ts +29 -0
- package/types/theme/stitches.config.d.ts +10089 -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 +73 -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 +3755 -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 +8 -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-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-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/use-warning/index.d.ts +2 -0
- package/types/use-warning/use-warning.d.ts +2 -0
- package/types/user/index.d.ts +5 -0
- package/types/user/user-link.d.ts +15 -0
- package/types/user/user.d.ts +43 -0
- package/types/user/user.styles.d.ts +4680 -0
- package/types/utils/animations.d.ts +12 -0
- package/types/utils/assertion.d.ts +9 -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 +28 -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 +19 -0
- package/types/utils/drip.d.ts +982 -0
- package/types/utils/expand.d.ts +20 -0
- package/types/utils/numbers.d.ts +9 -0
- package/types/utils/object.d.ts +15 -0
- package/types/utils/prop-types.d.ts +61 -0
- package/types/utils/refs.d.ts +17 -0
- package/types/utils/with-defaults.d.ts +3 -0
- package/umd/nextui.js +42538 -0
- package/umd/nextui.min.js +2 -0
- package/umd/nextui.min.js.LICENSE.txt +29 -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-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-ssr/package.json +6 -0
- package/use-theme/package.json +6 -0
- package/use-warning/package.json +6 -0
- package/user/package.json +6 -0
- package/utils/package.json +6 -0
|
@@ -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 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 r from"./use-warning";export default r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o={};export default(e,n)=>{const r=`[Next UI]${n?` [${n}]`:" "}: ${e}`;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 e from"./user";import r from"./user-link";e.Link=r;export{StyledUser,StyledUserInfo,StyledUserName,StyledUserDesc,StyledUserLink}from"./user.styles";export default e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import r from"react";import e from"../link";import{StyledUserLink as o}from"./user.styles";import{__DEV__ as t}from"../utils/assertion";import{jsx as i}from"react/jsx-runtime";const m=r.forwardRef((({href:r,className:t,children:m,...s},n)=>i(o,{...s,children:i(e,{ref:n,href:r,color:"primary",target:"_blank",rel:"noopener",children:m})})));t&&(m.displayName="NextUI.UserLink"),m.toString=()=>".nextui-user-link";const s=r.memo(m);export default s;
|
package/esm/user/user.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import{Avatar as r}from"../index";import{useDOMRef as s}from"../utils/dom";import{__DEV__ as t}from"../utils/assertion";import{StyledUser as o,StyledUserInfo as i,StyledUserName as a,StyledUserDesc as m}from"./user.styles";import{jsx as n}from"react/jsx-runtime";import{jsxs as c}from"react/jsx-runtime";export const User=e.forwardRef(((e,t)=>{const{src:d,text:u,name:l,children:x,altText:p,color:f,squared:N,bordered:U,size:h,description:j,...z}=e,b=s(t);return c(o,{ref:b,...z,children:[n(r,{className:"nextui-user-avatar",src:d,color:f,squared:N,zoomed:e.zoomed,pointer:e.pointer,bordered:U,text:u,size:h,alt:p}),c(i,{className:"nextui-user-info",children:[n(a,{className:"nextui-user-name",children:l}),n(m,{className:"nextui-user-desc",children:j||x})]})]})}));t&&(User.displayName="NextUI.User"),User.toString=()=>".nextui-user";export default User;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{styled as e}from"../theme/stitches.config";export const StyledUser=e("div",{d:"inline-flex",p:"0 $sm",jc:"center",ai:"center",w:"max-content",maxWidth:"100%"});export const StyledUserInfo=e("div",{ml:"$sm",d:"inline-flex",fd:"column",whiteSpace:"nowrap"});export const StyledUserName=e("span",{fontSize:"$xs",color:"$text",lh:"$sm",tt:"capitalize",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"});export const StyledUserDesc=e("span",{fontSize:"$tiny",color:"$accents4","*:first-child":{mt:0},"*:last-child":{mb:0}});export const StyledUserLink=e("a",{a:{"&:hover":{opacity:.7}}});
|
|
@@ -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*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?{width:e||l,height:e||s,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:o,...h,children:t("path",{d:"M18 6L6 18M6 6l12 12"})}:{width:e||l,height:e||s,viewBox:"0 0 24 24",className:o,...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}from"./prop-types";export const getCssVar=t=>{if("undefined"!=typeof document||!t){const r=isCssVar(t)?t.replace("var(","").replace(")",""):`--${t}`;return getComputedStyle(document.documentElement).getPropertyValue(r)}return""};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 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(/\((.+)\)/);if(!o.startsWith("rgb")||!n)throw new Error('Next UI: Only support ["RGB", "RGBA", "HEX"] color.');return n[1].split(",").map((t=>Number.parseFloat(t)))};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})`};function r(t,r){return r=r||2,(new Array(r).join("0")+t).slice(-r)}export const invertHex=(t,e=!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),a=parseInt(o.slice(4,6),16);return e?.299*n+.587*s+.114*a>186?"#000000":"#FFFFFF":(n=255-n,s=255-s,a=255-a,"#"+r(n.toString(16))+r(s.toString(16))+r(a.toString(16)))};
|
|
@@ -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,useRef as t}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(r){const n=t(null);return e(r,(()=>n.current)),n}export function useFocusableRef(r,n){const o=t(null);return e(r,(()=>createFocusableRef(o,n))),o}export function unwrapDOMRef(e){return{get current(){return e.current&&e.current.UNSAFE_getDOMNode()}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import t,{useEffect as e,useRef as i}from"react";import{styled as r,keyframes as o}from"../theme/stitches.config";import n from"../utils/with-defaults";import l from"../utils/clsx";import{jsx as s}from"react/jsx-runtime";const a=o({"0%":{opacity:0,transform:"scale(0.25)"},"30%":{opacity:1},"80%":{opacity:.5},"100%":{transform:"scale(28)",opacity:0}});export const StyledDrip=r("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:r,y:o,color:n,onCompleted:a,className:m,...c})=>{const d=i(null),p=Number.isNaN(+o)?0:o-10,u=Number.isNaN(+r)?0:r-10;return e((()=>{if(d.current)return d.current.addEventListener("animationend",a),()=>{d.current&&d.current.removeEventListener("animationend",a)}})),t?s(StyledDrip,{ref:d,className:l("nextui-drip",m),...c,children:s("svg",{width:"20",height:"20",viewBox:"0 0 20 20",style:{top:p,left:u},children:s("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:s("g",{className:"nextui-drip-filler",fill:n,children:s("rect",{width:"100%",height:"100%",rx:"10"})})})})}):null},c=t.memo(m);export default n(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,{expanded:l,css:{height:l?d:"0",transition:a?`height ${n}ms ease 0ms,\n opacity ${1.5*n}ms ease 0ms;`:"none",...u},children:c("div",{ref:f,className:"nextui-expand-content",children:m})})}),{isExpanded:!1,animated:!0,delay:200});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import{jsx as t}from"react/jsx-runtime";import{jsxs as i}from"react/jsx-runtime";export const Sun=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>r?t("svg",{viewBox:"0 0 512 512",width:n||h||24,height:n||l||24,...d,children:t("path",{fill:o,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"})}):i("svg",{viewBox:"0 0 512 512",width:n||h||24,height:n||l||24,...d,children:[t("path",{fill:"none",stroke:o,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32,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"}),t("circle",{cx:256,cy:256,r:80,fill:"none",stroke:o,strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:32})]});export const Mail=({theme:e,fill:o,size:r,height:n,width:l,...h})=>t("svg",{width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",...h,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[t("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"}),t("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=({theme:e,fill:i,filled:o,size:r,height:n,width:l,label:h,...s})=>t("svg",o?{viewBox:"0 0 512 512",width:r||l||24,height:r||n||24,...s,children:t("path",{fill:i,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"})}:{viewBox:"0 0 512 512",width:r||l||24,height:r||n||24,...s,children:t("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:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:32})});export const Lock=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>{const a=o;return t("svg",{"data-name":"Iconly/Curved/Lock",xmlns:"http://www.w3.org/2000/svg",width:n||h||24,height:n||l||24,viewBox:"0 0 24 24",...d,children:i("g",{transform:"translate(3.5 2)",children:[t("path",{d:"M9.121,6.653V4.5A4.561,4.561,0,0,0,0,4.484V6.653",transform:"translate(3.85 0.75)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),t("path",{d:"M.5,0V2.221",transform:"translate(7.91 12.156)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),t("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",transform:"translate(0.75 6.824)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5})]})})};export const Unlock=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>{const a=o;return t("svg",{"data-name":"Iconly/Curved/Lock",xmlns:"http://www.w3.org/2000/svg",width:n||h||24,height:n||l||24,viewBox:"0 0 24 24",...d,children:i("g",{transform:"translate(3.5 2)",children:[t("path",{d:"M8.927,3.237A4.562,4.562,0,0,0,0,4.484V6.653",transform:"translate(3.849 0.75)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),t("path",{d:"M.5,0V2.221",transform:"translate(7.91 12.156)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5}),t("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",transform:"translate(0.75 6.824)",fill:"none",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:1.5})]})})};export const Password=({theme:e,fill:o,size:r,height:n,width:l,...h})=>t("svg",{width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",...h,children:i("g",{fill:o,children:[t("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"}),t("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=({theme:e,fill:i,filled:o,size:r,height:n,width:l,label:h,...s})=>t("svg",{width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:t("path",{fillRule:"evenodd",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:i})});export const User=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>t("svg",{"data-name":"Iconly/Curved/Profile",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:n||h||24,height:n||l||24,...d,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[t("path",{"data-name":"Stroke 1",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"}),t("path",{"data-name":"Stroke 3",d:"M11.837 11.174a4.372 4.372 0 10-.031 0z"})]})});export const VolumeUp=({theme:e,fill:i,filled:o,size:r,height:n,width:l,label:h,...s})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:r||l||24,height:r||n||24,fill:"none",...s,children:t("path",{fillRule:"evenodd",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:i})});export const Camera=({theme:e,fill:i,filled:o,size:r,height:n,width:l,label:h,...s})=>t("svg",{width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s,children:t("path",{fillRule:"evenodd",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:i})});export const Activity=({theme:e,fill:o,filled:r,size:n,height:l,width:h,label:s,...d})=>t("svg",{"data-name":"Iconly/Curved/Activity",xmlns:"http://www.w3.org/2000/svg",width:n||h||24,height:n||l||24,viewBox:"0 0 24 24",...d,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,children:[t("path",{d:"M6.918 14.854l2.993-3.889 3.414 2.68 2.929-3.78"}),t("path",{d:"M19.668 2.35a1.922 1.922 0 11-1.922 1.922 1.921 1.921 0 011.922-1.922z"}),t("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=({theme:e,fill:o,size:r,height:n,width:l,...h})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:r||l||24,height:r||n||24,viewBox:"0 0 24 24",...h,children:i("g",{fill:"none",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,children:[t("path",{d:"M6 12h12"}),t("path",{d:"M12 18V6"})]})});export const Minus=({theme:e,fill:i,size:o,height:r,width:n,...l})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:o||n||24,height:o||r||24,viewBox:"0 0 24 24",...l,children:t("path",{d:"M6 12h12",fill:"none",stroke:i,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})});export const Eye=({fill:e,size:o,height:r,width:n,...l})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[t("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:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("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:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]});export const Edit=({fill:e,size:o,height:r,width:n,...l})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[t("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:e,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M9.90833 4.20831C10.2667 6.50831 12.1333 8.26665 14.45 8.49998",stroke:e,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M2.5 18.3333H17.5",stroke:e,strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})]});export const Delete=({fill:e,size:o,height:r,width:n,...l})=>i("svg",{width:o||n||24,height:o||r||24,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:[t("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:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("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:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("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:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M8.60834 13.75H11.3833",stroke:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),t("path",{d:"M7.91669 10.4167H12.0834",stroke:e,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]});
|
|
@@ -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,...c})=>({[t]:r,...c});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;
|
|
@@ -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");export const excludedTableProps=tuple("items","disabledKeys","allowDuplicateSelectionEvents","disallowEmptySelection","defaultSelectedKeys","sortDescriptor","onSortChange");tuple("toggle","replace"),tuple("none","single","multiple");
|
|
@@ -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
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default(e,t)=>(e.defaultProps=t,e);
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nextui-org/react",
|
|
3
|
+
"version": "1.0.0-beta.6",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "🚀 Beautiful and modern React UI library.",
|
|
6
|
+
"homepage": "https://nextui.org",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Junior Garcia",
|
|
9
|
+
"email": "jrgarciadev@gmail.com"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/nextui-org/nextui/issues/new/choose"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/nextui-org/nextui"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"next",
|
|
20
|
+
"next ui",
|
|
21
|
+
"components",
|
|
22
|
+
"modern components",
|
|
23
|
+
"react components",
|
|
24
|
+
"react ui"
|
|
25
|
+
],
|
|
26
|
+
"source": "src/index.ts",
|
|
27
|
+
"main": "cjs/index.js",
|
|
28
|
+
"module": "esm/index.js",
|
|
29
|
+
"unpkg": "umd/nextui.min.js",
|
|
30
|
+
"types": "types/index.d.ts",
|
|
31
|
+
"sideEffects": false,
|
|
32
|
+
"scripts": {},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@babel/runtime": "7.9.6",
|
|
35
|
+
"@react-aria/button": "3.4.3",
|
|
36
|
+
"@react-aria/checkbox": "3.3.0",
|
|
37
|
+
"@react-aria/dialog": "3.1.8",
|
|
38
|
+
"@react-aria/focus": "3.5.4",
|
|
39
|
+
"@react-aria/i18n": "3.3.6",
|
|
40
|
+
"@react-aria/interactions": "3.8.0",
|
|
41
|
+
"@react-aria/label": "3.2.2",
|
|
42
|
+
"@react-aria/overlays": "3.8.1",
|
|
43
|
+
"@react-aria/ssr": "3.1.2",
|
|
44
|
+
"@react-aria/table": "3.2.1",
|
|
45
|
+
"@react-aria/utils": "3.11.1",
|
|
46
|
+
"@react-aria/visually-hidden": "3.2.4",
|
|
47
|
+
"@react-stately/checkbox": "3.0.6",
|
|
48
|
+
"@react-stately/data": "3.4.5",
|
|
49
|
+
"@react-stately/overlays": "3.1.6",
|
|
50
|
+
"@react-stately/table": "3.1.1",
|
|
51
|
+
"@react-stately/toggle": "3.2.4",
|
|
52
|
+
"@react-types/button": "^3.4.4",
|
|
53
|
+
"@react-types/checkbox": "3.2.6",
|
|
54
|
+
"@react-types/grid": "3.0.1",
|
|
55
|
+
"@react-types/overlays": "3.5.4",
|
|
56
|
+
"@react-types/shared": "3.11.0",
|
|
57
|
+
"@stitches/react": "1.2.7"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"react": ">=16.8.0",
|
|
61
|
+
"react-dom": ">=16.8.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {}
|
|
64
|
+
}
|
package/row/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { CSS } from '../theme/stitches.config';
|
|
3
|
+
import { AvatarGroupVariants } from './avatar-group.styles';
|
|
4
|
+
interface Props {
|
|
5
|
+
count?: number;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
as?: keyof JSX.IntrinsicElements;
|
|
8
|
+
}
|
|
9
|
+
declare type NativeAttrs = Omit<React.HTMLAttributes<unknown>, keyof Props>;
|
|
10
|
+
export declare type AvatarGroupProps = Props & NativeAttrs & AvatarGroupVariants & {
|
|
11
|
+
css?: CSS;
|
|
12
|
+
};
|
|
13
|
+
export declare const AvatarGroup: React.ForwardRefExoticComponent<Props & NativeAttrs & import("@stitches/react/types/styled-component").TransformProps<{
|
|
14
|
+
animated?: boolean | "true" | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
xs: string;
|
|
17
|
+
sm: string;
|
|
18
|
+
md: string;
|
|
19
|
+
lg: string;
|
|
20
|
+
xl: string;
|
|
21
|
+
xsMax: string;
|
|
22
|
+
smMax: string;
|
|
23
|
+
mdMax: string;
|
|
24
|
+
lgMax: string;
|
|
25
|
+
xlMax: string;
|
|
26
|
+
motion: string;
|
|
27
|
+
safari: string;
|
|
28
|
+
hover: string;
|
|
29
|
+
dark: string;
|
|
30
|
+
light: string;
|
|
31
|
+
}> & {
|
|
32
|
+
css?: CSS | undefined;
|
|
33
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
export default AvatarGroup;
|