@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.
Files changed (148) hide show
  1. package/README.md +280 -22
  2. package/dist/alert.cjs +462 -0
  3. package/dist/alert.cjs.map +1 -0
  4. package/dist/alert.d.cts +67 -0
  5. package/dist/alert.d.ts +67 -0
  6. package/dist/alert.js +457 -0
  7. package/dist/alert.js.map +1 -0
  8. package/dist/avatar.cjs +462 -0
  9. package/dist/avatar.cjs.map +1 -0
  10. package/dist/avatar.d.cts +73 -0
  11. package/dist/avatar.d.ts +73 -0
  12. package/dist/avatar.js +457 -0
  13. package/dist/avatar.js.map +1 -0
  14. package/dist/badge.cjs +13 -1
  15. package/dist/badge.cjs.map +1 -1
  16. package/dist/badge.d.cts +4 -4
  17. package/dist/badge.d.ts +4 -4
  18. package/dist/badge.js +13 -1
  19. package/dist/badge.js.map +1 -1
  20. package/dist/{base-BRQ7QAAr.d.cts → base-D0s95V2v.d.cts} +2 -0
  21. package/dist/{base-BRQ7QAAr.d.ts → base-D0s95V2v.d.ts} +2 -0
  22. package/dist/button.cjs +14 -5
  23. package/dist/button.cjs.map +1 -1
  24. package/dist/button.d.cts +4 -5
  25. package/dist/button.d.ts +4 -5
  26. package/dist/button.js +14 -5
  27. package/dist/button.js.map +1 -1
  28. package/dist/card.cjs +19 -2
  29. package/dist/card.cjs.map +1 -1
  30. package/dist/card.d.cts +4 -4
  31. package/dist/card.d.ts +4 -4
  32. package/dist/card.js +19 -2
  33. package/dist/card.js.map +1 -1
  34. package/dist/checkbox.cjs +16 -5
  35. package/dist/checkbox.cjs.map +1 -1
  36. package/dist/checkbox.d.cts +2 -3
  37. package/dist/checkbox.d.ts +2 -3
  38. package/dist/checkbox.js +17 -6
  39. package/dist/checkbox.js.map +1 -1
  40. package/dist/container.cjs +421 -0
  41. package/dist/container.cjs.map +1 -0
  42. package/dist/container.d.cts +37 -0
  43. package/dist/container.d.ts +37 -0
  44. package/dist/container.js +417 -0
  45. package/dist/container.js.map +1 -0
  46. package/dist/fieldset.cjs +16 -7
  47. package/dist/fieldset.cjs.map +1 -1
  48. package/dist/fieldset.d.cts +2 -3
  49. package/dist/fieldset.d.ts +2 -3
  50. package/dist/fieldset.js +18 -9
  51. package/dist/fieldset.js.map +1 -1
  52. package/dist/form-8KZeQRgr.d.cts +40 -0
  53. package/dist/form-8KZeQRgr.d.ts +40 -0
  54. package/dist/grid.cjs +437 -0
  55. package/dist/grid.cjs.map +1 -0
  56. package/dist/grid.d.cts +42 -0
  57. package/dist/grid.d.ts +42 -0
  58. package/dist/grid.js +432 -0
  59. package/dist/grid.js.map +1 -0
  60. package/dist/icon-box.cjs +13 -1
  61. package/dist/icon-box.cjs.map +1 -1
  62. package/dist/icon-box.d.cts +4 -4
  63. package/dist/icon-box.d.ts +4 -4
  64. package/dist/icon-box.js +13 -1
  65. package/dist/icon-box.js.map +1 -1
  66. package/dist/index.cjs +916 -47
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.d.cts +12 -3
  69. package/dist/index.d.ts +12 -3
  70. package/dist/index.js +886 -49
  71. package/dist/index.js.map +1 -1
  72. package/dist/input.cjs +10 -3
  73. package/dist/input.cjs.map +1 -1
  74. package/dist/input.d.cts +3 -4
  75. package/dist/input.d.ts +3 -4
  76. package/dist/input.js +10 -3
  77. package/dist/input.js.map +1 -1
  78. package/dist/label.cjs +17 -2
  79. package/dist/label.cjs.map +1 -1
  80. package/dist/label.d.cts +9 -3
  81. package/dist/label.d.ts +9 -3
  82. package/dist/label.js +18 -3
  83. package/dist/label.js.map +1 -1
  84. package/dist/pricing-card.cjs +440 -0
  85. package/dist/pricing-card.cjs.map +1 -0
  86. package/dist/pricing-card.d.cts +59 -0
  87. package/dist/pricing-card.d.ts +59 -0
  88. package/dist/pricing-card.js +437 -0
  89. package/dist/pricing-card.js.map +1 -0
  90. package/dist/{projectable-D6IDeKfr.d.ts → projectable-D9YCo9NY.d.ts} +1 -1
  91. package/dist/{projectable-Bx-IVk0w.d.cts → projectable-DLOn6eaW.d.cts} +1 -1
  92. package/dist/radio.cjs +16 -5
  93. package/dist/radio.cjs.map +1 -1
  94. package/dist/radio.d.cts +2 -3
  95. package/dist/radio.d.ts +2 -3
  96. package/dist/radio.js +17 -6
  97. package/dist/radio.js.map +1 -1
  98. package/dist/rating.cjs +21 -3
  99. package/dist/rating.cjs.map +1 -1
  100. package/dist/rating.d.cts +3 -3
  101. package/dist/rating.d.ts +3 -3
  102. package/dist/rating.js +21 -3
  103. package/dist/rating.js.map +1 -1
  104. package/dist/section.cjs +400 -0
  105. package/dist/section.cjs.map +1 -0
  106. package/dist/section.d.cts +25 -0
  107. package/dist/section.d.ts +25 -0
  108. package/dist/section.js +397 -0
  109. package/dist/section.js.map +1 -0
  110. package/dist/select.cjs +14 -5
  111. package/dist/select.cjs.map +1 -1
  112. package/dist/select.d.cts +3 -4
  113. package/dist/select.d.ts +3 -4
  114. package/dist/select.js +15 -6
  115. package/dist/select.js.map +1 -1
  116. package/dist/spinner.cjs +366 -0
  117. package/dist/spinner.cjs.map +1 -0
  118. package/dist/spinner.d.cts +52 -0
  119. package/dist/spinner.d.ts +52 -0
  120. package/dist/spinner.js +361 -0
  121. package/dist/spinner.js.map +1 -0
  122. package/dist/stack.cjs +443 -0
  123. package/dist/stack.cjs.map +1 -0
  124. package/dist/stack.d.cts +48 -0
  125. package/dist/stack.d.ts +48 -0
  126. package/dist/stack.js +437 -0
  127. package/dist/stack.js.map +1 -0
  128. package/dist/tag.cjs +481 -0
  129. package/dist/tag.cjs.map +1 -0
  130. package/dist/tag.d.cts +79 -0
  131. package/dist/tag.d.ts +79 -0
  132. package/dist/tag.js +476 -0
  133. package/dist/tag.js.map +1 -0
  134. package/dist/testimonial.cjs +22 -3
  135. package/dist/testimonial.cjs.map +1 -1
  136. package/dist/testimonial.d.cts +4 -4
  137. package/dist/testimonial.d.ts +4 -4
  138. package/dist/testimonial.js +22 -3
  139. package/dist/testimonial.js.map +1 -1
  140. package/dist/textarea.cjs +14 -5
  141. package/dist/textarea.cjs.map +1 -1
  142. package/dist/textarea.d.cts +2 -3
  143. package/dist/textarea.d.ts +2 -3
  144. package/dist/textarea.js +15 -6
  145. package/dist/textarea.js.map +1 -1
  146. package/package.json +70 -17
  147. package/dist/form-Dg6kuOS7.d.cts +0 -18
  148. 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
  [![npm version](https://img.shields.io/npm/v/@phcdevworks/spectre-components)](https://www.npmjs.com/package/@phcdevworks/spectre-components)
4
36
  [![CI](https://github.com/phcdevworks/spectre-components/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/phcdevworks/spectre-components/actions/workflows/ci.yml)
5
37
  [![License](https://img.shields.io/npm/l/@phcdevworks/spectre-components)](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`, `SpectreBadgeVariant`,
672
- `SpectreBadgeSize`, `SpectreCardVariant`, `SpectreIconBoxVariant`,
673
- `SpectreIconBoxSize`, `SpectreRatingSize`, `SpectreTestimonialVariant`,
674
- `SpectreBadgeProps`, `SpectreCardProps`, `SpectreIconBoxProps`,
675
- `SpectreRatingProps`, `SpectreTestimonialProps`
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 | Registers | Key exports |
682
- | ----------------- | ---------------- | ---------------------------------------------------------------------------------------- |
683
- | `.../button` | `sp-button` | `defineSpectreButton`, `SpectreButtonElement`, button constants and types |
684
- | `.../input` | `sp-input` | `defineSpectreInput`, `SpectreInputElement`, input constants and types |
685
- | `.../textarea` | `sp-textarea` | `defineSpectreTextarea`, `SpectreTextareaElement`, `SpectreTextareaProps` |
686
- | `.../select` | `sp-select` | `defineSpectreSelect`, `SpectreSelectElement`, `SpectreSelectProps` |
687
- | `.../checkbox` | `sp-checkbox` | `defineSpectreCheckbox`, `SpectreCheckboxElement`, `SpectreCheckboxProps` |
688
- | `.../radio` | `sp-radio` | `defineSpectreRadio`, `SpectreRadioElement`, `SpectreRadioProps` |
689
- | `.../label` | `sp-label` | `defineSpectreLabel`, `SpectreLabelElement`, `SpectreLabelProps` |
690
- | `.../fieldset` | `sp-fieldset` | `defineSpectreFieldset`, `SpectreFieldsetElement`, `SpectreFieldsetProps` |
691
- | `.../badge` | `sp-badge` | `defineSpectreBadge`, `SpectreBadgeElement`, badge constants and types |
692
- | `.../card` | `sp-card` | `defineSpectreCard`, `SpectreCardElement`, card constants and types |
693
- | `.../icon-box` | `sp-icon-box` | `defineSpectreIconBox`, `SpectreIconBoxElement`, icon-box constants and types |
694
- | `.../rating` | `sp-rating` | `defineSpectreRating`, `SpectreRatingElement`, rating constants and types |
695
- | `.../testimonial` | `sp-testimonial` | `defineSpectreTestimonial`, `SpectreTestimonialElement`, testimonial constants and types |
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