@procore/core-react 11.24.4 → 11.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Avatar/Avatar.d.ts +1 -1
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.d.ts +7 -7
- package/dist/AvatarStack/AvatarStack.styles.d.ts +1 -1
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.styles.js +2 -2
- 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.d.ts +1 -1
- package/dist/Calendar/Calendar.styles.js +8 -8
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/Checkbox.js +26 -6
- package/dist/Checkbox/Checkbox.js.map +1 -1
- package/dist/Checkbox/Checkbox.styles.d.ts +6 -2
- package/dist/Checkbox/Checkbox.styles.js +21 -17
- package/dist/Checkbox/Checkbox.styles.js.map +1 -1
- package/dist/Checkbox/Checkbox.types.d.ts +10 -0
- package/dist/Checkbox/Checkbox.types.js.map +1 -1
- package/dist/ContactItem/ContactItem.styles.d.ts +1 -1
- package/dist/ContactItem/ContactItem.styles.js +5 -5
- package/dist/Content/Content.d.ts +3 -3
- package/dist/Content/Content.styles.js +2 -2
- package/dist/DateInput/DateInput.styles.js +6 -6
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.d.ts +2 -2
- package/dist/DropdownFlyout/DropdownFlyout.helpers.d.ts +1 -1
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.d.ts +2 -2
- 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.d.ts +1 -1
- package/dist/FileList/FileList.styles.js +4 -4
- package/dist/FileSelect/FileExplorer/FileExplorer.styles.js +9 -9
- package/dist/FileSelect/FileExplorer/FileExplorerSidebar.d.ts +2 -2
- 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.d.ts +2 -2
- 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 +2 -2
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.d.ts +72 -72
- package/dist/Form/Form.js +67 -35
- package/dist/Form/Form.js.map +1 -1
- package/dist/Form/Form.styles.d.ts +8 -4
- package/dist/Form/Form.styles.js +49 -35
- package/dist/Form/Form.styles.js.map +1 -1
- package/dist/Form/Form.types.d.ts +28 -1
- package/dist/Form/Form.types.js.map +1 -1
- package/dist/Form/FormFieldTooltip.d.ts +4 -0
- package/dist/Form/FormFieldTooltip.js +18 -0
- package/dist/Form/FormFieldTooltip.js.map +1 -0
- package/dist/Form/stories/util.d.ts +5 -3
- package/dist/Form/stories/util.js +61 -17
- package/dist/Form/stories/util.js.map +1 -1
- package/dist/Grid/Grid.d.ts +1 -1
- 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/Menu/Menu.d.ts +4 -4
- package/dist/MenuImperative/MenuImperative.d.ts +3 -3
- package/dist/MenuImperative/MenuImperative.styles.js +10 -10
- package/dist/Modal/ChildRegistry.context.d.ts +1 -1
- package/dist/Modal/Modal.d.ts +1 -1
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/Modal/storyHelpers.d.ts +2 -2
- package/dist/MultiSelect/MultiSelect.styles.js +6 -6
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/NextTile/NextTile.d.ts +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/OverlayTrigger/OverlayTrigger.d.ts +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.js +9 -3
- package/dist/OverlayTrigger/OverlayTrigger.js.map +1 -1
- package/dist/OverlayTrigger/OverlayTrigger.types.d.ts +2 -1
- package/dist/OverlayTrigger/OverlayTrigger.types.js.map +1 -1
- package/dist/OverlayTrigger/a11yPresets.d.ts +48 -48
- package/dist/PageLayout/PageLayout.d.ts +1 -1
- package/dist/PageLayout/PageLayout.styles.js +13 -13
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +2 -2
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.d.ts +1 -1
- 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 +6 -4
- package/dist/Required/Required.styles.js.map +1 -1
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.d.ts +2 -2
- package/dist/Section/Section.styles.js +6 -6
- package/dist/SegmentedController/SegmentedController.d.ts +2 -2
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.js +3 -1
- package/dist/Select/Select.js.map +1 -1
- package/dist/Select/Select.styles.js +7 -7
- package/dist/Select/Select.types.d.ts +3 -2
- package/dist/Select/Select.types.js.map +1 -1
- package/dist/Semantic/Semantic.styles.d.ts +1 -1
- package/dist/Semantic/Semantic.styles.js +8 -8
- package/dist/Sidebar/Sidebar.styles.js +7 -7
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SuperSelect/SuperSelect.components.d.ts +29 -29
- package/dist/SuperSelect/SuperSelect.d.ts +29 -29
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +37 -37
- package/dist/SuperSelect/useSuperSelect.d.ts +87 -87
- package/dist/Switch/Switch.styles.js +4 -4
- package/dist/Table/Table.styles.js +28 -28
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.d.ts +1 -1
- package/dist/Tabs/Tabs.styles.js +8 -8
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditor/TextEditor.d.ts +3 -3
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.d.ts +3 -3
- package/dist/Thumbnail/Thumbnail.hooks.d.ts +226 -210
- package/dist/Thumbnail/Thumbnail.styles.js +17 -17
- package/dist/Thumbnail/ThumbnailCaption.d.ts +2 -2
- package/dist/Thumbnail/ThumbnailDocumentIcon.d.ts +2 -2
- package/dist/Thumbnail/ThumbnailPreview.d.ts +2 -2
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.d.ts +2 -2
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.d.ts +1 -1
- 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.styles.js +3 -3
- package/dist/ToolHeader/ActionIcon.d.ts +2 -2
- package/dist/ToolHeader/ToolHeader.d.ts +2 -2
- package/dist/ToolHeader/ToolHeader.styles.js +6 -6
- package/dist/Tooltip/Tooltip.styles.js +2 -2
- package/dist/Tree/Tree.hooks.js +58 -36
- package/dist/Tree/Tree.hooks.js.map +1 -1
- package/dist/Tree/Tree.js +1 -1
- package/dist/Tree/Tree.js.map +1 -1
- package/dist/Tree/Tree.styles.js +9 -9
- package/dist/Tree/Tree.types.d.ts +7 -3
- package/dist/Tree/Tree.types.js.map +1 -1
- package/dist/Typeahead/Typeahead.styles.js +3 -3
- package/dist/Typography/Typography.colors.story.d.ts +2 -2
- package/dist/Typography/Typography.styles.js +1 -1
- package/dist/Typography/Typography.table.story.d.ts +2 -2
- package/dist/Typography/Typography.table.story.js +2 -2
- package/dist/_hooks/Analytics.d.ts +1 -1
- package/dist/_hooks/Anchor.d.ts +1 -1
- package/dist/_hooks/BoundingRect.d.ts +1 -1
- package/dist/_hooks/Buffer.d.ts +1 -1
- package/dist/_hooks/ClickOutside.d.ts +3 -2
- package/dist/_hooks/ClickOutside.js +8 -3
- package/dist/_hooks/ClickOutside.js.map +1 -1
- package/dist/_hooks/DateTime/DateTime.d.ts +1 -1
- package/dist/_hooks/DelayedToggle.d.ts +1 -1
- package/dist/_hooks/Event.d.ts +1 -1
- package/dist/_hooks/EventListener.js +14 -4
- package/dist/_hooks/EventListener.js.map +1 -1
- package/dist/_hooks/I18n.d.ts +387 -2
- package/dist/_hooks/InjectedScript.d.ts +1 -1
- package/dist/_hooks/ListNavigation.d.ts +1 -1
- package/dist/_hooks/TextEntry.d.ts +1 -1
- package/dist/_hooks/Timer.d.ts +1 -1
- package/dist/_hooks/Trigger.d.ts +1 -1
- package/dist/_hooks/Visibility.d.ts +1 -1
- package/dist/_hooks/ZIndex.d.ts +1 -1
- package/dist/_hooks/__tests__/EventListener.test.js +46 -0
- package/dist/_hooks/useSet.js +3 -3
- package/dist/_hooks/useSet.js.map +1 -1
- 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 +3 -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/ja-JP.json +360 -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/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +23 -23
- 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 +11 -11
- 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 +27 -7
- 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 +4 -4
- package/dist/_typedoc/Dropdown/Dropdown.types.json +37 -37
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +29 -29
- package/dist/_typedoc/Dropzone/Dropzone.types.json +41 -41
- package/dist/_typedoc/EmptyState/EmptyState.types.json +14 -14
- package/dist/_typedoc/FileList/FileList.types.json +9 -9
- package/dist/_typedoc/FileSelect/FileSelect.types.json +26 -26
- 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 +11 -11
- 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 +980 -700
- 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 +4 -4
- 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 +41 -41
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +31 -31
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +38 -38
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +40 -30
- package/dist/_typedoc/PageLayout/PageLayout.types.json +22 -22
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +27 -27
- package/dist/_typedoc/Pill/Pill.types.json +2 -2
- package/dist/_typedoc/PillSelect/PillSelect.types.json +56 -46
- package/dist/_typedoc/Popover/Popover.types.json +14 -14
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +6 -6
- 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 +14 -14
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +20 -20
- package/dist/_typedoc/Select/Select.types.json +75 -55
- package/dist/_typedoc/Slider/Slider.types.json +6 -6
- package/dist/_typedoc/Spinner/Spinner.types.json +9 -9
- package/dist/_typedoc/Switch/Switch.types.json +3 -3
- package/dist/_typedoc/Table/Table.types.json +106 -96
- package/dist/_typedoc/Tabs/Tabs.types.json +17 -17
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +16 -16
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +9 -9
- package/dist/_typedoc/TextEditorOutput/TextEditorOutput.types.json +4 -4
- 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 +30 -30
- package/dist/_typedoc/Toast/Toast.types.json +4 -4
- package/dist/_typedoc/ToggleButton/ToggleButton.types.json +3 -3
- package/dist/_typedoc/Token/Token.types.json +4 -4
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/Tooltip/Tooltip.types.json +13 -13
- package/dist/_typedoc/Tree/Tree.types.json +94 -94
- package/dist/_typedoc/Typeahead/Typeahead.types.json +2 -2
- package/dist/_typedoc/Typography/Typography.types.json +8 -8
- package/dist/_typedoc/_utils/types.json +3 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.styles.js","names":["styled","css","getTypographyIntent","colors","getFocus","spacing","dataQa","focused","StyledCheckboxContainer","label","withConfig","displayName","componentId","gray15","md","checkboxSize","StyledIndeterminate","white","StyledChecked","StyledFakeChecked","$disabled","arguments","length","undefined","$error","red85","blue85","red50","blue50","StyledFakeIndeterminate","gray85","StyledCheckboxLabel","span","_ref","children","gray70","StyledCheckboxInput","input","_ref2","$indeterminate","_ref3","_ref4","_ref5","_ref6","StyledFakeCheckboxLabel","_ref7","_ref8","$checked","gray50","StyledFakeCheckboxInput","div","_ref9","_ref10","_ref11","_ref12"],"sources":["../../src/Checkbox/Checkbox.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { getTypographyIntent } from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport const dataQa = {\n focused: 'core-checkbox-focused',\n}\n\nexport const StyledCheckboxContainer = styled.label`\n color: ${colors.gray15};\n display: block;\n position: relative;\n\n & + & {\n margin-top: ${spacing.md}px;\n }\n`\n\nconst checkboxSize = 20\n\nfunction StyledIndeterminate() {\n return css`\n background-color: ${colors.white};\n content: '';\n height: 2px;\n left: 5px;\n position: absolute;\n top: 9px;\n width: 10px;\n border: none;\n `\n}\n\nfunction StyledChecked() {\n return css`\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik00MzMuNzkyIDcwNGwtMTc3Ljc5Mi0xNzIuNDE2IDY4LjkyOC01OS45NjggMTA4Ljg2NCAxMDUuNiAyNjUuMjgtMjU3LjIxNiA2OC45MjggNTkuOTY4eiI+PC9wYXRoPjwvc3ZnPg==');\n content: '';\n border: none;\n height: 20px;\n width: 20px;\n top: 0;\n left: 0;\n position: absolute;\n `\n}\n\nfunction StyledFakeChecked($disabled = false, $error = false) {\n return css`\n ${StyledChecked()};\n\n ${() => {\n if ($disabled && $error) {\n return css`\n background-color: ${colors.red85};\n `\n }\n if ($disabled) {\n return css`\n background-color: ${colors.blue85};\n `\n }\n if ($error) {\n return css`\n background-color: ${colors.red50};\n `\n }\n return css`\n background-color: ${colors.blue50};\n `\n }}\n `\n}\n\nfunction StyledFakeIndeterminate($disabled = false, $error = false) {\n return css`\n border: none;\n\n &:before {\n ${StyledIndeterminate()};\n }\n\n ${() => {\n if ($disabled) {\n return css`\n background-color: ${colors.gray85};\n `\n }\n if ($error) {\n return css`\n background-color: ${colors.red50};\n `\n }\n return css`\n background-color: ${colors.blue50};\n `\n }}\n `\n}\n\nexport const StyledCheckboxLabel = styled.span`\n ${getTypographyIntent('body')}\n\n display: block;\n min-height: ${checkboxSize}px;\n padding-left: ${({ children }) =>\n children ? checkboxSize + spacing.md : checkboxSize}px;\n position: relative;\n user-select: none;\n\n &:before {\n background-color: ${colors.white};\n border-radius: 2px;\n border: 2px solid ${colors.gray70};\n content: '';\n display: inline-block;\n height: ${checkboxSize}px;\n width: ${checkboxSize}px;\n min-width: ${checkboxSize}px;\n top: 0;\n left: 0;\n position: absolute;\n }\n`\n\nexport const StyledCheckboxInput = styled.input<{\n $error: boolean\n $indeterminate: boolean\n}>`\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n\n &:disabled:checked + ${StyledCheckboxLabel}:before {\n background-color: ${colors.blue85};\n border-color: ${colors.blue85};\n }\n\n &:disabled + ${StyledCheckboxLabel}:before {\n background-color: ${({ $indeterminate }) =>\n $indeterminate ? colors.gray85 : colors.white};\n border-color: ${colors.gray85};\n }\n\n ${({ $error }) => {\n if ($error) {\n return css`\n & + ${StyledCheckboxLabel}:before {\n border-color: ${colors.red50};\n }\n\n &:disabled:checked + ${StyledCheckboxLabel}:before {\n background-color: ${colors.gray85};\n border-color: ${colors.gray85};\n }\n `\n }\n }}\n\n &:checked + ${StyledCheckboxLabel} {\n position: relative;\n\n &:before {\n background-color: ${({ $error }) =>\n $error ? colors.red50 : colors.blue50};\n border-color: ${({ $error }) => ($error ? colors.red50 : colors.blue50)};\n color: ${colors.white};\n }\n\n &:after {\n ${StyledChecked()}\n }\n }\n\n &:focus:not(:disabled),\n &[data-qa=${dataQa.focused}]:not(:disabled) {\n + ${StyledCheckboxLabel}:before {\n ${getFocus()}\n }\n }\n\n ${({ $indeterminate, $error }) => {\n if ($indeterminate) {\n return css`\n &\n + ${StyledCheckboxLabel}:before,\n &:checked\n + ${StyledCheckboxLabel}:before {\n background-color: ${$error ? colors.red50 : colors.blue50};\n border-color: ${$error ? colors.red50 : colors.blue50};\n color: ${colors.white};\n }\n\n &\n + ${StyledCheckboxLabel}:after,\n &:checked\n + ${StyledCheckboxLabel}:after {\n ${StyledIndeterminate()}\n }\n `\n }\n }}\n`\n\nexport const StyledFakeCheckboxLabel = styled.span<{\n $checked: boolean\n $disabled: boolean\n}>`\n ${getTypographyIntent('body')}\n\n display: block;\n min-height: ${checkboxSize}px;\n padding-left: ${({ children }) =>\n children ? checkboxSize + spacing.md : checkboxSize}px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n ${({ $checked, $disabled }) => {\n if ($checked && $disabled) {\n return css`\n color: ${colors.gray50};\n `\n }\n if ($disabled) {\n return css`\n color: ${colors.gray85};\n `\n }\n }}\n`\n\nexport const StyledFakeCheckboxInput = styled.div<{\n $checked: boolean\n $error: boolean\n $disabled: boolean\n $indeterminate: boolean\n}>`\n width: ${checkboxSize}px;\n height: ${checkboxSize}px;\n border-radius: 2px;\n border: 2px solid ${colors.gray70};\n position: absolute;\n\n ${({ $checked, $disabled, $error }) => {\n if ($checked) {\n return StyledFakeChecked($disabled, $error)\n }\n }}\n\n ${({ $indeterminate, $disabled, $error }) => {\n if ($indeterminate) {\n return StyledFakeIndeterminate($disabled, $error)\n }\n }}\n\n ${({ $error }) => {\n if ($error) {\n return css`\n border-color: ${colors.red50};\n `\n }\n }}\n\n ${({ $disabled }) => {\n if ($disabled) {\n return css`\n border-color: ${colors.gray85};\n `\n }\n }}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ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S,GAAAkC,MAAA,CAATlC,SAAS;EACZ,IAAIA,SAAS,EAAE;IACb,OAAOnB,GAAG,yBACQE,MAAM,CAAC2B,MAAM;EAEjC;AACF,CAAC,CACF"}
|
|
1
|
+
{"version":3,"file":"Checkbox.styles.js","names":["styled","css","getTypographyIntent","colors","getFocus","spacing","dataQa","focused","checkboxSize","StyledCheckboxContainer","div","withConfig","displayName","componentId","gray15","md","StyledIndeterminate","white","StyledChecked","StyledFakeChecked","$disabled","arguments","length","undefined","$error","red85","blue85","red50","blue50","StyledFakeIndeterminate","gray85","StyledCheckboxLabelWrapper","_ref","$hasLabel","StyledCheckboxLabel","label","gray70","StyledCheckboxInput","input","_ref2","$indeterminate","_ref3","_ref4","_ref5","_ref6","StyledFakeCheckboxLabel","span","_ref7","children","_ref8","$checked","gray50","StyledFakeCheckboxInput","_ref9","_ref10","_ref11","_ref12"],"sources":["../../src/Checkbox/Checkbox.styles.ts"],"sourcesContent":["import styled, { css } from 'styled-components'\nimport { getTypographyIntent } from '../Typography/Typography.styles'\nimport { colors } from '../_styles/colors'\nimport { getFocus } from '../_styles/mixins'\nimport { spacing } from '../_styles/spacing'\n\nexport const dataQa = {\n focused: 'core-checkbox-focused',\n}\n\nexport const checkboxSize = 20\n\nexport const StyledCheckboxContainer = styled.div`\n color: ${colors.gray15};\n display: block;\n position: relative;\n\n & + & {\n margin-top: ${spacing.md}px;\n }\n`\n\nfunction StyledIndeterminate() {\n return css`\n background-color: ${colors.white};\n content: '';\n height: 2px;\n left: 5px;\n position: absolute;\n top: 9px;\n width: 10px;\n border: none;\n `\n}\n\nfunction StyledChecked() {\n return css`\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik00MzMuNzkyIDcwNGwtMTc3Ljc5Mi0xNzIuNDE2IDY4LjkyOC01OS45NjggMTA4Ljg2NCAxMDUuNiAyNjUuMjgtMjU3LjIxNiA2OC45MjggNTkuOTY4eiI+PC9wYXRoPjwvc3ZnPg==');\n content: '';\n border: none;\n height: 20px;\n width: 20px;\n top: 0;\n left: 0;\n position: absolute;\n `\n}\n\nfunction StyledFakeChecked($disabled = false, $error = false) {\n return css`\n ${StyledChecked()};\n\n ${() => {\n if ($disabled && $error) {\n return css`\n background-color: ${colors.red85};\n `\n }\n if ($disabled) {\n return css`\n background-color: ${colors.blue85};\n `\n }\n if ($error) {\n return css`\n background-color: ${colors.red50};\n `\n }\n return css`\n background-color: ${colors.blue50};\n `\n }}\n `\n}\n\nfunction StyledFakeIndeterminate($disabled = false, $error = false) {\n return css`\n border: none;\n\n &:before {\n ${StyledIndeterminate()};\n }\n\n ${() => {\n if ($disabled) {\n return css`\n background-color: ${colors.gray85};\n `\n }\n if ($error) {\n return css`\n background-color: ${colors.red50};\n `\n }\n return css`\n background-color: ${colors.blue50};\n `\n }}\n `\n}\n\nexport const StyledCheckboxLabelWrapper = styled.div<{ $hasLabel: boolean }>`\n padding-left: ${({ $hasLabel }) =>\n $hasLabel ? checkboxSize + spacing.md : checkboxSize}px;\n min-height: ${checkboxSize}px;\n position: relative;\n ${getTypographyIntent('body')}\n`\n\nexport const StyledCheckboxLabel = styled.label`\n user-select: none;\n\n &:before {\n background-color: ${colors.white};\n border-radius: 2px;\n border: 2px solid ${colors.gray70};\n content: '';\n display: inline-block;\n height: ${checkboxSize}px;\n width: ${checkboxSize}px;\n min-width: ${checkboxSize}px;\n top: 0;\n left: 0;\n position: absolute;\n }\n`\n\nexport const StyledCheckboxInput = styled.input<{\n $error: boolean\n $indeterminate: boolean\n}>`\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n\n &:disabled:checked\n + ${StyledCheckboxLabelWrapper}\n > ${StyledCheckboxLabel}:before {\n background-color: ${colors.blue85};\n border-color: ${colors.blue85};\n }\n\n &:disabled + ${StyledCheckboxLabelWrapper} > ${StyledCheckboxLabel}:before {\n background-color: ${({ $indeterminate }) =>\n $indeterminate ? colors.gray85 : colors.white};\n border-color: ${colors.gray85};\n }\n\n ${({ $error }) => {\n if ($error) {\n return css`\n & + ${StyledCheckboxLabelWrapper} > ${StyledCheckboxLabel}:before {\n border-color: ${colors.red50};\n }\n\n &:disabled:checked\n + ${StyledCheckboxLabelWrapper}\n > ${StyledCheckboxLabel}:before {\n background-color: ${colors.gray85};\n border-color: ${colors.gray85};\n }\n `\n }\n }}\n\n &:checked + ${StyledCheckboxLabelWrapper} > ${StyledCheckboxLabel} {\n &:before {\n background-color: ${({ $error }) =>\n $error ? colors.red50 : colors.blue50};\n border-color: ${({ $error }) => ($error ? colors.red50 : colors.blue50)};\n color: ${colors.white};\n }\n\n &:after {\n ${StyledChecked()}\n }\n }\n\n &:focus:not(:disabled),\n &[data-qa=${dataQa.focused}]:not(:disabled) {\n + ${StyledCheckboxLabelWrapper} > ${StyledCheckboxLabel}:before {\n ${getFocus()}\n }\n }\n\n ${({ $indeterminate, $error }) => {\n if ($indeterminate) {\n return css`\n &\n + ${StyledCheckboxLabelWrapper}\n > ${StyledCheckboxLabel}:before,\n &:checked\n + ${StyledCheckboxLabelWrapper}\n > ${StyledCheckboxLabel}:before {\n background-color: ${$error ? colors.red50 : colors.blue50};\n border-color: ${$error ? colors.red50 : colors.blue50};\n color: ${colors.white};\n }\n\n &\n + ${StyledCheckboxLabelWrapper}\n > ${StyledCheckboxLabel}:after,\n &:checked\n + ${StyledCheckboxLabelWrapper}\n > ${StyledCheckboxLabel}:after {\n ${StyledIndeterminate()}\n }\n `\n }\n }}\n`\n\nexport const StyledFakeCheckboxLabel = styled.span<{\n $checked: boolean\n $disabled: boolean\n}>`\n ${getTypographyIntent('body')}\n\n display: block;\n min-height: ${checkboxSize}px;\n padding-left: ${({ children }) =>\n children ? checkboxSize + spacing.md : checkboxSize}px;\n position: relative;\n user-select: none;\n cursor: pointer;\n\n ${({ $checked, $disabled }) => {\n if ($checked && $disabled) {\n return css`\n color: ${colors.gray50};\n `\n }\n if ($disabled) {\n return css`\n color: ${colors.gray85};\n `\n }\n }}\n`\n\nexport const StyledFakeCheckboxInput = styled.div<{\n $checked: boolean\n $error: boolean\n $disabled: boolean\n $indeterminate: boolean\n}>`\n width: ${checkboxSize}px;\n height: ${checkboxSize}px;\n border-radius: 2px;\n border: 2px solid ${colors.gray70};\n position: absolute;\n\n ${({ $checked, $disabled, $error }) => {\n if ($checked) {\n return StyledFakeChecked($disabled, $error)\n }\n }}\n\n ${({ $indeterminate, $disabled, $error }) => {\n if ($indeterminate) {\n return StyledFakeIndeterminate($disabled, $error)\n }\n }}\n\n ${({ $error }) => {\n if ($error) {\n return css`\n border-color: ${colors.red50};\n `\n }\n }}\n\n ${({ $disabled }) => {\n if ($disabled) {\n return css`\n border-color: ${colors.gray85};\n `\n }\n }}\n`\n"],"mappings":"AAAA,OAAOA,MAAM,IAAIC,GAAG,QAAQ,mBAAmB;AAC/C,SAASC,mBAAmB,QAAQ,iCAAiC;AACrE,SAASC,MAAM,QAAQ,mBAAmB;AAC1C,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,QAAQ,oBAAoB;AAE5C,OAAO,IAAMC,MAAM,GAAG;EACpBC,OAAO,EAAE;AACX,CAAC;AAED,OAAO,IAAMC,YAAY,GAAG,EAAE;AAE9B,OAAO,IAAMC,uBAAuB,gBAAGT,MAAM,CAACU,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,6EACtCV,MAAM,CAACW,MAAM,EAKNT,OAAO,CAACU,EAAE,CAE3B;AAED,SAASC,mBAAmBA,CAAA,EAAG;EAC7B,OAAOf,GAAG,6GACYE,MAAM,CAACc,KAAK;AASpC;AAEA,SAASC,aAAaA,CAAA,EAAG;EACvB,OAAOjB,GAAG;AAUZ;AAEA,SAASkB,iBAAiBA,CAAA,EAAoC;EAAA,IAAnCC,SAAS,GAAA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
import type { TooltipProps } from '../Tooltip';
|
|
2
3
|
import type { InputAttributes, Props } from '../_utils/types';
|
|
3
4
|
export interface CheckboxProps extends Props, InputAttributes {
|
|
4
5
|
/**
|
|
@@ -31,4 +32,13 @@ export interface CheckboxProps extends Props, InputAttributes {
|
|
|
31
32
|
* @since 10.19.0
|
|
32
33
|
*/
|
|
33
34
|
indeterminate?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to show requiredMark
|
|
37
|
+
* @since 11.25.0
|
|
38
|
+
*/
|
|
39
|
+
requiredMark?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @since 11.25.0
|
|
42
|
+
*/
|
|
43
|
+
tooltip?: TooltipProps['overlay'];
|
|
34
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.types.js","names":[],"sources":["../../src/Checkbox/Checkbox.types.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { InputAttributes, Props } from '../_utils/types'\n\nexport interface CheckboxProps extends Props, InputAttributes {\n /**\n * Checked state of the checkbox\n * @since 10.19.0\n */\n checked?: boolean\n /**\n * The contents of the checkbox label\n * @since 10.19.0\n */\n children?: ReactNode\n /**\n * Additional classNames\n * @since 10.19.0\n */\n className?: string\n /**\n * Disabled state of the checkbox\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * Error state of the checkbox\n * @since 10.19.0\n */\n error?: boolean\n /**\n * Indeterminate state of the checkbox\n * @since 10.19.0\n */\n indeterminate?: boolean\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Checkbox.types.js","names":[],"sources":["../../src/Checkbox/Checkbox.types.ts"],"sourcesContent":["import type { ReactNode } from 'react'\nimport type { TooltipProps } from '../Tooltip'\nimport type { InputAttributes, Props } from '../_utils/types'\n\nexport interface CheckboxProps extends Props, InputAttributes {\n /**\n * Checked state of the checkbox\n * @since 10.19.0\n */\n checked?: boolean\n /**\n * The contents of the checkbox label\n * @since 10.19.0\n */\n children?: ReactNode\n /**\n * Additional classNames\n * @since 10.19.0\n */\n className?: string\n /**\n * Disabled state of the checkbox\n * @since 10.19.0\n */\n disabled?: boolean\n /**\n * Error state of the checkbox\n * @since 10.19.0\n */\n error?: boolean\n /**\n * Indeterminate state of the checkbox\n * @since 10.19.0\n */\n indeterminate?: boolean\n /**\n * Whether to show requiredMark\n * @since 11.25.0\n */\n requiredMark?: boolean\n /**\n * @since 11.25.0\n */\n tooltip?: TooltipProps['overlay']\n}\n"],"mappings":""}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const ContactItemAvatarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const ContactItemAvatar: import("styled-components").StyledComponent<(<Role extends import("../Avatar/Avatar.types").AvatarRoles>(props: import("..").AvatarProps<Role> | (import("../Avatar/Avatar.types").BaseAvatarProps & {
|
|
4
4
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
-
})) => JSX.Element) & {
|
|
5
|
+
})) => import("react").JSX.Element) & {
|
|
6
6
|
Icon: import("react").ForwardRefExoticComponent<import("../_utils/types").DivAttributes & import("..").AvatarIconProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
7
|
Label: import("react").ForwardRefExoticComponent<import("../_utils/types").DivAttributes & import("../Avatar/Avatar.types").AvatarLabelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
8
|
Portrait: import("react").ForwardRefExoticComponent<import("../_utils/types").DivAttributes & import("..").AvatarPortraitProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -7,23 +7,23 @@ import { getLineClamp } from '../_styles/mixins';
|
|
|
7
7
|
import { spacing } from '../_styles/spacing';
|
|
8
8
|
export var ContactItemAvatarWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "ContactItemAvatarWrapper",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_25_1__sc-1c4z9pn-0"
|
|
11
11
|
})(["display:inline-flex;align-self:flex-start;"]);
|
|
12
12
|
export var ContactItemAvatar = /*#__PURE__*/styled(Avatar).withConfig({
|
|
13
13
|
displayName: "ContactItemAvatar",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-11_25_1__sc-1c4z9pn-1"
|
|
15
15
|
})(["cursor:inherit;font-weight:", ";"], typographyWeights.bold);
|
|
16
16
|
export var ContactItemTextWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "ContactItemTextWrapper",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-11_25_1__sc-1c4z9pn-2"
|
|
19
19
|
})(["overflow:hidden;margin-left:", "px;"], spacing.sm);
|
|
20
20
|
export var ContactItemText = /*#__PURE__*/styled(Typography).withConfig({
|
|
21
21
|
displayName: "ContactItemText",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-11_25_1__sc-1c4z9pn-3"
|
|
23
23
|
})(["display:flex;", ""], getLineClamp());
|
|
24
24
|
export var ContactItemWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
25
25
|
displayName: "ContactItemWrapper",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-11_25_1__sc-1c4z9pn-4"
|
|
27
27
|
})(["display:flex;flex-direction:row;align-items:center;padding:", "px ", "px ", "px ", "px;", " ", " ", ""], spacing.sm, spacing.lg, spacing.sm, spacing.sm, function (_ref) {
|
|
28
28
|
var $disabled = _ref.$disabled,
|
|
29
29
|
$clickable = _ref.$clickable;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { Props } from '../_utils/types';
|
|
3
|
-
export declare function Actions(props: Props): JSX.Element;
|
|
4
|
-
export declare function Content(props: Props): JSX.Element;
|
|
3
|
+
export declare function Actions(props: Props): React.JSX.Element;
|
|
4
|
+
export declare function Content(props: Props): React.JSX.Element;
|
|
@@ -5,10 +5,10 @@ import { mediaIE11Hack } from '../_styles/media';
|
|
|
5
5
|
import { spacing } from '../_styles/spacing';
|
|
6
6
|
export var StyledContent = /*#__PURE__*/styled(Box).withConfig({
|
|
7
7
|
displayName: "StyledContent",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-11_25_1__sc-10y57gh-0"
|
|
9
9
|
})(["> * + *,> * + h1,> * + h2,> * + h3,> * + h4,> * + p,> * + ul,> * + ol{margin-top:", "px;}> ", " + *{margin-top:0;}> ", ",> ", " > ", ",> ", " > ", "{", "{min-height:0;margin-bottom:", "px;}&:last-child ", "{margin-bottom:0;}}"], spacing.lg, StyledFormRow, StyledFormRow, StyledForm, StyledFormRow, StyledFormikForm, StyledFormRow, StyledFormFieldBanner, spacing.md, StyledFormFieldBanner);
|
|
10
10
|
export var StyledActions = /*#__PURE__*/styled(Box).withConfig({
|
|
11
11
|
displayName: "StyledActions",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-11_25_1__sc-10y57gh-1"
|
|
13
13
|
})(["display:flex;justify-content:flex-end;gap:", "px;@media ", "{& > * + *{margin-left:", "px;}}"], spacing.sm, mediaIE11Hack, spacing.sm);
|
|
14
14
|
//# sourceMappingURL=Content.styles.js.map
|
|
@@ -14,15 +14,15 @@ var inputHeight = 36; // TODO one-off
|
|
|
14
14
|
var disabledCss = /*#__PURE__*/css(["background-color:", ";color:", ";border-width:1px;border-style:solid;border-color:", ";pointer-events:none;svg{color:", ";}"], colors.gray94, colors.gray45, colors.gray70, colors.gray45);
|
|
15
15
|
export var StyledCalendar = /*#__PURE__*/styled(Calendar).withConfig({
|
|
16
16
|
displayName: "StyledCalendar",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-11_25_1__sc-w10btf-0"
|
|
18
18
|
})(["color:", ";"], colors.gray45);
|
|
19
19
|
export var StyledDateSegmentsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "StyledDateSegmentsContainer",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-11_25_1__sc-w10btf-1"
|
|
22
22
|
})(["min-width:104px;display:flex;gap:", "px;"], spacing.xs);
|
|
23
23
|
export var StyledDateInputSegment = /*#__PURE__*/styled.div.withConfig({
|
|
24
24
|
displayName: "StyledDateInputSegment",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-11_25_1__sc-w10btf-2"
|
|
26
26
|
})(["", " outline:none;text-align:center;&:focus{background-color:", ";}&::selection{background-color:transparent;}&[data-placeholder='true']{color:", ";}"], getTypographyIntent('body'), colors.blue96, function (_ref) {
|
|
27
27
|
var disabled = _ref.disabled;
|
|
28
28
|
return disabled ? colors.gray70 : colors.gray45;
|
|
@@ -31,15 +31,15 @@ export var StyledDateInputDelimiter = /*#__PURE__*/styled.span.attrs(function (p
|
|
|
31
31
|
return _defineProperty({}, 'data-qa-table-visible', props.visible);
|
|
32
32
|
}).withConfig({
|
|
33
33
|
displayName: "StyledDateInputDelimiter",
|
|
34
|
-
componentId: "core-
|
|
34
|
+
componentId: "core-11_25_1__sc-w10btf-3"
|
|
35
35
|
})(["", " user-select:none;"], getTypographyIntent('body'));
|
|
36
36
|
export var StyledDateInputIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
37
37
|
displayName: "StyledDateInputIconContainer",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-11_25_1__sc-w10btf-4"
|
|
39
39
|
})(["display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;margin:0 0 0 ", "px;height:24px;width:24px;"], spacing.xs);
|
|
40
40
|
export var StyledDateInput = /*#__PURE__*/styled.div.withConfig({
|
|
41
41
|
displayName: "StyledDateInput",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-11_25_1__sc-w10btf-5"
|
|
43
43
|
})(["align-items:center;border-color:", ";border-radius:4px;border-style:solid;border-width:1px;display:inline-flex;flex-direction:row;height:", "px;justify-content:center;padding:0 ", "px 0 ", "px;&::placeholder{color:", ";}", " &:focus-within,&[data-qa=", "]{", ";}&:disabled{", "}", " ", ""], colors.gray70, inputHeight, spacing.xs, spacing.sm, colors.gray45, function (_ref3) {
|
|
44
44
|
var error = _ref3.error;
|
|
45
45
|
return !error && css(["&:hover,&[data-qa=", "]{border-color:", ";}"], dataQa.hovered, colors.gray45);
|
|
@@ -8,31 +8,31 @@ import { colors } from '../_styles/colors';
|
|
|
8
8
|
import { spacing } from '../_styles/spacing';
|
|
9
9
|
export var StyledDetailPage = /*#__PURE__*/styled.div.withConfig({
|
|
10
10
|
displayName: "StyledDetailPage",
|
|
11
|
-
componentId: "core-
|
|
11
|
+
componentId: "core-11_25_1__sc-cytnlo-0"
|
|
12
12
|
})(["background-color:", ";height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;"], colors.gray96);
|
|
13
13
|
export var StyledDetailPageBody = /*#__PURE__*/styled.div.withConfig({
|
|
14
14
|
displayName: "StyledDetailPageBody",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-11_25_1__sc-cytnlo-1"
|
|
16
16
|
})(["padding-bottom:", "px;> ", ":first-child,> ", "{margin-top:", "px;}"], spacing.xl, StyledPageBanner, StyledPageTitle, spacing.xl);
|
|
17
17
|
export var StyledDetailPageFooterNotation = /*#__PURE__*/styled.div.withConfig({
|
|
18
18
|
displayName: "StyledDetailPageFooterNotation",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-11_25_1__sc-cytnlo-2"
|
|
20
20
|
})(["flex-grow:1;z-index:1;"]);
|
|
21
21
|
export var StyledDetailPageFooter = /*#__PURE__*/styled(Page.Footer).withConfig({
|
|
22
22
|
displayName: "StyledDetailPageFooter",
|
|
23
|
-
componentId: "core-
|
|
23
|
+
componentId: "core-11_25_1__sc-cytnlo-3"
|
|
24
24
|
})(["display:flex;padding:", "px 0;background-color:", ";justify-content:center;"], spacing.lg, colors.white);
|
|
25
25
|
export var StyledDetailPageFooterActions = /*#__PURE__*/styled(Box).withConfig({
|
|
26
26
|
displayName: "StyledDetailPageFooterActions",
|
|
27
|
-
componentId: "core-
|
|
27
|
+
componentId: "core-11_25_1__sc-cytnlo-4"
|
|
28
28
|
})(["", ""], getActions());
|
|
29
29
|
var maxFooterContentWidth = 1920;
|
|
30
30
|
export var StyledDetailPageFooterContent = /*#__PURE__*/styled.div.withConfig({
|
|
31
31
|
displayName: "StyledDetailPageFooterContent",
|
|
32
|
-
componentId: "core-
|
|
32
|
+
componentId: "core-11_25_1__sc-cytnlo-5"
|
|
33
33
|
})(["width:100%;align-items:center;display:flex;justify-content:flex-end;padding:0 ", "px;max-width:", "px;"], spacing.xl, maxFooterContentWidth);
|
|
34
34
|
export var StyledDetailPageCard = /*#__PURE__*/styled(Card).withConfig({
|
|
35
35
|
displayName: "StyledDetailPageCard",
|
|
36
|
-
componentId: "core-
|
|
36
|
+
componentId: "core-11_25_1__sc-cytnlo-6"
|
|
37
37
|
})(["margin-top:", "px;width:100%;& > ", "{padding:", "px ", "px 0 ", "px;max-width:100%;&:empty{padding:0;}}& > ", " + ", " > ", "{border-top:0;}> .", ":first-child + .", ",> ", " + .", " + .", "{margin-top:", "px;}"], spacing.xl, StyledPageBanner, spacing.xl, spacing.xl, spacing.xl, StyledPageBanner, StyledSection, StyledSectionInner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), StyledPageBanner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), spacing.xxl * -1);
|
|
38
38
|
//# sourceMappingURL=DetailPage.styles.js.map
|
|
@@ -5,15 +5,15 @@ import { Card } from '../Card/Card';
|
|
|
5
5
|
import { Spinner } from '../Spinner/Spinner';
|
|
6
6
|
export var StyledDropdownMenu = /*#__PURE__*/styled(Card).withConfig({
|
|
7
7
|
displayName: "StyledDropdownMenu",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-11_25_1__sc-ufsy2q-0"
|
|
9
9
|
})(["display:flex;max-height:40vh;max-width:248px;min-width:inherit;"]);
|
|
10
10
|
export var StyledDropdownSpinner = /*#__PURE__*/styled(Spinner).withConfig({
|
|
11
11
|
displayName: "StyledDropdownSpinner",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-11_25_1__sc-ufsy2q-1"
|
|
13
13
|
})(["margin:0 6px;"]);
|
|
14
14
|
export var StyledDropdownButton = /*#__PURE__*/styled(Button).withConfig({
|
|
15
15
|
displayName: "StyledDropdownButton",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-11_25_1__sc-ufsy2q-2"
|
|
17
17
|
})(["pointer-events:", ";", ""], function (_ref) {
|
|
18
18
|
var disabled = _ref.disabled,
|
|
19
19
|
$loading = _ref.$loading;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DropdownFlyoutProps, FlyoutCaptionProps, FlyoutItemProps, FlyoutListProps } from './DropdownFlyout.types';
|
|
3
3
|
export declare const FlyoutCaption: React.ForwardRefExoticComponent<FlyoutCaptionProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
export declare function FlyoutItem({ option }: FlyoutItemProps): JSX.Element;
|
|
5
|
-
export declare function FlyoutList({ options, placement, referenceEl, overlayRef: overlayElRef, offset, }: FlyoutListProps): JSX.Element;
|
|
4
|
+
export declare function FlyoutItem({ option }: FlyoutItemProps): React.JSX.Element;
|
|
5
|
+
export declare function FlyoutList({ options, placement, referenceEl, overlayRef: overlayElRef, offset, }: FlyoutListProps): React.JSX.Element;
|
|
6
6
|
/**
|
|
7
7
|
|
|
8
8
|
The dropdown flyout allows for additional menu items to be nested within
|
|
@@ -25,7 +25,7 @@ export declare function useDropdownFlyout({ flyoutOptions, onClick: _onClick, on
|
|
|
25
25
|
setMouseOver: (isMouseOver: boolean) => void;
|
|
26
26
|
setFocused: (isFocused: boolean) => void;
|
|
27
27
|
};
|
|
28
|
-
export declare function defaultOptionRenderer(option: DropdownOption): JSX.Element;
|
|
28
|
+
export declare function defaultOptionRenderer(option: DropdownOption): React.JSX.Element;
|
|
29
29
|
export declare const DropdownFlyoutContext: React.Context<{
|
|
30
30
|
onClick: (option: FlyoutOption) => void;
|
|
31
31
|
expand: (option: FlyoutOption) => void;
|
|
@@ -6,18 +6,18 @@ import { getEllipsis } from '../_styles/mixins';
|
|
|
6
6
|
import { spacing } from '../_styles/spacing';
|
|
7
7
|
export var StyledDropdownFlyout = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "StyledDropdownFlyout",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-11_25_1__sc-1i79jsg-0"
|
|
10
10
|
})(["display:flex;flex-wrap:wrap;flex-direction:column;width:100%;max-height:855px;padding:", "px 0;"], spacing.sm);
|
|
11
11
|
export var StyledDropdownFlyoutItem = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
displayName: "StyledDropdownFlyoutItem",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-11_25_1__sc-1i79jsg-1"
|
|
14
14
|
})(["display:flex;justify-content:space-between;cursor:pointer;width:100%;padding:", "px ", "px;color:", ";", " &[data-highlighted='true'],&:hover{background-color:", ";}"], spacing.xs, spacing.lg, colors.gray20, getTypographyIntent('body'), colors.gray96);
|
|
15
15
|
export var StyledDropdownFlyoutLabel = /*#__PURE__*/styled.span.withConfig({
|
|
16
16
|
displayName: "StyledDropdownFlyoutLabel",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-11_25_1__sc-1i79jsg-2"
|
|
18
18
|
})(["", ""], getEllipsis());
|
|
19
19
|
export var StyledDropdownFlyoutExpandIcon = /*#__PURE__*/styled.span.withConfig({
|
|
20
20
|
displayName: "StyledDropdownFlyoutExpandIcon",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-11_25_1__sc-1i79jsg-3"
|
|
22
22
|
})(["position:relative;display:inline-flex;align-self:center;flex-shrink:0;margin-left:", "px;white-space:nowrap;", ""], spacing.lg, arrowRight(4, 'black'));
|
|
23
23
|
//# sourceMappingURL=DropdownFlyout.styles.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DivAttributes } from '../_utils/types';
|
|
3
3
|
import type { DropzoneContentProps, DropzoneErrorBannerProps, DropzoneProps, DropzoneRef, MultipleErrorsProps } from './Dropzone.types';
|
|
4
|
-
export declare function MultipleErrors(props: MultipleErrorsProps): JSX.Element;
|
|
4
|
+
export declare function MultipleErrors(props: MultipleErrorsProps): React.JSX.Element;
|
|
5
5
|
export declare const DropzoneErrorBanner: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<DropzoneErrorBannerProps & DivAttributes & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
6
6
|
export declare function DefaultMessage({ open, disabled, multiple, errorMessage, }: DropzoneContentProps & {
|
|
7
7
|
multiple: boolean;
|
|
8
|
-
}): JSX.Element;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
export declare const Dropzone: React.MemoExoticComponent<React.ForwardRefExoticComponent<DropzoneProps & React.RefAttributes<DropzoneRef>>>;
|
|
@@ -94,7 +94,7 @@ export function MultipleErrors(props) {
|
|
|
94
94
|
// make error banner accessible as a styled-components selector
|
|
95
95
|
export var DropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBannerBase).withConfig({
|
|
96
96
|
displayName: "DropzoneErrorBanner",
|
|
97
|
-
componentId: "core-
|
|
97
|
+
componentId: "core-11_25_1__sc-l4fojb-0"
|
|
98
98
|
})([""]);
|
|
99
99
|
function DropzoneContainer(_ref3) {
|
|
100
100
|
var active = _ref3.active,
|
|
@@ -9,15 +9,15 @@ import { colors } from '../_styles/colors';
|
|
|
9
9
|
import { spacing } from '../_styles/spacing';
|
|
10
10
|
export var StyledErrorBanner = /*#__PURE__*/styled(ErrorBannerBase).withConfig({
|
|
11
11
|
displayName: "StyledErrorBanner",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-11_25_1__sc-by95hy-0"
|
|
13
13
|
})(["margin-top:", "px;flex-shrink:0;"], spacing.lg);
|
|
14
14
|
export var StyledErrorBannerDetails = /*#__PURE__*/styled.ul.withConfig({
|
|
15
15
|
displayName: "StyledErrorBannerDetails",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-11_25_1__sc-by95hy-1"
|
|
17
17
|
})(["margin:", "px;padding:0;list-style-position:inside;list-style-type:disc;"], spacing.xs);
|
|
18
18
|
export var StyledDropzoneIcon = /*#__PURE__*/styled.div.withConfig({
|
|
19
19
|
displayName: "StyledDropzoneIcon",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-11_25_1__sc-by95hy-2"
|
|
21
21
|
})(["display:flex;justify-content:center;align-items:center;height:64px;color:", ";margin-bottom:", "px;transition:all 250ms ease-out;", " svg{width:auto;height:100%;}"], colors.gray45, spacing.lg, function (_ref) {
|
|
22
22
|
var disabled = _ref.disabled;
|
|
23
23
|
return disabled && css(["height:72px;margin-bottom:", "px;"], spacing.sm);
|
|
@@ -26,7 +26,7 @@ var activeDropzone = /*#__PURE__*/css(["outline:none;border:2px dashed ", ";back
|
|
|
26
26
|
var disabledDropzone = /*#__PURE__*/css(["color:", ";border:2px dashed ", ";background-color:", ";cursor:not-allowed;& ", "{color:", ";transform:none;}"], colors.gray70, colors.gray85, colors.gray98, StyledDropzoneIcon, colors.gray85);
|
|
27
27
|
export var StyledDropzoneContainer = /*#__PURE__*/styled.div.withConfig({
|
|
28
28
|
displayName: "StyledDropzoneContainer",
|
|
29
|
-
componentId: "core-
|
|
29
|
+
componentId: "core-11_25_1__sc-by95hy-3"
|
|
30
30
|
})(["", " display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;width:100%;height:100%;min-height:92px;padding:", "px;color:", ";border:2px dashed ", ";background-color:", ";border-radius:", "px;text-align:center;letter-spacing:0.25px;transition:all 250ms ease-out;cursor:grab;", " ", " ", " ", ""], getTypographyIntent('body'), spacing.lg, colors.gray40, colors.gray70, colors.gray96, borderRadius.md, function (_ref2) {
|
|
31
31
|
var disabled = _ref2.disabled;
|
|
32
32
|
return !disabled && css(["&:hover{", "}"], activeDropzone);
|
|
@@ -43,25 +43,25 @@ export var StyledDropzoneContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
43
43
|
});
|
|
44
44
|
export var StyledDropzoneMessage = /*#__PURE__*/styled.div.withConfig({
|
|
45
45
|
displayName: "StyledDropzoneMessage",
|
|
46
|
-
componentId: "core-
|
|
46
|
+
componentId: "core-11_25_1__sc-by95hy-4"
|
|
47
47
|
})(["user-select:none;"]);
|
|
48
48
|
export var StyledUploadButton = /*#__PURE__*/styled(Button).withConfig({
|
|
49
49
|
displayName: "StyledUploadButton",
|
|
50
|
-
componentId: "core-
|
|
50
|
+
componentId: "core-11_25_1__sc-by95hy-5"
|
|
51
51
|
})(["display:block;margin-left:auto;margin-right:auto;margin-bottom:", "px;"], spacing.sm);
|
|
52
52
|
export var StyledDropzoneCaption = /*#__PURE__*/styled.span.withConfig({
|
|
53
53
|
displayName: "StyledDropzoneCaption",
|
|
54
|
-
componentId: "core-
|
|
54
|
+
componentId: "core-11_25_1__sc-by95hy-6"
|
|
55
55
|
})(["color:", ";"], function (_ref6) {
|
|
56
56
|
var error = _ref6.error;
|
|
57
57
|
return error && colors.gray15;
|
|
58
58
|
});
|
|
59
59
|
export var StyledDropzoneWrapper = /*#__PURE__*/styled(Flex).withConfig({
|
|
60
60
|
displayName: "StyledDropzoneWrapper",
|
|
61
|
-
componentId: "core-
|
|
61
|
+
componentId: "core-11_25_1__sc-by95hy-7"
|
|
62
62
|
})(["height:100%;"]);
|
|
63
63
|
export var StyledDropzoneFocusDetector = /*#__PURE__*/styled(Box).withConfig({
|
|
64
64
|
displayName: "StyledDropzoneFocusDetector",
|
|
65
|
-
componentId: "core-
|
|
65
|
+
componentId: "core-11_25_1__sc-by95hy-8"
|
|
66
66
|
})(["height:100%;"]);
|
|
67
67
|
//# sourceMappingURL=Dropzone.styles.js.map
|
|
@@ -6,27 +6,27 @@ var emptyStateWidth = 440;
|
|
|
6
6
|
var emptyStateWidthCompact = 352;
|
|
7
7
|
export var StyledSvg = /*#__PURE__*/styled.svg.withConfig({
|
|
8
8
|
displayName: "StyledSvg",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-11_25_1__sc-1xaoo8n-0"
|
|
10
10
|
})(["width:200px;height:200px;"]);
|
|
11
11
|
export var StyledImage = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
displayName: "StyledImage",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-11_25_1__sc-1xaoo8n-1"
|
|
14
14
|
})([""]);
|
|
15
15
|
export var StyledTitle = /*#__PURE__*/styled.div.withConfig({
|
|
16
16
|
displayName: "StyledTitle",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-11_25_1__sc-1xaoo8n-2"
|
|
18
18
|
})(["margin-top:", "px;text-align:center;color:", ";width:", "px;", ""], spacing.xl, colors.gray15, emptyStateWidth, getTypographyIntent('h2'));
|
|
19
19
|
export var StyledDescription = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "StyledDescription",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-11_25_1__sc-1xaoo8n-3"
|
|
22
22
|
})(["margin-top:", "px;text-align:center;color:", ";width:", "px;", ""], spacing.lg, colors.gray45, emptyStateWidth, getTypographyIntent('h3'));
|
|
23
23
|
export var StyledActions = /*#__PURE__*/styled.div.withConfig({
|
|
24
24
|
displayName: "StyledActions",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-11_25_1__sc-1xaoo8n-4"
|
|
26
26
|
})(["margin-top:", "px;"], spacing.xl);
|
|
27
27
|
export var StyledEmptyState = /*#__PURE__*/styled.div.withConfig({
|
|
28
28
|
displayName: "StyledEmptyState",
|
|
29
|
-
componentId: "core-
|
|
29
|
+
componentId: "core-11_25_1__sc-1xaoo8n-5"
|
|
30
30
|
})(["display:flex;justify-content:center;align-items:center;flex-direction:column;margin-top:", "px;margin-bottom:", "px;", "{> img{max-width:200px;}}", "}"], function (_ref) {
|
|
31
31
|
var compact = _ref.compact;
|
|
32
32
|
return compact ? 0 : 96;
|
|
@@ -2,14 +2,14 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { getSmallIconBodyTextRules, StyledP } from '../Semantic/Semantic.styles';
|
|
3
3
|
export var StyledField = /*#__PURE__*/styled.div.withConfig({
|
|
4
4
|
displayName: "StyledField",
|
|
5
|
-
componentId: "core-
|
|
5
|
+
componentId: "core-11_25_1__sc-1q3pe6s-0"
|
|
6
6
|
})(["> ", "{", "}"], StyledP, getSmallIconBodyTextRules);
|
|
7
7
|
export var StyledFieldHeader = /*#__PURE__*/styled.div.withConfig({
|
|
8
8
|
displayName: "StyledFieldHeader",
|
|
9
|
-
componentId: "core-
|
|
9
|
+
componentId: "core-11_25_1__sc-1q3pe6s-1"
|
|
10
10
|
})(["", " > ", "{", "}"], getSmallIconBodyTextRules, StyledP, getSmallIconBodyTextRules);
|
|
11
11
|
export var StyledFieldFooter = /*#__PURE__*/styled.div.withConfig({
|
|
12
12
|
displayName: "StyledFieldFooter",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-11_25_1__sc-1q3pe6s-2"
|
|
14
14
|
})(["> ", "{", "}"], StyledP, getSmallIconBodyTextRules);
|
|
15
15
|
//# sourceMappingURL=Field.styles.js.map
|
|
@@ -14,4 +14,4 @@ export declare const defaultGetViewUrl: (item: FileListItemProps) => string | un
|
|
|
14
14
|
export declare const defaultGetDownloadUrl: (item: FileListItemProps) => string | undefined;
|
|
15
15
|
export declare const defaultGetName: (item: FileListItemProps) => string;
|
|
16
16
|
export declare const FileList: React.ForwardRefExoticComponent<FileListProps & DivAttributes & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
export declare function Item({ name, viewUrl, downloadUrl, ...props }: FileListItemProps): JSX.Element;
|
|
17
|
+
export declare function Item({ name, viewUrl, downloadUrl, ...props }: FileListItemProps): React.JSX.Element;
|
|
@@ -3,18 +3,18 @@ import { LinkButton } from '../Button/Button';
|
|
|
3
3
|
import { spacing } from '../_styles/spacing';
|
|
4
4
|
export var StyledFileListDownloadAll = /*#__PURE__*/styled(LinkButton).withConfig({
|
|
5
5
|
displayName: "StyledFileListDownloadAll",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-11_25_1__sc-7gltjc-0"
|
|
7
7
|
})(["margin-bottom:", "px;"], spacing.xs);
|
|
8
8
|
export var StyledFileListItem = /*#__PURE__*/styled.li.withConfig({
|
|
9
9
|
displayName: "StyledFileListItem",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_25_1__sc-7gltjc-1"
|
|
11
11
|
})(["display:flex;align-items:center;margin-bottom:", "px;word-break:break-word;&:last-child{margin-bottom:0;}"], spacing.xs);
|
|
12
12
|
export var StyledFileListItemTextInactive = /*#__PURE__*/styled.span.withConfig({
|
|
13
13
|
displayName: "StyledFileListItemTextInactive",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-11_25_1__sc-7gltjc-2"
|
|
15
15
|
})(["cursor:pointer;"]);
|
|
16
16
|
export var StyledFileListItemDownloadIcon = /*#__PURE__*/styled(LinkButton).withConfig({
|
|
17
17
|
displayName: "StyledFileListItemDownloadIcon",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-11_25_1__sc-7gltjc-3"
|
|
19
19
|
})(["margin-left:", "px;align-self:flex-start;"], spacing.sm);
|
|
20
20
|
//# sourceMappingURL=FileList.styles.js.map
|
|
@@ -12,40 +12,40 @@ var modalContainerMaxHeight = 996;
|
|
|
12
12
|
var modalContainerMargin = 80;
|
|
13
13
|
export var StyledModalOverlay = /*#__PURE__*/styled(Modal.Overlay).withConfig({
|
|
14
14
|
displayName: "StyledModalOverlay",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-11_25_1__sc-343gts-0"
|
|
16
16
|
})(["opacity:0;pointer-events:none;transition:opacity 0.3s linear;visibility:hidden;", ""], function (props) {
|
|
17
17
|
return props.$open && "\n opacity: 1;\n pointer-events: all;\n visibility: visible;\n ";
|
|
18
18
|
});
|
|
19
19
|
export var StyledModalContainer = /*#__PURE__*/styled(Modal.Container).withConfig({
|
|
20
20
|
displayName: "StyledModalContainer",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-11_25_1__sc-343gts-1"
|
|
22
22
|
})(["width:calc(100% - ", "px);height:calc(100% - ", "px);top:calc(50vh - ", "px);left:calc(50vw - ", "px);margin:", "px;min-width:", "px;min-height:", "px;max-width:", "px;max-height:", "px;"], modalContainerMargin * 2, modalContainerMargin * 2, modalContainerMargin, modalContainerMargin, modalContainerMargin, modalContainerMinWidth, modalContainerMinHeight, modalContainerMaxWidth, modalContainerMaxHeight);
|
|
23
23
|
export var StyledModalBody = /*#__PURE__*/styled(Modal.Body).withConfig({
|
|
24
24
|
displayName: "StyledModalBody",
|
|
25
|
-
componentId: "core-
|
|
25
|
+
componentId: "core-11_25_1__sc-343gts-2"
|
|
26
26
|
})(["min-height:", "px;height:100%;margin:0;max-width:none;padding:0;border-bottom:1px solid ", ";"], modalBodyMinHeight, colors.gray85);
|
|
27
27
|
export var StyledModalInnerBody = /*#__PURE__*/styled.div.withConfig({
|
|
28
28
|
displayName: "StyledModalInnerBody",
|
|
29
|
-
componentId: "core-
|
|
29
|
+
componentId: "core-11_25_1__sc-343gts-3"
|
|
30
30
|
})(["display:flex;flex-direction:row;height:100%;overflow:hidden;"]);
|
|
31
31
|
export var StyledModalHeader = /*#__PURE__*/styled(Modal.Header).withConfig({
|
|
32
32
|
displayName: "StyledModalHeader",
|
|
33
|
-
componentId: "core-
|
|
33
|
+
componentId: "core-11_25_1__sc-343gts-4"
|
|
34
34
|
})(["border-bottom:1px solid ", ";"], colors.gray85);
|
|
35
35
|
export var StyledModalContent = /*#__PURE__*/styled.div.withConfig({
|
|
36
36
|
displayName: "StyledModalContent",
|
|
37
|
-
componentId: "core-
|
|
37
|
+
componentId: "core-11_25_1__sc-343gts-5"
|
|
38
38
|
})(["display:flex;width:100%;height:100%;overflow-y:auto;outline:none;"]);
|
|
39
39
|
export var StyledSource = /*#__PURE__*/styled.div.withConfig({
|
|
40
40
|
displayName: "StyledSource",
|
|
41
|
-
componentId: "core-
|
|
41
|
+
componentId: "core-11_25_1__sc-343gts-6"
|
|
42
42
|
})(["width:100%;height:100%;"]);
|
|
43
43
|
export var StyledAttachButton = /*#__PURE__*/styled.div.withConfig({
|
|
44
44
|
displayName: "StyledAttachButton",
|
|
45
|
-
componentId: "core-
|
|
45
|
+
componentId: "core-11_25_1__sc-343gts-7"
|
|
46
46
|
})(["margin-left:", "px;"], spacing.md);
|
|
47
47
|
export var StyledFileTreeSpinner = /*#__PURE__*/styled.div.withConfig({
|
|
48
48
|
displayName: "StyledFileTreeSpinner",
|
|
49
|
-
componentId: "core-
|
|
49
|
+
componentId: "core-11_25_1__sc-343gts-8"
|
|
50
50
|
})(["display:flex;align-items:center;justify-content:center;height:100%;"]);
|
|
51
51
|
//# sourceMappingURL=FileExplorer.styles.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import type { FileExplorerSidebarProps } from './FileExplorer.types';
|
|
3
|
-
export declare function FileExplorerSidebar({ value: selectedSource, onChange, sources, isOpen, }: FileExplorerSidebarProps): JSX.Element;
|
|
3
|
+
export declare function FileExplorerSidebar({ value: selectedSource, onChange, sources, isOpen, }: FileExplorerSidebarProps): React.JSX.Element;
|
|
@@ -3,14 +3,14 @@ import { colors } from '../../_styles/colors';
|
|
|
3
3
|
import { SourceItem } from '../SourceItem/SourceItem';
|
|
4
4
|
export var StyledSidebar = /*#__PURE__*/styled.div.withConfig({
|
|
5
5
|
displayName: "StyledSidebar",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-11_25_1__sc-s03uiv-0"
|
|
7
7
|
})(["display:flex;flex-shrink:0;width:300px;border-right:1px solid ", ";"], colors.gray85);
|
|
8
8
|
export var StyledNavigation = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "StyledNavigation",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_25_1__sc-s03uiv-1"
|
|
11
11
|
})(["display:flex;flex-direction:column;width:100%;&:focus{outline:none;}"]);
|
|
12
12
|
export var StyledSourceItem = /*#__PURE__*/styled(SourceItem).withConfig({
|
|
13
13
|
displayName: "StyledSourceItem",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-11_25_1__sc-s03uiv-2"
|
|
15
15
|
})(["width:100%;padding-left:10px;&:focus{padding-left:9px;}"]);
|
|
16
16
|
//# sourceMappingURL=FileExplorerSidebar.styles.js.map
|
|
@@ -3,10 +3,10 @@ import { spacing } from '../_styles/spacing';
|
|
|
3
3
|
import { FileTokenList } from './FileTokenList';
|
|
4
4
|
export var StyledFileTokenList = /*#__PURE__*/styled(FileTokenList).withConfig({
|
|
5
5
|
displayName: "StyledFileTokenList",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-11_25_1__sc-1r3srjk-0"
|
|
7
7
|
})(["margin-top:", "px;"], spacing.md);
|
|
8
8
|
export var StyledFileSelect = /*#__PURE__*/styled.div.withConfig({
|
|
9
9
|
displayName: "StyledFileSelect",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_25_1__sc-1r3srjk-1"
|
|
11
11
|
})(["display:flex;flex-direction:column;"]);
|
|
12
12
|
//# sourceMappingURL=FileSelect.styles.js.map
|
|
@@ -5,20 +5,20 @@ import { spacing } from '../../_styles/spacing';
|
|
|
5
5
|
export var dropzoneContainerAttr = 'data-dropzone-container';
|
|
6
6
|
export var StyledDropzone = /*#__PURE__*/styled(Dropzone).withConfig({
|
|
7
7
|
displayName: "StyledDropzone",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-11_25_1__sc-ueh7d7-0"
|
|
9
9
|
})(["", ""], function (_ref) {
|
|
10
10
|
var hidden = _ref.hidden;
|
|
11
11
|
return hidden && "\n [".concat(dropzoneContainerAttr, "] {\n align-self: flex-start;\n margin-bottom: ").concat(spacing.xs, "px;\n\n &,\n &:hover {\n width: auto;\n min-height: auto;\n border: none;\n padding: 0;\n background: transparent;\n cursor: default;\n }\n }\n \n ");
|
|
12
12
|
});
|
|
13
13
|
export var StyledDropzoneMessage = /*#__PURE__*/styled.span.withConfig({
|
|
14
14
|
displayName: "StyledDropzoneMessage",
|
|
15
|
-
componentId: "core-
|
|
15
|
+
componentId: "core-11_25_1__sc-ueh7d7-1"
|
|
16
16
|
})(["", ""], function (_ref2) {
|
|
17
17
|
var error = _ref2.error;
|
|
18
18
|
return error && "\n color: ".concat(colors.gray15, ";\n ");
|
|
19
19
|
});
|
|
20
20
|
export var StyledUploadButtonWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
21
21
|
displayName: "StyledUploadButtonWrapper",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-11_25_1__sc-ueh7d7-2"
|
|
23
23
|
})(["display:block;margin-left:auto;margin-right:auto;margin-bottom:", "px;"], spacing.sm);
|
|
24
24
|
//# sourceMappingURL=FileSelectDropzone.styles.js.map
|
|
@@ -3,10 +3,10 @@ import { FileToken } from '../../FileToken/FileToken';
|
|
|
3
3
|
import { spacing } from '../../_styles/spacing';
|
|
4
4
|
export var StyledTokenList = /*#__PURE__*/styled.div.withConfig({
|
|
5
5
|
displayName: "StyledTokenList",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-11_25_1__sc-u9tli5-0"
|
|
7
7
|
})(["display:flex;flex-wrap:wrap;"]);
|
|
8
8
|
export var StyledFileToken = /*#__PURE__*/styled(FileToken).withConfig({
|
|
9
9
|
displayName: "StyledFileToken",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-11_25_1__sc-u9tli5-1"
|
|
11
11
|
})(["margin-bottom:", "px;margin-right:", "px;"], spacing.sm, spacing.sm);
|
|
12
12
|
//# sourceMappingURL=FileTokenList.styles.js.map
|