@app-studio/web 0.9.47 → 0.9.48
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 +33 -56
- 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 +33 -56
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +33 -56
- 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
|
@@ -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
|
|
@@ -5326,7 +5303,7 @@ var ButtonView = _ref5 => {
|
|
|
5326
5303
|
// primary candidate for main color
|
|
5327
5304
|
color,
|
|
5328
5305
|
// 2nd candidate for main color (NOT text‑color)
|
|
5329
|
-
isAuto,
|
|
5306
|
+
isAuto = true,
|
|
5330
5307
|
isFilled,
|
|
5331
5308
|
isDisabled,
|
|
5332
5309
|
isLoading,
|