@kismet-ux/constellation 1.11.1 → 1.13.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 (73) hide show
  1. package/dist/form/Checkbox/checkbox.js +56 -4
  2. package/dist/form/Checkbox/checkbox.js.map +1 -1
  3. package/dist/form/DatePicker/date-picker.js +55 -4
  4. package/dist/form/DatePicker/date-picker.js.map +1 -1
  5. package/dist/form/Input/input.css +9 -0
  6. package/dist/form.d.ts +1 -1
  7. package/dist/hooks/index.d.ts +1 -0
  8. package/dist/hooks/index.d.ts.map +1 -1
  9. package/dist/hooks/use-keyboard-inset.d.ts +38 -0
  10. package/dist/hooks/use-keyboard-inset.d.ts.map +1 -0
  11. package/dist/hooks/use-keyboard-inset.js +76 -0
  12. package/dist/hooks/use-keyboard-inset.js.map +1 -0
  13. package/dist/index-B0d2advx.d.ts +354 -0
  14. package/dist/index-BaTZEId2.d.ts +354 -0
  15. package/dist/index-BgAs5Dmg.d.ts +354 -0
  16. package/dist/index-BhyLuP25.d.ts +354 -0
  17. package/dist/index-BnhsWXrb.d.ts +354 -0
  18. package/dist/index-CLUKMTTu.d.ts +354 -0
  19. package/dist/index-CVEb-8MV.d.ts +566 -0
  20. package/dist/index-CcD4F6q1.d.ts +633 -0
  21. package/dist/index-ClPGArR0.d.ts +633 -0
  22. package/dist/index-D2L-7_nr.d.ts +354 -0
  23. package/dist/index-D81GIX01.d.ts +566 -0
  24. package/dist/index-DHbG5cYq.d.ts +633 -0
  25. package/dist/index-DOKRFZ3I.d.ts +354 -0
  26. package/dist/index-DiR9pLJe.d.ts +566 -0
  27. package/dist/index-DxbOGj5Y.d.ts +354 -0
  28. package/dist/index-bK5ZOxgI.d.ts +633 -0
  29. package/dist/index-p7kVnzRy.d.ts +633 -0
  30. package/dist/index-xQq5cJnf.d.ts +633 -0
  31. package/dist/index.css +88 -0
  32. package/dist/index.d.ts +45 -7
  33. package/dist/index.js +32 -30
  34. package/dist/index.js.map +1 -1
  35. package/dist/layout/AppContentFooter/app-content-footer.css +18 -1
  36. package/dist/layout/AppContentMain/app-content-main.css +9 -0
  37. package/dist/layout/AppShell/app-shell.d.ts.map +1 -1
  38. package/dist/layout/AppShell/app-shell.js +10 -0
  39. package/dist/layout/AppShell/app-shell.js.map +1 -1
  40. package/dist/layout/AppSidebarHeader/app-sidebar-header.css +14 -1
  41. package/dist/layout/AppSidebarHeader/app-sidebar-header.js +30 -1
  42. package/dist/layout/AppSidebarHeader/app-sidebar-header.js.map +1 -1
  43. package/dist/layout/Sidebar/sidebar.css +32 -0
  44. package/dist/layout.d.ts +2 -2
  45. package/dist/navigation/NavUser/nav-user.js +2 -2
  46. package/dist/navigation/Sheet/sheet.css +20 -0
  47. package/dist/navigation/Sheet/sheet.js +29 -3
  48. package/dist/navigation/Sheet/sheet.js.map +1 -1
  49. package/dist/navigation.d.ts +1 -1
  50. package/dist/settings/AppearanceTabs/appearance-tabs.js +27 -1
  51. package/dist/settings/AppearanceTabs/appearance-tabs.js.map +1 -1
  52. package/dist/tokens.css +30 -0
  53. package/dist/tooltip-CZ7BC0g3.d.ts +46 -0
  54. package/dist/tooltip-Cf_wdeef.d.ts +46 -0
  55. package/dist/tooltip-D1Wex2bz.d.ts +46 -0
  56. package/dist/tooltip-X3uiRSnA.d.ts +46 -0
  57. package/dist/tooltip-zSCQCLLI.d.ts +46 -0
  58. package/dist/typography/Typography/typography.css +14 -14
  59. package/dist/ui/ChipSelect/chip-select.css +63 -0
  60. package/dist/ui/ChipSelect/chip-select.d.ts +69 -0
  61. package/dist/ui/ChipSelect/chip-select.d.ts.map +1 -0
  62. package/dist/ui/ChipSelect/chip-select.js +209 -0
  63. package/dist/ui/ChipSelect/chip-select.js.map +1 -0
  64. package/dist/ui/ChipSelect/chip-select.module.scss.js +6 -0
  65. package/dist/ui/ChipSelect/chip-select.module.scss.js.map +1 -0
  66. package/dist/ui/ChipSelect/index.d.ts +3 -0
  67. package/dist/ui/ChipSelect/index.d.ts.map +1 -0
  68. package/dist/ui/index.d.ts +1 -0
  69. package/dist/ui/index.d.ts.map +1 -1
  70. package/dist/ui.d.ts +2 -2
  71. package/dist/ui.js +1 -0
  72. package/dist/ui.js.map +1 -1
  73. package/package.json +1 -1
@@ -1,14 +1,40 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import cn from 'clsx';
3
- import { XIcon } from 'lucide-react';
2
+ import '../../ui/Alert/alert.js';
4
3
  import * as React from 'react';
5
4
  import { createPortal } from 'react-dom';
5
+ import '../../ui/Alert/alert-context.js';
6
+ import '../../ui/Alert/alert.css';
7
+ import '../../ui/Avatar/avatar.js';
8
+ import { Button } from '../../ui/Button/button.js';
9
+ import '../../ui/Chip/chip.js';
10
+ import '../../ui/ChipSelect/chip-select.js';
11
+ import '../../ui/CodeBlock/code-block.js';
12
+ import cn from 'clsx';
13
+ import '../../ui/DevIndicator/dev-indicator.css';
14
+ import '../../ui/Dialog/dialog.js';
15
+ import '../../ui/EmptyState/empty-state.js';
16
+ import '../../ui/Icon/icon.js';
17
+ import '../../ui/List/list.js';
18
+ import '../../ui/Pagination/pagination.js';
19
+ import '../../ui/ProgressBar/progress-bar.js';
20
+ import '../../ui/Separator/separator.js';
21
+ import '../../ui/StatCard/stat-card.js';
22
+ import '../../ui/StatusDot/status-dot.js';
23
+ import '../../ui/StatusDot/status-dot-variants.js';
24
+ import '../../ui/StepProgress/step-progress.js';
25
+ import '../../ui/Switch/switch.js';
26
+ import '../../ui/Table/table.js';
27
+ import '../../ui/TableActionCell/table-action-cell.js';
28
+ import '../../ui/TableToolbar/table-toolbar.js';
29
+ import '../../ui/Toggle/toggle.js';
30
+ import '../../ui/ToggleGroup/toggle-group.js';
31
+ import '../../ui/Tooltip/tooltip.js';
32
+ import { XIcon } from 'lucide-react';
6
33
  import { Slot } from '../../internal/slot.js';
7
34
  import { useAnimationState } from '../../internal/use-animation-state.js';
8
35
  import { useFocusTrap } from '../../internal/use-focus-trap.js';
9
36
  import { useScrollLock } from '../../internal/use-scroll-lock.js';
10
37
  import s from './sheet.module.scss.js';
11
- import { Button } from '../../ui/Button/button.js';
12
38
 
13
39
  const SheetContext = React.createContext(null);
14
40
  function useSheet() {
@@ -1 +1 @@
1
- {"version":3,"file":"sheet.js","sources":["../../../src/navigation/Sheet/sheet.tsx"],"sourcesContent":["import { Button } from '@constellation/ui';\nimport cn from 'clsx';\nimport { XIcon } from 'lucide-react';\nimport * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport { Slot } from '../../internal/slot';\nimport { useAnimationState } from '../../internal/use-animation-state';\nimport { useFocusTrap } from '../../internal/use-focus-trap';\nimport { useScrollLock } from '../../internal/use-scroll-lock';\nimport s from './sheet.module.scss';\n\n// ── Context ──────────────────────────────────────────────\n\ntype SheetContextValue = {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n titleId: string;\n descriptionId: string;\n};\n\nconst SheetContext = React.createContext<SheetContextValue | null>(null);\n\nfunction useSheet() {\n const ctx = React.useContext(SheetContext);\n if (!ctx) throw new Error('Sheet compound components must be used within <Sheet>');\n return ctx;\n}\n\n// ── Root ─────────────────────────────────────────────────\n\nexport interface SheetProps {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n children?: React.ReactNode;\n}\n\nfunction Sheet({ open: controlledOpen, defaultOpen = false, onOpenChange, children }: SheetProps) {\n const [internalOpen, setInternalOpen] = React.useState(defaultOpen);\n const isControlled = controlledOpen !== undefined;\n const open = isControlled ? controlledOpen : internalOpen;\n const titleId = React.useId();\n const descriptionId = React.useId();\n\n const handleOpenChange = React.useCallback(\n (next: boolean) => {\n if (!isControlled) setInternalOpen(next);\n onOpenChange?.(next);\n },\n [isControlled, onOpenChange],\n );\n\n return (\n <SheetContext.Provider value={{ open, onOpenChange: handleOpenChange, titleId, descriptionId }}>\n {children}\n </SheetContext.Provider>\n );\n}\n\n// ── Trigger ──────────────────────────────────────────────\n\nexport interface SheetTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n asChild?: boolean;\n}\n\nconst SheetTrigger = React.forwardRef<HTMLButtonElement, SheetTriggerProps>(\n ({ asChild, onClick, children, ...props }, ref) => {\n const { onOpenChange } = useSheet();\n const Comp = asChild ? Slot : 'button';\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(e);\n onOpenChange(true);\n };\n\n return (\n <Comp ref={ref} data-slot={'sheet-trigger'} onClick={handleClick} {...props}>\n {children}\n </Comp>\n );\n },\n);\nSheetTrigger.displayName = 'SheetTrigger';\n\n// ── Close ────────────────────────────────────────────────\n\nexport interface SheetCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n asChild?: boolean;\n}\n\nconst SheetClose = React.forwardRef<HTMLButtonElement, SheetCloseProps>(\n ({ asChild, onClick, children, ...props }, ref) => {\n const { onOpenChange } = useSheet();\n const Comp = asChild ? Slot : 'button';\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(e);\n onOpenChange(false);\n };\n\n return (\n <Comp ref={ref} data-slot={'sheet-close'} onClick={handleClick} {...props}>\n {children}\n </Comp>\n );\n },\n);\nSheetClose.displayName = 'SheetClose';\n\n// ── Content ──────────────────────────────────────────────\n\nconst sideClassMap = {\n right: s['content-right'],\n left: s['content-left'],\n top: s['content-top'],\n bottom: s['content-bottom'],\n} as const;\n\ntype SheetSide = keyof typeof sideClassMap;\n\nexport type SheetContentProps = React.HTMLAttributes<HTMLDivElement> & {\n side?: SheetSide;\n /**\n * How much room the panel gets. `sm` suits a confirm or a short form; `lg`\n * is for a working surface — a queue of editable cards needs the width or\n * its own content starts scrolling sideways.\n */\n size?: 'sm' | 'md' | 'lg';\n /**\n * Float the panel off the viewport edge instead of sitting flush to it.\n * Reads as a card over the page rather than a second wall of it.\n */\n inset?: boolean;\n};\n\nconst SheetContent = React.forwardRef<HTMLDivElement, SheetContentProps>(\n ({ className, children, side = 'right', size = 'md', inset = false, ...props }, ref) => {\n const { open, onOpenChange, titleId, descriptionId } = useSheet();\n const { mounted, state } = useAnimationState(open, 250);\n const focusTrapRef = useFocusTrap(open);\n useScrollLock(mounted);\n\n React.useEffect(() => {\n if (!open) return;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n // A nested layer (an open Select, DatePicker or menu) marks Escape as\n // handled with preventDefault. Escape should dismiss the topmost layer\n // only, so the modal ignores an event something inside it already took.\n if (e.key === 'Escape' && !e.defaultPrevented) {\n onOpenChange(false);\n }\n };\n\n document.addEventListener('keydown', handleKeyDown);\n return () => document.removeEventListener('keydown', handleKeyDown);\n }, [open, onOpenChange]);\n\n if (!mounted || state === 'idle') return null;\n\n return createPortal(\n <div data-constellation-portal={''} ref={focusTrapRef}>\n <div\n data-slot={'sheet-overlay'}\n data-state={state}\n className={s.overlay}\n onClick={() => onOpenChange(false)}\n aria-hidden={'true'}\n />\n <div\n ref={ref}\n data-slot={'sheet-content'}\n data-state={state}\n role={'dialog'}\n aria-modal={'true'}\n aria-labelledby={titleId}\n aria-describedby={descriptionId}\n className={cn(\n s['sheet-content'],\n sideClassMap[side],\n s[`size-${size}`],\n inset && s['content-inset'],\n className,\n )}\n onClick={e => e.stopPropagation()}\n {...props}\n >\n {children}\n <SheetClose className={s['close-button']} asChild>\n <Button variant={'ghost'} theme={'inherit'} iconOnly size={'sm'}>\n <XIcon />\n <span className={'srOnly'}>Close</span>\n </Button>\n </SheetClose>\n </div>\n </div>,\n document.body,\n );\n },\n);\nSheetContent.displayName = 'SheetContent';\n\n// ── Semantic sub-components ──────────────────────────────\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-header'} className={cn(s.header, className)} {...props} />;\n}\n\nfunction SheetBody({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-body'} className={cn(s.body, className)} {...props} />;\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-footer'} className={cn(s.footer, className)} {...props} />;\n}\n\nfunction SheetTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n const { titleId } = useSheet();\n\n return (\n <h2 id={titleId} data-slot={'sheet-title'} className={cn(s.title, className)} {...props} />\n );\n}\n\nfunction SheetDescription({ className, ...props }: React.ComponentProps<'p'>) {\n const { descriptionId } = useSheet();\n\n return (\n <p\n id={descriptionId}\n data-slot={'sheet-description'}\n className={cn(s.description, className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;AAoBA,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAA2B,IAAI,CAAC;AAExE,SAAS,QAAQ,GAAA;IACf,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC;AAC1C,IAAA,IAAI,CAAC,GAAG;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;AAClF,IAAA,OAAO,GAAG;AACZ;AAWA,SAAS,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,GAAG,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAc,EAAA;AAC9F,IAAA,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC;AACnE,IAAA,MAAM,YAAY,GAAG,cAAc,KAAK,SAAS;IACjD,MAAM,IAAI,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY;AACzD,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,EAAE;AAC7B,IAAA,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,EAAE;IAEnC,MAAM,gBAAgB,GAAG,KAAK,CAAC,WAAW,CACxC,CAAC,IAAa,KAAI;AAChB,QAAA,IAAI,CAAC,YAAY;YAAE,eAAe,CAAC,IAAI,CAAC;AACxC,QAAA,YAAY,GAA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AK,EAA6B,EAAA;AAC1E,IAAA,MAAM,EAAE,aAAa,EAAE,GAAG,QAAQ,EAAE;IAEpC,QACEA,WACE,EAAE,EAAE,aAAa,EAAA,WAAA,EACN,mBAAmB,EAC9B,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,EAAA,GACnC,KAAK,EAAA,CACT;AAEN;;"}
1
+ {"version":3,"file":"sheet.js","sources":["../../../src/navigation/Sheet/sheet.tsx"],"sourcesContent":["import { Button } from '@constellation/ui';\nimport cn from 'clsx';\nimport { XIcon } from 'lucide-react';\nimport * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport { Slot } from '../../internal/slot';\nimport { useAnimationState } from '../../internal/use-animation-state';\nimport { useFocusTrap } from '../../internal/use-focus-trap';\nimport { useScrollLock } from '../../internal/use-scroll-lock';\nimport s from './sheet.module.scss';\n\n// ── Context ──────────────────────────────────────────────\n\ntype SheetContextValue = {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n titleId: string;\n descriptionId: string;\n};\n\nconst SheetContext = React.createContext<SheetContextValue | null>(null);\n\nfunction useSheet() {\n const ctx = React.useContext(SheetContext);\n if (!ctx) throw new Error('Sheet compound components must be used within <Sheet>');\n return ctx;\n}\n\n// ── Root ─────────────────────────────────────────────────\n\nexport interface SheetProps {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n children?: React.ReactNode;\n}\n\nfunction Sheet({ open: controlledOpen, defaultOpen = false, onOpenChange, children }: SheetProps) {\n const [internalOpen, setInternalOpen] = React.useState(defaultOpen);\n const isControlled = controlledOpen !== undefined;\n const open = isControlled ? controlledOpen : internalOpen;\n const titleId = React.useId();\n const descriptionId = React.useId();\n\n const handleOpenChange = React.useCallback(\n (next: boolean) => {\n if (!isControlled) setInternalOpen(next);\n onOpenChange?.(next);\n },\n [isControlled, onOpenChange],\n );\n\n return (\n <SheetContext.Provider value={{ open, onOpenChange: handleOpenChange, titleId, descriptionId }}>\n {children}\n </SheetContext.Provider>\n );\n}\n\n// ── Trigger ──────────────────────────────────────────────\n\nexport interface SheetTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n asChild?: boolean;\n}\n\nconst SheetTrigger = React.forwardRef<HTMLButtonElement, SheetTriggerProps>(\n ({ asChild, onClick, children, ...props }, ref) => {\n const { onOpenChange } = useSheet();\n const Comp = asChild ? Slot : 'button';\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(e);\n onOpenChange(true);\n };\n\n return (\n <Comp ref={ref} data-slot={'sheet-trigger'} onClick={handleClick} {...props}>\n {children}\n </Comp>\n );\n },\n);\nSheetTrigger.displayName = 'SheetTrigger';\n\n// ── Close ────────────────────────────────────────────────\n\nexport interface SheetCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n asChild?: boolean;\n}\n\nconst SheetClose = React.forwardRef<HTMLButtonElement, SheetCloseProps>(\n ({ asChild, onClick, children, ...props }, ref) => {\n const { onOpenChange } = useSheet();\n const Comp = asChild ? Slot : 'button';\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onClick?.(e);\n onOpenChange(false);\n };\n\n return (\n <Comp ref={ref} data-slot={'sheet-close'} onClick={handleClick} {...props}>\n {children}\n </Comp>\n );\n },\n);\nSheetClose.displayName = 'SheetClose';\n\n// ── Content ──────────────────────────────────────────────\n\nconst sideClassMap = {\n right: s['content-right'],\n left: s['content-left'],\n top: s['content-top'],\n bottom: s['content-bottom'],\n} as const;\n\ntype SheetSide = keyof typeof sideClassMap;\n\nexport type SheetContentProps = React.HTMLAttributes<HTMLDivElement> & {\n side?: SheetSide;\n /**\n * How much room the panel gets. `sm` suits a confirm or a short form; `lg`\n * is for a working surface — a queue of editable cards needs the width or\n * its own content starts scrolling sideways.\n */\n size?: 'sm' | 'md' | 'lg';\n /**\n * Float the panel off the viewport edge instead of sitting flush to it.\n * Reads as a card over the page rather than a second wall of it.\n */\n inset?: boolean;\n};\n\nconst SheetContent = React.forwardRef<HTMLDivElement, SheetContentProps>(\n ({ className, children, side = 'right', size = 'md', inset = false, ...props }, ref) => {\n const { open, onOpenChange, titleId, descriptionId } = useSheet();\n const { mounted, state } = useAnimationState(open, 250);\n const focusTrapRef = useFocusTrap(open);\n useScrollLock(mounted);\n\n React.useEffect(() => {\n if (!open) return;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n // A nested layer (an open Select, DatePicker or menu) marks Escape as\n // handled with preventDefault. Escape should dismiss the topmost layer\n // only, so the modal ignores an event something inside it already took.\n if (e.key === 'Escape' && !e.defaultPrevented) {\n onOpenChange(false);\n }\n };\n\n document.addEventListener('keydown', handleKeyDown);\n return () => document.removeEventListener('keydown', handleKeyDown);\n }, [open, onOpenChange]);\n\n if (!mounted || state === 'idle') return null;\n\n return createPortal(\n <div data-constellation-portal={''} ref={focusTrapRef}>\n <div\n data-slot={'sheet-overlay'}\n data-state={state}\n className={s.overlay}\n onClick={() => onOpenChange(false)}\n aria-hidden={'true'}\n />\n <div\n ref={ref}\n data-slot={'sheet-content'}\n data-state={state}\n role={'dialog'}\n aria-modal={'true'}\n aria-labelledby={titleId}\n aria-describedby={descriptionId}\n className={cn(\n s['sheet-content'],\n sideClassMap[side],\n s[`size-${size}`],\n inset && s['content-inset'],\n className,\n )}\n onClick={e => e.stopPropagation()}\n {...props}\n >\n {children}\n <SheetClose className={s['close-button']} asChild>\n <Button variant={'ghost'} theme={'inherit'} iconOnly size={'sm'}>\n <XIcon />\n <span className={'srOnly'}>Close</span>\n </Button>\n </SheetClose>\n </div>\n </div>,\n document.body,\n );\n },\n);\nSheetContent.displayName = 'SheetContent';\n\n// ── Semantic sub-components ──────────────────────────────\n\nfunction SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-header'} className={cn(s.header, className)} {...props} />;\n}\n\nfunction SheetBody({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-body'} className={cn(s.body, className)} {...props} />;\n}\n\nfunction SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot={'sheet-footer'} className={cn(s.footer, className)} {...props} />;\n}\n\nfunction SheetTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n const { titleId } = useSheet();\n\n return (\n <h2 id={titleId} data-slot={'sheet-title'} className={cn(s.title, className)} {...props} />\n );\n}\n\nfunction SheetDescription({ className, ...props }: React.ComponentProps<'p'>) {\n const { descriptionId } = useSheet();\n\n return (\n <p\n id={descriptionId}\n data-slot={'sheet-description'}\n className={cn(s.description, className)}\n {...props}\n />\n );\n}\n\nexport {\n Sheet,\n SheetBody,\n SheetClose,\n SheetContent,\n SheetDescription,\n SheetFooter,\n SheetHeader,\n SheetTitle,\n SheetTrigger,\n};\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAA2B,IAAI,CAAC;AAExE,SAAS,QAAQ,GAAA;IACf,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC;AAC1C,IAAA,IAAI,CAAC,GAAG;AAAE,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;AAClF,IAAA,OAAO,GAAG;AACZ;AAWA,SAAS,KAAK,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,WAAW,GAAG,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAc,EAAA;AAC9F,IAAA,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC;AACnE,IAAA,MAAM,YAAY,GAAG,cAAc,KAAK,SAAS;IACjD,MAAM,IAAI,GAAG,YAAY,GAAG,cAAc,GAAG,YAAY;AACzD,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,EAAE;AAC7B,IAAA,MAAM,aAAa,GAAG,KAAK,CAAC,KAAK,EAAE;IAEnC,MAAM,gBAAgB,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AC,CAAC,CAAC,KAAK,EAAE,SAAS,CAAC,EAAA,GAAM,KAAK,EAAA,CAAI;AAE/F;AAEA,SAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA6B,EAAA;AAC1E,IAAA,MAAM,EAAE,aAAa,EAAE,GAAG,QAAQ,EAAE;IAEpC,QACEA,WACE,EAAE,EAAE,aAAa,EAAA,WAAA,EACN,mBAAmB,EAC9B,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,SAAS,CAAC,EAAA,GACnC,KAAK,EAAA,CACT;AAEN;;"}
@@ -62,7 +62,7 @@ declare function DropdownMenuSubContent({ className, ...props }: React.HTMLAttri
62
62
  declare const linkVariants: (props?: ({
63
63
  underline?: boolean | null | undefined;
64
64
  hover?: "default" | "none" | null | undefined;
65
- theme?: "primary" | "secondary" | "destructive" | "warning" | "success" | "info" | "slate" | "inherit" | null | undefined;
65
+ theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
66
66
  } & class_variance_authority_types.ClassProp) | undefined) => string;
67
67
 
68
68
  interface LinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'onClick'>, VariantProps<typeof linkVariants> {
@@ -4,10 +4,36 @@ import '../../layout/Sidebar/sidebar-context.js';
4
4
  import '../../ui/Alert/alert-context.js';
5
5
  import '../../ui/Table/table-sort-context.js';
6
6
  import { useAppearance } from '../../hooks/use-appearance.js';
7
+ import '../../ui/Alert/alert.js';
8
+ import 'react-dom';
9
+ import '../../ui/Alert/alert.css';
10
+ import '../../ui/Avatar/avatar.js';
11
+ import { Button } from '../../ui/Button/button.js';
12
+ import '../../ui/Chip/chip.js';
13
+ import '../../ui/ChipSelect/chip-select.js';
14
+ import '../../ui/CodeBlock/code-block.js';
7
15
  import cn from 'clsx';
16
+ import '../../ui/DevIndicator/dev-indicator.css';
17
+ import '../../ui/Dialog/dialog.js';
18
+ import '../../ui/EmptyState/empty-state.js';
19
+ import '../../ui/Icon/icon.js';
20
+ import '../../ui/List/list.js';
21
+ import '../../ui/Pagination/pagination.js';
22
+ import '../../ui/ProgressBar/progress-bar.js';
23
+ import '../../ui/Separator/separator.js';
24
+ import '../../ui/StatCard/stat-card.js';
25
+ import '../../ui/StatusDot/status-dot.js';
26
+ import '../../ui/StatusDot/status-dot-variants.js';
27
+ import '../../ui/StepProgress/step-progress.js';
28
+ import '../../ui/Switch/switch.js';
29
+ import '../../ui/Table/table.js';
30
+ import '../../ui/TableActionCell/table-action-cell.js';
31
+ import '../../ui/TableToolbar/table-toolbar.js';
32
+ import '../../ui/Toggle/toggle.js';
33
+ import '../../ui/ToggleGroup/toggle-group.js';
34
+ import '../../ui/Tooltip/tooltip.js';
8
35
  import { SunIcon, MoonIcon, MonitorIcon } from 'lucide-react';
9
36
  import s from './appearance-tabs.module.scss.js';
10
- import { Button } from '../../ui/Button/button.js';
11
37
 
12
38
  function AppearanceTabs({ className = '', iconOnly = false, ...props }) {
13
39
  const { appearance, updateAppearance } = useAppearance();
@@ -1 +1 @@
1
- {"version":3,"file":"appearance-tabs.js","sources":["../../../src/settings/AppearanceTabs/appearance-tabs.tsx"],"sourcesContent":["import { type Appearance, useAppearance } from '@constellation/hooks';\nimport { Button } from '@constellation/ui';\nimport cn from 'clsx';\nimport { type LucideIcon, MonitorIcon, MoonIcon, SunIcon } from 'lucide-react';\nimport * as React from 'react';\nimport s from './appearance-tabs.module.scss';\n\ntype AppearanceTabsProps = React.HTMLAttributes<HTMLDivElement> & {\n iconOnly?: boolean;\n};\n\nexport function AppearanceTabs({\n className = '',\n iconOnly = false,\n ...props\n}: AppearanceTabsProps) {\n const { appearance, updateAppearance } = useAppearance();\n\n const tabs: { value: Appearance; icon: LucideIcon; label: string }[] = [\n { value: 'light', icon: SunIcon, label: 'Light' },\n { value: 'dark', icon: MoonIcon, label: 'Dark' },\n { value: 'system', icon: MonitorIcon, label: 'System' },\n ];\n\n return (\n <div data-slot={'appearance-tabs'} className={cn(s['tabs-root'], className)} {...props}>\n {tabs.map(({ value, icon: Icon, label }) => (\n <Button\n key={value}\n variant={'ghost'}\n theme={'inherit'}\n rounded\n onClick={() => updateAppearance(value)}\n aria-label={label}\n iconOnly={iconOnly}\n aria-pressed={appearance === value}\n className={cn(s['tab-button'], appearance === value && s['tab-button-active'])}\n title={iconOnly ? label : undefined}\n >\n <Icon />\n {!iconOnly && <span>{label}</span>}\n </Button>\n ))}\n </div>\n );\n}\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;;;;AAWM,SAAU,cAAc,CAAC,EAC7B,SAAS,GAAG,EAAE,EACd,QAAQ,GAAG,KAAK,EAChB,GAAG,KAAK,EACY,EAAA;IACpB,MAAM,EAAE,UAAU,EAAE,gBAAgB,EAAE,GAAG,aAAa,EAAE;AAExD,IAAA,MAAM,IAAI,GAA6D;QACrE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;QACjD,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE;QAChD,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE;KACxD;IAED,QACEA,GAAA,CAAA,KAAA,EAAA,EAAA,WAAA,EAAgB,iBAAiB,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,EAAA,GAAM,KAAK,EAAA,QAAA,EACnF,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MACrCC,IAAA,CAAC,MAAM,EAAA,EAEL,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,EAChB,OAAO,EAAA,IAAA,EACP,OAAO,EAAE,MAAM,gBAAgB,CAAC,KAAK,CAAC,gBAC1B,KAAK,EACjB,QAAQ,EAAE,QAAQ,EAAA,cAAA,EACJ,UAAU,KAAK,KAAK,EAClC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC,EAAE,UAAU,KAAK,KAAK,IAAI,CAAC,CAAC,mBAAmB,CAAC,CAAC,EAC9E,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,SAAS,EAAA,QAAA,EAAA,CAEnCD,GAAA,CAAC,IAAI,EAAA,EAAA,CAAG,EACP,CAAC,QAAQ,IAAIA,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,KAAK,EAAA,CAAQ,CAAA,EAAA,EAZ7B,KAAK,CAaH,CACV,CAAC,EAAA,CACE;AAEV;;"}
1
+ {"version":3,"file":"appearance-tabs.js","sources":["../../../src/settings/AppearanceTabs/appearance-tabs.tsx"],"sourcesContent":["import { type Appearance, useAppearance } from '@constellation/hooks';\nimport { Button } from '@constellation/ui';\nimport cn from 'clsx';\nimport { type LucideIcon, MonitorIcon, MoonIcon, SunIcon } from 'lucide-react';\nimport * as React from 'react';\nimport s from './appearance-tabs.module.scss';\n\ntype AppearanceTabsProps = React.HTMLAttributes<HTMLDivElement> & {\n iconOnly?: boolean;\n};\n\nexport function AppearanceTabs({\n className = '',\n iconOnly = false,\n ...props\n}: AppearanceTabsProps) {\n const { appearance, updateAppearance } = useAppearance();\n\n const tabs: { value: Appearance; icon: LucideIcon; label: string }[] = [\n { value: 'light', icon: SunIcon, label: 'Light' },\n { value: 'dark', icon: MoonIcon, label: 'Dark' },\n { value: 'system', icon: MonitorIcon, label: 'System' },\n ];\n\n return (\n <div data-slot={'appearance-tabs'} className={cn(s['tabs-root'], className)} {...props}>\n {tabs.map(({ value, icon: Icon, label }) => (\n <Button\n key={value}\n variant={'ghost'}\n theme={'inherit'}\n rounded\n onClick={() => updateAppearance(value)}\n aria-label={label}\n iconOnly={iconOnly}\n aria-pressed={appearance === value}\n className={cn(s['tab-button'], appearance === value && s['tab-button-active'])}\n title={iconOnly ? label : undefined}\n >\n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AG,SAAS,EAAA,QAAA,EAAA,CAEnCD,GAAA,CAAC,IAAI,EAAA,EAAA,CAAG,EACP,CAAC,QAAQ,IAAIA,GAAA,CAAA,MAAA,EAAA,EAAA,QAAA,EAAO,KAAK,EAAA,CAAQ,CAAA,EAAA,EAZ7B,KAAK,CAaH,CACV,CAAC,EAAA,CACE;AAEV;;"}
package/dist/tokens.css CHANGED
@@ -251,6 +251,36 @@
251
251
  */
252
252
  --size-0-5: 0.25rem;
253
253
  --size-1-5: 0.75rem;
254
+ /*
255
+ * ── Type steps ─────────────────────────────────────────────────────────
256
+ *
257
+ * The sizes `Typography` sets per variant, exposed so an app can align its
258
+ * OWN rules to the same scale instead of copying the numbers into a
259
+ * stylesheet where they immediately start to drift.
260
+ *
261
+ * A component should still reach for the variant — `<Typography
262
+ * variant={'caption'}>` says what the text IS, where a raw size only says
263
+ * how big. These are for the CSS an app cannot express as a component:
264
+ * a badge's label, a table cell, a chip's count.
265
+ *
266
+ * ⚠️ `caption` is the FLOOR, and deliberately: 12px is about as small as
267
+ * sustained UI text can be and still be read at arm's length on a phone.
268
+ * The scale does not offer anything below it, and an app that wants
269
+ * something smaller is telling you its density is wrong.
270
+ *
271
+ * Headings keep their responsive overrides in the component — those are a
272
+ * breakpoint's business rather than the scale's.
273
+ */
274
+ --font-size-caption: 0.75rem;
275
+ --font-size-body2: 0.875rem;
276
+ --font-size-body1: 1rem;
277
+ --font-size-subtitle1: 1.0625rem;
278
+ --font-size-h6: 1.35rem;
279
+ --font-size-h5: 1.5rem;
280
+ --font-size-h4: 1.65rem;
281
+ --font-size-h3: 1.85rem;
282
+ --font-size-h2: 2.25rem;
283
+ --font-size-h1: 2.75rem;
254
284
  /*
255
285
  * ── Measure ────────────────────────────────────────────────────────────
256
286
  *
@@ -0,0 +1,46 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+
5
+ declare const buttonVariants: (props?: ({
6
+ variant?: "ghost" | "outlined" | "contained" | null | undefined;
7
+ theme?: "primary" | "secondary" | "info" | "success" | "warning" | "destructive" | "slate" | "inherit" | null | undefined;
8
+ size?: "sm" | "md" | "lg" | "xs" | null | undefined;
9
+ iconOnly?: boolean | null | undefined;
10
+ fullWidth?: boolean | null | undefined;
11
+ rounded?: boolean | "extra" | null | undefined;
12
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
13
+
14
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
15
+ /** A colour outside the theme scale; overrides the theme's colour roles. */
16
+ color?: string;
17
+ /** Ink for `contained` when `color` is set and the default contrast is wrong. */
18
+ onColor?: string;
19
+ asChild?: boolean;
20
+ }
21
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
22
+
23
+ declare function TooltipProvider({ children, delayDuration, }: {
24
+ children?: React.ReactNode;
25
+ delayDuration?: number;
26
+ }): React.JSX.Element;
27
+ interface TooltipProps {
28
+ children?: React.ReactNode;
29
+ open?: boolean;
30
+ defaultOpen?: boolean;
31
+ onOpenChange?: (open: boolean) => void;
32
+ delayDuration?: number;
33
+ }
34
+ declare function Tooltip({ children, open: controlledOpen, defaultOpen, onOpenChange, delayDuration, }: TooltipProps): React.JSX.Element;
35
+ interface TooltipTriggerProps extends React.HTMLAttributes<HTMLElement> {
36
+ asChild?: boolean;
37
+ }
38
+ declare function TooltipTrigger({ asChild, children, onMouseEnter, onMouseLeave, onFocus, onBlur, ...props }: TooltipTriggerProps): React.JSX.Element;
39
+ interface TooltipContentProps extends React.HTMLAttributes<HTMLDivElement> {
40
+ side?: 'top' | 'right' | 'bottom' | 'left';
41
+ sideOffset?: number;
42
+ }
43
+ declare function TooltipContent({ className, children, side, sideOffset, ...props }: TooltipContentProps): React.ReactPortal | null;
44
+
45
+ export { Button as B, Tooltip as T, TooltipContent as b, TooltipProvider as e, TooltipTrigger as f };
46
+ export type { ButtonProps as a, TooltipContentProps as c, TooltipProps as d, TooltipTriggerProps as g };
@@ -0,0 +1,46 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+
5
+ declare const buttonVariants: (props?: ({
6
+ variant?: "outlined" | "contained" | "ghost" | null | undefined;
7
+ theme?: "primary" | "secondary" | "info" | "success" | "warning" | "destructive" | "slate" | "inherit" | null | undefined;
8
+ size?: "sm" | "md" | "lg" | "xs" | null | undefined;
9
+ iconOnly?: boolean | null | undefined;
10
+ fullWidth?: boolean | null | undefined;
11
+ rounded?: boolean | "extra" | null | undefined;
12
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
13
+
14
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
15
+ /** A colour outside the theme scale; overrides the theme's colour roles. */
16
+ color?: string;
17
+ /** Ink for `contained` when `color` is set and the default contrast is wrong. */
18
+ onColor?: string;
19
+ asChild?: boolean;
20
+ }
21
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
22
+
23
+ declare function TooltipProvider({ children, delayDuration, }: {
24
+ children?: React.ReactNode;
25
+ delayDuration?: number;
26
+ }): React.JSX.Element;
27
+ interface TooltipProps {
28
+ children?: React.ReactNode;
29
+ open?: boolean;
30
+ defaultOpen?: boolean;
31
+ onOpenChange?: (open: boolean) => void;
32
+ delayDuration?: number;
33
+ }
34
+ declare function Tooltip({ children, open: controlledOpen, defaultOpen, onOpenChange, delayDuration, }: TooltipProps): React.JSX.Element;
35
+ interface TooltipTriggerProps extends React.HTMLAttributes<HTMLElement> {
36
+ asChild?: boolean;
37
+ }
38
+ declare function TooltipTrigger({ asChild, children, onMouseEnter, onMouseLeave, onFocus, onBlur, ...props }: TooltipTriggerProps): React.JSX.Element;
39
+ interface TooltipContentProps extends React.HTMLAttributes<HTMLDivElement> {
40
+ side?: 'top' | 'right' | 'bottom' | 'left';
41
+ sideOffset?: number;
42
+ }
43
+ declare function TooltipContent({ className, children, side, sideOffset, ...props }: TooltipContentProps): React.ReactPortal | null;
44
+
45
+ export { Button as B, Tooltip as T, TooltipContent as b, TooltipProvider as e, TooltipTrigger as f };
46
+ export type { ButtonProps as a, TooltipContentProps as c, TooltipProps as d, TooltipTriggerProps as g };
@@ -0,0 +1,46 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+
5
+ declare const buttonVariants: (props?: ({
6
+ variant?: "outlined" | "ghost" | "contained" | null | undefined;
7
+ theme?: "inherit" | "primary" | "secondary" | "success" | "destructive" | "warning" | "info" | "slate" | null | undefined;
8
+ size?: "sm" | "md" | "lg" | "xs" | null | undefined;
9
+ iconOnly?: boolean | null | undefined;
10
+ fullWidth?: boolean | null | undefined;
11
+ rounded?: boolean | "extra" | null | undefined;
12
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
13
+
14
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
15
+ /** A colour outside the theme scale; overrides the theme's colour roles. */
16
+ color?: string;
17
+ /** Ink for `contained` when `color` is set and the default contrast is wrong. */
18
+ onColor?: string;
19
+ asChild?: boolean;
20
+ }
21
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
22
+
23
+ declare function TooltipProvider({ children, delayDuration, }: {
24
+ children?: React.ReactNode;
25
+ delayDuration?: number;
26
+ }): React.JSX.Element;
27
+ interface TooltipProps {
28
+ children?: React.ReactNode;
29
+ open?: boolean;
30
+ defaultOpen?: boolean;
31
+ onOpenChange?: (open: boolean) => void;
32
+ delayDuration?: number;
33
+ }
34
+ declare function Tooltip({ children, open: controlledOpen, defaultOpen, onOpenChange, delayDuration, }: TooltipProps): React.JSX.Element;
35
+ interface TooltipTriggerProps extends React.HTMLAttributes<HTMLElement> {
36
+ asChild?: boolean;
37
+ }
38
+ declare function TooltipTrigger({ asChild, children, onMouseEnter, onMouseLeave, onFocus, onBlur, ...props }: TooltipTriggerProps): React.JSX.Element;
39
+ interface TooltipContentProps extends React.HTMLAttributes<HTMLDivElement> {
40
+ side?: 'top' | 'right' | 'bottom' | 'left';
41
+ sideOffset?: number;
42
+ }
43
+ declare function TooltipContent({ className, children, side, sideOffset, ...props }: TooltipContentProps): React.ReactPortal | null;
44
+
45
+ export { Button as B, Tooltip as T, TooltipContent as b, TooltipProvider as e, TooltipTrigger as f };
46
+ export type { ButtonProps as a, TooltipContentProps as c, TooltipProps as d, TooltipTriggerProps as g };
@@ -0,0 +1,46 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+
5
+ declare const buttonVariants: (props?: ({
6
+ variant?: "ghost" | "contained" | "outlined" | null | undefined;
7
+ theme?: "inherit" | "primary" | "secondary" | "info" | "success" | "warning" | "destructive" | "slate" | null | undefined;
8
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
9
+ iconOnly?: boolean | null | undefined;
10
+ fullWidth?: boolean | null | undefined;
11
+ rounded?: boolean | "extra" | null | undefined;
12
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
13
+
14
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
15
+ /** A colour outside the theme scale; overrides the theme's colour roles. */
16
+ color?: string;
17
+ /** Ink for `contained` when `color` is set and the default contrast is wrong. */
18
+ onColor?: string;
19
+ asChild?: boolean;
20
+ }
21
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
22
+
23
+ declare function TooltipProvider({ children, delayDuration, }: {
24
+ children?: React.ReactNode;
25
+ delayDuration?: number;
26
+ }): React.JSX.Element;
27
+ interface TooltipProps {
28
+ children?: React.ReactNode;
29
+ open?: boolean;
30
+ defaultOpen?: boolean;
31
+ onOpenChange?: (open: boolean) => void;
32
+ delayDuration?: number;
33
+ }
34
+ declare function Tooltip({ children, open: controlledOpen, defaultOpen, onOpenChange, delayDuration, }: TooltipProps): React.JSX.Element;
35
+ interface TooltipTriggerProps extends React.HTMLAttributes<HTMLElement> {
36
+ asChild?: boolean;
37
+ }
38
+ declare function TooltipTrigger({ asChild, children, onMouseEnter, onMouseLeave, onFocus, onBlur, ...props }: TooltipTriggerProps): React.JSX.Element;
39
+ interface TooltipContentProps extends React.HTMLAttributes<HTMLDivElement> {
40
+ side?: 'top' | 'right' | 'bottom' | 'left';
41
+ sideOffset?: number;
42
+ }
43
+ declare function TooltipContent({ className, children, side, sideOffset, ...props }: TooltipContentProps): React.ReactPortal | null;
44
+
45
+ export { Button as B, Tooltip as T, TooltipContent as b, TooltipProvider as e, TooltipTrigger as f };
46
+ export type { ButtonProps as a, TooltipContentProps as c, TooltipProps as d, TooltipTriggerProps as g };
@@ -0,0 +1,46 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+
5
+ declare const buttonVariants: (props?: ({
6
+ variant?: "outlined" | "contained" | "ghost" | null | undefined;
7
+ theme?: "inherit" | "primary" | "secondary" | "info" | "success" | "warning" | "destructive" | "slate" | null | undefined;
8
+ size?: "xs" | "sm" | "md" | "lg" | null | undefined;
9
+ iconOnly?: boolean | null | undefined;
10
+ fullWidth?: boolean | null | undefined;
11
+ rounded?: boolean | "extra" | null | undefined;
12
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
13
+
14
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
15
+ /** A colour outside the theme scale; overrides the theme's colour roles. */
16
+ color?: string;
17
+ /** Ink for `contained` when `color` is set and the default contrast is wrong. */
18
+ onColor?: string;
19
+ asChild?: boolean;
20
+ }
21
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
22
+
23
+ declare function TooltipProvider({ children, delayDuration, }: {
24
+ children?: React.ReactNode;
25
+ delayDuration?: number;
26
+ }): React.JSX.Element;
27
+ interface TooltipProps {
28
+ children?: React.ReactNode;
29
+ open?: boolean;
30
+ defaultOpen?: boolean;
31
+ onOpenChange?: (open: boolean) => void;
32
+ delayDuration?: number;
33
+ }
34
+ declare function Tooltip({ children, open: controlledOpen, defaultOpen, onOpenChange, delayDuration, }: TooltipProps): React.JSX.Element;
35
+ interface TooltipTriggerProps extends React.HTMLAttributes<HTMLElement> {
36
+ asChild?: boolean;
37
+ }
38
+ declare function TooltipTrigger({ asChild, children, onMouseEnter, onMouseLeave, onFocus, onBlur, ...props }: TooltipTriggerProps): React.JSX.Element;
39
+ interface TooltipContentProps extends React.HTMLAttributes<HTMLDivElement> {
40
+ side?: 'top' | 'right' | 'bottom' | 'left';
41
+ sideOffset?: number;
42
+ }
43
+ declare function TooltipContent({ className, children, side, sideOffset, ...props }: TooltipContentProps): React.ReactPortal | null;
44
+
45
+ export { Button as B, Tooltip as T, TooltipContent as b, TooltipProvider as e, TooltipTrigger as f };
46
+ export type { ButtonProps as a, TooltipContentProps as c, TooltipProps as d, TooltipTriggerProps as g };
@@ -28,7 +28,7 @@
28
28
  }
29
29
  .typography-module_typography__FAx__.typography-module_h1__Chrx6 {
30
30
  color: var(--text-heading);
31
- --typography-font-size: 2.75rem;
31
+ --typography-font-size: var(--font-size-h1);
32
32
  line-height: 1.25;
33
33
  }
34
34
  @media (max-width: 768px) {
@@ -38,7 +38,7 @@
38
38
  }
39
39
  .typography-module_typography__FAx__.typography-module_h2__6Qpwf {
40
40
  color: var(--text-heading);
41
- --typography-font-size: 2.25rem;
41
+ --typography-font-size: var(--font-size-h2);
42
42
  line-height: 1.25;
43
43
  }
44
44
  @media (max-width: 768px) {
@@ -58,7 +58,7 @@
58
58
  }
59
59
  .typography-module_typography__FAx__.typography-module_h4__TEi6l {
60
60
  color: var(--text-heading);
61
- --typography-font-size: 1.85rem;
61
+ --typography-font-size: var(--font-size-h3);
62
62
  line-height: 1.25;
63
63
  }
64
64
  @media (max-width: 768px) {
@@ -68,7 +68,7 @@
68
68
  }
69
69
  .typography-module_typography__FAx__.typography-module_h5__pY2ZF {
70
70
  color: var(--text-heading);
71
- --typography-font-size: 1.65rem;
71
+ --typography-font-size: var(--font-size-h4);
72
72
  font-weight: 500;
73
73
  line-height: 1.25;
74
74
  }
@@ -79,7 +79,7 @@
79
79
  }
80
80
  .typography-module_typography__FAx__.typography-module_h6__jzeAZ {
81
81
  color: var(--text-heading);
82
- --typography-font-size: 1.5rem;
82
+ --typography-font-size: var(--font-size-h5);
83
83
  line-height: 1.25;
84
84
  }
85
85
  @media (max-width: 768px) {
@@ -88,34 +88,34 @@
88
88
  }
89
89
  }
90
90
  .typography-module_typography__FAx__.typography-module_subtitle1__kbXoE {
91
- --typography-font-size: 1.0625rem;
91
+ --typography-font-size: var(--font-size-subtitle1);
92
92
  font-weight: 500;
93
93
  }
94
94
  .typography-module_typography__FAx__.typography-module_subtitle2__TesJV {
95
- --typography-font-size: 0.875rem;
95
+ --typography-font-size: var(--font-size-body2);
96
96
  font-weight: 500;
97
97
  }
98
98
  .typography-module_typography__FAx__.typography-module_body1__XiHhz {
99
- --typography-font-size: 1rem;
99
+ --typography-font-size: var(--font-size-body1);
100
100
  }
101
101
  .typography-module_typography__FAx__.typography-module_body2__321Bc {
102
102
  color: var(--text-secondary);
103
- --typography-font-size: 0.875rem;
103
+ --typography-font-size: var(--font-size-body2);
104
104
  }
105
105
  .typography-module_typography__FAx__.typography-module_overline__NaSU- {
106
- --typography-font-size: 0.875rem;
106
+ --typography-font-size: var(--font-size-body2);
107
107
  letter-spacing: 1px;
108
108
  text-transform: uppercase;
109
109
  }
110
110
  .typography-module_typography__FAx__.typography-module_caption__BAaLD {
111
- --typography-font-size: 0.75rem;
111
+ --typography-font-size: var(--font-size-caption);
112
112
  }
113
113
  .typography-module_typography__FAx__.typography-module_code__MiYWd {
114
114
  background: var(--action-hover);
115
115
  border-radius: 5px;
116
116
  --typography-font: var(--font-mono);
117
117
  --typography-font-fallback: monospace;
118
- --typography-font-size: 0.75rem;
118
+ --typography-font-size: var(--font-size-caption);
119
119
  padding: 4px var(--size-1);
120
120
  }
121
121
  .typography-module_typography__FAx__.typography-module_code-block__cdgeP {
@@ -130,7 +130,7 @@
130
130
  white-space: pre;
131
131
  }
132
132
  .typography-module_typography__FAx__.typography-module_tooltip__ZScRV {
133
- --typography-font-size: 0.75rem;
133
+ --typography-font-size: var(--font-size-caption);
134
134
  font-weight: 200;
135
135
  text-transform: uppercase;
136
136
  }
@@ -159,7 +159,7 @@
159
159
  }
160
160
  }
161
161
  .typography-module_typography__FAx__.typography-module_table-cell-small__G0MyC {
162
- --typography-font-size: 0.75rem;
162
+ --typography-font-size: var(--font-size-caption);
163
163
  }
164
164
  @media (min-width: 1360px) {
165
165
  .typography-module_typography__FAx__.typography-module_table-cell-small__G0MyC {
@@ -0,0 +1,63 @@
1
+ @charset "UTF-8";
2
+ .chip-select-module_chip-select__DesJh {
3
+ display: inline-flex;
4
+ max-width: 100%;
5
+ }
6
+
7
+ /*
8
+ * The caret is a hint that there is more under the chip, not a control. It is
9
+ * deliberately tiny — the chip is already small, and a full chevron doubles the
10
+ * visual weight of a word like "32oz".
11
+ */
12
+ .chip-select-module_caret__Du-C1 {
13
+ border-bottom: 3px solid currentColor;
14
+ border-left: 3px solid transparent;
15
+ border-right: 3px solid transparent;
16
+ display: inline-block;
17
+ height: 0;
18
+ margin-left: 0.35em;
19
+ opacity: 0.55;
20
+ transform: rotate(180deg);
21
+ transition: transform 160ms ease;
22
+ width: 0;
23
+ }
24
+ [data-open] .chip-select-module_caret__Du-C1 {
25
+ transform: rotate(0deg);
26
+ }
27
+
28
+ .chip-select-module_flyout__EzyIR {
29
+ background: var(--surface-muted);
30
+ border: 1px solid var(--divider);
31
+ border-radius: var(--radius-lg);
32
+ box-shadow: var(--shadow-elevation-8);
33
+ display: flex;
34
+ flex-wrap: wrap;
35
+ gap: var(--size-0-5);
36
+ max-width: min(84vw, 22rem);
37
+ padding: var(--size-0-5);
38
+ position: fixed;
39
+ z-index: var(--z-popover);
40
+ }
41
+ .chip-select-module_flyout__EzyIR [data-slot=chip-option] {
42
+ animation: chip-select-module_chip-option-in__FN6D0 180ms cubic-bezier(0.2, 0.8, 0.3, 1) backwards;
43
+ animation-delay: calc(var(--i, 0) * 26ms);
44
+ }
45
+ @media (prefers-reduced-motion: reduce) {
46
+ .chip-select-module_flyout__EzyIR :root:not([data-motion=full]) [data-slot=chip-option] {
47
+ animation: none;
48
+ }
49
+ }
50
+ .chip-select-module_flyout__EzyIR :root[data-motion=reduced] [data-slot=chip-option] {
51
+ animation: none;
52
+ }
53
+
54
+ @keyframes chip-select-module_chip-option-in__FN6D0 {
55
+ from {
56
+ opacity: 0;
57
+ transform: translateY(-6px) scale(0.94);
58
+ }
59
+ to {
60
+ opacity: 1;
61
+ transform: none;
62
+ }
63
+ }