@revealui/presentation 0.2.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 (177) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +65 -0
  3. package/dist/Box-DDhRNK02.js +45 -0
  4. package/dist/Box-DDhRNK02.js.map +1 -0
  5. package/dist/Text-BIym7IhD.js +425 -0
  6. package/dist/Text-BIym7IhD.js.map +1 -0
  7. package/dist/client.d.ts +51 -0
  8. package/dist/client.d.ts.map +1 -0
  9. package/dist/client.js +2951 -0
  10. package/dist/client.js.map +1 -0
  11. package/dist/components/Button.d.ts +12 -0
  12. package/dist/components/Button.d.ts.map +1 -0
  13. package/dist/components/Card.d.ts +9 -0
  14. package/dist/components/Card.d.ts.map +1 -0
  15. package/dist/components/Checkbox.d.ts +11 -0
  16. package/dist/components/Checkbox.d.ts.map +1 -0
  17. package/dist/components/FormLabel.d.ts +8 -0
  18. package/dist/components/FormLabel.d.ts.map +1 -0
  19. package/dist/components/Input.d.ts +5 -0
  20. package/dist/components/Input.d.ts.map +1 -0
  21. package/dist/components/Label.d.ts +5 -0
  22. package/dist/components/Label.d.ts.map +1 -0
  23. package/dist/components/Pagination.d.ts +33 -0
  24. package/dist/components/Pagination.d.ts.map +1 -0
  25. package/dist/components/Select.d.ts +31 -0
  26. package/dist/components/Select.d.ts.map +1 -0
  27. package/dist/components/Textarea.d.ts +5 -0
  28. package/dist/components/Textarea.d.ts.map +1 -0
  29. package/dist/components/accordion.d.ts +12 -0
  30. package/dist/components/accordion.d.ts.map +1 -0
  31. package/dist/components/alert.d.ts +30 -0
  32. package/dist/components/alert.d.ts.map +1 -0
  33. package/dist/components/auth-layout.d.ts +5 -0
  34. package/dist/components/auth-layout.d.ts.map +1 -0
  35. package/dist/components/avatar-group.d.ts +13 -0
  36. package/dist/components/avatar-group.d.ts.map +1 -0
  37. package/dist/components/avatar.d.ts +19 -0
  38. package/dist/components/avatar.d.ts.map +1 -0
  39. package/dist/components/badge.d.ts +38 -0
  40. package/dist/components/badge.d.ts.map +1 -0
  41. package/dist/components/breadcrumb.d.ts +11 -0
  42. package/dist/components/breadcrumb.d.ts.map +1 -0
  43. package/dist/components/button-headless.d.ts +64 -0
  44. package/dist/components/button-headless.d.ts.map +1 -0
  45. package/dist/components/callout.d.ts +11 -0
  46. package/dist/components/callout.d.ts.map +1 -0
  47. package/dist/components/checkbox-headless.d.ts +44 -0
  48. package/dist/components/checkbox-headless.d.ts.map +1 -0
  49. package/dist/components/code-block.d.ts +8 -0
  50. package/dist/components/code-block.d.ts.map +1 -0
  51. package/dist/components/combobox.d.ts +26 -0
  52. package/dist/components/combobox.d.ts.map +1 -0
  53. package/dist/components/description-list.d.ts +4 -0
  54. package/dist/components/description-list.d.ts.map +1 -0
  55. package/dist/components/dialog.d.ts +30 -0
  56. package/dist/components/dialog.d.ts.map +1 -0
  57. package/dist/components/divider.d.ts +4 -0
  58. package/dist/components/divider.d.ts.map +1 -0
  59. package/dist/components/drawer.d.ts +18 -0
  60. package/dist/components/drawer.d.ts.map +1 -0
  61. package/dist/components/dropdown.d.ts +45 -0
  62. package/dist/components/dropdown.d.ts.map +1 -0
  63. package/dist/components/empty-state.d.ts +9 -0
  64. package/dist/components/empty-state.d.ts.map +1 -0
  65. package/dist/components/fieldset.d.ts +23 -0
  66. package/dist/components/fieldset.d.ts.map +1 -0
  67. package/dist/components/heading.d.ts +7 -0
  68. package/dist/components/heading.d.ts.map +1 -0
  69. package/dist/components/index.d.ts +40 -0
  70. package/dist/components/index.d.ts.map +1 -0
  71. package/dist/components/input-headless.d.ts +12 -0
  72. package/dist/components/input-headless.d.ts.map +1 -0
  73. package/dist/components/kbd.d.ts +8 -0
  74. package/dist/components/kbd.d.ts.map +1 -0
  75. package/dist/components/link.d.ts +5 -0
  76. package/dist/components/link.d.ts.map +1 -0
  77. package/dist/components/listbox.d.ts +22 -0
  78. package/dist/components/listbox.d.ts.map +1 -0
  79. package/dist/components/navbar.d.ts +19 -0
  80. package/dist/components/navbar.d.ts.map +1 -0
  81. package/dist/components/progress.d.ts +12 -0
  82. package/dist/components/progress.d.ts.map +1 -0
  83. package/dist/components/radio.d.ts +47 -0
  84. package/dist/components/radio.d.ts.map +1 -0
  85. package/dist/components/rating.d.ts +11 -0
  86. package/dist/components/rating.d.ts.map +1 -0
  87. package/dist/components/select-headless.d.ts +8 -0
  88. package/dist/components/select-headless.d.ts.map +1 -0
  89. package/dist/components/sidebar-layout.d.ts +6 -0
  90. package/dist/components/sidebar-layout.d.ts.map +1 -0
  91. package/dist/components/sidebar.d.ts +23 -0
  92. package/dist/components/sidebar.d.ts.map +1 -0
  93. package/dist/components/skeleton.d.ts +10 -0
  94. package/dist/components/skeleton.d.ts.map +1 -0
  95. package/dist/components/slider.d.ts +13 -0
  96. package/dist/components/slider.d.ts.map +1 -0
  97. package/dist/components/stacked-layout.d.ts +6 -0
  98. package/dist/components/stacked-layout.d.ts.map +1 -0
  99. package/dist/components/stat.d.ts +17 -0
  100. package/dist/components/stat.d.ts.map +1 -0
  101. package/dist/components/stepper.d.ts +13 -0
  102. package/dist/components/stepper.d.ts.map +1 -0
  103. package/dist/components/switch.d.ts +43 -0
  104. package/dist/components/switch.d.ts.map +1 -0
  105. package/dist/components/table.d.ts +17 -0
  106. package/dist/components/table.d.ts.map +1 -0
  107. package/dist/components/tabs.d.ts +23 -0
  108. package/dist/components/tabs.d.ts.map +1 -0
  109. package/dist/components/text.d.ts +6 -0
  110. package/dist/components/text.d.ts.map +1 -0
  111. package/dist/components/textarea-headless.d.ts +8 -0
  112. package/dist/components/textarea-headless.d.ts.map +1 -0
  113. package/dist/components/timeline.d.ts +14 -0
  114. package/dist/components/timeline.d.ts.map +1 -0
  115. package/dist/components/toast.d.ts +20 -0
  116. package/dist/components/toast.d.ts.map +1 -0
  117. package/dist/components/tooltip.d.ts +10 -0
  118. package/dist/components/tooltip.d.ts.map +1 -0
  119. package/dist/hooks/index.d.ts +15 -0
  120. package/dist/hooks/index.d.ts.map +1 -0
  121. package/dist/hooks/use-click-outside.d.ts +3 -0
  122. package/dist/hooks/use-click-outside.d.ts.map +1 -0
  123. package/dist/hooks/use-close-context.d.ts +3 -0
  124. package/dist/hooks/use-close-context.d.ts.map +1 -0
  125. package/dist/hooks/use-controllable-state.d.ts +6 -0
  126. package/dist/hooks/use-controllable-state.d.ts.map +1 -0
  127. package/dist/hooks/use-data-interactive.d.ts +18 -0
  128. package/dist/hooks/use-data-interactive.d.ts.map +1 -0
  129. package/dist/hooks/use-escape-key.d.ts +2 -0
  130. package/dist/hooks/use-escape-key.d.ts.map +1 -0
  131. package/dist/hooks/use-field-context.d.ts +38 -0
  132. package/dist/hooks/use-field-context.d.ts.map +1 -0
  133. package/dist/hooks/use-focus-trap.d.ts +3 -0
  134. package/dist/hooks/use-focus-trap.d.ts.map +1 -0
  135. package/dist/hooks/use-layout-animation.d.ts +32 -0
  136. package/dist/hooks/use-layout-animation.d.ts.map +1 -0
  137. package/dist/hooks/use-popover.d.ts +28 -0
  138. package/dist/hooks/use-popover.d.ts.map +1 -0
  139. package/dist/hooks/use-roving-tabindex.d.ts +34 -0
  140. package/dist/hooks/use-roving-tabindex.d.ts.map +1 -0
  141. package/dist/hooks/use-scroll-lock.d.ts +2 -0
  142. package/dist/hooks/use-scroll-lock.d.ts.map +1 -0
  143. package/dist/hooks/use-toggle.d.ts +20 -0
  144. package/dist/hooks/use-toggle.d.ts.map +1 -0
  145. package/dist/hooks/use-transition.d.ts +28 -0
  146. package/dist/hooks/use-transition.d.ts.map +1 -0
  147. package/dist/hooks/use-type-ahead.d.ts +15 -0
  148. package/dist/hooks/use-type-ahead.d.ts.map +1 -0
  149. package/dist/index.d.ts +11 -0
  150. package/dist/index.d.ts.map +1 -0
  151. package/dist/index.js +85 -0
  152. package/dist/index.js.map +1 -0
  153. package/dist/primitives/Box.d.ts +9 -0
  154. package/dist/primitives/Box.d.ts.map +1 -0
  155. package/dist/primitives/Flex.d.ts +13 -0
  156. package/dist/primitives/Flex.d.ts.map +1 -0
  157. package/dist/primitives/Grid.d.ts +11 -0
  158. package/dist/primitives/Grid.d.ts.map +1 -0
  159. package/dist/primitives/Heading.d.ts +10 -0
  160. package/dist/primitives/Heading.d.ts.map +1 -0
  161. package/dist/primitives/Slot.d.ts +11 -0
  162. package/dist/primitives/Slot.d.ts.map +1 -0
  163. package/dist/primitives/Text.d.ts +12 -0
  164. package/dist/primitives/Text.d.ts.map +1 -0
  165. package/dist/primitives/index.d.ts +14 -0
  166. package/dist/primitives/index.d.ts.map +1 -0
  167. package/dist/server.d.ts +22 -0
  168. package/dist/server.d.ts.map +1 -0
  169. package/dist/server.js +32 -0
  170. package/dist/server.js.map +1 -0
  171. package/dist/tooltip-oH4lAnkn.js +2277 -0
  172. package/dist/tooltip-oH4lAnkn.js.map +1 -0
  173. package/dist/utils/cn.d.ts +10 -0
  174. package/dist/utils/cn.d.ts.map +1 -0
  175. package/dist/utils/index.d.ts +2 -0
  176. package/dist/utils/index.d.ts.map +1 -0
  177. package/package.json +86 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-close-context.d.ts","sourceRoot":"","sources":["../../src/hooks/use-close-context.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,iCAAwB,IAAI,SAAe,CAAA;AAEpE,wBAAgB,eAAe,IAAI,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAErD"}
@@ -0,0 +1,6 @@
1
+ export declare function useControllableState<T>({ value: controlledValue, defaultValue, onChange, }: {
2
+ value?: T;
3
+ defaultValue: T;
4
+ onChange?: (value: T) => void;
5
+ }): [T, (next: T | ((prev: T) => T)) => void];
6
+ //# sourceMappingURL=use-controllable-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-controllable-state.d.ts","sourceRoot":"","sources":["../../src/hooks/use-controllable-state.ts"],"names":[],"mappings":"AAEA,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,EACtC,KAAK,EAAE,eAAe,EACtB,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,KAAK,CAAC,EAAE,CAAC,CAAA;IACT,YAAY,EAAE,CAAC,CAAA;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;CAC9B,GAAG,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,IAAI,CAAC,CAsB5C"}
@@ -0,0 +1,18 @@
1
+ interface UseDataInteractiveOptions {
2
+ disabled?: boolean;
3
+ }
4
+ interface DataInteractiveProps {
5
+ 'data-hover'?: string;
6
+ 'data-focus'?: string;
7
+ 'data-active'?: string;
8
+ 'data-disabled'?: string;
9
+ onPointerEnter: () => void;
10
+ onPointerLeave: () => void;
11
+ onPointerDown: () => void;
12
+ onPointerUp: () => void;
13
+ onFocus: (e: React.FocusEvent<HTMLElement>) => void;
14
+ onBlur: () => void;
15
+ }
16
+ export declare function useDataInteractive({ disabled, }?: UseDataInteractiveOptions): DataInteractiveProps;
17
+ export {};
18
+ //# sourceMappingURL=use-data-interactive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-data-interactive.d.ts","sourceRoot":"","sources":["../../src/hooks/use-data-interactive.ts"],"names":[],"mappings":"AAEA,UAAU,yBAAyB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,UAAU,oBAAoB;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAA;IACnD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,QAAgB,GACjB,GAAE,yBAA8B,GAAG,oBAAoB,CA+CvD"}
@@ -0,0 +1,2 @@
1
+ export declare function useEscapeKey(onEscape: () => void, enabled?: boolean): void;
2
+ //# sourceMappingURL=use-escape-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-escape-key.d.ts","sourceRoot":"","sources":["../../src/hooks/use-escape-key.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,OAAO,UAAO,GAAG,IAAI,CAiBvE"}
@@ -0,0 +1,38 @@
1
+ import { ReactNode } from 'react';
2
+ interface FieldContextValue {
3
+ /** ID for the form control element */
4
+ controlId: string;
5
+ /** ID for the label element */
6
+ labelId: string;
7
+ /** ID for the description element */
8
+ descriptionId: string;
9
+ /** ID for the error message element */
10
+ errorId: string;
11
+ /** Whether the field is disabled */
12
+ disabled: boolean;
13
+ }
14
+ export declare function useFieldContext(): FieldContextValue | null;
15
+ interface FieldProviderProps {
16
+ children: ReactNode;
17
+ disabled?: boolean;
18
+ }
19
+ export declare function FieldProvider({ children, disabled }: FieldProviderProps): ReactNode;
20
+ /**
21
+ * Returns ARIA props for a form control that participates in a Field.
22
+ * Safe to call outside a Field — returns empty object if no context.
23
+ */
24
+ export declare function useFieldControlProps(): Record<string, string | undefined>;
25
+ /**
26
+ * Returns props for a label element within a Field.
27
+ */
28
+ export declare function useFieldLabelProps(): Record<string, string | undefined>;
29
+ /**
30
+ * Returns props for a description element within a Field.
31
+ */
32
+ export declare function useFieldDescriptionProps(): Record<string, string | undefined>;
33
+ /**
34
+ * Returns props for an error message element within a Field.
35
+ */
36
+ export declare function useFieldErrorProps(): Record<string, string | undefined>;
37
+ export {};
38
+ //# sourceMappingURL=use-field-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-field-context.d.ts","sourceRoot":"","sources":["../../src/hooks/use-field-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAEjF,UAAU,iBAAiB;IACzB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAA;IACjB,+BAA+B;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,qCAAqC;IACrC,aAAa,EAAE,MAAM,CAAA;IACrB,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAA;IACf,oCAAoC;IACpC,QAAQ,EAAE,OAAO,CAAA;CAClB;AAID,wBAAgB,eAAe,IAAI,iBAAiB,GAAG,IAAI,CAE1D;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,QAAgB,EAAE,EAAE,kBAAkB,GAAG,SAAS,CAe3F;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAUzE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CASvE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAQ7E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAQvE"}
@@ -0,0 +1,3 @@
1
+ import { RefObject } from 'react';
2
+ export declare function useFocusTrap(containerRef: RefObject<HTMLElement | null>, enabled?: boolean): void;
3
+ //# sourceMappingURL=use-focus-trap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-focus-trap.d.ts","sourceRoot":"","sources":["../../src/hooks/use-focus-trap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAA;AAejD,wBAAgB,YAAY,CAAC,YAAY,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,OAAO,UAAO,GAAG,IAAI,CAkD9F"}
@@ -0,0 +1,32 @@
1
+ import { ReactNode, RefObject } from 'react';
2
+ interface LayoutGroupProps {
3
+ /** Unique identifier for scoping (optional, context-scoped by default) */
4
+ id?: string;
5
+ children: ReactNode;
6
+ }
7
+ /**
8
+ * Scopes layout animations to a group.
9
+ * Elements with the same `layoutId` within a group share position data.
10
+ */
11
+ export declare function LayoutGroup({ children }: LayoutGroupProps): ReactNode;
12
+ /**
13
+ * Hook that implements FLIP layout animation for an element.
14
+ *
15
+ * When an element with the same `layoutId` unmounts from one position
16
+ * and mounts in another, this hook animates the transition smoothly.
17
+ *
18
+ * @param layoutId - Shared identifier linking old and new positions
19
+ * @returns Ref to attach to the animated element
20
+ */
21
+ export declare function useLayoutAnimation(layoutId: string): RefObject<HTMLElement | null>;
22
+ interface LayoutIndicatorProps extends React.ComponentPropsWithoutRef<'span'> {
23
+ /** Shared identifier for FLIP animation */
24
+ layoutId: string;
25
+ }
26
+ /**
27
+ * Animated indicator span that smoothly transitions between positions.
28
+ * Drop-in replacement for `<motion.span layoutId="...">`.
29
+ */
30
+ export declare function LayoutIndicator({ layoutId, ...props }: LayoutIndicatorProps): ReactNode;
31
+ export {};
32
+ //# sourceMappingURL=use-layout-animation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-layout-animation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-layout-animation.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAYd,UAAU,gBAAgB;IACxB,0EAA0E;IAC1E,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,SAAS,CAGrE;AAUD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CA0ClF;AAMD,UAAU,oBAAqB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC;IAC3E,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,GAAG,SAAS,CAGvF"}
@@ -0,0 +1,28 @@
1
+ import { RefObject } from 'react';
2
+ type Anchor = 'top' | 'top start' | 'top end' | 'bottom' | 'bottom start' | 'bottom end' | 'selection start';
3
+ interface UsePopoverOptions {
4
+ /** Whether the popover is open */
5
+ open: boolean;
6
+ /** Preferred anchor position */
7
+ anchor?: Anchor;
8
+ /** Gap between trigger and popover (px) */
9
+ gap?: number;
10
+ /** Padding from viewport edges (px) */
11
+ padding?: number;
12
+ }
13
+ interface PopoverPosition {
14
+ top: number;
15
+ left: number;
16
+ maxHeight: number;
17
+ }
18
+ interface UsePopoverReturn {
19
+ triggerRef: RefObject<HTMLElement | null>;
20
+ popoverRef: RefObject<HTMLElement | null>;
21
+ position: PopoverPosition;
22
+ popoverProps: {
23
+ style: React.CSSProperties;
24
+ };
25
+ }
26
+ export declare function usePopover({ open, anchor, gap, padding, }: UsePopoverOptions): UsePopoverReturn;
27
+ export {};
28
+ //# sourceMappingURL=use-popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-popover.d.ts","sourceRoot":"","sources":["../../src/hooks/use-popover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAEhF,KAAK,MAAM,GACP,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,iBAAiB,CAAA;AAErB,UAAU,iBAAiB;IACzB,kCAAkC;IAClC,IAAI,EAAE,OAAO,CAAA;IACb,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2CAA2C;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,UAAU,eAAe;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,UAAU,gBAAgB;IACxB,UAAU,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACzC,UAAU,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IACzC,QAAQ,EAAE,eAAe,CAAA;IACzB,YAAY,EAAE;QACZ,KAAK,EAAE,KAAK,CAAC,aAAa,CAAA;KAC3B,CAAA;CACF;AAiED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,MAAiB,EACjB,GAAO,EACP,OAAW,GACZ,EAAE,iBAAiB,GAAG,gBAAgB,CA6CtC"}
@@ -0,0 +1,34 @@
1
+ interface UseRovingTabindexOptions {
2
+ /** Total number of items in the list */
3
+ itemCount: number;
4
+ /** Initial active index (-1 for none) */
5
+ initialIndex?: number;
6
+ /** Orientation for arrow key handling */
7
+ orientation?: 'vertical' | 'horizontal';
8
+ /** Whether navigation wraps around */
9
+ loop?: boolean;
10
+ /** Callback when active index changes */
11
+ onActiveChange?: (index: number) => void;
12
+ }
13
+ interface UseRovingTabindexReturn {
14
+ /** Currently active (focused) item index */
15
+ activeIndex: number;
16
+ /** Set the active index programmatically */
17
+ setActiveIndex: (index: number) => void;
18
+ /** Props to spread on the container element */
19
+ containerProps: {
20
+ role: string;
21
+ onKeyDown: (e: React.KeyboardEvent) => void;
22
+ };
23
+ /** Get props for an individual item */
24
+ getItemProps: (index: number) => {
25
+ tabIndex: number;
26
+ 'data-focus': string | undefined;
27
+ ref: (el: HTMLElement | null) => void;
28
+ onPointerEnter: () => void;
29
+ onClick: () => void;
30
+ };
31
+ }
32
+ export declare function useRovingTabindex({ itemCount, initialIndex, orientation, loop, onActiveChange, }: UseRovingTabindexOptions): UseRovingTabindexReturn;
33
+ export {};
34
+ //# sourceMappingURL=use-roving-tabindex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-roving-tabindex.d.ts","sourceRoot":"","sources":["../../src/hooks/use-roving-tabindex.ts"],"names":[],"mappings":"AAEA,UAAU,wBAAwB;IAChC,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAA;IACjB,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yCAAyC;IACzC,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAA;IACvC,sCAAsC;IACtC,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,yCAAyC;IACzC,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CACzC;AAED,UAAU,uBAAuB;IAC/B,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAA;IACnB,4CAA4C;IAC5C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,+CAA+C;IAC/C,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;KAC5C,CAAA;IACD,uCAAuC;IACvC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK;QAC/B,QAAQ,EAAE,MAAM,CAAA;QAChB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;QAChC,GAAG,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;QACrC,cAAc,EAAE,MAAM,IAAI,CAAA;QAC1B,OAAO,EAAE,MAAM,IAAI,CAAA;KACpB,CAAA;CACF;AAED,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,YAAiB,EACjB,WAAwB,EACxB,IAAW,EACX,cAAc,GACf,EAAE,wBAAwB,GAAG,uBAAuB,CAkGpD"}
@@ -0,0 +1,2 @@
1
+ export declare function useScrollLock(enabled?: boolean): void;
2
+ //# sourceMappingURL=use-scroll-lock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-scroll-lock.d.ts","sourceRoot":"","sources":["../../src/hooks/use-scroll-lock.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,CAAC,OAAO,UAAO,GAAG,IAAI,CAoBlD"}
@@ -0,0 +1,20 @@
1
+ interface UseToggleOptions {
2
+ checked?: boolean;
3
+ defaultChecked?: boolean;
4
+ onChange?: (checked: boolean) => void;
5
+ disabled?: boolean;
6
+ }
7
+ interface UseToggleReturn {
8
+ checked: boolean;
9
+ toggle: () => void;
10
+ toggleProps: {
11
+ 'aria-checked': boolean;
12
+ 'data-checked': string | undefined;
13
+ tabIndex: number;
14
+ onClick: () => void;
15
+ onKeyDown: (e: React.KeyboardEvent) => void;
16
+ };
17
+ }
18
+ export declare function useToggle({ checked: controlledChecked, defaultChecked, onChange, disabled, }?: UseToggleOptions): UseToggleReturn;
19
+ export {};
20
+ //# sourceMappingURL=use-toggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-toggle.d.ts","sourceRoot":"","sources":["../../src/hooks/use-toggle.ts"],"names":[],"mappings":"AAGA,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,UAAU,eAAe;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,EAAE;QACX,cAAc,EAAE,OAAO,CAAA;QACvB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;QAClC,QAAQ,EAAE,MAAM,CAAA;QAChB,OAAO,EAAE,MAAM,IAAI,CAAA;QACnB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;KAC5C,CAAA;CACF;AAED,wBAAgB,SAAS,CAAC,EACxB,OAAO,EAAE,iBAAiB,EAC1B,cAAsB,EACtB,QAAQ,EACR,QAAgB,GACjB,GAAE,gBAAqB,GAAG,eAAe,CAsCzC"}
@@ -0,0 +1,28 @@
1
+ interface UseTransitionReturn {
2
+ /** Whether the element should be rendered in the DOM */
3
+ mounted: boolean;
4
+ /** Ref to attach to the transitioning element (listens for transitionend) */
5
+ nodeRef: React.RefObject<HTMLElement | null>;
6
+ /** Data attributes to spread on the transitioning element */
7
+ transitionProps: {
8
+ 'data-closed'?: string;
9
+ 'data-enter'?: string;
10
+ 'data-leave'?: string;
11
+ 'data-transition'?: string;
12
+ };
13
+ }
14
+ /**
15
+ * Manages CSS transition lifecycle using data attributes.
16
+ *
17
+ * Enter sequence:
18
+ * 1. Mount with `data-closed` + `data-enter` (element in hidden state)
19
+ * 2. Next frame: remove `data-closed` (CSS transition triggers)
20
+ * 3. On transitionend: remove `data-enter`
21
+ *
22
+ * Leave sequence:
23
+ * 1. Add `data-closed` + `data-leave` (CSS transition to hidden state)
24
+ * 2. On transitionend: unmount
25
+ */
26
+ export declare function useTransition(show: boolean): UseTransitionReturn;
27
+ export {};
28
+ //# sourceMappingURL=use-transition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-transition.d.ts","sourceRoot":"","sources":["../../src/hooks/use-transition.ts"],"names":[],"mappings":"AAEA,UAAU,mBAAmB;IAC3B,wDAAwD;IACxD,OAAO,EAAE,OAAO,CAAA;IAChB,6EAA6E;IAC7E,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;IAC5C,6DAA6D;IAC7D,eAAe,EAAE;QACf,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAC3B,CAAA;CACF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,mBAAmB,CAgHhE"}
@@ -0,0 +1,15 @@
1
+ interface UseTypeAheadOptions {
2
+ /** Function to get the text content of an item by index */
3
+ getItemText: (index: number) => string;
4
+ /** Total number of items */
5
+ itemCount: number;
6
+ /** Callback when a match is found */
7
+ onMatch: (index: number) => void;
8
+ /** Timeout before search buffer resets (ms) */
9
+ timeout?: number;
10
+ }
11
+ export declare function useTypeAhead({ getItemText, itemCount, onMatch, timeout, }: UseTypeAheadOptions): {
12
+ onKeyDown: (e: React.KeyboardEvent) => void;
13
+ };
14
+ export {};
15
+ //# sourceMappingURL=use-type-ahead.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-type-ahead.d.ts","sourceRoot":"","sources":["../../src/hooks/use-type-ahead.ts"],"names":[],"mappings":"AAEA,UAAU,mBAAmB;IAC3B,2DAA2D;IAC3D,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC,4BAA4B;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,qCAAqC;IACrC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,YAAY,CAAC,EAC3B,WAAW,EACX,SAAS,EACT,OAAO,EACP,OAAa,GACd,EAAE,mBAAmB,GAAG;IACvB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;CAC5C,CAoCA"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @revealui/presentation
3
+ *
4
+ * Shared UI components and presentation layer for RevealUI applications.
5
+ * This package provides reusable components that can be used across
6
+ * multiple apps in the RevealUI monorepo.
7
+ */
8
+ export * from './components/index.js';
9
+ export * from './primitives/index.js';
10
+ export * from './utils/index.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,85 @@
1
+ import { A, a, b, B, c, C, d, e, f, g, h, i, D, j, k, l, E, I, m, K, n, P, R, S, o, p, q, r, s, t, u, v, w, x, y, z, F, G, H, J, L, T, M, N, O, Q, U, V, W, X, Y, Z } from "./tooltip-oH4lAnkn.js";
2
+ import { A as A2, B as B2, C as C2, a as a2, b as b2, c as c2, d as d2, e as e2, F as F2, f as f2, G as G2, H as H2, I as I2, L as L2, P as P2, g as g2, h as h2, i as i2, j as j2, k as k2, l as l2, S as S2, T as T2, m as m2, n as n2 } from "./Text-BIym7IhD.js";
3
+ import { B as B3, c as c3 } from "./Box-DDhRNK02.js";
4
+ export {
5
+ A as Accordion,
6
+ a as AccordionItem,
7
+ A2 as AuthLayout,
8
+ b as AvatarGroup,
9
+ B3 as Box,
10
+ B as Breadcrumb,
11
+ c as Button,
12
+ B2 as ButtonCVA,
13
+ C as Callout,
14
+ C2 as Card,
15
+ a2 as CardContent,
16
+ b2 as CardDescription,
17
+ c2 as CardFooter,
18
+ d2 as CardHeader,
19
+ e2 as CardTitle,
20
+ d as Checkbox,
21
+ e as CheckboxCVA,
22
+ f as CheckboxField,
23
+ g as CheckboxGroup,
24
+ h as CheckboxIndicator,
25
+ i as CodeBlock,
26
+ D as Drawer,
27
+ j as DrawerBody,
28
+ k as DrawerFooter,
29
+ l as DrawerHeader,
30
+ E as EmptyState,
31
+ F2 as Flex,
32
+ f2 as FormLabel,
33
+ G2 as Grid,
34
+ H2 as Heading,
35
+ I as Input,
36
+ I2 as InputCVA,
37
+ m as InputGroup,
38
+ K as Kbd,
39
+ n as KbdShortcut,
40
+ L2 as Label,
41
+ P2 as Pagination,
42
+ g2 as PaginationContent,
43
+ h2 as PaginationEllipsis,
44
+ i2 as PaginationItem,
45
+ j2 as PaginationLink,
46
+ k2 as PaginationNext,
47
+ l2 as PaginationPrevious,
48
+ P as Progress,
49
+ R as Rating,
50
+ S as Select,
51
+ o as SelectCVA,
52
+ p as SelectContent,
53
+ q as SelectGroup,
54
+ r as SelectItem,
55
+ s as SelectLabel,
56
+ t as SelectScrollDownButton,
57
+ u as SelectScrollUpButton,
58
+ v as SelectSeparator,
59
+ w as SelectTrigger,
60
+ x as SelectValue,
61
+ y as Skeleton,
62
+ z as SkeletonCard,
63
+ F as SkeletonText,
64
+ G as Slider,
65
+ S2 as Slot,
66
+ H as Stat,
67
+ J as StatGroup,
68
+ L as Stepper,
69
+ T as Tab,
70
+ M as TabList,
71
+ N as TabPanel,
72
+ O as Tabs,
73
+ T2 as Text,
74
+ Q as Textarea,
75
+ m2 as TextareaCVA,
76
+ U as Timeline,
77
+ V as TimelineItem,
78
+ W as ToastProvider,
79
+ X as Tooltip,
80
+ Y as TouchTarget,
81
+ n2 as buttonVariants,
82
+ c3 as cn,
83
+ Z as useToast
84
+ };
85
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ export interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ as?: 'div' | 'span' | 'section' | 'article' | 'header' | 'footer' | 'main' | 'aside' | 'nav';
4
+ }
5
+ /**
6
+ * Box primitive - Basic container component
7
+ */
8
+ export declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=Box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../src/primitives/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpE,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAA;CAC7F;AAED;;GAEG;AACH,eAAO,MAAM,GAAG,iFAIf,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { default as React } from 'react';
2
+ export interface FlexProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
4
+ align?: 'start' | 'center' | 'end' | 'stretch' | 'baseline';
5
+ justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
6
+ wrap?: boolean | 'wrap' | 'nowrap' | 'wrap-reverse';
7
+ gap?: number | string;
8
+ }
9
+ /**
10
+ * Flex primitive - Flexbox container component
11
+ */
12
+ export declare const Flex: React.ForwardRefExoticComponent<FlexProps & React.RefAttributes<HTMLDivElement>>;
13
+ //# sourceMappingURL=Flex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../src/primitives/Flex.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAA;IAC/D,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,UAAU,CAAA;IAC3D,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACtE,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,cAAc,CAAA;IACnD,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,kFAsBhB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ export interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ cols?: number | string;
4
+ rows?: number | string;
5
+ gap?: number | string;
6
+ }
7
+ /**
8
+ * Grid primitive - CSS Grid container component
9
+ */
10
+ export declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLDivElement>>;
11
+ //# sourceMappingURL=Grid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../src/primitives/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACrE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,kFAehB,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4
+ size?: 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
5
+ }
6
+ /**
7
+ * Heading primitive - Heading component
8
+ */
9
+ export declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
10
+ //# sourceMappingURL=Heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../src/primitives/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;IAC5E,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IAC5C,IAAI,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;CAC3D;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,yFAsBnB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ export interface SlotProps extends React.HTMLAttributes<HTMLElement> {
3
+ children?: React.ReactNode;
4
+ asChild?: boolean;
5
+ }
6
+ /**
7
+ * Slot component for polymorphic composition
8
+ * Allows components to merge props with child elements
9
+ */
10
+ export declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
11
+ //# sourceMappingURL=Slot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Slot.d.ts","sourceRoot":"","sources":["../../src/primitives/Slot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAClE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI,+EAgBf,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ export interface TextProps extends React.HTMLAttributes<HTMLParagraphElement> {
3
+ as?: 'p' | 'span' | 'div';
4
+ size?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl';
5
+ weight?: 'normal' | 'medium' | 'semibold' | 'bold';
6
+ color?: 'default' | 'muted' | 'primary' | 'secondary' | 'destructive';
7
+ }
8
+ /**
9
+ * Text primitive - Typography component
10
+ */
11
+ export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLParagraphElement>>;
12
+ //# sourceMappingURL=Text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../src/primitives/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;IAC3E,EAAE,CAAC,EAAE,GAAG,GAAG,MAAM,GAAG,KAAK,CAAA;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAA;IACjD,MAAM,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAA;IAClD,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,CAAA;CACtE;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,wFAgChB,CAAA"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * UI Primitives
3
+ *
4
+ * Base primitive components that serve as building blocks
5
+ * for more complex components. These are low-level, unstyled
6
+ * or minimally styled components.
7
+ */
8
+ export { Box, type BoxProps } from './Box.js';
9
+ export { Flex, type FlexProps } from './Flex.js';
10
+ export { Grid, type GridProps } from './Grid.js';
11
+ export { Heading, type HeadingProps } from './Heading.js';
12
+ export { Slot, type SlotProps } from './Slot.js';
13
+ export { Text, type TextProps } from './Text.js';
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @revealui/presentation/server
3
+ *
4
+ * Server-safe components that can be used in React Server Components.
5
+ * These components don't use React hooks and can be rendered on the server.
6
+ */
7
+ export { AuthLayout } from './components/auth-layout.js';
8
+ export { Button as ButtonCVA, type ButtonProps, buttonVariants, } from './components/Button.js';
9
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from './components/Card.js';
10
+ export { FormLabel, type FormLabelProps } from './components/FormLabel.js';
11
+ export { Input as InputCVA, type InputProps } from './components/Input.js';
12
+ export { Label, type LabelProps } from './components/Label.js';
13
+ export { Pagination, PaginationContent, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, } from './components/Pagination.js';
14
+ export { Textarea as TextareaCVA, type TextareaProps } from './components/Textarea.js';
15
+ export { Box, type BoxProps } from './primitives/Box.js';
16
+ export { Flex, type FlexProps } from './primitives/Flex.js';
17
+ export { Grid, type GridProps } from './primitives/Grid.js';
18
+ export { Heading, type HeadingProps } from './primitives/Heading.js';
19
+ export { Slot, type SlotProps } from './primitives/Slot.js';
20
+ export { Text, type TextProps } from './primitives/Text.js';
21
+ export { cn } from './utils/cn.js';
22
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAGxD,OAAO,EACL,MAAM,IAAI,SAAS,EACnB,KAAK,WAAW,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACV,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1E,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE1E,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAE9D,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,cAAc,EACd,cAAc,EACd,KAAK,mBAAmB,EACxB,cAAc,EACd,KAAK,mBAAmB,EACxB,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,GACrB,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,QAAQ,IAAI,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAKtF,OAAO,EAAE,GAAG,EAAE,KAAK,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAG3D,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAA"}
package/dist/server.js ADDED
@@ -0,0 +1,32 @@
1
+ import { A, B, C, a, b, c, d, e, F, f, G, H, I, L, P, g, h, i, j, k, l, S, T, m, n } from "./Text-BIym7IhD.js";
2
+ import { B as B2, c as c2 } from "./Box-DDhRNK02.js";
3
+ export {
4
+ A as AuthLayout,
5
+ B2 as Box,
6
+ B as ButtonCVA,
7
+ C as Card,
8
+ a as CardContent,
9
+ b as CardDescription,
10
+ c as CardFooter,
11
+ d as CardHeader,
12
+ e as CardTitle,
13
+ F as Flex,
14
+ f as FormLabel,
15
+ G as Grid,
16
+ H as Heading,
17
+ I as InputCVA,
18
+ L as Label,
19
+ P as Pagination,
20
+ g as PaginationContent,
21
+ h as PaginationEllipsis,
22
+ i as PaginationItem,
23
+ j as PaginationLink,
24
+ k as PaginationNext,
25
+ l as PaginationPrevious,
26
+ S as Slot,
27
+ T as Text,
28
+ m as TextareaCVA,
29
+ n as buttonVariants,
30
+ c2 as cn
31
+ };
32
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}