@app-studio/web 0.8.77 → 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/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/web.cjs.development.js +42 -163
- 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 +43 -164
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +42 -163
- 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
|
@@ -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 = {
|
|
@@ -6252,9 +6235,9 @@
|
|
|
6252
6235
|
gap: 8,
|
|
6253
6236
|
position: "relative",
|
|
6254
6237
|
width: "100%"
|
|
6255
|
-
}, 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({
|
|
6256
6239
|
marginTop: 4
|
|
6257
|
-
}, views), helperText)), error && (/*#__PURE__*/React__default.createElement(Text, {
|
|
6240
|
+
}, views == null ? void 0 : views.helperText), helperText)), error && (/*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
6258
6241
|
size: "xs",
|
|
6259
6242
|
marginTop: 4,
|
|
6260
6243
|
marginHorizontal: 0,
|
|
@@ -6262,7 +6245,7 @@
|
|
|
6262
6245
|
,
|
|
6263
6246
|
color: "color.red.500",
|
|
6264
6247
|
transition: "all 0.2s ease"
|
|
6265
|
-
}, error)));
|
|
6248
|
+
}, views == null ? void 0 : views.error), error)));
|
|
6266
6249
|
};
|
|
6267
6250
|
|
|
6268
6251
|
/**
|
|
@@ -7041,26 +7024,6 @@
|
|
|
7041
7024
|
xl: {
|
|
7042
7025
|
height: '28px',
|
|
7043
7026
|
width: '28px'
|
|
7044
|
-
},
|
|
7045
|
-
'2xl': {
|
|
7046
|
-
height: '32px',
|
|
7047
|
-
width: '32px'
|
|
7048
|
-
},
|
|
7049
|
-
'3xl': {
|
|
7050
|
-
height: '36px',
|
|
7051
|
-
width: '36px'
|
|
7052
|
-
},
|
|
7053
|
-
'4xl': {
|
|
7054
|
-
height: '40px',
|
|
7055
|
-
width: '40px'
|
|
7056
|
-
},
|
|
7057
|
-
'5xl': {
|
|
7058
|
-
height: '44px',
|
|
7059
|
-
width: '44px'
|
|
7060
|
-
},
|
|
7061
|
-
'6xl': {
|
|
7062
|
-
height: '48px',
|
|
7063
|
-
width: '48px'
|
|
7064
7027
|
}
|
|
7065
7028
|
};
|
|
7066
7029
|
/**
|
|
@@ -7087,26 +7050,6 @@
|
|
|
7087
7050
|
xl: {
|
|
7088
7051
|
height: '40px',
|
|
7089
7052
|
width: '72px'
|
|
7090
|
-
},
|
|
7091
|
-
'2xl': {
|
|
7092
|
-
height: '44px',
|
|
7093
|
-
width: '80px'
|
|
7094
|
-
},
|
|
7095
|
-
'3xl': {
|
|
7096
|
-
height: '48px',
|
|
7097
|
-
width: '88px'
|
|
7098
|
-
},
|
|
7099
|
-
'4xl': {
|
|
7100
|
-
height: '52px',
|
|
7101
|
-
width: '96px'
|
|
7102
|
-
},
|
|
7103
|
-
'5xl': {
|
|
7104
|
-
height: '56px',
|
|
7105
|
-
width: '104px'
|
|
7106
|
-
},
|
|
7107
|
-
'6xl': {
|
|
7108
|
-
height: '60px',
|
|
7109
|
-
width: '112px'
|
|
7110
7053
|
}
|
|
7111
7054
|
};
|
|
7112
7055
|
/**
|
|
@@ -7133,26 +7076,6 @@
|
|
|
7133
7076
|
xl: {
|
|
7134
7077
|
paddingVertical: 4,
|
|
7135
7078
|
paddingHorizontal: 4
|
|
7136
|
-
},
|
|
7137
|
-
'2xl': {
|
|
7138
|
-
paddingVertical: 4,
|
|
7139
|
-
paddingHorizontal: 4
|
|
7140
|
-
},
|
|
7141
|
-
'3xl': {
|
|
7142
|
-
paddingVertical: 4,
|
|
7143
|
-
paddingHorizontal: 4
|
|
7144
|
-
},
|
|
7145
|
-
'4xl': {
|
|
7146
|
-
paddingVertical: 4,
|
|
7147
|
-
paddingHorizontal: 4
|
|
7148
|
-
},
|
|
7149
|
-
'5xl': {
|
|
7150
|
-
paddingVertical: 4,
|
|
7151
|
-
paddingHorizontal: 4
|
|
7152
|
-
},
|
|
7153
|
-
'6xl': {
|
|
7154
|
-
paddingVertical: 4,
|
|
7155
|
-
paddingHorizontal: 4
|
|
7156
7079
|
}
|
|
7157
7080
|
};
|
|
7158
7081
|
/**
|
|
@@ -7365,11 +7288,8 @@
|
|
|
7365
7288
|
setIsFocused = () => {},
|
|
7366
7289
|
setIsHovered = () => {},
|
|
7367
7290
|
views = {
|
|
7368
|
-
box: {},
|
|
7369
|
-
text: {},
|
|
7370
7291
|
label: {},
|
|
7371
|
-
helperText: {}
|
|
7372
|
-
field: {}
|
|
7292
|
+
helperText: {}
|
|
7373
7293
|
}
|
|
7374
7294
|
} = _ref,
|
|
7375
7295
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
@@ -7380,11 +7300,11 @@
|
|
|
7380
7300
|
var fieldStyles = Object.assign({
|
|
7381
7301
|
// Layout properties
|
|
7382
7302
|
margin: 0,
|
|
7383
|
-
paddingVertical:
|
|
7384
|
-
paddingHorizontal:
|
|
7303
|
+
paddingVertical: 2,
|
|
7304
|
+
paddingHorizontal: 2,
|
|
7385
7305
|
width: '100%',
|
|
7386
|
-
|
|
7387
|
-
|
|
7306
|
+
maxHeight: 'calc(100vh - 100px)',
|
|
7307
|
+
height: 'calc(5em)',
|
|
7388
7308
|
border: 'none',
|
|
7389
7309
|
resize: 'vertical',
|
|
7390
7310
|
// Focus state
|
|
@@ -7395,7 +7315,7 @@
|
|
|
7395
7315
|
},
|
|
7396
7316
|
// Typography properties
|
|
7397
7317
|
fontSize: appStudio.Typography.fontSizes[size],
|
|
7398
|
-
lineHeight:
|
|
7318
|
+
lineHeight: appStudio.Typography.fontSizes[size] * 1.5,
|
|
7399
7319
|
letterSpacing: '-0.01em',
|
|
7400
7320
|
// Visual properties
|
|
7401
7321
|
backgroundColor: 'transparent',
|
|
@@ -7403,11 +7323,7 @@
|
|
|
7403
7323
|
// State properties
|
|
7404
7324
|
cursor: isDisabled ? 'not-allowed' : 'text',
|
|
7405
7325
|
// Animation
|
|
7406
|
-
transition: 'all 0.2s ease'
|
|
7407
|
-
// Dark mode support
|
|
7408
|
-
'@media (prefers-color-scheme: dark)': {
|
|
7409
|
-
color: isDisabled ? 'color.gray.600' : 'color.gray.100'
|
|
7410
|
-
}
|
|
7326
|
+
transition: 'all 0.2s ease'
|
|
7411
7327
|
}, views['field']);
|
|
7412
7328
|
var handleHover = () => setIsHovered(!isHovered);
|
|
7413
7329
|
var handleFocus = () => {
|
|
@@ -7429,11 +7345,11 @@
|
|
|
7429
7345
|
if (onChange) onChange(event.target.value);
|
|
7430
7346
|
}
|
|
7431
7347
|
};
|
|
7432
|
-
return /*#__PURE__*/React__default.createElement(FieldContainer, {
|
|
7348
|
+
return /*#__PURE__*/React__default.createElement(FieldContainer, Object.assign({
|
|
7433
7349
|
helperText: helperText,
|
|
7434
7350
|
error: error,
|
|
7435
7351
|
views: views
|
|
7436
|
-
}, /*#__PURE__*/React__default.createElement(FieldContent, {
|
|
7352
|
+
}, props), /*#__PURE__*/React__default.createElement(FieldContent, Object.assign({
|
|
7437
7353
|
label: label,
|
|
7438
7354
|
size: size,
|
|
7439
7355
|
error: error,
|
|
@@ -7450,11 +7366,11 @@
|
|
|
7450
7366
|
showLabel: showLabel,
|
|
7451
7367
|
onMouseEnter: handleHover,
|
|
7452
7368
|
onMouseLeave: handleHover
|
|
7453
|
-
}, /*#__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({
|
|
7454
7370
|
htmlFor: id,
|
|
7455
7371
|
color: 'theme.primary',
|
|
7456
7372
|
error: error
|
|
7457
|
-
}, 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({
|
|
7458
7374
|
as: "textarea",
|
|
7459
7375
|
id: id,
|
|
7460
7376
|
name: name,
|
|
@@ -7469,10 +7385,10 @@
|
|
|
7469
7385
|
onBlur: handleBlur,
|
|
7470
7386
|
onFocus: handleFocus,
|
|
7471
7387
|
multiline: isMultiline
|
|
7472
|
-
}, fieldStyles,
|
|
7388
|
+
}, fieldStyles, {
|
|
7473
7389
|
onChange: handleChange,
|
|
7474
7390
|
onChangeText: handleChange
|
|
7475
|
-
})))));
|
|
7391
|
+
}, views == null ? void 0 : views.textarea)))));
|
|
7476
7392
|
};
|
|
7477
7393
|
|
|
7478
7394
|
// Defines the TextAreaComponent as a functional component that accepts TextAreaProps for type safety and structure.
|
|
@@ -7540,7 +7456,7 @@
|
|
|
7540
7456
|
onChangeText,
|
|
7541
7457
|
shadow = {},
|
|
7542
7458
|
views = {
|
|
7543
|
-
|
|
7459
|
+
container: {},
|
|
7544
7460
|
field: {},
|
|
7545
7461
|
label: {},
|
|
7546
7462
|
helperText: {},
|
|
@@ -7740,26 +7656,6 @@
|
|
|
7740
7656
|
xl: {
|
|
7741
7657
|
height: '32px',
|
|
7742
7658
|
width: '32px'
|
|
7743
|
-
},
|
|
7744
|
-
'2xl': {
|
|
7745
|
-
height: '36px',
|
|
7746
|
-
width: '36px'
|
|
7747
|
-
},
|
|
7748
|
-
'3xl': {
|
|
7749
|
-
height: '40px',
|
|
7750
|
-
width: '40px'
|
|
7751
|
-
},
|
|
7752
|
-
'4xl': {
|
|
7753
|
-
height: '44px',
|
|
7754
|
-
width: '44px'
|
|
7755
|
-
},
|
|
7756
|
-
'5xl': {
|
|
7757
|
-
height: '48px',
|
|
7758
|
-
width: '48px'
|
|
7759
|
-
},
|
|
7760
|
-
'6xl': {
|
|
7761
|
-
height: '52px',
|
|
7762
|
-
width: '52px'
|
|
7763
7659
|
}
|
|
7764
7660
|
};
|
|
7765
7661
|
/**
|
|
@@ -7771,12 +7667,7 @@
|
|
|
7771
7667
|
sm: 14,
|
|
7772
7668
|
md: 16,
|
|
7773
7669
|
lg: 20,
|
|
7774
|
-
xl: 24
|
|
7775
|
-
'2xl': 28,
|
|
7776
|
-
'3xl': 32,
|
|
7777
|
-
'4xl': 36,
|
|
7778
|
-
'5xl': 40,
|
|
7779
|
-
'6xl': 44
|
|
7670
|
+
xl: 24
|
|
7780
7671
|
};
|
|
7781
7672
|
/**
|
|
7782
7673
|
* Variant styles for the Checkbox component
|
|
@@ -9572,8 +9463,7 @@
|
|
|
9572
9463
|
icon: {},
|
|
9573
9464
|
label: {},
|
|
9574
9465
|
dropDown: {},
|
|
9575
|
-
helperText: {}
|
|
9576
|
-
box: {}
|
|
9466
|
+
helperText: {}
|
|
9577
9467
|
},
|
|
9578
9468
|
themeMode: elementMode
|
|
9579
9469
|
} = _ref5,
|
|
@@ -9721,7 +9611,7 @@
|
|
|
9721
9611
|
variant = 'default',
|
|
9722
9612
|
shape = 'default',
|
|
9723
9613
|
views = {
|
|
9724
|
-
|
|
9614
|
+
container: {},
|
|
9725
9615
|
label: {},
|
|
9726
9616
|
helperText: {},
|
|
9727
9617
|
text: {},
|
|
@@ -10004,7 +9894,7 @@
|
|
|
10004
9894
|
widthHeight: 12
|
|
10005
9895
|
}),
|
|
10006
9896
|
views: {
|
|
10007
|
-
|
|
9897
|
+
container: Object.assign({
|
|
10008
9898
|
width: '100%',
|
|
10009
9899
|
padding: '6px 12px',
|
|
10010
9900
|
borderBottom: filteredItems.length > 0 ? '1px solid #ccc' : '1px solid transparent'
|
|
@@ -10374,14 +10264,7 @@
|
|
|
10374
10264
|
length = 6,
|
|
10375
10265
|
helperText,
|
|
10376
10266
|
placeholder = '',
|
|
10377
|
-
views = {
|
|
10378
|
-
container: {},
|
|
10379
|
-
input: {},
|
|
10380
|
-
box: {},
|
|
10381
|
-
text: {},
|
|
10382
|
-
label: {},
|
|
10383
|
-
helperText: {}
|
|
10384
|
-
},
|
|
10267
|
+
views = {},
|
|
10385
10268
|
size = 'md',
|
|
10386
10269
|
shape = 'rounded',
|
|
10387
10270
|
variant = 'outline',
|
|
@@ -10487,7 +10370,7 @@
|
|
|
10487
10370
|
width: "100%",
|
|
10488
10371
|
position: "relative",
|
|
10489
10372
|
height: size === 'xs' ? '32px' : size === 'sm' ? '36px' : size === 'md' ? '40px' : size === 'lg' ? '48px' : '56px'
|
|
10490
|
-
}, views.
|
|
10373
|
+
}, views.container), slot.char ? (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10491
10374
|
textAlign: "center",
|
|
10492
10375
|
fontSize: size === 'xs' ? '14px' : size === 'sm' ? '16px' : size === 'md' ? '18px' : size === 'lg' ? '20px' : '24px',
|
|
10493
10376
|
fontWeight: "medium"
|
|
@@ -12255,23 +12138,19 @@
|
|
|
12255
12138
|
},
|
|
12256
12139
|
top: {
|
|
12257
12140
|
justifyContent: 'center',
|
|
12258
|
-
alignItems: 'flex-start'
|
|
12259
|
-
paddingTop: '64px'
|
|
12141
|
+
alignItems: 'flex-start'
|
|
12260
12142
|
},
|
|
12261
12143
|
right: {
|
|
12262
12144
|
justifyContent: 'flex-end',
|
|
12263
|
-
alignItems: 'center'
|
|
12264
|
-
paddingRight: '32px'
|
|
12145
|
+
alignItems: 'center'
|
|
12265
12146
|
},
|
|
12266
12147
|
bottom: {
|
|
12267
12148
|
justifyContent: 'center',
|
|
12268
|
-
alignItems: 'flex-end'
|
|
12269
|
-
paddingBottom: '64px'
|
|
12149
|
+
alignItems: 'flex-end'
|
|
12270
12150
|
},
|
|
12271
12151
|
left: {
|
|
12272
12152
|
justifyContent: 'flex-start',
|
|
12273
|
-
alignItems: 'center'
|
|
12274
|
-
paddingLeft: '32px'
|
|
12153
|
+
alignItems: 'center'
|
|
12275
12154
|
}
|
|
12276
12155
|
};
|
|
12277
12156
|
/**
|
|
@@ -15174,7 +15053,7 @@
|
|
|
15174
15053
|
variant = 'solid',
|
|
15175
15054
|
thickness = 'thin',
|
|
15176
15055
|
color,
|
|
15177
|
-
spacing = '
|
|
15056
|
+
spacing = '0px',
|
|
15178
15057
|
label,
|
|
15179
15058
|
decorative = false,
|
|
15180
15059
|
views
|
|
@@ -15199,7 +15078,7 @@
|
|
|
15199
15078
|
alignItems: "center",
|
|
15200
15079
|
justifyContent: "center",
|
|
15201
15080
|
width: "100%",
|
|
15202
|
-
|
|
15081
|
+
padding: spacing
|
|
15203
15082
|
}, ariaProps, props), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
15204
15083
|
height: "0px",
|
|
15205
15084
|
flexGrow: 1,
|
|
@@ -15222,7 +15101,7 @@
|
|
|
15222
15101
|
borderTopWidth: borderWidth,
|
|
15223
15102
|
borderTopStyle: borderStyle,
|
|
15224
15103
|
borderTopColor: separatorColor,
|
|
15225
|
-
|
|
15104
|
+
padding: spacing
|
|
15226
15105
|
}, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
|
|
15227
15106
|
}
|
|
15228
15107
|
// For vertical separator
|
|
@@ -15232,7 +15111,7 @@
|
|
|
15232
15111
|
borderLeftWidth: borderWidth,
|
|
15233
15112
|
borderLeftStyle: borderStyle,
|
|
15234
15113
|
borderLeftColor: separatorColor,
|
|
15235
|
-
|
|
15114
|
+
padding: spacing
|
|
15236
15115
|
}, DefaultSeparatorStyles.container, ariaProps, views == null ? void 0 : views.container, props));
|
|
15237
15116
|
};
|
|
15238
15117
|
|