@app-studio/web 0.9.55 → 0.9.56

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
@@ -9586,7 +9586,7 @@ var useSelectorState = _ref => {
9586
9586
  };
9587
9587
  };
9588
9588
 
9589
- var _excluded$u = ["id", "name", "label", "value", "views", "options", "onChange", "setValue"];
9589
+ var _excluded$u = ["id", "name", "label", "value", "size", "views", "options", "onChange", "setValue"];
9590
9590
  /**
9591
9591
  * SelectorView Component
9592
9592
  *
@@ -9598,6 +9598,7 @@ var SelectorView = _ref => {
9598
9598
  name,
9599
9599
  label,
9600
9600
  value,
9601
+ size,
9601
9602
  views = {},
9602
9603
  options = [],
9603
9604
  onChange = () => {},
@@ -9667,15 +9668,20 @@ var SelectorView = _ref => {
9667
9668
  // Default fallback
9668
9669
  borderColor = getColor('theme.primary');
9669
9670
  textColor = getColor('theme.primary');
9670
- bgColor = getColor('color.blue.50');
9671
+ bgColor = 'transparent';
9671
9672
  }
9672
9673
  }
9673
9674
  return /*#__PURE__*/React.createElement(Button, Object.assign({
9674
9675
  key: option.value,
9675
9676
  onClick: () => handleCallback(option),
9676
- flex: 1,
9677
+ flex: 1
9678
+ }, size ? {
9679
+ size
9680
+ } : {
9681
+ // Legacy default: keep existing compact look when `size` isn't specified.
9677
9682
  paddingVertical: 6,
9678
- fontSize: "12px",
9683
+ fontSize: '12px'
9684
+ }, {
9679
9685
  fontWeight: isSelected ? 'bold' : 'normal',
9680
9686
  style: {
9681
9687
  borderTop: "1px solid " + (isSelected ? borderColor : getColor('color.gray.200')),