@app-studio/web 0.9.47 → 0.9.49
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/web.cjs.development.js +50 -65
- 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 +50 -65
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +50 -65
- 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
package/dist/web.esm.js
CHANGED
|
@@ -4829,65 +4829,42 @@ var Loader = LoaderComponent;
|
|
|
4829
4829
|
* - Rounded corners: Consistent border radius
|
|
4830
4830
|
* - Transitions: Subtle animations
|
|
4831
4831
|
*/
|
|
4832
|
+
var ButtonFontSize = {
|
|
4833
|
+
xs: 10,
|
|
4834
|
+
sm: 14,
|
|
4835
|
+
md: 16,
|
|
4836
|
+
lg: 18,
|
|
4837
|
+
xl: 20
|
|
4838
|
+
};
|
|
4839
|
+
var ButtonLineHeight = {
|
|
4840
|
+
xs: 14,
|
|
4841
|
+
sm: 20,
|
|
4842
|
+
md: 24,
|
|
4843
|
+
lg: 28,
|
|
4844
|
+
xl: 32
|
|
4845
|
+
};
|
|
4846
|
+
var getButtonSize = size => {
|
|
4847
|
+
return {
|
|
4848
|
+
minHeight: ButtonLineHeight[size] * 2,
|
|
4849
|
+
paddingHorizontal: ButtonLineHeight[size] / 2,
|
|
4850
|
+
fontSize: ButtonFontSize[size],
|
|
4851
|
+
fontWeight: 500,
|
|
4852
|
+
lineHeight: ButtonLineHeight[size],
|
|
4853
|
+
letterSpacing: '-0.01em',
|
|
4854
|
+
paddingInline: ButtonLineHeight[size],
|
|
4855
|
+
paddingBlock: ButtonLineHeight[size] / 2,
|
|
4856
|
+
outlineWidth: 'medium'
|
|
4857
|
+
};
|
|
4858
|
+
};
|
|
4832
4859
|
/**
|
|
4833
4860
|
* Button sizes following the 4px grid system
|
|
4834
4861
|
*/
|
|
4835
4862
|
var ButtonSizes = {
|
|
4836
|
-
xs:
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
paddingRight: 2,
|
|
4842
|
-
fontSize: 10,
|
|
4843
|
-
fontWeight: '500',
|
|
4844
|
-
lineHeight: 14,
|
|
4845
|
-
letterSpacing: '-0.01em'
|
|
4846
|
-
},
|
|
4847
|
-
sm: {
|
|
4848
|
-
minHeight: 10 * 4,
|
|
4849
|
-
paddingTop: 4,
|
|
4850
|
-
paddingBottom: 4,
|
|
4851
|
-
paddingLeft: 8,
|
|
4852
|
-
paddingRight: 8,
|
|
4853
|
-
fontSize: 12,
|
|
4854
|
-
fontWeight: '500',
|
|
4855
|
-
lineHeight: 16,
|
|
4856
|
-
letterSpacing: '-0.01em'
|
|
4857
|
-
},
|
|
4858
|
-
md: {
|
|
4859
|
-
minHeight: 12 * 4,
|
|
4860
|
-
paddingTop: 8,
|
|
4861
|
-
paddingBottom: 8,
|
|
4862
|
-
paddingLeft: 20,
|
|
4863
|
-
paddingRight: 20,
|
|
4864
|
-
fontSize: 16,
|
|
4865
|
-
fontWeight: 550,
|
|
4866
|
-
lineHeight: 24,
|
|
4867
|
-
letterSpacing: '-0.01em'
|
|
4868
|
-
},
|
|
4869
|
-
lg: {
|
|
4870
|
-
minHeight: 14 * 4,
|
|
4871
|
-
paddingTop: 8,
|
|
4872
|
-
paddingBottom: 8,
|
|
4873
|
-
paddingLeft: 16,
|
|
4874
|
-
paddingRight: 16,
|
|
4875
|
-
fontSize: 16,
|
|
4876
|
-
fontWeight: '500',
|
|
4877
|
-
lineHeight: 18,
|
|
4878
|
-
letterSpacing: '-0.01em'
|
|
4879
|
-
},
|
|
4880
|
-
xl: {
|
|
4881
|
-
minHeight: 16 * 4,
|
|
4882
|
-
paddingTop: 10,
|
|
4883
|
-
paddingBottom: 10,
|
|
4884
|
-
paddingLeft: 20,
|
|
4885
|
-
paddingRight: 20,
|
|
4886
|
-
fontSize: 20,
|
|
4887
|
-
fontWeight: '500',
|
|
4888
|
-
lineHeight: 22,
|
|
4889
|
-
letterSpacing: '-0.01em'
|
|
4890
|
-
}
|
|
4863
|
+
xs: /*#__PURE__*/getButtonSize('xs'),
|
|
4864
|
+
sm: /*#__PURE__*/getButtonSize('sm'),
|
|
4865
|
+
md: /*#__PURE__*/getButtonSize('md'),
|
|
4866
|
+
lg: /*#__PURE__*/getButtonSize('lg'),
|
|
4867
|
+
xl: /*#__PURE__*/getButtonSize('xl')
|
|
4891
4868
|
};
|
|
4892
4869
|
/**
|
|
4893
4870
|
* Button shapes with consistent border radius
|
|
@@ -4937,17 +4914,28 @@ var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight)
|
|
|
4937
4914
|
borderStyle: 'solid',
|
|
4938
4915
|
borderColor: 'transparent',
|
|
4939
4916
|
_hover: {
|
|
4940
|
-
opacity: 0.9
|
|
4941
|
-
color: textColor
|
|
4917
|
+
opacity: 0.9
|
|
4942
4918
|
},
|
|
4943
4919
|
_active: {
|
|
4944
|
-
opacity: 0.95
|
|
4945
|
-
color: textColor
|
|
4920
|
+
opacity: 0.95
|
|
4946
4921
|
},
|
|
4947
4922
|
_focusVisible: {
|
|
4948
4923
|
outline: 'none',
|
|
4949
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4950
|
-
|
|
4924
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4925
|
+
},
|
|
4926
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4927
|
+
},
|
|
4928
|
+
reversed: {
|
|
4929
|
+
backgroundColor: textColor,
|
|
4930
|
+
color: color,
|
|
4931
|
+
borderWidth: 1,
|
|
4932
|
+
borderStyle: 'solid',
|
|
4933
|
+
borderColor: textColor,
|
|
4934
|
+
_hover: {
|
|
4935
|
+
opacity: 0.9
|
|
4936
|
+
},
|
|
4937
|
+
_active: {
|
|
4938
|
+
opacity: 0.95
|
|
4951
4939
|
},
|
|
4952
4940
|
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4953
4941
|
},
|
|
@@ -4987,7 +4975,6 @@ var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight)
|
|
|
4987
4975
|
opacity: 0.9
|
|
4988
4976
|
},
|
|
4989
4977
|
_active: {
|
|
4990
|
-
color: color,
|
|
4991
4978
|
opacity: 0.95
|
|
4992
4979
|
},
|
|
4993
4980
|
_focusVisible: {
|
|
@@ -5007,11 +4994,9 @@ var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight)
|
|
|
5007
4994
|
textDecorationThickness: '1px',
|
|
5008
4995
|
textDecorationColor: color,
|
|
5009
4996
|
_hover: {
|
|
5010
|
-
color: color,
|
|
5011
4997
|
opacity: 0.8
|
|
5012
4998
|
},
|
|
5013
4999
|
_active: {
|
|
5014
|
-
color: color,
|
|
5015
5000
|
opacity: 0.9
|
|
5016
5001
|
},
|
|
5017
5002
|
_focusVisible: {
|
|
@@ -5319,7 +5304,7 @@ var ButtonView = _ref5 => {
|
|
|
5319
5304
|
// primary candidate for main color
|
|
5320
5305
|
color,
|
|
5321
5306
|
// 2nd candidate for main color (NOT text‑color)
|
|
5322
|
-
isAuto,
|
|
5307
|
+
isAuto = true,
|
|
5323
5308
|
isFilled,
|
|
5324
5309
|
isDisabled,
|
|
5325
5310
|
isLoading,
|