@alphakits/ui 1.30.13 → 1.30.15
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/amount-input/component.d.ts +1 -1
- package/dist/amount-input/component.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/components/select-button//321/201omponent.d.ts +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar-input/component.d.ts +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/{capitalize-190736f6.js → capitalize-4a968eff.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/input/component.d.ts +1 -1
- package/dist/input-autocomplete/component.d.ts +2 -2
- package/dist/input-autocomplete/component.js +1 -1
- package/dist/input-autocomplete/index.js +1 -1
- package/dist/list-allert/component.js +1 -1
- package/dist/list-allert/index.js +1 -1
- package/dist/masked-input/component.d.ts +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/notification/component.d.ts +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.js +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/component.d.ts +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/component.d.ts +30 -0
- package/dist/select/component.js +1 -1
- package/dist/select/components/select-search/index.d.ts +11 -0
- package/dist/select/components/select-search/index.js +1 -1
- package/dist/select/index.d.ts +1 -1
- package/dist/select/index.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/suffix-input/component.d.ts +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/textarea/component.d.ts +1 -1
- package/dist/toast/component.d.ts +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/dist/with-suffix/component.d.ts +1 -1
- package/package.json +1 -1
- package/dist/component-06fe845d.d.ts +0 -11
- package/dist/component-06fe845d.js +0 -1
- package/dist/component-245a156c.d.ts +0 -30
- /package/dist/{colors.module-c390e704.js → colors.module-75533e2c.js} +0 -0
- /package/dist/{contact-block-1e4bd8c4.d.ts → contact-block-7cc58dfa.d.ts} +0 -0
- /package/dist/{contact-block-1e4bd8c4.js → contact-block-7cc58dfa.js} +0 -0
- /package/dist/{gutters.module-12709b45.js → gutters.module-1187f2fe.js} +0 -0
- /package/dist/{isSymbol-cdffa06d.js → isSymbol-32b46cb0.js} +0 -0
- /package/dist/{step-bar-e0712e14.d.ts → step-bar-fc3b7d3e.d.ts} +0 -0
- /package/dist/{step-bar-e0712e14.js → step-bar-fc3b7d3e.js} +0 -0
- /package/dist/{use-image-render-component-682c895b.d.ts → use-image-render-component-c79fbb8b.d.ts} +0 -0
- /package/dist/{use-image-render-component-682c895b.js → use-image-render-component-c79fbb8b.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as e,__assign as t}from"tslib";import o from"react";import n from"classnames";import{FlexColumns as r}from"../flex-columns/component.js";import{SidepanelHeader as m}from"../sidepanel-header/component.js";import{Skeleton as i}from"../skeleton/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import{__rest as e,__assign as t}from"tslib";import o from"react";import n from"classnames";import{FlexColumns as r}from"../flex-columns/component.js";import{SidepanelHeader as m}from"../sidepanel-header/component.js";import{Skeleton as i}from"../skeleton/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"../typography/title/component.js";var d="index-module_header__mPZ5T",a="index-module_loader__AwSf2",l="index-module_input__4qiE9",s="index-module_footer__gMIpz",c="index-module_noSticky__LgClY",p="index-module_content__3wIEH",u=function(u){var _,h=u.dataTestId,y=u.title,g=u.loading,f=u.headerRightAddons,b=u.subtitle,j=u.noCloser,x=u.headerBottomAddons,A=u.noStickyFooter,k=u.noStickyHeader,E=u.bottomAddons,v=u.children,S=e(u,["dataTestId","title","loading","headerRightAddons","subtitle","noCloser","headerBottomAddons","noStickyFooter","noStickyHeader","bottomAddons","children"]);return o.createElement(o.Fragment,null,g?o.createElement(r,{className:a,columns:1,gr:20},new Array(7).fill("").map((function(e,t){return o.createElement(i,{key:t,animate:!0,visible:!0,className:l})}))):o.createElement("div",null,o.createElement(m,t({title:y,className:k?void 0:d,subtitle:b,noCloser:j,dataTestId:h,rightAddons:f,bottomAddons:x},S)),o.createElement("div",{className:p},v),E&&o.createElement("div",{className:n(s,(_={},_[c]=A,_))},E)))};export{u as Sidepanel};
|
package/dist/sidepanel/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Sidepanel}from"./component.js";import"tslib";import"react";import"classnames";import"../flex-columns/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{Sidepanel}from"./component.js";import"tslib";import"react";import"classnames";import"../flex-columns/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../skeleton/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{BackButton as o}from"../back-button/component.js";import{FlexColumns as r}from"../flex-columns/component.js";import{Typography as m}from"../typography/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import e from"react";import t from"classnames";import{BackButton as o}from"../back-button/component.js";import{FlexColumns as r}from"../flex-columns/component.js";import{Typography as m}from"../typography/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/text/component.js";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_wrapper__QxqDy",l="index-module_heading__XGDyC",a="index-module_title__jwxcv",n="index-module_bottomAddons__3yzd0",s="index-module_rightAddons__aZFaJ",c="index-module_noCloser__O7u0p",d=function(t){var o=t.title,i=t.subtitle;return e.createElement(r,{columns:1,gr:4,className:a},e.createElement(m.Title,{color:"primary",tag:"div",view:"small",weight:"bold"},o),i&&e.createElement(m.Text,{view:"title",weight:"regular",color:"secondary"},i))},p=function(r){var m,a=r.className,p=r.dataTestId,u=r.title,_=r.rightAddons,x=r.back,y=r.subtitle,b=r.t,g=r.bottomAddons,v=r.noCloser;return e.createElement("div",{"data-test-id":p,className:t(i,a)},(x||u||_)&&e.createElement("div",{className:l},x&&b&&e.createElement(o,{onClick:x,t:b}),!x&&u&&e.createElement(d,{title:u,subtitle:y}),_&&e.createElement("div",{className:t(s,(m={},m[c]=!!v,m))},_)),!!x&&u&&e.createElement(d,{title:u,subtitle:y}),!!g&&e.createElement("div",{className:n},g))};export{p as SidepanelHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";export{S as StepBar}from"../../step-bar-
|
|
1
|
+
import"react";import"classnames";export{S as StepBar}from"../../step-bar-fc3b7d3e.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FC } from "react";
|
|
4
|
-
import { SteppedProgressBarView } from "../step-bar-
|
|
4
|
+
import { SteppedProgressBarView } from "../step-bar-fc3b7d3e";
|
|
5
5
|
type SteppedProgressBarProps = {
|
|
6
6
|
maxStep: number;
|
|
7
7
|
description?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t,{useState as e}from"react";import r from"classnames";import{Typography as o}from"../typography/component.js";import{s as a,S as i}from"../step-bar-
|
|
1
|
+
import t,{useState as e}from"react";import r from"classnames";import{Typography as o}from"../typography/component.js";import{s as a,S as i}from"../step-bar-fc3b7d3e.js";import"../typography/text/component.js";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n=function(e){var n=e.maxStep,p=e.description,s=e.step,m=void 0===s?0:s,c=e.view,l=e.dataTestId,d=e.className,y=n<=0?1:n,v="string"==typeof c;return t.createElement("div",{className:r(a.component,d),"data-test-id":l},t.createElement("div",{className:a.stepsContainer},Array.from(Array(y),(function(e,r){return t.createElement(i,{key:r,isDone:r<m,view:v?c:null==c?void 0:c[r]})}))),p&&t.createElement(o.Text,{color:"secondary",tag:"div",className:a.description,view:"primary-small"},p))},p=function(t){var r=t.maxStep,o=t.initialStep,a=e(void 0===o?1:o),i=a[0],n=a[1];return{step:i,setStep:n,nextStep:function(){n(i<r?i+1:r)},prevStep:function(){n(1===i?i:i-1)}}};export{n as SteppedProgressBar,p as useSteps};
|
|
@@ -10,7 +10,7 @@ type SuffixInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
|
|
|
10
10
|
value: number | undefined | null;
|
|
11
11
|
}) => void;
|
|
12
12
|
};
|
|
13
|
-
declare const SuffixInput: React.ForwardRefExoticComponent<Omit<InputProps, "
|
|
13
|
+
declare const SuffixInput: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "onChange" | "value"> & {
|
|
14
14
|
value: number | undefined | null;
|
|
15
15
|
suffix?: string | undefined;
|
|
16
16
|
required?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-
|
|
1
|
+
import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",r="index-module_leftAddons__l-m-3",n="index-module_rightAddons__m-u4n",i=function(i){var a=i.text,l=i.leftAddons,d=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{color:"primary",weight:"bold",tag:"span"},a),l&&e.createElement("div",{className:r},l)),d&&e.createElement("div",{className:n},d))};export{i as SuperListHeader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-
|
|
1
|
+
export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import t from"classnames";import{Dot as o}from"../dot/component.js";import{Typography as r}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import e from"react";import t from"classnames";import{Dot as o}from"../dot/component.js";import{Typography as r}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_component__exnSI",m="index-module_leftSide__t9PJZ",a="index-module_content__Z53Wl",l="index-module_leftAddons__AhXk-",n="index-module_rightAddons__UjV9O",d=function(d){var c=d.text,s=d.rightAddons,p=d.leftAddons,v=d.color,g=void 0===v?"primary":v,_=d.disabled,x=d.className,y=d.weight,h=void 0===y?"regular":y,E=d.hint;return e.createElement("div",{className:t(i,x)},e.createElement("div",{className:m},p&&!_&&e.createElement("div",{className:l},p),_&&e.createElement("div",{className:l},e.createElement(o,{size:"sm",color:"grey"})),e.createElement("div",{className:a},e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},c),E&&e.createElement(r.Text,{color:"secondary",view:"caps",tag:"div"},E))),s&&e.createElement("div",{className:n},"string"==typeof s?e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},s):s))};export{d as SuperListItem};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{SuperListItem}from"./component.js";import"react";import"classnames";import"../dot/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
export{SuperListItem}from"./component.js";import"react";import"classnames";import"../dot/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
|
package/dist/table/component.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{TableCell as t}from"./components/cell/component.js";import{Table as o}from"./table.js";import"tslib";import"react";import"classnames";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-
|
|
1
|
+
import{TableCell as t}from"./components/cell/component.js";import{Table as o}from"./table.js";import"tslib";import"react";import"classnames";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-75533e2c.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../cell/pure/component.js";import"./components/cells/index.js";import"@alphakits/icons/dist/ChevronForwardS";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/table-header/index.js";import"@alphakits/icons/dist/ControllerS";import"@alphakits/icons/dist/PlusS";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"@alphakits/icons/dist/CloseS";import"@alphakits/icons/dist/SearchM";import"./hooks/use-table-data.js";import"query-string";import"./utils/get-query-from-url.js";import"./utils/parse-query-params.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/prepare-rows.js";import"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-c79fbb8b.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";var s={Cell:t,TableComponent:o};export{s as Table};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import t from"react";import i from"classnames";import{Cell as o}from"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-
|
|
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-75533e2c.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";var r={cell:"index-module_cell__SVZPV",right:"index-module_right__30pJO",children:"index-module_children__X0572",is_div:"index-module_is_div__XHlH-"},l=function(l){var s,n,m,a=l.dataTestID,c=l.className,d=l.children,p=l.title,h=l.subtitle,_=l.tableProps,g=l.cellProps,u=l.addon,j=l.align,v=l.width,y=l.tag,x=void 0===y?"td":y;return t.createElement(x,e({"data-test-id":a,className:i(r.cell,c,(s={},s[r.is_div]="div"===x,s)),style:{width:v}},_),d?t.createElement("div",{className:i(r.children,(n={},n[r.center]="center"===j,n[r.right]="right"===j,n))},d):t.createElement(o.Base,e({title:void 0===p?"-":p,subtitle:h,className:i((m={},m[r.center]="center"===j,m[r.right]="right"===j,m)),addon:u},g)))};export{l as TableCell};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{TableCell}from"./component.js";import"tslib";import"react";import"classnames";import"../../../cell/component.js";import"../../../cell/base/component.js";import"../../../__internal/utils/getDataTestId.js";import"../../../hooks/useFocus/index.js";import"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-
|
|
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-75533e2c.js";import"../../../typography/title/index.js";import"../../../typography/title/component.js";import"../../../cell/pure/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import r from"@alphakits/icons/dist/ChevronForwardS";import o from"classnames";import{Typography as t}from"../../../typography/component.js";import"../../../typography/text/component.js";import"../../../colors.module-
|
|
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-75533e2c.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-
|
|
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-75533e2c.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-
|
|
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-75533e2c.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-75533e2c.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-75533e2c.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"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-
|
|
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-75533e2c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";import"./components/empty-list/index.js";import"./languages/index.js";import"./components/error/index.js";import"./components/loading/index.js";import"../cell/component.js";import"../cell/base/component.js";import"../__internal/utils/getDataTestId.js";import"../hooks/useFocus/index.js";import"../cell/pure/component.js";import"./components/pagination/index.js";import"../button/component.js";import"react-merge-refs";import"../loader/component.js";import"./components/table-header/index.js";import"@alphakits/icons/dist/ControllerS";import"@alphakits/icons/dist/PlusS";import"rooks";import"../flex/component.js";import"../header-search/component.js";import"@alphakits/icons/dist/CloseS";import"@alphakits/icons/dist/SearchM";import"./hooks/use-table-data.js";import"query-string";import"./utils/get-query-from-url.js";import"./utils/parse-query-params.js";import"./utils/serialize-data.js";import"./utils/sort-array.js";import"./utils/is-object.js";import"./utils/add-query-param.js";import"./utils/set-query-to-url.js";import"./utils/get-tags.js";import"./utils/prepare-rows.js";import"@alphakits/icons/dist/PhotoM";import"../image/component.js";import"../skeleton/component.js";import"../use-image-render-component-c79fbb8b.js";import"@alphakits/icons/dist/PhotoS";import"../spinner/component.js";import"../image/types.js";import"../image/utils.js";import"./utils/remove-query-param.js";import"./utils/reset-query-param.js";
|
package/dist/table/table.js
CHANGED
|
@@ -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-
|
|
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-75533e2c.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-c79fbb8b.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 +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-75533e2c.js";import"../../typography/title/index.js";import"tslib";import"../../typography/title/component.js";import"../../use-image-render-component-c79fbb8b.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-75533e2c.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-75533e2c.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
|
package/dist/tag/component.js
CHANGED
|
@@ -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-
|
|
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-75533e2c.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-75533e2c.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-75533e2c.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-75533e2c.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>, "style" | "
|
|
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: "
|
|
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{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-75533e2c.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-75533e2c.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-75533e2c.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-75533e2c.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-75533e2c.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-75533e2c.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>, "
|
|
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,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { SelectProps } from "./component-245a156c";
|
|
4
|
-
import { OptionsListProps } from "./select/typings";
|
|
5
|
-
declare const CustomOptionsList: React.ForwardRefExoticComponent<OptionsListProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
type SelectSearchProps = Omit<SelectProps, 'options'> & {
|
|
7
|
-
options: any;
|
|
8
|
-
searchType?: 'text' | 'number';
|
|
9
|
-
};
|
|
10
|
-
declare const SelectSearch: ({ options, searchType, onChange, selected, ...restProps }: SelectSearchProps) => JSX.Element;
|
|
11
|
-
export { CustomOptionsList, SelectSearch };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__rest as e,__assign as o,__spreadArray as t}from"tslib";import n,{useEffect as r,useState as i,useCallback as s,forwardRef as p}from"react";import{Arrow as l}from"./select/components/arrow/component.js";import{BaseSelect as c}from"./select/components/base-select/component.js";import{Field as u}from"./select/components/field/component.js";import{Optgroup as m}from"./select/components/optgroup/component.js";import{Option as a}from"./select/components/option/component.js";import{OptionsList as f}from"./select/components/options-list/component.js";import{SearchS as d}from"@alphakits/icons";import{useClickOutside as v}from"./hooks/useClickOutside/index.js";import"./utils/get-service-error/index.js";import"./toast-notifier/component.js";import{Input as O}from"./input/component.js";var g="index-module_innerInput__THnfC",h=n.forwardRef((function(t,i){var s=t.inputProps,p=e(t,["inputProps"]),l=n.useRef(null);return r((function(){var e;(null==l?void 0:l.current)&&(null===(e=null==l?void 0:l.current)||void 0===e||e.focus())}),[]),n.createElement("div",{ref:i},n.createElement("div",{style:{padding:"5px 20px"}},n.createElement(O,o({size:"s",leftAddons:n.createElement(d,null)},s,{fieldClassName:g,block:!0,ref:l}))),n.createElement(f,o({},p,{ref:i})))})),C=function(r){var p=r.options,l=r.searchType,c=void 0===l?"text":l,u=r.onChange,m=r.selected,a=void 0===m?"":m,f=e(r,["options","searchType","onChange","selected"]),d=i(p),O=d[0],g=d[1],C=i(""),w=C[0],y=C[1],E=n.useRef(null),L=s((function(e,o){var n=o.value;y(n);try{if(!n)return g(p);var r=n.toLowerCase(),i=p.reduce((function(e,o){return t(t([],e),o.options?o.options:[o])}),[]).filter((function(e){var o=e.key,t=e.value;return JSON.stringify({key:o,value:t}).toLowerCase().includes(r)}));return g(i)}catch(e){return[]}}),[p]),x=function(){y(""),g(p)};return v(E,x),n.createElement(j,o({},f,{selected:a,onChange:function(e){null==u||u(e),x()},showEmptyOptionsList:!0,optionsListProps:{ref:E,inputProps:{onChange:L,value:w,type:c,clear:!0,onClear:x}},OptionsList:h,options:O.length?O:p}))},j=p((function(t,r){var i,s=t.Arrow,p=t.Field,d=t.OptionsList,v=t.Optgroup,O=t.Option,g=e(t,["Arrow","Field","OptionsList","Optgroup","Option"]);return(null===(i=g.options)||void 0===i?void 0:i.length)>10?n.createElement(C,o({Option:O||a,Field:p||u,Optgroup:v||m,OptionsList:d||f,Arrow:s||l},g)):n.createElement(c,o({ref:r,Option:O||a,Field:p||u,Optgroup:v||m,OptionsList:d||f,Arrow:s||l},g))}));export{h as C,j as S,C as a};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { FormControlProps } from "./form-control/index";
|
|
4
|
-
import { BaseSelectProps } from "./select/typings";
|
|
5
|
-
type SelectProps = Omit<BaseSelectProps, 'fieldProps'> & {
|
|
6
|
-
fieldProps?: FormControlProps & Record<string, unknown>;
|
|
7
|
-
};
|
|
8
|
-
declare const Select: React.ForwardRefExoticComponent<Omit<BaseSelectProps, "fieldProps"> & {
|
|
9
|
-
fieldProps?: (React.HTMLAttributes<HTMLDivElement> & {
|
|
10
|
-
block?: boolean | undefined;
|
|
11
|
-
size?: "s" | "xs" | "m" | "l" | "xl" | undefined;
|
|
12
|
-
disabled?: boolean | undefined;
|
|
13
|
-
filled?: boolean | undefined;
|
|
14
|
-
focused?: boolean | undefined;
|
|
15
|
-
error?: string | boolean | undefined;
|
|
16
|
-
hint?: string | undefined;
|
|
17
|
-
required?: boolean | undefined;
|
|
18
|
-
label?: React.ReactNode;
|
|
19
|
-
leftAddons?: React.ReactNode;
|
|
20
|
-
rightAddons?: React.ReactNode;
|
|
21
|
-
bottomAddons?: React.ReactNode;
|
|
22
|
-
className?: string | undefined;
|
|
23
|
-
fieldClassName?: string | undefined;
|
|
24
|
-
labelClassName?: string | undefined;
|
|
25
|
-
addonsClassName?: string | undefined;
|
|
26
|
-
dataTestId?: string | undefined;
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
} & Record<string, unknown>) | undefined;
|
|
29
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
-
export { SelectProps, Select };
|
|
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-682c895b.d.ts → use-image-render-component-c79fbb8b.d.ts}
RENAMED
|
File without changes
|
/package/dist/{use-image-render-component-682c895b.js → use-image-render-component-c79fbb8b.js}
RENAMED
|
File without changes
|