@app-studio/web 0.7.18 → 0.8.1
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/components/Form/Password/Password/Password.state.d.ts +2 -2
- package/dist/web.cjs.development.js +95 -86
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +95 -86
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +6567 -0
- package/dist/web.umd.development.js.map +1 -0
- package/dist/web.umd.production.min.js +2 -0
- package/dist/web.umd.production.min.js.map +1 -0
- package/package.json +11 -7
- package/dist/GlobalStyle.d.ts +0 -3
- package/dist/StyleGuideWrapper.d.ts +0 -6
package/dist/web.esm.js
CHANGED
|
@@ -712,7 +712,7 @@ var AlertView = function AlertView(_ref) {
|
|
|
712
712
|
borderWidth: 1,
|
|
713
713
|
borderStyle: "solid",
|
|
714
714
|
padding: 16,
|
|
715
|
-
|
|
715
|
+
flexWrap: "nowrap",
|
|
716
716
|
borderColor: Themes[variant].container.border
|
|
717
717
|
}, styles == null ? void 0 : styles.container), React.createElement(View, {
|
|
718
718
|
alignSelf: 'center'
|
|
@@ -1075,7 +1075,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
1075
1075
|
}, styles.text, props), React.createElement(Horizontal, {
|
|
1076
1076
|
gap: 3,
|
|
1077
1077
|
alignItems: "center",
|
|
1078
|
-
|
|
1078
|
+
flexWrap: "nowrap"
|
|
1079
1079
|
}, children, isExternal && React.createElement(ExternalLinkSvg, {
|
|
1080
1080
|
size: IconSizes[iconSize],
|
|
1081
1081
|
style: styles.icon
|
|
@@ -1440,6 +1440,11 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
1440
1440
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
1441
1441
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
1442
1442
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
1443
|
+
console.log({
|
|
1444
|
+
button: props,
|
|
1445
|
+
size: size,
|
|
1446
|
+
isDisabled: isDisabled
|
|
1447
|
+
});
|
|
1443
1448
|
var _useTheme = useTheme(),
|
|
1444
1449
|
getColor = _useTheme.getColor;
|
|
1445
1450
|
var handleHover = function handleHover() {
|
|
@@ -1743,7 +1748,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
1743
1748
|
gap: 10,
|
|
1744
1749
|
width: "100%",
|
|
1745
1750
|
display: "flex",
|
|
1746
|
-
|
|
1751
|
+
flexWrap: "nowrap",
|
|
1747
1752
|
borderStyle: "solid",
|
|
1748
1753
|
alignItems: "center",
|
|
1749
1754
|
borderColor: color,
|
|
@@ -1765,7 +1770,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
1765
1770
|
gap: 10,
|
|
1766
1771
|
right: 16,
|
|
1767
1772
|
zIndex: 500,
|
|
1768
|
-
|
|
1773
|
+
flexWrap: "nowrap",
|
|
1769
1774
|
position: "absolute"
|
|
1770
1775
|
}, props), children);
|
|
1771
1776
|
};
|
|
@@ -4564,8 +4569,11 @@ var IconSizes$4 = {
|
|
|
4564
4569
|
xl: 16
|
|
4565
4570
|
};
|
|
4566
4571
|
|
|
4567
|
-
var _excluded$w = ["
|
|
4568
|
-
|
|
4572
|
+
var _excluded$w = ["size"],
|
|
4573
|
+
_excluded2$3 = ["size"],
|
|
4574
|
+
_excluded3$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "colorScheme", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "styles"];
|
|
4575
|
+
var CountryList = function CountryList(_ref) {
|
|
4576
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
4569
4577
|
return React.createElement(Element, Object.assign({
|
|
4570
4578
|
as: "ul"
|
|
4571
4579
|
}, props));
|
|
@@ -4575,21 +4583,22 @@ var CountrySelector = function CountrySelector(props) {
|
|
|
4575
4583
|
type: "country"
|
|
4576
4584
|
}, props));
|
|
4577
4585
|
};
|
|
4578
|
-
var CountryItem = function CountryItem(
|
|
4586
|
+
var CountryItem = function CountryItem(_ref2) {
|
|
4587
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
4579
4588
|
return React.createElement(Element, Object.assign({
|
|
4580
4589
|
as: "li"
|
|
4581
4590
|
}, props));
|
|
4582
4591
|
};
|
|
4583
|
-
var DropDownItem = function DropDownItem(
|
|
4584
|
-
var option =
|
|
4585
|
-
|
|
4586
|
-
size =
|
|
4587
|
-
|
|
4588
|
-
callback =
|
|
4589
|
-
|
|
4590
|
-
styles =
|
|
4592
|
+
var DropDownItem = function DropDownItem(_ref3) {
|
|
4593
|
+
var option = _ref3.option,
|
|
4594
|
+
_ref3$size = _ref3.size,
|
|
4595
|
+
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
4596
|
+
_ref3$callback = _ref3.callback,
|
|
4597
|
+
callback = _ref3$callback === void 0 ? function () {} : _ref3$callback,
|
|
4598
|
+
_ref3$styles = _ref3.styles,
|
|
4599
|
+
styles = _ref3$styles === void 0 ? {
|
|
4591
4600
|
text: {}
|
|
4592
|
-
} :
|
|
4601
|
+
} : _ref3$styles;
|
|
4593
4602
|
var _useState = useState(false),
|
|
4594
4603
|
isHovered = _useState[0],
|
|
4595
4604
|
setIsHovered = _useState[1];
|
|
@@ -4613,15 +4622,15 @@ var DropDownItem = function DropDownItem(_ref) {
|
|
|
4613
4622
|
backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
|
|
4614
4623
|
}, styles['text']), option);
|
|
4615
4624
|
};
|
|
4616
|
-
var DropDown$1 = function DropDown(
|
|
4617
|
-
var size =
|
|
4618
|
-
|
|
4619
|
-
styles =
|
|
4625
|
+
var DropDown$1 = function DropDown(_ref4) {
|
|
4626
|
+
var size = _ref4.size,
|
|
4627
|
+
_ref4$styles = _ref4.styles,
|
|
4628
|
+
styles = _ref4$styles === void 0 ? {
|
|
4620
4629
|
dropDown: {}
|
|
4621
|
-
} :
|
|
4622
|
-
options =
|
|
4623
|
-
|
|
4624
|
-
callback =
|
|
4630
|
+
} : _ref4$styles,
|
|
4631
|
+
options = _ref4.options,
|
|
4632
|
+
_ref4$callback = _ref4.callback,
|
|
4633
|
+
callback = _ref4$callback === void 0 ? function () {} : _ref4$callback;
|
|
4625
4634
|
var handleCallback = function handleCallback(option) {
|
|
4626
4635
|
return callback(option);
|
|
4627
4636
|
};
|
|
@@ -4649,62 +4658,62 @@ var DropDown$1 = function DropDown(_ref2) {
|
|
|
4649
4658
|
}, styles['text']));
|
|
4650
4659
|
}));
|
|
4651
4660
|
};
|
|
4652
|
-
var CountryPickerView = function CountryPickerView(
|
|
4653
|
-
var id =
|
|
4654
|
-
name =
|
|
4655
|
-
label =
|
|
4656
|
-
value =
|
|
4657
|
-
placeholder =
|
|
4658
|
-
helperText =
|
|
4659
|
-
|
|
4660
|
-
hide =
|
|
4661
|
-
|
|
4662
|
-
error =
|
|
4663
|
-
|
|
4664
|
-
isHovered =
|
|
4665
|
-
|
|
4666
|
-
isFocused =
|
|
4667
|
-
|
|
4668
|
-
isAutoFocus =
|
|
4669
|
-
|
|
4670
|
-
isDisabled =
|
|
4671
|
-
|
|
4672
|
-
isReadOnly =
|
|
4673
|
-
|
|
4674
|
-
shadow =
|
|
4675
|
-
|
|
4676
|
-
newOptions =
|
|
4677
|
-
|
|
4678
|
-
size =
|
|
4679
|
-
|
|
4680
|
-
variant =
|
|
4681
|
-
|
|
4682
|
-
shape =
|
|
4683
|
-
|
|
4684
|
-
colorScheme =
|
|
4685
|
-
onChange =
|
|
4686
|
-
|
|
4687
|
-
onBlur =
|
|
4688
|
-
|
|
4689
|
-
setHide =
|
|
4690
|
-
|
|
4691
|
-
setNewOptions =
|
|
4692
|
-
|
|
4693
|
-
setIsHovered =
|
|
4694
|
-
|
|
4695
|
-
setIsFocused =
|
|
4696
|
-
|
|
4697
|
-
setValue =
|
|
4698
|
-
|
|
4699
|
-
styles =
|
|
4661
|
+
var CountryPickerView = function CountryPickerView(_ref5) {
|
|
4662
|
+
var id = _ref5.id,
|
|
4663
|
+
name = _ref5.name,
|
|
4664
|
+
label = _ref5.label,
|
|
4665
|
+
value = _ref5.value,
|
|
4666
|
+
placeholder = _ref5.placeholder,
|
|
4667
|
+
helperText = _ref5.helperText,
|
|
4668
|
+
_ref5$hide = _ref5.hide,
|
|
4669
|
+
hide = _ref5$hide === void 0 ? false : _ref5$hide,
|
|
4670
|
+
_ref5$error = _ref5.error,
|
|
4671
|
+
error = _ref5$error === void 0 ? false : _ref5$error,
|
|
4672
|
+
_ref5$isHovered = _ref5.isHovered,
|
|
4673
|
+
isHovered = _ref5$isHovered === void 0 ? false : _ref5$isHovered,
|
|
4674
|
+
_ref5$isFocused = _ref5.isFocused,
|
|
4675
|
+
isFocused = _ref5$isFocused === void 0 ? false : _ref5$isFocused,
|
|
4676
|
+
_ref5$isAutoFocus = _ref5.isAutoFocus,
|
|
4677
|
+
isAutoFocus = _ref5$isAutoFocus === void 0 ? false : _ref5$isAutoFocus,
|
|
4678
|
+
_ref5$isDisabled = _ref5.isDisabled,
|
|
4679
|
+
isDisabled = _ref5$isDisabled === void 0 ? false : _ref5$isDisabled,
|
|
4680
|
+
_ref5$isReadOnly = _ref5.isReadOnly,
|
|
4681
|
+
isReadOnly = _ref5$isReadOnly === void 0 ? false : _ref5$isReadOnly,
|
|
4682
|
+
_ref5$shadow = _ref5.shadow,
|
|
4683
|
+
shadow = _ref5$shadow === void 0 ? {} : _ref5$shadow,
|
|
4684
|
+
_ref5$newOptions = _ref5.newOptions,
|
|
4685
|
+
newOptions = _ref5$newOptions === void 0 ? [] : _ref5$newOptions,
|
|
4686
|
+
_ref5$size = _ref5.size,
|
|
4687
|
+
size = _ref5$size === void 0 ? 'md' : _ref5$size,
|
|
4688
|
+
_ref5$variant = _ref5.variant,
|
|
4689
|
+
variant = _ref5$variant === void 0 ? 'default' : _ref5$variant,
|
|
4690
|
+
_ref5$shape = _ref5.shape,
|
|
4691
|
+
shape = _ref5$shape === void 0 ? 'default' : _ref5$shape,
|
|
4692
|
+
_ref5$colorScheme = _ref5.colorScheme,
|
|
4693
|
+
colorScheme = _ref5$colorScheme === void 0 ? 'theme.primary' : _ref5$colorScheme,
|
|
4694
|
+
onChange = _ref5.onChange,
|
|
4695
|
+
_ref5$onBlur = _ref5.onBlur,
|
|
4696
|
+
onBlur = _ref5$onBlur === void 0 ? function () {} : _ref5$onBlur,
|
|
4697
|
+
_ref5$setHide = _ref5.setHide,
|
|
4698
|
+
setHide = _ref5$setHide === void 0 ? function () {} : _ref5$setHide,
|
|
4699
|
+
_ref5$setNewOptions = _ref5.setNewOptions,
|
|
4700
|
+
setNewOptions = _ref5$setNewOptions === void 0 ? function () {} : _ref5$setNewOptions,
|
|
4701
|
+
_ref5$setIsHovered = _ref5.setIsHovered,
|
|
4702
|
+
setIsHovered = _ref5$setIsHovered === void 0 ? function () {} : _ref5$setIsHovered,
|
|
4703
|
+
_ref5$setIsFocused = _ref5.setIsFocused,
|
|
4704
|
+
setIsFocused = _ref5$setIsFocused === void 0 ? function () {} : _ref5$setIsFocused,
|
|
4705
|
+
_ref5$setValue = _ref5.setValue,
|
|
4706
|
+
setValue = _ref5$setValue === void 0 ? function () {} : _ref5$setValue,
|
|
4707
|
+
_ref5$styles = _ref5.styles,
|
|
4708
|
+
styles = _ref5$styles === void 0 ? {
|
|
4700
4709
|
text: {},
|
|
4701
4710
|
icon: {},
|
|
4702
4711
|
label: {},
|
|
4703
4712
|
dropDown: {},
|
|
4704
4713
|
helperText: {},
|
|
4705
4714
|
box: {}
|
|
4706
|
-
} :
|
|
4707
|
-
props = _objectWithoutPropertiesLoose(
|
|
4715
|
+
} : _ref5$styles,
|
|
4716
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$2);
|
|
4708
4717
|
var _useTheme = useTheme(),
|
|
4709
4718
|
getColor = _useTheme.getColor;
|
|
4710
4719
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -4985,7 +4994,7 @@ var usePasswordState = function usePasswordState(props) {
|
|
|
4985
4994
|
};
|
|
4986
4995
|
|
|
4987
4996
|
var _excluded$y = ["visibleIcon", "hiddenIcon"],
|
|
4988
|
-
_excluded2$
|
|
4997
|
+
_excluded2$4 = ["isVisible", "setIsVisible"];
|
|
4989
4998
|
var PasswordComponent = function PasswordComponent(_ref) {
|
|
4990
4999
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
4991
5000
|
visibleIcon = _ref$visibleIcon === void 0 ? React.createElement(OpenEyeSvg, {
|
|
@@ -4999,7 +5008,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
|
|
|
4999
5008
|
var _usePasswordState = usePasswordState(props),
|
|
5000
5009
|
isVisible = _usePasswordState.isVisible,
|
|
5001
5010
|
setIsVisible = _usePasswordState.setIsVisible,
|
|
5002
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
5011
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$4);
|
|
5003
5012
|
return React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
5004
5013
|
type: isVisible ? 'text' : 'password',
|
|
5005
5014
|
isClearable: false,
|
|
@@ -5236,7 +5245,7 @@ var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
|
5236
5245
|
var FormikTextField = TextFieldComponent$1;
|
|
5237
5246
|
|
|
5238
5247
|
var _excluded$C = ["visibleIcon", "hiddenIcon"],
|
|
5239
|
-
_excluded2$
|
|
5248
|
+
_excluded2$5 = ["isVisible", "setIsVisible"];
|
|
5240
5249
|
var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
5241
5250
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
5242
5251
|
visibleIcon = _ref$visibleIcon === void 0 ? React.createElement(OpenEyeSvg, {
|
|
@@ -5251,7 +5260,7 @@ var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
|
5251
5260
|
var _usePasswordState = usePasswordState(formProps),
|
|
5252
5261
|
isVisible = _usePasswordState.isVisible,
|
|
5253
5262
|
setIsVisible = _usePasswordState.setIsVisible,
|
|
5254
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
5263
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$5);
|
|
5255
5264
|
return React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
5256
5265
|
type: isVisible ? 'text' : 'password',
|
|
5257
5266
|
isClearable: false,
|
|
@@ -5437,7 +5446,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5437
5446
|
// Starts the JSX returned by the component representing the combobox.
|
|
5438
5447
|
return React.createElement(Horizontal, Object.assign({
|
|
5439
5448
|
role: "combobox",
|
|
5440
|
-
|
|
5449
|
+
flexWrap: "nowrap",
|
|
5441
5450
|
gap: 15,
|
|
5442
5451
|
alignItems: "center",
|
|
5443
5452
|
width: "100%"
|
|
@@ -5456,7 +5465,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5456
5465
|
borderRadius: "4px",
|
|
5457
5466
|
justifyContent: "space-between",
|
|
5458
5467
|
minWidth: 300,
|
|
5459
|
-
|
|
5468
|
+
flexWrap: "nowrap"
|
|
5460
5469
|
}, styles == null ? void 0 : styles.container), React.createElement(Horizontal, Object.assign({
|
|
5461
5470
|
gap: 15,
|
|
5462
5471
|
alignItems: "center",
|
|
@@ -5729,7 +5738,7 @@ var MessageView = function MessageView(_ref) {
|
|
|
5729
5738
|
gap: 16,
|
|
5730
5739
|
width: 400,
|
|
5731
5740
|
// safe={true}
|
|
5732
|
-
|
|
5741
|
+
flexWrap: "nowrap",
|
|
5733
5742
|
position: 'relative',
|
|
5734
5743
|
alignItems: "center",
|
|
5735
5744
|
padding: "14px 24px 14px 14px",
|
|
@@ -5911,8 +5920,8 @@ var HeaderIconSizes = {
|
|
|
5911
5920
|
};
|
|
5912
5921
|
|
|
5913
5922
|
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
5914
|
-
_excluded2$
|
|
5915
|
-
_excluded3$
|
|
5923
|
+
_excluded2$6 = ["children", "shadow", "isFullScreen", "shape"],
|
|
5924
|
+
_excluded3$3 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
5916
5925
|
_excluded4$2 = ["children"],
|
|
5917
5926
|
_excluded5 = ["children"];
|
|
5918
5927
|
var ModalOverlay = function ModalOverlay(_ref) {
|
|
@@ -5947,7 +5956,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
5947
5956
|
width: "100vw",
|
|
5948
5957
|
height: "100vh",
|
|
5949
5958
|
display: "flex",
|
|
5950
|
-
backgroundColor: "blackAlpha.500",
|
|
5959
|
+
backgroundColor: "color.blackAlpha.500",
|
|
5951
5960
|
backdropFilter: blur ? "blur(" + blur + "px)" : undefined,
|
|
5952
5961
|
onClick: handleClick
|
|
5953
5962
|
}, OverlayAlignments[position], props), children));
|
|
@@ -5959,7 +5968,7 @@ var ModalContainer = function ModalContainer(_ref2) {
|
|
|
5959
5968
|
isFullScreen = _ref2$isFullScreen === void 0 ? false : _ref2$isFullScreen,
|
|
5960
5969
|
_ref2$shape = _ref2.shape,
|
|
5961
5970
|
shape = _ref2$shape === void 0 ? 'rounded' : _ref2$shape,
|
|
5962
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5971
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$6);
|
|
5963
5972
|
var defaultShadow = typeof document !== undefined ? {
|
|
5964
5973
|
boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.3)'
|
|
5965
5974
|
} : {
|
|
@@ -5991,7 +6000,7 @@ var ModalHeader = function ModalHeader(_ref3) {
|
|
|
5991
6000
|
iconSize = _ref3$iconSize === void 0 ? 'md' : _ref3$iconSize,
|
|
5992
6001
|
_ref3$buttonPosition = _ref3.buttonPosition,
|
|
5993
6002
|
buttonPosition = _ref3$buttonPosition === void 0 ? 'right' : _ref3$buttonPosition,
|
|
5994
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
6003
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
5995
6004
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
5996
6005
|
var buttonIcon = React.createElement(Button, {
|
|
5997
6006
|
onClick: onClose,
|