@procore/core-react 12.26.1 → 12.26.2
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/CHANGELOG.md +9 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +3 -3
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- package/dist/BadgePill/BadgePill.styles.js +4 -4
- package/dist/Banner/Banner.styles.js +10 -10
- package/dist/Box/Box.styles.js +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.styles.js +4 -4
- package/dist/Button/Button.styles.js +5 -5
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +6 -6
- package/dist/Checkbox/CheckboxTooltip.js +1 -1
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DeprecatedTextEditorOutput/DeprecatedTextEditorOutput.styles.js +1 -1
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.styles.js +3 -3
- package/dist/FileSelect/FileSelect.styles.js +2 -2
- package/dist/FileSelect/FileSelectDropzone/FileSelectDropzone.styles.js +3 -3
- package/dist/FileSelect/FileTokenList/FileTokenList.styles.js +2 -2
- package/dist/FileSelect/GridSource/GridSource.styles.js +6 -6
- package/dist/FileSelect/LocalSource/LocalSource.styles.js +4 -4
- package/dist/FileSelect/SourceItem/SourceItem.styles.js +3 -3
- package/dist/FileSelect/ThumbnailList/ThumbnailList.styles.js +6 -6
- package/dist/FileSelect/TreeSource/TreeSource.styles.js +1 -1
- package/dist/FileToken/FileToken.styles.js +4 -4
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +14 -14
- package/dist/Form/StyledFormikForm.styles.js +2 -2
- package/dist/GhostPlaceholder/GhostPlaceholder.styles.js +2 -2
- package/dist/Grid/Grid.styles.js +2 -2
- package/dist/GroupSelect/GroupSelect.styles.js +1 -1
- package/dist/Input/Input.styles.js +1 -1
- package/dist/Link/Link.styles.js +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/NextTextEditor/NextTextEditor.js +1 -1
- package/dist/NextTextEditor/NextTextEditor.js.map +1 -1
- package/dist/NextTextEditor/NextTextEditor.types.d.ts +1 -1
- package/dist/NextTextEditor/NextTextEditor.types.js.map +1 -1
- package/dist/NextTextEditorOutput/NextTextEditorOutput.js +10 -6
- package/dist/NextTextEditorOutput/NextTextEditorOutput.js.map +1 -1
- package/dist/NextTextEditorOutput/NextTextEditorOutput.styles.js +2 -2
- package/dist/NextTextEditorOutput/NextTextEditorOutput.styles.js.map +1 -1
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.js +16 -16
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +7 -7
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.js +2 -0
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +15 -15
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.hooks.js +1 -0
- package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.js +39 -16
- package/dist/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.styles.d.ts +1 -2
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +8 -8
- package/dist/Title/Title.styles.js +7 -7
- package/dist/Toast/Toast.styles.js +3 -3
- package/dist/ToggleButton/ToggleButton.styles.js +1 -1
- package/dist/Token/Token.js +12 -6
- package/dist/Token/Token.js.map +1 -1
- package/dist/Token/Token.styles.js +4 -4
- package/dist/Token/Token.styles.js.map +1 -1
- package/dist/Token/Token.types.d.ts +1 -0
- package/dist/Token/Token.types.js.map +1 -1
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/ToolLandingPage/ToolLandingPage.styles.js +3 -3
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/I18n.d.ts +34 -0
- package/dist/_locales/de-DE.json +3 -1
- package/dist/_locales/en-AU.json +3 -1
- package/dist/_locales/en-CA.json +3 -1
- package/dist/_locales/en-GB.json +3 -1
- package/dist/_locales/en.json +4 -1
- package/dist/_locales/es-ES.json +3 -1
- package/dist/_locales/es.json +3 -1
- package/dist/_locales/fr-CA.json +3 -1
- package/dist/_locales/fr-FR.json +3 -1
- package/dist/_locales/is-IS.json +3 -1
- package/dist/_locales/it-IT.json +3 -1
- package/dist/_locales/ja-JP.json +3 -1
- package/dist/_locales/pl-PL.json +3 -1
- package/dist/_locales/pseudo.json +4 -1
- package/dist/_locales/pt-BR.json +3 -1
- package/dist/_locales/th-TH.json +3 -1
- package/dist/_locales/zh-SG.json +3 -1
- package/dist/_locales/zh-TW.json +3 -1
- package/dist/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +3 -3
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +24 -24
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +13 -13
- package/dist/_typedoc/Box/Box.types.json +68 -68
- package/dist/_typedoc/Breadcrumbs/Breadcrumbs.types.json +10 -10
- package/dist/_typedoc/Button/Button.types.json +13 -13
- package/dist/_typedoc/Calendar/Calendar.types.json +80 -80
- package/dist/_typedoc/Card/Card.types.json +6 -6
- package/dist/_typedoc/Checkbox/Checkbox.types.json +8 -8
- package/dist/_typedoc/ContactItem/ContactItem.types.json +9 -9
- package/dist/_typedoc/DateInput/DateInput.types.json +35 -35
- package/dist/_typedoc/DateSelect/DateSelect.types.json +13 -13
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +30 -30
- package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
- package/dist/_typedoc/EmptyState/EmptyState.types.json +16 -16
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +27 -27
- package/dist/_typedoc/FileSelect/GridSource/GridSource.types.json +20 -20
- package/dist/_typedoc/FileSelect/LocalSource/LocalSource.types.json +14 -14
- package/dist/_typedoc/FileSelect/TreeSource/TreeSource.types.json +9 -9
- package/dist/_typedoc/Flex/Flex.types.json +27 -27
- package/dist/_typedoc/FlexList/FlexList.types.json +30 -30
- package/dist/_typedoc/Form/Form.types.json +754 -754
- package/dist/_typedoc/GhostPlaceholder/GhostPlaceholder.types.json +12 -12
- package/dist/_typedoc/Grid/Grid.types.json +8 -8
- package/dist/_typedoc/GroupSelect/GroupSelect.types.json +52 -52
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +1 -1
- package/dist/_typedoc/ListPage/ListPage.types.json +13 -13
- package/dist/_typedoc/Menu/Menu.types.json +62 -62
- package/dist/_typedoc/MenuImperative/MenuImperative.types.json +74 -74
- package/dist/_typedoc/Modal/Modal.types.json +46 -46
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/NextTile/NextTile.types.json +32 -32
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +37 -37
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +32 -32
- package/dist/_typedoc/PageLayout/PageLayout.types.json +26 -26
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +30 -30
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +49 -49
- package/dist/_typedoc/Popover/Popover.types.json +15 -15
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +60 -60
- package/dist/_typedoc/SettingsPage/SettingsPage.types.json +10 -10
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/SplitViewCard/SplitViewCard.types.json +14 -14
- package/dist/_typedoc/Table/Table.types.json +101 -101
- package/dist/_typedoc/Tabs/Tabs.types.json +20 -20
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditorDocs.types.json +9 -9
- package/dist/_typedoc/TextEditor/TextEditorProvider.types.json +2 -2
- package/dist/_typedoc/TextEditorOutput/TextEditorOutputDocs.types.json +3 -3
- package/dist/_typedoc/Thumbnail/Thumbnail.types.json +19 -19
- package/dist/_typedoc/TieredDropdown/TieredDropdown.types.json +42 -42
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +28 -28
- package/dist/_typedoc/Tile/Tile.types.json +8 -8
- package/dist/_typedoc/Title/Title.types.json +1 -1
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +4 -4
- package/dist/_typedoc/Token/Token.types.json +16 -6
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +7 -7
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +86 -86
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +9 -9
- package/dist/_typedoc/_utils/types.json +3 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thumbnail.styles.js","names":["styled","css","getTypographyIntent","Typography","typographyWeights","borderRadius","colors","getEllipsis","getFocus","spacing","DocumentIcon","thumbnailSizeSm","thumbnailSizeLg","labelHeight","labelFontSize","tickSize","rowLayoutCaptionWidth","multilineCaptionMaxHeight","lg","captionBase","gray15","_ref","$layout","sm","_ref2","xs","_ref3","$error","red50","_ref4","$disabled","gray70","StyledMultilineCaption","div","withConfig","displayName","componentId","StyledCaptionText","span","StyledPlaceholderCaption","StyledSingleLineCaption","StyledSinglelineCaptionBody","StyledSinglelineCaptionEnding","StyledLabelText","StyledThumbnailFigCaption","figcaption","_ref5","_ref5$$color","$color","bold","white","StyledLabel","thumbnailBase","gray85","md","_ref6","$clickable","_ref7","$selected","StyledTickIcon","_ref8","$focused","_ref9","_ref0","$size","sizeInPx","concat","svg","_ref1","_ref10","StyledFileIcon","StyledImageThumbnailPreview","_ref11","$bgImage","StyledImageThumbnailOverlay","blackOverlay","black","whiteOverlay","StyledImageThumbnailImage","img","StyledImageThumbnail","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","StyledThumbnailWrapper","_ref18","_ref19","isRowLayout","StyledPlaceholderThumbnail","_ref20","gray96","_ref21","_ref22","_ref23"],"sources":["../../src/Thumbnail/Thumbnail.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport type { TypographyProps } from '../Typography'\nimport {\n getTypographyIntent,\n Typography,\n typographyWeights,\n} from '../Typography'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\nimport type { LayoutVariant, QaTags, SizeVariant } from './Thumbnail.types'\nimport { DocumentIcon } from './ThumbnailDocumentIcon'\n\nconst thumbnailSizeSm = 40\nconst thumbnailSizeLg = 104\nconst labelHeight = 24\nconst labelFontSize = 12\nconst tickSize = 24\nconst rowLayoutCaptionWidth = 288\nconst multilineCaptionMaxHeight = spacing.lg * 2\n\ninterface CaptionProps {\n $layout: LayoutVariant\n $error: boolean\n $disabled: boolean\n}\n\ninterface StyledThumbnailProps {\n $focused: boolean\n $disabled: boolean\n $selected: boolean\n $clickable: boolean\n $size: SizeVariant\n}\n\ninterface StyledTickIconProps {\n $selected: boolean\n $size: SizeVariant\n}\n\nconst captionBase = css<CaptionProps>`\n color: ${colors.gray15};\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.4px;\n font-weight: 500;\n ${({ $layout }) =>\n $layout === 'row' &&\n css`\n align-items: center;\n margin-left: ${spacing.sm}px;\n width: ${rowLayoutCaptionWidth}px;\n `}\n\n ${({ $layout }) =>\n $layout === 'column' &&\n css`\n margin-top: ${spacing.xs / 2}px;\n width: ${thumbnailSizeLg}px;\n `}\n\n ${({ $error }) =>\n $error &&\n css`\n color: ${colors.red50};\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n color: ${colors.gray70};\n `}\n`\n\nexport const StyledMultilineCaption = styled.div<CaptionProps>`\n ${captionBase};\n display: flex;\n word-wrap: break-word;\n // for IE11, use word-wrap property\n overflow-wrap: break-word;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n\n // limit height for browsers that do not support line-clamp CSS prop\n max-height: ${multilineCaptionMaxHeight}px;\n`\n\nexport const StyledCaptionText = styled.span`\n // fix word wrap issue in IE\n width: 100%;\n`\n\nexport const StyledPlaceholderCaption = styled.div<CaptionProps>`\n ${captionBase}\n`\n\nexport const StyledSingleLineCaption = styled.div<CaptionProps>`\n display: flex;\n ${captionBase}\n`\n\nexport const StyledSinglelineCaptionBody = styled.span`\n ${getEllipsis}\n`\n\nexport const StyledSinglelineCaptionEnding = styled.span`\n max-width: 50%;\n white-space: nowrap;\n flex-shrink: 0;\n`\n\nexport const StyledLabelText = styled(Typography)`\n ${getEllipsis()}\n`\n\nexport const StyledThumbnailFigCaption = styled.figcaption<{\n $color?: TypographyProps['color']\n}>`\n ${getTypographyIntent('small')}\n ${getEllipsis()}\n color: ${({ $color = 'gray15' }) => colors[$color]};\n font-weight: ${typographyWeights.bold};\n text-align: center;\n width: 100%;\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n opacity: 0.85;\n height: ${labelHeight}px;\n padding: ${spacing.sm / 2}px ${spacing.sm}px;\n background-color: ${colors.white};\n`\n\nexport const StyledLabel = styled.div`\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n opacity: 0.85;\n height: ${labelHeight}px;\n padding: ${spacing.sm / 2}px ${spacing.sm}px;\n font-size: ${labelFontSize}px;\n background-color: ${colors.white};\n`\n\nconst thumbnailBase = css<StyledThumbnailProps>`\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n overflow: hidden;\n border: 1px solid ${colors.gray85};\n border-radius: ${borderRadius.md}px;\n margin: 0;\n\n ${({ $clickable }) =>\n $clickable &&\n css`\n cursor: pointer;\n `}\n\n ${({ $selected }) =>\n $selected &&\n css`\n ${StyledTickIcon} {\n opacity: 1;\n transform: scale(1);\n }\n `}\n\n &:focus {\n ${getFocus()};\n }\n\n ${({ $focused }) => $focused && getFocus()}\n\n ${({ $disabled, $clickable }) =>\n $disabled &&\n $clickable &&\n css`\n cursor: not-allowed;\n `}\n\n ${({ $size }) => {\n const sizeInPx = `${$size === 'lg' ? thumbnailSizeLg : thumbnailSizeSm}px`\n return css`\n width: ${sizeInPx};\n height: ${sizeInPx};\n `\n }}\n`\n\nexport const StyledTickIcon = styled.svg<StyledTickIconProps>`\n position: absolute;\n top: ${spacing.sm}px;\n right: ${spacing.sm}px;\n width: ${tickSize}px;\n height: ${tickSize}px;\n opacity: 0;\n transform: scale(0.75);\n transition: transform 250ms ease-out, opacity 100ms ease-out;\n\n ${({ $selected }) =>\n $selected &&\n css`\n opacity: 1;\n transform: scale(1);\n `}\n\n ${({ $size }) =>\n $size === 'sm' &&\n css`\n top: 50%;\n left: 50%;\n margin-top: ${-tickSize / 2}px;\n margin-left: ${-tickSize / 2}px;\n `}\n`\n\nexport const StyledFileIcon = styled(DocumentIcon)`\n width: 36.5%;\n height: auto;\n`\n\nexport const StyledImageThumbnailPreview = styled.div<{ $bgImage: string }>`\n width: 100%;\n height: 100%;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n ${({ $bgImage }) => css`\n background-image: url(${$bgImage});\n `}\n`\n\nexport const StyledImageThumbnailOverlay = styled.div`\n display: none;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n`\n\nconst blackOverlay = `\n background-color: ${colors.black};\n opacity: 0.2;\n`\n\nconst whiteOverlay = `\n background-color: ${colors.white};\n opacity: 0.5;\n`\n\nexport const StyledImageThumbnailImage = styled.img``\n\nexport const StyledImageThumbnail = styled.div<StyledThumbnailProps>`\n ${thumbnailBase};\n flex-direction: column;\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n &,\n &:hover {\n ${StyledImageThumbnailOverlay} {\n display: block;\n ${whiteOverlay}\n }\n }\n ${StyledImageThumbnailPreview},\n ${StyledTickIcon},\n ${StyledImageThumbnailImage} {\n filter: saturate(0);\n }\n ${StyledFileIcon} {\n filter: saturate(0);\n z-index: -1;\n }\n `}\n\n ${({ $selected, $focused, $disabled }) =>\n $focused &&\n $disabled &&\n css`\n ${StyledTickIcon} {\n z-index: ${$selected ? 0 : 1};\n }\n `}\n\n ${({ $selected, $focused }) =>\n $selected &&\n $focused &&\n css`\n ${StyledTickIcon} {\n z-index: 1;\n }\n `}\n\n ${({ $selected, $focused, $disabled }) =>\n $selected &&\n $focused &&\n $disabled &&\n css`\n ${StyledTickIcon} {\n z-index: 0;\n }\n `}\n\n ${({ $focused, $disabled }) =>\n $focused &&\n !$disabled &&\n css`\n ${StyledImageThumbnailOverlay} {\n display: block;\n }\n `}\n\n ${({ $clickable, $disabled }) =>\n $clickable &&\n !$disabled &&\n css`\n &:hover {\n ${StyledImageThumbnailOverlay} {\n display: block;\n ${blackOverlay}\n }\n }\n `}\n`\n\nexport const StyledThumbnailWrapper = styled.div<{\n $layout: LayoutVariant\n $size: SizeVariant\n qa?: QaTags\n}>`\n display: flex;\n ${({ $size }) =>\n $size === 'lg'\n ? `\n width: ${thumbnailSizeLg}px;\n `\n : ''}\n ${({ $layout }) => {\n const isRowLayout = $layout === 'row'\n return isRowLayout\n ? css`\n flex-direction: row;\n align-items: center;\n `\n : css`\n flex-direction: column;\n align-items: flex-start;\n `\n }}\n`\n\nexport const StyledPlaceholderThumbnail = styled.div<StyledThumbnailProps>`\n ${thumbnailBase}\n\n ${({ $clickable }) =>\n $clickable &&\n css`\n &:hover {\n background-color: ${colors.gray96};\n }\n `}\n\n ${({ $selected, $size }) =>\n $selected &&\n $size === 'sm' &&\n css`\n ${StyledFileIcon} {\n display: none;\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n ${StyledFileIcon},\n ${StyledTickIcon} {\n filter: saturate(0);\n opacity: 0.5;\n }\n\n &:hover {\n background-color: inherit;\n }\n `}\n\n ${({ $disabled, $selected }) =>\n $disabled &&\n !$selected &&\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AA;EAAA,IAAGlE,SAAS,GAAAkE,MAAA,CAATlE,SAAS;IAAE4B,SAAS,GAAAsC,MAAA,CAATtC,SAAS;EAAA,OACvB5B,SAAS,IACT,CAAC4B,SAAS,IACVzD,GAAG,6CACC0D,cAAc,CAIjB;AAAA,EACJ"}
|
|
1
|
+
{"version":3,"file":"Thumbnail.styles.js","names":["styled","css","getTypographyIntent","Typography","typographyWeights","borderRadius","colors","getEllipsis","getFocus","spacing","DocumentIcon","thumbnailSizeSm","thumbnailSizeLg","labelHeight","labelFontSize","tickSize","rowLayoutCaptionWidth","multilineCaptionMaxHeight","lg","captionBase","gray15","_ref","$layout","sm","_ref2","xs","_ref3","$error","red50","_ref4","$disabled","gray70","StyledMultilineCaption","div","withConfig","displayName","componentId","StyledCaptionText","span","StyledPlaceholderCaption","StyledSingleLineCaption","StyledSinglelineCaptionBody","StyledSinglelineCaptionEnding","StyledLabelText","StyledThumbnailFigCaption","figcaption","_ref5","_ref5$$color","$color","bold","white","StyledLabel","thumbnailBase","gray85","md","_ref6","$clickable","_ref7","$selected","StyledTickIcon","_ref8","$focused","_ref9","_ref0","$size","sizeInPx","concat","svg","_ref1","_ref10","StyledFileIcon","StyledImageThumbnailPreview","_ref11","$bgImage","StyledImageThumbnailOverlay","blackOverlay","black","whiteOverlay","StyledImageThumbnailImage","img","StyledImageThumbnail","_ref12","_ref13","_ref14","_ref15","_ref16","_ref17","StyledThumbnailWrapper","_ref18","_ref19","isRowLayout","StyledPlaceholderThumbnail","_ref20","gray96","_ref21","_ref22","_ref23"],"sources":["../../src/Thumbnail/Thumbnail.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport type { TypographyProps } from '../Typography'\nimport {\n getTypographyIntent,\n Typography,\n typographyWeights,\n} from '../Typography'\nimport { borderRadius } from '../_styles/borderRadius'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\nimport type { LayoutVariant, SizeVariant } from './Thumbnail.types'\nimport { DocumentIcon } from './ThumbnailDocumentIcon'\n\nconst thumbnailSizeSm = 40\nconst thumbnailSizeLg = 104\nconst labelHeight = 24\nconst labelFontSize = 12\nconst tickSize = 24\nconst rowLayoutCaptionWidth = 288\nconst multilineCaptionMaxHeight = spacing.lg * 2\n\ninterface CaptionProps {\n $layout: LayoutVariant\n $error: boolean\n $disabled: boolean\n}\n\ninterface StyledThumbnailProps {\n $focused: boolean\n $disabled: boolean\n $selected: boolean\n $clickable: boolean\n $size: SizeVariant\n}\n\ninterface StyledTickIconProps {\n $selected: boolean\n $size: SizeVariant\n}\n\nconst captionBase = css<CaptionProps>`\n color: ${colors.gray15};\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.4px;\n font-weight: 500;\n ${({ $layout }) =>\n $layout === 'row' &&\n css`\n align-items: center;\n margin-left: ${spacing.sm}px;\n width: ${rowLayoutCaptionWidth}px;\n `}\n\n ${({ $layout }) =>\n $layout === 'column' &&\n css`\n margin-top: ${spacing.xs / 2}px;\n width: ${thumbnailSizeLg}px;\n `}\n\n ${({ $error }) =>\n $error &&\n css`\n color: ${colors.red50};\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n color: ${colors.gray70};\n `}\n`\n\nexport const StyledMultilineCaption = styled.div<CaptionProps>`\n ${captionBase};\n display: flex;\n word-wrap: break-word;\n // for IE11, use word-wrap property\n overflow-wrap: break-word;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n\n // limit height for browsers that do not support line-clamp CSS prop\n max-height: ${multilineCaptionMaxHeight}px;\n`\n\nexport const StyledCaptionText = styled.span`\n // fix word wrap issue in IE\n width: 100%;\n`\n\nexport const StyledPlaceholderCaption = styled.div<CaptionProps>`\n ${captionBase}\n`\n\nexport const StyledSingleLineCaption = styled.div<CaptionProps>`\n display: flex;\n ${captionBase}\n`\n\nexport const StyledSinglelineCaptionBody = styled.span`\n ${getEllipsis}\n`\n\nexport const StyledSinglelineCaptionEnding = styled.span`\n max-width: 50%;\n white-space: nowrap;\n flex-shrink: 0;\n`\n\nexport const StyledLabelText = styled(Typography)`\n ${getEllipsis()}\n`\n\nexport const StyledThumbnailFigCaption = styled.figcaption<{\n $color?: TypographyProps['color']\n}>`\n ${getTypographyIntent('small')}\n ${getEllipsis()}\n color: ${({ $color = 'gray15' }) => colors[$color]};\n font-weight: ${typographyWeights.bold};\n text-align: center;\n width: 100%;\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n opacity: 0.85;\n height: ${labelHeight}px;\n padding: ${spacing.sm / 2}px ${spacing.sm}px;\n background-color: ${colors.white};\n`\n\nexport const StyledLabel = styled.div`\n display: flex;\n justify-content: center;\n position: absolute;\n bottom: 0;\n right: 0;\n left: 0;\n opacity: 0.85;\n height: ${labelHeight}px;\n padding: ${spacing.sm / 2}px ${spacing.sm}px;\n font-size: ${labelFontSize}px;\n background-color: ${colors.white};\n`\n\nconst thumbnailBase = css<StyledThumbnailProps>`\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n overflow: hidden;\n border: 1px solid ${colors.gray85};\n border-radius: ${borderRadius.md}px;\n margin: 0;\n\n ${({ $clickable }) =>\n $clickable &&\n css`\n cursor: pointer;\n `}\n\n ${({ $selected }) =>\n $selected &&\n css`\n ${StyledTickIcon} {\n opacity: 1;\n transform: scale(1);\n }\n `}\n\n &:focus {\n ${getFocus()};\n }\n\n ${({ $focused }) => $focused && getFocus()}\n\n ${({ $disabled, $clickable }) =>\n $disabled &&\n $clickable &&\n css`\n cursor: not-allowed;\n `}\n\n ${({ $size }) => {\n const sizeInPx = `${$size === 'lg' ? thumbnailSizeLg : thumbnailSizeSm}px`\n return css`\n width: ${sizeInPx};\n height: ${sizeInPx};\n `\n }}\n`\n\nexport const StyledTickIcon = styled.svg<StyledTickIconProps>`\n position: absolute;\n top: ${spacing.sm}px;\n right: ${spacing.sm}px;\n width: ${tickSize}px;\n height: ${tickSize}px;\n opacity: 0;\n transform: scale(0.75);\n transition: transform 250ms ease-out, opacity 100ms ease-out;\n\n ${({ $selected }) =>\n $selected &&\n css`\n opacity: 1;\n transform: scale(1);\n `}\n\n ${({ $size }) =>\n $size === 'sm' &&\n css`\n top: 50%;\n left: 50%;\n margin-top: ${-tickSize / 2}px;\n margin-left: ${-tickSize / 2}px;\n `}\n`\n\nexport const StyledFileIcon = styled(DocumentIcon)`\n width: 36.5%;\n height: auto;\n`\n\nexport const StyledImageThumbnailPreview = styled.div<{ $bgImage: string }>`\n width: 100%;\n height: 100%;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n ${({ $bgImage }) => css`\n background-image: url(${$bgImage});\n `}\n`\n\nexport const StyledImageThumbnailOverlay = styled.div`\n display: none;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n`\n\nconst blackOverlay = `\n background-color: ${colors.black};\n opacity: 0.2;\n`\n\nconst whiteOverlay = `\n background-color: ${colors.white};\n opacity: 0.5;\n`\n\nexport const StyledImageThumbnailImage = styled.img``\n\nexport const StyledImageThumbnail = styled.div<StyledThumbnailProps>`\n ${thumbnailBase};\n flex-direction: column;\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n &,\n &:hover {\n ${StyledImageThumbnailOverlay} {\n display: block;\n ${whiteOverlay}\n }\n }\n ${StyledImageThumbnailPreview},\n ${StyledTickIcon},\n ${StyledImageThumbnailImage} {\n filter: saturate(0);\n }\n ${StyledFileIcon} {\n filter: saturate(0);\n z-index: -1;\n }\n `}\n\n ${({ $selected, $focused, $disabled }) =>\n $focused &&\n $disabled &&\n css`\n ${StyledTickIcon} {\n z-index: ${$selected ? 0 : 1};\n }\n `}\n\n ${({ $selected, $focused }) =>\n $selected &&\n $focused &&\n css`\n ${StyledTickIcon} {\n z-index: 1;\n }\n `}\n\n ${({ $selected, $focused, $disabled }) =>\n $selected &&\n $focused &&\n $disabled &&\n css`\n ${StyledTickIcon} {\n z-index: 0;\n }\n `}\n\n ${({ $focused, $disabled }) =>\n $focused &&\n !$disabled &&\n css`\n ${StyledImageThumbnailOverlay} {\n display: block;\n }\n `}\n\n ${({ $clickable, $disabled }) =>\n $clickable &&\n !$disabled &&\n css`\n &:hover {\n ${StyledImageThumbnailOverlay} {\n display: block;\n ${blackOverlay}\n }\n }\n `}\n`\n\nexport const StyledThumbnailWrapper = styled.div<{\n $layout: LayoutVariant\n $size: SizeVariant\n}>`\n display: flex;\n ${({ $size }) =>\n $size === 'lg'\n ? `\n width: ${thumbnailSizeLg}px;\n `\n : ''}\n ${({ $layout }) => {\n const isRowLayout = $layout === 'row'\n return isRowLayout\n ? css`\n flex-direction: row;\n align-items: center;\n `\n : css`\n flex-direction: column;\n align-items: flex-start;\n `\n }}\n`\n\nexport const StyledPlaceholderThumbnail = styled.div<StyledThumbnailProps>`\n ${thumbnailBase}\n\n ${({ $clickable }) =>\n $clickable &&\n css`\n &:hover {\n background-color: ${colors.gray96};\n }\n `}\n\n ${({ $selected, $size }) =>\n $selected &&\n $size === 'sm' &&\n css`\n ${StyledFileIcon} {\n display: none;\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n ${StyledFileIcon},\n ${StyledTickIcon} {\n filter: saturate(0);\n opacity: 0.5;\n }\n\n &:hover {\n background-color: inherit;\n }\n `}\n\n ${({ $disabled, $selected }) =>\n $disabled &&\n !$selected &&\n css`\n ${StyledTickIcon} {\n opacity: 0;\n transform: scale(0.75);\n }\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAE/C,SACEC,mBAAmB,EACnBC,UAAU,EACVC,iBAAiB,QACZ,eAAe;AACtB,SAASC,YAAY,QAAQ,yBAAyB;AACtD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,WAAW,EAAEC,QAAQ,QAAQ,mBAAmB;AACzD,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,SAASC,YAAY,QAAQ,yBAAyB;AAEtD,IAAMC,eAAe,GAAG,EAAE;AA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AEDtD,eAAe,mBAExB,EAAE;AAAA,GACN,UAAA6E,MAAA,EAAiB;EAAA,IAAdnE,OAAO,GAAAmE,MAAA,CAAPnE,OAAO;EACV,IAAMoE,WAAW,GAAGpE,OAAO,KAAK,KAAK;EACrC,OAAOoE,WAAW,GACdzF,GAAG,+CAIHA,GAAG,mDAGF;AACP,CAAC,CACF;AAED,OAAO,IAAM0F,0BAA0B,gBAAG3F,MAAM,CAACiC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iCAChDgB,aAAa,EAEb,UAAAwC,MAAA;EAAA,IAAGpC,UAAU,GAAAoC,MAAA,CAAVpC,UAAU;EAAA,OACbA,UAAU,IACVvD,GAAG,sCAEqBK,MAAM,CAACuF,MAAM,CAEpC;AAAA,GAED,UAAAC,MAAA;EAAA,IAAGpC,SAAS,GAAAoC,MAAA,CAATpC,SAAS;IAAEM,KAAK,GAAA8B,MAAA,CAAL9B,KAAK;EAAA,OACnBN,SAAS,IACTM,KAAK,KAAK,IAAI,IACd/D,GAAG,0BACCqE,cAAc,CAGjB;AAAA,GAED,UAAAyB,MAAA;EAAA,IAAGjE,SAAS,GAAAiE,MAAA,CAATjE,SAAS;EAAA,OACZA,SAAS,IACT7B,GAAG,mFACCqE,cAAc,EACdX,cAAc,CAQjB;AAAA,GAED,UAAAqC,MAAA;EAAA,IAAGlE,SAAS,GAAAkE,MAAA,CAATlE,SAAS;IAAE4B,SAAS,GAAAsC,MAAA,CAATtC,SAAS;EAAA,OACvB5B,SAAS,IACT,CAAC4B,SAAS,IACVzD,GAAG,6CACC0D,cAAc,CAIjB;AAAA,EACJ"}
|
|
@@ -7,31 +7,31 @@ import { getEllipsis } from '../_styles/mixins';
|
|
|
7
7
|
import { spacing } from '../_styles/spacing';
|
|
8
8
|
export var StyledCheckbox = /*#__PURE__*/styled(Checkbox).withConfig({
|
|
9
9
|
displayName: "StyledCheckbox",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-12_26_2__sc-1inrbm9-0"
|
|
11
11
|
})(["input{z-index:2;}"]);
|
|
12
12
|
export var StyledGroupCell = /*#__PURE__*/styled.div.withConfig({
|
|
13
13
|
displayName: "StyledGroupCell",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_26_2__sc-1inrbm9-1"
|
|
15
15
|
})(["display:flex;align-items:flex-end;padding-bottom:", "px;"], spacing.md);
|
|
16
16
|
export var StyledThumbnail = /*#__PURE__*/styled(Thumbnail).withConfig({
|
|
17
17
|
displayName: "StyledThumbnail",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_26_2__sc-1inrbm9-2"
|
|
19
19
|
})(["display:inline-flex;&:focus{outline:none;}"]);
|
|
20
20
|
// VariableSizeGrid has provided width and height as inline style, so to make it flexible and support responsive !important was added
|
|
21
21
|
export var StyledVariableSizeGrid = /*#__PURE__*/styled(VariableSizeGrid).withConfig({
|
|
22
22
|
displayName: "StyledVariableSizeGrid",
|
|
23
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-12_26_2__sc-1inrbm9-3"
|
|
24
24
|
})(["height:100% !important;& > div{width:100% !important;}"]);
|
|
25
25
|
export var StyledGroupTitle = /*#__PURE__*/styled(Typography).withConfig({
|
|
26
26
|
displayName: "StyledGroupTitle",
|
|
27
|
-
componentId: "core-
|
|
27
|
+
componentId: "core-12_26_2__sc-1inrbm9-4"
|
|
28
28
|
})(["", ""], getEllipsis);
|
|
29
29
|
export var StyledSpinnerWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
30
30
|
displayName: "StyledSpinnerWrapper",
|
|
31
|
-
componentId: "core-
|
|
31
|
+
componentId: "core-12_26_2__sc-1inrbm9-5"
|
|
32
32
|
})(["display:flex;justify-content:center;align-items:center;width:100%;height:100%;"]);
|
|
33
33
|
export var StyledThumbnailGrid = /*#__PURE__*/styled.div.withConfig({
|
|
34
34
|
displayName: "StyledThumbnailGrid",
|
|
35
|
-
componentId: "core-
|
|
35
|
+
componentId: "core-12_26_2__sc-1inrbm9-6"
|
|
36
36
|
})(["display:flex;flex-wrap:wrap;outline:none;"]);
|
|
37
37
|
//# sourceMappingURL=ThumbnailGrid.styles.js.map
|
|
@@ -9,19 +9,19 @@ import { colors } from '../_styles/colors';
|
|
|
9
9
|
import { spacing } from '../_styles/spacing';
|
|
10
10
|
export var StyledTieredSelect = /*#__PURE__*/styled(MenuImperative).withConfig({
|
|
11
11
|
displayName: "StyledTieredSelect",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_26_2__sc-e1ql06-0"
|
|
13
13
|
})(["align-items:stretch;max-height:40vh;"]);
|
|
14
14
|
export var StyledTieredSelectIcon = /*#__PURE__*/styled(Flex).withConfig({
|
|
15
15
|
displayName: "StyledTieredSelectIcon",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_26_2__sc-e1ql06-1"
|
|
17
17
|
})(["height:24px;width:24px;"]);
|
|
18
18
|
export var StyledTieredSelectArrowButton = /*#__PURE__*/styled(Button).withConfig({
|
|
19
19
|
displayName: "StyledTieredSelectArrowButton",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-12_26_2__sc-e1ql06-2"
|
|
21
21
|
})(["border:1px solid transparent;"]);
|
|
22
22
|
export var StyledTieredSelectBreadcrumbs = /*#__PURE__*/styled(Breadcrumbs).withConfig({
|
|
23
23
|
displayName: "StyledTieredSelectBreadcrumbs",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_26_2__sc-e1ql06-3"
|
|
25
25
|
})(["background-color:", ";flex-wrap:wrap;margin-top:", "px;max-height:68px;overflow-y:auto;padding:", "px ", "px;", ""], colors.gray96, spacing.sm, spacing.xs, spacing.md, function (_ref) {
|
|
26
26
|
var $nonInteractive = _ref.$nonInteractive;
|
|
27
27
|
if ($nonInteractive) {
|
|
@@ -30,22 +30,22 @@ export var StyledTieredSelectBreadcrumbs = /*#__PURE__*/styled(Breadcrumbs).with
|
|
|
30
30
|
});
|
|
31
31
|
export var StyledTieredSelectHome = /*#__PURE__*/styled(Flex).withConfig({
|
|
32
32
|
displayName: "StyledTieredSelectHome",
|
|
33
|
-
componentId: "core-
|
|
33
|
+
componentId: "core-12_26_2__sc-e1ql06-4"
|
|
34
34
|
})(["height:20px;"]);
|
|
35
35
|
export var StyledTieredSelectOption = /*#__PURE__*/styled(MenuImperative.Item).withConfig({
|
|
36
36
|
displayName: "StyledTieredSelectOption",
|
|
37
|
-
componentId: "core-
|
|
37
|
+
componentId: "core-12_26_2__sc-e1ql06-5"
|
|
38
38
|
})(["align-items:center;display:flex;justify-content:space-between;padding:2px ", "px;"], spacing.lg);
|
|
39
39
|
export var StyledTieredSelectLoadingMore = /*#__PURE__*/styled(Flex).withConfig({
|
|
40
40
|
displayName: "StyledTieredSelectLoadingMore",
|
|
41
|
-
componentId: "core-
|
|
41
|
+
componentId: "core-12_26_2__sc-e1ql06-6"
|
|
42
42
|
})(["align-items:center;justify-content:center;padding:", "px ", "px 0px ", "px;"], spacing.xs, spacing.lg, spacing.lg);
|
|
43
43
|
export var StyledTieredSelectOverlay = /*#__PURE__*/styled(Card).withConfig({
|
|
44
44
|
displayName: "StyledTieredSelectOverlay",
|
|
45
|
-
componentId: "core-
|
|
45
|
+
componentId: "core-12_26_2__sc-e1ql06-7"
|
|
46
46
|
})(["max-width:248px;min-width:inherit;"]);
|
|
47
47
|
export var StyledTieredSelectSpinnerOverlay = /*#__PURE__*/styled(Spinner).withConfig({
|
|
48
48
|
displayName: "StyledTieredSelectSpinnerOverlay",
|
|
49
|
-
componentId: "core-
|
|
49
|
+
componentId: "core-12_26_2__sc-e1ql06-8"
|
|
50
50
|
})(["min-height:auto;"]);
|
|
51
51
|
//# sourceMappingURL=TieredSelect.styles.js.map
|
package/dist/Tile/Tile.styles.js
CHANGED
|
@@ -44,7 +44,7 @@ var getTileStyles = function getTileStyles(_ref) {
|
|
|
44
44
|
};
|
|
45
45
|
export var StyledLinkTile = /*#__PURE__*/styled.a.withConfig({
|
|
46
46
|
displayName: "StyledLinkTile",
|
|
47
|
-
componentId: "core-
|
|
47
|
+
componentId: "core-12_26_2__sc-8q9p0n-0"
|
|
48
48
|
})(["", " text-decoration:none;color:inherit;"], function (_ref2) {
|
|
49
49
|
var $orientation = _ref2.$orientation;
|
|
50
50
|
return getTileStyles({
|
|
@@ -54,7 +54,7 @@ export var StyledLinkTile = /*#__PURE__*/styled.a.withConfig({
|
|
|
54
54
|
});
|
|
55
55
|
export var StyledSelectableTile = /*#__PURE__*/styled.div.withConfig({
|
|
56
56
|
displayName: "StyledSelectableTile",
|
|
57
|
-
componentId: "core-
|
|
57
|
+
componentId: "core-12_26_2__sc-8q9p0n-1"
|
|
58
58
|
})(["", ""], function (_ref3) {
|
|
59
59
|
var $orientation = _ref3.$orientation,
|
|
60
60
|
$selected = _ref3.$selected,
|
|
@@ -72,7 +72,7 @@ export var StyledSelectableTile = /*#__PURE__*/styled.div.withConfig({
|
|
|
72
72
|
});
|
|
73
73
|
export var StyledInteractableTile = /*#__PURE__*/styled.div.withConfig({
|
|
74
74
|
displayName: "StyledInteractableTile",
|
|
75
|
-
componentId: "core-
|
|
75
|
+
componentId: "core-12_26_2__sc-8q9p0n-2"
|
|
76
76
|
})(["", ""], function (_ref4) {
|
|
77
77
|
var $orientation = _ref4.$orientation;
|
|
78
78
|
return getTileStyles({
|
|
@@ -81,26 +81,26 @@ export var StyledInteractableTile = /*#__PURE__*/styled.div.withConfig({
|
|
|
81
81
|
});
|
|
82
82
|
export var StyledFooter = /*#__PURE__*/styled.div.withConfig({
|
|
83
83
|
displayName: "StyledFooter",
|
|
84
|
-
componentId: "core-
|
|
84
|
+
componentId: "core-12_26_2__sc-8q9p0n-3"
|
|
85
85
|
})(["grid-area:footer;padding:", "px;> ", "{flex-wrap:wrap-reverse;}"], spacing.lg, StyledActions);
|
|
86
86
|
export var StyledTileContent = /*#__PURE__*/styled(StyledContent).withConfig({
|
|
87
87
|
displayName: "StyledTileContent",
|
|
88
|
-
componentId: "core-
|
|
88
|
+
componentId: "core-12_26_2__sc-8q9p0n-4"
|
|
89
89
|
})(["grid-column-start:hero-start;grid-column-end:body-end;padding:", "px;+ ", "{padding-top:0;}> ", ",> ", " > ", ",> ", "{grid-column-gap:", "px;}"], spacing.lg, StyledFooter, SFormRow, SForm, SFormRow, SFormRow, spacing.md);
|
|
90
90
|
export var StyledHeroMedia = /*#__PURE__*/styled.figure.withConfig({
|
|
91
91
|
displayName: "StyledHeroMedia",
|
|
92
|
-
componentId: "core-
|
|
92
|
+
componentId: "core-12_26_2__sc-8q9p0n-5"
|
|
93
93
|
})(["grid-area:hero;margin:0;position:relative;overflow:hidden;font-size:0;> *{font-size:initial;}+ ", "{grid-area:body;}> video{background-color:", ";}> img,> picture > img{object-fit:cover;}", ""], StyledTileContent, colors.black, function (_ref5) {
|
|
94
94
|
var $orientation = _ref5.$orientation;
|
|
95
95
|
return $orientation === 'landscape' && !isIE11() ? css(["border-top-left-radius:inherit;border-bottom-left-radius:inherit;> *,> picture > img{height:100%;width:100%;position:absolute;}@media ", "{> picture > img,> img{width:auto;left:50%;transform:translate(-50%,0);}}"], mediaIE11Hack) : css(["min-height:156px;max-height:567px;border-top-left-radius:inherit;border-top-right-radius:inherit;> *,> picture > img{min-height:inherit;max-height:inherit;height:auto;width:100%;}"]);
|
|
96
96
|
});
|
|
97
97
|
export var StyledHeroOverlay = /*#__PURE__*/styled.div.withConfig({
|
|
98
98
|
displayName: "StyledHeroOverlay",
|
|
99
|
-
componentId: "core-
|
|
99
|
+
componentId: "core-12_26_2__sc-8q9p0n-6"
|
|
100
100
|
})(["position:absolute;width:100%;height:100%;top:0;left:0;z-index:1;"]);
|
|
101
101
|
export var StyledHeroText = /*#__PURE__*/styled.div.withConfig({
|
|
102
102
|
displayName: "StyledHeroText",
|
|
103
|
-
componentId: "core-
|
|
103
|
+
componentId: "core-12_26_2__sc-8q9p0n-7"
|
|
104
104
|
})(["grid-area:hero;+ ", "{grid-area:body;}padding:", "px;border-radius:inherit;", ""], StyledTileContent, spacing.lg, function (_ref6) {
|
|
105
105
|
var $orientation = _ref6.$orientation;
|
|
106
106
|
return $orientation === 'landscape' ? css(["display:flex;flex-direction:column;justify-content:center;padding-right:0;"]) : css(["padding-bottom:0;"]);
|
|
@@ -5,36 +5,36 @@ import { Typography } from '../Typography/Typography';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
|
|
7
7
|
displayName: "StyledTitle",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_26_2__sc-1t2ye1d-0"
|
|
9
9
|
})(["display:flex;align-items:flex-start;"]);
|
|
10
10
|
export var StyledAssets = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledAssets",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_26_2__sc-1t2ye1d-1"
|
|
13
13
|
})(["margin-right:", "px;", ""], spacing.md, function (_ref) {
|
|
14
14
|
var alignment = _ref.alignment;
|
|
15
15
|
return css(["align-self:", ";"], alignment);
|
|
16
16
|
});
|
|
17
17
|
export var StyledTitleContent = /*#__PURE__*/styled.div.withConfig({
|
|
18
18
|
displayName: "StyledTitleContent",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-12_26_2__sc-1t2ye1d-2"
|
|
20
20
|
})(["align-self:center;", ""], function (_ref2) {
|
|
21
21
|
var $hasActions = _ref2.$hasActions;
|
|
22
22
|
return $hasActions && css(["margin-right:", "px;"], spacing.lg);
|
|
23
23
|
});
|
|
24
24
|
export var StyledText = /*#__PURE__*/styled.span.withConfig({
|
|
25
25
|
displayName: "StyledText",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-12_26_2__sc-1t2ye1d-3"
|
|
27
27
|
})(["> h1,> h2,> h3{display:inline;}"]);
|
|
28
28
|
export var StyledTitlePill = /*#__PURE__*/styled.span.withConfig({
|
|
29
29
|
displayName: "StyledTitlePill",
|
|
30
|
-
componentId: "core-
|
|
30
|
+
componentId: "core-12_26_2__sc-1t2ye1d-4"
|
|
31
31
|
})(["margin-left:", "px;", "{vertical-align:text-top;}"], spacing.sm, StyledPill);
|
|
32
32
|
export var StyledTitleActions = /*#__PURE__*/styled(StyledActions).withConfig({
|
|
33
33
|
displayName: "StyledTitleActions",
|
|
34
|
-
componentId: "core-
|
|
34
|
+
componentId: "core-12_26_2__sc-1t2ye1d-5"
|
|
35
35
|
})(["margin-left:auto;"]);
|
|
36
36
|
export var StyledSubtext = /*#__PURE__*/styled(Typography).withConfig({
|
|
37
37
|
displayName: "StyledSubtext",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-12_26_2__sc-1t2ye1d-6"
|
|
39
39
|
})(["display:block;margin-top:", "px;"], spacing.xs);
|
|
40
40
|
//# sourceMappingURL=Title.styles.js.map
|
|
@@ -7,7 +7,7 @@ import { getShadow } from '../_styles/shadows';
|
|
|
7
7
|
import { spacing } from '../_styles/spacing';
|
|
8
8
|
export var StyledToast = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "StyledToast",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-12_26_2__sc-1l6lk2n-0"
|
|
11
11
|
})(["", " align-items:center;background-color:", ";border-radius:", "px;color:", ";display:flex;min-height:48px;padding:", "px ", "px;width:550px;"], getShadow(4, 'bottom'), function (_ref) {
|
|
12
12
|
var $variant = _ref.$variant;
|
|
13
13
|
return $variant === 'success' ? colors.green30 : colors.red50;
|
|
@@ -16,13 +16,13 @@ export var StyledToast = /*#__PURE__*/styled.div.withConfig({
|
|
|
16
16
|
// $legacy is direct string inside Toast. Next is with subcomponents
|
|
17
17
|
export var StyledToastText = /*#__PURE__*/styled.span.withConfig({
|
|
18
18
|
displayName: "StyledToastText",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-12_26_2__sc-1l6lk2n-1"
|
|
20
20
|
})(["", " font-weight:", ";overflow:hidden;", ""], getTypographyIntent('body'), typographyWeights.semibold, function (_ref2) {
|
|
21
21
|
var $legacy = _ref2.$legacy;
|
|
22
22
|
return $legacy ? "margin-left: ".concat(spacing.lg, "px;") : "padding: 0 ".concat(spacing.lg, "px;");
|
|
23
23
|
});
|
|
24
24
|
export var StyledToastButton = /*#__PURE__*/styled(Button).withConfig({
|
|
25
25
|
displayName: "StyledToastButton",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-12_26_2__sc-1l6lk2n-2"
|
|
27
27
|
})(["line-height:0;color:", ";padding:0;margin-left:auto;"], colors.white);
|
|
28
28
|
//# sourceMappingURL=Toast.styles.js.map
|
|
@@ -3,7 +3,7 @@ import { Button } from '../Button/Button';
|
|
|
3
3
|
import { colors } from '../_styles/colors';
|
|
4
4
|
export var StyledToggleButton = /*#__PURE__*/styled(Button).withConfig({
|
|
5
5
|
displayName: "StyledToggleButton",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-12_26_2__sc-1x59fxi-0"
|
|
7
7
|
})(["", ""], function (_ref) {
|
|
8
8
|
var $selected = _ref.$selected;
|
|
9
9
|
return $selected && css(["background-color:", ";color:", ";[data-icon-prop='true']{color:", ";}&:hover{background-color:", ";color:", ";}&:focus{background-color:", ";color:", ";}&:disabled{background-color:", ";color:", ";[data-icon-prop='true']{color:", ";}circle{stroke:", ";}}"], colors.blue96, colors.blue45, colors.blue50, colors.blue90, colors.blue45, colors.blue96, colors.blue45, colors.blue96, colors.blue70, colors.blue70, colors.blue50);
|
package/dist/Token/Token.js
CHANGED
|
@@ -11,7 +11,8 @@ import { addSubcomponents } from '../_utils/addSubcomponents';
|
|
|
11
11
|
import { StyledLabel, StyledRemove, StyledToken } from './Token.styles';
|
|
12
12
|
var TokenContext = /*#__PURE__*/React.createContext({
|
|
13
13
|
labelId: '',
|
|
14
|
-
removeId: ''
|
|
14
|
+
removeId: '',
|
|
15
|
+
isDisabled: false
|
|
15
16
|
});
|
|
16
17
|
var Parent = /*#__PURE__*/React.forwardRef(function Token(_ref, ref) {
|
|
17
18
|
var children = _ref.children,
|
|
@@ -25,17 +26,20 @@ var Parent = /*#__PURE__*/React.forwardRef(function Token(_ref, ref) {
|
|
|
25
26
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
27
|
var labelId = useId();
|
|
27
28
|
var removeId = useId();
|
|
29
|
+
var isDisabled = disabled || variant === 'disabled';
|
|
30
|
+
var isFocused = focused || variant === 'focused';
|
|
28
31
|
return /*#__PURE__*/React.createElement(TokenContext.Provider, {
|
|
29
32
|
value: {
|
|
30
33
|
labelId: labelId,
|
|
31
|
-
removeId: removeId
|
|
34
|
+
removeId: removeId,
|
|
35
|
+
isDisabled: isDisabled
|
|
32
36
|
}
|
|
33
37
|
}, /*#__PURE__*/React.createElement(StyledToken, _extends({
|
|
34
38
|
ref: ref,
|
|
35
39
|
tabIndex: 0
|
|
36
40
|
}, props, {
|
|
37
|
-
$disabled:
|
|
38
|
-
$focused:
|
|
41
|
+
$disabled: isDisabled,
|
|
42
|
+
$focused: isFocused,
|
|
39
43
|
$error: error
|
|
40
44
|
}), children));
|
|
41
45
|
});
|
|
@@ -43,13 +47,15 @@ var Remove = /*#__PURE__*/React.forwardRef(function TokenRemove(props, ref) {
|
|
|
43
47
|
var i18n = useI18nContext();
|
|
44
48
|
var _React$useContext = React.useContext(TokenContext),
|
|
45
49
|
labelId = _React$useContext.labelId,
|
|
46
|
-
removeId = _React$useContext.removeId
|
|
50
|
+
removeId = _React$useContext.removeId,
|
|
51
|
+
isDisabled = _React$useContext.isDisabled;
|
|
47
52
|
return /*#__PURE__*/React.createElement(StyledRemove, _extends({
|
|
48
53
|
ref: ref,
|
|
49
54
|
"aria-hidden": "false",
|
|
50
55
|
"aria-label": i18n.t('core.token.remove'),
|
|
51
56
|
"aria-labelledby": "".concat(removeId, " ").concat(labelId),
|
|
52
|
-
id: removeId
|
|
57
|
+
id: removeId,
|
|
58
|
+
disabled: isDisabled
|
|
53
59
|
}, props, {
|
|
54
60
|
icon: /*#__PURE__*/React.createElement(Clear, {
|
|
55
61
|
role: "img"
|
package/dist/Token/Token.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Token.js","names":["Clear","useId","React","useI18nContext","addSubcomponents","StyledLabel","StyledRemove","StyledToken","TokenContext","createContext","labelId","removeId","Parent","forwardRef","Token","_ref","ref","children","_ref$disabled","disabled","_ref$focused","focused","_ref$error","error","variant","props","_objectWithoutProperties","_excluded","createElement","Provider","value","_extends","tabIndex","$disabled","$focused","$error","Remove","TokenRemove","i18n","_React$useContext","useContext","t","concat","id","icon","role","size","Label","_ref2","_excluded2","_React$useContext2","displayName"],"sources":["../../src/Token/Token.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport { useId } from '@react-aria/utils'\nimport React from 'react'\nimport type { ButtonProps } from '../Button'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\nimport { StyledLabel, StyledRemove, StyledToken } from './Token.styles'\nimport type { TokenContextApi, TokenProps } from './Token.types'\n\nconst TokenContext = React.createContext<TokenContextApi>({\n labelId: '',\n removeId: '',\n})\n\nconst Parent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TokenProps\n>(function Token(\n {\n children,\n disabled = false,\n focused = false,\n error = false,\n variant,\n ...props\n },\n ref\n) {\n const labelId = useId()\n const removeId = useId()\n\n return (\n <TokenContext.Provider value={{ labelId, removeId }}>\n <StyledToken\n ref={ref}\n tabIndex={0}\n {...props}\n $disabled={
|
|
1
|
+
{"version":3,"file":"Token.js","names":["Clear","useId","React","useI18nContext","addSubcomponents","StyledLabel","StyledRemove","StyledToken","TokenContext","createContext","labelId","removeId","isDisabled","Parent","forwardRef","Token","_ref","ref","children","_ref$disabled","disabled","_ref$focused","focused","_ref$error","error","variant","props","_objectWithoutProperties","_excluded","isFocused","createElement","Provider","value","_extends","tabIndex","$disabled","$focused","$error","Remove","TokenRemove","i18n","_React$useContext","useContext","t","concat","id","icon","role","size","Label","_ref2","_excluded2","_React$useContext2","displayName"],"sources":["../../src/Token/Token.tsx"],"sourcesContent":["import { Clear } from '@procore/core-icons'\nimport { useId } from '@react-aria/utils'\nimport React from 'react'\nimport type { ButtonProps } from '../Button'\nimport { useI18nContext } from '../_hooks/I18n'\nimport { addSubcomponents } from '../_utils/addSubcomponents'\nimport type { Props } from '../_utils/types'\nimport { StyledLabel, StyledRemove, StyledToken } from './Token.styles'\nimport type { TokenContextApi, TokenProps } from './Token.types'\n\nconst TokenContext = React.createContext<TokenContextApi>({\n labelId: '',\n removeId: '',\n isDisabled: false,\n})\n\nconst Parent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & TokenProps\n>(function Token(\n {\n children,\n disabled = false,\n focused = false,\n error = false,\n variant,\n ...props\n },\n ref\n) {\n const labelId = useId()\n const removeId = useId()\n const isDisabled = disabled || variant === 'disabled'\n const isFocused = focused || variant === 'focused'\n\n return (\n <TokenContext.Provider value={{ labelId, removeId, isDisabled }}>\n <StyledToken\n ref={ref}\n tabIndex={0}\n {...props}\n $disabled={isDisabled}\n $focused={isFocused}\n $error={error}\n >\n {children}\n </StyledToken>\n </TokenContext.Provider>\n )\n})\n\nconst Remove = React.forwardRef<HTMLButtonElement, ButtonProps>(\n function TokenRemove(props, ref) {\n const i18n = useI18nContext()\n const { labelId, removeId, isDisabled } = React.useContext(TokenContext)\n\n return (\n <StyledRemove\n ref={ref}\n aria-hidden=\"false\"\n aria-label={i18n.t('core.token.remove')}\n aria-labelledby={`${removeId} ${labelId}`}\n id={removeId}\n disabled={isDisabled}\n {...props}\n icon={<Clear role=\"img\" />}\n size=\"sm\"\n variant=\"tertiary\"\n />\n )\n }\n)\n\nconst Label = React.forwardRef<\n HTMLSpanElement,\n React.HTMLAttributes<HTMLSpanElement> & Props\n>(function Label({ children, ...props }, ref) {\n const { labelId } = React.useContext(TokenContext)\n\n return (\n <StyledLabel id={labelId} ref={ref} {...props}>\n {children}\n </StyledLabel>\n )\n})\n\nParent.displayName = 'Token'\nRemove.displayName = 'Token.Remove'\nLabel.displayName = 'Token.Label'\n\n/**\n\n We use tokens in our multi select dropdowns and file attachers to indicate what\n has been selected or attached. Tokens in these components are removable.\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-token--demo)\n\n @see [Design Guidelines](https://design.procore.com/tokens)\n\n */\nexport const Token = addSubcomponents(\n {\n Label,\n Remove,\n },\n Parent\n)\n"],"mappings":";;;;;AAAA,SAASA,KAAK,QAAQ,qBAAqB;AAC3C,SAASC,KAAK,QAAQ,mBAAmB;AACzC,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SAASC,gBAAgB,QAAQ,4BAA4B;AAE7D,SAASC,WAAW,EAAEC,YAAY,EAAEC,WAAW,QAAQ,gBAAgB;AAGvE,IAAMC,YAAY,gBAAGN,KAAK,CAACO,aAAa,CAAkB;EACxDC,OAAO,EAAE,EAAE;EACXC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE;AACd,CAAC,CAAC;AAEF,IAAMC,MAAM,gBAAGX,KAAK,CAACY,UAAU,CAG7B,SAASC,KAAKA,CAAAC,IAAA,EASdC,GAAG,EACH;EAAA,IAREC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAAC,aAAA,GAAAH,IAAA,CACRI,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAAE,YAAA,GAAAL,IAAA,CAChBM,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;IAAAE,UAAA,GAAAP,IAAA,CACfQ,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,KAAK,GAAAA,UAAA;IACbE,OAAO,GAAAT,IAAA,CAAPS,OAAO;IACJC,KAAK,GAAAC,wBAAA,CAAAX,IAAA,EAAAY,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AAElC,QAAS;IACbS,QAAQ,EAAER;EAAW,GACjBc,KAAK;IACToB,IAAI,eAAE5C,KAAA,CAAA4B,aAAA,CAAC9B,KAAK;MAAC+C,IAAI,EAAC;IAAK,CAAE,CAAE;IAC3BC,IAAI,EAAC,IAAI;IACTvB,OAAO,EAAC;EAAU,EACnB,CAAC;AAEN,CACF,CAAC;AAED,IAAMwB,KAAK,gBAAG/C,KAAK,CAACY,UAAU,CAG5B,SAASmC,KAAKA,CAAAC,KAAA,EAAyBjC,GAAG,EAAE;EAAA,IAA3BC,QAAQ,GAAAgC,KAAA,CAARhC,QAAQ;IAAKQ,KAAK,GAAAC,wBAAA,CAAAuB,KAAA,EAAAC,UAAA;EACnC,IAAAC,kBAAA,GAAoBlD,KAAK,CAACwC,UAAU,CAAClC,YAAY,CAAC;IAA1CE,OAAO,GAAA0C,kBAAA,CAAP1C,OAAO;EAEf,oBACER,KAAA,CAAA4B,aAAA,CAACzB,WAAW,EAAA4B,QAAA;IAACY,EAAE,EAAEnC,OAAQ;IAACO,GAAG,EAAEA;EAAI,GAAKS,KAAK,GAC1CR,QACU,CAAC;AAElB,CAAC,CAAC;AAEFL,MAAM,CAACwC,WAAW,GAAG,OAAO;AAC5Bf,MAAM,CAACe,WAAW,GAAG,cAAc;AACnCJ,KAAK,CAACI,WAAW,GAAG,aAAa;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMtC,KAAK,GAAGX,gBAAgB,CACnC;EACE6C,KAAK,EAALA,KAAK;EACLX,MAAM,EAANA;AACF,CAAC,EACDzB,MACF,CAAC"}
|
|
@@ -6,15 +6,15 @@ import { getEllipsis, getFocus } from '../_styles/mixins';
|
|
|
6
6
|
import { spacing } from '../_styles/spacing';
|
|
7
7
|
export var StyledLabel = /*#__PURE__*/styled.span.withConfig({
|
|
8
8
|
displayName: "StyledLabel",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-12_26_2__sc-zqi94b-0"
|
|
10
10
|
})(["", " ", " flex:0 1 auto;"], getTypographyIntent('body'), getEllipsis);
|
|
11
11
|
export var StyledRemove = /*#__PURE__*/styled(Button).withConfig({
|
|
12
12
|
displayName: "StyledRemove",
|
|
13
|
-
componentId: "core-
|
|
14
|
-
})(["border-radius:100%;color:", ";flex:0 0 auto;height:16px;margin:0 -", "px 0 ", "px;padding:0;width:16px;&:hover{background:", ";color:", ";}"], colors.white, spacing.sm, spacing.sm, colors.white, colors.blue40);
|
|
13
|
+
componentId: "core-12_26_2__sc-zqi94b-1"
|
|
14
|
+
})(["border-radius:100%;color:", ";flex:0 0 auto;height:16px;margin:0 -", "px 0 ", "px;padding:0;width:16px;&:hover{background:", ";color:", ";}&:disabled,&[aria-disabled='true']{color:", ";}"], colors.white, spacing.sm, spacing.sm, colors.white, colors.blue40, colors.white);
|
|
15
15
|
export var StyledToken = /*#__PURE__*/styled.div.withConfig({
|
|
16
16
|
displayName: "StyledToken",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-12_26_2__sc-zqi94b-2"
|
|
18
18
|
})(["align-items:center;background-color:", ";border-radius:200px;border:1px solid transparent;color:", ";cursor:default;display:inline-flex;height:24px;line-height:1;max-width:360px;min-width:48px;padding:", "px ", "px;&:hover,&.hover{background-color:", ";}", " ", " ", ""], colors.blue50, colors.white, spacing.xs, spacing.md, colors.blue45, function (_ref) {
|
|
19
19
|
var _ref$$focused = _ref.$focused,
|
|
20
20
|
$focused = _ref$$focused === void 0 ? false : _ref$$focused,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Token.styles.js","names":["styled","css","Button","getTypographyIntent","colors","getEllipsis","getFocus","spacing","StyledLabel","span","withConfig","displayName","componentId","StyledRemove","white","sm","blue40","StyledToken","div","blue50","xs","md","blue45","_ref","_ref$$focused","$focused","_ref$$disabled","$disabled","_ref2","_ref2$$disabled","gray70","_ref3","_ref3$$error","$error","red50"],"sources":["../../src/Token/Token.styles.tsx"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { Button } from '../Button'\nimport { getTypographyIntent } from '../Typography'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport const StyledLabel = styled.span`\n ${getTypographyIntent('body')}\n\n ${getEllipsis}\n\n flex: 0 1 auto;\n`\n\nexport const StyledRemove = styled(Button)`\n border-radius: 100%;\n color: ${colors.white};\n flex: 0 0 auto;\n height: 16px;\n margin: 0 -${spacing.sm}px 0 ${spacing.sm}px;\n padding: 0;\n width: 16px;\n\n &:hover {\n background: ${colors.white};\n color: ${colors.blue40};\n }\n`\n\nexport const StyledToken = styled.div<{\n $disabled: boolean\n $focused: boolean\n $error: boolean\n}>`\n align-items: center;\n background-color: ${colors.blue50};\n border-radius: 200px; // TODO investigate this magic number\n border: 1px solid transparent;\n color: ${colors.white};\n cursor: default;\n display: inline-flex;\n height: 24px;\n line-height: 1; // TODO investigate this magic number\n max-width: 360px; // TODO investigate this magic number\n min-width: 48px; // TODO investigate this magic number\n padding: ${spacing.xs}px ${spacing.md}px;\n\n &:hover,\n &.hover {\n background-color: ${colors.blue45};\n }\n\n ${({ $focused = false, $disabled = false }) =>\n $focused &&\n css`\n ${getFocus()}\n\n background-color: ${colors.blue45};\n\n ${!$disabled &&\n css`\n ${StyledRemove} {\n background-color: ${colors.white};\n color: ${colors.blue45};\n }\n `}\n `}\n\n ${({ $disabled = false }) =>\n $disabled &&\n css`\n background-color: ${colors.gray70};\n border-color: transparent;\n box-shadow: none;\n pointer-events: none;\n `}\n\n ${({ $error = false }) =>\n $error &&\n css`\n &,\n &:hover {\n background-color: ${colors.red50};\n }\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,WAAW,EAAEC,QAAQ,QAAQ,mBAAmB;AACzD,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,WAAW,gBAAGR,MAAM,CAACS,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iCAClCT,mBAAmB,CAAC,MAAM,CAAC,EAE3BE,WAAW,CAGd;AAED,OAAO,IAAMQ,YAAY,gBAAGb,MAAM,CAACE,MAAM,CAAC,CAAAQ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"Token.styles.js","names":["styled","css","Button","getTypographyIntent","colors","getEllipsis","getFocus","spacing","StyledLabel","span","withConfig","displayName","componentId","StyledRemove","white","sm","blue40","StyledToken","div","blue50","xs","md","blue45","_ref","_ref$$focused","$focused","_ref$$disabled","$disabled","_ref2","_ref2$$disabled","gray70","_ref3","_ref3$$error","$error","red50"],"sources":["../../src/Token/Token.styles.tsx"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { Button } from '../Button'\nimport { getTypographyIntent } from '../Typography'\nimport { colors } from '../_styles/colors'\nimport { getEllipsis, getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport const StyledLabel = styled.span`\n ${getTypographyIntent('body')}\n\n ${getEllipsis}\n\n flex: 0 1 auto;\n`\n\nexport const StyledRemove = styled(Button)`\n border-radius: 100%;\n color: ${colors.white};\n flex: 0 0 auto;\n height: 16px;\n margin: 0 -${spacing.sm}px 0 ${spacing.sm}px;\n padding: 0;\n width: 16px;\n\n &:hover {\n background: ${colors.white};\n color: ${colors.blue40};\n }\n\n &:disabled,\n &[aria-disabled='true'] {\n color: ${colors.white};\n }\n`\n\nexport const StyledToken = styled.div<{\n $disabled: boolean\n $focused: boolean\n $error: boolean\n}>`\n align-items: center;\n background-color: ${colors.blue50};\n border-radius: 200px; // TODO investigate this magic number\n border: 1px solid transparent;\n color: ${colors.white};\n cursor: default;\n display: inline-flex;\n height: 24px;\n line-height: 1; // TODO investigate this magic number\n max-width: 360px; // TODO investigate this magic number\n min-width: 48px; // TODO investigate this magic number\n padding: ${spacing.xs}px ${spacing.md}px;\n\n &:hover,\n &.hover {\n background-color: ${colors.blue45};\n }\n\n ${({ $focused = false, $disabled = false }) =>\n $focused &&\n css`\n ${getFocus()}\n\n background-color: ${colors.blue45};\n\n ${!$disabled &&\n css`\n ${StyledRemove} {\n background-color: ${colors.white};\n color: ${colors.blue45};\n }\n `}\n `}\n\n ${({ $disabled = false }) =>\n $disabled &&\n css`\n background-color: ${colors.gray70};\n border-color: transparent;\n box-shadow: none;\n pointer-events: none;\n `}\n\n ${({ $error = false }) =>\n $error &&\n css`\n &,\n &:hover {\n background-color: ${colors.red50};\n }\n `}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,mBAAmB,QAAQ,eAAe;AACnD,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,WAAW,EAAEC,QAAQ,QAAQ,mBAAmB;AACzD,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,WAAW,gBAAGR,MAAM,CAACS,IAAI,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,iCAClCT,mBAAmB,CAAC,MAAM,CAAC,EAE3BE,WAAW,CAGd;AAED,OAAO,IAAMQ,YAAY,gBAAGb,MAAM,CAACE,MAAM,CAAC,CAAAQ,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mMAE/BR,MAAM,CAACU,KAAK,EAGRP,OAAO,CAACQ,EAAE,EAAQR,OAAO,CAACQ,EAAE,EAKzBX,MAAM,CAACU,KAAK,EACjBV,MAAM,CAACY,MAAM,EAKbZ,MAAM,CAACU,KAAK,CAExB;AAED,OAAO,IAAMG,WAAW,gBAAGjB,MAAM,CAACkB,GAAG,CAAAR,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,qRAMfR,MAAM,CAACe,MAAM,EAGxBf,MAAM,CAACU,KAAK,EAOVP,OAAO,CAACa,EAAE,EAAMb,OAAO,CAACc,EAAE,EAIfjB,MAAM,CAACkB,MAAM,EAGjC,UAAAC,IAAA;EAAA,IAAAC,aAAA,GAAAD,IAAA,CAAGE,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,KAAK,GAAAA,aAAA;IAAAE,cAAA,GAAAH,IAAA,CAAEI,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,KAAK,GAAAA,cAAA;EAAA,OACtCD,QAAQ,IACRxB,GAAG,sCACCK,QAAQ,CAAC,CAAC,EAEQF,MAAM,CAACkB,MAAM,EAE/B,CAACK,SAAS,IACZ1B,GAAG,8CACCY,YAAY,EACQT,MAAM,CAACU,KAAK,EACvBV,MAAM,CAACkB,MAAM,CAEzB,CACF;AAAA,GAED,UAAAM,KAAA;EAAA,IAAAC,eAAA,GAAAD,KAAA,CAAGD,SAAS;IAATA,SAAS,GAAAE,eAAA,cAAG,KAAK,GAAAA,eAAA;EAAA,OACpBF,SAAS,IACT1B,GAAG,0FACmBG,MAAM,CAAC0B,MAAM,CAIlC;AAAA,GAED,UAAAC,KAAA;EAAA,IAAAC,YAAA,GAAAD,KAAA,CAAGE,MAAM;IAANA,MAAM,GAAAD,YAAA,cAAG,KAAK,GAAAA,YAAA;EAAA,OACjBC,MAAM,IACNhC,GAAG,wCAGqBG,MAAM,CAAC8B,KAAK,CAEnC;AAAA,EACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Token.types.js","names":[],"sources":["../../src/Token/Token.types.ts"],"sourcesContent":["export interface TokenProps {\n /**\n * Disables the token\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n focused?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @deprecated\n *\n * All variants have been deprecated and will be removed in a future version.\n * Please use `Token.Remove` component or `disabled` boolean prop instead.\n *\n * **Before**\n *\n * `<Token variant='icon'>\n * <Token.Icon icon=\"x\" />\n * </Token>`\n *\n * **After**\n *\n * `<Token>\n * <Token.Remove />\n * </Token>`\n *\n * @deprecatedSince 10.27.0\n */\n variant?: 'disabled' | 'focused' | 'icon' | 'standard'\n}\n\nexport interface TokenContextApi {\n labelId: string\n removeId: string\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Token.types.js","names":[],"sources":["../../src/Token/Token.types.ts"],"sourcesContent":["export interface TokenProps {\n /**\n * Disables the token\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * @since 10.19.0\n */\n focused?: boolean\n /**\n * @since 10.19.0\n */\n error?: boolean\n /**\n * @deprecated\n *\n * All variants have been deprecated and will be removed in a future version.\n * Please use `Token.Remove` component or `disabled` boolean prop instead.\n *\n * **Before**\n *\n * `<Token variant='icon'>\n * <Token.Icon icon=\"x\" />\n * </Token>`\n *\n * **After**\n *\n * `<Token>\n * <Token.Remove />\n * </Token>`\n *\n * @deprecatedSince 10.27.0\n */\n variant?: 'disabled' | 'focused' | 'icon' | 'standard'\n}\n\nexport interface TokenContextApi {\n labelId: string\n removeId: string\n isDisabled: boolean\n}\n"],"mappings":""}
|
|
@@ -5,7 +5,7 @@ import { colors } from '../_styles/colors';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledHeaderBadge = /*#__PURE__*/styled.div.withConfig({
|
|
7
7
|
displayName: "StyledHeaderBadge",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_26_2__sc-1jpjx47-0"
|
|
9
9
|
})(["", " border-radius:10px;border-style:solid;border-width:1px;display:inline-block;margin-bottom:", "px;padding:1px ", "px;", ""], getTypographyIntent('small'), spacing.sm, spacing.sm, function (_ref) {
|
|
10
10
|
var $variant = _ref.$variant;
|
|
11
11
|
if ($variant) {
|
|
@@ -18,22 +18,22 @@ export var StyledHeaderBadge = /*#__PURE__*/styled.div.withConfig({
|
|
|
18
18
|
// TODO in v12 remove cursor: pointer;
|
|
19
19
|
export var StyledToolHeaderIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "StyledToolHeaderIconContainer",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-12_26_2__sc-1jpjx47-1"
|
|
22
22
|
})(["color:", ";cursor:pointer;display:inline-flex;flex:0 0 auto;"], colors.orange50);
|
|
23
23
|
export var StyledHeaderTabs = /*#__PURE__*/styled.div.withConfig({
|
|
24
24
|
displayName: "StyledHeaderTabs",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-12_26_2__sc-1jpjx47-2"
|
|
26
26
|
})(["align-self:flex-end;flex:1 1 auto;min-width:100px;overflow:hidden;"]);
|
|
27
27
|
export var StyledHeaderActions = /*#__PURE__*/styled.div.withConfig({
|
|
28
28
|
displayName: "StyledHeaderActions",
|
|
29
|
-
componentId: "core-
|
|
29
|
+
componentId: "core-12_26_2__sc-1jpjx47-3"
|
|
30
30
|
})(["flex:0 0 auto;margin-left:auto;padding-left:", "px;"], spacing.lg);
|
|
31
31
|
export var StyledToolHeaderTitle = /*#__PURE__*/styled(H1).withConfig({
|
|
32
32
|
displayName: "StyledToolHeaderTitle",
|
|
33
|
-
componentId: "core-
|
|
33
|
+
componentId: "core-12_26_2__sc-1jpjx47-4"
|
|
34
34
|
})(["margin-right:", "px;white-space:nowrap;"], spacing.xl);
|
|
35
35
|
export var StyledToolHeader = /*#__PURE__*/styled.div.withConfig({
|
|
36
36
|
displayName: "StyledToolHeader",
|
|
37
|
-
componentId: "core-
|
|
37
|
+
componentId: "core-12_26_2__sc-1jpjx47-5"
|
|
38
38
|
})(["align-items:center;display:flex;min-height:36px;width:100%;", " + ", ",a + ", ",button + ", "{margin-left:", "px;}"], StyledToolHeaderIconContainer, StyledToolHeaderTitle, StyledToolHeaderTitle, StyledToolHeaderTitle, spacing.lg);
|
|
39
39
|
//# sourceMappingURL=ToolHeader.styles.js.map
|
|
@@ -3,14 +3,14 @@ import { Page } from '../PageLayout';
|
|
|
3
3
|
import { spacing } from '../_styles/spacing';
|
|
4
4
|
export var StyledTitleOuter = /*#__PURE__*/styled(Page.Title).withConfig({
|
|
5
5
|
displayName: "StyledTitleOuter",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-12_26_2__sc-wa8j06-0"
|
|
7
7
|
})(["align-items:center;display:flex;gap:", "px;"], spacing.md);
|
|
8
8
|
export var StyledTitleInner = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "StyledTitleInner",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-12_26_2__sc-wa8j06-1"
|
|
11
11
|
})(["width:100%;"]);
|
|
12
12
|
export var StyledToolLandingPageBodyContent = /*#__PURE__*/styled.div.withConfig({
|
|
13
13
|
displayName: "StyledToolLandingPageBodyContent",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_26_2__sc-wa8j06-2"
|
|
15
15
|
})(["> * + *{margin-top:", "px;}"], spacing.sm);
|
|
16
16
|
//# sourceMappingURL=ToolLandingPage.styles.js.map
|
|
@@ -6,10 +6,10 @@ import { getShadow } from '../_styles/shadows';
|
|
|
6
6
|
import { spacing } from '../_styles/spacing';
|
|
7
7
|
export var StyledTooltip = /*#__PURE__*/styled.span.withConfig({
|
|
8
8
|
displayName: "StyledTooltip",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-12_26_2__sc-1fawsi4-0"
|
|
10
10
|
})(["", " color:", ";max-width:200px;padding:", "px ", "px;position:relative;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;"], getTypographyIntent('small'), colors.white, spacing.sm, spacing.md);
|
|
11
11
|
export var StyledContainer = /*#__PURE__*/styled.span.withConfig({
|
|
12
12
|
displayName: "StyledContainer",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_26_2__sc-1fawsi4-1"
|
|
14
14
|
})(["display:inline-flex;background-color:", ";border-radius:", "px;", " & + [data-overlay-arrow]{background:", ";}"], colors.gray15, borderRadius.md, getShadow(3, 'bottom'), colors.gray15);
|
|
15
15
|
//# sourceMappingURL=Tooltip.styles.js.map
|
package/dist/Tree/Tree.styles.js
CHANGED
|
@@ -5,11 +5,11 @@ import { Typography } from '../Typography/Typography';
|
|
|
5
5
|
import { colors } from '../_styles/colors';
|
|
6
6
|
export var StyledFilenameCaption = /*#__PURE__*/styled(Typography).withConfig({
|
|
7
7
|
displayName: "StyledFilenameCaption",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_26_2__sc-2d45b5-0"
|
|
9
9
|
})(["display:flex;width:100%;"]);
|
|
10
10
|
export var StyledTree = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledTree",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_26_2__sc-2d45b5-1"
|
|
13
13
|
})(["width:100%;height:100%;min-height:36px;outline:none;overflow:auto;"]);
|
|
14
14
|
export var StyledTreeRowContainer = /*#__PURE__*/styled(Typography).withConfig({
|
|
15
15
|
shouldForwardProp: function shouldForwardProp(prop) {
|
|
@@ -17,7 +17,7 @@ export var StyledTreeRowContainer = /*#__PURE__*/styled(Typography).withConfig({
|
|
|
17
17
|
}
|
|
18
18
|
}).withConfig({
|
|
19
19
|
displayName: "StyledTreeRowContainer",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-12_26_2__sc-2d45b5-2"
|
|
21
21
|
})(["display:flex;align-items:center;height:36px;background:transparent;box-shadow:inset 4px 0px 0px transparent;cursor:default;outline:none;", " &:hover{background:", ";}", " ", ""], function (_ref) {
|
|
22
22
|
var isSelectable = _ref.isSelectable,
|
|
23
23
|
$isSelectable = _ref.$isSelectable;
|
|
@@ -35,30 +35,30 @@ export var StyledTreeRowContainer = /*#__PURE__*/styled(Typography).withConfig({
|
|
|
35
35
|
});
|
|
36
36
|
export var StyledTreeRowContent = /*#__PURE__*/styled.div.withConfig({
|
|
37
37
|
displayName: "StyledTreeRowContent",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-12_26_2__sc-2d45b5-3"
|
|
39
39
|
})(["display:flex;align-items:center;"]);
|
|
40
40
|
export var StyledTreeRowWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
41
41
|
displayName: "StyledTreeRowWrapper",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-12_26_2__sc-2d45b5-4"
|
|
43
43
|
})(["outline:none;"]);
|
|
44
44
|
var StyledIconBase = /*#__PURE__*/styled(Box).withConfig({
|
|
45
45
|
displayName: "StyledIconBase",
|
|
46
|
-
componentId: "core-
|
|
46
|
+
componentId: "core-12_26_2__sc-2d45b5-5"
|
|
47
47
|
})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;min-width:24px;min-height:24px;"]);
|
|
48
48
|
export var StyledChevronContainer = /*#__PURE__*/styled(StyledIconBase).withConfig({
|
|
49
49
|
displayName: "StyledChevronContainer",
|
|
50
|
-
componentId: "core-
|
|
50
|
+
componentId: "core-12_26_2__sc-2d45b5-6"
|
|
51
51
|
})([""]);
|
|
52
52
|
export var StyledIconContainer = /*#__PURE__*/styled(StyledIconBase).withConfig({
|
|
53
53
|
displayName: "StyledIconContainer",
|
|
54
|
-
componentId: "core-
|
|
54
|
+
componentId: "core-12_26_2__sc-2d45b5-7"
|
|
55
55
|
})(["color:", ";"], function (_ref4) {
|
|
56
56
|
var $isSelected = _ref4.$isSelected;
|
|
57
57
|
return $isSelected ? colors.blue45 : colors.gray40;
|
|
58
58
|
});
|
|
59
59
|
export var StyledChevron = /*#__PURE__*/styled(ChevronRight).withConfig({
|
|
60
60
|
displayName: "StyledChevron",
|
|
61
|
-
componentId: "core-
|
|
61
|
+
componentId: "core-12_26_2__sc-2d45b5-8"
|
|
62
62
|
})(["transform:rotate(", "deg);transition:transform 150ms ease-out;"], function (_ref5) {
|
|
63
63
|
var $isExpanded = _ref5.$isExpanded;
|
|
64
64
|
return $isExpanded ? 90 : 0;
|