@vectoriox/iox-builder 7.0.0 → 7.0.1

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.
@@ -10667,8 +10667,16 @@ function button(styleId, label, createConfig, styles = {}) {
10667
10667
  styled(btn, styles);
10668
10668
  return withChildren(btn, [text(label, createConfig, undefined, { color: 'inherit' })]);
10669
10669
  }
10670
+ /** A Container sized by its content: the palette Container's 200px drop-zone min-height is canvas
10671
+ * furniture, and a specimen has no drop zone. */
10672
+ function box(createConfig, styleId) {
10673
+ const node = createConfig('Container');
10674
+ if (styleId)
10675
+ wearing(node, styleId);
10676
+ return styled(node, { minHeight: '0' });
10677
+ }
10670
10678
  function boxed(styleId, createConfig, children, styles) {
10671
- return withChildren(styled(wearing(createConfig('Container'), styleId), styles), children);
10679
+ return withChildren(styled(box(createConfig, styleId), styles), children);
10672
10680
  }
10673
10681
  /**
10674
10682
  * The specimen for one element style (Board 6, Element styles tab). Null for an unknown id or a
@@ -10749,8 +10757,8 @@ function layoutSpecimen(id, createConfig, copy) {
10749
10757
  * so the tile wears whichever look's tokens its wrapper declares.
10750
10758
  */
10751
10759
  function buildFlavorSpecimen(name, createConfig, copy) {
10752
- const dots = styled(createConfig('Container'), { display: 'flex', gap: '4px', alignSelf: 'start', width: 'auto' });
10753
- const dotNodes = TILE_DOTS.map(token => styled(createConfig('Container'), {
10760
+ const dots = styled(box(createConfig), { display: 'flex', gap: '4px', alignSelf: 'start', width: 'auto' });
10761
+ const dotNodes = TILE_DOTS.map(token => styled(box(createConfig), {
10754
10762
  width: '14px', height: '14px', borderRadius: '50%', backgroundColor: `var(--iox-${token})`,
10755
10763
  borderWidth: '1px', borderStyle: 'solid', borderColor: 'rgba(127, 127, 127, 0.25)', flexShrink: '0',
10756
10764
  }));
@@ -10764,7 +10772,7 @@ function buildFlavorSpecimen(name, createConfig, copy) {
10764
10772
  gridColumn: '1 / -1', display: 'flex', alignItems: 'center', justifyContent: 'space-between',
10765
10773
  gap: '10px', padding: '7px 9px', width: 'auto',
10766
10774
  });
10767
- const root = styled(createConfig('Container'), {
10775
+ const root = styled(box(createConfig), {
10768
10776
  display: 'grid', gridTemplateColumns: '1fr auto', gap: '6px', alignContent: 'space-between',
10769
10777
  height: '96px', padding: '10px', width: '100%',
10770
10778
  });