@alphakits/ui 1.29.1 → 1.30.0

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-f9c48154.js → capitalize-69cbfa74.js} +1 -1
  18. package/dist/card/component.js +1 -1
  19. package/dist/card/images/index.js +1 -1
  20. package/dist/card/index.js +1 -1
  21. package/dist/cell/base/component.js +1 -1
  22. package/dist/cell/component.js +1 -1
  23. package/dist/cell/index.js +1 -1
  24. package/dist/checkbox-group/component.js +1 -1
  25. package/dist/checkbox-group/index.js +1 -1
  26. package/dist/checkbox-lists/component.js +1 -1
  27. package/dist/checkbox-lists/index.js +1 -1
  28. package/dist/collapsable-row/addons.js +1 -1
  29. package/dist/collapsable-row/component.js +1 -1
  30. package/dist/collapsable-row/index.js +1 -1
  31. package/dist/collapse/component.js +1 -1
  32. package/dist/collapse/index.js +1 -1
  33. package/dist/copy-button/component.js +1 -1
  34. package/dist/copy-button/index.js +1 -1
  35. package/dist/date/component.js +1 -1
  36. package/dist/date/index.js +1 -1
  37. package/dist/date-switcher/component.js +1 -1
  38. package/dist/date-switcher/index.js +1 -1
  39. package/dist/empty-page/component.js +1 -1
  40. package/dist/empty-page/index.js +1 -1
  41. package/dist/footer/component.js +1 -1
  42. package/dist/footer/contact-block.js +1 -1
  43. package/dist/footer/index.js +1 -1
  44. package/dist/form/component.js +1 -1
  45. package/dist/form/index.js +1 -1
  46. package/dist/form/templates/filters-form/index.js +1 -1
  47. package/dist/form/templates/rest-form/form.js +1 -1
  48. package/dist/form/templates/rest-form/index.js +1 -1
  49. package/dist/grid/col/component.js +1 -1
  50. package/dist/grid/col/index.js +1 -1
  51. package/dist/grid/component.js +1 -1
  52. package/dist/grid/index.js +1 -1
  53. package/dist/grid/row/component.js +1 -1
  54. package/dist/grid/row/index.js +1 -1
  55. package/dist/image/component.js +1 -1
  56. package/dist/image/image-base.js +1 -1
  57. package/dist/image/index.js +1 -1
  58. package/dist/image/use-image-render-component.js +1 -1
  59. package/dist/image-uploader/component.js +1 -1
  60. package/dist/image-uploader/index.js +1 -1
  61. package/dist/index.css +1 -1
  62. package/dist/info-block-header/component.js +1 -1
  63. package/dist/info-block-header/index.js +1 -1
  64. package/dist/info-block-item/component.js +1 -1
  65. package/dist/info-block-item/index.js +1 -1
  66. package/dist/list-allert/component.js +1 -1
  67. package/dist/list-allert/index.js +1 -1
  68. package/dist/menu/component.js +1 -1
  69. package/dist/menu/components/content-header/index.js +1 -1
  70. package/dist/menu/components/index.js +1 -1
  71. package/dist/menu/components/menu-avatar/index.js +1 -1
  72. package/dist/menu/components/menu-button/index.js +1 -1
  73. package/dist/menu/components/menu-buttons-list/index.js +1 -1
  74. package/dist/menu/components/user-button/index.js +1 -1
  75. package/dist/menu/index.js +1 -1
  76. package/dist/message/component.js +1 -1
  77. package/dist/message/index.js +1 -1
  78. package/dist/page-with-controls/component.js +1 -1
  79. package/dist/page-with-controls/index.js +1 -1
  80. package/dist/picker-button/common/index.js +1 -1
  81. package/dist/picker-button/common/labeled-button/index.js +1 -1
  82. package/dist/picker-button/index.js +1 -1
  83. package/dist/progress-bar/component.js +1 -1
  84. package/dist/progress-bar/index.js +1 -1
  85. package/dist/progress-index/component.js +1 -1
  86. package/dist/progress-index/index.js +1 -1
  87. package/dist/radio-group/component.js +1 -1
  88. package/dist/radio-group/index.js +1 -1
  89. package/dist/radio-groups/component.js +1 -1
  90. package/dist/radio-groups/index.js +1 -1
  91. package/dist/sidepanel/component.js +1 -1
  92. package/dist/sidepanel/index.js +1 -1
  93. package/dist/sidepanel-header/component.js +1 -1
  94. package/dist/sidepanel-header/index.js +1 -1
  95. package/dist/stepped-progress-bar/components/step-bar.js +1 -1
  96. package/dist/stepped-progress-bar/index.d.ts +1 -1
  97. package/dist/stepped-progress-bar/index.js +1 -1
  98. package/dist/super-list-header/component.js +1 -1
  99. package/dist/super-list-header/index.js +1 -1
  100. package/dist/super-list-item/component.js +1 -1
  101. package/dist/super-list-item/index.js +1 -1
  102. package/dist/table/component.js +1 -1
  103. package/dist/table/components/cell/component.js +1 -1
  104. package/dist/table/components/cell/index.js +1 -1
  105. package/dist/table/components/cells/index.js +1 -1
  106. package/dist/table/components/empty-list/index.js +1 -1
  107. package/dist/table/components/error/index.js +1 -1
  108. package/dist/table/components/loading/index.js +1 -1
  109. package/dist/table/components/pagination/index.js +1 -1
  110. package/dist/table/index.js +1 -1
  111. package/dist/table/table.js +1 -1
  112. package/dist/table/utils/prepare-rows.js +1 -1
  113. package/dist/table-status/component.js +1 -1
  114. package/dist/table-status/index.js +1 -1
  115. package/dist/tag/component.js +1 -1
  116. package/dist/tag/index.js +1 -1
  117. package/dist/tags-list/component.js +1 -1
  118. package/dist/tags-list/index.js +1 -1
  119. package/dist/theme-provider/default-themes.d.ts +6 -0
  120. package/dist/theme-provider/default-themes.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-6bdbe2ae.js → colors.module-ff750008.js} +0 -0
  129. /package/dist/{contact-block-cf3f670e.d.ts → contact-block-ef1cf97a.d.ts} +0 -0
  130. /package/dist/{contact-block-cf3f670e.js → contact-block-ef1cf97a.js} +0 -0
  131. /package/dist/{gutters.module-4f286d76.js → gutters.module-d62ab919.js} +0 -0
  132. /package/dist/{isSymbol-bbbce512.js → isSymbol-9658c8ef.js} +0 -0
  133. /package/dist/{step-bar-aad317b6.d.ts → step-bar-89cb1711.d.ts} +0 -0
  134. /package/dist/{step-bar-aad317b6.js → step-bar-89cb1711.js} +0 -0
  135. /package/dist/{use-image-render-component-625239e3.d.ts → use-image-render-component-4f575cc6.d.ts} +0 -0
  136. /package/dist/{use-image-render-component-625239e3.js → use-image-render-component-4f575cc6.js} +0 -0
@@ -1 +1 @@
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{addQueryParam as d}from"./utils/add-query-param.js";import{getTags as u}from"./utils/get-tags.js";import{prepareRows as g}from"./utils/prepare-rows.js";import{removeQueryParam as h}from"./utils/remove-query-param.js";import{resetQueryParam as j}from"./utils/reset-query-param.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-6bdbe2ae.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"query-string";import"./utils/get-query-from-url.js";import"./utils/parse-query-params.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/set-query-to-url.js";import"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-625239e3.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var f={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function b(b){var k=b.columns,y=b.searchPlaceholder,v=void 0===y?"Поиск по таблице":y,x=b.records,_=b.hideSearch,C=b.rightHeaderAddons,P=b.leftHeaderAddons,E=b.filtersButtonLabel,S=b.createButtonLabel,w=b.loading,B=b.height,q=void 0===B?"fill":B,F=b.tagsBuilder,L=b.promise,A=b.onRowClick,H=b.onCreateClick,D=b.onFiltersClick,N=b.refetch,T=b.language,M=c({promise:L,records:x}),z=M.loading,I=M.error,Q=M.data,R=M.total,V=M.params,G=M.pagesCount,J=M.updateData,K=H?function(){return H(J)}:void 0,O=t((function(e){j(e),J()}),[]);o((function(){J()}),[]);var U=function(){return D?D({submitCallback:function(e){return O(e)},initialValues:V}):null},W=function(e){d(e),J()},X=u({params:(null==V?void 0:V.where)||{},onDelete:function(e,t){h(e,t),J()},tagsBuilder:F,onClick:U}),Y=r((function(){return g({columns:k,data:Q,refetch:N||J})}),[Q,k]),Z=z||w;return e.createElement("div",{className:i(f.table_wrapper,f[q])},(!_||C||P||H||D)&&e.createElement(p,{language:T,hideSearch:_,rightHeaderAddons:C,leftHeaderAddons:P,searchText:(null==V?void 0:V.searchText)||"",addParam:W,searchPlaceholder:v,filtersButtonLabel:E,tags:X,onCreateClick:K,createButtonLabel:S,onFiltersClick:U,showFiltersButton:!!D}),e.createElement("div",{className:f.table},e.createElement("table",{cellSpacing:"0",cellPadding:"0"},e.createElement(a,{sort:null==V?void 0:V.sort,order:null==V?void 0:V.order,addParam:W,columns:k}),e.createElement("tbody",null,I&&e.createElement(s,{language:T}),!Y.length&&!Z&&!I&&e.createElement(n,{language:T}),Z&&e.createElement(l,{columnsLength:k.length}),Y.map((function(t){var o,r=t.row,a=t.cells;return e.createElement("tr",{onClick:function(){return e=r,null==A?void 0:A(e,J);var e},className:i((o={},o[f.clickable]=!!A,o)),style:{visibility:Z?"collapse":"visible"}},a.map((function(e){return e})))}))))),!!L&&e.createElement(m,{language:T,currentPage:V?+V.page:1,recordsPerPage:V?+V.limit:10,pagesCount:+G,addParam:W,total:+R}))}export{b 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{addQueryParam as d}from"./utils/add-query-param.js";import{getTags as u}from"./utils/get-tags.js";import{prepareRows as g}from"./utils/prepare-rows.js";import{removeQueryParam as f}from"./utils/remove-query-param.js";import{resetQueryParam as h}from"./utils/reset-query-param.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-ff750008.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"query-string";import"./utils/get-query-from-url.js";import"./utils/parse-query-params.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/set-query-to-url.js";import"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-4f575cc6.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var j={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function b(b){var k=b.columns,y=b.searchPlaceholder,v=void 0===y?"Поиск по таблице":y,x=b.records,_=b.hideSearch,C=b.rightHeaderAddons,P=b.leftHeaderAddons,E=b.filtersButtonLabel,S=b.createButtonLabel,w=b.loading,B=b.height,q=void 0===B?"fill":B,F=b.tagsBuilder,L=b.promise,A=b.onRowClick,H=b.onCreateClick,D=b.onFiltersClick,N=b.refetch,T=b.language,M=c({promise:L,records:x}),z=M.loading,I=M.error,Q=M.data,R=M.total,V=M.params,G=M.pagesCount,J=M.updateData,K=H?function(){return H(J)}:void 0,O=t((function(e){h(e),J()}),[]);o((function(){J()}),[]);var U=function(){return D?D({submitCallback:function(e){return O(e)},initialValues:V}):null},W=function(e){d(e),J()},X=u({params:(null==V?void 0:V.where)||{},onDelete:function(e,t){f(e,t),J()},tagsBuilder:F,onClick:U}),Y=r((function(){return g({columns:k,data:Q,refetch:N||J})}),[Q,k]),Z=z||w;return e.createElement("div",{className:i(j.table_wrapper,j[q])},(!_||C||P||H||D)&&e.createElement(p,{language:T,hideSearch:_,rightHeaderAddons:C,leftHeaderAddons:P,searchText:(null==V?void 0:V.searchText)||"",addParam:W,searchPlaceholder:v,filtersButtonLabel:E,tags:X,onCreateClick:K,createButtonLabel:S,onFiltersClick:U,showFiltersButton:!!D}),e.createElement("div",{className:j.table},e.createElement("table",{cellSpacing:"0",cellPadding:"0"},e.createElement(a,{sort:null==V?void 0:V.sort,order:null==V?void 0:V.order,addParam:W,columns:k}),e.createElement("tbody",null,I&&e.createElement(s,{language:T}),!Y.length&&!Z&&!I&&e.createElement(n,{language:T}),Z&&e.createElement(l,{columnsLength:k.length}),Y.map((function(t){var o,r=t.row,a=t.cells;return e.createElement("tr",{onClick:function(){return e=r,null==A?void 0:A(e,J);var e},className:i((o={},o[j.clickable]=!!A,o)),style:{visibility:Z?"collapse":"visible"}},a.map((function(e){return e})))}))))),!!L&&e.createElement(m,{language:T,currentPage:V?+V.page:1,recordsPerPage:V?+V.limit:10,pagesCount:+G,addParam:W,total:+R}))}export{b 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-6bdbe2ae.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";import"../../use-image-render-component-625239e3.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
+ 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-ff750008.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";import"../../use-image-render-component-4f575cc6.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-6bdbe2ae.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-ff750008.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,f={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},f[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-6bdbe2ae.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-ff750008.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -1 +1 @@
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-6bdbe2ae.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};
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-ff750008.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};
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-6bdbe2ae.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-ff750008.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-6bdbe2ae.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-ff750008.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-6bdbe2ae.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-ff750008.js";import"../typography/title/index.js";import"../typography/title/component.js";
@@ -69,6 +69,9 @@ declare const defaultThemes: {
69
69
  readonly glass: {
70
70
  readonly footer: "hsla(0,0%,100%,.45)";
71
71
  };
72
+ readonly fixed: {
73
+ readonly color: "#fff";
74
+ };
72
75
  };
73
76
  readonly dark: {
74
77
  readonly text: {
@@ -140,6 +143,9 @@ declare const defaultThemes: {
140
143
  readonly glass: {
141
144
  readonly footer: "#1213168f";
142
145
  };
146
+ readonly fixed: {
147
+ readonly color: "#fff";
148
+ };
143
149
  };
144
150
  };
145
151
  type DefaultThemes = typeof defaultThemes;
@@ -1 +1 @@
1
- var t={light:{text:{primary:"#0E0E0E",secondary:"rgb(4 4 19 / 55%)",thirdly:"rgb(5 8 29 / 38%)",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#2174EF",main:"#2174ef","primary-inverted":"#FFFFFF",static:"#FFFFFF"},bg:{primary:"#ffffff",secondary:"#F2F3F5",thirdly:"#E7E8EA",quaternary:"#D5D6DC","special-super-light":"#FDFDFD","secondary-inverted":"#1C1C1E","special-big-objects":"#F8F8F9",positive:"#63C956","positive-light":"#E8F7E6",negative:"#EC4D3D","negative-light":"#FCE4E2",attention:"#F19938","attention-light":"#FDF0E1",accent:"#2174EF","accent-light":"#DCE7F7","accent-special":"#649EF4",cyan:"#70BDEB","cyan-light":"#EAF5FC",indigo:"#565AD0","indigo-light":"#E6E6F8",overlay:"rgb(0 0 0 /60%)",main:"#2174EF",static:"#FFFFFF"},graphic:{primary:"#0E0E0E",secondary:"#86868A",thirdly:"#C1C1C3",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#2174EF","accent-special":"#649EF4","secondary-inverted":"#85858D",main:"#2174ef",static:"#FFFFFF"},border:{primary:"#D5D6DC",secondary:"#E7E8EC",thirdly:"#F2F3F5","special-component":"rgb(11 31 53 / 7%)",negative:"#EC4D3D",positive:"#63C956",attention:"#F19938",accent:"#2174EF",cyan:"#70BDEB",main:"#2174EF"},status:{purple:"#673ab7",teal:"#008080"},glass:{footer:"hsla(0,0%,100%,.45)"}},dark:{text:{primary:"#E8E8E8",secondary:"rgb(238 238 351 / 55%)",thirdly:"rgb(238 238 351 / 38%)",positive:"#32D74B",negative:"#FF453A",attention:"#FF9F0A",accent:"#2174EF",main:"#2174ef","primary-inverted":"#0E0E0E",static:"#FFFFFF"},bg:{primary:"#0E0E0E",secondary:"#1C1C1E",thirdly:"#27272A",quaternary:"#36363A","special-super-light":"#18181970","secondary-inverted":"#F2F3F5","special-big-objects":"#171718",positive:"#32D74B","positive-light":"#143219",negative:"#FF453A","negative-light":"#391816",attention:"#FF9F0A","attention-light":"#39280D",accent:"#2174EF","accent-light":"#172741","accent-special":"#649EF4",cyan:"#64D2FF","cyan-light":"#1D3139",indigo:"#5E5CE6","indigo-light":"#1C1C35",overlay:"rgb(0 0 0 /60%)",main:"#2174EF",static:"#FFFFFF"},graphic:{primary:"#F8F8F8",secondary:"#85858D",thirdly:"#3E3E3E",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#2174EF","accent-special":"#649EF4","secondary-inverted":"#86868A",main:"#2174ef",static:"#FFFFFF"},border:{primary:"#36363A",secondary:"#27272A",thirdly:"#1C1C1E","special-component":"rgb(235 239 243 / 7%)",negative:"#FF453A",positive:"#32D74B",attention:"#FF9F0A",accent:"#2174EF",cyan:"#64D2FF",main:"#2174EF"},status:{purple:"#673ab7",teal:"#008080"},glass:{footer:"#1213168f"}}};export{t as defaultThemes};
1
+ var t={light:{text:{primary:"#0E0E0E",secondary:"rgb(4 4 19 / 55%)",thirdly:"rgb(5 8 29 / 38%)",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#2174EF",main:"#2174ef","primary-inverted":"#FFFFFF",static:"#FFFFFF"},bg:{primary:"#ffffff",secondary:"#F2F3F5",thirdly:"#E7E8EA",quaternary:"#D5D6DC","special-super-light":"#FDFDFD","secondary-inverted":"#1C1C1E","special-big-objects":"#F8F8F9",positive:"#63C956","positive-light":"#E8F7E6",negative:"#EC4D3D","negative-light":"#FCE4E2",attention:"#F19938","attention-light":"#FDF0E1",accent:"#2174EF","accent-light":"#DCE7F7","accent-special":"#649EF4",cyan:"#70BDEB","cyan-light":"#EAF5FC",indigo:"#565AD0","indigo-light":"#E6E6F8",overlay:"rgb(0 0 0 /60%)",main:"#2174EF",static:"#FFFFFF"},graphic:{primary:"#0E0E0E",secondary:"#86868A",thirdly:"#C1C1C3",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#2174EF","accent-special":"#649EF4","secondary-inverted":"#85858D",main:"#2174ef",static:"#FFFFFF"},border:{primary:"#D5D6DC",secondary:"#E7E8EC",thirdly:"#F2F3F5","special-component":"rgb(11 31 53 / 7%)",negative:"#EC4D3D",positive:"#63C956",attention:"#F19938",accent:"#2174EF",cyan:"#70BDEB",main:"#2174EF"},status:{purple:"#673ab7",teal:"#008080"},glass:{footer:"hsla(0,0%,100%,.45)"},fixed:{color:"#fff"}},dark:{text:{primary:"#E8E8E8",secondary:"rgb(238 238 351 / 55%)",thirdly:"rgb(238 238 351 / 38%)",positive:"#32D74B",negative:"#FF453A",attention:"#FF9F0A",accent:"#2174EF",main:"#2174ef","primary-inverted":"#0E0E0E",static:"#FFFFFF"},bg:{primary:"#0E0E0E",secondary:"#1C1C1E",thirdly:"#27272A",quaternary:"#36363A","special-super-light":"#18181970","secondary-inverted":"#F2F3F5","special-big-objects":"#171718",positive:"#32D74B","positive-light":"#143219",negative:"#FF453A","negative-light":"#391816",attention:"#FF9F0A","attention-light":"#39280D",accent:"#2174EF","accent-light":"#172741","accent-special":"#649EF4",cyan:"#64D2FF","cyan-light":"#1D3139",indigo:"#5E5CE6","indigo-light":"#1C1C35",overlay:"rgb(0 0 0 /60%)",main:"#2174EF",static:"#FFFFFF"},graphic:{primary:"#F8F8F8",secondary:"#85858D",thirdly:"#3E3E3E",positive:"#63C956",negative:"#EC4D3D",attention:"#F19938",accent:"#2174EF","accent-special":"#649EF4","secondary-inverted":"#86868A",main:"#2174ef",static:"#FFFFFF"},border:{primary:"#36363A",secondary:"#27272A",thirdly:"#1C1C1E","special-component":"rgb(235 239 243 / 7%)",negative:"#FF453A",positive:"#32D74B",attention:"#FF9F0A",accent:"#2174EF",cyan:"#64D2FF",main:"#2174EF"},status:{purple:"#673ab7",teal:"#008080"},glass:{footer:"#1213168f"},fixed:{color:"#fff"}}};export{t as defaultThemes};
@@ -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-6bdbe2ae.js";import"tslib";import"./title/component.js";var e={Title:o,Text:t};export{e 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-ff750008.js";import"tslib";import"./title/component.js";var m={Title:o,Text:t};export{m as Typography};
@@ -1 +1 @@
1
- export{Typography}from"./component.js";import"./text/component.js";import"react";import"classnames";import"../colors.module-6bdbe2ae.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-ff750008.js";import"./title/index.js";import"tslib";import"./title/component.js";
@@ -1 +1 @@
1
- import e from"react";import r from"classnames";import{c as a}from"../../colors.module-6bdbe2ae.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,_=d.tag,i=void 0===_?"span":_,l=d.through,u=void 0!==l&&l,p=d.weight,t=void 0===p?"regular":p,n=d.uppercase,s=d.color,c=d.view,h=d.className,g=d.dataTestId,x=d.children;return e.createElement(i,{className:r((o={},o[m.paragraph]="p"===i,o[m.uppercase]=n,o[m.through]=u,o[m[c]]=c,o),h,s&&a[s],m[t]),"data-test-id":g},x)};export{d as Text};
1
+ import e from"react";import r from"classnames";import{c as a}from"../../colors.module-ff750008.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"},o=function(o){var d,_=o.tag,i=void 0===_?"span":_,l=o.through,u=void 0!==l&&l,p=o.weight,t=void 0===p?"regular":p,n=o.uppercase,s=o.color,c=o.view,h=o.className,g=o.dataTestId,x=o.children;return e.createElement(i,{className:r((d={},d[m.paragraph]="p"===i,d[m.uppercase]=n,d[m.through]=u,d[m[c]]=c,d),h,s&&a[s],m[t]),"data-test-id":g},x)};export{o as Text};
@@ -1 +1 @@
1
- export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-6bdbe2ae.js";
1
+ export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-ff750008.js";
@@ -1 +1 @@
1
- import e from"react";import r from"classnames";import{c as a}from"../../colors.module-6bdbe2ae.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,b=o.through,w=o.children,y=o.styles;return e.createElement(m,{className:r(y.component,g,y["montserrat-"+d],p&&y["margins-"+d],(t={},t[y.uppercase]=f,t[y.through]=b,t),y[n],v&&a[v]),"data-test-id":h},w)};export{o as Title};
1
+ import e from"react";import r from"classnames";import{c as a}from"../../colors.module-ff750008.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,f=o.className,g=o.dataTestId,h=o.uppercase,w=o.through,y=o.children,N=o.styles;return e.createElement(m,{className:r(N.component,f,N["montserrat-"+d],p&&N["margins-"+d],(t={},t[N.uppercase]=h,t[N.through]=w,t),N[n],v&&a[v]),"data-test-id":g},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-6bdbe2ae.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};
1
+ import{__assign as m}from"tslib";import e from"react";import{Title as r}from"./component.js";import"classnames";import"../../colors.module-ff750008.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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphakits/ui",
3
- "version": "1.29.1",
3
+ "version": "1.30.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],