@alphakits/ui 1.30.36 → 1.30.38

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 (151) hide show
  1. package/dist/amount/component.js +1 -1
  2. package/dist/amount/index.js +1 -1
  3. package/dist/amount-input/component.d.ts +1 -1
  4. package/dist/avatar/component.js +1 -1
  5. package/dist/avatar/index.js +1 -1
  6. package/dist/base-card/component.js +1 -1
  7. package/dist/base-card/index.js +1 -1
  8. package/dist/button/component.d.ts +1 -1
  9. package/dist/calendar/component.js +1 -1
  10. package/dist/calendar/components/days-table/component.js +1 -1
  11. package/dist/calendar/components/days-table/index.js +1 -1
  12. package/dist/calendar/components/header/index.js +1 -1
  13. package/dist/calendar/components/header//321/201omponent.js +1 -1
  14. package/dist/calendar/components/months-table/index.js +1 -1
  15. package/dist/calendar/components/months-table//321/201omponent.js +1 -1
  16. package/dist/calendar/components/select-button//321/201omponent.d.ts +1 -1
  17. package/dist/calendar/index.js +1 -1
  18. package/dist/calendar-input/component.d.ts +1 -1
  19. package/dist/calendar-input/component.js +1 -1
  20. package/dist/calendar-input/index.js +1 -1
  21. package/dist/{capitalize-3ab8ff5a.js → capitalize-ab51a93b.js} +1 -1
  22. package/dist/card/component.js +1 -1
  23. package/dist/card/images/index.js +1 -1
  24. package/dist/card/index.js +1 -1
  25. package/dist/cell/base/component.js +1 -1
  26. package/dist/cell/component.js +1 -1
  27. package/dist/cell/index.js +1 -1
  28. package/dist/checkbox-group/component.js +1 -1
  29. package/dist/checkbox-group/index.js +1 -1
  30. package/dist/checkbox-lists/component.js +1 -1
  31. package/dist/checkbox-lists/index.js +1 -1
  32. package/dist/collapsable-row/addons.js +1 -1
  33. package/dist/collapsable-row/component.js +1 -1
  34. package/dist/collapsable-row/index.js +1 -1
  35. package/dist/collapse/component.js +1 -1
  36. package/dist/collapse/index.js +1 -1
  37. package/dist/copy-button/component.js +1 -1
  38. package/dist/copy-button/index.js +1 -1
  39. package/dist/date/component.js +1 -1
  40. package/dist/date/index.js +1 -1
  41. package/dist/date-switcher/component.js +1 -1
  42. package/dist/date-switcher/index.js +1 -1
  43. package/dist/empty-page/component.js +1 -1
  44. package/dist/empty-page/index.js +1 -1
  45. package/dist/footer/component.js +1 -1
  46. package/dist/footer/contact-block.js +1 -1
  47. package/dist/footer/index.js +1 -1
  48. package/dist/form/component.js +1 -1
  49. package/dist/form/index.js +1 -1
  50. package/dist/form/templates/filters-form/index.js +1 -1
  51. package/dist/form/templates/rest-form/form.js +1 -1
  52. package/dist/form/templates/rest-form/index.js +1 -1
  53. package/dist/form-control/component.d.ts +1 -1
  54. package/dist/grid/col/component.js +1 -1
  55. package/dist/grid/col/index.js +1 -1
  56. package/dist/grid/component.js +1 -1
  57. package/dist/grid/index.js +1 -1
  58. package/dist/grid/row/component.js +1 -1
  59. package/dist/grid/row/index.js +1 -1
  60. package/dist/image/component.js +1 -1
  61. package/dist/image/image-base.js +1 -1
  62. package/dist/image/index.js +1 -1
  63. package/dist/image/use-image-render-component.js +1 -1
  64. package/dist/image-uploader/component.js +1 -1
  65. package/dist/image-uploader/index.js +1 -1
  66. package/dist/index.css +1 -1
  67. package/dist/info-block-header/component.js +1 -1
  68. package/dist/info-block-header/index.js +1 -1
  69. package/dist/info-block-item/component.js +1 -1
  70. package/dist/info-block-item/index.js +1 -1
  71. package/dist/input/component.d.ts +1 -1
  72. package/dist/input-autocomplete/component.d.ts +2 -2
  73. package/dist/list-allert/component.js +1 -1
  74. package/dist/list-allert/index.js +1 -1
  75. package/dist/masked-input/component.d.ts +1 -1
  76. package/dist/menu/component.js +1 -1
  77. package/dist/menu/components/content-header/index.js +1 -1
  78. package/dist/menu/components/index.js +1 -1
  79. package/dist/menu/components/menu-avatar/index.js +1 -1
  80. package/dist/menu/components/menu-button/index.js +1 -1
  81. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  82. package/dist/menu/components/user-button/index.js +1 -1
  83. package/dist/menu/index.js +1 -1
  84. package/dist/message/component.js +1 -1
  85. package/dist/message/index.js +1 -1
  86. package/dist/modal/components/modals/modal.js +1 -1
  87. package/dist/notification/component.d.ts +1 -1
  88. package/dist/page-with-controls/component.js +1 -1
  89. package/dist/page-with-controls/index.js +1 -1
  90. package/dist/picker-button/common/index.js +1 -1
  91. package/dist/picker-button/common/labeled-button/index.js +1 -1
  92. package/dist/picker-button/index.js +1 -1
  93. package/dist/progress-bar/component.js +1 -1
  94. package/dist/progress-bar/index.js +1 -1
  95. package/dist/progress-index/component.js +1 -1
  96. package/dist/progress-index/index.js +1 -1
  97. package/dist/radio/component.d.ts +1 -1
  98. package/dist/radio-group/component.js +1 -1
  99. package/dist/radio-group/index.js +1 -1
  100. package/dist/radio-groups/component.js +1 -1
  101. package/dist/radio-groups/index.js +1 -1
  102. package/dist/select/component.d.ts +1 -1
  103. package/dist/sidepanel/component.js +1 -1
  104. package/dist/sidepanel/index.js +1 -1
  105. package/dist/sidepanel-header/component.js +1 -1
  106. package/dist/sidepanel-header/index.js +1 -1
  107. package/dist/stepped-progress-bar/components/step-bar.js +1 -1
  108. package/dist/stepped-progress-bar/index.d.ts +1 -1
  109. package/dist/stepped-progress-bar/index.js +1 -1
  110. package/dist/suffix-input/component.d.ts +1 -1
  111. package/dist/super-list-header/component.js +1 -1
  112. package/dist/super-list-header/index.js +1 -1
  113. package/dist/super-list-item/component.js +1 -1
  114. package/dist/super-list-item/index.js +1 -1
  115. package/dist/table/component.js +1 -1
  116. package/dist/table/components/cell/component.js +1 -1
  117. package/dist/table/components/cell/index.js +1 -1
  118. package/dist/table/components/cells/index.js +1 -1
  119. package/dist/table/components/empty-list/index.js +1 -1
  120. package/dist/table/components/error/index.js +1 -1
  121. package/dist/table/components/loading/index.js +1 -1
  122. package/dist/table/components/pagination/index.js +1 -1
  123. package/dist/table/index.js +1 -1
  124. package/dist/table/table.js +1 -1
  125. package/dist/table/utils/prepare-rows.js +1 -1
  126. package/dist/table-status/component.js +1 -1
  127. package/dist/table-status/index.js +1 -1
  128. package/dist/tag/component.js +1 -1
  129. package/dist/tag/index.js +1 -1
  130. package/dist/tags-list/component.js +1 -1
  131. package/dist/tags-list/index.js +1 -1
  132. package/dist/textarea/component.d.ts +1 -1
  133. package/dist/toast/component.d.ts +1 -1
  134. package/dist/toast-notifier/component.js +1 -1
  135. package/dist/typography/component.js +1 -1
  136. package/dist/typography/index.js +1 -1
  137. package/dist/typography/text/component.js +1 -1
  138. package/dist/typography/text/index.js +1 -1
  139. package/dist/typography/title/component.js +1 -1
  140. package/dist/typography/title/index.js +1 -1
  141. package/dist/with-suffix/component.d.ts +1 -1
  142. package/package.json +1 -1
  143. /package/dist/{colors.module-79a36aab.js → colors.module-9e6691de.js} +0 -0
  144. /package/dist/{contact-block-8241c33b.d.ts → contact-block-0be82738.d.ts} +0 -0
  145. /package/dist/{contact-block-8241c33b.js → contact-block-0be82738.js} +0 -0
  146. /package/dist/{gutters.module-1cb6bc23.js → gutters.module-e12e93fb.js} +0 -0
  147. /package/dist/{isSymbol-8ebd1040.js → isSymbol-474ec44c.js} +0 -0
  148. /package/dist/{step-bar-73483891.d.ts → step-bar-de4a2680.d.ts} +0 -0
  149. /package/dist/{step-bar-73483891.js → step-bar-de4a2680.js} +0 -0
  150. /package/dist/{use-image-render-component-e4a0d64a.d.ts → use-image-render-component-b567cc3a.d.ts} +0 -0
  151. /package/dist/{use-image-render-component-e4a0d64a.js → use-image-render-component-b567cc3a.js} +0 -0
@@ -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-79a36aab.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var r={cell:"index-module_cell__SVZPV",right:"index-module_right__30pJO",children:"index-module_children__X0572",is_div:"index-module_is_div__XHlH-"},l=function(l){var s,n,a,m=l.dataTestID,c=l.className,d=l.children,p=l.title,h=l.subtitle,_=l.tableProps,g=l.cellProps,u=l.addon,j=l.align,v=l.width,y=l.tag,x=void 0===y?"td":y;return t.createElement(x,e({"data-test-id":m,className:i(r.cell,c,(s={},s[r.is_div]="div"===x,s)),style:{width:v}},_),d?t.createElement("div",{className:i(r.children,(n={},n[r.center]="center"===j,n[r.right]="right"===j,n))},d):t.createElement(o.Base,e({title:void 0===p?"-":p,subtitle:h,className:i((a={},a[r.center]="center"===j,a[r.right]="right"===j,a)),addon:u},g)))};export{l as TableCell};
1
+ import{__assign as e}from"tslib";import t from"react";import i from"classnames";import{Cell as o}from"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-9e6691de.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-79a36aab.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-9e6691de.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 a from"classnames";import{Typography as o}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-79a36aab.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var t={header_row:"index-module_header_row__-IYYq",cell:"index-module_cell__c2wSL",clickable:"index-module_clickable__uhIIg",head_wrapper:"index-module_head_wrapper__WjtNB",arrow:"index-module_arrow__svnkJ",accent:"index-module_accent__5Dn8Q",DESC:"index-module_DESC__p2eV7",ASC:"index-module_ASC__fIiQ-"};function c(c){var l=c.columns,n=c.sort,i=c.order,m=c.addParam;return e.createElement("thead",null,e.createElement("tr",{className:t.header_row},l.map((function(c){var l,d,s=c.accessor&&n===c.accessor,p=s&&"ASC"===i?"DESC":"ASC";return e.createElement("th",{className:a(t.cell,(l={},l[t.clickable]=c.sort,l)),align:c.align,style:{width:c.width||"auto"},onClick:c.sort?function(){return m({order:p,sort:c.accessor})}:void 0},e.createElement(o.Text,{className:t.head_wrapper,view:"caps",tag:"div",color:"secondary",weight:"medium"},c.header,c.sort&&e.createElement("span",{className:a(t.arrow,t[p],(d={},d[t.accent]=s,d))},e.createElement(r,null))))}))))}export{c as Cells};
1
+ import e from"react";import r from"@alphakits/icons/dist/ChevronForwardS";import o from"classnames";import{Typography as t}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-9e6691de.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var a={header_row:"index-module_header_row__-IYYq",cell:"index-module_cell__c2wSL",clickable:"index-module_clickable__uhIIg",head_wrapper:"index-module_head_wrapper__WjtNB",arrow:"index-module_arrow__svnkJ",accent:"index-module_accent__5Dn8Q",DESC:"index-module_DESC__p2eV7",ASC:"index-module_ASC__fIiQ-"};function c(c){var l=c.columns,n=c.sort,i=c.order,m=c.addParam;return e.createElement("thead",null,e.createElement("tr",{className:a.header_row},l.map((function(c){var l,d,s=c.accessor&&n===c.accessor,p=s&&"ASC"===i?"DESC":"ASC";return e.createElement("th",{className:o(a.cell,(l={},l[a.clickable]=c.sort,l)),align:c.align,style:{width:c.width||"auto"},onClick:c.sort?function(){return m({order:p,sort:c.accessor})}:void 0},e.createElement(t.Text,{className:a.head_wrapper,view:"caps",tag:"div",color:"secondary",weight:"medium"},c.header,c.sort&&e.createElement("span",{className:o(a.arrow,a[p],(d={},d[a.accent]=s,d))},e.createElement(r,null))))}))))}export{c as Cells};
@@ -1 +1 @@
1
- import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-79a36aab.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-9e6691de.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__dwgN3",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{color:"primary",view:"title"},o(p)("emptyList")))};export{m as EmptyList};
@@ -1 +1 @@
1
- import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-79a36aab.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__FWx71",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{color:"primary",view:"title"},o(p)("error")))};export{m as Error};
1
+ import t from"react";import{Typography as e}from"../../../typography/component.js";import{translate as o}from"../../languages/index.js";import"../../../typography/text/component.js";import"classnames";import"../../../colors.module-9e6691de.js";import"../../../typography/title/index.js";import"tslib";import"../../../typography/title/component.js";var r="index-module_empty_list__FWx71",m=function(m){var p=m.language;return t.createElement("div",{className:r},t.createElement(e.Text,{color:"primary",view:"title"},o(p)("error")))};export{m as Error};
@@ -1 +1 @@
1
- import t,{memo as e}from"react";import o from"classnames";import{TableCell as r}from"../cell/component.js";import"tslib";import"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-79a36aab.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var n={td:"index-module_td__tJ38Q",tr:"index-module_tr__bQ4Yc",aniVertical:"index-module_aniVertical__QAeK7"},m=e((function(e){var m=e.columnsLength;return t.createElement(t.Fragment,null,new Array(5).fill(1).map((function(){return t.createElement("tr",{className:o(n.row,n.tr)},new Array(m).fill(1).map((function(){return t.createElement(r,null,t.createElement("div",{className:n.td,style:{width:Math.floor(51*Math.random())+50+"%"}}))})))})))}));export{m as Loading};
1
+ import t,{memo as e}from"react";import o from"classnames";import{TableCell as r}from"../cell/component.js";import"tslib";import"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-9e6691de.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var n={td:"index-module_td__tJ38Q",tr:"index-module_tr__bQ4Yc",aniVertical:"index-module_aniVertical__QAeK7"},m=e((function(e){var m=e.columnsLength;return t.createElement(t.Fragment,null,new Array(5).fill(1).map((function(){return t.createElement("tr",{className:o(n.row,n.tr)},new Array(m).fill(1).map((function(){return t.createElement(r,null,t.createElement("div",{className:n.td,style:{width:Math.floor(51*Math.random())+50+"%"}}))})))})))}));export{m as Loading};
@@ -1 +1 @@
1
- import e from"react";import t from"@alphakits/icons/dist/ChevronForwardS";import n from"classnames";import{Button as o}from"../../../button/component.js";import{Typography as a}from"../../../typography/component.js";import{translate as r}from"../../languages/index.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-79a36aab.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_pagination_wrap__kmile",m="index-module_pagination__36rf5",l="index-module_pages_info__9QuwE",s="index-module_prev_btn__UnDy5",c="index-module_disabled_btn__G6J6W",p="index-module_pagination_btn__vexgb",d="index-module_btn__-Zrx2",u="index-module_active__F46kP",_="index-module_select__XysEX";var g=function(g){var f,v,h=g.pagesCount,x=g.currentPage,E=g.recordsPerPage,y=void 0===E?30:E,b=g.total,w=g.language,k=g.addParam,j=function(e,t){for(var n=e-2,o=e+2+1,a=[],r=[],i=0,m=1;m<=t;m++)(1===m||m===t||m>=n&&m<o)&&a.push(m);return a.forEach((function(e){i&&(e-i==2?r.push(i+1):e-i!=1&&r.push("...")),r.push(e),i=e})),r}(x,h),N=1===x,C=x===h;return e.createElement("div",{className:i},e.createElement("div",{className:l},e.createElement(a.Text,{view:"title",weight:"medium",color:"secondary"},r(w)("totalCount")),e.createElement(a.Text,{view:"title",weight:"medium",color:"primary"},b)),j.length>1&&e.createElement("div",{className:m},e.createElement(o,{className:n(s,d,(f={},f[c]=N,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return k({page:x-1})},disabled:N}),j.map((function(t,a){var r;return Number.isFinite(t)?e.createElement(o,{className:n(p,(r={},r[u]=t===x,r)),size:"xs",view:"ghost",key:t,onClick:function(){return k({page:t})}},t):e.createElement(o,{key:t+a,className:n(p),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(d,(v={},v[c]=C,v)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){k({page:x+1})},disabled:C})),e.createElement("select",{value:y,className:_,onChange:function(e){k({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},r(w)("resultsOnPage")+"    "+t+"   ")}))))};export{g as Pagination};
1
+ import e from"react";import t from"@alphakits/icons/dist/ChevronForwardS";import n from"classnames";import{Button as o}from"../../../button/component.js";import{Typography as a}from"../../../typography/component.js";import{translate as r}from"../../languages/index.js";import"tslib";import"react-merge-refs";import"../../../hooks/useFocus/index.js";import"../../../loader/component.js";import"../../../typography/text/component.js";import"../../../colors.module-9e6691de.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";var i="index-module_pagination_wrap__kmile",m="index-module_pagination__36rf5",l="index-module_pages_info__9QuwE",s="index-module_prev_btn__UnDy5",c="index-module_disabled_btn__G6J6W",d="index-module_pagination_btn__vexgb",p="index-module_btn__-Zrx2",u="index-module_active__F46kP",_="index-module_select__XysEX";var g=function(g){var f,v,h=g.pagesCount,x=g.currentPage,E=g.recordsPerPage,y=void 0===E?30:E,b=g.total,w=g.language,k=g.addParam,j=function(e,t){for(var n=e-2,o=e+2+1,a=[],r=[],i=0,m=1;m<=t;m++)(1===m||m===t||m>=n&&m<o)&&a.push(m);return a.forEach((function(e){i&&(e-i==2?r.push(i+1):e-i!=1&&r.push("...")),r.push(e),i=e})),r}(x,h),N=1===x,C=x===h;return e.createElement("div",{className:i},e.createElement("div",{className:l},e.createElement(a.Text,{view:"title",weight:"medium",color:"secondary"},r(w)("totalCount")),e.createElement(a.Text,{view:"title",weight:"medium",color:"primary"},b)),j.length>1&&e.createElement("div",{className:m},e.createElement(o,{className:n(s,p,(f={},f[c]=N,f)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){return k({page:x-1})},disabled:N}),j.map((function(t,a){var r;return Number.isFinite(t)?e.createElement(o,{className:n(d,(r={},r[u]=t===x,r)),size:"xs",view:"ghost",key:t,onClick:function(){return k({page:t})}},t):e.createElement(o,{key:t+a,className:n(d),view:"ghost",disabled:!0},"...")})),e.createElement(o,{className:n(p,(v={},v[c]=C,v)),leftAddons:e.createElement(t,null),view:"ghost",onClick:function(){k({page:x+1})},disabled:C})),e.createElement("select",{value:y,className:_,onChange:function(e){k({page:1,limit:e.target.value})}},[5,10,20,30,40,50].map((function(t){return e.createElement("option",{key:t,value:t},r(w)("resultsOnPage")+"    "+t+"   ")}))))};export{g as Pagination};
@@ -1 +1 @@
1
- export{Table}from"./component.js";export{TableCell}from"./components/cell/component.js";import"./table.js";import"react";import"classnames";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-79a36aab.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/table-header/index.js";import"@alphakits/icons/dist/ControllerS";import"@alphakits/icons/dist/PlusS";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"@alphakits/icons/dist/CloseS";import"@alphakits/icons/dist/SearchM";import"./hooks/use-table-data.js";import"./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-e4a0d64a.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";
1
+ export{Table}from"./component.js";export{TableCell}from"./components/cell/component.js";import"./table.js";import"react";import"classnames";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9e6691de.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/table-header/index.js";import"@alphakits/icons/dist/ControllerS";import"@alphakits/icons/dist/PlusS";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"@alphakits/icons/dist/CloseS";import"@alphakits/icons/dist/SearchM";import"./hooks/use-table-data.js";import"./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-b567cc3a.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";
@@ -1 +1 @@
1
- import e,{useCallback as t,useEffect as o,useMemo as r}from"react";import a from"classnames";import{Cells as i}from"./components/cells/index.js";import{EmptyList as n}from"./components/empty-list/index.js";import{Error as s}from"./components/error/index.js";import{Loading as l}from"./components/loading/index.js";import{Pagination as m}from"./components/pagination/index.js";import{TableHeader as p}from"./components/table-header/index.js";import{useTableData as c}from"./hooks/use-table-data.js";import{getTags as d}from"./utils/get-tags.js";import{prepareRows as u}from"./utils/prepare-rows.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-79a36aab.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./languages/index.js";import"./components/cell/component.js";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.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"./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"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-e4a0d64a.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var g={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function h(h){var j=h.columns,f=h.searchPlaceholder,b=void 0===f?"Поиск по таблице":f,k=h.records,v=h.hideSearch,y=h.rightHeaderAddons,x=h.leftHeaderAddons,P=h.filtersButtonLabel,_=h.createButtonLabel,C=h.loading,E=h.height,S=void 0===E?"fill":E,w=h.tagsBuilder,B=h.promise,q=h.onRowClick,F=h.onCreateClick,L=h.onFiltersClick,A=h.refetch,H=h.language,D=h.fromPath,N=c({promise:B,records:k,fromPath:void 0===D||D}),T=N.loading,M=N.error,z=N.data,I=N.total,Q=N.params,R=N.pagesCount,V=N.updateData,G=N.addParam,J=N.removeParam,K=N.resetParams,O=F?function(){return F(V)}:void 0,U=t((function(e){K(e)}),[K]);o((function(){V()}),[]);var W=function(){return L?L({submitCallback:function(e){return U(e)},initialValues:Q}):null},X=function(e){G(e)},Y=d({params:(null==Q?void 0:Q.where)||{},onDelete:function(e,t){J(e,t)},tagsBuilder:w,onClick:W}),Z=r((function(){return u({columns:j,data:z,refetch:A||V})}),[z,j]),$=T||C;return e.createElement("div",{className:a(g.table_wrapper,g[S])},(!v||y||x||F||L)&&e.createElement(p,{language:H,hideSearch:v,rightHeaderAddons:y,leftHeaderAddons:x,searchText:(null==Q?void 0:Q.searchText)||"",addParam:X,searchPlaceholder:b,filtersButtonLabel:P,tags:Y,onCreateClick:O,createButtonLabel:_,onFiltersClick:W,showFiltersButton:!!L}),e.createElement("div",{className:g.table},e.createElement("table",{cellSpacing:"0",cellPadding:"0"},e.createElement(i,{sort:null==Q?void 0:Q.sort,order:null==Q?void 0:Q.order,addParam:X,columns:j}),e.createElement("tbody",null,M&&e.createElement(s,{language:H}),!Z.length&&!$&&!M&&e.createElement(n,{language:H}),$&&e.createElement(l,{columnsLength:j.length}),Z.map((function(t){var o,r=t.row,i=t.cells;return e.createElement("tr",{onClick:function(){return e=r,null==q?void 0:q(e,V);var e},className:a((o={},o[g.clickable]=!!q,o)),style:{visibility:$?"collapse":"visible"}},i.map((function(e){return e})))}))))),!!B&&e.createElement(m,{language:H,currentPage:Q?+Q.page:1,recordsPerPage:Q?+Q.limit:10,pagesCount:+R,addParam:X,total:+I}))}export{h as Table};
1
+ import e,{useCallback as t,useEffect as o,useMemo as r}from"react";import i from"classnames";import{Cells as a}from"./components/cells/index.js";import{EmptyList as n}from"./components/empty-list/index.js";import{Error as s}from"./components/error/index.js";import{Loading as l}from"./components/loading/index.js";import{Pagination as m}from"./components/pagination/index.js";import{TableHeader as p}from"./components/table-header/index.js";import{useTableData as c}from"./hooks/use-table-data.js";import{getTags as d}from"./utils/get-tags.js";import{prepareRows as u}from"./utils/prepare-rows.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9e6691de.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./languages/index.js";import"./components/cell/component.js";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.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"./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"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-b567cc3a.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var g={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function h(h){var j=h.columns,f=h.searchPlaceholder,b=void 0===f?"Поиск по таблице":f,k=h.records,v=h.hideSearch,y=h.rightHeaderAddons,x=h.leftHeaderAddons,P=h.filtersButtonLabel,_=h.createButtonLabel,C=h.loading,E=h.height,S=void 0===E?"fill":E,w=h.tagsBuilder,B=h.promise,q=h.onRowClick,F=h.onCreateClick,L=h.onFiltersClick,A=h.refetch,H=h.language,D=h.fromPath,N=c({promise:B,records:k,fromPath:void 0===D||D}),T=N.loading,M=N.error,z=N.data,I=N.total,Q=N.params,R=N.pagesCount,V=N.updateData,G=N.addParam,J=N.removeParam,K=N.resetParams,O=F?function(){return F(V)}:void 0,U=t((function(e){K(e)}),[K]);o((function(){V()}),[]);var W=function(){return L?L({submitCallback:function(e){return U(e)},initialValues:Q}):null},X=function(e){G(e)},Y=d({params:(null==Q?void 0:Q.where)||{},onDelete:function(e,t){J(e,t)},tagsBuilder:w,onClick:W}),Z=r((function(){return u({columns:j,data:z,refetch:A||V})}),[z,j]),$=T||C;return e.createElement("div",{className:i(g.table_wrapper,g[S])},(!v||y||x||F||L)&&e.createElement(p,{language:H,hideSearch:v,rightHeaderAddons:y,leftHeaderAddons:x,searchText:(null==Q?void 0:Q.searchText)||"",addParam:X,searchPlaceholder:b,filtersButtonLabel:P,tags:Y,onCreateClick:O,createButtonLabel:_,onFiltersClick:W,showFiltersButton:!!L}),e.createElement("div",{className:g.table},e.createElement("table",{cellSpacing:"0",cellPadding:"0"},e.createElement(a,{sort:null==Q?void 0:Q.sort,order:null==Q?void 0:Q.order,addParam:X,columns:j}),e.createElement("tbody",null,M&&e.createElement(s,{language:H}),!Z.length&&!$&&!M&&e.createElement(n,{language:H}),$&&e.createElement(l,{columnsLength:j.length}),Z.map((function(t){var o,r=t.row,a=t.cells;return e.createElement("tr",{onClick:function(){return e=r,null==q?void 0:q(e,V);var e},className:i((o={},o[g.clickable]=!!q,o)),style:{visibility:$?"collapse":"visible"}},a.map((function(e){return e})))}))))),!!B&&e.createElement(m,{language:H,currentPage:Q?+Q.page:1,recordsPerPage:Q?+Q.limit:10,pagesCount:+R,addParam:X,total:+I}))}export{h as Table};
@@ -1 +1 @@
1
- import o from"react";import t from"@alphakits/icons/dist/PhotoM";import{Image as e}from"../../image/component.js";import{TableCell as i}from"../components/cell/component.js";import"classnames";import"../../skeleton/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-79a36aab.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";import"../../use-image-render-component-e4a0d64a.js";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"../../cell/component.js";import"../../cell/base/component.js";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../cell/pure/component.js";function n(o,t,e){return o?"string"==typeof o?t[o]:"function"==typeof o?o({row:t,refetch:e}):null:null}function r(o,t,e){return o?"string"==typeof o?t[o]:"function"==typeof o?o({row:t,refetch:e}):null:null}function l(l){var s=l.columns,m=l.data,p=l.refetch,c=m.map((function(l){return{row:l,cells:s.map((function(s){var m,c,a,u,d,v,f,g,j,w,y=r((null===(m=s.row)||void 0===m?void 0:m.title)||s.accessor,l,p);if(null===(c=s.row)||void 0===c?void 0:c.image){var h=n(null===(a=s.row)||void 0===a?void 0:a.image,l,p);w=h?o.createElement(e,{bgColor:"secondary",src:h,text:null==y?void 0:y.toString(),view:"ellipse"}):o.createElement(e,{bgColor:"secondary",icon:o.createElement(t,null),text:null==y?void 0:y.toString(),view:"ellipse"})}else if(null===(u=s.row)||void 0===u?void 0:u.icon){var b=n(null===(d=s.row)||void 0===d?void 0:d.icon,l,p);w=o.createElement(e,{icon:b||o.createElement(t,null),text:null==y?void 0:y.toString(),view:"ellipse"})}else(null===(v=s.row)||void 0===v?void 0:v.customAddon)&&(w=n(null===(f=s.row)||void 0===f?void 0:f.customAddon,l,p));return o.createElement(i,{title:y,align:s.align,subtitle:(null===(g=s.row)||void 0===g?void 0:g.subtitle)&&r(null===(j=s.row)||void 0===j?void 0:j.subtitle,l,p),addon:w})}))}}));return c}export{l as prepareRows};
1
+ import o from"react";import t from"@alphakits/icons/dist/PhotoM";import{Image as e}from"../../image/component.js";import{TableCell as i}from"../components/cell/component.js";import"classnames";import"../../skeleton/component.js";import"../../typography/component.js";import"../../typography/text/component.js";import"../../colors.module-9e6691de.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";import"../../use-image-render-component-b567cc3a.js";import"@alphakits/icons/dist/PhotoS";import"../../spinner/component.js";import"../../image/types.js";import"../../image/utils.js";import"../../cell/component.js";import"../../cell/base/component.js";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../cell/pure/component.js";function n(o,t,e){return o?"string"==typeof o?t[o]:"function"==typeof o?o({row:t,refetch:e}):null:null}function r(o,t,e){return o?"string"==typeof o?t[o]:"function"==typeof o?o({row:t,refetch:e}):null:null}function l(l){var s=l.columns,m=l.data,p=l.refetch,c=m.map((function(l){return{row:l,cells:s.map((function(s){var m,c,u,a,d,v,f,g,j,w,y=r((null===(m=s.row)||void 0===m?void 0:m.title)||s.accessor,l,p);if(null===(c=s.row)||void 0===c?void 0:c.image){var h=n(null===(u=s.row)||void 0===u?void 0:u.image,l,p);w=h?o.createElement(e,{bgColor:"secondary",src:h,text:null==y?void 0:y.toString(),view:"ellipse"}):o.createElement(e,{bgColor:"secondary",icon:o.createElement(t,null),text:null==y?void 0:y.toString(),view:"ellipse"})}else if(null===(a=s.row)||void 0===a?void 0:a.icon){var b=n(null===(d=s.row)||void 0===d?void 0:d.icon,l,p);w=o.createElement(e,{icon:b||o.createElement(t,null),text:null==y?void 0:y.toString(),view:"ellipse"})}else(null===(v=s.row)||void 0===v?void 0:v.customAddon)&&(w=n(null===(f=s.row)||void 0===f?void 0:f.customAddon,l,p));return o.createElement(i,{title:y,align:s.align,subtitle:(null===(g=s.row)||void 0===g?void 0:g.subtitle)&&r(null===(j=s.row)||void 0===j?void 0:j.subtitle,l,p),addon:w})}))}}));return c}export{l as prepareRows};
@@ -1 +1 @@
1
- import e from"react";import t from"@alphakits/icons/dist/AlertCircleM";import o from"@alphakits/icons/dist/CancelM";import r from"@alphakits/icons/dist/CheckmarkCircleM";import i from"@alphakits/icons/dist/ClockCircleM";import a from"classnames";import{Typography as l}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-79a36aab.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var m="index-module_icon__xCdQr",n="index-module_text__0SHQw",c=function(c){var s=c.text,p=c.view,d=void 0===p?"secondary":p,u=c.className,h={negative:e.createElement(o,null),positive:e.createElement(r,null),secondary:e.createElement(i,null),accent:e.createElement(o,null),attention:e.createElement(t,null)};return e.createElement(l.Text,{className:a(n,u),tag:"div",view:"caps",weight:"medium",color:d},e.createElement("span",{className:m},h[d])," ",s)};export{c as TableStatus};
1
+ import e from"react";import t from"@alphakits/icons/dist/AlertCircleM";import o from"@alphakits/icons/dist/CancelM";import r from"@alphakits/icons/dist/CheckmarkCircleM";import i from"@alphakits/icons/dist/ClockCircleM";import a from"classnames";import{Typography as l}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9e6691de.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var m="index-module_icon__xCdQr",n="index-module_text__0SHQw",c=function(c){var s=c.text,p=c.view,d=void 0===p?"secondary":p,u=c.className,h={negative:e.createElement(o,null),positive:e.createElement(r,null),secondary:e.createElement(i,null),accent:e.createElement(o,null),attention:e.createElement(t,null)};return e.createElement(l.Text,{className:a(n,u),tag:"div",view:"caps",weight:"medium",color:d},e.createElement("span",{className:m},h[d])," ",s)};export{c as TableStatus};
@@ -1 +1 @@
1
- export{TableStatus}from"./component.js";import"react";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CancelM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-79a36aab.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
1
+ export{TableStatus}from"./component.js";import"react";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CancelM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"classnames";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-9e6691de.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import t from"react";import e from"@alphakits/icons/dist/CloseS";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{Typography as r}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-79a36aab.js";import"../typography/title/index.js";import"../typography/title/component.js";var n={tag:"index-module_tag__ePuZ7",s:"index-module_s__JQOAw",m:"index-module_m__6q9L4",text:"index-module_text__cc9CM",primary:"index-module_primary__nTVdF","primary-inverted":"index-module_primary-inverted__G6REX",leftAddons:"index-module_leftAddons__EODuG",rightAddons:"index-module_rightAddons__ERYKA"},s=function(s){var a,m=s.text,d=s.onClick,l=s.onCloseClick,p=s.view,c=void 0===p?"primary":p,_=s.weight,u=void 0===_?"regular":_,g=s.leftAddons,x=s.rightAddons,h=s.dataTestId,y=s.size,f=void 0===y?"m":y,A=s.className;return t.createElement("button",{type:"button","data-test-id":h,onClick:d,disabled:!d&&!l,className:o(n.tag,n[c],n[f],(a={},a[n.show_cross]=!!l,a),A)},g&&t.createElement("span",{className:n.leftAddons},g),t.createElement(r.Text,{className:n.text,view:"title",weight:u,color:c},m),x&&t.createElement("span",{className:n.rightAddons},x),!!l&&t.createElement("span",{className:n.rightAddons},t.createElement(i,{icon:e,"data-test-id":h+"_close",type:"button",view:"ghost","aria-label":"close-tag",onClick:function(t){t.stopPropagation(),l()}})))};export{s as Tag};
1
+ import e from"react";import t from"@alphakits/icons/dist/CloseS";import o from"classnames";import{IconButton as i}from"../icon-button/component.js";import{Typography as r}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-9e6691de.js";import"../typography/title/index.js";import"../typography/title/component.js";var n={tag:"index-module_tag__ePuZ7",s:"index-module_s__JQOAw",m:"index-module_m__6q9L4",text:"index-module_text__cc9CM",primary:"index-module_primary__nTVdF","primary-inverted":"index-module_primary-inverted__G6REX",leftAddons:"index-module_leftAddons__EODuG",rightAddons:"index-module_rightAddons__ERYKA"},s=function(s){var a,m=s.text,d=s.onClick,l=s.onCloseClick,p=s.view,c=void 0===p?"primary":p,_=s.weight,u=void 0===_?"regular":_,g=s.leftAddons,x=s.rightAddons,h=s.dataTestId,y=s.size,f=void 0===y?"m":y,A=s.className;return e.createElement("button",{type:"button","data-test-id":h,onClick:d,disabled:!d&&!l,className:o(n.tag,n[c],n[f],(a={},a[n.show_cross]=!!l,a),A)},g&&e.createElement("span",{className:n.leftAddons},g),e.createElement(r.Text,{className:n.text,view:"title",weight:u,color:c},m),x&&e.createElement("span",{className:n.rightAddons},x),!!l&&e.createElement("span",{className:n.rightAddons},e.createElement(i,{icon:t,"data-test-id":h+"_close",type:"button",view:"ghost","aria-label":"close-tag",onClick:function(e){e.stopPropagation(),l()}})))};export{s as Tag};
package/dist/tag/index.js CHANGED
@@ -1 +1 @@
1
- export{Tag}from"./component.js";import"react";import"@alphakits/icons/dist/CloseS";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-79a36aab.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{Tag}from"./component.js";import"react";import"@alphakits/icons/dist/CloseS";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-9e6691de.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -1 +1 @@
1
- import o from"react";import{Tag as t}from"../tag/component.js";import"@alphakits/icons/dist/CloseS";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-79a36aab.js";import"../typography/title/index.js";import"../typography/title/component.js";var e="index-module_tags__C28AJ",r=function(r){var i=r.tags,n=r.view,p=void 0===n?"primary":n,m=r.onClick,s=r.onCloseClick;return o.createElement("div",{className:e},(null==i?void 0:i.length)&&i.map((function(e){return o.createElement(t,{key:e,text:e,onClick:m,onCloseClick:s,view:p})})))};export{r as TagsList};
1
+ import o from"react";import{Tag as t}from"../tag/component.js";import"@alphakits/icons/dist/CloseS";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-9e6691de.js";import"../typography/title/index.js";import"../typography/title/component.js";var e="index-module_tags__C28AJ",r=function(r){var i=r.tags,n=r.view,p=void 0===n?"primary":n,m=r.onClick,s=r.onCloseClick;return o.createElement("div",{className:e},(null==i?void 0:i.length)&&i.map((function(e){return o.createElement(t,{key:e,text:e,onClick:m,onCloseClick:s,view:p})})))};export{r as TagsList};
@@ -1 +1 @@
1
- export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"@alphakits/icons/dist/CloseS";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-79a36aab.js";import"../typography/title/index.js";import"../typography/title/component.js";
1
+ export{TagsList}from"./component.js";import"react";import"../tag/component.js";import"@alphakits/icons/dist/CloseS";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-9e6691de.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -29,7 +29,7 @@ type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' |
29
29
  onHeightChange?: (height?: number) => void;
30
30
  dataTestId?: string;
31
31
  };
32
- declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "style" | "value" | "defaultValue" | "onChange"> & {
32
+ declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "style" | "size" | "defaultValue" | "onChange" | "value"> & {
33
33
  value?: string | undefined;
34
34
  defaultValue?: string | undefined;
35
35
  required?: boolean | undefined;
@@ -13,7 +13,7 @@ declare const Toast: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDi
13
13
  contentClassName?: string | undefined;
14
14
  children?: React.ReactNode;
15
15
  title?: React.ReactNode;
16
- view: "attention" | "positive" | "negative" | "default" | "black" | "neutral";
16
+ view: "black" | "attention" | "positive" | "negative" | "default" | "neutral";
17
17
  leftAddons?: React.ReactNode;
18
18
  bottomAddons?: React.ReactNode;
19
19
  dataTestId?: string | undefined;
@@ -1 +1 @@
1
- import{__rest as e,__assign as t}from"tslib";import o from"react";import i from"react-dom";import s from"classnames";import{ToastPlate as n}from"../toast-plate/component.js";import{useTimer as r}from"./use-timer.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a,l="index-module_isVisible__kvaxX",d="index-module_mobile__ARgiW",m="index-module_isClosing__fMPDi",p="index-module_toastContent__WxLt6";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var c=function(c){var u,f=c.className;c.children;var v=c.offset,h=void 0===v?108:v,x=c.hasCloser,C=void 0===x||x;c.onClose;var _=c.text;c.onMouseEnter,c.onMouseLeave;var b=c.style,y=c.position,k=void 0===y?"bottom":y,M=c.delay,g=void 0===M?3e3:M,w=e(c,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","position","delay"]);if("undefined"==typeof window)return null;var E,L=window.innerWidth>600;a.setAttribute("style",(E="position: fixed; z-index: 99999999;",L?E+" "+k+": "+h+"px; right: 30px":E+" top: "+h+"px; right: 30px; left: 30px"));var A=document.createElement("div");A.classList.remove(m),A.setAttribute("id","toast_wrap-"+Math.random()),A.setAttribute("style","margin-bottom: 18px"),a.appendChild(A);var j=function(){A.classList.add(m),setTimeout((function(){null==a||a.removeChild(A)}),300)},N=r(j,g),W=N.pause,z=N.resume;return A.addEventListener("mouseenter",(function(){W()})),A.addEventListener("mouseleave",(function(){z()})),i.render(o.createElement(n,t({hasCloser:C,className:s((u={},u[l]=!0,u[d]=!L,u),f),contentClassName:p,style:t({right:0,position:"relative"},b),role:"alert",onClose:j},w),_),A),null};export{c as ToastNotifier};
1
+ import{__rest as e,__assign as t}from"tslib";import o from"react";import i from"react-dom";import s from"classnames";import{ToastPlate as n}from"../toast-plate/component.js";import{useTimer as r}from"./use-timer.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";var a,l="index-module_isVisible__kvaxX",d="index-module_mobile__ARgiW",m="index-module_isClosing__fMPDi",p="index-module_toastContent__WxLt6";"undefined"!=typeof window&&((a=document.createElement("div")).setAttribute("id","toast_manager"),document.body.appendChild(a));var c=function(c){var u,f=c.className;c.children;var v=c.offset,h=void 0===v?108:v,x=c.hasCloser,C=void 0===x||x;c.onClose;var _=c.text;c.onMouseEnter,c.onMouseLeave;var b=c.style,y=c.position,k=void 0===y?"bottom":y,M=c.delay,g=void 0===M?3e3:M,w=e(c,["className","children","offset","hasCloser","onClose","text","onMouseEnter","onMouseLeave","style","position","delay"]);if("undefined"==typeof window)return null;var E,L=window.innerWidth>600;a.setAttribute("style",(E="position: fixed; z-index: 999999999;",L?E+" "+k+": "+h+"px; right: 30px":E+" top: "+h+"px; right: 30px; left: 30px"));var A=document.createElement("div");A.classList.remove(m),A.setAttribute("id","toast_wrap-"+Math.random()),A.setAttribute("style","margin-bottom: 18px"),a.appendChild(A);var j=function(){A.classList.add(m),setTimeout((function(){null==a||a.removeChild(A)}),300)},N=r(j,g),W=N.pause,z=N.resume;return A.addEventListener("mouseenter",(function(){W()})),A.addEventListener("mouseleave",(function(){z()})),i.render(o.createElement(n,t({hasCloser:C,className:s((u={},u[l]=!0,u[d]=!L,u),f),contentClassName:p,style:t({right:0,position:"relative"},b),role:"alert",onClose:j},w),_),A),null};export{c as ToastNotifier};
@@ -1 +1 @@
1
- import{Text as t}from"./text/component.js";import{Title as o}from"./title/index.js";import"react";import"classnames";import"../colors.module-79a36aab.js";import"tslib";import"./title/component.js";var m={Title:o,Text:t};export{m as Typography};
1
+ import{Text as t}from"./text/component.js";import{Title as o}from"./title/index.js";import"react";import"classnames";import"../colors.module-9e6691de.js";import"tslib";import"./title/component.js";var e={Title:o,Text:t};export{e as Typography};
@@ -1 +1 @@
1
- export{Typography}from"./component.js";import"./text/component.js";import"react";import"classnames";import"../colors.module-79a36aab.js";import"./title/index.js";import"tslib";import"./title/component.js";
1
+ export{Typography}from"./component.js";import"./text/component.js";import"react";import"classnames";import"../colors.module-9e6691de.js";import"./title/index.js";import"tslib";import"./title/component.js";
@@ -1 +1 @@
1
- import e from"react";import a from"classnames";import{c as r}from"../../colors.module-79a36aab.js";var m={paragraph:"index-module_paragraph__msaC8","primary-medium":"index-module_primary-medium__LhYfj","primary-small":"index-module_primary-small__lYM88",title:"index-module_title__O9czO",caps:"index-module_caps__l7Eqh",uppercase:"index-module_uppercase__JVKeT",bold:"index-module_bold__RuoQM",medium:"index-module_medium__YL230",regular:"index-module_regular__h8gTH",through:"index-module_through__3EDOt",component:"index-module_component__MPBKM"},d=function(d){var o,l,t=d.tag,_=void 0===t?"span":t,i=d.through,p=void 0!==i&&i,u=d.weight,s=void 0===u?"regular":u,n=d.uppercase,c=d.color,h=d.view,g=d.className,x=d.html,v=d.dataTestId,f=d.children;return x?e.createElement(_,{dangerouslySetInnerHTML:{__html:f},className:a((o={},o[m.paragraph]="p"===_,o[m.uppercase]=n,o[m.through]=p,o[m[h]]=h,o),g,c&&r[c],m[s]),"data-test-id":v}):e.createElement(_,{className:a((l={},l[m.paragraph]="p"===_,l[m.uppercase]=n,l[m.through]=p,l[m[h]]=h,l),g,c&&r[c],m[s]),"data-test-id":v},f)};export{d as Text};
1
+ import e from"react";import a from"classnames";import{c as r}from"../../colors.module-9e6691de.js";var m={paragraph:"index-module_paragraph__msaC8","primary-medium":"index-module_primary-medium__LhYfj","primary-small":"index-module_primary-small__lYM88",title:"index-module_title__O9czO",caps:"index-module_caps__l7Eqh",uppercase:"index-module_uppercase__JVKeT",bold:"index-module_bold__RuoQM",medium:"index-module_medium__YL230",regular:"index-module_regular__h8gTH",through:"index-module_through__3EDOt",component:"index-module_component__MPBKM"},d=function(d){var o,l,t=d.tag,_=void 0===t?"span":t,i=d.through,p=void 0!==i&&i,u=d.weight,s=void 0===u?"regular":u,n=d.uppercase,c=d.color,h=d.view,g=d.className,x=d.html,v=d.dataTestId,f=d.children;return x?e.createElement(_,{dangerouslySetInnerHTML:{__html:f},className:a((o={},o[m.paragraph]="p"===_,o[m.uppercase]=n,o[m.through]=p,o[m[h]]=h,o),g,c&&r[c],m[s]),"data-test-id":v}):e.createElement(_,{className:a((l={},l[m.paragraph]="p"===_,l[m.uppercase]=n,l[m.through]=p,l[m[h]]=h,l),g,c&&r[c],m[s]),"data-test-id":v},f)};export{d as Text};
@@ -1 +1 @@
1
- export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-79a36aab.js";
1
+ export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-9e6691de.js";
@@ -1 +1 @@
1
- import a from"react";import e from"classnames";import{c as r}from"../../colors.module-79a36aab.js";var o=function(o){var t,i=o.tag,m=void 0===i?"div":i,s=o.view,d=void 0===s?"medium":s,c=o.weight,n=void 0===c?"medium":c,l=o.defaultMargins,p=void 0!==l&&l,u=o.color,v=void 0===u?"primary":u,g=o.className,h=o.dataTestId,f=o.uppercase,w=o.through,y=o.children,N=o.styles;return a.createElement(m,{className:e(N.component,g,N["montserrat-"+d],p&&N["margins-"+d],(t={},t[N.uppercase]=f,t[N.through]=w,t),N[n],v&&r[v]),"data-test-id":h},y)};export{o as Title};
1
+ import e from"react";import r from"classnames";import{c as a}from"../../colors.module-9e6691de.js";var o=function(o){var t,i=o.tag,m=void 0===i?"div":i,s=o.view,d=void 0===s?"medium":s,c=o.weight,n=void 0===c?"medium":c,l=o.defaultMargins,p=void 0!==l&&l,u=o.color,v=void 0===u?"primary":u,g=o.className,h=o.dataTestId,f=o.uppercase,w=o.through,y=o.children,N=o.styles;return e.createElement(m,{className:r(N.component,g,N["montserrat-"+d],p&&N["margins-"+d],(t={},t[N.uppercase]=f,t[N.through]=w,t),N[n],v&&a[v]),"data-test-id":h},y)};export{o as Title};
@@ -1 +1 @@
1
- import{__assign as m}from"tslib";import e from"react";import{Title as r}from"./component.js";import"classnames";import"../../colors.module-79a36aab.js";var o={component:"common-module_component__l-zRT",bold:"common-module_bold__R07W3",medium:"common-module_medium__IcxXn",regular:"common-module_regular__2NoXt"},l={"montserrat-xlarge":"index-module_montserrat-xlarge__hdgbt","montserrat-large":"index-module_montserrat-large__Go4Ju","montserrat-medium":"index-module_montserrat-medium__KJdm0","montserrat-small":"index-module_montserrat-small__T0UeA","montserrat-xsmall":"index-module_montserrat-xsmall__9757S","montserrat-xxsmall":"index-module_montserrat-xxsmall__5pe-b","margins-xlarge":"index-module_margins-xlarge__o0X6K","margins-large":"index-module_margins-large__njSHO","margins-medium":"index-module_margins-medium__ir-Bn","margins-small":"index-module_margins-small__F4y4n","margins-xsmall":"index-module_margins-xsmall__69GSc",uppercase:"index-module_uppercase__NG5Qa",through:"index-module_through__ezTzC"},a=function(a){return e.createElement(r,m({},a,{styles:m(m({},o),l)}))};export{a as Title};
1
+ import{__assign as m}from"tslib";import e from"react";import{Title as r}from"./component.js";import"classnames";import"../../colors.module-9e6691de.js";var o={component:"common-module_component__l-zRT",bold:"common-module_bold__R07W3",medium:"common-module_medium__IcxXn",regular:"common-module_regular__2NoXt"},l={"montserrat-xlarge":"index-module_montserrat-xlarge__hdgbt","montserrat-large":"index-module_montserrat-large__Go4Ju","montserrat-medium":"index-module_montserrat-medium__KJdm0","montserrat-small":"index-module_montserrat-small__T0UeA","montserrat-xsmall":"index-module_montserrat-xsmall__9757S","montserrat-xxsmall":"index-module_montserrat-xxsmall__5pe-b","margins-xlarge":"index-module_margins-xlarge__o0X6K","margins-large":"index-module_margins-large__njSHO","margins-medium":"index-module_margins-medium__ir-Bn","margins-small":"index-module_margins-small__F4y4n","margins-xsmall":"index-module_margins-xsmall__69GSc",uppercase:"index-module_uppercase__NG5Qa",through:"index-module_through__ezTzC"},n=function(n){return e.createElement(r,m({},n,{styles:m(m({},o),l)}))};export{n as Title};
@@ -6,7 +6,7 @@ type WithSuffixProps = InputProps & {
6
6
  suffix?: ReactNode;
7
7
  suffixContainerClassName?: string;
8
8
  };
9
- declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "onClick" | "value" | "defaultValue" | "onChange" | "onMouseDown"> & {
9
+ declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "defaultValue" | "onChange" | "onClick" | "onMouseDown" | "value"> & {
10
10
  value?: string | undefined;
11
11
  defaultValue?: string | undefined;
12
12
  block?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphakits/ui",
3
- "version": "1.30.36",
3
+ "version": "1.30.38",
4
4
  "files": [
5
5
  "dist"
6
6
  ],