@decisiv/ui-components 2.0.1-alpha.160 → 2.0.1-alpha.162

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 (47) hide show
  1. package/lib/components/Loading/Loading.d.ts +12 -0
  2. package/lib/components/Loading/Loading.d.ts.map +1 -0
  3. package/lib/components/Loading/Loading.js +70 -0
  4. package/lib/components/Loading/index.d.ts +4 -0
  5. package/lib/components/Loading/index.d.ts.map +1 -0
  6. package/lib/components/Loading/index.js +33 -0
  7. package/lib/components/Loading/index.test.js +55 -0
  8. package/lib/components/Loading/schema.d.ts +4 -0
  9. package/lib/components/Loading/schema.d.ts.map +1 -0
  10. package/lib/components/Loading/schema.js +31 -0
  11. package/lib/components/Loading/styles.d.ts +211 -0
  12. package/lib/components/Loading/styles.d.ts.map +1 -0
  13. package/lib/components/Loading/styles.js +77 -0
  14. package/lib/components/Loading/types.d.ts +10 -0
  15. package/lib/components/Loading/types.d.ts.map +1 -0
  16. package/lib/components/Tabs/Tab/index.d.ts +13 -0
  17. package/lib/components/Tabs/Tab/index.d.ts.map +1 -0
  18. package/lib/components/Tabs/Tab/index.js +88 -0
  19. package/lib/components/Tabs/{schema.tab.d.ts → Tab/schema.d.ts} +1 -1
  20. package/lib/components/Tabs/Tab/schema.d.ts.map +1 -0
  21. package/lib/components/Tabs/Tab/styles.d.ts +7 -0
  22. package/lib/components/Tabs/Tab/styles.d.ts.map +1 -0
  23. package/lib/components/Tabs/Tab/styles.js +37 -0
  24. package/lib/components/Tabs/context.d.ts +2 -2
  25. package/lib/components/Tabs/context.d.ts.map +1 -1
  26. package/lib/components/Tabs/context.js +1 -1
  27. package/lib/components/Tabs/index.d.ts +17 -6
  28. package/lib/components/Tabs/index.d.ts.map +1 -1
  29. package/lib/components/Tabs/index.js +94 -163
  30. package/lib/components/Tabs/styles.d.ts +4 -0
  31. package/lib/components/Tabs/styles.d.ts.map +1 -0
  32. package/lib/components/Tabs/styles.js +35 -0
  33. package/lib/components/Typography/withColors.d.ts +1 -1
  34. package/lib/components/Typography/withColors.d.ts.map +1 -1
  35. package/lib/components/Typography/withColors.js +1 -1
  36. package/lib/components/index.d.ts +2 -1
  37. package/lib/components/index.d.ts.map +1 -1
  38. package/lib/components/index.js +58 -0
  39. package/package.json +2 -2
  40. package/lib/components/Tabs/Tab.d.ts +0 -5
  41. package/lib/components/Tabs/Tab.d.ts.map +0 -1
  42. package/lib/components/Tabs/Tab.js +0 -109
  43. package/lib/components/Tabs/schema.tab.d.ts.map +0 -1
  44. package/lib/components/Tabs/types.d.ts +0 -27
  45. package/lib/components/Tabs/types.d.ts.map +0 -1
  46. /package/lib/components/{Tabs → Loading}/types.js +0 -0
  47. /package/lib/components/Tabs/{schema.tab.js → Tab/schema.js} +0 -0
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { LoadingProps } from './types';
3
+ declare const Loading: {
4
+ ({ title, description, variant, size, ...props }: LoadingProps): JSX.Element;
5
+ defaultProps: {
6
+ size: string;
7
+ variant: string;
8
+ };
9
+ propTypes: any;
10
+ };
11
+ export default Loading;
12
+ //# sourceMappingURL=Loading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/Loading.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAQ,YAAY,EAAE,MAAM,SAAS,CAAC;AAQ7C,QAAA,MAAM,OAAO;;;;;;;CAuCZ,CAAC;AASF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _Typography = require("../Typography");
11
+
12
+ var _schema = _interopRequireDefault(require("./schema"));
13
+
14
+ var _styles = require("./styles");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+
18
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
+
20
+ 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; }
21
+
22
+ 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; }
23
+
24
+ var TITLE_MAP = {
25
+ small: _Typography.P,
26
+ medium: _Typography.H4,
27
+ large: _Typography.H3
28
+ };
29
+
30
+ var Loading = function Loading(_ref) {
31
+ var title = _ref.title,
32
+ description = _ref.description,
33
+ variant = _ref.variant,
34
+ _ref$size = _ref.size,
35
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
36
+ props = _objectWithoutProperties(_ref, ["title", "description", "variant", "size"]);
37
+
38
+ var Title = TITLE_MAP[size];
39
+ var inverted = variant === 'inverted';
40
+ var textSize = size === 'small' ? 'small' : undefined;
41
+ var titleColor = inverted ? 'snowWhite' : undefined;
42
+ var descriptionColor = inverted ? 'fullMoon' : 'alaskanHusky';
43
+ var showTextContainer = !!title || !!description;
44
+ return _react.default.createElement(_styles.Container, _extends({
45
+ loadingSize: size
46
+ }, props), _react.default.createElement(_styles.AnimationContainer, {
47
+ size: size
48
+ }, _react.default.createElement(_styles.Bouncer, {
49
+ inverted: inverted
50
+ }), _react.default.createElement(_styles.Bouncer, {
51
+ inverted: inverted,
52
+ shadow: true
53
+ })), showTextContainer && _react.default.createElement(_styles.TextContainer, {
54
+ size: size
55
+ }, title && _react.default.createElement(Title, {
56
+ color: titleColor,
57
+ size: textSize
58
+ }, title), description && _react.default.createElement(_Typography.P, {
59
+ size: textSize,
60
+ color: descriptionColor
61
+ }, description)));
62
+ };
63
+
64
+ Loading.defaultProps = {
65
+ size: 'medium',
66
+ variant: 'normal'
67
+ };
68
+ Loading.propTypes = _schema.default.propTypes;
69
+ var _default = Loading;
70
+ exports.default = _default;
@@ -0,0 +1,4 @@
1
+ import Loading from './Loading';
2
+ export { LoadingProps, Size as LoadingSize, Variant as LoadingVariant, } from './types';
3
+ export default Loading;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EACL,YAAY,EACZ,IAAI,IAAI,WAAW,EACnB,OAAO,IAAI,cAAc,GAC1B,MAAM,SAAS,CAAC;AAEjB,eAAe,OAAO,CAAC"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "LoadingProps", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _types.LoadingProps;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "LoadingSize", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _types.Size;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "LoadingVariant", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _types.Variant;
22
+ }
23
+ });
24
+ exports.default = void 0;
25
+
26
+ var _Loading = _interopRequireDefault(require("./Loading"));
27
+
28
+ var _types = require("./types");
29
+
30
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
+
32
+ var _default = _Loading.default;
33
+ exports.default = _default;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ var _react = _interopRequireDefault(require("react"));
4
+
5
+ var _react2 = require("@testing-library/react");
6
+
7
+ var _ = _interopRequireDefault(require("."));
8
+
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+
11
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
12
+
13
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
14
+
15
+ describe('Loading', function () {
16
+ it('renders title', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
17
+ var _render, getByText;
18
+
19
+ return regeneratorRuntime.wrap(function _callee$(_context) {
20
+ while (1) {
21
+ switch (_context.prev = _context.next) {
22
+ case 0:
23
+ _render = (0, _react2.render)(_react.default.createElement(_.default, {
24
+ title: "Loading..."
25
+ })), getByText = _render.getByText;
26
+ expect(getByText(/loading.../i)).toBeInTheDocument();
27
+
28
+ case 2:
29
+ case "end":
30
+ return _context.stop();
31
+ }
32
+ }
33
+ }, _callee);
34
+ })));
35
+ it('renders description', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
36
+ var _render2, getByText;
37
+
38
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
39
+ while (1) {
40
+ switch (_context2.prev = _context2.next) {
41
+ case 0:
42
+ _render2 = (0, _react2.render)(_react.default.createElement(_.default, {
43
+ title: "Loading...",
44
+ description: "Some description"
45
+ })), getByText = _render2.getByText;
46
+ expect(getByText(/some description/i)).toBeInTheDocument();
47
+
48
+ case 2:
49
+ case "end":
50
+ return _context2.stop();
51
+ }
52
+ }
53
+ }, _callee2);
54
+ })));
55
+ });
@@ -0,0 +1,4 @@
1
+ export declare const makeLoadingSchemaPropTypes: () => object;
2
+ declare const schema: any;
3
+ export default schema;
4
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,0BAA0B,cAQrC,CAAC;AAEH,QAAA,MAAM,MAAM,KAAuC,CAAC;AAIpD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.makeLoadingSchemaPropTypes = void 0;
7
+
8
+ var _reactDesc = require("react-desc");
9
+
10
+ var _spacingSchema = require("../../modifiers/spacingSchema");
11
+
12
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { keys.push.apply(keys, Object.getOwnPropertySymbols(object)); } if (enumerableOnly) keys = keys.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); return keys; }
13
+
14
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
+
16
+ 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; }
17
+
18
+ var makeLoadingSchemaPropTypes = function makeLoadingSchemaPropTypes() {
19
+ return _objectSpread({}, (0, _spacingSchema.makeSpacingSchemaPropTypes)(), {
20
+ size: _reactDesc.PropTypes.oneOf(['small', 'medium', 'large']).description("The size in which to render the component's text and icon").defaultValue('medium'),
21
+ variant: _reactDesc.PropTypes.oneOf(['normal', 'inverted']).description('Which loading variant to render.').defaultValue('normal')
22
+ });
23
+ };
24
+
25
+ exports.makeLoadingSchemaPropTypes = makeLoadingSchemaPropTypes;
26
+ var schema = (0, _reactDesc.describe)({
27
+ displayName: 'Loading'
28
+ });
29
+ schema.propTypes = makeLoadingSchemaPropTypes();
30
+ var _default = schema;
31
+ exports.default = _default;
@@ -0,0 +1,211 @@
1
+ /// <reference types="react" />
2
+ import { FlexComponentProps } from '../Flex';
3
+ import { Size } from './types';
4
+ interface ContainerProps extends FlexComponentProps {
5
+ loadingSize: Size;
6
+ }
7
+ export declare const Container: import("styled-components").StyledComponent<"div", any, Partial<{
8
+ readonly alignContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
9
+ readonly XS: "XS";
10
+ readonly SM: "SM";
11
+ readonly MD: "MD";
12
+ readonly LG: "LG";
13
+ readonly XL: "XL";
14
+ }> | undefined;
15
+ readonly alignItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
16
+ readonly XS: "XS";
17
+ readonly SM: "SM";
18
+ readonly MD: "MD";
19
+ readonly LG: "LG";
20
+ readonly XL: "XL";
21
+ }> | undefined;
22
+ readonly alignSelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
23
+ readonly XS: "XS";
24
+ readonly SM: "SM";
25
+ readonly MD: "MD";
26
+ readonly LG: "LG";
27
+ readonly XL: "XL";
28
+ }> | undefined;
29
+ readonly flex?: string | number | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("react").ReactText, {
30
+ readonly XS: "XS";
31
+ readonly SM: "SM";
32
+ readonly MD: "MD";
33
+ readonly LG: "LG";
34
+ readonly XL: "XL";
35
+ }> | undefined;
36
+ readonly flexBasis?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
37
+ readonly XS: "XS";
38
+ readonly SM: "SM";
39
+ readonly MD: "MD";
40
+ readonly LG: "LG";
41
+ readonly XL: "XL";
42
+ }> | undefined;
43
+ readonly flexDirection?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "row" | "column" | "column-reverse" | "row-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexDirectionProperty, {
44
+ readonly XS: "XS";
45
+ readonly SM: "SM";
46
+ readonly MD: "MD";
47
+ readonly LG: "LG";
48
+ readonly XL: "XL";
49
+ }> | undefined;
50
+ readonly flexGrow?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
51
+ readonly XS: "XS";
52
+ readonly SM: "SM";
53
+ readonly MD: "MD";
54
+ readonly LG: "LG";
55
+ readonly XL: "XL";
56
+ }> | undefined;
57
+ readonly flexShrink?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
58
+ readonly XS: "XS";
59
+ readonly SM: "SM";
60
+ readonly MD: "MD";
61
+ readonly LG: "LG";
62
+ readonly XL: "XL";
63
+ }> | undefined;
64
+ readonly flexWrap?: "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap" | "wrap-reverse" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").FlexWrapProperty, {
65
+ readonly XS: "XS";
66
+ readonly SM: "SM";
67
+ readonly MD: "MD";
68
+ readonly LG: "LG";
69
+ readonly XL: "XL";
70
+ }> | undefined;
71
+ readonly justifyContent?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
72
+ readonly XS: "XS";
73
+ readonly SM: "SM";
74
+ readonly MD: "MD";
75
+ readonly LG: "LG";
76
+ readonly XL: "XL";
77
+ }> | undefined;
78
+ readonly justifyItems?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
79
+ readonly XS: "XS";
80
+ readonly SM: "SM";
81
+ readonly MD: "MD";
82
+ readonly LG: "LG";
83
+ readonly XL: "XL";
84
+ }> | undefined;
85
+ readonly justifySelf?: string | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<string, {
86
+ readonly XS: "XS";
87
+ readonly SM: "SM";
88
+ readonly MD: "MD";
89
+ readonly LG: "LG";
90
+ readonly XL: "XL";
91
+ }> | undefined;
92
+ readonly order?: number | "-moz-initial" | "inherit" | "initial" | "revert" | "unset" | import("../../utils/dynamicModifiers").DynamicResponsiveModifiersProp<import("csstype").GlobalsNumber, {
93
+ readonly XS: "XS";
94
+ readonly SM: "SM";
95
+ readonly MD: "MD";
96
+ readonly LG: "LG";
97
+ readonly XL: "XL";
98
+ }> | undefined;
99
+ readonly size?: "XS" | "SM" | "MD" | "LG" | "XL" | undefined;
100
+ }> & Partial<{
101
+ readonly margin: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
102
+ readonly XS: "XS";
103
+ readonly SM: "SM";
104
+ readonly MD: "MD";
105
+ readonly LG: "LG";
106
+ readonly XL: "XL";
107
+ }>;
108
+ readonly marginBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
109
+ readonly XS: "XS";
110
+ readonly SM: "SM";
111
+ readonly MD: "MD";
112
+ readonly LG: "LG";
113
+ readonly XL: "XL";
114
+ }>;
115
+ readonly marginLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
116
+ readonly XS: "XS";
117
+ readonly SM: "SM";
118
+ readonly MD: "MD";
119
+ readonly LG: "LG";
120
+ readonly XL: "XL";
121
+ }>;
122
+ readonly marginRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
123
+ readonly XS: "XS";
124
+ readonly SM: "SM";
125
+ readonly MD: "MD";
126
+ readonly LG: "LG";
127
+ readonly XL: "XL";
128
+ }>;
129
+ readonly marginTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
130
+ readonly XS: "XS";
131
+ readonly SM: "SM";
132
+ readonly MD: "MD";
133
+ readonly LG: "LG";
134
+ readonly XL: "XL";
135
+ }>;
136
+ readonly marginX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
137
+ readonly XS: "XS";
138
+ readonly SM: "SM";
139
+ readonly MD: "MD";
140
+ readonly LG: "LG";
141
+ readonly XL: "XL";
142
+ }>;
143
+ readonly marginY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
144
+ readonly XS: "XS";
145
+ readonly SM: "SM";
146
+ readonly MD: "MD";
147
+ readonly LG: "LG";
148
+ readonly XL: "XL";
149
+ }>;
150
+ readonly padding: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
151
+ readonly XS: "XS";
152
+ readonly SM: "SM";
153
+ readonly MD: "MD";
154
+ readonly LG: "LG";
155
+ readonly XL: "XL";
156
+ }>;
157
+ readonly paddingBottom: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
158
+ readonly XS: "XS";
159
+ readonly SM: "SM";
160
+ readonly MD: "MD";
161
+ readonly LG: "LG";
162
+ readonly XL: "XL";
163
+ }>;
164
+ readonly paddingLeft: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
165
+ readonly XS: "XS";
166
+ readonly SM: "SM";
167
+ readonly MD: "MD";
168
+ readonly LG: "LG";
169
+ readonly XL: "XL";
170
+ }>;
171
+ readonly paddingRight: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
172
+ readonly XS: "XS";
173
+ readonly SM: "SM";
174
+ readonly MD: "MD";
175
+ readonly LG: "LG";
176
+ readonly XL: "XL";
177
+ }>;
178
+ readonly paddingTop: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
179
+ readonly XS: "XS";
180
+ readonly SM: "SM";
181
+ readonly MD: "MD";
182
+ readonly LG: "LG";
183
+ readonly XL: "XL";
184
+ }>;
185
+ readonly paddingX: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
186
+ readonly XS: "XS";
187
+ readonly SM: "SM";
188
+ readonly MD: "MD";
189
+ readonly LG: "LG";
190
+ readonly XL: "XL";
191
+ }>;
192
+ readonly paddingY: import("../../utils/dynamicModifiers").DynamicModifiersProp<number, {
193
+ readonly XS: "XS";
194
+ readonly SM: "SM";
195
+ readonly MD: "MD";
196
+ readonly LG: "LG";
197
+ readonly XL: "XL";
198
+ }>;
199
+ }> & ContainerProps, never>;
200
+ export declare const AnimationContainer: import("styled-components").StyledComponent<"div", any, {
201
+ size: Size;
202
+ }, never>;
203
+ export declare const Bouncer: import("styled-components").StyledComponent<"div", any, {
204
+ inverted?: boolean | undefined;
205
+ shadow?: boolean | undefined;
206
+ }, never>;
207
+ export declare const TextContainer: import("styled-components").StyledComponent<"div", any, {
208
+ size: Size;
209
+ }, never>;
210
+ export {};
211
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/styles.ts"],"names":[],"mappings":";AAOA,OAAa,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAmB/B,UAAU,cAAe,SAAQ,kBAAkB;IACjD,WAAW,EAAE,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAGrB,CAAC;AAoBF,eAAO,MAAM,kBAAkB;;SAI9B,CAAC;AAEF,eAAO,MAAM,OAAO;;;SAiCnB,CAAC;AAmBF,eAAO,MAAM,aAAa;;SAIzB,CAAC"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextContainer = exports.Bouncer = exports.AnimationContainer = exports.Container = void 0;
7
+
8
+ var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
+
10
+ var _toColorString = _interopRequireDefault(require("polished/lib/color/toColorString"));
11
+
12
+ var _rem = _interopRequireDefault(require("polished/lib/helpers/rem"));
13
+
14
+ var _designTokens = require("@decisiv/design-tokens");
15
+
16
+ var _Flex = _interopRequireDefault(require("../Flex"));
17
+
18
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
+
20
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
21
+
22
+ var CONTAINER_STYLE = {
23
+ small: (0, _styledComponents.css)(["flex-direction:row;gap:", ";"], (0, _rem.default)(_designTokens.spacing.base * 0.5)),
24
+ medium: (0, _styledComponents.css)(["flex-direction:column;align-items:center;gap:", ";"], (0, _rem.default)(_designTokens.spacing.base)),
25
+ large: (0, _styledComponents.css)(["flex-direction:column;align-items:center;gap:", ";"], (0, _rem.default)(_designTokens.spacing.base))
26
+ };
27
+ var Container = (0, _styledComponents.default)(_Flex.default).withConfig({
28
+ displayName: "styles__Container",
29
+ componentId: "fjt04b-0"
30
+ })(["display:flex;", ";"], function (_ref) {
31
+ var loadingSize = _ref.loadingSize;
32
+ return CONTAINER_STYLE[loadingSize];
33
+ });
34
+ exports.Container = Container;
35
+ var ANIMATION_CONTAINER_STYLE = {
36
+ small: (0, _styledComponents.css)(["width:", ";min-width:", ";height:", ";"], (0, _rem.default)(_designTokens.spacing.base * 1.6), (0, _rem.default)(_designTokens.spacing.base * 1.6), (0, _rem.default)(_designTokens.spacing.base * 1.6)),
37
+ medium: (0, _styledComponents.css)(["width:", ";min-width:", ";height:", ";"], (0, _rem.default)(_designTokens.spacing.base * 3.6), (0, _rem.default)(_designTokens.spacing.base * 3.6), (0, _rem.default)(_designTokens.spacing.base * 3.6)),
38
+ large: (0, _styledComponents.css)(["width:", ";min-width:", ";height:", ";"], (0, _rem.default)(_designTokens.spacing.base * 4.8), (0, _rem.default)(_designTokens.spacing.base * 4.8), (0, _rem.default)(_designTokens.spacing.base * 4.8))
39
+ };
40
+
41
+ var AnimationContainer = _styledComponents.default.div.withConfig({
42
+ displayName: "styles__AnimationContainer",
43
+ componentId: "fjt04b-1"
44
+ })(["position:relative;", ""], function (_ref2) {
45
+ var size = _ref2.size;
46
+ return ANIMATION_CONTAINER_STYLE[size];
47
+ });
48
+
49
+ exports.AnimationContainer = AnimationContainer;
50
+
51
+ var Bouncer = _styledComponents.default.div.withConfig({
52
+ displayName: "styles__Bouncer",
53
+ componentId: "fjt04b-2"
54
+ })(["width:100%;height:100%;border-radius:50%;background-color:", ";opacity:0.6;position:absolute;top:0;left:0;animation:sk-bounce 2s infinite ease-in-out;", " ", " @keyframes sk-bounce{0%,100%{transform:scale(0);}50%{transform:scale(1);}}"], (0, _toColorString.default)(_designTokens.color.interaction.pacificOcean40), function (_ref3) {
55
+ var inverted = _ref3.inverted;
56
+ return inverted && (0, _styledComponents.css)(["background-color:", ";"], (0, _toColorString.default)(_designTokens.color.opacity.fullMoon50));
57
+ }, function (_ref4) {
58
+ var shadow = _ref4.shadow;
59
+ return shadow && (0, _styledComponents.css)(["animation-delay:-1s;"]);
60
+ });
61
+
62
+ exports.Bouncer = Bouncer;
63
+ var TEXT_CONTAINER_STYLE = {
64
+ small: (0, _styledComponents.css)(["text-align:left;align-items:flex-start;"]),
65
+ medium: (0, _styledComponents.css)(["gap:", ";text-align:center;align-items:center;"], (0, _rem.default)(_designTokens.spacing.base * 0.5)),
66
+ large: (0, _styledComponents.css)(["gap:", ";text-align:center;align-items:center;"], (0, _rem.default)(_designTokens.spacing.base * 0.5))
67
+ };
68
+
69
+ var TextContainer = _styledComponents.default.div.withConfig({
70
+ displayName: "styles__TextContainer",
71
+ componentId: "fjt04b-3"
72
+ })(["display:flex;flex-direction:column;", ";"], function (_ref5) {
73
+ var size = _ref5.size;
74
+ return TEXT_CONTAINER_STYLE[size];
75
+ });
76
+
77
+ exports.TextContainer = TextContainer;
@@ -0,0 +1,10 @@
1
+ import { FlexComponentProps } from '../Flex';
2
+ export declare type Size = 'small' | 'medium' | 'large';
3
+ export declare type Variant = 'normal' | 'inverted';
4
+ export interface LoadingProps extends Omit<FlexComponentProps, 'size'> {
5
+ title?: string;
6
+ description?: string;
7
+ variant?: Variant;
8
+ size?: Size;
9
+ }
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Loading/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,oBAAY,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAChD,oBAAY,OAAO,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE5C,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb"}
@@ -0,0 +1,13 @@
1
+ import React, { Ref, HTMLAttributes } from 'react';
2
+ import { IconProps } from '@decisiv/iconix';
3
+ export declare type TabIcon = (props: IconProps) => JSX.Element;
4
+ export interface TabProps extends Omit<HTMLAttributes<HTMLButtonElement>, 'size'> {
5
+ id: string;
6
+ ref?: Ref<HTMLButtonElement>;
7
+ icon?: TabIcon;
8
+ title: string;
9
+ disabled?: boolean;
10
+ }
11
+ declare const Tab: React.ForwardRefExoticComponent<Pick<TabProps, "title" | "style" | "onDragEnd" | "id" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "icon" | "disabled"> & React.RefAttributes<HTMLButtonElement>>;
12
+ export default Tab;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tab/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAEZ,GAAG,EAKH,cAAc,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,oBAAY,OAAO,GAAG,CAAC,KAAK,EAAE,SAAS,KAAK,GAAG,CAAC,OAAO,CAAC;AAExD,MAAM,WAAW,QACf,SAAQ,IAAI,CAAC,cAAc,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,GAAG,glJAsDR,CAAC;AAiBF,eAAe,GAAG,CAAC"}