td-stylekit 29.0.0 → 30.0.1

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.
Files changed (109) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/es/BarChart/BarChart.d.ts +2 -2
  3. package/dist/es/BarChart/BarChart.js +5 -15
  4. package/dist/es/ChartPrimitives/utils.d.ts +0 -10
  5. package/dist/es/ChartPrimitives/utils.js +7 -145
  6. package/dist/es/ComparisonChart/ComparisonChart.d.ts +2 -2
  7. package/dist/es/ComparisonChart/ComparisonChart.js +5 -16
  8. package/dist/es/DataGrid/elements.d.ts +2 -78
  9. package/dist/es/DataGrid/elements.js +29 -29
  10. package/dist/es/DateControl/elements.d.ts +13 -13
  11. package/dist/es/DropdownButton/DropdownButtonElements.d.ts +1 -1
  12. package/dist/es/DropdownButton/DropdownButtonElements.js +8 -8
  13. package/dist/es/GrowthRateChart/GrowthRateChart.d.ts +0 -76
  14. package/dist/es/GrowthRateChart/GrowthRateChart.js +2 -9
  15. package/dist/es/Heading/Heading.js +2 -2
  16. package/dist/es/Highlighter/Highlighter.js +2 -2
  17. package/dist/es/Icon/Icon.js +2 -2
  18. package/dist/es/Icon/staticTypes.d.ts +88 -418
  19. package/dist/es/Icon/types.js +1 -555
  20. package/dist/es/Logo/Logo.js +0 -12
  21. package/dist/es/Menu/MenuElements.js +3 -3
  22. package/dist/es/MultiSelect/elements.d.ts +1 -1
  23. package/dist/es/MultiSelect/elements.js +17 -17
  24. package/dist/es/SecondaryNavigation/elements/Item.js +7 -7
  25. package/dist/es/SecondaryNavigation/elements/Section.js +3 -3
  26. package/dist/es/SecondaryNavigation/elements/Title.js +3 -3
  27. package/dist/es/SecondaryNavigation/elements/Wrapper.js +3 -3
  28. package/dist/es/Section/elements.d.ts +1 -1
  29. package/dist/es/Select/utils.js +2 -2
  30. package/dist/es/Tagger/TaggerElements.js +11 -11
  31. package/dist/es/Tagger/components/PopupSelector.js +4 -4
  32. package/dist/es/Tagger/components/PopupSelectorElements.js +16 -16
  33. package/dist/es/ThemeProvider/ThemeProvider.d.ts +0 -205
  34. package/dist/es/ThemeProvider/ThemeProvider.js +1 -7
  35. package/dist/es/ThemeProvider/icons.d.ts +1 -1
  36. package/dist/es/ThemeProvider/icons.js +4 -46
  37. package/dist/es/ThemeProvider/index.d.ts +1 -1
  38. package/dist/es/ThemeProvider/index.js +0 -6
  39. package/dist/es/ThemeProvider/theme.d.ts +0 -76
  40. package/dist/es/ThemeProvider/theme.js +0 -82
  41. package/dist/es/ThemeProvider/types.d.ts +1 -1
  42. package/dist/es/TimeControl/elements.d.ts +13 -13
  43. package/dist/es/TimePicker/components/Spinner.js +3 -2
  44. package/dist/es/Toggle/Toggle.js +6 -7
  45. package/dist/es/UserAvatar/UserAvatar.js +7 -7
  46. package/dist/es/VolumeChart/VolumeChart.d.ts +2 -2
  47. package/dist/es/VolumeChart/VolumeChart.js +2 -13
  48. package/dist/es/mixins/border.d.ts +1 -1
  49. package/dist/es/mixins/border.js +3 -3
  50. package/dist/es/utils/globalcss.js +1 -1
  51. package/dist/es/utils/testingLibrary.d.ts +1 -3
  52. package/dist/es/utils/testingLibrary.js +13 -24
  53. package/package.json +1 -1
  54. package/dist/es/ThemeProvider/v4/Badge.d.ts +0 -10
  55. package/dist/es/ThemeProvider/v4/Badge.js +0 -57
  56. package/dist/es/ThemeProvider/v4/Button.d.ts +0 -161
  57. package/dist/es/ThemeProvider/v4/Button.js +0 -200
  58. package/dist/es/ThemeProvider/v4/Card.d.ts +0 -12
  59. package/dist/es/ThemeProvider/v4/Card.js +0 -24
  60. package/dist/es/ThemeProvider/v4/Checkbox.d.ts +0 -70
  61. package/dist/es/ThemeProvider/v4/Checkbox.js +0 -94
  62. package/dist/es/ThemeProvider/v4/CollapsibleToggle.d.ts +0 -31
  63. package/dist/es/ThemeProvider/v4/CollapsibleToggle.js +0 -46
  64. package/dist/es/ThemeProvider/v4/Color.d.ts +0 -12
  65. package/dist/es/ThemeProvider/v4/Color.js +0 -47
  66. package/dist/es/ThemeProvider/v4/DataGrid.d.ts +0 -72
  67. package/dist/es/ThemeProvider/v4/DataGrid.js +0 -182
  68. package/dist/es/ThemeProvider/v4/DatePicker.d.ts +0 -41
  69. package/dist/es/ThemeProvider/v4/DatePicker.js +0 -111
  70. package/dist/es/ThemeProvider/v4/DropdownButton.d.ts +0 -67
  71. package/dist/es/ThemeProvider/v4/DropdownButton.js +0 -99
  72. package/dist/es/ThemeProvider/v4/FormFieldAddon.d.ts +0 -16
  73. package/dist/es/ThemeProvider/v4/FormFieldAddon.js +0 -38
  74. package/dist/es/ThemeProvider/v4/FormLabel.d.ts +0 -11
  75. package/dist/es/ThemeProvider/v4/FormLabel.js +0 -28
  76. package/dist/es/ThemeProvider/v4/Icon.d.ts +0 -7
  77. package/dist/es/ThemeProvider/v4/Icon.js +0 -20
  78. package/dist/es/ThemeProvider/v4/Input.d.ts +0 -10
  79. package/dist/es/ThemeProvider/v4/Input.js +0 -50
  80. package/dist/es/ThemeProvider/v4/Link.d.ts +0 -20
  81. package/dist/es/ThemeProvider/v4/Link.js +0 -30
  82. package/dist/es/ThemeProvider/v4/Menu.d.ts +0 -36
  83. package/dist/es/ThemeProvider/v4/Menu.js +0 -60
  84. package/dist/es/ThemeProvider/v4/Modal.d.ts +0 -63
  85. package/dist/es/ThemeProvider/v4/Modal.js +0 -216
  86. package/dist/es/ThemeProvider/v4/MultiSelect.d.ts +0 -35
  87. package/dist/es/ThemeProvider/v4/MultiSelect.js +0 -126
  88. package/dist/es/ThemeProvider/v4/Popover.d.ts +0 -4
  89. package/dist/es/ThemeProvider/v4/Popover.js +0 -107
  90. package/dist/es/ThemeProvider/v4/Radio.d.ts +0 -17
  91. package/dist/es/ThemeProvider/v4/Radio.js +0 -69
  92. package/dist/es/ThemeProvider/v4/Section.d.ts +0 -33
  93. package/dist/es/ThemeProvider/v4/Section.js +0 -93
  94. package/dist/es/ThemeProvider/v4/Select.d.ts +0 -69
  95. package/dist/es/ThemeProvider/v4/Select.js +0 -198
  96. package/dist/es/ThemeProvider/v4/Shuttle.d.ts +0 -12
  97. package/dist/es/ThemeProvider/v4/Shuttle.js +0 -28
  98. package/dist/es/ThemeProvider/v4/Tagger.d.ts +0 -30
  99. package/dist/es/ThemeProvider/v4/Tagger.js +0 -64
  100. package/dist/es/ThemeProvider/v4/Toast.d.ts +0 -35
  101. package/dist/es/ThemeProvider/v4/Toast.js +0 -119
  102. package/dist/es/ThemeProvider/v4/Toggle.d.ts +0 -18
  103. package/dist/es/ThemeProvider/v4/Toggle.js +0 -93
  104. package/dist/es/ThemeProvider/v4/UserAvatar.d.ts +0 -15
  105. package/dist/es/ThemeProvider/v4/UserAvatar.js +0 -31
  106. package/dist/es/ThemeProvider/v4/View.d.ts +0 -9
  107. package/dist/es/ThemeProvider/v4/View.js +0 -21
  108. package/dist/es/ThemeProvider/v4/index.d.ts +0 -6
  109. package/dist/es/ThemeProvider/v4/index.js +0 -46
@@ -1,200 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _color = _interopRequireDefault(require("color"));
8
- var _overridable = _interopRequireDefault(require("../overridable"));
9
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
10
- 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); }
11
- 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; }
12
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
13
- 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); }
14
- if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
15
- if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
16
- var Root = _overridable["default"].Button.Root;
17
- var _default = exports["default"] = _defineProperty({}, Root, [
18
- // default outline
19
- function (_ref) {
20
- var circle = _ref.circle,
21
- small = _ref.small,
22
- theme = _ref.theme,
23
- plain = _ref.plain,
24
- icon = _ref.icon,
25
- ignoreFocus = _ref.ignoreFocus,
26
- disabled = _ref.disabled,
27
- loading = _ref.loading;
28
- return !plain && !icon && {
29
- backgroundColor: theme.color.LightBackground,
30
- border: "1px solid ".concat(theme.color.CuriousBlue),
31
- borderRadius: theme.radius[2],
32
- color: theme.color.CuriousBlue,
33
- fontWeight: 400,
34
- minWidth: !circle && !small ? '88px' : '',
35
- padding: "0 ".concat(theme.space[2]),
36
- textTransform: 'capitalize',
37
- ':focus': !ignoreFocus && !disabled && !loading && {
38
- boxShadow: 'none',
39
- /* Webkit */
40
- outline: '4px auto -webkit-focus-ring-color',
41
- outlineOffset: '-4px'
42
- },
43
- ':hover': !disabled && !loading && {
44
- boxShadow: "0 0 8px ".concat((0, _color["default"])(theme.color.CuriousBlue).alpha(0.5).string()),
45
- transform: 'none'
46
- },
47
- ':active': !disabled && !loading && {
48
- backgroundColor: theme.color.HummingBird,
49
- color: theme.color.Matisse,
50
- boxShadow: 'none'
51
- }
52
- };
53
- },
54
- // primary
55
- function (_ref2) {
56
- var theme = _ref2.theme,
57
- primary = _ref2.primary,
58
- disabled = _ref2.disabled,
59
- loading = _ref2.loading;
60
- return primary && {
61
- backgroundColor: theme.color.CuriousBlue,
62
- color: theme.color.PrimaryContrast,
63
- borderColor: 'transparent',
64
- ':hover': !disabled && !loading && {
65
- backgroundColor: theme.color.CuriousBlue,
66
- boxShadow: "0 0 8px ".concat((0, _color["default"])(theme.color.CuriousBlue).alpha(0.75).string())
67
- },
68
- ':active': !disabled && !loading && {
69
- backgroundColor: theme.color.Matisse,
70
- boxShadow: 'none',
71
- color: theme.color.PrimaryContrast
72
- }
73
- };
74
- },
75
- // borderless
76
- function (_ref3) {
77
- var theme = _ref3.theme,
78
- borderless = _ref3.borderless,
79
- disabled = _ref3.disabled,
80
- loading = _ref3.loading;
81
- return borderless && {
82
- backgroundColor: 'transparent',
83
- border: 'none',
84
- color: theme.color.CuriousBlue,
85
- borderColor: 'none',
86
- ':hover': !disabled && !loading && {
87
- boxShadow: "none",
88
- color: theme.color.Matisse,
89
- textDecoration: 'none'
90
- },
91
- ':active': !disabled && !loading && {
92
- color: theme.color.HeavyMetal,
93
- background: 'transparent',
94
- boxShadow: 'none'
95
- },
96
- ':focus': !disabled && !loading && {
97
- textDecoration: 'none'
98
- }
99
- };
100
- },
101
- // borderless Alt
102
- function (_ref4) {
103
- var theme = _ref4.theme,
104
- borderlessAlt = _ref4.borderlessAlt,
105
- disabled = _ref4.disabled,
106
- loading = _ref4.loading;
107
- return borderlessAlt && {
108
- background: 'transparent',
109
- color: theme.color.PrimaryContrast,
110
- borderColor: 'none',
111
- border: 'none',
112
- ':hover': !disabled && !loading && {
113
- boxShadow: "none",
114
- color: theme.color.Carissma,
115
- textDecoration: 'none'
116
- },
117
- ':active': !disabled && !loading && {
118
- background: 'transparent',
119
- color: theme.color.Maroon
120
- },
121
- ':focus': !disabled && !loading && {
122
- textDecoration: 'none'
123
- }
124
- };
125
- },
126
- // circle
127
- function (_ref5) {
128
- var circle = _ref5.circle;
129
- return circle && {
130
- borderRadius: '50%',
131
- padding: 0
132
- };
133
- },
134
- // danger
135
- function (_ref6) {
136
- var theme = _ref6.theme,
137
- danger = _ref6.danger,
138
- disabled = _ref6.disabled,
139
- loading = _ref6.loading;
140
- return danger && {
141
- backgroundColor: theme.color.FlushMahogany,
142
- color: theme.color.PrimaryContrast,
143
- border: 'none',
144
- ':hover': !disabled && !loading && {
145
- backgroundColor: theme.color.FlushMahogany,
146
- boxShadow: "0 0 8px ".concat((0, _color["default"])(theme.color.FlushMahogany).alpha(0.75).string())
147
- },
148
- ':active': !disabled && !loading && {
149
- backgroundColor: theme.color.Maroon,
150
- borderColor: 'transparent',
151
- color: theme.color.PrimaryContrast,
152
- boxShadow: 'none'
153
- }
154
- };
155
- },
156
- // dangerAlt
157
- function (_ref7) {
158
- var theme = _ref7.theme,
159
- dangerAlt = _ref7.dangerAlt,
160
- disabled = _ref7.disabled,
161
- loading = _ref7.loading;
162
- return dangerAlt && {
163
- backgroundColor: theme.color.PrimaryContrast,
164
- color: theme.color.FlushMahogany,
165
- border: 'none',
166
- ':hover': !disabled && !loading && {
167
- boxShadow: "0 0 8px ".concat(theme.color.PinkSwan)
168
- },
169
- ':active': !disabled && !loading && {
170
- backgroundColor: theme.color.PrimaryContrast,
171
- borderColor: 'transparent',
172
- color: theme.color.Maroon,
173
- boxShadow: 'none'
174
- }
175
- };
176
- },
177
- // disabled
178
- function (_ref8) {
179
- var theme = _ref8.theme,
180
- disabled = _ref8.disabled,
181
- loading = _ref8.loading;
182
- return (disabled || loading) && {
183
- backgroundColor: theme.color.LightHover,
184
- borderColor: theme.color.LightHover,
185
- color: theme.color.LightDisabled,
186
- cursor: 'default'
187
- };
188
- },
189
- // coloredFocus
190
- function (_ref9) {
191
- var theme = _ref9.theme,
192
- colorFocus = _ref9.colorFocus;
193
- return colorFocus && {
194
- outline: 'none',
195
- ':focus': {
196
- outline: 'none',
197
- color: theme.color.Primary
198
- }
199
- };
200
- }]);
@@ -1,12 +0,0 @@
1
- declare const _default: {
2
- [x: symbol]: ({ theme }: {
3
- theme: any;
4
- }) => {
5
- backgroundColor: any;
6
- border: string;
7
- borderRadius: any;
8
- padding: any;
9
- };
10
- };
11
- export default _default;
12
- //# sourceMappingURL=Card.d.ts.map
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _overridable = _interopRequireDefault(require("../overridable"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- 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); }
10
- 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; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- 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); }
13
- if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
14
- if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
15
- var Root = _overridable["default"].Card.Root;
16
- var _default = exports["default"] = _defineProperty({}, Root, function (_ref) {
17
- var theme = _ref.theme;
18
- return {
19
- backgroundColor: theme.color.LightBackground,
20
- border: "1px solid ".concat(theme.color.BokaraGrey),
21
- borderRadius: theme.radius[3],
22
- padding: theme.space[4]
23
- };
24
- });
@@ -1,70 +0,0 @@
1
- declare const _default: {
2
- [x: symbol]: ((({ theme, disabled }: {
3
- theme: any;
4
- disabled: any;
5
- }) => {
6
- backgroundColor: any;
7
- borderColor: any;
8
- } | {
9
- backgroundColor?: undefined;
10
- borderColor?: undefined;
11
- }) | (({ theme, readOnly, checked }: {
12
- theme: any;
13
- readOnly: any;
14
- checked: any;
15
- }) => {
16
- backgroundColor: any;
17
- borderColor: any;
18
- borderRadius: string | number;
19
- borderStyle: string;
20
- borderWidth: any;
21
- } | {
22
- backgroundColor?: undefined;
23
- borderColor?: undefined;
24
- borderRadius?: undefined;
25
- borderStyle?: undefined;
26
- borderWidth?: undefined;
27
- }))[] | ((({ theme, readOnly }: {
28
- theme: any;
29
- readOnly: any;
30
- }) => {
31
- borderRadius: string;
32
- ':focus + *': {
33
- borderColor: any;
34
- boxShadow: string;
35
- };
36
- ':not(:checked):focus + div': {
37
- borderColor: string;
38
- };
39
- }) | (({ disabled, readOnly, theme }: {
40
- disabled: any;
41
- readOnly: any;
42
- theme: any;
43
- }) => {
44
- ':focus': {
45
- borderColor: any;
46
- };
47
- ':focus + div': {
48
- borderColor: any;
49
- };
50
- } | {
51
- ':focus'?: undefined;
52
- ':focus + div'?: undefined;
53
- }))[] | ((({ disabled, theme }: {
54
- disabled: any;
55
- theme: any;
56
- }) => {
57
- color: any;
58
- } | {
59
- color?: undefined;
60
- }) | (({ theme, readOnly }: {
61
- theme: any;
62
- readOnly: any;
63
- }) => {
64
- color: any;
65
- } | {
66
- color?: undefined;
67
- }))[];
68
- };
69
- export default _default;
70
- //# sourceMappingURL=Checkbox.d.ts.map
@@ -1,94 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _overridable = _interopRequireDefault(require("../overridable"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- 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); }
10
- 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; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- 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); }
13
- if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
14
- if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
15
- var _Overridable$Checkbox = _overridable["default"].Checkbox,
16
- VisualCheckbox = _Overridable$Checkbox.VisualCheckbox,
17
- Input = _Overridable$Checkbox.Input,
18
- CheckIcon = _Overridable$Checkbox.CheckIcon,
19
- Label = _Overridable$Checkbox.Label;
20
- var _default = exports["default"] = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, VisualCheckbox, [function (_ref) {
21
- var theme = _ref.theme;
22
- return {
23
- backgroundColor: theme.color.PrimaryContrast,
24
- borderColor: theme.color.LightDividerNew,
25
- borderRadius: '3px',
26
- top: '1px'
27
- };
28
- }, function (_ref2) {
29
- var theme = _ref2.theme,
30
- disabled = _ref2.disabled;
31
- return disabled ? {
32
- backgroundColor: theme.color.WhiteSmoke,
33
- borderColor: theme.color.LightDividerNew
34
- } : {};
35
- }, function (_ref3) {
36
- var theme = _ref3.theme,
37
- readOnly = _ref3.readOnly,
38
- checked = _ref3.checked;
39
- return readOnly ? {
40
- backgroundColor: checked ? 'transparent' : theme.color.WhiteSmoke,
41
- borderColor: checked ? 'none' : theme.color.LightDividerNew,
42
- borderRadius: checked ? 0 : '3px',
43
- borderStyle: checked ? 'none' : 'solid',
44
- borderWidth: checked ? 0 : theme.borderWidth[1]
45
- } : {};
46
- }]), Input, [function (_ref4) {
47
- var theme = _ref4.theme,
48
- readOnly = _ref4.readOnly;
49
- return {
50
- borderRadius: '3px',
51
- ':focus + *': {
52
- borderColor: readOnly ? 'transparent' : theme.color.Primary,
53
- boxShadow: 'none !important'
54
- },
55
- ':not(:checked):focus + div': {
56
- borderColor: "".concat(readOnly ? theme.color.LightDividerNew : theme.color.Primary, " !important")
57
- }
58
- };
59
- }, function (_ref5) {
60
- var disabled = _ref5.disabled,
61
- readOnly = _ref5.readOnly,
62
- theme = _ref5.theme;
63
- return disabled || readOnly ? {
64
- ':focus': {
65
- borderColor: theme.color.LightDividerNew
66
- },
67
- ':focus + div': {
68
- borderColor: theme.color.LightDividerNew
69
- }
70
- } : {};
71
- }]), Label, [function (_ref6) {
72
- var theme = _ref6.theme,
73
- disabled = _ref6.disabled;
74
- return disabled ? {
75
- color: theme.color.Zorba
76
- } : {};
77
- }]), CheckIcon, [function (_ref7) {
78
- var theme = _ref7.theme;
79
- return {
80
- color: theme.color.Primary
81
- };
82
- }, function (_ref8) {
83
- var disabled = _ref8.disabled,
84
- theme = _ref8.theme;
85
- return disabled ? {
86
- color: theme.color.Zorba
87
- } : {};
88
- }, function (_ref9) {
89
- var theme = _ref9.theme,
90
- readOnly = _ref9.readOnly;
91
- return readOnly ? {
92
- color: theme.color.Primary
93
- } : {};
94
- }]);
@@ -1,31 +0,0 @@
1
- declare const _default: {
2
- [x: symbol]: (({ theme }: {
3
- theme: any;
4
- }) => {
5
- '&:hover': {
6
- background: any;
7
- "& .toggle-highlight": {
8
- background: any;
9
- color: any;
10
- };
11
- };
12
- }) | (({ theme }: {
13
- theme: any;
14
- }) => {
15
- boxShadow: string;
16
- height: number;
17
- width: number;
18
- minHeight: number;
19
- minWidth: number;
20
- borderColor: any;
21
- borderStyle: string;
22
- borderWidth: any;
23
- background: any;
24
- '&:active, &:hover': {
25
- background: any;
26
- color: any;
27
- };
28
- });
29
- };
30
- export default _default;
31
- //# sourceMappingURL=CollapsibleToggle.d.ts.map
@@ -1,46 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _overridable = _interopRequireDefault(require("../overridable"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- 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); }
10
- 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; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- 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); }
13
- if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
14
- if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
15
- var HIGHLIGHT_CLASSNAME = 'toggle-highlight';
16
- var _Overridable$Collapsi = _overridable["default"].CollapsibleToggle,
17
- Root = _Overridable$Collapsi.Root,
18
- ToggleButton = _Overridable$Collapsi.ToggleButton;
19
- var _default = exports["default"] = _defineProperty(_defineProperty({}, Root, function (_ref) {
20
- var theme = _ref.theme;
21
- return {
22
- '&:hover': _defineProperty({
23
- background: theme.color.CuriousBlue
24
- }, "& .".concat(HIGHLIGHT_CLASSNAME), {
25
- background: theme.color.CuriousBlue,
26
- color: theme.color.PrimaryContrast
27
- })
28
- };
29
- }), ToggleButton, function (_ref2) {
30
- var theme = _ref2.theme;
31
- return {
32
- boxShadow: 'none',
33
- height: 16,
34
- width: 16,
35
- minHeight: 16,
36
- minWidth: 16,
37
- borderColor: theme.color.CuriousBlue,
38
- borderStyle: 'solid',
39
- borderWidth: theme.borderWidth[1],
40
- background: theme.color.PrimaryContrast,
41
- '&:active, &:hover': {
42
- background: theme.color.CuriousBlue,
43
- color: theme.color.PrimaryContrast
44
- }
45
- };
46
- });
@@ -1,12 +0,0 @@
1
- import type { Theme } from '../types';
2
- import type { CSSObject } from '@emotion/react';
3
- type StyleFunc = (props: {
4
- primary?: boolean;
5
- secondary?: boolean;
6
- disabled?: boolean;
7
- error?: boolean;
8
- theme: Theme;
9
- }) => CSSObject;
10
- declare const ColorOverrides: Record<string, StyleFunc>;
11
- export default ColorOverrides;
12
- //# sourceMappingURL=Color.d.ts.map
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _overridable = _interopRequireDefault(require("../overridable"));
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
- 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); }
10
- 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; }
11
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
- 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); }
13
- if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
14
- if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
15
- var Root = _overridable["default"].Color.Root;
16
- var ColorOverrides = _defineProperty({}, Root, function (_ref) {
17
- var primary = _ref.primary,
18
- secondary = _ref.secondary,
19
- disabled = _ref.disabled,
20
- error = _ref.error,
21
- color = _ref.theme.color;
22
- if (error) {
23
- return {
24
- color: color.Error
25
- };
26
- }
27
- if (disabled) {
28
- return {
29
- color: color.LightDisabled
30
- };
31
- }
32
- if (primary) {
33
- return {
34
- color: color.LightPrimary
35
- };
36
- }
37
- if (secondary) {
38
- return {
39
- color: color.LightSecondary
40
- };
41
- } else {
42
- return {
43
- color: ''
44
- };
45
- }
46
- });
47
- var _default = exports["default"] = ColorOverrides;
@@ -1,72 +0,0 @@
1
- declare const _default: {
2
- [x: symbol]: (({ theme }: {
3
- theme: any;
4
- }) => {
5
- marginBottom: any;
6
- }) | (({ theme }: {
7
- theme: any;
8
- }) => {
9
- paddingLeft: any;
10
- }) | (() => ((({ indent, theme }: {
11
- indent: any;
12
- theme: any;
13
- }) => any) | (({ isFirst, theme }: {
14
- isFirst: any;
15
- theme: any;
16
- }) => any) | {
17
- borderRightColor: string;
18
- })[]) | (({ theme }: {
19
- theme: any;
20
- }) => {
21
- color: any;
22
- }) | (({ theme }: {
23
- theme: any;
24
- }) => {
25
- padding: any;
26
- }) | (() => {
27
- fontWeight: number;
28
- }) | (({ theme }: {
29
- theme: any;
30
- }) => {
31
- justifyContent: string;
32
- marginTop: any;
33
- }) | (({ theme }: {
34
- theme: any;
35
- }) => {
36
- borderTop: string;
37
- }) | (({ theme }: {
38
- theme: any;
39
- }) => {
40
- marginLeft: any;
41
- }) | ((({ theme, zebra }: {
42
- theme: any;
43
- zebra: any;
44
- }) => {
45
- backgroundColor: any;
46
- borderBottom: string;
47
- borderColor: any;
48
- color: any;
49
- ':focus': {
50
- outline: string;
51
- outlineOffset: string;
52
- };
53
- ':hover': {
54
- backgroundColor: any;
55
- color: any;
56
- };
57
- '& svg': {
58
- pointerEvents: string;
59
- };
60
- }) | (({ theme, selected }: {
61
- theme: any;
62
- selected: any;
63
- }) => any) | (({ selecting }: {
64
- selecting: any;
65
- }) => any))[] | (({ theme }: {
66
- theme: any;
67
- }) => {
68
- border: string;
69
- });
70
- };
71
- export default _default;
72
- //# sourceMappingURL=DataGrid.d.ts.map