@omni-design/components 0.9.0 → 0.11.0

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/CLAUDE.md CHANGED
@@ -583,22 +583,33 @@ import {
583
583
  // variant: 'primary' | 'secondary' | 'tertiary' | 'neutral' |
584
584
  // 'info' | 'success' | 'warning' | 'error' |
585
585
  // 'black-white' |
586
- // + '-outline' + '-light' variants | 'ghost' | 'text'
586
+ // + '-outline' variants | 'ghost' | 'text'
587
587
  // ('black-white' has solid + outline only — see below)
588
+ //
589
+ // There is no '-light' SHAPE on Button. It was removed in 0.9.0: it painted
590
+ // --<C>-Color-11, a tinted fill that was never a shape in the design, where
591
+ // shape is solid / outline / ghost / text and COLOUR arrives as a Buttons
592
+ // mode. A '{color}-light' call site still renders — normalizeButtonVariant
593
+ // strips the suffix to the solid button of the same colour and warns once in
594
+ // development — so nothing breaks silently, but do not write new ones.
595
+ // (Switch and ButtonGroup DO still have a light variant; they are different
596
+ // things. Switch's is a tinted track; ButtonGroup's changes the SURFACE of
597
+ // the unselected segments, not the theme.)
588
598
  // size: 'small' | 'medium' | 'large'
589
599
  <Button variant="primary" size="medium" startIcon={<AddIcon />}>
590
600
  Save Changes
591
601
  </Button>
592
602
  <Button variant="primary-outline">Cancel</Button>
593
- <Button variant="primary-light">Secondary Action</Button>
594
603
 
595
604
  // black-white resolves itself against whatever it is placed on: black on a
596
605
  // light surface, white on a dark one, with a label that always clears 4.5:1.
597
606
  // Works on every theme and surface with no prop change.
598
607
  <Button variant="black-white">Works anywhere</Button>
599
608
  <Button variant="black-white-outline">Also anywhere</Button>
600
- // No 'black-white-light': that variant reads --<Color>-Color-11, and
601
- // black-white is a resolved pair rather than a palette, so it has no tones.
609
+ // black-white is solid + outline, like every other colour now that the light
610
+ // shape is gone. It was the first to lose one: -light read --<C>-Color-11 and
611
+ // black-white is a resolved pair rather than a palette, so it has no tones to
612
+ // read — which is the same reason the shape did not survive anywhere else.
602
613
  ```
603
614
 
604
615
  ### ButtonGroup
@@ -656,7 +667,7 @@ import {
656
667
 
657
668
  ### TextField / Input
658
669
  ```jsx
659
- // data-surface="Container-Lowest" set internally
670
+ // data-surface set internally: "Container", or "Container-Low" when disabled
660
671
  <TextField
661
672
  label="Email"
662
673
  variant="primary-outline"