@marigold/system 0.5.0 → 0.5.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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +12 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @marigold/system
|
|
2
2
|
|
|
3
|
+
## 0.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1795](https://github.com/marigold-ui/marigold/pull/1795) [`a178eafe`](https://github.com/marigold-ui/marigold/commit/a178eafe8c8380ee23b4587d953ee52b231414ff) Thanks [@ti10le](https://github.com/ti10le)! - refa: use interface instead of type
|
|
8
|
+
|
|
3
9
|
## 0.5.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -13,8 +13,9 @@ declare type StyleObject = ThemeUIStyleObject;
|
|
|
13
13
|
declare type CSSObject = ThemeUICSSObject;
|
|
14
14
|
declare type CSSProperties = ThemeUICSSProperties;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
interface StyleProps extends Pick<CSSObject, 'display' | 'height' | 'width' | 'minWidth' | 'maxWidth' | 'position' | 'top' | 'bottom' | 'right' | 'left' | 'zIndex' | 'p' | 'px' | 'py' | 'pt' | 'pb' | 'pl' | 'pr' | 'm' | 'mx' | 'my' | 'mt' | 'mb' | 'ml' | 'mr' | 'flexDirection' | 'flexWrap' | 'flexShrink' | 'flexGrow' | 'alignItems' | 'justifyContent' | 'bg' | 'border' | 'borderRadius' | 'boxShadow' | 'opacity' | 'overflow' | 'transition'> {
|
|
17
|
+
}
|
|
18
|
+
interface BoxOwnProps extends StyleProps {
|
|
18
19
|
css?: CSSObject;
|
|
19
20
|
variant?: string | string[];
|
|
20
21
|
/**
|
|
@@ -22,8 +23,9 @@ declare type BoxOwnProps = {
|
|
|
22
23
|
* @internal Used to set default styles for Marigold components
|
|
23
24
|
*/
|
|
24
25
|
__baseCSS?: CSSObject;
|
|
25
|
-
}
|
|
26
|
-
|
|
26
|
+
}
|
|
27
|
+
interface BoxProps extends PolymorphicPropsWithRef<BoxOwnProps, 'div'> {
|
|
28
|
+
}
|
|
27
29
|
declare const Box: PolymorphicComponentWithRef<BoxOwnProps, 'div'>;
|
|
28
30
|
|
|
29
31
|
declare const Global: () => JSX.Element;
|
|
@@ -177,9 +179,9 @@ declare const getNormalizedStyles: (val?: ElementType<any> | undefined) => {
|
|
|
177
179
|
readonly minWidth: 0;
|
|
178
180
|
};
|
|
179
181
|
|
|
180
|
-
|
|
182
|
+
interface SVGProps extends ComponentProps<'svg'> {
|
|
181
183
|
size?: number;
|
|
182
|
-
}
|
|
184
|
+
}
|
|
183
185
|
declare const SVG: React.FC<SVGProps>;
|
|
184
186
|
|
|
185
187
|
/**
|
|
@@ -332,10 +334,10 @@ declare const useTheme: () => {
|
|
|
332
334
|
theme: Theme;
|
|
333
335
|
css: (style: StyleObject) => _theme_ui_css.CSSObject;
|
|
334
336
|
};
|
|
335
|
-
|
|
337
|
+
interface ThemeProviderProps<T extends Theme> {
|
|
336
338
|
theme: T;
|
|
337
339
|
children: ReactNode;
|
|
338
|
-
}
|
|
340
|
+
}
|
|
339
341
|
declare function ThemeProvider<T extends Theme>({ theme, children, }: ThemeProviderProps<T>): JSX.Element;
|
|
340
342
|
|
|
341
343
|
/**
|
|
@@ -351,13 +353,13 @@ declare const ensureVariantDefault: (val: string) => string;
|
|
|
351
353
|
* Ensures that the `variant` is an array and supports the `__default` key.
|
|
352
354
|
*/
|
|
353
355
|
declare const ensureArrayVariant: <T extends string>(variant?: T | T[] | undefined) => string[];
|
|
354
|
-
|
|
356
|
+
interface State {
|
|
355
357
|
checked?: boolean;
|
|
356
358
|
focus?: boolean;
|
|
357
359
|
hover?: boolean;
|
|
358
360
|
disabled?: boolean;
|
|
359
361
|
error?: boolean;
|
|
360
|
-
}
|
|
362
|
+
}
|
|
361
363
|
/**
|
|
362
364
|
* Appends given `state` to a `variant`.
|
|
363
365
|
*/
|