@marigold/system 15.4.3 → 16.0.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.
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- import React$1, { Context, ReactNode } from "react";
1
+ import * as react0 from "react";
2
+ import { Context, ReactNode } from "react";
2
3
  import { VariantProps } from "class-variance-authority";
3
4
  import { DateFormatterOptions, useNumberFormatter } from "@react-aria/i18n";
4
5
  import { HtmlProps, KebabCase } from "@marigold/types";
@@ -15,7 +16,7 @@ interface SVGProps extends Omit<HtmlProps<'svg'>, 'fill' | 'style'> {
15
16
  */
16
17
  className?: string;
17
18
  }
18
- declare const SVG: React$1.ForwardRefExoticComponent<SVGProps & React$1.RefAttributes<SVGSVGElement>>;
19
+ declare const SVG: react0.ForwardRefExoticComponent<SVGProps & react0.RefAttributes<SVGSVGElement>>;
19
20
  //#endregion
20
21
  //#region src/components/Formatters/DateFormat.d.ts
21
22
  interface DateFormatProps extends DateFormatterOptions {
@@ -33,7 +34,7 @@ declare const DateFormat: ({
33
34
  value,
34
35
  tabular,
35
36
  ...props
36
- }: DateFormatProps) => React$1.JSX.Element;
37
+ }: DateFormatProps) => react0.JSX.Element;
37
38
  //#endregion
38
39
  //#region src/components/Formatters/NumericFormat.d.ts
39
40
  type NumerFormatterOptions = NonNullable<Parameters<typeof useNumberFormatter>[0]>;
@@ -57,18 +58,18 @@ declare const NumericFormat: ({
57
58
  value,
58
59
  tabular,
59
60
  ...props
60
- }: NumericFormatProps) => React$1.JSX.Element;
61
+ }: NumericFormatProps) => react0.JSX.Element;
61
62
  //#endregion
62
63
  //#region src/utils.d.ts
63
64
  type ConfigSchema = Record<string, Record<string, ClassValue>>;
64
- type ConfigVariants<T extends ConfigSchema> = { [Variant in keyof T]?: StringToBoolean<keyof T[Variant]> | null | undefined };
65
- type ConfigVariantsMulti<T extends ConfigSchema> = { [Variant in keyof T]?: StringToBoolean<keyof T[Variant]> | StringToBoolean<keyof T[Variant]>[] | undefined };
66
- type Config<T> = T extends ConfigSchema ? {
67
- variants?: T;
68
- defaultVariants?: ConfigVariants<T>;
69
- compoundVariants?: (T extends ConfigSchema ? (ConfigVariants<T> | ConfigVariantsMulti<T>) & ClassProp : ClassProp)[];
65
+ type ConfigVariants<T$1 extends ConfigSchema> = { [Variant in keyof T$1]?: StringToBoolean<keyof T$1[Variant]> | null | undefined };
66
+ type ConfigVariantsMulti<T$1 extends ConfigSchema> = { [Variant in keyof T$1]?: StringToBoolean<keyof T$1[Variant]> | StringToBoolean<keyof T$1[Variant]>[] | undefined };
67
+ type Config<T$1> = T$1 extends ConfigSchema ? {
68
+ variants?: T$1;
69
+ defaultVariants?: ConfigVariants<T$1>;
70
+ compoundVariants?: (T$1 extends ConfigSchema ? (ConfigVariants<T$1> | ConfigVariantsMulti<T$1>) & ClassProp : ClassProp)[];
70
71
  } : never;
71
- type Props<T> = T extends ConfigSchema ? ConfigVariants<T> & ClassProp : ClassProp;
72
+ type Props<T$1> = T$1 extends ConfigSchema ? ConfigVariants<T$1> & ClassProp : ClassProp;
72
73
  declare const cva: <T>(base?: ClassValue, config?: Config<T>) => {
73
74
  (props?: Props<T>): string;
74
75
  variants: T | undefined;
@@ -129,7 +130,7 @@ type Theme = {
129
130
  height?: NestedStringObject;
130
131
  root?: ComponentStyleFunction;
131
132
  components: {
132
- Accordion?: Record<'container' | 'item' | 'header' | 'content' | 'icon', ComponentStyleFunction<string, string>>;
133
+ Accordion?: Record<'container' | 'item' | 'header' | 'panel' | 'content' | 'icon', ComponentStyleFunction<string, string>>;
133
134
  Badge?: ComponentStyleFunction<string, string>;
134
135
  Breadcrumbs?: Record<'container' | 'item' | 'link' | 'current', ComponentStyleFunction<string, string>>;
135
136
  Button?: ComponentStyleFunction<string, string>;
@@ -149,7 +150,7 @@ type Theme = {
149
150
  Checkbox?: Record<'container' | 'label' | 'checkbox' | 'group', ComponentStyleFunction<string, string>>;
150
151
  Switch?: Record<'container' | 'track' | 'thumb', ComponentStyleFunction<string, string>>;
151
152
  Input?: Record<'input' | 'icon' | 'action', ComponentStyleFunction<string, string>>;
152
- Label?: Record<'container' | 'indicator', ComponentStyleFunction<string, string>>;
153
+ Label?: ComponentStyleFunction<string, string>;
153
154
  List?: Record<'ol' | 'ul' | 'item', ComponentStyleFunction<string, string>>;
154
155
  Link?: ComponentStyleFunction<string, string>;
155
156
  ListBox?: Record<'container' | 'list' | 'item' | 'section' | 'header', ComponentStyleFunction<string, string>>;
@@ -157,7 +158,7 @@ type Theme = {
157
158
  Modal?: ComponentStyleFunction<string, string>;
158
159
  MultiSelect?: Record<'container' | 'closeButton' | 'field' | 'input' | 'icon' | 'listContainer' | 'list' | 'option' | 'tag' | 'valueContainer', ComponentStyleFunction<string, string>>;
159
160
  Pagination?: Record<'container' | 'navigationButton' | 'pageButton' | 'icon' | 'ellipsis', ComponentStyleFunction<string, string>>;
160
- ProgressCycle?: ComponentStyleFunction<string, string>;
161
+ ProgressCircle?: Record<'container' | 'loader' | 'label', ComponentStyleFunction<string, string>>;
161
162
  Radio?: Record<'container' | 'label' | 'radio' | 'group', ComponentStyleFunction<string, string>>;
162
163
  Slider?: Record<'container' | 'track' | 'thumb' | 'output' | 'selectedTrack', ComponentStyleFunction<string, string>>;
163
164
  Select?: Record<'select' | 'icon', ComponentStyleFunction<string, string>>;
@@ -174,12 +175,13 @@ type Theme = {
174
175
  Calendar?: Record<'calendar' | 'calendarListboxButton' | 'calendarCell' | 'calendarControllers' | 'calendarHeader' | 'calendarGrid' | 'select', ComponentStyleFunction<string, string>>;
175
176
  DatePicker?: ComponentStyleFunction<string, string>;
176
177
  ComboBox?: ComponentStyleFunction<string, string>;
177
- XLoader?: Record<'container' | 'loader' | 'label', ComponentStyleFunction<string, string>>;
178
+ Loader?: Record<'container' | 'loader' | 'label', ComponentStyleFunction<string, string>>;
179
+ FileField?: Record<'container' | 'dropZone' | 'dropZoneContent' | 'dropZoneLabel' | 'item' | 'itemLabel' | 'itemDescription', ComponentStyleFunction<string, string>>;
178
180
  };
179
181
  };
180
182
  type ComponentNames = keyof Theme['components'];
181
- type ThemeComponent<C extends ComponentNames> = NonNullable<Theme['components'][C]>;
182
- type ThemeComponentParts<C extends ComponentNames> = keyof ThemeComponent<C>;
183
+ type ThemeComponent<C$1 extends ComponentNames> = NonNullable<Theme['components'][C$1]>;
184
+ type ThemeComponentParts<C$1 extends ComponentNames> = keyof ThemeComponent<C$1>;
183
185
  //#endregion
184
186
  //#region src/hooks/useClassNames.d.ts
185
187
  interface ComponentContextProps {
@@ -187,14 +189,14 @@ interface ComponentContextProps {
187
189
  variant?: string;
188
190
  [key: string]: any;
189
191
  }
190
- interface UseClassNamesProps<C extends ComponentNames> {
191
- component: C;
192
+ interface UseClassNamesProps<C$1 extends ComponentNames> {
193
+ component: C$1;
192
194
  variant?: string;
193
195
  size?: string;
194
- className?: ThemeComponent<C> extends ((...args: any) => any) ? string : { [slot in keyof ThemeComponent<C>]?: string };
196
+ className?: ThemeComponent<C$1> extends ((...args: any) => any) ? string : { [slot in keyof ThemeComponent<C$1>]?: string };
195
197
  context?: Context<ComponentContextProps>;
196
198
  }
197
- type ComponentClassNames<C extends ComponentNames> = ThemeComponent<C> extends ((...args: any) => any) ? string : { [slot in keyof ThemeComponent<C>]: string };
199
+ type ComponentClassNames<C$1 extends ComponentNames> = ThemeComponent<C$1> extends ((...args: any) => any) ? string : { [slot in keyof ThemeComponent<C$1>]: string };
198
200
  declare const useClassNames: <C extends ComponentNames>({
199
201
  component,
200
202
  className,
@@ -225,11 +227,11 @@ declare const useStateProps: (states: UseStateProps) => StateAttrProps;
225
227
  //#endregion
226
228
  //#region src/hooks/useTheme.d.ts
227
229
  declare const useTheme: () => Theme;
228
- interface ThemeProviderProps<T extends Theme> {
230
+ interface ThemeProviderProps<T$1 extends Theme> {
229
231
  /**
230
232
  * The theme that should be used within the provider context.
231
233
  */
232
- theme: T;
234
+ theme: T$1;
233
235
  /**
234
236
  * The children of the component.
235
237
  */
@@ -239,11 +241,11 @@ interface ThemeProviderProps<T extends Theme> {
239
241
  */
240
242
  className?: string;
241
243
  }
242
- declare function ThemeProvider<T extends Theme>({
244
+ declare function ThemeProvider<T$1 extends Theme>({
243
245
  theme,
244
246
  children,
245
247
  className
246
- }: ThemeProviderProps<T>): React$1.JSX.Element;
248
+ }: ThemeProviderProps<T$1>): react0.JSX.Element;
247
249
  //#endregion
248
250
  //#region src/hooks/useSmallScreen.d.ts
249
251
  declare const useSmallScreen: () => boolean;
@@ -252,7 +254,7 @@ declare const useSmallScreen: () => boolean;
252
254
  type StylesProps = { [K in keyof Theme['components']]: Partial<Theme['components'][K]> };
253
255
  declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
254
256
  components: {
255
- Accordion?: Record<"container" | "item" | "header" | "content" | "icon", ComponentStyleFunction<string, string>>;
257
+ Accordion?: Record<"container" | "item" | "header" | "panel" | "content" | "icon", ComponentStyleFunction<string, string>>;
256
258
  Badge?: ComponentStyleFunction<string, string>;
257
259
  Breadcrumbs?: Record<"container" | "item" | "link" | "current", ComponentStyleFunction<string, string>>;
258
260
  Button?: ComponentStyleFunction<string, string>;
@@ -272,7 +274,7 @@ declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
272
274
  Checkbox?: Record<"container" | "label" | "checkbox" | "group", ComponentStyleFunction<string, string>>;
273
275
  Switch?: Record<"container" | "track" | "thumb", ComponentStyleFunction<string, string>>;
274
276
  Input?: Record<"input" | "icon" | "action", ComponentStyleFunction<string, string>>;
275
- Label?: Record<"container" | "indicator", ComponentStyleFunction<string, string>>;
277
+ Label?: ComponentStyleFunction<string, string>;
276
278
  List?: Record<"ol" | "ul" | "item", ComponentStyleFunction<string, string>>;
277
279
  Link?: ComponentStyleFunction<string, string>;
278
280
  ListBox?: Record<"container" | "list" | "item" | "section" | "header", ComponentStyleFunction<string, string>>;
@@ -280,7 +282,7 @@ declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
280
282
  Modal?: ComponentStyleFunction<string, string>;
281
283
  MultiSelect?: Record<"container" | "closeButton" | "field" | "input" | "icon" | "listContainer" | "list" | "option" | "tag" | "valueContainer", ComponentStyleFunction<string, string>>;
282
284
  Pagination?: Record<"container" | "navigationButton" | "pageButton" | "icon" | "ellipsis", ComponentStyleFunction<string, string>>;
283
- ProgressCycle?: ComponentStyleFunction<string, string>;
285
+ ProgressCircle?: Record<"container" | "loader" | "label", ComponentStyleFunction<string, string>>;
284
286
  Radio?: Record<"container" | "label" | "radio" | "group", ComponentStyleFunction<string, string>>;
285
287
  Slider?: Record<"container" | "track" | "thumb" | "output" | "selectedTrack", ComponentStyleFunction<string, string>>;
286
288
  Select?: Record<"select" | "icon", ComponentStyleFunction<string, string>>;
@@ -297,7 +299,8 @@ declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
297
299
  Calendar?: Record<"calendar" | "calendarListboxButton" | "calendarCell" | "calendarControllers" | "calendarHeader" | "calendarGrid" | "select", ComponentStyleFunction<string, string>>;
298
300
  DatePicker?: ComponentStyleFunction<string, string>;
299
301
  ComboBox?: ComponentStyleFunction<string, string>;
300
- XLoader?: Record<"container" | "loader" | "label", ComponentStyleFunction<string, string>>;
302
+ Loader?: Record<"container" | "loader" | "label", ComponentStyleFunction<string, string>>;
303
+ FileField?: Record<"container" | "dropZone" | "dropZoneContent" | "dropZoneLabel" | "item" | "itemLabel" | "itemDescription", ComponentStyleFunction<string, string>>;
301
304
  };
302
305
  name: string;
303
306
  screens?: {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import React$1, { Context, ReactNode } from "react";
1
+ import * as react0 from "react";
2
+ import { Context, ReactNode } from "react";
2
3
  import { HtmlProps, KebabCase } from "@marigold/types";
3
4
  import { DateFormatterOptions, useNumberFormatter } from "@react-aria/i18n";
4
5
  import { ClassProp, ClassValue, StringToBoolean } from "class-variance-authority/dist/types";
@@ -15,7 +16,7 @@ interface SVGProps extends Omit<HtmlProps<'svg'>, 'fill' | 'style'> {
15
16
  */
16
17
  className?: string;
17
18
  }
18
- declare const SVG: React$1.ForwardRefExoticComponent<SVGProps & React$1.RefAttributes<SVGSVGElement>>;
19
+ declare const SVG: react0.ForwardRefExoticComponent<SVGProps & react0.RefAttributes<SVGSVGElement>>;
19
20
  //#endregion
20
21
  //#region src/components/Formatters/DateFormat.d.ts
21
22
  interface DateFormatProps extends DateFormatterOptions {
@@ -33,7 +34,7 @@ declare const DateFormat: ({
33
34
  value,
34
35
  tabular,
35
36
  ...props
36
- }: DateFormatProps) => React$1.JSX.Element;
37
+ }: DateFormatProps) => react0.JSX.Element;
37
38
  //#endregion
38
39
  //#region src/components/Formatters/NumericFormat.d.ts
39
40
  type NumerFormatterOptions = NonNullable<Parameters<typeof useNumberFormatter>[0]>;
@@ -57,18 +58,18 @@ declare const NumericFormat: ({
57
58
  value,
58
59
  tabular,
59
60
  ...props
60
- }: NumericFormatProps) => React$1.JSX.Element;
61
+ }: NumericFormatProps) => react0.JSX.Element;
61
62
  //#endregion
62
63
  //#region src/utils.d.ts
63
64
  type ConfigSchema = Record<string, Record<string, ClassValue>>;
64
- type ConfigVariants<T extends ConfigSchema> = { [Variant in keyof T]?: StringToBoolean<keyof T[Variant]> | null | undefined };
65
- type ConfigVariantsMulti<T extends ConfigSchema> = { [Variant in keyof T]?: StringToBoolean<keyof T[Variant]> | StringToBoolean<keyof T[Variant]>[] | undefined };
66
- type Config<T> = T extends ConfigSchema ? {
67
- variants?: T;
68
- defaultVariants?: ConfigVariants<T>;
69
- compoundVariants?: (T extends ConfigSchema ? (ConfigVariants<T> | ConfigVariantsMulti<T>) & ClassProp : ClassProp)[];
65
+ type ConfigVariants<T$1 extends ConfigSchema> = { [Variant in keyof T$1]?: StringToBoolean<keyof T$1[Variant]> | null | undefined };
66
+ type ConfigVariantsMulti<T$1 extends ConfigSchema> = { [Variant in keyof T$1]?: StringToBoolean<keyof T$1[Variant]> | StringToBoolean<keyof T$1[Variant]>[] | undefined };
67
+ type Config<T$1> = T$1 extends ConfigSchema ? {
68
+ variants?: T$1;
69
+ defaultVariants?: ConfigVariants<T$1>;
70
+ compoundVariants?: (T$1 extends ConfigSchema ? (ConfigVariants<T$1> | ConfigVariantsMulti<T$1>) & ClassProp : ClassProp)[];
70
71
  } : never;
71
- type Props<T> = T extends ConfigSchema ? ConfigVariants<T> & ClassProp : ClassProp;
72
+ type Props<T$1> = T$1 extends ConfigSchema ? ConfigVariants<T$1> & ClassProp : ClassProp;
72
73
  declare const cva: <T>(base?: ClassValue, config?: Config<T>) => {
73
74
  (props?: Props<T>): string;
74
75
  variants: T | undefined;
@@ -129,7 +130,7 @@ type Theme = {
129
130
  height?: NestedStringObject;
130
131
  root?: ComponentStyleFunction;
131
132
  components: {
132
- Accordion?: Record<'container' | 'item' | 'header' | 'content' | 'icon', ComponentStyleFunction<string, string>>;
133
+ Accordion?: Record<'container' | 'item' | 'header' | 'panel' | 'content' | 'icon', ComponentStyleFunction<string, string>>;
133
134
  Badge?: ComponentStyleFunction<string, string>;
134
135
  Breadcrumbs?: Record<'container' | 'item' | 'link' | 'current', ComponentStyleFunction<string, string>>;
135
136
  Button?: ComponentStyleFunction<string, string>;
@@ -149,7 +150,7 @@ type Theme = {
149
150
  Checkbox?: Record<'container' | 'label' | 'checkbox' | 'group', ComponentStyleFunction<string, string>>;
150
151
  Switch?: Record<'container' | 'track' | 'thumb', ComponentStyleFunction<string, string>>;
151
152
  Input?: Record<'input' | 'icon' | 'action', ComponentStyleFunction<string, string>>;
152
- Label?: Record<'container' | 'indicator', ComponentStyleFunction<string, string>>;
153
+ Label?: ComponentStyleFunction<string, string>;
153
154
  List?: Record<'ol' | 'ul' | 'item', ComponentStyleFunction<string, string>>;
154
155
  Link?: ComponentStyleFunction<string, string>;
155
156
  ListBox?: Record<'container' | 'list' | 'item' | 'section' | 'header', ComponentStyleFunction<string, string>>;
@@ -157,7 +158,7 @@ type Theme = {
157
158
  Modal?: ComponentStyleFunction<string, string>;
158
159
  MultiSelect?: Record<'container' | 'closeButton' | 'field' | 'input' | 'icon' | 'listContainer' | 'list' | 'option' | 'tag' | 'valueContainer', ComponentStyleFunction<string, string>>;
159
160
  Pagination?: Record<'container' | 'navigationButton' | 'pageButton' | 'icon' | 'ellipsis', ComponentStyleFunction<string, string>>;
160
- ProgressCycle?: ComponentStyleFunction<string, string>;
161
+ ProgressCircle?: Record<'container' | 'loader' | 'label', ComponentStyleFunction<string, string>>;
161
162
  Radio?: Record<'container' | 'label' | 'radio' | 'group', ComponentStyleFunction<string, string>>;
162
163
  Slider?: Record<'container' | 'track' | 'thumb' | 'output' | 'selectedTrack', ComponentStyleFunction<string, string>>;
163
164
  Select?: Record<'select' | 'icon', ComponentStyleFunction<string, string>>;
@@ -174,12 +175,13 @@ type Theme = {
174
175
  Calendar?: Record<'calendar' | 'calendarListboxButton' | 'calendarCell' | 'calendarControllers' | 'calendarHeader' | 'calendarGrid' | 'select', ComponentStyleFunction<string, string>>;
175
176
  DatePicker?: ComponentStyleFunction<string, string>;
176
177
  ComboBox?: ComponentStyleFunction<string, string>;
177
- XLoader?: Record<'container' | 'loader' | 'label', ComponentStyleFunction<string, string>>;
178
+ Loader?: Record<'container' | 'loader' | 'label', ComponentStyleFunction<string, string>>;
179
+ FileField?: Record<'container' | 'dropZone' | 'dropZoneContent' | 'dropZoneLabel' | 'item' | 'itemLabel' | 'itemDescription', ComponentStyleFunction<string, string>>;
178
180
  };
179
181
  };
180
182
  type ComponentNames = keyof Theme['components'];
181
- type ThemeComponent<C extends ComponentNames> = NonNullable<Theme['components'][C]>;
182
- type ThemeComponentParts<C extends ComponentNames> = keyof ThemeComponent<C>;
183
+ type ThemeComponent<C$1 extends ComponentNames> = NonNullable<Theme['components'][C$1]>;
184
+ type ThemeComponentParts<C$1 extends ComponentNames> = keyof ThemeComponent<C$1>;
183
185
  //#endregion
184
186
  //#region src/hooks/useClassNames.d.ts
185
187
  interface ComponentContextProps {
@@ -187,14 +189,14 @@ interface ComponentContextProps {
187
189
  variant?: string;
188
190
  [key: string]: any;
189
191
  }
190
- interface UseClassNamesProps<C extends ComponentNames> {
191
- component: C;
192
+ interface UseClassNamesProps<C$1 extends ComponentNames> {
193
+ component: C$1;
192
194
  variant?: string;
193
195
  size?: string;
194
- className?: ThemeComponent<C> extends ((...args: any) => any) ? string : { [slot in keyof ThemeComponent<C>]?: string };
196
+ className?: ThemeComponent<C$1> extends ((...args: any) => any) ? string : { [slot in keyof ThemeComponent<C$1>]?: string };
195
197
  context?: Context<ComponentContextProps>;
196
198
  }
197
- type ComponentClassNames<C extends ComponentNames> = ThemeComponent<C> extends ((...args: any) => any) ? string : { [slot in keyof ThemeComponent<C>]: string };
199
+ type ComponentClassNames<C$1 extends ComponentNames> = ThemeComponent<C$1> extends ((...args: any) => any) ? string : { [slot in keyof ThemeComponent<C$1>]: string };
198
200
  declare const useClassNames: <C extends ComponentNames>({
199
201
  component,
200
202
  className,
@@ -225,11 +227,11 @@ declare const useStateProps: (states: UseStateProps) => StateAttrProps;
225
227
  //#endregion
226
228
  //#region src/hooks/useTheme.d.ts
227
229
  declare const useTheme: () => Theme;
228
- interface ThemeProviderProps<T extends Theme> {
230
+ interface ThemeProviderProps<T$1 extends Theme> {
229
231
  /**
230
232
  * The theme that should be used within the provider context.
231
233
  */
232
- theme: T;
234
+ theme: T$1;
233
235
  /**
234
236
  * The children of the component.
235
237
  */
@@ -239,11 +241,11 @@ interface ThemeProviderProps<T extends Theme> {
239
241
  */
240
242
  className?: string;
241
243
  }
242
- declare function ThemeProvider<T extends Theme>({
244
+ declare function ThemeProvider<T$1 extends Theme>({
243
245
  theme,
244
246
  children,
245
247
  className
246
- }: ThemeProviderProps<T>): React$1.JSX.Element;
248
+ }: ThemeProviderProps<T$1>): react0.JSX.Element;
247
249
  //#endregion
248
250
  //#region src/hooks/useSmallScreen.d.ts
249
251
  declare const useSmallScreen: () => boolean;
@@ -252,7 +254,7 @@ declare const useSmallScreen: () => boolean;
252
254
  type StylesProps = { [K in keyof Theme['components']]: Partial<Theme['components'][K]> };
253
255
  declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
254
256
  components: {
255
- Accordion?: Record<"container" | "item" | "header" | "content" | "icon", ComponentStyleFunction<string, string>>;
257
+ Accordion?: Record<"container" | "item" | "header" | "panel" | "content" | "icon", ComponentStyleFunction<string, string>>;
256
258
  Badge?: ComponentStyleFunction<string, string>;
257
259
  Breadcrumbs?: Record<"container" | "item" | "link" | "current", ComponentStyleFunction<string, string>>;
258
260
  Button?: ComponentStyleFunction<string, string>;
@@ -272,7 +274,7 @@ declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
272
274
  Checkbox?: Record<"container" | "label" | "checkbox" | "group", ComponentStyleFunction<string, string>>;
273
275
  Switch?: Record<"container" | "track" | "thumb", ComponentStyleFunction<string, string>>;
274
276
  Input?: Record<"input" | "icon" | "action", ComponentStyleFunction<string, string>>;
275
- Label?: Record<"container" | "indicator", ComponentStyleFunction<string, string>>;
277
+ Label?: ComponentStyleFunction<string, string>;
276
278
  List?: Record<"ol" | "ul" | "item", ComponentStyleFunction<string, string>>;
277
279
  Link?: ComponentStyleFunction<string, string>;
278
280
  ListBox?: Record<"container" | "list" | "item" | "section" | "header", ComponentStyleFunction<string, string>>;
@@ -280,7 +282,7 @@ declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
280
282
  Modal?: ComponentStyleFunction<string, string>;
281
283
  MultiSelect?: Record<"container" | "closeButton" | "field" | "input" | "icon" | "listContainer" | "list" | "option" | "tag" | "valueContainer", ComponentStyleFunction<string, string>>;
282
284
  Pagination?: Record<"container" | "navigationButton" | "pageButton" | "icon" | "ellipsis", ComponentStyleFunction<string, string>>;
283
- ProgressCycle?: ComponentStyleFunction<string, string>;
285
+ ProgressCircle?: Record<"container" | "loader" | "label", ComponentStyleFunction<string, string>>;
284
286
  Radio?: Record<"container" | "label" | "radio" | "group", ComponentStyleFunction<string, string>>;
285
287
  Slider?: Record<"container" | "track" | "thumb" | "output" | "selectedTrack", ComponentStyleFunction<string, string>>;
286
288
  Select?: Record<"select" | "icon", ComponentStyleFunction<string, string>>;
@@ -297,7 +299,8 @@ declare const extendTheme: (newStyles: StylesProps, theme: Theme) => {
297
299
  Calendar?: Record<"calendar" | "calendarListboxButton" | "calendarCell" | "calendarControllers" | "calendarHeader" | "calendarGrid" | "select", ComponentStyleFunction<string, string>>;
298
300
  DatePicker?: ComponentStyleFunction<string, string>;
299
301
  ComboBox?: ComponentStyleFunction<string, string>;
300
- XLoader?: Record<"container" | "loader" | "label", ComponentStyleFunction<string, string>>;
302
+ Loader?: Record<"container" | "loader" | "label", ComponentStyleFunction<string, string>>;
303
+ FileField?: Record<"container" | "dropZone" | "dropZoneContent" | "dropZoneLabel" | "item" | "itemLabel" | "itemDescription", ComponentStyleFunction<string, string>>;
301
304
  };
302
305
  name: string;
303
306
  screens?: {
package/dist/index.js CHANGED
@@ -81,7 +81,7 @@ const ensureCssVar = (val, prefix) => isValidCssCustomPropertyName(val) ? `var(-
81
81
  //#endregion
82
82
  //#region src/components/SVG/SVG.tsx
83
83
  const SVG = (0, react.forwardRef)(({ size = 24, children, className, color,...props }, ref) => {
84
- return /* @__PURE__ */ react.default.createElement("svg", {
84
+ return /* @__PURE__ */ React.createElement("svg", {
85
85
  ...props,
86
86
  ref,
87
87
  width: `${props.width || size}px`,
@@ -95,14 +95,14 @@ const SVG = (0, react.forwardRef)(({ size = 24, children, className, color,...pr
95
95
  //#region src/components/Formatters/DateFormat.tsx
96
96
  const DateFormat = ({ value, tabular,...props }) => {
97
97
  const formatter = (0, __react_aria_i18n.useDateFormatter)({ ...props });
98
- return /* @__PURE__ */ react.default.createElement("span", { className: tabular ? "tabular-nums" : "" }, Array.isArray(value) ? formatter.formatRange(value[0], value[1]) : formatter.format(value));
98
+ return /* @__PURE__ */ React.createElement("span", { className: tabular ? "tabular-nums" : "" }, Array.isArray(value) ? formatter.formatRange(value[0], value[1]) : formatter.format(value));
99
99
  };
100
100
 
101
101
  //#endregion
102
102
  //#region src/components/Formatters/NumericFormat.tsx
103
103
  const NumericFormat = ({ value, tabular = true,...props }) => {
104
104
  const formatter = (0, __react_aria_i18n.useNumberFormatter)({ ...props });
105
- return /* @__PURE__ */ react.default.createElement("span", { className: tabular ? "tabular-nums" : void 0 }, Array.isArray(value) ? formatter.formatRange(value[0], value[1]) : formatter.format(value));
105
+ return /* @__PURE__ */ React.createElement("span", { className: tabular ? "tabular-nums" : void 0 }, Array.isArray(value) ? formatter.formatRange(value[0], value[1]) : formatter.format(value));
106
106
  };
107
107
 
108
108
  //#endregion
@@ -126,7 +126,7 @@ const useTheme = () => {
126
126
  return (0, react.useContext)(InternalContext);
127
127
  };
128
128
  function ThemeProvider({ theme, children, className }) {
129
- return /* @__PURE__ */ react.default.createElement(InternalContext.Provider, { value: theme }, /* @__PURE__ */ react.default.createElement("div", { className }, children));
129
+ return /* @__PURE__ */ React.createElement(InternalContext.Provider, { value: theme }, /* @__PURE__ */ React.createElement("div", { className }, children));
130
130
  }
131
131
 
132
132
  //#endregion
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import React, { createContext, forwardRef, useCallback, useContext, useEffect, useRef, useState } from "react";
1
+ import { createContext, forwardRef, useCallback, useContext, useEffect, useRef, useState } from "react";
2
2
  import { cva as cva$1, cx } from "class-variance-authority";
3
3
  import { twMerge } from "tailwind-merge";
4
4
  import { useDateFormatter, useNumberFormatter } from "@react-aria/i18n";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/system",
3
- "version": "15.4.3",
3
+ "version": "16.0.0",
4
4
  "description": "Marigold System Library",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -38,7 +38,7 @@
38
38
  "class-variance-authority": "0.7.1",
39
39
  "deepmerge": "4.3.1",
40
40
  "react-fast-compare": "3.2.2",
41
- "tailwind-merge": "3.3.1",
41
+ "tailwind-merge": "3.4.0",
42
42
  "@marigold/types": "1.4.0"
43
43
  },
44
44
  "peerDependencies": {
@@ -46,12 +46,12 @@
46
46
  "react-dom": ">=17.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@babel/core": "7.28.4",
49
+ "@babel/core": "7.28.5",
50
50
  "@types/react": "19.2.2",
51
51
  "postcss": "8.5.6",
52
52
  "react": "19.2.0",
53
- "tailwindcss": "4.1.14",
54
- "tsdown": "0.15.6",
53
+ "tailwindcss": "4.1.17",
54
+ "tsdown": "0.15.9",
55
55
  "@marigold/tsconfig": "0.4.1"
56
56
  },
57
57
  "scripts": {