@simpli-route/apollo-ds 0.1.36 → 0.1.38
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/Input/types.d.ts +10 -10
- package/dist/components/InvisibleTimeField/InvisibleTimeField.d.ts +13 -0
- package/dist/components/InvisibleTimeField/TimePickerPopover.d.ts +3 -0
- package/dist/components/InvisibleTimeField/TimeSegment.d.ts +7 -0
- package/dist/components/InvisibleTimeField/index.d.ts +4 -0
- package/dist/components/InvisibleTimeField/types.d.ts +82 -0
- package/dist/components/InvisibleTimeField/variants.d.ts +14 -0
- package/dist/components/NumberField/InvisibleNumberField.d.ts +12 -0
- package/dist/components/NumberField/index.d.ts +2 -0
- package/dist/components/NumberField/types.d.ts +58 -0
- package/dist/components/NumberField/variants.d.ts +11 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs131.js +1 -1
- package/dist/index.cjs133.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -0
- package/dist/index.cjs157.js +1 -0
- package/dist/index.cjs158.js +1 -0
- package/dist/index.cjs159.js +1 -0
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs160.js +1 -0
- package/dist/index.cjs161.js +1 -0
- 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.cjs36.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs40.js +1 -1
- 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 +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -9
- package/dist/index.cjs74.js +1 -19
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs78.js +9 -1
- package/dist/index.cjs79.js +19 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es.js +54 -46
- package/dist/index.es10.js +3 -3
- package/dist/index.es100.js +2 -2
- package/dist/index.es101.js +4 -21
- package/dist/index.es102.js +30 -2
- package/dist/index.es103.js +190 -45
- package/dist/index.es104.js +51 -7
- package/dist/index.es105.js +2 -5
- package/dist/index.es106.js +4 -27
- package/dist/index.es107.js +13 -184
- package/dist/index.es108.js +4 -16
- package/dist/index.es109.js +44 -352
- package/dist/index.es11.js +3 -3
- package/dist/index.es110.js +7 -24
- package/dist/index.es111.js +7 -19
- package/dist/index.es112.js +21 -148
- package/dist/index.es113.js +184 -9
- package/dist/index.es114.js +9 -10
- package/dist/index.es115.js +342 -200
- package/dist/index.es116.js +20 -64
- package/dist/index.es117.js +9 -4
- package/dist/index.es118.js +154 -4
- package/dist/index.es119.js +17 -4
- package/dist/index.es12.js +5 -5
- package/dist/index.es120.js +17 -4
- package/dist/index.es121.js +211 -4
- package/dist/index.es122.js +68 -4
- package/dist/index.es123.js +14 -4
- package/dist/index.es125.js +2 -2
- package/dist/index.es126.js +2 -2
- package/dist/index.es127.js +2 -2
- package/dist/index.es128.js +2 -2
- package/dist/index.es129.js +2 -2
- package/dist/index.es13.js +4 -4
- package/dist/index.es130.js +2 -1063
- package/dist/index.es131.js +4 -77
- package/dist/index.es132.js +2 -2
- package/dist/index.es133.js +2 -57
- package/dist/index.es134.js +4 -20
- package/dist/index.es135.js +2 -2
- package/dist/index.es136.js +1064 -60
- package/dist/index.es137.js +77 -4
- package/dist/index.es138.js +4 -14
- package/dist/index.es139.js +59 -311
- package/dist/index.es14.js +121 -39
- package/dist/index.es140.js +14 -20
- package/dist/index.es141.js +2 -2
- package/dist/index.es142.js +61 -4
- package/dist/index.es143.js +2 -2
- package/dist/index.es144.js +10 -90
- package/dist/index.es145.js +311 -4
- package/dist/index.es146.js +26 -10
- package/dist/index.es147.js +4 -28
- package/dist/index.es148.js +2 -2
- package/dist/index.es149.js +4 -51
- package/dist/index.es15.js +172 -35
- package/dist/index.es150.js +90 -15
- package/dist/index.es151.js +2 -2
- package/dist/index.es152.js +8 -2
- package/dist/index.es153.js +22 -747
- package/dist/index.es154.js +2 -2
- package/dist/index.es155.js +51 -4
- package/dist/index.es156.js +19 -0
- package/dist/index.es157.js +4 -0
- package/dist/index.es158.js +4 -0
- package/dist/index.es159.js +753 -0
- package/dist/index.es16.js +34 -87
- package/dist/index.es160.js +4 -0
- package/dist/index.es161.js +4 -0
- package/dist/index.es17.js +46 -102
- package/dist/index.es18.js +36 -74
- package/dist/index.es19.js +102 -141
- package/dist/index.es2.js +2 -2
- package/dist/index.es20.js +84 -32
- package/dist/index.es21.js +104 -74
- package/dist/index.es22.js +74 -46
- package/dist/index.es23.js +144 -48
- package/dist/index.es24.js +40 -3
- package/dist/index.es25.js +77 -99
- package/dist/index.es26.js +41 -71
- package/dist/index.es27.js +46 -43
- package/dist/index.es28.js +3 -24
- package/dist/index.es29.js +96 -24
- package/dist/index.es3.js +3 -3
- package/dist/index.es30.js +78 -8
- package/dist/index.es31.js +45 -8
- package/dist/index.es32.js +24 -6
- package/dist/index.es33.js +28 -6
- package/dist/index.es34.js +8 -25
- package/dist/index.es35.js +8 -45
- package/dist/index.es36.js +6 -171
- package/dist/index.es37.js +6 -43
- package/dist/index.es38.js +27 -34
- package/dist/index.es39.js +26 -65
- package/dist/index.es4.js +4 -4
- package/dist/index.es40.js +154 -128
- package/dist/index.es41.js +20 -36
- package/dist/index.es42.js +29 -29
- package/dist/index.es43.js +61 -94
- package/dist/index.es44.js +129 -24
- package/dist/index.es45.js +94 -35
- package/dist/index.es46.js +33 -39
- package/dist/index.es47.js +117 -3
- package/dist/index.es48.js +21 -141
- package/dist/index.es49.js +41 -78
- package/dist/index.es5.js +24 -22
- package/dist/index.es50.js +39 -21
- package/dist/index.es51.js +3 -30
- package/dist/index.es52.js +159 -17
- package/dist/index.es53.js +90 -15
- package/dist/index.es54.js +21 -15
- package/dist/index.es55.js +18 -163
- package/dist/index.es56.js +17 -10
- package/dist/index.es57.js +16 -12
- package/dist/index.es58.js +163 -13
- package/dist/index.es59.js +30 -137
- package/dist/index.es6.js +4 -4
- package/dist/index.es60.js +7 -20
- package/dist/index.es61.js +18 -10
- package/dist/index.es62.js +144 -96
- package/dist/index.es63.js +13 -13
- package/dist/index.es64.js +136 -18
- package/dist/index.es65.js +20 -20
- package/dist/index.es66.js +101 -7
- package/dist/index.es67.js +11 -16
- package/dist/index.es68.js +10 -149
- package/dist/index.es69.js +73 -10
- package/dist/index.es7.js +3 -3
- package/dist/index.es70.js +10 -10
- package/dist/index.es71.js +12 -45
- package/dist/index.es72.js +19 -2
- package/dist/index.es73.js +19 -29
- package/dist/index.es74.js +10 -599
- package/dist/index.es75.js +10 -21
- package/dist/index.es76.js +45 -21
- package/dist/index.es77.js +2 -21
- package/dist/index.es78.js +30 -19
- package/dist/index.es79.js +599 -19
- package/dist/index.es8.js +5 -5
- package/dist/index.es80.js +16 -14
- package/dist/index.es81.js +10 -8
- package/dist/index.es82.js +19 -15
- package/dist/index.es83.js +4 -4
- package/dist/index.es84.js +9 -9
- package/dist/index.es85.js +10 -10
- package/dist/index.es86.js +10 -10
- package/dist/index.es87.js +19 -30
- package/dist/index.es88.js +21 -2
- package/dist/index.es89.js +21 -2
- package/dist/index.es9.js +4 -4
- package/dist/index.es90.js +19 -57
- package/dist/index.es91.js +19 -4
- package/dist/index.es92.js +21 -28
- package/dist/index.es93.js +4 -2
- package/dist/index.es94.js +28 -10
- package/dist/index.es95.js +2 -340
- package/dist/index.es96.js +8 -166
- package/dist/index.es97.js +338 -186
- package/dist/index.es98.js +164 -47
- package/dist/index.es99.js +57 -2
- package/dist/stories/InvisibleNumberField.stories.d.ts +70 -0
- package/dist/stories/InvisibleTimeField.stories.d.ts +77 -0
- package/dist/style.css +75 -0
- package/package.json +1 -1
|
@@ -23,30 +23,30 @@ export interface LabelProps extends BaseLabelProps {
|
|
|
23
23
|
labelClassName?: string;
|
|
24
24
|
}
|
|
25
25
|
export interface InvisibleInputProps extends BaseTextFieldProps {
|
|
26
|
-
/**
|
|
26
|
+
/** Component size
|
|
27
27
|
* @default "bodyDefault"
|
|
28
28
|
*/
|
|
29
29
|
size?: "bodySm" | "bodyDefault" | "h5" | "h3";
|
|
30
|
-
/**
|
|
30
|
+
/** Component orientation
|
|
31
31
|
* @default "vertical"
|
|
32
32
|
*/
|
|
33
33
|
orientation?: "horizontal" | "vertical";
|
|
34
|
-
/**
|
|
34
|
+
/** Input label text */
|
|
35
35
|
label?: string;
|
|
36
|
-
/**
|
|
36
|
+
/** Input placeholder */
|
|
37
37
|
placeholder?: string;
|
|
38
|
-
/**
|
|
38
|
+
/** Caption/error text that appears below the input */
|
|
39
39
|
captionError?: string;
|
|
40
|
-
/**
|
|
40
|
+
/** Input validation state
|
|
41
41
|
* @default undefined
|
|
42
42
|
*/
|
|
43
43
|
validationState?: "valid" | "invalid" | undefined;
|
|
44
|
-
/**
|
|
44
|
+
/** Additional classes for the container */
|
|
45
45
|
className?: string;
|
|
46
|
-
/**
|
|
46
|
+
/** Additional classes for the input */
|
|
47
47
|
inputClassName?: string;
|
|
48
|
-
/**
|
|
48
|
+
/** Additional classes for the label */
|
|
49
49
|
labelClassName?: string;
|
|
50
|
-
/**
|
|
50
|
+
/** Additional classes for the error caption */
|
|
51
51
|
captionErrorClassName?: string;
|
|
52
52
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { InvisibleTimeFieldProps } from './types';
|
|
2
|
+
import { TimeValue } from 'react-aria-components';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* InvisibleTimeField component **version 0.1** https://www.figma.com/design/h6tZeqNdVEUvrgwOwK4vcY/Design-System---The-Bible?node-id=11433-13328&t=UYsr4CaZw5JlRWFM-4
|
|
6
|
+
*
|
|
7
|
+
* ### Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { InvisibleTimeField } from "@simpli-route/apollo-ds";
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare const InvisibleTimeField: import('react').ForwardRefExoticComponent<InvisibleTimeFieldProps<TimeValue> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TimeSegmentProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* TimeSegment component for InvisibleTimeField
|
|
5
|
+
* Handles individual time segment rendering (hours, minutes, seconds)
|
|
6
|
+
*/
|
|
7
|
+
export declare function TimeSegment({ segment, className }: TimeSegmentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { TooltipProps } from '../Tooltip';
|
|
2
|
+
import { DateSegment as DateSegmentAria } from 'react-stately';
|
|
3
|
+
import { TimeFieldProps as TimeFieldAriaProps, TimeValue } from 'react-aria-components';
|
|
4
|
+
|
|
5
|
+
export interface TimeSegmentProps {
|
|
6
|
+
segment: DateSegmentAria;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TimePickerPopoverProps {
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
12
|
+
value?: TimeValue | null;
|
|
13
|
+
onChange?: (value: TimeValue | null) => void;
|
|
14
|
+
hourCycle?: 12 | 24;
|
|
15
|
+
containerRef: React.RefObject<HTMLDivElement>;
|
|
16
|
+
confirmButtonLabel?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface InvisibleTimeFieldProps<T extends TimeValue = TimeValue> extends TimeFieldAriaProps<T> {
|
|
19
|
+
/** Component size
|
|
20
|
+
* @default "bodyDefault"
|
|
21
|
+
*/
|
|
22
|
+
size?: "bodySm" | "bodyDefault" | "h5" | "h3";
|
|
23
|
+
/**
|
|
24
|
+
* Component orientation
|
|
25
|
+
* @default "vertical"
|
|
26
|
+
*/
|
|
27
|
+
orientation?: "horizontal" | "vertical";
|
|
28
|
+
/** Input label text */
|
|
29
|
+
label?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Label del botón de confirmación
|
|
32
|
+
*/
|
|
33
|
+
confirmButtonLabel?: string;
|
|
34
|
+
/** Caption/error text that appears below the input */
|
|
35
|
+
captionError?: string;
|
|
36
|
+
/** Input validation state
|
|
37
|
+
* @default undefined
|
|
38
|
+
*/
|
|
39
|
+
validationState?: "valid" | "invalid" | undefined;
|
|
40
|
+
/** Additional classes for the container */
|
|
41
|
+
className?: string;
|
|
42
|
+
/** Additional classes for the date input */
|
|
43
|
+
dateInputClassName?: string;
|
|
44
|
+
/** Additional classes for the date segment */
|
|
45
|
+
dateSegmentClassName?: string;
|
|
46
|
+
/** Additional classes for the label */
|
|
47
|
+
labelClassName?: string;
|
|
48
|
+
/** Additional classes for the error caption */
|
|
49
|
+
captionErrorClassName?: string;
|
|
50
|
+
/** Define if the label is required or not.
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
isRequired?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Optional text to show on a tooltip besides the label
|
|
56
|
+
*/
|
|
57
|
+
tooltipText?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Define a support text
|
|
60
|
+
*/
|
|
61
|
+
tooltipSupportText?: string;
|
|
62
|
+
/** Optional props to pass to the tooltip.
|
|
63
|
+
* @default undefined
|
|
64
|
+
*/
|
|
65
|
+
tooltipProps?: Omit<TooltipProps, "children">;
|
|
66
|
+
/** The minimum allowed time that a user may select */
|
|
67
|
+
minValue?: TimeValue | null;
|
|
68
|
+
/** The maximum allowed time that a user may select */
|
|
69
|
+
maxValue?: TimeValue | null;
|
|
70
|
+
/** Determines the smallest unit that is displayed in the time picker
|
|
71
|
+
* @default "minute"
|
|
72
|
+
*/
|
|
73
|
+
granularity?: "hour" | "minute" | "second";
|
|
74
|
+
/** Whether to display the time in 12 or 24 hour format */
|
|
75
|
+
hourCycle?: 12 | 24;
|
|
76
|
+
/** Whether to hide the time zone abbreviation */
|
|
77
|
+
hideTimeZone?: boolean;
|
|
78
|
+
/** Whether to always show leading zeros in the hour field */
|
|
79
|
+
shouldForceLeadingZeros?: boolean;
|
|
80
|
+
/** A placeholder time that influences the format of the placeholder shown when no value is selected */
|
|
81
|
+
placeholderValue?: T;
|
|
82
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const invisibleTimeFieldGroupVariants: (props?: ({
|
|
2
|
+
size?: "h3" | "h5" | "bodySm" | "bodyDefault" | null | undefined;
|
|
3
|
+
state?: "active" | "disabled" | "error" | "default" | "hover" | null | undefined;
|
|
4
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
|
+
export declare const invisibleTimeFieldInputVariants: (props?: ({
|
|
6
|
+
size?: "h3" | "h5" | "bodySm" | "bodyDefault" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
export declare const timeFieldButtonVariants: (props?: ({
|
|
9
|
+
size?: "h3" | "h5" | "bodySm" | "bodyDefault" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
+
export declare const invisibleTimeFieldContainerVariants: (props?: ({
|
|
12
|
+
size?: "h3" | "h5" | "bodySm" | "bodyDefault" | null | undefined;
|
|
13
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
14
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InvisibleNumberFieldProps } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* InvisibleNumberField component **version 0.1** https://www.figma.com/design/h6tZeqNdVEUvrgwOwK4vcY/Design-System---The-Bible?node-id=10926-2000&t=dUKQ2rhqDiNCUagK-0
|
|
5
|
+
*
|
|
6
|
+
* ### Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import { InvisibleNumberField } from "@simpli-route/apollo-ds";
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export declare const InvisibleNumberField: import('react').ForwardRefExoticComponent<InvisibleNumberFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -53,3 +53,61 @@ export interface NumberFieldProps extends NumberFieldAriaProps {
|
|
|
53
53
|
*/
|
|
54
54
|
minValue?: number;
|
|
55
55
|
}
|
|
56
|
+
export interface InvisibleNumberFieldProps extends NumberFieldAriaProps {
|
|
57
|
+
/** Component size
|
|
58
|
+
* @default "bodyDefault"
|
|
59
|
+
*/
|
|
60
|
+
size?: "bodySm" | "bodyDefault" | "h5" | "h3";
|
|
61
|
+
/** Component orientation
|
|
62
|
+
* @default "vertical"
|
|
63
|
+
*/
|
|
64
|
+
orientation?: "horizontal" | "vertical";
|
|
65
|
+
/** Input label text */
|
|
66
|
+
label?: string;
|
|
67
|
+
/** Input placeholder */
|
|
68
|
+
placeholder?: string;
|
|
69
|
+
/** Caption/error text that appears below the input */
|
|
70
|
+
captionError?: string;
|
|
71
|
+
/** Input validation state
|
|
72
|
+
* @default undefined
|
|
73
|
+
*/
|
|
74
|
+
validationState?: "valid" | "invalid" | undefined;
|
|
75
|
+
/** Additional classes for the container */
|
|
76
|
+
className?: string;
|
|
77
|
+
/** Additional classes for the input */
|
|
78
|
+
inputClassName?: string;
|
|
79
|
+
/** Additional classes for the label */
|
|
80
|
+
labelClassName?: string;
|
|
81
|
+
/** Additional classes for the error caption */
|
|
82
|
+
captionErrorClassName?: string;
|
|
83
|
+
/** Define if the label is required or not.
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
isRequired?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Optional text to show on a tooltip besides the label
|
|
89
|
+
*/
|
|
90
|
+
tooltipText?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Define a support text
|
|
93
|
+
*/
|
|
94
|
+
tooltipSupportText?: string;
|
|
95
|
+
/** Optional props to pass to the tooltip.
|
|
96
|
+
* @default undefined
|
|
97
|
+
*/
|
|
98
|
+
tooltipProps?: Omit<TooltipProps, "children">;
|
|
99
|
+
/** Define the max value allow */
|
|
100
|
+
maxValue?: number;
|
|
101
|
+
/** Define the min value
|
|
102
|
+
* @default 0
|
|
103
|
+
*/
|
|
104
|
+
minValue?: number;
|
|
105
|
+
/** The amount that the input value changes with each increment or decrement "tick" */
|
|
106
|
+
step?: number;
|
|
107
|
+
/** Formatting options for the value displayed in the number field */
|
|
108
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
109
|
+
/** Show the increment/decrement stepper buttons
|
|
110
|
+
* @default true
|
|
111
|
+
*/
|
|
112
|
+
showStepper?: boolean;
|
|
113
|
+
}
|
|
@@ -6,3 +6,14 @@ export declare const inputNumberVariant: (props?: ({
|
|
|
6
6
|
isReadOnly?: boolean | null | undefined;
|
|
7
7
|
validationState?: "valid" | "invalid" | "default" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export declare const invisibleNumberFieldVariants: (props?: ({
|
|
10
|
+
size?: "h3" | "h5" | "bodySm" | "bodyDefault" | null | undefined;
|
|
11
|
+
state?: "active" | "disabled" | "error" | "default" | "hover" | null | undefined;
|
|
12
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
+
export declare const invisibleNumberFieldGroupVariants: (props?: ({
|
|
14
|
+
size?: "h3" | "h5" | "bodySm" | "bodyDefault" | null | undefined;
|
|
15
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
16
|
+
export declare const invisibleNumberFieldStepperVariants: (props?: ({
|
|
17
|
+
size?: "h3" | "h5" | "bodySm" | "bodyDefault" | null | undefined;
|
|
18
|
+
isDisabled?: boolean | null | undefined;
|
|
19
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -8,6 +8,7 @@ export * from './FilterChip';
|
|
|
8
8
|
export * from './IconButton';
|
|
9
9
|
export * from './Input';
|
|
10
10
|
export * from './InvisibleDatepicker';
|
|
11
|
+
export * from './InvisibleTimeField';
|
|
11
12
|
export * from './Loader';
|
|
12
13
|
export * from './LoadingOverlay';
|
|
13
14
|
export * from './NumberField';
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js"),r=require("./index.cjs3.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs2.js"),r=require("./index.cjs3.js"),i=require("./index.cjs4.js"),t=require("./index.cjs5.js"),o=require("./index.cjs6.js"),c=require("./index.cjs7.js"),n=require("./index.cjs8.js"),s=require("./index.cjs9.js"),l=require("./index.cjs10.js"),u=require("./index.cjs11.js"),p=require("./index.cjs12.js"),d=require("./index.cjs13.js"),S=require("./index.cjs14.js"),q=require("./index.cjs15.js"),a=require("./index.cjs16.js"),b=require("./index.cjs17.js"),m=require("./index.cjs18.js"),T=require("./index.cjs19.js"),I=require("./index.cjs20.js"),v=require("./index.cjs21.js"),h=require("./index.cjs22.js"),C=require("./index.cjs23.js"),g=require("./index.cjs24.js"),F=require("./index.cjs25.js"),P=require("./index.cjs26.js"),k=require("./index.cjs27.js"),B=require("./index.cjs28.js"),A=require("./index.cjs29.js"),L=require("./index.cjs30.js"),x=require("./index.cjs31.js"),N=require("./index.cjs32.js"),y=require("./index.cjs33.js"),O=require("./index.cjs34.js"),w=require("./index.cjs35.js");exports.Accordion=e.Accordion;exports.AccordionItem=r.AccordionItem;exports.Breadcrumbs=i.Breadcrumbs;exports.Button=t.Button;exports.Checkbox=o.Checkbox;exports.AssistChip=c.AssistChip;exports.ColorPicker=n.ColorPicker;exports.FilterChip=s.FilterChip;exports.IconButton=l.IconButton;exports.InvisibleInput=u.InvisibleInput;exports.Label=p.Label;exports.InvisibleDatepicker=d.InvisibleDatepicker;exports.InvisibleTimeField=S.InvisibleTimeField;exports.TimePickerPopover=q.TimePickerPopover;exports.TimeSegment=a.TimeSegment;exports.Loader=b.Loader;exports.LoadingOverlay=m.LoadingOverlay;exports.InvisibleNumberField=T.InvisibleNumberField;exports.NumberField=I.NumberField;exports.ProgressBar=v.ProgressBar;exports.SearchField=h.SearchField;exports.Select=C.Select;exports.SelectItem=g.SelectItem;exports.Slider=F.Slider;exports.StatusChip=P.StatusChip;exports.Stepper=k.Stepper;exports.StepperCompleted=B.StepperCompleted;exports.StepperStep=A.StepperStep;exports.Switch=L.Switch;exports.Tabs=x.Tabs;exports.Tooltip=N.Tooltip;exports.TooltipTrigger=y.TooltipTrigger;exports.Text=O.Text;exports.Title=w.Title;
|
package/dist/index.cjs10.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs36.js"),q=require("react"),n=require("react-aria-components"),B=require("./index.cjs37.js"),R=require("./index.cjs58.js");function g(c,a){const[u,l]=n.useContextProps(c,a,n.ButtonContext),{intent:d="secondary",size:m="lg",isDisabled:o=!1,isActive:p=!1,children:e,className:x,...f}=u,r="flex h-full items-center overflow-hidden whitespace-nowrap";return s.jsxRuntimeExports.jsx(n.Button,{ref:l,className:({isPressed:t,isHovered:j,isFocusVisible:h})=>B.cn(R.buttonVariants({intent:d,size:m,isDisabled:o,isActive:p||t,isHovered:j,isFocused:h}),x),isDisabled:o,...f,children:typeof e=="function"?t=>s.jsxRuntimeExports.jsx("span",{className:r+"p-2.",children:e(t)}):s.jsxRuntimeExports.jsx("span",{className:r,children:e})})}const i=q.forwardRef(g);i.displayName="IconButton";exports.IconButton=i;
|
package/dist/index.cjs101.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index.cjs102.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=r.cva("absolute inset-0 z-[1000px] overflow-hidden",{variants:{opacity:{sm:"bg-neutral-50/10",md:"bg-neutral-50/20",lg:"bg-neutral-50/30",xl:"bg-neutral-50/50","2xl":"bg-neutral-50/60","3xl":"bg-neutral-50/75"},fixed:{true:"fixed",false:""},center:{true:"flex items-center justify-center",false:""},blur:{sm:"backdrop-blur-sm",md:"backdrop-blur-md",lg:"backdrop-blur-lg",xl:"backdrop-blur-xl","2xl":"backdrop-blur-2xl","3xl":"backdrop-blur-3xl"}}});exports.overlayVariants=e;
|
package/dist/index.cjs103.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const R=require("./index.cjs105.js");require("./index.cjs112.js");require("./index.cjs113.js");require("./index.cjs114.js");require("./index.cjs115.js");require("./index.cjs116.js");require("./index.cjs117.js");require("./index.cjs118.js");require("./index.cjs119.js");require("./index.cjs120.js");require("./index.cjs121.js");require("./index.cjs122.js");require("./index.cjs123.js");const j=require("./index.cjs124.js"),K=require("./index.cjs125.js"),V=require("./index.cjs126.js"),W=require("./index.cjs127.js"),B=require("./index.cjs128.js"),G=require("./index.cjs129.js"),H=require("./index.cjs130.js"),I=require("./index.cjs131.js"),J=require("./index.cjs132.js"),N=require("./index.cjs133.js"),Q=require("./index.cjs134.js"),X=require("./index.cjs135.js");(function(_){Object.defineProperty(_,"__esModule",{value:!0}),Object.defineProperty(_,"default",{enumerable:!0,get:function(){return M}});const P=s(V.__exports),m=s(W.__exports),v=s(B.__exports),x=s(G.__exports),p=j.__exports,h=X.__exports,A=K.__exports,l=s(H.__exports),y=I.__exports,C=J.__exports,O=N.__exports,z=s(Q.__exports);function s(e){return e&&e.__esModule?e:{default:e}}function f(e){return typeof e=="function"}function c(e,...r){let i=r.pop();for(let t of r)for(let n in t){let o=i(e[n],t[n]);o===void 0?(0,l.default)(e[n])&&(0,l.default)(t[n])?e[n]=c({},e[n],t[n],i):e[n]=t[n]:e[n]=o}return e}const a={colors:x.default,negative(e){return Object.keys(e).filter(r=>e[r]!=="0").reduce((r,i)=>{let t=(0,P.default)(e[i]);return t!==void 0&&(r[`-${i}`]=t),r},{})},breakpoints(e){return Object.keys(e).filter(r=>typeof e[r]=="string").reduce((r,i)=>({...r,[`screen-${i}`]:e[i]}),{})}};function F(e,...r){return f(e)?e(...r):e}function b(e){return e.reduce((r,{extend:i})=>c(r,i,(t,n)=>t===void 0?[n]:Array.isArray(t)?[n,...t]:[n,t]),{})}function w(e){return{...e.reduce((r,i)=>(0,p.defaults)(r,i),{}),extend:b(e)}}function q(e,r){if(Array.isArray(e)&&(0,l.default)(e[0]))return e.concat(r);if(Array.isArray(r)&&(0,l.default)(r[0])&&(0,l.default)(e))return[e,...r];if(Array.isArray(r))return r}function E({extend:e,...r}){return c(r,e,(i,t)=>!f(i)&&!t.some(f)?c({},i,...t,q):(n,o)=>c({},...[i,...t].map(u=>F(u,n,o)),q))}function*D(e){let r=(0,h.toPath)(e);if(r.length===0||(yield r,Array.isArray(e)))return;let i=/^(.*?)\s*\/\s*([^/]+)$/,t=e.match(i);if(t!==null){let[,n,o]=t,u=(0,h.toPath)(n);u.alpha=o,yield u}}function L(e){const r=(i,t)=>{for(const n of D(i)){let o=0,u=e;for(;u!=null&&o<n.length;)u=u[n[o++]],u=f(u)&&(n.alpha===void 0||o<=n.length-1)?u(r,a):u;if(u!==void 0){if(n.alpha!==void 0){let d=(0,C.parseColorFormat)(u);return(0,O.withAlphaValue)(d,n.alpha,(0,z.default)(d))}return(0,l.default)(u)?(0,y.cloneDeep)(u):u}}return t};return Object.assign(r,{theme:r,...a}),Object.keys(e).reduce((i,t)=>(i[t]=f(e[t])?e[t](r,a):e[t],i),{})}function g(e){let r=[];return e.forEach(i=>{r=[...r,i];var t;const n=(t=i==null?void 0:i.plugins)!==null&&t!==void 0?t:[];n.length!==0&&n.forEach(o=>{o.__isOptionsFunction&&(o=o());var u;r=[...r,...g([(u=o==null?void 0:o.config)!==null&&u!==void 0?u:{}])]})}),r}function U(e){return[...e].reduceRight((i,t)=>f(t)?t({corePlugins:i}):(0,v.default)(t,i),m.default)}function $(e){return[...e].reduceRight((i,t)=>[...i,...t],[])}function M(e){let r=[...g(e),{prefix:"",important:!1,separator:":"}];var i,t;return(0,A.normalizeConfig)((0,p.defaults)({theme:L(E(w(r.map(n=>(i=n==null?void 0:n.theme)!==null&&i!==void 0?i:{})))),corePlugins:U(r.map(n=>n.corePlugins)),plugins:$(e.map(n=>(t=n==null?void 0:n.plugins)!==null&&t!==void 0?t:[]))},...r))}})(R.__exports);
|
package/dist/index.cjs104.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";const f=require("./index.cjs106.js"),d=require("./index.cjs136.js");require("./index.cjs137.js");const p=require("./index.cjs138.js");(function(r){Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});const a=u(d.config_full),s=p.__exports;function u(e){return e&&e.__esModule?e:{default:e}}function i(e){var l;const o=((l=e==null?void 0:e.presets)!==null&&l!==void 0?l:[a.default]).slice().reverse().flatMap(t=>i(t instanceof Function?t():t)),n={respectDefaultRingColorOpacity:{theme:{ringColor:({theme:t})=>({DEFAULT:"#3b82f67f",...t("colors")})}},disableColorOpacityUtilitiesByDefault:{corePlugins:{backgroundOpacity:!1,borderOpacity:!1,divideOpacity:!1,placeholderOpacity:!1,ringOpacity:!1,textOpacity:!1}}},c=Object.keys(n).filter(t=>(0,s.flagEnabled)(e,t)).map(t=>n[t]);return[e,...c,...o]}})(f.__exports);
|
package/dist/index.cjs105.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index.cjs106.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index.cjs107.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./index.
|
|
1
|
+
"use strict";const c=require("./index.cjs108.js");require("./index.cjs120.js");const o=require("./index.cjs136.js"),f=require("./index.cjs131.js");(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});const u=f.__exports,n=r(o.config_full);function r(e){return e&&e.__esModule?e:{default:e}}const l=(0,u.cloneDeep)(n.default.theme)})(c.__exports);
|
package/dist/index.cjs108.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index.cjs109.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs139.js");var t=c.shorterCssColorNames,a={whitespace:/\s+/g,urlHexPairs:/%[\dA-F]{2}/g,quotes:/"/g};function s(e){return e.trim().replace(a.whitespace," ")}function n(e){return encodeURIComponent(e).replace(a.urlHexPairs,u)}function i(e){return Object.keys(t).forEach(function(r){t[r].test(e)&&(e=e.replace(t[r],r))}),e}function u(e){switch(e){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return e.toLowerCase()}}function o(e){if(typeof e!="string")throw new TypeError("Expected a string, but received "+typeof e);e.charCodeAt(0)===65279&&(e=e.slice(1));var r=i(s(e)).replace(a.quotes,"'");return"data:image/svg+xml,"+n(r)}o.toSrcset=function(r){return o(r).replace(/ /g,"%20")};var l=o;exports.miniSvgDataUri=l;
|
package/dist/index.cjs11.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs36.js"),N=require("react"),r=require("react-aria-components"),n=require("./index.cjs37.js"),t=require("./index.cjs47.js"),f=N.forwardRef(({size:l="bodyDefault",orientation:u="vertical",label:o,placeholder:m,captionError:i,validationState:s,className:p,inputClassName:v,labelClassName:j,captionErrorClassName:I,isDisabled:d=!1,...b},h)=>{const R=(a,c,x)=>d?"disabled":s==="invalid"?"error":c||x?"active":a?"hover":"default";return e.jsxRuntimeExports.jsxs(r.TextField,{className:n.cn(t.invisibleInputContainerVariants({size:l,orientation:u}),p),isDisabled:d,isInvalid:s==="invalid",...b,children:[o&&e.jsxRuntimeExports.jsx(r.Label,{className:n.cn(t.invisibleInputLabelVariants({size:l}),j,u==="horizontal"&&s!=="invalid"?"self-center":"self-start"),children:o}),e.jsxRuntimeExports.jsxs("div",{className:n.cn("flex flex-col",u==="horizontal"?"flex-1":"w-full"),children:[e.jsxRuntimeExports.jsx(r.Input,{ref:h,placeholder:m,className:({isHovered:a,isFocusVisible:c,isFocused:x})=>n.cn(t.invisibleInputVariants({size:l,state:R(a,c,x)}),"font-semibold",v)}),i&&s==="invalid"&&e.jsxRuntimeExports.jsx("div",{className:n.cn(t.invisibleInputCaptionVariants({state:"error"}),I),children:i})]}),s==="invalid"&&i&&e.jsxRuntimeExports.jsx(r.FieldError,{className:"sr-only",children:i})]})});f.displayName="InvisibleInput";exports.InvisibleInput=f;
|
package/dist/index.cjs110.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs140.js");const t=require("./index.cjs141.js");let e=t.__exports;var r=(e.__esModule?e:{default:e}).default;exports.plugin=r;
|
package/dist/index.cjs111.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs115.js");const o=require("./index.cjs129.js");let e=o.__exports;var r=(e.__esModule?e:{default:e}).default;exports.colors_1=r;
|
package/dist/index.cjs112.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const i=require("./index.cjs126.js");(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r}});function r(e){if(e=`${e}`,e==="0")return"0";if(/^[+-]?(\d+|\d*\.\d+)(e[+-]?\d+)?(%|\w+)?$/.test(e))return e.replace(/^[+-]?/,t=>t==="-"?"":"-");let c=["var","calc","min","max","clamp"];for(const t of c)if(e.includes(`${t}(`))return`calc(${e} * -1)`}})(i.__exports);
|
package/dist/index.cjs113.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./index.
|
|
1
|
+
"use strict";const o=require("./index.cjs127.js");(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e}});const e=["preflight","container","accessibility","pointerEvents","visibility","position","inset","isolation","zIndex","order","gridColumn","gridColumnStart","gridColumnEnd","gridRow","gridRowStart","gridRowEnd","float","clear","margin","boxSizing","lineClamp","display","aspectRatio","size","height","maxHeight","minHeight","width","minWidth","maxWidth","flex","flexShrink","flexGrow","flexBasis","tableLayout","captionSide","borderCollapse","borderSpacing","transformOrigin","translate","rotate","skew","scale","transform","animation","cursor","touchAction","userSelect","resize","scrollSnapType","scrollSnapAlign","scrollSnapStop","scrollMargin","scrollPadding","listStylePosition","listStyleType","listStyleImage","appearance","columns","breakBefore","breakInside","breakAfter","gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateColumns","gridTemplateRows","flexDirection","flexWrap","placeContent","placeItems","alignContent","alignItems","justifyContent","justifyItems","gap","space","divideWidth","divideStyle","divideColor","divideOpacity","placeSelf","alignSelf","justifySelf","overflow","overscrollBehavior","scrollBehavior","textOverflow","hyphens","whitespace","textWrap","wordBreak","borderRadius","borderWidth","borderStyle","borderColor","borderOpacity","backgroundColor","backgroundOpacity","backgroundImage","gradientColorStops","boxDecorationBreak","backgroundSize","backgroundAttachment","backgroundClip","backgroundPosition","backgroundRepeat","backgroundOrigin","fill","stroke","strokeWidth","objectFit","objectPosition","padding","textAlign","textIndent","verticalAlign","fontFamily","fontSize","fontWeight","textTransform","fontStyle","fontVariantNumeric","lineHeight","letterSpacing","textColor","textOpacity","textDecoration","textDecorationColor","textDecorationStyle","textDecorationThickness","textUnderlineOffset","fontSmoothing","placeholderColor","placeholderOpacity","caretColor","accentColor","opacity","backgroundBlendMode","mixBlendMode","boxShadow","boxShadowColor","outlineStyle","outlineWidth","outlineOffset","outlineColor","ringWidth","ringColor","ringOpacity","ringOffsetWidth","ringOffsetColor","blur","brightness","contrast","dropShadow","grayscale","hueRotate","invert","saturate","sepia","filter","backdropBlur","backdropBrightness","backdropContrast","backdropGrayscale","backdropHueRotate","backdropInvert","backdropOpacity","backdropSaturate","backdropSepia","backdropFilter","transitionProperty","transitionDelay","transitionDuration","transitionTimingFunction","willChange","contain","content","forcedColorAdjust"]})(o.__exports);
|
package/dist/index.cjs114.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const c=require("./index.cjs128.js");(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});function a(e,u){return e===void 0?u:Array.isArray(e)?e:[...new Set(u.filter(r=>e!==!1&&e[r]!==!1).concat(Object.keys(e).filter(r=>e[r]!==!1)))]}})(c.__exports);
|
package/dist/index.cjs115.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const n=require("./index.cjs129.js");require("./index.cjs142.js");const o=require("./index.cjs143.js");(function(a){Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"default",{enumerable:!0,get:function(){return t}});const c=r(o.__exports);function r(f){return f&&f.__esModule?f:{default:f}}function e({version:f,from:d,to:b}){c.default.warn(`${d}-color-renamed`,[`As of Tailwind CSS ${f}, \`${d}\` has been renamed to \`${b}\`.`,"Update your configuration file to silence this warning."])}const t={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return e({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return e({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return e({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return e({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return e({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}})(n.__exports);
|
package/dist/index.cjs116.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const c=require("./index.cjs124.js");(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"defaults",{enumerable:!0,get:function(){return f}});function f(l,...d){for(let u of d){for(let o in u){var i;!(l==null||(i=l.hasOwnProperty)===null||i===void 0)&&i.call(l,o)||(l[o]=u[o])}for(let o of Object.getOwnPropertySymbols(u)){var e;!(l==null||(e=l.hasOwnProperty)===null||e===void 0)&&e.call(l,o)||(l[o]=u[o])}}return l}})(c.__exports);
|
package/dist/index.cjs117.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const o=require("./index.cjs135.js");(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"toPath",{enumerable:!0,get:function(){return r}});function r(e){if(Array.isArray(e))return e;let n=e.split("[").length-1,i=e.split("]").length-1;if(n!==i)throw new Error(`Path is invalid. Has unbalanced brackets: ${e}`);return e.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean)}})(o.__exports);
|
package/dist/index.cjs118.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(
|
|
1
|
+
"use strict";const w=require("./index.cjs125.js");require("./index.cjs137.js");require("./index.cjs142.js");const E=require("./index.cjs138.js"),T=require("./index.cjs143.js");(function(x){Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"normalizeConfig",{enumerable:!0,get:function(){return b}});const g=E.__exports,f=m(T.__exports);function A(e){if(typeof WeakMap!="function")return null;var d=new WeakMap,u=new WeakMap;return(A=function(t){return t?u:d})(e)}function m(e,d){if(!d&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var u=A(d);if(u&&u.has(e))return u.get(e);var t={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(t,n,i):t[n]=e[n]}return t.default=e,u&&u.set(e,t),t}function b(e){if((()=>{if(e.purge||!e.content||!Array.isArray(e.content)&&!(typeof e.content=="object"&&e.content!==null))return!1;if(Array.isArray(e.content))return e.content.every(t=>typeof t=="string"?!0:!(typeof(t==null?void 0:t.raw)!="string"||t!=null&&t.extension&&typeof(t==null?void 0:t.extension)!="string"));if(typeof e.content=="object"&&e.content!==null){if(Object.keys(e.content).some(t=>!["files","relative","extract","transform"].includes(t)))return!1;if(Array.isArray(e.content.files)){if(!e.content.files.every(t=>typeof t=="string"?!0:!(typeof(t==null?void 0:t.raw)!="string"||t!=null&&t.extension&&typeof(t==null?void 0:t.extension)!="string")))return!1;if(typeof e.content.extract=="object"){for(let t of Object.values(e.content.extract))if(typeof t!="function")return!1}else if(!(e.content.extract===void 0||typeof e.content.extract=="function"))return!1;if(typeof e.content.transform=="object"){for(let t of Object.values(e.content.transform))if(typeof t!="function")return!1}else if(!(e.content.transform===void 0||typeof e.content.transform=="function"))return!1;if(typeof e.content.relative!="boolean"&&typeof e.content.relative<"u")return!1}return!0}return!1})()||f.default.warn("purge-deprecation",["The `purge`/`content` options have changed in Tailwind CSS v3.0.","Update your configuration file to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#configure-content-sources"]),e.safelist=(()=>{var t;let{content:r,purge:n,safelist:i}=e;return Array.isArray(i)?i:Array.isArray(r==null?void 0:r.safelist)?r.safelist:Array.isArray(n==null?void 0:n.safelist)?n.safelist:Array.isArray(n==null||(t=n.options)===null||t===void 0?void 0:t.safelist)?n.options.safelist:[]})(),e.blocklist=(()=>{let{blocklist:t}=e;if(Array.isArray(t)){if(t.every(r=>typeof r=="string"))return t;f.default.warn("blocklist-invalid",["The `blocklist` option must be an array of strings.","https://tailwindcss.com/docs/content-configuration#discarding-classes"])}return[]})(),typeof e.prefix=="function")f.default.warn("prefix-function",["As of Tailwind CSS v3.0, `prefix` cannot be a function.","Update `prefix` in your configuration to be a string to eliminate this warning.","https://tailwindcss.com/docs/upgrade-guide#prefix-cannot-be-a-function"]),e.prefix="";else{var u;e.prefix=(u=e.prefix)!==null&&u!==void 0?u:""}e.content={relative:(()=>{let{content:t}=e;return t!=null&&t.relative?t.relative:(0,g.flagEnabled)(e,"relativeContentPathsByDefault")})(),files:(()=>{let{content:t,purge:r}=e;return Array.isArray(r)?r:Array.isArray(r==null?void 0:r.content)?r.content:Array.isArray(t)?t:Array.isArray(t==null?void 0:t.content)?t.content:Array.isArray(t==null?void 0:t.files)?t.files:[]})(),extract:(()=>{let t=(()=>{var i,o,l,a,s,c,v,p,y,_;return!((i=e.purge)===null||i===void 0)&&i.extract?e.purge.extract:!((o=e.content)===null||o===void 0)&&o.extract?e.content.extract:!((l=e.purge)===null||l===void 0||(a=l.extract)===null||a===void 0)&&a.DEFAULT?e.purge.extract.DEFAULT:!((s=e.content)===null||s===void 0||(c=s.extract)===null||c===void 0)&&c.DEFAULT?e.content.extract.DEFAULT:!((v=e.purge)===null||v===void 0||(p=v.options)===null||p===void 0)&&p.extractors?e.purge.options.extractors:!((y=e.content)===null||y===void 0||(_=y.options)===null||_===void 0)&&_.extractors?e.content.options.extractors:{}})(),r={},n=(()=>{var i,o,l,a;if(!((i=e.purge)===null||i===void 0||(o=i.options)===null||o===void 0)&&o.defaultExtractor)return e.purge.options.defaultExtractor;if(!((l=e.content)===null||l===void 0||(a=l.options)===null||a===void 0)&&a.defaultExtractor)return e.content.options.defaultExtractor})();if(n!==void 0&&(r.DEFAULT=n),typeof t=="function")r.DEFAULT=t;else if(Array.isArray(t))for(let{extensions:i,extractor:o}of t??[])for(let l of i)r[l]=o;else typeof t=="object"&&t!==null&&Object.assign(r,t);return r})(),transform:(()=>{let t=(()=>{var n,i,o,l,a,s;return!((n=e.purge)===null||n===void 0)&&n.transform?e.purge.transform:!((i=e.content)===null||i===void 0)&&i.transform?e.content.transform:!((o=e.purge)===null||o===void 0||(l=o.transform)===null||l===void 0)&&l.DEFAULT?e.purge.transform.DEFAULT:!((a=e.content)===null||a===void 0||(s=a.transform)===null||s===void 0)&&s.DEFAULT?e.content.transform.DEFAULT:{}})(),r={};return typeof t=="function"&&(r.DEFAULT=t),typeof t=="object"&&t!==null&&Object.assign(r,t),r})()};for(let t of e.content.files)if(typeof t=="string"&&/{([^,]*?)}/g.test(t)){f.default.warn("invalid-glob-braces",[`The glob pattern ${(0,f.dim)(t)} in your Tailwind CSS configuration is invalid.`,`Update it to ${(0,f.dim)(t.replace(/{([^,]*?)}/g,"$1"))} to silence this warning.`]);break}return e}})(w.__exports);
|
package/dist/index.cjs119.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(
|
|
1
|
+
"use strict";const o=require("./index.cjs130.js");(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n}});function n(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;const r=Object.getPrototypeOf(t);return r===null||Object.getPrototypeOf(r)===null}})(o.__exports);
|
package/dist/index.cjs12.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs36.js"),j=require("./index.cjs38.js"),b=require("react"),s=require("react-aria-components"),f=require("./index.cjs37.js"),g=require("./index.cjs32.js"),T=require("./index.cjs33.js");function q(r,o){const{labelClassName:a}=r,[c,u]=s.useContextProps(r,o,s.LabelContext),{children:n,tooltipText:l,tooltipSupportText:x,tooltipProps:e,isRequired:m=!1,...d}=c;if(!n)return null;const p=f.cn("flex select-none items-center text-sm leading-6 text-neutral-900",a);return t.jsxRuntimeExports.jsxs(s.Label,{className:p,...d,ref:u,children:[n,m?t.jsxRuntimeExports.jsx("span",{className:"ml-1 text-neutral-900",children:"*"}):null,l?t.jsxRuntimeExports.jsxs(T.TooltipTrigger,{delay:100,children:[t.jsxRuntimeExports.jsx(j.InfoIcon,{className:"ml-1 size-4 text-primary-600"}),t.jsxRuntimeExports.jsx(g.Tooltip,{placement:(e==null?void 0:e.placement)||"right",supportText:x,size:(e==null?void 0:e.size)||"sm",children:l})]}):null]})}const i=b.forwardRef(q);i.displayName="Label";exports.Label=i;
|
package/dist/index.cjs120.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(
|
|
1
|
+
"use strict";const o=require("./index.cjs131.js");(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"cloneDeep",{enumerable:!0,get:function(){return r}});function r(e){return Array.isArray(e)?e.map(t=>r(t)):typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e).map(([t,c])=>[t,r(c)])):e}})(o.__exports);
|
package/dist/index.cjs121.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(
|
|
1
|
+
"use strict";const L=require("./index.cjs132.js");require("./index.cjs144.js");require("./index.cjs122.js");require("./index.cjs145.js");require("./index.cjs112.js");require("./index.cjs146.js");require("./index.cjs137.js");const j=require("./index.cjs147.js"),P=require("./index.cjs148.js"),$=require("./index.cjs133.js"),D=require("./index.cjs138.js"),_=require("./index.cjs149.js"),m=require("./index.cjs126.js");(function(g){Object.defineProperty(g,"__esModule",{value:!0});function k(e,u){for(var r in u)Object.defineProperty(e,r,{enumerable:!0,get:u[r]})}k(g,{updateAllClasses:function(){return S},asValue:function(){return h},parseColorFormat:function(){return b},asColor:function(){return T},asLookupValue:function(){return F},typeMap:function(){return p},coerceValue:function(){return C},getMatchingTypes:function(){return U}});const w=q(_.__exports),x=$.__exports,a=j.__exports,V=q(m.__exports),I=P.__exports,N=D.__exports;function q(e){return e&&e.__esModule?e:{default:e}}function S(e,u){e.walkClasses(r=>{r.value=u(r.value),r.raws&&r.raws.value&&(r.raws.value=(0,w.default)(r.raws.value))})}function A(e,u){if(!f(e))return;let r=e.slice(1,-1);if(u(r))return(0,a.normalize)(r)}function E(e,u={},r){let t=u[e];if(t!==void 0)return(0,V.default)(t);if(f(e)){let i=A(e,r);return i===void 0?void 0:(0,V.default)(i)}}function h(e,u={},{validate:r=()=>!0}={}){var t;let i=(t=u.values)===null||t===void 0?void 0:t[e];return i!==void 0?i:u.supportsNegativeValues&&e.startsWith("-")?E(e.slice(1),u.values,r):A(e,r)}function f(e){return e.startsWith("[")&&e.endsWith("]")}function z(e){let u=e.lastIndexOf("/"),r=e.lastIndexOf("[",u),t=e.indexOf("]",u);return e[u-1]==="]"||e[u+1]==="["||r!==-1&&t!==-1&&r<u&&u<t&&(u=e.lastIndexOf("/",r)),u===-1||u===e.length-1?[e,void 0]:f(e)&&!e.includes("]/[")?[e,void 0]:[e.slice(0,u),e.slice(u+1)]}function b(e){if(typeof e=="string"&&e.includes("<alpha-value>")){let u=e;return({opacityValue:r=1})=>u.replace("<alpha-value>",r)}return e}function M(e){return(0,a.normalize)(e.slice(1,-1))}function T(e,u={},{tailwindConfig:r={}}={}){var t;if(((t=u.values)===null||t===void 0?void 0:t[e])!==void 0){var i;return b((i=u.values)===null||i===void 0?void 0:i[e])}let[l,n]=z(e);if(n!==void 0){var c,v,y,d;let o=(d=(c=u.values)===null||c===void 0?void 0:c[l])!==null&&d!==void 0?d:f(l)?l.slice(1,-1):void 0;return o===void 0?void 0:(o=b(o),f(n)?(0,x.withAlphaValue)(o,M(n)):((v=r.theme)===null||v===void 0||(y=v.opacity)===null||y===void 0?void 0:y[n])===void 0?void 0:(0,x.withAlphaValue)(o,r.theme.opacity[n]))}return h(e,u,{validate:a.color})}function F(e,u={}){var r;return(r=u.values)===null||r===void 0?void 0:r[e]}function s(e){return(u,r)=>h(u,r,{validate:e})}let p={any:h,color:T,url:s(a.url),image:s(a.image),length:s(a.length),percentage:s(a.percentage),position:s(a.position),lookup:F,"generic-name":s(a.genericName),"family-name":s(a.familyName),number:s(a.number),"line-width":s(a.lineWidth),"absolute-size":s(a.absoluteSize),"relative-size":s(a.relativeSize),shadow:s(a.shadow),size:s(I.backgroundSize)},O=Object.keys(p);function W(e,u){let r=e.indexOf(u);return r===-1?[void 0,e]:[e.slice(0,r),e.slice(r+1)]}function C(e,u,r,t){if(r.values&&u in r.values)for(let{type:l}of e??[]){let n=p[l](u,r,{tailwindConfig:t});if(n!==void 0)return[n,l,null]}if(f(u)){let l=u.slice(1,-1),[n,c]=W(l,":");if(!/^[\w-_]+$/g.test(n))c=l;else if(n!==void 0&&!O.includes(n))return[];if(c.length>0&&O.includes(n))return[h(`[${c}]`,r),n,null]}let i=U(e,u,r,t);for(let l of i)return l;return[]}function*U(e,u,r,t){let i=(0,N.flagEnabled)(t,"generalizedModifiers"),[l,n]=z(u);if(i&&r.modifiers!=null&&(r.modifiers==="any"||typeof r.modifiers=="object"&&(n&&f(n)||n in r.modifiers))||(l=u,n=void 0),n!==void 0&&l===""&&(l="DEFAULT"),n!==void 0&&typeof r.modifiers=="object"){var v,y;let d=(y=(v=r.modifiers)===null||v===void 0?void 0:v[n])!==null&&y!==void 0?y:null;d!==null?n=d:f(n)&&(n=M(n))}for(let{type:d}of e??[]){let o=p[d](l,r,{tailwindConfig:t});o!==void 0&&(yield[o,d,n??null])}}})(L.__exports);
|
package/dist/index.cjs122.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(
|
|
1
|
+
"use strict";const s=require("./index.cjs133.js");require("./index.cjs150.js");const l=require("./index.cjs151.js");(function(a){Object.defineProperty(a,"__esModule",{value:!0});function f(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}f(a,{withAlphaValue:function(){return p},default:function(){return c}});const o=l.__exports;function p(e,r,t){if(typeof e=="function")return e({opacityValue:r});let n=(0,o.parseColor)(e,{loose:!0});return n===null?t:(0,o.formatColor)({...n,alpha:r})}function c({color:e,property:r,variable:t}){let n=[].concat(r);if(typeof e=="function")return{[t]:"1",...Object.fromEntries(n.map(u=>[u,e({opacityVariable:t,opacityValue:`var(${t})`})]))};const i=(0,o.parseColor)(e);return i===null?Object.fromEntries(n.map(u=>[u,e])):i.alpha!==void 0?Object.fromEntries(n.map(u=>[u,e])):{[t]:"1",...Object.fromEntries(n.map(u=>[u,(0,o.formatColor)({...i,alpha:`var(${t})`})]))}}})(s.__exports);
|