@simpli-route/apollo-ds 0.1.4 → 0.1.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/dist/components/Accordion/types.d.ts +1 -0
- package/dist/components/Chips/AssistChip.d.ts +3 -0
- package/dist/components/Chips/Chips.test.d.ts +1 -0
- package/dist/components/Chips/index.d.ts +2 -0
- package/dist/components/Chips/types.d.ts +44 -0
- package/dist/components/Chips/variants.d.ts +9 -0
- package/dist/components/IconButton/types.d.ts +1 -1
- package/dist/components/IconButton/variants.d.ts +1 -1
- package/dist/components/LoadingOverlay/LoadingOverlay.d.ts +4 -0
- package/dist/components/LoadingOverlay/LoadingOverlay.test.d.ts +1 -0
- package/dist/components/LoadingOverlay/Overlay.d.ts +4 -0
- package/dist/components/LoadingOverlay/index.d.ts +2 -0
- package/dist/components/LoadingOverlay/types.d.ts +47 -0
- package/dist/components/LoadingOverlay/variants.d.ts +6 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +12 -0
- package/dist/components/ProgressBar/ProgressBar.test.d.ts +1 -0
- package/dist/components/ProgressBar/index.d.ts +2 -0
- package/dist/components/ProgressBar/types.d.ts +59 -0
- package/dist/components/ProgressBar/variants.d.ts +6 -0
- package/dist/components/Tabs/types.d.ts +8 -2
- package/dist/components/Tooltip/types.d.ts +1 -0
- package/dist/components/Typography/types.d.ts +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -9
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -19
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs45.js +9 -1
- package/dist/index.cjs46.js +19 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -0
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -0
- package/dist/index.cjs51.js +1 -0
- package/dist/index.cjs52.js +1 -0
- package/dist/index.cjs53.js +1 -0
- package/dist/index.cjs54.js +1 -0
- package/dist/index.cjs55.js +1 -0
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.es.js +27 -21
- package/dist/index.es10.js +78 -66
- package/dist/index.es11.js +68 -30
- package/dist/index.es12.js +77 -23
- package/dist/index.es13.js +28 -23
- package/dist/index.es14.js +24 -8
- package/dist/index.es15.js +28 -8
- package/dist/index.es16.js +8 -6
- package/dist/index.es17.js +7 -5
- package/dist/index.es18.js +87 -21
- package/dist/index.es19.js +6 -173
- package/dist/index.es2.js +3 -3
- package/dist/index.es20.js +6 -43
- package/dist/index.es21.js +22 -59
- package/dist/index.es22.js +173 -3
- package/dist/index.es23.js +27 -76
- package/dist/index.es24.js +29 -17
- package/dist/index.es25.js +59 -30
- package/dist/index.es26.js +3 -11
- package/dist/index.es27.js +92 -10
- package/dist/index.es28.js +22 -12
- package/dist/index.es29.js +32 -129
- package/dist/index.es3.js +31 -27
- package/dist/index.es30.js +30 -19
- package/dist/index.es31.js +161 -18
- package/dist/index.es32.js +10 -96
- package/dist/index.es33.js +11 -13
- package/dist/index.es34.js +2 -2
- package/dist/index.es35.js +2 -2
- package/dist/index.es37.js +10 -45
- package/dist/index.es38.js +12 -2
- package/dist/index.es39.js +96 -30
- package/dist/index.es4.js +4 -4
- package/dist/index.es40.js +13 -599
- package/dist/index.es41.js +19 -19
- package/dist/index.es42.js +20 -19
- package/dist/index.es43.js +45 -21
- package/dist/index.es44.js +2 -21
- package/dist/index.es45.js +30 -19
- package/dist/index.es46.js +599 -56
- package/dist/index.es47.js +30 -2
- package/dist/index.es48.js +19 -2
- package/dist/index.es49.js +21 -0
- package/dist/index.es5.js +42 -38
- package/dist/index.es50.js +23 -0
- package/dist/index.es51.js +23 -0
- package/dist/index.es52.js +21 -0
- package/dist/index.es53.js +58 -0
- package/dist/index.es54.js +4 -0
- package/dist/index.es55.js +4 -0
- package/dist/index.es6.js +38 -31
- package/dist/index.es7.js +31 -49
- package/dist/index.es8.js +46 -86
- package/dist/index.es9.js +36 -69
- package/dist/stories/Chips.stories.d.ts +22 -0
- package/dist/stories/IconButton.stories.d.ts +1 -0
- package/dist/stories/LoadingOverlay.stories.d.ts +17 -0
- package/dist/stories/ProgressBar.stories.d.ts +29 -0
- package/dist/style.css +225 -0
- package/dist/testing/tests/itRendersChildren.d.ts +1 -0
- package/dist/testing/tests/itSupportsClassName.d.ts +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ChipProps {
|
|
3
|
+
/**
|
|
4
|
+
* Defines the style of the chip
|
|
5
|
+
* @default square
|
|
6
|
+
*/
|
|
7
|
+
style?: "rounded" | "square";
|
|
8
|
+
/**
|
|
9
|
+
* Defines the size of the chip
|
|
10
|
+
* @default sm
|
|
11
|
+
*/
|
|
12
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
13
|
+
/**
|
|
14
|
+
* Defines if the chip is pressable
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
pressable?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Defines if the chip is pressed
|
|
20
|
+
* Only applies when pressable is true
|
|
21
|
+
*/
|
|
22
|
+
isPressed?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Optional function to call when the chip is pressed
|
|
25
|
+
* Only applies when pressable is true
|
|
26
|
+
*/
|
|
27
|
+
onPress?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* Defines if the chip is disabled
|
|
30
|
+
*/
|
|
31
|
+
isDisabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Optional className to add the root of the button
|
|
34
|
+
*/
|
|
35
|
+
className?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional icon to display to the left of the chip
|
|
38
|
+
*/
|
|
39
|
+
icon?: React.ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Text to display on the chip
|
|
42
|
+
*/
|
|
43
|
+
text: React.ReactNode;
|
|
44
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const assistChipVariants: (props?: ({
|
|
2
|
+
style?: "rounded" | "square" | null | undefined;
|
|
3
|
+
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
4
|
+
pressable?: boolean | null | undefined;
|
|
5
|
+
isFocused?: boolean | null | undefined;
|
|
6
|
+
isHovered?: boolean | null | undefined;
|
|
7
|
+
isPressed?: boolean | null | undefined;
|
|
8
|
+
isDisabled?: boolean | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonProps } from 'react-aria-components';
|
|
2
2
|
|
|
3
3
|
export interface IconButtonProps extends ButtonProps {
|
|
4
|
-
intent?: "primary" | "secondary" | "minimal";
|
|
4
|
+
intent?: "primary" | "secondary" | "minimal" | "error";
|
|
5
5
|
size?: "xxs" | "xs" | "sm" | "md" | "lg";
|
|
6
6
|
isActive?: boolean;
|
|
7
7
|
isDisabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const buttonVariants: (props?: ({
|
|
2
|
-
intent?: "primary" | "secondary" | "minimal" | null | undefined;
|
|
2
|
+
intent?: "primary" | "secondary" | "error" | "minimal" | null | undefined;
|
|
3
3
|
size?: "xs" | "sm" | "md" | "lg" | "xxs" | null | undefined;
|
|
4
4
|
isDisabled?: boolean | null | undefined;
|
|
5
5
|
isHovered?: boolean | null | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LoaderProps } from '../Loader';
|
|
2
|
+
import { ComponentPropsWithoutRef, CSSProperties, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface OverlayProps {
|
|
5
|
+
/** Optional className for the container */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Overlay background-color opacity
|
|
8
|
+
* @default 'md'
|
|
9
|
+
*/
|
|
10
|
+
opacity?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
11
|
+
/** Overlay background blur intensity
|
|
12
|
+
* @default 'md'
|
|
13
|
+
*/
|
|
14
|
+
blur?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
15
|
+
/** Overlay z-index
|
|
16
|
+
* @default 200
|
|
17
|
+
*/
|
|
18
|
+
zIndex?: CSSProperties["zIndex"];
|
|
19
|
+
/** Content rendered inside overlay */
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
/** Determines whether content inside overlay should be vertically and horizontally centered, false by default
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
center?: boolean;
|
|
25
|
+
/** Determines whether overlay should have fixed position instead of absolute, false by default
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
fixed?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface LoadingOverlayProps extends ComponentPropsWithoutRef<"div"> {
|
|
31
|
+
/** If set loading overlay will not be unmounted from the DOM when it is hidden, display: none styles will be added instead */
|
|
32
|
+
keepMounted?: boolean;
|
|
33
|
+
/** Provide custom loader */
|
|
34
|
+
loader?: ReactNode;
|
|
35
|
+
/** Loader component props */
|
|
36
|
+
loaderProps?: LoaderProps;
|
|
37
|
+
/** Props for the overlay component */
|
|
38
|
+
overlayProps?: OverlayProps;
|
|
39
|
+
/** Loading overlay z-index */
|
|
40
|
+
zIndex?: CSSProperties["zIndex"];
|
|
41
|
+
/** If visible overlay will take 100% width and height of first parent with relative position and overlay all of its content */
|
|
42
|
+
visible: boolean;
|
|
43
|
+
/** Blur amount for the overlay */
|
|
44
|
+
blur?: number;
|
|
45
|
+
/** Additional class names for the overlay */
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const overlayVariants: (props?: ({
|
|
2
|
+
opacity?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
3
|
+
fixed?: boolean | null | undefined;
|
|
4
|
+
center?: boolean | null | undefined;
|
|
5
|
+
blur?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProgressBarProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ProgressBar component **version 0.1** https://www.figma.com/design/h6tZeqNdVEUvrgwOwK4vcY/Design-System---The-Bible?node-id=6065-102361&p=f&t=rC5jC4BTFAggedw5-0
|
|
5
|
+
*
|
|
6
|
+
* ### Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { ProgressBar } from "@simpli-route/apollo-ds";
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare const ProgressBar: (props: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ProgressBarProps as BaseProgressBarProps } from 'react-aria-components';
|
|
2
|
+
|
|
3
|
+
export interface ProgressBarProps extends BaseProgressBarProps {
|
|
4
|
+
variant?: "primary" | "success" | "error" | "yellow" | "yellowWarning" | "orangeWarning" | "sky";
|
|
5
|
+
classNameLabel?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Whether to show text with the percentage value
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
showPercentage?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to show type of percentage value
|
|
15
|
+
* @default "text"
|
|
16
|
+
*/
|
|
17
|
+
showTypePercentage?: "text" | "tooltip";
|
|
18
|
+
/**
|
|
19
|
+
* Position of the tooltip with the percentage value
|
|
20
|
+
* @default "bottom"
|
|
21
|
+
*/
|
|
22
|
+
positionTooltipPercentage?: "top" | "bottom";
|
|
23
|
+
/**
|
|
24
|
+
* Class name for the bar
|
|
25
|
+
*/
|
|
26
|
+
barClassName?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Class name for the fill
|
|
29
|
+
*/
|
|
30
|
+
fillClassName?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Class name for the value text
|
|
33
|
+
*/
|
|
34
|
+
valueTextClassName?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Mode of the tooltip theme
|
|
37
|
+
* @default "dark"
|
|
38
|
+
*/
|
|
39
|
+
modeTooltip?: "dark" | "light";
|
|
40
|
+
/**
|
|
41
|
+
* Maximum value of the progress bar
|
|
42
|
+
* @default 100
|
|
43
|
+
*/
|
|
44
|
+
maxValue?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Minimum value of the progress bar
|
|
47
|
+
* @default 0
|
|
48
|
+
*/
|
|
49
|
+
minValue?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Custom label for the progress bar (this replace the percentage value to show)
|
|
52
|
+
*/
|
|
53
|
+
valueCustomLabel?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Position of the value percentage text
|
|
56
|
+
* @default "right"
|
|
57
|
+
*/
|
|
58
|
+
valuePosition?: "right" | "bottom";
|
|
59
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const progressBarVariants: (props?: ({
|
|
2
|
+
variant?: "primary" | "success" | "error" | "orangeWarning" | "yellowWarning" | "yellow" | "sky" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const progressFillVariants: (props?: ({
|
|
5
|
+
variant?: "primary" | "success" | "error" | "orangeWarning" | "yellowWarning" | "yellow" | "sky" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -2,7 +2,8 @@ import { TabListState } from 'react-stately';
|
|
|
2
2
|
import { AriaTabListProps, AriaTabPanelProps, AriaTabProps, Orientation } from 'react-aria';
|
|
3
3
|
import { Key, ReactElement, ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
type KeyType = string | number;
|
|
6
|
+
export interface TabsProps<T extends object> extends Omit<AriaTabListProps<T>, "selectedKey" | "defaultSelectedKey"> {
|
|
6
7
|
/** Optional rootClassName to add the root of the component */
|
|
7
8
|
rootClassName?: string;
|
|
8
9
|
/** Optional tabClassName to add the tabs of the component */
|
|
@@ -13,8 +14,12 @@ export interface TabsProps<T extends object> extends AriaTabListProps<T> {
|
|
|
13
14
|
orientation?: "horizontal" | "vertical";
|
|
14
15
|
/** Optional id for the component*/
|
|
15
16
|
id?: string;
|
|
17
|
+
/** The key of the default selected tab. */
|
|
18
|
+
defaultSelectedKey?: KeyType;
|
|
19
|
+
/** The key of the selected tab. */
|
|
20
|
+
selectedKey?: KeyType | null;
|
|
16
21
|
/** Handler that is called when the selection changes. */
|
|
17
|
-
onSelectionChange?: (key:
|
|
22
|
+
onSelectionChange?: (key: KeyType) => void;
|
|
18
23
|
/** Whether the TabList is disabled. Shows that a selection exists, but is not available in that circumstance. */
|
|
19
24
|
isDisabled?: boolean;
|
|
20
25
|
}
|
|
@@ -66,3 +71,4 @@ export interface TabPanelProps<T extends object> extends AriaTabPanelProps {
|
|
|
66
71
|
className?: string;
|
|
67
72
|
state: TabListState<T>;
|
|
68
73
|
}
|
|
74
|
+
export {};
|
|
@@ -31,6 +31,7 @@ export interface TooltipProps extends AriaTooltipProps {
|
|
|
31
31
|
*/
|
|
32
32
|
mode?: "light" | "dark";
|
|
33
33
|
className?: string;
|
|
34
|
+
style?: React.CSSProperties;
|
|
34
35
|
}
|
|
35
36
|
export interface TooltipTriggerProps extends BaseTooltipTriggerProps {
|
|
36
37
|
/** The TooltipTrigger accepts exactly two children: the element which triggers opening of the Tooltip and the Tooltip
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
export * from './Accordion';
|
|
2
2
|
export * from './Button';
|
|
3
3
|
export * from './Checkbox';
|
|
4
|
+
export * from './Chips';
|
|
4
5
|
export * from './IconButton';
|
|
5
6
|
export * from './Input';
|
|
6
7
|
export * from './Loader';
|
|
8
|
+
export * from './LoadingOverlay';
|
|
7
9
|
export * from './NumberField';
|
|
8
10
|
export * from './Slider';
|
|
9
11
|
export * from './Switch';
|
|
10
12
|
export * from './Tabs';
|
|
11
13
|
export * from './Tooltip';
|
|
12
14
|
export * from './Typography';
|
|
15
|
+
export * from './ProgressBar';
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js"),r=require("./index.cjs3.js"),o=require("./index.cjs4.js"),i=require("./index.cjs5.js"),t=require("./index.cjs6.js"),s=require("./index.cjs7.js"),c=require("./index.cjs8.js"),n=require("./index.cjs9.js"),u=require("./index.cjs10.js"),l=require("./index.cjs11.js"),a=require("./index.cjs12.js"),T=require("./index.cjs13.js"),d=require("./index.cjs14.js"),q=require("./index.cjs15.js"),b=require("./index.cjs16.js"),g=require("./index.cjs17.js"),p=require("./index.cjs18.js");exports.Accordion=e.Accordion;exports.Button=r.Button;exports.Checkbox=o.Checkbox;exports.AssistChip=i.AssistChip;exports.IconButton=t.IconButton;exports.Label=s.Label;exports.Loader=c.Loader;exports.LoadingOverlay=n.LoadingOverlay;exports.NumberField=u.NumberField;exports.Slider=l.Slider;exports.Switch=a.Switch;exports.Tabs=T.Tabs;exports.Tooltip=d.Tooltip;exports.TooltipTrigger=q.TooltipTrigger;exports.Text=b.Text;exports.Title=g.Title;exports.ProgressBar=p.ProgressBar;
|
package/dist/index.cjs10.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs19.js"),r=require("react-aria-components"),n=require("./index.cjs20.js"),S=require("./index.cjs7.js"),g=require("./index.cjs37.js"),y=require("./index.cjs38.js"),B=require("./index.cjs25.js"),I=({size:l="sm",label:a,description:o,errorMessage:x,isDisabled:e=!1,isReadOnly:s=!1,isRequired:c=!1,tooltipText:m,tooltipSupportText:p,tooltipProps:d,className:j,descriptionClasses:N,errorClasses:f,validationState:i="default",inputClassName:v,maxValue:b,minValue:q=0,autoFocus:E=!1,maxLength:R,...F})=>{const u=i==="invalid"&&!e;return t.jsxRuntimeExports.jsx("div",{className:n.cn("flex",j),children:t.jsxRuntimeExports.jsxs(r.NumberField,{autoFocus:E,className:e?"opacity-70":"",isDisabled:e,isReadOnly:s,maxValue:b,minValue:q,...F,children:[t.jsxRuntimeExports.jsx(S.Label,{labelClassName:n.cn("leading-[19.07px] text-left mb-0.5",{"text-neutral-700":e}),isRequired:c,tooltipText:m,tooltipSupportText:p,tooltipProps:d,children:a}),t.jsxRuntimeExports.jsxs(r.Group,{className:"relative mb-0.5 w-full rounded",children:[t.jsxRuntimeExports.jsx(r.Input,{disabled:e,maxLength:R,className:({isFocused:h,isHovered:C})=>n.cn(B.inputNumberVariant({size:l,isDisabled:e,isReadOnly:s,isHovered:C,isFocused:h,validationState:i==="valid"?"valid":u?"invalid":"default"}),v)}),t.jsxRuntimeExports.jsx(y.StepperButton,{isDisabled:e})]}),t.jsxRuntimeExports.jsx(g.CaptionNumberField,{description:o,descriptionClasses:N,errorMessage:x,errorClasses:f,isInvalidField:u})]})})};exports.NumberField=I;
|
package/dist/index.cjs11.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs19.js"),x=require("react"),j=require("react-aria-components"),b=require("./index.cjs20.js"),M=require("./index.cjs39.js"),P=require("./index.cjs40.js"),$=({type:r="single",showTypeValue:u="default",positionTooltip:S="top",modeTooltip:A="dark",maxValue:m=100,minValue:q=0,value:t=r==="range"?[0,5]:0,onChangeValue:s,className:n,classNameFilled:E,classNameUnfilled:T,classNameThumb:R,suffix:k="%",step:v=1,minDistance:d=2,...w})=>{const[l,N]=x.useState(r);return x.useEffect(()=>{if(r==="range"&&Array.isArray(t)){const[i,c]=t;if(c-i<d){const e=[i,i+d];(e[0]!==t[0]||e[1]!==t[1])&&(s==null||s(e))}}},[r,t,s,d]),x.useEffect(()=>{l!==r&&(N(r),s==null||s(r==="range"?[0,5]:0))},[r,s,l]),o.jsxRuntimeExports.jsx("div",{className:"flex w-full flex-col py-4",children:o.jsxRuntimeExports.jsx(j.Slider,{value:t,step:v,maxValue:m,minValue:q,className:b.cn("w-full",n),onChange:i=>{const c=i;if(c!==void 0){const e=Array.isArray(c),f=r==="range"&&e?P.validateMinDistance(c,r,d):c;s==null||s(r==="range"?f:Array.isArray(f)?f[0]||0:f)}},...w,children:o.jsxRuntimeExports.jsx(j.SliderTrack,{className:"relative h-3 w-full cursor-pointer",children:({state:i})=>o.jsxRuntimeExports.jsx(M.SliderContainerTrack,{state:i,type:r,showTypeValue:u,suffix:k,classNameFilled:E,classNameUnfilled:T,modeTooltip:A,positionTooltip:S,classNameThumb:R})})})})};exports.Slider=$;
|
package/dist/index.cjs12.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs19.js"),p=require("react-aria-components"),c=require("./index.cjs20.js"),q=require("./index.cjs41.js"),R=require("./index.cjs42.js"),v=require("./index.cjs27.js"),E=({children:s,label:i,description:o,errorMessage:x,validationState:u,size:e="md",isDisabled:t=!1,isSelected:n=!1,onChange:f,renderLabelIcon:m=null,"aria-label":h,"aria-describedby":j})=>{const l=u==="invalid"&&!t,w=e==="sm"?{offLeft:3,onLeft:19}:{offLeft:4,onLeft:28};return r.jsxRuntimeExports.jsxs("label",{className:c.cn("group flex flex-row gap-2",(i||s)&&o?"items-start":"items-center"),children:[r.jsxRuntimeExports.jsx(p.Switch,{isDisabled:t,isSelected:n,"aria-checked":n,"aria-label":h,"aria-describedby":j,onChange:f,children:({isFocusVisible:d,isHovered:a})=>r.jsxRuntimeExports.jsx("div",{className:c.cn(v.switchVariants({isSelected:n,isDisabled:t,isFocusVisible:d,size:e,isHoveredWhenOff:a&&!n})),children:r.jsxRuntimeExports.jsx(R.SwitchIndicator,{isSelected:n,isDisabled:t,isHovered:a,size:e,dimensions:w})})}),r.jsxRuntimeExports.jsx(q.ContentSwitch,{label:i,description:o,errorMessage:x,isDisabled:t,isInvalid:l,renderLabelIcon:m,children:s})]})};exports.Switch=E;
|
package/dist/index.cjs13.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs19.js"),j=require("react"),q=require("react-aria"),c=require("react-stately"),r=require("./index.cjs20.js"),T=require("./index.cjs34.js"),f=require("./index.cjs35.js"),p=require("./index.cjs36.js"),l=a=>{var i;const{rootClassName:u,tabClassName:x,tabPanelClassName:m,orientation:t="horizontal",id:b=void 0}=a,e=c.useTabListState(a),n=j.useRef(null),{tabListProps:d}=q.useTabList(a,e,n);return s.jsxRuntimeExports.jsxs("div",{className:r.cn(p.tabsVariants({orientation:t}),u),children:[s.jsxRuntimeExports.jsx("div",{...d,ref:n,className:r.cn("flex",t==="horizontal"?"flex-row flex-wrap":"flex-col"),children:[...e.collection].map(o=>s.jsxRuntimeExports.jsx(T.Tab,{item:o,state:e,orientation:t,className:x,id:b},o.key))}),s.jsxRuntimeExports.jsx(f.TabPanel,{state:e,className:r.cn("p-2",t==="horizontal"?"pl-2":"pt-2",m)},(i=e.selectedItem)==null?void 0:i.key)]})};l.Item=c.Item;exports.Tabs=l;
|
package/dist/index.cjs14.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs19.js"),r=require("react"),n=require("react-aria"),i=require("./index.cjs20.js"),P=require("./index.cjs26.js"),b=require("./index.cjs43.js"),a=r.forwardRef((l,c)=>{const{placement:p="bottom",size:u="md",className:x,mode:e="dark",supportText:t,children:d,...o}=l,{state:m,...T}=r.useContext(P.TooltipContext),{tooltipProps:q}=n.useTooltip(o,m),j=i.cn(b.tooltipVariants({placement:p,size:u,mode:e,hasSupportText:!!t}),x);return s.jsxRuntimeExports.jsxs("span",{className:j,...n.mergeProps(o,q,T),ref:c,children:[d,t?s.jsxRuntimeExports.jsx("div",{className:i.cn("!text-sm !font-normal !leading-[19.07px]",e==="dark"?"!text-blue-50":"!text-neutral-700"),children:t}):null]})});a.displayName="Tooltip";exports.Tooltip=a;
|
package/dist/index.cjs15.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs19.js"),t=require("react"),x=require("react-aria"),T=require("react-stately"),d=require("./index.cjs20.js"),m=require("./index.cjs26.js"),h=i=>{const{children:e,isDisabled:s,trigger:l,className:c}=i,r=T.useTooltipTriggerState(i),o=t.useRef(null),{triggerProps:g,tooltipProps:a}=x.useTooltipTrigger({isDisabled:s,trigger:l},r,o),[u,p]=t.Children.toArray(e);if(!Array.isArray(e)||e.length>2)throw new Error("TooltipTrigger must have exactly 2 children");return n.jsxRuntimeExports.jsxs("span",{className:d.cn("relative inline-flex items-center",c),children:[t.cloneElement(u,{...g,ref:o}),n.jsxRuntimeExports.jsx(m.TooltipContext.Provider,{value:{state:r,...a},children:r.isOpen?p:null})]})};exports.TooltipTrigger=h;
|
package/dist/index.cjs16.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs19.js"),c=require("./index.cjs20.js"),o=require("./index.cjs28.js");function a(e){const{children:t,type:s="body",className:n}=e,r=c.cn(o.textVariants({type:s}),n);return i.jsxRuntimeExports.jsx("p",{className:r,children:t})}exports.Text=a;
|
package/dist/index.cjs17.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs19.js"),o=require("./index.cjs20.js"),u=require("./index.cjs28.js");function m(t){const{children:s,type:e="h1",size:i=e,className:n,...r}=t,c=e,a=o.cn(u.titleVariants({size:i}),n);return l.jsxRuntimeExports.jsx(c,{className:a,...r,children:s})}exports.Title=m;
|
package/dist/index.cjs18.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs19.js"),y=require("framer-motion"),C=require("react-aria-components");require("react");const s=require("./index.cjs20.js");require("./index.cjs22.js");require("./index.cjs23.js");require("react-aria");require("./index.cjs24.js");require("./index.cjs6.js");const P=require("./index.cjs7.js");require("./index.cjs9.js");require("./index.cjs25.js");const L=require("./index.cjs14.js"),B=require("./index.cjs15.js");require("./index.cjs27.js");require("./index.cjs13.js");const m=require("./index.cjs16.js");require("./index.cjs28.js");const p=require("./index.cjs29.js"),V=d=>{const{className:j,classNameLabel:q,label:r,variant:x="primary",barClassName:g,fillClassName:h,valueTextClassName:c,isLoading:i=!1,showPercentage:a=!0,showTypePercentage:l="text",positionTooltipPercentage:f="top",modeTooltip:N="dark",maxValue:R=100,minValue:b=0,valueCustomLabel:t,valuePosition:u="right",...E}=d,T=s.cn("flex w-full flex-col gap-2 text-neutral-900",j),w=s.cn(p.progressBarVariants({variant:x}),g),v=s.cn(p.progressFillVariants({variant:x}),h);return e.jsxRuntimeExports.jsx(C.ProgressBar,{className:T,maxValue:R,minValue:b,...E,children:({percentage:n,valueText:o})=>e.jsxRuntimeExports.jsxs("div",{className:s.cn("flex w-full items-center gap-2",{"items-end":r}),children:[e.jsxRuntimeExports.jsxs("div",{className:"flex w-full flex-col gap-1",children:[r?e.jsxRuntimeExports.jsx(P.Label,{labelClassName:s.cn("leading-[19.07px] text-left",q),children:r}):null,e.jsxRuntimeExports.jsxs(B.TooltipTrigger,{isDisabled:!a||l==="text",className:"items-start",delay:90,closeDelay:200,children:[e.jsxRuntimeExports.jsx("div",{className:w,children:e.jsxRuntimeExports.jsx(y.motion.div,{className:v,style:{width:i?"100%":`${n}%`},animate:i?{x:["-100%","100%"]}:{width:n+"%",x:[0,0]},transition:i?{repeat:1/0,duration:1,ease:"easeInOut"}:{}})}),e.jsxRuntimeExports.jsx(L.Tooltip,{className:"!text-xs",style:{left:n+"%"},mode:N,size:"sm",placement:f,children:t||o})]}),a&&l==="text"&&u==="bottom"&&e.jsxRuntimeExports.jsx("div",{className:"mt-0.5 self-end",children:e.jsxRuntimeExports.jsx(m.Text,{className:s.cn("whitespace-nowrap text-xs text-neutral-900",c),children:t||o})})]}),a&&l==="text"&&u==="right"&&e.jsxRuntimeExports.jsx("div",{children:e.jsxRuntimeExports.jsx(m.Text,{className:s.cn("whitespace-nowrap text-xs text-neutral-900",c),children:t||o})})]})})};exports.ProgressBar=V;
|
package/dist/index.cjs19.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs44.js"),r=require("./index.cjs45.js"),t=require("./index.cjs46.js");process.env.NODE_ENV==="production"?e.__module.exports=r.__require():e.__module.exports=t.__require();var o=e.__module.exports;exports.jsxRuntimeExports=o;
|
package/dist/index.cjs2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs19.js"),j=require("react"),q=require("./index.cjs20.js"),d=require("./index.cjs21.js"),x=({items:n,accordionClassName:c,itemClassName:i,sectionClassName:u,hasIcon:l,allowMultipleOpen:a=!1})=>{const[m,t]=j.useState([]),g=q.cn("flex flex-col gap-y-4",c),f=e=>{t(a?o=>o.includes(e)?o.filter(s=>s!==e):[...o,e]:o=>o.includes(e)?[]:[e])};return r.jsxRuntimeExports.jsx("div",{className:g,children:n.map(({label:e,section:o},s)=>r.jsxRuntimeExports.jsx(d.AccordionItem,{hasIcon:l,label:e,section:o,active:m.includes(s),itemClassName:i,sectionClassName:u,onToggle:()=>f(s)},s))})};exports.Accordion=x;
|
package/dist/index.cjs20.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("clsx"),t=require("tailwind-merge");function n(...e){return t.twMerge(r.clsx(e))}exports.cn=n;
|
package/dist/index.cjs21.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs19.js"),n=require("./index.cjs33.js"),r=require("./index.cjs20.js"),m=({label:t,section:o,active:e,onToggle:i,itemClassName:c,sectionClassName:l,hasIcon:u=!0})=>{const x=r.cn("rounded-md border border-solid border-purple-200 bg-gray-100",c),d=r.cn("px-4 pb-4",l),a=e?n.MinusIcon:n.PlusIcon;return s.jsxRuntimeExports.jsxs("div",{className:x,children:[s.jsxRuntimeExports.jsxs("button",{className:"flex w-full cursor-pointer items-center gap-x-4 p-4",onClick:i,children:[s.jsxRuntimeExports.jsx("div",{className:"flex-1",children:t}),u?s.jsxRuntimeExports.jsx("span",{className:`shrink-0 transition duration-300 ${e?"-rotate-180":"rotate-0"}`,children:s.jsxRuntimeExports.jsx(a,{className:"size-6"})}):null]}),e?s.jsxRuntimeExports.jsx("div",{className:d,children:o}):null]})};exports.AccordionItem=m;
|
package/dist/index.cjs22.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),r=e.cva("inline-flex select-none items-center justify-center text-center text-base font-semibold leading-6 transition duration-150 ease-in-out focus:outline-none",{variants:{intent:{primary:"bg-primary-500 text-primary-50",secondary:"border border-primary-500 bg-primary-50 text-primary-500",tertiary:"text-primary-500",outline:"border border-primary-500 text-primary-500",success:"border bg-success-500 text-success-50",error:"border bg-error-500 text-error-50",orangeWarning:"border bg-orange-warning-500 text-orange-warning-50",yellowWarning:"border bg-yellow-warning-500 text-[#6F5711]",info:"border bg-blue-500 text-blue-50"},size:{xs:"rounded px-3 py-1",sm:"rounded px-3 py-2",md:"rounded-lg px-4 py-3",lg:"rounded-lg px-6 py-4"},isDisabled:{true:"pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"},isHovered:{true:""},isActive:{true:""},fullWidth:{true:"w-full",false:"w-fit"},isLoading:{true:"pointer-events-none cursor-not-allowed opacity-70"},isFocused:{true:"focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",false:""}},defaultVariants:{intent:"primary",size:"md"},compoundVariants:[{intent:"primary",isHovered:!0,class:"bg-primary-700"},{intent:"secondary",isHovered:!0,class:"bg-primary-200"},{intent:"tertiary",isHovered:!0,class:"bg-primary-300 text-primary-800"},{intent:"outline",isHovered:!0,class:"bg-primary-500 text-primary-50"},{intent:"success",isHovered:!0,class:"bg-success-700 text-neutral-50"},{intent:"error",isHovered:!0,class:"bg-error-700 text-error-50"},{intent:"orangeWarning",isHovered:!0,class:"bg-orange-warning-700 text-orange-warning-50"},{intent:"yellowWarning",isHovered:!0,class:"bg-yellow-warning-700 text-neutral-50"},{intent:"info",isHovered:!0,class:"bg-blue-700 text-blue-50"},{intent:"success",isFocused:!0,class:"border-[1.5px] focus:ring-success-500"},{intent:"error",isFocused:!0,class:"border-[1.5px] focus:ring-error-500"},{intent:"orangeWarning",isFocused:!0,class:"border-[1.5px] focus:ring-orange-500"},{intent:"yellowWarning",isFocused:!0,class:"border-[1.5px] focus:ring-yellow-500"},{intent:"info",isFocused:!0,class:"border-[1.5px] focus:ring-blue-500"},{intent:"primary",isActive:!0,class:"bg-primary-900"},{intent:"secondary",isActive:!0,class:"bg-primary-300"},{intent:"tertiary",isActive:!0,class:"bg-primary-500 text-white"},{intent:"outline",isActive:!0,class:"border border-primary-500 bg-primary-300 text-primary-500"},{intent:"success",isActive:!0,class:"border border-transparent bg-success-300 text-success-900"},{intent:"error",isActive:!0,class:"border border-transparent bg-error-300 text-error-900"},{intent:"orangeWarning",isActive:!0,class:"border border-transparent bg-orange-warning-300 text-orange-warning-900"},{intent:"yellowWarning",isActive:!0,class:"border border-transparent bg-yellow-warning-300 text-[#6F5711]"},{intent:"info",isActive:!0,class:"border border-transparent bg-blue-200 text-blue-900"}]});exports.buttonVariants=r;
|
package/dist/index.cjs23.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),r=e.cva("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),r=e.cva("flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded border-2 border-primary-200 text-white transition duration-150 ease-in-out",{variants:{isHovered:{true:""},isSelected:{true:"border-primary-500 bg-primary-500",false:"bg-white"},isFocusVisible:{true:"border-primary-500 group-active:border-primary-500"},isDisabled:{true:"border-neutral-500 cursor-not-allowed"},label:{true:"mr-2"}},compoundVariants:[{isHovered:!0,isSelected:!0,class:"border-none bg-primary-600 group-active:bg-primary-600"},{isHovered:!0,isSelected:!1,isDisabled:!1,class:"border-primary-700 group-active:bg-primary-600"},{isDisabled:!0,isSelected:!0,class:"bg-neutral-500"}]});exports.checkboxVariants=r;
|
package/dist/index.cjs24.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=r.cva("bg-primary-50 inline-flex items-center select-none border border-transparent",{variants:{style:{square:"rounded-md",rounded:"rounded-full"},size:{xs:["gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-[10px]","[&_svg]:w-[10px] [&_svg]:h-[10px]"],sm:["gap-1 py-[2px] pr-[6px] pl-1 font-normal text-neutral-900 text-xs","[&_svg]:w-3 [&_svg]:h-3"],md:["gap-1 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm","[&_svg]:w-4 [&_svg]:h-4"],lg:["gap-2 py-1 pr-3 pl-2 font-normal text-neutral-900 text-sm","[&_svg]:w-4 [&_svg]:h-4"]},pressable:{true:"cursor-pointer"},isFocused:{true:"border-primary-500"},isHovered:{true:"border-primary-300"},isPressed:{true:"bg-primary-200"},isDisabled:{true:"bg-neutral-50 text-neutral-600 [&_svg]:text-neutral-600 cursor-not-allowed"}}});exports.assistChipVariants=e;
|
package/dist/index.cjs25.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=r.cva("box-border w-full rounded border border-neutral-500 px-3 placeholder:text-neutral-700 focus:outline-none",{variants:{size:{xs:"py-1",sm:"py-2",md:"py-3",lg:"py-4"},isHovered:{true:""},isFocused:{true:""},isDisabled:{true:"border border-neutral-200 bg-neutral-200 cursor-not-allowed text-neutral-700",false:"bg-neutral-50"},isReadOnly:{true:"cursor-not-allowed"},validationState:{default:"",valid:"border border-success-500",invalid:"border border-error-500"}},compoundVariants:[{isHovered:!0,isDisabled:!1,validationState:"default",class:"border border-neutral-900"},{isFocused:!0,isDisabled:!1,class:"border-2 focus-within:border-primary-500 focus-within:ring-1 focus-within:ring-primary-500 focus:border-primary-500 focus:ring-1 focus:ring-primary-500"},{validationState:"valid",isFocused:!0,class:"border-2 border-success-500 focus-within:ring-1 focus-within:ring-success-500 focus:border-success-500 focus:ring-1 focus:ring-success-500"},{validationState:"invalid",isFocused:!0,class:"border-2 border-error-500 focus-within:ring-1 focus-within:ring-error-500 focus:border-error-500 focus:ring-1 focus:ring-error-500"}]});exports.inputNumberVariant=e;
|
package/dist/index.cjs26.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=t.createContext({});exports.TooltipContext=e;
|
package/dist/index.cjs27.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),r=e.cva("relative rounded-full transition-colors duration-300",{variants:{isSelected:{true:"bg-primary-500",false:"bg-neutral-50 border border-primary-200"},isDisabled:{true:"cursor-not-allowed bg-neutral-400 border-none",false:"cursor-pointer"},isHoveredWhenOff:{true:"bg-neutral-200 border-primary-700",false:""},isFocusVisible:{true:"ring-2 ring-sky-400 ring-offset-2",false:""},size:{sm:"w-[42px] h-[24px]",md:"w-[56px] h-[32px]"}},defaultVariants:{size:"md",isSelected:!1,isDisabled:!1,isFocusVisible:!1,isHoveredWhenOff:!1},compoundVariants:[{isSelected:!1,isDisabled:!1,class:"hover:bg-neutral-200 hover:border-primary-700"},{isSelected:!0,isDisabled:!1,class:"hover:bg-primary-700"},{isSelected:!1,isDisabled:!0,class:"bg-neutral-400 border-none"},{isSelected:!0,isDisabled:!0,class:"bg-neutral-500"}]}),s=e.cva("absolute top-1/2 transform -translate-y-1/2 transition-all duration-300 rounded-full",{variants:{isSelected:{true:"bg-primary-50",false:"bg-primary-200 border border-primary-200"},isDisabled:{true:"bg-neutral-600 border-none",false:""},isHoveredWhenOff:{true:"bg-primary-700 border-primary-700",false:""},size:{sm:"w-[20px] h-[20px]",md:"w-[24px] h-[24px]"}},defaultVariants:{size:"md",isSelected:!1,isDisabled:!1,isHoveredWhenOff:!1},compoundVariants:[{isSelected:!0,isDisabled:!0,class:"bg-neutral-400"}]});exports.indicatorVariants=s;exports.switchVariants=r;
|
package/dist/index.cjs28.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("class-variance-authority"),e=t.cva("scroll-m-12 text-neutral-900",{variants:{size:{h1:"text-[2rem] font-bold leading-10",h2:"text-[1.75rem] font-bold leading-9",h3:"text-2xl font-semibold",h4:"text-[1.375rem] font-semibold leading-7",h5:"text-xl font-semibold",h6:"text-lg font-semibold"}}}),a=t.cva("",{variants:{type:{body:"text-base text-neutral-900",caption:"text-xs text-neutral-700"}}});exports.textVariants=a;exports.titleVariants=e;
|
package/dist/index.cjs29.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),a=r.cva("w-full overflow-hidden rounded-lg bg-primary-100 h-2",{variants:{variant:{primary:"bg-primary-100",success:"bg-success-100",error:"bg-error-100",yellow:"bg-yellow-100",yellowWarning:"bg-yellow-warning-100",orangeWarning:"bg-orange-warning-100",sky:"bg-sky-100"}},defaultVariants:{variant:"primary"}}),e=r.cva("size-full rounded-lg",{variants:{variant:{primary:"bg-primary-500",success:"bg-success-500",error:"bg-error-500",yellow:"bg-yellow-500",yellowWarning:"bg-yellow-warning-500",orangeWarning:"bg-orange-warning-500",sky:"bg-sky-500"}},defaultVariants:{variant:"primary"}});exports.progressBarVariants=a;exports.progressFillVariants=e;
|
package/dist/index.cjs3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs19.js"),E=require("react-aria-components"),j=require("./index.cjs20.js");require("react");const N=require("./index.cjs22.js");require("./index.cjs23.js");require("react-aria");require("./index.cjs24.js");require("./index.cjs6.js");require("./index.cjs7.js");const w=require("./index.cjs8.js");require("./index.cjs9.js");require("./index.cjs25.js");require("./index.cjs14.js");require("react-stately");require("./index.cjs26.js");require("./index.cjs27.js");require("./index.cjs13.js");require("./index.cjs28.js");require("framer-motion");require("./index.cjs29.js");const p=({renderPosition:e,leftIcon:o,rightIcon:c,isLoading:t,loaderPosition:i,loaderProps:s})=>{const n=e==="left"?o:e==="right"?c:null;return n||t&&i===e?r.jsxRuntimeExports.jsx("span",{className:e==="left"?"mr-1":"ml-1",children:t&&i===e?r.jsxRuntimeExports.jsx(w.Loader,{size:"sm",...s}):n}):null},y=e=>{const{intent:o="primary",size:c="md",leftIcon:t,rightIcon:i,isDisabled:s,children:n,className:h,isLoading:u,loaderPosition:q="left",loaderProps:x,fullWidth:R=!1,unstyled:d=!1,focus:f=!0,isMobileFullWidth:b=!1,...g}=e,v=(m,l,a)=>j.cn(d?"":N.buttonVariants({intent:o,size:c,isHovered:l||(f||!d?a:!1),isActive:m,isDisabled:s,isFocused:f||!d?a:!1,fullWidth:R,isLoading:u}),h);return r.jsxRuntimeExports.jsxs(E.Button,{"data-disabled":s||void 0,"data-loading":u||void 0,isDisabled:s,className:({isPressed:m,isHovered:l,isFocusVisible:a})=>v(m,l,a),...g,children:[r.jsxRuntimeExports.jsx(p,{renderPosition:"left",loaderPosition:q,loaderProps:x,isLoading:u,leftIcon:t}),r.jsxRuntimeExports.jsx("span",{className:j.cn("flex h-full items-center overflow-hidden whitespace-nowrap",b?"w-full":""),children:n}),r.jsxRuntimeExports.jsx(p,{renderPosition:"right",loaderPosition:q,loaderProps:x,isLoading:u,rightIcon:i})]})};exports.Button=y;
|
package/dist/index.cjs30.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs19.js"),l=require("./index.cjs20.js"),c=o=>{const{isIndeterminate:t,isSelected:e,className:n,isHovered:i}=o,r=i&&!e&&!t?"text-neutral-500":"",a=!!(r||e);return s.jsxRuntimeExports.jsx("svg",{className:l.cn("stroke-current",r,n),viewBox:"-1 1 17 17",children:t?s.jsxRuntimeExports.jsx("line",{x1:1,y1:10,x2:14,y2:10,fill:"none",strokeWidth:2,strokeDasharray:14,strokeDashoffset:e?28:42,style:{transition:"all 400ms"}}):s.jsxRuntimeExports.jsx("polyline",{points:"1 9 7 14 15 4",fill:"none",strokeWidth:2,strokeDasharray:22,strokeDashoffset:a?44:66,style:{transition:"all 400ms"}})})};exports.MarkIcon=c;
|