@app-studio/web 0.8.20 → 0.8.22

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.
package/dist/web.esm.js CHANGED
@@ -9,11 +9,9 @@ import { Link as Link$1 } from 'react-router-dom';
9
9
  import 'core-js/modules/es.array.includes.js';
10
10
  import 'core-js/modules/es.string.includes.js';
11
11
  import 'core-js/modules/es.string.starts-with.js';
12
- import { ChevronIcon as ChevronIcon$1, SearchIcon as SearchIcon$1, TickIcon as TickIcon$1 } from 'src/components/Icon/Icon';
13
12
  import format from 'date-fns/format';
14
13
  import { useFormikContext, getIn } from 'formik';
15
14
  import { create } from 'zustand';
16
- import { Vertical as Vertical$1 } from 'src/components/Layout';
17
15
 
18
16
  var Top = props => (/*#__PURE__*/React.createElement(View$1, Object.assign({
19
17
  marginBottom: "auto"
@@ -166,7 +164,7 @@ var TextComponent = props => {
166
164
  var Text = TextComponent;
167
165
 
168
166
  var _excluded$1 = ["justifyContent", "isReversed"];
169
- var VerticalView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
167
+ var Vertical = /*#__PURE__*/React.forwardRef((_ref, ref) => {
170
168
  var {
171
169
  // Sets a default alignment for content within the Vertical container to 'flex-start'
172
170
  justifyContent = 'flex-start',
@@ -182,12 +180,10 @@ var VerticalView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
182
180
  ref: ref
183
181
  }));
184
182
  });
185
- VerticalView.displayName = 'VerticalView';
186
-
187
- var Vertical = props => (/*#__PURE__*/React.createElement(VerticalView, Object.assign({}, props)));
183
+ Vertical.displayName = 'Vertical';
188
184
 
189
185
  var _excluded$2 = ["justifyContent", "isReversed"];
190
- var HorizontalView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
186
+ var Horizontal = /*#__PURE__*/React.forwardRef((_ref, ref) => {
191
187
  var {
192
188
  // Sets a default alignment for content within the Horizontal container to 'flex-start'
193
189
  justifyContent = 'flex-start',
@@ -203,12 +199,10 @@ var HorizontalView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
203
199
  ref: ref
204
200
  }));
205
201
  });
206
- HorizontalView.displayName = 'Horizontal';
207
-
208
- var Horizontal = props => (/*#__PURE__*/React.createElement(HorizontalView, Object.assign({}, props)));
202
+ Horizontal.displayName = 'Horizontal';
209
203
 
210
204
  var _excluded$3 = ["isReversed"];
211
- var CenterView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
205
+ var Center = /*#__PURE__*/React.forwardRef((_ref, ref) => {
212
206
  var props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
213
207
  return /*#__PURE__*/React.createElement(View$1, Object.assign({
214
208
  display: "flex",
@@ -218,9 +212,7 @@ var CenterView = /*#__PURE__*/React.forwardRef((_ref, ref) => {
218
212
  ref: ref
219
213
  }));
220
214
  });
221
- CenterView.displayName = 'Center';
222
-
223
- var Center = props => (/*#__PURE__*/React.createElement(CenterView, Object.assign({}, props)));
215
+ Center.displayName = 'Center';
224
216
 
225
217
  var _excluded$4 = ["size", "color"],
226
218
  _excluded2 = ["size", "color"],
@@ -5290,12 +5282,12 @@ var CountryPickerView = _ref5 => {
5290
5282
  }, fieldStyles, props, {
5291
5283
  value: value,
5292
5284
  onChange: handleChange
5293
- }))), /*#__PURE__*/React.createElement(FieldIcons, null, hide ? (/*#__PURE__*/React.createElement(ChevronIcon$1, {
5285
+ }))), /*#__PURE__*/React.createElement(FieldIcons, null, hide ? (/*#__PURE__*/React.createElement(ChevronIcon, {
5294
5286
  orientation: "down",
5295
5287
  size: IconSizes$4[size],
5296
5288
  color: IconColor,
5297
5289
  style: styles['icon']
5298
- })) : (/*#__PURE__*/React.createElement(ChevronIcon$1, {
5290
+ })) : (/*#__PURE__*/React.createElement(ChevronIcon, {
5299
5291
  orientation: "up",
5300
5292
  size: IconSizes$4[size],
5301
5293
  color: IconColor,
@@ -5628,7 +5620,7 @@ var ComboBoxView = _ref => {
5628
5620
  onChange: value => handleSearch(value),
5629
5621
  hint: placeholder,
5630
5622
  isClearable: false,
5631
- leftChild: /*#__PURE__*/React.createElement(SearchIcon$1, {
5623
+ leftChild: /*#__PURE__*/React.createElement(SearchIcon, {
5632
5624
  size: 12
5633
5625
  }),
5634
5626
  styles: {
@@ -5650,7 +5642,7 @@ var ComboBoxView = _ref => {
5650
5642
  backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
5651
5643
  onMouseEnter: () => setHighlightedIndex(index),
5652
5644
  onClick: () => handleSelect(item)
5653
- }, styles == null ? void 0 : styles.item), /*#__PURE__*/React.createElement(Text, null, item.label), /*#__PURE__*/React.createElement(React.Fragment, null, item.icon && item.icon, item.value === selectedItem.value && showTick && !item.icon && /*#__PURE__*/React.createElement(TickIcon$1, {
5645
+ }, styles == null ? void 0 : styles.item), /*#__PURE__*/React.createElement(Text, null, item.label), /*#__PURE__*/React.createElement(React.Fragment, null, item.icon && item.icon, item.value === selectedItem.value && showTick && !item.icon && /*#__PURE__*/React.createElement(TickIcon, {
5654
5646
  size: 20
5655
5647
  }))))))))))));
5656
5648
  };
@@ -6660,7 +6652,7 @@ var TabsView = props => {
6660
6652
  // Returns a boolean indicating if the given tab is identical to the first tab in 'tabsState'.
6661
6653
  return tab.value === tabsState[0].value;
6662
6654
  };
6663
- return /*#__PURE__*/React.createElement(Vertical$1, Object.assign({
6655
+ return /*#__PURE__*/React.createElement(Vertical, Object.assign({
6664
6656
  width: "100w",
6665
6657
  height: '100%'
6666
6658
  }, styles == null ? void 0 : styles.container), /*#__PURE__*/React.createElement(Horizontal, Object.assign({