@alphakits/ui 1.30.54 → 1.30.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/amount/component.js +1 -1
  2. package/dist/amount/index.js +1 -1
  3. package/dist/avatar/component.js +1 -1
  4. package/dist/avatar/index.js +1 -1
  5. package/dist/base-card/component.js +1 -1
  6. package/dist/base-card/index.js +1 -1
  7. package/dist/calendar/component.js +1 -1
  8. package/dist/calendar/components/days-table/component.js +1 -1
  9. package/dist/calendar/components/days-table/index.js +1 -1
  10. package/dist/calendar/components/header/index.js +1 -1
  11. package/dist/calendar/components/header//321/201omponent.js +1 -1
  12. package/dist/calendar/components/months-table/index.js +1 -1
  13. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  14. package/dist/calendar/index.js +1 -1
  15. package/dist/calendar-input/component.js +1 -1
  16. package/dist/calendar-input/index.js +1 -1
  17. package/dist/{capitalize-ee183f8f.js → capitalize-55ec2ccf.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/component.d.ts +1 -1
  83. package/dist/picker-button/index.js +1 -1
  84. package/dist/progress-bar/component.js +1 -1
  85. package/dist/progress-bar/index.js +1 -1
  86. package/dist/progress-index/component.js +1 -1
  87. package/dist/progress-index/index.js +1 -1
  88. package/dist/radio-group/component.js +1 -1
  89. package/dist/radio-group/index.js +1 -1
  90. package/dist/radio-groups/component.js +1 -1
  91. package/dist/radio-groups/index.js +1 -1
  92. package/dist/select/components/base-select/component.js +1 -1
  93. package/dist/sidepanel/component.js +1 -1
  94. package/dist/sidepanel/index.js +1 -1
  95. package/dist/sidepanel-header/component.js +1 -1
  96. package/dist/sidepanel-header/index.js +1 -1
  97. package/dist/stepped-progress-bar/components/step-bar.js +1 -1
  98. package/dist/stepped-progress-bar/index.d.ts +1 -1
  99. package/dist/stepped-progress-bar/index.js +1 -1
  100. package/dist/super-list-header/component.js +1 -1
  101. package/dist/super-list-header/index.js +1 -1
  102. package/dist/super-list-item/component.js +1 -1
  103. package/dist/super-list-item/index.js +1 -1
  104. package/dist/table/component.js +1 -1
  105. package/dist/table/components/cell/component.js +1 -1
  106. package/dist/table/components/cell/index.js +1 -1
  107. package/dist/table/components/cells/index.js +1 -1
  108. package/dist/table/components/empty-list/index.js +1 -1
  109. package/dist/table/components/error/index.js +1 -1
  110. package/dist/table/components/loading/index.js +1 -1
  111. package/dist/table/components/pagination/index.js +1 -1
  112. package/dist/table/index.js +1 -1
  113. package/dist/table/table.js +1 -1
  114. package/dist/table/utils/prepare-rows.js +1 -1
  115. package/dist/table-status/component.js +1 -1
  116. package/dist/table-status/index.js +1 -1
  117. package/dist/tag/component.js +1 -1
  118. package/dist/tag/index.js +1 -1
  119. package/dist/tags-list/component.js +1 -1
  120. package/dist/tags-list/index.js +1 -1
  121. package/dist/typography/component.js +1 -1
  122. package/dist/typography/index.js +1 -1
  123. package/dist/typography/text/component.js +1 -1
  124. package/dist/typography/text/index.js +1 -1
  125. package/dist/typography/title/component.js +1 -1
  126. package/dist/typography/title/index.js +1 -1
  127. package/package.json +1 -1
  128. /package/dist/{colors.module-1d57f370.js → colors.module-dae2e5d7.js} +0 -0
  129. /package/dist/{contact-block-e259f734.d.ts → contact-block-a5bd1873.d.ts} +0 -0
  130. /package/dist/{contact-block-e259f734.js → contact-block-a5bd1873.js} +0 -0
  131. /package/dist/{gutters.module-f2366685.js → gutters.module-1a59b63b.js} +0 -0
  132. /package/dist/{isSymbol-bae25005.js → isSymbol-beaf3267.js} +0 -0
  133. /package/dist/{step-bar-fa8b30f4.d.ts → step-bar-3be165d2.d.ts} +0 -0
  134. /package/dist/{step-bar-fa8b30f4.js → step-bar-3be165d2.js} +0 -0
  135. /package/dist/{use-image-render-component-bd68b204.d.ts → use-image-render-component-96f99c64.d.ts} +0 -0
  136. /package/dist/{use-image-render-component-bd68b204.js → use-image-render-component-96f99c64.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-1d57f370.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-dae2e5d7.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-1d57f370.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-dae2e5d7.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-1d57f370.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
+ import t from"react";import e from"@alphakits/icons/dist/ActionCopyM";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{ToastNotifier as r}from"../toast-notifier/component.js";import{Typography as n}from"../typography/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.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:o(m.item,m[l])},t.createElement(n.Text,{view:"caps",color:"secondary",weight:"medium"},p,a&&":"),t.createElement("div",{className:m.content},a&&t.createElement(n.Text,{view:"caps",className:m.value,color:y,weight:"medium"},a,u&&t.createElement(i,{icon:e,className:m.copy,size:"s",onClick:function(t){t.stopPropagation(),navigator.clipboard.writeText(a).then((function(){r({title:"Copied!",view:"positive",offset:30})}))}})),d&&t.createElement("div",{className:m.rightAddons},d)))};export{s as InfoBlockItem};
@@ -1 +1 @@
1
- export{InfoBlockItem}from"./component.js";import"react";import"@alphakits/icons/dist/ActionCopyM";import"classnames";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/component.js";import"react-dom";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-1d57f370.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-dae2e5d7.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-1d57f370.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
+ import t from"react";import e from"classnames";import{Typography as o}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.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 +1 @@
1
- export{ListAllert}from"./component.js";import"react";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-1d57f370.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-dae2e5d7.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 i}from"./components/content-header/index.js";import{MenuAvatar as n}from"./components/menu-avatar/index.js";import{MenuBackButton as r}from"./components/menu-back-button/index.js";import{MenuButtonsList as s}from"./components/menu-buttons-list/index.js";import{UserButton as m}from"./components/user-button/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-1d57f370.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-bd68b204.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";var p="index-module_layout_wrapper__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",h="index-module_calendar_view__PeL0k",_=function(_){var k,f,x=_.pathname,g=_.children,v=_.routes,b=_.showBackButton,E=_.userName,w=_.userImage,C=_.userDialogOptions,y=_.profileTitle,M=_.profileImage,N=_.Link,S=_.profileOnClick,L=_.navigate,O=_.t,P=o(),T=P.staticMenu,F=P.setStaticMenu,I=P.showMenu,B=P.ref,D=T||I,W="/"+x.split("/").slice(-1)[0],X=e(c,((k={})[a]=T,k[l]=I,k)),z=e(u,((f={})[j]=T,f[h]=x.startsWith("/app/calendar"),f));return t.createElement("div",{className:e(p)},t.createElement("div",{ref:B,className:X},t.createElement(n,{title:y,showTitle:D,image:M,onClick:S}),b&&t.createElement(r,{showTitle:D,onClick:function(){return L("/app/calendar")}}),t.createElement(s,{routes:v,showLabels:D,currentPath:W,Link:N,t:O})),t.createElement("div",{className:z},t.createElement("div",{className:d},t.createElement(i,{onClick:function(){return F(!T)},title:O("menu."+W)}),t.createElement(m,{photo:w,fullName:E,options:C})),g))};export{_ as Menu};
1
+ import t from"react";import e from"classnames";import{useMenu as o}from"./hooks/use-menu.js";import{ContentHeader as i}from"./components/content-header/index.js";import{MenuAvatar as n}from"./components/menu-avatar/index.js";import{MenuBackButton as r}from"./components/menu-back-button/index.js";import{MenuButtonsList as s}from"./components/menu-buttons-list/index.js";import{UserButton as m}from"./components/user-button/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-96f99c64.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";var p="index-module_layout_wrapper__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",h="index-module_calendar_view__PeL0k",_=function(_){var k,f,x=_.pathname,g=_.children,v=_.routes,E=_.showBackButton,b=_.userName,w=_.userImage,C=_.userDialogOptions,y=_.profileTitle,M=_.profileImage,N=_.Link,S=_.profileOnClick,L=_.navigate,O=_.t,P=o(),T=P.staticMenu,F=P.setStaticMenu,I=P.showMenu,B=P.ref,D=T||I,W="/"+x.split("/").slice(-1)[0],X=e(c,((k={})[a]=T,k[l]=I,k)),z=e(u,((f={})[j]=T,f[h]=x.startsWith("/app/calendar"),f));return t.createElement("div",{className:e(p)},t.createElement("div",{ref:B,className:X},t.createElement(n,{title:y,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:O})),t.createElement("div",{className:z},t.createElement("div",{className:d},t.createElement(i,{onClick:function(){return F(!T)},title:O("menu."+W)}),t.createElement(m,{photo:w,fullName:b,options:C})),g))};export{_ as Menu};
@@ -1 +1 @@
1
- import o from"react";import t from"@alphakits/icons/dist/MoverS";import{IconButton as e}from"../../../icon-button/component.js";import{Typography as r}from"../../../typography/component.js";import"tslib";import"classnames";import"../../../button/component.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-1d57f370.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-dae2e5d7.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-1d57f370.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"@alphakits/icons";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-bd68b204.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"@alphakits/icons/dist/NextS";import"../../divider/component.js";import"./menu-button/index.js";import"../../select/component.js";import"../../select/components/arrow/component.js";import"../../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../../select/utils.js";import"../../select/components/native-select/component.js";import"../../select/components/field/component.js";import"../../form-control/component.js";import"../../select/components/optgroup/component.js";import"../../select/components/option/component.js";import"../../select/components/checkmark/component.js";import"../../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../../select/components/select-search/index.js";import"../../hooks/useClickOutside/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../../toast-notifier/use-timer.js";import"../../input/component.js";import"react-virtual";import"intersection-observer";
1
+ export{ContentHeader}from"./content-header/index.js";export{MenuAvatar}from"./menu-avatar/index.js";export{MenuBackButton}from"./menu-back-button/index.js";export{MenuButtonsList}from"./menu-buttons-list/index.js";export{UserButton}from"./user-button/index.js";import"react";import"@alphakits/icons/dist/MoverS";import"../../icon-button/component.js";import"tslib";import"classnames";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-dae2e5d7.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../avatar/component.js";import"@alphakits/icons";import"../../image/component.js";import"../../skeleton/component.js";import"../../use-image-render-component-96f99c64.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"@alphakits/icons/dist/NextS";import"../../divider/component.js";import"./menu-button/index.js";import"../../select/component.js";import"../../select/components/arrow/component.js";import"../../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../../__internal/utils/getDataTestId.js";import"../../popover/component.js";import"react-popper";import"react-transition-group";import"../../portal/component.js";import"react-dom";import"../../portal/utils.js";import"../../stack/context.js";import"../../stack/component.js";import"../../select/utils.js";import"../../select/components/native-select/component.js";import"../../select/components/field/component.js";import"../../form-control/component.js";import"../../select/components/optgroup/component.js";import"../../select/components/option/component.js";import"../../select/components/checkmark/component.js";import"../../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../../select/components/select-search/index.js";import"../../hooks/useClickOutside/index.js";import"../../utils/get-service-error/index.js";import"../../utils/get-service-error/is-axios-error.js";import"../../utils/get-service-error/is-network-error.js";import"../../toast-notifier/component.js";import"../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../../toast-notifier/use-timer.js";import"../../input/component.js";import"react-virtual";import"intersection-observer";
@@ -1 +1 @@
1
- import t from"react";import o from"classnames";import{Avatar as e}from"../../../avatar/component.js";import{Typography as i}from"../../../typography/component.js";import"@alphakits/icons";import"../../../button/component.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../use-image-render-component-bd68b204.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-1d57f370.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var m="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:m},t.createElement(e,{onClick:function(){d&&d()},src:l,text:c}),t.createElement(i.Text,{className:o(r,(s={},s[p]=!a,s)),view:"primary-medium",weight:"bold"},c))};export{n as MenuAvatar};
1
+ import t from"react";import o from"classnames";import{Avatar as e}from"../../../avatar/component.js";import{Typography as i}from"../../../typography/component.js";import"@alphakits/icons";import"../../../button/component.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../use-image-render-component-96f99c64.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-dae2e5d7.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var m="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:m},t.createElement(e,{onClick:function(){d&&d()},src:l,text:c}),t.createElement(i.Text,{className:o(r,(s={},s[p]=!a,s)),view:"primary-medium",weight:"bold"},c))};export{n as MenuAvatar};
@@ -1 +1 @@
1
- import e from"react";import t from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-1d57f370.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,f=l.Link;return e.createElement(f,{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-dae2e5d7.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",d="index-module_leftAddons__eaiZB",n="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:d},u),e.createElement(o.Text,{view:"title",weight:"medium",color:"secondary",className:i},c),x&&e.createElement("div",{className:n},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-1d57f370.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
+ 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-dae2e5d7.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 i}from"../../../button/component.js";import{Select as r}from"../../../select/component.js";import"classnames";import"../../../select/components/base-select/component.js";import"../../../form-control/component.js";import"../../../select/components/options-list/component.js";import"react-virtual";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import"intersection-observer";import"@alphakits/icons";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-1d57f370.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-bd68b204.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../select/components/arrow/component.js";import"../../../select/components/field/component.js";import"../../../select/utils.js";import"../../../select/components/optgroup/component.js";import"../../../select/components/option/component.js";import"../../../select/components/checkmark/component.js";import"../../../select/components/select-search/index.js";import"../../../hooks/useClickOutside/index.js";import"../../../input/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"react-dom";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../../../toast-notifier/use-timer.js";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../../select/components/native-select/component.js";var s="index-module_option_wrap__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(r,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(r){var s=r.innerProps;return t.createElement(i,o({},s,{view:"ghost"}),t.createElement(e,{onClick:m.length?function(){}:void 0,src:a,text:c}))}}))}));export{n as UserButton};
1
+ import{__assign as o}from"tslib";import t from"react";import{Avatar as e}from"../../../avatar/component.js";import{Button as i}from"../../../button/component.js";import{Select as r}from"../../../select/component.js";import"classnames";import"../../../select/components/base-select/component.js";import"../../../form-control/component.js";import"../../../select/components/options-list/component.js";import"react-virtual";import"../../../utils/get-service-error/index.js";import"../../../toast-notifier/component.js";import"intersection-observer";import"@alphakits/icons";import"../../../image/component.js";import"../../../skeleton/component.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-dae2e5d7.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../use-image-render-component-96f99c64.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../../../spinner/component.js";import"../../../image/types.js";import"../../../image/utils.js";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../select/components/arrow/component.js";import"../../../select/components/field/component.js";import"../../../select/utils.js";import"../../../select/components/optgroup/component.js";import"../../../select/components/option/component.js";import"../../../select/components/checkmark/component.js";import"../../../select/components/select-search/index.js";import"../../../hooks/useClickOutside/index.js";import"../../../input/component.js";import"../../../utils/get-service-error/is-axios-error.js";import"../../../utils/get-service-error/is-network-error.js";import"react-dom";import"../../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../../../toast-notifier/use-timer.js";import"downshift";import"resize-observer";import"../../../__internal/utils/getDataTestId.js";import"../../../popover/component.js";import"react-popper";import"react-transition-group";import"../../../portal/component.js";import"../../../portal/utils.js";import"../../../stack/context.js";import"../../../stack/component.js";import"../../../select/components/native-select/component.js";var s="index-module_option_wrap__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(r,{options:m,optionsListWidth:"content",block:!1,popoverPosition:"bottom-end",selected:[],closeOnSelect:!0,optionClassName:s,Field:function(r){var s=r.innerProps;return t.createElement(i,o({},s,{view:"ghost"}),t.createElement(e,{onClick:m.length?function(){}:void 0,src:a,text:c}))}}))}));export{n as UserButton};
@@ -1 +1 @@
1
- export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-1d57f370.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-bd68b204.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-buttons-list/index.js";import"./components/menu-button/index.js";import"./components/user-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";
1
+ export{Menu}from"./component.js";import"react";import"classnames";import"./hooks/use-menu.js";import"./components/content-header/index.js";import"@alphakits/icons/dist/MoverS";import"../icon-button/component.js";import"tslib";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.js";import"../typography/title/index.js";import"../typography/title/component.js";import"./components/menu-avatar/index.js";import"../avatar/component.js";import"@alphakits/icons";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-96f99c64.js";import"@alphakits/icons/dist/PhotoM";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./components/menu-back-button/index.js";import"@alphakits/icons/dist/NextS";import"../divider/component.js";import"./components/menu-buttons-list/index.js";import"./components/menu-button/index.js";import"./components/user-button/index.js";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../select/components/select-search/index.js";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";
@@ -1 +1 @@
1
- import e,{useState as t}from"react";import{Button as o}from"../button/component.js";import{Flex as i}from"../flex/component.js";import{Image as r}from"../image/component.js";import{ImageGallery as m}from"../image-gallery/component.js";import{Padding as n}from"../padding/component.js";import{Typography as a}from"../typography/component.js";import"tslib";import"react-merge-refs";import"classnames";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../skeleton/component.js";import"../use-image-render-component-bd68b204.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-1d57f370.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,b=void 0===T||T,k=t(!1),S=k[0],F=k[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},b&&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:S,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-96f99c64.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-dae2e5d7.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-1d57f370.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-bd68b204.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-dae2e5d7.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../use-image-render-component-96f99c64.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-f2366685.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-1d57f370.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-1a59b63b.js";import"../grid/row/component.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.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 +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-f2366685.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-1d57f370.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-1a59b63b.js";import"../grid/row/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.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-1d57f370.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-dae2e5d7.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-1d57f370.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 e,{forwardRef as t}from"react";import o from"classnames";import{Typography as r}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-dae2e5d7.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var i="index-module_wrapper__Y-b0g",m=t((function(t,m){var p=t.label,a=t.value,l=t.id,n=t.className,c=t.onClick;return e.createElement("button",{className:o(i,n),ref:m,id:l,type:"button",onClick:c},e.createElement(r.Text,{view:"caps",weight:"medium",color:"tertiary"},p),e.createElement(r.Text,{view:"title",weight:"medium",color:"primary"},a))}));export{m as LabeledButton};
@@ -8,7 +8,7 @@ type PickerButtonProps = Omit<BaseSelectProps, 'placeholder' | 'Arrow' | 'autoco
8
8
  icon?: React.ReactNode;
9
9
  fieldComponent?: 'button' | 'iconButton';
10
10
  };
11
- declare const PickerButton: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "hint" | "selected" | "multiple" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "loading"> & {
11
+ declare const PickerButton: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "size" | "placeholder" | "onFocus" | "hint" | "multiple" | "selected" | "autocomplete" | "allowUnselect" | "closeOnSelect" | "fieldProps" | "Arrow"> & Pick<ButtonProps, "view" | "leftAddons" | "loading"> & {
12
12
  size?: PickerButtonSize | undefined;
13
13
  icon?: React.ReactNode;
14
14
  fieldComponent?: "button" | "iconButton" | undefined;
@@ -1 +1 @@
1
- export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"tslib";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../button/component.js";import"../loader/component.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-1d57f370.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{PickerButton}from"./component.js";export{LabeledButton}from"./common/labeled-button/index.js";import"tslib";import"react";import"classnames";import"../select/component.js";import"../select/components/arrow/component.js";import"../select/components/base-select/component.js";import"react-merge-refs";import"downshift";import"resize-observer";import"../__internal/utils/getDataTestId.js";import"../popover/component.js";import"react-popper";import"react-transition-group";import"../portal/component.js";import"react-dom";import"../portal/utils.js";import"../stack/context.js";import"../stack/component.js";import"../select/utils.js";import"../select/components/native-select/component.js";import"../select/components/field/component.js";import"../form-control/component.js";import"../hooks/useFocus/index.js";import"../select/components/optgroup/component.js";import"../select/components/option/component.js";import"../skeleton/component.js";import"../select/components/checkmark/component.js";import"../select/components/options-list/component.js";import"@alphakits/icons/dist/ClockCircleM";import"../button/component.js";import"../loader/component.js";import"../select/components/select-search/index.js";import"@alphakits/icons";import"../hooks/useClickOutside/index.js";import"../utils/get-service-error/index.js";import"../utils/get-service-error/is-axios-error.js";import"../utils/get-service-error/is-network-error.js";import"../toast-notifier/component.js";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/CloseS";import"../toast-notifier/use-timer.js";import"../input/component.js";import"react-virtual";import"intersection-observer";import"./field/Component.js";import"../icon-button/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.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-1d57f370.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
+ import e from"react";import o from"classnames";import{Typography as i}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.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-1d57f370.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-dae2e5d7.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-1d57f370.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-dae2e5d7.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 +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-1d57f370.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-dae2e5d7.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-1d57f370.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
+ 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-dae2e5d7.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 +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-1d57f370.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-dae2e5d7.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-bae25005.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-1d57f370.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,b=[];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&&b.push(o)}));var v=o(b),E=v[0],g=v[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 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-beaf3267.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-dae2e5d7.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,b=[];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&&b.push(o)}));var v=o(b),E=v[0],g=v[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 +1 @@
1
- export{RadioGroups}from"./component.js";import"react";import"@alphakits/icons/dist/ChevronDownS";import"classnames";import"../collapse/component.js";import"../isSymbol-bae25005.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-1d57f370.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-beaf3267.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-dae2e5d7.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import{__assign as e,__spreadArray as t,__rest as n}from"tslib";import o,{forwardRef as i,useRef as r,useMemo as l,useCallback as a,useEffect as s}from"react";import d from"react-merge-refs";import c from"classnames";import{useMultipleSelection as u,useCombobox as p}from"downshift";import{ResizeObserver as m}from"resize-observer";import{getDataTestId as v}from"../../../__internal/utils/getDataTestId.js";import{Popover as f}from"../../../popover/component.js";import{processOptions as g}from"../../utils.js";import{NativeSelect as h}from"../native-select/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";var b="index-module_component__vbM1x",I="index-module_popoverInner__UhT2m",w="index-module_optionsList__catD5",x="index-module_nativeSelect__SsnnZ",y="index-module_block__kBj0n",O=i((function(i,O){var P,k=i.dataTestId,T=void 0===k?"":k,_=i.className,C=i.fieldClassName,N=i.filteredOptions,S=i.popoverOuterClassname,E=i.optionsListClassName,D=i.optionClassName,j=i.options,M=i.actionButton,z=i.autocomplete,B=void 0!==z&&z,L=i.multiple,F=void 0!==L&&L,R=i.allowUnselect,A=void 0!==R&&R,K=i.disabled,U=void 0!==K&&K,W=i.closeOnSelect,q=void 0===W?!F:W,H=i.circularNavigation,Z=void 0!==H&&H,G=i.nativeSelect,J=void 0!==G&&G,Q=i.defaultOpen,V=void 0!==Q&&Q,X=i.open,Y=i.popoverPosition,$=void 0===Y?"bottom-start":Y,ee=i.offset,te=i.withArrow,ne=i.preventFlip,oe=void 0===ne||ne,ie=i.optionsListWidth,re=void 0===ie?"field":ie,le=i.name,ae=i.id,se=i.required,de=i.selected,ce=i.size,ue=void 0===ce?"m":ce,pe=i.optionsSize,me=void 0===pe?ue:pe,ve=i.error,fe=i.hint,ge=i.block,he=void 0===ge||ge,be=i.label,Ie=i.placeholder,we=i.fieldProps,xe=void 0===we?{}:we,ye=i.optionsListProps,Oe=void 0===ye?{}:ye,Pe=i.optionProps,ke=void 0===Pe?{}:Pe,Te=i.valueRenderer,_e=i.onChange,Ce=i.onOpen,Ne=i.onFocus,Se=i.onBlur,Ee=i.onScroll,De=i.Arrow,je=i.Field,Me=void 0===je?function(){return null}:je,ze=i.OptionsList,Be=void 0===ze?function(){return null}:ze,Le=i.Optgroup,Fe=void 0===Le?function(){return null}:Le,Re=i.Option,Ae=void 0===Re?function(){return null}:Re,Ke=i.updatePopover,Ue=i.zIndexPopover,We=i.showEmptyOptionsList,qe=void 0!==We&&We,He=i.visibleOptions,Ze=r(null),Ge=r(null),Je=r(null),Qe=function(e){var t;return e?null===(t=e.key)||void 0===t?void 0:t.toString():""},Ve=l((function(){return g(j||[],de)}),[j,de]),Xe=Ve.flatOptions,Ye=Ve.selectedOptions,$e={itemToString:Qe,onSelectedItemsChange:function(e){if(_e){var t=e.selectedItems,n=void 0===t?[]:t;_e({selectedMultiple:n,selected:n.length?n[0]:null,name:le})}},stateReducer:function(e,t){var n=t.type,o=t.changes;return A||n!==u.stateChangeTypes.DropdownKeyDownBackspace?o:e}};void 0!==de&&($e.selectedItems=Ye);var et=null!=N?N:j,tt=u($e),nt=tt.selectedItems,ot=tt.addSelectedItem,it=tt.setSelectedItems,rt=tt.removeSelectedItem,lt=tt.getDropdownProps,at=p({id:ae,isOpen:X,circularNavigation:Z,items:Xe,itemToString:Qe,defaultHighlightedIndex:0===nt.length?-1:void 0,onIsOpenChange:function(e){Ce&&setTimeout((function(){Ce({open:e.isOpen,name:le})}),0)},stateReducer:function(t,n){var o=n.type,i=n.changes,r=i.selectedItem;switch(o){case p.stateChangeTypes.InputKeyDownEnter:case p.stateChangeTypes.ItemClick:if(r&&!r.disabled){var l=nt.includes(r),a=A||F&&nt.length>1;l&&a&&rt(r),l||(F?ot(r):it([r]))}return e(e({},i),{isOpen:!q,highlightedIndex:t.isOpen&&!q?t.highlightedIndex:i.highlightedIndex});default:return i}}}),st=at.isOpen,dt=at.getMenuProps,ct=at.getInputProps,ut=at.getItemProps,pt=at.getComboboxProps,mt=at.getLabelProps,vt=at.highlightedIndex,ft=at.toggleMenu,gt=at.openMenu,ht=dt({ref:Je},{suppressRefError:!0}),bt=ct(lt({ref:d([O,Ge])})),It=a((function(e){var n;it(t([],null===(n=e)||void 0===n?void 0:n.target.options).reduce((function(e,t,n){return t.selected?e.concat(Xe[n]):e}),[]))}),[Xe,it]),wt=a((function(t){var i=t.option,r=t.index,l=n(t,["option","index"]),a=ut({index:r,item:i,disabled:i.disabled,onMouseDown:function(e){return e.preventDefault()},onPointerDown:function(e){e.preventDefault(),e.stopPropagation()},onTouchStart:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.stopPropagation()}});return o.createElement(o.Fragment,{key:i.key},Ae(e(e(e({},ke),l),{className:D,innerProps:a,index:r,option:i,size:me,disabled:i.disabled,highlighted:r===vt,selected:nt.includes(i)})))}),[ke,D,ut,me,vt,nt,Ae]);s((function(){V&&gt()}),[V,gt]),s((function(){!0===X&&gt()}),[X]);var xt=r(null),yt=r(null),Ot=a((function(){if(Je.current){var e="field"===re?"width":"minWidth",t=Ze.current?Math.round(Ze.current.getBoundingClientRect().width):0;xt.current!==t&&(xt.current=t,Je.current.style[e]=t+"px")}}),[re]);s((function(){if(st){var e=new m((function(){yt.current&&window.clearTimeout(yt.current),yt.current=window.setTimeout((function(){Ot()}),50)}));return Ze.current&&e.observe(Ze.current),Ot(),function(){e.disconnect(),yt.current&&window.clearTimeout(yt.current),yt.current=null}}}),[st,Ot]),s((function(){st&&Ot()}),[st,j,nt,Ot]);var Pt=a((function(){return nt.map((function(e){return o.createElement("input",{type:"hidden",name:le,value:e.key,key:e.key})}))}),[nt,le]),kt=a((function(){var e,t=F?nt.map((function(e){var t;return null===(t=e.key)||void 0===t?void 0:t.toString()})):null===(e=(nt[0]||{}).key)||void 0===e?void 0:e.toString();return o.createElement(h,{className:x,disabled:U,multiple:F,name:le,value:t,onChange:It,options:j})}),[F,nt,U,le,It,j]),Tt=Xe.length>0||qe||!!M;return o.createElement("div",e({},pt(e(e({ref:Ze},U&&{"aria-disabled":!0}),{className:c(b,(P={},P[y]=he,P),_)})),{onKeyDown:U?void 0:function(e){bt.onKeyDown(e),B&&!st&&1===e.key.length&&gt(),![" ","Enter"].includes(e.key)||B||J||"INPUT"===e.target.tagName||(e.preventDefault(),st&&-1!==vt||ft())},tabIndex:-1,id:"slect_wrapper","data-test-id":v("combobox",T)}),J&&kt(),o.createElement(Me,e({selectedMultiple:nt,selected:nt[0],multiple:F,open:st,disabled:U,size:ue,placeholder:Ie,label:be&&o.createElement("span",e({},mt()),se?be+" *":be),Arrow:De&&o.createElement(De,{open:st}),error:ve,hint:fe,valueRenderer:Te,className:C,innerProps:{onBlur:function(e){var t,n=e.relatedTarget||document.activeElement;!(!n||!(null===(t=Je.current)||void 0===t?void 0:t.contains(n)))||(null==Se||Se(e),bt.onBlur(e))},onFocus:U?void 0:function(e){null==Ne||Ne(e),B&&!st&&gt()},onClick:U?void 0:function(e){Je.current&&Je.current.contains(e.target)||(B&&"INPUT"===e.target.tagName?gt():ft())},tabIndex:J||U?-1:0,ref:d([bt.ref]),id:bt.id,"aria-labelledby":bt["aria-labelledby"],"aria-controls":bt["aria-controls"],"aria-autocomplete":B?bt["aria-autocomplete"]:void 0},dataTestId:v("field",T)},xe)),le&&!J&&Pt(),!J&&o.createElement(f,{open:st,withTransition:!1,anchorElement:Ge.current,position:$,offset:ee,withArrow:te,preventFlip:oe,className:S,popperClassName:I,update:Ke,zIndex:Ue},Tt&&o.createElement("div",e({},ht,{className:c(E,w)}),o.createElement(Be,e({},Oe,{flatOptions:Xe,highlightedIndex:vt,open:st,size:ue,toggleMenu:ft,actionButton:M,options:et,Optgroup:Fe,Option:wt,visibleOptions:He,onScroll:Ee,dataTestId:v("options-list",T)})))))}));export{O as BaseSelect};
1
+ import{__assign as e,__spreadArray as t,__rest as n}from"tslib";import o,{forwardRef as i,useRef as r,useMemo as l,useCallback as a,useEffect as s}from"react";import d from"react-merge-refs";import c from"classnames";import{useMultipleSelection as u,useCombobox as p}from"downshift";import{ResizeObserver as m}from"resize-observer";import{getDataTestId as v}from"../../../__internal/utils/getDataTestId.js";import{Popover as f}from"../../../popover/component.js";import{processOptions as g}from"../../utils.js";import{NativeSelect as h}from"../native-select/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";var b="index-module_component__vbM1x",I="index-module_popoverInner__UhT2m",w="index-module_optionsList__catD5",x="index-module_nativeSelect__SsnnZ",y="index-module_block__kBj0n",O=i((function(i,O){var P,k=i.dataTestId,T=void 0===k?"":k,_=i.className,C=i.fieldClassName,N=i.filteredOptions,S=i.popoverOuterClassname,E=i.optionsListClassName,D=i.optionClassName,j=i.options,M=i.actionButton,z=i.autocomplete,B=void 0!==z&&z,L=i.multiple,F=void 0!==L&&L,R=i.allowUnselect,A=void 0!==R&&R,K=i.disabled,U=void 0!==K&&K,W=i.closeOnSelect,q=void 0===W?!F:W,H=i.circularNavigation,Z=void 0!==H&&H,G=i.nativeSelect,J=void 0!==G&&G,Q=i.defaultOpen,V=void 0!==Q&&Q,X=i.open,Y=i.popoverPosition,$=void 0===Y?"bottom-start":Y,ee=i.offset,te=i.withArrow,ne=i.preventFlip,oe=void 0===ne||ne,ie=i.optionsListWidth,re=void 0===ie?"field":ie,le=i.name,ae=i.id,se=i.required,de=i.selected,ce=i.size,ue=void 0===ce?"m":ce,pe=i.optionsSize,me=void 0===pe?ue:pe,ve=i.error,fe=i.hint,ge=i.block,he=void 0===ge||ge,be=i.label,Ie=i.placeholder,we=i.fieldProps,xe=void 0===we?{}:we,ye=i.optionsListProps,Oe=void 0===ye?{}:ye,Pe=i.optionProps,ke=void 0===Pe?{}:Pe,Te=i.valueRenderer,_e=i.onChange,Ce=i.onOpen,Ne=i.onFocus,Se=i.onBlur,Ee=i.onScroll,De=i.Arrow,je=i.Field,Me=void 0===je?function(){return null}:je,ze=i.OptionsList,Be=void 0===ze?function(){return null}:ze,Le=i.Optgroup,Fe=void 0===Le?function(){return null}:Le,Re=i.Option,Ae=void 0===Re?function(){return null}:Re,Ke=i.updatePopover,Ue=i.zIndexPopover,We=i.showEmptyOptionsList,qe=void 0!==We&&We,He=i.visibleOptions,Ze=r(null),Ge=r(null),Je=r(null),Qe=function(e){var t;return e?null===(t=e.key)||void 0===t?void 0:t.toString():""},Ve=l((function(){return g(j||[],de)}),[j,de]),Xe=Ve.flatOptions,Ye=Ve.selectedOptions,$e={itemToString:Qe,onSelectedItemsChange:function(e){if(_e){var t=e.selectedItems,n=void 0===t?[]:t;_e({selectedMultiple:n,selected:n.length?n[0]:null,name:le})}},stateReducer:function(e,t){var n=t.type,o=t.changes;return A||n!==u.stateChangeTypes.DropdownKeyDownBackspace?o:e}};void 0!==de&&($e.selectedItems=Ye);var et=u($e),tt=et.selectedItems,nt=et.addSelectedItem,ot=et.setSelectedItems,it=et.removeSelectedItem,rt=et.getDropdownProps,lt=p({id:ae,isOpen:X,circularNavigation:Z,items:Xe,itemToString:Qe,defaultHighlightedIndex:0===tt.length?-1:void 0,onIsOpenChange:function(e){Ce&&setTimeout((function(){Ce({open:e.isOpen,name:le})}),0)},stateReducer:function(t,n){var o=n.type,i=n.changes,r=i.selectedItem;switch(o){case p.stateChangeTypes.InputKeyDownEnter:case p.stateChangeTypes.ItemClick:if(r&&!r.disabled){var l=tt.includes(r),a=A||F&&tt.length>1;l&&a&&it(r),l||(F?nt(r):ot([r]))}return e(e({},i),{isOpen:!q,highlightedIndex:t.isOpen&&!q?t.highlightedIndex:i.highlightedIndex});default:return i}}}),at=lt.isOpen,st=lt.getMenuProps,dt=lt.getInputProps,ct=lt.getItemProps,ut=lt.getComboboxProps,pt=lt.getLabelProps,mt=lt.highlightedIndex,vt=lt.toggleMenu,ft=lt.openMenu,gt=st({ref:Je},{suppressRefError:!0}),ht=dt(rt({ref:d([O,Ge])})),bt=a((function(e){var n;ot(t([],null===(n=e)||void 0===n?void 0:n.target.options).reduce((function(e,t,n){return t.selected?e.concat(Xe[n]):e}),[]))}),[Xe,ot]),It=a((function(t){var i=t.option,r=t.index,l=n(t,["option","index"]),a=Xe.indexOf(i),s=ct({index:-1===a?void 0:a,item:i,disabled:i.disabled,onMouseDown:function(e){return e.preventDefault()},onPointerDown:function(e){e.preventDefault(),e.stopPropagation()},onTouchStart:function(e){e.preventDefault(),e.stopPropagation()},onClick:function(e){e.stopPropagation()}});return o.createElement(o.Fragment,{key:i.key},Ae(e(e(e({},ke),l),{className:D,innerProps:s,index:r,option:i,size:me,disabled:i.disabled,highlighted:a===mt,selected:tt.includes(i)})))}),[ke,Xe,D,ct,me,mt,tt,Ae]);s((function(){V&&ft()}),[V,ft]),s((function(){!0===X&&ft()}),[X]);var wt=r(null),xt=r(null),yt=a((function(){if(Je.current){var e="field"===re?"width":"minWidth",t=Ze.current?Math.round(Ze.current.getBoundingClientRect().width):0;wt.current!==t&&(wt.current=t,Je.current.style[e]=t+"px")}}),[re]);s((function(){if(at){var e=new m((function(){xt.current&&window.clearTimeout(xt.current),xt.current=window.setTimeout((function(){yt()}),50)}));return Ze.current&&e.observe(Ze.current),yt(),function(){e.disconnect(),xt.current&&window.clearTimeout(xt.current),xt.current=null}}}),[at,yt]),s((function(){at&&yt()}),[at,j,tt,yt]);var Ot=a((function(){return tt.map((function(e){return o.createElement("input",{type:"hidden",name:le,value:e.key,key:e.key})}))}),[tt,le]),Pt=a((function(){var e,t=F?tt.map((function(e){var t;return null===(t=e.key)||void 0===t?void 0:t.toString()})):null===(e=(tt[0]||{}).key)||void 0===e?void 0:e.toString();return o.createElement(h,{className:x,disabled:U,multiple:F,name:le,value:t,onChange:bt,options:j})}),[F,tt,U,le,bt,j]),kt=Xe.length>0||qe||!!M;return o.createElement("div",e({},ut(e(e({ref:Ze},U&&{"aria-disabled":!0}),{className:c(b,(P={},P[y]=he,P),_)})),{onKeyDown:U?void 0:function(e){ht.onKeyDown(e),B&&!at&&1===e.key.length&&ft(),![" ","Enter"].includes(e.key)||B||J||"INPUT"===e.target.tagName||(e.preventDefault(),at&&-1!==mt||vt())},tabIndex:-1,id:"slect_wrapper","data-test-id":v("combobox",T)}),J&&Pt(),o.createElement(Me,e({selectedMultiple:tt,selected:tt[0],multiple:F,open:at,disabled:U,size:ue,placeholder:Ie,label:be&&o.createElement("span",e({},pt()),se?be+" *":be),Arrow:De&&o.createElement(De,{open:at}),error:ve,hint:fe,valueRenderer:Te,className:C,innerProps:{onBlur:function(e){var t,n=e.relatedTarget||document.activeElement;!(!n||!(null===(t=Je.current)||void 0===t?void 0:t.contains(n)))||(null==Se||Se(e),ht.onBlur(e))},onFocus:U?void 0:function(e){null==Ne||Ne(e),B&&!at&&ft()},onClick:U?void 0:function(e){Je.current&&Je.current.contains(e.target)||(B&&"INPUT"===e.target.tagName?ft():vt())},tabIndex:J||U?-1:0,ref:d([ht.ref]),id:ht.id,"aria-labelledby":ht["aria-labelledby"],"aria-controls":ht["aria-controls"],"aria-autocomplete":B?ht["aria-autocomplete"]:void 0},dataTestId:v("field",T)},xe)),le&&!J&&Ot(),!J&&o.createElement(f,{open:at,withTransition:!1,anchorElement:Ge.current,position:$,offset:ee,withArrow:te,preventFlip:oe,className:S,popperClassName:I,update:Ke,zIndex:Ue},kt&&o.createElement("div",e({},gt,{className:c(E,w)}),o.createElement(Be,e({},Oe,{flatOptions:Xe,highlightedIndex:mt,open:at,size:ue,toggleMenu:vt,actionButton:M,options:null!=N?N:j,Optgroup:Fe,Option:It,visibleOptions:He,onScroll:Ee,dataTestId:v("options-list",T)})))))}));export{O as BaseSelect};
@@ -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-1d57f370.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,f=u.loading,g=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,f?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:g,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-dae2e5d7.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-1d57f370.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-dae2e5d7.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-1d57f370.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
+ 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-dae2e5d7.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-1d57f370.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-dae2e5d7.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-fa8b30f4.js";
1
+ import"react";import"classnames";export{S as StepBar}from"../../step-bar-3be165d2.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-fa8b30f4";
4
+ import { SteppedProgressBarView } from "../step-bar-3be165d2";
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-fa8b30f4.js";import"../typography/text/component.js";import"../colors.module-1d57f370.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n=function(e){var n=e.maxStep,p=e.description,s=e.step,m=void 0===s?0:s,c=e.view,l=e.dataTestId,d=e.className,f=n<=0?1:n,y="string"==typeof c;return t.createElement("div",{className:r(a.component,d),"data-test-id":l},t.createElement("div",{className:a.stepsContainer},Array.from(Array(f),(function(e,r){return t.createElement(i,{key:r,isDone:r<m,view:y?c:null==c?void 0:c[r]})}))),p&&t.createElement(o.Text,{color:"secondary",tag:"div",className:a.description,view:"primary-small"},p))},p=function(t){var r=t.maxStep,o=t.initialStep,a=e(void 0===o?1:o),i=a[0],n=a[1];return{step:i,setStep:n,nextStep:function(){n(i<r?i+1:r)},prevStep:function(){n(1===i?i:i-1)}}};export{n as SteppedProgressBar,p as useSteps};
1
+ import t,{useState as e}from"react";import r from"classnames";import{Typography as o}from"../typography/component.js";import{s as a,S as i}from"../step-bar-3be165d2.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.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-1d57f370.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,d=i.leftAddons,l=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{color:"primary",weight:"bold",tag:"span"},a),d&&e.createElement("div",{className:r},d)),l&&e.createElement("div",{className:n},l))};export{i 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-dae2e5d7.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 d=a.text,i=a.leftAddons,l=a.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{color:"primary",weight:"bold",tag:"span"},d),i&&e.createElement("div",{className:r},i)),l&&e.createElement("div",{className:n},l))};export{a as SuperListHeader};
@@ -1 +1 @@
1
- export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-1d57f370.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-dae2e5d7.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-1d57f370.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,f=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),f&&e.createElement(r.Text,{color:"secondary",view:"caps",tag:"div"},f))),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-dae2e5d7.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 +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-1d57f370.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-dae2e5d7.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-1d57f370.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/component.js";import"@alphakits/icons";import"@dnd-kit/core";import"@dnd-kit/sortable";import"@dnd-kit/utilities";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"./components/table-header/index.js";import"@alphakits/icons/dist/ControllerS";import"@alphakits/icons/dist/PlusS";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"@alphakits/icons/dist/CloseS";import"@alphakits/icons/dist/SearchM";import"./hooks/use-table-data.js";import"./utils/add-query-param.js";import"query-string";import"./utils/parse-query-params.js";import"./utils/set-query-to-url.js";import"./utils/get-query-from-url.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/get-tags.js";import"./utils/prepare-rows.js";import"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-bd68b204.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var i={Cell:t,TableComponent:o};export{i as Table};
1
+ import{TableCell as t}from"./components/cell/component.js";import{Table as o}from"./table.js";import"tslib";import"react";import"classnames";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-dae2e5d7.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/component.js";import"@alphakits/icons";import"@dnd-kit/core";import"@dnd-kit/sortable";import"@dnd-kit/utilities";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"./components/table-header/index.js";import"@alphakits/icons/dist/ControllerS";import"@alphakits/icons/dist/PlusS";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"@alphakits/icons/dist/CloseS";import"@alphakits/icons/dist/SearchM";import"./hooks/use-table-data.js";import"./utils/add-query-param.js";import"query-string";import"./utils/parse-query-params.js";import"./utils/set-query-to-url.js";import"./utils/get-query-from-url.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/get-tags.js";import"./utils/prepare-rows.js";import"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-96f99c64.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var i={Cell:t,TableComponent:o};export{i as Table};
@@ -1 +1 @@
1
- import{__assign as e}from"tslib";import t from"react";import i from"classnames";import{Cell as o}from"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-1d57f370.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,d=l.className,c=l.children,p=l.title,h=l.subtitle,_=l.tableProps,g=l.cellProps,u=l.addon,j=l.align,v=l.width,y=l.tag,x=void 0===y?"td":y;return t.createElement(x,e({"data-test-id":a,className:i(r.cell,d,(s={},s[r.is_div]="div"===x,s)),style:{width:v}},_),c?t.createElement("div",{className:i(r.children,(n={},n[r.center]="center"===j,n[r.right]="right"===j,n))},c):t.createElement(o.Base,e({title:void 0===p?"-":p,subtitle:h,className:i((m={},m[r.center]="center"===j,m[r.right]="right"===j,m)),addon:u},g)))};export{l as TableCell};
1
+ import{__assign as e}from"tslib";import t from"react";import i from"classnames";import{Cell as o}from"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-dae2e5d7.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,d=l.className,c=l.children,p=l.title,h=l.subtitle,_=l.tableProps,g=l.cellProps,u=l.addon,j=l.align,v=l.width,y=l.tag,x=void 0===y?"td":y;return t.createElement(x,e({"data-test-id":a,className:i(r.cell,d,(s={},s[r.is_div]="div"===x,s)),style:{width:v}},_),c?t.createElement("div",{className:i(r.children,(n={},n[r.center]="center"===j,n[r.right]="right"===j,n))},c):t.createElement(o.Base,e({title:void 0===p?"-":p,subtitle:h,className:i((m={},m[r.center]="center"===j,m[r.right]="right"===j,m)),addon:u},g)))};export{l as TableCell};
@@ -1 +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-1d57f370.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-dae2e5d7.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";
@@ -1 +1 @@
1
- import e from"react";import r from"@alphakits/icons/dist/ChevronForwardS";import t from"classnames";import{Typography as a}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-1d57f370.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o={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 l(l){var c=l.columns,n=l.sort,m=l.order,i=l.addParam,s=l.withDrag;return e.createElement("thead",null,e.createElement("tr",{className:o.header_row},s&&e.createElement("th",{className:o.cell}," "),c.map((function(l){var c,s,d=l.accessor&&n===l.accessor,p=d&&"ASC"===m?"DESC":"ASC";return e.createElement("th",{className:t(o.cell,(c={},c[o.clickable]=l.sort,c)),align:l.align,style:{width:l.width||"auto"},onClick:l.sort?function(){return i({order:p,sort:l.accessor})}:void 0},e.createElement(a.Text,{className:o.head_wrapper,view:"caps",tag:"div",color:"secondary",weight:"medium"},l.header,l.sort&&e.createElement("span",{className:t(o.arrow,o[p],(s={},s[o.accent]=d,s))},e.createElement(r,null))))}))))}export{l as Cells};
1
+ import e from"react";import r from"@alphakits/icons/dist/ChevronForwardS";import t from"classnames";import{Typography as a}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-dae2e5d7.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var o={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 l(l){var c=l.columns,n=l.sort,m=l.order,i=l.addParam,d=l.withDrag;return e.createElement("thead",null,e.createElement("tr",{className:o.header_row},d&&e.createElement("th",{className:o.cell}," "),c.map((function(l){var c,d,s=l.accessor&&n===l.accessor,p=s&&"ASC"===m?"DESC":"ASC";return e.createElement("th",{className:t(o.cell,(c={},c[o.clickable]=l.sort,c)),align:l.align,style:{width:l.width||"auto"},onClick:l.sort?function(){return i({order:p,sort:l.accessor})}:void 0},e.createElement(a.Text,{className:o.head_wrapper,view:"caps",tag:"div",color:"secondary",weight:"medium"},l.header,l.sort&&e.createElement("span",{className:t(o.arrow,o[p],(d={},d[o.accent]=s,d))},e.createElement(r,null))))}))))}export{l 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-1d57f370.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-dae2e5d7.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};