@_linked/primitives 1.0.5
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/.changeset/README.md +20 -0
- package/.changeset/config.json +14 -0
- package/.github/workflows/changeset-check.yml +44 -0
- package/.github/workflows/ci.yml +30 -0
- package/.github/workflows/publish.yml +42 -0
- package/CHANGELOG.md +7 -0
- package/lib/cjs/backend.d.ts +0 -0
- package/lib/cjs/components/Accordion.d.ts +13 -0
- package/lib/cjs/components/Accordion.module.css +101 -0
- package/lib/cjs/components/AlertDialog.d.ts +37 -0
- package/lib/cjs/components/AlertDialog.module.css +80 -0
- package/lib/cjs/components/AspectRatio.d.ts +7 -0
- package/lib/cjs/components/AspectRatio.module.css +28 -0
- package/lib/cjs/components/Avatar.d.ts +11 -0
- package/lib/cjs/components/Avatar.module.css +43 -0
- package/lib/cjs/components/Breadcrumb.d.ts +41 -0
- package/lib/cjs/components/Breadcrumb.module.css +78 -0
- package/lib/cjs/components/Button.d.ts +9 -0
- package/lib/cjs/components/Button.module.css +246 -0
- package/lib/cjs/components/Checkbox.d.ts +4 -0
- package/lib/cjs/components/Checkbox.module.css +43 -0
- package/lib/cjs/components/Collapsible.d.ts +11 -0
- package/lib/cjs/components/Command.d.ts +167 -0
- package/lib/cjs/components/Command.module.css +153 -0
- package/lib/cjs/components/ContextMenu.d.ts +51 -0
- package/lib/cjs/components/ContextMenu.module.css +238 -0
- package/lib/cjs/components/Dialog.d.ts +38 -0
- package/lib/cjs/components/Dialog.module.css +109 -0
- package/lib/cjs/components/Drawer.d.ts +40 -0
- package/lib/cjs/components/Drawer.module.css +87 -0
- package/lib/cjs/components/DropdownMenu.d.ts +52 -0
- package/lib/cjs/components/DropdownMenu.module.css +244 -0
- package/lib/cjs/components/Form.d.ts +23 -0
- package/lib/cjs/components/Form.module.css +75 -0
- package/lib/cjs/components/Heading.d.ts +7 -0
- package/lib/cjs/components/Heading.module.css +83 -0
- package/lib/cjs/components/HoverCard.d.ts +15 -0
- package/lib/cjs/components/HoverCard.module.css +75 -0
- package/lib/cjs/components/IconButton.d.ts +9 -0
- package/lib/cjs/components/IconButton.module.css +150 -0
- package/lib/cjs/components/Input.d.ts +6 -0
- package/lib/cjs/components/Input.module.css +61 -0
- package/lib/cjs/components/Label.d.ts +4 -0
- package/lib/cjs/components/Label.module.css +7 -0
- package/lib/cjs/components/Menubar.d.ts +65 -0
- package/lib/cjs/components/Menubar.module.css +128 -0
- package/lib/cjs/components/MultiSelect.d.ts +86 -0
- package/lib/cjs/components/MultiSelect.module.css +93 -0
- package/lib/cjs/components/NavigationMenu.d.ts +21 -0
- package/lib/cjs/components/NavigationMenu.module.css +248 -0
- package/lib/cjs/components/Popover.d.ts +17 -0
- package/lib/cjs/components/Popover.module.css +106 -0
- package/lib/cjs/components/Progress.d.ts +9 -0
- package/lib/cjs/components/Progress.module.css +23 -0
- package/lib/cjs/components/RadioGroup.d.ts +9 -0
- package/lib/cjs/components/RadioGroup.module.css +57 -0
- package/lib/cjs/components/ScrollArea.d.ts +9 -0
- package/lib/cjs/components/ScrollArea.module.css +55 -0
- package/lib/cjs/components/Select.d.ts +28 -0
- package/lib/cjs/components/Select.module.css +153 -0
- package/lib/cjs/components/Separator.d.ts +4 -0
- package/lib/cjs/components/Separator.module.css +13 -0
- package/lib/cjs/components/Slider.d.ts +13 -0
- package/lib/cjs/components/Slider.module.css +43 -0
- package/lib/cjs/components/Spinner.d.ts +4 -0
- package/lib/cjs/components/Spinner.module.css +21 -0
- package/lib/cjs/components/Switch.d.ts +4 -0
- package/lib/cjs/components/Switch.module.css +52 -0
- package/lib/cjs/components/Tabs.d.ts +13 -0
- package/lib/cjs/components/Tabs.module.css +64 -0
- package/lib/cjs/components/Text.d.ts +8 -0
- package/lib/cjs/components/Text.module.css +24 -0
- package/lib/cjs/components/Textarea.d.ts +5 -0
- package/lib/cjs/components/Textarea.module.css +34 -0
- package/lib/cjs/components/Toast.d.ts +21 -0
- package/lib/cjs/components/Toast.module.css +133 -0
- package/lib/cjs/components/Toaster.d.ts +2 -0
- package/lib/cjs/components/Toggle.d.ts +7 -0
- package/lib/cjs/components/Toggle.module.css +32 -0
- package/lib/cjs/components/ToggleGroup.d.ts +9 -0
- package/lib/cjs/components/ToggleGroup.module.css +61 -0
- package/lib/cjs/components/Toolbar.d.ts +17 -0
- package/lib/cjs/components/Toolbar.module.css +113 -0
- package/lib/cjs/components/Tooltip.d.ts +15 -0
- package/lib/cjs/components/Tooltip.module.css +78 -0
- package/lib/cjs/components/Typography.d.ts +8 -0
- package/lib/cjs/components/Typography.module.css +25 -0
- package/lib/cjs/components/VisuallyHidden.d.ts +4 -0
- package/lib/cjs/components/helpers/mixins.css +15 -0
- package/lib/cjs/data/primitives.json +10 -0
- package/lib/cjs/hooks/use-toast.d.ts +44 -0
- package/lib/cjs/index.d.ts +45 -0
- package/lib/cjs/ontologies/primitives.d.ts +6 -0
- package/lib/cjs/package.d.ts +3 -0
- package/lib/cjs/package.json +85 -0
- package/lib/cjs/theme.css +3 -0
- package/lib/cjs/types.d.ts +12 -0
- package/lib/esm/backend.d.ts +0 -0
- package/lib/esm/components/Accordion.d.ts +13 -0
- package/lib/esm/components/Accordion.module.css +101 -0
- package/lib/esm/components/AlertDialog.d.ts +37 -0
- package/lib/esm/components/AlertDialog.module.css +80 -0
- package/lib/esm/components/AspectRatio.d.ts +7 -0
- package/lib/esm/components/AspectRatio.module.css +28 -0
- package/lib/esm/components/Avatar.d.ts +11 -0
- package/lib/esm/components/Avatar.module.css +43 -0
- package/lib/esm/components/Breadcrumb.d.ts +41 -0
- package/lib/esm/components/Breadcrumb.module.css +78 -0
- package/lib/esm/components/Button.d.ts +9 -0
- package/lib/esm/components/Button.module.css +246 -0
- package/lib/esm/components/Checkbox.d.ts +4 -0
- package/lib/esm/components/Checkbox.module.css +43 -0
- package/lib/esm/components/Collapsible.d.ts +11 -0
- package/lib/esm/components/Command.d.ts +167 -0
- package/lib/esm/components/Command.module.css +153 -0
- package/lib/esm/components/ContextMenu.d.ts +51 -0
- package/lib/esm/components/ContextMenu.module.css +238 -0
- package/lib/esm/components/Dialog.d.ts +38 -0
- package/lib/esm/components/Dialog.module.css +109 -0
- package/lib/esm/components/Drawer.d.ts +40 -0
- package/lib/esm/components/Drawer.module.css +87 -0
- package/lib/esm/components/DropdownMenu.d.ts +52 -0
- package/lib/esm/components/DropdownMenu.module.css +244 -0
- package/lib/esm/components/Form.d.ts +23 -0
- package/lib/esm/components/Form.module.css +75 -0
- package/lib/esm/components/Heading.d.ts +7 -0
- package/lib/esm/components/Heading.module.css +83 -0
- package/lib/esm/components/HoverCard.d.ts +15 -0
- package/lib/esm/components/HoverCard.module.css +75 -0
- package/lib/esm/components/IconButton.d.ts +9 -0
- package/lib/esm/components/IconButton.module.css +150 -0
- package/lib/esm/components/Input.d.ts +6 -0
- package/lib/esm/components/Input.module.css +61 -0
- package/lib/esm/components/Label.d.ts +4 -0
- package/lib/esm/components/Label.module.css +7 -0
- package/lib/esm/components/Menubar.d.ts +65 -0
- package/lib/esm/components/Menubar.module.css +128 -0
- package/lib/esm/components/MultiSelect.d.ts +86 -0
- package/lib/esm/components/MultiSelect.module.css +93 -0
- package/lib/esm/components/NavigationMenu.d.ts +21 -0
- package/lib/esm/components/NavigationMenu.module.css +248 -0
- package/lib/esm/components/Popover.d.ts +17 -0
- package/lib/esm/components/Popover.module.css +106 -0
- package/lib/esm/components/Progress.d.ts +9 -0
- package/lib/esm/components/Progress.module.css +23 -0
- package/lib/esm/components/RadioGroup.d.ts +9 -0
- package/lib/esm/components/RadioGroup.module.css +57 -0
- package/lib/esm/components/ScrollArea.d.ts +9 -0
- package/lib/esm/components/ScrollArea.module.css +55 -0
- package/lib/esm/components/Select.d.ts +28 -0
- package/lib/esm/components/Select.module.css +153 -0
- package/lib/esm/components/Separator.d.ts +4 -0
- package/lib/esm/components/Separator.module.css +13 -0
- package/lib/esm/components/Slider.d.ts +13 -0
- package/lib/esm/components/Slider.module.css +43 -0
- package/lib/esm/components/Spinner.d.ts +4 -0
- package/lib/esm/components/Spinner.module.css +21 -0
- package/lib/esm/components/Switch.d.ts +4 -0
- package/lib/esm/components/Switch.module.css +52 -0
- package/lib/esm/components/Tabs.d.ts +13 -0
- package/lib/esm/components/Tabs.module.css +64 -0
- package/lib/esm/components/Text.d.ts +8 -0
- package/lib/esm/components/Text.module.css +24 -0
- package/lib/esm/components/Textarea.d.ts +5 -0
- package/lib/esm/components/Textarea.module.css +34 -0
- package/lib/esm/components/Toast.d.ts +21 -0
- package/lib/esm/components/Toast.module.css +133 -0
- package/lib/esm/components/Toaster.d.ts +2 -0
- package/lib/esm/components/Toggle.d.ts +7 -0
- package/lib/esm/components/Toggle.module.css +32 -0
- package/lib/esm/components/ToggleGroup.d.ts +9 -0
- package/lib/esm/components/ToggleGroup.module.css +61 -0
- package/lib/esm/components/Toolbar.d.ts +17 -0
- package/lib/esm/components/Toolbar.module.css +113 -0
- package/lib/esm/components/Tooltip.d.ts +15 -0
- package/lib/esm/components/Tooltip.module.css +78 -0
- package/lib/esm/components/Typography.d.ts +8 -0
- package/lib/esm/components/Typography.module.css +25 -0
- package/lib/esm/components/VisuallyHidden.d.ts +4 -0
- package/lib/esm/components/helpers/mixins.css +15 -0
- package/lib/esm/data/primitives.json +10 -0
- package/lib/esm/hooks/use-toast.d.ts +44 -0
- package/lib/esm/index.d.ts +45 -0
- package/lib/esm/ontologies/primitives.d.ts +6 -0
- package/lib/esm/package.d.ts +3 -0
- package/lib/esm/package.json +85 -0
- package/lib/esm/theme.css +3 -0
- package/lib/esm/types.d.ts +12 -0
- package/package.json +103 -0
- package/tsconfig-cjs.json +8 -0
- package/tsconfig-esm.json +9 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
@import './helpers/mixins.css';
|
|
2
|
+
|
|
3
|
+
/* Button component now uses semantic theme variables from theme-defaults.css */
|
|
4
|
+
|
|
5
|
+
/* $colors: (*/
|
|
6
|
+
/* 'primary': (*/
|
|
7
|
+
/* 'background': var(--primary),*/
|
|
8
|
+
/* 'foreground': var(--primary-foreground),*/
|
|
9
|
+
/* ),*/
|
|
10
|
+
/* 'secondary': (*/
|
|
11
|
+
/* 'background': var(--secondary),*/
|
|
12
|
+
/* 'foreground': var(--secondary-foreground),*/
|
|
13
|
+
/* ),*/
|
|
14
|
+
/* 'tertiary': (*/
|
|
15
|
+
/* 'background': var(--tertiary),*/
|
|
16
|
+
/* 'foreground': var(--tertiary-foreground),*/
|
|
17
|
+
/* ),*/
|
|
18
|
+
/* );*/
|
|
19
|
+
|
|
20
|
+
/* $variants: solid, outline, ghost, link;*/
|
|
21
|
+
|
|
22
|
+
.Root {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
border-radius: var(--control-radius);
|
|
28
|
+
font-family: var(--button-font-family);
|
|
29
|
+
font-size: var(--button-font-size);
|
|
30
|
+
font-weight: var(--button-font-weight);
|
|
31
|
+
line-height: var(--button-line-height);
|
|
32
|
+
outline: none;
|
|
33
|
+
transition: var(--transition-fast);
|
|
34
|
+
border: solid 1px transparent;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
gap: var(--button-gap);
|
|
37
|
+
padding: var(--button-padding-y) var(--button-padding-x);
|
|
38
|
+
height: var(--button-height-md);
|
|
39
|
+
|
|
40
|
+
&:focus-visible {
|
|
41
|
+
@mixin focus;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* // color: 'primary' | 'secondary' | 'tertiary'*/
|
|
45
|
+
/* // variant: 'solid' | 'outline' | 'ghost'*/
|
|
46
|
+
/* @each $color, $color-values in $colors {*/
|
|
47
|
+
/* &.#{$color} {*/
|
|
48
|
+
/* @each $variant in $variants {*/
|
|
49
|
+
/* &.#{$variant} {*/
|
|
50
|
+
/* @if $variant == 'solid' {*/
|
|
51
|
+
/* background: map-get($color-values, 'background');*/
|
|
52
|
+
/* color: map-get($color-values, 'foreground');*/
|
|
53
|
+
/* border-color: map-get($color-values, 'background');*/
|
|
54
|
+
|
|
55
|
+
/* &:hover {*/
|
|
56
|
+
/* background: #2563eb;*/
|
|
57
|
+
/* }*/
|
|
58
|
+
/* } @else if $variant == 'outline' {*/
|
|
59
|
+
/* background: transparent;*/
|
|
60
|
+
/* color: map-get($color-values, 'background');*/
|
|
61
|
+
/* border: 1px solid map-get($color-values, 'background');*/
|
|
62
|
+
|
|
63
|
+
/* &:hover {*/
|
|
64
|
+
/* background: map-get($color-values, 'background');*/
|
|
65
|
+
/* color: map-get($color-values, 'foreground');*/
|
|
66
|
+
/* }*/
|
|
67
|
+
/* } @else if $variant == 'ghost' {*/
|
|
68
|
+
/* background: transparent;*/
|
|
69
|
+
/* color: map-get($color-values, 'background');*/
|
|
70
|
+
|
|
71
|
+
/* &:hover {*/
|
|
72
|
+
/* background: map-get($color-values, 'background');*/
|
|
73
|
+
/* color: map-get($color-values, 'foreground');*/
|
|
74
|
+
/* }*/
|
|
75
|
+
/* } @else if $variant == 'link' {*/
|
|
76
|
+
/* background: transparent;*/
|
|
77
|
+
/* color: map-get($color-values, 'background');*/
|
|
78
|
+
|
|
79
|
+
/* &:hover {*/
|
|
80
|
+
/* text-decoration: underline;*/
|
|
81
|
+
/* }*/
|
|
82
|
+
/* }*/
|
|
83
|
+
/* }*/
|
|
84
|
+
/* }*/
|
|
85
|
+
/* }*/
|
|
86
|
+
/* }*/
|
|
87
|
+
|
|
88
|
+
/* color: 'primary' | 'secondary' | 'tertiary'*/
|
|
89
|
+
/* variant: 'solid' | 'outline' | 'ghost'*/
|
|
90
|
+
&.primary {
|
|
91
|
+
&.solid {
|
|
92
|
+
background: var(--button-primary-bg);
|
|
93
|
+
color: var(--button-primary-color);
|
|
94
|
+
border-color: var(--button-primary-bg);
|
|
95
|
+
|
|
96
|
+
&:hover {
|
|
97
|
+
background: var(--button-primary-bg-hover);
|
|
98
|
+
color: var(--button-primary-color-hover);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.outline {
|
|
103
|
+
background: transparent;
|
|
104
|
+
color: var(--button-primary-bg);
|
|
105
|
+
border: 1px solid var(--button-primary-bg);
|
|
106
|
+
|
|
107
|
+
&:hover {
|
|
108
|
+
background: var(--button-primary-bg);
|
|
109
|
+
color: var(--button-primary-color);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.ghost,
|
|
114
|
+
&.link {
|
|
115
|
+
/* Ghost+link defer to the solid background token so hover states stay in sync across variants. */
|
|
116
|
+
background: transparent;
|
|
117
|
+
color: var(--button-primary-bg);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.ghost {
|
|
121
|
+
/* Ghost uses the solid fill on hover to keep contrast consistent with solid/outline. */
|
|
122
|
+
&:hover {
|
|
123
|
+
background: var(--button-primary-bg);
|
|
124
|
+
color: var(--button-primary-color);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.link {
|
|
129
|
+
&:hover {
|
|
130
|
+
text-decoration: underline;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&.secondary {
|
|
136
|
+
&.solid {
|
|
137
|
+
background: var(--button-secondary-bg);
|
|
138
|
+
color: var(--button-secondary-color);
|
|
139
|
+
border-color: var(--button-secondary-bg);
|
|
140
|
+
|
|
141
|
+
&:hover {
|
|
142
|
+
background: var(--button-secondary-bg-hover);
|
|
143
|
+
color: var(--button-secondary-color-hover);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.outline {
|
|
148
|
+
background: transparent;
|
|
149
|
+
color: var(--button-secondary-bg);
|
|
150
|
+
border: 1px solid var(--button-secondary-bg); /* Use button background as border color */
|
|
151
|
+
|
|
152
|
+
&:hover {
|
|
153
|
+
background: var(--button-secondary-bg);
|
|
154
|
+
color: var(--button-secondary-color);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.ghost {
|
|
159
|
+
/* Ghost aligns to solid background for hover to avoid divergent theming knobs. */
|
|
160
|
+
background: transparent;
|
|
161
|
+
color: var(--button-secondary-bg);
|
|
162
|
+
|
|
163
|
+
&:hover {
|
|
164
|
+
background: var(--button-secondary-bg);
|
|
165
|
+
color: var(--button-secondary-color);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&.link {
|
|
170
|
+
background: transparent;
|
|
171
|
+
color: var(--button-secondary-bg);
|
|
172
|
+
|
|
173
|
+
&:hover {
|
|
174
|
+
text-decoration: underline;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&.tertiary {
|
|
180
|
+
&.solid {
|
|
181
|
+
background: var(--button-tertiary-bg);
|
|
182
|
+
color: var(--button-tertiary-color);
|
|
183
|
+
border-color: var(--button-tertiary-bg);
|
|
184
|
+
|
|
185
|
+
&:hover {
|
|
186
|
+
background: var(--button-tertiary-bg-hover);
|
|
187
|
+
color: var(--button-tertiary-color-hover);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&.outline {
|
|
192
|
+
background: transparent;
|
|
193
|
+
color: var(--button-tertiary-bg);
|
|
194
|
+
border: 1px solid var(--button-tertiary-bg); /* Use button background as border color */
|
|
195
|
+
|
|
196
|
+
&:hover {
|
|
197
|
+
background: var(--button-tertiary-bg);
|
|
198
|
+
color: var(--button-tertiary-color);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.ghost {
|
|
203
|
+
/* Ghost variant piggybacks on solid tokens so overrides remain centralized. */
|
|
204
|
+
background: transparent;
|
|
205
|
+
color: var(--button-tertiary-bg);
|
|
206
|
+
|
|
207
|
+
&:hover {
|
|
208
|
+
background: var(--button-tertiary-bg);
|
|
209
|
+
color: var(--button-tertiary-color);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
&.link {
|
|
214
|
+
background: transparent;
|
|
215
|
+
color: var(--button-tertiary-bg);
|
|
216
|
+
|
|
217
|
+
&:hover {
|
|
218
|
+
text-decoration: underline;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* size: 'small' | 'medium' | 'large' || 'default'*/
|
|
224
|
+
&.small {
|
|
225
|
+
padding: var(--button-padding-sm-y) var(--button-padding-sm-x);
|
|
226
|
+
height: var(--button-height-sm);
|
|
227
|
+
font-size: var(--button-font-size-sm);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&.medium,
|
|
231
|
+
&.default {
|
|
232
|
+
padding: var(--button-padding-y) var(--button-padding-x);
|
|
233
|
+
height: var(--button-height-md);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&.large {
|
|
237
|
+
padding: var(--button-padding-lg-y) var(--button-padding-lg-x);
|
|
238
|
+
height: var(--button-height-lg);
|
|
239
|
+
font-size: var(--typography-large-size);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* disabled*/
|
|
243
|
+
&.disabled {
|
|
244
|
+
@mixin disabled;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@import './helpers/mixins.css';
|
|
2
|
+
@import '@_linked/css/package.css';
|
|
3
|
+
|
|
4
|
+
.Root {
|
|
5
|
+
background-color: var(--checkbox-bg, var(--choice-bg));
|
|
6
|
+
width: var(--checkbox-size, var(--choice-size));
|
|
7
|
+
height: var(--checkbox-size, var(--choice-size));
|
|
8
|
+
border-radius: var(--checkbox-radius, var(--choice-radius));
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
box-shadow: var(--checkbox-shadow, var(--choice-shadow));
|
|
13
|
+
border: 1px solid var(--checkbox-border, var(--choice-border));
|
|
14
|
+
transition: var(--transition-fast);
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
background-color: var(--checkbox-bg-hover, var(--choice-bg-hover));
|
|
18
|
+
border-color: var(--checkbox-border-hover, var(--choice-border-hover));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:focus-visible {
|
|
22
|
+
@mixin focus;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:disabled {
|
|
26
|
+
@mixin disabled;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&[data-state='checked'] {
|
|
30
|
+
background-color: var(--checkbox-bg-checked, var(--choice-bg-checked));
|
|
31
|
+
border-color: var(--checkbox-border-checked, var(--choice-border-checked));
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.Indicator {
|
|
36
|
+
color: var(--checkbox-indicator, var(--choice-indicator));
|
|
37
|
+
|
|
38
|
+
svg {
|
|
39
|
+
height: var(--checkbox-indicator-size, var(--choice-indicator-size));
|
|
40
|
+
width: var(--checkbox-indicator-size, var(--choice-indicator-size));
|
|
41
|
+
margin-top: var(--checkbox-indicator-margin-top, --spacing(0.5));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
|
+
declare const Root: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const Trigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const Content: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const Collapsible: {
|
|
7
|
+
Root: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Trigger: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
Content: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
};
|
|
11
|
+
export { Root, Trigger, Content };
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type DialogProps } from '@radix-ui/react-dialog';
|
|
3
|
+
declare const Root: React.ForwardRefExoticComponent<Omit<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
} & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
+
label?: string;
|
|
11
|
+
shouldFilter?: boolean;
|
|
12
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
loop?: boolean;
|
|
17
|
+
disablePointerSelection?: boolean;
|
|
18
|
+
vimBindings?: boolean;
|
|
19
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
interface CommandDialogProps extends DialogProps {
|
|
21
|
+
}
|
|
22
|
+
declare const Dialog: {
|
|
23
|
+
({ children, ...props }: CommandDialogProps): React.JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
27
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
28
|
+
} & {
|
|
29
|
+
asChild?: boolean;
|
|
30
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
31
|
+
value?: string;
|
|
32
|
+
onValueChange?: (search: string) => void;
|
|
33
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
34
|
+
declare const List: React.ForwardRefExoticComponent<Omit<{
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
37
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
38
|
+
} & {
|
|
39
|
+
asChild?: boolean;
|
|
40
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
41
|
+
label?: string;
|
|
42
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
declare const Empty: React.ForwardRefExoticComponent<Omit<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
46
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
47
|
+
} & {
|
|
48
|
+
asChild?: boolean;
|
|
49
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
declare const Group: React.ForwardRefExoticComponent<Omit<{
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
53
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
54
|
+
} & {
|
|
55
|
+
asChild?: boolean;
|
|
56
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
57
|
+
heading?: React.ReactNode;
|
|
58
|
+
value?: string;
|
|
59
|
+
forceMount?: boolean;
|
|
60
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
62
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
63
|
+
} & {
|
|
64
|
+
asChild?: boolean;
|
|
65
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
66
|
+
alwaysRender?: boolean;
|
|
67
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
declare const Item: React.ForwardRefExoticComponent<Omit<{
|
|
69
|
+
children?: React.ReactNode;
|
|
70
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
71
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
72
|
+
} & {
|
|
73
|
+
asChild?: boolean;
|
|
74
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
onSelect?: (value: string) => void;
|
|
77
|
+
value?: string;
|
|
78
|
+
keywords?: string[];
|
|
79
|
+
forceMount?: boolean;
|
|
80
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
declare const Shortcut: {
|
|
82
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
83
|
+
displayName: string;
|
|
84
|
+
};
|
|
85
|
+
export declare const Command: {
|
|
86
|
+
Root: React.ForwardRefExoticComponent<Omit<{
|
|
87
|
+
children?: React.ReactNode;
|
|
88
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
89
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
90
|
+
} & {
|
|
91
|
+
asChild?: boolean;
|
|
92
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
93
|
+
label?: string;
|
|
94
|
+
shouldFilter?: boolean;
|
|
95
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
96
|
+
defaultValue?: string;
|
|
97
|
+
value?: string;
|
|
98
|
+
onValueChange?: (value: string) => void;
|
|
99
|
+
loop?: boolean;
|
|
100
|
+
disablePointerSelection?: boolean;
|
|
101
|
+
vimBindings?: boolean;
|
|
102
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
103
|
+
Dialog: {
|
|
104
|
+
({ children, ...props }: CommandDialogProps): React.JSX.Element;
|
|
105
|
+
displayName: string;
|
|
106
|
+
};
|
|
107
|
+
Input: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
108
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
109
|
+
} & {
|
|
110
|
+
asChild?: boolean;
|
|
111
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
112
|
+
value?: string;
|
|
113
|
+
onValueChange?: (search: string) => void;
|
|
114
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
115
|
+
List: React.ForwardRefExoticComponent<Omit<{
|
|
116
|
+
children?: React.ReactNode;
|
|
117
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
118
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
119
|
+
} & {
|
|
120
|
+
asChild?: boolean;
|
|
121
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
122
|
+
label?: string;
|
|
123
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
124
|
+
Empty: React.ForwardRefExoticComponent<Omit<{
|
|
125
|
+
children?: React.ReactNode;
|
|
126
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
127
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
128
|
+
} & {
|
|
129
|
+
asChild?: boolean;
|
|
130
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
131
|
+
Group: React.ForwardRefExoticComponent<Omit<{
|
|
132
|
+
children?: React.ReactNode;
|
|
133
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
134
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
135
|
+
} & {
|
|
136
|
+
asChild?: boolean;
|
|
137
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
138
|
+
heading?: React.ReactNode;
|
|
139
|
+
value?: string;
|
|
140
|
+
forceMount?: boolean;
|
|
141
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
142
|
+
Item: React.ForwardRefExoticComponent<Omit<{
|
|
143
|
+
children?: React.ReactNode;
|
|
144
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
145
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
146
|
+
} & {
|
|
147
|
+
asChild?: boolean;
|
|
148
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
149
|
+
disabled?: boolean;
|
|
150
|
+
onSelect?: (value: string) => void;
|
|
151
|
+
value?: string;
|
|
152
|
+
keywords?: string[];
|
|
153
|
+
forceMount?: boolean;
|
|
154
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
155
|
+
Shortcut: {
|
|
156
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
157
|
+
displayName: string;
|
|
158
|
+
};
|
|
159
|
+
Separator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
160
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
161
|
+
} & {
|
|
162
|
+
asChild?: boolean;
|
|
163
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
164
|
+
alwaysRender?: boolean;
|
|
165
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
166
|
+
};
|
|
167
|
+
export { Root, Dialog, Input, List, Empty, Group, Item, Shortcut, Separator };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
@import './helpers/mixins.css';
|
|
2
|
+
@import '@_linked/css/package.css';
|
|
3
|
+
|
|
4
|
+
.Root {
|
|
5
|
+
display: flex;
|
|
6
|
+
height: 100%;
|
|
7
|
+
width: 100%;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
border-radius: var(--command-radius, var(--popover-radius));
|
|
11
|
+
border: 1px solid var(--command-border, var(--popover-border));
|
|
12
|
+
background-color: var(--command-bg, var(--popover-bg));
|
|
13
|
+
box-shadow: var(--command-shadow, var(--popover-shadow));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.DialogCommand {
|
|
17
|
+
&[cmdk-group-heading] {
|
|
18
|
+
padding-left: --spacing(1);
|
|
19
|
+
padding-right: --spacing(1);
|
|
20
|
+
font-weight: var(--typography-font-weight);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[cmdk-group]:not([hidden]) ~ &[cmdk-group] {
|
|
24
|
+
padding-top: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[cmdk-group] {
|
|
28
|
+
padding-left: --spacing(1);
|
|
29
|
+
padding-right: --spacing(1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[cmdk-input-wrapper] svg {
|
|
33
|
+
height: --spacing(1);
|
|
34
|
+
width: --spacing(1);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&[cmdk-input] {
|
|
38
|
+
height: --spacing(3);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&[cmdk-item] {
|
|
42
|
+
padding-left: --spacing(1);
|
|
43
|
+
padding-right: --spacing(1);
|
|
44
|
+
padding-top: --spacing(1);
|
|
45
|
+
padding-bottom: --spacing(1);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[cmdk-item] svg {
|
|
49
|
+
height: --spacing(1);
|
|
50
|
+
width: --spacing(1);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.dialogContent {
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
padding: 0;
|
|
57
|
+
box-shadow: var(--command-shadow, var(--popover-shadow));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.InputContainer {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
border-width: bold;
|
|
64
|
+
color: var(--field-text);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.Input {
|
|
68
|
+
font-family: var(--field-font-family);
|
|
69
|
+
display: flex;
|
|
70
|
+
color: var(--field-text);
|
|
71
|
+
height: var(--field-height-md);
|
|
72
|
+
font-size: var(--field-font-size);
|
|
73
|
+
font-weight: var(--field-font-weight);
|
|
74
|
+
background-color: var(--field-bg);
|
|
75
|
+
transition: var(--transition-normal);
|
|
76
|
+
border: 0;
|
|
77
|
+
outline: none;
|
|
78
|
+
|
|
79
|
+
&:focus {
|
|
80
|
+
outline: none;
|
|
81
|
+
border: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.Icon {
|
|
86
|
+
margin: 0 --spacing(2);
|
|
87
|
+
height: --spacing(4);
|
|
88
|
+
width: --spacing(4);
|
|
89
|
+
flex-shrink: 0;
|
|
90
|
+
opacity: 0.5;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.list {
|
|
94
|
+
max-height: var(--command-max-height, 300px);
|
|
95
|
+
overflow-y: auto;
|
|
96
|
+
overflow-x: hidden;
|
|
97
|
+
padding: --spacing(3);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.Empty {
|
|
101
|
+
padding: --spacing(4) 0;
|
|
102
|
+
text-align: center;
|
|
103
|
+
font-family: var(--typography-font-family);
|
|
104
|
+
font-size: var(--typography-small-size);
|
|
105
|
+
line-height: var(--typography-line-height-none);
|
|
106
|
+
color: var(--command-text, var(--popover-text));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.Group {
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
div[cmdk-group-heading] {
|
|
114
|
+
padding: --spacing(2);
|
|
115
|
+
font-weight: var(--typography-font-weight);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.separator {
|
|
119
|
+
margin: --spacing(2) 0;
|
|
120
|
+
height: auto;
|
|
121
|
+
background-clip: border-box;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.Item {
|
|
125
|
+
position: relative;
|
|
126
|
+
display: flex;
|
|
127
|
+
cursor: default;
|
|
128
|
+
user-select: none;
|
|
129
|
+
align-items: center;
|
|
130
|
+
border-radius: var(--list-item-radius);
|
|
131
|
+
outline: none;
|
|
132
|
+
font-family: var(--list-item-font-family);
|
|
133
|
+
font-size: var(--list-item-font-size);
|
|
134
|
+
line-height: var(--list-item-line-height);
|
|
135
|
+
color: var(--list-item-text);
|
|
136
|
+
padding: var(--list-item-padding-y) var(--list-item-padding-x);
|
|
137
|
+
|
|
138
|
+
&[aria-selected='true'] {
|
|
139
|
+
background-color: var(--list-item-bg-active);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&[data-disabled='true'] {
|
|
143
|
+
pointer-events: none;
|
|
144
|
+
opacity: 0.5;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.shortcut {
|
|
149
|
+
margin-left: auto;
|
|
150
|
+
font-size: var(--command-shortcut-font-size, var(--text-sm));
|
|
151
|
+
letter-spacing: var(--letter-spacing-wide);
|
|
152
|
+
color: var(--command-shortcut-text, var(--text-auxiliary));
|
|
153
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
3
|
+
declare const Group: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const Sub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
5
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const Root: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuProps & React.RefAttributes<never>>;
|
|
7
|
+
declare const Trigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
declare const SubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
11
|
+
inset?: boolean;
|
|
12
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const Content: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const Item: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const CheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const RadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const Shortcut: {
|
|
23
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
24
|
+
displayname: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const ContextMenu: {
|
|
27
|
+
Root: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuProps & React.RefAttributes<never>>;
|
|
28
|
+
Trigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
29
|
+
Content: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
Item: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
31
|
+
inset?: boolean;
|
|
32
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
CheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
RadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
Label: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
36
|
+
inset?: boolean;
|
|
37
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
Separator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
SubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
40
|
+
inset?: boolean;
|
|
41
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
SubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
Group: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
Sub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
45
|
+
RadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
46
|
+
Shortcut: {
|
|
47
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): React.JSX.Element;
|
|
48
|
+
displayname: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export { Root, Trigger, Content, Item, CheckboxItem, RadioItem, Label, Separator, SubTrigger, SubContent, Group, Sub, RadioGroup, Shortcut, };
|