@consumidor-positivo/aurora 3.1.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/astro/FeedbackPage/index.astro +2 -2
- package/astro/FileUpload/Preview/index.astro +33 -11
- package/astro/FileUpload/Root/index.astro +6 -5
- package/astro/ListRow/index.astro +32 -36
- package/astro/Logo/ac/BadgeWhiteStroke.astro +1 -0
- package/astro/Logo/cp/BadgeWhiteStroke.astro +1 -1
- package/astro/SearchBar/index.astro +72 -24
- package/dist/{BadgeWhite-CkZPPGmT.js → BadgeWhite-BjdKCzB3.js} +3 -2
- package/dist/{BadgeWhite-CkZPPGmT.js.map → BadgeWhite-BjdKCzB3.js.map} +1 -1
- package/dist/components/DropdownItem/styles.css +1 -1
- package/dist/components/FeedbackPage/index.es.js +2 -2
- package/dist/components/FeedbackPage/index.es.js.map +1 -1
- package/dist/components/FileUpload/Preview/index.d.ts +15 -4
- package/dist/components/FileUpload/Preview/index.es.js +18 -4
- package/dist/components/FileUpload/Preview/index.es.js.map +1 -1
- package/dist/components/FileUpload/Root/index.d.ts +2 -2
- package/dist/components/FileUpload/Root/index.es.js +2 -2
- package/dist/components/FileUpload/Root/index.es.js.map +1 -1
- package/dist/components/ListRow/index.es.js +4 -7
- package/dist/components/ListRow/index.es.js.map +1 -1
- package/dist/components/ListRow/styles.css +1 -1
- package/dist/components/Logo/index.es.js +1 -1
- package/dist/components/SearchBar/hooks.d.ts +8 -2
- package/dist/components/SearchBar/index.d.ts +1 -1
- package/dist/components/SearchBar/index.es.js +23 -6
- package/dist/components/SearchBar/index.es.js.map +1 -1
- package/dist/components/SearchBar/styles.css +1 -1
- package/dist/components/SearchBar/types.d.ts +6 -0
- package/dist/components/SectionApp/styles.css +1 -1
- package/dist/components/styles/styles.css +1 -1
- package/dist/main.es.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../../../lib/components/SearchBar/hooks.ts","../../../lib/components/SearchBar/index.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react'\nimport { SearchBarGroup, SearchBarOption, SearchBarProps } from './types'\n\nexport type SearchBarRow =\n | { kind: 'category'; key: string; label: string }\n | { kind: 'option'; key: string; option: SearchBarOption; index: number }\n\nconst _isGroup = (entry: SearchBarOption | SearchBarGroup): entry is SearchBarGroup =>\n 'category' in entry\n\n/**\n * Flattens `options` (loose options and titled groups) into the rows the list\n * renders. `index` counts only the options, which is what the keyboard walks.\n */\nexport const getSearchBarRows = (options: Array<SearchBarOption | SearchBarGroup>) => {\n const rows: SearchBarRow[] = []\n let index = 0\n options.forEach((entry, position) => {\n if (_isGroup(entry)) {\n rows.push({ kind: 'category', key: `category-${position}`, label: entry.category })\n entry.options.forEach((option) => {\n rows.push({ kind: 'option', key: `option-${index}`, option, index })\n index += 1\n })\n return\n }\n rows.push({ kind: 'option', key: `option-${index}`, option: entry, index })\n index += 1\n })\n return rows\n}\n\ntype UseSearchBarArgs = Pick<\n SearchBarProps,\n 'value' | 'defaultValue' | 'options' | 'loading' | 'emptyText' | 'disabled' | 'onChange' | 'onSearch' | 'onSelect' | 'onClear'\n>\n\nexport const useSearchBar = ({\n value,\n defaultValue = '',\n options = [],\n loading = false,\n emptyText = '',\n disabled = false,\n onChange,\n onSearch,\n onSelect,\n onClear,\n}: UseSearchBarArgs) => {\n const [internalValue, setInternalValue] = useState(defaultValue)\n const [focused, setFocused] = useState(false)\n // Escape closes the list until the person types or navigates again.\n const [dismissed, setDismissed] = useState(false)\n const [activeIndex, setActiveIndex] = useState<number | null>(null)\n const inputRef = useRef<HTMLInputElement>(null)\n const listRef = useRef<HTMLUListElement>(null)\n\n const isControlled = value !== undefined\n const currentValue = isControlled ? value : internalValue\n\n const rows = getSearchBarRows(options)\n const selectable = rows.filter(\n (row): row is Extract<SearchBarRow, { kind: 'option' }> =>\n row.kind === 'option' && !row.option.disabled,\n )\n const showEmpty = !loading && rows.length === 0 && currentValue !== '' && !!emptyText\n const hasContent = loading || rows.length > 0 || showEmpty\n const isOpen = focused && !dismissed && !disabled && hasContent\n\n // New rows (or the skeletons): the keyboard highlight restarts, so\n // `aria-activedescendant` never points at a row that is gone.\n const rowsKey = rows.map((row) => (row.kind === 'option' ? `${row.key}:${row.option.value}` : row.key)).join('|')\n useEffect(() => {\n setActiveIndex(null)\n }, [loading, rowsKey])\n\n // Scroll the row the keyboard reached into view.\n useEffect(() => {\n if (activeIndex === null || !listRef.current) return\n listRef.current\n .querySelector<HTMLElement>('.au-dropdown-item--focused')\n ?.scrollIntoView({ block: 'nearest' })\n }, [activeIndex])\n\n const _setValue = (next: string) => {\n if (!isControlled) setInternalValue(next)\n onChange?.(next)\n }\n\n const _moveActive = (direction: 'down' | 'up') => {\n if (loading || selectable.length === 0) return\n const positions = selectable.map((row) => row.index)\n const current = activeIndex === null ? -1 : positions.indexOf(activeIndex)\n const step = direction === 'down' ? 1 : -1\n const start = current === -1 && direction === 'up' ? positions.length : current\n const next = (start + step + positions.length) % positions.length\n setActiveIndex(positions[next])\n }\n\n const selectOption = (option: SearchBarOption) => {\n if (option.disabled) return\n _setValue(option.label)\n onSelect?.(option)\n setActiveIndex(null)\n setDismissed(true)\n }\n\n const clear = () => {\n _setValue('')\n onClear?.()\n setActiveIndex(null)\n setDismissed(false)\n inputRef.current?.focus()\n }\n\n const search = () => {\n onSearch?.(currentValue)\n inputRef.current?.focus()\n }\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n _setValue(event.target.value)\n setActiveIndex(null)\n setDismissed(false)\n }\n\n const handleFocus = () => setFocused(true)\n\n const handleBlur = () => {\n setFocused(false)\n setActiveIndex(null)\n }\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (disabled) return\n const _actions: Record<string, () => void> = {\n ArrowDown: () => {\n event.preventDefault()\n setDismissed(false)\n _moveActive('down')\n },\n ArrowUp: () => {\n event.preventDefault()\n setDismissed(false)\n _moveActive('up')\n },\n Enter: () => {\n const active = activeIndex === null ? undefined : selectable.find((row) => row.index === activeIndex)\n if (isOpen && active) {\n event.preventDefault()\n selectOption(active.option)\n return\n }\n onSearch?.(currentValue)\n },\n Escape: () => {\n // Always prevented: Chrome clears a `type=\"search\"` field on Escape.\n event.preventDefault()\n if (!isOpen) return\n setDismissed(true)\n setActiveIndex(null)\n },\n }\n // Own keys only: `event.key` could otherwise reach a prototype member.\n if (Object.prototype.hasOwnProperty.call(_actions, event.key)) _actions[event.key]()\n }\n\n // The list never takes the focus from the field: a click on a row selects\n // it with the field still focused, and moving the mouse drops the keyboard\n // highlight so only one row reads as the current one.\n const handleListMouseDown = (event: React.MouseEvent) => event.preventDefault()\n const handleListMouseMove = () => {\n if (activeIndex !== null) setActiveIndex(null)\n }\n\n return {\n value: currentValue,\n rows,\n isOpen,\n showEmpty,\n activeIndex,\n inputRef,\n listRef,\n selectOption,\n clear,\n search,\n handleChange,\n handleFocus,\n handleBlur,\n handleKeyDown,\n handleListMouseDown,\n handleListMouseMove,\n }\n}\n","import { useId } from 'react'\nimport classNames from 'classnames'\nimport { IconSearch, IconX } from '@components/icons'\nimport { DropdownItem } from '@components/DropdownItem'\nimport { Spinner } from '@components/Spinner'\nimport Field from '../form/Field'\nimport { SearchBarProps } from './types'\nimport { useSearchBar } from './hooks'\nimport './styles.scss'\n\nexport type { SearchBarProps, SearchBarOption, SearchBarGroup } from './types'\n\nexport const SearchBar = ({\n label,\n placeholder = 'Buscar',\n value,\n defaultValue,\n options = [],\n loading = false,\n emptyText = 'Nenhum resultado',\n disabled = false,\n id,\n name,\n className,\n style,\n onChange,\n onSearch,\n onSelect,\n onClear,\n 'data-testid': dataTestId,\n}: SearchBarProps) => {\n const generatedId = useId().replace(/[^a-zA-Z0-9]/g, '')\n const inputId = id ?? `au-search-bar-${generatedId}`\n const labelId = `${inputId}-label`\n const listId = `${inputId}-listbox`\n const optionId = (index: number) => `${inputId}-option-${index}`\n\n const {\n value: currentValue,\n rows,\n isOpen,\n showEmpty,\n activeIndex,\n inputRef,\n listRef,\n selectOption,\n clear,\n search,\n handleChange,\n handleFocus,\n handleBlur,\n handleKeyDown,\n handleListMouseDown,\n handleListMouseMove,\n } = useSearchBar({ value, defaultValue, options, loading, emptyText, disabled, onChange, onSearch, onSelect, onClear })\n\n const rootClasses = classNames('au-search-bar', {\n 'au-search-bar--open': isOpen,\n 'au-search-bar--filled': currentValue !== '',\n 'au-search-bar--loading': loading,\n [className!]: !!className,\n })\n\n const listClasses = classNames('au-search-bar__results', {\n 'au-search-bar__results--open': isOpen,\n })\n\n const _renderAction = () => {\n if (loading) {\n return (\n <div className=\"au-search-bar__action au-search-bar__action--loading\">\n <Spinner />\n </div>\n )\n }\n if (currentValue !== '') {\n return (\n <button\n type=\"button\"\n className=\"au-search-bar__action au-search-bar__action--clear\"\n aria-label=\"Limpar busca\"\n disabled={disabled}\n onMouseDown={handleListMouseDown}\n onClick={clear}>\n <IconX size=\"medium\" />\n </button>\n )\n }\n return (\n <button\n type=\"button\"\n className=\"au-search-bar__action au-search-bar__action--search\"\n aria-label=\"Buscar\"\n disabled={disabled}\n onMouseDown={handleListMouseDown}\n onClick={search}>\n <IconSearch />\n </button>\n )\n }\n\n const _renderRows = () => {\n if (loading) {\n return [0, 1, 2].map((index) => <DropdownItem key={`skeleton-${index}`} label=\"\" state=\"skeleton\" />)\n }\n if (showEmpty) {\n return <DropdownItem label={emptyText} state=\"empty\" />\n }\n return rows.map((row) =>\n row.kind === 'category' ? (\n <DropdownItem key={row.key} type=\"category\" label={row.label} />\n ) : (\n <DropdownItem\n key={row.key}\n id={optionId(row.index)}\n label={row.option.label}\n description={row.option.description}\n disabled={row.option.disabled}\n selected={row.option.selected}\n focused={activeIndex === row.index}\n data-value={row.option.value}\n onClick={() => selectOption(row.option)}\n />\n ),\n )\n }\n\n return (\n <Field.Root style={style} customclass={rootClasses} disabled={disabled}>\n <Field.Label text={label} id={inputId} labelId={labelId} disabled={disabled} showOptionalLabel={false} />\n <div className=\"au-search-bar__control\">\n <input\n ref={inputRef}\n className=\"au-field__input au-search-bar__input\"\n type=\"search\"\n role=\"combobox\"\n id={inputId}\n name={name}\n value={currentValue}\n placeholder={placeholder}\n disabled={disabled}\n autoComplete=\"off\"\n enterKeyHint=\"search\"\n aria-autocomplete=\"list\"\n aria-expanded={isOpen}\n aria-controls={listId}\n aria-label={label ? undefined : placeholder}\n aria-activedescendant={activeIndex === null ? undefined : optionId(activeIndex)}\n data-testid={dataTestId}\n onChange={handleChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onKeyDown={handleKeyDown}\n />\n {_renderAction()}\n </div>\n <ul\n ref={listRef}\n id={listId}\n className={listClasses}\n role=\"listbox\"\n aria-labelledby={label ? labelId : undefined}\n aria-label={label ? undefined : 'Resultados da busca'}\n aria-busy={loading || undefined}\n tabIndex={-1}\n onMouseDown={handleListMouseDown}\n onMouseMove={handleListMouseMove}>\n {_renderRows()}\n </ul>\n </Field.Root>\n )\n}\n"],"names":[],"mappings":";;;;;;;;;AAOA,MAAM,WAAW,CAAC,UAChB,cAAc;AAMT,MAAM,mBAAmB,CAAC,YAAqD;AACpF,QAAM,OAAuB,CAAA;AAC7B,MAAI,QAAQ;AACZ,UAAQ,QAAQ,CAAC,OAAO,aAAa;AACnC,QAAI,SAAS,KAAK,GAAG;AACnB,WAAK,KAAK,EAAE,MAAM,YAAY,KAAK,YAAY,QAAQ,IAAI,OAAO,MAAM,SAAA,CAAU;AAClF,YAAM,QAAQ,QAAQ,CAAC,WAAW;AAChC,aAAK,KAAK,EAAE,MAAM,UAAU,KAAK,UAAU,KAAK,IAAI,QAAQ,MAAA,CAAO;AACnE,iBAAS;AAAA,MACX,CAAC;AACD;AAAA,IACF;AACA,SAAK,KAAK,EAAE,MAAM,UAAU,KAAK,UAAU,KAAK,IAAI,QAAQ,OAAO,MAAA,CAAO;AAC1E,aAAS;AAAA,EACX,CAAC;AACD,SAAO;AACT;AAOO,MAAM,eAAe,CAAC;AAAA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AW;AAAA,QAAA;AAAA,MAAA;AAAA,MAEZ,cAAA;AAAA,IAAc,GACjB;AAAA,IACA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAK;AAAA,QACL,IAAI;AAAA,QACJ,WAAW;AAAA,QACX,MAAK;AAAA,QACL,mBAAiB,QAAQ,UAAU;AAAA,QACnC,cAAY,QAAQ,SAAY;AAAA,QAChC,aAAW,WAAW;AAAA,QACtB,UAAU;AAAA,QACV,aAAa;AAAA,QACb,aAAa;AAAA,QACZ,UAAA,YAAA;AAAA,MAAY;AAAA,IAAA;AAAA,EACf,GACF;AAEJ;"}
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../../../lib/components/SearchBar/hooks.ts","../../../lib/components/SearchBar/index.tsx"],"sourcesContent":["import { useEffect, useRef, useState } from 'react'\nimport { SearchBarGroup, SearchBarOption, SearchBarProps } from './types'\n\nexport type SearchBarRow =\n | { kind: 'category'; key: string; label: string }\n | { kind: 'option'; key: string; option: SearchBarOption; index: number }\n\nconst _isGroup = (entry: SearchBarOption | SearchBarGroup): entry is SearchBarGroup =>\n 'category' in entry\n\n/** Lowercase and without accents, so \"credito\" finds \"Crédito\". The Astro controller has a copy. */\nconst _normalize = (text: string) => text.toLowerCase().normalize('NFD').replace(/[\\u0300-\\u036f]/g, '')\n\nexport const matchesSearch = (label: string, value: string) => _normalize(label).includes(_normalize(value))\n\n/**\n * The `filter` mode (Figma: Sync): keeps the options whose label contains the\n * typed text and drops the groups left empty. An empty text keeps everything.\n */\nexport const filterSearchBarOptions = (options: Array<SearchBarOption | SearchBarGroup>, value: string) => {\n if (value === '') return options\n const filtered: Array<SearchBarOption | SearchBarGroup> = []\n options.forEach((entry) => {\n if (_isGroup(entry)) {\n const matching = entry.options.filter((option) => matchesSearch(option.label, value))\n if (matching.length > 0) filtered.push({ ...entry, options: matching })\n return\n }\n if (matchesSearch(entry.label, value)) filtered.push(entry)\n })\n return filtered\n}\n\n/**\n * Flattens `options` (loose options and titled groups) into the rows the list\n * renders. `index` counts only the options, which is what the keyboard walks.\n */\nexport const getSearchBarRows = (options: Array<SearchBarOption | SearchBarGroup>) => {\n const rows: SearchBarRow[] = []\n let index = 0\n options.forEach((entry, position) => {\n if (_isGroup(entry)) {\n rows.push({ kind: 'category', key: `category-${position}`, label: entry.category })\n entry.options.forEach((option) => {\n rows.push({ kind: 'option', key: `option-${index}`, option, index })\n index += 1\n })\n return\n }\n rows.push({ kind: 'option', key: `option-${index}`, option: entry, index })\n index += 1\n })\n return rows\n}\n\ntype UseSearchBarArgs = Pick<\n SearchBarProps,\n 'value' | 'defaultValue' | 'options' | 'filter' | 'loading' | 'emptyText' | 'disabled' | 'onChange' | 'onSearch' | 'onSelect' | 'onClear'\n>\n\nexport const useSearchBar = ({\n value,\n defaultValue = '',\n options = [],\n filter = false,\n loading = false,\n emptyText = '',\n disabled = false,\n onChange,\n onSearch,\n onSelect,\n onClear,\n}: UseSearchBarArgs) => {\n const [internalValue, setInternalValue] = useState(defaultValue)\n const [focused, setFocused] = useState(false)\n // Escape closes the list until the person types or navigates again.\n const [dismissed, setDismissed] = useState(false)\n const [activeIndex, setActiveIndex] = useState<number | null>(null)\n const inputRef = useRef<HTMLInputElement>(null)\n const listRef = useRef<HTMLUListElement>(null)\n\n const isControlled = value !== undefined\n const currentValue = isControlled ? value : internalValue\n\n const rows = getSearchBarRows(filter ? filterSearchBarOptions(options, currentValue) : options)\n const selectable = rows.filter(\n (row): row is Extract<SearchBarRow, { kind: 'option' }> =>\n row.kind === 'option' && !row.option.disabled,\n )\n const showEmpty = !loading && rows.length === 0 && currentValue !== '' && !!emptyText\n const hasContent = loading || rows.length > 0 || showEmpty\n const isOpen = focused && !dismissed && !disabled && hasContent\n\n // New rows (or the skeletons): the keyboard highlight restarts, so\n // `aria-activedescendant` never points at a row that is gone.\n const rowsKey = rows.map((row) => (row.kind === 'option' ? `${row.key}:${row.option.value}` : row.key)).join('|')\n useEffect(() => {\n setActiveIndex(null)\n }, [loading, rowsKey])\n\n // Scroll the row the keyboard reached into view.\n useEffect(() => {\n if (activeIndex === null || !listRef.current) return\n listRef.current\n .querySelector<HTMLElement>('.au-dropdown-item--focused')\n ?.scrollIntoView({ block: 'nearest' })\n }, [activeIndex])\n\n const _setValue = (next: string) => {\n if (!isControlled) setInternalValue(next)\n onChange?.(next)\n }\n\n const _moveActive = (direction: 'down' | 'up') => {\n if (loading || selectable.length === 0) return\n const positions = selectable.map((row) => row.index)\n const current = activeIndex === null ? -1 : positions.indexOf(activeIndex)\n const step = direction === 'down' ? 1 : -1\n const start = current === -1 && direction === 'up' ? positions.length : current\n const next = (start + step + positions.length) % positions.length\n setActiveIndex(positions[next])\n }\n\n const selectOption = (option: SearchBarOption) => {\n if (option.disabled) return\n _setValue(option.label)\n onSelect?.(option)\n setActiveIndex(null)\n setDismissed(true)\n }\n\n const clear = () => {\n _setValue('')\n onClear?.()\n setActiveIndex(null)\n setDismissed(false)\n inputRef.current?.focus()\n }\n\n const search = () => {\n onSearch?.(currentValue)\n inputRef.current?.focus()\n }\n\n const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n _setValue(event.target.value)\n setActiveIndex(null)\n setDismissed(false)\n }\n\n const handleFocus = () => setFocused(true)\n\n const handleBlur = () => {\n setFocused(false)\n setActiveIndex(null)\n }\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (disabled) return\n const _actions: Record<string, () => void> = {\n ArrowDown: () => {\n event.preventDefault()\n setDismissed(false)\n _moveActive('down')\n },\n ArrowUp: () => {\n event.preventDefault()\n setDismissed(false)\n _moveActive('up')\n },\n Enter: () => {\n const active = activeIndex === null ? undefined : selectable.find((row) => row.index === activeIndex)\n if (isOpen && active) {\n event.preventDefault()\n selectOption(active.option)\n return\n }\n onSearch?.(currentValue)\n },\n Escape: () => {\n // Always prevented: Chrome clears a `type=\"search\"` field on Escape.\n event.preventDefault()\n if (!isOpen) return\n setDismissed(true)\n setActiveIndex(null)\n },\n }\n // Own keys only: `event.key` could otherwise reach a prototype member.\n if (Object.prototype.hasOwnProperty.call(_actions, event.key)) _actions[event.key]()\n }\n\n // The list never takes the focus from the field: a click on a row selects\n // it with the field still focused, and moving the mouse drops the keyboard\n // highlight so only one row reads as the current one.\n const handleListMouseDown = (event: React.MouseEvent) => event.preventDefault()\n const handleListMouseMove = () => {\n if (activeIndex !== null) setActiveIndex(null)\n }\n\n return {\n value: currentValue,\n rows,\n isOpen,\n showEmpty,\n activeIndex,\n inputRef,\n listRef,\n selectOption,\n clear,\n search,\n handleChange,\n handleFocus,\n handleBlur,\n handleKeyDown,\n handleListMouseDown,\n handleListMouseMove,\n }\n}\n","import { useId } from 'react'\nimport classNames from 'classnames'\nimport { IconSearch, IconX } from '@components/icons'\nimport { DropdownItem } from '@components/DropdownItem'\nimport { Spinner } from '@components/Spinner'\nimport Field from '../form/Field'\nimport { SearchBarProps } from './types'\nimport { useSearchBar } from './hooks'\nimport './styles.scss'\n\nexport type { SearchBarProps, SearchBarOption, SearchBarGroup } from './types'\n\nexport const SearchBar = ({\n label,\n placeholder = 'Buscar',\n value,\n defaultValue,\n options = [],\n filter = false,\n loading = false,\n emptyText = 'Nenhum resultado',\n disabled = false,\n id,\n name,\n className,\n style,\n onChange,\n onSearch,\n onSelect,\n onClear,\n 'data-testid': dataTestId,\n}: SearchBarProps) => {\n const generatedId = useId().replace(/[^a-zA-Z0-9]/g, '')\n const inputId = id ?? `au-search-bar-${generatedId}`\n const labelId = `${inputId}-label`\n const listId = `${inputId}-listbox`\n const optionId = (index: number) => `${inputId}-option-${index}`\n\n const {\n value: currentValue,\n rows,\n isOpen,\n showEmpty,\n activeIndex,\n inputRef,\n listRef,\n selectOption,\n clear,\n search,\n handleChange,\n handleFocus,\n handleBlur,\n handleKeyDown,\n handleListMouseDown,\n handleListMouseMove,\n } = useSearchBar({ value, defaultValue, options, filter, loading, emptyText, disabled, onChange, onSearch, onSelect, onClear })\n\n const rootClasses = classNames('au-search-bar', {\n 'au-search-bar--open': isOpen,\n // Disabled keeps the search icon: the spec has no Filled state with the X there.\n 'au-search-bar--filled': currentValue !== '' && !disabled,\n 'au-search-bar--loading': loading,\n [className!]: !!className,\n })\n\n const listClasses = classNames('au-search-bar__results', {\n 'au-search-bar__results--open': isOpen,\n })\n\n const _renderAction = () => {\n if (loading) {\n return (\n <div className=\"au-search-bar__action au-search-bar__action--loading\">\n <Spinner />\n </div>\n )\n }\n if (currentValue !== '' && !disabled) {\n return (\n <button\n type=\"button\"\n className=\"au-search-bar__action au-search-bar__action--clear\"\n aria-label=\"Limpar busca\"\n onMouseDown={handleListMouseDown}\n onClick={clear}>\n <IconX />\n </button>\n )\n }\n return (\n <button\n type=\"button\"\n className=\"au-search-bar__action au-search-bar__action--search\"\n aria-label=\"Buscar\"\n disabled={disabled}\n onMouseDown={handleListMouseDown}\n onClick={search}>\n <IconSearch />\n </button>\n )\n }\n\n const _renderRows = () => {\n if (loading) {\n return [0, 1, 2].map((index) => <DropdownItem key={`skeleton-${index}`} label=\"\" state=\"skeleton\" />)\n }\n if (showEmpty) {\n return <DropdownItem label={emptyText} state=\"empty\" />\n }\n return rows.map((row) =>\n row.kind === 'category' ? (\n <DropdownItem key={row.key} type=\"category\" label={row.label} />\n ) : (\n <DropdownItem\n key={row.key}\n id={optionId(row.index)}\n label={row.option.label}\n description={row.option.description}\n disabled={row.option.disabled}\n selected={row.option.selected}\n focused={activeIndex === row.index}\n data-value={row.option.value}\n onClick={() => selectOption(row.option)}\n />\n ),\n )\n }\n\n return (\n <Field.Root style={style} customclass={rootClasses} disabled={disabled}>\n <Field.Label text={label} id={inputId} labelId={labelId} disabled={disabled} showOptionalLabel={false} />\n <div className=\"au-search-bar__control\">\n <input\n ref={inputRef}\n className=\"au-field__input au-search-bar__input\"\n type=\"search\"\n role=\"combobox\"\n id={inputId}\n name={name}\n value={currentValue}\n placeholder={placeholder}\n disabled={disabled}\n autoComplete=\"off\"\n enterKeyHint=\"search\"\n aria-autocomplete=\"list\"\n aria-expanded={isOpen}\n aria-controls={listId}\n aria-label={label ? undefined : placeholder}\n aria-activedescendant={activeIndex === null ? undefined : optionId(activeIndex)}\n data-testid={dataTestId}\n onChange={handleChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onKeyDown={handleKeyDown}\n />\n {_renderAction()}\n </div>\n <ul\n ref={listRef}\n id={listId}\n className={listClasses}\n role=\"listbox\"\n aria-labelledby={label ? labelId : undefined}\n aria-label={label ? undefined : 'Resultados da busca'}\n aria-busy={loading || undefined}\n tabIndex={-1}\n onMouseDown={handleListMouseDown}\n onMouseMove={handleListMouseMove}>\n {_renderRows()}\n </ul>\n </Field.Root>\n )\n}\n"],"names":[],"mappings":";;;;;;;;;AAOA,MAAM,WAAW,CAAC,UAChB,cAAc;AAGhB,MAAM,aAAa,CAAC,SAAiB,KAAK,YAAA,EAAc,UAAU,KAAK,EAAE,QAAQ,oBAAoB,EAAE;AAEhG,MAAM,gBAAgB,CAAC,OAAe,UAAkB,WAAW,KAAK,EAAE,SAAS,WAAW,KAAK,CAAC;AAMpG,MAAM,yBAAyB,CAAC,SAAkD,UAAkB;AACzG,MAAI,UAAU,GAAI,QAAO;AACzB,QAAM,WAAoD,CAAA;AAC1D,UAAQ,QAAQ,CAAC,UAAU;AACzB,QAAI,SAAS,KAAK,GAAG;AACnB,YAAM,WAAW,MAAM,QAAQ,OAAO,CAAC,WAAW,cAAc,OAAO,OAAO,KAAK,CAAC;AACpF,UAAI,SAAS,SAAS,EAAG,UAAS,KAAK,EAAE,GAAG,OAAO,SAAS,UAAU;AACtE;AAAA,IACF;AACA,QAAI,cAAc,MAAM,OAAO,KAAK,EAAG,UAAS,KAAK,KAAK;AAAA,EAC5D,CAAC;AACD,SAAO;AACT;AAMO,MAAM,mBAAmB,CAAC,YAAqD;AACpF,QAAM,OAAuB,CAAA;AAC7B,MAAI,QAAQ;AACZ,UAAQ,QAAQ,CAAC,OAAO,aAAa;AACnC,QAAI,SAAS,KAAK,GAAG;AACnB,WAAK,KAAK,EAAE,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OAAA,EAAI,WAAU,0BACb,UAAA;AAAA,MAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,KAAK;AAAA,UACL,WAAU;AAAA,UACV,MAAK;AAAA,UACL,MAAK;AAAA,UACL,IAAI;AAAA,UACJ;AAAA,UACA,OAAO;AAAA,UACP;AAAA,UACA;AAAA,UACA,cAAa;AAAA,UACb,cAAa;AAAA,UACb,qBAAkB;AAAA,UAClB,iBAAe;AAAA,UACf,iBAAe;AAAA,UACf,cAAY,QAAQ,SAAY;AAAA,UAChC,yBAAuB,gBAAgB,OAAO,SAAY,SAAS,WAAW;AAAA,UAC9E,eAAa;AAAA,UACb,UAAU;AAAA,UACV,SAAS;AAAA,UACT,QAAQ;AAAA,UACR,WAAW;AAAA,QAAA;AAAA,MAAA;AAAA,MAEZ,cAAA;AAAA,IAAc,GACjB;AAAA,IACA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAK;AAAA,QACL,IAAI;AAAA,QACJ,WAAW;AAAA,QACX,MAAK;AAAA,QACL,mBAAiB,QAAQ,UAAU;AAAA,QACnC,cAAY,QAAQ,SAAY;AAAA,QAChC,aAAW,WAAW;AAAA,QACtB,UAAU;AAAA,QACV,aAAa;AAAA,QACb,aAAa;AAAA,QACZ,UAAA,YAAA;AAAA,MAAY;AAAA,IAAA;AAAA,EACf,GACF;AAEJ;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.au-search-bar,.au-search-bar__control{position:relative}.au-search-bar .au-search-bar__input{padding-right:52px;border-color:#e2e4e9;line-height:24px;color:#16181d;-moz-appearance:none;appearance:none;-webkit-appearance:none}.au-search-bar .au-search-bar__input::-webkit-search-decoration,.au-search-bar .au-search-bar__input::-webkit-search-cancel-button,.au-search-bar .au-search-bar__input::-webkit-search-results-button,.au-search-bar .au-search-bar__input::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.au-search-bar .au-search-bar__input::placeholder{color:#5e6573}.au-search-bar .au-search-bar__input:hover{border-color:#454a54}.au-search-bar .au-search-bar__input:focus{border-color:#0048db;outline:none}.au-search-bar .au-search-bar__input:active:not(:disabled){border-color:#0048db;outline:1px solid #0048db}.au-search-bar.au-field--disabled .au-search-bar__input{border-color:#5e6573}.au-search-bar--filled .au-search-bar__input{padding-right:56px}.au-search-bar__action{position:absolute;right:16px;top:50%;display:flex;width:20px;height:20px;padding:0;align-items:center;justify-content:center;border:0;border-radius:999px;background:none;color:#0048db;transform:translateY(-50%);cursor:pointer}.au-search-bar__action .au-icon,.au-search-bar__action .au-icon>svg{color:inherit}.au-search-bar__action:focus-visible{outline:2px solid #0048db;outline-offset:2px}.au-search-bar__action:disabled{color:#5e6573;cursor:not-allowed}.au-search-bar__action--clear{right:8px;width:40px;height:40px;padding:
|
|
1
|
+
.au-search-bar,.au-search-bar__control{position:relative}.au-search-bar .au-search-bar__input{padding-right:52px;border-color:#e2e4e9;line-height:24px;color:#16181d;-moz-appearance:none;appearance:none;-webkit-appearance:none}.au-search-bar .au-search-bar__input::-webkit-search-decoration,.au-search-bar .au-search-bar__input::-webkit-search-cancel-button,.au-search-bar .au-search-bar__input::-webkit-search-results-button,.au-search-bar .au-search-bar__input::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.au-search-bar .au-search-bar__input::placeholder{color:#5e6573}.au-search-bar .au-search-bar__input:hover{border-color:#454a54}.au-search-bar .au-search-bar__input:focus{border-color:#0048db;outline:none}.au-search-bar .au-search-bar__input:active:not(:disabled){border-color:#0048db;outline:1px solid #0048db}.au-search-bar.au-field--disabled .au-search-bar__input{border-color:#5e6573}.au-search-bar--filled .au-search-bar__input{padding-right:56px}.au-search-bar__action{position:absolute;right:16px;top:50%;display:flex;width:20px;height:20px;padding:0;align-items:center;justify-content:center;border:0;border-radius:999px;background:none;color:#0048db;transform:translateY(-50%);cursor:pointer}.au-search-bar__action .au-icon,.au-search-bar__action .au-icon>svg{color:inherit}.au-search-bar__action:focus-visible{outline:2px solid #0048db;outline-offset:2px}.au-search-bar__action:disabled{color:#5e6573;cursor:not-allowed}.au-search-bar__action--clear{right:8px;width:40px;height:40px;padding:10px;color:#16181d;transition:background-color .3s ease}.au-search-bar__action--clear:hover,.au-search-bar__action--clear:focus-visible{background-color:#f2f5fc}.au-search-bar__action--clear:active{background-color:#dce8ff}.au-search-bar__action--loading{cursor:default}.au-search-bar__results{position:absolute;left:0;right:0;z-index:1;max-height:218px;margin:16px 0 0;padding:0;box-sizing:border-box;overflow-y:auto;list-style:none;background:#fff;border:1px solid #0048db;border-radius:8px;transform-origin:top left;transform:scaleY(0);opacity:0;visibility:hidden;transition:transform .2s,opacity .2s,visibility 0s .2s;scrollbar-width:thin;scrollbar-color:#16181d transparent}.au-search-bar__results::-webkit-scrollbar{width:12px}.au-search-bar__results::-webkit-scrollbar-thumb{background-color:#16181d;background-clip:padding-box;border:4px solid transparent;border-radius:8px}.au-search-bar__results::-webkit-scrollbar-track{background-color:transparent}.au-search-bar__results--open{transform:scaleY(1);opacity:1;visibility:visible;transition:transform .2s,opacity .2s}
|
|
@@ -21,6 +21,12 @@ export type SearchBarProps = {
|
|
|
21
21
|
defaultValue?: string;
|
|
22
22
|
/** Resultados da busca, soltos ou em grupos com título. A lista abre com o campo em foco. */
|
|
23
23
|
options?: Array<SearchBarOption | SearchBarGroup>;
|
|
24
|
+
/**
|
|
25
|
+
* Filtra `options` pelo texto digitado no próprio componente, a cada letra, sem acento e sem
|
|
26
|
+
* diferenciar maiúsculas (Figma: Sync). Grupo que fica sem opção some. Com o campo vazio a lista
|
|
27
|
+
* sai inteira. Desligado, quem filtra é o app (busca assíncrona, com `loading`).
|
|
28
|
+
*/
|
|
29
|
+
filter?: boolean;
|
|
24
30
|
/** Spinner no lugar do ícone e lista de skeletons enquanto os resultados chegam (Figma: Loading). */
|
|
25
31
|
loading?: boolean;
|
|
26
32
|
/** Linha mostrada quando há texto e nenhum resultado (Figma: No Results). Vazio desliga. @default 'Nenhum resultado' */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.au-section-app{display:flex;flex-direction:column;width:100%;box-sizing:border-box;background-color:#fff;font-family:"Source Sans 3",sans-serif;text-align:start}.au-section-app__content{display:flex;flex-direction:column;align-items:flex-start;gap:24px;padding:32px 24px 0;box-sizing:border-box}.au-section-app__logo{display:flex;align-items:center;justify-content:center;width:40px;height:40px;overflow:hidden;border-radius:11.25px;background-color:#0048db;color:#fff}.au-section-app__logo img,.au-section-app__logo svg{display:block;width:100%;height:100%}.au-section-app__text{display:flex;flex-direction:column;gap:16px}.au-section-app__title{margin:0;color:#16181d}.au-section-app__description{margin:0;color:#454a54}.au-section-app__actions{display:flex;flex-direction:column;gap:24px}.au-section-app__stores{display:flex;flex-wrap:wrap;gap:8px}.au-section-app__store{display:block;width:133px;height:42px}.au-section-app__store img{display:block;width:100%;height:100%;object-fit:contain}.au-section-app__store:hover{opacity:.6}.au-section-app__actions-divider,.au-section-app__qr{display:none}.au-section-app__actions-divider{width:0;height:48px;border-left:1px solid #e2e4e9}.au-section-app__qr{align-items:center;gap:8px}.au-section-app__qr-image{display:block;flex:none;width:74px;height:74px}.au-section-app__qr-text{margin:0;max-width:180px;color:#454a54}.au-section-app__list{display:flex;flex-direction:column;gap:16px;margin:0;padding:0;list-style:none}.au-section-app__item{display:flex;align-items:flex-start;gap:16px}.au-section-app__marker{display:flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background-color:#f6f7fa;color:#454a54;font-size:14px;font-weight:600;line-height:22px}.au-section-app__marker .au-icon,.au-section-app__marker .au-icon>svg{color:#0048db}.au-section-app__item-text{font-size:14px;font-weight:400;line-height:22px;color:#454a54}.au-section-app__image-area{display:flex;padding:24px;box-sizing:border-box}.au-section-app__image{display:flex;align-items:center;justify-content:center;width:272px;max-width:100%;
|
|
1
|
+
.au-section-app{display:flex;flex-direction:column;width:100%;box-sizing:border-box;background-color:#fff;font-family:"Source Sans 3",sans-serif;text-align:start}.au-section-app__content{display:flex;flex-direction:column;align-items:flex-start;gap:24px;padding:32px 24px 0;box-sizing:border-box}.au-section-app__logo{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:6px;box-sizing:border-box;overflow:hidden;border-radius:11.25px;background-color:#0048db;color:#fff}.au-section-app__logo img,.au-section-app__logo svg{display:block;width:100%;height:100%}.au-section-app__logo .au-logo{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.au-section-app__text{display:flex;flex-direction:column;gap:16px}.au-section-app__title{margin:0;color:#16181d}.au-section-app__description{margin:0;color:#454a54}.au-section-app__actions{display:flex;flex-direction:column;gap:24px}.au-section-app__stores{display:flex;flex-wrap:wrap;gap:8px}.au-section-app__store{display:block;width:133px;height:42px}.au-section-app__store img{display:block;width:100%;height:100%;object-fit:contain}.au-section-app__store:hover{opacity:.6}.au-section-app__actions-divider,.au-section-app__qr{display:none}.au-section-app__actions-divider{width:0;height:48px;border-left:1px solid #e2e4e9}.au-section-app__qr{align-items:center;gap:8px}.au-section-app__qr-image{display:block;flex:none;width:74px;height:74px}.au-section-app__qr-text{margin:0;max-width:180px;color:#454a54}.au-section-app__list{display:flex;flex-direction:column;gap:16px;margin:0;padding:0;list-style:none}.au-section-app__item{display:flex;align-items:flex-start;gap:16px}.au-section-app__marker{display:flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background-color:#f6f7fa;color:#454a54;font-size:14px;font-weight:600;line-height:22px}.au-section-app__marker .au-icon,.au-section-app__marker .au-icon>svg{color:#0048db}.au-section-app__item-text{font-size:14px;font-weight:400;line-height:22px;color:#454a54}.au-section-app__image-area{display:flex;padding:24px;box-sizing:border-box}.au-section-app__image{display:flex;align-items:center;justify-content:center;width:272px;max-width:100%;aspect-ratio:272/368;padding:8px;box-sizing:border-box;overflow:hidden;border:1px solid #e2e4e9;border-radius:8px;background-color:#f6f7fa}.au-section-app__image img,.au-section-app__image svg{display:block;width:100%;height:auto}.au-section-app__image picture{display:contents}.au-section-app__image--filled{aspect-ratio:auto;padding:0;border:0;border-radius:0;background:none}.au-section-app--size-desktop{flex-direction:row;align-items:stretch;gap:24px}.au-section-app--size-desktop .au-section-app__content{flex:1 1 717px;min-width:0;max-width:717px;padding:64px 32px 64px 83px}.au-section-app--size-desktop .au-section-app__actions{flex-direction:row;align-items:center}.au-section-app--size-desktop .au-section-app__actions-divider{display:block}.au-section-app--size-desktop .au-section-app__qr{display:flex}.au-section-app--size-desktop .au-section-app__image-area{flex:1 1 649px;min-width:0;align-items:center;justify-content:center;padding:64px 83px 64px 32px}.au-section-app--size-desktop .au-section-app__image{width:534px;aspect-ratio:534/446}@media(min-width:1024px){.au-section-app:not(.au-section-app--size-mobile){flex-direction:row;align-items:stretch;gap:24px}.au-section-app:not(.au-section-app--size-mobile) .au-section-app__content{flex:1 1 717px;min-width:0;max-width:717px;padding:64px 32px 64px 83px}.au-section-app:not(.au-section-app--size-mobile) .au-section-app__actions{flex-direction:row;align-items:center}.au-section-app:not(.au-section-app--size-mobile) .au-section-app__actions-divider{display:block}.au-section-app:not(.au-section-app--size-mobile) .au-section-app__qr{display:flex}.au-section-app:not(.au-section-app--size-mobile) .au-section-app__image-area{flex:1 1 649px;min-width:0;align-items:center;justify-content:center;padding:64px 83px 64px 32px}.au-section-app:not(.au-section-app--size-mobile) .au-section-app__image{width:534px;aspect-ratio:534/446}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.au-file-upload{display:flex;flex-direction:column;width:100%}.au-file-upload__area{position:relative;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;width:100%;font-family:"Source Sans 3",sans-serif}.au-file-upload--type-drag-drop .au-file-upload__area{align-items:center;padding:24px;text-align:center;background-color:#fff;border:1px dashed #c4c9d4;border-radius:16px;transition:background-color .3s ease,border-color .3s ease}.au-file-upload--type-drag-drop .au-file-upload__input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.au-file-upload--type-drag-drop
|
|
1
|
+
.au-file-upload{display:flex;flex-direction:column;width:100%}.au-file-upload__area{position:relative;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;width:100%;font-family:"Source Sans 3",sans-serif}.au-file-upload--type-drag-drop .au-file-upload__area{align-items:center;padding:24px;text-align:center;background-color:#fff;border:1px dashed #c4c9d4;border-radius:16px;transition:background-color .3s ease,border-color .3s ease}.au-file-upload--type-drag-drop .au-file-upload__input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.au-file-upload--type-drag-drop:not(.au-file-upload--disabled) .au-file-upload__area:hover,.au-file-upload--type-drag-drop.au-file-upload--dragging .au-file-upload__area{background-color:#f2f5fc;border-color:#0048db}.au-file-upload--type-drag-drop .au-file-upload__area:has(>.au-file-upload__input:focus-visible){border-style:solid;border-color:#0048db;outline:1px solid #0048db}.au-file-upload--type-drag-drop.au-file-upload--disabled .au-file-upload__area{background-color:#f6f7fa;border-color:#e2e4e9}.au-file-upload--type-drag-drop.au-file-upload--disabled .au-file-upload__input{cursor:default}.au-file-upload--type-button .au-file-upload__area{align-items:flex-start;gap:16px;text-align:start}.au-file-upload--type-button .au-file-upload__input{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;opacity:0;pointer-events:none}.au-file-upload__icon{display:flex;align-items:center;justify-content:center}.au-file-upload__text{display:flex;flex-direction:column}.au-file-upload--type-button .au-file-upload__text{gap:8px}.au-file-upload__title{font-size:14px;line-height:22px;font-weight:600;color:#454a54}.au-file-upload__helper{font-size:14px;line-height:22px;color:#5e6573}.au-file-upload--disabled .au-file-upload__title,.au-file-upload--disabled .au-file-upload__helper{color:#c4c9d4}.au-file-upload--disabled .au-file-upload__icon .au-icon,.au-file-upload--disabled .au-file-upload__icon .au-icon>svg{color:#c4c9d4}.au-file-upload__files{display:flex;flex-direction:column;gap:8px;margin-top:8px}.au-file-upload-preview{display:flex;flex-direction:column;gap:8px;box-sizing:border-box;width:100%;padding:14px 12px;font-family:"Source Sans 3",sans-serif;background-color:#fff;border:1px solid #e2e4e9;border-radius:8px}.au-file-upload-preview__row{display:flex;align-items:center;gap:12px}.au-file-upload-preview__icon{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:40px;height:40px;background-color:#f6f7fa;border-radius:8px}.au-file-upload-preview__icon .au-icon,.au-file-upload-preview__icon .au-icon>svg{color:#313131}.au-file-upload-preview--error .au-file-upload-preview__icon{background-color:#ffe5e5}.au-file-upload-preview--error .au-file-upload-preview__icon .au-icon,.au-file-upload-preview--error .au-file-upload-preview__icon .au-icon>svg{color:#991717}.au-file-upload-preview__text{display:flex;flex:1;flex-direction:column;min-width:0}.au-file-upload-preview__name{overflow:hidden;font-size:14px;line-height:22px;font-weight:600;color:#454a54;text-overflow:ellipsis;white-space:nowrap}.au-file-upload-preview__description{font-size:12px;line-height:19px;color:#5e6573}.au-file-upload-preview__actions{display:flex;flex-shrink:0;align-items:center;gap:10px}.au-file-upload-preview .au-file-upload-preview__link{min-height:40px;padding:0 16px;margin:0 -16px}.au-file-upload-preview__actions-divider{width:0;height:40px;border-left:1px solid #F2F5FC}.au-file-upload-preview__remove{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:8px;background-color:transparent;border:none;border-radius:999px;cursor:pointer;transition:background-color .3s ease}.au-file-upload-preview__remove:hover,.au-file-upload-preview__remove:focus-visible{background-color:#f2f5fc}.au-file-upload-preview__remove:active{background-color:#dce8ff}.au-file-upload-preview__error{margin-top:12px;font-size:12px;line-height:19px;color:#991717}.au-file-upload-preview__progress{width:100%}.au-file-upload-preview__progress .au-progress-bar{gap:12px}.au-file-upload-preview__progress .au-progress-bar__text .au-text{font-size:12px;line-height:19px}
|
package/dist/main.es.js
CHANGED
|
@@ -54,7 +54,7 @@ import { Breadcrumb } from "./components/Breadcrumb/index.es.js";
|
|
|
54
54
|
import { Accordion } from "./components/Accordion/index.es.js";
|
|
55
55
|
import { Carousel } from "./components/Carousel/index.es.js";
|
|
56
56
|
import { useState } from "react";
|
|
57
|
-
import { L, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s } from "./BadgeWhite-
|
|
57
|
+
import { L, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s } from "./BadgeWhite-BjdKCzB3.js";
|
|
58
58
|
import { IconActivity } from "./components/icons/IconActivity/index.es.js";
|
|
59
59
|
import { IconAi } from "./components/icons/IconAi/index.es.js";
|
|
60
60
|
import { IconAiBox } from "./components/icons/IconAiBox/index.es.js";
|