@chayns-components/core 5.0.0-beta.728 → 5.0.0-beta.734
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/lib/cjs/api/theme/get.js +6 -8
- package/lib/cjs/api/theme/get.js.map +1 -1
- package/lib/cjs/components/accordion/accordion-group/AccordionGroup.js +5 -2
- package/lib/cjs/components/accordion/accordion-group/AccordionGroup.js.map +1 -1
- package/lib/cjs/components/color-scheme-provider/ColorSchemeProvider.js +4 -3
- package/lib/cjs/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
- package/lib/cjs/components/list/list-item/ListItem.js +3 -1
- package/lib/cjs/components/list/list-item/ListItem.js.map +1 -1
- package/lib/cjs/components/list/list-item/ListItem.styles.js +4 -2
- package/lib/cjs/components/list/list-item/ListItem.styles.js.map +1 -1
- package/lib/esm/api/theme/get.js +6 -8
- package/lib/esm/api/theme/get.js.map +1 -1
- package/lib/esm/components/accordion/accordion-group/AccordionGroup.js +6 -3
- package/lib/esm/components/accordion/accordion-group/AccordionGroup.js.map +1 -1
- package/lib/esm/components/color-scheme-provider/ColorSchemeProvider.js +4 -3
- package/lib/esm/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
- package/lib/esm/components/list/list-item/ListItem.js +3 -1
- package/lib/esm/components/list/list-item/ListItem.js.map +1 -1
- package/lib/esm/components/list/list-item/ListItem.styles.js +4 -2
- package/lib/esm/components/list/list-item/ListItem.styles.js.map +1 -1
- package/lib/types/api/theme/get.d.ts +2 -2
- package/lib/types/components/accordion/accordion-body/AccordionBody.styles.d.ts +1 -1
- package/lib/types/components/accordion/accordion-head/AccordionHead.styles.d.ts +10 -10
- package/lib/types/components/amount-control/AmountControl.styles.d.ts +1 -1
- package/lib/types/components/button/Button.styles.d.ts +3 -3
- package/lib/types/components/color-scheme-provider/ColorSchemeProvider.d.ts +4 -0
- package/lib/types/components/combobox/ComboBox.styles.d.ts +1 -1
- package/lib/types/components/context-menu/context-menu-content/ContextMenuContent.styles.d.ts +1 -1
- package/lib/types/components/expandable-content/ExpandableContent.styles.d.ts +1 -1
- package/lib/types/components/file-input/FileInput.styles.d.ts +1 -1
- package/lib/types/components/filter-buttons/filter-button/FilterButton.styles.d.ts +1 -1
- package/lib/types/components/input/Input.styles.d.ts +3 -3
- package/lib/types/components/list/list-item/ListItem.d.ts +4 -0
- package/lib/types/components/list/list-item/ListItem.styles.d.ts +2 -1
- package/lib/types/components/list/list-item/list-item-body/ListItemBody.styles.d.ts +1 -1
- package/lib/types/components/list/list-item/list-item-head/ListItemHead.styles.d.ts +4 -4
- package/lib/types/components/mention-finder/MentionFinder.styles.d.ts +1 -1
- package/lib/types/components/popup/popup-content-wrapper/PopupContentWrapper.styles.d.ts +1 -1
- package/lib/types/components/progress-bar/ProgressBar.styles.d.ts +1 -1
- package/lib/types/components/radio-button/RadioButton.styles.d.ts +1 -1
- package/lib/types/components/search-box/SearchBox.styles.d.ts +1 -1
- package/lib/types/components/search-box/search-box-body/SearchBoxBody.styles.d.ts +1 -1
- package/lib/types/components/search-input/SearchInput.styles.d.ts +2 -2
- package/lib/types/components/slider/Slider.styles.d.ts +2 -2
- package/lib/types/components/slider-button/SliderButton.styles.d.ts +1 -1
- package/lib/types/components/truncation/Truncation.styles.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.js","names":["AnimatePresence","React","useCallback","useContext","useEffect","useUuid","AreaContextProvider","ListContext","ListItemBody","ListItemHead","StyledMotionListItem","ListItem","_ref","children","hoverItem","icons","images","isDefaultOpen","isOpen","onClick","onLongPress","leftElements","rightElements","shouldShowSingleRightElementCentered","subtitle","shouldShowRoundImage","title","titleElement","incrementExpandableItemCount","isAnyItemExpandable","isWrapped","openItemUuid","updateOpenItemUuid","uuid","isExpandable","undefined","isItemOpen","handleHeadClick","event","shouldOnlyOpen","isClickable","createElement","animate","height","opacity","className","exit","initial","key","$isClickable","$isOpen","$isWrapped","id","displayName"],"sources":["../../../../../src/components/list/list-item/ListItem.tsx"],"sourcesContent":["import { AnimatePresence } from 'framer-motion';\nimport React, {\n FC,\n MouseEventHandler,\n ReactNode,\n TouchEventHandler,\n useCallback,\n useContext,\n useEffect,\n} from 'react';\nimport { useUuid } from '../../../hooks/uuid';\nimport AreaContextProvider from '../../area-provider/AreaContextProvider';\nimport { ListContext } from '../List';\nimport ListItemBody from './list-item-body/ListItemBody';\nimport ListItemHead from './list-item-head/ListItemHead';\nimport { StyledMotionListItem } from './ListItem.styles';\n\nexport type ListItemElements = [ReactNode, ...ReactNode[]];\n\nexport type ListItemProps = {\n /**\n * The content of the `ListItem` body. When the `ListItem` has children,\n * it can be opened and also gets an icon as an indicator automatically.\n */\n children?: ReactNode;\n /**\n * Element that is displayed when hovering over the `ListItem` on the right\n * side. On mobile devices, this element is not displayed.\n */\n hoverItem?: ReactNode;\n /**\n * The FontAwesome or tobit icons to render like an image on the left side\n * of the header. Multiple icons are stacked. See the `Icon` component\n * documentation for more information.\n */\n icons?: string[];\n /**\n * A list of image URLs that are displayed on the left side of the header.\n * If multiple URLs are passed, the image is assembled from the first three\n * image URLs as a puzzle.\n */\n images?: string[];\n /**\n * This can be used to automatically expand the `ListItem` during the first render.\n */\n isDefaultOpen?: boolean;\n /**\n * This overrides the internal opening state of the item and makes it controlled.\n */\n isOpen?: boolean;\n /**\n * Function to be executed when the header of the `ListItem` was clicked\n */\n onClick?: MouseEventHandler<HTMLDivElement>;\n /**\n * Function to be executed when the header of the `ListItem` is pressed for\n * 400 milliseconds.\n */\n onLongPress?: TouchEventHandler<HTMLDivElement>;\n /**\n * Elements that are displayed on the left side of the header. If multiple\n * elements are specified, they are displayed one aside the other.\n */\n leftElements?: ListItemElements;\n /**\n * Elements that are displayed on the right side of the header. If multiple\n * elements are specified, they are displayed one below the other.\n */\n rightElements?: ListItemElements;\n /**\n * Images of users should always be displayed in a round shape. Therefore,\n * this property can be set to true.\n */\n shouldShowRoundImage?: boolean;\n /**\n * Whether a single rightElement should be centered. Only works if one rightElement is given.\n */\n shouldShowSingleRightElementCentered?: boolean;\n /**\n * Subtitle of the `ListItem` displayed in the head below the title\n */\n subtitle?: ReactNode;\n /**\n * Title of the `ListItem` displayed in the head\n */\n title: ReactNode;\n /**\n * Additional elements to be displayed in the header next to the title.\n */\n titleElement?: ReactNode;\n};\n\nconst ListItem: FC<ListItemProps> = ({\n children,\n hoverItem,\n icons,\n images,\n isDefaultOpen,\n isOpen,\n onClick,\n onLongPress,\n leftElements,\n rightElements,\n shouldShowSingleRightElementCentered = false,\n subtitle,\n shouldShowRoundImage,\n title,\n titleElement,\n}) => {\n const {\n incrementExpandableItemCount,\n isAnyItemExpandable,\n isWrapped,\n openItemUuid,\n updateOpenItemUuid,\n } = useContext(ListContext);\n\n const uuid = useUuid();\n\n const isExpandable = children !== undefined;\n const isItemOpen = isOpen ?? openItemUuid === uuid;\n\n const handleHeadClick = useCallback<MouseEventHandler<HTMLDivElement>>(\n (event) => {\n if (isExpandable) {\n updateOpenItemUuid(uuid);\n }\n\n if (typeof onClick === 'function') {\n onClick(event);\n }\n },\n [isExpandable, onClick, updateOpenItemUuid, uuid],\n );\n\n useEffect(() => {\n if (isExpandable) {\n // The incrementExpandableItemCount function returns an cleanup\n // function to decrement expandableItemCount if component unmounts\n return incrementExpandableItemCount();\n }\n\n return undefined;\n }, [incrementExpandableItemCount, isExpandable]);\n\n useEffect(() => {\n if (isDefaultOpen) {\n updateOpenItemUuid(uuid, { shouldOnlyOpen: true });\n }\n }, [isDefaultOpen, updateOpenItemUuid, uuid]);\n\n const isClickable = typeof onClick === 'function' || isExpandable;\n\n return (\n <StyledMotionListItem\n animate={{ height: 'auto', opacity: 1 }}\n className=\"beta-chayns-list-item\"\n exit={{ height: 0, opacity: 0 }}\n initial={{ height: 0, opacity: 0 }}\n key={`list-item-${uuid}`}\n $isClickable={isClickable}\n $isOpen={isItemOpen}\n $isWrapped={isWrapped}\n >\n <ListItemHead\n hoverItem={hoverItem}\n icons={icons}\n images={images}\n isAnyItemExpandable={isAnyItemExpandable}\n isExpandable={isExpandable}\n isOpen={isItemOpen}\n leftElements={leftElements}\n onClick={isClickable ? handleHeadClick : undefined}\n onLongPress={onLongPress}\n rightElements={rightElements}\n subtitle={subtitle}\n shouldShowRoundImage={shouldShowRoundImage}\n shouldShowSingleRightElementCentered={shouldShowSingleRightElementCentered}\n title={title}\n titleElement={titleElement}\n />\n <AnimatePresence initial={false}>\n {isExpandable && isItemOpen && (\n <ListItemBody id={uuid}>\n <AreaContextProvider>{children}</AreaContextProvider>\n </ListItemBody>\n )}\n </AnimatePresence>\n </StyledMotionListItem>\n );\n};\n\nListItem.displayName = 'ListItem';\n\nexport default ListItem;\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,eAAe;AAC/C,OAAOC,KAAK,IAKRC,WAAW,EACXC,UAAU,EACVC,SAAS,QACN,OAAO;AACd,SAASC,OAAO,QAAQ,qBAAqB;AAC7C,OAAOC,mBAAmB,MAAM,yCAAyC;AACzE,SAASC,WAAW,QAAQ,SAAS;AACrC,OAAOC,YAAY,MAAM,+BAA+B;AACxD,OAAOC,YAAY,MAAM,+BAA+B;AACxD,SAASC,oBAAoB,QAAQ,mBAAmB;AA6ExD,MAAMC,QAA2B,GAAGC,IAAA,IAgB9B;EAAA,IAhB+B;IACjCC,QAAQ;IACRC,SAAS;IACTC,KAAK;IACLC,MAAM;IACNC,aAAa;IACbC,MAAM;IACNC,OAAO;IACPC,WAAW;IACXC,YAAY;IACZC,aAAa;IACbC,oCAAoC,GAAG,KAAK;IAC5CC,QAAQ;IACRC,oBAAoB;IACpBC,KAAK;IACLC;EACJ,CAAC,GAAAf,IAAA;EACG,MAAM;IACFgB,4BAA4B;IAC5BC,mBAAmB;IACnBC,SAAS;IACTC,YAAY;IACZC;EACJ,CAAC,GAAG7B,UAAU,CAACI,WAAW,CAAC;EAE3B,MAAM0B,IAAI,GAAG5B,OAAO,CAAC,CAAC;EAEtB,MAAM6B,YAAY,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UAAU,EAAErB;EAAU,gBAEtB7B,KAAA,CAAAwC,aAAA,CAAChC,YAAY;IACTK,SAAS,EAAEA,SAAU;IACrBC,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfa,mBAAmB,EAAEA,mBAAoB;IACzCK,YAAY,EAAEA,YAAa;IAC3BhB,MAAM,EAAEkB,UAAW;IACnBf,YAAY,EAAEA,YAAa;IAC3BF,OAAO,EAAEqB,WAAW,GAAGH,eAAe,GAAGF,SAAU;IACnDf,WAAW,EAAEA,WAAY;IACzBE,aAAa,EAAEA,aAAc;IAC7BE,QAAQ,EAAEA,QAAS;IACnBC,oBAAoB,EAAEA,oBAAqB;IAC3CF,oCAAoC,EAAEA,oCAAqC;IAC3EG,KAAK,EAAEA,KAAM;IACbC,YAAY,EAAEA;EAAa,CAC9B,CAAC,eACF1B,KAAA,CAAAwC,aAAA,CAACzC,eAAe;IAAC+C,OAAO,EAAE;EAAM,GAC3Bb,YAAY,IAAIE,UAAU,iBACvBnC,KAAA,CAAAwC,aAAA,CAACjC,YAAY;IAAC4C,EAAE,EAAEnB;EAAK,gBACnBhC,KAAA,CAAAwC,aAAA,CAACnC,mBAAmB,QAAEO,QAA8B,CAC1C,CAEL,CACC,CAAC;AAE/B,CAAC;AAEDF,QAAQ,CAAC0C,WAAW,GAAG,UAAU;AAEjC,eAAe1C,QAAQ","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"ListItem.js","names":["AnimatePresence","React","useCallback","useContext","useEffect","useUuid","AreaContextProvider","ListContext","ListItemBody","ListItemHead","StyledMotionListItem","ListItem","_ref","children","hoverItem","icons","images","isDefaultOpen","isOpen","onClick","onLongPress","leftElements","rightElements","shouldShowSingleRightElementCentered","subtitle","shouldShowRoundImage","shouldShowSeparatorBelow","title","titleElement","incrementExpandableItemCount","isAnyItemExpandable","isWrapped","openItemUuid","updateOpenItemUuid","uuid","isExpandable","undefined","isItemOpen","handleHeadClick","event","shouldOnlyOpen","isClickable","createElement","animate","height","opacity","className","exit","initial","key","$isClickable","$isOpen","$isWrapped","$shouldShowSeparatorBelow","id","displayName"],"sources":["../../../../../src/components/list/list-item/ListItem.tsx"],"sourcesContent":["import { AnimatePresence } from 'framer-motion';\nimport React, {\n FC,\n MouseEventHandler,\n ReactNode,\n TouchEventHandler,\n useCallback,\n useContext,\n useEffect,\n} from 'react';\nimport { useUuid } from '../../../hooks/uuid';\nimport AreaContextProvider from '../../area-provider/AreaContextProvider';\nimport { ListContext } from '../List';\nimport ListItemBody from './list-item-body/ListItemBody';\nimport ListItemHead from './list-item-head/ListItemHead';\nimport { StyledMotionListItem } from './ListItem.styles';\n\nexport type ListItemElements = [ReactNode, ...ReactNode[]];\n\nexport type ListItemProps = {\n /**\n * The content of the `ListItem` body. When the `ListItem` has children,\n * it can be opened and also gets an icon as an indicator automatically.\n */\n children?: ReactNode;\n /**\n * Element that is displayed when hovering over the `ListItem` on the right\n * side. On mobile devices, this element is not displayed.\n */\n hoverItem?: ReactNode;\n /**\n * The FontAwesome or tobit icons to render like an image on the left side\n * of the header. Multiple icons are stacked. See the `Icon` component\n * documentation for more information.\n */\n icons?: string[];\n /**\n * A list of image URLs that are displayed on the left side of the header.\n * If multiple URLs are passed, the image is assembled from the first three\n * image URLs as a puzzle.\n */\n images?: string[];\n /**\n * This can be used to automatically expand the `ListItem` during the first render.\n */\n isDefaultOpen?: boolean;\n /**\n * This overrides the internal opening state of the item and makes it controlled.\n */\n isOpen?: boolean;\n /**\n * Function to be executed when the header of the `ListItem` was clicked\n */\n onClick?: MouseEventHandler<HTMLDivElement>;\n /**\n * Function to be executed when the header of the `ListItem` is pressed for\n * 400 milliseconds.\n */\n onLongPress?: TouchEventHandler<HTMLDivElement>;\n /**\n * Elements that are displayed on the left side of the header. If multiple\n * elements are specified, they are displayed one aside the other.\n */\n leftElements?: ListItemElements;\n /**\n * Elements that are displayed on the right side of the header. If multiple\n * elements are specified, they are displayed one below the other.\n */\n rightElements?: ListItemElements;\n /**\n * Images of users should always be displayed in a round shape. Therefore,\n * this property can be set to true.\n */\n shouldShowRoundImage?: boolean;\n /**\n * Whether a separator should be displayed below this item. In this case, the border is displayed thicker than normal.\n */\n shouldShowSeparatorBelow?: boolean;\n /**\n * Whether a single rightElement should be centered. Only works if one rightElement is given.\n */\n shouldShowSingleRightElementCentered?: boolean;\n /**\n * Subtitle of the `ListItem` displayed in the head below the title\n */\n subtitle?: ReactNode;\n /**\n * Title of the `ListItem` displayed in the head\n */\n title: ReactNode;\n /**\n * Additional elements to be displayed in the header next to the title.\n */\n titleElement?: ReactNode;\n};\n\nconst ListItem: FC<ListItemProps> = ({\n children,\n hoverItem,\n icons,\n images,\n isDefaultOpen,\n isOpen,\n onClick,\n onLongPress,\n leftElements,\n rightElements,\n shouldShowSingleRightElementCentered = false,\n subtitle,\n shouldShowRoundImage,\n shouldShowSeparatorBelow = false,\n title,\n titleElement,\n}) => {\n const {\n incrementExpandableItemCount,\n isAnyItemExpandable,\n isWrapped,\n openItemUuid,\n updateOpenItemUuid,\n } = useContext(ListContext);\n\n const uuid = useUuid();\n\n const isExpandable = children !== undefined;\n const isItemOpen = isOpen ?? openItemUuid === uuid;\n\n const handleHeadClick = useCallback<MouseEventHandler<HTMLDivElement>>(\n (event) => {\n if (isExpandable) {\n updateOpenItemUuid(uuid);\n }\n\n if (typeof onClick === 'function') {\n onClick(event);\n }\n },\n [isExpandable, onClick, updateOpenItemUuid, uuid],\n );\n\n useEffect(() => {\n if (isExpandable) {\n // The incrementExpandableItemCount function returns an cleanup\n // function to decrement expandableItemCount if component unmounts\n return incrementExpandableItemCount();\n }\n\n return undefined;\n }, [incrementExpandableItemCount, isExpandable]);\n\n useEffect(() => {\n if (isDefaultOpen) {\n updateOpenItemUuid(uuid, { shouldOnlyOpen: true });\n }\n }, [isDefaultOpen, updateOpenItemUuid, uuid]);\n\n const isClickable = typeof onClick === 'function' || isExpandable;\n\n return (\n <StyledMotionListItem\n animate={{ height: 'auto', opacity: 1 }}\n className=\"beta-chayns-list-item\"\n exit={{ height: 0, opacity: 0 }}\n initial={{ height: 0, opacity: 0 }}\n key={`list-item-${uuid}`}\n $isClickable={isClickable}\n $isOpen={isItemOpen}\n $isWrapped={isWrapped}\n $shouldShowSeparatorBelow={shouldShowSeparatorBelow}\n >\n <ListItemHead\n hoverItem={hoverItem}\n icons={icons}\n images={images}\n isAnyItemExpandable={isAnyItemExpandable}\n isExpandable={isExpandable}\n isOpen={isItemOpen}\n leftElements={leftElements}\n onClick={isClickable ? handleHeadClick : undefined}\n onLongPress={onLongPress}\n rightElements={rightElements}\n subtitle={subtitle}\n shouldShowRoundImage={shouldShowRoundImage}\n shouldShowSingleRightElementCentered={shouldShowSingleRightElementCentered}\n title={title}\n titleElement={titleElement}\n />\n <AnimatePresence initial={false}>\n {isExpandable && isItemOpen && (\n <ListItemBody id={uuid}>\n <AreaContextProvider>{children}</AreaContextProvider>\n </ListItemBody>\n )}\n </AnimatePresence>\n </StyledMotionListItem>\n );\n};\n\nListItem.displayName = 'ListItem';\n\nexport default ListItem;\n"],"mappings":"AAAA,SAASA,eAAe,QAAQ,eAAe;AAC/C,OAAOC,KAAK,IAKRC,WAAW,EACXC,UAAU,EACVC,SAAS,QACN,OAAO;AACd,SAASC,OAAO,QAAQ,qBAAqB;AAC7C,OAAOC,mBAAmB,MAAM,yCAAyC;AACzE,SAASC,WAAW,QAAQ,SAAS;AACrC,OAAOC,YAAY,MAAM,+BAA+B;AACxD,OAAOC,YAAY,MAAM,+BAA+B;AACxD,SAASC,oBAAoB,QAAQ,mBAAmB;AAiFxD,MAAMC,QAA2B,GAAGC,IAAA,IAiB9B;EAAA,IAjB+B;IACjCC,QAAQ;IACRC,SAAS;IACTC,KAAK;IACLC,MAAM;IACNC,aAAa;IACbC,MAAM;IACNC,OAAO;IACPC,WAAW;IACXC,YAAY;IACZC,aAAa;IACbC,oCAAoC,GAAG,KAAK;IAC5CC,QAAQ;IACRC,oBAAoB;IACpBC,wBAAwB,GAAG,KAAK;IAChCC,KA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|
31
|
+
$shouldShowSeparatorBelow,
|
|
31
32
|
theme
|
|
32
33
|
} = _ref3;
|
|
33
|
-
return theme.accordionLines && css`
|
|
34
|
+
return ($shouldShowSeparatorBelow || theme.accordionLines) && css`
|
|
34
35
|
&&:not(:last-child) {
|
|
35
|
-
border-bottom: 1px solid
|
|
36
|
+
border-bottom: ${$shouldShowSeparatorBelow ? '4px' : '1px'} solid
|
|
37
|
+
rgba(${theme['headline-rgb']}, 0.5);
|
|
36
38
|
}
|
|
37
39
|
`;
|
|
38
40
|
}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.styles.js","names":["motion","styled","css","StyledMotionListItem","div","_ref","$isOpen","theme","cardBackgroundOpacity","_ref2","$isClickable","_ref3","
|
|
1
|
+
{"version":3,"file":"ListItem.styles.js","names":["motion","styled","css","StyledMotionListItem","div","_ref","$isOpen","theme","cardBackgroundOpacity","_ref2","$isClickable","_ref3","$shouldShowSeparatorBelow","accordionLines","_ref4","$isWrapped"],"sources":["../../../../../src/components/list/list-item/ListItem.styles.ts"],"sourcesContent":["import { motion } from 'framer-motion';\nimport styled, { css } from 'styled-components';\nimport type { WithTheme } from '../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledListItemProps = WithTheme<{\n $isClickable: boolean;\n $isOpen: boolean;\n $isWrapped: boolean;\n $shouldShowSeparatorBelow: boolean;\n}>;\n\nexport const StyledMotionListItem = styled(motion.div)<StyledListItemProps>`\n ${({ $isOpen, theme }) =>\n $isOpen &&\n css`\n background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});\n `}\n\n overflow: hidden;\n transition: background-color 0.3s ease;\n\n ${({ $isClickable, theme }) =>\n $isClickable &&\n css`\n &&:hover {\n background-color: rgba(${theme['100-rgb']}, ${theme.cardBackgroundOpacity});\n }\n `}\n \n ${({ $shouldShowSeparatorBelow, theme }: StyledListItemProps) =>\n ($shouldShowSeparatorBelow || theme.accordionLines) &&\n css`\n &&:not(:last-child) {\n border-bottom: ${$shouldShowSeparatorBelow ? '4px' : '1px'} solid\n rgba(${theme['headline-rgb']}, 0.5);\n }\n `}}\n\n ${({ $isWrapped }) =>\n $isWrapped &&\n css`\n padding-left: 26px;\n `}\n`;\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,eAAe;AACtC,OAAOC,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAU/C,OAAO,MAAMC,oBAAoB,GAAGF,MAAM,CAACD,MAAM,CAACI,GAAG,CAAsB;AAC3E,MAAMC,IAAA;EAAA,IAAC;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAAF,IAAA;EAAA,OACjBC,OAAO,IACPJ,GAAG;AACX,qCAAqCK,KAAK,CAAC,SAAS,CAAC,KAAKA,KAAK,CAACC,qBAAqB;AACrF,SAAS;AAAA;AACT;AACA;AACA;AACA;AACA,MAAMC,KAAA;EAAA,IAAC;IAAEC,YAAY;IAAEH;EAAM,CAAC,GAAAE,KAAA;EAAA,OACtBC,YAAY,IACZR,GAAG;AACX;AACA,yCAAyCK,KAAK,CAAC,SAAS,CAAC,KAAKA,KAAK,CAACC,qBAAqB;AACzF;AACA,SAAS;AAAA;AACT;AACA,MAAMG,KAAA;EAAA,IAAC;IAAEC,yBAAyB;IAAEL;EAA2B,CAAC,GAAAI,KAAA;EAAA,OACxD,CAACC,yBAAyB,IAAIL,KAAK,CAACM,cAAc,KAClDX,GAAG;AACX;AACA,iCAAiCU,yBAAyB,GAAG,KAAK,GAAG,KAAK;AAC1E,2BAA2BL,KAAK,CAAC,cAAc,CAAC;AAChD;AACA,SAAS;AAAA;AACT;AACA,MAAMO,KAAA;EAAA,IAAC;IAAEC;EAAW,CAAC,GAAAD,KAAA;EAAA,OACbC,UAAU,IACVb,GAAG;AACX;AACA,SAAS;AAAA;AACT,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DesignSettings, ParagraphFormat } from '../../types/colorSchemeProvider';
|
|
2
|
-
export declare const getDesignSettings: () => Promise<DesignSettings | undefined>;
|
|
3
|
-
export declare const getParagraphFormat: () => Promise<ParagraphFormat[] | undefined>;
|
|
2
|
+
export declare const getDesignSettings: (siteId?: string) => Promise<DesignSettings | undefined>;
|
|
3
|
+
export declare const getParagraphFormat: (siteId?: string) => Promise<ParagraphFormat[] | undefined>;
|
|
@@ -7,7 +7,6 @@ type StyledMotionAccordionBodyProps = WithTheme<{
|
|
|
7
7
|
export declare const StyledMotionAccordionBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
8
8
|
slot?: string | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
-
id?: string | undefined;
|
|
11
10
|
color?: string | undefined;
|
|
12
11
|
rel?: string | undefined;
|
|
13
12
|
defaultChecked?: boolean | undefined;
|
|
@@ -22,6 +21,7 @@ export declare const StyledMotionAccordionBody: import("styled-components/dist/t
|
|
|
22
21
|
dir?: string | undefined;
|
|
23
22
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
24
23
|
hidden?: boolean | undefined;
|
|
24
|
+
id?: string | undefined;
|
|
25
25
|
lang?: string | undefined;
|
|
26
26
|
nonce?: string | undefined;
|
|
27
27
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -3,7 +3,6 @@ import type { WithTheme } from '../../color-scheme-provider/ColorSchemeProvider'
|
|
|
3
3
|
export declare const StyledMotionAccordionHead: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
4
4
|
slot?: string | undefined;
|
|
5
5
|
title?: string | undefined;
|
|
6
|
-
id?: string | undefined;
|
|
7
6
|
color?: string | undefined;
|
|
8
7
|
rel?: string | undefined;
|
|
9
8
|
defaultChecked?: boolean | undefined;
|
|
@@ -18,6 +17,7 @@ export declare const StyledMotionAccordionHead: import("styled-components/dist/t
|
|
|
18
17
|
dir?: string | undefined;
|
|
19
18
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
20
19
|
hidden?: boolean | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
21
|
lang?: string | undefined;
|
|
22
22
|
nonce?: string | undefined;
|
|
23
23
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -268,7 +268,6 @@ export declare const StyledMotionAccordionHead: import("styled-components/dist/t
|
|
|
268
268
|
export declare const StyledMotionIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
269
269
|
slot?: string | undefined;
|
|
270
270
|
title?: string | undefined;
|
|
271
|
-
id?: string | undefined;
|
|
272
271
|
color?: string | undefined;
|
|
273
272
|
rel?: string | undefined;
|
|
274
273
|
defaultChecked?: boolean | undefined;
|
|
@@ -283,6 +282,7 @@ export declare const StyledMotionIconWrapper: import("styled-components/dist/typ
|
|
|
283
282
|
dir?: string | undefined;
|
|
284
283
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
285
284
|
hidden?: boolean | undefined;
|
|
285
|
+
id?: string | undefined;
|
|
286
286
|
lang?: string | undefined;
|
|
287
287
|
nonce?: string | undefined;
|
|
288
288
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -537,7 +537,6 @@ export declare const StyledAccordionIcon: import("styled-components/dist/types")
|
|
|
537
537
|
export declare const StyledMotionContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
538
538
|
slot?: string | undefined;
|
|
539
539
|
title?: string | undefined;
|
|
540
|
-
id?: string | undefined;
|
|
541
540
|
color?: string | undefined;
|
|
542
541
|
rel?: string | undefined;
|
|
543
542
|
defaultChecked?: boolean | undefined;
|
|
@@ -552,6 +551,7 @@ export declare const StyledMotionContentWrapper: import("styled-components/dist/
|
|
|
552
551
|
dir?: string | undefined;
|
|
553
552
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
554
553
|
hidden?: boolean | undefined;
|
|
554
|
+
id?: string | undefined;
|
|
555
555
|
lang?: string | undefined;
|
|
556
556
|
nonce?: string | undefined;
|
|
557
557
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -802,7 +802,6 @@ export declare const StyledMotionContentWrapper: import("styled-components/dist/
|
|
|
802
802
|
export declare const StyledMotionTitleWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
803
803
|
slot?: string | undefined;
|
|
804
804
|
title?: string | undefined;
|
|
805
|
-
id?: string | undefined;
|
|
806
805
|
color?: string | undefined;
|
|
807
806
|
rel?: string | undefined;
|
|
808
807
|
defaultChecked?: boolean | undefined;
|
|
@@ -817,6 +816,7 @@ export declare const StyledMotionTitleWrapper: import("styled-components/dist/ty
|
|
|
817
816
|
dir?: string | undefined;
|
|
818
817
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
819
818
|
hidden?: boolean | undefined;
|
|
819
|
+
id?: string | undefined;
|
|
820
820
|
lang?: string | undefined;
|
|
821
821
|
nonce?: string | undefined;
|
|
822
822
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -1072,7 +1072,6 @@ interface StyledMotionTitleProps {
|
|
|
1072
1072
|
export declare const StyledMotionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
1073
1073
|
slot?: string | undefined;
|
|
1074
1074
|
title?: string | undefined;
|
|
1075
|
-
id?: string | undefined;
|
|
1076
1075
|
color?: string | undefined;
|
|
1077
1076
|
rel?: string | undefined;
|
|
1078
1077
|
defaultChecked?: boolean | undefined;
|
|
@@ -1087,6 +1086,7 @@ export declare const StyledMotionTitle: import("styled-components/dist/types").I
|
|
|
1087
1086
|
dir?: string | undefined;
|
|
1088
1087
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
1089
1088
|
hidden?: boolean | undefined;
|
|
1089
|
+
id?: string | undefined;
|
|
1090
1090
|
lang?: string | undefined;
|
|
1091
1091
|
nonce?: string | undefined;
|
|
1092
1092
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -1335,7 +1335,6 @@ export declare const StyledMotionTitle: import("styled-components/dist/types").I
|
|
|
1335
1335
|
export declare const StyledMotionTitleElementWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
1336
1336
|
slot?: string | undefined;
|
|
1337
1337
|
title?: string | undefined;
|
|
1338
|
-
id?: string | undefined;
|
|
1339
1338
|
color?: string | undefined;
|
|
1340
1339
|
rel?: string | undefined;
|
|
1341
1340
|
defaultChecked?: boolean | undefined;
|
|
@@ -1350,6 +1349,7 @@ export declare const StyledMotionTitleElementWrapper: import("styled-components/
|
|
|
1350
1349
|
dir?: string | undefined;
|
|
1351
1350
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
1352
1351
|
hidden?: boolean | undefined;
|
|
1352
|
+
id?: string | undefined;
|
|
1353
1353
|
lang?: string | undefined;
|
|
1354
1354
|
nonce?: string | undefined;
|
|
1355
1355
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -1601,7 +1601,6 @@ export declare const StyledRightWrapper: import("styled-components/dist/types").
|
|
|
1601
1601
|
export declare const StyledMotionSearchWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
1602
1602
|
slot?: string | undefined;
|
|
1603
1603
|
title?: string | undefined;
|
|
1604
|
-
id?: string | undefined;
|
|
1605
1604
|
color?: string | undefined;
|
|
1606
1605
|
rel?: string | undefined;
|
|
1607
1606
|
defaultChecked?: boolean | undefined;
|
|
@@ -1616,6 +1615,7 @@ export declare const StyledMotionSearchWrapper: import("styled-components/dist/t
|
|
|
1616
1615
|
dir?: string | undefined;
|
|
1617
1616
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
1618
1617
|
hidden?: boolean | undefined;
|
|
1618
|
+
id?: string | undefined;
|
|
1619
1619
|
lang?: string | undefined;
|
|
1620
1620
|
nonce?: string | undefined;
|
|
1621
1621
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -1866,7 +1866,6 @@ export declare const StyledMotionSearchWrapper: import("styled-components/dist/t
|
|
|
1866
1866
|
export declare const StyledMotionRightElementWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
1867
1867
|
slot?: string | undefined;
|
|
1868
1868
|
title?: string | undefined;
|
|
1869
|
-
id?: string | undefined;
|
|
1870
1869
|
color?: string | undefined;
|
|
1871
1870
|
rel?: string | undefined;
|
|
1872
1871
|
defaultChecked?: boolean | undefined;
|
|
@@ -1881,6 +1880,7 @@ export declare const StyledMotionRightElementWrapper: import("styled-components/
|
|
|
1881
1880
|
dir?: string | undefined;
|
|
1882
1881
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
1883
1882
|
hidden?: boolean | undefined;
|
|
1883
|
+
id?: string | undefined;
|
|
1884
1884
|
lang?: string | undefined;
|
|
1885
1885
|
nonce?: string | undefined;
|
|
1886
1886
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -2138,7 +2138,6 @@ export declare const StyledMotionRightInput: import("styled-components/dist/type
|
|
|
2138
2138
|
pattern?: string | undefined;
|
|
2139
2139
|
value?: string | number | readonly string[] | undefined;
|
|
2140
2140
|
size?: number | undefined;
|
|
2141
|
-
id?: string | undefined;
|
|
2142
2141
|
color?: string | undefined;
|
|
2143
2142
|
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
2144
2143
|
rel?: string | undefined;
|
|
@@ -2154,6 +2153,7 @@ export declare const StyledMotionRightInput: import("styled-components/dist/type
|
|
|
2154
2153
|
dir?: string | undefined;
|
|
2155
2154
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
2156
2155
|
hidden?: boolean | undefined;
|
|
2156
|
+
id?: string | undefined;
|
|
2157
2157
|
lang?: string | undefined;
|
|
2158
2158
|
nonce?: string | undefined;
|
|
2159
2159
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -2428,7 +2428,6 @@ export declare const StyledMotionRightInput: import("styled-components/dist/type
|
|
|
2428
2428
|
export declare const StyledMotionRightInputIconWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
2429
2429
|
slot?: string | undefined;
|
|
2430
2430
|
title?: string | undefined;
|
|
2431
|
-
id?: string | undefined;
|
|
2432
2431
|
color?: string | undefined;
|
|
2433
2432
|
rel?: string | undefined;
|
|
2434
2433
|
defaultChecked?: boolean | undefined;
|
|
@@ -2443,6 +2442,7 @@ export declare const StyledMotionRightInputIconWrapper: import("styled-component
|
|
|
2443
2442
|
dir?: string | undefined;
|
|
2444
2443
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
2445
2444
|
hidden?: boolean | undefined;
|
|
2445
|
+
id?: string | undefined;
|
|
2446
2446
|
lang?: string | undefined;
|
|
2447
2447
|
nonce?: string | undefined;
|
|
2448
2448
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -24,7 +24,6 @@ export declare const StyledMotionAmountControlButton: import("styled-components/
|
|
|
24
24
|
slot?: string | undefined;
|
|
25
25
|
title?: string | undefined;
|
|
26
26
|
value?: string | number | readonly string[] | undefined;
|
|
27
|
-
id?: string | undefined;
|
|
28
27
|
color?: string | undefined;
|
|
29
28
|
type?: "button" | "reset" | "submit" | undefined;
|
|
30
29
|
rel?: string | undefined;
|
|
@@ -40,6 +39,7 @@ export declare const StyledMotionAmountControlButton: import("styled-components/
|
|
|
40
39
|
dir?: string | undefined;
|
|
41
40
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
42
41
|
hidden?: boolean | undefined;
|
|
42
|
+
id?: string | undefined;
|
|
43
43
|
lang?: string | undefined;
|
|
44
44
|
nonce?: string | undefined;
|
|
45
45
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -12,7 +12,6 @@ export declare const StyledMotionButton: import("styled-components/dist/types").
|
|
|
12
12
|
slot?: string | undefined;
|
|
13
13
|
title?: string | undefined;
|
|
14
14
|
value?: string | number | readonly string[] | undefined;
|
|
15
|
-
id?: string | undefined;
|
|
16
15
|
color?: string | undefined;
|
|
17
16
|
type?: "button" | "reset" | "submit" | undefined;
|
|
18
17
|
rel?: string | undefined;
|
|
@@ -28,6 +27,7 @@ export declare const StyledMotionButton: import("styled-components/dist/types").
|
|
|
28
27
|
dir?: string | undefined;
|
|
29
28
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
30
29
|
hidden?: boolean | undefined;
|
|
30
|
+
id?: string | undefined;
|
|
31
31
|
lang?: string | undefined;
|
|
32
32
|
nonce?: string | undefined;
|
|
33
33
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -284,7 +284,6 @@ export declare const StyledIconWrapper: import("styled-components/dist/types").I
|
|
|
284
284
|
export declare const StyledMotionChildrenWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
285
285
|
slot?: string | undefined;
|
|
286
286
|
title?: string | undefined;
|
|
287
|
-
id?: string | undefined;
|
|
288
287
|
color?: string | undefined;
|
|
289
288
|
rel?: string | undefined;
|
|
290
289
|
defaultChecked?: boolean | undefined;
|
|
@@ -299,6 +298,7 @@ export declare const StyledMotionChildrenWrapper: import("styled-components/dist
|
|
|
299
298
|
dir?: string | undefined;
|
|
300
299
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
301
300
|
hidden?: boolean | undefined;
|
|
301
|
+
id?: string | undefined;
|
|
302
302
|
lang?: string | undefined;
|
|
303
303
|
nonce?: string | undefined;
|
|
304
304
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -549,7 +549,6 @@ export declare const StyledMotionChildrenWrapper: import("styled-components/dist
|
|
|
549
549
|
export declare const StyledMotionWaitCursorWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
550
550
|
slot?: string | undefined;
|
|
551
551
|
title?: string | undefined;
|
|
552
|
-
id?: string | undefined;
|
|
553
552
|
color?: string | undefined;
|
|
554
553
|
rel?: string | undefined;
|
|
555
554
|
defaultChecked?: boolean | undefined;
|
|
@@ -564,6 +563,7 @@ export declare const StyledMotionWaitCursorWrapper: import("styled-components/di
|
|
|
564
563
|
dir?: string | undefined;
|
|
565
564
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
566
565
|
hidden?: boolean | undefined;
|
|
566
|
+
id?: string | undefined;
|
|
567
567
|
lang?: string | undefined;
|
|
568
568
|
nonce?: string | undefined;
|
|
569
569
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -32,6 +32,10 @@ type ColorSchemeProviderProps = {
|
|
|
32
32
|
* The secondary hex color to be used for the children
|
|
33
33
|
*/
|
|
34
34
|
secondaryColor?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The site id of the page for which the design settings should be fetched
|
|
37
|
+
*/
|
|
38
|
+
siteId?: string;
|
|
35
39
|
/**
|
|
36
40
|
* Additional styles set on the root element
|
|
37
41
|
*/
|
|
@@ -31,7 +31,6 @@ type StyledComboBoxBodyProps = WithTheme<{
|
|
|
31
31
|
export declare const StyledMotionComboBoxBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
32
32
|
slot?: string | undefined;
|
|
33
33
|
title?: string | undefined;
|
|
34
|
-
id?: string | undefined;
|
|
35
34
|
color?: string | undefined;
|
|
36
35
|
rel?: string | undefined;
|
|
37
36
|
defaultChecked?: boolean | undefined;
|
|
@@ -46,6 +45,7 @@ export declare const StyledMotionComboBoxBody: import("styled-components/dist/ty
|
|
|
46
45
|
dir?: string | undefined;
|
|
47
46
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
48
47
|
hidden?: boolean | undefined;
|
|
48
|
+
id?: string | undefined;
|
|
49
49
|
lang?: string | undefined;
|
|
50
50
|
nonce?: string | undefined;
|
|
51
51
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
package/lib/types/components/context-menu/context-menu-content/ContextMenuContent.styles.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ type StyledMotionContextMenuContentProps = WithTheme<{
|
|
|
6
6
|
export declare const StyledMotionContextMenuContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
7
7
|
slot?: string | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
|
-
id?: string | undefined;
|
|
10
9
|
color?: string | undefined;
|
|
11
10
|
rel?: string | undefined;
|
|
12
11
|
defaultChecked?: boolean | undefined;
|
|
@@ -21,6 +20,7 @@ export declare const StyledMotionContextMenuContent: import("styled-components/d
|
|
|
21
20
|
dir?: string | undefined;
|
|
22
21
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
23
22
|
hidden?: boolean | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
24
|
lang?: string | undefined;
|
|
25
25
|
nonce?: string | undefined;
|
|
26
26
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const StyledMotionExpandableContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
|
|
2
2
|
slot?: string | undefined;
|
|
3
3
|
title?: string | undefined;
|
|
4
|
-
id?: string | undefined;
|
|
5
4
|
color?: string | undefined;
|
|
6
5
|
rel?: string | undefined;
|
|
7
6
|
defaultChecked?: boolean | undefined;
|
|
@@ -16,6 +15,7 @@ export declare const StyledMotionExpandableContent: import("styled-components/di
|
|
|
16
15
|
dir?: string | undefined;
|
|
17
16
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
18
17
|
hidden?: boolean | undefined;
|
|
18
|
+
id?: string | undefined;
|
|
19
19
|
lang?: string | undefined;
|
|
20
20
|
nonce?: string | undefined;
|
|
21
21
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -18,7 +18,6 @@ export declare const StyledFileInputText: import("styled-components/dist/types")
|
|
|
18
18
|
export declare const StyledMotionFileInputList: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
19
19
|
slot?: string | undefined;
|
|
20
20
|
title?: string | undefined;
|
|
21
|
-
id?: string | undefined;
|
|
22
21
|
color?: string | undefined;
|
|
23
22
|
rel?: string | undefined;
|
|
24
23
|
defaultChecked?: boolean | undefined;
|
|
@@ -33,6 +32,7 @@ export declare const StyledMotionFileInputList: import("styled-components/dist/t
|
|
|
33
32
|
dir?: string | undefined;
|
|
34
33
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
35
34
|
hidden?: boolean | undefined;
|
|
35
|
+
id?: string | undefined;
|
|
36
36
|
lang?: string | undefined;
|
|
37
37
|
nonce?: string | undefined;
|
|
38
38
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -27,7 +27,6 @@ type StyledFilterButtonItemBackgroundProps = WithTheme<{
|
|
|
27
27
|
export declare const StyledMotionFilterButtonItemBackground: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
28
28
|
slot?: string | undefined;
|
|
29
29
|
title?: string | undefined;
|
|
30
|
-
id?: string | undefined;
|
|
31
30
|
color?: string | undefined;
|
|
32
31
|
rel?: string | undefined;
|
|
33
32
|
defaultChecked?: boolean | undefined;
|
|
@@ -42,6 +41,7 @@ export declare const StyledMotionFilterButtonItemBackground: import("styled-comp
|
|
|
42
41
|
dir?: string | undefined;
|
|
43
42
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
44
43
|
hidden?: boolean | undefined;
|
|
44
|
+
id?: string | undefined;
|
|
45
45
|
lang?: string | undefined;
|
|
46
46
|
nonce?: string | undefined;
|
|
47
47
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -26,7 +26,6 @@ export declare const StyledMotionInputLabelWrapper: import("styled-components/di
|
|
|
26
26
|
form?: string | undefined;
|
|
27
27
|
slot?: string | undefined;
|
|
28
28
|
title?: string | undefined;
|
|
29
|
-
id?: string | undefined;
|
|
30
29
|
color?: string | undefined;
|
|
31
30
|
rel?: string | undefined;
|
|
32
31
|
defaultChecked?: boolean | undefined;
|
|
@@ -41,6 +40,7 @@ export declare const StyledMotionInputLabelWrapper: import("styled-components/di
|
|
|
41
40
|
dir?: string | undefined;
|
|
42
41
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
43
42
|
hidden?: boolean | undefined;
|
|
43
|
+
id?: string | undefined;
|
|
44
44
|
lang?: string | undefined;
|
|
45
45
|
nonce?: string | undefined;
|
|
46
46
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -290,7 +290,6 @@ export declare const StyledMotionInputLabelWrapper: import("styled-components/di
|
|
|
290
290
|
export declare const StyledMotionInputElement: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<{
|
|
291
291
|
slot?: string | undefined;
|
|
292
292
|
title?: string | undefined;
|
|
293
|
-
id?: string | undefined;
|
|
294
293
|
color?: string | undefined;
|
|
295
294
|
rel?: string | undefined;
|
|
296
295
|
defaultChecked?: boolean | undefined;
|
|
@@ -305,6 +304,7 @@ export declare const StyledMotionInputElement: import("styled-components/dist/ty
|
|
|
305
304
|
dir?: string | undefined;
|
|
306
305
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
307
306
|
hidden?: boolean | undefined;
|
|
307
|
+
id?: string | undefined;
|
|
308
308
|
lang?: string | undefined;
|
|
309
309
|
nonce?: string | undefined;
|
|
310
310
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -561,7 +561,6 @@ type StyledMotionInputClearIconProps = WithTheme<{
|
|
|
561
561
|
export declare const StyledMotionInputClearIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
562
562
|
slot?: string | undefined;
|
|
563
563
|
title?: string | undefined;
|
|
564
|
-
id?: string | undefined;
|
|
565
564
|
color?: string | undefined;
|
|
566
565
|
rel?: string | undefined;
|
|
567
566
|
defaultChecked?: boolean | undefined;
|
|
@@ -576,6 +575,7 @@ export declare const StyledMotionInputClearIcon: import("styled-components/dist/
|
|
|
576
575
|
dir?: string | undefined;
|
|
577
576
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
578
577
|
hidden?: boolean | undefined;
|
|
578
|
+
id?: string | undefined;
|
|
579
579
|
lang?: string | undefined;
|
|
580
580
|
nonce?: string | undefined;
|
|
581
581
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -55,6 +55,10 @@ export type ListItemProps = {
|
|
|
55
55
|
* this property can be set to true.
|
|
56
56
|
*/
|
|
57
57
|
shouldShowRoundImage?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether a separator should be displayed below this item. In this case, the border is displayed thicker than normal.
|
|
60
|
+
*/
|
|
61
|
+
shouldShowSeparatorBelow?: boolean;
|
|
58
62
|
/**
|
|
59
63
|
* Whether a single rightElement should be centered. Only works if one rightElement is given.
|
|
60
64
|
*/
|
|
@@ -3,11 +3,11 @@ type StyledListItemProps = WithTheme<{
|
|
|
3
3
|
$isClickable: boolean;
|
|
4
4
|
$isOpen: boolean;
|
|
5
5
|
$isWrapped: boolean;
|
|
6
|
+
$shouldShowSeparatorBelow: boolean;
|
|
6
7
|
}>;
|
|
7
8
|
export declare const StyledMotionListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
8
9
|
slot?: string | undefined;
|
|
9
10
|
title?: string | undefined;
|
|
10
|
-
id?: string | undefined;
|
|
11
11
|
color?: string | undefined;
|
|
12
12
|
rel?: string | undefined;
|
|
13
13
|
defaultChecked?: boolean | undefined;
|
|
@@ -22,6 +22,7 @@ export declare const StyledMotionListItem: import("styled-components/dist/types"
|
|
|
22
22
|
dir?: string | undefined;
|
|
23
23
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
24
24
|
hidden?: boolean | undefined;
|
|
25
|
+
id?: string | undefined;
|
|
25
26
|
lang?: string | undefined;
|
|
26
27
|
nonce?: string | undefined;
|
|
27
28
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const StyledMotionListItemBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
2
2
|
slot?: string | undefined;
|
|
3
3
|
title?: string | undefined;
|
|
4
|
-
id?: string | undefined;
|
|
5
4
|
color?: string | undefined;
|
|
6
5
|
rel?: string | undefined;
|
|
7
6
|
defaultChecked?: boolean | undefined;
|
|
@@ -16,6 +15,7 @@ export declare const StyledMotionListItemBody: import("styled-components/dist/ty
|
|
|
16
15
|
dir?: string | undefined;
|
|
17
16
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
18
17
|
hidden?: boolean | undefined;
|
|
18
|
+
id?: string | undefined;
|
|
19
19
|
lang?: string | undefined;
|
|
20
20
|
nonce?: string | undefined;
|
|
21
21
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -6,7 +6,6 @@ type StyledListItemHeadProps = WithTheme<{
|
|
|
6
6
|
export declare const StyledListItemHead: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
7
7
|
slot?: string | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
|
-
id?: string | undefined;
|
|
10
9
|
color?: string | undefined;
|
|
11
10
|
rel?: string | undefined;
|
|
12
11
|
defaultChecked?: boolean | undefined;
|
|
@@ -21,6 +20,7 @@ export declare const StyledListItemHead: import("styled-components/dist/types").
|
|
|
21
20
|
dir?: string | undefined;
|
|
22
21
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
23
22
|
hidden?: boolean | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
24
|
lang?: string | undefined;
|
|
25
25
|
nonce?: string | undefined;
|
|
26
26
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -270,7 +270,6 @@ export declare const StyledListItemHeadLeftWrapper: import("styled-components/di
|
|
|
270
270
|
export declare const StyledMotionListItemHeadIndicator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
271
271
|
slot?: string | undefined;
|
|
272
272
|
title?: string | undefined;
|
|
273
|
-
id?: string | undefined;
|
|
274
273
|
color?: string | undefined;
|
|
275
274
|
rel?: string | undefined;
|
|
276
275
|
defaultChecked?: boolean | undefined;
|
|
@@ -285,6 +284,7 @@ export declare const StyledMotionListItemHeadIndicator: import("styled-component
|
|
|
285
284
|
dir?: string | undefined;
|
|
286
285
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
287
286
|
hidden?: boolean | undefined;
|
|
287
|
+
id?: string | undefined;
|
|
288
288
|
lang?: string | undefined;
|
|
289
289
|
nonce?: string | undefined;
|
|
290
290
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -547,7 +547,6 @@ type StyledListItemHeadTitleTextProps = WithTheme<{
|
|
|
547
547
|
export declare const StyledListItemHeadTitleText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
548
548
|
slot?: string | undefined;
|
|
549
549
|
title?: string | undefined;
|
|
550
|
-
id?: string | undefined;
|
|
551
550
|
color?: string | undefined;
|
|
552
551
|
rel?: string | undefined;
|
|
553
552
|
defaultChecked?: boolean | undefined;
|
|
@@ -562,6 +561,7 @@ export declare const StyledListItemHeadTitleText: import("styled-components/dist
|
|
|
562
561
|
dir?: string | undefined;
|
|
563
562
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
564
563
|
hidden?: boolean | undefined;
|
|
564
|
+
id?: string | undefined;
|
|
565
565
|
lang?: string | undefined;
|
|
566
566
|
nonce?: string | undefined;
|
|
567
567
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -826,7 +826,6 @@ export declare const StyledListItemHeadRightElement: import("styled-components/d
|
|
|
826
826
|
export declare const StyledMotionListItemHeadHoverItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
827
827
|
slot?: string | undefined;
|
|
828
828
|
title?: string | undefined;
|
|
829
|
-
id?: string | undefined;
|
|
830
829
|
color?: string | undefined;
|
|
831
830
|
rel?: string | undefined;
|
|
832
831
|
defaultChecked?: boolean | undefined;
|
|
@@ -841,6 +840,7 @@ export declare const StyledMotionListItemHeadHoverItem: import("styled-component
|
|
|
841
840
|
dir?: string | undefined;
|
|
842
841
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
843
842
|
hidden?: boolean | undefined;
|
|
843
|
+
id?: string | undefined;
|
|
844
844
|
lang?: string | undefined;
|
|
845
845
|
nonce?: string | undefined;
|
|
846
846
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -7,7 +7,6 @@ type StyledMentionFinderPopupProps = WithTheme<{
|
|
|
7
7
|
export declare const StyledMotionMentionFinderPopup: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
8
8
|
slot?: string | undefined;
|
|
9
9
|
title?: string | undefined;
|
|
10
|
-
id?: string | undefined;
|
|
11
10
|
color?: string | undefined;
|
|
12
11
|
rel?: string | undefined;
|
|
13
12
|
defaultChecked?: boolean | undefined;
|
|
@@ -22,6 +21,7 @@ export declare const StyledMotionMentionFinderPopup: import("styled-components/d
|
|
|
22
21
|
dir?: string | undefined;
|
|
23
22
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
24
23
|
hidden?: boolean | undefined;
|
|
24
|
+
id?: string | undefined;
|
|
25
25
|
lang?: string | undefined;
|
|
26
26
|
nonce?: string | undefined;
|
|
27
27
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -9,7 +9,6 @@ type StyledMotionPopupContentWrapperProps = WithTheme<{
|
|
|
9
9
|
export declare const StyledMotionPopupContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
10
10
|
slot?: string | undefined;
|
|
11
11
|
title?: string | undefined;
|
|
12
|
-
id?: string | undefined;
|
|
13
12
|
color?: string | undefined;
|
|
14
13
|
rel?: string | undefined;
|
|
15
14
|
defaultChecked?: boolean | undefined;
|
|
@@ -24,6 +23,7 @@ export declare const StyledMotionPopupContentWrapper: import("styled-components/
|
|
|
24
23
|
dir?: string | undefined;
|
|
25
24
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
26
25
|
hidden?: boolean | undefined;
|
|
26
|
+
id?: string | undefined;
|
|
27
27
|
lang?: string | undefined;
|
|
28
28
|
nonce?: string | undefined;
|
|
29
29
|
spellCheck?: (boolean | "false" | "true") | undefined;
|
|
@@ -6,7 +6,6 @@ export declare const StyledProgressBarProgressWrapper: import("styled-components
|
|
|
6
6
|
export declare const StyledMotionProgressBarProgress: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<{
|
|
7
7
|
slot?: string | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
9
|
-
id?: string | undefined;
|
|
10
9
|
color?: string | undefined;
|
|
11
10
|
rel?: string | undefined;
|
|
12
11
|
defaultChecked?: boolean | undefined;
|
|
@@ -21,6 +20,7 @@ export declare const StyledMotionProgressBarProgress: import("styled-components/
|
|
|
21
20
|
dir?: string | undefined;
|
|
22
21
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
23
22
|
hidden?: boolean | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
24
|
lang?: string | undefined;
|
|
25
25
|
nonce?: string | undefined;
|
|
26
26
|
spellCheck?: (boolean | "false" | "true") | undefined;
|