@salutejs/plasma-new-hope 0.193.0 → 0.194.0-canary.1558.11852073996.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. package/cjs/components/Modal/Modal.css +6 -0
  2. package/cjs/components/Modal/Modal.js +27 -13
  3. package/cjs/components/Modal/Modal.js.map +1 -1
  4. package/cjs/components/Modal/Modal.styles.js +27 -0
  5. package/cjs/components/Modal/Modal.styles.js.map +1 -0
  6. package/cjs/components/Modal/Modal.styles_tqsxxy.css +3 -0
  7. package/cjs/components/Modal/Modal.tokens.js +7 -1
  8. package/cjs/components/Modal/Modal.tokens.js.map +1 -1
  9. package/cjs/index.css +4 -0
  10. package/emotion/cjs/components/Modal/Modal.js +26 -12
  11. package/emotion/cjs/components/Modal/Modal.styles.js +27 -0
  12. package/emotion/cjs/components/Modal/Modal.template-doc.mdx +47 -0
  13. package/emotion/cjs/components/Modal/Modal.tokens.js +7 -1
  14. package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.config.js +1 -1
  15. package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +90 -1
  16. package/emotion/cjs/examples/plasma_web/components/Modal/Modal.config.js +1 -1
  17. package/emotion/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +90 -1
  18. package/emotion/es/components/Modal/Modal.js +26 -12
  19. package/emotion/es/components/Modal/Modal.styles.js +20 -0
  20. package/emotion/es/components/Modal/Modal.template-doc.mdx +47 -0
  21. package/emotion/es/components/Modal/Modal.tokens.js +7 -1
  22. package/emotion/es/examples/plasma_b2c/components/Modal/Modal.config.js +1 -1
  23. package/emotion/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +90 -1
  24. package/emotion/es/examples/plasma_web/components/Modal/Modal.config.js +1 -1
  25. package/emotion/es/examples/plasma_web/components/Modal/Modal.stories.tsx +90 -1
  26. package/es/components/Modal/Modal.css +6 -0
  27. package/es/components/Modal/Modal.js +27 -13
  28. package/es/components/Modal/Modal.js.map +1 -1
  29. package/es/components/Modal/Modal.styles.js +21 -0
  30. package/es/components/Modal/Modal.styles.js.map +1 -0
  31. package/es/components/Modal/Modal.styles_tqsxxy.css +3 -0
  32. package/es/components/Modal/Modal.tokens.js +7 -1
  33. package/es/components/Modal/Modal.tokens.js.map +1 -1
  34. package/es/index.css +4 -0
  35. package/package.json +2 -2
  36. package/styled-components/cjs/components/Modal/Modal.js +26 -12
  37. package/styled-components/cjs/components/Modal/Modal.styles.js +24 -0
  38. package/styled-components/cjs/components/Modal/Modal.template-doc.mdx +47 -0
  39. package/styled-components/cjs/components/Modal/Modal.tokens.js +7 -1
  40. package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.config.js +1 -1
  41. package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +90 -1
  42. package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.config.js +1 -1
  43. package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +90 -1
  44. package/styled-components/es/components/Modal/Modal.js +26 -12
  45. package/styled-components/es/components/Modal/Modal.styles.js +17 -0
  46. package/styled-components/es/components/Modal/Modal.template-doc.mdx +47 -0
  47. package/styled-components/es/components/Modal/Modal.tokens.js +7 -1
  48. package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.config.js +1 -1
  49. package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +90 -1
  50. package/styled-components/es/examples/plasma_web/components/Modal/Modal.config.js +1 -1
  51. package/styled-components/es/examples/plasma_web/components/Modal/Modal.stories.tsx +90 -1
  52. package/types/components/Modal/Modal.d.ts.map +1 -1
  53. package/types/components/Modal/Modal.styles.d.ts +5 -0
  54. package/types/components/Modal/Modal.styles.d.ts.map +1 -0
  55. package/types/components/Modal/Modal.tokens.d.ts +6 -0
  56. package/types/components/Modal/Modal.tokens.d.ts.map +1 -1
  57. package/types/components/Modal/Modal.types.d.ts +21 -1
  58. package/types/components/Modal/Modal.types.d.ts.map +1 -1
  59. package/types/components/Modal/index.d.ts +1 -1
  60. package/types/components/Modal/index.d.ts.map +1 -1
  61. package/types/examples/plasma_b2c/components/Modal/Modal.config.d.ts.map +1 -1
  62. package/types/examples/plasma_b2c/components/Modal/Modal.d.ts +7 -1
  63. package/types/examples/plasma_b2c/components/Modal/Modal.d.ts.map +1 -1
  64. package/types/examples/plasma_web/components/Modal/Modal.config.d.ts.map +1 -1
  65. package/types/examples/plasma_web/components/Modal/Modal.d.ts +7 -1
  66. package/types/examples/plasma_web/components/Modal/Modal.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.types.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEjF,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC9C;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;IACnE;;OAEG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,kBAAkB,GAAG,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,iBAAiB,GAAG,eAAe,GAAG,SAAS,CAAC,CAAC;AAEpH,oBAAY,i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AAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,UAAU,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAE3D,oBAAY,kBAAkB,GAAG,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,iBAAiB,GAAG,eAAe,GAAG,SAAS,CAAC,CAAC;AAEpH,oBAAY,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,QAAQ,CAAC,GACjE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,qBAAqB,GAAG,gBAAgB,GAAG,SAAS,CAAC,CAAC;AAExF,oBAAY,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,GAAG,QAAQ,CAAC,GAC1E,IAAI,CAAC,UAAU,EAAE,YAAY,GAAG,cAAc,GAAG,SAAS,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export { modalConfig, modalRoot } from './Modal';
2
2
  export { classes as modalClasses, tokens as modalTokens } from './Modal.tokens';
3
- export type { ModalProps, ModalOverlayProps } from './Modal.types';
3
+ export type { ModalBodyProps, CommonModalProps, ModalProps, ModalOverlayProps } from './Modal.types';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChF,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAChF,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Modal/Modal.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;CAYlB,CAAC"}
1
+ {"version":3,"file":"Modal.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Modal/Modal.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;CAkBlB,CAAC"}
@@ -4,5 +4,11 @@ export declare const Modal: import("react").FunctionComponent<import("../../../.
4
4
  view: {
5
5
  default: import("@linaria/core").LinariaClassName;
6
6
  };
7
- }> & import("../../../../components/Modal").ModalProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ }> & ((import("../../../../components/Modal").CommonModalProps & {
8
+ hasBody: true;
9
+ hasClose?: boolean | undefined;
10
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("../../../../components/Modal").CommonModalProps & {
11
+ hasBody?: false | undefined;
12
+ hasClose?: undefined;
13
+ } & import("react").RefAttributes<HTMLDivElement>))>;
8
14
  //# sourceMappingURL=Modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Modal/Modal.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,KAAK;;;;uGAA0B,CAAC"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Modal/Modal.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,KAAK;;;;;;;;;;oDAA0B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Modal/Modal.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;CAYlB,CAAC"}
1
+ {"version":3,"file":"Modal.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Modal/Modal.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;CAkBlB,CAAC"}
@@ -4,5 +4,11 @@ export declare const Modal: import("react").FunctionComponent<import("../../../.
4
4
  view: {
5
5
  default: import("@linaria/core").LinariaClassName;
6
6
  };
7
- }> & import("../../../../components/Modal").ModalProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ }> & ((import("../../../../components/Modal").CommonModalProps & {
8
+ hasBody: true;
9
+ hasClose?: boolean | undefined;
10
+ } & import("react").RefAttributes<HTMLDivElement>) | (import("../../../../components/Modal").CommonModalProps & {
11
+ hasBody?: false | undefined;
12
+ hasClose?: undefined;
13
+ } & import("react").RefAttributes<HTMLDivElement>))>;
8
14
  //# sourceMappingURL=Modal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Modal/Modal.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,KAAK;;;;uGAA0B,CAAC"}
1
+ {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Modal/Modal.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,KAAK;;;;;;;;;;oDAA0B,CAAC"}