@prismora/react 0.0.0-stage → 0.1.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.
Files changed (219) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +19 -2
  3. package/dist/components/Accordion.d.ts +19 -0
  4. package/dist/components/Accordion.js +4 -0
  5. package/dist/components/AccordionItem.d.ts +24 -0
  6. package/dist/components/AccordionItem.js +4 -0
  7. package/dist/components/Alert.d.ts +28 -0
  8. package/dist/components/Alert.js +4 -0
  9. package/dist/components/Avatar.d.ts +27 -0
  10. package/dist/components/Avatar.js +4 -0
  11. package/dist/components/AvatarGroup.d.ts +23 -0
  12. package/dist/components/AvatarGroup.js +4 -0
  13. package/dist/components/BackToTop.d.ts +25 -0
  14. package/dist/components/BackToTop.js +4 -0
  15. package/dist/components/Badge.d.ts +23 -0
  16. package/dist/components/Badge.js +4 -0
  17. package/dist/components/Banner.d.ts +30 -0
  18. package/dist/components/Banner.js +4 -0
  19. package/dist/components/Breadcrumb.d.ts +23 -0
  20. package/dist/components/Breadcrumb.js +4 -0
  21. package/dist/components/BreadcrumbItem.d.ts +21 -0
  22. package/dist/components/BreadcrumbItem.js +4 -0
  23. package/dist/components/Button.d.ts +49 -0
  24. package/dist/components/Button.js +4 -0
  25. package/dist/components/ButtonGroup.d.ts +19 -0
  26. package/dist/components/ButtonGroup.js +4 -0
  27. package/dist/components/Calendar.d.ts +34 -0
  28. package/dist/components/Calendar.js +4 -0
  29. package/dist/components/Card.d.ts +25 -0
  30. package/dist/components/Card.js +4 -0
  31. package/dist/components/Carousel.d.ts +32 -0
  32. package/dist/components/Carousel.js +4 -0
  33. package/dist/components/Cascader.d.ts +42 -0
  34. package/dist/components/Cascader.js +4 -0
  35. package/dist/components/Chart.d.ts +42 -0
  36. package/dist/components/Chart.js +4 -0
  37. package/dist/components/Chat.d.ts +19 -0
  38. package/dist/components/Chat.js +4 -0
  39. package/dist/components/ChatMessage.d.ts +31 -0
  40. package/dist/components/ChatMessage.js +4 -0
  41. package/dist/components/Checkbox.d.ts +43 -0
  42. package/dist/components/Checkbox.js +4 -0
  43. package/dist/components/CheckboxGroup.d.ts +47 -0
  44. package/dist/components/CheckboxGroup.js +4 -0
  45. package/dist/components/Choice.d.ts +15 -0
  46. package/dist/components/Choice.js +4 -0
  47. package/dist/components/CodeBlock.d.ts +32 -0
  48. package/dist/components/CodeBlock.js +4 -0
  49. package/dist/components/ColorPicker.d.ts +49 -0
  50. package/dist/components/ColorPicker.js +4 -0
  51. package/dist/components/Combobox.d.ts +73 -0
  52. package/dist/components/Combobox.js +4 -0
  53. package/dist/components/Command.d.ts +50 -0
  54. package/dist/components/Command.js +4 -0
  55. package/dist/components/CommandItem.d.ts +21 -0
  56. package/dist/components/CommandItem.js +4 -0
  57. package/dist/components/Composer.d.ts +34 -0
  58. package/dist/components/Composer.js +4 -0
  59. package/dist/components/ContextMenu.d.ts +16 -0
  60. package/dist/components/ContextMenu.js +4 -0
  61. package/dist/components/CopyButton.d.ts +35 -0
  62. package/dist/components/CopyButton.js +4 -0
  63. package/dist/components/Countdown.d.ts +28 -0
  64. package/dist/components/Countdown.js +4 -0
  65. package/dist/components/DataTable.d.ts +90 -0
  66. package/dist/components/DataTable.js +4 -0
  67. package/dist/components/DatePicker.d.ts +58 -0
  68. package/dist/components/DatePicker.js +4 -0
  69. package/dist/components/DescriptionItem.d.ts +19 -0
  70. package/dist/components/DescriptionItem.js +4 -0
  71. package/dist/components/DescriptionList.d.ts +25 -0
  72. package/dist/components/DescriptionList.js +4 -0
  73. package/dist/components/Dialog.d.ts +33 -0
  74. package/dist/components/Dialog.js +4 -0
  75. package/dist/components/Divider.d.ts +19 -0
  76. package/dist/components/Divider.js +4 -0
  77. package/dist/components/Drawer.d.ts +35 -0
  78. package/dist/components/Drawer.js +4 -0
  79. package/dist/components/Editor.d.ts +33 -0
  80. package/dist/components/Editor.js +4 -0
  81. package/dist/components/EmptyState.d.ts +27 -0
  82. package/dist/components/EmptyState.js +4 -0
  83. package/dist/components/FileUpload.d.ts +41 -0
  84. package/dist/components/FileUpload.js +4 -0
  85. package/dist/components/Form.d.ts +15 -0
  86. package/dist/components/Form.js +4 -0
  87. package/dist/components/FormatNumber.d.ts +31 -0
  88. package/dist/components/FormatNumber.js +4 -0
  89. package/dist/components/Icon.d.ts +25 -0
  90. package/dist/components/Icon.js +4 -0
  91. package/dist/components/Image.d.ts +39 -0
  92. package/dist/components/Image.js +4 -0
  93. package/dist/components/Indicator.d.ts +35 -0
  94. package/dist/components/Indicator.js +4 -0
  95. package/dist/components/InlineEdit.d.ts +31 -0
  96. package/dist/components/InlineEdit.js +4 -0
  97. package/dist/components/Input.d.ts +74 -0
  98. package/dist/components/Input.js +4 -0
  99. package/dist/components/Kbd.d.ts +19 -0
  100. package/dist/components/Kbd.js +4 -0
  101. package/dist/components/List.d.ts +23 -0
  102. package/dist/components/List.js +4 -0
  103. package/dist/components/ListItem.d.ts +39 -0
  104. package/dist/components/ListItem.js +4 -0
  105. package/dist/components/Menu.d.ts +12 -0
  106. package/dist/components/Menu.js +4 -0
  107. package/dist/components/Menubar.d.ts +11 -0
  108. package/dist/components/Menubar.js +4 -0
  109. package/dist/components/Meter.d.ts +39 -0
  110. package/dist/components/Meter.js +4 -0
  111. package/dist/components/Nav.d.ts +27 -0
  112. package/dist/components/Nav.js +4 -0
  113. package/dist/components/NavGroup.d.ts +19 -0
  114. package/dist/components/NavGroup.js +4 -0
  115. package/dist/components/NavItem.d.ts +38 -0
  116. package/dist/components/NavItem.js +4 -0
  117. package/dist/components/NumberInput.d.ts +49 -0
  118. package/dist/components/NumberInput.js +4 -0
  119. package/dist/components/Pagination.d.ts +40 -0
  120. package/dist/components/Pagination.js +4 -0
  121. package/dist/components/PinInput.d.ts +48 -0
  122. package/dist/components/PinInput.js +4 -0
  123. package/dist/components/Popover.d.ts +17 -0
  124. package/dist/components/Popover.js +4 -0
  125. package/dist/components/Progress.d.ts +31 -0
  126. package/dist/components/Progress.js +4 -0
  127. package/dist/components/PullRefresh.d.ts +26 -0
  128. package/dist/components/PullRefresh.js +4 -0
  129. package/dist/components/QrCode.d.ts +27 -0
  130. package/dist/components/QrCode.js +4 -0
  131. package/dist/components/Radio.d.ts +15 -0
  132. package/dist/components/Radio.js +4 -0
  133. package/dist/components/RadioGroup.d.ts +43 -0
  134. package/dist/components/RadioGroup.js +4 -0
  135. package/dist/components/RangeSlider.d.ts +45 -0
  136. package/dist/components/RangeSlider.js +4 -0
  137. package/dist/components/Rating.d.ts +40 -0
  138. package/dist/components/Rating.js +4 -0
  139. package/dist/components/RelativeTime.d.ts +29 -0
  140. package/dist/components/RelativeTime.js +4 -0
  141. package/dist/components/Scheduler.d.ts +40 -0
  142. package/dist/components/Scheduler.js +4 -0
  143. package/dist/components/Segment.d.ts +23 -0
  144. package/dist/components/Segment.js +4 -0
  145. package/dist/components/Segmented.d.ts +36 -0
  146. package/dist/components/Segmented.js +4 -0
  147. package/dist/components/Select.d.ts +57 -0
  148. package/dist/components/Select.js +4 -0
  149. package/dist/components/ShareButton.d.ts +35 -0
  150. package/dist/components/ShareButton.js +4 -0
  151. package/dist/components/Signature.d.ts +36 -0
  152. package/dist/components/Signature.js +4 -0
  153. package/dist/components/Skeleton.d.ts +25 -0
  154. package/dist/components/Skeleton.js +4 -0
  155. package/dist/components/Slider.d.ts +53 -0
  156. package/dist/components/Slider.js +4 -0
  157. package/dist/components/Sortable.d.ts +14 -0
  158. package/dist/components/Sortable.js +4 -0
  159. package/dist/components/Sparkline.d.ts +23 -0
  160. package/dist/components/Sparkline.js +4 -0
  161. package/dist/components/Spinner.d.ts +21 -0
  162. package/dist/components/Spinner.js +4 -0
  163. package/dist/components/Splitter.d.ts +30 -0
  164. package/dist/components/Splitter.js +4 -0
  165. package/dist/components/Stat.d.ts +33 -0
  166. package/dist/components/Stat.js +4 -0
  167. package/dist/components/Step.d.ts +27 -0
  168. package/dist/components/Step.js +4 -0
  169. package/dist/components/Steps.d.ts +26 -0
  170. package/dist/components/Steps.js +4 -0
  171. package/dist/components/Switch.d.ts +43 -0
  172. package/dist/components/Switch.js +4 -0
  173. package/dist/components/Tab.d.ts +21 -0
  174. package/dist/components/Tab.js +4 -0
  175. package/dist/components/TabPanel.d.ts +9 -0
  176. package/dist/components/TabPanel.js +4 -0
  177. package/dist/components/Table.d.ts +43 -0
  178. package/dist/components/Table.js +4 -0
  179. package/dist/components/Tabs.d.ts +29 -0
  180. package/dist/components/Tabs.js +4 -0
  181. package/dist/components/Tag.d.ts +35 -0
  182. package/dist/components/Tag.js +4 -0
  183. package/dist/components/Textarea.d.ts +51 -0
  184. package/dist/components/Textarea.js +4 -0
  185. package/dist/components/ThemeSwitch.d.ts +26 -0
  186. package/dist/components/ThemeSwitch.js +4 -0
  187. package/dist/components/TimePicker.d.ts +53 -0
  188. package/dist/components/TimePicker.js +4 -0
  189. package/dist/components/Timeline.d.ts +19 -0
  190. package/dist/components/Timeline.js +4 -0
  191. package/dist/components/TimelineItem.d.ts +25 -0
  192. package/dist/components/TimelineItem.js +4 -0
  193. package/dist/components/Toaster.d.ts +17 -0
  194. package/dist/components/Toaster.js +4 -0
  195. package/dist/components/Toggle.d.ts +30 -0
  196. package/dist/components/Toggle.js +4 -0
  197. package/dist/components/ToggleGroup.d.ts +40 -0
  198. package/dist/components/ToggleGroup.js +4 -0
  199. package/dist/components/Toolbar.d.ts +13 -0
  200. package/dist/components/Toolbar.js +4 -0
  201. package/dist/components/Tooltip.d.ts +11 -0
  202. package/dist/components/Tooltip.js +4 -0
  203. package/dist/components/Tour.d.ts +16 -0
  204. package/dist/components/Tour.js +4 -0
  205. package/dist/components/Transfer.d.ts +42 -0
  206. package/dist/components/Transfer.js +4 -0
  207. package/dist/components/Tree.d.ts +45 -0
  208. package/dist/components/Tree.js +4 -0
  209. package/dist/components/TreeItem.d.ts +38 -0
  210. package/dist/components/TreeItem.js +4 -0
  211. package/dist/components/TreeSelect.d.ts +46 -0
  212. package/dist/components/TreeSelect.js +4 -0
  213. package/dist/components/VirtualList.d.ts +31 -0
  214. package/dist/components/VirtualList.js +4 -0
  215. package/dist/create-component.d.ts +9 -0
  216. package/dist/create-component.js +51 -0
  217. package/dist/index.d.ts +113 -0
  218. package/dist/index.js +109 -0
  219. package/package.json +41 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aravind Kumar and Prismora contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,20 @@
1
- # Temporary Holding Version
1
+ # @prismora/react
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ React 19 components for Prismora: typed props and camelCase events (onPmChange) for every element.
4
+
5
+ ```sh
6
+ npm install @prismora/react @prismora/css
7
+ ```
8
+
9
+ ```tsx
10
+ import '@prismora/css/foundation.css';
11
+ import { Button, Dialog } from '@prismora/react';
12
+
13
+ export function Save() {
14
+ return <Button variant="solid" onClick={() => save()}>Save</Button>;
15
+ }
16
+ ```
17
+
18
+ Each component registers its element on import, so unused ones are tree-shaken. Server rendering (Next.js) is supported.
19
+
20
+ Documentation: [prismora.design/docs/frameworks](https://prismora.design/docs/frameworks) · Part of [Prismora](https://github.com/axxra/prismora), one seed, every theme. MIT licence.
@@ -0,0 +1,19 @@
1
+ import type * as React from 'react';
2
+ import type { PmAccordion } from '@prismora/elements/accordion';
3
+ /** Accordion. With `single`, opening one item closes the others. — `<pm-accordion>` */
4
+ export interface AccordionProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Only one item open at a time. */
6
+ single?: boolean;
7
+ /** Colour role. Inherited by descendants unless they set their own. */
8
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
9
+ /** Surface style override for this component (and its descendants). */
10
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
11
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
12
+ density?: 'compact' | 'comfortable' | 'spacious';
13
+ motion?: 'none' | 'reduced' | 'full';
14
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
15
+ children?: React.ReactNode;
16
+ }
17
+ export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & {
18
+ children?: React.ReactNode;
19
+ } & React.RefAttributes<PmAccordion>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Accordion = /* @__PURE__ */ createComponent('pm-accordion', {}, () => import('@prismora/elements/accordion'));
@@ -0,0 +1,24 @@
1
+ import type * as React from 'react';
2
+ import type { PmAccordionItem } from '@prismora/elements/accordion';
3
+ /** Accordion item built on `<details>` (find-in-page and keyboard for free). — `<pm-accordion-item>` */
4
+ export interface AccordionItemProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Title text. */
6
+ heading?: string;
7
+ /** Whether it is open. Set to open or close it; changes when the user opens or closes it. */
8
+ open?: boolean;
9
+ /** Cannot be opened or closed by the user (its current state stays). */
10
+ disabled?: boolean;
11
+ /** Colour role. Inherited by descendants unless they set their own. */
12
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
13
+ /** Surface style override for this component (and its descendants). */
14
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
15
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
16
+ density?: 'compact' | 'comfortable' | 'spacious';
17
+ motion?: 'none' | 'reduced' | 'full';
18
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
19
+ onPmToggle?: (event: CustomEvent) => void;
20
+ children?: React.ReactNode;
21
+ }
22
+ export declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & {
23
+ children?: React.ReactNode;
24
+ } & React.RefAttributes<PmAccordionItem>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const AccordionItem = /* @__PURE__ */ createComponent('pm-accordion-item', { onPmToggle: 'pm-toggle' }, () => import('@prismora/elements/accordion'));
@@ -0,0 +1,28 @@
1
+ import type * as React from 'react';
2
+ import type { PmAlert } from '@prismora/elements/alert';
3
+ /** Inline alert / callout. Not a live region by default; set `live` for dynamic messages. — `<pm-alert>` */
4
+ export interface AlertProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Registered icon name (see `registerIcons`); an `icon` slot overrides it. */
6
+ icon?: string;
7
+ /** Title text. */
8
+ heading?: string;
9
+ /** Visual style. */
10
+ variant?: 'soft' | 'solid' | 'outline';
11
+ /** Show a close button; the alert hides itself and fires `pm-dismiss`. */
12
+ dismissible?: boolean;
13
+ /** Announce the alert to screen readers when it appears (role="alert"). */
14
+ live?: boolean;
15
+ /** Colour role. Inherited by descendants unless they set their own. */
16
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
17
+ /** Surface style override for this component (and its descendants). */
18
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
19
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
20
+ density?: 'compact' | 'comfortable' | 'spacious';
21
+ motion?: 'none' | 'reduced' | 'full';
22
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
23
+ onPmDismiss?: (event: CustomEvent) => void;
24
+ children?: React.ReactNode;
25
+ }
26
+ export declare const Alert: React.ForwardRefExoticComponent<AlertProps & {
27
+ children?: React.ReactNode;
28
+ } & React.RefAttributes<PmAlert>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Alert = /* @__PURE__ */ createComponent('pm-alert', { onPmDismiss: 'pm-dismiss' }, () => import('@prismora/elements/alert'));
@@ -0,0 +1,27 @@
1
+ import type * as React from 'react';
2
+ import type { PmAvatar } from '@prismora/elements/avatar';
3
+ /** Avatar with image + initials fallback. — `<pm-avatar>` */
4
+ export interface AvatarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Image URL; falls back to initials from `name` if it fails to load. */
6
+ src?: string;
7
+ /** Full name: used for alt text and initials. */
8
+ name?: string;
9
+ /** Size: xs, sm, md (default), lg or xl. */
10
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
11
+ /** Outline shape. */
12
+ shape?: 'circle' | 'square';
13
+ /** Presence dot: online, away, busy or offline (included in the accessible name). */
14
+ status?: 'online' | 'away' | 'busy' | 'offline';
15
+ /** Colour role. Inherited by descendants unless they set their own. */
16
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
17
+ /** Surface style override for this component (and its descendants). */
18
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
19
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
20
+ density?: 'compact' | 'comfortable' | 'spacious';
21
+ motion?: 'none' | 'reduced' | 'full';
22
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
23
+ children?: React.ReactNode;
24
+ }
25
+ export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & {
26
+ children?: React.ReactNode;
27
+ } & React.RefAttributes<PmAvatar>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Avatar = /* @__PURE__ */ createComponent('pm-avatar', {}, () => import('@prismora/elements/avatar'));
@@ -0,0 +1,23 @@
1
+ import type * as React from 'react';
2
+ import type { PmAvatarGroup } from '@prismora/elements/avatar-group';
3
+ /** Overlapping avatars with an overflow count. — `<pm-avatar-group>` */
4
+ export interface AvatarGroupProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Show at most this many avatars, then "+N". */
6
+ max?: number;
7
+ /** Size: xs, sm, md (default), lg or xl. */
8
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
9
+ /** Accessible group name, e.g. "Project members". */
10
+ label?: string;
11
+ /** Colour role. Inherited by descendants unless they set their own. */
12
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
13
+ /** Surface style override for this component (and its descendants). */
14
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
15
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
16
+ density?: 'compact' | 'comfortable' | 'spacious';
17
+ motion?: 'none' | 'reduced' | 'full';
18
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
19
+ children?: React.ReactNode;
20
+ }
21
+ export declare const AvatarGroup: React.ForwardRefExoticComponent<AvatarGroupProps & {
22
+ children?: React.ReactNode;
23
+ } & React.RefAttributes<PmAvatarGroup>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const AvatarGroup = /* @__PURE__ */ createComponent('pm-avatar-group', {}, () => import('@prismora/elements/avatar-group'));
@@ -0,0 +1,25 @@
1
+ import type * as React from 'react';
2
+ import type { PmBackToTop } from '@prismora/elements/back-to-top';
3
+ /** Back to top: a floating button that appears after the page has been scrolled and returns to the top — `<pm-back-to-top>` */
4
+ export interface BackToTopProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Pixels scrolled before the button appears (default 600). */
6
+ threshold?: number;
7
+ /** Accessible name (default "Back to top"). */
8
+ label?: string;
9
+ /** Corner: end (default), start or center. */
10
+ position?: 'end' | 'start' | 'center';
11
+ /** Id of a scrolling element to watch and scroll instead of the page. */
12
+ target?: string;
13
+ /** Colour role. Inherited by descendants unless they set their own. */
14
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
15
+ /** Surface style override for this component (and its descendants). */
16
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
17
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
18
+ density?: 'compact' | 'comfortable' | 'spacious';
19
+ motion?: 'none' | 'reduced' | 'full';
20
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
21
+ children?: React.ReactNode;
22
+ }
23
+ export declare const BackToTop: React.ForwardRefExoticComponent<BackToTopProps & {
24
+ children?: React.ReactNode;
25
+ } & React.RefAttributes<PmBackToTop>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const BackToTop = /* @__PURE__ */ createComponent('pm-back-to-top', {}, () => import('@prismora/elements/back-to-top'));
@@ -0,0 +1,23 @@
1
+ import type * as React from 'react';
2
+ import type { PmBadge } from '@prismora/elements/badge';
3
+ /** Small label for status, counts or categories. — `<pm-badge>` */
4
+ export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Visual style. */
6
+ variant?: 'soft' | 'solid' | 'outline';
7
+ /** Size: xs, sm, md (default), lg or xl. */
8
+ size?: 'md' | 'lg';
9
+ /** Show a small status dot before the text. */
10
+ dot?: boolean;
11
+ /** Colour role. Inherited by descendants unless they set their own. */
12
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
13
+ /** Surface style override for this component (and its descendants). */
14
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
15
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
16
+ density?: 'compact' | 'comfortable' | 'spacious';
17
+ motion?: 'none' | 'reduced' | 'full';
18
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
19
+ children?: React.ReactNode;
20
+ }
21
+ export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & {
22
+ children?: React.ReactNode;
23
+ } & React.RefAttributes<PmBadge>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Badge = /* @__PURE__ */ createComponent('pm-badge', {}, () => import('@prismora/elements/badge'));
@@ -0,0 +1,30 @@
1
+ import type * as React from 'react';
2
+ import type { PmBanner } from '@prismora/elements/banner';
3
+ /** Banner: a page-wide announcement bar above the content (maintenance, a new release, a trial ending, cookie notice). — `<pm-banner>` */
4
+ export interface BannerProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Registered icon name (see `registerIcons`). */
6
+ icon?: string;
7
+ /** Visual style. */
8
+ variant?: 'soft' | 'solid';
9
+ /** Show a close button. */
10
+ dismissible?: boolean;
11
+ /** Stay at the top of the page while scrolling. */
12
+ sticky?: boolean;
13
+ /** Remember the dismissal in localStorage under this key. */
14
+ storageKey?: string;
15
+ /** Announce to screen readers when it appears. */
16
+ live?: boolean;
17
+ /** Colour role. Inherited by descendants unless they set their own. */
18
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
19
+ /** Surface style override for this component (and its descendants). */
20
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
21
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
22
+ density?: 'compact' | 'comfortable' | 'spacious';
23
+ motion?: 'none' | 'reduced' | 'full';
24
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
25
+ onPmDismiss?: (event: CustomEvent) => void;
26
+ children?: React.ReactNode;
27
+ }
28
+ export declare const Banner: React.ForwardRefExoticComponent<BannerProps & {
29
+ children?: React.ReactNode;
30
+ } & React.RefAttributes<PmBanner>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Banner = /* @__PURE__ */ createComponent('pm-banner', { onPmDismiss: 'pm-dismiss' }, () => import('@prismora/elements/banner'));
@@ -0,0 +1,23 @@
1
+ import type * as React from 'react';
2
+ import type { PmBreadcrumb } from '@prismora/elements/breadcrumb';
3
+ /** Breadcrumb trail. The last item is the current page. Long trails collapse to first … last `max` items. — `<pm-breadcrumb>` */
4
+ export interface BreadcrumbProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Accessible name of the navigation landmark. */
6
+ label?: string;
7
+ /** Collapse middle items when there are more than this many. */
8
+ max?: number;
9
+ /** Separator character (default "/"). */
10
+ separator?: string;
11
+ /** Colour role. Inherited by descendants unless they set their own. */
12
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
13
+ /** Surface style override for this component (and its descendants). */
14
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
15
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
16
+ density?: 'compact' | 'comfortable' | 'spacious';
17
+ motion?: 'none' | 'reduced' | 'full';
18
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
19
+ children?: React.ReactNode;
20
+ }
21
+ export declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & {
22
+ children?: React.ReactNode;
23
+ } & React.RefAttributes<PmBreadcrumb>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Breadcrumb = /* @__PURE__ */ createComponent('pm-breadcrumb', {}, () => import('@prismora/elements/breadcrumb'));
@@ -0,0 +1,21 @@
1
+ import type * as React from 'react';
2
+ import type { PmBreadcrumbItem } from '@prismora/elements/breadcrumb';
3
+ /** Breadcrumb entry (a link, or plain text for the current page). — `<pm-breadcrumb-item>` */
4
+ export interface BreadcrumbItemProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Link target: renders a link instead of a button. */
6
+ href?: string;
7
+ /** Marks the current page (set automatically on the last item). */
8
+ current?: boolean;
9
+ /** Colour role. Inherited by descendants unless they set their own. */
10
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
11
+ /** Surface style override for this component (and its descendants). */
12
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
13
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
14
+ density?: 'compact' | 'comfortable' | 'spacious';
15
+ motion?: 'none' | 'reduced' | 'full';
16
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
17
+ children?: React.ReactNode;
18
+ }
19
+ export declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & {
20
+ children?: React.ReactNode;
21
+ } & React.RefAttributes<PmBreadcrumbItem>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const BreadcrumbItem = /* @__PURE__ */ createComponent('pm-breadcrumb-item', {}, () => import('@prismora/elements/breadcrumb'));
@@ -0,0 +1,49 @@
1
+ import type * as React from 'react';
2
+ import type { PmButton } from '@prismora/elements/button';
3
+ /** Button for actions, or a link styled as a button when `href` is set. — `<pm-button>` */
4
+ export interface ButtonProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Registered icon name shown before the content (see `registerIcons`); a `start` slot overrides it. */
6
+ iconStart?: string;
7
+ /** Registered icon name shown after the content (see `registerIcons`); an `end` slot overrides it. */
8
+ iconEnd?: string;
9
+ /** Visual style. Theme default: `--pm-default-button-variant`. */
10
+ variant?: 'solid' | 'soft' | 'outline' | 'ghost' | 'link';
11
+ /** Size: xs, sm, md (default), lg or xl. */
12
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
13
+ /** Native type of the underlying control. */
14
+ type?: 'button' | 'submit' | 'reset';
15
+ /** Not interactive (and not submitted, for form controls). */
16
+ disabled?: boolean;
17
+ /** Shows a spinner and blocks interaction while keeping the width. */
18
+ loading?: boolean;
19
+ /** Square icon-only button. Requires `label`. */
20
+ icon?: boolean;
21
+ /** Renders an `<a>` instead of a `<button>`. */
22
+ href?: string;
23
+ /** Where an `href` link opens (as on `<a>`); `_blank` adds rel="noopener". */
24
+ target?: string;
25
+ /** Accessible name (required for icon-only buttons). */
26
+ label?: string;
27
+ /** Form field name: the value is submitted under it. */
28
+ name?: string;
29
+ /** Current value. */
30
+ value?: string;
31
+ /** id of the element to control (same tree). */
32
+ commandfor?: string;
33
+ /** Command sent to `commandfor`: built-ins (`show-modal`, `close`, `toggle-popover`…) or custom `--name`. */
34
+ command?: string;
35
+ /** id of a popover to toggle (like the native attribute). */
36
+ popovertarget?: string;
37
+ /** Colour role. Inherited by descendants unless they set their own. */
38
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
39
+ /** Surface style override for this component (and its descendants). */
40
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
41
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
42
+ density?: 'compact' | 'comfortable' | 'spacious';
43
+ motion?: 'none' | 'reduced' | 'full';
44
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
45
+ children?: React.ReactNode;
46
+ }
47
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & {
48
+ children?: React.ReactNode;
49
+ } & React.RefAttributes<PmButton>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Button = /* @__PURE__ */ createComponent('pm-button', {}, () => import('@prismora/elements/button'));
@@ -0,0 +1,19 @@
1
+ import type * as React from 'react';
2
+ import type { PmButtonGroup } from '@prismora/elements/button-group';
3
+ /** Groups buttons with joined edges. — `<pm-button-group>` */
4
+ export interface ButtonGroupProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Accessible name (and visible label where the component shows one). */
6
+ label?: string;
7
+ /** Colour role. Inherited by descendants unless they set their own. */
8
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
9
+ /** Surface style override for this component (and its descendants). */
10
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
11
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
12
+ density?: 'compact' | 'comfortable' | 'spacious';
13
+ motion?: 'none' | 'reduced' | 'full';
14
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
15
+ children?: React.ReactNode;
16
+ }
17
+ export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & {
18
+ children?: React.ReactNode;
19
+ } & React.RefAttributes<PmButtonGroup>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const ButtonGroup = /* @__PURE__ */ createComponent('pm-button-group', {}, () => import('@prismora/elements/button-group'));
@@ -0,0 +1,34 @@
1
+ import type * as React from 'react';
2
+ import type { PmCalendar } from '@prismora/elements/calendar';
3
+ /** Calendar (WAI-ARIA date grid) with month and year views: click the title to jump to a month, then to a year. — `<pm-calendar>` */
4
+ export interface CalendarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** "YYYY-MM-DD", or "YYYY-MM-DD/YYYY-MM-DD" with `range`. */
6
+ value?: string;
7
+ /** Lowest allowed value. */
8
+ min?: string;
9
+ /** Highest allowed value. */
10
+ max?: string;
11
+ /** BCP 47 locale for names and week start (defaults to the document language). */
12
+ locale?: string;
13
+ /** Select a start and end date instead of one date. */
14
+ range?: boolean;
15
+ /** Override the locale's first day of the week (0 = Sunday). */
16
+ firstDay?: number;
17
+ /** Number of months shown side by side (1–3). */
18
+ months?: number;
19
+ /** Current view: day grid, month picker or year picker. */
20
+ view?: 'days' | 'months' | 'years';
21
+ /** Colour role. Inherited by descendants unless they set their own. */
22
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
23
+ /** Surface style override for this component (and its descendants). */
24
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
25
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
26
+ density?: 'compact' | 'comfortable' | 'spacious';
27
+ motion?: 'none' | 'reduced' | 'full';
28
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
29
+ onPmChange?: (event: CustomEvent) => void;
30
+ children?: React.ReactNode;
31
+ }
32
+ export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & {
33
+ children?: React.ReactNode;
34
+ } & React.RefAttributes<PmCalendar>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Calendar = /* @__PURE__ */ createComponent('pm-calendar', { onPmChange: 'pm-change' }, () => import('@prismora/elements/calendar'));
@@ -0,0 +1,25 @@
1
+ import type * as React from 'react';
2
+ import type { PmCard } from '@prismora/elements/card';
3
+ /** Card container that renders the active surface style. — `<pm-card>` */
4
+ export interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Title text. */
6
+ heading?: string;
7
+ /** Supporting text under the title. */
8
+ description?: string;
9
+ /** Size: xs, sm, md (default), lg or xl. */
10
+ size?: 'sm' | 'md';
11
+ /** Hover and press feedback for cards that act as one big link or button. */
12
+ interactive?: boolean;
13
+ /** Colour role. Inherited by descendants unless they set their own. */
14
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
15
+ /** Surface style override for this component (and its descendants). */
16
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
17
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
18
+ density?: 'compact' | 'comfortable' | 'spacious';
19
+ motion?: 'none' | 'reduced' | 'full';
20
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
21
+ children?: React.ReactNode;
22
+ }
23
+ export declare const Card: React.ForwardRefExoticComponent<CardProps & {
24
+ children?: React.ReactNode;
25
+ } & React.RefAttributes<PmCard>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Card = /* @__PURE__ */ createComponent('pm-card', {}, () => import('@prismora/elements/card'));
@@ -0,0 +1,32 @@
1
+ import type * as React from 'react';
2
+ import type { PmCarousel } from '@prismora/elements/carousel';
3
+ /** Carousel built on native scroll-snap (swipe, trackpad and keyboard scrolling just work). — `<pm-carousel>` */
4
+ export interface CarouselProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Accessible name (and visible label where the component shows one). */
6
+ label?: string;
7
+ /** Slides visible at once. */
8
+ perView?: number;
9
+ /** CSS gap between slides. */
10
+ gap?: string;
11
+ /** Wrap around at the ends. */
12
+ loop?: boolean;
13
+ /** Autoplay interval in ms (0 = off). */
14
+ autoplay?: number;
15
+ /** Hide the previous/next buttons. */
16
+ hideControls?: boolean;
17
+ /** Hide the slide position dots. */
18
+ hideDots?: boolean;
19
+ /** Colour role. Inherited by descendants unless they set their own. */
20
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
21
+ /** Surface style override for this component (and its descendants). */
22
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
23
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
24
+ density?: 'compact' | 'comfortable' | 'spacious';
25
+ motion?: 'none' | 'reduced' | 'full';
26
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
27
+ onPmChange?: (event: CustomEvent) => void;
28
+ children?: React.ReactNode;
29
+ }
30
+ export declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & {
31
+ children?: React.ReactNode;
32
+ } & React.RefAttributes<PmCarousel>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Carousel = /* @__PURE__ */ createComponent('pm-carousel', { onPmChange: 'pm-change' }, () => import('@prismora/elements/carousel'));
@@ -0,0 +1,42 @@
1
+ import type * as React from 'react';
2
+ import type { PmCascader } from '@prismora/elements/cascader';
3
+ /** Cascader: choose one item from nested lists, one column per level (country, region, city; category, subcategory). — `<pm-cascader>` */
4
+ export interface CascaderProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'onInput'> {
5
+ /** Nested options: `{ value, label, children? }`. Values must be unique across all levels. */
6
+ options?: unknown[];
7
+ /** Value of the chosen option. */
8
+ value?: string;
9
+ /** Form field name: the value is submitted under it. */
10
+ name?: string;
11
+ /** Accessible name (and visible label where the component shows one). */
12
+ label?: string;
13
+ /** Hint text shown while empty (not a replacement for `label`). */
14
+ placeholder?: string;
15
+ /** Help text under the field. */
16
+ hint?: string;
17
+ /** Custom error message. Setting it marks the field invalid. */
18
+ error?: string;
19
+ /** Size: xs, sm, md (default), lg or xl. */
20
+ size?: 'sm' | 'md' | 'lg';
21
+ /** The form cannot be submitted until this has a value. */
22
+ required?: boolean;
23
+ /** Not interactive (and not submitted, for form controls). */
24
+ disabled?: boolean;
25
+ /** Let options that have children be chosen too (Enter or a second click). */
26
+ anyLevel?: boolean;
27
+ /** Text between the levels in the field (default " / "). */
28
+ separator?: string;
29
+ /** Colour role. Inherited by descendants unless they set their own. */
30
+ tone?: 'accent' | 'secondary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
31
+ /** Surface style override for this component (and its descendants). */
32
+ surface?: 'flat' | 'outline' | 'gradient' | 'glass' | 'neumorphic';
33
+ radius?: 'none' | 'sharp' | 'rounded' | 'soft' | 'pill';
34
+ density?: 'compact' | 'comfortable' | 'spacious';
35
+ motion?: 'none' | 'reduced' | 'full';
36
+ elevation?: '0' | '1' | '2' | '3' | '4' | '5';
37
+ onPmChange?: (event: CustomEvent) => void;
38
+ children?: React.ReactNode;
39
+ }
40
+ export declare const Cascader: React.ForwardRefExoticComponent<CascaderProps & {
41
+ children?: React.ReactNode;
42
+ } & React.RefAttributes<PmCascader>>;
@@ -0,0 +1,4 @@
1
+ // Generated by tools/codegen-wrappers.ts from components.json — do not edit.
2
+ 'use client';
3
+ import { createComponent } from '../create-component.js';
4
+ export const Cascader = /* @__PURE__ */ createComponent('pm-cascader', { onPmChange: 'pm-change' }, () => import('@prismora/elements/cascader'));