@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
|
@@ -30,10 +30,10 @@ export declare const usePasswordState: (props: PasswordProps) => {
|
|
|
30
30
|
onClick?: (() => void) | undefined;
|
|
31
31
|
onFocus?: (() => void) | undefined;
|
|
32
32
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
33
|
-
shadow?: import("app-studio").Shadow | import("../../../../utils/elevation").Elevation |
|
|
33
|
+
shadow?: import("react").CSSProperties | import("app-studio").Shadow | import("../../../../utils/elevation").Elevation | undefined;
|
|
34
34
|
shape?: "default" | "sharp" | "rounded" | "pillShaped" | undefined;
|
|
35
35
|
styles?: import("../../TextField/TextField/TextField.type").TextFieldStyles | undefined;
|
|
36
|
-
variant?: "
|
|
36
|
+
variant?: "outline" | "default" | "none" | undefined;
|
|
37
37
|
isVisible: boolean;
|
|
38
38
|
setIsVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
39
39
|
};
|
|
@@ -719,7 +719,7 @@ var AlertView = function AlertView(_ref) {
|
|
|
719
719
|
borderWidth: 1,
|
|
720
720
|
borderStyle: "solid",
|
|
721
721
|
padding: 16,
|
|
722
|
-
|
|
722
|
+
flexWrap: "nowrap",
|
|
723
723
|
borderColor: Themes[variant].container.border
|
|
724
724
|
}, styles == null ? void 0 : styles.container), React__default.createElement(View, {
|
|
725
725
|
alignSelf: 'center'
|
|
@@ -1082,7 +1082,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
1082
1082
|
}, styles.text, props), React__default.createElement(Horizontal, {
|
|
1083
1083
|
gap: 3,
|
|
1084
1084
|
alignItems: "center",
|
|
1085
|
-
|
|
1085
|
+
flexWrap: "nowrap"
|
|
1086
1086
|
}, children, isExternal && React__default.createElement(ExternalLinkSvg, {
|
|
1087
1087
|
size: IconSizes[iconSize],
|
|
1088
1088
|
style: styles.icon
|
|
@@ -1447,6 +1447,11 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
1447
1447
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
1448
1448
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
1449
1449
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
1450
|
+
console.log({
|
|
1451
|
+
button: props,
|
|
1452
|
+
size: size,
|
|
1453
|
+
isDisabled: isDisabled
|
|
1454
|
+
});
|
|
1450
1455
|
var _useTheme = appStudio.useTheme(),
|
|
1451
1456
|
getColor = _useTheme.getColor;
|
|
1452
1457
|
var handleHover = function handleHover() {
|
|
@@ -1750,7 +1755,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
1750
1755
|
gap: 10,
|
|
1751
1756
|
width: "100%",
|
|
1752
1757
|
display: "flex",
|
|
1753
|
-
|
|
1758
|
+
flexWrap: "nowrap",
|
|
1754
1759
|
borderStyle: "solid",
|
|
1755
1760
|
alignItems: "center",
|
|
1756
1761
|
borderColor: color,
|
|
@@ -1772,7 +1777,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
1772
1777
|
gap: 10,
|
|
1773
1778
|
right: 16,
|
|
1774
1779
|
zIndex: 500,
|
|
1775
|
-
|
|
1780
|
+
flexWrap: "nowrap",
|
|
1776
1781
|
position: "absolute"
|
|
1777
1782
|
}, props), children);
|
|
1778
1783
|
};
|
|
@@ -4571,8 +4576,11 @@ var IconSizes$4 = {
|
|
|
4571
4576
|
xl: 16
|
|
4572
4577
|
};
|
|
4573
4578
|
|
|
4574
|
-
var _excluded$w = ["
|
|
4575
|
-
|
|
4579
|
+
var _excluded$w = ["size"],
|
|
4580
|
+
_excluded2$3 = ["size"],
|
|
4581
|
+
_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"];
|
|
4582
|
+
var CountryList = function CountryList(_ref) {
|
|
4583
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
4576
4584
|
return React__default.createElement(appStudio.Element, Object.assign({
|
|
4577
4585
|
as: "ul"
|
|
4578
4586
|
}, props));
|
|
@@ -4582,21 +4590,22 @@ var CountrySelector = function CountrySelector(props) {
|
|
|
4582
4590
|
type: "country"
|
|
4583
4591
|
}, props));
|
|
4584
4592
|
};
|
|
4585
|
-
var CountryItem = function CountryItem(
|
|
4593
|
+
var CountryItem = function CountryItem(_ref2) {
|
|
4594
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
4586
4595
|
return React__default.createElement(appStudio.Element, Object.assign({
|
|
4587
4596
|
as: "li"
|
|
4588
4597
|
}, props));
|
|
4589
4598
|
};
|
|
4590
|
-
var DropDownItem = function DropDownItem(
|
|
4591
|
-
var option =
|
|
4592
|
-
|
|
4593
|
-
size =
|
|
4594
|
-
|
|
4595
|
-
callback =
|
|
4596
|
-
|
|
4597
|
-
styles =
|
|
4599
|
+
var DropDownItem = function DropDownItem(_ref3) {
|
|
4600
|
+
var option = _ref3.option,
|
|
4601
|
+
_ref3$size = _ref3.size,
|
|
4602
|
+
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
4603
|
+
_ref3$callback = _ref3.callback,
|
|
4604
|
+
callback = _ref3$callback === void 0 ? function () {} : _ref3$callback,
|
|
4605
|
+
_ref3$styles = _ref3.styles,
|
|
4606
|
+
styles = _ref3$styles === void 0 ? {
|
|
4598
4607
|
text: {}
|
|
4599
|
-
} :
|
|
4608
|
+
} : _ref3$styles;
|
|
4600
4609
|
var _useState = React.useState(false),
|
|
4601
4610
|
isHovered = _useState[0],
|
|
4602
4611
|
setIsHovered = _useState[1];
|
|
@@ -4620,15 +4629,15 @@ var DropDownItem = function DropDownItem(_ref) {
|
|
|
4620
4629
|
backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
|
|
4621
4630
|
}, styles['text']), option);
|
|
4622
4631
|
};
|
|
4623
|
-
var DropDown$1 = function DropDown(
|
|
4624
|
-
var size =
|
|
4625
|
-
|
|
4626
|
-
styles =
|
|
4632
|
+
var DropDown$1 = function DropDown(_ref4) {
|
|
4633
|
+
var size = _ref4.size,
|
|
4634
|
+
_ref4$styles = _ref4.styles,
|
|
4635
|
+
styles = _ref4$styles === void 0 ? {
|
|
4627
4636
|
dropDown: {}
|
|
4628
|
-
} :
|
|
4629
|
-
options =
|
|
4630
|
-
|
|
4631
|
-
callback =
|
|
4637
|
+
} : _ref4$styles,
|
|
4638
|
+
options = _ref4.options,
|
|
4639
|
+
_ref4$callback = _ref4.callback,
|
|
4640
|
+
callback = _ref4$callback === void 0 ? function () {} : _ref4$callback;
|
|
4632
4641
|
var handleCallback = function handleCallback(option) {
|
|
4633
4642
|
return callback(option);
|
|
4634
4643
|
};
|
|
@@ -4656,62 +4665,62 @@ var DropDown$1 = function DropDown(_ref2) {
|
|
|
4656
4665
|
}, styles['text']));
|
|
4657
4666
|
}));
|
|
4658
4667
|
};
|
|
4659
|
-
var CountryPickerView = function CountryPickerView(
|
|
4660
|
-
var id =
|
|
4661
|
-
name =
|
|
4662
|
-
label =
|
|
4663
|
-
value =
|
|
4664
|
-
placeholder =
|
|
4665
|
-
helperText =
|
|
4666
|
-
|
|
4667
|
-
hide =
|
|
4668
|
-
|
|
4669
|
-
error =
|
|
4670
|
-
|
|
4671
|
-
isHovered =
|
|
4672
|
-
|
|
4673
|
-
isFocused =
|
|
4674
|
-
|
|
4675
|
-
isAutoFocus =
|
|
4676
|
-
|
|
4677
|
-
isDisabled =
|
|
4678
|
-
|
|
4679
|
-
isReadOnly =
|
|
4680
|
-
|
|
4681
|
-
shadow =
|
|
4682
|
-
|
|
4683
|
-
newOptions =
|
|
4684
|
-
|
|
4685
|
-
size =
|
|
4686
|
-
|
|
4687
|
-
variant =
|
|
4688
|
-
|
|
4689
|
-
shape =
|
|
4690
|
-
|
|
4691
|
-
colorScheme =
|
|
4692
|
-
onChange =
|
|
4693
|
-
|
|
4694
|
-
onBlur =
|
|
4695
|
-
|
|
4696
|
-
setHide =
|
|
4697
|
-
|
|
4698
|
-
setNewOptions =
|
|
4699
|
-
|
|
4700
|
-
setIsHovered =
|
|
4701
|
-
|
|
4702
|
-
setIsFocused =
|
|
4703
|
-
|
|
4704
|
-
setValue =
|
|
4705
|
-
|
|
4706
|
-
styles =
|
|
4668
|
+
var CountryPickerView = function CountryPickerView(_ref5) {
|
|
4669
|
+
var id = _ref5.id,
|
|
4670
|
+
name = _ref5.name,
|
|
4671
|
+
label = _ref5.label,
|
|
4672
|
+
value = _ref5.value,
|
|
4673
|
+
placeholder = _ref5.placeholder,
|
|
4674
|
+
helperText = _ref5.helperText,
|
|
4675
|
+
_ref5$hide = _ref5.hide,
|
|
4676
|
+
hide = _ref5$hide === void 0 ? false : _ref5$hide,
|
|
4677
|
+
_ref5$error = _ref5.error,
|
|
4678
|
+
error = _ref5$error === void 0 ? false : _ref5$error,
|
|
4679
|
+
_ref5$isHovered = _ref5.isHovered,
|
|
4680
|
+
isHovered = _ref5$isHovered === void 0 ? false : _ref5$isHovered,
|
|
4681
|
+
_ref5$isFocused = _ref5.isFocused,
|
|
4682
|
+
isFocused = _ref5$isFocused === void 0 ? false : _ref5$isFocused,
|
|
4683
|
+
_ref5$isAutoFocus = _ref5.isAutoFocus,
|
|
4684
|
+
isAutoFocus = _ref5$isAutoFocus === void 0 ? false : _ref5$isAutoFocus,
|
|
4685
|
+
_ref5$isDisabled = _ref5.isDisabled,
|
|
4686
|
+
isDisabled = _ref5$isDisabled === void 0 ? false : _ref5$isDisabled,
|
|
4687
|
+
_ref5$isReadOnly = _ref5.isReadOnly,
|
|
4688
|
+
isReadOnly = _ref5$isReadOnly === void 0 ? false : _ref5$isReadOnly,
|
|
4689
|
+
_ref5$shadow = _ref5.shadow,
|
|
4690
|
+
shadow = _ref5$shadow === void 0 ? {} : _ref5$shadow,
|
|
4691
|
+
_ref5$newOptions = _ref5.newOptions,
|
|
4692
|
+
newOptions = _ref5$newOptions === void 0 ? [] : _ref5$newOptions,
|
|
4693
|
+
_ref5$size = _ref5.size,
|
|
4694
|
+
size = _ref5$size === void 0 ? 'md' : _ref5$size,
|
|
4695
|
+
_ref5$variant = _ref5.variant,
|
|
4696
|
+
variant = _ref5$variant === void 0 ? 'default' : _ref5$variant,
|
|
4697
|
+
_ref5$shape = _ref5.shape,
|
|
4698
|
+
shape = _ref5$shape === void 0 ? 'default' : _ref5$shape,
|
|
4699
|
+
_ref5$colorScheme = _ref5.colorScheme,
|
|
4700
|
+
colorScheme = _ref5$colorScheme === void 0 ? 'theme.primary' : _ref5$colorScheme,
|
|
4701
|
+
onChange = _ref5.onChange,
|
|
4702
|
+
_ref5$onBlur = _ref5.onBlur,
|
|
4703
|
+
onBlur = _ref5$onBlur === void 0 ? function () {} : _ref5$onBlur,
|
|
4704
|
+
_ref5$setHide = _ref5.setHide,
|
|
4705
|
+
setHide = _ref5$setHide === void 0 ? function () {} : _ref5$setHide,
|
|
4706
|
+
_ref5$setNewOptions = _ref5.setNewOptions,
|
|
4707
|
+
setNewOptions = _ref5$setNewOptions === void 0 ? function () {} : _ref5$setNewOptions,
|
|
4708
|
+
_ref5$setIsHovered = _ref5.setIsHovered,
|
|
4709
|
+
setIsHovered = _ref5$setIsHovered === void 0 ? function () {} : _ref5$setIsHovered,
|
|
4710
|
+
_ref5$setIsFocused = _ref5.setIsFocused,
|
|
4711
|
+
setIsFocused = _ref5$setIsFocused === void 0 ? function () {} : _ref5$setIsFocused,
|
|
4712
|
+
_ref5$setValue = _ref5.setValue,
|
|
4713
|
+
setValue = _ref5$setValue === void 0 ? function () {} : _ref5$setValue,
|
|
4714
|
+
_ref5$styles = _ref5.styles,
|
|
4715
|
+
styles = _ref5$styles === void 0 ? {
|
|
4707
4716
|
text: {},
|
|
4708
4717
|
icon: {},
|
|
4709
4718
|
label: {},
|
|
4710
4719
|
dropDown: {},
|
|
4711
4720
|
helperText: {},
|
|
4712
4721
|
box: {}
|
|
4713
|
-
} :
|
|
4714
|
-
props = _objectWithoutPropertiesLoose(
|
|
4722
|
+
} : _ref5$styles,
|
|
4723
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$2);
|
|
4715
4724
|
var _useTheme = appStudio.useTheme(),
|
|
4716
4725
|
getColor = _useTheme.getColor;
|
|
4717
4726
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -4992,7 +5001,7 @@ var usePasswordState = function usePasswordState(props) {
|
|
|
4992
5001
|
};
|
|
4993
5002
|
|
|
4994
5003
|
var _excluded$y = ["visibleIcon", "hiddenIcon"],
|
|
4995
|
-
_excluded2$
|
|
5004
|
+
_excluded2$4 = ["isVisible", "setIsVisible"];
|
|
4996
5005
|
var PasswordComponent = function PasswordComponent(_ref) {
|
|
4997
5006
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
4998
5007
|
visibleIcon = _ref$visibleIcon === void 0 ? React__default.createElement(OpenEyeSvg, {
|
|
@@ -5006,7 +5015,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
|
|
|
5006
5015
|
var _usePasswordState = usePasswordState(props),
|
|
5007
5016
|
isVisible = _usePasswordState.isVisible,
|
|
5008
5017
|
setIsVisible = _usePasswordState.setIsVisible,
|
|
5009
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
5018
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$4);
|
|
5010
5019
|
return React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
5011
5020
|
type: isVisible ? 'text' : 'password',
|
|
5012
5021
|
isClearable: false,
|
|
@@ -5243,7 +5252,7 @@ var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
|
5243
5252
|
var FormikTextField = TextFieldComponent$1;
|
|
5244
5253
|
|
|
5245
5254
|
var _excluded$C = ["visibleIcon", "hiddenIcon"],
|
|
5246
|
-
_excluded2$
|
|
5255
|
+
_excluded2$5 = ["isVisible", "setIsVisible"];
|
|
5247
5256
|
var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
5248
5257
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
5249
5258
|
visibleIcon = _ref$visibleIcon === void 0 ? React__default.createElement(OpenEyeSvg, {
|
|
@@ -5258,7 +5267,7 @@ var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
|
5258
5267
|
var _usePasswordState = usePasswordState(formProps),
|
|
5259
5268
|
isVisible = _usePasswordState.isVisible,
|
|
5260
5269
|
setIsVisible = _usePasswordState.setIsVisible,
|
|
5261
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
5270
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$5);
|
|
5262
5271
|
return React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
5263
5272
|
type: isVisible ? 'text' : 'password',
|
|
5264
5273
|
isClearable: false,
|
|
@@ -5444,7 +5453,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5444
5453
|
// Starts the JSX returned by the component representing the combobox.
|
|
5445
5454
|
return React__default.createElement(Horizontal, Object.assign({
|
|
5446
5455
|
role: "combobox",
|
|
5447
|
-
|
|
5456
|
+
flexWrap: "nowrap",
|
|
5448
5457
|
gap: 15,
|
|
5449
5458
|
alignItems: "center",
|
|
5450
5459
|
width: "100%"
|
|
@@ -5463,7 +5472,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5463
5472
|
borderRadius: "4px",
|
|
5464
5473
|
justifyContent: "space-between",
|
|
5465
5474
|
minWidth: 300,
|
|
5466
|
-
|
|
5475
|
+
flexWrap: "nowrap"
|
|
5467
5476
|
}, styles == null ? void 0 : styles.container), React__default.createElement(Horizontal, Object.assign({
|
|
5468
5477
|
gap: 15,
|
|
5469
5478
|
alignItems: "center",
|
|
@@ -5736,7 +5745,7 @@ var MessageView = function MessageView(_ref) {
|
|
|
5736
5745
|
gap: 16,
|
|
5737
5746
|
width: 400,
|
|
5738
5747
|
// safe={true}
|
|
5739
|
-
|
|
5748
|
+
flexWrap: "nowrap",
|
|
5740
5749
|
position: 'relative',
|
|
5741
5750
|
alignItems: "center",
|
|
5742
5751
|
padding: "14px 24px 14px 14px",
|
|
@@ -5918,8 +5927,8 @@ var HeaderIconSizes = {
|
|
|
5918
5927
|
};
|
|
5919
5928
|
|
|
5920
5929
|
var _excluded$H = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
5921
|
-
_excluded2$
|
|
5922
|
-
_excluded3$
|
|
5930
|
+
_excluded2$6 = ["children", "shadow", "isFullScreen", "shape"],
|
|
5931
|
+
_excluded3$3 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
5923
5932
|
_excluded4$2 = ["children"],
|
|
5924
5933
|
_excluded5 = ["children"];
|
|
5925
5934
|
var ModalOverlay = function ModalOverlay(_ref) {
|
|
@@ -5954,7 +5963,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
5954
5963
|
width: "100vw",
|
|
5955
5964
|
height: "100vh",
|
|
5956
5965
|
display: "flex",
|
|
5957
|
-
backgroundColor: "blackAlpha.500",
|
|
5966
|
+
backgroundColor: "color.blackAlpha.500",
|
|
5958
5967
|
backdropFilter: blur ? "blur(" + blur + "px)" : undefined,
|
|
5959
5968
|
onClick: handleClick
|
|
5960
5969
|
}, OverlayAlignments[position], props), children));
|
|
@@ -5966,7 +5975,7 @@ var ModalContainer = function ModalContainer(_ref2) {
|
|
|
5966
5975
|
isFullScreen = _ref2$isFullScreen === void 0 ? false : _ref2$isFullScreen,
|
|
5967
5976
|
_ref2$shape = _ref2.shape,
|
|
5968
5977
|
shape = _ref2$shape === void 0 ? 'rounded' : _ref2$shape,
|
|
5969
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
5978
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$6);
|
|
5970
5979
|
var defaultShadow = typeof document !== undefined ? {
|
|
5971
5980
|
boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.3)'
|
|
5972
5981
|
} : {
|
|
@@ -5998,7 +6007,7 @@ var ModalHeader = function ModalHeader(_ref3) {
|
|
|
5998
6007
|
iconSize = _ref3$iconSize === void 0 ? 'md' : _ref3$iconSize,
|
|
5999
6008
|
_ref3$buttonPosition = _ref3.buttonPosition,
|
|
6000
6009
|
buttonPosition = _ref3$buttonPosition === void 0 ? 'right' : _ref3$buttonPosition,
|
|
6001
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
6010
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$3);
|
|
6002
6011
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
6003
6012
|
var buttonIcon = React__default.createElement(Button, {
|
|
6004
6013
|
onClick: onClose,
|