@app-studio/web 0.3.65 → 0.3.67

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
@@ -5,8 +5,12 @@ import format from 'date-fns/format';
5
5
  import { useFormikContext } from 'formik';
6
6
  import { create } from 'zustand';
7
7
  import { View as View$2 } from 'src/components/Layout/View/View';
8
- import { Horizontal as Horizontal$1, Button as Button$1, Text as Text$1, View as View$3, Vertical as Vertical$1, Center as Center$1, Toggle as Toggle$1 } from 'src/components';
8
+ import { Horizontal as Horizontal$1 } from 'src/components/Layout/Horizontal/Horizontal';
9
+ import { Button as Button$1 } from 'src/components/Button/Button';
10
+ import { Text as Text$1 } from 'src/components/Text/Text';
11
+ import { Vertical as Vertical$1 } from 'src/components/Layout/Vertical/Vertical';
9
12
  import { WarningSvg } from 'src/components/Svg';
13
+ import { Center as Center$1 } from 'src/components/Layout/Center/Center';
10
14
 
11
15
  var useButtonState = function useButtonState() {
12
16
  var _React$useState = React.useState(false),
@@ -421,7 +425,7 @@ var IconSizes = {
421
425
  '6xl': 64
422
426
  };
423
427
 
424
- var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "colorScheme", "styles", "setIsHovered"];
428
+ var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
425
429
  var LinkView = function LinkView(_ref) {
426
430
  var children = _ref.children,
427
431
  _ref$href = _ref.href,
@@ -434,8 +438,6 @@ var LinkView = function LinkView(_ref) {
434
438
  isHovered = _ref$isHovered === void 0 ? false : _ref$isHovered,
435
439
  _ref$isExternal = _ref.isExternal,
436
440
  isExternal = _ref$isExternal === void 0 ? false : _ref$isExternal,
437
- _ref$colorScheme = _ref.colorScheme,
438
- colorScheme = _ref$colorScheme === void 0 ? '#0072F5' : _ref$colorScheme,
439
441
  _ref$styles = _ref.styles,
440
442
  styles = _ref$styles === void 0 ? {
441
443
  icon: {},
@@ -451,7 +453,6 @@ var LinkView = function LinkView(_ref) {
451
453
  to: href,
452
454
  target: isExternal ? '_blank' : '_self'
453
455
  }, React.createElement(Element, Object.assign({
454
- color: colorScheme,
455
456
  onMouseEnter: handleHover,
456
457
  onMouseLeave: handleHover,
457
458
  textDecoration: isHovered || underline === 'underline' ? 'underline !important' : 'none'
@@ -460,7 +461,6 @@ var LinkView = function LinkView(_ref) {
460
461
  alignItems: "center",
461
462
  wrap: "nowrap"
462
463
  }, children, isExternal && React.createElement(ExternalLinkSvg, {
463
- color: colorScheme,
464
464
  size: IconSizes[iconSize],
465
465
  style: styles.icon
466
466
  }))));
@@ -5096,7 +5096,7 @@ var AlertView = function AlertView(_ref) {
5096
5096
  padding: 16,
5097
5097
  wrap: "nowrap",
5098
5098
  borderColor: Themes[variant].container.border
5099
- }, styles == null ? void 0 : styles.container), React.createElement(View$3, {
5099
+ }, styles == null ? void 0 : styles.container), React.createElement(View$2, {
5100
5100
  alignSelf: 'center'
5101
5101
  }, icon ? icon : React.createElement(WarningSvg, {
5102
5102
  size: 24,
@@ -5140,7 +5140,7 @@ var AspectRatioView = function AspectRatioView(_ref) {
5140
5140
  overflow: "hidden",
5141
5141
  paddingTop: 1 / ratio * 100 + "%",
5142
5142
  borderRadius: 8
5143
- }, props), React.createElement(View$3, {
5143
+ }, props), React.createElement(View$2, {
5144
5144
  position: "absolute",
5145
5145
  top: 0,
5146
5146
  right: 0,
@@ -5523,7 +5523,7 @@ var ToggleGroupView = function ToggleGroupView(_ref) {
5523
5523
  display: "flex",
5524
5524
  gap: 5
5525
5525
  }, items.map(function (item) {
5526
- return React.createElement(Toggle$1, {
5526
+ return React.createElement(Toggle, {
5527
5527
  role: "toggle-" + item.id,
5528
5528
  key: item.id,
5529
5529
  colorScheme: colorScheme,