plume-ui-react 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,374 @@
1
+ import * as react from 'react';
2
+ import { CSSProperties, ReactNode, RefObject, ChangeEvent, LazyExoticComponent, ButtonHTMLAttributes, InputHTMLAttributes, Ref, ReactElement, HtmlHTMLAttributes, HTMLAttributes } from 'react';
3
+
4
+ type RadiusValue = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 'full';
5
+ type SizeValue = 'max' | 'min' | 'full';
6
+ type SpaceValue = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 52 | 56 | 60 | 64 | 68 | 72 | 76 | 80 | 84 | 88 | 92 | 96;
7
+ type ZIndexValue = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
8
+ interface ShadeLevel {
9
+ 50: string;
10
+ 100: string;
11
+ 200: string;
12
+ 300: string;
13
+ 400: string;
14
+ 500: string;
15
+ 600: string;
16
+ 700: string;
17
+ 800: string;
18
+ 900: string;
19
+ 950: string;
20
+ }
21
+ interface ColorPalette {
22
+ primary: ShadeLevel;
23
+ secondary: ShadeLevel;
24
+ info: ShadeLevel;
25
+ warning: ShadeLevel;
26
+ error: ShadeLevel;
27
+ success: ShadeLevel;
28
+ brown: ShadeLevel;
29
+ pink: ShadeLevel;
30
+ purple: ShadeLevel;
31
+ teal: ShadeLevel;
32
+ yellow: ShadeLevel;
33
+ }
34
+ interface Typography {
35
+ fontFamily: string;
36
+ fontSizes: FontSizes;
37
+ fontWeights: FontWeights;
38
+ lineHeights: LineHeights;
39
+ }
40
+ interface FontSizes {
41
+ xs: string;
42
+ sm: string;
43
+ base: string;
44
+ lg: string;
45
+ xl: string;
46
+ '2xl': string;
47
+ }
48
+ interface FontWeights {
49
+ thin: number;
50
+ extralight: number;
51
+ light: number;
52
+ normal: number;
53
+ medium: number;
54
+ semibold: number;
55
+ bold: number;
56
+ extrabold: number;
57
+ black: number;
58
+ }
59
+ interface LineHeights {
60
+ none: number;
61
+ tight: number;
62
+ snug: number;
63
+ normal: number;
64
+ relaxed: number;
65
+ loose: number;
66
+ }
67
+ type Spaces = {
68
+ [key in SpaceValue]: string;
69
+ };
70
+ type Sizes = {
71
+ [key in SizeValue]: string;
72
+ };
73
+ type Radii = {
74
+ [key in RadiusValue]: string;
75
+ };
76
+ type ZIndeces = {
77
+ [key in ZIndexValue]: number;
78
+ };
79
+ interface Shadows {
80
+ none: string;
81
+ sm: string;
82
+ md: string;
83
+ lg: string;
84
+ xl: string;
85
+ '2xl': string;
86
+ }
87
+ interface Breakpoints {
88
+ sm: string;
89
+ md: string;
90
+ lg: string;
91
+ xl: string;
92
+ '2xl': string;
93
+ }
94
+ interface SemanticColors {
95
+ background: string;
96
+ surface: string;
97
+ surfaceMuted: string;
98
+ foreground: string;
99
+ muted: string;
100
+ border: string;
101
+ }
102
+ interface Theme {
103
+ colors: ColorPalette;
104
+ semantic: SemanticColors;
105
+ typography: Typography;
106
+ spaces: Spaces;
107
+ sizes: Sizes;
108
+ radii: Radii;
109
+ zIndeces: ZIndeces;
110
+ shadows: Shadows;
111
+ breakpoints: Breakpoints;
112
+ }
113
+ type DeepPartial<T> = {
114
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
115
+ };
116
+
117
+ declare const defaultTheme: Theme;
118
+ declare const defaultDarkTheme: DeepPartial<Theme>;
119
+
120
+ interface ComponentProps {
121
+ className?: string;
122
+ style?: CSSProperties;
123
+ index?: number;
124
+ }
125
+ type Size = 'sm' | 'md' | 'lg';
126
+ type Shape = 'pill' | 'rounded';
127
+ type ColorScheme = keyof ColorPalette;
128
+ type Shade = keyof ShadeLevel;
129
+ type ColorShade = ColorScheme | `${ColorScheme}.${Shade}`;
130
+
131
+ /**
132
+ * Maps a ColorShade (e.g. 'primary' or 'primary.900') to the matching CSS
133
+ * custom property emitted by <ThemeProvider> (e.g. `var(--plume-color-primary-900)`).
134
+ * A bare scheme defaults to shade 500.
135
+ */
136
+ declare function colorVar(colorShade: ColorShade): string;
137
+
138
+ /**
139
+ * Flattens a resolved Theme into a map of CSS custom properties
140
+ * (e.g. `--plume-color-primary-500`, `--plume-space-4`, `--plume-radius-2`).
141
+ * Custom color schemes added via module augmentation are included automatically.
142
+ */
143
+ declare function themeToCssVars(theme: Theme): Record<string, string>;
144
+
145
+ type ColorMode = 'light' | 'dark';
146
+ type ColorModeSetting = ColorMode | 'system';
147
+ interface ThemeContextValue {
148
+ theme: Theme;
149
+ colorMode: ColorMode;
150
+ setColorMode: (mode: ColorModeSetting) => void;
151
+ }
152
+ declare function useTheme(): ThemeContextValue;
153
+ interface ThemeProviderProps {
154
+ children: ReactNode;
155
+ theme?: DeepPartial<Theme>;
156
+ darkTheme?: DeepPartial<Theme>;
157
+ defaultColorMode?: ColorModeSetting;
158
+ /** Theme document.body and set data-plume-color-mode on <html> for full-page theming. Default true; set false for nested providers. */
159
+ applyToBody?: boolean;
160
+ className?: string;
161
+ style?: CSSProperties;
162
+ }
163
+ declare function ThemeProvider({ children, theme, darkTheme, defaultColorMode, applyToBody, className, style, }: ThemeProviderProps): ReactNode;
164
+
165
+ interface UseClickOutsideProps {
166
+ callback: () => void;
167
+ }
168
+ declare function useClickOutside({ callback }: UseClickOutsideProps): RefObject<HTMLDivElement | null>;
169
+
170
+ interface UseDebounceProps<T> {
171
+ value: T;
172
+ delay: number;
173
+ }
174
+ declare function useDebounce<T>({ value, delay }: UseDebounceProps<T>): T;
175
+
176
+ type MaskChangeHandler = (event: ChangeEvent<HTMLInputElement>) => void;
177
+ interface UseMaskProps {
178
+ mask?: string;
179
+ value?: string;
180
+ defaultValue?: string;
181
+ onChange?: MaskChangeHandler;
182
+ }
183
+ interface UseMaskResult {
184
+ value: string | undefined;
185
+ onChange: MaskChangeHandler;
186
+ }
187
+ /**
188
+ * Formats `value` according to `mask`. Mask characters: `#` a digit, `A` a
189
+ * letter, `*` a letter or digit; `\` escapes the next character as a literal;
190
+ * any other character is a literal that is auto-inserted as the user types.
191
+ * Input characters that don't fit the next slot are dropped.
192
+ * e.g. applyMask('15082024', '##/##/####') -> '15/08/2024'.
193
+ */
194
+ declare function applyMask(value: string, mask: string): string;
195
+ /**
196
+ * Masks an input's value. Works for both controlled (`value` provided) and
197
+ * uncontrolled (`defaultValue`) usage. When no `mask` is given it passes the
198
+ * value/handler through untouched, so callers can use it unconditionally.
199
+ */
200
+ declare function useMask({ mask, value, defaultValue, onChange, }: UseMaskProps): UseMaskResult;
201
+
202
+ declare function getContrastColor(inputColor: string): string;
203
+ declare function getContrastRatio(foreground: string, background: string): number;
204
+ declare function getLightenColor(inputColor: string, lightness?: number): string;
205
+ declare function getDarkenColor(inputColor: string, darkness?: number): string;
206
+
207
+ declare function getDateFormatByLanguage(language?: string): string;
208
+ declare function getDaysOfWeekByLanguage(language?: string): string[];
209
+ declare function getMonthsByLanguage(language?: string): string[];
210
+ declare function getDateStringByLanguage({ displayFormat, isRange, startDate, endDate, language, }: {
211
+ displayFormat?: string;
212
+ startDate?: Date;
213
+ isRange?: boolean;
214
+ endDate?: Date;
215
+ language?: string;
216
+ }): string;
217
+ declare function formatDate(date: Date, displayFormat: string): string;
218
+ declare function validateFormatDate(dateString: string, language: string, displayFormat?: string): boolean;
219
+ declare function getDateFromDateString(dateString: string, displayFormat?: string): Date;
220
+
221
+ interface LazyLoadedComponent {
222
+ default: () => ReactNode;
223
+ }
224
+ declare function lazyLoadContent(content: ReactNode): LazyExoticComponent<() => ReactNode>;
225
+
226
+ /**
227
+ * Deeply merges `sources` into `target` and returns a NEW object. Inputs are
228
+ * never mutated, so shared/base objects (e.g. a default theme) stay pristine.
229
+ * Later sources win; nested plain objects are merged recursively, everything
230
+ * else (primitives, arrays) is replaced.
231
+ */
232
+ declare function deepMerge<T>(target: T, ...sources: (Partial<T> | undefined)[]): T;
233
+
234
+ interface ButtonOwnProps {
235
+ busyText?: string;
236
+ colorScheme?: ColorScheme;
237
+ iconLeft?: ReactNode;
238
+ iconRight?: ReactNode;
239
+ isBusy?: boolean;
240
+ label?: string;
241
+ shape?: Shape;
242
+ size?: Size;
243
+ variant?: ButtonVariant;
244
+ }
245
+ type ButtonVariant = 'solid' | 'outline' | 'link' | 'icon' | 'ghost' | 'unstyled';
246
+ type ButtonRootAttributes = Pick<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-expanded' | 'aria-haspopup' | 'aria-label' | 'aria-labelledby' | 'children' | 'disabled' | 'hidden' | 'id' | 'onBlur' | 'onClick' | 'onFocus' | 'onKeyDown' | 'onMouseEnter' | 'role' | 'tabIndex' | 'title' | 'type'>;
247
+ type ButtonProps = ComponentProps & ButtonRootAttributes & ButtonOwnProps;
248
+ declare const Button: react.ForwardRefExoticComponent<ComponentProps & ButtonRootAttributes & ButtonOwnProps & react.RefAttributes<HTMLButtonElement>>;
249
+
250
+ interface DatePickerOwnProps {
251
+ colorScheme?: ColorScheme;
252
+ config?: DatePickerConfig;
253
+ displayFormat?: string;
254
+ inputRef?: Ref<HTMLInputElement>;
255
+ isCalendar?: boolean;
256
+ isRange?: boolean;
257
+ maxDate?: Date;
258
+ minDate?: Date;
259
+ onBlur?: (value?: DateRange) => void;
260
+ onChange: (value: DateRange) => void;
261
+ shape?: Shape;
262
+ showFooter?: boolean;
263
+ size?: Size;
264
+ value?: DateRange;
265
+ variant?: DatePickerVariant;
266
+ }
267
+ interface DateRange {
268
+ endDate: Date | null;
269
+ startDate: Date | null;
270
+ }
271
+ interface DatePickerConfig {
272
+ footer?: Partial<FooterLabels>;
273
+ language?: string;
274
+ }
275
+ interface FooterLabels {
276
+ apply: string;
277
+ cancel: string;
278
+ }
279
+ type DatePickerVariant = 'outline' | 'filled' | 'underline' | 'unstyled';
280
+ type DatePickerRootAttributes = Pick<InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'aria-invalid' | 'disabled' | 'readOnly' | 'id' | 'name' | 'required' | 'placeholder'>;
281
+ type DatePickerProps = ComponentProps & DatePickerRootAttributes & DatePickerOwnProps;
282
+ declare const DatePicker: react.ForwardRefExoticComponent<ComponentProps & DatePickerRootAttributes & DatePickerOwnProps & react.RefAttributes<HTMLDivElement>>;
283
+
284
+ interface FieldOwnProps {
285
+ disabled?: boolean;
286
+ errorText?: ReactNode;
287
+ helperText?: ReactNode;
288
+ invalid?: boolean;
289
+ label?: ReactNode;
290
+ optionalText?: ReactNode;
291
+ orientation?: FieldOrientation;
292
+ readOnly?: boolean;
293
+ required?: boolean;
294
+ }
295
+ type FieldOrientation = 'vertical' | 'horizontal';
296
+ interface FieldControlProps {
297
+ 'aria-describedby'?: string;
298
+ 'aria-invalid'?: boolean | 'true' | 'false';
299
+ disabled?: boolean;
300
+ id?: string;
301
+ readOnly?: boolean;
302
+ required?: boolean;
303
+ }
304
+ type FieldRootAttributes = {
305
+ children: ReactElement<FieldControlProps>;
306
+ };
307
+ type FieldProps = Omit<ComponentProps, 'index'> & FieldRootAttributes & FieldOwnProps;
308
+ declare const Field: react.ForwardRefExoticComponent<Omit<ComponentProps, "index"> & FieldRootAttributes & FieldOwnProps & react.RefAttributes<HTMLDivElement>>;
309
+
310
+ interface InputOwnProps {
311
+ addonBefore?: ReactNode;
312
+ addonAfter?: ReactNode;
313
+ elementBefore?: ReactNode;
314
+ elementAfter?: ReactNode;
315
+ colorScheme?: ColorScheme;
316
+ mask?: string;
317
+ shape?: Shape;
318
+ size?: Size;
319
+ variant?: InputVariant;
320
+ }
321
+ type InputRootAttributes = Pick<InputHTMLAttributes<HTMLInputElement>, 'aria-describedby' | 'aria-invalid' | 'defaultValue' | 'disabled' | 'id' | 'inputMode' | 'max' | 'maxLength' | 'min' | 'minLength' | 'name' | 'onBlur' | 'onChange' | 'pattern' | 'placeholder' | 'readOnly' | 'required' | 'type' | 'value'>;
322
+ type InputVariant = 'outline' | 'filled' | 'underline' | 'unstyled';
323
+ type InputProps = ComponentProps & InputRootAttributes & InputOwnProps;
324
+ declare const Input: react.ForwardRefExoticComponent<ComponentProps & InputRootAttributes & InputOwnProps & react.RefAttributes<HTMLInputElement>>;
325
+
326
+ interface SpinnerOwnProps {
327
+ color?: ColorShade;
328
+ size?: Size;
329
+ speed?: string;
330
+ thickness?: number;
331
+ variant?: SpinnerVariant;
332
+ }
333
+ type SpinnerVariant = 'solid' | 'dashed' | 'dotted' | 'double' | 'unstyled';
334
+ type SpinnerRootAttributes = Pick<HtmlHTMLAttributes<HTMLSpanElement>, 'hidden' | 'id' | 'tabIndex'>;
335
+ type SpinnerProps = ComponentProps & SpinnerRootAttributes & SpinnerOwnProps;
336
+ declare const Spinner: react.ForwardRefExoticComponent<ComponentProps & SpinnerRootAttributes & SpinnerOwnProps & react.RefAttributes<HTMLOutputElement>>;
337
+
338
+ interface TabsOwnProps {
339
+ alignment?: TabsAlignment;
340
+ colorScheme?: ColorScheme;
341
+ isLazy?: boolean;
342
+ onChange?: (index: number) => void;
343
+ orientation?: TabsOrientation;
344
+ size?: Size;
345
+ variant?: TabsVariant;
346
+ }
347
+ type TabsVariant = 'underline' | 'rounded' | 'enclosed' | 'segment' | 'unstyled';
348
+ type TabsOrientation = 'horizontal' | 'vertical';
349
+ type TabsAlignment = 'left' | 'center' | 'right';
350
+ type TabsRootAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'hidden' | 'id' | 'tabIndex' | 'children'>;
351
+ type TabsProps = ComponentProps & TabsRootAttributes & TabsOwnProps;
352
+ declare const Tabs: react.ForwardRefExoticComponent<ComponentProps & TabsRootAttributes & TabsOwnProps & react.RefAttributes<HTMLDivElement>>;
353
+
354
+ type TabListProps = Pick<HTMLAttributes<HTMLDivElement>, 'aria-label' | 'aria-labelledby' | 'className' | 'id' | 'children'>;
355
+ declare const TabList: react.ForwardRefExoticComponent<TabListProps & react.RefAttributes<HTMLDivElement>>;
356
+
357
+ interface TabOwnProps {
358
+ label?: string;
359
+ isActive?: boolean;
360
+ disabled?: boolean;
361
+ extraContentLeft?: ReactNode;
362
+ extraContentRight?: ReactNode;
363
+ }
364
+ type TabRootAttributes = Pick<HTMLAttributes<HTMLButtonElement>, 'children'>;
365
+ type TabProps = ComponentProps & TabRootAttributes & TabOwnProps;
366
+ declare const Tab: react.ForwardRefExoticComponent<ComponentProps & TabRootAttributes & TabOwnProps & react.RefAttributes<HTMLButtonElement>>;
367
+
368
+ type TabPanelsProps = Pick<HTMLAttributes<HTMLDivElement>, 'className' | 'id' | 'children'>;
369
+ declare const TabPanels: react.ForwardRefExoticComponent<TabPanelsProps & react.RefAttributes<HTMLDivElement>>;
370
+
371
+ type TabPanelProps = Pick<HTMLAttributes<HTMLDivElement>, 'className' | 'children'> & Pick<ComponentProps, 'index'>;
372
+ declare const TabPanel: react.ForwardRefExoticComponent<Pick<HTMLAttributes<HTMLDivElement>, "children" | "className"> & Pick<ComponentProps, "index"> & react.RefAttributes<HTMLDivElement>>;
373
+
374
+ export { type Breakpoints, Button, type ButtonProps, type ColorMode, type ColorModeSetting, type ColorPalette, type ColorScheme, type ColorShade, type ComponentProps, DatePicker, type DatePickerConfig, type DatePickerProps, type DateRange, type DeepPartial, Field, type FieldControlProps, type FieldOrientation, type FieldProps, type FontSizes, type FontWeights, Input, type InputProps, type LazyLoadedComponent, type LineHeights, type MaskChangeHandler, type Radii, type SemanticColors, type Shade, type ShadeLevel, type Shadows, type Shape, type Size, type Sizes, type Spaces, Spinner, type SpinnerProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, TabPanels, type TabPanelsProps, type TabProps, Tabs, type TabsProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, type Typography, type UseClickOutsideProps, type UseDebounceProps, type UseMaskProps, type UseMaskResult, type ZIndeces, applyMask, colorVar, deepMerge, defaultDarkTheme, defaultTheme, formatDate, getContrastColor, getContrastRatio, getDarkenColor, getDateFormatByLanguage, getDateFromDateString, getDateStringByLanguage, getDaysOfWeekByLanguage, getLightenColor, getMonthsByLanguage, lazyLoadContent, themeToCssVars, useClickOutside, useDebounce, useMask, useTheme, validateFormatDate };
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";var Kt=Object.create;var xe=Object.defineProperty;var Wt=Object.getOwnPropertyDescriptor;var Zt=Object.getOwnPropertyNames;var Xt=Object.getPrototypeOf,Jt=Object.prototype.hasOwnProperty;var Qt=(e,t)=>{for(var r in t)xe(e,r,{get:t[r],enumerable:!0})},Tt=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Zt(t))!Jt.call(e,n)&&n!==r&&xe(e,n,{get:()=>t[n],enumerable:!(o=Wt(t,n))||o.enumerable});return e};var vt=(e,t,r)=>(r=e!=null?Kt(Xt(e)):{},Tt(t||!e||!e.__esModule?xe(r,"default",{value:e,enumerable:!0}):r,e)),er=e=>Tt(xe({},"__esModule",{value:!0}),e);var Mr={};Qt(Mr,{Button:()=>w,DatePicker:()=>pt,Field:()=>ut,Input:()=>Se,Spinner:()=>ye,Tab:()=>gt,TabList:()=>bt,TabPanel:()=>_t,TabPanels:()=>yt,Tabs:()=>ft,ThemeProvider:()=>lr,applyMask:()=>we,colorVar:()=>je,deepMerge:()=>Ce,defaultDarkTheme:()=>Ge,defaultTheme:()=>Ue,formatDate:()=>ie,getContrastColor:()=>Ke,getContrastRatio:()=>le,getDarkenColor:()=>_e,getDateFormatByLanguage:()=>ge,getDateFromDateString:()=>de,getDateStringByLanguage:()=>Ae,getDaysOfWeekByLanguage:()=>tt,getLightenColor:()=>Ee,getMonthsByLanguage:()=>rt,lazyLoadContent:()=>ot,themeToCssVars:()=>Ze,useClickOutside:()=>Je,useDebounce:()=>Qe,useMask:()=>et,useTheme:()=>sr,validateFormatDate:()=>Pe});module.exports=er(Mr);var Ue={colors:{primary:{50:"#ecf2ff",100:"#dce8ff",200:"#c1d2ff",300:"#9bb4ff",400:"#738bff",500:"#5263ff",600:"#3a3df8",700:"#2727db",800:"#2223b1",900:"#24278b",950:"#151551"},secondary:{50:"#f5f6f6",100:"#e5e7e8",200:"#cdd1d4",300:"#aab0b6",400:"#808990",500:"#6c757d",600:"#565c64",700:"#4a4f54",800:"#414449",900:"#3a3c3f",950:"#242628"},info:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c6fd",400:"#60a6fa",500:"#3b83f6",600:"#2564eb",700:"#1d4fd8",800:"#1e41af",900:"#1e3b8a",950:"#172554"},warning:{50:"#fef9e8",100:"#fef0c3",200:"#fee28a",300:"#fdd147",400:"#fac215",500:"#eab308",600:"#ca9a04",700:"#a17c07",800:"#85680e",900:"#715a12",950:"#423306"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},success:{50:"#f0fdf5",100:"#dcfce8",200:"#bbf7d1",300:"#86efad",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803c",800:"#166533",900:"#14532b",950:"#052e14"},brown:{50:"#f6f3f0",100:"#e9e1d8",200:"#d4c5b4",300:"#bba289",400:"#a78568",500:"#98745a",600:"#825f4c",700:"#6d4c41",800:"#5a3f39",900:"#4f3834",950:"#2c1e1c"},pink:{50:"#fff1f3",100:"#ffe3e7",200:"#ffc0cb",300:"#ffa2b3",400:"#fe6e8b",500:"#f83b66",600:"#e51951",700:"#c20e43",800:"#a20f40",900:"#8a113c",950:"#4d041c"},purple:{50:"#fcf4ff",100:"#f9e6ff",200:"#f3d2ff",300:"#eaaeff",400:"#dd7bff",500:"#d149ff",600:"#c325f8",700:"#ab15db",800:"#8f17b2",900:"#74148f",950:"#680085"},teal:{50:"#eefffc",100:"#c5fffa",200:"#8bfff5",300:"#4afef0",400:"#15ece2",500:"#00d0c9",600:"#00a8a5",700:"#008080",800:"#066769",900:"#0a5757",950:"#003235"},yellow:{50:"#fcffe7",100:"#f5ffc1",200:"#f0ff86",300:"#efff41",400:"#f6ff0d",500:"#f0ec00",600:"#d1bb00",700:"#a68802",800:"#896a0a",900:"#74560f",950:"#442f04"}},semantic:{background:"#ffffff",surface:"#ffffff",surfaceMuted:"#f3f4f6",foreground:"#18181b",muted:"#71717a",border:"#d4d4d8"},typography:{fontFamily:"'Inter', sans-serif",fontSizes:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem"},fontWeights:{thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2}},spaces:{0:"0rem",1:"0.25rem",2:"0.5rem",3:"0.75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",13:"3.25rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",68:"17rem",72:"18rem",76:"19rem",80:"20rem",84:"21rem",88:"22rem",92:"23rem",96:"24rem"},sizes:{max:"max-content",min:"min-content",full:"100%"},radii:{0:"0px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",full:"9999px"},zIndeces:{0:0,1:10,2:20,3:30,4:40,5:50,6:60,7:70,8:80,9:90,10:100},shadows:{none:"none",sm:"0 1px 2px rgba(0, 0, 0, 0.05)",md:"0 4px 6px rgba(0, 0, 0, 0.1)",lg:"0 10px 15px rgba(0, 0, 0, 0.15)",xl:"0 20px 25px rgba(0, 0, 0, 0.2)","2xl":"0 25px 50px rgba(0, 0, 0, 0.25)"},breakpoints:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"}},Ge={semantic:{background:"#18181b",surface:"#27272a",surfaceMuted:"#3f3f46",foreground:"#fafafa",muted:"#a1a1aa",border:"#3f3f46"}};function je(e){if(e.includes(".")){let[t,r]=e.split(".");return`var(--plume-color-${t}-${r})`}return`var(--plume-color-${e}-500)`}function ke(e){let t=rr(e)?.groups;return e.startsWith("#")&&t?[parseInt(t.red,16),parseInt(t.green,16),parseInt(t.blue,16)]:tr(e)?.map(Number)||[]}function tr(e){return e.match(/\d+/g)}function rr(e){return/^#?(?<red>[a-f\d]{2})(?<green>[a-f\d]{2})(?<blue>[a-f\d]{2})$/i.exec(e)}function Ke(e){let t=ke(e);if(t.length<3)return"#000000";let[r,o,n]=t;return(r*299+o*587+n*114)/1e3>140?"#000000":"#ffffff"}function Dt(e){let t=ke(e);if(t.length<3)return 0;let[r,o,n]=t.map(a=>{let s=a/255;return s<=.03928?s/12.92:((s+.055)/1.055)**2.4});return .2126*r+.7152*o+.0722*n}function le(e,t){let r=Dt(e),o=Dt(t),[n,a]=r>=o?[r,o]:[o,r];return(n+.05)/(a+.05)}function Ee(e,t=10){let r=ke(e);return r.length<3?e:`rgb(${r.map(n=>Math.min(255,n+(255-n)*(t/100))).join(", ")})`}function _e(e,t=10){let r=ke(e);return r.length<3?e:`rgb(${r.map(n=>Math.max(0,n-n*t/100)).join(", ")})`}var R="--plume",he="#ffffff",We="#000000",Re=4.5,Ct=e=>le(he,e)>=le(We,e);function or(e){for(let r of["500","600","700"]){let o=String(e[r]);if(le(he,o)>=Re)return{bg:o,fg:he}}let t=String(e[500]);if(le(We,t)>=Re)return{bg:t,fg:We};for(let r of["800","900"]){let o=String(e[r]);if(le(he,o)>=Re)return{bg:o,fg:he}}return{bg:String(e[900]),fg:he}}function nr(e,t){let r=Ct(t[0]),o=r?["500","400","300","200","100","50"]:["500","600","700","800","900","950"];for(let n of o){let a=String(e[n]);if(t.every(s=>le(a,s)>=Re))return a}return String(e[r?"50":"950"])}function W(e,t,r){for(let[o,n]of Object.entries(t))r[`${e}-${o}`]=String(n)}var ar=e=>e.replace(/(?<lower>[a-z0-9])(?<upper>[A-Z])/g,"$<lower>-$<upper>").toLowerCase();function Ze(e){let t={},{background:r,surface:o,surfaceMuted:n}=e.semantic,a=[r,o,n],s=Ct(r),i=e.colors;for(let[d,p]of Object.entries(i)){W(`${R}-color-${d}`,p,t),t[`${R}-color-${d}-contrast`]=Ke(String(p[500]));let{bg:f,fg:v}=or(p);t[`${R}-color-${d}-solid`]=f,t[`${R}-color-${d}-solid-contrast`]=v,t[`${R}-color-${d}-solid-hover`]=_e(f,12),t[`${R}-color-${d}-solid-active`]=_e(f,24);let b=nr(p,a);t[`${R}-color-${d}-text`]=b,t[`${R}-color-${d}-text-hover`]=s?Ee(b,12):_e(b,12),t[`${R}-color-${d}-text-active`]=s?Ee(b,24):_e(b,24),t[`${R}-color-${d}-tint`]=String(p[s?"900":"100"]),t[`${R}-color-${d}-tint-strong`]=String(p[s?"800":"200"])}let l=e.semantic;for(let[d,p]of Object.entries(l))t[`${R}-${ar(d)}`]=p;return t[`${R}-font-family`]=e.typography.fontFamily,W(`${R}-font-size`,e.typography.fontSizes,t),W(`${R}-font-weight`,e.typography.fontWeights,t),W(`${R}-line-height`,e.typography.lineHeights,t),W(`${R}-space`,e.spaces,t),W(`${R}-size`,e.sizes,t),W(`${R}-radius`,e.radii,t),W(`${R}-z`,e.zIndeces,t),W(`${R}-shadow`,e.shadows,t),W(`${R}-breakpoint`,e.breakpoints,t),t}var N=require("react");function Ce(e,...t){function r(a){return a!==null&&typeof a=="object"&&!Array.isArray(a)}function o(a,s){if(!r(a)||!r(s))return s;let i={...a};for(let l of Object.keys(s))i[l]=l in a?o(a[l],s[l]):s[l];return i}let n=r(e)?{...e}:e;for(let a of t)a!==void 0&&(n=o(n,a));return n}var Xe=require("react/jsx-runtime"),Pt=(0,N.createContext)(null);function sr(){let e=(0,N.useContext)(Pt);if(!e)throw new Error("useTheme must be used within a <ThemeProvider>");return e}function lr({children:e,theme:t,darkTheme:r,defaultColorMode:o="light",applyToBody:n=!0,className:a="",style:s}){let i=(0,N.useMemo)(()=>Ce(Ue,t??{}),[t]),l=(0,N.useMemo)(()=>Ce(Ce(i,Ge),r??{}),[i,r]),[d,p]=(0,N.useState)(o),[f,v]=(0,N.useState)(o==="system"?"light":o);(0,N.useEffect)(()=>{if(d!=="system"){v(d);return}let y=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>v(y.matches?"dark":"light");return g(),y.addEventListener("change",g),()=>y.removeEventListener("change",g)},[d]);let b=f==="dark"?l:i,D=(0,N.useMemo)(()=>Ze(b),[b]);(0,N.useEffect)(()=>{if(!n||typeof document>"u")return;let{documentElement:y,body:g}=document,P=y.getAttribute("data-plume-color-mode"),k=g.style.backgroundColor,L=g.style.color;return y.setAttribute("data-plume-color-mode",f),g.style.backgroundColor=b.semantic.background,g.style.color=b.semantic.foreground,()=>{P===null?y.removeAttribute("data-plume-color-mode"):y.setAttribute("data-plume-color-mode",P),g.style.backgroundColor=k,g.style.color=L}},[n,f,b]);let T=(0,N.useMemo)(()=>({theme:b,colorMode:f,setColorMode:p}),[b,f]);return(0,Xe.jsx)(Pt.Provider,{value:T,children:(0,Xe.jsx)("div",{className:`plume-root ${a}`.trim(),"data-plume-color-mode":f,style:{...D,backgroundColor:"var(--plume-background)",color:"var(--plume-foreground)",...s},children:e})})}var Me=require("react");function Je({callback:e}){let t=(0,Me.useRef)(null);return(0,Me.useEffect)(()=>{function r(o){t.current&&!t.current.contains(o.target)&&e()}return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[t,e]),t}var Te=require("react");function Qe({value:e,delay:t}){let[r,o]=(0,Te.useState)(e),n=(0,Te.useRef)(null);return(0,Te.useEffect)(()=>(n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{o(e)},t),()=>{n.current&&clearTimeout(n.current)}),[e,t]),r}var xt=require("react"),St={"#":/^[0-9]$/,A:/^\p{L}$/u,"*":/^[\p{L}0-9]$/u};function ir(e){let t=[];for(let r=0;r<e.length;r+=1){let o=e[r];o==="\\"&&r+1<e.length?(r+=1,t.push({literal:e[r]})):o in St?t.push({slot:St[o]}):t.push({literal:o})}return t}function we(e,t){if(!t)return e;let r="",o="",n=0;for(let a of ir(t)){if(n>=e.length)break;if("literal"in a){o+=a.literal,e[n]===a.literal&&(n+=1);continue}for(;n<e.length&&!a.slot.test(e[n]);)n+=1;if(n>=e.length)break;r+=o+e[n],o="",n+=1}return r}function et({mask:e,value:t,defaultValue:r="",onChange:o}){let n=t!==void 0,[a,s]=(0,xt.useState)(()=>we(r,e??"")),i=l=>{if(e){let d=we(l.target.value,e);l.target.value=d,n||s(d)}o?.(l)};return e?{value:n?we(t,e):a,onChange:i}:{value:t,onChange:i}}function Le(e){if(e){if(e.length===2)return`${e}-${e.toUpperCase()}`}else return navigator.language;return e}function dr(e){let t={dd:"\\d{2}",mm:"\\d{2}",yyyy:"\\d{4}"},r=e.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/dd|mm|yyyy/g,o=>t[o]);return new RegExp(`^${r}$`)}function ge(e){let t=Le(e),o=new Intl.DateTimeFormat(t,{year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(new Date),n=o.map(i=>i.type),a={year:"yyyy",month:"MM",day:"dd"};return n.map((i,l)=>a[i]||o[l].value).join("").toLocaleLowerCase()}function tt(e){let t=Le(e),r=[],o=new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"});for(let n=0;n<7;n++){let a=new Date(Date.UTC(2024,0,1+n)),s=o.format(a).replace(/^\w/,i=>i.toUpperCase());r.push(s)}return r}function rt(e){let t=Le(e),r=new Intl.DateTimeFormat(t,{month:"long"});return Array.from({length:12},(o,n)=>{let a=new Date;return a.setMonth(n),r.format(a).replace(/^\w/,s=>s.toUpperCase())})}function Ae({displayFormat:e,isRange:t,startDate:r,endDate:o,language:n}){let a={year:"numeric",month:"2-digit",day:"2-digit"};if(e)return t&&r&&o?`${ie(r,e)} - ${ie(o,e)}`:r?ie(r,e):"";let s=Le(n);return t&&r&&o?`${new Intl.DateTimeFormat(s,a).format(r)} - ${new Intl.DateTimeFormat(s,a).format(o)}`:r?new Intl.DateTimeFormat(s,a).format(r):""}function ie(e,t){let r={yyyy:String(e.getFullYear()),mm:String(e.getMonth()+1).padStart(2,"0"),dd:String(e.getDate()).padStart(2,"0")};return t.replace(/yyyy|mm|dd/gi,o=>r[o.toLowerCase()])}function Pe(e,t,r){let o=r??ge(t);if(!dr(o).test(e))return!1;let n=de(e,o);return!Number.isNaN(n.getTime())&&ie(n,o)===e}function de(e,t="mm/dd/yyyy"){let r=t.toLowerCase(),o=n=>{let a=r.indexOf(n);return a===-1?Number.NaN:Number(e.slice(a,a+n.length))};return new Date(o("yyyy"),o("mm")-1,o("dd"))}var kt=require("react");function ot(e){return(0,kt.lazy)(()=>new Promise(t=>{t({default:()=>e})}))}var Mt=require("react");var Et=require("react");var nt={"spinner-border-width":"3px","spinner-border-style":"solid","primary-border-color":"currentColor","border-color":"transparent",spinner:"_spinner_q8rz1_7",spin:"_spin_q8rz1_7",sm:"_sm_q8rz1_18",md:"_md_q8rz1_23",lg:"_lg_q8rz1_28",solid:"_solid_q8rz1_33 _spinner_q8rz1_7",dashed:"_dashed_q8rz1_38 _spinner_q8rz1_7",dotted:"_dotted_q8rz1_43 _spinner_q8rz1_7",double:"_double_q8rz1_48 _spinner_q8rz1_7",loader:"_loader_q8rz1_63",l7:"_l7_q8rz1_1",l5:"_l5_q8rz1_1",l11:"_l11_q8rz1_1",l27:"_l27_q8rz1_1",animloader:"_animloader_q8rz1_1"};var Rt=require("react/jsx-runtime"),cr=({color:e,style:t,speed:r,thickness:o})=>({"--spinner-scheme":je(e),...o&&{"--spinner-border-width":`${o}px`},"--spinner-animation-duration":r?.length?r:"1s",...t??{}}),ye=(0,Et.forwardRef)(({color:e="secondary.900",style:t,speed:r,className:o="",thickness:n=3,variant:a="solid",size:s=a!=="unstyled"?"md":void 0,...i},l)=>{let d=s&&(s!=="md"||a==="unstyled")?nt[s]:"",p=a!=="unstyled"?nt[a]:"",f=`
2
+ ${d}
3
+ ${p}
4
+ ${o}
5
+ `.trim();return(0,Rt.jsx)("output",{"aria-label":"loading",className:f,ref:l,style:cr({color:e,style:t,speed:r,thickness:n}),...i})});ye.displayName="Spinner";var ee={button:"_button_1l5be_3",sm:"_sm_1l5be_18",md:"_md_1l5be_24",lg:"_lg_1l5be_29",rounded:"_rounded_1l5be_35",pill:"_pill_1l5be_39",solid:"_solid_1l5be_43 _button_1l5be_3",outline:"_outline_1l5be_49 _button_1l5be_3",ghost:"_ghost_1l5be_55 _button_1l5be_3",link:"_link_1l5be_60 _button_1l5be_3",icon:"_icon_1l5be_67 _button_1l5be_3",disabled:"_disabled_1l5be_111",iconMargin:"_iconMargin_1l5be_116",hidden:"_hidden_1l5be_120",spinnerMargin:"_spinnerMargin_1l5be_124"};var Z=require("react/jsx-runtime"),pr=(e,t,r,o,n,a)=>{let s=n?ee.iconMarginNone:ee.iconMargin,i=t&&!e?ee.hidden:s,l=t&&e?e:a;return(0,Z.jsxs)(Z.Fragment,{children:[r?(0,Z.jsx)("span",{className:s,children:r}):null,l?(0,Z.jsx)("span",{className:i,children:l}):null,o?(0,Z.jsx)("span",{className:s,children:o}):null]})},ur=(e,t,r,o,n,a)=>{let s=r||o?ee.disabled:"",i=e!=="unstyled"?ee[a]:"",l=e!=="unstyled"?ee[n]:"",d=e!=="unstyled"?ee[e]:"";return`${l} ${i} ${d}
6
+ ${s} ${t}`.trim()},mr=e=>({"--button-color":`var(--plume-color-${e}-text)`,"--button-contrast-color":`var(--plume-color-${e}-solid-contrast)`,"--button-solid-bg":`var(--plume-color-${e}-solid)`,"--button-solid-hover":`var(--plume-color-${e}-solid-hover)`,"--button-solid-active":`var(--plume-color-${e}-solid-active)`,"--button-hover-color":`var(--plume-color-${e}-text-hover)`,"--button-focus-color":`var(--plume-color-${e}-text-active)`,"--button-hover-alt-color":`var(--plume-color-${e}-tint)`,"--button-focus-alt-color":`var(--plume-color-${e}-tint-strong)`}),w=(0,Mt.forwardRef)(({children:e,iconLeft:t,iconRight:r,label:o,style:n,busyText:a="",className:s="",colorScheme:i="secondary",disabled:l=!1,isBusy:d=!1,shape:p="rounded",size:f="md",type:v="button",variant:b="solid",...D},T)=>{let y=ur(b,s,l,d,f,p);return(0,Z.jsxs)("button",{className:y,disabled:l||d,ref:T,style:{...mr(i),...n},type:v,...D,children:[pr(a,d,t,r,b==="unstyled",o),e,d?(0,Z.jsx)(ye,{style:{"--spinner-scheme":"var(--button-contrast-color)"},...a&&{className:ee.spinnerMargin},size:"sm"}):null]})});w.displayName="Button";var G=require("react");var Ne=require("react"),at=(0,Ne.createContext)(void 0),$e=()=>{let e=(0,Ne.useContext)(at);if(!e)throw new Error("useDatePicker must be used within a DatePickerProvider");return e};var Ie={startDate:null,endDate:null},wt=new Date(new Date().getFullYear(),new Date().getMonth()+1,1),st={value:Ie,tempValue:Ie,modalOpen:!1,year:new Date().getFullYear(),secondYear:wt.getFullYear(),month:new Date().getMonth(),secondMonth:wt.getMonth(),rangeDays:[]},lt=(e,t)=>{switch(t.type){case"SET_VALUE":{let{startDate:r,endDate:o}=t.payload,n=r?.getFullYear()??e.year,a=r?.getMonth()??e.month,s=o?.getFullYear()??e.secondYear,i=o&&(o.getMonth()>e.secondMonth||r&&r.getMonth()===11)?o.getMonth():e.secondMonth;return{...e,value:t.payload,tempValue:t.payload,year:n,month:a,secondYear:s,secondMonth:i}}case"TOGGLE_MODAL":return{...e,modalOpen:!e.modalOpen};case"CLOSE_MODAL":return e.modalOpen?{...e,modalOpen:!1}:e;case"SET_YEAR":return{...e,year:t.payload};case"SET_SECOND_YEAR":return{...e,secondYear:t.payload};case"SET_MONTH":return{...e,month:t.payload};case"SET_SECOND_MONTH":return{...e,secondMonth:t.payload};case"SET_RANGE_DAYS":return{...e,rangeDays:t.payload};default:return{...e,tempValue:t.payload}}};var te=require("react");var c={"date-picker-padding":"var(--plume-space-4)","date-picker-border-radius":"var(--plume-radius-4)","date-picker-color":"var(--plume-muted)","date-picker-border-color":"var(--plume-border)",datePicker:"_datePicker_87pta_8",datePickerInputText:"_datePickerInputText_87pta_12",inputButton:"_inputButton_87pta_28",inputButtonIcon:"_inputButtonIcon_87pta_40",sm:"_sm_87pta_46",md:"_md_87pta_52",lg:"_lg_87pta_57",rounded:"_rounded_87pta_81",outline:"_outline_87pta_85 _datePickerInputText_87pta_12",pill:"_pill_87pta_85",filled:"_filled_87pta_94 _datePickerInputText_87pta_12",underline:"_underline_87pta_102 _datePickerInputText_87pta_12",invalid:"_invalid_87pta_112",datePickerModal:"_datePickerModal_87pta_136",calendarContainer:"_calendarContainer_87pta_151",calendarContainerDouble:"_calendarContainerDouble_87pta_156",calendar:"_calendar_87pta_151",calendarHeader:"_calendarHeader_87pta_166",day:"_day_87pta_173",year:"_year_87pta_174",month:"_month_87pta_175",monthYearSelectors:"_monthYearSelectors_87pta_176",monthSelector:"_monthSelector_87pta_213",yearSelector:"_yearSelector_87pta_214",yearSelectorGrid:"_yearSelectorGrid_87pta_218",selected:"_selected_87pta_232",monthSelectorGrid:"_monthSelectorGrid_87pta_242",daysOfWeek:"_daysOfWeek_87pta_248",dayOfWeek:"_dayOfWeek_87pta_255",calendarGrid:"_calendarGrid_87pta_264",today:"_today_87pta_281",rangeItem:"_rangeItem_87pta_285",selectedHover:"_selectedHover_87pta_295",hovered:"_hovered_87pta_300",disabledDay:"_disabledDay_87pta_304",outOfRangeDay:"_outOfRangeDay_87pta_309",footerActions:"_footerActions_87pta_313",footerButton:"_footerButton_87pta_320",footerButtonApply:"_footerButtonApply_87pta_324",disabled:"_disabled_87pta_304"};var h=require("react/jsx-runtime"),it="yyyy-mm-dd",ve=(e,t)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()+t),Lt=(e,t)=>{let r=new Date(e.getFullYear(),e.getMonth()+t+1,0).getDate();return new Date(e.getFullYear(),e.getMonth()+t,Math.min(e.getDate(),r))},dt=e=>(e.getDay()+6)%7,fr={ArrowLeft:e=>ve(e,-1),ArrowRight:e=>ve(e,1),ArrowUp:e=>ve(e,-7),ArrowDown:e=>ve(e,7),Home:e=>ve(e,-dt(e)),End:e=>ve(e,6-dt(e)),PageUp:e=>Lt(e,-1),PageDown:e=>Lt(e,1)},Oe=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();function br({day:e}){return(0,h.jsx)("span",{className:c.dayOfWeek,children:e})}function gr({selectedMonth:e,months:t,onChange:r}){let o=n=>{r(n)};return(0,h.jsx)("div",{className:c.monthSelectorGrid,children:t.map((n,a)=>(0,h.jsx)(w,{"aria-pressed":a===e,className:`${a===e?c.selected:""} ${c.month}`,label:n,onClick:()=>{o(a)},variant:"unstyled"},n))})}function yr({selectedYear:e,startYear:t,onChange:r}){let o=a=>{r(a)},n=()=>{let a=[];for(let s=t;s<t+20;s++)a.push((0,h.jsx)(w,{"aria-pressed":e===s,className:`${e===s?c.selected:""} ${c.year}`,onClick:()=>{o(s)},variant:"unstyled",children:s},s));return a};return(0,h.jsx)("div",{className:c.yearSelectorGrid,children:n()})}function ct({language:e,isRange:t,isSecondCalendar:r,minDate:o,maxDate:n,onMonthChange:a,onSelectDate:s,onYearChange:i}){let{state:l}=$e(),[d,p]=(0,te.useState)("day"),[f,v]=(0,te.useState)(r?l.secondYear:l.year),[b,D]=(0,te.useState)(null),T=(0,te.useRef)(!1),y=(0,te.useRef)(null),g=r?l.secondYear:l.year,P=r?l.secondMonth:l.month,k=Ye(),L=rt(e);(0,te.useEffect)(()=>{!T.current||!b||(T.current=!1,y.current?.querySelector(`[data-date="${ie(b,it)}"]:enabled`)?.focus())});let u=M=>{let Q=y.current?.closest('[role="dialog"]')??document,O=Q.querySelectorAll(`.${c.day}:enabled`),H=Array.from(O).findIndex(z=>z.dataset.date===M),K=Q.querySelector(`.${c.day}.${c.selected}`),B=t&&l.tempValue.startDate&&!l.tempValue.endDate&&K;O.forEach((z,se)=>{let be=z.classList.contains(c.selected),S=se===H;if(B){let E=Array.from(O).indexOf(K),[V,U]=[Math.min(E,H),Math.max(E,H)];z.classList.toggle(c.rangeItem,se>=V&&se<=U),z.classList.toggle(c.selectedHover,S)}else z.classList.toggle(c.selectedHover,be&&S),z.classList.toggle(c.hovered,!be&&S)})},_=()=>d==="month"?(0,h.jsx)(gr,{months:L,onChange:q,selectedMonth:r?l.secondMonth:l.month}):d==="year"?(0,h.jsx)(yr,{onChange:C,selectedYear:r?l.secondYear:l.year,startYear:f}):(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:c.daysOfWeek,children:tt(e).map(M=>(0,h.jsx)(br,{day:M},M))}),(0,h.jsx)("div",{className:c.calendarGrid,children:k})]}),q=M=>{a(M),p("day")},C=M=>{i(M),p("day")},j=M=>{p(d!=="day"&&d===M?"day":M)},ae=()=>{v(f-20)},Ve=()=>{v(f+20)};function Ye(){let M=dt(new Date(g,P,1)),Q=o?Oe(o):-1/0,O=n?Oe(n):1/0,H=new Date().toDateString(),K=new Intl.DateTimeFormat(e,{dateStyle:"full"}),B=(S,E)=>S?.toDateString()===E.toDateString(),z=Array.from({length:42},(S,E)=>{let V=new Date(g,P,E-M+1),U=V.getMonth()===P,m=!U||V.getTime()<Q||V.getTime()>O;return{date:V,isCurrentMonth:U,isDisabled:m}}),se=z.filter(({isDisabled:S})=>!S).map(({date:S})=>S),be=[b,l.tempValue.startDate,new Date].map(S=>se.find(E=>B(S,E))).find(Boolean)??se[0];return z.map(({date:S,isCurrentMonth:E,isDisabled:V})=>{let U=ie(S,it),m=E&&B(l.tempValue.startDate,S),x=E&&B(l.tempValue.endDate,S),$=m||x,A=l.rangeDays.some(jt=>B(jt,S)),ht=E&&S.toDateString()===H;return(0,h.jsx)(w,{"aria-current":ht?"date":void 0,"aria-hidden":E?void 0:!0,"aria-label":K.format(S),"aria-pressed":E?$:void 0,className:`${c.day} ${E?"":c.disabledDay} ${$?c.selected:""} ${A&&!$&&E?c.rangeItem:""} ${E&&V?c.outOfRangeDay:""} ${ht?c.today:""}`,"data-date":U,disabled:V,onClick:()=>{E&&s(S.getDate(),r)},onFocus:()=>{E&&u(U)},onKeyDown:qe,onMouseEnter:()=>{E&&u(U)},tabIndex:be&&B(be,S)?0:-1,variant:"unstyled",children:(0,h.jsx)("span",{className:c.dayText,children:S.getDate()})},U)})}function qe(M){let Q=M.currentTarget.dataset.date,O=fr[M.key];if(!Q||!O)return;M.preventDefault();let H=O(de(Q,it)),K=H.getTime();if(o&&K<Oe(o)||n&&K>Oe(n))return;let B=(H.getFullYear()-g)*12+H.getMonth()-P;B!==0&&a(P+B),T.current=!0,D(H)}return(0,h.jsxs)("div",{className:c.calendar,ref:y,children:[(0,h.jsx)("div",{className:c.calendarHeader,children:(0,h.jsxs)("div",{className:c.monthYearSelectors,children:[d!=="year"?(0,h.jsx)(w,{"aria-label":"Previous month",onClick:()=>{a((r?l.secondMonth:l.month)-1)},variant:"icon",children:(0,h.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"})})}):(0,h.jsx)(w,{"aria-label":"Previous years",onClick:ae,variant:"icon",children:(0,h.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M205.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L131.31,128ZM51.31,128l74.35-74.34a8,8,0,0,0-11.32-11.32l-80,80a8,8,0,0,0,0,11.32l80,80a8,8,0,0,0,11.32-11.32Z"})})}),(0,h.jsx)(w,{className:c.monthSelector,label:L[r?l.secondMonth:l.month],onClick:()=>{j("month")},variant:"unstyled"}),(0,h.jsx)("strong",{children:"/"}),(0,h.jsx)(w,{className:c.yearSelector,label:`${r?l.secondYear:l.year}`,onClick:()=>{j("year")},variant:"unstyled"}),d!=="year"?(0,h.jsx)(w,{"aria-label":"Next month",onClick:()=>{a((r?l.secondMonth:l.month)+1)},variant:"icon",children:(0,h.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"})})}):(0,h.jsx)(w,{"aria-label":"Next years",onClick:Ve,variant:"icon",children:(0,h.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",height:"16",stroke:"currentColor",strokeWidth:"10",viewBox:"0 0 256 256",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,h.jsx)("path",{d:"M141.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L124.69,128,50.34,53.66A8,8,0,0,1,61.66,42.34l80,80A8,8,0,0,1,141.66,133.66Zm80-11.32-80-80a8,8,0,0,0-11.32,11.32L204.69,128l-74.35,74.34a8,8,0,0,0,11.32,11.32l80-80A8,8,0,0,0,221.66,122.34Z"})})})]})}),_()]})}var X=require("react");var At=require("react");var Y={"input-padding":"var(--plume-space-4)","input-border-radius":"var(--plume-radius-4)","input-color":"var(--plume-foreground)","input-border-color":"var(--plume-border)","input-background-color":"var(--plume-surface-muted)",base:"_base_h3ylb_9",input:"_input_h3ylb_16",sm:"_sm_h3ylb_32",md:"_md_h3ylb_38",lg:"_lg_h3ylb_43",rounded:"_rounded_h3ylb_49",outline:"_outline_h3ylb_53 _input_h3ylb_16",pill:"_pill_h3ylb_53",filled:"_filled_h3ylb_62 _input_h3ylb_16",underline:"_underline_h3ylb_70 _input_h3ylb_16",invalid:"_invalid_h3ylb_80",inputGroup:"_inputGroup_h3ylb_89",disabled:"_disabled_h3ylb_101",addOn:"_addOn_h3ylb_120",element:"_element_h3ylb_176"};var re=require("react/jsx-runtime"),_r=(e,t,r,o,n,a,s)=>{let i=t?Y.disabled:"",l=r&&o?Y.invalid:"",d=o?Y[n]:"",p=o?Y[a]:"",f=o?Y[s]:"";return`${Y.base} ${p} ${d} ${f}
7
+ ${i} ${l} ${e}`.trim()},hr=e=>({"--input-color":`var(--plume-color-${e}-text)`}),Se=(0,At.forwardRef)(({addonBefore:e,addonAfter:t,elementBefore:r,elementAfter:o,style:n,className:a="",colorScheme:s="secondary",disabled:i=!1,readOnly:l=!1,shape:d="rounded",size:p="md",type:f="text",variant:v="outline",mask:b,value:D,defaultValue:T,onChange:y,...g},P)=>{let k=v!=="unstyled",L=g["aria-invalid"]===!0||g["aria-invalid"]==="true",u=_r(a,i,L,k,d,p,v),_={...hr(L?"error":s),...n},q=e||t||r||o,{value:C,onChange:j}=et({mask:b,value:typeof D=="string"?D:void 0,defaultValue:typeof T=="string"?T:void 0,onChange:y}),ae={onChange:j,value:b?C:D,defaultValue:b?void 0:T};return q?(0,re.jsxs)("div",{className:k?Y.inputGroup:"",style:_,children:[e?(0,re.jsx)("span",{className:k?Y.addOn:"",children:e}):null,r?(0,re.jsx)("span",{className:k?Y.element:"",children:r}):null,(0,re.jsx)("input",{className:u,disabled:i,readOnly:l,ref:P,type:f,...ae,...g}),t?(0,re.jsx)("span",{className:k?Y.addOn:"",children:t}):null,o?(0,re.jsx)("span",{className:k?Y.element:"",children:o}):null]}):(0,re.jsx)("input",{className:u,disabled:i,readOnly:l,ref:P,style:_,type:f,...ae,...g})});Se.displayName="Input";var oe=require("react/jsx-runtime");function Nt({disabled:e,displayFormat:t,inputRef:r,isRange:o,language:n,onClick:a,onBlur:s,readOnly:i,...l}){let{state:{modalOpen:d,value:{startDate:p,endDate:f}},dispatch:v}=$e(),[b,D]=(0,X.useState)(Ae({displayFormat:t,isRange:o,...p&&{startDate:p},...f&&{endDate:f},language:n})),[T,y]=(0,X.useState)(!0),g=Qe({value:b,delay:500}),P=(0,X.useRef)(null),k=(0,X.useCallback)(C=>{P.current=C,typeof r=="function"?r(C):r&&(r.current=C)},[r]);(0,X.useEffect)(()=>{if(![10,23].includes(g.length)||T)return;let C=t??ge(n);if(g.length===10&&!o&&Pe(g,n,t)){let j=de(g,C);v({type:"SET_VALUE",payload:{startDate:j,endDate:null}})}else if(g.length===23&&Pe(g.split(" - ")[0],n,t)&&Pe(g.split(" - ")[1],n,t)){let[j,ae]=g.split(" - ");v({type:"SET_VALUE",payload:{startDate:de(j,C),endDate:de(ae,C)}})}},[g,v,t,T,o,n]),(0,X.useEffect)(()=>{D(Ae({displayFormat:t,isRange:o,...p&&{startDate:p},...f&&{endDate:f},language:n}))},[p,f,t,o,n]);let L=()=>{y(!0),P.current?.focus(),a()},u=C=>{y(!1),D(C.target.value)},_=(t??ge(n)).replace(/[a-zA-Z]/g,"#"),q=o?`${_} - ${_}`:_;return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(Se,{disabled:e,inputMode:"numeric",mask:q,onBlur:()=>{s?.({startDate:p,endDate:f})},onChange:u,readOnly:i,ref:k,type:"text",value:b,variant:"unstyled",...l}),(0,oe.jsx)(w,{"aria-expanded":d,"aria-haspopup":"dialog","aria-label":"Open calendar",className:c.inputButton,disabled:e||i,onClick:L,shape:"pill",variant:"icon",children:(0,oe.jsx)("svg",{className:c.inputButtonIcon,viewBox:"0 -960 960 960",xmlns:"http://www.w3.org/2000/svg",children:(0,oe.jsx)("path",{d:"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Z"})})})]})}var F=require("react/jsx-runtime"),Tr="en",$t={apply:"Apply",cancel:"Cancel"},vr=(e,t)=>({"--datepicker-scheme":`var(--plume-color-${e}-text)`,"--datepicker-solid":`var(--plume-color-${e}-solid)`,"--datepicker-contrast":`var(--plume-color-${e}-solid-contrast)`,"--datepicker-range-item-color":`var(--plume-color-${e}-200)`,"--datepicker-range-item-text":`var(--plume-color-${e}-900)`,"--datepicker-hover-color":`var(--plume-color-${e}-100)`,"--datepicker-selected-hover-color":`var(--plume-color-${e}-solid-hover)`,...t??{}});function Dr({colorScheme:e,labels:{cancel:t,apply:r},onApply:o,onCancel:n}){return(0,F.jsxs)("div",{className:c.footerActions,children:[(0,F.jsx)(w,{className:c.footerButton,label:t,onClick:n,variant:"ghost"}),(0,F.jsx)(w,{className:c.footerButtonApply,colorScheme:e,label:r,onClick:o})]})}var Cr=(e,t,r,o,n,a)=>{let s=a&&(a!=="md"||o==="unstyled")?c[a]:"",i=n&&(n!=="rounded"||o==="unstyled")?c[n]:"",l=o!=="unstyled"?c[o]:"",d=t?c.disabled:"",p=r&&o!=="unstyled"?c.invalid:"";return`${s} ${i} ${l}
8
+ ${d} ${p} ${e}`.trim()},pt=(0,G.forwardRef)(({onChange:e,onBlur:t,inputRef:r,displayFormat:o,style:n,showFooter:a,minDate:s,maxDate:i,placeholder:l,value:d,disabled:p=!1,className:f="",colorScheme:v="secondary",variant:b="outline",config:D,isCalendar:T=!1,isRange:y=!1,...g},P)=>{let k=D?.language??Tr,L={apply:D?.footer?.apply??$t.apply,cancel:D?.footer?.cancel??$t.cancel},[u,_]=(0,G.useReducer)(lt,d,m=>m?lt(st,{type:"SET_VALUE",payload:m}):st),q=(0,G.useRef)(!0),C=Je({callback:()=>{_({type:"CLOSE_MODAL"})}}),j=m=>{C.current=m,typeof P=="function"?P(m):P&&(P.current=m)},{size:ae=b!=="unstyled"?"md":void 0,shape:Ve=b!=="unstyled"?"rounded":void 0}=g,Ye=Cr(f,p,g["aria-invalid"]===!0||g["aria-invalid"]==="true",b,Ve,ae);(0,G.useEffect)(()=>{if(u.modalOpen)if(y&&u.tempValue.startDate&&u.tempValue.endDate){let m=[],x=new Date(u.tempValue.startDate);for(;x<=u.tempValue.endDate;)m.push(new Date(x)),x.setDate(x.getDate()+1);_({type:"SET_RANGE_DAYS",payload:m})}else _({type:"SET_RANGE_DAYS",payload:[]})},[y,u.tempValue,u.modalOpen]),(0,G.useEffect)(()=>{if(q.current){q.current=!1;return}_({type:"SET_VALUE",payload:d??Ie})},[d]),(0,G.useEffect)(()=>{u.modalOpen&&C.current?.querySelector('[role="dialog"] [data-date][tabindex="0"]')?.focus()},[u.modalOpen,C]);let qe=()=>{_({type:"TOGGLE_MODAL"})},M=()=>{T||(_({type:"CLOSE_MODAL"}),C.current?.querySelector("input")?.focus())};(0,G.useEffect)(()=>{if(!u.modalOpen||T)return;let m=x=>{x.key!=="Escape"||!C.current?.contains(x.target)||(_({type:"CLOSE_MODAL"}),C.current.querySelector("input")?.focus())};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[u.modalOpen,T,C]);let Q=m=>{let x=m.relatedTarget;x&&!m.currentTarget.contains(x)&&_({type:"CLOSE_MODAL"})},O=(m,x)=>m*12+x,H=(m,x)=>{_({type:"SET_YEAR",payload:Math.floor(m/12)}),_({type:"SET_MONTH",payload:m%12}),_({type:"SET_SECOND_YEAR",payload:Math.floor(x/12)}),_({type:"SET_SECOND_MONTH",payload:x%12})},K=(m,x)=>{let $=O(m,x);H($,Math.max(O(u.secondYear,u.secondMonth),$+1))},B=(m,x)=>{let $=O(m,x);H(Math.min(O(u.year,u.month),$-1),$)},z=m=>{K(m,u.month)},se=m=>{K(u.year,m)},be=m=>{B(m,u.secondMonth)},S=m=>{B(u.secondYear,m)},E=()=>{_({type:"SET_VALUE",payload:u.tempValue}),u.tempValue.startDate&&e({startDate:u.tempValue.startDate,endDate:u.tempValue.endDate}),M()},V=(m,x)=>{let $=new Date(x?u.secondYear:u.year,x?u.secondMonth:u.month,m),A={...u.tempValue};a||!y||!A.startDate||A.endDate?(A.startDate=$,A.endDate=null):$<A.startDate?(A.endDate=A.startDate,A.startDate=$):A.endDate=$,_({type:"SET_TEMP_VALUE",payload:A}),!a&&(!y||A.endDate)&&(e({startDate:A.startDate,endDate:A.endDate}),_({type:"SET_VALUE",payload:A}),M())},U=()=>{let m=o??ge(k);return y?`${m} - ${m}`:m};return(0,F.jsx)(at.Provider,{value:{state:u,dispatch:_},children:(0,F.jsxs)("div",{className:c.datePicker,onBlur:Q,ref:j,style:vr(v,n),children:[!T&&(0,F.jsx)(Nt,{className:Ye,disabled:p,displayFormat:o,inputRef:r,isRange:y,language:k,onBlur:t,onClick:qe,placeholder:l??U(),...g}),T||u.modalOpen?(0,F.jsxs)("div",{"aria-label":"Calendar",className:c.datePickerModal,role:"dialog",children:[(0,F.jsxs)("div",{className:y?c.calendarContainerDouble:c.calendarContainer,children:[(0,F.jsx)(ct,{isRange:y,language:k,maxDate:i,minDate:s,onMonthChange:se,onSelectDate:V,onYearChange:z}),y?(0,F.jsx)(ct,{isRange:y,isSecondCalendar:!0,language:k,maxDate:i,minDate:s,onMonthChange:S,onSelectDate:V,onYearChange:be}):null]}),a?(0,F.jsx)(Dr,{colorScheme:v,labels:L,onApply:E,onCancel:M}):null]}):null]})})});pt.displayName="DatePicker";var Ot=vt(require("react")),pe=require("react");var ne={field:"_field_wdljj_3",vertical:"_vertical_wdljj_10 _field_wdljj_3",horizontal:"_horizontal_wdljj_14 _field_wdljj_3",label:"_label_wdljj_22",requiredIndicator:"_requiredIndicator_wdljj_32",optionalText:"_optionalText_wdljj_37",helperText:"_helperText_wdljj_43",errorText:"_errorText_wdljj_44",disabled:"_disabled_wdljj_58"};var ce=require("react/jsx-runtime"),Pr=0,It=Ot.useId;function Sr(){let e=It?It():void 0,[t]=(0,pe.useState)(()=>`plume-field-${++Pr}`);return e??t}var ut=(0,pe.forwardRef)(({children:e,className:t="",disabled:r=!1,errorText:o,helperText:n,invalid:a=!!o,label:s,optionalText:i,orientation:l="vertical",readOnly:d=!1,required:p=!1,style:f},v)=>{let b=Sr(),D=pe.Children.only(e),T=D.props,y=T.id??`${b}-control`,g=`${b}-helper`,P=`${b}-error`,k=a&&!!o,L=[T["aria-describedby"],k?P:null,n?g:null].filter(Boolean).join(" ")||void 0,u=`${ne.field} ${ne[l]} ${r?ne.disabled:""} ${t}`.trim();return(0,ce.jsxs)("div",{className:u,ref:v,style:f,children:[s?(0,ce.jsxs)("label",{className:ne.label,htmlFor:y,children:[s,p?(0,ce.jsx)("span",{"aria-hidden":"true",className:ne.requiredIndicator,children:"*"}):null,!p&&i?(0,ce.jsx)("span",{className:ne.optionalText,children:i}):null]}):null,(0,pe.cloneElement)(D,{id:y,"aria-describedby":L,"aria-invalid":a||T["aria-invalid"]||void 0,disabled:r||T.disabled,readOnly:d||T.readOnly,required:p||T.required}),n?(0,ce.jsx)("p",{className:ne.helperText,id:g,children:n}):null,k?(0,ce.jsx)("p",{className:ne.errorText,id:P,children:o}):null]})});ut.displayName="Field";var Vt=vt(require("react")),Fe=require("react");var J=require("react");var Ht=(e,{type:t,payload:r})=>{switch(t){case"SET_ACTIVE_TAB_INDEX":return{...e,index:r};case"SET_CONFIG":return{...e,...r};default:return e}};var I={"tabs-padding":"var(--plume-space-2) var(--plume-space-3)","tabs-border-width":"2px","tabs-border-radius":"var(--plume-radius-4)",tabs:"_tabs_1ct2b_6",horizontal:"_horizontal_1ct2b_11",vertical:"_vertical_1ct2b_15",left:"_left_1ct2b_19",center:"_center_1ct2b_23",right:"_right_1ct2b_27",sm:"_sm_1ct2b_31",md:"_md_1ct2b_36",lg:"_lg_1ct2b_40",underline:"_underline_1ct2b_45",tablist:"_tablist_1ct2b_55",tab:"_tab_1ct2b_6",rounded:"_rounded_1ct2b_82",segment:"_segment_1ct2b_82",active:"_active_1ct2b_97",enclosed:"_enclosed_1ct2b_115",panel:"_panel_1ct2b_174"};var zt=require("react/jsx-runtime"),Bt=(0,J.createContext)(void 0);function Ft({config:e,children:t}){let[r,o]=(0,J.useReducer)(Ht,e),n=r.alignment!=="left"||r.isStyled?I[r.alignment]:"",a=r.isStyled?I[r.size]:"",s=r.isStyled?I[r.variant]:"";(0,J.useEffect)(()=>{o({type:"SET_CONFIG",payload:e})},[e.alignment,e.baseId,e.colorScheme,e.index,e.isLazy,e.orientation,e.size,e.variant]);let i=l=>{o({type:"SET_ACTIVE_TAB_INDEX",payload:l})};return(0,zt.jsx)(Bt.Provider,{value:(0,J.useMemo)(()=>({...r,alignmentClass:n,sizeClass:a,variantClass:s,setActiveTabIndex:i}),[n,a,r,s]),children:t})}var He=(e,t)=>`${e}-tab-${t}`,Be=(e,t)=>`${e}-panel-${t}`,ue=()=>{let e=(0,J.useContext)(Bt);if(!e)throw new Error("useTabs must be used within a TabsProvider");return e};var mt=require("react/jsx-runtime"),xr=(e,t)=>({"--tabs-scheme":`var(--plume-color-${e}-text)`,"--tabs-solid":`var(--plume-color-${e}-solid)`,"--tabs-solid-active":`var(--plume-color-${e}-solid-active)`,"--tabs-text-color":`var(--plume-color-${e}-solid-contrast)`,...t??{}}),kr=0,Er=Vt.useId??(()=>{});function Rr(e){let t=Er(),[r]=(0,Fe.useState)(()=>`plume-tabs-${++kr}`);return e??t??r}var ft=(0,Fe.forwardRef)(({children:e,style:t,onChange:r,index:o=0,alignment:n="left",className:a="",colorScheme:s="secondary",orientation:i="horizontal",size:l="md",variant:d="underline",isLazy:p=!1,...f},v)=>{let b=Rr(f.id),D=d!=="unstyled",T=`${i!=="horizontal"||D?I[i]:""} ${D?I.tabs:""} ${a}`.trim();return(0,mt.jsx)(Ft,{config:{index:o,alignment:n,baseId:b,colorScheme:s,isLazy:p,isStyled:D,orientation:i,size:l,variant:d,onChange:r},children:(0,mt.jsx)("div",{className:T,ref:v,style:xr(s,t),...f,children:e})})});ft.displayName="Tabs";var me=require("react");var Yt=require("react/jsx-runtime"),bt=(0,me.forwardRef)(({children:e,...t},r)=>{let{index:o,alignmentClass:n,isStyled:a,orientation:s,variantClass:i}=ue();return(0,Yt.jsx)("div",{"aria-orientation":s,className:`${a?I.tablist:""} ${i} ${n}`.trim(),ref:r,role:"tablist",...t,children:me.Children.map(e,(l,d)=>(0,me.isValidElement)(l)?(0,me.cloneElement)(l,{index:d,isActive:d===o}):l)})});bt.displayName="TabList";var qt=require("react");var Ut=require("react/jsx-runtime"),gt=(0,qt.forwardRef)(({label:e,isActive:t,disabled:r,extraContentLeft:o,extraContentRight:n,index:a=0,children:s,className:i=""},l)=>{let{alignmentClass:d,baseId:p,isStyled:f,orientation:v,sizeClass:b,setActiveTabIndex:D,onChange:T}=ue(),[y,g]=v==="vertical"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],P=()=>{T&&T(a),D(a)},k=L=>{let u=L.currentTarget.closest('[role="tablist"]');if(!u)return;let _=Array.from(u.querySelectorAll('[role="tab"]:enabled')),q=_.indexOf(L.currentTarget),C={[y]:_[(q-1+_.length)%_.length],[g]:_[(q+1)%_.length],Home:_[0],End:_[_.length-1]}[L.key];C&&(L.preventDefault(),C.focus(),C.click())};return(0,Ut.jsx)(w,{"aria-controls":t?Be(p,a):void 0,"aria-selected":!!t,className:`${f?I.tab:""} ${d} ${b} ${t&&f?I.active:""} ${i}`.trim(),disabled:r,iconLeft:o,iconRight:n,id:He(p,a),label:e??"",onClick:P,onKeyDown:k,ref:l,role:"tab",tabIndex:t?0:-1,variant:"unstyled",children:s})});gt.displayName="Tab";var fe=require("react");var Gt=require("react/jsx-runtime"),yt=(0,fe.forwardRef)(({children:e,...t},r)=>{let{index:o}=ue();return(0,Gt.jsx)("div",{ref:r,...t,children:fe.Children.map(e,(n,a)=>a!==o?null:(0,fe.isValidElement)(n)?(0,fe.cloneElement)(n,{index:a}):n)})});yt.displayName="TabPanels";var De=require("react");var ze=require("react/jsx-runtime"),_t=(0,De.forwardRef)(({children:e,className:t="",index:r=0},o)=>{let{baseId:n,colorScheme:a,isLazy:s,isStyled:i}=ue(),l=s?ot(e):e;return(0,ze.jsx)("div",{"aria-labelledby":He(n,r),className:`${i?I.panel:""} ${t}`.trim(),id:Be(n,r),ref:o,role:"tabpanel",tabIndex:0,children:s?(0,ze.jsx)(De.Suspense,{fallback:(0,ze.jsx)(ye,{color:a}),children:(0,De.createElement)(l)}):l})});_t.displayName="TabPanel";0&&(module.exports={Button,DatePicker,Field,Input,Spinner,Tab,TabList,TabPanel,TabPanels,Tabs,ThemeProvider,applyMask,colorVar,deepMerge,defaultDarkTheme,defaultTheme,formatDate,getContrastColor,getContrastRatio,getDarkenColor,getDateFormatByLanguage,getDateFromDateString,getDateStringByLanguage,getDaysOfWeekByLanguage,getLightenColor,getMonthsByLanguage,lazyLoadContent,themeToCssVars,useClickOutside,useDebounce,useMask,useTheme,validateFormatDate});
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export{a as DatePicker}from'./chunk-V5DKNP76.mjs';export{a as Field}from'./chunk-A72ZRKNC.mjs';export{a as Input}from'./chunk-PNXPX444.mjs';export{c as Tab,b as TabList,e as TabPanel,d as TabPanels,a as Tabs}from'./chunk-PEVXLYX3.mjs';export{a as Button}from'./chunk-NNP2MCGD.mjs';export{a as Spinner}from'./chunk-TQ7ENVY5.mjs';export{a as useClickOutside}from'./chunk-D237D3H5.mjs';export{a as useDebounce}from'./chunk-NFXMVNGX.mjs';export{a as applyMask,b as useMask}from'./chunk-ZN4UC4TJ.mjs';export{f as ThemeProvider,c as colorVar,b as defaultDarkTheme,a as defaultTheme,d as themeToCssVars,e as useTheme}from'./chunk-6RTAEXNN.mjs';export{a as deepMerge}from'./chunk-WM4KUIPD.mjs';export{a as getContrastColor,b as getContrastRatio,d as getDarkenColor,c as getLightenColor}from'./chunk-AOJBMSYA.mjs';export{e as formatDate,a as getDateFormatByLanguage,g as getDateFromDateString,d as getDateStringByLanguage,b as getDaysOfWeekByLanguage,c as getMonthsByLanguage,f as validateFormatDate}from'./chunk-BOTD5R53.mjs';export{a as lazyLoadContent}from'./chunk-QON6DQTA.mjs';
@@ -0,0 +1 @@
1
+ ._spinner_q8rz1_7{animation:_spin_q8rz1_7 var(--spinner-animation-duration) linear infinite;border-color:var(--spinner-scheme, currentColor);border-radius:50%;border-top-color:transparent;border-width:var(--spinner-border-width, 3px);display:inline-block;width:var(--plume-space-8);height:var(--plume-space-8)}._sm_q8rz1_18{width:var(--plume-space-4);height:var(--plume-space-4)}._md_q8rz1_23{width:var(--plume-space-8);height:var(--plume-space-8)}._lg_q8rz1_28{width:var(--plume-space-12);height:var(--plume-space-12)}._solid_q8rz1_33{border-style:solid}._dashed_q8rz1_38{border-style:dashed}._dotted_q8rz1_43{border-style:dotted}._double_q8rz1_48{border-style:double}@keyframes _spin_q8rz1_7{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._loader_q8rz1_63{width:45px;aspect-ratio:.75;--c: no-repeat linear-gradient(#000 0 0);background:var(--c) 0% 50%,var(--c) 50% 50%,var(--c) 100% 50%;animation:_l7_q8rz1_1 1s infinite linear alternate}@keyframes _l7_q8rz1_1{0%{background-size:20% 50%,20% 50%,20% 50%}20%{background-size:20% 20%,20% 50%,20% 50%}40%{background-size:20% 100%,20% 20%,20% 50%}60%{background-size:20% 50%,20% 100%,20% 20%}80%{background-size:20% 50%,20% 50%,20% 100%}to{background-size:20% 50%,20% 50%,20% 50%}}._loader_q8rz1_63{width:15px;aspect-ratio:1;border-radius:50%;animation:_l5_q8rz1_1 1s infinite linear alternate}@keyframes _l5_q8rz1_1{0%{box-shadow:20px 0 #000,-20px 0 #0002;background:#000}33%{box-shadow:20px 0 #000,-20px 0 #0002;background:#0002}66%{box-shadow:20px 0 #0002,-20px 0 #000;background:#0002}to{box-shadow:20px 0 #0002,-20px 0 #000;background:#000}}._loader_q8rz1_63{display:inline-grid;padding:5px;background:#fff;filter:blur(4px) contrast(12)}._loader_q8rz1_63:before{content:"";height:40px;aspect-ratio:3;--c: #0000 64%, #000 66% 98%, #0000 101%;background:radial-gradient(35% 146% at 50% 159%,var(--c)) 0 0,radial-gradient(35% 146% at 50% -59%,var(--c)) 100% 100%;background-size:calc(200% / 3) 50%;background-repeat:repeat-x;animation:_l11_q8rz1_1 .8s infinite linear}@keyframes _l11_q8rz1_1{to{background-position:-200% 0,-100% 100%}}._loader_q8rz1_63{--d: 22px;width:4px;height:4px;border-radius:50%;color:#25b09b;box-shadow:calc(1 * var(--d)) calc(0 * var(--d)) 0 0,calc(.707 * var(--d)) calc(.707 * var(--d)) 0 1px,calc(0 * var(--d)) calc(1 * var(--d)) 0 2px,calc(-.707 * var(--d)) calc(.707 * var(--d)) 0 3px,calc(-1 * var(--d)) calc(0 * var(--d)) 0 4px,calc(-.707 * var(--d)) calc(-.707 * var(--d)) 0 5px,calc(0 * var(--d)) calc(-1 * var(--d)) 0 6px;animation:_l27_q8rz1_1 1s infinite steps(8)}@keyframes _l27_q8rz1_1{to{transform:rotate(1turn)}}._loader_q8rz1_63{width:48px;height:48px;background:#fff;display:inline-block;border-radius:50%;box-sizing:border-box;animation:_animloader_q8rz1_1 1s ease-in infinite}@keyframes _animloader_q8rz1_1{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:0}}._button_1l5be_3{align-items:center;background-color:transparent;border:none;border-radius:var(--plume-radius-4);display:inline-flex;font-weight:var(--plume-font-weight-semibold);justify-content:center;padding-inline:var(--plume-space-4);transition:color .3s,background-color .3s;user-select:none}._sm_1l5be_18{font-size:var(--plume-font-size-xs);height:var(--plume-space-8);padding-inline:var(--plume-space-2)}._md_1l5be_24{height:var(--plume-space-10);padding-inline:var(--plume-space-4)}._lg_1l5be_29{font-size:var(--plume-font-size-lg);height:var(--plume-space-12);padding-inline:var(--plume-space-6)}._rounded_1l5be_35{border-radius:var(--plume-radius-4)}._pill_1l5be_39{border-radius:var(--plume-radius-full)}._solid_1l5be_43{background-color:var(--button-solid-bg);color:var(--button-contrast-color)}._outline_1l5be_49{border:1px solid var(--button-color);color:var(--button-color)}._ghost_1l5be_55{color:var(--button-color)}._link_1l5be_60{color:var(--button-color);text-decoration-line:underline;text-underline-offset:var(--plume-space-2)}._icon_1l5be_67{color:var(--button-color);padding:var(--plume-space-2)}:is(._outline_1l5be_49,._ghost_1l5be_55,._icon_1l5be_67):enabled:hover{background-color:var(--button-hover-alt-color)}._link_1l5be_60:enabled:hover{color:var(--button-hover-color);text-decoration-color:var(--button-hover-color)}._solid_1l5be_43:enabled:hover{background-color:var(--button-solid-hover)}._outline_1l5be_49:enabled:hover{border-color:var(--button-hover-color)}._button_1l5be_3:enabled:focus-visible{outline:2px solid var(--button-color);outline-offset:2px}:is(._outline_1l5be_49,._ghost_1l5be_55):enabled:active{background-color:var(--button-focus-alt-color)}:is(._icon_1l5be_67,._link_1l5be_60):enabled:active{color:var(--button-focus-color)}._solid_1l5be_43:enabled:active{background-color:var(--button-solid-active)}._link_1l5be_60:enabled:active{text-decoration-color:var(--button-focus-color)}button._disabled_1l5be_111{opacity:.5;cursor:not-allowed}._iconMargin_1l5be_116{margin:0 var(--plume-space-1)}._hidden_1l5be_120{display:none}._spinnerMargin_1l5be_124{margin-left:var(--plume-space-1)}._datePicker_87pta_8{position:relative}._datePickerInputText_87pta_12{border:none;border-radius:var(--plume-radius-4);box-sizing:border-box;min-width:min(18rem,100%);width:100%;height:var(--plume-space-10);padding:0 var(--plume-space-4);position:relative;display:block;outline:2px solid transparent;outline-offset:2px;color:var(--plume-muted);background:none}._inputButton_87pta_28{position:absolute;top:0;bottom:0;right:0;background-color:transparent;border-color:transparent;margin-right:var(--plume-space-2);margin-block-start:.125rem;margin-block-end:.125rem}._inputButtonIcon_87pta_40{height:var(--plume-space-5);width:var(--plume-space-5);fill:var(--plume-muted)}._sm_87pta_46{font-size:var(--plume-font-size-xs);height:var(--plume-space-8);padding:0 var(--plume-space-2)}._md_87pta_52{height:var(--plume-space-10);padding:0 var(--plume-space-4)}._lg_87pta_57{font-size:var(--plume-font-size-lg);height:var(--plume-space-12);padding:0 var(--plume-space-6)}:is(._datePickerInputText_87pta_12,._sm_87pta_46,._md_87pta_52,._lg_87pta_57){padding-inline-end:3rem}._lg_87pta_57{padding-inline-end:3.25rem}._sm_87pta_46+._inputButton_87pta_28>._inputButtonIcon_87pta_40{height:1.125rem;width:1.125rem}._lg_87pta_57+._inputButton_87pta_28>._inputButtonIcon_87pta_40{height:var(--plume-space-6);width:var(--plume-space-6)}._rounded_87pta_81{border-radius:var(--plume-radius-4)}:is(._outline_87pta_85)._pill_87pta_85{border-radius:var(--plume-radius-full)}._outline_87pta_85{border:1px solid var(--plume-border)}._filled_87pta_94{background-color:var(--plume-surface-muted);border-block-end:1px solid var(--plume-border);border-bottom-left-radius:0;border-bottom-right-radius:0}._underline_87pta_102{border-radius:0;border-block-end:1px solid var(--plume-border)}:is(._outline_87pta_85,._filled_87pta_94,._underline_87pta_102):enabled:hover{border-color:color-mix(in hsl,var(--plume-border),black 10%)}:is(._outline_87pta_85,._filled_87pta_94,._underline_87pta_102)._invalid_87pta_112,:is(._outline_87pta_85,._filled_87pta_94,._underline_87pta_102)._invalid_87pta_112:enabled:hover,:is(._outline_87pta_85,._filled_87pta_94,._underline_87pta_102)._invalid_87pta_112:enabled:focus{border-color:var(--plume-color-error-text)}._outline_87pta_85._invalid_87pta_112:enabled:focus{outline-color:var(--plume-color-error-text)}._filled_87pta_94:enabled:hover{background-color:color-mix(in hsl,var(--plume-surface-muted),black 2%)}._outline_87pta_85:enabled:focus{border-color:var(--datepicker-scheme);outline-color:var(--datepicker-scheme)}:is(._filled_87pta_94,._underline_87pta_102):enabled:focus{border-block-end-color:var(--datepicker-scheme);border-block-end-width:2px}._datePickerModal_87pta_136{margin-top:var(--plume-space-2);display:flex;flex-direction:column;background-color:var(--plume-surface);border:1px solid var(--plume-border);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border-radius:var(--plume-radius-6);overflow:hidden;position:absolute;z-index:var(--plume-z-1)}._calendarContainer_87pta_151{display:flex;width:21rem}._calendarContainerDouble_87pta_156{display:flex;width:42rem}._calendar_87pta_151{width:21rem;padding:var(--plume-space-3)}._calendarHeader_87pta_166{display:flex;justify-content:center;margin-bottom:var(--plume-space-3)}._day_87pta_173,._year_87pta_174,._month_87pta_175,._monthYearSelectors_87pta_176 button{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit}._day_87pta_173:focus-visible,._year_87pta_174:focus-visible,._month_87pta_175:focus-visible,._monthYearSelectors_87pta_176 button:focus-visible{outline:2px solid var(--datepicker-scheme);outline-offset:1px}._monthYearSelectors_87pta_176{display:flex;justify-content:center;align-items:center;column-gap:var(--plume-space-1)}._monthYearSelectors_87pta_176 button:not([class*=icon]){padding:var(--plume-space-2) var(--plume-space-4);border-radius:var(--plume-radius-4)}._monthYearSelectors_87pta_176 button[class*=icon]{padding:var(--plume-space-2);border-radius:var(--plume-radius-full)}._monthYearSelectors_87pta_176 button:hover{background-color:var(--datepicker-hover-color)}._monthSelector_87pta_213,._yearSelector_87pta_214{font-weight:700}._yearSelectorGrid_87pta_218{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--plume-space-2)}._year_87pta_174,._month_87pta_175{display:inline-flex;justify-content:center;padding:var(--plume-space-2) var(--plume-space-4);border-radius:var(--plume-radius-4)}._year_87pta_174:not(._selected_87pta_232):hover,._month_87pta_175:not(._selected_87pta_232):hover{background-color:var(--datepicker-hover-color)}._year_87pta_174:hover,._month_87pta_175:hover{background-color:var(--datepicker-selected-hover-color)}._monthSelectorGrid_87pta_242{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--plume-space-2)}._daysOfWeek_87pta_248{display:flex;justify-content:center;column-gap:var(--plume-space-1);padding-bottom:.375rem}._dayOfWeek_87pta_255{margin:1px;width:var(--plume-space-10);display:block;text-align:center;font-size:var(--plume-font-size-sm);color:var(--plume-muted)}._calendarGrid_87pta_264{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--plume-space-1)}._day_87pta_173{margin-left:1px;margin-right:1px;display:flex;height:var(--plume-space-10);width:var(--plume-space-10);align-items:center;justify-content:center;border-radius:var(--plume-radius-full)}._today_87pta_281{color:var(--datepicker-scheme)}._rangeItem_87pta_285{background-color:var(--datepicker-range-item-color);color:var(--datepicker-range-item-text)}._selected_87pta_232{background-color:var(--datepicker-solid);color:var(--datepicker-contrast)}._selectedHover_87pta_295{background-color:var(--datepicker-selected-hover-color);color:var(--datepicker-contrast)}._hovered_87pta_300{background-color:var(--datepicker-hover-color)}._disabledDay_87pta_304{color:var(--plume-muted);cursor:not-allowed}._outOfRangeDay_87pta_309{text-decoration-line:line-through}._footerActions_87pta_313{display:flex;justify-content:flex-end;padding:var(--plume-space-3);border-top:1px solid var(--plume-border)}button._footerButton_87pta_320{color:var(--plume-foreground)}button._footerButtonApply_87pta_324{color:var(--datepicker-contrast);margin-left:var(--plume-space-2)}._disabled_87pta_304,._disabled_87pta_304+._inputButton_87pta_28{opacity:.5;cursor:not-allowed}:where(._base_h3ylb_9){background:transparent;border:none;outline:2px solid transparent;outline-offset:2px}._input_h3ylb_16{border-radius:var(--plume-radius-4);box-sizing:border-box;color:var(--plume-foreground);display:block;height:var(--plume-space-10);min-width:min(18rem,100%);padding-inline:var(--plume-space-4);position:relative;width:100%}._input_h3ylb_16::placeholder{color:var(--plume-muted)}._sm_h3ylb_32{font-size:var(--plume-font-size-xs);height:var(--plume-space-8);padding-inline:var(--plume-space-2)}._md_h3ylb_38{height:var(--plume-space-10);padding-inline:var(--plume-space-4)}._lg_h3ylb_43{font-size:var(--plume-font-size-lg);height:var(--plume-space-12);padding-inline:var(--plume-space-6)}._rounded_h3ylb_49{border-radius:var(--plume-radius-4)}:is(._outline_h3ylb_53)._pill_h3ylb_53{border-radius:var(--plume-radius-full)}._outline_h3ylb_53{border:1px solid var(--plume-border)}._filled_h3ylb_62{background-color:var(--plume-surface-muted);border-block-end:1px solid var(--plume-border);border-bottom-left-radius:0;border-bottom-right-radius:0}._underline_h3ylb_70{border-radius:0;border-block-end:1px solid var(--plume-border)}:is(._outline_h3ylb_53,._filled_h3ylb_62,._underline_h3ylb_70):enabled:hover{border-color:color-mix(in hsl,var(--plume-border),black 10%)}:is(._outline_h3ylb_53,._filled_h3ylb_62,._underline_h3ylb_70)._invalid_h3ylb_80,:is(._outline_h3ylb_53,._filled_h3ylb_62,._underline_h3ylb_70)._invalid_h3ylb_80:enabled:hover{border-color:var(--input-color)}._filled_h3ylb_62:enabled:hover{background-color:color-mix(in hsl,var(--plume-surface-muted),black 2%)}:not(._inputGroup_h3ylb_89)>._outline_h3ylb_53:enabled:focus,._inputGroup_h3ylb_89:has(._outline_h3ylb_53:enabled):focus-within{border-color:var(--input-color);outline:2px solid var(--input-color);outline-offset:2px}:is(._filled_h3ylb_62,._underline_h3ylb_70):enabled:focus{border-block-end-color:var(--input-color);border-block-end-width:2px}._disabled_h3ylb_101{opacity:.5;cursor:not-allowed}._inputGroup_h3ylb_89{position:relative;display:flex;border-radius:var(--plume-radius-4);min-width:min(18rem,100%)}._inputGroup_h3ylb_89>._input_h3ylb_16{flex:1 1 auto;min-width:0}._inputGroup_h3ylb_89>._addOn_h3ylb_120{flex-shrink:0;white-space:nowrap}._inputGroup_h3ylb_89:has(._outline_h3ylb_53,._filled_h3ylb_62)>._addOn_h3ylb_120{background-color:var(--plume-surface-muted)}._inputGroup_h3ylb_89:has(._outline_h3ylb_53)>._addOn_h3ylb_120{border:1px solid var(--plume-border)}._inputGroup_h3ylb_89:has(._filled_h3ylb_62)>._addOn_h3ylb_120{border-block-end:1px solid var(--plume-border)}._inputGroup_h3ylb_89:has(._outline_h3ylb_53,._filled_h3ylb_62)>._addOn_h3ylb_120:first-child{border-top-left-radius:var(--plume-radius-4)}._inputGroup_h3ylb_89:has(._outline_h3ylb_53)>._addOn_h3ylb_120:first-child{border-bottom-left-radius:var(--plume-radius-4)}._inputGroup_h3ylb_89:has(._outline_h3ylb_53,._filled_h3ylb_62)>._addOn_h3ylb_120:first-child+._input_h3ylb_16{border-top-left-radius:0;border-top-right-radius:var(--plume-radius-4)}._inputGroup_h3ylb_89:has(._outline_h3ylb_53)>._addOn_h3ylb_120:first-child+._input_h3ylb_16{border-bottom-left-radius:0;border-bottom-right-radius:var(--plume-radius-4)}._inputGroup_h3ylb_89:has(._addOn_h3ylb_120)>._input_h3ylb_16:is(._outline_h3ylb_53,._filled_h3ylb_62){border-top-right-radius:0}._inputGroup_h3ylb_89:has(._addOn_h3ylb_120)>._input_h3ylb_16:is(._outline_h3ylb_53){border-bottom-right-radius:0}._inputGroup_h3ylb_89:has(._outline_h3ylb_53,._filled_h3ylb_62)>._addOn_h3ylb_120:last-child{border-top-right-radius:var(--plume-radius-4);border-inline-start:0}._inputGroup_h3ylb_89:has(._outline_h3ylb_53)>._addOn_h3ylb_120:last-child{border-bottom-right-radius:var(--plume-radius-4)}._inputGroup_h3ylb_89:has(._underline_h3ylb_70)>._addOn_h3ylb_120{border-block-end:1px solid var(--plume-border)}._inputGroup_h3ylb_89:has(._element_h3ylb_176:first-child)>._input_h3ylb_16{padding-inline-start:2.5rem}._inputGroup_h3ylb_89:has(._element_h3ylb_176:last-child)>._input_h3ylb_16{padding-inline-end:2.5rem}._element_h3ylb_176,._addOn_h3ylb_120{display:flex;align-items:center;justify-content:center}._element_h3ylb_176:first-child{left:0}._element_h3ylb_176:last-child{right:0}._element_h3ylb_176{position:absolute;top:0;height:2.5rem;width:2.5rem;z-index:2}._addOn_h3ylb_120{padding:0 .75rem}._field_wdljj_3{color:var(--plume-foreground);display:flex;flex-direction:column;gap:var(--plume-space-1)}._horizontal_wdljj_14{align-items:center;column-gap:var(--plume-space-4);display:grid;grid-template-columns:var(--field-label-width, 8rem) minmax(0,1fr)}._horizontal_wdljj_14>:not(._label_wdljj_22){grid-column:2}._label_wdljj_22{font-size:var(--plume-font-size-sm);font-weight:var(--plume-font-weight-medium);line-height:var(--plume-line-height-snug)}._requiredIndicator_wdljj_32{color:var(--plume-color-error-text);margin-inline-start:var(--plume-space-1)}._optionalText_wdljj_37{color:var(--plume-muted);font-weight:var(--plume-font-weight-normal);margin-inline-start:var(--plume-space-1)}._helperText_wdljj_43,._errorText_wdljj_44{font-size:var(--plume-font-size-sm);line-height:var(--plume-line-height-snug);margin:0}._helperText_wdljj_43{color:var(--plume-muted)}._errorText_wdljj_44{color:var(--plume-color-error-text)}._disabled_wdljj_58 ._label_wdljj_22{opacity:.5}._tabs_1ct2b_6{display:flex;flex-direction:column}._horizontal_1ct2b_11{flex-direction:column}._vertical_1ct2b_15{flex-direction:row}._left_1ct2b_19{justify-content:flex-start}._center_1ct2b_23{justify-content:center}._right_1ct2b_27{justify-content:flex-end}._sm_1ct2b_31{padding:var(--plume-space-1) var(--plume-space-2);font-size:small}._md_1ct2b_36{padding:var(--plume-space-2) var(--plume-space-3)}._lg_1ct2b_40{padding:var(--plume-space-3) var(--plume-space-4);font-size:large}._vertical_1ct2b_15 ._underline_1ct2b_45{border-inline-end:solid 1px var(--plume-border);border-block-end:none}._underline_1ct2b_45{gap:var(--plume-space-4);border-block-end:solid 1px var(--plume-border)}._vertical_1ct2b_15 ._tablist_1ct2b_55{flex-direction:column;align-items:stretch}._tablist_1ct2b_55{width:inherit;display:flex;flex-direction:row;align-items:center}._tab_1ct2b_6{background:transparent;border:0;color:inherit;cursor:pointer;font:inherit;display:inline-flex;justify-content:center;align-items:center;gap:var(--plume-space-2);outline:2px solid transparent;outline-offset:2px}:is(._rounded_1ct2b_82,._segment_1ct2b_82) ._tab_1ct2b_6{border-radius:var(--plume-radius-4)}._vertical_1ct2b_15 ._underline_1ct2b_45 ._tab_1ct2b_6{border-inline-end:2px solid transparent;border-block-end:none;transition:border-inline-end .2s}._underline_1ct2b_45 ._tab_1ct2b_6{border-block-end:2px solid transparent;transition:border-block-end .2s}._vertical_1ct2b_15 ._underline_1ct2b_45 ._tab_1ct2b_6._active_1ct2b_97{border-inline-end:2px solid var(--tabs-scheme);border-block-end:none}._underline_1ct2b_45 ._tab_1ct2b_6._active_1ct2b_97{border-block-end:2px solid var(--tabs-scheme);color:var(--tabs-scheme);transition:color .2s}._rounded_1ct2b_82 ._tab_1ct2b_6._active_1ct2b_97{background-color:var(--tabs-solid);color:var(--tabs-text-color);border-radius:var(--plume-radius-4);transition:color .2s}._vertical_1ct2b_15 ._enclosed_1ct2b_115{border-inline-end:1px solid var(--tabs-scheme);border-block-end:none}._enclosed_1ct2b_115{border-block-end:1px solid var(--tabs-scheme)}._vertical_1ct2b_15 ._enclosed_1ct2b_115 ._tab_1ct2b_6._active_1ct2b_97{border:1px solid var(--tabs-scheme);border-radius:var(--plume-radius-4);border-inline-end:none;border-end-end-radius:0;border-start-end-radius:0;margin-inline-end:-1px;transition:color .2s}._enclosed_1ct2b_115 ._tab_1ct2b_6._active_1ct2b_97{border:1px solid var(--tabs-scheme);border-radius:var(--plume-radius-4);background:var(--plume-surface);border-block-end:none;border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--tabs-scheme);margin-block-end:-1px;transition:color .2s}._segment_1ct2b_82{background-color:var(--tabs-solid);color:var(--tabs-text-color);gap:var(--plume-space-1);padding:var(--plume-space-3) var(--plume-space-4);transition:background-color .2s;border-radius:var(--plume-radius-4)}._segment_1ct2b_82 ._tab_1ct2b_6._active_1ct2b_97{background-color:var(--tabs-solid-active);color:var(--tabs-text-color);border-radius:var(--plume-radius-4);transition:color .2s}._tab_1ct2b_6:not(._active_1ct2b_97,:disabled):hover{color:color-mix(in hsl,var(--tabs-scheme),black 10%)}._tab_1ct2b_6:focus-visible{outline-color:var(--tabs-scheme)}._segment_1ct2b_82 ._tab_1ct2b_6:focus-visible{outline-color:var(--tabs-text-color)}._panel_1ct2b_174:focus-visible{outline:2px solid var(--tabs-scheme);outline-offset:2px}._vertical_1ct2b_15 ._panel_1ct2b_174{padding:var(--plume-space-2) var(--plume-space-4)}._panel_1ct2b_174{padding:var(--plume-space-4) var(--plume-space-2);border:none}
@@ -0,0 +1 @@
1
+ export{f as ThemeProvider,c as colorVar,b as defaultDarkTheme,a as defaultTheme,d as themeToCssVars,e as useTheme}from'../chunk-6RTAEXNN.mjs';import'../chunk-WM4KUIPD.mjs';import'../chunk-AOJBMSYA.mjs';
@@ -0,0 +1 @@
1
+ export{a as getContrastColor,b as getContrastRatio,d as getDarkenColor,c as getLightenColor}from'../chunk-AOJBMSYA.mjs';
@@ -0,0 +1 @@
1
+ export{e as formatDate,a as getDateFormatByLanguage,g as getDateFromDateString,d as getDateStringByLanguage,b as getDaysOfWeekByLanguage,c as getMonthsByLanguage,f as validateFormatDate}from'../chunk-BOTD5R53.mjs';
@@ -0,0 +1 @@
1
+ export{a as lazyLoadContent}from'../chunk-QON6DQTA.mjs';
@@ -0,0 +1 @@
1
+ export{a as deepMerge}from'../chunk-WM4KUIPD.mjs';
package/package.json CHANGED
@@ -1,6 +1,86 @@
1
1
  {
2
2
  "name": "plume-ui-react",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "A lightweight TypeScript React UI component library, themed with CSS variables.",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.mts",
12
+ "default": "./dist/index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ }
18
+ },
19
+ "./styles.css": "./dist/styles.css",
20
+ "./package.json": "./package.json"
21
+ },
22
+ "sideEffects": [
23
+ "**/*.css"
24
+ ],
25
+ "license": "MIT",
26
+ "files": [
27
+ "dist/**"
28
+ ],
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "https://github.com/darioegb/plume-ui-react.git",
32
+ "directory": "packages/plume-ui-react"
33
+ },
34
+ "homepage": "https://darioegb.github.io/plume-ui-react/",
35
+ "bugs": "https://github.com/darioegb/plume-ui-react/issues",
36
+ "keywords": [
37
+ "react",
38
+ "typescript",
39
+ "components",
40
+ "ui",
41
+ "design-system",
42
+ "react-components",
43
+ "uikit",
44
+ "accessible",
45
+ "css-variables",
46
+ "ssr",
47
+ "plume-ui",
48
+ "plume-ui-react"
49
+ ],
50
+ "author": "Dario E Gonzalez B <darioegb@gmail.com>",
51
+ "jest": {
52
+ "preset": "jest-preset"
53
+ },
54
+ "devDependencies": {
55
+ "@types/react": "^19.3.0",
56
+ "@types/react-dom": "^19.3.0",
57
+ "eslint-config-custom": "0.0.1",
58
+ "jest-preset": "0.0.1",
59
+ "postcss": "^8.4.29",
60
+ "postcss-modules": "^6.0.0",
61
+ "prettier-config": "0.0.2",
62
+ "react": "^19.3.0",
63
+ "react-dom": "^19.3.0",
64
+ "react-hook-form": "7.89.0",
65
+ "tsconfig": "0.0.1",
66
+ "tsup": "^8.5.1",
67
+ "typescript": "^5.2.2"
68
+ },
69
+ "peerDependencies": {
70
+ "react": ">=18",
71
+ "react-dom": ">=18"
72
+ },
73
+ "publishConfig": {
74
+ "access": "public"
75
+ },
76
+ "scripts": {
77
+ "build": "rm -rf dist && tsup",
78
+ "dev": "tsup --watch",
79
+ "lint": "eslint src/",
80
+ "lint:fix": "eslint src/ --fix",
81
+ "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
82
+ "test": "jest",
83
+ "test:coverage": "jest --coverage",
84
+ "test:watch": "jest --watch"
85
+ }
6
86
  }