@procore/core-react 12.47.0 → 12.48.0
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 +19 -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.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 +6 -6
- package/dist/CheckboxGroup/CheckboxGroup.js +9 -3
- package/dist/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/dist/CheckboxGroup/checkboxGroupTileNavigation.d.ts +12 -0
- package/dist/CheckboxGroup/checkboxGroupTileNavigation.js +224 -0
- package/dist/CheckboxGroup/checkboxGroupTileNavigation.js.map +1 -0
- 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/DateSelect/DateSelect.js +5 -4
- package/dist/DateSelect/DateSelect.js.map +1 -1
- package/dist/DateSelect/DateSelect.types.d.ts +1 -1
- package/dist/DateSelect/DateSelect.types.js.map +1 -1
- package/dist/DetailPage/DetailPage.styles.js +7 -7
- package/dist/Dropdown/Dropdown.styles.js +3 -3
- package/dist/DropdownFlyout/DropdownFlyout.styles.js +4 -4
- package/dist/Dropzone/Dropzone.js +1 -1
- package/dist/Dropzone/Dropzone.styles.js +9 -9
- package/dist/EmptyState/EmptyState.styles.js +6 -6
- package/dist/Field/Field.styles.js +3 -3
- package/dist/FileList/FileList.styles.js +3 -3
- 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.styles.js +8 -8
- package/dist/Loader/Loader.styles.js +2 -2
- package/dist/Menu/Menu.js +2 -2
- package/dist/Menu/Menu.js.map +1 -1
- 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.d.ts +24 -0
- package/dist/NextTile/NextTile.js +275 -90
- package/dist/NextTile/NextTile.js.map +1 -1
- package/dist/NextTile/NextTile.styles.d.ts +16 -0
- package/dist/NextTile/NextTile.styles.js +136 -0
- package/dist/NextTile/NextTile.styles.js.map +1 -0
- package/dist/NextTile/NextTile.types.d.ts +14 -2
- package/dist/NextTile/NextTile.types.js.map +1 -1
- package/dist/Notation/Notation.js +1 -1
- package/dist/NumberInput/NumberInput.styles.js +7 -7
- package/dist/Overlay/OverlayArrow.styles.js +1 -1
- package/dist/PageLayout/PageLayout.styles.js +16 -16
- package/dist/PageTemplate/PageFooterTemplate/PageFooterTemplate.styles.js +1 -1
- package/dist/PageTemplate/PageHeaderTemplate/PageHeaderTemplate.styles.js +3 -3
- package/dist/PageTemplate/PagePaneTemplate/PagePaneTemplate.styles.js +2 -2
- package/dist/PageTemplate/PageTemplate/PageTemplate.styles.js +3 -3
- package/dist/Pagination/Pagination.styles.js +5 -5
- package/dist/Panel/Panel.styles.js +11 -11
- package/dist/Pill/Pill.styles.js +3 -3
- package/dist/PillSelect/PillSelect.styles.js +4 -4
- package/dist/Popover/Popover.styles.js +2 -2
- package/dist/Portal/Portal.styles.js +1 -1
- package/dist/ProgressBar/ProgressBar.styles.js +2 -2
- package/dist/RadioButton/RadioButton.styles.js +3 -3
- package/dist/Required/Required.styles.js +3 -3
- package/dist/Search/Search.styles.js +5 -5
- package/dist/Section/Section.styles.js +7 -7
- package/dist/SegmentedController/SegmentedController.styles.js +4 -4
- package/dist/Select/Select.styles.js +8 -8
- package/dist/Semantic/Semantic.styles.js +9 -9
- package/dist/Slider/Slider.styles.js +5 -5
- package/dist/Spinner/Spinner.styles.js +7 -7
- package/dist/SplitViewCard/SplitViewCard.styles.js +8 -8
- package/dist/SuperSelect/SuperSelect.presets.styles.js +1 -1
- package/dist/SuperSelect/SuperSelect.styles.js +40 -40
- package/dist/Switch/Switch.styles.js +4 -4
- 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.hooks.d.ts +13 -7
- package/dist/Thumbnail/Thumbnail.hooks.js +15 -5
- package/dist/Thumbnail/Thumbnail.hooks.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.js +8 -4
- package/dist/Thumbnail/Thumbnail.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.styles.d.ts +13 -5
- package/dist/Thumbnail/Thumbnail.styles.js +42 -24
- package/dist/Thumbnail/Thumbnail.styles.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.types.d.ts +12 -10
- package/dist/Thumbnail/Thumbnail.types.js.map +1 -1
- package/dist/Thumbnail/Thumbnail.utils.d.ts +1 -0
- package/dist/Thumbnail/Thumbnail.utils.js +7 -0
- package/dist/Thumbnail/Thumbnail.utils.js.map +1 -1
- package/dist/Thumbnail/ThumbnailCaption.js +85 -40
- package/dist/Thumbnail/ThumbnailCaption.js.map +1 -1
- package/dist/ThumbnailGrid/ThumbnailGrid.styles.js +7 -7
- package/dist/TieredSelect/TieredSelect.styles.js +9 -9
- package/dist/Tile/Tile.styles.js +10 -10
- package/dist/Tile/Tile.styles.js.map +1 -1
- 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 +5 -5
- 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/_hooks/ClickOutside.js +8 -3
- package/dist/_hooks/ClickOutside.js.map +1 -1
- package/dist/_hooks/I18n.d.ts +2 -0
- package/dist/_locales/en.json +1 -0
- package/dist/_locales/pseudo.json +1 -0
- 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.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 +23 -13
- 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 +780 -760
- 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.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 +42 -32
- 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 +15 -15
- package/dist/_typedoc/ProgressBar/ProgressBar.types.json +7 -7
- package/dist/_typedoc/RadioButton/RadioButton.types.json +6 -6
- package/dist/_typedoc/Required/Required.types.json +5 -5
- package/dist/_typedoc/Search/Search.types.json +18 -18
- package/dist/_typedoc/Section/Section.types.json +15 -15
- package/dist/_typedoc/SegmentedController/SegmentedController.types.json +21 -21
- package/dist/_typedoc/Select/Select.types.json +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 +114 -104
- 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 +23 -23
- 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.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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +17 -17
package/dist/Tabs/Tabs.styles.js
CHANGED
|
@@ -17,17 +17,17 @@ var borderRadius = /*#__PURE__*/css(["border-radius:", "px ", "px 0 0;"], spacin
|
|
|
17
17
|
*/
|
|
18
18
|
var StyledTabBase = /*#__PURE__*/styled.div.withConfig({
|
|
19
19
|
displayName: "StyledTabBase",
|
|
20
|
-
componentId: "core-
|
|
20
|
+
componentId: "core-12_48_0__sc-17s58xs-0"
|
|
21
21
|
})(["align-items:center;box-sizing:border-box;cursor:pointer;display:inline-flex;flex:0 0 auto;justify-content:center;position:relative;white-space:nowrap;text-decoration:none;background-color:transparent;border:none;font-family:inherit;padding:0;"]);
|
|
22
22
|
var StyledTabInnerBase = /*#__PURE__*/styled.div.withConfig({
|
|
23
23
|
displayName: "StyledTabInnerBase",
|
|
24
|
-
componentId: "core-
|
|
24
|
+
componentId: "core-12_48_0__sc-17s58xs-1"
|
|
25
25
|
})(["align-self:baseline;box-sizing:border-box;&,> a{display:flex;text-decoration:none;width:100%;}"]);
|
|
26
26
|
|
|
27
27
|
// This so that it can be visible/hidden via CSS down below
|
|
28
28
|
var StyledDropdownTabBase = /*#__PURE__*/styled(StyledTabBase).withConfig({
|
|
29
29
|
displayName: "StyledDropdownTabBase",
|
|
30
|
-
componentId: "core-
|
|
30
|
+
componentId: "core-12_48_0__sc-17s58xs-2"
|
|
31
31
|
})(["", ""], hiddenTab);
|
|
32
32
|
|
|
33
33
|
//// END BASE LAYOUT COMPONENTS FOR TABS ////
|
|
@@ -50,11 +50,11 @@ function getTabStyle() {
|
|
|
50
50
|
}
|
|
51
51
|
var StyledTab = /*#__PURE__*/styled(StyledTabBase).withConfig({
|
|
52
52
|
displayName: "StyledTab",
|
|
53
|
-
componentId: "core-
|
|
53
|
+
componentId: "core-12_48_0__sc-17s58xs-3"
|
|
54
54
|
})(["", ""], getTabStyle);
|
|
55
55
|
var StyledTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
|
|
56
56
|
displayName: "StyledTabInner",
|
|
57
|
-
componentId: "core-
|
|
57
|
+
componentId: "core-12_48_0__sc-17s58xs-4"
|
|
58
58
|
})(["", " padding:0 ", "px;font-weight:", ";&,> a{", ";color:", ";height:23px;}& a:focus-visible{outline:2px solid ", ";outline-offset:-1px;border-radius:", "px;}", ""], getTypographyIntent('body'), spacing.xs, function (_ref3) {
|
|
59
59
|
var $selected = _ref3.$selected;
|
|
60
60
|
return $selected ? 600 : 400;
|
|
@@ -67,15 +67,15 @@ var StyledTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
|
|
|
67
67
|
});
|
|
68
68
|
var StyledDropdownTab = /*#__PURE__*/styled(StyledDropdownTabBase).withConfig({
|
|
69
69
|
displayName: "StyledDropdownTab",
|
|
70
|
-
componentId: "core-
|
|
70
|
+
componentId: "core-12_48_0__sc-17s58xs-5"
|
|
71
71
|
})(["", ""], getTabStyle);
|
|
72
72
|
var StyledDropdownTabInner = /*#__PURE__*/styled(StyledTabInner).withConfig({
|
|
73
73
|
displayName: "StyledDropdownTabInner",
|
|
74
|
-
componentId: "core-
|
|
74
|
+
componentId: "core-12_48_0__sc-17s58xs-6"
|
|
75
75
|
})(["align-items:center;cursor:pointer;display:inline-flex;"]);
|
|
76
76
|
var StyledLink = /*#__PURE__*/styled.span.withConfig({
|
|
77
77
|
displayName: "StyledLink",
|
|
78
|
-
componentId: "core-
|
|
78
|
+
componentId: "core-12_48_0__sc-17s58xs-7"
|
|
79
79
|
})(["align-items:center;display:flex;height:23px;", ";box-sizing:border-box;"], borderRadius);
|
|
80
80
|
|
|
81
81
|
//// END TRADITIONAL DESIGN SYSTEM TAB STYLES ////
|
|
@@ -92,34 +92,34 @@ function getHelixHeaderTabStyles() {
|
|
|
92
92
|
}
|
|
93
93
|
var StyledGlobalNavigationTab = /*#__PURE__*/styled(StyledTabBase).withConfig({
|
|
94
94
|
displayName: "StyledGlobalNavigationTab",
|
|
95
|
-
componentId: "core-
|
|
95
|
+
componentId: "core-12_48_0__sc-17s58xs-8"
|
|
96
96
|
})(["", ""], getHelixHeaderTabStyles);
|
|
97
97
|
var StyledGlobalNavigationDropdownTab = /*#__PURE__*/styled(StyledDropdownTabBase).withConfig({
|
|
98
98
|
displayName: "StyledGlobalNavigationDropdownTab",
|
|
99
|
-
componentId: "core-
|
|
99
|
+
componentId: "core-12_48_0__sc-17s58xs-9"
|
|
100
100
|
})(["", ""], getHelixHeaderTabStyles);
|
|
101
101
|
var StyledGlobalNavigationDropdownTabInner = /*#__PURE__*/styled(StyledTabInnerBase).withConfig({
|
|
102
102
|
displayName: "StyledGlobalNavigationDropdownTabInner",
|
|
103
|
-
componentId: "core-
|
|
103
|
+
componentId: "core-12_48_0__sc-17s58xs-10"
|
|
104
104
|
})(["align-items:center;cursor:pointer;display:inline-flex;"]);
|
|
105
105
|
var StyledGlobalNavigationLink = /*#__PURE__*/styled.span.withConfig({
|
|
106
106
|
displayName: "StyledGlobalNavigationLink",
|
|
107
|
-
componentId: "core-
|
|
107
|
+
componentId: "core-12_48_0__sc-17s58xs-11"
|
|
108
108
|
})(["padding-left:6px;padding-right:6px;"]);
|
|
109
109
|
|
|
110
110
|
//// END HELIX GLOBAL NAVIGATION TAB STYLES ////
|
|
111
111
|
|
|
112
112
|
export var StyledOverlay = /*#__PURE__*/styled(Card).withConfig({
|
|
113
113
|
displayName: "StyledOverlay",
|
|
114
|
-
componentId: "core-
|
|
114
|
+
componentId: "core-12_48_0__sc-17s58xs-12"
|
|
115
115
|
})(["max-height:40vh;", "{padding:0;display:flex;justify-content:center;a{color:unset;margin:unset;padding:unset;&:focus-visible{outline-offset:1px;}}}", "{padding:0;display:flex;}", "{padding:2px 16px 4px 16px;}", ",", "{color:", ";border-radius:0;display:flex;width:100%;background:inherit;font-weight:inherit;font-size:inherit;padding:0;}[data-selected='true']{", ",", "{border-bottom-color:transparent;color:", ";}}"], StyledItem, StyledLink, StyledTabInnerBase, StyledLink, StyledTabBase, colors.gray15, StyledLink, StyledTabBase, colors.blue50);
|
|
116
116
|
export var StyledTabList = /*#__PURE__*/styled.div.withConfig({
|
|
117
117
|
displayName: "StyledTabList",
|
|
118
|
-
componentId: "core-
|
|
118
|
+
componentId: "core-12_48_0__sc-17s58xs-13"
|
|
119
119
|
})(["display:flex;list-style:none;margin:0;padding:0;width:100%;"]);
|
|
120
120
|
export var StyledTabs = /*#__PURE__*/styled.div.withConfig({
|
|
121
121
|
displayName: "StyledTabs",
|
|
122
|
-
componentId: "core-
|
|
122
|
+
componentId: "core-12_48_0__sc-17s58xs-14"
|
|
123
123
|
})(["background-color:", ";display:flex;overflow:hidden;width:100%;", "{&:nth-child(1n + ", "){&:not(", "){", "}}}", ""], function (_ref6) {
|
|
124
124
|
var $dark = _ref6.$dark;
|
|
125
125
|
return $dark && colors.gray15;
|
|
@@ -133,7 +133,7 @@ export var StyledTabs = /*#__PURE__*/styled.div.withConfig({
|
|
|
133
133
|
});
|
|
134
134
|
var StyledMoreLi = /*#__PURE__*/styled.li.withConfig({
|
|
135
135
|
displayName: "StyledMoreLi",
|
|
136
|
-
componentId: "core-
|
|
136
|
+
componentId: "core-12_48_0__sc-17s58xs-15"
|
|
137
137
|
})(["", ""], function (_ref9) {
|
|
138
138
|
var $helix = _ref9.$helix;
|
|
139
139
|
return $helix ? css(["margin-left:", "px;"], spacing.sm) : css(["margin-left:", "px;"], spacing.xl);
|
|
@@ -46,7 +46,7 @@ var getSlideOutAnimation = function getSlideOutAnimation($placement) {
|
|
|
46
46
|
};
|
|
47
47
|
export var StyledTearsheetContent = /*#__PURE__*/styled.div.withConfig({
|
|
48
48
|
displayName: "StyledTearsheetContent",
|
|
49
|
-
componentId: "core-
|
|
49
|
+
componentId: "core-12_48_0__sc-ljrxoq-0"
|
|
50
50
|
})(["display:flex;z-index:2;width:100%;", " ", " ", " ", ""], function (_ref) {
|
|
51
51
|
var $open = _ref.$open,
|
|
52
52
|
$placement = _ref.$placement;
|
|
@@ -66,7 +66,7 @@ export var StyledTearsheetContent = /*#__PURE__*/styled.div.withConfig({
|
|
|
66
66
|
export var minScrimSize = spacing.xxl * 3;
|
|
67
67
|
export var StyledTearsheetBody = /*#__PURE__*/styled.div.withConfig({
|
|
68
68
|
displayName: "StyledTearsheetBody",
|
|
69
|
-
componentId: "core-
|
|
69
|
+
componentId: "core-12_48_0__sc-ljrxoq-1"
|
|
70
70
|
})(["display:flex;overflow-y:auto;flex-direction:column;background-color:", ";&:focus-visible{", "}", ""], colors.white, getGapOutlineFocus('inside'), function (_ref5) {
|
|
71
71
|
var $block = _ref5.$block,
|
|
72
72
|
$placement = _ref5.$placement,
|
|
@@ -78,7 +78,7 @@ var zoomIn = /*#__PURE__*/keyframes(["from{transform:scale(0);}to{transform:scal
|
|
|
78
78
|
var zoomOut = /*#__PURE__*/keyframes(["from{transform:scale(1);}to{transform:scale(0);}"]);
|
|
79
79
|
export var StyledScrimContainer = /*#__PURE__*/styled.div.withConfig({
|
|
80
80
|
displayName: "StyledScrimContainer",
|
|
81
|
-
componentId: "core-
|
|
81
|
+
componentId: "core-12_48_0__sc-ljrxoq-2"
|
|
82
82
|
})(["", ""], function (_ref6) {
|
|
83
83
|
var $placement = _ref6.$placement;
|
|
84
84
|
var minSizeProp = ['top', 'bottom'].includes($placement) ? 'min-height' : 'min-width';
|
|
@@ -86,7 +86,7 @@ export var StyledScrimContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
86
86
|
});
|
|
87
87
|
export var StyledButtonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
88
88
|
displayName: "StyledButtonContainer",
|
|
89
|
-
componentId: "core-
|
|
89
|
+
componentId: "core-12_48_0__sc-ljrxoq-3"
|
|
90
90
|
})(["", ""], function (_ref7) {
|
|
91
91
|
var $placement = _ref7.$placement;
|
|
92
92
|
switch ($placement) {
|
|
@@ -101,7 +101,7 @@ export var StyledButtonContainer = /*#__PURE__*/styled.div.withConfig({
|
|
|
101
101
|
});
|
|
102
102
|
export var StyledButtonCard = /*#__PURE__*/styled(Card).withConfig({
|
|
103
103
|
displayName: "StyledButtonCard",
|
|
104
|
-
componentId: "core-
|
|
104
|
+
componentId: "core-12_48_0__sc-ljrxoq-4"
|
|
105
105
|
})(["display:inline-flex;margin:", "px;", " ", " ", ""], spacing.xl, function (_ref8) {
|
|
106
106
|
var $open = _ref8.$open;
|
|
107
107
|
return $open ? css(["transform:scale(1);"]) : css(["transform:scale(0);"]);
|
|
@@ -3,7 +3,7 @@ import { getInputStyles } from '../Input/Input.styles';
|
|
|
3
3
|
import { spacing } from '../_styles/spacing';
|
|
4
4
|
export var StyledTextArea = /*#__PURE__*/styled.textarea.withConfig({
|
|
5
5
|
displayName: "StyledTextArea",
|
|
6
|
-
componentId: "core-
|
|
6
|
+
componentId: "core-12_48_0__sc-u5mow1-0"
|
|
7
7
|
})(["", ";height:auto;min-height:64px;padding:", "px ", "px;resize:", ";"], getInputStyles, spacing.sm, spacing.md, function (_ref) {
|
|
8
8
|
var _ref$$resize = _ref.$resize,
|
|
9
9
|
$resize = _ref$$resize === void 0 ? 'both' : _ref$$resize;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
export var StyledEditor = /*#__PURE__*/styled.div.withConfig({
|
|
3
3
|
displayName: "StyledEditor",
|
|
4
|
-
componentId: "core-
|
|
4
|
+
componentId: "core-12_48_0__sc-1lje1b0-0"
|
|
5
5
|
})(["> .tox-tinymce{border:none;}"]);
|
|
6
6
|
//# sourceMappingURL=TextEditorOutput.styles.js.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { LayoutVariant, ThumbnailProps } from './Thumbnail.types';
|
|
3
|
-
export declare const useThumbnail: ({ selected, disabled, clickable, focused, hasCaptionPlaceholder, src, filename: filename_, size, label, name, caption, onChange, value, ...props }: ThumbnailProps<'checkbox'> | ThumbnailProps<'figure'> | ThumbnailProps<undefined>) => {
|
|
3
|
+
export declare const useThumbnail: ({ selected, disabled, clickable, focused, hasCaptionPlaceholder, src, filename: filename_, size, label, error, name, caption, onChange, value, ...props }: ThumbnailProps<'checkbox'> | ThumbnailProps<'figure'> | ThumbnailProps<undefined>) => {
|
|
4
|
+
error: string | boolean;
|
|
5
|
+
errorAriaDescription: string | undefined;
|
|
4
6
|
label: string;
|
|
5
7
|
caption: string;
|
|
6
8
|
selected: boolean;
|
|
@@ -289,7 +291,6 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
289
291
|
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
290
292
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
291
293
|
alt: string;
|
|
292
|
-
error?: boolean | undefined;
|
|
293
294
|
variant?: import("./ThumbnailDocumentIcon").ThumbnailDocumentIconVariant | undefined;
|
|
294
295
|
tabIndex?: number | undefined;
|
|
295
296
|
qa?: import("./Thumbnail.types").QaTags | undefined;
|
|
@@ -299,6 +300,8 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
299
300
|
style?: React.CSSProperties | undefined;
|
|
300
301
|
ref?: ((instance: HTMLElement | null) => void) | React.RefObject<HTMLElement> | null | undefined;
|
|
301
302
|
} | {
|
|
303
|
+
error: string | boolean;
|
|
304
|
+
errorAriaDescription: string | undefined;
|
|
302
305
|
label: string;
|
|
303
306
|
caption: string;
|
|
304
307
|
selected: boolean;
|
|
@@ -587,7 +590,6 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
587
590
|
onTransitionEnd?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
588
591
|
onTransitionEndCapture?: React.TransitionEventHandler<HTMLElement> | undefined;
|
|
589
592
|
alt: string;
|
|
590
|
-
error?: boolean | undefined;
|
|
591
593
|
variant?: import("./ThumbnailDocumentIcon").ThumbnailDocumentIconVariant | undefined;
|
|
592
594
|
tabIndex?: number | undefined;
|
|
593
595
|
qa?: import("./Thumbnail.types").QaTags | undefined;
|
|
@@ -597,6 +599,8 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
597
599
|
style?: React.CSSProperties | undefined;
|
|
598
600
|
ref?: ((instance: HTMLElement | null) => void) | React.RefObject<HTMLElement> | null | undefined;
|
|
599
601
|
} | {
|
|
602
|
+
error: string | boolean;
|
|
603
|
+
errorAriaDescription: string | undefined;
|
|
600
604
|
label: string;
|
|
601
605
|
caption: string;
|
|
602
606
|
selected: boolean;
|
|
@@ -909,7 +913,6 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
909
913
|
readOnly?: boolean | undefined;
|
|
910
914
|
required?: boolean | undefined;
|
|
911
915
|
alt: string;
|
|
912
|
-
error?: boolean | undefined;
|
|
913
916
|
variant?: import("./ThumbnailDocumentIcon").ThumbnailDocumentIconVariant | undefined;
|
|
914
917
|
tabIndex?: number | undefined;
|
|
915
918
|
qa?: import("./Thumbnail.types").QaTags | undefined;
|
|
@@ -919,6 +922,8 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
919
922
|
style?: React.CSSProperties | undefined;
|
|
920
923
|
ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
921
924
|
} | {
|
|
925
|
+
error: string | boolean;
|
|
926
|
+
errorAriaDescription: string | undefined;
|
|
922
927
|
label: string;
|
|
923
928
|
caption: string;
|
|
924
929
|
selected: boolean;
|
|
@@ -1231,7 +1236,6 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
1231
1236
|
readOnly?: boolean | undefined;
|
|
1232
1237
|
required?: boolean | undefined;
|
|
1233
1238
|
alt: string;
|
|
1234
|
-
error?: boolean | undefined;
|
|
1235
1239
|
variant?: import("./ThumbnailDocumentIcon").ThumbnailDocumentIconVariant | undefined;
|
|
1236
1240
|
tabIndex?: number | undefined;
|
|
1237
1241
|
qa?: import("./Thumbnail.types").QaTags | undefined;
|
|
@@ -1241,6 +1245,8 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
1241
1245
|
style?: React.CSSProperties | undefined;
|
|
1242
1246
|
ref?: ((instance: HTMLInputElement | null) => void) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
1243
1247
|
} | {
|
|
1248
|
+
error: string | boolean;
|
|
1249
|
+
errorAriaDescription: string | undefined;
|
|
1244
1250
|
label: string;
|
|
1245
1251
|
caption: string;
|
|
1246
1252
|
selected: boolean;
|
|
@@ -1269,7 +1275,6 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
1269
1275
|
as: React.ElementType<any, keyof React.JSX.IntrinsicElements>;
|
|
1270
1276
|
role?: undefined;
|
|
1271
1277
|
alt: string;
|
|
1272
|
-
error?: boolean | undefined;
|
|
1273
1278
|
variant?: import("./ThumbnailDocumentIcon").ThumbnailDocumentIconVariant | undefined;
|
|
1274
1279
|
tabIndex?: number | undefined;
|
|
1275
1280
|
qa?: import("./Thumbnail.types").QaTags | undefined;
|
|
@@ -1279,6 +1284,8 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
1279
1284
|
style?: React.CSSProperties | undefined;
|
|
1280
1285
|
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
1281
1286
|
} | {
|
|
1287
|
+
error: string | boolean;
|
|
1288
|
+
errorAriaDescription: string | undefined;
|
|
1282
1289
|
label: string;
|
|
1283
1290
|
caption: string;
|
|
1284
1291
|
selected: boolean;
|
|
@@ -1307,7 +1314,6 @@ export declare const useThumbnail: ({ selected, disabled, clickable, focused, ha
|
|
|
1307
1314
|
as: string;
|
|
1308
1315
|
role?: undefined;
|
|
1309
1316
|
alt: string;
|
|
1310
|
-
error?: boolean | undefined;
|
|
1311
1317
|
variant?: import("./ThumbnailDocumentIcon").ThumbnailDocumentIconVariant | undefined;
|
|
1312
1318
|
tabIndex?: number | undefined;
|
|
1313
1319
|
qa?: import("./Thumbnail.types").QaTags | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _excluded = ["selected", "disabled", "clickable", "focused", "hasCaptionPlaceholder", "src", "filename", "size", "label", "name", "caption", "onChange", "value"];
|
|
2
|
+
var _excluded = ["selected", "disabled", "clickable", "focused", "hasCaptionPlaceholder", "src", "filename", "size", "label", "error", "name", "caption", "onChange", "value"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -11,7 +11,8 @@ import { useCheckbox } from '@react-aria/checkbox';
|
|
|
11
11
|
import { useFocusRing } from '@react-aria/focus';
|
|
12
12
|
import { useRef } from 'react';
|
|
13
13
|
import { useToggleState } from 'react-stately';
|
|
14
|
-
import {
|
|
14
|
+
import { useI18nContext } from '../_hooks/I18n';
|
|
15
|
+
import { getIsFilePreviewableAsImage, resolveThumbnailErrorLabel } from './Thumbnail.utils';
|
|
15
16
|
var defaultSize = 'lg';
|
|
16
17
|
export var useThumbnail = function useThumbnail(_ref) {
|
|
17
18
|
var selected = _ref.selected,
|
|
@@ -29,12 +30,15 @@ export var useThumbnail = function useThumbnail(_ref) {
|
|
|
29
30
|
size = _ref$size === void 0 ? defaultSize : _ref$size,
|
|
30
31
|
_ref$label = _ref.label,
|
|
31
32
|
label = _ref$label === void 0 ? '' : _ref$label,
|
|
33
|
+
_ref$error = _ref.error,
|
|
34
|
+
error = _ref$error === void 0 ? false : _ref$error,
|
|
32
35
|
name = _ref.name,
|
|
33
36
|
_ref$caption = _ref.caption,
|
|
34
37
|
caption = _ref$caption === void 0 ? '' : _ref$caption,
|
|
35
38
|
onChange = _ref.onChange,
|
|
36
39
|
value = _ref.value,
|
|
37
40
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
+
var i18n = useI18nContext();
|
|
38
42
|
var a11yProps = props.role === 'figure' ? {
|
|
39
43
|
as: 'figure'
|
|
40
44
|
} : {
|
|
@@ -53,14 +57,18 @@ export var useThumbnail = function useThumbnail(_ref) {
|
|
|
53
57
|
var shouldUsePlaceholder = isFileOrNonPreviewableImage || !src;
|
|
54
58
|
var filename = filename_ !== null && filename_ !== void 0 ? filename_ : isFileOrNonPreviewableImage ? src.name : caption;
|
|
55
59
|
var ariaLabel = label && caption ? "".concat(label, " ").concat(caption) : caption || label;
|
|
56
|
-
var
|
|
60
|
+
var errorAriaDescription = error ? resolveThumbnailErrorLabel(i18n, error) : undefined;
|
|
61
|
+
var _useCheckbox = useCheckbox(_objectSpread(_objectSpread({
|
|
57
62
|
isSelected: selected,
|
|
58
63
|
isDisabled: disabled,
|
|
59
|
-
'aria-label': ariaLabel
|
|
64
|
+
'aria-label': ariaLabel
|
|
65
|
+
}, error ? {
|
|
66
|
+
'aria-description': errorAriaDescription
|
|
67
|
+
} : {}), {}, {
|
|
60
68
|
name: name,
|
|
61
69
|
onChange: onChange,
|
|
62
70
|
value: value
|
|
63
|
-
}, toggleState, inputRef),
|
|
71
|
+
}), toggleState, inputRef),
|
|
64
72
|
inputProps = _useCheckbox.inputProps;
|
|
65
73
|
var _useFocusRing = useFocusRing(),
|
|
66
74
|
isFocusVisible = _useFocusRing.isFocusVisible,
|
|
@@ -68,6 +76,8 @@ export var useThumbnail = function useThumbnail(_ref) {
|
|
|
68
76
|
return _objectSpread(_objectSpread(_objectSpread({
|
|
69
77
|
alt: props.alt || props.alt === '' ? props.alt : caption || label
|
|
70
78
|
}, props), a11yProps), {}, {
|
|
79
|
+
error: error,
|
|
80
|
+
errorAriaDescription: errorAriaDescription,
|
|
71
81
|
label: label,
|
|
72
82
|
caption: caption,
|
|
73
83
|
selected: toggleState.isSelected,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thumbnail.hooks.js","names":["useCheckbox","useFocusRing","useRef","useToggleState","getIsFilePreviewableAsImage","defaultSize","useThumbnail","_ref","selected","_ref$disabled","disabled","_ref$clickable","clickable","_ref$focused","focused","_ref$hasCaptionPlaceh","hasCaptionPlaceholder","src","filename_","filename","_ref$size","size","_ref$label","label","name","_ref$caption","caption","onChange","value","props","_objectWithoutProperties","_excluded","a11yProps","role","as","inputRef","toggleState","defaultSelected","layout","isFile","File","isImageURL","canPreviewFileAsImage","isFileOrNonPreviewableImage","shouldUsePlaceholder","ariaLabel","concat","_useCheckbox","isSelected","isDisabled","inputProps","_useFocusRing","isFocusVisible","focusProps","
|
|
1
|
+
{"version":3,"file":"Thumbnail.hooks.js","names":["useCheckbox","useFocusRing","useRef","useToggleState","useI18nContext","getIsFilePreviewableAsImage","resolveThumbnailErrorLabel","defaultSize","useThumbnail","_ref","selected","_ref$disabled","disabled","_ref$clickable","clickable","_ref$focused","focused","_ref$hasCaptionPlaceh","hasCaptionPlaceholder","src","filename_","filename","_ref$size","size","_ref$label","label","_ref$error","error","name","_ref$caption","caption","onChange","value","props","_objectWithoutProperties","_excluded","i18n","a11yProps","role","as","inputRef","toggleState","defaultSelected","layout","isFile","File","isImageURL","canPreviewFileAsImage","isFileOrNonPreviewableImage","shouldUsePlaceholder","ariaLabel","concat","errorAriaDescription","undefined","_useCheckbox","_objectSpread","isSelected","isDisabled","inputProps","_useFocusRing","isFocusVisible","focusProps","alt"],"sources":["../../src/Thumbnail/Thumbnail.hooks.tsx"],"sourcesContent":["import { useCheckbox } from '@react-aria/checkbox'\nimport { useFocusRing } from '@react-aria/focus'\nimport type React from 'react'\nimport { useRef } from 'react'\nimport { useToggleState } from 'react-stately'\nimport { useI18nContext } from '../_hooks/I18n'\nimport type { LayoutVariant, ThumbnailProps } from './Thumbnail.types'\nimport {\n getIsFilePreviewableAsImage,\n resolveThumbnailErrorLabel,\n} from './Thumbnail.utils'\n\nconst defaultSize = 'lg'\n\nexport const useThumbnail = ({\n selected,\n disabled = false,\n clickable = true,\n focused = false,\n hasCaptionPlaceholder = false,\n src,\n filename: filename_,\n size = defaultSize,\n label = '',\n error = false,\n // @ts-ignore Checkbox only\n name,\n caption = '',\n // @ts-ignore Checkbox only\n onChange,\n // @ts-ignore Checkbox only\n value,\n ...props\n}:\n | ThumbnailProps<'checkbox'>\n | ThumbnailProps<'figure'>\n | ThumbnailProps<undefined>) => {\n const i18n = useI18nContext()\n const a11yProps =\n props.role === 'figure'\n ? { as: 'figure' as React.ElementType }\n : { as: 'div' }\n const inputRef = useRef<HTMLInputElement>(null)\n const toggleState = useToggleState({\n defaultSelected: selected,\n onChange,\n })\n const layout: LayoutVariant = size === 'sm' ? 'row' : 'column'\n const isFile = src instanceof File\n const isImageURL = typeof src === 'string'\n const canPreviewFileAsImage = getIsFilePreviewableAsImage(src)\n const isFileOrNonPreviewableImage = isFile && !canPreviewFileAsImage\n const shouldUsePlaceholder = isFileOrNonPreviewableImage || !src\n const filename =\n filename_ ?? (isFileOrNonPreviewableImage ? (src as File).name : caption)\n const ariaLabel = label && caption ? `${label} ${caption}` : caption || label\n const errorAriaDescription = error\n ? resolveThumbnailErrorLabel(i18n, error)\n : undefined\n const { inputProps } = useCheckbox(\n {\n isSelected: selected,\n isDisabled: disabled,\n 'aria-label': ariaLabel,\n ...(error ? { 'aria-description': errorAriaDescription } : {}),\n name,\n onChange,\n value,\n },\n toggleState,\n inputRef\n )\n const { isFocusVisible, focusProps } = useFocusRing()\n\n return {\n alt: props.alt || props.alt === '' ? props.alt : caption || label,\n ...props,\n ...a11yProps,\n error,\n errorAriaDescription,\n label,\n caption,\n selected: toggleState.isSelected,\n disabled,\n clickable,\n focused,\n isImageURL,\n hasCaptionPlaceholder,\n shouldUsePlaceholder,\n src,\n filename,\n size,\n layout,\n inputRef,\n inputProps,\n /**\n * Appeared 23-1-18 https://github.com/procore/core/pull/12250\n * Possible issue with types from React Aria during dependency update\n * > The inferred type of 'useThumbnail' cannot be named without a\n * > reference to '@react-aria/focus/node_modules/@react-types/shared'.\n * > This is likely not portable. A type annotation is necessary.\n */\n focusProps: focusProps as React.HTMLAttributes<HTMLDivElement>,\n isFocusVisible,\n togg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;IAC9DD,cAAc,EAAdA,cAAc;IACdnB,WAAW,EAAXA;EAAW;AAEf,CAAC"}
|
|
@@ -117,7 +117,8 @@ var BasePlaceholder = /*#__PURE__*/React.forwardRef(function BasePlaceholder(pro
|
|
|
117
117
|
$size: thumbnail.size,
|
|
118
118
|
tabIndex: 0,
|
|
119
119
|
role: "group",
|
|
120
|
-
"aria-label": ariaLabel
|
|
120
|
+
"aria-label": ariaLabel,
|
|
121
|
+
"aria-description": thumbnail.errorAriaDescription
|
|
121
122
|
}, wrapperProps), /*#__PURE__*/React.createElement(StyledPlaceholderThumbnail, {
|
|
122
123
|
$focused: thumbnail.focused,
|
|
123
124
|
$disabled: thumbnail.disabled,
|
|
@@ -169,7 +170,8 @@ var FigurePlaceholder = /*#__PURE__*/React.forwardRef(function FigurePlaceholder
|
|
|
169
170
|
$size: thumbnail.size,
|
|
170
171
|
tabIndex: 0,
|
|
171
172
|
role: "group",
|
|
172
|
-
"aria-label": ariaLabel
|
|
173
|
+
"aria-label": ariaLabel,
|
|
174
|
+
"aria-description": thumbnail.errorAriaDescription
|
|
173
175
|
}, wrapperProps), /*#__PURE__*/React.createElement(StyledPlaceholderThumbnail, {
|
|
174
176
|
$focused: thumbnail.focused,
|
|
175
177
|
$disabled: thumbnail.disabled,
|
|
@@ -333,7 +335,8 @@ var BaseThumbnail = /*#__PURE__*/React.forwardRef(function BaseThumbnail(props,
|
|
|
333
335
|
$size: thumbnail.size,
|
|
334
336
|
tabIndex: 0,
|
|
335
337
|
role: "group",
|
|
336
|
-
"aria-label": ariaLabel
|
|
338
|
+
"aria-label": ariaLabel,
|
|
339
|
+
"aria-description": thumbnail.errorAriaDescription
|
|
337
340
|
}, wrapperProps), /*#__PURE__*/React.createElement(StyledImageThumbnail, {
|
|
338
341
|
$focused: thumbnail.focused,
|
|
339
342
|
$disabled: thumbnail.disabled,
|
|
@@ -384,7 +387,8 @@ var FigureThumbnail = /*#__PURE__*/React.forwardRef(function FigureThumbnail(pro
|
|
|
384
387
|
$size: thumbnail.size,
|
|
385
388
|
tabIndex: 0,
|
|
386
389
|
role: "group",
|
|
387
|
-
"aria-label": ariaLabel
|
|
390
|
+
"aria-label": ariaLabel,
|
|
391
|
+
"aria-description": thumbnail.errorAriaDescription
|
|
388
392
|
}, /*#__PURE__*/React.createElement(StyledImageThumbnail, {
|
|
389
393
|
ref: ref,
|
|
390
394
|
$focused: thumbnail.focused,
|