@radui/ui 1.0.0 → 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 -0
- package/dist/components/Accordion.js +1 -1
- package/dist/components/AlertDialog.cjs +1 -0
- package/dist/components/AlertDialog.d.ts +61 -24
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AspectRatio.cjs +1 -0
- package/dist/components/Avatar.cjs +1 -0
- package/dist/components/Avatar.d.ts +36 -6
- package/dist/components/Avatar.js +1 -1
- package/dist/components/AvatarGroup.cjs +1 -0
- package/dist/components/AvatarGroup.d.ts +39 -18
- package/dist/components/AvatarGroup.js +1 -1
- package/dist/components/AvatarPrimitiveFallback-BpUU1vNV.cjs +1 -0
- package/dist/components/{AvatarPrimitiveFallback-C1siRii4.js → AvatarPrimitiveFallback-DIXB9Tnm.js} +1 -1
- package/dist/components/Badge.cjs +1 -0
- package/dist/components/Badge.js +1 -1
- package/dist/components/BlockQuote.cjs +1 -0
- package/dist/components/Breadcrumb.cjs +1 -0
- package/dist/components/Breadcrumb.js +1 -1
- package/dist/components/Button.cjs +1 -0
- package/dist/components/Button.js +1 -1
- package/dist/components/Callout.cjs +1 -0
- package/dist/components/Callout.d.ts +32 -18
- package/dist/components/Callout.js +1 -1
- package/dist/components/Card.cjs +1 -0
- package/dist/components/Card.d.ts +31 -16
- package/dist/components/Card.js +1 -1
- package/dist/components/Checkbox.cjs +8 -0
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/CheckboxCards.cjs +1 -0
- package/dist/components/CheckboxCards.js +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -0
- 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-C21WO4L3.cjs +1 -0
- package/dist/components/Code.cjs +1 -0
- package/dist/components/Collapsible.cjs +1 -0
- package/dist/components/Collapsible.d.ts +34 -4
- package/dist/components/Collapsible.js +1 -1
- package/dist/components/Combobox.cjs +1 -0
- 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 -0
- package/dist/components/Command.d.ts +36 -8
- package/dist/components/Command.js +1 -1
- package/dist/components/ContextMenu.cjs +1 -0
- package/dist/components/ContextMenu.d.ts +25 -11
- package/dist/components/ContextMenu.js +1 -1
- package/dist/components/DataList.cjs +1 -0
- package/dist/components/Dialog.cjs +1 -0
- package/dist/components/Dialog.d.ts +29 -4
- package/dist/components/Dialog.js +1 -1
- package/dist/components/Disclosure.cjs +1 -0
- package/dist/components/Disclosure.js +1 -1
- package/dist/components/Drawer.cjs +1 -0
- package/dist/components/Drawer.d.ts +31 -3
- package/dist/components/Drawer.js +1 -1
- package/dist/components/DropdownMenu.cjs +1 -0
- package/dist/components/DropdownMenu.d.ts +25 -11
- package/dist/components/DropdownMenu.js +1 -1
- package/dist/components/Em.cjs +1 -0
- package/dist/components/Fieldset.cjs +1 -0
- package/dist/components/Heading.cjs +1 -0
- package/dist/components/HoverCard.cjs +1 -0
- package/dist/components/HoverCard.d.ts +15 -1
- package/dist/components/HoverCard.js +1 -1
- package/dist/components/Kbd.cjs +1 -0
- 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 -0
- package/dist/components/Link.js +1 -1
- package/dist/components/LiveRegion.cjs +1 -0
- 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 -0
- 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 -0
- package/dist/components/Minimap.js +1 -1
- package/dist/components/NavigationMenu.cjs +1 -0
- package/dist/components/NavigationMenu.d.ts +2 -0
- package/dist/components/NavigationMenu.js +1 -1
- package/dist/components/NumberField.cjs +1 -0
- package/dist/components/Popover.cjs +1 -0
- package/dist/components/Popover.d.ts +64 -5
- package/dist/components/Popover.js +1 -1
- package/dist/components/Progress.cjs +1 -0
- package/dist/components/Progress.d.ts +14 -2
- package/dist/components/Progress.js +1 -1
- package/dist/components/Quote.cjs +1 -0
- package/dist/components/Radio.cjs +1 -0
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioCards.cjs +1 -0
- package/dist/components/RadioCards.d.ts +22 -1
- package/dist/components/RadioCards.js +1 -1
- package/dist/components/RadioGroup.cjs +1 -0
- 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 -0
- package/dist/components/ScrollArea.d.ts +24 -13
- package/dist/components/ScrollArea.js +1 -1
- package/dist/components/Select.cjs +1 -0
- package/dist/components/Select.d.ts +52 -44
- package/dist/components/Select.js +1 -1
- package/dist/components/Separator.cjs +1 -0
- package/dist/components/Separator.d.ts +8 -1
- package/dist/components/Separator.js +1 -1
- package/dist/components/Skeleton.cjs +1 -0
- package/dist/components/Slider.cjs +1 -0
- package/dist/components/Slider.js +1 -1
- package/dist/components/Spinner.cjs +1 -0
- package/dist/components/Splitter.cjs +1 -0
- package/dist/components/Steps.cjs +1 -0
- package/dist/components/Steps.d.ts +33 -16
- package/dist/components/Steps.js +1 -1
- package/dist/components/Strong.cjs +1 -0
- package/dist/components/Switch.cjs +1 -0
- package/dist/components/Switch.d.ts +14 -2
- package/dist/components/Switch.js +1 -1
- package/dist/components/TabNav.cjs +1 -0
- package/dist/components/TabNav.d.ts +5 -0
- package/dist/components/TabNav.js +1 -1
- package/dist/components/Table.cjs +1 -0
- package/dist/components/Table.d.ts +23 -12
- package/dist/components/Table.js +1 -1
- package/dist/components/Tabs.cjs +1 -0
- package/dist/components/Tabs.js +1 -1
- package/dist/components/Text.cjs +1 -0
- package/dist/components/TextArea.cjs +1 -0
- package/dist/components/TextField.cjs +1 -0
- package/dist/components/Theme.cjs +1 -0
- package/dist/components/Theme.d.ts +2 -0
- package/dist/components/Theme.js +1 -1
- package/dist/components/ThemeContext-t7IX-w6i.cjs +1 -0
- package/dist/components/Toast.cjs +1 -0
- package/dist/components/Toast.js +1 -1
- package/dist/components/Toggle.cjs +1 -0
- package/dist/components/Toggle.js +1 -1
- package/dist/components/ToggleGroup.cjs +1 -0
- package/dist/components/ToggleGroup.js +1 -1
- package/dist/components/Toolbar.cjs +1 -0
- package/dist/components/Toolbar.d.ts +8 -1
- package/dist/components/Toolbar.js +1 -1
- package/dist/components/Tooltip.cjs +1 -0
- package/dist/components/Tooltip.d.ts +7 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/Tree.cjs +1 -0
- package/dist/components/Tree.d.ts +8 -1
- package/dist/components/Tree.js +1 -1
- package/dist/components/VisuallyHidden.cjs +1 -0
- package/dist/components/VisuallyHidden.d.ts +6 -1
- package/dist/components/VisuallyHidden.js +1 -1
- package/dist/components/check-BazcmpuG.cjs +44 -0
- package/dist/components/documentOverlayOpen-BbC6uByx.cjs +1 -0
- package/dist/components/{floating-ui.react-2kiGB4sW.js → floating-ui.react-CZf-mCiA.js} +1 -1
- package/dist/components/floating-ui.react-Kw0_L48Q.cjs +5 -0
- package/dist/components/index-7Bjw6jmo.cjs +1 -0
- package/dist/components/index-BZO29jsF.cjs +1 -0
- package/dist/components/index-B_OPdW20.js +1 -0
- package/dist/components/index-BbvJO-A-.cjs +1 -0
- package/dist/components/index-Bg-UeWCo.cjs +1 -0
- package/dist/components/index-BidxkqdT.js +1 -0
- package/dist/components/index-BudP4FIn.cjs +1 -0
- package/dist/components/index-BwNOI8cB.cjs +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-C_Yiql9j.cjs +1 -0
- package/dist/components/index-CbdoW3TC.cjs +1 -0
- 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-DrMwbB8q.cjs +1 -0
- package/dist/components/index-K0sE1H4u.cjs +1 -0
- package/dist/components/index-c6NFMS_0.cjs +1 -0
- package/dist/components/index-rUSzFrhJ.cjs +1 -0
- package/dist/components/keyboard-BBlFllyi.cjs +1 -0
- package/dist/components/mergeProps-DW5qFqqJ.cjs +1 -0
- package/dist/components/mergeRefs-BUn-enYe.cjs +1 -0
- package/dist/components/useComponentClass-B0DF90tm.cjs +1 -0
- package/dist/index.cjs +70 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +69 -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/MenuPrimitive-D9VMz2TZ.js +0 -1
- package/dist/components/RadioGroupPrimitive-D1PP4y2M.js +0 -1
- package/dist/components/index-D8I-rMwz.js +0 -1
- package/dist/components/index-XF8itt-H.js +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
.rad-ui-minimap {
|
|
2
|
+
.rad-ui-minimap-item {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: row;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
outline: none;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: none;
|
|
9
|
+
padding: 0;
|
|
10
|
+
text-align: left;
|
|
11
|
+
|
|
12
|
+
.rad-ui-minimap-track {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 8px;
|
|
17
|
+
|
|
18
|
+
.rad-ui-minimap-bubble {
|
|
19
|
+
border: 1px solid transparent;
|
|
20
|
+
background-color: var(--rad-ui-surface-muted);
|
|
21
|
+
width: 20px;
|
|
22
|
+
height: 20px;
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
flex:none;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
position: relative;
|
|
29
|
+
top: 3px;
|
|
30
|
+
font-size: 11px;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
color: var(--rad-ui-text-secondary);
|
|
33
|
+
box-shadow: var(--rad-ui-shadow-none);
|
|
34
|
+
|
|
35
|
+
&[data-in-view="true"] {
|
|
36
|
+
border-color: var(--rad-ui-surface-inverse);
|
|
37
|
+
background-color: var(--rad-ui-surface-inverse);
|
|
38
|
+
color: var(--rad-ui-surface-canvas);
|
|
39
|
+
box-shadow: var(--rad-ui-shadow-none);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.rad-ui-minimap-line {
|
|
45
|
+
display: block;
|
|
46
|
+
border: 1px solid var(--rad-ui-border-soft);
|
|
47
|
+
width: 1px;
|
|
48
|
+
height: 100%;
|
|
49
|
+
|
|
50
|
+
&[data-in-view="true"] {
|
|
51
|
+
border: 1px solid var(--rad-ui-surface-inverse);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.rad-ui-minimap-content {
|
|
58
|
+
padding-left: 8px;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: 2px;
|
|
62
|
+
padding-bottom: 0px;
|
|
63
|
+
color: var(--rad-ui-text-secondary);
|
|
64
|
+
font-size: var(--rad-ui-component-font-size-dense);
|
|
65
|
+
line-height: 1.3;
|
|
66
|
+
padding-top: 4px;
|
|
67
|
+
padding-bottom: 14px;
|
|
68
|
+
|
|
69
|
+
> * {
|
|
70
|
+
margin: 0;
|
|
71
|
+
font: inherit;
|
|
72
|
+
line-height: inherit;
|
|
73
|
+
color: inherit;
|
|
74
|
+
letter-spacing: inherit;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:focus-visible {
|
|
79
|
+
.rad-ui-minimap-bubble {
|
|
80
|
+
box-shadow: var(--rad-ui-focus-ring-shadow-offset);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.rad-ui-minimap-content {
|
|
84
|
+
color: var(--rad-ui-text-primary);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:last-child .rad-ui-minimap-line {
|
|
89
|
+
display: none;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
.rad-ui-navigation-menu-root {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 0.25rem;
|
|
6
|
+
padding: 0.25rem;
|
|
7
|
+
border: 1px solid var(--rad-ui-border-soft);
|
|
8
|
+
border-radius: var(--rad-ui-radius-lg);
|
|
9
|
+
background-color: var(--rad-ui-surface-panel);
|
|
10
|
+
box-shadow: var(--rad-ui-shadow-sm);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.rad-ui-navigation-menu-item {
|
|
14
|
+
position: relative;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.rad-ui-navigation-menu-trigger,
|
|
20
|
+
.rad-ui-navigation-menu-link {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
min-height: 2.25rem;
|
|
25
|
+
padding: 0.5rem 0.9rem;
|
|
26
|
+
border: none;
|
|
27
|
+
border-radius: var(--rad-ui-radius-lg);
|
|
28
|
+
background-color: transparent;
|
|
29
|
+
color: var(--rad-ui-text-primary);
|
|
30
|
+
font-size: var(--rad-ui-font-size-2);
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
line-height: var(--rad-ui-line-height-1);
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
transition:
|
|
36
|
+
background-color var(--rad-ui-motion-duration-fast) ease,
|
|
37
|
+
color var(--rad-ui-motion-duration-fast) ease,
|
|
38
|
+
box-shadow var(--rad-ui-motion-duration-fast) ease;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
background-color: var(--rad-ui-surface-subtle);
|
|
42
|
+
color: var(--rad-ui-text-primary);
|
|
43
|
+
outline: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:focus-visible {
|
|
47
|
+
outline: none;
|
|
48
|
+
box-shadow: var(--rad-ui-focus-ring-shadow-sm);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.rad-ui-navigation-menu-trigger {
|
|
53
|
+
position: relative;
|
|
54
|
+
gap: 0.5rem;
|
|
55
|
+
|
|
56
|
+
&::after {
|
|
57
|
+
content: '';
|
|
58
|
+
width: 0.42rem;
|
|
59
|
+
height: 0.42rem;
|
|
60
|
+
border-right: 1.5px solid currentcolor;
|
|
61
|
+
border-bottom: 1.5px solid currentcolor;
|
|
62
|
+
transform: rotate(45deg) translateY(-1px);
|
|
63
|
+
transform-origin: center;
|
|
64
|
+
opacity: 0.75;
|
|
65
|
+
transition: transform var(--rad-ui-motion-duration-fast) ease;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&[data-state="open"] {
|
|
69
|
+
background-color: var(--rad-ui-surface-subtle);
|
|
70
|
+
color: var(--rad-ui-text-primary);
|
|
71
|
+
box-shadow: var(--rad-ui-shadow-xs);
|
|
72
|
+
|
|
73
|
+
&::after {
|
|
74
|
+
transform: rotate(-135deg) translateX(-1px);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.rad-ui-navigation-menu-content {
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: calc(100% + 0.375rem);
|
|
82
|
+
left: 0;
|
|
83
|
+
min-width: 12rem;
|
|
84
|
+
width: auto;
|
|
85
|
+
max-width: min(28rem, calc(100vw - 2rem));
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
padding: 0.4rem;
|
|
88
|
+
border: 1px solid var(--rad-ui-border-soft);
|
|
89
|
+
border-radius: var(--rad-ui-radius-lg);
|
|
90
|
+
background-color: var(--rad-ui-surface-panel);
|
|
91
|
+
box-shadow: var(--rad-ui-shadow-lg);
|
|
92
|
+
z-index: 100;
|
|
93
|
+
|
|
94
|
+
// Invisible hover bridge over the gap above the panel, so moving the pointer from the
|
|
95
|
+
// trigger into the content never leaves the item.
|
|
96
|
+
&::before {
|
|
97
|
+
content: '';
|
|
98
|
+
position: absolute;
|
|
99
|
+
inset-inline: 0;
|
|
100
|
+
bottom: 100%;
|
|
101
|
+
height: var(--rad-ui-spacing-2);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.rad-ui-navigation-menu-content .rad-ui-navigation-menu-link {
|
|
106
|
+
width: 100%;
|
|
107
|
+
box-sizing: border-box;
|
|
108
|
+
justify-content: flex-start;
|
|
109
|
+
min-height: 2.25rem;
|
|
110
|
+
border-radius: var(--rad-ui-radius-md);
|
|
111
|
+
padding: 0.65rem 0.8rem;
|
|
112
|
+
color: var(--rad-ui-text-secondary);
|
|
113
|
+
white-space: normal;
|
|
114
|
+
overflow-wrap: anywhere;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.rad-ui-navigation-menu-content .rad-ui-navigation-menu-link:hover,
|
|
118
|
+
.rad-ui-navigation-menu-content .rad-ui-navigation-menu-link:focus-visible {
|
|
119
|
+
background-color: var(--rad-ui-surface-subtle);
|
|
120
|
+
color: var(--rad-ui-text-primary);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.rad-ui-navigation-menu-link[aria-current="page"],
|
|
124
|
+
.rad-ui-navigation-menu-link[data-active="true"] {
|
|
125
|
+
background-color: var(--rad-ui-surface-subtle);
|
|
126
|
+
color: var(--rad-ui-text-primary);
|
|
127
|
+
box-shadow: inset 0 0 0 1px var(--rad-ui-border-soft);
|
|
128
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
.rad-ui-number-field-root {
|
|
2
|
+
display: inline-grid;
|
|
3
|
+
grid-template-columns: minmax(0, var(--rad-ui-number-field-input-width, 4.5rem)) 2.5rem;
|
|
4
|
+
grid-template-rows: repeat(2, 1rem);
|
|
5
|
+
height: 2rem;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
width: fit-content;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
border: 1px solid var(--rad-ui-field-border);
|
|
11
|
+
border-radius: var(--rad-ui-radius-md);
|
|
12
|
+
background-color: var(--rad-ui-field-background);
|
|
13
|
+
color: var(--rad-ui-color-gray-1000);
|
|
14
|
+
box-shadow: var(--rad-ui-shadow-xs);
|
|
15
|
+
|
|
16
|
+
&:focus-within {
|
|
17
|
+
border-color: var(--rad-ui-color-gray-700);
|
|
18
|
+
box-shadow: var(--rad-ui-focus-ring-shadow), var(--rad-ui-shadow-xs);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:has(.rad-ui-number-field-input:disabled) {
|
|
22
|
+
background-color: var(--rad-ui-disabled-background);
|
|
23
|
+
border-color: var(--rad-ui-disabled-border);
|
|
24
|
+
box-shadow: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.rad-ui-number-field-input {
|
|
29
|
+
grid-column: 1;
|
|
30
|
+
grid-row: 1 / span 2;
|
|
31
|
+
width: 100%;
|
|
32
|
+
min-width: 0;
|
|
33
|
+
height: 100%;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
padding: 0 0.875rem;
|
|
36
|
+
border: 0;
|
|
37
|
+
outline: none;
|
|
38
|
+
background: transparent;
|
|
39
|
+
color: var(--rad-ui-color-gray-1000);
|
|
40
|
+
font-family: var(--rad-ui-font-sans);
|
|
41
|
+
font-size: 1rem;
|
|
42
|
+
line-height: 1;
|
|
43
|
+
letter-spacing: 0;
|
|
44
|
+
|
|
45
|
+
&::placeholder {
|
|
46
|
+
color: var(--rad-ui-field-placeholder);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:disabled {
|
|
50
|
+
color: var(--rad-ui-disabled-text);
|
|
51
|
+
cursor: not-allowed;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:read-only {
|
|
55
|
+
color: var(--rad-ui-color-gray-1000);
|
|
56
|
+
cursor: text;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// The root draws the focus ring; suppress the theme's per-input ring so the
|
|
60
|
+
// field does not show a second rectangle inside the rounded border.
|
|
61
|
+
&:focus-visible {
|
|
62
|
+
box-shadow: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&::-webkit-outer-spin-button,
|
|
66
|
+
&::-webkit-inner-spin-button {
|
|
67
|
+
appearance: none;
|
|
68
|
+
margin: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
appearance: textfield;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.rad-ui-number-field-increment,
|
|
75
|
+
.rad-ui-number-field-decrement {
|
|
76
|
+
position: relative;
|
|
77
|
+
grid-column: 2;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
width: 2.5rem;
|
|
82
|
+
min-width: 2.5rem;
|
|
83
|
+
height: 1rem;
|
|
84
|
+
box-sizing: border-box;
|
|
85
|
+
padding: 0;
|
|
86
|
+
border: 0;
|
|
87
|
+
border-left: 1px solid var(--rad-ui-color-gray-600);
|
|
88
|
+
background: transparent;
|
|
89
|
+
color: var(--rad-ui-color-gray-950);
|
|
90
|
+
font-size: 0;
|
|
91
|
+
line-height: 0;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
|
|
94
|
+
&::before {
|
|
95
|
+
content: '';
|
|
96
|
+
width: 0.375rem;
|
|
97
|
+
height: 0.375rem;
|
|
98
|
+
border-top: 1.5px solid currentcolor;
|
|
99
|
+
border-left: 1.5px solid currentcolor;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
background-color: var(--rad-ui-surface-hover);
|
|
104
|
+
color: var(--rad-ui-color-gray-1000);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&:focus-visible {
|
|
108
|
+
z-index: 1;
|
|
109
|
+
outline: none;
|
|
110
|
+
box-shadow: var(--rad-ui-focus-ring-shadow-inset);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:disabled {
|
|
114
|
+
color: var(--rad-ui-text-muted);
|
|
115
|
+
cursor: not-allowed;
|
|
116
|
+
opacity: 0.6;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.rad-ui-number-field-increment {
|
|
121
|
+
grid-row: 1;
|
|
122
|
+
|
|
123
|
+
&::before {
|
|
124
|
+
transform: translateY(0.125rem) rotate(45deg);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.rad-ui-number-field-decrement {
|
|
129
|
+
grid-row: 2;
|
|
130
|
+
border-top: 1px solid var(--rad-ui-color-gray-600);
|
|
131
|
+
|
|
132
|
+
&::before {
|
|
133
|
+
transform: translateY(-0.125rem) rotate(225deg);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
.rad-ui-popover-content {
|
|
2
|
+
position: relative;
|
|
3
|
+
min-width: min(20rem, calc(100vw - 2rem));
|
|
4
|
+
padding: 1rem;
|
|
5
|
+
border: 1px solid var(--rad-ui-border-soft);
|
|
6
|
+
border-radius: var(--rad-ui-panel-radius-md);
|
|
7
|
+
background: var(--rad-ui-color-gray-50);
|
|
8
|
+
color: var(--rad-ui-text-primary);
|
|
9
|
+
box-shadow: var(--rad-ui-shadow-lg);
|
|
10
|
+
outline: none;
|
|
11
|
+
|
|
12
|
+
&[data-state="open"] {
|
|
13
|
+
animation: rad-ui-popover-enter var(--rad-ui-motion-duration-normal) var(--rad-ui-motion-easing-entrance);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&[data-state="closed"] {
|
|
17
|
+
animation: rad-ui-popover-exit var(--rad-ui-motion-duration-fast) var(--rad-ui-motion-easing-standard);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (width <= 640px) {
|
|
21
|
+
min-width: calc(100vw - 1.5rem);
|
|
22
|
+
border-radius: var(--rad-ui-panel-radius-sm);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.rad-ui-popover-close {
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 1rem;
|
|
29
|
+
right: 1rem;
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
width: 2rem;
|
|
34
|
+
height: 2rem;
|
|
35
|
+
border: none;
|
|
36
|
+
border-radius: 999px;
|
|
37
|
+
background: transparent;
|
|
38
|
+
color: var(--rad-ui-text-muted);
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
transition:
|
|
41
|
+
background-color var(--rad-ui-motion-duration-fast) ease,
|
|
42
|
+
color var(--rad-ui-motion-duration-fast) ease,
|
|
43
|
+
transform var(--rad-ui-motion-duration-fast) ease;
|
|
44
|
+
|
|
45
|
+
&:hover {
|
|
46
|
+
background-color: var(--rad-ui-surface-subtle);
|
|
47
|
+
color: var(--rad-ui-text-primary);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:focus-visible {
|
|
51
|
+
outline: none;
|
|
52
|
+
box-shadow: var(--rad-ui-focus-ring-shadow-offset-panel);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.rad-ui-popover-arrow {
|
|
57
|
+
display: block;
|
|
58
|
+
fill: var(--rad-ui-color-gray-50);
|
|
59
|
+
stroke: var(--rad-ui-border-soft);
|
|
60
|
+
stroke-width: 1px;
|
|
61
|
+
filter: var(--rad-ui-overlay-arrow-shadow);
|
|
62
|
+
vector-effect: non-scaling-stroke;
|
|
63
|
+
|
|
64
|
+
path {
|
|
65
|
+
fill: var(--rad-ui-color-gray-50);
|
|
66
|
+
stroke: var(--rad-ui-border-soft);
|
|
67
|
+
stroke-width: 1px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes rad-ui-popover-enter {
|
|
72
|
+
from {
|
|
73
|
+
opacity: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
to {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@keyframes rad-ui-popover-exit {
|
|
82
|
+
from {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
to {
|
|
87
|
+
opacity: 0;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rad-ui-popover-title {
|
|
92
|
+
font-size: var(--rad-ui-font-size-2);
|
|
93
|
+
font-weight: var(--rad-ui-component-font-weight-medium);
|
|
94
|
+
line-height: var(--rad-ui-component-line-height-tight);
|
|
95
|
+
color: var(--rad-ui-text-primary);
|
|
96
|
+
margin: 0;
|
|
97
|
+
margin-bottom: var(--rad-ui-spacing-1);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.rad-ui-popover-description {
|
|
101
|
+
font-size: var(--rad-ui-font-size-2);
|
|
102
|
+
font-weight: var(--rad-ui-component-font-weight-regular);
|
|
103
|
+
line-height: var(--rad-ui-component-line-height-normal);
|
|
104
|
+
color: var(--rad-ui-text-secondary);
|
|
105
|
+
margin: 0;
|
|
106
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Progress — Clarity design system aligned
|
|
2
|
+
// Track: step 3 (200) — subtle interactive surface, low visual weight
|
|
3
|
+
// Indicator: step 10 (900) — solid, accessible, high contrast fill
|
|
4
|
+
.rad-ui-progress {
|
|
5
|
+
background: var(--rad-ui-surface-muted); // step 3 — subtle surface for track
|
|
6
|
+
border: none;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
height: var(--rad-ui-spacing-1);
|
|
9
|
+
border-radius: var(--rad-ui-control-radius-pill);
|
|
10
|
+
width: 100%;
|
|
11
|
+
max-width: calc(var(--rad-ui-overlay-width-md) + var(--rad-ui-size-10) + var(--rad-ui-spacing-1));
|
|
12
|
+
|
|
13
|
+
.rad-ui-progress-indicator {
|
|
14
|
+
background: var(--rad-ui-color-accent-800); // accent — solid fill, brand signal
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
border-radius: inherit;
|
|
18
|
+
transition: transform var(--rad-ui-motion-duration-normal) var(--rad-ui-motion-easing-standard);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Indeterminate (value={null}): a sliding segment communicates ongoing work.
|
|
23
|
+
.rad-ui-progress[data-state="indeterminate"] .rad-ui-progress-indicator {
|
|
24
|
+
width: 40%;
|
|
25
|
+
transition: none;
|
|
26
|
+
animation: rad-ui-progress-indeterminate calc(var(--rad-ui-motion-duration-normal) * 6) var(--rad-ui-motion-easing-standard) infinite;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@keyframes rad-ui-progress-indeterminate {
|
|
30
|
+
0% { transform: translateX(-100%); }
|
|
31
|
+
100% { transform: translateX(250%); }
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media (prefers-reduced-motion: reduce) {
|
|
35
|
+
.rad-ui-progress[data-state="indeterminate"] .rad-ui-progress-indicator {
|
|
36
|
+
animation-duration: calc(var(--rad-ui-motion-duration-normal) * 15);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Quote — Clarity design system aligned
|
|
2
|
+
// step 11 (950) — accessible secondary text
|
|
3
|
+
.rad-ui-quote {
|
|
4
|
+
font-style: italic;
|
|
5
|
+
color: var(--rad-ui-text-secondary);
|
|
6
|
+
quotes: "\201C" "\201D" "\2018" "\2019";
|
|
7
|
+
|
|
8
|
+
&::before {
|
|
9
|
+
content: open-quote;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&::after {
|
|
13
|
+
content: close-quote;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Quote is phrasing content: truncate in place (inline-block) instead of
|
|
17
|
+
// forcing a line break before and after the quote.
|
|
18
|
+
&[data-truncate] {
|
|
19
|
+
display: inline-block;
|
|
20
|
+
max-width: 100%;
|
|
21
|
+
vertical-align: bottom;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Radio — Clarity design system aligned
|
|
2
|
+
// Unchecked border: border-strong (step 8) — same as Checkbox
|
|
3
|
+
// Hover border: step 9 (800)
|
|
4
|
+
// Checked border: accent-700 — solid color, clear selection signal
|
|
5
|
+
// Indicator dot: accent-800 — solid, high contrast fill
|
|
6
|
+
.rad-ui-radio {
|
|
7
|
+
appearance: none;
|
|
8
|
+
width: 1.125rem;
|
|
9
|
+
height: 1.125rem;
|
|
10
|
+
position: relative;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
outline: none;
|
|
16
|
+
margin: 0;
|
|
17
|
+
border: none;
|
|
18
|
+
border-radius: var(--rad-ui-radius-full);
|
|
19
|
+
background: none;
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
|
|
23
|
+
&::before {
|
|
24
|
+
content: "";
|
|
25
|
+
display: inline-block;
|
|
26
|
+
width: 1.125rem;
|
|
27
|
+
height: 1.125rem;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
background-color: var(--rad-ui-color-gray-50); // step 1 — canvas bg
|
|
30
|
+
border: 1px solid var(--rad-ui-border-strong); // matches Checkbox; step 6 was near-invisible in dark mode
|
|
31
|
+
box-shadow: var(--rad-ui-control-shadow);
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
transition: border-color var(--rad-ui-motion-duration-fast) ease;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&::after {
|
|
37
|
+
content: "";
|
|
38
|
+
display: inline-block;
|
|
39
|
+
position: absolute;
|
|
40
|
+
width: 0.5rem;
|
|
41
|
+
height: 0.5rem;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
transform: scale(0.6);
|
|
45
|
+
transition: transform var(--rad-ui-motion-duration-fast) ease, background-color var(--rad-ui-motion-duration-fast) ease;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:hover::before {
|
|
49
|
+
border-color: var(--rad-ui-color-gray-800); // one step past border-strong on hover
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-checked="true"]::before {
|
|
53
|
+
border-color: var(--rad-ui-color-accent-700); // accent — selected state signal
|
|
54
|
+
background-color: var(--rad-ui-color-gray-100); // step 2 — subtle surface behind dot
|
|
55
|
+
box-shadow:
|
|
56
|
+
inset 0 0 0 1px color-mix(in oklab, var(--rad-ui-color-accent-200) 60%, transparent),
|
|
57
|
+
var(--rad-ui-control-shadow);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&[data-checked="true"]::after {
|
|
61
|
+
background-color: var(--rad-ui-color-accent-800); // accent — solid indicator dot
|
|
62
|
+
transform: scale(1);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:focus-visible {
|
|
66
|
+
outline: none;
|
|
67
|
+
box-shadow: var(--rad-ui-focus-ring-shadow-sm);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Radio emits `data-disabled=""` (presence), so match on presence rather than "true".
|
|
71
|
+
&[data-disabled],
|
|
72
|
+
&:disabled {
|
|
73
|
+
opacity: 0.5;
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
}
|
|
76
|
+
}
|