@salt-ds/core 1.73.0 → 1.74.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/CHANGELOG.md +56 -0
- package/css/salt-core.css +269 -28
- package/dist-cjs/drawer/Drawer.css.js +1 -1
- package/dist-cjs/drawer/Drawer.js +54 -6
- package/dist-cjs/drawer/Drawer.js.map +1 -1
- package/dist-cjs/drawer/DrawerContext.js +2 -0
- package/dist-cjs/drawer/DrawerContext.js.map +1 -1
- package/dist-cjs/drawer/DrawerFooter.css.js +1 -1
- package/dist-cjs/drawer/DrawerHeader.css.js +1 -1
- package/dist-cjs/drawer/DrawerHeader.js +6 -3
- package/dist-cjs/drawer/DrawerHeader.js.map +1 -1
- package/dist-cjs/drawer/internal/DrawerResizeGuide.css.js +6 -0
- package/dist-cjs/drawer/internal/DrawerResizeGuide.css.js.map +1 -0
- package/dist-cjs/drawer/internal/DrawerResizeGuide.js +44 -0
- package/dist-cjs/drawer/internal/DrawerResizeGuide.js.map +1 -0
- package/dist-cjs/drawer/internal/DrawerResizeHandle.css.js +6 -0
- package/dist-cjs/drawer/internal/DrawerResizeHandle.css.js.map +1 -0
- package/dist-cjs/drawer/internal/DrawerResizeHandle.js +43 -0
- package/dist-cjs/drawer/internal/DrawerResizeHandle.js.map +1 -0
- package/dist-cjs/drawer/internal/useDrawerResize.js +519 -0
- package/dist-cjs/drawer/internal/useDrawerResize.js.map +1 -0
- package/dist-cjs/link-button/LinkButton.css.js +1 -1
- package/dist-cjs/menu/MenuAlignmentContext.js +55 -0
- package/dist-cjs/menu/MenuAlignmentContext.js.map +1 -0
- package/dist-cjs/menu/MenuBase.js +9 -3
- package/dist-cjs/menu/MenuBase.js.map +1 -1
- package/dist-cjs/menu/MenuGroup.js +42 -3
- package/dist-cjs/menu/MenuGroup.js.map +1 -1
- package/dist-cjs/menu/MenuGroupContext.js +27 -0
- package/dist-cjs/menu/MenuGroupContext.js.map +1 -0
- package/dist-cjs/menu/MenuItem.css.js +1 -1
- package/dist-cjs/menu/MenuItem.js +176 -50
- package/dist-cjs/menu/MenuItem.js.map +1 -1
- package/dist-cjs/menu/MenuPanel.js +12 -3
- package/dist-cjs/menu/MenuPanel.js.map +1 -1
- package/dist-cjs/menu/MenuPanelContext.js +3 -1
- package/dist-cjs/menu/MenuPanelContext.js.map +1 -1
- package/dist-cjs/toggle-button/ToggleButton.css.js +1 -1
- package/dist-cjs/tree/TreeNodeTrigger.css.js +1 -1
- package/dist-cjs/tree/TreeNodeTrigger.js +0 -1
- package/dist-cjs/tree/TreeNodeTrigger.js.map +1 -1
- package/dist-es/drawer/Drawer.css.js +1 -1
- package/dist-es/drawer/Drawer.js +54 -6
- package/dist-es/drawer/Drawer.js.map +1 -1
- package/dist-es/drawer/DrawerContext.js +2 -0
- package/dist-es/drawer/DrawerContext.js.map +1 -1
- package/dist-es/drawer/DrawerFooter.css.js +1 -1
- package/dist-es/drawer/DrawerHeader.css.js +1 -1
- package/dist-es/drawer/DrawerHeader.js +6 -3
- package/dist-es/drawer/DrawerHeader.js.map +1 -1
- package/dist-es/drawer/internal/DrawerResizeGuide.css.js +4 -0
- package/dist-es/drawer/internal/DrawerResizeGuide.css.js.map +1 -0
- package/dist-es/drawer/internal/DrawerResizeGuide.js +42 -0
- package/dist-es/drawer/internal/DrawerResizeGuide.js.map +1 -0
- package/dist-es/drawer/internal/DrawerResizeHandle.css.js +4 -0
- package/dist-es/drawer/internal/DrawerResizeHandle.css.js.map +1 -0
- package/dist-es/drawer/internal/DrawerResizeHandle.js +41 -0
- package/dist-es/drawer/internal/DrawerResizeHandle.js.map +1 -0
- package/dist-es/drawer/internal/useDrawerResize.js +517 -0
- package/dist-es/drawer/internal/useDrawerResize.js.map +1 -0
- package/dist-es/link-button/LinkButton.css.js +1 -1
- package/dist-es/menu/MenuAlignmentContext.js +50 -0
- package/dist-es/menu/MenuAlignmentContext.js.map +1 -0
- package/dist-es/menu/MenuBase.js +9 -3
- package/dist-es/menu/MenuBase.js.map +1 -1
- package/dist-es/menu/MenuGroup.js +44 -5
- package/dist-es/menu/MenuGroup.js.map +1 -1
- package/dist-es/menu/MenuGroupContext.js +23 -0
- package/dist-es/menu/MenuGroupContext.js.map +1 -0
- package/dist-es/menu/MenuItem.css.js +1 -1
- package/dist-es/menu/MenuItem.js +177 -51
- package/dist-es/menu/MenuItem.js.map +1 -1
- package/dist-es/menu/MenuPanel.js +12 -3
- package/dist-es/menu/MenuPanel.js.map +1 -1
- package/dist-es/menu/MenuPanelContext.js +3 -1
- package/dist-es/menu/MenuPanelContext.js.map +1 -1
- package/dist-es/toggle-button/ToggleButton.css.js +1 -1
- package/dist-es/tree/TreeNodeTrigger.css.js +1 -1
- package/dist-es/tree/TreeNodeTrigger.js +0 -1
- package/dist-es/tree/TreeNodeTrigger.js.map +1 -1
- package/dist-types/drawer/Drawer.d.ts +6 -0
- package/dist-types/drawer/DrawerContext.d.ts +3 -0
- package/dist-types/drawer/DrawerHeader.d.ts +1 -1
- package/dist-types/drawer/internal/DrawerResizeGuide.d.ts +7 -0
- package/dist-types/drawer/internal/DrawerResizeHandle.d.ts +8 -0
- package/dist-types/drawer/internal/index.d.ts +3 -0
- package/dist-types/drawer/internal/useDrawerResize.d.ts +34 -0
- package/dist-types/menu/MenuAlignmentContext.d.ts +14 -0
- package/dist-types/menu/MenuGroup.d.ts +26 -4
- package/dist-types/menu/MenuGroupContext.d.ts +10 -0
- package/dist-types/menu/MenuItem.d.ts +4 -0
- package/dist-types/menu/MenuPanelContext.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# @salt-ds/core
|
|
2
2
|
|
|
3
|
+
## 1.74.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3a74bce: Updated `MenuItem` so labels align within a `MenuGroup`. If any item in a group has a leading icon, or a radio or checkbox indicator from a selectable `MenuGroup`, the other items in that group reserve the same space. Items outside a group align with each other, and each submenu aligns its own items.
|
|
8
|
+
|
|
9
|
+
When a menu contains a radio or checkbox, leading icons in groups without one sit in a column as wide as a radio or checkbox. Labels after an icon then line up with labels after a radio or checkbox that has no icon beside it.
|
|
10
|
+
|
|
11
|
+
Existing menus that mix items with and without icons will now show the labels of items without icons indented to line up with the others in the same group.
|
|
12
|
+
|
|
13
|
+
- 20db4be: Added resizing to `Drawer`. With `resizable`, users can drag the drawer's edge, click the edge and then click its new position, or use the arrow keys to adjust its size. Set size limits with the `--saltDrawer-minResize` and `--saltDrawer-maxResize` CSS variables, which apply to the width of left and right drawers and the height of top and bottom drawers.
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
<Drawer resizable style={{ width: 320 }}>
|
|
17
|
+
<DrawerHeader header="Resizable drawer" />
|
|
18
|
+
<DrawerContent>Content</DrawerContent>
|
|
19
|
+
</Drawer>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
- 3a74bce: Added selection to `Menu`. Set `selectionVariant` on `MenuGroup` to "single" or "multiple" to render its items as radio or checkbox menu items, give each `MenuItem` a `value`, and control the selection with `selected` and `onSelectionChange`. The menu's content unmounts when it closes, so keep the selection in state.
|
|
23
|
+
|
|
24
|
+
Clicking a selectable item keeps the menu open. Enter selects the item and closes the menu, and Space selects it and keeps the menu open.
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
const [sortBy, setSortBy] = useState(["name"]);
|
|
28
|
+
|
|
29
|
+
<MenuGroup
|
|
30
|
+
label="Sort by"
|
|
31
|
+
selectionVariant="single"
|
|
32
|
+
selected={sortBy}
|
|
33
|
+
onSelectionChange={(_event, newSelected) => setSortBy(newSelected)}
|
|
34
|
+
>
|
|
35
|
+
<MenuItem value="name">Name</MenuItem>
|
|
36
|
+
<MenuItem value="size">Size</MenuItem>
|
|
37
|
+
</MenuGroup>;
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Disabled `MenuItem` components can now be focused with the arrow keys so they can be discovered, but they still can't be activated.
|
|
41
|
+
|
|
42
|
+
- Fixed a submenu staying open when hovering another item in the parent menu if the submenu's last item was disabled.
|
|
43
|
+
- Fixed holding Enter on a menu trigger activating the first item once the menu opened.
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- 20db4be: Fixed `DrawerFooter` clipping its actions when they don't fit on one line. They now wrap onto a new line.
|
|
48
|
+
- 0ac88c9: Fixed `LinkButton` rendering 2px taller than `Button`. It now uses `box-sizing: border-box`, so its border is included in its `--salt-size-base` height.
|
|
49
|
+
- 20db4be: Fixed `DrawerHeader` adding extra space above the header when it has no actions or has a preheader.
|
|
50
|
+
- cdae245: Fixed bordered `ToggleButton` hover and pressed styling. A bordered toggle button now uses the actionable hover border and the actionable active background, border and foreground when pressed, so pressing it shows visible feedback.
|
|
51
|
+
|
|
52
|
+
A selected standalone `ToggleButton` now uses the actionable bold hover foreground on hover, and a selected positive solid `ToggleButton` now uses the positive hover background instead of the accented one.
|
|
53
|
+
|
|
54
|
+
- cdae245: Fixed disabled Tree nodes not matching the design:
|
|
55
|
+
|
|
56
|
+
- A disabled selected node now keeps its selected background.
|
|
57
|
+
- In a multiselect Tree, the checkbox of a disabled node is no longer dimmed twice.
|
|
58
|
+
|
|
3
59
|
## 1.73.0
|
|
4
60
|
|
|
5
61
|
### Minor Changes
|
package/css/salt-core.css
CHANGED
|
@@ -1519,13 +1519,14 @@ a:focus .saltCard-interactable.saltCard-disabled {
|
|
|
1519
1519
|
|
|
1520
1520
|
/* src/drawer/Drawer.css */
|
|
1521
1521
|
.saltDrawer {
|
|
1522
|
+
--drawer-padding: var(--salt-spacing-300);
|
|
1522
1523
|
background: var(--drawer-background);
|
|
1523
1524
|
display: flex;
|
|
1524
1525
|
flex-direction: column;
|
|
1525
1526
|
max-height: 100%;
|
|
1526
1527
|
max-width: 100%;
|
|
1527
1528
|
overflow: auto;
|
|
1528
|
-
padding: var(--
|
|
1529
|
+
padding: var(--drawer-padding);
|
|
1529
1530
|
box-shadow: var(--salt-overlayable-shadow-modal);
|
|
1530
1531
|
z-index: var(--salt-zIndex-drawer);
|
|
1531
1532
|
position: fixed;
|
|
@@ -1533,13 +1534,99 @@ a:focus .saltCard-interactable.saltCard-disabled {
|
|
|
1533
1534
|
box-sizing: border-box;
|
|
1534
1535
|
}
|
|
1535
1536
|
.saltDrawer.saltDrawer-sectioned {
|
|
1536
|
-
padding:
|
|
1537
|
+
--drawer-padding: 0px;
|
|
1538
|
+
}
|
|
1539
|
+
.saltDrawer-resizing {
|
|
1540
|
+
user-select: none;
|
|
1537
1541
|
}
|
|
1538
1542
|
@supports selector(:has(*)) {
|
|
1539
|
-
.saltDrawer:has(> .saltDrawerHeader, > .saltDrawerContent, > .saltDrawerFooter)
|
|
1540
|
-
|
|
1543
|
+
.saltDrawer:has(> .saltDrawerHeader, > .saltDrawerContent, > .saltDrawerFooter),
|
|
1544
|
+
.saltDrawer-inner:has(> .saltDrawerHeader, > .saltDrawerContent, > .saltDrawerFooter) {
|
|
1545
|
+
--drawer-padding: 0px;
|
|
1541
1546
|
}
|
|
1542
1547
|
}
|
|
1548
|
+
.saltDrawer-resizable {
|
|
1549
|
+
--drawer-resizeHandleSize: var(--salt-size-fixed-600);
|
|
1550
|
+
--drawer-resizeHandleOutset: var(--salt-spacing-150);
|
|
1551
|
+
--drawer-resizeHandleGutter: calc(var(--drawer-resizeHandleSize) + var(--drawer-resizeHandleOutset));
|
|
1552
|
+
--drawer-resizeHandlePadding: var(--salt-spacing-100);
|
|
1553
|
+
overflow: visible;
|
|
1554
|
+
padding: 0;
|
|
1555
|
+
}
|
|
1556
|
+
.saltDrawer-inner {
|
|
1557
|
+
--drawer-innerResizeHandlePadding: min(var(--drawer-padding), var(--drawer-resizeHandlePadding));
|
|
1558
|
+
display: flex;
|
|
1559
|
+
flex: 1 1 auto;
|
|
1560
|
+
flex-direction: column;
|
|
1561
|
+
min-height: 0;
|
|
1562
|
+
min-width: 0;
|
|
1563
|
+
overflow: auto;
|
|
1564
|
+
padding: var(--drawer-padding);
|
|
1565
|
+
box-sizing: border-box;
|
|
1566
|
+
}
|
|
1567
|
+
.saltDrawer-resizable.saltDrawer-left {
|
|
1568
|
+
padding-right: var(--drawer-resizeHandleGutter);
|
|
1569
|
+
}
|
|
1570
|
+
.saltDrawer-resizable.saltDrawer-right {
|
|
1571
|
+
padding-left: var(--drawer-resizeHandleGutter);
|
|
1572
|
+
}
|
|
1573
|
+
.saltDrawer-resizable.saltDrawer-top {
|
|
1574
|
+
padding-bottom: var(--drawer-resizeHandleGutter);
|
|
1575
|
+
}
|
|
1576
|
+
.saltDrawer-resizable.saltDrawer-bottom {
|
|
1577
|
+
padding-top: var(--drawer-resizeHandleGutter);
|
|
1578
|
+
}
|
|
1579
|
+
.saltDrawer-resizable.saltDrawer-left > .saltDrawer-inner {
|
|
1580
|
+
padding-right: var(--drawer-innerResizeHandlePadding);
|
|
1581
|
+
}
|
|
1582
|
+
.saltDrawer-resizable.saltDrawer-right > .saltDrawer-inner {
|
|
1583
|
+
padding-left: var(--drawer-innerResizeHandlePadding);
|
|
1584
|
+
}
|
|
1585
|
+
.saltDrawer-resizable.saltDrawer-top > .saltDrawer-inner {
|
|
1586
|
+
padding-bottom: var(--drawer-innerResizeHandlePadding);
|
|
1587
|
+
}
|
|
1588
|
+
.saltDrawer-resizable.saltDrawer-bottom > .saltDrawer-inner {
|
|
1589
|
+
padding-top: var(--drawer-innerResizeHandlePadding);
|
|
1590
|
+
}
|
|
1591
|
+
.saltDrawer-resizable.saltDrawer-left > .saltDrawer-inner > :is(.saltDrawerHeader, .saltDrawerContent, .saltDrawerFooter) {
|
|
1592
|
+
padding-right: var(--drawer-resizeHandlePadding);
|
|
1593
|
+
}
|
|
1594
|
+
.saltDrawer-resizable.saltDrawer-right > .saltDrawer-inner > :is(.saltDrawerHeader, .saltDrawerContent, .saltDrawerFooter) {
|
|
1595
|
+
padding-left: var(--drawer-resizeHandlePadding);
|
|
1596
|
+
}
|
|
1597
|
+
.saltDrawer-resizable.saltDrawer-top > .saltDrawer-inner > :is(.saltDrawerHeader, .saltDrawerContent, .saltDrawerFooter):last-child {
|
|
1598
|
+
padding-bottom: var(--drawer-resizeHandlePadding);
|
|
1599
|
+
}
|
|
1600
|
+
.saltDrawer-resizable.saltDrawer-bottom > .saltDrawer-inner > :is(.saltDrawerHeader, .saltDrawerContent, .saltDrawerFooter):first-child {
|
|
1601
|
+
padding-top: var(--drawer-resizeHandlePadding);
|
|
1602
|
+
}
|
|
1603
|
+
.saltDrawer-resizable.saltDrawer-top > .saltDrawer-inner > .saltDrawerHeader-withAccent:last-child::before {
|
|
1604
|
+
bottom: var(--drawer-resizeHandlePadding);
|
|
1605
|
+
}
|
|
1606
|
+
.saltDrawer-resizable.saltDrawer-bottom > .saltDrawer-inner > .saltDrawerHeader-withAccent:first-child::before {
|
|
1607
|
+
top: var(--drawer-resizeHandlePadding);
|
|
1608
|
+
}
|
|
1609
|
+
.saltDrawer-resizable.saltDrawer-left .saltButton-secondary.saltDrawerCloseButton {
|
|
1610
|
+
margin-right: calc(-1 * var(--drawer-innerResizeHandlePadding));
|
|
1611
|
+
}
|
|
1612
|
+
.saltDrawer-resizable.saltDrawer-bottom .saltButton-secondary.saltDrawerCloseButton {
|
|
1613
|
+
margin-top: calc(-1 * var(--drawer-innerResizeHandlePadding));
|
|
1614
|
+
}
|
|
1615
|
+
.saltDrawer-resizable {
|
|
1616
|
+
--drawer-resizeLimit: calc(100% - var(--drawer-resizeHandleOutset));
|
|
1617
|
+
--drawer-minResize: min(max(var(--saltDrawer-minResize, 0px), var(--salt-size-base)), var(--drawer-resizeLimit));
|
|
1618
|
+
--drawer-maxResize: min(var(--saltDrawer-maxResize, 100%), var(--drawer-resizeLimit));
|
|
1619
|
+
}
|
|
1620
|
+
.saltDrawer-resizable.saltDrawer-left,
|
|
1621
|
+
.saltDrawer-resizable.saltDrawer-right {
|
|
1622
|
+
min-width: var(--drawer-minResize);
|
|
1623
|
+
max-width: var(--drawer-maxResize);
|
|
1624
|
+
}
|
|
1625
|
+
.saltDrawer-resizable.saltDrawer-top,
|
|
1626
|
+
.saltDrawer-resizable.saltDrawer-bottom {
|
|
1627
|
+
min-height: var(--drawer-minResize);
|
|
1628
|
+
max-height: var(--drawer-maxResize);
|
|
1629
|
+
}
|
|
1543
1630
|
.saltDrawer-primary {
|
|
1544
1631
|
--drawer-background: var(--salt-container-primary-background);
|
|
1545
1632
|
}
|
|
@@ -1650,6 +1737,7 @@ a:focus .saltCard-interactable.saltCard-disabled {
|
|
|
1650
1737
|
gap: var(--salt-spacing-100);
|
|
1651
1738
|
flex-shrink: 0;
|
|
1652
1739
|
box-sizing: border-box;
|
|
1740
|
+
flex-wrap: wrap;
|
|
1653
1741
|
}
|
|
1654
1742
|
|
|
1655
1743
|
/* src/drawer/DrawerHeader.css */
|
|
@@ -1669,11 +1757,13 @@ a:focus .saltCard-interactable.saltCard-disabled {
|
|
|
1669
1757
|
display: flex;
|
|
1670
1758
|
flex-direction: column;
|
|
1671
1759
|
gap: var(--salt-spacing-50);
|
|
1672
|
-
padding-top: calc((var(--salt-size-base) - var(--salt-text-h2-lineHeight)) / 2);
|
|
1673
1760
|
align-items: flex-start;
|
|
1674
1761
|
min-width: 0;
|
|
1675
1762
|
word-break: break-word;
|
|
1676
1763
|
}
|
|
1764
|
+
.saltDrawerHeader-withCenteredTitle .saltDrawerHeader-container {
|
|
1765
|
+
padding-top: calc((var(--salt-size-base) - var(--salt-text-h2-lineHeight)) / 2);
|
|
1766
|
+
}
|
|
1677
1767
|
.saltDrawerHeader-header > .saltText {
|
|
1678
1768
|
display: block;
|
|
1679
1769
|
margin: 0;
|
|
@@ -2606,6 +2696,7 @@ a:focus .saltCard-interactable.saltCard-disabled {
|
|
|
2606
2696
|
border-style: var(--saltLinkButton-borderStyle, solid);
|
|
2607
2697
|
border-width: var(--saltLinkButton-borderWidth, var(--linkButton-borderWidth));
|
|
2608
2698
|
border-radius: var(--saltLinkButton-borderRadius, var(--salt-palette-corner-weak, 0));
|
|
2699
|
+
box-sizing: border-box;
|
|
2609
2700
|
color: var(--saltLinkButton-text-color, var(--linkButton-text-color));
|
|
2610
2701
|
display: inline-flex;
|
|
2611
2702
|
gap: var(--salt-spacing-50);
|
|
@@ -3008,6 +3099,7 @@ a:focus .saltCard-interactable.saltCard-disabled {
|
|
|
3008
3099
|
cursor: var(--salt-cursor-hover);
|
|
3009
3100
|
box-sizing: border-box;
|
|
3010
3101
|
flex-shrink: 0;
|
|
3102
|
+
--saltMenuItem-iconColumnWidth: max(var(--salt-size-icon), 12px);
|
|
3011
3103
|
}
|
|
3012
3104
|
.saltMenuItem:focus-visible {
|
|
3013
3105
|
outline: var(--salt-focused-outline);
|
|
@@ -3020,7 +3112,7 @@ a:focus .saltCard-interactable.saltCard-disabled {
|
|
|
3020
3112
|
.saltMenuItem:focus-visible {
|
|
3021
3113
|
background: var(--salt-selectable-background-hover);
|
|
3022
3114
|
}
|
|
3023
|
-
.saltMenuItem:active {
|
|
3115
|
+
.saltMenuItem[role=menuitem]:active {
|
|
3024
3116
|
background: var(--salt-selectable-background-selected);
|
|
3025
3117
|
box-shadow: 0 calc(var(--salt-size-fixed-100) * -1) 0 0 var(--salt-selectable-borderColor-selected), 0 var(--salt-size-fixed-100) 0 0 var(--salt-selectable-borderColor-selected);
|
|
3026
3118
|
}
|
|
@@ -3040,6 +3132,23 @@ a:focus .saltCard-interactable.saltCard-disabled {
|
|
|
3040
3132
|
.saltMenuItem .saltIcon:not(.saltCheckboxIcon-icon) {
|
|
3041
3133
|
min-height: var(--salt-text-lineHeight);
|
|
3042
3134
|
}
|
|
3135
|
+
.saltMenuItem .saltMenuItem-selectionIcon {
|
|
3136
|
+
margin: calc((var(--salt-text-lineHeight) - var(--salt-size-selectable)) / 2) 0;
|
|
3137
|
+
}
|
|
3138
|
+
.saltMenuItem-selectionIconPlaceholder {
|
|
3139
|
+
flex-shrink: 0;
|
|
3140
|
+
width: var(--salt-size-selectable);
|
|
3141
|
+
}
|
|
3142
|
+
.saltMenuItem-iconPlaceholder {
|
|
3143
|
+
flex-shrink: 0;
|
|
3144
|
+
width: var(--saltMenuItem-iconColumnWidth);
|
|
3145
|
+
}
|
|
3146
|
+
.saltMenuItem-selectionAlignedIcon {
|
|
3147
|
+
--saltMenuItem-iconColumnWidth: max(var(--salt-size-selectable), var(--salt-size-icon), 12px);
|
|
3148
|
+
}
|
|
3149
|
+
.saltMenuItem-selectionAlignedIcon > .saltIcon:first-child {
|
|
3150
|
+
margin-inline: max(0px, calc((var(--saltMenuItem-iconColumnWidth) - var(--icon-size)) / 2));
|
|
3151
|
+
}
|
|
3043
3152
|
.saltMenuItem-expandIcon.saltIcon {
|
|
3044
3153
|
margin-left: auto;
|
|
3045
3154
|
}
|
|
@@ -6188,6 +6297,7 @@ label.saltText,
|
|
|
6188
6297
|
}
|
|
6189
6298
|
.saltToggleButton[aria-pressed=true]:hover {
|
|
6190
6299
|
background: var(--toggleButton-background-selectedHover);
|
|
6300
|
+
color: var(--toggleButton-text-color-selectedHover);
|
|
6191
6301
|
border-color: var(--toggleButton-borderColor-selectedHover);
|
|
6192
6302
|
}
|
|
6193
6303
|
.saltToggleButton[aria-disabled=true] {
|
|
@@ -6222,6 +6332,7 @@ label.saltText,
|
|
|
6222
6332
|
--toggleButton-text-color-hover: var(--salt-actionable-subtle-foreground-hover);
|
|
6223
6333
|
--toggleButton-text-color-active: var(--salt-actionable-subtle-foreground-active);
|
|
6224
6334
|
--toggleButton-text-color-selected: var(--salt-actionable-foreground-selected);
|
|
6335
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-bold-foreground-hover);
|
|
6225
6336
|
--toggleButton-background: var(--salt-actionable-subtle-background);
|
|
6226
6337
|
--toggleButton-background-hover: var(--salt-actionable-subtle-background-hover);
|
|
6227
6338
|
--toggleButton-background-active: var(--salt-actionable-subtle-background-active);
|
|
@@ -6238,6 +6349,7 @@ label.saltText,
|
|
|
6238
6349
|
--toggleButton-text-color-hover: var(--salt-actionable-accented-subtle-foreground-hover);
|
|
6239
6350
|
--toggleButton-text-color-active: var(--salt-actionable-accented-subtle-foreground-active);
|
|
6240
6351
|
--toggleButton-text-color-selected: var(--salt-actionable-accented-foreground-selected);
|
|
6352
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-accented-bold-foreground-hover);
|
|
6241
6353
|
--toggleButton-background: var(--salt-actionable-accented-subtle-background);
|
|
6242
6354
|
--toggleButton-background-hover: var(--salt-actionable-accented-subtle-background-hover);
|
|
6243
6355
|
--toggleButton-background-active: var(--salt-actionable-accented-subtle-background-active);
|
|
@@ -6254,6 +6366,7 @@ label.saltText,
|
|
|
6254
6366
|
--toggleButton-text-color-hover: var(--salt-actionable-positive-subtle-foreground-hover);
|
|
6255
6367
|
--toggleButton-text-color-active: var(--salt-actionable-positive-subtle-foreground-active);
|
|
6256
6368
|
--toggleButton-text-color-selected: var(--salt-actionable-positive-foreground-selected);
|
|
6369
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-positive-bold-foreground-hover);
|
|
6257
6370
|
--toggleButton-background: var(--salt-actionable-positive-subtle-background);
|
|
6258
6371
|
--toggleButton-background-hover: var(--salt-actionable-positive-subtle-background-hover);
|
|
6259
6372
|
--toggleButton-background-active: var(--salt-actionable-positive-subtle-background-active);
|
|
@@ -6263,13 +6376,14 @@ label.saltText,
|
|
|
6263
6376
|
--toggleButton-borderColor-active: var(--salt-actionable-positive-subtle-borderColor-active);
|
|
6264
6377
|
--toggleButton-borderColor-selected: var(--salt-actionable-positive-borderColor-selected);
|
|
6265
6378
|
--toggleButton-borderColor-selectedHover: var(--salt-actionable-positive-bold-borderColor-hover);
|
|
6266
|
-
--toggleButton-background-selectedHover: var(--salt-actionable-
|
|
6379
|
+
--toggleButton-background-selectedHover: var(--salt-actionable-positive-bold-background-hover);
|
|
6267
6380
|
}
|
|
6268
6381
|
.saltToggleButton-negative.saltToggleButton-solid {
|
|
6269
6382
|
--toggleButton-text-color: var(--salt-actionable-negative-subtle-foreground);
|
|
6270
6383
|
--toggleButton-text-color-hover: var(--salt-actionable-negative-subtle-foreground-hover);
|
|
6271
6384
|
--toggleButton-text-color-active: var(--salt-actionable-negative-subtle-foreground-active);
|
|
6272
6385
|
--toggleButton-text-color-selected: var(--salt-actionable-negative-foreground-selected);
|
|
6386
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-negative-bold-foreground-hover);
|
|
6273
6387
|
--toggleButton-background: var(--salt-actionable-negative-subtle-background);
|
|
6274
6388
|
--toggleButton-background-hover: var(--salt-actionable-negative-subtle-background-hover);
|
|
6275
6389
|
--toggleButton-background-active: var(--salt-actionable-negative-subtle-background-active);
|
|
@@ -6286,6 +6400,7 @@ label.saltText,
|
|
|
6286
6400
|
--toggleButton-text-color-hover: var(--salt-actionable-caution-subtle-foreground-hover);
|
|
6287
6401
|
--toggleButton-text-color-active: var(--salt-actionable-caution-subtle-foreground-active);
|
|
6288
6402
|
--toggleButton-text-color-selected: var(--salt-actionable-caution-foreground-selected);
|
|
6403
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-caution-bold-foreground-hover);
|
|
6289
6404
|
--toggleButton-background: var(--salt-actionable-caution-subtle-background);
|
|
6290
6405
|
--toggleButton-background-hover: var(--salt-actionable-caution-subtle-background-hover);
|
|
6291
6406
|
--toggleButton-background-active: var(--salt-actionable-caution-subtle-background-active);
|
|
@@ -6300,15 +6415,16 @@ label.saltText,
|
|
|
6300
6415
|
.saltToggleButton-neutral.saltToggleButton-bordered {
|
|
6301
6416
|
--toggleButton-text-color: var(--salt-actionable-foreground);
|
|
6302
6417
|
--toggleButton-text-color-hover: var(--salt-actionable-foreground-hover);
|
|
6303
|
-
--toggleButton-text-color-active: var(--salt-actionable-foreground);
|
|
6418
|
+
--toggleButton-text-color-active: var(--salt-actionable-foreground-active);
|
|
6304
6419
|
--toggleButton-text-color-selected: var(--salt-actionable-foreground-selected);
|
|
6420
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-bold-foreground-hover);
|
|
6305
6421
|
--toggleButton-background: var(--salt-actionable-background);
|
|
6306
6422
|
--toggleButton-background-hover: var(--salt-actionable-background-hover);
|
|
6307
|
-
--toggleButton-background-active: var(--salt-actionable-background);
|
|
6423
|
+
--toggleButton-background-active: var(--salt-actionable-background-active);
|
|
6308
6424
|
--toggleButton-background-selected: var(--salt-actionable-background-selected);
|
|
6309
6425
|
--toggleButton-borderColor: var(--salt-actionable-borderColor);
|
|
6310
|
-
--toggleButton-borderColor-hover: var(--salt-actionable-borderColor);
|
|
6311
|
-
--toggleButton-borderColor-active: var(--salt-actionable-borderColor);
|
|
6426
|
+
--toggleButton-borderColor-hover: var(--salt-actionable-borderColor-hover);
|
|
6427
|
+
--toggleButton-borderColor-active: var(--salt-actionable-borderColor-active);
|
|
6312
6428
|
--toggleButton-borderColor-selected: var(--salt-actionable-borderColor-selected);
|
|
6313
6429
|
--toggleButton-borderColor-selectedHover: var(--salt-actionable-bold-borderColor-hover);
|
|
6314
6430
|
--toggleButton-background-selectedHover: var(--salt-actionable-bold-background-hover);
|
|
@@ -6316,15 +6432,16 @@ label.saltText,
|
|
|
6316
6432
|
.saltToggleButton-accented.saltToggleButton-bordered {
|
|
6317
6433
|
--toggleButton-text-color: var(--salt-actionable-accented-foreground);
|
|
6318
6434
|
--toggleButton-text-color-hover: var(--salt-actionable-accented-foreground-hover);
|
|
6319
|
-
--toggleButton-text-color-active: var(--salt-actionable-accented-foreground);
|
|
6435
|
+
--toggleButton-text-color-active: var(--salt-actionable-accented-foreground-active);
|
|
6320
6436
|
--toggleButton-text-color-selected: var(--salt-actionable-accented-foreground-selected);
|
|
6437
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-accented-bold-foreground-hover);
|
|
6321
6438
|
--toggleButton-background: var(--salt-actionable-accented-background);
|
|
6322
6439
|
--toggleButton-background-hover: var(--salt-actionable-accented-background-hover);
|
|
6323
|
-
--toggleButton-background-active: var(--salt-actionable-accented-background);
|
|
6440
|
+
--toggleButton-background-active: var(--salt-actionable-accented-background-active);
|
|
6324
6441
|
--toggleButton-background-selected: var(--salt-actionable-accented-background-selected);
|
|
6325
6442
|
--toggleButton-borderColor: var(--salt-actionable-accented-borderColor);
|
|
6326
|
-
--toggleButton-borderColor-hover: var(--salt-actionable-accented-borderColor);
|
|
6327
|
-
--toggleButton-borderColor-active: var(--salt-actionable-accented-borderColor);
|
|
6443
|
+
--toggleButton-borderColor-hover: var(--salt-actionable-accented-borderColor-hover);
|
|
6444
|
+
--toggleButton-borderColor-active: var(--salt-actionable-accented-borderColor-active);
|
|
6328
6445
|
--toggleButton-borderColor-selected: var(--salt-actionable-accented-borderColor-selected);
|
|
6329
6446
|
--toggleButton-borderColor-selectedHover: var(--salt-actionable-accented-bold-borderColor-hover);
|
|
6330
6447
|
--toggleButton-background-selectedHover: var(--salt-actionable-accented-bold-background-hover);
|
|
@@ -6332,15 +6449,16 @@ label.saltText,
|
|
|
6332
6449
|
.saltToggleButton-positive.saltToggleButton-bordered {
|
|
6333
6450
|
--toggleButton-text-color: var(--salt-actionable-positive-foreground);
|
|
6334
6451
|
--toggleButton-text-color-hover: var(--salt-actionable-positive-foreground-hover);
|
|
6335
|
-
--toggleButton-text-color-active: var(--salt-actionable-positive-foreground);
|
|
6452
|
+
--toggleButton-text-color-active: var(--salt-actionable-positive-foreground-active);
|
|
6336
6453
|
--toggleButton-text-color-selected: var(--salt-actionable-positive-foreground-selected);
|
|
6454
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-positive-bold-foreground-hover);
|
|
6337
6455
|
--toggleButton-background: var(--salt-actionable-positive-background);
|
|
6338
6456
|
--toggleButton-background-hover: var(--salt-actionable-positive-background-hover);
|
|
6339
|
-
--toggleButton-background-active: var(--salt-actionable-positive-background);
|
|
6457
|
+
--toggleButton-background-active: var(--salt-actionable-positive-background-active);
|
|
6340
6458
|
--toggleButton-background-selected: var(--salt-actionable-positive-background-selected);
|
|
6341
6459
|
--toggleButton-borderColor: var(--salt-actionable-positive-borderColor);
|
|
6342
|
-
--toggleButton-borderColor-hover: var(--salt-actionable-positive-borderColor);
|
|
6343
|
-
--toggleButton-borderColor-active: var(--salt-actionable-positive-borderColor);
|
|
6460
|
+
--toggleButton-borderColor-hover: var(--salt-actionable-positive-borderColor-hover);
|
|
6461
|
+
--toggleButton-borderColor-active: var(--salt-actionable-positive-borderColor-active);
|
|
6344
6462
|
--toggleButton-borderColor-selected: var(--salt-actionable-positive-borderColor-selected);
|
|
6345
6463
|
--toggleButton-borderColor-selectedHover: var(--salt-actionable-positive-bold-borderColor-hover);
|
|
6346
6464
|
--toggleButton-background-selectedHover: var(--salt-actionable-positive-bold-background-hover);
|
|
@@ -6348,15 +6466,16 @@ label.saltText,
|
|
|
6348
6466
|
.saltToggleButton-negative.saltToggleButton-bordered {
|
|
6349
6467
|
--toggleButton-text-color: var(--salt-actionable-negative-foreground);
|
|
6350
6468
|
--toggleButton-text-color-hover: var(--salt-actionable-negative-foreground-hover);
|
|
6351
|
-
--toggleButton-text-color-active: var(--salt-actionable-negative-foreground);
|
|
6469
|
+
--toggleButton-text-color-active: var(--salt-actionable-negative-foreground-active);
|
|
6352
6470
|
--toggleButton-text-color-selected: var(--salt-actionable-negative-foreground-selected);
|
|
6471
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-negative-bold-foreground-hover);
|
|
6353
6472
|
--toggleButton-background: var(--salt-actionable-negative-background);
|
|
6354
6473
|
--toggleButton-background-hover: var(--salt-actionable-negative-background-hover);
|
|
6355
|
-
--toggleButton-background-active: var(--salt-actionable-negative-background);
|
|
6474
|
+
--toggleButton-background-active: var(--salt-actionable-negative-background-active);
|
|
6356
6475
|
--toggleButton-background-selected: var(--salt-actionable-negative-background-selected);
|
|
6357
6476
|
--toggleButton-borderColor: var(--salt-actionable-negative-borderColor);
|
|
6358
|
-
--toggleButton-borderColor-hover: var(--salt-actionable-negative-borderColor);
|
|
6359
|
-
--toggleButton-borderColor-active: var(--salt-actionable-negative-borderColor);
|
|
6477
|
+
--toggleButton-borderColor-hover: var(--salt-actionable-negative-borderColor-hover);
|
|
6478
|
+
--toggleButton-borderColor-active: var(--salt-actionable-negative-borderColor-active);
|
|
6360
6479
|
--toggleButton-borderColor-selected: var(--salt-actionable-negative-borderColor-selected);
|
|
6361
6480
|
--toggleButton-borderColor-selectedHover: var(--salt-actionable-negative-bold-borderColor-hover);
|
|
6362
6481
|
--toggleButton-background-selectedHover: var(--salt-actionable-negative-bold-background-hover);
|
|
@@ -6364,15 +6483,16 @@ label.saltText,
|
|
|
6364
6483
|
.saltToggleButton-caution.saltToggleButton-bordered {
|
|
6365
6484
|
--toggleButton-text-color: var(--salt-actionable-caution-foreground);
|
|
6366
6485
|
--toggleButton-text-color-hover: var(--salt-actionable-caution-foreground-hover);
|
|
6367
|
-
--toggleButton-text-color-active: var(--salt-actionable-caution-foreground);
|
|
6486
|
+
--toggleButton-text-color-active: var(--salt-actionable-caution-foreground-active);
|
|
6368
6487
|
--toggleButton-text-color-selected: var(--salt-actionable-caution-foreground-selected);
|
|
6488
|
+
--toggleButton-text-color-selectedHover: var(--salt-actionable-caution-bold-foreground-hover);
|
|
6369
6489
|
--toggleButton-background: var(--salt-actionable-caution-background);
|
|
6370
6490
|
--toggleButton-background-hover: var(--salt-actionable-caution-background-hover);
|
|
6371
|
-
--toggleButton-background-active: var(--salt-actionable-caution-background);
|
|
6491
|
+
--toggleButton-background-active: var(--salt-actionable-caution-background-active);
|
|
6372
6492
|
--toggleButton-background-selected: var(--salt-actionable-caution-background-selected);
|
|
6373
6493
|
--toggleButton-borderColor: var(--salt-actionable-caution-borderColor);
|
|
6374
|
-
--toggleButton-borderColor-hover: var(--salt-actionable-caution-borderColor);
|
|
6375
|
-
--toggleButton-borderColor-active: var(--salt-actionable-caution-borderColor);
|
|
6494
|
+
--toggleButton-borderColor-hover: var(--salt-actionable-caution-borderColor-hover);
|
|
6495
|
+
--toggleButton-borderColor-active: var(--salt-actionable-caution-borderColor-active);
|
|
6376
6496
|
--toggleButton-borderColor-selected: var(--salt-actionable-caution-borderColor-selected);
|
|
6377
6497
|
--toggleButton-borderColor-selectedHover: var(--salt-actionable-caution-bold-borderColor-hover);
|
|
6378
6498
|
--toggleButton-background-selectedHover: var(--salt-actionable-caution-bold-background-hover);
|
|
@@ -6876,6 +6996,9 @@ label.saltText,
|
|
|
6876
6996
|
background: var(--salt-selectable-background);
|
|
6877
6997
|
color: var(--salt-content-primary-foreground);
|
|
6878
6998
|
}
|
|
6999
|
+
.saltTreeNode-selected.saltTreeNode-disabled > .saltTreeNodeTrigger {
|
|
7000
|
+
background: var(--salt-selectable-background-selected);
|
|
7001
|
+
}
|
|
6879
7002
|
.saltTreeNodeTrigger > .saltTreeNode-checkbox {
|
|
6880
7003
|
margin-top: var(--saltTreeNodeTrigger-checkboxOffsetY);
|
|
6881
7004
|
margin-bottom: 0;
|
|
@@ -7044,6 +7167,124 @@ label.saltText,
|
|
|
7044
7167
|
font-weight: var(--salt-text-heading-fontWeight-lighter);
|
|
7045
7168
|
}
|
|
7046
7169
|
|
|
7170
|
+
/* src/drawer/internal/DrawerResizeGuide.css */
|
|
7171
|
+
.saltDrawerResizeGuide {
|
|
7172
|
+
--drawerResizeGuide-borderColor: var(--salt-content-secondary-foreground);
|
|
7173
|
+
--drawerResizeGuide-borderWidth: var(--salt-size-fixed-200);
|
|
7174
|
+
position: fixed;
|
|
7175
|
+
inset: 0;
|
|
7176
|
+
z-index: calc(var(--salt-zIndex-drawer) + 1);
|
|
7177
|
+
touch-action: none;
|
|
7178
|
+
user-select: none;
|
|
7179
|
+
}
|
|
7180
|
+
.saltDrawerResizeGuide::before {
|
|
7181
|
+
content: "";
|
|
7182
|
+
position: absolute;
|
|
7183
|
+
box-sizing: border-box;
|
|
7184
|
+
pointer-events: none;
|
|
7185
|
+
}
|
|
7186
|
+
.saltDrawerResizeGuide-vertical {
|
|
7187
|
+
cursor: var(--salt-cursor-drag-ew);
|
|
7188
|
+
}
|
|
7189
|
+
.saltDrawerResizeGuide-vertical::before {
|
|
7190
|
+
top: 0;
|
|
7191
|
+
bottom: 0;
|
|
7192
|
+
left: var(--drawerResizeGuide-offset, 0px);
|
|
7193
|
+
width: 0;
|
|
7194
|
+
border-left: var(--drawerResizeGuide-borderWidth) var(--salt-borderStyle-dashed) var(--drawerResizeGuide-borderColor);
|
|
7195
|
+
transform: translateX(-50%);
|
|
7196
|
+
}
|
|
7197
|
+
.saltDrawerResizeGuide-horizontal {
|
|
7198
|
+
cursor: var(--salt-cursor-drag-ns);
|
|
7199
|
+
}
|
|
7200
|
+
.saltDrawerResizeGuide-horizontal::before {
|
|
7201
|
+
left: 0;
|
|
7202
|
+
right: 0;
|
|
7203
|
+
top: var(--drawerResizeGuide-offset, 0px);
|
|
7204
|
+
height: 0;
|
|
7205
|
+
border-top: var(--drawerResizeGuide-borderWidth) var(--salt-borderStyle-dashed) var(--drawerResizeGuide-borderColor);
|
|
7206
|
+
transform: translateY(-50%);
|
|
7207
|
+
}
|
|
7208
|
+
|
|
7209
|
+
/* src/drawer/internal/DrawerResizeHandle.css */
|
|
7210
|
+
.saltDrawerResizeHandle {
|
|
7211
|
+
--drawerResizeHandle-thumbSize: max(var(--salt-size-icon, 12px), 12px);
|
|
7212
|
+
--drawerResizeHandle-thumbImage: url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%3E%3Cpath%20d%3D%22M5%2011V9H7V11H5Z%22%20%2F%3E%3Cpath%20d%3D%22M5%207L5%205H7L7%207H5Z%22%20%2F%3E%3Cpath%20d%3D%22M5%201V3H7V1L5%201Z%22%20%2F%3E%3C%2Fsvg%3E);
|
|
7213
|
+
--drawerResizeHandle-background: transparent;
|
|
7214
|
+
--drawerResizeHandle-background-hover: var(--salt-separable-background-hover);
|
|
7215
|
+
--drawerResizeHandle-background-active: var(--salt-separable-background-active);
|
|
7216
|
+
--drawerResizeHandle-dot-background: var(--salt-separable-foreground);
|
|
7217
|
+
--drawerResizeHandle-dot-background-hover: var(--salt-separable-foreground-hover);
|
|
7218
|
+
--drawerResizeHandle-dot-background-active: var(--salt-separable-foreground-active);
|
|
7219
|
+
--drawerResizeHandle-targetSize: calc(var(--drawer-resizeHandleSize) + 2 * var(--drawer-resizeHandleOutset));
|
|
7220
|
+
position: absolute;
|
|
7221
|
+
z-index: 1;
|
|
7222
|
+
touch-action: none;
|
|
7223
|
+
}
|
|
7224
|
+
.saltDrawerResizeHandle::before,
|
|
7225
|
+
.saltDrawerResizeHandle::after {
|
|
7226
|
+
content: "";
|
|
7227
|
+
position: absolute;
|
|
7228
|
+
inset: var(--drawerResizeHandle-stripInset);
|
|
7229
|
+
}
|
|
7230
|
+
.saltDrawerResizeHandle::before {
|
|
7231
|
+
background: var(--drawerResizeHandle-background);
|
|
7232
|
+
}
|
|
7233
|
+
.saltDrawerResizeHandle::after {
|
|
7234
|
+
background: var(--drawerResizeHandle-dot-background);
|
|
7235
|
+
mask-image: var(--drawerResizeHandle-thumbImage);
|
|
7236
|
+
mask-position: center;
|
|
7237
|
+
mask-repeat: no-repeat;
|
|
7238
|
+
mask-size: var(--drawerResizeHandle-thumbSize);
|
|
7239
|
+
-webkit-mask-image: var(--drawerResizeHandle-thumbImage);
|
|
7240
|
+
-webkit-mask-position: center;
|
|
7241
|
+
-webkit-mask-repeat: no-repeat;
|
|
7242
|
+
-webkit-mask-size: var(--drawerResizeHandle-thumbSize);
|
|
7243
|
+
}
|
|
7244
|
+
.saltDrawerResizeHandle-left,
|
|
7245
|
+
.saltDrawerResizeHandle-right {
|
|
7246
|
+
--drawerResizeHandle-stripInset: 0 var(--drawer-resizeHandleOutset);
|
|
7247
|
+
top: 0;
|
|
7248
|
+
bottom: 0;
|
|
7249
|
+
width: var(--drawerResizeHandle-targetSize);
|
|
7250
|
+
}
|
|
7251
|
+
.saltDrawerResizeHandle-left {
|
|
7252
|
+
right: calc(-1 * var(--drawer-resizeHandleOutset));
|
|
7253
|
+
}
|
|
7254
|
+
.saltDrawerResizeHandle-right {
|
|
7255
|
+
left: calc(-1 * var(--drawer-resizeHandleOutset));
|
|
7256
|
+
}
|
|
7257
|
+
.saltDrawerResizeHandle-top,
|
|
7258
|
+
.saltDrawerResizeHandle-bottom {
|
|
7259
|
+
--drawerResizeHandle-thumbImage: url(data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%3E%3Cpath%20d%3D%22M1%205H3V7H1Z%22%20%2F%3E%3Cpath%20d%3D%22M5%205H7V7H5Z%22%20%2F%3E%3Cpath%20d%3D%22M9%205H11V7H9Z%22%20%2F%3E%3C%2Fsvg%3E);
|
|
7260
|
+
--drawerResizeHandle-stripInset: var(--drawer-resizeHandleOutset) 0;
|
|
7261
|
+
left: 0;
|
|
7262
|
+
right: 0;
|
|
7263
|
+
height: var(--drawerResizeHandle-targetSize);
|
|
7264
|
+
}
|
|
7265
|
+
.saltDrawerResizeHandle-top {
|
|
7266
|
+
bottom: calc(-1 * var(--drawer-resizeHandleOutset));
|
|
7267
|
+
}
|
|
7268
|
+
.saltDrawerResizeHandle-bottom {
|
|
7269
|
+
top: calc(-1 * var(--drawer-resizeHandleOutset));
|
|
7270
|
+
}
|
|
7271
|
+
.saltDrawerResizeHandle-hovered {
|
|
7272
|
+
--drawerResizeHandle-background: var(--drawerResizeHandle-background-hover);
|
|
7273
|
+
--drawerResizeHandle-dot-background: var(--drawerResizeHandle-dot-background-hover);
|
|
7274
|
+
}
|
|
7275
|
+
.saltDrawerResizeHandle.saltDrawerResizeHandle-resizing {
|
|
7276
|
+
--drawerResizeHandle-background: var(--drawerResizeHandle-background-active);
|
|
7277
|
+
--drawerResizeHandle-dot-background: var(--drawerResizeHandle-dot-background-active);
|
|
7278
|
+
}
|
|
7279
|
+
.saltDrawerResizeHandle:focus-visible {
|
|
7280
|
+
outline: none;
|
|
7281
|
+
}
|
|
7282
|
+
.saltDrawerResizeHandle:focus-visible::before {
|
|
7283
|
+
outline-style: var(--salt-focused-outlineStyle);
|
|
7284
|
+
outline-width: var(--salt-focused-outlineWidth);
|
|
7285
|
+
outline-color: var(--salt-focused-outlineColor);
|
|
7286
|
+
}
|
|
7287
|
+
|
|
7047
7288
|
/* src/progress/CircularProgress/CircularProgress.css */
|
|
7048
7289
|
.saltCircularProgress {
|
|
7049
7290
|
color: var(--salt-content-primary-foreground);
|
|
@@ -7662,4 +7903,4 @@ label.saltText,
|
|
|
7662
7903
|
box-shadow: 0 calc(var(--salt-size-fixed-100) * -1) 0 0 var(--salt-selectable-borderColor-selected), 0 var(--salt-size-fixed-100) 0 0 var(--salt-selectable-borderColor-selected);
|
|
7663
7904
|
}
|
|
7664
7905
|
|
|
7665
|
-
/* src/
|
|
7906
|
+
/* src/92ad5b70-6538-4237-91eb-564c13b73316.css */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/* Styles applied to Drawer component */\n.saltDrawer {\n background: var(--drawer-background);\n display: flex;\n flex-direction: column;\n max-height: 100%;\n max-width: 100%;\n overflow: auto;\n /* Legacy padding for unsectioned drawers only. */\n padding: var(--
|
|
3
|
+
var css_248z = "/* Styles applied to Drawer component */\n.saltDrawer {\n --drawer-padding: var(--salt-spacing-300);\n\n background: var(--drawer-background);\n display: flex;\n flex-direction: column;\n max-height: 100%;\n max-width: 100%;\n overflow: auto;\n /* Legacy padding for unsectioned drawers only. */\n padding: var(--drawer-padding);\n box-shadow: var(--salt-overlayable-shadow-modal);\n z-index: var(--salt-zIndex-drawer);\n position: fixed;\n top: 0;\n box-sizing: border-box;\n}\n\n.saltDrawer.saltDrawer-sectioned {\n --drawer-padding: 0px;\n}\n\n.saltDrawer-resizing {\n user-select: none;\n}\n\n@supports selector(:has(*)) {\n .saltDrawer:has(> .saltDrawerHeader, > .saltDrawerContent, > .saltDrawerFooter),\n .saltDrawer-inner:has(> .saltDrawerHeader, > .saltDrawerContent, > .saltDrawerFooter) {\n --drawer-padding: 0px;\n }\n}\n\n.saltDrawer-resizable {\n --drawer-resizeHandleSize: var(--salt-size-fixed-600);\n --drawer-resizeHandleOutset: var(--salt-spacing-150);\n --drawer-resizeHandleGutter: calc(var(--drawer-resizeHandleSize) + var(--drawer-resizeHandleOutset));\n /* With the gutter, approximates spacing-300 beside the handle */\n --drawer-resizeHandlePadding: var(--salt-spacing-100);\n overflow: visible;\n padding: 0;\n}\n\n/* Styles applied to the scrolling inner element of a resizable drawer */\n.saltDrawer-inner {\n /* min() keeps sectioned drawers at 0, as their sections own the padding */\n --drawer-innerResizeHandlePadding: min(var(--drawer-padding), var(--drawer-resizeHandlePadding));\n\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n min-height: 0;\n min-width: 0;\n overflow: auto;\n padding: var(--drawer-padding);\n box-sizing: border-box;\n}\n\n/* Reserve the handle's inner hit target */\n.saltDrawer-resizable.saltDrawer-left {\n padding-right: var(--drawer-resizeHandleGutter);\n}\n\n.saltDrawer-resizable.saltDrawer-right {\n padding-left: var(--drawer-resizeHandleGutter);\n}\n\n.saltDrawer-resizable.saltDrawer-top {\n padding-bottom: var(--drawer-resizeHandleGutter);\n}\n\n.saltDrawer-resizable.saltDrawer-bottom {\n padding-top: var(--drawer-resizeHandleGutter);\n}\n\n/* Reduce the padding beside the handle */\n.saltDrawer-resizable.saltDrawer-left > .saltDrawer-inner {\n padding-right: var(--drawer-innerResizeHandlePadding);\n}\n\n.saltDrawer-resizable.saltDrawer-right > .saltDrawer-inner {\n padding-left: var(--drawer-innerResizeHandlePadding);\n}\n\n.saltDrawer-resizable.saltDrawer-top > .saltDrawer-inner {\n padding-bottom: var(--drawer-innerResizeHandlePadding);\n}\n\n.saltDrawer-resizable.saltDrawer-bottom > .saltDrawer-inner {\n padding-top: var(--drawer-innerResizeHandlePadding);\n}\n\n.saltDrawer-resizable.saltDrawer-left > .saltDrawer-inner > :is(.saltDrawerHeader, .saltDrawerContent, .saltDrawerFooter) {\n padding-right: var(--drawer-resizeHandlePadding);\n}\n\n.saltDrawer-resizable.saltDrawer-right > .saltDrawer-inner > :is(.saltDrawerHeader, .saltDrawerContent, .saltDrawerFooter) {\n padding-left: var(--drawer-resizeHandlePadding);\n}\n\n.saltDrawer-resizable.saltDrawer-top > .saltDrawer-inner > :is(.saltDrawerHeader, .saltDrawerContent, .saltDrawerFooter):last-child {\n padding-bottom: var(--drawer-resizeHandlePadding);\n}\n\n.saltDrawer-resizable.saltDrawer-bottom > .saltDrawer-inner > :is(.saltDrawerHeader, .saltDrawerContent, .saltDrawerFooter):first-child {\n padding-top: var(--drawer-resizeHandlePadding);\n}\n\n/* Keeps the header accent bar level with the header's content */\n.saltDrawer-resizable.saltDrawer-top > .saltDrawer-inner > .saltDrawerHeader-withAccent:last-child::before {\n bottom: var(--drawer-resizeHandlePadding);\n}\n\n.saltDrawer-resizable.saltDrawer-bottom > .saltDrawer-inner > .saltDrawerHeader-withAccent:first-child::before {\n top: var(--drawer-resizeHandlePadding);\n}\n\n/* Keeps the deprecated close button in the corner, clear of the handle */\n.saltDrawer-resizable.saltDrawer-left .saltButton-secondary.saltDrawerCloseButton {\n margin-right: calc(-1 * var(--drawer-innerResizeHandlePadding));\n}\n\n.saltDrawer-resizable.saltDrawer-bottom .saltButton-secondary.saltDrawerCloseButton {\n margin-top: calc(-1 * var(--drawer-innerResizeHandlePadding));\n}\n\n/* Resize limits stay at least --salt-size-base and leave room on screen for the handle's outside target */\n.saltDrawer-resizable {\n --drawer-resizeLimit: calc(100% - var(--drawer-resizeHandleOutset));\n --drawer-minResize: min(max(var(--saltDrawer-minResize, 0px), var(--salt-size-base)), var(--drawer-resizeLimit));\n --drawer-maxResize: min(var(--saltDrawer-maxResize, 100%), var(--drawer-resizeLimit));\n}\n\n.saltDrawer-resizable.saltDrawer-left,\n.saltDrawer-resizable.saltDrawer-right {\n min-width: var(--drawer-minResize);\n max-width: var(--drawer-maxResize);\n}\n\n.saltDrawer-resizable.saltDrawer-top,\n.saltDrawer-resizable.saltDrawer-bottom {\n min-height: var(--drawer-minResize);\n max-height: var(--drawer-maxResize);\n}\n\n/* Styles applied when variant = \"primary\" */\n.saltDrawer-primary {\n --drawer-background: var(--salt-container-primary-background);\n}\n\n/* Styles applied when variant = \"secondary\" */\n.saltDrawer-secondary {\n --drawer-background: var(--salt-container-secondary-background);\n}\n\n/* Styles applied when variant = \"tertiary\" */\n.saltDrawer-tertiary {\n --drawer-background: var(--salt-container-tertiary-background);\n}\n\n/* Styles applied when position = \"top\" */\n.saltDrawer-top {\n left: 0;\n right: 0;\n bottom: auto;\n}\n\n/* Styles applied when position = \"top\" and the component mounts */\n.saltDrawer-top.saltDrawer-enterAnimation {\n animation: var(--salt-animation-slide-in-bottom);\n}\n\n/* Styles applied when position = \"top\" and the component unmounts */\n.saltDrawer-top.saltDrawer-exitAnimation {\n animation: var(--salt-animation-slide-out-bottom);\n}\n\n/* Styles applied when position = \"right\" */\n.saltDrawer-right {\n left: auto;\n right: 0;\n height: 100%;\n}\n\n/* Styles applied when position = \"right\" and the component mounts */\n.saltDrawer-right.saltDrawer-enterAnimation {\n animation: var(--salt-animation-slide-in-right);\n}\n\n/* Styles applied when position = \"right\" and the component unmounts */\n.saltDrawer-right.saltDrawer-exitAnimation {\n animation: var(--salt-animation-slide-out-right);\n}\n\n/* Styles applied when position = \"left\" */\n.saltDrawer-left {\n left: 0;\n right: auto;\n height: 100%;\n}\n\n/* Styles applied when position = \"left\" and the component mounts */\n.saltDrawer-left.saltDrawer-enterAnimation {\n animation: var(--salt-animation-slide-in-left);\n}\n\n/* Styles applied when position = \"left\" and the component unmounts */\n.saltDrawer-left.saltDrawer-exitAnimation {\n animation: var(--salt-animation-slide-out-left);\n}\n\n/* Styles applied when position = \"bottom\" */\n.saltDrawer-bottom {\n left: 0;\n right: 0;\n bottom: 0;\n top: auto;\n}\n\n/* Styles applied when position = \"bottom\" and the component mounts */\n.saltDrawer-bottom.saltDrawer-enterAnimation {\n animation: var(--salt-animation-slide-in-top);\n}\n\n/* Styles applied when position = \"bottom\" and the component unmounts */\n.saltDrawer-bottom.saltDrawer-exitAnimation {\n animation: var(--salt-animation-slide-out-top);\n}\n";
|
|
4
4
|
|
|
5
5
|
module.exports = css_248z;
|
|
6
6
|
//# sourceMappingURL=Drawer.css.js.map
|