@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.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
- minHeight: 8 * 4,
4838
- paddingTop: 1,
4839
- paddingBottom: 1,
4840
- paddingLeft: 2,
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
@@ -5319,7 +5296,7 @@ var ButtonView = _ref5 => {
5319
5296
  // primary candidate for main color
5320
5297
  color,
5321
5298
  // 2nd candidate for main color (NOT text‑color)
5322
- isAuto,
5299
+ isAuto = true,
5323
5300
  isFilled,
5324
5301
  isDisabled,
5325
5302
  isLoading,