@procore/core-react 12.48.0 → 12.48.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 +18 -0
- package/dist/AnchorNavigation/AnchorNavigation.styles.js +4 -4
- package/dist/Avatar/Avatar.styles.js +5 -5
- package/dist/AvatarStack/AvatarStack.styles.js +7 -7
- package/dist/Badge/Badge.d.ts +19 -0
- package/dist/Badge/Badge.js +20 -0
- package/dist/Badge/Badge.js.map +1 -1
- 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 +9 -9
- package/dist/Card/Card.styles.js +1 -1
- package/dist/Checkbox/Checkbox.styles.js +7 -7
- package/dist/Checkbox/Checkbox.styles.js.map +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/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.js +4 -0
- package/dist/FileList/FileList.js.map +1 -1
- package/dist/FileList/FileList.styles.js +3 -3
- package/dist/FileList/storybook/fileListMockData.js +14 -14
- package/dist/FileList/storybook/fileListMockData.js.map +1 -1
- 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 +6 -6
- package/dist/FilterToken/FilterToken.styles.js +5 -5
- package/dist/FlexList/FlexList.styles.js +1 -1
- package/dist/Form/Form.styles.js +13 -13
- 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.d.ts +25 -1
- package/dist/ListPage/ListPage.js +25 -1
- package/dist/ListPage/ListPage.js.map +1 -1
- package/dist/ListPage/ListPage.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/MenuImperative/MenuImperative.styles.js +11 -11
- package/dist/Modal/Modal.styles.js +13 -13
- package/dist/MultiSelect/MultiSelect.styles.js +8 -8
- package/dist/NextMenu/NextMenu.styles.js +3 -3
- package/dist/NextTile/NextTile.styles.js +5 -5
- 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.js +2 -1
- package/dist/Pagination/Pagination.js.map +1 -1
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Pagination/PaginationSelect.js +15 -2
- package/dist/Pagination/PaginationSelect.js.map +1 -1
- 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.js +2 -3
- package/dist/Popover/Popover.js.map +1 -1
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Popover/Popover.types.d.ts +4 -3
- package/dist/Popover/Popover.types.js.map +1 -1
- 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 +8 -8
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +8 -8
- package/dist/Spinner/Spinner.styles.js.map +1 -1
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +40 -40
- package/dist/Switch/Switch.styles.js +5 -5
- package/dist/Switch/Switch.styles.js.map +1 -1
- package/dist/Table/Table.styles.js +29 -29
- package/dist/TableShelf/TableShelf.styles.js +5 -5
- package/dist/Tabs/Tabs.styles.js +16 -16
- package/dist/Tearsheet/Tearsheet.styles.js +5 -5
- package/dist/TextArea/TextArea.styles.js +1 -1
- package/dist/TextEditorOutput/TextEditorOutput.styles.js +1 -1
- package/dist/Thumbnail/Thumbnail.styles.js +21 -21
- 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 +5 -3
- package/dist/ToggleButton/ToggleButton.styles.js.map +1 -1
- package/dist/Token/Token.styles.js +5 -5
- package/dist/ToolHeader/ToolHeader.d.ts +34 -5
- package/dist/ToolHeader/ToolHeader.js +34 -5
- package/dist/ToolHeader/ToolHeader.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 +3 -3
- package/dist/Tree/Tree.js +1 -1
- package/dist/Tree/Tree.styles.js +10 -10
- 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/_storyHelpers_/components/Deprecation.styles.js +1 -1
- package/dist/_storyHelpers_/components/StoryGrid.js +3 -3
- package/dist/_typedoc/AnchorNavigation/AnchorNavigation.types.json +4 -4
- package/dist/_typedoc/Avatar/Avatar.types.json +20 -20
- package/dist/_typedoc/AvatarStack/AvatarStack.types.json +25 -25
- package/dist/_typedoc/Badge/Badge.json +9 -0
- package/dist/_typedoc/Badge/Badge.types.json +6 -6
- package/dist/_typedoc/Banner/Banner.types.json +15 -15
- 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 +14 -14
- 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 +14 -14
- package/dist/_typedoc/DetailPage/DetailPage.types.json +5 -5
- package/dist/_typedoc/Dropdown/Dropdown.types.json +38 -38
- package/dist/_typedoc/DropdownFlyout/DropdownFlyout.types.json +31 -31
- package/dist/_typedoc/Dropzone/Dropzone.types.json +44 -44
- package/dist/_typedoc/EmptyState/EmptyState.types.json +18 -18
- 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 +762 -762
- 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 +54 -54
- package/dist/_typedoc/Input/Input.types.json +2 -2
- package/dist/_typedoc/Link/Link.types.json +1 -1
- package/dist/_typedoc/ListPage/ListPage.json +2 -2
- 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 +84 -84
- package/dist/_typedoc/Modal/Modal.types.json +48 -48
- package/dist/_typedoc/MultiSelect/MultiSelect.types.json +33 -33
- package/dist/_typedoc/NextTile/NextTile.types.json +33 -33
- package/dist/_typedoc/Notation/Notation.types.json +4 -4
- package/dist/_typedoc/NumberInput/NumberInput.types.json +48 -48
- package/dist/_typedoc/OverlayTrigger/OverlayTrigger.types.json +33 -33
- package/dist/_typedoc/PageLayout/PageLayout.types.json +28 -28
- package/dist/_typedoc/Pagination/Pagination.types.json +7 -7
- package/dist/_typedoc/Panel/Panel.types.json +28 -28
- 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 +19 -19
- 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 +67 -67
- 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 +105 -105
- package/dist/_typedoc/Tabs/Tabs.types.json +21 -21
- package/dist/_typedoc/Tearsheet/Tearsheet.types.json +17 -17
- package/dist/_typedoc/TextArea/TextArea.types.json +3 -3
- package/dist/_typedoc/TextEditor/TextEditor.types.json +11 -11
- 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 +43 -43
- package/dist/_typedoc/TieredSelect/TieredSelect.types.json +29 -29
- 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 +7 -7
- package/dist/_typedoc/ToolHeader/ToolHeader.json +2 -2
- package/dist/_typedoc/ToolHeader/ToolHeader.types.json +10 -10
- package/dist/_typedoc/ToolLandingPage/ToolLandingPage.types.json +8 -8
- package/dist/_typedoc/Tooltip/Tooltip.types.json +15 -15
- package/dist/_typedoc/Tree/Tree.types.json +88 -88
- 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/dist/_typedoc/a11y-tips.json +1 -1
- package/dist/_typedoc/deprecations.json +1 -1
- package/dist/_utils/propsTypedoc.d.ts +1 -0
- package/dist/_utils/propsTypedoc.js +1 -0
- package/dist/_utils/propsTypedoc.js.map +1 -1
- package/package.json +2 -2
|
@@ -10,15 +10,15 @@ var inputHeight = 36; // TODO one-off
|
|
|
10
10
|
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.gray50, colors.gray45);
|
|
11
11
|
export var StyledCalendar = /*#__PURE__*/styled(Calendar).withConfig({
|
|
12
12
|
displayName: "StyledCalendar",
|
|
13
|
-
componentId: "core-
|
|
13
|
+
componentId: "core-12_48_2__sc-w10btf-0"
|
|
14
14
|
})(["color:", ";"], colors.gray45);
|
|
15
15
|
export var StyledDateSegmentsContainer = /*#__PURE__*/styled.div.withConfig({
|
|
16
16
|
displayName: "StyledDateSegmentsContainer",
|
|
17
|
-
componentId: "core-
|
|
17
|
+
componentId: "core-12_48_2__sc-w10btf-1"
|
|
18
18
|
})(["min-width:104px;display:flex;gap:", "px;"], spacing.xs);
|
|
19
19
|
export var StyledDateInputSegment = /*#__PURE__*/styled.div.withConfig({
|
|
20
20
|
displayName: "StyledDateInputSegment",
|
|
21
|
-
componentId: "core-
|
|
21
|
+
componentId: "core-12_48_2__sc-w10btf-2"
|
|
22
22
|
})(["", " outline:none;text-align:center;&:focus{background-color:", ";}&::selection{background-color:transparent;}&[data-placeholder='true']{color:", ";}"], getTypographyIntent('body'), colors.blue96, function (_ref) {
|
|
23
23
|
var $disabled = _ref.$disabled;
|
|
24
24
|
return $disabled ? colors.gray70 : colors.gray45;
|
|
@@ -29,15 +29,15 @@ export var StyledDateInputDelimiter = /*#__PURE__*/styled.span.attrs(function (p
|
|
|
29
29
|
};
|
|
30
30
|
}).withConfig({
|
|
31
31
|
displayName: "StyledDateInputDelimiter",
|
|
32
|
-
componentId: "core-
|
|
32
|
+
componentId: "core-12_48_2__sc-w10btf-3"
|
|
33
33
|
})(["", " user-select:none;"], getTypographyIntent('body'));
|
|
34
34
|
export var StyledDateInputIconContainer = /*#__PURE__*/styled.div.withConfig({
|
|
35
35
|
displayName: "StyledDateInputIconContainer",
|
|
36
|
-
componentId: "core-
|
|
36
|
+
componentId: "core-12_48_2__sc-w10btf-4"
|
|
37
37
|
})(["display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;margin:0 0 0 ", "px;height:24px;width:24px;"], spacing.xs);
|
|
38
38
|
export var StyledDateInput = /*#__PURE__*/styled.div.withConfig({
|
|
39
39
|
displayName: "StyledDateInput",
|
|
40
|
-
componentId: "core-
|
|
40
|
+
componentId: "core-12_48_2__sc-w10btf-5"
|
|
41
41
|
})(["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.gray50, inputHeight, spacing.xs, spacing.sm, colors.gray45, function (_ref2) {
|
|
42
42
|
var $error = _ref2.$error;
|
|
43
43
|
return !$error && css(["&:hover,&[data-qa=", "]{border-color:", ";}"], dataQa.hovered, colors.gray20);
|
|
@@ -8,32 +8,32 @@ 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-12_48_2__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-12_48_2__sc-cytnlo-1"
|
|
16
16
|
})(["padding-bottom:", "px;"], spacing.xl);
|
|
17
17
|
export var StyledDetailPageFooterNotation = /*#__PURE__*/styled.div.withConfig({
|
|
18
18
|
displayName: "StyledDetailPageFooterNotation",
|
|
19
|
-
componentId: "core-
|
|
19
|
+
componentId: "core-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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
|
var detailPageCardBorderRadius = 8;
|
|
35
35
|
export var StyledDetailPageCard = /*#__PURE__*/styled(Card).withConfig({
|
|
36
36
|
displayName: "StyledDetailPageCard",
|
|
37
|
-
componentId: "core-
|
|
37
|
+
componentId: "core-12_48_2__sc-cytnlo-6"
|
|
38
38
|
})(["width:100%;border-radius:", "px;margin-top:", "px;margin-bottom:", "px;& + &{margin-top:", "px;}&:first-child{margin-top:0;}&:last-child{margin-bottom:", "px;}& > ", "{padding:", "px ", "px 0 ", "px;max-width:100%;&:empty{padding:0;}}& > ", " + ", " > ", "{border-top:0;}> .", ":first-child + .", ",> ", " + .", " + .", "{margin-top:", "px;}"], detailPageCardBorderRadius, spacing.lg, spacing.sm, spacing.sm, spacing.lg, StyledPageBanner, spacing.lg, spacing.lg, spacing.lg, StyledPageBanner, StyledSection, StyledSectionInner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), StyledPageBanner, sectionClassnames.levelAnonymous, sectionClassnames.level(2), spacing.xxl * -1);
|
|
39
39
|
//# 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-12_48_2__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-12_48_2__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-12_48_2__sc-ufsy2q-2"
|
|
17
17
|
})(["pointer-events:", ";", ""], function (_ref) {
|
|
18
18
|
var disabled = _ref.disabled,
|
|
19
19
|
$loading = _ref.$loading;
|
|
@@ -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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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
|
|
@@ -95,7 +95,7 @@ export function MultipleErrors(props) {
|
|
|
95
95
|
// make error banner accessible as a styled-components selector
|
|
96
96
|
export var DropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBannerBase).withConfig({
|
|
97
97
|
displayName: "DropzoneErrorBanner",
|
|
98
|
-
componentId: "core-
|
|
98
|
+
componentId: "core-12_48_2__sc-l4fojb-0"
|
|
99
99
|
})([""]);
|
|
100
100
|
function DropzoneContainer(_ref2) {
|
|
101
101
|
var active = _ref2.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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__sc-by95hy-8"
|
|
66
66
|
})(["height:100%;"]);
|
|
67
67
|
//# sourceMappingURL=Dropzone.styles.js.map
|
|
@@ -5,27 +5,27 @@ import { spacing } from '../_styles/spacing';
|
|
|
5
5
|
var emptyStateWidth = 312;
|
|
6
6
|
export var StyledSvg = /*#__PURE__*/styled.svg.withConfig({
|
|
7
7
|
displayName: "StyledSvg",
|
|
8
|
-
componentId: "core-
|
|
8
|
+
componentId: "core-12_48_2__sc-1xaoo8n-0"
|
|
9
9
|
})(["width:200px;height:200px;"]);
|
|
10
10
|
export var StyledImage = /*#__PURE__*/styled.div.withConfig({
|
|
11
11
|
displayName: "StyledImage",
|
|
12
|
-
componentId: "core-
|
|
12
|
+
componentId: "core-12_48_2__sc-1xaoo8n-1"
|
|
13
13
|
})([""]);
|
|
14
14
|
export var StyledTitle = /*#__PURE__*/styled.p.withConfig({
|
|
15
15
|
displayName: "StyledTitle",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_48_2__sc-1xaoo8n-2"
|
|
17
17
|
})(["color:", ";max-width:", "px;width:100%;margin:0;", ""], colors.gray15, emptyStateWidth, getTypographyIntent('h2'));
|
|
18
18
|
export var StyledDescription = /*#__PURE__*/styled.p.withConfig({
|
|
19
19
|
displayName: "StyledDescription",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-12_48_2__sc-1xaoo8n-3"
|
|
21
21
|
})(["margin-top:", "px;margin-bottom:0;color:", ";max-width:", "px;width:100%;", ""], spacing.lg, colors.gray45, emptyStateWidth, getTypographyIntent('body'));
|
|
22
22
|
export var StyledActions = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledActions",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_48_2__sc-1xaoo8n-4"
|
|
25
25
|
})(["margin-top:", "px;"], spacing.xl);
|
|
26
26
|
export var StyledEmptyState = /*#__PURE__*/styled.div.withConfig({
|
|
27
27
|
displayName: "StyledEmptyState",
|
|
28
|
-
componentId: "core-
|
|
28
|
+
componentId: "core-12_48_2__sc-1xaoo8n-5"
|
|
29
29
|
})(["display:flex;justify-content:center;align-items:", ";gap:", "px;flex-direction:", ";margin-top:", "px;margin-bottom:", "px;", "{> img{max-width:200px;}}", " ", "}"], function (_ref) {
|
|
30
30
|
var $isHorizontal = _ref.$isHorizontal;
|
|
31
31
|
return $isHorizontal ? 'flex-start' : 'center';
|
|
@@ -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-12_48_2__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-12_48_2__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-12_48_2__sc-1q3pe6s-2"
|
|
14
14
|
})(["> ", "{", "}"], StyledP, getSmallIconBodyTextRules);
|
|
15
15
|
//# sourceMappingURL=Field.styles.js.map
|
|
@@ -53,7 +53,9 @@ export var FileList = /*#__PURE__*/React.forwardRef(function FileList(_ref, ref)
|
|
|
53
53
|
variant: "tertiary",
|
|
54
54
|
size: "sm",
|
|
55
55
|
icon: /*#__PURE__*/React.createElement(Archive, null),
|
|
56
|
+
download: true,
|
|
56
57
|
href: downloadAllUrl,
|
|
58
|
+
role: "link",
|
|
57
59
|
tabIndex: 0
|
|
58
60
|
}, I18n.t('core.fileList.downloadAll')), /*#__PURE__*/React.createElement(Box, {
|
|
59
61
|
as: "ul"
|
|
@@ -90,10 +92,12 @@ export function Item(_ref2) {
|
|
|
90
92
|
overlay: I18n.t('core.fileList.download')
|
|
91
93
|
}, /*#__PURE__*/React.createElement(StyledFileListItemDownloadIcon, {
|
|
92
94
|
"aria-label": I18n.t('core.fileList.download'),
|
|
95
|
+
download: true,
|
|
93
96
|
href: downloadUrl,
|
|
94
97
|
icon: /*#__PURE__*/React.createElement(Download, {
|
|
95
98
|
size: "sm"
|
|
96
99
|
}),
|
|
100
|
+
role: "link",
|
|
97
101
|
size: "sm",
|
|
98
102
|
variant: "tertiary"
|
|
99
103
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileList.js","names":["Archive","Download","React","Box","Link","Tooltip","Typography","useI18nContext","StyledFileListDownloadAll","StyledFileListItem","StyledFileListItemDownloadIcon","defaultGetViewUrl","item","viewUrl","defaultGetDownloadUrl","downloadUrl","defaultGetName","name","FileList","forwardRef","_ref","ref","items","downloadAllUrl","_ref$getDownloadUrl","getDownloadUrl","_ref$getViewUrl","getViewUrl","_ref$getName","getName","qa","props","_objectWithoutProperties","_excluded","I18n","length","isDownloadAllVisible","createElement","_extends","variant","size","icon","href","tabIndex","t","as","map","i","_qa$item","Item","call","key","concat","_ref2","_excluded2","intent","weight","target","color","overlay"],"sources":["../../src/FileList/FileList.tsx"],"sourcesContent":["import { Archive, Download } from '@procore/core-icons/dist'\nimport React from 'react'\nimport { Box } from '../Box/Box'\nimport { Link } from '../Link/Link'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { Typography } from '../Typography/Typography'\nimport { useI18nContext } from '../_hooks/I18n'\nimport {\n StyledFileListDownloadAll,\n StyledFileListItem,\n StyledFileListItemDownloadIcon,\n} from './FileList.styles'\nimport type { FileListItemProps, FileListProps } from './FileList.types'\n\nexport const defaultGetViewUrl = (item: FileListItemProps) => {\n return item.viewUrl\n}\n\nexport const defaultGetDownloadUrl = (item: FileListItemProps) => {\n return item.downloadUrl\n}\n\nexport const defaultGetName = (item: FileListItemProps) => {\n return item.name\n}\n\n/**\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-filelist--demo)\n\n @see [Design Guidelines](https://design.procore.com/file-list)\n\n */\nexport const FileList = React.forwardRef<\n HTMLDivElement,\n FileListProps & React.HTMLAttributes<HTMLDivElement>\n>(function FileList(\n {\n items,\n downloadAllUrl,\n getDownloadUrl = defaultGetDownloadUrl,\n getViewUrl = defaultGetViewUrl,\n getName = defaultGetName,\n qa,\n ...props\n },\n ref\n) {\n const I18n = useI18nContext()\n const { length } = items\n\n const isDownloadAllVisible = length > 1 && downloadAllUrl\n\n if (length === 0) {\n return null\n }\n\n return (\n <Box ref={ref} {...props}>\n {isDownloadAllVisible && (\n <StyledFileListDownloadAll\n variant=\"tertiary\"\n size=\"sm\"\n icon={<Archive />}\n href={downloadAllUrl}\n tabIndex={0}\n >\n {I18n.t('core.fileList.downloadAll')}\n </StyledFileListDownloadAll>\n )}\n <Box as=\"ul\">\n {items.map((item, i) => {\n const name = getName(item)\n const downloadUrl = getDownloadUrl(item)\n return (\n <Item\n name={name}\n downloadUrl={getDownloadUrl(item)}\n viewUrl={getViewUrl(item)}\n data-qa={qa?.item?.(item)}\n key={`${name}-${downloadUrl}`}\n />\n )\n })}\n </Box>\n </Box>\n )\n})\n\nexport function Item({\n name,\n viewUrl,\n downloadUrl,\n ...props\n}: FileListItemProps) {\n const I18n = useI18nContext()\n\n return (\n <StyledFileListItem {...props}>\n {viewUrl ? (\n <Typography intent=\"body\" weight=\"semibold\">\n <Link href={viewUrl} target=\"_blank\" tabIndex={0}>\n {name}\n </Link>\n </Typography>\n ) : (\n <Typography intent=\"body\" color=\"gray15\">\n {name}\n </Typography>\n )}\n {downloadUrl && (\n <Tooltip overlay={I18n.t('core.fileList.download')}>\n <StyledFileListItemDownloadIcon\n aria-label={I18n.t('core.fileList.download')}\n href={downloadUrl}\n icon={<Download size=\"sm\" />}\n size=\"sm\"\n variant=\"tertiary\"\n />\n </Tooltip>\n )}\n </StyledFileListItem>\n )\n}\n"],"mappings":";;;;;AAAA,SAASA,OAAO,EAAEC,QAAQ,QAAQ,0BAA0B;AAC5D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,QAAQ,YAAY;AAChC,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,UAAU,QAAQ,0BAA0B;AACrD,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,SACEC,yBAAyB,EACzBC,kBAAkB,EAClBC,8BAA8B,QACzB,mBAAmB;AAG1B,OAAO,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,IAAuB,EAAK;EAC5D,OAAOA,IAAI,CAACC,OAAO;AACrB,CAAC;AAED,OAAO,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIF,IAAuB,EAAK;EAChE,OAAOA,IAAI,CAACG,WAAW;AACzB,CAAC;AAED,OAAO,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIJ,IAAuB,EAAK;EACzD,OAAOA,IAAI,CAACK,IAAI;AAClB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,QAAQ,gBAAGhB,KAAK,CAACiB,UAAU,CAGtC,SAASD,QAAQA,CAAAE,IAAA,EAUjBC,GAAG,EACH;EAAA,IATEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,cAAc,GAAAH,IAAA,CAAdG,cAAc;IAAAC,mBAAA,GAAAJ,IAAA,CACdK,cAAc;IAAdA,cAAc,GAAAD,mBAAA,cAAGV,qBAAqB,GAAAU,mBAAA;IAAAE,eAAA,GAAAN,IAAA,CACtCO,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAGf,iBAAiB,GAAAe,eAAA;IAAAE,YAAA,GAAAR,IAAA,CAC9BS,OAAO;IAAPA,OAAO,GAAAD,YAAA,cAAGZ,cAAc,GAAAY,YAAA;IACxBE,EAAE,GAAAV,IAAA,CAAFU,EAAE;IACCC,KAAK,GAAAC,wBAAA,CAAAZ,IAAA,EAAAa,SAAA;EAIV,IAAMC,IAAI,GAAG3B,cAAc,CAAC,CAAC;EAC7B,IAAQ4B,MAAM,GAAKb,KAAK,CAAhBa,MAAM;EAEd,IAAMC,oBAAoB,GAAGD,MAAM,GAAG,CAAC,IAAIZ,cAAc;EAEzD,IAAIY,MAAM,KAAK,CAAC,EAAE;IAChB,OAAO,IAAI;EACb;EAEA,oBACEjC,KAAA,CAAAmC,aAAA,CAAClC,GAAG,EAAAmC,QAAA;IAACjB,GAAG,EAAEA;EAAI,GAAKU,KAAK,GACrBK,oBAAoB,iBACnBlC,KAAA,CAAAmC,aAAA,CAAC7B,yBAAyB;IACxB+B,OAAO,EAAC,UAAU;IAClBC,IAAI,EAAC,IAAI;IACTC,IAAI,eAAEvC,KAAA,CAAAmC,aAAA,CAACrC,OAAO,MAAE,CAAE;IAClB0C,IAAI,
|
|
1
|
+
{"version":3,"file":"FileList.js","names":["Archive","Download","React","Box","Link","Tooltip","Typography","useI18nContext","StyledFileListDownloadAll","StyledFileListItem","StyledFileListItemDownloadIcon","defaultGetViewUrl","item","viewUrl","defaultGetDownloadUrl","downloadUrl","defaultGetName","name","FileList","forwardRef","_ref","ref","items","downloadAllUrl","_ref$getDownloadUrl","getDownloadUrl","_ref$getViewUrl","getViewUrl","_ref$getName","getName","qa","props","_objectWithoutProperties","_excluded","I18n","length","isDownloadAllVisible","createElement","_extends","variant","size","icon","download","href","role","tabIndex","t","as","map","i","_qa$item","Item","call","key","concat","_ref2","_excluded2","intent","weight","target","color","overlay"],"sources":["../../src/FileList/FileList.tsx"],"sourcesContent":["import { Archive, Download } from '@procore/core-icons/dist'\nimport React from 'react'\nimport { Box } from '../Box/Box'\nimport { Link } from '../Link/Link'\nimport { Tooltip } from '../Tooltip/Tooltip'\nimport { Typography } from '../Typography/Typography'\nimport { useI18nContext } from '../_hooks/I18n'\nimport {\n StyledFileListDownloadAll,\n StyledFileListItem,\n StyledFileListItemDownloadIcon,\n} from './FileList.styles'\nimport type { FileListItemProps, FileListProps } from './FileList.types'\n\nexport const defaultGetViewUrl = (item: FileListItemProps) => {\n return item.viewUrl\n}\n\nexport const defaultGetDownloadUrl = (item: FileListItemProps) => {\n return item.downloadUrl\n}\n\nexport const defaultGetName = (item: FileListItemProps) => {\n return item.name\n}\n\n/**\n\n @since 10.19.0\n\n @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-filelist--demo)\n\n @see [Design Guidelines](https://design.procore.com/file-list)\n\n */\nexport const FileList = React.forwardRef<\n HTMLDivElement,\n FileListProps & React.HTMLAttributes<HTMLDivElement>\n>(function FileList(\n {\n items,\n downloadAllUrl,\n getDownloadUrl = defaultGetDownloadUrl,\n getViewUrl = defaultGetViewUrl,\n getName = defaultGetName,\n qa,\n ...props\n },\n ref\n) {\n const I18n = useI18nContext()\n const { length } = items\n\n const isDownloadAllVisible = length > 1 && downloadAllUrl\n\n if (length === 0) {\n return null\n }\n\n return (\n <Box ref={ref} {...props}>\n {isDownloadAllVisible && (\n <StyledFileListDownloadAll\n variant=\"tertiary\"\n size=\"sm\"\n icon={<Archive />}\n download\n href={downloadAllUrl}\n role=\"link\"\n tabIndex={0}\n >\n {I18n.t('core.fileList.downloadAll')}\n </StyledFileListDownloadAll>\n )}\n <Box as=\"ul\">\n {items.map((item, i) => {\n const name = getName(item)\n const downloadUrl = getDownloadUrl(item)\n return (\n <Item\n name={name}\n downloadUrl={getDownloadUrl(item)}\n viewUrl={getViewUrl(item)}\n data-qa={qa?.item?.(item)}\n key={`${name}-${downloadUrl}`}\n />\n )\n })}\n </Box>\n </Box>\n )\n})\n\nexport function Item({\n name,\n viewUrl,\n downloadUrl,\n ...props\n}: FileListItemProps) {\n const I18n = useI18nContext()\n\n return (\n <StyledFileListItem {...props}>\n {viewUrl ? (\n <Typography intent=\"body\" weight=\"semibold\">\n <Link href={viewUrl} target=\"_blank\" tabIndex={0}>\n {name}\n </Link>\n </Typography>\n ) : (\n <Typography intent=\"body\" color=\"gray15\">\n {name}\n </Typography>\n )}\n {downloadUrl && (\n <Tooltip overlay={I18n.t('core.fileList.download')}>\n <StyledFileListItemDownloadIcon\n aria-label={I18n.t('core.fileList.download')}\n download\n href={downloadUrl}\n icon={<Download size=\"sm\" />}\n role=\"link\"\n size=\"sm\"\n variant=\"tertiary\"\n />\n </Tooltip>\n )}\n </StyledFileListItem>\n )\n}\n"],"mappings":"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"}
|
|
@@ -3,14 +3,14 @@ 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-12_48_2__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-12_48_2__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 StyledFileListItemDownloadIcon = /*#__PURE__*/styled(LinkButton).withConfig({
|
|
13
13
|
displayName: "StyledFileListItemDownloadIcon",
|
|
14
|
-
componentId: "core-
|
|
14
|
+
componentId: "core-12_48_2__sc-7gltjc-2"
|
|
15
15
|
})(["margin-left:", "px;align-self:flex-start;"], spacing.sm);
|
|
16
16
|
//# sourceMappingURL=FileList.styles.js.map
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
export var items = [{
|
|
2
2
|
name: 'IMG-0124.png',
|
|
3
|
-
downloadUrl: '/
|
|
4
|
-
viewUrl: '/
|
|
3
|
+
downloadUrl: '/logo.png',
|
|
4
|
+
viewUrl: '/logo.png'
|
|
5
5
|
}, {
|
|
6
6
|
name: 'jobsite-visit.pdf',
|
|
7
|
-
downloadUrl: '/
|
|
8
|
-
viewUrl: '/
|
|
7
|
+
downloadUrl: '/sample.pdf',
|
|
8
|
+
viewUrl: '/sample.pdf'
|
|
9
9
|
}, {
|
|
10
10
|
name: 'non-previewable-file.exe',
|
|
11
|
-
downloadUrl: '/
|
|
11
|
+
downloadUrl: '/sample.pdf',
|
|
12
12
|
viewUrl: ''
|
|
13
13
|
}, {
|
|
14
14
|
name: 'file-with-very-long-name-that-will-wrap-onto-infinite-lines forever-depending-on-viewport-width.png',
|
|
15
|
-
downloadUrl: '/
|
|
16
|
-
viewUrl: '/
|
|
15
|
+
downloadUrl: '/logo.png',
|
|
16
|
+
viewUrl: '/logo.png'
|
|
17
17
|
}, {
|
|
18
18
|
name: 'IMG-2202.heif',
|
|
19
|
-
downloadUrl: '/
|
|
20
|
-
viewUrl: '/
|
|
19
|
+
downloadUrl: '/logo.png',
|
|
20
|
+
viewUrl: '/logo.png'
|
|
21
21
|
}, {
|
|
22
22
|
name: 'AC01-DRAWING-COVER-SHEET.pdf',
|
|
23
|
-
downloadUrl: '/
|
|
24
|
-
viewUrl: '/
|
|
23
|
+
downloadUrl: '/sample.pdf',
|
|
24
|
+
viewUrl: '/sample.pdf'
|
|
25
25
|
}, {
|
|
26
26
|
name: 'IMG-01.png',
|
|
27
|
-
downloadUrl: '
|
|
28
|
-
viewUrl: '/
|
|
27
|
+
downloadUrl: '',
|
|
28
|
+
viewUrl: '/logo.png'
|
|
29
29
|
}, {
|
|
30
30
|
name: 'permit.docx',
|
|
31
|
-
downloadUrl: '
|
|
31
|
+
downloadUrl: '',
|
|
32
32
|
viewUrl: ''
|
|
33
33
|
}];
|
|
34
34
|
//# sourceMappingURL=fileListMockData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileListMockData.js","names":["items","name","downloadUrl","viewUrl"],"sources":["../../../src/FileList/storybook/fileListMockData.tsx"],"sourcesContent":["export const items = [\n {\n name: 'IMG-0124.png',\n downloadUrl: '/
|
|
1
|
+
{"version":3,"file":"fileListMockData.js","names":["items","name","downloadUrl","viewUrl"],"sources":["../../../src/FileList/storybook/fileListMockData.tsx"],"sourcesContent":["export const items = [\n {\n name: 'IMG-0124.png',\n downloadUrl: '/logo.png',\n viewUrl: '/logo.png',\n },\n {\n name: 'jobsite-visit.pdf',\n downloadUrl: '/sample.pdf',\n viewUrl: '/sample.pdf',\n },\n {\n name: 'non-previewable-file.exe',\n downloadUrl: '/sample.pdf',\n viewUrl: '',\n },\n {\n name: 'file-with-very-long-name-that-will-wrap-onto-infinite-lines forever-depending-on-viewport-width.png',\n downloadUrl: '/logo.png',\n viewUrl: '/logo.png',\n },\n {\n name: 'IMG-2202.heif',\n downloadUrl: '/logo.png',\n viewUrl: '/logo.png',\n },\n {\n name: 'AC01-DRAWING-COVER-SHEET.pdf',\n downloadUrl: '/sample.pdf',\n viewUrl: '/sample.pdf',\n },\n {\n name: 'IMG-01.png',\n downloadUrl: '',\n viewUrl: '/logo.png',\n },\n { name: 'permit.docx', downloadUrl: '', viewUrl: '' },\n]\n"],"mappings":"AAAA,OAAO,IAAMA,KAAK,GAAG,CACnB;EACEC,IAAI,EAAE,cAAc;EACpBC,WAAW,EAAE,WAAW;EACxBC,OAAO,EAAE;AACX,CAAC,EACD;EACEF,IAAI,EAAE,mBAAmB;EACzBC,WAAW,EAAE,aAAa;EAC1BC,OAAO,EAAE;AACX,CAAC,EACD;EACEF,IAAI,EAAE,0BAA0B;EAChCC,WAAW,EAAE,aAAa;EAC1BC,OAAO,EAAE;AACX,CAAC,EACD;EACEF,IAAI,EAAE,qGAAqG;EAC3GC,WAAW,EAAE,WAAW;EACxBC,OAAO,EAAE;AACX,CAAC,EACD;EACEF,IAAI,EAAE,eAAe;EACrBC,WAAW,EAAE,WAAW;EACxBC,OAAO,EAAE;AACX,CAAC,EACD;EACEF,IAAI,EAAE,8BAA8B;EACpCC,WAAW,EAAE,aAAa;EAC1BC,OAAO,EAAE;AACX,CAAC,EACD;EACEF,IAAI,EAAE,YAAY;EAClBC,WAAW,EAAE,EAAE;EACfC,OAAO,EAAE;AACX,CAAC,EACD;EAAEF,IAAI,EAAE,aAAa;EAAEC,WAAW,EAAE,EAAE;EAAEC,OAAO,EAAE;AAAG,CAAC,CACtD"}
|
|
@@ -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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__sc-343gts-8"
|
|
50
50
|
})(["display:flex;align-items:center;justify-content:center;height:100%;"]);
|
|
51
51
|
//# sourceMappingURL=FileExplorer.styles.js.map
|
|
@@ -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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__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-12_48_2__sc-u9tli5-0"
|
|
7
7
|
})(["display:flex;flex-wrap:wrap;align-items:flex-start;"]);
|
|
8
8
|
export var StyledFileToken = /*#__PURE__*/styled(FileToken).withConfig({
|
|
9
9
|
displayName: "StyledFileToken",
|
|
10
|
-
componentId: "core-
|
|
10
|
+
componentId: "core-12_48_2__sc-u9tli5-1"
|
|
11
11
|
})(["margin-bottom:", "px;margin-right:", "px;"], spacing.sm, spacing.sm);
|
|
12
12
|
//# sourceMappingURL=FileTokenList.styles.js.map
|
|
@@ -13,7 +13,7 @@ export var contentHeight = modalBodyWidth - modalBodyBorderTopWidth - toolbarHei
|
|
|
13
13
|
// TODO Update box-shadow to use getShadow instead
|
|
14
14
|
export var StyledToolbar = /*#__PURE__*/styled.div.withConfig({
|
|
15
15
|
displayName: "StyledToolbar",
|
|
16
|
-
componentId: "core-
|
|
16
|
+
componentId: "core-12_48_2__sc-1sj6hvp-0"
|
|
17
17
|
})(["display:flex;align-items:center;flex-direction:row;width:100%;min-height:", "px;padding:16px 24px;", " ", " & > * + *{margin-left:", "px;}"], toolbarHeight, function (_ref) {
|
|
18
18
|
var $alignRight = _ref.$alignRight;
|
|
19
19
|
return css(["justify-content:", ";"], $alignRight ? 'flex-end' : 'space-between');
|
|
@@ -23,23 +23,23 @@ export var StyledToolbar = /*#__PURE__*/styled.div.withConfig({
|
|
|
23
23
|
}, spacing.sm);
|
|
24
24
|
export var StyledSearchWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
25
25
|
displayName: "StyledSearchWrapper",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-12_48_2__sc-1sj6hvp-1"
|
|
27
27
|
})(["width:286px;flex-shrink:1;min-width:180px;"]);
|
|
28
28
|
export var StyledEmptyStateWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
29
29
|
displayName: "StyledEmptyStateWrapper",
|
|
30
|
-
componentId: "core-
|
|
30
|
+
componentId: "core-12_48_2__sc-1sj6hvp-2"
|
|
31
31
|
})(["width:100%;height:100%;display:flex;justify-content:center;align-items:center;"]);
|
|
32
32
|
export var StyledEmptyState = /*#__PURE__*/styled(EmptyState).withConfig({
|
|
33
33
|
displayName: "StyledEmptyState",
|
|
34
|
-
componentId: "core-
|
|
34
|
+
componentId: "core-12_48_2__sc-1sj6hvp-3"
|
|
35
35
|
})(["margin-top:0;margin-bottom:0;img{width:160px;}"]);
|
|
36
36
|
export var StyledSpinnerWrapper = /*#__PURE__*/styled.div.withConfig({
|
|
37
37
|
displayName: "StyledSpinnerWrapper",
|
|
38
|
-
componentId: "core-
|
|
38
|
+
componentId: "core-12_48_2__sc-1sj6hvp-4"
|
|
39
39
|
})(["height:", "px;width:100%;display:flex;align-items:center;justify-content:center;"], contentHeight);
|
|
40
40
|
export var StyledGrid = /*#__PURE__*/styled.div.withConfig({
|
|
41
41
|
displayName: "StyledGrid",
|
|
42
|
-
componentId: "core-
|
|
42
|
+
componentId: "core-12_48_2__sc-1sj6hvp-5"
|
|
43
43
|
})(["display:flex;flex-direction:column;", ""], function (_ref3) {
|
|
44
44
|
var $isEmpty = _ref3.$isEmpty;
|
|
45
45
|
return $isEmpty && 'height: 100%;';
|
|
@@ -15,21 +15,21 @@ var dropzoneHeightWithIcon = 176;
|
|
|
15
15
|
var sourceWidth = 568;
|
|
16
16
|
export var StyledLocalSource = /*#__PURE__*/styled.div.withConfig({
|
|
17
17
|
displayName: "StyledLocalSource",
|
|
18
|
-
componentId: "core-
|
|
18
|
+
componentId: "core-12_48_2__sc-psqe8z-0"
|
|
19
19
|
})(["display:flex;flex-grow:1;flex-direction:column;align-items:stretch;height:", "px;max-height:", "px;padding:", "px ", "px ", "px ", "px;overflow-y:hidden;"], contentHeight, contentHeight, spacing.xl, spacing.xl + spacing.lg, spacing.xl, spacing.xl);
|
|
20
20
|
export var StyledDropzoneErrorBanner = /*#__PURE__*/styled(DropzoneErrorBanner).withConfig({
|
|
21
21
|
displayName: "StyledDropzoneErrorBanner",
|
|
22
|
-
componentId: "core-
|
|
22
|
+
componentId: "core-12_48_2__sc-psqe8z-1"
|
|
23
23
|
})(["margin-top:", "px;margin-bottom:", "px;margin-right:2px;"], errorBannerMarginTop, errorBannerMarginBottom);
|
|
24
24
|
export var StyledDropzoneWrapper = /*#__PURE__*/styled(Dropzone).withConfig({
|
|
25
25
|
displayName: "StyledDropzoneWrapper",
|
|
26
|
-
componentId: "core-
|
|
26
|
+
componentId: "core-12_48_2__sc-psqe8z-2"
|
|
27
27
|
})(["display:flex;height:auto;min-height:", "px;> div:first-child{display:flex;height:auto;}> ", "{display:none;}@media ", "{width:", "px;> div:first-child{height:100%;}}"], function (_ref) {
|
|
28
28
|
var isIconVisible = _ref.isIconVisible;
|
|
29
29
|
return isIconVisible ? dropzoneHeightWithIcon : dropzoneHeight;
|
|
30
30
|
}, DropzoneErrorBanner, mediaIE11Hack, sourceWidth);
|
|
31
31
|
export var StyledThumbnailList = /*#__PURE__*/styled(ThumbnailList).withConfig({
|
|
32
32
|
displayName: "StyledThumbnailList",
|
|
33
|
-
componentId: "core-
|
|
33
|
+
componentId: "core-12_48_2__sc-psqe8z-3"
|
|
34
34
|
})(["margin-top:", "px;border:", "px solid ", ";"], listMarginTop, listBorderWidth, colors.gray85);
|
|
35
35
|
//# sourceMappingURL=LocalSource.styles.js.map
|