@ntbjs/react-components 1.2.0-rc.2 → 1.2.0-rc.21

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 (59) hide show
  1. package/{ActionButton-761050a9.js → ActionButton-06df3d6c.js} +1 -1
  2. package/{Alert-96814023.js → Alert-13b75102.js} +2 -2
  3. package/{AssetGallery-52724211.js → AssetGallery-bcdbfe3a.js} +100 -90
  4. package/{AssetPreviewTopBar-ade10c15.js → AssetPreviewTopBar-c28715f7.js} +1 -1
  5. package/{Badge-fa94dca8.js → Badge-aec841c8.js} +1 -1
  6. package/{Button-5071dc6b.js → Button-c38d56a0.js} +3 -3
  7. package/{Checkbox-dd2cf216.js → Checkbox-68dc38a8.js} +13 -8
  8. package/{CompactAutocompleteSelect-d4147107.js → CompactAutocompleteSelect-43e79e21.js} +25 -25
  9. package/{CompactStarRating-ca1943af.js → CompactStarRating-584850fa.js} +52 -39
  10. package/{CompactTextInput-c5e38aae.js → CompactTextInput-4388f2f2.js} +60 -52
  11. package/{ContextMenu-bd818e55.js → ContextMenu-4ec3d9f3.js} +1 -1
  12. package/{ContextMenuItem-10af8b2f.js → ContextMenuItem-1fe17ed5.js} +1 -1
  13. package/{InputGroup-4c49ba30.js → InputGroup-49fbc423.js} +1 -1
  14. package/{Instructions-b955ba72.js → Instructions-06fa9d0c.js} +24 -14
  15. package/MultiLevelCheckboxSelect-4d9d84cd.js +697 -0
  16. package/{MultiSelect-87614192.js → MultiSelect-4b8d3d0d.js} +1 -1
  17. package/{Popover-155cbac8.js → Popover-e4ecb887.js} +31 -5
  18. package/{Radio-dd81f5d4.js → Radio-32d0513a.js} +1 -1
  19. package/{SectionSeparator-9f129ade.js → SectionSeparator-259a22ed.js} +1 -1
  20. package/{Switch-c004ea6d.js → Switch-4a41585f.js} +1 -1
  21. package/{Tab-8fec1dba.js → Tab-f499ecbc.js} +1 -1
  22. package/{Tabs-96e366bf.js → Tabs-4d7742bc.js} +8 -38
  23. package/{TextArea-4d90d02c.js → TextArea-65525d5a.js} +144 -99
  24. package/{TextInput-e6035fb0.js → TextInput-0d109708.js} +1 -1
  25. package/{Tooltip-a175e9f5.js → Tooltip-6b6f0b0a.js} +2 -2
  26. package/{VerificationStatusIcon-a88b1f8d.js → VerificationStatusIcon-b574fd21.js} +1 -1
  27. package/data/Alert/index.js +2 -2
  28. package/data/Badge/index.js +2 -2
  29. package/data/Popover/index.js +4 -3
  30. package/data/Tab/index.js +2 -2
  31. package/data/Tabs/index.js +3 -3
  32. package/data/Tooltip/index.js +3 -3
  33. package/data/index.js +10 -9
  34. package/{defaultTheme-c137e17f.js → defaultTheme-ea44e34a.js} +58 -0
  35. package/inputs/ActionButton/index.js +2 -2
  36. package/inputs/Button/index.js +6 -5
  37. package/inputs/Checkbox/index.js +2 -2
  38. package/inputs/CompactAutocompleteSelect/index.js +2 -3
  39. package/inputs/CompactStarRating/index.js +2 -3
  40. package/inputs/CompactTextInput/index.js +11 -11
  41. package/inputs/MultiSelect/index.js +2 -2
  42. package/inputs/Radio/index.js +2 -2
  43. package/inputs/Switch/index.js +2 -2
  44. package/inputs/TextArea/index.js +14 -3
  45. package/inputs/TextInput/index.js +2 -2
  46. package/inputs/index.js +27 -22
  47. package/layout/InputGroup/index.js +2 -2
  48. package/layout/SectionSeparator/index.js +2 -2
  49. package/layout/index.js +3 -3
  50. package/package.json +2 -1
  51. package/{shift-away-subtle-a86a6cd2.js → shift-away-subtle-0bed9a3c.js} +1 -1
  52. package/widgets/AssetGallery/index.js +33 -30
  53. package/widgets/AssetPreview/AssetPreviewTopBar/index.js +2 -2
  54. package/widgets/ContextMenu/ContextMenuItem/index.js +2 -2
  55. package/widgets/ContextMenu/ContextMenuItemsGroup/index.js +1 -1
  56. package/widgets/ContextMenu/index.js +2 -2
  57. package/widgets/Instructions/index.js +15 -5
  58. package/widgets/index.js +35 -32
  59. package/check-555d831b.js +0 -213
package/check-555d831b.js DELETED
@@ -1,213 +0,0 @@
1
- 'use strict';
2
-
3
- var React$1 = require('react');
4
-
5
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
19
- });
20
- }
21
- });
22
- }
23
- n['default'] = e;
24
- return Object.freeze(n);
25
- }
26
-
27
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
28
- var React__namespace = /*#__PURE__*/_interopNamespace(React$1);
29
-
30
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
31
-
32
- var MoonLoader$1 = {};
33
-
34
- var unitConverter = {};
35
-
36
- Object.defineProperty(unitConverter, "__esModule", { value: true });
37
- unitConverter.cssValue = unitConverter.parseLengthAndUnit = void 0;
38
- var cssUnit = {
39
- cm: true,
40
- mm: true,
41
- in: true,
42
- px: true,
43
- pt: true,
44
- pc: true,
45
- em: true,
46
- ex: true,
47
- ch: true,
48
- rem: true,
49
- vw: true,
50
- vh: true,
51
- vmin: true,
52
- vmax: true,
53
- "%": true,
54
- };
55
- /**
56
- * If size is a number, append px to the value as default unit.
57
- * If size is a string, validate against list of valid units.
58
- * If unit is valid, return size as is.
59
- * If unit is invalid, console warn issue, replace with px as the unit.
60
- *
61
- * @param {(number | string)} size
62
- * @return {LengthObject} LengthObject
63
- */
64
- function parseLengthAndUnit(size) {
65
- if (typeof size === "number") {
66
- return {
67
- value: size,
68
- unit: "px",
69
- };
70
- }
71
- var value;
72
- var valueString = (size.match(/^[0-9.]*/) || "").toString();
73
- if (valueString.includes(".")) {
74
- value = parseFloat(valueString);
75
- }
76
- else {
77
- value = parseInt(valueString, 10);
78
- }
79
- var unit = (size.match(/[^0-9]*$/) || "").toString();
80
- if (cssUnit[unit]) {
81
- return {
82
- value: value,
83
- unit: unit,
84
- };
85
- }
86
- console.warn("React Spinners: ".concat(size, " is not a valid css value. Defaulting to ").concat(value, "px."));
87
- return {
88
- value: value,
89
- unit: "px",
90
- };
91
- }
92
- unitConverter.parseLengthAndUnit = parseLengthAndUnit;
93
- /**
94
- * Take value as an input and return valid css value
95
- *
96
- * @param {(number | string)} value
97
- * @return {string} valid css value
98
- */
99
- function cssValue(value) {
100
- var lengthWithunit = parseLengthAndUnit(value);
101
- return "".concat(lengthWithunit.value).concat(lengthWithunit.unit);
102
- }
103
- unitConverter.cssValue = cssValue;
104
-
105
- var animation = {};
106
-
107
- Object.defineProperty(animation, "__esModule", { value: true });
108
- animation.createAnimation = void 0;
109
- var createAnimation = function (loaderName, frames, suffix) {
110
- var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
111
- if (typeof window == "undefined" || !window.document) {
112
- return animationName;
113
- }
114
- var styleEl = document.createElement("style");
115
- document.head.appendChild(styleEl);
116
- var styleSheet = styleEl.sheet;
117
- var keyFrames = "\n @keyframes ".concat(animationName, " {\n ").concat(frames, "\n }\n ");
118
- if (styleSheet) {
119
- styleSheet.insertRule(keyFrames, 0);
120
- }
121
- return animationName;
122
- };
123
- animation.createAnimation = createAnimation;
124
-
125
- var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
126
- __assign = Object.assign || function(t) {
127
- for (var s, i = 1, n = arguments.length; i < n; i++) {
128
- s = arguments[i];
129
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
130
- t[p] = s[p];
131
- }
132
- return t;
133
- };
134
- return __assign.apply(this, arguments);
135
- };
136
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
137
- if (k2 === undefined) k2 = k;
138
- var desc = Object.getOwnPropertyDescriptor(m, k);
139
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
140
- desc = { enumerable: true, get: function() { return m[k]; } };
141
- }
142
- Object.defineProperty(o, k2, desc);
143
- }) : (function(o, m, k, k2) {
144
- if (k2 === undefined) k2 = k;
145
- o[k2] = m[k];
146
- }));
147
- var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
148
- Object.defineProperty(o, "default", { enumerable: true, value: v });
149
- }) : function(o, v) {
150
- o["default"] = v;
151
- });
152
- var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
153
- if (mod && mod.__esModule) return mod;
154
- var result = {};
155
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
156
- __setModuleDefault(result, mod);
157
- return result;
158
- };
159
- var __rest = (commonjsGlobal && commonjsGlobal.__rest) || function (s, e) {
160
- var t = {};
161
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
162
- t[p] = s[p];
163
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
164
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
165
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
166
- t[p[i]] = s[p[i]];
167
- }
168
- return t;
169
- };
170
- Object.defineProperty(MoonLoader$1, "__esModule", { value: true });
171
- var React = __importStar(React__default['default']);
172
- var unitConverter_1 = unitConverter;
173
- var animation_1 = animation;
174
- var moon = (0, animation_1.createAnimation)("MoonLoader", "100% {transform: rotate(360deg)}", "moon");
175
- function MoonLoader(_a) {
176
- var _b = _a.loading, loading = _b === void 0 ? true : _b, _c = _a.color, color = _c === void 0 ? "#000000" : _c, _d = _a.speedMultiplier, speedMultiplier = _d === void 0 ? 1 : _d, _e = _a.cssOverride, cssOverride = _e === void 0 ? {} : _e, _f = _a.size, size = _f === void 0 ? 60 : _f, additionalprops = __rest(_a, ["loading", "color", "speedMultiplier", "cssOverride", "size"]);
177
- var _g = (0, unitConverter_1.parseLengthAndUnit)(size), value = _g.value, unit = _g.unit;
178
- var moonSize = value / 7;
179
- var wrapper = __assign({ display: "inherit", position: "relative", width: "".concat("".concat(value + moonSize * 2).concat(unit)), height: "".concat("".concat(value + moonSize * 2).concat(unit)), animation: "".concat(moon, " ").concat(0.6 / speedMultiplier, "s 0s infinite linear"), animationFillMode: "forwards" }, cssOverride);
180
- var ballStyle = function (size) {
181
- return {
182
- width: (0, unitConverter_1.cssValue)(size),
183
- height: (0, unitConverter_1.cssValue)(size),
184
- borderRadius: "100%",
185
- };
186
- };
187
- var ball = __assign(__assign({}, ballStyle(moonSize)), { backgroundColor: "".concat(color), opacity: "0.8", position: "absolute", top: "".concat("".concat(value / 2 - moonSize / 2).concat(unit)), animation: "".concat(moon, " ").concat(0.6 / speedMultiplier, "s 0s infinite linear"), animationFillMode: "forwards" });
188
- var circle = __assign(__assign({}, ballStyle(value)), { border: "".concat(moonSize, "px solid ").concat(color), opacity: "0.1", boxSizing: "content-box", position: "absolute" });
189
- if (!loading) {
190
- return null;
191
- }
192
- return (React.createElement("span", __assign({ style: wrapper }, additionalprops),
193
- React.createElement("span", { style: ball }),
194
- React.createElement("span", { style: circle })));
195
- }
196
- var _default = MoonLoader$1.default = MoonLoader;
197
-
198
- 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); }
199
-
200
- var _ref = /*#__PURE__*/React__namespace.createElement("path", {
201
- fill: "currentColor",
202
- d: "M7.627 14.435l-5.69-5.69L0 10.67l7.627 7.627L24 1.924 22.076 0z"
203
- });
204
-
205
- function SvgCheck(props) {
206
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
207
- xmlns: "http://www.w3.org/2000/svg",
208
- viewBox: "0 0 24 18.297"
209
- }, props), _ref);
210
- }
211
-
212
- exports.SvgCheck = SvgCheck;
213
- exports._default = _default;