@alphakits/ui 1.3.22 → 1.5.2
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/{_commonjsHelpers-5d78437d.js → _commonjsHelpers-27bd8bf8.js} +0 -0
- 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/amount-input/index.js +1 -1
- package/dist/avatar/component.d.ts +6 -18
- package/dist/avatar/component.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/button/component.js +1 -1
- package/dist/button/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/index.js +1 -1
- package/dist/calendar/components/select-button//321/201omponent.js +1 -1
- package/dist/calendar/components/years-table/index.js +1 -1
- package/dist/calendar/components/years-table//321/201omponent.js +1 -1
- package/dist/calendar/index.js +1 -1
- package/dist/calendar/use-calendar.d.ts +4 -4
- package/dist/calendar-input/component.d.ts +4 -4
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/calendar-input/utils.d.ts +1 -1
- package/dist/cell/base/component.js +1 -1
- package/dist/cell/base/index.d.ts +1 -1
- package/dist/cell/base/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/checkbox/component.d.ts +5 -5
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/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.d.ts +2 -1
- package/dist/checkbox-lists/component.js +1 -1
- package/dist/checkbox-lists/index.js +1 -1
- package/dist/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{colors.module-e10ea314.js → colors.module-6552955c.js} +0 -0
- package/dist/{common.module-1192285d.js → common.module-87da2241.js} +0 -0
- package/dist/component-d4c967f5.d.ts +14 -0
- package/dist/component-d4c967f5.js +1 -0
- package/dist/component-e71445f5.d.ts +7 -0
- package/dist/{contact-block-7713e671.d.ts → contact-block-ad242bff.d.ts} +0 -0
- package/dist/{contact-block-7713e671.js → contact-block-ad242bff.js} +0 -0
- package/dist/copy-button/component.js +1 -1
- package/dist/copy-button/index.js +1 -1
- package/dist/date/component.d.ts +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/footer/component.js +1 -1
- package/dist/footer/components/contacts-block.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/components/form-footer/index.js +1 -1
- package/dist/form/components/index.js +1 -1
- package/dist/form/index.js +1 -1
- package/dist/form/templates/crud-form/index.js +1 -1
- package/dist/form/templates/filters-form/index.js +1 -1
- package/dist/form/templates/rest-form/index.d.ts +6 -4
- package/dist/form/templates/rest-form/index.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form/utils/remove-undefined-from-object.d.ts +2 -1
- package/dist/form-control/component.d.ts +5 -5
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/{formik.esm-47226c46.js → formik.esm-4e2c2766.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/{gutters.module-88a291fc.js → gutters.module-d99ee6c7.js} +0 -0
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.d.ts +1 -0
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/{use-get-ine → use-get-one}/index.d.ts +2 -0
- package/dist/hooks/use-get-one/index.js +1 -0
- package/dist/icon-button/component.d.ts +2 -2
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.d.ts +2 -15
- package/dist/image/component.js +1 -1
- package/dist/image/constants.d.ts +13 -0
- package/dist/image/constants.js +1 -0
- package/dist/image/index.d.ts +3 -0
- package/dist/image/index.js +1 -1
- package/dist/image/typings.d.ts +25 -0
- package/dist/image/typings.js +1 -0
- package/dist/{cell/action/component.d.ts → image/use-image-render-component.d.ts} +0 -0
- package/dist/image/use-image-render-component.js +1 -0
- package/dist/image/utils.d.ts +4 -0
- package/dist/image/utils.js +1 -0
- package/dist/index.css +1 -5
- package/dist/index.ts +0 -4
- 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 +6 -6
- package/dist/input/component.js +1 -1
- package/dist/input/index.js +1 -1
- package/dist/intersection-observer-30c3e2f3.js +1 -0
- package/dist/link/component.d.ts +2 -2
- package/dist/link/component.js +1 -1
- package/dist/link/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 +6 -3
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- package/dist/message/component.d.ts +1 -0
- package/dist/message/component.js +1 -1
- package/dist/message/index.js +1 -1
- package/dist/modal/components/modals/index.js +1 -1
- package/dist/modal/context.js +1 -1
- package/dist/modal/hooks/use-modal.d.ts +2 -2
- package/dist/modal/hooks/use-modal.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/not-found/component.js +1 -1
- package/dist/not-found/index.js +1 -1
- package/dist/notification/component.js +1 -1
- package/dist/notification/index.js +1 -1
- package/dist/{parse-query-params-af66a91d.d.ts → parse-query-params-39db1afb.d.ts} +0 -0
- package/dist/{parse-query-params-af66a91d.js → parse-query-params-39db1afb.js} +1 -1
- package/dist/picker-button/component.d.ts +1 -1
- package/dist/picker-button/component.js +1 -1
- package/dist/picker-button/field/Component.js +1 -1
- package/dist/picker-button/field/index.js +1 -1
- package/dist/picker-button/index.js +1 -1
- package/dist/popover/component.js +1 -1
- package/dist/popover/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 +5 -5
- package/dist/radio/component.js +1 -1
- package/dist/radio/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.d.ts +2 -1
- package/dist/radio-groups/component.js +1 -1
- package/dist/radio-groups/index.js +1 -1
- package/dist/select/component.d.ts +1 -1
- package/dist/select/component.js +1 -1
- package/dist/select/components/base-select/component.js +1 -1
- package/dist/select/components/base-select/index.js +1 -1
- package/dist/select/components/field/component.d.ts +21 -2
- package/dist/select/components/field/component.js +1 -1
- package/dist/select/components/field/index.js +1 -1
- package/dist/select/components/index.js +1 -1
- package/dist/select/components/native-select/component.d.ts +1 -1
- package/dist/select/components/native-select/component.js +1 -1
- package/dist/select/components/native-select/index.js +1 -1
- package/dist/select/components/option/component.js +1 -1
- package/dist/select/components/option/index.js +1 -1
- package/dist/select/components/options-list/component.d.ts +2 -1
- package/dist/select/components/options-list/component.js +1 -1
- package/dist/select/components/options-list/index.js +1 -1
- package/dist/select/components/virtual-options-list/component.js +1 -1
- package/dist/select/components/virtual-options-list/index.js +1 -1
- package/dist/select/index.js +1 -1
- package/dist/select/presets/index.d.ts +1 -0
- package/dist/select/presets/index.js +1 -1
- package/dist/select/presets/use-lazy-loading/index.d.ts +45 -0
- package/dist/select/presets/use-lazy-loading/index.js +1 -0
- package/dist/select/presets/use-select-with-loading/hook.js +1 -1
- package/dist/select/typings.d.ts +7 -0
- package/dist/select/utils.d.ts +14 -2
- package/dist/select/utils.js +1 -1
- package/dist/sidepanel-header/component.js +1 -1
- package/dist/sidepanel-header/index.js +1 -1
- package/dist/space/Item.js +1 -1
- package/dist/space/component.js +1 -1
- package/dist/space/index.js +1 -1
- package/dist/suffix-input/component.d.ts +1 -1
- package/dist/suffix-input/component.js +1 -1
- package/dist/suffix-input/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/switch/component.d.ts +5 -5
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.d.ts +2 -10
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.d.ts +6 -2
- 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.d.ts +1 -1
- package/dist/table/components/empty-list/index.js +1 -1
- package/dist/table/components/error/index.d.ts +1 -1
- package/dist/table/components/error/index.js +1 -1
- package/dist/table/components/pagination/index.js +1 -1
- package/dist/table/components/row/component.js +1 -1
- package/dist/table/components/row/index.js +1 -1
- package/dist/table/components/rows/index.js +1 -1
- package/dist/table/components/table-header/index.js +1 -1
- package/dist/table/data.js +1 -1
- package/dist/table/hooks/use-table-data.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table/table.js +1 -1
- package/dist/table/utils/add-query-param.js +1 -1
- package/dist/table/utils/get-query-from-url.js +1 -1
- package/dist/table/utils/index.d.ts +1 -1
- package/dist/table/utils/index.js +1 -1
- package/dist/table/utils/parse-query-params.js +1 -1
- package/dist/table/utils/query-adapter.js +1 -1
- package/dist/table/utils/remove-query-param.js +1 -1
- package/dist/table/utils/reset-query-param.js +1 -1
- package/dist/table/utils/serialize-data.d.ts +1 -1
- package/dist/table/utils/serialize-data.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/tariff-builder/component.js +1 -1
- package/dist/tariff-builder/index.js +1 -1
- package/dist/textarea/component.d.ts +1 -1
- package/dist/textarea/component.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/toast/component.js +1 -1
- package/dist/toast/index.js +1 -1
- package/dist/toast-notifier/component.js +1 -1
- package/dist/toast-notifier/index.js +1 -1
- package/dist/toast-plate/component.d.ts +4 -4
- package/dist/toast-plate/component.js +1 -1
- package/dist/toast-plate/index.js +1 -1
- package/dist/tooltip/component.js +1 -1
- package/dist/tooltip/index.js +1 -1
- package/dist/{tslib.es6-ae23482d.js → tslib.es6-1a99fe1e.js} +0 -0
- 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/typography/title-responsive/component.js +1 -1
- package/dist/typography/title-responsive/index.js +1 -1
- package/dist/use-image-render-component-f1985b6e.d.ts +13 -0
- package/dist/use-image-render-component-f1985b6e.js +1 -0
- package/dist/utils/get-service-error/index.d.ts +21 -0
- package/dist/utils/get-service-error/index.js +1 -0
- package/dist/utils/get-service-error/is-axios-error.d.ts +3 -0
- package/dist/utils/get-service-error/is-axios-error.js +1 -0
- package/dist/utils/get-service-error/is-network-error.d.ts +2 -0
- package/dist/utils/get-service-error/is-network-error.js +1 -0
- package/dist/utils/index.js +1 -1
- package/dist/utils/show-toast/index.js +1 -1
- package/dist/vars/alpha-radiuses.css +1 -0
- package/dist/vars/typography.css +1 -1
- package/dist/with-suffix/component.d.ts +34 -3
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +10 -15
- package/dist/avatar/hooks/index.d.ts +0 -1
- package/dist/avatar/hooks/index.js +0 -1
- package/dist/avatar/hooks/use-image-loading-state.d.ts +0 -4
- package/dist/avatar/hooks/use-image-loading-state.js +0 -1
- package/dist/avatar/types.d.ts +0 -3
- package/dist/avatar/types.js +0 -1
- package/dist/cell/action/component.js +0 -1
- package/dist/cell/action/index.d.ts +0 -1
- package/dist/cell/action/index.js +0 -1
- package/dist/cell/autopayment/component.d.ts +0 -0
- package/dist/cell/autopayment/component.js +0 -1
- package/dist/cell/autopayment/index.d.ts +0 -1
- package/dist/cell/autopayment/index.js +0 -1
- package/dist/cell/catalog/component.d.ts +0 -0
- package/dist/cell/catalog/component.js +0 -1
- package/dist/cell/catalog/index.d.ts +0 -1
- package/dist/cell/catalog/index.js +0 -1
- package/dist/cell/subscription/component.d.ts +0 -0
- package/dist/cell/subscription/component.js +0 -1
- package/dist/cell/subscription/index.d.ts +0 -1
- package/dist/cell/subscription/index.js +0 -1
- package/dist/cell/transaction/component.d.ts +0 -19
- package/dist/cell/transaction/component.js +0 -1
- package/dist/cell/transaction/index.d.ts +0 -1
- package/dist/cell/transaction/index.js +0 -1
- package/dist/component-5dbe6e58.d.ts +0 -17
- package/dist/component-b5635135.d.ts +0 -63
- package/dist/component-b5635135.js +0 -1
- package/dist/hooks/use-get-ine/index.js +0 -1
- package/dist/super-ellipse/component.d.ts +0 -10
- package/dist/super-ellipse/component.js +0 -1
- package/dist/super-ellipse/index.d.ts +0 -1
- package/dist/super-ellipse/index.js +0 -1
- package/dist/super-ellipse-button/component.d.ts +0 -9
- package/dist/super-ellipse-button/component.js +0 -1
- package/dist/super-ellipse-button/index.d.ts +0 -1
- package/dist/super-ellipse-button/index.js +0 -1
- package/dist/super-ellipse-pure/component.d.ts +0 -11
- package/dist/super-ellipse-pure/component.js +0 -1
- package/dist/super-ellipse-pure/index.d.ts +0 -1
- package/dist/super-ellipse-pure/index.js +0 -1
- package/dist/super-ellipse-shape/component.d.ts +0 -12
- package/dist/super-ellipse-shape/component.js +0 -1
- package/dist/super-ellipse-shape/index.d.ts +0 -1
- package/dist/super-ellipse-shape/index.js +0 -1
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { SuperEllipseProps } from "./super-ellipse/index";
|
|
4
|
-
import { PureProps } from "./cell/pure/component";
|
|
5
|
-
type CatalogProps = {
|
|
6
|
-
icon: React.ReactNode;
|
|
7
|
-
view?: "secondary" | "inverted";
|
|
8
|
-
direction?: "horizontal" | "vertical";
|
|
9
|
-
className?: string;
|
|
10
|
-
dataTestId?: string;
|
|
11
|
-
onClick: () => void;
|
|
12
|
-
};
|
|
13
|
-
declare const Catalog: React.FC<CatalogProps>;
|
|
14
|
-
type BaseProps = {
|
|
15
|
-
src?: string;
|
|
16
|
-
icon?: React.ReactNode;
|
|
17
|
-
title?: React.ReactNode;
|
|
18
|
-
subtitle?: React.ReactNode;
|
|
19
|
-
className?: string;
|
|
20
|
-
ellipseClassName?: string;
|
|
21
|
-
order?: PureProps["order"];
|
|
22
|
-
size?: PureProps["size"];
|
|
23
|
-
dataTestId?: string;
|
|
24
|
-
view?: SuperEllipseProps["view"];
|
|
25
|
-
};
|
|
26
|
-
declare const Base: React.FC<BaseProps>;
|
|
27
|
-
type AutopaymentProps = {
|
|
28
|
-
slot?: React.ReactNode;
|
|
29
|
-
extra?: React.ReactNode;
|
|
30
|
-
view?: "default" | "primary";
|
|
31
|
-
title: React.ReactNode;
|
|
32
|
-
description?: string;
|
|
33
|
-
footer?: React.ReactNode;
|
|
34
|
-
divider?: boolean;
|
|
35
|
-
className?: string;
|
|
36
|
-
titleClassName?: string;
|
|
37
|
-
dataTestId?: string;
|
|
38
|
-
onClick: () => void;
|
|
39
|
-
};
|
|
40
|
-
declare const Autopayment: React.FC<AutopaymentProps>;
|
|
41
|
-
type ActionProps = {
|
|
42
|
-
icon: React.ReactNode;
|
|
43
|
-
ellipse?: boolean;
|
|
44
|
-
title?: React.ReactNode;
|
|
45
|
-
subtitle: React.ReactNode;
|
|
46
|
-
onClick: () => void;
|
|
47
|
-
className?: string;
|
|
48
|
-
order?: PureProps["order"];
|
|
49
|
-
size?: PureProps["size"];
|
|
50
|
-
dataTestId?: string;
|
|
51
|
-
};
|
|
52
|
-
declare const Action: React.FC<ActionProps>;
|
|
53
|
-
type SubscriptionProps = {
|
|
54
|
-
src: string;
|
|
55
|
-
alt: string;
|
|
56
|
-
title: React.ReactNode;
|
|
57
|
-
subtitle: React.ReactNode;
|
|
58
|
-
icon?: React.ReactNode;
|
|
59
|
-
onClick: () => void;
|
|
60
|
-
className?: string;
|
|
61
|
-
};
|
|
62
|
-
declare const Subscription: React.FC<SubscriptionProps>;
|
|
63
|
-
export { CatalogProps, Catalog, BaseProps, Base, AutopaymentProps, Autopayment, ActionProps, Action, SubscriptionProps, Subscription };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e,{useRef as t,useCallback as o}from"react";import a from"classnames";import{Key as l}from"ts-keycode-enum";import{getDataTestId as n}from"./__internal/utils/getDataTestId.js";import{useFocus as i}from"./hooks/useFocus/index.js";import{SuperEllipse as r}from"./super-ellipse/component.js";import{Typography as d}from"./typography/component.js";import{Divider as s}from"./divider/component.js";import{Pure as c}from"./cell/pure/component.js";import{Avatar as m}from"./avatar/component.js";import{Transaction as _}from"./cell/transaction/component.js";var u="index-module_component__sbYAG",p="index-module_superEllipse__14Bx5",x="index-module_iconMixColors__2khCL",v="index-module_title__9v4U9",f="index-module_subtitle__2edft",y="index-module_focused__39xUe",E=function(s){var c,m=s.icon,_=s.onClick,E=s.className,N=s.dataTestId,T=s.order,b=void 0===T?"reverse":T,C=s.ellipse,k=void 0===C||C,w=s.title,I=s.subtitle,g=s.size,h=t(null),j=i(h,"keyboard")[0],P=o((function(e){(e.charCode||e.keyCode)===l.Enter&&_()}),[_]),K=k?e.createElement(r,{className:p,view:"secondary"},m):e.createElement("div",{className:x},m);return e.createElement(B.Pure,{slot:K,onClick:_,className:a(u,(c={},c[y]=j,c),E),dataTestId:n("cell-action",N,!0),order:b,role:"button",tabIndex:0,size:g,onKeyPress:P,ref:h},w&&e.createElement(d.Text,{view:"primary-small",color:"secondary",tag:"div",className:v},w),e.createElement(d.Text,{view:"component",tag:"div",className:f,color:"primary"},I))},N={component:"index-module_component__1p3vg",slot:"index-module_slot__1Oa0-",title:"index-module_title__2u71k",primary:"index-module_primary__3wTjy",cell:"index-module_cell__3_yK7",default:"index-module_default__L1uVr",container:"index-module_container__452iY",textContainer:"index-module_textContainer__OmDn_",footer:"index-module_footer__1y7uS",description:"index-module_description__2OCm8",divider:"index-module_divider__3KcVj",focused:"index-module_focused__2AtJK"},T=function(o){var l,r=o.slot,c=o.extra,m=o.title,_=o.description,u=o.footer,p=o.divider,x=o.view,v=void 0===x?"primary":x,f=o.className,y=o.dataTestId,E=o.onClick,T=t(null),b=i(T,"keyboard")[0];return e.createElement("div",{className:a(N.component,N[v],(l={},l[N.focused]=b,l),f)},e.createElement(B.Pure,{dataTestId:n("cell-autopayment",y,!0),className:N.cell,onClick:E,role:"button",tabIndex:0,ref:T,slot:r&&e.createElement("div",{className:N.slot},r)},e.createElement("div",{className:N.container},e.createElement("div",{className:N.textContainer},e.createElement(d.Text,{view:"component",className:N.title},m),_&&e.createElement(d.Text,{view:"primary-small",color:"secondary",className:N.description},_)),c&&e.createElement(d.Text,{view:"component",tag:"div"},c))),u&&e.createElement("div",{className:N.footer},u),p&&e.createElement("div",{className:N.divider},e.createElement(s,null)))},b="index-module_component__2592K",C="index-module_superEllipse__ceW1i",k="index-module_title__3aV9N",w="index-module_subtitle__1qfeh",I="index-module_focused__1vVeT",g=function(o){var l,s=o.icon,c=o.className,m=o.ellipseClassName,_=o.src,u=o.dataTestId,p=o.order,x=void 0===p?"normal":p,v=o.title,f=o.subtitle,y=o.size,E=void 0===y?"m":y,N=o.view,T=void 0===N?"secondary":N,g=t(null),h=i(g,"keyboard")[0],j=s||_?e.createElement(r,{size:"s",imageUrl:_,className:a(C,m),view:T},s):null;return e.createElement(B.Pure,{slot:j,className:a(b,(l={},l[I]=h,l),c),dataTestId:n("cell-action",u,!0),order:x,tabIndex:0,size:E,ref:g},v&&e.createElement(d.Text,{view:"title",color:"primary",weight:"medium",tag:"div",className:k},v),f&&e.createElement(d.Text,{weight:"medium",view:"caps",tag:"div",className:w,color:"secondary"},f))},h={component:"index-module_component__1gByI",slot:"index-module_slot__lNwqi",secondary:"index-module_secondary__FnFK1",inverted:"index-module_inverted__2TMrm",text:"index-module_text__cDUg-",focused:"index-module_focused__1ruEE"},j=function(l){var s,c=l.icon,m=l.view,_=void 0===m?"secondary":m,u=l.direction,p=void 0===u?"horizontal":u,x=l.className,v=l.dataTestId,f=l.onClick,y=l.children,E=t(null),N=i(E,"keyboard")[0],T=o((function(e){void 0!==f&&(13===(e.charCode||e.keyCode)&&f())}),[f]);return e.createElement(B.Pure,{dataTestId:n("cell-catalog",v,!0),className:a(h.component,h[_],(s={},s[h.focused]=N,s),x),direction:p,onClick:f,role:"button",tabIndex:0,onKeyPress:T,ref:E,slot:e.createElement(r,{view:_,className:h.slot},c)},e.createElement(d.Text,{view:"component",className:h.text},y))},P="index-module_component__3MlDP",K="index-module_avatar__1RmGh",z="index-module_title__RTbCk",A="index-module_subtitle__cjZVa",U="index-module_focused__38ljU",V=function(n){var r,s=n.src,c=n.alt,_=n.onClick,u=n.className,p=n.title,x=n.subtitle,v=n.icon,f=t(null),y=i(f,"keyboard")[0],E=o((function(e){(e.charCode||e.keyCode)===l.Enter&&_()}),[_]),N=e.createElement(m,{src:s,alt:c,className:K,view:"secondary"},v);return e.createElement(B.Pure,{slot:N,onClick:_,className:a(P,(r={},r[U]=y,r),u),dataTestId:"cell-subscription",role:"button",tabIndex:0,onKeyPress:E,ref:f},e.createElement(d.Text,{view:"component",color:"primary",tag:"div",className:z,dataTestId:"title"},p),e.createElement(d.Text,{view:"primary-small",tag:"div",className:A,color:"secondary",dataTestId:"subtitle"},x))},B={Pure:c,Action:E,Catalog:j,Autopayment:T,Transaction:_,Subscription:V,Base:g};export{E as A,g as B,B as C,V as S,T as a,j as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,d as o}from"../../tslib.es6-ae23482d.js";import{useState as r,useEffect as e}from"react";import s from"axios";import{ToastNotifier as i}from"../../toast-notifier/component.js";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"alpha-cli-icons";import"../../button/component.js";import"react-merge-refs";import"../useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var a=function(a,n){var m=r(!1),c=m[0],p=m[1],d=r({}),u=d[0],f=d[1];return e((function(){a&&t(void 0,void 0,void 0,(function(){var t,r,e,m;return o(this,(function(o){switch(o.label){case 0:p(!0),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,n(a)];case 2:return t=o.sent().data,f(t),p(!1),[3,4];case 3:return r=o.sent(),e=s.isAxiosError(r)?null===(m=r.response)||void 0===m?void 0:m.data.message:r,i({dataTestId:"toastNotifierError",title:"Error",offset:32,view:"negative",text:e}),[3,4];case 4:return[2]}}))}))}),[]),{record:u,loading:c}};export{a as useGetOne};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { SuperEllipseShapeProps } from "../super-ellipse-shape/index";
|
|
4
|
-
type SuperEllipseProps = Omit<SuperEllipseShapeProps, 'fill'> & {
|
|
5
|
-
className?: string;
|
|
6
|
-
view?: 'attention' | 'secondary' | 'success' | 'warning' | 'error' | 'static' | 'inverted' | 'accent' | 'accent-inverted';
|
|
7
|
-
dataTestId?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const SuperEllipse: React.FC<SuperEllipseProps>;
|
|
10
|
-
export { SuperEllipseProps, SuperEllipse };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import i from"classnames";import{getDataTestId as n}from"../__internal/utils/getDataTestId.js";import{SuperEllipsePure as s}from"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";var t={ellipse:"index-module_ellipse__2ybxq",attention:"index-module_attention__3yJeV",success:"index-module_success__uPsSv",error:"index-module_error__1eNHg",warning:"index-module_warning__2HIxa",secondary:"index-module_secondary__20qRr",static:"index-module_static__3Xz_I",inverted:"index-module_inverted__1KwGN",accent:"index-module_accent__3bW5m","accent-inverted":"index-module_accent-inverted__3nGHa",icon:"index-module_icon__ziu9T"},a=function(a){var o=a.size,r=a.view,d=void 0===r?"secondary":r,l=a.outlined,_=a.imageUrl,m=a.className,c=a.dataTestId,u=a.children;return e.createElement(s,{size:o,outlined:l,imageUrl:_,className:i(t[d],m),shapeClassName:i(t.ellipse,t[d]),iconClassName:i(t.icon,t[d]),dataTestId:n("super-ellipse",c,!0)},u)};export{a as SuperEllipse};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{SuperEllipse}from"./component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { IButtonProps } from "../button/index";
|
|
4
|
-
import { SuperEllipseProps } from "../super-ellipse/index";
|
|
5
|
-
interface SuperEllipseButtonProps extends Omit<IButtonProps, 'view' | 'leftAddons' | 'rightAddons' | 'loading'> {
|
|
6
|
-
superEllipseProps?: SuperEllipseProps;
|
|
7
|
-
}
|
|
8
|
-
declare const SuperEllipseButton: React.FC<SuperEllipseButtonProps>;
|
|
9
|
-
export { SuperEllipseButtonProps, SuperEllipseButton };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as e,a as s}from"../tslib.es6-ae23482d.js";import o from"react";import r from"classnames";import{Button as t}from"../button/component.js";import{SuperEllipse as m}from"../super-ellipse/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";var p="component-module_component__2ITBq",a="component-module_superEllipse__ArZlb",l=function(l){var n=l.children,i=l.className,c=l.superEllipseProps,u=void 0===c?{}:c,d=u.className,_=e(u,["className"]),j=e(l,["children","className","superEllipseProps"]);return o.createElement(t,s({view:"ghost",className:r(p,i)},j),o.createElement(m,s({className:r(a,d),view:"secondary"},_),n))};export{l as SuperEllipseButton};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{SuperEllipseButton}from"./component.js";import"../tslib.es6-ae23482d.js";import"react";import"classnames";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../super-ellipse/component.js";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-pure/component.js";import"../super-ellipse-shape/component.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { SuperEllipseShapeProps } from "../super-ellipse-shape/index";
|
|
4
|
-
type SuperEllipsePureProps = SuperEllipseShapeProps & {
|
|
5
|
-
className?: string;
|
|
6
|
-
shapeClassName?: string;
|
|
7
|
-
iconClassName?: string;
|
|
8
|
-
dataTestId?: string;
|
|
9
|
-
};
|
|
10
|
-
declare const SuperEllipsePure: React.FC<SuperEllipsePureProps>;
|
|
11
|
-
export { SuperEllipsePureProps, SuperEllipsePure };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import l from"classnames";import{getDataTestId as i}from"../__internal/utils/getDataTestId.js";import{SuperEllipseShape as o}from"../super-ellipse-shape/component.js";var s={component:"index-module_component__1dGld",ellipse:"index-module_ellipse__2Jlog",icon:"index-module_icon__1b9c8","icon-s":"index-module_icon-s__10VCY","icon-xl":"index-module_icon-xl__2j9RS"},n=function(n){var a=n.size,t=void 0===a?"s":a,m=n.outlined,c=void 0!==m&&m,r=n.imageUrl,d=n.className,p=n.shapeClassName,_=n.iconClassName,u=n.dataTestId,v=n.fill,x=void 0===v?"currentColor":v,f=n.children;return e.createElement("div",{className:l(s.component,d),"data-test-id":i("super-ellipse-pure",u,!0)},e.createElement("div",{className:s.ellipse},e.createElement(o,{size:t,outlined:c,imageUrl:r,className:p,fill:x}),!r&&e.createElement("div",{className:l(s.icon,s["icon-"+t],_)},f)))};export{n as SuperEllipsePure};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{SuperEllipsePure}from"./component.js";import"react";import"classnames";import"../__internal/utils/getDataTestId.js";import"../super-ellipse-shape/component.js";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type SuperEllipseShapeSize = 's' | 'm' | 'xl';
|
|
4
|
-
type SuperEllipseShapeProps = {
|
|
5
|
-
size?: SuperEllipseShapeSize;
|
|
6
|
-
outlined?: boolean;
|
|
7
|
-
imageUrl?: string;
|
|
8
|
-
fill?: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
};
|
|
11
|
-
declare const SuperEllipseShape: React.FC<SuperEllipseShapeProps>;
|
|
12
|
-
export { SuperEllipseShapeProps, SuperEllipseShape };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"react";import C from"classnames";var t="index-module_ellipse__1Ees1",l="index-module_path__2KkFH",i="index-module_outlined__-yEBA",n={s:"M 1.0816 10.3168 C 1.7472 5.408 5.408 1.7472 10.3168 1.0816 C 12.896 0.6656 16.0576 0.416 19.968 0.416 C 23.8784 0.416 27.04 0.6656 29.6192 1.0816 C 34.528 1.7472 38.1888 5.408 38.8544 10.3168 C 39.2704 12.896 39.52 16.0576 39.624 19.924 C 39.52 23.8784 39.2704 27.04 38.8544 29.6192 C 38.1888 34.528 34.528 38.1888 29.6192 38.8544 C 27.04 39.2704 23.8784 39.52 19.965 39.709 C 16.0576 39.52 12.896 39.2704 10.3168 38.8544 C 5.408 38.1888 1.7472 34.528 1.0816 29.6192 C 0.6656 27.04 0.416 23.8784 0.416 19.968 C 0.416 16.0576 0.6656 12.896 1.0816 10.3168 Z",m:"M1.27524 12.3866C2.11691 6.50603 6.50603 2.11691 12.3866 1.27524C15.4774 0.832869 19.3485 0.5 24\n 0.5C28.6515 0.5 32.5226 0.832869 35.6134 1.27524C41.494 2.11691 45.8831 6.50603 46.7248 12.3866C47.1671\n 15.4774 47.5 19.3485 47.5 24C47.5 28.6515 47.1671 32.5226 46.7248 35.6134C45.8831 41.494 41.494 45.8831\n 35.6134 46.7248C32.5226 47.1671 28.6515 47.5 24 47.5C19.3485 47.5 15.4774 47.1671 12.3866 46.7248C6.50603\n 45.8831 2.11691 41.494 1.27524 35.6134C0.832869 32.5226 0.5 28.6515 0.5 24C0.5 19.3485 0.832869 15.4774\n 1.27524 12.3866Z",xl:"M1.30048 20.5263C2.75571 10.3588 10.3588 2.75571 20.5263 1.30048C25.7164 0.557648 32.2076 0 40 0C47.7924\n 0 54.2836 0.557648 59.4737 1.30048C69.6412 2.75571 77.2443 10.3588 78.6995 20.5263C79.4423 25.7164 80\n 32.2076 80 40C80 47.7924 79.4423 54.2836 78.6995 59.4737C77.2443 69.6412 69.6412 77.2443 59.4737\n 78.6995C54.2836 79.4424 47.7924 80 40 80C32.2076 80 25.7163 79.4424 20.5263 78.6995C10.3588 77.2443\n 2.75571 69.6412 1.30048 59.4737C0.557648 54.2836 0 47.7924 0 40C0 32.2076 0.557648 25.7164 1.30048 20.5263Z"},a={s:40,m:48,xl:80},r=function(r){var s,m=r.size,d=void 0===m?"s":m,o=r.outlined,c=void 0!==o&&o,h=r.imageUrl,p=r.fill,g=r.className,u=n[d],x=a[d],_=h&&h.replace(/[^a-z]+/g,""),f=_&&e.createElement("defs",null,e.createElement("pattern",{id:_,width:"100%",height:"100%"},e.createElement("image",{href:h,width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"})));return e.createElement("svg",{width:x,height:x,viewBox:"0 0 "+x+" "+x,xmlns:"http://www.w3.org/2000/svg",className:C(t,g),style:{fill:p}},f,e.createElement("path",{d:u,fill:_&&"url(#"+_+")",className:C(l,(s={},s[i]=c,s))}))};export{r as SuperEllipseShape};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./component";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{SuperEllipseShape}from"./component.js";import"react";import"classnames";
|