@arthurzakharov/ui-kit 1.4.0 → 1.4.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/components/expenses/expenses.component.d.ts +1 -2
- package/dist/components/expenses/index.d.ts +1 -1
- package/dist/components/message/index.d.ts +1 -1
- package/dist/components/message/message.component.d.ts +1 -1
- package/dist/controls/control-radio/control-radio.component.d.ts +2 -2
- package/dist/controls/control-radio/control-radio.component.js +5 -5
- package/dist/main.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Base } from '../../utils/types';
|
|
3
|
-
interface ExpensesProps extends Base {
|
|
3
|
+
export interface ExpensesProps extends Base {
|
|
4
4
|
title: ReactNode;
|
|
5
5
|
content: ReactNode;
|
|
6
6
|
subContent?: ReactNode;
|
|
@@ -11,4 +11,3 @@ interface ExpensesProps extends Base {
|
|
|
11
11
|
* Displays expense information with title, content, amount, and optional sub-content.
|
|
12
12
|
*/
|
|
13
13
|
export declare const Expenses: ({ title, content, subContent, amountTitle, amountNumber, ...base }: ExpensesProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Expenses } from './expenses.component';
|
|
1
|
+
export { Expenses, type ExpensesProps } from './expenses.component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Message } from './message.component';
|
|
1
|
+
export { Message, type MessageProps } from './message.component';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Base } from '../../utils/types';
|
|
3
3
|
type MessageType = 'success' | 'question' | 'error' | 'info';
|
|
4
|
-
interface MessageProps extends Base {
|
|
4
|
+
export interface MessageProps extends Base {
|
|
5
5
|
type: MessageType;
|
|
6
6
|
title: ReactNode;
|
|
7
7
|
text: ReactNode;
|
|
@@ -7,8 +7,8 @@ export interface ControlRadioProps extends Base, Interactive<string> {
|
|
|
7
7
|
orientation?: 'horizontal' | 'vertical';
|
|
8
8
|
choices: RadioChoice[];
|
|
9
9
|
state?: State;
|
|
10
|
-
|
|
10
|
+
iconSize?: ControlChoiceProps['size'];
|
|
11
11
|
textSize?: ControlRadioTextProps['size'];
|
|
12
12
|
message?: ReactNode;
|
|
13
13
|
}
|
|
14
|
-
export declare const ControlRadio: ({ id, value, choices, onChange, orientation, state,
|
|
14
|
+
export declare const ControlRadio: ({ id, value, choices, onChange, orientation, state, iconSize, textSize, message, disabled, onBlur, onFocus, className, }: ControlRadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,13 +21,13 @@ import '../../assets/control-radio-Bo1rvcg2.css';const j = "_ControlRadio_14a61_
|
|
|
21
21
|
onChange: f,
|
|
22
22
|
orientation: l = "horizontal",
|
|
23
23
|
state: i = "idle",
|
|
24
|
-
|
|
24
|
+
iconSize: h = "md",
|
|
25
25
|
textSize: u = "body",
|
|
26
26
|
message: s = "",
|
|
27
27
|
disabled: m = !1,
|
|
28
28
|
onBlur: v = () => {
|
|
29
29
|
},
|
|
30
|
-
onFocus:
|
|
30
|
+
onFocus: z = () => {
|
|
31
31
|
},
|
|
32
32
|
className: d = ""
|
|
33
33
|
}) => /* @__PURE__ */ c("div", { className: _(r.ControlRadio, d), children: [
|
|
@@ -38,8 +38,8 @@ import '../../assets/control-radio-Bo1rvcg2.css';const j = "_ControlRadio_14a61_
|
|
|
38
38
|
[r.Horizontal]: l === "horizontal",
|
|
39
39
|
[r.Vertical]: l === "vertical"
|
|
40
40
|
}),
|
|
41
|
-
children: p.map((a,
|
|
42
|
-
const n = y(t, a.value,
|
|
41
|
+
children: p.map((a, g, R) => {
|
|
42
|
+
const n = y(t, a.value, g);
|
|
43
43
|
return /* @__PURE__ */ o(M, { id: n, value: C, state: i, choice: a, choices: R, children: ({ focused: b, hovered: x, checked: e, state: E }) => /* @__PURE__ */ c("div", { className: r.Label, children: [
|
|
44
44
|
/* @__PURE__ */ o(
|
|
45
45
|
H,
|
|
@@ -63,7 +63,7 @@ import '../../assets/control-radio-Bo1rvcg2.css';const j = "_ControlRadio_14a61_
|
|
|
63
63
|
checked: e,
|
|
64
64
|
disabled: m,
|
|
65
65
|
onChange: () => f(a.value, t),
|
|
66
|
-
onFocus: () =>
|
|
66
|
+
onFocus: () => z(t),
|
|
67
67
|
onBlur: () => v(t)
|
|
68
68
|
}
|
|
69
69
|
),
|
package/dist/main.d.ts
CHANGED
|
@@ -24,11 +24,11 @@ export { ControlText, type ControlTextProps } from './controls/control-text';
|
|
|
24
24
|
export { ControlTextarea } from './controls/control-textarea';
|
|
25
25
|
export { AccordionTable, type AccordionTableProps } from './components/accordion-table/accordion-table.component';
|
|
26
26
|
export { BottomBar, type BottomBarProps } from './components/bottom-bar/bottom-bar.component';
|
|
27
|
-
export { Certifications } from './components/certifications';
|
|
27
|
+
export { Certifications, type CertificationsProps } from './components/certifications';
|
|
28
28
|
export { DataProtectedLabel } from './components/data-protected-label';
|
|
29
29
|
export { Dialog, type DialogProps, type DialogSize, type DialogPosition } from './components/dialog/dialog.component';
|
|
30
30
|
export { DialogArticle } from './components/dialog-article';
|
|
31
|
-
export { Expenses } from './components/expenses';
|
|
31
|
+
export { Expenses, type ExpensesProps } from './components/expenses';
|
|
32
32
|
export { Flex, type FlexProps } from './components/flex/flex.component';
|
|
33
33
|
export { Footer } from './components/footer';
|
|
34
34
|
export { FormRow, type FormRowProps } from './components/form-row/form-row.component';
|
|
@@ -39,7 +39,7 @@ export { Layout, type LayoutProps } from './components/layout/layout.component';
|
|
|
39
39
|
export { Line } from './components/line/line.component';
|
|
40
40
|
export { Loader } from './components/loader';
|
|
41
41
|
export { MainAttachment, type MainAttachmentProps } from './components/main-attachment/main-attachment.component';
|
|
42
|
-
export { Message } from './components/message';
|
|
42
|
+
export { Message, type MessageProps } from './components/message';
|
|
43
43
|
export { MessageBlock } from './components/message-block';
|
|
44
44
|
export { NotFound, type NotFoundProps } from './components/not-found';
|
|
45
45
|
export { Payment, type PaymentBlockProps, type PaymentGlassProps, type PaymentSidebarProps, type PaymentTextBlocksProps, type PaymentTextBlockItem, } from './components/payment/payment.component';
|