@lanaco/lnc-react-ui 4.0.122 → 4.0.123
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/BannerSectionCarousel.cjs +112 -126
- package/dist/BannerSectionCarousel.js +654 -1509
- package/dist/DateInput.cjs +1 -1
- package/dist/DateInput.js +1 -1
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +8 -7
- package/dist/FieldOfInterestsWithTagsCardsSection.js +30 -29
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +2 -2
- package/dist/{KanbanCard-Crf-cTxA.js → KanbanCard-68kSAXL6.js} +1 -1
- package/dist/{KanbanCard-CP60mpJO.cjs → KanbanCard-BDvoqTDS.cjs} +1 -1
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +1 -1
- package/dist/OverlayGeneralCardsSection.cjs +107 -62
- package/dist/OverlayGeneralCardsSection.js +174 -160
- package/dist/index-Bg5OOQN0.cjs +5 -0
- package/dist/{index-BXrmgzsU.js → index-fN7hCOo3.js} +4 -5
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index-BZnmT78f.cjs +0 -5
package/dist/DateInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const At=require("react/jsx-runtime"),v=require("react"),K=require("./index-BpbMKBf_.cjs"),Aa=require("./Icon.cjs"),Fa=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./utils-CZynEOC_.cjs"),ie=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const At=require("react/jsx-runtime"),v=require("react"),K=require("./index-BpbMKBf_.cjs"),Aa=require("./Icon.cjs"),Fa=require("./emotion-styled.browser.esm-BtEseadx.cjs"),I=require("./utils-CZynEOC_.cjs"),ie=require("./index-Bg5OOQN0.cjs"),h=require("./defineProperty-CqVRDJI8.cjs"),T=require("./setPrototypeOf-4aSEnBDm.cjs"),Nr=require("./index-41nUb2kP.cjs"),Wa=require("./index-CDGmG-qk.cjs"),Ua=require("./_commonjsHelpers-DwTZ_eVU.cjs"),Ha=require("./TextInput.cjs"),$a=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function Ba(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const r in a)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(a,r);Object.defineProperty(n,r,t.get?t:{enumerable:!0,get:()=>a[r]})}}return n.default=a,Object.freeze(n)}const j=Ba(v),qa=Fa.styled.div`
|
|
2
2
|
${a=>I.getComponentTypographyCss(a.theme,"DateInput",a.size,"enabled")}
|
|
3
3
|
& .react-datepicker__header__dropdown {
|
|
4
4
|
position: absolute !important;
|
package/dist/DateInput.js
CHANGED
|
@@ -5,7 +5,7 @@ import { P as J } from "./index-CblbdqjE.js";
|
|
|
5
5
|
import Qa from "./Icon.js";
|
|
6
6
|
import { s as Ka } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
7
|
import { c as hr, b as $ } from "./utils-BbgAIA9N.js";
|
|
8
|
-
import { c as le } from "./index-
|
|
8
|
+
import { c as le } from "./index-fN7hCOo3.js";
|
|
9
9
|
import { c as wt, a as Va, d as R, e as L, g as Y, _, f as I } from "./defineProperty-DF3p0mVo.js";
|
|
10
10
|
import { a as x } from "./setPrototypeOf-CttqfWo1.js";
|
|
11
11
|
import { r as zn, R as Xa } from "./index-B1vKwsDE.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),y=require("./consts-goSZX3xP.cjs"),
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),l=require("react"),p=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),y=require("./consts-goSZX3xP.cjs"),N=require("./Icon.cjs"),$=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),W=p.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: flex-start;
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
cursor: pointer;
|
|
52
|
-
`,
|
|
52
|
+
`,C=p.styled.div`
|
|
53
53
|
width: 100%;
|
|
54
54
|
height: 11.625rem;
|
|
55
55
|
border-radius: 0.75rem;
|
|
56
56
|
background: ${o.linearGradientAnimation("-90deg")};
|
|
57
|
-
`,
|
|
57
|
+
`,R=p.styled.div`
|
|
58
58
|
display: flex;
|
|
59
59
|
padding: 0 0.75rem 0 0.75rem;
|
|
60
60
|
align-items: center;
|
|
@@ -108,12 +108,12 @@
|
|
|
108
108
|
@media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
|
|
109
109
|
min-width: fit-content;
|
|
110
110
|
}
|
|
111
|
-
`,
|
|
111
|
+
`,F=p.styled.div`
|
|
112
112
|
width: 7rem;
|
|
113
113
|
height: 3rem;
|
|
114
114
|
border-radius: 999px;
|
|
115
115
|
background: ${o.linearGradientAnimation("-90deg")};
|
|
116
|
-
`,q=l.forwardRef(({},i)=>r.jsx(
|
|
116
|
+
`,q=l.forwardRef(({},i)=>r.jsx(F,{})),E=l.forwardRef(({name:i,isActive:s,icon:t,onSelectCard:a=()=>{}},m)=>r.jsxs(R,{className:s?"active":"",onClick:a,children:[o.isDefinedNotEmptyString(t)&&r.jsx(N,{icon:t,className:"wrapper__icon"}),r.jsx("div",{className:"wrapper__text",children:i})]})),O=l.forwardRef(({image:i,imageComponent:s,name:t,description:a,onSelectCard:m=()=>{}},g)=>{const{theme:d}=$.useTheme();return r.jsxs(W,{theme:d,onClick:m,children:[o.isDefined(s)?s:r.jsx("img",{src:i,className:"wrapper__image"}),r.jsxs("div",{className:"wrapper__content",children:[t&&r.jsx("div",{className:"wrapper__title",children:t}),a&&r.jsx("div",{className:"wrapper__description",children:a})]})]})}),z=l.forwardRef(({},i)=>r.jsx(C,{})),A=p.styled.div`
|
|
117
117
|
display: flex;
|
|
118
118
|
flex-direction: column;
|
|
119
119
|
align-items: center;
|
|
@@ -183,8 +183,9 @@
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
& .wrapper__cards {
|
|
186
|
-
|
|
186
|
+
display: flex;
|
|
187
|
+
flex-direction: column;
|
|
187
188
|
gap: 1rem;
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
|
-
`,
|
|
191
|
+
`,D=l.forwardRef(({title:i,subtitle:s,tags:t=[],limitTags:a=7,limitTagsForMobile:m=7,limit:g=3,limitForMobile:d=2,items:f=[],selectedTag:c,isLoadingTags:b=!1,isLoadingItems:j=!1,onSelectTag:_=()=>{},onSelectCard:h=()=>{},getImage:k=()=>{}},I)=>{var u,v;const w=e=>{_==null||_(e)},x=e=>{h==null||h(e)};return r.jsxs(A,{ref:I,limitTags:a,limitTagsForMobile:m,limitCards:g,limitCardsForMobile:d,children:[r.jsxs("div",{className:"wrapper__heading",children:[i&&r.jsx("div",{className:"wrapper__title",children:i}),s&&r.jsx("div",{className:"wrapper__subtitle",children:s})]}),r.jsx("div",{className:"wrapper__tags",children:b?(u=Array.from("123"))==null?void 0:u.map((e,n)=>r.jsx(q,{},`field-of-interests-with-tags-card-tag-skeleton__${n+1}`)):t==null?void 0:t.map((e,n)=>r.jsx(E,{icon:e==null?void 0:e.icon,name:e==null?void 0:e.name,isActive:(e==null?void 0:e.uuid)===(c==null?void 0:c.uuid),onSelectCard:()=>w==null?void 0:w(e)},`field-of-interests-with-tags-card-tag__${n+1}`))}),r.jsx("div",{className:"wrapper__cards",children:j?(v=Array.from("123"))==null?void 0:v.map((e,n)=>r.jsx(z,{},`field-of-interests-with-tags-card-skeleton__${n+1}`)):f==null?void 0:f.map((e,n)=>r.jsx(O,{image:k(e==null?void 0:e.image,e==null?void 0:e.uuid,e==null?void 0:e.sellerUuid),imageComponent:e==null?void 0:e.imageComponent,name:e==null?void 0:e.name,description:(e==null?void 0:e.description)||(e==null?void 0:e.shortDescription),onSelectCard:()=>x==null?void 0:x(e)},`field-of-interests-with-tags-card__${n+1}`))})]})});module.exports=D;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as l } from "react";
|
|
3
3
|
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { p as y, o as b, k as
|
|
4
|
+
import { p as y, o as b, k as C, l as j } from "./utils-BbgAIA9N.js";
|
|
5
5
|
import { M as k } from "./consts-BuFChS64.js";
|
|
6
|
-
import
|
|
6
|
+
import F from "./Icon.js";
|
|
7
7
|
import { u as z } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const O = p.div`
|
|
9
9
|
display: flex;
|
|
@@ -115,30 +115,30 @@ const O = p.div`
|
|
|
115
115
|
@media (max-width: ${k + "px"}) {
|
|
116
116
|
min-width: fit-content;
|
|
117
117
|
}
|
|
118
|
-
`,
|
|
118
|
+
`, D = p.div`
|
|
119
119
|
width: 7rem;
|
|
120
120
|
height: 3rem;
|
|
121
121
|
border-radius: 999px;
|
|
122
122
|
background: ${b("-90deg")};
|
|
123
|
-
`,
|
|
124
|
-
({ name:
|
|
123
|
+
`, M = l(({}, i) => /* @__PURE__ */ r(D, {})), G = l(
|
|
124
|
+
({ name: i, isActive: n, icon: t, onSelectCard: o = () => {
|
|
125
125
|
} }, m) => /* @__PURE__ */ s(E, { className: n ? "active" : "", onClick: o, children: [
|
|
126
|
-
|
|
127
|
-
/* @__PURE__ */
|
|
126
|
+
C(t) && /* @__PURE__ */ r(F, { icon: t, className: "wrapper__icon" }),
|
|
127
|
+
/* @__PURE__ */ r("div", { className: "wrapper__text", children: i })
|
|
128
128
|
] })
|
|
129
129
|
), L = l(
|
|
130
|
-
({ image:
|
|
130
|
+
({ image: i, imageComponent: n, name: t, description: o, onSelectCard: m = () => {
|
|
131
131
|
} }, u) => {
|
|
132
132
|
const { theme: f } = z();
|
|
133
133
|
return /* @__PURE__ */ s(O, { theme: f, onClick: m, children: [
|
|
134
|
-
|
|
134
|
+
j(n) ? n : /* @__PURE__ */ r("img", { src: i, className: "wrapper__image" }),
|
|
135
135
|
/* @__PURE__ */ s("div", { className: "wrapper__content", children: [
|
|
136
|
-
t && /* @__PURE__ */
|
|
137
|
-
o && /* @__PURE__ */
|
|
136
|
+
t && /* @__PURE__ */ r("div", { className: "wrapper__title", children: t }),
|
|
137
|
+
o && /* @__PURE__ */ r("div", { className: "wrapper__description", children: o })
|
|
138
138
|
] })
|
|
139
139
|
] });
|
|
140
140
|
}
|
|
141
|
-
), R = l(({},
|
|
141
|
+
), R = l(({}, i) => /* @__PURE__ */ r(A, {})), T = p.div`
|
|
142
142
|
display: flex;
|
|
143
143
|
flex-direction: column;
|
|
144
144
|
align-items: center;
|
|
@@ -179,7 +179,7 @@ const O = p.div`
|
|
|
179
179
|
|
|
180
180
|
& .wrapper__cards {
|
|
181
181
|
display: grid;
|
|
182
|
-
grid-template-columns: ${(
|
|
182
|
+
grid-template-columns: ${(i) => `repeat(${i == null ? void 0 : i.limitCards}, minmax(0, 1fr))`};
|
|
183
183
|
justify-content: center;
|
|
184
184
|
align-items: center;
|
|
185
185
|
gap: 1.5rem;
|
|
@@ -208,13 +208,14 @@ const O = p.div`
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
& .wrapper__cards {
|
|
211
|
-
|
|
211
|
+
display: flex;
|
|
212
|
+
flex-direction: column;
|
|
212
213
|
gap: 1rem;
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
216
|
`, J = l(
|
|
216
217
|
({
|
|
217
|
-
title:
|
|
218
|
+
title: i,
|
|
218
219
|
subtitle: n,
|
|
219
220
|
tags: t = [],
|
|
220
221
|
limitTags: o = 7,
|
|
@@ -223,15 +224,15 @@ const O = p.div`
|
|
|
223
224
|
limitForMobile: f = 2,
|
|
224
225
|
items: d = [],
|
|
225
226
|
selectedTag: c,
|
|
226
|
-
isLoadingTags:
|
|
227
|
-
isLoadingItems:
|
|
227
|
+
isLoadingTags: N = !1,
|
|
228
|
+
isLoadingItems: $ = !1,
|
|
228
229
|
onSelectTag: h = () => {
|
|
229
230
|
},
|
|
230
231
|
onSelectCard: _ = () => {
|
|
231
232
|
},
|
|
232
|
-
getImage:
|
|
233
|
+
getImage: I = () => {
|
|
233
234
|
}
|
|
234
|
-
},
|
|
235
|
+
}, W) => {
|
|
235
236
|
var x, v;
|
|
236
237
|
const w = (e) => {
|
|
237
238
|
h == null || h(e);
|
|
@@ -241,21 +242,21 @@ const O = p.div`
|
|
|
241
242
|
return /* @__PURE__ */ s(
|
|
242
243
|
T,
|
|
243
244
|
{
|
|
244
|
-
ref:
|
|
245
|
+
ref: W,
|
|
245
246
|
limitTags: o,
|
|
246
247
|
limitTagsForMobile: m,
|
|
247
248
|
limitCards: u,
|
|
248
249
|
limitCardsForMobile: f,
|
|
249
250
|
children: [
|
|
250
251
|
/* @__PURE__ */ s("div", { className: "wrapper__heading", children: [
|
|
251
|
-
|
|
252
|
-
n && /* @__PURE__ */
|
|
252
|
+
i && /* @__PURE__ */ r("div", { className: "wrapper__title", children: i }),
|
|
253
|
+
n && /* @__PURE__ */ r("div", { className: "wrapper__subtitle", children: n })
|
|
253
254
|
] }),
|
|
254
|
-
/* @__PURE__ */
|
|
255
|
-
|
|
255
|
+
/* @__PURE__ */ r("div", { className: "wrapper__tags", children: N ? (x = Array.from("123")) == null ? void 0 : x.map((e, a) => /* @__PURE__ */ r(
|
|
256
|
+
M,
|
|
256
257
|
{},
|
|
257
258
|
`field-of-interests-with-tags-card-tag-skeleton__${a + 1}`
|
|
258
|
-
)) : t == null ? void 0 : t.map((e, a) => /* @__PURE__ */
|
|
259
|
+
)) : t == null ? void 0 : t.map((e, a) => /* @__PURE__ */ r(
|
|
259
260
|
G,
|
|
260
261
|
{
|
|
261
262
|
icon: e == null ? void 0 : e.icon,
|
|
@@ -265,14 +266,14 @@ const O = p.div`
|
|
|
265
266
|
},
|
|
266
267
|
`field-of-interests-with-tags-card-tag__${a + 1}`
|
|
267
268
|
)) }),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ r("div", { className: "wrapper__cards", children: $ ? (v = Array.from("123")) == null ? void 0 : v.map((e, a) => /* @__PURE__ */ r(
|
|
269
270
|
R,
|
|
270
271
|
{},
|
|
271
272
|
`field-of-interests-with-tags-card-skeleton__${a + 1}`
|
|
272
|
-
)) : d == null ? void 0 : d.map((e, a) => /* @__PURE__ */
|
|
273
|
+
)) : d == null ? void 0 : d.map((e, a) => /* @__PURE__ */ r(
|
|
273
274
|
L,
|
|
274
275
|
{
|
|
275
|
-
image:
|
|
276
|
+
image: I(e == null ? void 0 : e.image, e == null ? void 0 : e.uuid, e == null ? void 0 : e.sellerUuid),
|
|
276
277
|
imageComponent: e == null ? void 0 : e.imageComponent,
|
|
277
278
|
name: e == null ? void 0 : e.name,
|
|
278
279
|
description: (e == null ? void 0 : e.description) || (e == null ? void 0 : e.shortDescription),
|
package/dist/Kanban.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const oe=require("react/jsx-runtime"),d=require("react"),Vt=require("./index-41nUb2kP.cjs"),Q=require("./index-BpbMKBf_.cjs"),we=require("./utils-CZynEOC_.cjs"),Zr=require("./index-
|
|
1
|
+
"use strict";const oe=require("react/jsx-runtime"),d=require("react"),Vt=require("./index-41nUb2kP.cjs"),Q=require("./index-BpbMKBf_.cjs"),we=require("./utils-CZynEOC_.cjs"),Zr=require("./index-Bg5OOQN0.cjs"),en=require("./emotion-styled.browser.esm-BtEseadx.cjs"),zr=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),bo=require("./KanbanCard-BDvoqTDS.cjs"),Dt=require("./_commonjsHelpers-DwTZ_eVU.cjs"),ii=require("./KanbanHeader.cjs"),si=require("./useUpdateEffect-BtMgpgIV.cjs");var ai=function(e){d.useEffect(e,[])};function ci(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>o=>{t.forEach(s=>s(o))},t)}const Un=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tn(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Hr(e){return"nodeType"in e}function Ke(e){var t,n;return e?tn(e)?e:Hr(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Kr(e){const{Document:t}=Ke(e);return e instanceof t}function hn(e){return tn(e)?!1:e instanceof Ke(e).HTMLElement}function yo(e){return e instanceof Ke(e).SVGElement}function nn(e){return e?tn(e)?e.document:Hr(e)?Kr(e)?e:hn(e)||yo(e)?e.ownerDocument:document:document:document}const bt=Un?d.useLayoutEffect:d.useEffect;function kn(e){const t=d.useRef(e);return bt(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return t.current==null?void 0:t.current(...o)},[])}function li(){const e=d.useRef(null),t=d.useCallback((o,s)=>{e.current=setInterval(o,s)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function gn(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return bt(()=>{n.current!==e&&(n.current=e)},t),n}function pn(e,t){const n=d.useRef();return d.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function jn(e){const t=kn(e),n=d.useRef(null),o=d.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,o]}function $n(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let Tr={};function vn(e,t){return d.useMemo(()=>{if(t)return t;const n=Tr[e]==null?0:Tr[e]+1;return Tr[e]=n,e+"-"+n},[e,t])}function mo(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return o.reduce((c,l)=>{const u=Object.entries(l);for(const[h,f]of u){const b=c[h];b!=null&&(c[h]=b+e*f)}return c},{...t})}}const Zt=mo(1),Bn=mo(-1);function ui(e){return"clientX"in e&&"clientY"in e}function Xn(e){if(!e)return!1;const{KeyboardEvent:t}=Ke(e.target);return t&&e instanceof t}function di(e){if(!e)return!1;const{TouchEvent:t}=Ke(e.target);return t&&e instanceof t}function Fn(e){if(di(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ui(e)?{x:e.clientX,y:e.clientY}:null}const Gt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Gt.Translate.toString(e),Gt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),Qr="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function fi(e){return e.matches(Qr)?e:e.querySelector(Qr)}const gi={display:"none"};function hi(e){let{id:t,value:n}=e;return d.createElement("div",{id:t,style:gi},n)}function pi(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return d.createElement("div",{id:t,style:s,role:"status","aria-live":o,"aria-atomic":!0},n)}function vi(){const[e,t]=d.useState("");return{announce:d.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const xo=d.createContext(null);function bi(e){const t=d.useContext(xo);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function yi(){const[e]=d.useState(()=>new Set),t=d.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[d.useCallback(o=>{let{type:s,event:c}=o;e.forEach(l=>{var u;return(u=l[s])==null?void 0:u.call(l,c)})},[e]),t]}const mi={draggable:`
|
|
2
2
|
To pick up a draggable item, press the space bar.
|
|
3
3
|
While dragging, use the arrow keys to move the item.
|
|
4
4
|
Press space again to drop the item in its new position, or press escape to cancel.
|
package/dist/Kanban.js
CHANGED
|
@@ -3,10 +3,10 @@ import ae, { useEffect as k, useLayoutEffect as vi, useRef as V, useMemo as Q, u
|
|
|
3
3
|
import { r as on } from "./index-B1vKwsDE.js";
|
|
4
4
|
import { P as te } from "./index-CblbdqjE.js";
|
|
5
5
|
import { b as sn, r as nn, z as rn } from "./utils-BbgAIA9N.js";
|
|
6
|
-
import { c as lo } from "./index-
|
|
6
|
+
import { c as lo } from "./index-fN7hCOo3.js";
|
|
7
7
|
import { s as ln } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
8
8
|
import { u as Vr } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
9
|
-
import { H as mi, K as wi } from "./KanbanCard-
|
|
9
|
+
import { H as mi, K as wi } from "./KanbanCard-68kSAXL6.js";
|
|
10
10
|
import { c as Yt, g as Eo } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
11
11
|
import xi from "./KanbanHeader.js";
|
|
12
12
|
import { u as Ci } from "./useUpdateEffect-CuYWz7EA.js";
|
|
@@ -5,7 +5,7 @@ import { P as r } from "./index-CblbdqjE.js";
|
|
|
5
5
|
import C from "./Icon.js";
|
|
6
6
|
import P from "./DropdownMenu.js";
|
|
7
7
|
import K from "./DropdownItem.js";
|
|
8
|
-
import { c as O } from "./index-
|
|
8
|
+
import { c as O } from "./index-fN7hCOo3.js";
|
|
9
9
|
import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
10
|
const j = "_Action_bw0a9_5", B = {
|
|
11
11
|
Action: j
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),p=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),e=require("./index-BpbMKBf_.cjs"),N=require("./Icon.cjs"),k=require("./DropdownMenu.cjs"),q=require("./DropdownItem.cjs"),z=require("./index-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),p=require("react"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),e=require("./index-BpbMKBf_.cjs"),N=require("./Icon.cjs"),k=require("./DropdownMenu.cjs"),q=require("./DropdownItem.cjs"),z=require("./index-Bg5OOQN0.cjs"),C=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),R="_Action_bw0a9_5",$={Action:R},K=p.forwardRef(({active:r,className:n,cursor:a,style:t,...l},i)=>s.jsx("button",{ref:i,...l,className:z.classNames($.Action,n),tabIndex:0,style:{...t,cursor:a,"--fill":r==null?void 0:r.fill,"--background":r==null?void 0:r.background}})),u=p.forwardRef((r,n)=>s.jsx(K,{ref:n,cursor:"grab","data-cypress":"draggable-handle",...r,children:s.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:s.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})),O=m.styled.div`
|
|
2
2
|
height: 100%;
|
|
3
3
|
width: 100%;
|
|
4
4
|
padding: ${r=>`18px 20px 18px ${r.handle==!0?"10px":"20px"}`};
|
package/dist/KanbanCard.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");require("react");require("./emotion-styled.browser.esm-BtEseadx.cjs");require("./index-BpbMKBf_.cjs");require("./Icon.cjs");require("./DropdownMenu.cjs");require("./DropdownItem.cjs");const r=require("./KanbanCard-
|
|
1
|
+
"use strict";require("react/jsx-runtime");require("react");require("./emotion-styled.browser.esm-BtEseadx.cjs");require("./index-BpbMKBf_.cjs");require("./Icon.cjs");require("./DropdownMenu.cjs");require("./DropdownItem.cjs");const r=require("./KanbanCard-BDvoqTDS.cjs");require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");module.exports=r.KanbanCard;
|
package/dist/KanbanCard.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./index-CblbdqjE.js";
|
|
|
5
5
|
import "./Icon.js";
|
|
6
6
|
import "./DropdownMenu.js";
|
|
7
7
|
import "./DropdownItem.js";
|
|
8
|
-
import { K as l } from "./KanbanCard-
|
|
8
|
+
import { K as l } from "./KanbanCard-68kSAXL6.js";
|
|
9
9
|
import "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
10
|
export {
|
|
11
11
|
l as default
|
package/dist/KanbanView.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),U=require("react"),e=require("./index-BpbMKBf_.cjs"),X=require("./emotion-styled.browser.esm-BtEseadx.cjs"),Z=require("./KanbanActionsToolbar.cjs"),a=require("./utils-CZynEOC_.cjs"),$=require("./Kanban.cjs"),k=require("./KanbanCard-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),U=require("react"),e=require("./index-BpbMKBf_.cjs"),X=require("./emotion-styled.browser.esm-BtEseadx.cjs"),Z=require("./KanbanActionsToolbar.cjs"),a=require("./utils-CZynEOC_.cjs"),$=require("./Kanban.cjs"),k=require("./KanbanCard-BDvoqTDS.cjs"),ee=require("./KanbanHeader.cjs"),oe=require("./KanbanFooter.cjs"),ne=X.styled.div`
|
|
2
2
|
& .kanban-view-footer-lnc {
|
|
3
3
|
padding: 0 0.625rem;
|
|
4
4
|
}
|
package/dist/KanbanView.js
CHANGED
|
@@ -5,7 +5,7 @@ import { s as k } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
|
5
5
|
import P from "./KanbanActionsToolbar.js";
|
|
6
6
|
import { r as i, i as d } from "./utils-BbgAIA9N.js";
|
|
7
7
|
import ee from "./Kanban.js";
|
|
8
|
-
import { K as oe } from "./KanbanCard-
|
|
8
|
+
import { K as oe } from "./KanbanCard-68kSAXL6.js";
|
|
9
9
|
import ne from "./KanbanHeader.js";
|
|
10
10
|
import ae from "./KanbanFooter.js";
|
|
11
11
|
const te = k.div`
|
|
@@ -1,88 +1,133 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
display:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
gap: 1rem;
|
|
11
|
-
}
|
|
12
|
-
`,h=g.styled.div`
|
|
13
|
-
width: 100%;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
position: relative;
|
|
16
|
-
|
|
17
|
-
border-radius: 0.75rem;
|
|
18
|
-
background: ${n=>n==null?void 0:n.overlay};
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),d=require("react"),t=require("./index-BpbMKBf_.cjs"),u=require("./Button.cjs"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),f=require("./consts-goSZX3xP.cjs"),_=g.styled.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
height: 28.75rem;
|
|
4
|
+
padding: 2.25rem;
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: space-between;
|
|
19
8
|
cursor: pointer;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
width: 100%;
|
|
28
|
-
object-fit: cover;
|
|
29
|
-
}
|
|
9
|
+
flex: 1;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
background: ${r=>r==null?void 0:r.backgroundColor}, url(${r=>r==null?void 0:r.backgroundImage});
|
|
12
|
+
background-size: cover;
|
|
13
|
+
background-repeat: no-repeat;
|
|
14
|
+
background-position: center;
|
|
15
|
+
border-radius: 0.75rem;
|
|
30
16
|
|
|
31
17
|
&:hover {
|
|
32
|
-
|
|
33
|
-
transform: scale(1.1);
|
|
34
|
-
}
|
|
18
|
+
flex: 2;
|
|
35
19
|
}
|
|
36
20
|
|
|
37
|
-
& .
|
|
38
|
-
position: absolute;
|
|
39
|
-
right: 0;
|
|
40
|
-
top: 0;
|
|
41
|
-
padding: 2.25rem;
|
|
21
|
+
& .section__text {
|
|
42
22
|
display: flex;
|
|
43
23
|
flex-direction: column;
|
|
24
|
+
align-items: flex-start;
|
|
44
25
|
gap: 1rem;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
26
|
+
align-self: stretch;
|
|
27
|
+
|
|
28
|
+
& .section__title {
|
|
29
|
+
color: var(--white, #fff);
|
|
30
|
+
font-size: 1rem;
|
|
31
|
+
font-style: normal;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
line-height: 1.5rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
& .section__description {
|
|
37
|
+
color: var(--white, #fff);
|
|
38
|
+
font-size: 1.375rem;
|
|
39
|
+
font-style: normal;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
line-height: 1.75rem;
|
|
42
|
+
}
|
|
48
43
|
}
|
|
49
44
|
|
|
50
|
-
&
|
|
51
|
-
width: fit-content;
|
|
52
|
-
color: var(--gray-950, #14161a);
|
|
45
|
+
& .section__action {
|
|
53
46
|
background: var(--white, #fff);
|
|
47
|
+
color: var(--gray-950, #14161a);
|
|
48
|
+
font-size: 0.875rem;
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
line-height: 1.25rem;
|
|
54
52
|
|
|
55
53
|
&:hover {
|
|
56
54
|
color: var(--gray-700, #4e555f);
|
|
57
|
-
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:focus {
|
|
58
|
+
outline: none;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
60
61
|
|
|
61
|
-
|
|
62
|
+
@media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
|
|
63
|
+
padding: 2rem;
|
|
64
|
+
min-height: 17.5rem;
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
flex: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
& .section__text {
|
|
71
|
+
gap: 0.5rem;
|
|
72
|
+
|
|
73
|
+
& .section__title {
|
|
74
|
+
font-size: 0.875rem;
|
|
75
|
+
line-height: 1.25rem;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& .section__description {
|
|
79
|
+
font-size: 1rem;
|
|
80
|
+
line-height: 1.5rem;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
`,h=d.forwardRef(({title:r,description:o,buttonText:i,imageUrl:s,backgroundColor:c,handleSelectCard:e=()=>{},handleButtonAction:l=()=>{}},m)=>n.jsxs(_,{backgroundImage:s,backgroundColor:c,onClick:e,children:[n.jsxs("div",{className:"section__text",children:[r&&n.jsx("div",{className:"section__title",children:r}),o&&n.jsx("div",{className:"section__description",children:o})]}),n.jsx(u,{text:i,onClick:a=>{a==null||a.stopPropagation(),l()},borderRadius:"regular",color:"gray",className:"section__action"})]}));h.propTypes={title:t.PropTypes.string,description:t.PropTypes.string,buttonText:t.PropTypes.string,imageUrl:t.PropTypes.string,backgroundColor:t.PropTypes.string,handleSelectCard:t.PropTypes.func,handleButtonAction:t.PropTypes.func};const x=g.styled.div`
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
align-items: flex-start;
|
|
88
|
+
gap: 1.5rem;
|
|
89
|
+
|
|
90
|
+
& .section__title {
|
|
91
|
+
color: var(--gray-950, #14161a);
|
|
92
|
+
font-size: 1.5rem;
|
|
93
|
+
font-style: normal;
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
line-height: 2rem;
|
|
96
|
+
letter-spacing: -0.0294rem;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
& .section__items {
|
|
62
100
|
display: flex;
|
|
63
|
-
|
|
101
|
+
align-items: center;
|
|
64
102
|
gap: 1rem;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
font-weight: 500;
|
|
103
|
+
width: 100%;
|
|
104
|
+
}
|
|
68
105
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
106
|
+
& .section__item {
|
|
107
|
+
background: lightblue;
|
|
108
|
+
height: 24rem;
|
|
109
|
+
transition: width 0.5s ease;
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
display: flex;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
align-items: center;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
flex: 1;
|
|
116
|
+
|
|
117
|
+
&:hover {
|
|
118
|
+
flex: 2;
|
|
119
|
+
transition: width 0.5s ease;
|
|
72
120
|
}
|
|
73
121
|
}
|
|
74
122
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
123
|
+
@media (max-width: ${f.MOBILE_SIZE_PX+"px"}) {
|
|
124
|
+
& .section__title {
|
|
125
|
+
font-size: 1.375rem;
|
|
126
|
+
line-height: 1.75rem;
|
|
127
|
+
}
|
|
79
128
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.img.skeleton {
|
|
83
|
-
aspect-ratio: unset;
|
|
84
|
-
min-height: 28.75rem;
|
|
85
|
-
max-height: 28.75rem;
|
|
129
|
+
& .section__items {
|
|
130
|
+
flex-direction: column;
|
|
86
131
|
}
|
|
87
132
|
}
|
|
88
|
-
`,
|
|
133
|
+
`,p=d.forwardRef(({title:r,items:o,onSelectCard:i=()=>{},onButtonAction:s=()=>{}},c)=>n.jsxs(x,{children:[n.jsx("div",{className:"section__title",children:r}),n.jsx("div",{className:"section__items",children:o==null?void 0:o.map((e,l)=>n.jsx(h,{title:e==null?void 0:e.title,description:e==null?void 0:e.description,imageUrl:e==null?void 0:e.imageUrl,buttonText:e==null?void 0:e.buttonText,backgroundColor:e==null?void 0:e.backgroundColor,handleSelectCard:()=>i(e),handleButtonAction:()=>s(e)},`overlay-general-card__${l+1}`))})]}));module.exports=p;
|