@salesforce/design-system-react 0.10.43 → 0.10.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/brand-band/__docs__/__snapshots__/storybook-stories.storyshot +47 -157
- package/components/brand-band/__docs__/storybook-stories.jsx +4 -2
- package/components/brand-band/__examples__/{lightning-blue-theme.jsx → group-image.jsx} +1 -11
- package/components/brand-band/__examples__/no-image.jsx +1 -2
- package/{lib/components/brand-band/__examples__/lightning-blue-theme.jsx → components/brand-band/__examples__/user-image.jsx} +1 -11
- package/components/brand-band/check-props.js +18 -0
- package/components/brand-band/component.json +8 -4
- package/components/brand-band/index.jsx +23 -66
- package/components/brand-band.d.ts +1 -26
- package/components/combobox/__tests__/combobox.browser-test.jsx +18 -0
- package/components/combobox/combobox.jsx +4 -1
- package/components/component-docs.json +9 -38
- package/components/site-stories.js +8 -4
- package/lib/components/brand-band/__docs__/__snapshots__/storybook-stories.storyshot +47 -157
- package/lib/components/brand-band/__docs__/storybook-stories.jsx +4 -2
- package/lib/components/brand-band/__examples__/group-image.jsx +12 -0
- package/lib/components/brand-band/__examples__/no-image.jsx +1 -2
- package/lib/components/brand-band/__examples__/user-image.jsx +12 -0
- package/lib/components/brand-band/check-props.js +29 -0
- package/lib/components/brand-band/component.json +8 -4
- package/lib/components/brand-band/index.js +9 -50
- package/lib/components/brand-band.d.ts +1 -26
- package/lib/components/combobox/__tests__/combobox.browser-test.jsx +18 -0
- package/lib/components/combobox/combobox.js +6 -2
- package/lib/components/component-docs.json +9 -38
- package/lib/components/site-stories.js +6 -3
- package/lib/package.json +10 -6
- package/module/components/brand-band/__docs__/__snapshots__/storybook-stories.storyshot +47 -157
- package/module/components/brand-band/__docs__/storybook-stories.js +6 -3
- package/module/components/brand-band/__docs__/storybook-stories.js.map +1 -1
- package/module/components/brand-band/__examples__/{lightning-blue-theme.js → group-image.js} +4 -9
- package/module/components/brand-band/__examples__/group-image.js.map +1 -0
- package/module/components/brand-band/__examples__/no-image.js +2 -4
- package/module/components/brand-band/__examples__/no-image.js.map +1 -1
- package/module/components/brand-band/__examples__/user-image.js +52 -0
- package/module/components/brand-band/__examples__/user-image.js.map +1 -0
- package/module/components/brand-band/check-props.js +20 -0
- package/module/components/brand-band/check-props.js.map +1 -0
- package/module/components/brand-band/component.json +8 -4
- package/module/components/brand-band/index.js +10 -51
- package/module/components/brand-band/index.js.map +1 -1
- package/module/components/brand-band.d.ts +1 -26
- package/module/components/combobox/__tests__/combobox.browser-test.js +22 -0
- package/module/components/combobox/__tests__/combobox.browser-test.js.map +1 -1
- package/module/components/combobox/combobox.js +6 -2
- package/module/components/combobox/combobox.js.map +1 -1
- package/module/components/component-docs.json +9 -38
- package/module/components/site-stories.js +6 -3
- package/module/components/site-stories.js.map +1 -1
- package/package.json +10 -6
- package/module/components/brand-band/__examples__/lightning-blue-theme.js.map +0 -1
|
@@ -1148,17 +1148,8 @@
|
|
|
1148
1148
|
"dependencies": []
|
|
1149
1149
|
},
|
|
1150
1150
|
"brand-band": {
|
|
1151
|
-
"description": "The brand band provides theming capability that adds personality and improves information density and contrast
|
|
1151
|
+
"description": "The brand band provides theming capability that adds personality and improves information density and contrast.",
|
|
1152
1152
|
"methods": [
|
|
1153
|
-
{
|
|
1154
|
-
"name": "injectLightningBlueStyles",
|
|
1155
|
-
"docblock": null,
|
|
1156
|
-
"modifiers": [
|
|
1157
|
-
"static"
|
|
1158
|
-
],
|
|
1159
|
-
"params": [],
|
|
1160
|
-
"returns": null
|
|
1161
|
-
},
|
|
1162
1153
|
{
|
|
1163
1154
|
"name": "getId",
|
|
1164
1155
|
"docblock": null,
|
|
@@ -1211,6 +1202,14 @@
|
|
|
1211
1202
|
{
|
|
1212
1203
|
"value": "'none'",
|
|
1213
1204
|
"computed": false
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"value": "'group'",
|
|
1208
|
+
"computed": false
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"value": "'user'",
|
|
1212
|
+
"computed": false
|
|
1214
1213
|
}
|
|
1215
1214
|
]
|
|
1216
1215
|
},
|
|
@@ -1273,34 +1272,6 @@
|
|
|
1273
1272
|
},
|
|
1274
1273
|
"required": false,
|
|
1275
1274
|
"description": "Custom styles to be passed to the component"
|
|
1276
|
-
},
|
|
1277
|
-
"styleContainer": {
|
|
1278
|
-
"type": {
|
|
1279
|
-
"name": "object"
|
|
1280
|
-
},
|
|
1281
|
-
"required": false,
|
|
1282
|
-
"description": "Custom styles to be passed to the component container"
|
|
1283
|
-
},
|
|
1284
|
-
"theme": {
|
|
1285
|
-
"type": {
|
|
1286
|
-
"name": "enum",
|
|
1287
|
-
"value": [
|
|
1288
|
-
{
|
|
1289
|
-
"value": "'default'",
|
|
1290
|
-
"computed": false
|
|
1291
|
-
},
|
|
1292
|
-
{
|
|
1293
|
-
"value": "'lightning-blue'",
|
|
1294
|
-
"computed": false
|
|
1295
|
-
}
|
|
1296
|
-
]
|
|
1297
|
-
},
|
|
1298
|
-
"required": false,
|
|
1299
|
-
"description": "Different brand band styling.\nNOTE: using 'lightning-blue' may result in incorrect styling depending on server CSP settings. See opening component documentation above for details.",
|
|
1300
|
-
"defaultValue": {
|
|
1301
|
-
"value": "'default'",
|
|
1302
|
-
"computed": false
|
|
1303
|
-
}
|
|
1304
1275
|
}
|
|
1305
1276
|
},
|
|
1306
1277
|
"route": "brand-band",
|
|
@@ -62,9 +62,6 @@ var documentationSiteLiveExamples = {
|
|
|
62
62
|
path: require('raw-loader!@salesforce/design-system-react/components/badge/__examples__/with-icon.jsx')
|
|
63
63
|
}],
|
|
64
64
|
'brand-band': [{
|
|
65
|
-
heading: 'Lightning Blue',
|
|
66
|
-
path: require('raw-loader!@salesforce/design-system-react/components/brand-band/__examples__/lightning-blue-theme.jsx')
|
|
67
|
-
}, {
|
|
68
65
|
heading: 'Default',
|
|
69
66
|
path: require('raw-loader!@salesforce/design-system-react/components/brand-band/__examples__/default.jsx')
|
|
70
67
|
}, {
|
|
@@ -76,6 +73,12 @@ var documentationSiteLiveExamples = {
|
|
|
76
73
|
}, {
|
|
77
74
|
heading: 'No Image',
|
|
78
75
|
path: require('raw-loader!@salesforce/design-system-react/components/brand-band/__examples__/no-image.jsx')
|
|
76
|
+
}, {
|
|
77
|
+
heading: 'User Image',
|
|
78
|
+
path: require('raw-loader!@salesforce/design-system-react/components/brand-band/__examples__/user-image.jsx')
|
|
79
|
+
}, {
|
|
80
|
+
heading: 'Group Image',
|
|
81
|
+
path: require('raw-loader!@salesforce/design-system-react/components/brand-band/__examples__/group-image.jsx')
|
|
79
82
|
}],
|
|
80
83
|
breadcrumb: [{
|
|
81
84
|
heading: 'Base',
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "design-system-react",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.44",
|
|
4
4
|
"description": "Salesforce Lightning Design System for React",
|
|
5
5
|
"license": "SEE LICENSE IN README.md",
|
|
6
6
|
"engines": {},
|
|
@@ -222,10 +222,6 @@
|
|
|
222
222
|
},
|
|
223
223
|
"SLDS-component-path": "/components/brand-band",
|
|
224
224
|
"site-stories": [
|
|
225
|
-
{
|
|
226
|
-
"heading": "Lightning Blue",
|
|
227
|
-
"path": "/__examples__/lightning-blue-theme.jsx"
|
|
228
|
-
},
|
|
229
225
|
{
|
|
230
226
|
"heading": "Default",
|
|
231
227
|
"path": "/__examples__/default.jsx"
|
|
@@ -241,6 +237,14 @@
|
|
|
241
237
|
{
|
|
242
238
|
"heading": "No Image",
|
|
243
239
|
"path": "/__examples__/no-image.jsx"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"heading": "User Image",
|
|
243
|
+
"path": "/__examples__/user-image.jsx"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"heading": "Group Image",
|
|
247
|
+
"path": "/__examples__/group-image.jsx"
|
|
244
248
|
}
|
|
245
249
|
],
|
|
246
250
|
"url-slug": "brand-band"
|
|
@@ -1845,6 +1849,6 @@
|
|
|
1845
1849
|
}
|
|
1846
1850
|
},
|
|
1847
1851
|
"SLDS": {
|
|
1848
|
-
"gitURL": "^2.
|
|
1852
|
+
"gitURL": "^2.14.3"
|
|
1849
1853
|
}
|
|
1850
1854
|
}
|
|
@@ -14,33 +14,13 @@ exports[`DOM snapshots SLDSBrandBand Default (medium) 1`] = `
|
|
|
14
14
|
}
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"height": "100%",
|
|
21
|
-
"position": "relative",
|
|
22
|
-
"width": "100%",
|
|
23
|
-
"zIndex": 1,
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
>
|
|
27
|
-
<style>
|
|
28
|
-
.slds-brand-band.dsr-brand-band_lightning-blue:before {
|
|
29
|
-
background-image: url(/assets/images/themes/oneSalesforce/banner-brand-default.png), linear-gradient(to top, rgba(175, 197, 222, 0) 0, #1B5F9E);
|
|
30
|
-
}
|
|
31
|
-
.slds-brand-band.dsr-brand-band_lightning-blue:after {
|
|
32
|
-
background-image: linear-gradient(to bottom, rgba(175, 197, 222, 0) 60%, #AFC5DE);
|
|
33
|
-
}
|
|
34
|
-
</style>
|
|
35
|
-
<div
|
|
36
|
-
className="slds-brand-band slds-brand-band_medium dsr-brand-band_lightning-blue"
|
|
37
|
-
id="brand-band-default"
|
|
38
|
-
/>
|
|
39
|
-
</div>
|
|
17
|
+
className="slds-brand-band slds-brand-band_medium"
|
|
18
|
+
id="brand-band-default"
|
|
19
|
+
/>
|
|
40
20
|
</div>
|
|
41
21
|
`;
|
|
42
22
|
|
|
43
|
-
exports[`DOM snapshots SLDSBrandBand Image
|
|
23
|
+
exports[`DOM snapshots SLDSBrandBand Group Image 1`] = `
|
|
44
24
|
<div
|
|
45
25
|
style={
|
|
46
26
|
Object {
|
|
@@ -54,39 +34,13 @@ exports[`DOM snapshots SLDSBrandBand Image with background size cover 1`] = `
|
|
|
54
34
|
}
|
|
55
35
|
>
|
|
56
36
|
<div
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"height": "100%",
|
|
61
|
-
"position": "relative",
|
|
62
|
-
"width": "100%",
|
|
63
|
-
"zIndex": 1,
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
>
|
|
67
|
-
<style>
|
|
68
|
-
.slds-brand-band.dsr-brand-band_lightning-blue:before {
|
|
69
|
-
background-image: url(/assets/images/themes/oneSalesforce/banner-brand-default.png), linear-gradient(to top, rgba(175, 197, 222, 0) 0, #1B5F9E);
|
|
70
|
-
}
|
|
71
|
-
.slds-brand-band.dsr-brand-band_lightning-blue:after {
|
|
72
|
-
background-image: linear-gradient(to bottom, rgba(175, 197, 222, 0) 60%, #AFC5DE);
|
|
73
|
-
}
|
|
74
|
-
</style>
|
|
75
|
-
<div
|
|
76
|
-
className="slds-brand-band slds-brand-band_large slds-brand-band_cover dsr-brand-band_lightning-blue custom-brand-band-class"
|
|
77
|
-
id="brand-band-large"
|
|
78
|
-
>
|
|
79
|
-
<span
|
|
80
|
-
className="slds-assistive-text"
|
|
81
|
-
>
|
|
82
|
-
Hello World!
|
|
83
|
-
</span>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
37
|
+
className="slds-brand-band slds-brand-band_medium slds-brand-band_group"
|
|
38
|
+
id="brand-band-user-group"
|
|
39
|
+
/>
|
|
86
40
|
</div>
|
|
87
41
|
`;
|
|
88
42
|
|
|
89
|
-
exports[`DOM snapshots SLDSBrandBand
|
|
43
|
+
exports[`DOM snapshots SLDSBrandBand Image with background size cover 1`] = `
|
|
90
44
|
<div
|
|
91
45
|
style={
|
|
92
46
|
Object {
|
|
@@ -100,39 +54,19 @@ exports[`DOM snapshots SLDSBrandBand Large 1`] = `
|
|
|
100
54
|
}
|
|
101
55
|
>
|
|
102
56
|
<div
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
"background": "rgb(176, 196, 223)",
|
|
106
|
-
"height": "100%",
|
|
107
|
-
"position": "relative",
|
|
108
|
-
"width": "100%",
|
|
109
|
-
"zIndex": 1,
|
|
110
|
-
}
|
|
111
|
-
}
|
|
57
|
+
className="slds-brand-band slds-brand-band_large slds-brand-band_cover custom-brand-band-class"
|
|
58
|
+
id="brand-band-large"
|
|
112
59
|
>
|
|
113
|
-
<
|
|
114
|
-
|
|
115
|
-
background-image: url(/assets/images/themes/oneSalesforce/banner-brand-default.png), linear-gradient(to top, rgba(175, 197, 222, 0) 0, #1B5F9E);
|
|
116
|
-
}
|
|
117
|
-
.slds-brand-band.dsr-brand-band_lightning-blue:after {
|
|
118
|
-
background-image: linear-gradient(to bottom, rgba(175, 197, 222, 0) 60%, #AFC5DE);
|
|
119
|
-
}
|
|
120
|
-
</style>
|
|
121
|
-
<div
|
|
122
|
-
className="slds-brand-band slds-brand-band_large dsr-brand-band_lightning-blue custom-brand-band-class"
|
|
123
|
-
id="brand-band-large"
|
|
60
|
+
<span
|
|
61
|
+
className="slds-assistive-text"
|
|
124
62
|
>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
>
|
|
128
|
-
Hello World!
|
|
129
|
-
</span>
|
|
130
|
-
</div>
|
|
63
|
+
Hello World!
|
|
64
|
+
</span>
|
|
131
65
|
</div>
|
|
132
66
|
</div>
|
|
133
67
|
`;
|
|
134
68
|
|
|
135
|
-
exports[`DOM snapshots SLDSBrandBand
|
|
69
|
+
exports[`DOM snapshots SLDSBrandBand Large 1`] = `
|
|
136
70
|
<div
|
|
137
71
|
style={
|
|
138
72
|
Object {
|
|
@@ -146,38 +80,14 @@ exports[`DOM snapshots SLDSBrandBand Lightning Blue Theme 1`] = `
|
|
|
146
80
|
}
|
|
147
81
|
>
|
|
148
82
|
<div
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"background": "rgb(176, 196, 223)",
|
|
152
|
-
"height": "100%",
|
|
153
|
-
"position": "relative",
|
|
154
|
-
"width": "100%",
|
|
155
|
-
"zIndex": 1,
|
|
156
|
-
}
|
|
157
|
-
}
|
|
83
|
+
className="slds-brand-band slds-brand-band_large custom-brand-band-class"
|
|
84
|
+
id="brand-band-large"
|
|
158
85
|
>
|
|
159
|
-
<
|
|
160
|
-
|
|
161
|
-
background-image: url(/assets/images/themes/oneSalesforce/banner-brand-default.png), linear-gradient(to top, rgba(175, 197, 222, 0) 0, #1B5F9E);
|
|
162
|
-
}
|
|
163
|
-
.slds-brand-band.dsr-brand-band_lightning-blue:after {
|
|
164
|
-
background-image: linear-gradient(to bottom, rgba(175, 197, 222, 0) 60%, #AFC5DE);
|
|
165
|
-
}
|
|
166
|
-
</style>
|
|
167
|
-
<div
|
|
168
|
-
className="slds-brand-band slds-brand-band_medium dsr-brand-band_lightning-blue slds-p-around_small"
|
|
169
|
-
id="brand-band-lightning-blue"
|
|
86
|
+
<span
|
|
87
|
+
className="slds-assistive-text"
|
|
170
88
|
>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
>
|
|
174
|
-
<h3
|
|
175
|
-
className="slds-text-heading_label slds-truncate"
|
|
176
|
-
>
|
|
177
|
-
My App
|
|
178
|
-
</h3>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
89
|
+
Hello World!
|
|
90
|
+
</span>
|
|
181
91
|
</div>
|
|
182
92
|
</div>
|
|
183
93
|
`;
|
|
@@ -196,35 +106,15 @@ exports[`DOM snapshots SLDSBrandBand No Image 1`] = `
|
|
|
196
106
|
}
|
|
197
107
|
>
|
|
198
108
|
<div
|
|
109
|
+
className="slds-brand-band slds-brand-band_medium slds-brand-band_none"
|
|
110
|
+
id="brand-band-no-image"
|
|
199
111
|
style={
|
|
200
112
|
Object {
|
|
201
|
-
"
|
|
202
|
-
"border": "1px solid #eee",
|
|
203
|
-
"height": "100%",
|
|
204
|
-
"position": "relative",
|
|
205
|
-
"width": "100%",
|
|
113
|
+
"backgroundColor": "#eef4ff",
|
|
206
114
|
"zIndex": 1,
|
|
207
115
|
}
|
|
208
116
|
}
|
|
209
|
-
|
|
210
|
-
<style>
|
|
211
|
-
.slds-brand-band.dsr-brand-band_lightning-blue:before {
|
|
212
|
-
background-image: url(/assets/images/themes/oneSalesforce/banner-brand-default.png), linear-gradient(to top, rgba(175, 197, 222, 0) 0, #1B5F9E);
|
|
213
|
-
}
|
|
214
|
-
.slds-brand-band.dsr-brand-band_lightning-blue:after {
|
|
215
|
-
background-image: linear-gradient(to bottom, rgba(175, 197, 222, 0) 60%, #AFC5DE);
|
|
216
|
-
}
|
|
217
|
-
</style>
|
|
218
|
-
<div
|
|
219
|
-
className="slds-brand-band slds-brand-band_medium slds-brand-band_none dsr-brand-band_lightning-blue"
|
|
220
|
-
id="brand-band-no-image"
|
|
221
|
-
style={
|
|
222
|
-
Object {
|
|
223
|
-
"zIndex": 1,
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
/>
|
|
227
|
-
</div>
|
|
117
|
+
/>
|
|
228
118
|
</div>
|
|
229
119
|
`;
|
|
230
120
|
|
|
@@ -242,28 +132,28 @@ exports[`DOM snapshots SLDSBrandBand Small 1`] = `
|
|
|
242
132
|
}
|
|
243
133
|
>
|
|
244
134
|
<div
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
135
|
+
className="slds-brand-band slds-brand-band_small"
|
|
136
|
+
id="brand-band-small"
|
|
137
|
+
/>
|
|
138
|
+
</div>
|
|
139
|
+
`;
|
|
140
|
+
|
|
141
|
+
exports[`DOM snapshots SLDSBrandBand User Image 1`] = `
|
|
142
|
+
<div
|
|
143
|
+
style={
|
|
144
|
+
Object {
|
|
145
|
+
"bottom": "1rem",
|
|
146
|
+
"left": "1rem",
|
|
147
|
+
"overflow": "auto",
|
|
148
|
+
"position": "absolute",
|
|
149
|
+
"right": "1rem",
|
|
150
|
+
"top": "1rem",
|
|
253
151
|
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
background-image: linear-gradient(to bottom, rgba(175, 197, 222, 0) 60%, #AFC5DE);
|
|
261
|
-
}
|
|
262
|
-
</style>
|
|
263
|
-
<div
|
|
264
|
-
className="slds-brand-band slds-brand-band_small dsr-brand-band_lightning-blue"
|
|
265
|
-
id="brand-band-small"
|
|
266
|
-
/>
|
|
267
|
-
</div>
|
|
152
|
+
}
|
|
153
|
+
>
|
|
154
|
+
<div
|
|
155
|
+
className="slds-brand-band slds-brand-band_medium slds-brand-band_user"
|
|
156
|
+
id="brand-band-user-image"
|
|
157
|
+
/>
|
|
268
158
|
</div>
|
|
269
159
|
`;
|
|
@@ -4,10 +4,11 @@ import { storiesOf } from '@storybook/react'; // import IconSettings from '../..
|
|
|
4
4
|
import { BRAND_BAND } from '../../../utilities/constants';
|
|
5
5
|
import Default from '../__examples__/default';
|
|
6
6
|
import Large from '../__examples__/large';
|
|
7
|
-
import LightningBlueTheme from '../__examples__/lightning-blue-theme';
|
|
8
7
|
import NoImage from '../__examples__/no-image';
|
|
9
8
|
import Small from '../__examples__/small';
|
|
10
9
|
import BackgroundCover from '../__examples__/background-cover';
|
|
10
|
+
import UserImage from '../__examples__/user-image';
|
|
11
|
+
import GroupImage from '../__examples__/group-image';
|
|
11
12
|
storiesOf(BRAND_BAND, module).addDecorator(function (getStory) {
|
|
12
13
|
return /*#__PURE__*/React.createElement("div", {
|
|
13
14
|
style: {
|
|
@@ -27,8 +28,10 @@ storiesOf(BRAND_BAND, module).addDecorator(function (getStory) {
|
|
|
27
28
|
return /*#__PURE__*/React.createElement(Large, null);
|
|
28
29
|
}).add('No Image', function () {
|
|
29
30
|
return /*#__PURE__*/React.createElement(NoImage, null);
|
|
30
|
-
}).add('
|
|
31
|
-
return /*#__PURE__*/React.createElement(
|
|
31
|
+
}).add('User Image', function () {
|
|
32
|
+
return /*#__PURE__*/React.createElement(UserImage, null);
|
|
33
|
+
}).add('Group Image', function () {
|
|
34
|
+
return /*#__PURE__*/React.createElement(GroupImage, null);
|
|
32
35
|
}).add('Image with background size cover', function () {
|
|
33
36
|
return /*#__PURE__*/React.createElement(BackgroundCover, null);
|
|
34
37
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../.tmp-es/components/brand-band/__docs__/storybook-stories.jsx"],"names":["React","storiesOf","BRAND_BAND","Default","Large","
|
|
1
|
+
{"version":3,"sources":["../../../../.tmp-es/components/brand-band/__docs__/storybook-stories.jsx"],"names":["React","storiesOf","BRAND_BAND","Default","Large","NoImage","Small","BackgroundCover","UserImage","GroupImage","module","addDecorator","getStory","bottom","left","overflow","position","right","top","add"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,SAAT,QAA0B,kBAA1B,C,CACA;;AAEA,SAASC,UAAT,QAA2B,8BAA3B;AACA,OAAOC,OAAP,MAAoB,yBAApB;AACA,OAAOC,KAAP,MAAkB,uBAAlB;AACA,OAAOC,OAAP,MAAoB,0BAApB;AACA,OAAOC,KAAP,MAAkB,uBAAlB;AACA,OAAOC,eAAP,MAA4B,kCAA5B;AACA,OAAOC,SAAP,MAAsB,4BAAtB;AACA,OAAOC,UAAP,MAAuB,6BAAvB;AAEAR,SAAS,CAACC,UAAD,EAAaQ,MAAb,CAAT,CACEC,YADF,CACe,UAACC,QAAD;AAAA,sBACb;AACC,IAAA,KAAK,EAAE;AACNC,MAAAA,MAAM,EAAE,MADF;AAENC,MAAAA,IAAI,EAAE,MAFA;AAGNC,MAAAA,QAAQ,EAAE,MAHJ;AAINC,MAAAA,QAAQ,EAAE,UAJJ;AAKNC,MAAAA,KAAK,EAAE,MALD;AAMNC,MAAAA,GAAG,EAAE;AANC;AADR,KAUEN,QAAQ,EAVV,CADa;AAAA,CADf,EAeEO,GAfF,CAeM,kBAfN,EAe0B;AAAA,sBAAM,oBAAC,OAAD,OAAN;AAAA,CAf1B,EAgBEA,GAhBF,CAgBM,OAhBN,EAgBe;AAAA,sBAAM,oBAAC,KAAD,OAAN;AAAA,CAhBf,EAiBEA,GAjBF,CAiBM,OAjBN,EAiBe;AAAA,sBAAM,oBAAC,KAAD,OAAN;AAAA,CAjBf,EAkBEA,GAlBF,CAkBM,UAlBN,EAkBkB;AAAA,sBAAM,oBAAC,OAAD,OAAN;AAAA,CAlBlB,EAmBEA,GAnBF,CAmBM,YAnBN,EAmBoB;AAAA,sBAAM,oBAAC,SAAD,OAAN;AAAA,CAnBpB,EAoBEA,GApBF,CAoBM,aApBN,EAoBqB;AAAA,sBAAM,oBAAC,UAAD,OAAN;AAAA,CApBrB,EAqBEA,GArBF,CAqBM,kCArBN,EAqB0C;AAAA,sBAAM,oBAAC,eAAD,OAAN;AAAA,CArB1C","sourcesContent":["import React from 'react';\nimport { storiesOf } from '@storybook/react';\n// import IconSettings from '../../icon-settings';\n\nimport { BRAND_BAND } from '../../../utilities/constants';\nimport Default from '../__examples__/default';\nimport Large from '../__examples__/large';\nimport NoImage from '../__examples__/no-image';\nimport Small from '../__examples__/small';\nimport BackgroundCover from '../__examples__/background-cover';\nimport UserImage from '../__examples__/user-image';\nimport GroupImage from '../__examples__/group-image';\n\nstoriesOf(BRAND_BAND, module)\n\t.addDecorator((getStory) => (\n\t\t<div\n\t\t\tstyle={{\n\t\t\t\tbottom: '1rem',\n\t\t\t\tleft: '1rem',\n\t\t\t\toverflow: 'auto',\n\t\t\t\tposition: 'absolute',\n\t\t\t\tright: '1rem',\n\t\t\t\ttop: '1rem',\n\t\t\t}}\n\t\t>\n\t\t\t{getStory()}\n\t\t</div>\n\t))\n\t.add('Default (medium)', () => <Default />)\n\t.add('Small', () => <Small />)\n\t.add('Large', () => <Large />)\n\t.add('No Image', () => <NoImage />)\n\t.add('User Image', () => <UserImage />)\n\t.add('Group Image', () => <GroupImage />)\n\t.add('Image with background size cover', () => <BackgroundCover />);\n"],"file":"storybook-stories.js"}
|
package/module/components/brand-band/__examples__/{lightning-blue-theme.js → group-image.js}
RENAMED
|
@@ -38,14 +38,9 @@ var Example = /*#__PURE__*/function (_React$Component) {
|
|
|
38
38
|
key: "render",
|
|
39
39
|
value: function render() {
|
|
40
40
|
return /*#__PURE__*/React.createElement(BrandBand, {
|
|
41
|
-
id: "brand-band-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
45
|
-
className: "slds-box slds-theme_default"
|
|
46
|
-
}, /*#__PURE__*/React.createElement("h3", {
|
|
47
|
-
className: "slds-text-heading_label slds-truncate"
|
|
48
|
-
}, "My App")));
|
|
41
|
+
id: "brand-band-user-group",
|
|
42
|
+
image: "group"
|
|
43
|
+
});
|
|
49
44
|
}
|
|
50
45
|
}]);
|
|
51
46
|
|
|
@@ -54,4 +49,4 @@ var Example = /*#__PURE__*/function (_React$Component) {
|
|
|
54
49
|
|
|
55
50
|
Example.displayName = 'BrandBandExample';
|
|
56
51
|
export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime
|
|
57
|
-
//# sourceMappingURL=
|
|
52
|
+
//# sourceMappingURL=group-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../.tmp-es/components/brand-band/__examples__/group-image.jsx"],"names":["React","BrandBand","Example","Component","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,mCAAtB,C,CAAiD;;IAE3CC,O;;;;;;;;;;;;;WACL,kBAAS;AACR,0BAAO,oBAAC,SAAD;AAAW,QAAA,EAAE,EAAC,uBAAd;AAAsC,QAAA,KAAK,EAAC;AAA5C,QAAP;AACA;;;;EAHoBF,KAAK,CAACG,S;;AAM5BD,OAAO,CAACE,WAAR,GAAsB,kBAAtB;AAEA,eAAeF,OAAf,C,CAAwB","sourcesContent":["import React from 'react';\nimport BrandBand from '~/components/brand-band'; // `~` is replaced with design-system-react at runtime\n\nclass Example extends React.Component {\n\trender() {\n\t\treturn <BrandBand id=\"brand-band-user-group\" image=\"group\" />;\n\t}\n}\n\nExample.displayName = 'BrandBandExample';\n\nexport default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime\n"],"file":"group-image.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../.tmp-es/components/brand-band/__examples__/no-image.jsx"],"names":["React","BrandBand","Example","zIndex","
|
|
1
|
+
{"version":3,"sources":["../../../../.tmp-es/components/brand-band/__examples__/no-image.jsx"],"names":["React","BrandBand","Example","zIndex","backgroundColor","Component","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,mCAAtB,C,CAAiD;;IAE3CC,O;;;;;;;;;;;;;WACL,kBAAS;AACR,0BACC,oBAAC,SAAD;AACC,QAAA,EAAE,EAAC,qBADJ;AAEC,QAAA,KAAK,EAAC,MAFP;AAGC,QAAA,KAAK,EAAE;AAAEC,UAAAA,MAAM,EAAE,CAAV;AAAaC,UAAAA,eAAe,EAAE;AAA9B;AAHR,QADD;AAOA;;;;EAToBJ,KAAK,CAACK,S;;AAY5BH,OAAO,CAACI,WAAR,GAAsB,kBAAtB;AAEA,eAAeJ,OAAf,C,CAAwB","sourcesContent":["import React from 'react';\nimport BrandBand from '~/components/brand-band'; // `~` is replaced with design-system-react at runtime\n\nclass Example extends React.Component {\n\trender() {\n\t\treturn (\n\t\t\t<BrandBand\n\t\t\t\tid=\"brand-band-no-image\"\n\t\t\t\timage=\"none\"\n\t\t\t\tstyle={{ zIndex: 1, backgroundColor: '#eef4ff' }}\n\t\t\t/>\n\t\t);\n\t}\n}\n\nExample.displayName = 'BrandBandExample';\n\nexport default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime\n"],"file":"no-image.js"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
2
|
+
|
|
3
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
|
+
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6
|
+
|
|
7
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
8
|
+
|
|
9
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10
|
+
|
|
11
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
|
+
|
|
13
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
|
+
|
|
15
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
16
|
+
|
|
17
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
18
|
+
|
|
19
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
20
|
+
|
|
21
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
22
|
+
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import BrandBand from "../../../../components/brand-band"; // `~` is replaced with design-system-react at runtime
|
|
25
|
+
|
|
26
|
+
var Example = /*#__PURE__*/function (_React$Component) {
|
|
27
|
+
_inherits(Example, _React$Component);
|
|
28
|
+
|
|
29
|
+
var _super = _createSuper(Example);
|
|
30
|
+
|
|
31
|
+
function Example() {
|
|
32
|
+
_classCallCheck(this, Example);
|
|
33
|
+
|
|
34
|
+
return _super.apply(this, arguments);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
_createClass(Example, [{
|
|
38
|
+
key: "render",
|
|
39
|
+
value: function render() {
|
|
40
|
+
return /*#__PURE__*/React.createElement(BrandBand, {
|
|
41
|
+
id: "brand-band-user-image",
|
|
42
|
+
image: "user"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}]);
|
|
46
|
+
|
|
47
|
+
return Example;
|
|
48
|
+
}(React.Component);
|
|
49
|
+
|
|
50
|
+
Example.displayName = 'BrandBandExample';
|
|
51
|
+
export default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime
|
|
52
|
+
//# sourceMappingURL=user-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../.tmp-es/components/brand-band/__examples__/user-image.jsx"],"names":["React","BrandBand","Example","Component","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,mCAAtB,C,CAAiD;;IAE3CC,O;;;;;;;;;;;;;WACL,kBAAS;AACR,0BAAO,oBAAC,SAAD;AAAW,QAAA,EAAE,EAAC,uBAAd;AAAsC,QAAA,KAAK,EAAC;AAA5C,QAAP;AACA;;;;EAHoBF,KAAK,CAACG,S;;AAM5BD,OAAO,CAACE,WAAR,GAAsB,kBAAtB;AAEA,eAAeF,OAAf,C,CAAwB","sourcesContent":["import React from 'react';\nimport BrandBand from '~/components/brand-band'; // `~` is replaced with design-system-react at runtime\n\nclass Example extends React.Component {\n\trender() {\n\t\treturn <BrandBand id=\"brand-band-user-image\" image=\"user\" />;\n\t}\n}\n\nExample.displayName = 'BrandBandExample';\n\nexport default Example; // export is replaced with `ReactDOM.render(<Example />, mountNode);` at runtime\n"],"file":"user-image.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
|
|
2
|
+
|
|
3
|
+
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
|
|
4
|
+
|
|
5
|
+
/* eslint-disable import/no-mutable-exports */
|
|
6
|
+
|
|
7
|
+
/* eslint-disable max-len */
|
|
8
|
+
import sunsetProperty from '../../utilities/warning/sunset-property';
|
|
9
|
+
|
|
10
|
+
var checkProps = function checkPropsFunction() {};
|
|
11
|
+
|
|
12
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
13
|
+
checkProps = function checkPropsFunction(COMPONENT, props) {
|
|
14
|
+
sunsetProperty(COMPONENT, props.styleContainer, 'styleContainer');
|
|
15
|
+
sunsetProperty(COMPONENT, props.theme, 'theme');
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default checkProps;
|
|
20
|
+
//# sourceMappingURL=check-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../.tmp-es/components/brand-band/check-props.js"],"names":["sunsetProperty","checkProps","checkPropsFunction","process","env","NODE_ENV","COMPONENT","props","styleContainer","theme"],"mappings":"AAAA;;AACA;;AACA;;AACA;AAEA,OAAOA,cAAP,MAA2B,yCAA3B;;AAEA,IAAIC,UAAU,GAAG,SAASC,kBAAT,GAA8B,CAAE,CAAjD;;AAEA,IAAIC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAA7B,EAA2C;AAC1CJ,EAAAA,UAAU,GAAG,SAASC,kBAAT,CAA4BI,SAA5B,EAAuCC,KAAvC,EAA8C;AAC1DP,IAAAA,cAAc,CAACM,SAAD,EAAYC,KAAK,CAACC,cAAlB,EAAkC,gBAAlC,CAAd;AAEAR,IAAAA,cAAc,CAACM,SAAD,EAAYC,KAAK,CAACE,KAAlB,EAAyB,OAAzB,CAAd;AACA,GAJD;AAKA;;AAED,eAAeR,UAAf","sourcesContent":["/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */\n/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */\n/* eslint-disable import/no-mutable-exports */\n/* eslint-disable max-len */\n\nimport sunsetProperty from '../../utilities/warning/sunset-property';\n\nlet checkProps = function checkPropsFunction() {};\n\nif (process.env.NODE_ENV !== 'production') {\n\tcheckProps = function checkPropsFunction(COMPONENT, props) {\n\t\tsunsetProperty(COMPONENT, props.styleContainer, 'styleContainer');\n\n\t\tsunsetProperty(COMPONENT, props.theme, 'theme');\n\t};\n}\n\nexport default checkProps;\n"],"file":"check-props.js"}
|
|
@@ -9,10 +9,6 @@
|
|
|
9
9
|
},
|
|
10
10
|
"SLDS-component-path": "/components/brand-band",
|
|
11
11
|
"site-stories": [
|
|
12
|
-
{
|
|
13
|
-
"heading": "Lightning Blue",
|
|
14
|
-
"path": "/__examples__/lightning-blue-theme.jsx"
|
|
15
|
-
},
|
|
16
12
|
{
|
|
17
13
|
"heading": "Default",
|
|
18
14
|
"path": "/__examples__/default.jsx"
|
|
@@ -28,6 +24,14 @@
|
|
|
28
24
|
{
|
|
29
25
|
"heading": "No Image",
|
|
30
26
|
"path": "/__examples__/no-image.jsx"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"heading": "User Image",
|
|
30
|
+
"path": "/__examples__/user-image.jsx"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"heading": "Group Image",
|
|
34
|
+
"path": "/__examples__/group-image.jsx"
|
|
31
35
|
}
|
|
32
36
|
],
|
|
33
37
|
"url-slug": "brand-band"
|