monica-alexandria 2.9.3 → 2.9.5
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/index.es.js
CHANGED
|
@@ -317,7 +317,7 @@ import e from"react";import t from"styled-components";const a=t.button`
|
|
|
317
317
|
padding: 1rem 0;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
`;const
|
|
320
|
+
`;const y=t.input`
|
|
321
321
|
width: 100%;
|
|
322
322
|
border: none;
|
|
323
323
|
background: ${e=>e.theme.background};
|
|
@@ -338,11 +338,11 @@ import e from"react";import t from"styled-components";const a=t.button`
|
|
|
338
338
|
outline: 0;
|
|
339
339
|
box-shadow: ${e=>e.theme.inFocus};
|
|
340
340
|
}
|
|
341
|
-
`,
|
|
341
|
+
`,k=t.label`
|
|
342
342
|
color: ${e=>e.theme.color};
|
|
343
|
-
`,L=t(
|
|
343
|
+
`,L=t(y)`
|
|
344
344
|
padding-top: 3rem;
|
|
345
|
-
`,I=t(
|
|
345
|
+
`,I=t(k)`
|
|
346
346
|
font-size: var(--smallText);
|
|
347
347
|
`,$=t.div`
|
|
348
348
|
position: relative;
|
|
@@ -396,7 +396,7 @@ import e from"react";import t from"styled-components";const a=t.button`
|
|
|
396
396
|
display: none;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
`,z=t=>e.createElement($,null,e.createElement(L,{placeholder:t.placeholder}),e.createElement(I,null,t.placeholder)),H=t.div`
|
|
399
|
+
`,z=t=>e.createElement($,null,e.createElement(L,{placeholder:t.placeholder}),e.createElement(I,null,t.placeholder)),H=`(max-width: ${`${576}px`})`,C=`(max-width: ${`${768}px`})`,B=`(max-width: ${`${992}px`})`,A=`(max-width: ${`${1440}px`})`,T=t.div`
|
|
400
400
|
position: fixed;
|
|
401
401
|
top: 0;
|
|
402
402
|
left: 0;
|
|
@@ -404,24 +404,34 @@ import e from"react";import t from"styled-components";const a=t.button`
|
|
|
404
404
|
width: 100%;
|
|
405
405
|
min-height: 100vh;
|
|
406
406
|
background: ${e=>e.theme.overlay};
|
|
407
|
-
`,
|
|
407
|
+
`,R=t.div`
|
|
408
408
|
position: fixed;
|
|
409
409
|
top: 6.5rem;
|
|
410
410
|
left: 50%;
|
|
411
|
-
max-width: 35rem;
|
|
412
411
|
width: calc(100vw - 4rem);
|
|
412
|
+
max-width: 50rem;
|
|
413
413
|
transform: translateX(-50%);
|
|
414
414
|
z-index: 5001;
|
|
415
415
|
padding: var(--normalPads);
|
|
416
416
|
border-radius: var(--smallRadius);
|
|
417
417
|
background: ${e=>e.theme.background};
|
|
418
|
-
`,
|
|
418
|
+
`,V=t.div`
|
|
419
419
|
margin-top: 2rem;
|
|
420
420
|
padding: 1rem 2rem;
|
|
421
421
|
display: flex;
|
|
422
422
|
align-items: center;
|
|
423
423
|
justify-content: space-between;
|
|
424
|
-
|
|
424
|
+
|
|
425
|
+
@media ${C}{
|
|
426
|
+
|
|
427
|
+
button{
|
|
428
|
+
|
|
429
|
+
span{
|
|
430
|
+
display: none;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
`,S=t=>e.createElement(T,null,e.createElement(R,null,e.createElement("h4",null,t.question),e.createElement(V,null,e.createElement(w,{onClick:t.onClickPrimary,buttonIconLeft:t.primaryIcon,buttonText:t.primaryText}),e.createElement(b,{onClick:t.onClickSecondary,buttonIconLeft:t.secondaryIcon,buttonText:t.secondaryText})))),F=t.div`
|
|
425
435
|
padding-top: 6rem;
|
|
426
436
|
position: relative;
|
|
427
437
|
|
|
@@ -435,7 +445,7 @@ import e from"react";import t from"styled-components";const a=t.button`
|
|
|
435
445
|
grid-gap: 4rem;
|
|
436
446
|
padding: 0 4rem;
|
|
437
447
|
|
|
438
|
-
@media ${
|
|
448
|
+
@media ${B} {
|
|
439
449
|
grid-template-columns: 1fr;
|
|
440
450
|
}
|
|
441
451
|
`,P=t.div`
|
|
@@ -444,7 +454,7 @@ import e from"react";import t from"styled-components";const a=t.button`
|
|
|
444
454
|
grid-gap: 4rem;
|
|
445
455
|
padding: 0 4rem;
|
|
446
456
|
|
|
447
|
-
@media ${
|
|
457
|
+
@media ${B} {
|
|
448
458
|
grid-template-columns: 1fr;
|
|
449
459
|
}
|
|
450
460
|
`,D=t.div`
|
|
@@ -454,7 +464,7 @@ import e from"react";import t from"styled-components";const a=t.button`
|
|
|
454
464
|
`,N=t.div`
|
|
455
465
|
width: 100%;
|
|
456
466
|
|
|
457
|
-
@media ${
|
|
467
|
+
@media ${B} {
|
|
458
468
|
display: none;
|
|
459
469
|
}
|
|
460
470
|
`,X=t.div`
|
|
@@ -540,19 +550,19 @@ import e from"react";import t from"styled-components";const a=t.button`
|
|
|
540
550
|
align-items: flex-start;
|
|
541
551
|
grid-gap: 2rem;
|
|
542
552
|
|
|
543
|
-
@media ${
|
|
553
|
+
@media ${A}{
|
|
544
554
|
grid-template-columns: 1fr 1fr;
|
|
545
555
|
}
|
|
546
556
|
|
|
547
|
-
@media ${
|
|
557
|
+
@media ${B}{
|
|
548
558
|
grid-template-columns: 1fr 1fr 1fr;
|
|
549
559
|
}
|
|
550
560
|
|
|
551
|
-
@media ${
|
|
561
|
+
@media ${C}{
|
|
552
562
|
grid-template-columns: 1fr 1fr;
|
|
553
563
|
}
|
|
554
564
|
|
|
555
|
-
@media ${
|
|
565
|
+
@media ${H}{
|
|
556
566
|
grid-template-columns: 1fr;
|
|
557
567
|
}
|
|
558
568
|
`,ee={id:"light",background:"var(--white)",color:"var(--black)",low:"var(--greyLight)",mid:"var(--grey)",high:"var(--greyDark)",overlay:"var(--blackOverlay)",in:"var(--insetShadow)",inFocus:"var(--insetShadowFocus)",out:"var(--outShadow)",outFocus:"var(--outShadowFocus)"},te={id:"dark",background:"var(--dark)",color:"var(--blanc)",low:"var(--gloomDark)",mid:"var(--gloom)",high:"var(--gloomLight)",overlay:"var(--blancOverlay)",in:"var(--insetShine)",inFocus:"var(--insetShineFocus)",out:"var(--outShine)",outFocus:"var(--outShineFocus)"},ae=t.div`
|
|
@@ -568,14 +578,14 @@ import e from"react";import t from"styled-components";const a=t.button`
|
|
|
568
578
|
transition-duration: .5s;
|
|
569
579
|
}
|
|
570
580
|
|
|
571
|
-
svg{
|
|
581
|
+
/* svg{
|
|
572
582
|
fill: ${e=>e.theme.color};
|
|
573
583
|
transition-property: fill;
|
|
574
584
|
transition-duration: .5s;
|
|
575
|
-
}
|
|
585
|
+
} */
|
|
576
586
|
|
|
577
587
|
nav,div,button,section,main,aside{
|
|
578
588
|
transition-property: background;
|
|
579
589
|
transition-duration: .5s;
|
|
580
590
|
}
|
|
581
|
-
`;export{Z as CardButton,
|
|
591
|
+
`;export{Z as CardButton,S as Confirmation_,n as Cta_,o as Edit_,s as Focus_,d as Focus_Plain,$ as FormGroup,L as FormInput,I as FormLabel,z as Form_Input,v as Grey_,p as Grey_Link,c as IconSvg,w as Main_,b as Main_Plain,F as Page,j as PageAlwaysVisible,_ as PageCards,N as PageDesktopOnly,X as PageDesktopPadding,q as PageForty,Q as PageSingle,Y as PageSingleHeader,W as PageSingleRight,U as PageSingleleft,P as PageSixty,G as PageSub,K as PageSubActions,J as PageSubTitle,O as PageTitle,D as PageTools,ae as Theme,te as ThemeDark,ee as ThemeLight,f as White_Plain};
|
package/dist/index.js
CHANGED
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
display: none;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
`,k=r.default.div`
|
|
399
|
+
`,k=`(max-width: ${`${576}px`})`,L=`(max-width: ${`${768}px`})`,I=`(max-width: ${`${992}px`})`,$=`(max-width: ${`${1440}px`})`,z=r.default.div`
|
|
400
400
|
position: fixed;
|
|
401
401
|
top: 0;
|
|
402
402
|
left: 0;
|
|
@@ -404,24 +404,34 @@
|
|
|
404
404
|
width: 100%;
|
|
405
405
|
min-height: 100vh;
|
|
406
406
|
background: ${e=>e.theme.overlay};
|
|
407
|
-
`,
|
|
407
|
+
`,C=r.default.div`
|
|
408
408
|
position: fixed;
|
|
409
409
|
top: 6.5rem;
|
|
410
410
|
left: 50%;
|
|
411
|
-
max-width: 35rem;
|
|
412
411
|
width: calc(100vw - 4rem);
|
|
412
|
+
max-width: 50rem;
|
|
413
413
|
transform: translateX(-50%);
|
|
414
414
|
z-index: 5001;
|
|
415
415
|
padding: var(--normalPads);
|
|
416
416
|
border-radius: var(--smallRadius);
|
|
417
417
|
background: ${e=>e.theme.background};
|
|
418
|
-
`,
|
|
418
|
+
`,H=r.default.div`
|
|
419
419
|
margin-top: 2rem;
|
|
420
420
|
padding: 1rem 2rem;
|
|
421
421
|
display: flex;
|
|
422
422
|
align-items: center;
|
|
423
423
|
justify-content: space-between;
|
|
424
|
-
|
|
424
|
+
|
|
425
|
+
@media ${L}{
|
|
426
|
+
|
|
427
|
+
button{
|
|
428
|
+
|
|
429
|
+
span{
|
|
430
|
+
display: none;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
`,A=r.default.div`
|
|
425
435
|
padding-top: 6rem;
|
|
426
436
|
position: relative;
|
|
427
437
|
|
|
@@ -435,7 +445,7 @@
|
|
|
435
445
|
grid-gap: 4rem;
|
|
436
446
|
padding: 0 4rem;
|
|
437
447
|
|
|
438
|
-
@media ${
|
|
448
|
+
@media ${I} {
|
|
439
449
|
grid-template-columns: 1fr;
|
|
440
450
|
}
|
|
441
451
|
`,T=r.default.div`
|
|
@@ -444,7 +454,7 @@
|
|
|
444
454
|
grid-gap: 4rem;
|
|
445
455
|
padding: 0 4rem;
|
|
446
456
|
|
|
447
|
-
@media ${
|
|
457
|
+
@media ${I} {
|
|
448
458
|
grid-template-columns: 1fr;
|
|
449
459
|
}
|
|
450
460
|
`,P=r.default.div`
|
|
@@ -454,7 +464,7 @@
|
|
|
454
464
|
`,R=r.default.div`
|
|
455
465
|
width: 100%;
|
|
456
466
|
|
|
457
|
-
@media ${
|
|
467
|
+
@media ${I} {
|
|
458
468
|
display: none;
|
|
459
469
|
}
|
|
460
470
|
`,V=r.default.div`
|
|
@@ -540,19 +550,19 @@
|
|
|
540
550
|
align-items: flex-start;
|
|
541
551
|
grid-gap: 2rem;
|
|
542
552
|
|
|
543
|
-
@media ${
|
|
553
|
+
@media ${$}{
|
|
544
554
|
grid-template-columns: 1fr 1fr;
|
|
545
555
|
}
|
|
546
556
|
|
|
547
|
-
@media ${
|
|
557
|
+
@media ${I}{
|
|
548
558
|
grid-template-columns: 1fr 1fr 1fr;
|
|
549
559
|
}
|
|
550
560
|
|
|
551
|
-
@media ${
|
|
561
|
+
@media ${L}{
|
|
552
562
|
grid-template-columns: 1fr 1fr;
|
|
553
563
|
}
|
|
554
564
|
|
|
555
|
-
@media ${
|
|
565
|
+
@media ${k}{
|
|
556
566
|
grid-template-columns: 1fr;
|
|
557
567
|
}
|
|
558
568
|
`,Q=r.default.div`
|
|
@@ -568,14 +578,14 @@
|
|
|
568
578
|
transition-duration: .5s;
|
|
569
579
|
}
|
|
570
580
|
|
|
571
|
-
svg{
|
|
581
|
+
/* svg{
|
|
572
582
|
fill: ${e=>e.theme.color};
|
|
573
583
|
transition-property: fill;
|
|
574
584
|
transition-duration: .5s;
|
|
575
|
-
}
|
|
585
|
+
} */
|
|
576
586
|
|
|
577
587
|
nav,div,button,section,main,aside{
|
|
578
588
|
transition-property: background;
|
|
579
589
|
transition-duration: .5s;
|
|
580
590
|
}
|
|
581
|
-
`;exports.CardButton=x,exports.Confirmation_=e=>l.default.createElement(
|
|
591
|
+
`;exports.CardButton=x,exports.Confirmation_=e=>l.default.createElement(z,null,l.default.createElement(C,null,l.default.createElement("h4",null,e.question),l.default.createElement(H,null,l.default.createElement(g,{onClick:e.onClickPrimary,buttonIconLeft:e.primaryIcon,buttonText:e.primaryText}),l.default.createElement(v,{onClick:e.onClickSecondary,buttonIconLeft:e.secondaryIcon,buttonText:e.secondaryText})))),exports.Cta_=e=>l.default.createElement(c,{size:e.size,onClick:e.onClick},l.default.createElement("span",null,e.buttonText)),exports.Edit_=e=>l.default.createElement(d,{size:"normal",onClick:e.onClick},l.default.createElement(o,{Icon:e.buttonIcon})),exports.Focus_=e=>l.default.createElement(i,{size:e.size,onClick:e.onClick},e.buttonIconLeft?l.default.createElement(o,{Icon:e.buttonIconLeft}):null,e.buttonText?l.default.createElement("span",null,e.buttonText):null,e.buttonIconRight?l.default.createElement(o,{Icon:e.buttonIconRight}):null),exports.Focus_Plain=e=>l.default.createElement(s,{size:e.size,onClick:e.onClick,onFocus:e.onFocus},e.buttonIconLeft?l.default.createElement(o,{Icon:e.buttonIconLeft}):null,e.buttonText?l.default.createElement("span",null,e.buttonText):null,e.buttonIconRight?l.default.createElement(o,{Icon:e.buttonIconRight}):null),exports.FormGroup=Z,exports.FormInput=M,exports.FormLabel=y,exports.Form_Input=e=>l.default.createElement(Z,null,l.default.createElement(M,{placeholder:e.placeholder}),l.default.createElement(y,null,e.placeholder)),exports.Grey_=e=>l.default.createElement(u,{size:e.size,onClick:e.onClick},e.buttonIconLeft?l.default.createElement(o,{Icon:e.buttonIconLeft}):null,e.buttonText?l.default.createElement("span",null,e.buttonText):null,e.buttonIconRight?l.default.createElement(o,{Icon:e.buttonIconRight}):null),exports.Grey_Link=e=>l.default.createElement(m,{size:e.size,onClick:e.onClick},e.buttonIconLeft?l.default.createElement(o,{Icon:e.buttonIconLeft}):null,e.buttonText?l.default.createElement("span",null,e.buttonText):null,e.buttonIconRight?l.default.createElement(o,{Icon:e.buttonIconRight}):null),exports.IconSvg=o,exports.Main_=g,exports.Main_Plain=v,exports.Page=A,exports.PageAlwaysVisible=S,exports.PageCards=X,exports.PageDesktopOnly=R,exports.PageDesktopPadding=V,exports.PageForty=B,exports.PageSingle=q,exports.PageSingleHeader=_,exports.PageSingleRight=j,exports.PageSingleleft=D,exports.PageSixty=T,exports.PageSub=N,exports.PageSubActions=G,exports.PageSubTitle=O,exports.PageTitle=F,exports.PageTools=P,exports.Theme=Q,exports.ThemeDark={id:"dark",background:"var(--dark)",color:"var(--blanc)",low:"var(--gloomDark)",mid:"var(--gloom)",high:"var(--gloomLight)",overlay:"var(--blancOverlay)",in:"var(--insetShine)",inFocus:"var(--insetShineFocus)",out:"var(--outShine)",outFocus:"var(--outShineFocus)"},exports.ThemeLight={id:"light",background:"var(--white)",color:"var(--black)",low:"var(--greyLight)",mid:"var(--grey)",high:"var(--greyDark)",overlay:"var(--blackOverlay)",in:"var(--insetShadow)",inFocus:"var(--insetShadowFocus)",out:"var(--outShadow)",outFocus:"var(--outShadowFocus)"},exports.White_Plain=e=>l.default.createElement(p,{size:e.size,onClick:e.onClick},e.buttonIconLeft?l.default.createElement(o,{Icon:e.buttonIconLeft}):null,e.buttonText?l.default.createElement("span",null,e.buttonText):null,e.buttonIconRight?l.default.createElement(o,{Icon:e.buttonIconRight}):null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monica-alexandria",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.5",
|
|
4
4
|
"description": "A styled-components styles library for Doitforme platorm and universal tweeks to create your own new styled library for your project",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import styled from 'styled-components'
|
|
3
|
+
import { device } from '../../helpers/MediaQ'
|
|
3
4
|
import { Main_ } from '../elements/button/Main_'
|
|
4
5
|
import { Main_Plain } from '../elements/button/Main_Plain'
|
|
5
6
|
|
|
@@ -17,8 +18,8 @@ const ConfirmationContainer = styled.div`
|
|
|
17
18
|
position: fixed;
|
|
18
19
|
top: 6.5rem;
|
|
19
20
|
left: 50%;
|
|
20
|
-
max-width: 35rem;
|
|
21
21
|
width: calc(100vw - 4rem);
|
|
22
|
+
max-width: 50rem;
|
|
22
23
|
transform: translateX(-50%);
|
|
23
24
|
z-index: 5001;
|
|
24
25
|
padding: var(--normalPads);
|
|
@@ -32,6 +33,16 @@ const ConfirmationActions = styled.div`
|
|
|
32
33
|
display: flex;
|
|
33
34
|
align-items: center;
|
|
34
35
|
justify-content: space-between;
|
|
36
|
+
|
|
37
|
+
@media ${device.sm}{
|
|
38
|
+
|
|
39
|
+
button{
|
|
40
|
+
|
|
41
|
+
span{
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
35
46
|
`
|
|
36
47
|
|
|
37
48
|
export const Confirmation_ = (props) => {
|
|
@@ -41,11 +41,11 @@ export const Theme = styled.div`
|
|
|
41
41
|
transition-duration: .5s;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
svg{
|
|
44
|
+
/* svg{
|
|
45
45
|
fill: ${p => p.theme.color};
|
|
46
46
|
transition-property: fill;
|
|
47
47
|
transition-duration: .5s;
|
|
48
|
-
}
|
|
48
|
+
} */
|
|
49
49
|
|
|
50
50
|
nav,div,button,section,main,aside{
|
|
51
51
|
transition-property: background;
|
|
@@ -68,6 +68,8 @@ export const IconSvg = (props) => {
|
|
|
68
68
|
|
|
69
69
|
case "Location": return <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"><path d="M250 476.5a9.94 9.94 0 0 0 7.63-3.58c6.52-7.85 159.44-192.97 159.44-282.34S342.13 23.5 250 23.5 82.93 98.46 82.93 190.57s152.91 274.5 159.43 282.35a9.97 9.97 0 0 0 7.63 3.58Zm0-355.36c34.81 0 63.14 28.32 63.14 63.14s-28.32 63.14-63.14 63.14-63.14-28.32-63.14-63.14 28.32-63.14 63.14-63.14Z"/><path fill="none" d="M0 0h500v500H0z"/></svg>
|
|
70
70
|
|
|
71
|
+
// case "Schedule": return
|
|
72
|
+
|
|
71
73
|
default: return <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 323.35 324.14"><g data-name="Layer 2"><g data-name="Layer 1"><path d="M85.67 167.78c11.46-11.7 23.12-23.58 34.76-35.49 4.15-4.24 8.62-6.81 14.46-3.06 7 4.48 7.53 11.3.83 18-11.81 11.79-23.93 23.25-35.57 34.51l41.29 40.78c10.92-11 22.55-22.85 34.39-34.51 6.9-6.79 13.45-6.6 18.13.14 4.27 6.17 1.3 10.86-3.19 15.27-11.65 11.46-23.28 23-34.76 34.29 10.11 14.86 10.11 14.86-1.91 26.87q-4.71 4.71-9.42 9.41c-25.59 25.45-53.14 30-85.84 14.09-.89-.43-1.87-.67-4.17-1.48l-35 37.55L0 304.52l35.46-33.29c-3.5-14.79-7.62-26.43-8.76-38.35-1.91-20.16 6-37.35 20.26-51.6q6.16-6.15 12.31-12.32c11.86-11.85 11.86-11.85 26.4-1.18ZM267.71 38l35.77-38 19.87 20.11c-10.19 9.76-20.6 20-31.39 29.9-4.65 4.25-5.74 7.49-2.6 13.79 13.3 26.62 8.35 56.13-12.18 77.6-6.14 6.42-12.55 12.57-18.82 18.86-5.35 5.37-10.6 5.33-16 0-26.31-26.34-52.82-52.48-78.73-79.19-2.67-2.75-4.2-11-2.29-13.11 15.4-16.71 29.81-35.06 54.26-39.72 18.32-3.54 35.18.11 52.11 9.76Z"/></g></g></svg>
|
|
72
74
|
}
|
|
73
75
|
}
|