@stll/ui 0.74.0 → 0.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/components/button-classes.d.ts +45 -0
  2. package/dist/components/button-classes.js +49 -0
  3. package/dist/components/button.d.ts +1 -3
  4. package/dist/components/button.js +8 -43
  5. package/dist/components/checkbox.js +1 -1
  6. package/dist/components/composer-tokens.d.ts +9 -1
  7. package/dist/components/composer-tokens.js +9 -1
  8. package/dist/components/composer.d.ts +2 -2
  9. package/dist/components/composer.js +4 -4
  10. package/dist/components/control-face.d.ts +132 -0
  11. package/dist/components/control-face.js +168 -0
  12. package/dist/components/court-badge.d.ts +4 -2
  13. package/dist/components/court-badge.js +5 -3
  14. package/dist/components/document-mark.shared.d.ts +149 -0
  15. package/dist/components/document-mark.shared.js +62 -0
  16. package/dist/components/frame.d.ts +5 -1
  17. package/dist/components/frame.js +2 -2
  18. package/dist/components/input-otp-face.d.ts +4 -0
  19. package/dist/components/input-otp-face.js +15 -0
  20. package/dist/components/input-otp.d.ts +1 -1
  21. package/dist/components/input-otp.js +3 -8
  22. package/dist/components/input.native.js +2 -7
  23. package/dist/components/label-classes.d.ts +20 -0
  24. package/dist/components/label-classes.js +21 -0
  25. package/dist/components/label.d.ts +2 -20
  26. package/dist/components/label.js +2 -19
  27. package/dist/components/landing-shell.d.ts +64 -0
  28. package/dist/components/landing-shell.js +189 -0
  29. package/dist/components/landing.d.ts +2 -39
  30. package/dist/components/landing.js +2 -66
  31. package/dist/components/list-shell.d.ts +39 -0
  32. package/dist/components/list-shell.js +99 -0
  33. package/dist/components/list.d.ts +3 -17
  34. package/dist/components/list.js +2 -42
  35. package/dist/components/segmented-icon-toggle.d.ts +4 -1
  36. package/dist/components/segmented-icon-toggle.js +5 -4
  37. package/dist/components/select-classes.d.ts +10 -0
  38. package/dist/components/select-classes.js +13 -0
  39. package/dist/components/select.js +3 -7
  40. package/dist/components/separator.native.js +2 -1
  41. package/dist/components/sheet.native.js +4 -3
  42. package/dist/components/skeleton.d.ts +3 -1
  43. package/dist/components/skeleton.js +9 -2
  44. package/dist/components/split-button.d.ts +2 -1
  45. package/dist/components/split-button.js +6 -14
  46. package/dist/components/switch.d.ts +1 -5
  47. package/dist/components/switch.js +2 -5
  48. package/dist/components/table-cell.d.ts +35 -0
  49. package/dist/components/table-cell.js +26 -0
  50. package/dist/components/table-chart.js +28 -18
  51. package/dist/components/table-shell.d.ts +126 -0
  52. package/dist/components/table-shell.js +136 -0
  53. package/dist/components/table.d.ts +4 -88
  54. package/dist/components/table.js +21 -70
  55. package/dist/components/tabs-classes.d.ts +8 -0
  56. package/dist/components/tabs-classes.js +10 -0
  57. package/dist/components/tabs.js +4 -3
  58. package/dist/components/toggle-classes.d.ts +13 -0
  59. package/dist/components/toggle-classes.js +10 -0
  60. package/dist/components/toggle-group-classes.d.ts +12 -0
  61. package/dist/components/toggle-group-classes.js +13 -0
  62. package/dist/components/toggle-group.js +3 -2
  63. package/dist/components/tooltip.d.ts +6 -1
  64. package/dist/components/tooltip.js +2 -1
  65. package/dist/components/truncated-text-face.d.ts +33 -0
  66. package/dist/components/truncated-text-face.js +30 -0
  67. package/dist/components/truncated-text.d.ts +1 -6
  68. package/dist/components/truncated-text.js +1 -15
  69. package/dist/components/view-toolbar-classes.d.ts +13 -0
  70. package/dist/components/view-toolbar-classes.js +15 -0
  71. package/dist/components/view-toolbar-shell.d.ts +24 -0
  72. package/dist/components/view-toolbar-shell.js +43 -0
  73. package/dist/components/view-toolbar.d.ts +2 -15
  74. package/dist/components/view-toolbar.js +8 -26
  75. package/dist/components/workspace-shell.d.ts +7 -1
  76. package/dist/components/workspace-shell.js +21 -3
  77. package/dist/data-table/table.js +2 -1
  78. package/dist/icons.d.ts +2 -2
  79. package/dist/icons.js +2 -2
  80. package/dist/index.d.ts +15 -9
  81. package/dist/index.js +11 -8
  82. package/dist/inspector/pane-width.d.ts +1 -1
  83. package/dist/inspector/pane-width.js +2 -2
  84. package/dist/inspector/use-pane-width.d.ts +7 -9
  85. package/dist/inspector/use-pane-width.js +42 -27
  86. package/dist/kanban/card-shell.js +1 -1
  87. package/dist/kanban/column-bands.d.ts +0 -8
  88. package/dist/kanban/column-bands.js +1 -18
  89. package/dist/kanban/column-header-shell.d.ts +39 -0
  90. package/dist/kanban/column-header-shell.js +48 -0
  91. package/dist/kanban/column-header.js +9 -12
  92. package/dist/kanban/index.d.ts +2 -2
  93. package/dist/kanban/index.js +3 -3
  94. package/dist/kanban/layout-tokens.d.ts +18 -1
  95. package/dist/kanban/layout-tokens.js +18 -1
  96. package/dist/kanban/sticky-lane.d.ts +2 -7
  97. package/dist/kanban/sticky-lane.js +1 -6
  98. package/dist/kanban/subgroup-board.js +2 -2
  99. package/package.json +52 -4
@@ -0,0 +1,45 @@
1
+ import { ButtonSize } from "./button.shared.js";
2
+ /** Every size but a menu row, which only a real button takes. */
3
+ export type ButtonFaceSize = Exclude<ButtonSize, "row">;
4
+ /** The box every sized button shares: layout, border, type, focus ring. */
5
+ export declare const BUTTON_BASE_CLASS = "focus-visible:ring-ring focus-visible:ring-offset-background relative inline-flex max-w-full shrink-0 cursor-pointer items-center justify-center gap-2 rounded-lg border text-base font-medium whitespace-nowrap outline-none select-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] focus-visible:ring-2 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-64 sm:text-sm pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0 [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4";
6
+ export declare const BUTTON_DEFAULT_SIZE = "default";
7
+ /**
8
+ * Every shared size (./button.shared.ts) in the web's metrics, but `row`:
9
+ * a menu row's metric belongs to the menu module, and the button adds it.
10
+ */
11
+ export declare const BUTTON_FACE_SIZE_CLASS_NAMES: {
12
+ readonly chip: "h-7 gap-1.5 rounded-full px-2.5 text-xs before:rounded-full sm:text-xs";
13
+ readonly default: "h-9 px-[calc(--spacing(3)-1px)] sm:h-8";
14
+ readonly icon: "size-9 sm:size-8";
15
+ readonly "icon-lg": "size-10 sm:size-9";
16
+ readonly "icon-round": "size-7 rounded-full sm:size-7";
17
+ readonly "icon-sm": "size-8 sm:size-7";
18
+ readonly "icon-xl": "size-11 sm:size-10 [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5";
19
+ readonly "icon-2xs": "size-5 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-4 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3";
20
+ readonly "icon-xs": "size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-6 not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-4 sm:not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-3.5";
21
+ readonly inline: "inline h-auto rounded-sm border-0 p-0 text-start text-[length:inherit] leading-[inherit] font-normal whitespace-normal select-text before:rounded-[calc(var(--radius-sm)-1px)] sm:text-[length:inherit] [&_svg]:mx-0 [&_svg]:inline [&_svg]:align-[-0.125em] [&_svg:not(:last-child)]:me-1";
22
+ readonly "inspector-row": "h-12 justify-start rounded-none px-3";
23
+ readonly lg: "h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9";
24
+ readonly sm: "h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] text-sm sm:h-7 sm:text-xs";
25
+ readonly touch: "min-h-[44px] min-w-[44px] px-[calc(--spacing(3.5)-1px)]";
26
+ readonly xl: "h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5";
27
+ readonly xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5";
28
+ };
29
+ export declare const BUTTON_PRIMARY_STATE_CLASS = "shadow-primary/24 data-pressed:bg-primary/80 [:hover:not([data-pressed])]:bg-primary/90 shadow-xs not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none";
30
+ export declare const BUTTON_VARIANT_CLASS_NAMES: {
31
+ readonly composer: `${string} shadow-primary/24 data-pressed:bg-primary/80 [:hover:not([data-pressed])]:bg-primary/90 shadow-xs not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none hover:bg-foreground/90`;
32
+ readonly default: `${string} shadow-primary/24 data-pressed:bg-primary/80 [:hover:not([data-pressed])]:bg-primary/90 shadow-xs not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none`;
33
+ readonly destructive: `${string} shadow-destructive/8 data-pressed:border-destructive/56 data-pressed:bg-destructive/20 [:hover:not([data-pressed])]:border-destructive/40 [:hover:not([data-pressed])]:bg-destructive/14 active:bg-destructive/18 shadow-xs not-dark:bg-clip-padding not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] [:disabled,:active,[data-pressed]]:shadow-none`;
34
+ readonly "destructive-outline": `${string} dark:bg-input/32 data-pressed:border-destructive/56 data-pressed:bg-destructive/8 [:hover:not([data-pressed])]:border-destructive/32 [:hover:not([data-pressed])]:bg-destructive/4 shadow-xs/5 not-dark:bg-clip-padding not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none`;
35
+ readonly "destructive-ghost": `${string} data-pressed:bg-destructive/14 data-pressed:inset-ring-destructive/32 [:hover:not([data-pressed])]:bg-destructive/10 data-pressed:inset-ring`;
36
+ readonly ghost: `${string} data-pressed:bg-accent data-pressed:inset-ring-input [:hover:not([data-pressed])]:bg-accent data-pressed:shadow-xs/5 data-pressed:inset-ring`;
37
+ readonly link: `${string} underline-offset-4 data-pressed:underline data-pressed:decoration-2 [:hover:not([data-pressed])]:underline`;
38
+ readonly "muted-destructive": `${string} data-pressed:bg-destructive/14 data-pressed:text-destructive data-pressed:inset-ring-destructive/32 [:hover:not([data-pressed])]:bg-destructive/10 [:hover:not([data-pressed])]:text-destructive data-pressed:inset-ring`;
39
+ readonly muted: `${string} data-pressed:bg-accent data-pressed:text-foreground data-pressed:inset-ring-input [:hover:not([data-pressed])]:bg-accent [:hover:not([data-pressed])]:text-foreground data-pressed:shadow-xs/5 data-pressed:inset-ring`;
40
+ readonly outline: `${string} dark:bg-input/32 data-pressed:border-primary/48 data-pressed:bg-accent dark:data-pressed:bg-input/64 [:hover:not([data-pressed])]:bg-accent/50 dark:[:hover:not([data-pressed])]:bg-input/64 shadow-xs/5 not-dark:bg-clip-padding not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none`;
41
+ readonly secondary: `${string} data-pressed:bg-background data-pressed:inset-ring-input active:bg-secondary/80 [:hover:not([data-pressed])]:bg-secondary/90 data-pressed:shadow-xs/5 data-pressed:inset-ring`;
42
+ };
43
+ export declare const BUTTON_LAYOUT_CLASS_NAMES: {
44
+ readonly wrap: "h-auto min-h-11 items-start justify-start py-2 text-start whitespace-normal sm:h-auto";
45
+ };
@@ -0,0 +1,49 @@
1
+ import { TOOLBAR_ROW_HEIGHT } from "../inspector/layout-tokens.js";
2
+ import { BUTTON_VARIANT_TOKENS } from "./button.shared.js";
3
+ // src/components/button-classes.ts
4
+ /** The box every sized button shares: layout, border, type, focus ring. */
5
+ const BUTTON_BASE_CLASS = "focus-visible:ring-ring focus-visible:ring-offset-background relative inline-flex max-w-full shrink-0 cursor-pointer items-center justify-center gap-2 rounded-lg border text-base font-medium whitespace-nowrap outline-none select-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] focus-visible:ring-2 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-64 sm:text-sm pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0 [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4";
6
+ const BUTTON_DEFAULT_SIZE = "default";
7
+ /** A variant's shared colours (./button.shared.ts), before the web's states. */
8
+ const tokens = (variant) => {
9
+ const { surface, label } = BUTTON_VARIANT_TOKENS[variant];
10
+ return label === "" ? surface : `${surface} ${label}`;
11
+ };
12
+ /**
13
+ * Every shared size (./button.shared.ts) in the web's metrics, but `row`:
14
+ * a menu row's metric belongs to the menu module, and the button adds it.
15
+ */
16
+ const BUTTON_FACE_SIZE_CLASS_NAMES = {
17
+ chip: "h-7 gap-1.5 rounded-full px-2.5 text-xs before:rounded-full sm:text-xs",
18
+ default: "h-9 px-[calc(--spacing(3)-1px)] sm:h-8",
19
+ icon: "size-9 sm:size-8",
20
+ "icon-lg": "size-10 sm:size-9",
21
+ "icon-round": "size-7 rounded-full sm:size-7",
22
+ "icon-sm": "size-8 sm:size-7",
23
+ "icon-xl": "size-11 sm:size-10 [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5",
24
+ "icon-2xs": "size-5 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-4 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3",
25
+ "icon-xs": "size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-6 not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-4 sm:not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-3.5",
26
+ inline: "inline h-auto rounded-sm border-0 p-0 text-start text-[length:inherit] leading-[inherit] font-normal whitespace-normal select-text before:rounded-[calc(var(--radius-sm)-1px)] sm:text-[length:inherit] [&_svg]:mx-0 [&_svg]:inline [&_svg]:align-[-0.125em] [&_svg:not(:last-child)]:me-1",
27
+ "inspector-row": `${TOOLBAR_ROW_HEIGHT} justify-start rounded-none px-3`,
28
+ lg: "h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9",
29
+ sm: "h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] text-sm sm:h-7 sm:text-xs",
30
+ touch: "min-h-[44px] min-w-[44px] px-[calc(--spacing(3.5)-1px)]",
31
+ xl: "h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5",
32
+ xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5"
33
+ };
34
+ const BUTTON_PRIMARY_STATE_CLASS = "shadow-primary/24 data-pressed:bg-primary/80 [:hover:not([data-pressed])]:bg-primary/90 shadow-xs not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none";
35
+ const BUTTON_VARIANT_CLASS_NAMES = {
36
+ composer: `${tokens("composer")} ${BUTTON_PRIMARY_STATE_CLASS} hover:bg-foreground/90`,
37
+ default: `${tokens("default")} ${BUTTON_PRIMARY_STATE_CLASS}`,
38
+ destructive: `${tokens("destructive")} shadow-destructive/8 data-pressed:border-destructive/56 data-pressed:bg-destructive/20 [:hover:not([data-pressed])]:border-destructive/40 [:hover:not([data-pressed])]:bg-destructive/14 active:bg-destructive/18 shadow-xs not-dark:bg-clip-padding not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] [:disabled,:active,[data-pressed]]:shadow-none`,
39
+ "destructive-outline": `${tokens("destructive-outline")} dark:bg-input/32 data-pressed:border-destructive/56 data-pressed:bg-destructive/8 [:hover:not([data-pressed])]:border-destructive/32 [:hover:not([data-pressed])]:bg-destructive/4 shadow-xs/5 not-dark:bg-clip-padding not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none`,
40
+ "destructive-ghost": `${tokens("destructive-ghost")} data-pressed:bg-destructive/14 data-pressed:inset-ring-destructive/32 [:hover:not([data-pressed])]:bg-destructive/10 data-pressed:inset-ring`,
41
+ ghost: `${tokens("ghost")} data-pressed:bg-accent data-pressed:inset-ring-input [:hover:not([data-pressed])]:bg-accent data-pressed:shadow-xs/5 data-pressed:inset-ring`,
42
+ link: `${tokens("link")} underline-offset-4 data-pressed:underline data-pressed:decoration-2 [:hover:not([data-pressed])]:underline`,
43
+ "muted-destructive": `${tokens("muted-destructive")} data-pressed:bg-destructive/14 data-pressed:text-destructive data-pressed:inset-ring-destructive/32 [:hover:not([data-pressed])]:bg-destructive/10 [:hover:not([data-pressed])]:text-destructive data-pressed:inset-ring`,
44
+ muted: `${tokens("muted")} data-pressed:bg-accent data-pressed:text-foreground data-pressed:inset-ring-input [:hover:not([data-pressed])]:bg-accent [:hover:not([data-pressed])]:text-foreground data-pressed:shadow-xs/5 data-pressed:inset-ring`,
45
+ outline: `${tokens("outline")} dark:bg-input/32 data-pressed:border-primary/48 data-pressed:bg-accent dark:data-pressed:bg-input/64 [:hover:not([data-pressed])]:bg-accent/50 dark:[:hover:not([data-pressed])]:bg-input/64 shadow-xs/5 not-dark:bg-clip-padding not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none`,
46
+ secondary: `${tokens("secondary")} data-pressed:bg-background data-pressed:inset-ring-input active:bg-secondary/80 [:hover:not([data-pressed])]:bg-secondary/90 data-pressed:shadow-xs/5 data-pressed:inset-ring`
47
+ };
48
+ const BUTTON_LAYOUT_CLASS_NAMES = { wrap: "h-auto min-h-11 items-start justify-start py-2 text-start whitespace-normal sm:h-auto" };
49
+ export { BUTTON_BASE_CLASS, BUTTON_DEFAULT_SIZE, BUTTON_FACE_SIZE_CLASS_NAMES, BUTTON_LAYOUT_CLASS_NAMES, BUTTON_PRIMARY_STATE_CLASS, BUTTON_VARIANT_CLASS_NAMES };
@@ -1,3 +1,4 @@
1
+ import { BUTTON_LAYOUT_CLASS_NAMES } from "./button-classes.js";
1
2
  import { ButtonContract, ButtonSize, ButtonVariant } from "./button.shared.js";
2
3
  import { ReactNode } from "react";
3
4
  import { useRender } from "@base-ui/react/use-render";
@@ -11,9 +12,6 @@ import { useRender } from "@base-ui/react/use-render";
11
12
  * swaps the cursor so the control still reads as unavailable on hover.
12
13
  */
13
14
  declare const buttonAccessibleDisabledClass = "cursor-not-allowed opacity-64";
14
- declare const BUTTON_LAYOUT_CLASS_NAMES: {
15
- readonly wrap: "h-auto min-h-11 items-start justify-start py-2 text-start whitespace-normal sm:h-auto";
16
- };
17
15
  declare const buttonVariants: (props?: ({
18
16
  size?: "chip" | "default" | "icon" | "icon-2xs" | "icon-lg" | "icon-round" | "icon-sm" | "icon-xl" | "icon-xs" | "inline" | "inspector-row" | "lg" | "row" | "sm" | "touch" | "xl" | "xs" | null | undefined;
19
17
  layout?: "wrap" | null | undefined;
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { TOOLBAR_ROW_HEIGHT } from "../inspector/layout-tokens.js";
3
2
  import { BUTTON_DISPOSITION, blockDisabledActivation, blockDisabledKeyActivation, resolveButtonDisposition } from "../lib/button-disposition.js";
4
3
  import { MENU_ROW_CLASS_NAME } from "../lib/menu-row.js";
5
4
  import { rendersNothing } from "../lib/renders-nothing.js";
6
5
  import { cn } from "../lib/utils.js";
7
- import { BUTTON_PLAIN_VARIANT, BUTTON_VARIANT_TOKENS } from "./button.shared.js";
6
+ import { BUTTON_BASE_CLASS, BUTTON_DEFAULT_SIZE, BUTTON_FACE_SIZE_CLASS_NAMES, BUTTON_LAYOUT_CLASS_NAMES, BUTTON_VARIANT_CLASS_NAMES } from "./button-classes.js";
7
+ import { BUTTON_PLAIN_VARIANT } from "./button.shared.js";
8
8
  import { Loader } from "./loader.js";
9
9
  import { renderTooltipTrigger } from "./tooltip-trigger-helper.js";
10
10
  import { TruncatedText } from "./truncated-text.js";
@@ -35,46 +35,11 @@ const buttonAccessibleDisabledClass = "cursor-not-allowed opacity-64";
35
35
  * buttons keep the treatment of their surface instead.
36
36
  */
37
37
  const buttonPressClass = "motion-safe:transition-transform motion-safe:duration-150 ease-out motion-safe:active:scale-[0.98]";
38
- const BUTTON_DEFAULT_SIZE = "default";
39
- /** A variant's shared colours (./button.shared.ts), before the web's states. */
40
- const tokens = (variant) => {
41
- const { surface, label } = BUTTON_VARIANT_TOKENS[variant];
42
- return label === "" ? surface : `${surface} ${label}`;
43
- };
44
38
  const BUTTON_SIZE_CLASS_NAMES = {
45
- chip: "h-7 gap-1.5 rounded-full px-2.5 text-xs before:rounded-full sm:text-xs",
46
- default: "h-9 px-[calc(--spacing(3)-1px)] sm:h-8",
47
- icon: "size-9 sm:size-8",
48
- "icon-lg": "size-10 sm:size-9",
49
- "icon-round": "size-7 rounded-full sm:size-7",
50
- "icon-sm": "size-8 sm:size-7",
51
- "icon-xl": "size-11 sm:size-10 [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5",
52
- "icon-2xs": "size-5 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-4 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3",
53
- "icon-xs": "size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-6 not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-4 sm:not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-3.5",
54
- inline: "inline h-auto rounded-sm border-0 p-0 text-start text-[length:inherit] leading-[inherit] font-normal whitespace-normal select-text before:rounded-[calc(var(--radius-sm)-1px)] sm:text-[length:inherit] [&_svg]:mx-0 [&_svg]:inline [&_svg]:align-[-0.125em] [&_svg:not(:last-child)]:me-1",
55
- "inspector-row": `${TOOLBAR_ROW_HEIGHT} justify-start rounded-none px-3`,
56
- lg: "h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9",
57
- row: `${MENU_ROW_CLASS_NAME} [&_svg]:mx-0`,
58
- sm: "h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] text-sm sm:h-7 sm:text-xs",
59
- touch: "min-h-[44px] min-w-[44px] px-[calc(--spacing(3.5)-1px)]",
60
- xl: "h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5",
61
- xs: "h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5"
62
- };
63
- const BUTTON_PRIMARY_STATE_CLASS = "shadow-primary/24 data-pressed:bg-primary/80 [:hover:not([data-pressed])]:bg-primary/90 shadow-xs not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none";
64
- const BUTTON_VARIANT_CLASS_NAMES = {
65
- composer: `${tokens("composer")} ${BUTTON_PRIMARY_STATE_CLASS} hover:bg-foreground/90`,
66
- default: `${tokens("default")} ${BUTTON_PRIMARY_STATE_CLASS}`,
67
- destructive: `${tokens("destructive")} shadow-destructive/8 data-pressed:border-destructive/56 data-pressed:bg-destructive/20 [:hover:not([data-pressed])]:border-destructive/40 [:hover:not([data-pressed])]:bg-destructive/14 active:bg-destructive/18 shadow-xs not-dark:bg-clip-padding not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] [:disabled,:active,[data-pressed]]:shadow-none`,
68
- "destructive-outline": `${tokens("destructive-outline")} dark:bg-input/32 data-pressed:border-destructive/56 data-pressed:bg-destructive/8 [:hover:not([data-pressed])]:border-destructive/32 [:hover:not([data-pressed])]:bg-destructive/4 shadow-xs/5 not-dark:bg-clip-padding not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none`,
69
- "destructive-ghost": `${tokens("destructive-ghost")} data-pressed:bg-destructive/14 data-pressed:inset-ring-destructive/32 [:hover:not([data-pressed])]:bg-destructive/10 data-pressed:inset-ring`,
70
- ghost: `${tokens("ghost")} data-pressed:bg-accent data-pressed:inset-ring-input [:hover:not([data-pressed])]:bg-accent data-pressed:shadow-xs/5 data-pressed:inset-ring`,
71
- link: `${tokens("link")} underline-offset-4 data-pressed:underline data-pressed:decoration-2 [:hover:not([data-pressed])]:underline`,
72
- "muted-destructive": `${tokens("muted-destructive")} data-pressed:bg-destructive/14 data-pressed:text-destructive data-pressed:inset-ring-destructive/32 [:hover:not([data-pressed])]:bg-destructive/10 [:hover:not([data-pressed])]:text-destructive data-pressed:inset-ring`,
73
- muted: `${tokens("muted")} data-pressed:bg-accent data-pressed:text-foreground data-pressed:inset-ring-input [:hover:not([data-pressed])]:bg-accent [:hover:not([data-pressed])]:text-foreground data-pressed:shadow-xs/5 data-pressed:inset-ring`,
74
- outline: `${tokens("outline")} dark:bg-input/32 data-pressed:border-primary/48 data-pressed:bg-accent dark:data-pressed:bg-input/64 [:hover:not([data-pressed])]:bg-accent/50 dark:[:hover:not([data-pressed])]:bg-input/64 shadow-xs/5 not-dark:bg-clip-padding not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none`,
75
- secondary: `${tokens("secondary")} data-pressed:bg-background data-pressed:inset-ring-input active:bg-secondary/80 [:hover:not([data-pressed])]:bg-secondary/90 data-pressed:shadow-xs/5 data-pressed:inset-ring`
39
+ ...BUTTON_FACE_SIZE_CLASS_NAMES,
40
+ row: `${MENU_ROW_CLASS_NAME} [&_svg]:mx-0`
76
41
  };
77
- const buttonVariants = cva("focus-visible:ring-ring focus-visible:ring-offset-background relative inline-flex max-w-full shrink-0 cursor-pointer items-center justify-center gap-2 rounded-lg border text-base font-medium whitespace-nowrap outline-none select-none before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] focus-visible:ring-2 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-64 sm:text-sm pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&_svg]:pointer-events-none [&_svg]:-mx-0.5 [&_svg]:shrink-0 [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4", {
42
+ const buttonVariants = cva(BUTTON_BASE_CLASS, {
78
43
  compoundVariants: [{
79
44
  className: "[:hover:not([data-pressed])]:bg-transparent",
80
45
  size: "inline",
@@ -96,7 +61,7 @@ const buttonVariants = cva("focus-visible:ring-ring focus-visible:ring-offset-ba
96
61
  },
97
62
  variants: {
98
63
  size: BUTTON_SIZE_CLASS_NAMES,
99
- layout: { wrap: "h-auto min-h-11 items-start justify-start py-2 text-start whitespace-normal sm:h-auto" },
64
+ layout: BUTTON_LAYOUT_CLASS_NAMES,
100
65
  variant: BUTTON_VARIANT_CLASS_NAMES
101
66
  }
102
67
  });
@@ -170,7 +135,7 @@ const BUTTON_SIZE_CONTENT = {
170
135
  * and a plain button lays out its own content, so neither has a one-line
171
136
  * label to cut.
172
137
  */
173
- const cutsLabel = ({ layout, size, variant }) => layout === void 0 && variant !== "plain" && variant !== "link" && size !== "inline" && BUTTON_SIZE_CONTENT[size ?? BUTTON_DEFAULT_SIZE] === BUTTON_CONTENT.text;
138
+ const cutsLabel = ({ layout, size, variant }) => layout === void 0 && variant !== "plain" && variant !== "link" && size !== "inline" && BUTTON_SIZE_CONTENT[size ?? "default"] === BUTTON_CONTENT.text;
174
139
  /**
175
140
  * Each run of adjacent text among the children, cut to the button's width.
176
141
  * Adjacent text (`Save {count} files`) stays one run, as it is one flex item
@@ -207,7 +172,7 @@ const containedLabel = (children) => {
207
172
  return parts;
208
173
  };
209
174
  const implicitTooltip = (size, accessibleName) => {
210
- const content = BUTTON_SIZE_CONTENT[size ?? BUTTON_DEFAULT_SIZE];
175
+ const content = BUTTON_SIZE_CONTENT[size ?? "default"];
211
176
  switch (content) {
212
177
  case BUTTON_CONTENT.icon: return accessibleName;
213
178
  case BUTTON_CONTENT.text: return;
@@ -1,6 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/utils.js";
3
3
  import { TABLE_FIRST_LINE } from "./table-layout.js";
4
+ import { CHECKBOX_CLASS_NAME } from "./toggle-classes.js";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
6
  import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
6
7
  // src/components/checkbox.tsx
@@ -57,7 +58,6 @@ const renderCellCheckbox = ({ appearance, rowLabel, firstLine, checked, ...props
57
58
  })
58
59
  })]
59
60
  });
60
- const CHECKBOX_CLASS_NAME = "border-input bg-background ring-ring focus-visible:ring-offset-background aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/48 dark:not-data-checked:bg-input/32 dark:aria-invalid:ring-destructive/24 relative inline-flex size-4.5 shrink-0 items-center justify-center rounded-sm border shadow-xs/5 outline-none not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-sm)-1px)] not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-visible:ring-2 focus-visible:ring-offset-1 data-disabled:opacity-64 sm:size-4 dark:not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] [[data-disabled],[data-checked],[aria-invalid]]:shadow-none";
61
61
  const CHECKBOX_INDICATOR_CLASS_NAME = "text-primary-foreground data-checked:bg-primary data-indeterminate:text-foreground absolute -inset-px flex items-center justify-center rounded-sm data-unchecked:hidden";
62
62
  const CheckboxGlyph = ({ indeterminate }) => indeterminate ? /* @__PURE__ */ jsxs("svg", {
63
63
  "aria-hidden": "true",
@@ -71,4 +71,12 @@ export declare const COMPOSER_SEND_BUTTON_CLASS = "bg-foreground text-background
71
71
  * law home's scope and jurisdiction): quiet text with a hover surface, so
72
72
  * the row stays subordinate to the box above it.
73
73
  */
74
- export declare const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-2xs";
74
+ export declare const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-2xs";
75
+ /**
76
+ * The slim status row under a composer box (`ComposerStatusRow`), with a
77
+ * middle slot: three columns whose sides share the remaining width, so the
78
+ * middle stays centred. A loading view draws the row from the same class.
79
+ */
80
+ export declare const COMPOSER_STATUS_ROW_CENTERED_CLASS = "text-muted-foreground @container mt-1.5 grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-2 px-1 text-xs";
81
+ /** The status row without a middle slot: a start cluster and an end slot. */
82
+ export declare const COMPOSER_STATUS_ROW_CLASS = "text-muted-foreground mt-1.5 flex items-center justify-between gap-2 px-1 text-xs";
@@ -73,4 +73,12 @@ const COMPOSER_SEND_BUTTON_CLASS = "bg-foreground text-background hover:bg-foreg
73
73
  * the row stays subordinate to the box above it.
74
74
  */
75
75
  const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-2xs";
76
- export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS };
76
+ /**
77
+ * The slim status row under a composer box (`ComposerStatusRow`), with a
78
+ * middle slot: three columns whose sides share the remaining width, so the
79
+ * middle stays centred. A loading view draws the row from the same class.
80
+ */
81
+ const COMPOSER_STATUS_ROW_CENTERED_CLASS = "text-muted-foreground @container mt-1.5 grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-2 px-1 text-xs";
82
+ /** The status row without a middle slot: a start cluster and an end slot. */
83
+ const COMPOSER_STATUS_ROW_CLASS = "text-muted-foreground mt-1.5 flex items-center justify-between gap-2 px-1 text-xs";
84
+ export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_STATUS_ROW_CENTERED_CLASS, COMPOSER_STATUS_ROW_CLASS, COMPOSER_TEXT_CLASS };
@@ -1,4 +1,4 @@
1
- import { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS } from "./composer-tokens.js";
1
+ import { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_STATUS_ROW_CENTERED_CLASS, COMPOSER_STATUS_ROW_CLASS, COMPOSER_TEXT_CLASS } from "./composer-tokens.js";
2
2
  import { ReactNode } from "react";
3
3
  /** Where the placeholder sits over the editor, in each stature. */
4
4
  declare const COMPOSER_PLACEHOLDER_POSITION_CLASS: {
@@ -55,4 +55,4 @@ type ComposerPickerProps<Value extends string> = {
55
55
  * kind of control.
56
56
  */
57
57
  export declare const ComposerPicker: <Value extends string>({ ariaLabel, icon, onChange, options, value }: ComposerPickerProps<Value>) => import("react").JSX.Element;
58
- export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS };
58
+ export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_STATUS_ROW_CENTERED_CLASS, COMPOSER_STATUS_ROW_CLASS, COMPOSER_TEXT_CLASS };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { ChevronDownIcon } from "../icons.js";
3
3
  import { cn } from "../lib/utils.js";
4
- import { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS } from "./composer-tokens.js";
4
+ import { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_STATUS_ROW_CENTERED_CLASS, COMPOSER_STATUS_ROW_CLASS, COMPOSER_TEXT_CLASS } from "./composer-tokens.js";
5
5
  import { DropdownMenu as Menu, DropdownMenuContent as MenuPopup, DropdownMenuRadioGroup as MenuRadioGroup, DropdownMenuRadioItem as MenuRadioItem, DropdownMenuTrigger as MenuTrigger } from "./menu.js";
6
6
  import { TruncatedText } from "./truncated-text.js";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -30,7 +30,7 @@ const ComposerPlaceholder = ({ children, stature }) => /* @__PURE__ */ jsx(Trunc
30
30
  const ComposerStatusRow = ({ start, end, center, className }) => {
31
31
  if (start === void 0 && end === void 0 && center === void 0) return null;
32
32
  if (center !== void 0) return /* @__PURE__ */ jsxs("div", {
33
- className: cn("text-muted-foreground @container mt-1.5 grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-2 px-1 text-xs", className),
33
+ className: cn(COMPOSER_STATUS_ROW_CENTERED_CLASS, className),
34
34
  children: [
35
35
  /* @__PURE__ */ jsx("div", {
36
36
  className: "flex min-w-0 items-center",
@@ -47,7 +47,7 @@ const ComposerStatusRow = ({ start, end, center, className }) => {
47
47
  ]
48
48
  });
49
49
  return /* @__PURE__ */ jsxs("div", {
50
- className: cn("text-muted-foreground mt-1.5 flex items-center justify-between gap-2 px-1 text-xs", className),
50
+ className: cn(COMPOSER_STATUS_ROW_CLASS, className),
51
51
  children: [start, end !== void 0 && /* @__PURE__ */ jsx("div", {
52
52
  className: "ms-auto",
53
53
  children: end
@@ -92,4 +92,4 @@ const ComposerPicker = ({ ariaLabel, icon, onChange, options, value }) => {
92
92
  })
93
93
  })] });
94
94
  };
95
- export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS, ComposerPicker, ComposerPlaceholder, ComposerStatusRow };
95
+ export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_STATUS_ROW_CENTERED_CLASS, COMPOSER_STATUS_ROW_CLASS, COMPOSER_TEXT_CLASS, ComposerPicker, ComposerPlaceholder, ComposerStatusRow };
@@ -0,0 +1,132 @@
1
+ import { BUTTON_LAYOUT_CLASS_NAMES, ButtonFaceSize } from "./button-classes.js";
2
+ import { ButtonTokenVariant } from "./button.shared.js";
3
+ import { ComponentType, ReactNode } from "react";
4
+ import { ControlSize } from "../lib/control-size.js";
5
+ import { SegmentedIconToggleSize } from "./toggle-group-classes.js";
6
+ import { SwitchSize } from "./toggle-classes.js";
7
+ type ButtonFaceProps = {
8
+ children?: ReactNode;
9
+ className?: string | undefined;
10
+ layout?: keyof typeof BUTTON_LAYOUT_CLASS_NAMES;
11
+ size: ButtonFaceSize;
12
+ variant: ButtonTokenVariant;
13
+ };
14
+ /**
15
+ * A button face's classes: the box, size and variant colours of the button
16
+ * it stands in for, unavailable. For the face of a button its caller
17
+ * restyles, on an element of that caller's own.
18
+ */
19
+ export declare const buttonFaceClassName: ({ size, variant }: {
20
+ size: ButtonFaceSize;
21
+ variant: ButtonTokenVariant;
22
+ }) => string;
23
+ /** A button's face: its box, colours and content, disabled. */
24
+ export declare const ButtonFace: ({ children, className, layout, size, variant }: ButtonFaceProps) => import("react").JSX.Element;
25
+ /**
26
+ * A bar on the line of text that waits on data (a chip's current choice, a
27
+ * picker's selection, a message's line): one line box of the surrounding
28
+ * text, so the text that replaces it keeps the line's height.
29
+ */
30
+ export declare const FaceLabelPending: ({ className }: {
31
+ /** The bar's width, roughly the label's. */
32
+ className?: string | undefined;
33
+ }) => import("react").JSX.Element;
34
+ type InputFaceProps = {
35
+ /** The glyph at the field's start (a search field's magnifier). */
36
+ icon?: ReactNode;
37
+ /** The placeholder line, as the field shows it while empty. */
38
+ children?: ReactNode;
39
+ className?: string | undefined;
40
+ size?: ControlSize;
41
+ /** Classes for the line the placeholder sits on (the field's own box). */
42
+ fieldClassName?: string | undefined;
43
+ };
44
+ /** A text field's face: its box and the placeholder. */
45
+ export declare const InputFace: ({ children, className, fieldClassName, icon, size }: InputFaceProps) => import("react").JSX.Element;
46
+ type SelectTriggerFaceProps = {
47
+ /** The chosen value's text, or a bar while it waits on data. */
48
+ children?: ReactNode;
49
+ className?: string | undefined;
50
+ size?: ControlSize;
51
+ };
52
+ /** A select trigger's face: its box, the chosen value and the chevrons. */
53
+ export declare const SelectTriggerFace: ({ children, className, size }: SelectTriggerFaceProps) => import("react").JSX.Element;
54
+ type SegmentedIconToggleFaceProps<T extends string> = {
55
+ options: readonly {
56
+ value: T;
57
+ icon: ComponentType<{
58
+ className?: string;
59
+ }>;
60
+ }[];
61
+ /** The chosen option, or none while the choice is not read yet. */
62
+ value?: T | undefined;
63
+ size?: SegmentedIconToggleSize;
64
+ };
65
+ /**
66
+ * A segmented icon toggle's face (./segmented-icon-toggle.tsx): the tray and
67
+ * its icon items, the chosen one raised as the toggle raises it.
68
+ */
69
+ export declare const SegmentedIconToggleFace: <T extends string>({ options, size, value }: SegmentedIconToggleFaceProps<T>) => import("react").JSX.Element;
70
+ /**
71
+ * The face of a picker's trigger inside a form (a select, a combobox with
72
+ * `variant="field"`): the field box, the current choice, and the up-down
73
+ * chevron at the end.
74
+ */
75
+ export declare const FieldTriggerFace: ({ children, className }: {
76
+ /** The current choice, or a bar while it waits on data. */
77
+ children?: ReactNode;
78
+ className?: string | undefined;
79
+ }) => import("react").JSX.Element;
80
+ /** A checkbox's face: its box, unticked (the value waits on data). */
81
+ export declare const CheckboxFace: ({ className }: {
82
+ className?: string | undefined;
83
+ }) => import("react").JSX.Element;
84
+ /** A switch's face: its track, off (the value waits on data). */
85
+ export declare const SwitchFace: ({ className, size }: {
86
+ className?: string | undefined;
87
+ size?: SwitchSize | undefined;
88
+ }) => import("react").JSX.Element;
89
+ /**
90
+ * A field's caption, as `Label` draws it (its `default` variant), for a
91
+ * label whose text a pending view renders itself (a bar until the app's
92
+ * messages are there).
93
+ */
94
+ export declare const LabelFace: ({ children, className }: {
95
+ children: ReactNode;
96
+ className?: string | undefined;
97
+ }) => import("react").JSX.Element;
98
+ /**
99
+ * A `default` tab strip's face: the well, each tab's box and label, and the
100
+ * raised chip under the tab that opens first.
101
+ */
102
+ export declare const TabsFace: ({ activeIndex, tabs }: {
103
+ /** The tabs in order, each with its label (or a bar). */
104
+ tabs: readonly {
105
+ key: string;
106
+ label: ReactNode;
107
+ }[];
108
+ /** Which tab is open when the strip mounts. */
109
+ activeIndex?: number | undefined;
110
+ }) => import("react").JSX.Element;
111
+ /** A split button's sizes (./split-button.tsx), one class set per part. */
112
+ export type SplitButtonSize = "sm" | "md";
113
+ /** The quiet chrome around both halves. */
114
+ export declare const SPLIT_BUTTON_ROOT_CLASS = "group/split hover:border-border focus-within:border-border has-[[data-popup-open]]:border-border inline-flex shrink-0 items-center rounded-lg border border-transparent p-0.5";
115
+ /** The primary half, over the `sm` ghost button it is built on. */
116
+ export declare const SPLIT_BUTTON_PRIMARY_CLASS: {
117
+ readonly md: "active:bg-accent/80 rounded-md [&_svg]:mx-0 [&_svg]:size-3.5 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3.5 h-8 ps-2 pe-0.5 sm:h-8 pointer-coarse:min-h-11 pointer-coarse:min-w-11";
118
+ readonly sm: "active:bg-accent/80 rounded-md [&_svg]:mx-0 [&_svg]:size-3.5 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3.5 h-7 ps-1.5 pe-0.5 sm:h-7 pointer-coarse:min-h-11 pointer-coarse:min-w-11";
119
+ };
120
+ /** The chevron half, over the `sm` ghost button it is built on. */
121
+ export declare const SPLIT_BUTTON_TRIGGER_CLASS: {
122
+ readonly md: "group-hover/split:bg-muted group-focus-within/split:bg-muted hover:bg-accent active:bg-accent/80 data-popup-open:bg-accent rounded-md [&_svg]:mx-0 h-8 w-4 px-0 sm:h-8 pointer-coarse:min-h-11 pointer-coarse:min-w-11";
123
+ readonly sm: "group-hover/split:bg-muted group-focus-within/split:bg-muted hover:bg-accent active:bg-accent/80 data-popup-open:bg-accent rounded-md [&_svg]:mx-0 h-7 w-3.5 px-0 sm:h-7 pointer-coarse:min-h-11 pointer-coarse:min-w-11";
124
+ };
125
+ /** The chevron that opens the secondary surface. */
126
+ export declare const SplitButtonChevron: () => import("react").JSX.Element;
127
+ /** A split button's face: both halves, the primary glyph, the chevron. */
128
+ export declare const SplitButtonFace: ({ children, size }: {
129
+ children: ReactNode;
130
+ size?: SplitButtonSize;
131
+ }) => import("react").JSX.Element;
132
+ export {};
@@ -0,0 +1,168 @@
1
+ import { ChevronDownIcon, ChevronsUpDownIcon } from "../icons.js";
2
+ import { CONTROL_SIZE } from "../lib/control-size.js";
3
+ import { FIELD_TRIGGER_CLASS_NAME } from "../lib/field-trigger.js";
4
+ import { cn } from "../lib/utils.js";
5
+ import { BUTTON_BASE_CLASS, BUTTON_FACE_SIZE_CLASS_NAMES, BUTTON_LAYOUT_CLASS_NAMES, BUTTON_VARIANT_CLASS_NAMES } from "./button-classes.js";
6
+ import { INPUT_CONTROL_CLASS_NAME, INPUT_ELEMENT_CLASS_NAME, INPUT_SIZE_CLASS_NAMES } from "./input-control.js";
7
+ import { LABEL_VARIANT_CLASS_NAME } from "./label-classes.js";
8
+ import { SELECT_TRIGGER_ICON_CLASS_NAME, SELECT_TRIGGER_SIZE_CLASS_NAMES, SELECT_VALUE_CLASS_NAME } from "./select-classes.js";
9
+ import { InlineSkeleton } from "./skeleton.js";
10
+ import { TABS_LIST_BASE_CLASS, TABS_LIST_DEFAULT_CLASS, TABS_TAB_CLASS } from "./tabs-classes.js";
11
+ import { CHECKBOX_CLASS_NAME, SWITCH_ROOT_CLASS_NAME, SWITCH_ROOT_SIZE_CLASS_NAME } from "./toggle-classes.js";
12
+ import { SEGMENTED_ICON_TOGGLE_ICON_CLASS_NAME, TOGGLE_GROUP_CLASS_NAME, TOGGLE_GROUP_ITEM_CLASS_NAME, segmentedIconToggleClassName, segmentedIconToggleItemClassName } from "./toggle-group-classes.js";
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ // src/components/control-face.tsx
15
+ /** How an unavailable control reads: the dimming a disabled one gets. */
16
+ const FACE_UNAVAILABLE_CLASS = "pointer-events-none opacity-64";
17
+ /**
18
+ * A button face's classes: the box, size and variant colours of the button
19
+ * it stands in for, unavailable. For the face of a button its caller
20
+ * restyles, on an element of that caller's own.
21
+ */
22
+ const buttonFaceClassName = ({ size, variant }) => cn(BUTTON_BASE_CLASS, BUTTON_FACE_SIZE_CLASS_NAMES[size], BUTTON_VARIANT_CLASS_NAMES[variant], size === "inline" && variant === "link" && "underline", FACE_UNAVAILABLE_CLASS);
23
+ /** A button's face: its box, colours and content, disabled. */
24
+ const ButtonFace = ({ children, className, layout, size, variant }) => /* @__PURE__ */ jsx("span", {
25
+ "aria-hidden": "true",
26
+ className: cn(buttonFaceClassName({
27
+ size,
28
+ variant
29
+ }), layout === void 0 ? void 0 : BUTTON_LAYOUT_CLASS_NAMES[layout], className),
30
+ "data-slot": "button-face",
31
+ children
32
+ });
33
+ /**
34
+ * A bar on the line of text that waits on data (a chip's current choice, a
35
+ * picker's selection, a message's line): one line box of the surrounding
36
+ * text, so the text that replaces it keeps the line's height.
37
+ */
38
+ const FaceLabelPending = ({ className = "w-16" }) => /* @__PURE__ */ jsx("span", {
39
+ "aria-hidden": "true",
40
+ className: "inline-flex h-[1lh] items-center align-top",
41
+ "data-slot": "face-label-skeleton",
42
+ children: /* @__PURE__ */ jsx(InlineSkeleton, { className: cn("h-[0.75em]", className) })
43
+ });
44
+ /** A text field's face: its box and the placeholder. */
45
+ const InputFace = ({ children, className, fieldClassName, icon, size = CONTROL_SIZE.default }) => /* @__PURE__ */ jsxs("span", {
46
+ "aria-hidden": "true",
47
+ className: cn(INPUT_CONTROL_CLASS_NAME, "items-center", FACE_UNAVAILABLE_CLASS, className),
48
+ "data-slot": "input-face",
49
+ children: [icon !== void 0 && /* @__PURE__ */ jsx("span", {
50
+ className: "text-muted-foreground pointer-events-none absolute inset-y-0 start-2.5 z-1 flex items-center opacity-80 [&_svg]:size-3.5",
51
+ children: icon
52
+ }), /* @__PURE__ */ jsx("span", {
53
+ className: cn(INPUT_ELEMENT_CLASS_NAME, INPUT_SIZE_CLASS_NAMES[size], "text-foreground-placeholder flex items-center overflow-hidden whitespace-nowrap", icon !== void 0 && "ps-8", fieldClassName),
54
+ children
55
+ })]
56
+ });
57
+ /** A select trigger's face: its box, the chosen value and the chevrons. */
58
+ const SelectTriggerFace = ({ children, className, size = CONTROL_SIZE.default }) => /* @__PURE__ */ jsxs("span", {
59
+ "aria-hidden": "true",
60
+ className: cn(FIELD_TRIGGER_CLASS_NAME, SELECT_TRIGGER_SIZE_CLASS_NAMES[size], FACE_UNAVAILABLE_CLASS, className),
61
+ "data-slot": "select-trigger-face",
62
+ children: [/* @__PURE__ */ jsx("span", {
63
+ className: SELECT_VALUE_CLASS_NAME,
64
+ children
65
+ }), /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(ChevronsUpDownIcon, { className: SELECT_TRIGGER_ICON_CLASS_NAME }) })]
66
+ });
67
+ /**
68
+ * A segmented icon toggle's face (./segmented-icon-toggle.tsx): the tray and
69
+ * its icon items, the chosen one raised as the toggle raises it.
70
+ */
71
+ const SegmentedIconToggleFace = ({ options, size = "compact", value }) => /* @__PURE__ */ jsx("span", {
72
+ "aria-hidden": "true",
73
+ className: cn(TOGGLE_GROUP_CLASS_NAME, segmentedIconToggleClassName(size), FACE_UNAVAILABLE_CLASS),
74
+ "data-slot": "segmented-icon-toggle-face",
75
+ children: options.map((option) => {
76
+ const Icon = option.icon;
77
+ return /* @__PURE__ */ jsx("span", {
78
+ className: cn(BUTTON_BASE_CLASS, BUTTON_FACE_SIZE_CLASS_NAMES["icon-xs"], BUTTON_VARIANT_CLASS_NAMES.muted, TOGGLE_GROUP_ITEM_CLASS_NAME, segmentedIconToggleItemClassName(size)),
79
+ "data-pressed": option.value === value ? "" : void 0,
80
+ children: /* @__PURE__ */ jsx(Icon, { className: SEGMENTED_ICON_TOGGLE_ICON_CLASS_NAME })
81
+ }, option.value);
82
+ })
83
+ });
84
+ /**
85
+ * The face of a picker's trigger inside a form (a select, a combobox with
86
+ * `variant="field"`): the field box, the current choice, and the up-down
87
+ * chevron at the end.
88
+ */
89
+ const FieldTriggerFace = ({ children, className }) => /* @__PURE__ */ jsxs("span", {
90
+ "aria-hidden": "true",
91
+ className: cn(FIELD_TRIGGER_CLASS_NAME, FACE_UNAVAILABLE_CLASS, className),
92
+ "data-slot": "field-trigger-face",
93
+ children: [/* @__PURE__ */ jsx("span", {
94
+ className: "flex min-w-0 flex-1 items-center overflow-hidden whitespace-nowrap",
95
+ children
96
+ }), /* @__PURE__ */ jsx(ChevronsUpDownIcon, { className: "-me-1 size-4.5 opacity-80 sm:size-4" })]
97
+ });
98
+ /** A checkbox's face: its box, unticked (the value waits on data). */
99
+ const CheckboxFace = ({ className }) => /* @__PURE__ */ jsx("span", {
100
+ "aria-hidden": "true",
101
+ className: cn(CHECKBOX_CLASS_NAME, FACE_UNAVAILABLE_CLASS, className),
102
+ "data-slot": "checkbox-face"
103
+ });
104
+ /** A switch's face: its track, off (the value waits on data). */
105
+ const SwitchFace = ({ className, size = "default" }) => /* @__PURE__ */ jsx("span", {
106
+ "aria-hidden": "true",
107
+ className: cn(SWITCH_ROOT_CLASS_NAME, SWITCH_ROOT_SIZE_CLASS_NAME[size], "bg-input", FACE_UNAVAILABLE_CLASS, className),
108
+ "data-slot": "switch-face"
109
+ });
110
+ /**
111
+ * A field's caption, as `Label` draws it (its `default` variant), for a
112
+ * label whose text a pending view renders itself (a bar until the app's
113
+ * messages are there).
114
+ */
115
+ const LabelFace = ({ children, className }) => /* @__PURE__ */ jsx("span", {
116
+ className: cn(LABEL_VARIANT_CLASS_NAME.default, className),
117
+ "data-slot": "label-face",
118
+ children
119
+ });
120
+ /**
121
+ * A `default` tab strip's face: the well, each tab's box and label, and the
122
+ * raised chip under the tab that opens first.
123
+ */
124
+ const TabsFace = ({ activeIndex = 0, tabs }) => /* @__PURE__ */ jsx("span", {
125
+ "aria-hidden": "true",
126
+ className: cn(TABS_LIST_BASE_CLASS, TABS_LIST_DEFAULT_CLASS, "pointer-events-none overflow-hidden"),
127
+ "data-slot": "tabs-face",
128
+ children: tabs.map((tab, index) => /* @__PURE__ */ jsxs("span", {
129
+ className: cn(TABS_TAB_CLASS, index === activeIndex && "text-foreground"),
130
+ children: [index === activeIndex && /* @__PURE__ */ jsx("span", { className: cn("absolute -inset-px", "bg-background dark:bg-input -z-1 rounded-md shadow-sm/5") }), tab.label]
131
+ }, tab.key))
132
+ });
133
+ /** The quiet chrome around both halves. */
134
+ const SPLIT_BUTTON_ROOT_CLASS = "group/split hover:border-border focus-within:border-border has-[[data-popup-open]]:border-border inline-flex shrink-0 items-center rounded-lg border border-transparent p-0.5";
135
+ /** The primary half, over the `sm` ghost button it is built on. */
136
+ const SPLIT_BUTTON_PRIMARY_CLASS = {
137
+ md: "active:bg-accent/80 rounded-md [&_svg]:mx-0 [&_svg]:size-3.5 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3.5 h-8 ps-2 pe-0.5 sm:h-8 pointer-coarse:min-h-11 pointer-coarse:min-w-11",
138
+ sm: "active:bg-accent/80 rounded-md [&_svg]:mx-0 [&_svg]:size-3.5 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3.5 h-7 ps-1.5 pe-0.5 sm:h-7 pointer-coarse:min-h-11 pointer-coarse:min-w-11"
139
+ };
140
+ /** The chevron half, over the `sm` ghost button it is built on. */
141
+ const SPLIT_BUTTON_TRIGGER_CLASS = {
142
+ md: "group-hover/split:bg-muted group-focus-within/split:bg-muted hover:bg-accent active:bg-accent/80 data-popup-open:bg-accent rounded-md [&_svg]:mx-0 h-8 w-4 px-0 sm:h-8 pointer-coarse:min-h-11 pointer-coarse:min-w-11",
143
+ sm: "group-hover/split:bg-muted group-focus-within/split:bg-muted hover:bg-accent active:bg-accent/80 data-popup-open:bg-accent rounded-md [&_svg]:mx-0 h-7 w-3.5 px-0 sm:h-7 pointer-coarse:min-h-11 pointer-coarse:min-w-11"
144
+ };
145
+ /** The chevron that opens the secondary surface. */
146
+ const SplitButtonChevron = () => /* @__PURE__ */ jsx(ChevronDownIcon, {
147
+ "aria-hidden": "true",
148
+ className: "size-[0.65625rem]",
149
+ strokeWidth: 1.5
150
+ });
151
+ /** A split button's face: both halves, the primary glyph, the chevron. */
152
+ const SplitButtonFace = ({ children, size = "md" }) => /* @__PURE__ */ jsxs("span", {
153
+ "aria-hidden": "true",
154
+ className: cn(SPLIT_BUTTON_ROOT_CLASS, "pointer-events-none"),
155
+ "data-slot": "split-button-face",
156
+ children: [/* @__PURE__ */ jsx(ButtonFace, {
157
+ className: SPLIT_BUTTON_PRIMARY_CLASS[size],
158
+ size: "sm",
159
+ variant: "ghost",
160
+ children
161
+ }), /* @__PURE__ */ jsx(ButtonFace, {
162
+ className: SPLIT_BUTTON_TRIGGER_CLASS[size],
163
+ size: "sm",
164
+ variant: "ghost",
165
+ children: /* @__PURE__ */ jsx(SplitButtonChevron, {})
166
+ })]
167
+ });
168
+ export { ButtonFace, CheckboxFace, FaceLabelPending, FieldTriggerFace, InputFace, LabelFace, SPLIT_BUTTON_PRIMARY_CLASS, SPLIT_BUTTON_ROOT_CLASS, SPLIT_BUTTON_TRIGGER_CLASS, SegmentedIconToggleFace, SelectTriggerFace, SplitButtonChevron, SplitButtonFace, SwitchFace, TabsFace, buttonFaceClassName };