@lidofinance/lido-ui 3.0.0-next.3 → 3.0.0-next.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.
- package/dist/cjs/cookie-theme-toggler/src/cookie-theme-provider.js +12 -8
- package/dist/cjs/cookie-theme-toggler/src/cookie-theme-provider.js.map +1 -1
- package/dist/cjs/cookie-theme-toggler/src/cookie-theme-toggler.js +3 -3
- package/dist/cjs/cookie-theme-toggler/src/cookie-theme-toggler.js.map +1 -1
- package/dist/cjs/cookie-theme-toggler/src/styles.js +25 -3
- package/dist/cjs/cookie-theme-toggler/src/styles.js.map +1 -1
- package/dist/cjs/theme/src/base/colors.js +2 -0
- package/dist/cjs/theme/src/base/colors.js.map +1 -1
- package/dist/cjs/theme/src/document-head-contents/element-theme-colors.js +8 -4
- package/dist/cjs/theme/src/document-head-contents/element-theme-colors.js.map +1 -1
- package/dist/cjs/theme/src/document-head-contents/element-theme-script.js +8 -4
- package/dist/cjs/theme/src/document-head-contents/element-theme-script.js.map +1 -1
- package/dist/cjs/theme/src/provider.js +26 -8
- package/dist/cjs/theme/src/provider.js.map +1 -1
- package/dist/cjs/theme/src/themes.js +8 -0
- package/dist/cjs/theme/src/themes.js.map +1 -1
- package/dist/esm/cookie-theme-toggler/src/cookie-theme-provider.js +9 -6
- package/dist/esm/cookie-theme-toggler/src/cookie-theme-provider.js.map +1 -1
- package/dist/esm/cookie-theme-toggler/src/cookie-theme-toggler.js +3 -3
- package/dist/esm/cookie-theme-toggler/src/cookie-theme-toggler.js.map +1 -1
- package/dist/esm/cookie-theme-toggler/src/styles.js +14 -0
- package/dist/esm/cookie-theme-toggler/src/styles.js.map +1 -1
- package/dist/esm/theme/src/base/colors.js +2 -0
- package/dist/esm/theme/src/base/colors.js.map +1 -1
- package/dist/esm/theme/src/document-head-contents/element-theme-colors.js +8 -4
- package/dist/esm/theme/src/document-head-contents/element-theme-colors.js.map +1 -1
- package/dist/esm/theme/src/document-head-contents/element-theme-script.js +8 -4
- package/dist/esm/theme/src/document-head-contents/element-theme-script.js.map +1 -1
- package/dist/esm/theme/src/provider.js +26 -7
- package/dist/esm/theme/src/provider.js.map +1 -1
- package/dist/esm/theme/src/themes.js +8 -0
- package/dist/esm/theme/src/themes.js.map +1 -1
- package/dist/types/accordion/src/AccordionStyles.d.ts +1 -1
- package/dist/types/button/src/Button.d.ts +1 -1
- package/dist/types/button/src/ButtonIcon.d.ts +1 -1
- package/dist/types/checkbox/src/CheckboxStyles.d.ts +1 -1
- package/dist/types/cookie-theme-toggler/src/cookie-theme-provider.d.ts +2 -2
- package/dist/types/cookie-theme-toggler/src/cookie-theme-provider.d.ts.map +1 -1
- package/dist/types/cookie-theme-toggler/src/cookie-theme-toggler.d.ts.map +1 -1
- package/dist/types/cookie-theme-toggler/src/styles.d.ts +4 -1
- package/dist/types/cookie-theme-toggler/src/styles.d.ts.map +1 -1
- package/dist/types/data-table/src/DataTableStyles.d.ts +1 -1
- package/dist/types/icons/src/index.d.ts +76 -76
- package/dist/types/modal/src/ModalButton.d.ts +1 -1
- package/dist/types/modal/src/ModalButtonStyles.d.ts +1 -1
- package/dist/types/modal/src/ModalStyles.d.ts +2 -2
- package/dist/types/select/src/Select.d.ts +1 -1
- package/dist/types/select/src/SelectArrowStyles.d.ts +1 -1
- package/dist/types/select/src/SelectIconStyles.d.ts +1 -1
- package/dist/types/select/src/SelectStyles.d.ts +1 -1
- package/dist/types/table/src/styles.d.ts +2 -2
- package/dist/types/theme/src/base/colors.d.ts +2 -0
- package/dist/types/theme/src/base/colors.d.ts.map +1 -1
- package/dist/types/theme/src/base/index.d.ts +2 -0
- package/dist/types/theme/src/base/index.d.ts.map +1 -1
- package/dist/types/theme/src/document-head-contents/element-theme-colors.d.ts.map +1 -1
- package/dist/types/theme/src/document-head-contents/element-theme-script.d.ts.map +1 -1
- package/dist/types/theme/src/provider.d.ts +1 -0
- package/dist/types/theme/src/provider.d.ts.map +1 -1
- package/dist/types/theme/src/themes.d.ts +12 -0
- package/dist/types/theme/src/themes.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -7,17 +7,17 @@ const darkThemeColors = generateCssColorVariables(themeDark.colors);
|
|
|
7
7
|
const lightThemeColors = generateCssColorVariables(themeLight.colors);
|
|
8
8
|
export let initGlobalColors = VOID_FN;
|
|
9
9
|
export const themeCSSValueString = `
|
|
10
|
-
html, [data-theme='${ThemeName.light}'] {
|
|
10
|
+
html, [data-lido-theme='${ThemeName.light}'] {
|
|
11
11
|
color-theme: light;
|
|
12
12
|
${lightThemeColors}
|
|
13
13
|
}
|
|
14
14
|
@media (prefers-color-scheme: dark) {
|
|
15
|
-
html:not([data-theme='${ThemeName.light}']) {
|
|
15
|
+
html:not([data-lido-theme='${ThemeName.light}']) {
|
|
16
16
|
color-theme: dark;
|
|
17
17
|
${darkThemeColors}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
[data-theme='${ThemeName.dark}'] {
|
|
20
|
+
[data-lido-theme='${ThemeName.dark}'] {
|
|
21
21
|
color-theme: dark;
|
|
22
22
|
${darkThemeColors}
|
|
23
23
|
}`;
|
|
@@ -35,6 +35,10 @@ if (typeof window !== 'undefined') {
|
|
|
35
35
|
}
|
|
36
36
|
export const StyleThemeColors = ()=>/*#__PURE__*/ React.createElement("style", _extends({}, {
|
|
37
37
|
[globalStyleDataAttribute]: true
|
|
38
|
-
}
|
|
38
|
+
}, {
|
|
39
|
+
dangerouslySetInnerHTML: {
|
|
40
|
+
__html: themeCSSValueString
|
|
41
|
+
}
|
|
42
|
+
}));
|
|
39
43
|
|
|
40
44
|
//# sourceMappingURL=element-theme-colors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../packages/theme/src/document-head-contents/element-theme-colors.tsx"],"sourcesContent":["import React from 'react'\nimport { themeDark, themeLight } from '../themes'\nimport { globalStyleDataAttribute, ThemeName, VOID_FN } from '../globals'\nimport { generateCssColorVariables } from './utils/generate-css-color-variables'\n\nconst darkThemeColors = generateCssColorVariables(themeDark.colors)\nconst lightThemeColors = generateCssColorVariables(themeLight.colors)\n\nexport let initGlobalColors = VOID_FN\nexport const themeCSSValueString = `\nhtml, [data-theme='${ThemeName.light}'] {
|
|
1
|
+
{"version":3,"sources":["../../../../../packages/theme/src/document-head-contents/element-theme-colors.tsx"],"sourcesContent":["import React from 'react'\nimport { themeDark, themeLight } from '../themes'\nimport { globalStyleDataAttribute, ThemeName, VOID_FN } from '../globals'\nimport { generateCssColorVariables } from './utils/generate-css-color-variables'\n\nconst darkThemeColors = generateCssColorVariables(themeDark.colors)\nconst lightThemeColors = generateCssColorVariables(themeLight.colors)\n\nexport let initGlobalColors = VOID_FN\nexport const themeCSSValueString = `\nhtml, [data-lido-theme='${ThemeName.light}'] {\n color-theme: light;\n ${lightThemeColors}\n}\n@media (prefers-color-scheme: dark) {\n html:not([data-lido-theme='${ThemeName.light}']) { \n color-theme: dark;\n ${darkThemeColors} \n }\n}\n[data-lido-theme='${ThemeName.dark}'] {\n color-theme: dark;\n ${darkThemeColors}\n}`\n\nif (typeof window !== 'undefined') {\n if (!document.querySelector(`style[${globalStyleDataAttribute}]`)) {\n initGlobalColors = () => {\n const style = document.createElement('style')\n style.setAttribute(globalStyleDataAttribute, '')\n style.innerText = themeCSSValueString\n\n document.head.appendChild(style)\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n initGlobalColors = VOID_FN\n }\n }\n}\n\nexport const StyleThemeColors = () => (\n <style\n {...{ [globalStyleDataAttribute]: true }}\n dangerouslySetInnerHTML={{ __html: themeCSSValueString }}\n />\n)\n"],"names":["React","themeDark","themeLight","globalStyleDataAttribute","ThemeName","VOID_FN","generateCssColorVariables","darkThemeColors","colors","lightThemeColors","initGlobalColors","themeCSSValueString","light","dark","window","document","querySelector","style","createElement","setAttribute","innerText","head","appendChild","StyleThemeColors","dangerouslySetInnerHTML","__html"],"mappings":"AAAA;AAAA,OAAOA,KAAK,MAAM,OAAO,CAAA;AACzB,SAASC,SAAS,EAAEC,UAAU,QAAQ,WAAW,CAAA;AACjD,SAASC,wBAAwB,EAAEC,SAAS,EAAEC,OAAO,QAAQ,YAAY,CAAA;AACzE,SAASC,yBAAyB,QAAQ,sCAAsC,CAAA;AAEhF,MAAMC,eAAe,GAAGD,yBAAyB,CAACL,SAAS,CAACO,MAAM,CAAC;AACnE,MAAMC,gBAAgB,GAAGH,yBAAyB,CAACJ,UAAU,CAACM,MAAM,CAAC;AAErE,OAAO,IAAIE,gBAAgB,GAAGL,OAAO,CAAA;AACrC,OAAO,MAAMM,mBAAmB,GAAG,CAAC;wBACZ,EAAEP,SAAS,CAACQ,KAAK,CAAC;;IAEtC,EAAEH,gBAAgB,CAAC;;;+BAGQ,EAAEL,SAAS,CAACQ,KAAK,CAAC;;QAEzC,EAAEL,eAAe,CAAC;;;kBAGR,EAAEH,SAAS,CAACS,IAAI,CAAC;;IAE/B,EAAEN,eAAe,CAAC;CACrB,CAAC,CAAA;AAEF,IAAI,OAAOO,MAAM,KAAK,WAAW,EAAE;IACjC,IAAI,CAACC,QAAQ,CAACC,aAAa,CAAC,CAAC,MAAM,EAAEb,wBAAwB,CAAC,CAAC,CAAC,CAAC,EAAE;QACjEO,gBAAgB,GAAG,IAAM;YACvB,MAAMO,KAAK,GAAGF,QAAQ,CAACG,aAAa,CAAC,OAAO,CAAC;YAC7CD,KAAK,CAACE,YAAY,CAAChB,wBAAwB,EAAE,EAAE,CAAC;YAChDc,KAAK,CAACG,SAAS,GAAGT,mBAAmB;YAErCI,QAAQ,CAACM,IAAI,CAACC,WAAW,CAACL,KAAK,CAAC;YAChC,gEAAgE;YAChEP,gBAAgB,GAAGL,OAAO;QAC5B,CAAC;IACH,CAAC;AACH,CAAC;AAED,OAAO,MAAMkB,gBAAgB,GAAG,kBAC9B,oBAACN,OAAK,eACA;QAAE,CAACd,wBAAwB,CAAC,EAAE,IAAI;KAAE;QACxCqB,uBAAuB,EAAE;YAAEC,MAAM,EAAEd,mBAAmB;SAAE;OACxD,AACH,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { STORAGE_THEME_MANUAL_KEY, VOID_FN } from "../globals";
|
|
3
|
-
import { COOKIE_THEME_MANUAL_KEY, COOKIES_THEME_EXPIRES_DAYS } from "../../../cookie-theme-toggler/src/constants";
|
|
4
3
|
import { getTopLevelDomain } from "../../../utils/src/index";
|
|
4
|
+
import { COOKIE_THEME_MANUAL_KEY, COOKIES_THEME_EXPIRES_DAYS } from "../../../cookie-theme-toggler/src/constants";
|
|
5
5
|
/**
|
|
6
6
|
* this FN should be hermetic and has zero external items - it is inlined via .toString()
|
|
7
7
|
* */ /*#__PURE__*/ const themeScriptValueString = function(key) {
|
|
@@ -13,9 +13,9 @@ import { getTopLevelDomain } from "../../../utils/src/index";
|
|
|
13
13
|
const setTheme = ()=>{
|
|
14
14
|
const themeCookie = document.cookie.split(';').find((cookie)=>cookie.trim().startsWith(key + '='));
|
|
15
15
|
if (themeCookie) {
|
|
16
|
-
document.documentElement.dataset.
|
|
16
|
+
document.documentElement.dataset.lidoTheme = themeCookie.split('=')[1];
|
|
17
17
|
} else {
|
|
18
|
-
delete document.documentElement.dataset.
|
|
18
|
+
delete document.documentElement.dataset.lidoTheme;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
setTheme();
|
|
@@ -34,6 +34,10 @@ export let initGlobalCookieTheme = typeof window === 'undefined' ? VOID_FN : ()=
|
|
|
34
34
|
setTheme();
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
export const ScriptThemeValue = ()=>/*#__PURE__*/ React.createElement("script",
|
|
37
|
+
export const ScriptThemeValue = ()=>/*#__PURE__*/ React.createElement("script", {
|
|
38
|
+
dangerouslySetInnerHTML: {
|
|
39
|
+
__html: `(${themeScriptValueString.toString()})("${STORAGE_THEME_MANUAL_KEY}")`
|
|
40
|
+
}
|
|
41
|
+
});
|
|
38
42
|
|
|
39
43
|
//# sourceMappingURL=element-theme-script.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../packages/theme/src/document-head-contents/element-theme-script.tsx"],"sourcesContent":["import React from 'react'\nimport { STORAGE_THEME_MANUAL_KEY, ThemeName, VOID_FN } from '../globals'\nimport {\
|
|
1
|
+
{"version":3,"sources":["../../../../../packages/theme/src/document-head-contents/element-theme-script.tsx"],"sourcesContent":["import React from 'react'\nimport { STORAGE_THEME_MANUAL_KEY, ThemeName, VOID_FN } from '../globals'\nimport { getTopLevelDomain } from '@lidofinance/utils'\nimport {COOKIE_THEME_MANUAL_KEY, COOKIES_THEME_EXPIRES_DAYS} from \"../../../cookie-theme-toggler/src/constants\";\n\n/**\n * this FN should be hermetic and has zero external items - it is inlined via .toString()\n * */\n/*#__PURE__*/\nconst themeScriptValueString = function (key: string) {\n if (!window.matchMedia) {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n return () => {}\n }\n const match = window.matchMedia('(prefers-color-scheme: dark)')\n const setTheme = () => {\n const themeCookie = document.cookie\n .split(';')\n .find((cookie) => cookie.trim().startsWith(key + '='))\n if (themeCookie) {\n document.documentElement.dataset.lidoTheme = themeCookie.split('=')[1]\n } else {\n delete document.documentElement.dataset.lidoTheme\n }\n }\n setTheme()\n match.addEventListener('change', setTheme)\n return setTheme\n}\n\nexport const themeScriptValue =\n typeof window !== 'undefined' ? themeScriptValueString : () => VOID_FN\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nexport let updateGlobalTheme: (theme: string) => void = VOID_FN\n\nexport let initGlobalCookieTheme =\n typeof window === 'undefined'\n ? VOID_FN\n : () => {\n const setTheme = themeScriptValueString(STORAGE_THEME_MANUAL_KEY)\n initGlobalCookieTheme = VOID_FN\n const topLevelDomain = getTopLevelDomain()\n updateGlobalTheme = (theme: ThemeName) => {\n document.cookie = `${COOKIE_THEME_MANUAL_KEY}=${theme};expires=${COOKIES_THEME_EXPIRES_DAYS};path=/;domain=${topLevelDomain};samesite=None;secure;`\n setTheme()\n }\n }\n\nexport const ScriptThemeValue = () => (\n <script\n dangerouslySetInnerHTML={{\n __html: `(${themeScriptValueString.toString()})(\"${STORAGE_THEME_MANUAL_KEY}\")`,\n }}\n />\n)\n"],"names":["React","STORAGE_THEME_MANUAL_KEY","VOID_FN","getTopLevelDomain","COOKIE_THEME_MANUAL_KEY","COOKIES_THEME_EXPIRES_DAYS","themeScriptValueString","key","window","matchMedia","match","setTheme","themeCookie","document","cookie","split","find","trim","startsWith","documentElement","dataset","lidoTheme","addEventListener","themeScriptValue","updateGlobalTheme","initGlobalCookieTheme","topLevelDomain","theme","ScriptThemeValue","script","dangerouslySetInnerHTML","__html","toString"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO,CAAA;AACzB,SAASC,wBAAwB,EAAaC,OAAO,QAAQ,YAAY,CAAA;AACzE,SAASC,iBAAiB,QAAQ,0BAAoB,CAAA;AACtD,SAAQC,uBAAuB,EAAEC,0BAA0B,QAAO,6CAA6C,CAAC;AAEhH;;GAEG,GACH,WAAW,GACX,MAAMC,sBAAsB,GAAG,SAAUC,GAAW,EAAE;IACpD,IAAI,CAACC,MAAM,CAACC,UAAU,EAAE;QACtB,gEAAgE;QAChE,OAAO,IAAM,CAAC,CAAC,CAAA;IACjB,CAAC;IACD,MAAMC,KAAK,GAAGF,MAAM,CAACC,UAAU,CAAC,8BAA8B,CAAC;IAC/D,MAAME,QAAQ,GAAG,IAAM;QACrB,MAAMC,WAAW,GAAGC,QAAQ,CAACC,MAAM,CAChCC,KAAK,CAAC,GAAG,CAAC,CACVC,IAAI,CAAC,CAACF,MAAM,GAAKA,MAAM,CAACG,IAAI,EAAE,CAACC,UAAU,CAACX,GAAG,GAAG,GAAG,CAAC,CAAC;QACxD,IAAIK,WAAW,EAAE;YACfC,QAAQ,CAACM,eAAe,CAACC,OAAO,CAACC,SAAS,GAAGT,WAAW,CAACG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACxE,OAAO;YACL,OAAOF,QAAQ,CAACM,eAAe,CAACC,OAAO,CAACC,SAAS;QACnD,CAAC;IACH,CAAC;IACDV,QAAQ,EAAE;IACVD,KAAK,CAACY,gBAAgB,CAAC,QAAQ,EAAEX,QAAQ,CAAC;IAC1C,OAAOA,QAAQ,CAAA;AACjB,CAAC;AAED,OAAO,MAAMY,gBAAgB,GAC3B,OAAOf,MAAM,KAAK,WAAW,GAAGF,sBAAsB,GAAG,IAAMJ,OAAO,CAAA;AACxE,gEAAgE;AAChE,OAAO,IAAIsB,iBAAiB,GAA4BtB,OAAO,CAAA;AAE/D,OAAO,IAAIuB,qBAAqB,GAC9B,OAAOjB,MAAM,KAAK,WAAW,GACzBN,OAAO,GACP,IAAM;IACJ,MAAMS,QAAQ,GAAGL,sBAAsB,CAACL,wBAAwB,CAAC;IACjEwB,qBAAqB,GAAGvB,OAAO;IAC/B,MAAMwB,cAAc,GAAGvB,iBAAiB,EAAE;IAC1CqB,iBAAiB,GAAG,CAACG,KAAgB,GAAK;QACxCd,QAAQ,CAACC,MAAM,GAAG,CAAC,EAAEV,uBAAuB,CAAC,CAAC,EAAEuB,KAAK,CAAC,SAAS,EAAEtB,0BAA0B,CAAC,eAAe,EAAEqB,cAAc,CAAC,sBAAsB,CAAC;QACnJf,QAAQ,EAAE;IACZ,CAAC;AACH,CAAC,CAAA;AAEP,OAAO,MAAMiB,gBAAgB,GAAG,kBAC9B,oBAACC,QAAM;QACLC,uBAAuB,EAAE;YACvBC,MAAM,EAAE,CAAC,CAAC,EAAEzB,sBAAsB,CAAC0B,QAAQ,EAAE,CAAC,GAAG,EAAE/B,wBAAwB,CAAC,EAAE,CAAC;SAChF;MACD,AACH,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _extends from "@swc/helpers/src/_extends.mjs";
|
|
2
|
-
import React from "react";
|
|
2
|
+
import React, { useEffect } from "react";
|
|
3
3
|
import styled, { ThemeProvider as StyledThemeProvider } from "styled-components";
|
|
4
4
|
import { themeDark, themeDefault, themeLight } from "./themes";
|
|
5
5
|
import { initColors } from "./document-head-contents/index";
|
|
6
6
|
import { generateCssColorVariables } from "./document-head-contents/utils/generate-css-color-variables";
|
|
7
|
+
import { useThemeToggle } from "../../cookie-theme-toggler/src";
|
|
7
8
|
// you need this if you're using themes, so we initiate this automatically
|
|
8
9
|
initColors();
|
|
9
10
|
const StyledWrapper = styled.div`
|
|
@@ -13,12 +14,30 @@ const StyledWrapper = styled.div`
|
|
|
13
14
|
return colors ? generateCssColorVariables(colors) : null;
|
|
14
15
|
}}
|
|
15
16
|
`;
|
|
16
|
-
export const ThemeProvider = (param)
|
|
17
|
-
let { theme =themeDefault , children , ...rest } = param;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
export const ThemeProvider = (param)=>{
|
|
18
|
+
let { theme =themeDefault , children , isAutoDetectedTheme =false , ...rest } = param;
|
|
19
|
+
const parentTheme = useThemeToggle();
|
|
20
|
+
useEffect(()=>{
|
|
21
|
+
if (typeof window === 'undefined') {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (isAutoDetectedTheme) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (!parentTheme.themeName) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
document.documentElement.dataset.lidoTheme = theme.name;
|
|
31
|
+
}, [
|
|
32
|
+
isAutoDetectedTheme,
|
|
33
|
+
parentTheme.themeName,
|
|
34
|
+
theme.name
|
|
35
|
+
]);
|
|
36
|
+
return /*#__PURE__*/ React.createElement(StyledWrapper, _extends({
|
|
37
|
+
colors: isAutoDetectedTheme ? undefined : theme.colors
|
|
38
|
+
}, isAutoDetectedTheme ? {} : {
|
|
39
|
+
'data-lido-theme': theme.name
|
|
40
|
+
}), /*#__PURE__*/ React.createElement(StyledThemeProvider, _extends({
|
|
22
41
|
theme: theme
|
|
23
42
|
}, rest), children));
|
|
24
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../packages/theme/src/provider.tsx"],"sourcesContent":["import React, { FC, PropsWithChildren } from 'react'\nimport styled, {\n ThemeProvider as StyledThemeProvider,\n ThemeProviderProps,\n} from 'styled-components'\nimport { themeDark, themeDefault, themeLight } from './themes'\nimport { Theme } from './types'\nimport { initColors } from './document-head-contents'\nimport { generateCssColorVariables } from './document-head-contents/utils/generate-css-color-variables'\n\n// you need this if you're using themes, so we initiate this automatically\ninitColors()\n\nconst StyledWrapper = styled.div<{ colors?: Record<string, string> }>`\n display: contents;\n ${({ colors }) => (colors ? generateCssColorVariables(colors) : null)}\n`\nexport const ThemeProvider: FC
|
|
1
|
+
{"version":3,"sources":["../../../../packages/theme/src/provider.tsx"],"sourcesContent":["import React, { FC, PropsWithChildren, useEffect } from 'react'\nimport styled, {\n ThemeProvider as StyledThemeProvider,\n ThemeProviderProps,\n} from 'styled-components'\nimport { themeDark, themeDefault, themeLight } from './themes'\nimport { Theme } from './types'\nimport { initColors } from './document-head-contents'\nimport { generateCssColorVariables } from './document-head-contents/utils/generate-css-color-variables'\nimport { useThemeToggle } from '@lidofinance/cookie-theme-toggler'\n\n// you need this if you're using themes, so we initiate this automatically\ninitColors()\n\nconst StyledWrapper = styled.div<{ colors?: Record<string, string> }>`\n display: contents;\n ${({ colors }) => (colors ? generateCssColorVariables(colors) : null)}\n`\nexport const ThemeProvider: FC<\n PropsWithChildren<{ theme: Theme; isAutoDetectedTheme?: boolean }>\n> = ({\n theme = themeDefault,\n children,\n isAutoDetectedTheme = false,\n ...rest\n}) => {\n const parentTheme = useThemeToggle()\n useEffect(() => {\n if (typeof window === 'undefined') {\n return\n }\n if (isAutoDetectedTheme) {\n return\n }\n if (!parentTheme.themeName) {\n return\n }\n document.documentElement.dataset.lidoTheme = theme.name\n }, [isAutoDetectedTheme, parentTheme.themeName, theme.name])\n return (\n <StyledWrapper\n colors={isAutoDetectedTheme ? undefined : theme.colors}\n {...(isAutoDetectedTheme ? {} : { 'data-lido-theme': theme.name })}\n >\n <StyledThemeProvider theme={theme} {...rest}>\n {children}\n </StyledThemeProvider>\n </StyledWrapper>\n )\n}\n\ntype BoundThemeProvider = FC<Omit<ThemeProviderProps<Theme>, 'theme'>>\n\nexport const LightThemeProvider: BoundThemeProvider = (props) => (\n <ThemeProvider {...props} theme={themeLight} />\n)\n\nexport const DarkThemeProvider: BoundThemeProvider = (props) => (\n <ThemeProvider {...props} theme={themeDark} />\n)\n"],"names":["React","useEffect","styled","ThemeProvider","StyledThemeProvider","themeDark","themeDefault","themeLight","initColors","generateCssColorVariables","useThemeToggle","StyledWrapper","div","colors","theme","children","isAutoDetectedTheme","rest","parentTheme","window","themeName","document","documentElement","dataset","lidoTheme","name","undefined","LightThemeProvider","props","DarkThemeProvider"],"mappings":"AAAA;AAAA,OAAOA,KAAK,IAA2BC,SAAS,QAAQ,OAAO,CAAA;AAC/D,OAAOC,MAAM,IACXC,aAAa,IAAIC,mBAAmB,QAE/B,mBAAmB,CAAA;AAC1B,SAASC,SAAS,EAAEC,YAAY,EAAEC,UAAU,QAAQ,UAAU,CAAA;AAE9D,SAASC,UAAU,QAAQ,gCAA0B,CAAA;AACrD,SAASC,yBAAyB,QAAQ,6DAA6D,CAAA;AACvG,SAASC,cAAc,QAAQ,gCAAmC,CAAA;AAElE,0EAA0E;AAC1EF,UAAU,EAAE;AAEZ,MAAMG,aAAa,GAAGT,MAAM,CAACU,GAAG,AAAqC,CAAC;;EAEpE,EAAE,SAAgB;QAAf,EAAEC,MAAM,CAAA,EAAE;WAAMA,MAAM,GAAGJ,yBAAyB,CAACI,MAAM,CAAC,GAAG,IAAI;AAAA,CAAC,CAAC;AACxE,CAAC;AACD,OAAO,MAAMV,aAAa,GAEtB,SAKE;QALD,EACHW,KAAK,EAAGR,YAAY,CAAA,EACpBS,QAAQ,CAAA,EACRC,mBAAmB,EAAG,KAAK,CAAA,EAC3B,GAAGC,IAAI,EACR;IACC,MAAMC,WAAW,GAAGR,cAAc,EAAE;IACpCT,SAAS,CAAC,IAAM;QACd,IAAI,OAAOkB,MAAM,KAAK,WAAW,EAAE;YACjC,OAAM;QACR,CAAC;QACD,IAAIH,mBAAmB,EAAE;YACvB,OAAM;QACR,CAAC;QACD,IAAI,CAACE,WAAW,CAACE,SAAS,EAAE;YAC1B,OAAM;QACR,CAAC;QACDC,QAAQ,CAACC,eAAe,CAACC,OAAO,CAACC,SAAS,GAAGV,KAAK,CAACW,IAAI;IACzD,CAAC,EAAE;QAACT,mBAAmB;QAAEE,WAAW,CAACE,SAAS;QAAEN,KAAK,CAACW,IAAI;KAAC,CAAC;IAC5D,qBACE,oBAACd,aAAa;QACZE,MAAM,EAAEG,mBAAmB,GAAGU,SAAS,GAAGZ,KAAK,CAACD,MAAM;OACjDG,mBAAmB,GAAG,EAAE,GAAG;QAAE,iBAAiB,EAAEF,KAAK,CAACW,IAAI;KAAE,iBAEjE,oBAACrB,mBAAmB;QAACU,KAAK,EAAEA,KAAK;OAAMG,IAAI,GACxCF,QAAQ,CACW,CACR,CACjB;AACH,CAAC,CAAA;AAID,OAAO,MAAMY,kBAAkB,GAAuB,CAACC,KAAK,iBAC1D,oBAACzB,aAAa,eAAKyB,KAAK;QAAEd,KAAK,EAAEP,UAAU;OAAI,AAChD,CAAA;AAED,OAAO,MAAMsB,iBAAiB,GAAuB,CAACD,KAAK,iBACzD,oBAACzB,aAAa,eAAKyB,KAAK;QAAEd,KAAK,EAAET,SAAS;OAAI,AAC/C,CAAA"}
|
|
@@ -5,6 +5,10 @@ export const themeLight = {
|
|
|
5
5
|
name: ThemeName.light,
|
|
6
6
|
colors: {
|
|
7
7
|
...themeBase.colors,
|
|
8
|
+
darkThemeOpacity: '0',
|
|
9
|
+
lightThemeOpacity: '1',
|
|
10
|
+
lightModeVisibility: 'visible',
|
|
11
|
+
darkModeVisibility: 'hidden',
|
|
8
12
|
secondary: '#273852',
|
|
9
13
|
secondaryHover: '#212f45',
|
|
10
14
|
secondaryContrast: '#fff',
|
|
@@ -33,6 +37,10 @@ export const themeDark = {
|
|
|
33
37
|
name: ThemeName.dark,
|
|
34
38
|
colors: {
|
|
35
39
|
...themeBase.colors,
|
|
40
|
+
darkThemeOpacity: '1',
|
|
41
|
+
lightThemeOpacity: '0',
|
|
42
|
+
lightModeVisibility: 'hidden',
|
|
43
|
+
darkModeVisibility: 'visible',
|
|
36
44
|
secondary: 'rgba(255, 255, 255, .8)',
|
|
37
45
|
secondaryHover: '#fff',
|
|
38
46
|
secondaryContrast: '#273852',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../packages/theme/src/themes.ts"],"sourcesContent":["import themeBase from './base'\nimport { ThemeName } from './globals'\n\nexport const themeLight = {\n ...themeBase,\n name: ThemeName.light,\n colors: {\n ...themeBase.colors,\n\n secondary: '#273852',\n secondaryHover: '#212f45',\n secondaryContrast: '#fff',\n\n background: '#f2f4f6',\n backgroundDarken: '#dae0e5',\n\n foreground: '#fff',\n\n overlay: 'rgba(0, 0, 0, 0.5)',\n\n shadowLight: 'rgba(39, 56, 82, 0.08)',\n shadowDark: 'rgba(0, 0, 0, .25)',\n\n text: '#273852',\n textSecondary: '#7a8aa0',\n accentText: '#273852',\n\n border: 'rgba(0, 10, 61, 0.12)',\n borderActive: 'rgba(0, 10, 61, 0.48)',\n borderHover: 'rgba(0, 10, 61, 0.24)',\n borderLight: '#dfe5eb',\n accentBorder: 'rgba(0, 10, 61, 0.12)',\n accentBorderHover: 'rgba(0, 10, 61, 0.24)',\n\n controlBg: '#fff',\n accentControlBg: 'rgba(239, 242, 246, 0.56)',\n\n popupMenuItemBgActiveHover: '#000a3d',\n },\n}\n\nexport const themeDark = {\n ...themeBase,\n name: ThemeName.dark,\n colors: {\n ...themeBase.colors,\n\n secondary: 'rgba(255, 255, 255, .8)',\n secondaryHover: '#fff',\n secondaryContrast: '#273852',\n\n background: '#1c1c21',\n backgroundDarken: '#131317',\n\n foreground: '#34343d',\n\n overlay: 'rgba(0, 0, 0, 0.5)',\n\n shadowLight: 'rgba(0, 0, 0, .25)',\n shadowDark: 'rgba(0, 0, 0, .5)',\n\n text: '#fff',\n textSecondary: 'rgba(255, 255, 255, .8)',\n accentText: '#fff',\n\n border: 'rgba(255, 255, 255, 0.12)',\n borderActive: 'rgba(255, 255, 255, 0.48)',\n borderHover: 'rgba(255, 255, 255, 0.24)',\n borderLight: '#484855',\n accentBorder: 'rgba(255, 255, 255, 0.12)',\n accentBorderHover: 'rgba(255, 255, 255, 0.24)',\n\n controlBg: '#2f2f37',\n accentControlBg: 'rgba(39, 39, 46, 0.56)',\n\n popupMenuItemBgActiveHover: '#fff',\n },\n}\n\nexport const themeDefault = themeLight\n"],"names":["themeBase","ThemeName","themeLight","name","light","colors","secondary","secondaryHover","secondaryContrast","background","backgroundDarken","foreground","overlay","shadowLight","shadowDark","text","textSecondary","accentText","border","borderActive","borderHover","borderLight","accentBorder","accentBorderHover","controlBg","accentControlBg","popupMenuItemBgActiveHover","themeDark","dark","themeDefault"],"mappings":"AAAA,OAAOA,SAAS,MAAM,cAAQ,CAAA;AAC9B,SAASC,SAAS,QAAQ,WAAW,CAAA;AAErC,OAAO,MAAMC,UAAU,GAAG;IACxB,GAAGF,SAAS;IACZG,IAAI,EAAEF,SAAS,CAACG,KAAK;IACrBC,MAAM,EAAE;QACN,GAAGL,SAAS,CAACK,MAAM;
|
|
1
|
+
{"version":3,"sources":["../../../../packages/theme/src/themes.ts"],"sourcesContent":["import themeBase from './base'\nimport { ThemeName } from './globals'\n\nexport const themeLight = {\n ...themeBase,\n name: ThemeName.light,\n colors: {\n ...themeBase.colors,\n darkThemeOpacity: '0',\n lightThemeOpacity: '1',\n\n lightModeVisibility: 'visible',\n darkModeVisibility: 'hidden',\n\n secondary: '#273852',\n secondaryHover: '#212f45',\n secondaryContrast: '#fff',\n\n background: '#f2f4f6',\n backgroundDarken: '#dae0e5',\n\n foreground: '#fff',\n\n overlay: 'rgba(0, 0, 0, 0.5)',\n\n shadowLight: 'rgba(39, 56, 82, 0.08)',\n shadowDark: 'rgba(0, 0, 0, .25)',\n\n text: '#273852',\n textSecondary: '#7a8aa0',\n accentText: '#273852',\n\n border: 'rgba(0, 10, 61, 0.12)',\n borderActive: 'rgba(0, 10, 61, 0.48)',\n borderHover: 'rgba(0, 10, 61, 0.24)',\n borderLight: '#dfe5eb',\n accentBorder: 'rgba(0, 10, 61, 0.12)',\n accentBorderHover: 'rgba(0, 10, 61, 0.24)',\n\n controlBg: '#fff',\n accentControlBg: 'rgba(239, 242, 246, 0.56)',\n\n popupMenuItemBgActiveHover: '#000a3d',\n },\n}\n\nexport const themeDark = {\n ...themeBase,\n name: ThemeName.dark,\n colors: {\n ...themeBase.colors,\n darkThemeOpacity: '1',\n lightThemeOpacity: '0',\n\n lightModeVisibility: 'hidden',\n darkModeVisibility: 'visible',\n\n secondary: 'rgba(255, 255, 255, .8)',\n secondaryHover: '#fff',\n secondaryContrast: '#273852',\n\n background: '#1c1c21',\n backgroundDarken: '#131317',\n\n foreground: '#34343d',\n\n overlay: 'rgba(0, 0, 0, 0.5)',\n\n shadowLight: 'rgba(0, 0, 0, .25)',\n shadowDark: 'rgba(0, 0, 0, .5)',\n\n text: '#fff',\n textSecondary: 'rgba(255, 255, 255, .8)',\n accentText: '#fff',\n\n border: 'rgba(255, 255, 255, 0.12)',\n borderActive: 'rgba(255, 255, 255, 0.48)',\n borderHover: 'rgba(255, 255, 255, 0.24)',\n borderLight: '#484855',\n accentBorder: 'rgba(255, 255, 255, 0.12)',\n accentBorderHover: 'rgba(255, 255, 255, 0.24)',\n\n controlBg: '#2f2f37',\n accentControlBg: 'rgba(39, 39, 46, 0.56)',\n\n popupMenuItemBgActiveHover: '#fff',\n },\n}\n\nexport const themeDefault = themeLight\n"],"names":["themeBase","ThemeName","themeLight","name","light","colors","darkThemeOpacity","lightThemeOpacity","lightModeVisibility","darkModeVisibility","secondary","secondaryHover","secondaryContrast","background","backgroundDarken","foreground","overlay","shadowLight","shadowDark","text","textSecondary","accentText","border","borderActive","borderHover","borderLight","accentBorder","accentBorderHover","controlBg","accentControlBg","popupMenuItemBgActiveHover","themeDark","dark","themeDefault"],"mappings":"AAAA,OAAOA,SAAS,MAAM,cAAQ,CAAA;AAC9B,SAASC,SAAS,QAAQ,WAAW,CAAA;AAErC,OAAO,MAAMC,UAAU,GAAG;IACxB,GAAGF,SAAS;IACZG,IAAI,EAAEF,SAAS,CAACG,KAAK;IACrBC,MAAM,EAAE;QACN,GAAGL,SAAS,CAACK,MAAM;QACnBC,gBAAgB,EAAE,GAAG;QACrBC,iBAAiB,EAAE,GAAG;QAEtBC,mBAAmB,EAAE,SAAS;QAC9BC,kBAAkB,EAAE,QAAQ;QAE5BC,SAAS,EAAE,SAAS;QACpBC,cAAc,EAAE,SAAS;QACzBC,iBAAiB,EAAE,MAAM;QAEzBC,UAAU,EAAE,SAAS;QACrBC,gBAAgB,EAAE,SAAS;QAE3BC,UAAU,EAAE,MAAM;QAElBC,OAAO,EAAE,oBAAoB;QAE7BC,WAAW,EAAE,wBAAwB;QACrCC,UAAU,EAAE,oBAAoB;QAEhCC,IAAI,EAAE,SAAS;QACfC,aAAa,EAAE,SAAS;QACxBC,UAAU,EAAE,SAAS;QAErBC,MAAM,EAAE,uBAAuB;QAC/BC,YAAY,EAAE,uBAAuB;QACrCC,WAAW,EAAE,uBAAuB;QACpCC,WAAW,EAAE,SAAS;QACtBC,YAAY,EAAE,uBAAuB;QACrCC,iBAAiB,EAAE,uBAAuB;QAE1CC,SAAS,EAAE,MAAM;QACjBC,eAAe,EAAE,2BAA2B;QAE5CC,0BAA0B,EAAE,SAAS;KACtC;CACF,CAAA;AAED,OAAO,MAAMC,SAAS,GAAG;IACvB,GAAG/B,SAAS;IACZG,IAAI,EAAEF,SAAS,CAAC+B,IAAI;IACpB3B,MAAM,EAAE;QACN,GAAGL,SAAS,CAACK,MAAM;QACnBC,gBAAgB,EAAE,GAAG;QACrBC,iBAAiB,EAAE,GAAG;QAEtBC,mBAAmB,EAAE,QAAQ;QAC7BC,kBAAkB,EAAE,SAAS;QAE7BC,SAAS,EAAE,yBAAyB;QACpCC,cAAc,EAAE,MAAM;QACtBC,iBAAiB,EAAE,SAAS;QAE5BC,UAAU,EAAE,SAAS;QACrBC,gBAAgB,EAAE,SAAS;QAE3BC,UAAU,EAAE,SAAS;QAErBC,OAAO,EAAE,oBAAoB;QAE7BC,WAAW,EAAE,oBAAoB;QACjCC,UAAU,EAAE,mBAAmB;QAE/BC,IAAI,EAAE,MAAM;QACZC,aAAa,EAAE,yBAAyB;QACxCC,UAAU,EAAE,MAAM;QAElBC,MAAM,EAAE,2BAA2B;QACnCC,YAAY,EAAE,2BAA2B;QACzCC,WAAW,EAAE,2BAA2B;QACxCC,WAAW,EAAE,SAAS;QACtBC,YAAY,EAAE,2BAA2B;QACzCC,iBAAiB,EAAE,2BAA2B;QAE9CC,SAAS,EAAE,SAAS;QACpBC,eAAe,EAAE,wBAAwB;QAEzCC,0BAA0B,EAAE,MAAM;KACnC;CACF,CAAA;AAED,OAAO,MAAMG,YAAY,GAAG/B,UAAU,CAAA"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const AccordionStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
3
|
export declare const AccordionSummaryStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const AccordionTitleStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
export declare const AccordionArrowStyle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "height" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "color" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "children" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "
|
|
5
|
+
export declare const AccordionArrowStyle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "height" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "color" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "children" | "dangerouslySetInnerHTML" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<SVGSVGElement>>, import("styled-components").DefaultTheme, {
|
|
6
6
|
$expanded: boolean;
|
|
7
7
|
}, never>;
|
|
8
8
|
export declare const AccordionContentStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -11,6 +11,6 @@ declare const _default: React.ForwardRefExoticComponent<{
|
|
|
11
11
|
} & Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
12
12
|
as?: keyof JSX.IntrinsicElements | undefined;
|
|
13
13
|
forwardedAs?: keyof JSX.IntrinsicElements | undefined;
|
|
14
|
-
}, "ref" | "color" | "square" | "as" | "
|
|
14
|
+
}, "ref" | "color" | "square" | "as" | "size" | "loading" | "variant" | "fullwidth" | "active"> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
export default _default;
|
|
16
16
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -13,6 +13,6 @@ declare const _default: React.ForwardRefExoticComponent<{
|
|
|
13
13
|
} & Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
14
14
|
as?: keyof JSX.IntrinsicElements | undefined;
|
|
15
15
|
forwardedAs?: keyof JSX.IntrinsicElements | undefined;
|
|
16
|
-
}, "ref" | "color" | "square" | "as" | "
|
|
16
|
+
}, "ref" | "color" | "square" | "as" | "size" | "loading" | "variant" | "fullwidth" | "active"> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
17
|
export default _default;
|
|
18
18
|
//# sourceMappingURL=ButtonIcon.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const CheckboxWrapperStyle: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const CheckboxIconStyle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "height" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "color" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "children" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "
|
|
3
|
+
export declare const CheckboxIconStyle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "height" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "color" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "children" | "dangerouslySetInnerHTML" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<SVGSVGElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const CheckboxInputStyle: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
//# sourceMappingURL=CheckboxStyles.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
1
|
+
import React, { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { THEME } from '@lidofinance/theme';
|
|
3
3
|
export declare type ThemeContext = {
|
|
4
4
|
toggleTheme: () => void;
|
|
5
5
|
themeName: THEME;
|
|
6
6
|
};
|
|
7
|
-
export declare const ThemeToggleContext:
|
|
7
|
+
export declare const ThemeToggleContext: React.Context<ThemeContext>;
|
|
8
8
|
export declare type ThemeProviderProps = {
|
|
9
9
|
initialTheme?: THEME;
|
|
10
10
|
overrideTheme?: THEME;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookie-theme-provider.d.ts","sourceRoot":"","sources":["../../../../packages/cookie-theme-toggler/src/cookie-theme-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"cookie-theme-provider.d.ts","sourceRoot":"","sources":["../../../../packages/cookie-theme-toggler/src/cookie-theme-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,EAAE,EACF,iBAAiB,EAIlB,MAAM,OAAO,CAAA;AACd,OAAO,EAIL,KAAK,EAIN,MAAM,oBAAoB,CAAA;AAK3B,oBAAY,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,SAAS,EAAE,KAAK,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,kBAAkB,6BAAoC,CAAA;AAEnE,oBAAY,kBAAkB,GAAG;IAE/B,YAAY,CAAC,EAAE,KAAK,CAAA;IACpB,aAAa,CAAC,EAAE,KAAK,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAqEzE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookie-theme-toggler.d.ts","sourceRoot":"","sources":["../../../../packages/cookie-theme-toggler/src/cookie-theme-toggler.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAK1B,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"cookie-theme-toggler.d.ts","sourceRoot":"","sources":["../../../../packages/cookie-theme-toggler/src/cookie-theme-toggler.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAK1B,eAAO,MAAM,YAAY,EAAE,EAa1B,CAAA"}
|
|
@@ -11,8 +11,11 @@ export declare const CookieThemeTogglerStyle: import("styled-components").Styled
|
|
|
11
11
|
} & Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
12
12
|
as?: keyof JSX.IntrinsicElements | undefined;
|
|
13
13
|
forwardedAs?: keyof JSX.IntrinsicElements | undefined;
|
|
14
|
-
}, "ref" | "color" | "square" | "as" | "
|
|
14
|
+
}, "ref" | "color" | "square" | "as" | "size" | "loading" | "variant" | "fullwidth" | "active"> & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {
|
|
15
15
|
variant: "text";
|
|
16
16
|
size: "xs";
|
|
17
17
|
}, "size" | "variant">;
|
|
18
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
19
|
+
export declare const LightWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
20
|
+
export declare const DarkWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
18
21
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../packages/cookie-theme-toggler/src/styles.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../packages/cookie-theme-toggler/src/styles.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;sBAanC,CAAA;AAED,eAAO,MAAM,WAAW,0GAIvB,CAAA;AAED,eAAO,MAAM,YAAY,0GAExB,CAAA;AAED,eAAO,MAAM,WAAW,0GAEvB,CAAA"}
|
|
@@ -5,5 +5,5 @@ export declare const DataTableTitleStyle: import("styled-components").StyledComp
|
|
|
5
5
|
export declare const DataTableValueStyle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
6
|
$highlight: boolean;
|
|
7
7
|
}, never>;
|
|
8
|
-
export declare const DataTableQuestionStyle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "height" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "color" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "children" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "
|
|
8
|
+
export declare const DataTableQuestionStyle: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "style" | "clipPath" | "filter" | "mask" | "path" | "height" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "color" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "children" | "dangerouslySetInnerHTML" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<SVGSVGElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
9
9
|
//# sourceMappingURL=DataTableStyles.d.ts.map
|