linear-react-components-ui 1.1.26-beta-1 → 1.1.26-beta.3

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 (188) hide show
  1. package/lib/alerts/AlertProvider.js +1 -1
  2. package/lib/alerts/Message.js +1 -1
  3. package/lib/alerts/withAlert.js +1 -1
  4. package/lib/avatar/index.js +13 -13
  5. package/lib/badge/index.js +1 -1
  6. package/lib/buttons/ActivateButton.js +1 -1
  7. package/lib/buttons/AddButton.js +1 -1
  8. package/lib/buttons/Button.js +1 -1
  9. package/lib/buttons/ButtonGroups.js +1 -1
  10. package/lib/buttons/CancelButton.js +1 -1
  11. package/lib/buttons/DangerButton.js +1 -1
  12. package/lib/buttons/DefaultButton.js +1 -1
  13. package/lib/buttons/DestroyButton.js +1 -1
  14. package/lib/buttons/EditButton.js +1 -1
  15. package/lib/buttons/InactivateButton.js +1 -1
  16. package/lib/buttons/InfoButton.js +1 -1
  17. package/lib/buttons/PrimaryButton.js +1 -1
  18. package/lib/buttons/RestoreButton.js +1 -1
  19. package/lib/buttons/SaveButton.js +1 -1
  20. package/lib/buttons/SuccessButton.js +1 -1
  21. package/lib/buttons/WarningButton.js +1 -1
  22. package/lib/buttons/button_container/index.js +1 -1
  23. package/lib/buttons/split_button/index.js +3 -3
  24. package/lib/calendar/DangerCalendar.js +1 -1
  25. package/lib/calendar/InfoCalendar.js +1 -1
  26. package/lib/calendar/PrimaryCalendar.js +1 -1
  27. package/lib/calendar/SuccessCalendar.js +1 -1
  28. package/lib/calendar/WarningCalendar.js +1 -1
  29. package/lib/calendar/base/Day.js +1 -1
  30. package/lib/calendar/base/Month.js +1 -1
  31. package/lib/calendar/base/Week.js +1 -1
  32. package/lib/calendar/base/index.js +1 -1
  33. package/lib/checkbox/index.js +3 -3
  34. package/lib/chunks/{index.yztgndLc.js → index.CjD97zna.js} +29 -29
  35. package/lib/chunks/{index.D5f6Ow9V.js → index.iA-fVKOP.js} +2 -2
  36. package/lib/chunks/jsx-runtime.gtoSnx-V.js +284 -0
  37. package/lib/chunks/{tabs.Cvj2MJH6.js → tabs.BP3DB7Gx.js} +34 -34
  38. package/lib/dialog/Alert.js +1 -1
  39. package/lib/dialog/Custom.js +5 -5
  40. package/lib/dialog/Error.js +1 -1
  41. package/lib/dialog/Information.js +1 -1
  42. package/lib/dialog/Question.js +1 -1
  43. package/lib/dialog/Warning.js +1 -1
  44. package/lib/dialog/base/Content.js +1 -1
  45. package/lib/dialog/base/Footer.js +1 -1
  46. package/lib/dialog/base/Header.js +2 -2
  47. package/lib/dialog/base/index.js +2 -2
  48. package/lib/dialog/form/index.js +2 -2
  49. package/lib/dialog/index.js +1 -1
  50. package/lib/dialog/wizard/index.js +3 -3
  51. package/lib/dialog/wizard/progressbar.js +2 -2
  52. package/lib/dialog/wizard/step.js +2 -2
  53. package/lib/dialog/wizard/useWizard.js +2 -2
  54. package/lib/drawer/Content.js +1 -1
  55. package/lib/drawer/Drawer.js +1 -1
  56. package/lib/drawer/Header.js +1 -1
  57. package/lib/drawer/helpers.js +2 -2
  58. package/lib/dropdown/withDropdown.js +1 -1
  59. package/lib/fieldset/index.js +1 -1
  60. package/lib/form/Field.js +1 -1
  61. package/lib/form/FieldArray.js +1 -1
  62. package/lib/form/FieldNumber.js +1 -1
  63. package/lib/form/FieldPeriod.js +1 -1
  64. package/lib/form/helpers.js +9 -9
  65. package/lib/form/index.js +2 -2
  66. package/lib/form/withFieldHOC.js +7 -7
  67. package/lib/form/withFormSecurity.js +12 -12
  68. package/lib/gridlayout/GridCol.js +1 -1
  69. package/lib/gridlayout/GridRow.js +1 -1
  70. package/lib/hint/helpers.js +1 -1
  71. package/lib/hint/index.js +1 -1
  72. package/lib/icons/index.js +1 -1
  73. package/lib/index.js +2 -2
  74. package/lib/inputs/base/InputTextBase.js +1 -1
  75. package/lib/inputs/base/Label.js +1 -1
  76. package/lib/inputs/color/index.js +1 -1
  77. package/lib/inputs/date/Dialog.js +2 -2
  78. package/lib/inputs/date/index.js +1 -1
  79. package/lib/inputs/errorMessage/index.js +1 -1
  80. package/lib/inputs/file/DefaultFile.js +1 -1
  81. package/lib/inputs/file/DragDropFile.js +1 -1
  82. package/lib/inputs/file/File.js +1 -1
  83. package/lib/inputs/file/FileButtonSettings.js +1 -1
  84. package/lib/inputs/inputHOC.js +1 -1
  85. package/lib/inputs/mask/BaseMask.js +1 -1
  86. package/lib/inputs/mask/Cnpj.js +1 -1
  87. package/lib/inputs/mask/Cpf.js +1 -1
  88. package/lib/inputs/mask/Phone.js +1 -1
  89. package/lib/inputs/mask/ZipCode.js +1 -1
  90. package/lib/inputs/multiSelect/ActionButtons.js +2 -2
  91. package/lib/inputs/multiSelect/Dropdown.js +1 -1
  92. package/lib/inputs/multiSelect/index.js +1 -1
  93. package/lib/inputs/number/BaseNumber.js +1 -1
  94. package/lib/inputs/number/Currency.js +1 -1
  95. package/lib/inputs/number/Decimal.js +1 -1
  96. package/lib/inputs/number/index.js +1 -1
  97. package/lib/inputs/period/Dialog.js +2 -2
  98. package/lib/inputs/period/PeriodList.js +1 -1
  99. package/lib/inputs/period/index.js +1 -1
  100. package/lib/inputs/search/index.js +1 -1
  101. package/lib/inputs/select/ActionButtons.js +1 -1
  102. package/lib/inputs/select/Dropdown.js +1 -1
  103. package/lib/inputs/select/index.js +1 -1
  104. package/lib/inputs/select/multiple/Selecteds.js +9 -9
  105. package/lib/inputs/select/multiple/index.js +1 -1
  106. package/lib/inputs/select/simple/index.js +1 -1
  107. package/lib/inputs/text/index.js +1 -1
  108. package/lib/inputs/textarea/index.js +1 -1
  109. package/lib/internals/withTooltip.js +7 -7
  110. package/lib/labelMessages/index.js +1 -1
  111. package/lib/labels/DangerLabel.js +1 -1
  112. package/lib/labels/DefaultLabel.js +1 -1
  113. package/lib/labels/InfoLabel.js +1 -1
  114. package/lib/labels/PrimaryLabel.js +1 -1
  115. package/lib/labels/SuccessLabel.js +1 -1
  116. package/lib/labels/WarningLabel.js +1 -1
  117. package/lib/labels/label_container/index.js +1 -1
  118. package/lib/list/Header.js +1 -1
  119. package/lib/list/Item.js +3 -3
  120. package/lib/list/Separator.js +1 -1
  121. package/lib/list/helpers.js +2 -2
  122. package/lib/list/index.js +2 -2
  123. package/lib/menus/float/MenuItem.js +1 -1
  124. package/lib/menus/float/index.js +1 -1
  125. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  126. package/lib/menus/sidenav/MenuLink.js +4 -4
  127. package/lib/menus/sidenav/NavMenuGroup.js +1 -1
  128. package/lib/menus/sidenav/NavMenuItem.js +1 -1
  129. package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
  130. package/lib/menus/sidenav/helpers.js +4 -4
  131. package/lib/menus/sidenav/index.js +1 -1
  132. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +1 -1
  133. package/lib/menus/sidenav/popup_menu_search/index.js +2 -2
  134. package/lib/noPermission/index.js +1 -1
  135. package/lib/panel/Content.js +1 -1
  136. package/lib/panel/DangerPanel.js +1 -1
  137. package/lib/panel/Default.js +1 -1
  138. package/lib/panel/Header.js +1 -1
  139. package/lib/panel/InfoPanel.js +1 -1
  140. package/lib/panel/PrimaryPanel.js +1 -1
  141. package/lib/panel/SuccessPanel.js +1 -1
  142. package/lib/panel/ToolBar.js +1 -1
  143. package/lib/panel/WarningPanel.js +1 -1
  144. package/lib/panel/helpers.js +4 -4
  145. package/lib/popover/PopoverText.js +1 -1
  146. package/lib/popover/PopoverTitle.js +1 -1
  147. package/lib/popover/index.js +1 -1
  148. package/lib/progress/Bar.js +1 -1
  149. package/lib/progress/index.js +1 -1
  150. package/lib/radio/index.js +1 -1
  151. package/lib/shortcuts/index.js +1 -1
  152. package/lib/skeleton/SkeletonContainer.js +1 -1
  153. package/lib/skeleton/index.js +1 -1
  154. package/lib/spinner/SpinnerLoading.js +1 -1
  155. package/lib/spinner/index.js +1 -1
  156. package/lib/split/Split.js +1 -1
  157. package/lib/split/SplitSide.js +1 -1
  158. package/lib/table/Body.js +1 -1
  159. package/lib/table/Header.js +1 -1
  160. package/lib/table/HeaderColumn.js +1 -1
  161. package/lib/table/Row.js +1 -1
  162. package/lib/table/RowColumn.js +1 -1
  163. package/lib/table/index.js +1 -1
  164. package/lib/tabs/DropdownTabs.js +3 -3
  165. package/lib/tabs/Menu.js +5 -5
  166. package/lib/tabs/MenuTabs.js +4 -4
  167. package/lib/tabs/Panel.js +1 -1
  168. package/lib/tabs/context.js +30 -30
  169. package/lib/tabs/index.js +2 -2
  170. package/lib/tabs/tabHelpers.js +2 -2
  171. package/lib/textContent/index.js +1 -1
  172. package/lib/toolbar/ButtonBar.js +1 -1
  173. package/lib/toolbar/LabelBar.js +1 -1
  174. package/lib/toolbar/Separator.js +1 -1
  175. package/lib/toolbar/ToolBarGroup.js +1 -1
  176. package/lib/toolbar/index.js +1 -1
  177. package/lib/tooltip/index.js +1 -1
  178. package/lib/treetable/Body.js +1 -1
  179. package/lib/treetable/Header.js +1 -1
  180. package/lib/treetable/Row.js +15 -15
  181. package/lib/treetable/index.js +1 -1
  182. package/lib/treeview/Header.js +1 -1
  183. package/lib/treeview/Node.js +10 -10
  184. package/lib/treeview/index.js +1 -1
  185. package/lib/uitour/index.js +1 -1
  186. package/package.json +4 -4
  187. package/lib/chunks/index.CmrLK9Qe.js +0 -675
  188. package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
package/lib/list/Item.js CHANGED
@@ -1,8 +1,8 @@
1
- import "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import "react";
3
- import "../chunks/index.CmrLK9Qe.js";
3
+ import "react-router-dom";
4
4
  import "../icons/index.js";
5
- import { L as s } from "../chunks/tabs.Cvj2MJH6.js";
5
+ import { L as s } from "../chunks/tabs.BP3DB7Gx.js";
6
6
  import "./helpers.js";
7
7
  import "../dropdown/withDropdown.js";
8
8
  import "../internals/constants.js";
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  const t = () => /* @__PURE__ */ s.jsx("li", { className: "list-separator" });
3
3
  export {
4
4
  t as default
@@ -1,10 +1,10 @@
1
1
  import t from "react";
2
- const r = t.createContext({}), a = {
2
+ const r = t.createContext({}), o = {
3
3
  listHeader: "Header",
4
4
  listItem: "Item",
5
5
  listSeparator: "Separator"
6
6
  };
7
7
  export {
8
- a as LIST_ITEMS_TYPES,
8
+ o as LIST_ITEMS_TYPES,
9
9
  r as ListContext
10
10
  };
package/lib/list/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { j as l } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as l } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useRef as R, useState as h, useEffect as f, Fragment as S } from "react";
3
3
  import { default as q } from "./Header.js";
4
- import { L as P } from "../chunks/tabs.Cvj2MJH6.js";
4
+ import { L as P } from "../chunks/tabs.BP3DB7Gx.js";
5
5
  import { keyCodes as m } from "../internals/constants.js";
6
6
  import { default as J } from "./Separator.js";
7
7
  import { LIST_ITEMS_TYPES as O, ListContext as b } from "./helpers.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as e } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as t } from "react";
3
3
  import p from "lodash";
4
4
  import u from "../../icons/index.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as e } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { default as E } from "./MenuItem.js";
3
3
  import { useEffect as f } from "react";
4
4
  import { P as i } from "../../chunks/index.Da--18GT.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as e } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import t from "../../icons/index.js";
3
3
  const m = ({ onExpandMenu: o, expandMenuCustomClass: n, iconName: s }) => /* @__PURE__ */ e.jsx(
4
4
  "div",
@@ -1,8 +1,8 @@
1
- import { j as s } from "../../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { L as m } from "../../chunks/index.CmrLK9Qe.js";
1
+ import { j as m } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
+ import { Link as s } from "react-router-dom";
3
3
  import e from "../../internals/withTooltip.js";
4
- const f = ({ url: o, children: t, targetRef: i, disabled: n }) => o && !n ? /* @__PURE__ */ s.jsx(
5
- m,
4
+ const f = ({ url: o, children: t, targetRef: i, disabled: n }) => o && !n ? /* @__PURE__ */ m.jsx(
5
+ s,
6
6
  {
7
7
  to: o,
8
8
  className: "menulink",
@@ -1,4 +1,4 @@
1
- import { j as m } from "../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as m } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as n } from "react";
3
3
  import u, { SideNavContext as a } from "./helpers.js";
4
4
  const l = ({ children: s, scrollable: t, style: e }) => {
@@ -1,4 +1,4 @@
1
- import { j as n } from "../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as n } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as l, useRef as p, useContext as q, useEffect as R, Fragment as G } from "react";
3
3
  import J from "../../internals/withTooltip.js";
4
4
  import K from "../../icons/index.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as e } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as m, useContext as d } from "react";
3
3
  import c from "./MenuLink.js";
4
4
  import { SubMenuContext as b } from "./helpers.js";
@@ -1,10 +1,10 @@
1
1
  import t from "react";
2
- const o = (n, s) => {
2
+ const a = (n, s) => {
3
3
  let e = "expandedmenu";
4
4
  return n || (e = `collapsedmenu -${s}`), e;
5
- }, c = t.createContext({}), u = t.createContext({});
5
+ }, c = t.createContext({}), r = t.createContext({});
6
6
  export {
7
- u as SideNavContext,
7
+ r as SideNavContext,
8
8
  c as SubMenuContext,
9
- o as default
9
+ a as default
10
10
  };
@@ -1,4 +1,4 @@
1
- import { j as t } from "../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as t } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as a, useRef as H, useEffect as l } from "react";
3
3
  import I from "./NavMenuItem.js";
4
4
  import T from "./NavSubMenuItem.js";
@@ -1,4 +1,4 @@
1
- import { j as s } from "../../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../../../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import o from "../../../icons/index.js";
3
3
  const i = ({
4
4
  info: t,
@@ -1,11 +1,11 @@
1
- import { j as t } from "../../../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as t } from "../../../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as d, useRef as f, useEffect as u, Fragment as v } from "react";
3
3
  import P from "react-dom";
4
4
  import w from "../../../inputs/search/index.js";
5
5
  import F from "../../../list/index.js";
6
6
  import O from "../../../icons/index.js";
7
7
  import k from "./EmptyList.js";
8
- import { L as M } from "../../../chunks/tabs.Cvj2MJH6.js";
8
+ import { L as M } from "../../../chunks/tabs.BP3DB7Gx.js";
9
9
  const h = document.getElementsByTagName("body")[0], A = (x) => {
10
10
  const {
11
11
  style: c,
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import o from "../icons/index.js";
3
3
  import '../assets/noPermission.css';/* empty css */
4
4
  const i = () => /* @__PURE__ */ s.jsxs("div", { className: "no-permission-component", "data-testid": "no-permission-component", children: [
@@ -1,4 +1,4 @@
1
- import { j as d } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as d } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as C, useRef as i, useCallback as g, useEffect as j } from "react";
3
3
  import H, { getCurrentThreshold as L } from "./helpers.js";
4
4
  import P from "../noPermission/index.js";
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import t from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.DANGER });
@@ -1,4 +1,4 @@
1
- import { j as e } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as e } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as a } from "react";
3
3
  import '../assets/gridlayout.css';/* empty css */
4
4
  import D from "../gridlayout/GridCol.js";
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as p } from "react";
3
3
  import l from "../icons/index.js";
4
4
  import x from "../buttons/button_container/index.js";
@@ -1,4 +1,4 @@
1
- import { j as t } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as t } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import r from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const a = (o) => /* @__PURE__ */ t.jsx(r, { ...o, colorStyle: e.INFO });
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import t from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.PRIMARY });
@@ -1,4 +1,4 @@
1
- import { j as t } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as t } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import r from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const a = (o) => /* @__PURE__ */ t.jsx(r, { ...o, colorStyle: e.SUCCESS });
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import t from "../toolbar/index.js";
3
3
  const e = ({ children: o }) => /* @__PURE__ */ r.jsx(t, { style: { width: "auto", backgroundColor: "transparent", border: 0 }, children: o });
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import t from "./Default.js";
3
3
  import e from "../internals/colorStyles.js";
4
4
  const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.WARNING });
@@ -1,12 +1,12 @@
1
1
  import a from "react";
2
- function s(o, t) {
2
+ function M(o, t) {
3
3
  if (t < 0) return 0;
4
4
  if (t > 1) return 1;
5
5
  const { scrollHeight: e, clientHeight: r } = o, n = e - r, H = Math.round(e * t), c = Math.round(n - n * 0.3);
6
6
  return Math.min(H, c);
7
7
  }
8
- const M = a.createContext({});
8
+ const h = a.createContext({});
9
9
  export {
10
- M as default,
11
- s as getCurrentThreshold
10
+ h as default,
11
+ M as getCurrentThreshold
12
12
  };
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { forwardRef as t } from "react";
3
3
  const s = t(({ children: e }, o) => /* @__PURE__ */ r.jsx("p", { className: "text", ref: o, children: e }));
4
4
  s.displayName = "PopoverText";
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  const o = ({ children: t }) => /* @__PURE__ */ s.jsx("h1", { className: "title", children: t });
3
3
  export {
4
4
  o as default
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import m from "../buttons/Button.js";
3
3
  import f from "../icons/index.js";
4
4
  import '../assets/button.css';import '../assets/index3.css';/* empty css */
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  const l = 1e3, m = ({ max: e = 100, min: t = 0, value: a = 0 }) => {
3
3
  const n = (a - t) / (e - t) * 100;
4
4
  return Math.round(n * l) / l;
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import n from "./Bar.js";
3
3
  import '../assets/index9.css';const m = (r) => {
4
4
  const { style: t, children: e, width: o = "100%", height: a = "24px" } = r, i = {
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as f, useEffect as S } from "react";
3
3
  import '../assets/radio.css';/* empty css */
4
4
  import { OPTIONS_ON_DENIED as x, actionsOnPermissionDenied as w } from "../permissionValidations.js";
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import '../assets/index15.css';const d = ({ type: t, style: o, styleShortcut: c, shortcut: e, description: r }) => /* @__PURE__ */ s.jsxs("p", { "data-testid": "description", className: "shortcut-description", style: o, children: [
3
3
  /* @__PURE__ */ s.jsx("kbd", { "data-testid": "shortcut", className: `shortcut-component ${t && `-${t}`}`, style: c, children: e }),
4
4
  ": ",
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  const c = ({ children: t, row: e, customClass: o, style: n }) => {
3
3
  const s = () => `skeletoncontainer-component ${o}
4
4
  ${e && "-row"}`;
@@ -1,4 +1,4 @@
1
- import { j as n } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as n } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
3
3
  import p from "../gridlayout/GridCol.js";
4
4
  import { default as y } from "./SkeletonContainer.js";
@@ -1,4 +1,4 @@
1
- import { j as e } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as e } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  const a = ({ color: t = "#3B3B3B", size: i = "50px" }) => /* @__PURE__ */ e.jsxs("svg", { "data-testid": "spinner", className: "lds-spinner spinnerloading", fill: t, width: i, viewBox: "0 0 100 100", preserveAspectRatio: "xMidYMid", style: { background: "none", float: "right" }, children: [
3
3
  /* @__PURE__ */ e.jsx("g", { transform: "rotate(0 50 50)", children: /* @__PURE__ */ e.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ e.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.9166666666666666s", repeatCount: "indefinite" }) }) }),
4
4
  /* @__PURE__ */ e.jsx("g", { transform: "rotate(30 50 50)", children: /* @__PURE__ */ e.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ e.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.8333333333333334s", repeatCount: "indefinite" }) }) }),
@@ -1,4 +1,4 @@
1
- import { j as i } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as i } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as h, useRef as j, useEffect as y } from "react";
3
3
  import l from "./SpinnerLoading.js";
4
4
  import '../assets/index6.css';const S = (c) => {
@@ -1,4 +1,4 @@
1
- import { j as m } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as m } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as V, useRef as M, useEffect as b } from "react";
3
3
  import X from "./helpers.js";
4
4
  const F = ({
@@ -1,4 +1,4 @@
1
- import { j as m } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as m } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as u } from "react";
3
3
  import x from "./helpers.js";
4
4
  const $ = ({ primary: o, children: l, customClass: a, style: n }) => {
package/lib/table/Body.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as e } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as e } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as x } from "react";
3
3
  import f, { getArrayFromNumber as y } from "./helpers.js";
4
4
  import j from "../skeleton/index.js";
@@ -1,4 +1,4 @@
1
- import { j as n } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as n } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as x, useRef as y, useEffect as E, isValidElement as e } from "react";
3
3
  import a from "lodash";
4
4
  import C from "./helpers.js";
@@ -1,4 +1,4 @@
1
- import { j as t } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as t } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as g } from "react";
3
3
  import C from "lodash";
4
4
  import p from "../icons/index.js";
package/lib/table/Row.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as N } from "react";
3
3
  import T, { RowContext as $ } from "./helpers.js";
4
4
  const g = (m) => {
@@ -1,4 +1,4 @@
1
- import { j as a } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as a } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as h, useCallback as y } from "react";
3
3
  import g from "../skeleton/index.js";
4
4
  import { RowContext as j } from "./helpers.js";
@@ -1,4 +1,4 @@
1
- import { j as b } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as b } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as f, useRef as P, useCallback as C, useMemo as V, useEffect as S } from "react";
3
3
  import W from "lodash";
4
4
  import { default as Z } from "./Header.js";
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import h from "lodash";
3
3
  import a from "../buttons/Button.js";
4
4
  import b from "../icons/index.js";
@@ -20,9 +20,9 @@ import "../popover/index.js";
20
20
  import "../textContent/index.js";
21
21
  import "./MenuTabs.js";
22
22
  import "./tabHelpers.js";
23
- import { L as f } from "../chunks/tabs.Cvj2MJH6.js";
23
+ import { L as f } from "../chunks/tabs.BP3DB7Gx.js";
24
24
  import "./context.js";
25
- import "../chunks/index.yztgndLc.js";
25
+ import "../chunks/index.CjD97zna.js";
26
26
  const j = ({
27
27
  id: t,
28
28
  title: e,
package/lib/tabs/Menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as n } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as n } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import m from "react";
3
3
  import r from "./MenuTabs.js";
4
4
  import o from "./DropdownTabs.js";
@@ -10,8 +10,8 @@ const x = ({
10
10
  ...e
11
11
  }) => {
12
12
  const {
13
- menuTabs: u,
14
- menuRef: i,
13
+ menuTabs: i,
14
+ menuRef: u,
15
15
  dropdownTabs: b
16
16
  } = f();
17
17
  return /* @__PURE__ */ n.jsxs(
@@ -22,12 +22,12 @@ const x = ({
22
22
  /* @__PURE__ */ n.jsx(
23
23
  r,
24
24
  {
25
- tabs: u,
25
+ tabs: i,
26
26
  tabWidth: a,
27
27
  tabMenuSize: e.tabMenuSize,
28
28
  tabMenuAlign: e.tabMenuAlign,
29
29
  firstTabIdent: e.firstTabIdent,
30
- ref: i
30
+ ref: u
31
31
  }
32
32
  ),
33
33
  /* @__PURE__ */ n.jsx(
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import y from "react";
3
3
  import N from "lodash";
4
4
  import h from "../buttons/Button.js";
@@ -57,7 +57,7 @@ const R = ({
57
57
  },
58
58
  e
59
59
  );
60
- }, _ = y.forwardRef(({
60
+ }, k = y.forwardRef(({
61
61
  tabs: e = [],
62
62
  tabWidth: t = "auto",
63
63
  tabMenuSize: n = "medium",
@@ -83,7 +83,7 @@ const R = ({
83
83
  }
84
84
  );
85
85
  });
86
- _.displayName = "MenuTabs";
86
+ k.displayName = "MenuTabs";
87
87
  export {
88
- _ as default
88
+ k as default
89
89
  };
package/lib/tabs/Panel.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as a } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as a } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useRef as l, useState as C, useCallback as H, useEffect as L } from "react";
3
3
  import { onDeniedOptions as b, getCurrentThreshold as w } from "./tabHelpers.js";
4
4
  import { actionsOnPermissionDenied as z } from "../permissionValidations.js";
@@ -1,57 +1,57 @@
1
- import { j as G } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import H, { createContext as J, useState as B, useRef as K, useMemo as I, useCallback as x, useEffect as C } from "react";
3
- import D from "lodash";
4
- import { getTabs as E } from "./tabHelpers.js";
1
+ import { j as G } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
+ import H, { createContext as J, useState as C, useRef as K, useMemo as I, useCallback as x, useEffect as D } from "react";
3
+ import E from "lodash";
4
+ import { getTabs as M } from "./tabHelpers.js";
5
5
  const L = J({});
6
6
  function X({
7
- children: M,
7
+ children: O,
8
8
  tabs: b,
9
9
  container: d,
10
10
  selectedTab: f = null,
11
11
  onTabChange: T,
12
12
  onTabClose: p,
13
13
  tabsWidth: c,
14
- firstTabIdent: O = !1,
15
- keepTabOriginalPosition: W = !0
14
+ firstTabIdent: W = !1,
15
+ keepTabOriginalPosition: k = !0
16
16
  }) {
17
- var y, _;
18
- const [o, l] = H.useState(f), [w, R] = B(() => {
17
+ var y, B;
18
+ const [o, l] = H.useState(f), [w, R] = C(() => {
19
19
  var e;
20
20
  return ((e = d.current) == null ? void 0 : e.clientWidth) ?? 0;
21
- }), [t, a] = B(E(b)), v = K(null), h = (((y = v.current) == null ? void 0 : y.clientWidth) ?? 0) - 38 - (O ? 15 : 0), k = I(() => typeof c == "string" ? c === "auto" ? 100 : parseInt(c) || 100 : c, [c]), m = Math.round(h / k);
22
- f && f !== o && l(f), t.length > 0 && o === null && l((_ = t[0]) == null ? void 0 : _.id);
23
- const u = I(() => h === 0 ? [] : t.slice(m), [t, m, w]), z = I(() => t.slice(0, m), [t, m, w]), q = t.length, S = x((e) => {
24
- const n = u.findIndex((r) => r.id === e);
25
- if (n !== -1) {
26
- const r = t.findIndex((i) => i.id === e), s = u[n];
21
+ }), [n, a] = C(M(b)), v = K(null), h = (((y = v.current) == null ? void 0 : y.clientWidth) ?? 0) - 38 - (W ? 15 : 0), _ = I(() => typeof c == "string" ? c === "auto" ? 100 : parseInt(c) || 100 : c, [c]), m = Math.round(h / _);
22
+ f && f !== o && l(f), n.length > 0 && o === null && l((B = n[0]) == null ? void 0 : B.id);
23
+ const u = I(() => h === 0 ? [] : n.slice(m), [n, m, w]), z = I(() => n.slice(0, m), [n, m, w]), q = n.length, S = x((e) => {
24
+ const t = u.findIndex((r) => r.id === e);
25
+ if (t !== -1) {
26
+ const r = n.findIndex((i) => i.id === e), s = u[t];
27
27
  a((i) => (i.splice(r, 1), [s, ...i]));
28
28
  }
29
- }, [a, z, t, u]), g = x((e) => {
30
- W || S(e), l(e), T && T(e);
29
+ }, [a, z, n, u]), g = x((e) => {
30
+ k || S(e), l(e), T && T(e);
31
31
  }, [T, l, S]), A = x((e) => {
32
- const n = t.findIndex((s) => s.id === e), r = n === 0 ? t[n + 1] : t[n - 1];
33
- o === e && g(r.id), n !== -1 && a((s) => (s.splice(n, 1), s)), p && p(String(e));
34
- }, [p, t, u, o]), j = x((e) => {
32
+ const t = n.findIndex((s) => s.id === e), r = t === 0 ? n[t + 1] : n[t - 1];
33
+ o === e && g(r.id), t !== -1 && a((s) => (s.splice(t, 1), s)), p && p(String(e));
34
+ }, [p, n, u, o]), j = x((e) => {
35
35
  R(e.width);
36
36
  }, [R]);
37
- return C(() => {
38
- const e = E(b);
39
- if (e !== t) {
40
- const n = D.differenceBy(e, t, "id"), r = D.differenceBy(t, e, "id").map((s) => s.id);
37
+ return D(() => {
38
+ const e = M(b);
39
+ if (e !== n) {
40
+ const t = E.differenceBy(e, n, "id"), r = E.differenceBy(n, e, "id").map((s) => s.id);
41
41
  a((s) => {
42
42
  let i = s;
43
- return r && (i = i.filter((F) => !r.includes(F.id))), [...i, ...n];
43
+ return r && (i = i.filter((F) => !r.includes(F.id))), [...i, ...t];
44
44
  });
45
45
  }
46
- }, [b]), C(() => {
47
- const e = new ResizeObserver(([n]) => {
48
- j(n.contentRect);
46
+ }, [b]), D(() => {
47
+ const e = new ResizeObserver(([t]) => {
48
+ j(t.contentRect);
49
49
  });
50
50
  return d.current && e.observe(d.current), () => {
51
51
  e.disconnect();
52
52
  };
53
53
  }, [d.current, j]), /* @__PURE__ */ G.jsx(L.Provider, { value: {
54
- tabs: t,
54
+ tabs: n,
55
55
  menuTabs: z,
56
56
  dropdownTabs: u,
57
57
  containerWidth: w,
@@ -60,7 +60,7 @@ function X({
60
60
  selectedTabId: o,
61
61
  removeTab: A,
62
62
  menuRef: v
63
- }, children: M });
63
+ }, children: O });
64
64
  }
65
65
  export {
66
66
  L as TabsContext,
package/lib/tabs/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useRef as R, useMemo as T, Fragment as n } from "react";
3
3
  import b from "./Menu.js";
4
4
  import { default as z } from "./Panel.js";
5
5
  import { tabsClass as C } from "./tabHelpers.js";
6
- import "../chunks/tabs.Cvj2MJH6.js";
6
+ import "../chunks/tabs.BP3DB7Gx.js";
7
7
  import { TabsProvider as g } from "./context.js";
8
8
  const q = ({
9
9
  toolbar: f,
@@ -3,8 +3,8 @@ import { OPTIONS_ON_DENIED as r } from "../permissionValidations.js";
3
3
  function h(t, n) {
4
4
  if (n < 0) return 0;
5
5
  if (n > 1) return 1;
6
- const { scrollHeight: o, clientHeight: u } = t, s = o - u, c = Math.round(o * n), f = Math.round(s - s * 0.3);
7
- return Math.min(c, f);
6
+ const { scrollHeight: o, clientHeight: c } = t, s = o - c, u = Math.round(o * n), f = Math.round(s - s * 0.3);
7
+ return Math.min(u, f);
8
8
  }
9
9
  const p = (t) => (i.Children.map(t, (e) => {
10
10
  if (!e || !i.isValidElement(e)) return null;
@@ -1,4 +1,4 @@
1
- import { j as m } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as m } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { forwardRef as f } from "react";
3
3
  import c from "lodash";
4
4
  import x from "../internals/withTooltip.js";
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as B } from "react";
3
3
  import j from "../buttons/Button.js";
4
4
  import c from "../buttons/PrimaryButton.js";
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as x } from "react";
3
3
  import u from "../labels/DefaultLabel.js";
4
4
  import b from "../labels/DangerLabel.js";
@@ -1,4 +1,4 @@
1
- import { j as a } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as a } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  const r = () => /* @__PURE__ */ a.jsx("div", { className: "separator" });
3
3
  export {
4
4
  r as default