@salesforcedevs/arch-components 1.20.17-alpha14 → 1.20.17-alpha16

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.
Files changed (147) hide show
  1. package/lwc.config.json +38 -1
  2. package/package.json +1 -1
  3. package/src/assets/css/arch-variables.css +512 -0
  4. package/src/modules/arch/badge/badge.css +22 -0
  5. package/src/modules/arch/badge/badge.html +5 -0
  6. package/src/modules/arch/badge/badge.ts +9 -0
  7. package/src/modules/arch/button/button.css +1 -0
  8. package/src/modules/arch/button/button.html +20 -0
  9. package/src/modules/arch/button/button.ts +67 -0
  10. package/src/modules/arch/buttonLink/buttonLink.css +1 -0
  11. package/src/modules/arch/buttonLink/buttonLink.html +19 -0
  12. package/src/modules/arch/buttonLink/buttonLink.stories.js +34 -0
  13. package/src/modules/arch/buttonLink/buttonLink.ts +8 -0
  14. package/src/modules/arch/buttonStyles/buttonStyles.css +220 -0
  15. package/src/modules/arch/card/card.css +128 -0
  16. package/src/modules/arch/card/card.html +85 -0
  17. package/src/modules/arch/card/card.ts +277 -0
  18. package/src/modules/arch/cardBase/cardBase.css +11 -0
  19. package/src/modules/arch/cardBase/cardBase.html +2 -0
  20. package/src/modules/arch/cardGridA/cardGridA.css +11 -0
  21. package/src/modules/arch/cardGridA/cardGridA.html +21 -0
  22. package/src/modules/arch/cardGridA/cardGridA.stories.js +118 -0
  23. package/src/modules/arch/cardGridA/cardGridA.ts +24 -0
  24. package/src/modules/arch/cardGridC/cardGridC.css +24 -0
  25. package/src/modules/arch/cardGridC/cardGridC.html +22 -0
  26. package/src/modules/arch/cardGridC/cardGridC.stories.js +51 -0
  27. package/src/modules/arch/cardGridC/cardGridC.ts +11 -0
  28. package/src/modules/arch/cardGridD/cardGridD.css +17 -0
  29. package/src/modules/arch/cardGridD/cardGridD.html +20 -0
  30. package/src/modules/arch/cardGridD/cardGridD.stories.js +43 -0
  31. package/src/modules/arch/cardGridD/cardGridD.ts +7 -0
  32. package/src/modules/arch/cardNew/cardNew.css +31 -0
  33. package/src/modules/arch/cardNew/cardNew.html +32 -0
  34. package/src/modules/arch/cardNew/cardNew.ts +66 -0
  35. package/src/modules/arch/children/children.html +2 -0
  36. package/src/modules/arch/children/children.ts +31 -0
  37. package/src/modules/arch/color/color.ts +59 -0
  38. package/src/modules/arch/content/__fixtures__/index.ts +884 -0
  39. package/src/modules/arch/content/content.css +643 -0
  40. package/src/modules/arch/content/content.html +65 -0
  41. package/src/modules/arch/content/content.stories.js +21 -0
  42. package/src/modules/arch/content/content.ts +169 -0
  43. package/src/modules/arch/contentIcon/contentIcon.css +48 -0
  44. package/src/modules/arch/contentIcon/contentIcon.html +15 -0
  45. package/src/modules/arch/contentIcon/contentIcon.stories.js +130 -0
  46. package/src/modules/arch/contentIcon/contentIcon.ts +68 -0
  47. package/src/modules/arch/context/context.ts +1 -1
  48. package/src/modules/arch/contextAdapter/constants.ts +1 -0
  49. package/src/modules/arch/contextAdapter/contextAdapter.html +1 -0
  50. package/src/modules/arch/contextAdapter/contextAdapter.ts +54 -0
  51. package/src/modules/arch/debounce/debounce.ts +32 -0
  52. package/src/modules/arch/dialog/dialog.ts +154 -0
  53. package/src/modules/arch/dialogStyles/dialogStyles.css +90 -0
  54. package/src/modules/arch/effectAdapter/effectAdapter.ts +2 -0
  55. package/src/modules/arch/explorer/explorer.css +301 -0
  56. package/src/modules/arch/explorer/explorer.html +418 -0
  57. package/src/modules/arch/explorer/explorer.ts +718 -0
  58. package/src/modules/arch/explorer/types.d.ts +60 -0
  59. package/src/modules/arch/fetch/fetch.ts +55 -0
  60. package/src/modules/arch/footerMfe/footerMfe.html +3 -0
  61. package/src/modules/arch/footerMfe/footerMfe.ts +19 -0
  62. package/src/modules/arch/gallery/gallery.css +365 -0
  63. package/src/modules/arch/gallery/gallery.html +71 -0
  64. package/src/modules/arch/gallery/gallery.ts +366 -0
  65. package/src/modules/arch/gallery/types.d.ts +35 -0
  66. package/src/modules/arch/heading/heading.css +1 -0
  67. package/src/modules/arch/heading/heading.html +9 -0
  68. package/src/modules/arch/heading/heading.ts +36 -0
  69. package/src/modules/arch/helpers/helpers.ts +141 -0
  70. package/src/modules/arch/heroA/heroA.css +116 -0
  71. package/src/modules/arch/heroA/heroA.html +28 -0
  72. package/src/modules/arch/heroA/heroA.stories.js +60 -0
  73. package/src/modules/arch/heroA/heroA.ts +53 -0
  74. package/src/modules/arch/heroB/heroB.css +79 -0
  75. package/src/modules/arch/heroB/heroB.html +27 -0
  76. package/src/modules/arch/heroB/heroB.stories.js +55 -0
  77. package/src/modules/arch/heroB/heroB.ts +26 -0
  78. package/src/modules/arch/i18n/i18n.ts +78 -0
  79. package/src/modules/arch/icon/icon.css +28 -0
  80. package/src/modules/arch/icon/icon.html +17 -0
  81. package/src/modules/arch/icon/icon.stories.js +26 -0
  82. package/src/modules/arch/icon/icon.ts +92 -0
  83. package/src/modules/arch/instrumentation/instrumentation.css +1 -0
  84. package/src/modules/arch/instrumentation/instrumentation.html +1 -0
  85. package/src/modules/arch/instrumentation/instrumentation.ts +113 -0
  86. package/src/modules/arch/labels/helpers.ts +25 -0
  87. package/src/modules/arch/labels/pointHelpers.ts +47 -0
  88. package/src/modules/arch/labels/timeHelpers.ts +182 -0
  89. package/src/modules/arch/labels/types.d.ts +5 -0
  90. package/src/modules/arch/logger/logger.ts +33 -0
  91. package/src/modules/arch/menu/menu.ts +260 -0
  92. package/src/modules/arch/overflow/overflow.ts +71 -0
  93. package/src/modules/arch/page/page.css +3 -0
  94. package/src/modules/arch/page/page.html +3 -0
  95. package/src/modules/arch/page/page.stories.js +19 -0
  96. package/src/modules/arch/page/page.ts +3 -0
  97. package/src/modules/arch/pageHeaderA/pageHeaderA.css +82 -0
  98. package/src/modules/arch/pageHeaderA/pageHeaderA.html +24 -0
  99. package/src/modules/arch/pageHeaderA/pageHeaderA.stories.js +25 -0
  100. package/src/modules/arch/pageHeaderA/pageHeaderA.ts +51 -0
  101. package/src/modules/arch/pill/pill.css +70 -0
  102. package/src/modules/arch/pill/pill.html +17 -0
  103. package/src/modules/arch/pill/pill.ts +34 -0
  104. package/src/modules/arch/polling-request.ts +97 -0
  105. package/src/modules/arch/reflectedElement/reflectedElement.html +2 -0
  106. package/src/modules/arch/reflectedElement/reflectedElement.ts +2 -0
  107. package/src/modules/arch/reset/reset.css +39 -0
  108. package/src/modules/arch/searchList/searchList.css +120 -0
  109. package/src/modules/arch/searchList/searchList.html +46 -0
  110. package/src/modules/arch/searchList/searchList.ts +53 -0
  111. package/src/modules/arch/sectionA/sectionA.css +64 -0
  112. package/src/modules/arch/sectionA/sectionA.html +21 -0
  113. package/src/modules/arch/sectionA/sectionA.stories.js +25 -0
  114. package/src/modules/arch/sectionA/sectionA.ts +27 -0
  115. package/src/modules/arch/select/select.css +40 -0
  116. package/src/modules/arch/select/select.html +24 -0
  117. package/src/modules/arch/select/select.ts +64 -0
  118. package/src/modules/arch/socialShare/socialShare.css +50 -0
  119. package/src/modules/arch/socialShare/socialShare.html +56 -0
  120. package/src/modules/arch/socialShare/socialShare.ts +29 -0
  121. package/src/modules/arch/spinner/spinner.css +195 -0
  122. package/src/modules/arch/spinner/spinner.html +9 -0
  123. package/src/modules/arch/spinner/spinner.ts +15 -0
  124. package/src/modules/arch/styles/styles.css +24 -0
  125. package/src/modules/arch/summary/summary.css +134 -0
  126. package/src/modules/arch/summary/summary.html +71 -0
  127. package/src/modules/arch/summary/summary.stories.js +163 -0
  128. package/src/modules/arch/summary/summary.ts +96 -0
  129. package/src/modules/arch/tab/tab.css +3 -0
  130. package/src/modules/arch/tab/tab.html +5 -0
  131. package/src/modules/arch/tab/tab.ts +46 -0
  132. package/src/modules/arch/tabset/tabset.css +112 -0
  133. package/src/modules/arch/tabset/tabset.html +62 -0
  134. package/src/modules/arch/tabset/tabset.ts +244 -0
  135. package/src/modules/arch/testutils.ts +118 -0
  136. package/src/modules/arch/threeCardGrid/threeCardGrid.css +6 -0
  137. package/src/modules/arch/threeCardGrid/threeCardGrid.html +5 -0
  138. package/src/modules/arch/threeCardGrid/threeCardGrid.ts +3 -0
  139. package/src/modules/arch/track/track.ts +23 -0
  140. package/src/modules/arch/trailhead.ts +120 -0
  141. package/src/modules/arch/types.d.ts +1 -0
  142. package/src/modules/arch/useEffectAttr.ts +16 -0
  143. package/src/modules/arch/utils/utils.ts +20 -0
  144. package/src/modules/arch/withState.ts +21 -0
  145. package/src/modules/arch/xsfMfeEvents/xsfMfeEvents.html +1 -0
  146. package/src/modules/arch/xsfMfeEvents/xsfMfeEvents.ts +47 -0
  147. package/src/modules/arch/slot/slot.ts +0 -21
@@ -0,0 +1,64 @@
1
+ @import "arch/reset";
2
+
3
+ .section {
4
+ padding: var(--arch-spacing-20) var(--arch-spacing-6);
5
+ }
6
+
7
+ .section-white {
8
+ background-color: var(--arch-color-white);
9
+ color: var(--arch-color-black);
10
+ }
11
+
12
+ .section-dark {
13
+ background-color: var(--arch-color-theme-dark);
14
+ color: var(--arch-color-white);
15
+ }
16
+
17
+ .section-light {
18
+ background-color: var(--arch-color-blue-ninety-five);
19
+ color: var(--arch-color-black);
20
+ }
21
+
22
+ .section-blue {
23
+ background-color: var(--arch-color-theme-light);
24
+ color: var(--arch-color-black);
25
+ }
26
+
27
+ .section-bright {
28
+ background-color: var(--arch-color-theme-bright);
29
+ color: var(--arch-color-black);
30
+ }
31
+
32
+ .content-container {
33
+ margin: auto;
34
+ max-width: 600px;
35
+ text-align: center;
36
+ padding-bottom: var(--arch-spacing-4);
37
+ }
38
+
39
+ .content {
40
+ align-items: center;
41
+ display: flex;
42
+ flex-direction: column;
43
+ margin: auto;
44
+ max-width: 1280px;
45
+ }
46
+
47
+ .title {
48
+ font-size: var(--arch-font-size-2xl);
49
+ margin-bottom: var(--arch-spacing-2);
50
+ }
51
+
52
+ .description {
53
+ font-size: var(--arch-font-size-lg);
54
+ line-height: 1.5;
55
+ margin-bottom: var(--arch-spacing-6);
56
+ }
57
+
58
+ .slot {
59
+ align-self: stretch;
60
+ }
61
+
62
+ .cta {
63
+ margin-top: var(--arch-spacing-6);
64
+ }
@@ -0,0 +1,21 @@
1
+ <template>
2
+ <section class={sectionClassName}>
3
+ <div class="content">
4
+ <div class="content-container">
5
+ <h2 if:true={title} class="title">{title}</h2>
6
+ <p if:true={description} class="description">{description}</p>
7
+ </div>
8
+ <div class="slot">
9
+ <slot></slot>
10
+ </div>
11
+ <arch-button-link
12
+ href={ctaHref}
13
+ target={ctaTarget}
14
+ if:true={ctaHref}
15
+ class="cta"
16
+ >
17
+ {ctaTitle}
18
+ </arch-button-link>
19
+ </div>
20
+ </section>
21
+ </template>
@@ -0,0 +1,25 @@
1
+ import { html } from "lit-html";
2
+
3
+ export default {
4
+ title: "arch/arch-section-a",
5
+ component: "sb-arch-section-a"
6
+ };
7
+
8
+ // prettier-ignore
9
+ const createStyles = () => html `
10
+ <style>
11
+ sb-arch-section-a {
12
+ display: block;
13
+ }
14
+ </style>`;
15
+
16
+ // prettier-ignore
17
+ export const Base = () => html` ${createStyles()}
18
+ <sb-arch-section-a
19
+ description="Build apps faster, integrate easier, make apps smarter"
20
+ title="Explore Content"
21
+ cta-href="/"
22
+ cta-title="Explore"
23
+ >
24
+ </sb-arch-section-a>
25
+ `;
@@ -0,0 +1,27 @@
1
+ import { api, LightningElement } from 'lwc';
2
+ import { waitForPageSettled } from 'arch/utils';
3
+
4
+ export default class extends LightningElement {
5
+ @api background: string | null = null;
6
+ @api description: string | null = null;
7
+ @api title: string = '';
8
+ @api ctaHref: string | null = null;
9
+ @api ctaTitle: string | null = null;
10
+ @api ctaTarget: string | null = null;
11
+
12
+ connectedCallback() {
13
+ const urlHash = window.location.hash.slice(1);
14
+ if (this.id && this.id === urlHash) {
15
+ // We have to restore the natural browser behavior of
16
+ // jumping to anchors because when DOMContentLoaded fires
17
+ // the page won't be fully rendered yet
18
+ waitForPageSettled().then(() => {
19
+ this.template.host.scrollIntoView();
20
+ });
21
+ }
22
+ }
23
+
24
+ private get sectionClassName() {
25
+ return `section section--${this.background}`;
26
+ }
27
+ }
@@ -0,0 +1,40 @@
1
+ @import "arch/reset";
2
+ @import "arch/styles";
3
+
4
+ .select-container {
5
+ position: relative;
6
+ }
7
+
8
+ select {
9
+ appearance: none;
10
+ cursor: pointer;
11
+ font-size: var(--arch-font-size-sm);
12
+ background-color: var(--arch-color-white);
13
+ border: 1px solid var(--arch-color-fog);
14
+ border-radius: var(--arch-radius-md);
15
+ width: 100%;
16
+ transition: border 0.1s linear, background-color 0.1s linear;
17
+ height: var(--arch-font-size-6xl);
18
+ padding-left: var(--arch-spacing-3);
19
+ padding-right: var(--arch-spacing-10);
20
+ }
21
+
22
+ .select-container-icon select {
23
+ padding-left: var(--arch-spacing-10);
24
+ }
25
+
26
+ .select-icon {
27
+ position: absolute;
28
+ top: 50%;
29
+ transform: translateY(-50%);
30
+ color: var(--arch-color-meteorite);
31
+ pointer-events: none;
32
+ }
33
+
34
+ .select-icon-left {
35
+ left: var(--arch-spacing-3);
36
+ }
37
+
38
+ .select-icon-right {
39
+ right: var(--arch-spacing-3);
40
+ }
@@ -0,0 +1,24 @@
1
+ <template>
2
+ <label class={labelClassName} for="select">{labelText}</label>
3
+ <div class={containerClassName}>
4
+ <arch-icon
5
+ class="select-icon select-icon--left"
6
+ if:true={iconSymbol}
7
+ size="medium"
8
+ sprite={iconSprite}
9
+ symbol={iconSymbol}
10
+ ></arch-icon>
11
+ <select
12
+ name="arch-select"
13
+ id={labelText}
14
+ lwc:dom="manual"
15
+ onchange={handleChange}
16
+ value={value}
17
+ ></select>
18
+ <arch-icon
19
+ class="select-icon select-icon--right"
20
+ size="small"
21
+ symbol="chevrondown"
22
+ ></arch-icon>
23
+ </div>
24
+ </template>
@@ -0,0 +1,64 @@
1
+ import { wire, api } from "lwc";
2
+ import classnames from "classnames";
3
+ import { ReflectedElement } from "arch/reflectedElement";
4
+ import { EffectAdapter } from "arch/effectAdapter";
5
+ import { sendInteractionEvent, InteractionEventTypes } from "arch/helpers";
6
+
7
+ export default class extends ReflectedElement {
8
+ @api assistiveText: string | null = null;
9
+ @api iconSymbol: string | null = null;
10
+ @api iconSprite: string = "utility";
11
+ @api label: string | null = null;
12
+ @api value: string | null = null;
13
+
14
+ private get containerClassName() {
15
+ return classnames("select-container", {
16
+ "select-container--icon": this.iconSymbol
17
+ });
18
+ }
19
+
20
+ private get labelText() {
21
+ return this.label || this.assistiveText;
22
+ }
23
+
24
+ private get labelClassName() {
25
+ return classnames(
26
+ {
27
+ "arch-helper_field-label": this.label
28
+ },
29
+ {
30
+ "arch-helper_assistive-text": !this.label && this.assistiveText
31
+ }
32
+ );
33
+ }
34
+
35
+ private get options() {
36
+ return Array.from(this.contentElement.querySelectorAll("option")).map(
37
+ (n) => n.value
38
+ );
39
+ }
40
+
41
+ private handleChange(event) {
42
+ this.dispatchEvent(
43
+ new CustomEvent("change", {
44
+ detail: this.contentElement.value
45
+ })
46
+ );
47
+ sendInteractionEvent(
48
+ "Select Change",
49
+ InteractionEventTypes.DROPDOWN_CHANGE,
50
+ event
51
+ );
52
+ }
53
+
54
+ get contentElement(): HTMLSelectElement {
55
+ return this.template.querySelector("select")! as HTMLSelectElement;
56
+ }
57
+
58
+ // eslint-disable-next-line @lwc/lwc/no-unknown-wire-adapters
59
+ @wire(EffectAdapter, { value: "$value" })
60
+ innerHTMLSetCallback() {
61
+ this.contentElement.value =
62
+ this.value == null ? this.options[0] : this.value;
63
+ }
64
+ }
@@ -0,0 +1,50 @@
1
+ @import "arch/reset";
2
+
3
+ :host {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ }
8
+
9
+ .actions {
10
+ align-items: center;
11
+ display: grid;
12
+ grid-auto-flow: column;
13
+ grid-column-gap: var(--arch-spacing-2);
14
+ }
15
+
16
+ @media screen and (max-width: 800px) {
17
+ .actions {
18
+ width: 120px;
19
+ }
20
+ }
21
+
22
+ .actions a {
23
+ margin-right: 1rem;
24
+ }
25
+
26
+ .actions a:last-of-type {
27
+ margin-right: 0;
28
+ }
29
+
30
+ .actions svg {
31
+ height: 1rem;
32
+ }
33
+
34
+ .actions svg.fill {
35
+ fill: var(--arch-color-meteorite);
36
+ }
37
+
38
+ .actions svg.fill:hover {
39
+ fill: var(--arch-color-brand);
40
+ }
41
+
42
+ .actions svg.stroke {
43
+ stroke: var(--arch-color-meteorite);
44
+ fill: var(--arch-color-meteorite);
45
+ }
46
+
47
+ .actions svg.stroke:hover {
48
+ stroke: var(--arch-color-brand);
49
+ fill: var(--arch-color-brand);
50
+ }
@@ -0,0 +1,56 @@
1
+ <template>
2
+ <div class="actions">
3
+ <a
4
+ onclick={handleClick}
5
+ href={shareTwitter}
6
+ target="_blank"
7
+ rel="noopener"
8
+ id="Share-on-Twitter"
9
+ name="Share on Twitter"
10
+ aria-label="Share on Twitter (opens new tab)"
11
+ class="fill"
12
+ ><svg
13
+ viewBox="0 0 18 14"
14
+ class="fill"
15
+ xmlns="http://www.w3.org/2000/svg"
16
+ >
17
+ <path
18
+ d="M17.308 2.325a7.333 7.333 0 01-2.041.52 3.396 3.396 0 001.565-1.836 7.374 7.374 0 01-2.258.808c-.33-.33-.73-.595-1.176-.775a3.767 3.767 0 00-1.412-.274 3.75 3.75 0 00-2.518.995A3.218 3.218 0 008.43 4.108c.002.254.033.507.094.755A10.658 10.658 0 014.46 3.847a9.912 9.912 0 01-3.256-2.471 3.128 3.128 0 00-.39 2.419c.205.823.738 1.544 1.494 2.017A3.678 3.678 0 01.72 5.39a.124.124 0 000 .053c.005.767.294 1.509.82 2.101.525.592 1.254 1 2.065 1.153-.326.071-.66.1-.995.087a4.39 4.39 0 01-.671 0 3.36 3.36 0 001.265 1.638c.594.412 1.31.645 2.052.666a7.475 7.475 0 01-4.413 1.423 8.92 8.92 0 01-.844-.08 10.571 10.571 0 005.445 1.49c6.526 0 10.096-5.057 10.096-9.446v-.434a6.933 6.933 0 001.767-1.717z"
19
+ ></path></svg>
20
+ </a>
21
+ <a
22
+ onclick={handleClick}
23
+ href={shareLinkedIn}
24
+ target="_blank"
25
+ rel="noopener"
26
+ id="Share-on-LinkedIn"
27
+ name="Share on LinkedIn"
28
+ aria-label="Share on LinkedIn (opens new tab)"
29
+ ><svg
30
+ viewBox="0 0 16 17"
31
+ class="fill"
32
+ xmlns="http://www.w3.org/2000/svg"
33
+ >
34
+ <path
35
+ d="M15.923 10.187v6.428H12.51v-5.998c0-1.506-.493-2.535-1.729-2.535-.943 0-1.504.693-1.75 1.364-.09.24-.114.573-.114.908v6.261H5.503s.046-10.158 0-11.21h3.414v1.588l-.023.037h.023v-.037c.453-.762 1.263-1.852 3.076-1.852 2.246 0 3.93 1.602 3.93 5.046zM1.932 0C.764 0 0 .837 0 1.937c0 1.076.742 1.938 1.887 1.938h.022c1.19 0 1.931-.862 1.931-1.938C3.818.837 3.1 0 1.932 0zM.202 16.615h3.413V5.405H.203v11.21z"
36
+ ></path></svg>
37
+ </a>
38
+ <a
39
+ onclick={handleClick}
40
+ href={shareFacebook}
41
+ target="_blank"
42
+ rel="noopener"
43
+ id="Share-on-Facebook"
44
+ name="Share on Facebook"
45
+ aria-label="Share on Facebook (opens new tab)"
46
+ ><svg
47
+ viewBox="0 0 9 18"
48
+ class="stroke"
49
+ xmlns="http://www.w3.org/2000/svg"
50
+ >
51
+ <path
52
+ d="M6.115 0c-2.173 0-3.66 1.5-3.66 4.23v2.363H0v3.195h2.455V18h2.926V9.788h2.45l.37-3.195H5.38V4.545c0-.922.236-1.545 1.42-1.545h1.507V.128A18.2 18.2 0 006.115 0z"
53
+ ></path></svg>
54
+ </a>
55
+ </div>
56
+ </template>
@@ -0,0 +1,29 @@
1
+ import { LightningElement, api } from 'lwc';
2
+ import { sendInteractionEvent, InteractionEventTypes } from 'arch/helpers';
3
+
4
+ export default class extends LightningElement {
5
+ @api title: string | null = '';
6
+ @api url: string = window.location.href;
7
+
8
+ private get shareTwitter() {
9
+ return `https://twitter.com/intent/tweet/?text=${encodeURIComponent(
10
+ this.title
11
+ )}&url=${encodeURIComponent(this.url)}&via=SalesforceArchs`;
12
+ }
13
+
14
+ private get shareLinkedIn() {
15
+ return `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURI(
16
+ this.url
17
+ )}`;
18
+ }
19
+
20
+ private get shareFacebook() {
21
+ return `https://www.facebook.com/sharer/sharer.php?u=${encodeURI(
22
+ this.url
23
+ )}`;
24
+ }
25
+ handleClick(e){
26
+ sendInteractionEvent('Social Share Click', InteractionEventTypes.CLICK, e, e.currentTarget);
27
+
28
+ }
29
+ }
@@ -0,0 +1,195 @@
1
+ :host {
2
+ display: block;
3
+
4
+ --offset: 500ms;
5
+ --duration: 1000ms;
6
+ }
7
+
8
+ .spinner-xx-small {
9
+ --base-size: 0.5rem;
10
+ --dot-size: 0.125rem;
11
+ --distance: 0.125rem;
12
+ }
13
+
14
+ .spinner-x-small {
15
+ --base-size: 1rem;
16
+ --dot-size: 0.25rem;
17
+ --distance: 0.25rem;
18
+ }
19
+
20
+ .spinner-small {
21
+ --base-size: 1.25rem;
22
+ --dot-size: 0.25rem;
23
+ --distance: 0.375rem;
24
+ }
25
+
26
+ .spinner-medium {
27
+ --base-size: 2rem;
28
+ --dot-size: 0.5rem;
29
+ --distance: 0.5rem;
30
+ }
31
+
32
+ .spinner-large {
33
+ --base-size: 2.75rem;
34
+ --dot-size: 0.625rem;
35
+ --distance: 0.5rem;
36
+ }
37
+
38
+ .spinner-base {
39
+ color: var(--arch-color-granite);
40
+ }
41
+
42
+ .spinner-inverse {
43
+ color: var(--arch-color-white);
44
+ }
45
+
46
+ .spinner-brand {
47
+ color: var(--arch-color-brand);
48
+ }
49
+
50
+ .spinner {
51
+ position: relative;
52
+ width: calc(var(--base-size) + var(--dot-size) * 2 + var(--distance));
53
+ height: calc(var(--base-size) + var(--dot-size) * 2 + var(--distance));
54
+ }
55
+
56
+ .assistive-text {
57
+ position: absolute !important;
58
+ margin: -1px !important;
59
+ border: 0 !important;
60
+ padding: 0 !important;
61
+ width: 1px !important;
62
+ height: 1px !important;
63
+ overflow: hidden !important;
64
+ clip: rect(0 0 0 0) !important;
65
+ text-transform: none !important;
66
+ white-space: nowrap !important;
67
+ }
68
+
69
+ .spinner-dots {
70
+ position: absolute;
71
+ top: 50%;
72
+ left: 50%;
73
+ width: var(--base-size);
74
+ transform: translate(-50%, 0);
75
+ }
76
+
77
+ .spinner-dots,
78
+ .spinner-dot-a,
79
+ .spinner-dot-b {
80
+ transform-origin: 50% 50%;
81
+ will-change: transform;
82
+ }
83
+
84
+ .spinner-dot-a,
85
+ .spinner-dot-b {
86
+ position: absolute;
87
+ top: 0;
88
+ left: 0;
89
+ width: 100%;
90
+ }
91
+
92
+ .spinner-dots::before,
93
+ .spinner-dots::after,
94
+ .spinner-dot-a::before,
95
+ .spinner-dot-b::before,
96
+ .spinner-dot-a::after,
97
+ .spinner-dot-b::after {
98
+ content: "";
99
+ position: absolute;
100
+ background: currentcolor;
101
+ border-radius: 100px;
102
+ animation-duration: var(--duration);
103
+ animation-iteration-count: infinite;
104
+ transform: translate3d(0, 0, 0);
105
+ width: var(--dot-size);
106
+ height: var(--dot-size);
107
+ }
108
+
109
+ .spinner-dots::before,
110
+ .spinner-dot-a::before,
111
+ .spinner-dot-b::before {
112
+ animation-name: dots-bounce-before-medium;
113
+ top: calc(var(--dot-size) / 2 * -1);
114
+ left: calc(var(--dot-size) / 2 * -1);
115
+ }
116
+
117
+ .spinner-dots::after,
118
+ .spinner-dot-a::after,
119
+ .spinner-dot-b::after {
120
+ animation-name: dots-bounce-after-medium;
121
+ top: calc(var(--dot-size) / 2 * -1);
122
+ right: calc(var(--dot-size) / 2 * -1);
123
+ }
124
+
125
+ .spinner-dot-a {
126
+ transform: rotate(60deg);
127
+ }
128
+
129
+ .spinner-dot-b {
130
+ transform: rotate(120deg);
131
+ }
132
+
133
+ .spinner-dots::before {
134
+ animation-delay: calc(-83.3333ms - var(--offset));
135
+ }
136
+
137
+ .spinner-dot-a::before {
138
+ animation-delay: calc(83.3333ms - var(--offset));
139
+ }
140
+
141
+ .spinner-dot-b::before {
142
+ animation-delay: calc(250ms - var(--offset));
143
+ }
144
+
145
+ .spinner-dots::after {
146
+ animation-delay: calc(416.6667ms - var(--offset));
147
+ }
148
+
149
+ .spinner-dot-a::after {
150
+ animation-delay: calc(583.3333ms - var(--offset));
151
+ }
152
+
153
+ .spinner-dot-b::after {
154
+ animation-delay: calc(750ms - var(--offset));
155
+ }
156
+
157
+ @keyframes dots-bounce-before-medium {
158
+ 0% {
159
+ transform: translate3d(0, 0, 0);
160
+ }
161
+
162
+ 60% {
163
+ transform: translate3d(0, 0, 0);
164
+ animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);
165
+ }
166
+
167
+ 80% {
168
+ transform: translate3d(calc(var(--distance) * -1), 0, 0);
169
+ animation-timing-function: cubic-bezier(0, 1.11, 0.7, 1.43);
170
+ }
171
+
172
+ 100% {
173
+ transform: translate3d(0, 0, 0);
174
+ }
175
+ }
176
+
177
+ @keyframes dots-bounce-after-medium {
178
+ 0% {
179
+ transform: translate3d(0, 0, 0);
180
+ }
181
+
182
+ 60% {
183
+ transform: translate3d(0, 0, 0);
184
+ animation-timing-function: cubic-bezier(0.55, 0.085, 0.68, 0.53);
185
+ }
186
+
187
+ 80% {
188
+ transform: translate3d(var(--distance), 0, 0);
189
+ animation-timing-function: cubic-bezier(0, 1.11, 0.7, 1.43);
190
+ }
191
+
192
+ 100% {
193
+ transform: translateX(0);
194
+ }
195
+ }
@@ -0,0 +1,9 @@
1
+ <template>
2
+ <div role="status" class={className}>
3
+ <span class="assistive-text">Loading</span>
4
+ <div class="spinner-dots">
5
+ <div class="spinner-dot-a"></div>
6
+ <div class="spinner-dot-b"></div>
7
+ </div>
8
+ </div>
9
+ </template>
@@ -0,0 +1,15 @@
1
+ import { LightningElement, api } from 'lwc';
2
+
3
+ const DEFAULT_SIZE = 'medium';
4
+ const DEFAULT_VARIANT = 'base';
5
+
6
+ export default class extends LightningElement {
7
+ @api size: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' =
8
+ DEFAULT_SIZE;
9
+
10
+ @api variant: 'base' | 'brand' | 'inverse' = DEFAULT_VARIANT;
11
+
12
+ private get className() {
13
+ return `spinner spinner--${this.size} spinner--${this.variant}`;
14
+ }
15
+ }
@@ -0,0 +1,24 @@
1
+ .arch-helper_assistive-text {
2
+ position: absolute !important;
3
+ margin: -1px !important;
4
+ border: 0 !important;
5
+ padding: 0 !important;
6
+ width: 1px !important;
7
+ height: 1px !important;
8
+ overflow: hidden !important;
9
+ clip: rect(0 0 0 0) !important;
10
+ text-transform: none !important;
11
+ white-space: nowrap !important;
12
+ }
13
+
14
+ .arch-helper_field-label {
15
+ overflow-wrap: break-word;
16
+ word-wrap: break-word;
17
+ hyphens: auto;
18
+ display: block;
19
+ padding-right: var(--arch-spacing-2);
20
+ padding-top: var(--arch-spacing-2);
21
+ color: var(--arch-color-meteorite);
22
+ font-size: var(--arch-font-size-xs);
23
+ margin-bottom: var(--arch-spacing-2);
24
+ }