@tryghost/shade 0.1.0-alpha.28 → 0.1.0-alpha.29

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 (33) hide show
  1. package/es/components/patterns/image-upload.js +20 -13
  2. package/es/components/patterns/image-upload.js.map +1 -1
  3. package/es/components/ui/dropzone-variants.js +26 -8
  4. package/es/components/ui/dropzone-variants.js.map +1 -1
  5. package/es/components/ui/dropzone.js +2 -2
  6. package/es/components/ui/dropzone.js.map +1 -1
  7. package/es/components/ui/input-surface.js +2 -2
  8. package/es/components/ui/input-surface.js.map +1 -1
  9. package/es/components/ui/pagemenu.js +18 -6
  10. package/es/components/ui/pagemenu.js.map +1 -1
  11. package/es/components/ui/tabs-variants.js +23 -1
  12. package/es/components/ui/tabs-variants.js.map +1 -1
  13. package/es/components/ui/tabs.js +39 -18
  14. package/es/components/ui/tabs.js.map +1 -1
  15. package/es/components.js +2 -2
  16. package/es/index.js +2 -2
  17. package/es/tokens.js +4 -0
  18. package/es/tokens.js.map +1 -1
  19. package/package.json +1 -1
  20. package/styles.css +4 -4
  21. package/tailwind.theme.css +3 -0
  22. package/theme-variables.css +13 -4
  23. package/types/components/patterns/image-upload.d.ts.map +1 -1
  24. package/types/components/ui/dropzone-variants.d.ts +2 -1
  25. package/types/components/ui/dropzone-variants.d.ts.map +1 -1
  26. package/types/components/ui/input-surface.d.ts +2 -2
  27. package/types/components/ui/input-surface.d.ts.map +1 -1
  28. package/types/components/ui/pagemenu.d.ts.map +1 -1
  29. package/types/components/ui/tabs-variants.d.ts +5 -1
  30. package/types/components/ui/tabs-variants.d.ts.map +1 -1
  31. package/types/components/ui/tabs.d.ts.map +1 -1
  32. package/types/tokens.d.ts +1 -1
  33. package/types/tokens.d.ts.map +1 -1
@@ -1,4 +1,5 @@
1
1
  import { cn } from "../../lib/ds-utils.js";
2
+ import { useShade } from "../../providers/shade-context.js";
2
3
  import { Button } from "../ui/button.js";
3
4
  import { imageUploadPreviewVariants } from "./image-upload-variants.js";
4
5
  import { Dropzone } from "../ui/dropzone.js";
@@ -6,20 +7,26 @@ import { imageOverlayButton } from "../ui/image-overlay-button.js";
6
7
  import * as React$1 from "react";
7
8
  import { jsx } from "react/jsx-runtime";
8
9
  //#region src/components/patterns/image-upload.tsx
9
- var ImageUpload = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
10
- ref,
11
- className: cn("relative overflow-hidden rounded-md", className),
12
- "data-slot": "image-upload",
13
- ...props
14
- }));
10
+ var ImageUpload = React$1.forwardRef(({ className, ...props }, ref) => {
11
+ const { admin7Design } = useShade();
12
+ return /* @__PURE__ */ jsx("div", {
13
+ ref,
14
+ className: cn("relative rounded-md", !admin7Design && "overflow-hidden", className),
15
+ "data-slot": "image-upload",
16
+ ...props
17
+ });
18
+ });
15
19
  ImageUpload.displayName = "ImageUpload";
16
- var ImageUploadDropzone = React$1.forwardRef(({ className, variant = "filled", ...props }, ref) => /* @__PURE__ */ jsx(Dropzone, {
17
- ref,
18
- className: cn("size-full text-foreground", className),
19
- "data-slot": "image-upload-dropzone",
20
- variant,
21
- ...props
22
- }));
20
+ var ImageUploadDropzone = React$1.forwardRef(({ className, variant = "filled", ...props }, ref) => {
21
+ const { admin7Design } = useShade();
22
+ return /* @__PURE__ */ jsx(Dropzone, {
23
+ ref,
24
+ className: cn("size-full", !admin7Design && "text-foreground", className),
25
+ "data-slot": "image-upload-dropzone",
26
+ variant,
27
+ ...props
28
+ });
29
+ });
23
30
  ImageUploadDropzone.displayName = "ImageUploadDropzone";
24
31
  var ImageUploadPreview = React$1.forwardRef(({ background, className, ...props }, ref) => /* @__PURE__ */ jsx("div", {
25
32
  ref,
@@ -1 +1 @@
1
- {"version":3,"file":"image-upload.js","names":[],"sources":["../../../src/components/patterns/image-upload.tsx"],"sourcesContent":["import * as React from 'react';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { imageUploadPreviewVariants } from '@/components/patterns/image-upload-variants';\nimport { Button, type ButtonProps } from '@/components/ui/button';\nimport { Dropzone, type DropzoneProps } from '@/components/ui/dropzone';\nimport { cn } from '@/lib/utils';\nimport { imageOverlayButton } from '@/components/ui/image-overlay-button';\n\nconst ImageUpload = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('relative overflow-hidden rounded-md', className)}\n data-slot=\"image-upload\"\n {...props}\n />\n ),\n);\nImageUpload.displayName = 'ImageUpload';\n\nconst ImageUploadDropzone = React.forwardRef<HTMLDivElement, DropzoneProps>(\n ({ className, variant = 'filled', ...props }, ref) => (\n <Dropzone\n ref={ref}\n className={cn('size-full text-foreground', className)}\n data-slot=\"image-upload-dropzone\"\n variant={variant}\n {...props}\n />\n ),\n);\nImageUploadDropzone.displayName = 'ImageUploadDropzone';\n\nexport interface ImageUploadPreviewProps\n extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof imageUploadPreviewVariants> {}\n\nconst ImageUploadPreview = React.forwardRef<HTMLDivElement, ImageUploadPreviewProps>(\n ({ background, className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(imageUploadPreviewVariants({ background }), className)}\n data-slot=\"image-upload-preview\"\n data-testid=\"image-upload-container\"\n {...props}\n />\n ),\n);\nImageUploadPreview.displayName = 'ImageUploadPreview';\n\nconst ImageUploadImage = React.forwardRef<\n HTMLImageElement,\n React.ImgHTMLAttributes<HTMLImageElement>\n>(({ alt = '', className, ...props }, ref) => (\n <img\n ref={ref}\n alt={alt}\n className={cn('size-full object-cover', className)}\n data-slot=\"image-upload-image\"\n {...props}\n />\n));\nImageUploadImage.displayName = 'ImageUploadImage';\n\nconst ImageUploadActions = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'absolute top-2 right-2 flex gap-1 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100',\n className,\n )}\n data-slot=\"image-upload-actions\"\n {...props}\n />\n ),\n);\nImageUploadActions.displayName = 'ImageUploadActions';\n\nconst ImageUploadAction = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, size = 'icon', variant = 'ghost', ...props }, ref) => {\n return (\n <Button\n ref={ref}\n className={cn('size-8', imageOverlayButton(), className)}\n data-slot=\"image-upload-action\"\n size={size}\n variant={variant}\n {...props}\n />\n );\n },\n);\nImageUploadAction.displayName = 'ImageUploadAction';\n\nexport {\n ImageUpload,\n ImageUploadAction,\n ImageUploadActions,\n ImageUploadDropzone,\n ImageUploadImage,\n ImageUploadPreview,\n};\n"],"mappings":";;;;;;;;AASA,IAAM,cAAc,QAAM,YACvB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CACO;CACL,WAAW,GAAG,uCAAuC,SAAS;CAC9D,aAAU;CACV,GAAI;AACL,CAAA,CAEL;AACA,YAAY,cAAc;AAE1B,IAAM,sBAAsB,QAAM,YAC/B,EAAE,WAAW,UAAU,UAAU,GAAG,SAAS,QAC5C,oBAAC,UAAD;CACO;CACL,WAAW,GAAG,6BAA6B,SAAS;CACpD,aAAU;CACD;CACT,GAAI;AACL,CAAA,CAEL;AACA,oBAAoB,cAAc;AAKlC,IAAM,qBAAqB,QAAM,YAC9B,EAAE,YAAY,WAAW,GAAG,SAAS,QACpC,oBAAC,OAAD;CACO;CACL,WAAW,GAAG,2BAA2B,EAAE,WAAW,CAAC,GAAG,SAAS;CACnE,aAAU;CACV,eAAY;CACZ,GAAI;AACL,CAAA,CAEL;AACA,mBAAmB,cAAc;AAEjC,IAAM,mBAAmB,QAAM,YAG5B,EAAE,MAAM,IAAI,WAAW,GAAG,SAAS,QACpC,oBAAC,OAAD;CACO;CACA;CACL,WAAW,GAAG,0BAA0B,SAAS;CACjD,aAAU;CACV,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc;AAE/B,IAAM,qBAAqB,QAAM,YAC9B,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CACO;CACL,WAAW,GACT,0JACA,SACF;CACA,aAAU;CACV,GAAI;AACL,CAAA,CAEL;AACA,mBAAmB,cAAc;AAEjC,IAAM,oBAAoB,QAAM,YAC7B,EAAE,WAAW,OAAO,QAAQ,UAAU,SAAS,GAAG,SAAS,QAAQ;CAClE,OACE,oBAAC,QAAD;EACO;EACL,WAAW,GAAG,UAAU,mBAAmB,GAAG,SAAS;EACvD,aAAU;EACJ;EACG;EACT,GAAI;CACL,CAAA;AAEL,CACF;AACA,kBAAkB,cAAc"}
1
+ {"version":3,"file":"image-upload.js","names":[],"sources":["../../../src/components/patterns/image-upload.tsx"],"sourcesContent":["import * as React from 'react';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { imageUploadPreviewVariants } from '@/components/patterns/image-upload-variants';\nimport { Button, type ButtonProps } from '@/components/ui/button';\nimport { Dropzone, type DropzoneProps } from '@/components/ui/dropzone';\nimport { cn } from '@/lib/utils';\nimport { imageOverlayButton } from '@/components/ui/image-overlay-button';\nimport { useShade } from '@/providers/shade-context';\n\n// In Admin 7, previews own clipping so dropzone borders and focus rings remain visible.\nconst ImageUpload = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const { admin7Design } = useShade();\n return (\n <div\n ref={ref}\n className={cn('relative rounded-md', !admin7Design && 'overflow-hidden', className)}\n data-slot=\"image-upload\"\n {...props}\n />\n );\n },\n);\nImageUpload.displayName = 'ImageUpload';\n\nconst ImageUploadDropzone = React.forwardRef<HTMLDivElement, DropzoneProps>(\n ({ className, variant = 'filled', ...props }, ref) => {\n const { admin7Design } = useShade();\n return (\n <Dropzone\n ref={ref}\n className={cn('size-full', !admin7Design && 'text-foreground', className)}\n data-slot=\"image-upload-dropzone\"\n variant={variant}\n {...props}\n />\n );\n },\n);\nImageUploadDropzone.displayName = 'ImageUploadDropzone';\n\nexport interface ImageUploadPreviewProps\n extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof imageUploadPreviewVariants> {}\n\nconst ImageUploadPreview = React.forwardRef<HTMLDivElement, ImageUploadPreviewProps>(\n ({ background, className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(imageUploadPreviewVariants({ background }), className)}\n data-slot=\"image-upload-preview\"\n data-testid=\"image-upload-container\"\n {...props}\n />\n ),\n);\nImageUploadPreview.displayName = 'ImageUploadPreview';\n\nconst ImageUploadImage = React.forwardRef<\n HTMLImageElement,\n React.ImgHTMLAttributes<HTMLImageElement>\n>(({ alt = '', className, ...props }, ref) => (\n <img\n ref={ref}\n alt={alt}\n className={cn('size-full object-cover', className)}\n data-slot=\"image-upload-image\"\n {...props}\n />\n));\nImageUploadImage.displayName = 'ImageUploadImage';\n\nconst ImageUploadActions = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'absolute top-2 right-2 flex gap-1 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100 [@media(hover:none)]:opacity-100',\n className,\n )}\n data-slot=\"image-upload-actions\"\n {...props}\n />\n ),\n);\nImageUploadActions.displayName = 'ImageUploadActions';\n\nconst ImageUploadAction = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, size = 'icon', variant = 'ghost', ...props }, ref) => {\n return (\n <Button\n ref={ref}\n className={cn('size-8', imageOverlayButton(), className)}\n data-slot=\"image-upload-action\"\n size={size}\n variant={variant}\n {...props}\n />\n );\n },\n);\nImageUploadAction.displayName = 'ImageUploadAction';\n\nexport {\n ImageUpload,\n ImageUploadAction,\n ImageUploadActions,\n ImageUploadDropzone,\n ImageUploadImage,\n ImageUploadPreview,\n};\n"],"mappings":";;;;;;;;;AAWA,IAAM,cAAc,QAAM,YACvB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAChC,MAAM,EAAE,iBAAiB,SAAS;CAClC,OACE,oBAAC,OAAD;EACO;EACL,WAAW,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"class-variance-authority";
5
5
  //#region src/components/ui/dropzone-variants.ts
6
6
  var dropzoneBaseVariants = cva("flex cursor-pointer flex-col items-center justify-center outline-hidden", {
7
- variants: { variant: {
8
- default: cn(inputSurface("self"), "border-2 border-dashed bg-transparent p-10 hover:border-border-strong"),
9
- filled: cn(inputSurface("self"), "border-transparent bg-muted p-3 hover:bg-interactive-hover"),
10
- button: "flex-row",
11
- buttonSecondary: "flex-row"
12
- } },
7
+ variants: {
8
+ variant: {
9
+ default: cn(inputSurface("self"), "border-2 border-dashed bg-transparent p-10 hover:border-border-strong"),
10
+ filled: cn(inputSurface("self"), "border-transparent bg-muted p-3 hover:bg-interactive-hover"),
11
+ button: "flex-row",
12
+ buttonSecondary: "flex-row"
13
+ },
14
+ admin7Design: {
15
+ true: "",
16
+ false: ""
17
+ }
18
+ },
19
+ compoundVariants: [{
20
+ variant: ["default", "filled"],
21
+ admin7Design: true,
22
+ className: "text-muted-foreground [&_svg.lucide]:stroke-[1.25px]"
23
+ }, {
24
+ variant: "default",
25
+ admin7Design: true,
26
+ className: "border"
27
+ }],
13
28
  defaultVariants: { variant: "default" }
14
29
  });
15
- function dropzoneVariants(props = {}, shape = "pill") {
16
- return cn(dropzoneBaseVariants(props), props.variant === "button" && buttonVariants({
30
+ function dropzoneVariants(props = {}, shape = "pill", admin7Design = true) {
31
+ return cn(dropzoneBaseVariants({
32
+ variant: props.variant,
33
+ admin7Design
34
+ }), props.class, props.variant === "button" && buttonVariants({
17
35
  shape,
18
36
  variant: "outline"
19
37
  }), props.variant === "buttonSecondary" && buttonVariants({
@@ -1 +1 @@
1
- {"version":3,"file":"dropzone-variants.js","names":[],"sources":["../../../src/components/ui/dropzone-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport { buttonVariants } from '@/components/ui/button-variants';\nimport { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\nimport type { ControlShape } from '@/providers/shade-context';\n\nconst dropzoneBaseVariants = cva(\n 'flex cursor-pointer flex-col items-center justify-center outline-hidden',\n {\n variants: {\n variant: {\n default: cn(\n inputSurface('self'),\n 'border-2 border-dashed bg-transparent p-10 hover:border-border-strong',\n ),\n filled: cn(\n inputSurface('self'),\n 'border-transparent bg-muted p-3 hover:bg-interactive-hover',\n ),\n button: 'flex-row',\n buttonSecondary: 'flex-row',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\n// Keep the exported variants function useful outside the component, with current defaults.\nfunction dropzoneVariants(\n props: Parameters<typeof dropzoneBaseVariants>[0] = {},\n shape: ControlShape = 'pill',\n) {\n return cn(\n dropzoneBaseVariants(props),\n props.variant === 'button' && buttonVariants({ shape, variant: 'outline' }),\n props.variant === 'buttonSecondary' &&\n buttonVariants({ shape, size: 'sm', variant: 'secondary' }),\n props.className,\n );\n}\n\nexport { dropzoneVariants };\n"],"mappings":";;;;;AAMA,IAAM,uBAAuB,IAC3B,2EACA;CACE,UAAU,EACR,SAAS;EACP,SAAS,GACP,aAAa,MAAM,GACnB,uEACF;EACA,QAAQ,GACN,aAAa,MAAM,GACnB,4DACF;EACA,QAAQ;EACR,iBAAiB;CACnB,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAGA,SAAS,iBACP,QAAoD,CAAC,GACrD,QAAsB,QACtB;CACA,OAAO,GACL,qBAAqB,KAAK,GAC1B,MAAM,YAAY,YAAY,eAAe;EAAE;EAAO,SAAS;CAAU,CAAC,GAC1E,MAAM,YAAY,qBAChB,eAAe;EAAE;EAAO,MAAM;EAAM,SAAS;CAAY,CAAC,GAC5D,MAAM,SACR;AACF"}
1
+ {"version":3,"file":"dropzone-variants.js","names":[],"sources":["../../../src/components/ui/dropzone-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport { buttonVariants } from '@/components/ui/button-variants';\nimport { inputSurface } from '@/components/ui/input-surface';\nimport { cn } from '@/lib/utils';\nimport type { ControlShape } from '@/providers/shade-context';\n\nconst dropzoneBaseVariants = cva(\n 'flex cursor-pointer flex-col items-center justify-center outline-hidden',\n {\n variants: {\n variant: {\n default: cn(\n inputSurface('self'),\n 'border-2 border-dashed bg-transparent p-10 hover:border-border-strong',\n ),\n filled: cn(\n inputSurface('self'),\n 'border-transparent bg-muted p-3 hover:bg-interactive-hover',\n ),\n button: 'flex-row',\n buttonSecondary: 'flex-row',\n },\n admin7Design: {\n true: '',\n false: '',\n },\n },\n compoundVariants: [\n {\n variant: ['default', 'filled'],\n admin7Design: true,\n className: 'text-muted-foreground [&_svg.lucide]:stroke-[1.25px]',\n },\n { variant: 'default', admin7Design: true, className: 'border' },\n ],\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\n// Keep the exported variants function useful outside the component, with current defaults.\nfunction dropzoneVariants(\n props: Omit<NonNullable<Parameters<typeof dropzoneBaseVariants>[0]>, 'admin7Design'> = {},\n shape: ControlShape = 'pill',\n admin7Design = true,\n) {\n return cn(\n dropzoneBaseVariants({ variant: props.variant, admin7Design }),\n props.class,\n props.variant === 'button' && buttonVariants({ shape, variant: 'outline' }),\n props.variant === 'buttonSecondary' &&\n buttonVariants({ shape, size: 'sm', variant: 'secondary' }),\n props.className,\n );\n}\n\nexport { dropzoneVariants };\n"],"mappings":";;;;;AAMA,IAAM,uBAAuB,IAC3B,2EACA;CACE,UAAU;EACR,SAAS;GACP,SAAS,GACP,aAAa,MAAM,GACnB,uEACF;GACA,QAAQ,GACN,aAAa,MAAM,GACnB,4DACF;GACA,QAAQ;GACR,iBAAiB;EACnB;EACA,cAAc;GACZ,MAAM;GACN,OAAO;EACT;CACF;CACA,kBAAkB,CAChB;EACE,SAAS,CAAC,WAAW,QAAQ;EAC7B,cAAc;EACd,WAAW;CACb,GACA;EAAE,SAAS;EAAW,cAAc;EAAM,WAAW;CAAS,CAChE;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAGA,SAAS,iBACP,QAAuF,CAAC,GACxF,QAAsB,QACtB,eAAe,MACf;CACA,OAAO,GACL,qBAAqB;EAAE,SAAS,MAAM;EAAS;CAAa,CAAC,GAC7D,MAAM,OACN,MAAM,YAAY,YAAY,eAAe;EAAE;EAAO,SAAS;CAAU,CAAC,GAC1E,MAAM,YAAY,qBAChB,eAAe;EAAE;EAAO,MAAM;EAAM,SAAS;CAAY,CAAC,GAC5D,MAAM,SACR;AACF"}
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { useDropzone } from "react-dropzone";
7
7
  //#region src/components/ui/dropzone.tsx
8
8
  var Dropzone = React$1.forwardRef(({ accept, multiple = false, maxFiles = multiple ? 0 : 1, disabled = false, noDragEventsBubbling = false, inputId, inputAriaLabel, inputTestId, onDropAccepted, onDropRejected, variant, className, children, ...props }, ref) => {
9
- const { controlShape } = useShade();
9
+ const { controlShape, admin7Design } = useShade();
10
10
  const { getRootProps, getInputProps, rootRef, isDragActive, isDragAccept, isDragReject, isFocused, isFileDialogActive, open } = useDropzone({
11
11
  accept,
12
12
  multiple,
@@ -35,7 +35,7 @@ var Dropzone = React$1.forwardRef(({ accept, multiple = false, maxFiles = multip
35
35
  tabIndex: disabled ? -1 : 0,
36
36
  "aria-disabled": disabled,
37
37
  "aria-invalid": isDragReject || void 0,
38
- className: cn(dropzoneVariants({ variant }, controlShape), disabled && "pointer-events-none cursor-not-allowed opacity-60", isDragReject && "border-state-danger bg-state-danger/10", isDragActive && !isDragReject && !disabled && "border-state-success bg-state-success/10", className)
38
+ className: cn(dropzoneVariants({ variant }, controlShape, admin7Design), disabled && "pointer-events-none cursor-not-allowed opacity-60", isDragReject && "border-state-danger bg-state-danger/10", isDragActive && !isDragReject && !disabled && "border-state-success bg-state-success/10", className)
39
39
  });
40
40
  return /* @__PURE__ */ jsxs("div", {
41
41
  ref: setRootRefs,
@@ -1 +1 @@
1
- {"version":3,"file":"dropzone.js","names":[],"sources":["../../../src/components/ui/dropzone.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Accept, DropEvent, FileRejection, useDropzone } from 'react-dropzone';\nimport { type VariantProps } from 'class-variance-authority';\nimport { dropzoneVariants } from '@/components/ui/dropzone-variants';\nimport { useShade } from '@/providers/shade-context';\nimport { cn } from '@/lib/utils';\n\ntype DropzoneRenderProps = {\n isDragActive: boolean;\n isDragAccept: boolean;\n isDragReject: boolean;\n isFocused: boolean;\n isFileDialogActive: boolean;\n open: () => void;\n};\n\nexport interface DropzoneProps\n extends\n Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>,\n VariantProps<typeof dropzoneVariants> {\n accept?: Accept;\n multiple?: boolean;\n maxFiles?: number;\n disabled?: boolean;\n noDragEventsBubbling?: boolean;\n inputId?: string;\n inputAriaLabel?: string;\n inputTestId?: string;\n onDropAccepted?: (files: File[], event: DropEvent) => void;\n onDropRejected?: (fileRejections: FileRejection[], event: DropEvent) => void;\n children?: React.ReactNode | ((props: DropzoneRenderProps) => React.ReactNode);\n}\n\nexport const Dropzone = React.forwardRef<HTMLDivElement, DropzoneProps>(\n (\n {\n accept,\n multiple = false,\n maxFiles = multiple ? 0 : 1,\n disabled = false,\n noDragEventsBubbling = false,\n inputId,\n inputAriaLabel,\n inputTestId,\n onDropAccepted,\n onDropRejected,\n variant,\n className,\n children,\n ...props\n },\n ref,\n ) => {\n const { controlShape } = useShade();\n const {\n getRootProps,\n getInputProps,\n rootRef,\n isDragActive,\n isDragAccept,\n isDragReject,\n isFocused,\n isFileDialogActive,\n open,\n } = useDropzone({\n accept,\n multiple,\n maxFiles,\n disabled,\n noDragEventsBubbling,\n onDropAccepted,\n onDropRejected,\n });\n\n const content =\n typeof children === 'function'\n ? children({\n isDragActive,\n isDragAccept,\n isDragReject,\n isFocused,\n isFileDialogActive,\n open,\n })\n : children;\n\n const setRootRefs = (element: HTMLDivElement | null) => {\n (rootRef as React.MutableRefObject<HTMLDivElement | null>).current = element;\n\n if (typeof ref === 'function') {\n ref(element);\n } else if (ref) {\n ref.current = element;\n }\n };\n\n const dropzoneRootProps = getRootProps({\n ...props,\n role: 'button',\n tabIndex: disabled ? -1 : 0,\n 'aria-disabled': disabled,\n 'aria-invalid': isDragReject || undefined,\n className: cn(\n dropzoneVariants({ variant }, controlShape),\n disabled && 'pointer-events-none cursor-not-allowed opacity-60',\n isDragReject && 'border-state-danger bg-state-danger/10',\n isDragActive && !isDragReject && !disabled && 'border-state-success bg-state-success/10',\n className,\n ),\n }) as React.HTMLAttributes<HTMLDivElement> & { ref?: React.Ref<HTMLDivElement> };\n\n // Destructure out the ref from getRootProps — we use setRootRefs instead\n const { ref: _, ...rootProps } = dropzoneRootProps; // eslint-disable-line @typescript-eslint/no-unused-vars\n\n return (\n <div ref={setRootRefs} {...rootProps}>\n <input\n {...getInputProps()}\n aria-label={inputAriaLabel}\n data-testid={inputTestId}\n id={inputId}\n />\n {content}\n </div>\n );\n },\n);\n\nDropzone.displayName = 'Dropzone';\n"],"mappings":";;;;;;;AAiCA,IAAa,WAAW,QAAM,YAE1B,EACE,QACA,WAAW,OACX,WAAW,WAAW,IAAI,GAC1B,WAAW,OACX,uBAAuB,OACvB,SACA,gBACA,aACA,gBACA,gBACA,SACA,WACA,UACA,GAAG,SAEL,QACG;CACH,MAAM,EAAE,iBAAiB,SAAS;CAClC,MAAM,EACJ,cACA,eACA,SACA,cACA,cACA,cACA,WACA,oBACA,SACE,YAAY;EACd;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CAED,MAAM,UACJ,OAAO,aAAa,aAChB,SAAS;EACP;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,IACD;CAEN,MAAM,eAAe,YAAmC;EACtD,QAA2D,UAAU;EAErE,IAAI,OAAO,QAAQ,YACjB,IAAI,OAAO;OACN,IAAI,KACT,IAAI,UAAU;CAElB;CAkBA,MAAM,EAAE,KAAK,GAAG,GAAG,cAhBO,aAAa;EACrC,GAAG;EACH,MAAM;EACN,UAAU,WAAW,KAAK;EAC1B,iBAAiB;EACjB,gBAAgB,gBAAgB,KAAA;EAChC,WAAW,GACT,iBAAiB,EAAE,QAAQ,GAAG,YAAY,GAC1C,YAAY,qDACZ,gBAAgB,0CAChB,gBAAgB,CAAC,gBAAgB,CAAC,YAAY,4CAC9C,SACF;CACF,CAGiC;CAEjC,OACE,qBAAC,OAAD;EAAK,KAAK;EAAa,GAAI;YAA3B,CACE,oBAAC,SAAD;GACE,GAAI,cAAc;GAClB,cAAY;GACZ,eAAa;GACb,IAAI;EACL,CAAA,GACA,OACE;;AAET,CACF;AAEA,SAAS,cAAc"}
1
+ {"version":3,"file":"dropzone.js","names":[],"sources":["../../../src/components/ui/dropzone.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Accept, DropEvent, FileRejection, useDropzone } from 'react-dropzone';\nimport { type VariantProps } from 'class-variance-authority';\nimport { dropzoneVariants } from '@/components/ui/dropzone-variants';\nimport { useShade } from '@/providers/shade-context';\nimport { cn } from '@/lib/utils';\n\ntype DropzoneRenderProps = {\n isDragActive: boolean;\n isDragAccept: boolean;\n isDragReject: boolean;\n isFocused: boolean;\n isFileDialogActive: boolean;\n open: () => void;\n};\n\nexport interface DropzoneProps\n extends\n Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>,\n VariantProps<typeof dropzoneVariants> {\n accept?: Accept;\n multiple?: boolean;\n maxFiles?: number;\n disabled?: boolean;\n noDragEventsBubbling?: boolean;\n inputId?: string;\n inputAriaLabel?: string;\n inputTestId?: string;\n onDropAccepted?: (files: File[], event: DropEvent) => void;\n onDropRejected?: (fileRejections: FileRejection[], event: DropEvent) => void;\n children?: React.ReactNode | ((props: DropzoneRenderProps) => React.ReactNode);\n}\n\nexport const Dropzone = React.forwardRef<HTMLDivElement, DropzoneProps>(\n (\n {\n accept,\n multiple = false,\n maxFiles = multiple ? 0 : 1,\n disabled = false,\n noDragEventsBubbling = false,\n inputId,\n inputAriaLabel,\n inputTestId,\n onDropAccepted,\n onDropRejected,\n variant,\n className,\n children,\n ...props\n },\n ref,\n ) => {\n const { controlShape, admin7Design } = useShade();\n const {\n getRootProps,\n getInputProps,\n rootRef,\n isDragActive,\n isDragAccept,\n isDragReject,\n isFocused,\n isFileDialogActive,\n open,\n } = useDropzone({\n accept,\n multiple,\n maxFiles,\n disabled,\n noDragEventsBubbling,\n onDropAccepted,\n onDropRejected,\n });\n\n const content =\n typeof children === 'function'\n ? children({\n isDragActive,\n isDragAccept,\n isDragReject,\n isFocused,\n isFileDialogActive,\n open,\n })\n : children;\n\n const setRootRefs = (element: HTMLDivElement | null) => {\n (rootRef as React.MutableRefObject<HTMLDivElement | null>).current = element;\n\n if (typeof ref === 'function') {\n ref(element);\n } else if (ref) {\n ref.current = element;\n }\n };\n\n const dropzoneRootProps = getRootProps({\n ...props,\n role: 'button',\n tabIndex: disabled ? -1 : 0,\n 'aria-disabled': disabled,\n 'aria-invalid': isDragReject || undefined,\n className: cn(\n dropzoneVariants({ variant }, controlShape, admin7Design),\n disabled && 'pointer-events-none cursor-not-allowed opacity-60',\n isDragReject && 'border-state-danger bg-state-danger/10',\n isDragActive && !isDragReject && !disabled && 'border-state-success bg-state-success/10',\n className,\n ),\n }) as React.HTMLAttributes<HTMLDivElement> & { ref?: React.Ref<HTMLDivElement> };\n\n // Destructure out the ref from getRootProps — we use setRootRefs instead\n const { ref: _, ...rootProps } = dropzoneRootProps; // eslint-disable-line @typescript-eslint/no-unused-vars\n\n return (\n <div ref={setRootRefs} {...rootProps}>\n <input\n {...getInputProps()}\n aria-label={inputAriaLabel}\n data-testid={inputTestId}\n id={inputId}\n />\n {content}\n </div>\n );\n },\n);\n\nDropzone.displayName = 'Dropzone';\n"],"mappings":";;;;;;;AAiCA,IAAa,WAAW,QAAM,YAE1B,EACE,QACA,WAAW,OACX,WAAW,WAAW,IAAI,GAC1B,WAAW,OACX,uBAAuB,OACvB,SACA,gBACA,aACA,gBACA,gBACA,SACA,WACA,UACA,GAAG,SAEL,QACG;CACH,MAAM,EAAE,cAAc,iBAAiB,SAAS;CAChD,MAAM,EACJ,cACA,eACA,SACA,cACA,cACA,cACA,WACA,oBACA,SACE,YAAY;EACd;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CAED,MAAM,UACJ,OAAO,aAAa,aAChB,SAAS;EACP;EACA;EACA;EACA;EACA;EACA;CACF,CAAC,IACD;CAEN,MAAM,eAAe,YAAmC;EACtD,QAA2D,UAAU;EAErE,IAAI,OAAO,QAAQ,YACjB,IAAI,OAAO;OACN,IAAI,KACT,IAAI,UAAU;CAElB;CAkBA,MAAM,EAAE,KAAK,GAAG,GAAG,cAhBO,aAAa;EACrC,GAAG;EACH,MAAM;EACN,UAAU,WAAW,KAAK;EAC1B,iBAAiB;EACjB,gBAAgB,gBAAgB,KAAA;EAChC,WAAW,GACT,iBAAiB,EAAE,QAAQ,GAAG,cAAc,YAAY,GACxD,YAAY,qDACZ,gBAAgB,0CAChB,gBAAgB,CAAC,gBAAgB,CAAC,YAAY,4CAC9C,SACF;CACF,CAGiC;CAEjC,OACE,qBAAC,OAAD;EAAK,KAAK;EAAa,GAAI;YAA3B,CACE,oBAAC,SAAD;GACE,GAAI,cAAc;GAClB,cAAY;GACZ,eAAa;GACb,IAAI;EACL,CAAA,GACA,OACE;;AAET,CACF;AAEA,SAAS,cAAc"}
@@ -3,7 +3,7 @@ import { cn } from "../../lib/ds-utils.js";
3
3
  /**
4
4
  * Shared visual recipe for input-like surfaces (Input, Textarea, InputGroup, Select trigger).
5
5
  *
6
- * The recipe owns: border, background, radius, transition, focus ring, invalid state.
6
+ * The recipe owns: border, background, radius, shadow, transition, focus ring, invalid state.
7
7
  * Consumers add their own size, padding, typography, and component-specific tweaks.
8
8
  *
9
9
  * `inputSurface()` covers the two common shapes:
@@ -33,7 +33,7 @@ import { cn } from "../../lib/ds-utils.js";
33
33
  * )} />
34
34
  */
35
35
  var inputSurfaceClasses = {
36
- base: "rounded-field border border-field-border bg-field-surface transition-colors",
36
+ base: "rounded-field border border-field-border bg-field-surface shadow-field transition-colors",
37
37
  focusSelf: "focus-visible:outline-hidden focus-visible:border-focus-ring focus-visible:ring-2 focus-visible:ring-focus-ring/25",
38
38
  focusWithin: "has-[:focus-visible]:outline-hidden has-[:focus-visible]:border-focus-ring has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-ring/25",
39
39
  invalidSelf: "aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40",
@@ -1 +1 @@
1
- {"version":3,"file":"input-surface.js","names":[],"sources":["../../../src/components/ui/input-surface.ts"],"sourcesContent":["import { cn } from '@/lib/utils';\n\n/**\n * Shared visual recipe for input-like surfaces (Input, Textarea, InputGroup, Select trigger).\n *\n * The recipe owns: border, background, radius, transition, focus ring, invalid state.\n * Consumers add their own size, padding, typography, and component-specific tweaks.\n *\n * `inputSurface()` covers the two common shapes:\n * - `'self'` — apply directly to the focusable element (e.g. <input>, <textarea>, <button>).\n * - `'within'` — apply to a wrapper that contains a focusable child; focus and invalid\n * styles are derived from any focusable descendant via `:has()`.\n *\n * For unusual cases (e.g. a wrapper that should only react to a specific control element,\n * not any focusable descendant) compose `inputSurfaceClasses` atoms manually.\n *\n * @example\n * // Direct on a focusable element\n * <input className={cn(inputSurface('self'), 'h-9 px-3 ...')} />\n *\n * // Wrapper with any focused descendant driving focus state\n * <div className={cn(inputSurface('within'), 'flex h-9 items-center ...')}>\n * <input ... />\n * </div>\n *\n * // Custom scope: only one specific child triggers focus state. Compose from atoms\n * // so Tailwind can statically detect the literal class string.\n * <div className={cn(\n * inputSurfaceClasses.base,\n * inputSurfaceClasses.invalidWithin,\n * // literal class string for Tailwind JIT to pick up\n * 'has-[[data-slot=control]:focus-visible]:border-focus-ring ...'\n * )} />\n */\nexport const inputSurfaceClasses = {\n base: 'rounded-field border border-field-border bg-field-surface transition-colors',\n focusSelf:\n 'focus-visible:outline-hidden focus-visible:border-focus-ring focus-visible:ring-2 focus-visible:ring-focus-ring/25',\n focusWithin:\n 'has-[:focus-visible]:outline-hidden has-[:focus-visible]:border-focus-ring has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-ring/25',\n invalidSelf:\n 'aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40',\n invalidWithin:\n 'has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40',\n disabledSelf: 'disabled:cursor-not-allowed disabled:opacity-50',\n disabledFieldSelf:\n 'disabled:bg-field-disabled-surface disabled:text-muted-foreground disabled:opacity-100 disabled:hover:bg-field-disabled-surface',\n} as const;\n\nexport function inputSurface(mode: 'self' | 'within' = 'self') {\n if (mode === 'self') {\n return cn(\n inputSurfaceClasses.base,\n inputSurfaceClasses.focusSelf,\n inputSurfaceClasses.invalidSelf,\n inputSurfaceClasses.disabledSelf,\n );\n }\n return cn(\n inputSurfaceClasses.base,\n inputSurfaceClasses.focusWithin,\n inputSurfaceClasses.invalidWithin,\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,IAAa,sBAAsB;CACjC,MAAM;CACN,WACE;CACF,aACE;CACF,aACE;CACF,eACE;CACF,cAAc;CACd,mBACE;AACJ;AAEA,SAAgB,aAAa,OAA0B,QAAQ;CAC7D,IAAI,SAAS,QACX,OAAO,GACL,oBAAoB,MACpB,oBAAoB,WACpB,oBAAoB,aACpB,oBAAoB,YACtB;CAEF,OAAO,GACL,oBAAoB,MACpB,oBAAoB,aACpB,oBAAoB,aACtB;AACF"}
1
+ {"version":3,"file":"input-surface.js","names":[],"sources":["../../../src/components/ui/input-surface.ts"],"sourcesContent":["import { cn } from '@/lib/utils';\n\n/**\n * Shared visual recipe for input-like surfaces (Input, Textarea, InputGroup, Select trigger).\n *\n * The recipe owns: border, background, radius, shadow, transition, focus ring, invalid state.\n * Consumers add their own size, padding, typography, and component-specific tweaks.\n *\n * `inputSurface()` covers the two common shapes:\n * - `'self'` — apply directly to the focusable element (e.g. <input>, <textarea>, <button>).\n * - `'within'` — apply to a wrapper that contains a focusable child; focus and invalid\n * styles are derived from any focusable descendant via `:has()`.\n *\n * For unusual cases (e.g. a wrapper that should only react to a specific control element,\n * not any focusable descendant) compose `inputSurfaceClasses` atoms manually.\n *\n * @example\n * // Direct on a focusable element\n * <input className={cn(inputSurface('self'), 'h-9 px-3 ...')} />\n *\n * // Wrapper with any focused descendant driving focus state\n * <div className={cn(inputSurface('within'), 'flex h-9 items-center ...')}>\n * <input ... />\n * </div>\n *\n * // Custom scope: only one specific child triggers focus state. Compose from atoms\n * // so Tailwind can statically detect the literal class string.\n * <div className={cn(\n * inputSurfaceClasses.base,\n * inputSurfaceClasses.invalidWithin,\n * // literal class string for Tailwind JIT to pick up\n * 'has-[[data-slot=control]:focus-visible]:border-focus-ring ...'\n * )} />\n */\nexport const inputSurfaceClasses = {\n base: 'rounded-field border border-field-border bg-field-surface shadow-field transition-colors',\n focusSelf:\n 'focus-visible:outline-hidden focus-visible:border-focus-ring focus-visible:ring-2 focus-visible:ring-focus-ring/25',\n focusWithin:\n 'has-[:focus-visible]:outline-hidden has-[:focus-visible]:border-focus-ring has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-ring/25',\n invalidSelf:\n 'aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40',\n invalidWithin:\n 'has-[[aria-invalid=true]]:border-destructive has-[[aria-invalid=true]]:ring-destructive/20 dark:has-[[aria-invalid=true]]:ring-destructive/40',\n disabledSelf: 'disabled:cursor-not-allowed disabled:opacity-50',\n disabledFieldSelf:\n 'disabled:bg-field-disabled-surface disabled:text-muted-foreground disabled:opacity-100 disabled:hover:bg-field-disabled-surface',\n} as const;\n\nexport function inputSurface(mode: 'self' | 'within' = 'self') {\n if (mode === 'self') {\n return cn(\n inputSurfaceClasses.base,\n inputSurfaceClasses.focusSelf,\n inputSurfaceClasses.invalidSelf,\n inputSurfaceClasses.disabledSelf,\n );\n }\n return cn(\n inputSurfaceClasses.base,\n inputSurfaceClasses.focusWithin,\n inputSurfaceClasses.invalidWithin,\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,IAAa,sBAAsB;CACjC,MAAM;CACN,WACE;CACF,aACE;CACF,aACE;CACF,eACE;CACF,cAAc;CACd,mBACE;AACJ;AAEA,SAAgB,aAAa,OAA0B,QAAQ;CAC7D,IAAI,SAAS,QACX,OAAO,GACL,oBAAoB,MACpB,oBAAoB,WACpB,oBAAoB,aACpB,oBAAoB,YACtB;CAEF,OAAO,GACL,oBAAoB,MACpB,oBAAoB,aACpB,oBAAoB,aACtB;AACF"}
@@ -1,19 +1,25 @@
1
1
  import { cn } from "../../lib/ds-utils.js";
2
+ import { useShade } from "../../providers/shade-context.js";
2
3
  import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "./dropdown-menu.js";
3
4
  import { Button } from "./button.js";
5
+ import { tabSurfaceVariants } from "./tabs-variants.js";
4
6
  import { MoreHorizontal } from "lucide-react";
5
7
  import * as React$1 from "react";
6
8
  import { jsx, jsxs } from "react/jsx-runtime";
7
9
  //#region src/components/ui/pagemenu.tsx
8
10
  var PageMenuContext = React$1.createContext(null);
9
11
  var PageMenu = React$1.forwardRef(({ children, responsive = false, value, defaultValue, onValueChange, className, ...props }, ref) => {
12
+ const { admin7Design } = useShade();
10
13
  const [visibleCount, setVisibleCount] = React$1.useState(React$1.Children.count(children));
11
14
  const [resizeKey, setResizeKey] = React$1.useState(0);
12
15
  const containerRef = React$1.useRef(null);
13
16
  const measureRef = React$1.useRef(null);
17
+ const overflowTriggerRef = React$1.useRef(null);
14
18
  const [uncontrolledValue, setUncontrolledValue] = React$1.useState(defaultValue);
15
19
  const isControlled = value !== void 0;
16
20
  const activeValue = isControlled ? value : uncontrolledValue;
21
+ const measuredActiveValue = admin7Design ? activeValue : void 0;
22
+ const measuredVisibleCount = admin7Design ? visibleCount : void 0;
17
23
  const handleSelect = React$1.useCallback((nextValue) => {
18
24
  if (nextValue === activeValue) return;
19
25
  if (!isControlled) setUncontrolledValue(nextValue);
@@ -37,8 +43,8 @@ var PageMenu = React$1.forwardRef(({ children, responsive = false, value, defaul
37
43
  const container = containerRef.current;
38
44
  const measureContainer = measureRef.current;
39
45
  const containerWidth = container.clientWidth;
40
- const dropdownWidth = 60;
41
- const gap = 6;
46
+ const dropdownWidth = admin7Design ? overflowTriggerRef.current?.getBoundingClientRect().width || 60 : 60;
47
+ const gap = admin7Design ? Number.parseFloat(getComputedStyle(container).columnGap) || 0 : 6;
42
48
  const items = Array.from(measureContainer.children);
43
49
  let totalWidth = 0;
44
50
  for (let i = 0; i < items.length; i++) {
@@ -54,7 +60,7 @@ var PageMenu = React$1.forwardRef(({ children, responsive = false, value, defaul
54
60
  for (let i = 0; i < items.length; i++) {
55
61
  const itemWidth = items[i].getBoundingClientRect().width;
56
62
  const newWidth = currentWidth + (i > 0 ? gap : 0) + itemWidth;
57
- if (newWidth + dropdownWidth <= containerWidth) {
63
+ if (newWidth + (admin7Design ? gap : 0) + dropdownWidth <= containerWidth) {
58
64
  currentWidth = newWidth;
59
65
  count += 1;
60
66
  } else break;
@@ -65,7 +71,10 @@ var PageMenu = React$1.forwardRef(({ children, responsive = false, value, defaul
65
71
  }, [
66
72
  responsive,
67
73
  children,
68
- resizeKey
74
+ resizeKey,
75
+ admin7Design,
76
+ measuredActiveValue,
77
+ measuredVisibleCount
69
78
  ]);
70
79
  React$1.useLayoutEffect(() => {
71
80
  if (!responsive || !containerRef.current) return;
@@ -111,7 +120,9 @@ var PageMenu = React$1.forwardRef(({ children, responsive = false, value, defaul
111
120
  }), hasOverflow && /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
112
121
  asChild: true,
113
122
  children: /* @__PURE__ */ jsx(Button, {
114
- className: cn("h-[30px] flex-shrink-0 px-3 py-2", selectedHiddenItem && "bg-accent text-accent-foreground"),
123
+ ref: overflowTriggerRef,
124
+ className: cn("h-[30px] flex-shrink-0 px-3 py-2", admin7Design ? tabSurfaceVariants({ admin7Design }) : selectedHiddenItem && "bg-accent text-accent-foreground"),
125
+ ...admin7Design ? { "data-state": selectedHiddenItem ? "active" : void 0 } : {},
115
126
  variant: "ghost",
116
127
  children: selectedHiddenItem ? /* @__PURE__ */ jsx("span", {
117
128
  className: "max-w-[100px] truncate",
@@ -140,11 +151,12 @@ var PageMenu = React$1.forwardRef(({ children, responsive = false, value, defaul
140
151
  PageMenu.displayName = "PageMenu";
141
152
  var PageMenuItem = React$1.forwardRef(({ children, value, className, onClick, ...props }, ref) => {
142
153
  const pageMenu = React$1.useContext(PageMenuContext);
154
+ const { admin7Design } = useShade();
143
155
  const isActive = pageMenu?.value === value;
144
156
  return /* @__PURE__ */ jsx(Button, {
145
157
  ref,
146
158
  "aria-current": isActive ? "page" : void 0,
147
- className: cn("relative gap-1.5 px-3 text-control font-medium text-text-secondary hover:text-foreground focus-visible:ring-0", "data-[state=active]:bg-muted-foreground/10 data-[state=active]:text-foreground", "dark:hover:bg-tab-hover dark:data-[state=active]:bg-tab-active dark:data-[state=active]:hover:bg-tab-active", className),
159
+ className: cn("relative gap-1.5 px-3 text-control font-medium", admin7Design ? tabSurfaceVariants({ admin7Design }) : "text-text-secondary hover:text-foreground focus-visible:ring-0 data-[state=active]:bg-muted-foreground/10 data-[state=active]:text-foreground dark:hover:bg-tab-hover dark:data-[state=active]:bg-tab-active dark:data-[state=active]:hover:bg-tab-active", className),
148
160
  "data-state": isActive ? "active" : void 0,
149
161
  variant: "ghost",
150
162
  onClick: (event) => {
@@ -1 +1 @@
1
- {"version":3,"file":"pagemenu.js","names":[],"sources":["../../../src/components/ui/pagemenu.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '@/lib/utils';\nimport { MoreHorizontal } from 'lucide-react';\nimport { Button, type ButtonProps } from './button';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from './dropdown-menu';\n\ninterface PageMenuContextValue {\n value?: string;\n onSelect: (value: string) => void;\n}\n\nconst PageMenuContext = React.createContext<PageMenuContextValue | null>(null);\n\nexport interface PageMenuProps {\n children: React.ReactNode;\n responsive?: boolean;\n /** The active item's value. Pass with `onValueChange` to control the menu, e.g. from the current route. */\n value?: string;\n /** The item active on first render when the menu manages its own selection. */\n defaultValue?: string;\n /** Called with the item's value when the user picks a different item. */\n onValueChange?: (value: string) => void;\n className?: string;\n}\n\nexport interface PageMenuItemProps extends Omit<ButtonProps, 'children'> {\n value: string;\n children: React.ReactNode;\n}\n\nconst PageMenu = React.forwardRef<HTMLDivElement, PageMenuProps>(\n (\n { children, responsive = false, value, defaultValue, onValueChange, className, ...props },\n ref,\n ) => {\n const [visibleCount, setVisibleCount] = React.useState(React.Children.count(children));\n const [resizeKey, setResizeKey] = React.useState(0);\n const containerRef = React.useRef<HTMLDivElement>(null);\n const measureRef = React.useRef<HTMLDivElement>(null);\n\n // Controlled when `value` is passed, otherwise tracks its own selection\n // starting from `defaultValue` (same contract as Radix Tabs).\n const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue);\n const isControlled = value !== undefined;\n const activeValue = isControlled ? value : uncontrolledValue;\n\n const handleSelect = React.useCallback(\n (nextValue: string) => {\n if (nextValue === activeValue) {\n return;\n }\n if (!isControlled) {\n setUncontrolledValue(nextValue);\n }\n onValueChange?.(nextValue);\n },\n [activeValue, isControlled, onValueChange],\n );\n\n const contextValue = React.useMemo(\n () => ({ value: activeValue, onSelect: handleSelect }),\n [activeValue, handleSelect],\n );\n\n React.useLayoutEffect(() => {\n if (!responsive || !containerRef.current || !measureRef.current) {\n setVisibleCount(React.Children.count(children));\n return;\n }\n\n // Use requestAnimationFrame to ensure DOM is fully rendered\n const calculateSizes = () => {\n if (!containerRef.current || !measureRef.current) {\n return;\n }\n\n const container = containerRef.current;\n const measureContainer = measureRef.current;\n const containerWidth = container.clientWidth;\n const dropdownWidth = 60; // Space needed for dropdown button\n const gap = 6; // Gap between items (gap-1.5)\n\n // Get all child elements from the measure container\n const items = Array.from(measureContainer.children) as HTMLElement[];\n\n // First, check if ALL items fit without any dropdown\n let totalWidth = 0;\n for (let i = 0; i < items.length; i++) {\n const itemWidth = items[i].getBoundingClientRect().width;\n const gapWidth = i > 0 ? gap : 0;\n totalWidth += gapWidth + itemWidth;\n }\n\n // If all items fit with some buffer space, show them all\n const safetyBuffer = 8; // Add 8px buffer for safe rendering\n if (totalWidth <= containerWidth - safetyBuffer) {\n setVisibleCount(items.length);\n return;\n }\n\n // Otherwise, calculate how many fit with dropdown space reserved\n let currentWidth = 0;\n let count = 0;\n\n for (let i = 0; i < items.length; i++) {\n const itemWidth = items[i].getBoundingClientRect().width;\n const gapWidth = i > 0 ? gap : 0;\n const newWidth = currentWidth + gapWidth + itemWidth;\n\n // Reserve space for dropdown (since we know not all items fit)\n const totalNeededWidth = newWidth + dropdownWidth;\n\n if (totalNeededWidth <= containerWidth) {\n currentWidth = newWidth;\n count += 1;\n } else {\n break;\n }\n }\n\n setVisibleCount(count);\n };\n\n requestAnimationFrame(calculateSizes);\n }, [responsive, children, resizeKey]);\n\n React.useLayoutEffect(() => {\n if (!responsive || !containerRef.current) {\n return;\n }\n\n const resizeObserver = new ResizeObserver(() => {\n // Trigger re-calculation by updating the resize key\n setResizeKey((prev) => prev + 1);\n });\n\n resizeObserver.observe(containerRef.current);\n return () => resizeObserver.disconnect();\n }, [responsive]);\n\n const childrenArray = React.Children.toArray(children);\n const visibleItems = childrenArray.slice(0, visibleCount);\n const hiddenItems = childrenArray.slice(visibleCount);\n const hasOverflow = hiddenItems.length > 0;\n\n // Find selected hidden item\n const selectedHiddenItem = hiddenItems.find(\n (child) => React.isValidElement(child) && child.props?.value === activeValue,\n ) as React.ReactElement | undefined;\n\n if (!responsive) {\n return (\n <PageMenuContext.Provider value={contextValue}>\n <div ref={ref} className={cn('flex items-center gap-2', className)} {...props}>\n {children}\n </div>\n </PageMenuContext.Provider>\n );\n }\n\n return (\n <PageMenuContext.Provider value={contextValue}>\n {/* Hidden container to measure all items */}\n <div\n ref={measureRef}\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute flex items-center gap-2 opacity-0\"\n style={{ top: -9999, left: -9999 }}\n >\n {children}\n </div>\n\n {/* Visible container */}\n <div ref={containerRef} className=\"flex w-full min-w-0 flex-1 items-center gap-2\">\n <div ref={ref} className={cn('flex min-w-0 items-center gap-2', className)} {...props}>\n {visibleItems}\n </div>\n\n {hasOverflow && (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button\n className={cn(\n 'h-[30px] flex-shrink-0 px-3 py-2',\n selectedHiddenItem && 'bg-accent text-accent-foreground',\n )}\n variant=\"ghost\"\n >\n {selectedHiddenItem ? (\n <span className=\"max-w-[100px] truncate\">\n {selectedHiddenItem.props.children}\n </span>\n ) : (\n <MoreHorizontal className=\"size-6\" />\n )}\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n {hiddenItems.map((item, index) => {\n if (!React.isValidElement(item) || !item.props?.value) {\n return null;\n }\n\n return (\n <DropdownMenuItem\n key={item.props.value || index}\n className={cn(\n item.props.value === activeValue && 'bg-accent text-accent-foreground',\n )}\n disabled={item.props.disabled}\n onClick={(event) => {\n // Radix still fires onClick on disabled items and relies on CSS to block pointer clicks\n if (item.props.disabled) {\n return;\n }\n item.props.onClick?.(event);\n if (!event.defaultPrevented) {\n handleSelect(item.props.value);\n }\n }}\n >\n {item.props.children}\n </DropdownMenuItem>\n );\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n )}\n </div>\n </PageMenuContext.Provider>\n );\n },\n);\n\nPageMenu.displayName = 'PageMenu';\n\nconst PageMenuItem = React.forwardRef<HTMLButtonElement, PageMenuItemProps>(\n ({ children, value, className, onClick, ...props }, ref) => {\n const pageMenu = React.useContext(PageMenuContext);\n const isActive = pageMenu?.value === value;\n\n return (\n <Button\n ref={ref}\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n 'relative gap-1.5 px-3 text-control font-medium text-text-secondary hover:text-foreground focus-visible:ring-0',\n 'data-[state=active]:bg-muted-foreground/10 data-[state=active]:text-foreground',\n 'dark:hover:bg-tab-hover dark:data-[state=active]:bg-tab-active dark:data-[state=active]:hover:bg-tab-active',\n className,\n )}\n data-state={isActive ? 'active' : undefined}\n variant=\"ghost\"\n onClick={(event) => {\n onClick?.(event);\n if (!event.defaultPrevented) {\n pageMenu?.onSelect(value);\n }\n }}\n {...props}\n >\n {children}\n </Button>\n );\n },\n);\n\nPageMenuItem.displayName = 'PageMenuItem';\n\nexport { PageMenu, PageMenuItem };\n"],"mappings":";;;;;;;AAgBA,IAAM,kBAAkB,QAAM,cAA2C,IAAI;AAmB7E,IAAM,WAAW,QAAM,YAEnB,EAAE,UAAU,aAAa,OAAO,OAAO,cAAc,eAAe,WAAW,GAAG,SAClF,QACG;CACH,MAAM,CAAC,cAAc,mBAAmB,QAAM,SAAS,QAAM,SAAS,MAAM,QAAQ,CAAC;CACrF,MAAM,CAAC,WAAW,gBAAgB,QAAM,SAAS,CAAC;CAClD,MAAM,eAAe,QAAM,OAAuB,IAAI;CACtD,MAAM,aAAa,QAAM,OAAuB,IAAI;CAIpD,MAAM,CAAC,mBAAmB,wBAAwB,QAAM,SAAS,YAAY;CAC7E,MAAM,eAAe,UAAU,KAAA;CAC/B,MAAM,cAAc,eAAe,QAAQ;CAE3C,MAAM,eAAe,QAAM,aACxB,cAAsB;EACrB,IAAI,cAAc,aAChB;EAEF,IAAI,CAAC,cACH,qBAAqB,SAAS;EAEhC,gBAAgB,SAAS;CAC3B,GACA;EAAC;EAAa;EAAc;CAAa,CAC3C;CAEA,MAAM,eAAe,QAAM,eAClB;EAAE,OAAO;EAAa,UAAU;CAAa,IACpD,CAAC,aAAa,YAAY,CAC5B;CAEA,QAAM,sBAAsB;EAC1B,IAAI,CAAC,cAAc,CAAC,aAAa,WAAW,CAAC,WAAW,SAAS;GAC/D,gBAAgB,QAAM,SAAS,MAAM,QAAQ,CAAC;GAC9C;EACF;EAGA,M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AK,MAAM,SAAS,KAiBT;IAEtB,CAAC;GACkB,CAAA,CACT,EAAA,CAAA,CAEb;IACmB;;AAE9B,CACF;AAEA,SAAS,cAAc;AAEvB,IAAM,eAAe,QAAM,YACxB,EAAE,UAAU,OAAO,WAAW,SAAS,GAAG,SAAS,QAAQ;CAC1D,MAAM,WAAW,QAAM,WAAW,eAAe;CACjD,MAAM,WAAW,UAAU,UAAU;CAErC,OACE,oBAAC,QAAD;EACO;EACL,gBAAc,WAAW,SAAS,KAAA;EAClC,WAAW,GACT,iHACA,kFACA,+GACA,SACF;EACA,cAAY,WAAW,WAAW,KAAA;EAClC,SAAQ;EACR,UAAU,UAAU;GAClB,UAAU,KAAK;GACf,IAAI,CAAC,MAAM,kBACT,UAAU,SAAS,KAAK;EAE5B;EACA,GAAI;EAEH;CACK,CAAA;AAEZ,CACF;AAEA,aAAa,cAAc"}
1
+ {"version":3,"file":"pagemenu.js","names":[],"sources":["../../../src/components/ui/pagemenu.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '@/lib/utils';\nimport { MoreHorizontal } from 'lucide-react';\nimport { useShade } from '@/providers/shade-context';\nimport { tabSurfaceVariants } from '@/components/ui/tabs-variants';\nimport { Button, type ButtonProps } from './button';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuTrigger,\n} from './dropdown-menu';\n\ninterface PageMenuContextValue {\n value?: string;\n onSelect: (value: string) => void;\n}\n\nconst PageMenuContext = React.createContext<PageMenuContextValue | null>(null);\n\nexport interface PageMenuProps {\n children: React.ReactNode;\n responsive?: boolean;\n /** The active item's value. Pass with `onValueChange` to control the menu, e.g. from the current route. */\n value?: string;\n /** The item active on first render when the menu manages its own selection. */\n defaultValue?: string;\n /** Called with the item's value when the user picks a different item. */\n onValueChange?: (value: string) => void;\n className?: string;\n}\n\nexport interface PageMenuItemProps extends Omit<ButtonProps, 'children'> {\n value: string;\n children: React.ReactNode;\n}\n\nconst PageMenu = React.forwardRef<HTMLDivElement, PageMenuProps>(\n (\n { children, responsive = false, value, defaultValue, onValueChange, className, ...props },\n ref,\n ) => {\n const { admin7Design } = useShade();\n const [visibleCount, setVisibleCount] = React.useState(React.Children.count(children));\n const [resizeKey, setResizeKey] = React.useState(0);\n const containerRef = React.useRef<HTMLDivElement>(null);\n const measureRef = React.useRef<HTMLDivElement>(null);\n const overflowTriggerRef = React.useRef<HTMLButtonElement>(null);\n\n // Controlled when `value` is passed, otherwise tracks its own selection\n // starting from `defaultValue` (same contract as Radix Tabs).\n const [uncontrolledValue, setUncontrolledValue] = React.useState(defaultValue);\n const isControlled = value !== undefined;\n const activeValue = isControlled ? value : uncontrolledValue;\n const measuredActiveValue = admin7Design ? activeValue : undefined;\n const measuredVisibleCount = admin7Design ? visibleCount : undefined;\n\n const handleSelect = React.useCallback(\n (nextValue: string) => {\n if (nextValue === activeValue) {\n return;\n }\n if (!isControlled) {\n setUncontrolledValue(nextValue);\n }\n onValueChange?.(nextValue);\n },\n [activeValue, isControlled, onValueChange],\n );\n\n const contextValue = React.useMemo(\n () => ({ value: activeValue, onSelect: handleSelect }),\n [activeValue, handleSelect],\n );\n\n React.useLayoutEffect(() => {\n if (!responsive || !containerRef.current || !measureRef.current) {\n setVisibleCount(React.Children.count(children));\n return;\n }\n\n // Use requestAnimationFrame to ensure DOM is fully rendered\n const calculateSizes = () => {\n if (!containerRef.current || !measureRef.current) {\n return;\n }\n\n const container = containerRef.current;\n const measureContainer = measureRef.current;\n const containerWidth = container.clientWidth;\n const dropdownWidth = admin7Design\n ? overflowTriggerRef.current?.getBoundingClientRect().width || 60\n : 60;\n const gap = admin7Design\n ? Number.parseFloat(getComputedStyle(container).columnGap) || 0\n : 6;\n\n // Get all child elements from the measure container\n const items = Array.from(measureContainer.children) as HTMLElement[];\n\n // First, check if ALL items fit without any dropdown\n let totalWidth = 0;\n for (let i = 0; i < items.length; i++) {\n const itemWidth = items[i].getBoundingClientRect().width;\n const gapWidth = i > 0 ? gap : 0;\n totalWidth += gapWidth + itemWidth;\n }\n\n // If all items fit with some buffer space, show them all\n const safetyBuffer = 8; // Add 8px buffer for safe rendering\n if (totalWidth <= containerWidth - safetyBuffer) {\n setVisibleCount(items.length);\n return;\n }\n\n // Otherwise, calculate how many fit with dropdown space reserved\n let currentWidth = 0;\n let count = 0;\n\n for (let i = 0; i < items.length; i++) {\n const itemWidth = items[i].getBoundingClientRect().width;\n const gapWidth = i > 0 ? gap : 0;\n const newWidth = currentWidth + gapWidth + itemWidth;\n\n // Reserve space for dropdown (since we know not all items fit)\n const totalNeededWidth = newWidth + (admin7Design ? gap : 0) + dropdownWidth;\n\n if (totalNeededWidth <= containerWidth) {\n currentWidth = newWidth;\n count += 1;\n } else {\n break;\n }\n }\n\n setVisibleCount(count);\n };\n\n requestAnimationFrame(calculateSizes);\n }, [responsive, children, resizeKey, admin7Design, measuredActiveValue, measuredVisibleCount]);\n\n React.useLayoutEffect(() => {\n if (!responsive || !containerRef.current) {\n return;\n }\n\n const resizeObserver = new ResizeObserver(() => {\n // Trigger re-calculation by updating the resize key\n setResizeKey((prev) => prev + 1);\n });\n\n resizeObserver.observe(containerRef.current);\n return () => resizeObserver.disconnect();\n }, [responsive]);\n\n const childrenArray = React.Children.toArray(children);\n const visibleItems = childrenArray.slice(0, visibleCount);\n const hiddenItems = childrenArray.slice(visibleCount);\n const hasOverflow = hiddenItems.length > 0;\n\n // Find selected hidden item\n const selectedHiddenItem = hiddenItems.find(\n (child) => React.isValidElement(child) && child.props?.value === activeValue,\n ) as React.ReactElement | undefined;\n\n if (!responsive) {\n return (\n <PageMenuContext.Provider value={contextValue}>\n <div ref={ref} className={cn('flex items-center gap-2', className)} {...props}>\n {children}\n </div>\n </PageMenuContext.Provider>\n );\n }\n\n return (\n <PageMenuContext.Provider value={contextValue}>\n {/* Hidden container to measure all items */}\n <div\n ref={measureRef}\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute flex items-center gap-2 opacity-0\"\n style={{ top: -9999, left: -9999 }}\n >\n {children}\n </div>\n\n {/* Visible container */}\n <div ref={containerRef} className=\"flex w-full min-w-0 flex-1 items-center gap-2\">\n <div ref={ref} className={cn('flex min-w-0 items-center gap-2', className)} {...props}>\n {visibleItems}\n </div>\n\n {hasOverflow && (\n <DropdownMenu>\n <DropdownMenuTrigger asChild>\n <Button\n ref={overflowTriggerRef}\n className={cn(\n 'h-[30px] flex-shrink-0 px-3 py-2',\n admin7Design\n ? tabSurfaceVariants({ admin7Design })\n : selectedHiddenItem && 'bg-accent text-accent-foreground',\n )}\n {...(admin7Design\n ? { 'data-state': selectedHiddenItem ? 'active' : undefined }\n : {})}\n variant=\"ghost\"\n >\n {selectedHiddenItem ? (\n <span className=\"max-w-[100px] truncate\">\n {selectedHiddenItem.props.children}\n </span>\n ) : (\n <MoreHorizontal className=\"size-6\" />\n )}\n </Button>\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\">\n {hiddenItems.map((item, index) => {\n if (!React.isValidElement(item) || !item.props?.value) {\n return null;\n }\n\n return (\n <DropdownMenuItem\n key={item.props.value || index}\n className={cn(\n item.props.value === activeValue && 'bg-accent text-accent-foreground',\n )}\n disabled={item.props.disabled}\n onClick={(event) => {\n // Radix still fires onClick on disabled items and relies on CSS to block pointer clicks\n if (item.props.disabled) {\n return;\n }\n item.props.onClick?.(event);\n if (!event.defaultPrevented) {\n handleSelect(item.props.value);\n }\n }}\n >\n {item.props.children}\n </DropdownMenuItem>\n );\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n )}\n </div>\n </PageMenuContext.Provider>\n );\n },\n);\n\nPageMenu.displayName = 'PageMenu';\n\nconst PageMenuItem = React.forwardRef<HTMLButtonElement, PageMenuItemProps>(\n ({ children, value, className, onClick, ...props }, ref) => {\n const pageMenu = React.useContext(PageMenuContext);\n const { admin7Design } = useShade();\n const isActive = pageMenu?.value === value;\n\n return (\n <Button\n ref={ref}\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n 'relative gap-1.5 px-3 text-control font-medium',\n admin7Design\n ? tabSurfaceVariants({ admin7Design })\n : 'text-text-secondary hover:text-foreground focus-visible:ring-0 data-[state=active]:bg-muted-foreground/10 data-[state=active]:text-foreground dark:hover:bg-tab-hover dark:data-[state=active]:bg-tab-active dark:data-[state=active]:hover:bg-tab-active',\n className,\n )}\n data-state={isActive ? 'active' : undefined}\n variant=\"ghost\"\n onClick={(event) => {\n onClick?.(event);\n if (!event.defaultPrevented) {\n pageMenu?.onSelect(value);\n }\n }}\n {...props}\n >\n {children}\n </Button>\n );\n },\n);\n\nPageMenuItem.displayName = 'PageMenuItem';\n\nexport { PageMenu, PageMenuItem };\n"],"mappings":";;;;;;;;;AAkBA,IAAM,kBAAkB,QAAM,cAA2C,IAAI;AAmB7E,IAAM,WAAW,QAAM,YAEnB,EAAE,UAAU,aAAa,OAAO,OAAO,cAAc,eAAe,WAAW,GAAG,SAClF,QACG;CACH,MAAM,EAAE,iBAAiB,SAAS;CAClC,MAAM,CAAC,cAAc,mBAAmB,QAAM,SAAS,QAAM,SAAS,MAAM,QAAQ,CAAC;CACrF,MAAM,CAAC,WAAW,gBAAgB,QAAM,SAAS,CAAC;CAClD,MAAM,eAAe,QAAM,OAAuB,IAAI;CACtD,MAAM,aAAa,QAAM,OAAuB,IAAI;CACpD,MAAM,qBAAqB,QAAM,OAA0B,IAAI;CAI/D,MAAM,CAAC,mBAAmB,wBAAwB,QAAM,SAAS,YAAY;CAC7E,MAAM,eAAe,UAAU,KAAA;CAC/B,MAAM,cAAc,eAAe,QAAQ;CAC3C,MAAM,sBAAsB,eAAe,cAAc,KAAA;CACzD,MAAM,uBAAuB,eAAe,eAAe,KAAA;CAE3D,MAAM,eAAe,QAAM,aACxB,cAAsB;EACrB,IAAI,cAAc,aAChB;EAEF,IAAI,CAAC,cACH,qBAAqB,SAAS;EAEhC,gBAAgB,SAAS;CAC3B,GACA;EAAC;EAAa;EAAc;CAAa,CAC3C;CAEA,MAAM,eAAe,QAAM,eAClB;EAAE,OAAO;EAAa,UAAU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D,EAAgB,WAAU,SAAU,CAAA;IAEhC,CAAA;GACW,CAAA,GACrB,oBAAC,qBAAD;IAAqB,OAAM;cACxB,YAAY,KAAK,MAAM,UAAU;KAChC,IAAI,CAAC,QAAM,eAAe,IAAI,KAAK,CAAC,KAAK,OAAO,OAC9C,OAAO;KAGT,OACE,oBAAC,kBAAD;MAEE,WAAW,GACT,KAAK,MAAM,UAAU,eAAe,kCACtC;MACA,UAAU,KAAK,MAAM;MACrB,UAAU,UAAU;OAElB,IAAI,KAAK,MAAM,UACb;OAEF,KAAK,MAAM,UAAU,KAAK;OAC1B,IAAI,CAAC,MAAM,kBACT,aAAa,KAAK,MAAM,KAAK;MAEjC;gBAEC,KAAK,MAAM;KACI,GAjBX,KAAK,MAAM,SAAS,KAiBT;IAEtB,CAAC;GACkB,CAAA,CACT,EAAA,CAAA,CAEb;IACmB;;AAE9B,CACF;AAEA,SAAS,cAAc;AAEvB,IAAM,eAAe,QAAM,YACxB,EAAE,UAAU,OAAO,WAAW,SAAS,GAAG,SAAS,QAAQ;CAC1D,MAAM,WAAW,QAAM,WAAW,eAAe;CACjD,MAAM,EAAE,iBAAiB,SAAS;CAClC,MAAM,WAAW,UAAU,UAAU;CAErC,OACE,oBAAC,QAAD;EACO;EACL,gBAAc,WAAW,SAAS,KAAA;EAClC,WAAW,GACT,kDACA,eACI,mBAAmB,EAAE,aAAa,CAAC,IACnC,6PACJ,SACF;EACA,cAAY,WAAW,WAAW,KAAA;EAClC,SAAQ;EACR,UAAU,UAAU;GAClB,UAAU,KAAK;GACf,IAAI,CAAC,MAAM,kBACT,UAAU,SAAS,KAAK;EAE5B;EACA,GAAI;EAEH;CACK,CAAA;AAEZ,CACF;AAEA,aAAa,cAAc"}
@@ -1,5 +1,27 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  //#region src/components/ui/tabs-variants.ts
3
+ var tabSurfaceVariants = cva("", {
4
+ variants: {
5
+ admin7Design: {
6
+ true: "rounded-full bg-tab-inactive text-foreground hover:bg-tab-inactive-hover hover:text-foreground enabled:active:bg-tab-inactive-hover enabled:aria-expanded:bg-tab-inactive-hover enabled:aria-expanded:text-foreground data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:hover:bg-primary data-[state=active]:hover:text-primary-foreground data-[state=active]:enabled:active:bg-primary data-[state=active]:enabled:aria-expanded:bg-primary data-[state=active]:enabled:aria-expanded:text-primary-foreground",
7
+ false: ""
8
+ },
9
+ size: {
10
+ default: "",
11
+ compact: ""
12
+ }
13
+ },
14
+ compoundVariants: [{
15
+ admin7Design: true,
16
+ size: "default",
17
+ className: "px-4"
18
+ }, {
19
+ admin7Design: true,
20
+ size: "compact",
21
+ className: "px-3"
22
+ }],
23
+ defaultVariants: { size: "default" }
24
+ });
3
25
  var tabsVariants = cva("", {
4
26
  variants: { variant: {
5
27
  segmented: "",
@@ -14,6 +36,6 @@ var tabsVariants = cva("", {
14
36
  defaultVariants: { variant: "segmented" }
15
37
  });
16
38
  //#endregion
17
- export { tabsVariants };
39
+ export { tabSurfaceVariants, tabsVariants };
18
40
 
19
41
  //# sourceMappingURL=tabs-variants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-variants.js","names":[],"sources":["../../../src/components/ui/tabs-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nconst tabsVariants = cva('', {\n variants: {\n variant: {\n segmented: '',\n 'segmented-sm': '',\n button: '',\n 'button-sm': '',\n underline: '',\n navbar: '',\n pill: '',\n kpis: '',\n },\n },\n defaultVariants: {\n variant: 'segmented',\n },\n});\n\nexport { tabsVariants };\n"],"mappings":";;AAEA,IAAM,eAAe,IAAI,IAAI;CAC3B,UAAU,EACR,SAAS;EACP,WAAW;EACX,gBAAgB;EAChB,QAAQ;EACR,aAAa;EACb,WAAW;EACX,QAAQ;EACR,MAAM;EACN,MAAM;CACR,EACF;CACA,iBAAiB,EACf,SAAS,YACX;AACF,CAAC"}
1
+ {"version":3,"file":"tabs-variants.js","names":[],"sources":["../../../src/components/ui/tabs-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\n// Shared by panel tabs and route-based PageMenu navigation.\nconst tabSurfaceVariants = cva('', {\n variants: {\n admin7Design: {\n true: 'rounded-full bg-tab-inactive text-foreground hover:bg-tab-inactive-hover hover:text-foreground enabled:active:bg-tab-inactive-hover enabled:aria-expanded:bg-tab-inactive-hover enabled:aria-expanded:text-foreground data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:hover:bg-primary data-[state=active]:hover:text-primary-foreground data-[state=active]:enabled:active:bg-primary data-[state=active]:enabled:aria-expanded:bg-primary data-[state=active]:enabled:aria-expanded:text-primary-foreground',\n false: '',\n },\n size: {\n default: '',\n compact: '',\n },\n },\n compoundVariants: [\n { admin7Design: true, size: 'default', className: 'px-4' },\n { admin7Design: true, size: 'compact', className: 'px-3' },\n ],\n defaultVariants: { size: 'default' },\n});\n\nconst tabsVariants = cva('', {\n variants: {\n variant: {\n segmented: '',\n 'segmented-sm': '',\n button: '',\n 'button-sm': '',\n underline: '',\n navbar: '',\n pill: '',\n kpis: '',\n },\n },\n defaultVariants: {\n variant: 'segmented',\n },\n});\n\nexport { tabsVariants, tabSurfaceVariants };\n"],"mappings":";;AAGA,IAAM,qBAAqB,IAAI,IAAI;CACjC,UAAU;EACR,cAAc;GACZ,MAAM;GACN,OAAO;EACT;EACA,MAAM;GACJ,SAAS;GACT,SAAS;EACX;CACF;CACA,kBAAkB,CAChB;EAAE,cAAc;EAAM,MAAM;EAAW,WAAW;CAAO,GACzD;EAAE,cAAc;EAAM,MAAM;EAAW,WAAW;CAAO,CAC3D;CACA,iBAAiB,EAAE,MAAM,UAAU;AACrC,CAAC;AAED,IAAM,eAAe,IAAI,IAAI;CAC3B,UAAU,EACR,SAAS;EACP,WAAW;EACX,gBAAgB;EAChB,QAAQ;EACR,aAAa;EACb,WAAW;EACX,QAAQ;EACR,MAAM;EACN,MAAM;CACR,EACF;CACA,iBAAiB,EACf,SAAS,YACX;AACF,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { cn } from "../../lib/ds-utils.js";
2
2
  import { useShade } from "../../providers/shade-context.js";
3
3
  import { DropdownMenuTrigger } from "./dropdown-menu.js";
4
+ import { tabSurfaceVariants } from "./tabs-variants.js";
4
5
  import * as React$1 from "react";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
7
  import { cva } from "class-variance-authority";
@@ -11,10 +12,11 @@ var TabsContext = React$1.createContext({
11
12
  controlShape: "rounded"
12
13
  });
13
14
  var Tabs = React$1.forwardRef(({ variant = "segmented", ...props }, ref) => {
14
- const { controlShape } = useShade();
15
+ const { controlShape, admin7Design } = useShade();
16
+ const resolvedVariant = admin7Design && variant !== "kpis" ? variant === "button-sm" || variant === "segmented-sm" || variant === "pill" ? "button-sm" : "button" : variant;
15
17
  return /* @__PURE__ */ jsx(TabsContext.Provider, {
16
18
  value: {
17
- variant,
19
+ variant: resolvedVariant,
18
20
  controlShape
19
21
  },
20
22
  children: /* @__PURE__ */ jsx(TabsPrimitive.Root, {
@@ -25,24 +27,37 @@ var Tabs = React$1.forwardRef(({ variant = "segmented", ...props }, ref) => {
25
27
  });
26
28
  Tabs.displayName = TabsPrimitive.Root.displayName;
27
29
  var tabsListVariants = cva("inline-flex items-center text-muted-foreground", {
28
- variants: { variant: {
29
- segmented: "h-(--control-height) rounded-lg bg-muted px-[3px]",
30
- "segmented-sm": "h-8 rounded-lg bg-muted px-[3px]",
31
- button: "gap-2",
32
- "button-sm": "gap-1",
33
- underline: "no-scrollbar w-full max-w-full gap-5 overflow-x-auto border-b border-border-default",
34
- navbar: "h-[52px] items-end gap-6",
35
- pill: "-ml-0.5 h-[30px] gap-px",
36
- kpis: "border-b ring-0"
37
- } },
30
+ variants: {
31
+ variant: {
32
+ segmented: "h-(--control-height) rounded-lg bg-muted px-[3px]",
33
+ "segmented-sm": "h-8 rounded-lg bg-muted px-[3px]",
34
+ button: "gap-2",
35
+ "button-sm": "gap-1",
36
+ underline: "no-scrollbar w-full max-w-full gap-5 overflow-x-auto border-b border-border-default",
37
+ navbar: "h-[52px] items-end gap-6",
38
+ pill: "-ml-0.5 h-[30px] gap-px",
39
+ kpis: "border-b ring-0"
40
+ },
41
+ admin7Design: {
42
+ true: "",
43
+ false: ""
44
+ }
45
+ },
46
+ compoundVariants: [{
47
+ variant: ["button", "button-sm"],
48
+ admin7Design: true,
49
+ className: "no-scrollbar max-w-full overflow-x-auto"
50
+ }],
38
51
  defaultVariants: { variant: "segmented" }
39
52
  });
40
53
  var TabsList = React$1.forwardRef(({ className, ...props }, ref) => {
41
54
  const { variant } = React$1.useContext(TabsContext);
55
+ const { admin7Design } = useShade();
42
56
  return /* @__PURE__ */ jsx(TabsPrimitive.List, {
43
57
  ref,
44
58
  className: cn(tabsListVariants({
45
59
  variant,
60
+ admin7Design,
46
61
  className
47
62
  })),
48
63
  ...props
@@ -78,13 +93,16 @@ var tabsTriggerVariants = cva("inline-flex items-center justify-center px-3 py-1
78
93
  });
79
94
  var TabsTrigger = React$1.forwardRef(({ className, onMouseDownCapture, ...props }, ref) => {
80
95
  const { variant, controlShape } = React$1.useContext(TabsContext);
96
+ const { admin7Design } = useShade();
81
97
  return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
82
98
  ref,
83
99
  className: cn(tabsTriggerVariants({
84
100
  variant,
85
- controlShape,
86
- className
87
- })),
101
+ controlShape
102
+ }), variant !== "kpis" && tabSurfaceVariants({
103
+ admin7Design,
104
+ size: variant === "button-sm" ? "compact" : "default"
105
+ }), className),
88
106
  onMouseDownCapture: (event) => {
89
107
  const activeElement = document.activeElement;
90
108
  if (activeElement instanceof HTMLElement && activeElement.matches("input, textarea, select, [contenteditable=\"true\"]")) activeElement.blur();
@@ -128,15 +146,18 @@ var TabsContent = React$1.forwardRef(({ className, ...props }, ref) => {
128
146
  TabsContent.displayName = TabsPrimitive.Content.displayName;
129
147
  var TabsDropdownTrigger = React$1.forwardRef(({ children, className, ...props }, ref) => {
130
148
  const { variant, controlShape } = React$1.useContext(TabsContext);
149
+ const { admin7Design } = useShade();
131
150
  return /* @__PURE__ */ jsxs("div", {
132
151
  className: cn("relative rounded-control hover:bg-tab-hover", (variant === "button" || variant === "button-sm") && controlShape === "pill" && "rounded-full"),
133
152
  children: [/* @__PURE__ */ jsx(TabsPrimitive.Trigger, {
134
153
  ref,
135
154
  className: cn(tabsTriggerVariants({
136
155
  variant,
137
- controlShape,
138
- className
139
- })),
156
+ controlShape
157
+ }), variant !== "kpis" && tabSurfaceVariants({
158
+ admin7Design,
159
+ size: variant === "button-sm" ? "compact" : "default"
160
+ }), className),
140
161
  ...props,
141
162
  children: /* @__PURE__ */ jsx("div", {
142
163
  className: "flex items-center gap-2",
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.js","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { DropdownMenuTrigger } from './dropdown-menu';\n\nimport { cn } from '@/lib/utils';\nimport { cva } from 'class-variance-authority';\nimport { type ControlShape, useShade } from '@/providers/shade-context';\n\ntype TabsVariant =\n | 'segmented'\n | 'segmented-sm'\n | 'button'\n | 'button-sm'\n | 'underline'\n | 'navbar'\n | 'pill'\n | 'kpis';\n\ninterface TabsContextValue {\n variant: TabsVariant;\n controlShape: ControlShape;\n}\n\nconst TabsContext = React.createContext<TabsContextValue>({\n variant: 'segmented',\n controlShape: 'rounded',\n});\n\nexport interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {\n variant?: TabsVariant;\n}\n\nconst Tabs = React.forwardRef<React.ElementRef<typeof TabsPrimitive.Root>, TabsProps>(\n ({ variant = 'segmented', ...props }, ref) => {\n const { controlShape } = useShade();\n\n return (\n <TabsContext.Provider value={{ variant, controlShape }}>\n <TabsPrimitive.Root ref={ref} {...props} />\n </TabsContext.Provider>\n );\n },\n);\nTabs.displayName = TabsPrimitive.Root.displayName;\n\nconst tabsListVariants = cva('inline-flex items-center text-muted-foreground', {\n variants: {\n variant: {\n segmented: 'h-(--control-height) rounded-lg bg-muted px-[3px]',\n 'segmented-sm': 'h-8 rounded-lg bg-muted px-[3px]',\n button: 'gap-2',\n 'button-sm': 'gap-1',\n underline:\n 'no-scrollbar w-full max-w-full gap-5 overflow-x-auto border-b border-border-default',\n navbar: 'h-[52px] items-end gap-6',\n pill: '-ml-0.5 h-[30px] gap-px',\n // The `kpis` variant is consumed only by `features/kpi/kpi-tabs.tsx`.\n // Kept here so the cva variant set is in one place; not for direct use by app code.\n kpis: 'border-b ring-0',\n },\n },\n defaultVariants: {\n variant: 'segmented',\n },\n});\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => {\n const { variant } = React.useContext(TabsContext);\n return (\n <TabsPrimitive.List\n ref={ref}\n className={cn(tabsListVariants({ variant, className }))}\n {...props}\n />\n );\n});\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst tabsTriggerVariants = cva(\n 'inline-flex items-center justify-center px-3 py-1 whitespace-nowrap ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n segmented:\n 'h-[calc(var(--control-height)-4px)] rounded-control text-control font-medium data-[state=active]:shadow-md',\n 'segmented-sm':\n 'h-[26px] rounded-control text-sm font-medium data-[state=active]:shadow-md',\n button:\n 'h-(--control-height) gap-1.5 rounded-control py-2 text-control font-medium hover:bg-tab-hover data-[state=active]:bg-tab-active data-[state=active]:hover:bg-tab-active',\n 'button-sm':\n 'h-6 gap-1.5 rounded-control p-2 text-sm font-medium text-text-secondary hover:bg-tab-hover data-[state=active]:bg-tab-active data-[state=active]:text-foreground data-[state=active]:hover:bg-tab-active',\n underline:\n 'relative h-9 px-0 text-control font-semibold text-text-secondary after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] hover:after:opacity-10 data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',\n navbar:\n 'relative h-[52px] px-px text-control font-semibold text-muted-foreground after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] hover:text-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',\n pill: 'relative h-[30px] rounded-md px-3 text-control font-medium text-text-secondary hover:bg-tab-hover hover:text-foreground data-[state=active]:bg-tab-active data-[state=active]:text-foreground data-[state=active]:hover:bg-tab-active',\n kpis: 'relative h-full! items-start! rounded-none border-border bg-transparent px-6 py-5 text-foreground ring-0 transition-all after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] first:rounded-tl-md last:rounded-tr-md hover:bg-interactive-hover data-[state=active]:bg-transparent data-[state=active]:after:opacity-100 [&:not(:last-child)]:border-r [&[data-state=active]_[data-type=\"value\"]]:text-foreground',\n },\n controlShape: {\n rounded: '',\n pill: '',\n },\n },\n compoundVariants: [\n {\n variant: ['button', 'button-sm'],\n controlShape: 'pill',\n className: 'rounded-full',\n },\n ],\n defaultVariants: {\n variant: 'segmented',\n controlShape: 'rounded',\n },\n },\n);\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, onMouseDownCapture, ...props }, ref) => {\n const { variant, controlShape } = React.useContext(TabsContext);\n return (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(tabsTriggerVariants({ variant, controlShape, className }))}\n onMouseDownCapture={(event) => {\n const activeElement = document.activeElement;\n if (\n activeElement instanceof HTMLElement &&\n activeElement.matches('input, textarea, select, [contenteditable=\"true\"]')\n ) {\n activeElement.blur();\n }\n onMouseDownCapture?.(event);\n }}\n {...props}\n />\n );\n});\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\ninterface TabsTriggerCountProps {\n children: React.ReactNode;\n className?: string;\n}\n\nconst TabsTriggerCount: React.FC<TabsTriggerCountProps> = ({ className = '', children }) => {\n return (\n <span\n className={cn(\n 'mt-px ml-1.5 flex h-5 items-center justify-center rounded-full bg-secondary px-1.5 py-0 text-xs leading-[21px] font-semibold text-text-secondary',\n className,\n )}\n >\n {children}\n </span>\n );\n};\nTabsTriggerCount.displayName = 'TabsTriggerCount';\n\nconst tabsContentVariants = cva(\n 'ring-offset-background focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden',\n {\n variants: {\n variant: {\n segmented: '',\n 'segmented-sm': '',\n button: '',\n 'button-sm': '',\n underline: '',\n navbar: '',\n pill: '',\n kpis: 'ring-0',\n },\n },\n defaultVariants: {\n variant: 'segmented',\n },\n },\n);\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => {\n const { variant } = React.useContext(TabsContext);\n return (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(tabsContentVariants({ variant, className }))}\n {...props}\n />\n );\n});\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\ninterface TabsDropdownTriggerProps extends Omit<\n React.ComponentProps<typeof TabsPrimitive.Trigger>,\n 'asChild'\n> {\n children: React.ReactNode;\n}\n\nconst TabsDropdownTrigger = React.forwardRef<HTMLButtonElement, TabsDropdownTriggerProps>(\n ({ children, className, ...props }, ref) => {\n const { variant, controlShape } = React.useContext(TabsContext);\n return (\n <div\n className={cn(\n 'relative rounded-control hover:bg-tab-hover',\n (variant === 'button' || variant === 'button-sm') &&\n controlShape === 'pill' &&\n 'rounded-full',\n )}\n >\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(tabsTriggerVariants({ variant, controlShape, className }))}\n {...props}\n >\n <div className=\"flex items-center gap-2\">{children}</div>\n </TabsPrimitive.Trigger>\n <DropdownMenuTrigger\n className=\"absolute inset-0 size-full cursor-pointer\"\n onClick={(e) => {\n // Stop propagation to prevent tab change\n e.preventDefault();\n }}\n />\n </div>\n );\n },\n);\nTabsDropdownTrigger.displayName = 'TabsDropdownTrigger';\n\nexport { Tabs, TabsList, TabsTrigger, TabsTriggerCount, TabsContent, TabsDropdownTrigger };\n"],"mappings":";;;;;;;;AAuBA,IAAM,cAAc,QAAM,cAAgC;CACxD,SAAS;CACT,cAAc;AAChB,CAAC;AAMD,IAAM,OAAO,QAAM,YAChB,EAAE,UAAU,aAAa,GAAG,SAAS,QAAQ;CAC5C,MAAM,EAAE,iBAAiB,SAAS;CAElC,OACE,oBAAC,YAAY,UAAb;EAAsB,OAAO;GAAE;GAAS;EAAa;YACnD,oBAAC,cAAc,MAAf;GAAyB;GAAK,GAAI;EAAQ,CAAA;CACtB,CAAA;AAE1B,CACF;AACA,KAAK,cAAc,cAAc,KAAK;AAEtC,IAAM,mBAAmB,IAAI,kDAAkD;CAC7E,UAAU,EACR,SAAS;EACP,WAAW;EACX,gBAAgB;EAChB,QAAQ;EACR,aAAa;EACb,WACE;EACF,QAAQ;EACR,MAAM;EAGN,MAAM;CACR,EACF;CACA,iBAAiB,EACf,SAAS,YACX;AACF,CAAC;AAED,IAAM,WAAW,QAAM,YAGpB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAClC,MAAM,EAAE,YAAY,QAAM,WAAW,WAAW;CAChD,OACE,oBAAC,cAAc,MAAf;EACO;EACL,WAAW,GAAG,iBAAiB;GAAE;GAAS;EAAU,CAAC,CAAC;EACtD,GAAI;CACL,CAAA;AAEL,CAAC;AACD,SAAS,cAAc,cAAc,KAAK;AAE1C,IAAM,sBAAsB,IAC1B,gXACA;CACE,UAAU;EACR,SAAS;GACP,WACE;GACF,gBACE;GACF,QACE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AY,cAAc,cAAc,QAAQ;AAShD,IAAM,sBAAsB,QAAM,YAC/B,EAAE,UAAU,WAAW,GAAG,SAAS,QAAQ;CAC1C,MAAM,EAAE,SAAS,iBAAiB,QAAM,WAAW,WAAW;CAC9D,OACE,qBAAC,OAAD;EACE,WAAW,GACT,gDACC,YAAY,YAAY,YAAY,gBACnC,iBAAiB,UACjB,cACJ;YANF,CAQE,oBAAC,cAAc,SAAf;GACO;GACL,WAAW,GAAG,oBAAoB;IAAE;IAAS;IAAc;GAAU,CAAC,CAAC;GACvE,GAAI;aAEJ,oBAAC,OAAD;IAAK,WAAU;IAA2B;GAAc,CAAA;EACnC,CAAA,GACvB,oBAAC,qBAAD;GACE,WAAU;GACV,UAAU,MAAM;IAEd,EAAE,eAAe;GACnB;EACD,CAAA,CACE;;AAET,CACF;AACA,oBAAoB,cAAc"}
1
+ {"version":3,"file":"tabs.js","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport { DropdownMenuTrigger } from './dropdown-menu';\n\nimport { cn } from '@/lib/utils';\nimport { cva } from 'class-variance-authority';\nimport { type ControlShape, useShade } from '@/providers/shade-context';\nimport { tabSurfaceVariants } from '@/components/ui/tabs-variants';\n\ntype TabsVariant =\n | 'segmented'\n | 'segmented-sm'\n | 'button'\n | 'button-sm'\n | 'underline'\n | 'navbar'\n | 'pill'\n | 'kpis';\n\ninterface TabsContextValue {\n variant: TabsVariant;\n controlShape: ControlShape;\n}\n\nconst TabsContext = React.createContext<TabsContextValue>({\n variant: 'segmented',\n controlShape: 'rounded',\n});\n\nexport interface TabsProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root> {\n variant?: TabsVariant;\n}\n\nconst Tabs = React.forwardRef<React.ElementRef<typeof TabsPrimitive.Root>, TabsProps>(\n ({ variant = 'segmented', ...props }, ref) => {\n const { controlShape, admin7Design } = useShade();\n // Standard tabs share the Admin 7 pill treatment. KPI tabs retain their\n // chart-card layout; compact tabs retain their smaller size.\n const resolvedVariant =\n admin7Design && variant !== 'kpis'\n ? variant === 'button-sm' || variant === 'segmented-sm' || variant === 'pill'\n ? 'button-sm'\n : 'button'\n : variant;\n\n return (\n <TabsContext.Provider value={{ variant: resolvedVariant, controlShape }}>\n <TabsPrimitive.Root ref={ref} {...props} />\n </TabsContext.Provider>\n );\n },\n);\nTabs.displayName = TabsPrimitive.Root.displayName;\n\nconst tabsListVariants = cva('inline-flex items-center text-muted-foreground', {\n variants: {\n variant: {\n segmented: 'h-(--control-height) rounded-lg bg-muted px-[3px]',\n 'segmented-sm': 'h-8 rounded-lg bg-muted px-[3px]',\n button: 'gap-2',\n 'button-sm': 'gap-1',\n underline:\n 'no-scrollbar w-full max-w-full gap-5 overflow-x-auto border-b border-border-default',\n navbar: 'h-[52px] items-end gap-6',\n pill: '-ml-0.5 h-[30px] gap-px',\n // The `kpis` variant is consumed only by `features/kpi/kpi-tabs.tsx`.\n // Kept here so the cva variant set is in one place; not for direct use by app code.\n kpis: 'border-b ring-0',\n },\n admin7Design: {\n true: '',\n false: '',\n },\n },\n compoundVariants: [\n {\n variant: ['button', 'button-sm'],\n admin7Design: true,\n className: 'no-scrollbar max-w-full overflow-x-auto',\n },\n ],\n defaultVariants: {\n variant: 'segmented',\n },\n});\n\nconst TabsList = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>\n>(({ className, ...props }, ref) => {\n const { variant } = React.useContext(TabsContext);\n const { admin7Design } = useShade();\n return (\n <TabsPrimitive.List\n ref={ref}\n className={cn(tabsListVariants({ variant, admin7Design, className }))}\n {...props}\n />\n );\n});\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nconst tabsTriggerVariants = cva(\n 'inline-flex items-center justify-center px-3 py-1 whitespace-nowrap ring-offset-background transition-all focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n segmented:\n 'h-[calc(var(--control-height)-4px)] rounded-control text-control font-medium data-[state=active]:shadow-md',\n 'segmented-sm':\n 'h-[26px] rounded-control text-sm font-medium data-[state=active]:shadow-md',\n button:\n 'h-(--control-height) gap-1.5 rounded-control py-2 text-control font-medium hover:bg-tab-hover data-[state=active]:bg-tab-active data-[state=active]:hover:bg-tab-active',\n 'button-sm':\n 'h-6 gap-1.5 rounded-control p-2 text-sm font-medium text-text-secondary hover:bg-tab-hover data-[state=active]:bg-tab-active data-[state=active]:text-foreground data-[state=active]:hover:bg-tab-active',\n underline:\n 'relative h-9 px-0 text-control font-semibold text-text-secondary after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] hover:after:opacity-10 data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',\n navbar:\n 'relative h-[52px] px-px text-control font-semibold text-muted-foreground after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] hover:text-foreground data-[state=active]:bg-transparent data-[state=active]:text-foreground data-[state=active]:after:opacity-100!',\n pill: 'relative h-[30px] rounded-md px-3 text-control font-medium text-text-secondary hover:bg-tab-hover hover:text-foreground data-[state=active]:bg-tab-active data-[state=active]:text-foreground data-[state=active]:hover:bg-tab-active',\n kpis: 'relative h-full! items-start! rounded-none border-border bg-transparent px-6 py-5 text-foreground ring-0 transition-all after:absolute after:inset-x-0 after:-bottom-px after:h-0.5 after:bg-foreground after:opacity-0 after:content-[\"\"] first:rounded-tl-md last:rounded-tr-md hover:bg-interactive-hover data-[state=active]:bg-transparent data-[state=active]:after:opacity-100 [&:not(:last-child)]:border-r [&[data-state=active]_[data-type=\"value\"]]:text-foreground',\n },\n controlShape: {\n rounded: '',\n pill: '',\n },\n },\n compoundVariants: [\n {\n variant: ['button', 'button-sm'],\n controlShape: 'pill',\n className: 'rounded-full',\n },\n ],\n defaultVariants: {\n variant: 'segmented',\n controlShape: 'rounded',\n },\n },\n);\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Trigger>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>\n>(({ className, onMouseDownCapture, ...props }, ref) => {\n const { variant, controlShape } = React.useContext(TabsContext);\n const { admin7Design } = useShade();\n return (\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n tabsTriggerVariants({ variant, controlShape }),\n variant !== 'kpis' &&\n tabSurfaceVariants({\n admin7Design,\n size: variant === 'button-sm' ? 'compact' : 'default',\n }),\n className,\n )}\n onMouseDownCapture={(event) => {\n const activeElement = document.activeElement;\n if (\n activeElement instanceof HTMLElement &&\n activeElement.matches('input, textarea, select, [contenteditable=\"true\"]')\n ) {\n activeElement.blur();\n }\n onMouseDownCapture?.(event);\n }}\n {...props}\n />\n );\n});\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\ninterface TabsTriggerCountProps {\n children: React.ReactNode;\n className?: string;\n}\n\nconst TabsTriggerCount: React.FC<TabsTriggerCountProps> = ({ className = '', children }) => {\n return (\n <span\n className={cn(\n 'mt-px ml-1.5 flex h-5 items-center justify-center rounded-full bg-secondary px-1.5 py-0 text-xs leading-[21px] font-semibold text-text-secondary',\n className,\n )}\n >\n {children}\n </span>\n );\n};\nTabsTriggerCount.displayName = 'TabsTriggerCount';\n\nconst tabsContentVariants = cva(\n 'ring-offset-background focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-offset-2 focus-visible:outline-hidden',\n {\n variants: {\n variant: {\n segmented: '',\n 'segmented-sm': '',\n button: '',\n 'button-sm': '',\n underline: '',\n navbar: '',\n pill: '',\n kpis: 'ring-0',\n },\n },\n defaultVariants: {\n variant: 'segmented',\n },\n },\n);\n\nconst TabsContent = React.forwardRef<\n React.ElementRef<typeof TabsPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>\n>(({ className, ...props }, ref) => {\n const { variant } = React.useContext(TabsContext);\n return (\n <TabsPrimitive.Content\n ref={ref}\n className={cn(tabsContentVariants({ variant, className }))}\n {...props}\n />\n );\n});\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n\ninterface TabsDropdownTriggerProps extends Omit<\n React.ComponentProps<typeof TabsPrimitive.Trigger>,\n 'asChild'\n> {\n children: React.ReactNode;\n}\n\nconst TabsDropdownTrigger = React.forwardRef<HTMLButtonElement, TabsDropdownTriggerProps>(\n ({ children, className, ...props }, ref) => {\n const { variant, controlShape } = React.useContext(TabsContext);\n const { admin7Design } = useShade();\n return (\n <div\n className={cn(\n 'relative rounded-control hover:bg-tab-hover',\n (variant === 'button' || variant === 'button-sm') &&\n controlShape === 'pill' &&\n 'rounded-full',\n )}\n >\n <TabsPrimitive.Trigger\n ref={ref}\n className={cn(\n tabsTriggerVariants({ variant, controlShape }),\n variant !== 'kpis' &&\n tabSurfaceVariants({\n admin7Design,\n size: variant === 'button-sm' ? 'compact' : 'default',\n }),\n className,\n )}\n {...props}\n >\n <div className=\"flex items-center gap-2\">{children}</div>\n </TabsPrimitive.Trigger>\n <DropdownMenuTrigger\n className=\"absolute inset-0 size-full cursor-pointer\"\n onClick={(e) => {\n // Stop propagation to prevent tab change\n e.preventDefault();\n }}\n />\n </div>\n );\n },\n);\nTabsDropdownTrigger.displayName = 'TabsDropdownTrigger';\n\nexport { Tabs, TabsList, TabsTrigger, TabsTriggerCount, TabsContent, TabsDropdownTrigger };\n"],"mappings":";;;;;;;;;AAwBA,IAAM,cAAc,QAAM,cAAgC;CACxD,SAAS;CACT,cAAc;AAChB,CAAC;AAMD,IAAM,OAAO,QAAM,YAChB,EAAE,UAAU,aAAa,GAAG,SAAS,QAAQ;CAC5C,MAAM,EAAE,cAAc,iBAAiB,SAAS;CAGhD,MAAM,kBACJ,gBAAgB,YAAY,SACxB,YAAY,eAAe,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AW,GACT,gDACC,YAAY,YAAY,YAAY,gBACnC,iBAAiB,UACjB,cACJ;YANF,CAQE,oBAAC,cAAc,SAAf;GACO;GACL,WAAW,GACT,oBAAoB;IAAE;IAAS;GAAa,CAAC,GAC7C,YAAY,UACV,mBAAmB;IACjB;IACA,MAAM,YAAY,cAAc,YAAY;GAC9C,CAAC,GACH,SACF;GACA,GAAI;aAEJ,oBAAC,OAAD;IAAK,WAAU;IAA2B;GAAc,CAAA;EACnC,CAAA,GACvB,oBAAC,qBAAD;GACE,WAAU;GACV,UAAU,MAAM;IAEd,EAAE,eAAe;GACnB;EACD,CAAA,CACE;;AAET,CACF;AACA,oBAAoB,cAAc"}
package/es/components.js CHANGED
@@ -11,6 +11,7 @@ import { inputSurface, inputSurfaceClasses } from "./components/ui/input-surface
11
11
  import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./components/ui/select.js";
12
12
  import { Kbd, KbdGroup } from "./components/ui/kbd.js";
13
13
  import { AlignedAxisTick, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./components/ui/chart.js";
14
+ import { tabSurfaceVariants, tabsVariants } from "./components/ui/tabs-variants.js";
14
15
  import { Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount } from "./components/ui/tabs.js";
15
16
  import { Calendar, CalendarDayButton } from "./components/ui/calendar.js";
16
17
  import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./components/ui/dialog.js";
@@ -69,7 +70,6 @@ import { useSidebar } from "./components/ui/sidebar-context.js";
69
70
  import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger } from "./components/ui/sidebar.js";
70
71
  import { DragIndicator, SortableList } from "./components/ui/sortable-list.js";
71
72
  import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow } from "./components/ui/table.js";
72
- import { tabsVariants } from "./components/ui/tabs-variants.js";
73
73
  import { Textarea } from "./components/ui/textarea.js";
74
74
  import { toast } from "./components/ui/toast.js";
75
75
  import { ToggleGroup, ToggleGroupItem } from "./components/ui/toggle-group.js";
@@ -77,4 +77,4 @@ import { a as TwitterLogo, i as GoogleLogo, n as GhostLogo, o as XLogo, r as Gho
77
77
  import { TimePicker } from "./components/ui/time-picker.js";
78
78
  import { tokenFieldClasses } from "./components/ui/token-field.js";
79
79
  import { defaultFilter as commandDefaultFilter } from "cmdk";
80
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhostLogo, GhostOrb, GoogleLogo, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, Indicator, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, Label, Link, LoadingIndicator, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwitterLogo, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, tabsVariants, toast, tokenFieldClasses, useFormField, useSidebar };
80
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhostLogo, GhostOrb, GoogleLogo, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, Indicator, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, Label, Link, LoadingIndicator, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwitterLogo, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, tabSurfaceVariants, tabsVariants, toast, tokenFieldClasses, useFormField, useSidebar };
package/es/index.js CHANGED
@@ -26,6 +26,7 @@ import { FilterBar } from "./components/patterns/filter-bar.js";
26
26
  import { AlignedAxisTick, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from "./components/ui/chart.js";
27
27
  import { GhAreaChart, GhCustomTooltipContent } from "./components/patterns/gh-chart.js";
28
28
  import { KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue } from "./components/patterns/kpi-card.js";
29
+ import { tabSurfaceVariants, tabsVariants } from "./components/ui/tabs-variants.js";
29
30
  import { Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount } from "./components/ui/tabs.js";
30
31
  import { KpiDropdownButton, KpiTabTrigger, KpiTabValue } from "./components/patterns/kpi-tabs.js";
31
32
  import { Calendar, CalendarDayButton } from "./components/ui/calendar.js";
@@ -103,7 +104,6 @@ import { useSidebar } from "./components/ui/sidebar-context.js";
103
104
  import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger } from "./components/ui/sidebar.js";
104
105
  import { DragIndicator, SortableList } from "./components/ui/sortable-list.js";
105
106
  import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow } from "./components/ui/table.js";
106
- import { tabsVariants } from "./components/ui/tabs-variants.js";
107
107
  import { Textarea } from "./components/ui/textarea.js";
108
108
  import { toast } from "./components/ui/toast.js";
109
109
  import { ToggleGroup, ToggleGroupItem } from "./components/ui/toggle-group.js";
@@ -111,4 +111,4 @@ import { a as TwitterLogo, i as GoogleLogo, n as GhostLogo, o as XLogo, r as Gho
111
111
  import { TimePicker } from "./components/ui/time-picker.js";
112
112
  import { tokenFieldClasses } from "./components/ui/token-field.js";
113
113
  import { commandDefaultFilter } from "./components.js";
114
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, ColorPicker, ColorPickerTrigger, ColorSwatch, ColorSwatchRow, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DEFAULT_I18N, DEFAULT_OPERATORS, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, DetailPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirtyConfirmDialog, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, ErrorPage, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterBar, FilterDatePicker, FilterSegmentInput, FilterSegmentMultiSelect, FilterSegmentSelect, Filters, FiltersContent, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhAreaChart, GhCustomTooltipContent, GhostLogo, GhostOrb, GoogleLogo, Grid, H1, H2, H3, H4, HTable, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, ImageUpload, ImageUploadAction, ImageUploadActions, ImageUploadDropzone, ImageUploadImage, ImageUploadPreview, Indicator, Inline, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue, KpiDropdownButton, KpiTabTrigger, KpiTabValue, Label, Link, ListPage, ListPageBody, ListPageHeader, LoadingIndicator, ModalPage, ModalPageTitle, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageChromeProvider, PageHeader, PageHeaderActionGroup, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuContent, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupPrimary, PageHeaderActions, PageHeaderBreadcrumb, PageHeaderCount, PageHeaderDescription, PageHeaderLeft, PageHeaderMeta, PageHeaderTitle, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, SHADE_TOKEN_NAMES, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, SettingsModal, ShareModal, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, Stack, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Text, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwitterLogo, ViewBar, ViewBarActions, ViewBarNav, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, createFilter, createFilterGroup, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, imageUploadPreviewVariants, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, settingGroupVariants, settingsModalVariants, shadeToken, tabsVariants, toast, tokenFieldClasses, useDirtyConfirmation, useFormField, usePageChrome, useSidebar };
114
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, ColorPicker, ColorPickerTrigger, ColorSwatch, ColorSwatchRow, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DEFAULT_I18N, DEFAULT_OPERATORS, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, DetailPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirtyConfirmDialog, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, ErrorPage, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterBar, FilterDatePicker, FilterSegmentInput, FilterSegmentMultiSelect, FilterSegmentSelect, Filters, FiltersContent, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhAreaChart, GhCustomTooltipContent, GhostLogo, GhostOrb, GoogleLogo, Grid, H1, H2, H3, H4, HTable, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, ImageUpload, ImageUploadAction, ImageUploadActions, ImageUploadDropzone, ImageUploadImage, ImageUploadPreview, Indicator, Inline, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue, KpiDropdownButton, KpiTabTrigger, KpiTabValue, Label, Link, ListPage, ListPageBody, ListPageHeader, LoadingIndicator, ModalPage, ModalPageTitle, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageChromeProvider, PageHeader, PageHeaderActionGroup, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuContent, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupPrimary, PageHeaderActions, PageHeaderBreadcrumb, PageHeaderCount, PageHeaderDescription, PageHeaderLeft, PageHeaderMeta, PageHeaderTitle, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, SHADE_TOKEN_NAMES, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, SettingsModal, ShareModal, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, Stack, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Text, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TwitterLogo, ViewBar, ViewBarActions, ViewBarNav, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, createFilter, createFilterGroup, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, imageUploadPreviewVariants, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, settingGroupVariants, settingsModalVariants, shadeToken, tabSurfaceVariants, tabsVariants, toast, tokenFieldClasses, useDirtyConfirmation, useFormField, usePageChrome, useSidebar };
package/es/tokens.js CHANGED
@@ -275,6 +275,7 @@ var SHADE_TOKEN_NAMES = [
275
275
  "field-chip-surface",
276
276
  "field-disabled-surface",
277
277
  "field-readonly-surface",
278
+ "field-shadow",
278
279
  "field-surface",
279
280
  "focus-ring",
280
281
  "font-body",
@@ -334,6 +335,7 @@ var SHADE_TOKEN_NAMES = [
334
335
  "shadow-control-outline",
335
336
  "shadow-control-outline-pressed",
336
337
  "shadow-control-pressed",
338
+ "shadow-field",
337
339
  "shadow-inner",
338
340
  "shadow-lg",
339
341
  "shadow-md",
@@ -365,6 +367,8 @@ var SHADE_TOKEN_NAMES = [
365
367
  "surface-elevated",
366
368
  "surface-page",
367
369
  "surface-panel",
370
+ "tab-inactive",
371
+ "tab-inactive-hover",
368
372
  "text-2xl",
369
373
  "text-2xs",
370
374
  "text-3xl",
package/es/tokens.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","names":[],"sources":["../src/tokens.ts"],"sourcesContent":["// Token helpers generated from Tailwind + runtime CSS variable surfaces.\nexport const SHADE_TOKEN_NAMES = [\n 'accent',\n 'accent-foreground',\n 'animate-accordion-down',\n 'animate-accordion-up',\n 'animate-fade-in',\n 'animate-fade-out',\n 'animate-modal-backdrop-in',\n 'animate-modal-in',\n 'animate-modal-in-from-right',\n 'animate-modal-in-reverse',\n 'animate-spin',\n 'animate-toaster-in',\n 'animate-toaster-out',\n 'animate-toaster-top-in',\n 'background',\n 'border',\n 'border-default',\n 'border-strong',\n 'breakpoint-lg',\n 'breakpoint-md',\n 'breakpoint-sidebar',\n 'breakpoint-sidebarlg',\n 'breakpoint-sm',\n 'breakpoint-tablet',\n 'breakpoint-xl',\n 'breakpoint-xxl',\n 'breakpoint-xxxl',\n 'card',\n 'card-foreground',\n 'character-count',\n 'chart-1',\n 'chart-2',\n 'chart-3',\n 'chart-4',\n 'chart-5',\n 'chart-amber',\n 'chart-blue',\n 'chart-darkblue',\n 'chart-darkgray',\n 'chart-gray',\n 'chart-green',\n 'chart-orange',\n 'chart-purple',\n 'chart-rose',\n 'chart-teal',\n 'chart-yellow',\n 'color-accent',\n 'color-accent-foreground',\n 'color-background',\n 'color-black',\n 'color-blue',\n 'color-blue-100',\n 'color-blue-200',\n 'color-blue-300',\n 'color-blue-400',\n 'color-blue-50',\n 'color-blue-500',\n 'color-blue-600',\n 'color-blue-700',\n 'color-blue-800',\n 'color-blue-900',\n 'color-border',\n 'color-border-default',\n 'color-border-strong',\n 'color-card',\n 'color-card-foreground',\n 'color-character-count',\n 'color-chart-1',\n 'color-chart-2',\n 'color-chart-3',\n 'color-chart-4',\n 'color-chart-5',\n 'color-chart-amber',\n 'color-chart-blue',\n 'color-chart-darkgray',\n 'color-chart-gray',\n 'color-chart-green',\n 'color-chart-orange',\n 'color-chart-purple',\n 'color-chart-rose',\n 'color-chart-teal',\n 'color-chart-yellow',\n 'color-current',\n 'color-destructive',\n 'color-destructive-foreground',\n 'color-event-email-icon',\n 'color-event-email-surface',\n 'color-event-engagement-icon',\n 'color-event-engagement-surface',\n 'color-event-gain-icon',\n 'color-event-gain-surface',\n 'color-event-gift-icon',\n 'color-event-gift-surface',\n 'color-event-loss-icon',\n 'color-event-loss-surface',\n 'color-event-warning-icon',\n 'color-event-warning-surface',\n 'color-focus-ring',\n 'color-foreground',\n 'color-ghostaccent',\n 'color-gray',\n 'color-gray-100',\n 'color-gray-200',\n 'color-gray-300',\n 'color-gray-400',\n 'color-gray-50',\n 'color-gray-500',\n 'color-gray-600',\n 'color-gray-700',\n 'color-gray-800',\n 'color-gray-900',\n 'color-gray-950',\n 'color-green',\n 'color-green-100',\n 'color-green-200',\n 'color-green-300',\n 'color-green-400',\n 'color-green-50',\n 'color-green-500',\n 'color-green-600',\n 'color-green-700',\n 'color-green-800',\n 'color-green-900',\n 'color-input',\n 'color-lime',\n 'color-lime-100',\n 'color-lime-200',\n 'color-lime-300',\n 'color-lime-400',\n 'color-lime-50',\n 'color-lime-500',\n 'color-lime-600',\n 'color-lime-700',\n 'color-lime-800',\n 'color-lime-900',\n 'color-map-surface',\n 'color-muted',\n 'color-muted-foreground',\n 'color-orange',\n 'color-orange-100',\n 'color-orange-200',\n 'color-orange-300',\n 'color-orange-400',\n 'color-orange-50',\n 'color-orange-500',\n 'color-orange-600',\n 'color-orange-700',\n 'color-orange-800',\n 'color-orange-900',\n 'color-pink',\n 'color-pink-100',\n 'color-pink-200',\n 'color-pink-300',\n 'color-pink-400',\n 'color-pink-50',\n 'color-pink-500',\n 'color-pink-600',\n 'color-pink-700',\n 'color-pink-800',\n 'color-pink-900',\n 'color-popover',\n 'color-popover-foreground',\n 'color-primary',\n 'color-primary-foreground',\n 'color-publish-accent',\n 'color-purple',\n 'color-purple-100',\n 'color-purple-200',\n 'color-purple-300',\n 'color-purple-400',\n 'color-purple-50',\n 'color-purple-500',\n 'color-purple-600',\n 'color-purple-700',\n 'color-purple-800',\n 'color-purple-900',\n 'color-red',\n 'color-red-100',\n 'color-red-200',\n 'color-red-300',\n 'color-red-400',\n 'color-red-50',\n 'color-red-500',\n 'color-red-600',\n 'color-red-700',\n 'color-red-800',\n 'color-red-900',\n 'color-ring',\n 'color-secondary',\n 'color-secondary-foreground',\n 'color-sidebar',\n 'color-sidebar-accent',\n 'color-sidebar-accent-foreground',\n 'color-sidebar-border',\n 'color-sidebar-foreground',\n 'color-sidebar-primary',\n 'color-sidebar-primary-foreground',\n 'color-sidebar-ring',\n 'color-state-danger',\n 'color-state-danger-foreground',\n 'color-state-info',\n 'color-state-info-foreground',\n 'color-state-success',\n 'color-state-success-foreground',\n 'color-state-warning',\n 'color-state-warning-border',\n 'color-state-warning-fill',\n 'color-state-warning-foreground',\n 'color-state-warning-surface',\n 'color-surface-elevated',\n 'color-surface-page',\n 'color-surface-panel',\n 'color-text-primary',\n 'color-text-secondary',\n 'color-text-tertiary',\n 'color-transparent',\n 'color-white',\n 'color-yellow',\n 'color-yellow-100',\n 'color-yellow-200',\n 'color-yellow-300',\n 'color-yellow-400',\n 'color-yellow-50',\n 'color-yellow-500',\n 'color-yellow-600',\n 'color-yellow-700',\n 'color-yellow-800',\n 'color-yellow-900',\n 'container-0',\n 'container-2xl',\n 'container-3xl',\n 'container-4xl',\n 'container-5xl',\n 'container-6xl',\n 'container-7xl',\n 'container-8xl',\n 'container-9xl',\n 'container-lg',\n 'container-md',\n 'container-page',\n 'container-pageminsidebar',\n 'container-prose',\n 'container-sm',\n 'container-xl',\n 'container-xs',\n 'control-height',\n 'control-height-lg',\n 'control-outline-pressed-shadow',\n 'control-outline-shadow',\n 'control-pressed-shadow',\n 'destructive',\n 'destructive-foreground',\n 'duration-base',\n 'duration-fast',\n 'duration-slow',\n 'ease-emphasized',\n 'ease-standard',\n 'event-email-icon',\n 'event-email-surface',\n 'event-engagement-icon',\n 'event-engagement-surface',\n 'event-gain-icon',\n 'event-gain-surface',\n 'event-gift-icon',\n 'event-gift-surface',\n 'event-loss-icon',\n 'event-loss-surface',\n 'event-warning-icon',\n 'event-warning-surface',\n 'field-border',\n 'field-chip-internal-border',\n 'field-chip-internal-surface',\n 'field-chip-surface',\n 'field-disabled-surface',\n 'field-readonly-surface',\n 'field-surface',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'font-weight-title',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'map-surface',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'publish-accent',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-field',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-inner',\n 'shadow-lg',\n 'shadow-md',\n 'shadow-md-heavy',\n 'shadow-none',\n 'shadow-sm',\n 'shadow-xl',\n 'shadow-xs',\n 'sidebar-accent',\n 'sidebar-accent-foreground',\n 'sidebar-background',\n 'sidebar-border',\n 'sidebar-foreground',\n 'sidebar-primary',\n 'sidebar-primary-foreground',\n 'sidebar-ring',\n 'spacing',\n 'state-danger',\n 'state-danger-foreground',\n 'state-info',\n 'state-info-foreground',\n 'state-success',\n 'state-success-foreground',\n 'state-warning',\n 'state-warning-border',\n 'state-warning-fill',\n 'state-warning-foreground',\n 'state-warning-surface',\n 'surface-elevated',\n 'surface-page',\n 'surface-panel',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-field',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-section-heading',\n 'text-section-heading-lg',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,IAAa,cAAc,SAAiC,SAAS,KAAK"}
1
+ {"version":3,"file":"tokens.js","names":[],"sources":["../src/tokens.ts"],"sourcesContent":["// Token helpers generated from Tailwind + runtime CSS variable surfaces.\nexport const SHADE_TOKEN_NAMES = [\n 'accent',\n 'accent-foreground',\n 'animate-accordion-down',\n 'animate-accordion-up',\n 'animate-fade-in',\n 'animate-fade-out',\n 'animate-modal-backdrop-in',\n 'animate-modal-in',\n 'animate-modal-in-from-right',\n 'animate-modal-in-reverse',\n 'animate-spin',\n 'animate-toaster-in',\n 'animate-toaster-out',\n 'animate-toaster-top-in',\n 'background',\n 'border',\n 'border-default',\n 'border-strong',\n 'breakpoint-lg',\n 'breakpoint-md',\n 'breakpoint-sidebar',\n 'breakpoint-sidebarlg',\n 'breakpoint-sm',\n 'breakpoint-tablet',\n 'breakpoint-xl',\n 'breakpoint-xxl',\n 'breakpoint-xxxl',\n 'card',\n 'card-foreground',\n 'character-count',\n 'chart-1',\n 'chart-2',\n 'chart-3',\n 'chart-4',\n 'chart-5',\n 'chart-amber',\n 'chart-blue',\n 'chart-darkblue',\n 'chart-darkgray',\n 'chart-gray',\n 'chart-green',\n 'chart-orange',\n 'chart-purple',\n 'chart-rose',\n 'chart-teal',\n 'chart-yellow',\n 'color-accent',\n 'color-accent-foreground',\n 'color-background',\n 'color-black',\n 'color-blue',\n 'color-blue-100',\n 'color-blue-200',\n 'color-blue-300',\n 'color-blue-400',\n 'color-blue-50',\n 'color-blue-500',\n 'color-blue-600',\n 'color-blue-700',\n 'color-blue-800',\n 'color-blue-900',\n 'color-border',\n 'color-border-default',\n 'color-border-strong',\n 'color-card',\n 'color-card-foreground',\n 'color-character-count',\n 'color-chart-1',\n 'color-chart-2',\n 'color-chart-3',\n 'color-chart-4',\n 'color-chart-5',\n 'color-chart-amber',\n 'color-chart-blue',\n 'color-chart-darkgray',\n 'color-chart-gray',\n 'color-chart-green',\n 'color-chart-orange',\n 'color-chart-purple',\n 'color-chart-rose',\n 'color-chart-teal',\n 'color-chart-yellow',\n 'color-current',\n 'color-destructive',\n 'color-destructive-foreground',\n 'color-event-email-icon',\n 'color-event-email-surface',\n 'color-event-engagement-icon',\n 'color-event-engagement-surface',\n 'color-event-gain-icon',\n 'color-event-gain-surface',\n 'color-event-gift-icon',\n 'color-event-gift-surface',\n 'color-event-loss-icon',\n 'color-event-loss-surface',\n 'color-event-warning-icon',\n 'color-event-warning-surface',\n 'color-focus-ring',\n 'color-foreground',\n 'color-ghostaccent',\n 'color-gray',\n 'color-gray-100',\n 'color-gray-200',\n 'color-gray-300',\n 'color-gray-400',\n 'color-gray-50',\n 'color-gray-500',\n 'color-gray-600',\n 'color-gray-700',\n 'color-gray-800',\n 'color-gray-900',\n 'color-gray-950',\n 'color-green',\n 'color-green-100',\n 'color-green-200',\n 'color-green-300',\n 'color-green-400',\n 'color-green-50',\n 'color-green-500',\n 'color-green-600',\n 'color-green-700',\n 'color-green-800',\n 'color-green-900',\n 'color-input',\n 'color-lime',\n 'color-lime-100',\n 'color-lime-200',\n 'color-lime-300',\n 'color-lime-400',\n 'color-lime-50',\n 'color-lime-500',\n 'color-lime-600',\n 'color-lime-700',\n 'color-lime-800',\n 'color-lime-900',\n 'color-map-surface',\n 'color-muted',\n 'color-muted-foreground',\n 'color-orange',\n 'color-orange-100',\n 'color-orange-200',\n 'color-orange-300',\n 'color-orange-400',\n 'color-orange-50',\n 'color-orange-500',\n 'color-orange-600',\n 'color-orange-700',\n 'color-orange-800',\n 'color-orange-900',\n 'color-pink',\n 'color-pink-100',\n 'color-pink-200',\n 'color-pink-300',\n 'color-pink-400',\n 'color-pink-50',\n 'color-pink-500',\n 'color-pink-600',\n 'color-pink-700',\n 'color-pink-800',\n 'color-pink-900',\n 'color-popover',\n 'color-popover-foreground',\n 'color-primary',\n 'color-primary-foreground',\n 'color-publish-accent',\n 'color-purple',\n 'color-purple-100',\n 'color-purple-200',\n 'color-purple-300',\n 'color-purple-400',\n 'color-purple-50',\n 'color-purple-500',\n 'color-purple-600',\n 'color-purple-700',\n 'color-purple-800',\n 'color-purple-900',\n 'color-red',\n 'color-red-100',\n 'color-red-200',\n 'color-red-300',\n 'color-red-400',\n 'color-red-50',\n 'color-red-500',\n 'color-red-600',\n 'color-red-700',\n 'color-red-800',\n 'color-red-900',\n 'color-ring',\n 'color-secondary',\n 'color-secondary-foreground',\n 'color-sidebar',\n 'color-sidebar-accent',\n 'color-sidebar-accent-foreground',\n 'color-sidebar-border',\n 'color-sidebar-foreground',\n 'color-sidebar-primary',\n 'color-sidebar-primary-foreground',\n 'color-sidebar-ring',\n 'color-state-danger',\n 'color-state-danger-foreground',\n 'color-state-info',\n 'color-state-info-foreground',\n 'color-state-success',\n 'color-state-success-foreground',\n 'color-state-warning',\n 'color-state-warning-border',\n 'color-state-warning-fill',\n 'color-state-warning-foreground',\n 'color-state-warning-surface',\n 'color-surface-elevated',\n 'color-surface-page',\n 'color-surface-panel',\n 'color-text-primary',\n 'color-text-secondary',\n 'color-text-tertiary',\n 'color-transparent',\n 'color-white',\n 'color-yellow',\n 'color-yellow-100',\n 'color-yellow-200',\n 'color-yellow-300',\n 'color-yellow-400',\n 'color-yellow-50',\n 'color-yellow-500',\n 'color-yellow-600',\n 'color-yellow-700',\n 'color-yellow-800',\n 'color-yellow-900',\n 'container-0',\n 'container-2xl',\n 'container-3xl',\n 'container-4xl',\n 'container-5xl',\n 'container-6xl',\n 'container-7xl',\n 'container-8xl',\n 'container-9xl',\n 'container-lg',\n 'container-md',\n 'container-page',\n 'container-pageminsidebar',\n 'container-prose',\n 'container-sm',\n 'container-xl',\n 'container-xs',\n 'control-height',\n 'control-height-lg',\n 'control-outline-pressed-shadow',\n 'control-outline-shadow',\n 'control-pressed-shadow',\n 'destructive',\n 'destructive-foreground',\n 'duration-base',\n 'duration-fast',\n 'duration-slow',\n 'ease-emphasized',\n 'ease-standard',\n 'event-email-icon',\n 'event-email-surface',\n 'event-engagement-icon',\n 'event-engagement-surface',\n 'event-gain-icon',\n 'event-gain-surface',\n 'event-gift-icon',\n 'event-gift-surface',\n 'event-loss-icon',\n 'event-loss-surface',\n 'event-warning-icon',\n 'event-warning-surface',\n 'field-border',\n 'field-chip-internal-border',\n 'field-chip-internal-surface',\n 'field-chip-surface',\n 'field-disabled-surface',\n 'field-readonly-surface',\n 'field-shadow',\n 'field-surface',\n 'focus-ring',\n 'font-body',\n 'font-code',\n 'font-heading',\n 'font-inherit',\n 'font-mono',\n 'font-sans',\n 'font-serif',\n 'font-weight-title',\n 'foreground',\n 'input',\n 'input-group-radius',\n 'leading-base',\n 'leading-body',\n 'leading-heading',\n 'leading-loose',\n 'leading-none',\n 'leading-normal',\n 'leading-relaxed',\n 'leading-snug',\n 'leading-supertight',\n 'leading-tight',\n 'leading-tighter',\n 'map-surface',\n 'mobile-navbar-height',\n 'muted',\n 'muted-foreground',\n 'popover',\n 'popover-foreground',\n 'primary',\n 'primary-foreground',\n 'publish-accent',\n 'radius',\n 'radius-2xl',\n 'radius-3xl',\n 'radius-badge',\n 'radius-card',\n 'radius-control',\n 'radius-control-sm',\n 'radius-field',\n 'radius-full',\n 'radius-lg',\n 'radius-md',\n 'radius-menu',\n 'radius-menu-item',\n 'radius-pill',\n 'radius-sm',\n 'radius-surface',\n 'radius-trend-badge',\n 'radius-xl',\n 'radius-xs',\n 'ring',\n 'secondary',\n 'secondary-foreground',\n 'shadow',\n 'shadow-control-outline',\n 'shadow-control-outline-pressed',\n 'shadow-control-pressed',\n 'shadow-field',\n 'shadow-inner',\n 'shadow-lg',\n 'shadow-md',\n 'shadow-md-heavy',\n 'shadow-none',\n 'shadow-sm',\n 'shadow-xl',\n 'shadow-xs',\n 'sidebar-accent',\n 'sidebar-accent-foreground',\n 'sidebar-background',\n 'sidebar-border',\n 'sidebar-foreground',\n 'sidebar-primary',\n 'sidebar-primary-foreground',\n 'sidebar-ring',\n 'spacing',\n 'state-danger',\n 'state-danger-foreground',\n 'state-info',\n 'state-info-foreground',\n 'state-success',\n 'state-success-foreground',\n 'state-warning',\n 'state-warning-border',\n 'state-warning-fill',\n 'state-warning-foreground',\n 'state-warning-surface',\n 'surface-elevated',\n 'surface-page',\n 'surface-panel',\n 'tab-inactive',\n 'tab-inactive-hover',\n 'text-2xl',\n 'text-2xs',\n 'text-3xl',\n 'text-4xl',\n 'text-5xl',\n 'text-5xl--line-height',\n 'text-6xl',\n 'text-6xl--line-height',\n 'text-7xl',\n 'text-7xl--line-height',\n 'text-8xl',\n 'text-8xl--line-height',\n 'text-9xl',\n 'text-9xl--line-height',\n 'text-base',\n 'text-body-lg',\n 'text-body-md',\n 'text-body-sm',\n 'text-control',\n 'text-control-lg',\n 'text-field',\n 'text-lg',\n 'text-md',\n 'text-primary',\n 'text-secondary',\n 'text-section-heading',\n 'text-section-heading-lg',\n 'text-sm',\n 'text-tertiary',\n 'text-xl',\n 'text-xs',\n 'tracking-normal',\n 'tracking-tight',\n 'tracking-tighter',\n 'tracking-tightest',\n 'tracking-wide',\n 'tracking-wider',\n 'tracking-widest',\n] as const;\n\nexport type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];\n\nexport const shadeToken = (name: ShadeTokenName): string => `var(--${name})`;\n"],"mappings":";AACA,IAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIA,IAAa,cAAc,SAAiC,SAAS,KAAK"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/shade",
3
- "version": "0.1.0-alpha.28",
3
+ "version": "0.1.0-alpha.29",
4
4
  "description": "Ghost design system for React apps",
5
5
  "license": "MIT",
6
6
  "author": "Ghost Foundation",
package/styles.css CHANGED
@@ -32,12 +32,12 @@
32
32
  title. Comes after the utilities at their specificity, so it beats text classes. */
33
33
  .section-heading:where([data-admin7-design='true'] *) {
34
34
  font-size: var(--text-section-heading);
35
- font-weight: var(--font-weight-title);
36
- letter-spacing: 0;
35
+ font-weight: var(--font-weight-medium);
36
+ letter-spacing: var(--tracking-tighter);
37
37
  line-height: 1.35;
38
38
  font-variation-settings:
39
- 'opsz' 22,
40
- 'wght' var(--font-weight-title);
39
+ 'opsz' 28,
40
+ 'wght' var(--font-weight-medium);
41
41
  font-feature-settings: 'dlig', 'zero', 'ss01', 'ss02', 'cv10', 'cv06';
42
42
  }
43
43
 
@@ -355,6 +355,8 @@
355
355
  --color-sidebar-border: var(--sidebar-border);
356
356
  --color-sidebar-ring: var(--sidebar-ring);
357
357
  --color-tab-hover: var(--tab-hover);
358
+ --color-tab-inactive: var(--tab-inactive);
359
+ --color-tab-inactive-hover: var(--tab-inactive-hover);
358
360
  --color-tab-active: var(--tab-active);
359
361
  --color-button-hover: var(--button-hover);
360
362
  --color-button-ghost-hover: var(--button-ghost-hover);
@@ -395,6 +397,7 @@
395
397
  --color-field-readonly-surface: var(--field-readonly-surface);
396
398
  --color-field-disabled-surface: var(--field-disabled-surface);
397
399
  --color-field-border: var(--field-border);
400
+ --shadow-field: var(--field-shadow);
398
401
  --color-field-chip-surface: var(--field-chip-surface);
399
402
  --color-field-chip-internal-surface: var(--field-chip-internal-surface);
400
403
  --color-field-chip-internal-border: var(--field-chip-internal-border);
@@ -146,6 +146,8 @@
146
146
  --sidebar-border: var(--color-gray-100);
147
147
  --sidebar-ring: var(--color-gray-600);
148
148
  --tab-hover: var(--color-gray-100);
149
+ --tab-inactive: var(--color-gray-200);
150
+ --tab-inactive-hover: var(--color-gray-300);
149
151
  --tab-active: color-mix(in oklab, var(--color-gray-700) 10%, transparent);
150
152
  --button-hover: var(--color-gray-100);
151
153
  /* Translucent so a ghost Button hover darkens whatever it sits on - an opaque
@@ -164,12 +166,13 @@
164
166
  --control-disabled-surface: var(--color-gray-100);
165
167
  --control-border: color-mix(in oklab, var(--color-gray-200), var(--color-gray-300));
166
168
  --text-section-heading: 1.6rem;
167
- --text-section-heading-lg: 1.9rem;
168
- /* Text-entry fields are white with a light outline. */
169
+ --text-section-heading-lg: 2.1rem;
170
+ /* Text-entry fields have a defined outline and a small resting shadow. */
169
171
  --field-surface: var(--control-surface);
170
172
  --field-readonly-surface: var(--control-readonly-surface);
171
173
  --field-disabled-surface: var(--control-disabled-surface);
172
- --field-border: var(--color-gray-300);
174
+ --field-border: var(--color-gray-400);
175
+ --field-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
173
176
  --field-chip-surface: var(--secondary);
174
177
  --field-chip-internal-surface: transparent;
175
178
  --field-chip-internal-border: var(--field-chip-surface);
@@ -327,6 +330,7 @@
327
330
  --field-readonly-surface: var(--control-readonly-surface);
328
331
  --field-disabled-surface: var(--control-disabled-surface);
329
332
  --field-border: var(--control-border);
333
+ --field-shadow: 0 0 #0000;
330
334
  --field-chip-surface: var(--secondary);
331
335
  --field-chip-internal-surface: color-mix(in oklab, var(--secondary) 30%, transparent);
332
336
  --field-chip-internal-border: var(--border);
@@ -376,6 +380,8 @@
376
380
  --banner-destructive-secondary: var(--color-red-300);
377
381
 
378
382
  --tab-hover: color-mix(in oklab, var(--color-gray-900) 30%, transparent);
383
+ --tab-inactive: var(--color-gray-900);
384
+ --tab-inactive-hover: color-mix(in oklab, var(--color-gray-800) 30%, var(--color-gray-900));
379
385
  --tab-active: color-mix(in oklab, oklch(36.77% 0.0022 255) 60%, transparent);
380
386
  --button-hover: color-mix(in oklab, var(--color-gray-900) 30%, transparent);
381
387
  --button-ghost-hover: var(--accent);
@@ -386,7 +392,8 @@
386
392
  --control-readonly-surface: var(--color-gray-950);
387
393
  --control-disabled-surface: var(--color-gray-950);
388
394
  --control-border: color-mix(in oklab, var(--color-gray-900) 70%, transparent);
389
- --field-border: var(--control-border);
395
+ --field-border: var(--color-gray-900);
396
+ --field-shadow: 0 1px 2px rgb(0 0 0 / 0.16);
390
397
  --control-pressed-shadow: lch(0 0 0 / 0.07) 0px 1px 2px 0px inset;
391
398
  --control-outline-shadow:
392
399
  lch(0 0 0 / 0.1) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
@@ -480,6 +487,8 @@
480
487
  /* admin7Design off in dark mode: today's dark values, exactly. Temporary:
481
488
  delete with the flag. */
482
489
  .dark [data-admin7-design='false'] {
490
+ --field-border: var(--control-border);
491
+ --field-shadow: 0 0 #0000;
483
492
  --state-warning-surface: color-mix(in oklab, var(--state-warning) 10%, transparent);
484
493
  --state-warning-border: color-mix(in oklab, var(--state-warning) 40%, transparent);
485
494
  --color-black: oklch(20.38% 0.0067 258.4);
@@ -1 +1 @@
1
- {"version":3,"file":"image-upload.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/image-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIxE,QAAA,MAAM,WAAW,6GAShB,CAAC;AAGF,QAAA,MAAM,mBAAmB,sFAUxB,CAAC;AAGF,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,0BAA0B,CAAC;CAAG;AAElG,QAAA,MAAM,kBAAkB,gGAUvB,CAAC;AAGF,QAAA,MAAM,gBAAgB,oHAWpB,CAAC;AAGH,QAAA,MAAM,kBAAkB,6GAYvB,CAAC;AAGF,QAAA,MAAM,iBAAiB,uFAatB,CAAC;AAGF,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
1
+ {"version":3,"file":"image-upload.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/image-upload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAMxE,QAAA,MAAM,WAAW,6GAYhB,CAAC;AAGF,QAAA,MAAM,mBAAmB,sFAaxB,CAAC;AAGF,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,0BAA0B,CAAC;CAAG;AAElG,QAAA,MAAM,kBAAkB,gGAUvB,CAAC;AAGF,QAAA,MAAM,gBAAgB,oHAWpB,CAAC;AAGH,QAAA,MAAM,kBAAkB,6GAYvB,CAAC;AAGF,QAAA,MAAM,iBAAiB,uFAatB,CAAC;AAGF,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import type { ControlShape } from '../../providers/shade-context';
2
2
  declare const dropzoneBaseVariants: (props?: ({
3
3
  variant?: "button" | "buttonSecondary" | "default" | "filled" | null | undefined;
4
+ admin7Design?: boolean | null | undefined;
4
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
- declare function dropzoneVariants(props?: Parameters<typeof dropzoneBaseVariants>[0], shape?: ControlShape): string;
6
+ declare function dropzoneVariants(props?: Omit<NonNullable<Parameters<typeof dropzoneBaseVariants>[0]>, 'admin7Design'>, shape?: ControlShape, admin7Design?: boolean): string;
6
7
  export { dropzoneVariants };
7
8
  //# sourceMappingURL=dropzone-variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropzone-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dropzone-variants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,QAAA,MAAM,oBAAoB;;8EAqBzB,CAAC;AAGF,iBAAS,gBAAgB,CACvB,KAAK,GAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAM,EACtD,KAAK,GAAE,YAAqB,UAS7B;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"dropzone-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dropzone-variants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,QAAA,MAAM,oBAAoB;;;8EAiCzB,CAAC;AAGF,iBAAS,gBAAgB,CACvB,KAAK,GAAE,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,cAAc,CAAM,EACzF,KAAK,GAAE,YAAqB,EAC5B,YAAY,UAAO,UAUpB;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared visual recipe for input-like surfaces (Input, Textarea, InputGroup, Select trigger).
3
3
  *
4
- * The recipe owns: border, background, radius, transition, focus ring, invalid state.
4
+ * The recipe owns: border, background, radius, shadow, transition, focus ring, invalid state.
5
5
  * Consumers add their own size, padding, typography, and component-specific tweaks.
6
6
  *
7
7
  * `inputSurface()` covers the two common shapes:
@@ -31,7 +31,7 @@
31
31
  * )} />
32
32
  */
33
33
  export declare const inputSurfaceClasses: {
34
- readonly base: 'rounded-field border border-field-border bg-field-surface transition-colors';
34
+ readonly base: 'rounded-field border border-field-border bg-field-surface shadow-field transition-colors';
35
35
  readonly focusSelf: 'focus-visible:outline-hidden focus-visible:border-focus-ring focus-visible:ring-2 focus-visible:ring-focus-ring/25';
36
36
  readonly focusWithin: 'has-[:focus-visible]:outline-hidden has-[:focus-visible]:border-focus-ring has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-focus-ring/25';
37
37
  readonly invalidSelf: 'aria-[invalid=true]:border-destructive aria-[invalid=true]:ring-destructive/20 dark:aria-[invalid=true]:ring-destructive/40';
@@ -1 +1 @@
1
- {"version":3,"file":"input-surface.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input-surface.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,mBAAmB;aAC9B,IAAI,EAAE,6EAA6E;aACnF,SAAS,EACP,oHAAoH;aACtH,WAAW,EACT,gJAAgJ;aAClJ,WAAW,EACT,6HAA6H;aAC/H,aAAa,EACX,+IAA+I;aACjJ,YAAY,EAAE,iDAAiD;aAC/D,iBAAiB,EACf,iIAAiI;CAC3H,CAAC;AAEX,wBAAgB,YAAY,CAAC,IAAI,GAAE,MAAM,GAAG,QAAiB,UAc5D"}
1
+ {"version":3,"file":"input-surface.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input-surface.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,mBAAmB;aAC9B,IAAI,EAAE,0FAA0F;aAChG,SAAS,EACP,oHAAoH;aACtH,WAAW,EACT,gJAAgJ;aAClJ,WAAW,EACT,6HAA6H;aAC/H,aAAa,EACX,+IAA+I;aACjJ,YAAY,EAAE,iDAAiD;aAC/D,iBAAiB,EACf,iIAAiI;CAC3H,CAAC;AAEX,wBAAgB,YAAY,CAAC,IAAI,GAAE,MAAM,GAAG,QAAiB,UAc5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"pagemenu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagemenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAepD,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2GAA2G;IAC3G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,QAAQ,sFA0Mb,CAAC;AAIF,QAAA,MAAM,YAAY,6FA6BjB,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"pagemenu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagemenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAepD,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,2GAA2G;IAC3G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yEAAyE;IACzE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,QAAQ,sFAwNb,CAAC;AAIF,QAAA,MAAM,YAAY,6FA+BjB,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC"}
@@ -1,5 +1,9 @@
1
+ declare const tabSurfaceVariants: (props?: ({
2
+ admin7Design?: boolean | null | undefined;
3
+ size?: "compact" | "default" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
1
5
  declare const tabsVariants: (props?: ({
2
6
  variant?: "button" | "button-sm" | "kpis" | "navbar" | "pill" | "segmented" | "segmented-sm" | "underline" | null | undefined;
3
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
- export { tabsVariants };
8
+ export { tabsVariants, tabSurfaceVariants };
5
9
  //# sourceMappingURL=tabs-variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tabs-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;8EAgBhB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"tabs-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs-variants.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,kBAAkB;;;8EAgBtB,CAAC;AAEH,QAAA,MAAM,YAAY;;8EAgBhB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAOtD,KAAK,WAAW,GACZ,WAAW,GACX,cAAc,GACd,QAAQ,GACR,WAAW,GACX,WAAW,GACX,QAAQ,GACR,MAAM,GACN,MAAM,CAAC;AAYX,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC;IAC1F,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,QAAA,MAAM,IAAI,kFAUT,CAAC;AAwBF,QAAA,MAAM,QAAQ,uJAYZ,CAAC;AA0CH,QAAA,MAAM,WAAW,gKAsBf,CAAC;AAGH,UAAU,qBAAqB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CA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C,EAClD,SAAS,CACV;IACC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,mBAAmB,iHAsCxB,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAC"}
package/types/tokens.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const SHADE_TOKEN_NAMES: readonly ['accent', 'accent-foreground', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'character-count', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-border', 'color-border-default', 'color-border-strong', 'color-card', 'color-card-foreground', 'color-character-count', 'color-chart-1', 'color-chart-2', 'color-chart-3', 'color-chart-4', 'color-chart-5', 'color-chart-amber', 'color-chart-blue', 'color-chart-darkgray', 'color-chart-gray', 'color-chart-green', 'color-chart-orange', 'color-chart-purple', 'color-chart-rose', 'color-chart-teal', 'color-chart-yellow', 'color-current', 'color-destructive', 'color-destructive-foreground', 'color-event-email-icon', 'color-event-email-surface', 'color-event-engagement-icon', 'color-event-engagement-surface', 'color-event-gain-icon', 'color-event-gain-surface', 'color-event-gift-icon', 'color-event-gift-surface', 'color-event-loss-icon', 'color-event-loss-surface', 'color-event-warning-icon', 'color-event-warning-surface', 'color-focus-ring', 'color-foreground', 'color-ghostaccent', 'color-gray', 'color-gray-100', 'color-gray-200', 'color-gray-300', 'color-gray-400', 'color-gray-50', 'color-gray-500', 'color-gray-600', 'color-gray-700', 'color-gray-800', 'color-gray-900', 'color-gray-950', 'color-green', 'color-green-100', 'color-green-200', 'color-green-300', 'color-green-400', 'color-green-50', 'color-green-500', 'color-green-600', 'color-green-700', 'color-green-800', 'color-green-900', 'color-input', 'color-lime', 'color-lime-100', 'color-lime-200', 'color-lime-300', 'color-lime-400', 'color-lime-50', 'color-lime-500', 'color-lime-600', 'color-lime-700', 'color-lime-800', 'color-lime-900', 'color-map-surface', 'color-muted', 'color-muted-foreground', 'color-orange', 'color-orange-100', 'color-orange-200', 'color-orange-300', 'color-orange-400', 'color-orange-50', 'color-orange-500', 'color-orange-600', 'color-orange-700', 'color-orange-800', 'color-orange-900', 'color-pink', 'color-pink-100', 'color-pink-200', 'color-pink-300', 'color-pink-400', 'color-pink-50', 'color-pink-500', 'color-pink-600', 'color-pink-700', 'color-pink-800', 'color-pink-900', 'color-popover', 'color-popover-foreground', 'color-primary', 'color-primary-foreground', 'color-publish-accent', 'color-purple', 'color-purple-100', 'color-purple-200', 'color-purple-300', 'color-purple-400', 'color-purple-50', 'color-purple-500', 'color-purple-600', 'color-purple-700', 'color-purple-800', 'color-purple-900', 'color-red', 'color-red-100', 'color-red-200', 'color-red-300', 'color-red-400', 'color-red-50', 'color-red-500', 'color-red-600', 'color-red-700', 'color-red-800', 'color-red-900', 'color-ring', 'color-secondary', 'color-secondary-foreground', 'color-sidebar', 'color-sidebar-accent', 'color-sidebar-accent-foreground', 'color-sidebar-border', 'color-sidebar-foreground', 'color-sidebar-primary', 'color-sidebar-primary-foreground', 'color-sidebar-ring', 'color-state-danger', 'color-state-danger-foreground', 'color-state-info', 'color-state-info-foreground', 'color-state-success', 'color-state-success-foreground', 'color-state-warning', 'color-state-warning-border', 'color-state-warning-fill', 'color-state-warning-foreground', 'color-state-warning-surface', 'color-surface-elevated', 'color-surface-page', 'color-surface-panel', 'color-text-primary', 'color-text-secondary', 'color-text-tertiary', 'color-transparent', 'color-white', 'color-yellow', 'color-yellow-100', 'color-yellow-200', 'color-yellow-300', 'color-yellow-400', 'color-yellow-50', 'color-yellow-500', 'color-yellow-600', 'color-yellow-700', 'color-yellow-800', 'color-yellow-900', 'container-0', 'container-2xl', 'container-3xl', 'container-4xl', 'container-5xl', 'container-6xl', 'container-7xl', 'container-8xl', 'container-9xl', 'container-lg', 'container-md', 'container-page', 'container-pageminsidebar', 'container-prose', 'container-sm', 'container-xl', 'container-xs', 'control-height', 'control-height-lg', 'control-outline-pressed-shadow', 'control-outline-shadow', 'control-pressed-shadow', 'destructive', 'destructive-foreground', 'duration-base', 'duration-fast', 'duration-slow', 'ease-emphasized', 'ease-standard', 'event-email-icon', 'event-email-surface', 'event-engagement-icon', 'event-engagement-surface', 'event-gain-icon', 'event-gain-surface', 'event-gift-icon', 'event-gift-surface', 'event-loss-icon', 'event-loss-surface', 'event-warning-icon', 'event-warning-surface', 'field-border', 'field-chip-internal-border', 'field-chip-internal-surface', 'field-chip-surface', 'field-disabled-surface', 'field-readonly-surface', 'field-surface', 'focus-ring', 'font-body', 'font-code', 'font-heading', 'font-inherit', 'font-mono', 'font-sans', 'font-serif', 'font-weight-title', 'foreground', 'input', 'input-group-radius', 'leading-base', 'leading-body', 'leading-heading', 'leading-loose', 'leading-none', 'leading-normal', 'leading-relaxed', 'leading-snug', 'leading-supertight', 'leading-tight', 'leading-tighter', 'map-surface', 'mobile-navbar-height', 'muted', 'muted-foreground', 'popover', 'popover-foreground', 'primary', 'primary-foreground', 'publish-accent', 'radius', 'radius-2xl', 'radius-3xl', 'radius-badge', 'radius-card', 'radius-control', 'radius-control-sm', 'radius-field', 'radius-full', 'radius-lg', 'radius-md', 'radius-menu', 'radius-menu-item', 'radius-pill', 'radius-sm', 'radius-surface', 'radius-trend-badge', 'radius-xl', 'radius-xs', 'ring', 'secondary', 'secondary-foreground', 'shadow', 'shadow-control-outline', 'shadow-control-outline-pressed', 'shadow-control-pressed', 'shadow-inner', 'shadow-lg', 'shadow-md', 'shadow-md-heavy', 'shadow-none', 'shadow-sm', 'shadow-xl', 'shadow-xs', 'sidebar-accent', 'sidebar-accent-foreground', 'sidebar-background', 'sidebar-border', 'sidebar-foreground', 'sidebar-primary', 'sidebar-primary-foreground', 'sidebar-ring', 'spacing', 'state-danger', 'state-danger-foreground', 'state-info', 'state-info-foreground', 'state-success', 'state-success-foreground', 'state-warning', 'state-warning-border', 'state-warning-fill', 'state-warning-foreground', 'state-warning-surface', 'surface-elevated', 'surface-page', 'surface-panel', 'text-2xl', 'text-2xs', 'text-3xl', 'text-4xl', 'text-5xl', 'text-5xl--line-height', 'text-6xl', 'text-6xl--line-height', 'text-7xl', 'text-7xl--line-height', 'text-8xl', 'text-8xl--line-height', 'text-9xl', 'text-9xl--line-height', 'text-base', 'text-body-lg', 'text-body-md', 'text-body-sm', 'text-control', 'text-control-lg', 'text-field', 'text-lg', 'text-md', 'text-primary', 'text-secondary', 'text-section-heading', 'text-section-heading-lg', 'text-sm', 'text-tertiary', 'text-xl', 'text-xs', 'tracking-normal', 'tracking-tight', 'tracking-tighter', 'tracking-tightest', 'tracking-wide', 'tracking-wider', 'tracking-widest'];
1
+ export declare const SHADE_TOKEN_NAMES: readonly ['accent', 'accent-foreground', 'animate-accordion-down', 'animate-accordion-up', 'animate-fade-in', 'animate-fade-out', 'animate-modal-backdrop-in', 'animate-modal-in', 'animate-modal-in-from-right', 'animate-modal-in-reverse', 'animate-spin', 'animate-toaster-in', 'animate-toaster-out', 'animate-toaster-top-in', 'background', 'border', 'border-default', 'border-strong', 'breakpoint-lg', 'breakpoint-md', 'breakpoint-sidebar', 'breakpoint-sidebarlg', 'breakpoint-sm', 'breakpoint-tablet', 'breakpoint-xl', 'breakpoint-xxl', 'breakpoint-xxxl', 'card', 'card-foreground', 'character-count', 'chart-1', 'chart-2', 'chart-3', 'chart-4', 'chart-5', 'chart-amber', 'chart-blue', 'chart-darkblue', 'chart-darkgray', 'chart-gray', 'chart-green', 'chart-orange', 'chart-purple', 'chart-rose', 'chart-teal', 'chart-yellow', 'color-accent', 'color-accent-foreground', 'color-background', 'color-black', 'color-blue', 'color-blue-100', 'color-blue-200', 'color-blue-300', 'color-blue-400', 'color-blue-50', 'color-blue-500', 'color-blue-600', 'color-blue-700', 'color-blue-800', 'color-blue-900', 'color-border', 'color-border-default', 'color-border-strong', 'color-card', 'color-card-foreground', 'color-character-count', 'color-chart-1', 'color-chart-2', 'color-chart-3', 'color-chart-4', 'color-chart-5', 'color-chart-amber', 'color-chart-blue', 'color-chart-darkgray', 'color-chart-gray', 'color-chart-green', 'color-chart-orange', 'color-chart-purple', 'color-chart-rose', 'color-chart-teal', 'color-chart-yellow', 'color-current', 'color-destructive', 'color-destructive-foreground', 'color-event-email-icon', 'color-event-email-surface', 'color-event-engagement-icon', 'color-event-engagement-surface', 'color-event-gain-icon', 'color-event-gain-surface', 'color-event-gift-icon', 'color-event-gift-surface', 'color-event-loss-icon', 'color-event-loss-surface', 'color-event-warning-icon', 'color-event-warning-surface', 'color-focus-ring', 'color-foreground', 'color-ghostaccent', 'color-gray', 'color-gray-100', 'color-gray-200', 'color-gray-300', 'color-gray-400', 'color-gray-50', 'color-gray-500', 'color-gray-600', 'color-gray-700', 'color-gray-800', 'color-gray-900', 'color-gray-950', 'color-green', 'color-green-100', 'color-green-200', 'color-green-300', 'color-green-400', 'color-green-50', 'color-green-500', 'color-green-600', 'color-green-700', 'color-green-800', 'color-green-900', 'color-input', 'color-lime', 'color-lime-100', 'color-lime-200', 'color-lime-300', 'color-lime-400', 'color-lime-50', 'color-lime-500', 'color-lime-600', 'color-lime-700', 'color-lime-800', 'color-lime-900', 'color-map-surface', 'color-muted', 'color-muted-foreground', 'color-orange', 'color-orange-100', 'color-orange-200', 'color-orange-300', 'color-orange-400', 'color-orange-50', 'color-orange-500', 'color-orange-600', 'color-orange-700', 'color-orange-800', 'color-orange-900', 'color-pink', 'color-pink-100', 'color-pink-200', 'color-pink-300', 'color-pink-400', 'color-pink-50', 'color-pink-500', 'color-pink-600', 'color-pink-700', 'color-pink-800', 'color-pink-900', 'color-popover', 'color-popover-foreground', 'color-primary', 'color-primary-foreground', 'color-publish-accent', 'color-purple', 'color-purple-100', 'color-purple-200', 'color-purple-300', 'color-purple-400', 'color-purple-50', 'color-purple-500', 'color-purple-600', 'color-purple-700', 'color-purple-800', 'color-purple-900', 'color-red', 'color-red-100', 'color-red-200', 'color-red-300', 'color-red-400', 'color-red-50', 'color-red-500', 'color-red-600', 'color-red-700', 'color-red-800', 'color-red-900', 'color-ring', 'color-secondary', 'color-secondary-foreground', 'color-sidebar', 'color-sidebar-accent', 'color-sidebar-accent-foreground', 'color-sidebar-border', 'color-sidebar-foreground', 'color-sidebar-primary', 'color-sidebar-primary-foreground', 'color-sidebar-ring', 'color-state-danger', 'color-state-danger-foreground', 'color-state-info', 'color-state-info-foreground', 'color-state-success', 'color-state-success-foreground', 'color-state-warning', 'color-state-warning-border', 'color-state-warning-fill', 'color-state-warning-foreground', 'color-state-warning-surface', 'color-surface-elevated', 'color-surface-page', 'color-surface-panel', 'color-text-primary', 'color-text-secondary', 'color-text-tertiary', 'color-transparent', 'color-white', 'color-yellow', 'color-yellow-100', 'color-yellow-200', 'color-yellow-300', 'color-yellow-400', 'color-yellow-50', 'color-yellow-500', 'color-yellow-600', 'color-yellow-700', 'color-yellow-800', 'color-yellow-900', 'container-0', 'container-2xl', 'container-3xl', 'container-4xl', 'container-5xl', 'container-6xl', 'container-7xl', 'container-8xl', 'container-9xl', 'container-lg', 'container-md', 'container-page', 'container-pageminsidebar', 'container-prose', 'container-sm', 'container-xl', 'container-xs', 'control-height', 'control-height-lg', 'control-outline-pressed-shadow', 'control-outline-shadow', 'control-pressed-shadow', 'destructive', 'destructive-foreground', 'duration-base', 'duration-fast', 'duration-slow', 'ease-emphasized', 'ease-standard', 'event-email-icon', 'event-email-surface', 'event-engagement-icon', 'event-engagement-surface', 'event-gain-icon', 'event-gain-surface', 'event-gift-icon', 'event-gift-surface', 'event-loss-icon', 'event-loss-surface', 'event-warning-icon', 'event-warning-surface', 'field-border', 'field-chip-internal-border', 'field-chip-internal-surface', 'field-chip-surface', 'field-disabled-surface', 'field-readonly-surface', 'field-shadow', 'field-surface', 'focus-ring', 'font-body', 'font-code', 'font-heading', 'font-inherit', 'font-mono', 'font-sans', 'font-serif', 'font-weight-title', 'foreground', 'input', 'input-group-radius', 'leading-base', 'leading-body', 'leading-heading', 'leading-loose', 'leading-none', 'leading-normal', 'leading-relaxed', 'leading-snug', 'leading-supertight', 'leading-tight', 'leading-tighter', 'map-surface', 'mobile-navbar-height', 'muted', 'muted-foreground', 'popover', 'popover-foreground', 'primary', 'primary-foreground', 'publish-accent', 'radius', 'radius-2xl', 'radius-3xl', 'radius-badge', 'radius-card', 'radius-control', 'radius-control-sm', 'radius-field', 'radius-full', 'radius-lg', 'radius-md', 'radius-menu', 'radius-menu-item', 'radius-pill', 'radius-sm', 'radius-surface', 'radius-trend-badge', 'radius-xl', 'radius-xs', 'ring', 'secondary', 'secondary-foreground', 'shadow', 'shadow-control-outline', 'shadow-control-outline-pressed', 'shadow-control-pressed', 'shadow-field', 'shadow-inner', 'shadow-lg', 'shadow-md', 'shadow-md-heavy', 'shadow-none', 'shadow-sm', 'shadow-xl', 'shadow-xs', 'sidebar-accent', 'sidebar-accent-foreground', 'sidebar-background', 'sidebar-border', 'sidebar-foreground', 'sidebar-primary', 'sidebar-primary-foreground', 'sidebar-ring', 'spacing', 'state-danger', 'state-danger-foreground', 'state-info', 'state-info-foreground', 'state-success', 'state-success-foreground', 'state-warning', 'state-warning-border', 'state-warning-fill', 'state-warning-foreground', 'state-warning-surface', 'surface-elevated', 'surface-page', 'surface-panel', 'tab-inactive', 'tab-inactive-hover', 'text-2xl', 'text-2xs', 'text-3xl', 'text-4xl', 'text-5xl', 'text-5xl--line-height', 'text-6xl', 'text-6xl--line-height', 'text-7xl', 'text-7xl--line-height', 'text-8xl', 'text-8xl--line-height', 'text-9xl', 'text-9xl--line-height', 'text-base', 'text-body-lg', 'text-body-md', 'text-body-sm', 'text-control', 'text-control-lg', 'text-field', 'text-lg', 'text-md', 'text-primary', 'text-secondary', 'text-section-heading', 'text-section-heading-lg', 'text-sm', 'text-tertiary', 'text-xl', 'text-xs', 'tracking-normal', 'tracking-tight', 'tracking-tighter', 'tracking-tightest', 'tracking-wide', 'tracking-wider', 'tracking-widest'];
2
2
  export type ShadeTokenName = (typeof SHADE_TOKEN_NAMES)[number];
3
3
  export declare const shadeToken: (name: ShadeTokenName) => string;
4
4
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb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":"tokens.d.ts","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,iBAAiB,YAC5B,QAAQ,EACR,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,6BAA6B,EAC7B,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,uBAAuB,EACvB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,8BAA8B,EAC9B,wBAAwB,EACxB,2BAA2B,EAC3B,6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