entasis 0.4.0 → 0.5.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/README.md +1 -0
- package/dist/attachments/spinnerOverlay.theme.d.ts +2 -36
- package/dist/components/AIAskUserQuestion/aiAskUserQuestion.theme.d.ts +2 -30
- package/dist/components/AIChat/aiChat.theme.d.ts +2 -14
- package/dist/components/AIComposer/aiComposer.theme.d.ts +2 -50
- package/dist/components/AIContext/aiContext.theme.d.ts +2 -37
- package/dist/components/AIConversation/aiConversation.theme.d.ts +2 -4
- package/dist/components/AIFilePreview/aiFilePreview.theme.d.ts +2 -17
- package/dist/components/AIMarker/aiMarker.theme.d.ts +2 -18
- package/dist/components/AIMessage/aiMessage.theme.d.ts +2 -72
- package/dist/components/AIMessageActions/aiMessageActions.theme.d.ts +2 -29
- package/dist/components/AIModelSelector/aiModelSelector.theme.d.ts +2 -25
- package/dist/components/AIReasoning/aiReasoning.theme.d.ts +2 -9
- package/dist/components/AISuggestion/aiSuggestion.theme.d.ts +2 -6
- package/dist/components/AIThread/aiThread.theme.d.ts +2 -35
- package/dist/components/AIThreadToc/aiThreadToc.theme.d.ts +2 -44
- package/dist/components/AITool/aiTool.mcp.d.ts +1 -1
- package/dist/components/AITool/aiTool.mcp.js +1 -1
- package/dist/components/AITool/aiTool.theme.d.ts +2 -170
- package/dist/components/AITool/aiTool.theme.js +14 -12
- package/dist/components/Accordion/accordion.theme.d.ts +2 -135
- package/dist/components/Alert/alert.theme.d.ts +2 -88
- package/dist/components/AppShell/appShell.theme.d.ts +2 -34
- package/dist/components/AspectRatio/aspectRatio.theme.d.ts +2 -5
- package/dist/components/AudioPlayer/audioPlayer.theme.d.ts +2 -179
- package/dist/components/Avatar/avatar.theme.d.ts +2 -38
- package/dist/components/Avatar/avatarGroup.theme.d.ts +2 -17
- package/dist/components/Breadcrumbs/breadcrumbs.theme.d.ts +2 -33
- package/dist/components/Button/Button.svelte +15 -13
- package/dist/components/Button/button.theme.d.ts +2 -55
- package/dist/components/ButtonGroup/buttonGroup.theme.d.ts +2 -4
- package/dist/components/Card/card.theme.d.ts +2 -119
- package/dist/components/Carousel/carousel.theme.d.ts +2 -73
- package/dist/components/Chart/chart.theme.d.ts +2 -24
- package/dist/components/Chip/chip.theme.d.ts +2 -56
- package/dist/components/Code/code.theme.d.ts +2 -9
- package/dist/components/Collapsible/collapsible.theme.d.ts +2 -44
- package/dist/components/Command/command.theme.d.ts +2 -103
- package/dist/components/Confirmation/confirmation.theme.d.ts +2 -10
- package/dist/components/ContextMenu/contextMenu.theme.d.ts +2 -10
- package/dist/components/DataTable/dataTable.theme.d.ts +2 -160
- package/dist/components/Dialog/Dialog.svelte +16 -0
- package/dist/components/Dialog/dialog.mcp.d.ts +1 -1
- package/dist/components/Dialog/dialog.mcp.js +2 -1
- package/dist/components/Dialog/dialog.props.d.ts +5 -0
- package/dist/components/Dialog/dialog.theme.d.ts +2 -137
- package/dist/components/Dialog/dialog.theme.js +12 -8
- package/dist/components/Diff/diff.theme.d.ts +2 -6
- package/dist/components/DocumentViewer/documentViewer.theme.d.ts +2 -87
- package/dist/components/Empty/empty.theme.d.ts +2 -71
- package/dist/components/EventCalendar/eventCalendar.theme.d.ts +2 -3171
- package/dist/components/FloatingWindow/floatingWindow.theme.d.ts +2 -96
- package/dist/components/Form/Calendar/CalendarPrimitive.svelte.d.ts +2 -63
- package/dist/components/Form/Calendar/calendar.theme.d.ts +2 -63
- package/dist/components/Form/CheckboxesInput/checkboxesInput.theme.d.ts +2 -100
- package/dist/components/Form/ColorInput/colorInput.theme.d.ts +2 -32
- package/dist/components/Form/ColorPicker/colorPicker.theme.d.ts +2 -127
- package/dist/components/Form/Combobox/combobox.theme.d.ts +2 -50
- package/dist/components/Form/DateInput/dateInput.theme.d.ts +2 -26
- package/dist/components/Form/DateSelector/dateSelector.theme.d.ts +2 -17
- package/dist/components/Form/Field/field.theme.d.ts +2 -146
- package/dist/components/Form/File/fileInput.theme.d.ts +2 -41
- package/dist/components/Form/Form/form.theme.d.ts +2 -129
- package/dist/components/Form/KeyValueInput/keyValueInput.theme.d.ts +2 -50
- package/dist/components/Form/MultiStepForm/multiStepForm.theme.d.ts +2 -25
- package/dist/components/Form/NumberInput/numberInput.theme.d.ts +2 -25
- package/dist/components/Form/PasswordInput/passwordInput.theme.d.ts +2 -25
- package/dist/components/Form/PhoneInput/phoneInput.theme.d.ts +2 -112
- package/dist/components/Form/PinInput/pinInput.theme.d.ts +2 -38
- package/dist/components/Form/RadioInput/radioInput.theme.d.ts +2 -94
- package/dist/components/Form/Select/select.theme.d.ts +2 -71
- package/dist/components/Form/Slider/slider.theme.d.ts +2 -266
- package/dist/components/Form/Switch/switch.theme.d.ts +2 -40
- package/dist/components/Form/TagGroup/tagGroup.theme.d.ts +2 -19
- package/dist/components/Form/TagsInput/tagsInput.theme.d.ts +2 -53
- package/dist/components/Form/TextArea/textArea.theme.d.ts +2 -25
- package/dist/components/Form/TextInput/textInput.theme.d.ts +2 -25
- package/dist/components/Form/TimeInput/timeInput.theme.d.ts +2 -47
- package/dist/components/Form/VoiceInput/voiceInput.theme.d.ts +2 -155
- package/dist/components/GanttChart/ganttChart.theme.d.ts +2 -2478
- package/dist/components/Globe/globe.theme.d.ts +2 -13
- package/dist/components/Grid/grid.theme.d.ts +2 -18
- package/dist/components/Grid/gridSpan.theme.d.ts +2 -4
- package/dist/components/Heading/heading.theme.d.ts +2 -41
- package/dist/components/Hitbox/hitbox.theme.d.ts +2 -10
- package/dist/components/HoverCard/hoverCard.theme.d.ts +11 -27
- package/dist/components/HoverCard/hoverCard.theme.js +9 -4
- package/dist/components/ImageGallery/imageGallery.theme.d.ts +2 -6
- package/dist/components/ImageZoom/imageZoom.theme.d.ts +2 -16
- package/dist/components/Kanban/kanban.theme.d.ts +2 -60
- package/dist/components/Kbd/kbd.theme.d.ts +2 -33
- package/dist/components/Layout/layoutSpacing.d.ts +1 -1
- package/dist/components/LinkPreview/linkPreview.theme.d.ts +2 -58
- package/dist/components/Map/map.theme.d.ts +2 -14
- package/dist/components/Markdown/markdown.theme.d.ts +2 -10
- package/dist/components/Marquee/marquee.theme.d.ts +2 -37
- package/dist/components/MediaVolume/mediaVolumeControl.theme.d.ts +2 -22
- package/dist/components/Menu/menu.theme.d.ts +2 -12
- package/dist/components/MenuBar/menuBar.theme.d.ts +2 -16
- package/dist/components/MenuOption/menuOption.theme.d.ts +2 -75
- package/dist/components/Mermaid/mermaid.theme.d.ts +2 -15
- package/dist/components/MetadataList/metadataList.theme.d.ts +2 -97
- package/dist/components/Meter/meter.theme.d.ts +2 -111
- package/dist/components/MiniCalendar/miniCalendar.theme.d.ts +2 -71
- package/dist/components/NetworkIndicator/networkIndicator.theme.d.ts +2 -41
- package/dist/components/Overlay/overlay.theme.d.ts +2 -92
- package/dist/components/PageShell/pageShell.theme.d.ts +2 -36
- package/dist/components/Pagination/pagination.theme.d.ts +2 -108
- package/dist/components/Popover/popover.theme.d.ts +2 -40
- package/dist/components/PopupMenu/popupMenu.theme.d.ts +2 -4
- package/dist/components/ProgressCircle/progressCircle.theme.d.ts +2 -22
- package/dist/components/QRCode/qrCode.theme.d.ts +2 -19
- package/dist/components/Rating/rating.theme.d.ts +2 -37
- package/dist/components/Resizable/resizable.theme.d.ts +2 -65
- package/dist/components/RichTextInput/richTextInput.theme.d.ts +2 -167
- package/dist/components/ScrollArea/scrollArea.theme.d.ts +2 -15
- package/dist/components/SegmentedControl/segmentedControl.theme.d.ts +2 -76
- package/dist/components/SelectionMenu/selectionMenu.theme.d.ts +2 -5
- package/dist/components/Separator/separator.theme.d.ts +2 -33
- package/dist/components/Sidebar/SidebarAction.svelte +2 -2
- package/dist/components/Sidebar/SidebarActivityBar.svelte +3 -3
- package/dist/components/Sidebar/SidebarGroup.svelte +6 -6
- package/dist/components/Sidebar/SidebarMenuButton.svelte +15 -18
- package/dist/components/Sidebar/SidebarMenuItem.svelte +15 -21
- package/dist/components/Sidebar/SidebarMenuSubItem.svelte +5 -6
- package/dist/components/Sidebar/SidebarPanel.svelte +3 -6
- package/dist/components/Sidebar/SidebarTreeNode.svelte +2 -2
- package/dist/components/Sidebar/sidebar.theme.d.ts +86 -540
- package/dist/components/Sidebar/sidebar.theme.js +69 -67
- package/dist/components/Skeleton/skeleton.theme.d.ts +2 -14
- package/dist/components/SortableList/sortableList.theme.d.ts +2 -43
- package/dist/components/Spinner/spinner.theme.d.ts +2 -41
- package/dist/components/SpinnerText/spinnerText.theme.d.ts +2 -49
- package/dist/components/Stack/stack.theme.d.ts +2 -12
- package/dist/components/Stat/stat.theme.d.ts +2 -132
- package/dist/components/Stepper/stepper.theme.d.ts +2 -22
- package/dist/components/Tabbar/tabbar.theme.d.ts +2 -110
- package/dist/components/Table/table.theme.d.ts +2 -42
- package/dist/components/TableOfContents/tableOfContents.theme.d.ts +2 -28
- package/dist/components/Tabs/tabs.theme.d.ts +2 -20
- package/dist/components/Theme/Theme.svelte +4 -4
- package/dist/components/Theme/theme.designTokens.d.ts +10 -0
- package/dist/components/Theme/theme.designTokens.js +14 -1
- package/dist/components/Theme/theme.state.svelte.js +3 -3
- package/dist/components/Timeline/timeline.theme.d.ts +2 -226
- package/dist/components/Toast/toast.theme.d.ts +2 -236
- package/dist/components/ToggleButton/toggleButton.theme.d.ts +2 -57
- package/dist/components/ToggleButtonGroup/toggleButtonGroup.theme.d.ts +2 -9
- package/dist/components/ToggleMenu/toggleMenu.theme.d.ts +2 -7
- package/dist/components/Tooltip/tooltip.theme.d.ts +2 -25
- package/dist/components/Tree/tree.theme.d.ts +2 -7
- package/dist/components/VideoPlayer/videoPlayer.theme.d.ts +2 -145
- package/dist/generated/componentContract.d.ts +1 -1
- package/dist/generated/componentContract.js +2 -0
- package/dist/generated/componentMcpRegistry.d.ts +3 -3
- package/dist/tailwind/colors.js +7 -1
- package/dist/tailwind/spacing.d.ts +13 -0
- package/dist/tailwind/spacing.js +5 -2
- package/dist/utils/cva/cva.mcp.d.ts +1 -1
- package/dist/utils/cva/cva.mcp.js +1 -1
- package/dist/utils/cva/index.d.ts +1 -1
- package/dist/utils/cva/theme.d.ts +36 -1
- package/dist/utils/cva/theme.js +25 -2
- package/package.json +2 -2
|
@@ -126,7 +126,7 @@ const defaultGroupLabel = cva({
|
|
|
126
126
|
true: 'state-layer hover:text-neutral focus-visible:ring-2 focus-visible:ring-focus/50',
|
|
127
127
|
false: null
|
|
128
128
|
},
|
|
129
|
-
|
|
129
|
+
size: {
|
|
130
130
|
small: 'h-control-sm text-xs group-data-[collapsible=icon]:-mt-layout-md [&>svg]:size-icon-sm',
|
|
131
131
|
normal: 'h-control-md text-sm group-data-[collapsible=icon]:-mt-layout-lg [&>svg]:size-icon-md',
|
|
132
132
|
large: 'h-control-lg text-sm group-data-[collapsible=icon]:-mt-layout-lg [&>svg]:size-icon-lg'
|
|
@@ -139,7 +139,7 @@ const defaultGroupLabel = cva({
|
|
|
139
139
|
},
|
|
140
140
|
defaultVariants: {
|
|
141
141
|
interactive: false,
|
|
142
|
-
|
|
142
|
+
size: 'normal',
|
|
143
143
|
density: 'normal'
|
|
144
144
|
}
|
|
145
145
|
});
|
|
@@ -148,7 +148,7 @@ const defaultGroupLabel = cva({
|
|
|
148
148
|
const defaultGroupAction = cva({
|
|
149
149
|
base: 'absolute flex items-center gap-micro group-data-[collapsible=icon]:hidden',
|
|
150
150
|
variants: {
|
|
151
|
-
|
|
151
|
+
size: {
|
|
152
152
|
// Centred on the label row's own height token, then pulled up by half its box, so the
|
|
153
153
|
// action stays on the label's midline whatever the spacing or control scale is.
|
|
154
154
|
small: 'top-[calc(var(--sidebar-group-padding)+var(--control-height-sm)/2)] -translate-y-1/2',
|
|
@@ -171,7 +171,7 @@ const defaultGroupAction = cva({
|
|
|
171
171
|
{ density: 'comfortable', hasToggle: true, class: 'right-12' }
|
|
172
172
|
],
|
|
173
173
|
defaultVariants: {
|
|
174
|
-
|
|
174
|
+
size: 'normal',
|
|
175
175
|
density: 'normal',
|
|
176
176
|
hasToggle: false
|
|
177
177
|
}
|
|
@@ -197,7 +197,7 @@ const defaultMenuButton = cva({
|
|
|
197
197
|
default: '',
|
|
198
198
|
outline: 'border border-neutral-muted bg-surface'
|
|
199
199
|
},
|
|
200
|
-
|
|
200
|
+
size: {
|
|
201
201
|
small: 'text-xs leading-4 [&_svg]:size-icon-sm',
|
|
202
202
|
normal: 'text-sm leading-5 [&_svg]:size-icon-md',
|
|
203
203
|
large: 'text-base leading-6 [&_svg]:size-icon-lg'
|
|
@@ -207,29 +207,30 @@ const defaultMenuButton = cva({
|
|
|
207
207
|
normal: 'gap-md px-md',
|
|
208
208
|
comfortable: 'gap-md px-md'
|
|
209
209
|
},
|
|
210
|
-
size
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
// itemSize is the row's own scale (a menu entry's `size`); `size` is the Sidebar's.
|
|
211
|
+
itemSize: {
|
|
212
|
+
small: 'text-xs',
|
|
213
|
+
normal: '',
|
|
214
|
+
large: ''
|
|
214
215
|
}
|
|
215
216
|
},
|
|
216
217
|
compoundVariants: [
|
|
217
|
-
{
|
|
218
|
-
{
|
|
219
|
-
{
|
|
220
|
-
{
|
|
221
|
-
{
|
|
222
|
-
{
|
|
223
|
-
{
|
|
224
|
-
{
|
|
225
|
-
{
|
|
218
|
+
{ size: 'small', itemSize: 'small', class: 'h-control-sm' },
|
|
219
|
+
{ size: 'small', itemSize: 'normal', class: 'h-control-md' },
|
|
220
|
+
{ size: 'small', itemSize: 'large', class: 'h-row-lg' },
|
|
221
|
+
{ size: 'normal', itemSize: 'small', class: 'h-control-md' },
|
|
222
|
+
{ size: 'normal', itemSize: 'normal', class: 'h-control-lg' },
|
|
223
|
+
{ size: 'normal', itemSize: 'large', class: 'h-14' },
|
|
224
|
+
{ size: 'large', itemSize: 'small', class: 'h-control-lg' },
|
|
225
|
+
{ size: 'large', itemSize: 'normal', class: 'h-row-md' },
|
|
226
|
+
{ size: 'large', itemSize: 'large', class: 'h-16' }
|
|
226
227
|
],
|
|
227
228
|
defaultVariants: {
|
|
228
229
|
activeVariant: 'soft',
|
|
229
230
|
variant: 'default',
|
|
230
|
-
|
|
231
|
+
size: 'normal',
|
|
231
232
|
density: 'normal',
|
|
232
|
-
|
|
233
|
+
itemSize: 'normal'
|
|
233
234
|
}
|
|
234
235
|
});
|
|
235
236
|
const defaultMenuLabel = cva({
|
|
@@ -238,27 +239,27 @@ const defaultMenuLabel = cva({
|
|
|
238
239
|
const defaultMenuSecondary = cva({
|
|
239
240
|
base: 'truncate text-neutral/70',
|
|
240
241
|
variants: {
|
|
241
|
-
|
|
242
|
+
size: {
|
|
242
243
|
small: 'text-xs',
|
|
243
244
|
normal: 'text-xs',
|
|
244
245
|
large: 'text-sm'
|
|
245
246
|
}
|
|
246
247
|
},
|
|
247
248
|
defaultVariants: {
|
|
248
|
-
|
|
249
|
+
size: 'normal'
|
|
249
250
|
}
|
|
250
251
|
});
|
|
251
252
|
const defaultMenuTrailing = cva({
|
|
252
253
|
base: 'ml-auto shrink-0 opacity-100 transition-[opacity,transform] duration-normal ease-standard group-data-[collapsible=icon]:pointer-events-none group-data-[collapsible=icon]:translate-x-1 group-data-[collapsible=icon]:opacity-0',
|
|
253
254
|
variants: {
|
|
254
|
-
|
|
255
|
+
size: {
|
|
255
256
|
small: '[&>svg]:size-icon-sm',
|
|
256
257
|
normal: '[&>svg]:size-icon-md',
|
|
257
258
|
large: '[&>svg]:size-icon-lg'
|
|
258
259
|
}
|
|
259
260
|
},
|
|
260
261
|
defaultVariants: {
|
|
261
|
-
|
|
262
|
+
size: 'normal'
|
|
262
263
|
}
|
|
263
264
|
});
|
|
264
265
|
const defaultSubMenu = cva({
|
|
@@ -291,7 +292,7 @@ const defaultSubButton = cva({
|
|
|
291
292
|
base: 'state-layer text-neutral/70 hover:text-neutral flex min-w-0 -translate-x-px items-center overflow-hidden rounded-sm outline-none transition-[background,color,height,padding] duration-normal ease-linear focus-visible:ring-2 focus-visible:ring-focus/50 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:shrink-0',
|
|
292
293
|
variants: {
|
|
293
294
|
activeVariant: activeVariants,
|
|
294
|
-
|
|
295
|
+
size: {
|
|
295
296
|
small: 'h-6 text-xs leading-4 [&>svg]:size-icon-sm',
|
|
296
297
|
normal: 'h-control-sm text-sm leading-5 [&>svg]:size-icon-md',
|
|
297
298
|
large: 'h-control-md text-base leading-6 [&>svg]:size-icon-lg'
|
|
@@ -301,22 +302,23 @@ const defaultSubButton = cva({
|
|
|
301
302
|
normal: 'gap-md px-lg',
|
|
302
303
|
comfortable: 'gap-md px-lg'
|
|
303
304
|
},
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
itemSize: {
|
|
306
|
+
small: 'text-xs',
|
|
307
|
+
normal: '',
|
|
308
|
+
large: ''
|
|
307
309
|
}
|
|
308
310
|
},
|
|
309
311
|
defaultVariants: {
|
|
310
312
|
activeVariant: 'soft',
|
|
311
|
-
|
|
313
|
+
size: 'normal',
|
|
312
314
|
density: 'normal',
|
|
313
|
-
|
|
315
|
+
itemSize: 'normal'
|
|
314
316
|
}
|
|
315
317
|
});
|
|
316
318
|
const defaultMenuAction = cva({
|
|
317
319
|
base: 'state-layer text-neutral hover:text-neutral peer-hover/menu-button:text-neutral absolute top-1/2 flex aspect-square -translate-y-1/2 items-center justify-center rounded-sm p-0 opacity-100 outline-none transition group-data-[collapsible=icon]:hidden focus-visible:ring-2 focus-visible:ring-focus/50 md:opacity-0 group-focus-within/menu-row:opacity-100 group-hover/menu-row:opacity-100 has-[[aria-expanded=true]]:opacity-100 [&>svg]:shrink-0',
|
|
318
320
|
variants: {
|
|
319
|
-
|
|
321
|
+
size: {
|
|
320
322
|
small: 'size-4.5 [&>svg]:size-icon-sm',
|
|
321
323
|
normal: 'size-5 [&>svg]:size-icon-md',
|
|
322
324
|
large: 'size-6 [&>svg]:size-icon-lg'
|
|
@@ -328,7 +330,7 @@ const defaultMenuAction = cva({
|
|
|
328
330
|
}
|
|
329
331
|
},
|
|
330
332
|
defaultVariants: {
|
|
331
|
-
|
|
333
|
+
size: 'normal',
|
|
332
334
|
density: 'normal'
|
|
333
335
|
}
|
|
334
336
|
});
|
|
@@ -337,14 +339,14 @@ const defaultMenuAction = cva({
|
|
|
337
339
|
const defaultActionSlot = cva({
|
|
338
340
|
base: 'state-layer text-neutral hover:text-neutral flex aspect-square shrink-0 items-center justify-center rounded-sm p-0 outline-none transition focus-visible:ring-2 focus-visible:ring-focus/50 [&>svg]:shrink-0',
|
|
339
341
|
variants: {
|
|
340
|
-
|
|
342
|
+
size: {
|
|
341
343
|
small: 'h-control-sm [&>svg]:size-icon-sm',
|
|
342
344
|
normal: 'h-control-md [&>svg]:size-icon-md',
|
|
343
345
|
large: 'h-control-lg [&>svg]:size-icon-lg'
|
|
344
346
|
}
|
|
345
347
|
},
|
|
346
348
|
defaultVariants: {
|
|
347
|
-
|
|
349
|
+
size: 'normal'
|
|
348
350
|
}
|
|
349
351
|
});
|
|
350
352
|
// The leading icon of a menu entry when it carries a role tint or a tile. The tint is the row's
|
|
@@ -356,20 +358,20 @@ const defaultMenuIcon = cva({
|
|
|
356
358
|
bare: 'text-color',
|
|
357
359
|
tile: 'bg-color-muted text-color-muted-readable rounded-sm'
|
|
358
360
|
},
|
|
359
|
-
|
|
361
|
+
size: {
|
|
360
362
|
small: '',
|
|
361
363
|
normal: '',
|
|
362
364
|
large: ''
|
|
363
365
|
}
|
|
364
366
|
},
|
|
365
367
|
compoundVariants: [
|
|
366
|
-
{ variant: 'tile',
|
|
367
|
-
{ variant: 'tile',
|
|
368
|
-
{ variant: 'tile',
|
|
368
|
+
{ variant: 'tile', size: 'small', class: 'size-icon-lg [&_svg]:size-icon-xs' },
|
|
369
|
+
{ variant: 'tile', size: 'normal', class: 'size-icon-xl [&_svg]:size-icon-sm' },
|
|
370
|
+
{ variant: 'tile', size: 'large', class: 'size-icon-xl [&_svg]:size-icon-md' }
|
|
369
371
|
],
|
|
370
372
|
defaultVariants: {
|
|
371
373
|
variant: 'bare',
|
|
372
|
-
|
|
374
|
+
size: 'normal'
|
|
373
375
|
}
|
|
374
376
|
});
|
|
375
377
|
// A large menu row that carries its own trailing action: the row and the action are siblings, so
|
|
@@ -380,20 +382,20 @@ const defaultButtonRow = cva({
|
|
|
380
382
|
const defaultActionTrigger = cva({
|
|
381
383
|
base: 'flex size-full items-center justify-center rounded-sm bg-transparent outline-none [&>svg]:shrink-0',
|
|
382
384
|
variants: {
|
|
383
|
-
|
|
385
|
+
size: {
|
|
384
386
|
small: '[&>svg]:size-icon-sm',
|
|
385
387
|
normal: '[&>svg]:size-icon-md',
|
|
386
388
|
large: '[&>svg]:size-icon-lg'
|
|
387
389
|
}
|
|
388
390
|
},
|
|
389
391
|
defaultVariants: {
|
|
390
|
-
|
|
392
|
+
size: 'normal'
|
|
391
393
|
}
|
|
392
394
|
});
|
|
393
395
|
const defaultBadge = cva({
|
|
394
396
|
base: 'text-neutral/70 peer-hover/menu-button:text-neutral peer-data-active/menu-button:text-neutral pointer-events-none absolute top-1/2 flex -translate-y-1/2 items-center justify-center rounded-sm px-xs font-medium tabular-nums select-none group-data-[collapsible=icon]:hidden',
|
|
395
397
|
variants: {
|
|
396
|
-
|
|
398
|
+
size: {
|
|
397
399
|
small: 'h-4 min-w-4 text-xs',
|
|
398
400
|
normal: 'h-5 min-w-5 text-sm',
|
|
399
401
|
large: 'h-6 min-w-6 text-sm'
|
|
@@ -405,14 +407,14 @@ const defaultBadge = cva({
|
|
|
405
407
|
}
|
|
406
408
|
},
|
|
407
409
|
defaultVariants: {
|
|
408
|
-
|
|
410
|
+
size: 'normal',
|
|
409
411
|
density: 'normal'
|
|
410
412
|
}
|
|
411
413
|
});
|
|
412
414
|
const defaultSearchContainer = cva({
|
|
413
415
|
base: 'relative w-full opacity-100 transition-[height,margin,opacity] duration-normal ease-linear',
|
|
414
416
|
variants: {
|
|
415
|
-
|
|
417
|
+
size: {
|
|
416
418
|
small: 'h-control-md',
|
|
417
419
|
normal: 'h-control-lg',
|
|
418
420
|
large: 'h-row-md'
|
|
@@ -423,7 +425,7 @@ const defaultSearchContainer = cva({
|
|
|
423
425
|
}
|
|
424
426
|
},
|
|
425
427
|
defaultVariants: {
|
|
426
|
-
|
|
428
|
+
size: 'normal',
|
|
427
429
|
collapsed: false
|
|
428
430
|
}
|
|
429
431
|
});
|
|
@@ -432,7 +434,7 @@ const defaultSearch = cva({
|
|
|
432
434
|
variants: {
|
|
433
435
|
// The left padding clears the absolutely positioned magnifier (its `left` offset plus its
|
|
434
436
|
// box plus a gap) so the placeholder never starts on top of the icon.
|
|
435
|
-
|
|
437
|
+
size: {
|
|
436
438
|
small: 'h-control-md pl-layout-md text-xs',
|
|
437
439
|
normal: 'h-control-lg pl-layout-lg text-sm',
|
|
438
440
|
large: 'h-row-md pl-layout-xl text-base'
|
|
@@ -444,14 +446,14 @@ const defaultSearch = cva({
|
|
|
444
446
|
}
|
|
445
447
|
},
|
|
446
448
|
defaultVariants: {
|
|
447
|
-
|
|
449
|
+
size: 'normal',
|
|
448
450
|
density: 'normal'
|
|
449
451
|
}
|
|
450
452
|
});
|
|
451
453
|
const defaultSearchIcon = cva({
|
|
452
454
|
base: 'pointer-events-none absolute top-1/2 flex -translate-y-1/2 items-center justify-center text-neutral/45 select-none [&_svg]:size-full',
|
|
453
455
|
variants: {
|
|
454
|
-
|
|
456
|
+
size: {
|
|
455
457
|
small: 'size-3.5',
|
|
456
458
|
normal: 'size-4',
|
|
457
459
|
large: 'size-5'
|
|
@@ -463,7 +465,7 @@ const defaultSearchIcon = cva({
|
|
|
463
465
|
}
|
|
464
466
|
},
|
|
465
467
|
defaultVariants: {
|
|
466
|
-
|
|
468
|
+
size: 'normal',
|
|
467
469
|
density: 'normal'
|
|
468
470
|
}
|
|
469
471
|
});
|
|
@@ -671,40 +673,40 @@ const defaultMobilePanel = cva({
|
|
|
671
673
|
const defaultMedia = cva({
|
|
672
674
|
base: 'bg-neutral text-neutral-contrast flex aspect-square shrink-0 items-center justify-center rounded-sm',
|
|
673
675
|
variants: {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
676
|
+
itemSize: {
|
|
677
|
+
normal: 'text-xs',
|
|
678
|
+
large: ''
|
|
677
679
|
},
|
|
678
|
-
|
|
680
|
+
size: {
|
|
679
681
|
small: '',
|
|
680
682
|
normal: '',
|
|
681
683
|
large: ''
|
|
682
684
|
}
|
|
683
685
|
},
|
|
684
686
|
compoundVariants: [
|
|
685
|
-
{
|
|
686
|
-
{
|
|
687
|
-
{
|
|
688
|
-
{
|
|
689
|
-
{
|
|
690
|
-
{
|
|
687
|
+
{ itemSize: 'large', size: 'small', class: 'size-7 [&_svg]:size-icon-sm' },
|
|
688
|
+
{ itemSize: 'large', size: 'normal', class: 'size-8 [&_svg]:size-icon-md' },
|
|
689
|
+
{ itemSize: 'large', size: 'large', class: 'size-9 [&_svg]:size-icon-lg' },
|
|
690
|
+
{ itemSize: 'normal', size: 'small', class: 'size-4 [&_svg]:size-icon-xs' },
|
|
691
|
+
{ itemSize: 'normal', size: 'normal', class: 'size-5 [&_svg]:size-icon-xs' },
|
|
692
|
+
{ itemSize: 'normal', size: 'large', class: 'size-6 [&_svg]:size-icon-sm' }
|
|
691
693
|
],
|
|
692
694
|
defaultVariants: {
|
|
693
|
-
|
|
694
|
-
|
|
695
|
+
itemSize: 'large',
|
|
696
|
+
size: 'normal'
|
|
695
697
|
}
|
|
696
698
|
});
|
|
697
699
|
const defaultAvatar = cva({
|
|
698
700
|
base: 'bg-neutral-muted text-neutral-muted-readable flex shrink-0 items-center justify-center overflow-hidden rounded-sm font-medium',
|
|
699
701
|
variants: {
|
|
700
|
-
|
|
702
|
+
size: {
|
|
701
703
|
small: 'size-7 text-xs',
|
|
702
704
|
normal: 'size-8 text-sm',
|
|
703
705
|
large: 'size-9 text-sm'
|
|
704
706
|
}
|
|
705
707
|
},
|
|
706
708
|
defaultVariants: {
|
|
707
|
-
|
|
709
|
+
size: 'normal'
|
|
708
710
|
}
|
|
709
711
|
});
|
|
710
712
|
const defaultActivityBar = cva({
|
|
@@ -746,7 +748,7 @@ const defaultActivityBarList = cva({
|
|
|
746
748
|
const defaultActivityBarItem = cva({
|
|
747
749
|
base: 'state-layer relative flex aspect-square shrink-0 items-center justify-center rounded-md outline-none transition-[background,color] duration-normal ease-linear focus-visible:ring-2 focus-visible:ring-focus/50 data-active:bg-selected-muted data-active:text-selected-muted-readable data-active:font-medium [&_svg]:shrink-0',
|
|
748
750
|
variants: {
|
|
749
|
-
|
|
751
|
+
size: {
|
|
750
752
|
small: 'h-control-sm [&_svg]:size-icon-sm',
|
|
751
753
|
normal: 'h-control-md [&_svg]:size-icon-md',
|
|
752
754
|
large: 'h-control-lg [&_svg]:size-icon-lg'
|
|
@@ -766,7 +768,7 @@ const defaultActivityBarItem = cva({
|
|
|
766
768
|
}
|
|
767
769
|
},
|
|
768
770
|
defaultVariants: {
|
|
769
|
-
|
|
771
|
+
size: 'normal',
|
|
770
772
|
density: 'normal',
|
|
771
773
|
active: false,
|
|
772
774
|
disabled: false
|
|
@@ -775,7 +777,7 @@ const defaultActivityBarItem = cva({
|
|
|
775
777
|
const defaultActivityBarBadge = cva({
|
|
776
778
|
base: 'bg-color text-color-readable pointer-events-none absolute flex items-center justify-center rounded-full px-xs font-medium tabular-nums select-none',
|
|
777
779
|
variants: {
|
|
778
|
-
|
|
780
|
+
size: {
|
|
779
781
|
small: 'top-0 end-0 h-3.5 min-w-3.5 text-xs',
|
|
780
782
|
normal: 'top-0 end-0 h-4 min-w-4 text-xs',
|
|
781
783
|
large: 'top-0 end-0 h-4.5 min-w-4.5 text-xs'
|
|
@@ -786,7 +788,7 @@ const defaultActivityBarBadge = cva({
|
|
|
786
788
|
}
|
|
787
789
|
},
|
|
788
790
|
defaultVariants: {
|
|
789
|
-
|
|
791
|
+
size: 'normal',
|
|
790
792
|
dot: false
|
|
791
793
|
}
|
|
792
794
|
});
|
|
@@ -27,7 +27,7 @@ export declare const setSkeletonTheme: (theme: InferComponentTheme<{
|
|
|
27
27
|
};
|
|
28
28
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
29
29
|
}>) => void;
|
|
30
|
-
export declare const useSkeletonTheme: (theme
|
|
30
|
+
export declare const useSkeletonTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
|
|
31
31
|
root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
32
32
|
color: {
|
|
33
33
|
primary: string;
|
|
@@ -39,16 +39,4 @@ export declare const useSkeletonTheme: (theme?: InferComponentTheme<{
|
|
|
39
39
|
neutral: string;
|
|
40
40
|
};
|
|
41
41
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
42
|
-
}
|
|
43
|
-
root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
44
|
-
color: {
|
|
45
|
-
primary: string;
|
|
46
|
-
secondary: string;
|
|
47
|
-
danger: string;
|
|
48
|
-
success: string;
|
|
49
|
-
warning: string;
|
|
50
|
-
info: string;
|
|
51
|
-
neutral: string;
|
|
52
|
-
};
|
|
53
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
54
|
-
};
|
|
42
|
+
}>;
|
|
@@ -87,7 +87,7 @@ export declare const setSortableListTheme: (theme: InferComponentTheme<{
|
|
|
87
87
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
88
88
|
empty: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
|
|
89
89
|
}>) => void;
|
|
90
|
-
export declare const useSortableListTheme: (theme
|
|
90
|
+
export declare const useSortableListTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
|
|
91
91
|
root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
92
92
|
size: {
|
|
93
93
|
small: string;
|
|
@@ -128,45 +128,4 @@ export declare const useSortableListTheme: (theme?: InferComponentTheme<{
|
|
|
128
128
|
};
|
|
129
129
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
130
130
|
empty: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
|
|
131
|
-
}
|
|
132
|
-
root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
133
|
-
size: {
|
|
134
|
-
small: string;
|
|
135
|
-
normal: string;
|
|
136
|
-
large: string;
|
|
137
|
-
};
|
|
138
|
-
orientation: {
|
|
139
|
-
vertical: string;
|
|
140
|
-
horizontal: string;
|
|
141
|
-
grid: string;
|
|
142
|
-
};
|
|
143
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
144
|
-
item: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
145
|
-
size: {
|
|
146
|
-
small: string;
|
|
147
|
-
normal: string;
|
|
148
|
-
large: string;
|
|
149
|
-
};
|
|
150
|
-
handle: {
|
|
151
|
-
true: string;
|
|
152
|
-
false: string;
|
|
153
|
-
};
|
|
154
|
-
dragging: {
|
|
155
|
-
true: string;
|
|
156
|
-
false: string;
|
|
157
|
-
};
|
|
158
|
-
disabled: {
|
|
159
|
-
true: string;
|
|
160
|
-
false: string;
|
|
161
|
-
};
|
|
162
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
163
|
-
content: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
|
|
164
|
-
handle: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
165
|
-
size: {
|
|
166
|
-
small: string;
|
|
167
|
-
normal: string;
|
|
168
|
-
large: string;
|
|
169
|
-
};
|
|
170
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
171
|
-
empty: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
|
|
172
|
-
};
|
|
131
|
+
}>;
|
|
@@ -81,7 +81,7 @@ export declare const setSpinnerTheme: (theme: InferComponentTheme<{
|
|
|
81
81
|
};
|
|
82
82
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
83
83
|
}>) => void;
|
|
84
|
-
export declare const useSpinnerTheme: (theme
|
|
84
|
+
export declare const useSpinnerTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
|
|
85
85
|
root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
86
86
|
size: {
|
|
87
87
|
small: string;
|
|
@@ -120,43 +120,4 @@ export declare const useSpinnerTheme: (theme?: InferComponentTheme<{
|
|
|
120
120
|
large: string;
|
|
121
121
|
};
|
|
122
122
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
123
|
-
}
|
|
124
|
-
root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
125
|
-
size: {
|
|
126
|
-
small: string;
|
|
127
|
-
normal: string;
|
|
128
|
-
large: string;
|
|
129
|
-
};
|
|
130
|
-
color: {
|
|
131
|
-
primary: string;
|
|
132
|
-
secondary: string;
|
|
133
|
-
danger: string;
|
|
134
|
-
success: string;
|
|
135
|
-
warning: string;
|
|
136
|
-
info: string;
|
|
137
|
-
neutral: string;
|
|
138
|
-
};
|
|
139
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
140
|
-
indicator: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
141
|
-
size: {
|
|
142
|
-
small: string;
|
|
143
|
-
normal: string;
|
|
144
|
-
large: string;
|
|
145
|
-
};
|
|
146
|
-
variant: {
|
|
147
|
-
default: string;
|
|
148
|
-
grid: string;
|
|
149
|
-
pulse: string;
|
|
150
|
-
puff: string;
|
|
151
|
-
lines: string;
|
|
152
|
-
circles: string;
|
|
153
|
-
};
|
|
154
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
155
|
-
label: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
156
|
-
size: {
|
|
157
|
-
small: string;
|
|
158
|
-
normal: string;
|
|
159
|
-
large: string;
|
|
160
|
-
};
|
|
161
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
162
|
-
};
|
|
123
|
+
}>;
|
|
@@ -105,7 +105,7 @@ export declare const setSpinnerTextTheme: (theme: InferComponentTheme<{
|
|
|
105
105
|
};
|
|
106
106
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
107
107
|
}>) => void;
|
|
108
|
-
export declare const useSpinnerTextTheme: (theme
|
|
108
|
+
export declare const useSpinnerTextTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
|
|
109
109
|
motion: import("../../utils/motion/index.js").MotionResolver<{
|
|
110
110
|
readonly mode: {
|
|
111
111
|
readonly vertical: {};
|
|
@@ -152,54 +152,7 @@ export declare const useSpinnerTextTheme: (theme?: InferComponentTheme<{
|
|
|
152
152
|
false: null;
|
|
153
153
|
};
|
|
154
154
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
155
|
-
}
|
|
156
|
-
motion: import("../../utils/motion/index.js").MotionResolver<{
|
|
157
|
-
readonly mode: {
|
|
158
|
-
readonly vertical: {};
|
|
159
|
-
readonly reveal: {
|
|
160
|
-
readonly duration: "slower";
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
}>;
|
|
164
|
-
root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
165
|
-
size: {
|
|
166
|
-
small: string;
|
|
167
|
-
normal: string;
|
|
168
|
-
large: string;
|
|
169
|
-
};
|
|
170
|
-
color: {
|
|
171
|
-
primary: string;
|
|
172
|
-
secondary: string;
|
|
173
|
-
danger: string;
|
|
174
|
-
success: string;
|
|
175
|
-
warning: string;
|
|
176
|
-
info: string;
|
|
177
|
-
neutral: string;
|
|
178
|
-
};
|
|
179
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
180
|
-
spinner: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
181
|
-
size: {
|
|
182
|
-
small: string;
|
|
183
|
-
normal: string;
|
|
184
|
-
large: string;
|
|
185
|
-
};
|
|
186
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
187
|
-
viewport: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
188
|
-
size: {
|
|
189
|
-
small: string;
|
|
190
|
-
normal: string;
|
|
191
|
-
large: string;
|
|
192
|
-
};
|
|
193
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
194
|
-
sizer: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
|
|
195
|
-
sizerItem: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
|
|
196
|
-
message: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
197
|
-
shimmer: {
|
|
198
|
-
true: string;
|
|
199
|
-
false: null;
|
|
200
|
-
};
|
|
201
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
202
|
-
};
|
|
155
|
+
}>;
|
|
203
156
|
export declare const useSpinnerTextMotion: () => import("../../utils/motion/index.js").ComponentMotion<{
|
|
204
157
|
readonly mode: {
|
|
205
158
|
readonly vertical: {};
|
|
@@ -23,7 +23,7 @@ export declare const setStackTheme: (theme: InferComponentTheme<{
|
|
|
23
23
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
24
24
|
inner: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
|
|
25
25
|
}>) => void;
|
|
26
|
-
export declare const useStackTheme: (theme
|
|
26
|
+
export declare const useStackTheme: import("../../utils/cva/theme.js").UseComponentTheme<{
|
|
27
27
|
root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
28
28
|
paddingInline: Record<import("../Layout/layoutSpacing.js").LayoutSpacing, "px-lg" | "px-xl" | "px-md" | "px-0" | "px-xs" | "px-sm">;
|
|
29
29
|
paddingBlock: Record<import("../Layout/layoutSpacing.js").LayoutSpacing, "py-xs" | "py-sm" | "py-md" | "py-lg" | "py-0" | "py-xl">;
|
|
@@ -33,14 +33,4 @@ export declare const useStackTheme: (theme?: InferComponentTheme<{
|
|
|
33
33
|
};
|
|
34
34
|
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
35
35
|
inner: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
|
|
36
|
-
}
|
|
37
|
-
root: (props?: (import("../../utils/cva/types.js").CVAVariantSchema<{
|
|
38
|
-
paddingInline: Record<import("../Layout/layoutSpacing.js").LayoutSpacing, "px-lg" | "px-xl" | "px-md" | "px-0" | "px-xs" | "px-sm">;
|
|
39
|
-
paddingBlock: Record<import("../Layout/layoutSpacing.js").LayoutSpacing, "py-xs" | "py-sm" | "py-md" | "py-lg" | "py-0" | "py-xl">;
|
|
40
|
-
scrollable: {
|
|
41
|
-
true: string;
|
|
42
|
-
false: null;
|
|
43
|
-
};
|
|
44
|
-
}> & import("../../utils/cva/types.js").CVAClassProp) | undefined) => string;
|
|
45
|
-
inner: (props?: import("../../utils/cva/types.js").CVAClassProp | undefined) => string;
|
|
46
|
-
};
|
|
36
|
+
}>;
|