@arthurzakharov/ui-kit 1.4.5 → 1.4.7

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.
@@ -0,0 +1 @@
1
+ ._FormRow_f70c8_1{display:flex;flex-direction:column;align-items:stretch}._XXS_f70c8_7{gap:var(--rm-ui-padding-xxs)}._XS_f70c8_11{gap:var(--rm-ui-padding-xs)}._SM_f70c8_15{gap:var(--rm-ui-padding-sm)}._MD_f70c8_19{gap:var(--rm-ui-padding-md)}._LG_f70c8_23,._XL_f70c8_27{gap:var(--rm-ui-padding-xl)}._XXL_f70c8_31{gap:var(--rm-ui-padding-xxl)}._XXXL_f70c8_35{gap:var(--rm-ui-padding-xxxl)}._Child_f70c8_39{flex-grow:1}@media screen and (min-width:768px){._FormRow_f70c8_1{flex-direction:row}}
@@ -0,0 +1 @@
1
+ ._Sidebar_13hlr_1{display:block}._Board_13hlr_5{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-lg);background-color:var(--rm-ui-sidebar-bg)}._SidebarTitle_13hlr_11,._SidebarButton_13hlr_12{padding-bottom:var(--rm-ui-padding-md)}._Steps_13hlr_16,._Info_13hlr_17{display:flex;flex-direction:column;align-items:flex-start;gap:var(--rm-ui-padding-sm)}._Step_13hlr_16{display:inline-flex;align-items:center;gap:var(--rm-ui-padding-xs)}._InfoRow_13hlr_30{display:inline-flex;align-items:center;justify-content:space-between;gap:var(--rm-ui-padding-xs)}._SidebarButton_13hlr_12{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}@media screen and (min-width:1024px){._Board_13hlr_5{padding:var(--rm-ui-padding-xl)}}@media screen and (min-width:1200px){._Board_13hlr_5{padding:var(--rm-ui-padding-xxl)}._SidebarTitle_13hlr_11,._SidebarButton_13hlr_12{padding-bottom:var(--rm-ui-padding-lg)}}
@@ -1,6 +1,6 @@
1
- import { Base, Size } from '../../utils/types';
2
1
  import { PropsWithChildren } from 'react';
2
+ import { Base, Size } from '../../utils/types';
3
3
  export interface FormRowProps extends PropsWithChildren<Base> {
4
4
  gap: Size;
5
5
  }
6
- export declare const FormRow: (props: FormRowProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ export declare const FormRow: ({ children, gap, ...base }: FormRowProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +1,46 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { Children as n } from "react";
3
- import { Flex as i } from "../flex/flex.component.js";
4
- const u = (o) => {
5
- const { children: r, gap: t = "sm" } = o;
6
- return n.count(r) === 0 ? null : /* @__PURE__ */ e(i, { direction: "column", align: "stretch", grow: "equal", gap: t, changeDirectionAfter: "tablet", children: r });
7
- };
2
+ import { Children as r, isValidElement as f, cloneElement as L } from "react";
3
+ import _ from "clsx";
4
+ import { baseProps as n } from "../../utils/functions/functions.util.js";
5
+ import '../../assets/form-row-tmjvl6nb.css';const i = "_FormRow_f70c8_1", x = "_XXS_f70c8_7", S = "_XS_f70c8_11", d = "_SM_f70c8_15", M = "_MD_f70c8_19", a = "_LG_f70c8_23", u = "_XL_f70c8_27", w = "_XXL_f70c8_31", C = "_XXXL_f70c8_35", F = "_Child_f70c8_39", o = {
6
+ FormRow: i,
7
+ XXS: x,
8
+ XS: S,
9
+ SM: d,
10
+ MD: M,
11
+ LG: a,
12
+ XL: u,
13
+ XXL: w,
14
+ XXXL: C,
15
+ Child: F
16
+ }, G = ({ children: t, gap: X = "sm", ...c }) => r.count(t) === 0 ? null : /* @__PURE__ */ e(
17
+ "div",
18
+ {
19
+ "data-testid": n(c, "data-testid", "form-row"),
20
+ className: _(o.FormRow, n(c, "className"), {
21
+ [o.XXS]: X === "xxs",
22
+ [o.XS]: X === "xs",
23
+ [o.SM]: X === "sm",
24
+ [o.MD]: X === "md",
25
+ [o.LG]: X === "lg",
26
+ [o.XL]: X === "xl",
27
+ [o.XXL]: X === "xxl",
28
+ [o.XXXL]: X === "xxxl"
29
+ }),
30
+ children: r.map(t, (s) => {
31
+ if (!f(s)) return null;
32
+ const { className: m, children: l } = s.props;
33
+ return L(
34
+ s,
35
+ {
36
+ ...s.props,
37
+ className: _(m, o.Child)
38
+ },
39
+ l
40
+ );
41
+ })
42
+ }
43
+ );
8
44
  export {
9
- u as FormRow
45
+ G as FormRow
10
46
  };
@@ -0,0 +1 @@
1
+ export { FormRow } from './form-row.component';
@@ -0,0 +1,4 @@
1
+ import { FormRow as m } from "./form-row.component.js";
2
+ export {
3
+ m as FormRow
4
+ };
@@ -0,0 +1 @@
1
+ export { Sidebar, type SidebarProps } from './sidebar.component';
@@ -0,0 +1,4 @@
1
+ import { Sidebar as o } from "./sidebar.component.js";
2
+ export {
3
+ o as Sidebar
4
+ };
@@ -1,16 +1,21 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { CertificationsProps } from '../certifications';
3
3
  import { UserPanelProps } from '../user-panel';
4
- import { InfoProps } from './components/info/info.component';
5
- import { StepsProps } from './components/steps/steps.component';
4
+ import { State } from '../../controls/utils/types';
6
5
  import { Base } from '../../utils/types';
6
+ type SidebarStep = {
7
+ state: State;
8
+ text: string;
9
+ };
10
+ type SidebarInfo = [string, string];
7
11
  export interface SidebarProps extends PropsWithChildren<Base> {
8
12
  isButtonVisible: boolean;
9
13
  isUserOpen: boolean;
10
14
  title: string;
11
- steps: StepsProps['data'];
12
- info: InfoProps['data'];
15
+ steps: SidebarStep[];
16
+ info: SidebarInfo[];
13
17
  user: UserPanelProps;
14
18
  certifications: CertificationsProps['icons'];
15
19
  }
16
- export declare const Sidebar: ({ children, isButtonVisible, isUserOpen, title, steps, info, certifications, user, }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const Sidebar: ({ children, isButtonVisible, isUserOpen, title, steps, info, certifications, user, ...base }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -1,37 +1,66 @@
1
- import { jsxs as e, jsx as t } from "react/jsx-runtime";
2
- import { AnimationFadeScale as r } from "../../animations/animation-fade-scale/animation-fade-scale.component.js";
3
- import { Certifications as f } from "../certifications/certifications.component.js";
4
- import { Line as o } from "../line/line.component.js";
5
- import { Text as p } from "../text/text.component.js";
6
- import { UserPanel as S } from "../user-panel/user-panel.component.js";
7
- import { Board as h } from "./components/board/board.component.js";
8
- import { Info as u } from "./components/info/info.component.js";
9
- import { Steps as _ } from "./components/steps/steps.component.js";
10
- import '../../assets/sidebar-B3KPFpFU.css';const B = "_SidebarTitle_1sscs_1", T = "_SidebarButton_1sscs_2", a = {
11
- SidebarTitle: B,
12
- SidebarButton: T
13
- }, F = ({
14
- children: n,
15
- isButtonVisible: d = !1,
16
- isUserOpen: s = !1,
17
- title: m = "Ihre Übersicht",
18
- steps: c = [],
19
- info: l = [],
20
- certifications: b = [],
21
- user: i
22
- }) => /* @__PURE__ */ e(h, { children: [
23
- /* @__PURE__ */ t(p, { preset: "sidebar-title", className: a.SidebarTitle, children: m }),
24
- /* @__PURE__ */ t(_, { data: c }),
25
- /* @__PURE__ */ t(o, {}),
26
- /* @__PURE__ */ t(u, { data: l }),
27
- /* @__PURE__ */ t(o, {}),
28
- /* @__PURE__ */ e(r, { name: "user", condition: s, children: [
29
- /* @__PURE__ */ t(S, { title: i.title, button: i.button, data: i.data, onClick: i.onClick }),
30
- /* @__PURE__ */ t(o, {})
31
- ] }),
32
- /* @__PURE__ */ t(r, { name: "button", condition: d, duration: 0.2, delay: 0.1, children: /* @__PURE__ */ t("div", { className: a.SidebarButton, children: n }) }),
33
- /* @__PURE__ */ t(f, { icons: b })
34
- ] });
1
+ import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
+ import N from "clsx";
3
+ import { AnimationFadeScale as l } from "../../animations/animation-fade-scale/animation-fade-scale.component.js";
4
+ import { Certifications as B } from "../certifications/certifications.component.js";
5
+ import { Line as d } from "../line/line.component.js";
6
+ import { Text as s } from "../text/text.component.js";
7
+ import { UserPanel as u } from "../user-panel/user-panel.component.js";
8
+ import { ControlStatus as v } from "../../controls/control-status/control-status.component.js";
9
+ import { baseProps as c } from "../../utils/functions/functions.util.js";
10
+ import '../../assets/sidebar-ODZFjsSe.css';const x = "_Sidebar_13hlr_1", g = "_Board_13hlr_5", w = "_SidebarTitle_13hlr_11", y = "_SidebarButton_13hlr_12", T = "_Steps_13hlr_16", C = "_Info_13hlr_17", R = "_Step_13hlr_16", z = "_InfoRow_13hlr_30", e = {
11
+ Sidebar: x,
12
+ Board: g,
13
+ SidebarTitle: w,
14
+ SidebarButton: y,
15
+ Steps: T,
16
+ Info: C,
17
+ Step: R,
18
+ InfoRow: z
19
+ }, D = ({
20
+ children: m,
21
+ isButtonVisible: p = !1,
22
+ isUserOpen: b = !1,
23
+ title: h = "Ihre Übersicht",
24
+ steps: _ = [],
25
+ info: S = [],
26
+ certifications: f = [],
27
+ user: a,
28
+ ...n
29
+ }) => /* @__PURE__ */ t(
30
+ "div",
31
+ {
32
+ "data-testid": c(n, "data-testid", "sidebar"),
33
+ className: N(e.Sidebar, c(n, "className")),
34
+ children: /* @__PURE__ */ r("div", { className: e.Board, children: [
35
+ /* @__PURE__ */ t(s, { preset: "sidebar-title", className: e.SidebarTitle, children: h }),
36
+ /* @__PURE__ */ t("div", { className: e.Steps, "data-testid": "sidebar-steps", children: _.map(({ state: i, text: o }) => /* @__PURE__ */ r("div", { className: e.Step, "data-testid": "sidebar-step", children: [
37
+ /* @__PURE__ */ t(v, { state: i }),
38
+ /* @__PURE__ */ t(
39
+ s,
40
+ {
41
+ tag: "span",
42
+ weight: "medium",
43
+ size: "body-small",
44
+ color: i === "idle" ? "text-secondary" : "text-primary",
45
+ children: o
46
+ }
47
+ )
48
+ ] }, o)) }),
49
+ /* @__PURE__ */ t(d, {}),
50
+ /* @__PURE__ */ t("div", { className: e.Info, "data-testid": "sidebar-info", children: S.map(([i, o], I) => /* @__PURE__ */ r("div", { className: e.InfoRow, "data-testid": "sidebar-info-row", children: [
51
+ /* @__PURE__ */ t(s, { tag: "span", size: "body-small", color: "text-secondary", children: i }),
52
+ /* @__PURE__ */ t(s, { tag: "span", size: "body-small", align: "right", children: o })
53
+ ] }, `${i}-${I}`)) }),
54
+ /* @__PURE__ */ t(d, {}),
55
+ /* @__PURE__ */ r(l, { name: "user", condition: b, children: [
56
+ /* @__PURE__ */ t(u, { title: a.title, button: a.button, data: a.data, onClick: a.onClick }),
57
+ /* @__PURE__ */ t(d, {})
58
+ ] }),
59
+ /* @__PURE__ */ t(l, { name: "button", condition: p, children: /* @__PURE__ */ t("div", { className: e.SidebarButton, children: m }) }),
60
+ /* @__PURE__ */ t(B, { icons: f })
61
+ ] })
62
+ }
63
+ );
35
64
  export {
36
- F as Sidebar
65
+ D as Sidebar
37
66
  };
package/dist/main.d.ts CHANGED
@@ -29,7 +29,6 @@ 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
31
  export { Expenses, type ExpensesProps } from './components/expenses';
32
- export { Flex, type FlexProps } from './components/flex/flex.component';
33
32
  export { Footer } from './components/footer';
34
33
  export { FormRow, type FormRowProps } from './components/form-row/form-row.component';
35
34
  export { Header, type HeaderProps, type HeaderDescription } from './components/header/header.component';
@@ -43,7 +42,7 @@ export { Message, type MessageProps } from './components/message';
43
42
  export { MessageBlock } from './components/message-block';
44
43
  export { NotFound, type NotFoundProps } from './components/not-found';
45
44
  export { Payment, type PaymentBlockProps, type PaymentGlassProps, type PaymentSidebarProps, type PaymentTextBlocksProps, type PaymentTextBlockItem, } from './components/payment/payment.component';
46
- export { Sidebar, type SidebarProps } from './components/sidebar/sidebar.component';
45
+ export { Sidebar, type SidebarProps } from './components/sidebar';
47
46
  export { Signature } from './components/signature';
48
47
  export { Svg, type SvgProps } from './utils/svg/svg.component';
49
48
  export { Text } from './components/text';
package/dist/main.js CHANGED
@@ -7,8 +7,8 @@ import { ControlButton as C } from "./controls/control-button/control-button.com
7
7
  import { ControlButtonCard as c } from "./controls/control-button-card/control-button-card.component.js";
8
8
  import { ControlButtonRadio as s } from "./controls/control-button-radio/control-button-radio.component.js";
9
9
  import { ControlButtonText as g } from "./controls/control-button-text/control-button-text.component.js";
10
- import { ControlCardImage as F } from "./controls/control-card-image/control-card-image.component.js";
11
- import { ControlCardText as b } from "./controls/control-card-text/control-card-text.component.js";
10
+ import { ControlCardImage as T } from "./controls/control-card-image/control-card-image.component.js";
11
+ import { ControlCardText as F } from "./controls/control-card-text/control-card-text.component.js";
12
12
  import { ControlCheckbox as R } from "./controls/control-checkbox/control-checkbox.component.js";
13
13
  import { ControlChoice as I } from "./controls/control-choice/control-choice.component.js";
14
14
  import { ControlDropdown as P } from "./controls/control-dropdown/control-dropdown.component.js";
@@ -28,26 +28,25 @@ import { DataProtectedLabel as oo } from "./components/data-protected-label/data
28
28
  import { Dialog as to } from "./components/dialog/dialog.component.js";
29
29
  import { DialogArticle as mo } from "./components/dialog-article/dialog-article.component.js";
30
30
  import { Expenses as po } from "./components/expenses/expenses.component.js";
31
- import { Flex as no } from "./components/flex/flex.component.js";
32
- import { Footer as lo } from "./components/footer/footer.component.js";
33
- import { FormRow as Co } from "./components/form-row/form-row.component.js";
34
- import { Header as uo } from "./components/header/header.component.js";
35
- import { InfoPanel as Bo } from "./components/info-panel/info-panel.component.js";
36
- import { Information as Ao } from "./components/information/information.component.js";
37
- import { Layout as To } from "./components/layout/layout.component.js";
38
- import { Line as Lo } from "./components/line/line.component.js";
39
- import { Loader as So } from "./components/loader/loader.component.js";
40
- import { MainAttachment as Do } from "./components/main-attachment/main-attachment.component.js";
41
- import { Message as ho } from "./components/message/message.component.js";
42
- import { MessageBlock as yo } from "./components/message-block/message-block.component.js";
43
- import { NotFound as ko } from "./components/not-found/not-found.component.js";
44
- import { Payment as vo } from "./components/payment/payment.component.js";
45
- import { Sidebar as Go } from "./components/sidebar/sidebar.component.js";
46
- import { Signature as Uo } from "./components/signature/signature.component.js";
47
- import { Svg as jo } from "./utils/svg/svg.component.js";
48
- import { Text as zo } from "./components/text/text.component.js";
49
- import { UserPanel as Ko } from "./components/user-panel/user-panel.component.js";
50
- import { Warranty as Qo } from "./components/warranty/warranty.component.js";
31
+ import { Footer as no } from "./components/footer/footer.component.js";
32
+ import { FormRow as lo } from "./components/form-row/form-row.component.js";
33
+ import { Header as Co } from "./components/header/header.component.js";
34
+ import { InfoPanel as uo } from "./components/info-panel/info-panel.component.js";
35
+ import { Information as Bo } from "./components/information/information.component.js";
36
+ import { Layout as Ao } from "./components/layout/layout.component.js";
37
+ import { Line as bo } from "./components/line/line.component.js";
38
+ import { Loader as Lo } from "./components/loader/loader.component.js";
39
+ import { MainAttachment as So } from "./components/main-attachment/main-attachment.component.js";
40
+ import { Message as Do } from "./components/message/message.component.js";
41
+ import { MessageBlock as ho } from "./components/message-block/message-block.component.js";
42
+ import { NotFound as yo } from "./components/not-found/not-found.component.js";
43
+ import { Payment as ko } from "./components/payment/payment.component.js";
44
+ import { Sidebar as vo } from "./components/sidebar/sidebar.component.js";
45
+ import { Signature as Go } from "./components/signature/signature.component.js";
46
+ import { Svg as Uo } from "./utils/svg/svg.component.js";
47
+ import { Text as jo } from "./components/text/text.component.js";
48
+ import { UserPanel as zo } from "./components/user-panel/user-panel.component.js";
49
+ import { Warranty as Ko } from "./components/warranty/warranty.component.js";
51
50
  import './assets/main-DlyWXITA.css';export {
52
51
  V as AccordionTable,
53
52
  t as AnimationFadeGrow,
@@ -61,8 +60,8 @@ import './assets/main-DlyWXITA.css';export {
61
60
  c as ControlButtonCard,
62
61
  s as ControlButtonRadio,
63
62
  g as ControlButtonText,
64
- F as ControlCardImage,
65
- b as ControlCardText,
63
+ T as ControlCardImage,
64
+ F as ControlCardText,
66
65
  R as ControlCheckbox,
67
66
  I as ControlChoice,
68
67
  P as ControlDropdown,
@@ -79,24 +78,23 @@ import './assets/main-DlyWXITA.css';export {
79
78
  to as Dialog,
80
79
  mo as DialogArticle,
81
80
  po as Expenses,
82
- no as Flex,
83
- lo as Footer,
84
- Co as FormRow,
85
- uo as Header,
86
- Bo as InfoPanel,
87
- Ao as Information,
88
- To as Layout,
89
- Lo as Line,
90
- So as Loader,
91
- Do as MainAttachment,
92
- ho as Message,
93
- yo as MessageBlock,
94
- ko as NotFound,
95
- vo as Payment,
96
- Go as Sidebar,
97
- Uo as Signature,
98
- jo as Svg,
99
- zo as Text,
100
- Ko as UserPanel,
101
- Qo as Warranty
81
+ no as Footer,
82
+ lo as FormRow,
83
+ Co as Header,
84
+ uo as InfoPanel,
85
+ Bo as Information,
86
+ Ao as Layout,
87
+ bo as Line,
88
+ Lo as Loader,
89
+ So as MainAttachment,
90
+ Do as Message,
91
+ ho as MessageBlock,
92
+ yo as NotFound,
93
+ ko as Payment,
94
+ vo as Sidebar,
95
+ Go as Signature,
96
+ Uo as Svg,
97
+ jo as Text,
98
+ zo as UserPanel,
99
+ Ko as Warranty
102
100
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.4.5",
4
+ "version": "1.4.7",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1 +0,0 @@
1
- ._Board_daowi_1{border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-lg);background-color:var(--rm-ui-sidebar-bg)}@media screen and (min-width:1024px){._Board_daowi_1{padding:var(--rm-ui-padding-xl)}}@media screen and (min-width:1200px){._Board_daowi_1{padding:var(--rm-ui-padding-xxl)}}
@@ -1 +0,0 @@
1
- ._SidebarTitle_1sscs_1,._SidebarButton_1sscs_2{padding-bottom:var(--rm-ui-padding-md)}._SidebarButton_1sscs_2{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}@media screen and (min-width:1200px){._SidebarTitle_1sscs_1,._SidebarButton_1sscs_2{padding-bottom:var(--rm-ui-padding-lg)}}
@@ -1,3 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { Base } from '../../../../utils/types';
3
- export declare const Board: ({ children, ...base }: PropsWithChildren<Base>) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import s from "clsx";
3
- import { baseProps as a } from "../../../../utils/functions/functions.util.js";
4
- import '../../../../assets/board-DdRugbJz.css';const t = "_Board_daowi_1", i = {
5
- Board: t
6
- }, p = ({ children: r, ...o }) => /* @__PURE__ */ d(
7
- "div",
8
- {
9
- "data-testid": a(o, "data-testid", "sidebar-board"),
10
- className: s(i.Board, a(o, "className")),
11
- children: r
12
- }
13
- );
14
- export {
15
- p as Board
16
- };
@@ -1,4 +0,0 @@
1
- export interface InfoProps {
2
- data: [string, string][];
3
- }
4
- export declare const Info: (props: InfoProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
- import { Flex as e } from "../../../flex/flex.component.js";
3
- import { Text as o } from "../../../text/text.component.js";
4
- const d = (i) => {
5
- const { data: n = [] } = i;
6
- return /* @__PURE__ */ t(e, { direction: "column", justify: "start", gap: "sm", children: n.map(([r, s]) => /* @__PURE__ */ a(e, { direction: "row", gap: "xs", align: "center", justify: "space-between", children: [
7
- /* @__PURE__ */ t(o, { tag: "span", size: "body-small", color: "text-secondary", children: r }),
8
- /* @__PURE__ */ t(o, { tag: "span", size: "body-small", align: "right", children: s })
9
- ] }, r)) });
10
- };
11
- export {
12
- d as Info
13
- };
@@ -1,6 +0,0 @@
1
- import { State } from '../../../../controls/utils/types';
2
- export interface StepProps {
3
- state: State;
4
- text: string;
5
- }
6
- export declare const Step: (props: StepProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
1
- import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
- import { ControlStatus as s } from "../../../../controls/control-status/control-status.component.js";
3
- import { Flex as m } from "../../../flex/flex.component.js";
4
- import { Text as n } from "../../../text/text.component.js";
5
- const c = (e) => {
6
- const { state: t = "idle", text: o = "" } = e;
7
- return /* @__PURE__ */ i(m, { direction: "row", align: "center", justify: "start", gap: "xs", children: [
8
- /* @__PURE__ */ r(s, { state: t }),
9
- /* @__PURE__ */ r(n, { tag: "span", weight: "medium", size: "body-small", color: t === "idle" ? "text-secondary" : "text-primary", children: o })
10
- ] });
11
- };
12
- export {
13
- c as Step
14
- };
@@ -1,5 +0,0 @@
1
- import { StepProps } from '../step/step.component';
2
- export interface StepsProps {
3
- data: StepProps[];
4
- }
5
- export declare const Steps: (props: StepsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { Flex as i } from "../../../flex/flex.component.js";
3
- import { Step as s } from "../step/step.component.js";
4
- const c = (o) => {
5
- const { data: m } = o;
6
- return /* @__PURE__ */ t(i, { direction: "column", justify: "start", gap: "sm", children: m.map(({ state: p, text: r }) => /* @__PURE__ */ t(s, { state: p, text: r }, r)) });
7
- };
8
- export {
9
- c as Steps
10
- };