@devup-ui/react 1.0.11 → 1.0.12

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.
@@ -1,4 +1,4 @@
1
- import { DevupProps } from '../types/props';
1
+ import { DevupComponentProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Box<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
3
+ export declare function Box<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupComponentProps<T>>): React.ReactElement;
4
4
  //# sourceMappingURL=Box.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,GAAG,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAErD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/components/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,GAAG,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAErD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAC5D,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
- import { DevupProps } from '../types/props';
1
+ import { DevupComponentProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Button<T extends React.ElementType = 'button'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
3
+ export declare function Button<T extends React.ElementType = 'button'>(props: Merge<React.ComponentProps<T>, DevupComponentProps<T>>): React.ReactElement;
4
4
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAE3D,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAE3D,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAC5D,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
- import { DevupProps } from '../types/props';
1
+ import { DevupComponentProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Center<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
3
+ export declare function Center<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupComponentProps<T>>): React.ReactElement;
4
4
  //# sourceMappingURL=Center.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../src/components/Center.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAExD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Center.d.ts","sourceRoot":"","sources":["../../src/components/Center.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAExD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAC5D,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
- import { DevupProps } from '../types/props';
1
+ import { DevupComponentProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Flex<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
3
+ export declare function Flex<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupComponentProps<T>>): React.ReactElement;
4
4
  //# sourceMappingURL=Flex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../src/components/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAEtD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../src/components/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAEtD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAC5D,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
- import { DevupProps } from '../types/props';
1
+ import { DevupComponentProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Grid<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
3
+ export declare function Grid<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupComponentProps<T>>): React.ReactElement;
4
4
  //# sourceMappingURL=Grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../src/components/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAEtD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../src/components/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAEtD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAC5D,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
- import { DevupProps } from '../types/props';
1
+ import { DevupComponentProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Image<T extends React.ElementType = 'img'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
3
+ export declare function Image<T extends React.ElementType = 'img'>(props: Merge<React.ComponentProps<T>, DevupComponentProps<T>>): React.ReactElement;
4
4
  //# sourceMappingURL=Image.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../src/components/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAEvD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../src/components/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAEvD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAC5D,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
- import { DevupProps } from '../types/props';
1
+ import { DevupComponentProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Input<T extends React.ElementType = 'input'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
3
+ export declare function Input<T extends React.ElementType = 'input'>(props: Merge<React.ComponentProps<T>, DevupComponentProps<T>>): React.ReactElement;
4
4
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,OAAO,EAEzD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,OAAO,EAEzD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAC5D,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,4 +1,4 @@
1
- import { DevupProps } from '../types/props';
1
+ import { DevupComponentProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function Text<T extends React.ElementType = 'span'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
3
+ export declare function Text<T extends React.ElementType = 'span'>(props: Merge<React.ComponentProps<T>, DevupComponentProps<T>>): React.ReactElement;
4
4
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAEvD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/components/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAEvD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAC5D,KAAK,CAAC,YAAY,CAEpB"}
@@ -1,5 +1,5 @@
1
- import { Conditional } from 'src/types/utils';
2
1
  import { DevupTheme } from '../types/theme';
2
+ import { Conditional } from '../types/utils';
3
3
  interface ThemeScriptProps {
4
4
  auto?: boolean;
5
5
  theme?: Conditional<DevupTheme>;
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeScript.d.ts","sourceRoot":"","sources":["../../src/components/ThemeScript.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAElD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAEhD,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;CAChC;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAW,EAAE,KAAK,EAAE,EAAE,gBAAgB,2CAUnE"}
1
+ {"version":3,"file":"ThemeScript.d.ts","sourceRoot":"","sources":["../../src/components/ThemeScript.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAEjD,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAA;CAChC;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAW,EAAE,KAAK,EAAE,EAAE,gBAAgB,2CAUnE"}
@@ -1,4 +1,4 @@
1
- import { DevupProps } from '../types/props';
1
+ import { DevupComponentProps } from '../types/props';
2
2
  import { Merge } from '../types/utils';
3
- export declare function VStack<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupProps<T>>): React.ReactElement;
3
+ export declare function VStack<T extends React.ElementType = 'div'>(props: Merge<React.ComponentProps<T>, DevupComponentProps<T>>): React.ReactElement;
4
4
  //# sourceMappingURL=VStack.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../src/components/VStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAExD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,GACnD,KAAK,CAAC,YAAY,CAEpB"}
1
+ {"version":3,"file":"VStack.d.ts","sourceRoot":"","sources":["../../src/components/VStack.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAE3C,wBAAgB,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,KAAK,EAExD,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC,GAC5D,KAAK,CAAC,YAAY,CAEpB"}
@@ -16,7 +16,11 @@ export interface DevupShortcutsProps extends DevupUiBackgroundProps, DevupUiBord
16
16
  export type DevupCommonProps = Merge<{
17
17
  [K in keyof Properties]?: ResponsiveValue<Properties[K]>;
18
18
  }, DevupShortcutsProps>;
19
- export interface DevupProps<T extends React.ElementType> extends DevupCommonProps, DevupSelectorProps, DevupThemeSelectorProps {
19
+ export interface DevupProps extends DevupCommonProps, DevupSelectorProps {
20
+ }
21
+ export interface DevupPropsWithTheme extends DevupProps, DevupThemeSelectorProps {
22
+ }
23
+ export interface DevupComponentProps<T extends React.ElementType> extends DevupPropsWithTheme {
20
24
  as?: T;
21
25
  styleVars?: Record<string, string | undefined>;
22
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/props/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAE9C,MAAM,WAAW,mBACf,SAAQ,sBAAsB,EAC5B,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB;CAAG;AACvB,MAAM,MAAM,gBAAgB,GAAG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,EAC5B,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB;CAAG;AAEvB,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAClC;KACG,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;CACzD,EACD,mBAAmB,CACpB,CAAA;AAED,MAAM,WAAW,UAAW,SAAQ,gBAAgB,EAAE,kBAAkB;CAAG;AAE3E,MAAM,WAAW,mBACf,SAAQ,UAAU,EAChB,uBAAuB;CAAG;AAE9B,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAC9D,SAAQ,mBAAmB;IAC3B,EAAE,CAAC,EAAE,CAAC,CAAA;IACN,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAA;CAC/C"}
@@ -1,13 +1,13 @@
1
1
  import { Pseudos } from 'csstype';
2
2
  import { ResponsiveValue } from '../../responsive-value';
3
3
  import { DevupTheme } from '../../theme';
4
- import { DevupCommonProps } from '../index';
4
+ import { DevupProps } from '../index';
5
5
  type CamelCase<S extends string> = S extends Lowercase<S> ? S extends `${infer F}-${infer RF}${infer R}` ? `${F}${Uppercase<RF>}${CamelCase<R>}` : S : CamelCase<Lowercase<S>>;
6
6
  type PascalCase<S extends string> = Capitalize<CamelCase<S>>;
7
- export type DevupThemeSelectorProps = keyof DevupTheme extends undefined ? Record<`_theme${string}`, DevupCommonProps & DevupSelectorProps> : {
8
- [K in keyof DevupTheme as `_theme${PascalCase<K>}`]?: DevupCommonProps & DevupSelectorProps;
7
+ type SelectorProps = ResponsiveValue<DevupProps | string | false>;
8
+ export type DevupThemeSelectorProps = keyof DevupTheme extends undefined ? Record<`_theme${string}`, SelectorProps> : {
9
+ [K in keyof DevupTheme as `_theme${PascalCase<K>}`]?: SelectorProps;
9
10
  };
10
- type SelectorProps = ResponsiveValue<(DevupCommonProps & DevupSelectorProps & DevupThemeSelectorProps) | string | false>;
11
11
  type NormalSelector = Exclude<Pseudos, `:-${string}` | `::-${string}` | `${string}()`>;
12
12
  type ExtractSelector<T> = T extends `::${infer R}` ? R : T extends `:${infer R}` ? R : never;
13
13
  export type CommonSelectorProps = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/props/selector/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD,KAAK,SAAS,CAAC,CAAC,SAAS,MAAM,IAC7B,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,GAClB,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,GAC1C,GAAG,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,EAAE,GACrC,CAAC,GACH,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;AAE7B,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;AAE5D,MAAM,MAAM,uBAAuB,GAAG,MAAM,UAAU,SAAS,SAAS,GACpE,MAAM,CAAC,SAAS,MAAM,EAAE,EAAE,gBAAgB,GAAG,kBAAkB,CAAC,GAChE;KACG,CAAC,IAAI,MAAM,UAAU,IAAI,SAAS,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,gBAAgB,GACpE,kBAAkB;CACrB,CAAA;AAEL,KAAK,aAAa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+1,5 @@
1
- import { DevupCommonProps } from '../types/props';
2
- import { DevupSelectorProps, DevupThemeSelectorProps } from '../types/props/selector';
3
- export declare function css(props: DevupCommonProps | DevupSelectorProps | DevupThemeSelectorProps): string;
1
+ import { DevupPropsWithTheme } from '../types/props';
2
+ export declare function css(props: DevupPropsWithTheme): string;
4
3
  export declare function css(strings: TemplateStringsArray): string;
5
4
  export declare function css(): string;
6
5
  //# sourceMappingURL=css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/utils/css.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AAEtE,wBAAgB,GAAG,CACjB,KAAK,EAAE,gBAAgB,GAAG,kBAAkB,GAAG,uBAAuB,GACrE,MAAM,CAAA;AACT,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAAA;AAC1D,wBAAgB,GAAG,IAAI,MAAM,CAAA"}
1
+ {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/utils/css.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEzD,wBAAgB,GAAG,CAAC,KAAK,EAAE,mBAAmB,GAAG,MAAM,CAAA;AACvD,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB,GAAG,MAAM,CAAA;AAC1D,wBAAgB,GAAG,IAAI,MAAM,CAAA"}
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "css-in-js-framework",
17
17
  "react"
18
18
  ],
19
- "version": "1.0.11",
19
+ "version": "1.0.12",
20
20
  "type": "module",
21
21
  "publishConfig": {
22
22
  "access": "public"