td-stylekit 28.44.1 → 29.0.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 +48 -0
- package/dist/es/DataGrid/renderers.d.ts +0 -4
- package/dist/es/DataGrid/renderers.js +55 -120
- package/dist/es/DateControl/elements.d.ts +21 -21
- package/dist/es/FormField/index.d.ts +0 -2
- package/dist/es/FormField/index.js +0 -8
- package/dist/es/Icon/types.js +6 -2
- package/dist/es/TimeControl/elements.d.ts +21 -21
- package/dist/es/index.d.ts +1 -11
- package/dist/es/index.js +0 -70
- package/package.json +13 -13
- package/dist/es/CheckboxField/CheckboxField.d.ts +0 -13
- package/dist/es/CheckboxField/CheckboxField.js +0 -73
- package/dist/es/CheckboxField/index.d.ts +0 -3
- package/dist/es/CheckboxField/index.js +0 -15
- package/dist/es/DateField/DateField.d.ts +0 -74
- package/dist/es/DateField/DateField.js +0 -297
- package/dist/es/DateField/elements.d.ts +0 -11
- package/dist/es/DateField/elements.js +0 -39
- package/dist/es/DateField/index.d.ts +0 -3
- package/dist/es/DateField/index.js +0 -15
- package/dist/es/DetailPanel/DetailPanel.d.ts +0 -16
- package/dist/es/DetailPanel/DetailPanel.js +0 -62
- package/dist/es/DetailPanel/elements.d.ts +0 -35
- package/dist/es/DetailPanel/elements.js +0 -225
- package/dist/es/DetailPanel/index.d.ts +0 -3
- package/dist/es/DetailPanel/index.js +0 -15
- package/dist/es/FormField/FormField.d.ts +0 -38
- package/dist/es/FormField/FormField.js +0 -204
- package/dist/es/FormField/elements.d.ts +0 -17
- package/dist/es/FormField/elements.js +0 -75
- package/dist/es/InfiniteList/InfiniteList.d.ts +0 -29
- package/dist/es/InfiniteList/InfiniteList.js +0 -114
- package/dist/es/InfiniteList/index.d.ts +0 -2
- package/dist/es/InfiniteList/index.js +0 -15
- package/dist/es/NavigationBar/LogoItem.d.ts +0 -6
- package/dist/es/NavigationBar/LogoItem.js +0 -42
- package/dist/es/NavigationBar/NavigationBar.d.ts +0 -33
- package/dist/es/NavigationBar/NavigationBar.js +0 -99
- package/dist/es/NavigationBar/NavigationItem.d.ts +0 -33
- package/dist/es/NavigationBar/NavigationItem.js +0 -183
- package/dist/es/NavigationBar/index.d.ts +0 -2
- package/dist/es/NavigationBar/index.js +0 -15
- package/dist/es/NavigationPopover/NavigationPopover.d.ts +0 -24
- package/dist/es/NavigationPopover/NavigationPopover.js +0 -116
- package/dist/es/NavigationPopover/index.d.ts +0 -2
- package/dist/es/NavigationPopover/index.js +0 -15
- package/dist/es/Overlay/Overlay.d.ts +0 -15
- package/dist/es/Overlay/Overlay.js +0 -66
- package/dist/es/Overlay/OverlayBody.d.ts +0 -9
- package/dist/es/Overlay/OverlayBody.js +0 -32
- package/dist/es/Overlay/OverlayHeader.d.ts +0 -37
- package/dist/es/Overlay/OverlayHeader.js +0 -135
- package/dist/es/Overlay/index.d.ts +0 -4
- package/dist/es/Overlay/index.js +0 -29
- package/dist/es/StatCard/StatCard.d.ts +0 -26
- package/dist/es/StatCard/StatCard.js +0 -118
- package/dist/es/StatCard/elements.d.ts +0 -48
- package/dist/es/StatCard/elements.js +0 -156
- package/dist/es/StatCard/index.d.ts +0 -3
- package/dist/es/StatCard/index.js +0 -15
- package/dist/es/TimeField/TimeField.d.ts +0 -15
- package/dist/es/TimeField/TimeField.js +0 -42
- package/dist/es/TimeField/index.d.ts +0 -3
- package/dist/es/TimeField/index.js +0 -15
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ClearButton: import("@emotion/styled").StyledComponent<Partial<import("../Button").UnstyledButtonProps> & import("react").RefAttributes<import("../Button").UnstyledButton> & {
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
}, {}, {}>;
|
|
5
|
-
export declare const FormFieldWrapper: import("@emotion/styled").StyledComponent<{
|
|
6
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
8
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const PopoverComponent: import("@emotion/styled").StyledComponent<import("../Popover").PopoverProps & {
|
|
10
|
-
children?: import("react").ReactNode;
|
|
11
|
-
} & {
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
isInvalid?: boolean | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
export declare const Textarea: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
-
//# sourceMappingURL=elements.d.ts.map
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Textarea = exports.PopoverComponent = exports.FormFieldWrapper = exports.ClearButton = void 0;
|
|
8
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
-
var _Button = _interopRequireDefault(require("../Button"));
|
|
10
|
-
var _Input = _interopRequireDefault(require("../Input"));
|
|
11
|
-
var _Popover = _interopRequireDefault(require("../Popover"));
|
|
12
|
-
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
17
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
19
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
20
|
-
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
21
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
22
|
-
var ClearButton = exports.ClearButton = /*#__PURE__*/(0, _base["default"])(_Button["default"], process.env.NODE_ENV === "production" ? {
|
|
23
|
-
target: "egxpx0f2"
|
|
24
|
-
} : {
|
|
25
|
-
target: "egxpx0f2",
|
|
26
|
-
label: "ClearButton"
|
|
27
|
-
})(function (_ref) {
|
|
28
|
-
var theme = _ref.theme;
|
|
29
|
-
return {
|
|
30
|
-
position: 'absolute',
|
|
31
|
-
top: 0,
|
|
32
|
-
bottom: 0,
|
|
33
|
-
right: theme.space[2],
|
|
34
|
-
height: '2.25rem' // this is hardcoded to match input.css height
|
|
35
|
-
};
|
|
36
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9Gb3JtRmllbGQvZWxlbWVudHMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUsyQiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvRm9ybUZpZWxkL2VsZW1lbnRzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IEJ1dHRvbiBmcm9tICcuLi9CdXR0b24nXG5pbXBvcnQgSW5wdXQgZnJvbSAnLi4vSW5wdXQnXG5pbXBvcnQgUG9wb3ZlciBmcm9tICcuLi9Qb3BvdmVyJ1xuXG5leHBvcnQgY29uc3QgQ2xlYXJCdXR0b24gPSBzdHlsZWQoQnV0dG9uKSgoeyB0aGVtZSB9KSA9PiAoe1xuICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgdG9wOiAwLFxuICBib3R0b206IDAsXG4gIHJpZ2h0OiB0aGVtZS5zcGFjZVsyXSxcbiAgaGVpZ2h0OiAnMi4yNXJlbScgLy8gdGhpcyBpcyBoYXJkY29kZWQgdG8gbWF0Y2ggaW5wdXQuY3NzIGhlaWdodFxufSkpXG5cbmV4cG9ydCBjb25zdCBGb3JtRmllbGRXcmFwcGVyID0gc3R5bGVkKCdkaXYnKSh7XG4gIGFsaWduSXRlbXM6ICdzdHJldGNoJyxcbiAgZGlzcGxheTogJ2ZsZXgnLFxuICBmbGV4RmxvdzogJ2NvbHVtbiBub3dyYXAnLFxuICBtaW5XaWR0aDogMCxcbiAgcG9zaXRpb246ICdyZWxhdGl2ZSdcbn0pXG5cbmV4cG9ydCBjb25zdCBQb3BvdmVyQ29tcG9uZW50ID0gc3R5bGVkKFBvcG92ZXIpPHsgaXNJbnZhbGlkPzogYm9vbGVhbiB9PihcbiAgKHsgdGhlbWUgfSkgPT4gKHtcbiAgICBtYXhXaWR0aDogMTgwLFxuICAgIGZvbnRTaXplOiB0aGVtZS5mb250U2l6ZVswXVxuICB9KSxcbiAgKHsgdGhlbWUsIGlzSW52YWxpZCB9KSA9PlxuICAgIGlzSW52YWxpZCAmJiB7XG4gICAgICBjb2xvcjogdGhlbWUuY29sb3IuRXJyb3JcbiAgICB9XG4pXG5cbmV4cG9ydCBjb25zdCBUZXh0YXJlYSA9IHByb3BzID0+IDxJbnB1dCB7Li4ucHJvcHN9IHR5cGU9XCJ0ZXh0YXJlYVwiIC8+XG4iXX0= */");
|
|
37
|
-
var FormFieldWrapper = exports.FormFieldWrapper = /*#__PURE__*/(0, _base["default"])('div', process.env.NODE_ENV === "production" ? {
|
|
38
|
-
target: "egxpx0f1"
|
|
39
|
-
} : {
|
|
40
|
-
target: "egxpx0f1",
|
|
41
|
-
label: "FormFieldWrapper"
|
|
42
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
43
|
-
name: "1saxkct",
|
|
44
|
-
styles: "align-items:stretch;display:flex;flex-flow:column nowrap;min-width:0;position:relative"
|
|
45
|
-
} : {
|
|
46
|
-
name: "1saxkct",
|
|
47
|
-
styles: "align-items:stretch;display:flex;flex-flow:column nowrap;min-width:0;position:relative",
|
|
48
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9Gb3JtRmllbGQvZWxlbWVudHMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWFnQyIsImZpbGUiOiIuLi8uLi8uLi9zcmMvRm9ybUZpZWxkL2VsZW1lbnRzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJ1xuaW1wb3J0IEJ1dHRvbiBmcm9tICc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String: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
50
|
-
});
|
|
51
|
-
var PopoverComponent = exports.PopoverComponent = /*#__PURE__*/(0, _base["default"])(_Popover["default"], process.env.NODE_ENV === "production" ? {
|
|
52
|
-
target: "egxpx0f0"
|
|
53
|
-
} : {
|
|
54
|
-
target: "egxpx0f0",
|
|
55
|
-
label: "PopoverComponent"
|
|
56
|
-
})(function (_ref2) {
|
|
57
|
-
var theme = _ref2.theme;
|
|
58
|
-
return {
|
|
59
|
-
maxWidth: 180,
|
|
60
|
-
fontSize: theme.fontSize[0]
|
|
61
|
-
};
|
|
62
|
-
}, function (_ref3) {
|
|
63
|
-
var theme = _ref3.theme,
|
|
64
|
-
isInvalid = _ref3.isInvalid;
|
|
65
|
-
return isInvalid && {
|
|
66
|
-
color: theme.color.Error
|
|
67
|
-
};
|
|
68
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9Gb3JtRmllbGQvZWxlbWVudHMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXFCZ0MiLCJmaWxlIjoiLi4vLi4vLi4vc3JjL0Zvcm1GaWVsZC9lbGVtZW50cy50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCBCdXR0b24gZnJvbSAnLi4vQnV0dG9uJ1xuaW1wb3J0IElucHV0IGZyb20gJy4uL0lucHV0J1xuaW1wb3J0IFBvcG92ZXIgZnJvbSAnLi4vUG9wb3ZlcidcblxuZXhwb3J0IGNvbnN0IENsZWFyQnV0dG9uID0gc3R5bGVkKEJ1dHRvbikoKHsgdGhlbWUgfSkgPT4gKHtcbiAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gIHRvcDogMCxcbiAgYm90dG9tOiAwLFxuICByaWdodDogdGhlbWUuc3BhY2VbMl0sXG4gIGhlaWdodDogJzIuMjVyZW0nIC8vIHRoaXMgaXMgaGFyZGNvZGVkIHRvIG1hdGNoIGlucHV0LmNzcyBoZWlnaHRcbn0pKVxuXG5leHBvcnQgY29uc3QgRm9ybUZpZWxkV3JhcHBlciA9IHN0eWxlZCgnZGl2Jykoe1xuICBhbGlnbkl0ZW1zOiAnc3RyZXRjaCcsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgZmxleEZsb3c6ICdjb2x1bW4gbm93cmFwJyxcbiAgbWluV2lkdGg6IDAsXG4gIHBvc2l0aW9uOiAncmVsYXRpdmUnXG59KVxuXG5leHBvcnQgY29uc3QgUG9wb3ZlckNvbXBvbmVudCA9IHN0eWxlZChQb3BvdmVyKTx7IGlzSW52YWxpZD86IGJvb2xlYW4gfT4oXG4gICh7IHRoZW1lIH0pID0+ICh7XG4gICAgbWF4V2lkdGg6IDE4MCxcbiAgICBmb250U2l6ZTogdGhlbWUuZm9udFNpemVbMF1cbiAgfSksXG4gICh7IHRoZW1lLCBpc0ludmFsaWQgfSkgPT5cbiAgICBpc0ludmFsaWQgJiYge1xuICAgICAgY29sb3I6IHRoZW1lLmNvbG9yLkVycm9yXG4gICAgfVxuKVxuXG5leHBvcnQgY29uc3QgVGV4dGFyZWEgPSBwcm9wcyA9PiA8SW5wdXQgey4uLnByb3BzfSB0eXBlPVwidGV4dGFyZWFcIiAvPlxuIl19 */");
|
|
69
|
-
var Textarea = exports.Textarea = function Textarea(props) {
|
|
70
|
-
return (0, _jsxRuntime.jsx)(_Input["default"], _objectSpread(_objectSpread({
|
|
71
|
-
"data-gs": gs("src", "formfield", "elements.tsx", "input")
|
|
72
|
-
}, props), {}, {
|
|
73
|
-
type: "textarea"
|
|
74
|
-
}));
|
|
75
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { InfiniteLoader } from 'react-virtualized';
|
|
3
|
-
import type { ListProps, Index } from 'react-virtualized';
|
|
4
|
-
export type InfiniteListProps = ListProps & {
|
|
5
|
-
hasMoreRows: boolean;
|
|
6
|
-
/** Count of rows that have already been loaded. */
|
|
7
|
-
rowCount: number;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Decorates a List component with infinite-loading behavior when the total row
|
|
11
|
-
* count is not known.
|
|
12
|
-
*
|
|
13
|
-
* Extra props get passed to List component.
|
|
14
|
-
* See [react-virtualized docs](https://github.com/bvaughn/react-virtualized/blob/master/docs/List.md)
|
|
15
|
-
* for required props.
|
|
16
|
-
*
|
|
17
|
-
* Note: You should pass anything that affects cell rendering as a prop to ensure
|
|
18
|
-
* the component is re-rendered when those props change.
|
|
19
|
-
* More info: https://github.com/bvaughn/react-virtualized#pure-components
|
|
20
|
-
*/
|
|
21
|
-
declare class InfiniteList extends Component<InfiniteListProps> {
|
|
22
|
-
props: InfiniteListProps;
|
|
23
|
-
infiniteList: import("react").RefObject<InfiniteLoader>;
|
|
24
|
-
resetCache(autoload: boolean): void | null;
|
|
25
|
-
isRowLoaded: ({ index }: Index) => boolean;
|
|
26
|
-
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
27
|
-
}
|
|
28
|
-
export default InfiniteList;
|
|
29
|
-
//# sourceMappingURL=InfiniteList.d.ts.map
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactVirtualized = require("react-virtualized");
|
|
9
|
-
var _lodash = _interopRequireDefault(require("lodash.noop"));
|
|
10
|
-
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
11
|
-
var _excluded = ["hasMoreRows", "loadMoreRows", "rowCount"];
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
14
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
17
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
18
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
23
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
24
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
26
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
28
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31
|
-
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
32
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
33
|
-
/**
|
|
34
|
-
* Decorates a List component with infinite-loading behavior when the total row
|
|
35
|
-
* count is not known.
|
|
36
|
-
*
|
|
37
|
-
* Extra props get passed to List component.
|
|
38
|
-
* See [react-virtualized docs](https://github.com/bvaughn/react-virtualized/blob/master/docs/List.md)
|
|
39
|
-
* for required props.
|
|
40
|
-
*
|
|
41
|
-
* Note: You should pass anything that affects cell rendering as a prop to ensure
|
|
42
|
-
* the component is re-rendered when those props change.
|
|
43
|
-
* More info: https://github.com/bvaughn/react-virtualized#pure-components
|
|
44
|
-
*/
|
|
45
|
-
var InfiniteList = /*#__PURE__*/function (_Component) {
|
|
46
|
-
function InfiniteList() {
|
|
47
|
-
var _this;
|
|
48
|
-
_classCallCheck(this, InfiniteList);
|
|
49
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
50
|
-
args[_key] = arguments[_key];
|
|
51
|
-
}
|
|
52
|
-
_this = _callSuper(this, InfiniteList, [].concat(args));
|
|
53
|
-
_defineProperty(_this, "props", void 0);
|
|
54
|
-
_defineProperty(_this, "infiniteList", /*#__PURE__*/(0, _react.createRef)());
|
|
55
|
-
// As far as InfiniteLoader is concerned, every row except our placeholder row is loaded.
|
|
56
|
-
_defineProperty(_this, "isRowLoaded", function (_ref) {
|
|
57
|
-
var index = _ref.index;
|
|
58
|
-
var _this$props = _this.props,
|
|
59
|
-
hasMoreRows = _this$props.hasMoreRows,
|
|
60
|
-
rowCount = _this$props.rowCount;
|
|
61
|
-
return !hasMoreRows || index < rowCount;
|
|
62
|
-
});
|
|
63
|
-
return _this;
|
|
64
|
-
}
|
|
65
|
-
_inherits(InfiniteList, _Component);
|
|
66
|
-
return _createClass(InfiniteList, [{
|
|
67
|
-
key: "resetCache",
|
|
68
|
-
value: function resetCache(autoload) {
|
|
69
|
-
return this.infiniteList && this.infiniteList.current && this.infiniteList.current.resetLoadMoreRowsCache(autoload);
|
|
70
|
-
}
|
|
71
|
-
}, {
|
|
72
|
-
key: "render",
|
|
73
|
-
value: function render() {
|
|
74
|
-
var _this$props2 = this.props,
|
|
75
|
-
hasMoreRows = _this$props2.hasMoreRows,
|
|
76
|
-
loadMoreRows = _this$props2.loadMoreRows,
|
|
77
|
-
rowCount = _this$props2.rowCount,
|
|
78
|
-
listProps = _objectWithoutProperties(_this$props2, _excluded);
|
|
79
|
-
// If there are more rows, pad the List with an extra row as a placeholder for a loading indicator.
|
|
80
|
-
var paddedRowCount = hasMoreRows ? rowCount + 1 : rowCount;
|
|
81
|
-
return (0, _jsxRuntime.jsx)(_reactVirtualized.InfiniteLoader, {
|
|
82
|
-
"data-gs-c": gsC(function children(_ref2) {
|
|
83
|
-
var onRowsRendered = _ref2.onRowsRendered,
|
|
84
|
-
registerChild = _ref2.registerChild;
|
|
85
|
-
return (0, _jsxRuntime.jsx)(_reactVirtualized.List, _objectSpread(_objectSpread({
|
|
86
|
-
"data-gs": gs("src", "infinitelist", "infinitelist.tsx", "infinite-loader", "list")
|
|
87
|
-
}, listProps), {}, {
|
|
88
|
-
ref: registerChild,
|
|
89
|
-
onRowsRendered: onRowsRendered,
|
|
90
|
-
rowCount: paddedRowCount
|
|
91
|
-
}));
|
|
92
|
-
}),
|
|
93
|
-
"data-gs": gs("src", "infinitelist", "infinitelist.tsx", "infinite-loader"),
|
|
94
|
-
isRowLoaded: this.isRowLoaded,
|
|
95
|
-
loadMoreRows: loadMoreRows || _lodash["default"],
|
|
96
|
-
rowCount: paddedRowCount,
|
|
97
|
-
threshold: 5,
|
|
98
|
-
ref: this.infiniteList,
|
|
99
|
-
children: function children(_ref2) {
|
|
100
|
-
var onRowsRendered = _ref2.onRowsRendered,
|
|
101
|
-
registerChild = _ref2.registerChild;
|
|
102
|
-
return (0, _jsxRuntime.jsx)(_reactVirtualized.List, _objectSpread(_objectSpread({
|
|
103
|
-
"data-gs": gs("src", "infinitelist", "infinitelist.tsx", "infinite-loader", "list")
|
|
104
|
-
}, listProps), {}, {
|
|
105
|
-
ref: registerChild,
|
|
106
|
-
onRowsRendered: onRowsRendered,
|
|
107
|
-
rowCount: paddedRowCount
|
|
108
|
-
}));
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}]);
|
|
113
|
-
}(_react.Component);
|
|
114
|
-
var _default = exports["default"] = InfiniteList;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "default", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _InfiniteList["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _InfiniteList = _interopRequireDefault(require("./InfiniteList"));
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
15
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _NavigationItem = _interopRequireDefault(require("./NavigationItem"));
|
|
8
|
-
var _Logo = _interopRequireDefault(require("../Logo"));
|
|
9
|
-
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
12
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
13
|
-
/* eslint-disable td/instrumentation */
|
|
14
|
-
// this level of fine grained instrumentation is not needed
|
|
15
|
-
var LogoItem = function LogoItem(_ref) {
|
|
16
|
-
var onClick = _ref.onClick;
|
|
17
|
-
return (0, _jsxRuntime.jsx)(_NavigationItem["default"], {
|
|
18
|
-
"data-gs": gs("src", "navigationbar", "logoitem.tsx", "navigation-item"),
|
|
19
|
-
css: function css(theme) {
|
|
20
|
-
return {
|
|
21
|
-
alignItems: 'flex-end',
|
|
22
|
-
justifyContent: 'center',
|
|
23
|
-
// Half the width of NavigationPill minus half the width of SVG
|
|
24
|
-
// Aligns center of icon with NavigationPill
|
|
25
|
-
paddingRight: 'calc((2.75rem / 2 ) - 12px)',
|
|
26
|
-
cursor: 'pointer',
|
|
27
|
-
height: '3.75rem',
|
|
28
|
-
width: '100%',
|
|
29
|
-
borderBottom: "1px solid ".concat(theme.color.LightDividerNew)
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
alignSelf: "center",
|
|
33
|
-
onClick: onClick,
|
|
34
|
-
"data-testid": "logo-item",
|
|
35
|
-
children: (0, _jsxRuntime.jsx)(_Logo["default"], {
|
|
36
|
-
"data-gs": gs("src", "navigationbar", "logoitem.tsx", "navigation-item", "logo"),
|
|
37
|
-
width: "24",
|
|
38
|
-
height: "16"
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
var _default = exports["default"] = LogoItem;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { BoxProps } from '../Box';
|
|
3
|
-
import type { Border, Spacing } from '../mixins';
|
|
4
|
-
import NavigationItem from './NavigationItem';
|
|
5
|
-
declare const Separator: React.FunctionComponent<React.PropsWithChildren<{}>>;
|
|
6
|
-
declare const NavigationPill: import("@emotion/styled").StyledComponent<BoxProps & {
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
}, {}, {}>;
|
|
9
|
-
export type NavigationBarSubComponents = {
|
|
10
|
-
Separator: typeof Separator;
|
|
11
|
-
NavigationItem: typeof NavigationItem;
|
|
12
|
-
NavigationPill: typeof NavigationPill;
|
|
13
|
-
};
|
|
14
|
-
export type NavigationBarProps = BoxProps & Partial<Border & Spacing> & {
|
|
15
|
-
children: React.ReactNode;
|
|
16
|
-
showLogo?: boolean;
|
|
17
|
-
logoAction?: () => void;
|
|
18
|
-
props?: {};
|
|
19
|
-
};
|
|
20
|
-
export declare const StyledNavigationBar: import("@emotion/styled").StyledComponent<{
|
|
21
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
-
} & BoxProps & Partial<Border & Spacing> & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
24
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
} & {
|
|
26
|
-
children: React.ReactNode;
|
|
27
|
-
showLogo?: boolean | undefined;
|
|
28
|
-
logoAction?: (() => void) | undefined;
|
|
29
|
-
props?: {} | undefined;
|
|
30
|
-
}, {}, {}>;
|
|
31
|
-
declare const NavigationBar: React.FunctionComponent<React.PropsWithChildren<NavigationBarProps>> & NavigationBarSubComponents;
|
|
32
|
-
export default NavigationBar;
|
|
33
|
-
//# sourceMappingURL=NavigationBar.d.ts.map
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = exports.StyledNavigationBar = void 0;
|
|
8
|
-
var _base = _interopRequireDefault(require("@emotion/styled/base"));
|
|
9
|
-
var _Box = _interopRequireDefault(require("../Box"));
|
|
10
|
-
var _NavigationItem = _interopRequireDefault(require("./NavigationItem"));
|
|
11
|
-
var _LogoItem = _interopRequireDefault(require("./LogoItem"));
|
|
12
|
-
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
13
|
-
var _excluded = ["children", "showLogo", "logoAction"];
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
17
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
20
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
21
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
22
|
-
if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
|
|
23
|
-
if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
|
|
24
|
-
/* eslint-disable td/instrumentation */
|
|
25
|
-
// this level of fine grained instrumentation is not needed
|
|
26
|
-
var Separator = function Separator() {
|
|
27
|
-
return (0, _jsxRuntime.jsx)(_Box["default"], {
|
|
28
|
-
"data-gs": gs("src", "navigationbar", "navigationbar.tsx", "box"),
|
|
29
|
-
flex: true
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
var NavigationPill = /*#__PURE__*/(0, _base["default"])(function (props) {
|
|
33
|
-
return (0, _jsxRuntime.jsx)(_Box["default"], _objectSpread(_objectSpread({
|
|
34
|
-
"data-gs": gs("src", "navigationbar", "navigationbar.tsx", "box")
|
|
35
|
-
}, props), {}, {
|
|
36
|
-
align: "stretch",
|
|
37
|
-
direction: "column"
|
|
38
|
-
}));
|
|
39
|
-
}, process.env.NODE_ENV === "production" ? {
|
|
40
|
-
target: "e14c004z1"
|
|
41
|
-
} : {
|
|
42
|
-
target: "e14c004z1",
|
|
43
|
-
label: "NavigationPill"
|
|
44
|
-
})(function (_ref) {
|
|
45
|
-
var theme = _ref.theme;
|
|
46
|
-
return {
|
|
47
|
-
position: 'relative',
|
|
48
|
-
width: '2.75rem',
|
|
49
|
-
borderRadius: '1.5rem',
|
|
50
|
-
minHeight: '28rem',
|
|
51
|
-
paddingTop: theme.space[2],
|
|
52
|
-
paddingBottom: theme.space[2],
|
|
53
|
-
flex: 1,
|
|
54
|
-
zIndex: theme.zIndex.PrimaryNav,
|
|
55
|
-
marginTop: theme.space[3],
|
|
56
|
-
border: "1px solid ".concat(theme.color.BokaraGrey),
|
|
57
|
-
boxShadow: theme.shadows.pill,
|
|
58
|
-
backgroundColor: theme.color.LightBackground
|
|
59
|
-
};
|
|
60
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9OYXZpZ2F0aW9uQmFyL05hdmlnYXRpb25CYXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVl1QiIsImZpbGUiOiIuLi8uLi8uLi9zcmMvTmF2aWdhdGlvbkJhci9OYXZpZ2F0aW9uQmFyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qIGVzbGludC1kaXNhYmxlIHRkL2luc3RydW1lbnRhdGlvbiAqL1xuLy8gdGhpcyBsZXZlbCBvZiBmaW5lIGdyYWluZWQgaW5zdHJ1bWVudGF0aW9uIGlzIG5vdCBuZWVkZWRcbmltcG9ydCBCb3ggZnJvbSAnLi4vQm94J1xuaW1wb3J0IHR5cGUgeyBCb3hQcm9wcyB9IGZyb20gJy4uL0JveCdcbmltcG9ydCB0eXBlIHsgQm9yZGVyLCBTcGFjaW5nIH0gZnJvbSAnLi4vbWl4aW5zJ1xuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnXG5pb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cykgPT4ge1xuICByZXR1cm4gKFxuICAgIDxTdHlsZWROYXZpZ2F0aW9uQmFyIGFsaWduPVwic3RyZXRjaFwiIGRpcmVjdGlvbj1cImNvbHVtblwiIHsuLi5wcm9wc30+XG4gICAgICB7c2hvd0xvZ28gJiYgPExvZ29JdGVtIG9uQ2xpY2s9e2xvZ29BY3Rpb259IC8+fVxuICAgICAge2NoaWxkcmVufVxuICAgIDwvU3R5bGVkTmF2aWdhdGlvbkJhcj5cbiAgKVxufVxuXG5OYXZpZ2F0aW9uQmFyLmRpc3BsYXlOYW1lID0gJ05hdmlnYXRpb25CYXInXG5cbk5hdmlnYXRpb25CYXIuU2VwYXJhdG9yID0gU2VwYXJhdG9yXG5OYXZpZ2F0aW9uQmFyLk5hdmlnYXRpb25JdGVtID0gTmF2aWdhdGlvbkl0ZW1cbk5hdmlnYXRpb25CYXIuTmF2aWdhdGlvblBpbGwgPSBOYXZpZ2F0aW9uUGlsbFxuXG5leHBvcnQgZGVmYXVsdCBOYXZpZ2F0aW9uQmFyXG4iXX0= */");
|
|
61
|
-
NavigationPill.displayName = 'NavigationPill';
|
|
62
|
-
var StyledNavigationBar = exports.StyledNavigationBar = /*#__PURE__*/(0, _base["default"])(_Box["default"], process.env.NODE_ENV === "production" ? {
|
|
63
|
-
target: "e14c004z0"
|
|
64
|
-
} : {
|
|
65
|
-
target: "e14c004z0",
|
|
66
|
-
label: "StyledNavigationBar"
|
|
67
|
-
})(function (_ref2) {
|
|
68
|
-
var theme = _ref2.theme;
|
|
69
|
-
return {
|
|
70
|
-
position: 'relative',
|
|
71
|
-
alignItems: 'flex-end',
|
|
72
|
-
backgroundColor: theme.color.WhiteSmoke,
|
|
73
|
-
fontSize: theme.fontSize[1],
|
|
74
|
-
width: 54,
|
|
75
|
-
height: '100%',
|
|
76
|
-
paddingBottom: theme.space[4]
|
|
77
|
-
};
|
|
78
|
-
}, process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,e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Rpb25QaWxsID0gTmF2aWdhdGlvblBpbGxcblxuZXhwb3J0IGRlZmF1bHQgTmF2aWdhdGlvbkJhclxuIl19 */");
|
|
79
|
-
var NavigationBar = function NavigationBar(_ref3) {
|
|
80
|
-
var children = _ref3.children,
|
|
81
|
-
showLogo = _ref3.showLogo,
|
|
82
|
-
logoAction = _ref3.logoAction,
|
|
83
|
-
props = _objectWithoutProperties(_ref3, _excluded);
|
|
84
|
-
return (0, _jsxRuntime.jsxs)(StyledNavigationBar, _objectSpread(_objectSpread({
|
|
85
|
-
"data-gs": gs("src", "navigationbar", "navigationbar.tsx", "styled-navigation-bar"),
|
|
86
|
-
align: "stretch",
|
|
87
|
-
direction: "column"
|
|
88
|
-
}, props), {}, {
|
|
89
|
-
children: [showLogo && (0, _jsxRuntime.jsx)(_LogoItem["default"], {
|
|
90
|
-
"data-gs": gs("src", "navigationbar", "navigationbar.tsx", "styled-navigation-bar", "logo-item"),
|
|
91
|
-
onClick: logoAction
|
|
92
|
-
}), children]
|
|
93
|
-
}));
|
|
94
|
-
};
|
|
95
|
-
NavigationBar.displayName = 'NavigationBar';
|
|
96
|
-
NavigationBar.Separator = Separator;
|
|
97
|
-
NavigationBar.NavigationItem = _NavigationItem["default"];
|
|
98
|
-
NavigationBar.NavigationPill = NavigationPill;
|
|
99
|
-
var _default = exports["default"] = NavigationBar;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import type { Interpolation, Theme } from '@emotion/react';
|
|
3
|
-
/**
|
|
4
|
-
* Component to be used as children of NavigationBar
|
|
5
|
-
*/
|
|
6
|
-
type NavigationItemProps = {
|
|
7
|
-
children: ReactElement<any> | ReactElement<any>[];
|
|
8
|
-
disableTooltip?: boolean;
|
|
9
|
-
'data-instrumentation'?: string;
|
|
10
|
-
tooltipHeader?: ReactNode;
|
|
11
|
-
tooltipMenu?: ReactNode;
|
|
12
|
-
tooltip?: ReactNode;
|
|
13
|
-
alignSelf?: string;
|
|
14
|
-
onClick?: () => void;
|
|
15
|
-
css?: Interpolation<Theme>;
|
|
16
|
-
};
|
|
17
|
-
declare const NavigationItem: {
|
|
18
|
-
({ disableTooltip, tooltipHeader, tooltipMenu, tooltip, ...props }: NavigationItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
-
displayName: string;
|
|
20
|
-
Link: import("@emotion/styled").StyledComponent<{
|
|
21
|
-
theme?: Theme | undefined;
|
|
22
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
-
} & Partial<import("../mixins").Border & import("../mixins").Color & import("../mixins").Spacing> & import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & {
|
|
24
|
-
theme?: Theme | undefined;
|
|
25
|
-
} & import("../Link").LinkProps & import("react").ClassAttributes<HTMLAnchorElement> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & NavigationLinkProps, {}, {}>;
|
|
26
|
-
};
|
|
27
|
-
type NavigationLinkProps = {
|
|
28
|
-
active?: boolean;
|
|
29
|
-
disabled?: boolean;
|
|
30
|
-
'data-instrumentation'?: string;
|
|
31
|
-
};
|
|
32
|
-
export default NavigationItem;
|
|
33
|
-
//# sourceMappingURL=NavigationItem.d.ts.map
|