@transferwise/components 0.0.0-experimental-75fc27b → 0.0.0-experimental-8a932bb
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/build/avatarLayout/AvatarLayout.js +10 -2
- package/build/avatarLayout/AvatarLayout.js.map +1 -1
- package/build/avatarLayout/AvatarLayout.mjs +10 -2
- package/build/avatarLayout/AvatarLayout.mjs.map +1 -1
- package/build/button/Button/src/Button.js +93 -0
- package/build/button/Button/src/Button.js.map +1 -0
- package/build/button/Button/src/Button.mjs +91 -0
- package/build/button/Button/src/Button.mjs.map +1 -0
- package/build/button/{Button.js → LegacyButton/Button.js} +25 -24
- package/build/button/LegacyButton/Button.js.map +1 -0
- package/build/button/{Button.mjs → LegacyButton/Button.mjs} +25 -24
- package/build/button/LegacyButton/Button.mjs.map +1 -0
- package/build/button/LegacyButton/classMap.js +42 -0
- package/build/button/LegacyButton/classMap.js.map +1 -0
- package/build/button/LegacyButton/classMap.mjs +39 -0
- package/build/button/LegacyButton/classMap.mjs.map +1 -0
- package/build/button/{legacyUtils → LegacyButton/legacyUtils}/legacyUtils.js +21 -21
- package/build/button/LegacyButton/legacyUtils/legacyUtils.js.map +1 -0
- package/build/button/{legacyUtils → LegacyButton/legacyUtils}/legacyUtils.mjs +21 -21
- package/build/button/LegacyButton/legacyUtils/legacyUtils.mjs.map +1 -0
- package/build/button/src/Button.js +76 -0
- package/build/button/src/Button.js.map +1 -0
- package/build/button/src/Button.mjs +74 -0
- package/build/button/src/Button.mjs.map +1 -0
- package/build/circularButton/CircularButton.js +1 -1
- package/build/circularButton/CircularButton.js.map +1 -1
- package/build/circularButton/CircularButton.mjs +1 -1
- package/build/circularButton/CircularButton.mjs.map +1 -1
- package/build/common/action/Action.js +1 -1
- package/build/common/action/Action.js.map +1 -1
- package/build/common/action/Action.mjs +1 -1
- package/build/common/action/Action.mjs.map +1 -1
- package/build/criticalBanner/CriticalCommsBanner.js +1 -1
- package/build/criticalBanner/CriticalCommsBanner.mjs +1 -1
- package/build/header/Header.js +1 -1
- package/build/header/Header.mjs +1 -1
- package/build/index.js +1 -1
- package/build/index.mjs +1 -1
- package/build/link/Link.js +8 -3
- package/build/link/Link.js.map +1 -1
- package/build/link/Link.mjs +8 -3
- package/build/link/Link.mjs.map +1 -1
- package/build/main.css +288 -29
- package/build/nudge/Nudge.js +1 -1
- package/build/nudge/Nudge.js.map +1 -1
- package/build/nudge/Nudge.mjs +1 -1
- package/build/nudge/Nudge.mjs.map +1 -1
- package/build/select/Select.js +4 -2
- package/build/select/Select.js.map +1 -1
- package/build/select/Select.mjs +4 -2
- package/build/select/Select.mjs.map +1 -1
- package/build/styles/avatarLayout/AvatarLayout.css +11 -0
- package/build/styles/button/Button/less/Button.css +253 -0
- package/build/styles/button/Button/less/Button.vars.css +57 -0
- package/build/styles/iconButton/IconButton.css +24 -29
- package/build/styles/main.css +288 -29
- package/build/types/avatarLayout/AvatarLayout.d.ts +1 -2
- package/build/types/avatarLayout/AvatarLayout.d.ts.map +1 -1
- package/build/types/avatarLayout/index.d.ts +1 -0
- package/build/types/avatarLayout/index.d.ts.map +1 -1
- package/build/types/button/Button/index.d.ts +3 -0
- package/build/types/button/Button/index.d.ts.map +1 -0
- package/build/types/button/Button/src/Button.d.ts +4 -0
- package/build/types/button/Button/src/Button.d.ts.map +1 -0
- package/build/types/button/Button/src/Button.types.d.ts +50 -0
- package/build/types/button/Button/src/Button.types.d.ts.map +1 -0
- package/build/types/button/Button/src/index.d.ts +2 -0
- package/build/types/button/Button/src/index.d.ts.map +1 -0
- package/build/types/button/{Button.d.ts → LegacyButton/Button.d.ts} +6 -4
- package/build/types/button/LegacyButton/Button.d.ts.map +1 -0
- package/build/types/button/LegacyButton/classMap.d.ts.map +1 -0
- package/build/types/button/LegacyButton/index.d.ts +3 -0
- package/build/types/button/LegacyButton/index.d.ts.map +1 -0
- package/build/types/button/LegacyButton/legacyUtils/index.d.ts.map +1 -0
- package/build/types/button/{legacyUtils → LegacyButton/legacyUtils}/legacyUtils.d.ts +1 -1
- package/build/types/button/LegacyButton/legacyUtils/legacyUtils.d.ts.map +1 -0
- package/build/types/button/index.d.ts +2 -2
- package/build/types/button/index.d.ts.map +1 -1
- package/build/types/button/src/Button.d.ts +30 -0
- package/build/types/button/src/Button.d.ts.map +1 -0
- package/build/types/button/src/index.d.ts +3 -0
- package/build/types/button/src/index.d.ts.map +1 -0
- package/build/types/link/Link.d.ts +2 -2
- package/build/types/link/Link.d.ts.map +1 -1
- package/build/types/select/Select.d.ts.map +1 -1
- package/build/types/test-utils/index.d.ts.map +1 -1
- package/build/upload/steps/completeStep/completeStep.js +1 -1
- package/build/upload/steps/completeStep/completeStep.mjs +1 -1
- package/build/upload/steps/processingStep/processingStep.js +1 -1
- package/build/upload/steps/processingStep/processingStep.mjs +1 -1
- package/build/uploadInput/UploadInput.js +1 -1
- package/build/uploadInput/UploadInput.mjs +1 -1
- package/package.json +5 -5
- package/src/avatarLayout/AvatarLayout.css +11 -0
- package/src/avatarLayout/AvatarLayout.less +18 -1
- package/src/avatarLayout/AvatarLayout.story.tsx +2 -0
- package/src/avatarLayout/AvatarLayout.tsx +14 -4
- package/src/avatarLayout/index.ts +1 -0
- package/src/avatarWrapper/AvatarWrapper.story.tsx +2 -0
- package/src/button/Button/index.ts +2 -0
- package/src/button/Button/less/Button.css +253 -0
- package/src/button/Button/less/Button.less +221 -0
- package/src/button/Button/less/Button.vars.css +57 -0
- package/src/button/Button/less/Button.vars.less +65 -0
- package/src/button/Button/src/Button.tsx +116 -0
- package/src/button/Button/src/Button.types.ts +70 -0
- package/src/button/Button/src/index.ts +1 -0
- package/src/button/Button/stories/Button.story.tsx +314 -0
- package/src/button/Button/stories/Button.tests.story.tsx +288 -0
- package/src/button/Button/test/Button.spec.tsx +328 -0
- package/src/button/{Button.less → LegacyButton/Button.less} +1 -1
- package/src/button/{Button.spec.tsx → LegacyButton/Button.spec.tsx} +3 -3
- package/src/button/LegacyButton/Button.story.tsx +224 -0
- package/src/button/{Button.tsx → LegacyButton/Button.tsx} +12 -8
- package/src/button/{classMap.ts → LegacyButton/classMap.ts} +1 -1
- package/src/button/LegacyButton/index.ts +3 -0
- package/src/button/{legacyUtils → LegacyButton/legacyUtils}/legacyUtils.spec.tsx +2 -2
- package/src/button/{legacyUtils → LegacyButton/legacyUtils}/legacyUtils.ts +2 -2
- package/src/button/index.ts +2 -3
- package/src/button/src/Button.tsx +118 -0
- package/src/button/src/index.ts +2 -0
- package/src/button/test/Button.spec.tsx +66 -0
- package/src/circularButton/CircularButton.tsx +1 -1
- package/src/common/action/Action.tsx +1 -1
- package/src/iconButton/IconButton.css +24 -29
- package/src/iconButton/IconButton.less +4 -4
- package/src/link/Link.tsx +15 -6
- package/src/main.css +288 -29
- package/src/main.less +2 -1
- package/src/nudge/Nudge.tsx +1 -1
- package/src/primitives/PrimitiveAnchor/stories/PrimitiveAnchor.story.tsx +1 -1
- package/src/primitives/PrimitiveAnchor/test/PrimitiveAnchor.spec.tsx +1 -1
- package/src/primitives/PrimitiveButton/stories/PrimitiveButton.story.tsx +1 -1
- package/src/primitives/PrimitiveButton/test/PrimitiveButton.spec.tsx +2 -3
- package/src/select/Select.tsx +1 -0
- package/src/test-utils/index.tsx +0 -1
- package/build/button/Button.js.map +0 -1
- package/build/button/Button.mjs.map +0 -1
- package/build/button/classMap.js +0 -42
- package/build/button/classMap.js.map +0 -1
- package/build/button/classMap.mjs +0 -39
- package/build/button/classMap.mjs.map +0 -1
- package/build/button/legacyUtils/legacyUtils.js.map +0 -1
- package/build/button/legacyUtils/legacyUtils.mjs.map +0 -1
- package/build/types/button/Button.d.ts.map +0 -1
- package/build/types/button/classMap.d.ts.map +0 -1
- package/build/types/button/legacyUtils/index.d.ts.map +0 -1
- package/build/types/button/legacyUtils/legacyUtils.d.ts.map +0 -1
- package/src/button/Button.story.tsx +0 -163
- /package/build/styles/button/{Button.css → LegacyButton/Button.css} +0 -0
- /package/build/types/button/{classMap.d.ts → LegacyButton/classMap.d.ts} +0 -0
- /package/build/types/button/{legacyUtils → LegacyButton/legacyUtils}/index.d.ts +0 -0
- /package/src/button/{Button.css → LegacyButton/Button.css} +0 -0
- /package/src/button/{__snapshots__ → LegacyButton/__snapshots__}/Button.spec.tsx.snap +0 -0
- /package/src/button/{legacyUtils → LegacyButton/legacyUtils}/index.ts +0 -0
package/build/styles/main.css
CHANGED
|
@@ -518,10 +518,18 @@ div.critical-comms .critical-comms-body {
|
|
|
518
518
|
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) right calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
519
519
|
mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) right calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
520
520
|
}
|
|
521
|
+
[dir="rtl"] .np-avatar-layout-diagonal-mask {
|
|
522
|
+
-webkit-mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) left calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
523
|
+
mask-image: radial-gradient(circle at bottom calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)) left calc(100% - var(--np-avatar-size) - var(--np-avatar-offset)), transparent 0, transparent calc(var(--np-avatar-size) / 2 + 2px), black 0);
|
|
524
|
+
}
|
|
521
525
|
.np-avatar-layout-diagonal-child {
|
|
522
526
|
margin-left: calc(var(--np-avatar-layout-size) - var(--np-avatar-size) * 2);
|
|
523
527
|
margin-top: calc(var(--np-avatar-layout-size) - var(--np-avatar-size));
|
|
524
528
|
}
|
|
529
|
+
[dir="rtl"] .np-avatar-layout-diagonal-child {
|
|
530
|
+
margin-left: 0;
|
|
531
|
+
margin-right: calc(var(--np-avatar-layout-size) - var(--np-avatar-size) * 2);
|
|
532
|
+
}
|
|
525
533
|
.np-avatar-layout-horizontal {
|
|
526
534
|
width: calc(var(--np-avatar-size) * 2 - var(--np-avatar-offset) - 2px);
|
|
527
535
|
height: var(--np-avatar-layout-size);
|
|
@@ -535,81 +543,79 @@ div.critical-comms .critical-comms-body {
|
|
|
535
543
|
.np-avatar-layout-horizontal-child {
|
|
536
544
|
margin-left: calc(var(--np-avatar-offset) * -1);
|
|
537
545
|
}
|
|
546
|
+
[dir="rtl"] .np-avatar-layout-horizontal-child {
|
|
547
|
+
margin-right: calc(var(--np-avatar-offset) * -1);
|
|
548
|
+
}
|
|
538
549
|
.np-icon-button {
|
|
539
550
|
border: none;
|
|
540
551
|
}
|
|
541
552
|
.np-icon-button-tertiary-default {
|
|
542
|
-
color: var(--color-interactive-primary);
|
|
543
|
-
background
|
|
544
|
-
background-color: var(--color-background-neutral);
|
|
553
|
+
--Button-color: var(--color-interactive-primary);
|
|
554
|
+
--Button-background: var(--color-background-neutral);
|
|
545
555
|
}
|
|
546
556
|
.np-icon-button-tertiary-default:not(.disabled):not(:disabled):hover {
|
|
547
|
-
background-
|
|
557
|
+
--Button-background-hover: var(--color-background-neutral-hover);
|
|
548
558
|
}
|
|
549
559
|
.np-icon-button-tertiary-default:not(.disabled):not(:disabled):active {
|
|
550
|
-
background-
|
|
560
|
+
--Button-background-active: var(--color-background-neutral-active);
|
|
551
561
|
}
|
|
552
562
|
.np-icon-button-primary-default {
|
|
553
|
-
color: var(--color-interactive-control);
|
|
554
|
-
background
|
|
555
|
-
background-color: var(--color-interactive-accent);
|
|
563
|
+
--Button-color: var(--color-interactive-control);
|
|
564
|
+
--Button-background: var(--color-interactive-accent);
|
|
556
565
|
}
|
|
557
566
|
.np-icon-button-primary-default:not(.disabled):not(:disabled):hover {
|
|
558
|
-
background-
|
|
559
|
-
background-color: var(--color-interactive-accent-hover);
|
|
567
|
+
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
560
568
|
}
|
|
561
569
|
.np-icon-button-primary-default:not(.disabled):not(:disabled):active {
|
|
562
|
-
background-
|
|
563
|
-
background-color: var(--color-interactive-accent-active);
|
|
570
|
+
--Button-background-active: var(--color-interactive-accent-active);
|
|
564
571
|
}
|
|
565
572
|
.np-icon-button-primary-negative {
|
|
566
|
-
color: var(--color-contrast-overlay);
|
|
567
|
-
background
|
|
573
|
+
--Button-color: var(--color-contrast-overlay);
|
|
574
|
+
--Button-background: var(--color-sentiment-negative-primary);
|
|
568
575
|
}
|
|
569
576
|
.np-icon-button-primary-negative:not(.disabled):not(:disabled):hover {
|
|
570
|
-
background-
|
|
577
|
+
--Button-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
571
578
|
}
|
|
572
579
|
.np-icon-button-primary-negative:not(.disabled):not(:disabled):active {
|
|
573
|
-
background-
|
|
580
|
+
--Button-background-active: var(--color-sentiment-negative-primary-active);
|
|
574
581
|
}
|
|
575
582
|
.np-theme-personal--bright-green .np-icon-button-primary-negative {
|
|
576
583
|
color: var(--color-white);
|
|
577
584
|
}
|
|
578
585
|
.np-icon-button-minimal-default {
|
|
579
|
-
color: var(--color-interactive-primary);
|
|
580
|
-
background
|
|
581
|
-
background-color: var(--color-background-screen);
|
|
586
|
+
--Button-color: var(--color-interactive-primary);
|
|
587
|
+
--Button-background: var(--color-background-screen);
|
|
582
588
|
background-color: transparent;
|
|
583
589
|
}
|
|
584
590
|
.np-icon-button-minimal-default:not(.disabled):not(:disabled):hover {
|
|
585
|
-
background-
|
|
591
|
+
--Button-background-hover: var(--color-background-screen-hover);
|
|
586
592
|
}
|
|
587
593
|
.np-icon-button-minimal-default:not(.disabled):not(:disabled):active {
|
|
588
|
-
background-
|
|
594
|
+
--Button-background-active: var(--color-background-screen-active);
|
|
589
595
|
}
|
|
590
596
|
.np-icon-button-secondary-default {
|
|
591
|
-
color: var(--color-interactive-primary);
|
|
592
|
-
background
|
|
597
|
+
--Button-color: var(--color-interactive-primary);
|
|
598
|
+
--Button-background: var(--color-interactive-neutral);
|
|
593
599
|
}
|
|
594
600
|
.np-icon-button-secondary-default:not(.disabled):not(:disabled):hover {
|
|
595
|
-
background-
|
|
601
|
+
--Button-background-hover: var(--color-interactive-neutral-hover);
|
|
596
602
|
}
|
|
597
603
|
.np-icon-button-secondary-default:not(.disabled):not(:disabled):active {
|
|
598
|
-
background-
|
|
604
|
+
--Button-background-active: var(--color-interactive-neutral-active);
|
|
599
605
|
}
|
|
600
606
|
.np-theme-personal--bright-green .np-icon-button-secondary-default,
|
|
601
607
|
.np-theme-personal--forest-green .np-icon-button-secondary-default {
|
|
602
608
|
color: var(--color-interactive-control);
|
|
603
609
|
}
|
|
604
610
|
.np-icon-button-secondary-negative {
|
|
605
|
-
color: var(--color-sentiment-negative-primary);
|
|
606
|
-
background
|
|
611
|
+
--Button-color: var(--color-sentiment-negative-primary);
|
|
612
|
+
--Button-background: var(--color-sentiment-negative-secondary);
|
|
607
613
|
}
|
|
608
614
|
.np-icon-button-secondary-negative:not(.disabled):not(:disabled):hover {
|
|
609
|
-
background-
|
|
615
|
+
--Button-background-hover: var(--color-sentiment-negative-secondary-hover);
|
|
610
616
|
}
|
|
611
617
|
.np-icon-button-secondary-negative:not(.disabled):not(:disabled):active {
|
|
612
|
-
background-
|
|
618
|
+
--Button-background-active: var(--color-sentiment-negative-secondary-active);
|
|
613
619
|
}
|
|
614
620
|
.np-theme-personal--bright-green .np-icon-button-secondary-negative {
|
|
615
621
|
color: var(--color-white);
|
|
@@ -705,6 +711,259 @@ div.critical-comms .critical-comms-body {
|
|
|
705
711
|
.np-btn.disabled[class] {
|
|
706
712
|
pointer-events: auto;
|
|
707
713
|
}
|
|
714
|
+
:root {
|
|
715
|
+
--Button-background: var(--color-interactive-accent);
|
|
716
|
+
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
717
|
+
--Button-background-active: var(--color-interactive-accent-active);
|
|
718
|
+
--Button-color: var(--color-interactive-control);
|
|
719
|
+
--Button-padding: var(--size-8) var(--size-12);
|
|
720
|
+
--Button-border-radius: var(--radius-full);
|
|
721
|
+
--Button-font-size: var(--font-size-16);
|
|
722
|
+
--Button-line-height: var(--size-24);
|
|
723
|
+
--Button-font-weight: var(--font-weight-semi-bold);
|
|
724
|
+
--Button-letter-spacing: -0.011em;
|
|
725
|
+
--Button-size-small-padding: 5px var(--size-12);
|
|
726
|
+
--Button-size-medium-padding: var(--size-8) var(--size-12);
|
|
727
|
+
--Button-size-large-padding: var(--size-12) var(--size-16);
|
|
728
|
+
--Button-avatar-border-color: var(--color-border-neutral);
|
|
729
|
+
--Button-secondary-background: var(--color-interactive-neutral);
|
|
730
|
+
--Button-secondary-background-hover: var(--color-interactive-neutral-hover);
|
|
731
|
+
--Button-secondary-background-active: var(--color-interactive-neutral-active);
|
|
732
|
+
--Button-secondary-color: var(--color-interactive-primary);
|
|
733
|
+
--Button-tertiary-background: var(--color-background-neutral);
|
|
734
|
+
--Button-tertiary-background-hover: var(--color-background-neutral-hover);
|
|
735
|
+
--Button-tertiary-background-active: var(--color-background-neutral-active);
|
|
736
|
+
--Button-tertiary-color: var(--color-content-primary);
|
|
737
|
+
--Button-minimal-background: transparent;
|
|
738
|
+
--Button-minimal-background-hover: var(--color-background-screen-hover);
|
|
739
|
+
--Button-minimal-background-active: var(--color-background-screen-active);
|
|
740
|
+
--Button-minimal-color: var(--color-interactive-primary);
|
|
741
|
+
--Button-primary-negative-background: var(--color-sentiment-negative-primary);
|
|
742
|
+
--Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
|
|
743
|
+
--Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);
|
|
744
|
+
--Button-primary-negative-color: var(--color-contrast);
|
|
745
|
+
--Button-primary-netative-avatar-border-color: rgba(255,255,255,0.2);
|
|
746
|
+
--Button-secondary-negative-background: var(--color-sentiment-negative-secondary);
|
|
747
|
+
--Button-secondary-negative-background-hover: var(--color-sentiment-negative-secondary-hover);
|
|
748
|
+
--Button-secondary-negative-background-active: var(--color-sentiment-negative-secondary-active);
|
|
749
|
+
--Button-secondary-negative-color: var(--color-sentiment-negative-primary);
|
|
750
|
+
--Button-secondary-netative-avatar-border-color: rgba(168,32,13,0.12157);
|
|
751
|
+
}
|
|
752
|
+
.np-theme-personal--dark {
|
|
753
|
+
--Button-primary-netative-avatar-border-color: rgba(14,15,12,0.12157);
|
|
754
|
+
}
|
|
755
|
+
.np-theme-personal--forest-green {
|
|
756
|
+
--color-interactive-neutral: rgba(159,232,112,0.2);
|
|
757
|
+
--color-interactive-neutral-hover: rgba(205,255,173,0.2);
|
|
758
|
+
--color-interactive-neutral-active: rgba(236,255,224,0.2);
|
|
759
|
+
--color-sentiment-negative-secondary: rgba(255,196,194,0.2);
|
|
760
|
+
--color-sentiment-negative-secondary-hover: rgba(255,220,219,0.2);
|
|
761
|
+
--color-sentiment-negative-secondary-active: rgba(255,235,235,0.2);
|
|
762
|
+
--Button-primary-netative-avatar-border-color: rgba(14,15,12,0.12157);
|
|
763
|
+
--Button-secondary-netative-avatar-border-color: rgba(14,15,12,0.12157);
|
|
764
|
+
}
|
|
765
|
+
.np-theme-personal--bright-green {
|
|
766
|
+
--color-contrast: #FFFFFF;
|
|
767
|
+
--Button-secondary-color: var(--color-interactive-control);
|
|
768
|
+
--Button-secondary-negative-color: var(--color-contrast);
|
|
769
|
+
--Button-secondary-netative-avatar-border-color: var(--Button-primary-netative-avatar-border-color);
|
|
770
|
+
}
|
|
771
|
+
/* Button Styles */
|
|
772
|
+
.wds-Button {
|
|
773
|
+
display: inline-flex;
|
|
774
|
+
flex: none;
|
|
775
|
+
width: auto;
|
|
776
|
+
align-items: center;
|
|
777
|
+
justify-content: center;
|
|
778
|
+
vertical-align: middle;
|
|
779
|
+
font-weight: 600;
|
|
780
|
+
font-weight: var(--Button-font-weight);
|
|
781
|
+
font-size: 1rem;
|
|
782
|
+
font-size: var(--Button-font-size);
|
|
783
|
+
letter-spacing: -0.011em;
|
|
784
|
+
letter-spacing: var(--Button-letter-spacing);
|
|
785
|
+
line-height: 24px;
|
|
786
|
+
line-height: var(--Button-line-height);
|
|
787
|
+
text-align: center;
|
|
788
|
+
-webkit-text-decoration: none;
|
|
789
|
+
text-decoration: none;
|
|
790
|
+
white-space: nowrap;
|
|
791
|
+
word-wrap: break-word;
|
|
792
|
+
-webkit-appearance: none;
|
|
793
|
+
-moz-appearance: none;
|
|
794
|
+
appearance: none;
|
|
795
|
+
background-color: #00a2dd;
|
|
796
|
+
background-color: var(--Button-background);
|
|
797
|
+
border: none;
|
|
798
|
+
border-radius: 9999px;
|
|
799
|
+
border-radius: var(--Button-border-radius);
|
|
800
|
+
color: var(--Button-color);
|
|
801
|
+
cursor: pointer;
|
|
802
|
+
padding: 8px 12px;
|
|
803
|
+
padding: var(--Button-padding);
|
|
804
|
+
}
|
|
805
|
+
.wds-Button:focus {
|
|
806
|
+
-webkit-text-decoration: none;
|
|
807
|
+
text-decoration: none;
|
|
808
|
+
}
|
|
809
|
+
.wds-Button:hover {
|
|
810
|
+
background-color: #008fc9;
|
|
811
|
+
background-color: var(--Button-background-hover);
|
|
812
|
+
-webkit-text-decoration: none;
|
|
813
|
+
text-decoration: none;
|
|
814
|
+
}
|
|
815
|
+
.wds-Button:active {
|
|
816
|
+
background-color: #0081ba;
|
|
817
|
+
background-color: var(--Button-background-active);
|
|
818
|
+
-webkit-text-decoration: none;
|
|
819
|
+
text-decoration: none;
|
|
820
|
+
}
|
|
821
|
+
.wds-Button:disabled {
|
|
822
|
+
mix-blend-mode: luminosity;
|
|
823
|
+
opacity: 0.45;
|
|
824
|
+
cursor: not-allowed;
|
|
825
|
+
}
|
|
826
|
+
.wds-Button:disabled:hover,
|
|
827
|
+
.wds-Button:disabled:active {
|
|
828
|
+
background-color: #00a2dd;
|
|
829
|
+
background-color: var(--Button-background);
|
|
830
|
+
}
|
|
831
|
+
.wds-Button--secondary {
|
|
832
|
+
--Button-background: var(--Button-secondary-background);
|
|
833
|
+
--Button-background-hover: var(--Button-secondary-hover-background);
|
|
834
|
+
--Button-background-active: var(--Button-secondary-active-background);
|
|
835
|
+
--Button-color: var(--Button-secondary-color);
|
|
836
|
+
}
|
|
837
|
+
.wds-Button--tertiary {
|
|
838
|
+
--Button-background: var(--Button-tertiary-background);
|
|
839
|
+
--Button-background-hover: var(--Button-tertiary-hover-background);
|
|
840
|
+
--Button-background-active: var(--Button-tertiary-active-background);
|
|
841
|
+
--Button-color: var(--Button-tertiary-color);
|
|
842
|
+
}
|
|
843
|
+
.wds-Button--tertiary .wds-Button-icon--right {
|
|
844
|
+
color: var(--color-interactive-primary);
|
|
845
|
+
}
|
|
846
|
+
.wds-Button--minimal {
|
|
847
|
+
--Button-background: var(--Button-minimal-background);
|
|
848
|
+
--Button-background-hover: var(--Button-minimal-hover-background);
|
|
849
|
+
--Button-background-active: var(--Button-minimal-active-background);
|
|
850
|
+
--Button-color: var(--Button-minimal-color);
|
|
851
|
+
-webkit-text-decoration: underline;
|
|
852
|
+
text-decoration: underline;
|
|
853
|
+
}
|
|
854
|
+
.wds-Button--minimal:hover,
|
|
855
|
+
.wds-Button--minimal:hover:active {
|
|
856
|
+
-webkit-text-decoration: underline;
|
|
857
|
+
text-decoration: underline;
|
|
858
|
+
}
|
|
859
|
+
.wds-Button--negative.wds-Button--primary {
|
|
860
|
+
--Button-background: var(--Button-primary-negative-background);
|
|
861
|
+
--Button-background-hover: var(--Button-primary-negative-hover-background);
|
|
862
|
+
--Button-background-active: var(--Button-primary-negative-active-background);
|
|
863
|
+
--Button-color: var(--Button-primary-negative-color);
|
|
864
|
+
--Button-avatar-border-color: var(--Button-primary-netative-avatar-border-color);
|
|
865
|
+
}
|
|
866
|
+
.wds-Button--negative.wds-Button--secondary {
|
|
867
|
+
--Button-background: var(--Button-secondary-negative-background);
|
|
868
|
+
--Button-background-hover: var(--Button-secondary-negative-hover-background);
|
|
869
|
+
--Button-background-active: var(--Button-secondary-negative-active-background);
|
|
870
|
+
--Button-color: var(--Button-secondary-negative-color);
|
|
871
|
+
--Button-avatar-border-color: var(--Button-secondary-netative-avatar-border-color);
|
|
872
|
+
}
|
|
873
|
+
.wds-Button--small {
|
|
874
|
+
--Button-padding: var(--Button-size-small-padding);
|
|
875
|
+
--Button-line-height: 22px;
|
|
876
|
+
--Button-font-size: var(--font-size-14);
|
|
877
|
+
--Button-letter-spacing: -0.006em;
|
|
878
|
+
}
|
|
879
|
+
.wds-Button--small .wds-Button-icon--left {
|
|
880
|
+
margin-right: 4px;
|
|
881
|
+
margin-right: var(--size-4);
|
|
882
|
+
}
|
|
883
|
+
[dir="rtl"] .wds-Button--small .wds-Button-icon--left {
|
|
884
|
+
margin-right: 0;
|
|
885
|
+
margin-left: 4px;
|
|
886
|
+
margin-left: var(--size-4);
|
|
887
|
+
}
|
|
888
|
+
.wds-Button--medium {
|
|
889
|
+
--Button-padding: var(--Button-size-medium-padding);
|
|
890
|
+
}
|
|
891
|
+
.wds-Button--large {
|
|
892
|
+
--Button-padding: var(--Button-size-large-padding);
|
|
893
|
+
}
|
|
894
|
+
.wds-Button--block {
|
|
895
|
+
width: 100%;
|
|
896
|
+
}
|
|
897
|
+
.wds-Button-avatars {
|
|
898
|
+
display: inline-flex;
|
|
899
|
+
margin-right: 5px;
|
|
900
|
+
margin-left: calc(4px * -1);
|
|
901
|
+
margin-left: calc(var(--size-4) * -1);
|
|
902
|
+
}
|
|
903
|
+
[dir="rtl"] .wds-Button-avatars {
|
|
904
|
+
margin-right: 0;
|
|
905
|
+
margin-left: 5px;
|
|
906
|
+
}
|
|
907
|
+
.wds-Button-avatars .np-circle {
|
|
908
|
+
--circle-border-color: var(--Button-avatar-border-color);
|
|
909
|
+
}
|
|
910
|
+
.wds-Button-avatars .np-avatar-view .np-avatar-view-content {
|
|
911
|
+
color: var(--Button-color);
|
|
912
|
+
}
|
|
913
|
+
.wds-Button-icon {
|
|
914
|
+
display: inline-block;
|
|
915
|
+
}
|
|
916
|
+
.wds-Button-icon--left {
|
|
917
|
+
margin-right: 8px;
|
|
918
|
+
margin-right: var(--size-8);
|
|
919
|
+
}
|
|
920
|
+
[dir="rtl"] .wds-Button-icon--left {
|
|
921
|
+
margin-right: 0;
|
|
922
|
+
margin-left: 8px;
|
|
923
|
+
margin-left: var(--size-8);
|
|
924
|
+
}
|
|
925
|
+
.wds-Button-icon--right {
|
|
926
|
+
margin-left: 4px;
|
|
927
|
+
margin-left: var(--size-4);
|
|
928
|
+
}
|
|
929
|
+
[dir="rtl"] .wds-Button-icon--right {
|
|
930
|
+
margin-left: 0;
|
|
931
|
+
margin-right: 4px;
|
|
932
|
+
margin-right: var(--size-4);
|
|
933
|
+
}
|
|
934
|
+
.wds-Button-content {
|
|
935
|
+
position: relative;
|
|
936
|
+
}
|
|
937
|
+
.wds-Button-content--loading .wds-Button-label,
|
|
938
|
+
.wds-Button-content--loading .wds-Button-media,
|
|
939
|
+
.wds-Button-content--loading .wds-Button-icon {
|
|
940
|
+
visibility: hidden;
|
|
941
|
+
opacity: 0;
|
|
942
|
+
}
|
|
943
|
+
.wds-Button-label {
|
|
944
|
+
display: flex;
|
|
945
|
+
justify-content: center;
|
|
946
|
+
align-items: center;
|
|
947
|
+
position: relative;
|
|
948
|
+
}
|
|
949
|
+
.wds-Button-loader {
|
|
950
|
+
position: absolute;
|
|
951
|
+
display: flex;
|
|
952
|
+
justify-content: center;
|
|
953
|
+
align-items: center;
|
|
954
|
+
width: 100%;
|
|
955
|
+
height: 100%;
|
|
956
|
+
}
|
|
957
|
+
.wds-Button-loader .process-circle {
|
|
958
|
+
stroke: var(--Button-color);
|
|
959
|
+
}
|
|
960
|
+
/* RTL Styles */
|
|
961
|
+
[dir="rtl"] .wds-Button .tw-icon-chevron-right,[dir="rtl"] .wds-Button .tw-icon-arrow-right {
|
|
962
|
+
transform: rotate(180deg);
|
|
963
|
+
}
|
|
964
|
+
[dir="rtl"] .wds-Button .tw-icon-chevron-left,[dir="rtl"] .wds-Button .tw-icon-arrow-left {
|
|
965
|
+
transform: rotate(180deg);
|
|
966
|
+
}
|
|
708
967
|
.np-card {
|
|
709
968
|
overflow: hidden;
|
|
710
969
|
transition-property: transform, box-shadow;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarViewProps } from '../avatarView';
|
|
2
|
-
type SingleAvatarType = {
|
|
2
|
+
export type SingleAvatarType = {
|
|
3
3
|
asset?: AvatarViewProps['children'];
|
|
4
4
|
} & Omit<AvatarViewProps, 'notification' | 'selected' | 'size' | 'badge' | 'children' | 'interactive'>;
|
|
5
5
|
export type Props = {
|
|
@@ -7,5 +7,4 @@ export type Props = {
|
|
|
7
7
|
orientation?: 'horizontal' | 'diagonal';
|
|
8
8
|
} & Pick<AvatarViewProps, 'size' | 'interactive' | 'className' | 'role' | 'aria-label' | 'aria-labelledby' | 'aria-hidden'>;
|
|
9
9
|
export default function AvatarLayout({ avatars, orientation: orientationProp, size, className, interactive, ...restProps }: Props): import("react").JSX.Element | null;
|
|
10
|
-
export {};
|
|
11
10
|
//# sourceMappingURL=AvatarLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarLayout.d.ts","sourceRoot":"","sources":["../../../src/avatarLayout/AvatarLayout.tsx"],"names":[],"mappings":"AACA,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"AvatarLayout.d.ts","sourceRoot":"","sources":["../../../src/avatarLayout/AvatarLayout.tsx"],"names":[],"mappings":"AACA,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAG5D,MAAM,MAAM,gBAAgB,GAAG;IAAE,KAAK,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;CAAE,GAAG,IAAI,CAC3E,eAAe,EACf,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAC5E,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC,GAAG,IAAI,CACN,eAAe,EACf,MAAM,GAAG,aAAa,GAAG,WAAW,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,GAAG,aAAa,CACjG,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,OAAY,EACZ,WAAW,EAAE,eAA8B,EAC3C,IAAS,EACT,SAAS,EACT,WAAW,EACX,GAAG,SAAS,EACb,EAAE,KAAK,sCAuDP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/avatarLayout/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/avatarLayout/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/button/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Button: React.ForwardRefExoticComponent<(Omit<import("./Button.types").ButtonElementProps, "ref"> | Omit<import("./Button.types").AnchorElementProps, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
3
|
+
export default Button;
|
|
4
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/button/Button/src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,QAAA,MAAM,MAAM,qNAsGX,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { PrimitiveButtonProps, PrimitiveAnchorProps, PrimitiveButtonElementRef, PrimitiveAnchorElementRef } from '../../../primitives';
|
|
3
|
+
import type { SingleAvatarType } from '../../../avatarLayout';
|
|
4
|
+
export type ButtonApperance = 'default' | 'negative';
|
|
5
|
+
export type ButtonPriority = 'primary' | 'secondary' | 'tertiary' | 'minimal';
|
|
6
|
+
export type ButtonType = 'button' | 'submit' | 'reset';
|
|
7
|
+
export type ButtonSize = 'sm' | 'md' | 'lg';
|
|
8
|
+
export type ButtonRefType = PrimitiveButtonElementRef | PrimitiveAnchorElementRef;
|
|
9
|
+
/**
|
|
10
|
+
* Common properties for the Button component.
|
|
11
|
+
*/
|
|
12
|
+
export interface CommonButtonProps {
|
|
13
|
+
/** The HTML element to render */
|
|
14
|
+
as?: 'button' | 'a';
|
|
15
|
+
/** Additional class name(s) to apply to the button */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** Content to be displayed inside the button */
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
/** Whether the button is disabled */
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
href?: string;
|
|
22
|
+
/** Whether the button is in a loading state */
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
/** Whether the button should take up the full width of its container */
|
|
25
|
+
block?: boolean;
|
|
26
|
+
/** Size of the button */
|
|
27
|
+
size?: ButtonSize;
|
|
28
|
+
/**
|
|
29
|
+
* Priority of the button
|
|
30
|
+
* @default 'primary'
|
|
31
|
+
*/
|
|
32
|
+
priority?: ButtonPriority;
|
|
33
|
+
/**
|
|
34
|
+
* Appearance of the button
|
|
35
|
+
* @default 'default'
|
|
36
|
+
*/
|
|
37
|
+
appearance?: ButtonApperance;
|
|
38
|
+
/** Icon to be displayed on the left side of the button */
|
|
39
|
+
iconLeft?: React.ElementType;
|
|
40
|
+
/** Icon to be displayed on the right side of the button */
|
|
41
|
+
iconRight?: React.ElementType;
|
|
42
|
+
/** Media to be displayed on the left side of the button */
|
|
43
|
+
avatars?: SingleAvatarType[];
|
|
44
|
+
/** Optional property to provide component Ref */
|
|
45
|
+
ref?: ButtonRefType;
|
|
46
|
+
}
|
|
47
|
+
export type ButtonElementProps = PrimitiveButtonProps & CommonButtonProps;
|
|
48
|
+
export type AnchorElementProps = PrimitiveAnchorProps & CommonButtonProps;
|
|
49
|
+
export type ButtonProps = ButtonElementProps | AnchorElementProps;
|
|
50
|
+
//# sourceMappingURL=Button.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../../../src/button/Button/src/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,UAAU,CAAC;AACrD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,CAAC;AAC9E,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AACvD,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC5C,MAAM,MAAM,aAAa,GAAG,yBAAyB,GAAG,yBAAyB,CAAC;AAElF;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,iCAAiC;IACjC,EAAE,CAAC,EAAE,QAAQ,GAAG,GAAG,CAAC;IAEpB,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,wEAAwE;IACxE,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,yBAAyB;IACzB,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,eAAe,CAAC;IAE7B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAE7B,2DAA2D;IAC3D,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAE9B,2DAA2D;IAC3D,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAE7B,iDAAiD;IACjD,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG,iBAAiB,CAAC;AAC1E,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG,iBAAiB,CAAC;AAC1E,MAAM,MAAM,WAAW,GAAG,kBAAkB,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/button/Button/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ControlTypeAccent, ControlTypeNegative, ControlTypePositive, PriorityPrimary, PrioritySecondary, PriorityTertiary, SizeExtraSmall, SizeSmall, SizeMedium, SizeLarge } from '
|
|
1
|
+
import { ControlTypeAccent, ControlTypeNegative, ControlTypePositive, PriorityPrimary, PrioritySecondary, PriorityTertiary, SizeExtraSmall, SizeSmall, SizeMedium, SizeLarge } from '../../common';
|
|
2
2
|
/** @deprecated */
|
|
3
3
|
type DeprecatedTypes = 'primary' | 'pay' | 'secondary' | 'danger' | 'link';
|
|
4
4
|
/** @deprecated */
|
|
@@ -7,16 +7,18 @@ type CommonProps = {
|
|
|
7
7
|
block?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
loading?: boolean;
|
|
10
|
+
/** @deprecated */
|
|
10
11
|
type?: ControlTypeAccent | ControlTypeNegative | ControlTypePositive | DeprecatedTypes | null;
|
|
11
12
|
priority?: PriorityPrimary | PrioritySecondary | PriorityTertiary | null;
|
|
12
13
|
size?: SizeSmall | SizeMedium | SizeLarge | DeprecatedSizes;
|
|
14
|
+
htmlType?: 'submit' | 'reset' | 'button';
|
|
13
15
|
};
|
|
14
|
-
type ButtonProps = CommonProps & Omit<React.ComponentPropsWithRef<'button'>, 'type'> & {
|
|
16
|
+
export type ButtonProps = CommonProps & Omit<React.ComponentPropsWithRef<'button'>, 'type'> & {
|
|
15
17
|
as?: 'button';
|
|
16
|
-
htmlType?: 'submit' | 'reset' | 'button';
|
|
17
18
|
};
|
|
18
|
-
type AnchorProps = CommonProps & Omit<React.ComponentPropsWithRef<'a'>, 'type'> & {
|
|
19
|
+
export type AnchorProps = CommonProps & Omit<React.ComponentPropsWithRef<'a'>, 'type'> & {
|
|
19
20
|
as?: 'a';
|
|
21
|
+
href?: string;
|
|
20
22
|
};
|
|
21
23
|
export type Props = ButtonProps | AnchorProps;
|
|
22
24
|
export type ButtonReferenceType = HTMLButtonElement | HTMLAnchorElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/button/LegacyButton/Button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAIL,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,UAAU,EACV,SAAS,EACV,MAAM,cAAc,CAAC;AAOtB,kBAAkB;AAClB,KAAK,eAAe,GAAG,SAAS,GAAG,KAAK,GAAG,WAAW,GAAG,QAAQ,GAAG,MAAM,CAAC;AAE3E,kBAAkB;AAClB,KAAK,eAAe,GAAG,cAAc,CAAC;AAEtC,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB;IAClB,IAAI,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,eAAe,GAAG,IAAI,CAAC;IAC9F,QAAQ,CAAC,EAAE,eAAe,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,IAAI,CAAC;IACzE,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,eAAe,CAAC;IAC5D,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,WAAW,GACnC,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG;IACpD,EAAE,CAAC,EAAE,QAAQ,CAAC;CACf,CAAC;AAEJ,MAAM,MAAM,WAAW,GAAG,WAAW,GACnC,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG;IAC/C,EAAE,CAAC,EAAE,GAAG,CAAC;IACT,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEJ,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,WAAW,CAAC;AAE9C,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;AAExE,QAAA,MAAM,MAAM,uJAkGX,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classMap.d.ts","sourceRoot":"","sources":["../../../../src/button/LegacyButton/classMap.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/button/LegacyButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,YAAY,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/button/LegacyButton/legacyUtils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legacyUtils.d.ts","sourceRoot":"","sources":["../../../../../src/button/LegacyButton/legacyUtils/legacyUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAWpE,KAAK,WAAW,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC;AAO5D,QAAA,MAAM,wBAAwB;;;;;;CAM7B,CAAC;AAIF,KAAK,oBAAoB,GAAG,CAC1B,YAAY,EAAE,IAAI,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,KACxD,GAAG,WAAW,EAAE,GAAG,MAAM,GAAG,IAAI,CAAC;AAEtC,eAAO,MAAM,gBAAgB,EAAE,oBAGb,CAAC;AAEnB,KAAK,wBAAwB,GAAG,CAC9B,gBAAgB,CAAC,EAAE,QAAQ,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,EACpE,YAAY,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,KAChE,GAAG,WAAW,EAAE,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AAElD,eAAO,MAAM,oBAAoB,EAAE,wBAalC,CAAC;AAEF,KAAK,4BAA4B,GAAG,MAAM,OAAO,wBAAwB,CAAC;AAC1E,KAAK,yBAAyB,GAAG,CAAC,MAAM,EAAE;IACxC,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,4BAA4B,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;CAC9E,KAAK,IAAI,CAAC;AACX,eAAO,MAAM,qBAAqB,EAAE,yBAWnC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from './
|
|
2
|
-
export
|
|
1
|
+
export { default } from './src';
|
|
2
|
+
export * from './src';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ButtonProps as LegacyButtonProps } from '../LegacyButton';
|
|
2
|
+
import { ButtonProps as NewButtonProps } from '../Button/src/Button.types';
|
|
3
|
+
type LegacyButtonType = 'accent' | 'negative' | 'positive' | 'primary' | 'pay' | 'secondary' | 'danger' | 'link' | null | undefined;
|
|
4
|
+
type NewButtonType = 'button' | 'submit' | 'reset' | LegacyButtonType | undefined;
|
|
5
|
+
export type ButtonProps = (Omit<LegacyButtonProps, 'ref'> & {
|
|
6
|
+
type?: LegacyButtonType;
|
|
7
|
+
htmlType?: string;
|
|
8
|
+
useNewButton?: false;
|
|
9
|
+
href?: string;
|
|
10
|
+
ref?: React.Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
11
|
+
}) | (Omit<Omit<NewButtonProps, 'type'>, 'ref'> & {
|
|
12
|
+
type?: NewButtonType;
|
|
13
|
+
useNewButton: true;
|
|
14
|
+
href?: string;
|
|
15
|
+
ref?: React.Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
16
|
+
});
|
|
17
|
+
declare const Button: import("react").ForwardRefExoticComponent<(Omit<Omit<LegacyButtonProps, "ref"> & {
|
|
18
|
+
type?: LegacyButtonType;
|
|
19
|
+
htmlType?: string;
|
|
20
|
+
useNewButton?: false;
|
|
21
|
+
href?: string;
|
|
22
|
+
ref?: React.Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
23
|
+
}, "ref"> | Omit<Omit<Omit<NewButtonProps, "type">, "ref"> & {
|
|
24
|
+
type?: NewButtonType;
|
|
25
|
+
useNewButton: true;
|
|
26
|
+
href?: string;
|
|
27
|
+
ref?: React.Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
28
|
+
}, "ref">) & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
29
|
+
export default Button;
|
|
30
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/button/src/Button.tsx"],"names":[],"mappings":"AAEA,OAAqB,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEjF,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE3E,KAAK,gBAAgB,GACjB,QAAQ,GACR,UAAU,GACV,UAAU,GACV,SAAS,GACT,KAAK,GACL,WAAW,GACX,QAAQ,GACR,MAAM,GACN,IAAI,GACJ,SAAS,CAAC;AACd,KAAK,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAElF,MAAM,MAAM,WAAW,GACnB,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,GAAG;IAChC,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;CACxD,CAAC,GACF,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG;IAC3C,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,YAAY,EAAE,IAAI,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAC;CACxD,CAAC,CAAC;AAkDP,QAAA,MAAM,MAAM;WA7DC,gBAAgB;eACZ,MAAM;mBACF,KAAK;WACb,MAAM;UACP,KAAK,CAAC,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;;WAG/C,aAAa;kBACN,IAAI;WACX,MAAM;UACP,KAAK,CAAC,GAAG,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;kFAkF1D,CAAC;AAIH,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/button/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PrimitiveAnchorProps } from '../primitives';
|
|
2
2
|
import { LinkLarge, LinkDefault } from '../common';
|
|
3
|
-
export type Props =
|
|
3
|
+
export type Props = PrimitiveAnchorProps & {
|
|
4
4
|
type?: LinkLarge | LinkDefault;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/link/Link.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/link/Link.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAInD,MAAM,MAAM,KAAK,GAAG,oBAAoB,GAAG;IAAE,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;CAAE,CAAC;AAE9E;;;;GAIG;AACH,QAAA,MAAM,IAAI,4FASP,KAAK,gCA0BP,CAAC;AAEF,eAAe,IAAI,CAAC"}
|