@logora/debate 0.4.107 → 0.4.108

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
+ ._pageBox_15s2t_3{background-color:var(--background-color-primary, white);box-shadow:var(--box-shadow-main-container, var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1)));border:var(--box-border-main-container, var(--box-border, 1px solid rgba(7, 42, 68, .1)));border-radius:var(--box-border-radius, 6px)}@container (min-width: 576px){._pageBox_15s2t_3{padding:var(--spacer-lg, calc(var(--space-unit, 1em) * 1.5))!important}}._pageBox_15s2t_3{padding:var(--space-unit, 1em)!important}._pageSkeleton_15s2t_18{display:flex;flex-direction:column;gap:var(--space-unit, 1em);width:100%}._header_15s2t_25{display:flex;flex-direction:row;gap:var(--space-unit, 1em);align-items:center}@media(max-width:640px){._header_15s2t_25{flex-direction:column;align-items:flex-start}}._headerLines_15s2t_38{display:flex;flex-direction:column;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5));flex:1;min-width:120px}._lineMain_15s2t_46{width:70%;height:var(--font-size-extra-large, 22px)}._lineSecondary_15s2t_51{width:45%;height:var(--font-size-normal, 16px)}._photoCircle_15s2t_56{width:80px;height:80px;flex-shrink:0}._photoBox_15s2t_62{width:210px;height:140px;flex-shrink:0;border-radius:var(--box-border-radius, 6px)}@media(max-width:640px){._photoBox_15s2t_62{width:100%}}._tabsRow_15s2t_74{display:flex;flex-direction:row;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}._tab_15s2t_74{width:110px;height:32px;border-radius:var(--box-border-radius, 6px)}@media(max-width:640px){._tab_15s2t_74{width:90px}}._contentList_15s2t_91{display:flex;flex-direction:column;gap:var(--space-unit, 1em)}._contentItem_15s2t_97{display:flex;flex-direction:column;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5));border-radius:var(--box-border-radius, 6px);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));padding:var(--space-unit, 1em)}._contentLine_15s2t_107{width:100%;height:var(--font-size-normal, 16px)}._contentLineShort_15s2t_112{width:55%;height:var(--font-size-normal, 16px)}
@@ -1,79 +1,87 @@
1
1
  import { jsx as s, jsxs as r } from "react/jsx-runtime";
2
+ import h from "classnames";
2
3
  import "react";
3
- import t from "react-loading-skeleton";
4
+ import a from "react-loading-skeleton";
4
5
  import "react-loading-skeleton/dist/skeleton.css";
5
6
  import e from "./PageSkeleton.module.scss.js";
6
- const k = ({
7
- photo: a = "right",
8
- items: d = 3,
9
- tabs: o = !1,
7
+ const L = ({
8
+ photo: t = "right",
9
+ items: o = 3,
10
+ tabs: m = !1,
10
11
  enableAnimation: c = !0,
11
- className: m
12
+ className: d
12
13
  }) => {
13
14
  const i = /* @__PURE__ */ r("div", { className: e.headerLines, children: [
14
- /* @__PURE__ */ s(t, { enableAnimation: c, className: e.lineMain }),
15
+ /* @__PURE__ */ s(a, { enableAnimation: c, className: e.lineMain }),
15
16
  /* @__PURE__ */ s(
16
- t,
17
+ a,
17
18
  {
18
19
  enableAnimation: c,
19
20
  className: e.lineSecondary
20
21
  }
21
22
  )
22
- ] }), l = a === "left" ? /* @__PURE__ */ s(
23
- t,
23
+ ] }), l = t === "left" ? /* @__PURE__ */ s(
24
+ a,
24
25
  {
25
26
  enableAnimation: c,
26
27
  circle: !0,
27
28
  className: e.photoCircle
28
29
  }
29
- ) : /* @__PURE__ */ s(t, { enableAnimation: c, className: e.photoBox });
30
- return /* @__PURE__ */ s("div", { "data-testid": "page-skeleton", className: m, children: /* @__PURE__ */ r("div", { className: e.pageSkeleton, children: [
31
- /* @__PURE__ */ r("div", { className: e.header, children: [
32
- a === "left" && l,
33
- i,
34
- a === "right" && l
35
- ] }),
36
- o && /* @__PURE__ */ r("div", { className: e.tabsRow, children: [
37
- /* @__PURE__ */ s(
38
- t,
39
- {
40
- enableAnimation: c,
41
- className: e.tab
42
- }
43
- ),
44
- /* @__PURE__ */ s(
45
- t,
46
- {
47
- enableAnimation: c,
48
- className: e.tab
49
- }
50
- ),
51
- /* @__PURE__ */ s(
52
- t,
53
- {
54
- enableAnimation: c,
55
- className: e.tab
56
- }
57
- )
58
- ] }),
59
- /* @__PURE__ */ s("div", { className: e.contentList, children: Array.from({ length: d }).map((N, h) => /* @__PURE__ */ r("div", { className: e.contentItem, children: [
60
- /* @__PURE__ */ s(
61
- t,
62
- {
63
- enableAnimation: c,
64
- className: e.contentLine
65
- }
66
- ),
67
- /* @__PURE__ */ s(
68
- t,
69
- {
70
- enableAnimation: c,
71
- className: e.contentLineShort
72
- }
73
- )
74
- ] }, h)) })
75
- ] }) });
30
+ ) : /* @__PURE__ */ s(a, { enableAnimation: c, className: e.photoBox });
31
+ return /* @__PURE__ */ s(
32
+ "div",
33
+ {
34
+ "data-testid": "page-skeleton",
35
+ className: h(e.pageBox, d),
36
+ children: /* @__PURE__ */ r("div", { className: e.pageSkeleton, children: [
37
+ /* @__PURE__ */ r("div", { className: e.header, children: [
38
+ t === "left" && l,
39
+ i,
40
+ t === "right" && l
41
+ ] }),
42
+ m && /* @__PURE__ */ r("div", { className: e.tabsRow, children: [
43
+ /* @__PURE__ */ s(
44
+ a,
45
+ {
46
+ enableAnimation: c,
47
+ className: e.tab
48
+ }
49
+ ),
50
+ /* @__PURE__ */ s(
51
+ a,
52
+ {
53
+ enableAnimation: c,
54
+ className: e.tab
55
+ }
56
+ ),
57
+ /* @__PURE__ */ s(
58
+ a,
59
+ {
60
+ enableAnimation: c,
61
+ className: e.tab
62
+ }
63
+ )
64
+ ] }),
65
+ /* @__PURE__ */ s("div", { className: e.contentList, children: Array.from({ length: o }).map((p, N) => /* @__PURE__ */ r("div", { className: e.contentItem, children: [
66
+ /* @__PURE__ */ s(
67
+ a,
68
+ {
69
+ enableAnimation: c,
70
+ className: e.contentLine
71
+ }
72
+ ),
73
+ /* @__PURE__ */ s(
74
+ a,
75
+ {
76
+ enableAnimation: c,
77
+ className: e.contentLineShort
78
+ }
79
+ )
80
+ ] }, N)) })
81
+ ] })
82
+ }
83
+ );
76
84
  };
77
85
  export {
78
- k as PageSkeleton
86
+ L as PageSkeleton
79
87
  };
@@ -1,31 +1,33 @@
1
- import '../../../assets/components/skeleton/page_skeleton/PageSkeleton.module-BqtcAizZ.css';const t = "_pageSkeleton_vzch9_3", n = "_header_vzch9_10", e = "_headerLines_vzch9_23", o = "_lineMain_vzch9_31", c = "_lineSecondary_vzch9_36", _ = "_photoCircle_vzch9_41", h = "_photoBox_vzch9_47", s = "_tabsRow_vzch9_59", i = "_tab_vzch9_59", a = "_contentList_vzch9_76", r = "_contentItem_vzch9_82", l = "_contentLine_vzch9_92", v = "_contentLineShort_vzch9_97", z = {
2
- pageSkeleton: t,
1
+ import '../../../assets/components/skeleton/page_skeleton/PageSkeleton.module-DryubeJg.css';const t = "_pageBox_15s2t_3", e = "_pageSkeleton_15s2t_18", n = "_header_15s2t_25", o = "_headerLines_15s2t_38", _ = "_lineMain_15s2t_46", s = "_lineSecondary_15s2t_51", c = "_photoCircle_15s2t_56", a = "_photoBox_15s2t_62", i = "_tabsRow_15s2t_74", r = "_tab_15s2t_74", h = "_contentList_15s2t_91", l = "_contentItem_15s2t_97", p = "_contentLine_15s2t_107", L = "_contentLineShort_15s2t_112", d = {
2
+ pageBox: t,
3
+ pageSkeleton: e,
3
4
  header: n,
4
- headerLines: e,
5
- lineMain: o,
6
- lineSecondary: c,
7
- photoCircle: _,
8
- photoBox: h,
9
- tabsRow: s,
10
- tab: i,
11
- contentList: a,
12
- contentItem: r,
13
- contentLine: l,
14
- contentLineShort: v
5
+ headerLines: o,
6
+ lineMain: _,
7
+ lineSecondary: s,
8
+ photoCircle: c,
9
+ photoBox: a,
10
+ tabsRow: i,
11
+ tab: r,
12
+ contentList: h,
13
+ contentItem: l,
14
+ contentLine: p,
15
+ contentLineShort: L
15
16
  };
16
17
  export {
17
- r as contentItem,
18
- l as contentLine,
19
- v as contentLineShort,
20
- a as contentList,
21
- z as default,
18
+ l as contentItem,
19
+ p as contentLine,
20
+ L as contentLineShort,
21
+ h as contentList,
22
+ d as default,
22
23
  n as header,
23
- e as headerLines,
24
- o as lineMain,
25
- c as lineSecondary,
26
- t as pageSkeleton,
27
- h as photoBox,
28
- _ as photoCircle,
29
- i as tab,
30
- s as tabsRow
24
+ o as headerLines,
25
+ _ as lineMain,
26
+ s as lineSecondary,
27
+ t as pageBox,
28
+ e as pageSkeleton,
29
+ a as photoBox,
30
+ c as photoCircle,
31
+ r as tab,
32
+ i as tabsRow
31
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logora/debate",
3
- "version": "0.4.107",
3
+ "version": "0.4.108",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0",
6
6
  "description": "Design system of @Logora made with React",
@@ -1 +0,0 @@
1
- ._pageSkeleton_vzch9_3{display:flex;flex-direction:column;gap:var(--space-unit, 1em);width:100%}._header_vzch9_10{display:flex;flex-direction:row;gap:var(--space-unit, 1em);align-items:center}@media(max-width:640px){._header_vzch9_10{flex-direction:column;align-items:flex-start}}._headerLines_vzch9_23{display:flex;flex-direction:column;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5));flex:1;min-width:120px}._lineMain_vzch9_31{width:70%;height:var(--font-size-extra-large, 22px)}._lineSecondary_vzch9_36{width:45%;height:var(--font-size-normal, 16px)}._photoCircle_vzch9_41{width:80px;height:80px;flex-shrink:0}._photoBox_vzch9_47{width:210px;height:140px;flex-shrink:0;border-radius:var(--box-border-radius, 6px)}@media(max-width:640px){._photoBox_vzch9_47{width:100%}}._tabsRow_vzch9_59{display:flex;flex-direction:row;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}._tab_vzch9_59{width:110px;height:32px;border-radius:var(--box-border-radius, 6px)}@media(max-width:640px){._tab_vzch9_59{width:90px}}._contentList_vzch9_76{display:flex;flex-direction:column;gap:var(--space-unit, 1em)}._contentItem_vzch9_82{display:flex;flex-direction:column;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5));border-radius:var(--box-border-radius, 6px);box-shadow:var(--box-shadow, 0px 2px 5px rgba(7, 42, 68, .1));border:var(--box-border, 1px solid rgba(7, 42, 68, .1));padding:var(--space-unit, 1em)}._contentLine_vzch9_92{width:100%;height:var(--font-size-normal, 16px)}._contentLineShort_vzch9_97{width:55%;height:var(--font-size-normal, 16px)}