@langchain/macaw-components 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/catalog.json +524 -482
  2. package/dist/components/Accordion/Accordion.d.ts +63 -0
  3. package/dist/components/Accordion/Accordion.js +170 -0
  4. package/dist/components/Accordion/Accordion.js.map +1 -0
  5. package/dist/components/Accordion/index.d.ts +2 -0
  6. package/dist/components/Accordion/index.js +2 -0
  7. package/dist/components/Attachment/Attachment.js +3 -3
  8. package/dist/components/Avatar/Avatar.js +1 -1
  9. package/dist/components/Banner/Banner.js +2 -2
  10. package/dist/components/Button/Button.js +2 -2
  11. package/dist/components/ChartCard/ChartCard.js +2 -2
  12. package/dist/components/ChartCard/ChartCardSkeleton.d.ts +1 -1
  13. package/dist/components/ChartCard/ChartCardSkeleton.js +14 -0
  14. package/dist/components/ChartCard/ChartCardSkeleton.js.map +1 -1
  15. package/dist/components/ChartLegend/ChartLegend.js +1 -1
  16. package/dist/components/Checkbox/Checkbox.js +1 -1
  17. package/dist/components/Code/CodeLite.js +2 -2
  18. package/dist/components/Code/index.js +1 -1
  19. package/dist/components/Command/CommandMenu.js +1 -1
  20. package/dist/components/CopyButton/CopyButton.js +2 -2
  21. package/dist/components/Dialog/index.js +3 -3
  22. package/dist/components/ErrorMessage/ErrorMessage.js +3 -3
  23. package/dist/components/IconButton/IconButton.js +2 -2
  24. package/dist/components/Input/Input.js +1 -1
  25. package/dist/components/Pane/Pane.js +2 -2
  26. package/dist/components/Select/Select.d.ts +8 -0
  27. package/dist/components/Select/Select.js +4 -4
  28. package/dist/components/Select/Select.js.map +1 -1
  29. package/dist/components/Select/SelectPrimitive.js +1 -1
  30. package/dist/components/Select/index.d.ts +1 -1
  31. package/dist/components/SplitViewPane/SplitViewPaneHeader.js +2 -2
  32. package/dist/components/StatusBadge/StatusBadge.d.ts +27 -0
  33. package/dist/components/StatusBadge/StatusBadge.js +42 -0
  34. package/dist/components/StatusBadge/StatusBadge.js.map +1 -0
  35. package/dist/components/StatusBadge/index.d.ts +2 -0
  36. package/dist/components/StatusBadge/index.js +2 -0
  37. package/dist/components/Toast/index.js +2 -2
  38. package/dist/components/Tooltip/Tooltip.js +1 -1
  39. package/dist/components/Typeahead/TypeaheadParts.js +2 -2
  40. package/dist/components/Typeahead/TypeaheadView.js +1 -1
  41. package/dist/components/UnsavedChangesDialog.js +2 -2
  42. package/dist/components/index.d.ts +2 -0
  43. package/dist/components/index.js +7 -6
  44. package/dist/icons/LongTailPhosphorIcons.js +1 -1
  45. package/dist/icons/PaddedPhosphorIcons.js +2 -2
  46. package/dist/index.js +7 -6
  47. package/dist/utilities.css +1 -1
  48. package/docs/STYLES.md +1 -1
  49. package/package.json +20 -3
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":[],"sources":["../../../src/components/Select/Select.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { useCallback, useMemo, useState } from 'react';\n\nimport { CaretDownIcon } from '../../icons/PaddedPhosphorIcons';\nimport { cn } from '../../utils/cn';\nimport {\n CONTROL_SIZES,\n type ControlSize,\n type OptionRowSize,\n} from '../../utils/componentSizes';\nimport { CONTROL_ICON_SIZES } from '../../utils/controlIconSizes';\nimport {\n type DataAttributes,\n pickDataAttributes,\n} from '../../utils/dataAttributes';\nimport { Button } from '../Button';\nimport { CommandMenu } from '../Command/CommandMenu';\nimport type { CommandMenuGroup, CommandMenuItem } from '../Command/CommandMenu';\nimport { Icon } from '../Icon';\nimport { Popover, PopoverContent, PopoverTrigger } from '../Popover';\nimport { Text } from '../Text';\n\nexport interface SelectOption<T extends string = string> {\n /** The value used for selection and filtering */\n value: T;\n /** Display label (defaults to value if not provided) */\n label?: string;\n /** Secondary description text displayed below the label */\n description?: string;\n /** Element displayed on the right side of the item (e.g. badge, shortcut) */\n rightDecorator?: ReactNode;\n /** Whether this option is disabled */\n disabled?: boolean;\n}\n\nexport interface SelectGroup<T extends string = string> {\n heading?: string;\n options: SelectOption<T>[];\n}\n\nexport type SelectSize = ControlSize;\n\ninterface SelectBaseProps<T extends string = string> extends DataAttributes {\n /** The currently selected value */\n value?: T;\n /** Callback when selection changes. Receives undefined when deselected. */\n onChange: (value: T | undefined) => void;\n /** Placeholder text when no value is selected */\n placeholder?: string;\n /** Placeholder text for the search input */\n searchPlaceholder?: string;\n /** Whether the select is disabled */\n disabled?: boolean;\n /** Exact trigger height: xs=20px, sm=24px, md=32px, lg=40px. */\n size?: SelectSize;\n /** Text to show when no options match the search */\n emptyText?: string;\n /** Allow deselecting the current value by clicking it again (default: false) */\n allowDeselect?: boolean;\n /** Hide the search input (default: true, search is hidden) */\n hideSearch?: boolean;\n /** Disable client-side filtering by cmdk (default: false). Set true for server-side filtering. */\n disableFilter?: boolean;\n /** Callback when the search input value changes. Useful for server-side filtering. */\n onSearchChange?: (query: string) => void;\n /** Whether more items are currently being loaded */\n loading?: boolean;\n /** Number of skeleton rows to show while loading (default: 5) */\n loadingRows?: number;\n /** Callback when the user scrolls near the end of the list. Use for infinite loading. */\n onEndReached?: () => void;\n /** Distance in pixels from the bottom to trigger onEndReached (default: 50) */\n endReachedThresholdPx?: number;\n /** Additional class name for the trigger button */\n triggerClassName?: string;\n /** Additional class name for the popover content */\n contentClassName?: string;\n /** Custom render function for the selected value in the trigger */\n renderValue?: (option: SelectOption<T>) => ReactNode;\n /** Custom render function for each option in the list */\n renderOption?: (option: SelectOption<T>, isSelected: boolean) => ReactNode;\n /** Side of the trigger to align the popover */\n side?: 'top' | 'bottom' | 'left' | 'right';\n /** Alignment of the popover relative to the trigger */\n align?: 'start' | 'center' | 'end';\n /** aria-label for the trigger button */\n 'aria-label'?: string;\n /** Test id for the trigger button */\n 'data-testid'?: string;\n}\n\nexport type SelectProps<T extends string = string> = SelectBaseProps<T> &\n (\n | {\n options: SelectOption<T>[];\n groups?: never;\n }\n | {\n groups: SelectGroup<T>[];\n options?: never;\n }\n ) &\n (\n | {\n /** Controlled open state */\n open: boolean;\n /** Callback when open state changes (required when `open` is provided) */\n onOpenChange: (open: boolean) => void;\n }\n | {\n open?: never;\n onOpenChange?: never;\n }\n );\n\nfunction optionToItem(opt: SelectOption): CommandMenuItem {\n return {\n value: opt.value,\n label: opt.label,\n description: opt.description,\n rightDecorator: opt.rightDecorator,\n disabled: opt.disabled,\n keywords: opt.label ? [opt.label] : undefined,\n };\n}\n\nfunction OptionSelect<T extends string = string>({\n value,\n onChange,\n options,\n groups,\n placeholder = 'Select...',\n searchPlaceholder = 'Search...',\n disabled = false,\n size = 'sm',\n emptyText = 'No results found.',\n open: controlledOpen,\n onOpenChange: controlledOnOpenChange,\n allowDeselect,\n hideSearch = true,\n disableFilter,\n onSearchChange,\n loading,\n loadingRows,\n onEndReached,\n endReachedThresholdPx,\n triggerClassName,\n contentClassName,\n renderValue,\n renderOption,\n side,\n align = 'start',\n 'aria-label': ariaLabel,\n 'data-testid': dataTestId,\n ...rest\n}: SelectProps<T>) {\n const [uncontrolledOpen, setUncontrolledOpen] = useState(false);\n const isControlled = controlledOpen !== undefined;\n const open = isControlled ? controlledOpen : uncontrolledOpen;\n const setOpen = isControlled ? controlledOnOpenChange : setUncontrolledOpen;\n\n const allOptions = useMemo<SelectOption<T>[]>(\n () => (groups ? groups.flatMap((g) => g.options) : (options ?? [])),\n [groups, options]\n );\n\n const selectedOption = useMemo(\n () => allOptions.find((opt) => opt.value === value),\n [allOptions, value]\n );\n\n const handleSelect = useCallback(\n (optionValue: string) => {\n const match = allOptions.find((o) => o.value === optionValue);\n if (!match) return;\n if (allowDeselect && match.value === value) {\n onChange(undefined);\n } else {\n onChange(match.value);\n }\n setOpen(false);\n },\n [allowDeselect, value, onChange, setOpen, allOptions]\n );\n\n const items: CommandMenuItem[] = useMemo(\n () => (options ?? []).map(optionToItem),\n [options]\n );\n\n const commandGroups: CommandMenuGroup[] | undefined = useMemo(\n () =>\n groups?.map((g) => ({\n heading: g.heading,\n items: g.options.map(optionToItem),\n })),\n [groups]\n );\n\n const renderItem = renderOption\n ? (item: CommandMenuItem, isSelected: boolean) => {\n const option = allOptions.find((o) => o.value === item.value);\n return option ? renderOption(option, isSelected) : null;\n }\n : undefined;\n const searchInputSize = size === 'xs' ? 'sm' : size === 'lg' ? 'md' : size;\n const triggerButtonSize = size === 'lg' ? 'md' : size;\n const itemRowSize: OptionRowSize =\n size === 'xs' || size === 'sm' ? 'sm' : 'md';\n\n const commandMenuSharedProps = {\n value,\n onSelect: handleSelect,\n placeholder: searchPlaceholder,\n emptyText,\n hideSearch,\n disableFilter,\n onSearchChange,\n loading,\n loadingRows,\n onEndReached,\n endReachedThresholdPx,\n renderItem,\n inputSize: searchInputSize,\n itemRowSize,\n };\n\n const triggerContent =\n selectedOption && renderValue ? (\n renderValue(selectedOption)\n ) : (\n <Text\n as=\"span\"\n variant={triggerButtonSize}\n weight=\"normal\"\n className=\"min-w-0 truncate text-left\"\n >\n {selectedOption\n ? (selectedOption.label ?? selectedOption.value)\n : placeholder}\n </Text>\n );\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <Button\n {...pickDataAttributes(rest)}\n role=\"combobox\"\n aria-expanded={open}\n aria-label={ariaLabel ?? placeholder}\n variant=\"outlined\"\n color=\"secondary\"\n size={triggerButtonSize}\n className={cn(\n 'box-border w-full justify-between py-0',\n CONTROL_SIZES[size].heightClassName,\n disabled\n ? 'border-muted bg-input-disabled text-disabled dark:bg-input-disabled'\n : 'bg-input border-muted hover:border-subtle focus-visible:border-focus focus-visible:shadow-[0_0_0_1px_var(--border-focus)] focus-visible:outline-none',\n triggerClassName\n )}\n disabled={disabled}\n data-testid={dataTestId}\n >\n {triggerContent}\n <Icon\n aria-hidden\n icon={CaretDownIcon}\n iconClassName={CONTROL_ICON_SIZES[size].iconClassName}\n className={disabled ? 'text-icon-disabled' : 'text-inherit'}\n weight=\"regular\"\n />\n </Button>\n </PopoverTrigger>\n <PopoverContent\n className={cn(\n 'w-max min-w-[var(--radix-popover-trigger-width)] max-w-[min(24rem,calc(100vw-1rem))] p-0 text-primary',\n contentClassName\n )}\n side={side}\n align={align}\n >\n {commandGroups ? (\n <CommandMenu groups={commandGroups} {...commandMenuSharedProps} />\n ) : (\n <CommandMenu items={items} {...commandMenuSharedProps} />\n )}\n </PopoverContent>\n </Popover>\n );\n}\n\nexport function Select<T extends string = string>(\n props: SelectProps<T>\n): React.ReactElement<unknown> {\n return <OptionSelect {...props} />;\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"Select.js","names":[],"sources":["../../../src/components/Select/Select.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { useCallback, useMemo, useState } from 'react';\n\nimport { CaretDownIcon } from '../../icons/PaddedPhosphorIcons';\nimport { cn } from '../../utils/cn';\nimport {\n CONTROL_SIZES,\n type ControlSize,\n type OptionRowSize,\n} from '../../utils/componentSizes';\nimport { CONTROL_ICON_SIZES } from '../../utils/controlIconSizes';\nimport {\n type DataAttributes,\n pickDataAttributes,\n} from '../../utils/dataAttributes';\nimport { Button } from '../Button';\nimport { CommandMenu } from '../Command/CommandMenu';\nimport type { CommandMenuGroup, CommandMenuItem } from '../Command/CommandMenu';\nimport { Icon } from '../Icon';\nimport { Popover, PopoverContent, PopoverTrigger } from '../Popover';\nimport { Text } from '../Text';\n\nexport interface SelectOption<T extends string = string> {\n /** The value used for selection and filtering */\n value: T;\n /** Display label (defaults to value if not provided) */\n label?: string;\n /** Secondary description text displayed below the label */\n description?: string;\n /** Element displayed on the right side of the item (e.g. badge, shortcut) */\n rightDecorator?: ReactNode;\n /** Whether this option is disabled */\n disabled?: boolean;\n}\n\nexport interface SelectGroup<T extends string = string> {\n heading?: string;\n options: SelectOption<T>[];\n}\n\nexport type SelectSize = ControlSize;\n\nexport type SelectVariant = 'outlined' | 'plain';\n\ninterface SelectBaseProps<T extends string = string> extends DataAttributes {\n /** The currently selected value */\n value?: T;\n /** Callback when selection changes. Receives undefined when deselected. */\n onChange: (value: T | undefined) => void;\n /** Placeholder text when no value is selected */\n placeholder?: string;\n /** Placeholder text for the search input */\n searchPlaceholder?: string;\n /** Whether the select is disabled */\n disabled?: boolean;\n /** Exact trigger height: xs=20px, sm=24px, md=32px, lg=40px. */\n size?: SelectSize;\n /** Text to show when no options match the search */\n emptyText?: string;\n /** Allow deselecting the current value by clicking it again (default: false) */\n allowDeselect?: boolean;\n /** Hide the search input (default: true, search is hidden) */\n hideSearch?: boolean;\n /** Disable client-side filtering by cmdk (default: false). Set true for server-side filtering. */\n disableFilter?: boolean;\n /** Callback when the search input value changes. Useful for server-side filtering. */\n onSearchChange?: (query: string) => void;\n /** Whether more items are currently being loaded */\n loading?: boolean;\n /** Number of skeleton rows to show while loading (default: 5) */\n loadingRows?: number;\n /** Callback when the user scrolls near the end of the list. Use for infinite loading. */\n onEndReached?: () => void;\n /** Distance in pixels from the bottom to trigger onEndReached (default: 50) */\n endReachedThresholdPx?: number;\n /** Additional class name for the trigger button */\n triggerClassName?: string;\n /**\n * Trigger appearance. `outlined` (default) is a full-width form field.\n * `plain` drops the field fill and border and sizes the trigger to its\n * value, so it reads as text until hovered — for an inline setting in a row,\n * such as a member's role, where a field box would crowd it.\n */\n variant?: SelectVariant;\n /** Additional class name for the popover content */\n contentClassName?: string;\n /** Custom render function for the selected value in the trigger */\n renderValue?: (option: SelectOption<T>) => ReactNode;\n /** Custom render function for each option in the list */\n renderOption?: (option: SelectOption<T>, isSelected: boolean) => ReactNode;\n /** Side of the trigger to align the popover */\n side?: 'top' | 'bottom' | 'left' | 'right';\n /** Alignment of the popover relative to the trigger */\n align?: 'start' | 'center' | 'end';\n /** aria-label for the trigger button */\n 'aria-label'?: string;\n /** Test id for the trigger button */\n 'data-testid'?: string;\n}\n\nexport type SelectProps<T extends string = string> = SelectBaseProps<T> &\n (\n | {\n options: SelectOption<T>[];\n groups?: never;\n }\n | {\n groups: SelectGroup<T>[];\n options?: never;\n }\n ) &\n (\n | {\n /** Controlled open state */\n open: boolean;\n /** Callback when open state changes (required when `open` is provided) */\n onOpenChange: (open: boolean) => void;\n }\n | {\n open?: never;\n onOpenChange?: never;\n }\n );\n\nfunction optionToItem(opt: SelectOption): CommandMenuItem {\n return {\n value: opt.value,\n label: opt.label,\n description: opt.description,\n rightDecorator: opt.rightDecorator,\n disabled: opt.disabled,\n keywords: opt.label ? [opt.label] : undefined,\n };\n}\n\nfunction OptionSelect<T extends string = string>({\n value,\n onChange,\n options,\n groups,\n placeholder = 'Select...',\n searchPlaceholder = 'Search...',\n disabled = false,\n size = 'sm',\n emptyText = 'No results found.',\n open: controlledOpen,\n onOpenChange: controlledOnOpenChange,\n allowDeselect,\n hideSearch = true,\n disableFilter,\n onSearchChange,\n loading,\n loadingRows,\n onEndReached,\n endReachedThresholdPx,\n triggerClassName,\n variant = 'outlined',\n contentClassName,\n renderValue,\n renderOption,\n side,\n align = 'start',\n 'aria-label': ariaLabel,\n 'data-testid': dataTestId,\n ...rest\n}: SelectProps<T>) {\n const [uncontrolledOpen, setUncontrolledOpen] = useState(false);\n const isControlled = controlledOpen !== undefined;\n const open = isControlled ? controlledOpen : uncontrolledOpen;\n const setOpen = isControlled ? controlledOnOpenChange : setUncontrolledOpen;\n\n const allOptions = useMemo<SelectOption<T>[]>(\n () => (groups ? groups.flatMap((g) => g.options) : (options ?? [])),\n [groups, options]\n );\n\n const selectedOption = useMemo(\n () => allOptions.find((opt) => opt.value === value),\n [allOptions, value]\n );\n\n const handleSelect = useCallback(\n (optionValue: string) => {\n const match = allOptions.find((o) => o.value === optionValue);\n if (!match) return;\n if (allowDeselect && match.value === value) {\n onChange(undefined);\n } else {\n onChange(match.value);\n }\n setOpen(false);\n },\n [allowDeselect, value, onChange, setOpen, allOptions]\n );\n\n const items: CommandMenuItem[] = useMemo(\n () => (options ?? []).map(optionToItem),\n [options]\n );\n\n const commandGroups: CommandMenuGroup[] | undefined = useMemo(\n () =>\n groups?.map((g) => ({\n heading: g.heading,\n items: g.options.map(optionToItem),\n })),\n [groups]\n );\n\n const renderItem = renderOption\n ? (item: CommandMenuItem, isSelected: boolean) => {\n const option = allOptions.find((o) => o.value === item.value);\n return option ? renderOption(option, isSelected) : null;\n }\n : undefined;\n const searchInputSize = size === 'xs' ? 'sm' : size === 'lg' ? 'md' : size;\n const triggerButtonSize = size === 'lg' ? 'md' : size;\n const itemRowSize: OptionRowSize =\n size === 'xs' || size === 'sm' ? 'sm' : 'md';\n\n const commandMenuSharedProps = {\n value,\n onSelect: handleSelect,\n placeholder: searchPlaceholder,\n emptyText,\n hideSearch,\n disableFilter,\n onSearchChange,\n loading,\n loadingRows,\n onEndReached,\n endReachedThresholdPx,\n renderItem,\n inputSize: searchInputSize,\n itemRowSize,\n };\n\n const triggerContent =\n selectedOption && renderValue ? (\n renderValue(selectedOption)\n ) : (\n <Text\n as=\"span\"\n variant={triggerButtonSize}\n weight=\"normal\"\n className=\"min-w-0 truncate text-left\"\n >\n {selectedOption\n ? (selectedOption.label ?? selectedOption.value)\n : placeholder}\n </Text>\n );\n\n return (\n <Popover open={open} onOpenChange={setOpen}>\n <PopoverTrigger asChild>\n <Button\n {...pickDataAttributes(rest)}\n role=\"combobox\"\n aria-expanded={open}\n aria-label={ariaLabel ?? placeholder}\n variant={variant}\n color=\"secondary\"\n size={triggerButtonSize}\n className={cn(\n 'box-border justify-between py-0',\n CONTROL_SIZES[size].heightClassName,\n variant === 'plain'\n ? cn(\n 'w-auto max-w-full gap-space-1 px-space-1',\n // The shared disabled fill, in both themes.\n disabled && 'bg-disabled text-disabled dark:bg-disabled'\n )\n : cn(\n 'w-full',\n disabled\n ? 'border-muted bg-input-disabled text-disabled dark:bg-input-disabled'\n : 'bg-input border-muted hover:border-subtle focus-visible:border-focus focus-visible:shadow-[0_0_0_1px_var(--border-focus)] focus-visible:outline-none'\n ),\n triggerClassName\n )}\n disabled={disabled}\n data-testid={dataTestId}\n >\n {triggerContent}\n <Icon\n aria-hidden\n icon={CaretDownIcon}\n iconClassName={CONTROL_ICON_SIZES[size].iconClassName}\n className={disabled ? 'text-icon-disabled' : 'text-inherit'}\n weight=\"regular\"\n />\n </Button>\n </PopoverTrigger>\n <PopoverContent\n className={cn(\n 'w-max min-w-[var(--radix-popover-trigger-width)] max-w-[min(24rem,calc(100vw-1rem))] p-0 text-primary',\n contentClassName\n )}\n side={side}\n align={align}\n >\n {commandGroups ? (\n <CommandMenu groups={commandGroups} {...commandMenuSharedProps} />\n ) : (\n <CommandMenu items={items} {...commandMenuSharedProps} />\n )}\n </PopoverContent>\n </Popover>\n );\n}\n\nexport function Select<T extends string = string>(\n props: SelectProps<T>\n): React.ReactElement<unknown> {\n return <OptionSelect {...props} />;\n}\n"],"mappings":"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"}
@@ -1,9 +1,9 @@
1
+ import { CaretDownIcon, CaretUpIcon, CheckIcon } from "../../icons/PaddedPhosphorIcons.js";
1
2
  import { cn } from "../../utils/cn.js";
2
3
  import { OPTION_ROW_SIZES } from "../../utils/componentSizes.js";
3
4
  import zIndices from "../../utils/zIndices.js";
4
5
  import { useZIndex } from "../../utils/useZIndex.js";
5
6
  import { ZIndexProvider } from "../../utils/ZIndexContext.js";
6
- import { CaretDownIcon, CaretUpIcon, CheckIcon } from "../../icons/PaddedPhosphorIcons.js";
7
7
  import * as React$1 from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { useControllableState } from "@radix-ui/react-use-controllable-state";
@@ -1,4 +1,4 @@
1
1
  export { Select } from './Select.js';
2
- export type { SelectGroup, SelectOption, SelectProps, SelectSize, } from './Select.js';
2
+ export type { SelectGroup, SelectOption, SelectProps, SelectSize, SelectVariant, } from './Select.js';
3
3
  export { SelectContent, SelectItem, SelectLabel, SelectRoot, SelectSeparator, SelectTrigger, SelectValue, } from './SelectPrimitive.js';
4
4
  export type { SelectTriggerProps } from './SelectPrimitive.js';
@@ -1,8 +1,8 @@
1
+ import { CaretDoubleRightIcon, CaretDownIcon, CaretUpIcon } from "../../icons/PaddedPhosphorIcons.js";
1
2
  import { cn } from "../../utils/cn.js";
2
- import { Text } from "../Text/Text.js";
3
3
  import zIndices from "../../utils/zIndices.js";
4
+ import { Text } from "../Text/Text.js";
4
5
  import { IconButton } from "../IconButton/IconButton.js";
5
- import { CaretDoubleRightIcon, CaretDownIcon, CaretUpIcon } from "../../icons/PaddedPhosphorIcons.js";
6
6
  import { Kbd } from "../Kbd/Kbd.js";
7
7
  import { createPortalSlot } from "../PortalSlot.js";
8
8
  import { useLayoutEffect, useState } from "react";
@@ -0,0 +1,27 @@
1
+ import type { IconComponent } from '../../utils/icon-types.js';
2
+ import { type BadgeProps } from '../Badge/index.js';
3
+ /** How a state reads: fine, needs attention, broken, or neither. */
4
+ export type StatusBadgeVariant = 'neutral' | 'info' | 'success' | 'warning' | 'error';
5
+ /** Badge's text-label heights: xxs/xs=16px, sm=20px, md=24px. */
6
+ export type StatusBadgeSize = NonNullable<BadgeProps['size']>;
7
+ export interface StatusBadgeProps {
8
+ /** How the state reads. Defaults to `neutral`. */
9
+ variant?: StatusBadgeVariant;
10
+ /**
11
+ * Replaces the variant's icon; `null` drops it. Success, warning, and error
12
+ * carry one by default.
13
+ */
14
+ icon?: IconComponent | null;
15
+ /**
16
+ * Badge height; the icon and text scale with it. Defaults to `xs` (16px),
17
+ * which sits beside a title or in a row.
18
+ */
19
+ size?: StatusBadgeSize;
20
+ children: string;
21
+ className?: string;
22
+ }
23
+ /**
24
+ * A short state beside a title, such as Active, Expires in 3 days, or
25
+ * Failed, colored and marked by how it reads.
26
+ */
27
+ export declare function StatusBadge({ variant, icon, size, children, className, }: StatusBadgeProps): import("react").JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { Badge } from "../Badge/Badge.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { WarningCircleIcon } from "@phosphor-icons/react/dist/ssr/WarningCircle";
4
+ import { CheckCircleIcon } from "@phosphor-icons/react/dist/ssr/CheckCircle";
5
+ import { WarningIcon } from "@phosphor-icons/react/dist/ssr/Warning";
6
+ //#region packages/components/src/components/StatusBadge/StatusBadge.tsx
7
+ var VARIANTS = {
8
+ neutral: { color: "secondary" },
9
+ info: { color: "primary" },
10
+ success: {
11
+ color: "success",
12
+ icon: CheckCircleIcon
13
+ },
14
+ warning: {
15
+ color: "warning",
16
+ icon: WarningIcon
17
+ },
18
+ error: {
19
+ color: "error",
20
+ icon: WarningCircleIcon
21
+ }
22
+ };
23
+ /**
24
+ * A short state beside a title, such as Active, Expires in 3 days, or
25
+ * Failed, colored and marked by how it reads.
26
+ */
27
+ function StatusBadge({ variant = "neutral", icon, size = "xs", children, className }) {
28
+ const { color, icon: variantIcon } = VARIANTS[variant];
29
+ return /* @__PURE__ */ jsx(Badge, {
30
+ color,
31
+ size,
32
+ rounded: "xs",
33
+ leftDecorator: icon === null ? void 0 : icon ?? variantIcon,
34
+ iconWeight: "regular",
35
+ className,
36
+ children
37
+ });
38
+ }
39
+ //#endregion
40
+ export { StatusBadge };
41
+
42
+ //# sourceMappingURL=StatusBadge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StatusBadge.js","names":[],"sources":["../../../src/components/StatusBadge/StatusBadge.tsx"],"sourcesContent":["import { CheckCircleIcon } from '@phosphor-icons/react/dist/ssr/CheckCircle';\nimport { WarningIcon } from '@phosphor-icons/react/dist/ssr/Warning';\nimport { WarningCircleIcon } from '@phosphor-icons/react/dist/ssr/WarningCircle';\n\nimport type { IconComponent } from '../../utils/icon-types';\nimport { Badge, type BadgeProps } from '../Badge';\n\n/** How a state reads: fine, needs attention, broken, or neither. */\nexport type StatusBadgeVariant =\n | 'neutral'\n | 'info'\n | 'success'\n | 'warning'\n | 'error';\n\nconst VARIANTS: Record<\n StatusBadgeVariant,\n { color: NonNullable<BadgeProps['color']>; icon?: IconComponent }\n> = {\n neutral: { color: 'secondary' },\n info: { color: 'primary' },\n success: { color: 'success', icon: CheckCircleIcon },\n warning: { color: 'warning', icon: WarningIcon },\n error: { color: 'error', icon: WarningCircleIcon },\n};\n\n/** Badge's text-label heights: xxs/xs=16px, sm=20px, md=24px. */\nexport type StatusBadgeSize = NonNullable<BadgeProps['size']>;\n\nexport interface StatusBadgeProps {\n /** How the state reads. Defaults to `neutral`. */\n variant?: StatusBadgeVariant;\n /**\n * Replaces the variant's icon; `null` drops it. Success, warning, and error\n * carry one by default.\n */\n icon?: IconComponent | null;\n /**\n * Badge height; the icon and text scale with it. Defaults to `xs` (16px),\n * which sits beside a title or in a row.\n */\n size?: StatusBadgeSize;\n children: string;\n className?: string;\n}\n\n/**\n * A short state beside a title, such as Active, Expires in 3 days, or\n * Failed, colored and marked by how it reads.\n */\nexport function StatusBadge({\n variant = 'neutral',\n icon,\n size = 'xs',\n children,\n className,\n}: StatusBadgeProps) {\n const { color, icon: variantIcon } = VARIANTS[variant];\n return (\n <Badge\n color={color}\n size={size}\n rounded=\"xs\"\n leftDecorator={icon === null ? undefined : (icon ?? variantIcon)}\n iconWeight=\"regular\"\n className={className}\n >\n {children}\n </Badge>\n );\n}\n"],"mappings":";;;;;;AAeA,IAAM,WAGF;CACF,SAAS,EAAE,OAAO,YAAY;CAC9B,MAAM,EAAE,OAAO,UAAU;CACzB,SAAS;EAAE,OAAO;EAAW,MAAM;CAAgB;CACnD,SAAS;EAAE,OAAO;EAAW,MAAM;CAAY;CAC/C,OAAO;EAAE,OAAO;EAAS,MAAM;CAAkB;AACnD;;;;;AA0BA,SAAgB,YAAY,EAC1B,UAAU,WACV,MACA,OAAO,MACP,UACA,aACmB;CACnB,MAAM,EAAE,OAAO,MAAM,gBAAgB,SAAS;CAC9C,OACE,oBAAC,OAAD;EACS;EACD;EACN,SAAQ;EACR,eAAe,SAAS,OAAO,KAAA,IAAa,QAAQ;EACpD,YAAW;EACA;EAEV;CACI,CAAA;AAEX"}
@@ -0,0 +1,2 @@
1
+ export { StatusBadge } from './StatusBadge.js';
2
+ export type { StatusBadgeProps, StatusBadgeSize, StatusBadgeVariant, } from './StatusBadge.js';
@@ -0,0 +1,2 @@
1
+ import { StatusBadge } from "./StatusBadge.js";
2
+ export { StatusBadge };
@@ -1,9 +1,9 @@
1
+ import { CheckIcon, XCloseIcon } from "../../icons/PaddedPhosphorIcons.js";
1
2
  import { cn } from "../../utils/cn.js";
2
3
  import zIndices from "../../utils/zIndices.js";
3
4
  import { ZIndexProvider } from "../../utils/ZIndexContext.js";
4
- import { Icon } from "../Icon/Icon.js";
5
5
  import { IconButton } from "../IconButton/IconButton.js";
6
- import { CheckIcon, XCloseIcon } from "../../icons/PaddedPhosphorIcons.js";
6
+ import { Icon } from "../Icon/Icon.js";
7
7
  import { CopyIconButton } from "../CopyButton/CopyButton.js";
8
8
  import { ToastContext } from "./ToastContext.js";
9
9
  import React, { useCallback } from "react";
@@ -1,8 +1,8 @@
1
1
  import { cn } from "../../utils/cn.js";
2
- import { Text } from "../Text/Text.js";
3
2
  import zIndices from "../../utils/zIndices.js";
4
3
  import { useZIndex } from "../../utils/useZIndex.js";
5
4
  import { ZIndexProvider } from "../../utils/ZIndexContext.js";
5
+ import { Text } from "../Text/Text.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
8
8
  //#region packages/components/src/components/Tooltip/Tooltip.tsx
@@ -1,9 +1,9 @@
1
+ import { CheckIcon, PlusIcon, XIcon } from "../../icons/PaddedPhosphorIcons.js";
1
2
  import { cn } from "../../utils/cn.js";
2
3
  import { Text } from "../Text/Text.js";
4
+ import { IconButton } from "../IconButton/IconButton.js";
3
5
  import { Badge } from "../Badge/Badge.js";
4
6
  import { Icon } from "../Icon/Icon.js";
5
- import { IconButton } from "../IconButton/IconButton.js";
6
- import { CheckIcon, PlusIcon, XIcon } from "../../icons/PaddedPhosphorIcons.js";
7
7
  import { CONTROL_ICON_SIZES } from "../../utils/controlIconSizes.js";
8
8
  import { isTypeaheadOption } from "./Typeahead.utils.js";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
+ import { CaretDownIcon } from "../../icons/PaddedPhosphorIcons.js";
1
2
  import { cn } from "../../utils/cn.js";
2
3
  import { CONTROL_SIZES } from "../../utils/componentSizes.js";
3
4
  import { Text } from "../Text/Text.js";
4
5
  import { Icon } from "../Icon/Icon.js";
5
- import { CaretDownIcon } from "../../icons/PaddedPhosphorIcons.js";
6
6
  import { Popover, PopoverAnchor, PopoverContent } from "../Popover/Popover.js";
7
7
  import { CONTROL_ICON_SIZES } from "../../utils/controlIconSizes.js";
8
8
  import { Command as Command$1, CommandEmpty, CommandItem, CommandList } from "../Command/Command.js";
@@ -1,9 +1,9 @@
1
1
  import { Text } from "./Text/Text.js";
2
- import { Button } from "./Button/Button.js";
3
2
  import { Tooltip } from "./Tooltip/Tooltip.js";
3
+ import { Button } from "./Button/Button.js";
4
4
  import { Dialog, DialogContent } from "./Dialog/index.js";
5
- import { WarningCircleIcon } from "@phosphor-icons/react/dist/ssr/WarningCircle";
6
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { WarningCircleIcon } from "@phosphor-icons/react/dist/ssr/WarningCircle";
7
7
  import { FloppyDiskIcon } from "@phosphor-icons/react/dist/ssr/FloppyDisk";
8
8
  //#region packages/components/src/components/UnsavedChangesDialog.tsx
9
9
  var UnsavedChangesDialog = ({ isOpen, onClose, onConfirm, onDiscard, title, description, saveCopy = "Save", discardCopy = "Discard", disabledSaveTooltip }) => {
@@ -18,6 +18,8 @@ export { ErrorState } from './ErrorState/index.js';
18
18
  export type { ErrorStateProps } from './ErrorState/index.js';
19
19
  export { Badge } from './Badge/index.js';
20
20
  export type { BadgeProps } from './Badge/index.js';
21
+ export { StatusBadge } from './StatusBadge/index.js';
22
+ export type { StatusBadgeProps, StatusBadgeSize, StatusBadgeVariant, } from './StatusBadge/index.js';
21
23
  export { Banner } from './Banner/Banner.js';
22
24
  export type { BannerProps } from './Banner/Banner.js';
23
25
  export { Checkbox, getCheckedState } from './Checkbox/index.js';
@@ -1,14 +1,14 @@
1
1
  import { Text } from "./Text/Text.js";
2
- import { Badge } from "./Badge/Badge.js";
3
- import { Spinner, SpinnerIcon } from "./Spinner/Spinner.js";
4
- import { Button } from "./Button/Button.js";
5
2
  import { Tooltip } from "./Tooltip/Tooltip.js";
6
3
  import { TooltipProvider } from "./Tooltip/index.js";
7
- import { Icon } from "./Icon/Icon.js";
4
+ import { Avatar } from "./Avatar/Avatar.js";
5
+ import { Spinner, SpinnerIcon } from "./Spinner/Spinner.js";
8
6
  import { IconButton } from "./IconButton/IconButton.js";
7
+ import { Badge } from "./Badge/Badge.js";
8
+ import { Button } from "./Button/Button.js";
9
+ import { Icon } from "./Icon/Icon.js";
9
10
  import { Attachment } from "./Attachment/Attachment.js";
10
11
  import { AttachmentList } from "./Attachment/AttachmentList.js";
11
- import { Avatar } from "./Avatar/Avatar.js";
12
12
  import { Banner } from "./Banner/Banner.js";
13
13
  import { ButtonGroup } from "./ButtonGroup/ButtonGroup.js";
14
14
  import { Card } from "./Card/Card.js";
@@ -34,6 +34,7 @@ import { RadioCard } from "./RadioCard/RadioCard.js";
34
34
  import { RadioGroup } from "./RadioGroup/RadioGroup.js";
35
35
  import { RadioGroupItem } from "./RadioGroup/RadioGroupItem.js";
36
36
  import { Slider } from "./Slider/Slider.js";
37
+ import { StatusBadge } from "./StatusBadge/StatusBadge.js";
37
38
  import { Switch } from "./Switch/Switch.js";
38
39
  import { Textarea } from "./Textarea/Textarea.js";
39
- export { Attachment, AttachmentList, Avatar, Badge, Banner, Button, ButtonGroup, Card, ChartTooltip, ChartTooltipBody, ChartTooltipHeader, ChartTooltipRow, Checkbox, CircleSkeleton, Divider, EmptyState, ErrorState, GroupedTabs, HeatmapBlock, HeatmapChart, Icon, IconButton, Input, Kbd, KbdGroup, LinearProgress, Link, MetricChart, ProgressBar, RadioButton, RadioCard, RadioGroup, RadioGroupItem, Skeleton, SkeletonRows, Slider, Spinner, SpinnerIcon, Switch, Text, Textarea, Tooltip, TooltipProvider, formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime, getCheckedState };
40
+ export { Attachment, AttachmentList, Avatar, Badge, Banner, Button, ButtonGroup, Card, ChartTooltip, ChartTooltipBody, ChartTooltipHeader, ChartTooltipRow, Checkbox, CircleSkeleton, Divider, EmptyState, ErrorState, GroupedTabs, HeatmapBlock, HeatmapChart, Icon, IconButton, Input, Kbd, KbdGroup, LinearProgress, Link, MetricChart, ProgressBar, RadioButton, RadioCard, RadioGroup, RadioGroupItem, Skeleton, SkeletonRows, Slider, Spinner, SpinnerIcon, StatusBadge, Switch, Text, Textarea, Tooltip, TooltipProvider, formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime, getCheckedState };
@@ -1,7 +1,7 @@
1
1
  import { CaretDownIcon, CaretRightIcon, MinusIcon } from "./PaddedPhosphorIcons.js";
2
+ import { CaretUpDownIcon } from "@phosphor-icons/react/dist/ssr/CaretUpDown";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { InfoIcon } from "@phosphor-icons/react/dist/ssr/Info";
4
- import { CaretUpDownIcon } from "@phosphor-icons/react/dist/ssr/CaretUpDown";
5
5
  import { BinaryIcon } from "@phosphor-icons/react/dist/ssr/Binary";
6
6
  import { BriefcaseIcon } from "@phosphor-icons/react/dist/ssr/Briefcase";
7
7
  import { BuildingsIcon } from "@phosphor-icons/react/dist/ssr/Buildings";
@@ -1,5 +1,3 @@
1
- import { XIcon as XIcon$1 } from "@phosphor-icons/react/dist/ssr/X";
2
- import { jsx } from "react/jsx-runtime";
3
1
  import { ArrowDownIcon as ArrowDownIcon$1 } from "@phosphor-icons/react/dist/ssr/ArrowDown";
4
2
  import { ArrowLeftIcon as ArrowLeftIcon$1 } from "@phosphor-icons/react/dist/ssr/ArrowLeft";
5
3
  import { ArrowRightIcon as ArrowRightIcon$1 } from "@phosphor-icons/react/dist/ssr/ArrowRight";
@@ -15,6 +13,8 @@ import { CheckIcon as CheckIcon$1 } from "@phosphor-icons/react/dist/ssr/Check";
15
13
  import { DotsSixVerticalIcon as DotsSixVerticalIcon$1 } from "@phosphor-icons/react/dist/ssr/DotsSixVertical";
16
14
  import { MinusIcon as MinusIcon$1 } from "@phosphor-icons/react/dist/ssr/Minus";
17
15
  import { PlusIcon as PlusIcon$1 } from "@phosphor-icons/react/dist/ssr/Plus";
16
+ import { XIcon as XIcon$1 } from "@phosphor-icons/react/dist/ssr/X";
17
+ import { jsx } from "react/jsx-runtime";
18
18
  //#region packages/components/src/icons/PaddedPhosphorIcons.tsx
19
19
  var createPaddedIcon = (IconComponent, inset, displayName, extraBold = false) => {
20
20
  const viewBox = `${-inset} ${-inset} ${256 + inset * 2} ${256 + inset * 2}`;
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { Text } from "./components/Text/Text.js";
2
- import { Badge } from "./components/Badge/Badge.js";
3
- import { Spinner, SpinnerIcon } from "./components/Spinner/Spinner.js";
4
- import { Button } from "./components/Button/Button.js";
5
2
  import { Tooltip } from "./components/Tooltip/Tooltip.js";
6
3
  import { TooltipProvider } from "./components/Tooltip/index.js";
7
- import { Icon } from "./components/Icon/Icon.js";
4
+ import { Avatar } from "./components/Avatar/Avatar.js";
5
+ import { Spinner, SpinnerIcon } from "./components/Spinner/Spinner.js";
8
6
  import { IconButton } from "./components/IconButton/IconButton.js";
7
+ import { Badge } from "./components/Badge/Badge.js";
8
+ import { Button } from "./components/Button/Button.js";
9
+ import { Icon } from "./components/Icon/Icon.js";
9
10
  import { Attachment } from "./components/Attachment/Attachment.js";
10
11
  import { AttachmentList } from "./components/Attachment/AttachmentList.js";
11
- import { Avatar } from "./components/Avatar/Avatar.js";
12
12
  import { Banner } from "./components/Banner/Banner.js";
13
13
  import { ButtonGroup } from "./components/ButtonGroup/ButtonGroup.js";
14
14
  import { Card } from "./components/Card/Card.js";
@@ -34,7 +34,8 @@ import { RadioCard } from "./components/RadioCard/RadioCard.js";
34
34
  import { RadioGroup } from "./components/RadioGroup/RadioGroup.js";
35
35
  import { RadioGroupItem } from "./components/RadioGroup/RadioGroupItem.js";
36
36
  import { Slider } from "./components/Slider/Slider.js";
37
+ import { StatusBadge } from "./components/StatusBadge/StatusBadge.js";
37
38
  import { Switch } from "./components/Switch/Switch.js";
38
39
  import { Textarea } from "./components/Textarea/Textarea.js";
39
40
  import "./components/index.js";
40
- export { Attachment, AttachmentList, Avatar, Badge, Banner, Button, ButtonGroup, Card, ChartTooltip, ChartTooltipBody, ChartTooltipHeader, ChartTooltipRow, Checkbox, CircleSkeleton, Divider, EmptyState, ErrorState, GroupedTabs, HeatmapBlock, HeatmapChart, Icon, IconButton, Input, Kbd, KbdGroup, LinearProgress, Link, MetricChart, ProgressBar, RadioButton, RadioCard, RadioGroup, RadioGroupItem, Skeleton, SkeletonRows, Slider, Spinner, SpinnerIcon, Switch, Text, Textarea, Tooltip, TooltipProvider, formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime, getCheckedState };
41
+ export { Attachment, AttachmentList, Avatar, Badge, Banner, Button, ButtonGroup, Card, ChartTooltip, ChartTooltipBody, ChartTooltipHeader, ChartTooltipRow, Checkbox, CircleSkeleton, Divider, EmptyState, ErrorState, GroupedTabs, HeatmapBlock, HeatmapChart, Icon, IconButton, Input, Kbd, KbdGroup, LinearProgress, Link, MetricChart, ProgressBar, RadioButton, RadioCard, RadioGroup, RadioGroupItem, Skeleton, SkeletonRows, Slider, Spinner, SpinnerIcon, StatusBadge, Switch, Text, Textarea, Tooltip, TooltipProvider, formatMetricCurrency, formatMetricDate, formatMetricDuration, formatMetricNumber, formatMetricTime, getCheckedState };