@marigold/system 4.2.0 → 4.2.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +14 -14
  2. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -5,22 +5,22 @@ import * as react from 'react';
5
5
  import { ReactNode } from 'react';
6
6
  import * as CSS from 'csstype';
7
7
 
8
- declare type ResponsiveStyleValue<T> = ResponsiveStyleValue$1<T>;
9
- declare type StyleObject = ThemeUIStyleObject;
10
- declare type CSSObject = Simplify<ThemeUICSSObject>;
11
- declare type CSSProperties = Simplify<ThemeUICSSProperties>;
8
+ type ResponsiveStyleValue<T> = ResponsiveStyleValue$1<T>;
9
+ type StyleObject = ThemeUIStyleObject;
10
+ type CSSObject = Simplify<ThemeUICSSObject>;
11
+ type CSSProperties = Simplify<ThemeUICSSProperties>;
12
12
 
13
13
  /**
14
14
  * Props that every component should accepts to change the styling
15
15
  */
16
- declare type ThemeComponentProps = {
16
+ type ThemeComponentProps = {
17
17
  variant?: string;
18
18
  size?: string;
19
19
  };
20
20
  /**
21
21
  * Structure for component styles in a theme.
22
22
  */
23
- declare type ThemeExtension<ComponentName extends string> = {
23
+ type ThemeExtension<ComponentName extends string> = {
24
24
  [P in ComponentName]?: {
25
25
  base?: CSSObject;
26
26
  variant?: {
@@ -34,7 +34,7 @@ declare type ThemeExtension<ComponentName extends string> = {
34
34
  /**
35
35
  * Structure for component styles in a theme that consists of multiple parts.
36
36
  */
37
- declare type ThemeExtensionsWithParts<ComponentName extends string, Parts extends string[]> = {
37
+ type ThemeExtensionsWithParts<ComponentName extends string, Parts extends string[]> = {
38
38
  [P in ComponentName]?: {
39
39
  base?: {
40
40
  [Part in Parts[number]]?: CSSObject;
@@ -67,7 +67,7 @@ declare type ThemeExtensionsWithParts<ComponentName extends string, Parts extend
67
67
  * ```
68
68
  * `css{{ color: 'primary' }}` resolves to `color: #00f`.
69
69
  */
70
- declare type ScaleValue<T> = T | T[] | NestedScaleDict<T> | undefined;
70
+ type ScaleValue<T> = T | T[] | NestedScaleDict<T> | undefined;
71
71
  /**
72
72
  * Scales are a set of named, pre-defined CSS values which are used
73
73
  * to create consitency in sizing across visual elements. They give
@@ -219,7 +219,7 @@ interface BoxProps extends PolymorphicPropsWithRef<BoxOwnProps, 'div'> {
219
219
  }
220
220
  declare const Box: PolymorphicComponentWithRef<BoxOwnProps, 'div'>;
221
221
 
222
- declare type GlobalProps = {
222
+ type GlobalProps = {
223
223
  /**
224
224
  * CSS Selector to change the element that the styles will be applied to.
225
225
  */
@@ -241,7 +241,7 @@ interface ComponentStylesProps {
241
241
  variant?: string;
242
242
  size?: string;
243
243
  }
244
- declare type ComponentStyleParts<Parts extends string[]> = {
244
+ type ComponentStyleParts<Parts extends string[]> = {
245
245
  [P in Parts[number]]: CSSObject;
246
246
  };
247
247
  declare function useComponentStyles(componentName: string, props?: ComponentStylesProps, options?: {
@@ -260,12 +260,12 @@ declare function useComponentStyles<Part extends string, Parts extends ReadonlyA
260
260
  */
261
261
  declare const useResponsiveValue: <T>(values: T[], defaultIndex?: number) => T;
262
262
 
263
- declare type ComponentState = 'hover' | 'focus' | 'focusVisible' | 'active' | 'visited' | 'disabled' | 'readOnly' | 'checked' | 'selected' | 'indeterminate' | 'expanded' | 'error';
264
- declare type StateAttrKeyProps = `data-${KebabCase<ComponentState>}`;
265
- declare type StateAttrProps = {
263
+ type ComponentState = 'hover' | 'focus' | 'focusVisible' | 'active' | 'visited' | 'disabled' | 'readOnly' | 'checked' | 'selected' | 'indeterminate' | 'expanded' | 'error';
264
+ type StateAttrKeyProps = `data-${KebabCase<ComponentState>}`;
265
+ type StateAttrProps = {
266
266
  [key in StateAttrKeyProps]?: '';
267
267
  };
268
- declare type UseStateProps = {
268
+ type UseStateProps = {
269
269
  [key in ComponentState]?: boolean;
270
270
  };
271
271
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marigold/system",
3
- "version": "4.2.0",
3
+ "version": "4.2.2",
4
4
  "description": "Marigold System Library",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -27,21 +27,21 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@emotion/react": "11.10.5",
30
- "@marigold/types": "0.5.7",
31
30
  "@theme-ui/css": "0.15.4",
32
31
  "csstype": "3.1.1",
33
32
  "deepmerge": "^4.2.2",
34
- "react-fast-compare": "^3.2.0"
33
+ "react-fast-compare": "^3.2.0",
34
+ "@marigold/types": "0.5.7"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": "16.x || 17.x || 18.x",
38
38
  "react-dom": "16.x || 17.x || 18.x"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/core": "7.20.5",
42
- "@marigold/tsconfig": "0.3.1",
41
+ "@babel/core": "7.20.12",
43
42
  "react": "18.2.0",
44
- "tsup": "6.4.0"
43
+ "tsup": "6.5.0",
44
+ "@marigold/tsconfig": "0.4.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "tsup src/index.ts",