@alphakits/ui 1.3.17 → 1.3.21
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-140c7557.js → _commonjsHelpers-d375d018.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.js +1 -1
- package/dist/avatar/hooks/use-image-loading-state.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.d.ts +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-input/component.d.ts +1 -1
- package/dist/calendar-input/component.js +1 -1
- package/dist/calendar-input/index.js +1 -1
- package/dist/cell/action/component.js +1 -1
- package/dist/cell/action/index.d.ts +1 -1
- package/dist/cell/action/index.js +1 -1
- package/dist/cell/autopayment/component.js +1 -1
- package/dist/cell/autopayment/index.d.ts +1 -1
- package/dist/cell/autopayment/index.js +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/catalog/component.js +1 -1
- package/dist/cell/catalog/index.d.ts +1 -1
- package/dist/cell/catalog/index.js +1 -1
- package/dist/cell/component.js +1 -1
- package/dist/cell/index.js +1 -1
- package/dist/cell/pure/component.d.ts +1 -1
- package/dist/cell/pure/component.js +1 -1
- package/dist/cell/pure/index.js +1 -1
- package/dist/cell/subscription/component.js +1 -1
- package/dist/cell/subscription/index.d.ts +1 -1
- package/dist/cell/subscription/index.js +1 -1
- package/dist/cell/transaction/component.js +1 -1
- package/dist/cell/transaction/index.js +1 -1
- package/dist/checkbox/component.d.ts +1 -1
- package/dist/checkbox/component.js +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox-group/component.d.ts +11 -10
- 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/collapse/component.js +1 -1
- package/dist/collapse/index.js +1 -1
- package/dist/{colors.module-c9ce0af0.js → colors.module-5493a800.js} +0 -0
- package/dist/{common.module-ec30844d.js → common.module-a0e0cdb8.js} +0 -0
- package/dist/{component-1d434af3.d.ts → component-ba9f9e83.d.ts} +0 -0
- package/dist/{component-1d434af3.js → component-ba9f9e83.js} +0 -0
- package/dist/{contact-block-12d27551.d.ts → contact-block-a0d10fd9.d.ts} +0 -0
- package/dist/{contact-block-12d27551.js → contact-block-a0d10fd9.js} +0 -0
- 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/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.js +1 -1
- package/dist/form/utils/get-default-values.js +1 -1
- package/dist/form-control/component.d.ts +1 -1
- package/dist/form-control/component.js +1 -1
- package/dist/form-control/index.js +1 -1
- package/dist/{formik.esm-672ec488.js → formik.esm-05ecb52e.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-a42f52fa.js → gutters.module-9e385016.js} +0 -0
- package/dist/heading/component.js +1 -1
- package/dist/heading/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-crud-form-requests/index.js +1 -1
- package/dist/hooks/use-get-ine/index.js +1 -1
- package/dist/icon-button/component.d.ts +1 -1
- package/dist/icon-button/component.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/image/component.d.ts +9 -2
- package/dist/image/component.js +1 -1
- package/dist/image/index.js +1 -1
- package/dist/index.css +2 -2
- package/dist/index.ts +0 -2
- 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/component.js +1 -1
- package/dist/input/index.js +1 -1
- 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 +1 -1
- package/dist/masked-input/component.js +1 -1
- package/dist/masked-input/index.js +1 -1
- 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.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-85cf5a9e.d.ts → parse-query-params-18a0a711.d.ts} +0 -0
- package/dist/{parse-query-params-85cf5a9e.js → parse-query-params-18a0a711.js} +1 -1
- package/dist/picker-button/component.d.ts +2 -2
- 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 +1 -1
- package/dist/radio/component.js +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio-group/component.d.ts +8 -7
- 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 +2 -2
- 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.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.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/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.js +1 -1
- package/dist/select/presets/use-select-with-loading/hook.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-ellipse-button/component.js +1 -1
- package/dist/super-ellipse-button/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 +1 -1
- package/dist/switch/component.js +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/table/columns.js +1 -1
- package/dist/table/component.js +1 -1
- package/dist/table/components/cell/component.d.ts +2 -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/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/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-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.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-9f8cff33.js → tslib.es6-b807e523.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/with-suffix/component.d.ts +1 -1
- package/dist/with-suffix/component.js +1 -1
- package/dist/with-suffix/index.js +1 -1
- package/package.json +1 -1
- package/dist/photo-uploader/component.d.ts +0 -22
- package/dist/photo-uploader/component.js +0 -1
- package/dist/photo-uploader/index.d.ts +0 -1
- package/dist/photo-uploader/index.js +0 -1
- package/dist/photo-uploader-multiple/component.d.ts +0 -21
- package/dist/photo-uploader-multiple/component.js +0 -1
- package/dist/photo-uploader-multiple/index.d.ts +0 -1
- package/dist/photo-uploader-multiple/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import"react";import"classnames";import"ts-keycode-enum";import"../../avatar/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{S as Subscription}from"../../component-
|
|
1
|
+
import"react";import"classnames";import"ts-keycode-enum";import"../../avatar/component.js";import"../../hooks/useFocus/index.js";import"../../typography/component.js";export{S as Subscription}from"../../component-ba9f9e83.js";import"../../tslib.es6-b807e523.js";import"../../__internal/utils/getDataTestId.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-5493a800.js";import"../../common.module-a0e0cdb8.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../divider/component.js";import"../pure/component.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "../../component-
|
|
1
|
+
export * from "../../component-ba9f9e83";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as Subscription}from"../../component-
|
|
1
|
+
export{S as Subscription}from"../../component-ba9f9e83.js";import"react";import"classnames";import"ts-keycode-enum";import"../../__internal/utils/getDataTestId.js";import"../../hooks/useFocus/index.js";import"../../super-ellipse/component.js";import"../../super-ellipse-pure/component.js";import"../../super-ellipse-shape/component.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../tslib.es6-b807e523.js";import"../../typography/title/component.js";import"../../colors.module-5493a800.js";import"../../common.module-a0e0cdb8.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../divider/component.js";import"../pure/component.js";import"../../avatar/component.js";import"../../spinner/component.js";import"../../avatar/hooks/use-image-loading-state.js";import"../transaction/component.js";import"../../amount/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useRef as t,useCallback as o}from"react";import m from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";import{Amount as r}from"../../amount/component.js";import{useFocus as n}from"../../hooks/useFocus/index.js";import{Typography as l}from"../../typography/component.js";import"../../tslib.es6-
|
|
1
|
+
import e,{useRef as t,useCallback as o}from"react";import m from"classnames";import{getDataTestId as a}from"../../__internal/utils/getDataTestId.js";import{Amount as r}from"../../amount/component.js";import{useFocus as n}from"../../hooks/useFocus/index.js";import{Typography as l}from"../../typography/component.js";import"../../tslib.es6-b807e523.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-5493a800.js";import"../../common.module-a0e0cdb8.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";var i="index-module_component__3WKk8",c="index-module_slot__3-oQ0",s="index-module_title__3SCFU",d="index-module_content__T63TF",p="index-module_contentWrapper__3nonU",u="index-module_category__GwY-S",_="index-module_categoryPercent__1zrQk",y="index-module_amount__16vE9",v="index-module_positiveAmount__3qWEM",x="index-module_profit__3NGqk",E="index-module_comment__3FRy7",g="index-module_commentTextWrapper__PKIqe",N="index-module_commentText__2e0YN",j="index-module_focused__1K2z_",f=function(f){var T,w=f.slot,h=f.title,k=f.comment,b=f.category,C=void 0===b?"Другое":b,F=f.amount,I=f.profit,K=f.categoryPercent,P=f.type,W=void 0===P?"default":P,q=f.className,z=f.dataTestId,G=f.onClick,Q=t(null),S=n(Q,"keyboard")[0],U=o((function(e){void 0!==G&&(13===(e.charCode||e.keyCode)&&G())}),[G]);return e.createElement("div",{ref:Q,onKeyPress:U,onClick:G,role:"button",tabIndex:0,className:m(i,(T={},T[j]=S,T),q),"data-test-id":a("cell-transaction",z,!0)},e.createElement("div",{className:c},w),e.createElement("div",{className:d},e.createElement("div",{className:p},e.createElement(l.Text,{className:s,view:"component"},h),C&&e.createElement("div",{className:u},e.createElement(l.Text,{view:"primary-small",color:"secondary"},C),K&&e.createElement(l.Text,{tag:"div",view:"primary-small",color:"secondary",className:_},K,"%")),e.createElement("div",{className:y},"income"===W?e.createElement(l.Text,{view:"component",tag:"div",className:v},"+",e.createElement(r,{view:"title",currency:F.currency,value:F.value})):e.createElement(l.Text,{view:"component",tag:"div"},"-",e.createElement(r,{value:F.value,currency:F.currency})),"hold"===W&&e.createElement(e.Fragment,null," ")),I&&e.createElement(l.Text,{className:x,view:"primary-small",color:"secondary"},"+",I))),k&&e.createElement("div",{className:E},e.createElement("div",{className:g},e.createElement(l.Text,{tag:"div",view:"primary-small",className:N},k))))};export{f as Transaction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Transaction}from"./component.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../amount/component.js";import"../../tslib.es6-
|
|
1
|
+
export{Transaction}from"./component.js";import"react";import"classnames";import"../../__internal/utils/getDataTestId.js";import"../../amount/component.js";import"../../tslib.es6-b807e523.js";import"../../typography/component.js";import"../../typography/title/index.js";import"../../typography/title/component.js";import"../../colors.module-5493a800.js";import"../../common.module-a0e0cdb8.js";import"../../typography/text/component.js";import"../../typography/title-responsive/component.js";import"../../utils/format-amount/util.js";import"../../utils/get-currency-symbol/util.js";import"../../utils/data/currency-codes.js";import"../../utils/split-amount/util.js";import"../../hooks/useFocus/index.js";
|
|
@@ -18,7 +18,7 @@ type CheckboxProps = Omit<NativeProps, 'size' | 'onChange'> & {
|
|
|
18
18
|
dataTestId?: string;
|
|
19
19
|
indeterminate?: boolean;
|
|
20
20
|
};
|
|
21
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Pick<NativeProps, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "value" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "
|
|
21
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Pick<NativeProps, "disabled" | "color" | "className" | "children" | "form" | "list" | "slot" | "style" | "title" | "pattern" | "value" | "id" | "src" | "alt" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "step" | "required" | "accept" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "width"> & {
|
|
22
22
|
checked?: boolean | undefined;
|
|
23
23
|
onChange: (event: ChangeEvent<HTMLInputElement>, payload: {
|
|
24
24
|
checked: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as n}from"../tslib.es6-
|
|
1
|
+
import{_ as e,a as n}from"../tslib.es6-b807e523.js";import d,{forwardRef as a,useRef as t}from"react";import o from"react-merge-refs";import{ChecMarkS as l,MinusM as m}from"alpha-cli-icons";import i from"classnames";import{useFocus as c}from"../hooks/useFocus/index.js";var s={component:"index-module_component__3Wme6",start:"index-module_start__2N8TM",center:"index-module_center__1E74d",addons:"index-module_addons__3fJ7i",block:"index-module_block__1OUFu",box:"index-module_box__Q4_WE",m:"index-module_m__ydO-e",content:"index-module_content__zuheb",s:"index-module_s__3bmdq",disabled:"index-module_disabled__2P71z",checked:"index-module_checked__32R7P",indeterminate:"index-module_indeterminate__UGp1F",focused:"index-module_focused__1edDS",label:"index-module_label__3bygF",hint:"index-module_hint__2GuKu",indeterminateIcon:"index-module_indeterminateIcon__2d73Z"},_=a((function(a,_){var r,u=a.checked,b=a.label,x=a.hint,h=a.size,p=void 0===h?"m":h,k=a.align,f=void 0===k?"center":k,E=a.addons,N=a.block,g=a.onChange,v=a.className,I=a.name,y=a.disabled,z=a.dataTestId,F=a.indeterminate,C=void 0!==F&&F,P=e(a,["checked","label","hint","size","align","addons","block","onChange","className","name","disabled","dataTestId","indeterminate"]),T=t(null),j=c(T,"keyboard")[0];return d.createElement("label",{className:i(s.component,s[p],s[f],v,(r={},r[s.disabled]=y,r[s.checked]=u,r[s.indeterminate]=C,r[s.focused]=j,r[s.block]=N,r)),ref:o([T,_])},d.createElement("span",{className:s.box},d.createElement("input",n({type:"checkbox",onChange:function(e){g&&g(e,{checked:e.target.checked,name:I})},disabled:y,checked:u,"data-test-id":z},P)),u&&d.createElement(l,null),C&&!u&&d.createElement("div",{className:s.indeterminateIcon},d.createElement(m,null))),(b||x)&&d.createElement("span",{className:s.content},b&&d.createElement("span",{className:s.label},b),x&&d.createElement("span",{className:s.hint},x)),E&&d.createElement("span",{className:s.addons},E))}));_.defaultProps={indeterminate:!1};export{_ as Checkbox};
|
package/dist/checkbox/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Checkbox}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{Checkbox}from"./component.js";import"../tslib.es6-b807e523.js";import"react";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { FlexColumnsProps } from "../flex-columns/index";
|
|
3
|
-
type Data = {
|
|
4
|
-
key:
|
|
4
|
+
type Data<T> = Array<{
|
|
5
|
+
key: T;
|
|
5
6
|
content: string;
|
|
6
|
-
}
|
|
7
|
-
type CheckboxGroupProps = {
|
|
7
|
+
}>;
|
|
8
|
+
type CheckboxGroupProps = <T>(props: {
|
|
8
9
|
title?: string;
|
|
9
10
|
subtitle?: string;
|
|
10
|
-
selected:
|
|
11
|
-
data: Data
|
|
12
|
-
onChange: (values:
|
|
11
|
+
selected: T[];
|
|
12
|
+
data: Data<T>;
|
|
13
|
+
onChange: (values: T[]) => void;
|
|
13
14
|
dataTestId?: string;
|
|
14
|
-
} & FlexColumnsProps;
|
|
15
|
-
declare const CheckboxGroup:
|
|
15
|
+
} & FlexColumnsProps) => React.ReactElement;
|
|
16
|
+
declare const CheckboxGroup: CheckboxGroupProps;
|
|
16
17
|
export { CheckboxGroupProps, CheckboxGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-b807e523.js";import t from"react";import{Checkbox as o}from"../checkbox/component.js";import{FlexColumns as n}from"../flex-columns/component.js";import{Typography as r}from"../typography/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5493a800.js";import"../common.module-a0e0cdb8.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var i="index-module_text__1gRxq",c="index-module_subtitle__1s_SD",m=function(m){var l=m.title,a=m.subtitle,s=m.selected,p=void 0===s?[]:s,d=m.data,u=void 0===d?[]:d,v=m.onChange,g=m.columns,y=void 0===g?1:g,h=m.gr,x=void 0===h?20:h,f=m.gc,b=void 0===f?20:f,j=m.dataTestId,_=p||[],k=function(e){return j?"checkbox_"+j+"_"+e:"checkbox_"+e};return t.createElement("div",null,(l||a)&&t.createElement("div",{className:i},l&&t.createElement(r.Text,{tag:"div",view:"title",color:"primary",weight:"bold"},l),a&&t.createElement(r.Text,{className:c,tag:"div",view:"caps",color:"secondary",weight:"medium"},a)),t.createElement(n,{columns:y,gr:x,gc:b},null==u?void 0:u.map((function(n,r){return t.createElement(o,{key:n.key+n.content,dataTestId:k(r),onChange:function(){return t=n.key,void v((null==_?void 0:_.includes(t))?null==_?void 0:_.filter((function(e){return e!==t})):e(_,[t]));var t},checked:null==_?void 0:_.includes(n.key),label:n.content})}))))};export{m as CheckboxGroup};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroup}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroup}from"./component.js";import"../tslib.es6-b807e523.js";import"react";import"../checkbox/component.js";import"react-merge-refs";import"alpha-cli-icons";import"classnames";import"../hooks/useFocus/index.js";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5493a800.js";import"../common.module-a0e0cdb8.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"../tslib.es6-
|
|
1
|
+
import{b as e}from"../tslib.es6-b807e523.js";import t,{useState as n}from"react";import{ChevronDownS as o}from"alpha-cli-icons";import l from"classnames";import{Checkbox as r}from"../checkbox/component.js";import{Collapse as c}from"../collapse/component.js";import{Divider as i}from"../divider/component.js";import{FlexColumns as a}from"../flex-columns/component.js";import{IconButton as m}from"../icon-button/component.js";import{Padding as p}from"../padding/component.js";import{Typography as s}from"../typography/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../_commonjsHelpers-d375d018.js";import"../link/component.js";import"../button/component.js";import"../loader/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5493a800.js";import"../common.module-a0e0cdb8.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";var d={list_head:"index-module_list_head__14m8q",collapse_btn:"index-module_collapse_btn__1eM1e",collapse_btn_collapsed:"index-module_collapse_btn_collapsed__p0RhY"},u=function(u){var f=u.parents,h=u.childs,_=u.selected,j=u.checkableParent,E=u.onChange,b=[],v=Array.isArray(_)?_:[];null==f||f.forEach((function(e){var t={parent:{},childs:[],collapsed:!1};null==h||h.forEach((function(n){n.locationId===e.id&&(t.parent=e,t.childs.push(n))})),t.parent.id&&b.push(t)}));var g=n(b),y=g[0],x=g[1],k=function(t){t.forEach((function(n){(null==v?void 0:v.includes(n))?E(v.filter((function(e){return!t.includes(e)}))):E(e(v,t))}))},C=function(e){var n,o,l=e.element;return j?t.createElement(r,{block:!0,checked:(n=l.childs.map((function(e){return e.id})),o=!1,n.forEach((function(e){(null==v?void 0:v.includes(e))&&(o=!0)})),o),onChange:function(){return k(l.childs.map((function(e){return e.id})))},label:""+l.parent.title}):t.createElement(s.Text,{view:"title",weight:"medium",color:"primary"},l.parent.title)};return t.createElement("div",null,y.map((function(e,n){var s;return t.createElement(t.Fragment,{key:e.parent.id},t.createElement(t.Fragment,null,t.createElement("div",{className:d.list_head},t.createElement(C,{element:e}),t.createElement(m,{onClick:function(){return function(e){var t=y.map((function(t,n){return n===e&&(t.collapsed?t.collapsed=!1:t.collapsed=!0),t})),n=y.concat(t);x(n.filter((function(e,t){return n.indexOf(e)===t})))}(n)},size:"s",className:l(d.collapse_btn,(s={},s[d.collapse_btn_collapsed]=e.collapsed,s)),icon:o})),!e.collapsed&&t.createElement(p,{padding:"16px 0 0 0"})),t.createElement(c,{expanded:!e.collapsed},t.createElement("div",{className:d.content},t.createElement(a,{columns:1},e.childs.map((function(e){return t.createElement(r,{onChange:function(){return k([e.id])},checked:null==v?void 0:v.includes(e.id),key:e.id,label:e.title})}))))),n!==(null==y?void 0:y.length)-1&&t.createElement(i,{size:"m"}))})))};export{u as CheckboxGroups};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{CheckboxGroups}from"./component.js";import"../tslib.es6-
|
|
1
|
+
export{CheckboxGroups}from"./component.js";import"../tslib.es6-b807e523.js";import"react";import"alpha-cli-icons";import"classnames";import"../checkbox/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../collapse/component.js";import"../_commonjsHelpers-d375d018.js";import"../link/component.js";import"../divider/component.js";import"../flex-columns/component.js";import"../icon-button/component.js";import"../button/component.js";import"../loader/component.js";import"../padding/component.js";import"../typography/component.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../colors.module-5493a800.js";import"../common.module-a0e0cdb8.js";import"../typography/text/component.js";import"../typography/title-responsive/component.js";
|