@chayns-components/core 5.0.0-beta.37 → 5.0.0-beta.38
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/components/accordion/Accordion.js +0 -16
- package/lib/components/accordion/Accordion.js.map +1 -1
- package/lib/components/accordion/Accordion.styles.js +42 -21
- package/lib/components/accordion/Accordion.styles.js.map +1 -1
- package/lib/components/accordion/accordion-body/AccordionBody.js +0 -6
- package/lib/components/accordion/accordion-body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/accordion-body/AccordionBody.styles.js +3 -9
- package/lib/components/accordion/accordion-body/AccordionBody.styles.js.map +1 -1
- package/lib/components/accordion/accordion-content/AccordionContent.js +0 -6
- package/lib/components/accordion/accordion-content/AccordionContent.js.map +1 -1
- package/lib/components/accordion/accordion-content/AccordionContent.styles.js +6 -11
- package/lib/components/accordion/accordion-content/AccordionContent.styles.js.map +1 -1
- package/lib/components/accordion/accordion-group/AccordionGroup.js +0 -8
- package/lib/components/accordion/accordion-group/AccordionGroup.js.map +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.js +1 -12
- package/lib/components/accordion/accordion-head/AccordionHead.js.map +1 -1
- package/lib/components/accordion/accordion-head/AccordionHead.styles.js +95 -32
- package/lib/components/accordion/accordion-head/AccordionHead.styles.js.map +1 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.js +0 -5
- package/lib/components/accordion/accordion-intro/AccordionIntro.js.map +1 -1
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js +3 -9
- package/lib/components/accordion/accordion-intro/AccordionIntro.styles.js.map +1 -1
- package/lib/components/accordion/utils.js +1 -5
- package/lib/components/accordion/utils.js.map +1 -1
- package/lib/components/badge/Badge.js +0 -6
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.styles.js +12 -11
- package/lib/components/badge/Badge.styles.js.map +1 -1
- package/lib/components/button/Button.js +0 -10
- package/lib/components/button/Button.js.map +1 -1
- package/lib/components/button/Button.styles.js +32 -17
- package/lib/components/button/Button.styles.js.map +1 -1
- package/lib/components/checkbox/Checkbox.js +0 -8
- package/lib/components/checkbox/Checkbox.js.map +1 -1
- package/lib/components/checkbox/Checkbox.styles.js +67 -29
- package/lib/components/checkbox/Checkbox.styles.js.map +1 -1
- package/lib/components/color-scheme-provider/ColorSchemeProvider.js +12 -21
- package/lib/components/color-scheme-provider/ColorSchemeProvider.js.map +1 -1
- package/lib/components/context-menu/ContextMenu.js +3 -24
- package/lib/components/context-menu/ContextMenu.js.map +1 -1
- package/lib/components/context-menu/ContextMenu.styles.js +3 -9
- package/lib/components/context-menu/ContextMenu.styles.js.map +1 -1
- package/lib/components/context-menu/constants/alignment.js +0 -1
- package/lib/components/context-menu/constants/alignment.js.map +1 -1
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.js +7 -8
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.js.map +1 -1
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js +78 -33
- package/lib/components/context-menu/context-menu-content/ContextMenuContent.styles.js.map +1 -1
- package/lib/components/grid-image/GridImage.js +0 -6
- package/lib/components/grid-image/GridImage.js.map +1 -1
- package/lib/components/grid-image/GridImage.styles.js +52 -28
- package/lib/components/grid-image/GridImage.styles.js.map +1 -1
- package/lib/components/icon/Icon.js +0 -13
- package/lib/components/icon/Icon.js.map +1 -1
- package/lib/components/icon/Icon.styles.js +33 -25
- package/lib/components/icon/Icon.styles.js.map +1 -1
- package/lib/components/icon/utils.js +0 -3
- package/lib/components/icon/utils.js.map +1 -1
- package/lib/components/input/Input.js +2 -9
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.styles.js +31 -20
- package/lib/components/input/Input.styles.js.map +1 -1
- package/lib/components/list/List.js +0 -8
- package/lib/components/list/List.js.map +1 -1
- package/lib/components/list/list-item/ListItem.js +0 -14
- package/lib/components/list/list-item/ListItem.js.map +1 -1
- package/lib/components/list/list-item/ListItem.styles.js +27 -17
- package/lib/components/list/list-item/ListItem.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-body/ListItemBody.js +0 -5
- package/lib/components/list/list-item/list-item-body/ListItemBody.js.map +1 -1
- package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js +3 -9
- package/lib/components/list/list-item/list-item-body/ListItemBody.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-content/ListItemContent.js +0 -5
- package/lib/components/list/list-item/list-item-content/ListItemContent.js.map +1 -1
- package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js +5 -10
- package/lib/components/list/list-item/list-item-content/ListItemContent.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/ListItemHead.js +0 -12
- package/lib/components/list/list-item/list-item-head/ListItemHead.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js +73 -42
- package/lib/components/list/list-item/list-item-head/ListItemHead.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js +0 -6
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js +14 -11
- package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js +0 -11
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.js.map +1 -1
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js +25 -16
- package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js.map +1 -1
- package/lib/hooks/uuid.js +0 -4
- package/lib/hooks/uuid.js.map +1 -1
- package/lib/index.js +0 -14
- package/lib/index.js.map +1 -1
- package/lib/types/chayns.js +0 -1
- package/lib/types/chayns.js.map +1 -1
- package/package.json +15 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemHead.js","names":["ListItemHead","hoverItem","icons","images","isAnyItemExpandable","isExpandable","isOpen","onClick","onLongPress","rightElements","subtitle","shouldShowRoundImage","title","leftElements","shouldShowHoverItem","setShouldShowHoverItem","useState","longPressTimeoutRef","useRef","handleMouseEnter","useCallback","handleMouseLeave","handleTouchStart","event","current","window","setTimeout","handleTouchEnd","clearTimeout","iconOrImageElement","useMemo","undefined","rotate","type","length","marginLeft","opacity","width","duration","displayName"],"sources":["../../../../../src/components/list/list-item/list-item-head/ListItemHead.tsx"],"sourcesContent":["import React, {\n FC,\n MouseEventHandler,\n ReactNode,\n TouchEventHandler,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport Icon from '../../../icon/Icon';\nimport ListItemIcon from './list-item-icon/ListItemIcon';\nimport ListItemImage from './list-item-image/ListItemImage';\nimport {\n StyledListItemHead,\n StyledListItemHeadBottomRightElement,\n StyledListItemHeadContent,\n StyledListItemHeadRightElement,\n StyledListItemHeadSubtitle,\n StyledListItemHeadSubtitleText,\n StyledListItemHeadTitle,\n StyledListItemHeadTitleText,\n StyledListItemHeadTopRightElement,\n StyledMotionListItemHeadHoverItem,\n StyledMotionListItemHeadIndicator,\n} from './ListItemHead.styles';\n\ntype ListItemHeadProps = {\n hoverItem?: ReactNode;\n icons?: string[];\n images?: string[];\n isAnyItemExpandable: boolean;\n isExpandable: boolean;\n isOpen: boolean;\n onClick?: MouseEventHandler<HTMLDivElement>;\n onLongPress?: TouchEventHandler<HTMLDivElement>;\n rightElements?: [ReactNode, ...ReactNode[]];\n subtitle?: ReactNode;\n leftElements?: ReactNode;\n shouldShowRoundImage?: boolean;\n title: ReactNode;\n};\n\nconst ListItemHead: FC<ListItemHeadProps> = ({\n hoverItem,\n icons,\n images,\n isAnyItemExpandable,\n isExpandable,\n isOpen,\n onClick,\n onLongPress,\n rightElements,\n subtitle,\n shouldShowRoundImage,\n title,\n leftElements,\n}) => {\n const [shouldShowHoverItem, setShouldShowHoverItem] = useState(false);\n\n const longPressTimeoutRef = useRef<number>();\n\n const handleMouseEnter = useCallback(() => setShouldShowHoverItem(true), []);\n\n const handleMouseLeave = useCallback(() => setShouldShowHoverItem(false), []);\n\n const handleTouchStart = useCallback<TouchEventHandler<HTMLDivElement>>(\n (event) => {\n longPressTimeoutRef.current = window.setTimeout(() => {\n if (typeof onLongPress === 'function') {\n onLongPress(event);\n }\n }, 400);\n },\n [onLongPress]\n );\n\n const handleTouchEnd = useCallback(() => {\n clearTimeout(longPressTimeoutRef.current);\n }, []);\n\n const iconOrImageElement = useMemo(() => {\n if (icons) {\n return <ListItemIcon icons={icons} />;\n }\n\n if (images) {\n return <ListItemImage images={images} shouldShowRoundImage={!!shouldShowRoundImage} />;\n }\n\n return undefined;\n }, [icons, images, shouldShowRoundImage]);\n\n return (\n <StyledListItemHead\n className=\"beta-chayns-list-item-head\"\n isClickable={typeof onClick === 'function' || isExpandable}\n onClick={onClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onTouchStart={typeof onLongPress === 'function' ? handleTouchStart : undefined}\n onTouchEnd={typeof onLongPress === 'function' ? handleTouchEnd : undefined}\n >\n {isAnyItemExpandable && (\n <StyledMotionListItemHeadIndicator\n animate={{ rotate: isOpen ? 90 : 0 }}\n initial={false}\n transition={{ type: 'tween' }}\n >\n {isExpandable && <Icon icons={['fa fa-chevron-right']} />}\n </StyledMotionListItemHeadIndicator>\n )}\n {leftElements}\n {iconOrImageElement}\n <StyledListItemHeadContent\n isIconOrImageGiven={iconOrImageElement !== undefined}\n isOpen={isOpen}\n >\n <StyledListItemHeadTitle>\n <StyledListItemHeadTitleText className=\"ellipsis\">\n {title}\n </StyledListItemHeadTitleText>\n {rightElements && rightElements.length > 1 && rightElements[0] && (\n <StyledListItemHeadTopRightElement>\n {rightElements[0]}\n </StyledListItemHeadTopRightElement>\n )}\n </StyledListItemHeadTitle>\n {subtitle && (\n <StyledListItemHeadSubtitle>\n <StyledListItemHeadSubtitleText className=\"ellipsis\">\n {subtitle}\n </StyledListItemHeadSubtitleText>\n {rightElements && rightElements.length > 1 && rightElements[1] && (\n <StyledListItemHeadBottomRightElement>\n {rightElements[1]}\n </StyledListItemHeadBottomRightElement>\n )}\n </StyledListItemHeadSubtitle>\n )}\n </StyledListItemHeadContent>\n {rightElements?.length === 1 && (\n <StyledListItemHeadRightElement>{rightElements[0]}</StyledListItemHeadRightElement>\n )}\n {hoverItem && (\n <StyledMotionListItemHeadHoverItem\n animate={{\n marginLeft: shouldShowHoverItem ? 8 : 0,\n opacity: shouldShowHoverItem ? 1 : 0,\n width: shouldShowHoverItem ? 'auto' : 0,\n }}\n initial={false}\n transition={{ duration: 0.15, type: 'tween' }}\n >\n {hoverItem}\n </StyledMotionListItemHeadHoverItem>\n )}\n </StyledListItemHead>\n );\n};\n\nListItemHead.displayName = 'ListItemHead';\n\nexport default ListItemHead;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItemHead.js","names":["ListItemHead","hoverItem","icons","images","isAnyItemExpandable","isExpandable","isOpen","onClick","onLongPress","rightElements","subtitle","shouldShowRoundImage","title","leftElements","shouldShowHoverItem","setShouldShowHoverItem","useState","longPressTimeoutRef","useRef","handleMouseEnter","useCallback","handleMouseLeave","handleTouchStart","event","current","window","setTimeout","handleTouchEnd","clearTimeout","iconOrImageElement","useMemo","undefined","rotate","type","length","marginLeft","opacity","width","duration","displayName"],"sources":["../../../../../src/components/list/list-item/list-item-head/ListItemHead.tsx"],"sourcesContent":["import React, {\n FC,\n MouseEventHandler,\n ReactNode,\n TouchEventHandler,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport Icon from '../../../icon/Icon';\nimport ListItemIcon from './list-item-icon/ListItemIcon';\nimport ListItemImage from './list-item-image/ListItemImage';\nimport {\n StyledListItemHead,\n StyledListItemHeadBottomRightElement,\n StyledListItemHeadContent,\n StyledListItemHeadRightElement,\n StyledListItemHeadSubtitle,\n StyledListItemHeadSubtitleText,\n StyledListItemHeadTitle,\n StyledListItemHeadTitleText,\n StyledListItemHeadTopRightElement,\n StyledMotionListItemHeadHoverItem,\n StyledMotionListItemHeadIndicator,\n} from './ListItemHead.styles';\n\ntype ListItemHeadProps = {\n hoverItem?: ReactNode;\n icons?: string[];\n images?: string[];\n isAnyItemExpandable: boolean;\n isExpandable: boolean;\n isOpen: boolean;\n onClick?: MouseEventHandler<HTMLDivElement>;\n onLongPress?: TouchEventHandler<HTMLDivElement>;\n rightElements?: [ReactNode, ...ReactNode[]];\n subtitle?: ReactNode;\n leftElements?: ReactNode;\n shouldShowRoundImage?: boolean;\n title: ReactNode;\n};\n\nconst ListItemHead: FC<ListItemHeadProps> = ({\n hoverItem,\n icons,\n images,\n isAnyItemExpandable,\n isExpandable,\n isOpen,\n onClick,\n onLongPress,\n rightElements,\n subtitle,\n shouldShowRoundImage,\n title,\n leftElements,\n}) => {\n const [shouldShowHoverItem, setShouldShowHoverItem] = useState(false);\n\n const longPressTimeoutRef = useRef<number>();\n\n const handleMouseEnter = useCallback(() => setShouldShowHoverItem(true), []);\n\n const handleMouseLeave = useCallback(() => setShouldShowHoverItem(false), []);\n\n const handleTouchStart = useCallback<TouchEventHandler<HTMLDivElement>>(\n (event) => {\n longPressTimeoutRef.current = window.setTimeout(() => {\n if (typeof onLongPress === 'function') {\n onLongPress(event);\n }\n }, 400);\n },\n [onLongPress]\n );\n\n const handleTouchEnd = useCallback(() => {\n clearTimeout(longPressTimeoutRef.current);\n }, []);\n\n const iconOrImageElement = useMemo(() => {\n if (icons) {\n return <ListItemIcon icons={icons} />;\n }\n\n if (images) {\n return <ListItemImage images={images} shouldShowRoundImage={!!shouldShowRoundImage} />;\n }\n\n return undefined;\n }, [icons, images, shouldShowRoundImage]);\n\n return (\n <StyledListItemHead\n className=\"beta-chayns-list-item-head\"\n isClickable={typeof onClick === 'function' || isExpandable}\n onClick={onClick}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n onTouchStart={typeof onLongPress === 'function' ? handleTouchStart : undefined}\n onTouchEnd={typeof onLongPress === 'function' ? handleTouchEnd : undefined}\n >\n {isAnyItemExpandable && (\n <StyledMotionListItemHeadIndicator\n animate={{ rotate: isOpen ? 90 : 0 }}\n initial={false}\n transition={{ type: 'tween' }}\n >\n {isExpandable && <Icon icons={['fa fa-chevron-right']} />}\n </StyledMotionListItemHeadIndicator>\n )}\n {leftElements}\n {iconOrImageElement}\n <StyledListItemHeadContent\n isIconOrImageGiven={iconOrImageElement !== undefined}\n isOpen={isOpen}\n >\n <StyledListItemHeadTitle>\n <StyledListItemHeadTitleText className=\"ellipsis\">\n {title}\n </StyledListItemHeadTitleText>\n {rightElements && rightElements.length > 1 && rightElements[0] && (\n <StyledListItemHeadTopRightElement>\n {rightElements[0]}\n </StyledListItemHeadTopRightElement>\n )}\n </StyledListItemHeadTitle>\n {subtitle && (\n <StyledListItemHeadSubtitle>\n <StyledListItemHeadSubtitleText className=\"ellipsis\">\n {subtitle}\n </StyledListItemHeadSubtitleText>\n {rightElements && rightElements.length > 1 && rightElements[1] && (\n <StyledListItemHeadBottomRightElement>\n {rightElements[1]}\n </StyledListItemHeadBottomRightElement>\n )}\n </StyledListItemHeadSubtitle>\n )}\n </StyledListItemHeadContent>\n {rightElements?.length === 1 && (\n <StyledListItemHeadRightElement>{rightElements[0]}</StyledListItemHeadRightElement>\n )}\n {hoverItem && (\n <StyledMotionListItemHeadHoverItem\n animate={{\n marginLeft: shouldShowHoverItem ? 8 : 0,\n opacity: shouldShowHoverItem ? 1 : 0,\n width: shouldShowHoverItem ? 'auto' : 0,\n }}\n initial={false}\n transition={{ duration: 0.15, type: 'tween' }}\n >\n {hoverItem}\n </StyledMotionListItemHeadHoverItem>\n )}\n </StyledListItemHead>\n );\n};\n\nListItemHead.displayName = 'ListItemHead';\n\nexport default ListItemHead;\n"],"mappings":"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"}
|
|
@@ -4,76 +4,107 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.StyledMotionListItemHeadIndicator = exports.StyledMotionListItemHeadHoverItem = exports.StyledListItemHeadTopRightElement = exports.StyledListItemHeadTitleText = exports.StyledListItemHeadTitle = exports.StyledListItemHeadSubtitleText = exports.StyledListItemHeadSubtitle = exports.StyledListItemHeadRightElement = exports.StyledListItemHeadContent = exports.StyledListItemHeadBottomRightElement = exports.StyledListItemHead = void 0;
|
|
7
|
-
|
|
8
7
|
var _framerMotion = require("framer-motion");
|
|
9
|
-
|
|
10
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
13
|
-
|
|
14
9
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
|
|
16
10
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const StyledListItemHead = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n color: ", ";\n display: flex;\n height: 64px;\n padding: 12px 9px;\n\n ", "\n"])), _ref => {
|
|
11
|
+
const StyledListItemHead = _styledComponents.default.div`
|
|
12
|
+
align-items: center;
|
|
13
|
+
color: ${_ref => {
|
|
21
14
|
let {
|
|
22
15
|
theme
|
|
23
16
|
} = _ref;
|
|
24
17
|
return theme.text;
|
|
25
|
-
}
|
|
18
|
+
}};
|
|
19
|
+
display: flex;
|
|
20
|
+
height: 64px;
|
|
21
|
+
padding: 12px 9px;
|
|
22
|
+
|
|
23
|
+
${_ref2 => {
|
|
26
24
|
let {
|
|
27
25
|
isClickable
|
|
28
26
|
} = _ref2;
|
|
29
|
-
return isClickable && (0, _styledComponents.css)
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
return isClickable && (0, _styledComponents.css)`
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
`;
|
|
30
|
+
}}
|
|
31
|
+
`;
|
|
32
32
|
exports.StyledListItemHead = StyledListItemHead;
|
|
33
|
-
const StyledMotionListItemHeadIndicator = (0, _styledComponents.default)(_framerMotion.motion.div)
|
|
33
|
+
const StyledMotionListItemHeadIndicator = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
34
|
+
align-items: center;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex: 0 0 auto;
|
|
37
|
+
height: 26px;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
width: 26px;
|
|
40
|
+
`;
|
|
34
41
|
exports.StyledMotionListItemHeadIndicator = StyledMotionListItemHeadIndicator;
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
const StyledListItemHeadContent = _styledComponents.default.div`
|
|
43
|
+
display: flex;
|
|
44
|
+
flex: 1 1 auto;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
font-weight: ${_ref3 => {
|
|
37
47
|
let {
|
|
38
48
|
isOpen
|
|
39
49
|
} = _ref3;
|
|
40
50
|
return isOpen ? 'bold' : 'normal';
|
|
41
|
-
}
|
|
51
|
+
}};
|
|
52
|
+
justify-content: center;
|
|
53
|
+
line-height: normal;
|
|
54
|
+
margin-left: ${_ref4 => {
|
|
42
55
|
let {
|
|
43
56
|
isIconOrImageGiven
|
|
44
57
|
} = _ref4;
|
|
45
58
|
return isIconOrImageGiven ? '10px' : undefined;
|
|
46
|
-
}
|
|
47
|
-
|
|
59
|
+
}};
|
|
60
|
+
min-width: 0;
|
|
61
|
+
`;
|
|
48
62
|
exports.StyledListItemHeadContent = StyledListItemHeadContent;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
63
|
+
const StyledListItemHeadTitle = _styledComponents.default.div`
|
|
64
|
+
align-items: center;
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
`;
|
|
52
68
|
exports.StyledListItemHeadTitle = StyledListItemHeadTitle;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
69
|
+
const StyledListItemHeadTitleText = _styledComponents.default.span`
|
|
70
|
+
flex: 1 1 auto;
|
|
71
|
+
min-width: 0;
|
|
72
|
+
`;
|
|
56
73
|
exports.StyledListItemHeadTitleText = StyledListItemHeadTitleText;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
74
|
+
const StyledListItemHeadSubtitle = _styledComponents.default.div`
|
|
75
|
+
align-items: center;
|
|
76
|
+
display: flex;
|
|
77
|
+
justify-content: space-between;
|
|
78
|
+
margin-top: 2px;
|
|
79
|
+
opacity: 0.75;
|
|
80
|
+
`;
|
|
60
81
|
exports.StyledListItemHeadSubtitle = StyledListItemHeadSubtitle;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
82
|
+
const StyledListItemHeadSubtitleText = _styledComponents.default.span`
|
|
83
|
+
flex: 1 1 auto;
|
|
84
|
+
font-size: 85%;
|
|
85
|
+
min-width: 0;
|
|
86
|
+
`;
|
|
64
87
|
exports.StyledListItemHeadSubtitleText = StyledListItemHeadSubtitleText;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
88
|
+
const StyledListItemHeadTopRightElement = _styledComponents.default.div`
|
|
89
|
+
flex: 0 0 auto;
|
|
90
|
+
font-size: 85%;
|
|
91
|
+
margin-left: 8px;
|
|
92
|
+
opacity: 0.75;
|
|
93
|
+
`;
|
|
68
94
|
exports.StyledListItemHeadTopRightElement = StyledListItemHeadTopRightElement;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
95
|
+
const StyledListItemHeadBottomRightElement = _styledComponents.default.div`
|
|
96
|
+
flex: 0 0 auto;
|
|
97
|
+
margin-left: 8px;
|
|
98
|
+
font-size: 85%;
|
|
99
|
+
`;
|
|
72
100
|
exports.StyledListItemHeadBottomRightElement = StyledListItemHeadBottomRightElement;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
101
|
+
const StyledListItemHeadRightElement = _styledComponents.default.div`
|
|
102
|
+
flex: 0 0 auto;
|
|
103
|
+
margin-left: 8px;
|
|
104
|
+
`;
|
|
76
105
|
exports.StyledListItemHeadRightElement = StyledListItemHeadRightElement;
|
|
77
|
-
const StyledMotionListItemHeadHoverItem = (0, _styledComponents.default)(_framerMotion.motion.div)
|
|
106
|
+
const StyledMotionListItemHeadHoverItem = (0, _styledComponents.default)(_framerMotion.motion.div)`
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
`;
|
|
78
109
|
exports.StyledMotionListItemHeadHoverItem = StyledMotionListItemHeadHoverItem;
|
|
79
110
|
//# sourceMappingURL=ListItemHead.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemHead.styles.js","names":["StyledListItemHead","styled","div","theme","text","isClickable","css","StyledMotionListItemHeadIndicator","motion","StyledListItemHeadContent","isOpen","isIconOrImageGiven","undefined","StyledListItemHeadTitle","StyledListItemHeadTitleText","span","StyledListItemHeadSubtitle","StyledListItemHeadSubtitleText","StyledListItemHeadTopRightElement","StyledListItemHeadBottomRightElement","StyledListItemHeadRightElement","StyledMotionListItemHeadHoverItem"],"sources":["../../../../../src/components/list/list-item/list-item-head/ListItemHead.styles.ts"],"sourcesContent":["import { motion } from 'framer-motion';\nimport styled, { css } from 'styled-components';\nimport type { WithTheme } from '../../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledListItemHeadProps = WithTheme<{\n isClickable: boolean;\n}>;\n\nexport const StyledListItemHead = styled.div<StyledListItemHeadProps>`\n align-items: center;\n color: ${({ theme }: StyledListItemHeadProps) => theme.text};\n display: flex;\n height: 64px;\n padding: 12px 9px;\n\n ${({ isClickable }) =>\n isClickable &&\n css`\n cursor: pointer;\n `}\n`;\n\nexport const StyledMotionListItemHeadIndicator = styled(motion.div)`\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n height: 26px;\n justify-content: center;\n width: 26px;\n`;\n\ntype StyledListItemHeadContentProps = {\n isIconOrImageGiven: boolean;\n isOpen: boolean;\n};\n\nexport const StyledListItemHeadContent = styled.div<StyledListItemHeadContentProps>`\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n font-weight: ${({ isOpen }) => (isOpen ? 'bold' : 'normal')};\n justify-content: center;\n line-height: normal;\n margin-left: ${({ isIconOrImageGiven }) => (isIconOrImageGiven ? '10px' : undefined)};\n min-width: 0;\n`;\n\nexport const StyledListItemHeadTitle = styled.div`\n align-items: center;\n display: flex;\n justify-content: space-between;\n`;\n\nexport const StyledListItemHeadTitleText = styled.span`\n flex: 1 1 auto;\n min-width: 0;\n`;\n\nexport const StyledListItemHeadSubtitle = styled.div`\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-top: 2px;\n opacity: 0.75;\n`;\n\nexport const StyledListItemHeadSubtitleText = styled.span`\n flex: 1 1 auto;\n font-size: 85%;\n min-width: 0;\n`;\n\nexport const StyledListItemHeadTopRightElement = styled.div`\n flex: 0 0 auto;\n font-size: 85%;\n margin-left: 8px;\n opacity: 0.75;\n`;\n\nexport const StyledListItemHeadBottomRightElement = styled.div`\n flex: 0 0 auto;\n margin-left: 8px;\n font-size: 85%;\n`;\n\nexport const StyledListItemHeadRightElement = styled.div`\n flex: 0 0 auto;\n margin-left: 8px;\n`;\n\nexport const StyledMotionListItemHeadHoverItem = styled(motion.div)`\n overflow: hidden;\n`;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItemHead.styles.js","names":["StyledListItemHead","styled","div","theme","text","isClickable","css","StyledMotionListItemHeadIndicator","motion","StyledListItemHeadContent","isOpen","isIconOrImageGiven","undefined","StyledListItemHeadTitle","StyledListItemHeadTitleText","span","StyledListItemHeadSubtitle","StyledListItemHeadSubtitleText","StyledListItemHeadTopRightElement","StyledListItemHeadBottomRightElement","StyledListItemHeadRightElement","StyledMotionListItemHeadHoverItem"],"sources":["../../../../../src/components/list/list-item/list-item-head/ListItemHead.styles.ts"],"sourcesContent":["import { motion } from 'framer-motion';\nimport styled, { css } from 'styled-components';\nimport type { WithTheme } from '../../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledListItemHeadProps = WithTheme<{\n isClickable: boolean;\n}>;\n\nexport const StyledListItemHead = styled.div<StyledListItemHeadProps>`\n align-items: center;\n color: ${({ theme }: StyledListItemHeadProps) => theme.text};\n display: flex;\n height: 64px;\n padding: 12px 9px;\n\n ${({ isClickable }) =>\n isClickable &&\n css`\n cursor: pointer;\n `}\n`;\n\nexport const StyledMotionListItemHeadIndicator = styled(motion.div)`\n align-items: center;\n display: flex;\n flex: 0 0 auto;\n height: 26px;\n justify-content: center;\n width: 26px;\n`;\n\ntype StyledListItemHeadContentProps = {\n isIconOrImageGiven: boolean;\n isOpen: boolean;\n};\n\nexport const StyledListItemHeadContent = styled.div<StyledListItemHeadContentProps>`\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n font-weight: ${({ isOpen }) => (isOpen ? 'bold' : 'normal')};\n justify-content: center;\n line-height: normal;\n margin-left: ${({ isIconOrImageGiven }) => (isIconOrImageGiven ? '10px' : undefined)};\n min-width: 0;\n`;\n\nexport const StyledListItemHeadTitle = styled.div`\n align-items: center;\n display: flex;\n justify-content: space-between;\n`;\n\nexport const StyledListItemHeadTitleText = styled.span`\n flex: 1 1 auto;\n min-width: 0;\n`;\n\nexport const StyledListItemHeadSubtitle = styled.div`\n align-items: center;\n display: flex;\n justify-content: space-between;\n margin-top: 2px;\n opacity: 0.75;\n`;\n\nexport const StyledListItemHeadSubtitleText = styled.span`\n flex: 1 1 auto;\n font-size: 85%;\n min-width: 0;\n`;\n\nexport const StyledListItemHeadTopRightElement = styled.div`\n flex: 0 0 auto;\n font-size: 85%;\n margin-left: 8px;\n opacity: 0.75;\n`;\n\nexport const StyledListItemHeadBottomRightElement = styled.div`\n flex: 0 0 auto;\n margin-left: 8px;\n font-size: 85%;\n`;\n\nexport const StyledListItemHeadRightElement = styled.div`\n flex: 0 0 auto;\n margin-left: 8px;\n`;\n\nexport const StyledMotionListItemHeadHoverItem = styled(motion.div)`\n overflow: hidden;\n`;\n"],"mappings":";;;;;;AAAA;AACA;AAAgD;AAAA;AAOzC,MAAMA,kBAAkB,GAAGC,yBAAM,CAACC,GAA6B;AACtE;AACA,aAAa;EAAA,IAAC;IAAEC;EAA+B,CAAC;EAAA,OAAKA,KAAK,CAACC,IAAI;AAAA,CAAC;AAChE;AACA;AACA;AACA;AACA,MAAM;EAAA,IAAC;IAAEC;EAAY,CAAC;EAAA,OACdA,WAAW,IACX,IAAAC,qBAAG,CAAC;AACZ;AACA,SAAS;AAAA,CAAC;AACV,CAAC;AAAC;AAEK,MAAMC,iCAAiC,GAAG,IAAAN,yBAAM,EAACO,oBAAM,CAACN,GAAG,CAAE;AACpE;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAAC;AAOK,MAAMO,yBAAyB,GAAGR,yBAAM,CAACC,GAAoC;AACpF;AACA;AACA;AACA,mBAAmB;EAAA,IAAC;IAAEQ;EAAO,CAAC;EAAA,OAAMA,MAAM,GAAG,MAAM,GAAG,QAAQ;AAAA,CAAE;AAChE;AACA;AACA,mBAAmB;EAAA,IAAC;IAAEC;EAAmB,CAAC;EAAA,OAAMA,kBAAkB,GAAG,MAAM,GAAGC,SAAS;AAAA,CAAE;AACzF;AACA,CAAC;AAAC;AAEK,MAAMC,uBAAuB,GAAGZ,yBAAM,CAACC,GAAI;AAClD;AACA;AACA;AACA,CAAC;AAAC;AAEK,MAAMY,2BAA2B,GAAGb,yBAAM,CAACc,IAAK;AACvD;AACA;AACA,CAAC;AAAC;AAEK,MAAMC,0BAA0B,GAAGf,yBAAM,CAACC,GAAI;AACrD;AACA;AACA;AACA;AACA;AACA,CAAC;AAAC;AAEK,MAAMe,8BAA8B,GAAGhB,yBAAM,CAACc,IAAK;AAC1D;AACA;AACA;AACA,CAAC;AAAC;AAEK,MAAMG,iCAAiC,GAAGjB,yBAAM,CAACC,GAAI;AAC5D;AACA;AACA;AACA;AACA,CAAC;AAAC;AAEK,MAAMiB,oCAAoC,GAAGlB,yBAAM,CAACC,GAAI;AAC/D;AACA;AACA;AACA,CAAC;AAAC;AAEK,MAAMkB,8BAA8B,GAAGnB,yBAAM,CAACC,GAAI;AACzD;AACA;AACA,CAAC;AAAC;AAEK,MAAMmB,iCAAiC,GAAG,IAAApB,yBAAM,EAACO,oBAAM,CAACN,GAAG,CAAE;AACpE;AACA,CAAC;AAAC"}
|
|
@@ -4,15 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _Icon = _interopRequireDefault(require("../../../../icon/Icon"));
|
|
11
|
-
|
|
12
9
|
var _ListItemIcon = require("./ListItemIcon.styles");
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
11
|
const ListItemIcon = _ref => {
|
|
17
12
|
let {
|
|
18
13
|
icons
|
|
@@ -22,7 +17,6 @@ const ListItemIcon = _ref => {
|
|
|
22
17
|
size: 22
|
|
23
18
|
}));
|
|
24
19
|
};
|
|
25
|
-
|
|
26
20
|
ListItemIcon.displayName = 'ListItemIcon';
|
|
27
21
|
var _default = ListItemIcon;
|
|
28
22
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemIcon.js","names":["ListItemIcon","icons","displayName"],"sources":["../../../../../../src/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.tsx"],"sourcesContent":["import React from 'react';\nimport Icon from '../../../../icon/Icon';\nimport { StyledListItemIcon } from './ListItemIcon.styles';\n\ntype ListItemIconProps = {\n icons: string[];\n};\n\nconst ListItemIcon: React.FC<ListItemIconProps> = ({ icons }) => {\n return (\n <StyledListItemIcon>\n <Icon icons={icons} size={22} />\n </StyledListItemIcon>\n );\n};\n\nListItemIcon.displayName = 'ListItemIcon';\n\nexport default ListItemIcon;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItemIcon.js","names":["ListItemIcon","icons","displayName"],"sources":["../../../../../../src/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.tsx"],"sourcesContent":["import React from 'react';\nimport Icon from '../../../../icon/Icon';\nimport { StyledListItemIcon } from './ListItemIcon.styles';\n\ntype ListItemIconProps = {\n icons: string[];\n};\n\nconst ListItemIcon: React.FC<ListItemIconProps> = ({ icons }) => {\n return (\n <StyledListItemIcon>\n <Icon icons={icons} size={22} />\n </StyledListItemIcon>\n );\n};\n\nListItemIcon.displayName = 'ListItemIcon';\n\nexport default ListItemIcon;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAA2D;AAM3D,MAAMA,YAAyC,GAAG,QAAe;EAAA,IAAd;IAAEC;EAAM,CAAC;EACxD,oBACI,6BAAC,gCAAkB,qBACf,6BAAC,aAAI;IAAC,KAAK,EAAEA,KAAM;IAAC,IAAI,EAAE;EAAG,EAAG,CACf;AAE7B,CAAC;AAEDD,YAAY,CAACE,WAAW,GAAG,cAAc;AAAC,eAE3BF,YAAY;AAAA"}
|
|
@@ -4,26 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.StyledListItemIcon = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
|
-
var _templateObject;
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const StyledListItemIcon = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n background-color: rgba(", ", 0.1);\n box-shadow: 0 0 0 1px rgba(", ", 0.08)\n inset;\n display: flex;\n flex: 0 0 auto;\n height: 40px;\n justify-content: center;\n margin-right: 10px;\n width: 40px;\n"])), _ref => {
|
|
9
|
+
const StyledListItemIcon = _styledComponents.default.div`
|
|
10
|
+
align-items: center;
|
|
11
|
+
background-color: rgba(${_ref => {
|
|
17
12
|
let {
|
|
18
13
|
theme
|
|
19
14
|
} = _ref;
|
|
20
15
|
return theme['text-rgb'];
|
|
21
|
-
},
|
|
16
|
+
}}, 0.1);
|
|
17
|
+
box-shadow: 0 0 0 1px rgba(${_ref2 => {
|
|
22
18
|
let {
|
|
23
19
|
theme
|
|
24
20
|
} = _ref2;
|
|
25
21
|
return theme['009-rgb'];
|
|
26
|
-
})
|
|
27
|
-
|
|
22
|
+
}}, 0.08)
|
|
23
|
+
inset;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex: 0 0 auto;
|
|
26
|
+
height: 40px;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
margin-right: 10px;
|
|
29
|
+
width: 40px;
|
|
30
|
+
`;
|
|
28
31
|
exports.StyledListItemIcon = StyledListItemIcon;
|
|
29
32
|
//# sourceMappingURL=ListItemIcon.styles.js.map
|
package/lib/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemIcon.styles.js","names":["StyledListItemIcon","styled","div","theme"],"sources":["../../../../../../src/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport type { WithTheme } from '../../../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledListItemIconProps = WithTheme<unknown>;\n\nexport const StyledListItemIcon = styled.div`\n align-items: center;\n background-color: rgba(${({ theme }: StyledListItemIconProps) => theme['text-rgb']}, 0.1);\n box-shadow: 0 0 0 1px rgba(${({ theme }: StyledListItemIconProps) => theme['009-rgb']}, 0.08)\n inset;\n display: flex;\n flex: 0 0 auto;\n height: 40px;\n justify-content: center;\n margin-right: 10px;\n width: 40px;\n`;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItemIcon.styles.js","names":["StyledListItemIcon","styled","div","theme"],"sources":["../../../../../../src/components/list/list-item/list-item-head/list-item-icon/ListItemIcon.styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport type { WithTheme } from '../../../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledListItemIconProps = WithTheme<unknown>;\n\nexport const StyledListItemIcon = styled.div`\n align-items: center;\n background-color: rgba(${({ theme }: StyledListItemIconProps) => theme['text-rgb']}, 0.1);\n box-shadow: 0 0 0 1px rgba(${({ theme }: StyledListItemIconProps) => theme['009-rgb']}, 0.08)\n inset;\n display: flex;\n flex: 0 0 auto;\n height: 40px;\n justify-content: center;\n margin-right: 10px;\n width: 40px;\n`;\n"],"mappings":";;;;;;AAAA;AAAuC;AAKhC,MAAMA,kBAAkB,GAAGC,yBAAM,CAACC,GAAI;AAC7C;AACA,6BAA6B;EAAA,IAAC;IAAEC;EAA+B,CAAC;EAAA,OAAKA,KAAK,CAAC,UAAU,CAAC;AAAA,CAAC;AACvF,iCAAiC;EAAA,IAAC;IAAEA;EAA+B,CAAC;EAAA,OAAKA,KAAK,CAAC,SAAS,CAAC;AAAA,CAAC;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AAAC"}
|
|
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _GridImage = _interopRequireDefault(require("../../../../grid-image/GridImage"));
|
|
11
|
-
|
|
12
9
|
var _ListItemImage = require("./ListItemImage.styles");
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
16
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
|
|
18
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
|
|
20
13
|
const ListItemImage = _ref => {
|
|
21
14
|
let {
|
|
22
15
|
images,
|
|
@@ -26,7 +19,6 @@ const ListItemImage = _ref => {
|
|
|
26
19
|
const handleImageLoaded = (0, _react.useCallback)(() => {
|
|
27
20
|
setHasLoadedImage(true);
|
|
28
21
|
}, []);
|
|
29
|
-
|
|
30
22
|
if (images && images[0] && images[1] && images[2]) {
|
|
31
23
|
const gridImages = [images[0], images[1], images[2]];
|
|
32
24
|
return /*#__PURE__*/_react.default.createElement(_GridImage.default, {
|
|
@@ -35,7 +27,6 @@ const ListItemImage = _ref => {
|
|
|
35
27
|
size: 40
|
|
36
28
|
});
|
|
37
29
|
}
|
|
38
|
-
|
|
39
30
|
if (images && images[0]) {
|
|
40
31
|
return /*#__PURE__*/_react.default.createElement(_ListItemImage.StyledListItemHeadImageWrapper, {
|
|
41
32
|
shouldShowRoundImage: shouldShowRoundImage
|
|
@@ -45,10 +36,8 @@ const ListItemImage = _ref => {
|
|
|
45
36
|
src: images[0]
|
|
46
37
|
}));
|
|
47
38
|
}
|
|
48
|
-
|
|
49
39
|
return null;
|
|
50
40
|
};
|
|
51
|
-
|
|
52
41
|
ListItemImage.displayName = 'ListItemImage';
|
|
53
42
|
var _default = ListItemImage;
|
|
54
43
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemImage.js","names":["ListItemImage","images","shouldShowRoundImage","hasLoadedImage","setHasLoadedImage","useState","handleImageLoaded","useCallback","gridImages","displayName"],"sources":["../../../../../../src/components/list/list-item/list-item-head/list-item-image/ListItemImage.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport GridImage from '../../../../grid-image/GridImage';\nimport { StyledListItemHeadImage, StyledListItemHeadImageWrapper } from './ListItemImage.styles';\n\ntype ListItemImageProps = {\n images: string[];\n shouldShowRoundImage: boolean;\n};\n\nconst ListItemImage: React.FC<ListItemImageProps> = ({ images, shouldShowRoundImage }) => {\n const [hasLoadedImage, setHasLoadedImage] = useState(false);\n const handleImageLoaded = useCallback(() => {\n setHasLoadedImage(true);\n }, []);\n\n if (images && images[0] && images[1] && images[2]) {\n const gridImages = [images[0], images[1], images[2]];\n\n return (\n <GridImage images={gridImages} shouldShowRoundImage={shouldShowRoundImage} size={40} />\n );\n }\n\n if (images && images[0]) {\n return (\n <StyledListItemHeadImageWrapper shouldShowRoundImage={shouldShowRoundImage}>\n <StyledListItemHeadImage\n isHidden={!hasLoadedImage}\n onLoad={handleImageLoaded}\n src={images[0]}\n />\n </StyledListItemHeadImageWrapper>\n );\n }\n\n return null;\n};\n\nListItemImage.displayName = 'ListItemImage';\n\nexport default ListItemImage;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItemImage.js","names":["ListItemImage","images","shouldShowRoundImage","hasLoadedImage","setHasLoadedImage","useState","handleImageLoaded","useCallback","gridImages","displayName"],"sources":["../../../../../../src/components/list/list-item/list-item-head/list-item-image/ListItemImage.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport GridImage from '../../../../grid-image/GridImage';\nimport { StyledListItemHeadImage, StyledListItemHeadImageWrapper } from './ListItemImage.styles';\n\ntype ListItemImageProps = {\n images: string[];\n shouldShowRoundImage: boolean;\n};\n\nconst ListItemImage: React.FC<ListItemImageProps> = ({ images, shouldShowRoundImage }) => {\n const [hasLoadedImage, setHasLoadedImage] = useState(false);\n const handleImageLoaded = useCallback(() => {\n setHasLoadedImage(true);\n }, []);\n\n if (images && images[0] && images[1] && images[2]) {\n const gridImages = [images[0], images[1], images[2]];\n\n return (\n <GridImage images={gridImages} shouldShowRoundImage={shouldShowRoundImage} size={40} />\n );\n }\n\n if (images && images[0]) {\n return (\n <StyledListItemHeadImageWrapper shouldShowRoundImage={shouldShowRoundImage}>\n <StyledListItemHeadImage\n isHidden={!hasLoadedImage}\n onLoad={handleImageLoaded}\n src={images[0]}\n />\n </StyledListItemHeadImageWrapper>\n );\n }\n\n return null;\n};\n\nListItemImage.displayName = 'ListItemImage';\n\nexport default ListItemImage;\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAAiG;AAAA;AAAA;AAOjG,MAAMA,aAA2C,GAAG,QAAsC;EAAA,IAArC;IAAEC,MAAM;IAAEC;EAAqB,CAAC;EACjF,MAAM,CAACC,cAAc,EAAEC,iBAAiB,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EAC3D,MAAMC,iBAAiB,GAAG,IAAAC,kBAAW,EAAC,MAAM;IACxCH,iBAAiB,CAAC,IAAI,CAAC;EAC3B,CAAC,EAAE,EAAE,CAAC;EAEN,IAAIH,MAAM,IAAIA,MAAM,CAAC,CAAC,CAAC,IAAIA,MAAM,CAAC,CAAC,CAAC,IAAIA,MAAM,CAAC,CAAC,CAAC,EAAE;IAC/C,MAAMO,UAAU,GAAG,CAACP,MAAM,CAAC,CAAC,CAAC,EAAEA,MAAM,CAAC,CAAC,CAAC,EAAEA,MAAM,CAAC,CAAC,CAAC,CAAC;IAEpD,oBACI,6BAAC,kBAAS;MAAC,MAAM,EAAEO,UAAW;MAAC,oBAAoB,EAAEN,oBAAqB;MAAC,IAAI,EAAE;IAAG,EAAG;EAE/F;EAEA,IAAID,MAAM,IAAIA,MAAM,CAAC,CAAC,CAAC,EAAE;IACrB,oBACI,6BAAC,6CAA8B;MAAC,oBAAoB,EAAEC;IAAqB,gBACvE,6BAAC,sCAAuB;MACpB,QAAQ,EAAE,CAACC,cAAe;MAC1B,MAAM,EAAEG,iBAAkB;MAC1B,GAAG,EAAEL,MAAM,CAAC,CAAC;IAAE,EACjB,CAC2B;EAEzC;EAEA,OAAO,IAAI;AACf,CAAC;AAEDD,aAAa,CAACS,WAAW,GAAG,eAAe;AAAC,eAE7BT,aAAa;AAAA"}
|
package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js
CHANGED
|
@@ -4,40 +4,49 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.StyledListItemHeadImageWrapper = exports.StyledListItemHeadImage = void 0;
|
|
7
|
-
|
|
8
7
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
|
-
|
|
12
8
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const StyledListItemHeadImageWrapper = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: rgba(\n ", ",\n 0.1\n );\n border-radius: ", ";\n box-shadow: 0 0 0 1px\n rgba(", ", 0.08) inset;\n flex: 0 0 auto;\n height: 40px;\n overflow: hidden;\n transition: border-radius 0.3s ease;\n width: 40px;\n"])), _ref => {
|
|
9
|
+
const StyledListItemHeadImageWrapper = _styledComponents.default.div`
|
|
10
|
+
background-color: rgba(
|
|
11
|
+
${_ref => {
|
|
17
12
|
let {
|
|
18
13
|
theme
|
|
19
14
|
} = _ref;
|
|
20
15
|
return theme['text-rgb'];
|
|
21
|
-
},
|
|
16
|
+
}},
|
|
17
|
+
0.1
|
|
18
|
+
);
|
|
19
|
+
border-radius: ${_ref2 => {
|
|
22
20
|
let {
|
|
23
21
|
shouldShowRoundImage
|
|
24
22
|
} = _ref2;
|
|
25
23
|
return shouldShowRoundImage ? '50%' : undefined;
|
|
26
|
-
}
|
|
24
|
+
}};
|
|
25
|
+
box-shadow: 0 0 0 1px
|
|
26
|
+
rgba(${_ref3 => {
|
|
27
27
|
let {
|
|
28
28
|
theme
|
|
29
29
|
} = _ref3;
|
|
30
30
|
return theme['009-rgb'];
|
|
31
|
-
});
|
|
32
|
-
|
|
31
|
+
}}, 0.08) inset;
|
|
32
|
+
flex: 0 0 auto;
|
|
33
|
+
height: 40px;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
transition: border-radius 0.3s ease;
|
|
36
|
+
width: 40px;
|
|
37
|
+
`;
|
|
33
38
|
exports.StyledListItemHeadImageWrapper = StyledListItemHeadImageWrapper;
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
const StyledListItemHeadImage = _styledComponents.default.img`
|
|
40
|
+
height: 100%;
|
|
41
|
+
object-fit: cover;
|
|
42
|
+
opacity: ${_ref4 => {
|
|
36
43
|
let {
|
|
37
44
|
isHidden
|
|
38
45
|
} = _ref4;
|
|
39
46
|
return isHidden ? 0 : 1;
|
|
40
|
-
}
|
|
41
|
-
|
|
47
|
+
}};
|
|
48
|
+
transition: opacity 0.4s ease;
|
|
49
|
+
width: 100%;
|
|
50
|
+
`;
|
|
42
51
|
exports.StyledListItemHeadImage = StyledListItemHeadImage;
|
|
43
52
|
//# sourceMappingURL=ListItemImage.styles.js.map
|
package/lib/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemImage.styles.js","names":["StyledListItemHeadImageWrapper","styled","div","theme","shouldShowRoundImage","undefined","StyledListItemHeadImage","img","isHidden"],"sources":["../../../../../../src/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport type { WithTheme } from '../../../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledListItemHeadImageWrapperProps = WithTheme<{\n shouldShowRoundImage?: boolean;\n}>;\n\nexport const StyledListItemHeadImageWrapper = styled.div<StyledListItemHeadImageWrapperProps>`\n background-color: rgba(\n ${({ theme }: StyledListItemHeadImageWrapperProps) => theme['text-rgb']},\n 0.1\n );\n border-radius: ${({ shouldShowRoundImage }) => (shouldShowRoundImage ? '50%' : undefined)};\n box-shadow: 0 0 0 1px\n rgba(${({ theme }: StyledListItemHeadImageWrapperProps) => theme['009-rgb']}, 0.08) inset;\n flex: 0 0 auto;\n height: 40px;\n overflow: hidden;\n transition: border-radius 0.3s ease;\n width: 40px;\n`;\n\ntype StyledListItemHeadImageProps = {\n isHidden: boolean;\n};\n\nexport const StyledListItemHeadImage = styled.img<StyledListItemHeadImageProps>`\n height: 100%;\n object-fit: cover;\n opacity: ${({ isHidden }) => (isHidden ? 0 : 1)};\n transition: opacity 0.4s ease;\n width: 100%;\n`;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ListItemImage.styles.js","names":["StyledListItemHeadImageWrapper","styled","div","theme","shouldShowRoundImage","undefined","StyledListItemHeadImage","img","isHidden"],"sources":["../../../../../../src/components/list/list-item/list-item-head/list-item-image/ListItemImage.styles.ts"],"sourcesContent":["import styled from 'styled-components';\nimport type { WithTheme } from '../../../../color-scheme-provider/ColorSchemeProvider';\n\ntype StyledListItemHeadImageWrapperProps = WithTheme<{\n shouldShowRoundImage?: boolean;\n}>;\n\nexport const StyledListItemHeadImageWrapper = styled.div<StyledListItemHeadImageWrapperProps>`\n background-color: rgba(\n ${({ theme }: StyledListItemHeadImageWrapperProps) => theme['text-rgb']},\n 0.1\n );\n border-radius: ${({ shouldShowRoundImage }) => (shouldShowRoundImage ? '50%' : undefined)};\n box-shadow: 0 0 0 1px\n rgba(${({ theme }: StyledListItemHeadImageWrapperProps) => theme['009-rgb']}, 0.08) inset;\n flex: 0 0 auto;\n height: 40px;\n overflow: hidden;\n transition: border-radius 0.3s ease;\n width: 40px;\n`;\n\ntype StyledListItemHeadImageProps = {\n isHidden: boolean;\n};\n\nexport const StyledListItemHeadImage = styled.img<StyledListItemHeadImageProps>`\n height: 100%;\n object-fit: cover;\n opacity: ${({ isHidden }) => (isHidden ? 0 : 1)};\n transition: opacity 0.4s ease;\n width: 100%;\n`;\n"],"mappings":";;;;;;AAAA;AAAuC;AAOhC,MAAMA,8BAA8B,GAAGC,yBAAM,CAACC,GAAyC;AAC9F;AACA,UAAU;EAAA,IAAC;IAAEC;EAA2C,CAAC;EAAA,OAAKA,KAAK,CAAC,UAAU,CAAC;AAAA,CAAC;AAChF;AACA;AACA,qBAAqB;EAAA,IAAC;IAAEC;EAAqB,CAAC;EAAA,OAAMA,oBAAoB,GAAG,KAAK,GAAGC,SAAS;AAAA,CAAE;AAC9F;AACA,eAAe;EAAA,IAAC;IAAEF;EAA2C,CAAC;EAAA,OAAKA,KAAK,CAAC,SAAS,CAAC;AAAA,CAAC;AACpF;AACA;AACA;AACA;AACA;AACA,CAAC;AAAC;AAMK,MAAMG,uBAAuB,GAAGL,yBAAM,CAACM,GAAkC;AAChF;AACA;AACA,eAAe;EAAA,IAAC;IAAEC;EAAS,CAAC;EAAA,OAAMA,QAAQ,GAAG,CAAC,GAAG,CAAC;AAAA,CAAE;AACpD;AACA;AACA,CAAC;AAAC"}
|
package/lib/hooks/uuid.js
CHANGED
|
@@ -4,15 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useUuid = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = require("react");
|
|
9
|
-
|
|
10
8
|
var _uuid = require("uuid");
|
|
11
|
-
|
|
12
9
|
const useUuid = () => {
|
|
13
10
|
const [uuid] = (0, _react.useState)((0, _uuid.v4)());
|
|
14
11
|
return uuid;
|
|
15
12
|
};
|
|
16
|
-
|
|
17
13
|
exports.useUuid = useUuid;
|
|
18
14
|
//# sourceMappingURL=uuid.js.map
|
package/lib/hooks/uuid.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.js","names":["useUuid","uuid","useState","uuidV4"],"sources":["../../src/hooks/uuid.ts"],"sourcesContent":["import { useState } from 'react';\nimport { v4 as uuidV4 } from 'uuid';\n\nexport const useUuid = () => {\n const [uuid] = useState(uuidV4());\n\n return uuid;\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"uuid.js","names":["useUuid","uuid","useState","uuidV4"],"sources":["../../src/hooks/uuid.ts"],"sourcesContent":["import { useState } from 'react';\nimport { v4 as uuidV4 } from 'uuid';\n\nexport const useUuid = () => {\n const [uuid] = useState(uuidV4());\n\n return uuid;\n};\n"],"mappings":";;;;;;AAAA;AACA;AAEO,MAAMA,OAAO,GAAG,MAAM;EACzB,MAAM,CAACC,IAAI,CAAC,GAAG,IAAAC,eAAQ,EAAC,IAAAC,QAAM,GAAE,CAAC;EAEjC,OAAOF,IAAI;AACf,CAAC;AAAC"}
|
package/lib/index.js
CHANGED
|
@@ -81,32 +81,18 @@ Object.defineProperty(exports, "ListItemContent", {
|
|
|
81
81
|
return _ListItemContent.default;
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
|
-
|
|
85
84
|
var _Accordion = _interopRequireDefault(require("./components/accordion/Accordion"));
|
|
86
|
-
|
|
87
85
|
var _AccordionContent = _interopRequireDefault(require("./components/accordion/accordion-content/AccordionContent"));
|
|
88
|
-
|
|
89
86
|
var _AccordionGroup = _interopRequireDefault(require("./components/accordion/accordion-group/AccordionGroup"));
|
|
90
|
-
|
|
91
87
|
var _AccordionIntro = _interopRequireDefault(require("./components/accordion/accordion-intro/AccordionIntro"));
|
|
92
|
-
|
|
93
88
|
var _Badge = _interopRequireDefault(require("./components/badge/Badge"));
|
|
94
|
-
|
|
95
89
|
var _Button = _interopRequireDefault(require("./components/button/Button"));
|
|
96
|
-
|
|
97
90
|
var _ColorSchemeProvider = _interopRequireDefault(require("./components/color-scheme-provider/ColorSchemeProvider"));
|
|
98
|
-
|
|
99
91
|
var _ContextMenu = _interopRequireDefault(require("./components/context-menu/ContextMenu"));
|
|
100
|
-
|
|
101
92
|
var _GridImage = _interopRequireDefault(require("./components/grid-image/GridImage"));
|
|
102
|
-
|
|
103
93
|
var _Icon = _interopRequireDefault(require("./components/icon/Icon"));
|
|
104
|
-
|
|
105
94
|
var _List = _interopRequireDefault(require("./components/list/List"));
|
|
106
|
-
|
|
107
95
|
var _ListItemContent = _interopRequireDefault(require("./components/list/list-item/list-item-content/ListItemContent"));
|
|
108
|
-
|
|
109
96
|
var _ListItem = _interopRequireDefault(require("./components/list/list-item/ListItem"));
|
|
110
|
-
|
|
111
97
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
112
98
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export { default as Accordion } from './components/accordion/Accordion';\nexport { default as AccordionContent } from './components/accordion/accordion-content/AccordionContent';\nexport { default as AccordionGroup } from './components/accordion/accordion-group/AccordionGroup';\nexport { default as AccordionIntro } from './components/accordion/accordion-intro/AccordionIntro';\nexport { default as Badge } from './components/badge/Badge';\nexport { default as Button } from './components/button/Button';\nexport { default as ColorSchemeProvider } from './components/color-scheme-provider/ColorSchemeProvider';\nexport { default as ContextMenu } from './components/context-menu/ContextMenu';\nexport { default as GridImage } from './components/grid-image/GridImage';\nexport { default as Icon } from './components/icon/Icon';\nexport { default as List } from './components/list/List';\nexport { default as ListItemContent } from './components/list/list-item/list-item-content/ListItemContent';\nexport { default as ListItem } from './components/list/list-item/ListItem';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export { default as Accordion } from './components/accordion/Accordion';\nexport { default as AccordionContent } from './components/accordion/accordion-content/AccordionContent';\nexport { default as AccordionGroup } from './components/accordion/accordion-group/AccordionGroup';\nexport { default as AccordionIntro } from './components/accordion/accordion-intro/AccordionIntro';\nexport { default as Badge } from './components/badge/Badge';\nexport { default as Button } from './components/button/Button';\nexport { default as ColorSchemeProvider } from './components/color-scheme-provider/ColorSchemeProvider';\nexport { default as ContextMenu } from './components/context-menu/ContextMenu';\nexport { default as GridImage } from './components/grid-image/GridImage';\nexport { default as Icon } from './components/icon/Icon';\nexport { default as List } from './components/list/List';\nexport { default as ListItemContent } from './components/list/list-item/list-item-content/ListItemContent';\nexport { default as ListItem } from './components/list/list-item/ListItem';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA2E"}
|
package/lib/types/chayns.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ButtonType = void 0;
|
|
7
7
|
let ButtonType;
|
|
8
8
|
exports.ButtonType = ButtonType;
|
|
9
|
-
|
|
10
9
|
(function (ButtonType) {
|
|
11
10
|
ButtonType[ButtonType["Cancel"] = -1] = "Cancel";
|
|
12
11
|
ButtonType[ButtonType["Negative"] = 0] = "Negative";
|
package/lib/types/chayns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chayns.js","names":["ButtonType"],"sources":["../../src/types/chayns.ts"],"sourcesContent":["declare global {\n let chayns: Chayns;\n}\n\nexport interface Chayns {\n dialog: Dialog;\n env: Env;\n}\n\nexport interface Dialog {\n select(config: {\n title?: string;\n message?: string;\n list: Array<SelectDialogItem>;\n multiselect?: boolean;\n type?: SelectType;\n preventCloseOnClick?: boolean;\n buttons?: DialogButton[];\n selectAllButton?: string;\n }): Promise<SelectDialogResult>;\n}\n\ndeclare enum ButtonText {\n Cancel = 'Abbrechen',\n No = 'Nein',\n Ok = 'OK',\n Yes = 'Ja',\n}\n\nexport enum ButtonType {\n Cancel = -1,\n Negative = 0,\n Positive = 1,\n}\n\nexport interface DialogButton {\n text: ButtonText | string;\n buttonType: ButtonType | number;\n collapseTime?: number;\n textColor?: string;\n backgroundColor?: string;\n}\n\nexport interface SelectDialogItem {\n name: string;\n value: string | number;\n isSelected?: boolean;\n}\n\nexport interface SelectDialogResult {\n buttonType: ButtonType | number;\n selection: Array<SelectDialogItem>;\n}\n\ndeclare enum SelectType {\n Default = 0,\n Icon = 1,\n IconAndText,\n}\n\nexport interface Env {\n isMobile: boolean;\n isTablet: boolean;\n}\n"],"mappings":";;;;;;IA6BYA,
|
|
1
|
+
{"version":3,"file":"chayns.js","names":["ButtonType"],"sources":["../../src/types/chayns.ts"],"sourcesContent":["declare global {\n let chayns: Chayns;\n}\n\nexport interface Chayns {\n dialog: Dialog;\n env: Env;\n}\n\nexport interface Dialog {\n select(config: {\n title?: string;\n message?: string;\n list: Array<SelectDialogItem>;\n multiselect?: boolean;\n type?: SelectType;\n preventCloseOnClick?: boolean;\n buttons?: DialogButton[];\n selectAllButton?: string;\n }): Promise<SelectDialogResult>;\n}\n\ndeclare enum ButtonText {\n Cancel = 'Abbrechen',\n No = 'Nein',\n Ok = 'OK',\n Yes = 'Ja',\n}\n\nexport enum ButtonType {\n Cancel = -1,\n Negative = 0,\n Positive = 1,\n}\n\nexport interface DialogButton {\n text: ButtonText | string;\n buttonType: ButtonType | number;\n collapseTime?: number;\n textColor?: string;\n backgroundColor?: string;\n}\n\nexport interface SelectDialogItem {\n name: string;\n value: string | number;\n isSelected?: boolean;\n}\n\nexport interface SelectDialogResult {\n buttonType: ButtonType | number;\n selection: Array<SelectDialogItem>;\n}\n\ndeclare enum SelectType {\n Default = 0,\n Icon = 1,\n IconAndText,\n}\n\nexport interface Env {\n isMobile: boolean;\n isTablet: boolean;\n}\n"],"mappings":";;;;;;IA6BYA,UAAU;AAAA;AAAA,WAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;AAAA,GAAVA,UAAU,0BAAVA,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/core",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.38",
|
|
4
4
|
"description": "A set of beautiful React components for developing your own applications with chayns.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chayns",
|
|
@@ -33,26 +33,26 @@
|
|
|
33
33
|
"url": "https://github.com/TobitSoftware/chayns-components/issues"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@babel/cli": "^7.
|
|
37
|
-
"@babel/core": "^7.
|
|
38
|
-
"@babel/preset-env": "^7.
|
|
39
|
-
"@babel/preset-react": "^7.
|
|
40
|
-
"@babel/preset-typescript": "^7.
|
|
41
|
-
"@types/react": "^17.0.
|
|
42
|
-
"@types/react-dom": "^17.0.
|
|
43
|
-
"@types/styled-components": "^5.1.
|
|
36
|
+
"@babel/cli": "^7.19.3",
|
|
37
|
+
"@babel/core": "^7.19.6",
|
|
38
|
+
"@babel/preset-env": "^7.19.4",
|
|
39
|
+
"@babel/preset-react": "^7.18.6",
|
|
40
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
41
|
+
"@types/react": "^17.0.50",
|
|
42
|
+
"@types/react-dom": "^17.0.17",
|
|
43
|
+
"@types/styled-components": "^5.1.26",
|
|
44
44
|
"@types/uuid": "^8.3.4",
|
|
45
|
-
"babel-loader": "^8.2.
|
|
45
|
+
"babel-loader": "^8.2.5",
|
|
46
46
|
"lerna": "^4.0.0",
|
|
47
47
|
"react": "^17.0.2",
|
|
48
48
|
"react-dom": "^17.0.2",
|
|
49
|
-
"typescript": "^4.
|
|
49
|
+
"typescript": "^4.8.4"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@chayns/colors": "^2.0.0",
|
|
53
|
-
"clsx": "^1.
|
|
54
|
-
"framer-motion": "^6.
|
|
55
|
-
"styled-components": "^5.3.
|
|
53
|
+
"clsx": "^1.2.1",
|
|
54
|
+
"framer-motion": "^6.5.1",
|
|
55
|
+
"styled-components": "^5.3.6",
|
|
56
56
|
"uuid": "^8.3.2"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "6d07eb8a59af863c28096fc0ffddec94444e0048"
|
|
66
66
|
}
|