@arthurzakharov/ui-kit 1.0.106 → 1.0.107

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
+ ._Information_mz7ra_1{--gap: var(--rm-ui-padding-sm);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:var(--gap);font-weight:var(--rm-ui-font-weight-light)}._InformationSizeRegular_mz7ra_12{--icon: 24px;font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._InformationSizeSmall_mz7ra_18{--icon: 20px;font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._InformationSizeExtraSmall_mz7ra_24{--icon: 16px;font-size:var(--rm-ui-font-size-body-extra-small);line-height:var(--rm-ui-line-height-body-extra-small)}._InformationColorPrimary_mz7ra_30{color:var(--rm-ui-color-text-primary)}._InformationColorSecondary_mz7ra_34{color:var(--rm-ui-color-text-secondary)}._InformationColorAccentPrimary_mz7ra_38{color:var(--rm-ui-color-accent-primary)}._InformationColorAccentSecondary_mz7ra_42{color:var(--rm-ui-color-accent-secondary)}._InformationIcon_mz7ra_46{position:relative;top:2px;left:0;width:var(--icon);height:var(--icon)}._InformationText_mz7ra_54{flex-basis:calc(100% - var(--icon) - var(--gap))}._InformationText_mz7ra_54 b,._InformationText_mz7ra_54 strong{font-weight:var(--rm-ui-font-weight-regular)}._InformationText_mz7ra_54>p:not(:last-child){margin-bottom:var(--rm-ui-padding-xs)}
@@ -1,6 +1,7 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  export interface InformationProps extends PropsWithChildren {
3
- accent?: boolean;
3
+ size?: 'regular' | 'small' | 'extra-small';
4
+ color?: 'primary' | 'secondary' | 'accent-primary' | 'accent-secondary';
4
5
  className?: string;
5
6
  }
6
7
  export declare const Information: import('react').ForwardRefExoticComponent<InformationProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,19 +1,40 @@
1
- import { jsxs as f, jsx as n } from "react/jsx-runtime";
2
- import { forwardRef as i } from "react";
3
- import { Info as I } from "lucide-react";
4
- import s from "clsx";
5
- import '../../assets/information-DQPFVabC.css';const e = "_Information_1qbj2_1", _ = "_InformationAccent_1qbj2_16", l = "_InformationIcon_1qbj2_21", x = "_InformationText_1qbj2_29", o = {
6
- Information: e,
7
- InformationAccent: _,
8
- InformationIcon: l,
9
- InformationText: x
10
- }, q = i((t, r) => {
11
- const { children: c, accent: m = !1, className: a = "" } = t;
12
- return /* @__PURE__ */ f("div", { ref: r, className: s(o.Information, a, { [o.InformationAccent]: m }), children: [
13
- /* @__PURE__ */ n(I, { className: o.InformationIcon }),
14
- /* @__PURE__ */ n("div", { className: o.InformationText, children: c })
15
- ] });
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as l } from "react";
3
+ import { Info as f } from "lucide-react";
4
+ import I from "clsx";
5
+ import '../../assets/information-D17SaeRr.css';const s = "_Information_mz7ra_1", _ = "_InformationSizeRegular_mz7ra_12", S = "_InformationSizeSmall_mz7ra_18", z = "_InformationSizeExtraSmall_mz7ra_24", y = "_InformationColorPrimary_mz7ra_30", C = "_InformationColorSecondary_mz7ra_34", d = "_InformationColorAccentPrimary_mz7ra_38", x = "_InformationColorAccentSecondary_mz7ra_42", p = "_InformationIcon_mz7ra_46", A = "_InformationText_mz7ra_54", o = {
6
+ Information: s,
7
+ InformationSizeRegular: _,
8
+ InformationSizeSmall: S,
9
+ InformationSizeExtraSmall: z,
10
+ InformationColorPrimary: y,
11
+ InformationColorSecondary: C,
12
+ InformationColorAccentPrimary: d,
13
+ InformationColorAccentSecondary: x,
14
+ InformationIcon: p,
15
+ InformationText: A
16
+ }, E = l((m, t) => {
17
+ const { children: i, size: n = "regular", color: r = "primary", className: c = "" } = m;
18
+ return /* @__PURE__ */ e(
19
+ "div",
20
+ {
21
+ ref: t,
22
+ className: I(o.Information, c, {
23
+ [o.InformationColorPrimary]: r === "primary",
24
+ [o.InformationSizeRegular]: n === "regular",
25
+ [o.InformationSizeSmall]: n === "small",
26
+ [o.InformationSizeExtraSmall]: n === "extra-small",
27
+ [o.InformationColorSecondary]: r === "secondary",
28
+ [o.InformationColorAccentPrimary]: r === "accent-primary",
29
+ [o.InformationColorAccentSecondary]: r === "accent-secondary"
30
+ }),
31
+ children: [
32
+ /* @__PURE__ */ a(f, { className: o.InformationIcon }),
33
+ /* @__PURE__ */ a("div", { className: o.InformationText, children: i })
34
+ ]
35
+ }
36
+ );
16
37
  });
17
38
  export {
18
- q as Information
39
+ E as Information
19
40
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.0.106",
4
+ "version": "1.0.107",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1 +0,0 @@
1
- ._Information_1qbj2_1{--icon: 24px;--gap: var(--rm-ui-padding-sm);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:var(--gap);color:var(--rm-ui-color-text-primary);font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._InformationAccent_1qbj2_16{color:var(--rm-ui-color-accent-primary)}._InformationIcon_1qbj2_21{position:relative;top:2px;left:0;width:var(--icon);height:var(--icon)}._InformationText_1qbj2_29{flex-basis:calc(100% - var(--icon) - var(--gap))}