@app-studio/web 0.8.76 → 0.8.78
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/README.md +171 -0
- package/dist/components/Chart/Chart/ChartColors.d.ts +20 -0
- package/dist/components/Form/Label/Label/Label.type.d.ts +1 -1
- package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +4 -2
- package/dist/components/Input/Input.type.d.ts +2 -1
- package/dist/components/OTPInput/OTPInput/OTPInput.type.d.ts +1 -2
- package/dist/components/Separator/Separator.d.ts +1 -0
- package/dist/web.cjs.development.js +78 -168
- 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 +79 -170
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +82 -171
- 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 +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('react-router-dom'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.parse-int.js'), require('core-js/modules/es.regexp.constructor.js'), require('core-js/modules/es.regexp.exec.js'), require('formik'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'react-router-dom', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.parse-int.js', 'core-js/modules/es.regexp.constructor.js', 'core-js/modules/es.regexp.exec.js', 'formik', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', '
|
|
4
|
-
(global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, global.reactRouterDom, null, null, null, null, global.format, null, null, null, global.formik, null, null, null, global.zustand
|
|
5
|
-
}(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, reactRouterDom, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_parseInt_js, es_regexp_constructor_js, es_regexp_exec_js, formik, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.object.assign.js'), require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.regexp.to-string.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('react-router-dom'), require('core-js/modules/es.promise.js'), require('core-js/modules/es.array.reduce.js'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('core-js/modules/es.parse-int.js'), require('core-js/modules/es.regexp.constructor.js'), require('core-js/modules/es.regexp.exec.js'), require('formik'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('core-js/modules/es.string.ends-with.js'), require('core-js/modules/es.string.match.js'), require('core-js/modules/es.string.search.js'), require('core-js/modules/es.array.flat-map.js'), require('core-js/modules/es.array.unscopables.flat-map.js')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.object.assign.js', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.regexp.to-string.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'react-router-dom', 'core-js/modules/es.promise.js', 'core-js/modules/es.array.reduce.js', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'core-js/modules/es.parse-int.js', 'core-js/modules/es.regexp.constructor.js', 'core-js/modules/es.regexp.exec.js', 'formik', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'core-js/modules/es.string.ends-with.js', 'core-js/modules/es.string.match.js', 'core-js/modules/es.string.search.js', 'core-js/modules/es.array.flat-map.js', 'core-js/modules/es.array.unscopables.flat-map.js'], factory) :
|
|
4
|
+
(global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, null, null, null, null, global.appStudio, null, null, global.reactRouterDom, null, null, null, null, global.format, null, null, null, global.formik, null, null, null, global.zustand));
|
|
5
|
+
}(this, (function (exports, es_object_assign_js, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_regexp_toString_js, appStudio, es_symbol_description_js, es_parseFloat_js, reactRouterDom, es_promise_js, es_array_reduce_js, es_number_toFixed_js, es_string_startsWith_js, format, es_parseInt_js, es_regexp_constructor_js, es_regexp_exec_js, formik, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var React__default = 'default' in React ? React['default'] : React;
|
|
8
8
|
format = format && Object.prototype.hasOwnProperty.call(format, 'default') ? format['default'] : format;
|
|
@@ -442,12 +442,7 @@
|
|
|
442
442
|
sm: '14px',
|
|
443
443
|
md: '16px',
|
|
444
444
|
lg: '18px',
|
|
445
|
-
xl: '20px'
|
|
446
|
-
'2xl': '24px',
|
|
447
|
-
'3xl': '30px',
|
|
448
|
-
'4xl': '36px',
|
|
449
|
-
'5xl': '48px',
|
|
450
|
-
'6xl': '60px'
|
|
445
|
+
xl: '20px'
|
|
451
446
|
};
|
|
452
447
|
/**
|
|
453
448
|
* Line heights following typography guidelines
|
|
@@ -457,12 +452,7 @@
|
|
|
457
452
|
sm: '20px',
|
|
458
453
|
md: '24px',
|
|
459
454
|
lg: '28px',
|
|
460
|
-
xl: '28px'
|
|
461
|
-
'2xl': '32px',
|
|
462
|
-
'3xl': '36px',
|
|
463
|
-
'4xl': '40px',
|
|
464
|
-
'5xl': '60px',
|
|
465
|
-
'6xl': '72px'
|
|
455
|
+
xl: '28px'
|
|
466
456
|
};
|
|
467
457
|
/**
|
|
468
458
|
* Font weights following typography guidelines
|
|
@@ -703,9 +693,12 @@
|
|
|
703
693
|
};
|
|
704
694
|
// Utility function to handle fill and stroke based on 'filled' prop
|
|
705
695
|
var getSvgProps = (filled, color, strokeWidth) => {
|
|
696
|
+
var {
|
|
697
|
+
getColor
|
|
698
|
+
} = appStudio.useTheme();
|
|
706
699
|
return {
|
|
707
|
-
fill: filled ? color : 'none',
|
|
708
|
-
stroke: filled ? 'none' : color,
|
|
700
|
+
fill: filled ? getColor(color) : 'none',
|
|
701
|
+
stroke: filled ? 'none' : getColor(color),
|
|
709
702
|
strokeWidth,
|
|
710
703
|
strokeLinecap: 'round',
|
|
711
704
|
strokeLinejoin: 'round'
|
|
@@ -1171,7 +1164,7 @@
|
|
|
1171
1164
|
var {
|
|
1172
1165
|
widthHeight = 24,
|
|
1173
1166
|
color = 'currentColor',
|
|
1174
|
-
filled =
|
|
1167
|
+
filled = true,
|
|
1175
1168
|
strokeWidth = 1
|
|
1176
1169
|
} = _ref19,
|
|
1177
1170
|
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
@@ -2915,7 +2908,7 @@
|
|
|
2915
2908
|
borderStyle: "solid",
|
|
2916
2909
|
borderColor: Themes[variant].container.borderColor,
|
|
2917
2910
|
backgroundColor: Themes[variant].container.backgroundColor,
|
|
2918
|
-
boxShadow: Themes[variant].container.
|
|
2911
|
+
boxShadow: Themes[variant].container.containerShadow,
|
|
2919
2912
|
// Animation
|
|
2920
2913
|
transition: "all 0.2s ease"
|
|
2921
2914
|
}, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
@@ -3349,12 +3342,7 @@
|
|
|
3349
3342
|
sm: 14,
|
|
3350
3343
|
md: 16,
|
|
3351
3344
|
lg: 18,
|
|
3352
|
-
xl: 20
|
|
3353
|
-
'2xl': 24,
|
|
3354
|
-
'3xl': 30,
|
|
3355
|
-
'4xl': 36,
|
|
3356
|
-
'5xl': 48,
|
|
3357
|
-
'6xl': 64
|
|
3345
|
+
xl: 20
|
|
3358
3346
|
};
|
|
3359
3347
|
|
|
3360
3348
|
var _excluded$6 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
|
|
@@ -3606,12 +3594,7 @@
|
|
|
3606
3594
|
sm: 18,
|
|
3607
3595
|
md: 22,
|
|
3608
3596
|
lg: 26,
|
|
3609
|
-
xl: 30
|
|
3610
|
-
'2xl': 40,
|
|
3611
|
-
'3xl': 50,
|
|
3612
|
-
'4xl': 60,
|
|
3613
|
-
'5xl': 70,
|
|
3614
|
-
'6xl': 80
|
|
3597
|
+
xl: 30
|
|
3615
3598
|
};
|
|
3616
3599
|
// Specifies a mapping of spinning speed labels to numerical millisecond values, determining the speed of the Loader component's animation cycles.
|
|
3617
3600
|
var DefaultSpeeds = {
|
|
@@ -4726,8 +4709,32 @@
|
|
|
4726
4709
|
Carousel.Previous = CarouselPreviousComponent; // Compound component pattern
|
|
4727
4710
|
Carousel.Next = CarouselNextComponent; // Compound component pattern
|
|
4728
4711
|
|
|
4712
|
+
/**
|
|
4713
|
+
* Chart Colors
|
|
4714
|
+
*
|
|
4715
|
+
* Defines a consistent color scheme for all chart examples.
|
|
4716
|
+
* These colors should be used in the same order across all chart types
|
|
4717
|
+
* to ensure consistency between the charts and their legends.
|
|
4718
|
+
*/
|
|
4719
|
+
var CHART_COLORS = {
|
|
4720
|
+
// Primary colors for all charts
|
|
4721
|
+
blue: 'color.blue.500',
|
|
4722
|
+
green: 'color.green.500',
|
|
4723
|
+
purple: 'color.purple.500',
|
|
4724
|
+
orange: 'color.orange.500',
|
|
4725
|
+
red: 'color.red.500',
|
|
4726
|
+
// Additional colors if needed
|
|
4727
|
+
teal: 'color.teal.500',
|
|
4728
|
+
pink: 'color.pink.500',
|
|
4729
|
+
indigo: 'color.indigo.500',
|
|
4730
|
+
yellow: 'color.yellow.500',
|
|
4731
|
+
cyan: 'color.cyan.500'
|
|
4732
|
+
};
|
|
4733
|
+
// Default color array for consistent ordering
|
|
4734
|
+
var DEFAULT_CHART_COLORS = [CHART_COLORS.blue, CHART_COLORS.green, CHART_COLORS.purple, CHART_COLORS.orange, CHART_COLORS.red, CHART_COLORS.teal, CHART_COLORS.pink, CHART_COLORS.indigo, CHART_COLORS.yellow, CHART_COLORS.cyan];
|
|
4735
|
+
|
|
4729
4736
|
// Default colors for chart series
|
|
4730
|
-
var DEFAULT_COLORS =
|
|
4737
|
+
var DEFAULT_COLORS = DEFAULT_CHART_COLORS;
|
|
4731
4738
|
// Default styles for chart container
|
|
4732
4739
|
var ChartContainerStyles = {
|
|
4733
4740
|
width: '100%',
|
|
@@ -4971,6 +4978,9 @@
|
|
|
4971
4978
|
hideTooltip,
|
|
4972
4979
|
views
|
|
4973
4980
|
} = _ref;
|
|
4981
|
+
var {
|
|
4982
|
+
getColor
|
|
4983
|
+
} = appStudio.useTheme();
|
|
4974
4984
|
// Calculate chart dimensions
|
|
4975
4985
|
var padding = {
|
|
4976
4986
|
top: 20,
|
|
@@ -5064,7 +5074,7 @@
|
|
|
5064
5074
|
y: y,
|
|
5065
5075
|
width: barWidth,
|
|
5066
5076
|
height: barHeight,
|
|
5067
|
-
fill: series.color,
|
|
5077
|
+
fill: series.color ? getColor(series.color) : 'black',
|
|
5068
5078
|
onMouseEnter: handleMouseEnter,
|
|
5069
5079
|
onMouseLeave: hideTooltip,
|
|
5070
5080
|
onClick: handleClick
|
|
@@ -5085,6 +5095,9 @@
|
|
|
5085
5095
|
views
|
|
5086
5096
|
} = _ref;
|
|
5087
5097
|
// Calculate chart dimensions
|
|
5098
|
+
var {
|
|
5099
|
+
getColor
|
|
5100
|
+
} = appStudio.useTheme();
|
|
5088
5101
|
var padding = {
|
|
5089
5102
|
top: 20,
|
|
5090
5103
|
right: 20,
|
|
@@ -5175,11 +5188,11 @@
|
|
|
5175
5188
|
key: "series-" + seriesIndex
|
|
5176
5189
|
}, /*#__PURE__*/React__default.createElement("path", Object.assign({
|
|
5177
5190
|
d: generateAreaPath(series.data),
|
|
5178
|
-
fill: series.color,
|
|
5191
|
+
fill: series.color ? getColor(series.color) : 'black',
|
|
5179
5192
|
opacity: 0.1
|
|
5180
5193
|
}, views == null ? void 0 : views.area)), /*#__PURE__*/React__default.createElement("path", Object.assign({
|
|
5181
5194
|
d: generatePath(series.data),
|
|
5182
|
-
stroke: series.color
|
|
5195
|
+
stroke: series.color ? getColor(series.color) : 'black'
|
|
5183
5196
|
}, LineStyles, views == null ? void 0 : views.line)), series.data.map((value, dataIndex) => {
|
|
5184
5197
|
var x = padding.left + dataIndex / (data.labels.length - 1) * chartWidth;
|
|
5185
5198
|
var y = height - padding.bottom - value / maxValue * chartHeight * animationProgress;
|
|
@@ -6222,9 +6235,9 @@
|
|
|
6222
6235
|
gap: 8,
|
|
6223
6236
|
position: "relative",
|
|
6224
6237
|
width: "100%"
|
|
6225
|
-
}, props), children, !error && helperText && (/*#__PURE__*/React__default.createElement(HelperText, Object.assign({
|
|
6238
|
+
}, props, views == null ? void 0 : views.container), children, !error && helperText && (/*#__PURE__*/React__default.createElement(HelperText, Object.assign({
|
|
6226
6239
|
marginTop: 4
|
|
6227
|
-
}, views), helperText)), error && (/*#__PURE__*/React__default.createElement(Text, {
|
|
6240
|
+
}, views == null ? void 0 : views.helperText), helperText)), error && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6228
6241
|
size: "xs",
|
|
6229
6242
|
marginTop: 4,
|
|
6230
6243
|
marginHorizontal: 0,
|
|
@@ -6232,7 +6245,7 @@
|
|
|
6232
6245
|
,
|
|
6233
6246
|
color: "color.red.500",
|
|
6234
6247
|
transition: "all 0.2s ease"
|
|
6235
|
-
}, error)));
|
|
6248
|
+
}, views == null ? void 0 : views.error), error)));
|
|
6236
6249
|
};
|
|
6237
6250
|
|
|
6238
6251
|
/**
|
|
@@ -7011,26 +7024,6 @@
|
|
|
7011
7024
|
xl: {
|
|
7012
7025
|
height: '28px',
|
|
7013
7026
|
width: '28px'
|
|
7014
|
-
},
|
|
7015
|
-
'2xl': {
|
|
7016
|
-
height: '32px',
|
|
7017
|
-
width: '32px'
|
|
7018
|
-
},
|
|
7019
|
-
'3xl': {
|
|
7020
|
-
height: '36px',
|
|
7021
|
-
width: '36px'
|
|
7022
|
-
},
|
|
7023
|
-
'4xl': {
|
|
7024
|
-
height: '40px',
|
|
7025
|
-
width: '40px'
|
|
7026
|
-
},
|
|
7027
|
-
'5xl': {
|
|
7028
|
-
height: '44px',
|
|
7029
|
-
width: '44px'
|
|
7030
|
-
},
|
|
7031
|
-
'6xl': {
|
|
7032
|
-
height: '48px',
|
|
7033
|
-
width: '48px'
|
|
7034
7027
|
}
|
|
7035
7028
|
};
|
|
7036
7029
|
/**
|
|
@@ -7057,26 +7050,6 @@
|
|
|
7057
7050
|
xl: {
|
|
7058
7051
|
height: '40px',
|
|
7059
7052
|
width: '72px'
|
|
7060
|
-
},
|
|
7061
|
-
'2xl': {
|
|
7062
|
-
height: '44px',
|
|
7063
|
-
width: '80px'
|
|
7064
|
-
},
|
|
7065
|
-
'3xl': {
|
|
7066
|
-
height: '48px',
|
|
7067
|
-
width: '88px'
|
|
7068
|
-
},
|
|
7069
|
-
'4xl': {
|
|
7070
|
-
height: '52px',
|
|
7071
|
-
width: '96px'
|
|
7072
|
-
},
|
|
7073
|
-
'5xl': {
|
|
7074
|
-
height: '56px',
|
|
7075
|
-
width: '104px'
|
|
7076
|
-
},
|
|
7077
|
-
'6xl': {
|
|
7078
|
-
height: '60px',
|
|
7079
|
-
width: '112px'
|
|
7080
7053
|
}
|
|
7081
7054
|
};
|
|
7082
7055
|
/**
|
|
@@ -7103,26 +7076,6 @@
|
|
|
7103
7076
|
xl: {
|
|
7104
7077
|
paddingVertical: 4,
|
|
7105
7078
|
paddingHorizontal: 4
|
|
7106
|
-
},
|
|
7107
|
-
'2xl': {
|
|
7108
|
-
paddingVertical: 4,
|
|
7109
|
-
paddingHorizontal: 4
|
|
7110
|
-
},
|
|
7111
|
-
'3xl': {
|
|
7112
|
-
paddingVertical: 4,
|
|
7113
|
-
paddingHorizontal: 4
|
|
7114
|
-
},
|
|
7115
|
-
'4xl': {
|
|
7116
|
-
paddingVertical: 4,
|
|
7117
|
-
paddingHorizontal: 4
|
|
7118
|
-
},
|
|
7119
|
-
'5xl': {
|
|
7120
|
-
paddingVertical: 4,
|
|
7121
|
-
paddingHorizontal: 4
|
|
7122
|
-
},
|
|
7123
|
-
'6xl': {
|
|
7124
|
-
paddingVertical: 4,
|
|
7125
|
-
paddingHorizontal: 4
|
|
7126
7079
|
}
|
|
7127
7080
|
};
|
|
7128
7081
|
/**
|
|
@@ -7335,11 +7288,8 @@
|
|
|
7335
7288
|
setIsFocused = () => {},
|
|
7336
7289
|
setIsHovered = () => {},
|
|
7337
7290
|
views = {
|
|
7338
|
-
box: {},
|
|
7339
|
-
text: {},
|
|
7340
7291
|
label: {},
|
|
7341
|
-
helperText: {}
|
|
7342
|
-
field: {}
|
|
7292
|
+
helperText: {}
|
|
7343
7293
|
}
|
|
7344
7294
|
} = _ref,
|
|
7345
7295
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
@@ -7350,11 +7300,11 @@
|
|
|
7350
7300
|
var fieldStyles = Object.assign({
|
|
7351
7301
|
// Layout properties
|
|
7352
7302
|
margin: 0,
|
|
7353
|
-
paddingVertical:
|
|
7354
|
-
paddingHorizontal:
|
|
7303
|
+
paddingVertical: 2,
|
|
7304
|
+
paddingHorizontal: 2,
|
|
7355
7305
|
width: '100%',
|
|
7356
|
-
|
|
7357
|
-
|
|
7306
|
+
maxHeight: 'calc(100vh - 100px)',
|
|
7307
|
+
height: 'calc(5em)',
|
|
7358
7308
|
border: 'none',
|
|
7359
7309
|
resize: 'vertical',
|
|
7360
7310
|
// Focus state
|
|
@@ -7365,7 +7315,7 @@
|
|
|
7365
7315
|
},
|
|
7366
7316
|
// Typography properties
|
|
7367
7317
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
7368
|
-
lineHeight:
|
|
7318
|
+
lineHeight: appStudio.Typography.fontSizes[size] * 1.5,
|
|
7369
7319
|
letterSpacing: '-0.01em',
|
|
7370
7320
|
// Visual properties
|
|
7371
7321
|
backgroundColor: 'transparent',
|
|
@@ -7373,11 +7323,7 @@
|
|
|
7373
7323
|
// State properties
|
|
7374
7324
|
cursor: isDisabled ? 'not-allowed' : 'text',
|
|
7375
7325
|
// Animation
|
|
7376
|
-
transition: 'all 0.2s ease'
|
|
7377
|
-
// Dark mode support
|
|
7378
|
-
'@media (prefers-color-scheme: dark)': {
|
|
7379
|
-
color: isDisabled ? 'color.gray.600' : 'color.gray.100'
|
|
7380
|
-
}
|
|
7326
|
+
transition: 'all 0.2s ease'
|
|
7381
7327
|
}, views['field']);
|
|
7382
7328
|
var handleHover = () => setIsHovered(!isHovered);
|
|
7383
7329
|
var handleFocus = () => {
|
|
@@ -7399,11 +7345,11 @@
|
|
|
7399
7345
|
if (onChange) onChange(event.target.value);
|
|
7400
7346
|
}
|
|
7401
7347
|
};
|
|
7402
|
-
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
7348
|
+
return /*#__PURE__*/React__default.createElement(FieldContainer, Object.assign({
|
|
7403
7349
|
helperText: helperText,
|
|
7404
7350
|
error: error,
|
|
7405
7351
|
views: views
|
|
7406
|
-
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
7352
|
+
}, props), /*#__PURE__*/React__default.createElement(FieldContent, Object.assign({
|
|
7407
7353
|
label: label,
|
|
7408
7354
|
size: size,
|
|
7409
7355
|
error: error,
|
|
@@ -7420,11 +7366,11 @@
|
|
|
7420
7366
|
showLabel: showLabel,
|
|
7421
7367
|
onMouseEnter: handleHover,
|
|
7422
7368
|
onMouseLeave: handleHover
|
|
7423
|
-
}, /*#__PURE__*/React__default.createElement(FieldWrapper, null, showLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
7369
|
+
}, views == null ? void 0 : views.content), /*#__PURE__*/React__default.createElement(FieldWrapper, Object.assign({}, views == null ? void 0 : views.warper), showLabel && (/*#__PURE__*/React__default.createElement(FieldLabel, Object.assign({
|
|
7424
7370
|
htmlFor: id,
|
|
7425
7371
|
color: 'theme.primary',
|
|
7426
7372
|
error: error
|
|
7427
|
-
}, views), label)), /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7373
|
+
}, views == null ? void 0 : views.label), label)), /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
7428
7374
|
as: "textarea",
|
|
7429
7375
|
id: id,
|
|
7430
7376
|
name: name,
|
|
@@ -7439,10 +7385,10 @@
|
|
|
7439
7385
|
onBlur: handleBlur,
|
|
7440
7386
|
onFocus: handleFocus,
|
|
7441
7387
|
multiline: isMultiline
|
|
7442
|
-
}, fieldStyles,
|
|
7388
|
+
}, fieldStyles, {
|
|
7443
7389
|
onChange: handleChange,
|
|
7444
7390
|
onChangeText: handleChange
|
|
7445
|
-
})))));
|
|
7391
|
+
}, views == null ? void 0 : views.textarea)))));
|
|
7446
7392
|
};
|
|
7447
7393
|
|
|
7448
7394
|
// Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
|
|
@@ -7510,7 +7456,7 @@
|
|
|
7510
7456
|
onChangeText,
|
|
7511
7457
|
shadow = {},
|
|
7512
7458
|
views = {
|
|
7513
|
-
|
|
7459
|
+
container: {},
|
|
7514
7460
|
field: {},
|
|
7515
7461
|
label: {},
|
|
7516
7462
|
helperText: {},
|
|
@@ -7710,26 +7656,6 @@
|
|
|
7710
7656
|
xl: {
|
|
7711
7657
|
height: '32px',
|
|
7712
7658
|
width: '32px'
|
|
7713
|
-
},
|
|
7714
|
-
'2xl': {
|
|
7715
|
-
height: '36px',
|
|
7716
|
-
width: '36px'
|
|
7717
|
-
},
|
|
7718
|
-
'3xl': {
|
|
7719
|
-
height: '40px',
|
|
7720
|
-
width: '40px'
|
|
7721
|
-
},
|
|
7722
|
-
'4xl': {
|
|
7723
|
-
height: '44px',
|
|
7724
|
-
width: '44px'
|
|
7725
|
-
},
|
|
7726
|
-
'5xl': {
|
|
7727
|
-
height: '48px',
|
|
7728
|
-
width: '48px'
|
|
7729
|
-
},
|
|
7730
|
-
'6xl': {
|
|
7731
|
-
height: '52px',
|
|
7732
|
-
width: '52px'
|
|
7733
7659
|
}
|
|
7734
7660
|
};
|
|
7735
7661
|
/**
|
|
@@ -7741,12 +7667,7 @@
|
|
|
7741
7667
|
sm: 14,
|
|
7742
7668
|
md: 16,
|
|
7743
7669
|
lg: 20,
|
|
7744
|
-
xl: 24
|
|
7745
|
-
'2xl': 28,
|
|
7746
|
-
'3xl': 32,
|
|
7747
|
-
'4xl': 36,
|
|
7748
|
-
'5xl': 40,
|
|
7749
|
-
'6xl': 44
|
|
7670
|
+
xl: 24
|
|
7750
7671
|
};
|
|
7751
7672
|
/**
|
|
7752
7673
|
* Variant styles for the Checkbox component
|
|
@@ -9542,8 +9463,7 @@
|
|
|
9542
9463
|
icon: {},
|
|
9543
9464
|
label: {},
|
|
9544
9465
|
dropDown: {},
|
|
9545
|
-
helperText: {}
|
|
9546
|
-
box: {}
|
|
9466
|
+
helperText: {}
|
|
9547
9467
|
},
|
|
9548
9468
|
themeMode: elementMode
|
|
9549
9469
|
} = _ref5,
|
|
@@ -9691,7 +9611,7 @@
|
|
|
9691
9611
|
variant = 'default',
|
|
9692
9612
|
shape = 'default',
|
|
9693
9613
|
views = {
|
|
9694
|
-
|
|
9614
|
+
container: {},
|
|
9695
9615
|
label: {},
|
|
9696
9616
|
helperText: {},
|
|
9697
9617
|
text: {},
|
|
@@ -9974,7 +9894,7 @@
|
|
|
9974
9894
|
widthHeight: 12
|
|
9975
9895
|
}),
|
|
9976
9896
|
views: {
|
|
9977
|
-
|
|
9897
|
+
container: Object.assign({
|
|
9978
9898
|
width: '100%',
|
|
9979
9899
|
padding: '6px 12px',
|
|
9980
9900
|
borderBottom: filteredItems.length > 0 ? '1px solid #ccc' : '1px solid transparent'
|
|
@@ -10344,14 +10264,7 @@
|
|
|
10344
10264
|
length = 6,
|
|
10345
10265
|
helperText,
|
|
10346
10266
|
placeholder = '',
|
|
10347
|
-
views = {
|
|
10348
|
-
container: {},
|
|
10349
|
-
input: {},
|
|
10350
|
-
box: {},
|
|
10351
|
-
text: {},
|
|
10352
|
-
label: {},
|
|
10353
|
-
helperText: {}
|
|
10354
|
-
},
|
|
10267
|
+
views = {},
|
|
10355
10268
|
size = 'md',
|
|
10356
10269
|
shape = 'rounded',
|
|
10357
10270
|
variant = 'outline',
|
|
@@ -10457,7 +10370,7 @@
|
|
|
10457
10370
|
width: "100%",
|
|
10458
10371
|
position: "relative",
|
|
10459
10372
|
height: size === 'xs' ? '32px' : size === 'sm' ? '36px' : size === 'md' ? '40px' : size === 'lg' ? '48px' : '56px'
|
|
10460
|
-
}, views.
|
|
10373
|
+
}, views.container), slot.char ? (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10461
10374
|
textAlign: "center",
|
|
10462
10375
|
fontSize: size === 'xs' ? '14px' : size === 'sm' ? '16px' : size === 'md' ? '18px' : size === 'lg' ? '20px' : '24px',
|
|
10463
10376
|
fontWeight: "medium"
|
|
@@ -12225,23 +12138,19 @@
|
|
|
12225
12138
|
},
|
|
12226
12139
|
top: {
|
|
12227
12140
|
justifyContent: 'center',
|
|
12228
|
-
alignItems: 'flex-start'
|
|
12229
|
-
paddingTop: '64px'
|
|
12141
|
+
alignItems: 'flex-start'
|
|
12230
12142
|
},
|
|
12231
12143
|
right: {
|
|
12232
12144
|
justifyContent: 'flex-end',
|
|
12233
|
-
alignItems: 'center'
|
|
12234
|
-
paddingRight: '32px'
|
|
12145
|
+
alignItems: 'center'
|
|
12235
12146
|
},
|
|
12236
12147
|
bottom: {
|
|
12237
12148
|
justifyContent: 'center',
|
|
12238
|
-
alignItems: 'flex-end'
|
|
12239
|
-
paddingBottom: '64px'
|
|
12149
|
+
alignItems: 'flex-end'
|
|
12240
12150
|
},
|
|
12241
12151
|
left: {
|
|
12242
12152
|
justifyContent: 'flex-start',
|
|
12243
|
-
alignItems: 'center'
|
|
12244
|
-
paddingLeft: '32px'
|
|
12153
|
+
alignItems: 'center'
|
|
12245
12154
|
}
|
|
12246
12155
|
};
|
|
12247
12156
|
/**
|
|
@@ -15144,7 +15053,7 @@
|
|
|
15144
15053
|
variant = 'solid',
|
|
15145
15054
|
thickness = 'thin',
|
|
15146
15055
|
color,
|
|
15147
|
-
spacing = '
|
|
15056
|
+
spacing = '0px',
|
|
15148
15057
|
label,
|
|
15149
15058
|
decorative = false,
|
|
15150
15059
|
views
|
|
@@ -15169,7 +15078,7 @@
|
|
|
15169
15078
|
alignItems: "center",
|
|
15170
15079
|
justifyContent: "center",
|
|
15171
15080
|
width: "100%",
|
|
15172
|
-
|
|
15081
|
+
padding: spacing
|
|
15173
15082
|
}, ariaProps, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
15174
15083
|
height: "0px",
|
|
15175
15084
|
flexGrow: 1,
|
|
@@ -15192,7 +15101,7 @@
|
|
|
15192
15101
|
borderTopWidth: borderWidth,
|
|
15193
15102
|
borderTopStyle: borderStyle,
|
|
15194
15103
|
borderTopColor: separatorColor,
|
|
15195
|
-
|
|
15104
|
+
padding: spacing
|
|
15196
15105
|
}, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
|
|
15197
15106
|
}
|
|
15198
15107
|
// For vertical separator
|
|
@@ -15202,7 +15111,7 @@
|
|
|
15202
15111
|
borderLeftWidth: borderWidth,
|
|
15203
15112
|
borderLeftStyle: borderStyle,
|
|
15204
15113
|
borderLeftColor: separatorColor,
|
|
15205
|
-
|
|
15114
|
+
padding: spacing
|
|
15206
15115
|
}, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
|
|
15207
15116
|
};
|
|
15208
15117
|
|
|
@@ -15213,6 +15122,7 @@
|
|
|
15213
15122
|
return /*#__PURE__*/React__default.createElement(SeparatorView, Object.assign({}, props));
|
|
15214
15123
|
};
|
|
15215
15124
|
var Separator = SeparatorComponent;
|
|
15125
|
+
var Divider = SeparatorComponent;
|
|
15216
15126
|
|
|
15217
15127
|
var useSidebarState = function useSidebarState(defaultExpanded, expanded, onExpandedChange, breakpoint) {
|
|
15218
15128
|
if (defaultExpanded === void 0) {
|
|
@@ -17812,6 +17722,7 @@
|
|
|
17812
17722
|
exports.CropIcon = CropIcon;
|
|
17813
17723
|
exports.DatePicker = DatePicker;
|
|
17814
17724
|
exports.DeleteIcon = DeleteIcon;
|
|
17725
|
+
exports.Divider = Divider;
|
|
17815
17726
|
exports.DocumentIcon = DocumentIcon;
|
|
17816
17727
|
exports.DownloadIcon = DownloadIcon;
|
|
17817
17728
|
exports.DragAndDrop = DragAndDrop;
|