@helpdice/ui 1.6.8 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/Placeholder/index.js +44 -23
  2. package/dist/auto-complete/auto-complete.d.ts +35 -3
  3. package/dist/auto-complete/index.js +45 -22
  4. package/dist/avatar/avatar.d.ts +2 -1
  5. package/dist/avatar/index.js +33 -13
  6. package/dist/badge/index.js +30 -11
  7. package/dist/breadcrumbs/index.js +31 -12
  8. package/dist/button/index.js +34 -14
  9. package/dist/button-dropdown/index.js +31 -12
  10. package/dist/button-group/index.js +30 -11
  11. package/dist/capacity/index.js +30 -11
  12. package/dist/card/index.js +31 -12
  13. package/dist/checkbox/index.js +31 -12
  14. package/dist/code/index.js +30 -11
  15. package/dist/code-block/index.d.ts +10 -0
  16. package/dist/col/index.js +21 -2
  17. package/dist/collapse/index.js +30 -11
  18. package/dist/css-baseline/index.js +24 -5
  19. package/dist/description/index.js +30 -11
  20. package/dist/display/index.js +30 -11
  21. package/dist/divider/index.js +30 -11
  22. package/dist/dot/index.js +30 -11
  23. package/dist/drawer/index.js +30 -11
  24. package/dist/fieldset/index.js +30 -11
  25. package/dist/grid/grid-container.d.ts +3 -3
  26. package/dist/grid/grid.d.ts +3 -3
  27. package/dist/grid/index.js +30 -11
  28. package/dist/image/index.js +31 -12
  29. package/dist/index.d.ts +4 -3
  30. package/dist/index.js +10994 -1501
  31. package/dist/input/index.js +36 -15
  32. package/dist/keyboard/index.js +30 -11
  33. package/dist/link/index.js +31 -12
  34. package/dist/list/index.d.ts +9 -0
  35. package/dist/list/index.js +1287 -0
  36. package/dist/list/list-item.d.ts +53 -0
  37. package/dist/list/list.d.ts +44 -0
  38. package/dist/loading/index.js +30 -11
  39. package/dist/menu/index.d.ts +2 -0
  40. package/dist/menu/index.js +10354 -0
  41. package/dist/menu/menu.d.ts +9 -0
  42. package/dist/modal/index.js +37 -16
  43. package/dist/note/index.js +30 -11
  44. package/dist/page/index.js +30 -11
  45. package/dist/pagination/index.js +30 -11
  46. package/dist/popover/index.js +30 -11
  47. package/dist/progress/index.js +30 -11
  48. package/dist/radio/index.js +30 -11
  49. package/dist/rating/index.js +31 -12
  50. package/dist/row/index.js +21 -2
  51. package/dist/search-bar/index.js +31 -12
  52. package/dist/select/index.js +33 -14
  53. package/dist/slider/index.js +30 -11
  54. package/dist/snippet/index.js +31 -12
  55. package/dist/spacer/index.js +30 -11
  56. package/dist/spinner/index.js +30 -11
  57. package/dist/table/index.d.ts +0 -1
  58. package/dist/table/index.js +1673 -2252
  59. package/dist/tabs/index.js +32 -13
  60. package/dist/tag/index.js +30 -11
  61. package/dist/text/child.d.ts +1 -1
  62. package/dist/text/index.js +44 -23
  63. package/dist/text/text.d.ts +2 -1
  64. package/dist/textarea/index.js +30 -11
  65. package/dist/toggle/index.js +30 -11
  66. package/dist/tooltip/index.js +30 -11
  67. package/dist/tree/index.js +21 -2
  68. package/dist/ui-provider/index.js +34 -14
  69. package/dist/use-scale/index.js +9 -9
  70. package/dist/user/index.js +34 -14
  71. package/dist/utils/collections.d.ts +1 -1
  72. package/esm/auto-complete/auto-complete.d.ts +35 -3
  73. package/esm/auto-complete/auto-complete.js +6 -6
  74. package/esm/avatar/avatar.d.ts +2 -1
  75. package/esm/avatar/avatar.js +3 -2
  76. package/esm/button/button-loading.js +1 -1
  77. package/esm/button/button.js +2 -1
  78. package/esm/button/styles.js +1 -1
  79. package/esm/button-dropdown/icon.js +1 -1
  80. package/esm/checkbox/checkbox.icon.js +1 -1
  81. package/esm/code-block/index.d.ts +10 -0
  82. package/esm/code-block/index.js +31 -27
  83. package/esm/css-baseline/css-baseline.js +3 -3
  84. package/esm/form/FormWrapper.js +4 -4
  85. package/esm/grid/grid-container.d.ts +3 -3
  86. package/esm/grid/grid.d.ts +3 -3
  87. package/esm/index.d.ts +4 -3
  88. package/esm/index.js +4 -4
  89. package/esm/input/input-block-label.js +1 -1
  90. package/esm/input/input-icon.js +1 -1
  91. package/esm/input/input.js +2 -1
  92. package/esm/input/password.js +2 -1
  93. package/esm/link/icon.js +1 -1
  94. package/esm/link/link.js +2 -2
  95. package/esm/list/index.d.ts +9 -0
  96. package/esm/list/index.js +8 -0
  97. package/esm/list/list-item.d.ts +53 -0
  98. package/esm/list/list-item.js +84 -0
  99. package/esm/list/list.d.ts +44 -0
  100. package/esm/list/list.js +29 -0
  101. package/esm/login-with/LoginSocialApple/index.js +17 -17
  102. package/esm/login-with/LoginSocialGithub/index.js +2 -2
  103. package/esm/login-with/LoginSocialInstagram/index.js +2 -2
  104. package/esm/login-with/LoginSocialLinkedin/index.js +2 -2
  105. package/esm/login-with/LoginSocialMicrosoft/index.js +2 -2
  106. package/esm/login-with/LoginSocialPinterest/index.js +9 -9
  107. package/esm/login-with/LoginSocialTiktok/index.js +2 -2
  108. package/esm/login-with/LoginSocialTwitter/index.js +11 -11
  109. package/esm/menu/index.d.ts +2 -0
  110. package/esm/menu/index.js +2 -0
  111. package/esm/menu/menu.d.ts +9 -0
  112. package/esm/menu/menu.js +92 -0
  113. package/esm/modal/modal-action.js +2 -1
  114. package/esm/modal/modal-actions.js +1 -1
  115. package/esm/rating/rating-icon.js +1 -1
  116. package/esm/select/select-icon.js +1 -1
  117. package/esm/select/select-input.js +1 -1
  118. package/esm/select/select-multiple-value.js +1 -1
  119. package/esm/snippet/snippet-icon.js +1 -1
  120. package/esm/table/index.d.ts +0 -1
  121. package/esm/table/index.js +0 -1
  122. package/esm/table/table-body.js +4 -23
  123. package/esm/tabs/tabs.js +2 -2
  124. package/esm/text/child.d.ts +1 -1
  125. package/esm/text/child.js +10 -10
  126. package/esm/text/text.d.ts +2 -1
  127. package/esm/text/text.js +4 -2
  128. package/esm/tooltip/__test__/index.test.js +30 -30
  129. package/esm/utils/collections.d.ts +1 -1
  130. package/esm/utils/collections.js +1 -1
  131. package/package.json +19 -12
  132. package/dist/cart/index.d.ts +0 -72
  133. package/dist/cart/useLocalStorage.d.ts +0 -1
  134. package/dist/table/data-table.d.ts +0 -44
  135. package/esm/cart/index.d.ts +0 -72
  136. package/esm/cart/index.js +0 -265
  137. package/esm/cart/useLocalStorage.d.ts +0 -1
  138. package/esm/cart/useLocalStorage.js +0 -29
  139. package/esm/table/data-table.d.ts +0 -44
  140. package/esm/table/data-table.js +0 -451
  141. /package/esm/utils/use-context-state/{create-geist-context.js → create-ui-context.js} +0 -0
@@ -228,12 +228,12 @@ export function useFormik(_ref) {
228
228
  var runAllValidations = React.useCallback(/*#__PURE__*/function () {
229
229
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(values) {
230
230
  var _yield$Promise$all, _yield$Promise$all2, fieldErrors, schemaErrors, validateErrors, combinedErrors;
231
- return _regeneratorRuntime.wrap(function _callee$(_context) {
231
+ return _regeneratorRuntime.wrap(function (_context) {
232
232
  while (1) switch (_context.prev = _context.next) {
233
233
  case 0:
234
- _context.next = 2;
234
+ _context.next = 1;
235
235
  return Promise.all([runFieldLevelValidations(values), props.validationSchema ? runValidationSchema(values) : {}, props.validate ? runValidateHandler(values) : {}]);
236
- case 2:
236
+ case 1:
237
237
  _yield$Promise$all = _context.sent;
238
238
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
239
239
  fieldErrors = _yield$Promise$all2[0];
@@ -243,7 +243,7 @@ export function useFormik(_ref) {
243
243
  arrayMerge: arrayMerge
244
244
  });
245
245
  return _context.abrupt("return", combinedErrors);
246
- case 9:
246
+ case 2:
247
247
  case "end":
248
248
  return _context.stop();
249
249
  }
@@ -59,6 +59,8 @@ declare const GridContainer: React.ForwardRefExoticComponent<Props & import("./b
59
59
  unselectable?: "on" | "off" | undefined | undefined;
60
60
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
61
61
  is?: string | undefined | undefined;
62
+ exportparts?: string | undefined | undefined;
63
+ part?: string | undefined | undefined;
62
64
  "aria-activedescendant"?: string | undefined | undefined;
63
65
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
64
66
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
@@ -132,7 +134,7 @@ declare const GridContainer: React.ForwardRefExoticComponent<Props & import("./b
132
134
  onBlur?: React.FocusEventHandler<any> | undefined;
133
135
  onBlurCapture?: React.FocusEventHandler<any> | undefined;
134
136
  onChangeCapture?: React.FormEventHandler<any> | undefined;
135
- onBeforeInput?: React.FormEventHandler<any> | undefined;
137
+ onBeforeInput?: React.InputEventHandler<any> | undefined;
136
138
  onBeforeInputCapture?: React.FormEventHandler<any> | undefined;
137
139
  onInput?: React.FormEventHandler<any> | undefined;
138
140
  onInputCapture?: React.FormEventHandler<any> | undefined;
@@ -182,8 +184,6 @@ declare const GridContainer: React.ForwardRefExoticComponent<Props & import("./b
182
184
  onProgressCapture?: React.ReactEventHandler<any> | undefined;
183
185
  onRateChange?: React.ReactEventHandler<any> | undefined;
184
186
  onRateChangeCapture?: React.ReactEventHandler<any> | undefined;
185
- onResize?: React.ReactEventHandler<any> | undefined;
186
- onResizeCapture?: React.ReactEventHandler<any> | undefined;
187
187
  onSeeked?: React.ReactEventHandler<any> | undefined;
188
188
  onSeekedCapture?: React.ReactEventHandler<any> | undefined;
189
189
  onSeeking?: React.ReactEventHandler<any> | undefined;
@@ -56,6 +56,8 @@ declare const Grid: React.ForwardRefExoticComponent<Props & import("./basic-item
56
56
  unselectable?: "on" | "off" | undefined | undefined;
57
57
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
58
58
  is?: string | undefined | undefined;
59
+ exportparts?: string | undefined | undefined;
60
+ part?: string | undefined | undefined;
59
61
  "aria-activedescendant"?: string | undefined | undefined;
60
62
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
61
63
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
@@ -129,7 +131,7 @@ declare const Grid: React.ForwardRefExoticComponent<Props & import("./basic-item
129
131
  onBlur?: React.FocusEventHandler<any> | undefined;
130
132
  onBlurCapture?: React.FocusEventHandler<any> | undefined;
131
133
  onChangeCapture?: React.FormEventHandler<any> | undefined;
132
- onBeforeInput?: React.FormEventHandler<any> | undefined;
134
+ onBeforeInput?: React.InputEventHandler<any> | undefined;
133
135
  onBeforeInputCapture?: React.FormEventHandler<any> | undefined;
134
136
  onInput?: React.FormEventHandler<any> | undefined;
135
137
  onInputCapture?: React.FormEventHandler<any> | undefined;
@@ -179,8 +181,6 @@ declare const Grid: React.ForwardRefExoticComponent<Props & import("./basic-item
179
181
  onProgressCapture?: React.ReactEventHandler<any> | undefined;
180
182
  onRateChange?: React.ReactEventHandler<any> | undefined;
181
183
  onRateChangeCapture?: React.ReactEventHandler<any> | undefined;
182
- onResize?: React.ReactEventHandler<any> | undefined;
183
- onResizeCapture?: React.ReactEventHandler<any> | undefined;
184
184
  onSeeked?: React.ReactEventHandler<any> | undefined;
185
185
  onSeekedCapture?: React.ReactEventHandler<any> | undefined;
186
186
  onSeeking?: React.ReactEventHandler<any> | undefined;
package/esm/index.d.ts CHANGED
@@ -62,6 +62,8 @@ export { default as Pagination } from './pagination';
62
62
  export type { PaginationProps, PaginationNextProps, PaginationPreviousProps, } from './pagination';
63
63
  export { default as Popover } from './popover';
64
64
  export type { PopoverProps, PopoverItemProps } from './popover';
65
+ export { default as List } from './list';
66
+ export { default as Menu } from './menu';
65
67
  export { default as Progress } from './progress';
66
68
  export type { ProgressProps } from './progress';
67
69
  export { default as Radio } from './radio';
@@ -78,7 +80,7 @@ export { default as Spacer } from './spacer';
78
80
  export type { SpacerProps } from './spacer';
79
81
  export { default as Spinner } from './spinner';
80
82
  export type { SpinnerProps } from './spinner';
81
- export { default as Table, DataTable } from './table';
83
+ export { default as Table } from './table';
82
84
  export type { TableProps, TableColumnProps } from './table';
83
85
  export { default as Tabs } from './tabs';
84
86
  export type { TabsProps } from './tabs';
@@ -126,7 +128,6 @@ export { useRect } from './utils/layouts';
126
128
  export type { ReactiveDomReact } from './utils/layouts';
127
129
  export { default as Highlight } from './shared/highlight';
128
130
  export type { HighlightProps } from './shared/highlight';
131
+ export { default as CodeBlock } from './code-block';
129
132
  export { default as Skeleton } from './skeleton';
130
- export { CartProvider, useCart, createCartIdentifier } from './cart';
131
- export type { CartProviderState } from './cart';
132
133
  export * from './login-with';
package/esm/index.js CHANGED
@@ -38,6 +38,8 @@ export { default as Note } from './note';
38
38
  export { default as Page } from './page';
39
39
  export { default as Pagination } from './pagination';
40
40
  export { default as Popover } from './popover';
41
+ export { default as List } from './list';
42
+ export { default as Menu } from './menu';
41
43
  export { default as Progress } from './progress';
42
44
  export { default as Radio } from './radio';
43
45
  export { default as Rating } from './rating';
@@ -46,7 +48,7 @@ export { default as Slider } from './slider';
46
48
  export { default as Snippet } from './snippet';
47
49
  export { default as Spacer } from './spacer';
48
50
  export { default as Spinner } from './spinner';
49
- export { default as Table, DataTable } from './table';
51
+ export { default as Table } from './table';
50
52
  export { default as Tabs } from './tabs';
51
53
  export { default as Tag } from './tag';
52
54
  export { default as Text } from './text';
@@ -75,10 +77,8 @@ export { default as useScale } from './use-scale';
75
77
  export { withScale, ScalePropKeys, ScaleContext } from './use-scale';
76
78
  export { useRect } from './utils/layouts';
77
79
  export { default as Highlight } from './shared/highlight';
78
- // export { default as CodeBlock } from './code-block'
80
+ export { default as CodeBlock } from './code-block';
79
81
  export { default as Skeleton } from './skeleton';
80
82
 
81
- // Cart
82
- export { CartProvider, useCart, createCartIdentifier } from './cart';
83
83
  // Social Logins
84
84
  export * from './login-with';
@@ -11,6 +11,6 @@ var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
11
11
  dynamic: [theme.palette.accents_6]
12
12
  }, "label.__jsx-style-dynamic-selector{display:block;font-weight:normal;color:".concat(theme.palette.accents_6, ";padding:0 0 0 1px;margin-bottom:0.5em;font-size:1em;line-height:1.5;}label.__jsx-style-dynamic-selector>*:first-child{margin-top:0;}label.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0;}")));
13
13
  };
14
- InputBlockLabelComponent.displayName = 'GeistInputBlockLabel';
14
+ InputBlockLabelComponent.displayName = 'InputBlockLabel';
15
15
  var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
16
16
  export default InputBlockLabel;
@@ -13,6 +13,6 @@ var InputIconComponent = function InputIconComponent(_ref) {
13
13
  dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']
14
14
  }, ".input-icon.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(var(--input-height) - 2px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;line-height:1;position:relative;cursor:".concat(clickable ? 'pointer' : 'default', ";pointer-events:").concat(clickable ? 'auto' : 'none', ";}.input-icon.__jsx-style-dynamic-selector svg{width:calc(var(--input-height) - 2px);height:calc(var(--input-height) - 2px);-webkit-transform:scale(0.44);-ms-transform:scale(0.44);transform:scale(0.44);}")));
15
15
  };
16
- InputIconComponent.displayName = 'GeistInputIcon';
16
+ InputIconComponent.displayName = 'InputIcon';
17
17
  var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
18
18
  export default InputIcon;
@@ -62,7 +62,8 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
62
62
  var inputRef = useRef(null);
63
63
  useImperativeHandle(ref, function () {
64
64
  return inputRef.current;
65
- });
65
+ }); // Changed with !
66
+
66
67
  var _useState = useState(initialValue),
67
68
  _useState2 = _slicedToArray(_useState, 2),
68
69
  selfValue = _useState2[0],
@@ -21,7 +21,8 @@ var InputPasswordComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref)
21
21
  setVisible = _useState2[1];
22
22
  useImperativeHandle(ref, function () {
23
23
  return inputRef.current;
24
- });
24
+ }); // Changed with !
25
+
25
26
  var iconClickHandler = function iconClickHandler() {
26
27
  setVisible(function (v) {
27
28
  return !v;
package/esm/link/icon.js CHANGED
@@ -25,6 +25,6 @@ export var LinkIconComponent = function LinkIconComponent() {
25
25
  id: "3409194595"
26
26
  }, ".icon.jsx-3409194595{margin:0 0 -1px 0.1875em;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;color:currentColor;}"));
27
27
  };
28
- LinkIconComponent.displayName = 'GeistLinkIcon';
28
+ LinkIconComponent.displayName = 'LinkIcon';
29
29
  var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
30
30
  export default LinkIcon;
package/esm/link/link.js CHANGED
@@ -1,9 +1,9 @@
1
- "use client";
2
-
3
1
  import _extends from "@babel/runtime/helpers/esm/extends";
4
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
3
  var _excluded = ["href", "showColor", "underline", "children", "className", "block", "icon"];
6
4
  import _JSXStyle from "../styled-jsx.es.js";
5
+ // "use client"
6
+
7
7
  import React from 'react';
8
8
  import useTheme from '../use-theme';
9
9
  import LinkIcon from './icon';
@@ -0,0 +1,9 @@
1
+ import List from './list';
2
+ import ListItem from './list-item';
3
+ export type ListComponentType = typeof List & {
4
+ Item: typeof ListItem;
5
+ Option: typeof ListItem;
6
+ };
7
+ export type { ListItemProps } from './list-item';
8
+ declare const _default: ListComponentType;
9
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import List from './list';
2
+ import ListItem from './list-item';
3
+ List.Item = ListItem;
4
+ List.Option = ListItem;
5
+
6
+ // export type { PopoverProps, PopoverTriggerTypes, PopoverPlacement } from './list'
7
+
8
+ export default List;
@@ -0,0 +1,53 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ line?: boolean;
4
+ direction?: string;
5
+ justify?: string;
6
+ alignItems?: string;
7
+ leading?: React.ReactNode;
8
+ primary?: string;
9
+ secondary?: string;
10
+ trailing?: React.ReactNode;
11
+ showTitle?: boolean;
12
+ disableAutoClose?: boolean;
13
+ selected?: boolean;
14
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
15
+ }
16
+ type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
17
+ export type ListItemProps = Props & NativeAttrs;
18
+ declare const ListItem: React.ForwardRefExoticComponent<Props & NativeAttrs & {
19
+ children?: React.ReactNode | undefined;
20
+ } & {
21
+ width?: string | number;
22
+ height?: string | number;
23
+ padding?: string | number;
24
+ margin?: string | number;
25
+ w?: string | number;
26
+ h?: string | number;
27
+ paddingLeft?: string | number;
28
+ paddingRight?: string | number;
29
+ paddingTop?: string | number;
30
+ paddingBottom?: string | number;
31
+ pl?: string | number;
32
+ pr?: string | number;
33
+ pt?: string | number;
34
+ pb?: string | number;
35
+ marginLeft?: string | number;
36
+ marginRight?: string | number;
37
+ marginTop?: string | number;
38
+ marginBottom?: string | number;
39
+ ml?: string | number;
40
+ mr?: string | number;
41
+ mt?: string | number;
42
+ mb?: string | number;
43
+ px?: string | number;
44
+ py?: string | number;
45
+ mx?: string | number;
46
+ my?: string | number;
47
+ font?: string | number;
48
+ unit?: string;
49
+ scale?: number;
50
+ children?: any;
51
+ className?: string;
52
+ } & React.InputHTMLAttributes<any> & React.RefAttributes<unknown>>;
53
+ export default ListItem;
@@ -0,0 +1,84 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["children", "direction", "justify", "alignItems", "line", "showTitle", "className", "onClick", "leading", "primary", "secondary", "trailing", "selected", "disableAutoClose"];
4
+ import _JSXStyle from "../styled-jsx.es.js";
5
+ import React from 'react';
6
+ import useTheme from '../use-theme';
7
+ import useScale, { withScale } from '../use-scale';
8
+ import useClasses from '../use-classes';
9
+ var ListItemComponent = function ListItemComponent(_ref) {
10
+ var children = _ref.children,
11
+ _ref$direction = _ref.direction,
12
+ direction = _ref$direction === void 0 ? 'row' : _ref$direction,
13
+ _ref$justify = _ref.justify,
14
+ justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
15
+ _ref$alignItems = _ref.alignItems,
16
+ alignItems = _ref$alignItems === void 0 ? 'center' : _ref$alignItems,
17
+ _ref$line = _ref.line,
18
+ line = _ref$line === void 0 ? false : _ref$line,
19
+ _ref$showTitle = _ref.showTitle,
20
+ showTitle = _ref$showTitle === void 0 ? false : _ref$showTitle,
21
+ _ref$className = _ref.className,
22
+ className = _ref$className === void 0 ? '' : _ref$className,
23
+ onClick = _ref.onClick,
24
+ leading = _ref.leading,
25
+ primary = _ref.primary,
26
+ secondary = _ref.secondary,
27
+ trailing = _ref.trailing,
28
+ _ref$selected = _ref.selected,
29
+ selected = _ref$selected === void 0 ? false : _ref$selected,
30
+ _ref$disableAutoClose = _ref.disableAutoClose,
31
+ disableAutoClose = _ref$disableAutoClose === void 0 ? false : _ref$disableAutoClose,
32
+ props = _objectWithoutProperties(_ref, _excluded);
33
+ var theme = useTheme();
34
+ var _useScale = useScale(),
35
+ SCALES = _useScale.SCALES;
36
+ // const { disableItemsAutoClose, onItemClick } = usePopoverContext()
37
+ var hasHandler = Boolean(onClick);
38
+ // const dontCloseByClick = disableAutoClose || disableItemsAutoClose || showTitle || line
39
+ var classes = useClasses('item', {
40
+ line: line,
41
+ showTitle: showTitle
42
+ }, className);
43
+ var clickHandler = function clickHandler(event) {
44
+ onClick && onClick(event);
45
+ // if (dontCloseByClick) {
46
+ // return event.stopPropagation()
47
+ // }
48
+ // onItemClick(event)
49
+ };
50
+ return /*#__PURE__*/React.createElement("li", {
51
+ style: {
52
+ all: 'unset',
53
+ listStyle: 'none'
54
+ }
55
+ }, /*#__PURE__*/React.createElement("div", _extends({
56
+ style: {
57
+ backgroundColor: selected ? '#efefef' : ''
58
+ },
59
+ onClick: clickHandler
60
+ }, props, {
61
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + (props && props.className != null && props.className || classes || "")
62
+ }), children ? children : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
63
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-left"
64
+ }, /*#__PURE__*/React.createElement("span", {
65
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]])
66
+ }, leading), /*#__PURE__*/React.createElement("div", {
67
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-description"
68
+ }, /*#__PURE__*/React.createElement("p", {
69
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-description-primary"
70
+ }, primary), secondary && /*#__PURE__*/React.createElement("small", {
71
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-description-secondary"
72
+ }, secondary))), /*#__PURE__*/React.createElement("div", {
73
+ className: _JSXStyle.dynamic([["937997701", [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]]]) + " " + "item-right"
74
+ }, trailing)), /*#__PURE__*/React.createElement(_JSXStyle, {
75
+ id: "937997701",
76
+ dynamic: [direction, justify, alignItems, theme.palette.accents_5, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.5), SCALES.pr(0.75), SCALES.pb(0.5), SCALES.pl(0.75), hasHandler ? 'pointer' : 'default', theme.palette.foreground, theme.palette.border, SCALES.height(0.0625), SCALES.mt(0.35), SCALES.mr(0), SCALES.mb(0.35), SCALES.ml(0), SCALES.width(1, '100%'), SCALES.font(0.925), theme.palette.foreground]
77
+ }, ".item.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:".concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";box-sizing:border-box;-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";color:").concat(theme.palette.accents_5, ";-webkit-transition:color,background-color 150ms linear;transition:color,background-color 150ms linear;line-height:1.25em;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";padding:").concat(SCALES.pt(0.5), " ").concat(SCALES.pr(0.75), " ").concat(SCALES.pb(0.5), " ").concat(SCALES.pl(0.75), ";cursor:").concat(hasHandler ? 'pointer' : 'default', ";}.item-description.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:5px;}.item-description-primary.__jsx-style-dynamic-selector{margin:0;}.item-description-secondary.__jsx-style-dynamic-selector{margin:0;}.item-left.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:0.7rem;}.item.__jsx-style-dynamic-selector:hover{color:").concat(theme.palette.foreground, ";}.item.line.__jsx-style-dynamic-selector{line-height:0;padding:0;background-color:").concat(theme.palette.border, ";height:").concat(SCALES.height(0.0625), ";margin:").concat(SCALES.mt(0.35), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0.35), " ").concat(SCALES.ml(0), ";width:").concat(SCALES.width(1, '100%'), ";}.item.title.__jsx-style-dynamic-selector{font-weight:500;font-size:").concat(SCALES.font(0.925), ";color:").concat(theme.palette.foreground, ";}"))), line && /*#__PURE__*/React.createElement(ListItem, {
78
+ line: true,
79
+ showTitle: false
80
+ }));
81
+ };
82
+ ListItemComponent.displayName = 'ListItem';
83
+ var ListItem = withScale(ListItemComponent);
84
+ export default ListItem;
@@ -0,0 +1,44 @@
1
+ import React from "react";
2
+ interface Props {
3
+ heading?: any;
4
+ showHeading?: boolean;
5
+ secondary?: any;
6
+ className?: string;
7
+ children?: React.ReactNode;
8
+ }
9
+ type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
10
+ export type ListProps = Props & NativeAttrs;
11
+ declare const List: React.ForwardRefExoticComponent<Props & NativeAttrs & {
12
+ width?: string | number;
13
+ height?: string | number;
14
+ padding?: string | number;
15
+ margin?: string | number;
16
+ w?: string | number;
17
+ h?: string | number;
18
+ paddingLeft?: string | number;
19
+ paddingRight?: string | number;
20
+ paddingTop?: string | number;
21
+ paddingBottom?: string | number;
22
+ pl?: string | number;
23
+ pr?: string | number;
24
+ pt?: string | number;
25
+ pb?: string | number;
26
+ marginLeft?: string | number;
27
+ marginRight?: string | number;
28
+ marginTop?: string | number;
29
+ marginBottom?: string | number;
30
+ ml?: string | number;
31
+ mr?: string | number;
32
+ mt?: string | number;
33
+ mb?: string | number;
34
+ px?: string | number;
35
+ py?: string | number;
36
+ mx?: string | number;
37
+ my?: string | number;
38
+ font?: string | number;
39
+ unit?: string;
40
+ scale?: number;
41
+ children?: any;
42
+ className?: string;
43
+ } & React.InputHTMLAttributes<any> & React.RefAttributes<unknown>>;
44
+ export default List;
@@ -0,0 +1,29 @@
1
+ import _JSXStyle from "../styled-jsx.es.js";
2
+ import React from "react";
3
+ import Description from "../description";
4
+ import useScale, { withScale } from "../use-scale";
5
+ var ListComponent = function ListComponent(_ref) {
6
+ var heading = _ref.heading,
7
+ _ref$showHeading = _ref.showHeading,
8
+ showHeading = _ref$showHeading === void 0 ? true : _ref$showHeading,
9
+ secondary = _ref.secondary,
10
+ children = _ref.children;
11
+ var _useScale = useScale(),
12
+ SCALES = _useScale.SCALES;
13
+ return /*#__PURE__*/React.createElement("div", {
14
+ className: _JSXStyle.dynamic([["2885341068", [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)]]])
15
+ }, showHeading && /*#__PURE__*/React.createElement(Description, {
16
+ mb: 1,
17
+ mt: 1,
18
+ title: heading,
19
+ content: secondary
20
+ }), /*#__PURE__*/React.createElement("ul", {
21
+ className: _JSXStyle.dynamic([["2885341068", [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)]]]) + " " + "helpdice-ui-list"
22
+ }, children), /*#__PURE__*/React.createElement(_JSXStyle, {
23
+ id: "2885341068",
24
+ dynamic: [SCALES.pt(0.9), SCALES.pr(0), SCALES.pb(0.9), SCALES.pl(0)]
25
+ }, ".helpdice-ui-list.__jsx-style-dynamic-selector{all:unset;padding:".concat(SCALES.pt(0.9), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0.9), " ").concat(SCALES.pl(0), ";}")));
26
+ };
27
+ ListComponent.displayName = 'List';
28
+ var List = withScale(ListComponent);
29
+ export default List;
@@ -92,45 +92,45 @@ var LoginSocialApple = function LoginSocialApple(_ref) {
92
92
  }
93
93
  }, [scope, client_id, redirect_uri, insertScript, checkIsExistsSDKScript]);
94
94
  var loginApple = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
95
- var response;
96
- return _regeneratorRuntime.wrap(function _callee$(_context) {
95
+ var response, _t;
96
+ return _regeneratorRuntime.wrap(function (_context) {
97
97
  while (1) switch (_context.prev = _context.next) {
98
98
  case 0:
99
99
  if (isSdkLoaded) {
100
- _context.next = 2;
100
+ _context.next = 1;
101
101
  break;
102
102
  }
103
103
  return _context.abrupt("return");
104
- case 2:
104
+ case 1:
105
105
  if (_window.AppleID) {
106
- _context.next = 7;
106
+ _context.next = 2;
107
107
  break;
108
108
  }
109
109
  load();
110
110
  onReject("Apple SDK isn't loaded!");
111
- _context.next = 18;
111
+ _context.next = 6;
112
112
  break;
113
- case 7:
113
+ case 2:
114
114
  onLoginStart && onLoginStart();
115
- _context.prev = 8;
116
- _context.next = 11;
115
+ _context.prev = 3;
116
+ _context.next = 4;
117
117
  return _window.AppleID.auth.signIn();
118
- case 11:
118
+ case 4:
119
119
  response = _context.sent;
120
120
  handleResponse(response);
121
- _context.next = 18;
121
+ _context.next = 6;
122
122
  break;
123
- case 15:
124
- _context.prev = 15;
125
- _context.t0 = _context["catch"](8);
123
+ case 5:
124
+ _context.prev = 5;
125
+ _t = _context["catch"](3);
126
126
  onReject({
127
- err: _context.t0
127
+ err: _t
128
128
  });
129
- case 18:
129
+ case 6:
130
130
  case "end":
131
131
  return _context.stop();
132
132
  }
133
- }, _callee, null, [[8, 15]]);
133
+ }, _callee, null, [[3, 5]]);
134
134
  })), [handleResponse, isSdkLoaded, load, onLoginStart, onReject]);
135
135
  return /*#__PURE__*/React.createElement("div", {
136
136
  className: className,
@@ -118,12 +118,12 @@ export var LoginSocialGithub = function LoginSocialGithub(_ref) {
118
118
  var handlePostMessage = useCallback(/*#__PURE__*/function () {
119
119
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref2) {
120
120
  var type, code, provider;
121
- return _regeneratorRuntime.wrap(function _callee$(_context) {
121
+ return _regeneratorRuntime.wrap(function (_context) {
122
122
  while (1) switch (_context.prev = _context.next) {
123
123
  case 0:
124
124
  type = _ref2.type, code = _ref2.code, provider = _ref2.provider;
125
125
  return _context.abrupt("return", type === 'code' && provider === 'github' && code && getAccessToken(code));
126
- case 2:
126
+ case 1:
127
127
  case "end":
128
128
  return _context.stop();
129
129
  }
@@ -100,12 +100,12 @@ export var LoginSocialInstagram = function LoginSocialInstagram(_ref) {
100
100
  var handlePostMessage = useCallback(/*#__PURE__*/function () {
101
101
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref2) {
102
102
  var type, code, provider;
103
- return _regeneratorRuntime.wrap(function _callee$(_context) {
103
+ return _regeneratorRuntime.wrap(function (_context) {
104
104
  while (1) switch (_context.prev = _context.next) {
105
105
  case 0:
106
106
  type = _ref2.type, code = _ref2.code, provider = _ref2.provider;
107
107
  return _context.abrupt("return", type === 'code' && provider === 'instagram' && code && getAccessToken(code));
108
- case 2:
108
+ case 1:
109
109
  case "end":
110
110
  return _context.stop();
111
111
  }
@@ -106,12 +106,12 @@ export var LoginSocialLinkedin = function LoginSocialLinkedin(_ref) {
106
106
  var handlePostMessage = useCallback(/*#__PURE__*/function () {
107
107
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref4) {
108
108
  var type, code, provider;
109
- return _regeneratorRuntime.wrap(function _callee$(_context) {
109
+ return _regeneratorRuntime.wrap(function (_context) {
110
110
  while (1) switch (_context.prev = _context.next) {
111
111
  case 0:
112
112
  type = _ref4.type, code = _ref4.code, provider = _ref4.provider;
113
113
  return _context.abrupt("return", type === 'code' && provider === 'linkedin' && code && getAccessToken(code));
114
- case 2:
114
+ case 1:
115
115
  case "end":
116
116
  return _context.stop();
117
117
  }
@@ -109,12 +109,12 @@ export var LoginSocialMicrosoft = function LoginSocialMicrosoft(_ref) {
109
109
  var handlePostMessage = useCallback(/*#__PURE__*/function () {
110
110
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(_ref2) {
111
111
  var type, code, provider;
112
- return _regeneratorRuntime.wrap(function _callee$(_context) {
112
+ return _regeneratorRuntime.wrap(function (_context) {
113
113
  while (1) switch (_context.prev = _context.next) {
114
114
  case 0:
115
115
  type = _ref2.type, code = _ref2.code, provider = _ref2.provider;
116
116
  return _context.abrupt("return", type === 'code' && provider === 'microsoft' && code && getAccessToken(code));
117
- case 2:
117
+ case 1:
118
118
  case "end":
119
119
  return _context.stop();
120
120
  }
@@ -63,11 +63,11 @@ export var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
63
63
  var getAccessToken = useCallback(/*#__PURE__*/function () {
64
64
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(code) {
65
65
  var details, formBody, property, encodedKey, encodedValue, data;
66
- return _regeneratorRuntime.wrap(function _callee$(_context) {
66
+ return _regeneratorRuntime.wrap(function (_context) {
67
67
  while (1) switch (_context.prev = _context.next) {
68
68
  case 0:
69
69
  if (!isOnlyGetCode) {
70
- _context.next = 4;
70
+ _context.next = 1;
71
71
  break;
72
72
  }
73
73
  onResolve({
@@ -76,9 +76,9 @@ export var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
76
76
  code: code
77
77
  }
78
78
  });
79
- _context.next = 12;
79
+ _context.next = 3;
80
80
  break;
81
- case 4:
81
+ case 1:
82
82
  details = {
83
83
  code: code,
84
84
  redirect_uri: redirect_uri,
@@ -91,7 +91,7 @@ export var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
91
91
  formBody.push(encodedKey + '=' + encodedValue);
92
92
  }
93
93
  formBody = formBody.join('&');
94
- _context.next = 10;
94
+ _context.next = 2;
95
95
  return fetch("".concat(PREVENT_CORS_URL, "/").concat(PINTEREST_URL_API, "/oauth/token"), {
96
96
  method: 'POST',
97
97
  headers: {
@@ -105,7 +105,7 @@ export var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
105
105
  })["catch"](function (err) {
106
106
  return onReject(err);
107
107
  });
108
- case 10:
108
+ case 2:
109
109
  data = _context.sent;
110
110
  if (data.access_token) {
111
111
  if (isOnlyGetToken) onResolve({
@@ -113,7 +113,7 @@ export var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
113
113
  data: data
114
114
  });else getProfile(data);
115
115
  }
116
- case 12:
116
+ case 3:
117
117
  case "end":
118
118
  return _context.stop();
119
119
  }
@@ -126,12 +126,12 @@ export var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
126
126
  var handlePostMessage = useCallback(/*#__PURE__*/function () {
127
127
  var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(_ref3) {
128
128
  var type, code, provider;
129
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
129
+ return _regeneratorRuntime.wrap(function (_context2) {
130
130
  while (1) switch (_context2.prev = _context2.next) {
131
131
  case 0:
132
132
  type = _ref3.type, code = _ref3.code, provider = _ref3.provider;
133
133
  return _context2.abrupt("return", type === 'code' && provider === 'pinterest' && code && getAccessToken(code));
134
- case 2:
134
+ case 1:
135
135
  case "end":
136
136
  return _context2.stop();
137
137
  }