@lidofinance/lido-app-ui 1.1.2 → 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.
@@ -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":";;;;"}
@@ -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';
@@ -1 +1 @@
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
+ {"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.2",
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":";;;;;;;;;;;;;"}