@lidofinance/lido-ui 3.18.0 → 3.18.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/cjs/styled-system/withStyledSystem.js +3 -1
- package/dist/cjs/styled-system/withStyledSystem.js.map +1 -1
- package/dist/esm/styled-system/withStyledSystem.mjs +3 -1
- package/dist/esm/styled-system/withStyledSystem.mjs.map +1 -1
- package/dist/types/styled-system/withStyledSystem.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const styledComponentsWrapper = require('../utils/styled-components-wrapper.js');
|
|
4
|
-
const
|
|
4
|
+
const _shouldForwardProp = require('@styled-system/should-forward-prop');
|
|
5
5
|
const styledSystem = require('styled-system');
|
|
6
6
|
|
|
7
7
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
const shouldForwardProp = _shouldForwardProp.default || _shouldForwardProp;
|
|
11
|
+
|
|
10
12
|
function withStyledSystem(Component) {
|
|
11
13
|
return styledComponentsWrapper.default(Component).withConfig({
|
|
12
14
|
shouldForwardProp
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withStyledSystem.js","sources":["../../../packages/styled-system/withStyledSystem.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport styled, {\n AnyStyledComponent,\n StyledComponent,\n StyledComponentInnerComponent,\n StyledComponentInnerOtherProps,\n StyledComponentInnerAttrs,\n DefaultTheme,\n} from '../utils/styled-components-wrapper.js'\nimport
|
|
1
|
+
{"version":3,"file":"withStyledSystem.js","sources":["../../../packages/styled-system/withStyledSystem.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport styled, {\n AnyStyledComponent,\n StyledComponent,\n StyledComponentInnerComponent,\n StyledComponentInnerOtherProps,\n StyledComponentInnerAttrs,\n DefaultTheme,\n} from '../utils/styled-components-wrapper.js'\n\n// The `@styled-system/should-forward-prop` has issues with ESM modules:\nimport _shouldForwardProp from '@styled-system/should-forward-prop'\n// @ts-expect-error Property 'default' does not exist on type 'genericShouldForwardProp'\nconst shouldForwardProp = _shouldForwardProp.default || _shouldForwardProp\n\nimport {\n compose,\n space,\n color,\n typography,\n layout,\n flexbox,\n grid,\n background,\n border,\n position,\n shadow,\n} from 'styled-system'\nimport { ComponentType } from 'react'\nimport { StyledSystemProps } from './types.js'\n\ntype MergePropsWithSS<T extends object> = Omit<T, keyof StyledSystemProps> &\n StyledSystemProps\n\nfunction withStyledSystem<\n C extends AnyStyledComponent,\n T extends object = DefaultTheme,\n O extends object = {},\n A extends keyof any = never,\n>(\n Component: C,\n): StyledComponent<\n StyledComponentInnerComponent<C>,\n T,\n MergePropsWithSS<O & StyledComponentInnerOtherProps<C>>,\n A | StyledComponentInnerAttrs<C>\n>\n\nfunction withStyledSystem<\n C extends keyof JSX.IntrinsicElements | ComponentType<any>,\n T extends object = DefaultTheme,\n O extends object = {},\n A extends keyof any = never,\n>(Component: C): StyledComponent<C, T, MergePropsWithSS<O>, A>\n\nfunction withStyledSystem(Component: any) {\n return styled(Component).withConfig<{}>({\n shouldForwardProp,\n })<StyledSystemProps>(\n compose(\n space,\n color,\n typography,\n layout,\n flexbox,\n grid,\n background,\n border,\n position,\n shadow,\n ),\n )\n}\n\nexport default withStyledSystem\n"],"names":["shouldForwardProp","_shouldForwardProp","default","withStyledSystem","Component","styled","withConfig","compose","space","color","typography","layout","flexbox","grid","background","border","position","shadow"],"mappings":";;;;;;AAAA;;;AAgBA,MAAMA,iBAAiB,GAAGC,kBAAkB,CAACC,OAAnB,IAA8BD,kBAAxD,CAAA;;AA0CA,SAASE,gBAAT,CAA0BC,SAA1B,EAA0C;AACxC,EAAA,OAAOC,+BAAM,CAACD,SAAD,CAAN,CAAkBE,UAAlB,CAAiC;AACtCN,IAAAA,iBAAAA;GADK,CAAA,CAGLO,oBAAO,CACLC,kBADK,EAELC,kBAFK,EAGLC,uBAHK,EAILC,mBAJK,EAKLC,oBALK,EAMLC,iBANK,EAOLC,uBAPK,EAQLC,mBARK,EASLC,qBATK,EAULC,mBAVK,CAHF,CAAP,CAAA;AAgBD;;;;"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import styled from '../utils/styled-components-wrapper.mjs';
|
|
2
|
-
import
|
|
2
|
+
import _shouldForwardProp from '@styled-system/should-forward-prop';
|
|
3
3
|
import { compose, space, color, typography, layout, flexbox, grid, background, border, position, shadow } from 'styled-system';
|
|
4
4
|
|
|
5
5
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
const shouldForwardProp = _shouldForwardProp.default || _shouldForwardProp;
|
|
9
|
+
|
|
8
10
|
function withStyledSystem(Component) {
|
|
9
11
|
return styled(Component).withConfig({
|
|
10
12
|
shouldForwardProp
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withStyledSystem.mjs","sources":["../../../packages/styled-system/withStyledSystem.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport styled, {\n AnyStyledComponent,\n StyledComponent,\n StyledComponentInnerComponent,\n StyledComponentInnerOtherProps,\n StyledComponentInnerAttrs,\n DefaultTheme,\n} from '../utils/styled-components-wrapper.js'\nimport
|
|
1
|
+
{"version":3,"file":"withStyledSystem.mjs","sources":["../../../packages/styled-system/withStyledSystem.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport styled, {\n AnyStyledComponent,\n StyledComponent,\n StyledComponentInnerComponent,\n StyledComponentInnerOtherProps,\n StyledComponentInnerAttrs,\n DefaultTheme,\n} from '../utils/styled-components-wrapper.js'\n\n// The `@styled-system/should-forward-prop` has issues with ESM modules:\nimport _shouldForwardProp from '@styled-system/should-forward-prop'\n// @ts-expect-error Property 'default' does not exist on type 'genericShouldForwardProp'\nconst shouldForwardProp = _shouldForwardProp.default || _shouldForwardProp\n\nimport {\n compose,\n space,\n color,\n typography,\n layout,\n flexbox,\n grid,\n background,\n border,\n position,\n shadow,\n} from 'styled-system'\nimport { ComponentType } from 'react'\nimport { StyledSystemProps } from './types.js'\n\ntype MergePropsWithSS<T extends object> = Omit<T, keyof StyledSystemProps> &\n StyledSystemProps\n\nfunction withStyledSystem<\n C extends AnyStyledComponent,\n T extends object = DefaultTheme,\n O extends object = {},\n A extends keyof any = never,\n>(\n Component: C,\n): StyledComponent<\n StyledComponentInnerComponent<C>,\n T,\n MergePropsWithSS<O & StyledComponentInnerOtherProps<C>>,\n A | StyledComponentInnerAttrs<C>\n>\n\nfunction withStyledSystem<\n C extends keyof JSX.IntrinsicElements | ComponentType<any>,\n T extends object = DefaultTheme,\n O extends object = {},\n A extends keyof any = never,\n>(Component: C): StyledComponent<C, T, MergePropsWithSS<O>, A>\n\nfunction withStyledSystem(Component: any) {\n return styled(Component).withConfig<{}>({\n shouldForwardProp,\n })<StyledSystemProps>(\n compose(\n space,\n color,\n typography,\n layout,\n flexbox,\n grid,\n background,\n border,\n position,\n shadow,\n ),\n )\n}\n\nexport default withStyledSystem\n"],"names":["shouldForwardProp","_shouldForwardProp","default","withStyledSystem","Component","styled","withConfig","compose","space","color","typography","layout","flexbox","grid","background","border","position","shadow"],"mappings":";;;;AAAA;;;AAgBA,MAAMA,iBAAiB,GAAGC,kBAAkB,CAACC,OAAnB,IAA8BD,kBAAxD,CAAA;;AA0CA,SAASE,gBAAT,CAA0BC,SAA1B,EAA0C;AACxC,EAAA,OAAOC,MAAM,CAACD,SAAD,CAAN,CAAkBE,UAAlB,CAAiC;AACtCN,IAAAA,iBAAAA;GADK,CAAA,CAGLO,OAAO,CACLC,KADK,EAELC,KAFK,EAGLC,UAHK,EAILC,MAJK,EAKLC,OALK,EAMLC,IANK,EAOLC,UAPK,EAQLC,MARK,EASLC,QATK,EAULC,MAVK,CAHF,CAAP,CAAA;AAgBD;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withStyledSystem.d.ts","sourceRoot":"","sources":["../../../packages/styled-system/withStyledSystem.tsx"],"names":[],"mappings":"AAIA,OAAe,EACb,kBAAkB,EAClB,eAAe,EACf,6BAA6B,EAC7B,8BAA8B,EAC9B,yBAAyB,EACzB,YAAY,EACb,MAAM,uCAAuC,CAAA;
|
|
1
|
+
{"version":3,"file":"withStyledSystem.d.ts","sourceRoot":"","sources":["../../../packages/styled-system/withStyledSystem.tsx"],"names":[],"mappings":"AAIA,OAAe,EACb,kBAAkB,EAClB,eAAe,EACf,6BAA6B,EAC7B,8BAA8B,EAC9B,yBAAyB,EACzB,YAAY,EACb,MAAM,uCAAuC,CAAA;AAoB9C,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,aAAK,gBAAgB,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,iBAAiB,CAAC,GACxE,iBAAiB,CAAA;AAEnB,iBAAS,gBAAgB,CACvB,CAAC,SAAS,kBAAkB,EAC5B,CAAC,SAAS,MAAM,GAAG,YAAY,EAC/B,CAAC,SAAS,MAAM,GAAG,EAAE,EACrB,CAAC,SAAS,MAAM,GAAG,GAAG,KAAK,EAE3B,SAAS,EAAE,CAAC,GACX,eAAe,CAChB,6BAA6B,CAAC,CAAC,CAAC,EAChC,CAAC,EACD,gBAAgB,CAAC,CAAC,GAAG,8BAA8B,CAAC,CAAC,CAAC,CAAC,EACvD,CAAC,GAAG,yBAAyB,CAAC,CAAC,CAAC,CACjC,CAAA;AAED,iBAAS,gBAAgB,CACvB,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GAAG,aAAa,CAAC,GAAG,CAAC,EAC1D,CAAC,SAAS,MAAM,GAAG,YAAY,EAC/B,CAAC,SAAS,MAAM,GAAG,EAAE,EACrB,CAAC,SAAS,MAAM,GAAG,GAAG,KAAK,EAC3B,SAAS,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;AAqB9D,eAAe,gBAAgB,CAAA"}
|