@alphakits/ui 1.30.54 → 1.31.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.
- package/dist/amount/component.js +1 -1
- package/dist/amount/index.js +1 -1
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/base-card/component.js +1 -1
- package/dist/base-card/index.js +1 -1
- package/dist/calendar/component.js +1 -1
- package/dist/calendar/components/days-table/component.js +1 -1
- package/dist/calendar/components/days-table/index.js +1 -1
- package/dist/calendar/components/header/index.js +1 -1
- package/dist/calendar/components/header//321/201omponent.js +1 -1
- package/dist/calendar/components/months-table/index.js +1 -1
- package/dist/calendar/components/months-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/{capitalize-ee183f8f.js → capitalize-f61c7a6e.js} +1 -1
- package/dist/card/component.js +1 -1
- package/dist/card/images/index.js +1 -1
- package/dist/card/index.js +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/checkbox-group/component.js +1 -1
- package/dist/checkbox-group/index.js +1 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapsable-row/addons.js +1 -1
- package/dist/collapsable-row/component.js +1 -1
- package/dist/collapsable-row/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.js +1 -1
- package/dist/date/index.js +1 -1
- package/dist/date-switcher/component.js +1 -1
- package/dist/date-switcher/index.js +1 -1
- package/dist/empty-page/component.js +1 -1
- package/dist/empty-page/index.js +1 -1
- package/dist/footer/component.js +1 -1
- package/dist/footer/contact-block.js +1 -1
- package/dist/footer/index.js +1 -1
- package/dist/form/component.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/form.js +1 -1
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/grid/col/component.js +1 -1
- package/dist/grid/col/index.js +1 -1
- package/dist/grid/component.js +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/grid/row/component.js +1 -1
- package/dist/grid/row/index.js +1 -1
- package/dist/image/component.js +1 -1
- package/dist/image/image-base.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/image/use-image-render-component.js +1 -1
- package/dist/image-uploader/component.js +1 -1
- package/dist/image-uploader/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/info-block-header/component.js +1 -1
- package/dist/info-block-header/index.js +1 -1
- package/dist/info-block-item/component.js +1 -1
- package/dist/info-block-item/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/menu/component.js +1 -1
- package/dist/menu/components/content-header/index.js +1 -1
- package/dist/menu/components/index.js +1 -1
- package/dist/menu/components/menu-avatar/index.js +1 -1
- package/dist/menu/components/menu-button/index.js +1 -1
- package/dist/menu/components/menu-buttons-list/index.js +1 -1
- package/dist/menu/components/user-button/index.js +1 -1
- package/dist/menu/index.js +1 -1
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/page-with-controls/component.js +1 -1
- package/dist/page-with-controls/index.js +1 -1
- package/dist/picker-button/common/index.js +1 -1
- package/dist/picker-button/common/labeled-button/index.js +1 -1
- package/dist/picker-button/component.d.ts +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/progress-bar/component.js +1 -1
- package/dist/progress-bar/index.js +1 -1
- package/dist/progress-index/component.js +1 -1
- package/dist/progress-index/index.js +1 -1
- package/dist/radio-group/component.js +1 -1
- package/dist/radio-group/index.js +1 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/sidepanel/component.js +1 -1
- package/dist/sidepanel/index.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/stepped-progress-bar/components/step-bar.js +1 -1
- package/dist/stepped-progress-bar/index.d.ts +1 -1
- package/dist/stepped-progress-bar/index.js +1 -1
- package/dist/super-list-header/component.js +1 -1
- package/dist/super-list-header/index.js +1 -1
- package/dist/super-list-item/component.js +1 -1
- package/dist/super-list-item/index.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.js +1 -1
- package/dist/table/components/cell/index.js +1 -1
- package/dist/table/components/cells/index.js +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/loading/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/prepare-rows.js +1 -1
- package/dist/table-status/component.js +1 -1
- package/dist/table-status/index.js +1 -1
- package/dist/tag/component.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/tags-list/component.js +1 -1
- package/dist/tags-list/index.js +1 -1
- package/dist/typography/component.js +1 -1
- package/dist/typography/index.js +1 -1
- package/dist/typography/text/component.js +1 -1
- package/dist/typography/text/index.js +1 -1
- package/dist/typography/title/component.js +1 -1
- package/dist/typography/title/index.js +1 -1
- package/package.json +1 -1
- /package/dist/{colors.module-1d57f370.js → colors.module-e6546343.js} +0 -0
- /package/dist/{contact-block-e259f734.d.ts → contact-block-79ed0fc7.d.ts} +0 -0
- /package/dist/{contact-block-e259f734.js → contact-block-79ed0fc7.js} +0 -0
- /package/dist/{gutters.module-f2366685.js → gutters.module-40c240ff.js} +0 -0
- /package/dist/{isSymbol-bae25005.js → isSymbol-ae03d4c3.js} +0 -0
- /package/dist/{step-bar-fa8b30f4.d.ts → step-bar-96ca328e.d.ts} +0 -0
- /package/dist/{step-bar-fa8b30f4.js → step-bar-96ca328e.js} +0 -0
- /package/dist/{use-image-render-component-bd68b204.d.ts → use-image-render-component-d8d9cc09.d.ts} +0 -0
- /package/dist/{use-image-render-component-bd68b204.js → use-image-render-component-d8d9cc09.js} +0 -0
|
@@ -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-
|
|
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-e6546343.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-
|
|
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-e6546343.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-
|
|
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-e6546343.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};
|
package/dist/table/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Table}from"./component.js";export{TableCell}from"./components/cell/component.js";import"./table.js";import"tslib";import"react";import"@alphakits/icons";import"@dnd-kit/core";import"@dnd-kit/sortable";import"@dnd-kit/utilities";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Table}from"./component.js";export{TableCell}from"./components/cell/component.js";import"./table.js";import"tslib";import"react";import"@alphakits/icons";import"@dnd-kit/core";import"@dnd-kit/sortable";import"@dnd-kit/utilities";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";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"../cell/pure/component.js";import"./components/pagination/index.js";import"./components/table-header/index.js";import"@alphakits/icons/dist/ControllerS";import"@alphakits/icons/dist/PlusS";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"@alphakits/icons/dist/CloseS";import"@alphakits/icons/dist/SearchM";import"./hooks/use-table-data.js";import"./utils/add-query-param.js";import"query-string";import"./utils/parse-query-params.js";import"./utils/set-query-to-url.js";import"./utils/get-query-from-url.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/get-tags.js";import"./utils/prepare-rows.js";import"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-d8d9cc09.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";
|
package/dist/table/table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__spreadArray as e,__assign as t}from"tslib";import r,{useState as o,useEffect as n,useCallback as i,useMemo as a}from"react";import{DragM as l}from"@alphakits/icons";import{useSensors as s,useSensor as m,PointerSensor as c,KeyboardSensor as p,DndContext as d,closestCenter as u}from"@dnd-kit/core";import{SortableContext as f,verticalListSortingStrategy as g,useSortable as h,arrayMove as j}from"@dnd-kit/sortable";import{CSS as v}from"@dnd-kit/utilities";import k from"classnames";import{Button as b}from"../button/component.js";import{TableCell as y}from"./components/cell/component.js";import{Cells as E}from"./components/cells/index.js";import{EmptyList as C}from"./components/empty-list/index.js";import{Error as x}from"./components/error/index.js";import{Loading as P}from"./components/loading/index.js";import{Pagination as S}from"./components/pagination/index.js";import{TableHeader as _}from"./components/table-header/index.js";import{useTableData as w}from"./hooks/use-table-data.js";import{getTags as B}from"./utils/get-tags.js";import{prepareRows as q}from"./utils/prepare-rows.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import{__spreadArray as e,__assign as t}from"tslib";import r,{useState as o,useEffect as n,useCallback as i,useMemo as a}from"react";import{DragM as l}from"@alphakits/icons";import{useSensors as s,useSensor as m,PointerSensor as c,KeyboardSensor as p,DndContext as d,closestCenter as u}from"@dnd-kit/core";import{SortableContext as f,verticalListSortingStrategy as g,useSortable as h,arrayMove as j}from"@dnd-kit/sortable";import{CSS as v}from"@dnd-kit/utilities";import k from"classnames";import{Button as b}from"../button/component.js";import{TableCell as y}from"./components/cell/component.js";import{Cells as E}from"./components/cells/index.js";import{EmptyList as C}from"./components/empty-list/index.js";import{Error as x}from"./components/error/index.js";import{Loading as P}from"./components/loading/index.js";import{Pagination as S}from"./components/pagination/index.js";import{TableHeader as _}from"./components/table-header/index.js";import{useTableData as w}from"./hooks/use-table-data.js";import{getTags as B}from"./utils/get-tags.js";import{prepareRows as q}from"./utils/prepare-rows.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/component.js";import"@alphakits/icons/dist/ChevronForwardS";import"./languages/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"./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-d8d9cc09.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";var D={table_wrapper:"index-module_table_wrapper__SeB5n",table:"index-module_table__9sbda",fill:"index-module_fill__Q-icF",clickable:"index-module_clickable__k4S8g"};function F(e){var o,n=e.item,i=e.dndEnabled,a=e.children,s=e.onRowClick,m=h({id:String(n.id)}),c=m.attributes,p=m.listeners,d=m.setNodeRef,u=m.transform,f=m.transition,g=m.isDragging,j=i?{transform:v.Transform.toString(u),transition:f,opacity:g?.6:void 0}:void 0;return r.createElement("tr",{ref:i?d:void 0,style:j,className:k((o={},o[D.clickable]=!!s,o)),onClick:function(){return null==s?void 0:s(n)}},r.createElement(y,{title:" ",addon:r.createElement(b,t({leftAddons:r.createElement(l,null)},c,p,{onClick:function(e){return e.stopPropagation()},view:"ghost"}))}),a)}function N(t){var l=t.columns,h=t.searchPlaceholder,v=void 0===h?"Поиск по таблице":h,b=t.records,y=t.hideSearch,N=t.rightHeaderAddons,A=t.leftHeaderAddons,L=t.filtersButtonLabel,H=t.createButtonLabel,R=t.loading,T=t.height,M=void 0===T?"fill":T,O=t.tagsBuilder,z=t.promise,I=t.onRowClick,Q=t.onCreateClick,V=t.onFiltersClick,G=t.refetch,J=t.language,K=t.fromPath,U=void 0===K||K,W=t.onSortChange,X=w({promise:z,records:b,fromPath:U}),Y=X.loading,Z=X.error,$=X.data,ee=X.total,te=X.params,re=X.pagesCount,oe=X.updateData,ne=X.addParam,ie=X.removeParam,ae=X.resetParams,le=Boolean(W),se=o([]),me=se[0],ce=se[1];n((function(){var t=e([],$||[]).sort((function(e,t){return(e.sortPosition||0)-(t.sortPosition||0)}));ce(t.map((function(e){return String(e.id)})))}),[$]);var pe=function(e){return null==I?void 0:I(e,oe)},de=Q?function(){return Q(oe)}:void 0,ue=i((function(e){ae(e)}),[ae]);n((function(){oe()}),[]);var fe=function(){return V?V({submitCallback:function(e){return ue(e)},initialValues:te}):null},ge=function(e){ne(e)},he=B({params:(null==te?void 0:te.where)||{},onDelete:function(e,t){ie(e,t)},tagsBuilder:O,onClick:fe}),je=a((function(){return q({columns:l,data:$,refetch:G||oe})}),[$,l]),ve=a((function(){if(!(null==je?void 0:je.length)||!me.length)return je;var e=new Map(je.map((function(e){return[String(e.row.id),e]})));return me.map((function(t){return e.get(t)})).filter(Boolean)}),[je,me]),ke=Y||R,be=s(m(c,{activationConstraint:{distance:5}}),m(p));return r.createElement("div",{className:k(D.table_wrapper,D[M])},(!y||N||A||Q||V)&&r.createElement(_,{language:J,hideSearch:y,rightHeaderAddons:N,leftHeaderAddons:A,searchText:(null==te?void 0:te.searchText)||"",addParam:ge,searchPlaceholder:v,filtersButtonLabel:L,tags:he,onCreateClick:de,createButtonLabel:H,onFiltersClick:fe,showFiltersButton:!!V}),r.createElement("div",{className:D.table},r.createElement("table",{cellSpacing:"0",cellPadding:"0"},r.createElement(E,{withDrag:le,sort:null==te?void 0:te.sort,order:null==te?void 0:te.order,addParam:ge,columns:l}),r.createElement("tbody",null,Z&&r.createElement(x,{language:J}),!ve.length&&!ke&&!Z&&r.createElement(C,{language:J}),ke&&r.createElement(P,{columnsLength:l.length+1}),le?r.createElement(d,{sensors:be,collisionDetection:u,onDragEnd:function(e){var t=e.active,r=e.over;if(r&&t.id!==r.id){var o=me.indexOf(String(t.id)),n=me.indexOf(String(r.id));if(-1!==o&&-1!==n){var i=j(me,o,n);if(ce(i),W){var a=i.map((function(e,t){return{id:Number(e),position:t+1}}));W(a)}}}}},r.createElement(f,{items:me,strategy:g},ve.map((function(e){var t=e.row,o=e.cells;return r.createElement(F,{key:String(t.id),item:t,dndEnabled:!0,onRowClick:function(e){return pe(e)}},o.map((function(e,t){return r.cloneElement(e,{key:t})})))})))):ve.map((function(e){var t,o=e.row,n=e.cells;return r.createElement("tr",{key:String(o.id),onClick:function(){return pe(o)},className:k((t={},t[D.clickable]=!!I,t)),style:{visibility:ke?"collapse":"visible"}},n.map((function(e,t){return r.cloneElement(e,{key:t})})))}))))),!!z&&r.createElement(S,{language:J,currentPage:te?+te.page:1,recordsPerPage:te?+te.limit:10,pagesCount:+re,addParam:ge,total:+ee}))}export{N 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-
|
|
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-e6546343.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";import"../../use-image-render-component-d8d9cc09.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-
|
|
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-e6546343.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-
|
|
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-e6546343.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
|
package/dist/tag/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
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-e6546343.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-
|
|
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-e6546343.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-
|
|
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-e6546343.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};
|
package/dist/tags-list/index.js
CHANGED
|
@@ -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-
|
|
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-e6546343.js";import"../typography/title/index.js";import"../typography/title/component.js";
|
|
@@ -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-
|
|
1
|
+
import{Text as t}from"./text/component.js";import{Title as o}from"./title/index.js";import"react";import"classnames";import"../colors.module-e6546343.js";import"tslib";import"./title/component.js";var e={Title:o,Text:t};export{e as Typography};
|
package/dist/typography/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Typography}from"./component.js";import"./text/component.js";import"react";import"classnames";import"../colors.module-
|
|
1
|
+
export{Typography}from"./component.js";import"./text/component.js";import"react";import"classnames";import"../colors.module-e6546343.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-
|
|
1
|
+
import e from"react";import a from"classnames";import{c as r}from"../../colors.module-e6546343.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-
|
|
1
|
+
export{Text}from"./component.js";import"react";import"classnames";import"../../colors.module-e6546343.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import r from"classnames";import{c as a}from"../../colors.module-
|
|
1
|
+
import e from"react";import r from"classnames";import{c as a}from"../../colors.module-e6546343.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-
|
|
1
|
+
import{__assign as m}from"tslib";import e from"react";import{Title as r}from"./component.js";import"classnames";import"../../colors.module-e6546343.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
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{use-image-render-component-bd68b204.d.ts → use-image-render-component-d8d9cc09.d.ts}
RENAMED
|
File without changes
|
/package/dist/{use-image-render-component-bd68b204.js → use-image-render-component-d8d9cc09.js}
RENAMED
|
File without changes
|