@omni-design/components 0.8.0 → 0.10.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 +16 -5
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components/Badge/Badge.d.ts +4 -10
- package/dist/types/components/Badge/index.d.ts +1 -1
- package/dist/types/components/Chip/Chip.d.ts +1 -8
- package/dist/types/components/Chip/index.d.ts +1 -1
- package/dist/types/components/Icon/Icon.d.ts +0 -1
- package/dist/types/components/Stepper/Stepper.d.ts +3 -1
- package/package.json +10 -3
- package/dist/types/components/Header/Header.d.ts +0 -53
- package/dist/types/components/Header/index.d.ts +0 -1
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'
|
|
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
|
-
//
|
|
601
|
-
//
|
|
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
|
|
670
|
+
// data-surface set internally: "Container", or "Container-Low" when disabled
|
|
660
671
|
<TextField
|
|
661
672
|
label="Email"
|
|
662
673
|
variant="primary-outline"
|