mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
feat(root): new snapshot
This commit is contained in:
parent
9382f49c2f
commit
de6996b2e6
@ -1,5 +1,19 @@
|
||||
# @nextui-org/accordion
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/shared-icons@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/aria-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/accordion",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Collapse display a list of high-level options that can expand/collapse to reveal more information.",
|
||||
"keywords": [
|
||||
"react",
|
||||
|
||||
@ -1,5 +1,17 @@
|
||||
# @nextui-org/avatar
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/use-image@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/avatar",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "The Avatar component is used to represent a user, and displays the profile picture, initials or fallback icon.",
|
||||
"keywords": [
|
||||
"avatar"
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
# @nextui-org/badge
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/badge",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Badges are used as a small numerical value or status descriptor for UI elements.",
|
||||
"keywords": [
|
||||
"badge"
|
||||
|
||||
@ -1,5 +1,18 @@
|
||||
# @nextui-org/button
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/spinner@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/drip@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/button",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Buttons allow users to perform actions and choose with a single tap.",
|
||||
"keywords": [
|
||||
"button"
|
||||
|
||||
@ -26,11 +26,15 @@ export type ContextType = {
|
||||
isDisabled?: ButtonProps["isDisabled"];
|
||||
disableAnimation?: ButtonProps["disableAnimation"];
|
||||
disableRipple?: ButtonProps["disableRipple"];
|
||||
isIconButton?: ButtonProps["isIconButton"];
|
||||
fullWidth?: boolean;
|
||||
};
|
||||
|
||||
export type UseButtonGroupProps = Props &
|
||||
Pick<ButtonProps, "size" | "color" | "radius" | "variant" | "disableAnimation" | "disableRipple">;
|
||||
Pick<
|
||||
ButtonProps,
|
||||
"size" | "color" | "radius" | "variant" | "isIconButton" | "disableAnimation" | "disableRipple"
|
||||
>;
|
||||
|
||||
export function useButtonGroup(originalProps: UseButtonGroupProps) {
|
||||
const [props, variantProps] = mapPropsVariants(originalProps, buttonGroup.variantKeys);
|
||||
@ -46,6 +50,7 @@ export function useButtonGroup(originalProps: UseButtonGroupProps) {
|
||||
isDisabled = false,
|
||||
disableAnimation = false,
|
||||
disableRipple = false,
|
||||
isIconButton = false,
|
||||
className,
|
||||
...otherProps
|
||||
} = props;
|
||||
@ -69,6 +74,7 @@ export function useButtonGroup(originalProps: UseButtonGroupProps) {
|
||||
color,
|
||||
variant,
|
||||
radius,
|
||||
isIconButton,
|
||||
isDisabled,
|
||||
disableAnimation,
|
||||
disableRipple,
|
||||
@ -80,6 +86,7 @@ export function useButtonGroup(originalProps: UseButtonGroupProps) {
|
||||
variant,
|
||||
radius,
|
||||
isDisabled,
|
||||
isIconButton,
|
||||
disableAnimation,
|
||||
disableRipple,
|
||||
originalProps?.fullWidth,
|
||||
|
||||
@ -10,7 +10,6 @@ import {useFocusRing} from "@react-aria/focus";
|
||||
import {mergeProps} from "@react-aria/utils";
|
||||
import {useDrip} from "@nextui-org/drip";
|
||||
import {useDOMRef} from "@nextui-org/dom-utils";
|
||||
import {clsx} from "@nextui-org/shared-utils";
|
||||
import {button} from "@nextui-org/theme";
|
||||
import {isValidElement, cloneElement, useMemo} from "react";
|
||||
|
||||
@ -64,6 +63,7 @@ export function useButton(props: UseButtonProps) {
|
||||
radius = groupContext?.radius ?? "lg",
|
||||
disableRipple = groupContext?.disableRipple ?? false,
|
||||
isDisabled = groupContext?.isDisabled ?? false,
|
||||
isIconButton = groupContext?.isIconButton ?? false,
|
||||
onPress,
|
||||
onClick,
|
||||
...otherProps
|
||||
@ -89,6 +89,7 @@ export function useButton(props: UseButtonProps) {
|
||||
isInGroup,
|
||||
isFocusVisible,
|
||||
disableAnimation,
|
||||
isIconButton,
|
||||
className,
|
||||
}),
|
||||
[
|
||||
@ -100,6 +101,7 @@ export function useButton(props: UseButtonProps) {
|
||||
isDisabled,
|
||||
isInGroup,
|
||||
isFocusVisible,
|
||||
isIconButton,
|
||||
disableAnimation,
|
||||
className,
|
||||
],
|
||||
@ -140,9 +142,6 @@ export function useButton(props: UseButtonProps) {
|
||||
"aria-hidden": true,
|
||||
focusable: false,
|
||||
tabIndex: -1,
|
||||
width: "70%",
|
||||
height: "70%",
|
||||
className: clsx("fill-current max-w-[24px]", icon.props.className),
|
||||
})
|
||||
: null;
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import {ComponentStory, ComponentMeta} from "@storybook/react";
|
||||
import {button} from "@nextui-org/theme";
|
||||
import {Notification, Camera} from "@nextui-org/shared-icons";
|
||||
import {Notification, Camera, HeadphonesIcon} from "@nextui-org/shared-icons";
|
||||
import {Spinner} from "@nextui-org/spinner";
|
||||
|
||||
import {Button, ButtonProps} from "../src";
|
||||
@ -105,7 +105,8 @@ WithIcons.args = {
|
||||
export const IconButton = Template.bind({});
|
||||
IconButton.args = {
|
||||
...defaultProps,
|
||||
children: <Notification fill="currentColor" />,
|
||||
isIconButton: true,
|
||||
children: <HeadphonesIcon className="w-5 h-5" />,
|
||||
};
|
||||
|
||||
export const IsLoading = Template.bind({});
|
||||
|
||||
@ -1,5 +1,17 @@
|
||||
# @nextui-org/card
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/drip@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/card",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Card is a container for text, photos, and actions in the context of a single subject.",
|
||||
"keywords": [
|
||||
"card"
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
# @nextui-org/checkbox
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/checkbox",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.",
|
||||
"keywords": [
|
||||
"checkbox"
|
||||
|
||||
@ -1,5 +1,17 @@
|
||||
# @nextui-org/chip
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-icons@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/chip",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Chips help people enter information, make selections, filter content, or trigger actions.",
|
||||
"keywords": [
|
||||
"chip"
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
# @nextui-org/code
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/code",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Code is a component used to display inline code.",
|
||||
"keywords": [
|
||||
"code"
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
# @nextui-org/drip
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/drip",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "A ripple effect for ensuring that the user fells the system is reacting instantaneously",
|
||||
"keywords": [
|
||||
"drip"
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
# @nextui-org/link
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/link",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Links allow users to click their way from page to page. This component is styled to resemble a hyperlink and semantically renders an <a>",
|
||||
"keywords": [
|
||||
"link"
|
||||
|
||||
@ -1,5 +1,18 @@
|
||||
# @nextui-org/pagination
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-icons@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/use-pagination@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/pagination",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "The Pagination component allows you to display active page and navigate between multiple pages.",
|
||||
"keywords": [
|
||||
"pagination"
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
# @nextui-org/radio
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/radio",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Radios allow users to select a single option from a list of mutually exclusive options.",
|
||||
"keywords": [
|
||||
"radio"
|
||||
|
||||
@ -1,5 +1,18 @@
|
||||
# @nextui-org/snippet
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/use-clipboard@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/tooltip@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/snippet",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Display a snippet of copyable code for the command line.",
|
||||
"keywords": [
|
||||
"snippet"
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
# @nextui-org/spinner
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/spinner",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Loaders express an unspecified wait time or display the length of a process.",
|
||||
"keywords": [
|
||||
"loading",
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
# @nextui-org/switch
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/switch",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "A switch is similar to a checkbox, but represents on/off values as opposed to selection.",
|
||||
"keywords": [
|
||||
"switch"
|
||||
|
||||
@ -1,5 +1,19 @@
|
||||
# @nextui-org/tooltip
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/framer-transitions@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/react-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/aria-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/tooltip",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "A React Component for rendering dynamically positioned Tooltips",
|
||||
"keywords": [
|
||||
"tooltip"
|
||||
|
||||
@ -1,5 +1,17 @@
|
||||
# @nextui-org/user
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/avatar@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/user",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Flexible User Profile Component.",
|
||||
"keywords": [
|
||||
"user"
|
||||
|
||||
@ -1,5 +1,30 @@
|
||||
# @nextui-org/react
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/pagination@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/accordion@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/checkbox@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/snippet@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/spinner@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/tooltip@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/avatar@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/button@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/switch@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/badge@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/radio@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/card@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/code@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/drip@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/link@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/user@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/theme@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/react",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "🚀 Beautiful and modern React UI library.",
|
||||
"author": "Junior Garcia <jrgarciadev@gmail.com>",
|
||||
"homepage": "https://nextui.org",
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/system
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/system",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "NextUI system primitives",
|
||||
"keywords": [
|
||||
"system"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/theme
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326024632
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/theme",
|
||||
"version": "0.0.0-dev-v2-20230326024632",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "The default theme for NextUI components",
|
||||
"keywords": [
|
||||
"theme",
|
||||
|
||||
@ -22,3 +22,7 @@ const avatarGroup = tv({
|
||||
export type AvatarGroupVariantProps = VariantProps<typeof avatarGroup>;
|
||||
|
||||
export {avatarGroup};
|
||||
|
||||
// calculated styles
|
||||
// src/components/avatar/src/use-avatar-group.ts
|
||||
// -ml-2 hover:-translate-x-0 ml-0
|
||||
|
||||
@ -28,6 +28,9 @@ const button = tv({
|
||||
"active:scale-95",
|
||||
"overflow-hidden",
|
||||
"gap-3",
|
||||
// svg icon
|
||||
"[&>svg]:fill-current",
|
||||
"[&>svg]:max-w-[2em]",
|
||||
],
|
||||
variants: {
|
||||
variant: {
|
||||
@ -77,9 +80,12 @@ const button = tv({
|
||||
isInGroup: {
|
||||
true: "[&:not(:first-child):not(:last-child)]:rounded-none",
|
||||
},
|
||||
isIconButton: {
|
||||
true: "p-0 gap-0",
|
||||
},
|
||||
disableAnimation: {
|
||||
true: "!transition-none",
|
||||
false: "transition-transform-background",
|
||||
false: "transition-transform-background motion-reduce:transition-none",
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
@ -332,9 +338,43 @@ const button = tv({
|
||||
variant: "bordered",
|
||||
class: "[&:not(:first-child)]:border-l-0",
|
||||
},
|
||||
// isIconButton / size
|
||||
{
|
||||
isIconButton: true,
|
||||
size: "xs",
|
||||
class: "w-6 h-6",
|
||||
},
|
||||
{
|
||||
isIconButton: true,
|
||||
size: "sm",
|
||||
class: "w-8 h-8",
|
||||
},
|
||||
{
|
||||
isIconButton: true,
|
||||
size: "md",
|
||||
class: "w-10 h-10",
|
||||
},
|
||||
{
|
||||
isIconButton: true,
|
||||
size: "lg",
|
||||
class: "w-12 h-12",
|
||||
},
|
||||
{
|
||||
isIconButton: true,
|
||||
size: "xl",
|
||||
class: "w-14 h-14",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
// size: {
|
||||
// xs: "px-2 h-6 text-xs",
|
||||
// sm: "px-3 h-8 text-sm",
|
||||
// md: "px-4 h-10 text-base",
|
||||
// lg: "px-6 h-12 text-md",
|
||||
// xl: "px-8 h-14 text-lg",
|
||||
// },
|
||||
|
||||
export type ButtonVariantProps = VariantProps<typeof button>;
|
||||
|
||||
export {button};
|
||||
|
||||
@ -477,3 +477,7 @@ export type ChipVariantProps = VariantProps<typeof chip>;
|
||||
export type ChipSlots = keyof ReturnType<typeof chip>;
|
||||
|
||||
export {chip};
|
||||
|
||||
// calculated styles
|
||||
// src/components/chip/src/use-chip
|
||||
// max-h-[80%]
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/use-clipboard
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/use-clipboard",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Wrapper around navigator.clipboard with feedback timeout",
|
||||
"keywords": [
|
||||
"use-clipboard"
|
||||
|
||||
@ -1,5 +1,13 @@
|
||||
# @nextui-org/use-image
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/use-safe-layout-effect@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/use-image",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "React hook for progressing image loading",
|
||||
"keywords": [
|
||||
"use-image"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/use-is-mounted
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/use-is-mounted",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "This hook can be used to render client-based components or run client logic",
|
||||
"keywords": [
|
||||
"use-is-mounted"
|
||||
|
||||
@ -1,5 +1,13 @@
|
||||
# @nextui-org/use-pagination
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/use-pagination",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "State management hook for Pagination component, it lets you manage pagination with controlled and uncontrolled state",
|
||||
"keywords": [
|
||||
"use-pagination"
|
||||
|
||||
@ -1,5 +1,13 @@
|
||||
# @nextui-org/use-real-shape
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/dom-utils@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/use-real-shape",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Hook that returns the real dimensions of an element",
|
||||
"keywords": [
|
||||
"use-real-shape"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/use-ref-state
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/use-ref-state",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Hook for saving the state in a ref value",
|
||||
"keywords": [
|
||||
"use-ref-state"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/use-resize
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/use-resize",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Hook that adds an event listener to the resize window event",
|
||||
"keywords": [
|
||||
"use-resize"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/use-safe-layout-effect
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/use-safe-layout-effect",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"use-safe-layout-effect"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/use-ssr
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/use-ssr",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "",
|
||||
"keywords": [
|
||||
"use-ssr"
|
||||
|
||||
@ -1,5 +1,13 @@
|
||||
# @nextui-org/aria-utils
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/aria-utils",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "A package for managing @react-aria nextui utils.",
|
||||
"keywords": [
|
||||
"aria-utils"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/dom-utils
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/dom-utils",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "NextUI DOM Utilities",
|
||||
"keywords": [
|
||||
"dom-utils"
|
||||
|
||||
@ -1,5 +1,14 @@
|
||||
# @nextui-org/framer-transitions
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/framer-transitions",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "A set of framer motion transitions for react",
|
||||
"keywords": [
|
||||
"framer-transitions"
|
||||
|
||||
@ -1,5 +1,14 @@
|
||||
# @nextui-org/react-utils
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
- Updated dependencies
|
||||
- @nextui-org/shared-utils@0.0.0-dev-v2-20230326032643
|
||||
- @nextui-org/system@0.0.0-dev-v2-20230326032643
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/react-utils",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "A package for sharing react components and utilities",
|
||||
"keywords": [
|
||||
"react-utils"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/shared-icons
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/shared-icons",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "Internal icons set, commonly used in the components stories",
|
||||
"keywords": [
|
||||
"icons-utils"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/shared-utils
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/shared-utils",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "NextUI system primitives",
|
||||
"keywords": [
|
||||
"system"
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
# @nextui-org/test-utils
|
||||
|
||||
## 0.0.0-dev-v2-20230326032643
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Calculated styled added to theme components, icon button improved
|
||||
|
||||
## 0.0.0-dev-v2-20230326015124
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@nextui-org/test-utils",
|
||||
"version": "0.0.0-dev-v2-20230326015124",
|
||||
"version": "0.0.0-dev-v2-20230326032643",
|
||||
"description": "A set of utilities for react testing",
|
||||
"keywords": [
|
||||
"test-utils"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user