@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.
Files changed (113) hide show
  1. package/dist/components/badge/theme.js +1 -1
  2. package/dist/components/buttons/button-group/theme.d.ts +1 -1
  3. package/dist/components/buttons/button-group/theme.js +1 -1
  4. package/dist/components/buttons/connected/theme.d.ts +1 -1
  5. package/dist/components/buttons/connected/theme.js +1 -1
  6. package/dist/components/buttons/split-button/SplitButton.svelte +1 -1
  7. package/dist/components/buttons/split-button/theme.d.ts +1 -1
  8. package/dist/components/buttons/split-button/theme.js +1 -1
  9. package/dist/components/buttons/theme.d.ts +1 -1
  10. package/dist/components/buttons/theme.js +3 -3
  11. package/dist/components/cards/theme.js +1 -1
  12. package/dist/components/chips/theme.d.ts +1 -1
  13. package/dist/components/chips/theme.js +1 -1
  14. package/dist/components/containers/action-rail/theme.d.ts +1 -1
  15. package/dist/components/containers/action-rail/theme.js +2 -2
  16. package/dist/components/containers/app/theme.d.ts +1 -1
  17. package/dist/components/containers/app/theme.js +1 -1
  18. package/dist/components/containers/bottom-sheet/theme.d.ts +1 -1
  19. package/dist/components/containers/bottom-sheet/theme.js +2 -2
  20. package/dist/components/containers/carousel/theme.d.ts +1 -1
  21. package/dist/components/containers/carousel/theme.js +1 -1
  22. package/dist/components/containers/context-menu/theme.d.ts +1 -1
  23. package/dist/components/containers/context-menu/theme.js +2 -2
  24. package/dist/components/containers/dialogue/Dialogue.svelte +1 -1
  25. package/dist/components/containers/dialogue/theme.d.ts +1 -1
  26. package/dist/components/containers/dialogue/theme.js +3 -3
  27. package/dist/components/containers/dialogue/types.d.ts +1 -1
  28. package/dist/components/containers/divider/theme.d.ts +1 -1
  29. package/dist/components/containers/divider/theme.js +1 -1
  30. package/dist/components/containers/link-preview/theme.d.ts +1 -1
  31. package/dist/components/containers/link-preview/theme.js +2 -2
  32. package/dist/components/containers/list/theme.d.ts +1 -1
  33. package/dist/components/containers/list/theme.js +1 -1
  34. package/dist/components/containers/menu/Menu.svelte +1 -1
  35. package/dist/components/containers/menu/MenuSub.svelte +1 -1
  36. package/dist/components/containers/menu/theme.d.ts +1 -1
  37. package/dist/components/containers/menu/theme.js +1 -1
  38. package/dist/components/containers/pane/theme.d.ts +1 -1
  39. package/dist/components/containers/pane/theme.js +3 -3
  40. package/dist/components/containers/popover/theme.d.ts +1 -1
  41. package/dist/components/containers/popover/theme.js +2 -2
  42. package/dist/components/containers/scroll-area/theme.js +1 -1
  43. package/dist/components/containers/side-sheet/theme.d.ts +1 -1
  44. package/dist/components/containers/side-sheet/theme.js +1 -1
  45. package/dist/components/date/theme.d.ts +1 -1
  46. package/dist/components/date/theme.js +1 -1
  47. package/dist/components/forms/checkbox/theme.d.ts +1 -1
  48. package/dist/components/forms/checkbox/theme.js +1 -1
  49. package/dist/components/forms/command/theme.d.ts +1 -1
  50. package/dist/components/forms/command/theme.js +1 -1
  51. package/dist/components/forms/pin/theme.d.ts +1 -1
  52. package/dist/components/forms/pin/theme.js +1 -1
  53. package/dist/components/forms/radio-group/theme.d.ts +1 -1
  54. package/dist/components/forms/radio-group/theme.js +1 -1
  55. package/dist/components/forms/search/theme.d.ts +1 -1
  56. package/dist/components/forms/search/theme.js +1 -1
  57. package/dist/components/forms/select/Select.svelte +2 -2
  58. package/dist/components/forms/select/theme.d.ts +1 -1
  59. package/dist/components/forms/select/theme.js +2 -2
  60. package/dist/components/forms/slider/theme.d.ts +1 -1
  61. package/dist/components/forms/slider/theme.js +1 -1
  62. package/dist/components/forms/switch/theme.d.ts +1 -1
  63. package/dist/components/forms/switch/theme.js +1 -1
  64. package/dist/components/forms/textfield/theme.d.ts +1 -1
  65. package/dist/components/forms/textfield/theme.js +1 -1
  66. package/dist/components/forms/toggle-group/theme.d.ts +1 -1
  67. package/dist/components/forms/toggle-group/theme.js +1 -1
  68. package/dist/components/forms/tooltip/theme.d.ts +1 -1
  69. package/dist/components/forms/tooltip/theme.js +2 -2
  70. package/dist/components/misc/ThemeSwitcher.svelte +1 -1
  71. package/dist/components/misc/theme.js +1 -1
  72. package/dist/components/nav/appbar/theme.d.ts +1 -1
  73. package/dist/components/nav/appbar/theme.js +2 -2
  74. package/dist/components/nav/breadcrumb/theme.d.ts +1 -1
  75. package/dist/components/nav/breadcrumb/theme.js +1 -1
  76. package/dist/components/nav/navbar/theme.d.ts +3 -3
  77. package/dist/components/nav/navbar/theme.js +2 -2
  78. package/dist/components/nav/rail/Rail.svelte +4 -2
  79. package/dist/components/nav/rail/theme.d.ts +1 -1
  80. package/dist/components/nav/rail/theme.js +2 -2
  81. package/dist/components/nav/rail/types.d.ts +4 -0
  82. package/dist/components/nav/tabs/theme.d.ts +1 -1
  83. package/dist/components/nav/tabs/theme.js +1 -1
  84. package/dist/components/pill/theme.d.ts +1 -1
  85. package/dist/components/pill/theme.js +1 -1
  86. package/dist/components/progress/LinearProgress.svelte +1 -1
  87. package/dist/components/snackbar/theme.d.ts +1 -1
  88. package/dist/components/snackbar/theme.js +2 -2
  89. package/dist/components/table/theme.d.ts +1 -1
  90. package/dist/components/table/theme.js +1 -1
  91. package/dist/components/time/TimeField.svelte +1 -1
  92. package/dist/components/time/theme.d.ts +1 -1
  93. package/dist/components/time/theme.js +1 -1
  94. package/dist/components/toolbar/theme.d.ts +1 -1
  95. package/dist/components/toolbar/theme.js +2 -2
  96. package/dist/components/typography/body/theme.d.ts +1 -1
  97. package/dist/components/typography/body/theme.js +1 -1
  98. package/dist/components/typography/display/theme.d.ts +1 -1
  99. package/dist/components/typography/display/theme.js +1 -1
  100. package/dist/components/typography/headline/theme.d.ts +1 -1
  101. package/dist/components/typography/headline/theme.js +1 -1
  102. package/dist/components/typography/kbd/theme.d.ts +1 -1
  103. package/dist/components/typography/kbd/theme.js +1 -1
  104. package/dist/components/typography/label/theme.js +1 -1
  105. package/dist/components/typography/title/theme.d.ts +1 -1
  106. package/dist/components/typography/title/theme.js +1 -1
  107. package/dist/index.css +1 -0
  108. package/dist/styles/layers.css +33 -0
  109. package/dist/utils/icon/theme.d.ts +1 -1
  110. package/dist/utils/icon/theme.js +1 -1
  111. package/dist/utils/tv.d.ts +6 -0
  112. package/dist/utils/tv.js +12 -0
  113. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../utils/tv.js';
2
2
  /**
3
3
  * M3 badge (https://m3.material.io/components/badges/specs).
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
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 'tailwind-variants';
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 'tailwind-variants';
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<{
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  import { buttonBase, buttonSizes } from '../theme.js';
3
3
  /*
4
4
  * Connected button group, per https://m3.material.io/components/button-groups/specs: toggle
@@ -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-100">
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 'tailwind-variants';
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 { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  import { buttonBase, buttonSizes } from '../theme.js';
3
3
  /*
4
4
  * Split button, per https://m3.material.io/components/split-button/specs. Both halves take the
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
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 'tailwind-variants';
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-50',
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 'tailwind-variants';
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 { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../utils/tv.js';
2
2
  export type ChipVariants = VariantProps<typeof chip>;
3
3
  export declare const chip: import("tailwind-variants").TVReturnType<{
4
4
  variant: {
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
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 'tailwind-variants';
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 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const actionRail = tv({
3
3
  slots: {
4
- base: 'z-30 flex flex-col items-center justify-center right-spacing-0'
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 'tailwind-variants';
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 'tailwind-variants';
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 'tailwind-variants';
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 'tailwind-variants';
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-40 mx-auto mt-auto mb-spacing-0 p-spacing-0',
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 { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type CarouselVariants = VariantProps<typeof carousel>;
3
3
  export declare const carousel: import("tailwind-variants").TVReturnType<{
4
4
  layout: {
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
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 'tailwind-variants';
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 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const contextMenu = tv({
3
3
  slots: {
4
4
  content: `
5
- z-[100] min-w-48 max-w-sm gap-spacing-50 overflow-y-auto rounded-lg
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
  `,
@@ -22,7 +22,7 @@ on screen until confirmed, dismissed, or a required action has been taken.
22
22
  headline,
23
23
  supportingText,
24
24
  confirmText,
25
- cancelText = 'Отмена',
25
+ cancelText = 'Cancel',
26
26
  confirmAction,
27
27
  loading = false,
28
28
  portalDisabled = false,
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
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 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const dialogue = tv({
3
3
  slots: {
4
- base: 'fixed inset-spacing-0 z-40 bg-md-sys-color-scrim/32',
5
- inner: 'fixed inset-spacing-0 z-50 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',
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 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type HrVariants = VariantProps<typeof hr>;
3
3
  export declare const hr: import("tailwind-variants").TVReturnType<{
4
4
  orientation: {
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const hr = tv({
3
3
  base: 'bg-md-sys-color-outline-variant',
4
4
  variants: {
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
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 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const linkPreview = tv({
3
3
  slots: {
4
- base: 'relative z-[100] 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',
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 'tailwind-variants';
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<{
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  /*
3
3
  M3 Expressive lists (https://m3.material.io/components/lists/specs).
4
4
 
@@ -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-100">
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-100">
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 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  /**
3
3
  * Shared styling for every row-shaped element inside a `Menu`'s floating
4
4
  * panel: `MenuItem`, `MenuCheckboxItem`, `MenuRadioItem`, and `MenuSub`'s
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const menu = tv({
3
3
  slots: {
4
4
  content: `
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
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 'tailwind-variants';
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-[100] flex min-w-72 flex-col rounded-md bg-md-sys-color-surface-container-highest shadow-elevation-3 transition-shadow md-sys-motion-effects',
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-[100] 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',
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,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type PopoverVariants = VariantProps<typeof popover>;
3
3
  export declare const popover: import("tailwind-variants").TVReturnType<{
4
4
  [key: string]: {
@@ -1,7 +1,7 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const popover = tv({
3
3
  slots: {
4
- base: 'relative z-[100] 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',
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 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const scrollArea = tv({
3
3
  slots: {
4
4
  root: 'relative overflow-hidden',
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type SideSheetVariants = VariantProps<typeof sideSheet>;
3
3
  export declare const sideSheet: import("tailwind-variants").TVReturnType<{
4
4
  variant: {
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
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 'tailwind-variants';
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 'tailwind-variants';
1
+ import { tv } from '../../utils/tv.js';
2
2
  export const dateRangeField = tv({
3
3
  slots: {
4
4
  base: `
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export declare const checkbox: import("tailwind-variants").TVReturnType<{
3
3
  state: {
4
4
  unchecked: {};
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const checkbox = tv({
3
3
  slots: {
4
4
  root: 'group inline-flex min-h-spacing-500 select-none items-start gap-spacing-150 text-md-sys-color-on-surface min-h-4.5 cursor-pointer',
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type CommandVariants = VariantProps<typeof command>;
3
3
  export declare const command: import("tailwind-variants").TVReturnType<{
4
4
  [key: string]: {
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
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 { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type PinInputVariants = VariantProps<typeof pinInput>;
3
3
  export declare const pinInput: import("tailwind-variants").TVReturnType<{
4
4
  error: {
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const pinInput = tv({
3
3
  slots: {
4
4
  root: 'flex flex-col gap-spacing-100',
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export declare const radioGroup: import("tailwind-variants").TVReturnType<{
3
3
  orientation: {
4
4
  vertical: {
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const radioGroup = tv({
3
3
  slots: {
4
4
  root: 'flex',
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type SearchVariants = VariantProps<typeof search>;
3
3
  /**
4
4
  * M3 Expressive contained search bar (https://m3.material.io/components/search/specs):
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
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-[100]', contentProps?.class) })}
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-[100]', wrapperProps.class as any)}>
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 { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type SelectVariants = VariantProps<typeof select>;
3
3
  export declare const select: import("tailwind-variants").TVReturnType<{
4
4
  variant: {
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
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-[100] min-w-[var(--bits-select-anchor-width)] max-h-96 overflow-y-auto
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 'tailwind-variants';
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 'tailwind-variants';
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 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export declare const toggle: import("tailwind-variants").TVReturnType<{
3
3
  icons: {
4
4
  checked: {};
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  // M3 Switch:
3
3
  // Track — 52×32dp, 2dp border
4
4
  // Thumb — 16dp unchecked / 24dp checked (scale 1.5×)
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type TextFieldVariants = VariantProps<typeof textfield>;
3
3
  export declare const textfield: import("tailwind-variants").TVReturnType<{
4
4
  variant: {
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const textfield = tv({
3
3
  slots: {
4
4
  base: `
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
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<{
@@ -1,4 +1,4 @@
1
- import { tv } from 'tailwind-variants';
1
+ import { tv } from '../../../utils/tv.js';
2
2
  export const toggleGroup = tv({
3
3
  slots: {
4
4
  root: 'inline-flex h-spacing-500 overflow-hidden rounded-full border border-md-sys-color-outline'
@@ -1,4 +1,4 @@
1
- import { type VariantProps } from 'tailwind-variants';
1
+ import { type VariantProps } from '../../../utils/tv.js';
2
2
  export type TooltipVariants = VariantProps<typeof tooltip>;
3
3
  export declare const tooltip: import("tailwind-variants").TVReturnType<{
4
4
  variant: {