sanity-plugin-iconify 3.0.0 → 4.0.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.
- package/README.md +1 -1
- package/dist/index.cjs +336 -296
- package/dist/index.d.cts +89 -363
- package/dist/index.d.mts +89 -0
- package/dist/index.mjs +369 -0
- package/package.json +71 -49
- package/src/combobox/search-input.tsx +12 -2
- package/src/lib/api.ts +1 -0
- package/src/lib/icon-types.gen.ts +1 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -363
- package/dist/index.js +0 -362
- package/dist/index.js.map +0 -1
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/lib/api.ts","../src/combobox/iconify-combobox.styles.tsx","../src/combobox/search-input.tsx","../src/combobox/search-result.tsx","../src/combobox/unset-button.tsx","../src/combobox/iconify-combobox.tsx","../src/lib/query-client.tsx","../src/lib/use-pretty-icon-name.ts","../src/iconify-input.tsx","../src/iconify-preview.tsx","../src/iconify-plugin.tsx"],"sourcesContent":["import type { IconifyInfo } from '@iconify/types';\nimport { keepPreviousData, useQuery, useQueryClient } from '@tanstack/react-query';\nimport { useCallback, useState } from 'react';\nimport { useDebounce } from 'use-debounce';\nimport type { IconifySearchResult } from './types';\n\nconst BASE_API_URL = 'https://api.iconify.design';\n\nfunction fetchJson<T>({ url, signal }: { url: string | URL; signal?: AbortSignal }): Promise<T> {\n return fetch(url, { signal })\n .then((response) => {\n if (!response.ok) {\n throw new Error(`Network error: status ${response.status}`);\n }\n\n return response.json();\n })\n .then(\n (result) => result as T,\n (error) => {\n if (error instanceof Error) {\n throw error;\n } else {\n console.error(`Unknown error: ${error}`);\n throw new Error('Something went wrong');\n }\n },\n );\n}\n\nexport function useSearch({ collections }: { collections: string[] | null }) {\n const queryClient = useQueryClient();\n const [term, setTerm] = useState('');\n const [debouncedTerm, setDebouncedTerm] = useDebounce(term, 500);\n\n const updateTerm = useCallback(\n (newTerm: string, updateImmediately = false) => {\n setTerm(newTerm);\n\n if (updateImmediately) {\n setDebouncedTerm(newTerm);\n }\n },\n [setDebouncedTerm],\n );\n\n const { isLoading, isError, error, data, isPlaceholderData } = useQuery<string[], Error>({\n queryKey: ['search', collections, debouncedTerm],\n queryFn: async ({ signal }) => {\n const url = new URL(`/search`, BASE_API_URL);\n\n url.searchParams.append('query', debouncedTerm);\n url.searchParams.append('limit', '60');\n\n if (collections) {\n url.searchParams.append('prefixes', collections.join(','));\n }\n\n const result = debouncedTerm ? await fetchJson<IconifySearchResult>({ url, signal }) : null;\n\n if (result) {\n // Cache the info for each collection\n Object.entries(result.collections).forEach(([prefix, info]) => {\n queryClient.setQueryData<IconifyInfo>(['iconSetInfo', prefix], info);\n });\n }\n\n return result?.icons ?? [];\n },\n enabled: debouncedTerm.length > 0,\n placeholderData: keepPreviousData,\n staleTime: 5 * 60 * 1000, // 5 minutes\n });\n\n return {\n term,\n setTerm: updateTerm,\n debouncedTerm,\n isLoading,\n isError,\n error,\n data,\n isPreviousData: isPlaceholderData,\n };\n}\n\nexport function useIconSetInfo({ prefix }: { prefix?: string | null }) {\n return useQuery<IconifyInfo | null, Error>({\n queryKey: ['iconSetInfo', prefix],\n queryFn: async ({ signal }) => {\n if (!prefix) return null;\n\n const url = new URL('/collection', BASE_API_URL);\n\n url.searchParams.append('prefix', prefix);\n url.searchParams.append('info', 'true');\n\n const result = await fetchJson<{ info: IconifyInfo }>({ url, signal });\n\n return result?.info ?? null;\n },\n staleTime: Infinity,\n });\n}\n","import { Box, Card, Grid, Text } from '@sanity/ui';\nimport type { ReactNode } from 'react';\nimport styled from 'styled-components';\n\nexport const ComboboxWrapper = styled(Grid)`\n grid-template-columns: 1fr min-content;\n position: relative;\n`;\n\nexport const OptionsWrapper = styled(Box)`\n box-sizing: border-box;\n padding: 0.5rem;\n\n & [role='listbox'] {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n & [role='option'] {\n display: grid;\n place-items: center;\n width: clamp(3rem, 10vw, 4rem);\n\n & button {\n cursor: pointer;\n width: 100%;\n\n & > [data-ui='Box'] {\n display: flex;\n }\n\n & svg {\n aspect-ratio: 1;\n }\n }\n }\n`;\n\nexport function MessageWrapper({ children }: { children: ReactNode }) {\n return (\n <Card padding={4}>\n <Text align=\"center\" muted>\n {children}\n </Text>\n </Card>\n );\n}\n","import { Icon } from '@iconify/react';\nimport { TextInput } from '@sanity/ui';\nimport { forwardRef, memo } from 'react';\n\ninterface SearchInputProps extends React.HTMLAttributes<HTMLInputElement> {\n selectedIcon: string | null;\n suffix?: React.ReactNode;\n}\n\nexport const SearchInput = memo(\n forwardRef<HTMLInputElement, SearchInputProps>((props, ref) => {\n const { selectedIcon, suffix, ...rest } = props;\n\n return (\n <TextInput\n {...rest}\n ref={ref}\n inputMode=\"search\"\n icon={selectedIcon ? <Icon icon={selectedIcon} /> : null}\n placeholder={selectedIcon ? 'Search and replace selected icon...' : 'Search for an icon...'}\n suffix={suffix}\n />\n );\n }),\n);\n\nSearchInput.displayName = 'SearchInput';\n","import { Icon } from '@iconify/react';\nimport { Button } from '@sanity/ui';\nimport type { UseComboboxGetItemPropsOptions, UseComboboxGetItemPropsReturnValue } from 'downshift';\nimport { forwardRef, memo } from 'react';\nimport { MessageWrapper } from './iconify-combobox.styles';\n\ntype GetItemProps = (\n options: UseComboboxGetItemPropsOptions<string>,\n) => UseComboboxGetItemPropsReturnValue;\n\nexport interface SearchResultsProps extends React.HTMLAttributes<HTMLUListElement> {\n state: 'initial' | 'loading' | 'error' | 'empty' | 'data' | 'stale';\n data?: string[];\n getItemProps: GetItemProps;\n highlightedIndex: number;\n}\n\nexport const SearchResults = memo(\n forwardRef<HTMLUListElement, SearchResultsProps>((props, ref) => {\n const { state, data, getItemProps, highlightedIndex, ...rest } = props;\n\n return (\n <>\n {(() => {\n switch (state) {\n case 'initial':\n return <MessageWrapper>Search for icons</MessageWrapper>;\n case 'loading':\n return <MessageWrapper>Searching...</MessageWrapper>;\n case 'error':\n return <MessageWrapper>Something went wrong...</MessageWrapper>;\n case 'empty':\n return <MessageWrapper>No icons found</MessageWrapper>;\n }\n })()}\n\n <ul\n {...rest}\n ref={ref}\n data-testid=\"iconify-results\"\n style={{ opacity: state === 'stale' ? 0.5 : 1 }}\n >\n {(state === 'data' || state === 'stale') &&\n data?.map((icon, index) => (\n <li key={icon} {...getItemProps({ item: icon, index })}>\n <Button padding={3} mode=\"bleed\" selected={index === highlightedIndex}>\n <Icon icon={icon} width=\"100%\" height=\"100%\" />\n </Button>\n </li>\n ))}\n </ul>\n </>\n );\n }),\n);\n","import { TrashIcon } from '@sanity/icons';\nimport { Button, Card } from '@sanity/ui';\n\n// ------------ //\n// UNSET BUTTON //\n// ------------ //\n\ninterface UnsetButtonProps {\n onUnset: () => void;\n}\n\nexport function UnsetButton(props: UnsetButtonProps) {\n const { onUnset } = props;\n\n return (\n <Card border borderLeft={false} padding={1} display=\"flex\" radius={2}>\n <Button\n data-testid=\"iconify-unset\"\n icon={<TrashIcon />}\n onClick={onUnset}\n mode=\"bleed\"\n fontSize={1}\n padding={2}\n />\n </Card>\n );\n}\n","import { Popover, useToast } from '@sanity/ui';\nimport { useCombobox } from 'downshift';\nimport { memo, useCallback, useEffect, useId, useRef } from 'react';\nimport type { ObjectInputProps } from 'sanity';\nimport { match } from 'ts-pattern';\nimport { useSearch } from '../lib/api';\nimport { OptionsWrapper } from './iconify-combobox.styles';\nimport { SearchInput } from './search-input';\nimport type { SearchResultsProps } from './search-result';\nimport { SearchResults } from './search-result';\nimport { UnsetButton } from './unset-button';\n\nexport interface IconifyComboboxProps {\n selectedIcon: string | null;\n onSelect: (newValue: string) => void;\n collections: string[] | null;\n studioElementProps?: ObjectInputProps['elementProps'];\n fieldFocused?: boolean;\n}\n\nexport const IconifyCombobox = memo(function IconifyCombobox(props: IconifyComboboxProps) {\n const {\n selectedIcon,\n onSelect: pushSelection,\n collections,\n studioElementProps,\n fieldFocused,\n } = props;\n\n const id = useId();\n const toast = useToast();\n const inputRef = useRef<HTMLInputElement>(null);\n\n // Compose our inputRef (used by the Popover for positioning) with Studio's focusRef.\n // Standard Sanity inputs spread all of elementProps onto the native element, which\n // lets Studio programmatically re-focus the field and track focus via onPathFocus/onPathBlur.\n const composedInputRef = useCallback(\n (node: HTMLInputElement | null) => {\n inputRef.current = node;\n if (studioElementProps?.ref) {\n (studioElementProps.ref as React.RefObject<HTMLInputElement | null>).current = node;\n }\n },\n [studioElementProps?.ref],\n );\n\n // Studio steals focus to its field-actions-trigger immediately after field activation, then\n // re-focuses the actual input — all within the same macrotask as the original focus event.\n // We suppress the onPathBlur for this activation blur so Studio's focused state stays accurate.\n // The flag is reset via setTimeout so any blur in a later macrotask (real user navigation) is\n // forwarded normally.\n const suppressNextBlur = useRef(false);\n\n const handleFocus = useCallback(\n (event: React.FocusEvent<HTMLInputElement>) => {\n suppressNextBlur.current = true;\n setTimeout(() => {\n suppressNextBlur.current = false;\n }, 0);\n studioElementProps?.onFocus?.(event as unknown as React.FocusEvent<HTMLDivElement>);\n },\n [studioElementProps],\n );\n\n const handleBlur = useCallback(\n (event: React.FocusEvent<HTMLInputElement>) => {\n if (suppressNextBlur.current) {\n suppressNextBlur.current = false;\n return;\n }\n studioElementProps?.onBlur?.(event as unknown as React.FocusEvent<HTMLDivElement>);\n },\n [studioElementProps],\n );\n\n const { term, setTerm, debouncedTerm, isLoading, isError, error, data, isPreviousData } =\n useSearch({\n collections,\n });\n\n const {\n isOpen,\n getMenuProps,\n getInputProps,\n highlightedIndex,\n getItemProps,\n selectItem,\n setInputValue,\n closeMenu,\n } = useCombobox({\n items: data ?? [],\n inputValue: term,\n onInputValueChange({ inputValue, selectedItem }) {\n if (inputValue !== selectedItem) {\n setTerm(inputValue);\n }\n },\n onSelectedItemChange({ selectedItem }) {\n if (selectedItem) {\n pushSelection(selectedItem);\n setTerm('', true);\n setInputValue('');\n }\n },\n });\n\n // Close the menu when Studio considers the field unfocused. This is the state→UI equivalent\n // of the old stateReducer: instead of intercepting downshift's blur handling imperatively,\n // we let Studio's focused state drive whether the menu should be open.\n useEffect(() => {\n if (!fieldFocused) closeMenu();\n }, [fieldFocused, closeMenu]);\n\n const handleUnset = useCallback(() => {\n pushSelection('');\n setTerm('', true);\n selectItem('');\n }, [pushSelection, setTerm, selectItem]);\n\n useEffect(() => {\n if (isError) {\n console.error('Iconify input error:', error);\n\n toast.push({\n id,\n status: 'error',\n title: 'Iconify input error',\n description: error?.message,\n });\n }\n }, [error, id, isError, toast]);\n\n // Destructure onBlur out so downshift's InputBlur doesn't close the menu —\n // menu lifecycle is now driven by fieldFocused via the effect above.\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { onBlur: _downshiftOnBlur, ...inputProps } = getInputProps({\n ref: composedInputRef,\n id: studioElementProps?.id,\n 'aria-describedby': studioElementProps?.['aria-describedby'],\n onFocus: handleFocus,\n });\n\n return (\n <div>\n <SearchInput\n {...inputProps}\n onBlur={handleBlur}\n selectedIcon={selectedIcon}\n suffix={selectedIcon ? <UnsetButton onUnset={handleUnset} /> : null}\n />\n\n <Popover\n open={true}\n style={{ display: isOpen ? 'block' : 'none' }}\n placement=\"bottom\"\n arrow={false}\n matchReferenceWidth\n constrainSize\n referenceElement={inputRef.current}\n content={\n <OptionsWrapper>\n <SearchResults\n {...getMenuProps()}\n state={match<boolean>(true)\n .returnType<SearchResultsProps['state']>()\n .with(isLoading, () => 'loading')\n .with(!debouncedTerm, () => 'initial')\n .with(isError, () => 'error')\n .with(!data || data.length === 0, () => 'empty')\n .with(isPreviousData, () => 'stale')\n .otherwise(() => 'data')}\n data={data}\n getItemProps={getItemProps}\n highlightedIndex={highlightedIndex}\n />\n </OptionsWrapper>\n }\n />\n </div>\n );\n});\n","import {\n QueryClient,\n QueryClientProvider as ReactQueryClientProvider,\n} from '@tanstack/react-query';\nimport type { ReactNode } from 'react';\n\nexport const queryClient = new QueryClient();\n\nexport function QueryClientProvider(props: { children: ReactNode }) {\n return <ReactQueryClientProvider client={queryClient}>{props.children}</ReactQueryClientProvider>;\n}\n","import type { IconifyIconName } from '@iconify/utils';\nimport { stringToIcon } from '@iconify/utils';\nimport { sentenceCase } from 'change-case';\nimport { useMemo } from 'react';\nimport { useIconSetInfo } from './api';\n\ninterface UsePrettyIconNameProps {\n name?: string | null;\n iconMeta?: IconifyIconName | null;\n}\n\nexport function usePrettyIconName(props: UsePrettyIconNameProps) {\n const { name } = props;\n const iconMeta = useMemo(\n () => props.iconMeta ?? (name ? stringToIcon(name) : null),\n [name, props.iconMeta],\n );\n const iconSetInfo = useIconSetInfo({ prefix: iconMeta?.prefix ?? null });\n\n return useMemo(\n () =>\n iconMeta\n ? {\n name: sentenceCase(iconMeta.name),\n collection: iconSetInfo.data?.name ?? iconMeta.prefix,\n }\n : null,\n [iconMeta, iconSetInfo.data?.name],\n );\n}\n","import { Flex, Stack, Text, ThemeProvider } from '@sanity/ui';\nimport { buildTheme } from '@sanity/ui/theme';\nimport { memo, useCallback } from 'react';\nimport type { ObjectInputProps } from 'sanity';\nimport { set, unset } from 'sanity';\nimport { IconifyCombobox } from './combobox';\nimport { QueryClientProvider } from './lib/query-client';\nimport type { IconifyPluginConfig, IconOptions } from './lib/types';\nimport { usePrettyIconName } from './lib/use-pretty-icon-name';\n\nconst theme = buildTheme();\n\ninterface IconifyInputProps extends ObjectInputProps {\n config: IconifyPluginConfig;\n}\n\nexport const IconifyInput = memo(function IconifyInput(props: IconifyInputProps) {\n const { config, value, onChange: pushChange, schemaType, elementProps, focused } = props;\n\n const selectedIcon: string | null = value?.name ?? null;\n\n const options: IconOptions = schemaType.options;\n const collections =\n (!!options?.collections?.length && options.collections) ||\n (!!config?.collections?.length && config.collections) ||\n null;\n const showName = options?.showName ?? config?.showName ?? false;\n\n const handleSelect = useCallback(\n (icon: string) => {\n pushChange(icon === '' ? unset() : set(icon, ['name']));\n },\n [pushChange],\n );\n\n return (\n <QueryClientProvider>\n <ThemeProvider theme={theme}>\n <Stack space={2}>\n <IconifyCombobox\n selectedIcon={selectedIcon}\n onSelect={handleSelect}\n collections={collections}\n studioElementProps={elementProps}\n fieldFocused={focused}\n />\n\n {showName && selectedIcon ? <IconifyNameDisplay name={selectedIcon} /> : null}\n </Stack>\n </ThemeProvider>\n </QueryClientProvider>\n );\n});\n\ninterface IconifyNameDisplayProps {\n name?: string | null;\n}\n\nexport function IconifyNameDisplay(props: IconifyNameDisplayProps) {\n const { name } = props;\n const prettyName = usePrettyIconName({ name });\n\n return (\n <Flex gap={1}>\n <Text size={1} muted>\n Selected:\n </Text>\n\n <Text size={1} weight=\"semibold\">\n {prettyName?.name ?? name}\n </Text>\n\n {prettyName?.collection && (\n <Text size={1} muted style={{ fontStyle: 'italic' }}>\n by {prettyName?.collection}\n </Text>\n )}\n </Flex>\n );\n}\n","import { Icon } from '@iconify/react';\nimport type { IconifyIconName } from '@iconify/utils';\nimport { stringToIcon } from '@iconify/utils';\nimport { memo } from 'react';\nimport type { PreviewProps } from 'sanity';\nimport { QueryClientProvider } from './lib/query-client';\nimport { usePrettyIconName } from './lib/use-pretty-icon-name';\n\n// --------------- //\n// ICONIFY PREVIEW //\n// --------------- //\n\nexport const IconifyPreview = memo(function IconifyPreview(props: PreviewProps) {\n const { title } = props;\n const iconName = typeof props.title === 'string' ? stringToIcon(props.title) : null;\n\n // We check this double to avoid the TS error\n if (typeof title === 'string' && iconName) {\n return (\n <QueryClientProvider>\n <IconifyPreviewInner {...props} iconName={title} iconMeta={iconName} />\n </QueryClientProvider>\n );\n }\n\n return props.renderDefault(props);\n});\n\n// --------------------- //\n// ICONIFY PREVIEW INNER //\n// --------------------- //\n\ninterface IconifyPreviewInnerProps extends PreviewProps {\n iconName: string;\n iconMeta: IconifyIconName;\n}\n\nfunction IconifyPreviewInner(props: IconifyPreviewInnerProps) {\n const { iconMeta, iconName, ...previewProps } = props;\n const prettyName = usePrettyIconName({ iconMeta });\n\n return props.renderDefault({\n ...previewProps,\n media: <Icon icon={iconName} />,\n title: prettyName?.name ?? iconName,\n subtitle: prettyName?.collection,\n });\n}\n","import type { FieldProps, ObjectInputProps } from 'sanity';\nimport { definePlugin } from 'sanity';\nimport { IconifyInput } from './iconify-input';\nimport { IconifyPreview } from './iconify-preview';\nimport type { IconifyPluginConfig } from './lib/types';\n\n/**\n * Usage in `sanity.config.ts` (or .js)\n *\n * ```ts\n * import { defineConfig } from 'sanity'\n * import { iconify } from 'sanity-plugin-iconify'\n *\n * export default defineConfig({\n * // ...\n * plugins: [iconify()],\n * })\n * ```\n */\nexport const iconify = definePlugin<IconifyPluginConfig | void>((config = {}) => {\n return {\n name: 'sanity-plugin-iconify',\n schema: {\n types: [\n {\n name: 'icon',\n title: 'Icon',\n type: 'object',\n fields: [\n {\n name: 'name',\n title: 'Name',\n type: 'string',\n },\n ],\n components: {\n input: (props: ObjectInputProps) => <IconifyInput {...props} config={config!} />,\n preview: IconifyPreview,\n\n // This makes sure the input component is not indented\n field: (props: FieldProps) => props.renderDefault({ ...props, level: 0 }),\n },\n },\n ],\n },\n };\n});\n"],"names":["queryClient","useQueryClient","useState","useDebounce","useCallback","useQuery","keepPreviousData","styled","Grid","Box","jsx","Card","Text","memo","forwardRef","TextInput","Icon","jsxs","Fragment","Button","TrashIcon","useId","useToast","useRef","useCombobox","useEffect","Popover","match","QueryClient","ReactQueryClientProvider","useMemo","stringToIcon","sentenceCase","buildTheme","unset","set","ThemeProvider","Stack","Flex","definePlugin"],"mappings":";;;;;;;AAMA,MAAM,eAAe;AAErB,SAAS,UAAa,EAAE,KAAK,UAAmE;AAC9F,SAAO,MAAM,KAAK,EAAE,OAAA,CAAQ,EACzB,KAAK,CAAC,aAAa;AAClB,QAAI,CAAC,SAAS;AACZ,YAAM,IAAI,MAAM,yBAAyB,SAAS,MAAM,EAAE;AAG5D,WAAO,SAAS,KAAA;AAAA,EAClB,CAAC,EACA;AAAA,IACC,CAAC,WAAW;AAAA,IACZ,CAAC,UAAU;AACT,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AAS;AAAA;AAAA,UAGT,OAAO,CAAC,UAAsB,MAAM,cAAc,EAAE,GAAG,OAAO,OAAO,EAAA,CAAG;AAAA,QAAA;AAAA,MAC1E;AAAA,IACF;AAAA,EACF;AAEJ,EACD;;"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
import { BaseSchemaDefinition } from 'sanity';
|
|
2
|
-
import type { ConditionalPropertyCallbackContext } from 'sanity';
|
|
3
|
-
import type { FieldGroupDefinition } from 'sanity';
|
|
4
|
-
import type { FieldsetDefinition } from 'sanity';
|
|
5
|
-
import type { InitialValueProperty } from 'sanity';
|
|
6
|
-
import type { ObjectOptions } from 'sanity';
|
|
7
|
-
import { Plugin as Plugin_2 } from 'sanity';
|
|
8
|
-
import type { RuleDef } from 'sanity';
|
|
9
|
-
import type { ValidationBuilder } from 'sanity';
|
|
10
|
-
|
|
11
|
-
export { BaseSchemaDefinition };
|
|
12
|
-
|
|
13
|
-
export declare type IconConditionalProperty =
|
|
14
|
-
| boolean
|
|
15
|
-
| ((context: IconConditionalPropertyCallbackContext) => boolean)
|
|
16
|
-
| undefined;
|
|
17
|
-
|
|
18
|
-
export declare type IconConditionalPropertyCallbackContext = Omit<
|
|
19
|
-
ConditionalPropertyCallbackContext,
|
|
20
|
-
'value'
|
|
21
|
-
> & {
|
|
22
|
-
value: IconValue;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export declare interface IconDefinition extends Omit<BaseSchemaDefinition, 'hidden' | 'readOnly'> {
|
|
26
|
-
type: 'icon';
|
|
27
|
-
groups?: FieldGroupDefinition[];
|
|
28
|
-
fieldsets?: FieldsetDefinition[];
|
|
29
|
-
options?: IconOptions;
|
|
30
|
-
hidden?: IconConditionalProperty;
|
|
31
|
-
readOnly?: IconConditionalProperty;
|
|
32
|
-
validation?: ValidationBuilder<IconRule, IconValue>;
|
|
33
|
-
initialValue?: InitialValueProperty<any, IconValue>;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Usage in `sanity.config.ts` (or .js)
|
|
38
|
-
*
|
|
39
|
-
* ```ts
|
|
40
|
-
* import { defineConfig } from 'sanity'
|
|
41
|
-
* import { iconify } from 'sanity-plugin-iconify'
|
|
42
|
-
*
|
|
43
|
-
* export default defineConfig({
|
|
44
|
-
* // ...
|
|
45
|
-
* plugins: [iconify()],
|
|
46
|
-
* })
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
export declare const iconify: Plugin_2<void | IconifyPluginConfig>;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Icon set information block.
|
|
53
|
-
*/
|
|
54
|
-
declare interface IconifyInfo {
|
|
55
|
-
// Icon set name.
|
|
56
|
-
name: string;
|
|
57
|
-
|
|
58
|
-
// Total number of icons.
|
|
59
|
-
total?: number;
|
|
60
|
-
|
|
61
|
-
// Version string.
|
|
62
|
-
version?: string;
|
|
63
|
-
|
|
64
|
-
// Author information.
|
|
65
|
-
author: {
|
|
66
|
-
// Author name.
|
|
67
|
-
name: string;
|
|
68
|
-
|
|
69
|
-
// Link to author's website or icon set website.
|
|
70
|
-
url?: string;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
// License
|
|
74
|
-
license: {
|
|
75
|
-
// Human readable license.
|
|
76
|
-
title: string;
|
|
77
|
-
|
|
78
|
-
// SPDX license identifier.
|
|
79
|
-
spdx?: string;
|
|
80
|
-
|
|
81
|
-
// License URL.
|
|
82
|
-
url?: string;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
// Array of icons that should be used for samples in icon sets list.
|
|
86
|
-
samples?: string[];
|
|
87
|
-
|
|
88
|
-
// Icon grid: number or array of numbers.
|
|
89
|
-
height?: number | number[];
|
|
90
|
-
|
|
91
|
-
// Display height for samples: 16 - 24
|
|
92
|
-
displayHeight?: number;
|
|
93
|
-
|
|
94
|
-
// Category on Iconify collections list.
|
|
95
|
-
category?: string;
|
|
96
|
-
|
|
97
|
-
// List of tags to group similar icon sets.
|
|
98
|
-
tags?: string[];
|
|
99
|
-
|
|
100
|
-
// Palette status. True if icons have predefined color scheme, false if icons use currentColor.
|
|
101
|
-
// Ideally, icon set should not mix icons with and without palette to simplify search.
|
|
102
|
-
palette?: boolean;
|
|
103
|
-
|
|
104
|
-
// If true, icon set should not appear in icon sets list.
|
|
105
|
-
hidden?: boolean;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export declare interface IconifyPluginConfig {
|
|
109
|
-
collections?: IconPrefix[];
|
|
110
|
-
showName?: boolean;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export declare interface IconifySearchResult {
|
|
114
|
-
icons: string[];
|
|
115
|
-
collections: Record<string, IconifyInfo>;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export declare type IconOptions = {
|
|
119
|
-
collections?: IconPrefix[];
|
|
120
|
-
showName?: boolean;
|
|
121
|
-
} & Pick<ObjectOptions, 'collapsed' | 'collapsible'>;
|
|
122
|
-
|
|
123
|
-
export declare type IconPrefix =
|
|
124
|
-
| 'material-symbols'
|
|
125
|
-
| 'material-symbols-light'
|
|
126
|
-
| 'ic'
|
|
127
|
-
| 'mdi'
|
|
128
|
-
| 'mdi-light'
|
|
129
|
-
| 'line-md'
|
|
130
|
-
| 'solar'
|
|
131
|
-
| 'tabler'
|
|
132
|
-
| 'boxicons'
|
|
133
|
-
| 'mingcute'
|
|
134
|
-
| 'ri'
|
|
135
|
-
| 'mynaui'
|
|
136
|
-
| 'iconamoon'
|
|
137
|
-
| 'iconoir'
|
|
138
|
-
| 'lucide'
|
|
139
|
-
| 'lucide-lab'
|
|
140
|
-
| 'uil'
|
|
141
|
-
| 'tdesign'
|
|
142
|
-
| 'si'
|
|
143
|
-
| 'majesticons'
|
|
144
|
-
| 'gg'
|
|
145
|
-
| 'flowbite'
|
|
146
|
-
| 'basil'
|
|
147
|
-
| 'pixelarticons'
|
|
148
|
-
| 'pixel'
|
|
149
|
-
| 'akar-icons'
|
|
150
|
-
| 'ci'
|
|
151
|
-
| 'proicons'
|
|
152
|
-
| 'typcn'
|
|
153
|
-
| 'meteor-icons'
|
|
154
|
-
| 'prime'
|
|
155
|
-
| 'circum'
|
|
156
|
-
| 'fe'
|
|
157
|
-
| 'eos-icons'
|
|
158
|
-
| 'bitcoin-icons'
|
|
159
|
-
| 'humbleicons'
|
|
160
|
-
| 'uim'
|
|
161
|
-
| 'uit'
|
|
162
|
-
| 'uis'
|
|
163
|
-
| 'gridicons'
|
|
164
|
-
| 'mi'
|
|
165
|
-
| 'cuida'
|
|
166
|
-
| 'weui'
|
|
167
|
-
| 'duo-icons'
|
|
168
|
-
| 'svg-spinners'
|
|
169
|
-
| 'hugeicons'
|
|
170
|
-
| 'lets-icons'
|
|
171
|
-
| 'streamline-ultimate'
|
|
172
|
-
| 'streamline-plump'
|
|
173
|
-
| 'streamline-sharp'
|
|
174
|
-
| 'mage'
|
|
175
|
-
| 'stash'
|
|
176
|
-
| 'lineicons'
|
|
177
|
-
| 'wordpress'
|
|
178
|
-
| 'icon-park-outline'
|
|
179
|
-
| 'icon-park-solid'
|
|
180
|
-
| 'icon-park-twotone'
|
|
181
|
-
| 'jam'
|
|
182
|
-
| 'streamline-cyber'
|
|
183
|
-
| 'guidance'
|
|
184
|
-
| 'carbon'
|
|
185
|
-
| 'ion'
|
|
186
|
-
| 'famicons'
|
|
187
|
-
| 'ant-design'
|
|
188
|
-
| 'lsicon'
|
|
189
|
-
| 'gravity-ui'
|
|
190
|
-
| 'cil'
|
|
191
|
-
| 'roentgen'
|
|
192
|
-
| 'ep'
|
|
193
|
-
| 'charm'
|
|
194
|
-
| 'quill'
|
|
195
|
-
| 'bytesize'
|
|
196
|
-
| 'bi'
|
|
197
|
-
| 'streamline-pixel'
|
|
198
|
-
| 'streamline-block'
|
|
199
|
-
| 'rivet-icons'
|
|
200
|
-
| 'nimbus'
|
|
201
|
-
| 'formkit'
|
|
202
|
-
| 'fluent'
|
|
203
|
-
| 'ph'
|
|
204
|
-
| 'glyphs'
|
|
205
|
-
| 'glyphs-poly'
|
|
206
|
-
| 'teenyicons'
|
|
207
|
-
| 'clarity'
|
|
208
|
-
| 'streamline-freehand'
|
|
209
|
-
| 'ix'
|
|
210
|
-
| 'octicon'
|
|
211
|
-
| 'memory'
|
|
212
|
-
| 'system-uicons'
|
|
213
|
-
| 'radix-icons'
|
|
214
|
-
| 'zondicons'
|
|
215
|
-
| 'uiw'
|
|
216
|
-
| 'codex'
|
|
217
|
-
| 'ei'
|
|
218
|
-
| 'heroicons'
|
|
219
|
-
| 'sidekickicons'
|
|
220
|
-
| 'pepicons-pop'
|
|
221
|
-
| 'pepicons-print'
|
|
222
|
-
| 'pepicons-pencil'
|
|
223
|
-
| 'f7'
|
|
224
|
-
| 'pajamas'
|
|
225
|
-
| 'garden'
|
|
226
|
-
| 'streamline'
|
|
227
|
-
| 'streamline-flex'
|
|
228
|
-
| 'fa7-solid'
|
|
229
|
-
| 'fa7-regular'
|
|
230
|
-
| 'picon'
|
|
231
|
-
| 'ooui'
|
|
232
|
-
| 'maki'
|
|
233
|
-
| 'temaki'
|
|
234
|
-
| 'oui'
|
|
235
|
-
| 'nrk'
|
|
236
|
-
| 'dinkie-icons'
|
|
237
|
-
| 'qlementine-icons'
|
|
238
|
-
| 'streamline-ultimate-color'
|
|
239
|
-
| 'streamline-plump-color'
|
|
240
|
-
| 'streamline-freehand-color'
|
|
241
|
-
| 'streamline-kameleon-color'
|
|
242
|
-
| 'streamline-stickies-color'
|
|
243
|
-
| 'fluent-color'
|
|
244
|
-
| 'streamline-color'
|
|
245
|
-
| 'streamline-flex-color'
|
|
246
|
-
| 'streamline-sharp-color'
|
|
247
|
-
| 'streamline-cyber-color'
|
|
248
|
-
| 'icon-park'
|
|
249
|
-
| 'marketeq'
|
|
250
|
-
| 'vscode-icons'
|
|
251
|
-
| 'codicon'
|
|
252
|
-
| 'material-icon-theme'
|
|
253
|
-
| 'file-icons'
|
|
254
|
-
| 'devicon'
|
|
255
|
-
| 'devicon-plain'
|
|
256
|
-
| 'catppuccin'
|
|
257
|
-
| 'skill-icons'
|
|
258
|
-
| 'unjs'
|
|
259
|
-
| 'simple-icons'
|
|
260
|
-
| 'logos'
|
|
261
|
-
| 'streamline-logos'
|
|
262
|
-
| 'cib'
|
|
263
|
-
| 'fa7-brands'
|
|
264
|
-
| 'bxl'
|
|
265
|
-
| 'nonicons'
|
|
266
|
-
| 'arcticons'
|
|
267
|
-
| 'cbi'
|
|
268
|
-
| 'brandico'
|
|
269
|
-
| 'entypo-social'
|
|
270
|
-
| 'token'
|
|
271
|
-
| 'token-branded'
|
|
272
|
-
| 'cryptocurrency'
|
|
273
|
-
| 'cryptocurrency-color'
|
|
274
|
-
| 'openmoji'
|
|
275
|
-
| 'twemoji'
|
|
276
|
-
| 'noto'
|
|
277
|
-
| 'fluent-emoji-flat'
|
|
278
|
-
| 'fluent-emoji-high-contrast'
|
|
279
|
-
| 'noto-v1'
|
|
280
|
-
| 'emojione'
|
|
281
|
-
| 'emojione-monotone'
|
|
282
|
-
| 'emojione-v1'
|
|
283
|
-
| 'fxemoji'
|
|
284
|
-
| 'streamline-emojis'
|
|
285
|
-
| 'circle-flags'
|
|
286
|
-
| 'flag'
|
|
287
|
-
| 'flagpack'
|
|
288
|
-
| 'cif'
|
|
289
|
-
| 'gis'
|
|
290
|
-
| 'map'
|
|
291
|
-
| 'geo'
|
|
292
|
-
| 'game-icons'
|
|
293
|
-
| 'fad'
|
|
294
|
-
| 'academicons'
|
|
295
|
-
| 'wi'
|
|
296
|
-
| 'meteocons'
|
|
297
|
-
| 'healthicons'
|
|
298
|
-
| 'medical-icon'
|
|
299
|
-
| 'covid'
|
|
300
|
-
| 'la'
|
|
301
|
-
| 'eva'
|
|
302
|
-
| 'dashicons'
|
|
303
|
-
| 'flat-color-icons'
|
|
304
|
-
| 'entypo'
|
|
305
|
-
| 'foundation'
|
|
306
|
-
| 'raphael'
|
|
307
|
-
| 'icons8'
|
|
308
|
-
| 'iwwa'
|
|
309
|
-
| 'gala'
|
|
310
|
-
| 'heroicons-outline'
|
|
311
|
-
| 'heroicons-solid'
|
|
312
|
-
| 'bx'
|
|
313
|
-
| 'bxs'
|
|
314
|
-
| 'fa6-solid'
|
|
315
|
-
| 'fa6-regular'
|
|
316
|
-
| 'fa6-brands'
|
|
317
|
-
| 'fa-solid'
|
|
318
|
-
| 'fa-regular'
|
|
319
|
-
| 'fa-brands'
|
|
320
|
-
| 'fa'
|
|
321
|
-
| 'fluent-mdl2'
|
|
322
|
-
| 'fontisto'
|
|
323
|
-
| 'icomoon-free'
|
|
324
|
-
| 'subway'
|
|
325
|
-
| 'oi'
|
|
326
|
-
| 'wpf'
|
|
327
|
-
| 'simple-line-icons'
|
|
328
|
-
| 'et'
|
|
329
|
-
| 'el'
|
|
330
|
-
| 'vaadin'
|
|
331
|
-
| 'grommet-icons'
|
|
332
|
-
| 'whh'
|
|
333
|
-
| 'si-glyph'
|
|
334
|
-
| 'zmdi'
|
|
335
|
-
| 'ls'
|
|
336
|
-
| 'bpmn'
|
|
337
|
-
| 'flat-ui'
|
|
338
|
-
| 'vs'
|
|
339
|
-
| 'topcoat'
|
|
340
|
-
| 'il'
|
|
341
|
-
| 'websymbol'
|
|
342
|
-
| 'fontelico'
|
|
343
|
-
| 'ps'
|
|
344
|
-
| 'feather'
|
|
345
|
-
| 'mono-icons'
|
|
346
|
-
| 'pepicons'
|
|
347
|
-
| 'fluent-emoji';
|
|
348
|
-
|
|
349
|
-
export declare interface IconRule extends RuleDef<IconRule, IconValue> {}
|
|
350
|
-
|
|
351
|
-
export declare type IconValue =
|
|
352
|
-
| {
|
|
353
|
-
name?: string;
|
|
354
|
-
}
|
|
355
|
-
| undefined;
|
|
356
|
-
|
|
357
|
-
export {};
|
|
358
|
-
|
|
359
|
-
declare module 'sanity' {
|
|
360
|
-
interface IntrinsicDefinitions {
|
|
361
|
-
icon: IconDefinition;
|
|
362
|
-
}
|
|
363
|
-
}
|