@phcdevworks/spectre-components 1.4.0 → 1.6.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/README.md +280 -22
- package/dist/alert.cjs +462 -0
- package/dist/alert.cjs.map +1 -0
- package/dist/alert.d.cts +67 -0
- package/dist/alert.d.ts +67 -0
- package/dist/alert.js +457 -0
- package/dist/alert.js.map +1 -0
- package/dist/avatar.cjs +462 -0
- package/dist/avatar.cjs.map +1 -0
- package/dist/avatar.d.cts +73 -0
- package/dist/avatar.d.ts +73 -0
- package/dist/avatar.js +457 -0
- package/dist/avatar.js.map +1 -0
- package/dist/badge.cjs +13 -1
- package/dist/badge.cjs.map +1 -1
- package/dist/badge.d.cts +4 -4
- package/dist/badge.d.ts +4 -4
- package/dist/badge.js +13 -1
- package/dist/badge.js.map +1 -1
- package/dist/{base-BRQ7QAAr.d.cts → base-D0s95V2v.d.cts} +2 -0
- package/dist/{base-BRQ7QAAr.d.ts → base-D0s95V2v.d.ts} +2 -0
- package/dist/button.cjs +14 -5
- package/dist/button.cjs.map +1 -1
- package/dist/button.d.cts +4 -5
- package/dist/button.d.ts +4 -5
- package/dist/button.js +14 -5
- package/dist/button.js.map +1 -1
- package/dist/card.cjs +19 -2
- package/dist/card.cjs.map +1 -1
- package/dist/card.d.cts +4 -4
- package/dist/card.d.ts +4 -4
- package/dist/card.js +19 -2
- package/dist/card.js.map +1 -1
- package/dist/checkbox.cjs +16 -5
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.d.cts +2 -3
- package/dist/checkbox.d.ts +2 -3
- package/dist/checkbox.js +17 -6
- package/dist/checkbox.js.map +1 -1
- package/dist/container.cjs +421 -0
- package/dist/container.cjs.map +1 -0
- package/dist/container.d.cts +37 -0
- package/dist/container.d.ts +37 -0
- package/dist/container.js +417 -0
- package/dist/container.js.map +1 -0
- package/dist/fieldset.cjs +16 -7
- package/dist/fieldset.cjs.map +1 -1
- package/dist/fieldset.d.cts +2 -3
- package/dist/fieldset.d.ts +2 -3
- package/dist/fieldset.js +18 -9
- package/dist/fieldset.js.map +1 -1
- package/dist/form-8KZeQRgr.d.cts +40 -0
- package/dist/form-8KZeQRgr.d.ts +40 -0
- package/dist/grid.cjs +437 -0
- package/dist/grid.cjs.map +1 -0
- package/dist/grid.d.cts +42 -0
- package/dist/grid.d.ts +42 -0
- package/dist/grid.js +432 -0
- package/dist/grid.js.map +1 -0
- package/dist/icon-box.cjs +13 -1
- package/dist/icon-box.cjs.map +1 -1
- package/dist/icon-box.d.cts +4 -4
- package/dist/icon-box.d.ts +4 -4
- package/dist/icon-box.js +13 -1
- package/dist/icon-box.js.map +1 -1
- package/dist/index.cjs +916 -47
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +886 -49
- package/dist/index.js.map +1 -1
- package/dist/input.cjs +10 -3
- package/dist/input.cjs.map +1 -1
- package/dist/input.d.cts +3 -4
- package/dist/input.d.ts +3 -4
- package/dist/input.js +10 -3
- package/dist/input.js.map +1 -1
- package/dist/label.cjs +17 -2
- package/dist/label.cjs.map +1 -1
- package/dist/label.d.cts +9 -3
- package/dist/label.d.ts +9 -3
- package/dist/label.js +18 -3
- package/dist/label.js.map +1 -1
- package/dist/pricing-card.cjs +440 -0
- package/dist/pricing-card.cjs.map +1 -0
- package/dist/pricing-card.d.cts +59 -0
- package/dist/pricing-card.d.ts +59 -0
- package/dist/pricing-card.js +437 -0
- package/dist/pricing-card.js.map +1 -0
- package/dist/{projectable-D6IDeKfr.d.ts → projectable-D9YCo9NY.d.ts} +1 -1
- package/dist/{projectable-Bx-IVk0w.d.cts → projectable-DLOn6eaW.d.cts} +1 -1
- package/dist/radio.cjs +16 -5
- package/dist/radio.cjs.map +1 -1
- package/dist/radio.d.cts +2 -3
- package/dist/radio.d.ts +2 -3
- package/dist/radio.js +17 -6
- package/dist/radio.js.map +1 -1
- package/dist/rating.cjs +21 -3
- package/dist/rating.cjs.map +1 -1
- package/dist/rating.d.cts +3 -3
- package/dist/rating.d.ts +3 -3
- package/dist/rating.js +21 -3
- package/dist/rating.js.map +1 -1
- package/dist/section.cjs +400 -0
- package/dist/section.cjs.map +1 -0
- package/dist/section.d.cts +25 -0
- package/dist/section.d.ts +25 -0
- package/dist/section.js +397 -0
- package/dist/section.js.map +1 -0
- package/dist/select.cjs +14 -5
- package/dist/select.cjs.map +1 -1
- package/dist/select.d.cts +3 -4
- package/dist/select.d.ts +3 -4
- package/dist/select.js +15 -6
- package/dist/select.js.map +1 -1
- package/dist/spinner.cjs +366 -0
- package/dist/spinner.cjs.map +1 -0
- package/dist/spinner.d.cts +52 -0
- package/dist/spinner.d.ts +52 -0
- package/dist/spinner.js +361 -0
- package/dist/spinner.js.map +1 -0
- package/dist/stack.cjs +443 -0
- package/dist/stack.cjs.map +1 -0
- package/dist/stack.d.cts +48 -0
- package/dist/stack.d.ts +48 -0
- package/dist/stack.js +437 -0
- package/dist/stack.js.map +1 -0
- package/dist/tag.cjs +481 -0
- package/dist/tag.cjs.map +1 -0
- package/dist/tag.d.cts +79 -0
- package/dist/tag.d.ts +79 -0
- package/dist/tag.js +476 -0
- package/dist/tag.js.map +1 -0
- package/dist/testimonial.cjs +22 -3
- package/dist/testimonial.cjs.map +1 -1
- package/dist/testimonial.d.cts +4 -4
- package/dist/testimonial.d.ts +4 -4
- package/dist/testimonial.js +22 -3
- package/dist/testimonial.js.map +1 -1
- package/dist/textarea.cjs +14 -5
- package/dist/textarea.cjs.map +1 -1
- package/dist/textarea.d.cts +2 -3
- package/dist/textarea.d.ts +2 -3
- package/dist/textarea.js +15 -6
- package/dist/textarea.js.map +1 -1
- package/package.json +70 -17
- package/dist/form-Dg6kuOS7.d.cts +0 -18
- package/dist/form-Dg6kuOS7.d.ts +0 -18
package/README.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @phcdevworks/spectre-components
|
|
2
2
|
|
|
3
|
+
## Repository Snapshot
|
|
4
|
+
|
|
5
|
+
| Field | Value |
|
|
6
|
+
| ---------------------- | ----------------------------------- |
|
|
7
|
+
| Project team | `project-design` |
|
|
8
|
+
| Repository role | Spectre L3a Lit web component layer |
|
|
9
|
+
| Package/artifact | `@phcdevworks/spectre-components` |
|
|
10
|
+
| Current version/status | 1.6.0 |
|
|
11
|
+
|
|
12
|
+
## Standard Workflow
|
|
13
|
+
|
|
14
|
+
1. Read [AGENTS.md](AGENTS.md), then the agent-specific guide for the task.
|
|
15
|
+
2. Check [TODO.md](TODO.md) and [ROADMAP.md](ROADMAP.md) for current scope.
|
|
16
|
+
3. Make the smallest repo-local change that satisfies the task.
|
|
17
|
+
4. Run `npm run check` when validation is required or practical.
|
|
18
|
+
5. Update docs and [CHANGELOG.md](CHANGELOG.md) only when behavior, public
|
|
19
|
+
contracts, or release-relevant metadata changed.
|
|
20
|
+
|
|
21
|
+
## Documentation Map
|
|
22
|
+
|
|
23
|
+
| Guide | Path |
|
|
24
|
+
| ----------- | ---------------------------- |
|
|
25
|
+
| Agent rules | [AGENTS.md](AGENTS.md) |
|
|
26
|
+
| Claude Code | [CLAUDE.md](CLAUDE.md) |
|
|
27
|
+
| Codex | [CODEX.md](CODEX.md) |
|
|
28
|
+
| Copilot | [COPILOT.md](COPILOT.md) |
|
|
29
|
+
| Jules | [JULES.md](JULES.md) |
|
|
30
|
+
| Roadmap | [ROADMAP.md](ROADMAP.md) |
|
|
31
|
+
| Todo | [TODO.md](TODO.md) |
|
|
32
|
+
| Changelog | [CHANGELOG.md](CHANGELOG.md) |
|
|
33
|
+
| Security | [SECURITY.md](SECURITY.md) |
|
|
34
|
+
|
|
3
35
|
[](https://www.npmjs.com/package/@phcdevworks/spectre-components)
|
|
4
36
|
[](https://github.com/phcdevworks/spectre-components/actions/workflows/ci.yml)
|
|
5
37
|
[](LICENSE)
|
|
@@ -627,6 +659,203 @@ recipe.
|
|
|
627
659
|
|
|
628
660
|
**Internal target** — `[data-sp-testimonial-native]` selects the native `<div>`.
|
|
629
661
|
|
|
662
|
+
---
|
|
663
|
+
|
|
664
|
+
### sp-alert
|
|
665
|
+
|
|
666
|
+
Renders a `<div role="alert">` display primitive backed by the Spectre alert
|
|
667
|
+
recipe.
|
|
668
|
+
|
|
669
|
+
**Attributes**
|
|
670
|
+
|
|
671
|
+
| Attribute | Type | Default | Description |
|
|
672
|
+
| ------------------------- | ------------------------------------------------- | ------- | ------------------------------- |
|
|
673
|
+
| `variant` | `info \| success \| warning \| danger \| neutral` | `info` | Visual style |
|
|
674
|
+
| `size` | `sm \| md \| lg` | `md` | Alert size |
|
|
675
|
+
| `dismissed` | boolean | `false` | Dismissed visual state |
|
|
676
|
+
| `disabled` | boolean | `false` | Disabled visual state |
|
|
677
|
+
| `loading` | boolean | `false` | Busy visual state |
|
|
678
|
+
| `full-width` | boolean | `false` | Spans full container width |
|
|
679
|
+
| `id` / `title` / `aria-*` | string | — | Forwarded to the native `<div>` |
|
|
680
|
+
|
|
681
|
+
**Content projection** — children become the alert content.
|
|
682
|
+
|
|
683
|
+
**Accessibility** — renders `role="alert"` and reflects the `loading` state to
|
|
684
|
+
`aria-busy`.
|
|
685
|
+
|
|
686
|
+
**Internal target** — `[data-sp-alert-native]` selects the native `<div>`.
|
|
687
|
+
|
|
688
|
+
---
|
|
689
|
+
|
|
690
|
+
### sp-avatar
|
|
691
|
+
|
|
692
|
+
Renders a `<div>` avatar container backed by the Spectre avatar recipe.
|
|
693
|
+
|
|
694
|
+
**Attributes**
|
|
695
|
+
|
|
696
|
+
| Attribute | Type | Default | Description |
|
|
697
|
+
| ------------------------- | ---------------------------- | -------- | -------------------------------- |
|
|
698
|
+
| `size` | `xs \| sm \| md \| lg \| xl` | `md` | Avatar size |
|
|
699
|
+
| `shape` | `circle \| square` | `circle` | Avatar shape |
|
|
700
|
+
| `interactive` | boolean | `false` | Applies interactive styling |
|
|
701
|
+
| `disabled` | boolean | `false` | Disabled visual state |
|
|
702
|
+
| `loading` | boolean | `false` | Busy visual state |
|
|
703
|
+
| `full-width` | boolean | `false` | Spans full container width |
|
|
704
|
+
| `placeholder` | boolean | `false` | Placeholder background and color |
|
|
705
|
+
| `id` / `title` / `aria-*` | string | — | Forwarded to the native `<div>` |
|
|
706
|
+
|
|
707
|
+
**Content projection** — children become the avatar content (an `<img>`,
|
|
708
|
+
initials, or an icon).
|
|
709
|
+
|
|
710
|
+
**Accessibility** — reflects the `loading` state to `aria-busy`.
|
|
711
|
+
|
|
712
|
+
**Internal target** — `[data-sp-avatar-native]` selects the native `<div>`.
|
|
713
|
+
|
|
714
|
+
---
|
|
715
|
+
|
|
716
|
+
### sp-spinner
|
|
717
|
+
|
|
718
|
+
Renders a `<div role="status">` loading indicator backed by the Spectre spinner
|
|
719
|
+
recipe.
|
|
720
|
+
|
|
721
|
+
**Attributes**
|
|
722
|
+
|
|
723
|
+
| Attribute | Type | Default | Description |
|
|
724
|
+
| ------------------------- | ------------------------------------------------------------------------------------------ | ------- | ------------------------------- |
|
|
725
|
+
| `variant` | `primary \| secondary \| success \| warning \| danger \| info \| neutral \| accent \| cta` | — | Arc color |
|
|
726
|
+
| `size` | `sm \| md \| lg` | `md` | Spinner size |
|
|
727
|
+
| `disabled` | boolean | `false` | Disabled visual state |
|
|
728
|
+
| `loading` | boolean | `true` | Busy visual state |
|
|
729
|
+
| `id` / `title` / `aria-*` | string | — | Forwarded to the native `<div>` |
|
|
730
|
+
|
|
731
|
+
**Accessibility** — renders `role="status"` and reflects the `loading` state to
|
|
732
|
+
`aria-busy`. Defaults `aria-label` to `Loading` unless `aria-label` is provided.
|
|
733
|
+
|
|
734
|
+
**Internal target** — `[data-sp-spinner-native]` selects the native `<div>`.
|
|
735
|
+
|
|
736
|
+
---
|
|
737
|
+
|
|
738
|
+
### sp-tag
|
|
739
|
+
|
|
740
|
+
Renders a `<span>` tag/chip backed by the Spectre tag recipe.
|
|
741
|
+
|
|
742
|
+
**Attributes**
|
|
743
|
+
|
|
744
|
+
| Attribute | Type | Default | Description |
|
|
745
|
+
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------- | --------- | --------------------------------- |
|
|
746
|
+
| `variant` | `default \| primary \| secondary \| success \| warning \| danger \| info \| neutral \| accent \| cta \| outline \| ghost` | `default` | Tag color |
|
|
747
|
+
| `size` | `sm \| md \| lg` | `md` | Tag size |
|
|
748
|
+
| `interactive` | boolean | `false` | Applies interactive styling |
|
|
749
|
+
| `selected` | boolean | `false` | Selected/active visual state |
|
|
750
|
+
| `dismissible` | boolean | `false` | Reserves space for a dismiss icon |
|
|
751
|
+
| `disabled` | boolean | `false` | Disabled visual state |
|
|
752
|
+
| `loading` | boolean | `false` | Busy visual state |
|
|
753
|
+
| `full-width` | boolean | `false` | Spans full container width |
|
|
754
|
+
| `id` / `title` / `aria-*` | string | — | Forwarded to the native `<span>` |
|
|
755
|
+
|
|
756
|
+
**Content projection** — children become the tag label (and any projected
|
|
757
|
+
dismiss icon).
|
|
758
|
+
|
|
759
|
+
**Accessibility** — reflects the `loading` state to `aria-busy`.
|
|
760
|
+
|
|
761
|
+
**Internal target** — `[data-sp-tag-native]` selects the native `<span>`.
|
|
762
|
+
|
|
763
|
+
---
|
|
764
|
+
|
|
765
|
+
### sp-pricing-card
|
|
766
|
+
|
|
767
|
+
Renders a `<div>` pricing card container backed by the Spectre pricing-card
|
|
768
|
+
recipe.
|
|
769
|
+
|
|
770
|
+
**Attributes**
|
|
771
|
+
|
|
772
|
+
| Attribute | Type | Default | Description |
|
|
773
|
+
| ------------------------- | ------- | ------- | ------------------------------- |
|
|
774
|
+
| `featured` | boolean | `false` | Highlights the card as featured |
|
|
775
|
+
| `interactive` | boolean | `false` | Applies interactive styling |
|
|
776
|
+
| `disabled` | boolean | `false` | Disabled visual state |
|
|
777
|
+
| `loading` | boolean | `false` | Busy visual state |
|
|
778
|
+
| `full-height` | boolean | `false` | Spans full container height |
|
|
779
|
+
| `id` / `title` / `aria-*` | string | — | Forwarded to the native `<div>` |
|
|
780
|
+
|
|
781
|
+
**Content projection** — children become the pricing card content (heading,
|
|
782
|
+
price, feature list, call-to-action, etc.).
|
|
783
|
+
|
|
784
|
+
**Accessibility** — reflects the `loading` state to `aria-busy`.
|
|
785
|
+
|
|
786
|
+
**Internal target** — `[data-sp-pricing-card-native]` selects the native
|
|
787
|
+
`<div>`.
|
|
788
|
+
|
|
789
|
+
---
|
|
790
|
+
|
|
791
|
+
### sp-container
|
|
792
|
+
|
|
793
|
+
Renders a `<div>` layout container backed by the Spectre container recipe.
|
|
794
|
+
|
|
795
|
+
**Attributes**
|
|
796
|
+
|
|
797
|
+
| Attribute | Type | Default | Description |
|
|
798
|
+
| ------------------------- | ------- | ------- | --------------------------------- |
|
|
799
|
+
| `max-width` | `prose` | — | Constrains content to a max width |
|
|
800
|
+
| `id` / `title` / `aria-*` | string | — | Forwarded to the native `<div>` |
|
|
801
|
+
|
|
802
|
+
**Content projection** — children become the container content.
|
|
803
|
+
|
|
804
|
+
**Internal target** — `[data-sp-container-native]` selects the native `<div>`.
|
|
805
|
+
|
|
806
|
+
---
|
|
807
|
+
|
|
808
|
+
### sp-grid
|
|
809
|
+
|
|
810
|
+
Renders a `<div>` grid layout backed by the Spectre grid recipe.
|
|
811
|
+
|
|
812
|
+
**Attributes**
|
|
813
|
+
|
|
814
|
+
| Attribute | Type | Default | Description |
|
|
815
|
+
| ------------------------- | ----------------------------- | ------- | ------------------------------- |
|
|
816
|
+
| `columns` | `1 \| 2 \| 3 \| 4 \| 6 \| 12` | `1` | Number of grid columns |
|
|
817
|
+
| `gap` | `sm \| md \| lg` | `md` | Gap between grid items |
|
|
818
|
+
| `id` / `title` / `aria-*` | string | — | Forwarded to the native `<div>` |
|
|
819
|
+
|
|
820
|
+
**Content projection** — children become grid items.
|
|
821
|
+
|
|
822
|
+
**Internal target** — `[data-sp-grid-native]` selects the native `<div>`.
|
|
823
|
+
|
|
824
|
+
---
|
|
825
|
+
|
|
826
|
+
### sp-section
|
|
827
|
+
|
|
828
|
+
Renders a `<section>` layout wrapper backed by the Spectre section recipe.
|
|
829
|
+
|
|
830
|
+
**Attributes**
|
|
831
|
+
|
|
832
|
+
| Attribute | Type | Default | Description |
|
|
833
|
+
| ------------------------- | ------ | ------- | ----------------------------------- |
|
|
834
|
+
| `id` / `title` / `aria-*` | string | — | Forwarded to the native `<section>` |
|
|
835
|
+
|
|
836
|
+
**Content projection** — children become the section content.
|
|
837
|
+
|
|
838
|
+
**Internal target** — `[data-sp-section-native]` selects the native `<section>`.
|
|
839
|
+
|
|
840
|
+
---
|
|
841
|
+
|
|
842
|
+
### sp-stack
|
|
843
|
+
|
|
844
|
+
Renders a `<div>` flex stack backed by the Spectre stack recipe.
|
|
845
|
+
|
|
846
|
+
**Attributes**
|
|
847
|
+
|
|
848
|
+
| Attribute | Type | Default | Description |
|
|
849
|
+
| ------------------------- | ------------------------ | ---------- | ------------------------------------- |
|
|
850
|
+
| `direction` | `vertical \| horizontal` | `vertical` | Stack axis |
|
|
851
|
+
| `basis` | `sidebar` | — | Reserves sidebar-sized basis on items |
|
|
852
|
+
| `align` | `center \| stretch` | `center` | Cross-axis alignment |
|
|
853
|
+
| `id` / `title` / `aria-*` | string | — | Forwarded to the native `<div>` |
|
|
854
|
+
|
|
855
|
+
**Content projection** — children become stack items.
|
|
856
|
+
|
|
857
|
+
**Internal target** — `[data-sp-stack-native]` selects the native `<div>`.
|
|
858
|
+
|
|
630
859
|
## Package exports / API surface
|
|
631
860
|
|
|
632
861
|
### Root — `@phcdevworks/spectre-components`
|
|
@@ -646,13 +875,19 @@ defineSpectreComponents() // registers all sp-* elements
|
|
|
646
875
|
`defineSpectreSelect`, `defineSpectreCheckbox`, `defineSpectreRadio`,
|
|
647
876
|
`defineSpectreLabel`, `defineSpectreFieldset`, `defineSpectreBadge`,
|
|
648
877
|
`defineSpectreCard`, `defineSpectreIconBox`, `defineSpectreRating`,
|
|
649
|
-
`defineSpectreTestimonial`
|
|
878
|
+
`defineSpectreTestimonial`, `defineSpectreAlert`, `defineSpectreAvatar`,
|
|
879
|
+
`defineSpectreSpinner`, `defineSpectreTag`, `defineSpectrePricingCard`,
|
|
880
|
+
`defineSpectreContainer`, `defineSpectreGrid`, `defineSpectreSection`,
|
|
881
|
+
`defineSpectreStack`
|
|
650
882
|
|
|
651
883
|
**Element classes**: `SpectreButtonElement`, `SpectreInputElement`,
|
|
652
884
|
`SpectreTextareaElement`, `SpectreSelectElement`, `SpectreCheckboxElement`,
|
|
653
885
|
`SpectreRadioElement`, `SpectreLabelElement`, `SpectreFieldsetElement`,
|
|
654
886
|
`SpectreBadgeElement`, `SpectreCardElement`, `SpectreIconBoxElement`,
|
|
655
|
-
`SpectreRatingElement`, `SpectreTestimonialElement`
|
|
887
|
+
`SpectreRatingElement`, `SpectreTestimonialElement`, `SpectreAlertElement`,
|
|
888
|
+
`SpectreAvatarElement`, `SpectreSpinnerElement`, `SpectreTagElement`,
|
|
889
|
+
`SpectrePricingCardElement`, `SpectreContainerElement`, `SpectreGridElement`,
|
|
890
|
+
`SpectreSectionElement`, `SpectreStackElement`
|
|
656
891
|
|
|
657
892
|
**Button constants and types**: `spectreButtonVariants`, `spectreButtonSizes`,
|
|
658
893
|
`spectreButtonTypes`, `SpectreButtonVariant`, `SpectreButtonSize`,
|
|
@@ -668,31 +903,54 @@ defineSpectreComponents() // registers all sp-* elements
|
|
|
668
903
|
|
|
669
904
|
**Display constants and types**: `spectreBadgeVariants`, `spectreBadgeSizes`,
|
|
670
905
|
`spectreCardVariants`, `spectreIconBoxVariants`, `spectreIconBoxSizes`,
|
|
671
|
-
`spectreRatingSizes`, `spectreTestimonialVariants`, `
|
|
672
|
-
`
|
|
673
|
-
`
|
|
674
|
-
`
|
|
675
|
-
`
|
|
906
|
+
`spectreRatingSizes`, `spectreTestimonialVariants`, `spectreAlertVariants`,
|
|
907
|
+
`spectreAlertSizes`, `spectreAvatarShapes`, `spectreAvatarSizes`,
|
|
908
|
+
`spectreSpinnerVariants`, `spectreSpinnerSizes`, `spectreTagVariants`,
|
|
909
|
+
`spectreTagSizes`, `SpectreBadgeVariant`, `SpectreBadgeSize`,
|
|
910
|
+
`SpectreCardVariant`, `SpectreIconBoxVariant`, `SpectreIconBoxSize`,
|
|
911
|
+
`SpectreRatingSize`, `SpectreTestimonialVariant`, `SpectreAlertVariant`,
|
|
912
|
+
`SpectreAlertSize`, `SpectreAvatarShape`, `SpectreAvatarSize`,
|
|
913
|
+
`SpectreSpinnerVariant`, `SpectreSpinnerSize`, `SpectreTagVariant`,
|
|
914
|
+
`SpectreTagSize`, `SpectreBadgeProps`, `SpectreCardProps`,
|
|
915
|
+
`SpectreIconBoxProps`, `SpectreRatingProps`, `SpectreTestimonialProps`,
|
|
916
|
+
`SpectreAlertProps`, `SpectreAvatarProps`, `SpectreSpinnerProps`,
|
|
917
|
+
`SpectreTagProps`, `SpectrePricingCardProps`
|
|
918
|
+
|
|
919
|
+
**Layout constants and types**: `spectreContainerMaxWidths`,
|
|
920
|
+
`spectreGridColumns`, `spectreGridGaps`, `spectreStackAligns`,
|
|
921
|
+
`spectreStackBases`, `spectreStackDirections`, `SpectreContainerMaxWidth`,
|
|
922
|
+
`SpectreGridColumns`, `SpectreGridGap`, `SpectreStackAlign`,
|
|
923
|
+
`SpectreStackBasis`, `SpectreStackDirection`, `SpectreContainerProps`,
|
|
924
|
+
`SpectreGridProps`, `SpectreSectionProps`, `SpectreStackProps`
|
|
676
925
|
|
|
677
926
|
### Subpath entry points
|
|
678
927
|
|
|
679
928
|
Each entry point registers only that component and exports only its surface:
|
|
680
929
|
|
|
681
|
-
| Entry point
|
|
682
|
-
|
|
|
683
|
-
| `.../button`
|
|
684
|
-
| `.../input`
|
|
685
|
-
| `.../textarea`
|
|
686
|
-
| `.../select`
|
|
687
|
-
| `.../checkbox`
|
|
688
|
-
| `.../radio`
|
|
689
|
-
| `.../label`
|
|
690
|
-
| `.../fieldset`
|
|
691
|
-
| `.../badge`
|
|
692
|
-
| `.../card`
|
|
693
|
-
| `.../icon-box`
|
|
694
|
-
| `.../rating`
|
|
695
|
-
| `.../testimonial`
|
|
930
|
+
| Entry point | Registers | Key exports |
|
|
931
|
+
| ------------------ | ----------------- | ---------------------------------------------------------------------------------------- |
|
|
932
|
+
| `.../button` | `sp-button` | `defineSpectreButton`, `SpectreButtonElement`, button constants and types |
|
|
933
|
+
| `.../input` | `sp-input` | `defineSpectreInput`, `SpectreInputElement`, input constants and types |
|
|
934
|
+
| `.../textarea` | `sp-textarea` | `defineSpectreTextarea`, `SpectreTextareaElement`, `SpectreTextareaProps` |
|
|
935
|
+
| `.../select` | `sp-select` | `defineSpectreSelect`, `SpectreSelectElement`, `SpectreSelectProps` |
|
|
936
|
+
| `.../checkbox` | `sp-checkbox` | `defineSpectreCheckbox`, `SpectreCheckboxElement`, `SpectreCheckboxProps` |
|
|
937
|
+
| `.../radio` | `sp-radio` | `defineSpectreRadio`, `SpectreRadioElement`, `SpectreRadioProps` |
|
|
938
|
+
| `.../label` | `sp-label` | `defineSpectreLabel`, `SpectreLabelElement`, `SpectreLabelProps` |
|
|
939
|
+
| `.../fieldset` | `sp-fieldset` | `defineSpectreFieldset`, `SpectreFieldsetElement`, `SpectreFieldsetProps` |
|
|
940
|
+
| `.../badge` | `sp-badge` | `defineSpectreBadge`, `SpectreBadgeElement`, badge constants and types |
|
|
941
|
+
| `.../card` | `sp-card` | `defineSpectreCard`, `SpectreCardElement`, card constants and types |
|
|
942
|
+
| `.../icon-box` | `sp-icon-box` | `defineSpectreIconBox`, `SpectreIconBoxElement`, icon-box constants and types |
|
|
943
|
+
| `.../rating` | `sp-rating` | `defineSpectreRating`, `SpectreRatingElement`, rating constants and types |
|
|
944
|
+
| `.../testimonial` | `sp-testimonial` | `defineSpectreTestimonial`, `SpectreTestimonialElement`, testimonial constants and types |
|
|
945
|
+
| `.../alert` | `sp-alert` | `defineSpectreAlert`, `SpectreAlertElement`, alert constants and types |
|
|
946
|
+
| `.../avatar` | `sp-avatar` | `defineSpectreAvatar`, `SpectreAvatarElement`, avatar constants and types |
|
|
947
|
+
| `.../spinner` | `sp-spinner` | `defineSpectreSpinner`, `SpectreSpinnerElement`, spinner constants and types |
|
|
948
|
+
| `.../tag` | `sp-tag` | `defineSpectreTag`, `SpectreTagElement`, tag constants and types |
|
|
949
|
+
| `.../pricing-card` | `sp-pricing-card` | `defineSpectrePricingCard`, `SpectrePricingCardElement`, `SpectrePricingCardProps` |
|
|
950
|
+
| `.../container` | `sp-container` | `defineSpectreContainer`, `SpectreContainerElement`, container constants and types |
|
|
951
|
+
| `.../grid` | `sp-grid` | `defineSpectreGrid`, `SpectreGridElement`, grid constants and types |
|
|
952
|
+
| `.../section` | `sp-section` | `defineSpectreSection`, `SpectreSectionElement`, `SpectreSectionProps` |
|
|
953
|
+
| `.../stack` | `sp-stack` | `defineSpectreStack`, `SpectreStackElement`, stack constants and types |
|
|
696
954
|
|
|
697
955
|
Size constants are shared between input, textarea, and select. Import
|
|
698
956
|
`spectreInputSizes` / `SpectreInputSize` from `.../input` when needed alongside
|