datastake-daf 0.6.599 → 0.6.601
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/layouts/index.js +47 -8
- package/package.json +1 -1
- package/src/@daf/layouts/AuthLayout/components/Select/index.jsx +16 -0
- package/src/@daf/layouts/AuthLayout/components/Select/style.js +14 -0
- package/src/@daf/layouts/AuthLayout/index.jsx +1 -1
- package/src/@daf/layouts/AuthLayout/style.js +12 -5
package/dist/layouts/index.js
CHANGED
|
@@ -7597,6 +7597,9 @@ const Style$1 = dt.div`
|
|
|
7597
7597
|
|
|
7598
7598
|
.select-navbar {
|
|
7599
7599
|
padding: 0 .75rem;
|
|
7600
|
+
display: flex;
|
|
7601
|
+
align-items: center;
|
|
7602
|
+
gap: 0;
|
|
7600
7603
|
|
|
7601
7604
|
div {
|
|
7602
7605
|
width: 4.625rem;
|
|
@@ -7608,6 +7611,17 @@ const Style$1 = dt.div`
|
|
|
7608
7611
|
cursor: pointer;
|
|
7609
7612
|
}
|
|
7610
7613
|
|
|
7614
|
+
.chevron-icon {
|
|
7615
|
+
color: #193E61;
|
|
7616
|
+
transition: transform 0.3s ease;
|
|
7617
|
+
cursor: pointer;
|
|
7618
|
+
flex-shrink: 0;
|
|
7619
|
+
|
|
7620
|
+
&.rotated {
|
|
7621
|
+
transform: rotate(180deg);
|
|
7622
|
+
}
|
|
7623
|
+
}
|
|
7624
|
+
|
|
7611
7625
|
.country-cont {
|
|
7612
7626
|
justify-content: center;
|
|
7613
7627
|
gap: 0.6rem;
|
|
@@ -7810,13 +7824,27 @@ const Select = ({
|
|
|
7810
7824
|
};
|
|
7811
7825
|
}, [toggled]);
|
|
7812
7826
|
return /*#__PURE__*/jsxRuntime.jsxs(Style$1, {
|
|
7813
|
-
children: [/*#__PURE__*/jsxRuntime.
|
|
7827
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
7814
7828
|
className: formatClassname(['select-navbar', bordered && 'bordered']),
|
|
7815
7829
|
onClick: () => setToggled(p => !p),
|
|
7816
7830
|
ref: ref,
|
|
7817
|
-
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7831
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
7818
7832
|
children: valueLabel
|
|
7819
|
-
})
|
|
7833
|
+
}), /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
7834
|
+
className: formatClassname(['chevron-icon', toggled && 'rotated']),
|
|
7835
|
+
width: "16",
|
|
7836
|
+
height: "16",
|
|
7837
|
+
viewBox: "0 0 16 16",
|
|
7838
|
+
fill: "none",
|
|
7839
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7840
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
7841
|
+
d: "M4 6L8 10L12 6",
|
|
7842
|
+
stroke: "currentColor",
|
|
7843
|
+
strokeWidth: "2",
|
|
7844
|
+
strokeLinecap: "round",
|
|
7845
|
+
strokeLinejoin: "round"
|
|
7846
|
+
})
|
|
7847
|
+
})]
|
|
7820
7848
|
}), visible && /*#__PURE__*/jsxRuntime.jsx(Options, {
|
|
7821
7849
|
value: value,
|
|
7822
7850
|
secondRef: ref,
|
|
@@ -8120,7 +8148,7 @@ const Style = dt.div`
|
|
|
8120
8148
|
|
|
8121
8149
|
&.right {
|
|
8122
8150
|
animation: .7s slideLeft forwards;
|
|
8123
|
-
background-image: url(
|
|
8151
|
+
background-image: url(${props => props.rightImageUrl}) !important;
|
|
8124
8152
|
background-size: cover;
|
|
8125
8153
|
background-repeat: no-repeat;
|
|
8126
8154
|
display: flex;
|
|
@@ -8151,7 +8179,7 @@ const Style = dt.div`
|
|
|
8151
8179
|
|
|
8152
8180
|
&.verified-user {
|
|
8153
8181
|
.right-img {
|
|
8154
|
-
background-image: url(
|
|
8182
|
+
background-image: url(${props => props.rightImageUrl}) !important;
|
|
8155
8183
|
}
|
|
8156
8184
|
}
|
|
8157
8185
|
|
|
@@ -8293,11 +8321,20 @@ const Style = dt.div`
|
|
|
8293
8321
|
}
|
|
8294
8322
|
}
|
|
8295
8323
|
|
|
8296
|
-
|
|
8324
|
+
.left-logo {
|
|
8325
|
+
img {
|
|
8326
|
+
height: 30px;
|
|
8327
|
+
margin-bottom: 32px;
|
|
8328
|
+
}
|
|
8329
|
+
}
|
|
8330
|
+
|
|
8331
|
+
${({
|
|
8332
|
+
appName
|
|
8333
|
+
}) => appName === 'sbg' && `
|
|
8297
8334
|
.right-img {
|
|
8298
8335
|
background-position: center !important;
|
|
8299
8336
|
background-size: cover !important;
|
|
8300
|
-
background-image: url(
|
|
8337
|
+
background-image: url(${props => props.rightImageUrl}) !important;
|
|
8301
8338
|
max-height: 100% !important;
|
|
8302
8339
|
margin-left: 0 !important;
|
|
8303
8340
|
}
|
|
@@ -8308,7 +8345,7 @@ const Style = dt.div`
|
|
|
8308
8345
|
border-color: var(--color-primary-70);
|
|
8309
8346
|
}
|
|
8310
8347
|
}
|
|
8311
|
-
}
|
|
8348
|
+
`}
|
|
8312
8349
|
`;
|
|
8313
8350
|
|
|
8314
8351
|
const AuthLayout = ({
|
|
@@ -8345,6 +8382,8 @@ const AuthLayout = ({
|
|
|
8345
8382
|
backLabel: backLabel,
|
|
8346
8383
|
defaultValue: defaultValue
|
|
8347
8384
|
}), /*#__PURE__*/jsxRuntime.jsx(Style, {
|
|
8385
|
+
rightImageUrl: rightImageUrl,
|
|
8386
|
+
appName: appName,
|
|
8348
8387
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
8349
8388
|
className: "main-cont",
|
|
8350
8389
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
package/package.json
CHANGED
|
@@ -126,6 +126,22 @@ export const Select = ({
|
|
|
126
126
|
ref={ref}
|
|
127
127
|
>
|
|
128
128
|
<div>{valueLabel}</div>
|
|
129
|
+
<svg
|
|
130
|
+
className={formatClassname(['chevron-icon', toggled && 'rotated'])}
|
|
131
|
+
width="16"
|
|
132
|
+
height="16"
|
|
133
|
+
viewBox="0 0 16 16"
|
|
134
|
+
fill="none"
|
|
135
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
136
|
+
>
|
|
137
|
+
<path
|
|
138
|
+
d="M4 6L8 10L12 6"
|
|
139
|
+
stroke="currentColor"
|
|
140
|
+
strokeWidth="2"
|
|
141
|
+
strokeLinecap="round"
|
|
142
|
+
strokeLinejoin="round"
|
|
143
|
+
/>
|
|
144
|
+
</svg>
|
|
129
145
|
</div>
|
|
130
146
|
{visible && (
|
|
131
147
|
<Options
|
|
@@ -27,6 +27,9 @@ const Style = styled.div`
|
|
|
27
27
|
|
|
28
28
|
.select-navbar {
|
|
29
29
|
padding: 0 .75rem;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: 0;
|
|
30
33
|
|
|
31
34
|
div {
|
|
32
35
|
width: 4.625rem;
|
|
@@ -38,6 +41,17 @@ const Style = styled.div`
|
|
|
38
41
|
cursor: pointer;
|
|
39
42
|
}
|
|
40
43
|
|
|
44
|
+
.chevron-icon {
|
|
45
|
+
color: #193E61;
|
|
46
|
+
transition: transform 0.3s ease;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
|
|
50
|
+
&.rotated {
|
|
51
|
+
transform: rotate(180deg);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
41
55
|
.country-cont {
|
|
42
56
|
justify-content: center;
|
|
43
57
|
gap: 0.6rem;
|
|
@@ -48,7 +48,7 @@ const AuthLayout = ({
|
|
|
48
48
|
defaultValue={defaultValue}
|
|
49
49
|
/>
|
|
50
50
|
)}
|
|
51
|
-
<Style>
|
|
51
|
+
<Style rightImageUrl={rightImageUrl} appName={appName}>
|
|
52
52
|
<div className="main-cont">
|
|
53
53
|
<div className={formatClassname(["d-cont left", leftClassName])}>
|
|
54
54
|
<div className="main">
|
|
@@ -224,7 +224,7 @@ const Style = styled.div`
|
|
|
224
224
|
|
|
225
225
|
&.right {
|
|
226
226
|
animation: .7s slideLeft forwards;
|
|
227
|
-
background-image: url(
|
|
227
|
+
background-image: url(${props => props.rightImageUrl}) !important;
|
|
228
228
|
background-size: cover;
|
|
229
229
|
background-repeat: no-repeat;
|
|
230
230
|
display: flex;
|
|
@@ -255,7 +255,7 @@ const Style = styled.div`
|
|
|
255
255
|
|
|
256
256
|
&.verified-user {
|
|
257
257
|
.right-img {
|
|
258
|
-
background-image: url(
|
|
258
|
+
background-image: url(${props => props.rightImageUrl}) !important;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
|
|
@@ -397,11 +397,18 @@ const Style = styled.div`
|
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
|
|
400
|
+
.left-logo {
|
|
401
|
+
img {
|
|
402
|
+
height: 30px;
|
|
403
|
+
margin-bottom: 32px;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
${({ appName }) => appName === 'sbg' && `
|
|
401
408
|
.right-img {
|
|
402
409
|
background-position: center !important;
|
|
403
410
|
background-size: cover !important;
|
|
404
|
-
background-image: url(
|
|
411
|
+
background-image: url(${props => props.rightImageUrl}) !important;
|
|
405
412
|
max-height: 100% !important;
|
|
406
413
|
margin-left: 0 !important;
|
|
407
414
|
}
|
|
@@ -412,7 +419,7 @@ const Style = styled.div`
|
|
|
412
419
|
border-color: var(--color-primary-70);
|
|
413
420
|
}
|
|
414
421
|
}
|
|
415
|
-
}
|
|
422
|
+
`}
|
|
416
423
|
`;
|
|
417
424
|
|
|
418
425
|
export default Style;
|