@primer/components 0.0.0-2021919202426 → 0.0.0-2021920152952
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 +1 -19
- package/codemods/deprecateUtilityComponents.js +1 -1
- package/dist/browser.esm.js +768 -879
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +773 -884
- package/dist/browser.umd.js.map +1 -1
- package/lib/ActionList/Item.js +4 -4
- package/lib/ActionList/List.d.ts +1 -2
- package/lib/AnchoredOverlay/AnchoredOverlay.d.ts +1 -2
- package/lib/AnchoredOverlay/AnchoredOverlay.js +3 -11
- package/lib/BaseStyles.js +1 -1
- package/lib/BorderBox.js +1 -1
- package/lib/Button/Button.js +1 -1
- package/lib/Button/ButtonInvisible.js +1 -1
- package/lib/Button/ButtonTableList.js +1 -1
- package/lib/Caret.js +2 -2
- package/lib/DatePicker/DatePicker.d.ts +47 -0
- package/lib/DatePicker/DatePicker.js +76 -0
- package/lib/DatePicker/DatePickerAnchor.d.ts +10 -0
- package/lib/DatePicker/DatePickerAnchor.js +83 -0
- package/lib/DatePicker/DatePickerPanel.d.ts +2 -0
- package/lib/DatePicker/DatePickerPanel.js +38 -0
- package/lib/DatePicker/Day.d.ts +13 -0
- package/lib/DatePicker/Day.js +136 -0
- package/lib/DatePicker/Month.d.ts +9 -0
- package/lib/DatePicker/Month.js +97 -0
- package/lib/DatePicker/index.d.ts +2 -0
- package/lib/DatePicker/index.js +13 -0
- package/lib/DatePicker/useDatePicker.d.ts +51 -0
- package/lib/DatePicker/useDatePicker.js +133 -0
- package/lib/Dialog.js +1 -1
- package/lib/FilteredActionList/FilteredActionList.js +31 -5
- package/lib/Flash.js +16 -16
- package/lib/Label.js +1 -1
- package/lib/Overlay.d.ts +0 -1
- package/lib/Overlay.js +1 -3
- package/lib/Pagination/Pagination.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/SelectMenu/SelectMenu.d.ts +10 -10
- package/lib/StateLabel.js +19 -13
- package/lib/TextInput.d.ts +13 -5
- package/lib/TextInput.js +46 -4
- package/lib/hooks/useOpenAndCloseFocus.d.ts +1 -2
- package/lib/hooks/useOpenAndCloseFocus.js +2 -7
- package/lib/hooks/useOverlay.d.ts +1 -2
- package/lib/hooks/useOverlay.js +2 -4
- package/lib/index.d.ts +0 -5
- package/lib/index.js +0 -36
- package/lib/theme-preval.js +3105 -375
- package/lib/utils/testing.d.ts +493 -50
- package/{lib-esm/utils/types/AriaRole.d.ts → lib/utils/types.d.ts} +13 -0
- package/lib/utils/{types/AriaRole.js → types.js} +0 -0
- package/lib-esm/ActionList/Item.js +4 -4
- package/lib-esm/ActionList/List.d.ts +1 -2
- package/lib-esm/AnchoredOverlay/AnchoredOverlay.d.ts +1 -2
- package/lib-esm/AnchoredOverlay/AnchoredOverlay.js +3 -11
- package/lib-esm/BaseStyles.js +1 -1
- package/lib-esm/BorderBox.js +1 -1
- package/lib-esm/Button/Button.js +1 -1
- package/lib-esm/Button/ButtonInvisible.js +1 -1
- package/lib-esm/Button/ButtonTableList.js +1 -1
- package/lib-esm/Caret.js +2 -2
- package/lib-esm/DatePicker/DatePicker.d.ts +47 -0
- package/lib-esm/DatePicker/DatePicker.js +57 -0
- package/lib-esm/DatePicker/DatePickerAnchor.d.ts +10 -0
- package/lib-esm/DatePicker/DatePickerAnchor.js +59 -0
- package/lib-esm/DatePicker/DatePickerPanel.d.ts +2 -0
- package/lib-esm/DatePicker/DatePickerPanel.js +20 -0
- package/lib-esm/DatePicker/Day.d.ts +13 -0
- package/lib-esm/DatePicker/Day.js +113 -0
- package/lib-esm/DatePicker/Month.d.ts +9 -0
- package/lib-esm/DatePicker/Month.js +74 -0
- package/lib-esm/DatePicker/index.d.ts +2 -0
- package/lib-esm/DatePicker/index.js +1 -0
- package/lib-esm/DatePicker/useDatePicker.d.ts +51 -0
- package/lib-esm/DatePicker/useDatePicker.js +114 -0
- package/lib-esm/Dialog.js +1 -1
- package/lib-esm/FilteredActionList/FilteredActionList.js +31 -3
- package/lib-esm/Flash.js +16 -16
- package/lib-esm/Label.js +1 -1
- package/lib-esm/Overlay.d.ts +0 -1
- package/lib-esm/Overlay.js +1 -3
- package/lib-esm/Pagination/Pagination.js +1 -1
- package/lib-esm/ProgressBar.js +1 -1
- package/lib-esm/SelectMenu/SelectMenu.d.ts +10 -10
- package/lib-esm/StateLabel.js +19 -13
- package/lib-esm/TextInput.d.ts +13 -5
- package/lib-esm/TextInput.js +37 -4
- package/lib-esm/hooks/useOpenAndCloseFocus.d.ts +1 -2
- package/lib-esm/hooks/useOpenAndCloseFocus.js +2 -7
- package/lib-esm/hooks/useOverlay.d.ts +1 -2
- package/lib-esm/hooks/useOverlay.js +2 -4
- package/lib-esm/index.d.ts +0 -5
- package/lib-esm/index.js +0 -3
- package/lib-esm/theme-preval.js +3105 -375
- package/lib-esm/utils/testing.d.ts +493 -50
- package/{lib/utils/types/AriaRole.d.ts → lib-esm/utils/types.d.ts} +13 -0
- package/lib-esm/utils/{types/AriaRole.js → types.js} +0 -0
- package/package.json +4 -4
- package/lib/Autocomplete/Autocomplete.d.ts +0 -304
- package/lib/Autocomplete/Autocomplete.js +0 -145
- package/lib/Autocomplete/AutocompleteContext.d.ts +0 -17
- package/lib/Autocomplete/AutocompleteContext.js +0 -11
- package/lib/Autocomplete/AutocompleteInput.d.ts +0 -292
- package/lib/Autocomplete/AutocompleteInput.js +0 -157
- package/lib/Autocomplete/AutocompleteMenu.d.ts +0 -72
- package/lib/Autocomplete/AutocompleteMenu.js +0 -224
- package/lib/Autocomplete/AutocompleteOverlay.d.ts +0 -20
- package/lib/Autocomplete/AutocompleteOverlay.js +0 -80
- package/lib/Autocomplete/index.d.ts +0 -2
- package/lib/Autocomplete/index.js +0 -15
- package/lib/TextInputWithTokens.d.ts +0 -327
- package/lib/TextInputWithTokens.js +0 -298
- package/lib/Token/AvatarToken.d.ts +0 -7
- package/lib/Token/AvatarToken.js +0 -64
- package/lib/Token/IssueLabelToken.d.ts +0 -14
- package/lib/Token/IssueLabelToken.js +0 -144
- package/lib/Token/Token.d.ts +0 -15
- package/lib/Token/Token.js +0 -94
- package/lib/Token/TokenBase.d.ts +0 -31
- package/lib/Token/TokenBase.js +0 -108
- package/lib/Token/_RemoveTokenButton.d.ts +0 -12
- package/lib/Token/_RemoveTokenButton.js +0 -77
- package/lib/Token/_TokenTextContainer.d.ts +0 -3
- package/lib/Token/_TokenTextContainer.js +0 -17
- package/lib/Token/index.d.ts +0 -3
- package/lib/Token/index.js +0 -31
- package/lib/_TextInputWrapper.d.ts +0 -10
- package/lib/_TextInputWrapper.js +0 -51
- package/lib/_UnstyledTextInput.d.ts +0 -2
- package/lib/_UnstyledTextInput.js +0 -20
- package/lib/behaviors/scrollIntoViewingArea.d.ts +0 -1
- package/lib/behaviors/scrollIntoViewingArea.js +0 -39
- package/lib/utils/types/ComponentProps.d.ts +0 -9
- package/lib/utils/types/ComponentProps.js +0 -1
- package/lib/utils/types/Flatten.d.ts +0 -4
- package/lib/utils/types/Flatten.js +0 -1
- package/lib/utils/types/MandateProps.d.ts +0 -3
- package/lib/utils/types/MandateProps.js +0 -1
- package/lib/utils/types/Merge.d.ts +0 -19
- package/lib/utils/types/Merge.js +0 -1
- package/lib/utils/types/index.d.ts +0 -5
- package/lib/utils/types/index.js +0 -70
- package/lib-esm/Autocomplete/Autocomplete.d.ts +0 -304
- package/lib-esm/Autocomplete/Autocomplete.js +0 -123
- package/lib-esm/Autocomplete/AutocompleteContext.d.ts +0 -17
- package/lib-esm/Autocomplete/AutocompleteContext.js +0 -2
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +0 -292
- package/lib-esm/Autocomplete/AutocompleteInput.js +0 -138
- package/lib-esm/Autocomplete/AutocompleteMenu.d.ts +0 -72
- package/lib-esm/Autocomplete/AutocompleteMenu.js +0 -205
- package/lib-esm/Autocomplete/AutocompleteOverlay.d.ts +0 -20
- package/lib-esm/Autocomplete/AutocompleteOverlay.js +0 -62
- package/lib-esm/Autocomplete/index.d.ts +0 -2
- package/lib-esm/Autocomplete/index.js +0 -1
- package/lib-esm/TextInputWithTokens.d.ts +0 -327
- package/lib-esm/TextInputWithTokens.js +0 -272
- package/lib-esm/Token/AvatarToken.d.ts +0 -7
- package/lib-esm/Token/AvatarToken.js +0 -43
- package/lib-esm/Token/IssueLabelToken.d.ts +0 -14
- package/lib-esm/Token/IssueLabelToken.js +0 -124
- package/lib-esm/Token/Token.d.ts +0 -15
- package/lib-esm/Token/Token.js +0 -73
- package/lib-esm/Token/TokenBase.d.ts +0 -31
- package/lib-esm/Token/TokenBase.js +0 -87
- package/lib-esm/Token/_RemoveTokenButton.d.ts +0 -12
- package/lib-esm/Token/_RemoveTokenButton.js +0 -60
- package/lib-esm/Token/_TokenTextContainer.d.ts +0 -3
- package/lib-esm/Token/_TokenTextContainer.js +0 -6
- package/lib-esm/Token/index.d.ts +0 -3
- package/lib-esm/Token/index.js +0 -3
- package/lib-esm/_TextInputWrapper.d.ts +0 -10
- package/lib-esm/_TextInputWrapper.js +0 -31
- package/lib-esm/_UnstyledTextInput.d.ts +0 -2
- package/lib-esm/_UnstyledTextInput.js +0 -7
- package/lib-esm/behaviors/scrollIntoViewingArea.d.ts +0 -1
- package/lib-esm/behaviors/scrollIntoViewingArea.js +0 -30
- package/lib-esm/utils/types/ComponentProps.d.ts +0 -9
- package/lib-esm/utils/types/ComponentProps.js +0 -1
- package/lib-esm/utils/types/Flatten.d.ts +0 -4
- package/lib-esm/utils/types/Flatten.js +0 -1
- package/lib-esm/utils/types/MandateProps.d.ts +0 -3
- package/lib-esm/utils/types/MandateProps.js +0 -1
- package/lib-esm/utils/types/Merge.d.ts +0 -19
- package/lib-esm/utils/types/Merge.js +0 -1
- package/lib-esm/utils/types/index.d.ts +0 -5
- package/lib-esm/utils/types/index.js +0 -5
package/lib/TextInput.js
CHANGED
@@ -9,14 +9,56 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
9
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
11
11
|
|
12
|
-
var
|
12
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
13
13
|
|
14
|
-
var
|
14
|
+
var _styledSystem = require("styled-system");
|
15
|
+
|
16
|
+
var _constants = require("./constants");
|
17
|
+
|
18
|
+
var _sx = _interopRequireDefault(require("./sx"));
|
19
|
+
|
20
|
+
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); }
|
21
|
+
|
22
|
+
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; }
|
15
23
|
|
16
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
25
|
|
18
26
|
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); }
|
19
27
|
|
28
|
+
const sizeVariants = (0, _styledSystem.variant)({
|
29
|
+
variants: {
|
30
|
+
small: {
|
31
|
+
minHeight: '28px',
|
32
|
+
px: 2,
|
33
|
+
py: '3px',
|
34
|
+
fontSize: 0,
|
35
|
+
lineHeight: '20px'
|
36
|
+
},
|
37
|
+
large: {
|
38
|
+
px: 2,
|
39
|
+
py: '10px',
|
40
|
+
fontSize: 3
|
41
|
+
}
|
42
|
+
}
|
43
|
+
});
|
44
|
+
|
45
|
+
const Input = _styledComponents.default.input.withConfig({
|
46
|
+
displayName: "TextInput__Input",
|
47
|
+
componentId: "sc-1apmpmt-0"
|
48
|
+
})(["border:0;font-size:inherit;font-family:inherit;background-color:transparent;-webkit-appearance:none;color:inherit;width:100%;&:focus{outline:0;}"]);
|
49
|
+
|
50
|
+
const Wrapper = _styledComponents.default.span.withConfig({
|
51
|
+
displayName: "TextInput__Wrapper",
|
52
|
+
componentId: "sc-1apmpmt-1"
|
53
|
+
})(["display:inline-flex;align-items:stretch;min-height:34px;font-size:", ";line-height:20px;color:", ";vertical-align:middle;background-repeat:no-repeat;background-position:right 8px center;border:1px solid ", ";border-radius:", ";outline:none;box-shadow:", ";", " .TextInput-icon{align-self:center;color:", ";margin:0 ", ";flex-shrink:0;}&:focus-within{border-color:", ";box-shadow:", ";}", " ", " ", " @media (min-width:", "){font-size:", ";}", " ", " ", " ", " ", ";"], (0, _constants.get)('fontSizes.1'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('radii.2'), (0, _constants.get)('shadows.primer.shadow.inset'), props => {
|
54
|
+
if (props.hasIcon) {
|
55
|
+
return (0, _styledComponents.css)(["padding:0;"]);
|
56
|
+
} else {
|
57
|
+
return (0, _styledComponents.css)(["padding:6px 12px;"]);
|
58
|
+
}
|
59
|
+
}, (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('space.2'), (0, _constants.get)('colors.accent.emphasis'), (0, _constants.get)('shadows.primer.shadow.focus'), props => props.contrast && (0, _styledComponents.css)(["background-color:", ";"], (0, _constants.get)('colors.canvas.inset')), props => props.disabled && (0, _styledComponents.css)(["color:", ";background-color:", ";border-color:", ";"], (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.input.disabledBg'), (0, _constants.get)('colors.border.default')), props => props.block && (0, _styledComponents.css)(["display:block;width:100%;"]), (0, _constants.get)('breakpoints.1'), (0, _constants.get)('fontSizes.1'), _styledSystem.width, _styledSystem.minWidth, _styledSystem.maxWidth, sizeVariants, _sx.default); // Props that are not passed through to Input:
|
60
|
+
|
61
|
+
|
20
62
|
// using forwardRef is important so that other components (ex. SelectMenu) can autofocus the input
|
21
63
|
const TextInput = /*#__PURE__*/_react.default.forwardRef(({
|
22
64
|
icon: IconComponent,
|
@@ -34,7 +76,7 @@ const TextInput = /*#__PURE__*/_react.default.forwardRef(({
|
|
34
76
|
}, ref) => {
|
35
77
|
// this class is necessary to style FilterSearch, plz no touchy!
|
36
78
|
const wrapperClasses = (0, _classnames.default)(className, 'TextInput-wrapper');
|
37
|
-
return /*#__PURE__*/_react.default.createElement(
|
79
|
+
return /*#__PURE__*/_react.default.createElement(Wrapper, {
|
38
80
|
block: block,
|
39
81
|
className: wrapperClasses,
|
40
82
|
contrast: contrast,
|
@@ -48,7 +90,7 @@ const TextInput = /*#__PURE__*/_react.default.forwardRef(({
|
|
48
90
|
variant: variantProp
|
49
91
|
}, IconComponent && /*#__PURE__*/_react.default.createElement(IconComponent, {
|
50
92
|
className: "TextInput-icon"
|
51
|
-
}), /*#__PURE__*/_react.default.createElement(
|
93
|
+
}), /*#__PURE__*/_react.default.createElement(Input, _extends({
|
52
94
|
ref: ref,
|
53
95
|
disabled: disabled
|
54
96
|
}, inputProps)));
|
@@ -3,6 +3,5 @@ export declare type UseOpenAndCloseFocusSettings = {
|
|
3
3
|
initialFocusRef?: React.RefObject<HTMLElement>;
|
4
4
|
containerRef: React.RefObject<HTMLElement>;
|
5
5
|
returnFocusRef: React.RefObject<HTMLElement>;
|
6
|
-
preventFocusOnOpen?: boolean;
|
7
6
|
};
|
8
|
-
export declare function useOpenAndCloseFocus({ initialFocusRef, returnFocusRef, containerRef
|
7
|
+
export declare function useOpenAndCloseFocus({ initialFocusRef, returnFocusRef, containerRef }: UseOpenAndCloseFocusSettings): void;
|
@@ -12,14 +12,9 @@ var _iterateFocusableElements = require("../utils/iterateFocusableElements");
|
|
12
12
|
function useOpenAndCloseFocus({
|
13
13
|
initialFocusRef,
|
14
14
|
returnFocusRef,
|
15
|
-
containerRef
|
16
|
-
preventFocusOnOpen
|
15
|
+
containerRef
|
17
16
|
}) {
|
18
17
|
(0, _react.useEffect)(() => {
|
19
|
-
if (preventFocusOnOpen) {
|
20
|
-
return;
|
21
|
-
}
|
22
|
-
|
23
18
|
const returnRef = returnFocusRef.current;
|
24
19
|
|
25
20
|
if (initialFocusRef && initialFocusRef.current) {
|
@@ -32,5 +27,5 @@ function useOpenAndCloseFocus({
|
|
32
27
|
return function () {
|
33
28
|
returnRef === null || returnRef === void 0 ? void 0 : returnRef.focus();
|
34
29
|
};
|
35
|
-
}, [initialFocusRef, returnFocusRef, containerRef
|
30
|
+
}, [initialFocusRef, returnFocusRef, containerRef]);
|
36
31
|
}
|
@@ -7,9 +7,8 @@ export declare type UseOverlaySettings = {
|
|
7
7
|
onEscape: (e: KeyboardEvent) => void;
|
8
8
|
onClickOutside: (e: TouchOrMouseEvent) => void;
|
9
9
|
overlayRef?: React.RefObject<HTMLDivElement>;
|
10
|
-
preventFocusOnOpen?: boolean;
|
11
10
|
};
|
12
11
|
export declare type OverlayReturnProps = {
|
13
12
|
ref: React.RefObject<HTMLDivElement>;
|
14
13
|
};
|
15
|
-
export declare const useOverlay: ({ overlayRef: _overlayRef, returnFocusRef, initialFocusRef, onEscape, ignoreClickRefs, onClickOutside
|
14
|
+
export declare const useOverlay: ({ overlayRef: _overlayRef, returnFocusRef, initialFocusRef, onEscape, ignoreClickRefs, onClickOutside }: UseOverlaySettings) => OverlayReturnProps;
|
package/lib/hooks/useOverlay.js
CHANGED
@@ -19,15 +19,13 @@ const useOverlay = ({
|
|
19
19
|
initialFocusRef,
|
20
20
|
onEscape,
|
21
21
|
ignoreClickRefs,
|
22
|
-
onClickOutside
|
23
|
-
preventFocusOnOpen
|
22
|
+
onClickOutside
|
24
23
|
}) => {
|
25
24
|
const overlayRef = (0, _useProvidedRefOrCreate.useProvidedRefOrCreate)(_overlayRef);
|
26
25
|
(0, _useOpenAndCloseFocus.useOpenAndCloseFocus)({
|
27
26
|
containerRef: overlayRef,
|
28
27
|
returnFocusRef,
|
29
|
-
initialFocusRef
|
30
|
-
preventFocusOnOpen
|
28
|
+
initialFocusRef
|
31
29
|
});
|
32
30
|
(0, _useOnOutsideClick.useOnOutsideClick)({
|
33
31
|
containerRef: overlayRef,
|
package/lib/index.d.ts
CHANGED
@@ -24,8 +24,6 @@ export { useConfirm } from './Dialog/ConfirmationDialog';
|
|
24
24
|
export { ActionList } from './ActionList';
|
25
25
|
export { ActionMenu } from './ActionMenu';
|
26
26
|
export type { ActionMenuProps } from './ActionMenu';
|
27
|
-
export { default as Autocomplete } from './Autocomplete';
|
28
|
-
export type { AutocompleteMenuProps, AutocompleteInputProps, AutocompleteOverlayProps } from './Autocomplete';
|
29
27
|
export { default as Avatar } from './Avatar';
|
30
28
|
export type { AvatarProps } from './Avatar';
|
31
29
|
export { default as AvatarPair } from './AvatarPair';
|
@@ -100,13 +98,10 @@ export { default as TabNav } from './TabNav';
|
|
100
98
|
export type { TabNavProps, TabNavLinkProps } from './TabNav';
|
101
99
|
export { default as TextInput } from './TextInput';
|
102
100
|
export type { TextInputProps } from './TextInput';
|
103
|
-
export { default as TextInputWithTokens } from './TextInputWithTokens';
|
104
|
-
export type { TextInputWithTokensProps } from './TextInputWithTokens';
|
105
101
|
export { default as Text } from './Text';
|
106
102
|
export type { TextProps } from './Text';
|
107
103
|
export { default as Timeline } from './Timeline';
|
108
104
|
export type { TimelineProps, TimelineBadgeProps, TimelineBodyProps, TimelineBreakProps, TimelineItemsProps } from './Timeline';
|
109
|
-
export { default as Token, IssueLabelToken, AvatarToken } from './Token';
|
110
105
|
export { default as Tooltip } from './Tooltip';
|
111
106
|
export type { TooltipProps } from './Tooltip';
|
112
107
|
export { default as Truncate } from './Truncate';
|
package/lib/index.js
CHANGED
@@ -153,12 +153,6 @@ Object.defineProperty(exports, "ActionMenu", {
|
|
153
153
|
return _ActionMenu.ActionMenu;
|
154
154
|
}
|
155
155
|
});
|
156
|
-
Object.defineProperty(exports, "Autocomplete", {
|
157
|
-
enumerable: true,
|
158
|
-
get: function () {
|
159
|
-
return _Autocomplete.default;
|
160
|
-
}
|
161
|
-
});
|
162
156
|
Object.defineProperty(exports, "Avatar", {
|
163
157
|
enumerable: true,
|
164
158
|
get: function () {
|
@@ -435,12 +429,6 @@ Object.defineProperty(exports, "TextInput", {
|
|
435
429
|
return _TextInput.default;
|
436
430
|
}
|
437
431
|
});
|
438
|
-
Object.defineProperty(exports, "TextInputWithTokens", {
|
439
|
-
enumerable: true,
|
440
|
-
get: function () {
|
441
|
-
return _TextInputWithTokens.default;
|
442
|
-
}
|
443
|
-
});
|
444
432
|
Object.defineProperty(exports, "Text", {
|
445
433
|
enumerable: true,
|
446
434
|
get: function () {
|
@@ -453,24 +441,6 @@ Object.defineProperty(exports, "Timeline", {
|
|
453
441
|
return _Timeline.default;
|
454
442
|
}
|
455
443
|
});
|
456
|
-
Object.defineProperty(exports, "Token", {
|
457
|
-
enumerable: true,
|
458
|
-
get: function () {
|
459
|
-
return _Token.default;
|
460
|
-
}
|
461
|
-
});
|
462
|
-
Object.defineProperty(exports, "IssueLabelToken", {
|
463
|
-
enumerable: true,
|
464
|
-
get: function () {
|
465
|
-
return _Token.IssueLabelToken;
|
466
|
-
}
|
467
|
-
});
|
468
|
-
Object.defineProperty(exports, "AvatarToken", {
|
469
|
-
enumerable: true,
|
470
|
-
get: function () {
|
471
|
-
return _Token.AvatarToken;
|
472
|
-
}
|
473
|
-
});
|
474
444
|
Object.defineProperty(exports, "Tooltip", {
|
475
445
|
enumerable: true,
|
476
446
|
get: function () {
|
@@ -538,8 +508,6 @@ var _ActionList = require("./ActionList");
|
|
538
508
|
|
539
509
|
var _ActionMenu = require("./ActionMenu");
|
540
510
|
|
541
|
-
var _Autocomplete = _interopRequireDefault(require("./Autocomplete"));
|
542
|
-
|
543
511
|
var _Avatar = _interopRequireDefault(require("./Avatar"));
|
544
512
|
|
545
513
|
var _AvatarPair = _interopRequireDefault(require("./AvatarPair"));
|
@@ -614,14 +582,10 @@ var _TabNav = _interopRequireDefault(require("./TabNav"));
|
|
614
582
|
|
615
583
|
var _TextInput = _interopRequireDefault(require("./TextInput"));
|
616
584
|
|
617
|
-
var _TextInputWithTokens = _interopRequireDefault(require("./TextInputWithTokens"));
|
618
|
-
|
619
585
|
var _Text = _interopRequireDefault(require("./Text"));
|
620
586
|
|
621
587
|
var _Timeline = _interopRequireDefault(require("./Timeline"));
|
622
588
|
|
623
|
-
var _Token = _interopRequireWildcard(require("./Token"));
|
624
|
-
|
625
589
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
626
590
|
|
627
591
|
var _Truncate = _interopRequireDefault(require("./Truncate"));
|