@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
|
@@ -4836,65 +4836,42 @@ var Loader = LoaderComponent;
|
|
|
4836
4836
|
* - Rounded corners: Consistent border radius
|
|
4837
4837
|
* - Transitions: Subtle animations
|
|
4838
4838
|
*/
|
|
4839
|
+
var ButtonFontSize = {
|
|
4840
|
+
xs: 10,
|
|
4841
|
+
sm: 14,
|
|
4842
|
+
md: 16,
|
|
4843
|
+
lg: 18,
|
|
4844
|
+
xl: 20
|
|
4845
|
+
};
|
|
4846
|
+
var ButtonLineHeight = {
|
|
4847
|
+
xs: 14,
|
|
4848
|
+
sm: 20,
|
|
4849
|
+
md: 24,
|
|
4850
|
+
lg: 28,
|
|
4851
|
+
xl: 32
|
|
4852
|
+
};
|
|
4853
|
+
var getButtonSize = size => {
|
|
4854
|
+
return {
|
|
4855
|
+
minHeight: ButtonLineHeight[size] * 2,
|
|
4856
|
+
paddingHorizontal: ButtonLineHeight[size] / 2,
|
|
4857
|
+
fontSize: ButtonFontSize[size],
|
|
4858
|
+
fontWeight: 500,
|
|
4859
|
+
lineHeight: ButtonLineHeight[size],
|
|
4860
|
+
letterSpacing: '-0.01em',
|
|
4861
|
+
paddingInline: ButtonLineHeight[size],
|
|
4862
|
+
paddingBlock: ButtonLineHeight[size] / 2,
|
|
4863
|
+
outlineWidth: 'medium'
|
|
4864
|
+
};
|
|
4865
|
+
};
|
|
4839
4866
|
/**
|
|
4840
4867
|
* Button sizes following the 4px grid system
|
|
4841
4868
|
*/
|
|
4842
4869
|
var ButtonSizes = {
|
|
4843
|
-
xs:
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
paddingRight: 2,
|
|
4849
|
-
fontSize: 10,
|
|
4850
|
-
fontWeight: '500',
|
|
4851
|
-
lineHeight: 14,
|
|
4852
|
-
letterSpacing: '-0.01em'
|
|
4853
|
-
},
|
|
4854
|
-
sm: {
|
|
4855
|
-
minHeight: 10 * 4,
|
|
4856
|
-
paddingTop: 4,
|
|
4857
|
-
paddingBottom: 4,
|
|
4858
|
-
paddingLeft: 8,
|
|
4859
|
-
paddingRight: 8,
|
|
4860
|
-
fontSize: 12,
|
|
4861
|
-
fontWeight: '500',
|
|
4862
|
-
lineHeight: 16,
|
|
4863
|
-
letterSpacing: '-0.01em'
|
|
4864
|
-
},
|
|
4865
|
-
md: {
|
|
4866
|
-
minHeight: 12 * 4,
|
|
4867
|
-
paddingTop: 8,
|
|
4868
|
-
paddingBottom: 8,
|
|
4869
|
-
paddingLeft: 20,
|
|
4870
|
-
paddingRight: 20,
|
|
4871
|
-
fontSize: 16,
|
|
4872
|
-
fontWeight: 550,
|
|
4873
|
-
lineHeight: 24,
|
|
4874
|
-
letterSpacing: '-0.01em'
|
|
4875
|
-
},
|
|
4876
|
-
lg: {
|
|
4877
|
-
minHeight: 14 * 4,
|
|
4878
|
-
paddingTop: 8,
|
|
4879
|
-
paddingBottom: 8,
|
|
4880
|
-
paddingLeft: 16,
|
|
4881
|
-
paddingRight: 16,
|
|
4882
|
-
fontSize: 16,
|
|
4883
|
-
fontWeight: '500',
|
|
4884
|
-
lineHeight: 18,
|
|
4885
|
-
letterSpacing: '-0.01em'
|
|
4886
|
-
},
|
|
4887
|
-
xl: {
|
|
4888
|
-
minHeight: 16 * 4,
|
|
4889
|
-
paddingTop: 10,
|
|
4890
|
-
paddingBottom: 10,
|
|
4891
|
-
paddingLeft: 20,
|
|
4892
|
-
paddingRight: 20,
|
|
4893
|
-
fontSize: 20,
|
|
4894
|
-
fontWeight: '500',
|
|
4895
|
-
lineHeight: 22,
|
|
4896
|
-
letterSpacing: '-0.01em'
|
|
4897
|
-
}
|
|
4870
|
+
xs: /*#__PURE__*/getButtonSize('xs'),
|
|
4871
|
+
sm: /*#__PURE__*/getButtonSize('sm'),
|
|
4872
|
+
md: /*#__PURE__*/getButtonSize('md'),
|
|
4873
|
+
lg: /*#__PURE__*/getButtonSize('lg'),
|
|
4874
|
+
xl: /*#__PURE__*/getButtonSize('xl')
|
|
4898
4875
|
};
|
|
4899
4876
|
/**
|
|
4900
4877
|
* Button shapes with consistent border radius
|
|
@@ -4944,17 +4921,28 @@ var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight)
|
|
|
4944
4921
|
borderStyle: 'solid',
|
|
4945
4922
|
borderColor: 'transparent',
|
|
4946
4923
|
_hover: {
|
|
4947
|
-
opacity: 0.9
|
|
4948
|
-
color: textColor
|
|
4924
|
+
opacity: 0.9
|
|
4949
4925
|
},
|
|
4950
4926
|
_active: {
|
|
4951
|
-
opacity: 0.95
|
|
4952
|
-
color: textColor
|
|
4927
|
+
opacity: 0.95
|
|
4953
4928
|
},
|
|
4954
4929
|
_focusVisible: {
|
|
4955
4930
|
outline: 'none',
|
|
4956
|
-
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4957
|
-
|
|
4931
|
+
boxShadow: "0 0 0 2px rgba(255, 255, 255, 1), 0 0 0 4px " + color
|
|
4932
|
+
},
|
|
4933
|
+
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4934
|
+
},
|
|
4935
|
+
reversed: {
|
|
4936
|
+
backgroundColor: textColor,
|
|
4937
|
+
color: color,
|
|
4938
|
+
borderWidth: 1,
|
|
4939
|
+
borderStyle: 'solid',
|
|
4940
|
+
borderColor: textColor,
|
|
4941
|
+
_hover: {
|
|
4942
|
+
opacity: 0.9
|
|
4943
|
+
},
|
|
4944
|
+
_active: {
|
|
4945
|
+
opacity: 0.95
|
|
4958
4946
|
},
|
|
4959
4947
|
transition: 'background-color 0.2s ease, opacity 0.2s ease'
|
|
4960
4948
|
},
|
|
@@ -4994,7 +4982,6 @@ var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight)
|
|
|
4994
4982
|
opacity: 0.9
|
|
4995
4983
|
},
|
|
4996
4984
|
_active: {
|
|
4997
|
-
color: color,
|
|
4998
4985
|
opacity: 0.95
|
|
4999
4986
|
},
|
|
5000
4987
|
_focusVisible: {
|
|
@@ -5014,11 +5001,9 @@ var getButtonVariants = function getButtonVariants(color, isLight, isThemeLight)
|
|
|
5014
5001
|
textDecorationThickness: '1px',
|
|
5015
5002
|
textDecorationColor: color,
|
|
5016
5003
|
_hover: {
|
|
5017
|
-
color: color,
|
|
5018
5004
|
opacity: 0.8
|
|
5019
5005
|
},
|
|
5020
5006
|
_active: {
|
|
5021
|
-
color: color,
|
|
5022
5007
|
opacity: 0.9
|
|
5023
5008
|
},
|
|
5024
5009
|
_focusVisible: {
|
|
@@ -5326,7 +5311,7 @@ var ButtonView = _ref5 => {
|
|
|
5326
5311
|
// primary candidate for main color
|
|
5327
5312
|
color,
|
|
5328
5313
|
// 2nd candidate for main color (NOT text‑color)
|
|
5329
|
-
isAuto,
|
|
5314
|
+
isAuto = true,
|
|
5330
5315
|
isFilled,
|
|
5331
5316
|
isDisabled,
|
|
5332
5317
|
isLoading,
|