td-stylekit 28.25.1 → 28.26.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 +7 -0
- package/dist/es/ChartPrimitives/Defs.js +1 -1
- package/dist/es/ChartPrimitives/Tooltip.js +2 -1
- package/dist/es/CollapsibleToggle/CollapsibleToggle.js +2 -2
- package/dist/es/DataGrid/DataGrid.js +3 -1
- package/dist/es/DataGrid/components/CategoryFilter.js +2 -0
- package/dist/es/DataGrid/components/CollapsibleCell.js +3 -0
- package/dist/es/DataGrid/components/ColumnHeader.d.ts +1 -4
- package/dist/es/DataGrid/components/ColumnHeader.js +37 -37
- package/dist/es/DataGrid/components/ColumnHeaderActions.js +2 -0
- package/dist/es/DataGrid/components/InputCell.js +3 -0
- package/dist/es/DataGrid/components/ScrollableTable.js +6 -0
- package/dist/es/DataGrid/elements.d.ts +3 -0
- package/dist/es/DataGrid/elements.js +38 -28
- package/dist/es/DataGrid/renderers.js +2 -0
- package/dist/es/DateField/DateField.js +3 -0
- package/dist/es/DatePicker/utils.js +1 -1
- package/dist/es/DetailPanel/DetailPanel.js +2 -0
- package/dist/es/Drawer/Drawer.js +2 -0
- package/dist/es/DropdownButton/DropdownButtonElements.js +3 -0
- package/dist/es/FormControl/components/CheckboxGroup.js +2 -0
- package/dist/es/FormControl/components/RadioGroup.js +2 -0
- package/dist/es/FormControl/index.js +1 -1
- package/dist/es/FormField/FormField.js +2 -1
- package/dist/es/Icon/staticTypes.js +2 -1
- package/dist/es/IconBar/IconBar.js +3 -0
- package/dist/es/IconBar/LogoItem.js +2 -0
- package/dist/es/Input/Input.js +10 -0
- package/dist/es/Logo/Logo.js +3 -0
- package/dist/es/Logo/LogoDark.js +5 -0
- package/dist/es/Logo/LogoLight.js +3 -0
- package/dist/es/Menu/Menu.js +29 -0
- package/dist/es/MiddleTruncatedText/MiddleTruncatedText.js +10 -0
- package/dist/es/Modal/components/Header.js +2 -0
- package/dist/es/Modal/components/ModalOverlay.js +3 -0
- package/dist/es/MultiSelect/MultiSelect.js +1 -1
- package/dist/es/NavigationBar/LogoItem.js +2 -0
- package/dist/es/NavigationBar/NavigationBar.js +2 -0
- package/dist/es/Overlay/OverlayHeader.js +3 -0
- package/dist/es/Select/components/CreatableSelect.js +2 -0
- package/dist/es/Select/components/MenuPortal.js +8 -0
- package/dist/es/Select/variantProps.js +19 -0
- package/dist/es/Slider/Slider.js +2 -0
- package/dist/es/Slider/elements.js +2 -0
- package/dist/es/Tabs/Tabs.js +2 -1
- package/dist/es/Tagger/Tagger.js +2 -1
- package/dist/es/Tagger/TaggerElements.js +3 -0
- package/dist/es/Tagger/components/PopupSelector.js +6 -1
- package/dist/es/Tagger/variantProps.js +15 -0
- package/dist/es/ThemeProvider/ThemeProvider.js +2 -3
- package/dist/es/ThemeProvider/accessibility.js +1 -0
- package/dist/es/TimeControl/TimeControl.js +1 -0
- package/dist/es/TimeControl/elements.js +2 -0
- package/dist/es/TimePicker/TimePicker.js +1 -0
- package/dist/es/TimePicker/components/PeriodSelector.js +5 -0
- package/dist/es/TimePicker/components/Spinner.js +5 -0
- package/dist/es/TooltipPopover/useWaitForDOMRef.js +3 -1
- package/dist/es/Tree/NodeContent.js +1 -1
- package/dist/es/Tree/TreeNode.js +1 -1
- package/dist/es/mixins/border.js +15 -0
- package/dist/es/mixins/color.js +10 -0
- package/dist/es/mixins/spacing.js +8 -0
- package/dist/es/utils/testingLibrary.js +3 -2
- package/package.json +1 -1
|
@@ -44,6 +44,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
44
44
|
|
|
45
45
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
46
46
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
47
|
+
/* eslint-disable td/instrumentation */
|
|
48
|
+
// this level of fine grained instrumentation is not needed
|
|
47
49
|
|
|
48
50
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
49
51
|
name: "1d3w5wq",
|
|
@@ -66,6 +66,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
66
66
|
|
|
67
67
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
68
68
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
69
|
+
/* eslint-disable td/instrumentation */
|
|
70
|
+
// this level of fine grained instrumentation is not needed
|
|
71
|
+
|
|
69
72
|
var dateToString = _DatePicker.DatePickerUtils.dateToString,
|
|
70
73
|
stringToDate = _DatePicker.DatePickerUtils.stringToDate;
|
|
71
74
|
var CLOSE_KEYS = [String.fromCharCode(25), // Gets sent when you press shift+tab with Chrome...
|
|
@@ -32,7 +32,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
32
32
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
33
|
|
|
34
34
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
35
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
35
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // Make sure moment.js has the required locale data
|
|
36
36
|
|
|
37
37
|
_moment["default"].locale('en');
|
|
38
38
|
|
|
@@ -15,6 +15,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
15
15
|
|
|
16
16
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
17
17
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
18
|
+
/* eslint-disable td/instrumentation */
|
|
19
|
+
// this level of fine grained instrumentation is not needed
|
|
18
20
|
|
|
19
21
|
var DetailPanel = function DetailPanel(_ref) {
|
|
20
22
|
var children = _ref.children,
|
package/dist/es/Drawer/Drawer.js
CHANGED
|
@@ -27,6 +27,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
27
27
|
|
|
28
28
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
29
29
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
30
|
+
/* eslint-disable td/instrumentation */
|
|
31
|
+
// this level of fine grained instrumentation is not needed
|
|
30
32
|
|
|
31
33
|
var Drawer = function Drawer(_ref) {
|
|
32
34
|
var _ref$anchor = _ref.anchor,
|
|
@@ -59,6 +59,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
59
59
|
|
|
60
60
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
61
61
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
62
|
+
/* eslint-disable td/instrumentation */
|
|
63
|
+
// this level of fine grained instrumentation is not needed
|
|
64
|
+
|
|
62
65
|
var focusStyle = {
|
|
63
66
|
'&:focus': {
|
|
64
67
|
outline: 'none'
|
|
@@ -27,6 +27,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
27
27
|
|
|
28
28
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
29
29
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
30
|
+
/* eslint-disable td/instrumentation */
|
|
31
|
+
// this level of fine grained instrumentation is not needed
|
|
30
32
|
|
|
31
33
|
var _ref3 = process.env.NODE_ENV === "production" ? {
|
|
32
34
|
name: "1t8bi0p",
|
|
@@ -15,6 +15,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
15
15
|
|
|
16
16
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
17
17
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
18
|
+
/* eslint-disable td/instrumentation */
|
|
19
|
+
// this level of fine grained instrumentation is not needed
|
|
18
20
|
|
|
19
21
|
var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
20
22
|
name: "1t8bi0p",
|
|
@@ -15,4 +15,4 @@ var _FormControl = _interopRequireDefault(require("./FormControl"));
|
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
16
|
|
|
17
17
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
18
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
18
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // eslint-disable-next-line deprecation/deprecation
|
|
@@ -68,7 +68,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
68
68
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
69
69
|
|
|
70
70
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
71
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
71
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // @TODO: Implement an inline-text type?
|
|
72
|
+
// Add extra input types as needed to FORM_FIELD_TYPES and type FormFieldTypes below
|
|
72
73
|
|
|
73
74
|
// @TODO: Pass aria-describedby to hint?
|
|
74
75
|
// @TODO: How to handle node label?
|
|
@@ -4,4 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
7
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
7
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // THIS FILE IS GENERATED BY yarn build:icons:types
|
|
8
|
+
// prettier-ignore
|
|
@@ -39,6 +39,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
39
39
|
|
|
40
40
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
41
41
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
42
|
+
/* eslint-disable td/instrumentation */
|
|
43
|
+
// this level of fine grained instrumentation is not needed
|
|
44
|
+
|
|
42
45
|
var StyledIconBar = ( /*#__PURE__*/0, _base["default"])(_Box["default"], process.env.NODE_ENV === "production" ? {
|
|
43
46
|
target: "exca10w1"
|
|
44
47
|
} : {
|
|
@@ -19,6 +19,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
19
19
|
|
|
20
20
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
21
21
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
22
|
+
/* eslint-disable td/instrumentation */
|
|
23
|
+
// this level of fine grained instrumentation is not needed
|
|
22
24
|
|
|
23
25
|
var LogoItem = function LogoItem(_ref) {
|
|
24
26
|
var logo = _ref.logo,
|
package/dist/es/Input/Input.js
CHANGED
|
@@ -374,6 +374,16 @@ var InlineInputComponent = /*#__PURE__*/_react["default"].forwardRef(function (p
|
|
|
374
374
|
forwardRef: ref
|
|
375
375
|
}));
|
|
376
376
|
});
|
|
377
|
+
/**
|
|
378
|
+
* This uses a generic plus conditional types to adjust prop types based on the type prop.
|
|
379
|
+
*
|
|
380
|
+
* For more info on generics, please read this:
|
|
381
|
+
* https://dev.to/busypeoples/-notes-on-typescript-react-and-generics-35c9
|
|
382
|
+
*
|
|
383
|
+
* For more info on conditional types, please read this:
|
|
384
|
+
* https://artsy.github.io/blog/2018/11/21/conditional-types-in-typescript/
|
|
385
|
+
*/
|
|
386
|
+
|
|
377
387
|
|
|
378
388
|
exports.InlineInputComponent = InlineInputComponent;
|
|
379
389
|
|
package/dist/es/Logo/Logo.js
CHANGED
|
@@ -17,6 +17,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
17
17
|
|
|
18
18
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
19
19
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
20
|
+
/*
|
|
21
|
+
Logo component
|
|
22
|
+
*/
|
|
20
23
|
|
|
21
24
|
function LogoTD(_ref) {
|
|
22
25
|
var className = _ref.className,
|
package/dist/es/Logo/LogoDark.js
CHANGED
|
@@ -9,6 +9,11 @@ var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
|
9
9
|
|
|
10
10
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
11
11
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
12
|
+
/*
|
|
13
|
+
Logo used in td-crystal - Dark version
|
|
14
|
+
|
|
15
|
+
Used in: TD Marketplace
|
|
16
|
+
*/
|
|
12
17
|
|
|
13
18
|
function LogoDark(_ref) {
|
|
14
19
|
var className = _ref.className,
|
|
@@ -9,6 +9,9 @@ var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
|
9
9
|
|
|
10
10
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
11
11
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
12
|
+
/*
|
|
13
|
+
Logo used in td-crystal - Light version
|
|
14
|
+
*/
|
|
12
15
|
|
|
13
16
|
function LogoLight(_ref) {
|
|
14
17
|
var className = _ref.className,
|
package/dist/es/Menu/Menu.js
CHANGED
|
@@ -63,6 +63,35 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
63
63
|
|
|
64
64
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
65
65
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
66
|
+
/**
|
|
67
|
+
* Menu
|
|
68
|
+
* Use with TooltipPopover
|
|
69
|
+
* Menu will close itself when you click an item
|
|
70
|
+
* This can be prevented by passing an onClick prop
|
|
71
|
+
*
|
|
72
|
+
* Example:
|
|
73
|
+
* <Menu>
|
|
74
|
+
* <MenuItem onClick={clickA}>Option A</MenuItem>
|
|
75
|
+
* <MenuItem onClick={clickB}>Option B</MenuItem>
|
|
76
|
+
* <Menu>
|
|
77
|
+
*
|
|
78
|
+
* Example with TooltipPopover:
|
|
79
|
+
* <TooltipPopover
|
|
80
|
+
* placement="bottom"
|
|
81
|
+
* trigger='click'
|
|
82
|
+
* hideOnClick
|
|
83
|
+
* target={buttonRef}
|
|
84
|
+
* >
|
|
85
|
+
* <Menu>
|
|
86
|
+
* <MenuItem onClick={clickA}>Option A</MenuItem>
|
|
87
|
+
* <MenuItem onClick={clickB}>Option B</MenuItem>
|
|
88
|
+
* </Menu>
|
|
89
|
+
* </TooltipPopover>
|
|
90
|
+
* <Button {...buttonProps} ref={buttonRef}>Click me!</Button>
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
|
|
66
95
|
var MenuPopover = ( /*#__PURE__*/0, _base["default"])(_Popover["default"], process.env.NODE_ENV === "production" ? {
|
|
67
96
|
target: "e3mwl4e1"
|
|
68
97
|
} : {
|
|
@@ -17,6 +17,16 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
17
17
|
|
|
18
18
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
19
19
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
20
|
+
/**
|
|
21
|
+
* If a string of text does not fit within the available width this component truncates it in the middle (eg "abc...xyz").
|
|
22
|
+
*
|
|
23
|
+
* Prior art from OS X and its style guide:
|
|
24
|
+
* https://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/OSXHIGuidelines/TerminologyWording.html
|
|
25
|
+
* "An ellipsis character can also show that there is more text than there is room to display in a document title or list item.
|
|
26
|
+
* In general, it’s best to use an ellipsis to take the place of text in the middle of a title or name,
|
|
27
|
+
* because this preserves the beginning and end of the text, which tend to be the most recognizable parts."
|
|
28
|
+
*/
|
|
29
|
+
|
|
20
30
|
var Container = ( /*#__PURE__*/0, _base["default"])('div', process.env.NODE_ENV === "production" ? {
|
|
21
31
|
target: "e19gaic80"
|
|
22
32
|
} : {
|
|
@@ -31,6 +31,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
31
31
|
|
|
32
32
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
33
33
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
34
|
+
/* eslint-disable td/instrumentation */
|
|
35
|
+
// this level of fine grained instrumentation is not needed
|
|
34
36
|
|
|
35
37
|
var Header = function Header(_ref) {
|
|
36
38
|
var _ref$closeTitle = _ref.closeTitle,
|
|
@@ -23,6 +23,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
23
23
|
|
|
24
24
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
25
25
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
26
|
+
/**
|
|
27
|
+
** This component wraps Reach DialogOverlay and adds css classes and our hotkeys
|
|
28
|
+
*/
|
|
26
29
|
|
|
27
30
|
function ModalOverlay(_ref) {
|
|
28
31
|
var className = _ref.className,
|
|
@@ -60,7 +60,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
60
60
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
61
61
|
|
|
62
62
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
63
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
63
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // loosely based on https://github.com/hawkrives/react-list-select
|
|
64
64
|
|
|
65
65
|
var MultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
66
66
|
_inherits(MultiSelect, _React$Component);
|
|
@@ -15,6 +15,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
15
15
|
|
|
16
16
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
17
17
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
18
|
+
/* eslint-disable td/instrumentation */
|
|
19
|
+
// this level of fine grained instrumentation is not needed
|
|
18
20
|
|
|
19
21
|
var LogoItem = function LogoItem(_ref) {
|
|
20
22
|
var onClick = _ref.onClick;
|
|
@@ -31,6 +31,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
31
31
|
|
|
32
32
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
33
33
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
34
|
+
/* eslint-disable td/instrumentation */
|
|
35
|
+
// this level of fine grained instrumentation is not needed
|
|
34
36
|
|
|
35
37
|
var Separator = function Separator() {
|
|
36
38
|
return (0, _jsxRuntime.jsx)(_Box["default"], {
|
|
@@ -32,6 +32,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
32
32
|
|
|
33
33
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
34
34
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
35
|
+
/* eslint-disable td/instrumentation */
|
|
36
|
+
// this level of fine grained instrumentation is not needed
|
|
37
|
+
|
|
35
38
|
var TREASURE_MENU_CLOSE_ID = 'TREASURE_MENU_CLOSE';
|
|
36
39
|
exports.TREASURE_MENU_CLOSE_ID = TREASURE_MENU_CLOSE_ID;
|
|
37
40
|
var StyledOverlayHeader = ( /*#__PURE__*/0, _base["default"])(_Row["default"], process.env.NODE_ENV === "production" ? {
|
|
@@ -39,6 +39,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
39
39
|
|
|
40
40
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
41
41
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
42
|
+
/* eslint-disable td/instrumentation */
|
|
43
|
+
// instrumentation is received thru Select and refs
|
|
42
44
|
|
|
43
45
|
var CreatableReactSelect = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
44
46
|
var fillInputFieldOnFocus = props.fillInputFieldOnFocus,
|
|
@@ -17,6 +17,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
17
17
|
|
|
18
18
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
19
19
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
20
|
+
/**
|
|
21
|
+
* See: https://github.com/JedWatson/react-select/issues/810
|
|
22
|
+
* This is a fix for the dropdown menu getting cut off by container elements
|
|
23
|
+
* and provides the always on top menu, like a native select.
|
|
24
|
+
*
|
|
25
|
+
* It also gives us a place to add a custom class to the menu container
|
|
26
|
+
*/
|
|
27
|
+
|
|
20
28
|
var ListContainer = ( /*#__PURE__*/0, _base["default"])('div', process.env.NODE_ENV === "production" ? {
|
|
21
29
|
target: "ehp9upq0"
|
|
22
30
|
} : {
|
|
@@ -45,6 +45,25 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
45
45
|
|
|
46
46
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
47
47
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
48
|
+
/**
|
|
49
|
+
* Generate props to render an inline select in the v5 theme.
|
|
50
|
+
*
|
|
51
|
+
* Usage:
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
* <Select
|
|
55
|
+
* {...Select.variantProps()}
|
|
56
|
+
* />
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Overriding MenuPortal for three reasons:
|
|
62
|
+
* 1. Bump up min width past 100% width of control
|
|
63
|
+
* 2. Remove margin from ListContainer
|
|
64
|
+
* 3. Change popover options to prevent flipping
|
|
65
|
+
*/
|
|
66
|
+
|
|
48
67
|
var ListContainer = ( /*#__PURE__*/0, _base["default"])('div', process.env.NODE_ENV === "production" ? {
|
|
49
68
|
target: "eb76rtx2"
|
|
50
69
|
} : {
|
package/dist/es/Slider/Slider.js
CHANGED
|
@@ -42,7 +42,9 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
42
42
|
|
|
43
43
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
44
44
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
45
|
+
/* eslint-disable td/instrumentation */
|
|
45
46
|
// When `elastic` is `true`, this defines how much the slider handles are attracted to steps along the range.
|
|
47
|
+
|
|
46
48
|
var GRAVITY_STRENGTH = 5;
|
|
47
49
|
var SliderWithTooltip = (0, _rcSlider.createSliderWithTooltip)(_rcSlider.Range);
|
|
48
50
|
|
|
@@ -15,6 +15,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
15
15
|
|
|
16
16
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
17
17
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
18
|
+
/* eslint-disable td/instrumentation */
|
|
19
|
+
|
|
18
20
|
var Container = ( /*#__PURE__*/0, _base["default"])('span', process.env.NODE_ENV === "production" ? {
|
|
19
21
|
target: "efo2gd22"
|
|
20
22
|
} : {
|
package/dist/es/Tabs/Tabs.js
CHANGED
|
@@ -24,7 +24,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
24
24
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
25
25
|
|
|
26
26
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
27
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
27
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // An accesible, keyboard-navigable tabs component. Wraps reachUI's tabs component
|
|
28
|
+
// https://reach.tech/tabs/
|
|
28
29
|
|
|
29
30
|
var Tabs = function Tabs(_ref) {
|
|
30
31
|
var children = _ref.children,
|
package/dist/es/Tagger/Tagger.js
CHANGED
|
@@ -33,6 +33,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
33
33
|
|
|
34
34
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
35
35
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
36
|
+
/* eslint-disable td/instrumentation */
|
|
37
|
+
// this level of fine grained instrumentation is not needed
|
|
38
|
+
|
|
36
39
|
var RemoveLink = ( /*#__PURE__*/0, _base["default"])(_Link["default"], process.env.NODE_ENV === "production" ? {
|
|
37
40
|
target: "egy9vh3"
|
|
38
41
|
} : {
|
|
@@ -71,6 +71,9 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
71
71
|
|
|
72
72
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
73
73
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
74
|
+
/* eslint-disable td/instrumentation */
|
|
75
|
+
// this level of fine grained instrumentation is not needed
|
|
76
|
+
|
|
74
77
|
var AddLink = Elements.AddLink,
|
|
75
78
|
AddLinkPopover = Elements.AddLinkPopover,
|
|
76
79
|
Header = Elements.Header,
|
|
@@ -618,7 +621,9 @@ var PopupSelector = /*#__PURE__*/function (_PureComponent) {
|
|
|
618
621
|
triggerWidth: (_this$triggerRef$curr4 = this.triggerRef.current) === null || _this$triggerRef$curr4 === void 0 ? void 0 : _this$triggerRef$curr4.offsetWidth
|
|
619
622
|
});
|
|
620
623
|
}
|
|
621
|
-
}
|
|
624
|
+
} // keep track of IME state so we know when to ignore keyDown events
|
|
625
|
+
// more info: https://developer.mozilla.org/en-US/docs/Mozilla/IME_handling_guide
|
|
626
|
+
|
|
622
627
|
}, {
|
|
623
628
|
key: "textToValue",
|
|
624
629
|
value: function textToValue() {
|
|
@@ -54,6 +54,21 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
54
54
|
|
|
55
55
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
56
56
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
57
|
+
/* eslint-disable td/instrumentation */
|
|
58
|
+
// this level of fine grained instrumentation is not needed
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Generate props to render tagger in the v5 theme.
|
|
62
|
+
*
|
|
63
|
+
* Usage:
|
|
64
|
+
*
|
|
65
|
+
* ```
|
|
66
|
+
* <Tagger
|
|
67
|
+
* {...Tagger.variantProps()}
|
|
68
|
+
* />
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
|
|
57
72
|
var IconLink = ( /*#__PURE__*/0, _base["default"])(_Link["default"], process.env.NODE_ENV === "production" ? {
|
|
58
73
|
target: "e1g6p3j74"
|
|
59
74
|
} : {
|
|
@@ -28,10 +28,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
28
28
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
29
|
|
|
30
30
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
31
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
32
|
-
|
|
33
|
-
// TODO: using multiple theme providers will inject multiple copies of global
|
|
31
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // TODO: using multiple theme providers will inject multiple copies of global
|
|
34
32
|
// styles, need to ensure they're only added once
|
|
33
|
+
|
|
35
34
|
function ThemeProvider(_ref) {
|
|
36
35
|
var children = _ref.children,
|
|
37
36
|
_ref$customTheme = _ref.customTheme,
|
|
@@ -15,6 +15,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
15
15
|
|
|
16
16
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
17
17
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
18
|
+
// NOTE: Accessible themes are only supported for v5 Crystal
|
|
18
19
|
var highContrastPalette = {
|
|
19
20
|
success: ['#FFFFFF', '#027400'],
|
|
20
21
|
error: ['#FFFFFF', '#961515'],
|
|
@@ -43,6 +43,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
43
43
|
|
|
44
44
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
45
45
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
46
|
+
/* eslint-disable react/prop-types */
|
|
46
47
|
|
|
47
48
|
var TimeControl = function TimeControl(props) {
|
|
48
49
|
var _useState = (0, _react.useState)(props.initialOpen),
|
|
@@ -17,6 +17,8 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
17
17
|
|
|
18
18
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
19
19
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
20
|
+
/* eslint-disable react/prop-types */
|
|
21
|
+
|
|
20
22
|
var Container = ( /*#__PURE__*/0, _base["default"])('div', process.env.NODE_ENV === "production" ? {
|
|
21
23
|
target: "e1dd2vau2"
|
|
22
24
|
} : {
|
|
@@ -39,6 +39,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
39
39
|
|
|
40
40
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
41
41
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
42
|
+
/* eslint-disable react/prop-types */
|
|
42
43
|
|
|
43
44
|
var TimePicker = function TimePicker(props) {
|
|
44
45
|
var borderless = props.borderless,
|
|
@@ -21,6 +21,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
21
21
|
|
|
22
22
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
23
23
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
24
|
+
/* eslint-disable react/prop-types */
|
|
25
|
+
|
|
26
|
+
/* eslint-disable td/instrumentation */
|
|
27
|
+
// this level of fine grained instrumentation is not needed
|
|
28
|
+
|
|
24
29
|
var Container = ( /*#__PURE__*/0, _base["default"])(_Column["default"], process.env.NODE_ENV === "production" ? {
|
|
25
30
|
target: "e1j5uc2l4"
|
|
26
31
|
} : {
|
|
@@ -43,6 +43,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
43
43
|
|
|
44
44
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
45
45
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
46
|
+
/* eslint-disable react/prop-types */
|
|
47
|
+
|
|
48
|
+
/* eslint-disable td/instrumentation */
|
|
49
|
+
// this level of fine grained instrumentation is not needed
|
|
50
|
+
|
|
46
51
|
var NumericInput = ( /*#__PURE__*/0, _base["default"])('input', process.env.NODE_ENV === "production" ? {
|
|
47
52
|
target: "e1ats8040"
|
|
48
53
|
} : {
|
|
@@ -20,7 +20,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
20
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
21
|
|
|
22
22
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
23
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
23
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // Taken from react-overlays for backwards compatibility
|
|
24
|
+
// https://github.com/react-bootstrap/react-overlays/blob/master/src/useWaitForDOMRef.ts
|
|
25
|
+
// useWaitForDOMRef resolves the tooltip trigger reference
|
|
24
26
|
|
|
25
27
|
var resolveContainerRef = function resolveContainerRef(ref) {
|
|
26
28
|
var _ref;
|
|
@@ -26,7 +26,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
26
26
|
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
27
|
|
|
28
28
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
29
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
29
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // copy paste from https://github.com/frontend-collective/react-sortable-tree-theme-file-explorer/blob/master/node-content-renderer.js to modify
|
|
30
30
|
|
|
31
31
|
function range(from, to) {
|
|
32
32
|
var count = to - from + 1;
|
package/dist/es/Tree/TreeNode.js
CHANGED
|
@@ -30,7 +30,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
30
30
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
31
|
|
|
32
32
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
33
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
33
|
+
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {}; // modified from https://github.com/lifejuggler/react-sortable-tree-theme-minimal/blob/master/tree-node-renderer.js
|
|
34
34
|
|
|
35
35
|
var TreeNode = function TreeNode(_ref) {
|
|
36
36
|
var children = _ref.children,
|
package/dist/es/mixins/border.js
CHANGED
|
@@ -15,6 +15,21 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
15
15
|
|
|
16
16
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
17
17
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
18
|
+
/**
|
|
19
|
+
* Mixin that can expand a border object to a string.
|
|
20
|
+
*
|
|
21
|
+
* Remeber to add `filterProps: ['border']` so the border
|
|
22
|
+
* object doesn't get passed along.
|
|
23
|
+
*
|
|
24
|
+
* @param {Object} props
|
|
25
|
+
* @param {Object} props.border - border object with css border props: width, style, color
|
|
26
|
+
* @param {Object} props.borderLeft
|
|
27
|
+
* @param {Object} props.borderTop
|
|
28
|
+
* @param {Object} props.borderRight
|
|
29
|
+
* @param {Object} props.borderBottom
|
|
30
|
+
* @param {Object} props.theme - emotion theme
|
|
31
|
+
* @returns {Object} - css props
|
|
32
|
+
*/
|
|
18
33
|
|
|
19
34
|
function getBorderStyle(propName, styles, defaultBorder) {
|
|
20
35
|
if (_typeof(styles) === 'object' || styles === true) {
|
package/dist/es/mixins/color.js
CHANGED
|
@@ -6,6 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
8
8
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
9
|
+
/**
|
|
10
|
+
* Mixin that sets common text colors.
|
|
11
|
+
*
|
|
12
|
+
* @param {Object} props
|
|
13
|
+
* @param {Object} props.primary - sets color to theme.color.LightPrimary
|
|
14
|
+
* @param {Object} props.secondary - sets color to theme.color.LightSecondary
|
|
15
|
+
* @param {Object} props.disabled - sets color to theme.color.LightDisabled
|
|
16
|
+
* @param {Object} props.theme - emotion theme
|
|
17
|
+
* @returns {Object} - css props
|
|
18
|
+
*/
|
|
9
19
|
|
|
10
20
|
function color(_ref) {
|
|
11
21
|
var primary = _ref.primary,
|
|
@@ -6,6 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
8
8
|
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
9
|
+
/**
|
|
10
|
+
* Mixin that expands horizontal/vertical margin/padding style props
|
|
11
|
+
* @param {Object} props
|
|
12
|
+
* @param {string} props.marginHorizontal
|
|
13
|
+
* @param {string} props.marginVertical
|
|
14
|
+
* @param {string} props.paddingHorizontal
|
|
15
|
+
* @param {string} props.paddingVertical
|
|
16
|
+
*/
|
|
9
17
|
|
|
10
18
|
function spacing(_ref) {
|
|
11
19
|
var margin = _ref.margin,
|