@widgetic/design-system 0.5.40 → 0.5.42
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 +73 -0
- package/dist/components/ContentRefreshOverlay.svelte +103 -0
- package/dist/components/ContentRefreshOverlay.svelte.d.ts +18 -0
- package/dist/components/EmptyState.svelte +6 -2
- package/dist/components/chat/Composer.svelte +380 -19
- package/dist/components/chat/Composer.svelte.d.ts +88 -1
- package/dist/components/chat/PlanCard.svelte +218 -88
- package/dist/components/chat/PlanCard.svelte.d.ts +11 -0
- package/dist/components/chat/QuestionCard.svelte +180 -70
- package/dist/components/chat/QuestionCard.svelte.d.ts +28 -2
- package/dist/components/chat/QuestionCardSummary.svelte +96 -0
- package/dist/components/chat/QuestionCardSummary.svelte.d.ts +20 -0
- package/dist/components/chat/QueueCard.svelte +185 -0
- package/dist/components/chat/QueueCard.svelte.d.ts +40 -0
- package/dist/components/chat/composerLogic.d.ts +31 -0
- package/dist/components/chat/composerLogic.js +37 -0
- package/dist/components/chat/composerReferences.d.ts +28 -0
- package/dist/components/chat/composerReferences.js +23 -0
- package/dist/components/chat/index.d.ts +8 -3
- package/dist/components/chat/index.js +10 -2
- package/dist/components/chat/questionCardLogic.d.ts +40 -3
- package/dist/components/chat/questionCardLogic.js +54 -3
- package/dist/components/chat/queueCardLogic.d.ts +7 -0
- package/dist/components/chat/queueCardLogic.js +5 -0
- package/dist/components/creator/CreatorBar.svelte +54 -1
- package/dist/components/creator/CreatorBar.svelte.d.ts +5 -0
- package/dist/components/creator/index.d.ts +1 -2
- package/dist/components/creator/index.js +2 -0
- package/dist/components/index.d.ts +8 -7
- package/dist/components/index.js +8 -6
- package/dist/components/modals/BaseModal.svelte +23 -4
- package/dist/components/modals/BaseModal.svelte.d.ts +5 -0
- package/dist/components/navigation/breadcrumbSlideIn.d.ts +6 -2
- package/dist/components/navigation/breadcrumbSlideIn.js +6 -6
- package/dist/components/search-input/SearchInput.svelte +317 -14
- package/dist/components/search-input/SearchInput.svelte.d.ts +3 -0
- package/dist/components/search-input/index.d.ts +1 -0
- package/dist/components/search-input/index.js +1 -0
- package/dist/components/search-input/index2.d.ts +4 -0
- package/dist/components/search-input/recentSearches.d.ts +16 -0
- package/dist/components/search-input/recentSearches.js +141 -0
- package/dist/components/shell/NavRow.svelte +53 -10
- package/dist/components/shell/NavRow.svelte.d.ts +23 -2
- package/dist/components/shell/NotificationRow.svelte +3 -2
- package/dist/components/shell/ProfileRow.svelte +6 -4
- package/dist/components/shell/ProfileRow.svelte.d.ts +2 -2
- package/dist/components/shell/SettingsDialog.svelte +23 -1
- package/dist/components/shell/WidgetRow.svelte +4 -3
- package/dist/components/shell/WidgetRow.svelte.d.ts +2 -2
- package/dist/components/toast/ToasterModal.svelte +8 -3
- package/dist/components/toast/ToasterModal.svelte.d.ts +2 -0
- package/dist/components/ui/accordion/accordion-trigger.svelte +19 -0
- package/dist/components/ui/button/button.svelte +4 -2
- package/dist/components/ui/chip/chip.svelte +39 -1
- package/dist/components/ui/chip/chip.svelte.d.ts +8 -0
- package/dist/components/ui/chip/chipProgress.d.ts +14 -0
- package/dist/components/ui/chip/chipProgress.js +21 -0
- package/dist/components/ui/dialog/dialog-content.svelte +24 -2
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +2 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +2 -1
- package/dist/components/ui/hover-card/hover-card-content.svelte +2 -1
- package/dist/components/ui/icon-button/icon-button.svelte +2 -0
- package/dist/components/ui/icon-button/icon-button.svelte.d.ts +5 -0
- package/dist/components/ui/number-controls/index.d.ts +2 -0
- package/dist/components/ui/number-controls/index.js +2 -0
- package/dist/components/ui/number-controls/number-controls.svelte +530 -0
- package/dist/components/ui/number-controls/number-controls.svelte.d.ts +46 -0
- package/dist/components/ui/number-controls/numberControlsSteps.d.ts +17 -0
- package/dist/components/ui/number-controls/numberControlsSteps.js +23 -0
- package/dist/components/ui/number-controls/numberControlsValueArea.d.ts +29 -0
- package/dist/components/ui/number-controls/numberControlsValueArea.js +51 -0
- package/dist/components/ui/popover/popover-content.svelte +2 -1
- package/dist/components/ui/select/select-content.svelte +2 -1
- package/dist/components/ui/text-flip/index.d.ts +1 -0
- package/dist/components/ui/text-flip/index.js +1 -0
- package/dist/components/ui/text-flip/text-flip.svelte +103 -0
- package/dist/components/ui/text-flip/text-flip.svelte.d.ts +15 -0
- package/dist/components/ui/text-flip/textFlipLogic.d.ts +49 -0
- package/dist/components/ui/text-flip/textFlipLogic.js +151 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte +1 -1
- package/dist/inline-completion/completionAnswer.d.ts +11 -0
- package/dist/inline-completion/completionAnswer.js +49 -0
- package/dist/inline-completion/completionCache.d.ts +24 -0
- package/dist/inline-completion/completionCache.js +47 -0
- package/dist/inline-completion/completionController.d.ts +61 -0
- package/dist/inline-completion/completionController.js +280 -0
- package/dist/inline-completion/completionKeys.d.ts +21 -0
- package/dist/inline-completion/completionKeys.js +19 -0
- package/dist/inline-completion/completionText.d.ts +53 -0
- package/dist/inline-completion/completionText.js +79 -0
- package/dist/inline-completion/completionTypes.d.ts +71 -0
- package/dist/inline-completion/completionTypes.js +5 -0
- package/dist/inline-completion/gatewayCompletion.d.ts +37 -0
- package/dist/inline-completion/gatewayCompletion.js +77 -0
- package/dist/inline-completion/ghostTap.d.ts +19 -0
- package/dist/inline-completion/ghostTap.js +20 -0
- package/dist/inline-completion/hintMemory.d.ts +43 -0
- package/dist/inline-completion/hintMemory.js +90 -0
- package/dist/inline-completion/httpSource.d.ts +40 -0
- package/dist/inline-completion/httpSource.js +149 -0
- package/dist/inline-completion/index.d.ts +30 -0
- package/dist/inline-completion/index.js +20 -0
- package/dist/inline-completion/inlineCompletionAction.d.ts +54 -0
- package/dist/inline-completion/inlineCompletionAction.js +310 -0
- package/dist/inline-completion/outcomeReporter.d.ts +49 -0
- package/dist/inline-completion/outcomeReporter.js +139 -0
- package/dist/inline-completion/promiseLike.d.ts +9 -0
- package/dist/inline-completion/promiseLike.js +9 -0
- package/dist/prompt-references/ReferenceMenu.svelte +344 -0
- package/dist/prompt-references/ReferenceMenu.svelte.d.ts +26 -0
- package/dist/prompt-references/index.d.ts +27 -0
- package/dist/prompt-references/index.js +20 -0
- package/dist/prompt-references/neutralizingSource.d.ts +21 -0
- package/dist/prompt-references/neutralizingSource.js +29 -0
- package/dist/prompt-references/promptReferences.d.ts +28 -0
- package/dist/prompt-references/promptReferences.js +766 -0
- package/dist/prompt-references/referenceBadge.d.ts +61 -0
- package/dist/prompt-references/referenceBadge.js +82 -0
- package/dist/prompt-references/referenceBadgePainter.d.ts +31 -0
- package/dist/prompt-references/referenceBadgePainter.js +106 -0
- package/dist/prompt-references/referenceEditing.d.ts +60 -0
- package/dist/prompt-references/referenceEditing.js +135 -0
- package/dist/prompt-references/referenceLabels.d.ts +56 -0
- package/dist/prompt-references/referenceLabels.js +215 -0
- package/dist/prompt-references/referenceMeasure.d.ts +12 -0
- package/dist/prompt-references/referenceMeasure.js +63 -0
- package/dist/prompt-references/referenceMenuHost.svelte.d.ts +29 -0
- package/dist/prompt-references/referenceMenuHost.svelte.js +43 -0
- package/dist/prompt-references/referenceMenuKeys.d.ts +26 -0
- package/dist/prompt-references/referenceMenuKeys.js +49 -0
- package/dist/prompt-references/referenceMenuPlacement.d.ts +63 -0
- package/dist/prompt-references/referenceMenuPlacement.js +66 -0
- package/dist/prompt-references/referenceTokens.d.ts +175 -0
- package/dist/prompt-references/referenceTokens.js +332 -0
- package/dist/prompt-references/referenceTrigger.d.ts +52 -0
- package/dist/prompt-references/referenceTrigger.js +100 -0
- package/dist/prompt-references/referenceTypes.d.ts +38 -0
- package/dist/prompt-references/referenceTypes.js +4 -0
- package/dist/prompt-references/sentReferences.d.ts +50 -0
- package/dist/prompt-references/sentReferences.js +122 -0
- package/dist/styles/tokens.css +126 -1
- package/dist/textarea-overlay/index.d.ts +9 -0
- package/dist/textarea-overlay/index.js +7 -0
- package/dist/textarea-overlay/mirrorSegments.d.ts +31 -0
- package/dist/textarea-overlay/mirrorSegments.js +47 -0
- package/dist/textarea-overlay/mirrorSizing.d.ts +39 -0
- package/dist/textarea-overlay/mirrorSizing.js +40 -0
- package/dist/textarea-overlay/textareaOverlay.d.ts +25 -0
- package/dist/textarea-overlay/textareaOverlay.js +277 -0
- package/dist/utils/modalEnterKey.d.ts +139 -0
- package/dist/utils/modalEnterKey.js +276 -0
- package/dist/utils/modalFocusTrap.d.ts +7 -0
- package/dist/utils/modalFocusTrap.js +22 -0
- package/dist/utils/overlayMotion.d.ts +10 -0
- package/dist/utils/overlayMotion.js +12 -3
- package/dist/utils/reducedMotion.d.ts +9 -0
- package/dist/utils/reducedMotion.js +13 -0
- package/dist/utils/revealOpeningSection.d.ts +51 -0
- package/dist/utils/revealOpeningSection.js +109 -0
- package/package.json +16 -1
- package/dist/components/ui/number-stepper/index.d.ts +0 -3
- package/dist/components/ui/number-stepper/index.js +0 -3
- package/dist/components/ui/number-stepper/number-stepper.svelte +0 -212
- package/dist/components/ui/number-stepper/number-stepper.svelte.d.ts +0 -24
- package/dist/components/ui/number-stepper/numberStepperSteps.d.ts +0 -26
- package/dist/components/ui/number-stepper/numberStepperSteps.js +0 -45
|
@@ -5,7 +5,7 @@ export declare const navRowVariants: import("tailwind-variants").TVReturnType<{
|
|
|
5
5
|
true: string;
|
|
6
6
|
false: string;
|
|
7
7
|
};
|
|
8
|
-
}, undefined, "group/nav-row relative before:absolute before:inset-x-0 before:-inset-y-px flex h-8 w-full min-w-0 items-center gap-2 rounded-lg py-1.5 ps-2 pe-2 text-start transition-colors duration-fast focus-visible:outline-hidden
|
|
8
|
+
}, undefined, "group/nav-row relative before:absolute before:inset-x-0 before:-inset-y-px flex h-8 w-full min-w-0 items-center gap-2 rounded-lg py-1.5 ps-2 pe-2 text-start transition-colors duration-fast focus-visible:outline-hidden active:bg-accent-hover disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:stroke-2", {
|
|
9
9
|
responsiveVariants?: boolean | (string | number | symbol)[] | {
|
|
10
10
|
active?: boolean | (string | number | symbol)[] | undefined;
|
|
11
11
|
} | undefined;
|
|
@@ -27,7 +27,7 @@ export declare const navRowVariants: import("tailwind-variants").TVReturnType<{
|
|
|
27
27
|
true: string;
|
|
28
28
|
false: string;
|
|
29
29
|
};
|
|
30
|
-
}, undefined, "group/nav-row relative before:absolute before:inset-x-0 before:-inset-y-px flex h-8 w-full min-w-0 items-center gap-2 rounded-lg py-1.5 ps-2 pe-2 text-start transition-colors duration-fast focus-visible:outline-hidden
|
|
30
|
+
}, undefined, "group/nav-row relative before:absolute before:inset-x-0 before:-inset-y-px flex h-8 w-full min-w-0 items-center gap-2 rounded-lg py-1.5 ps-2 pe-2 text-start transition-colors duration-fast focus-visible:outline-hidden active:bg-accent-hover disabled:pointer-events-none disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:stroke-2", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
31
31
|
active: {
|
|
32
32
|
true: string;
|
|
33
33
|
false: string;
|
|
@@ -38,7 +38,18 @@ export declare const navRowVariants: import("tailwind-variants").TVReturnType<{
|
|
|
38
38
|
false: string;
|
|
39
39
|
};
|
|
40
40
|
}>, unknown, unknown, undefined>>;
|
|
41
|
+
/**
|
|
42
|
+
* The filled pill of `trailingVariant="badge"`: the badge a phone draws on an app icon. A solid destructive (red) fill with the
|
|
43
|
+
* number in white, a circle for one digit (`min-w-5` is as wide as the 20px height) and a pill for more (`px-1.5`). It is
|
|
44
|
+
* the design system's Badge (`destructive`) at the size of a counter, so a count that wants attention stands out from the
|
|
45
|
+
* muted text of a count that only informs.
|
|
46
|
+
*/
|
|
47
|
+
export declare const navRowBadgeClass = "inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-full bg-destructive px-1.5 text-label-small text-destructive-foreground tabular-nums";
|
|
48
|
+
/** The muted count to the right of a row (the default): it informs, it does not ask for attention. */
|
|
49
|
+
export declare const navRowTrailingTextClass = "text-caption text-muted-foreground shrink-0 tabular-nums";
|
|
41
50
|
export type NavRowVisualState = 'default' | 'hover' | 'pressed' | 'active' | 'focus' | 'disabled';
|
|
51
|
+
/** How the text on the right of the row is drawn: muted text (a count that informs) or a filled badge (a count that asks for attention). */
|
|
52
|
+
export type NavRowTrailingVariant = 'text' | 'badge';
|
|
42
53
|
export type NavRowProps = WithElementRef<HTMLButtonAttributes> & WithElementRef<HTMLAnchorAttributes> & {
|
|
43
54
|
ref?: HTMLAnchorElement | HTMLButtonElement | null;
|
|
44
55
|
class?: string;
|
|
@@ -49,6 +60,16 @@ export type NavRowProps = WithElementRef<HTMLButtonAttributes> & WithElementRef<
|
|
|
49
60
|
showIcon?: boolean;
|
|
50
61
|
showTrailing?: boolean;
|
|
51
62
|
trailing?: string;
|
|
63
|
+
/**
|
|
64
|
+
* `text` (default): muted caption. `badge`: a filled pill like the unread count on a phone's app icon, for a number that
|
|
65
|
+
* wants to be noticed (the unread count of the Inbox).
|
|
66
|
+
*/
|
|
67
|
+
trailingVariant?: NavRowTrailingVariant;
|
|
68
|
+
/**
|
|
69
|
+
* What a screen reader says for the trailing text when the text alone says too little: a badge that shows "3" is "3 unread".
|
|
70
|
+
* When it is set the visible text is hidden from assistive technology and this is read instead.
|
|
71
|
+
*/
|
|
72
|
+
trailingAccessibleLabel?: string;
|
|
52
73
|
/** Showcase-only forced visual state (CSS `:hover` / `:focus-visible` otherwise). */
|
|
53
74
|
visualState?: NavRowVisualState;
|
|
54
75
|
};
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
|
|
40
40
|
const rowClass = $derived(
|
|
41
41
|
cn(
|
|
42
|
-
|
|
42
|
+
// No colour transition on a list row (owner, 18 Nov 2026): the hover tint is a 4% tint, a 120ms fade made the hover show late
|
|
43
|
+
'group flex w-full items-center gap-4 rounded-xl px-4 py-3 text-start hover:bg-accent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background',
|
|
43
44
|
className
|
|
44
45
|
)
|
|
45
46
|
);
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
|
|
52
53
|
{#snippet rowInner()}
|
|
53
54
|
<span
|
|
54
|
-
class="bg-muted text-foreground
|
|
55
|
+
class="bg-muted text-foreground group-hover:bg-background flex size-10 shrink-0 items-center justify-center rounded-lg"
|
|
55
56
|
>
|
|
56
57
|
{@render icon()}
|
|
57
58
|
</span>
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
<!-- Figma: Profile Row (component set 53:3, node 53:3). -->
|
|
2
2
|
<script lang="ts" module>
|
|
3
|
+
// No focus ring (owner, 18 Nov 2026: "remove the focus ring around the sidebar elements"): keyboard focus is drawn as the
|
|
4
|
+
// hover fill, like a Nav Row's.
|
|
3
5
|
export const profileRowVariants = tv({
|
|
4
|
-
base: 'flex h-12 w-full min-w-0 items-center gap-2 rounded-lg p-2 text-start transition-colors duration-fast focus-visible:outline-hidden
|
|
6
|
+
base: 'flex h-12 w-full min-w-0 items-center gap-2 rounded-lg p-2 text-start transition-colors duration-fast focus-visible:outline-hidden',
|
|
5
7
|
variants: {
|
|
6
8
|
interactive: {
|
|
7
|
-
true: 'cursor-pointer hover:bg-sidebar-accent',
|
|
9
|
+
true: 'cursor-pointer hover:bg-sidebar-accent focus-visible:bg-sidebar-accent',
|
|
8
10
|
false: ''
|
|
9
11
|
}
|
|
10
12
|
},
|
|
@@ -49,8 +51,8 @@
|
|
|
49
51
|
const showcaseClass = $derived.by(() => {
|
|
50
52
|
if (!visualState || visualState === 'default') return '';
|
|
51
53
|
if (visualState === 'hover') return 'bg-sidebar-accent';
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
// Keyboard focus is the hover fill: no ring is drawn around a sidebar row
|
|
55
|
+
if (visualState === 'focus') return 'bg-sidebar-accent';
|
|
54
56
|
return '';
|
|
55
57
|
});
|
|
56
58
|
|
|
@@ -3,7 +3,7 @@ export declare const profileRowVariants: import("tailwind-variants").TVReturnTyp
|
|
|
3
3
|
true: string;
|
|
4
4
|
false: string;
|
|
5
5
|
};
|
|
6
|
-
}, undefined, "flex h-12 w-full min-w-0 items-center gap-2 rounded-lg p-2 text-start transition-colors duration-fast focus-visible:outline-hidden
|
|
6
|
+
}, undefined, "flex h-12 w-full min-w-0 items-center gap-2 rounded-lg p-2 text-start transition-colors duration-fast focus-visible:outline-hidden", {
|
|
7
7
|
responsiveVariants?: boolean | (string | number | symbol)[] | {
|
|
8
8
|
interactive?: boolean | (string | number | symbol)[] | undefined;
|
|
9
9
|
} | undefined;
|
|
@@ -25,7 +25,7 @@ export declare const profileRowVariants: import("tailwind-variants").TVReturnTyp
|
|
|
25
25
|
true: string;
|
|
26
26
|
false: string;
|
|
27
27
|
};
|
|
28
|
-
}, undefined, "flex h-12 w-full min-w-0 items-center gap-2 rounded-lg p-2 text-start transition-colors duration-fast focus-visible:outline-hidden
|
|
28
|
+
}, undefined, "flex h-12 w-full min-w-0 items-center gap-2 rounded-lg p-2 text-start transition-colors duration-fast focus-visible:outline-hidden", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
29
29
|
interactive: {
|
|
30
30
|
true: string;
|
|
31
31
|
false: string;
|
|
@@ -110,6 +110,25 @@
|
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
// "Settings Panel": settingsPanelElement, the dialog's own box, which bits-ui makes focusable (`tabindex="-1"`) through the focus scope
|
|
114
|
+
let settingsPanelElement = $state<HTMLElement | null>(null);
|
|
115
|
+
|
|
116
|
+
// By default bits-ui puts the focus on the first tabbable element when the dialog opens, and in this dialog that is the first
|
|
117
|
+
// row of the navigation. A page reloaded with Settings open therefore opened with "Workspace settings" focused, which a
|
|
118
|
+
// keyboard-focus style is drawn on even when the page that is open is another (owner, 18 Nov 2026). The dialog takes the
|
|
119
|
+
// focus itself instead: the screen reader reads its title, Tab moves to the first row, and nothing is highlighted before
|
|
120
|
+
// the person has done anything. The focus stays inside the dialog, so the focus trap is not weakened.
|
|
121
|
+
function handleOpenAutoFocus(event: Event): void {
|
|
122
|
+
event.preventDefault();
|
|
123
|
+
requestAnimationFrame(() => {
|
|
124
|
+
try {
|
|
125
|
+
settingsPanelElement?.focus({ preventScroll: true });
|
|
126
|
+
} catch (error) {
|
|
127
|
+
console.warn('[SettingsDialog] Could not move the focus to the dialog panel', error);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
113
132
|
// Parent keeps pe-8 (32px): the cards of a page end on that line. When the page scrolls we pull the scroll area into that
|
|
114
133
|
// padding, so the bar is drawn in the margin right of the cards, close to the dialog edge, and never over a card.
|
|
115
134
|
const PANE_RIGHT_PADDING_PX = 32;
|
|
@@ -150,10 +169,12 @@
|
|
|
150
169
|
<!-- The scrim is the shared one of every overlay (muted foreground at 80%, 3px blur), set by the dialog overlay itself -->
|
|
151
170
|
<Dialog.Overlay />
|
|
152
171
|
<DialogPrimitive.Content
|
|
172
|
+
bind:ref={settingsPanelElement}
|
|
153
173
|
forceMount
|
|
154
174
|
aria-describedby={description || descriptionSlot ? 'settings-dialog-description' : undefined}
|
|
155
175
|
trapFocus={!nestedModalOpen}
|
|
156
176
|
onEscapeKeydown={handleEscapeKeydown}
|
|
177
|
+
onOpenAutoFocus={handleOpenAutoFocus}
|
|
157
178
|
class={className}
|
|
158
179
|
>
|
|
159
180
|
{#snippet child({ props, open })}
|
|
@@ -164,7 +185,8 @@
|
|
|
164
185
|
data-widgetic-overlay="dialog-panel"
|
|
165
186
|
style:z-index|important={overlayLayerContext.ensureLayer().scrimZ + 1}
|
|
166
187
|
class={cn(
|
|
167
|
-
|
|
188
|
+
// outline-hidden: the panel holds the focus when the dialog opens (see handleOpenAutoFocus) and must not draw a ring
|
|
189
|
+
'border-border bg-background fixed flex overflow-hidden border outline-hidden',
|
|
168
190
|
overlayReducedMotionClasses,
|
|
169
191
|
'inset-0 h-full max-h-none w-full rounded-none',
|
|
170
192
|
// Centred with auto margins, not with a translate: a CSS transform would make this box the containing block
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import type { VariantProps } from 'tailwind-variants';
|
|
4
4
|
|
|
5
5
|
export const widgetRowVariants = tv({
|
|
6
|
-
|
|
6
|
+
// No colour transition on a list row (owner, 18 Nov 2026: hover "used to be instant, now there's a lag"): the hover tint is a 4% tint, so a 120ms fade shows nothing for ~110ms and the row looks late; it must switch on the frame the pointer arrives.
|
|
7
|
+
base: 'group/widget-row flex h-16 max-h-16 w-full shrink-0 items-center gap-4 overflow-hidden rounded-xl py-3 ps-4 pe-4 focus-within:outline-hidden',
|
|
7
8
|
variants: {
|
|
8
9
|
selected: {
|
|
9
10
|
true: 'bg-brand-subtle ring-2 ring-brand',
|
|
@@ -101,7 +102,7 @@
|
|
|
101
102
|
>
|
|
102
103
|
<div
|
|
103
104
|
class={cn(
|
|
104
|
-
'bg-muted
|
|
105
|
+
'bg-muted group-hover/widget-row:bg-background flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg',
|
|
105
106
|
forceHover && 'bg-background'
|
|
106
107
|
)}
|
|
107
108
|
>
|
|
@@ -145,7 +146,7 @@
|
|
|
145
146
|
{#if actions}
|
|
146
147
|
<div
|
|
147
148
|
class={cn(
|
|
148
|
-
'
|
|
149
|
+
'shrink-0 opacity-0 group-focus-within/widget-row:opacity-100 group-hover/widget-row:opacity-100',
|
|
149
150
|
(actionsAlwaysVisible || forceHover || forceFocus) && 'opacity-100'
|
|
150
151
|
)}
|
|
151
152
|
>
|
|
@@ -7,7 +7,7 @@ export declare const widgetRowVariants: import("tailwind-variants").TVReturnType
|
|
|
7
7
|
true: string;
|
|
8
8
|
false: string;
|
|
9
9
|
};
|
|
10
|
-
}, undefined, "group/widget-row flex h-16 max-h-16 w-full shrink-0 items-center gap-4 overflow-hidden rounded-xl py-3 ps-4 pe-4
|
|
10
|
+
}, undefined, "group/widget-row flex h-16 max-h-16 w-full shrink-0 items-center gap-4 overflow-hidden rounded-xl py-3 ps-4 pe-4 focus-within:outline-hidden", {
|
|
11
11
|
responsiveVariants?: boolean | (string | number | symbol)[] | {
|
|
12
12
|
selected?: boolean | (string | number | symbol)[] | undefined;
|
|
13
13
|
loading?: boolean | (string | number | symbol)[] | undefined;
|
|
@@ -38,7 +38,7 @@ export declare const widgetRowVariants: import("tailwind-variants").TVReturnType
|
|
|
38
38
|
true: string;
|
|
39
39
|
false: string;
|
|
40
40
|
};
|
|
41
|
-
}, undefined, "group/widget-row flex h-16 max-h-16 w-full shrink-0 items-center gap-4 overflow-hidden rounded-xl py-3 ps-4 pe-4
|
|
41
|
+
}, undefined, "group/widget-row flex h-16 max-h-16 w-full shrink-0 items-center gap-4 overflow-hidden rounded-xl py-3 ps-4 pe-4 focus-within:outline-hidden", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
42
42
|
selected: {
|
|
43
43
|
true: string;
|
|
44
44
|
false: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script lang="ts" module>
|
|
2
2
|
import { toast, Toaster } from '../ui/sonner';
|
|
3
|
+
import type { ToasterProps } from 'svelte-sonner';
|
|
3
4
|
import IconAlertTriangle from '@tabler/icons-svelte/icons/alert-triangle';
|
|
4
5
|
import IconCircleCheck from '@tabler/icons-svelte/icons/circle-check';
|
|
5
6
|
import IconExclamationCircle from '@tabler/icons-svelte/icons/exclamation-circle';
|
|
@@ -96,6 +97,8 @@
|
|
|
96
97
|
|
|
97
98
|
export let containerAriaLabel: string | undefined = undefined;
|
|
98
99
|
export let closeButtonAriaLabel: string | undefined = undefined;
|
|
100
|
+
/** Figma dashboard toasts (e.g. Translations embed copied `367:1585`) sit bottom-right. */
|
|
101
|
+
export let position: ToasterProps['position'] = 'top-center';
|
|
99
102
|
|
|
100
103
|
let rootMarker: HTMLElement;
|
|
101
104
|
onMount(() => registerToasterRoot(rootMarker.getRootNode() as Document | ShadowRoot));
|
|
@@ -126,7 +129,7 @@
|
|
|
126
129
|
<Toaster
|
|
127
130
|
theme="light"
|
|
128
131
|
dir={$textDirection}
|
|
129
|
-
position
|
|
132
|
+
{position}
|
|
130
133
|
{containerAriaLabel}
|
|
131
134
|
{closeButtonAriaLabel}
|
|
132
135
|
closeButton
|
|
@@ -150,9 +153,11 @@
|
|
|
150
153
|
toastMainClass +
|
|
151
154
|
'-close-button !absolute !end-1.5 !top-1/2 !z-10 !-translate-y-1/2 !flex !size-7 !shrink-0 !items-center !justify-center !rounded-full !border-0 !bg-transparent !p-0 !text-inherit !transition-colors hover:!bg-current/20 focus-visible:!bg-current/20 focus-visible:!outline-hidden [&_svg]:!size-3.5 [&_svg]:!stroke-2',
|
|
152
155
|
info: '!border-border !bg-popover !text-popover-foreground',
|
|
153
|
-
// The success pill writes white on the brand green (the close mark inherits it), not the dark brand foreground.
|
|
156
|
+
// The success pill writes white on the brand green (the close mark inherits it), not the dark brand foreground. The white
|
|
157
|
+
// is the color token itself (`--color-white`, the same in both themes): the plain white utility is banned by the design
|
|
158
|
+
// rules (`npm run check:design`), and the primary foreground turns dark in the dark theme.
|
|
154
159
|
success:
|
|
155
|
-
'!border-transparent !bg-brand !text-white [&>[data-icon]]:!hidden',
|
|
160
|
+
'!border-transparent !bg-brand !text-[color:var(--color-white)] [&>[data-icon]]:!hidden',
|
|
156
161
|
warning: '!border-transparent !bg-warning !text-primary-foreground [&>[data-icon]]:!hidden',
|
|
157
162
|
error:
|
|
158
163
|
'!border-transparent !bg-destructive !text-destructive-foreground [&>[data-icon]]:!hidden'
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ToasterProps } from 'svelte-sonner';
|
|
1
2
|
declare let className: string;
|
|
2
3
|
export { className as class };
|
|
3
4
|
export declare let style: string;
|
|
@@ -25,6 +26,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
25
26
|
declare const ToasterModal: $$__sveltets_2_IsomorphicComponent<{
|
|
26
27
|
containerAriaLabel?: string | undefined;
|
|
27
28
|
closeButtonAriaLabel?: string | undefined;
|
|
29
|
+
/** Figma dashboard toasts (e.g. Translations embed copied `367:1585`) sit bottom-right. */ position?: ToasterProps["position"];
|
|
28
30
|
}, {
|
|
29
31
|
[evt: string]: CustomEvent<any>;
|
|
30
32
|
}, {}, {}, string>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Accordion as AccordionPrimitive, type WithoutChild } from "bits-ui";
|
|
3
3
|
import IconChevronDown from "@tabler/icons-svelte/icons/chevron-down";
|
|
4
4
|
import { cn } from "../../../utils.js";
|
|
5
|
+
import { followOpeningSection } from "../../../utils/revealOpeningSection.js";
|
|
5
6
|
|
|
6
7
|
let {
|
|
7
8
|
ref = $bindable(null),
|
|
@@ -37,14 +38,32 @@
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
|
|
41
|
+
/**
|
|
42
|
+
* A section that opens near the bottom of a scrolling box (the settings dialog, a page) grows below the edge of it. While it
|
|
43
|
+
* opens, its box is scrolled so the content comes into view, and the person does not have to scroll to read what they opened.
|
|
44
|
+
* At the time of the toggle the trigger still has the state it is leaving, so `closed` means this click opens the item.
|
|
45
|
+
*/
|
|
46
|
+
function keepOpeningItemInView(event: Event) {
|
|
47
|
+
try {
|
|
48
|
+
const trigger = event.currentTarget as HTMLElement | null;
|
|
49
|
+
if (trigger?.getAttribute("data-state") !== "closed") return;
|
|
50
|
+
const ownItem = trigger.closest<HTMLElement>("[data-accordion-item]");
|
|
51
|
+
if (ownItem) followOpeningSection(ownItem);
|
|
52
|
+
} catch (error) {
|
|
53
|
+
console.warn("[accordion] could not keep the opening item in view:", error);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
40
57
|
function handleTriggerClick(event: MouseEvent & { currentTarget: EventTarget & HTMLButtonElement }) {
|
|
41
58
|
markAccordionItemsAnimate(event);
|
|
59
|
+
keepOpeningItemInView(event);
|
|
42
60
|
onclick?.(event);
|
|
43
61
|
}
|
|
44
62
|
|
|
45
63
|
function handleTriggerKeydown(event: KeyboardEvent & { currentTarget: EventTarget & HTMLButtonElement }) {
|
|
46
64
|
if (event.key === "Enter" || event.key === " ") {
|
|
47
65
|
markAccordionItemsAnimate(event);
|
|
66
|
+
keepOpeningItemInView(event);
|
|
48
67
|
}
|
|
49
68
|
onkeydown?.(event);
|
|
50
69
|
}
|
|
@@ -118,12 +118,14 @@
|
|
|
118
118
|
);
|
|
119
119
|
</script>
|
|
120
120
|
|
|
121
|
+
<!-- `data-variant` says how the button is drawn. A modal reads it to find its main button: Enter presses the last filled one
|
|
122
|
+
(default, accent or destructive, see utils/modalEnterKey.ts). A caller can still set its own through `restProps`. -->
|
|
121
123
|
{#if href}
|
|
122
|
-
<a bind:this={ref} class={classes} {href} {...restProps}>
|
|
124
|
+
<a bind:this={ref} class={classes} {href} data-variant={variant} {...restProps}>
|
|
123
125
|
{@render children?.()}
|
|
124
126
|
</a>
|
|
125
127
|
{:else}
|
|
126
|
-
<button bind:this={ref} class={classes} {type} {...restProps}>
|
|
128
|
+
<button bind:this={ref} class={classes} {type} data-variant={variant} {...restProps}>
|
|
127
129
|
{@render children?.()}
|
|
128
130
|
</button>
|
|
129
131
|
{/if}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import type { Snippet } from "svelte";
|
|
5
5
|
import IconX from "@tabler/icons-svelte/icons/x";
|
|
6
6
|
import { cn } from "../../../utils.js";
|
|
7
|
+
import { chipProgressPercent, chipProgressValueText } from "./chipProgress.js";
|
|
7
8
|
|
|
8
9
|
let {
|
|
9
10
|
class: className,
|
|
@@ -13,6 +14,8 @@
|
|
|
13
14
|
disabled = false,
|
|
14
15
|
onRemove = undefined,
|
|
15
16
|
leading,
|
|
17
|
+
progress = undefined,
|
|
18
|
+
progressLabel = undefined,
|
|
16
19
|
}: HTMLAttributes<HTMLDivElement> & {
|
|
17
20
|
label: string;
|
|
18
21
|
showRemove?: boolean;
|
|
@@ -20,16 +23,51 @@
|
|
|
20
23
|
disabled?: boolean;
|
|
21
24
|
onRemove?: () => void;
|
|
22
25
|
leading?: Snippet;
|
|
26
|
+
/**
|
|
27
|
+
* How much of the file has uploaded, from 0 to 100. The chip shows it as its own background (Figma: the Progress
|
|
28
|
+
* variants of the Chip): a muted fill grows from the start edge behind the icon, the label and the x. Leave it out
|
|
29
|
+
* when the chip is not uploading; there is no separate bar.
|
|
30
|
+
*/
|
|
31
|
+
progress?: number;
|
|
32
|
+
/** What a screen reader hears for the share done, in the language of the person. Defaults to the percentage. */
|
|
33
|
+
progressLabel?: string;
|
|
23
34
|
} = $props();
|
|
35
|
+
|
|
36
|
+
// "Progress": the share done (0–100), or undefined when the chip has no progress layer.
|
|
37
|
+
const progressPercent = $derived(chipProgressPercent(progress));
|
|
24
38
|
</script>
|
|
25
39
|
|
|
26
40
|
<div
|
|
27
41
|
class={cn(
|
|
28
|
-
"inline-flex h-7 max-w-full items-center gap-1.5 rounded-lg border border-border bg-transparent px-2 text-label-small text-foreground transition-colors duration-fast",
|
|
42
|
+
"relative isolate inline-flex h-7 max-w-full items-center gap-1.5 rounded-lg border border-border bg-transparent px-2 text-label-small text-foreground transition-colors duration-fast",
|
|
29
43
|
disabled ? "pointer-events-none opacity-50" : "hover:bg-accent",
|
|
30
44
|
className
|
|
31
45
|
)}
|
|
32
46
|
>
|
|
47
|
+
{#if progressPercent !== undefined}
|
|
48
|
+
<!-- The progress layer sits behind the content (-z-10 inside this chip's own stacking context, `isolate`), inside the
|
|
49
|
+
border, and is clipped to the chip's rounded corners. It grows from the start edge, so it follows the reading direction. -->
|
|
50
|
+
<span
|
|
51
|
+
class="pointer-events-none absolute inset-0 -z-10 overflow-hidden rounded-lg"
|
|
52
|
+
aria-hidden="true"
|
|
53
|
+
data-chip-progress-track
|
|
54
|
+
>
|
|
55
|
+
<span
|
|
56
|
+
class="absolute inset-y-0 start-0 bg-muted-foreground/15 transition-[width] duration-base ease-standard motion-reduce:transition-none"
|
|
57
|
+
style={`width: ${progressPercent}%`}
|
|
58
|
+
data-chip-progress-fill
|
|
59
|
+
></span>
|
|
60
|
+
</span>
|
|
61
|
+
<span
|
|
62
|
+
class="sr-only"
|
|
63
|
+
role="progressbar"
|
|
64
|
+
aria-label={label}
|
|
65
|
+
aria-valuemin={0}
|
|
66
|
+
aria-valuemax={100}
|
|
67
|
+
aria-valuenow={Math.round(progressPercent)}
|
|
68
|
+
aria-valuetext={chipProgressValueText(progressPercent, progressLabel)}
|
|
69
|
+
></span>
|
|
70
|
+
{/if}
|
|
33
71
|
{#if leading}
|
|
34
72
|
<span class="flex shrink-0 items-center">{@render leading()}</span>
|
|
35
73
|
{/if}
|
|
@@ -7,6 +7,14 @@ type $$ComponentProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
onRemove?: () => void;
|
|
9
9
|
leading?: Snippet;
|
|
10
|
+
/**
|
|
11
|
+
* How much of the file has uploaded, from 0 to 100. The chip shows it as its own background (Figma: the Progress
|
|
12
|
+
* variants of the Chip): a muted fill grows from the start edge behind the icon, the label and the x. Leave it out
|
|
13
|
+
* when the chip is not uploading; there is no separate bar.
|
|
14
|
+
*/
|
|
15
|
+
progress?: number;
|
|
16
|
+
/** What a screen reader hears for the share done, in the language of the person. Defaults to the percentage. */
|
|
17
|
+
progressLabel?: string;
|
|
10
18
|
};
|
|
11
19
|
declare const Chip: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
12
20
|
type Chip = ReturnType<typeof Chip>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The share of a chip that is shown as uploaded, from 0 to 100.
|
|
3
|
+
*
|
|
4
|
+
* A chip draws its upload progress as its own background (Figma: Chip, the Progress variants), so the number that reaches
|
|
5
|
+
* the layer has to be one the layer can draw: anything below 0 is 0, anything above 100 is 100. `undefined` (and a value
|
|
6
|
+
* that is not a number, such as a division that went wrong) means the chip has no progress layer at all, because a chip
|
|
7
|
+
* that is not uploading must look like every other chip.
|
|
8
|
+
*/
|
|
9
|
+
export declare function chipProgressPercent(progress: number | null | undefined): number | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* What a screen reader hears for the share done when the host gives no wording of its own: the rounded percentage.
|
|
12
|
+
* The host passes `progressLabel` when the sentence has to be in the language of the person ("Uploading, 45%").
|
|
13
|
+
*/
|
|
14
|
+
export declare function chipProgressValueText(percent: number, progressLabel?: string): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The share of a chip that is shown as uploaded, from 0 to 100.
|
|
3
|
+
*
|
|
4
|
+
* A chip draws its upload progress as its own background (Figma: Chip, the Progress variants), so the number that reaches
|
|
5
|
+
* the layer has to be one the layer can draw: anything below 0 is 0, anything above 100 is 100. `undefined` (and a value
|
|
6
|
+
* that is not a number, such as a division that went wrong) means the chip has no progress layer at all, because a chip
|
|
7
|
+
* that is not uploading must look like every other chip.
|
|
8
|
+
*/
|
|
9
|
+
export function chipProgressPercent(progress) {
|
|
10
|
+
if (progress === undefined || progress === null || Number.isNaN(progress)) {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
return Math.min(100, Math.max(0, progress));
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* What a screen reader hears for the share done when the host gives no wording of its own: the rounded percentage.
|
|
17
|
+
* The host passes `progressLabel` when the sentence has to be in the language of the person ("Uploading, 45%").
|
|
18
|
+
*/
|
|
19
|
+
export function chipProgressValueText(percent, progressLabel) {
|
|
20
|
+
return progressLabel ?? `${Math.round(percent)}%`;
|
|
21
|
+
}
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
import { claimOverlayLayerPair, overlayLayerZIndexStyle } from "../../../utils/overlayLayerStack.js";
|
|
15
15
|
import { OVERLAY_LAYER_CONTEXT_KEY, type OverlayLayerContext } from "./overlay-layer-context.js";
|
|
16
16
|
import DialogLayerSync from "./DialogLayerSync.svelte";
|
|
17
|
+
// Enter inside the card presses the dialog's main button (see utils/modalEnterKey.ts).
|
|
18
|
+
import { modalEnterKey } from "../../../utils/modalEnterKey.js";
|
|
19
|
+
import { dialogInitialFocusTarget } from "../../../utils/modalFocusTrap.js";
|
|
17
20
|
|
|
18
21
|
let {
|
|
19
22
|
ref = $bindable(null),
|
|
@@ -49,11 +52,28 @@
|
|
|
49
52
|
onDestroy(() => overlayLayerContext.releaseLayer());
|
|
50
53
|
|
|
51
54
|
const panelFly = $derived(overlayPanelFlyTransition());
|
|
55
|
+
|
|
56
|
+
// By default bits-ui puts the focus on the first tabbable element when the dialog opens, and in a confirm dialog that is
|
|
57
|
+
// "Cancel": Enter would then cancel the dialog, where the person expects it to press the main button (owner, 18 Nov 2026).
|
|
58
|
+
// The focus goes to the first field to type in, else to the card, and never to a button; a caller that wants something else
|
|
59
|
+
// passes its own `onOpenAutoFocus` (it comes after this one in the props). The focus stays inside the dialog, so the focus
|
|
60
|
+
// trap is not weakened.
|
|
61
|
+
function handleOpenAutoFocus(event: Event): void {
|
|
62
|
+
event.preventDefault();
|
|
63
|
+
requestAnimationFrame(() => {
|
|
64
|
+
try {
|
|
65
|
+
if (!ref) return;
|
|
66
|
+
dialogInitialFocusTarget(ref).focus({ preventScroll: true });
|
|
67
|
+
} catch (error) {
|
|
68
|
+
console.warn("[dialog] Could not move the focus into the dialog", error);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
52
72
|
</script>
|
|
53
73
|
|
|
54
74
|
<Dialog.Portal {...portalProps}>
|
|
55
75
|
<Dialog.Overlay />
|
|
56
|
-
<DialogPrimitive.Content bind:ref forceMount {...restProps}>
|
|
76
|
+
<DialogPrimitive.Content bind:ref forceMount onOpenAutoFocus={handleOpenAutoFocus} {...restProps}>
|
|
57
77
|
{#snippet child({ props, open })}
|
|
58
78
|
<DialogLayerSync {open} {overlayLayerContext} />
|
|
59
79
|
{#if open}
|
|
@@ -68,8 +88,10 @@
|
|
|
68
88
|
>
|
|
69
89
|
<div
|
|
70
90
|
{...props}
|
|
91
|
+
use:modalEnterKey
|
|
71
92
|
class={cn(
|
|
72
|
-
|
|
93
|
+
// outline-hidden: the card holds the focus when the dialog opens with no field in it (see handleOpenAutoFocus)
|
|
94
|
+
"bg-background border-border pointer-events-auto grid w-dialog max-w-[calc(100vw-3rem)] gap-4 rounded-panel border p-6 outline-hidden",
|
|
73
95
|
overlayDialogPanelCardClasses,
|
|
74
96
|
className
|
|
75
97
|
)}
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
{sideOffset}
|
|
26
26
|
dir={$textDirection}
|
|
27
27
|
class={cn(
|
|
28
|
-
|
|
28
|
+
// floating-motion: fade + 8px slide from the trigger side in 150ms (tokens.css); the account and workspace menus of the sidebar use it too
|
|
29
|
+
'bg-popover text-popover-foreground border-border floating-motion w-max min-w-[8rem] max-w-[min(24rem,calc(100vw-1rem))] overflow-hidden rounded-xl border p-1 outline-hidden',
|
|
29
30
|
overlayFloatingContentZClass,
|
|
30
31
|
className
|
|
31
32
|
)}
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
bind:ref
|
|
24
24
|
dir={$textDirection}
|
|
25
25
|
class={cn(
|
|
26
|
-
|
|
26
|
+
// floating-motion: the sub-menu slides in like the menu it opens from (it had no motion before)
|
|
27
|
+
'bg-popover text-popover-foreground border-border floating-motion w-max min-w-[8rem] max-w-[min(24rem,calc(100vw-1rem))] rounded-xl border p-1 focus:outline-hidden',
|
|
27
28
|
overlayFloatingContentZClass,
|
|
28
29
|
className
|
|
29
30
|
)}
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
{sideOffset}
|
|
28
28
|
dir={$textDirection}
|
|
29
29
|
class={cn(
|
|
30
|
-
|
|
30
|
+
// floating-motion: fade + 8px slide from the trigger side in 150ms (tokens.css)
|
|
31
|
+
'bg-popover text-popover-foreground border-border floating-motion mt-3 w-64 rounded-xl border p-4 outline-hidden',
|
|
31
32
|
overlayFloatingContentZClass,
|
|
32
33
|
className
|
|
33
34
|
)}
|
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
"rounded-lg border border-input bg-background text-foreground hover:bg-accent hover:text-foreground focus-visible:bg-accent focus-visible:text-foreground",
|
|
21
21
|
primary:
|
|
22
22
|
"rounded-full bg-primary text-primary-foreground hover:bg-primary/90 focus-visible:bg-primary/90",
|
|
23
|
+
inverse:
|
|
24
|
+
"rounded-full bg-inverse text-inverse-foreground hover:bg-inverse/90 focus-visible:bg-inverse/90",
|
|
23
25
|
accent:
|
|
24
26
|
"rounded-full bg-brand text-brand-foreground hover:bg-brand/90 focus-visible:bg-brand/90",
|
|
25
27
|
},
|
|
@@ -7,6 +7,7 @@ export declare const iconButtonVariants: import("tailwind-variants").TVReturnTyp
|
|
|
7
7
|
secondary: string;
|
|
8
8
|
outline: string;
|
|
9
9
|
primary: string;
|
|
10
|
+
inverse: string;
|
|
10
11
|
accent: string;
|
|
11
12
|
};
|
|
12
13
|
size: {
|
|
@@ -32,6 +33,7 @@ export declare const iconButtonVariants: import("tailwind-variants").TVReturnTyp
|
|
|
32
33
|
secondary: string;
|
|
33
34
|
outline: string;
|
|
34
35
|
primary: string;
|
|
36
|
+
inverse: string;
|
|
35
37
|
accent: string;
|
|
36
38
|
};
|
|
37
39
|
size: {
|
|
@@ -44,6 +46,7 @@ export declare const iconButtonVariants: import("tailwind-variants").TVReturnTyp
|
|
|
44
46
|
secondary: string;
|
|
45
47
|
outline: string;
|
|
46
48
|
primary: string;
|
|
49
|
+
inverse: string;
|
|
47
50
|
accent: string;
|
|
48
51
|
};
|
|
49
52
|
size: {
|
|
@@ -56,6 +59,7 @@ export declare const iconButtonVariants: import("tailwind-variants").TVReturnTyp
|
|
|
56
59
|
secondary: string;
|
|
57
60
|
outline: string;
|
|
58
61
|
primary: string;
|
|
62
|
+
inverse: string;
|
|
59
63
|
accent: string;
|
|
60
64
|
};
|
|
61
65
|
size: {
|
|
@@ -68,6 +72,7 @@ export declare const iconButtonVariants: import("tailwind-variants").TVReturnTyp
|
|
|
68
72
|
secondary: string;
|
|
69
73
|
outline: string;
|
|
70
74
|
primary: string;
|
|
75
|
+
inverse: string;
|
|
71
76
|
accent: string;
|
|
72
77
|
};
|
|
73
78
|
size: {
|