@marigold/system 7.3.3 → 7.4.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Marigold UI
3
+ Copyright (c) 2024 Marigold UI
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.mts CHANGED
@@ -130,6 +130,7 @@ type Theme = {
130
130
  Underlay?: ComponentStyleFunction<string, string>;
131
131
  Calendar?: Record<'calendar' | 'calendarCell' | 'calendarControllers' | 'calendarHeader' | 'calendarGrid', ComponentStyleFunction<string, string>>;
132
132
  DatePicker?: Record<'container' | 'button', ComponentStyleFunction<string, string>>;
133
+ ComboBox?: ComponentStyleFunction<string, string>;
133
134
  };
134
135
  };
135
136
  type ComponentNames = keyof Theme['components'];
@@ -146,7 +147,7 @@ interface UseClassNamesProps<C extends ComponentNames> {
146
147
  type ComponentClassNames<C extends ComponentNames> = ThemeComponent<C> extends (...args: any) => any ? string : {
147
148
  [slot in keyof ThemeComponent<C>]: string;
148
149
  };
149
- declare const useClassNames: <C extends "Accordion" | "Badge" | "Body" | "Button" | "Card" | "DateField" | "Dialog" | "Divider" | "Field" | "Footer" | "Header" | "Headline" | "Popover" | "HelpText" | "Image" | "Checkbox" | "Switch" | "Input" | "Label" | "List" | "Link" | "ListBox" | "Menu" | "Radio" | "Slider" | "Select" | "NumberField" | "Message" | "Table" | "Tag" | "Text" | "TextArea" | "Tooltip" | "Tabs" | "Underlay" | "Calendar" | "DatePicker">({ component, className, variant, size, }: UseClassNamesProps<C>) => ComponentClassNames<C>;
150
+ declare const useClassNames: <C extends "Accordion" | "Badge" | "Body" | "Button" | "Card" | "DateField" | "Dialog" | "Divider" | "Field" | "Footer" | "Header" | "Headline" | "Popover" | "HelpText" | "Image" | "Checkbox" | "Switch" | "Input" | "Label" | "List" | "Link" | "ListBox" | "Menu" | "Radio" | "Slider" | "Select" | "NumberField" | "Message" | "Table" | "Tag" | "Text" | "TextArea" | "Tooltip" | "Tabs" | "Underlay" | "Calendar" | "DatePicker" | "ComboBox">({ component, className, variant, size, }: UseClassNamesProps<C>) => ComponentClassNames<C>;
150
151
 
151
152
  /**
152
153
  * Hook that can be used to return values based on the current screen size,
package/dist/index.d.ts CHANGED
@@ -130,6 +130,7 @@ type Theme = {
130
130
  Underlay?: ComponentStyleFunction<string, string>;
131
131
  Calendar?: Record<'calendar' | 'calendarCell' | 'calendarControllers' | 'calendarHeader' | 'calendarGrid', ComponentStyleFunction<string, string>>;
132
132
  DatePicker?: Record<'container' | 'button', ComponentStyleFunction<string, string>>;
133
+ ComboBox?: ComponentStyleFunction<string, string>;
133
134
  };
134
135
  };
135
136
  type ComponentNames = keyof Theme['components'];
@@ -146,7 +147,7 @@ interface UseClassNamesProps<C extends ComponentNames> {
146
147
  type ComponentClassNames<C extends ComponentNames> = ThemeComponent<C> extends (...args: any) => any ? string : {
147
148
  [slot in keyof ThemeComponent<C>]: string;
148
149
  };
149
- declare const useClassNames: <C extends "Accordion" | "Badge" | "Body" | "Button" | "Card" | "DateField" | "Dialog" | "Divider" | "Field" | "Footer" | "Header" | "Headline" | "Popover" | "HelpText" | "Image" | "Checkbox" | "Switch" | "Input" | "Label" | "List" | "Link" | "ListBox" | "Menu" | "Radio" | "Slider" | "Select" | "NumberField" | "Message" | "Table" | "Tag" | "Text" | "TextArea" | "Tooltip" | "Tabs" | "Underlay" | "Calendar" | "DatePicker">({ component, className, variant, size, }: UseClassNamesProps<C>) => ComponentClassNames<C>;
150
+ declare const useClassNames: <C extends "Accordion" | "Badge" | "Body" | "Button" | "Card" | "DateField" | "Dialog" | "Divider" | "Field" | "Footer" | "Header" | "Headline" | "Popover" | "HelpText" | "Image" | "Checkbox" | "Switch" | "Input" | "Label" | "List" | "Link" | "ListBox" | "Menu" | "Radio" | "Slider" | "Select" | "NumberField" | "Message" | "Table" | "Tag" | "Text" | "TextArea" | "Tooltip" | "Tabs" | "Underlay" | "Calendar" | "DatePicker" | "ComboBox">({ component, className, variant, size, }: UseClassNamesProps<C>) => ComponentClassNames<C>;
150
151
 
151
152
  /**
152
153
  * Hook that can be used to return values based on the current screen size,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/system",
3
- "version": "7.3.3",
3
+ "version": "7.4.0",
4
4
  "description": "Marigold System Library",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -28,7 +28,7 @@
28
28
  "class-variance-authority": "0.7.0",
29
29
  "deepmerge": "^4.2.2",
30
30
  "react-fast-compare": "^3.2.0",
31
- "tailwind-merge": "2.2.0",
31
+ "tailwind-merge": "2.2.1",
32
32
  "@marigold/types": "1.1.0"
33
33
  },
34
34
  "peerDependencies": {
@@ -37,10 +37,10 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@babel/core": "7.23.9",
40
- "postcss": "8.4.33",
40
+ "postcss": "8.4.35",
41
41
  "react": "18.2.0",
42
42
  "tailwindcss": "3.4.1",
43
- "tsup": "8.0.1",
43
+ "tsup": "8.0.2",
44
44
  "@marigold/tsconfig": "0.4.0"
45
45
  },
46
46
  "scripts": {