@salutejs/plasma-new-hope 0.175.2-dev.0 → 0.176.0-canary.1503.11559892364.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. package/cjs/components/Notification/Notification.css +11 -11
  2. package/cjs/components/Notification/Notification.js +2 -2
  3. package/cjs/components/Notification/Notification.js.map +1 -1
  4. package/cjs/components/Notification/Notification.styles.js +11 -2
  5. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  6. package/cjs/components/Notification/{Notification.styles_7h8hp0.css → Notification.styles_e6274r.css} +2 -2
  7. package/cjs/components/Notification/Notification.tokens.js +2 -1
  8. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  9. package/cjs/components/Notification/Notification.types.js.map +1 -1
  10. package/cjs/components/Notification/NotificationsPortal.js +8 -4
  11. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  12. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  13. package/cjs/components/Notification/NotificationsProvider.js +3 -1
  14. package/cjs/components/Notification/NotificationsProvider.js.map +1 -1
  15. package/cjs/index.css +11 -11
  16. package/cjs/index.js +1 -1
  17. package/cjs/utils/index.js.map +1 -1
  18. package/emotion/cjs/components/Notification/Notification.js +2 -2
  19. package/emotion/cjs/components/Notification/Notification.styles.js +14 -19
  20. package/emotion/cjs/components/Notification/Notification.template-doc.mdx +17 -8
  21. package/emotion/cjs/components/Notification/Notification.tokens.js +2 -1
  22. package/emotion/cjs/components/Notification/NotificationsPortal.js +9 -5
  23. package/emotion/cjs/components/Notification/NotificationsProvider.js +3 -1
  24. package/emotion/cjs/components/Notification/index.js +4 -4
  25. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.js +5 -3
  26. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  27. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.js +5 -3
  28. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  29. package/emotion/es/components/Notification/Notification.js +1 -1
  30. package/emotion/es/components/Notification/Notification.styles.js +14 -19
  31. package/emotion/es/components/Notification/Notification.template-doc.mdx +17 -8
  32. package/emotion/es/components/Notification/Notification.tokens.js +2 -1
  33. package/emotion/es/components/Notification/NotificationsPortal.js +9 -5
  34. package/emotion/es/components/Notification/NotificationsProvider.js +3 -1
  35. package/emotion/es/components/Notification/index.js +1 -1
  36. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.js +6 -4
  37. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  38. package/emotion/es/examples/plasma_web/components/Notification/Notification.js +6 -4
  39. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  40. package/es/components/Notification/Notification.css +11 -11
  41. package/es/components/Notification/Notification.js +2 -2
  42. package/es/components/Notification/Notification.js.map +1 -1
  43. package/es/components/Notification/Notification.styles.js +11 -2
  44. package/es/components/Notification/Notification.styles.js.map +1 -1
  45. package/es/components/Notification/{Notification.styles_7h8hp0.css → Notification.styles_e6274r.css} +2 -2
  46. package/es/components/Notification/Notification.tokens.js +2 -1
  47. package/es/components/Notification/Notification.tokens.js.map +1 -1
  48. package/es/components/Notification/Notification.types.js.map +1 -1
  49. package/es/components/Notification/NotificationsPortal.js +8 -4
  50. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  51. package/es/components/Notification/NotificationsProvider.css +11 -11
  52. package/es/components/Notification/NotificationsProvider.js +3 -1
  53. package/es/components/Notification/NotificationsProvider.js.map +1 -1
  54. package/es/index.css +11 -11
  55. package/es/index.js +1 -1
  56. package/es/utils/index.js.map +1 -1
  57. package/package.json +2 -2
  58. package/styled-components/cjs/components/Notification/Notification.js +2 -2
  59. package/styled-components/cjs/components/Notification/Notification.styles.js +5 -2
  60. package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +17 -8
  61. package/styled-components/cjs/components/Notification/Notification.tokens.js +2 -1
  62. package/styled-components/cjs/components/Notification/NotificationsPortal.js +8 -4
  63. package/styled-components/cjs/components/Notification/NotificationsProvider.js +3 -1
  64. package/styled-components/cjs/components/Notification/index.js +4 -4
  65. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.js +5 -3
  66. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  67. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.js +5 -3
  68. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  69. package/styled-components/es/components/Notification/Notification.js +1 -1
  70. package/styled-components/es/components/Notification/Notification.styles.js +5 -2
  71. package/styled-components/es/components/Notification/Notification.template-doc.mdx +17 -8
  72. package/styled-components/es/components/Notification/Notification.tokens.js +2 -1
  73. package/styled-components/es/components/Notification/NotificationsPortal.js +8 -4
  74. package/styled-components/es/components/Notification/NotificationsProvider.js +3 -1
  75. package/styled-components/es/components/Notification/index.js +1 -1
  76. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.js +6 -4
  77. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  78. package/styled-components/es/examples/plasma_web/components/Notification/Notification.js +6 -4
  79. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  80. package/types/components/Notification/Notification.d.ts +3 -3
  81. package/types/components/Notification/Notification.d.ts.map +1 -1
  82. package/types/components/Notification/Notification.styles.d.ts +4 -2
  83. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  84. package/types/components/Notification/Notification.tokens.d.ts +1 -0
  85. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  86. package/types/components/Notification/Notification.types.d.ts +11 -5
  87. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  88. package/types/components/Notification/NotificationsPortal.d.ts.map +1 -1
  89. package/types/components/Notification/NotificationsProvider.d.ts +4 -3
  90. package/types/components/Notification/NotificationsProvider.d.ts.map +1 -1
  91. package/types/components/Notification/index.d.ts +2 -2
  92. package/types/components/Notification/index.d.ts.map +1 -1
  93. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts +4 -2
  94. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts.map +1 -1
  95. package/types/examples/plasma_web/components/Notification/Notification.d.ts +4 -13
  96. package/types/examples/plasma_web/components/Notification/Notification.d.ts.map +1 -1
  97. package/types/utils/index.d.ts +1 -1
  98. package/types/utils/index.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationsProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/NotificationsProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAI1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,iBAAiB,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC,CAAC;IAClH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAOA,CAAC"}
1
+ {"version":3,"file":"NotificationsProvider.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/NotificationsProvider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG7D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAI1D,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC,CAAC;IACnH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACrC,CAOA,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export { NotificationsProvider } from './NotificationsProvider';
2
- export { notificationRoot, noticationConfig } from './Notification';
2
+ export { notificationRoot, notificationConfig } from './Notification';
3
3
  export { addNotification, closeNotification } from './NotificationsStore';
4
4
  export { classes as notificationClasses, tokens as notificationTokens } from './Notification.tokens';
5
- export type { NotificationProps, NotificationPortalProps, NotificationLayout, NotificationIconPlacement, } from './Notification.types';
5
+ export type { NotificationProps, NotificationPortalProps, NotificationLayout, NotificationIconPlacement, NotificationPlacement, } from './Notification.types';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACrG,YAAY,EACR,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,yBAAyB,GAC5B,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACrG,YAAY,EACR,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,yBAAyB,EACzB,qBAAqB,GACxB,MAAM,sBAAsB,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { NotificationProps } from '../../../../components/Notification';
2
+ import { NotificationProps, NotificationPlacement } from '../../../../components/Notification';
3
3
  export { modalClasses } from '../../../../components/Modal';
4
- export declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.HTMLAttributes<HTMLDivElement>>;
5
+ export type { NotificationPlacement };
5
6
  export declare const NotificationsProvider: React.FC<{
6
7
  children: ReactNode;
7
8
  frame?: string;
9
+ placement?: NotificationPlacement;
8
10
  }>;
9
11
  //# sourceMappingURL=Notification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Notification/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAiB,MAAM,OAAO,CAAC;AAEnF,OAAO,EAEH,iBAAiB,EAEpB,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,YAAY,0FAExB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CASnF,CAAC"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Notification/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6C,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpF,OAAO,EAEH,iBAAiB,EAEjB,qBAAqB,EACxB,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,YAAY,2FAExB,CAAC;AAEF,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAEtC,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACrC,CAMA,CAAC"}
@@ -1,20 +1,11 @@
1
1
  import React, { ReactNode } from 'react';
2
+ import { NotificationProps, NotificationPlacement } from '../../../../components/Notification';
2
3
  export { modalClasses } from '../../../../components/Modal';
3
- export declare const Notification: React.FunctionComponent<import("../../../../engines/types").PropsType<{
4
- view: {
5
- default: import("@linaria/core").LinariaClassName;
6
- };
7
- layout: {
8
- horizontal: import("@linaria/core").LinariaClassName;
9
- vertical: import("@linaria/core").LinariaClassName;
10
- };
11
- size: {
12
- xs: import("@linaria/core").LinariaClassName;
13
- xxs: import("@linaria/core").LinariaClassName;
14
- };
15
- }> & import("../../../../components/Notification").NotificationProps & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.HTMLAttributes<HTMLDivElement>>;
5
+ export type { NotificationPlacement };
16
6
  export declare const NotificationsProvider: React.FC<{
17
7
  children: ReactNode;
18
8
  frame?: string;
9
+ placement?: NotificationPlacement;
19
10
  }>;
20
11
  //# sourceMappingURL=Notification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Notification/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOzC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,YAAY;;;;;;;;;;;;2GAA0B,CAAC;AAEpD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CASnF,CAAC"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Notification/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6C,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpF,OAAO,EAEH,iBAAiB,EAEjB,qBAAqB,EACxB,MAAM,qCAAqC,CAAC;AAK7C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,YAAY,2FAExB,CAAC;AAEF,YAAY,EAAE,qBAAqB,EAAE,CAAC;AAEtC,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACrC,CAMA,CAAC"}
@@ -9,6 +9,6 @@ export { isEmpty } from './isEmpty';
9
9
  export * as constants from './constants';
10
10
  export * from './getPopoverPlacement';
11
11
  export { noop } from './noop';
12
- export declare const cx: (...classes: (string | undefined)[]) => string;
12
+ export declare const cx: (...classes: (string | boolean | undefined)[]) => string;
13
13
  export declare const composableStyle: (s: TemplateStringsArray, ...expr: Array<string | number | CSSProperties>) => string;
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAA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