@salutejs/plasma-new-hope 0.88.0-canary.1223.9302553119.0 → 0.88.0-canary.1225.9346550240.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. package/cjs/components/Sheet/Sheet.css +5 -0
  2. package/cjs/components/Sheet/Sheet.js +91 -0
  3. package/cjs/components/Sheet/Sheet.js.map +1 -0
  4. package/cjs/components/Sheet/Sheet.styles.js +62 -0
  5. package/cjs/components/Sheet/Sheet.styles.js.map +1 -0
  6. package/cjs/components/Sheet/Sheet.styles_1bm46e7.css +5 -0
  7. package/cjs/components/Sheet/Sheet.tokens.js +16 -0
  8. package/cjs/components/Sheet/Sheet.tokens.js.map +1 -0
  9. package/cjs/components/Sheet/hooks/useSheet.js +26 -0
  10. package/cjs/components/Sheet/hooks/useSheet.js.map +1 -0
  11. package/cjs/components/Sheet/hooks/useSheetSwipe.js +98 -0
  12. package/cjs/components/Sheet/hooks/useSheetSwipe.js.map +1 -0
  13. package/cjs/components/Sheet/hooks/useThemeContext.js +17 -0
  14. package/cjs/components/Sheet/hooks/useThemeContext.js.map +1 -0
  15. package/cjs/components/Sheet/utils/handleTransition.js +14 -0
  16. package/cjs/components/Sheet/utils/handleTransition.js.map +1 -0
  17. package/cjs/components/Sheet/variations/_view/base.js +9 -0
  18. package/cjs/components/Sheet/variations/_view/base.js.map +1 -0
  19. package/cjs/components/Sheet/variations/_view/base_x642ct.css +1 -0
  20. package/cjs/index.css +6 -0
  21. package/cjs/index.js +6 -0
  22. package/cjs/index.js.map +1 -1
  23. package/es/components/Sheet/Sheet.css +5 -0
  24. package/es/components/Sheet/Sheet.js +86 -0
  25. package/es/components/Sheet/Sheet.js.map +1 -0
  26. package/es/components/Sheet/Sheet.styles.js +54 -0
  27. package/es/components/Sheet/Sheet.styles.js.map +1 -0
  28. package/es/components/Sheet/Sheet.styles_1bm46e7.css +5 -0
  29. package/es/components/Sheet/Sheet.tokens.js +11 -0
  30. package/es/components/Sheet/Sheet.tokens.js.map +1 -0
  31. package/es/components/Sheet/hooks/useSheet.js +22 -0
  32. package/es/components/Sheet/hooks/useSheet.js.map +1 -0
  33. package/es/components/Sheet/hooks/useSheetSwipe.js +94 -0
  34. package/es/components/Sheet/hooks/useSheetSwipe.js.map +1 -0
  35. package/es/components/Sheet/hooks/useThemeContext.js +13 -0
  36. package/es/components/Sheet/hooks/useThemeContext.js.map +1 -0
  37. package/es/components/Sheet/utils/handleTransition.js +10 -0
  38. package/es/components/Sheet/utils/handleTransition.js.map +1 -0
  39. package/es/components/Sheet/variations/_view/base.js +5 -0
  40. package/es/components/Sheet/variations/_view/base.js.map +1 -0
  41. package/es/components/Sheet/variations/_view/base_x642ct.css +1 -0
  42. package/es/index.css +6 -0
  43. package/es/index.js +2 -0
  44. package/es/index.js.map +1 -1
  45. package/package.json +4 -2
  46. package/styled-components/cjs/components/Sheet/Sheet.js +90 -0
  47. package/styled-components/cjs/components/Sheet/Sheet.styles.js +28 -0
  48. package/styled-components/cjs/components/Sheet/Sheet.tokens.js +14 -0
  49. package/styled-components/cjs/components/Sheet/hooks/index.js +26 -0
  50. package/styled-components/cjs/components/Sheet/hooks/useSheet.js +24 -0
  51. package/styled-components/cjs/components/Sheet/hooks/useSheetSwipe.js +102 -0
  52. package/styled-components/cjs/components/Sheet/hooks/useThemeContext.js +15 -0
  53. package/styled-components/cjs/components/Sheet/index.js +31 -0
  54. package/styled-components/cjs/components/Sheet/utils/handleTransition.js +13 -0
  55. package/styled-components/cjs/components/Sheet/utils/index.js +12 -0
  56. package/styled-components/cjs/components/Sheet/variations/_view/tokens.json +3 -0
  57. package/styled-components/cjs/components/_Icon/index.js +1 -15
  58. package/styled-components/cjs/examples/plasma_b2c/components/Sheet/Sheet.config.js +18 -0
  59. package/styled-components/cjs/examples/plasma_b2c/components/Sheet/Sheet.js +17 -0
  60. package/styled-components/cjs/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +239 -0
  61. package/styled-components/cjs/examples/plasma_web/components/Sheet/Sheet.config.js +18 -0
  62. package/styled-components/cjs/examples/plasma_web/components/Sheet/Sheet.js +17 -0
  63. package/styled-components/cjs/examples/plasma_web/components/Sheet/Sheet.stories.tsx +239 -0
  64. package/styled-components/cjs/index.js +11 -0
  65. package/styled-components/es/components/Sheet/Sheet.js +82 -0
  66. package/styled-components/es/components/Sheet/Sheet.styles.js +21 -0
  67. package/styled-components/es/components/Sheet/Sheet.tokens.js +8 -0
  68. package/styled-components/es/components/Sheet/hooks/index.js +3 -0
  69. package/styled-components/es/components/Sheet/hooks/useSheet.js +18 -0
  70. package/styled-components/es/components/Sheet/hooks/useSheetSwipe.js +95 -0
  71. package/styled-components/es/components/Sheet/hooks/useThemeContext.js +9 -0
  72. package/styled-components/es/components/Sheet/index.js +2 -0
  73. package/styled-components/es/components/Sheet/utils/handleTransition.js +7 -0
  74. package/styled-components/es/components/Sheet/utils/index.js +1 -0
  75. package/styled-components/es/components/Sheet/variations/_view/tokens.json +3 -0
  76. package/styled-components/es/components/_Icon/index.js +1 -3
  77. package/styled-components/es/examples/plasma_b2c/components/Sheet/Sheet.config.js +12 -0
  78. package/styled-components/es/examples/plasma_b2c/components/Sheet/Sheet.js +6 -0
  79. package/styled-components/es/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +239 -0
  80. package/styled-components/es/examples/plasma_web/components/Sheet/Sheet.config.js +12 -0
  81. package/styled-components/es/examples/plasma_web/components/Sheet/Sheet.js +6 -0
  82. package/styled-components/es/examples/plasma_web/components/Sheet/Sheet.stories.tsx +239 -0
  83. package/styled-components/es/index.js +1 -0
  84. package/types/components/Sheet/Sheet.d.ts +22 -0
  85. package/types/components/Sheet/Sheet.d.ts.map +1 -0
  86. package/types/components/Sheet/Sheet.styles.d.ts +13 -0
  87. package/types/components/Sheet/Sheet.styles.d.ts.map +1 -0
  88. package/types/components/Sheet/Sheet.tokens.d.ts +9 -0
  89. package/types/components/Sheet/Sheet.tokens.d.ts.map +1 -0
  90. package/types/components/Sheet/Sheet.types.d.ts +35 -0
  91. package/types/components/Sheet/Sheet.types.d.ts.map +1 -0
  92. package/types/components/Sheet/hooks/index.d.ts +4 -0
  93. package/types/components/Sheet/hooks/index.d.ts.map +1 -0
  94. package/types/components/Sheet/hooks/useSheet.d.ts +3 -0
  95. package/types/components/Sheet/hooks/useSheet.d.ts.map +1 -0
  96. package/types/components/Sheet/hooks/useSheetSwipe.d.ts +9 -0
  97. package/types/components/Sheet/hooks/useSheetSwipe.d.ts.map +1 -0
  98. package/types/components/Sheet/hooks/useThemeContext.d.ts +7 -0
  99. package/types/components/Sheet/hooks/useThemeContext.d.ts.map +1 -0
  100. package/types/components/Sheet/index.d.ts +4 -0
  101. package/types/components/Sheet/index.d.ts.map +1 -0
  102. package/types/components/Sheet/utils/handleTransition.d.ts +5 -0
  103. package/types/components/Sheet/utils/handleTransition.d.ts.map +1 -0
  104. package/types/components/Sheet/utils/index.d.ts +2 -0
  105. package/types/components/Sheet/utils/index.d.ts.map +1 -0
  106. package/types/components/Sheet/variations/_view/base.d.ts.map +1 -0
  107. package/types/components/_Icon/index.d.ts +0 -2
  108. package/types/components/_Icon/index.d.ts.map +1 -1
  109. package/types/examples/plasma_b2c/components/Sheet/Sheet.config.d.ts +11 -0
  110. package/types/examples/plasma_b2c/components/Sheet/Sheet.config.d.ts.map +1 -0
  111. package/types/examples/plasma_b2c/components/Sheet/Sheet.d.ts +8 -0
  112. package/types/examples/plasma_b2c/components/Sheet/Sheet.d.ts.map +1 -0
  113. package/types/examples/plasma_web/components/Sheet/Sheet.config.d.ts +11 -0
  114. package/types/examples/plasma_web/components/Sheet/Sheet.config.d.ts.map +1 -0
  115. package/types/examples/plasma_web/components/Sheet/Sheet.d.ts +8 -0
  116. package/types/examples/plasma_web/components/Sheet/Sheet.d.ts.map +1 -0
  117. package/types/index.d.ts +1 -0
  118. package/types/index.d.ts.map +1 -1
  119. package/styled-components/cjs/components/Accordion/Accordion.js +0 -50
  120. package/styled-components/cjs/components/Accordion/Accordion.styles.js +0 -9
  121. package/styled-components/cjs/components/Accordion/Accordion.tokens.js +0 -42
  122. package/styled-components/cjs/components/Accordion/index.js +0 -38
  123. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -96
  124. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -49
  125. package/styled-components/cjs/components/Accordion/ui/AccordionItem/AccordionItem.types.js +0 -5
  126. package/styled-components/cjs/components/Accordion/variations/_size/tokens.json +0 -6
  127. package/styled-components/cjs/components/Accordion/variations/_stretching/base.js +0 -8
  128. package/styled-components/cjs/components/Accordion/variations/_stretching/tokens.json +0 -1
  129. package/styled-components/cjs/components/Accordion/variations/_view/base.js +0 -8
  130. package/styled-components/cjs/components/Accordion/variations/_view/tokens.json +0 -8
  131. package/styled-components/cjs/components/_Icon/Icon.assets/ChevronDownFill.js +0 -32
  132. package/styled-components/cjs/components/_Icon/Icon.assets/Minus.js +0 -21
  133. package/styled-components/cjs/components/_Icon/Icons/IconChevronDownFill.js +0 -22
  134. package/styled-components/cjs/components/_Icon/Icons/IconMinus.js +0 -22
  135. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.config.js +0 -30
  136. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.js +0 -17
  137. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +0 -75
  138. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.config.js +0 -30
  139. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.js +0 -17
  140. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +0 -75
  141. package/styled-components/es/components/Accordion/Accordion.js +0 -41
  142. package/styled-components/es/components/Accordion/Accordion.styles.js +0 -3
  143. package/styled-components/es/components/Accordion/Accordion.tokens.js +0 -36
  144. package/styled-components/es/components/Accordion/index.js +0 -3
  145. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.js +0 -87
  146. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.styles.js +0 -42
  147. package/styled-components/es/components/Accordion/ui/AccordionItem/AccordionItem.types.js +0 -1
  148. package/styled-components/es/components/Accordion/variations/_size/tokens.json +0 -6
  149. package/styled-components/es/components/Accordion/variations/_stretching/base.js +0 -2
  150. package/styled-components/es/components/Accordion/variations/_stretching/tokens.json +0 -1
  151. package/styled-components/es/components/Accordion/variations/_view/base.js +0 -2
  152. package/styled-components/es/components/Accordion/variations/_view/tokens.json +0 -8
  153. package/styled-components/es/components/_Icon/Icon.assets/ChevronDownFill.js +0 -25
  154. package/styled-components/es/components/_Icon/Icon.assets/Minus.js +0 -14
  155. package/styled-components/es/components/_Icon/Icons/IconChevronDownFill.js +0 -15
  156. package/styled-components/es/components/_Icon/Icons/IconMinus.js +0 -15
  157. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.config.js +0 -24
  158. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.js +0 -6
  159. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +0 -75
  160. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.config.js +0 -24
  161. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.js +0 -6
  162. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +0 -75
  163. package/types/components/Accordion/Accordion.d.ts +0 -35
  164. package/types/components/Accordion/Accordion.d.ts.map +0 -1
  165. package/types/components/Accordion/Accordion.styles.d.ts +0 -2
  166. package/types/components/Accordion/Accordion.styles.d.ts.map +0 -1
  167. package/types/components/Accordion/Accordion.tokens.d.ts +0 -37
  168. package/types/components/Accordion/Accordion.tokens.d.ts.map +0 -1
  169. package/types/components/Accordion/Accordion.types.d.ts +0 -24
  170. package/types/components/Accordion/Accordion.types.d.ts.map +0 -1
  171. package/types/components/Accordion/index.d.ts +0 -5
  172. package/types/components/Accordion/index.d.ts.map +0 -1
  173. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts +0 -4
  174. package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts.map +0 -1
  175. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts +0 -13
  176. package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts.map +0 -1
  177. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts +0 -39
  178. package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts.map +0 -1
  179. package/types/components/Accordion/variations/_size/base.d.ts.map +0 -1
  180. package/types/components/Accordion/variations/_stretching/base.d.ts +0 -2
  181. package/types/components/Accordion/variations/_stretching/base.d.ts.map +0 -1
  182. package/types/components/Accordion/variations/_view/base.d.ts +0 -2
  183. package/types/components/Accordion/variations/_view/base.d.ts.map +0 -1
  184. package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts +0 -4
  185. package/types/components/_Icon/Icon.assets/ChevronDownFill.d.ts.map +0 -1
  186. package/types/components/_Icon/Icon.assets/Minus.d.ts +0 -4
  187. package/types/components/_Icon/Icon.assets/Minus.d.ts.map +0 -1
  188. package/types/components/_Icon/Icons/IconChevronDownFill.d.ts +0 -4
  189. package/types/components/_Icon/Icons/IconChevronDownFill.d.ts.map +0 -1
  190. package/types/components/_Icon/Icons/IconMinus.d.ts +0 -4
  191. package/types/components/_Icon/Icons/IconMinus.d.ts.map +0 -1
  192. package/types/examples/plasma_b2c/components/Accordion/Accordion.config.d.ts +0 -23
  193. package/types/examples/plasma_b2c/components/Accordion/Accordion.config.d.ts.map +0 -1
  194. package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts +0 -26
  195. package/types/examples/plasma_b2c/components/Accordion/Accordion.d.ts.map +0 -1
  196. package/types/examples/plasma_web/components/Accordion/Accordion.config.d.ts +0 -23
  197. package/types/examples/plasma_web/components/Accordion/Accordion.config.d.ts.map +0 -1
  198. package/types/examples/plasma_web/components/Accordion/Accordion.d.ts +0 -26
  199. package/types/examples/plasma_web/components/Accordion/Accordion.d.ts.map +0 -1
  200. /package/styled-components/cjs/components/{Accordion/Accordion.types.js → Sheet/Sheet.types.js} +0 -0
  201. /package/styled-components/cjs/components/{Accordion/variations/_size → Sheet/variations/_view}/base.js +0 -0
  202. /package/styled-components/es/components/{Accordion/Accordion.types.js → Sheet/Sheet.types.js} +0 -0
  203. /package/styled-components/es/components/{Accordion/variations/_size → Sheet/variations/_view}/base.js +0 -0
  204. /package/types/components/{Accordion/variations/_size → Sheet/variations/_view}/base.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Sheet/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,MAAM,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { CommonProps } from '../Sheet.types';
2
+ declare type HandleTransitionProps = Omit<CommonProps, 'isOpen'>;
3
+ export declare const handleTransition: (transition: string) => (props: HandleTransitionProps) => string;
4
+ export {};
5
+ //# sourceMappingURL=handleTransition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handleTransition.d.ts","sourceRoot":"","sources":["../../../../src/components/Sheet/utils/handleTransition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,aAAK,qBAAqB,GAAG,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAEzD,eAAO,MAAM,gBAAgB,eAAgB,MAAM,aAAa,qBAAqB,KAAG,MAOvF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { handleTransition } from './handleTransition';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Sheet/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/Sheet/variations/_view/base.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,0CAAQ,CAAC"}
@@ -4,9 +4,7 @@ export { IconMic } from './Icons/IconMic';
4
4
  export { IconChevronLeft } from './Icons/IconChevronLeft';
5
5
  export { IconChevronDoubleLeft } from './Icons/IconChevronDoubleLeft';
6
6
  export { IconChevronDown } from './Icons/IconChevronDown';
7
- export { IconChevronDownFill } from './Icons/IconChevronDownFill';
8
7
  export { IconClose } from './Icons/IconClose';
9
8
  export { IconCross } from './Icons/IconCross';
10
9
  export { IconDone } from './Icons/IconDone';
11
- export { IconMinus } from './Icons/IconMinus';
12
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/_Icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/_Icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ };
5
+ variations: {
6
+ view: {
7
+ default: import("@linaria/core").LinariaClassName;
8
+ };
9
+ };
10
+ };
11
+ //# sourceMappingURL=Sheet.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sheet.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Sheet/Sheet.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;CAalB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export { sheetClasses } from '../../../../components/Sheet';
3
+ export declare const Sheet: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
4
+ view: {
5
+ default: import("@linaria/core").LinariaClassName;
6
+ };
7
+ }> & import("../../../../components/Sheet").SheetProps & import("react").RefAttributes<HTMLDivElement>>;
8
+ //# sourceMappingURL=Sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Sheet/Sheet.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,KAAK;;;;uGAA0B,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const config: {
2
+ defaults: {
3
+ view: string;
4
+ };
5
+ variations: {
6
+ view: {
7
+ default: import("@linaria/core").LinariaClassName;
8
+ };
9
+ };
10
+ };
11
+ //# sourceMappingURL=Sheet.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sheet.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Sheet/Sheet.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;CAalB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export { sheetClasses } from '../../../../components/Sheet';
3
+ export declare const Sheet: import("react").FunctionComponent<import("../../../../engines/types").PropsType<{
4
+ view: {
5
+ default: import("@linaria/core").LinariaClassName;
6
+ };
7
+ }> & import("../../../../components/Sheet").SheetProps & import("react").RefAttributes<HTMLDivElement>>;
8
+ //# sourceMappingURL=Sheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Sheet/Sheet.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAI5D,eAAO,MAAM,KAAK;;;;uGAA0B,CAAC"}
package/types/index.d.ts CHANGED
@@ -44,6 +44,7 @@ export * from './components/Progress';
44
44
  export * from './components/Select';
45
45
  export * from './components/Divider';
46
46
  export * from './components/Toolbar';
47
+ export * from './components/Sheet';
47
48
  export * from './components/Slider';
48
49
  export * from './components/Range';
49
50
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
@@ -1,50 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.accordionRoot = exports.accordionConfig = void 0;
8
- var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _utils = /*#__PURE__*/require("../../utils");
10
- var _Accordion = /*#__PURE__*/require("./Accordion.styles");
11
- var _Accordion2 = /*#__PURE__*/require("./Accordion.tokens");
12
- var _base = /*#__PURE__*/require("./variations/_view/base");
13
- var _base2 = /*#__PURE__*/require("./variations/_size/base");
14
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
16
- var accordionRoot = exports.accordionRoot = function accordionRoot(Root) {
17
- return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, outerRootRef) {
18
- var size = _ref.size,
19
- view = _ref.view,
20
- _ref$stretching = _ref.stretching,
21
- stretching = _ref$stretching === void 0 ? 'filled' : _ref$stretching,
22
- children = _ref.children,
23
- className = _ref.className;
24
- var stretchingClass = _Accordion2.classes["".concat(stretching, "Stretching")];
25
- return /*#__PURE__*/_react["default"].createElement(Root, {
26
- ref: outerRootRef,
27
- size: size,
28
- view: view,
29
- className: (0, _utils.cx)(stretchingClass, _Accordion2.classes.accordionRoot, className)
30
- }, children);
31
- });
32
- };
33
- var accordionConfig = exports.accordionConfig = {
34
- name: 'Accordion',
35
- tag: 'div',
36
- layout: accordionRoot,
37
- base: _Accordion.base,
38
- variations: {
39
- view: {
40
- css: _base.base
41
- },
42
- size: {
43
- css: _base2.base
44
- }
45
- },
46
- defaults: {
47
- view: 'default',
48
- size: 'm'
49
- }
50
- };
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Accordion = /*#__PURE__*/require("./Accordion.tokens");
9
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)(["display:flex;flex-direction:column;gap:var(", ");align-items:stretch;height:auto;background:var(", ");&&.", "{width:var(", ");}&&.", "{width:100%;}"], _Accordion.tokens.accordionGap, _Accordion.tokens.accordionBackground, _Accordion.classes.fixedStretching, _Accordion.tokens.accordionWidth, _Accordion.classes.filledStretching);
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.tokens = exports.classes = void 0;
7
- var classes = exports.classes = {
8
- filledStretching: 'accordion-stretching-filled',
9
- fixedStretching: 'accordion-stretching-fixed',
10
- accordionRoot: 'accordion-root',
11
- accordionItem: 'accordion-item',
12
- clearAccordionItem: 'clear-accordion-item',
13
- accordionItemShowBody: 'accordion-item-show-body',
14
- accordionPlusAnimationElement: 'accordion-plus-animation-element'
15
- };
16
- var tokens = exports.tokens = {
17
- accordionGap: '--plasma-accordion-gap',
18
- accordionWidth: '--plasma-accordion-width',
19
- accordionBackground: '--plasma-accordion-background',
20
- accordionItemBackground: '--plasma-accordion-item-background',
21
- accordionItemBorderRadius: '--plasma-accordion-item-border-radius',
22
- accordionItemPaddingTop: '--plasma-accordion-item-padding-top',
23
- accordionItemPaddingRight: '--plasma-accordion-item-padding-right',
24
- accordionItemPaddingBottom: '--plasma-accordion-item-padding-bottom',
25
- accordionItemPaddingLeft: '--plasma-accordion-item-padding-left',
26
- accordionItemGap: '--plasma-accordion-item-gap',
27
- accordionItemFocus: '--plasma-accordion-item-focus',
28
- accordionItemTitleColor: '--plasma-accordion-item-title-color',
29
- accordionItemTitleFontFamily: '--plasma-accordion-item-title-font-family',
30
- accordionItemTitleFontSize: '--plasma-accordion-item-title-font-size',
31
- accordionItemTitleFontStyle: '--plasma-accordion-item-title-font-style',
32
- accordionItemTitleFontWeight: '--plasma-accordion-item-title-font-weight',
33
- accordionItemTitleLetterSpacing: '--plasma-accordion-item-title-letter-spacing',
34
- accordionItemTitleLineHeight: '--plasma-accordion-item-title-line-height',
35
- accordionItemTextColor: '--plasma-accordion-item-text-color',
36
- accordionItemTextFontFamily: '--plasma-accordion-item-text-font-family',
37
- accordionItemTextFontSize: '--plasma-accordion-item-text-font-size',
38
- accordionItemTextFontStyle: '--plasma-accordion-item-text-font-style',
39
- accordionItemTextFontWeight: '--plasma-accordion-item-text-font-weight',
40
- accordionItemTextLetterSpacing: '--plasma-accordion-item-text-letter-spacing',
41
- accordionItemTextLineHeight: '--plasma-accordion-item-text-line-height'
42
- };
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "AccordionItem", {
7
- enumerable: true,
8
- get: function get() {
9
- return _AccordionItem.AccordionItem;
10
- }
11
- });
12
- Object.defineProperty(exports, "accordionClasses", {
13
- enumerable: true,
14
- get: function get() {
15
- return _Accordion2.classes;
16
- }
17
- });
18
- Object.defineProperty(exports, "accordionConfig", {
19
- enumerable: true,
20
- get: function get() {
21
- return _Accordion.accordionConfig;
22
- }
23
- });
24
- Object.defineProperty(exports, "accordionRoot", {
25
- enumerable: true,
26
- get: function get() {
27
- return _Accordion.accordionRoot;
28
- }
29
- });
30
- Object.defineProperty(exports, "accordionTokens", {
31
- enumerable: true,
32
- get: function get() {
33
- return _Accordion2.tokens;
34
- }
35
- });
36
- var _Accordion = /*#__PURE__*/require("./Accordion");
37
- var _AccordionItem = /*#__PURE__*/require("./ui/AccordionItem/AccordionItem");
38
- var _Accordion2 = /*#__PURE__*/require("./Accordion.tokens");
@@ -1,96 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.AccordionItem = void 0;
8
- var _react = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("react"));
9
- var _roundness = /*#__PURE__*/require("../../../../utils/roundness");
10
- var _Accordion = /*#__PURE__*/require("../../Accordion.tokens");
11
- var _AccordionItem = /*#__PURE__*/require("./AccordionItem.styles");
12
- var _StyledMinus, _StyledArrow;
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
15
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
16
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
17
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
18
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
19
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
20
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
- var AccordionItem = exports.AccordionItem = function AccordionItem(_ref) {
22
- var value = _ref.value,
23
- contentRight = _ref.contentRight,
24
- contentLeft = _ref.contentLeft,
25
- title = _ref.title,
26
- _ref$pin = _ref.pin,
27
- pin = _ref$pin === void 0 ? 'square-square' : _ref$pin,
28
- body = _ref.body,
29
- _ref$type = _ref.type,
30
- type = _ref$type === void 0 ? 'sign' : _ref$type,
31
- onChangeValue = _ref.onChangeValue;
32
- var _useState = (0, _react.useState)(value),
33
- _useState2 = _slicedToArray(_useState, 2),
34
- show = _useState2[0],
35
- setShow = _useState2[1];
36
- var _useState3 = (0, _react.useState)(),
37
- _useState4 = _slicedToArray(_useState3, 2),
38
- leftPadding = _useState4[0],
39
- setLeftPadding = _useState4[1];
40
- var showHandler = function showHandler() {
41
- setShow(!show);
42
- onChangeValue && onChangeValue(!show);
43
- };
44
- var onKeyPress = function onKeyPress(event) {
45
- event.persist();
46
- if (event.keyCode === 13) {
47
- showHandler();
48
- }
49
- };
50
- var leftContentRef = (0, _react.useRef)(null);
51
- (0, _react.useEffect)(function () {
52
- var _leftContentRef$curre, _leftContentRef$curre2;
53
- var leftContentWidth = (_leftContentRef$curre = leftContentRef === null || leftContentRef === void 0 || (_leftContentRef$curre2 = leftContentRef.current) === null || _leftContentRef$curre2 === void 0 ? void 0 : _leftContentRef$curre2.offsetWidth) !== null && _leftContentRef$curre !== void 0 ? _leftContentRef$curre : 0;
54
- var leftPaddingBody = leftContentWidth ? "calc(".concat(leftContentWidth, "px + var(").concat(_Accordion.tokens.accordionItemGap, "))") : 0;
55
- setLeftPadding(leftPaddingBody);
56
- }, [type, leftContentRef, setLeftPadding]);
57
- var showedBody = show ? _Accordion.classes.accordionItemShowBody : undefined;
58
- var StyledAnimationPLus = function StyledAnimationPLus() {
59
- return /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledPlus, null, _StyledMinus || (_StyledMinus = /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledMinus, {
60
- size: "xs",
61
- color: "inhert"
62
- })), /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledMinus, {
63
- size: "xs",
64
- color: "inhert",
65
- className: showedBody !== null && showedBody !== void 0 ? showedBody : _Accordion.classes.accordionPlusAnimationElement
66
- }));
67
- };
68
- var accordionBorderRadius = (0, _roundness.convertRoundnessMatrix)(pin, "var(".concat(_Accordion.tokens.accordionItemBorderRadius, ")"));
69
- var leftContent = contentLeft !== null && contentLeft !== void 0 ? contentLeft : type === 'arrow' ? _StyledArrow || (_StyledArrow = /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledArrow, {
70
- size: "xs",
71
- color: "inhert"
72
- })) : undefined;
73
- var leftContentRotate = type === 'arrow' && show ? _Accordion.classes.accordionItemShowBody : undefined;
74
- var rightContent = contentRight !== null && contentRight !== void 0 ? contentRight : type === 'sign' ? /*#__PURE__*/_react["default"].createElement(StyledAnimationPLus, null) : undefined;
75
- var rightContentRotate = type === 'sign' && show ? _Accordion.classes.accordionItemShowBody : undefined;
76
- return /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledAccordionItem, {
77
- role: "tab",
78
- tabIndex: 0,
79
- style: {
80
- borderRadius: accordionBorderRadius
81
- },
82
- onKeyDown: onKeyPress
83
- }, /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledAccordionHeader, {
84
- onClick: showHandler
85
- }, /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledAccordionHeaderLeft, null, leftContent && /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledAccordionContentLeft, {
86
- ref: leftContentRef,
87
- className: leftContentRotate
88
- }, leftContent), /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledAccordionTitle, null, title)), /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledAccordionContentRight, {
89
- className: rightContentRotate
90
- }, rightContent && rightContent)), /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledAccordionBodyAnimate, {
91
- className: showedBody,
92
- style: {
93
- paddingLeft: "".concat(leftPadding)
94
- }
95
- }, /*#__PURE__*/_react["default"].createElement(_AccordionItem.StyledAccordionBody, null, body)));
96
- };
@@ -1,49 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.StyledPlus = exports.StyledMinus = exports.StyledArrow = exports.StyledAccordionTitle = exports.StyledAccordionItem = exports.StyledAccordionHeaderLeft = exports.StyledAccordionHeader = exports.StyledAccordionContentRight = exports.StyledAccordionContentLeft = exports.StyledAccordionBodyAnimate = exports.StyledAccordionBody = void 0;
7
- var _styledComponents = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("styled-components"));
8
- var _Icon = /*#__PURE__*/require("../../../_Icon");
9
- var _Accordion = /*#__PURE__*/require("../../Accordion.tokens");
10
- var _mixins = /*#__PURE__*/require("../../../../mixins");
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
- var StyledAccordionItem = exports.StyledAccordionItem = /*#__PURE__*/_styledComponents["default"].div.withConfig({
13
- componentId: "plasma-new-hope__sc-20ij9z-0"
14
- })(["background:var(", ");&:focus{outline:none;}", ""], _Accordion.tokens.accordionItemBackground, /*#__PURE__*/(0, _mixins.addFocus)({
15
- outlineOffset: '0.125rem',
16
- outlineSize: '0.125rem',
17
- outlineRadius: '0',
18
- outlineColor: /*#__PURE__*/"var(".concat(_Accordion.tokens.accordionItemFocus, ")")
19
- }));
20
- var StyledAccordionHeader = exports.StyledAccordionHeader = /*#__PURE__*/_styledComponents["default"].div.withConfig({
21
- componentId: "plasma-new-hope__sc-20ij9z-1"
22
- })(["padding-top:var(", ");padding-right:var(", ");padding-bottom:var(", ");padding-left:var(", ");display:flex;gap:var(", ");justify-content:space-between;align-items:center;cursor:pointer;"], _Accordion.tokens.accordionItemPaddingTop, _Accordion.tokens.accordionItemPaddingRight, _Accordion.tokens.accordionItemPaddingBottom, _Accordion.tokens.accordionItemPaddingLeft, _Accordion.tokens.accordionItemGap);
23
- var StyledAccordionHeaderLeft = exports.StyledAccordionHeaderLeft = /*#__PURE__*/_styledComponents["default"].div.withConfig({
24
- componentId: "plasma-new-hope__sc-20ij9z-2"
25
- })(["display:flex;gap:var(", ");justify-content:space-between;align-items:center;"], _Accordion.tokens.accordionItemGap);
26
- var StyledAccordionContentRight = exports.StyledAccordionContentRight = /*#__PURE__*/_styledComponents["default"].div.withConfig({
27
- componentId: "plasma-new-hope__sc-20ij9z-3"
28
- })(["transition:0.2s;transform:rotate(90deg);&&.", "{transition:0.2s;transform:rotate(0deg);}"], _Accordion.classes.accordionItemShowBody);
29
- var StyledAccordionContentLeft = exports.StyledAccordionContentLeft = /*#__PURE__*/_styledComponents["default"].div.withConfig({
30
- componentId: "plasma-new-hope__sc-20ij9z-4"
31
- })(["transition:0.2s;display:flex;align-items:center;&&.", "{transition:0.2s;transform:rotate(180deg);}"], _Accordion.classes.accordionItemShowBody);
32
- var StyledAccordionTitle = exports.StyledAccordionTitle = /*#__PURE__*/_styledComponents["default"].div.withConfig({
33
- componentId: "plasma-new-hope__sc-20ij9z-5"
34
- })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-weight:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");"], _Accordion.tokens.accordionItemTitleColor, _Accordion.tokens.accordionItemTitleFontWeight, _Accordion.tokens.accordionItemTitleFontSize, _Accordion.tokens.accordionItemTitleFontWeight, _Accordion.tokens.accordionItemTitleFontStyle, _Accordion.tokens.accordionItemTitleLetterSpacing, _Accordion.tokens.accordionItemTitleLineHeight);
35
- var StyledAccordionBodyAnimate = exports.StyledAccordionBodyAnimate = /*#__PURE__*/_styledComponents["default"].div.withConfig({
36
- componentId: "plasma-new-hope__sc-20ij9z-6"
37
- })(["display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.2s ease-out;overflow:hidden;&&.", "{grid-template-rows:1fr;padding-bottom:var(", ");&.", "{transition:0.2s;transform:rotate(0deg);}}"], _Accordion.classes.accordionItemShowBody, _Accordion.tokens.accordionItemPaddingBottom, _Accordion.classes.accordionPlusAnimationElement);
38
- var StyledAccordionBody = exports.StyledAccordionBody = /*#__PURE__*/_styledComponents["default"].div.withConfig({
39
- componentId: "plasma-new-hope__sc-20ij9z-7"
40
- })(["color:var(", ");font-family:var(", ");font-size:var(", ");font-weight:var(", ");font-style:var(", ");letter-spacing:var(", ");line-height:var(", ");overflow:hidden;padding-right:var(", ");padding-left:var(", ");"], _Accordion.tokens.accordionItemTextColor, _Accordion.tokens.accordionItemTextFontWeight, _Accordion.tokens.accordionItemTextFontSize, _Accordion.tokens.accordionItemTextFontWeight, _Accordion.tokens.accordionItemTextFontStyle, _Accordion.tokens.accordionItemTextLetterSpacing, _Accordion.tokens.accordionItemTextLineHeight, _Accordion.tokens.accordionItemPaddingRight, _Accordion.tokens.accordionItemPaddingLeft);
41
- var StyledArrow = exports.StyledArrow = /*#__PURE__*/(0, _styledComponents["default"])(_Icon.IconChevronDownFill).withConfig({
42
- componentId: "plasma-new-hope__sc-20ij9z-8"
43
- })(["pointer-events:none;user-select:none;color:var(", ");"], _Accordion.tokens.accordionItemTextColor);
44
- var StyledMinus = exports.StyledMinus = /*#__PURE__*/(0, _styledComponents["default"])(_Icon.IconMinus).withConfig({
45
- componentId: "plasma-new-hope__sc-20ij9z-9"
46
- })(["pointer-events:none;user-select:none;color:var(", ");display:flex;align-items:center;position:absolute;top:0;left:0;&&.", "{transition:0.2s;transform:rotate(90deg);}&&.", "{transition:0.2s;transform:rotate(0deg);}"], _Accordion.tokens.accordionItemTextColor, _Accordion.classes.accordionPlusAnimationElement, _Accordion.classes.accordionItemShowBody);
47
- var StyledPlus = exports.StyledPlus = /*#__PURE__*/_styledComponents["default"].div.withConfig({
48
- componentId: "plasma-new-hope__sc-20ij9z-10"
49
- })(["position:relative;height:1rem;display:flex;align-items:center;justify-content:center;width:1rem;"]);
@@ -1,5 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
@@ -1,6 +0,0 @@
1
- [
2
- "--plasma-button-height",
3
- "--plasma-button-padding",
4
- "--plasma-button-radius",
5
- { "name": "typography", "type": "enum", "value": "typo:body" }
6
- ]
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([""]);
@@ -1,8 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.base = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var base = exports.base = /*#__PURE__*/(0, _styledComponents.css)([""]);
@@ -1,8 +0,0 @@
1
- [
2
- "--plasma-button-color",
3
- "--plasma-button-bg-color",
4
- "--plasma-button-color-hover",
5
- "--plasma-button-bg-color-hover",
6
- "--plasma-button-color-active",
7
- "--plasma-button-bg-color-active"
8
- ]
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ChevronDownFill = void 0;
7
- var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
- var _defs, _g;
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
- var ChevronDownFill = exports.ChevronDownFill = function ChevronDownFill(props) {
12
- return /*#__PURE__*/_react["default"].createElement("svg", _extends({
13
- width: "100%",
14
- viewBox: "0 0 16 16",
15
- fill: "none"
16
- }, props), _defs || (_defs = /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
17
- id: "clip3066_154194"
18
- }, /*#__PURE__*/_react["default"].createElement("rect", {
19
- width: "16.000000",
20
- height: "16.000000",
21
- fill: "currentColor",
22
- fillOpacity: "0"
23
- })))), _g || (_g = /*#__PURE__*/_react["default"].createElement("g", {
24
- clipPath: "url(#clip3066_154194)"
25
- }, /*#__PURE__*/_react["default"].createElement("path", {
26
- id: "path",
27
- d: "M11.45 5.79C11.37 5.61 11.19 5.5 11 5.5L5 5.5C4.8 5.5 4.62 5.61 4.54 5.79C4.46 5.96 4.49 6.17 4.62 6.32L7.62 9.82C7.71 9.93 7.85 10 8 10C8.14 10 8.28 9.93 8.37 9.82L11.37 6.32C11.5 6.17 11.53 5.96 11.45 5.79Z",
28
- fillRule: "evenodd",
29
- fill: "currentColor",
30
- clipRule: "evenodd"
31
- }))));
32
- };
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Minus = void 0;
7
- var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
- var _path;
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
- var Minus = exports.Minus = function Minus(props) {
12
- return /*#__PURE__*/_react["default"].createElement("svg", _extends({
13
- width: "100%",
14
- viewBox: "0 0 24 24",
15
- fill: "none"
16
- }, props), _path || (_path = /*#__PURE__*/_react["default"].createElement("path", {
17
- id: "icon",
18
- d: "M3.25 12C3.25 11.58 3.58 11.25 4 11.25L20 11.25C20.41 11.25 20.75 11.58 20.75 12C20.75 12.41 20.41 12.75 20 12.75L4 12.75C3.58 12.75 3.25 12.41 3.25 12Z",
19
- fill: "currentColor"
20
- })));
21
- };
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.IconChevronDownFill = void 0;
7
- var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
- var _ChevronDownFill = /*#__PURE__*/require("../Icon.assets/ChevronDownFill");
9
- var _IconRoot = /*#__PURE__*/require("../IconRoot");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- var IconChevronDownFill = exports.IconChevronDownFill = function IconChevronDownFill(_ref) {
12
- var _ref$size = _ref.size,
13
- size = _ref$size === void 0 ? 'xs' : _ref$size,
14
- color = _ref.color,
15
- className = _ref.className;
16
- return /*#__PURE__*/_react["default"].createElement(_IconRoot.IconRoot, {
17
- className: className,
18
- size: size,
19
- color: color,
20
- icon: _ChevronDownFill.ChevronDownFill
21
- });
22
- };
@@ -1,22 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.IconMinus = void 0;
7
- var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
- var _Minus = /*#__PURE__*/require("../Icon.assets/Minus");
9
- var _IconRoot = /*#__PURE__*/require("../IconRoot");
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
- var IconMinus = exports.IconMinus = function IconMinus(_ref) {
12
- var _ref$size = _ref.size,
13
- size = _ref$size === void 0 ? 's' : _ref$size,
14
- color = _ref.color,
15
- className = _ref.className;
16
- return /*#__PURE__*/_react["default"].createElement(_IconRoot.IconRoot, {
17
- className: className,
18
- size: size,
19
- color: color,
20
- icon: _Minus.Minus
21
- });
22
- };
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.config = void 0;
7
- var _styledComponents = /*#__PURE__*/require("styled-components");
8
- var _Accordion = /*#__PURE__*/require("../../../../components/Accordion");
9
- var config = exports.config = {
10
- defaults: {
11
- view: 'default',
12
- size: 'm'
13
- },
14
- variations: {
15
- view: {
16
- "default": /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":var(--surface-solid-card);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":var(--surface-clear);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionBackground),
17
- clear: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.125rem;", ":20rem;", ":0rem !important;", ":0rem !important;", ":var(--background-primary);", ":var(--text-primary);", ":var(--text-primary);", ":var(--surface-accent);", ":0rem !important;", ":var(--surface-solid-tertiary);"], _Accordion.accordionTokens.accordionGap, _Accordion.accordionTokens.accordionWidth, _Accordion.accordionTokens.accordionItemPaddingRight, _Accordion.accordionTokens.accordionItemPaddingLeft, _Accordion.accordionTokens.accordionItemBackground, _Accordion.accordionTokens.accordionItemTitleColor, _Accordion.accordionTokens.accordionItemTextColor, _Accordion.accordionTokens.accordionItemFocus, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionBackground)
18
- },
19
- size: {
20
- l: /*#__PURE__*/(0, _styledComponents.css)(["", ":1.0625rem;", ":1.25rem;", ":1.0625rem;", ":1.25rem;", ":0.5rem;", ":0.875rem;", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-bold-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);", ":var(--plasma-typo-body-l-font-family);", ":var(--plasma-typo-body-l-font-size);", ":var(--plasma-typo-body-l-font-style);", ":var(--plasma-typo-body-l-font-weight);", ":var(--plasma-typo-body-l-letter-spacing);", ":var(--plasma-typo-body-l-line-height);"], _Accordion.accordionTokens.accordionItemPaddingTop, _Accordion.accordionTokens.accordionItemPaddingRight, _Accordion.accordionTokens.accordionItemPaddingBottom, _Accordion.accordionTokens.accordionItemPaddingLeft, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight),
21
- m: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.875rem;", ":1.125rem;", ":0.875rem;", ":1.125rem;", ":0.375rem;", ":0.75rem;", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-bold-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);", ":var(--plasma-typo-body-m-font-family);", ":var(--plasma-typo-body-m-font-size);", ":var(--plasma-typo-body-m-font-style);", ":var(--plasma-typo-body-m-font-weight);", ":var(--plasma-typo-body-m-letter-spacing);", ":var(--plasma-typo-body-m-line-height);"], _Accordion.accordionTokens.accordionItemPaddingTop, _Accordion.accordionTokens.accordionItemPaddingRight, _Accordion.accordionTokens.accordionItemPaddingBottom, _Accordion.accordionTokens.accordionItemPaddingLeft, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight),
22
- s: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.6875rem;", ":0.875rem;", ":0.6875rem;", ":0.875rem;", ":0.375rem;", ":0.625rem;", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-bold-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);", ":var(--plasma-typo-body-s-font-family);", ":var(--plasma-typo-body-s-font-size);", ":var(--plasma-typo-body-s-font-style);", ":var(--plasma-typo-body-s-font-weight);", ":var(--plasma-typo-body-s-letter-spacing);", ":var(--plasma-typo-body-s-line-height);"], _Accordion.accordionTokens.accordionItemPaddingTop, _Accordion.accordionTokens.accordionItemPaddingRight, _Accordion.accordionTokens.accordionItemPaddingBottom, _Accordion.accordionTokens.accordionItemPaddingLeft, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight),
23
- xs: /*#__PURE__*/(0, _styledComponents.css)(["", ":0.5rem;", ":0.75rem;", ":0.5rem;", ":0.75rem;", ":0.25rem;", ":0.5rem;", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-bold-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);", ":var(--plasma-typo-body-xs-font-family);", ":var(--plasma-typo-body-xs-font-size);", ":var(--plasma-typo-body-xs-font-style);", ":var(--plasma-typo-body-xs-font-weight);", ":var(--plasma-typo-body-xs-letter-spacing);", ":var(--plasma-typo-body-xs-line-height);"], _Accordion.accordionTokens.accordionItemPaddingTop, _Accordion.accordionTokens.accordionItemPaddingRight, _Accordion.accordionTokens.accordionItemPaddingBottom, _Accordion.accordionTokens.accordionItemPaddingLeft, _Accordion.accordionTokens.accordionItemGap, _Accordion.accordionTokens.accordionItemBorderRadius, _Accordion.accordionTokens.accordionItemTitleFontFamily, _Accordion.accordionTokens.accordionItemTitleFontSize, _Accordion.accordionTokens.accordionItemTitleFontStyle, _Accordion.accordionTokens.accordionItemTitleFontWeight, _Accordion.accordionTokens.accordionItemTitleLetterSpacing, _Accordion.accordionTokens.accordionItemTitleLineHeight, _Accordion.accordionTokens.accordionItemTextFontFamily, _Accordion.accordionTokens.accordionItemTextFontSize, _Accordion.accordionTokens.accordionItemTextFontStyle, _Accordion.accordionTokens.accordionItemTextFontWeight, _Accordion.accordionTokens.accordionItemTextLetterSpacing, _Accordion.accordionTokens.accordionItemTextLineHeight)
24
- },
25
- stretching: {
26
- filled: /*#__PURE__*/(0, _styledComponents.css)([""]),
27
- fixed: /*#__PURE__*/(0, _styledComponents.css)([""])
28
- }
29
- }
30
- };