@app-studio/web 0.8.35 → 0.8.37
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/Layout/Center/Center.d.ts +2 -3
- package/dist/components/Layout/Horizontal/Horizontal.d.ts +2 -3
- package/dist/components/Layout/Vertical/Vertical.d.ts +2 -3
- package/dist/web.cjs.development.js +88 -78
- 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 +86 -79
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +88 -78
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
var Text = TextComponent;
|
|
159
159
|
|
|
160
160
|
var _excluded$1 = ["justifyContent", "isReversed"];
|
|
161
|
-
var
|
|
161
|
+
var VerticalBase = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
162
162
|
var {
|
|
163
163
|
// Sets a default alignment for content within the Vertical container to 'flex-start'
|
|
164
164
|
justifyContent = 'flex-start',
|
|
@@ -174,10 +174,11 @@
|
|
|
174
174
|
ref: ref
|
|
175
175
|
}));
|
|
176
176
|
});
|
|
177
|
-
|
|
177
|
+
VerticalBase.displayName = 'Vertical';
|
|
178
|
+
var Vertical = VerticalBase;
|
|
178
179
|
|
|
179
180
|
var _excluded$2 = ["justifyContent", "isReversed"];
|
|
180
|
-
var
|
|
181
|
+
var HorizontalBase = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
181
182
|
var {
|
|
182
183
|
// Sets a default alignment for content within the Horizontal container to 'flex-start'
|
|
183
184
|
justifyContent = 'flex-start',
|
|
@@ -193,18 +194,24 @@
|
|
|
193
194
|
ref: ref
|
|
194
195
|
}));
|
|
195
196
|
});
|
|
196
|
-
|
|
197
|
+
HorizontalBase.displayName = 'Horizontal';
|
|
198
|
+
var Horizontal = HorizontalBase;
|
|
197
199
|
|
|
198
|
-
var
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
200
|
+
var _excluded$3 = ["justifyContent", "isReversed"];
|
|
201
|
+
var CenterBase = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
202
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
203
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
204
|
+
display: "flex",
|
|
205
|
+
justifyContent: "center",
|
|
206
|
+
alignItems: "center"
|
|
207
|
+
}, props, {
|
|
208
|
+
ref: ref
|
|
209
|
+
}));
|
|
210
|
+
});
|
|
211
|
+
CenterBase.displayName = 'Center';
|
|
212
|
+
var Center = CenterBase;
|
|
206
213
|
|
|
207
|
-
var _excluded$
|
|
214
|
+
var _excluded$4 = ["size", "color", "transform", "orientation", "children"],
|
|
208
215
|
_excluded2 = ["size", "color", "filled", "strokeWidth"],
|
|
209
216
|
_excluded3 = ["size", "color", "filled", "strokeWidth"],
|
|
210
217
|
_excluded4 = ["size", "color", "filled", "strokeWidth"],
|
|
@@ -267,7 +274,7 @@
|
|
|
267
274
|
orientation,
|
|
268
275
|
children
|
|
269
276
|
} = _ref,
|
|
270
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
277
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
271
278
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
272
279
|
size: size,
|
|
273
280
|
lineHeight: size,
|
|
@@ -1721,7 +1728,7 @@
|
|
|
1721
1728
|
// Exporting the AlertComponent as 'Alert' for use in other parts of the application.
|
|
1722
1729
|
var Alert = AlertComponent;
|
|
1723
1730
|
|
|
1724
|
-
var _excluded$
|
|
1731
|
+
var _excluded$5 = ["ratio", "children"];
|
|
1725
1732
|
// Declaration of a functional component named AspectRatioView.
|
|
1726
1733
|
var AspectRatioView = _ref => {
|
|
1727
1734
|
var {
|
|
@@ -1731,7 +1738,7 @@
|
|
|
1731
1738
|
children
|
|
1732
1739
|
// Spread the rest of the props to inherit additional properties.
|
|
1733
1740
|
} = _ref,
|
|
1734
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1741
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
1735
1742
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
1736
1743
|
width: '100%',
|
|
1737
1744
|
position: "relative",
|
|
@@ -1747,14 +1754,14 @@
|
|
|
1747
1754
|
}, children));
|
|
1748
1755
|
};
|
|
1749
1756
|
|
|
1750
|
-
var _excluded$
|
|
1757
|
+
var _excluded$6 = ["ratio", "children"];
|
|
1751
1758
|
// Declaration of the AspectRatioComponent functional component with destructured props.
|
|
1752
1759
|
var AspectRatioComponent = _ref => {
|
|
1753
1760
|
var {
|
|
1754
1761
|
ratio,
|
|
1755
1762
|
children
|
|
1756
1763
|
} = _ref,
|
|
1757
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1764
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
1758
1765
|
// Beginning of the return statement in the functional component.
|
|
1759
1766
|
return /*#__PURE__*/React__default.createElement(AspectRatioView, Object.assign({
|
|
1760
1767
|
ratio: ratio
|
|
@@ -2024,7 +2031,7 @@
|
|
|
2024
2031
|
'6xl': 64
|
|
2025
2032
|
};
|
|
2026
2033
|
|
|
2027
|
-
var _excluded$
|
|
2034
|
+
var _excluded$7 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
|
|
2028
2035
|
// Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
|
|
2029
2036
|
var LinkView = _ref => {
|
|
2030
2037
|
var {
|
|
@@ -2047,7 +2054,7 @@
|
|
|
2047
2054
|
// Setter function for the hover state, noop function provided by default.
|
|
2048
2055
|
setIsHovered = () => {}
|
|
2049
2056
|
} = _ref,
|
|
2050
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2057
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
2051
2058
|
// Function to handle mouse enter/leave events to toggle hover state.
|
|
2052
2059
|
var handleHover = () => {
|
|
2053
2060
|
if (underline === 'hover') setIsHovered(true);
|
|
@@ -2204,7 +2211,7 @@
|
|
|
2204
2211
|
slow: 300
|
|
2205
2212
|
};
|
|
2206
2213
|
|
|
2207
|
-
var _excluded$
|
|
2214
|
+
var _excluded$8 = ["size", "speed", "color"],
|
|
2208
2215
|
_excluded2$1 = ["size", "speed", "color"],
|
|
2209
2216
|
_excluded3$1 = ["size", "speed", "color"],
|
|
2210
2217
|
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -2214,7 +2221,7 @@
|
|
|
2214
2221
|
speed = 'normal',
|
|
2215
2222
|
color = 'theme.loading'
|
|
2216
2223
|
} = _ref,
|
|
2217
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2224
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
2218
2225
|
var theme = appStudio.useTheme();
|
|
2219
2226
|
var colorStyle = theme.getColor(color);
|
|
2220
2227
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -2367,7 +2374,7 @@
|
|
|
2367
2374
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
2368
2375
|
var Loader = LoaderComponent;
|
|
2369
2376
|
|
|
2370
|
-
var _excluded$
|
|
2377
|
+
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered"];
|
|
2371
2378
|
var contrast = /*#__PURE__*/require('contrast');
|
|
2372
2379
|
var ButtonView = _ref => {
|
|
2373
2380
|
var _props$onClick;
|
|
@@ -2403,7 +2410,7 @@
|
|
|
2403
2410
|
setIsHovered = () => {}
|
|
2404
2411
|
// Defines CSS properties for 'outline' variant of the button with conditional styles based on reverse state.
|
|
2405
2412
|
} = _ref,
|
|
2406
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2413
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
2407
2414
|
var {
|
|
2408
2415
|
getColor
|
|
2409
2416
|
} = appStudio.useTheme();
|
|
@@ -2518,14 +2525,14 @@
|
|
|
2518
2525
|
};
|
|
2519
2526
|
var Button = ButtonComponent;
|
|
2520
2527
|
|
|
2521
|
-
var _excluded$
|
|
2528
|
+
var _excluded$a = ["src", "color"],
|
|
2522
2529
|
_excluded2$2 = ["path"];
|
|
2523
2530
|
var FileSVG = _ref => {
|
|
2524
2531
|
var {
|
|
2525
2532
|
src,
|
|
2526
2533
|
color
|
|
2527
2534
|
} = _ref,
|
|
2528
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2535
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2529
2536
|
var {
|
|
2530
2537
|
getColor
|
|
2531
2538
|
} = appStudio.useTheme();
|
|
@@ -2594,7 +2601,7 @@
|
|
|
2594
2601
|
};
|
|
2595
2602
|
};
|
|
2596
2603
|
|
|
2597
|
-
var _excluded$
|
|
2604
|
+
var _excluded$b = ["children", "styles"];
|
|
2598
2605
|
var HelperText = _ref => {
|
|
2599
2606
|
var {
|
|
2600
2607
|
children,
|
|
@@ -2602,7 +2609,7 @@
|
|
|
2602
2609
|
helperText: {}
|
|
2603
2610
|
}
|
|
2604
2611
|
} = _ref,
|
|
2605
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2612
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
2606
2613
|
return /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
2607
2614
|
size: "xs",
|
|
2608
2615
|
marginVertical: 0,
|
|
@@ -2611,7 +2618,7 @@
|
|
|
2611
2618
|
}, styles['helperText'], props), children);
|
|
2612
2619
|
};
|
|
2613
2620
|
|
|
2614
|
-
var _excluded$
|
|
2621
|
+
var _excluded$c = ["children", "helperText", "error", "styles"];
|
|
2615
2622
|
var FieldContainer = _ref => {
|
|
2616
2623
|
var {
|
|
2617
2624
|
children,
|
|
@@ -2619,7 +2626,7 @@
|
|
|
2619
2626
|
error = false,
|
|
2620
2627
|
styles
|
|
2621
2628
|
} = _ref,
|
|
2622
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2629
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
2623
2630
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
2624
2631
|
gap: 5,
|
|
2625
2632
|
position: "relative"
|
|
@@ -2678,7 +2685,7 @@
|
|
|
2678
2685
|
paddingRight: 36
|
|
2679
2686
|
};
|
|
2680
2687
|
|
|
2681
|
-
var _excluded$
|
|
2688
|
+
var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
2682
2689
|
var FieldContent = _ref => {
|
|
2683
2690
|
var {
|
|
2684
2691
|
shadow,
|
|
@@ -2697,7 +2704,7 @@
|
|
|
2697
2704
|
pickerBox: {}
|
|
2698
2705
|
}
|
|
2699
2706
|
} = _ref,
|
|
2700
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2707
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
2701
2708
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
2702
2709
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
2703
2710
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
@@ -2718,12 +2725,12 @@
|
|
|
2718
2725
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
2719
2726
|
};
|
|
2720
2727
|
|
|
2721
|
-
var _excluded$
|
|
2728
|
+
var _excluded$e = ["children"];
|
|
2722
2729
|
var FieldIcons = _ref => {
|
|
2723
2730
|
var {
|
|
2724
2731
|
children
|
|
2725
2732
|
} = _ref,
|
|
2726
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2733
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
2727
2734
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
2728
2735
|
gap: 10,
|
|
2729
2736
|
right: 16,
|
|
@@ -2775,7 +2782,7 @@
|
|
|
2775
2782
|
}
|
|
2776
2783
|
};
|
|
2777
2784
|
|
|
2778
|
-
var _excluded$
|
|
2785
|
+
var _excluded$f = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
2779
2786
|
var LabelView = _ref => {
|
|
2780
2787
|
var {
|
|
2781
2788
|
children,
|
|
@@ -2791,7 +2798,7 @@
|
|
|
2791
2798
|
size = 'sm'
|
|
2792
2799
|
// The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
|
|
2793
2800
|
} = _ref,
|
|
2794
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2801
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
2795
2802
|
// The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
|
|
2796
2803
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
2797
2804
|
// fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
|
|
@@ -2823,7 +2830,7 @@
|
|
|
2823
2830
|
var Label = LabelComponent;
|
|
2824
2831
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
2825
2832
|
|
|
2826
|
-
var _excluded$
|
|
2833
|
+
var _excluded$g = ["children", "size", "error", "color", "styles", "helperText"];
|
|
2827
2834
|
var FieldLabel = _ref => {
|
|
2828
2835
|
var {
|
|
2829
2836
|
children,
|
|
@@ -2834,7 +2841,7 @@
|
|
|
2834
2841
|
label: {}
|
|
2835
2842
|
}
|
|
2836
2843
|
} = _ref,
|
|
2837
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2844
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
2838
2845
|
return /*#__PURE__*/React__default.createElement(Label, Object.assign({
|
|
2839
2846
|
top: 6,
|
|
2840
2847
|
zIndex: 1000,
|
|
@@ -2847,12 +2854,12 @@
|
|
|
2847
2854
|
}, styles['label'], props), children);
|
|
2848
2855
|
};
|
|
2849
2856
|
|
|
2850
|
-
var _excluded$
|
|
2857
|
+
var _excluded$h = ["children"];
|
|
2851
2858
|
var FieldWrapper = _ref => {
|
|
2852
2859
|
var {
|
|
2853
2860
|
children
|
|
2854
2861
|
} = _ref,
|
|
2855
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2862
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2856
2863
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
2857
2864
|
width: "100%"
|
|
2858
2865
|
}, props), children);
|
|
@@ -2868,7 +2875,7 @@
|
|
|
2868
2875
|
xl: 16
|
|
2869
2876
|
};
|
|
2870
2877
|
|
|
2871
|
-
var _excluded$
|
|
2878
|
+
var _excluded$i = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
2872
2879
|
_excluded2$3 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
2873
2880
|
_excluded3$2 = ["option", "size", "removeOption"],
|
|
2874
2881
|
_excluded4$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "colorScheme", "shape", "variant", "styles", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
|
|
@@ -2882,7 +2889,7 @@
|
|
|
2882
2889
|
callback = () => {},
|
|
2883
2890
|
style
|
|
2884
2891
|
} = _ref,
|
|
2885
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2892
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2886
2893
|
// Handles the click event on an option by invoking the callback with the selected option's value.
|
|
2887
2894
|
var handleOptionClick = option => callback(option);
|
|
2888
2895
|
// Toggles the hover state on the item.
|
|
@@ -3344,7 +3351,7 @@
|
|
|
3344
3351
|
}
|
|
3345
3352
|
};
|
|
3346
3353
|
|
|
3347
|
-
var _excluded$
|
|
3354
|
+
var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "styles"];
|
|
3348
3355
|
var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3349
3356
|
type: "checkbox"
|
|
3350
3357
|
}, props));
|
|
@@ -3374,7 +3381,7 @@
|
|
|
3374
3381
|
label: {}
|
|
3375
3382
|
}
|
|
3376
3383
|
} = _ref,
|
|
3377
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3384
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
3378
3385
|
var handleToggle = event => {
|
|
3379
3386
|
if (!isReadOnly) {
|
|
3380
3387
|
setValue(!value);
|
|
@@ -3464,7 +3471,7 @@
|
|
|
3464
3471
|
// Export of the useTextAreaState hook for external usage.
|
|
3465
3472
|
};
|
|
3466
3473
|
|
|
3467
|
-
var _excluded$
|
|
3474
|
+
var _excluded$k = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "styles"];
|
|
3468
3475
|
var TextAreaView = _ref => {
|
|
3469
3476
|
var {
|
|
3470
3477
|
id,
|
|
@@ -3504,7 +3511,7 @@
|
|
|
3504
3511
|
field: {}
|
|
3505
3512
|
}
|
|
3506
3513
|
} = _ref,
|
|
3507
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3514
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
3508
3515
|
var isWithLabel = !!(isFocused && label);
|
|
3509
3516
|
var fieldStyles = Object.assign({
|
|
3510
3517
|
margin: 0,
|
|
@@ -3634,7 +3641,7 @@
|
|
|
3634
3641
|
};
|
|
3635
3642
|
};
|
|
3636
3643
|
|
|
3637
|
-
var _excluded$
|
|
3644
|
+
var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
|
|
3638
3645
|
var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3639
3646
|
type: "text"
|
|
3640
3647
|
}, props));
|
|
@@ -3677,7 +3684,7 @@
|
|
|
3677
3684
|
onFocus,
|
|
3678
3685
|
onBlur = () => {}
|
|
3679
3686
|
} = _ref,
|
|
3680
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3687
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
3681
3688
|
var {
|
|
3682
3689
|
getColor
|
|
3683
3690
|
} = appStudio.useTheme();
|
|
@@ -3858,7 +3865,7 @@
|
|
|
3858
3865
|
'6xl': 60
|
|
3859
3866
|
};
|
|
3860
3867
|
|
|
3861
|
-
var _excluded$
|
|
3868
|
+
var _excluded$m = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles", "infoText", "helperText"];
|
|
3862
3869
|
var CheckboxView = _ref => {
|
|
3863
3870
|
var {
|
|
3864
3871
|
id,
|
|
@@ -3886,7 +3893,7 @@
|
|
|
3886
3893
|
},
|
|
3887
3894
|
infoText
|
|
3888
3895
|
} = _ref,
|
|
3889
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3896
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
3890
3897
|
var handleHover = () => setIsHovered(!isHovered);
|
|
3891
3898
|
var handleChange = () => {
|
|
3892
3899
|
if (!isReadOnly && !isDisabled) {
|
|
@@ -5445,11 +5452,11 @@
|
|
|
5445
5452
|
xl: 16
|
|
5446
5453
|
};
|
|
5447
5454
|
|
|
5448
|
-
var _excluded$
|
|
5455
|
+
var _excluded$n = ["size"],
|
|
5449
5456
|
_excluded2$4 = ["size"],
|
|
5450
5457
|
_excluded3$3 = ["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"];
|
|
5451
5458
|
var CountryList = _ref => {
|
|
5452
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5459
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
5453
5460
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
5454
5461
|
as: "ul"
|
|
5455
5462
|
}, props));
|
|
@@ -5688,7 +5695,7 @@
|
|
|
5688
5695
|
};
|
|
5689
5696
|
};
|
|
5690
5697
|
|
|
5691
|
-
var _excluded$
|
|
5698
|
+
var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
5692
5699
|
var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
5693
5700
|
type: "date"
|
|
5694
5701
|
}, props));
|
|
@@ -5722,7 +5729,7 @@
|
|
|
5722
5729
|
onChange,
|
|
5723
5730
|
onChangeText
|
|
5724
5731
|
} = _ref,
|
|
5725
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5732
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
5726
5733
|
var isWithLabel = !!(isFocused && label);
|
|
5727
5734
|
var handleHover = () => setIsHovered(!isHovered);
|
|
5728
5735
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -5810,7 +5817,7 @@
|
|
|
5810
5817
|
}, props, textFieldStates);
|
|
5811
5818
|
};
|
|
5812
5819
|
|
|
5813
|
-
var _excluded$
|
|
5820
|
+
var _excluded$p = ["visibleIcon", "hiddenIcon"],
|
|
5814
5821
|
_excluded2$5 = ["isVisible", "setIsVisible"];
|
|
5815
5822
|
var PasswordComponent = _ref => {
|
|
5816
5823
|
var {
|
|
@@ -5821,7 +5828,7 @@
|
|
|
5821
5828
|
size: 14
|
|
5822
5829
|
})
|
|
5823
5830
|
} = _ref,
|
|
5824
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5831
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
5825
5832
|
var _usePasswordState = usePasswordState(props),
|
|
5826
5833
|
{
|
|
5827
5834
|
isVisible,
|
|
@@ -5875,7 +5882,7 @@
|
|
|
5875
5882
|
};
|
|
5876
5883
|
};
|
|
5877
5884
|
|
|
5878
|
-
var _excluded$
|
|
5885
|
+
var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "styles", "isDropdownVisible", "setIsDropdownVisible"];
|
|
5879
5886
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
5880
5887
|
var ComboBoxView = _ref => {
|
|
5881
5888
|
var {
|
|
@@ -5900,7 +5907,7 @@
|
|
|
5900
5907
|
setIsDropdownVisible
|
|
5901
5908
|
// Collects all further props not destructured explicitly.
|
|
5902
5909
|
} = _ref,
|
|
5903
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5910
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
5904
5911
|
// Sets up an effect to handle clicking outside the dropdown to close it.
|
|
5905
5912
|
React.useEffect(() => {
|
|
5906
5913
|
var handleClickOutside = event => {
|
|
@@ -6011,7 +6018,7 @@
|
|
|
6011
6018
|
}))))))))))));
|
|
6012
6019
|
};
|
|
6013
6020
|
|
|
6014
|
-
var _excluded$
|
|
6021
|
+
var _excluded$r = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
6015
6022
|
// Defines the ComboBoxComponent functional component with ComboBoxProps
|
|
6016
6023
|
var ComboBoxComponent = _ref => {
|
|
6017
6024
|
var {
|
|
@@ -6027,7 +6034,7 @@
|
|
|
6027
6034
|
searchPlaceholder
|
|
6028
6035
|
// Destructures the rest of the props not explicitly defined
|
|
6029
6036
|
} = _ref,
|
|
6030
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6037
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
6031
6038
|
// Initializes ComboBox state using custom hook with items and placeholders
|
|
6032
6039
|
var state = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
6033
6040
|
return (
|
|
@@ -6043,7 +6050,7 @@
|
|
|
6043
6050
|
// Exports the ComboBoxComponent as ComboBox
|
|
6044
6051
|
var ComboBox = ComboBoxComponent;
|
|
6045
6052
|
|
|
6046
|
-
var _excluded$
|
|
6053
|
+
var _excluded$s = ["children", "autoFocus", "initFocus", "onChange"];
|
|
6047
6054
|
var FocusContext = /*#__PURE__*/React.createContext({
|
|
6048
6055
|
active: false,
|
|
6049
6056
|
focusNextInput: () => {},
|
|
@@ -6059,7 +6066,7 @@
|
|
|
6059
6066
|
initFocus,
|
|
6060
6067
|
onChange = () => {}
|
|
6061
6068
|
} = _ref,
|
|
6062
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6069
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
6063
6070
|
var formik$1 = formik.useFormikContext();
|
|
6064
6071
|
React.useEffect(() => {
|
|
6065
6072
|
onChange(formik$1.values);
|
|
@@ -6107,7 +6114,7 @@
|
|
|
6107
6114
|
}, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
|
|
6108
6115
|
};
|
|
6109
6116
|
|
|
6110
|
-
var _excluded$
|
|
6117
|
+
var _excluded$t = ["name", "type"];
|
|
6111
6118
|
var getInputTypeProps = type => {
|
|
6112
6119
|
switch (type) {
|
|
6113
6120
|
case 'email':
|
|
@@ -6146,7 +6153,7 @@
|
|
|
6146
6153
|
name,
|
|
6147
6154
|
type
|
|
6148
6155
|
} = _ref,
|
|
6149
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6156
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
6150
6157
|
var focus = useFormFocus();
|
|
6151
6158
|
var {
|
|
6152
6159
|
touched,
|
|
@@ -6190,13 +6197,13 @@
|
|
|
6190
6197
|
} : {});
|
|
6191
6198
|
};
|
|
6192
6199
|
|
|
6193
|
-
var _excluded$
|
|
6200
|
+
var _excluded$u = ["value"];
|
|
6194
6201
|
var CheckboxComponent$1 = props => {
|
|
6195
6202
|
var _useFormikInput = useFormikInput(props),
|
|
6196
6203
|
{
|
|
6197
6204
|
value
|
|
6198
6205
|
} = _useFormikInput,
|
|
6199
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
6206
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$u);
|
|
6200
6207
|
formProps.isChecked = value;
|
|
6201
6208
|
var checkboxStates = useCheckboxState(props);
|
|
6202
6209
|
return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -6254,11 +6261,11 @@
|
|
|
6254
6261
|
*/
|
|
6255
6262
|
var FormikTextArea = TextAreaComponent$1;
|
|
6256
6263
|
|
|
6257
|
-
var _excluded$
|
|
6264
|
+
var _excluded$v = ["value"];
|
|
6258
6265
|
var TextFieldComponent$1 = props => {
|
|
6259
6266
|
var formProps = useFormikInput(props);
|
|
6260
6267
|
var _useTextFieldState = useTextFieldState(props),
|
|
6261
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
6268
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$v);
|
|
6262
6269
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
6263
6270
|
};
|
|
6264
6271
|
/**
|
|
@@ -6266,7 +6273,7 @@
|
|
|
6266
6273
|
*/
|
|
6267
6274
|
var FormikTextField = TextFieldComponent$1;
|
|
6268
6275
|
|
|
6269
|
-
var _excluded$
|
|
6276
|
+
var _excluded$w = ["visibleIcon", "hiddenIcon"],
|
|
6270
6277
|
_excluded2$6 = ["isVisible", "setIsVisible"];
|
|
6271
6278
|
var PasswordComponent$1 = _ref => {
|
|
6272
6279
|
var {
|
|
@@ -6277,7 +6284,7 @@
|
|
|
6277
6284
|
size: 14
|
|
6278
6285
|
})
|
|
6279
6286
|
} = _ref,
|
|
6280
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6287
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
6281
6288
|
var formProps = useFormikInput(props);
|
|
6282
6289
|
var _usePasswordState = usePasswordState(formProps),
|
|
6283
6290
|
{
|
|
@@ -6302,14 +6309,14 @@
|
|
|
6302
6309
|
*/
|
|
6303
6310
|
var FormikPassword = PasswordComponent$1;
|
|
6304
6311
|
|
|
6305
|
-
var _excluded$
|
|
6312
|
+
var _excluded$x = ["items", "placeholder", "searchPlaceholder"];
|
|
6306
6313
|
var ComboBoxComponent$1 = _ref => {
|
|
6307
6314
|
var {
|
|
6308
6315
|
items,
|
|
6309
6316
|
placeholder,
|
|
6310
6317
|
searchPlaceholder
|
|
6311
6318
|
} = _ref,
|
|
6312
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6319
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
6313
6320
|
var formProps = useFormikInput(props);
|
|
6314
6321
|
var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
6315
6322
|
// Ensure the onChange function from formProps is being called when an item is selected
|
|
@@ -6678,7 +6685,7 @@
|
|
|
6678
6685
|
xl: 28
|
|
6679
6686
|
};
|
|
6680
6687
|
|
|
6681
|
-
var _excluded$
|
|
6688
|
+
var _excluded$y = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
6682
6689
|
_excluded2$7 = ["children", "shadow", "isFullScreen", "shape"],
|
|
6683
6690
|
_excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
6684
6691
|
_excluded4$3 = ["children"],
|
|
@@ -6692,7 +6699,7 @@
|
|
|
6692
6699
|
onClose = () => {},
|
|
6693
6700
|
position = 'center'
|
|
6694
6701
|
} = _ref,
|
|
6695
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6702
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
6696
6703
|
var handleClick = () => {
|
|
6697
6704
|
if (!isClosePrevented) onClose();
|
|
6698
6705
|
};
|
|
@@ -7108,7 +7115,7 @@
|
|
|
7108
7115
|
pillShaped: 24
|
|
7109
7116
|
};
|
|
7110
7117
|
|
|
7111
|
-
var _excluded$
|
|
7118
|
+
var _excluded$z = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
7112
7119
|
var ToggleView = _ref => {
|
|
7113
7120
|
var {
|
|
7114
7121
|
children,
|
|
@@ -7122,7 +7129,7 @@
|
|
|
7122
7129
|
setIsToggled,
|
|
7123
7130
|
onToggle
|
|
7124
7131
|
} = _ref,
|
|
7125
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7132
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
7126
7133
|
var toggleColor = !isDisabled ? colorScheme : 'theme.disabled';
|
|
7127
7134
|
var isActive = !!(isToggle || isHovered);
|
|
7128
7135
|
var ToggleVariants = {
|
|
@@ -7164,7 +7171,7 @@
|
|
|
7164
7171
|
}, ToggleVariants[variant], props), children);
|
|
7165
7172
|
};
|
|
7166
7173
|
|
|
7167
|
-
var _excluded$
|
|
7174
|
+
var _excluded$A = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
7168
7175
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
7169
7176
|
var ToggleComponent = _ref => {
|
|
7170
7177
|
var {
|
|
@@ -7177,7 +7184,7 @@
|
|
|
7177
7184
|
isToggled = false,
|
|
7178
7185
|
onToggle
|
|
7179
7186
|
} = _ref,
|
|
7180
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7187
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
7181
7188
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
7182
7189
|
var {
|
|
7183
7190
|
isHovered,
|
|
@@ -7306,6 +7313,7 @@
|
|
|
7306
7313
|
exports.CalendarIcon = CalendarIcon;
|
|
7307
7314
|
exports.CameraIcon = CameraIcon;
|
|
7308
7315
|
exports.Center = Center;
|
|
7316
|
+
exports.CenterBase = CenterBase;
|
|
7309
7317
|
exports.Checkbox = Checkbox;
|
|
7310
7318
|
exports.ChevronIcon = ChevronIcon;
|
|
7311
7319
|
exports.ClockIcon = ClockIcon;
|
|
@@ -7337,6 +7345,7 @@
|
|
|
7337
7345
|
exports.HeartIcon = HeartIcon;
|
|
7338
7346
|
exports.HomeIcon = HomeIcon;
|
|
7339
7347
|
exports.Horizontal = Horizontal;
|
|
7348
|
+
exports.HorizontalBase = HorizontalBase;
|
|
7340
7349
|
exports.Icon = Icon;
|
|
7341
7350
|
exports.InfoIcon = InfoIcon;
|
|
7342
7351
|
exports.Inline = Inline;
|
|
@@ -7387,6 +7396,7 @@
|
|
|
7387
7396
|
exports.UnlockIcon = UnlockIcon;
|
|
7388
7397
|
exports.UploadIcon = UploadIcon;
|
|
7389
7398
|
exports.Vertical = Vertical;
|
|
7399
|
+
exports.VerticalBase = VerticalBase;
|
|
7390
7400
|
exports.View = View;
|
|
7391
7401
|
exports.WarningIcon = WarningIcon;
|
|
7392
7402
|
exports.WifiIcon = WifiIcon;
|