@ensi-platform/admin-ui 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/dist/{Component-B2_pbcdj.js → Component-BnSNDZFt.js} +3 -3
  2. package/dist/{Component-B2_pbcdj.js.map → Component-BnSNDZFt.js.map} +1 -1
  3. package/dist/{Component-BiiaP51W.js → Component-C6mp0LOp.js} +2 -2
  4. package/dist/{Component-BiiaP51W.js.map → Component-C6mp0LOp.js.map} +1 -1
  5. package/dist/{Component-7vxv_s32.js → Component-CDgOJr89.js} +2 -2
  6. package/dist/{Component-7vxv_s32.js.map → Component-CDgOJr89.js.map} +1 -1
  7. package/dist/{Component-CRVPfwqm.js → Component-CIxKpL6s.js} +3 -3
  8. package/dist/{Component-CRVPfwqm.js.map → Component-CIxKpL6s.js.map} +1 -1
  9. package/dist/{Component-KNlwEG00.js → Component-D25FKJAT.js} +2 -2
  10. package/dist/{Component-KNlwEG00.js.map → Component-D25FKJAT.js.map} +1 -1
  11. package/dist/{Component-DFwWbzFS.js → Component-D310jlAj.js} +2 -2
  12. package/dist/{Component-DFwWbzFS.js.map → Component-D310jlAj.js.map} +1 -1
  13. package/dist/{Component-CwYbdJhI.js → Component-XnDMb714.js} +3 -3
  14. package/dist/{Component-CwYbdJhI.js.map → Component-XnDMb714.js.map} +1 -1
  15. package/dist/{Component-Dkvzqo0L.js → Component-ZIAMtMpP.js} +2 -2
  16. package/dist/{Component-Dkvzqo0L.js.map → Component-ZIAMtMpP.js.map} +1 -1
  17. package/dist/{Component-DhhrZEMr.js → Component-qJGssCB4.js} +3 -3
  18. package/dist/{Component-DhhrZEMr.js.map → Component-qJGssCB4.js.map} +1 -1
  19. package/dist/Copy-DBU7bgFo.js +28 -0
  20. package/dist/Copy-DBU7bgFo.js.map +1 -0
  21. package/dist/action-popup/index.js +2 -2
  22. package/dist/active-filters/index.js +2 -2
  23. package/dist/arrangement-settings/index.js +3 -3
  24. package/dist/assets/index.css +1 -1
  25. package/dist/assets/index10.css +1 -1
  26. package/dist/assets/index11.css +1 -1
  27. package/dist/assets/index12.css +1 -1
  28. package/dist/assets/index13.css +1 -1
  29. package/dist/assets/index14.css +1 -1
  30. package/dist/assets/index15.css +1 -1
  31. package/dist/assets/index16.css +1 -1
  32. package/dist/assets/index17.css +1 -1
  33. package/dist/assets/index18.css +1 -1
  34. package/dist/assets/index19.css +1 -1
  35. package/dist/assets/index2.css +1 -1
  36. package/dist/assets/index20.css +1 -1
  37. package/dist/assets/index21.css +1 -1
  38. package/dist/assets/index22.css +1 -1
  39. package/dist/assets/index23.css +1 -1
  40. package/dist/assets/index24.css +1 -1
  41. package/dist/assets/index25.css +1 -1
  42. package/dist/assets/index26.css +1 -1
  43. package/dist/assets/index27.css +1 -1
  44. package/dist/assets/index28.css +1 -0
  45. package/dist/assets/index29.css +1 -0
  46. package/dist/assets/index3.css +1 -1
  47. package/dist/assets/index30.css +1 -0
  48. package/dist/assets/index31.css +1 -0
  49. package/dist/assets/index4.css +1 -1
  50. package/dist/assets/index5.css +1 -1
  51. package/dist/assets/index6.css +1 -1
  52. package/dist/assets/index7.css +1 -1
  53. package/dist/assets/index8.css +1 -1
  54. package/dist/assets/index9.css +1 -1
  55. package/dist/autocomplete/index.js +1 -1
  56. package/dist/autocomplete-async/index.js +1 -1
  57. package/dist/avatar/index.js +1 -1
  58. package/dist/badge/index.js +1 -1
  59. package/dist/bottom-sheet/index.js +2 -2
  60. package/dist/cascade-menu/index.js +3 -3
  61. package/dist/checkbox-group/index.js +1 -1
  62. package/dist/combobox/index.js +4 -4
  63. package/dist/copy-button/Component.d.ts +5 -0
  64. package/dist/copy-button/Component.d.ts.map +1 -0
  65. package/dist/copy-button/index.d.ts +3 -0
  66. package/dist/copy-button/index.d.ts.map +1 -0
  67. package/dist/copy-button/index.js +97 -0
  68. package/dist/copy-button/index.js.map +1 -0
  69. package/dist/copy-button/types.d.ts +14 -0
  70. package/dist/copy-button/types.d.ts.map +1 -0
  71. package/dist/data-table/index.js +3 -3
  72. package/dist/date-picker/index.js +3 -3
  73. package/dist/date-range-picker/index.js +3 -3
  74. package/dist/drawer/index.js +1 -1
  75. package/dist/filters/index.js +1 -1
  76. package/dist/flex-layout/Component.d.ts +9 -0
  77. package/dist/flex-layout/Component.d.ts.map +1 -0
  78. package/dist/flex-layout/components/Item/index.d.ts +5 -0
  79. package/dist/flex-layout/components/Item/index.d.ts.map +1 -0
  80. package/dist/flex-layout/index.d.ts +3 -0
  81. package/dist/flex-layout/index.d.ts.map +1 -0
  82. package/dist/flex-layout/index.js +93 -0
  83. package/dist/flex-layout/index.js.map +1 -0
  84. package/dist/flex-layout/types.d.ts +41 -0
  85. package/dist/flex-layout/types.d.ts.map +1 -0
  86. package/dist/grid/Component.d.ts +9 -0
  87. package/dist/grid/Component.d.ts.map +1 -0
  88. package/dist/grid/components/Item/index.d.ts +5 -0
  89. package/dist/grid/components/Item/index.d.ts.map +1 -0
  90. package/dist/grid/index.d.ts +3 -0
  91. package/dist/grid/index.d.ts.map +1 -0
  92. package/dist/grid/index.js +85 -0
  93. package/dist/grid/index.js.map +1 -0
  94. package/dist/grid/types.d.ts +44 -0
  95. package/dist/grid/types.d.ts.map +1 -0
  96. package/dist/grid/utils.d.ts +6 -0
  97. package/dist/grid/utils.d.ts.map +1 -0
  98. package/dist/{hooks-BAkrGC45.js → hooks-BlX5Y4Zt.js} +9 -6
  99. package/dist/hooks-BlX5Y4Zt.js.map +1 -0
  100. package/dist/icons/index.js +80 -100
  101. package/dist/icons/index.js.map +1 -1
  102. package/dist/{index-B-dHfeT9.js → index-BXlN61PG.js} +2 -2
  103. package/dist/{index-B-dHfeT9.js.map → index-BXlN61PG.js.map} +1 -1
  104. package/dist/{index-bdpk2nvt.js → index-CDCqZ3um.js} +3 -3
  105. package/dist/{index-bdpk2nvt.js.map → index-CDCqZ3um.js.map} +1 -1
  106. package/dist/{index-CVEaKh8K.js → index-tPhlowOw.js} +4 -4
  107. package/dist/{index-CVEaKh8K.js.map → index-tPhlowOw.js.map} +1 -1
  108. package/dist/input/index.js +1 -1
  109. package/dist/loader/index.js +2 -2
  110. package/dist/menu-list/index.js +1 -1
  111. package/dist/{metrics-C8FBvbwl.js → metrics-B5YsELiI.js} +2 -2
  112. package/dist/{metrics-C8FBvbwl.js.map → metrics-B5YsELiI.js.map} +1 -1
  113. package/dist/modal/index.js +1 -1
  114. package/dist/multi-autocomplete/index.js +1 -1
  115. package/dist/multi-autocomplete-async/index.js +1 -1
  116. package/dist/multi-select/index.js +3 -3
  117. package/dist/number-input/index.js +1 -1
  118. package/dist/number-range/index.js +2 -2
  119. package/dist/provider/context.d.ts.map +1 -1
  120. package/dist/provider/index.js +3 -3
  121. package/dist/provider/types.d.ts +6 -0
  122. package/dist/provider/types.d.ts.map +1 -1
  123. package/dist/select/index.js +1 -1
  124. package/dist/slider/index.js +1 -1
  125. package/dist/suggest-checklist/index.js +4 -4
  126. package/dist/switch/index.js +1 -1
  127. package/dist/table/index.js +1 -1
  128. package/dist/tabs/index.js +1 -1
  129. package/dist/tag/index.js +1 -1
  130. package/dist/textarea/index.js +2 -2
  131. package/dist/time-field/index.js +2 -2
  132. package/dist/toast/index.js +2 -2
  133. package/dist/typography/index.js +1 -1
  134. package/dist/{utils-DUOIRqE-.js → utils-Dj_u-w0s.js} +3 -3
  135. package/dist/{utils-DUOIRqE-.js.map → utils-Dj_u-w0s.js.map} +1 -1
  136. package/dist/vertical-tabs/Component.d.ts +18 -0
  137. package/dist/vertical-tabs/Component.d.ts.map +1 -0
  138. package/dist/vertical-tabs/components/Indicator/index.d.ts +6 -0
  139. package/dist/vertical-tabs/components/Indicator/index.d.ts.map +1 -0
  140. package/dist/vertical-tabs/components/Item/index.d.ts +5 -0
  141. package/dist/vertical-tabs/components/Item/index.d.ts.map +1 -0
  142. package/dist/vertical-tabs/components/Item/theme.d.ts +5 -0
  143. package/dist/vertical-tabs/components/Item/theme.d.ts.map +1 -0
  144. package/dist/vertical-tabs/components/List/index.d.ts +5 -0
  145. package/dist/vertical-tabs/components/List/index.d.ts.map +1 -0
  146. package/dist/vertical-tabs/components/List/theme.d.ts +5 -0
  147. package/dist/vertical-tabs/components/List/theme.d.ts.map +1 -0
  148. package/dist/vertical-tabs/components/Panel/index.d.ts +5 -0
  149. package/dist/vertical-tabs/components/Panel/index.d.ts.map +1 -0
  150. package/dist/vertical-tabs/components/Panels/index.d.ts +5 -0
  151. package/dist/vertical-tabs/components/Panels/index.d.ts.map +1 -0
  152. package/dist/vertical-tabs/context.d.ts +4 -0
  153. package/dist/vertical-tabs/context.d.ts.map +1 -0
  154. package/dist/vertical-tabs/index.d.ts +4 -0
  155. package/dist/vertical-tabs/index.d.ts.map +1 -0
  156. package/dist/vertical-tabs/index.js +193 -0
  157. package/dist/vertical-tabs/index.js.map +1 -0
  158. package/dist/vertical-tabs/theme.d.ts +5 -0
  159. package/dist/vertical-tabs/theme.d.ts.map +1 -0
  160. package/dist/vertical-tabs/types.d.ts +84 -0
  161. package/dist/vertical-tabs/types.d.ts.map +1 -0
  162. package/docs/design-language.md +5 -4
  163. package/docs/skills/SKILL.md +5 -1
  164. package/package.json +17 -1
  165. package/src/copy-button/docs/Description.md +23 -0
  166. package/src/copy-button/docs/Example.md +5 -0
  167. package/src/copy-button/docs/cssVariables.ts +12 -0
  168. package/src/copy-button/types.ts +16 -0
  169. package/src/flex-layout/docs/Description.md +27 -0
  170. package/src/flex-layout/docs/Example.md +11 -0
  171. package/src/flex-layout/docs/cssVariables.ts +13 -0
  172. package/src/flex-layout/types.ts +49 -0
  173. package/src/grid/docs/Description.md +26 -0
  174. package/src/grid/docs/Example.md +16 -0
  175. package/src/grid/docs/cssVariables.ts +13 -0
  176. package/src/grid/types.ts +53 -0
  177. package/src/provider/types.ts +6 -0
  178. package/src/vertical-tabs/docs/Description.md +32 -0
  179. package/src/vertical-tabs/docs/Example.md +19 -0
  180. package/src/vertical-tabs/docs/cssVariables.ts +25 -0
  181. package/src/vertical-tabs/types.ts +110 -0
  182. package/dist/hooks-BAkrGC45.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index-CVEaKh8K.js","sources":["../src/combobox/hooks/useSelectedOptionsCache.ts","../src/combobox/hooks/useTagOverflow.ts","../src/combobox/components/MultiTrigger/theme.ts","../src/combobox/components/MultiTrigger/SelectedTags.tsx","../src/combobox/components/MultiTrigger/index.tsx"],"sourcesContent":["import { useMemo, useRef } from 'react';\n\nimport { type Key } from 'react-aria-components';\n\nimport { type IComboboxOption, type TComboboxValue } from '../types';\nimport { resolveSelectedOptions } from '../utils';\n\n/**\n * Merges incoming `options` into a persistent value→option map so selected\n * labels survive client filter / async suggest list swaps.\n */\nexport const useSelectedOptionsCache = (\n keys: readonly Key[],\n options: readonly IComboboxOption[]\n): IComboboxOption[] => {\n const cacheRef = useRef(new Map<TComboboxValue, IComboboxOption>());\n\n return useMemo(() => {\n const cache = cacheRef.current;\n\n options.forEach(option => {\n cache.set(option.value, option);\n });\n\n return resolveSelectedOptions(keys, cache);\n }, [keys, options]);\n};\n","import { type RefObject, useCallback, useLayoutEffect, useRef, useState } from 'react';\n\nexport interface ITagOverflowOptions {\n /** Element whose width is reserved at the end of the row (e.g. input content sizer). */\n trailingReserveRef?: RefObject<HTMLElement | null>;\n /** Bumps recalculation when trailing content changes (e.g. inputValue). */\n trailingContentKey?: string;\n}\n\nexport interface ITagOverflowResult {\n /** How many leading tags fit when collapsed. */\n visibleCount: number;\n /** Measure container for tags + overflow chip + trailing reserve. */\n containerRef: RefObject<HTMLDivElement | null>;\n /** Hidden measure row (offscreen). */\n measureRef: RefObject<HTMLDivElement | null>;\n /** Overflow chip measure node. */\n overflowMeasureRef: RefObject<HTMLButtonElement | null>;\n}\n\nconst readTrailingWidth = (trailingEl: HTMLElement | null | undefined): number => {\n if (!trailingEl) {\n return 0;\n }\n\n const minWidthPx = Number.parseFloat(getComputedStyle(trailingEl).minWidth);\n const measured = trailingEl.offsetWidth;\n\n if (Number.isFinite(minWidthPx) && minWidthPx > 0) {\n return Math.max(minWidthPx, measured);\n }\n\n return measured;\n};\n\n/**\n * Computes how many tags fit in one row, reserving space for a +N chip when needed\n * and optionally for a trailing element (filter input content width).\n * `itemCount` is the total number of selected tags.\n */\nexport const useTagOverflow = (\n itemCount: number,\n expanded: boolean,\n options?: ITagOverflowOptions\n): ITagOverflowResult => {\n const containerRef = useRef<HTMLDivElement | null>(null);\n const measureRef = useRef<HTMLDivElement | null>(null);\n const overflowMeasureRef = useRef<HTMLButtonElement | null>(null);\n const trailingReserveRef = options?.trailingReserveRef;\n const trailingContentKey = options?.trailingContentKey;\n const [visibleCount, setVisibleCount] = useState(itemCount);\n\n const recalculate = useCallback(() => {\n if (expanded || itemCount === 0) {\n setVisibleCount(itemCount);\n\n return;\n }\n\n const container = containerRef.current;\n const measure = measureRef.current;\n\n if (!container || !measure) {\n setVisibleCount(itemCount);\n\n return;\n }\n\n const children = Array.from(measure.children) as HTMLElement[];\n const gap = Number.parseFloat(getComputedStyle(measure).columnGap || getComputedStyle(measure).gap || '0') || 0;\n const overflowWidth = overflowMeasureRef.current?.offsetWidth ?? 0;\n const trailingWidth = readTrailingWidth(trailingReserveRef?.current);\n const available = container.clientWidth - (trailingWidth > 0 ? trailingWidth + gap : 0);\n\n let used = 0;\n let fit = 0;\n\n for (let index = 0; index < children.length; index += 1) {\n const width = children[index].offsetWidth;\n const next = used + (fit > 0 ? gap : 0) + width;\n const remaining = itemCount - (index + 1);\n const needOverflow = remaining > 0;\n const withOverflow = next + (needOverflow ? gap + overflowWidth : 0);\n\n if (withOverflow > available) {\n break;\n }\n\n used = next;\n fit = index + 1;\n }\n\n if (fit > 0) {\n setVisibleCount(fit);\n\n return;\n }\n\n setVisibleCount(1);\n }, [expanded, itemCount, trailingReserveRef]);\n\n useLayoutEffect(() => {\n recalculate();\n\n const container = containerRef.current;\n\n if (!container || typeof ResizeObserver === 'undefined') {\n return;\n }\n\n const observer = new ResizeObserver(() => {\n recalculate();\n });\n\n observer.observe(container);\n\n const trailing = trailingReserveRef?.current;\n\n if (trailing) {\n observer.observe(trailing);\n }\n\n return () => {\n observer.disconnect();\n };\n }, [recalculate, trailingContentKey, trailingReserveRef]);\n\n return { visibleCount, containerRef, measureRef, overflowMeasureRef };\n};\n","import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport { type TComboboxSize } from '../../types';\n\nimport styles from './styles.module.css';\n\nexport const comboboxMultiTriggerVariants = cva(styles.trigger, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyS),\n lg: cn(styles.lg, typographyStyles.bodyM),\n },\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n },\n});\n\nexport const comboboxTagSizeClass = (size: TComboboxSize) => (size === 'sm' ? styles.tagSm : styles.tagMd);\n\nexport const comboboxOverflowSizeClass = (size: TComboboxSize) =>\n size === 'sm' ? styles.overflowSm : styles.overflowMd;\n","import { type ReactNode, type RefObject, useContext } from 'react';\n\nimport cn from 'classnames';\nimport { Button as RacButton, type Key, Tag as RacTag, TagGroup, TagList } from 'react-aria-components';\n\nimport { Clear } from '@/icons';\nimport { AuiContext, defaultLabels } from '@/provider/context';\n\nimport { useTagOverflow } from '../../hooks/useTagOverflow';\nimport { type IComboboxOption, type TComboboxSize } from '../../types';\n\nimport { comboboxOverflowSizeClass, comboboxTagSizeClass } from './theme';\n\nimport styles from './styles.module.css';\n\n/** RAC Tag remove slot. */\nconst ButtonRemove = () => (\n <RacButton slot=\"remove\" className={styles.tagRemove}>\n <Clear className={styles.tagRemoveIcon} />\n </RacButton>\n);\n\nexport interface ISelectedTagsProps {\n items: IComboboxOption[];\n size: TComboboxSize;\n expanded: boolean;\n onExpandedChange: (expanded: boolean) => void;\n onRemove: (keys: Set<Key>) => void;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n /** Trailing content (e.g. combobox filter input + sizer). */\n trailingSlot?: ReactNode;\n /** Reserve width for trailing content when measuring overflow. */\n trailingReserveRef?: RefObject<HTMLElement | null>;\n /** Bumps overflow recalc when trailing content changes. */\n trailingContentKey?: string;\n}\n\nexport const SelectedTags = ({\n items,\n size,\n expanded,\n onExpandedChange,\n onRemove,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n trailingSlot,\n trailingReserveRef,\n trailingContentKey,\n}: ISelectedTagsProps) => {\n const moreSelected = useContext(AuiContext)?.labels.moreSelected ?? defaultLabels.moreSelected;\n const { visibleCount, containerRef, measureRef, overflowMeasureRef } = useTagOverflow(items.length, expanded, {\n trailingReserveRef,\n trailingContentKey,\n });\n const hiddenCount = Math.max(0, items.length - visibleCount);\n const visibleItems = expanded || hiddenCount === 0 ? items : items.slice(0, visibleCount);\n\n return (\n <div ref={containerRef} className={styles.field} data-expanded={expanded || undefined}>\n {items.length > 0 ? (\n <TagGroup\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n className={styles.contents}\n onRemove={onRemove}\n >\n <TagList items={visibleItems} className={styles.contents}>\n {(item: IComboboxOption) => (\n <RacTag\n id={item.value}\n textValue={item.label}\n className={cn(styles.tag, comboboxTagSizeClass(size))}\n >\n <span className={styles.tagLabel}>{item.label}</span>\n <ButtonRemove />\n </RacTag>\n )}\n </TagList>\n </TagGroup>\n ) : null}\n {hiddenCount > 0 && !expanded ? (\n <button\n type=\"button\"\n className={cn(styles.overflowChip, comboboxOverflowSizeClass(size))}\n aria-label={`${hiddenCount} ${moreSelected}`}\n onClick={event => {\n event.preventDefault();\n event.stopPropagation();\n onExpandedChange(true);\n }}\n >\n +{hiddenCount}\n </button>\n ) : null}\n {trailingSlot}\n <div ref={measureRef} className={styles.measureRow} aria-hidden>\n {items.map(item => (\n <span key={String(item.value)} className={cn(styles.tag, comboboxTagSizeClass(size))}>\n <span className={styles.tagLabel}>{item.label}</span>\n <span className={styles.tagRemove}>\n <Clear className={styles.tagRemoveIcon} />\n </span>\n </span>\n ))}\n </div>\n <button\n ref={overflowMeasureRef}\n type=\"button\"\n tabIndex={-1}\n aria-hidden\n className={cn(styles.overflowChip, comboboxOverflowSizeClass(size), styles.measureRow)}\n >\n +99\n </button>\n </div>\n );\n};\n\nSelectedTags.displayName = 'SelectedTags';\n","import {\n type FocusEvent,\n type MouseEvent,\n type RefObject,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport {\n Button as RacButton,\n ComboBoxStateContext,\n Group,\n Input,\n type Key,\n SelectStateContext,\n} from 'react-aria-components';\n\nimport { FieldMultiComboBoxClearButton, FieldMultiSelectClearButton } from '@/field-clear-button';\nimport { ChevronDown } from '@/icons';\n\nimport { useSelectedOptionsCache } from '../../hooks/useSelectedOptionsCache';\nimport { type IComboboxOption, type TComboboxSize, type TComboboxVariant } from '../../types';\nimport { isInteractiveTarget, toKeyList } from '../../utils';\n\nimport { SelectedTags } from './SelectedTags';\nimport { comboboxMultiTriggerVariants } from './theme';\n\nimport styles from './styles.module.css';\n\n/** Clears filter input when a value is added to the selection. */\nconst useClearInputOnSelect = (selectionLength: number, enabled: boolean) => {\n const state = useContext(ComboBoxStateContext);\n const prevLengthRef = useRef(selectionLength);\n\n useEffect(() => {\n if (!enabled) {\n return;\n }\n\n if (selectionLength > prevLengthRef.current) {\n state?.setInputValue('');\n }\n\n prevLengthRef.current = selectionLength;\n }, [enabled, selectionLength, state]);\n};\n\nexport interface IComboboxMultiTriggerProps {\n triggerRef: RefObject<HTMLDivElement | null>;\n options: IComboboxOption[];\n size: TComboboxSize;\n variant: TComboboxVariant;\n clear: boolean;\n placeholder: string;\n isOpen: boolean;\n isDisabled: boolean;\n isInvalid: boolean;\n mode: 'select' | 'combobox';\n isFocusVisible?: boolean;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n}\n\nexport const ComboboxMultiTrigger = ({\n triggerRef,\n options,\n size,\n variant,\n clear,\n placeholder,\n isOpen,\n isDisabled,\n isInvalid,\n mode,\n isFocusVisible = false,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n}: IComboboxMultiTriggerProps) => {\n const selectState = useContext(SelectStateContext);\n const comboState = useContext(ComboBoxStateContext);\n const wrapRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const inputSizerRef = useRef<HTMLSpanElement>(null);\n const [expanded, setExpanded] = useState(false);\n\n const selectedKeys = useMemo(() => {\n if (mode === 'combobox') {\n return toKeyList(comboState?.value);\n }\n\n return toKeyList(selectState?.value);\n }, [mode, comboState?.value, selectState?.value]);\n\n const items = useSelectedOptionsCache(selectedKeys, options);\n const inputValue = comboState?.inputValue ?? '';\n\n useClearInputOnSelect(items.length, mode === 'combobox');\n\n useEffect(() => {\n if (!isOpen) {\n setExpanded(false);\n }\n }, [isOpen]);\n\n const handleWrapBlur = (event: FocusEvent<HTMLDivElement>) => {\n if (mode !== 'combobox') {\n return;\n }\n\n const next = event.relatedTarget;\n\n if (next instanceof Node && wrapRef.current?.contains(next)) {\n return;\n }\n\n setExpanded(false);\n };\n\n const openFromField = (event: MouseEvent) => {\n if (isDisabled || isInteractiveTarget(event.target)) {\n return;\n }\n\n if (mode === 'select') {\n selectState?.open();\n\n return;\n }\n\n comboState?.open();\n inputRef.current?.focus();\n };\n\n const handleRemove = (keys: Set<Key>) => {\n if (mode === 'combobox') {\n const current = toKeyList(comboState?.value);\n\n comboState?.setValue(current.filter(key => !keys.has(key)));\n\n return;\n }\n\n const current = toKeyList(selectState?.value);\n\n selectState?.setValue(current.filter(key => !keys.has(key)));\n };\n\n const ClearButton = mode === 'select' ? FieldMultiSelectClearButton : FieldMultiComboBoxClearButton;\n const showSelectPlaceholder = mode === 'select' && items.length === 0;\n\n const trailingSlot =\n mode === 'combobox' ? (\n <>\n <Input ref={inputRef} className={styles.input} placeholder={placeholder} disabled={isDisabled} />\n <span ref={inputSizerRef} className={styles.inputSizer} aria-hidden>\n {inputValue}\n </span>\n </>\n ) : undefined;\n\n return (\n <div\n ref={wrapRef}\n className={styles.triggerWrap}\n data-focus-visible={mode === 'select' && isFocusVisible ? true : undefined}\n data-open={isOpen || undefined}\n data-disabled={isDisabled || undefined}\n data-invalid={isInvalid || undefined}\n onBlur={handleWrapBlur}\n >\n <Group ref={triggerRef} className={comboboxMultiTriggerVariants({ size, variant })} onClick={openFromField}>\n {showSelectPlaceholder ? (\n <span className={styles.placeholder}>{placeholder}</span>\n ) : (\n <SelectedTags\n items={items}\n size={size}\n expanded={expanded}\n onExpandedChange={setExpanded}\n onRemove={handleRemove}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n trailingSlot={trailingSlot}\n trailingReserveRef={mode === 'combobox' ? inputSizerRef : undefined}\n trailingContentKey={mode === 'combobox' ? inputValue : undefined}\n />\n )}\n <span className={styles.actions}>\n {clear ? <ClearButton isDisabled={isDisabled} size={size} variant={variant} /> : null}\n <RacButton className={styles.chevronButton} isDisabled={isDisabled}>\n <ChevronDown className={styles.chevron} />\n </RacButton>\n </span>\n </Group>\n </div>\n );\n};\n\nComboboxMultiTrigger.displayName = 'ComboboxMultiTrigger';\n"],"names":["useSelectedOptionsCache","keys","options","cacheRef","useRef","useMemo","cache","option","resolveSelectedOptions","readTrailingWidth","trailingEl","minWidthPx","measured","useTagOverflow","itemCount","expanded","containerRef","measureRef","overflowMeasureRef","trailingReserveRef","trailingContentKey","visibleCount","setVisibleCount","useState","recalculate","useCallback","container","measure","children","gap","overflowWidth","trailingWidth","available","used","fit","index","width","next","needOverflow","useLayoutEffect","observer","trailing","comboboxMultiTriggerVariants","cva","styles","cn","typographyStyles","comboboxTagSizeClass","size","comboboxOverflowSizeClass","ButtonRemove","jsx","RacButton","Clear","SelectedTags","items","onExpandedChange","onRemove","ariaLabel","ariaLabelledby","trailingSlot","moreSelected","useContext","AuiContext","defaultLabels","hiddenCount","visibleItems","jsxs","TagGroup","TagList","item","RacTag","event","useClearInputOnSelect","selectionLength","enabled","state","ComboBoxStateContext","prevLengthRef","useEffect","ComboboxMultiTrigger","triggerRef","variant","clear","placeholder","isOpen","isDisabled","isInvalid","mode","isFocusVisible","selectState","SelectStateContext","comboState","wrapRef","inputRef","inputSizerRef","setExpanded","selectedKeys","toKeyList","inputValue","handleWrapBlur","openFromField","isInteractiveTarget","handleRemove","current","key","ClearButton","FieldMultiSelectClearButton","FieldMultiComboBoxClearButton","showSelectPlaceholder","Fragment","Input","Group","ChevronDown"],"mappings":";;;;;;;;;;AAWO,MAAMA,KAA0B,CACnCC,GACAC,MACoB;AACpB,QAAMC,IAAWC,EAAO,oBAAI,KAAsC;AAElE,SAAOC,EAAQ,MAAM;AACjB,UAAMC,IAAQH,EAAS;AAEvB,WAAAD,EAAQ,QAAQ,CAAAK,MAAU;AACtB,MAAAD,EAAM,IAAIC,EAAO,OAAOA,CAAM;AAAA,IAClC,CAAC,GAEMC,GAAuBP,GAAMK,CAAK;AAAA,EAC7C,GAAG,CAACL,GAAMC,CAAO,CAAC;AACtB,GCNMO,KAAoB,CAACC,MAAuD;AAC9E,MAAI,CAACA;AACD,WAAO;AAGX,QAAMC,IAAa,OAAO,WAAW,iBAAiBD,CAAU,EAAE,QAAQ,GACpEE,IAAWF,EAAW;AAE5B,SAAI,OAAO,SAASC,CAAU,KAAKA,IAAa,IACrC,KAAK,IAAIA,GAAYC,CAAQ,IAGjCA;AACX,GAOaC,KAAiB,CAC1BC,GACAC,GACAb,MACqB;AACrB,QAAMc,IAAeZ,EAA8B,IAAI,GACjDa,IAAab,EAA8B,IAAI,GAC/Cc,IAAqBd,EAAiC,IAAI,GAC1De,IAAqBjB,GAAS,oBAC9BkB,IAAqBlB,GAAS,oBAC9B,CAACmB,GAAcC,CAAe,IAAIC,EAAST,CAAS,GAEpDU,IAAcC,EAAY,MAAM;AAClC,QAAIV,KAAYD,MAAc,GAAG;AAC7B,MAAAQ,EAAgBR,CAAS;AAEzB;AAAA,IACJ;AAEA,UAAMY,IAAYV,EAAa,SACzBW,IAAUV,EAAW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hC,EAAC,QAAA,EAAK,WAAWvB,EAAO,SACnB,UAAA;AAAA,UAAAuC,IAAQ,gBAAAhC,EAACuD,GAAA,EAAY,YAAApB,GAAwB,MAAAtC,GAAY,SAAAkC,GAAkB,IAAK;AAAA,UACjF,gBAAA/B,EAACC,GAAA,EAAU,WAAWR,EAAO,eAAe,YAAA0C,GACxC,UAAA,gBAAAnC,EAAC8D,IAAA,EAAY,WAAWrE,EAAO,QAAA,CAAS,EAAA,CAC5C;AAAA,QAAA,EAAA,CACJ;AAAA,MAAA,EAAA,CACJ;AAAA,IAAA;AAAA,EAAA;AAGZ;AAEAoC,GAAqB,cAAc;"}
1
+ {"version":3,"file":"index-tPhlowOw.js","sources":["../src/combobox/hooks/useSelectedOptionsCache.ts","../src/combobox/hooks/useTagOverflow.ts","../src/combobox/components/MultiTrigger/theme.ts","../src/combobox/components/MultiTrigger/SelectedTags.tsx","../src/combobox/components/MultiTrigger/index.tsx"],"sourcesContent":["import { useMemo, useRef } from 'react';\n\nimport { type Key } from 'react-aria-components';\n\nimport { type IComboboxOption, type TComboboxValue } from '../types';\nimport { resolveSelectedOptions } from '../utils';\n\n/**\n * Merges incoming `options` into a persistent value→option map so selected\n * labels survive client filter / async suggest list swaps.\n */\nexport const useSelectedOptionsCache = (\n keys: readonly Key[],\n options: readonly IComboboxOption[]\n): IComboboxOption[] => {\n const cacheRef = useRef(new Map<TComboboxValue, IComboboxOption>());\n\n return useMemo(() => {\n const cache = cacheRef.current;\n\n options.forEach(option => {\n cache.set(option.value, option);\n });\n\n return resolveSelectedOptions(keys, cache);\n }, [keys, options]);\n};\n","import { type RefObject, useCallback, useLayoutEffect, useRef, useState } from 'react';\n\nexport interface ITagOverflowOptions {\n /** Element whose width is reserved at the end of the row (e.g. input content sizer). */\n trailingReserveRef?: RefObject<HTMLElement | null>;\n /** Bumps recalculation when trailing content changes (e.g. inputValue). */\n trailingContentKey?: string;\n}\n\nexport interface ITagOverflowResult {\n /** How many leading tags fit when collapsed. */\n visibleCount: number;\n /** Measure container for tags + overflow chip + trailing reserve. */\n containerRef: RefObject<HTMLDivElement | null>;\n /** Hidden measure row (offscreen). */\n measureRef: RefObject<HTMLDivElement | null>;\n /** Overflow chip measure node. */\n overflowMeasureRef: RefObject<HTMLButtonElement | null>;\n}\n\nconst readTrailingWidth = (trailingEl: HTMLElement | null | undefined): number => {\n if (!trailingEl) {\n return 0;\n }\n\n const minWidthPx = Number.parseFloat(getComputedStyle(trailingEl).minWidth);\n const measured = trailingEl.offsetWidth;\n\n if (Number.isFinite(minWidthPx) && minWidthPx > 0) {\n return Math.max(minWidthPx, measured);\n }\n\n return measured;\n};\n\n/**\n * Computes how many tags fit in one row, reserving space for a +N chip when needed\n * and optionally for a trailing element (filter input content width).\n * `itemCount` is the total number of selected tags.\n */\nexport const useTagOverflow = (\n itemCount: number,\n expanded: boolean,\n options?: ITagOverflowOptions\n): ITagOverflowResult => {\n const containerRef = useRef<HTMLDivElement | null>(null);\n const measureRef = useRef<HTMLDivElement | null>(null);\n const overflowMeasureRef = useRef<HTMLButtonElement | null>(null);\n const trailingReserveRef = options?.trailingReserveRef;\n const trailingContentKey = options?.trailingContentKey;\n const [visibleCount, setVisibleCount] = useState(itemCount);\n\n const recalculate = useCallback(() => {\n if (expanded || itemCount === 0) {\n setVisibleCount(itemCount);\n\n return;\n }\n\n const container = containerRef.current;\n const measure = measureRef.current;\n\n if (!container || !measure) {\n setVisibleCount(itemCount);\n\n return;\n }\n\n const children = Array.from(measure.children) as HTMLElement[];\n const gap = Number.parseFloat(getComputedStyle(measure).columnGap || getComputedStyle(measure).gap || '0') || 0;\n const overflowWidth = overflowMeasureRef.current?.offsetWidth ?? 0;\n const trailingWidth = readTrailingWidth(trailingReserveRef?.current);\n const available = container.clientWidth - (trailingWidth > 0 ? trailingWidth + gap : 0);\n\n let used = 0;\n let fit = 0;\n\n for (let index = 0; index < children.length; index += 1) {\n const width = children[index].offsetWidth;\n const next = used + (fit > 0 ? gap : 0) + width;\n const remaining = itemCount - (index + 1);\n const needOverflow = remaining > 0;\n const withOverflow = next + (needOverflow ? gap + overflowWidth : 0);\n\n if (withOverflow > available) {\n break;\n }\n\n used = next;\n fit = index + 1;\n }\n\n if (fit > 0) {\n setVisibleCount(fit);\n\n return;\n }\n\n setVisibleCount(1);\n }, [expanded, itemCount, trailingReserveRef]);\n\n useLayoutEffect(() => {\n recalculate();\n\n const container = containerRef.current;\n\n if (!container || typeof ResizeObserver === 'undefined') {\n return;\n }\n\n const observer = new ResizeObserver(() => {\n recalculate();\n });\n\n observer.observe(container);\n\n const trailing = trailingReserveRef?.current;\n\n if (trailing) {\n observer.observe(trailing);\n }\n\n return () => {\n observer.disconnect();\n };\n }, [recalculate, trailingContentKey, trailingReserveRef]);\n\n return { visibleCount, containerRef, measureRef, overflowMeasureRef };\n};\n","import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport { type TComboboxSize } from '../../types';\n\nimport styles from './styles.module.css';\n\nexport const comboboxMultiTriggerVariants = cva(styles.trigger, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyS),\n lg: cn(styles.lg, typographyStyles.bodyM),\n },\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n },\n});\n\nexport const comboboxTagSizeClass = (size: TComboboxSize) => (size === 'sm' ? styles.tagSm : styles.tagMd);\n\nexport const comboboxOverflowSizeClass = (size: TComboboxSize) =>\n size === 'sm' ? styles.overflowSm : styles.overflowMd;\n","import { type ReactNode, type RefObject, useContext } from 'react';\n\nimport cn from 'classnames';\nimport { Button as RacButton, type Key, Tag as RacTag, TagGroup, TagList } from 'react-aria-components';\n\nimport { Clear } from '@/icons';\nimport { AuiContext, defaultLabels } from '@/provider/context';\n\nimport { useTagOverflow } from '../../hooks/useTagOverflow';\nimport { type IComboboxOption, type TComboboxSize } from '../../types';\n\nimport { comboboxOverflowSizeClass, comboboxTagSizeClass } from './theme';\n\nimport styles from './styles.module.css';\n\n/** RAC Tag remove slot. */\nconst ButtonRemove = () => (\n <RacButton slot=\"remove\" className={styles.tagRemove}>\n <Clear className={styles.tagRemoveIcon} />\n </RacButton>\n);\n\nexport interface ISelectedTagsProps {\n items: IComboboxOption[];\n size: TComboboxSize;\n expanded: boolean;\n onExpandedChange: (expanded: boolean) => void;\n onRemove: (keys: Set<Key>) => void;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n /** Trailing content (e.g. combobox filter input + sizer). */\n trailingSlot?: ReactNode;\n /** Reserve width for trailing content when measuring overflow. */\n trailingReserveRef?: RefObject<HTMLElement | null>;\n /** Bumps overflow recalc when trailing content changes. */\n trailingContentKey?: string;\n}\n\nexport const SelectedTags = ({\n items,\n size,\n expanded,\n onExpandedChange,\n onRemove,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n trailingSlot,\n trailingReserveRef,\n trailingContentKey,\n}: ISelectedTagsProps) => {\n const moreSelected = useContext(AuiContext)?.labels.moreSelected ?? defaultLabels.moreSelected;\n const { visibleCount, containerRef, measureRef, overflowMeasureRef } = useTagOverflow(items.length, expanded, {\n trailingReserveRef,\n trailingContentKey,\n });\n const hiddenCount = Math.max(0, items.length - visibleCount);\n const visibleItems = expanded || hiddenCount === 0 ? items : items.slice(0, visibleCount);\n\n return (\n <div ref={containerRef} className={styles.field} data-expanded={expanded || undefined}>\n {items.length > 0 ? (\n <TagGroup\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n className={styles.contents}\n onRemove={onRemove}\n >\n <TagList items={visibleItems} className={styles.contents}>\n {(item: IComboboxOption) => (\n <RacTag\n id={item.value}\n textValue={item.label}\n className={cn(styles.tag, comboboxTagSizeClass(size))}\n >\n <span className={styles.tagLabel}>{item.label}</span>\n <ButtonRemove />\n </RacTag>\n )}\n </TagList>\n </TagGroup>\n ) : null}\n {hiddenCount > 0 && !expanded ? (\n <button\n type=\"button\"\n className={cn(styles.overflowChip, comboboxOverflowSizeClass(size))}\n aria-label={`${hiddenCount} ${moreSelected}`}\n onClick={event => {\n event.preventDefault();\n event.stopPropagation();\n onExpandedChange(true);\n }}\n >\n +{hiddenCount}\n </button>\n ) : null}\n {trailingSlot}\n <div ref={measureRef} className={styles.measureRow} aria-hidden>\n {items.map(item => (\n <span key={String(item.value)} className={cn(styles.tag, comboboxTagSizeClass(size))}>\n <span className={styles.tagLabel}>{item.label}</span>\n <span className={styles.tagRemove}>\n <Clear className={styles.tagRemoveIcon} />\n </span>\n </span>\n ))}\n </div>\n <button\n ref={overflowMeasureRef}\n type=\"button\"\n tabIndex={-1}\n aria-hidden\n className={cn(styles.overflowChip, comboboxOverflowSizeClass(size), styles.measureRow)}\n >\n +99\n </button>\n </div>\n );\n};\n\nSelectedTags.displayName = 'SelectedTags';\n","import {\n type FocusEvent,\n type MouseEvent,\n type RefObject,\n useContext,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport {\n Button as RacButton,\n ComboBoxStateContext,\n Group,\n Input,\n type Key,\n SelectStateContext,\n} from 'react-aria-components';\n\nimport { FieldMultiComboBoxClearButton, FieldMultiSelectClearButton } from '@/field-clear-button';\nimport { ChevronDown } from '@/icons';\n\nimport { useSelectedOptionsCache } from '../../hooks/useSelectedOptionsCache';\nimport { type IComboboxOption, type TComboboxSize, type TComboboxVariant } from '../../types';\nimport { isInteractiveTarget, toKeyList } from '../../utils';\n\nimport { SelectedTags } from './SelectedTags';\nimport { comboboxMultiTriggerVariants } from './theme';\n\nimport styles from './styles.module.css';\n\n/** Clears filter input when a value is added to the selection. */\nconst useClearInputOnSelect = (selectionLength: number, enabled: boolean) => {\n const state = useContext(ComboBoxStateContext);\n const prevLengthRef = useRef(selectionLength);\n\n useEffect(() => {\n if (!enabled) {\n return;\n }\n\n if (selectionLength > prevLengthRef.current) {\n state?.setInputValue('');\n }\n\n prevLengthRef.current = selectionLength;\n }, [enabled, selectionLength, state]);\n};\n\nexport interface IComboboxMultiTriggerProps {\n triggerRef: RefObject<HTMLDivElement | null>;\n options: IComboboxOption[];\n size: TComboboxSize;\n variant: TComboboxVariant;\n clear: boolean;\n placeholder: string;\n isOpen: boolean;\n isDisabled: boolean;\n isInvalid: boolean;\n mode: 'select' | 'combobox';\n isFocusVisible?: boolean;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n}\n\nexport const ComboboxMultiTrigger = ({\n triggerRef,\n options,\n size,\n variant,\n clear,\n placeholder,\n isOpen,\n isDisabled,\n isInvalid,\n mode,\n isFocusVisible = false,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n}: IComboboxMultiTriggerProps) => {\n const selectState = useContext(SelectStateContext);\n const comboState = useContext(ComboBoxStateContext);\n const wrapRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const inputSizerRef = useRef<HTMLSpanElement>(null);\n const [expanded, setExpanded] = useState(false);\n\n const selectedKeys = useMemo(() => {\n if (mode === 'combobox') {\n return toKeyList(comboState?.value);\n }\n\n return toKeyList(selectState?.value);\n }, [mode, comboState?.value, selectState?.value]);\n\n const items = useSelectedOptionsCache(selectedKeys, options);\n const inputValue = comboState?.inputValue ?? '';\n\n useClearInputOnSelect(items.length, mode === 'combobox');\n\n useEffect(() => {\n if (!isOpen) {\n setExpanded(false);\n }\n }, [isOpen]);\n\n const handleWrapBlur = (event: FocusEvent<HTMLDivElement>) => {\n if (mode !== 'combobox') {\n return;\n }\n\n const next = event.relatedTarget;\n\n if (next instanceof Node && wrapRef.current?.contains(next)) {\n return;\n }\n\n setExpanded(false);\n };\n\n const openFromField = (event: MouseEvent) => {\n if (isDisabled || isInteractiveTarget(event.target)) {\n return;\n }\n\n if (mode === 'select') {\n selectState?.open();\n\n return;\n }\n\n comboState?.open();\n inputRef.current?.focus();\n };\n\n const handleRemove = (keys: Set<Key>) => {\n if (mode === 'combobox') {\n const current = toKeyList(comboState?.value);\n\n comboState?.setValue(current.filter(key => !keys.has(key)));\n\n return;\n }\n\n const current = toKeyList(selectState?.value);\n\n selectState?.setValue(current.filter(key => !keys.has(key)));\n };\n\n const ClearButton = mode === 'select' ? FieldMultiSelectClearButton : FieldMultiComboBoxClearButton;\n const showSelectPlaceholder = mode === 'select' && items.length === 0;\n\n const trailingSlot =\n mode === 'combobox' ? (\n <>\n <Input ref={inputRef} className={styles.input} placeholder={placeholder} disabled={isDisabled} />\n <span ref={inputSizerRef} className={styles.inputSizer} aria-hidden>\n {inputValue}\n </span>\n </>\n ) : undefined;\n\n return (\n <div\n ref={wrapRef}\n className={styles.triggerWrap}\n data-focus-visible={mode === 'select' && isFocusVisible ? true : undefined}\n data-open={isOpen || undefined}\n data-disabled={isDisabled || undefined}\n data-invalid={isInvalid || undefined}\n onBlur={handleWrapBlur}\n >\n <Group ref={triggerRef} className={comboboxMultiTriggerVariants({ size, variant })} onClick={openFromField}>\n {showSelectPlaceholder ? (\n <span className={styles.placeholder}>{placeholder}</span>\n ) : (\n <SelectedTags\n items={items}\n size={size}\n expanded={expanded}\n onExpandedChange={setExpanded}\n onRemove={handleRemove}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n trailingSlot={trailingSlot}\n trailingReserveRef={mode === 'combobox' ? inputSizerRef : undefined}\n trailingContentKey={mode === 'combobox' ? inputValue : undefined}\n />\n )}\n <span className={styles.actions}>\n {clear ? <ClearButton isDisabled={isDisabled} size={size} variant={variant} /> : null}\n <RacButton className={styles.chevronButton} isDisabled={isDisabled}>\n <ChevronDown className={styles.chevron} />\n </RacButton>\n </span>\n </Group>\n </div>\n );\n};\n\nComboboxMultiTrigger.displayName = 'ComboboxMultiTrigger';\n"],"names":["useSelectedOptionsCache","keys","options","cacheRef","useRef","useMemo","cache","option","resolveSelectedOptions","readTrailingWidth","trailingEl","minWidthPx","measured","useTagOverflow","itemCount","expanded","containerRef","measureRef","overflowMeasureRef","trailingReserveRef","trailingContentKey","visibleCount","setVisibleCount","useState","recalculate","useCallback","container","measure","children","gap","overflowWidth","trailingWidth","available","used","fit","index","width","next","needOverflow","useLayoutEffect","observer","trailing","comboboxMultiTriggerVariants","cva","styles","cn","typographyStyles","comboboxTagSizeClass","size","comboboxOverflowSizeClass","ButtonRemove","jsx","RacButton","Clear","SelectedTags","items","onExpandedChange","onRemove","ariaLabel","ariaLabelledby","trailingSlot","moreSelected","useContext","AuiContext","defaultLabels","hiddenCount","visibleItems","jsxs","TagGroup","TagList","item","RacTag","event","useClearInputOnSelect","selectionLength","enabled","state","ComboBoxStateContext","prevLengthRef","useEffect","ComboboxMultiTrigger","triggerRef","variant","clear","placeholder","isOpen","isDisabled","isInvalid","mode","isFocusVisible","selectState","SelectStateContext","comboState","wrapRef","inputRef","inputSizerRef","setExpanded","selectedKeys","toKeyList","inputValue","handleWrapBlur","openFromField","isInteractiveTarget","handleRemove","current","key","ClearButton","FieldMultiSelectClearButton","FieldMultiComboBoxClearButton","showSelectPlaceholder","Fragment","Input","Group","ChevronDown"],"mappings":";;;;;;;;;;AAWO,MAAMA,KAA0B,CACnCC,GACAC,MACoB;AACpB,QAAMC,IAAWC,EAAO,oBAAI,KAAsC;AAElE,SAAOC,EAAQ,MAAM;AACjB,UAAMC,IAAQH,EAAS;AAEvB,WAAAD,EAAQ,QAAQ,CAAAK,MAAU;AACtB,MAAAD,EAAM,IAAIC,EAAO,OAAOA,CAAM;AAAA,IAClC,CAAC,GAEMC,GAAuBP,GAAMK,CAAK;AAAA,EAC7C,GAAG,CAACL,GAAMC,CAAO,CAAC;AACtB,GCNMO,KAAoB,CAACC,MAAuD;AAC9E,MAAI,CAACA;AACD,WAAO;AAGX,QAAMC,IAAa,OAAO,WAAW,iBAAiBD,CAAU,EAAE,QAAQ,GACpEE,IAAWF,EAAW;AAE5B,SAAI,OAAO,SAASC,CAAU,KAAKA,IAAa,IACrC,KAAK,IAAIA,GAAYC,CAAQ,IAGjCA;AACX,GAOaC,KAAiB,CAC1BC,GACAC,GACAb,MACqB;AACrB,QAAMc,IA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,aAAY,IAElD,gBAAAO;AAAA,UAACG;AAAA,UAAA;AAAA,YACG,OAAAC;AAAA,YACA,MAAAP;AAAA,YACA,UAAAjC;AAAA,YACA,kBAAkBiF;AAAA,YAClB,UAAUO;AAAA,YACV,cAAY7C;AAAA,YACZ,mBAAiBC;AAAA,YACjB,cAAAC;AAAA,YACA,oBAAoB4B,MAAS,aAAaO,IAAgB;AAAA,YAC1D,oBAAoBP,MAAS,aAAaW,IAAa;AAAA,UAAA;AAAA,QAAA;AAAA,QAG/D,gBAAAhC,EAAC,QAAA,EAAK,WAAWvB,EAAO,SACnB,UAAA;AAAA,UAAAuC,IAAQ,gBAAAhC,EAACuD,GAAA,EAAY,YAAApB,GAAwB,MAAAtC,GAAY,SAAAkC,GAAkB,IAAK;AAAA,UACjF,gBAAA/B,EAACC,GAAA,EAAU,WAAWR,EAAO,eAAe,YAAA0C,GACxC,UAAA,gBAAAnC,EAAC8D,IAAA,EAAY,WAAWrE,EAAO,QAAA,CAAS,EAAA,CAC5C;AAAA,QAAA,EAAA,CACJ;AAAA,MAAA,EAAA,CACJ;AAAA,IAAA;AAAA,EAAA;AAGZ;AAEAoC,GAAqB,cAAc;"}
@@ -1,4 +1,4 @@
1
- import { I as x } from "../Component-DFwWbzFS.js";
1
+ import { I as x } from "../Component-D310jlAj.js";
2
2
  import { jsxs as B, jsx as r } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import { s as C } from "../index-h8z54aFR.js";
@@ -1,9 +1,9 @@
1
1
  import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import u from "classnames";
3
3
  import { s as c } from "../index-h8z54aFR.js";
4
- import { u as _ } from "../hooks-BAkrGC45.js";
4
+ import { u as _ } from "../hooks-BlX5Y4Zt.js";
5
5
  import { cva as p } from "class-variance-authority";
6
- import '../assets/index7.css';const y = "aub_styles-module_root_82fa0", f = "aub_styles-module_overlay_9529c", v = "aub_styles-module_spinner_fd62a", b = "aub_styles-module_sm_916d6", g = "aub_styles-module_md_98210", N = "aub_styles-module_lg_ce385", s = {
6
+ import '../assets/index8.css';const y = "aub_styles-module_root_82fa0", f = "aub_styles-module_overlay_9529c", v = "aub_styles-module_spinner_fd62a", b = "aub_styles-module_sm_916d6", g = "aub_styles-module_md_98210", N = "aub_styles-module_lg_ce385", s = {
7
7
  root: y,
8
8
  overlay: f,
9
9
  spinner: v,
@@ -1,4 +1,4 @@
1
- import { M as u, u as t } from "../Component-BiiaP51W.js";
1
+ import { M as u, u as t } from "../Component-C6mp0LOp.js";
2
2
  export {
3
3
  u as MenuList,
4
4
  t as useMenuList
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
- import { u } from "./hooks-BAkrGC45.js";
2
+ import { u } from "./hooks-BlX5Y4Zt.js";
3
3
  import { useState as d, useLayoutEffect as b } from "react";
4
4
  import './assets/metrics.css';const g = "aub_styles-module_root_ac49d", p = "aub_styles-module_message_e24cf", _ = "aub_styles-module_skeletonList_dc5f9", x = "aub_styles-module_skeletonRow_cadb9", e = {
5
5
  root: g,
@@ -42,4 +42,4 @@ export {
42
42
  l as r,
43
43
  A as u
44
44
  };
45
- //# sourceMappingURL=metrics-C8FBvbwl.js.map
45
+ //# sourceMappingURL=metrics-B5YsELiI.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"metrics-C8FBvbwl.js","sources":["../src/combobox/components/ListStatus/index.tsx","../src/combobox/components/List/metrics.ts"],"sourcesContent":["import { useAuiLabels } from '@/provider';\n\nimport styles from './styles.module.css';\n\nexport interface IComboboxListStatusProps {\n isLoading?: boolean;\n isError?: boolean;\n isEmpty?: boolean;\n}\n\n/** Loading skeleton / empty / error chrome for combobox. */\nexport const ComboboxListStatus = ({ isLoading, isError, isEmpty }: IComboboxListStatusProps) => {\n const { loadingSuggestions, noSuggestions, suggestionsError } = useAuiLabels();\n\n if (isLoading) {\n return (\n <div className={styles.root} role=\"status\" aria-live=\"polite\" aria-label={loadingSuggestions}>\n <div className={styles.skeletonList}>\n <div className={styles.skeletonRow} />\n <div className={styles.skeletonRow} />\n <div className={styles.skeletonRow} />\n </div>\n </div>\n );\n }\n\n if (isError) {\n return (\n <div className={styles.root} role=\"status\" aria-live=\"polite\">\n <p className={styles.message}>{suggestionsError}</p>\n </div>\n );\n }\n\n if (isEmpty) {\n return (\n <div className={styles.root} role=\"status\" aria-live=\"polite\">\n <p className={styles.message}>{noSuggestions}</p>\n </div>\n );\n }\n\n return null;\n};\n\nComboboxListStatus.displayName = 'ComboboxListStatus';\n","import { useLayoutEffect, useState } from 'react';\n\nimport { type TComboboxSize } from '../../types';\n\nconst ROW_VAR: Record<TComboboxSize, string> = {\n sm: '--aui-combobox-item-h-sm',\n md: '--aui-combobox-item-h-md',\n lg: '--aui-combobox-item-h-lg',\n};\n\nconst PAD_VAR: Record<TComboboxSize, string> = {\n sm: '--aui-combobox-list-pad-sm',\n md: '--aui-combobox-list-pad-md',\n lg: '--aui-combobox-list-pad-lg',\n};\n\n/** Pixel fallbacks when tokens are not on the document yet. */\nconst FALLBACK_ROW: Record<TComboboxSize, number> = { sm: 28, md: 32, lg: 44 };\nconst FALLBACK_PAD: Record<TComboboxSize, number> = { sm: 4, md: 4, lg: 8 };\n\nexport const readCssPx = (name: string, fallback: number): number => {\n if (typeof document === 'undefined') {\n return fallback;\n }\n\n const raw = getComputedStyle(document.documentElement).getPropertyValue(name).trim();\n const value = Number.parseFloat(raw);\n\n return Number.isFinite(value) && value >= 0 ? value : fallback;\n};\n\nexport const readComboboxListMetrics = (size: TComboboxSize) => ({\n rowSize: readCssPx(ROW_VAR[size], FALLBACK_ROW[size]),\n padding: readCssPx(PAD_VAR[size], FALLBACK_PAD[size]),\n});\n\n/** Row height and list padding for `ListLayout`, read from combobox tokens. */\nexport const useComboboxListMetrics = (size: TComboboxSize) => {\n const [metrics, setMetrics] = useState(() => readComboboxListMetrics(size));\n\n useLayoutEffect(() => {\n setMetrics(readComboboxListMetrics(size));\n }, [size]);\n\n return metrics;\n};\n"],"names":["ComboboxListStatus","isLoading","isError","isEmpty","loadingSuggestions","noSuggestions","suggestionsError","useAuiLabels","jsx","styles","jsxs","ROW_VAR","PAD_VAR","FALLBACK_ROW","FALLBACK_PAD","readCssPx","name","fallback","raw","value","readComboboxListMetrics","size","useComboboxListMetrics","metrics","setMetrics","useState","useLayoutEffect"],"mappings":";;;;;;;;GAWaA,IAAqB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,SAAAC,QAAwC;AAC7F,QAAM,EAAE,oBAAAC,GAAoB,eAAAC,GAAe,kBAAAC,EAAA,IAAqBC,EAAA;AAEhE,SAAIN,IAEI,gBAAAO,EAAC,OAAA,EAAI,WAAWC,EAAO,MAAM,MAAK,UAAS,aAAU,UAAS,cAAYL,GACtE,UAAA,gBAAAM,EAAC,OAAA,EAAI,WAAWD,EAAO,cACnB,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,YAAA,CAAa;AAAA,IACpC,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,YAAA,CAAa;AAAA,IACpC,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,YAAA,CAAa;AAAA,EAAA,EAAA,CACxC,EAAA,CACJ,IAIJP,IAEI,gBAAAM,EAAC,OAAA,EAAI,WAAWC,EAAO,MAAM,MAAK,UAAS,aAAU,UACjD,4BAAC,KAAA,EAAE,WAAWA,EAAO,SAAU,aAAiB,GACpD,IAIJN,IAEI,gBAAAK,EAAC,OAAA,EAAI,WAAWC,EAAO,MAAM,MAAK,UAAS,aAAU,UACjD,4BAAC,KAAA,EAAE,WAAWA,EAAO,SAAU,aAAc,GACjD,IAID;AACX;AAEAT,EAAmB,cAAc;ACzCjC,MAAMW,IAAyC;AAAA,EAC3C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GAEMC,IAAyC;AAAA,EAC3C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GAGMC,IAA8C,EAAE,IAAI,IAAI,IAAI,IAAI,IAAI,GAAA,GACpEC,IAA8C,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,EAAA,GAE3DC,IAAY,CAACC,GAAcC,MAA6B;AACjE,MAAI,OAAO,WAAa;AACpB,WAAOA;AAGX,QAAMC,IAAM,iBAAiB,SAAS,eAAe,EAAE,iBAAiBF,CAAI,EAAE,KAAA,GACxEG,IAAQ,OAAO,WAAWD,CAAG;AAEnC,SAAO,OAAO,SAASC,CAAK,KAAKA,KAAS,IAAIA,IAAQF;AAC1D,GAEaG,IAA0B,CAACC,OAAyB;AAAA,EAC7D,SAASN,EAAUJ,EAAQU,CAAI,GAAGR,EAAaQ,CAAI,CAAC;AAAA,EACpD,SAASN,EAAUH,EAAQS,CAAI,GAAGP,EAAaO,CAAI,CAAC;AACxD,IAGaC,IAAyB,CAACD,MAAwB;AAC3D,QAAM,CAACE,GAASC,CAAU,IAAIC,EAAS,MAAML,EAAwBC,CAAI,CAAC;AAE1E,SAAAK,EAAgB,MAAM;AAClB,IAAAF,EAAWJ,EAAwBC,CAAI,CAAC;AAAA,EAC5C,GAAG,CAACA,CAAI,CAAC,GAEFE;AACX;"}
1
+ {"version":3,"file":"metrics-B5YsELiI.js","sources":["../src/combobox/components/ListStatus/index.tsx","../src/combobox/components/List/metrics.ts"],"sourcesContent":["import { useAuiLabels } from '@/provider';\n\nimport styles from './styles.module.css';\n\nexport interface IComboboxListStatusProps {\n isLoading?: boolean;\n isError?: boolean;\n isEmpty?: boolean;\n}\n\n/** Loading skeleton / empty / error chrome for combobox. */\nexport const ComboboxListStatus = ({ isLoading, isError, isEmpty }: IComboboxListStatusProps) => {\n const { loadingSuggestions, noSuggestions, suggestionsError } = useAuiLabels();\n\n if (isLoading) {\n return (\n <div className={styles.root} role=\"status\" aria-live=\"polite\" aria-label={loadingSuggestions}>\n <div className={styles.skeletonList}>\n <div className={styles.skeletonRow} />\n <div className={styles.skeletonRow} />\n <div className={styles.skeletonRow} />\n </div>\n </div>\n );\n }\n\n if (isError) {\n return (\n <div className={styles.root} role=\"status\" aria-live=\"polite\">\n <p className={styles.message}>{suggestionsError}</p>\n </div>\n );\n }\n\n if (isEmpty) {\n return (\n <div className={styles.root} role=\"status\" aria-live=\"polite\">\n <p className={styles.message}>{noSuggestions}</p>\n </div>\n );\n }\n\n return null;\n};\n\nComboboxListStatus.displayName = 'ComboboxListStatus';\n","import { useLayoutEffect, useState } from 'react';\n\nimport { type TComboboxSize } from '../../types';\n\nconst ROW_VAR: Record<TComboboxSize, string> = {\n sm: '--aui-combobox-item-h-sm',\n md: '--aui-combobox-item-h-md',\n lg: '--aui-combobox-item-h-lg',\n};\n\nconst PAD_VAR: Record<TComboboxSize, string> = {\n sm: '--aui-combobox-list-pad-sm',\n md: '--aui-combobox-list-pad-md',\n lg: '--aui-combobox-list-pad-lg',\n};\n\n/** Pixel fallbacks when tokens are not on the document yet. */\nconst FALLBACK_ROW: Record<TComboboxSize, number> = { sm: 28, md: 32, lg: 44 };\nconst FALLBACK_PAD: Record<TComboboxSize, number> = { sm: 4, md: 4, lg: 8 };\n\nexport const readCssPx = (name: string, fallback: number): number => {\n if (typeof document === 'undefined') {\n return fallback;\n }\n\n const raw = getComputedStyle(document.documentElement).getPropertyValue(name).trim();\n const value = Number.parseFloat(raw);\n\n return Number.isFinite(value) && value >= 0 ? value : fallback;\n};\n\nexport const readComboboxListMetrics = (size: TComboboxSize) => ({\n rowSize: readCssPx(ROW_VAR[size], FALLBACK_ROW[size]),\n padding: readCssPx(PAD_VAR[size], FALLBACK_PAD[size]),\n});\n\n/** Row height and list padding for `ListLayout`, read from combobox tokens. */\nexport const useComboboxListMetrics = (size: TComboboxSize) => {\n const [metrics, setMetrics] = useState(() => readComboboxListMetrics(size));\n\n useLayoutEffect(() => {\n setMetrics(readComboboxListMetrics(size));\n }, [size]);\n\n return metrics;\n};\n"],"names":["ComboboxListStatus","isLoading","isError","isEmpty","loadingSuggestions","noSuggestions","suggestionsError","useAuiLabels","jsx","styles","jsxs","ROW_VAR","PAD_VAR","FALLBACK_ROW","FALLBACK_PAD","readCssPx","name","fallback","raw","value","readComboboxListMetrics","size","useComboboxListMetrics","metrics","setMetrics","useState","useLayoutEffect"],"mappings":";;;;;;;;GAWaA,IAAqB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,SAAAC,QAAwC;AAC7F,QAAM,EAAE,oBAAAC,GAAoB,eAAAC,GAAe,kBAAAC,EAAA,IAAqBC,EAAA;AAEhE,SAAIN,IAEI,gBAAAO,EAAC,OAAA,EAAI,WAAWC,EAAO,MAAM,MAAK,UAAS,aAAU,UAAS,cAAYL,GACtE,UAAA,gBAAAM,EAAC,OAAA,EAAI,WAAWD,EAAO,cACnB,UAAA;AAAA,IAAA,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,YAAA,CAAa;AAAA,IACpC,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,YAAA,CAAa;AAAA,IACpC,gBAAAD,EAAC,OAAA,EAAI,WAAWC,EAAO,YAAA,CAAa;AAAA,EAAA,EAAA,CACxC,EAAA,CACJ,IAIJP,IAEI,gBAAAM,EAAC,OAAA,EAAI,WAAWC,EAAO,MAAM,MAAK,UAAS,aAAU,UACjD,4BAAC,KAAA,EAAE,WAAWA,EAAO,SAAU,aAAiB,GACpD,IAIJN,IAEI,gBAAAK,EAAC,OAAA,EAAI,WAAWC,EAAO,MAAM,MAAK,UAAS,aAAU,UACjD,4BAAC,KAAA,EAAE,WAAWA,EAAO,SAAU,aAAc,GACjD,IAID;AACX;AAEAT,EAAmB,cAAc;ACzCjC,MAAMW,IAAyC;AAAA,EAC3C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GAEMC,IAAyC;AAAA,EAC3C,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACR,GAGMC,IAA8C,EAAE,IAAI,IAAI,IAAI,IAAI,IAAI,GAAA,GACpEC,IAA8C,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,EAAA,GAE3DC,IAAY,CAACC,GAAcC,MAA6B;AACjE,MAAI,OAAO,WAAa;AACpB,WAAOA;AAGX,QAAMC,IAAM,iBAAiB,SAAS,eAAe,EAAE,iBAAiBF,CAAI,EAAE,KAAA,GACxEG,IAAQ,OAAO,WAAWD,CAAG;AAEnC,SAAO,OAAO,SAASC,CAAK,KAAKA,KAAS,IAAIA,IAAQF;AAC1D,GAEaG,IAA0B,CAACC,OAAyB;AAAA,EAC7D,SAASN,EAAUJ,EAAQU,CAAI,GAAGR,EAAaQ,CAAI,CAAC;AAAA,EACpD,SAASN,EAAUH,EAAQS,CAAI,GAAGP,EAAaO,CAAI,CAAC;AACxD,IAGaC,IAAyB,CAACD,MAAwB;AAC3D,QAAM,CAACE,GAASC,CAAU,IAAIC,EAAS,MAAML,EAAwBC,CAAI,CAAC;AAE1E,SAAAK,EAAgB,MAAM;AAClB,IAAAF,EAAWJ,EAAwBC,CAAI,CAAC;AAAA,EAC5C,GAAG,CAACA,CAAI,CAAC,GAEFE;AACX;"}
@@ -1,4 +1,4 @@
1
- import { M as r } from "../Component-KNlwEG00.js";
1
+ import { M as r } from "../Component-D25FKJAT.js";
2
2
  export {
3
3
  r as Modal
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as v } from "../Component-CwYbdJhI.js";
1
+ import { M as v } from "../Component-XnDMb714.js";
2
2
  import { jsxs as A, jsx as e } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import { F as t, u as b } from "../Component-BPN5FgKq.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as s, jsxs as h } from "react/jsx-runtime";
2
2
  import { s as L } from "../index-h8z54aFR.js";
3
3
  import { u as v, a as B, i as E } from "../useAsyncSuggest-DuIolQ3l.js";
4
- import { M as b } from "../Component-CwYbdJhI.js";
4
+ import { M as b } from "../Component-XnDMb714.js";
5
5
  import "react";
6
6
  import { F as c, u as x } from "../Component-BPN5FgKq.js";
7
7
  import { u as C, g as H } from "../useFieldHook-Bt9nST7g.js";
@@ -3,12 +3,12 @@ import { useRef as H } from "react";
3
3
  import I from "classnames";
4
4
  import { Select as N } from "react-aria-components";
5
5
  import { s as R } from "../index-h8z54aFR.js";
6
- import { a as j } from "../utils-DUOIRqE-.js";
7
- import { C as E } from "../index-CVEaKh8K.js";
6
+ import { a as j } from "../utils-Dj_u-w0s.js";
7
+ import { C as E } from "../index-tPhlowOw.js";
8
8
  import { cva as P } from "class-variance-authority";
9
9
  import { F as f, u as T } from "../Component-BPN5FgKq.js";
10
10
  import { u as q, g as w } from "../useFieldHook-Bt9nST7g.js";
11
- import '../assets/index15.css';const z = "aub_styles-module_root_42206", A = "aub_styles-module_block_e0d95", y = {
11
+ import '../assets/index18.css';const z = "aub_styles-module_root_42206", A = "aub_styles-module_block_e0d95", y = {
12
12
  root: z,
13
13
  block: A
14
14
  }, G = P(y.root, {
@@ -1,4 +1,4 @@
1
- import { N as y } from "../Component-Dkvzqo0L.js";
1
+ import { N as y } from "../Component-ZIAMtMpP.js";
2
2
  import { jsxs as x, jsx as r } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import { s as B } from "../index-h8z54aFR.js";
@@ -2,10 +2,10 @@ import { jsxs as H, jsx as s } from "react/jsx-runtime";
2
2
  import { useState as L } from "react";
3
3
  import U from "classnames";
4
4
  import { s as j } from "../index-h8z54aFR.js";
5
- import { N as B } from "../Component-Dkvzqo0L.js";
5
+ import { N as B } from "../Component-ZIAMtMpP.js";
6
6
  import { F as b, u as $ } from "../Component-BPN5FgKq.js";
7
7
  import { u as q, g as w } from "../useFieldHook-Bt9nST7g.js";
8
- import '../assets/index10.css';const C = (o) => o == null || Number.isNaN(o) ? null : o, D = (o, n, t) => {
8
+ import '../assets/index12.css';const C = (o) => o == null || Number.isNaN(o) ? null : o, D = (o, n, t) => {
9
9
  const r = C(o.from), l = C(o.to), e = C(t);
10
10
  return e == null ? n === "from" ? { from: null, to: l } : { from: r, to: null } : n === "from" ? { from: e, to: l != null && e > l ? e : l } : { from: r != null && e < r ? e : r, to: e };
11
11
  }, J = "aub_styles-module_root_6dc20", K = "aub_styles-module_block_f868f", O = "aub_styles-module_field_0bed9", F = {
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/provider/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,UAkC3B,CAAC;AAEF,eAAO,MAAM,UAAU,kDAA+C,CAAC"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/provider/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,UAqC3B,CAAC;AAEF,eAAO,MAAM,UAAU,kDAA+C,CAAC"}
@@ -5,9 +5,9 @@ import { UNSAFE_PortalProvider as v } from "react-aria";
5
5
  import { useLocale as x, I18nProvider as L } from "react-aria-components";
6
6
  import { s as m } from "../index-h8z54aFR.js";
7
7
  import { typographyStyles as P } from "../typography/index.js";
8
- import { A as R, d as h } from "../hooks-BAkrGC45.js";
9
- import { a as q, u as w, b as z, c as B } from "../hooks-BAkrGC45.js";
10
- import '../assets/index2.css';const U = "aub_styles-module_root_d7401", _ = {
8
+ import { A as R, d as h } from "../hooks-BlX5Y4Zt.js";
9
+ import { a as q, u as w, b as z, c as B } from "../hooks-BlX5Y4Zt.js";
10
+ import '../assets/index3.css';const U = "aub_styles-module_root_d7401", _ = {
11
11
  root: U
12
12
  }, E = m(
13
13
  ({
@@ -62,6 +62,12 @@ export interface IAuiLabels {
62
62
  arrangementList: string;
63
63
  /** ActiveFilters: clear the whole row. */
64
64
  clearFilters: string;
65
+ /** CopyButton: idle accessible name prefix. */
66
+ copy: string;
67
+ /** CopyButton: success tooltip. `{value}` is the copied text. */
68
+ copied: string;
69
+ /** CopyButton: clipboard failure tooltip. */
70
+ copyFailed: string;
65
71
  }
66
72
  export type TAuiLabels = IAuiLabels;
67
73
  /** Host router link. Anchor props; `href` is the URL. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/provider/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAErF,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3C,wCAAwC;AACxC,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,wCAAwC;IACxC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,YAAY,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,cAAc,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,gEAAgE;IAChE,cAAc,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,eAAe,EAAE,MAAM,CAAC;IACxB,0CAA0C;IAC1C,eAAe,EAAE,MAAM,CAAC;IACxB,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,kCAAkC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAC;IACp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,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACrC"}
@@ -1,4 +1,4 @@
1
- import { S as v } from "../Component-B2_pbcdj.js";
1
+ import { S as v } from "../Component-BnSNDZFt.js";
2
2
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
3
3
  import "react";
4
4
  import { F as n, u as x } from "../Component-BPN5FgKq.js";
@@ -7,7 +7,7 @@ import { cva as G } from "class-variance-authority";
7
7
  import { typographyStyles as C } from "../typography/index.js";
8
8
  import { F as v, u as J } from "../Component-BPN5FgKq.js";
9
9
  import { u as K, g as Q } from "../useFieldHook-Bt9nST7g.js";
10
- import '../assets/index16.css';const U = "aub_styles-module_root_34a37", W = "aub_styles-module_block_87638", X = "aub_styles-module_readout_b6c80", Y = "aub_styles-module_value_52215", Z = "aub_styles-module_detail_aad13", ee = "aub_styles-module_track_47316", le = "aub_styles-module_rail_fad39", ae = "aub_styles-module_fill_7f0d9", re = "aub_styles-module_ticks_24abe", te = "aub_styles-module_tick_60d62", se = "aub_styles-module_thumb_edd9d", ie = "aub_styles-module_invalid_cb4ec", oe = "aub_styles-module_sm_d6a8a", de = "aub_styles-module_md_f78ab", ne = "aub_styles-module_lg_32e42", a = {
10
+ import '../assets/index19.css';const U = "aub_styles-module_root_34a37", W = "aub_styles-module_block_87638", X = "aub_styles-module_readout_b6c80", Y = "aub_styles-module_value_52215", Z = "aub_styles-module_detail_aad13", ee = "aub_styles-module_track_47316", le = "aub_styles-module_rail_fad39", ae = "aub_styles-module_fill_7f0d9", re = "aub_styles-module_ticks_24abe", te = "aub_styles-module_tick_60d62", se = "aub_styles-module_thumb_edd9d", ie = "aub_styles-module_invalid_cb4ec", oe = "aub_styles-module_sm_d6a8a", de = "aub_styles-module_md_f78ab", ne = "aub_styles-module_lg_32e42", a = {
11
11
  root: U,
12
12
  block: W,
13
13
  readout: X,
@@ -3,10 +3,10 @@ import { useState as C, useRef as U, useLayoutEffect as D, useMemo as F } from "
3
3
  import { Virtualizer as H, ListLayout as J, ListBox as K, Collection as T, ListBoxItem as W, ListBoxLoadMoreItem as X } from "react-aria-components";
4
4
  import { u as Y, a as Z, i as $ } from "../useAsyncSuggest-DuIolQ3l.js";
5
5
  import { C as ee } from "../Component-u6K-ylDb.js";
6
- import { u as se, r as M, C as te } from "../metrics-C8FBvbwl.js";
7
- import { I as oe } from "../Component-DFwWbzFS.js";
8
- import { u as ae } from "../hooks-BAkrGC45.js";
9
- import '../assets/index3.css';const le = "aub_styles-module_root_50f42", ne = "aub_styles-module_field_9c54b", re = "aub_styles-module_list_1877b", ce = "aub_styles-module_item_580d9", ie = "aub_styles-module_more_5f92c", l = {
6
+ import { u as se, r as M, C as te } from "../metrics-B5YsELiI.js";
7
+ import { I as oe } from "../Component-D310jlAj.js";
8
+ import { u as ae } from "../hooks-BlX5Y4Zt.js";
9
+ import '../assets/index4.css';const le = "aub_styles-module_root_50f42", ne = "aub_styles-module_field_9c54b", re = "aub_styles-module_list_1877b", ce = "aub_styles-module_item_580d9", ie = "aub_styles-module_more_5f92c", l = {
10
10
  root: le,
11
11
  field: ne,
12
12
  list: re,
@@ -7,7 +7,7 @@ import { typographyStyles as y } from "../typography/index.js";
7
7
  import "react";
8
8
  import { F as _, u as z } from "../Component-BPN5FgKq.js";
9
9
  import { u as D, g as H } from "../useFieldHook-Bt9nST7g.js";
10
- import '../assets/index11.css';const V = "aub_styles-module_root_266e7", j = "aub_styles-module_track_88aff", C = "aub_styles-module_thumb_eb2c8", E = "aub_styles-module_label_a0017", I = "aub_styles-module_sm_8ed02", P = "aub_styles-module_md_96718", M = "aub_styles-module_lg_0c078", R = "aub_styles-module_primary_922c6", q = "aub_styles-module_invalid_a628f", a = {
10
+ import '../assets/index13.css';const V = "aub_styles-module_root_266e7", j = "aub_styles-module_track_88aff", C = "aub_styles-module_thumb_eb2c8", E = "aub_styles-module_label_a0017", I = "aub_styles-module_sm_8ed02", P = "aub_styles-module_md_96718", M = "aub_styles-module_lg_0c078", R = "aub_styles-module_primary_922c6", q = "aub_styles-module_invalid_a628f", a = {
11
11
  root: V,
12
12
  track: j,
13
13
  thumb: C,
@@ -1,4 +1,4 @@
1
- import { T as R, g as U, u as j } from "../Component-DhhrZEMr.js";
1
+ import { T as R, g as U, u as j } from "../Component-qJGssCB4.js";
2
2
  import { useState as y, useCallback as a, useMemo as m } from "react";
3
3
  const x = (t, u) => {
4
4
  const s = new Set(t);
@@ -5,7 +5,7 @@ import { TabList as w, TabPanel as I, SelectionIndicator as D, Tab as K, Tabs as
5
5
  import { s as b } from "../index-h8z54aFR.js";
6
6
  import { cva as p } from "class-variance-authority";
7
7
  import { typographyStyles as _ } from "../typography/index.js";
8
- import '../assets/index24.css';const f = C(void 0), g = () => {
8
+ import '../assets/index27.css';const f = C(void 0), g = () => {
9
9
  const t = P(f);
10
10
  if (!t)
11
11
  throw new Error("This component must be used within a <Tabs> component");
package/dist/tag/index.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs as c, jsx as s } from "react/jsx-runtime";
2
2
  import u from "classnames";
3
3
  import { s as f } from "../index-h8z54aFR.js";
4
4
  import { C as d } from "../Clear-DcxADxz6.js";
5
- import { u as g } from "../hooks-BAkrGC45.js";
5
+ import { u as g } from "../hooks-BlX5Y4Zt.js";
6
6
  import { s as e, t as b } from "../theme-OKaLFzOc.js";
7
7
  const N = ({ onRemove: t, disabled: o }) => {
8
8
  const { clear: r } = g();
@@ -4,12 +4,12 @@ import x from "classnames";
4
4
  import { Group as w, TextArea as H } from "react-aria-components";
5
5
  import { s as F } from "../index-h8z54aFR.js";
6
6
  import { C as B } from "../Clear-DcxADxz6.js";
7
- import { u as O } from "../hooks-BAkrGC45.js";
7
+ import { u as O } from "../hooks-BlX5Y4Zt.js";
8
8
  import { cva as j } from "class-variance-authority";
9
9
  import { typographyStyles as k } from "../typography/index.js";
10
10
  import { F as g, u as z } from "../Component-BPN5FgKq.js";
11
11
  import { u as L, g as M } from "../useFieldHook-Bt9nST7g.js";
12
- import '../assets/index17.css';const G = "aub_styles-module_root_6dcd6", U = "aub_styles-module_block_9fd7b", $ = "aub_styles-module_sm_8e3c9", q = "aub_styles-module_md_9f5d6", J = "aub_styles-module_lg_459d3", K = "aub_styles-module_fieldInput_f9bcf", Q = "aub_styles-module_clear_97555", W = "aub_styles-module_clearIcon_dd0fc", X = "aub_styles-module_primary_af5fb", o = {
12
+ import '../assets/index20.css';const G = "aub_styles-module_root_6dcd6", U = "aub_styles-module_block_9fd7b", $ = "aub_styles-module_sm_8e3c9", q = "aub_styles-module_md_9f5d6", J = "aub_styles-module_lg_459d3", K = "aub_styles-module_fieldInput_f9bcf", Q = "aub_styles-module_clear_97555", W = "aub_styles-module_clearIcon_dd0fc", X = "aub_styles-module_primary_af5fb", o = {
13
13
  root: G,
14
14
  block: U,
15
15
  sm: $,
@@ -4,12 +4,12 @@ import y from "classnames";
4
4
  import { TimeField as j, Group as x, DateInput as E, DateSegment as G, Button as w } from "react-aria-components";
5
5
  import { s as S } from "../index-h8z54aFR.js";
6
6
  import { C as A } from "../Clear-DcxADxz6.js";
7
- import { u as M } from "../hooks-BAkrGC45.js";
7
+ import { u as M } from "../hooks-BlX5Y4Zt.js";
8
8
  import { cva as O } from "class-variance-authority";
9
9
  import { typographyStyles as C } from "../typography/index.js";
10
10
  import { F as _, u as R } from "../Component-BPN5FgKq.js";
11
11
  import { u as U, g as $ } from "../useFieldHook-Bt9nST7g.js";
12
- import '../assets/index12.css';const q = "aub_styles-module_root_184e6", J = "aub_styles-module_block_45f0f", K = "aub_styles-module_group_9f460", Q = "aub_styles-module_sm_f51c2", W = "aub_styles-module_md_be9a9", X = "aub_styles-module_lg_8553c", Y = "aub_styles-module_primary_43afd", Z = "aub_styles-module_input_f5120", ee = "aub_styles-module_segment_b8349", le = "aub_styles-module_clear_04e5c", oe = "aub_styles-module_icon_2d638", e = {
12
+ import '../assets/index14.css';const q = "aub_styles-module_root_184e6", J = "aub_styles-module_block_45f0f", K = "aub_styles-module_group_9f460", Q = "aub_styles-module_sm_f51c2", W = "aub_styles-module_md_be9a9", X = "aub_styles-module_lg_8553c", Y = "aub_styles-module_primary_43afd", Z = "aub_styles-module_input_f5120", ee = "aub_styles-module_segment_b8349", le = "aub_styles-module_clear_04e5c", oe = "aub_styles-module_icon_2d638", e = {
13
13
  root: q,
14
14
  block: J,
15
15
  group: K,
@@ -5,9 +5,9 @@ import { UNSTABLE_Toast as x, UNSTABLE_ToastContent as A, Text as T, UNSTABLE_To
5
5
  import { typographyStyles as y } from "../typography/index.js";
6
6
  import { cva as B } from "class-variance-authority";
7
7
  import { C as P } from "../Clear-DcxADxz6.js";
8
- import { u as q } from "../hooks-BAkrGC45.js";
8
+ import { u as q } from "../hooks-BlX5Y4Zt.js";
9
9
  import { flushSync as I } from "react-dom";
10
- import '../assets/index22.css';const M = "aub_styles-module_region_80324", R = "aub_styles-module_root_8c365", V = "aub_styles-module_neutral_1aa3d", k = "aub_styles-module_success_ae809", j = "aub_styles-module_warning_58c83", D = "aub_styles-module_danger_6cbef", F = "aub_styles-module_info_4e6f5", O = "aub_styles-module_content_3a071", Q = "aub_styles-module_title_19663", W = "aub_styles-module_description_99df3", o = {
10
+ import '../assets/index25.css';const M = "aub_styles-module_region_80324", R = "aub_styles-module_root_8c365", V = "aub_styles-module_neutral_1aa3d", k = "aub_styles-module_success_ae809", j = "aub_styles-module_warning_58c83", D = "aub_styles-module_danger_6cbef", F = "aub_styles-module_info_4e6f5", O = "aub_styles-module_content_3a071", Q = "aub_styles-module_title_19663", W = "aub_styles-module_description_99df3", o = {
11
11
  region: M,
12
12
  root: R,
13
13
  neutral: V,
@@ -1,4 +1,4 @@
1
- import '../assets/index27.css';const o = "aub_styles-module_bodyXs_863df", d = "aub_styles-module_bodyS_94552", s = "aub_styles-module_bodySTight_67dbf", b = "aub_styles-module_bodyM_10045", y = "aub_styles-module_bodyL_f2885", e = "aub_styles-module_headingM_1babc", t = "aub_styles-module_headingL_09557", _ = {
1
+ import '../assets/index31.css';const o = "aub_styles-module_bodyXs_863df", d = "aub_styles-module_bodyS_94552", s = "aub_styles-module_bodySTight_67dbf", b = "aub_styles-module_bodyM_10045", y = "aub_styles-module_bodyL_f2885", e = "aub_styles-module_headingM_1babc", t = "aub_styles-module_headingL_09557", _ = {
2
2
  bodyXs: o,
3
3
  bodyS: d,
4
4
  bodySTight: s,
@@ -1,9 +1,9 @@
1
1
  import { jsxs as f, Fragment as P, jsx as l } from "react/jsx-runtime";
2
2
  import { useContext as d } from "react";
3
3
  import { Popover as k, Virtualizer as A, ListLayout as w, ListBox as K, Collection as j, ListBoxItem as O, ListBoxLoadMoreItem as T, SelectStateContext as v, ComboBoxStateContext as S } from "react-aria-components";
4
- import { u as N } from "./hooks-BAkrGC45.js";
4
+ import { u as N } from "./hooks-BlX5Y4Zt.js";
5
5
  import { C as H } from "./Check-deng4Zns.js";
6
- import { u as q, C as D } from "./metrics-C8FBvbwl.js";
6
+ import { u as q, C as D } from "./metrics-B5YsELiI.js";
7
7
  import { cva as b } from "class-variance-authority";
8
8
  import _ from "classnames";
9
9
  import { typographyStyles as p } from "./typography/index.js";
@@ -220,4 +220,4 @@ export {
220
220
  Mt as r,
221
221
  Pt as t
222
222
  };
223
- //# sourceMappingURL=utils-DUOIRqE-.js.map
223
+ //# sourceMappingURL=utils-Dj_u-w0s.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils-DUOIRqE-.js","sources":["../src/combobox/components/Item/theme.ts","../src/combobox/components/Item/index.tsx","../src/combobox/components/Popover/theme.ts","../src/combobox/components/Popover/index.tsx","../src/combobox/components/List/theme.ts","../src/combobox/components/List/index.tsx","../src/field-clear-button/theme.ts","../src/field-clear-button/Component.tsx","../src/field-clear-button/adapters.tsx","../src/combobox/utils.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nimport styles from './styles.module.css';\n\nexport const comboboxItemVariants = cva(styles.root, {\n variants: {\n size: {\n sm: styles.sm,\n md: styles.md,\n lg: styles.lg,\n },\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n },\n});\n","import { Check } from '@/icons';\n\nimport styles from './styles.module.css';\n\nexport { comboboxItemVariants } from './theme';\n\nexport interface IComboboxItemContentProps {\n label: string;\n}\n\nexport const ComboboxItemContent = ({ label }: IComboboxItemContentProps) => (\n <>\n <span className={styles.label}>{label}</span>\n <Check className={styles.check} />\n </>\n);\n\nComboboxItemContent.displayName = 'ComboboxItemContent';\n","import { cva } from 'class-variance-authority';\n\nimport styles from './styles.module.css';\n\nexport const comboboxPopoverVariants = cva(styles.root, {\n variants: {\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n});\n","import { type ReactNode, type RefObject } from 'react';\n\nimport { Popover as RacPopover } from 'react-aria-components';\n\nimport { type TComboboxVariant } from '../../types';\n\nimport { comboboxPopoverVariants } from './theme';\n\nexport interface IComboboxPopoverProps {\n triggerRef: RefObject<HTMLElement | null>;\n variant: TComboboxVariant;\n children: ReactNode;\n}\n\nexport const ComboboxPopover = ({ triggerRef, variant, children }: IComboboxPopoverProps) => (\n <RacPopover triggerRef={triggerRef} className={comboboxPopoverVariants({ variant })} offset={4}>\n {children}\n </RacPopover>\n);\n\nComboboxPopover.displayName = 'ComboboxPopover';\n","import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\nexport const comboboxListBoxVariants = cva(styles.root, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyM),\n lg: cn(styles.lg, typographyStyles.bodyL),\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n","import { type RefObject } from 'react';\n\nimport { Collection, ListBox, ListBoxItem, ListBoxLoadMoreItem, ListLayout, Virtualizer } from 'react-aria-components';\n\nimport { useAuiLabels } from '@/provider';\n\nimport { type IComboboxOption, type TComboboxSize, type TComboboxVariant } from '../../types';\nimport { ComboboxItemContent, comboboxItemVariants } from '../Item';\nimport { ComboboxListStatus } from '../ListStatus';\nimport { ComboboxPopover } from '../Popover';\n\nimport { useComboboxListMetrics } from './metrics';\nimport { comboboxListBoxVariants } from './theme';\n\nimport styles from './styles.module.css';\n\nconst LoadMoreStatus = () => {\n const { loadingSuggestions } = useAuiLabels();\n\n return (\n <span className={styles.more} role=\"status\">\n {loadingSuggestions}\n </span>\n );\n};\n\nexport interface IComboboxListProps {\n triggerRef: RefObject<HTMLElement | null>;\n options: IComboboxOption[];\n size: TComboboxSize;\n variant: TComboboxVariant;\n isLoading?: boolean;\n isError?: boolean;\n /** When true, empty options show ListStatus empty chrome (autocomplete). */\n showEmptyStatus?: boolean;\n /** Further pages exist. Renders a sentinel at the end of the virtual list. */\n hasMore?: boolean;\n /** Fetch the next page. Called when the sentinel nears the viewport. */\n onLoadMore?: () => void;\n /** True while a later page is loading. Keeps already shown options. */\n isLoadingMore?: boolean;\n}\n\nexport const ComboboxList = ({\n triggerRef,\n options,\n size,\n variant,\n isLoading = false,\n isError = false,\n showEmptyStatus = false,\n hasMore = false,\n onLoadMore,\n isLoadingMore = false,\n}: IComboboxListProps) => {\n const { rowSize, padding } = useComboboxListMetrics(size);\n const showStatus = isLoading || (isError && options.length === 0) || (showEmptyStatus && options.length === 0);\n const showItems = !isLoading && !(isError && options.length === 0) && (!showEmptyStatus || options.length > 0);\n const showMore = showItems && (hasMore || isLoadingMore) && onLoadMore != null;\n\n return (\n <ComboboxPopover triggerRef={triggerRef} variant={variant}>\n {showStatus ? (\n <ComboboxListStatus isLoading={isLoading} isError={isError} isEmpty={!isLoading && !isError} />\n ) : null}\n {showItems ? (\n <Virtualizer layout={ListLayout} layoutOptions={{ rowSize, padding, loaderSize: rowSize }}>\n <ListBox className={comboboxListBoxVariants({ size })}>\n <Collection items={options}>\n {(item: IComboboxOption) => (\n <ListBoxItem\n id={item.value}\n textValue={item.label}\n isDisabled={item.disabled}\n className={comboboxItemVariants({ size, variant })}\n >\n <ComboboxItemContent label={item.label} />\n </ListBoxItem>\n )}\n </Collection>\n {showMore ? (\n <ListBoxLoadMoreItem isLoading={isLoadingMore} onLoadMore={onLoadMore}>\n {isLoadingMore ? <LoadMoreStatus /> : null}\n </ListBoxLoadMoreItem>\n ) : null}\n </ListBox>\n </Virtualizer>\n ) : null}\n </ComboboxPopover>\n );\n};\n\nComboboxList.displayName = 'ComboboxList';\n","import { cva } from 'class-variance-authority';\n\nimport styles from './styles.module.css';\n\nexport const fieldClearVariants = cva(styles.clear, {\n variants: {\n size: {\n sm: styles.sm,\n md: styles.md,\n lg: styles.lg,\n },\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n },\n});\n","import { Clear } from '@/icons';\nimport { useAuiLabels } from '@/provider';\n\nimport { fieldClearVariants } from './theme';\nimport { type IFieldClearButtonProps } from './types';\n\nimport styles from './styles.module.css';\n\n/** Presentational clear button for field triggers. */\nexport const FieldClearButton = ({ isDisabled, size, variant, onClear }: IFieldClearButtonProps) => {\n const { clear } = useAuiLabels();\n\n return (\n <button\n type=\"button\"\n className={fieldClearVariants({ size, variant })}\n aria-label={clear}\n disabled={isDisabled}\n onPointerDown={event => {\n event.preventDefault();\n event.stopPropagation();\n }}\n onClick={event => {\n event.preventDefault();\n event.stopPropagation();\n onClear();\n }}\n >\n <Clear className={styles.root} />\n </button>\n );\n};\n\nFieldClearButton.displayName = 'FieldClearButton';\n","import { useContext } from 'react';\n\nimport { ComboBoxStateContext, SelectStateContext } from 'react-aria-components';\n\nimport { FieldClearButton } from './Component';\nimport { type TFieldClearSize, type TFieldClearVariant } from './types';\n\nconst isEmptyMultiValue = (value: unknown): boolean => {\n if (value == null) {\n return true;\n }\n\n if (Array.isArray(value)) {\n return value.length === 0;\n }\n\n return false;\n};\n\ninterface IAdapterProps {\n isDisabled: boolean;\n size: TFieldClearSize;\n variant: TFieldClearVariant;\n}\n\n/** Clear for single Select (SelectStateContext). */\nexport const FieldSelectClearButton = ({ isDisabled, size, variant }: IAdapterProps) => {\n const state = useContext(SelectStateContext);\n\n if (!state || state.selectedKey == null || isDisabled) {\n return null;\n }\n\n return (\n <FieldClearButton\n isDisabled={isDisabled}\n size={size}\n variant={variant}\n onClear={() => {\n state.setSelectedKey(null);\n }}\n />\n );\n};\n\nFieldSelectClearButton.displayName = 'FieldSelectClearButton';\n\n/** Clear for multi Select. */\nexport const FieldMultiSelectClearButton = ({ isDisabled, size, variant }: IAdapterProps) => {\n const state = useContext(SelectStateContext);\n\n if (!state || isEmptyMultiValue(state.value) || isDisabled) {\n return null;\n }\n\n return (\n <FieldClearButton\n isDisabled={isDisabled}\n size={size}\n variant={variant}\n onClear={() => {\n state.setValue([]);\n }}\n />\n );\n};\n\nFieldMultiSelectClearButton.displayName = 'FieldMultiSelectClearButton';\n\n/** Clear for single ComboBox. */\nexport const FieldComboBoxClearButton = ({ isDisabled, size, variant }: IAdapterProps) => {\n const state = useContext(ComboBoxStateContext);\n const selected = state?.value;\n\n if (!state || selected == null || selected === '' || isDisabled) {\n return null;\n }\n\n return (\n <FieldClearButton\n isDisabled={isDisabled}\n size={size}\n variant={variant}\n onClear={() => {\n state.setValue(null);\n state.setInputValue('');\n }}\n />\n );\n};\n\nFieldComboBoxClearButton.displayName = 'FieldComboBoxClearButton';\n\n/** Clear for multi ComboBox. */\nexport const FieldMultiComboBoxClearButton = ({ isDisabled, size, variant }: IAdapterProps) => {\n const state = useContext(ComboBoxStateContext);\n\n if (!state || isEmptyMultiValue(state.value) || isDisabled) {\n return null;\n }\n\n return (\n <FieldClearButton\n isDisabled={isDisabled}\n size={size}\n variant={variant}\n onClear={() => {\n state.setValue([]);\n state.setInputValue('');\n }}\n />\n );\n};\n\nFieldMultiComboBoxClearButton.displayName = 'FieldMultiComboBoxClearButton';\n","import { type Key } from 'react-aria-components';\n\nimport { type IComboboxOption, type TComboboxValue } from './types';\n\n/**\n * Resolves selected keys to options in key order.\n * Missing keys fall back to `{ value, label: String(key) }`.\n */\nexport const resolveSelectedOptions = (\n keys: readonly Key[],\n optionsByValue: ReadonlyMap<TComboboxValue, IComboboxOption>\n): IComboboxOption[] =>\n keys.map(key => {\n const value = key as TComboboxValue;\n const found = optionsByValue.get(value);\n\n if (found) {\n return found;\n }\n\n return { value, label: String(key) };\n });\n\n/** True when click originated from remove / nested button chrome (not tag body). */\nexport const isInteractiveTarget = (target: EventTarget | null) => {\n if (!(target instanceof HTMLElement)) {\n return false;\n }\n\n return Boolean(target.closest('[slot=\"remove\"], button'));\n};\n\n/** Normalize RAC value to a key list for tag remove / clear. */\nexport const toKeyList = (value: unknown): Key[] => (Array.isArray(value) ? value : []);\n"],"names":["comboboxItemVariants","cva","styles","ComboboxItemContent","label","jsxs","Fragment","jsx","Check","comboboxPopoverVariants","ComboboxPopover","triggerRef","variant","children","RacPopover","comboboxListBoxVariants","cn","typographyStyles","LoadMoreStatus","loadingSuggestions","useAuiLabels","ComboboxList","options","size","isLoading","isError","showEmptyStatus","hasMore","onLoadMore","isLoadingMore","rowSize","padding","useComboboxListMetrics","showStatus","showItems","showMore","ComboboxListStatus","Virtualizer","ListLayout","ListBox","Collection","item","ListBoxItem","ListBoxLoadMoreItem","fieldClearVariants","FieldClearButton","isDisabled","onClear","clear","event","Clear","isEmptyMultiValue","value","FieldSelectClearButton","state","useContext","SelectStateContext","FieldMultiSelectClearButton","FieldComboBoxClearButton","ComboBoxStateContext","selected","FieldMultiComboBoxClearButton","resolveSelectedOptions","keys","optionsByValue","key","found","isInteractiveTarget","target","toKeyList"],"mappings":";;;;;;;;;;;;;;;;;;GAIaA,IAAuBC,EAAIC,EAAO,MAAM;AAAA,EACjD,UAAU;AAAA,IACN,MAAM;AAAA,MACF,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,IAEf,SAAS;AAAA,MACL,SAASA,EAAO;AAAA,IAAA;AAAA,EACpB;AAAA,EAEJ,iBAAiB;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEjB,CA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AM,KAAK,KAAKR,IACrC,OAIP,gBAAAvC;AAAA,IAACsC;AAAA,IAAA;AAAA,MACG,YAAAC;AAAA,MACA,MAAAvB;AAAA,MACA,SAAAX;AAAA,MACA,SAAS,MAAM;AACX,QAAA0C,EAAM,SAAS,EAAE,GACjBA,EAAM,cAAc,EAAE;AAAA,MAC1B;AAAA,IAAA;AAAA,EAAA;AAGZ;AAEAO,GAA8B,cAAc;AC1GrC,MAAMC,KAAyB,CAClCC,GACAC,MAEAD,EAAK,IAAI,CAAAE,MAAO;AACZ,QAAMb,IAAQa,GACRC,IAAQF,EAAe,IAAIZ,CAAK;AAEtC,SAAIc,KAIG,EAAE,OAAAd,GAAO,OAAO,OAAOa,CAAG,EAAA;AACrC,CAAC,GAGQE,KAAsB,CAACC,MAC1BA,aAAkB,cAIjB,EAAQA,EAAO,QAAQ,yBAAyB,IAH5C,IAOFC,KAAY,CAACjB,MAA2B,MAAM,QAAQA,CAAK,IAAIA,IAAQ,CAAA;"}
1
+ {"version":3,"file":"utils-Dj_u-w0s.js","sources":["../src/combobox/components/Item/theme.ts","../src/combobox/components/Item/index.tsx","../src/combobox/components/Popover/theme.ts","../src/combobox/components/Popover/index.tsx","../src/combobox/components/List/theme.ts","../src/combobox/components/List/index.tsx","../src/field-clear-button/theme.ts","../src/field-clear-button/Component.tsx","../src/field-clear-button/adapters.tsx","../src/combobox/utils.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nimport styles from './styles.module.css';\n\nexport const comboboxItemVariants = cva(styles.root, {\n variants: {\n size: {\n sm: styles.sm,\n md: styles.md,\n lg: styles.lg,\n },\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n },\n});\n","import { Check } from '@/icons';\n\nimport styles from './styles.module.css';\n\nexport { comboboxItemVariants } from './theme';\n\nexport interface IComboboxItemContentProps {\n label: string;\n}\n\nexport const ComboboxItemContent = ({ label }: IComboboxItemContentProps) => (\n <>\n <span className={styles.label}>{label}</span>\n <Check className={styles.check} />\n </>\n);\n\nComboboxItemContent.displayName = 'ComboboxItemContent';\n","import { cva } from 'class-variance-authority';\n\nimport styles from './styles.module.css';\n\nexport const comboboxPopoverVariants = cva(styles.root, {\n variants: {\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n variant: 'primary',\n },\n});\n","import { type ReactNode, type RefObject } from 'react';\n\nimport { Popover as RacPopover } from 'react-aria-components';\n\nimport { type TComboboxVariant } from '../../types';\n\nimport { comboboxPopoverVariants } from './theme';\n\nexport interface IComboboxPopoverProps {\n triggerRef: RefObject<HTMLElement | null>;\n variant: TComboboxVariant;\n children: ReactNode;\n}\n\nexport const ComboboxPopover = ({ triggerRef, variant, children }: IComboboxPopoverProps) => (\n <RacPopover triggerRef={triggerRef} className={comboboxPopoverVariants({ variant })} offset={4}>\n {children}\n </RacPopover>\n);\n\nComboboxPopover.displayName = 'ComboboxPopover';\n","import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\nexport const comboboxListBoxVariants = cva(styles.root, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyM),\n lg: cn(styles.lg, typographyStyles.bodyL),\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n","import { type RefObject } from 'react';\n\nimport { Collection, ListBox, ListBoxItem, ListBoxLoadMoreItem, ListLayout, Virtualizer } from 'react-aria-components';\n\nimport { useAuiLabels } from '@/provider';\n\nimport { type IComboboxOption, type TComboboxSize, type TComboboxVariant } from '../../types';\nimport { ComboboxItemContent, comboboxItemVariants } from '../Item';\nimport { ComboboxListStatus } from '../ListStatus';\nimport { ComboboxPopover } from '../Popover';\n\nimport { useComboboxListMetrics } from './metrics';\nimport { comboboxListBoxVariants } from './theme';\n\nimport styles from './styles.module.css';\n\nconst LoadMoreStatus = () => {\n const { loadingSuggestions } = useAuiLabels();\n\n return (\n <span className={styles.more} role=\"status\">\n {loadingSuggestions}\n </span>\n );\n};\n\nexport interface IComboboxListProps {\n triggerRef: RefObject<HTMLElement | null>;\n options: IComboboxOption[];\n size: TComboboxSize;\n variant: TComboboxVariant;\n isLoading?: boolean;\n isError?: boolean;\n /** When true, empty options show ListStatus empty chrome (autocomplete). */\n showEmptyStatus?: boolean;\n /** Further pages exist. Renders a sentinel at the end of the virtual list. */\n hasMore?: boolean;\n /** Fetch the next page. Called when the sentinel nears the viewport. */\n onLoadMore?: () => void;\n /** True while a later page is loading. Keeps already shown options. */\n isLoadingMore?: boolean;\n}\n\nexport const ComboboxList = ({\n triggerRef,\n options,\n size,\n variant,\n isLoading = false,\n isError = false,\n showEmptyStatus = false,\n hasMore = false,\n onLoadMore,\n isLoadingMore = false,\n}: IComboboxListProps) => {\n const { rowSize, padding } = useComboboxListMetrics(size);\n const showStatus = isLoading || (isError && options.length === 0) || (showEmptyStatus && options.length === 0);\n const showItems = !isLoading && !(isError && options.length === 0) && (!showEmptyStatus || options.length > 0);\n const showMore = showItems && (hasMore || isLoadingMore) && onLoadMore != null;\n\n return (\n <ComboboxPopover triggerRef={triggerRef} variant={variant}>\n {showStatus ? (\n <ComboboxListStatus isLoading={isLoading} isError={isError} isEmpty={!isLoading && !isError} />\n ) : null}\n {showItems ? (\n <Virtualizer layout={ListLayout} layoutOptions={{ rowSize, padding, loaderSize: rowSize }}>\n <ListBox className={comboboxListBoxVariants({ size })}>\n <Collection items={options}>\n {(item: IComboboxOption) => (\n <ListBoxItem\n id={item.value}\n textValue={item.label}\n isDisabled={item.disabled}\n className={comboboxItemVariants({ size, variant })}\n >\n <ComboboxItemContent label={item.label} />\n </ListBoxItem>\n )}\n </Collection>\n {showMore ? (\n <ListBoxLoadMoreItem isLoading={isLoadingMore} onLoadMore={onLoadMore}>\n {isLoadingMore ? <LoadMoreStatus /> : null}\n </ListBoxLoadMoreItem>\n ) : null}\n </ListBox>\n </Virtualizer>\n ) : null}\n </ComboboxPopover>\n );\n};\n\nComboboxList.displayName = 'ComboboxList';\n","import { cva } from 'class-variance-authority';\n\nimport styles from './styles.module.css';\n\nexport const fieldClearVariants = cva(styles.clear, {\n variants: {\n size: {\n sm: styles.sm,\n md: styles.md,\n lg: styles.lg,\n },\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n },\n});\n","import { Clear } from '@/icons';\nimport { useAuiLabels } from '@/provider';\n\nimport { fieldClearVariants } from './theme';\nimport { type IFieldClearButtonProps } from './types';\n\nimport styles from './styles.module.css';\n\n/** Presentational clear button for field triggers. */\nexport const FieldClearButton = ({ isDisabled, size, variant, onClear }: IFieldClearButtonProps) => {\n const { clear } = useAuiLabels();\n\n return (\n <button\n type=\"button\"\n className={fieldClearVariants({ size, variant })}\n aria-label={clear}\n disabled={isDisabled}\n onPointerDown={event => {\n event.preventDefault();\n event.stopPropagation();\n }}\n onClick={event => {\n event.preventDefault();\n event.stopPropagation();\n onClear();\n }}\n >\n <Clear className={styles.root} />\n </button>\n );\n};\n\nFieldClearButton.displayName = 'FieldClearButton';\n","import { useContext } from 'react';\n\nimport { ComboBoxStateContext, SelectStateContext } from 'react-aria-components';\n\nimport { FieldClearButton } from './Component';\nimport { type TFieldClearSize, type TFieldClearVariant } from './types';\n\nconst isEmptyMultiValue = (value: unknown): boolean => {\n if (value == null) {\n return true;\n }\n\n if (Array.isArray(value)) {\n return value.length === 0;\n }\n\n return false;\n};\n\ninterface IAdapterProps {\n isDisabled: boolean;\n size: TFieldClearSize;\n variant: TFieldClearVariant;\n}\n\n/** Clear for single Select (SelectStateContext). */\nexport const FieldSelectClearButton = ({ isDisabled, size, variant }: IAdapterProps) => {\n const state = useContext(SelectStateContext);\n\n if (!state || state.selectedKey == null || isDisabled) {\n return null;\n }\n\n return (\n <FieldClearButton\n isDisabled={isDisabled}\n size={size}\n variant={variant}\n onClear={() => {\n state.setSelectedKey(null);\n }}\n />\n );\n};\n\nFieldSelectClearButton.displayName = 'FieldSelectClearButton';\n\n/** Clear for multi Select. */\nexport const FieldMultiSelectClearButton = ({ isDisabled, size, variant }: IAdapterProps) => {\n const state = useContext(SelectStateContext);\n\n if (!state || isEmptyMultiValue(state.value) || isDisabled) {\n return null;\n }\n\n return (\n <FieldClearButton\n isDisabled={isDisabled}\n size={size}\n variant={variant}\n onClear={() => {\n state.setValue([]);\n }}\n />\n );\n};\n\nFieldMultiSelectClearButton.displayName = 'FieldMultiSelectClearButton';\n\n/** Clear for single ComboBox. */\nexport const FieldComboBoxClearButton = ({ isDisabled, size, variant }: IAdapterProps) => {\n const state = useContext(ComboBoxStateContext);\n const selected = state?.value;\n\n if (!state || selected == null || selected === '' || isDisabled) {\n return null;\n }\n\n return (\n <FieldClearButton\n isDisabled={isDisabled}\n size={size}\n variant={variant}\n onClear={() => {\n state.setValue(null);\n state.setInputValue('');\n }}\n />\n );\n};\n\nFieldComboBoxClearButton.displayName = 'FieldComboBoxClearButton';\n\n/** Clear for multi ComboBox. */\nexport const FieldMultiComboBoxClearButton = ({ isDisabled, size, variant }: IAdapterProps) => {\n const state = useContext(ComboBoxStateContext);\n\n if (!state || isEmptyMultiValue(state.value) || isDisabled) {\n return null;\n }\n\n return (\n <FieldClearButton\n isDisabled={isDisabled}\n size={size}\n variant={variant}\n onClear={() => {\n state.setValue([]);\n state.setInputValue('');\n }}\n />\n );\n};\n\nFieldMultiComboBoxClearButton.displayName = 'FieldMultiComboBoxClearButton';\n","import { type Key } from 'react-aria-components';\n\nimport { type IComboboxOption, type TComboboxValue } from './types';\n\n/**\n * Resolves selected keys to options in key order.\n * Missing keys fall back to `{ value, label: String(key) }`.\n */\nexport const resolveSelectedOptions = (\n keys: readonly Key[],\n optionsByValue: ReadonlyMap<TComboboxValue, IComboboxOption>\n): IComboboxOption[] =>\n keys.map(key => {\n const value = key as TComboboxValue;\n const found = optionsByValue.get(value);\n\n if (found) {\n return found;\n }\n\n return { value, label: String(key) };\n });\n\n/** True when click originated from remove / nested button chrome (not tag body). */\nexport const isInteractiveTarget = (target: EventTarget | null) => {\n if (!(target instanceof HTMLElement)) {\n return false;\n }\n\n return Boolean(target.closest('[slot=\"remove\"], button'));\n};\n\n/** Normalize RAC value to a key list for tag remove / clear. */\nexport const toKeyList = (value: unknown): Key[] => (Array.isArray(value) ? value : []);\n"],"names":["comboboxItemVariants","cva","styles","ComboboxItemContent","label","jsxs","Fragment","jsx","Check","comboboxPopoverVariants","ComboboxPopover","triggerRef","variant","children","RacPopover","comboboxListBoxVariants","cn","typographyStyles","LoadMoreStatus","loadingSuggestions","useAuiLabels","ComboboxList","options","size","isLoading","isError","showEmptyStatus","hasMore","onLoadMore","isLoadingMore","rowSize","padding","useComboboxListMetrics","showStatus","showItems","showMore","ComboboxListStatus","Virtualizer","ListLayout","ListBox","Collection","item","ListBoxItem","ListBoxLoadMoreItem","fieldClearVariants","FieldClearButton","isDisabled","onClear","clear","event","Clear","isEmptyMultiValue","value","FieldSelectClearButton","state","useContext","SelectStateContext","FieldMultiSelectClearButton","FieldComboBoxClearButton","ComboBoxStateContext","selected","FieldMultiComboBoxClearButton","resolveSelectedOptions","keys","optionsByValue","key","found","isInteractiveTarget","target","toKeyList"],"mappings":";;;;;;;;;;;;;;;;;;GAIaA,IAAuBC,EAAIC,EAAO,MAAM;AAAA,EACjD,UAAU;AAAA,IACN,MAAM;AAAA,MACF,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,IAEf,SAAS;AAAA,MACL,SAASA,EAAO;AAAA,IAAA;AAAA,EACpB;AAAA,EAEJ,iBAAiB;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEjB,CAAC,GCTYC,IAAsB,CAAC,EAAE,OAAAC,EAAA,MAClC,gBAAAC,EAAAC,GAAA,EACI,UAAA;AAAA,EAAA,gBAAAC,EAAC,QAAA,EAAK,WAAWL,EAAO,OAAQ,UAAAE,GAAM;AAAA,EACtC,gBAAAG,EAACC,GAA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M,cAAc,EAAE;AAAA,MAC1B;AAAA,IAAA;AAAA,EAAA;AAGZ;AAEAO,GAA8B,cAAc;AC1GrC,MAAMC,KAAyB,CAClCC,GACAC,MAEAD,EAAK,IAAI,CAAAE,MAAO;AACZ,QAAMb,IAAQa,GACRC,IAAQF,EAAe,IAAIZ,CAAK;AAEtC,SAAIc,KAIG,EAAE,OAAAd,GAAO,OAAO,OAAOa,CAAG,EAAA;AACrC,CAAC,GAGQE,KAAsB,CAACC,MAC1BA,aAAkB,cAIjB,EAAQA,EAAO,QAAQ,yBAAyB,IAH5C,IAOFC,KAAY,CAACjB,MAA2B,MAAM,QAAQA,CAAK,IAAIA,IAAQ,CAAA;"}
@@ -0,0 +1,18 @@
1
+ import { IVerticalTabsProps } from './types';
2
+ export declare const VerticalTabs: (({ ref, children, value, defaultValue, onChange, size, variant, disabled, className, dataTestId, ...props }: IVerticalTabsProps) => import("react").JSX.Element) & {
3
+ displayName?: string;
4
+ } & {
5
+ List: (({ ref, children, className, dataTestId, ...props }: import('./types').IVerticalTabsListProps) => import("react").JSX.Element) & {
6
+ displayName?: string;
7
+ };
8
+ Item: (({ ref, id, children, disabled, className, dataTestId, ...props }: import('./types').IVerticalTabsItemProps) => import("react").JSX.Element) & {
9
+ displayName?: string;
10
+ };
11
+ Panels: (({ ref, children, className, dataTestId, ...props }: import('./types').IVerticalTabsPanelsProps) => import("react").JSX.Element) & {
12
+ displayName?: string;
13
+ };
14
+ Panel: (({ ref, id, children, className, dataTestId, ...props }: import('./types').IVerticalTabsPanelProps) => import("react").JSX.Element) & {
15
+ displayName?: string;
16
+ };
17
+ };
18
+ //# sourceMappingURL=Component.d.ts.map