@marigold/system 6.0.0 → 6.0.1
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.ts +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ type Theme = {
|
|
|
76
76
|
Footer?: ComponentStyleFunction<string, string>;
|
|
77
77
|
Header?: ComponentStyleFunction<string, string>;
|
|
78
78
|
Headline?: ComponentStyleFunction<string, string>;
|
|
79
|
+
Popover?: ComponentStyleFunction<string, string>;
|
|
79
80
|
HelpText?: Record<'container' | 'icon', ComponentStyleFunction<string, string>>;
|
|
80
81
|
Image?: ComponentStyleFunction<string, string>;
|
|
81
82
|
Checkbox?: Record<'container' | 'label' | 'checkbox', ComponentStyleFunction<string, string>>;
|
|
@@ -116,7 +117,7 @@ interface UseClassNamesProps<C extends ComponentNames> {
|
|
|
116
117
|
type ComponentClassNames<C extends ComponentNames> = ThemeComponent<C> extends (...args: any) => any ? string : {
|
|
117
118
|
[slot in keyof ThemeComponent<C>]: string;
|
|
118
119
|
};
|
|
119
|
-
declare const useClassNames: <C extends "Accordion" | "Badge" | "Body" | "Button" | "Card" | "DateField" | "Dialog" | "Divider" | "Field" | "Footer" | "Header" | "Headline" | "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>;
|
|
120
|
+
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>;
|
|
120
121
|
|
|
121
122
|
/**
|
|
122
123
|
* Hook that can be used to return values based on the current screen size,
|