@alphakits/ui 1.31.2 → 1.31.4

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 (136) hide show
  1. package/dist/amount/component.js +1 -1
  2. package/dist/amount/index.js +1 -1
  3. package/dist/avatar/component.js +1 -1
  4. package/dist/avatar/index.js +1 -1
  5. package/dist/base-card/component.js +1 -1
  6. package/dist/base-card/index.js +1 -1
  7. package/dist/calendar/component.js +1 -1
  8. package/dist/calendar/components/days-table/component.js +1 -1
  9. package/dist/calendar/components/days-table/index.js +1 -1
  10. package/dist/calendar/components/header/index.js +1 -1
  11. package/dist/calendar/components/header//321/201omponent.js +1 -1
  12. package/dist/calendar/components/months-table/index.js +1 -1
  13. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  14. package/dist/calendar/index.js +1 -1
  15. package/dist/calendar-input/component.js +1 -1
  16. package/dist/calendar-input/index.js +1 -1
  17. package/dist/{capitalize-d32858ed.js → capitalize-474610b0.js} +1 -1
  18. package/dist/card/component.js +1 -1
  19. package/dist/card/images/index.js +1 -1
  20. package/dist/card/index.js +1 -1
  21. package/dist/cell/base/component.js +1 -1
  22. package/dist/cell/component.js +1 -1
  23. package/dist/cell/index.js +1 -1
  24. package/dist/checkbox-group/component.js +1 -1
  25. package/dist/checkbox-group/index.js +1 -1
  26. package/dist/checkbox-lists/component.js +1 -1
  27. package/dist/checkbox-lists/index.js +1 -1
  28. package/dist/collapsable-row/addons.js +1 -1
  29. package/dist/collapsable-row/component.js +1 -1
  30. package/dist/collapsable-row/index.js +1 -1
  31. package/dist/collapse/component.js +1 -1
  32. package/dist/collapse/index.js +1 -1
  33. package/dist/copy-button/component.js +1 -1
  34. package/dist/copy-button/index.js +1 -1
  35. package/dist/date/component.js +1 -1
  36. package/dist/date/index.js +1 -1
  37. package/dist/date-switcher/component.js +1 -1
  38. package/dist/date-switcher/index.js +1 -1
  39. package/dist/empty-page/component.js +1 -1
  40. package/dist/empty-page/index.js +1 -1
  41. package/dist/footer/component.js +1 -1
  42. package/dist/footer/contact-block.js +1 -1
  43. package/dist/footer/index.js +1 -1
  44. package/dist/form/component.js +1 -1
  45. package/dist/form/index.js +1 -1
  46. package/dist/form/templates/filters-form/index.js +1 -1
  47. package/dist/form/templates/rest-form/form.js +1 -1
  48. package/dist/form/templates/rest-form/index.js +1 -1
  49. package/dist/grid/col/component.js +1 -1
  50. package/dist/grid/col/index.js +1 -1
  51. package/dist/grid/component.js +1 -1
  52. package/dist/grid/index.js +1 -1
  53. package/dist/grid/row/component.js +1 -1
  54. package/dist/grid/row/index.js +1 -1
  55. package/dist/image/component.js +1 -1
  56. package/dist/image/image-base.js +1 -1
  57. package/dist/image/index.js +1 -1
  58. package/dist/image/use-image-render-component.js +1 -1
  59. package/dist/image-uploader/component.js +1 -1
  60. package/dist/image-uploader/index.js +1 -1
  61. package/dist/index.css +1 -1
  62. package/dist/info-block-header/component.js +1 -1
  63. package/dist/info-block-header/index.js +1 -1
  64. package/dist/info-block-item/component.js +1 -1
  65. package/dist/info-block-item/index.js +1 -1
  66. package/dist/list-allert/component.js +1 -1
  67. package/dist/list-allert/index.js +1 -1
  68. package/dist/menu/component.d.ts +1 -0
  69. package/dist/menu/component.js +1 -1
  70. package/dist/menu/components/content-header/index.js +1 -1
  71. package/dist/menu/components/index.js +1 -1
  72. package/dist/menu/components/menu-avatar/index.js +1 -1
  73. package/dist/menu/components/menu-button/index.js +1 -1
  74. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  75. package/dist/menu/components/user-button/index.js +1 -1
  76. package/dist/menu/index.js +1 -1
  77. package/dist/message/component.js +1 -1
  78. package/dist/message/index.js +1 -1
  79. package/dist/page-with-controls/component.js +1 -1
  80. package/dist/page-with-controls/index.js +1 -1
  81. package/dist/picker-button/common/index.js +1 -1
  82. package/dist/picker-button/common/labeled-button/index.js +1 -1
  83. package/dist/picker-button/component.d.ts +1 -1
  84. package/dist/picker-button/index.js +1 -1
  85. package/dist/progress-bar/component.js +1 -1
  86. package/dist/progress-bar/index.js +1 -1
  87. package/dist/progress-index/component.js +1 -1
  88. package/dist/progress-index/index.js +1 -1
  89. package/dist/radio-group/component.js +1 -1
  90. package/dist/radio-group/index.js +1 -1
  91. package/dist/radio-groups/component.js +1 -1
  92. package/dist/radio-groups/index.js +1 -1
  93. package/dist/sidepanel/component.js +1 -1
  94. package/dist/sidepanel/index.js +1 -1
  95. package/dist/sidepanel-header/component.js +1 -1
  96. package/dist/sidepanel-header/index.js +1 -1
  97. package/dist/stepped-progress-bar/components/step-bar.js +1 -1
  98. package/dist/stepped-progress-bar/index.d.ts +1 -1
  99. package/dist/stepped-progress-bar/index.js +1 -1
  100. package/dist/super-list-header/component.js +1 -1
  101. package/dist/super-list-header/index.js +1 -1
  102. package/dist/super-list-item/component.js +1 -1
  103. package/dist/super-list-item/index.js +1 -1
  104. package/dist/table/component.js +1 -1
  105. package/dist/table/components/cell/component.js +1 -1
  106. package/dist/table/components/cell/index.js +1 -1
  107. package/dist/table/components/cells/index.js +1 -1
  108. package/dist/table/components/empty-list/index.js +1 -1
  109. package/dist/table/components/error/index.js +1 -1
  110. package/dist/table/components/loading/index.js +1 -1
  111. package/dist/table/components/pagination/index.js +1 -1
  112. package/dist/table/index.js +1 -1
  113. package/dist/table/table.js +1 -1
  114. package/dist/table/utils/prepare-rows.js +1 -1
  115. package/dist/table-status/component.js +1 -1
  116. package/dist/table-status/index.js +1 -1
  117. package/dist/tag/component.js +1 -1
  118. package/dist/tag/index.js +1 -1
  119. package/dist/tags-list/component.js +1 -1
  120. package/dist/tags-list/index.js +1 -1
  121. package/dist/typography/component.js +1 -1
  122. package/dist/typography/index.js +1 -1
  123. package/dist/typography/text/component.js +1 -1
  124. package/dist/typography/text/index.js +1 -1
  125. package/dist/typography/title/component.js +1 -1
  126. package/dist/typography/title/index.js +1 -1
  127. package/package.json +1 -1
  128. /package/dist/{colors.module-a7d0efb0.js → colors.module-31cce552.js} +0 -0
  129. /package/dist/{contact-block-c5889266.d.ts → contact-block-647da869.d.ts} +0 -0
  130. /package/dist/{contact-block-c5889266.js → contact-block-647da869.js} +0 -0
  131. /package/dist/{gutters.module-8ae90e74.js → gutters.module-e2c68a2e.js} +0 -0
  132. /package/dist/{isSymbol-9701dc6b.js → isSymbol-7dcd25d3.js} +0 -0
  133. /package/dist/{step-bar-15ff0e61.d.ts → step-bar-ee5ef319.d.ts} +0 -0
  134. /package/dist/{step-bar-15ff0e61.js → step-bar-ee5ef319.js} +0 -0
  135. /package/dist/{use-image-render-component-91131dbc.d.ts → use-image-render-component-f91d0c98.d.ts} +0 -0
  136. /package/dist/{use-image-render-component-91131dbc.js → use-image-render-component-f91d0c98.js} +0 -0
@@ -1 +1 @@
1
- import t from"react";import o from"@alphakits/icons/dist/NextS";import e from"classnames";import{IconButton as r}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__3ce8x"},p=function(p){var n=p.title,s=p.onClick;return t.createElement("div",{className:e(m.item)},t.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},n),!!s&&t.createElement(r,{icon:o,className:m.copy,size:"s",onClick:s}))};export{p as InfoBlockHeader};
1
+ import t from"react";import o from"@alphakits/icons/dist/NextS";import e from"classnames";import{IconButton as r}from"../icon-button/component.js";import{Typography as i}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__3ce8x"},p=function(p){var n=p.title,c=p.onClick;return t.createElement("div",{className:e(m.item)},t.createElement(i.Text,{view:"title",weight:"bold",color:"primary"},n),!!c&&t.createElement(r,{icon:o,className:m.copy,size:"s",onClick:c}))};export{p as InfoBlockHeader};
@@ -1 +1 @@
1
- export{InfoBlockHeader}from"./component.js";import"react";import"@alphakits/icons/dist/NextS";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{InfoBlockHeader}from"./component.js";import"react";import"@alphakits/icons/dist/NextS";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import t from"react";import e from"@alphakits/icons/dist/ActionCopyM";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__Wtwgt",start:"index-module_start__3kp7e",between:"index-module_between__3JHZ-",rightAddons:"index-module_rightAddons__3HmvT",content:"index-module_content__OwYJI",copy:"index-module_copy__2bD1W"},s=function(s){var p=s.label,a=s.value,c=s.view,l=void 0===c?"between":c,d=s.rightAddons,u=s.withCopyButton,h=s.color,_=void 0===h?"primary":h;return t.createElement("div",{className:o(m.item,m[l])},t.createElement(n.Text,{view:"caps",color:"secondary",weight:"medium"},p,a&&":"),t.createElement("div",{className:m.content},a&&t.createElement(n.Text,{view:"caps",className:m.value,color:_,weight:"medium"},a,u&&t.createElement(i,{icon:e,className:m.copy,size:"s",onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a).then((function(){r({title:"Copied!",view:"positive",offset:30})}))}})),d&&t.createElement("div",{className:m.rightAddons},d)))};export{s as InfoBlockItem};
1
+ import t from"react";import e from"@alphakits/icons/dist/ActionCopyM";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__Wtwgt",start:"index-module_start__3kp7e",between:"index-module_between__3JHZ-",rightAddons:"index-module_rightAddons__3HmvT",content:"index-module_content__OwYJI",copy:"index-module_copy__2bD1W"},s=function(s){var p=s.label,a=s.value,c=s.view,l=void 0===c?"between":c,d=s.rightAddons,u=s.withCopyButton,h=s.color,_=void 0===h?"primary":h;return t.createElement("div",{className:o(m.item,m[l])},t.createElement(n.Text,{view:"caps",color:"secondary",weight:"medium"},p,a&&":"),t.createElement("div",{className:m.content},a&&t.createElement(n.Text,{view:"caps",className:m.value,color:_,weight:"medium"},a,u&&t.createElement(i,{icon:e,className:m.copy,size:"s",onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a).then((function(){r({title:"Copied!",view:"positive",offset:30})}))}})),d&&t.createElement("div",{className:m.rightAddons},d)))};export{s as InfoBlockItem};
@@ -1 +1 @@
1
- export{InfoBlockItem}from"./component.js";import"react";import"@alphakits/icons/dist/ActionCopyM";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{InfoBlockItem}from"./component.js";import"react";import"@alphakits/icons/dist/ActionCopyM";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n={component:"index-module_component__3qzuv",accent:"index-module_accent__CtavO",attention:"index-module_attention__3zvL_",negative:"index-module_negative__1wBaF"},a=function(a){var i=a.className,m=a.dataTestId,r=a.view,p=void 0===r?"accent":r,c=a.text;return t.createElement("div",{className:e(n.component,i,n[p]),"data-test-id":m},t.createElement(o.Text,{view:"title",color:"primary",weight:"medium"},c))};export{a as ListAllert};
1
+ import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n={component:"index-module_component__3qzuv",accent:"index-module_accent__CtavO",attention:"index-module_attention__3zvL_",negative:"index-module_negative__1wBaF"},i=function(i){var m=i.className,a=i.dataTestId,r=i.view,p=void 0===r?"accent":r,c=i.text;return t.createElement("div",{className:e(n.component,m,n[p]),"data-test-id":a},t.createElement(o.Text,{view:"title",color:"primary",weight:"medium"},c))};export{i as ListAllert};
@@ -1 +1 @@
1
- export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
1
+ export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -6,6 +6,7 @@ type MenuElement = {
6
6
  path: string;
7
7
  element: React.ReactNode;
8
8
  icon?: JSX.Element;
9
+ title?: string;
9
10
  };
10
11
  type MenuProps = {
11
12
  pathname: string;
@@ -1 +1 @@
1
- import t from"react";import e from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as i}from"./components/content-header/index.js";import{MenuAvatar as n}from"./components/menu-avatar/index.js";import{MenuBackButton as r}from"./components/menu-back-button/index.js";import{MenuButtonsList as s}from"./components/menu-buttons-list/index.js";import{UserButton as m}from"./components/user-button/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";var p="index-module_layout_wrapper__1qu9m",c="index-module_left_menu__OxEtW",a="index-module_menu_static__3BAoW",l="index-module_hidden_menu_opened__2ygKE",u="index-module_content_header__2zi9x",d="index-module_content_wrapper__hZL3Q",j="index-module_content_offseted__8iegJ",h="index-module_calendar_view__3YA9w",_=function(_){var k,f,x=_.pathname,g=_.children,v=_.routes,b=_.showBackButton,w=_.userName,y=_.userImage,C=_.userDialogOptions,E=_.profileTitle,M=_.profileImage,N=_.Link,S=_.profileOnClick,L=_.navigate,O=_.t,T=o(),A=T.staticMenu,B=T.setStaticMenu,I=T.showMenu,P=T.ref,W=A||I,z="/"+x.split("/").slice(-1)[0],D=e(c,((k={})[a]=A,k[l]=I,k)),q=e(d,((f={})[j]=A,f[h]=x.startsWith("/app/calendar"),f));return t.createElement("div",{className:e(p)},t.createElement("div",{ref:P,className:D},t.createElement(n,{title:E,showTitle:W,image:M,onClick:S}),b&&t.createElement(r,{showTitle:W,onClick:function(){return L("/app/calendar")}}),t.createElement(s,{routes:v,showLabels:W,currentPath:z,Link:N,t:O})),t.createElement("div",{className:q},t.createElement("div",{className:u},t.createElement(i,{onClick:function(){return B(!A)},title:O("menu."+z)}),t.createElement(m,{photo:y,fullName:w,options:C})),g))};export{_ as Menu};
1
+ import t from"react";import e from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as i}from"./components/content-header/index.js";import{MenuAvatar as n}from"./components/menu-avatar/index.js";import{MenuBackButton as r}from"./components/menu-back-button/index.js";import{MenuButtonsList as s}from"./components/menu-buttons-list/index.js";import{UserButton as m}from"./components/user-button/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";var p="index-module_layout_wrapper__1qu9m",c="index-module_left_menu__OxEtW",a="index-module_menu_static__3BAoW",l="index-module_hidden_menu_opened__2ygKE",u="index-module_content_header__2zi9x",d="index-module_content_wrapper__hZL3Q",j="index-module_content_offseted__8iegJ",h="index-module_calendar_view__3YA9w",_=function(_){var k,f,x=_.pathname,g=_.children,v=_.routes,b=_.showBackButton,w=_.userName,y=_.userImage,C=_.userDialogOptions,E=_.profileTitle,M=_.profileImage,N=_.Link,S=_.profileOnClick,L=_.navigate,O=_.t,T=o(),A=T.staticMenu,B=T.setStaticMenu,I=T.showMenu,P=T.ref,W=A||I,z="/"+x.split("/").slice(-1)[0],D=e(c,((k={})[a]=A,k[l]=I,k)),q=e(d,((f={})[j]=A,f[h]=x.startsWith("/app/calendar"),f));return t.createElement("div",{className:e(p)},t.createElement("div",{ref:P,className:D},t.createElement(n,{title:E,showTitle:W,image:M,onClick:S}),b&&t.createElement(r,{showTitle:W,onClick:function(){return L("/app/calendar")}}),t.createElement(s,{routes:v,showLabels:W,currentPath:z,Link:N,t:O})),t.createElement("div",{className:q},t.createElement("div",{className:u},t.createElement(i,{onClick:function(){return B(!A)},title:O("menu."+z)}),t.createElement(m,{photo:y,fullName:w,options:C})),g))};export{_ as Menu};
@@ -1 +1 @@
1
- import o from"react";import t from"@alphakits/icons/dist/MoverS";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"tslib";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_open_button__kuNgh",m=function(m){var n=m.onClick,p=m.title;return o.createElement("div",null,o.createElement(e,{size:"m",icon:t,onClick:n,className:i}),o.createElement(r.Title,{color:"primary",tag:"div",view:"xsmall",weight:"regular"},p))};export{m as ContentHeader};
1
+ import o from"react";import t from"@alphakits/icons/dist/MoverS";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"tslib";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_open_button__kuNgh",m=function(m){var n=m.onClick,p=m.title;return o.createElement("div",null,o.createElement(e,{size:"m",icon:t,onClick:n,className:i}),o.createElement(r.Title,{color:"primary",tag:"div",view:"xsmall",weight:"regular"},p))};export{m as ContentHeader};
@@ -1 +1 @@
1
- export{ContentHeader}from"./content-header/index.js";export{MenuAvatar}from"./menu-avatar/index.js";export{MenuBackButton}from"./menu-back-button/index.js";export{MenuButtonsList}from"./menu-buttons-list/index.js";export{UserButton}from"./user-button/index.js";import"react";import"@alphakits/icons/dist/MoverS";import"../../icon-button/component.js";import"tslib";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-a7d0efb0.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"@alphakits/icons";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"@alphakits/icons/dist/NextS";import"../../divider/component.js";import"./menu-button/index.js";import"../../select/component.js";import"../../select/components/arrow/component.js";import"../../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../../select/utils.js";import"../../select/components/native-select/component.js";import"../../select/components/field/component.js";import"../../form-control/component.js";import"../../select/components/optgroup/component.js";import"../../select/components/option/component.js";import"../../select/components/checkmark/component.js";import"../../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../../select/components/select-search/index.js";import"../../hooks/useClickOutside/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../../toast-notifier/use-timer.js";import"../../input/component.js";import"react-virtual";import"intersection-observer";
1
+ export{ContentHeader}from"./content-header/index.js";export{MenuAvatar}from"./menu-avatar/index.js";export{MenuBackButton}from"./menu-back-button/index.js";export{MenuButtonsList}from"./menu-buttons-list/index.js";export{UserButton}from"./user-button/index.js";import"react";import"@alphakits/icons/dist/MoverS";import"../../icon-button/component.js";import"tslib";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-31cce552.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"@alphakits/icons";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"@alphakits/icons/dist/NextS";import"../../divider/component.js";import"./menu-button/index.js";import"../../select/component.js";import"../../select/components/arrow/component.js";import"../../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../../select/utils.js";import"../../select/components/native-select/component.js";import"../../select/components/field/component.js";import"../../form-control/component.js";import"../../select/components/optgroup/component.js";import"../../select/components/option/component.js";import"../../select/components/checkmark/component.js";import"../../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../../select/components/select-search/index.js";import"../../hooks/useClickOutside/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../../toast-notifier/use-timer.js";import"../../input/component.js";import"react-virtual";import"intersection-observer";
@@ -1 +1 @@
1
- import t from"react";import o from"classnames";import{Avatar as e}from"../../../avatar/component.js";import{Typography as i}from"../../../typography/component.js";import"@alphakits/icons";import"../../../button/component.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var m="index-module_menu_header__3QeXC",r="index-module_text__3zNFW",p="index-module_hidden_text__2l2-G",n=function(n){var s,a=n.showTitle,c=n.title,l=n.image,d=n.onClick;return t.createElement("div",{className:m},t.createElement(e,{onClick:function(){d&&d()},src:l,text:c}),t.createElement(i.Text,{className:o(r,(s={},s[p]=!a,s)),view:"primary-medium",weight:"bold"},c))};export{n as MenuAvatar};
1
+ import t from"react";import o from"classnames";import{Avatar as e}from"../../../avatar/component.js";import{Typography as i}from"../../../typography/component.js";import"@alphakits/icons";import"../../../button/component.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var m="index-module_menu_header__3QeXC",r="index-module_text__3zNFW",p="index-module_hidden_text__2l2-G",n=function(n){var s,a=n.showTitle,c=n.title,l=n.image,d=n.onClick;return t.createElement("div",{className:m},t.createElement(e,{onClick:function(){d&&d()},src:l,text:c}),t.createElement(i.Text,{className:o(r,(s={},s[p]=!a,s)),view:"primary-medium",weight:"bold"},c))};export{n as MenuAvatar};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_menu_button__1xuE3",m="index-module_text__30Pa6",r="index-module_active__KI6J2",n="index-module_leftAddons__2fpYr",d="index-module_rightAddons__30vch",a="index-module_isHidden__3-Jyt",l=function(l){var s,c=l.href,p=l.children,_=l.active,u=l.leftAddons,x=l.rightAddons,h=l.showLabels,y=l.Link;return e.createElement(y,{className:t(i,(s={},s[r]=_,s[a]=!h,s)),to:c},u&&e.createElement("div",{className:n},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:m},p),x&&e.createElement("div",{className:d},x))};export{l as MenuButton};
1
+ import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_menu_button__1xuE3",m="index-module_text__30Pa6",r="index-module_active__KI6J2",n="index-module_leftAddons__2fpYr",d="index-module_rightAddons__30vch",a="index-module_isHidden__3-Jyt",l=function(l){var s,c=l.href,p=l.children,_=l.active,u=l.leftAddons,x=l.rightAddons,h=l.showLabels,y=l.Link;return e.createElement(y,{className:t(i,(s={},s[r]=_,s[a]=!h,s)),to:c},u&&e.createElement("div",{className:n},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:m},p),x&&e.createElement("div",{className:d},x))};export{l as MenuButton};
@@ -1 +1 @@
1
- import t from"react";import{MenuButton as e}from"../menu-button/index.js";import"classnames";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o="index-module_component__17Zyb",r=function(r){var n=r.routes,p=r.showLabels,i=r.currentPath,m=r.t,a=r.Link;return t.createElement("div",{className:o},!!n.length&&n.map((function(o){var r="/"+o.path.split("/").slice(-1)[0];return t.createElement(e,{showLabels:p,leftAddons:o.icon,active:r===i,key:o.path,href:o.path,Link:a},m("menu."+r))})))};export{r as MenuButtonsList};
1
+ import t from"react";import{MenuButton as e}from"../menu-button/index.js";import"classnames";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o="index-module_component__17Zyb",r=function(r){var n=r.routes,p=r.showLabels,i=r.currentPath,m=r.t,a=r.Link;return t.createElement("div",{className:o},!!n.length&&n.map((function(o){var r,n="/"+o.path.split("/").slice(-1)[0];return t.createElement(e,{showLabels:p,leftAddons:o.icon,active:n===i,key:o.path,href:o.path,Link:a},null!==(r=o.title)&&void 0!==r?r:m("menu."+n))})))};export{r as MenuButtonsList};
@@ -1 +1 @@
1
- import{__assign as o}from"tslib";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as i}from"../../../button/component.js";import{Select as r}from"../../../select/component.js";import"classnames";import"../../../select/components/base-select/component.js";import"../../../form-control/component.js";import"../../../select/components/options-list/component.js";import"react-virtual";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import"intersection-observer";import"@alphakits/icons";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../select/components/arrow/component.js";import"../../../select/components/field/component.js";import"../../../select/utils.js";import"../../../select/components/optgroup/component.js";import"../../../select/components/option/component.js";import"../../../select/components/checkmark/component.js";import"../../../select/components/select-search/index.js";import"../../../hooks/useClickOutside/index.js";import"../../../input/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"react-dom";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../../../toast-notifier/use-timer.js";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../../select/components/native-select/component.js";var s="index-module_option_wrap__sahYD",p="index-module_field_avatar__2rJxH",n=t.memo((function(n){var m=n.options,c=n.fullName,a=n.photo;return t.createElement("div",{className:p},t.createElement(r,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(r){var s=r.innerProps;return t.createElement(i,o({},s,{view:"ghost"}),t.createElement(e,{onClick:m.length?function(){}:void 0,src:a,text:c}))}}))}));export{n as UserButton};
1
+ import{__assign as o}from"tslib";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as i}from"../../../button/component.js";import{Select as r}from"../../../select/component.js";import"classnames";import"../../../select/components/base-select/component.js";import"../../../form-control/component.js";import"../../../select/components/options-list/component.js";import"react-virtual";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import"intersection-observer";import"@alphakits/icons";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../select/components/arrow/component.js";import"../../../select/components/field/component.js";import"../../../select/utils.js";import"../../../select/components/optgroup/component.js";import"../../../select/components/option/component.js";import"../../../select/components/checkmark/component.js";import"../../../select/components/select-search/index.js";import"../../../hooks/useClickOutside/index.js";import"../../../input/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"react-dom";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../../../toast-notifier/use-timer.js";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../../select/components/native-select/component.js";var s="index-module_option_wrap__sahYD",p="index-module_field_avatar__2rJxH",n=t.memo((function(n){var m=n.options,c=n.fullName,a=n.photo;return t.createElement("div",{className:p},t.createElement(r,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(r){var s=r.innerProps;return t.createElement(i,o({},s,{view:"ghost"}),t.createElement(e,{onClick:m.length?function(){}:void 0,src:a,text:c}))}}))}));export{n as UserButton};
@@ -1 +1 @@
1
- export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-buttons-list/index.js";import"./components/menu-button/index.js";import"./components/user-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";
1
+ export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-buttons-list/index.js";import"./components/menu-button/index.js";import"./components/user-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";
@@ -1 +1 @@
1
- import e,{useState as t}from"react";import{Button as o}from"../button/component.js";import{Flex as i}from"../flex/component.js";import{Image as r}from"../image/component.js";import{ImageGallery as m}from"../image-gallery/component.js";import{Padding as n}from"../padding/component.js";import{Typography as a}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-images-viewer";var s="index-module_topRow__1RF92",l="index-module_answer__xuRvB",p="index-module_leftSide__3QkAD",c="index-module_title__hNfHl",d="index-module_rightAddons__2qp_t",u="index-module_text__bFMhQ",g=function(g){var h=g.className,x=g.dataTestId,f=g.title,_=g.date,j=g.rightAddons,v=g.answer,y=g.text,w=g.image,E=g.photos,N=void 0===E?[]:E,b=g.withImage,k=void 0===b||b,T=t(!1),F=T[0],A=T[1],R=t(0),S=R[0],z=R[1];return e.createElement("div",{"data-test-id":x,className:h},e.createElement("div",{className:s},e.createElement("div",{className:p},k&&e.createElement(r,{src:w,size:"s",text:f,view:"circle"}),e.createElement(a.Text,{color:"primary",className:c,view:"title",weight:"bold"},f),_&&e.createElement(a.Text,{view:"title",color:"secondary",weight:"regular"},_)),j&&e.createElement("div",{className:d},j)),e.createElement("div",{className:u},e.createElement(a.Text,{view:"primary-medium",color:"primary",weight:"medium"},y),!!v&&e.createElement(a.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},v),!!N.length&&e.createElement(e.Fragment,null,e.createElement(n,{padding:"8px 0"}),e.createElement(i,{justify:"start",gap:"md"},N.map((function(t,i){return e.createElement(o,{view:"ghost",onClick:function(){z(i),A(!0)}},e.createElement(r,{src:t,size:"xl",view:"default"}))}))),e.createElement(m,{photos:N.map((function(e){return{src:e}})),initialSlide:S||0,open:F,onClose:function(){return A(!1)}}))))};export{g as Message};
1
+ import e,{useState as t}from"react";import{Button as o}from"../button/component.js";import{Flex as i}from"../flex/component.js";import{Image as r}from"../image/component.js";import{ImageGallery as m}from"../image-gallery/component.js";import{Padding as n}from"../padding/component.js";import{Typography as a}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-images-viewer";var s="index-module_topRow__1RF92",l="index-module_answer__xuRvB",c="index-module_leftSide__3QkAD",p="index-module_title__hNfHl",d="index-module_rightAddons__2qp_t",u="index-module_text__bFMhQ",g=function(g){var h=g.className,x=g.dataTestId,f=g.title,_=g.date,j=g.rightAddons,v=g.answer,y=g.text,w=g.image,E=g.photos,N=void 0===E?[]:E,k=g.withImage,T=void 0===k||k,b=t(!1),F=b[0],A=b[1],R=t(0),S=R[0],z=R[1];return e.createElement("div",{"data-test-id":x,className:h},e.createElement("div",{className:s},e.createElement("div",{className:c},T&&e.createElement(r,{src:w,size:"s",text:f,view:"circle"}),e.createElement(a.Text,{color:"primary",className:p,view:"title",weight:"bold"},f),_&&e.createElement(a.Text,{view:"title",color:"secondary",weight:"regular"},_)),j&&e.createElement("div",{className:d},j)),e.createElement("div",{className:u},e.createElement(a.Text,{view:"primary-medium",color:"primary",weight:"medium"},y),!!v&&e.createElement(a.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},v),!!N.length&&e.createElement(e.Fragment,null,e.createElement(n,{padding:"8px 0"}),e.createElement(i,{justify:"start",gap:"md"},N.map((function(t,i){return e.createElement(o,{view:"ghost",onClick:function(){z(i),A(!0)}},e.createElement(r,{src:t,size:"xl",view:"default"}))}))),e.createElement(m,{photos:N.map((function(e){return{src:e}})),initialSlide:S||0,open:F,onClose:function(){return A(!1)}}))))};export{g as Message};
@@ -1 +1 @@
1
- export{Message}from"./component.js";import"react";import"../button/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image-gallery/component.js";import"react-images-viewer";import"../padding/component.js";
1
+ export{Message}from"./component.js";import"react";import"../button/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex/component.js";import"../image/component.js";import"../skeleton/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"../image-gallery/component.js";import"react-images-viewer";import"../padding/component.js";
@@ -1 +1 @@
1
- import{__rest as t,__assign as o}from"tslib";import e from"react";import{Button as r}from"../button/component.js";import{FlexColumns as m}from"../flex-columns/component.js";import{Grid as n}from"../grid/component.js";import{Typography as i}from"../typography/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-8ae90e74.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var p=function(p){var s=p.children,l=p.buttons;return e.createElement(n.Row,null,e.createElement(n.Col,{width:7},e.createElement(m,{columns:1,gr:32},s)),e.createElement(n.Col,{width:4,offset:1},e.createElement(m,{columns:1,gr:16},l.map((function(m){var n=m.text,p=t(m,["text"]);return e.createElement(r,o({view:"ghost"},p),e.createElement(i.Title,{tag:"div",view:"xxsmall",color:"primary",weight:"regular"},n))})))))};export{p as PageWithControls};
1
+ import{__rest as t,__assign as o}from"tslib";import e from"react";import{Button as r}from"../button/component.js";import{FlexColumns as m}from"../flex-columns/component.js";import{Grid as n}from"../grid/component.js";import{Typography as i}from"../typography/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-e2c68a2e.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";var p=function(p){var c=p.children,s=p.buttons;return e.createElement(n.Row,null,e.createElement(n.Col,{width:7},e.createElement(m,{columns:1,gr:32},c)),e.createElement(n.Col,{width:4,offset:1},e.createElement(m,{columns:1,gr:16},s.map((function(m){var n=m.text,p=t(m,["text"]);return e.createElement(r,o({view:"ghost"},p),e.createElement(i.Title,{tag:"div",view:"xxsmall",color:"primary",weight:"regular"},n))})))))};export{p as PageWithControls};
@@ -1 +1 @@
1
- export{PageWithControls}from"./component.js";import"tslib";import"react";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../grid/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-8ae90e74.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{PageWithControls}from"./component.js";import"tslib";import"react";import"../button/component.js";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../flex-columns/component.js";import"../grid/component.js";import"../grid/col/component.js";import"../grid/utils/index.js";import"../gutters.module-e2c68a2e.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-a7d0efb0.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";
1
+ export{LabeledButton}from"./labeled-button/index.js";import"react";import"classnames";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-31cce552.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";
@@ -1 +1 @@
1
- import t,{forwardRef as e}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_wrapper__33gwN",m=e((function(e,m){var p=e.label,a=e.value,l=e.id,n=e.className,c=e.onClick;return t.createElement("button",{className:o(i,n),ref:m,id:l,type:"button",onClick:c},t.createElement(r.Text,{view:"caps",weight:"medium",color:"tertiary"},p),t.createElement(r.Text,{view:"title",weight:"medium",color:"primary"},a))}));export{m as LabeledButton};
1
+ import t,{forwardRef as e}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_wrapper__33gwN",m=e((function(e,m){var p=e.label,a=e.value,l=e.id,c=e.className,n=e.onClick;return t.createElement("button",{className:o(i,c),ref:m,id:l,type:"button",onClick:n},t.createElement(r.Text,{view:"caps",weight:"medium",color:"tertiary"},p),t.createElement(r.Text,{view:"title",weight:"medium",color:"primary"},a))}));export{m as LabeledButton};
@@ -8,7 +8,7 @@ type PickerButtonProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autoco
8
8
  icon?: React.ReactNode;
9
9
  fieldComponent?: 'button' | 'iconButton';
10
10
  };
11
- declare const PickerButton: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "hint" | "selected" | "multiple" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "loading"> & {
11
+ declare const PickerButton: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "hint" | "multiple" | "selected" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "loading"> & {
12
12
  size?: PickerButtonSize | undefined;
13
13
  icon?: React.ReactNode;
14
14
  fieldComponent?: "button" | "iconButton" | undefined;
@@ -1 +1 @@
1
- export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"tslib";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../button/component.js";import"../loader/component.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"tslib";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../button/component.js";import"../loader/component.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var r={progress_bar:"index-module_progress_bar__3nlr2",block:"index-module_block__2aONS",inner:"index-module_inner__z5AVV",indicator:"index-module_indicator__2ioud",multicolor:"index-module_multicolor__1ADvJ",_30:"index-module__30__1suFf",_60:"index-module__60__3eFsq",negative:"index-module_negative__6JYfz",positive:"index-module_positive__2XpHn",accent:"index-module_accent__3ZoIe",secondary:"index-module_secondary__146J-",warning:"index-module_warning__1gFQM"},t=function(t){var n,l,m=t.value,_=void 0===m?0:m,d=t.block,a=t.renderValue,c=void 0===a||a,s=t.className,p=void 0===s?"":s,u=t.view,v=void 0===u?"multicolor":u,x=Number(_)&&Number(_)>=0?_:0;return e.createElement("div",{className:o(r.progress_bar,p,(n={},n[r.block]=d,n))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(l={},l[r._30]=x>=30&&"multicolor"===v,l[r._60]=x>=60&&"multicolor"===v,l))}),c&&e.createElement("div",{className:r.inner},e.createElement(i.Text,{view:"title",weight:"medium",color:"primary"},(x>100?100:x)+" %")))};export{t as ProgressBar};
1
+ import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var r={progress_bar:"index-module_progress_bar__3nlr2",block:"index-module_block__2aONS",inner:"index-module_inner__z5AVV",indicator:"index-module_indicator__2ioud",multicolor:"index-module_multicolor__1ADvJ",_30:"index-module__30__1suFf",_60:"index-module__60__3eFsq",negative:"index-module_negative__6JYfz",positive:"index-module_positive__2XpHn",accent:"index-module_accent__3ZoIe",secondary:"index-module_secondary__146J-",warning:"index-module_warning__1gFQM"},t=function(t){var n,l,m=t.value,_=void 0===m?0:m,d=t.block,a=t.renderValue,c=void 0===a||a,s=t.className,p=void 0===s?"":s,u=t.view,v=void 0===u?"multicolor":u,x=Number(_)&&Number(_)>=0?_:0;return e.createElement("div",{className:o(r.progress_bar,p,(n={},n[r.block]=d,n))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(l={},l[r._30]=x>=30&&"multicolor"===v,l[r._60]=x>=60&&"multicolor"===v,l))}),c&&e.createElement("div",{className:r.inner},e.createElement(i.Text,{view:"title",weight:"medium",color:"primary"},(x>100?100:x)+" %")))};export{t as ProgressBar};
@@ -1 +1 @@
1
- export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
1
+ export{ProgressBar}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{__rest as e,__assign as t}from"tslib";import o from"react";import{ProgressBar as r}from"../progress-bar/component.js";import{Typography as i}from"../typography/component.js";import"classnames";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_progress_index__1G7T4",a="index-module_text__1s7bQ",l=function(l){var n=l.onClick,p=l.value,s=l.title,c=l.subtitle,d=e(l,["onClick","value","title","subtitle"]);return o.createElement("button",{type:"button",onClick:n,disabled:!n,className:m},o.createElement("div",{className:a},o.createElement(i.Text,{tag:"div",view:"title",color:"primary",weight:"medium"},s),c&&o.createElement(i.Text,{tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),o.createElement(r,t({value:p},d)))};export{l as ProgressIndex};
1
+ import{__rest as e,__assign as t}from"tslib";import o from"react";import{ProgressBar as r}from"../progress-bar/component.js";import{Typography as i}from"../typography/component.js";import"classnames";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_progress_index__1G7T4",l="index-module_text__1s7bQ",a=function(a){var n=a.onClick,p=a.value,s=a.title,c=a.subtitle,d=e(a,["onClick","value","title","subtitle"]);return o.createElement("button",{type:"button",onClick:n,disabled:!n,className:m},o.createElement("div",{className:l},o.createElement(i.Text,{tag:"div",view:"title",color:"primary",weight:"medium"},s),c&&o.createElement(i.Text,{tag:"div",view:"caps",color:"secondary",weight:"medium"},c)),o.createElement(r,t({value:p},d)))};export{a as ProgressIndex};
@@ -1 +1 @@
1
- export{ProgressIndex}from"./component.js";import"tslib";import"react";import"../progress-bar/component.js";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{ProgressIndex}from"./component.js";import"tslib";import"react";import"../progress-bar/component.js";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{FlexColumns as o}from"../flex-columns/component.js";import{Radio as r}from"../radio/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__1xpOV",a="index-module_subtitle__1_nhZ",m="index-module_error__3a1A_",l="index-module_buttons_wrap__14ZXK",c="index-module_buttons_wrap_error__1Wgsl",d="index-module_button__14_DV",s="index-module_selected__3lxTQ",u=function(u){var p,_=u.title,g=u.subtitle,y=u.selected,v=u.data,x=void 0===v?[]:v,f=u.onChange,h=u.columns,k=void 0===h?1:h,b=u.gr,w=void 0===b?20:b,E=u.gc,j=void 0===E?20:E,T=u.dataTestId,N=u.error,C=u.view,I=void 0===C?"default":C,V=function(e){return T?"radio_"+T+"_"+e:"radio_"+e};return e.createElement("div",null,(_||g)&&e.createElement("div",{className:i},_&&e.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},_),g&&e.createElement(n.Text,{className:a,tag:"div",view:"caps",color:"secondary",weight:"medium"},g)),"default"===I?e.createElement(o,{columns:k,gr:w,gc:j},null==x?void 0:x.map((function(t,o){return e.createElement(r,{key:t.key+t.content,dataTestId:V(o),onChange:function(){return f(t.key)},checked:t.key===y,label:t.content})}))):e.createElement(o,{columns:x.length,gc:0,gr:0,className:t(l,(p={},p[c]=!!N,p))},x.map((function(o){var r;return e.createElement("button",{type:"button",onClick:function(){return f(o.key)},key:o.key+o.content,className:t(d,(r={},r[s]=o.key===y,r))},e.createElement(n.Text,{view:"title",weight:"regular",color:o.key===y?"primary-inverted":"primary"},o.content))}))),!!N&&e.createElement(n.Text,{className:m,view:"caps",weight:"medium",color:"negative"},N))};export{u as RadioGroup};
1
+ import e from"react";import t from"classnames";import{FlexColumns as o}from"../flex-columns/component.js";import{Radio as r}from"../radio/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__1xpOV",a="index-module_subtitle__1_nhZ",m="index-module_error__3a1A_",l="index-module_buttons_wrap__14ZXK",c="index-module_buttons_wrap_error__1Wgsl",d="index-module_button__14_DV",s="index-module_selected__3lxTQ",u=function(u){var p,_=u.title,g=u.subtitle,y=u.selected,v=u.data,x=void 0===v?[]:v,f=u.onChange,h=u.columns,k=void 0===h?1:h,w=u.gr,b=void 0===w?20:w,E=u.gc,j=void 0===E?20:E,T=u.dataTestId,N=u.error,C=u.view,I=void 0===C?"default":C,V=function(e){return T?"radio_"+T+"_"+e:"radio_"+e};return e.createElement("div",null,(_||g)&&e.createElement("div",{className:i},_&&e.createElement(n.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},_),g&&e.createElement(n.Text,{className:a,tag:"div",view:"caps",color:"secondary",weight:"medium"},g)),"default"===I?e.createElement(o,{columns:k,gr:b,gc:j},null==x?void 0:x.map((function(t,o){return e.createElement(r,{key:t.key+t.content,dataTestId:V(o),onChange:function(){return f(t.key)},checked:t.key===y,label:t.content})}))):e.createElement(o,{columns:x.length,gc:0,gr:0,className:t(l,(p={},p[c]=!!N,p))},x.map((function(o){var r;return e.createElement("button",{type:"button",onClick:function(){return f(o.key)},key:o.key+o.content,className:t(d,(r={},r[s]=o.key===y,r))},e.createElement(n.Text,{view:"title",weight:"regular",color:o.key===y?"primary-inverted":"primary"},o.content))}))),!!N&&e.createElement(n.Text,{className:m,view:"caps",weight:"medium",color:"negative"},N))};export{u as RadioGroup};
@@ -1 +1 @@
1
- export{RadioGroup}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../radio/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{RadioGroup}from"./component.js";import"react";import"classnames";import"../flex-columns/component.js";import"../radio/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import e,{useState as t}from"react";import o from"@alphakits/icons/dist/ChevronDownS";import n from"classnames";import{Collapse as l}from"../collapse/component.js";import{Divider as r}from"../divider/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{IconButton as c}from"../icon-button/component.js";import{Padding as a}from"../padding/component.js";import{Radio as p}from"../radio/component.js";import{Typography as m}from"../typography/component.js";import"../isSymbol-9701dc6b.js";import"resize-observer";import"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var s={list_head:"index-module_list_head__3yzFD",collapse_btn:"index-module_collapse_btn__3XWT_",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__FLbh7"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.collapsable,b=d.onChange,j=[];null==u||u.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(o){o.locationId===e.id&&(t.parent=e,t.childs.push(o))})),t.parent.id&&j.push(t)}));var v=t(j),y=v[0],E=v[1];return e.createElement("div",null,y.map((function(t,d){var u;return e.createElement(e.Fragment,{key:t.parent.id},e.createElement("div",{className:s.list_head},e.createElement(m.Text,{view:"title",color:"primary",weight:"medium"},t.parent.title),_&&e.createElement(c,{onClick:function(){return function(e){var t=y.map((function(t,o){return o===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),o=y.concat(t);E(o.filter((function(e,t){return o.indexOf(e)===t})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=t.collapsed,u)),icon:o})),!t.collapsed&&e.createElement(a,{padding:"16px 0 0 0"}),e.createElement(l,{expanded:!t.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},t.childs.map((function(t){return e.createElement(p,{onChange:function(){return b(t.id)},checked:h===t.id,key:t.id,label:t.title})}))))),d!==(null==y?void 0:y.length)-1&&e.createElement(r,{size:"m"}))})))};export{d as RadioGroups};
1
+ import e,{useState as t}from"react";import o from"@alphakits/icons/dist/ChevronDownS";import n from"classnames";import{Collapse as l}from"../collapse/component.js";import{Divider as r}from"../divider/component.js";import{FlexColumns as i}from"../flex-columns/component.js";import{IconButton as c}from"../icon-button/component.js";import{Padding as a}from"../padding/component.js";import{Radio as p}from"../radio/component.js";import{Typography as m}from"../typography/component.js";import"../isSymbol-7dcd25d3.js";import"resize-observer";import"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../button/component.js";import"../loader/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";var s={list_head:"index-module_list_head__3yzFD",collapse_btn:"index-module_collapse_btn__3XWT_",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__FLbh7"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.collapsable,j=d.onChange,b=[];null==u||u.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(o){o.locationId===e.id&&(t.parent=e,t.childs.push(o))})),t.parent.id&&b.push(t)}));var v=t(b),y=v[0],E=v[1];return e.createElement("div",null,y.map((function(t,d){var u;return e.createElement(e.Fragment,{key:t.parent.id},e.createElement("div",{className:s.list_head},e.createElement(m.Text,{view:"title",color:"primary",weight:"medium"},t.parent.title),_&&e.createElement(c,{onClick:function(){return function(e){var t=y.map((function(t,o){return o===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),o=y.concat(t);E(o.filter((function(e,t){return o.indexOf(e)===t})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=t.collapsed,u)),icon:o})),!t.collapsed&&e.createElement(a,{padding:"16px 0 0 0"}),e.createElement(l,{expanded:!t.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},t.childs.map((function(t){return e.createElement(p,{onChange:function(){return j(t.id)},checked:h===t.id,key:t.id,label:t.title})}))))),d!==(null==y?void 0:y.length)-1&&e.createElement(r,{size:"m"}))})))};export{d as RadioGroups};
@@ -1 +1 @@
1
- export{RadioGroups}from"./component.js";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../collapse/component.js";import"../isSymbol-9701dc6b.js";import"resize-observer";import"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../radio/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{RadioGroups}from"./component.js";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../collapse/component.js";import"../isSymbol-7dcd25d3.js";import"resize-observer";import"../link/component.js";import"tslib";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../radio/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{__rest as e,__assign as t}from"tslib";import o from"react";import n from"classnames";import{FlexColumns as r}from"../flex-columns/component.js";import{SidepanelHeader as m}from"../sidepanel-header/component.js";import{Skeleton as i}from"../skeleton/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";var d="index-module_header__HKUWA",a="index-module_loader__1YPlZ",l="index-module_input__26gct",s="index-module_footer__1B3rl",c="index-module_noSticky__3L4bH",p="index-module_content__2mtGl",u=function(u){var _,h=u.dataTestId,y=u.title,b=u.loading,f=u.headerRightAddons,g=u.subtitle,j=u.noCloser,x=u.headerBottomAddons,A=u.noStickyFooter,k=u.noStickyHeader,v=u.bottomAddons,E=u.children,N=e(u,["dataTestId","title","loading","headerRightAddons","subtitle","noCloser","headerBottomAddons","noStickyFooter","noStickyHeader","bottomAddons","children"]);return o.createElement(o.Fragment,null,b?o.createElement(r,{className:a,columns:1,gr:20},new Array(7).fill("").map((function(e,t){return o.createElement(i,{key:t,animate:!0,visible:!0,className:l})}))):o.createElement("div",null,o.createElement(m,t({title:y,className:k?void 0:d,subtitle:g,noCloser:j,dataTestId:h,rightAddons:f,bottomAddons:x},N)),o.createElement("div",{className:p},E),v&&o.createElement("div",{className:n(s,(_={},_[c]=A,_))},v)))};export{u as Sidepanel};
1
+ import{__rest as e,__assign as t}from"tslib";import o from"react";import n from"classnames";import{FlexColumns as r}from"../flex-columns/component.js";import{SidepanelHeader as m}from"../sidepanel-header/component.js";import{Skeleton as i}from"../skeleton/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";var d="index-module_header__HKUWA",l="index-module_loader__1YPlZ",a="index-module_input__26gct",s="index-module_footer__1B3rl",c="index-module_noSticky__3L4bH",p="index-module_content__2mtGl",u=function(u){var _,h=u.dataTestId,y=u.title,b=u.loading,g=u.headerRightAddons,f=u.subtitle,j=u.noCloser,x=u.headerBottomAddons,A=u.noStickyFooter,k=u.noStickyHeader,v=u.bottomAddons,E=u.children,N=e(u,["dataTestId","title","loading","headerRightAddons","subtitle","noCloser","headerBottomAddons","noStickyFooter","noStickyHeader","bottomAddons","children"]);return o.createElement(o.Fragment,null,b?o.createElement(r,{className:l,columns:1,gr:20},new Array(7).fill("").map((function(e,t){return o.createElement(i,{key:t,animate:!0,visible:!0,className:a})}))):o.createElement("div",null,o.createElement(m,t({title:y,className:k?void 0:d,subtitle:f,noCloser:j,dataTestId:h,rightAddons:g,bottomAddons:x},N)),o.createElement("div",{className:p},E),v&&o.createElement("div",{className:n(s,(_={},_[c]=A,_))},v)))};export{u as Sidepanel};
@@ -1 +1 @@
1
- export{Sidepanel}from"./component.js";import"tslib";import"react";import"classnames";import"../flex-columns/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../skeleton/component.js";
1
+ export{Sidepanel}from"./component.js";import"tslib";import"react";import"classnames";import"../flex-columns/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../skeleton/component.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{BackButton as o}from"../back-button/component.js";import{FlexColumns as r}from"../flex-columns/component.js";import{Typography as m}from"../typography/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_wrapper__2MUBI",l="index-module_heading__1vASq",n="index-module_title__3AX5z",a="index-module_bottomAddons__2aL0E",s="index-module_rightAddons__3M42h",c="index-module_noCloser__2nxnu",d=function(t){var o=t.title,i=t.subtitle;return e.createElement(r,{columns:1,gr:4,className:n},e.createElement(m.Title,{color:"primary",tag:"div",view:"small",weight:"bold"},o),i&&e.createElement(m.Text,{view:"title",weight:"regular",color:"secondary"},i))},p=function(r){var m,n=r.className,p=r.dataTestId,u=r.title,_=r.rightAddons,b=r.back,g=r.subtitle,x=r.t,h=r.bottomAddons,v=r.noCloser;return e.createElement("div",{"data-test-id":p,className:t(i,n)},(b||u||_)&&e.createElement("div",{className:l},b&&x&&e.createElement(o,{onClick:b,t:x}),!b&&u&&e.createElement(d,{title:u,subtitle:g}),_&&e.createElement("div",{className:t(s,(m={},m[c]=!!v,m))},_)),!!b&&u&&e.createElement(d,{title:u,subtitle:g}),!!h&&e.createElement("div",{className:a},h))};export{p as SidepanelHeader};
1
+ import e from"react";import t from"classnames";import{BackButton as o}from"../back-button/component.js";import{FlexColumns as r}from"../flex-columns/component.js";import{Typography as m}from"../typography/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_wrapper__2MUBI",l="index-module_heading__1vASq",n="index-module_title__3AX5z",a="index-module_bottomAddons__2aL0E",s="index-module_rightAddons__3M42h",c="index-module_noCloser__2nxnu",d=function(t){var o=t.title,i=t.subtitle;return e.createElement(r,{columns:1,gr:4,className:n},e.createElement(m.Title,{color:"primary",tag:"div",view:"small",weight:"bold"},o),i&&e.createElement(m.Text,{view:"title",weight:"regular",color:"secondary"},i))},p=function(r){var m,n=r.className,p=r.dataTestId,u=r.title,_=r.rightAddons,b=r.back,g=r.subtitle,x=r.t,h=r.bottomAddons,v=r.noCloser;return e.createElement("div",{"data-test-id":p,className:t(i,n)},(b||u||_)&&e.createElement("div",{className:l},b&&x&&e.createElement(o,{onClick:b,t:x}),!b&&u&&e.createElement(d,{title:u,subtitle:g}),_&&e.createElement("div",{className:t(s,(m={},m[c]=!!v,m))},_)),!!b&&u&&e.createElement(d,{title:u,subtitle:g}),!!h&&e.createElement("div",{className:a},h))};export{p as SidepanelHeader};
@@ -1 +1 @@
1
- export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
1
+ export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import"react";import"classnames";export{S as StepBar}from"../../step-bar-15ff0e61.js";
1
+ import"react";import"classnames";export{S as StepBar}from"../../step-bar-ee5ef319.js";
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { FC } from "react";
4
- import { SteppedProgressBarView } from "../step-bar-15ff0e61";
4
+ import { SteppedProgressBarView } from "../step-bar-ee5ef319";
5
5
  type SteppedProgressBarProps = {
6
6
  maxStep: number;
7
7
  description?: string;
@@ -1 +1 @@
1
- import t,{useState as e}from"react";import r from"classnames";import{Typography as o}from"../typography/component.js";import{s as a,S as i}from"../step-bar-15ff0e61.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n=function(e){var n=e.maxStep,p=e.description,s=e.step,m=void 0===s?0:s,c=e.view,l=e.dataTestId,d=e.className,f=n<=0?1:n,y="string"==typeof c;return t.createElement("div",{className:r(a.component,d),"data-test-id":l},t.createElement("div",{className:a.stepsContainer},Array.from(Array(f),(function(e,r){return t.createElement(i,{key:r,isDone:r<m,view:y?c:null==c?void 0:c[r]})}))),p&&t.createElement(o.Text,{color:"secondary",tag:"div",className:a.description,view:"primary-small"},p))},p=function(t){var r=t.maxStep,o=t.initialStep,a=e(void 0===o?1:o),i=a[0],n=a[1];return{step:i,setStep:n,nextStep:function(){n(i<r?i+1:r)},prevStep:function(){n(1===i?i:i-1)}}};export{n as SteppedProgressBar,p as useSteps};
1
+ import t,{useState as e}from"react";import r from"classnames";import{Typography as o}from"../typography/component.js";import{s as a,S as i}from"../step-bar-ee5ef319.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n=function(e){var n=e.maxStep,p=e.description,s=e.step,m=void 0===s?0:s,c=e.view,l=e.dataTestId,d=e.className,y=n<=0?1:n,v="string"==typeof c;return t.createElement("div",{className:r(a.component,d),"data-test-id":l},t.createElement("div",{className:a.stepsContainer},Array.from(Array(y),(function(e,r){return t.createElement(i,{key:r,isDone:r<m,view:v?c:null==c?void 0:c[r]})}))),p&&t.createElement(o.Text,{color:"secondary",tag:"div",className:a.description,view:"primary-small"},p))},p=function(t){var r=t.maxStep,o=t.initialStep,a=e(void 0===o?1:o),i=a[0],n=a[1];return{step:i,setStep:n,nextStep:function(){n(i<r?i+1:r)},prevStep:function(){n(1===i?i:i-1)}}};export{n as SteppedProgressBar,p as useSteps};
@@ -1 +1 @@
1
- import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var o="index-module_component__3E6RG",m="index-module_leftSide__27t82",r="index-module_leftAddons__1hmka",a="index-module_rightAddons__oESgN",n=function(n){var i=n.text,d=n.leftAddons,l=n.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{color:"primary",weight:"bold",tag:"span"},i),d&&e.createElement("div",{className:r},d)),l&&e.createElement("div",{className:a},l))};export{n as SuperListHeader};
1
+ import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var o="index-module_component__3E6RG",m="index-module_leftSide__27t82",r="index-module_leftAddons__1hmka",n="index-module_rightAddons__oESgN",a=function(a){var i=a.text,d=a.leftAddons,l=a.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{color:"primary",weight:"bold",tag:"span"},i),d&&e.createElement("div",{className:r},d)),l&&e.createElement("div",{className:n},l))};export{a as SuperListHeader};
@@ -1 +1 @@
1
- export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
1
+ export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Dot as o}from"../dot/component.js";import{Typography as r}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_component__2owJP",m="index-module_leftSide__dDCo_",a="index-module_content__24aXn",n="index-module_leftAddons__gqGvn",l="index-module_rightAddons__QpHoK",d=function(d){var s=d.text,c=d.rightAddons,p=d.leftAddons,v=d.color,g=void 0===v?"primary":v,_=d.disabled,x=d.className,y=d.weight,f=void 0===y?"regular":y,h=d.hint;return e.createElement("div",{className:t(i,x)},e.createElement("div",{className:m},p&&!_&&e.createElement("div",{className:n},p),_&&e.createElement("div",{className:n},e.createElement(o,{size:"sm",color:"grey"})),e.createElement("div",{className:a},e.createElement(r.Text,{weight:f,color:g,view:"title",tag:"div"},s),h&&e.createElement(r.Text,{color:"secondary",view:"caps",tag:"div"},h))),c&&e.createElement("div",{className:l},"string"==typeof c?e.createElement(r.Text,{weight:f,color:g,view:"title",tag:"div"},c):c))};export{d as SuperListItem};
1
+ import e from"react";import t from"classnames";import{Dot as o}from"../dot/component.js";import{Typography as r}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_component__2owJP",m="index-module_leftSide__dDCo_",a="index-module_content__24aXn",n="index-module_leftAddons__gqGvn",l="index-module_rightAddons__QpHoK",d=function(d){var c=d.text,s=d.rightAddons,p=d.leftAddons,v=d.color,g=void 0===v?"primary":v,_=d.disabled,x=d.className,y=d.weight,h=void 0===y?"regular":y,E=d.hint;return e.createElement("div",{className:t(i,x)},e.createElement("div",{className:m},p&&!_&&e.createElement("div",{className:n},p),_&&e.createElement("div",{className:n},e.createElement(o,{size:"sm",color:"grey"})),e.createElement("div",{className:a},e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},c),E&&e.createElement(r.Text,{color:"secondary",view:"caps",tag:"div"},E))),s&&e.createElement("div",{className:l},"string"==typeof s?e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},s):s))};export{d as SuperListItem};
@@ -1 +1 @@
1
- export{SuperListItem}from"./component.js";import"react";import"classnames";import"../dot/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
1
+ export{SuperListItem}from"./component.js";import"react";import"classnames";import"../dot/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{TableCell as t}from"./components/cell/component.js";import{Table as o}from"./table.js";import"tslib";import"react";import"classnames";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-a7d0efb0.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/component.js";import"@alphakits/icons";import"@dnd-kit/core";import"@dnd-kit/sortable";import"@dnd-kit/utilities";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"./components/table-header/index.js";import"@alphakits/icons/dist/ControllerS";import"@alphakits/icons/dist/PlusS";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"@alphakits/icons/dist/CloseS";import"@alphakits/icons/dist/SearchM";import"./hooks/use-table-data.js";import"./utils/add-query-param.js";import"query-string";import"./utils/parse-query-params.js";import"./utils/set-query-to-url.js";import"./utils/get-query-from-url.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/get-tags.js";import"./utils/prepare-rows.js";import"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-91131dbc.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var i={Cell:t,TableComponent:o};export{i as Table};
1
+ import{TableCell as t}from"./components/cell/component.js";import{Table as o}from"./table.js";import"tslib";import"react";import"classnames";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-31cce552.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/component.js";import"@alphakits/icons";import"@dnd-kit/core";import"@dnd-kit/sortable";import"@dnd-kit/utilities";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"./components/table-header/index.js";import"@alphakits/icons/dist/ControllerS";import"@alphakits/icons/dist/PlusS";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"@alphakits/icons/dist/CloseS";import"@alphakits/icons/dist/SearchM";import"./hooks/use-table-data.js";import"./utils/add-query-param.js";import"query-string";import"./utils/parse-query-params.js";import"./utils/set-query-to-url.js";import"./utils/get-query-from-url.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/get-tags.js";import"./utils/prepare-rows.js";import"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-f91d0c98.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var i={Cell:t,TableComponent:o};export{i as Table};
@@ -1 +1 @@
1
- import{__assign as e}from"tslib";import t from"react";import i from"classnames";import{Cell as o}from"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var r={cell:"index-module_cell__OF2zH",right:"index-module_right__2JR0L",children:"index-module_children__35FGz",is_div:"index-module_is_div__3ZdIA"},l=function(l){var s,n,m,a=l.dataTestID,d=l.className,c=l.children,p=l.title,h=l.subtitle,_=l.tableProps,g=l.cellProps,u=l.addon,j=l.align,v=l.width,y=l.tag,x=void 0===y?"td":y;return t.createElement(x,e({"data-test-id":a,className:i(r.cell,d,(s={},s[r.is_div]="div"===x,s)),style:{width:v}},_),c?t.createElement("div",{className:i(r.children,(n={},n[r.center]="center"===j,n[r.right]="right"===j,n))},c):t.createElement(o.Base,e({title:void 0===p?"-":p,subtitle:h,className:i((m={},m[r.center]="center"===j,m[r.right]="right"===j,m)),addon:u},g)))};export{l as TableCell};
1
+ import{__assign as e}from"tslib";import t from"react";import i from"classnames";import{Cell as o}from"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var r={cell:"index-module_cell__OF2zH",right:"index-module_right__2JR0L",children:"index-module_children__35FGz",is_div:"index-module_is_div__3ZdIA"},l=function(l){var s,n,m,c=l.dataTestID,a=l.className,d=l.children,p=l.title,h=l.subtitle,_=l.tableProps,g=l.cellProps,u=l.addon,j=l.align,v=l.width,y=l.tag,x=void 0===y?"td":y;return t.createElement(x,e({"data-test-id":c,className:i(r.cell,a,(s={},s[r.is_div]="div"===x,s)),style:{width:v}},_),d?t.createElement("div",{className:i(r.children,(n={},n[r.center]="center"===j,n[r.right]="right"===j,n))},d):t.createElement(o.Base,e({title:void 0===p?"-":p,subtitle:h,className:i((m={},m[r.center]="center"===j,m[r.right]="right"===j,m)),addon:u},g)))};export{l as TableCell};
@@ -1 +1 @@
1
- export{TableCell}from"./component.js";import"tslib";import"react";import"classnames";import"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";
1
+ export{TableCell}from"./component.js";import"tslib";import"react";import"classnames";import"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";
@@ -1 +1 @@
1
- import e from"react";import r from"@alphakits/icons/dist/ChevronForwardS";import t from"classnames";import{Typography as a}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o={header_row:"index-module_header_row__1Coio",cell:"index-module_cell__13GkL",clickable:"index-module_clickable__1StIl",head_wrapper:"index-module_head_wrapper__5RA17",arrow:"index-module_arrow__28ZHq",accent:"index-module_accent__1mJqP",DESC:"index-module_DESC__3wJvX",ASC:"index-module_ASC__ugVrB"};function l(l){var c=l.columns,n=l.sort,m=l.order,i=l.addParam,s=l.withDrag;return e.createElement("thead",null,e.createElement("tr",{className:o.header_row},s&&e.createElement("th",{className:o.cell}," "),c.map((function(l){var c,s,d=l.accessor&&n===l.accessor,p=d&&"ASC"===m?"DESC":"ASC";return e.createElement("th",{key:String(l.accessor||l.header),className:t(o.cell,(c={},c[o.clickable]=l.sort,c)),align:l.align,style:{width:l.width||"auto"},onClick:l.sort?function(){return i({order:p,sort:l.accessor})}:void 0},e.createElement(a.Text,{className:o.head_wrapper,view:"caps",tag:"div",color:"secondary",weight:"medium"},l.header,l.sort&&e.createElement("span",{className:t(o.arrow,o[p],(s={},s[o.accent]=d,s))},e.createElement(r,null))))}))))}export{l as Cells};
1
+ import e from"react";import r from"@alphakits/icons/dist/ChevronForwardS";import t from"classnames";import{Typography as a}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o={header_row:"index-module_header_row__1Coio",cell:"index-module_cell__13GkL",clickable:"index-module_clickable__1StIl",head_wrapper:"index-module_head_wrapper__5RA17",arrow:"index-module_arrow__28ZHq",accent:"index-module_accent__1mJqP",DESC:"index-module_DESC__3wJvX",ASC:"index-module_ASC__ugVrB"};function c(c){var l=c.columns,n=c.sort,m=c.order,i=c.addParam,s=c.withDrag;return e.createElement("thead",null,e.createElement("tr",{className:o.header_row},s&&e.createElement("th",{className:o.cell}," "),l.map((function(c){var l,s,d=c.accessor&&n===c.accessor,p=d&&"ASC"===m?"DESC":"ASC";return e.createElement("th",{key:String(c.accessor||c.header),className:t(o.cell,(l={},l[o.clickable]=c.sort,l)),align:c.align,style:{width:c.width||"auto"},onClick:c.sort?function(){return i({order:p,sort:c.accessor})}:void 0},e.createElement(a.Text,{className:o.head_wrapper,view:"caps",tag:"div",color:"secondary",weight:"medium"},c.header,c.sort&&e.createElement("span",{className:t(o.arrow,o[p],(s={},s[o.accent]=d,s))},e.createElement(r,null))))}))))}export{c as Cells};
@@ -1 +1 @@
1
- import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__428Kf",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{color:"primary",view:"title"},o(p)("emptyList")))};export{m as EmptyList};
1
+ import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__428Kf",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{color:"primary",view:"title"},o(p)("emptyList")))};export{m as EmptyList};
@@ -1 +1 @@
1
- import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__eV-Yg",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{color:"primary",view:"title"},o(p)("error")))};export{m as Error};
1
+ import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__eV-Yg",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{color:"primary",view:"title"},o(p)("error")))};export{m as Error};
@@ -1 +1 @@
1
- import t,{memo as e}from"react";import o from"classnames";import{TableCell as r}from"../cell/component.js";import"tslib";import"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var n={td:"index-module_td__29rtu",tr:"index-module_tr__1tdbN",aniVertical:"index-module_aniVertical__1yHHp"},m=e((function(e){var m=e.columnsLength;return t.createElement(t.Fragment,null,new Array(5).fill(1).map((function(){return t.createElement("tr",{className:o(n.row,n.tr)},new Array(m).fill(1).map((function(){return t.createElement(r,null,t.createElement("div",{className:n.td,style:{width:Math.floor(51*Math.random())+50+"%"}}))})))})))}));export{m as Loading};
1
+ import t,{memo as e}from"react";import o from"classnames";import{TableCell as r}from"../cell/component.js";import"tslib";import"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var n={td:"index-module_td__29rtu",tr:"index-module_tr__1tdbN",aniVertical:"index-module_aniVertical__1yHHp"},m=e((function(e){var m=e.columnsLength;return t.createElement(t.Fragment,null,new Array(5).fill(1).map((function(){return t.createElement("tr",{className:o(n.row,n.tr)},new Array(m).fill(1).map((function(){return t.createElement(r,null,t.createElement("div",{className:n.td,style:{width:Math.floor(51*Math.random())+50+"%"}}))})))})))}));export{m as Loading};
@@ -1 +1 @@
1
- import e from"react";import t from"@alphakits/icons/dist/ChevronForwardS";import n from"classnames";import{Button as o}from"../../../button/component.js";import{Typography as a}from"../../../typography/component.js";import{translate as r}from"../../languages/index.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-a7d0efb0.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_pagination_wrap__1Pf2T",l="index-module_pagination__3z3iJ",m="index-module_pages_info__3YNLY",s="index-module_prev_btn__CQ4VT",c="index-module_disabled_btn__1_hCe",d="index-module_pagination_btn__1naj1",p="index-module_btn__4QUl7",u="index-module_active__jRfaP",_="index-module_select__hGK1a";var g=function(g){var f,h,v=g.pagesCount,x=g.currentPage,E=g.recordsPerPage,y=void 0===E?30:E,b=g.total,j=g.language,w=g.addParam,N=function(e,t){for(var n=e-2,o=e+2+1,a=[],r=[],i=0,l=1;l<=t;l++)(1===l||l===t||l>=n&&l<o)&&a.push(l);return a.forEach((function(e){i&&(e-i==2?r.push(i+1):e-i!=1&&r.push("...")),r.push(e),i=e})),r}(x,v),C=1===x,k=x===v;return e.createElement("div",{className:i},e.createElement("div",{className:m},e.createElement(a.Text,{view:"title",weight:"medium",color:"secondary"},r(j)("totalCount")),e.createElement(a.Text,{view:"title",weight:"medium",color:"primary"},b)),N.length>1&&e.createElement("div",{className:l},e.createElement(o,{className:n(s,p,(f={},f[c]=C,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return w({page:x-1})},disabled:C}),N.map((function(t,a){var r;return Number.isFinite(t)?e.createElement(o,{className:n(d,(r={},r[u]=t===x,r)),size:"xs",view:"ghost",key:t,onClick:function(){return w({page:t})}},t):e.createElement(o,{key:t+a,className:n(d),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(p,(h={},h[c]=k,h)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){w({page:x+1})},disabled:k})),e.createElement("select",{value:y,className:_,onChange:function(e){w({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},r(j)("resultsOnPage")+"    "+t+"   ")}))))};export{g as Pagination};
1
+ import e from"react";import t from"@alphakits/icons/dist/ChevronForwardS";import n from"classnames";import{Button as o}from"../../../button/component.js";import{Typography as a}from"../../../typography/component.js";import{translate as r}from"../../languages/index.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-31cce552.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_pagination_wrap__1Pf2T",l="index-module_pagination__3z3iJ",m="index-module_pages_info__3YNLY",s="index-module_prev_btn__CQ4VT",c="index-module_disabled_btn__1_hCe",p="index-module_pagination_btn__1naj1",d="index-module_btn__4QUl7",u="index-module_active__jRfaP",_="index-module_select__hGK1a";var g=function(g){var f,h,v=g.pagesCount,x=g.currentPage,E=g.recordsPerPage,y=void 0===E?30:E,b=g.total,j=g.language,w=g.addParam,N=function(e,t){for(var n=e-2,o=e+2+1,a=[],r=[],i=0,l=1;l<=t;l++)(1===l||l===t||l>=n&&l<o)&&a.push(l);return a.forEach((function(e){i&&(e-i==2?r.push(i+1):e-i!=1&&r.push("...")),r.push(e),i=e})),r}(x,v),C=1===x,k=x===v;return e.createElement("div",{className:i},e.createElement("div",{className:m},e.createElement(a.Text,{view:"title",weight:"medium",color:"secondary"},r(j)("totalCount")),e.createElement(a.Text,{view:"title",weight:"medium",color:"primary"},b)),N.length>1&&e.createElement("div",{className:l},e.createElement(o,{className:n(s,d,(f={},f[c]=C,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return w({page:x-1})},disabled:C}),N.map((function(t,a){var r;return Number.isFinite(t)?e.createElement(o,{className:n(p,(r={},r[u]=t===x,r)),size:"xs",view:"ghost",key:t,onClick:function(){return w({page:t})}},t):e.createElement(o,{key:t+a,className:n(p),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(d,(h={},h[c]=k,h)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){w({page:x+1})},disabled:k})),e.createElement("select",{value:y,className:_,onChange:function(e){w({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},r(j)("resultsOnPage")+"    "+t+"   ")}))))};export{g as Pagination};