@artemis-apps/ui 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 (210) hide show
  1. package/dist/brand/app-brands.d.ts +38 -0
  2. package/dist/brand/app-brands.js +110 -0
  3. package/dist/brand/app-icon.d.ts +34 -0
  4. package/dist/brand/app-icon.js +65 -0
  5. package/dist/brand/app-logo.d.ts +14 -0
  6. package/dist/brand/app-logo.js +27 -0
  7. package/dist/brand/favicons/account.svg +1 -0
  8. package/dist/brand/favicons/admin.svg +1 -0
  9. package/dist/brand/favicons/bridge.svg +1 -0
  10. package/dist/brand/favicons/calendar.svg +1 -0
  11. package/dist/brand/favicons/contacts.svg +1 -0
  12. package/dist/brand/favicons/core.svg +1 -0
  13. package/dist/brand/favicons/drive.svg +1 -0
  14. package/dist/brand/favicons/office.svg +1 -0
  15. package/dist/brand/file-icons/archive.svg +1 -0
  16. package/dist/brand/file-icons/audio.svg +1 -0
  17. package/dist/brand/file-icons/code.svg +1 -0
  18. package/dist/brand/file-icons/diagram.svg +1 -0
  19. package/dist/brand/file-icons/document.svg +1 -0
  20. package/dist/brand/file-icons/form.svg +1 -0
  21. package/dist/brand/file-icons/image.svg +1 -0
  22. package/dist/brand/file-icons/markdown.svg +1 -0
  23. package/dist/brand/file-icons/other.svg +1 -0
  24. package/dist/brand/file-icons/pdf.svg +1 -0
  25. package/dist/brand/file-icons/presentation.svg +1 -0
  26. package/dist/brand/file-icons/spreadsheet.svg +1 -0
  27. package/dist/brand/file-icons/text.svg +1 -0
  28. package/dist/brand/file-icons/video.svg +1 -0
  29. package/dist/brand/grain-surface.d.ts +8 -0
  30. package/dist/brand/grain-surface.js +10 -0
  31. package/dist/brand/kind-icons.d.ts +36 -0
  32. package/dist/brand/kind-icons.js +149 -0
  33. package/dist/components/account-menu.d.ts +20 -0
  34. package/dist/components/account-menu.js +13 -0
  35. package/dist/components/alert.d.ts +10 -0
  36. package/dist/components/alert.js +28 -0
  37. package/dist/components/app-switcher.d.ts +21 -0
  38. package/dist/components/app-switcher.js +17 -0
  39. package/dist/components/area-selection.d.ts +21 -0
  40. package/dist/components/area-selection.js +91 -0
  41. package/dist/components/avatar-picker-dialog.d.ts +40 -0
  42. package/dist/components/avatar-picker-dialog.js +110 -0
  43. package/dist/components/avatar.d.ts +5 -0
  44. package/dist/components/avatar.js +10 -0
  45. package/dist/components/badge-list.d.ts +7 -0
  46. package/dist/components/badge-list.js +7 -0
  47. package/dist/components/badge.d.ts +9 -0
  48. package/dist/components/badge.js +32 -0
  49. package/dist/components/breadcrumbs.d.ts +20 -0
  50. package/dist/components/breadcrumbs.js +16 -0
  51. package/dist/components/button.d.ts +12 -0
  52. package/dist/components/button.js +38 -0
  53. package/dist/components/caption.d.ts +3 -0
  54. package/dist/components/caption.js +6 -0
  55. package/dist/components/card.d.ts +8 -0
  56. package/dist/components/card.js +23 -0
  57. package/dist/components/checkbox-field.d.ts +10 -0
  58. package/dist/components/checkbox-field.js +8 -0
  59. package/dist/components/checkbox.d.ts +3 -0
  60. package/dist/components/checkbox.js +7 -0
  61. package/dist/components/code.d.ts +16 -0
  62. package/dist/components/code.js +32 -0
  63. package/dist/components/color-dot.d.ts +11 -0
  64. package/dist/components/color-dot.js +34 -0
  65. package/dist/components/corner-mark.d.ts +14 -0
  66. package/dist/components/corner-mark.js +27 -0
  67. package/dist/components/date-range-field.d.ts +9 -0
  68. package/dist/components/date-range-field.js +9 -0
  69. package/dist/components/description-list.d.ts +11 -0
  70. package/dist/components/description-list.js +10 -0
  71. package/dist/components/dialog.d.ts +16 -0
  72. package/dist/components/dialog.js +38 -0
  73. package/dist/components/drag-and-drop.d.ts +60 -0
  74. package/dist/components/drag-and-drop.js +141 -0
  75. package/dist/components/dropdown-menu.d.ts +27 -0
  76. package/dist/components/dropdown-menu.js +44 -0
  77. package/dist/components/entity-avatar.d.ts +28 -0
  78. package/dist/components/entity-avatar.js +22 -0
  79. package/dist/components/entity-menu.d.ts +67 -0
  80. package/dist/components/entity-menu.js +74 -0
  81. package/dist/components/error-alert.d.ts +7 -0
  82. package/dist/components/error-alert.js +9 -0
  83. package/dist/components/event-chip.d.ts +16 -0
  84. package/dist/components/event-chip.js +19 -0
  85. package/dist/components/fab.d.ts +21 -0
  86. package/dist/components/fab.js +14 -0
  87. package/dist/components/file-drop-zone.d.ts +35 -0
  88. package/dist/components/file-drop-zone.js +44 -0
  89. package/dist/components/file-type-icon.d.ts +44 -0
  90. package/dist/components/file-type-icon.js +147 -0
  91. package/dist/components/icon-image.d.ts +10 -0
  92. package/dist/components/icon-image.js +11 -0
  93. package/dist/components/identity.d.ts +27 -0
  94. package/dist/components/identity.js +22 -0
  95. package/dist/components/inline-field.d.ts +40 -0
  96. package/dist/components/inline-field.js +110 -0
  97. package/dist/components/input.d.ts +17 -0
  98. package/dist/components/input.js +14 -0
  99. package/dist/components/item-list.d.ts +11 -0
  100. package/dist/components/item-list.js +15 -0
  101. package/dist/components/label.d.ts +3 -0
  102. package/dist/components/label.js +6 -0
  103. package/dist/components/mini-month.d.ts +15 -0
  104. package/dist/components/mini-month.js +35 -0
  105. package/dist/components/placeholder-avatar.d.ts +12 -0
  106. package/dist/components/placeholder-avatar.js +6 -0
  107. package/dist/components/popover.d.ts +7 -0
  108. package/dist/components/popover.js +16 -0
  109. package/dist/components/progress-list.d.ts +31 -0
  110. package/dist/components/progress-list.js +15 -0
  111. package/dist/components/progress-ring.d.ts +13 -0
  112. package/dist/components/progress-ring.js +14 -0
  113. package/dist/components/progress.d.ts +10 -0
  114. package/dist/components/progress.js +12 -0
  115. package/dist/components/search-box.d.ts +25 -0
  116. package/dist/components/search-box.js +56 -0
  117. package/dist/components/searchable-options.d.ts +32 -0
  118. package/dist/components/searchable-options.js +17 -0
  119. package/dist/components/section-label.d.ts +7 -0
  120. package/dist/components/section-label.js +8 -0
  121. package/dist/components/segmented-control.d.ts +21 -0
  122. package/dist/components/segmented-control.js +9 -0
  123. package/dist/components/select-menu.d.ts +38 -0
  124. package/dist/components/select-menu.js +26 -0
  125. package/dist/components/selection-bar.d.ts +17 -0
  126. package/dist/components/selection-bar.js +15 -0
  127. package/dist/components/separator.d.ts +3 -0
  128. package/dist/components/separator.js +6 -0
  129. package/dist/components/share-dialog.d.ts +63 -0
  130. package/dist/components/share-dialog.js +74 -0
  131. package/dist/components/sheet.d.ts +20 -0
  132. package/dist/components/sheet.js +24 -0
  133. package/dist/components/skeleton.d.ts +2 -0
  134. package/dist/components/skeleton.js +5 -0
  135. package/dist/components/spinner.d.ts +3 -0
  136. package/dist/components/spinner.js +8 -0
  137. package/dist/components/table.d.ts +7 -0
  138. package/dist/components/table.js +20 -0
  139. package/dist/components/text-link.d.ts +9 -0
  140. package/dist/components/text-link.js +9 -0
  141. package/dist/components/text.d.ts +13 -0
  142. package/dist/components/text.js +8 -0
  143. package/dist/components/toaster.d.ts +8 -0
  144. package/dist/components/toaster.js +27 -0
  145. package/dist/components/viewer-dialog.d.ts +37 -0
  146. package/dist/components/viewer-dialog.js +53 -0
  147. package/dist/index.d.ts +87 -0
  148. package/dist/index.js +87 -0
  149. package/dist/layout/app-frame.d.ts +42 -0
  150. package/dist/layout/app-frame.js +62 -0
  151. package/dist/layout/app-shell.d.ts +11 -0
  152. package/dist/layout/app-shell.js +7 -0
  153. package/dist/layout/document-title.d.ts +14 -0
  154. package/dist/layout/document-title.js +39 -0
  155. package/dist/layout/empty-state.d.ts +16 -0
  156. package/dist/layout/empty-state.js +19 -0
  157. package/dist/layout/entity-header.d.ts +14 -0
  158. package/dist/layout/entity-header.js +6 -0
  159. package/dist/layout/form-field.d.ts +10 -0
  160. package/dist/layout/form-field.js +9 -0
  161. package/dist/layout/form-grid.d.ts +6 -0
  162. package/dist/layout/form-grid.js +9 -0
  163. package/dist/layout/full-page-message.d.ts +10 -0
  164. package/dist/layout/full-page-message.js +5 -0
  165. package/dist/layout/full-page-surface.d.ts +12 -0
  166. package/dist/layout/full-page-surface.js +8 -0
  167. package/dist/layout/month-grid.d.ts +31 -0
  168. package/dist/layout/month-grid.js +12 -0
  169. package/dist/layout/page-header.d.ts +14 -0
  170. package/dist/layout/page-header.js +11 -0
  171. package/dist/layout/panel.d.ts +15 -0
  172. package/dist/layout/panel.js +12 -0
  173. package/dist/layout/retry-message.d.ts +8 -0
  174. package/dist/layout/retry-message.js +9 -0
  175. package/dist/layout/route-error-message.d.ts +9 -0
  176. package/dist/layout/route-error-message.js +9 -0
  177. package/dist/layout/row-list.d.ts +87 -0
  178. package/dist/layout/row-list.js +67 -0
  179. package/dist/layout/settings-section.d.ts +14 -0
  180. package/dist/layout/settings-section.js +11 -0
  181. package/dist/layout/sidebar-nav.d.ts +79 -0
  182. package/dist/layout/sidebar-nav.js +59 -0
  183. package/dist/layout/sign-in-layout.d.ts +19 -0
  184. package/dist/layout/sign-in-layout.js +11 -0
  185. package/dist/layout/sortable-row-list.d.ts +27 -0
  186. package/dist/layout/sortable-row-list.js +61 -0
  187. package/dist/layout/stack.d.ts +41 -0
  188. package/dist/layout/stack.js +51 -0
  189. package/dist/layout/tile-grid.d.ts +75 -0
  190. package/dist/layout/tile-grid.js +71 -0
  191. package/dist/layout/time-grid.d.ts +40 -0
  192. package/dist/layout/time-grid.js +63 -0
  193. package/dist/layout/use-favicon.d.ts +5 -0
  194. package/dist/layout/use-favicon.js +20 -0
  195. package/dist/lib/cn.d.ts +2 -0
  196. package/dist/lib/cn.js +5 -0
  197. package/dist/lib/initials.d.ts +2 -0
  198. package/dist/lib/initials.js +7 -0
  199. package/dist/mascot/mascot.d.ts +23 -0
  200. package/dist/mascot/mascot.definition.json +14 -0
  201. package/dist/mascot/mascot.js +49 -0
  202. package/dist/mascot/use-thinking-motion.d.ts +8 -0
  203. package/dist/mascot/use-thinking-motion.js +68 -0
  204. package/dist/styles.css +385 -0
  205. package/dist/vite/artemis-favicon.plugin.d.ts +10 -0
  206. package/dist/vite/artemis-favicon.plugin.js +67 -0
  207. package/dist/vite/phosphor-icons.plugin.d.ts +8 -0
  208. package/dist/vite/phosphor-icons.plugin.js +61 -0
  209. package/package.json +97 -3
  210. package/README.md +0 -3
@@ -0,0 +1,27 @@
1
+ import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
2
+ import type * as React from 'react';
3
+ export declare const MENU_CONTENT_CLASS_NAME = "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 min-w-32 overflow-y-auto overflow-x-hidden rounded-xl border bg-popover p-1.5 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in";
4
+ export declare const MENU_ITEM_CLASS_NAME = "relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-danger-foreground data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-danger-soft data-[variant=destructive]:focus:text-danger-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0";
5
+ export declare const MENU_CHECKABLE_ITEM_CLASS_NAME = "relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0";
6
+ export declare const MENU_SEPARATOR_CLASS_NAME = "-mx-1 my-1 h-px bg-border";
7
+ export declare function DropdownMenu(props: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
8
+ export declare function DropdownMenuTrigger(props: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
9
+ export declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
10
+ export interface DropdownMenuItemProps extends React.ComponentProps<typeof DropdownMenuPrimitive.Item> {
11
+ inset?: boolean;
12
+ variant?: 'default' | 'destructive';
13
+ }
14
+ export declare function DropdownMenuItem({ className, inset, variant, ...props }: DropdownMenuItemProps): React.JSX.Element;
15
+ export declare function DropdownMenuRadioGroup(props: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
16
+ /** One choice of a `DropdownMenuRadioGroup`, checked when it is the group's value. */
17
+ export declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): React.JSX.Element;
18
+ /**
19
+ * An option of a menu that is on or off, each independently (the labels a contact carries).
20
+ * Checking it keeps the menu open, so several can be toggled in a row.
21
+ */
22
+ export declare function DropdownMenuCheckboxItem({ className, children, onSelect, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): React.JSX.Element;
23
+ export interface DropdownMenuLabelProps extends React.ComponentProps<typeof DropdownMenuPrimitive.Label> {
24
+ inset?: boolean;
25
+ }
26
+ export declare function DropdownMenuLabel({ className, inset, ...props }: DropdownMenuLabelProps): React.JSX.Element;
27
+ export declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CheckIcon } from '@phosphor-icons/react';
3
+ import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
4
+ import { cn } from '../lib/cn.js';
5
+ // Shared with `EntityMenu`, so a context menu and a dropdown look the same.
6
+ export const MENU_CONTENT_CLASS_NAME = 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 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 z-50 min-w-32 overflow-y-auto overflow-x-hidden rounded-xl border bg-popover p-1.5 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in';
7
+ export const MENU_ITEM_CLASS_NAME = "relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-danger-foreground data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-danger-soft data-[variant=destructive]:focus:text-danger-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0";
8
+ export const MENU_CHECKABLE_ITEM_CLASS_NAME = "relative flex cursor-pointer select-none items-center gap-2 rounded-md py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0";
9
+ export const MENU_SEPARATOR_CLASS_NAME = '-mx-1 my-1 h-px bg-border';
10
+ export function DropdownMenu(props) {
11
+ return _jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
12
+ }
13
+ export function DropdownMenuTrigger(props) {
14
+ return _jsx(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
15
+ }
16
+ export function DropdownMenuContent({ className, sideOffset = 4, ...props }) {
17
+ return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { "data-slot": "dropdown-menu-content", sideOffset: sideOffset, className: cn(MENU_CONTENT_CLASS_NAME, 'max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin)', className), ...props }) }));
18
+ }
19
+ export function DropdownMenuItem({ className, inset, variant = 'default', ...props }) {
20
+ return (_jsx(DropdownMenuPrimitive.Item, { "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn(MENU_ITEM_CLASS_NAME, className), ...props }));
21
+ }
22
+ export function DropdownMenuRadioGroup(props) {
23
+ return _jsx(DropdownMenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
24
+ }
25
+ /** One choice of a `DropdownMenuRadioGroup`, checked when it is the group's value. */
26
+ export function DropdownMenuRadioItem({ className, children, ...props }) {
27
+ return (_jsxs(DropdownMenuPrimitive.RadioItem, { "data-slot": "dropdown-menu-radio-item", className: cn(MENU_CHECKABLE_ITEM_CLASS_NAME, className), ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-4 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
28
+ }
29
+ /**
30
+ * An option of a menu that is on or off, each independently (the labels a contact carries).
31
+ * Checking it keeps the menu open, so several can be toggled in a row.
32
+ */
33
+ export function DropdownMenuCheckboxItem({ className, children, onSelect, ...props }) {
34
+ return (_jsxs(DropdownMenuPrimitive.CheckboxItem, { "data-slot": "dropdown-menu-checkbox-item", className: cn(MENU_CHECKABLE_ITEM_CLASS_NAME, className), onSelect: (event) => {
35
+ event.preventDefault();
36
+ onSelect?.(event);
37
+ }, ...props, children: [_jsx("span", { className: "pointer-events-none absolute left-2 flex size-4 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
38
+ }
39
+ export function DropdownMenuLabel({ className, inset, ...props }) {
40
+ return (_jsx(DropdownMenuPrimitive.Label, { "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn('px-2 py-1.5 font-medium text-sm data-[inset]:pl-8', className), ...props }));
41
+ }
42
+ export function DropdownMenuSeparator({ className, ...props }) {
43
+ return (_jsx(DropdownMenuPrimitive.Separator, { "data-slot": "dropdown-menu-separator", className: cn(MENU_SEPARATOR_CLASS_NAME, className), ...props }));
44
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Avatar palette: the six colours of the platform palette in bright-but-soft mid tones, so
3
+ * avatars stay on brand, friendly, and easy to tell apart. `beam` paints the face in one
4
+ * colour on a background of another and draws the features in black or white by contrast,
5
+ * so every pair stays readable.
6
+ * Hex values, because boring-avatars computes contrasts from them.
7
+ */
8
+ export declare const AVATAR_PALETTE: readonly string[];
9
+ export type EntityAvatarVariant = 'marble' | 'beam' | 'pixel' | 'sunset' | 'ring' | 'bauhaus' | 'geometric' | 'abstract';
10
+ export interface EntityAvatarProps {
11
+ /** Seed of the generated picture (the avatar's seed, else the entity id). */
12
+ name: string;
13
+ /** An uploaded picture. When set, it is shown instead of the generated one. */
14
+ imageUrl?: string;
15
+ /** Diameter in CSS pixels. Defaults to 32. */
16
+ size?: number;
17
+ /** boring-avatars style. Defaults to `beam`: a small friendly face. */
18
+ variant?: EntityAvatarVariant;
19
+ /** Overrides the palette (hex colors). */
20
+ colors?: readonly string[];
21
+ /** Draws a ring in the page background colour around the avatar, for stacks and overlaps. */
22
+ ring?: boolean;
23
+ /** Accessible name. Omit (decorative) when the name is printed next to the avatar. */
24
+ label?: string;
25
+ className?: string;
26
+ }
27
+ /** The avatar of an account or a contact: its uploaded picture, else a generated face (boring-avatars). */
28
+ export declare function EntityAvatar({ name, imageUrl, size, variant, colors, ring, label, className, }: EntityAvatarProps): import("react").JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import BoringAvatar from 'boring-avatars';
3
+ import { cn } from '../lib/cn.js';
4
+ /**
5
+ * Avatar palette: the six colours of the platform palette in bright-but-soft mid tones, so
6
+ * avatars stay on brand, friendly, and easy to tell apart. `beam` paints the face in one
7
+ * colour on a background of another and draws the features in black or white by contrast,
8
+ * so every pair stays readable.
9
+ * Hex values, because boring-avatars computes contrasts from them.
10
+ */
11
+ export const AVATAR_PALETTE = [
12
+ '#6f9cf2', // blue
13
+ '#5cc08a', // green
14
+ '#a88bf0', // violet
15
+ '#f5c84c', // yellow
16
+ '#f39a5b', // orange
17
+ '#ef7a7a', // red
18
+ ];
19
+ /** The avatar of an account or a contact: its uploaded picture, else a generated face (boring-avatars). */
20
+ export function EntityAvatar({ name, imageUrl, size = 32, variant = 'beam', colors = AVATAR_PALETTE, ring = false, label, className, }) {
21
+ return (_jsx("span", { "data-slot": "entity-avatar", role: "img", "aria-label": label || undefined, "aria-hidden": label ? undefined : true, className: cn('inline-flex shrink-0 overflow-hidden rounded-full [&>svg]:size-full', ring && 'ring-2 ring-background', className), style: { width: size, height: size }, children: imageUrl ? (_jsx("img", { src: imageUrl, alt: "", width: size, height: size, className: "size-full object-cover" })) : (_jsx(BoringAvatar, { name: name, size: size, variant: variant, colors: [...colors] })) }));
22
+ }
@@ -0,0 +1,67 @@
1
+ import * as React from 'react';
2
+ import { Button } from './button.tsx';
3
+ /** One choice of an action's submenu, e.g. a book of "Move to", a kind of "New". */
4
+ export interface EntityMenuChoice {
5
+ id: string;
6
+ label: React.ReactNode;
7
+ /**
8
+ * Drawn before the label: a Phosphor icon, or an `IconImage`. Give every choice of a submenu
9
+ * one, or none: a submenu with icons leaves no room for check marks.
10
+ */
11
+ icon?: React.ReactNode;
12
+ /** The current choice: shown with a check mark. */
13
+ checked?: boolean;
14
+ disabled?: boolean;
15
+ /** Starts a group of choices: a divider sets it apart from those before. */
16
+ startsGroup?: boolean;
17
+ onSelect: () => void;
18
+ }
19
+ /** One entry of an entity's menu. */
20
+ export interface EntityMenuAction {
21
+ id: string;
22
+ label: React.ReactNode;
23
+ /** A Phosphor icon, drawn before the label. */
24
+ icon?: React.ReactNode;
25
+ /** An action that destroys or revokes: drawn in red, after the other ones and a divider. */
26
+ destructive?: boolean;
27
+ disabled?: boolean;
28
+ /** What the action does. Leave it out when `choices` opens a submenu instead. */
29
+ onSelect?: () => void;
30
+ /** Opens a submenu of choices instead of acting. An empty list disables the action. */
31
+ choices?: EntityMenuChoice[];
32
+ }
33
+ export interface EntityMenuProps {
34
+ /** Accessible name of the menu and of its `EntityMenuButton`, e.g. "Actions for Ada". */
35
+ label: string;
36
+ /** What the account may do with the entity; an empty list leaves the entity without a menu. */
37
+ actions: EntityMenuAction[];
38
+ /**
39
+ * The entity's element (a row, a sidebar item): right-clicking it, or pressing the context-menu
40
+ * key while it is focused, opens the menu. It must accept a ref and event handlers.
41
+ */
42
+ children: React.ReactElement;
43
+ /**
44
+ * Runs as the menu opens, before it shows: e.g. to select the entity it acts on. What it
45
+ * changes renders together with the menu, so `actions` can follow it.
46
+ */
47
+ onOpen?: () => void;
48
+ }
49
+ /**
50
+ * The menu of one entity (a contact, a book, an account, an app): it opens on a right-click of
51
+ * the entity, and from an `EntityMenuButton` placed anywhere inside `EntityMenu`, so both show
52
+ * the same actions. Actions that destroy come last, after a divider.
53
+ *
54
+ * ```tsx
55
+ * <EntityMenu label={`Actions for ${name}`} actions={actions}>
56
+ * <li>… <EntityMenuButton /></li>
57
+ * </EntityMenu>
58
+ * ```
59
+ */
60
+ export declare function EntityMenu({ label, actions, children, onOpen }: EntityMenuProps): React.JSX.Element;
61
+ export interface EntityMenuButtonProps extends Omit<React.ComponentProps<typeof Button>, 'onClick' | 'children'> {
62
+ }
63
+ /**
64
+ * The "More" button (three dots) of an entity: opens its `EntityMenu`, just like a right-click.
65
+ * Renders nothing when the entity has no action.
66
+ */
67
+ export declare function EntityMenuButton({ className, size, ...props }: EntityMenuButtonProps): React.JSX.Element | null;
@@ -0,0 +1,74 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useSharedMessages } from '@artemis-apps/translations/react';
3
+ import { CaretRightIcon, CheckIcon, DotsThreeVerticalIcon } from '@phosphor-icons/react';
4
+ import { ContextMenu as ContextMenuPrimitive } from 'radix-ui';
5
+ import * as React from 'react';
6
+ import { cn } from '../lib/cn.js';
7
+ import { Button } from './button.js';
8
+ import { MENU_CHECKABLE_ITEM_CLASS_NAME, MENU_CONTENT_CLASS_NAME, MENU_ITEM_CLASS_NAME, MENU_SEPARATOR_CLASS_NAME, } from './dropdown-menu.js';
9
+ const EntityMenuContext = React.createContext(undefined);
10
+ function ActionItem({ action }) {
11
+ const variant = action.destructive ? 'destructive' : 'default';
12
+ if (!action.choices) {
13
+ return (_jsxs(ContextMenuPrimitive.Item, { "data-variant": variant, disabled: action.disabled, onSelect: action.onSelect, className: MENU_ITEM_CLASS_NAME, children: [action.icon, action.label] }));
14
+ }
15
+ const withIcons = action.choices.some((choice) => choice.icon !== undefined);
16
+ return (_jsxs(ContextMenuPrimitive.Sub, { children: [_jsxs(ContextMenuPrimitive.SubTrigger, { "data-variant": variant, disabled: action.disabled || action.choices.length === 0, className: MENU_ITEM_CLASS_NAME, children: [action.icon, action.label, _jsx(CaretRightIcon, { className: "ml-auto size-3.5" })] }), _jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.SubContent, { sideOffset: 6, className: cn(MENU_CONTENT_CLASS_NAME, 'max-h-(--radix-context-menu-content-available-height) w-56 origin-(--radix-context-menu-content-transform-origin)'), children: action.choices.map((choice, index) => (_jsxs(React.Fragment, { children: [choice.startsGroup && index > 0 && (_jsx(ContextMenuPrimitive.Separator, { className: MENU_SEPARATOR_CLASS_NAME })), _jsxs(ContextMenuPrimitive.Item, { disabled: choice.disabled, onSelect: choice.onSelect, className: withIcons ? MENU_ITEM_CLASS_NAME : MENU_CHECKABLE_ITEM_CLASS_NAME, children: [withIcons
17
+ ? choice.icon
18
+ : choice.checked && (_jsx("span", { className: "pointer-events-none absolute left-2 flex size-4 items-center justify-center", children: _jsx(CheckIcon, {}) })), _jsx("span", { className: "truncate", children: choice.label })] })] }, choice.id))) }) })] }));
19
+ }
20
+ /**
21
+ * The menu of one entity (a contact, a book, an account, an app): it opens on a right-click of
22
+ * the entity, and from an `EntityMenuButton` placed anywhere inside `EntityMenu`, so both show
23
+ * the same actions. Actions that destroy come last, after a divider.
24
+ *
25
+ * ```tsx
26
+ * <EntityMenu label={`Actions for ${name}`} actions={actions}>
27
+ * <li>… <EntityMenuButton /></li>
28
+ * </EntityMenu>
29
+ * ```
30
+ */
31
+ export function EntityMenu({ label, actions, children, onOpen }) {
32
+ const [open, setOpen] = React.useState(false);
33
+ const trigger = React.useRef(null);
34
+ const openFrom = React.useCallback((anchor) => {
35
+ const target = trigger.current;
36
+ if (!target)
37
+ return;
38
+ const { left, bottom } = anchor.getBoundingClientRect();
39
+ // The same event as a right-click: the menu opens there, aligned under the anchor.
40
+ target.dispatchEvent(new MouseEvent('contextmenu', {
41
+ bubbles: true,
42
+ cancelable: true,
43
+ button: 2,
44
+ clientX: left,
45
+ clientY: bottom + 4,
46
+ }));
47
+ }, []);
48
+ const context = React.useMemo(() => ({ label, open, openFrom }), [label, open, openFrom]);
49
+ if (actions.length === 0)
50
+ return children;
51
+ const regular = actions.filter((action) => !action.destructive);
52
+ const destructive = actions.filter((action) => action.destructive);
53
+ return (_jsx(EntityMenuContext.Provider, { value: context, children: _jsxs(ContextMenuPrimitive.Root, { onOpenChange: (next) => {
54
+ if (next)
55
+ onOpen?.();
56
+ setOpen(next);
57
+ }, children: [_jsx(ContextMenuPrimitive.Trigger, { asChild: true, ref: trigger, children: children }), _jsx(ContextMenuPrimitive.Portal, { children: _jsxs(ContextMenuPrimitive.Content, { "aria-label": label, className: cn(MENU_CONTENT_CLASS_NAME, 'max-h-(--radix-context-menu-content-available-height) w-56 origin-(--radix-context-menu-content-transform-origin)'), children: [regular.map((action) => (_jsx(ActionItem, { action: action }, action.id))), regular.length > 0 && destructive.length > 0 && (_jsx(ContextMenuPrimitive.Separator, { className: MENU_SEPARATOR_CLASS_NAME })), destructive.map((action) => (_jsx(ActionItem, { action: action }, action.id)))] }) })] }) }));
58
+ }
59
+ /**
60
+ * The "More" button (three dots) of an entity: opens its `EntityMenu`, just like a right-click.
61
+ * Renders nothing when the entity has no action.
62
+ */
63
+ export function EntityMenuButton({ className, size = 'icon-sm', ...props }) {
64
+ const menu = React.useContext(EntityMenuContext);
65
+ const t = useSharedMessages();
66
+ if (!menu)
67
+ return null;
68
+ return (_jsx(Button, { type: "button", variant: "ghost", size: size, "aria-label": menu.label, title: t.common.moreActions, "aria-haspopup": "menu", "aria-expanded": menu.open, "data-state": menu.open ? 'open' : 'closed', className: cn('text-muted-foreground data-[state=open]:bg-accent data-[state=open]:text-foreground', className), ...props, onClick: (event) => {
69
+ // Inside a row link, the click must not also open the link.
70
+ event.preventDefault();
71
+ event.stopPropagation();
72
+ menu.openFrom(event.currentTarget);
73
+ }, children: _jsx(DotsThreeVerticalIcon, {}) }));
74
+ }
@@ -0,0 +1,7 @@
1
+ export interface ErrorAlertProps {
2
+ title: string;
3
+ /** The failure. `null` renders nothing, so a mutation's `error` can be passed as is. */
4
+ error: Error | null;
5
+ }
6
+ /** A failed request, shown inline with its message. */
7
+ export declare function ErrorAlert({ title, error }: ErrorAlertProps): import("react").JSX.Element | null;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { WarningCircleIcon } from '@phosphor-icons/react';
3
+ import { Alert, AlertDescription, AlertTitle } from './alert.js';
4
+ /** A failed request, shown inline with its message. */
5
+ export function ErrorAlert({ title, error }) {
6
+ if (!error)
7
+ return null;
8
+ return (_jsxs(Alert, { variant: "danger", children: [_jsx(WarningCircleIcon, {}), _jsx(AlertTitle, { children: title }), _jsx(AlertDescription, { children: error.message })] }));
9
+ }
@@ -0,0 +1,16 @@
1
+ import type * as React from 'react';
2
+ import type { PaletteColor } from '../brand/app-brands.ts';
3
+ export interface EventChipProps extends Omit<React.ComponentProps<'button'>, 'title'> {
4
+ /** The colour of its calendar. */
5
+ color: PaletteColor;
6
+ title: React.ReactNode;
7
+ /** A short line with it: its time, its place. */
8
+ meta?: React.ReactNode;
9
+ /**
10
+ * - `line` (default): one line, in a day of a month, or in an all-day row;
11
+ * - `block`: fills the box a time grid gives it, the title over its time.
12
+ */
13
+ variant?: 'line' | 'block';
14
+ }
15
+ /** An event in a calendar view: a tinted chip of its calendar's colour, with a bar on its edge. */
16
+ export declare function EventChip({ color, title, meta, variant, className, ...props }: EventChipProps): React.JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../lib/cn.js';
3
+ const TONES = {
4
+ blue: 'bg-blue-soft text-blue-foreground before:bg-blue',
5
+ cyan: 'bg-cyan-soft text-cyan-foreground before:bg-cyan',
6
+ green: 'bg-green-soft text-green-foreground before:bg-green',
7
+ violet: 'bg-violet-soft text-violet-foreground before:bg-violet',
8
+ yellow: 'bg-yellow-soft text-yellow-foreground before:bg-yellow',
9
+ orange: 'bg-orange-soft text-orange-foreground before:bg-orange',
10
+ red: 'bg-red-soft text-red-foreground before:bg-red',
11
+ };
12
+ /** An event in a calendar view: a tinted chip of its calendar's colour, with a bar on its edge. */
13
+ export function EventChip({ color, title, meta, variant = 'line', className, ...props }) {
14
+ return (_jsxs("button", { type: "button", "data-slot": "event-chip", "data-variant": variant, className: cn('relative flex min-w-0 overflow-hidden rounded-sm pl-2 text-left text-xs outline-none transition-[filter] hover:brightness-95 focus-ring',
15
+ // The bar of the calendar's colour, on the leading edge.
16
+ 'before:absolute before:inset-y-0 before:left-0 before:w-0.75', TONES[color], variant === 'line'
17
+ ? 'h-5 w-full shrink-0 items-center gap-1.5 pr-1.5'
18
+ : 'size-full flex-col gap-0.5 py-1 pr-1 shadow-xs ring-1 ring-panel', className), ...props, children: [_jsx("span", { className: "truncate font-medium", children: title }), meta && _jsx("span", { className: "truncate opacity-80", children: meta })] }));
19
+ }
@@ -0,0 +1,21 @@
1
+ import type * as React from 'react';
2
+ export interface FabProps extends Omit<React.ComponentProps<'button'>, 'aria-label'> {
3
+ /** What the button does, e.g. "New contact": its accessible name and tooltip. */
4
+ label: string;
5
+ /** The icon. Defaults to a plus. */
6
+ icon?: React.ReactNode;
7
+ /** Also prints the label next to the icon, on screens from the `sm` breakpoint. */
8
+ extended?: boolean;
9
+ /**
10
+ * Render the child element (typically the router's `<Link>`, left empty) instead of a
11
+ * button; it receives the icon and the label.
12
+ */
13
+ asChild?: boolean;
14
+ }
15
+ /**
16
+ * The floating action button: the page's "add" action (new contact, enroll an app...). It
17
+ * floats at the bottom-right of `AppFrame`'s main panel, inset by the frame gutter, so it never
18
+ * covers the topbar or the sidebar. Painted with the primary texture. Render one per page,
19
+ * inside the page content.
20
+ */
21
+ export declare function Fab({ label, icon, extended, asChild, className, children, ...props }: FabProps): React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { PlusIcon } from '@phosphor-icons/react';
3
+ import { Slot as SlotPrimitive } from 'radix-ui';
4
+ import { cn } from '../lib/cn.js';
5
+ /**
6
+ * The floating action button: the page's "add" action (new contact, enroll an app...). It
7
+ * floats at the bottom-right of `AppFrame`'s main panel, inset by the frame gutter, so it never
8
+ * covers the topbar or the sidebar. Painted with the primary texture. Render one per page,
9
+ * inside the page content.
10
+ */
11
+ export function Fab({ label, icon, extended = false, asChild = false, className, children, ...props }) {
12
+ const Comp = asChild ? SlotPrimitive.Slot : 'button';
13
+ return (_jsxs(Comp, { "data-slot": "fab", "data-extended": extended || undefined, "aria-label": label, title: label, ...(asChild ? {} : { type: 'button' }), className: cn('primary-texture-subtle absolute right-(--frame-gutter) bottom-(--frame-gutter) z-30 inline-flex h-14 min-w-14 select-none items-center justify-center gap-2 rounded-xl px-4 font-medium text-sm outline-none', 'shadow-[0_6px_16px_-4px_rgb(15_23_42/0.28),0_2px_4px_rgb(15_23_42/0.12)] [text-shadow:0_1px_1px_rgb(0_0_0/0.12)]', 'transition-[transform,filter,box-shadow] duration-150 ease-out hover:brightness-105 active:scale-95 active:shadow-[0_3px_8px_-2px_rgb(15_23_42/0.3)]', 'focus-ring disabled:pointer-events-none disabled:opacity-50', 'motion-reduce:transition-none motion-reduce:active:scale-100', "[&_svg:not([class*='size-'])]:size-6 [&_svg]:pointer-events-none [&_svg]:shrink-0", extended && 'sm:pr-5 sm:pl-4', className), ...props, children: [_jsx("span", { "aria-hidden": true, className: "flex", children: icon ?? _jsx(PlusIcon, {}) }), _jsx(SlotPrimitive.Slottable, { children: children }), extended && (_jsx("span", { "aria-hidden": true, className: "hidden sm:inline", children: label }))] }));
14
+ }
@@ -0,0 +1,35 @@
1
+ import * as React from 'react';
2
+ /** A file to upload, with the folders it sits in when a whole folder was dropped or picked. */
3
+ export interface PickedFile {
4
+ file: File;
5
+ /** The folders from the dropped or picked one down to the file's own: `['Photos', '2024']`. */
6
+ folders: string[];
7
+ }
8
+ export interface FileDropZoneProps {
9
+ /** Where the files go, in the overlay: "Drop files to upload them to Projects". */
10
+ label: React.ReactNode;
11
+ onDrop: (files: PickedFile[]) => void;
12
+ /** Files can't be dropped (no permission): the overlay never shows. */
13
+ disabled?: boolean;
14
+ /** The region receiving the files, e.g. the whole app frame. */
15
+ children: React.ReactNode;
16
+ }
17
+ /**
18
+ * Takes the files and folders dragged from the computer over its region: an overlay says where
19
+ * they will go while they are over it. Drags inside the page (`useDragSource`) are not files and
20
+ * never show it.
21
+ */
22
+ export declare function FileDropZone({ label, onDrop, disabled, children }: FileDropZoneProps): React.JSX.Element;
23
+ export interface FilePickerOptions {
24
+ onPick: (files: PickedFile[]) => void;
25
+ /** Picks a whole folder (and everything in it) instead of files. */
26
+ directory?: boolean;
27
+ }
28
+ /**
29
+ * Opens the system's file (or folder) picker: render `input` once, call `open` from a button or
30
+ * a menu item.
31
+ */
32
+ export declare function useFilePicker({ onPick, directory }: FilePickerOptions): {
33
+ open: () => void | undefined;
34
+ input: React.JSX.Element;
35
+ };
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CloudArrowUpIcon } from '@phosphor-icons/react';
3
+ import * as React from 'react';
4
+ import { useDropzone } from 'react-dropzone';
5
+ /**
6
+ * Where a file sits in what was dropped or picked: browsers give `/Photos/2024/a.jpg` for a
7
+ * dropped folder, `Photos/2024/a.jpg` for a picked one and `./a.jpg` for a lone file.
8
+ */
9
+ function toPickedFile(file) {
10
+ const withPath = file;
11
+ const path = withPath.relativePath || withPath.path || file.webkitRelativePath || file.name;
12
+ const segments = path.split('/').filter((segment) => segment !== '' && segment !== '.');
13
+ return { file, folders: segments.slice(0, -1) };
14
+ }
15
+ /**
16
+ * Takes the files and folders dragged from the computer over its region: an overlay says where
17
+ * they will go while they are over it. Drags inside the page (`useDragSource`) are not files and
18
+ * never show it.
19
+ */
20
+ export function FileDropZone({ label, onDrop, disabled = false, children }) {
21
+ const { getRootProps, isDragActive } = useDropzone({
22
+ onDrop: (accepted) => onDrop(accepted.map(toPickedFile)),
23
+ noClick: true,
24
+ noKeyboard: true,
25
+ disabled,
26
+ });
27
+ return (_jsxs("div", { "data-slot": "file-drop-zone", ...getRootProps({ className: 'contents' }), children: [children, isDragActive && (_jsx("div", { "aria-live": "polite", className: "fade-in-0 pointer-events-none fixed inset-2 z-50 flex animate-in items-center justify-center rounded-2xl border-2 border-primary border-dashed bg-primary-soft/85 backdrop-blur-xs duration-150", children: _jsxs("div", { className: "flex max-w-sm flex-col items-center gap-3 text-center", children: [_jsx(CloudArrowUpIcon, { "aria-hidden": true, className: "size-12 text-primary" }), _jsx("p", { className: "text-balance font-semibold text-foreground text-lg", children: label })] }) }))] }));
28
+ }
29
+ /**
30
+ * Opens the system's file (or folder) picker: render `input` once, call `open` from a button or
31
+ * a menu item.
32
+ */
33
+ export function useFilePicker({ onPick, directory = false }) {
34
+ const ref = React.useRef(null);
35
+ const open = React.useCallback(() => ref.current?.click(), []);
36
+ const input = (_jsx("input", { ref: ref, type: "file", multiple: true, hidden: true, ...(directory ? { webkitdirectory: '' } : {}), onChange: (event) => {
37
+ const files = [...(event.currentTarget.files ?? [])];
38
+ // Picking the same files again must fire again.
39
+ event.currentTarget.value = '';
40
+ if (files.length > 0)
41
+ onPick(files.map(toPickedFile));
42
+ } }));
43
+ return { open, input };
44
+ }
@@ -0,0 +1,44 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import type * as React from 'react';
3
+ /** What a file holds, as far as its look goes. */
4
+ export type FileCategory = 'folder' | 'image' | 'video' | 'audio' | 'pdf' | 'archive' | 'spreadsheet' | 'presentation' | 'document' | 'code' | 'text' | 'other';
5
+ /** Its category, from the declared type first, the name's extension otherwise. */
6
+ export declare function fileCategoryOf(contentType: string | null | undefined, name?: string): FileCategory;
7
+ declare const fileTypeIconVariants: (props?: ({
8
+ size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
9
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
10
+ export interface FileTypeIconProps extends VariantProps<typeof fileTypeIconVariants> {
11
+ /** A folder, or a file of some type. */
12
+ kind: 'folder' | 'file';
13
+ /** A file's declared type (`image/png`). */
14
+ contentType?: string | null;
15
+ /** A file's name: its extension tells the type when the declared one is vague. */
16
+ name?: string;
17
+ /**
18
+ * A small picture of the file (an image's thumbnail), shown instead while it loads fine.
19
+ */
20
+ thumbnailUrl?: string;
21
+ /**
22
+ * How the thumbnail fills the square, as `TileMedia`'s `fit`: around its middle (a photo, a
23
+ * film) or from its top (a document's first page). Whole, never cropped, without one.
24
+ */
25
+ fit?: 'center' | 'top';
26
+ /**
27
+ * The icon of the file's kind, served by an app supporting it (a document's): drawn whole in
28
+ * place of the category's icon, the thumbnail still coming first.
29
+ */
30
+ iconUrl?: string;
31
+ /**
32
+ * A small mark over the bottom-right corner, saying something about the item (a Phosphor icon,
33
+ * e.g. a person for a shortcut to an item shared with you).
34
+ */
35
+ badge?: React.ReactNode;
36
+ className?: string;
37
+ }
38
+ /**
39
+ * What a file or a folder is, at a glance: the file's own thumbnail when there is one, else the
40
+ * icon of its kind an app serves, else the icon of its category, with an optional badge over its
41
+ * corner.
42
+ */
43
+ export declare function FileTypeIcon({ kind, contentType, name, thumbnailUrl, fit, iconUrl, badge, size, className, }: FileTypeIconProps): React.JSX.Element;
44
+ export {};