@lidofinance/lido-app-ui 1.1.1 → 1.1.3

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.
Files changed (68) hide show
  1. package/dist/cjs/button/{Button.js → Button.cjs} +2 -2
  2. package/dist/cjs/button/Button.cjs.map +1 -0
  3. package/dist/cjs/button/{Button.module.css.js → Button.module.css.cjs} +1 -1
  4. package/dist/cjs/button/Button.module.css.cjs.map +1 -0
  5. package/dist/cjs/{index.js → index.cjs} +3 -3
  6. package/dist/cjs/index.cjs.map +1 -0
  7. package/dist/cjs/styles/global.css.cjs +6 -0
  8. package/dist/cjs/styles/global.css.cjs.map +1 -0
  9. package/dist/esm/index.mjs +1 -1
  10. package/dist/esm/styles/global.css.mjs +4 -0
  11. package/dist/esm/styles/global.css.mjs.map +1 -0
  12. package/dist/types/button/Button.d.ts.map +1 -0
  13. package/dist/types/button/index.d.ts.map +1 -0
  14. package/dist/types/{lido-app-ui/src/index.d.ts → index.d.ts} +0 -1
  15. package/dist/types/index.d.ts.map +1 -0
  16. package/package.json +9 -6
  17. package/dist/cjs/button/Button.js.map +0 -1
  18. package/dist/cjs/button/Button.module.css.js.map +0 -1
  19. package/dist/cjs/index.js.map +0 -1
  20. package/dist/types/lido-app-ui/src/button/Button.d.ts.map +0 -1
  21. package/dist/types/lido-app-ui/src/button/index.d.ts.map +0 -1
  22. package/dist/types/lido-app-ui/src/index.d.ts.map +0 -1
  23. package/dist/types/lido-shared-ui/src/index.d.ts +0 -4
  24. package/dist/types/lido-shared-ui/src/index.d.ts.map +0 -1
  25. package/dist/types/lido-shared-ui/src/test-env-banner/TestEnvBanner.d.ts +0 -2
  26. package/dist/types/lido-shared-ui/src/test-env-banner/TestEnvBanner.d.ts.map +0 -1
  27. package/dist/types/lido-shared-ui/src/test-env-banner/index.d.ts +0 -3
  28. package/dist/types/lido-shared-ui/src/test-env-banner/index.d.ts.map +0 -1
  29. package/dist/types/lido-shared-ui/src/test-env-banner/types.d.ts +0 -22
  30. package/dist/types/lido-shared-ui/src/test-env-banner/types.d.ts.map +0 -1
  31. package/dist/types/lido-shared-ui/src/theme-css/constants.d.ts +0 -9
  32. package/dist/types/lido-shared-ui/src/theme-css/constants.d.ts.map +0 -1
  33. package/dist/types/lido-shared-ui/src/theme-css/content-theme/content-theme.d.ts +0 -7
  34. package/dist/types/lido-shared-ui/src/theme-css/content-theme/content-theme.d.ts.map +0 -1
  35. package/dist/types/lido-shared-ui/src/theme-css/content-theme/index.d.ts +0 -2
  36. package/dist/types/lido-shared-ui/src/theme-css/content-theme/index.d.ts.map +0 -1
  37. package/dist/types/lido-shared-ui/src/theme-css/cookie-theme-provider.d.ts +0 -20
  38. package/dist/types/lido-shared-ui/src/theme-css/cookie-theme-provider.d.ts.map +0 -1
  39. package/dist/types/lido-shared-ui/src/theme-css/document-head-contents/element-theme-script.d.ts +0 -6
  40. package/dist/types/lido-shared-ui/src/theme-css/document-head-contents/element-theme-script.d.ts.map +0 -1
  41. package/dist/types/lido-shared-ui/src/theme-css/index.d.ts +0 -7
  42. package/dist/types/lido-shared-ui/src/theme-css/index.d.ts.map +0 -1
  43. package/dist/types/lido-shared-ui/src/theme-css/theme-provider/index.d.ts +0 -2
  44. package/dist/types/lido-shared-ui/src/theme-css/theme-provider/index.d.ts.map +0 -1
  45. package/dist/types/lido-shared-ui/src/theme-css/theme-provider/theme-provider.d.ts +0 -10
  46. package/dist/types/lido-shared-ui/src/theme-css/theme-provider/theme-provider.d.ts.map +0 -1
  47. package/dist/types/lido-shared-ui/src/theme-css/theme-toggler/index.d.ts +0 -2
  48. package/dist/types/lido-shared-ui/src/theme-css/theme-toggler/index.d.ts.map +0 -1
  49. package/dist/types/lido-shared-ui/src/theme-css/theme-toggler/theme-toggler.d.ts +0 -5
  50. package/dist/types/lido-shared-ui/src/theme-css/theme-toggler/theme-toggler.d.ts.map +0 -1
  51. package/dist/types/lido-shared-ui/src/theme-css/use-theme-toggle.d.ts +0 -3
  52. package/dist/types/lido-shared-ui/src/theme-css/use-theme-toggle.d.ts.map +0 -1
  53. package/dist/types/lido-shared-ui/src/theme-css/utils/cookies.d.ts +0 -3
  54. package/dist/types/lido-shared-ui/src/theme-css/utils/cookies.d.ts.map +0 -1
  55. package/dist/types/lido-shared-ui/src/theme-css/utils/set-theme-cookie.d.ts +0 -3
  56. package/dist/types/lido-shared-ui/src/theme-css/utils/set-theme-cookie.d.ts.map +0 -1
  57. package/dist/types/lido-shared-ui/src/utils/cookies-client-side.d.ts +0 -6
  58. package/dist/types/lido-shared-ui/src/utils/cookies-client-side.d.ts.map +0 -1
  59. package/dist/types/lido-shared-ui/src/utils/get-top-level-domain.d.ts +0 -2
  60. package/dist/types/lido-shared-ui/src/utils/get-top-level-domain.d.ts.map +0 -1
  61. package/dist/types/lido-shared-ui/src/utils/index.d.ts +0 -6
  62. package/dist/types/lido-shared-ui/src/utils/index.d.ts.map +0 -1
  63. package/dist/types/lido-shared-ui/src/utils/modalRoot.d.ts +0 -3
  64. package/dist/types/lido-shared-ui/src/utils/modalRoot.d.ts.map +0 -1
  65. package/dist/types/lido-shared-ui/src/utils/types.d.ts +0 -11
  66. package/dist/types/lido-shared-ui/src/utils/types.d.ts.map +0 -1
  67. /package/dist/types/{lido-app-ui/src/button → button}/Button.d.ts +0 -0
  68. /package/dist/types/{lido-app-ui/src/button → button}/index.d.ts +0 -0
@@ -4,7 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
5
  const react = require('react');
6
6
  const cn = require('classnames');
7
- const Button_module = require('./Button.module.css.js');
7
+ const Button_module = require('./Button.module.css.cjs');
8
8
  const jsxRuntime = require('react/jsx-runtime');
9
9
 
10
10
  const Button = /*#__PURE__*/react.forwardRef((_ref, ref) => {
@@ -40,4 +40,4 @@ const Button = /*#__PURE__*/react.forwardRef((_ref, ref) => {
40
40
  Button.displayName = 'Button';
41
41
 
42
42
  exports.Button = Button;
43
- //# sourceMappingURL=Button.js.map
43
+ //# sourceMappingURL=Button.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.cjs","sources":["../../../src/button/Button.tsx"],"sourcesContent":["import { ButtonHTMLAttributes, forwardRef, ReactNode } from 'react'\nimport cn from 'classnames'\nimport styles from './Button.module.css'\n\nexport type ButtonSize = 'sm' | 'md' | 'lg'\nexport type ButtonVariant = 'filled' | 'outlined' | 'ghost'\nexport type ButtonColor = 'primary' | 'secondary' | 'warning'\n\nexport type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {\n size?: ButtonSize\n variant?: ButtonVariant\n color?: ButtonColor\n fullwidth?: boolean\n loading?: boolean\n children?: ReactNode\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n size = 'md',\n variant = 'filled',\n color = 'primary',\n fullwidth = false,\n loading = false,\n disabled,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n return (\n <button\n ref={ref}\n disabled={disabled || loading}\n className={cn(\n styles.button,\n styles[size],\n styles[variant],\n styles[color],\n { [styles.fullwidth]: fullwidth, [styles.loading]: loading },\n className,\n )}\n {...rest}\n >\n <span className={cn(styles.content, { [styles.hidden]: loading })}>\n {children}\n </span>\n {loading && <span className={styles.loader} />}\n </button>\n )\n },\n)\n\nButton.displayName = 'Button'\n"],"names":["Button","forwardRef","_ref","ref","size","variant","color","fullwidth","loading","disabled","children","className","rest","_jsxs","cn","styles","button","_jsx","content","hidden","loader","displayName"],"mappings":";;;;;;;;;AAiBO,MAAMA,MAAM,gBAAGC,gBAAU,CAC9B,CAAAC,IAAA,EAYEC,GAAG,KACA;EAAA,IAZH;AACEC,IAAAA,IAAI,GAAG,IAAI;AACXC,IAAAA,OAAO,GAAG,QAAQ;AAClBC,IAAAA,KAAK,GAAG,SAAS;AACjBC,IAAAA,SAAS,GAAG,KAAK;AACjBC,IAAAA,OAAO,GAAG,KAAK;IACfC,QAAQ;IACRC,QAAQ;IACRC,SAAS;IACT,GAAGC,IAAAA;AACL,GAAC,GAAAV,IAAA,CAAA;AAGD,EAAA,oBACEW,eAAA,CAAA,QAAA,EAAA;AACEV,IAAAA,GAAG,EAAEA,GAAI;IACTM,QAAQ,EAAEA,QAAQ,IAAID,OAAQ;IAC9BG,SAAS,EAAEG,EAAE,CACXC,aAAM,CAACC,MAAM,EACbD,aAAM,CAACX,IAAI,CAAC,EACZW,aAAM,CAACV,OAAO,CAAC,EACfU,aAAM,CAACT,KAAK,CAAC,EACb;AAAE,MAAA,CAACS,aAAM,CAACR,SAAS,GAAGA,SAAS;MAAE,CAACQ,aAAM,CAACP,OAAO,GAAGA,OAAAA;KAAS,EAC5DG,SACF,CAAE;AAAA,IAAA,GACEC,IAAI;AAAAF,IAAAA,QAAA,gBAERO,cAAA,CAAA,MAAA,EAAA;AAAMN,MAAAA,SAAS,EAAEG,EAAE,CAACC,aAAM,CAACG,OAAO,EAAE;QAAE,CAACH,aAAM,CAACI,MAAM,GAAGX,OAAAA;AAAQ,OAAC,CAAE;AAAAE,MAAAA,QAAA,EAC/DA,QAAAA;AAAQ,KACL,CAAC,EACNF,OAAO,iBAAIS,cAAA,CAAA,MAAA,EAAA;MAAMN,SAAS,EAAEI,aAAM,CAACK,MAAAA;AAAO,KAAE,CAAC,CAAA;AAAA,GACxC,CAAC,CAAA;AAEb,CACF,EAAC;AAEDpB,MAAM,CAACqB,WAAW,GAAG,QAAQ;;;;"}
@@ -3,4 +3,4 @@
3
3
  const styles = {"button":"Button-module_button__eiKKZ","loading":"Button-module_loading__wZ1IR","sm":"Button-module_sm__Y4qjx","md":"Button-module_md__qbViT","lg":"Button-module_lg__vMNHM","filled":"Button-module_filled__7Ri6T","primary":"Button-module_primary__EU45Z","secondary":"Button-module_secondary__5BZ2i","warning":"Button-module_warning__8WIwI","outlined":"Button-module_outlined__kI-f-","ghost":"Button-module_ghost__OX4Ks","fullwidth":"Button-module_fullwidth__6G5sB","loader":"Button-module_loader__kuL68","spin":"Button-module_spin__Q6mex","content":"Button-module_content__SVjwi","hidden":"Button-module_hidden__vJlfj"};
4
4
 
5
5
  module.exports = styles;
6
- //# sourceMappingURL=Button.module.css.js.map
6
+ //# sourceMappingURL=Button.module.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.module.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -2,14 +2,14 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const Button = require('./button/Button.js');
6
5
  const lidoSharedUi = require('@lidofinance/lido-shared-ui');
6
+ const Button = require('./button/Button.cjs');
7
7
 
8
8
 
9
9
 
10
- exports.Button = Button.Button;
11
10
  Object.defineProperty(exports, 'TestEnvBanner', {
12
11
  enumerable: true,
13
12
  get: () => lidoSharedUi.TestEnvBanner
14
13
  });
15
- //# sourceMappingURL=index.js.map
14
+ exports.Button = Button.Button;
15
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ const undefined$1 = undefined;
4
+
5
+ module.exports = undefined$1;
6
+ //# sourceMappingURL=global.css.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.css.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1,3 +1,3 @@
1
- export { Button } from './button/Button.mjs';
2
1
  export { TestEnvBanner } from '@lidofinance/lido-shared-ui';
2
+ export { Button } from './button/Button.mjs';
3
3
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,4 @@
1
+ const undefined$1 = undefined;
2
+
3
+ export { undefined$1 as default };
4
+ //# sourceMappingURL=global.css.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global.css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAInE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAC3C,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAA;AAC3D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAA;AAE7D,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAClE,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,MAAM;WARV,UAAU;cACP,aAAa;YACf,WAAW;gBACP,OAAO;cACT,OAAO;eACN,SAAS;qDAuCrB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EACV,WAAW,EACX,UAAU,EACV,aAAa,EACb,WAAW,GACZ,MAAM,UAAU,CAAA"}
@@ -1,4 +1,3 @@
1
- import './styles/global.css';
2
1
  export { Button } from './button';
3
2
  export type { ButtonProps, ButtonSize, ButtonVariant, ButtonColor, } from './button';
4
3
  export { TestEnvBanner } from '@lidofinance/lido-shared-ui';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EACV,WAAW,EACX,UAAU,EACV,aAAa,EACb,WAAW,GACZ,MAAM,UAAU,CAAA;AAIjB,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAC3D,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,6BAA6B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lidofinance/lido-app-ui",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "homepage": "https://github.com/lidofinance/ui",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,19 +10,22 @@
10
10
  "url": "https://github.com/lidofinance/ui/issues"
11
11
  },
12
12
  "type": "module",
13
- "main": "dist/cjs/index.js",
13
+ "main": "dist/cjs/index.cjs",
14
14
  "module": "dist/esm/index.mjs",
15
15
  "types": "dist/types/index.d.ts",
16
+ "sideEffects": [
17
+ "**/*.css"
18
+ ],
16
19
  "exports": {
17
20
  ".": {
21
+ "types": "./dist/types/index.d.ts",
18
22
  "import": "./dist/esm/index.mjs",
19
- "require": "./dist/cjs/index.js"
23
+ "require": "./dist/cjs/index.cjs"
20
24
  },
21
25
  "./index.css": {
22
26
  "import": "./dist/esm/index.css",
23
27
  "require": "./dist/cjs/index.css"
24
- },
25
- "./styles/*": "./dist/styles/*"
28
+ }
26
29
  },
27
30
  "files": [
28
31
  "dist"
@@ -42,7 +45,7 @@
42
45
  "react-dom": "^18"
43
46
  },
44
47
  "dependencies": {
45
- "@lidofinance/lido-shared-ui": "^1.1.2",
48
+ "@lidofinance/lido-shared-ui": "^1.1.3",
46
49
  "classnames": "2.5.1"
47
50
  },
48
51
  "devDependencies": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/button/Button.tsx"],"sourcesContent":["import { ButtonHTMLAttributes, forwardRef, ReactNode } from 'react'\nimport cn from 'classnames'\nimport styles from './Button.module.css'\n\nexport type ButtonSize = 'sm' | 'md' | 'lg'\nexport type ButtonVariant = 'filled' | 'outlined' | 'ghost'\nexport type ButtonColor = 'primary' | 'secondary' | 'warning'\n\nexport type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {\n size?: ButtonSize\n variant?: ButtonVariant\n color?: ButtonColor\n fullwidth?: boolean\n loading?: boolean\n children?: ReactNode\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n size = 'md',\n variant = 'filled',\n color = 'primary',\n fullwidth = false,\n loading = false,\n disabled,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n return (\n <button\n ref={ref}\n disabled={disabled || loading}\n className={cn(\n styles.button,\n styles[size],\n styles[variant],\n styles[color],\n { [styles.fullwidth]: fullwidth, [styles.loading]: loading },\n className,\n )}\n {...rest}\n >\n <span className={cn(styles.content, { [styles.hidden]: loading })}>\n {children}\n </span>\n {loading && <span className={styles.loader} />}\n </button>\n )\n },\n)\n\nButton.displayName = 'Button'\n"],"names":["Button","forwardRef","_ref","ref","size","variant","color","fullwidth","loading","disabled","children","className","rest","_jsxs","cn","styles","button","_jsx","content","hidden","loader","displayName"],"mappings":";;;;;;;;;AAiBO,MAAMA,MAAM,gBAAGC,gBAAU,CAC9B,CAAAC,IAAA,EAYEC,GAAG,KACA;EAAA,IAZH;AACEC,IAAAA,IAAI,GAAG,IAAI;AACXC,IAAAA,OAAO,GAAG,QAAQ;AAClBC,IAAAA,KAAK,GAAG,SAAS;AACjBC,IAAAA,SAAS,GAAG,KAAK;AACjBC,IAAAA,OAAO,GAAG,KAAK;IACfC,QAAQ;IACRC,QAAQ;IACRC,SAAS;IACT,GAAGC,IAAAA;AACL,GAAC,GAAAV,IAAA,CAAA;AAGD,EAAA,oBACEW,eAAA,CAAA,QAAA,EAAA;AACEV,IAAAA,GAAG,EAAEA,GAAI;IACTM,QAAQ,EAAEA,QAAQ,IAAID,OAAQ;IAC9BG,SAAS,EAAEG,EAAE,CACXC,aAAM,CAACC,MAAM,EACbD,aAAM,CAACX,IAAI,CAAC,EACZW,aAAM,CAACV,OAAO,CAAC,EACfU,aAAM,CAACT,KAAK,CAAC,EACb;AAAE,MAAA,CAACS,aAAM,CAACR,SAAS,GAAGA,SAAS;MAAE,CAACQ,aAAM,CAACP,OAAO,GAAGA,OAAAA;KAAS,EAC5DG,SACF,CAAE;AAAA,IAAA,GACEC,IAAI;AAAAF,IAAAA,QAAA,gBAERO,cAAA,CAAA,MAAA,EAAA;AAAMN,MAAAA,SAAS,EAAEG,EAAE,CAACC,aAAM,CAACG,OAAO,EAAE;QAAE,CAACH,aAAM,CAACI,MAAM,GAAGX,OAAAA;AAAQ,OAAC,CAAE;AAAAE,MAAAA,QAAA,EAC/DA,QAAAA;AAAQ,KACL,CAAC,EACNF,OAAO,iBAAIS,cAAA,CAAA,MAAA,EAAA;MAAMN,SAAS,EAAEI,aAAM,CAACK,MAAAA;AAAO,KAAE,CAAC,CAAA;AAAA,GACxC,CAAC,CAAA;AAEb,CACF,EAAC;AAEDpB,MAAM,CAACqB,WAAW,GAAG,QAAQ;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAInE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAC3C,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAA;AAC3D,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAA;AAE7D,MAAM,MAAM,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAClE,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,MAAM;WARV,UAAU;cACP,aAAa;YACf,WAAW;gBACP,OAAO;cACT,OAAO;eACN,SAAS;qDAuCrB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EACV,WAAW,EACX,UAAU,EACV,aAAa,EACb,WAAW,GACZ,MAAM,UAAU,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EACV,WAAW,EACX,UAAU,EACV,aAAa,EACb,WAAW,GACZ,MAAM,UAAU,CAAA;AAIjB,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAC3D,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,6BAA6B,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './utils';
2
- export * from './theme-css';
3
- export * from './test-env-banner';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lido-shared-ui/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const TestEnvBanner: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & import("src").TestEnvBannerOwnProps & import("react").RefAttributes<HTMLDivElement>>;
2
- //# sourceMappingURL=TestEnvBanner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestEnvBanner.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/test-env-banner/TestEnvBanner.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa,mQA2BzB,CAAA"}
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './TestEnvBanner';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/test-env-banner/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
@@ -1,22 +0,0 @@
1
- import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- export type TestEnvBannerDataTestId = {
3
- root?: string;
4
- label?: string;
5
- };
6
- export type TestEnvBannerOwnProps = {
7
- /** Banner text. Defaults to the copy from the design. */
8
- text?: ReactNode;
9
- /**
10
- * Shorter version of the text, used below the `sm` breakpoint — the design
11
- * trims the default copy there. Defaults to the design's short copy while
12
- * the banner is showing its default text; pass it alongside your own `text`
13
- * to get the same trimming for custom text.
14
- *
15
- * Without a short version the text is shown at every width and wraps onto
16
- * another line when it does not fit.
17
- */
18
- shortText?: ReactNode;
19
- dataTestId?: TestEnvBannerDataTestId;
20
- };
21
- export type TestEnvBannerProps = Omit<ComponentPropsWithoutRef<'div'>, 'children'> & TestEnvBannerOwnProps;
22
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/test-env-banner/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAE3D,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,yDAAyD;IACzD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,UAAU,CAAC,EAAE,uBAAuB,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,wBAAwB,CAAC,KAAK,CAAC,EAC/B,UAAU,CACX,GACC,qBAAqB,CAAA"}
@@ -1,9 +0,0 @@
1
- export declare enum ThemeName {
2
- light = "light",
3
- dark = "dark"
4
- }
5
- export declare const DEFAULT_THEME_NAME = ThemeName.light;
6
- export declare const themeCookieKey = "lido-theme-manual";
7
- export declare const themeCookieMaxAge: number;
8
- export declare const prefersDarkThemeMediaQuery: MediaQueryList | undefined;
9
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/theme-css/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,eAAO,MAAM,kBAAkB,kBAAkB,CAAA;AAEjD,eAAO,MAAM,cAAc,sBAAsB,CAAA;AAEjD,eAAO,MAAM,iBAAiB,QAAkB,CAAA;AAEhD,eAAO,MAAM,0BAA0B,4BAGxB,CAAA"}
@@ -1,7 +0,0 @@
1
- import { ComponentPropsWithoutRef, FC, ReactElement } from 'react';
2
- export type ContentThemeProps = ComponentPropsWithoutRef<'div'> & {
3
- darkContent: ReactElement;
4
- lightContent: ReactElement;
5
- };
6
- export declare const ContentTheme: FC<ContentThemeProps>;
7
- //# sourceMappingURL=content-theme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"content-theme.d.ts","sourceRoot":"","sources":["../../../../../../../lido-shared-ui/src/theme-css/content-theme/content-theme.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAGlE,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAChE,WAAW,EAAE,YAAY,CAAA;IACzB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAgB9C,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './content-theme';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../lido-shared-ui/src/theme-css/content-theme/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -1,20 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { ThemeName } from './constants';
3
- export type ThemeContext = {
4
- toggleTheme: () => void;
5
- themeName: ThemeName;
6
- };
7
- export declare const ThemeToggleContext: import("react").Context<ThemeContext>;
8
- /**
9
- * This is really complicated logic here. Comments will be added on specific lines
10
- *
11
- * Cookie theme provider acts differently from common theme provider.
12
- * 1. it can be nested, BUT it should re-use value provided by itself for optimisation purposes
13
- * 2. if it is top-level, it is not altering itself, but instead altering theme behavior on HTMLElement level
14
- * 3. it does not support custom themes, preferring pre-defined themes instead
15
- * */
16
- export declare const CookieThemeProvider: FC<PropsWithChildren<{
17
- initialThemeName?: ThemeName;
18
- overrideThemeName?: ThemeName;
19
- }>>;
20
- //# sourceMappingURL=cookie-theme-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cookie-theme-provider.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/theme-css/cookie-theme-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,EAAE,EAEF,iBAAiB,EAKlB,MAAM,OAAO,CAAA;AACd,OAAO,EAGL,SAAS,EACV,MAAM,aAAa,CAAA;AAQpB,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;CACrB,CAAA;AAGD,eAAO,MAAM,kBAAkB,uCACmB,CAAA;AAIlD;;;;;;;KAOK;AAEL,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAClC,iBAAiB,CAAC;IAEhB,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,iBAAiB,CAAC,EAAE,SAAS,CAAA;CAC9B,CAAC,CAmHH,CAAA"}
@@ -1,6 +0,0 @@
1
- import { ThemeName } from '../constants';
2
- export declare const getThemeNameFromUrl: () => ThemeName | undefined;
3
- export declare let updateGlobalTheme: (theme: string) => void;
4
- export declare let initGlobalCookieTheme: () => void;
5
- export declare const ScriptThemeValue: () => import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=element-theme-script.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"element-theme-script.d.ts","sourceRoot":"","sources":["../../../../../../../lido-shared-ui/src/theme-css/document-head-contents/element-theme-script.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkB,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxD,eAAO,MAAM,mBAAmB,QAAO,SAAS,GAAG,SAOlD,CAAA;AA8CD,eAAO,IAAI,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAc,CAAA;AAE/D,eAAO,IAAI,qBAAqB,YAUzB,CAAA;AAEP,eAAO,MAAM,gBAAgB,+CAM5B,CAAA"}
@@ -1,7 +0,0 @@
1
- export * from './content-theme';
2
- export * from './theme-provider';
3
- export * from './theme-toggler';
4
- export * from './use-theme-toggle';
5
- export * from './constants';
6
- export * from './cookie-theme-provider';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/theme-css/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,yBAAyB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './theme-provider';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../lido-shared-ui/src/theme-css/theme-provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
@@ -1,10 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { ThemeName } from '../constants';
3
- type ThemeProviderProps = PropsWithChildren & {
4
- themeName: ThemeName;
5
- };
6
- export declare const ThemeProvider: FC<ThemeProviderProps>;
7
- export declare const LightThemeProvider: FC<PropsWithChildren>;
8
- export declare const DarkThemeProvider: FC<PropsWithChildren>;
9
- export {};
10
- //# sourceMappingURL=theme-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../../../../../lido-shared-ui/src/theme-css/theme-provider/theme-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,KAAK,kBAAkB,GAAG,iBAAiB,GAAG;IAC5C,SAAS,EAAE,SAAS,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAOhD,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,iBAAiB,CAIpD,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,iBAAiB,CAInD,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './theme-toggler';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../lido-shared-ui/src/theme-css/theme-toggler/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -1,5 +0,0 @@
1
- import { ButtonHTMLAttributes } from 'react';
2
- import React from 'react';
3
- export type ThemeTogglerProps = ButtonHTMLAttributes<HTMLButtonElement>;
4
- export declare const ThemeToggler: React.ForwardRefExoticComponent<ThemeTogglerProps & React.RefAttributes<HTMLButtonElement>>;
5
- //# sourceMappingURL=theme-toggler.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-toggler.d.ts","sourceRoot":"","sources":["../../../../../../../lido-shared-ui/src/theme-css/theme-toggler/theme-toggler.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAA4B,MAAM,OAAO,CAAA;AAKtE,OAAO,KAAwB,MAAM,OAAO,CAAA;AAE5C,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAA;AA8CvE,eAAO,MAAM,YAAY,6FAgCxB,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ThemeContext } from './cookie-theme-provider';
2
- export declare const useThemeToggle: () => ThemeContext;
3
- //# sourceMappingURL=use-theme-toggle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-theme-toggle.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/theme-css/use-theme-toggle.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE1E,eAAO,MAAM,cAAc,QAAO,YAEjC,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ThemeName } from '../constants';
2
- export declare const getThemeNameFromCookies: () => ThemeName | null;
3
- //# sourceMappingURL=cookies.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cookies.d.ts","sourceRoot":"","sources":["../../../../../../../lido-shared-ui/src/theme-css/utils/cookies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAkB,SAAS,EAAE,MAAM,cAAc,CAAA;AAMxD,eAAO,MAAM,uBAAuB,QAAO,SAAS,GAAG,IAMtD,CAAA"}
@@ -1,3 +0,0 @@
1
- import { ThemeName } from '../constants';
2
- export declare const setThemeCookie: (theme: ThemeName) => void;
3
- //# sourceMappingURL=set-theme-cookie.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"set-theme-cookie.d.ts","sourceRoot":"","sources":["../../../../../../../lido-shared-ui/src/theme-css/utils/set-theme-cookie.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqC,SAAS,EAAE,MAAM,cAAc,CAAA;AAmB3E,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,SAS9C,CAAA"}
@@ -1,6 +0,0 @@
1
- export declare const setCrossDomainCookieClientSide: (key: string, value: string, expire?: number) => void;
2
- export declare const setDomainCookieClientSide: (key: string, value: string, expire?: number) => void;
3
- export declare const getCrossDomainCookieClientSide: (key: string) => string | null;
4
- export declare const getDomainCookieClientSide: (key: string) => string | null;
5
- export declare const removeCookiesClientSide: (key: string) => void;
6
- //# sourceMappingURL=cookies-client-side.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cookies-client-side.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/utils/cookies-client-side.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,8BAA8B,GACzC,KAAK,MAAM,EACX,OAAO,MAAM,EACb,eAAY,KACX,IAYF,CAAA;AAED,eAAO,MAAM,yBAAyB,GACpC,KAAK,MAAM,EACX,OAAO,MAAM,EACb,eAAY,KACX,IAMF,CAAA;AAED,eAAO,MAAM,8BAA8B,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,IASrE,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,KAAK,MAAM,KAAG,MAAM,GAAG,IAEhE,CAAA;AAED,eAAO,MAAM,uBAAuB,GAAI,KAAK,MAAM,KAAG,IAErD,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const getTopLevelDomain: () => string;
2
- //# sourceMappingURL=get-top-level-domain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-top-level-domain.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/utils/get-top-level-domain.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,cAUvB,CAAA"}
@@ -1,6 +0,0 @@
1
- export * from './types';
2
- export { default as modalRoot } from './modalRoot';
3
- export * from './get-top-level-domain';
4
- export * from './cookies-client-side';
5
- export declare const VOID_FN: () => void;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAClD,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AAGrC,eAAO,MAAM,OAAO,YAAW,CAAA"}
@@ -1,3 +0,0 @@
1
- declare const ModalRoot: HTMLElement | null;
2
- export default ModalRoot;
3
- //# sourceMappingURL=modalRoot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modalRoot.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/utils/modalRoot.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,oBAcX,CAAA;AAEJ,eAAe,SAAS,CAAA"}
@@ -1,11 +0,0 @@
1
- import { ReactElement } from 'react';
2
- export type LidoComponentProps<T extends keyof JSX.IntrinsicElements, Props extends object = {}> = Props & Omit<JSX.IntrinsicElements[T] & {
3
- as?: keyof JSX.IntrinsicElements;
4
- forwardedAs?: keyof JSX.IntrinsicElements;
5
- }, 'ref' | keyof Props>;
6
- export type IconConfig = {
7
- icon: ReactElement;
8
- isColored?: boolean;
9
- };
10
- export type IconConfigProp = IconConfig | ReactElement;
11
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../lido-shared-ui/src/utils/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,kBAAkB,CAC5B,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,EACrC,KAAK,SAAS,MAAM,GAAG,EAAE,IACvB,KAAK,GACP,IAAI,CACF,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG;IACzB,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAA;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAA;CAC1C,EACD,KAAK,GAAG,MAAM,KAAK,CACpB,CAAA;AAEH,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,YAAY,CAAA"}