@geneui/components 3.0.0-next-1b7eefe-17092024 → 3.0.0-next-8d97069-19092024

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 (123) hide show
  1. package/ActionableList/index.js +5 -5
  2. package/AdvancedSearch/index.js +3 -3
  3. package/Alert/index.js +1 -1
  4. package/ArrowLeft-b88e2ba8.js +33 -0
  5. package/Breadcrumb/index.js +2 -2
  6. package/BusyLoader/index.js +1 -1
  7. package/Button/index.js +1 -1
  8. package/Card/index.js +2 -2
  9. package/CardList/index.js +6 -6
  10. package/{CellMeasurerCache-f0690f3b.js → CellMeasurerCache-281a5a2a.js} +2 -2
  11. package/Charts/index.js +8 -4
  12. package/Checkbox/index.js +2 -2
  13. package/CheckboxGroup/index.js +2 -2
  14. package/CheckboxGroupWithSearch/index.js +2 -2
  15. package/Collapse/index.js +1 -1
  16. package/ColorPicker/index.js +1 -1
  17. package/ComboBox/index.js +2 -2
  18. package/Copy/index.js +2 -2
  19. package/Counter/index.js +9 -10
  20. package/DateFilter/index.js +3 -3
  21. package/DatePicker/index.js +1 -1
  22. package/DatePickerInput/index.js +3 -3
  23. package/Drawer/index.js +2 -2
  24. package/Dropdown/index.js +5 -5
  25. package/Editor/index.js +12 -5
  26. package/ExtendedInput/index.js +2 -2
  27. package/Form/index.js +6 -6
  28. package/FormContainer/index.js +1 -1
  29. package/FormableCheckbox/index.js +3 -3
  30. package/FormableDatePicker/index.js +4 -4
  31. package/FormableDropdown/index.js +6 -6
  32. package/FormableEditor/index.js +2 -2
  33. package/{FormableHOC-300e2dd7.js → FormableHOC-f4120178.js} +1 -1
  34. package/FormableMultiSelectDropdown/index.js +6 -6
  35. package/FormableNumberInput/index.js +3 -3
  36. package/FormableRadio/index.js +2 -2
  37. package/FormableSwitcher/index.js +2 -2
  38. package/FormableTextInput/index.js +3 -3
  39. package/FormableUploader/index.js +3 -3
  40. package/GeneUIProvider/index.js +348 -457
  41. package/Grid/index.js +1 -1
  42. package/HelperText/index.js +3 -32
  43. package/Holder/index.js +2 -2
  44. package/Icon/index.js +1 -1
  45. package/Image/index.js +2 -2
  46. package/ImagePreview/index.js +2 -2
  47. package/InteractiveWidget/index.js +2 -2
  48. package/KeyValue/index.js +1 -1
  49. package/Label/index.js +63 -48
  50. package/LinkButton/index.js +1 -1
  51. package/Menu/index.js +2 -2
  52. package/MobileNavigation/index.js +1 -1
  53. package/MobilePopup/index.js +2 -2
  54. package/Modal/index.js +1 -1
  55. package/ModuleTitle/index.js +2 -2
  56. package/NavigationMenu/index.js +2 -2
  57. package/Notification/index.js +1 -1
  58. package/Option/index.js +2 -2
  59. package/Overlay/index.js +2 -2
  60. package/Overspread/index.js +5 -5
  61. package/Pagination/index.js +2 -2
  62. package/Paper/index.js +1 -1
  63. package/Popover/index.js +1 -1
  64. package/PopoverV2/index.js +2 -2
  65. package/Products/index.js +1 -1
  66. package/Profile/index.js +2 -2
  67. package/Progress/index.js +1 -1
  68. package/Radio/index.js +1 -1
  69. package/RadioGroup/index.js +1 -1
  70. package/Range/index.js +2 -2
  71. package/Scrollbar/index.js +1 -1
  72. package/Search/index.js +2 -2
  73. package/SearchWithDropdown/index.js +5 -5
  74. package/Section/index.js +1 -1
  75. package/SkeletonLoader/index.js +1 -1
  76. package/Slider/index.js +3 -3
  77. package/Status/index.js +2 -2
  78. package/Steps/index.js +2 -2
  79. package/SuggestionList/index.js +1 -1
  80. package/Switcher/index.js +1 -1
  81. package/Table/index.js +8 -8
  82. package/TableCompositions/index.js +8 -8
  83. package/Tabs/index.js +1 -1
  84. package/Tag/index.js +1 -1
  85. package/Textarea/index.js +2 -2
  86. package/Time/index.js +1 -1
  87. package/TimePicker/index.js +3 -3
  88. package/Timeline/index.js +1 -1
  89. package/Title/index.js +1 -1
  90. package/Toaster/index.js +1 -1
  91. package/Tooltip/index.js +1 -1
  92. package/TransferList/index.js +5 -5
  93. package/Uploader/index.js +2 -2
  94. package/ValidatableCheckbox/index.js +2 -2
  95. package/ValidatableDatePicker/index.js +3 -3
  96. package/ValidatableDropdown/index.js +5 -5
  97. package/ValidatableElements/index.js +5 -5
  98. package/ValidatableMultiSelectDropdown/index.js +5 -5
  99. package/ValidatableNumberInput/index.js +2 -2
  100. package/ValidatableRadio/index.js +1 -1
  101. package/ValidatableSwitcher/index.js +1 -1
  102. package/ValidatableTextInput/index.js +2 -2
  103. package/ValidatableTimeInput/index.js +2 -2
  104. package/ValidatableUploader/index.js +2 -2
  105. package/Widget/index.js +2 -2
  106. package/_rollupPluginBabelHelpers-a83240e1.js +11 -0
  107. package/{index-761141c1.js → index-3a6b7fd9.js} +6 -6
  108. package/{index-006d8b06.js → index-49fbb32c.js} +35 -14
  109. package/{index-ac5c45f7.js → index-73b4d98a.js} +1 -1
  110. package/{index-558ac559.js → index-d8c45742.js} +62 -85
  111. package/index.js +14 -13
  112. package/lib/atoms/Label/Label.d.ts +45 -0
  113. package/lib/atoms/Label/index.d.ts +1 -0
  114. package/lib/providers/GeneUIProvider/GeneUIProvider.d.ts +1 -1
  115. package/objectWithoutPropertiesLoose-e1596bdb.js +62 -0
  116. package/package.json +2 -2
  117. package/{rangeAndSlider-63c5d423.js → rangeAndSlider-693a3d41.js} +16 -8
  118. package/{react-beautiful-dnd.esm-0ce25a0e.js → react-beautiful-dnd.esm-bb1d95fc.js} +5 -7
  119. package/{redux-b3e598ca.js → redux-e591c1b8.js} +1 -1
  120. package/tokens-3e00442a.js +6 -0
  121. package/_rollupPluginBabelHelpers-e8fb2e5c.js +0 -16
  122. package/objectWithoutPropertiesLoose-d8a4a68c.js +0 -78
  123. package/tokens-d88947bf.js +0 -6
@@ -326,9 +326,10 @@ async function detectOverflow(state, options) {
326
326
  strategy
327
327
  }));
328
328
  const rect = elementContext === 'floating' ? {
329
- ...rects.floating,
330
329
  x,
331
- y
330
+ y,
331
+ width: rects.floating.width,
332
+ height: rects.floating.height
332
333
  } : rects.reference;
333
334
  const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
334
335
  const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
@@ -483,6 +484,8 @@ async function convertValueToCoords(state, options) {
483
484
  const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
484
485
  const crossAxisMulti = rtl && isVertical ? -1 : 1;
485
486
  const rawValue = evaluate(options, state);
487
+
488
+ // eslint-disable-next-line prefer-const
486
489
  let {
487
490
  mainAxis,
488
491
  crossAxis,
@@ -1480,10 +1483,10 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
1480
1483
  }
1481
1484
 
1482
1485
  const topLayerSelectors = [':popover-open', ':modal'];
1483
- function isTopLayer(floating) {
1486
+ function isTopLayer(element) {
1484
1487
  return topLayerSelectors.some(selector => {
1485
1488
  try {
1486
- return floating.matches(selector);
1489
+ return element.matches(selector);
1487
1490
  } catch (e) {
1488
1491
  return false;
1489
1492
  }
@@ -1671,7 +1674,7 @@ function getClippingRect(_ref) {
1671
1674
  rootBoundary,
1672
1675
  strategy
1673
1676
  } = _ref;
1674
- const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
1677
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
1675
1678
  const clippingAncestors = [...elementClippingAncestors, rootBoundary];
1676
1679
  const firstClippingAncestor = clippingAncestors[0];
1677
1680
  const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
@@ -1733,6 +1736,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
1733
1736
  };
1734
1737
  }
1735
1738
 
1739
+ function isStaticPositioned(element) {
1740
+ return getComputedStyle$1(element).position === 'static';
1741
+ }
1742
+
1736
1743
  function getTrueOffsetParent(element, polyfill) {
1737
1744
  if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {
1738
1745
  return null;
@@ -1746,29 +1753,41 @@ function getTrueOffsetParent(element, polyfill) {
1746
1753
  // Gets the closest ancestor positioned element. Handles some edge cases,
1747
1754
  // such as table ancestors and cross browser bugs.
1748
1755
  function getOffsetParent(element, polyfill) {
1749
- const window = getWindow(element);
1750
- if (!isHTMLElement(element) || isTopLayer(element)) {
1751
- return window;
1756
+ const win = getWindow(element);
1757
+ if (isTopLayer(element)) {
1758
+ return win;
1759
+ }
1760
+ if (!isHTMLElement(element)) {
1761
+ let svgOffsetParent = getParentNode(element);
1762
+ while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
1763
+ if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
1764
+ return svgOffsetParent;
1765
+ }
1766
+ svgOffsetParent = getParentNode(svgOffsetParent);
1767
+ }
1768
+ return win;
1752
1769
  }
1753
1770
  let offsetParent = getTrueOffsetParent(element, polyfill);
1754
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle$1(offsetParent).position === 'static') {
1771
+ while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
1755
1772
  offsetParent = getTrueOffsetParent(offsetParent, polyfill);
1756
1773
  }
1757
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle$1(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
1758
- return window;
1774
+ if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
1775
+ return win;
1759
1776
  }
1760
- return offsetParent || getContainingBlock(element) || window;
1777
+ return offsetParent || getContainingBlock(element) || win;
1761
1778
  }
1762
1779
 
1763
1780
  const getElementRects = async function (data) {
1764
1781
  const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
1765
1782
  const getDimensionsFn = this.getDimensions;
1783
+ const floatingDimensions = await getDimensionsFn(data.floating);
1766
1784
  return {
1767
1785
  reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
1768
1786
  floating: {
1769
1787
  x: 0,
1770
1788
  y: 0,
1771
- ...(await getDimensionsFn(data.floating))
1789
+ width: floatingDimensions.width,
1790
+ height: floatingDimensions.height
1772
1791
  }
1773
1792
  };
1774
1793
  };
@@ -1838,9 +1857,11 @@ function observeMove(element, onMove) {
1838
1857
  return refresh();
1839
1858
  }
1840
1859
  if (!ratio) {
1860
+ // If the reference is clipped, the ratio is 0. Throttle the refresh
1861
+ // to prevent an infinite loop of updates.
1841
1862
  timeoutId = setTimeout(() => {
1842
1863
  refresh(false, 1e-7);
1843
- }, 100);
1864
+ }, 1000);
1844
1865
  } else {
1845
1866
  refresh(false, ratio);
1846
1867
  }
@@ -1,4 +1,4 @@
1
- import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
1
+ import { _ as _extends } from './_rollupPluginBabelHelpers-a83240e1.js';
2
2
  import React__default, { forwardRef, useContext, useRef, useState, useMemo, useEffect, useCallback } from 'react';
3
3
  import { c as commonjsGlobal } from './_commonjsHelpers-24198af3.js';
4
4
  import ReactDOM__default from 'react-dom';
@@ -1,7 +1,7 @@
1
- import { _ as _extends$1 } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
1
+ import { _ as _extends$1 } from './_rollupPluginBabelHelpers-a83240e1.js';
2
2
  import * as React from 'react';
3
3
  import React__default, { forwardRef, useMemo, useCallback, useRef, useState, useEffect } from 'react';
4
- import { t as toPropertyKey, d as _typeof, a as _setPrototypeOf, b as _objectWithoutPropertiesLoose, _ as _defineProperty, c as _extends } from './objectWithoutPropertiesLoose-d8a4a68c.js';
4
+ import { t as toPropertyKey, d as _typeof, a as _setPrototypeOf, b as _objectWithoutPropertiesLoose, _ as _defineProperty, c as _extends } from './objectWithoutPropertiesLoose-e1596bdb.js';
5
5
  import { p as polyfill } from './react-lifecycles-compat.es-6e1f3768.js';
6
6
  import { c as clsx } from './clsx.m-2bb6df4b.js';
7
7
  import PropTypes from 'prop-types';
@@ -19,8 +19,8 @@ import { i as inputConfig, s as screenTypes, g as popoverConfig } from './config
19
19
  import { s as stopEvent, n as noop$1 } from './index-a0e4e333.js';
20
20
  import BusyLoader from './BusyLoader/index.js';
21
21
  import Empty from './Empty/index.js';
22
- import { P as PopoverV2 } from './index-ac5c45f7.js';
23
- import { T as Tooltip } from './index-006d8b06.js';
22
+ import { P as PopoverV2 } from './index-73b4d98a.js';
23
+ import { T as Tooltip } from './index-49fbb32c.js';
24
24
  import ExtendedInput from './ExtendedInput/index.js';
25
25
  import Icon from './Icon/index.js';
26
26
  import Checkbox from './Checkbox/index.js';
@@ -28,68 +28,50 @@ import './index-263b0f0b.js';
28
28
  import Tag from './Tag/index.js';
29
29
  import { c as callAfterDelay } from './callAfterDelay-7272faca.js';
30
30
 
31
- function _classCallCheck(instance, Constructor) {
32
- if (!(instance instanceof Constructor)) {
33
- throw new TypeError("Cannot call a class as a function");
34
- }
31
+ function _classCallCheck(a, n) {
32
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
35
33
  }
36
34
 
37
- function _defineProperties(target, props) {
38
- for (var i = 0; i < props.length; i++) {
39
- var descriptor = props[i];
40
- descriptor.enumerable = descriptor.enumerable || false;
41
- descriptor.configurable = true;
42
- if ("value" in descriptor) descriptor.writable = true;
43
- Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
35
+ function _defineProperties(e, r) {
36
+ for (var t = 0; t < r.length; t++) {
37
+ var o = r[t];
38
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
44
39
  }
45
40
  }
46
- function _createClass(Constructor, protoProps, staticProps) {
47
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
48
- if (staticProps) _defineProperties(Constructor, staticProps);
49
- Object.defineProperty(Constructor, "prototype", {
50
- writable: false
51
- });
52
- return Constructor;
41
+ function _createClass(e, r, t) {
42
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
43
+ writable: !1
44
+ }), e;
53
45
  }
54
46
 
55
- function _assertThisInitialized(self) {
56
- if (self === void 0) {
57
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
58
- }
59
- return self;
47
+ function _assertThisInitialized(e) {
48
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
49
+ return e;
60
50
  }
61
51
 
62
- function _possibleConstructorReturn(self, call) {
63
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
64
- return call;
65
- } else if (call !== void 0) {
66
- throw new TypeError("Derived constructors may only return object or undefined");
67
- }
68
- return _assertThisInitialized(self);
52
+ function _possibleConstructorReturn(t, e) {
53
+ if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
54
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
55
+ return _assertThisInitialized(t);
69
56
  }
70
57
 
71
- function _getPrototypeOf(o) {
72
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
73
- return o.__proto__ || Object.getPrototypeOf(o);
74
- };
75
- return _getPrototypeOf(o);
58
+ function _getPrototypeOf(t) {
59
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
60
+ return t.__proto__ || Object.getPrototypeOf(t);
61
+ }, _getPrototypeOf(t);
76
62
  }
77
63
 
78
- function _inherits(subClass, superClass) {
79
- if (typeof superClass !== "function" && superClass !== null) {
80
- throw new TypeError("Super expression must either be null or a function");
81
- }
82
- subClass.prototype = Object.create(superClass && superClass.prototype, {
64
+ function _inherits(t, e) {
65
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
66
+ t.prototype = Object.create(e && e.prototype, {
83
67
  constructor: {
84
- value: subClass,
85
- writable: true,
86
- configurable: true
68
+ value: t,
69
+ writable: !0,
70
+ configurable: !0
87
71
  }
88
- });
89
- Object.defineProperty(subClass, "prototype", {
90
- writable: false
91
- });
92
- if (superClass) _setPrototypeOf(subClass, superClass);
72
+ }), Object.defineProperty(t, "prototype", {
73
+ writable: !1
74
+ }), e && _setPrototypeOf(t, e);
93
75
  }
94
76
 
95
77
  /**
@@ -118,20 +100,16 @@ function calculateSizeAndPositionDataAndUpdateScrollOffset(_ref) {
118
100
  }
119
101
  }
120
102
 
121
- function _objectWithoutProperties(source, excluded) {
122
- if (source == null) return {};
123
- var target = _objectWithoutPropertiesLoose(source, excluded);
124
- var key, i;
103
+ function _objectWithoutProperties(e, t) {
104
+ if (null == e) return {};
105
+ var o,
106
+ r,
107
+ i = _objectWithoutPropertiesLoose(e, t);
125
108
  if (Object.getOwnPropertySymbols) {
126
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
127
- for (i = 0; i < sourceSymbolKeys.length; i++) {
128
- key = sourceSymbolKeys[i];
129
- if (excluded.indexOf(key) >= 0) continue;
130
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
131
- target[key] = source[key];
132
- }
109
+ var n = Object.getOwnPropertySymbols(e);
110
+ for (r = 0; r < n.length; r++) o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
133
111
  }
134
- return target;
112
+ return i;
135
113
  }
136
114
 
137
115
  process.env.NODE_ENV === 'production' ? null : {
@@ -4492,35 +4470,34 @@ process.env.NODE_ENV !== "production" ? {
4492
4470
  width: PropTypes.number.isRequired
4493
4471
  } : {};
4494
4472
 
4495
- function _arrayLikeToArray(arr, len) {
4496
- if (len == null || len > arr.length) len = arr.length;
4497
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
4498
- return arr2;
4473
+ function _arrayLikeToArray(r, a) {
4474
+ (null == a || a > r.length) && (a = r.length);
4475
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
4476
+ return n;
4499
4477
  }
4500
4478
 
4501
- function _arrayWithoutHoles(arr) {
4502
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
4479
+ function _arrayWithoutHoles(r) {
4480
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
4503
4481
  }
4504
4482
 
4505
- function _iterableToArray(iter) {
4506
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
4483
+ function _iterableToArray(r) {
4484
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
4507
4485
  }
4508
4486
 
4509
- function _unsupportedIterableToArray(o, minLen) {
4510
- if (!o) return;
4511
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
4512
- var n = Object.prototype.toString.call(o).slice(8, -1);
4513
- if (n === "Object" && o.constructor) n = o.constructor.name;
4514
- if (n === "Map" || n === "Set") return Array.from(o);
4515
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
4487
+ function _unsupportedIterableToArray(r, a) {
4488
+ if (r) {
4489
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
4490
+ var t = {}.toString.call(r).slice(8, -1);
4491
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
4492
+ }
4516
4493
  }
4517
4494
 
4518
4495
  function _nonIterableSpread() {
4519
4496
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4520
4497
  }
4521
4498
 
4522
- function _toConsumableArray(arr) {
4523
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
4499
+ function _toConsumableArray(r) {
4500
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
4524
4501
  }
4525
4502
 
4526
4503
  /**
@@ -5149,8 +5126,8 @@ _defineProperty(List, "defaultProps", {
5149
5126
  style: {}
5150
5127
  });
5151
5128
 
5152
- function _arrayWithHoles(arr) {
5153
- if (Array.isArray(arr)) return arr;
5129
+ function _arrayWithHoles(r) {
5130
+ if (Array.isArray(r)) return r;
5154
5131
  }
5155
5132
 
5156
5133
  function _iterableToArrayLimit(r, l) {
@@ -5185,8 +5162,8 @@ function _nonIterableRest() {
5185
5162
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5186
5163
  }
5187
5164
 
5188
- function _slicedToArray(arr, i) {
5189
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
5165
+ function _slicedToArray(r, e) {
5166
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
5190
5167
  }
5191
5168
 
5192
5169
  /**
package/index.js CHANGED
@@ -14,7 +14,7 @@ export { default as Scrollbar } from './Scrollbar/index.js';
14
14
  export { default as Time } from './Time/index.js';
15
15
  export { default as Empty } from './Empty/index.js';
16
16
  export { default as Popover } from './Popover/index.js';
17
- export { P as PopoverV2 } from './index-ac5c45f7.js';
17
+ export { P as PopoverV2 } from './index-73b4d98a.js';
18
18
  export { default as Title } from './Title/index.js';
19
19
  export { default as Image } from './Image/index.js';
20
20
  export { default as KeyValue } from './KeyValue/index.js';
@@ -34,7 +34,7 @@ export { default as Checkbox } from './Checkbox/index.js';
34
34
  export { default as Card } from './Card/index.js';
35
35
  export { default as Tag } from './Tag/index.js';
36
36
  export { default as Alert, alertTypes } from './Alert/index.js';
37
- export { T as Tooltip } from './index-006d8b06.js';
37
+ export { T as Tooltip } from './index-49fbb32c.js';
38
38
  export { default as Range } from './Range/index.js';
39
39
  export { default as Slider } from './Slider/index.js';
40
40
  export { default as Pagination } from './Pagination/index.js';
@@ -87,7 +87,7 @@ export { default as FormableUploader } from './FormableUploader/index.js';
87
87
  export { default as FormableSwitcher } from './FormableSwitcher/index.js';
88
88
  export { default as FormableEditor } from './FormableEditor/index.js';
89
89
  export { default as FormableRadio } from './FormableRadio/index.js';
90
- export { F as FormableHOC } from './FormableHOC-300e2dd7.js';
90
+ export { F as FormableHOC } from './FormableHOC-f4120178.js';
91
91
  export { default as Toaster, toasterPositions } from './Toaster/index.js';
92
92
  export { default as SearchWithDropdown } from './SearchWithDropdown/index.js';
93
93
  export { default as CheckboxGroupWithSearch } from './CheckboxGroupWithSearch/index.js';
@@ -96,8 +96,8 @@ export { default as Overspread } from './Overspread/index.js';
96
96
  export { default as DatePicker } from './DatePicker/index.js';
97
97
  export { default as DateFilter } from './DateFilter/index.js';
98
98
  export { ComboTable, PaginationSelector, PaperWrapper, TableContainer, TableHeader, TablePagination, TableTitle, WithHeader, WithTitle } from './TableCompositions/index.js';
99
- export { D as Dropdown } from './index-558ac559.js';
100
- export { T as Table } from './index-761141c1.js';
99
+ export { D as Dropdown } from './index-d8c45742.js';
100
+ export { T as Table } from './index-3a6b7fd9.js';
101
101
  export { CardList, WrappedCardList } from './CardList/index.js';
102
102
  import 'react';
103
103
  import 'prop-types';
@@ -129,18 +129,19 @@ export { u as useEllipsisDetection } from './useEllipsisDetection-4d997d5d.js';
129
129
  import './tslib.es6-f211516f.js';
130
130
  import './index-031ff73c.js';
131
131
  import './style-inject.es-746bb8ed.js';
132
- import './_rollupPluginBabelHelpers-e8fb2e5c.js';
133
- import './configs-34847b77.js';
134
- import './index-a0e4e333.js';
132
+ import './ArrowLeft-b88e2ba8.js';
135
133
  import './dateValidation-67caec66.js';
136
134
  import './_commonjsHelpers-24198af3.js';
137
135
  import 'react-dom';
136
+ import './configs-34847b77.js';
137
+ import './_rollupPluginBabelHelpers-a83240e1.js';
138
+ import './index-a0e4e333.js';
138
139
  import './checkboxRadioSwitcher-5b69d7bd.js';
139
140
  import './guid-8ddf77b3.js';
140
141
  import './localization-4ba17032.js';
141
142
  import './index-122432cd.js';
142
143
  import './debounce-4419bc2f.js';
143
- import './rangeAndSlider-63c5d423.js';
144
+ import './rangeAndSlider-693a3d41.js';
144
145
  import './index-45eafea6.js';
145
146
  import './react-lifecycles-compat.es-6e1f3768.js';
146
147
  import './SuggestionList/index.js';
@@ -150,8 +151,8 @@ import './checkTimeValidation-e56771be.js';
150
151
  import './hooks/useHover.js';
151
152
  import './index-262edd7a.js';
152
153
  import './index-263b0f0b.js';
153
- import './objectWithoutPropertiesLoose-d8a4a68c.js';
154
+ import './objectWithoutPropertiesLoose-e1596bdb.js';
154
155
  import './clsx.m-2bb6df4b.js';
155
- import './CellMeasurerCache-f0690f3b.js';
156
- import './redux-b3e598ca.js';
157
- import './react-beautiful-dnd.esm-0ce25a0e.js';
156
+ import './CellMeasurerCache-281a5a2a.js';
157
+ import './redux-e591c1b8.js';
158
+ import './react-beautiful-dnd.esm-bb1d95fc.js';
@@ -0,0 +1,45 @@
1
+ import { FC } from 'react';
2
+ import './Label.scss';
3
+ interface ILabelProps {
4
+ /**
5
+ * The `htmlFor` prop is associated with the `id` of the input element.
6
+ * If `Label` component is used with a form element this prop is required.
7
+ */
8
+ htmlFor?: string;
9
+ /**
10
+ * Label size.<br/>
11
+ * Possible values: `medium | small`
12
+ */
13
+ size?: 'medium' | 'small';
14
+ /**
15
+ * The text content of the `label`.
16
+ * This is the main text displayed within the `label`.
17
+ */
18
+ labelText: string;
19
+ /**
20
+ * Indicates whether the label represents a required field.
21
+ * When set to `true`, a visual indicator (asterisk) will be added to denote that the field is required.
22
+ */
23
+ required?: boolean;
24
+ /**
25
+ * Additional informational text displayed alongside the label.
26
+ * When provided, an info icon will be displayed next to the label,
27
+ * which can be hovered over to reveal the additional context or instructions via a tooltip.
28
+ */
29
+ infoText?: string;
30
+ /**
31
+ * Indicates whether the `label` should be displayed as `disabled`.
32
+ * When set to `true`, the `label` will be styled to appear `disabled`, which can indicate that the associated input field is not editable.
33
+ */
34
+ disabled?: boolean;
35
+ /**
36
+ * Indicates whether the `label` is in a loading state.
37
+ * When set to `true` a `skeleton` indicator will be shown instead of the `label` text.
38
+ */
39
+ isLoading?: boolean;
40
+ }
41
+ /**
42
+ * Labels identify a component or group of components. Use them with elements such as checkboxes and input fields to guide users in providing specific information, or with plain text to organize information.
43
+ */
44
+ declare const Label: FC<ILabelProps>;
45
+ export { ILabelProps, Label as default };
@@ -0,0 +1 @@
1
+ export { ILabelProps, default as default } from './Label';
@@ -7,7 +7,7 @@ type TokensType = {
7
7
  export interface IGeneUIDesignSystemContext {
8
8
  theme: ThemesTypes;
9
9
  tokens: TokensType;
10
- geneUIProviderRef?: React.MutableRefObject<null>;
10
+ geneUIProviderRef: React.MutableRefObject<null>;
11
11
  }
12
12
  export declare const GeneUIDesignSystemContext: React.Context<IGeneUIDesignSystemContext>;
13
13
  export interface IGeneUIProviderProps {
@@ -0,0 +1,62 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ function toPrimitive(t, r) {
12
+ if ("object" != _typeof(t) || !t) return t;
13
+ var e = t[Symbol.toPrimitive];
14
+ if (void 0 !== e) {
15
+ var i = e.call(t, r || "default");
16
+ if ("object" != _typeof(i)) return i;
17
+ throw new TypeError("@@toPrimitive must return a primitive value.");
18
+ }
19
+ return ("string" === r ? String : Number)(t);
20
+ }
21
+
22
+ function toPropertyKey(t) {
23
+ var i = toPrimitive(t, "string");
24
+ return "symbol" == _typeof(i) ? i : i + "";
25
+ }
26
+
27
+ function _setPrototypeOf(t, e) {
28
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
29
+ return t.__proto__ = e, t;
30
+ }, _setPrototypeOf(t, e);
31
+ }
32
+
33
+ function _defineProperty(e, r, t) {
34
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
35
+ value: t,
36
+ enumerable: !0,
37
+ configurable: !0,
38
+ writable: !0
39
+ }) : e[r] = t, e;
40
+ }
41
+
42
+ function _extends() {
43
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
44
+ for (var e = 1; e < arguments.length; e++) {
45
+ var t = arguments[e];
46
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
47
+ }
48
+ return n;
49
+ }, _extends.apply(null, arguments);
50
+ }
51
+
52
+ function _objectWithoutPropertiesLoose(r, e) {
53
+ if (null == r) return {};
54
+ var t = {};
55
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
56
+ if (e.indexOf(n) >= 0) continue;
57
+ t[n] = r[n];
58
+ }
59
+ return t;
60
+ }
61
+
62
+ export { _defineProperty as _, _setPrototypeOf as a, _objectWithoutPropertiesLoose as b, _extends as c, _typeof as d, toPropertyKey as t };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@geneui/components",
3
3
  "description": "The Gene UI components library designed for BI tools",
4
- "version": "3.0.0-next-1b7eefe-17092024",
4
+ "version": "3.0.0-next-8d97069-19092024",
5
5
  "author": "SoftConstruct",
6
6
  "homepage": "https://github.com/softconstruct/gene-ui-components#readme",
7
7
  "repository": {
@@ -158,7 +158,7 @@
158
158
  },
159
159
  "dependencies": {
160
160
  "@geneui/icons": "^1.0.4",
161
- "@geneui/tokens": "^1.3.0-beta",
161
+ "@geneui/tokens": "^1.4.0-beta",
162
162
  "@floating-ui/react": "^0.26.16",
163
163
  "classnames": "^2.3.2",
164
164
  "dayjs": "^1.11.5",
@@ -251,12 +251,20 @@ var _cof = function (it) {
251
251
  return toString$2.call(it).slice(8, -1);
252
252
  };
253
253
 
254
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
255
- var cof$2 = _cof;
256
- // eslint-disable-next-line no-prototype-builtins
257
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
258
- return cof$2(it) == 'String' ? it.split('') : Object(it);
259
- };
254
+ var _iobject;
255
+ var hasRequired_iobject;
256
+
257
+ function require_iobject () {
258
+ if (hasRequired_iobject) return _iobject;
259
+ hasRequired_iobject = 1;
260
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
261
+ var cof = _cof;
262
+ // eslint-disable-next-line no-prototype-builtins
263
+ _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
264
+ return cof(it) == 'String' ? it.split('') : Object(it);
265
+ };
266
+ return _iobject;
267
+ }
260
268
 
261
269
  // 7.2.1 RequireObjectCoercible(argument)
262
270
  var _defined = function (it) {
@@ -265,7 +273,7 @@ var _defined = function (it) {
265
273
  };
266
274
 
267
275
  // to indexed object, toObject with fallback for non-array-like ES3 strings
268
- var IObject = _iobject;
276
+ var IObject = require_iobject();
269
277
  var defined$2 = _defined;
270
278
  var _toIobject = function (it) {
271
279
  return IObject(defined$2(it));
@@ -438,7 +446,7 @@ function require_objectAssign () {
438
446
  var gOPS = _objectGops;
439
447
  var pIE = require_objectPie();
440
448
  var toObject = _toObject;
441
- var IObject = _iobject;
449
+ var IObject = require_iobject();
442
450
  var $assign = Object.assign;
443
451
 
444
452
  // should work with symbols and should have deterministic property order (V8 bug)
@@ -1,14 +1,12 @@
1
1
  import React__default, { useLayoutEffect, useEffect, useMemo as useMemo$1, useContext, useReducer, useRef, useState } from 'react';
2
- import { a as _setPrototypeOf, b as _objectWithoutPropertiesLoose, c as _extends } from './objectWithoutPropertiesLoose-d8a4a68c.js';
3
- import { c as compose, b as bindActionCreators$1, a as createStore$1, d as applyMiddleware } from './redux-b3e598ca.js';
2
+ import { a as _setPrototypeOf, b as _objectWithoutPropertiesLoose, c as _extends } from './objectWithoutPropertiesLoose-e1596bdb.js';
3
+ import { c as compose, b as bindActionCreators$1, a as createStore$1, d as applyMiddleware } from './redux-e591c1b8.js';
4
4
  import PropTypes from 'prop-types';
5
- import { r as reactIsExports$1 } from './index-006d8b06.js';
5
+ import { r as reactIsExports$1 } from './index-49fbb32c.js';
6
6
  import ReactDOM__default, { unstable_batchedUpdates } from 'react-dom';
7
7
 
8
- function _inheritsLoose(subClass, superClass) {
9
- subClass.prototype = Object.create(superClass.prototype);
10
- subClass.prototype.constructor = subClass;
11
- _setPrototypeOf(subClass, superClass);
8
+ function _inheritsLoose(t, o) {
9
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
12
10
  }
13
11
 
14
12
  var ReactReduxContext = /*#__PURE__*/React__default.createContext(null);
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty } from './objectWithoutPropertiesLoose-d8a4a68c.js';
1
+ import { _ as _defineProperty } from './objectWithoutPropertiesLoose-e1596bdb.js';
2
2
 
3
3
  function ownKeys(e, r) {
4
4
  var t = Object.keys(e);