@takecasper/acuity-design-system 1.21.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.es.js +726 -582
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { AnchorHTMLAttributes } from 'react';
|
|
|
4
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
5
5
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
6
6
|
import { default as React_2 } from 'react';
|
|
7
|
+
import { ReactNode } from 'react';
|
|
7
8
|
import { VariantProps } from 'class-variance-authority';
|
|
8
9
|
|
|
9
10
|
export declare const Alert: ({ variant, isDismissible, showIcon, titleSize, title, description, content, closeAriaLabel, id, handleClose, ...props }: AlertProps) => JSX_2.Element;
|
|
@@ -187,6 +188,25 @@ export declare interface RadioProps extends React.InputHTMLAttributes<HTMLInputE
|
|
|
187
188
|
onClick?: (e: React.MouseEvent<HTMLInputElement | HTMLButtonElement, MouseEvent>) => void;
|
|
188
189
|
}
|
|
189
190
|
|
|
191
|
+
export declare const Tab: ({ children }: TabProps) => ReactNode;
|
|
192
|
+
|
|
193
|
+
export declare interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
194
|
+
title: string;
|
|
195
|
+
id: string;
|
|
196
|
+
badgeText?: string;
|
|
197
|
+
children: React.ReactNode;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export declare const Tabs: ({ children, handleTabChange, activeTabIndex, isNested, className, ...props }: TabsProps) => JSX_2.Element;
|
|
201
|
+
|
|
202
|
+
export declare interface TabsProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
203
|
+
handleTabChange: (index: number) => void;
|
|
204
|
+
isNested?: boolean;
|
|
205
|
+
activeTabIndex: number;
|
|
206
|
+
children: React_2.ReactNode;
|
|
207
|
+
className?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
190
210
|
export declare const Textarea: ({ id, state, label, rows, cols, isResizable, optionalityLabel, helpText, message, disabled, ...props }: TextareaProps) => JSX_2.Element;
|
|
191
211
|
|
|
192
212
|
export declare const TextareaAtom: ({ state, rows, cols, isResizable, disabled, ...props }: TextareaAtomProps) => JSX_2.Element;
|