Compare commits

...

10 Commits

Author SHA1 Message Date
github-actions[bot] 12cebcfdac ci(changesets): version packages (#1940)
Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
2023-11-10 10:09:54 -03:00
Junior Garcia 0fb2160899 Merge branch 'main' of github.com:nextui-org/nextui 2023-11-10 10:09:26 -03:00
Junior Garcia 09380c5b06 chore(docs): textarea without autoszie example added 2023-11-10 10:09:08 -03:00
Junior Garcia 0f5cce5d62 fix(progress): tv function refactored (#1951) 2023-11-10 10:00:25 -03:00
Junior Garcia 64c89bc57d fix(tabs): selected key prop duplicated type removed (#1947) 2023-11-10 09:16:00 -03:00
Junior Garcia 467383b8a2 fix(switch): element type (#1949) 2023-11-10 09:06:49 -03:00
Junior Garcia aab1dbf77c Fix/autocomplete ref (#1948)
* fix(tabs): selected key prop duplicated type removed

* fix(autocomplete): reference aims to input

* chore(autocomplete): changeset
2023-11-10 09:03:49 -03:00
Junior Garcia 36775dceee fix(navbar): style prop (#1946) 2023-11-10 08:23:15 -03:00
Pradyumna Banakar 8628ba04a7 docs(breadcrumb): fix typo (#1943) 2023-11-10 07:16:00 -03:00
Junior Garcia a978687b07 fix(system): add "size" prop to HTMLNextUIProps (#1936) 2023-11-09 13:57:20 -03:00
70 changed files with 368 additions and 66 deletions
@@ -0,0 +1,25 @@
const App = `import {Textarea} from "@nextui-org/react";
export default function App() {
return (
<Textarea
label="Description"
variant="bordered"
placeholder="Enter your description"
disableAnimation
disableAutosize
classNames={{
base: "max-w-xs",
input: "resize-y min-h-[40px]",
}}
/>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};
@@ -7,6 +7,7 @@ import variants from "./variants";
import errorMessage from "./error-message";
import description from "./description";
import controlled from "./controlled";
import disableAutosize from "./disable-autosize";
export const textareaContent = {
usage,
@@ -18,4 +19,5 @@ export const textareaContent = {
errorMessage,
description,
controlled,
disableAutosize,
};
@@ -20,7 +20,7 @@ Breadcrumbs display a hierarchy of links to the current page or resource in an a
NextUI exports 2 breadcrumb-related components:
- **Breadcumbs**: The main component, which is a wrapper for the other components.
- **BreadcrumItem**: The component that represents a breadcrumb item.
- **BreadcrumbItem**: The component that represents a breadcrumb item.
<ImportTabs
commands={{
@@ -50,6 +50,12 @@ it using the `minRows` and `maxRows` properties. It is based on [react-textarea-
<CodeDemo title="Autosize" files={textareaContent.autosize} />
### Without Autosize
In case you want to disable the autosize feature, you can use the `disableAutosize` property.
<CodeDemo title="Without Autosize" files={textareaContent.disableAutosize} />
### Variants
<CodeDemo title="Variants" files={textareaContent.variants} />
@@ -1,5 +1,14 @@
# @nextui-org/accordion
## 2.0.28
### Patch Changes
- Updated dependencies []:
- @nextui-org/divider@2.0.25
- @nextui-org/aria-utils@2.0.15
- @nextui-org/framer-transitions@2.0.15
## 2.0.27
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/accordion",
"version": "2.0.27",
"version": "2.0.28",
"description": "Collapse display a list of high-level options that can expand/collapse to reveal more information.",
"keywords": [
"react",
@@ -1,5 +1,20 @@
# @nextui-org/autocomplete
## 2.0.9
### Patch Changes
- [#1948](https://github.com/nextui-org/nextui/pull/1948) [`aab1dbf77`](https://github.com/nextui-org/nextui/commit/aab1dbf77cee29375bf958e44bdf1d6da037cf1f) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Autocomplete Reference aims to input instead of aiming to the wrapper element
- Updated dependencies []:
- @nextui-org/button@2.0.26
- @nextui-org/input@2.1.16
- @nextui-org/listbox@2.1.16
- @nextui-org/popover@2.1.14
- @nextui-org/scroll-shadow@2.1.12
- @nextui-org/spinner@2.0.24
- @nextui-org/aria-utils@2.0.15
## 2.0.8
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/autocomplete",
"version": "2.0.8",
"version": "2.0.9",
"description": "An autocomplete combines a text input with a listbox, allowing users to filter a list of options to items matching a query.",
"keywords": [
"autocomplete"
@@ -177,10 +177,10 @@ export function useAutocomplete<T extends object>(originalProps: UseAutocomplete
// Setup refs and get props for child elements.
const buttonRef = useRef<HTMLButtonElement>(null);
const inputRef = useRef<HTMLInputElement>(null);
const inputWrapperRef = useRef<HTMLDivElement>(null);
const listBoxRef = useRef<HTMLUListElement>(null);
const popoverRef = useRef<HTMLDivElement>(null);
const inputRef = useDOMRef<HTMLInputElement>(ref);
const scrollShadowRef = useDOMRef<HTMLElement>(scrollRefProp);
const slotsProps: {
@@ -293,8 +293,6 @@ export function useAutocomplete<T extends object>(originalProps: UseAutocomplete
const Component = as || "div";
const domRef = useDOMRef(ref);
const slots = useMemo(
() =>
autocomplete({
@@ -320,7 +318,6 @@ export function useAutocomplete<T extends object>(originalProps: UseAutocomplete
);
const getBaseProps: PropGetter = () => ({
ref: domRef,
"data-invalid": dataAttr(originalProps?.isInvalid),
"data-open": dataAttr(state.isOpen),
className: slots.base({class: baseStyles}),
@@ -419,7 +416,7 @@ export function useAutocomplete<T extends object>(originalProps: UseAutocomplete
return {
Component,
domRef,
inputRef,
label,
state,
slots,
+7
View File
@@ -1,5 +1,12 @@
# @nextui-org/badge
## 2.0.24
### Patch Changes
- Updated dependencies [[`a978687b0`](https://github.com/nextui-org/nextui/commit/a978687b0736d1e15943ef46628fc4fa0723ddc7)]:
- @nextui-org/system-rsc@2.0.11
## 2.0.23
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/badge",
"version": "2.0.23",
"version": "2.0.24",
"description": "Badges are used as a small numerical value or status descriptor for UI elements.",
"keywords": [
"badge"
+8
View File
@@ -1,5 +1,13 @@
# @nextui-org/button
## 2.0.26
### Patch Changes
- Updated dependencies []:
- @nextui-org/ripple@2.0.24
- @nextui-org/spinner@2.0.24
## 2.0.25
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/button",
"version": "2.0.25",
"version": "2.0.26",
"description": "Buttons allow users to perform actions and choose with a single tap.",
"keywords": [
"button"
+7
View File
@@ -1,5 +1,12 @@
# @nextui-org/code
## 2.0.24
### Patch Changes
- Updated dependencies [[`a978687b0`](https://github.com/nextui-org/nextui/commit/a978687b0736d1e15943ef46628fc4fa0723ddc7)]:
- @nextui-org/system-rsc@2.0.11
## 2.0.23
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/code",
"version": "2.0.23",
"version": "2.0.24",
"description": "Code is a component used to display inline code.",
"keywords": [
"code"
+7
View File
@@ -1,5 +1,12 @@
# @nextui-org/divider
## 2.0.25
### Patch Changes
- Updated dependencies [[`a978687b0`](https://github.com/nextui-org/nextui/commit/a978687b0736d1e15943ef46628fc4fa0723ddc7)]:
- @nextui-org/system-rsc@2.0.11
## 2.0.24
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/divider",
"version": "2.0.24",
"version": "2.0.25",
"description": ". A separator is a visual divider between two groups of content",
"keywords": [
"divider"
@@ -1,5 +1,13 @@
# @nextui-org/dropdown
## 2.1.16
### Patch Changes
- Updated dependencies []:
- @nextui-org/menu@2.0.17
- @nextui-org/popover@2.1.14
## 2.1.15
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/dropdown",
"version": "2.1.15",
"version": "2.1.16",
"description": "A dropdown displays a list of actions or options that a user can choose.",
"keywords": [
"dropdown"
+7
View File
@@ -1,5 +1,12 @@
# @nextui-org/kbd
## 2.0.25
### Patch Changes
- Updated dependencies [[`a978687b0`](https://github.com/nextui-org/nextui/commit/a978687b0736d1e15943ef46628fc4fa0723ddc7)]:
- @nextui-org/system-rsc@2.0.11
## 2.0.24
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/kbd",
"version": "2.0.24",
"version": "2.0.25",
"description": "The keyboard key components indicates which key or set of keys used to execute a specificv action",
"keywords": [
"kbd"
+8
View File
@@ -1,5 +1,13 @@
# @nextui-org/listbox
## 2.1.16
### Patch Changes
- Updated dependencies []:
- @nextui-org/divider@2.0.25
- @nextui-org/aria-utils@2.0.15
## 2.1.15
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/listbox",
"version": "2.1.15",
"version": "2.1.16",
"description": "A listbox displays a list of options and allows a user to select one or more of them.",
"keywords": [
"listbox"
+8
View File
@@ -1,5 +1,13 @@
# @nextui-org/menu
## 2.0.17
### Patch Changes
- Updated dependencies []:
- @nextui-org/divider@2.0.25
- @nextui-org/aria-utils@2.0.15
## 2.0.16
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/menu",
"version": "2.0.16",
"version": "2.0.17",
"description": "A menu displays a list of options and allows a user to select one or more of them.",
"keywords": [
"menu"
+7
View File
@@ -1,5 +1,12 @@
# @nextui-org/modal
## 2.0.28
### Patch Changes
- Updated dependencies []:
- @nextui-org/framer-transitions@2.0.15
## 2.0.27
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/modal",
"version": "2.0.27",
"version": "2.0.28",
"description": "Displays a dialog with a custom content that requires attention or provides additional information.",
"keywords": [
"modal"
+9
View File
@@ -1,5 +1,14 @@
# @nextui-org/navbar
## 2.0.27
### Patch Changes
- [#1946](https://github.com/nextui-org/nextui/pull/1946) [`36775dcee`](https://github.com/nextui-org/nextui/commit/36775dceee18e4b69684bab4cbdd122a6034c91f) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #1941 style prop added to the base navbar element.
- Updated dependencies []:
- @nextui-org/framer-transitions@2.0.15
## 2.0.26
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/navbar",
"version": "2.0.26",
"version": "2.0.27",
"description": "A responsive navigation header positioned on top side of your page that includes support for branding, links, navigation, collapse and more.",
"keywords": [
"navbar"
@@ -189,6 +189,7 @@ export function useNavbar(originalProps: UseNavbarProps) {
className: slots.base({class: clsx(baseStyles, props?.className)}),
style: {
"--navbar-height": height,
...otherProps?.style,
...props?.style,
},
});
+9
View File
@@ -1,5 +1,14 @@
# @nextui-org/popover
## 2.1.14
### Patch Changes
- Updated dependencies []:
- @nextui-org/button@2.0.26
- @nextui-org/aria-utils@2.0.15
- @nextui-org/framer-transitions@2.0.15
## 2.1.13
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/popover",
"version": "2.1.13",
"version": "2.1.14",
"description": "A popover is an overlay element positioned relative to a trigger.",
"keywords": [
"popover"
+11
View File
@@ -1,5 +1,16 @@
# @nextui-org/select
## 2.1.20
### Patch Changes
- Updated dependencies []:
- @nextui-org/listbox@2.1.16
- @nextui-org/popover@2.1.14
- @nextui-org/scroll-shadow@2.1.12
- @nextui-org/spinner@2.0.24
- @nextui-org/aria-utils@2.0.15
## 2.1.19
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/select",
"version": "2.1.19",
"version": "2.1.20",
"description": "A select displays a collapsible list of options and allows a user to select one of them.",
"keywords": [
"select"
@@ -1,5 +1,12 @@
# @nextui-org/skeleton
## 2.0.24
### Patch Changes
- Updated dependencies [[`a978687b0`](https://github.com/nextui-org/nextui/commit/a978687b0736d1e15943ef46628fc4fa0723ddc7)]:
- @nextui-org/system-rsc@2.0.11
## 2.0.23
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/skeleton",
"version": "2.0.23",
"version": "2.0.24",
"description": "Skeleton is used to display the loading state of some component.",
"keywords": [
"skeleton"
+7
View File
@@ -1,5 +1,12 @@
# @nextui-org/slider
## 2.2.5
### Patch Changes
- Updated dependencies []:
- @nextui-org/tooltip@2.0.29
## 2.2.4
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/slider",
"version": "2.2.4",
"version": "2.2.5",
"description": "A slider allows a user to select one or more values within a range.",
"keywords": [
"slider"
+8
View File
@@ -1,5 +1,13 @@
# @nextui-org/snippet
## 2.0.30
### Patch Changes
- Updated dependencies []:
- @nextui-org/button@2.0.26
- @nextui-org/tooltip@2.0.29
## 2.0.29
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/snippet",
"version": "2.0.29",
"version": "2.0.30",
"description": "Display a snippet of copyable code for the command line.",
"keywords": [
"snippet"
+7
View File
@@ -1,5 +1,12 @@
# @nextui-org/spacer
## 2.0.24
### Patch Changes
- Updated dependencies [[`a978687b0`](https://github.com/nextui-org/nextui/commit/a978687b0736d1e15943ef46628fc4fa0723ddc7)]:
- @nextui-org/system-rsc@2.0.11
## 2.0.23
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/spacer",
"version": "2.0.23",
"version": "2.0.24",
"description": "A flexible spacer component designed to create consistent spacing and maintain alignment in your layout.",
"keywords": [
"spacer"
+7
View File
@@ -1,5 +1,12 @@
# @nextui-org/spinner
## 2.0.24
### Patch Changes
- Updated dependencies [[`a978687b0`](https://github.com/nextui-org/nextui/commit/a978687b0736d1e15943ef46628fc4fa0723ddc7)]:
- @nextui-org/system-rsc@2.0.11
## 2.0.23
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/spinner",
"version": "2.0.23",
"version": "2.0.24",
"description": "Loaders express an unspecified wait time or display the length of a process.",
"keywords": [
"loading",
+6
View File
@@ -1,5 +1,11 @@
# @nextui-org/switch
## 2.0.25
### Patch Changes
- [#1949](https://github.com/nextui-org/nextui/pull/1949) [`467383b8a`](https://github.com/nextui-org/nextui/commit/467383b8a2ad42bd22fabe1f70ea17c95bede53b) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix switch base element type it is an input now.
## 2.0.24
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/switch",
"version": "2.0.24",
"version": "2.0.25",
"description": "A switch is similar to a checkbox, but represents on/off values as opposed to selection.",
"keywords": [
"switch"
+1 -1
View File
@@ -6,7 +6,7 @@ import {UseSwitchProps, useSwitch} from "./use-switch";
export interface SwitchProps extends UseSwitchProps {}
const Switch = forwardRef<"label", SwitchProps>((props, ref) => {
const Switch = forwardRef<"input", SwitchProps>((props, ref) => {
const {
Component,
children,
+1 -1
View File
@@ -23,7 +23,7 @@ export type SwitchThumbIconProps = {
isSelected: boolean;
className: string;
};
interface Props extends HTMLNextUIProps<"label"> {
interface Props extends HTMLNextUIProps<"input"> {
/**
* Ref to the DOM node.
*/
@@ -159,7 +159,7 @@ export const DisableAnimation = {
},
};
export const WiththumbIcon = {
export const WithThumbIcon = {
args: {
...defaultProps,
size: "xl",
+8
View File
@@ -1,5 +1,13 @@
# @nextui-org/table
## 2.0.28
### Patch Changes
- Updated dependencies []:
- @nextui-org/checkbox@2.0.25
- @nextui-org/spacer@2.0.24
## 2.0.27
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/table",
"version": "2.0.27",
"version": "2.0.28",
"description": "Tables are used to display tabular data using rows and columns. ",
"keywords": [
"table"
+10
View File
@@ -1,5 +1,15 @@
# @nextui-org/tabs
## 2.0.26
### Patch Changes
- [#1948](https://github.com/nextui-org/nextui/pull/1948) [`aab1dbf77`](https://github.com/nextui-org/nextui/commit/aab1dbf77cee29375bf958e44bdf1d6da037cf1f) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #1938 selectedKey duplicated declaration
- Updated dependencies []:
- @nextui-org/aria-utils@2.0.15
- @nextui-org/framer-transitions@2.0.15
## 2.0.25
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/tabs",
"version": "2.0.25",
"version": "2.0.26",
"description": "Tabs organize content into multiple sections and allow users to navigate between them.",
"keywords": [
"tabs"
+1 -1
View File
@@ -51,7 +51,7 @@ export interface Props extends Omit<HTMLNextUIProps, "children"> {
export type UseTabsProps<T> = Props &
TabsVariantProps &
Omit<TabListStateOptions<T>, "children"> &
Omit<TabListStateOptions<T>, "children" | keyof AriaTabListProps<T>> &
Omit<AriaTabListProps<T>, "children" | "orientation"> &
CollectionProps<T>;
+8
View File
@@ -1,5 +1,13 @@
# @nextui-org/tooltip
## 2.0.29
### Patch Changes
- Updated dependencies []:
- @nextui-org/aria-utils@2.0.15
- @nextui-org/framer-transitions@2.0.15
## 2.0.28
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/tooltip",
"version": "2.0.28",
"version": "2.0.29",
"description": "A React Component for rendering dynamically positioned Tooltips",
"keywords": [
"tooltip"
+45
View File
@@ -1,5 +1,50 @@
# @nextui-org/react
## 2.2.9
### Patch Changes
- Updated dependencies [[`0f5cce5d6`](https://github.com/nextui-org/nextui/commit/0f5cce5d62713c59973b4330607cdcd3fd95d41a), [`36775dcee`](https://github.com/nextui-org/nextui/commit/36775dceee18e4b69684bab4cbdd122a6034c91f), [`aab1dbf77`](https://github.com/nextui-org/nextui/commit/aab1dbf77cee29375bf958e44bdf1d6da037cf1f), [`aab1dbf77`](https://github.com/nextui-org/nextui/commit/aab1dbf77cee29375bf958e44bdf1d6da037cf1f), [`467383b8a`](https://github.com/nextui-org/nextui/commit/467383b8a2ad42bd22fabe1f70ea17c95bede53b)]:
- @nextui-org/theme@2.1.17
- @nextui-org/navbar@2.0.27
- @nextui-org/autocomplete@2.0.9
- @nextui-org/tabs@2.0.26
- @nextui-org/switch@2.0.25
- @nextui-org/accordion@2.0.28
- @nextui-org/avatar@2.0.24
- @nextui-org/badge@2.0.24
- @nextui-org/breadcrumbs@2.0.4
- @nextui-org/button@2.0.26
- @nextui-org/card@2.0.24
- @nextui-org/checkbox@2.0.25
- @nextui-org/chip@2.0.25
- @nextui-org/code@2.0.24
- @nextui-org/divider@2.0.25
- @nextui-org/dropdown@2.1.16
- @nextui-org/image@2.0.24
- @nextui-org/input@2.1.16
- @nextui-org/kbd@2.0.25
- @nextui-org/link@2.0.26
- @nextui-org/listbox@2.1.16
- @nextui-org/menu@2.0.17
- @nextui-org/modal@2.0.28
- @nextui-org/pagination@2.0.26
- @nextui-org/popover@2.1.14
- @nextui-org/progress@2.0.24
- @nextui-org/radio@2.0.25
- @nextui-org/ripple@2.0.24
- @nextui-org/scroll-shadow@2.1.12
- @nextui-org/select@2.1.20
- @nextui-org/skeleton@2.0.24
- @nextui-org/slider@2.2.5
- @nextui-org/snippet@2.0.30
- @nextui-org/spacer@2.0.24
- @nextui-org/spinner@2.0.24
- @nextui-org/table@2.0.28
- @nextui-org/tooltip@2.0.29
- @nextui-org/user@2.0.25
- @nextui-org/system@2.0.15
## 2.2.8
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/react",
"version": "2.2.8",
"version": "2.2.9",
"description": "🚀 Beautiful and modern React UI library.",
"author": "Junior Garcia <jrgarciadev@gmail.com>",
"homepage": "https://nextui.org",
+6
View File
@@ -1,5 +1,11 @@
# @nextui-org/system-rsc
## 2.0.11
### Patch Changes
- [#1936](https://github.com/nextui-org/nextui/pull/1936) [`a978687b0`](https://github.com/nextui-org/nextui/commit/a978687b0736d1e15943ef46628fc4fa0723ddc7) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #1935 size prop added to the omitted HTMLNextUIProps
## 2.0.10
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/system-rsc",
"version": "2.0.10",
"version": "2.0.11",
"description": "NextUI system primitives compatibles with RSC imports",
"keywords": [
"system-rsc"
+1 -1
View File
@@ -70,7 +70,7 @@ export type Merge<M, N> = N extends Record<string, unknown> ? M : Omit<M, keyof
export type HTMLNextUIProps<T extends As = "div", OmitKeys extends keyof any = never> = Omit<
PropsOf<T>,
"ref" | "color" | "slot" | "defaultChecked" | "defaultValue" | OmitKeys
"ref" | "color" | "slot" | "size" | "defaultChecked" | "defaultValue" | OmitKeys
> & {
as?: As;
};
+7
View File
@@ -1,5 +1,12 @@
# @nextui-org/system
## 2.0.15
### Patch Changes
- Updated dependencies [[`a978687b0`](https://github.com/nextui-org/nextui/commit/a978687b0736d1e15943ef46628fc4fa0723ddc7)]:
- @nextui-org/system-rsc@2.0.11
## 2.0.14
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/system",
"version": "2.0.14",
"version": "2.0.15",
"description": "NextUI system primitives",
"keywords": [
"system"
+6
View File
@@ -1,5 +1,11 @@
# @nextui-org/theme
## 2.1.17
### Patch Changes
- [#1951](https://github.com/nextui-org/nextui/pull/1951) [`0f5cce5d6`](https://github.com/nextui-org/nextui/commit/0f5cce5d62713c59973b4330607cdcd3fd95d41a) Thanks [@jrgarciadev](https://github.com/jrgarciadev)! - Fix #1933 TV Function refactored to support twMerge false opts.
## 2.1.16
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/theme",
"version": "2.1.16",
"version": "2.1.17",
"description": "The default theme for NextUI components",
"keywords": [
"theme",
+31 -26
View File
@@ -1,31 +1,36 @@
import {createTV} from "tailwind-variants";
import {tv as tvBase, TV} from "tailwind-variants";
import {mappedSpacingScaleKeys} from "../types";
const COMMON_UNITS = ["small", "medium", "large"];
export const tv = createTV({
twMerge: true,
twMergeConfig: {
theme: {
opacity: ["disabled"],
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
borderWidth: COMMON_UNITS,
borderRadius: COMMON_UNITS,
export const tv: TV = (options, config) =>
tvBase(options, {
...config,
twMerge: config?.twMerge ?? true,
twMergeConfig: {
...config?.twMergeConfig,
theme: {
...config?.twMergeConfig?.theme,
opacity: ["disabled"],
spacing: ["divider", "unit", ...mappedSpacingScaleKeys],
borderWidth: COMMON_UNITS,
borderRadius: COMMON_UNITS,
},
classGroups: {
...config?.twMergeConfig?.classGroups,
shadow: [{shadow: COMMON_UNITS}],
"font-size": [{text: ["tiny", ...COMMON_UNITS]}],
"bg-image": ["bg-stripe-gradient"],
"min-w": [
{
"min-w": ["unit", ...mappedSpacingScaleKeys],
},
],
"min-h": [
{
"min-h": ["unit", ...mappedSpacingScaleKeys],
},
],
},
},
classGroups: {
shadow: [{shadow: COMMON_UNITS}],
"font-size": [{text: ["tiny", ...COMMON_UNITS]}],
"bg-image": ["bg-stripe-gradient"],
"min-w": [
{
"min-w": ["unit", ...mappedSpacingScaleKeys],
},
],
"min-h": [
{
"min-h": ["unit", ...mappedSpacingScaleKeys],
},
],
},
},
});
});
@@ -1,5 +1,12 @@
# @nextui-org/aria-utils
## 2.0.15
### Patch Changes
- Updated dependencies []:
- @nextui-org/system@2.0.15
## 2.0.14
### Patch Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/aria-utils",
"version": "2.0.14",
"version": "2.0.15",
"description": "A package for managing @react-aria nextui utils.",
"keywords": [
"aria-utils"
@@ -1,5 +1,12 @@
# @nextui-org/framer-transitions
## 2.0.15
### Patch Changes
- Updated dependencies []:
- @nextui-org/system@2.0.15
## 2.0.14
### Patch Changes
@@ -1,6 +1,6 @@
{
"name": "@nextui-org/framer-transitions",
"version": "2.0.14",
"version": "2.0.15",
"description": "A set of framer motion transitions for react",
"keywords": [
"framer-transitions"