@ssa-ui-kit/core 3.25.0 → 3.26.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 (47) hide show
  1. package/dist/ai/source-map.md +76 -23
  2. package/dist/components/Breadcrumbs/styles.d.ts +1 -1
  3. package/dist/components/Chip/helpers.d.ts +2 -2
  4. package/dist/components/Chip/types.d.ts +10 -3
  5. package/dist/components/ContextMenu/ContextMenu.d.ts +74 -0
  6. package/dist/components/ContextMenu/ContextMenuOption.d.ts +18 -0
  7. package/dist/components/ContextMenu/index.d.ts +3 -0
  8. package/dist/components/ContextMenu/styles.d.ts +17 -0
  9. package/dist/components/ContextMenu/types.d.ts +153 -0
  10. package/dist/components/ContextMenu/utils.d.ts +79 -0
  11. package/dist/components/Dropdown/Dropdown.d.ts +1 -1
  12. package/dist/components/Dropdown/types.d.ts +14 -0
  13. package/dist/components/DropdownOptions/DropdownOptions.d.ts +5 -5
  14. package/dist/components/DropdownOptions/useToggleListKeys.d.ts +33 -0
  15. package/dist/components/DropdownOptions/utils.d.ts +9 -0
  16. package/dist/components/FiltersMultiSelect/FiltersMultiSelectProvider.d.ts +9 -0
  17. package/dist/components/FiltersMultiSelect/components/FiltersMultiSelectOption.d.ts +31 -1
  18. package/dist/components/FiltersMultiSelect/components/FiltersMultiSelectOptions.d.ts +29 -2
  19. package/dist/components/FiltersMultiSelect/utils.d.ts +15 -0
  20. package/dist/components/Footer/Footer.d.ts +42 -0
  21. package/dist/components/Footer/index.d.ts +1 -0
  22. package/dist/components/Footer/styles.d.ts +53 -0
  23. package/dist/components/Footer/types.d.ts +110 -0
  24. package/dist/components/Header/Header.d.ts +4 -4
  25. package/dist/components/Header/HeaderMobileMenu.d.ts +4 -3
  26. package/dist/components/Header/styles.d.ts +15 -4
  27. package/dist/components/Label/Label.d.ts +11 -1
  28. package/dist/components/Label/index.d.ts +1 -0
  29. package/dist/components/Label/types.d.ts +36 -1
  30. package/dist/components/MultipleDropdown/MultipleDropdown.d.ts +4 -1
  31. package/dist/components/MultipleDropdown/types.d.ts +8 -0
  32. package/dist/components/MultipleDropdownOptions/MultipleDropdownOptions.d.ts +27 -0
  33. package/dist/components/Table/ColumnFreezeMenu.d.ts +2 -0
  34. package/dist/components/TextField/TextField.d.ts +1 -1
  35. package/dist/components/TextField/types.d.ts +7 -0
  36. package/dist/components/Textarea/types.d.ts +4 -0
  37. package/dist/components/Typeahead/Typeahead.context.d.ts +10 -1
  38. package/dist/components/Typeahead/Typeahead.d.ts +1 -1
  39. package/dist/components/Typeahead/components/TypeaheadOptions.d.ts +13 -1
  40. package/dist/components/Typeahead/styles.d.ts +5 -0
  41. package/dist/components/Typeahead/types.d.ts +14 -1
  42. package/dist/components/Typeahead/useTypeahead.d.ts +12 -2
  43. package/dist/components/index.d.ts +5 -0
  44. package/dist/index.js +3593 -2167
  45. package/dist/index.mjs +3588 -2168
  46. package/dist/tsbuildcache +1 -1
  47. package/package.json +3 -3
@@ -4,7 +4,7 @@ Generated from the TypeScript program at build time — do not edit by hand.
4
4
 
5
5
  **Everything below is imported from the package root:** `import { X } from '@ssa-ui-kit/core'`
6
6
 
7
- 192 components · 20 contexts · 23 hooks · 17 functions · 16 constants · 325 exported types
7
+ 194 components · 20 contexts · 23 hooks · 21 functions · 16 constants · 346 exported types
8
8
 
9
9
  ## Reading this file
10
10
 
@@ -16,13 +16,13 @@ Generated from the TypeScript program at build time — do not edit by hand.
16
16
 
17
17
  ## Component roster
18
18
 
19
- **Action & Form Controls** — BreadcrumbMenu, Breadcrumbs, Button, ButtonGroup, ButtonGroupButton, Checkbox, ColorPicker, DatePicker, DateRangePicker, DateRangePickerFormBridge, Dropdown, DropdownArrow, DropdownBase, DropdownOption, DropdownOptions, DropdownToggle, FileAttachment, FileUpload, FloatingActionButton, IconButton, Input, MultipleDropdown, MultipleDropdownNotification, MultipleDropdownOptions, NumberField, Radio, RadioGroup, SearchBox, SearchBoxCrossIcon, SearchBoxInput, SearchBoxWrapper, Slider, SliderInputsRow, SliderLabel, SliderMarkItem, SliderMarkLabel, SliderMarksRow, SliderMarkTick, SliderNumberInput, SliderRangeInput, SliderRoot, SliderTrackBg, SliderTrackFill, SliderTrackRow, SliderTrackWrapper, SliderValueLabel, SliderValueLabelsContainer, Switch, Textarea, TextField, Typeahead, TypeaheadItemIcon, TypeaheadItemImage, TypeaheadOption, TypeaheadOptions
19
+ **Action & Form Controls** — BreadcrumbMenu, Breadcrumbs, Button, ButtonGroup, ButtonGroupButton, Checkbox, ColorPicker, ContextMenu, DatePicker, DateRangePicker, DateRangePickerFormBridge, Dropdown, DropdownArrow, DropdownBase, DropdownOption, DropdownOptions, DropdownToggle, FileAttachment, FileUpload, FloatingActionButton, IconButton, Input, MultipleDropdown, MultipleDropdownNotification, MultipleDropdownOptions, NumberField, Radio, RadioGroup, SearchBox, SearchBoxCrossIcon, SearchBoxInput, SearchBoxWrapper, Slider, SliderInputsRow, SliderLabel, SliderMarkItem, SliderMarkLabel, SliderMarksRow, SliderMarkTick, SliderNumberInput, SliderRangeInput, SliderRoot, SliderTrackBg, SliderTrackFill, SliderTrackRow, SliderTrackWrapper, SliderValueLabel, SliderValueLabelsContainer, Switch, Textarea, TextField, Typeahead, TypeaheadItemIcon, TypeaheadItemImage, TypeaheadOption, TypeaheadOptions
20
20
 
21
21
  **Form Structure** — Filters, FiltersMultiSelect, FiltersMultiSelectEmpty, FiltersMultiSelectOption, FiltersMultiSelectOptions, Form, FormAction, FormCheckbox, FormGroup, FormHelperText, FormRadioGroup
22
22
 
23
23
  **Data Display** — Avatar, Badge, BarGaugeChart, BarGaugeChartComponent, BarLineComplexChart, BigNumberChart, BigNumberChartComponent, Calendar, CalendarEventDetails, CandlestickChart, CandlestickChartComponent, Card, CardBase, CardContent, CardHeader, CardList, Carousel, ChartBackground, Chip, ColumnFreezeMenu, ColumnResizeHandle, Counter, FunnelChart, GaugeChart, ImageItem, Indicator, Label, NestedTable, NestedTableCell, NestedTableCellHeader, NestedTableCellSubHeader, NestedTableRow, PieChart, PieChartComponent, PieChartLegend, Progress, ProgressBar, ProgressCircle, ProgressInfo, ProgressInfoTotals, ProgressLegend, ProgressLegendItem, ProgressVertical, ResponsiveImage, SegmentedPieChart, SegmentedPieChartComponent, Table, TableBody, TableCell, TableCellHeader, TableContainer, TableFilterCheckbox, TableFilters, TableFiltersAccordion, TableFiltersAccordionContent, TableFiltersButtons, TableFiltersCancelButton, TableFiltersClearButton, TableFilterTrigger, TableFilterTriggerWithNotification, TableHead, TableRow, Tag, TreeMapChart, TreeMapChartComponent, TreeMapTooltipBase, Typography, WithNestedTableRow
24
24
 
25
- **Navigation & Layout** — CollapsibleNavBar, CollapsibleNavBarCustomIconSVG, Header, History, LargeTab, Link, LinksTabBar, NavBar, Pagination, Step, StepConnector, StepLabel, Stepper, Tab, TabBar, TreeView, WithLink, WithPagination, WithVisibleLG, WithVisibleMD, WithVisibleSM, WithVisibleUpToLG, Wrapper
25
+ **Navigation & Layout** — CollapsibleNavBar, CollapsibleNavBarCustomIconSVG, Footer, Header, History, LargeTab, Link, LinksTabBar, NavBar, Pagination, Step, StepConnector, StepLabel, Stepper, Tab, TabBar, TreeView, WithLink, WithPagination, WithVisibleLG, WithVisibleMD, WithVisibleSM, WithVisibleUpToLG, Wrapper
26
26
 
27
27
  **Overlay & Feedback** — Modal, ModalContent, ModalDialog, ModalDismissButton, ModalOpenButton, NotificationCard, NotificationMenu, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeading, PopoverTrigger, ProgressChartTooltip, SimpleChartTooltip, Tooltip, TooltipContent, TooltipContentBase, TooltipTrigger
28
28
 
@@ -122,6 +122,25 @@ Form control for selecting one or more options
122
122
  - `classnames?: { trigger, content, button, colorPicker, colorDropdown, output }`
123
123
  - `onChange?: (color: string) => void`
124
124
 
125
+ #### ContextMenu<V>
126
+ The list of options shown inside a dropdown, typeahead, filter or action menu.
127
+
128
+ - `items: ContextMenuEntry<V>[]` — Options and groups, in display order.
129
+ - `indicator?: ContextMenuIndicator` — How selected rows are marked. Defaults to `check` for `single`, `checkbox` for `multiple` and `none`…
130
+ - `onAction?: (value: V) => void` — Fires when an option is chosen by click, Enter or Space, in every mode — the hook for closing a popup.
131
+ - `activeValue?: V | null` — Controlled highlighted option (pointer or keyboard).
132
+ - `defaultActiveValue?: V | null` — Initially highlighted option when uncontrolled.
133
+ - `onActiveValueChange?: (value: V | null) => void` — Fires when the highlighted option changes.
134
+ - `renderItem?: (item: ContextMenuItem<V>, state: ContextMenuItemState) => ReactNode` — Replaces the row content between the start and end indicators.
135
+ - `renderGroupLabel?: (group: ContextMenuGroup<V>) => ReactNode` — Replaces the content of group titles.
136
+ - `emptyState?: ReactNode` `= 'No items'` — Shown when `items` has no options.
137
+ - `maxHeight?: string | number` — Scrolls the list beyond this height (px or any CSS length).
138
+ - `selectionMode?: 'none' | 'multiple' | 'single' | 'includeExclude'`
139
+ - `value?: V | V[] | ContextMenuIncludeExcludeEntry<V>[] | null` — Controlled selected value. `null` for none. Controlled selected values. Controlled chosen rows.
140
+ - `defaultValue?: V | V[] | ContextMenuIncludeExcludeEntry<V>[] | null` — Initially selected value when uncontrolled. Initially selected values when uncontrolled. Initially chosen…
141
+ - `onChange?: ((value: V) => void) | ((value: V[], toggled: V) => void) | …(1 more)` — Fires with the newly selected value. Choosing the selected option again keeps it selected. Fires with the new…
142
+ - _plus native element attributes_
143
+
125
144
  #### DatePicker
126
145
  Masked date input with a popover calendar. Use inside **`FormProvider`** (react-hook-form): the field value is the formatted string; **`onChange`** receives a JavaScript…
127
146
 
@@ -234,6 +253,7 @@ Select-like dropdown component for single selection
234
253
  - `maxHeight?: number` `= 200` — Max height (px) of the options list; overflow scrolls.
235
254
  - `avatarBorder?: boolean` `= false` — Shows a border around the avatar in the selected-item display.
236
255
  - `label?: string` — Label text displayed above the dropdown
256
+ - `labelBadge?: LabelBadge` — Status badge to the right of the label, e.g. `{ text: 'default', color: 'grey' }`. Announced as the toggle's…
237
257
  - `helperText?: string` — Helper text displayed below the dropdown Shown when no errors are present
238
258
  - `errors?: FieldError` — React Hook Form field error object Used to display validation error messages
239
259
  - `success?: boolean` `= false` — Whether to display success state styling When true, status is set to 'success'
@@ -407,6 +427,7 @@ Dropdown component for multi-select and single-select
407
427
  - _plus native element attributes_
408
428
 
409
429
  #### MultipleDropdownOptions
430
+ Options menu container for MultipleDropdown
410
431
 
411
432
  - `aria-labelledby?: string` — ARIA label reference Associates the listbox with its label
412
433
  - `ariaLabelledby?: string` — ARIA label reference Associates the listbox with its label
@@ -660,6 +681,7 @@ Multi-line text input component
660
681
  - `status?: 'custom' | 'error' | 'success' | 'basic'` `= 'basic'` — Visual validation status (aligns with Input/TextField palette behavior). - `basic`: default border/outline…
661
682
  - `title?: string` — Title attribute for the textarea element Provides tooltip text on hover
662
683
  - `id?: string` — HTML id attribute for the textarea (e.g. for label htmlFor). Defaults to `formElement-${name}` when not…
684
+ - `aria-describedby?: string` — Ids of the elements describing the textarea — a label badge, helper text
663
685
  - `onPaste?: ClipboardEventHandler<HTMLTextAreaElement>` — Paste event handler Fired when content is pasted into the textarea
664
686
  - `setCountChar?: ReactEventHandler` — Callback function to track character count Called with the event when content changes Useful for displaying…
665
687
 
@@ -667,6 +689,7 @@ Multi-line text input component
667
689
  Ready-to-use text input (single- or multi-line) with label and validation UI.
668
690
 
669
691
  - `label?: string` — Label text displayed above the input field
692
+ - `labelBadge?: LabelBadge` — Status badge to the right of the label, e.g. `{ text: 'mapped', color: 'primary' }`. Announced as the field's…
670
693
  - `errors?: FieldError` — React Hook Form field error object Used to display validation error messages
671
694
  - `success?: boolean` `= false` — Whether to display success state styling When true, status is set to 'success'
672
695
  - `helperText?: string` — Helper text displayed below the input Shown when no errors are present
@@ -716,6 +739,7 @@ Advanced autocomplete search component with dropdown functionality
716
739
  - `endIconClassName?: string` — Custom CSS class name for the end icon
717
740
  - `name?: string` `= 'typeahead-search'` — Form field name (required for React Hook Form integration)
718
741
  - `label?: string` — Label text displayed above the input
742
+ - `labelBadge?: LabelBadge` — Status badge to the right of the label, e.g. `{ text: 'mapped', color: 'primary' }`. Announced as the input's…
719
743
  - `helperText?: string` — Helper text displayed below the input
720
744
  - `error?: FieldError` — Field error from React Hook Form
721
745
  - `success?: boolean` `= false` — Whether to show success state
@@ -758,8 +782,9 @@ Props for TypeaheadOption component Record type that allows any string or number
758
782
  - `aria-selected?: boolean` — ARIA selected state
759
783
 
760
784
  #### TypeaheadOptions
785
+ The Typeahead's option list: a `ContextMenu` driven from the Typeahead's input. The options themselves come from the `TypeaheadOption` children of `Typeahead`, filtered…
761
786
 
762
- - `children?: ReactNode`
787
+ - `children?: ReactNode` — Ignored: the options come from the `TypeaheadOption` children of `Typeahead`, through context.
763
788
  - `noItemsMessage?: string`
764
789
 
765
790
  ### Form Structure
@@ -802,12 +827,14 @@ Props for TypeaheadOption component Record type that allows any string or number
802
827
  - _plus native element attributes_
803
828
 
804
829
  #### FiltersMultiSelectOption
830
+ One filter row of a `FiltersMultiSelect`.
805
831
 
806
- - `filter: Filter`
807
- - `children: ReactNode`
832
+ - `filter: Filter` — The filter this row adds. `group: true` makes it a select-only row.
833
+ - `children: ReactNode` — Row content.
808
834
  - `selected?: boolean`
809
835
 
810
836
  #### FiltersMultiSelectOptions
837
+ The options list of a `FiltersMultiSelect`.
811
838
 
812
839
  - `children: React.ReactNode`
813
840
  - _plus native element attributes_
@@ -1079,7 +1106,7 @@ Compact component for tags, labels, and removable items.
1079
1106
  - `label: ReactNode` — Main text content of the chip Can be a string, number, or React node
1080
1107
  - `title?: ReactNode` — Optional title/heading text displayed before the label Useful for chips with additional context
1081
1108
  - `variant?: ChipVariant` `= 'filled'` — Visual style variant - `filled`: Solid background (default) - `outlined`: Transparent with border
1082
- - `color?: ChipColor` `= 'default'` — Color theme for the chip. Semantic colors read from `theme.palette`, so palette overrides in a custom theme…
1109
+ - `color?: (string & {}) | 'black' | 'black25' | 'black45' | 'white' | 'white60' | …(139 more)` `= 'default'` — Color theme for the chip. Semantic colors read from `theme.palette`, so palette overrides in a custom theme…
1083
1110
  - `size?: ChipSize` `= 'medium'` — Size of the chip
1084
1111
  - `disabled?: boolean` `= false` — Whether the chip is disabled Disabled chips cannot be clicked or deleted
1085
1112
  - `icon?: 'reset' | 'archive' | 'arrow-down' | 'arrow-up' | …(223 more — full list under "Icon.name")` — Icon name to display before the label Uses the Icon component internally Defaults to 'plus' if showIcon is…
@@ -1089,6 +1116,7 @@ Compact component for tags, labels, and removable items.
1089
1116
  - `showIcon?: boolean` `= true` — Whether to show the leading icon If false, no icon will be displayed even if icon prop is provided
1090
1117
  - `onClick?: MouseEventHandler<HTMLDivElement>` — Click handler for the chip Makes the chip clickable/interactive
1091
1118
  - `clickable?: boolean` — Explicitly mark chip as clickable Used to enable pointer cursor and keyboard interaction Automatically true…
1119
+ - `id?: string` — `id` of the chip element, e.g. for a control's `aria-describedby`
1092
1120
 
1093
1121
  #### ColumnFreezeMenu
1094
1122
  The freeze/unfreeze menu in a table header cell
@@ -1165,7 +1193,9 @@ Stage diagram drawn as a funnel or a triangle
1165
1193
  #### Label
1166
1194
 
1167
1195
  - `htmlFor?: string`
1196
+ - `id?: string` — `id` of the `<label>` element, e.g. for a control's `aria-labelledby`
1168
1197
  - `children: ReactNode`
1198
+ - `badge?: LabelBadge` — Status badge shown to the right of the label text
1169
1199
  - `disabled?: boolean` — Renders the label in its muted, disabled state.
1170
1200
  - `isDisabled?: boolean`
1171
1201
  - `onMouseEnter?: MouseEventHandler<HTMLLabelElement>`
@@ -1563,6 +1593,18 @@ The app sidebar: a logo, a menu, and three layouts.
1563
1593
  _No library-specific props._
1564
1594
  - _plus native element attributes_
1565
1595
 
1596
+ #### Footer
1597
+ The page's bottom bar: a copyright line and legal links, and optionally a logo, a short description and navigation columns above them.
1598
+
1599
+ - `copyright?: ReactNode` — Copyright line, on the left of the bottom bar
1600
+ - `links?: FooterLink[]` — Legal links — privacy policy, terms — on the right of the bottom bar
1601
+ - `logo?: ReactNode` — Project logo, at the top left of the extended footer, in a 64px high box. Passing it makes the footer…
1602
+ - `description?: ReactNode` — Short text under the logo — a tagline, the company name. Passing it makes the footer extended.
1603
+ - `columns?: FooterColumn[]` — Navigation columns on the right of the extended footer. Passing any makes the footer extended.
1604
+ - `size?: FooterSize` `= 'small'` — Text size and height of the bottom bar. Ignored by the extended footer, which the design only has in medium.
1605
+ - `linksLabel?: string` `= 'Legal'` — Accessible name of the legal links' navigation landmark
1606
+ - _plus native element attributes_
1607
+
1566
1608
  #### Header
1567
1609
  The application's top bar: logo, main navigation and a free slot on the right for the user profile, notifications or log out.
1568
1610
 
@@ -2182,6 +2224,8 @@ Accessible label for form fields
2182
2224
 
2183
2225
  - `children: ReactNode` — Label text content
2184
2226
  - `htmlFor?: string`
2227
+ - `id?: string` — `id` of the `<label>` element, e.g. for a control's `aria-labelledby`
2228
+ - `badge?: LabelBadge` — Status badge shown to the right of the label text
2185
2229
  - `disabled?: boolean` — Renders the label in its muted, disabled state.
2186
2230
  - `isDisabled?: boolean`
2187
2231
  - `onMouseEnter?: MouseEventHandler<HTMLLabelElement>`
@@ -2327,7 +2371,11 @@ A sticky action bar across the bottom of the panel.
2327
2371
  - `clearButtonStyles`
2328
2372
  - `deriveBreadcrumbs` — Pure derivation of breadcrumb items from a route tree and a pathname. Extracted from the hook so it can be unit-tested without a router.
2329
2373
  - `filterButtonStyles`
2374
+ - `getContextMenuOptionId` — DOM id of an option, for `aria-activedescendant` on an element outside the list (e.g. a combobox input). `menuId` is the `id` given to the ContextMenu. Characters not…
2375
+ - `getLabelBadgeId` — Builds the default badge id for a label's `htmlFor`, so a field can point its control's `aria-describedby` at the badge.
2376
+ - `getNextActiveValue` — Where a navigation key moves the highlight: ArrowDown / ArrowUp step over disabled options and wrap, Home / End jump to the ends. Returns `undefined` for any other key,…
2330
2377
  - `highlightInputMatch`
2378
+ - `nextIncludeExcludeType` — Where Enter moves an `includeExclude` row: none → include → exclude → none, or none ⇄ selected for `selectOnly` rows. For driving that cycle from an input that keeps…
2331
2379
  - `resetDeprecationWarnings` — Clears the once-per-pair warning cache.
2332
2380
  - `resolveAriaProp` — Shorthand for the camelCase-ARIA → native-ARIA renames (issue #656, chunk 3 item 1).
2333
2381
  - `resolveDeprecatedProp` — Resolves a prop that is mid-rename: returns the new prop's value when it is defined, otherwise falls back to the deprecated one and warns in dev.
@@ -2395,26 +2443,31 @@ _Names only — read the `.d.ts` for their shape._
2395
2443
  `CollapsibleNavBarItem` · `ColoredButtonTextProps` · `ColorsKeys` · `ColumnFreezeApi`
2396
2444
  `ColumnFreezeMenuProps` · `ColumnFreezeOptions` · `ColumnId` · `ColumnResizeApi`
2397
2445
  `ColumnResizeHandleProps` · `ColumnResizeMode` · `ColumnResizeOptions` · `CommonProps`
2398
- `ContextType` · `ControlledButtonProps` · `CounterProps` · `CounterSizes` · `CounterVariants`
2399
- `CustomIconProps` · `CustomTagStyles` · `DatePickerContextProps` · `DatePickerFormat`
2400
- `DatePickerProps` · `DateRangePickerContextProps` · `DateRangePickerFormBridgeProps`
2401
- `DateRangePickerFormBridgeValue` · `DateRangePickerOnChangeDates` · `DateRangePickerProps`
2402
- `DateRangePresetValue` · `DateRangePreset` · `DateTimeTuple` · `DeprecatedOpenStateProps`
2403
- `DropdownContextType` · `DropdownOptionProps` · `DropdownPositions` · `DropdownProps`
2404
- `DropdownToggleProps` · `DynamicAlertParams` · `DynamicNotificationParams` · `DynamicToastParams`
2405
- `FieldContextValue` · `FieldControlProps` · `FieldDescriptionProps` · `FieldErrorProps`
2406
- `FieldLabelProps` · `FieldProps` · `FieldSuccessProps` · `FileAttachmentFile`
2446
+ `ContextMenuBaseProps` · `ContextMenuEntry` · `ContextMenuGroup` · `ContextMenuIncludeExcludeEntry`
2447
+ `ContextMenuIncludeExcludeSelectionProps` · `ContextMenuIncludeExcludeType` · `ContextMenuIndicator`
2448
+ `ContextMenuItemState` · `ContextMenuItem` · `ContextMenuMultipleSelectionProps`
2449
+ `ContextMenuNoSelectionProps` · `ContextMenuProps` · `ContextMenuSelectionProps`
2450
+ `ContextMenuSingleSelectionProps` · `ContextMenuValue` · `ContextType` · `ControlledButtonProps`
2451
+ `CounterProps` · `CounterSizes` · `CounterVariants` · `CustomIconProps` · `CustomTagStyles`
2452
+ `DatePickerContextProps` · `DatePickerFormat` · `DatePickerProps` · `DateRangePickerContextProps`
2453
+ `DateRangePickerFormBridgeProps` · `DateRangePickerFormBridgeValue` · `DateRangePickerOnChangeDates`
2454
+ `DateRangePickerProps` · `DateRangePresetValue` · `DateRangePreset` · `DateTimeTuple`
2455
+ `DeprecatedOpenStateProps` · `DropdownContextType` · `DropdownOptionProps` · `DropdownPositions`
2456
+ `DropdownProps` · `DropdownToggleProps` · `DynamicAlertParams` · `DynamicNotificationParams`
2457
+ `DynamicToastParams` · `FieldContextValue` · `FieldControlProps` · `FieldDescriptionProps`
2458
+ `FieldErrorProps` · `FieldLabelProps` · `FieldProps` · `FieldSuccessProps` · `FileAttachmentFile`
2407
2459
  `FileAttachmentProps` · `FileRejectionReason` · `FileUploadProgressEntry` · `FileUploadProgress`
2408
2460
  `FileUploadProps` · `Filter` · `FiltersMultiSelectEmptyProps` · `FiltersMultiSelectOptionProps`
2409
2461
  `FiltersMultiSelectProps` · `FloatingActionButtonAction` · `FloatingActionButtonColor`
2410
2462
  `FloatingActionButtonIcon` · `FloatingActionButtonPosition` · `FloatingActionButtonProps`
2411
- `FloatingActionButtonSize` · `FloatingSurfaceColor` · `FloatingSurfaceSize` · `Format`
2412
- `FrozenColumns` · `FullscreenModeContextType` · `FunnelChartItem` · `FunnelChartProps`
2413
- `FunnelChartRender` · `FunnelChartType` · `GaugeBarProps` · `GaugeBarThreshold`
2414
- `GaugeBarValueFormatter` · `GaugeChartFeature` · `GaugeChartProps` · `HeaderNavItem` · `HeaderProps`
2415
- `HeaderSize` · `HeaderTheme` · `HistoryItemType` · `HistoryProps` · `IFormCheckboxProps`
2416
- `IconButtonProps` · `IconProps` · `ImageItemProps` · `IndicatorProps` · `InputColors` · `InputProps`
2417
- `InputStatusColors` · `InteractionsEnabled` · `Item` · `LabelProps` · `LargeTabProps`
2463
+ `FloatingActionButtonSize` · `FloatingSurfaceColor` · `FloatingSurfaceSize` · `FooterColumn`
2464
+ `FooterLink` · `FooterProps` · `FooterSize` · `FooterTheme` · `Format` · `FrozenColumns`
2465
+ `FullscreenModeContextType` · `FunnelChartItem` · `FunnelChartProps` · `FunnelChartRender`
2466
+ `FunnelChartType` · `GaugeBarProps` · `GaugeBarThreshold` · `GaugeBarValueFormatter`
2467
+ `GaugeChartFeature` · `GaugeChartProps` · `HeaderNavItem` · `HeaderProps` · `HeaderSize`
2468
+ `HeaderTheme` · `HistoryItemType` · `HistoryProps` · `IFormCheckboxProps` · `IconButtonProps`
2469
+ `IconProps` · `ImageItemProps` · `IndicatorProps` · `InputColors` · `InputProps`
2470
+ `InputStatusColors` · `InteractionsEnabled` · `Item` · `LabelBadge` · `LabelProps` · `LargeTabProps`
2418
2471
  `LastFocusedElement` · `LinkProps` · `LinksTabBarProps` · `MainColors` · `MainSizes`
2419
2472
  `MapIconsType` · `ModalContextProps` · `ModalDialogProps` · `ModalProps` · `ModalRootProps`
2420
2473
  `MountMode` · `MultipleStylesProps` · `NavBarExtendedGroup` · `NavBarExtendedItem`
@@ -6,4 +6,4 @@ export declare const crumbLink: import("@emotion/react").SerializedStyles;
6
6
  export declare const crumbText: import("@emotion/react").SerializedStyles;
7
7
  export declare const crumbCurrent: import("@emotion/react").SerializedStyles;
8
8
  export declare const menu: import("@emotion/react").SerializedStyles;
9
- export declare const menuItem: import("@emotion/react").SerializedStyles;
9
+ export declare const menuLink: import("@emotion/react").SerializedStyles;
@@ -1,6 +1,6 @@
1
1
  import { Theme } from '@emotion/react';
2
- import { ChipProps } from './types';
3
- type SemanticColor = Exclude<ChipProps['color'], 'default' | undefined>;
2
+ import { ChipColor, ChipProps } from './types';
3
+ type SemanticColor = Exclude<ChipColor, 'default'>;
4
4
  type ColorConfig = {
5
5
  /** Solid background for filled variant / border + text for outlined */
6
6
  main: string;
@@ -1,4 +1,4 @@
1
- import { CommonProps } from '../../types/emotion';
1
+ import { ColorsKeys, CommonProps } from '../../types/emotion';
2
2
  import { Interpolation, Theme } from '@emotion/react';
3
3
  import { ReactNode, MouseEventHandler } from 'react';
4
4
  import { IconProps } from '../Icon/types';
@@ -90,10 +90,13 @@ export interface ChipProps extends CommonProps {
90
90
  variant?: ChipVariant;
91
91
  /**
92
92
  * Color theme for the chip. Semantic colors read from `theme.palette`,
93
- * so palette overrides in a custom theme apply automatically.
93
+ * so palette overrides in a custom theme apply automatically. Any other
94
+ * theme color key (e.g. `'purple'`) or CSS color (e.g. `'#ff8a00'`) is
95
+ * used as is: border and text in `outlined`, background in `filled`, with
96
+ * the text color picked for contrast.
94
97
  * @default 'default'
95
98
  */
96
- color?: ChipColor;
99
+ color?: ChipColor | ColorsKeys | (string & {});
97
100
  /**
98
101
  * Size of the chip
99
102
  * @default 'medium'
@@ -148,4 +151,8 @@ export interface ChipProps extends CommonProps {
148
151
  * Custom Emotion CSS styles
149
152
  */
150
153
  css?: Interpolation<Theme>;
154
+ /**
155
+ * `id` of the chip element, e.g. for a control's `aria-describedby`
156
+ */
157
+ id?: string;
151
158
  }
@@ -0,0 +1,74 @@
1
+ import { ReactElement, Ref } from 'react';
2
+ import { ContextMenuProps, ContextMenuValue } from './types';
3
+ /**
4
+ * ContextMenu - The list of options shown inside a dropdown, typeahead,
5
+ * filter or action menu.
6
+ *
7
+ * It renders only the list: open state, the trigger and positioning belong to
8
+ * the component hosting it, which places it inline or inside a `Popover`.
9
+ *
10
+ * ### Selection
11
+ * `selectionMode` picks the behaviour and the shape of `value` / `onChange`:
12
+ * - `none` (default): an action menu (`role="menu"`); rows only fire `onAction`
13
+ * - `single`: one value; marked with a check by default
14
+ * - `multiple`: an array of values; marked with checkboxes by default
15
+ * - `includeExclude`: `{ value, type }` entries; every row has + / − controls,
16
+ * `selectOnly` rows a single check-circle. Clicking the active control clears
17
+ * it; Enter cycles none → include → exclude → none.
18
+ *
19
+ * `indicator` overrides how selected rows are marked. Use `startContent` /
20
+ * `endContent` for anything the design does not cover.
21
+ *
22
+ * ### Rows
23
+ * Each option can carry an avatar, a status dot, a right-hand description and
24
+ * free start / end content. Text labels ellipsise and show the full text in a
25
+ * tooltip after a hover. Pass a `ContextMenuGroup` among `items` for a titled
26
+ * section; groups are separated by a divider.
27
+ *
28
+ * ### Keyboard
29
+ * The list is a single tab stop. Arrow keys, Home and End move the highlight
30
+ * (announced through `aria-activedescendant`), Enter or Space choose, and
31
+ * typing jumps to the next option starting with the typed text. Escape is left
32
+ * to the host. A host that keeps focus elsewhere (e.g. in an input) can drive
33
+ * the highlight with `activeValue` / `onActiveValueChange`.
34
+ *
35
+ * @category Components
36
+ *
37
+ * @example
38
+ * ```tsx
39
+ * const [value, setValue] = useState<string | null>(null);
40
+ *
41
+ * <ContextMenu
42
+ * selectionMode="single"
43
+ * value={value}
44
+ * onChange={setValue}
45
+ * items={[
46
+ * {
47
+ * id: 'project',
48
+ * label: 'Project Members',
49
+ * items: [
50
+ * { value: 'ann', label: 'Ann Lee', avatar: annPhotoUrl },
51
+ * { value: 'bob', label: 'Bob Stone', avatar: bobPhotoUrl },
52
+ * ],
53
+ * },
54
+ * ]}
55
+ * />
56
+ * ```
57
+ *
58
+ * @example
59
+ * ```tsx
60
+ * // Include / exclude filters
61
+ * <ContextMenu
62
+ * selectionMode="includeExclude"
63
+ * value={filters}
64
+ * onChange={setFilters}
65
+ * items={[
66
+ * { value: 'remote', label: 'Remote' },
67
+ * { value: 'my-team', label: 'My team', selectOnly: true },
68
+ * ]}
69
+ * />
70
+ * ```
71
+ */
72
+ export declare const ContextMenu: <V extends ContextMenuValue = ContextMenuValue>(props: ContextMenuProps<V> & {
73
+ ref?: Ref<HTMLUListElement>;
74
+ }) => ReactElement;
@@ -0,0 +1,18 @@
1
+ import { ReactNode } from 'react';
2
+ import { ContextMenuIncludeExcludeType, ContextMenuIndicator, ContextMenuItem, ContextMenuItemState, ContextMenuValue } from './types';
3
+ export interface ContextMenuOptionProps<V extends ContextMenuValue> {
4
+ id: string;
5
+ item: ContextMenuItem<V>;
6
+ state: ContextMenuItemState;
7
+ role: 'option' | 'menuitem';
8
+ /** Resolved indicator; `null` in `includeExclude` mode. */
9
+ indicator: ContextMenuIndicator | null;
10
+ renderItem?: (item: ContextMenuItem<V>, state: ContextMenuItemState) => ReactNode;
11
+ /** Row click. Not called for include / exclude rows, whose controls choose. */
12
+ onActivate: () => void;
13
+ /** An include / exclude control was clicked. */
14
+ onIncludeExclude: (type: ContextMenuIncludeExcludeType) => void;
15
+ onHover: () => void;
16
+ }
17
+ /** One option row of a `ContextMenu`. Internal. */
18
+ export declare const ContextMenuOption: <V extends ContextMenuValue>({ id, item, state, role, indicator, renderItem, onActivate, onIncludeExclude, onHover, }: ContextMenuOptionProps<V>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export * from './ContextMenu';
2
+ export type * from './types';
3
+ export { getContextMenuOptionId, getNextActiveValue, nextIncludeExcludeType, } from './utils';
@@ -0,0 +1,17 @@
1
+ import { Theme } from '@emotion/react';
2
+ /** Row height for options and group titles (Figma draws 32 and 34; 34 wins). */
3
+ export declare const ROW_HEIGHT = 34;
4
+ export declare const menu: (theme: Theme) => import("@emotion/react").SerializedStyles;
5
+ export declare const group: (theme: Theme) => import("@emotion/react").SerializedStyles;
6
+ export declare const groupList: import("@emotion/react").SerializedStyles;
7
+ export declare const groupLabel: (theme: Theme) => import("@emotion/react").SerializedStyles;
8
+ export declare const option: (theme: Theme) => import("@emotion/react").SerializedStyles;
9
+ export declare const empty: (theme: Theme) => import("@emotion/react").SerializedStyles;
10
+ export declare const label: import("@emotion/react").SerializedStyles;
11
+ export declare const description: (theme: Theme) => import("@emotion/react").SerializedStyles;
12
+ export declare const status: import("@emotion/react").SerializedStyles;
13
+ export declare const slot: import("@emotion/react").SerializedStyles;
14
+ export declare const checkbox: import("@emotion/react").SerializedStyles;
15
+ export declare const includeExcludeControls: import("@emotion/react").SerializedStyles;
16
+ export declare const includeExcludeControl: import("@emotion/react").SerializedStyles;
17
+ export declare const visuallyHidden: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,153 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ /** Value type a {@link ContextMenu} option can carry. */
3
+ export type ContextMenuValue = string | number;
4
+ /**
5
+ * One selectable row of a {@link ContextMenu}.
6
+ *
7
+ * The row is laid out as `[indicator] [status | avatar] [startContent] label
8
+ * [description] [endContent] [indicator]`; every part but the label is
9
+ * optional.
10
+ */
11
+ export interface ContextMenuItem<V extends ContextMenuValue = ContextMenuValue> {
12
+ /** Identifies the option in `value`, `onChange` and `onAction`. Unique per menu. */
13
+ value: V;
14
+ /** Row content. Strings and numbers ellipsise and get a hover tooltip. */
15
+ label: ReactNode;
16
+ /**
17
+ * Plain-text form of `label`, used for type-to-find and the tooltip when
18
+ * `label` is a node. Defaults to `label` when that is a string or number.
19
+ */
20
+ textValue?: string;
21
+ /** Secondary text at the right of the row, e.g. a date. */
22
+ description?: ReactNode;
23
+ /** Image URL (rendered as a 24px `Avatar`) or any node placed before the label. */
24
+ avatar?: string | ReactNode;
25
+ /** CSS color or gradient of a 12px status dot placed before the label. */
26
+ status?: string;
27
+ /** Extra content placed before the label, after the status dot / avatar. */
28
+ startContent?: ReactNode;
29
+ /** Extra content placed after the label and description. */
30
+ endContent?: ReactNode;
31
+ /** Skipped by keyboard navigation and ignores clicks. */
32
+ disabled?: boolean;
33
+ /**
34
+ * `includeExclude` mode only: the row is selected as a whole (one blue
35
+ * check-circle) instead of being included or excluded — e.g. a saved
36
+ * filter group.
37
+ */
38
+ selectOnly?: boolean;
39
+ /** Class name added to the option's `<li>`. */
40
+ className?: string;
41
+ /** Test id set on the option's `<li>`. */
42
+ 'data-testid'?: string;
43
+ }
44
+ /** A titled group of options. The title is not selectable. */
45
+ export interface ContextMenuGroup<V extends ContextMenuValue = ContextMenuValue> {
46
+ /** Unique per menu. */
47
+ id: string;
48
+ /** Group title. */
49
+ label: ReactNode;
50
+ items: ContextMenuItem<V>[];
51
+ }
52
+ /** A top-level entry of `items`: an option or a group of options. */
53
+ export type ContextMenuEntry<V extends ContextMenuValue = ContextMenuValue> = ContextMenuItem<V> | ContextMenuGroup<V>;
54
+ /**
55
+ * How a selected option is marked. Selected rows also get the selected
56
+ * background, except in `includeExclude` mode.
57
+ * - `check`: a check mark at the end of selected rows
58
+ * - `checkbox`: a checkbox at the start of every row
59
+ * - `checkCircle`: a blue check-circle at the end of every row, filled when selected
60
+ * - `none`: background only
61
+ */
62
+ export type ContextMenuIndicator = 'check' | 'checkbox' | 'checkCircle' | 'none';
63
+ /** State of a row in `includeExclude` mode. `selected` is used by `selectOnly` rows. */
64
+ export type ContextMenuIncludeExcludeType = 'include' | 'exclude' | 'selected';
65
+ /** One chosen row in `includeExclude` mode. */
66
+ export interface ContextMenuIncludeExcludeEntry<V extends ContextMenuValue = ContextMenuValue> {
67
+ value: V;
68
+ type: ContextMenuIncludeExcludeType;
69
+ }
70
+ /** State passed to `renderItem`. */
71
+ export interface ContextMenuItemState {
72
+ /** The option is selected (in `includeExclude` mode: included, excluded or selected). */
73
+ selected: boolean;
74
+ /** The option is highlighted by the pointer or the keyboard. */
75
+ active: boolean;
76
+ disabled: boolean;
77
+ /** `includeExclude` mode only. */
78
+ includeExcludeType?: ContextMenuIncludeExcludeType;
79
+ }
80
+ /** Selection props for an action menu: rows only fire `onAction`. */
81
+ export interface ContextMenuNoSelectionProps {
82
+ selectionMode?: 'none';
83
+ value?: never;
84
+ defaultValue?: never;
85
+ onChange?: never;
86
+ }
87
+ /** Selection props for picking one option. */
88
+ export interface ContextMenuSingleSelectionProps<V extends ContextMenuValue> {
89
+ selectionMode: 'single';
90
+ /** Controlled selected value. `null` for none. */
91
+ value?: V | null;
92
+ /** Initially selected value when uncontrolled. */
93
+ defaultValue?: V | null;
94
+ /** Fires with the newly selected value. Choosing the selected option again keeps it selected. */
95
+ onChange?: (value: V) => void;
96
+ }
97
+ /** Selection props for picking any number of options. */
98
+ export interface ContextMenuMultipleSelectionProps<V extends ContextMenuValue> {
99
+ selectionMode: 'multiple';
100
+ /** Controlled selected values. */
101
+ value?: V[];
102
+ /** Initially selected values when uncontrolled. */
103
+ defaultValue?: V[];
104
+ /** Fires with the new selection and the option that was toggled. */
105
+ onChange?: (value: V[], toggled: V) => void;
106
+ }
107
+ /**
108
+ * Selection props for include / exclude filters. Each row is included,
109
+ * excluded or neither (`selectOnly` rows: selected or not).
110
+ */
111
+ export interface ContextMenuIncludeExcludeSelectionProps<V extends ContextMenuValue> {
112
+ selectionMode: 'includeExclude';
113
+ /** Controlled chosen rows. */
114
+ value?: ContextMenuIncludeExcludeEntry<V>[];
115
+ /** Initially chosen rows when uncontrolled. */
116
+ defaultValue?: ContextMenuIncludeExcludeEntry<V>[];
117
+ /** Fires with the new list and the option that changed. */
118
+ onChange?: (value: ContextMenuIncludeExcludeEntry<V>[], changed: V) => void;
119
+ }
120
+ /** Selection behaviour of a {@link ContextMenu}, keyed by `selectionMode`. */
121
+ export type ContextMenuSelectionProps<V extends ContextMenuValue> = ContextMenuNoSelectionProps | ContextMenuSingleSelectionProps<V> | ContextMenuMultipleSelectionProps<V> | ContextMenuIncludeExcludeSelectionProps<V>;
122
+ /** Props shared by every `selectionMode` of a {@link ContextMenu}. */
123
+ export interface ContextMenuBaseProps<V extends ContextMenuValue> extends Omit<HTMLAttributes<HTMLUListElement>, 'onChange' | 'defaultValue' | 'children'> {
124
+ /** Options and groups, in display order. */
125
+ items: ContextMenuEntry<V>[];
126
+ /**
127
+ * How selected rows are marked. Defaults to `check` for `single`,
128
+ * `checkbox` for `multiple` and `none` otherwise. Ignored by
129
+ * `includeExclude`, which always shows include / exclude controls.
130
+ */
131
+ indicator?: ContextMenuIndicator;
132
+ /**
133
+ * Fires when an option is chosen by click, Enter or Space, in every mode —
134
+ * the hook for closing a popup.
135
+ */
136
+ onAction?: (value: V) => void;
137
+ /** Controlled highlighted option (pointer or keyboard). */
138
+ activeValue?: V | null;
139
+ /** Initially highlighted option when uncontrolled. */
140
+ defaultActiveValue?: V | null;
141
+ /** Fires when the highlighted option changes. */
142
+ onActiveValueChange?: (value: V | null) => void;
143
+ /** Replaces the row content between the start and end indicators. */
144
+ renderItem?: (item: ContextMenuItem<V>, state: ContextMenuItemState) => ReactNode;
145
+ /** Replaces the content of group titles. */
146
+ renderGroupLabel?: (group: ContextMenuGroup<V>) => ReactNode;
147
+ /** Shown when `items` has no options. @default 'No items' */
148
+ emptyState?: ReactNode;
149
+ /** Scrolls the list beyond this height (px or any CSS length). */
150
+ maxHeight?: number | string;
151
+ }
152
+ /** Props of {@link ContextMenu}. */
153
+ export type ContextMenuProps<V extends ContextMenuValue = ContextMenuValue> = ContextMenuBaseProps<V> & ContextMenuSelectionProps<V>;
@@ -0,0 +1,79 @@
1
+ import { ContextMenuEntry, ContextMenuGroup, ContextMenuIncludeExcludeType, ContextMenuItem, ContextMenuValue } from './types';
2
+ /**
3
+ * Long enough that the label tooltip does not fire while the pointer is
4
+ * travelling down the list, short enough to feel like a deliberate hover
5
+ * (#669).
6
+ */
7
+ export declare const LABEL_TOOLTIP_DELAY = 1000;
8
+ /** Keeps a long label from producing a tooltip as wide as the list itself. */
9
+ export declare const LABEL_TOOLTIP_MAX_WIDTH = 320;
10
+ /**
11
+ * Only a primitive is safe to repeat inside a tooltip. Rendering the same
12
+ * element twice mounts two independent copies of it, so labels made of
13
+ * components get no tooltip.
14
+ */
15
+ export declare const asText: (value: unknown) => string | number | undefined;
16
+ export declare const isGroup: <V extends ContextMenuValue>(entry: ContextMenuEntry<V>) => entry is ContextMenuGroup<V>;
17
+ /** Every option in display order, groups unwrapped. */
18
+ export declare const flattenItems: <V extends ContextMenuValue>(entries: ContextMenuEntry<V>[]) => ContextMenuItem<V>[];
19
+ /** Text used for type-to-find and the label tooltip. */
20
+ export declare const getTextValue: <V extends ContextMenuValue>(item: ContextMenuItem<V>) => string | undefined;
21
+ /**
22
+ * Where Enter moves an `includeExclude` row: none → include → exclude → none,
23
+ * or none ⇄ selected for `selectOnly` rows. For driving that cycle from an
24
+ * input that keeps focus while it highlights rows.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * nextIncludeExcludeType(undefined, false); // 'include'
29
+ * nextIncludeExcludeType('include', false); // 'exclude'
30
+ * nextIncludeExcludeType('exclude', false); // undefined
31
+ * nextIncludeExcludeType(undefined, true); // 'selected'
32
+ * ```
33
+ */
34
+ export declare const nextIncludeExcludeType: (current: ContextMenuIncludeExcludeType | undefined, selectOnly: boolean) => ContextMenuIncludeExcludeType | undefined;
35
+ /**
36
+ * The enabled option `step` places away from `from`, wrapping around the
37
+ * ends. With no `from`, ArrowDown lands on the first option and ArrowUp on
38
+ * the last.
39
+ */
40
+ export declare const getSteppedIndex: (enabled: boolean[], from: number, step: 1 | -1) => number;
41
+ /**
42
+ * Makes any string safe inside an id and an IDREF list: characters other than
43
+ * letters, digits and `-` become `_<hex>_`, so distinct inputs stay distinct.
44
+ */
45
+ export declare const escapeId: (value: string) => string;
46
+ /**
47
+ * DOM id of an option, for `aria-activedescendant` on an element outside the
48
+ * list (e.g. a combobox input). `menuId` is the `id` given to the ContextMenu.
49
+ * Characters not allowed in an id are escaped, so any value is safe.
50
+ *
51
+ * @example
52
+ * ```tsx
53
+ * <input
54
+ * aria-controls="people-menu"
55
+ * aria-activedescendant={
56
+ * active == null ? undefined : getContextMenuOptionId('people-menu', active)
57
+ * }
58
+ * />
59
+ * <ContextMenu id="people-menu" items={items} activeValue={active} />
60
+ * ```
61
+ */
62
+ export declare const getContextMenuOptionId: (menuId: string, value: ContextMenuValue) => string;
63
+ /**
64
+ * Where a navigation key moves the highlight: ArrowDown / ArrowUp step over
65
+ * disabled options and wrap, Home / End jump to the ends. Returns `undefined`
66
+ * for any other key, so a host driving the list from its own input can tell
67
+ * whether the key was a navigation key.
68
+ *
69
+ * @example
70
+ * ```tsx
71
+ * const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {
72
+ * const next = getNextActiveValue(items, active, event.key);
73
+ * if (next === undefined) return; // not a navigation key
74
+ * event.preventDefault();
75
+ * setActive(next);
76
+ * };
77
+ * ```
78
+ */
79
+ export declare const getNextActiveValue: <V extends ContextMenuValue>(entries: ContextMenuEntry<V>[], activeValue: V | null | undefined, key: string) => V | null | undefined;
@@ -94,5 +94,5 @@ import { DropdownProps } from './types';
94
94
  *
95
95
  * @see https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
96
96
  */
97
- declare const Dropdown: <T extends DropdownOptionProps>({ selectedItem, disabled, isDisabled, isOpen: isInitOpen, children, onChange: handleChange, className, placeholder, maxHeight, avatarBorder, label, helperText, errors, success, icon, width, dropdownProps: componentProps, }: DropdownProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
97
+ declare const Dropdown: <T extends DropdownOptionProps>({ selectedItem, disabled, isDisabled, isOpen: isInitOpen, children, onChange: handleChange, className, placeholder, maxHeight, avatarBorder, label, labelBadge, helperText, errors, success, icon, width, dropdownProps: componentProps, }: DropdownProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
98
98
  export default Dropdown;