@vitus-labs/core 0.67.0 → 0.69.0
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.
|
@@ -6618,7 +6618,7 @@ var drawChart = (function (exports) {
|
|
|
6618
6618
|
</script>
|
|
6619
6619
|
<script>
|
|
6620
6620
|
/*<!--*/
|
|
6621
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-core.js","children":[{"name":"src","children":[{"uid":"
|
|
6621
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-core.js","children":[{"name":"src","children":[{"uid":"7917-1","name":"config.ts"},{"uid":"7917-3","name":"isEmpty.ts"},{"uid":"7917-5","name":"context.tsx"},{"uid":"7917-7","name":"compose.ts"},{"uid":"7917-9","name":"render.ts"},{"name":"html/htmlTags.ts","uid":"7917-11"},{"uid":"7917-13","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"7917-1":{"renderedLength":708,"gzipLength":248,"brotliLength":0,"metaUid":"7917-0"},"7917-3":{"renderedLength":349,"gzipLength":177,"brotliLength":0,"metaUid":"7917-2"},"7917-5":{"renderedLength":785,"gzipLength":330,"brotliLength":0,"metaUid":"7917-4"},"7917-7":{"renderedLength":207,"gzipLength":153,"brotliLength":0,"metaUid":"7917-6"},"7917-9":{"renderedLength":837,"gzipLength":301,"brotliLength":0,"metaUid":"7917-8"},"7917-11":{"renderedLength":1715,"gzipLength":502,"brotliLength":0,"metaUid":"7917-10"},"7917-13":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"7917-12"}},"nodeMetas":{"7917-0":{"id":"/src/config.ts","moduleParts":{"vitus-labs-core.js":"7917-1"},"imported":[{"uid":"7917-17"}],"importedBy":[{"uid":"7917-12"},{"uid":"7917-4"}]},"7917-2":{"id":"/src/isEmpty.ts","moduleParts":{"vitus-labs-core.js":"7917-3"},"imported":[],"importedBy":[{"uid":"7917-12"},{"uid":"7917-4"},{"uid":"7917-8"}]},"7917-4":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-core.js":"7917-5"},"imported":[{"uid":"7917-18"},{"uid":"7917-0"},{"uid":"7917-2"}],"importedBy":[{"uid":"7917-12"}]},"7917-6":{"id":"/src/compose.ts","moduleParts":{"vitus-labs-core.js":"7917-7"},"imported":[],"importedBy":[{"uid":"7917-12"}]},"7917-8":{"id":"/src/render.ts","moduleParts":{"vitus-labs-core.js":"7917-9"},"imported":[{"uid":"7917-19"},{"uid":"7917-18"},{"uid":"7917-2"}],"importedBy":[{"uid":"7917-12"}]},"7917-10":{"id":"/src/html/htmlTags.ts","moduleParts":{"vitus-labs-core.js":"7917-11"},"imported":[],"importedBy":[{"uid":"7917-16"}]},"7917-12":{"id":"/src/index.ts","moduleParts":{"vitus-labs-core.js":"7917-13"},"imported":[{"uid":"7917-14"},{"uid":"7917-15"},{"uid":"7917-0"},{"uid":"7917-4"},{"uid":"7917-6"},{"uid":"7917-2"},{"uid":"7917-8"},{"uid":"7917-16"}],"importedBy":[],"isEntry":true},"7917-14":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-12"}],"isExternal":true},"7917-15":{"id":"moize","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-12"}],"isExternal":true},"7917-16":{"id":"/src/html/index.ts","moduleParts":{},"imported":[{"uid":"7917-10"}],"importedBy":[{"uid":"7917-12"}]},"7917-17":{"id":"styled-components","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-0"}],"isExternal":true},"7917-18":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-4"},{"uid":"7917-8"}],"isExternal":true},"7917-19":{"id":"react-is","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-8"}],"isExternal":true}},"env":{"rollup":"3.10.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
6622
6622
|
|
|
6623
6623
|
const run = () => {
|
|
6624
6624
|
const width = window.innerWidth;
|
|
@@ -6618,7 +6618,7 @@ var drawChart = (function (exports) {
|
|
|
6618
6618
|
</script>
|
|
6619
6619
|
<script>
|
|
6620
6620
|
/*<!--*/
|
|
6621
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-core.module.js","children":[{"name":"src","children":[{"uid":"
|
|
6621
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"vitus-labs-core.module.js","children":[{"name":"src","children":[{"uid":"7917-21","name":"config.ts"},{"uid":"7917-23","name":"isEmpty.ts"},{"uid":"7917-25","name":"context.tsx"},{"uid":"7917-27","name":"compose.ts"},{"uid":"7917-29","name":"render.ts"},{"name":"html/htmlTags.ts","uid":"7917-31"},{"uid":"7917-33","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"7917-21":{"renderedLength":674,"gzipLength":232,"brotliLength":0,"metaUid":"7917-20"},"7917-23":{"renderedLength":349,"gzipLength":177,"brotliLength":0,"metaUid":"7917-22"},"7917-25":{"renderedLength":673,"gzipLength":312,"brotliLength":0,"metaUid":"7917-24"},"7917-27":{"renderedLength":207,"gzipLength":153,"brotliLength":0,"metaUid":"7917-26"},"7917-29":{"renderedLength":797,"gzipLength":284,"brotliLength":0,"metaUid":"7917-28"},"7917-31":{"renderedLength":1715,"gzipLength":502,"brotliLength":0,"metaUid":"7917-30"},"7917-33":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"7917-32"}},"nodeMetas":{"7917-20":{"id":"/src/config.ts","moduleParts":{"vitus-labs-core.module.js":"7917-21"},"imported":[{"uid":"7917-37"}],"importedBy":[{"uid":"7917-32"},{"uid":"7917-24"}]},"7917-22":{"id":"/src/isEmpty.ts","moduleParts":{"vitus-labs-core.module.js":"7917-23"},"imported":[],"importedBy":[{"uid":"7917-32"},{"uid":"7917-24"},{"uid":"7917-28"}]},"7917-24":{"id":"/src/context.tsx","moduleParts":{"vitus-labs-core.module.js":"7917-25"},"imported":[{"uid":"7917-38"},{"uid":"7917-20"},{"uid":"7917-22"}],"importedBy":[{"uid":"7917-32"}]},"7917-26":{"id":"/src/compose.ts","moduleParts":{"vitus-labs-core.module.js":"7917-27"},"imported":[],"importedBy":[{"uid":"7917-32"}]},"7917-28":{"id":"/src/render.ts","moduleParts":{"vitus-labs-core.module.js":"7917-29"},"imported":[{"uid":"7917-39"},{"uid":"7917-38"},{"uid":"7917-22"}],"importedBy":[{"uid":"7917-32"}]},"7917-30":{"id":"/src/html/htmlTags.ts","moduleParts":{"vitus-labs-core.module.js":"7917-31"},"imported":[],"importedBy":[{"uid":"7917-36"}]},"7917-32":{"id":"/src/index.ts","moduleParts":{"vitus-labs-core.module.js":"7917-33"},"imported":[{"uid":"7917-34"},{"uid":"7917-35"},{"uid":"7917-20"},{"uid":"7917-24"},{"uid":"7917-26"},{"uid":"7917-22"},{"uid":"7917-28"},{"uid":"7917-36"}],"importedBy":[],"isEntry":true},"7917-34":{"id":"lodash","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-32"}],"isExternal":true},"7917-35":{"id":"moize","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-32"}],"isExternal":true},"7917-36":{"id":"/src/html/index.ts","moduleParts":{},"imported":[{"uid":"7917-30"}],"importedBy":[{"uid":"7917-32"}]},"7917-37":{"id":"styled-components","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-20"}],"isExternal":true},"7917-38":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-24"},{"uid":"7917-28"}],"isExternal":true},"7917-39":{"id":"react-is","moduleParts":{},"imported":[],"importedBy":[{"uid":"7917-28"}],"isExternal":true}},"env":{"rollup":"3.10.0"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
6622
6622
|
|
|
6623
6623
|
const run = () => {
|
|
6624
6624
|
const width = window.innerWidth;
|
package/lib/vitus-labs-core.js
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var lodash = require('lodash');
|
|
4
6
|
var moize = require('moize');
|
|
5
7
|
var styled = require('styled-components');
|
|
6
8
|
var React = require('react');
|
|
7
9
|
var reactIs = require('react-is');
|
|
8
10
|
|
|
11
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
var moize__default = /*#__PURE__*/_interopDefaultCompat(moize);
|
|
14
|
+
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
15
|
+
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
16
|
+
|
|
9
17
|
class Configuration {
|
|
10
18
|
css = styled.css;
|
|
11
|
-
styled =
|
|
19
|
+
styled = styled__default["default"];
|
|
12
20
|
provider = styled.ThemeProvider;
|
|
13
21
|
component = 'div';
|
|
14
22
|
textComponent = 'span';
|
|
@@ -54,12 +62,12 @@ const Provider = ({ theme, children, ...props }) => {
|
|
|
54
62
|
const ExternalProvider = React.useMemo(() => config.provider, []);
|
|
55
63
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
56
64
|
if (!theme || isEmpty(theme))
|
|
57
|
-
return
|
|
65
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, children);
|
|
58
66
|
if (ExternalProvider) {
|
|
59
|
-
return (
|
|
60
|
-
|
|
67
|
+
return (React__default["default"].createElement(VitusLabsProvider, { value: { theme, ...props } },
|
|
68
|
+
React__default["default"].createElement(ExternalProvider, { theme: theme }, children)));
|
|
61
69
|
}
|
|
62
|
-
return (
|
|
70
|
+
return (React__default["default"].createElement(VitusLabsProvider, { value: { theme, ...props } }, children));
|
|
63
71
|
};
|
|
64
72
|
|
|
65
73
|
// const compose = <R>(fn1: (a: R) => R, ...fns: Array<(a: R) => R>) =>
|
|
@@ -241,7 +249,10 @@ Object.defineProperty(exports, 'throttle', {
|
|
|
241
249
|
enumerable: true,
|
|
242
250
|
get: function () { return lodash.throttle; }
|
|
243
251
|
});
|
|
244
|
-
exports
|
|
252
|
+
Object.defineProperty(exports, 'memoize', {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: function () { return moize__default["default"]; }
|
|
255
|
+
});
|
|
245
256
|
exports.Provider = Provider;
|
|
246
257
|
exports.compose = compose;
|
|
247
258
|
exports.config = config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitus-labs-core.js","sources":["../src/config.ts","../src/isEmpty.ts","../src/context.tsx","../src/compose.ts","../src/render.ts","../src/html/htmlTags.ts"],"sourcesContent":["import { ComponentType } from 'react'\nimport type { HTMLTags } from '~/html'\nimport styled, {\n css,\n ThemeProvider,\n ThemedCssFunction,\n StyledInterface,\n DefaultTheme,\n ThemeProviderComponent,\n} from 'styled-components'\n\ninterface Internal {\n css: ThemedCssFunction<DefaultTheme>\n styled: StyledInterface\n provider?: ThemeProviderComponent<any, any>\n component?: ComponentType | HTMLTags\n textComponent?: ComponentType | HTMLTags\n}\n\nclass Configuration {\n css = css\n\n styled = styled\n\n provider = ThemeProvider\n\n component: ComponentType | HTMLTags = 'div'\n\n textComponent: ComponentType | HTMLTags = 'span'\n\n init = (props: Internal) => {\n if (props.css) {\n this.css = props.css\n }\n\n if (props.styled) {\n this.styled = props.styled\n }\n\n if (props.provider) {\n this.provider = props.provider\n }\n\n if (props.component) {\n this.component = props.component\n }\n\n if (props.textComponent) {\n this.textComponent = props.textComponent\n }\n }\n}\n\nconst config = new Configuration()\n\nconst { init } = config\n\nexport default config\nexport { init }\n","export type IsEmpty = <T extends Record<string, unknown> | unknown[] | null>(\n param?: T\n) => null | undefined extends T ? true : keyof T extends never ? true : false\n\nconst isEmpty: IsEmpty = (param) => {\n if (!param) return true\n\n if (typeof param !== 'object') {\n return true as any\n }\n\n if (Array.isArray(param) && param.length === 0) {\n return true\n }\n\n if (Object.entries(param).length === 0 && param.constructor === Object) {\n return true\n }\n\n return false\n}\n\nexport default isEmpty\n","import React, { createContext, FC, useMemo, ReactNode } from 'react'\nimport config from '~/config'\nimport isEmpty from '~/isEmpty'\nimport type { Breakpoints } from '~/types'\n\nconst context = createContext<any>({})\nconst VitusLabsProvider = context.Provider\n\ntype Theme = Partial<\n {\n rootSize: number\n breakpoints: Breakpoints\n } & Record<string, any>\n>\n\ntype ProviderType = Partial<\n {\n theme: Theme\n children: ReactNode\n } & Record<string, any>\n>\n\nconst Provider: FC<ProviderType> = ({ theme, children, ...props }) => {\n const ExternalProvider = useMemo(() => config.provider, [])\n\n // eslint-disable-next-line react/jsx-no-useless-fragment\n if (!theme || isEmpty(theme)) return <>{children}</>\n\n if (ExternalProvider) {\n return (\n <VitusLabsProvider value={{ theme, ...props }}>\n <ExternalProvider theme={theme}>{children}</ExternalProvider>\n </VitusLabsProvider>\n )\n }\n\n return (\n <VitusLabsProvider value={{ theme, ...props }}>\n {children}\n </VitusLabsProvider>\n )\n}\n\nexport { context }\n\nexport default Provider\n","// const compose = <R>(fn1: (a: R) => R, ...fns: Array<(a: R) => R>) =>\n// fns.reduce((a, b) => (value) => a(b(value)), fn1)\n\n// const compose = (funcs) =>\n// funcs.reduce(\n// (a, b) => (...args) => a(b(...args)),\n// (arg) => arg\n// )\n\ntype ArityOneFn = (arg: any) => any\ntype PickLastInTuple<T extends any[]> = T extends [\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ...rest: infer U,\n argn: infer L\n]\n ? L\n : any\ntype FirstFnParameterType<T extends any[]> = Parameters<PickLastInTuple<T>>[any]\ntype LastFnReturnType<T extends any[]> = ReturnType<T[0]>\n\nconst compose =\n <T extends ArityOneFn[]>(...fns: T) =>\n (p: FirstFnParameterType<T>): LastFnReturnType<T> =>\n fns.reduceRight((acc: any, cur: any) => cur(acc), p)\n\nexport default compose\n","import { isValidElementType, isFragment } from 'react-is'\nimport { createElement, isValidElement, cloneElement, ReactNode } from 'react'\nimport isEmpty from './isEmpty'\n\ntype CreateTypes = Parameters<typeof createElement>[0]\ntype CloneTypes = Parameters<typeof cloneElement>[0]\ntype RenderProps<T extends Record<string, unknown> | undefined> = (\n props: Partial<T>\n) => ReactNode\n\nexport type Render = <T extends Record<string, any> | undefined>(\n content?: CreateTypes | CloneTypes | ReactNode | ReactNode[] | RenderProps<T>,\n attachProps?: T\n) => ReturnType<typeof createElement> | ReturnType<typeof cloneElement> | null\n\nconst render: Render = (content, attachProps) => {\n if (!content) return null as any\n\n const isValidEl = isValidElement(content)\n const render = (content) =>\n attachProps ? createElement(content, attachProps) : createElement(content)\n\n if (typeof content === 'string' && isValidEl) {\n return render(content)\n }\n\n if (['number', 'boolean', 'bigint', 'string'].includes(typeof content)) {\n return content\n }\n\n if (Array.isArray(content) || isFragment(content)) {\n return content\n }\n\n if (isValidElementType(content)) {\n return render(content)\n }\n\n if (isValidEl) {\n if (isEmpty(attachProps)) {\n return content\n }\n\n return cloneElement(content, attachProps)\n }\n\n return content\n}\n\nexport default render\n","const TAGS = [\n 'a',\n 'abbr',\n // 'acronym',\n 'address',\n // 'applet',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n // 'base',\n // 'basefont',\n 'bdi',\n 'bdo',\n 'big',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n // 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'data',\n 'datalist',\n 'dd',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n // 'dir',\n 'div',\n 'dl',\n 'dt',\n 'em',\n 'embed',\n 'fieldset',\n 'figcaption',\n 'figure',\n // 'font',\n 'footer',\n 'form',\n // 'frame',\n // 'frameset',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n // 'head',\n 'header',\n 'hr',\n 'html',\n 'i',\n 'iframe',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n // 'link',\n 'main',\n 'map',\n 'mark',\n // 'meta',\n 'meter',\n 'nav',\n // 'noframes',\n // 'noscript',\n 'object',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n // 'param',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n // 'script',\n 'section',\n 'select',\n 'small',\n 'source',\n 'span',\n // 'strike',\n 'strong',\n // 'style',\n 'sub',\n 'summary',\n 'sup',\n 'svg',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n // 'title',\n 'tr',\n 'track',\n // 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n] as const\n\nconst TEXT_TAGS = [\n 'abbr',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blockquote',\n 'cite',\n 'code',\n 'dl',\n 'dt',\n 'em',\n 'figcaption',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'i',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'p',\n 'pre',\n 'q',\n 'rp',\n 'rt',\n 's',\n 'small',\n 'span',\n 'strong',\n 'sub',\n 'summary',\n 'sup',\n 'time',\n 'u',\n] as const\n\nexport type HTMLTags = typeof TAGS[number]\n\nexport type HTMLTagsText = typeof TEXT_TAGS[number]\n\nexport default TAGS\n"],"names":["css","ThemeProvider","createContext","useMemo","isValidElement","createElement","isFragment","isValidElementType","cloneElement"],"mappings":";;;;;;;;AAmBA,MAAM,aAAa,CAAA;IACjB,GAAG,GAAGA,UAAG,CAAA;IAET,MAAM,GAAG,MAAM,CAAA;IAEf,QAAQ,GAAGC,oBAAa,CAAA;IAExB,SAAS,GAA6B,KAAK,CAAA;IAE3C,aAAa,GAA6B,MAAM,CAAA;AAEhD,IAAA,IAAI,GAAG,CAAC,KAAe,KAAI;QACzB,IAAI,KAAK,CAAC,GAAG,EAAE;AACb,YAAA,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAA;AACrB,SAAA;QAED,IAAI,KAAK,CAAC,MAAM,EAAE;AAChB,YAAA,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC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AAK;IACL,KAAK;IACL,OAAO;IACP,QAAQ;IACR,IAAI;;IAEJ,MAAM;IACN,KAAK;IACL,MAAM;;IAEN,OAAO;IACP,KAAK;;;IAGL,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,GAAG;;IAEH,SAAS;IACT,KAAK;IACL,UAAU;IACV,GAAG;IACH,IAAI;IACJ,IAAI;IACJ,MAAM;IACN,GAAG;IACH,MAAM;;IAEN,SAAS;IACT,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,MAAM;;IAEN,QAAQ;;IAER,KAAK;IACL,SAAS;IACT,KAAK;IACL,KAAK;IACL,OAAO;IACP,OAAO;IACP,IAAI;IACJ,UAAU;IACV,UAAU;IACV,OAAO;IACP,IAAI;IACJ,OAAO;IACP,MAAM;;IAEN,IAAI;IACJ,OAAO;;IAEP,GAAG;IACH,IAAI;IACJ,KAAK;IACL,OAAO;IACP,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"vitus-labs-core.js","sources":["../src/config.ts","../src/isEmpty.ts","../src/context.tsx","../src/compose.ts","../src/render.ts","../src/html/htmlTags.ts"],"sourcesContent":["import { ComponentType } from 'react'\nimport type { HTMLTags } from '~/html'\nimport styled, {\n css,\n ThemeProvider,\n ThemedCssFunction,\n StyledInterface,\n DefaultTheme,\n ThemeProviderComponent,\n} from 'styled-components'\n\ninterface Internal {\n css: ThemedCssFunction<DefaultTheme>\n styled: StyledInterface\n provider?: ThemeProviderComponent<any, any>\n component?: ComponentType | HTMLTags\n textComponent?: ComponentType | HTMLTags\n}\n\nclass Configuration {\n css = css\n\n styled = styled\n\n provider = ThemeProvider\n\n component: ComponentType | HTMLTags = 'div'\n\n textComponent: ComponentType | HTMLTags = 'span'\n\n init = (props: Internal) => {\n if (props.css) {\n this.css = props.css\n }\n\n if (props.styled) {\n this.styled = props.styled\n }\n\n if (props.provider) {\n this.provider = props.provider\n }\n\n if (props.component) {\n this.component = props.component\n }\n\n if (props.textComponent) {\n this.textComponent = props.textComponent\n }\n }\n}\n\nconst config = new Configuration()\n\nconst { init } = config\n\nexport default config\nexport { init }\n","export type IsEmpty = <T extends Record<string, unknown> | unknown[] | null>(\n param?: T\n) => null | undefined extends T ? true : keyof T extends never ? true : false\n\nconst isEmpty: IsEmpty = (param) => {\n if (!param) return true\n\n if (typeof param !== 'object') {\n return true as any\n }\n\n if (Array.isArray(param) && param.length === 0) {\n return true\n }\n\n if (Object.entries(param).length === 0 && param.constructor === Object) {\n return true\n }\n\n return false\n}\n\nexport default isEmpty\n","import React, { createContext, FC, useMemo, ReactNode } from 'react'\nimport config from '~/config'\nimport isEmpty from '~/isEmpty'\nimport type { Breakpoints } from '~/types'\n\nconst context = createContext<any>({})\nconst VitusLabsProvider = context.Provider\n\ntype Theme = Partial<\n {\n rootSize: number\n breakpoints: Breakpoints\n } & Record<string, any>\n>\n\ntype ProviderType = Partial<\n {\n theme: Theme\n children: ReactNode\n } & Record<string, any>\n>\n\nconst Provider: FC<ProviderType> = ({ theme, children, ...props }) => {\n const ExternalProvider = useMemo(() => config.provider, [])\n\n // eslint-disable-next-line react/jsx-no-useless-fragment\n if (!theme || isEmpty(theme)) return <>{children}</>\n\n if (ExternalProvider) {\n return (\n <VitusLabsProvider value={{ theme, ...props }}>\n <ExternalProvider theme={theme}>{children}</ExternalProvider>\n </VitusLabsProvider>\n )\n }\n\n return (\n <VitusLabsProvider value={{ theme, ...props }}>\n {children}\n </VitusLabsProvider>\n )\n}\n\nexport { context }\n\nexport default Provider\n","// const compose = <R>(fn1: (a: R) => R, ...fns: Array<(a: R) => R>) =>\n// fns.reduce((a, b) => (value) => a(b(value)), fn1)\n\n// const compose = (funcs) =>\n// funcs.reduce(\n// (a, b) => (...args) => a(b(...args)),\n// (arg) => arg\n// )\n\ntype ArityOneFn = (arg: any) => any\ntype PickLastInTuple<T extends any[]> = T extends [\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n ...rest: infer U,\n argn: infer L\n]\n ? L\n : any\ntype FirstFnParameterType<T extends any[]> = Parameters<PickLastInTuple<T>>[any]\ntype LastFnReturnType<T extends any[]> = ReturnType<T[0]>\n\nconst compose =\n <T extends ArityOneFn[]>(...fns: T) =>\n (p: FirstFnParameterType<T>): LastFnReturnType<T> =>\n fns.reduceRight((acc: any, cur: any) => cur(acc), p)\n\nexport default compose\n","import { isValidElementType, isFragment } from 'react-is'\nimport { createElement, isValidElement, cloneElement, ReactNode } from 'react'\nimport isEmpty from './isEmpty'\n\ntype CreateTypes = Parameters<typeof createElement>[0]\ntype CloneTypes = Parameters<typeof cloneElement>[0]\ntype RenderProps<T extends Record<string, unknown> | undefined> = (\n props: Partial<T>\n) => ReactNode\n\nexport type Render = <T extends Record<string, any> | undefined>(\n content?: CreateTypes | CloneTypes | ReactNode | ReactNode[] | RenderProps<T>,\n attachProps?: T\n) => ReturnType<typeof createElement> | ReturnType<typeof cloneElement> | null\n\nconst render: Render = (content, attachProps) => {\n if (!content) return null as any\n\n const isValidEl = isValidElement(content)\n const render = (content) =>\n attachProps ? createElement(content, attachProps) : createElement(content)\n\n if (typeof content === 'string' && isValidEl) {\n return render(content)\n }\n\n if (['number', 'boolean', 'bigint', 'string'].includes(typeof content)) {\n return content\n }\n\n if (Array.isArray(content) || isFragment(content)) {\n return content\n }\n\n if (isValidElementType(content)) {\n return render(content)\n }\n\n if (isValidEl) {\n if (isEmpty(attachProps)) {\n return content\n }\n\n return cloneElement(content, attachProps)\n }\n\n return content\n}\n\nexport default render\n","const TAGS = [\n 'a',\n 'abbr',\n // 'acronym',\n 'address',\n // 'applet',\n 'area',\n 'article',\n 'aside',\n 'audio',\n 'b',\n // 'base',\n // 'basefont',\n 'bdi',\n 'bdo',\n 'big',\n 'blockquote',\n 'body',\n 'br',\n 'button',\n 'canvas',\n 'caption',\n // 'center',\n 'cite',\n 'code',\n 'col',\n 'colgroup',\n 'data',\n 'datalist',\n 'dd',\n 'del',\n 'details',\n 'dfn',\n 'dialog',\n // 'dir',\n 'div',\n 'dl',\n 'dt',\n 'em',\n 'embed',\n 'fieldset',\n 'figcaption',\n 'figure',\n // 'font',\n 'footer',\n 'form',\n // 'frame',\n // 'frameset',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n // 'head',\n 'header',\n 'hr',\n 'html',\n 'i',\n 'iframe',\n 'img',\n 'input',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n // 'link',\n 'main',\n 'map',\n 'mark',\n // 'meta',\n 'meter',\n 'nav',\n // 'noframes',\n // 'noscript',\n 'object',\n 'ol',\n 'optgroup',\n 'option',\n 'output',\n 'p',\n // 'param',\n 'picture',\n 'pre',\n 'progress',\n 'q',\n 'rp',\n 'rt',\n 'ruby',\n 's',\n 'samp',\n // 'script',\n 'section',\n 'select',\n 'small',\n 'source',\n 'span',\n // 'strike',\n 'strong',\n // 'style',\n 'sub',\n 'summary',\n 'sup',\n 'svg',\n 'table',\n 'tbody',\n 'td',\n 'template',\n 'textarea',\n 'tfoot',\n 'th',\n 'thead',\n 'time',\n // 'title',\n 'tr',\n 'track',\n // 'tt',\n 'u',\n 'ul',\n 'var',\n 'video',\n 'wbr',\n] as const\n\nconst TEXT_TAGS = [\n 'abbr',\n 'b',\n 'bdi',\n 'bdo',\n 'big',\n 'blockquote',\n 'cite',\n 'code',\n 'dl',\n 'dt',\n 'em',\n 'figcaption',\n 'h1',\n 'h2',\n 'h3',\n 'h4',\n 'h5',\n 'h6',\n 'i',\n 'ins',\n 'kbd',\n 'label',\n 'legend',\n 'li',\n 'p',\n 'pre',\n 'q',\n 'rp',\n 'rt',\n 's',\n 'small',\n 'span',\n 'strong',\n 'sub',\n 'summary',\n 'sup',\n 'time',\n 'u',\n] as const\n\nexport type HTMLTags = typeof TAGS[number]\n\nexport type HTMLTagsText = typeof TEXT_TAGS[number]\n\nexport default TAGS\n"],"names":["css","styled","ThemeProvider","createContext","useMemo","React","isValidElement","createElement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
"version": "0.69.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Vit Bokisch <vit@bokisch.cz>",
|
|
6
6
|
"maintainers": [
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/lodash": "^4.14.191",
|
|
56
|
-
"@vitus-labs/tools-babel": "^0.
|
|
57
|
-
"@vitus-labs/tools-rollup": "^0.
|
|
58
|
-
"@vitus-labs/tools-typescript": "^0.
|
|
56
|
+
"@vitus-labs/tools-babel": "^0.41.0",
|
|
57
|
+
"@vitus-labs/tools-rollup": "^0.41.0",
|
|
58
|
+
"@vitus-labs/tools-typescript": "^0.41.0",
|
|
59
59
|
"styled-components": "^5.3.6"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "48c553917e06c82dadabaf94b8d6d87be1df200f"
|
|
62
62
|
}
|