@logora/debate 0.4.94 → 0.4.96

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
+ ._headerBox_lnsym_3{display:flex!important;flex-direction:column!important;padding:0!important}._headerBoxLabel_lnsym_9{display:flex!important;justify-content:flex-start!important;align-items:center!important;flex-wrap:wrap!important;gap:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))}._headerBoxLabel_lnsym_9>a:empty{display:none!important}._headerBoxLabel_lnsym_9>._titleRedirectUrl_lnsym_19{background:var(--background-color-primary, white)!important}._headerBoxLabel_lnsym_9>._titleRedirectUrl_lnsym_19:hover{background:var(--background-color-primary, white)!important}._headerBoxLabel_lnsym_9 a{text-decoration:none!important}._headerLiveStat_lnsym_30{margin-left:auto!important;margin-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;color:var(--call-primary-color, #434343);font-size:var(--font-size-small, 16px);margin-left:30px}._headerLiveStat_lnsym_30 span{margin-left:10px;margin-bottom:0!important}@media(prefers-color-scheme:dark){.logoraDarkMode ._headerLiveStat_lnsym_30{color:#fff!important}.logoraDarkMode ._headerLiveNow_lnsym_49{background-color:#fff!important}.logoraDarkMode ._headerLiveNow_lnsym_49:before{background-color:#fff!important}}._headerLiveNow_lnsym_49{min-width:8px;width:8px;height:8px;border-radius:50%;background-color:var(--call-primary-color, #434343);position:relative}._headerLiveNow_lnsym_49:before{content:"";position:absolute;width:100%;height:100%;border-radius:50%;background-color:var(--call-primary-color, #434343);opacity:.4;animation-name:_livePin_lnsym_1;animation-duration:1.6s;animation-iteration-count:infinite}@container (min-width: 576px){._headerLivePin_lnsym_78{display:block!important}}._headerLivePin_lnsym_78{display:none!important}@container (min-width: 576px){._headerLivePinMobile_lnsym_87{display:none!important}}._headerLivePinMobile_lnsym_87{display:block!important}@keyframes _livePin_lnsym_1{0%{transform:scale(2.3)}50%{transform:scale(0)}to{transform:scale(2.3)}}._headerLabelText_lnsym_106{background-color:var(--call-primary-color, #434343);color:var(--text-light, white);border-bottom:1px solid;border-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px) 0 var(--box-border-radius, 6px) 0;font-size:var(--font-size-normal, 16px);flex-wrap:nowrap;white-space:nowrap;padding-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._debateName_lnsym_121{color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);text-align:center;width:100%;display:flex!important;align-items:center!important;justify-content:center!important;padding-bottom:0!important;padding-top:var(--space-unit, 1em)!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important}@container (min-width: 576px){._debateName_lnsym_121{padding-right:0!important}}@container (min-width: 576px){._debateName_lnsym_121{padding-left:0!important}}._debateName_lnsym_121 a._debateLink_lnsym_145{color:var(--text-primary, #222222)!important}._debateLink_lnsym_145{font-size:var(--font-size-large, 20px);line-height:var(--line-height-normal, 1.26em);background:var(--background-color-primary, white)!important;text-decoration:none!important;color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal)}._debateLink_lnsym_145:hover{background:var(--background-color-primary, white)!important;text-decoration:underline!important}._left_lnsym_163{justify-content:flex-start!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--space-unit, 1em)!important;padding-bottom:0!important;text-align:left}._headerLogo_lnsym_172{width:100px!important;height:40px!important;object-fit:contain;object-position:left}._debateNameWithLogo_lnsym_179{padding-right:0!important;padding-left:0!important}
@@ -1,42 +1,44 @@
1
- import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
- import r from "classnames";
1
+ import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
+ import o from "classnames";
3
3
  import "react";
4
- import { FormattedMessage as n } from "react-intl";
4
+ import { FormattedMessage as r } from "react-intl";
5
5
  import e from "./EmbedHeader.module.scss.js";
6
- import { Link as o } from "../../action/link/Link.js";
7
- const x = ({
8
- title: m,
9
- titleRedirectUrl: s,
10
- headerLabel: l,
11
- onlineUsersCount: t,
12
- textLeft: c,
13
- className: h,
14
- logoUrl: d,
6
+ import { Link as m } from "../../action/link/Link.js";
7
+ const g = ({
8
+ title: c,
9
+ titleRedirectUrl: n,
10
+ headerLabel: t,
11
+ headerExtra: d,
12
+ onlineUsersCount: i,
13
+ textLeft: h,
14
+ className: u,
15
+ logoUrl: s,
15
16
  logoAlt: b
16
- }) => /* @__PURE__ */ i("div", { className: r(e.headerBox, h), children: [
17
- l && /* @__PURE__ */ i("div", { className: e.headerBoxLabel, children: [
18
- /* @__PURE__ */ a(
19
- o,
17
+ }) => /* @__PURE__ */ l("div", { className: o(e.headerBox, u), children: [
18
+ (t || d) && /* @__PURE__ */ l("div", { className: e.headerBoxLabel, children: [
19
+ t && /* @__PURE__ */ a(
20
+ m,
20
21
  {
21
- to: s,
22
+ to: n,
22
23
  target: "_top",
23
24
  external: !0,
24
25
  "data-tid": "link_debate_index_embed",
25
26
  rel: "nofollow",
26
- children: d ? /* @__PURE__ */ a(
27
+ children: s ? /* @__PURE__ */ a(
27
28
  "img",
28
29
  {
29
30
  loading: "lazy",
30
31
  className: e.headerLogo,
31
- src: d,
32
+ src: s,
32
33
  width: 100,
33
34
  height: 40,
34
35
  alt: b
35
36
  }
36
- ) : /* @__PURE__ */ a("div", { className: e.headerLabelText, children: l })
37
+ ) : /* @__PURE__ */ a("div", { className: e.headerLabelText, children: t })
37
38
  }
38
39
  ),
39
- t ? /* @__PURE__ */ i("div", { className: e.headerLiveStat, children: [
40
+ d && /* @__PURE__ */ a("div", { className: e.headerLabelText, children: d }),
41
+ t && i ? /* @__PURE__ */ l("div", { className: e.headerLiveStat, children: [
40
42
  /* @__PURE__ */ a("div", { className: e.headerLiveNow }),
41
43
  /* @__PURE__ */ a(
42
44
  "span",
@@ -44,10 +46,10 @@ const x = ({
44
46
  className: e.headerLivePin,
45
47
  "data-testid": "online-users-count",
46
48
  children: /* @__PURE__ */ a(
47
- n,
49
+ r,
48
50
  {
49
51
  id: "embed.embed_header.online_users",
50
- values: { count: t },
52
+ values: { count: i },
51
53
  defaultMessage: "{count} online users"
52
54
  }
53
55
  )
@@ -59,10 +61,10 @@ const x = ({
59
61
  className: e.headerLivePinMobile,
60
62
  "data-testid": "online-users-count-mobile",
61
63
  children: /* @__PURE__ */ a(
62
- n,
64
+ r,
63
65
  {
64
66
  id: "embed.embed_header.online",
65
- values: { count: t },
67
+ values: { count: i },
66
68
  defaultMessage: "{count} online"
67
69
  }
68
70
  )
@@ -73,26 +75,26 @@ const x = ({
73
75
  /* @__PURE__ */ a(
74
76
  "div",
75
77
  {
76
- className: r(e.debateName, {
77
- [e.left]: c,
78
- [e.debateNameWithLogo]: d
78
+ className: o(e.debateName, {
79
+ [e.left]: h,
80
+ [e.debateNameWithLogo]: s
79
81
  }),
80
82
  "data-testid": "debate-name",
81
83
  children: /* @__PURE__ */ a(
82
- o,
84
+ m,
83
85
  {
84
86
  className: e.debateLink,
85
- to: s,
87
+ to: n,
86
88
  target: "_top",
87
89
  external: !0,
88
90
  "data-tid": "link_debate_title_embed",
89
91
  rel: "nofollow",
90
- children: m
92
+ children: c
91
93
  }
92
94
  )
93
95
  }
94
96
  )
95
97
  ] });
96
98
  export {
97
- x as EmbedHeader
99
+ g as EmbedHeader
98
100
  };
@@ -1,29 +1,29 @@
1
- import '../../../assets/components/embed/embed_header/EmbedHeader.module-C8RPiVBp.css';const e = "_headerBox_czmub_3", a = "_headerBoxLabel_czmub_9", t = "_headerLiveStat_czmub_24", o = "_headerLiveNow_czmub_43", _ = "_headerLivePin_czmub_72", d = "_headerLivePinMobile_czmub_81", b = "_headerLabelText_czmub_100", h = "_debateName_czmub_115", i = "_debateLink_czmub_139", L = "_left_czmub_157", c = "_headerLogo_czmub_166", r = "_debateNameWithLogo_czmub_173", n = {
1
+ import '../../../assets/components/embed/embed_header/EmbedHeader.module-DhNVlLiN.css';const e = "_headerBox_lnsym_3", a = "_headerBoxLabel_lnsym_9", t = "_headerLiveStat_lnsym_30", o = "_headerLiveNow_lnsym_49", _ = "_headerLivePin_lnsym_78", d = "_headerLivePinMobile_lnsym_87", n = "_headerLabelText_lnsym_106", s = "_debateName_lnsym_121", h = "_debateLink_lnsym_145", i = "_left_lnsym_163", L = "_headerLogo_lnsym_172", l = "_debateNameWithLogo_lnsym_179", r = {
2
2
  headerBox: e,
3
3
  headerBoxLabel: a,
4
4
  headerLiveStat: t,
5
5
  headerLiveNow: o,
6
6
  headerLivePin: _,
7
7
  headerLivePinMobile: d,
8
- headerLabelText: b,
9
- debateName: h,
10
- debateLink: i,
11
- left: L,
12
- headerLogo: c,
13
- debateNameWithLogo: r
8
+ headerLabelText: n,
9
+ debateName: s,
10
+ debateLink: h,
11
+ left: i,
12
+ headerLogo: L,
13
+ debateNameWithLogo: l
14
14
  };
15
15
  export {
16
- i as debateLink,
17
- h as debateName,
18
- r as debateNameWithLogo,
19
- n as default,
16
+ h as debateLink,
17
+ s as debateName,
18
+ l as debateNameWithLogo,
19
+ r as default,
20
20
  e as headerBox,
21
21
  a as headerBoxLabel,
22
- b as headerLabelText,
22
+ n as headerLabelText,
23
23
  o as headerLiveNow,
24
24
  _ as headerLivePin,
25
25
  d as headerLivePinMobile,
26
26
  t as headerLiveStat,
27
- c as headerLogo,
28
- L as left
27
+ L as headerLogo,
28
+ i as left
29
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logora/debate",
3
- "version": "0.4.94",
3
+ "version": "0.4.96",
4
4
  "type": "module",
5
5
  "license": "AGPL-3.0",
6
6
  "description": "Design system of @Logora made with React",
@@ -1 +0,0 @@
1
- ._headerBox_czmub_3{display:flex!important;flex-direction:column!important;padding:0!important}._headerBoxLabel_czmub_9{display:flex!important;justify-content:flex-start!important}._headerBoxLabel_czmub_9>._titleRedirectUrl_czmub_13{background:var(--background-color-primary, white)!important}._headerBoxLabel_czmub_9>._titleRedirectUrl_czmub_13:hover{background:var(--background-color-primary, white)!important}._headerBoxLabel_czmub_9 a{text-decoration:none!important}._headerLiveStat_czmub_24{margin-left:auto!important;margin-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;color:var(--call-primary-color, #434343);font-size:var(--font-size-small, 16px);margin-left:30px}._headerLiveStat_czmub_24 span{margin-left:10px;margin-bottom:0!important}@media(prefers-color-scheme:dark){.logoraDarkMode ._headerLiveStat_czmub_24{color:#fff!important}.logoraDarkMode ._headerLiveNow_czmub_43{background-color:#fff!important}.logoraDarkMode ._headerLiveNow_czmub_43:before{background-color:#fff!important}}._headerLiveNow_czmub_43{min-width:8px;width:8px;height:8px;border-radius:50%;background-color:var(--call-primary-color, #434343);position:relative}._headerLiveNow_czmub_43:before{content:"";position:absolute;width:100%;height:100%;border-radius:50%;background-color:var(--call-primary-color, #434343);opacity:.4;animation-name:_livePin_czmub_1;animation-duration:1.6s;animation-iteration-count:infinite}@container (min-width: 576px){._headerLivePin_czmub_72{display:block!important}}._headerLivePin_czmub_72{display:none!important}@container (min-width: 576px){._headerLivePinMobile_czmub_81{display:none!important}}._headerLivePinMobile_czmub_81{display:block!important}@keyframes _livePin_czmub_1{0%{transform:scale(2.3)}50%{transform:scale(0)}to{transform:scale(2.3)}}._headerLabelText_czmub_100{background-color:var(--call-primary-color, #434343);color:var(--text-light, white);border-bottom:1px solid;border-color:var(--call-primary-color, #434343);border-radius:var(--box-border-radius, 6px) 0 var(--box-border-radius, 6px) 0;font-size:var(--font-size-normal, 16px);flex-wrap:nowrap;white-space:nowrap;padding-right:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-left:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-top:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important;padding-bottom:var(--spacer-sm, calc(var(--space-unit, 1em) * .5))!important}._debateName_czmub_115{color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal);text-align:center;width:100%;display:flex!important;align-items:center!important;justify-content:center!important;padding-bottom:0!important;padding-top:var(--space-unit, 1em)!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important}@container (min-width: 576px){._debateName_czmub_115{padding-right:0!important}}@container (min-width: 576px){._debateName_czmub_115{padding-left:0!important}}._debateName_czmub_115 a._debateLink_czmub_139{color:var(--text-primary, #222222)!important}._debateLink_czmub_139{font-size:var(--font-size-large, 20px);line-height:var(--line-height-normal, 1.26em);background:var(--background-color-primary, white)!important;text-decoration:none!important;color:var(--text-primary, #222222);font-weight:var(--font-weight-bold, 700);font-variation-settings:var(--font-variation-bold, normal)}._debateLink_czmub_139:hover{background:var(--background-color-primary, white)!important;text-decoration:underline!important}._left_czmub_157{justify-content:flex-start!important;padding-right:var(--space-unit, 1em)!important;padding-left:var(--space-unit, 1em)!important;padding-top:var(--space-unit, 1em)!important;padding-bottom:0!important;text-align:left}._headerLogo_czmub_166{width:100px!important;height:40px!important;object-fit:contain;object-position:left}._debateNameWithLogo_czmub_173{padding-right:0!important;padding-left:0!important}