@primer/components 0.0.0-2021113144816 → 0.0.0-2021113204024
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 +986 -0
- package/dist/browser.esm.js +2227 -2
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +2227 -2
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList/Header.js +1 -1
- package/lib/ActionList/Item.js +10 -10
- package/lib/ActionList/List.js +1 -1
- package/lib/ActionList2/Divider.d.ts +2 -3
- package/lib/ActionList2/Divider.js +5 -10
- package/lib/ActionList2/Item.js +6 -22
- package/lib/ActionList2/List.js +2 -12
- package/lib/ActionList2/Selection.js +0 -11
- package/lib/ActionList2/index.d.ts +2 -1
- package/lib/Autocomplete/Autocomplete.d.ts +1 -2
- package/lib/Autocomplete/AutocompleteInput.d.ts +1 -2
- package/lib/Autocomplete/AutocompleteMenu.js +6 -13
- package/lib/Avatar.d.ts +2 -1
- package/lib/Avatar.js +1 -1
- package/lib/BaseStyles.js +20 -2
- package/lib/BorderBox.js +1 -1
- package/lib/Box.js +1 -1
- package/lib/BranchName.d.ts +2 -1
- package/lib/BranchName.js +1 -1
- package/lib/Breadcrumbs.js +3 -3
- package/lib/Button/Button.d.ts +2 -2
- package/lib/Button/Button.js +1 -1
- package/lib/Button/ButtonClose.d.ts +2 -2
- package/lib/Button/ButtonDanger.d.ts +2 -2
- package/lib/Button/ButtonGroup.js +1 -1
- package/lib/Button/ButtonInvisible.d.ts +2 -2
- package/lib/Button/ButtonOutline.d.ts +2 -2
- package/lib/Button/ButtonPrimary.d.ts +2 -2
- package/lib/Checkbox.d.ts +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/CheckboxInputField.d.ts +11 -0
- package/lib/CheckboxInputField.js +73 -0
- package/lib/ChoiceFieldset/ChoiceFieldCaption.d.ts +3 -0
- package/lib/ChoiceFieldset/ChoiceFieldCaption.js +35 -0
- package/lib/ChoiceFieldset/ChoiceFieldLabel.d.ts +3 -0
- package/lib/ChoiceFieldset/ChoiceFieldLabel.js +35 -0
- package/lib/ChoiceFieldset/ChoiceFieldset.d.ts +65 -0
- package/lib/ChoiceFieldset/ChoiceFieldset.js +95 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetDescription.d.ts +3 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetDescription.js +29 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetLegend.d.ts +9 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetLegend.js +44 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetList.d.ts +9 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetList.js +80 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetListContext.d.ts +19 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetListContext.js +15 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetListItem.d.ts +25 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetListItem.js +75 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetValidation.d.ts +6 -0
- package/lib/ChoiceFieldset/ChoiceFieldsetValidation.js +17 -0
- package/lib/ChoiceFieldset/index.d.ts +3 -0
- package/lib/ChoiceFieldset/index.js +23 -0
- package/lib/CircleOcticon.d.ts +35 -35
- package/lib/Details.d.ts +2 -1
- package/lib/Details.js +4 -2
- package/lib/Dialog.d.ts +37 -37
- package/lib/Dropdown.d.ts +72 -8
- package/lib/DropdownMenu/DropdownButton.d.ts +3 -6
- package/lib/FilterList.d.ts +1 -1
- package/lib/FilteredActionList/FilteredActionList.js +1 -1
- package/lib/Flex.js +1 -1
- package/lib/Heading.d.ts +2 -1
- package/lib/Heading.js +6 -1
- package/lib/LabelGroup.js +1 -1
- package/lib/Overlay.js +1 -1
- package/lib/Pagination/Pagination.js +2 -2
- package/lib/Position.d.ts +4 -4
- package/lib/Position.js +1 -1
- package/lib/ProgressBar.d.ts +11 -16
- package/lib/ProgressBar.js +10 -6
- package/lib/RadioInputField.d.ts +9 -0
- package/lib/RadioInputField.js +82 -0
- package/lib/SelectMenu/SelectMenu.d.ts +10 -11
- package/lib/SelectMenu/SelectMenu.js +1 -1
- package/lib/SelectMenu/SelectMenuFilter.js +1 -1
- package/lib/SelectMenu/SelectMenuFooter.js +1 -1
- package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuItem.js +1 -1
- package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuTab.js +1 -1
- package/lib/SelectMenu/SelectMenuTabPanel.js +1 -1
- package/lib/SelectMenu/SelectMenuTabs.js +1 -1
- package/lib/Spinner.d.ts +2 -1
- package/lib/Spinner.js +3 -1
- package/lib/StateLabel.js +1 -1
- package/lib/StyledOcticon.js +1 -1
- package/lib/SubNav.js +3 -3
- package/lib/TextInputField.d.ts +581 -0
- package/lib/TextInputField.js +66 -0
- package/lib/TextInputWithTokens.d.ts +1 -2
- package/lib/ThemeProvider.d.ts +0 -1
- package/lib/ThemeProvider.js +4 -17
- package/lib/Timeline.js +4 -4
- package/lib/Token/AvatarToken.d.ts +1 -1
- package/lib/Token/AvatarToken.js +1 -1
- package/lib/Token/IssueLabelToken.d.ts +1 -1
- package/lib/Token/Token.d.ts +1 -1
- package/lib/Token/TokenBase.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/UnderlineNav.js +2 -2
- package/lib/_InputCaption.d.ts +13 -0
- package/lib/_InputCaption.js +27 -0
- package/lib/_InputField/InputField.d.ts +39 -0
- package/lib/_InputField/InputField.js +90 -0
- package/lib/_InputField/InputFieldCaption.d.ts +3 -0
- package/lib/_InputField/InputFieldCaption.js +30 -0
- package/lib/_InputField/InputFieldLabel.d.ts +9 -0
- package/lib/_InputField/InputFieldLabel.js +34 -0
- package/lib/_InputField/InputFieldValidation.d.ts +6 -0
- package/lib/{ActionList2/MenuContext.js → _InputField/InputFieldValidation.js} +6 -4
- package/lib/_InputField/ToggleInputField.d.ts +13 -0
- package/lib/_InputField/ToggleInputField.js +71 -0
- package/lib/_InputField/ToggleInputLeadingVisual.d.ts +3 -0
- package/lib/_InputField/ToggleInputLeadingVisual.js +22 -0
- package/lib/_InputField/ValidationAnimationContainer.d.ts +6 -0
- package/lib/_InputField/ValidationAnimationContainer.js +48 -0
- package/lib/_InputField/index.d.ts +1 -0
- package/lib/_InputField/index.js +15 -0
- package/lib/_InputField/slots.d.ts +13 -0
- package/lib/_InputField/slots.js +17 -0
- package/lib/_InputLabel.d.ts +8 -0
- package/lib/_InputLabel.js +44 -0
- package/lib/_InputValidation.d.ts +8 -0
- package/lib/_InputValidation.js +56 -0
- package/lib/_VisuallyHidden.d.ts +6 -0
- package/lib/_VisuallyHidden.js +39 -0
- package/lib/drafts.d.ts +0 -1
- package/lib/drafts.js +0 -13
- package/lib/index.d.ts +4 -0
- package/lib/index.js +38 -0
- package/lib/utils/types/FormValidationStatus.d.ts +1 -0
- package/lib/utils/types/FormValidationStatus.js +1 -0
- package/lib-esm/ActionList/Header.js +1 -1
- package/lib-esm/ActionList/Item.js +10 -10
- package/lib-esm/ActionList/List.js +1 -1
- package/lib-esm/ActionList2/Divider.d.ts +2 -3
- package/lib-esm/ActionList2/Divider.js +5 -8
- package/lib-esm/ActionList2/Item.js +6 -20
- package/lib-esm/ActionList2/List.js +2 -10
- package/lib-esm/ActionList2/Selection.js +0 -9
- package/lib-esm/ActionList2/index.d.ts +2 -1
- package/lib-esm/Autocomplete/Autocomplete.d.ts +1 -2
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +1 -2
- package/lib-esm/Autocomplete/AutocompleteMenu.js +3 -13
- package/lib-esm/Avatar.d.ts +2 -1
- package/lib-esm/Avatar.js +2 -2
- package/lib-esm/BaseStyles.js +20 -2
- package/lib-esm/BorderBox.js +1 -1
- package/lib-esm/Box.js +1 -1
- package/lib-esm/BranchName.d.ts +2 -1
- package/lib-esm/BranchName.js +2 -2
- package/lib-esm/Breadcrumbs.js +3 -3
- package/lib-esm/Button/Button.d.ts +2 -2
- package/lib-esm/Button/Button.js +1 -1
- package/lib-esm/Button/ButtonClose.d.ts +2 -2
- package/lib-esm/Button/ButtonDanger.d.ts +2 -2
- package/lib-esm/Button/ButtonGroup.js +1 -1
- package/lib-esm/Button/ButtonInvisible.d.ts +2 -2
- package/lib-esm/Button/ButtonOutline.d.ts +2 -2
- package/lib-esm/Button/ButtonPrimary.d.ts +2 -2
- package/lib-esm/Checkbox.d.ts +1 -1
- package/lib-esm/Checkbox.js +1 -1
- package/lib-esm/CheckboxInputField.d.ts +11 -0
- package/lib-esm/CheckboxInputField.js +56 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldCaption.d.ts +3 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldCaption.js +20 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldLabel.d.ts +3 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldLabel.js +20 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldset.d.ts +65 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldset.js +72 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetDescription.d.ts +3 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetDescription.js +17 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetLegend.d.ts +9 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetLegend.js +31 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetList.d.ts +9 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetList.js +63 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetListContext.d.ts +19 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetListContext.js +5 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetListItem.d.ts +25 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetListItem.js +51 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetValidation.d.ts +6 -0
- package/lib-esm/ChoiceFieldset/ChoiceFieldsetValidation.js +7 -0
- package/lib-esm/ChoiceFieldset/index.d.ts +3 -0
- package/lib-esm/ChoiceFieldset/index.js +2 -0
- package/lib-esm/CircleOcticon.d.ts +35 -35
- package/lib-esm/Details.d.ts +2 -1
- package/lib-esm/Details.js +3 -2
- package/lib-esm/Dialog.d.ts +37 -37
- package/lib-esm/Dropdown.d.ts +72 -8
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +3 -6
- package/lib-esm/FilterList.d.ts +1 -1
- package/lib-esm/FilteredActionList/FilteredActionList.js +1 -1
- package/lib-esm/Flex.js +1 -1
- package/lib-esm/Heading.d.ts +2 -1
- package/lib-esm/Heading.js +6 -2
- package/lib-esm/LabelGroup.js +1 -1
- package/lib-esm/Overlay.js +1 -1
- package/lib-esm/Pagination/Pagination.js +2 -2
- package/lib-esm/Position.d.ts +4 -4
- package/lib-esm/Position.js +1 -1
- package/lib-esm/ProgressBar.d.ts +11 -16
- package/lib-esm/ProgressBar.js +11 -7
- package/lib-esm/RadioInputField.d.ts +9 -0
- package/lib-esm/RadioInputField.js +65 -0
- package/lib-esm/SelectMenu/SelectMenu.d.ts +10 -11
- package/lib-esm/SelectMenu/SelectMenu.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuFilter.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuFooter.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuItem.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuTab.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuTabPanel.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuTabs.js +1 -1
- package/lib-esm/Spinner.d.ts +2 -1
- package/lib-esm/Spinner.js +2 -1
- package/lib-esm/StateLabel.js +1 -1
- package/lib-esm/StyledOcticon.js +1 -1
- package/lib-esm/SubNav.js +3 -3
- package/lib-esm/TextInputField.d.ts +581 -0
- package/lib-esm/TextInputField.js +50 -0
- package/lib-esm/TextInputWithTokens.d.ts +1 -2
- package/lib-esm/ThemeProvider.d.ts +0 -1
- package/lib-esm/ThemeProvider.js +4 -17
- package/lib-esm/Timeline.js +4 -4
- package/lib-esm/Token/AvatarToken.d.ts +1 -1
- package/lib-esm/Token/AvatarToken.js +1 -1
- package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
- package/lib-esm/Token/Token.d.ts +1 -1
- package/lib-esm/Token/TokenBase.js +1 -1
- package/lib-esm/Tooltip.js +1 -1
- package/lib-esm/UnderlineNav.js +2 -2
- package/lib-esm/_InputCaption.d.ts +13 -0
- package/lib-esm/_InputCaption.js +16 -0
- package/lib-esm/_InputField/InputField.d.ts +39 -0
- package/lib-esm/_InputField/InputField.js +70 -0
- package/lib-esm/_InputField/InputFieldCaption.d.ts +3 -0
- package/lib-esm/_InputField/InputFieldCaption.js +18 -0
- package/lib-esm/_InputField/InputFieldLabel.d.ts +9 -0
- package/lib-esm/_InputField/InputFieldLabel.js +22 -0
- package/lib-esm/_InputField/InputFieldValidation.d.ts +6 -0
- package/lib-esm/_InputField/InputFieldValidation.js +7 -0
- package/lib-esm/_InputField/ToggleInputField.d.ts +13 -0
- package/lib-esm/_InputField/ToggleInputField.js +54 -0
- package/lib-esm/_InputField/ToggleInputLeadingVisual.d.ts +3 -0
- package/lib-esm/_InputField/ToggleInputLeadingVisual.js +11 -0
- package/lib-esm/_InputField/ValidationAnimationContainer.d.ts +6 -0
- package/lib-esm/_InputField/ValidationAnimationContainer.js +33 -0
- package/lib-esm/_InputField/index.d.ts +1 -0
- package/lib-esm/_InputField/index.js +1 -0
- package/lib-esm/_InputField/slots.d.ts +13 -0
- package/lib-esm/_InputField/slots.js +5 -0
- package/lib-esm/_InputLabel.d.ts +8 -0
- package/lib-esm/_InputLabel.js +32 -0
- package/lib-esm/_InputValidation.d.ts +8 -0
- package/lib-esm/_InputValidation.js +43 -0
- package/lib-esm/_VisuallyHidden.d.ts +6 -0
- package/lib-esm/_VisuallyHidden.js +26 -0
- package/lib-esm/drafts.d.ts +0 -1
- package/lib-esm/drafts.js +1 -2
- package/lib-esm/index.d.ts +4 -0
- package/lib-esm/index.js +4 -0
- package/lib-esm/utils/types/FormValidationStatus.d.ts +1 -0
- package/lib-esm/utils/types/FormValidationStatus.js +1 -0
- package/package.json +9 -17
- package/lib/ActionList2/MenuContext.d.ts +0 -10
- package/lib/ActionMenu2.d.ts +0 -313
- package/lib/ActionMenu2.js +0 -91
- package/lib-esm/ActionList2/MenuContext.d.ts +0 -10
- package/lib-esm/ActionList2/MenuContext.js +0 -3
- package/lib-esm/ActionMenu2.d.ts +0 -313
- package/lib-esm/ActionMenu2.js +0 -67
package/lib/ActionList/Header.js
CHANGED
@@ -24,7 +24,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
24
24
|
|
25
25
|
const StyledHeader = _styledComponents.default.div.withConfig({
|
26
26
|
displayName: "Header__StyledHeader",
|
27
|
-
componentId: "
|
27
|
+
componentId: "qmofje-0"
|
28
28
|
})(["{}padding:6px ", ";font-size:", ";font-weight:", ";color:", ";", " ", ""], (0, _constants.get)('space.3'), (0, _constants.get)('fontSizes.0'), (0, _constants.get)('fontWeights.bold'), (0, _constants.get)('colors.fg.muted'), ({
|
29
29
|
variant
|
30
30
|
}) => variant === 'filled' && (0, _styledComponents.css)(["background:", ";margin:", " 0;border-top:1px solid ", ";border-bottom:1px solid ", ";&:first-child{margin-top:0;}"], (0, _constants.get)('colors.canvas.subtle'), (0, _constants.get)('space.2'), (0, _constants.get)('colors.neutral.muted'), (0, _constants.get)('colors.neutral.muted')), _sx.default);
|
package/lib/ActionList/Item.js
CHANGED
@@ -71,17 +71,17 @@ const getItemVariant = (variant = 'default', disabled) => {
|
|
71
71
|
|
72
72
|
const DividedContent = _styledComponents.default.div.withConfig({
|
73
73
|
displayName: "Item__DividedContent",
|
74
|
-
componentId: "
|
74
|
+
componentId: "jqpvy8-0"
|
75
75
|
})(["display:flex;min-width:0;position:relative;flex-grow:1;"]);
|
76
76
|
|
77
77
|
const MainContent = _styledComponents.default.div.withConfig({
|
78
78
|
displayName: "Item__MainContent",
|
79
|
-
componentId: "
|
79
|
+
componentId: "jqpvy8-1"
|
80
80
|
})(["align-items:baseline;display:flex;min-width:0;flex-direction:var(--main-content-flex-direction);flex-grow:1;"]);
|
81
81
|
|
82
82
|
const StyledItem = _styledComponents.default.div.withConfig({
|
83
83
|
displayName: "Item__StyledItem",
|
84
|
-
componentId: "
|
84
|
+
componentId: "jqpvy8-2"
|
85
85
|
})(["padding:6px ", ";display:flex;border-radius:", ";color:", ";transition:background 33.333ms linear;text-decoration:none;@media (hover:hover) and (pointer:fine){:hover{background:var( --item-hover-bg-override,", " );color:", ";cursor:", ";}}:not(:first-of-type):not(", " + &):not(", " + &){margin-top:", ";", "::before{content:' ';display:block;position:absolute;width:100%;top:-7px;border:0 solid ", ";border-top-width:", ";}}&:hover ", "::before,:hover + * ", "::before{border-color:var(--item-hover-divider-border-color-override,transparent) !important;}&:focus ", "::before,:focus + * ", "::before,&[", "] ", "::before,[", "] + & ", "::before{border-color:transparent !important;}&[", "='", "']{background:", ";}&[", "='", "']{background:", ";}&:focus{background:", ";outline:none;}&:active{background:", ";}", ""], (0, _constants.get)('space.2'), (0, _constants.get)('radii.2'), ({
|
86
86
|
variant,
|
87
87
|
item
|
@@ -114,30 +114,30 @@ const StyledItem = _styledComponents.default.div.withConfig({
|
|
114
114
|
|
115
115
|
const TextContainer = _styledComponents.default.span.withConfig({
|
116
116
|
displayName: "Item__TextContainer",
|
117
|
-
componentId: "
|
117
|
+
componentId: "jqpvy8-3"
|
118
118
|
})([""]);
|
119
119
|
|
120
120
|
exports.TextContainer = TextContainer;
|
121
121
|
|
122
122
|
const BaseVisualContainer = _styledComponents.default.div.withConfig({
|
123
123
|
displayName: "Item__BaseVisualContainer",
|
124
|
-
componentId: "
|
124
|
+
componentId: "jqpvy8-4"
|
125
125
|
})(["height:20px;width:", ";margin-right:", ";display:flex;justify-content:center;align-items:center;flex-shrink:0;"], (0, _constants.get)('space.3'), (0, _constants.get)('space.2'));
|
126
126
|
|
127
127
|
const ColoredVisualContainer = (0, _styledComponents.default)(BaseVisualContainer).withConfig({
|
128
128
|
displayName: "Item__ColoredVisualContainer",
|
129
|
-
componentId: "
|
129
|
+
componentId: "jqpvy8-5"
|
130
130
|
})(["svg{fill:", ";font-size:", ";}"], ({
|
131
131
|
variant,
|
132
132
|
disabled
|
133
133
|
}) => getItemVariant(variant, disabled).iconColor, (0, _constants.get)('fontSizes.0'));
|
134
134
|
const LeadingVisualContainer = (0, _styledComponents.default)(ColoredVisualContainer).withConfig({
|
135
135
|
displayName: "Item__LeadingVisualContainer",
|
136
|
-
componentId: "
|
136
|
+
componentId: "jqpvy8-6"
|
137
137
|
})(["display:flex;flex-direction:column;justify-content:center;"]);
|
138
138
|
const TrailingContent = (0, _styledComponents.default)(ColoredVisualContainer).withConfig({
|
139
139
|
displayName: "Item__TrailingContent",
|
140
|
-
componentId: "
|
140
|
+
componentId: "jqpvy8-7"
|
141
141
|
})(["color:", "};margin-left:", ";margin-right:0;width:auto;div:nth-child(2){margin-left:", ";}"], ({
|
142
142
|
variant,
|
143
143
|
disabled
|
@@ -145,12 +145,12 @@ const TrailingContent = (0, _styledComponents.default)(ColoredVisualContainer).w
|
|
145
145
|
|
146
146
|
const DescriptionContainer = _styledComponents.default.span.withConfig({
|
147
147
|
displayName: "Item__DescriptionContainer",
|
148
|
-
componentId: "
|
148
|
+
componentId: "jqpvy8-8"
|
149
149
|
})(["color:", ";font-size:", ";line-height:16px;margin-left:var(--description-container-margin-left);min-width:0;flex-grow:1;flex-basis:var(--description-container-flex-basis);"], (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('fontSizes.0'));
|
150
150
|
|
151
151
|
const MultiSelectIcon = _styledComponents.default.svg.withConfig({
|
152
152
|
displayName: "Item__MultiSelectIcon",
|
153
|
-
componentId: "
|
153
|
+
componentId: "jqpvy8-9"
|
154
154
|
})(["rect{fill:", ";stroke:", ";shape-rendering:auto;}path{fill:", ";boxshadow:", ";opacity:", ";}"], ({
|
155
155
|
selected
|
156
156
|
}) => selected ? (0, _constants.get)('colors.accent.fg') : (0, _constants.get)('colors.canvas.default'), ({
|
package/lib/ActionList/List.js
CHANGED
@@ -37,7 +37,7 @@ function isGroupedListProps(props) {
|
|
37
37
|
|
38
38
|
const StyledList = _styledComponents.default.div.withConfig({
|
39
39
|
displayName: "List__StyledList",
|
40
|
-
componentId: "
|
40
|
+
componentId: "yr2k7d-0"
|
41
41
|
})(["font-size:", ";line-height:20px;&[", "],&:focus-within{--item-hover-bg-override:none;--item-hover-divider-border-color-override:", ";}"], (0, _constants.get)('fontSizes.1'), _focusZone.hasActiveDescendantAttribute, (0, _constants.get)('colors.border.muted'));
|
42
42
|
/**
|
43
43
|
* Returns `sx` prop values for `List` children matching the given `List` style variation.
|
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
|
-
import { SxProp } from '../sx';
|
1
|
+
/// <reference types="react" />
|
3
2
|
/**
|
4
3
|
* Visually separates `Item`s or `Group`s in an `ActionList`.
|
5
4
|
*/
|
6
|
-
export declare
|
5
|
+
export declare function Divider(): JSX.Element;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Divider =
|
6
|
+
exports.Divider = Divider;
|
7
7
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
9
9
|
|
@@ -11,30 +11,25 @@ var _Box = _interopRequireDefault(require("../Box"));
|
|
11
11
|
|
12
12
|
var _constants = require("../constants");
|
13
13
|
|
14
|
-
var _sx = require("../sx");
|
15
|
-
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
15
|
|
18
16
|
/**
|
19
17
|
* Visually separates `Item`s or `Group`s in an `ActionList`.
|
20
18
|
*/
|
21
|
-
|
22
|
-
sx = {}
|
23
|
-
}) => {
|
19
|
+
function Divider() {
|
24
20
|
return /*#__PURE__*/_react.default.createElement(_Box.default, {
|
25
21
|
as: "li",
|
26
22
|
role: "separator",
|
27
|
-
sx:
|
23
|
+
sx: {
|
28
24
|
height: 1,
|
29
25
|
backgroundColor: 'actionListItem.inlineDivider',
|
30
26
|
marginTop: theme => `calc(${(0, _constants.get)('space.2')(theme)} - 1px)`,
|
31
27
|
marginBottom: 2,
|
32
28
|
listStyle: 'none' // hide the ::marker inserted by browser's stylesheet
|
33
29
|
|
34
|
-
},
|
30
|
+
},
|
35
31
|
"data-component": "ActionList.Divider"
|
36
32
|
});
|
37
|
-
}
|
33
|
+
}
|
38
34
|
|
39
|
-
exports.Divider = Divider;
|
40
35
|
Divider.displayName = "Divider";
|
package/lib/ActionList2/Item.js
CHANGED
@@ -21,8 +21,6 @@ var _createSlots = _interopRequireDefault(require("../utils/create-slots"));
|
|
21
21
|
|
22
22
|
var _List = require("./List");
|
23
23
|
|
24
|
-
var _MenuContext = require("./MenuContext");
|
25
|
-
|
26
24
|
var _Selection = require("./Selection");
|
27
25
|
|
28
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
@@ -70,7 +68,7 @@ exports.Slot = Slot;
|
|
70
68
|
|
71
69
|
const LiBox = _styledComponents.default.li.withConfig({
|
72
70
|
displayName: "Item__LiBox",
|
73
|
-
componentId: "
|
71
|
+
componentId: "c3scat-0"
|
74
72
|
})(_sx.default);
|
75
73
|
|
76
74
|
const TEXT_ROW_HEIGHT = '20px'; // custom value off the scale
|
@@ -84,7 +82,6 @@ const Item = /*#__PURE__*/_react.default.forwardRef(({
|
|
84
82
|
onSelect,
|
85
83
|
sx: sxProp = {},
|
86
84
|
id,
|
87
|
-
role,
|
88
85
|
_PrivateItemWrapper,
|
89
86
|
...props
|
90
87
|
}, forwardedRef) => {
|
@@ -93,11 +90,6 @@ const Item = /*#__PURE__*/_react.default.forwardRef(({
|
|
93
90
|
showDividers
|
94
91
|
} = _react.default.useContext(_List.ListContext);
|
95
92
|
|
96
|
-
const {
|
97
|
-
itemRole,
|
98
|
-
afterSelect
|
99
|
-
} = _react.default.useContext(_MenuContext.MenuContext);
|
100
|
-
|
101
93
|
const {
|
102
94
|
theme
|
103
95
|
} = (0, _ThemeProvider.useTheme)();
|
@@ -173,24 +165,17 @@ const Item = /*#__PURE__*/_react.default.forwardRef(({
|
|
173
165
|
const clickHandler = _react.default.useCallback(event => {
|
174
166
|
if (typeof onSelect !== 'function') return;
|
175
167
|
if (disabled) return;
|
176
|
-
|
177
|
-
|
178
|
-
onSelect(event); // if this Item is inside a Menu, close the Menu
|
179
|
-
|
180
|
-
if (typeof afterSelect === 'function') afterSelect();
|
181
|
-
}
|
182
|
-
}, [onSelect, disabled, afterSelect]);
|
168
|
+
if (!event.defaultPrevented) onSelect(event);
|
169
|
+
}, [onSelect, disabled]);
|
183
170
|
|
184
171
|
const keyPressHandler = _react.default.useCallback(event => {
|
185
172
|
if (typeof onSelect !== 'function') return;
|
186
173
|
if (disabled) return;
|
187
174
|
|
188
175
|
if (!event.defaultPrevented && [' ', 'Enter'].includes(event.key)) {
|
189
|
-
onSelect(event);
|
190
|
-
|
191
|
-
if (typeof afterSelect === 'function') afterSelect();
|
176
|
+
onSelect(event);
|
192
177
|
}
|
193
|
-
}, [onSelect, disabled
|
178
|
+
}, [onSelect, disabled]); // use props.id if provided, otherwise generate one.
|
194
179
|
|
195
180
|
|
196
181
|
const labelId = (0, _ssr.useSSRSafeId)(id);
|
@@ -213,8 +198,7 @@ const Item = /*#__PURE__*/_react.default.forwardRef(({
|
|
213
198
|
"aria-disabled": disabled ? true : undefined,
|
214
199
|
tabIndex: disabled || _PrivateItemWrapper ? undefined : 0,
|
215
200
|
"aria-labelledby": `${labelId} ${slots.InlineDescription ? inlineDescriptionId : ''}`,
|
216
|
-
"aria-describedby": slots.BlockDescription ? blockDescriptionId : undefined
|
217
|
-
role: role || itemRole
|
201
|
+
"aria-describedby": slots.BlockDescription ? blockDescriptionId : undefined
|
218
202
|
}, props), /*#__PURE__*/_react.default.createElement(ItemWrapper, null, /*#__PURE__*/_react.default.createElement(_Selection.Selection, {
|
219
203
|
selected: selected
|
220
204
|
}), slots.LeadingVisual, /*#__PURE__*/_react.default.createElement(_Box.default, {
|
package/lib/ActionList2/List.js
CHANGED
@@ -11,8 +11,6 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
11
|
|
12
12
|
var _sx = _interopRequireWildcard(require("../sx"));
|
13
13
|
|
14
|
-
var _MenuContext = require("./MenuContext");
|
15
|
-
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
17
15
|
|
18
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
@@ -27,14 +25,13 @@ exports.ListContext = ListContext;
|
|
27
25
|
|
28
26
|
const ListBox = _styledComponents.default.ul.withConfig({
|
29
27
|
displayName: "List__ListBox",
|
30
|
-
componentId: "
|
28
|
+
componentId: "cvbq60-0"
|
31
29
|
})(_sx.default);
|
32
30
|
|
33
31
|
const List = /*#__PURE__*/_react.default.forwardRef(({
|
34
32
|
variant = 'inset',
|
35
33
|
selectionVariant,
|
36
34
|
showDividers = false,
|
37
|
-
role,
|
38
35
|
sx: sxProp = {},
|
39
36
|
...props
|
40
37
|
}, forwardedRef) => {
|
@@ -44,15 +41,8 @@ const List = /*#__PURE__*/_react.default.forwardRef(({
|
|
44
41
|
// reset ul styles
|
45
42
|
paddingY: variant === 'inset' ? 2 : 0
|
46
43
|
};
|
47
|
-
/** if list is inside a Menu, it will get a role from the Menu */
|
48
|
-
|
49
|
-
const {
|
50
|
-
listRole
|
51
|
-
} = _react.default.useContext(_MenuContext.MenuContext);
|
52
|
-
|
53
44
|
return /*#__PURE__*/_react.default.createElement(ListBox, _extends({
|
54
|
-
sx: (0, _sx.merge)(styles, sxProp)
|
55
|
-
role: role || listRole
|
45
|
+
sx: (0, _sx.merge)(styles, sxProp)
|
56
46
|
}, props, {
|
57
47
|
ref: forwardedRef
|
58
48
|
}), /*#__PURE__*/_react.default.createElement(ListContext.Provider, {
|
@@ -13,8 +13,6 @@ var _List = require("./List");
|
|
13
13
|
|
14
14
|
var _Group = require("./Group");
|
15
15
|
|
16
|
-
var _MenuContext = require("./MenuContext");
|
17
|
-
|
18
16
|
var _Visuals = require("./Visuals");
|
19
17
|
|
20
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
@@ -29,10 +27,6 @@ const Selection = ({
|
|
29
27
|
const {
|
30
28
|
selectionVariant: groupSelectionVariant
|
31
29
|
} = _react.default.useContext(_Group.GroupContext);
|
32
|
-
|
33
|
-
const {
|
34
|
-
parent
|
35
|
-
} = _react.default.useContext(_MenuContext.MenuContext);
|
36
30
|
/** selectionVariant in Group can override the selectionVariant in List root */
|
37
31
|
|
38
32
|
|
@@ -44,11 +38,6 @@ const Selection = ({
|
|
44
38
|
return null;
|
45
39
|
}
|
46
40
|
|
47
|
-
if (parent === 'ActionMenu') {
|
48
|
-
throw new Error('ActionList cannot have a selectionVariant inside ActionMenu, please use DropdownMenu or SelectPanel instead. More information: https://primer.style/design/components/action-list#application');
|
49
|
-
return null;
|
50
|
-
}
|
51
|
-
|
52
41
|
if (selectionVariant === 'single') {
|
53
42
|
return /*#__PURE__*/_react.default.createElement(_Visuals.LeadingVisualContainer, null, selected && /*#__PURE__*/_react.default.createElement(_octiconsReact.CheckIcon, null));
|
54
43
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { Divider } from './Divider';
|
2
3
|
export type { ListProps as ActionListProps } from './List';
|
3
4
|
export type { GroupProps } from './Group';
|
4
5
|
export type { ItemProps } from './Item';
|
@@ -25,7 +26,7 @@ export declare const ActionList: import("@radix-ui/react-polymorphic").ForwardRe
|
|
25
26
|
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
26
27
|
}>;
|
27
28
|
/** Visually separates `Item`s or `Group`s in an `ActionList`. */
|
28
|
-
Divider:
|
29
|
+
Divider: typeof Divider;
|
29
30
|
/** Secondary text which provides additional information about an `Item`. */
|
30
31
|
Description: import("react").FC<import("./Description").DescriptionProps>;
|
31
32
|
/** Icon (or similar) positioned before `Item` text. */
|
@@ -15,7 +15,6 @@ declare const _default: React.FC<{
|
|
15
15
|
Input: import("@radix-ui/react-polymorphic").ForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
|
16
16
|
[x: string]: any;
|
17
17
|
[x: number]: any;
|
18
|
-
[x: symbol]: any;
|
19
18
|
} & {
|
20
19
|
theme?: any;
|
21
20
|
} & {
|
@@ -28,7 +27,6 @@ declare const _default: React.FC<{
|
|
28
27
|
}> | undefined;
|
29
28
|
} & Pick<{
|
30
29
|
color?: string | undefined;
|
31
|
-
property?: string | undefined;
|
32
30
|
maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
33
31
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
34
32
|
translate?: "yes" | "no" | undefined;
|
@@ -64,6 +62,7 @@ declare const _default: React.FC<{
|
|
64
62
|
datatype?: string | undefined;
|
65
63
|
inlist?: any;
|
66
64
|
prefix?: string | undefined;
|
65
|
+
property?: string | undefined;
|
67
66
|
resource?: string | undefined;
|
68
67
|
typeof?: string | undefined;
|
69
68
|
vocab?: string | undefined;
|
@@ -7,7 +7,6 @@ declare type InternalAutocompleteInputProps = {
|
|
7
7
|
declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRefExoticComponent<Pick<Omit<Pick<{
|
8
8
|
[x: string]: any;
|
9
9
|
[x: number]: any;
|
10
|
-
[x: symbol]: any;
|
11
10
|
} & {
|
12
11
|
theme?: any;
|
13
12
|
} & {
|
@@ -20,7 +19,6 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
20
19
|
}> | undefined;
|
21
20
|
} & Pick<{
|
22
21
|
color?: string | undefined;
|
23
|
-
property?: string | undefined;
|
24
22
|
maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
25
23
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
26
24
|
translate?: "yes" | "no" | undefined;
|
@@ -56,6 +54,7 @@ declare const AutocompleteInput: PolymorphicForwardRefComponent<React.ForwardRef
|
|
56
54
|
datatype?: string | undefined;
|
57
55
|
inlist?: any;
|
58
56
|
prefix?: string | undefined;
|
57
|
+
property?: string | undefined;
|
59
58
|
resource?: string | undefined;
|
60
59
|
typeof?: string | undefined;
|
61
60
|
vocab?: string | undefined;
|
@@ -21,6 +21,10 @@ var _uniqueId = require("../utils/uniqueId");
|
|
21
21
|
|
22
22
|
var _scrollIntoViewingArea = require("../behaviors/scrollIntoViewingArea");
|
23
23
|
|
24
|
+
var _VisuallyHidden = _interopRequireDefault(require("../_VisuallyHidden"));
|
25
|
+
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
27
|
+
|
24
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
25
29
|
|
26
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
@@ -182,19 +186,8 @@ function AutocompleteMenu(props) {
|
|
182
186
|
setSelectedItemLength(selectedItemIds.length);
|
183
187
|
}
|
184
188
|
}, [selectedItemIds, setSelectedItemLength]);
|
185
|
-
return /*#__PURE__*/_react.default.createElement(
|
186
|
-
|
187
|
-
// visually hides this label for sighted users
|
188
|
-
position: 'absolute',
|
189
|
-
width: '1px',
|
190
|
-
height: '1px',
|
191
|
-
padding: '0',
|
192
|
-
margin: '-1px',
|
193
|
-
overflow: 'hidden',
|
194
|
-
clip: 'rect(0, 0, 0, 0)',
|
195
|
-
whiteSpace: 'nowrap',
|
196
|
-
borderWidth: '0'
|
197
|
-
} : {}
|
189
|
+
return /*#__PURE__*/_react.default.createElement(_VisuallyHidden.default, {
|
190
|
+
isVisible: showMenu
|
198
191
|
}, loading ? /*#__PURE__*/_react.default.createElement(_.Box, {
|
199
192
|
p: 3,
|
200
193
|
display: "flex",
|
package/lib/Avatar.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { SystemCommonProps } from './constants';
|
1
2
|
import { SxProp } from './sx';
|
2
3
|
import { ComponentProps } from './utils/types';
|
3
4
|
declare const Avatar: import("styled-components").StyledComponent<"img", any, {
|
@@ -9,6 +10,6 @@ declare const Avatar: import("styled-components").StyledComponent<"img", any, {
|
|
9
10
|
src: string;
|
10
11
|
/** Provide alt text when the Avatar is used without the user's name next to it. */
|
11
12
|
alt?: string | undefined;
|
12
|
-
} & SxProp, never>;
|
13
|
+
} & SystemCommonProps & SxProp, never>;
|
13
14
|
export declare type AvatarProps = ComponentProps<typeof Avatar>;
|
14
15
|
export default Avatar;
|
package/lib/Avatar.js
CHANGED
@@ -30,7 +30,7 @@ const Avatar = _styledComponents.default.img.attrs(props => ({
|
|
30
30
|
})).withConfig({
|
31
31
|
displayName: "Avatar",
|
32
32
|
componentId: "sc-1waaaky-0"
|
33
|
-
})(["display:inline-block;overflow:hidden;line-height:", ";vertical-align:middle;border-radius:", ";", ""], (0, _constants.get)('lineHeights.condensedUltra'), props => getBorderRadius(props), _sx.default);
|
33
|
+
})(["display:inline-block;overflow:hidden;line-height:", ";vertical-align:middle;border-radius:", ";", ";", ""], (0, _constants.get)('lineHeights.condensedUltra'), props => getBorderRadius(props), _constants.COMMON, _sx.default);
|
34
34
|
|
35
35
|
Avatar.defaultProps = {
|
36
36
|
size: 20,
|
package/lib/BaseStyles.js
CHANGED
@@ -19,11 +19,29 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
19
19
|
|
20
20
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
21
21
|
|
22
|
-
const GlobalStyle = (0, _styledComponents.createGlobalStyle)
|
22
|
+
const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
|
23
|
+
* { box-sizing: border-box; }
|
24
|
+
body { margin: 0; }
|
25
|
+
table { border-collapse: collapse; }
|
26
|
+
|
27
|
+
[role="button"]:focus:not(:focus-visible):not(.focus-visible),
|
28
|
+
[role="tabpanel"][tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),
|
29
|
+
button:focus:not(:focus-visible):not(.focus-visible),
|
30
|
+
summary:focus:not(:focus-visible):not(.focus-visible),
|
31
|
+
a:focus:not(:focus-visible):not(.focus-visible) {
|
32
|
+
outline: none;
|
33
|
+
box-shadow: none;
|
34
|
+
}
|
35
|
+
|
36
|
+
[tabindex="0"]:focus:not(:focus-visible):not(.focus-visible),
|
37
|
+
details-dialog:focus:not(:focus-visible):not(.focus-visible) {
|
38
|
+
outline: none;
|
39
|
+
}
|
40
|
+
`;
|
23
41
|
|
24
42
|
const Base = _styledComponents.default.div.withConfig({
|
25
43
|
displayName: "BaseStyles__Base",
|
26
|
-
componentId: "
|
44
|
+
componentId: "qvuaww-0"
|
27
45
|
})(["", ";", ";"], _constants.TYPOGRAPHY, _constants.COMMON);
|
28
46
|
|
29
47
|
function BaseStyles(props) {
|
package/lib/BorderBox.js
CHANGED
@@ -16,7 +16,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
16
16
|
*/
|
17
17
|
const BorderBox = (0, _styledComponents.default)(_Box.default).withConfig({
|
18
18
|
displayName: "BorderBox",
|
19
|
-
componentId: "
|
19
|
+
componentId: "oreju5-0"
|
20
20
|
})([""]);
|
21
21
|
BorderBox.defaultProps = {
|
22
22
|
borderWidth: '1px',
|
package/lib/Box.js
CHANGED
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
15
15
|
|
16
16
|
const Box = _styledComponents.default.div.withConfig({
|
17
17
|
displayName: "Box",
|
18
|
-
componentId: "
|
18
|
+
componentId: "nv15kw-0"
|
19
19
|
})(_styledSystem.space, _styledSystem.color, _styledSystem.typography, _styledSystem.layout, _styledSystem.flexbox, _styledSystem.grid, _styledSystem.background, _styledSystem.border, _styledSystem.position, _styledSystem.shadow, _sx.default);
|
20
20
|
|
21
21
|
var _default = Box;
|
package/lib/BranchName.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
import { SystemCommonProps } from './constants';
|
1
2
|
import { SxProp } from './sx';
|
2
3
|
import { ComponentProps } from './utils/types';
|
3
|
-
declare const BranchName: import("styled-components").StyledComponent<"a", any, SxProp, never>;
|
4
|
+
declare const BranchName: import("styled-components").StyledComponent<"a", any, SystemCommonProps & SxProp, never>;
|
4
5
|
export declare type BranchNameProps = ComponentProps<typeof BranchName>;
|
5
6
|
export default BranchName;
|
package/lib/BranchName.js
CHANGED
@@ -16,7 +16,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
16
16
|
const BranchName = _styledComponents.default.a.withConfig({
|
17
17
|
displayName: "BranchName",
|
18
18
|
componentId: "sc-167ouzm-0"
|
19
|
-
})(["display:inline-block;padding:2px 6px;font-size:", ";font-family:", ";color:", ";background-color:", ";border-radius:", ";", ";"], (0, _constants.get)('fontSizes.0'), (0, _constants.get)('fonts.mono'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.accent.subtle'), (0, _constants.get)('radii.2'), _sx.default);
|
19
|
+
})(["display:inline-block;padding:2px 6px;font-size:", ";font-family:", ";color:", ";background-color:", ";border-radius:", ";", ";", ";"], (0, _constants.get)('fontSizes.0'), (0, _constants.get)('fonts.mono'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.accent.subtle'), (0, _constants.get)('radii.2'), _constants.COMMON, _sx.default);
|
20
20
|
|
21
21
|
var _default = BranchName;
|
22
22
|
exports.default = _default;
|
package/lib/Breadcrumbs.js
CHANGED
@@ -23,12 +23,12 @@ const SELECTED_CLASS = 'selected';
|
|
23
23
|
|
24
24
|
const Wrapper = _styledComponents.default.li.withConfig({
|
25
25
|
displayName: "Breadcrumbs__Wrapper",
|
26
|
-
componentId: "
|
26
|
+
componentId: "hwwoo0-0"
|
27
27
|
})(["display:inline-block;white-space:nowrap;list-style:none;&::after{padding-right:0.5em;padding-left:0.5em;color:", ";font-size:", ";content:'/';}&:first-child{margin-left:0;}&:last-child{&::after{content:none;}}"], (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('fontSizes.1'));
|
28
28
|
|
29
29
|
const BreadcrumbsBase = _styledComponents.default.nav.withConfig({
|
30
30
|
displayName: "Breadcrumbs__BreadcrumbsBase",
|
31
|
-
componentId: "
|
31
|
+
componentId: "hwwoo0-1"
|
32
32
|
})(["display:flex;justify-content:space-between;", ";"], _sx.default);
|
33
33
|
|
34
34
|
function Breadcrumbs({
|
@@ -57,7 +57,7 @@ const BreadcrumbsItem = _styledComponents.default.a.attrs(props => ({
|
|
57
57
|
'aria-current': props.selected ? 'page' : null
|
58
58
|
})).withConfig({
|
59
59
|
displayName: "Breadcrumbs__BreadcrumbsItem",
|
60
|
-
componentId: "
|
60
|
+
componentId: "hwwoo0-2"
|
61
61
|
})(["color:", ";display:inline-block;font-size:", ";text-decoration:none;&:hover{text-decoration:underline;}&.selected{color:", ";pointer-events:none;}", ";"], (0, _constants.get)('colors.accent.fg'), (0, _constants.get)('fontSizes.1'), (0, _constants.get)('colors.fg.default'), _sx.default);
|
62
62
|
|
63
63
|
Breadcrumbs.displayName = 'Breadcrumbs';
|
package/lib/Button/Button.d.ts
CHANGED
@@ -6,7 +6,6 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
6
6
|
variant?: "small" | "medium" | "large" | undefined;
|
7
7
|
} & {
|
8
8
|
color?: string | undefined;
|
9
|
-
property?: string | undefined;
|
10
9
|
translate?: "yes" | "no" | undefined;
|
11
10
|
hidden?: boolean | undefined;
|
12
11
|
children?: import("react").ReactNode;
|
@@ -41,6 +40,7 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
41
40
|
datatype?: string | undefined;
|
42
41
|
inlist?: any;
|
43
42
|
prefix?: string | undefined;
|
43
|
+
property?: string | undefined;
|
44
44
|
resource?: string | undefined;
|
45
45
|
typeof?: string | undefined;
|
46
46
|
vocab?: string | undefined;
|
@@ -269,8 +269,8 @@ declare const Button: import("styled-components").StyledComponent<"button", any,
|
|
269
269
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
270
270
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
271
271
|
css?: import("@emotion/core").InterpolationWithTheme<any>;
|
272
|
-
disabled?: boolean | undefined;
|
273
272
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
273
|
+
disabled?: boolean | undefined;
|
274
274
|
autoFocus?: boolean | undefined;
|
275
275
|
formAction?: string | undefined;
|
276
276
|
formEncType?: string | undefined;
|
package/lib/Button/Button.js
CHANGED
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
17
17
|
|
18
18
|
const Button = (0, _styledComponents.default)(_ButtonBase.default).withConfig({
|
19
19
|
displayName: "Button",
|
20
|
-
componentId: "
|
20
|
+
componentId: "xjtz72-0"
|
21
21
|
})(["color:", ";background-color:", ";border:1px solid ", ";box-shadow:", ",", "};&:hover{background-color:", ";border-color:", ";}&:focus{border-color:", ";box-shadow:", ";}&:active{background-color:", ";box-shadow:", ";}&:disabled{color:", ";background-color:", ";border-color:", ";}", ";"], (0, _constants.get)('colors.btn.text'), (0, _constants.get)('colors.btn.bg'), (0, _constants.get)('colors.btn.border'), (0, _constants.get)('shadows.btn.shadow'), (0, _constants.get)('shadows.btn.insetShadow'), (0, _constants.get)('colors.btn.hoverBg'), (0, _constants.get)('colors.btn.hoverBorder'), (0, _constants.get)('colors.btn.focusBorder'), (0, _constants.get)('shadows.btn.focusShadow'), (0, _constants.get)('colors.btn.selectedBg'), (0, _constants.get)('shadows.btn.shadowActive'), (0, _constants.get)('colors.primer.fg.disabled'), (0, _constants.get)('colors.btn.bg'), (0, _constants.get)('colors.btn.border'), _sx.default);
|
22
22
|
var _default = Button;
|
23
23
|
exports.default = _default;
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
2
2
|
import { ComponentProps } from '../utils/types';
|
3
3
|
declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
4
4
|
color?: string | undefined;
|
5
|
-
property?: string | undefined;
|
6
5
|
translate?: "yes" | "no" | undefined;
|
7
6
|
hidden?: boolean | undefined;
|
8
7
|
children?: React.ReactNode;
|
@@ -37,6 +36,7 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
37
36
|
datatype?: string | undefined;
|
38
37
|
inlist?: any;
|
39
38
|
prefix?: string | undefined;
|
39
|
+
property?: string | undefined;
|
40
40
|
resource?: string | undefined;
|
41
41
|
typeof?: string | undefined;
|
42
42
|
vocab?: string | undefined;
|
@@ -274,6 +274,6 @@ declare const ButtonClose: React.ForwardRefExoticComponent<Pick<{
|
|
274
274
|
formTarget?: string | undefined;
|
275
275
|
} & {
|
276
276
|
theme?: any;
|
277
|
-
}, "theme" | "sx" | "key" |
|
277
|
+
}, "color" | "translate" | "hidden" | "children" | "theme" | "value" | "form" | "slot" | "style" | "title" | "role" | "sx" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "disabled" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & React.RefAttributes<HTMLButtonElement>>;
|
278
278
|
export declare type ButtonCloseProps = ComponentProps<typeof ButtonClose>;
|
279
279
|
export default ButtonClose;
|
@@ -6,7 +6,6 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
6
6
|
variant?: "small" | "medium" | "large" | undefined;
|
7
7
|
} & {
|
8
8
|
color?: string | undefined;
|
9
|
-
property?: string | undefined;
|
10
9
|
translate?: "yes" | "no" | undefined;
|
11
10
|
hidden?: boolean | undefined;
|
12
11
|
children?: import("react").ReactNode;
|
@@ -41,6 +40,7 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
41
40
|
datatype?: string | undefined;
|
42
41
|
inlist?: any;
|
43
42
|
prefix?: string | undefined;
|
43
|
+
property?: string | undefined;
|
44
44
|
resource?: string | undefined;
|
45
45
|
typeof?: string | undefined;
|
46
46
|
vocab?: string | undefined;
|
@@ -269,8 +269,8 @@ declare const ButtonDanger: import("styled-components").StyledComponent<"button"
|
|
269
269
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
270
270
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
271
271
|
css?: import("@emotion/core").InterpolationWithTheme<any>;
|
272
|
-
disabled?: boolean | undefined;
|
273
272
|
as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined;
|
273
|
+
disabled?: boolean | undefined;
|
274
274
|
autoFocus?: boolean | undefined;
|
275
275
|
formAction?: string | undefined;
|
276
276
|
formEncType?: string | undefined;
|
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
17
17
|
|
18
18
|
const ButtonGroup = (0, _styledComponents.default)(_Box.default).withConfig({
|
19
19
|
displayName: "ButtonGroup",
|
20
|
-
componentId: "
|
20
|
+
componentId: "peei04-0"
|
21
21
|
})(["vertical-align:middle;&& > *{position:relative;border-right-width:0;border-radius:0;:first-child{border-top-left-radius:", ";border-bottom-left-radius:", ";margin-right:0;}:not(:first-child){margin-left:0;margin-right:0;}:last-child{border-right-width:1px;border-top-right-radius:", ";border-bottom-right-radius:", ";}:focus,:active,:hover{border-right-width:1px;+ *{border-left-width:0;}}:focus,:active{z-index:1;}}", ";"], (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), _sx.default);
|
22
22
|
ButtonGroup.defaultProps = {
|
23
23
|
display: 'inline-block'
|