luna-one 3.1.594 → 3.1.596

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. package/README.md +2315 -2315
  2. package/dist/global-styles/content/typography.scss +140 -140
  3. package/dist/global-styles/fonts/benton.scss +113 -113
  4. package/dist/global-styles/global-terra.scss +10 -10
  5. package/dist/global-styles/global-vars.scss +599 -599
  6. package/dist/global-styles/layout/_css-grid.scss +20 -20
  7. package/dist/global-styles/layout/_media-queries.scss +35 -35
  8. package/dist/global-styles/layout/_normalize.scss +340 -340
  9. package/dist/global-styles/layout/_reset.scss +13 -13
  10. package/dist/global-styles/mixins/_box-shadow.scss +6 -6
  11. package/dist/global-styles/mixins/_mixins.scss +5 -5
  12. package/dist/global-styles/mixins/_organism-padding-hack.scss +7 -7
  13. package/dist/global-styles/mixins/_typography.scss +102 -102
  14. package/dist/global-styles/mixins/_yiq.scss +50 -50
  15. package/dist/global-styles/mixins/_z-index.scss +3 -3
  16. package/dist/global-styles/terra.scss +15 -15
  17. package/dist/global-styles/utilities/_box-shadow.scss +8 -8
  18. package/dist/global-styles/utilities/_display.scss +48 -48
  19. package/dist/global-styles/utilities/_font-family.scss +15 -15
  20. package/dist/global-styles/utilities/_parallax.scss +23 -23
  21. package/dist/global-styles/utilities/_text-align.scss +24 -24
  22. package/dist/luna/components/2x2/2x2.scss +915 -915
  23. package/dist/luna/components/2x2/2x2Documentation.mdx +77 -77
  24. package/dist/luna/components/Accordion/Accordion.scss +154 -154
  25. package/dist/luna/components/Accordion/AccordionDocumentation.mdx +45 -45
  26. package/dist/luna/components/AdminCategoryData/AdminCategoryData.scss +81 -81
  27. package/dist/luna/components/AdminCategoryData/CategoryTranslationData.js +4 -4
  28. package/dist/luna/components/AdminProductData/AdminProductData.js +4 -4
  29. package/dist/luna/components/AdminProductData/AdminProductData.scss +75 -75
  30. package/dist/luna/components/BlockListItems/BlockListItems.scss +285 -285
  31. package/dist/luna/components/BlockListItems/BlockListItemsDocumentation.mdx +339 -339
  32. package/dist/luna/components/BrowserSupportBanner/BrowserSupportBanner.scss +6 -6
  33. package/dist/luna/components/CTAButtons/CTAButtons.scss +19 -19
  34. package/dist/luna/components/CTAButtons/CTAButtonsDocumentation.mdx +33 -33
  35. package/dist/luna/components/Carousel/Carousel.scss +155 -155
  36. package/dist/luna/components/Carousel/CarouselDocumentation.mdx +161 -161
  37. package/dist/luna/components/ComparisonTable/ComparisonTable.scss +331 -331
  38. package/dist/luna/components/ComparisonTable/ComparisonTableDocumentation.mdx +159 -159
  39. package/dist/luna/components/CtaWithHeader/CTAHeaderTextDocumentation.mdx +45 -45
  40. package/dist/luna/components/CtaWithHeader/CtaWithHeader.scss +324 -324
  41. package/dist/luna/components/DataPoint/DataPoint.scss +170 -170
  42. package/dist/luna/components/DataPoint/DataPointDocumentation.mdx +40 -40
  43. package/dist/luna/components/EventCard/EventCard.js +3 -3
  44. package/dist/luna/components/EventCard/EventCard.scss +134 -134
  45. package/dist/luna/components/EventCard/EventCardDocumentation.mdx +46 -46
  46. package/dist/luna/components/FilterHero/FilterHero.scss +80 -80
  47. package/dist/luna/components/FilterSection/FilterSection.scss +175 -175
  48. package/dist/luna/components/Flyout/Flyout.js +4 -5
  49. package/dist/luna/components/Flyout/Flyout.scss +367 -367
  50. package/dist/luna/components/Flyout/FlyoutDocumentation.mdx +60 -60
  51. package/dist/luna/components/Footer/Footer.scss +484 -484
  52. package/dist/luna/components/Footer/FooterDocumentation.mdx +133 -133
  53. package/dist/luna/components/FullBackgroundHero/FullBackgroundHero.scss +722 -722
  54. package/dist/luna/components/FullBackgroundHero/FullBackgroundHeroDocumentation.mdx +93 -93
  55. package/dist/luna/components/HTMLEmbed/HTMLEmbed.scss +51 -51
  56. package/dist/luna/components/HTMLEmbed/HTMLEmbedDocumentation.mdx +31 -31
  57. package/dist/luna/components/Header/Header.scss +36 -36
  58. package/dist/luna/components/Header/HeaderDocumentation.mdx +24 -24
  59. package/dist/luna/components/IconTextList/IconTextList.scss +124 -124
  60. package/dist/luna/components/IconTextList/IconTextListDocumentation.mdx +45 -45
  61. package/dist/luna/components/ImageGallery/ImageGallery.scss +442 -442
  62. package/dist/luna/components/ImageGallery/ImageGalleryDocumentation.mdx +90 -90
  63. package/dist/luna/components/InPageJumpNav/InPageJumpNav.scss +122 -122
  64. package/dist/luna/components/InPageJumpNav/InPageJumpNavDocumentation.mdx +22 -22
  65. package/dist/luna/components/JobPosting/JobPosting.scss +171 -171
  66. package/dist/luna/components/JobPosting/JobPostingDocumentation.mdx +69 -69
  67. package/dist/luna/components/LanguageSelector/LanguageSelector.js +2 -3
  68. package/dist/luna/components/LanguageSelector/LanguageSelector.scss +318 -318
  69. package/dist/luna/components/LanguageSelector/LanguageSelectorDocumentation.mdx +119 -119
  70. package/dist/luna/components/LinkList/LinkList.scss +59 -59
  71. package/dist/luna/components/LinkList/LinkListDocumentation.mdx +54 -54
  72. package/dist/luna/components/LoadingSpinner/LoadingSpinner.scss +34 -34
  73. package/dist/luna/components/Login/Login.js +3 -4
  74. package/dist/luna/components/Login/Login.scss +180 -180
  75. package/dist/luna/components/MarketoForm/MarketoForm.scss +56 -56
  76. package/dist/luna/components/MarketoForm/MarketoFormDocumentation.mdx +1 -1
  77. package/dist/luna/components/MegaMenu/MegaMenu.js +5 -6
  78. package/dist/luna/components/MegaMenu/MegaMenu.scss +570 -570
  79. package/dist/luna/components/MegaMenu/menu-generators/PartialSubMenu.js +3 -4
  80. package/dist/luna/components/MegaMenu/menu-generators/SubMenu.js +15 -13
  81. package/dist/luna/components/MegaMenu/menu-generators/TertiaryMenu.js +12 -10
  82. package/dist/luna/components/MegaMenu/menu-generators/UncollapsedLinks.js +3 -4
  83. package/dist/luna/components/MobileLogin/MobileLogin.js +3 -4
  84. package/dist/luna/components/MobileLogin/MobileLogin.scss +38 -38
  85. package/dist/luna/components/MobileMegaMenu/MobileMegaMenu.js +6 -6
  86. package/dist/luna/components/MobileMegaMenu/MobileMegaMenu.scss +289 -289
  87. package/dist/luna/components/MobileMegaMenu/MobileMegaMenuCategory.js +9 -9
  88. package/dist/luna/components/MobileMegaMenu/MobileMegaMenuPartialCategory.js +3 -3
  89. package/dist/luna/components/MobileMegaMenu/MobileMegaMenuSubCategory.js +8 -9
  90. package/dist/luna/components/MobileMenu/MobileMenu.scss +70 -70
  91. package/dist/luna/components/MobileNav/MobileNav.js +1 -2
  92. package/dist/luna/components/MobileNav/MobileNav.scss +286 -286
  93. package/dist/luna/components/NavBar/NavBar.scss +628 -628
  94. package/dist/luna/components/NavBar/NavMiniMenu.js +3 -4
  95. package/dist/luna/components/NavBar/NavigationBarDocumentation.mdx +245 -245
  96. package/dist/luna/components/NavBar/UtilityNav.js +5 -5
  97. package/dist/luna/components/NavBarTop/NavBarTop.js +7 -8
  98. package/dist/luna/components/NavBarTop/NavBarTop.scss +403 -403
  99. package/dist/luna/components/NavSearch/NavSearch.scss +130 -130
  100. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntries.scss +339 -339
  101. package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesDocumentation.mdx +89 -89
  102. package/dist/luna/components/OverlayNotice/OverlayNotice.scss +247 -247
  103. package/dist/luna/components/OverlayNotice/OverlayNoticeDocumentation.mdx +45 -45
  104. package/dist/luna/components/Pagination/Pagination.scss +27 -27
  105. package/dist/luna/components/ProductSummary/ProductSummary.scss +273 -273
  106. package/dist/luna/components/ProductsPackage/ProductsPackage.scss +194 -194
  107. package/dist/luna/components/ProseLayout/ProseLayout.scss +384 -384
  108. package/dist/luna/components/ProseLayout/ProseLayoutDocumentation.mdx +93 -93
  109. package/dist/luna/components/PullQuote/PullQuote.scss +400 -400
  110. package/dist/luna/components/PullQuote/PullQuoteDocumentation.mdx +60 -60
  111. package/dist/luna/components/PullQuote/ico-quote-white.svg +3 -3
  112. package/dist/luna/components/PullQuote/ico-quote.svg +3 -3
  113. package/dist/luna/components/RegionCard/RegionCard.js +4 -4
  114. package/dist/luna/components/RegionCard/RegionCard.scss +86 -86
  115. package/dist/luna/components/ResourceGrid/ResourceGrid.scss +34 -34
  116. package/dist/luna/components/ResourceGrid/ResourceGridDocumentation.mdx +102 -102
  117. package/dist/luna/components/ScrollInPlace/ScrollInPlace.scss +219 -219
  118. package/dist/luna/components/ScrollInPlace/ScrollInPlaceDocumentation.mdx +123 -123
  119. package/dist/luna/components/SketchUpPricingCard/SketchUpPricingCard.scss +142 -142
  120. package/dist/luna/components/SlideOutFeat/SlideOutFeat.scss +124 -124
  121. package/dist/luna/components/StoreFrontCard/StoreFrontCard.js +1 -2
  122. package/dist/luna/components/StoreFrontCard/StoreFrontCard.scss +434 -434
  123. package/dist/luna/components/SubNav/SubNav.js +4 -5
  124. package/dist/luna/components/SubNav/SubNav.scss +274 -274
  125. package/dist/luna/components/SuperHero/SuperHero.scss +804 -804
  126. package/dist/luna/components/SuperHero/SuperHeroDocumentation.mdx +57 -57
  127. package/dist/luna/components/SupportCard/SupportCard.scss +134 -134
  128. package/dist/luna/components/Tabs/Tabs.js +1 -2
  129. package/dist/luna/components/Tabs/Tabs.scss +871 -871
  130. package/dist/luna/components/Tabs/TabsDocumentation.mdx +94 -94
  131. package/dist/luna/components/TimeBasedList/TimeBasedList.scss +394 -394
  132. package/dist/luna/components/TimeBasedList/TimeBasedListDocumentation.mdx +123 -123
  133. package/dist/luna/components/TrainerCard/TrainerCard.scss +51 -51
  134. package/dist/luna/components/TrialForm/TrialComponents/TrialSpecifics.scss +44 -44
  135. package/dist/luna/components/TrialForm/TrialComponents/TrialSummary.scss +57 -57
  136. package/dist/luna/components/TrialForm/TrialFormStart/TrialFormStart.scss +28 -28
  137. package/dist/luna/components/TrialForm/images/check.svg +3 -3
  138. package/dist/luna/components/TrialForm/images/form-border-bottom-dark.svg +4 -4
  139. package/dist/luna/components/TrialForm/images/form-border-bottom-light.svg +4 -4
  140. package/dist/luna/components/TrialForm/images/form-border-top-dark.svg +4 -4
  141. package/dist/luna/components/TrialForm/images/form-border-top-light.svg +4 -4
  142. package/dist/luna/components/UnboundedCard/UnboundedCard.scss +108 -108
  143. package/dist/luna/components/UnboundedCard/playIcon.svg +17 -17
  144. package/dist/luna/components/VariableContentCard/VariableContentCard.js +4 -4
  145. package/dist/luna/components/VariableContentCard/VariableContentCard.scss +253 -253
  146. package/dist/luna/components/Video/Video.scss +209 -209
  147. package/dist/luna/components/Video/VideoDocumentation.mdx +56 -56
  148. package/dist/luna/components/VidyardModal/VidyardModal.scss +34 -34
  149. package/dist/luna/components/WaffleMenu/WaffleMenu.scss +73 -73
  150. package/dist/luna/images/arrow-diagonal-black.svg +13 -13
  151. package/dist/luna/images/arrow-diagonal-blue.svg +13 -13
  152. package/dist/luna/images/arrow-diagonal-white.svg +13 -13
  153. package/dist/luna/images/bulletpoint.svg +3 -3
  154. package/dist/luna/images/callout-icon.svg +3 -3
  155. package/dist/luna/images/carat-down.svg +3 -3
  156. package/dist/luna/images/carat-up.svg +3 -3
  157. package/dist/luna/images/check-blue.svg +4 -4
  158. package/dist/luna/images/circle-arrow-right-black.svg +3 -3
  159. package/dist/luna/images/circle-arrow-right-white.svg +3 -3
  160. package/dist/luna/images/circle-arrow.svg +3 -3
  161. package/dist/luna/images/close-blue.svg +4 -4
  162. package/dist/luna/images/close-button.svg +42 -42
  163. package/dist/luna/images/close-dark-navy.svg +3 -3
  164. package/dist/luna/images/close-icon.svg +3 -3
  165. package/dist/luna/images/close.svg +3 -3
  166. package/dist/luna/images/collapse-close-blue.svg +5 -5
  167. package/dist/luna/images/collapse-close-gold.svg +5 -5
  168. package/dist/luna/images/collapse-open-blue.svg +4 -4
  169. package/dist/luna/images/collapse-open-gold.svg +4 -4
  170. package/dist/luna/images/cross-medium-blue.svg +4 -4
  171. package/dist/luna/images/cross-medium-white.svg +5 -5
  172. package/dist/luna/images/down-caret-dark-blue.svg +4 -4
  173. package/dist/luna/images/down-caret-dark-gray.svg +4 -4
  174. package/dist/luna/images/down-caret-light-gray.svg +4 -4
  175. package/dist/luna/images/downArrow.svg +36 -36
  176. package/dist/luna/images/ellipses.svg +6 -6
  177. package/dist/luna/images/external-arrow-blue.svg +11 -11
  178. package/dist/luna/images/external-arrow-white-theme.svg +12 -12
  179. package/dist/luna/images/external-arrow.svg +12 -12
  180. package/dist/luna/images/facebook.svg +13 -13
  181. package/dist/luna/images/form-border-top-light.svg +4 -4
  182. package/dist/luna/images/frame-intersection.svg +3 -3
  183. package/dist/luna/images/gallery-image-corner-border.svg +3 -3
  184. package/dist/luna/images/green-tick.svg +3 -3
  185. package/dist/luna/images/instagram.svg +19 -19
  186. package/dist/luna/images/internal-arrow-blue.svg +15 -15
  187. package/dist/luna/images/internal-arrow-white-theme.svg +15 -15
  188. package/dist/luna/images/internal-arrow.svg +15 -15
  189. package/dist/luna/images/linkedin.svg +15 -15
  190. package/dist/luna/images/logo-icon.svg +17 -17
  191. package/dist/luna/images/pdf-doc.svg +9 -9
  192. package/dist/luna/images/play.svg +17 -17
  193. package/dist/luna/images/right-caret-dark-blue.svg +3 -3
  194. package/dist/luna/images/right-caret-light-gray.svg +4 -4
  195. package/dist/luna/images/right-caret-light-yellow-stroke.svg +9 -9
  196. package/dist/luna/images/right-caret-light-yellow.svg +4 -4
  197. package/dist/luna/images/right-caret-medium-gray.svg +4 -4
  198. package/dist/luna/images/search.svg +9 -9
  199. package/dist/luna/images/skipicon.svg +154 -154
  200. package/dist/luna/images/text-doc.svg +9 -9
  201. package/dist/luna/images/text-lines.svg +22 -22
  202. package/dist/luna/images/tooltip-close-icon.svg +3 -3
  203. package/dist/luna/images/tooltip-icon.svg +3 -3
  204. package/dist/luna/images/twitter.svg +17 -17
  205. package/dist/luna/images/up-arrow.svg +36 -36
  206. package/dist/luna/images/up-right-arrow.svg +9 -9
  207. package/dist/luna/images/user-profile.svg +37 -37
  208. package/dist/luna/images/user.svg +4 -4
  209. package/dist/luna/images/waffle.svg +11 -11
  210. package/dist/luna/images/worldwide.svg +19 -19
  211. package/dist/luna/images/youtube.svg +14 -14
  212. package/package.json +91 -91
@@ -1,77 +1,77 @@
1
- #### 2x2
2
-
3
- ###### Props -
4
-
5
- - `content` **(required)** - An object with the following keys:
6
- - `backgroundImages` - An array with zero to four items. Array lengths of 0, 1, and 4 are valid. Arrays with 2 and 3 entries will use the first item only. Each `backgroundImage` item is a `focalPointImage` object. The focal point image must have a `title` and `url`.
7
- - `overlappingContent` - A boolean which determines if image content will be overlapped by text content.
8
- - `topLeftContent` **(required)** - An array of 1 to 2 content items. Valid content types are: `Header`, `Rich Text`, `Image`, and `Data Point`.
9
- - `topLeftIsImage` - A boolean which determines if the top left content is an image.
10
- - `topLeftBackgroundColor` - A string which determines the background color of the top left content. Valid entires are `white`, `trimble-blue`, `trimble-dark-gray`, `dark-navy`, and `concrete-gray`.
11
- - `topRightContent` **(required)** - An array of 1 to 2 content items. Valid content types are: `Header`, `Rich Text`, `Image`, and `Data Point`.
12
- - `topRightIsImage` - A boolean which determines if the top right content is an image.
13
- - `topRightBackgroundColor` - A string which determines the background color of the top right content. Valid entires are `white`, `trimble-blue`, `trimble-dark-gray`, `dark-navy`, and `concrete-gray`.
14
- - `bottomLeftContent` **(required)** - An array of 1 to 2 content items. Valid content types are: `Header`, `Rich Text`, `Image`, and `Data Point`.
15
- - `bottomLeftIsImage` - A boolean which determines if the bottom left content is an image.
16
- - `bottomLeftBackgroundColor` - A string which determines the background color of the bottom left content. Valid entires are `white`, `trimble-blue`, `trimble-dark-gray`, `dark-navy`, and `concrete-gray`.
17
- - `bottomRightContent` **(required)** - An array of 1 to 2 content items. Valid content types are: `Header`, `Rich Text`, `Image`, and `Data Point`.
18
- - `bottomRightIsImage` - A boolean which determines if the bottom right content is an image.
19
- - `bottomRightBackgroundColor` - A string which determines the background color of the bottom right content. Valid entires are `white`, `trimble-blue`, `trimble-dark-gray`, `dark-navy`, and `concrete-gray`.
20
-
21
- ###### Example -
22
-
23
- ```
24
- const RichTextContent = () => (
25
- <>
26
- <p>
27
- <strong>This content is fits the container</strong> consectetur adipiscing
28
- elit. Integer eleifend risus ultricies dignissim suscipit. Donec vel
29
- lacus.
30
- </p>
31
- </>
32
- );
33
-
34
-
35
- const contentArray = [
36
- {
37
- type: "Header",
38
- title: "Top Left Header",
39
- headline: "This is the headline",
40
- eyebrow: "eyebrow",
41
- subhead: "This is the subheadline",
42
- },
43
- {
44
- type: "Rich Text",
45
- title: "Top Left Right Text",
46
- content: <RichTextContent />,
47
- },
48
- ];
49
-
50
- const FocalPointImage = {
51
- focalPointImage: {
52
- height: 960,
53
- width: 1280,
54
- title: "FPO Placeholder",
55
- url:
56
- "//images.ctfassets.net/citn2sn5tdjr/2aIM2EvXTK5yrpIHrvP5k5/6f7a3669abb2bf2ec39b635a91da90f6/720x720.jpg",
57
- x: 480,
58
- y: 640,
59
- },
60
- };
61
-
62
- const content = {
63
- backgroundImages: [{ ...FocalPointImage }],
64
- topLeftContent: contentArray,
65
- topLeftBackgroundColor: "trimble-blue",
66
- topRightContent: contentArray,
67
- topRightBackgroundColor: "dark-navy",
68
- bottomLeftContent: contentArray,
69
- bottomLeftBackgroundColor: "dark-navy",
70
- bottomRightContent: contentArray,
71
- bottomRightBackgroundColor: "trimble-blue",
72
- };
73
-
74
- return (
75
- <TwoByTwo content={content} />
76
- );
77
- ```
1
+ #### 2x2
2
+
3
+ ###### Props -
4
+
5
+ - `content` **(required)** - An object with the following keys:
6
+ - `backgroundImages` - An array with zero to four items. Array lengths of 0, 1, and 4 are valid. Arrays with 2 and 3 entries will use the first item only. Each `backgroundImage` item is a `focalPointImage` object. The focal point image must have a `title` and `url`.
7
+ - `overlappingContent` - A boolean which determines if image content will be overlapped by text content.
8
+ - `topLeftContent` **(required)** - An array of 1 to 2 content items. Valid content types are: `Header`, `Rich Text`, `Image`, and `Data Point`.
9
+ - `topLeftIsImage` - A boolean which determines if the top left content is an image.
10
+ - `topLeftBackgroundColor` - A string which determines the background color of the top left content. Valid entires are `white`, `trimble-blue`, `trimble-dark-gray`, `dark-navy`, and `concrete-gray`.
11
+ - `topRightContent` **(required)** - An array of 1 to 2 content items. Valid content types are: `Header`, `Rich Text`, `Image`, and `Data Point`.
12
+ - `topRightIsImage` - A boolean which determines if the top right content is an image.
13
+ - `topRightBackgroundColor` - A string which determines the background color of the top right content. Valid entires are `white`, `trimble-blue`, `trimble-dark-gray`, `dark-navy`, and `concrete-gray`.
14
+ - `bottomLeftContent` **(required)** - An array of 1 to 2 content items. Valid content types are: `Header`, `Rich Text`, `Image`, and `Data Point`.
15
+ - `bottomLeftIsImage` - A boolean which determines if the bottom left content is an image.
16
+ - `bottomLeftBackgroundColor` - A string which determines the background color of the bottom left content. Valid entires are `white`, `trimble-blue`, `trimble-dark-gray`, `dark-navy`, and `concrete-gray`.
17
+ - `bottomRightContent` **(required)** - An array of 1 to 2 content items. Valid content types are: `Header`, `Rich Text`, `Image`, and `Data Point`.
18
+ - `bottomRightIsImage` - A boolean which determines if the bottom right content is an image.
19
+ - `bottomRightBackgroundColor` - A string which determines the background color of the bottom right content. Valid entires are `white`, `trimble-blue`, `trimble-dark-gray`, `dark-navy`, and `concrete-gray`.
20
+
21
+ ###### Example -
22
+
23
+ ```
24
+ const RichTextContent = () => (
25
+ <>
26
+ <p>
27
+ <strong>This content is fits the container</strong> consectetur adipiscing
28
+ elit. Integer eleifend risus ultricies dignissim suscipit. Donec vel
29
+ lacus.
30
+ </p>
31
+ </>
32
+ );
33
+
34
+
35
+ const contentArray = [
36
+ {
37
+ type: "Header",
38
+ title: "Top Left Header",
39
+ headline: "This is the headline",
40
+ eyebrow: "eyebrow",
41
+ subhead: "This is the subheadline",
42
+ },
43
+ {
44
+ type: "Rich Text",
45
+ title: "Top Left Right Text",
46
+ content: <RichTextContent />,
47
+ },
48
+ ];
49
+
50
+ const FocalPointImage = {
51
+ focalPointImage: {
52
+ height: 960,
53
+ width: 1280,
54
+ title: "FPO Placeholder",
55
+ url:
56
+ "//images.ctfassets.net/citn2sn5tdjr/2aIM2EvXTK5yrpIHrvP5k5/6f7a3669abb2bf2ec39b635a91da90f6/720x720.jpg",
57
+ x: 480,
58
+ y: 640,
59
+ },
60
+ };
61
+
62
+ const content = {
63
+ backgroundImages: [{ ...FocalPointImage }],
64
+ topLeftContent: contentArray,
65
+ topLeftBackgroundColor: "trimble-blue",
66
+ topRightContent: contentArray,
67
+ topRightBackgroundColor: "dark-navy",
68
+ bottomLeftContent: contentArray,
69
+ bottomLeftBackgroundColor: "dark-navy",
70
+ bottomRightContent: contentArray,
71
+ bottomRightBackgroundColor: "trimble-blue",
72
+ };
73
+
74
+ return (
75
+ <TwoByTwo content={content} />
76
+ );
77
+ ```
@@ -1,155 +1,155 @@
1
- @import "../../../global-styles/terra.scss";
2
-
3
- .luna-accordion {
4
- @include grid-container;
5
-
6
- grid-template-rows: 1fr;
7
-
8
- @media screen and (max-width: $breakpoint-sm) {
9
- grid-template-rows: minmax(min-content, max-content);
10
- }
11
-
12
- &__content-wrapper {
13
- grid-row: 1 / span 1;
14
- grid-column: 1 / span 16;
15
- align-self: start;
16
-
17
- @media screen and (max-width: $breakpoint-xs) {
18
- grid-column: 1 / span 16;
19
- }
20
- }
21
-
22
- &__item {
23
- display: flex;
24
- flex-direction: column;
25
- padding: 24px 0px;
26
- .luna-accordion__item-wrapper {
27
- max-height: 0;
28
- overflow: hidden;
29
- transition-property: max-height;
30
- transition-duration: 0.5s;
31
- transition-timing-function: ease-in-out;
32
- }
33
- &--open {
34
- .luna-accordion__item-wrapper {
35
- transition-property: max-height;
36
- transition-duration: 0.5s;
37
- transition-timing-function: ease-in-out;
38
- }
39
- }
40
-
41
- &-header {
42
- display: flex;
43
- flex-direction: row;
44
- align-items: center;
45
- cursor: pointer;
46
- &-icon {
47
- padding-right: 24px;
48
-
49
- &-type {
50
- width: 36px !important;
51
- height: 36px !important;
52
- display: block;
53
- }
54
- }
55
-
56
- &-text {
57
- font-weight: $bold-font-weight;
58
- font-size: $body-font-size;
59
- line-height: 22px;
60
- letter-spacing: 0.01em;
61
-
62
- @media screen and (max-width: $breakpoint-xs) {
63
- font-size: $body-font-size-mobile;
64
- line-height: 23px;
65
- }
66
- }
67
-
68
- &-collapse {
69
- padding-left: 12px;
70
- margin-left: auto;
71
-
72
- @media screen and (max-width: $breakpoint-xs) {
73
- padding-left: 10px;
74
- }
75
-
76
- &-type {
77
- display: block;
78
- }
79
- }
80
- }
81
- &-wrapper {
82
- overflow: hidden;
83
- }
84
-
85
- &-body {
86
- margin-top: 8px;
87
- padding-left: 60px;
88
- padding-right: 32px;
89
-
90
- ul {
91
- li {
92
- list-style: none;
93
- position: relative;
94
-
95
- &:before {
96
- content: "\26AC";
97
- color: $trimble-blue;
98
- font-weight: bold;
99
- display: inline-block;
100
- width: 1rem;
101
- margin-left: -1rem;
102
- }
103
- }
104
- }
105
- }
106
-
107
- &-body,
108
- &-body > p {
109
- font-size: $body-font-size;
110
- font-weight: $regular-font-weight;
111
- line-height: 22px;
112
- letter-spacing: 0.01em;
113
-
114
- @media screen and (max-width: $breakpoint-xs) {
115
- font-size: $body-font-size-mobile;
116
- line-height: 23px;
117
- }
118
- }
119
-
120
- &-body--full {
121
- padding-left: 0px;
122
- }
123
- }
124
-
125
- &__item:last-child {
126
- border-bottom: none !important;
127
- }
128
-
129
- &--extra-padding {
130
- padding: 20px;
131
- }
132
-
133
- &__bullet-theme {
134
- &--white,
135
- &--transparent-dark-text,
136
- &--concrete-gray {
137
- > ul {
138
- li:before {
139
- color: $trimble-blue;
140
- }
141
- }
142
- }
143
-
144
- &--transparent-light-text,
145
- &--dark-navy,
146
- &--dark-gray,
147
- &--blue {
148
- > ul {
149
- li:before {
150
- color: $white;
151
- }
152
- }
153
- }
154
- }
1
+ @import "../../../global-styles/terra.scss";
2
+
3
+ .luna-accordion {
4
+ @include grid-container;
5
+
6
+ grid-template-rows: 1fr;
7
+
8
+ @media screen and (max-width: $breakpoint-sm) {
9
+ grid-template-rows: minmax(min-content, max-content);
10
+ }
11
+
12
+ &__content-wrapper {
13
+ grid-row: 1 / span 1;
14
+ grid-column: 1 / span 16;
15
+ align-self: start;
16
+
17
+ @media screen and (max-width: $breakpoint-xs) {
18
+ grid-column: 1 / span 16;
19
+ }
20
+ }
21
+
22
+ &__item {
23
+ display: flex;
24
+ flex-direction: column;
25
+ padding: 24px 0px;
26
+ .luna-accordion__item-wrapper {
27
+ max-height: 0;
28
+ overflow: hidden;
29
+ transition-property: max-height;
30
+ transition-duration: 0.5s;
31
+ transition-timing-function: ease-in-out;
32
+ }
33
+ &--open {
34
+ .luna-accordion__item-wrapper {
35
+ transition-property: max-height;
36
+ transition-duration: 0.5s;
37
+ transition-timing-function: ease-in-out;
38
+ }
39
+ }
40
+
41
+ &-header {
42
+ display: flex;
43
+ flex-direction: row;
44
+ align-items: center;
45
+ cursor: pointer;
46
+ &-icon {
47
+ padding-right: 24px;
48
+
49
+ &-type {
50
+ width: 36px !important;
51
+ height: 36px !important;
52
+ display: block;
53
+ }
54
+ }
55
+
56
+ &-text {
57
+ font-weight: $bold-font-weight;
58
+ font-size: $body-font-size;
59
+ line-height: 22px;
60
+ letter-spacing: 0.01em;
61
+
62
+ @media screen and (max-width: $breakpoint-xs) {
63
+ font-size: $body-font-size-mobile;
64
+ line-height: 23px;
65
+ }
66
+ }
67
+
68
+ &-collapse {
69
+ padding-left: 12px;
70
+ margin-left: auto;
71
+
72
+ @media screen and (max-width: $breakpoint-xs) {
73
+ padding-left: 10px;
74
+ }
75
+
76
+ &-type {
77
+ display: block;
78
+ }
79
+ }
80
+ }
81
+ &-wrapper {
82
+ overflow: hidden;
83
+ }
84
+
85
+ &-body {
86
+ margin-top: 8px;
87
+ padding-left: 60px;
88
+ padding-right: 32px;
89
+
90
+ ul {
91
+ li {
92
+ list-style: none;
93
+ position: relative;
94
+
95
+ &:before {
96
+ content: "\26AC";
97
+ color: $trimble-blue;
98
+ font-weight: bold;
99
+ display: inline-block;
100
+ width: 1rem;
101
+ margin-left: -1rem;
102
+ }
103
+ }
104
+ }
105
+ }
106
+
107
+ &-body,
108
+ &-body > p {
109
+ font-size: $body-font-size;
110
+ font-weight: $regular-font-weight;
111
+ line-height: 22px;
112
+ letter-spacing: 0.01em;
113
+
114
+ @media screen and (max-width: $breakpoint-xs) {
115
+ font-size: $body-font-size-mobile;
116
+ line-height: 23px;
117
+ }
118
+ }
119
+
120
+ &-body--full {
121
+ padding-left: 0px;
122
+ }
123
+ }
124
+
125
+ &__item:last-child {
126
+ border-bottom: none !important;
127
+ }
128
+
129
+ &--extra-padding {
130
+ padding: 20px;
131
+ }
132
+
133
+ &__bullet-theme {
134
+ &--white,
135
+ &--transparent-dark-text,
136
+ &--concrete-gray {
137
+ > ul {
138
+ li:before {
139
+ color: $trimble-blue;
140
+ }
141
+ }
142
+ }
143
+
144
+ &--transparent-light-text,
145
+ &--dark-navy,
146
+ &--dark-gray,
147
+ &--blue {
148
+ > ul {
149
+ li:before {
150
+ color: $white;
151
+ }
152
+ }
153
+ }
154
+ }
155
155
  }
@@ -1,46 +1,46 @@
1
- #### Accordion
2
-
3
- ###### Props -
4
-
5
- - `items` - array of objects, each with `icon`, `headline` and `body` as strings to represent the icon text items.
6
- - `theme` - object with `backgroundColor`, `color` and `iconColor` as strings to represent hex value for background color.
7
- - `disableIcon` - boolean to don't display icon.
8
- - `paddingClass` - string to generate a custom class to pass into the outermost div of the component.
9
-
10
- ###### Example -
11
-
12
- ```
13
- const theme = {
14
- color: "#FFFFFF",
15
- backgroundColor: "#0063A3",
16
- iconColor: "#FFFFFF",
17
- };
18
-
19
- const items = [
20
- {
21
- icon: "ico-annotate-48px",
22
- headline : "Headline Lorem ipsum dolor sit amet",
23
- body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blandit vitae molestie aliquam iaculis eu et ultricies nec."
24
- },
25
- {
26
- icon: "ico-annotate-48px",
27
- headline : "Headline Lorem ipsum dolor sit amet",
28
- body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blandit vitae molestie aliquam iaculis eu et ultricies nec."
29
- },
30
- {
31
- icon: "ico-annotate-48px",
32
- headline : "Headline Lorem ipsum dolor sit amet",
33
- body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blandit vitae molestie aliquam iaculis eu et ultricies nec. <ul><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Elit congue pellentesque rhoncus, at ac commodo ornare interdum arcu. </li><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Elit congue pellentesque rhoncus, at ac commodo ornare interdum arcu. </li></ul>"
34
- }
35
- ];
36
-
37
-
38
- return (
39
- <Accordion
40
- items={items}
41
- theme={theme}
42
- disableIcon={false}
43
- paddingClass="custom-class"
44
- />
45
- );
1
+ #### Accordion
2
+
3
+ ###### Props -
4
+
5
+ - `items` - array of objects, each with `icon`, `headline` and `body` as strings to represent the icon text items.
6
+ - `theme` - object with `backgroundColor`, `color` and `iconColor` as strings to represent hex value for background color.
7
+ - `disableIcon` - boolean to don't display icon.
8
+ - `paddingClass` - string to generate a custom class to pass into the outermost div of the component.
9
+
10
+ ###### Example -
11
+
12
+ ```
13
+ const theme = {
14
+ color: "#FFFFFF",
15
+ backgroundColor: "#0063A3",
16
+ iconColor: "#FFFFFF",
17
+ };
18
+
19
+ const items = [
20
+ {
21
+ icon: "ico-annotate-48px",
22
+ headline : "Headline Lorem ipsum dolor sit amet",
23
+ body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blandit vitae molestie aliquam iaculis eu et ultricies nec."
24
+ },
25
+ {
26
+ icon: "ico-annotate-48px",
27
+ headline : "Headline Lorem ipsum dolor sit amet",
28
+ body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blandit vitae molestie aliquam iaculis eu et ultricies nec."
29
+ },
30
+ {
31
+ icon: "ico-annotate-48px",
32
+ headline : "Headline Lorem ipsum dolor sit amet",
33
+ body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Blandit vitae molestie aliquam iaculis eu et ultricies nec. <ul><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Elit congue pellentesque rhoncus, at ac commodo ornare interdum arcu. </li><li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Elit congue pellentesque rhoncus, at ac commodo ornare interdum arcu. </li></ul>"
34
+ }
35
+ ];
36
+
37
+
38
+ return (
39
+ <Accordion
40
+ items={items}
41
+ theme={theme}
42
+ disableIcon={false}
43
+ paddingClass="custom-class"
44
+ />
45
+ );
46
46
  ```