@carbon/ibmdotcom-styles 2.0.0-beta.1 → 2.0.0-rc.0

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 (132) hide show
  1. package/LICENSE +201 -0
  2. package/icons/svg/IBM-8bar-logo--h23-white.svg +13 -0
  3. package/icons/svg/IBM-8bar-logo--h23.svg +1 -1
  4. package/icons/svg/IBM-8bar-logo--h65-white.svg +1 -1
  5. package/icons/svg/play-video.svg +10 -10
  6. package/package.json +6 -5
  7. package/scss/components/back-to-top/_back-to-top.scss +3 -4
  8. package/scss/components/background-media/_background-media.scss +39 -1
  9. package/scss/components/button/_button.scss +40 -0
  10. package/scss/components/button/_index.scss +11 -0
  11. package/scss/components/button-group/_button-group.scss +32 -49
  12. package/scss/components/callout-quote/_callout-quote.scss +72 -28
  13. package/scss/components/callout-with-media/_callout-with-media.scss +107 -34
  14. package/scss/components/card/_card.scss +292 -415
  15. package/scss/components/card-group/_card-group.scss +69 -267
  16. package/scss/components/card-in-card/_card-in-card.scss +51 -29
  17. package/scss/components/card-in-card/_tokens.scss +39 -0
  18. package/scss/components/card-link/_card-link.scss +3 -3
  19. package/scss/components/card-section-offset/_card-section-offset.scss +28 -6
  20. package/scss/components/carousel/_carousel.scss +14 -14
  21. package/scss/components/content-block-cards/_content-block-cards.scss +4 -4
  22. package/scss/components/content-block-headlines/_content-block-headlines.scss +4 -4
  23. package/scss/components/content-block-horizontal/_content-block-horizontal.scss +6 -19
  24. package/scss/components/content-block-media/_content-block-media.scss +1 -2
  25. package/scss/components/content-block-mixed/_content-block-mixed.scss +1 -1
  26. package/scss/components/content-block-segmented/_content-block-segmented.scss +4 -4
  27. package/scss/components/content-group/_content-group.scss +37 -0
  28. package/scss/components/{universal-banner → content-group}/_index.scss +3 -3
  29. package/scss/components/content-group-cards/_content-group-cards.scss +3 -3
  30. package/scss/components/content-group-pictograms/_content-group-pictograms.scss +2 -2
  31. package/scss/components/content-group-simple/_content-group-simple.scss +2 -2
  32. package/scss/components/{content-item-horizontal/_content-item-horizontal.scss → content-item-row/_content-item-row.scss} +44 -97
  33. package/scss/components/{image-with-caption → content-item-row}/_index.scss +3 -3
  34. package/scss/components/{content-item-horizontal-media/_content-item-horizontal-media.scss → content-item-row-media/_content-item-row-media.scss} +49 -38
  35. package/scss/components/{content-item-horizontal → content-item-row-media}/_index.scss +3 -3
  36. package/scss/components/cta-block/_cta-block.scss +1 -1
  37. package/scss/components/cta-section/_cta-section.scss +1 -1
  38. package/scss/components/dotcom-shell/_dotcom-shell.scss +6 -1
  39. package/scss/components/expressive-modal/_expressive-modal.scss +66 -27
  40. package/scss/components/feature-card/_feature-card.scss +240 -68
  41. package/scss/components/feature-section/_feature-section.scss +43 -13
  42. package/scss/components/filter-panel/_filter-panel.scss +94 -52
  43. package/scss/components/footer/_footer-logo.scss +16 -5
  44. package/scss/components/footer/_footer-nav-group.scss +18 -7
  45. package/scss/components/footer/_footer-nav.scss +14 -15
  46. package/scss/components/footer/_footer.scss +407 -30
  47. package/scss/components/footer/_index.scss +0 -2
  48. package/scss/components/footer/_language-selector.scss +1 -1
  49. package/scss/components/footer/_legal-nav.scss +24 -15
  50. package/scss/components/footer/_locale-button.scss +14 -6
  51. package/scss/components/{universal-banner/_universal-banner.scss → global-banner/_global-banner.scss} +30 -26
  52. package/scss/components/{content-group-banner → global-banner}/_index.scss +3 -3
  53. package/scss/components/horizontal-rule/_horizontal-rule.scss +29 -81
  54. package/scss/components/image/_image.scss +152 -17
  55. package/scss/components/{content-group-banner/_content-group-banner.scss → in-page-banner/_in-page-banner.scss} +26 -5
  56. package/scss/components/in-page-banner/_index.scss +11 -0
  57. package/scss/components/layout/_layout.scss +3 -3
  58. package/scss/components/leadspace/_leadspace.scss +160 -78
  59. package/scss/components/leadspace-block/_leadspace-block.scss +51 -90
  60. package/scss/components/leadspace-with-search/_leadspace-with-search.scss +91 -247
  61. package/scss/components/leaving-ibm/_index.scss +11 -0
  62. package/scss/components/leaving-ibm/_leaving-ibm.scss +63 -0
  63. package/scss/components/lightbox-media-viewer/_lightbox-media-viewer.scss +50 -20
  64. package/scss/components/link-list/_link-list.scss +104 -186
  65. package/scss/components/link-list-section/_index.scss +11 -0
  66. package/scss/components/link-list-section/_link-list-section.scss +35 -0
  67. package/scss/components/link-with-icon/_link-with-icon.scss +24 -21
  68. package/scss/components/locale-modal/_locale-modal.scss +211 -122
  69. package/scss/components/logo-grid/_logo-grid.scss +8 -8
  70. package/scss/components/masthead/_masthead-l1.scss +809 -99
  71. package/scss/components/masthead/_masthead-leftnav.scss +159 -58
  72. package/scss/components/masthead/_masthead-megamenu.scss +348 -108
  73. package/scss/components/masthead/_masthead-search.scss +3 -3
  74. package/scss/components/masthead/_masthead.scss +76 -35
  75. package/scss/components/pictogram-item/_pictogram-item.scss +1 -1
  76. package/scss/components/pricing-table/_pricing-table.scss +35 -35
  77. package/scss/components/quote/_quote.scss +30 -32
  78. package/scss/components/scroll-into-view/_scroll-into-view.scss +16 -16
  79. package/scss/components/search-with-typeahead/_search-with-typeahead.scss +27 -34
  80. package/scss/components/structured-list/_structured-list.scss +14 -14
  81. package/scss/components/tableofcontents/_table-of-contents.scss +175 -178
  82. package/scss/components/tabs-extended/_tabs-extended.scss +110 -223
  83. package/scss/components/tabs-extended-media/_tabs-extended-media.scss +1 -1
  84. package/scss/components/tag-group/_tag-group.scss +2 -2
  85. package/scss/components/tag-link/_tag-link.scss +3 -2
  86. package/scss/components/video-player/_video-player.scss +31 -24
  87. package/scss/globals/_carbon-grid.scss +3 -4
  88. package/scss/globals/_feature-flags.scss +20 -20
  89. package/scss/globals/_vars.scss +1 -1
  90. package/scss/globals/tokens/_color-tokens.scss +167 -0
  91. package/scss/globals/utils/_aspect-ratio.scss +3 -1
  92. package/scss/globals/utils/_ratio-base.scss +1 -1
  93. package/scss/ibm-dotcom-styles.scss +3 -6
  94. package/scss/internal/callout/_callout.scss +59 -19
  95. package/scss/internal/callout/_index.scss +1 -0
  96. package/scss/internal/content-block/_content-block.scss +22 -27
  97. package/scss/internal/content-group/_content-group.scss +12 -12
  98. package/scss/internal/content-item/_content-item.scss +57 -30
  99. package/scss/internal/content-section/_content-section.scss +8 -8
  100. package/scss/patterns/sections/leadspace/_leadspace.scss +4 -4
  101. package/scss/themes/expressive/_tokens.scss +3 -3
  102. package/scss/themes/expressive/components/_tag.scss +1 -1
  103. package/dist/ibm-dotcom-styles-rtl.css +0 -48059
  104. package/dist/ibm-dotcom-styles-rtl.min.css +0 -87
  105. package/dist/ibm-dotcom-styles.css +0 -48049
  106. package/dist/ibm-dotcom-styles.min.css +0 -87
  107. package/scss/components/content-group-horizontal/_content-group-horizontal.scss +0 -37
  108. package/scss/components/content-group-horizontal/_index.scss +0 -11
  109. package/scss/components/content-item-horizontal-media/_index.scss +0 -11
  110. package/scss/components/feature-card-block-large/_feature-card-block-large.scss +0 -212
  111. package/scss/components/feature-card-block-large/_index.scss +0 -11
  112. package/scss/components/feature-card-block-medium/_feature-card-block-medium.scss +0 -51
  113. package/scss/components/feature-card-block-medium/_index.scss +0 -11
  114. package/scss/components/footer/_temp-breakpoints.scss +0 -15
  115. package/scss/components/image-with-caption/_image-with-caption.scss +0 -101
  116. package/scss/patterns/blocks/content-group-horizontal/_content-group-horizontal.scss +0 -32
  117. package/scss/patterns/sections/card-section-images/_card-section-images.scss +0 -10
  118. package/scss/patterns/sub-patterns/button-group/_button-group.scss +0 -11
  119. package/scss/patterns/sub-patterns/callout/_callout.scss +0 -11
  120. package/scss/patterns/sub-patterns/card/index.css +0 -17
  121. package/scss/patterns/sub-patterns/card/index.scss +0 -11
  122. package/scss/patterns/sub-patterns/card-group/_card-group.scss +0 -11
  123. package/scss/patterns/sub-patterns/content-item-horizontal/_content-item-horizontal.scss +0 -11
  124. package/scss/patterns/sub-patterns/feature-card/_feature-card.scss +0 -11
  125. package/scss/patterns/sub-patterns/layout/_layout.scss +0 -11
  126. package/scss/patterns/sub-patterns/link-list/_index.scss +0 -11
  127. package/scss/patterns/sub-patterns/link-list/_link-list.scss +0 -11
  128. package/scss/patterns/sub-patterns/pictogram-item/_pictogram-item.scss +0 -11
  129. package/scss/patterns/sub-patterns/quote/_quote.scss +0 -11
  130. package/scss/patterns/sub-patterns/tableofcontents/_tableofcontents.scss +0 -11
  131. package/scss/patterns/sub-patterns/tableofcontents/index.css +0 -17
  132. package/scss/patterns/sub-patterns/tableofcontents/index.scss +0 -11
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2019 IBM Corp.
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,13 @@
1
+ <svg width="58" height="24" viewBox="0 0 58 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="logo">
3
+ <path id="logo color" fill-rule="evenodd" clip-rule="evenodd" d="M32.1335 0.846069H41.1894L41.6962 2.27207H32.1335V0.846069ZM24.6845 0.853948C26.1997 0.853948 27.5854 1.39128 28.6559 2.27961H12.8537V0.853948H24.6845ZM30.6052 5.27381C30.4652 4.76894 30.2588 4.29079 29.9965 3.84781H12.8537V5.27381H30.6052ZM16.0668 11.2619V9.83626H29.9956C29.6789 10.3692 29.2802 10.849 28.817 11.2619H16.0668ZM28.7641 12.8301H16.067V14.2561H29.9427C29.6264 13.7232 29.2277 13.243 28.7641 12.8301ZM20.887 17.2502H16.0669V15.8242H20.887V17.2502ZM12.8536 20.2442V18.8185H30.6051C30.4652 19.3234 30.2587 19.8015 29.9964 20.2442H12.8536ZM16.0669 8.26783H20.887V6.84183H16.0669V8.26783ZM30.6404 8.268H25.4149V6.842H30.8191C30.8191 7.33368 30.7551 7.81048 30.6404 8.268ZM25.4149 15.8243V17.2503H30.8191C30.8191 16.7583 30.7551 16.2818 30.6404 15.8243H25.4149ZM32.1337 23.2383H40.1698V21.812H32.1337V23.2383ZM40.1698 20.2433H32.1337V18.8169H40.1698V20.2433ZM35.3482 17.2479H40.1698V15.8219H35.3482V17.2479ZM40.1698 14.2532H35.3482V12.8268H40.1698V14.2532ZM49.8135 23.2383H57.8496V21.812H49.8135V23.2383ZM57.8496 20.2433H49.8135V18.8169H57.8496V20.2433ZM49.8135 17.2479H54.6351V15.8219H49.8135V17.2479ZM54.6351 14.2532H49.8135V12.8268H54.6351V14.2532ZM49.8135 11.2579H54.6351V9.83156H49.8135H45.5972L45.09 11.2579H49.322L49.8135 9.89953V11.2579ZM40.1698 9.83163H44.3861L44.8933 11.258H40.661L40.1698 9.8996V11.258H35.3482V9.83163H40.1698ZM54.6351 6.83646H46.6614L46.1549 8.26279H54.6351V6.83646ZM48.2837 2.27275L48.7905 0.846407H57.8495V2.27275H48.2837ZM44.9886 23.2383L45.5048 21.812H44.4783L44.9886 23.2383ZM46.0721 20.2431H43.9111L43.3953 18.8168H46.5883L46.0721 20.2431ZM42.8278 17.248H47.1554L47.6712 15.8219H42.312L42.8278 17.248ZM48.2387 14.2531H41.7446L41.2288 12.8267H48.7545L48.2387 14.2531ZM35.3482 8.26273H43.8284L43.3216 6.83639H35.3482V8.26273ZM57.8498 5.26752H47.2191L47.7262 3.84118H57.8498V5.26752ZM42.2571 3.84128H32.1335V5.26762H42.764L42.2571 3.84128ZM12.8536 23.2384V21.8124H28.6558C27.5853 22.701 26.1996 23.2384 24.6844 23.2384H12.8536ZM0 23.2303H11.2467V21.8043H0V23.2303ZM11.2467 20.2362H0V18.8102H11.2467V20.2362ZM3.21309 17.2422H8.03326V15.8162H3.21309V17.2422ZM8.03326 14.2482H3.21309V12.8222H8.03326V14.2482ZM3.21309 11.2538H8.03326V9.82815H3.21309V11.2538ZM8.03326 8.26012H3.21309V6.83412H8.03326V8.26012ZM0 5.26576H11.2467V3.83976H0V5.26576ZM11.2467 2.27173H0V0.846069H11.2467V2.27173Z" fill="#8C8C8C"/>
4
+ <mask id="mask0_1455_52615" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="58" height="24">
5
+ <path id="logo color_2" fill-rule="evenodd" clip-rule="evenodd" d="M32.1335 0.846069H41.1894L41.6962 2.27207H32.1335V0.846069ZM24.6845 0.853948C26.1997 0.853948 27.5854 1.39128 28.6559 2.27961H12.8537V0.853948H24.6845ZM30.6052 5.27381C30.4652 4.76894 30.2588 4.29079 29.9965 3.84781H12.8537V5.27381H30.6052ZM16.0668 11.2619V9.83626H29.9956C29.6789 10.3692 29.2802 10.849 28.817 11.2619H16.0668ZM28.7641 12.8301H16.067V14.2561H29.9427C29.6264 13.7232 29.2277 13.243 28.7641 12.8301ZM20.887 17.2502H16.0669V15.8242H20.887V17.2502ZM12.8536 20.2442V18.8185H30.6051C30.4652 19.3234 30.2587 19.8015 29.9964 20.2442H12.8536ZM16.0669 8.26783H20.887V6.84183H16.0669V8.26783ZM30.6404 8.268H25.4149V6.842H30.8191C30.8191 7.33368 30.7551 7.81048 30.6404 8.268ZM25.4149 15.8243V17.2503H30.8191C30.8191 16.7583 30.7551 16.2818 30.6404 15.8243H25.4149ZM32.1337 23.2383H40.1698V21.812H32.1337V23.2383ZM40.1698 20.2433H32.1337V18.8169H40.1698V20.2433ZM35.3482 17.2479H40.1698V15.8219H35.3482V17.2479ZM40.1698 14.2532H35.3482V12.8268H40.1698V14.2532ZM49.8135 23.2383H57.8496V21.812H49.8135V23.2383ZM57.8496 20.2433H49.8135V18.8169H57.8496V20.2433ZM49.8135 17.2479H54.6351V15.8219H49.8135V17.2479ZM54.6351 14.2532H49.8135V12.8268H54.6351V14.2532ZM49.8135 11.2579H54.6351V9.83156H49.8135H45.5972L45.09 11.2579H49.322L49.8135 9.89953V11.2579ZM40.1698 9.83163H44.3861L44.8933 11.258H40.661L40.1698 9.8996V11.258H35.3482V9.83163H40.1698ZM54.6351 6.83646H46.6614L46.1549 8.26279H54.6351V6.83646ZM48.2837 2.27275L48.7905 0.846407H57.8495V2.27275H48.2837ZM44.9886 23.2383L45.5048 21.812H44.4783L44.9886 23.2383ZM46.0721 20.2431H43.9111L43.3953 18.8168H46.5883L46.0721 20.2431ZM42.8278 17.248H47.1554L47.6712 15.8219H42.312L42.8278 17.248ZM48.2387 14.2531H41.7446L41.2288 12.8267H48.7545L48.2387 14.2531ZM35.3482 8.26273H43.8284L43.3216 6.83639H35.3482V8.26273ZM57.8498 5.26752H47.2191L47.7262 3.84118H57.8498V5.26752ZM42.2571 3.84128H32.1335V5.26762H42.764L42.2571 3.84128ZM12.8536 23.2384V21.8124H28.6558C27.5853 22.701 26.1996 23.2384 24.6844 23.2384H12.8536ZM0 23.2303H11.2467V21.8043H0V23.2303ZM11.2467 20.2362H0V18.8102H11.2467V20.2362ZM3.21309 17.2422H8.03326V15.8162H3.21309V17.2422ZM8.03326 14.2482H3.21309V12.8222H8.03326V14.2482ZM3.21309 11.2538H8.03326V9.82815H3.21309V11.2538ZM8.03326 8.26012H3.21309V6.83412H8.03326V8.26012ZM0 5.26576H11.2467V3.83976H0V5.26576ZM11.2467 2.27173H0V0.846069H11.2467V2.27173Z" fill="white"/>
6
+ </mask>
7
+ <g mask="url(#mask0_1455_52615)">
8
+ <g id="color/gray/gray-10">
9
+ <rect id="gray-10" y="0.5" width="58" height="23" fill="#F4F4F4"/>
10
+ </g>
11
+ </g>
12
+ </g>
13
+ </svg>
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <svg width="58px" height="23px" viewBox="0 0 58 23" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
3
  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
4
- <g id="ibm-8-bar-logo--h15-copy" fill="#161616">
4
+ <g id="ibm-8-bar-logo--h15-copy">
5
5
  <path d="M58,21.4666667 L58,23 L50.3684211,23 L50.3684211,21.4666667 L58,21.4666667 Z M39.6842105,21.4666667 L39.6842105,23 L32.0526316,23 L32.0526316,21.4666667 L39.6842105,21.4666667 Z M45.6385329,21.4666667 L45.0245693,23 L44.41871,21.4666667 L45.6385329,21.4666667 Z M28.5421053,21.4666667 C27.4471432,22.4188667 26.0029202,23 24.3905263,23 L24.3905263,23 L12.2105263,23 L12.2105263,21.4666667 Z M10.6842105,21.4666667 L10.6842105,23 L0,23 L0,21.4666667 L10.6842105,21.4666667 Z M39.6842105,18.4 L39.6842105,19.9333333 L32.0526316,19.9333333 L32.0526316,18.4 L39.6842105,18.4 Z M46.8318522,18.4 L46.2377311,19.9333333 L43.8212353,19.9333333 L43.2226426,18.4 L46.8318522,18.4 Z M30.0684211,18.4 C29.9306437,18.9451697 29.7105614,19.4599515 29.4273684,19.9333333 L29.4273684,19.9333333 L12.2105263,19.9333333 L12.2105263,18.4 Z M10.6842105,18.4 L10.6842105,19.9333333 L0,19.9333333 L0,18.4 L10.6842105,18.4 Z M58,18.4 L58,19.9333333 L50.3684211,19.9333333 L50.3684211,18.4 L58,18.4 Z M54.9473684,15.3333333 L54.9473684,16.8666667 L50.3684211,16.8666667 L50.3684211,15.3333333 L54.9473684,15.3333333 Z M39.6842105,15.3333333 L39.6842105,16.8666667 L35.1052632,16.8666667 L35.1052632,15.3333333 L39.6842105,15.3333333 Z M48.0292704,15.3333333 L47.4295831,16.8666667 L42.6233978,16.8666667 L42.019006,15.3333333 L48.0292704,15.3333333 Z M29.8547368,15.3333333 C29.991899,15.8221879 30.0684211,16.3357152 30.0684211,16.8666667 L30.0684211,16.8666667 L24.4210526,16.8666667 L24.4210526,15.3333333 Z M19.8421053,15.3333333 L19.8421053,16.8666667 L15.2631579,16.8666667 L15.2631579,15.3333333 L19.8421053,15.3333333 Z M7.63157895,15.3333333 L7.63157895,16.8666667 L3.05263158,16.8666667 L3.05263158,15.3333333 L7.63157895,15.3333333 Z M54.9473684,12.2666667 L54.9473684,13.8 L50.3684211,13.8 L50.3684211,12.2666667 L54.9473684,12.2666667 Z M39.6842105,12.2666667 L39.6842105,13.8 L35.1052632,13.8 L35.1052632,12.2666667 L39.6842105,12.2666667 Z M49.2252679,12.2666667 L48.6284686,13.8 L41.4089474,13.8 L40.8168134,12.2666667 L49.2252679,12.2666667 Z M27.9773684,12.2666667 C28.5037637,12.6994848 28.9570701,13.2181697 29.3052632,13.8 L29.3052632,13.8 L15.2631579,13.8 L15.2631579,12.2666667 Z M7.63157895,12.2666667 L7.63157895,13.8 L3.05263158,13.8 L3.05263158,12.2666667 L7.63157895,12.2666667 Z M44.5987396,9.2 L45.0263158,10.4393515 L45.4535426,9.2 L54.9473684,9.2 L54.9473684,10.7333333 L50.3684211,10.7333333 L50.3684211,9.32433939 L49.8494737,10.7333333 L40.1878947,10.7333333 L39.6842105,9.3242 L39.6842105,10.7333333 L35.1052632,10.7333333 L35.1052632,9.2 L44.5987396,9.2 Z M7.63157895,9.2 L7.63157895,10.7333333 L3.05263158,10.7333333 L3.05263158,9.2 L7.63157895,9.2 Z M29.3052632,9.2 C28.9570701,9.7818303 28.5037637,10.3003758 27.9773684,10.7333333 L27.9773684,10.7333333 L15.2631579,10.7333333 L15.2631579,9.2 Z M54.9473684,6.13333333 L54.9473684,7.66666667 L45.9831118,7.66666667 L46.5234001,6.13333333 L54.9473684,6.13333333 Z M43.534302,6.13333333 L44.0745993,7.66666667 L35.1052632,7.66666667 L35.1052632,6.13333333 L43.534302,6.13333333 Z M30.0684211,6.13333333 C30.0684211,6.66414545 29.991899,7.17767273 29.8547368,7.66666667 L29.8547368,7.66666667 L24.4210526,7.66666667 L24.4210526,6.13333333 Z M19.8421053,6.13333333 L19.8421053,7.66666667 L15.2631579,7.66666667 L15.2631579,6.13333333 L19.8421053,6.13333333 Z M7.63157895,6.13333333 L7.63157895,7.66666667 L3.05263158,7.66666667 L3.05263158,6.13333333 L7.63157895,6.13333333 Z M42.4774196,3.06666667 L43.0079113,4.6 L32.0527757,4.6 L32.0526316,3.06666667 L42.4774196,3.06666667 Z M58,3.06666667 L58,4.6 L47.0390632,4.6 L47.5903678,3.06666667 L58,3.06666667 Z M29.4273684,3.06666667 C29.7105614,3.54004848 29.9306437,4.0548303 30.0684211,4.6 L30.0684211,4.6 L12.2105263,4.6 L12.2105263,3.06666667 Z M10.6842105,3.06666667 L10.6842105,4.6 L0,4.6 L0,3.06666667 L10.6842105,3.06666667 Z M41.4056725,0 L41.9462722,1.53333333 L32.05278,1.53333333 L32.0526316,0 L41.4056725,0 Z M58,0 L58,1.53333333 L48.1188427,1.53333333 L48.6466706,0 L58,0 Z M24.3905263,0 C25.9912083,0 27.4472798,0.581133333 28.5421053,1.53333333 L28.5421053,1.53333333 L12.2105263,1.53333333 L12.2105263,0 Z M10.6842105,0 L10.6842105,1.53333333 L0,1.53333333 L0,0 L10.6842105,0 Z" id="Combined-Shape"></path>
6
6
  </g>
7
7
  </g>
@@ -2,7 +2,7 @@
2
2
  <svg
3
3
  width="157"
4
4
  height="65"
5
- class="bx--footer-logo__logo"
5
+ class="c4d--footer-logo__logo"
6
6
  viewBox="0 0 157 65"
7
7
  version="1.1"
8
8
  xmlns="http://www.w3.org/2000/svg"
@@ -1,14 +1,14 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="64px" height="64px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>Group 3</title>
4
- <g id="visual-spec" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
- <g id="Card-group-video" transform="translate(-736.000000, -1746.000000)">
6
- <g id="Group-2-Copy-2" transform="translate(608.000000, 1658.000000)">
7
- <g id="Group-3" transform="translate(128.000000, 88.000000)">
8
- <circle id="Oval-Copy-3" fill-opacity="0.9" fill="#525252" cx="32" cy="32" r="32"></circle>
9
- <path d="M26.5555476,43.111135 C26.0032708,43.111135 25.5555476,42.6633959 25.5555476,42.1111111 L25.5555476,20.1111111 C25.5541311,19.7531358 25.7441673,19.4217049 26.0538295,19.2421008 C26.3634918,19.0624967 26.745539,19.0621192 27.0555476,19.2411111 L46.0555476,30.2411111 C46.368866,30.4186723 46.5625038,30.7509842 46.5625038,31.1111111 C46.5625038,31.4712381 46.368866,31.8035499 46.0555476,31.9811111 L27.0555476,42.9811111 C26.9031526,43.0674916 26.7307319,43.1123209 26.5555476,43.111135 Z" id="Path-Copy" fill="#F3F3F3" fill-rule="nonzero"></path>
10
- </g>
11
- </g>
2
+ <svg width="64px" height="64px" viewBox="0 0 64 64" slot="icon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>Group 3</title>
4
+ <g id="visual-spec" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="Card-group-video" transform="translate(-736.000000, -1746.000000)">
6
+ <g id="Group-2-Copy-2" transform="translate(608.000000, 1658.000000)">
7
+ <g id="Group-3" transform="translate(128.000000, 88.000000)">
8
+ <circle id="Oval-Copy-3" fill-opacity="0.9" fill="#525252" cx="32" cy="32" r="32"></circle>
9
+ <path d="M26.5555476,43.111135 C26.0032708,43.111135 25.5555476,42.6633959 25.5555476,42.1111111 L25.5555476,20.1111111 C25.5541311,19.7531358 25.7441673,19.4217049 26.0538295,19.2421008 C26.3634918,19.0624967 26.745539,19.0621192 27.0555476,19.2411111 L46.0555476,30.2411111 C46.368866,30.4186723 46.5625038,30.7509842 46.5625038,31.1111111 C46.5625038,31.4712381 46.368866,31.8035499 46.0555476,31.9811111 L27.0555476,42.9811111 C26.9031526,43.0674916 26.7307319,43.1123209 26.5555476,43.111135 Z" id="Path-Copy" fill="#F3F3F3" fill-rule="nonzero"></path>
12
10
  </g>
11
+ </g>
13
12
  </g>
13
+ </g>
14
14
  </svg>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibmdotcom-styles",
3
3
  "description": "Carbon for IBM.com Styles",
4
- "version": "2.0.0-beta.1",
4
+ "version": "2.0.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/ibm-dotcom-styles.min.css",
7
7
  "module": "src/scss",
@@ -30,10 +30,10 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@carbon/icons-react": "^11.21.0",
33
- "@carbon/layout": "^11.15.0",
34
- "@carbon/styles": "^1.30.0",
33
+ "@carbon/layout": "^11.20.0",
34
+ "@carbon/styles": "^1.36.0",
35
35
  "@carbon/telemetry": "0.1.0",
36
- "@carbon/type": "^11.19.0"
36
+ "@carbon/type": "^11.25.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@carbon/themes": "^11.20.0",
@@ -47,5 +47,6 @@
47
47
  "require-dir": "^1.2.0",
48
48
  "sass": "~1.62.0",
49
49
  "sass-loader": "^13.0.0"
50
- }
50
+ },
51
+ "gitHead": "fc2c90dbba9c49f762bc3f85bef6842a6cae225e"
51
52
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2021
2
+ * Copyright IBM Corp. 2016, 2023
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -13,7 +13,7 @@
13
13
  @use '@carbon/styles/scss/components/button' as *;
14
14
 
15
15
  @mixin back-to-top {
16
- :host(#{$dds-prefix}-back-to-top) {
16
+ :host(#{$c4d-prefix}-back-to-top) {
17
17
  position: sticky;
18
18
  bottom: 0;
19
19
  display: flex;
@@ -25,7 +25,6 @@
25
25
  .#{$prefix}--back-to-top__btn {
26
26
  position: relative;
27
27
  bottom: $spacing-10;
28
- border-color: $background;
29
28
  border-radius: 50%;
30
29
  width: $spacing-09;
31
30
  height: $spacing-09;
@@ -44,7 +43,7 @@
44
43
  }
45
44
 
46
45
  @media print {
47
- :host(#{$dds-prefix}-back-to-top) {
46
+ :host(#{$c4d-prefix}-back-to-top) {
48
47
  display: none;
49
48
  }
50
49
  }
@@ -9,15 +9,24 @@
9
9
  @use '@carbon/styles/scss/config' as *;
10
10
  @use '@carbon/styles/scss/spacing' as *;
11
11
  @use '@carbon/styles/scss/theme' as *;
12
+ @use '@carbon/styles/scss/utilities' as *;
13
+ @use '@carbon/web-components/scss/components/tooltip/tooltip' as *;
12
14
  @use '../../globals/vars' as *;
13
15
  @use '../image';
14
16
 
15
17
  @mixin background-media {
16
- :host(#{$dds-prefix}-background-media) {
18
+ :host(#{$c4d-prefix}-background-media) {
17
19
  position: relative;
18
20
  height: 100%;
19
21
  display: block;
20
22
  outline: none;
23
+
24
+ .#{$c4d-prefix}--image__img {
25
+ width: 100%;
26
+ height: 100%;
27
+ object-fit: cover;
28
+ display: block;
29
+ }
21
30
  }
22
31
 
23
32
  .#{$prefix}--background-media--mobile-position {
@@ -85,4 +94,33 @@
85
94
  z-index: 2;
86
95
  cursor: pointer;
87
96
  }
97
+
98
+ .#{$prefix}--background-media--video {
99
+ aspect-ratio: 16 / 9; /* stylelint-disable-line property-no-unknown */
100
+ @include breakpoint(md) {
101
+ aspect-ratio: auto; /* stylelint-disable-line property-no-unknown */
102
+ }
103
+ }
104
+
105
+ .#{$prefix}--video-player__controls[hasTooltip] {
106
+ @include tooltip--trigger('definition', top);
107
+ @include tooltip--placement('definition', 'top', 'end');
108
+
109
+ position: absolute;
110
+ border: $spacing-01 solid transparent;
111
+ background-clip: padding-box;
112
+
113
+ &:focus {
114
+ border-color: $text-primary;
115
+ outline: $spacing-01 solid $background;
116
+ }
117
+ }
118
+
119
+ .#{$prefix}--background-media--container {
120
+ contain: layout;
121
+ }
122
+
123
+ .#{$prefix}--background-media--item {
124
+ height: 100%;
125
+ }
88
126
  }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Copyright IBM Corp. 2016, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ @use '@carbon/styles/scss/config' as *;
9
+ @use '@carbon/styles/scss/spacing' as *;
10
+ @use '@carbon/styles/scss/theme' as *;
11
+ @use '../../globals/vars' as *;
12
+ @use '../../../../carbon-web-components/src/components/button/button';
13
+
14
+ @mixin button {
15
+ :host(#{$c4d-prefix}-button) {
16
+ @extend :host(#{$prefix}-button);
17
+
18
+ svg {
19
+ @extend .#{$prefix}--btn__icon;
20
+ }
21
+
22
+ .#{$prefix}--btn--hidden {
23
+ display: none;
24
+ visibility: hidden;
25
+
26
+ @media print {
27
+ display: inline-block;
28
+ visibility: visible;
29
+ font-weight: 200;
30
+ color: $text-primary;
31
+
32
+ span {
33
+ font-weight: 600;
34
+ margin-left: calc(-1 * #{$spacing-02});
35
+ margin-right: $spacing-02;
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright IBM Corp. 2023
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
7
+
8
+ @forward 'button';
9
+ @use 'button';
10
+
11
+ @include button.button;
@@ -7,59 +7,35 @@
7
7
 
8
8
  @use '@carbon/styles/scss/breakpoint' as *;
9
9
  @use '@carbon/styles/scss/colors' as *;
10
- @use '@carbon/styles/scss/components/button' as *;
11
10
  @use '@carbon/styles/scss/config' as *;
12
11
  @use '@carbon/styles/scss/motion' as *;
13
12
  @use '@carbon/styles/scss/spacing' as *;
13
+
14
14
  @use '../../globals/vars' as *;
15
15
  @use '../lightbox-media-viewer';
16
+ @use '../button';
16
17
 
17
18
  @mixin button-group {
18
- @include button;
19
-
20
- .#{$prefix}--button-group,
21
- :host(#{$dds-prefix}-button-group),
22
- :host(#{$dds-prefix}-leadspace-block-cta) {
23
- --#{$dds-prefix}--button-group--item-count: 3;
19
+ :host(#{$c4d-prefix}-button-group-item),
20
+ :host(#{$c4d-prefix}-button-cta) {
21
+ @extend :host(#{$c4d-prefix}-button);
24
22
 
25
- display: grid;
26
- grid-template-columns: 1fr;
27
- grid-auto-rows: 1fr;
28
- grid-gap: $spacing-05;
29
-
30
- @include breakpoint(lg) {
31
- display: inline-grid;
32
- grid-template-columns: repeat(
33
- var(--#{$dds-prefix}--button-group--item-count),
34
- 1fr
35
- );
36
- }
37
-
38
- @media print {
39
- display: block;
40
- }
41
- }
42
-
43
- .#{$prefix}--button-group-item,
44
- :host(#{$dds-prefix}-button-group-item),
45
- :host(#{$dds-prefix}-button-cta) {
46
- max-width: carbon--mini-units(40);
23
+ outline: none;
24
+ max-width: 100%;
47
25
  min-width: 0;
48
26
 
49
27
  @media print {
50
- max-width: rem(640px);
28
+ max-width: 100%;
51
29
  margin-bottom: $spacing-05;
52
30
  display: block;
53
31
  }
54
32
 
55
33
  .#{$prefix}--btn {
56
- font-size: $spacing-05;
57
- position: relative;
58
34
  width: 100%;
59
- height: 100%;
60
35
  word-break: break-word;
61
36
  transition: all $duration-fast-01 motion(entrance, productive), width 0s,
62
37
  height 0s;
38
+ max-width: 100%;
63
39
 
64
40
  @media print {
65
41
  background: $white-0;
@@ -99,26 +75,33 @@
99
75
  }
100
76
  }
101
77
 
102
- :host(#{$dds-prefix}-button-group-item) {
103
- ::slotted([slot='icon']) {
104
- position: absolute;
105
- right: $spacing-05;
106
- top: 50%;
107
- transform: translateY(-50%);
108
- flex-shrink: 0;
78
+ :host(#{$c4d-prefix}-button-group),
79
+ :host(#{$c4d-prefix}-leadspace-block-cta) {
80
+ --#{$c4d-prefix}--button-group--item-count: 3;
109
81
 
110
- @media print {
111
- fill: $gray-100;
112
- }
82
+ display: grid;
83
+ grid-template-columns: 1fr;
84
+ grid-auto-rows: 1fr;
85
+ grid-gap: $spacing-05;
86
+
87
+ @include breakpoint(md) {
88
+ display: inline-grid;
89
+ grid-template-columns: repeat(
90
+ var(--#{$c4d-prefix}--button-group--item-count),
91
+ 1fr
92
+ );
113
93
  }
114
- }
115
94
 
116
- .#{$prefix}--button-group-item--pseudo {
117
- position: absolute;
118
- clip: rect(0, 0, 0, 0);
95
+ @media print {
96
+ display: block;
97
+ }
98
+ }
119
99
 
120
- .#{$prefix}--btn {
121
- width: auto;
100
+ :host(#{$c4d-prefix}-button-group-item) {
101
+ ::slotted([slot='icon']) {
102
+ @media print {
103
+ fill: $gray-100;
104
+ }
122
105
  }
123
106
  }
124
107
  }