@alphakits/ui 1.30.5 → 1.30.6

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 (135) 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-80bd0aa4.js → capitalize-85e8cb95.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.js +1 -1
  69. package/dist/menu/components/content-header/index.js +1 -1
  70. package/dist/menu/components/index.js +1 -1
  71. package/dist/menu/components/menu-avatar/index.js +1 -1
  72. package/dist/menu/components/menu-button/index.js +1 -1
  73. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  74. package/dist/menu/components/user-button/index.js +1 -1
  75. package/dist/menu/index.js +1 -1
  76. package/dist/message/component.js +1 -1
  77. package/dist/message/index.js +1 -1
  78. package/dist/page-with-controls/component.js +1 -1
  79. package/dist/page-with-controls/index.js +1 -1
  80. package/dist/picker-button/common/index.js +1 -1
  81. package/dist/picker-button/common/labeled-button/index.js +1 -1
  82. package/dist/picker-button/index.js +1 -1
  83. package/dist/progress-bar/component.js +1 -1
  84. package/dist/progress-bar/index.js +1 -1
  85. package/dist/progress-index/component.js +1 -1
  86. package/dist/progress-index/index.js +1 -1
  87. package/dist/radio-group/component.js +1 -1
  88. package/dist/radio-group/index.js +1 -1
  89. package/dist/radio-groups/component.js +1 -1
  90. package/dist/radio-groups/index.js +1 -1
  91. package/dist/sidepanel/component.js +1 -1
  92. package/dist/sidepanel/index.js +1 -1
  93. package/dist/sidepanel-header/component.js +1 -1
  94. package/dist/sidepanel-header/index.js +1 -1
  95. package/dist/stepped-progress-bar/components/step-bar.js +1 -1
  96. package/dist/stepped-progress-bar/index.d.ts +1 -1
  97. package/dist/stepped-progress-bar/index.js +1 -1
  98. package/dist/super-list-header/component.js +1 -1
  99. package/dist/super-list-header/index.js +1 -1
  100. package/dist/super-list-item/component.js +1 -1
  101. package/dist/super-list-item/index.js +1 -1
  102. package/dist/table/component.js +1 -1
  103. package/dist/table/components/cell/component.js +1 -1
  104. package/dist/table/components/cell/index.js +1 -1
  105. package/dist/table/components/cells/index.js +1 -1
  106. package/dist/table/components/empty-list/index.js +1 -1
  107. package/dist/table/components/error/index.js +1 -1
  108. package/dist/table/components/loading/index.js +1 -1
  109. package/dist/table/components/pagination/index.js +1 -1
  110. package/dist/table/index.js +1 -1
  111. package/dist/table/table.js +1 -1
  112. package/dist/table/utils/prepare-rows.js +1 -1
  113. package/dist/table-status/component.js +1 -1
  114. package/dist/table-status/index.js +1 -1
  115. package/dist/tag/component.js +1 -1
  116. package/dist/tag/index.js +1 -1
  117. package/dist/tags-list/component.js +1 -1
  118. package/dist/tags-list/index.js +1 -1
  119. package/dist/typography/component.js +1 -1
  120. package/dist/typography/index.js +1 -1
  121. package/dist/typography/text/component.d.ts +1 -0
  122. package/dist/typography/text/component.js +1 -1
  123. package/dist/typography/text/index.js +1 -1
  124. package/dist/typography/title/component.js +1 -1
  125. package/dist/typography/title/index.js +1 -1
  126. package/package.json +1 -1
  127. /package/dist/{colors.module-387a768a.js → colors.module-2879095c.js} +0 -0
  128. /package/dist/{contact-block-8508f229.d.ts → contact-block-b0824edb.d.ts} +0 -0
  129. /package/dist/{contact-block-8508f229.js → contact-block-b0824edb.js} +0 -0
  130. /package/dist/{gutters.module-b2b9e421.js → gutters.module-df460c6f.js} +0 -0
  131. /package/dist/{isSymbol-0d2445c0.js → isSymbol-a9120de3.js} +0 -0
  132. /package/dist/{step-bar-4a72c260.d.ts → step-bar-a1f858c1.d.ts} +0 -0
  133. /package/dist/{step-bar-4a72c260.js → step-bar-a1f858c1.js} +0 -0
  134. /package/dist/{use-image-render-component-c6a9df5a.d.ts → use-image-render-component-28aedca5.d.ts} +0 -0
  135. /package/dist/{use-image-render-component-c6a9df5a.js → use-image-render-component-28aedca5.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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__fXRQg"},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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__fXRQg"},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 +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-387a768a.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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import t from"react";import o from"@alphakits/icons/dist/ActionCopyM";import e 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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__BUo57",start:"index-module_start__G65gS",between:"index-module_between__yyp2w",rightAddons:"index-module_rightAddons__KS2QD",content:"index-module_content__Q7Zy2",copy:"index-module_copy__msKVu"},s=function(s){var a=s.label,p=s.value,c=s.view,l=void 0===c?"between":c,d=s.rightAddons,u=s.withCopyButton,h=s.color,y=void 0===h?"primary":h;return t.createElement("div",{className:e(m.item,m[l])},t.createElement(n.Text,{view:"caps",color:"secondary",weight:"medium"},a,p&&":"),t.createElement("div",{className:m.content},p&&t.createElement(n.Text,{view:"caps",className:m.value,color:y,weight:"medium"},p,u&&t.createElement(i,{icon:o,className:m.copy,size:"s",onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(p).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 o from"@alphakits/icons/dist/ActionCopyM";import e 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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";var m={item:"index-module_item__BUo57",start:"index-module_start__G65gS",between:"index-module_between__yyp2w",rightAddons:"index-module_rightAddons__KS2QD",content:"index-module_content__Q7Zy2",copy:"index-module_copy__msKVu"},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,y=void 0===h?"primary":h;return t.createElement("div",{className:e(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:y,weight:"medium"},a,u&&t.createElement(i,{icon:o,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-387a768a.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-2879095c.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-387a768a.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n={component:"index-module_component__1zepl",accent:"index-module_accent__37BTV",attention:"index-module_attention__zzR-C",negative:"index-module_negative__SXrwC"},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
+ import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-2879095c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n={component:"index-module_component__1zepl",accent:"index-module_accent__37BTV",attention:"index-module_attention__zzR-C",negative:"index-module_negative__SXrwC"},i=function(i){var m=i.className,r=i.dataTestId,a=i.view,p=void 0===a?"accent":a,c=i.text;return t.createElement("div",{className:e(n.component,m,n[p]),"data-test-id":r},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-387a768a.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-2879095c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import t from"react";import e from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as n}from"./components/content-header/index.js";import{MenuAvatar as i}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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-c6a9df5a.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"react-virtual";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"intersection-observer";var p="index-module_layout_wrapper__amEhE",c="index-module_left_menu__N5dgM",a="index-module_menu_static__FNEjo",l="index-module_hidden_menu_opened__X0hFE",d="index-module_content_header__WlsJj",u="index-module_content_wrapper__6MsO6",j="index-module_content_offseted__wo5Xl",_="index-module_calendar_view__PeL0k",h=function(h){var k,f,x=h.pathname,g=h.children,v=h.routes,E=h.showBackButton,b=h.userName,w=h.userImage,y=h.userDialogOptions,C=h.profileTitle,M=h.profileImage,N=h.Link,S=h.profileOnClick,L=h.navigate,P=h.t,T=o(),F=T.staticMenu,I=T.setStaticMenu,O=T.showMenu,B=T.ref,D=F||O,W="/"+x.split("/").slice(-1)[0],X=e(c,((k={})[a]=F,k[l]=O,k)),z=e(u,((f={})[j]=F,f[_]=x.startsWith("/app/calendar"),f));return t.createElement("div",{className:e(p)},t.createElement("div",{ref:B,className:X},t.createElement(i,{title:C,showTitle:D,image:M,onClick:S}),E&&t.createElement(r,{showTitle:D,onClick:function(){return L("/app/calendar")}}),t.createElement(s,{routes:v,showLabels:D,currentPath:W,Link:N,t:P})),t.createElement("div",{className:z},t.createElement("div",{className:d},t.createElement(n,{onClick:function(){return I(!F)},title:P("menu."+W)}),t.createElement(m,{photo:w,fullName:b,options:y})),g))};export{h as Menu};
1
+ import t from"react";import e from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as n}from"./components/content-header/index.js";import{MenuAvatar as i}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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-28aedca5.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"react-virtual";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"intersection-observer";var p="index-module_layout_wrapper__amEhE",c="index-module_left_menu__N5dgM",a="index-module_menu_static__FNEjo",l="index-module_hidden_menu_opened__X0hFE",d="index-module_content_header__WlsJj",u="index-module_content_wrapper__6MsO6",j="index-module_content_offseted__wo5Xl",_="index-module_calendar_view__PeL0k",h=function(h){var k,f,x=h.pathname,g=h.children,v=h.routes,E=h.showBackButton,b=h.userName,w=h.userImage,y=h.userDialogOptions,C=h.profileTitle,M=h.profileImage,N=h.Link,S=h.profileOnClick,L=h.navigate,P=h.t,T=o(),F=T.staticMenu,I=T.setStaticMenu,O=T.showMenu,B=T.ref,D=F||O,W="/"+x.split("/").slice(-1)[0],X=e(c,((k={})[a]=F,k[l]=O,k)),z=e(u,((f={})[j]=F,f[_]=x.startsWith("/app/calendar"),f));return t.createElement("div",{className:e(p)},t.createElement("div",{ref:B,className:X},t.createElement(i,{title:C,showTitle:D,image:M,onClick:S}),E&&t.createElement(r,{showTitle:D,onClick:function(){return L("/app/calendar")}}),t.createElement(s,{routes:v,showLabels:D,currentPath:W,Link:N,t:P})),t.createElement("div",{className:z},t.createElement("div",{className:d},t.createElement(n,{onClick:function(){return I(!F)},title:P("menu."+W)}),t.createElement(m,{photo:w,fullName:b,options:y})),g))};export{h 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-387a768a.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_open_button__a4IKw",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-2879095c.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_open_button__a4IKw",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-387a768a.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-c6a9df5a.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"react-virtual";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"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-2879095c.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-28aedca5.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"react-virtual";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"intersection-observer";
@@ -1 +1 @@
1
- import t from"react";import o from"classnames";import{Avatar as e}from"../../../avatar/component.js";import{Typography as m}from"../../../typography/component.js";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-c6a9df5a.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-387a768a.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_menu_header__CELkb",r="index-module_text__RyE4x",p="index-module_hidden_text__94pZC",n=function(n){var s,a=n.showTitle,c=n.title,l=n.image,d=n.onClick;return t.createElement("div",{className:i},t.createElement(e,{onClick:function(){d&&d()},src:l,text:c}),t.createElement(m.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 m}from"../../../typography/component.js";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-28aedca5.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-2879095c.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_menu_header__CELkb",r="index-module_text__RyE4x",p="index-module_hidden_text__94pZC",n=function(n){var s,a=n.showTitle,c=n.title,l=n.image,d=n.onClick;return t.createElement("div",{className:i},t.createElement(e,{onClick:function(){d&&d()},src:l,text:c}),t.createElement(m.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-387a768a.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var m="index-module_menu_button__I-v-u",i="index-module_text__L8D-Q",r="index-module_active__1v-Nx",n="index-module_leftAddons__eaiZB",d="index-module_rightAddons__RCmVm",a="index-module_isHidden__MDpf0",l=function(l){var s,p=l.href,c=l.children,_=l.active,u=l.leftAddons,x=l.rightAddons,h=l.showLabels,v=l.Link;return e.createElement(v,{className:t(m,(s={},s[r]=_,s[a]=!h,s)),to:p},u&&e.createElement("div",{className:n},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:i},c),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-2879095c.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var m="index-module_menu_button__I-v-u",i="index-module_text__L8D-Q",r="index-module_active__1v-Nx",n="index-module_leftAddons__eaiZB",d="index-module_rightAddons__RCmVm",a="index-module_isHidden__MDpf0",l=function(l){var s,c=l.href,p=l.children,_=l.active,u=l.leftAddons,x=l.rightAddons,h=l.showLabels,v=l.Link;return e.createElement(v,{className:t(m,(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:i},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-387a768a.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o="index-module_component__HYQZU",r=function(r){var n=r.routes,p=r.showLabels,a=r.currentPath,i=r.t,m=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===a,key:o.path,href:o.path,Link:m},i("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-2879095c.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o="index-module_component__HYQZU",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 +1 @@
1
- import{__assign as o}from"tslib";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as r}from"../../../button/component.js";import{Select as i}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"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-387a768a.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-c6a9df5a.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"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/components/native-select/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.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";var s="index-module_option_wrap__H32lk",p="index-module_field_avatar__qjMv6",n=t.memo((function(n){var m=n.options,c=n.fullName,a=n.photo;return t.createElement("div",{className:p},t.createElement(i,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(i){var s=i.innerProps;return t.createElement(r,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 r}from"../../../button/component.js";import{Select as i}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"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-2879095c.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-28aedca5.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"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/components/native-select/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.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";var s="index-module_option_wrap__H32lk",p="index-module_field_avatar__qjMv6",n=t.memo((function(n){var m=n.options,c=n.fullName,a=n.photo;return t.createElement("div",{className:p},t.createElement(i,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(i){var s=i.innerProps;return t.createElement(r,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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-c6a9df5a.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"react-virtual";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"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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-28aedca5.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"react-virtual";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"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 a}from"../padding/component.js";import{Typography as n}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-c6a9df5a.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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-images-viewer";var s="index-module_topRow__IFW6P",l="index-module_answer__tTLUV",p="index-module_leftSide__vZvXK",c="index-module_title__9s63W",d="index-module_rightAddons__fhvSp",u="index-module_text__U4-9Q",g=function(g){var h=g.className,v=g.dataTestId,x=g.title,f=g.date,j=g.rightAddons,_=g.answer,y=g.text,w=g.image,E=g.photos,N=void 0===E?[]:E,T=g.withImage,k=void 0===T||T,S=t(!1),b=S[0],F=S[1],I=t(0),P=I[0],z=I[1];return e.createElement("div",{"data-test-id":v,className:h},e.createElement("div",{className:s},e.createElement("div",{className:p},k&&e.createElement(r,{src:w,size:"s",text:x,view:"circle"}),e.createElement(n.Text,{color:"primary",className:c,view:"title",weight:"bold"},x),f&&e.createElement(n.Text,{view:"title",color:"secondary",weight:"regular"},f)),j&&e.createElement("div",{className:d},j)),e.createElement("div",{className:u},e.createElement(n.Text,{view:"primary-medium",color:"primary",weight:"medium"},y),!!_&&e.createElement(n.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},_),!!N.length&&e.createElement(e.Fragment,null,e.createElement(a,{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),F(!0)}},e.createElement(r,{src:t,size:"xl",view:"default"}))}))),e.createElement(m,{photos:N.map((function(e){return{src:e}})),initialSlide:P||0,open:b,onClose:function(){return F(!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-28aedca5.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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";import"react-images-viewer";var s="index-module_topRow__IFW6P",l="index-module_answer__tTLUV",p="index-module_leftSide__vZvXK",c="index-module_title__9s63W",d="index-module_rightAddons__fhvSp",u="index-module_text__U4-9Q",g=function(g){var h=g.className,v=g.dataTestId,x=g.title,f=g.date,j=g.rightAddons,_=g.answer,y=g.text,w=g.image,E=g.photos,N=void 0===E?[]:E,T=g.withImage,k=void 0===T||T,S=t(!1),b=S[0],F=S[1],I=t(0),P=I[0],z=I[1];return e.createElement("div",{"data-test-id":v,className:h},e.createElement("div",{className:s},e.createElement("div",{className:p},k&&e.createElement(r,{src:w,size:"s",text:x,view:"circle"}),e.createElement(a.Text,{color:"primary",className:c,view:"title",weight:"bold"},x),f&&e.createElement(a.Text,{view:"title",color:"secondary",weight:"regular"},f)),j&&e.createElement("div",{className:d},j)),e.createElement("div",{className:u},e.createElement(a.Text,{view:"primary-medium",color:"primary",weight:"medium"},y),!!_&&e.createElement(a.Text,{className:l,view:"primary-small",color:"secondary",weight:"medium"},_),!!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),F(!0)}},e.createElement(r,{src:t,size:"xl",view:"default"}))}))),e.createElement(m,{photos:N.map((function(e){return{src:e}})),initialSlide:P||0,open:b,onClose:function(){return F(!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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-c6a9df5a.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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-28aedca5.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-b2b9e421.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-387a768a.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-df460c6f.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";var p=function(p){var s=p.children,c=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},c.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-b2b9e421.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-387a768a.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-df460c6f.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-2879095c.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-387a768a.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-2879095c.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-387a768a.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_wrapper__Y-b0g",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-2879095c.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_wrapper__Y-b0g",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 +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"react-virtual";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"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-387a768a.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"react-virtual";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"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-2879095c.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-387a768a.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var r={progress_bar:"index-module_progress_bar__IyWaN",block:"index-module_block__hDRE1",inner:"index-module_inner__L-nUW",indicator:"index-module_indicator__F5x4P",multicolor:"index-module_multicolor__m9mPD",_30:"index-module__30__6cywX",_60:"index-module__60__jXfAf",negative:"index-module_negative__8XFWO",positive:"index-module_positive__ikFFz",accent:"index-module_accent__zSev5",secondary:"index-module_secondary__UTeRl",warning:"index-module_warning__vYomw"},t=function(t){var m,n,l=t.value,_=void 0===l?0:l,a=t.block,d=t.renderValue,c=void 0===d||d,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,(m={},m[r.block]=a,m))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(n={},n[r._30]=x>=30&&"multicolor"===v,n[r._60]=x>=60&&"multicolor"===v,n))}),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-2879095c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var r={progress_bar:"index-module_progress_bar__IyWaN",block:"index-module_block__hDRE1",inner:"index-module_inner__L-nUW",indicator:"index-module_indicator__F5x4P",multicolor:"index-module_multicolor__m9mPD",_30:"index-module__30__6cywX",_60:"index-module__60__jXfAf",negative:"index-module_negative__8XFWO",positive:"index-module_positive__ikFFz",accent:"index-module_accent__zSev5",secondary:"index-module_secondary__UTeRl",warning:"index-module_warning__vYomw"},t=function(t){var m,n,l=t.value,_=void 0===l?0:l,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,(m={},m[r.block]=d,m))},e.createElement("div",{style:{width:x+"%"},className:o(r.indicator,r[v],(n={},n[r._30]=x>=30&&"multicolor"===v,n[r._60]=x>=60&&"multicolor"===v,n))}),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-387a768a.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-2879095c.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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_progress_index__ocqgT",a="index-module_text__xbaIJ",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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";var m="index-module_progress_index__ocqgT",a="index-module_text__xbaIJ",l=function(l){var n=l.onClick,p=l.value,c=l.title,s=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"},c),s&&o.createElement(i.Text,{tag:"div",view:"caps",color:"secondary",weight:"medium"},s)),o.createElement(r,t({value:p},d)))};export{l 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-387a768a.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-2879095c.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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__OqiF5",a="index-module_subtitle__bsdlx",m="index-module_error__UDYSU",l="index-module_buttons_wrap__6IipS",c="index-module_buttons_wrap_error__kYt2M",d="index-module_button__jxsYA",s="index-module_selected__ctGlJ",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,Y=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:Y(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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";var i="index-module_text__OqiF5",m="index-module_subtitle__bsdlx",a="index-module_error__UDYSU",l="index-module_buttons_wrap__6IipS",c="index-module_buttons_wrap_error__kYt2M",d="index-module_button__jxsYA",s="index-module_selected__ctGlJ",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,Y=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:m,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:Y(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:a,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-387a768a.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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import e,{useState as o}from"react";import t 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 a}from"../icon-button/component.js";import{Padding as c}from"../padding/component.js";import{Radio as p}from"../radio/component.js";import{Typography as m}from"../typography/component.js";import"../isSymbol-0d2445c0.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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";var s={list_head:"index-module_list_head__jX5KV",collapse_btn:"index-module_collapse_btn__K-UQd",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__won-f"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.collapsable,j=d.onChange,v=[];null==u||u.forEach((function(e){var o={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(t){t.locationId===e.id&&(o.parent=e,o.childs.push(t))})),o.parent.id&&v.push(o)}));var b=o(v),E=b[0],g=b[1];return e.createElement("div",null,E.map((function(o,d){var u;return e.createElement(e.Fragment,{key:o.parent.id},e.createElement("div",{className:s.list_head},e.createElement(m.Text,{view:"title",color:"primary",weight:"medium"},o.parent.title),_&&e.createElement(a,{onClick:function(){return function(e){var o=E.map((function(o,t){return t===e&&(o.collapsed?o.collapsed=!1:o.collapsed=!0),o})),t=E.concat(o);g(t.filter((function(e,o){return t.indexOf(e)===o})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=o.collapsed,u)),icon:t})),!o.collapsed&&e.createElement(c,{padding:"16px 0 0 0"}),e.createElement(l,{expanded:!o.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},o.childs.map((function(o){return e.createElement(p,{onChange:function(){return j(o.id)},checked:h===o.id,key:o.id,label:o.title})}))))),d!==(null==E?void 0:E.length)-1&&e.createElement(r,{size:"m"}))})))};export{d as RadioGroups};
1
+ import e,{useState as o}from"react";import t 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-a9120de3.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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";var s={list_head:"index-module_list_head__jX5KV",collapse_btn:"index-module_collapse_btn__K-UQd",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__won-f"},d=function(d){var u=d.parents,f=d.childs,h=d.selected,_=d.collapsable,j=d.onChange,v=[];null==u||u.forEach((function(e){var o={parent:{},childs:[],collapsed:!1};null==f||f.forEach((function(t){t.locationId===e.id&&(o.parent=e,o.childs.push(t))})),o.parent.id&&v.push(o)}));var b=o(v),E=b[0],g=b[1];return e.createElement("div",null,E.map((function(o,d){var u;return e.createElement(e.Fragment,{key:o.parent.id},e.createElement("div",{className:s.list_head},e.createElement(m.Text,{view:"title",color:"primary",weight:"medium"},o.parent.title),_&&e.createElement(c,{onClick:function(){return function(e){var o=E.map((function(o,t){return t===e&&(o.collapsed?o.collapsed=!1:o.collapsed=!0),o})),t=E.concat(o);g(t.filter((function(e,o){return t.indexOf(e)===o})))}(d)},size:"s",className:n(s.collapse_btn,(u={},u[s.collapse_btn_collapsed]=o.collapsed,u)),icon:t})),!o.collapsed&&e.createElement(a,{padding:"16px 0 0 0"}),e.createElement(l,{expanded:!o.collapsed},e.createElement("div",{className:s.content},e.createElement(i,{columns:1},o.childs.map((function(o){return e.createElement(p,{onChange:function(){return j(o.id)},checked:h===o.id,key:o.id,label:o.title})}))))),d!==(null==E?void 0:E.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-0d2445c0.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-387a768a.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-a9120de3.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-2879095c.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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";var a="index-module_header__mPZ5T",d="index-module_loader__AwSf2",l="index-module_input__4qiE9",s="index-module_footer__gMIpz",c="index-module_noSticky__LgClY",p="index-module_content__3wIEH",u=function(u){var _,h=u.dataTestId,y=u.title,g=u.loading,f=u.headerRightAddons,b=u.subtitle,j=u.noCloser,x=u.headerBottomAddons,A=u.noStickyFooter,k=u.noStickyHeader,E=u.bottomAddons,v=u.children,S=e(u,["dataTestId","title","loading","headerRightAddons","subtitle","noCloser","headerBottomAddons","noStickyFooter","noStickyHeader","bottomAddons","children"]);return o.createElement(o.Fragment,null,g?o.createElement(r,{className:d,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:a,subtitle:b,noCloser:j,dataTestId:h,rightAddons:f,bottomAddons:x},S)),o.createElement("div",{className:p},v),E&&o.createElement("div",{className:n(s,(_={},_[c]=A,_))},E)))};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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";var d="index-module_header__mPZ5T",a="index-module_loader__AwSf2",l="index-module_input__4qiE9",s="index-module_footer__gMIpz",c="index-module_noSticky__LgClY",p="index-module_content__3wIEH",u=function(u){var _,h=u.dataTestId,y=u.title,g=u.loading,f=u.headerRightAddons,b=u.subtitle,j=u.noCloser,x=u.headerBottomAddons,A=u.noStickyFooter,k=u.noStickyHeader,E=u.bottomAddons,v=u.children,S=e(u,["dataTestId","title","loading","headerRightAddons","subtitle","noCloser","headerBottomAddons","noStickyFooter","noStickyHeader","bottomAddons","children"]);return o.createElement(o.Fragment,null,g?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:b,noCloser:j,dataTestId:h,rightAddons:f,bottomAddons:x},S)),o.createElement("div",{className:p},v),E&&o.createElement("div",{className:n(s,(_={},_[c]=A,_))},E)))};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-387a768a.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-2879095c.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-387a768a.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var a="index-module_wrapper__QxqDy",i="index-module_heading__XGDyC",l="index-module_title__jwxcv",n="index-module_bottomAddons__3yzd0",s="index-module_rightAddons__aZFaJ",c="index-module_noCloser__O7u0p",d=function(t){var o=t.title,a=t.subtitle;return e.createElement(r,{columns:1,gr:4,className:l},e.createElement(m.Title,{color:"primary",tag:"div",view:"small",weight:"bold"},o),a&&e.createElement(m.Text,{view:"title",weight:"regular",color:"secondary"},a))},p=function(r){var m,l=r.className,p=r.dataTestId,u=r.title,_=r.rightAddons,x=r.back,y=r.subtitle,b=r.t,g=r.bottomAddons,v=r.noCloser;return e.createElement("div",{"data-test-id":p,className:t(a,l)},(x||u||_)&&e.createElement("div",{className:i},x&&b&&e.createElement(o,{onClick:x,t:b}),!x&&u&&e.createElement(d,{title:u,subtitle:y}),_&&e.createElement("div",{className:t(s,(m={},m[c]=!!v,m))},_)),!!x&&u&&e.createElement(d,{title:u,subtitle:y}),!!g&&e.createElement("div",{className:n},g))};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-2879095c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_wrapper__QxqDy",l="index-module_heading__XGDyC",a="index-module_title__jwxcv",n="index-module_bottomAddons__3yzd0",s="index-module_rightAddons__aZFaJ",c="index-module_noCloser__O7u0p",d=function(t){var o=t.title,i=t.subtitle;return e.createElement(r,{columns:1,gr:4,className:a},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,a=r.className,p=r.dataTestId,u=r.title,_=r.rightAddons,x=r.back,y=r.subtitle,b=r.t,g=r.bottomAddons,v=r.noCloser;return e.createElement("div",{"data-test-id":p,className:t(i,a)},(x||u||_)&&e.createElement("div",{className:l},x&&b&&e.createElement(o,{onClick:x,t:b}),!x&&u&&e.createElement(d,{title:u,subtitle:y}),_&&e.createElement("div",{className:t(s,(m={},m[c]=!!v,m))},_)),!!x&&u&&e.createElement(d,{title:u,subtitle:y}),!!g&&e.createElement("div",{className:n},g))};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-387a768a.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-2879095c.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-4a72c260.js";
1
+ import"react";import"classnames";export{S as StepBar}from"../../step-bar-a1f858c1.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-4a72c260";
4
+ import { SteppedProgressBarView } from "../step-bar-a1f858c1";
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-4a72c260.js";import"../typography/text/component.js";import"../colors.module-387a768a.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
+ 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-a1f858c1.js";import"../typography/text/component.js";import"../colors.module-2879095c.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-387a768a.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",r="index-module_leftAddons__l-m-3",n="index-module_rightAddons__m-u4n",a=function(a){var i=a.text,l=a.leftAddons,d=a.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{color:"primary",weight:"bold",tag:"span"},i),l&&e.createElement("div",{className:r},l)),d&&e.createElement("div",{className:n},d))};export{a 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-2879095c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",r="index-module_leftAddons__l-m-3",n="index-module_rightAddons__m-u4n",i=function(i){var a=i.text,l=i.leftAddons,d=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{color:"primary",weight:"bold",tag:"span"},a),l&&e.createElement("div",{className:r},l)),d&&e.createElement("div",{className:n},d))};export{i 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-387a768a.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-2879095c.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-387a768a.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_component__exnSI",m="index-module_leftSide__t9PJZ",a="index-module_content__Z53Wl",l="index-module_leftAddons__AhXk-",n="index-module_rightAddons__UjV9O",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,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:l},p),_&&e.createElement("div",{className:l},e.createElement(o,{size:"sm",color:"grey"})),e.createElement("div",{className:a},e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},s),E&&e.createElement(r.Text,{color:"secondary",view:"caps",tag:"div"},E))),c&&e.createElement("div",{className:n},"string"==typeof c?e.createElement(r.Text,{weight:h,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-2879095c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_component__exnSI",m="index-module_leftSide__t9PJZ",a="index-module_content__Z53Wl",l="index-module_leftAddons__AhXk-",n="index-module_rightAddons__UjV9O",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:l},p),_&&e.createElement("div",{className:l},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:n},"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-387a768a.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-2879095c.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-387a768a.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/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"../button/component.js";import"react-merge-refs";import"../loader/component.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"query-string";import"./utils/get-query-from-url.js";import"./utils/parse-query-params.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.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-c6a9df5a.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";var s={Cell:t,TableComponent:o};export{s 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-2879095c.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/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"../button/component.js";import"react-merge-refs";import"../loader/component.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"query-string";import"./utils/get-query-from-url.js";import"./utils/parse-query-params.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.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-28aedca5.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";var s={Cell:t,TableComponent:o};export{s 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-387a768a.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var r={cell:"index-module_cell__SVZPV",right:"index-module_right__30pJO",children:"index-module_children__X0572",is_div:"index-module_is_div__XHlH-"},l=function(l){var s,n,a,m=l.dataTestID,c=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":m,className:i(r.cell,c,(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((a={},a[r.center]="center"===j,a[r.right]="right"===j,a)),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-2879095c.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var r={cell:"index-module_cell__SVZPV",right:"index-module_right__30pJO",children:"index-module_children__X0572",is_div:"index-module_is_div__XHlH-"},l=function(l){var s,n,m,a=l.dataTestID,c=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":a,className:i(r.cell,c,(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-387a768a.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-2879095c.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 o from"classnames";import{Typography as t}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-387a768a.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var a={header_row:"index-module_header_row__-IYYq",cell:"index-module_cell__c2wSL",clickable:"index-module_clickable__uhIIg",head_wrapper:"index-module_head_wrapper__WjtNB",arrow:"index-module_arrow__svnkJ",accent:"index-module_accent__5Dn8Q",DESC:"index-module_DESC__p2eV7",ASC:"index-module_ASC__fIiQ-"};function c(c){var l=c.columns,n=c.sort,i=c.order,m=c.addParam;return e.createElement("thead",null,e.createElement("tr",{className:a.header_row},l.map((function(c){var l,d,s=c.accessor&&n===c.accessor,p=s&&"ASC"===i?"DESC":"ASC";return e.createElement("th",{className:o(a.cell,(l={},l[a.clickable]=c.sort,l)),align:c.align,style:{width:c.width||"auto"},onClick:c.sort?function(){return m({order:p,sort:c.accessor})}:void 0},e.createElement(t.Text,{className:a.head_wrapper,view:"caps",tag:"div",color:"secondary",weight:"medium"},c.header,c.sort&&e.createElement("span",{className:o(a.arrow,a[p],(d={},d[a.accent]=s,d))},e.createElement(r,null))))}))))}export{c as Cells};
1
+ import e from"react";import r from"@alphakits/icons/dist/ChevronForwardS";import o from"classnames";import{Typography as t}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-2879095c.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var a={header_row:"index-module_header_row__-IYYq",cell:"index-module_cell__c2wSL",clickable:"index-module_clickable__uhIIg",head_wrapper:"index-module_head_wrapper__WjtNB",arrow:"index-module_arrow__svnkJ",accent:"index-module_accent__5Dn8Q",DESC:"index-module_DESC__p2eV7",ASC:"index-module_ASC__fIiQ-"};function c(c){var l=c.columns,n=c.sort,i=c.order,m=c.addParam;return e.createElement("thead",null,e.createElement("tr",{className:a.header_row},l.map((function(c){var l,d,s=c.accessor&&n===c.accessor,p=s&&"ASC"===i?"DESC":"ASC";return e.createElement("th",{className:o(a.cell,(l={},l[a.clickable]=c.sort,l)),align:c.align,style:{width:c.width||"auto"},onClick:c.sort?function(){return m({order:p,sort:c.accessor})}:void 0},e.createElement(t.Text,{className:a.head_wrapper,view:"caps",tag:"div",color:"secondary",weight:"medium"},c.header,c.sort&&e.createElement("span",{className:o(a.arrow,a[p],(d={},d[a.accent]=s,d))},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-387a768a.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__dwgN3",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-2879095c.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__dwgN3",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-387a768a.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__FWx71",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-2879095c.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__FWx71",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-387a768a.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var n={td:"index-module_td__tJ38Q",tr:"index-module_tr__bQ4Yc",aniVertical:"index-module_aniVertical__QAeK7"},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-2879095c.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var n={td:"index-module_td__tJ38Q",tr:"index-module_tr__bQ4Yc",aniVertical:"index-module_aniVertical__QAeK7"},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-387a768a.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_pagination_wrap__kmile",m="index-module_pagination__36rf5",l="index-module_pages_info__9QuwE",s="index-module_prev_btn__UnDy5",c="index-module_disabled_btn__G6J6W",p="index-module_pagination_btn__vexgb",d="index-module_btn__-Zrx2",u="index-module_active__F46kP",_="index-module_select__XysEX";var g=function(g){var f,v,h=g.pagesCount,x=g.currentPage,E=g.recordsPerPage,y=void 0===E?30:E,b=g.total,w=g.language,k=g.addParam,j=function(e,t){for(var n=e-2,o=e+2+1,a=[],r=[],i=0,m=1;m<=t;m++)(1===m||m===t||m>=n&&m<o)&&a.push(m);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,h),N=1===x,C=x===h;return e.createElement("div",{className:i},e.createElement("div",{className:l},e.createElement(a.Text,{view:"title",weight:"medium",color:"secondary"},r(w)("totalCount")),e.createElement(a.Text,{view:"title",weight:"medium",color:"primary"},b)),j.length>1&&e.createElement("div",{className:m},e.createElement(o,{className:n(s,d,(f={},f[c]=N,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return k({page:x-1})},disabled:N}),j.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 k({page:t})}},t):e.createElement(o,{key:t+a,className:n(p),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(d,(v={},v[c]=C,v)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){k({page:x+1})},disabled:C})),e.createElement("select",{value:y,className:_,onChange:function(e){k({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},r(w)("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-2879095c.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_pagination_wrap__kmile",m="index-module_pagination__36rf5",l="index-module_pages_info__9QuwE",s="index-module_prev_btn__UnDy5",c="index-module_disabled_btn__G6J6W",p="index-module_pagination_btn__vexgb",d="index-module_btn__-Zrx2",u="index-module_active__F46kP",_="index-module_select__XysEX";var g=function(g){var f,v,h=g.pagesCount,x=g.currentPage,E=g.recordsPerPage,y=void 0===E?30:E,b=g.total,w=g.language,k=g.addParam,j=function(e,t){for(var n=e-2,o=e+2+1,a=[],r=[],i=0,m=1;m<=t;m++)(1===m||m===t||m>=n&&m<o)&&a.push(m);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,h),N=1===x,C=x===h;return e.createElement("div",{className:i},e.createElement("div",{className:l},e.createElement(a.Text,{view:"title",weight:"medium",color:"secondary"},r(w)("totalCount")),e.createElement(a.Text,{view:"title",weight:"medium",color:"primary"},b)),j.length>1&&e.createElement("div",{className:m},e.createElement(o,{className:n(s,d,(f={},f[c]=N,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return k({page:x-1})},disabled:N}),j.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 k({page:t})}},t):e.createElement(o,{key:t+a,className:n(p),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(d,(v={},v[c]=C,v)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){k({page:x+1})},disabled:C})),e.createElement("select",{value:y,className:_,onChange:function(e){k({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},r(w)("resultsOnPage")+"    "+t+"   ")}))))};export{g as Pagination};
@@ -1 +1 @@
1
- export{Table}from"./component.js";export{TableCell}from"./components/cell/component.js";import"./table.js";import"react";import"classnames";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-387a768a.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.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"query-string";import"./utils/get-query-from-url.js";import"./utils/parse-query-params.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.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-c6a9df5a.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";
1
+ export{Table}from"./component.js";export{TableCell}from"./components/cell/component.js";import"./table.js";import"react";import"classnames";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-2879095c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.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"query-string";import"./utils/get-query-from-url.js";import"./utils/parse-query-params.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.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-28aedca5.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";