@radui/ui 1.0.1 → 1.1.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/dist/components/Accordion.cjs +1 -1
- package/dist/components/Accordion.js +1 -1
- package/dist/components/AlertDialog.cjs +1 -1
- package/dist/components/AlertDialog.d.ts +61 -24
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/Avatar.cjs +1 -1
- package/dist/components/Avatar.d.ts +36 -6
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.cjs +1 -1
- package/dist/components/AvatarGroup.d.ts +39 -18
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/{AvatarPrimitiveFallback-CBb0nHGD.cjs → AvatarPrimitiveFallback-BpUU1vNV.cjs} +1 -1
- package/dist/components/{AvatarPrimitiveFallback-C1siRii4.js → AvatarPrimitiveFallback-DIXB9Tnm.js} +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumb.cjs +1 -1
- package/dist/components/Breadcrumb.js +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/Callout.cjs +1 -1
- package/dist/components/Callout.d.ts +32 -18
- package/dist/components/Callout.js +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.d.ts +31 -16
- package/dist/components/Card.js +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/CheckboxCards.cjs +1 -1
- package/dist/components/CheckboxCards.js +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.d.ts +6 -2
- package/dist/components/CheckboxGroup.js +1 -1
- package/dist/components/{CheckboxGroupPrimitive-DfHQYkep.js → CheckboxGroupPrimitive-BRCGIztp.js} +1 -1
- package/dist/components/{CheckboxGroupPrimitive-d9yBl6m5.cjs → CheckboxGroupPrimitive-C21WO4L3.cjs} +1 -1
- package/dist/components/Collapsible.cjs +1 -1
- package/dist/components/Collapsible.d.ts +34 -4
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/Combobox.cjs +1 -1
- package/dist/components/Combobox.d.ts +57 -45
- package/dist/components/Combobox.js +1 -1
- package/dist/components/ComboboxPrimitive-BdX2jgpQ.js +1 -0
- package/dist/components/ComboboxPrimitive-CyO6ZH5T.cjs +1 -0
- package/dist/components/Command.cjs +1 -1
- package/dist/components/Command.d.ts +36 -8
- package/dist/components/Command.js +1 -1
- package/dist/components/ContextMenu.cjs +1 -1
- package/dist/components/ContextMenu.d.ts +25 -11
- package/dist/components/ContextMenu.js +1 -1
- package/dist/components/Dialog.cjs +1 -1
- package/dist/components/Dialog.d.ts +29 -4
- package/dist/components/Dialog.js +1 -1
- package/dist/components/Disclosure.cjs +1 -1
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/Drawer.cjs +1 -1
- package/dist/components/Drawer.d.ts +31 -3
- package/dist/components/Drawer.js +1 -1
- package/dist/components/DropdownMenu.cjs +1 -1
- package/dist/components/DropdownMenu.d.ts +25 -11
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/HoverCard.cjs +1 -1
- package/dist/components/HoverCard.d.ts +15 -1
- package/dist/components/HoverCard.js +1 -1
- package/dist/components/Label.cjs +1 -0
- package/dist/components/Label.d.ts +18 -0
- package/dist/components/Label.js +1 -0
- package/dist/components/Link.cjs +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/LiveRegion.cjs +1 -1
- package/dist/components/LiveRegion.d.ts +2 -5
- package/dist/components/LiveRegion.js +1 -1
- package/dist/components/MenuPrimitive-Ctqo21Vd.cjs +1 -0
- package/dist/components/MenuPrimitive-Cy_MJfjG.js +1 -0
- package/dist/components/Menubar.cjs +1 -1
- package/dist/components/Menubar.d.ts +45 -16
- package/dist/components/Menubar.js +1 -1
- package/dist/components/Meter.cjs +1 -0
- package/dist/components/Meter.d.ts +44 -0
- package/dist/components/Meter.js +1 -0
- package/dist/components/Minimap.cjs +1 -1
- package/dist/components/Minimap.js +1 -1
- package/dist/components/NavigationMenu.cjs +1 -1
- package/dist/components/NavigationMenu.d.ts +2 -0
- package/dist/components/NavigationMenu.js +1 -1
- package/dist/components/Popover.cjs +1 -1
- package/dist/components/Popover.d.ts +64 -5
- package/dist/components/Popover.js +1 -1
- package/dist/components/Progress.cjs +1 -1
- package/dist/components/Progress.d.ts +14 -2
- package/dist/components/Progress.js +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioCards.cjs +1 -1
- package/dist/components/RadioCards.d.ts +22 -1
- package/dist/components/RadioCards.js +1 -1
- package/dist/components/RadioGroup.cjs +1 -1
- package/dist/components/RadioGroup.d.ts +27 -7
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/RadioGroupPrimitive-B0CrM2bi.cjs +1 -0
- package/dist/components/RadioGroupPrimitive-CnPy0zgW.js +1 -0
- package/dist/components/ScrollArea.cjs +1 -1
- package/dist/components/ScrollArea.d.ts +24 -13
- package/dist/components/ScrollArea.js +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.d.ts +52 -44
- package/dist/components/Select.js +1 -1
- package/dist/components/Separator.cjs +1 -1
- package/dist/components/Separator.d.ts +8 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.js +1 -1
- package/dist/components/Steps.cjs +1 -1
- package/dist/components/Steps.d.ts +33 -16
- package/dist/components/Steps.js +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.d.ts +14 -2
- package/dist/components/Switch.js +1 -1
- package/dist/components/TabNav.cjs +1 -1
- package/dist/components/TabNav.d.ts +5 -0
- package/dist/components/TabNav.js +1 -1
- package/dist/components/Table.cjs +1 -1
- package/dist/components/Table.d.ts +23 -12
- package/dist/components/Table.js +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.js +1 -1
- package/dist/components/Theme.cjs +1 -1
- package/dist/components/Theme.d.ts +2 -0
- package/dist/components/Theme.js +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.js +1 -1
- package/dist/components/Toggle.cjs +1 -1
- package/dist/components/Toggle.js +1 -1
- package/dist/components/ToggleGroup.cjs +1 -1
- package/dist/components/ToggleGroup.js +1 -1
- package/dist/components/Toolbar.cjs +1 -1
- package/dist/components/Toolbar.d.ts +8 -1
- package/dist/components/Toolbar.js +1 -1
- package/dist/components/Tooltip.cjs +1 -1
- package/dist/components/Tooltip.d.ts +7 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.d.ts +8 -1
- package/dist/components/Tree.js +1 -1
- package/dist/components/VisuallyHidden.cjs +1 -1
- package/dist/components/VisuallyHidden.d.ts +6 -1
- package/dist/components/VisuallyHidden.js +1 -1
- package/dist/components/{floating-ui.react-2kiGB4sW.js → floating-ui.react-CZf-mCiA.js} +1 -1
- package/dist/components/{index-WGIYLuwZ.cjs → index-BZO29jsF.cjs} +1 -1
- package/dist/components/index-B_OPdW20.js +1 -0
- package/dist/components/{index-436yWBk4.cjs → index-BbvJO-A-.cjs} +1 -1
- package/dist/components/index-Bg-UeWCo.cjs +1 -0
- package/dist/components/index-BidxkqdT.js +1 -0
- package/dist/components/{index-DMX7gpdp.js → index-CAD0hWja.js} +1 -1
- package/dist/components/{index-xlB--dex.js → index-CXv1Y-O3.js} +1 -1
- package/dist/components/{index-CukraWfT.cjs → index-C_Yiql9j.cjs} +1 -1
- package/dist/components/{index-nYRBURkR.js → index-Cp5L_alO.js} +1 -1
- package/dist/components/{index-C7dBo_Ry.js → index-D8QLtYJh.js} +1 -1
- package/dist/components/{index-FITGoHty.js → index-DH-14XDv.js} +1 -1
- package/dist/components/{index-CoPhBYnZ.cjs → index-K0sE1H4u.cjs} +1 -1
- package/dist/components/{index-BeakeOqt.cjs → index-rUSzFrhJ.cjs} +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/styles/clarity/Accordion/accordion.clarity.scss +147 -0
- package/dist/styles/clarity/AlertDialog/alert-dialog.clarity.scss +199 -0
- package/dist/styles/clarity/Avatar/_avatar-base.clarity.scss +87 -0
- package/dist/styles/clarity/Avatar/avatar.clarity.scss +1 -0
- package/dist/styles/clarity/AvatarGroup/avatar-group.clarity.scss +122 -0
- package/dist/styles/clarity/Badge/badge.clarity.scss +118 -0
- package/dist/styles/clarity/BlockQuote/blockquote.clarity.scss +123 -0
- package/dist/styles/clarity/Breadcrumb/breadcrumb.clarity.scss +50 -0
- package/dist/styles/clarity/Button/button.clarity.scss +132 -0
- package/dist/styles/clarity/Callout/callout.clarity.scss +183 -0
- package/dist/styles/clarity/Card/card.clarity.scss +121 -0
- package/dist/styles/clarity/Checkbox/checkbox.clarity.scss +75 -0
- package/dist/styles/clarity/CheckboxCards/checkbox-cards.clarity.scss +143 -0
- package/dist/styles/clarity/CheckboxGroup/checkbox-group.clarity.scss +92 -0
- package/dist/styles/clarity/Code/code.clarity.scss +42 -0
- package/dist/styles/clarity/Collapsible/collapsible.clarity.scss +84 -0
- package/dist/styles/clarity/Combobox/combobox.clarity.scss +157 -0
- package/dist/styles/clarity/Command/command.clarity.scss +231 -0
- package/dist/styles/clarity/ContextMenu/context-menu.clarity.scss +272 -0
- package/dist/styles/clarity/DataList/data-list.clarity.scss +60 -0
- package/dist/styles/clarity/Dialog/dialog.clarity.scss +205 -0
- package/dist/styles/clarity/Disclosure/disclosure.clarity.scss +56 -0
- package/dist/styles/clarity/Drawer/drawer.clarity.scss +331 -0
- package/dist/styles/clarity/DropdownMenu/dropdown-menu.clarity.scss +187 -0
- package/dist/styles/clarity/Em/em.clarity.scss +3 -0
- package/dist/styles/clarity/Fieldset/fieldset.clarity.scss +49 -0
- package/dist/styles/clarity/Heading/heading.clarity.scss +46 -0
- package/dist/styles/clarity/HoverCard/hover-card.clarity.scss +43 -0
- package/dist/styles/clarity/Kbd/kbd.clarity.scss +55 -0
- package/dist/styles/clarity/Label/label.clarity.scss +11 -0
- package/dist/styles/clarity/Link/link.clarity.scss +41 -0
- package/dist/styles/clarity/Menubar/menubar.clarity.scss +149 -0
- package/dist/styles/clarity/Meter/meter.clarity.scss +39 -0
- package/dist/styles/clarity/Minimap/minimap.clarity.scss +92 -0
- package/dist/styles/clarity/NavigationMenu/navigation-menu.clarity.scss +128 -0
- package/dist/styles/clarity/NumberField/number-field.clarity.scss +135 -0
- package/dist/styles/clarity/Popover/popover.clarity.scss +106 -0
- package/dist/styles/clarity/Progress/progress.clarity.scss +38 -0
- package/dist/styles/clarity/Quote/quote.clarity.scss +26 -0
- package/dist/styles/clarity/Radio/radio.clarity.scss +76 -0
- package/dist/styles/clarity/RadioCards/radiocards.clarity.scss +134 -0
- package/dist/styles/clarity/RadioGroup/radio-group.clarity.scss +99 -0
- package/dist/styles/clarity/ScrollArea/scroll-area.clarity.scss +112 -0
- package/dist/styles/clarity/Select/select.clarity.scss +228 -0
- package/dist/styles/clarity/Separator/separator.clarity.scss +23 -0
- package/dist/styles/clarity/Skeleton/skeleton.clarity.scss +33 -0
- package/dist/styles/clarity/Slider/slider.clarity.scss +203 -0
- package/dist/styles/clarity/Spinner/spinner.clarity.scss +52 -0
- package/dist/styles/clarity/Splitter/splitter.clarity.scss +151 -0
- package/dist/styles/clarity/Steps/steps.clarity.scss +143 -0
- package/dist/styles/clarity/Strong/strong.clarity.scss +6 -0
- package/dist/styles/clarity/Switch/switch.clarity.scss +89 -0
- package/dist/styles/clarity/TabNav/tab-nav.clarity.scss +69 -0
- package/dist/styles/clarity/Table/table.clarity.scss +128 -0
- package/dist/styles/clarity/Tabs/tabs.clarity.scss +91 -0
- package/dist/styles/clarity/Text/text.clarity.scss +5 -0
- package/dist/styles/clarity/TextArea/textarea.clarity.scss +146 -0
- package/dist/styles/clarity/TextField/text-field.clarity.scss +120 -0
- package/dist/styles/clarity/Toast/toast.clarity.scss +203 -0
- package/dist/styles/clarity/Toggle/toggle.clarity.scss +51 -0
- package/dist/styles/clarity/ToggleGroup/toggle-group.clarity.scss +103 -0
- package/dist/styles/clarity/Toolbar/toolbar.clarity.scss +140 -0
- package/dist/styles/clarity/Tooltip/tooltip.clarity.scss +37 -0
- package/dist/styles/clarity/Tree/tree.clarity.scss +103 -0
- package/dist/themes/baremetal.css +1 -1
- package/dist/themes/default.css +1 -1
- package/package.json +21 -2
- package/dist/components/ComboboxPrimitive-DQcJ8pzQ.js +0 -1
- package/dist/components/ComboboxPrimitive-kFYDdMUS.cjs +0 -1
- package/dist/components/MenuPrimitive-B1-7Sfhj.cjs +0 -1
- package/dist/components/MenuPrimitive-D9VMz2TZ.js +0 -1
- package/dist/components/RadioGroupPrimitive-CpA06FS_.cjs +0 -1
- package/dist/components/RadioGroupPrimitive-D1PP4y2M.js +0 -1
- package/dist/components/index-CbKtybdA.cjs +0 -1
- package/dist/components/index-D8I-rMwz.js +0 -1
- package/dist/components/index-XF8itt-H.js +0 -1
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/* ── Toast – Clarity ─────────────────────────────────────────────────────── */
|
|
2
|
+
|
|
3
|
+
.rad-ui-toast-viewport {
|
|
4
|
+
position: fixed;
|
|
5
|
+
z-index: var(--rad-ui-z-index-portal, 9999);
|
|
6
|
+
list-style: none;
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0 1rem 1rem;
|
|
9
|
+
width: 356px;
|
|
10
|
+
max-width: calc(100vw - 2rem);
|
|
11
|
+
outline: none;
|
|
12
|
+
height: calc(var(--viewport-height, 0px) + 1rem);
|
|
13
|
+
|
|
14
|
+
&[data-position="bottom-right"] { bottom: 3rem; right: 1.5rem; }
|
|
15
|
+
&[data-position="bottom-left"] { bottom: 3rem; left: 1.5rem; }
|
|
16
|
+
&[data-position="bottom-center"] { bottom: 3rem; left: 50%; transform: translateX(-50%); }
|
|
17
|
+
&[data-position="top-right"] { top: 1.5rem; right: 1.5rem; }
|
|
18
|
+
&[data-position="top-left"] { top: 1.5rem; left: 1.5rem; }
|
|
19
|
+
&[data-position="top-center"] { top: 1.5rem; left: 50%; transform: translateX(-50%); }
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ── Item ────────────────────────────────────────────────────────────────── */
|
|
23
|
+
|
|
24
|
+
.rad-ui-toast-item {
|
|
25
|
+
position: absolute;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
right: 0;
|
|
29
|
+
list-style: none;
|
|
30
|
+
cursor: grab;
|
|
31
|
+
user-select: none;
|
|
32
|
+
touch-action: none;
|
|
33
|
+
transform-origin: bottom center;
|
|
34
|
+
transform:
|
|
35
|
+
translateY(var(--y, 0px))
|
|
36
|
+
translateY(var(--swipe-y, 0px))
|
|
37
|
+
scale(var(--scale, 1));
|
|
38
|
+
|
|
39
|
+
/* Sonner [data-sonner-toast]: transform/opacity 400ms (+ height in Sonner; omitted here). */
|
|
40
|
+
transition: transform var(--rad-ui-motion-duration-slow) ease, opacity var(--rad-ui-motion-duration-slow) ease, box-shadow var(--rad-ui-motion-duration-normal) ease;
|
|
41
|
+
|
|
42
|
+
/* Exit: same full slide for front and behind (Sonner front path) — avoids 40% / mismatched timing flicker */
|
|
43
|
+
&[data-leaving] {
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transform:
|
|
47
|
+
translateY(calc(var(--toast-lift, -1) * -100%))
|
|
48
|
+
translateY(var(--swipe-y, 0px))
|
|
49
|
+
scale(var(--scale, 1));
|
|
50
|
+
transition: transform var(--rad-ui-motion-duration-slow) ease, opacity var(--rad-ui-motion-duration-slow) ease, box-shadow var(--rad-ui-motion-duration-normal) ease;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:not([data-mounted]) {
|
|
54
|
+
opacity: 0;
|
|
55
|
+
transform: translateY(100%) scale(var(--scale, 1));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[data-restack-skip] {
|
|
59
|
+
transition: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&[data-swiping] {
|
|
63
|
+
transition: none;
|
|
64
|
+
cursor: grabbing;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Back toasts: clamp height to front toast height */
|
|
68
|
+
&[data-behind] {
|
|
69
|
+
height: var(--front-height);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
[data-position^="top"] & {
|
|
73
|
+
bottom: auto;
|
|
74
|
+
top: 0;
|
|
75
|
+
transform-origin: top center;
|
|
76
|
+
|
|
77
|
+
&:not([data-mounted]) {
|
|
78
|
+
transform: translateY(-100%) scale(var(--scale, 1));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Gap filler so hover works between cards */
|
|
83
|
+
&::after {
|
|
84
|
+
content: '';
|
|
85
|
+
position: absolute;
|
|
86
|
+
top: 100%;
|
|
87
|
+
left: 0;
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 16px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* ── Content ─────────────────────────────────────────────────────────────── */
|
|
94
|
+
|
|
95
|
+
.rad-ui-toast-content {
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
border-radius: var(--rad-ui-radius-xl, 0.75rem);
|
|
98
|
+
padding: 0.875rem 1rem;
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
gap: 0.25rem;
|
|
102
|
+
position: relative;
|
|
103
|
+
background-color: var(--rad-ui-surface-panel);
|
|
104
|
+
border: 1px solid var(--rad-ui-border-soft);
|
|
105
|
+
box-shadow: var(--rad-ui-shadow-md);
|
|
106
|
+
color: var(--rad-ui-text-primary);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Back toasts: hide text, keep card background visible */
|
|
110
|
+
.rad-ui-toast-item[data-behind] .rad-ui-toast-title,
|
|
111
|
+
.rad-ui-toast-item[data-behind] .rad-ui-toast-description,
|
|
112
|
+
.rad-ui-toast-item[data-behind] .rad-ui-toast-action,
|
|
113
|
+
.rad-ui-toast-item[data-behind] .rad-ui-toast-close {
|
|
114
|
+
opacity: 0;
|
|
115
|
+
transition: opacity var(--rad-ui-motion-duration-slow) ease;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.rad-ui-toast-item:not([data-behind]) .rad-ui-toast-title,
|
|
119
|
+
.rad-ui-toast-item:not([data-behind]) .rad-ui-toast-description,
|
|
120
|
+
.rad-ui-toast-item:not([data-behind]) .rad-ui-toast-action,
|
|
121
|
+
.rad-ui-toast-item:not([data-behind]) .rad-ui-toast-close {
|
|
122
|
+
opacity: 1;
|
|
123
|
+
transition: opacity var(--rad-ui-motion-duration-slow) ease;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* ── Title ───────────────────────────────────────────────────────────────── */
|
|
127
|
+
|
|
128
|
+
.rad-ui-toast-title {
|
|
129
|
+
margin: 0;
|
|
130
|
+
font-size: var(--rad-ui-font-size-2, 0.875rem);
|
|
131
|
+
font-weight: 500;
|
|
132
|
+
line-height: 1.4;
|
|
133
|
+
color: var(--rad-ui-text-primary);
|
|
134
|
+
letter-spacing: -0.025em;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* ── Description ─────────────────────────────────────────────────────────── */
|
|
138
|
+
|
|
139
|
+
.rad-ui-toast-description {
|
|
140
|
+
margin: 0;
|
|
141
|
+
font-size: var(--rad-ui-font-size-1, 0.8125rem);
|
|
142
|
+
line-height: 1.5;
|
|
143
|
+
color: var(--rad-ui-text-secondary);
|
|
144
|
+
letter-spacing: -0.01em;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* ── Action ──────────────────────────────────────────────────────────────── */
|
|
148
|
+
|
|
149
|
+
.rad-ui-toast-action {
|
|
150
|
+
margin-top: 0.5rem;
|
|
151
|
+
align-self: flex-start;
|
|
152
|
+
font-size: var(--rad-ui-font-size-1, 0.8125rem);
|
|
153
|
+
font-weight: 500;
|
|
154
|
+
padding: 0.25rem 0.625rem;
|
|
155
|
+
border-radius: var(--rad-ui-radius-md, 0.375rem);
|
|
156
|
+
border: 1px solid var(--rad-ui-border-default);
|
|
157
|
+
background: transparent;
|
|
158
|
+
color: var(--rad-ui-text-primary);
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
line-height: 1.5;
|
|
161
|
+
transition: background-color var(--rad-ui-motion-duration-fast) ease;
|
|
162
|
+
&:hover { background-color: var(--rad-ui-surface-hover); }
|
|
163
|
+
&:focus-visible { outline: none; box-shadow: var(--rad-ui-ring-shadow-sm); }
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* ── Close ───────────────────────────────────────────────────────────────── */
|
|
167
|
+
|
|
168
|
+
.rad-ui-toast-close {
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: 0.5rem;
|
|
171
|
+
right: 0.5rem;
|
|
172
|
+
width: 1.25rem;
|
|
173
|
+
height: 1.25rem;
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
border-radius: var(--rad-ui-radius-sm, 0.25rem);
|
|
178
|
+
border: none;
|
|
179
|
+
background: transparent;
|
|
180
|
+
color: var(--rad-ui-text-muted);
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
font-size: 0.875rem;
|
|
183
|
+
line-height: 1;
|
|
184
|
+
padding: 0;
|
|
185
|
+
transition: background-color var(--rad-ui-motion-duration-fast) ease;
|
|
186
|
+
&:hover { background-color: var(--rad-ui-surface-hover); }
|
|
187
|
+
&:focus-visible { outline: none; box-shadow: var(--rad-ui-ring-shadow-sm); }
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* ── Variants ────────────────────────────────────────────────────────────── */
|
|
191
|
+
|
|
192
|
+
.rad-ui-toast-item[data-variant="success"] .rad-ui-toast-content { border-color: var(--rad-ui-success-border); }
|
|
193
|
+
.rad-ui-toast-item[data-variant="error"] .rad-ui-toast-content { border-color: var(--rad-ui-danger-border); }
|
|
194
|
+
.rad-ui-toast-item[data-variant="warning"] .rad-ui-toast-content { border-color: var(--rad-ui-warning-border); }
|
|
195
|
+
.rad-ui-toast-item[data-variant="info"] .rad-ui-toast-content { border-color: var(--rad-ui-info-border); }
|
|
196
|
+
|
|
197
|
+
/* ── Reduced motion ──────────────────────────────────────────────────────── */
|
|
198
|
+
|
|
199
|
+
@media (prefers-reduced-motion: reduce) {
|
|
200
|
+
.rad-ui-toast-item { transition: opacity var(--rad-ui-motion-duration-fast) ease; }
|
|
201
|
+
.rad-ui-toast-item:not([data-mounted]) { opacity: 0; transition: none; }
|
|
202
|
+
.rad-ui-toast-item[data-leaving] { opacity: 0; }
|
|
203
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.rad-ui-toggle {
|
|
2
|
+
color: var(--rad-ui-text-primary);
|
|
3
|
+
background-color: var(--rad-ui-surface-subtle);
|
|
4
|
+
min-height: 2.25rem;
|
|
5
|
+
min-width: 2.25rem;
|
|
6
|
+
padding: 0 0.75rem;
|
|
7
|
+
border-radius: var(--rad-ui-radius-lg);
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
gap: var(--rad-ui-spacing-2);
|
|
10
|
+
font-size: var(--rad-ui-font-size-2);
|
|
11
|
+
line-height: var(--rad-ui-line-height-1);
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
border: 1px solid var(--rad-ui-border-soft);
|
|
16
|
+
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--rad-ui-surface-panel) 55%, transparent);
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
background-color: color-mix(in oklab, var(--rad-ui-surface-panel) 88%, transparent);
|
|
20
|
+
border-color: var(--rad-ui-border-default);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-state="on"],
|
|
24
|
+
&[aria-pressed="true"] {
|
|
25
|
+
// Pressed must read as selected, never as disabled: keep primary text
|
|
26
|
+
// contrast and signal state through fill, border, and inset ring.
|
|
27
|
+
background-color: var(--rad-ui-item-selected-background);
|
|
28
|
+
border-color: var(--rad-ui-border-strong);
|
|
29
|
+
color: var(--rad-ui-item-selected-text);
|
|
30
|
+
box-shadow:
|
|
31
|
+
var(--rad-ui-control-shadow),
|
|
32
|
+
inset 0 0 0 1px var(--rad-ui-color-accent-600);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:focus-visible {
|
|
36
|
+
outline: none;
|
|
37
|
+
box-shadow: var(--rad-ui-focus-ring-shadow), inset 0 0 0 1px color-mix(in oklab, var(--rad-ui-surface-panel) 55%, transparent);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-disabled],
|
|
41
|
+
&:disabled {
|
|
42
|
+
opacity: 0.5;
|
|
43
|
+
cursor: not-allowed;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
svg {
|
|
47
|
+
width: var(--rad-ui-size-4);
|
|
48
|
+
height: var(--rad-ui-size-4);
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// Segmented control: single pill, internal dividers, neutral selected fill
|
|
2
|
+
.rad-ui-toggle-group {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: stretch;
|
|
5
|
+
gap: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
border-radius: 0.625rem;
|
|
8
|
+
background-color: var(--rad-ui-color-gray-50);
|
|
9
|
+
border: 1px solid var(--rad-ui-color-gray-500);
|
|
10
|
+
|
|
11
|
+
&[data-orientation="vertical"] {
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.rad-ui-toggle-group-item {
|
|
16
|
+
all: unset;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
position: relative;
|
|
19
|
+
min-height: 2.375rem;
|
|
20
|
+
padding: 0 0.75rem;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
gap: 0.375rem;
|
|
25
|
+
line-height: var(--rad-ui-line-height-2);
|
|
26
|
+
flex: 1 1 0;
|
|
27
|
+
min-width: 0;
|
|
28
|
+
|
|
29
|
+
&[data-icon-only] {
|
|
30
|
+
min-width: 2.375rem;
|
|
31
|
+
min-height: 2.375rem;
|
|
32
|
+
padding: 0;
|
|
33
|
+
gap: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
color: var(--rad-ui-color-gray-1000);
|
|
38
|
+
background-color: var(--rad-ui-color-gray-50);
|
|
39
|
+
border-radius: 0;
|
|
40
|
+
transition:
|
|
41
|
+
background-color var(--rad-ui-motion-duration-fast) ease,
|
|
42
|
+
color var(--rad-ui-motion-duration-fast) ease;
|
|
43
|
+
|
|
44
|
+
&:hover:not([data-disabled], :disabled, [aria-pressed="true"]) {
|
|
45
|
+
background-color: var(--rad-ui-color-gray-100);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Pressed must be distinguishable from the resting fill (gray-50 vs gray-200 alone is
|
|
49
|
+
// nearly invisible), so pair the selected fill with an inset accent ring like Toggle.
|
|
50
|
+
&[aria-pressed="true"] {
|
|
51
|
+
background-color: var(--rad-ui-item-selected-background);
|
|
52
|
+
color: var(--rad-ui-item-selected-text);
|
|
53
|
+
box-shadow: inset 0 0 0 1px var(--rad-ui-color-accent-600);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// After the pressed rule so keyboard focus stays visible on pressed items too.
|
|
57
|
+
&:focus-visible {
|
|
58
|
+
outline: none;
|
|
59
|
+
box-shadow: var(--rad-ui-focus-ring-shadow-inset);
|
|
60
|
+
z-index: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&[data-disabled],
|
|
64
|
+
&:disabled {
|
|
65
|
+
opacity: 0.5;
|
|
66
|
+
cursor: not-allowed;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
svg {
|
|
70
|
+
width: var(--rad-ui-size-4);
|
|
71
|
+
height: var(--rad-ui-size-4);
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:not([data-orientation="vertical"]) .rad-ui-toggle-group-item:not(:last-child) {
|
|
77
|
+
border-right: 1px solid var(--rad-ui-color-gray-500);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:not([data-orientation="vertical"]) .rad-ui-toggle-group-item:first-child {
|
|
81
|
+
border-top-left-radius: calc(0.625rem - 1px);
|
|
82
|
+
border-bottom-left-radius: calc(0.625rem - 1px);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:not([data-orientation="vertical"]) .rad-ui-toggle-group-item:last-child {
|
|
86
|
+
border-top-right-radius: calc(0.625rem - 1px);
|
|
87
|
+
border-bottom-right-radius: calc(0.625rem - 1px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&[data-orientation="vertical"] .rad-ui-toggle-group-item:not(:last-child) {
|
|
91
|
+
border-bottom: 1px solid var(--rad-ui-color-gray-500);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&[data-orientation="vertical"] .rad-ui-toggle-group-item:first-child {
|
|
95
|
+
border-top-left-radius: calc(0.625rem - 1px);
|
|
96
|
+
border-top-right-radius: calc(0.625rem - 1px);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&[data-orientation="vertical"] .rad-ui-toggle-group-item:last-child {
|
|
100
|
+
border-bottom-left-radius: calc(0.625rem - 1px);
|
|
101
|
+
border-bottom-right-radius: calc(0.625rem - 1px);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
// Toolbar — Clarity-aligned chrome.
|
|
2
|
+
// The root is a compact in-flow bar that hugs its controls. Every interactive
|
|
3
|
+
// child (button, link, toggle item) shares one control recipe so heights,
|
|
4
|
+
// radius, hover, pressed and focus treatments line up across the bar.
|
|
5
|
+
.rad-ui-toolbar {
|
|
6
|
+
// Concentric radius: the child control radius plus the root padding.
|
|
7
|
+
--rad-ui-toolbar-padding: var(--rad-ui-spacing-1);
|
|
8
|
+
--rad-ui-toolbar-control-height: var(--rad-ui-control-height-sm);
|
|
9
|
+
--rad-ui-toolbar-control-radius: var(--rad-ui-control-radius-sm);
|
|
10
|
+
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
height: fit-content;
|
|
14
|
+
gap: var(--rad-ui-density-gap-xs);
|
|
15
|
+
padding: var(--rad-ui-toolbar-padding);
|
|
16
|
+
border-radius: calc(var(--rad-ui-toolbar-control-radius) + var(--rad-ui-toolbar-padding));
|
|
17
|
+
border: var(--rad-ui-border-width-default) solid var(--rad-ui-border-soft);
|
|
18
|
+
background-color: var(--rad-ui-surface-panel);
|
|
19
|
+
|
|
20
|
+
&[data-orientation='vertical'] {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: stretch;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.rad-ui-toolbar-button,
|
|
26
|
+
.rad-ui-toolbar-link,
|
|
27
|
+
.rad-ui-toolbar-toggle-item {
|
|
28
|
+
all: unset;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
position: relative;
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
flex-flow: row nowrap;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
gap: var(--rad-ui-density-gap-sm);
|
|
36
|
+
min-width: var(--rad-ui-toolbar-control-height);
|
|
37
|
+
min-height: var(--rad-ui-toolbar-control-height);
|
|
38
|
+
padding: 0 var(--rad-ui-control-padding-x-sm);
|
|
39
|
+
border-radius: var(--rad-ui-toolbar-control-radius);
|
|
40
|
+
background-color: transparent;
|
|
41
|
+
color: var(--rad-ui-text-primary);
|
|
42
|
+
font-family: inherit;
|
|
43
|
+
font-size: var(--rad-ui-component-font-size-sm);
|
|
44
|
+
font-weight: var(--rad-ui-component-font-weight-medium);
|
|
45
|
+
line-height: var(--rad-ui-component-line-height-tight);
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
user-select: none;
|
|
49
|
+
transition:
|
|
50
|
+
background-color var(--rad-ui-motion-duration-fast) ease,
|
|
51
|
+
box-shadow var(--rad-ui-motion-duration-fast) ease,
|
|
52
|
+
color var(--rad-ui-motion-duration-fast) ease;
|
|
53
|
+
|
|
54
|
+
&:hover:not([data-disabled], :disabled, [aria-disabled='true'], [data-state='on']) {
|
|
55
|
+
background-color: var(--rad-ui-surface-hover);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:focus-visible {
|
|
59
|
+
outline: none;
|
|
60
|
+
box-shadow: var(--rad-ui-focus-ring-shadow-sm);
|
|
61
|
+
z-index: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&[data-disabled],
|
|
65
|
+
&:disabled,
|
|
66
|
+
&[aria-disabled='true'] {
|
|
67
|
+
color: var(--rad-ui-disabled-text);
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
svg {
|
|
72
|
+
width: var(--rad-ui-icon-size-sm);
|
|
73
|
+
height: var(--rad-ui-icon-size-sm);
|
|
74
|
+
flex-shrink: 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Links keep an underline so they read as navigation, not as an action.
|
|
79
|
+
.rad-ui-toolbar-link {
|
|
80
|
+
text-decoration: underline;
|
|
81
|
+
text-decoration-color: currentcolor;
|
|
82
|
+
text-decoration-thickness: 1px;
|
|
83
|
+
text-underline-offset: 0.18em;
|
|
84
|
+
|
|
85
|
+
&:hover {
|
|
86
|
+
text-decoration-thickness: 2px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Toggle items read as toolbar buttons. The pressed state is a lifted
|
|
91
|
+
// canvas fill with the selected-control ring, so it is distinguishable
|
|
92
|
+
// from hover without relying on color alone.
|
|
93
|
+
.rad-ui-toolbar-toggle-group {
|
|
94
|
+
display: inline-flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: var(--rad-ui-density-gap-xs);
|
|
97
|
+
padding: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&[data-orientation='vertical'] .rad-ui-toolbar-toggle-group {
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
align-items: stretch;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.rad-ui-toolbar-toggle-item {
|
|
106
|
+
&[data-state='on'] {
|
|
107
|
+
background-color: var(--rad-ui-surface-canvas);
|
|
108
|
+
color: var(--rad-ui-text-primary);
|
|
109
|
+
box-shadow: var(--rad-ui-selected-control-shadow);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&[data-state='on']:focus-visible {
|
|
113
|
+
box-shadow: var(--rad-ui-selected-control-shadow), var(--rad-ui-focus-ring-shadow-sm);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.rad-ui-toolbar-separator {
|
|
118
|
+
background-color: var(--rad-ui-border-soft);
|
|
119
|
+
align-self: center;
|
|
120
|
+
width: var(--rad-ui-border-width-default);
|
|
121
|
+
height: var(--rad-ui-icon-size-md);
|
|
122
|
+
margin: 0 var(--rad-ui-density-gap-sm);
|
|
123
|
+
flex-shrink: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&[data-orientation='vertical'] .rad-ui-toolbar-separator {
|
|
127
|
+
align-self: stretch;
|
|
128
|
+
width: auto;
|
|
129
|
+
height: var(--rad-ui-border-width-default);
|
|
130
|
+
margin: var(--rad-ui-density-gap-sm) 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.rad-ui-toolbar-meta {
|
|
134
|
+
margin-left: var(--rad-ui-spacing-2);
|
|
135
|
+
margin-right: auto;
|
|
136
|
+
font-size: var(--rad-ui-component-font-size-sm);
|
|
137
|
+
color: var(--rad-ui-text-muted);
|
|
138
|
+
white-space: nowrap;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.rad-ui-tooltip-floating-element {
|
|
2
|
+
z-index: var(--rad-ui-z-index-portal);
|
|
3
|
+
|
|
4
|
+
// Outer element handles positioning via Floating UI inline styles
|
|
5
|
+
// Do not add transform transitions here!
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.rad-ui-tooltip-content-inner {
|
|
9
|
+
background-color: var(--rad-ui-tooltip-background);
|
|
10
|
+
color: var(--rad-ui-tooltip-text);
|
|
11
|
+
font-size: var(--rad-ui-font-size-2);
|
|
12
|
+
line-height: var(--rad-ui-size-5);
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
padding: 0.625rem 1rem;
|
|
15
|
+
border-radius: var(--rad-ui-radius-lg);
|
|
16
|
+
box-shadow: var(--rad-ui-shadow-sm);
|
|
17
|
+
border: var(--rad-ui-border-width-default) solid var(--rad-ui-tooltip-border);
|
|
18
|
+
animation: rad-ui-tooltip-slide-in 200ms var(--rad-ui-motion-easing-entrance);
|
|
19
|
+
will-change: transform, opacity;
|
|
20
|
+
position: relative;
|
|
21
|
+
|
|
22
|
+
.rad-ui-tooltip-arrow {
|
|
23
|
+
fill: var(--rad-ui-tooltip-background);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@keyframes rad-ui-tooltip-slide-in {
|
|
28
|
+
from {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
transform: translateY(2px) scale(0.96);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
to {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
transform: translateY(0) scale(1);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
.rad-ui-tree {
|
|
2
|
+
--tree-chevron-size: 1.25rem;
|
|
3
|
+
--tree-branch-gap: 0.625rem;
|
|
4
|
+
--tree-line: color-mix(in oklab, var(--rad-ui-border-soft) 50%, transparent);
|
|
5
|
+
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: 2px;
|
|
9
|
+
width: 100%;
|
|
10
|
+
|
|
11
|
+
.rad-ui-tree-branch {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: 2px;
|
|
15
|
+
margin: 2px 0 0;
|
|
16
|
+
margin-inline-start: 0.5rem;
|
|
17
|
+
padding-inline-start: var(--tree-branch-gap);
|
|
18
|
+
border-inline-start: 1px solid var(--tree-line);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.rad-ui-tree-branch .rad-ui-tree-item {
|
|
22
|
+
position: relative;
|
|
23
|
+
|
|
24
|
+
&::before {
|
|
25
|
+
content: "";
|
|
26
|
+
position: absolute;
|
|
27
|
+
inset-inline-start: calc(-1 * var(--tree-branch-gap));
|
|
28
|
+
width: var(--tree-branch-gap);
|
|
29
|
+
top: 50%;
|
|
30
|
+
height: 1px;
|
|
31
|
+
background: var(--tree-line);
|
|
32
|
+
transform: translateY(-50%);
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.rad-ui-tree-item {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
width: 100%;
|
|
41
|
+
min-height: var(--rad-ui-size-8);
|
|
42
|
+
padding: 0.375rem 0.75rem;
|
|
43
|
+
gap: 0.25rem;
|
|
44
|
+
background-color: var(--rad-ui-surface-panel);
|
|
45
|
+
border-radius: var(--rad-ui-radius-sm);
|
|
46
|
+
border: 1px solid transparent;
|
|
47
|
+
font-size: var(--rad-ui-component-font-size-comfortable);
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
color: var(--rad-ui-text-primary);
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
text-align: start;
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
background-color: var(--rad-ui-surface-subtle);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:focus-visible {
|
|
58
|
+
outline: none;
|
|
59
|
+
background-color: var(--rad-ui-surface-subtle);
|
|
60
|
+
box-shadow: var(--rad-ui-focus-ring-shadow);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&[data-toggled="true"] {
|
|
64
|
+
background-color: var(--rad-ui-surface-subtle);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&[data-selected="true"] {
|
|
68
|
+
background-color: var(--rad-ui-color-accent-100);
|
|
69
|
+
border-color: var(--rad-ui-color-accent-500);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&[data-disabled="true"] {
|
|
73
|
+
color: var(--rad-ui-text-muted);
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
opacity: 0.5;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.rad-ui-tree-item-chevron {
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
width: var(--tree-chevron-size);
|
|
85
|
+
min-width: var(--tree-chevron-size);
|
|
86
|
+
color: var(--rad-ui-text-muted);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.rad-ui-tree-item-chevron svg {
|
|
90
|
+
flex-shrink: 0;
|
|
91
|
+
transition: transform var(--rad-ui-motion-duration-fast) ease;
|
|
92
|
+
transform: rotate(0deg);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.rad-ui-tree-item[data-has-children="true"][data-toggled="true"] .rad-ui-tree-item-chevron svg {
|
|
96
|
+
transform: rotate(90deg);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.rad-ui-tree-item-label {
|
|
100
|
+
flex: 1;
|
|
101
|
+
min-width: 0;
|
|
102
|
+
}
|
|
103
|
+
}
|