carbon-react 118.1.1 → 118.2.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.
- package/esm/__internal__/input/input-presentation.style.js +1 -0
- package/esm/__internal__/input/input.style.js +1 -0
- package/esm/components/action-popover/action-popover.style.js +3 -0
- package/esm/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
- package/esm/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
- package/esm/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
- package/esm/components/badge/badge.style.js +1 -1
- package/esm/components/batch-selection/batch-selection.style.js +6 -0
- package/esm/components/box/box.component.d.ts +3 -0
- package/esm/components/box/box.component.js +4 -0
- package/esm/components/button/button.style.js +10 -9
- package/esm/components/button-bar/button-bar.style.js +19 -0
- package/esm/components/button-minor/button-minor.style.js +42 -40
- package/esm/components/button-toggle/button-toggle.component.js +2 -1
- package/esm/components/button-toggle/button-toggle.style.d.ts +1 -0
- package/esm/components/button-toggle/button-toggle.style.js +31 -13
- package/esm/components/button-toggle-group/button-toggle-group.style.js +21 -3
- package/esm/components/card/__internal__/card-context/index.d.ts +7 -0
- package/esm/components/card/__internal__/card-context/index.js +2 -0
- package/esm/components/card/card-footer/card-footer.component.js +9 -2
- package/esm/components/card/card-footer/card-footer.style.d.ts +2 -1
- package/esm/components/card/card-footer/card-footer.style.js +10 -1
- package/esm/components/card/card.component.d.ts +3 -2
- package/esm/components/card/card.component.js +10 -1
- package/esm/components/card/card.style.d.ts +2 -1
- package/esm/components/card/card.style.js +3 -1
- package/esm/components/carousel/carousel.component.js +1 -1
- package/esm/components/carousel/carousel.style.js +4 -2
- package/esm/components/carousel/slide/slide.style.js +2 -0
- package/esm/components/checkbox/checkbox.style.js +2 -0
- package/esm/components/date/__internal__/date-picker/day-picker.style.js +4 -0
- package/esm/components/date/__internal__/navbar/button.style.js +2 -0
- package/esm/components/dialog/dialog.style.js +5 -0
- package/esm/components/dismissible-box/dismissible-box.component.d.ts +1 -1
- package/esm/components/dismissible-box/dismissible-box.component.js +4 -1
- package/esm/components/drawer/drawer.style.js +1 -0
- package/esm/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
- package/esm/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
- package/esm/components/flat-table/flat-table.component.js +56 -2
- package/esm/components/flat-table/flat-table.style.js +101 -1
- package/esm/components/flat-table/sort/sort.style.js +1 -0
- package/esm/components/icon-button/icon-button.style.js +1 -0
- package/esm/components/inline-inputs/inline-inputs.style.js +18 -0
- package/esm/components/link/link.style.js +1 -0
- package/esm/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
- package/esm/components/link-preview/__internal__/placeholder.component.js +4 -1
- package/esm/components/link-preview/link-preview.style.js +1 -0
- package/esm/components/loader/loader-square.style.js +5 -0
- package/esm/components/loader-bar/loader-bar.style.js +1 -0
- package/esm/components/menu/__internal__/submenu/submenu.style.js +13 -0
- package/esm/components/menu/menu.style.js +13 -6
- package/esm/components/menu/scrollable-block/scrollable-block.style.js +15 -0
- package/esm/components/message/message.style.js +2 -0
- package/esm/components/multi-action-button/multi-action-button.style.js +4 -0
- package/esm/components/note/note.style.js +1 -0
- package/esm/components/numeral-date/numeral-date.component.js +2 -0
- package/esm/components/numeral-date/numeral-date.style.d.ts +1 -0
- package/esm/components/numeral-date/numeral-date.style.js +12 -0
- package/esm/components/pager/pager.style.js +2 -0
- package/esm/components/pill/pill.style.js +5 -15
- package/esm/components/pod/pod.style.js +6 -0
- package/esm/components/popover-container/popover-container.style.js +1 -0
- package/esm/components/portrait/portrait-gravatar.component.js +1 -1
- package/esm/components/portrait/portrait-initials.component.js +1 -1
- package/esm/components/portrait/portrait.component.js +1 -1
- package/esm/components/portrait/portrait.style.js +1 -3
- package/esm/components/profile/profile.component.js +1 -1
- package/esm/components/progress-tracker/progress-tracker.style.js +2 -2
- package/esm/components/radio-button/radio-button.style.js +1 -1
- package/esm/components/search/search-button.style.js +5 -0
- package/esm/components/search/search.style.js +7 -0
- package/esm/components/select/select-list/select-list-container.style.js +1 -0
- package/esm/components/split-button/split-button-children.style.d.ts +1 -0
- package/esm/components/split-button/split-button-children.style.js +28 -0
- package/esm/components/split-button/split-button-toggle.style.js +6 -1
- package/esm/components/split-button/split-button.style.js +5 -2
- package/esm/components/switch/__internal__/switch-slider.style.js +1 -2
- package/esm/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
- package/esm/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
- package/esm/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
- package/esm/components/text-editor/text-editor.style.js +3 -0
- package/esm/components/tile/tile.component.d.ts +3 -1
- package/esm/components/tile/tile.component.js +3 -1
- package/esm/components/tile/tile.style.d.ts +1 -1
- package/esm/components/tile/tile.style.js +4 -1
- package/esm/components/tile-select/tile-select.style.d.ts +1 -0
- package/esm/components/tile-select/tile-select.style.js +8 -0
- package/esm/components/tooltip/tooltip.style.js +1 -0
- package/esm/components/vertical-menu/vertical-menu.style.js +1 -0
- package/lib/__internal__/input/input-presentation.style.js +1 -0
- package/lib/__internal__/input/input.style.js +1 -0
- package/lib/components/action-popover/action-popover.style.js +3 -0
- package/lib/components/advanced-color-picker/advanced-color-picker-cell.style.js +1 -0
- package/lib/components/advanced-color-picker/advanced-color-picker.style.js +1 -0
- package/lib/components/anchor-navigation/anchor-navigation-item/anchor-navigation-item.style.js +6 -2
- package/lib/components/badge/badge.style.js +1 -1
- package/lib/components/batch-selection/batch-selection.style.js +6 -0
- package/lib/components/box/box.component.d.ts +3 -0
- package/lib/components/box/box.component.js +4 -0
- package/lib/components/button/button.style.js +10 -9
- package/lib/components/button-bar/button-bar.style.js +19 -0
- package/lib/components/button-minor/button-minor.style.js +42 -40
- package/lib/components/button-toggle/button-toggle.component.js +2 -1
- package/lib/components/button-toggle/button-toggle.style.d.ts +1 -0
- package/lib/components/button-toggle/button-toggle.style.js +31 -13
- package/lib/components/button-toggle-group/button-toggle-group.style.js +21 -3
- package/lib/components/card/__internal__/card-context/index.d.ts +7 -0
- package/lib/components/card/__internal__/card-context/index.js +14 -0
- package/lib/components/card/__internal__/card-context/package.json +6 -0
- package/lib/components/card/card-footer/card-footer.component.js +14 -2
- package/lib/components/card/card-footer/card-footer.style.d.ts +2 -1
- package/lib/components/card/card-footer/card-footer.style.js +10 -1
- package/lib/components/card/card.component.d.ts +3 -2
- package/lib/components/card/card.component.js +11 -1
- package/lib/components/card/card.style.d.ts +2 -1
- package/lib/components/card/card.style.js +3 -1
- package/lib/components/carousel/carousel.component.js +1 -1
- package/lib/components/carousel/carousel.style.js +4 -2
- package/lib/components/carousel/slide/slide.style.js +2 -0
- package/lib/components/checkbox/checkbox.style.js +2 -0
- package/lib/components/date/__internal__/date-picker/day-picker.style.js +4 -0
- package/lib/components/date/__internal__/navbar/button.style.js +2 -0
- package/lib/components/dialog/dialog.style.js +5 -0
- package/lib/components/dismissible-box/dismissible-box.component.d.ts +1 -1
- package/lib/components/dismissible-box/dismissible-box.component.js +4 -1
- package/lib/components/drawer/drawer.style.js +1 -0
- package/lib/components/duelling-picklist/picklist-item/picklist-item.style.js +20 -0
- package/lib/components/flat-table/flat-table-row/flat-table-row.style.js +7 -0
- package/lib/components/flat-table/flat-table.component.js +60 -2
- package/lib/components/flat-table/flat-table.style.js +102 -1
- package/lib/components/flat-table/sort/sort.style.js +1 -0
- package/lib/components/icon-button/icon-button.style.js +1 -0
- package/lib/components/inline-inputs/inline-inputs.style.js +18 -0
- package/lib/components/link/link.style.js +1 -0
- package/lib/components/link-preview/__internal__/placeholder.component.d.ts +3 -1
- package/lib/components/link-preview/__internal__/placeholder.component.js +6 -1
- package/lib/components/link-preview/link-preview.style.js +1 -0
- package/lib/components/loader/loader-square.style.js +5 -0
- package/lib/components/loader-bar/loader-bar.style.js +1 -0
- package/lib/components/menu/__internal__/submenu/submenu.style.js +13 -0
- package/lib/components/menu/menu.style.js +13 -6
- package/lib/components/menu/scrollable-block/scrollable-block.style.js +18 -0
- package/lib/components/message/message.style.js +2 -0
- package/lib/components/multi-action-button/multi-action-button.style.js +5 -0
- package/lib/components/note/note.style.js +1 -0
- package/lib/components/numeral-date/numeral-date.component.js +2 -0
- package/lib/components/numeral-date/numeral-date.style.d.ts +1 -0
- package/lib/components/numeral-date/numeral-date.style.js +12 -0
- package/lib/components/pager/pager.style.js +2 -0
- package/lib/components/pill/pill.style.js +5 -15
- package/lib/components/pod/pod.style.js +6 -0
- package/lib/components/popover-container/popover-container.style.js +1 -0
- package/lib/components/portrait/portrait-gravatar.component.js +1 -1
- package/lib/components/portrait/portrait-initials.component.js +1 -1
- package/lib/components/portrait/portrait.component.js +1 -1
- package/lib/components/portrait/portrait.style.js +1 -3
- package/lib/components/profile/profile.component.js +1 -1
- package/lib/components/progress-tracker/progress-tracker.style.js +2 -2
- package/lib/components/radio-button/radio-button.style.js +1 -1
- package/lib/components/search/search-button.style.js +5 -0
- package/lib/components/search/search.style.js +7 -0
- package/lib/components/select/select-list/select-list-container.style.js +1 -0
- package/lib/components/split-button/split-button-children.style.d.ts +1 -0
- package/lib/components/split-button/split-button-children.style.js +30 -1
- package/lib/components/split-button/split-button-toggle.style.js +6 -1
- package/lib/components/split-button/split-button.style.js +5 -2
- package/lib/components/switch/__internal__/switch-slider.style.js +1 -2
- package/lib/components/tabs/__internal__/tab-title/tab-title.style.js +22 -2
- package/lib/components/tabs/__internal__/tabs-header/tabs-header.style.js +5 -0
- package/lib/components/text-editor/__internal__/toolbar/toolbar-button/toolbar-button.style.js +3 -0
- package/lib/components/text-editor/text-editor.style.js +3 -0
- package/lib/components/tile/tile.component.d.ts +3 -1
- package/lib/components/tile/tile.component.js +3 -1
- package/lib/components/tile/tile.style.d.ts +1 -1
- package/lib/components/tile/tile.style.js +4 -1
- package/lib/components/tile-select/tile-select.style.d.ts +1 -0
- package/lib/components/tile-select/tile-select.style.js +8 -0
- package/lib/components/tooltip/tooltip.style.js +1 -0
- package/lib/components/vertical-menu/vertical-menu.style.js +1 -0
- package/package.json +1 -1
|
@@ -25,6 +25,8 @@ var _cellSizes = _interopRequireDefault(require("./cell-sizes.style"));
|
|
|
25
25
|
|
|
26
26
|
var _box = _interopRequireDefault(require("../box"));
|
|
27
27
|
|
|
28
|
+
var _pager = require("../pager/pager.style");
|
|
29
|
+
|
|
28
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
31
|
|
|
30
32
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
@@ -50,10 +52,15 @@ const StyledTableContainer = _styledComponents.default.div`
|
|
|
50
52
|
exports.StyledTableContainer = StyledTableContainer;
|
|
51
53
|
const StyledFlatTable = _styledComponents.default.table`
|
|
52
54
|
border-collapse: separate;
|
|
53
|
-
border-radius: 0px;
|
|
54
55
|
border-spacing: 0;
|
|
55
56
|
width: 100%;
|
|
56
57
|
|
|
58
|
+
@-moz-document url-prefix() {
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
border-top-left-radius: var(--borderRadius100);
|
|
61
|
+
border-top-right-radius: var(--borderRadius100);
|
|
62
|
+
}
|
|
63
|
+
|
|
57
64
|
${({
|
|
58
65
|
caption
|
|
59
66
|
}) => caption && (0, _styledComponents.css)`
|
|
@@ -115,6 +122,16 @@ StyledFlatTable.defaultProps = {
|
|
|
115
122
|
size: "medium"
|
|
116
123
|
};
|
|
117
124
|
const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
|
|
125
|
+
border-top-left-radius: var(--borderRadius100);
|
|
126
|
+
border-top-right-radius: var(--borderRadius100);
|
|
127
|
+
${({
|
|
128
|
+
hasStickyFooter,
|
|
129
|
+
hasHorizontalScrollbar
|
|
130
|
+
}) => !hasStickyFooter && !hasHorizontalScrollbar && (0, _styledComponents.css)`
|
|
131
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
132
|
+
border-bottom-right-radius: var(--borderRadius100);
|
|
133
|
+
`}
|
|
134
|
+
|
|
118
135
|
${({
|
|
119
136
|
isInSidebar
|
|
120
137
|
}) => (0, _styledComponents.css)`
|
|
@@ -212,6 +229,9 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
|
|
|
212
229
|
${({
|
|
213
230
|
isInSidebar
|
|
214
231
|
}) => isInSidebar && (0, _styledComponents.css)`
|
|
232
|
+
${_flatTableHead.default} {
|
|
233
|
+
background-color: var(--colorsUtilityMajor040);
|
|
234
|
+
}
|
|
215
235
|
${_flatTableHeader.default}, ${_flatTableHead.default} ${_flatTableRowHeader.StyledFlatTableRowHeader},
|
|
216
236
|
${_flatTableHead.default} ${_flatTableCheckbox.default} {
|
|
217
237
|
background-color: var(--colorsUtilityMajor040);
|
|
@@ -251,6 +271,21 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
|
|
|
251
271
|
}) => theme.zIndex.overlay + HEADER_OVERLAY_INCREMENT};
|
|
252
272
|
}
|
|
253
273
|
|
|
274
|
+
thead {
|
|
275
|
+
${_flatTableRow.default}:first-of-type {
|
|
276
|
+
th:first-of-type {
|
|
277
|
+
border-top-left-radius: var(--borderRadius100);
|
|
278
|
+
}
|
|
279
|
+
${({
|
|
280
|
+
hasVerticalScrollbar
|
|
281
|
+
}) => !hasVerticalScrollbar && (0, _styledComponents.css)`
|
|
282
|
+
th:last-of-type {
|
|
283
|
+
border-top-right-radius: var(--borderRadius100);
|
|
284
|
+
}
|
|
285
|
+
`}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
254
289
|
tbody
|
|
255
290
|
${_flatTableRowHeader.StyledFlatTableRowHeader},
|
|
256
291
|
${_flatTableCell.StyledFlatTableCell}.isSticky,
|
|
@@ -260,6 +295,67 @@ const StyledFlatTableWrapper = (0, _styledComponents.default)(_box.default)`
|
|
|
260
295
|
theme
|
|
261
296
|
}) => theme.zIndex.overlay};
|
|
262
297
|
}
|
|
298
|
+
|
|
299
|
+
${({
|
|
300
|
+
hasFooter
|
|
301
|
+
}) => hasFooter && (0, _styledComponents.css)`
|
|
302
|
+
tr:last-child:focus {
|
|
303
|
+
:after {
|
|
304
|
+
border-bottom-left-radius: var(--borderRadius000);
|
|
305
|
+
border-bottom-right-radius: var(--borderRadius000);
|
|
306
|
+
}
|
|
307
|
+
`}
|
|
308
|
+
|
|
309
|
+
${({
|
|
310
|
+
hasFooter
|
|
311
|
+
}) => !hasFooter && (0, _styledComponents.css)`
|
|
312
|
+
tbody {
|
|
313
|
+
${({
|
|
314
|
+
firstColRowSpanIndex
|
|
315
|
+
}) => firstColRowSpanIndex >= 0 && (0, _styledComponents.css)`
|
|
316
|
+
${_flatTableRow.default}:nth-of-type(${firstColRowSpanIndex + 1}) {
|
|
317
|
+
th:first-child,
|
|
318
|
+
td:first-child {
|
|
319
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
`}
|
|
323
|
+
|
|
324
|
+
${({
|
|
325
|
+
lastColRowSpanIndex,
|
|
326
|
+
hasHorizontalScrollbar
|
|
327
|
+
}) => lastColRowSpanIndex >= 0 && !hasHorizontalScrollbar && (0, _styledComponents.css)`
|
|
328
|
+
${_flatTableRow.default}:nth-of-type(${lastColRowSpanIndex + 1}) {
|
|
329
|
+
th:last-child,
|
|
330
|
+
td:last-child {
|
|
331
|
+
border-bottom-right-radius: var(--borderRadius100);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
`}
|
|
335
|
+
|
|
336
|
+
${_flatTableRow.default}:last-of-type {
|
|
337
|
+
${({
|
|
338
|
+
hasHorizontalScrollbar,
|
|
339
|
+
firstColRowSpanIndex
|
|
340
|
+
}) => !hasHorizontalScrollbar && firstColRowSpanIndex === -1 && (0, _styledComponents.css)`
|
|
341
|
+
th:first-child,
|
|
342
|
+
td:first-child {
|
|
343
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
344
|
+
}
|
|
345
|
+
`}
|
|
346
|
+
${({
|
|
347
|
+
hasVerticalScrollbar,
|
|
348
|
+
hasHorizontalScrollbar,
|
|
349
|
+
lastColRowSpanIndex
|
|
350
|
+
}) => !hasVerticalScrollbar && !hasHorizontalScrollbar && lastColRowSpanIndex === -1 && (0, _styledComponents.css)`
|
|
351
|
+
th:last-child,
|
|
352
|
+
td:last-child {
|
|
353
|
+
border-bottom-right-radius: var(--borderRadius100);
|
|
354
|
+
}
|
|
355
|
+
`}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
`}
|
|
263
359
|
`;
|
|
264
360
|
exports.StyledFlatTableWrapper = StyledFlatTableWrapper;
|
|
265
361
|
StyledFlatTableWrapper.defaultProps = {
|
|
@@ -273,6 +369,11 @@ const StyledFlatTableFooter = _styledComponents.default.div`
|
|
|
273
369
|
position: sticky;
|
|
274
370
|
bottom: 0px;
|
|
275
371
|
z-index: ${theme.zIndex.overlay + STICKY_FOOTER_OVERLAY_INCREMENT};
|
|
372
|
+
|
|
373
|
+
${_pager.StyledPagerContainer} {
|
|
374
|
+
border-bottom-left-radius: var(--borderRadius000);
|
|
375
|
+
border-bottom-right-radius: var(--borderRadius000);
|
|
376
|
+
}
|
|
276
377
|
`}
|
|
277
378
|
`;
|
|
278
379
|
exports.StyledFlatTableFooter = StyledFlatTableFooter;
|
|
@@ -58,6 +58,24 @@ const StyledContentContainer = _styledComponents.default.div`
|
|
|
58
58
|
${StyledInlineInput} + ${StyledInlineInput} ${_inputPresentation.default} {
|
|
59
59
|
border-left: none;
|
|
60
60
|
}
|
|
61
|
+
|
|
62
|
+
${StyledInlineInput}:not(:first-of-type):not(:last-of-type) ${_inputPresentation.default} {
|
|
63
|
+
border-radius: var(--borderRadius000);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
${StyledInlineInput}:first-of-type:not(:last-of-type) ${_inputPresentation.default} {
|
|
67
|
+
border-top-right-radius: var(--borderRadius000);
|
|
68
|
+
border-bottom-right-radius: var(--borderRadius000);
|
|
69
|
+
border-top-left-radius: var(--borderRadius050);
|
|
70
|
+
border-bottom-left-radius: var(--borderRadius050);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
${StyledInlineInput}:last-of-type:not(:first-of-type) ${_inputPresentation.default} {
|
|
74
|
+
border-top-left-radius: var(--borderRadius000);
|
|
75
|
+
border-bottom-left-radius: var(--borderRadius000);
|
|
76
|
+
border-top-right-radius: var(--borderRadius050);
|
|
77
|
+
border-bottom-right-radius: var(--borderRadius050);
|
|
78
|
+
}
|
|
61
79
|
`}
|
|
62
80
|
`}
|
|
63
81
|
`;
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
6
|
+
exports.default = exports.StyledPlaceHolder = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
10
12
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
11
13
|
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -17,7 +19,10 @@ const StyledPlaceHolder = _styledComponents.default.div`
|
|
|
17
19
|
height: 152px;
|
|
18
20
|
min-width: 152px;
|
|
19
21
|
background-color: var(--colorsUtilityMajor025);
|
|
22
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
23
|
+
border-top-left-radius: var(--borderRadius100);
|
|
20
24
|
`;
|
|
25
|
+
exports.StyledPlaceHolder = StyledPlaceHolder;
|
|
21
26
|
const Circle = _styledComponents.default.div`
|
|
22
27
|
height: 22px;
|
|
23
28
|
width: 22px;
|
|
@@ -25,6 +25,7 @@ const StyledLinkPreview = _styledComponents.default.a`
|
|
|
25
25
|
as
|
|
26
26
|
}) => (0, _styledComponents.css)`
|
|
27
27
|
border: 1px solid var(--colorsUtilityMajor050);
|
|
28
|
+
border-radius: var(--borderRadius100);
|
|
28
29
|
background-color: var(--colorsUtilityMajor025);
|
|
29
30
|
color: var(--colorsUtilityYin090);
|
|
30
31
|
|
|
@@ -25,27 +25,32 @@ const loaderAnimation = (0, _styledComponents.keyframes)`
|
|
|
25
25
|
const getDimentions = size => {
|
|
26
26
|
let width;
|
|
27
27
|
let marginRight;
|
|
28
|
+
let borderRadius;
|
|
28
29
|
|
|
29
30
|
switch (size) {
|
|
30
31
|
case "medium":
|
|
31
32
|
width = "16px";
|
|
32
33
|
marginRight = "8px";
|
|
34
|
+
borderRadius = "var(--borderRadiusCircle)";
|
|
33
35
|
break;
|
|
34
36
|
|
|
35
37
|
case "large":
|
|
36
38
|
width = "20px";
|
|
37
39
|
marginRight = "8px";
|
|
40
|
+
borderRadius = "var(--borderRadiusCircle)";
|
|
38
41
|
break;
|
|
39
42
|
|
|
40
43
|
default:
|
|
41
44
|
width = "12px";
|
|
42
45
|
marginRight = "6px";
|
|
46
|
+
borderRadius = "var(--borderRadiusCircle)";
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
return (0, _styledComponents.css)`
|
|
46
50
|
width: ${width};
|
|
47
51
|
height: ${width};
|
|
48
52
|
margin-right: ${marginRight};
|
|
53
|
+
border-radius: ${borderRadius};
|
|
49
54
|
`;
|
|
50
55
|
};
|
|
51
56
|
|
|
@@ -49,6 +49,7 @@ const StyledLoaderBar = _styledComponents.default.div`
|
|
|
49
49
|
size
|
|
50
50
|
}) => (0, _styledComponents.css)`
|
|
51
51
|
display: inline-block;
|
|
52
|
+
border-radius: var(--borderRadius400);
|
|
52
53
|
height: ${getHeight(size)};
|
|
53
54
|
width: 100%;
|
|
54
55
|
background-color: var(--colorsActionMajor150);
|
|
@@ -80,6 +80,19 @@ const StyledSubmenu = _styledComponents.default.ul`
|
|
|
80
80
|
}
|
|
81
81
|
`}
|
|
82
82
|
|
|
83
|
+
${!inFullscreenView && (0, _styledComponents.css)`
|
|
84
|
+
border-bottom-right-radius: var(--borderRadius100);
|
|
85
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
86
|
+
|
|
87
|
+
${_menu.StyledMenuItem}:last-child a,
|
|
88
|
+
${_menu.StyledMenuItem}:last-child button,
|
|
89
|
+
${_menu.StyledMenuItem}:last-child > span,
|
|
90
|
+
${_menu.StyledMenuItem}:last-child > div {
|
|
91
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
92
|
+
border-bottom-right-radius: var(--borderRadius100);
|
|
93
|
+
}
|
|
94
|
+
`}
|
|
95
|
+
|
|
83
96
|
display: block;
|
|
84
97
|
list-style: none;
|
|
85
98
|
margin: 0;
|
|
@@ -38,12 +38,16 @@ const StyledMenuWrapper = _styledComponents.default.ul`
|
|
|
38
38
|
display: inline-block;
|
|
39
39
|
vertical-align: bottom;
|
|
40
40
|
background-color: ${_menu.default[menuType].background};
|
|
41
|
-
|
|
42
41
|
${menuType === "dark" && (0, _styledComponents.css)`
|
|
43
|
-
|
|
42
|
+
display: inline-block;
|
|
43
|
+
vertical-align: bottom;
|
|
44
|
+
background-color: ${_menu.default[menuType].background};
|
|
45
|
+
|
|
46
|
+
${menuType === "dark" && (0, _styledComponents.css)`
|
|
47
|
+
color: ${_menu.default[menuType].color};
|
|
48
|
+
`}
|
|
44
49
|
`}
|
|
45
50
|
`}
|
|
46
|
-
|
|
47
51
|
${_verticalDivider.StyledDivider} {
|
|
48
52
|
position: relative;
|
|
49
53
|
top: -1px;
|
|
@@ -54,7 +58,11 @@ exports.StyledMenuWrapper = StyledMenuWrapper;
|
|
|
54
58
|
const StyledMenuItem = _styledComponents.default.li`
|
|
55
59
|
${_styledSystem.layout}
|
|
56
60
|
${_styledSystem.flexbox}
|
|
57
|
-
|
|
61
|
+
|
|
62
|
+
${_link.StyledLink} a:focus, ${_link.StyledLink} button:focus {
|
|
63
|
+
border-radius: var(--borderRadius000);
|
|
64
|
+
}
|
|
65
|
+
|
|
58
66
|
${({
|
|
59
67
|
inSubmenu
|
|
60
68
|
}) => (0, _styledComponents.css)`
|
|
@@ -62,8 +70,7 @@ const StyledMenuItem = _styledComponents.default.li`
|
|
|
62
70
|
display: list-item;
|
|
63
71
|
`}
|
|
64
72
|
`}
|
|
65
|
-
|
|
66
|
-
${({
|
|
73
|
+
${({
|
|
67
74
|
inFullscreenView
|
|
68
75
|
}) => inFullscreenView && (0, _styledComponents.css)`
|
|
69
76
|
padding-top: 16px;
|
|
@@ -11,6 +11,12 @@ var _menuItem = _interopRequireDefault(require("../menu-item/menu-item.style"));
|
|
|
11
11
|
|
|
12
12
|
var _menu = _interopRequireDefault(require("../menu.config"));
|
|
13
13
|
|
|
14
|
+
var _box = _interopRequireDefault(require("../../box/box.component"));
|
|
15
|
+
|
|
16
|
+
var _menu2 = require("../menu.style");
|
|
17
|
+
|
|
18
|
+
var _link = require("../../link/link.style");
|
|
19
|
+
|
|
14
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
21
|
|
|
16
22
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
@@ -25,6 +31,18 @@ const StyledScrollableBlock = _styledComponents.default.li`
|
|
|
25
31
|
&& ${_menuItem.default} {
|
|
26
32
|
background-color: ${variant === "default" ? _menu.default[menuType].submenuItemBackground : _menu.default[menuType].alternate};
|
|
27
33
|
}
|
|
34
|
+
|
|
35
|
+
${_box.default} {
|
|
36
|
+
border-radius: var(--borderRadius000);
|
|
37
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
38
|
+
|
|
39
|
+
${_menu2.StyledMenuItem}:last-child ${_link.StyledLink},
|
|
40
|
+
${_menu2.StyledMenuItem}:last-child a,
|
|
41
|
+
${_menu2.StyledMenuItem}:last-child button {
|
|
42
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
43
|
+
border-bottom-right-radius: var(--borderRadius000);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
28
46
|
`}
|
|
29
47
|
`;
|
|
30
48
|
var _default = StyledScrollableBlock;
|
|
@@ -30,6 +30,8 @@ const MessageStyle = _styledComponents.default.div`
|
|
|
30
30
|
display: flex;
|
|
31
31
|
justify-content: flex-start;
|
|
32
32
|
align-content: center;
|
|
33
|
+
border-radius: var(--borderRadius100);
|
|
34
|
+
overflow: hidden;
|
|
33
35
|
border: 1px solid ${({
|
|
34
36
|
variant
|
|
35
37
|
}) => variant && messageVariants[variant]};
|
|
@@ -17,6 +17,8 @@ var _icon = _interopRequireDefault(require("../icon/icon.style"));
|
|
|
17
17
|
|
|
18
18
|
var _width = _interopRequireDefault(require("../../style/utils/width"));
|
|
19
19
|
|
|
20
|
+
var _splitButtonChildren = require("../split-button/split-button-children.style");
|
|
21
|
+
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
23
|
|
|
22
24
|
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
|
@@ -91,12 +93,15 @@ const StyledButtonChildrenContainer = _styledComponents.default.div`
|
|
|
91
93
|
white-space: nowrap;
|
|
92
94
|
z-index: ${theme.zIndex.popover};
|
|
93
95
|
box-shadow: var(--boxShadow100);
|
|
96
|
+
border-radius: var(--borderRadius100);
|
|
94
97
|
|
|
95
98
|
${_icon.default} {
|
|
96
99
|
margin-left: 0;
|
|
97
100
|
left: 8px;
|
|
98
101
|
}
|
|
99
102
|
|
|
103
|
+
${_splitButtonChildren.borderRadiusStyling}
|
|
104
|
+
|
|
100
105
|
${_button.default} {
|
|
101
106
|
border: 1px solid var(--colorsActionMajorTransparent);
|
|
102
107
|
display: flex;
|
|
@@ -132,6 +132,7 @@ const StyledNote = _styledComponents.default.div`
|
|
|
132
132
|
}) => (0, _styledComponents.css)`
|
|
133
133
|
background-color: var(--colorsUtilityYang100);
|
|
134
134
|
border: 1px solid var(--colorsUtilityMajor100);
|
|
135
|
+
border-radius: var(--borderRadius100);
|
|
135
136
|
display: flex;
|
|
136
137
|
flex-direction: column;
|
|
137
138
|
padding: 24px;
|
|
@@ -227,6 +227,7 @@ const NumeralDate = ({
|
|
|
227
227
|
onKeyPress: onKeyPress,
|
|
228
228
|
"data-component": "numeral-date"
|
|
229
229
|
}, dateFormat.map((datePart, index) => {
|
|
230
|
+
const isStart = index === 0;
|
|
230
231
|
const isEnd = index === dateFormat.length - 1;
|
|
231
232
|
const isMiddle = index === 1;
|
|
232
233
|
const validation = error || warning || info;
|
|
@@ -261,6 +262,7 @@ const NumeralDate = ({
|
|
|
261
262
|
}, /*#__PURE__*/_react.default.createElement(_numeralDate.StyledDateField, {
|
|
262
263
|
key: datePart,
|
|
263
264
|
isYearInput: datePart.length === 4,
|
|
265
|
+
isStart: isStart,
|
|
264
266
|
isMiddle: isMiddle,
|
|
265
267
|
isEnd: isEnd,
|
|
266
268
|
hasValidationIcon: hasValidationIcon
|
|
@@ -37,6 +37,7 @@ const StyledNumeralDate = _styledComponents.default.div`
|
|
|
37
37
|
exports.StyledNumeralDate = StyledNumeralDate;
|
|
38
38
|
const StyledDateField = _styledComponents.default.div`
|
|
39
39
|
${({
|
|
40
|
+
isStart,
|
|
40
41
|
isYearInput,
|
|
41
42
|
isEnd,
|
|
42
43
|
hasValidationIcon,
|
|
@@ -48,6 +49,17 @@ const StyledDateField = _styledComponents.default.div`
|
|
|
48
49
|
position: relative;
|
|
49
50
|
width: ${yearInputOrError ? "78px;" : "58px;"};
|
|
50
51
|
text-align: center;
|
|
52
|
+
border-radius: var(--borderRadius000);
|
|
53
|
+
|
|
54
|
+
${isStart && (0, _styledComponents.css)`
|
|
55
|
+
border-top-left-radius: var(--borderRadius050);
|
|
56
|
+
border-bottom-left-radius: var(--borderRadius050);
|
|
57
|
+
`}
|
|
58
|
+
|
|
59
|
+
${isEnd && (0, _styledComponents.css)`
|
|
60
|
+
border-top-right-radius: var(--borderRadius050);
|
|
61
|
+
border-bottom-right-radius: var(--borderRadius050);
|
|
62
|
+
`}
|
|
51
63
|
|
|
52
64
|
${(isMiddle || isEnd) && (0, _styledComponents.css)`
|
|
53
65
|
margin-left: -1px;
|
|
@@ -51,6 +51,8 @@ const StyledPagerContainer = _styledComponents.default.div`
|
|
|
51
51
|
}) => (0, _styledComponents.css)`
|
|
52
52
|
border-width: 1px 1px 1px 1px;
|
|
53
53
|
border-style: none solid solid solid;
|
|
54
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
55
|
+
border-bottom-right-radius: var(--borderRadius100);
|
|
54
56
|
border-color: var(--colorsUtilityMajor100);
|
|
55
57
|
background-color: ${variant === "alternate" ? "var(--colorsUtilityMajor040)" : "var(--colorsUtilityMajor010)"};
|
|
56
58
|
`}
|
|
@@ -80,7 +80,6 @@ const StyledPill = _styledComponents.default.span`
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
return (0, _styledComponents.css)`
|
|
83
|
-
border-radius: 12px;
|
|
84
83
|
font-size: 10px;
|
|
85
84
|
letter-spacing: 0.7px;
|
|
86
85
|
font-weight: 600;
|
|
@@ -90,6 +89,7 @@ const StyledPill = _styledComponents.default.span`
|
|
|
90
89
|
align-items: center;
|
|
91
90
|
justify-content: center;
|
|
92
91
|
border: 2px solid ${pillColor};
|
|
92
|
+
border-radius: var(--borderRadius025);
|
|
93
93
|
height: auto;
|
|
94
94
|
${!wrapText && (0, _styledComponents.css)`
|
|
95
95
|
white-space: nowrap;
|
|
@@ -135,7 +135,7 @@ const StyledPill = _styledComponents.default.span`
|
|
|
135
135
|
${isDeletable && (0, _styledComponents.css)`
|
|
136
136
|
button {
|
|
137
137
|
-webkit-appearance: none;
|
|
138
|
-
border-radius:
|
|
138
|
+
border-radius: var(--borderRadius000);
|
|
139
139
|
border: none;
|
|
140
140
|
bottom: 0;
|
|
141
141
|
font-size: 100%;
|
|
@@ -150,6 +150,9 @@ const StyledPill = _styledComponents.default.span`
|
|
|
150
150
|
outline: none;
|
|
151
151
|
box-shadow: 0 0 0 3px var(--colorsSemanticFocus500);
|
|
152
152
|
background-color: ${buttonFocusColor};
|
|
153
|
+
border-radius: var(--borderRadius000) var(--borderRadius025)
|
|
154
|
+
var(--borderRadius025) var(--borderRadius000);
|
|
155
|
+
|
|
153
156
|
& {
|
|
154
157
|
color: ${contentColor};
|
|
155
158
|
}
|
|
@@ -195,7 +198,6 @@ const StyledPill = _styledComponents.default.span`
|
|
|
195
198
|
|
|
196
199
|
button {
|
|
197
200
|
padding: 0;
|
|
198
|
-
border-radius: 0 8px 8px 0;
|
|
199
201
|
line-height: 14px;
|
|
200
202
|
|
|
201
203
|
${addStyleToPillIcon("7px")}
|
|
@@ -204,12 +206,10 @@ const StyledPill = _styledComponents.default.span`
|
|
|
204
206
|
|
|
205
207
|
${size === "M" && (0, _styledComponents.css)`
|
|
206
208
|
padding: 0 32px 0 11px;
|
|
207
|
-
border-radius: 12px;
|
|
208
209
|
|
|
209
210
|
button {
|
|
210
211
|
width: 24px;
|
|
211
212
|
padding: 0;
|
|
212
|
-
border-radius: 0 10px 10px 0;
|
|
213
213
|
line-height: 15px;
|
|
214
214
|
|
|
215
215
|
${addStyleToPillIcon("10px")}
|
|
@@ -218,12 +218,10 @@ const StyledPill = _styledComponents.default.span`
|
|
|
218
218
|
|
|
219
219
|
${size === "L" && (0, _styledComponents.css)`
|
|
220
220
|
padding: 0 36px 0 15px;
|
|
221
|
-
border-radius: 13px;
|
|
222
221
|
|
|
223
222
|
button {
|
|
224
223
|
width: 28px;
|
|
225
224
|
padding: 0;
|
|
226
|
-
border-radius: 0 11px 11px 0;
|
|
227
225
|
line-height: 16px;
|
|
228
226
|
|
|
229
227
|
${addStyleToPillIcon("12px")}
|
|
@@ -232,12 +230,10 @@ const StyledPill = _styledComponents.default.span`
|
|
|
232
230
|
|
|
233
231
|
${size === "XL" && (0, _styledComponents.css)`
|
|
234
232
|
padding: 0 41px 0 19px;
|
|
235
|
-
border-radius: 15px;
|
|
236
233
|
|
|
237
234
|
button {
|
|
238
235
|
width: 32px;
|
|
239
236
|
padding: 0;
|
|
240
|
-
border-radius: 0 12px 12px 0;
|
|
241
237
|
line-height: 18px;
|
|
242
238
|
|
|
243
239
|
${addStyleToPillIcon("13px")}
|
|
@@ -256,34 +252,28 @@ const StyledPill = _styledComponents.default.span`
|
|
|
256
252
|
|
|
257
253
|
${size === "M" && (0, _styledComponents.css)`
|
|
258
254
|
padding: 0 11px;
|
|
259
|
-
border-radius: 12px;
|
|
260
255
|
|
|
261
256
|
button {
|
|
262
257
|
width: 24px;
|
|
263
258
|
padding: 0;
|
|
264
|
-
border-radius: 0 8px 8px 0;
|
|
265
259
|
}
|
|
266
260
|
`}
|
|
267
261
|
|
|
268
262
|
${size === "L" && (0, _styledComponents.css)`
|
|
269
263
|
padding: 0 15px;
|
|
270
|
-
border-radius: 13px;
|
|
271
264
|
|
|
272
265
|
button {
|
|
273
266
|
width: 28px;
|
|
274
267
|
padding: 0;
|
|
275
|
-
border-radius: 0 10px 10px 0;
|
|
276
268
|
}
|
|
277
269
|
`}
|
|
278
270
|
|
|
279
271
|
${size === "XL" && (0, _styledComponents.css)`
|
|
280
272
|
padding: 0 19px;
|
|
281
|
-
border-radius: 15px;
|
|
282
273
|
|
|
283
274
|
button {
|
|
284
275
|
width: 32px;
|
|
285
276
|
padding: 0;
|
|
286
|
-
border-radius: 0 12px 12px 0;
|
|
287
277
|
}
|
|
288
278
|
`}
|
|
289
279
|
`}
|
|
@@ -60,6 +60,7 @@ const StyledBlock = _styledComponents.default.div`
|
|
|
60
60
|
isFocused
|
|
61
61
|
}) => (0, _styledComponents.css)`
|
|
62
62
|
box-sizing: border-box;
|
|
63
|
+
border-radius: var(--borderRadius100);
|
|
63
64
|
display: flex;
|
|
64
65
|
flex-direction: column;
|
|
65
66
|
background-color: ${blockBackgrounds[variant]};
|
|
@@ -135,6 +136,8 @@ const StyledFooter = _styledComponents.default.div`
|
|
|
135
136
|
softDelete
|
|
136
137
|
}) => (0, _styledComponents.css)`
|
|
137
138
|
background-color: var(--colorsUtilityMajor025);
|
|
139
|
+
border-bottom-left-radius: var(--borderRadius100);
|
|
140
|
+
border-bottom-right-radius: var(--borderRadius100);
|
|
138
141
|
box-shadow: inset 0px 1px 1px 0 rgba(0, 0, 0, 0.1);
|
|
139
142
|
color: var(--colorsUtilityYin090);
|
|
140
143
|
padding: ${footerPaddings[size]};
|
|
@@ -195,6 +198,7 @@ const StyledEditAction = _styledComponents.default.a`
|
|
|
195
198
|
display: flex;
|
|
196
199
|
align-items: center;
|
|
197
200
|
justify-content: center;
|
|
201
|
+
border-radius: var(--borderRadius100);
|
|
198
202
|
|
|
199
203
|
${_icon.default} {
|
|
200
204
|
top: -2px;
|
|
@@ -252,6 +256,7 @@ const StyledDeleteButton = (0, _styledComponents.default)(_iconButton.default)`
|
|
|
252
256
|
box-sizing: border-box;
|
|
253
257
|
height: ${`${actionButtonSizes[size]}px`};
|
|
254
258
|
width: ${`${actionButtonSizes[size]}px`};
|
|
259
|
+
border-radius: var(--borderRadius100);
|
|
255
260
|
|
|
256
261
|
${_icon.default} {
|
|
257
262
|
top: -2px;
|
|
@@ -300,6 +305,7 @@ const StyledUndoButton = (0, _styledComponents.default)(_iconButton.default)`
|
|
|
300
305
|
box-sizing: border-box;
|
|
301
306
|
height: ${`${actionButtonSizes[size]}px`};
|
|
302
307
|
width: ${`${actionButtonSizes[size]}px`};
|
|
308
|
+
border-radius: var(--borderRadius100);
|
|
303
309
|
|
|
304
310
|
${_icon.default} {
|
|
305
311
|
top: -2px;
|
|
@@ -33,6 +33,7 @@ const PopoverContainerContentStyle = _styledComponents.default.div`
|
|
|
33
33
|
${_styledSystem.padding}
|
|
34
34
|
|
|
35
35
|
background: var(--colorsUtilityYang100);
|
|
36
|
+
border-radius: var(--borderRadius100);
|
|
36
37
|
box-shadow: var(--boxShadow100);
|
|
37
38
|
min-width: 300px;
|
|
38
39
|
position: absolute;
|