@noxlovette/material 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/badge/theme.js +1 -1
- package/dist/components/buttons/button-group/theme.d.ts +1 -1
- package/dist/components/buttons/button-group/theme.js +1 -1
- package/dist/components/buttons/connected/theme.d.ts +1 -1
- package/dist/components/buttons/connected/theme.js +1 -1
- package/dist/components/buttons/split-button/SplitButton.svelte +1 -1
- package/dist/components/buttons/split-button/theme.d.ts +1 -1
- package/dist/components/buttons/split-button/theme.js +1 -1
- package/dist/components/buttons/theme.d.ts +1 -1
- package/dist/components/buttons/theme.js +3 -3
- package/dist/components/cards/theme.js +1 -1
- package/dist/components/chips/theme.d.ts +1 -1
- package/dist/components/chips/theme.js +1 -1
- package/dist/components/containers/action-rail/theme.d.ts +1 -1
- package/dist/components/containers/action-rail/theme.js +2 -2
- package/dist/components/containers/app/theme.d.ts +1 -1
- package/dist/components/containers/app/theme.js +1 -1
- package/dist/components/containers/bottom-sheet/theme.d.ts +1 -1
- package/dist/components/containers/bottom-sheet/theme.js +2 -2
- package/dist/components/containers/carousel/theme.d.ts +1 -1
- package/dist/components/containers/carousel/theme.js +1 -1
- package/dist/components/containers/context-menu/theme.d.ts +1 -1
- package/dist/components/containers/context-menu/theme.js +2 -2
- package/dist/components/containers/dialogue/Dialogue.svelte +1 -1
- package/dist/components/containers/dialogue/theme.d.ts +1 -1
- package/dist/components/containers/dialogue/theme.js +3 -3
- package/dist/components/containers/dialogue/types.d.ts +1 -1
- package/dist/components/containers/divider/theme.d.ts +1 -1
- package/dist/components/containers/divider/theme.js +1 -1
- package/dist/components/containers/link-preview/theme.d.ts +1 -1
- package/dist/components/containers/link-preview/theme.js +2 -2
- package/dist/components/containers/list/theme.d.ts +1 -1
- package/dist/components/containers/list/theme.js +1 -1
- package/dist/components/containers/menu/Menu.svelte +1 -1
- package/dist/components/containers/menu/MenuSub.svelte +1 -1
- package/dist/components/containers/menu/theme.d.ts +1 -1
- package/dist/components/containers/menu/theme.js +1 -1
- package/dist/components/containers/pane/theme.d.ts +1 -1
- package/dist/components/containers/pane/theme.js +3 -3
- package/dist/components/containers/popover/theme.d.ts +1 -1
- package/dist/components/containers/popover/theme.js +2 -2
- package/dist/components/containers/scroll-area/theme.js +1 -1
- package/dist/components/containers/side-sheet/theme.d.ts +1 -1
- package/dist/components/containers/side-sheet/theme.js +1 -1
- package/dist/components/date/theme.d.ts +1 -1
- package/dist/components/date/theme.js +1 -1
- package/dist/components/forms/checkbox/theme.d.ts +1 -1
- package/dist/components/forms/checkbox/theme.js +1 -1
- package/dist/components/forms/command/theme.d.ts +1 -1
- package/dist/components/forms/command/theme.js +1 -1
- package/dist/components/forms/pin/theme.d.ts +1 -1
- package/dist/components/forms/pin/theme.js +1 -1
- package/dist/components/forms/radio-group/theme.d.ts +1 -1
- package/dist/components/forms/radio-group/theme.js +1 -1
- package/dist/components/forms/search/theme.d.ts +1 -1
- package/dist/components/forms/search/theme.js +1 -1
- package/dist/components/forms/select/Select.svelte +2 -2
- package/dist/components/forms/select/theme.d.ts +1 -1
- package/dist/components/forms/select/theme.js +2 -2
- package/dist/components/forms/slider/theme.d.ts +1 -1
- package/dist/components/forms/slider/theme.js +1 -1
- package/dist/components/forms/switch/theme.d.ts +1 -1
- package/dist/components/forms/switch/theme.js +1 -1
- package/dist/components/forms/textfield/theme.d.ts +1 -1
- package/dist/components/forms/textfield/theme.js +1 -1
- package/dist/components/forms/toggle-group/theme.d.ts +1 -1
- package/dist/components/forms/toggle-group/theme.js +1 -1
- package/dist/components/forms/tooltip/theme.d.ts +1 -1
- package/dist/components/forms/tooltip/theme.js +2 -2
- package/dist/components/misc/ThemeSwitcher.svelte +1 -1
- package/dist/components/misc/theme.js +1 -1
- package/dist/components/nav/appbar/theme.d.ts +1 -1
- package/dist/components/nav/appbar/theme.js +2 -2
- package/dist/components/nav/breadcrumb/theme.d.ts +1 -1
- package/dist/components/nav/breadcrumb/theme.js +1 -1
- package/dist/components/nav/navbar/theme.d.ts +3 -3
- package/dist/components/nav/navbar/theme.js +2 -2
- package/dist/components/nav/rail/Rail.svelte +4 -2
- package/dist/components/nav/rail/theme.d.ts +1 -1
- package/dist/components/nav/rail/theme.js +2 -2
- package/dist/components/nav/rail/types.d.ts +4 -0
- package/dist/components/nav/tabs/theme.d.ts +1 -1
- package/dist/components/nav/tabs/theme.js +1 -1
- package/dist/components/pill/theme.d.ts +1 -1
- package/dist/components/pill/theme.js +1 -1
- package/dist/components/progress/LinearProgress.svelte +1 -1
- package/dist/components/snackbar/theme.d.ts +1 -1
- package/dist/components/snackbar/theme.js +2 -2
- package/dist/components/table/theme.d.ts +1 -1
- package/dist/components/table/theme.js +1 -1
- package/dist/components/time/TimeField.svelte +1 -1
- package/dist/components/time/theme.d.ts +1 -1
- package/dist/components/time/theme.js +1 -1
- package/dist/components/toolbar/theme.d.ts +1 -1
- package/dist/components/toolbar/theme.js +2 -2
- package/dist/components/typography/body/theme.d.ts +1 -1
- package/dist/components/typography/body/theme.js +1 -1
- package/dist/components/typography/display/theme.d.ts +1 -1
- package/dist/components/typography/display/theme.js +1 -1
- package/dist/components/typography/headline/theme.d.ts +1 -1
- package/dist/components/typography/headline/theme.js +1 -1
- package/dist/components/typography/kbd/theme.d.ts +1 -1
- package/dist/components/typography/kbd/theme.js +1 -1
- package/dist/components/typography/label/theme.js +1 -1
- package/dist/components/typography/title/theme.d.ts +1 -1
- package/dist/components/typography/title/theme.js +1 -1
- package/dist/index.css +1 -0
- package/dist/styles/layers.css +33 -0
- package/dist/utils/icon/theme.d.ts +1 -1
- package/dist/utils/icon/theme.js +1 -1
- package/dist/utils/tv.d.ts +6 -0
- package/dist/utils/tv.js +12 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type ButtonGroupVariants = VariantProps<typeof buttonGroup>;
|
|
3
3
|
export declare const buttonGroup: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
orientation: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
/*
|
|
3
3
|
* Standard button group, per https://m3.material.io/components/button-groups/specs: an invisible
|
|
4
4
|
* container that spaces its buttons so each keeps a 48dp target (18/12/8/8/8dp for XS–XL).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type ConnectedButtonGroupVariants = VariantProps<typeof connectedButtonGroup>;
|
|
3
3
|
export type ConnectedButtonGroupItemVariants = VariantProps<typeof connectedButtonGroupItem>;
|
|
4
4
|
export declare const connectedButtonGroup: import("tailwind-variants").TVReturnType<{
|
|
@@ -95,7 +95,7 @@ only opens a menu, use `Menu`; for selectable options, `ConnectedButtonGroup`.
|
|
|
95
95
|
{/snippet}
|
|
96
96
|
</DropdownMenu.Trigger>
|
|
97
97
|
<DropdownMenu.Portal>
|
|
98
|
-
<DropdownMenu.Content {align} sideOffset={4} class="z-
|
|
98
|
+
<DropdownMenu.Content {align} sideOffset={4} class="z-layer-popup">
|
|
99
99
|
{#snippet child({ wrapperProps, props, open: isOpen })}
|
|
100
100
|
<div {...wrapperProps}>
|
|
101
101
|
<!-- Menu's own panel, so MenuItem rows look the same here. -->
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type SplitButtonVariants = VariantProps<typeof splitButton>;
|
|
3
3
|
export declare const splitButton: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
size: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../utils/tv.js';
|
|
2
2
|
import type { Breakpoint } from '../containers/pane/theme.js';
|
|
3
3
|
export type ButtonVariants = VariantProps<typeof button>;
|
|
4
4
|
export type ButtonIconVariants = VariantProps<typeof buttonIcon>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../utils/tv.js';
|
|
2
2
|
/** Container, border and content colours for one button colour style in one state. */
|
|
3
3
|
export const buttonColor = tv({
|
|
4
4
|
base: '',
|
|
@@ -351,13 +351,13 @@ export const fabExpandedClasses = {
|
|
|
351
351
|
export const fabSurface = tv({
|
|
352
352
|
slots: {
|
|
353
353
|
anchor: 'relative inline-grid',
|
|
354
|
-
wrapper: 'drop-shadow-elevation-3 absolute end-spacing-0 bottom-spacing-0 z-
|
|
354
|
+
wrapper: 'drop-shadow-elevation-3 absolute end-spacing-0 bottom-spacing-0 z-layer-modal',
|
|
355
355
|
surface: 'bg-md-sys-color-surface text-md-sys-color-on-surface max-h-[min(36rem,calc(100dvh-2rem))] w-max max-w-[calc(100vw-2rem)] min-w-60 overflow-y-auto rounded-3xl py-spacing-100 outline-none'
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
358
|
export const fabMenu = tv({
|
|
359
359
|
slots: {
|
|
360
|
-
base: '-me-[5px] flex flex-col items-end gap-spacing-50 overflow-y-auto p-[5px]'
|
|
360
|
+
base: 'z-layer-popup -me-[5px] flex flex-col items-end gap-spacing-50 overflow-y-auto p-[5px]'
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
363
|
/** FAB menu items share the medium button's measurements, fully round, without elevation. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../utils/tv.js';
|
|
2
2
|
export const card = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: 'relative flex flex-col rounded-lg disabled:opacity-[0.38] disabled:bg-md-sys-color-surface-variant state-layer before:rounded-lg transition-shadow md-sys-motion-effects',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../utils/tv.js';
|
|
2
2
|
export const chip = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: 'md-component-button-base group inline-flex h-spacing-400 max-w-max items-center justify-center gap-spacing-100 rounded-sm before:rounded-sm px-spacing-200 md-sys-typescale-label-large',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type ActionRailVariants = VariantProps<typeof actionRail>;
|
|
3
3
|
export declare const actionRail: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
anchor: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
export const actionRail = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'z-
|
|
4
|
+
base: 'z-layer-bar flex flex-col items-center justify-center right-spacing-0'
|
|
5
5
|
},
|
|
6
6
|
variants: {
|
|
7
7
|
anchor: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type AppVariants = VariantProps<typeof app>;
|
|
3
3
|
export declare const app: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "bg-md-sys-color-surface-container text-md-sys-color-on-background min-h-dvh caret-md-sys-color-primary selection:bg-md-sys-color-primary-container selection:text-md-sys-color-on-primary-container relative min-h-dvh pt-[env(safe-area-inset-top)] pr-[env(safe-area-inset-right)] pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] antialiased", {} | {}, undefined, import("tailwind-variants").TVReturnTypeLike<unknown, undefined>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
export const app = tv({
|
|
3
3
|
base: 'bg-md-sys-color-surface-container text-md-sys-color-on-background min-h-dvh caret-md-sys-color-primary selection:bg-md-sys-color-primary-container selection:text-md-sys-color-on-primary-container relative min-h-dvh pt-[env(safe-area-inset-top)] pr-[env(safe-area-inset-right)] pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] antialiased'
|
|
4
4
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type BottomSheetVariants = VariantProps<typeof bottomSheet>;
|
|
3
3
|
export declare const bottomSheet: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
variant: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
/*
|
|
3
3
|
M3 bottom sheet (https://m3.material.io/components/bottom-sheets/specs): `surface-container-low`
|
|
4
4
|
at elevation 1, 28dp top corners. Full window width up to 640dp; past 640dp it keeps 56dp side
|
|
@@ -11,7 +11,7 @@ import { tv } from 'tailwind-variants';
|
|
|
11
11
|
export const bottomSheet = tv({
|
|
12
12
|
slots: {
|
|
13
13
|
base: [
|
|
14
|
-
'fixed inset-x-spacing-0 top-auto bottom-spacing-0 z-
|
|
14
|
+
'fixed inset-x-spacing-0 top-auto bottom-spacing-0 z-layer-sheet mx-auto mt-auto mb-spacing-0 p-spacing-0',
|
|
15
15
|
'w-full max-w-160 sm:w-[calc(100%-7rem)]',
|
|
16
16
|
'max-h-[calc(100dvh-4.5rem)] sm:max-h-[calc(100dvh-3.5rem)]',
|
|
17
17
|
'overflow-visible bg-transparent outline-none'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
/*
|
|
3
3
|
M3 carousel (https://m3.material.io/components/carousel/specs): 28dp items on `surface`, 8dp
|
|
4
4
|
apart. Multi-browse and hero layouts pad 16dp on both sides and 8dp top/bottom; uncontained
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type ContextMenuVariants = VariantProps<typeof contextMenu>;
|
|
3
3
|
export declare const contextMenu: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
selected: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
export const contextMenu = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
content: `
|
|
5
|
-
z-
|
|
5
|
+
z-layer-popup min-w-48 max-w-sm gap-spacing-50 overflow-y-auto rounded-lg
|
|
6
6
|
bg-md-sys-color-surface-container-high px-spacing-100 py-spacing-50
|
|
7
7
|
shadow-elevation-3 ring-md-sys-color-outline/10
|
|
8
8
|
`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type DialogueVariants = VariantProps<typeof dialogue>;
|
|
3
3
|
export declare const dialogue: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
export const dialogue = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'fixed inset-spacing-0 z-
|
|
5
|
-
inner: 'fixed inset-spacing-0 z-
|
|
4
|
+
base: 'fixed inset-spacing-0 z-layer-modal bg-md-sys-color-scrim/32',
|
|
5
|
+
inner: 'fixed inset-spacing-0 z-layer-modal m-auto h-max w-full outline-none bg-md-sys-color-surface-container-high shadow-elevation-3 flex flex-col rounded-[28px] p-spacing-300 gap-spacing-200',
|
|
6
6
|
headlineContainer: 'md-sys-typescale-headline-small text-md-sys-color-on-surface',
|
|
7
7
|
supportingTextContainer: 'md-sys-typescale-body-medium text-md-sys-color-on-surface-variant',
|
|
8
8
|
buttonContainer: 'mt-spacing-100 flex items-center justify-end gap-spacing-100'
|
|
@@ -18,7 +18,7 @@ export type DialogueProps = DialogueVariants & Dialog.RootProps & {
|
|
|
18
18
|
headline?: string;
|
|
19
19
|
/** The label for the confirmation button. */
|
|
20
20
|
confirmText: string;
|
|
21
|
-
/** The label for the cancel button. Defaults to '
|
|
21
|
+
/** The label for the cancel button. Defaults to 'Cancel'. */
|
|
22
22
|
cancelText?: string;
|
|
23
23
|
/**
|
|
24
24
|
* Optional additional content to be rendered between the supporting text
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type LinkPreviewVariants = VariantProps<typeof linkPreview>;
|
|
3
3
|
export declare const linkPreview: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
export const linkPreview = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'relative z-
|
|
4
|
+
base: 'relative z-layer-popup min-w-48 max-w-sm rounded-2xl bg-md-sys-color-surface-container-high p-spacing-200 shadow-elevation-3 ring-1 ring-md-sys-color-outline/20 overflow-hidden',
|
|
5
5
|
content: 'flex flex-col gap-spacing-100'
|
|
6
6
|
}
|
|
7
7
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type ListVariants = VariantProps<typeof list>;
|
|
3
3
|
export type ListMediaVariants = VariantProps<typeof listMedia>;
|
|
4
4
|
export declare const list: import("tailwind-variants").TVReturnType<{
|
|
@@ -44,7 +44,7 @@ Contrast with `MenuItem` (a single interactive row inside the panel) and
|
|
|
44
44
|
</DropdownMenu.Trigger>
|
|
45
45
|
|
|
46
46
|
<DropdownMenu.Portal>
|
|
47
|
-
<DropdownMenu.Content {align} sideOffset={4} class="z-
|
|
47
|
+
<DropdownMenu.Content {align} sideOffset={4} class="z-layer-popup">
|
|
48
48
|
{#snippet child({ wrapperProps, props, open: isOpen })}
|
|
49
49
|
<div {...wrapperProps} class={wrapperProps.class as any}>
|
|
50
50
|
<div
|
|
@@ -67,7 +67,7 @@ trigger row (`iconProps`/`helper`/`children` label) behaves like a
|
|
|
67
67
|
</DropdownMenu.SubTrigger>
|
|
68
68
|
|
|
69
69
|
<DropdownMenu.Portal>
|
|
70
|
-
<DropdownMenu.SubContent sideOffset={4} class="z-
|
|
70
|
+
<DropdownMenu.SubContent sideOffset={4} class="z-layer-popup">
|
|
71
71
|
{#snippet child({ wrapperProps, props, open: isOpen })}
|
|
72
72
|
<div {...wrapperProps} class={wrapperProps.class as any}>
|
|
73
73
|
<div
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type PaneVariants = VariantProps<typeof pane>;
|
|
3
3
|
export type PaneGridVariants = VariantProps<typeof paneGrid>;
|
|
4
4
|
export type PaneHandleVariants = VariantProps<typeof paneHandle>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
// Static class lookups, keyed by breakpoint then value — every string below is a
|
|
3
3
|
// literal Tailwind candidate, so the JIT scanner picks it up even though it's only
|
|
4
4
|
// ever read through object indexing at runtime (see PaneGrid.svelte's resolveResponsive).
|
|
@@ -211,14 +211,14 @@ export const paneHandle = tv({
|
|
|
211
211
|
});
|
|
212
212
|
export const draggablePane = tv({
|
|
213
213
|
slots: {
|
|
214
|
-
base: 'fixed z-
|
|
214
|
+
base: 'fixed z-layer-pane flex min-w-72 flex-col rounded-md bg-md-sys-color-surface-container-highest shadow-elevation-3 transition-shadow md-sys-motion-effects',
|
|
215
215
|
headerBar: 'relative flex shrink-0 items-center gap-spacing-100 rounded-t-2xl px-spacing-150 py-spacing-100 touch-none select-none md-sys-state-focus-indicator',
|
|
216
216
|
grip: 'shrink-0 text-md-sys-color-on-surface-variant',
|
|
217
217
|
headline: 'flex-1 truncate md-sys-typescale-title-small text-md-sys-color-on-surface',
|
|
218
218
|
actions: 'flex shrink-0 items-center gap-spacing-50',
|
|
219
219
|
content: 'flex flex-1 flex-col min-h-spacing-0 min-w-spacing-0 overflow-auto p-spacing-200 pt-spacing-100',
|
|
220
220
|
resizeHandle: 'absolute touch-none',
|
|
221
|
-
miniBase: 'fixed z-
|
|
221
|
+
miniBase: 'fixed z-layer-pane flex cursor-pointer items-center gap-spacing-100 rounded-full bg-md-sys-color-surface-container-high px-spacing-200 py-spacing-100 shadow-elevation-2 md-sys-state-focus-indicator hover:shadow-elevation-3',
|
|
222
222
|
miniIcon: 'shrink-0 text-md-sys-color-on-surface-variant',
|
|
223
223
|
miniLabel: 'md-sys-typescale-label-large max-w-48 truncate text-md-sys-color-on-surface'
|
|
224
224
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
export const popover = tv({
|
|
3
3
|
slots: {
|
|
4
|
-
base: 'relative z-
|
|
4
|
+
base: 'relative z-layer-popup min-w-48 max-w-sm rounded-2xl bg-md-sys-color-surface-container-high p-spacing-200 shadow-elevation-3 ring-1 ring-md-sys-color-outline/20',
|
|
5
5
|
close: 'absolute top-spacing-150 right-spacing-150',
|
|
6
6
|
header: 'mb-spacing-100 flex items-center justify-between gap-spacing-200',
|
|
7
7
|
title: 'md-sys-typescale-title-small text-md-sys-color-on-surface',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
/*
|
|
3
3
|
M3 side sheet (https://m3.material.io/components/side-sheets/specs). Full height, 256dp wide by
|
|
4
4
|
default and never wider than 400dp. 24dp start/end padding (16dp before a back button), 12dp
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../utils/tv.js';
|
|
2
2
|
export type DateFieldVariants = VariantProps<typeof dateField>;
|
|
3
3
|
export type DateRangeFieldVariants = VariantProps<typeof dateRangeField>;
|
|
4
4
|
export declare const dateRangeField: import("tailwind-variants").TVReturnType<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
export const command = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
base: 'flex h-full w-full flex-col overflow-hidden rounded-2xl bg-md-sys-color-surface-container-high text-md-sys-color-on-surface shadow-elevation-3 ring-1 ring-md-sys-color-outline/20',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
/**
|
|
3
3
|
* M3 Expressive contained search bar (https://m3.material.io/components/search/specs):
|
|
4
4
|
* 56dp, circular, surface-container-high, flat. 48dp leading/trailing targets at a 4dp inset,
|
|
@@ -65,13 +65,13 @@ Powered by bits-ui for accessibility and behavior.
|
|
|
65
65
|
|
|
66
66
|
<Select.Portal disabled={portalDisabled}>
|
|
67
67
|
<Select.Content
|
|
68
|
-
class={cls.content({ class: clsx('z-
|
|
68
|
+
class={cls.content({ class: clsx('z-layer-popup', contentProps?.class) })}
|
|
69
69
|
sideOffset={4}
|
|
70
70
|
align="start"
|
|
71
71
|
{...contentProps}
|
|
72
72
|
>
|
|
73
73
|
{#snippet child({ wrapperProps, props, open })}
|
|
74
|
-
<div {...wrapperProps} class={clsx('z-
|
|
74
|
+
<div {...wrapperProps} class={clsx('z-layer-popup', wrapperProps.class as any)}>
|
|
75
75
|
<div
|
|
76
76
|
{...props}
|
|
77
77
|
class={clsx('relative flex flex-col outline-none', props.class as any)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
export const select = tv({
|
|
3
3
|
slots: {
|
|
4
4
|
root: 'relative w-full',
|
|
@@ -32,7 +32,7 @@ export const select = tv({
|
|
|
32
32
|
group-data-[state=open]:rotate-180
|
|
33
33
|
`,
|
|
34
34
|
content: `
|
|
35
|
-
z-
|
|
35
|
+
z-layer-popup min-w-[var(--bits-select-anchor-width)] max-h-96 overflow-y-auto
|
|
36
36
|
rounded-lg gap-spacing-50 bg-md-sys-color-surface-container-high
|
|
37
37
|
shadow-elevation-3 ring-md-sys-color-outline/10 px-spacing-100 py-spacing-50 outline-none
|
|
38
38
|
`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
/**
|
|
3
3
|
* M3 Expressive slider: an active and an inactive track separated from a bar handle by a 6dp gap.
|
|
4
4
|
* Per-size tokens (track / handle / outer corner / inset icon): XS 16/44/8/–, S 24/44/8/–,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tv } from '
|
|
1
|
+
import { tv } from '../../../utils/tv.js';
|
|
2
2
|
/**
|
|
3
3
|
* M3 Expressive slider: an active and an inactive track separated from a bar handle by a 6dp gap.
|
|
4
4
|
* Per-size tokens (track / handle / outer corner / inset icon): XS 16/44/8/–, S 24/44/8/–,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type VariantProps } from '
|
|
1
|
+
import { type VariantProps } from '../../../utils/tv.js';
|
|
2
2
|
export type ToggleGroupVariants = VariantProps<typeof toggleGroup>;
|
|
3
3
|
export type ToggleGroupItemVariants = VariantProps<typeof toggleGroupItem>;
|
|
4
4
|
export declare const toggleGroup: import("tailwind-variants").TVReturnType<{
|