@elliemae/ds-system 3.46.4 → 3.46.6

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,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const styled: (<C extends import("react").ComponentType<any> | keyof JSX.IntrinsicElements | import("styled-components").AnyStyledComponent>(tag: C, options?: import("./types.js").Options) => import("./types.js").ThemedStyledFunctionBase<C, import("./types.js").Theme, {}, never> & {
2
+ export declare const styled: (<C extends string | number | symbol | import("react").ComponentType<any> | import("styled-components").AnyStyledComponent>(tag: C, options?: import("./types.js").Options) => import("./types.js").ThemedStyledFunctionBase<C, import("./types.js").Theme, {}, never> & {
3
3
  attrs: <U, NewA extends Partial<import("styled-components").StyledComponentPropsWithRef<C> & U> & {
4
4
  [others: string]: any;
5
5
  } = {}>(attrs: NewA | ((props: import("styled-components").ThemedStyledProps<import("styled-components").StyledComponentPropsWithRef<C> & U, import("./types.js").Theme>) => NewA)) => import("styled-components").ThemedStyledFunction<C, import("./types.js").Theme, {} & NewA, string | number | symbol | keyof NewA>;
@@ -1,7 +1,7 @@
1
1
  import type { AnyStyledComponent, ThemedStyledFunction } from 'styled-components';
2
2
  import type { Options, Theme, ThemedStyledFunctionBase } from './types.js';
3
3
  import React from 'react';
4
- export declare const styledFunction: <C extends React.ComponentType<any> | keyof JSX.IntrinsicElements | AnyStyledComponent>(tag: C, options?: Options) => ThemedStyledFunctionBase<C, Theme, {}, never> & {
4
+ export declare const styledFunction: <C extends string | number | symbol | React.ComponentType<any> | AnyStyledComponent>(tag: C, options?: Options) => ThemedStyledFunctionBase<C, Theme, {}, never> & {
5
5
  attrs: <U, NewA extends Partial<import("styled-components").StyledComponentPropsWithRef<C> & U> & {
6
6
  [others: string]: any;
7
7
  } = {}>(attrs: NewA | ((props: import("styled-components").ThemedStyledProps<import("styled-components").StyledComponentPropsWithRef<C> & U, Theme>) => NewA)) => ThemedStyledFunction<C, Theme, {} & NewA, string | number | symbol | keyof NewA>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-system",
3
- "version": "3.46.4",
3
+ "version": "3.46.6",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - System",
6
6
  "files": [
@@ -89,7 +89,7 @@
89
89
  },
90
90
  "publishConfig": {
91
91
  "access": "public",
92
- "typeSafety": true
92
+ "typeSafety": false
93
93
  },
94
94
  "dependencies": {
95
95
  "@xstyled/styled-components": "~3.7.3",
@@ -101,7 +101,7 @@
101
101
  "@elliemae/pui-cli": "9.0.0-next.50",
102
102
  "@elliemae/pui-theme": "~2.10.0",
103
103
  "styled-components": "~5.3.9",
104
- "@elliemae/ds-monorepo-devops": "3.46.4"
104
+ "@elliemae/ds-monorepo-devops": "3.46.6"
105
105
  },
106
106
  "peerDependencies": {
107
107
  "@elliemae/pui-theme": "~2.10.0",
@@ -1,5 +0,0 @@
1
- import { styledFunction } from './styledFunction.js';
2
- export type StyledObject = {
3
- [TTag in keyof JSX.IntrinsicElements]: ReturnType<typeof styledFunction<TTag>>;
4
- };
5
- export declare const styledObject: StyledObject;
@@ -1,51 +0,0 @@
1
- import type { AnyStyledComponent, CSSObject, Interpolation, InterpolationFunction, StyledComponent, StyledComponentInnerComponent, StyledComponentPropsWithRef, ThemedStyledProps } from 'styled-components';
2
- import type { Theme as PuiTheme } from '@elliemae/pui-theme';
3
- import type { ElementType, Ref } from 'react';
4
- import type React from 'react';
5
- export interface Options {
6
- name: string | null;
7
- slot: string | null;
8
- }
9
- export interface Theme extends PuiTheme {
10
- layoutMode?: 'l' | 'm' | 's' | 'xs';
11
- components?: {
12
- [componentName: string]: {
13
- styleOverrides?: CSSObject;
14
- variants?: {
15
- props: Record<string, {
16
- toString: () => string;
17
- }>;
18
- style: CSSObject;
19
- }[];
20
- };
21
- };
22
- }
23
- export type AnyStyledRef<T extends HTMLElement> = React.MutableRefObject<T | null> | ((_ref: T | null) => void) | false | null;
24
- export type StyleArg<T = any> = TemplateStringsArray | CSSObject | InterpolationFunction<T>;
25
- export type Expression<T = any> = Interpolation<T>;
26
- export type Expressions<T = any> = Array<Expression<T>>;
27
- export type PropsWithTheme<T = Record<string, unknown>> = T & {
28
- theme: Theme;
29
- };
30
- type ComponentInnerRef<T extends ElementType> = T extends new (props: infer P) => React.Component<any, any> ? Ref<InstanceType<T>> | undefined : React.PropsWithRef<React.ComponentProps<T>>['ref'];
31
- export type StyledComponentInnerRef<C extends keyof JSX.IntrinsicElements | React.ComponentType<any>> = C extends AnyStyledComponent ? ComponentInnerRef<StyledComponentInnerComponent<C>> : ComponentInnerRef<C>;
32
- export interface ThemedStyledFunctionBase<C extends keyof JSX.IntrinsicElements | React.ComponentType<any>, T extends object, O extends object = {}, A extends keyof any = never> {
33
- <U extends object>(first: StyleArg<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U & OwnerInterface & InnerRefInterface<C>, T>>, ...rest: Expressions<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U & OwnerInterface & InnerRefInterface<C>, T>>): StyledComponent<C, T, O & U & OwnerInterface & InnerRefInterface<C>, A>;
34
- }
35
- export type AttrsFunc<T extends object = Record<string, unknown>> = (props: StyledComponentPropsWithRef<StyledComponentInnerComponent<React.ComponentType<T>>>) => Partial<StyledComponentPropsWithRef<StyledComponentInnerComponent<any>>>;
36
- export type InternalAttrsFunc<T extends object = Record<string, unknown>> = (props: StyledComponentPropsWithRef<StyledComponentInnerComponent<React.ComponentType<T & {
37
- ref?: AnyStyledRef<HTMLElement>;
38
- }>>>, meta: {
39
- options: Options;
40
- displayName: string | null;
41
- }) => Partial<StyledComponentPropsWithRef<StyledComponentInnerComponent<any>>>;
42
- export interface InnerRefInterface<C extends keyof JSX.IntrinsicElements | React.ComponentType<any>> {
43
- innerRef?: StyledComponentInnerRef<C>;
44
- ref?: never;
45
- }
46
- export interface OwnerInterface {
47
- getOwnerProps?: () => object;
48
- getOwnerPropsArguments?: () => object;
49
- }
50
- export type PartProps = Record<string, unknown> | ((args: object) => Record<string, unknown>) | null | undefined;
51
- export {};