@rise-x/apps-sdk 0.7.0 → 0.8.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 (59) hide show
  1. package/build/ui/components/accordion.d.ts +7 -0
  2. package/build/ui/components/aspect-ratio.d.ts +4 -0
  3. package/build/ui/components/button-group.d.ts +7 -0
  4. package/build/ui/components/carousel.d.ts +18 -0
  5. package/build/ui/components/chart.d.ts +45 -94
  6. package/build/ui/components/collapsible.d.ts +6 -0
  7. package/build/ui/components/combobox.d.ts +19 -0
  8. package/build/ui/components/command.d.ts +18 -0
  9. package/build/ui/components/context-menu.d.ts +29 -0
  10. package/build/ui/components/date-picker.d.ts +16 -0
  11. package/build/ui/components/direction.d.ts +6 -0
  12. package/build/ui/components/field.d.ts +25 -0
  13. package/build/ui/components/hover-card.d.ts +6 -0
  14. package/build/ui/components/input-group.d.ts +13 -0
  15. package/build/ui/components/input-otp.d.ts +34 -0
  16. package/build/ui/components/input.d.ts +1 -3
  17. package/build/ui/components/item.d.ts +23 -0
  18. package/build/ui/components/kbd.d.ts +4 -0
  19. package/build/ui/components/menubar.d.ts +26 -0
  20. package/build/ui/components/message-scroller.d.ts +15 -0
  21. package/build/ui/components/navigation-menu.d.ts +13 -0
  22. package/build/ui/components/page-header.d.ts +7 -1
  23. package/build/ui/index.d.ts +19 -0
  24. package/build/ui/reference/components/accordion.tsx +85 -0
  25. package/build/ui/reference/components/alert-dialog.tsx +1 -1
  26. package/build/ui/reference/components/aspect-ratio.tsx +28 -0
  27. package/build/ui/reference/components/button-group.tsx +77 -0
  28. package/build/ui/reference/components/carousel.tsx +248 -0
  29. package/build/ui/reference/components/chart.tsx +441 -1131
  30. package/build/ui/reference/components/collapsible.tsx +43 -0
  31. package/build/ui/reference/components/combobox.tsx +141 -0
  32. package/build/ui/reference/components/command.tsx +181 -0
  33. package/build/ui/reference/components/context-menu.tsx +243 -0
  34. package/build/ui/reference/components/data-table.tsx +3 -3
  35. package/build/ui/reference/components/date-picker.tsx +218 -0
  36. package/build/ui/reference/components/dialog.tsx +2 -2
  37. package/build/ui/reference/components/direction.tsx +22 -0
  38. package/build/ui/reference/components/field.tsx +252 -0
  39. package/build/ui/reference/components/hover-card.tsx +64 -0
  40. package/build/ui/reference/components/input-group.tsx +157 -0
  41. package/build/ui/reference/components/input-otp.tsx +106 -0
  42. package/build/ui/reference/components/input.tsx +4 -32
  43. package/build/ui/reference/components/item.tsx +188 -0
  44. package/build/ui/reference/components/kbd.tsx +43 -0
  45. package/build/ui/reference/components/label.tsx +1 -1
  46. package/build/ui/reference/components/menubar.tsx +275 -0
  47. package/build/ui/reference/components/message-scroller.tsx +141 -0
  48. package/build/ui/reference/components/nav.tsx +6 -0
  49. package/build/ui/reference/components/navigation-menu.tsx +191 -0
  50. package/build/ui/reference/components/page-header.tsx +32 -0
  51. package/build/ui/reference/components/popover.tsx +2 -2
  52. package/build/ui/reference/components/select.tsx +11 -8
  53. package/build/ui/reference/components/sheet.tsx +9 -1
  54. package/build/ui/reference/components/timeline.tsx +7 -0
  55. package/build/ui/reference/components/toggle.tsx +1 -1
  56. package/build/ui/reference/index.ts +19 -0
  57. package/build/ui/standalone.js +167 -28
  58. package/build/ui/styles.css +1 -1
  59. package/package.json +6 -1
@@ -14,7 +14,7 @@ function SelectGroup({ className, ...props }: React.ComponentProps<typeof Select
14
14
  return (
15
15
  <SelectPrimitive.Group
16
16
  data-slot="select-group"
17
- className={cn('scroll-my-1.5 p-1.5', className)}
17
+ className={cn('scroll-my-1.5', className)}
18
18
  {...props}
19
19
  />
20
20
  );
@@ -53,8 +53,11 @@ function SelectTrigger({
53
53
  function SelectContent({
54
54
  className,
55
55
  children,
56
- position = 'item-aligned',
57
- align = 'center',
56
+ /* popper, not radix's item-aligned default: every other menu in the kit
57
+ * (dropdown, combobox, date picker) opens BELOW its trigger — a select that
58
+ * overlays its own trigger and the labels around it is the odd one out. */
59
+ position = 'popper',
60
+ align = 'start',
58
61
  ...props
59
62
  }: React.ComponentProps<typeof SelectPrimitive.Content>) {
60
63
  return (
@@ -63,7 +66,10 @@ function SelectContent({
63
66
  data-slot="select-content"
64
67
  data-align-trigger={position === 'item-aligned'}
65
68
  className={cn(
66
- 'relative z-50 max-h-(--radix-select-content-available-height) w-(--radix-select-trigger-width) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-xl bg-popover text-popover-foreground shadow-pop duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',
69
+ /* p-1.5 matches every other menu surface (dropdown, context,
70
+ * menubar, command) — without it the rounded-md items sit flush
71
+ * against the rounded-xl edge and clip at the corners. */
72
+ 'relative z-50 max-h-(--radix-select-content-available-height) w-(--radix-select-trigger-width) min-w-36 origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-xl bg-popover p-1.5 text-popover-foreground shadow-pop duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95',
67
73
  position === 'popper' &&
68
74
  'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
69
75
  className,
@@ -75,10 +81,7 @@ function SelectContent({
75
81
  <SelectScrollUpButton />
76
82
  <SelectPrimitive.Viewport
77
83
  data-position={position}
78
- className={cn(
79
- 'data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)',
80
- position === 'popper' && '',
81
- )}
84
+ className="data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)"
82
85
  >
83
86
  {children}
84
87
  </SelectPrimitive.Viewport>
@@ -18,6 +18,14 @@ import { XIcon } from 'lucide-react';
18
18
  * "Function components cannot be given refs" warning on every open. Only Sheet
19
19
  * (Root) and SheetPortal are left as plain functions: neither renders a DOM
20
20
  * node, and radix's own are plain too.
21
+ *
22
+ * WHEN. The Sheet is the surface for ON-DEMAND supplementary content — the
23
+ * activity log, an asset render, any "show me more about this" data. It opens
24
+ * from an affordance in the page header (the activity icon button is the
25
+ * canonical case), slides in from the right and dims the page behind it, with
26
+ * any filter or search living inside the panel. The docked Panel (nav.tsx) is
27
+ * only for surfaces that are part of the page's own layout — a persistent
28
+ * master-detail pane or a filter rail — where the page must stay interactive.
21
29
  */
22
30
 
23
31
  function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
@@ -158,7 +166,7 @@ const SheetDescription = React.forwardRef<
158
166
  <SheetPrimitive.Description
159
167
  ref={ref}
160
168
  data-slot="sheet-description"
161
- className={cn('text-sm text-muted-foreground', className)}
169
+ className={cn('text-ui text-muted-foreground', className)}
162
170
  {...props}
163
171
  />
164
172
  );
@@ -11,6 +11,13 @@ import { cn } from '@rise-x/ui/lib/utils';
11
11
  *
12
12
  * The rail is drawn on the node's ::after rather than as a border on the row,
13
13
  * so the last entry has no dangling tail and nothing needs a modifier class.
14
+ *
15
+ * PLACEMENT. Activity is ambient context, not page content: it opens from an
16
+ * icon button in the page header (every app's default affordance) and slides
17
+ * in from the right as a Sheet over the dimmed page, with its filter and
18
+ * search inside the panel. Never lay it out as an inline column beside the
19
+ * content — that spends a third of every viewport on history the user rarely
20
+ * reads, and the page's real content pays for it.
14
21
  */
15
22
  function Timeline({ className, ...props }: React.ComponentProps<'ol'>) {
16
23
  return <ol data-slot="timeline" className={cn('flex flex-col', className)} {...props} />;
@@ -7,7 +7,7 @@ import { Toggle as TogglePrimitive } from 'radix-ui';
7
7
  import { cn } from '@rise-x/ui/lib/utils';
8
8
 
9
9
  const toggleVariants = cva(
10
- "group/toggle inline-flex items-center justify-center gap-1 rounded-md text-sm font-medium whitespace-nowrap transition-colors outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
10
+ "group/toggle inline-flex items-center justify-center gap-1 rounded-md text-ui font-medium whitespace-nowrap transition-colors outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/30 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
11
11
  {
12
12
  variants: {
13
13
  variant: {
@@ -1,27 +1,46 @@
1
1
  // Root barrel — lets consumers `import { Button, cn } from '@rise-x/ui'`.
2
2
  // Subpath imports (`@rise-x/ui/components/button`) remain the canonical form
3
3
  // written by the shadcn CLI; both resolve to the same source modules.
4
+ export * from './components/accordion';
4
5
  export * from './components/ai';
5
6
  export * from './components/alert';
6
7
  export * from './components/alert-dialog';
8
+ export * from './components/aspect-ratio';
7
9
  export * from './components/avatar';
8
10
  export * from './components/badge';
9
11
  export * from './components/button';
12
+ export * from './components/button-group';
10
13
  export * from './components/calendar';
11
14
  export * from './components/card';
15
+ export * from './components/carousel';
12
16
  export * from './components/chart';
13
17
  export * from './components/checkbox';
18
+ export * from './components/collapsible';
19
+ export * from './components/combobox';
20
+ export * from './components/command';
21
+ export * from './components/context-menu';
14
22
  export * from './components/data-table';
23
+ export * from './components/date-picker';
15
24
  export * from './components/dialog';
25
+ export * from './components/direction';
16
26
  export * from './components/dropdown-menu';
17
27
  export * from './components/empty-state';
28
+ export * from './components/field';
18
29
  export * from './components/file-upload';
30
+ export * from './components/hover-card';
19
31
  export * from './components/input';
32
+ export * from './components/input-group';
33
+ export * from './components/input-otp';
34
+ export * from './components/item';
35
+ export * from './components/kbd';
20
36
  export * from './components/label';
21
37
  export * from './components/list';
22
38
  export * from './components/map';
39
+ export * from './components/menubar';
23
40
  export * from './components/message';
41
+ export * from './components/message-scroller';
24
42
  export * from './components/nav';
43
+ export * from './components/navigation-menu';
25
44
  export * from './components/page-header';
26
45
  export * from './components/popover';
27
46
  export * from './components/progress';