@tryghost/shade 0.1.0-alpha.24 → 0.1.0-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/patterns/setting-group.js +2 -2
- package/es/components/patterns/setting-group.js.map +1 -1
- package/es/components/patterns/settings-modal.js +1 -1
- package/es/components/patterns/settings-modal.js.map +1 -1
- package/es/components/ui/alert-dialog.js +1 -1
- package/es/components/ui/alert-dialog.js.map +1 -1
- package/es/components/ui/card-variants.js +2 -1
- package/es/components/ui/card-variants.js.map +1 -1
- package/es/components/ui/card.js +6 -3
- package/es/components/ui/card.js.map +1 -1
- package/es/components/ui/data-list.js +1 -1
- package/es/components/ui/data-list.js.map +1 -1
- package/es/components/ui/dialog.js +1 -1
- package/es/components/ui/dialog.js.map +1 -1
- package/es/components/ui/sheet.js +1 -1
- package/es/components/ui/sheet.js.map +1 -1
- package/es/components/ui/table.js +2 -2
- package/es/components/ui/table.js.map +1 -1
- package/es/tokens.js +29 -0
- package/es/tokens.js.map +1 -1
- package/package.json +1 -1
- package/styles.css +49 -0
- package/tailwind.theme.css +14 -0
- package/theme-variables.css +32 -1
- package/types/components/patterns/settings-modal.d.ts.map +1 -1
- package/types/components/ui/card-variants.d.ts +1 -1
- package/types/components/ui/card-variants.d.ts.map +1 -1
- package/types/components/ui/card.d.ts +1 -1
- package/types/components/ui/card.d.ts.map +1 -1
- package/types/components/ui/dialog.d.ts.map +1 -1
- package/types/components/ui/sheet.d.ts.map +1 -1
- package/types/tokens.d.ts +1 -1
- package/types/tokens.d.ts.map +1 -1
|
@@ -38,7 +38,7 @@ SettingGroupDetails.displayName = "SettingGroupDetails";
|
|
|
38
38
|
var SettingGroupTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Text, {
|
|
39
39
|
ref,
|
|
40
40
|
as: "h5",
|
|
41
|
-
className: cn("md:text-lg", className),
|
|
41
|
+
className: cn("section-heading md:text-lg", className),
|
|
42
42
|
leading: "supertight",
|
|
43
43
|
weight: "semibold",
|
|
44
44
|
...props
|
|
@@ -46,7 +46,7 @@ var SettingGroupTitle = React$1.forwardRef(({ className, ...props }, ref) => /*
|
|
|
46
46
|
SettingGroupTitle.displayName = "SettingGroupTitle";
|
|
47
47
|
var SettingGroupDescription = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Text, {
|
|
48
48
|
ref,
|
|
49
|
-
className: cn("mr-5 hidden text-pretty group-data-[editing=false]/setting-group:block md:block", className),
|
|
49
|
+
className: cn("mr-5 hidden text-pretty group-data-[editing=false]/setting-group:block in-data-[admin7-design=true]:text-muted-foreground md:block", className),
|
|
50
50
|
...props
|
|
51
51
|
}));
|
|
52
52
|
SettingGroupDescription.displayName = "SettingGroupDescription";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setting-group.js","names":[],"sources":["../../../src/components/patterns/setting-group.tsx"],"sourcesContent":["import * as React from 'react';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { settingGroupVariants } from '@/components/patterns/setting-group-variants';\nimport { Grid } from '@/components/primitives/grid';\nimport { Inline } from '@/components/primitives/inline';\nimport { Stack } from '@/components/primitives/stack';\nimport { Text } from '@/components/primitives/text';\nimport { cn } from '@/lib/utils';\n\ninterface SettingGroupProps\n extends React.ComponentPropsWithoutRef<'div'>, VariantProps<typeof settingGroupVariants> {\n editing?: boolean;\n}\n\nconst SettingGroup = React.forwardRef<HTMLDivElement, SettingGroupProps>(\n ({ className, variant, highlighted, editing = false, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(settingGroupVariants({ variant, highlighted, className }))}\n data-editing={editing}\n {...props}\n />\n ),\n);\nSettingGroup.displayName = 'SettingGroup';\n\nconst SettingGroupHeader = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Inline>\n>(({ className, ...props }, ref) => (\n <Inline\n ref={ref}\n align=\"start\"\n as=\"div\"\n className={cn('relative z-10 w-full', className)}\n gap=\"lg\"\n justify=\"between\"\n {...props}\n />\n));\nSettingGroupHeader.displayName = 'SettingGroupHeader';\n\nconst SettingGroupDetails = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof Stack>\n>(({ className, ...props }, ref) => (\n <Stack ref={ref} className={cn('min-w-0', className)} gap=\"xs\" {...props} />\n));\nSettingGroupDetails.displayName = 'SettingGroupDetails';\n\nconst SettingGroupTitle = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Text>\n>(({ className, ...props }, ref) => (\n <Text\n ref={ref}\n as=\"h5\"\n className={cn('md:text-lg', className)}\n leading=\"supertight\"\n weight=\"semibold\"\n {...props}\n />\n));\nSettingGroupTitle.displayName = 'SettingGroupTitle';\n\nconst SettingGroupDescription = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Text>\n>(({ className, ...props }, ref) => (\n <Text\n ref={ref}\n className={cn(\n 'mr-5 hidden text-pretty group-data-[editing=false]/setting-group:block md:block',\n className,\n )}\n {...props}\n />\n));\nSettingGroupDescription.displayName = 'SettingGroupDescription';\n\nconst SettingGroupActions = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('shrink-0 [&_button]:text-control!', className)} {...props} />\n ),\n);\nSettingGroupActions.displayName = 'SettingGroupActions';\n\ninterface SettingGroupContentProps extends React.ComponentPropsWithoutRef<'div'> {\n columns?: 1 | 2;\n}\n\nconst SettingGroupContent = React.forwardRef<HTMLDivElement, SettingGroupContentProps>(\n ({ children, className, columns = 1, ...props }, ref) => {\n if (columns === 2) {\n return (\n <Grid\n ref={ref}\n className={cn('grid-cols-1 gap-x-8 gap-y-6 md:grid-cols-2', className)}\n columns={1}\n gap=\"none\"\n {...props}\n >\n {children}\n </Grid>\n );\n }\n\n return (\n <Stack ref={ref} className={cn('gap-y-7', className)} gap=\"none\" {...props}>\n {children}\n </Stack>\n );\n },\n);\nSettingGroupContent.displayName = 'SettingGroupContent';\n\nconst SettingGroupValue = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof Stack>\n>(({ className, ...props }, ref) => (\n <Stack ref={ref} className={className} gap=\"none\" {...props} />\n));\nSettingGroupValue.displayName = 'SettingGroupValue';\n\nconst SettingGroupValueTitle = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Text>\n>(({ className, ...props }, ref) => (\n <Text ref={ref} as=\"h6\" className={cn('text-base', className)} weight=\"semibold\" {...props} />\n));\nSettingGroupValueTitle.displayName = 'SettingGroupValueTitle';\n\nconst SettingGroupValueContent = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Inline>\n>(({ className, ...props }, ref) => (\n <Inline ref={ref} as=\"div\" className={className} gap=\"none\" {...props} />\n));\nSettingGroupValueContent.displayName = 'SettingGroupValueContent';\n\nexport {\n SettingGroup,\n SettingGroupActions,\n SettingGroupContent,\n SettingGroupDescription,\n SettingGroupDetails,\n SettingGroupHeader,\n SettingGroupTitle,\n SettingGroupValue,\n SettingGroupValueContent,\n SettingGroupValueTitle,\n};\nexport type { SettingGroupContentProps, SettingGroupProps };\n"],"mappings":";;;;;;;;;AAeA,IAAM,eAAe,QAAM,YACxB,EAAE,WAAW,SAAS,aAAa,UAAU,OAAO,GAAG,SAAS,QAC/D,oBAAC,OAAD;CACO;CACL,WAAW,GAAG,qBAAqB;EAAE;EAAS;EAAa;CAAU,CAAC,CAAC;CACvE,gBAAc;CACd,GAAI;AACL,CAAA,CAEL;AACA,aAAa,cAAc;AAE3B,IAAM,qBAAqB,QAAM,YAG9B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,QAAD;CACO;CACL,OAAM;CACN,IAAG;CACH,WAAW,GAAG,wBAAwB,SAAS;CAC/C,KAAI;CACJ,SAAQ;CACR,GAAI;AACL,CAAA,CACF;AACD,mBAAmB,cAAc;AAEjC,IAAM,sBAAsB,QAAM,YAG/B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,OAAD;CAAY;CAAK,WAAW,GAAG,WAAW,SAAS;CAAG,KAAI;CAAK,GAAI;AAAQ,CAAA,CAC5E;AACD,oBAAoB,cAAc;AAElC,IAAM,oBAAoB,QAAM,YAG7B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CACO;CACL,IAAG;CACH,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"setting-group.js","names":[],"sources":["../../../src/components/patterns/setting-group.tsx"],"sourcesContent":["import * as React from 'react';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { settingGroupVariants } from '@/components/patterns/setting-group-variants';\nimport { Grid } from '@/components/primitives/grid';\nimport { Inline } from '@/components/primitives/inline';\nimport { Stack } from '@/components/primitives/stack';\nimport { Text } from '@/components/primitives/text';\nimport { cn } from '@/lib/utils';\n\ninterface SettingGroupProps\n extends React.ComponentPropsWithoutRef<'div'>, VariantProps<typeof settingGroupVariants> {\n editing?: boolean;\n}\n\nconst SettingGroup = React.forwardRef<HTMLDivElement, SettingGroupProps>(\n ({ className, variant, highlighted, editing = false, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(settingGroupVariants({ variant, highlighted, className }))}\n data-editing={editing}\n {...props}\n />\n ),\n);\nSettingGroup.displayName = 'SettingGroup';\n\nconst SettingGroupHeader = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Inline>\n>(({ className, ...props }, ref) => (\n <Inline\n ref={ref}\n align=\"start\"\n as=\"div\"\n className={cn('relative z-10 w-full', className)}\n gap=\"lg\"\n justify=\"between\"\n {...props}\n />\n));\nSettingGroupHeader.displayName = 'SettingGroupHeader';\n\nconst SettingGroupDetails = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof Stack>\n>(({ className, ...props }, ref) => (\n <Stack ref={ref} className={cn('min-w-0', className)} gap=\"xs\" {...props} />\n));\nSettingGroupDetails.displayName = 'SettingGroupDetails';\n\nconst SettingGroupTitle = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Text>\n>(({ className, ...props }, ref) => (\n <Text\n ref={ref}\n as=\"h5\"\n className={cn('section-heading md:text-lg', className)}\n leading=\"supertight\"\n weight=\"semibold\"\n {...props}\n />\n));\nSettingGroupTitle.displayName = 'SettingGroupTitle';\n\nconst SettingGroupDescription = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Text>\n>(({ className, ...props }, ref) => (\n <Text\n ref={ref}\n className={cn(\n 'mr-5 hidden text-pretty group-data-[editing=false]/setting-group:block in-data-[admin7-design=true]:text-muted-foreground md:block',\n className,\n )}\n {...props}\n />\n));\nSettingGroupDescription.displayName = 'SettingGroupDescription';\n\nconst SettingGroupActions = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('shrink-0 [&_button]:text-control!', className)} {...props} />\n ),\n);\nSettingGroupActions.displayName = 'SettingGroupActions';\n\ninterface SettingGroupContentProps extends React.ComponentPropsWithoutRef<'div'> {\n columns?: 1 | 2;\n}\n\nconst SettingGroupContent = React.forwardRef<HTMLDivElement, SettingGroupContentProps>(\n ({ children, className, columns = 1, ...props }, ref) => {\n if (columns === 2) {\n return (\n <Grid\n ref={ref}\n className={cn('grid-cols-1 gap-x-8 gap-y-6 md:grid-cols-2', className)}\n columns={1}\n gap=\"none\"\n {...props}\n >\n {children}\n </Grid>\n );\n }\n\n return (\n <Stack ref={ref} className={cn('gap-y-7', className)} gap=\"none\" {...props}>\n {children}\n </Stack>\n );\n },\n);\nSettingGroupContent.displayName = 'SettingGroupContent';\n\nconst SettingGroupValue = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof Stack>\n>(({ className, ...props }, ref) => (\n <Stack ref={ref} className={className} gap=\"none\" {...props} />\n));\nSettingGroupValue.displayName = 'SettingGroupValue';\n\nconst SettingGroupValueTitle = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Text>\n>(({ className, ...props }, ref) => (\n <Text ref={ref} as=\"h6\" className={cn('text-base', className)} weight=\"semibold\" {...props} />\n));\nSettingGroupValueTitle.displayName = 'SettingGroupValueTitle';\n\nconst SettingGroupValueContent = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<typeof Inline>\n>(({ className, ...props }, ref) => (\n <Inline ref={ref} as=\"div\" className={className} gap=\"none\" {...props} />\n));\nSettingGroupValueContent.displayName = 'SettingGroupValueContent';\n\nexport {\n SettingGroup,\n SettingGroupActions,\n SettingGroupContent,\n SettingGroupDescription,\n SettingGroupDetails,\n SettingGroupHeader,\n SettingGroupTitle,\n SettingGroupValue,\n SettingGroupValueContent,\n SettingGroupValueTitle,\n};\nexport type { SettingGroupContentProps, SettingGroupProps };\n"],"mappings":";;;;;;;;;AAeA,IAAM,eAAe,QAAM,YACxB,EAAE,WAAW,SAAS,aAAa,UAAU,OAAO,GAAG,SAAS,QAC/D,oBAAC,OAAD;CACO;CACL,WAAW,GAAG,qBAAqB;EAAE;EAAS;EAAa;CAAU,CAAC,CAAC;CACvE,gBAAc;CACd,GAAI;AACL,CAAA,CAEL;AACA,aAAa,cAAc;AAE3B,IAAM,qBAAqB,QAAM,YAG9B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,QAAD;CACO;CACL,OAAM;CACN,IAAG;CACH,WAAW,GAAG,wBAAwB,SAAS;CAC/C,KAAI;CACJ,SAAQ;CACR,GAAI;AACL,CAAA,CACF;AACD,mBAAmB,cAAc;AAEjC,IAAM,sBAAsB,QAAM,YAG/B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,OAAD;CAAY;CAAK,WAAW,GAAG,WAAW,SAAS;CAAG,KAAI;CAAK,GAAI;AAAQ,CAAA,CAC5E;AACD,oBAAoB,cAAc;AAElC,IAAM,oBAAoB,QAAM,YAG7B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CACO;CACL,IAAG;CACH,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,GAAI;AAAQ,CAAA,CACzE;AACD,yBAAyB,cAAc"}
|
|
@@ -136,7 +136,7 @@ var SettingsModal = forwardRef(({ "aria-label": ariaLabel, className, size = "md
|
|
|
136
136
|
});
|
|
137
137
|
const titleContent = title && /* @__PURE__ */ jsx(Text, {
|
|
138
138
|
as: "h3",
|
|
139
|
-
className: "md:text-2xl",
|
|
139
|
+
className: "in-data-[admin7-design=true]:font-title md:text-2xl",
|
|
140
140
|
leading: "heading",
|
|
141
141
|
size: "xl",
|
|
142
142
|
weight: "bold",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-modal.js","names":[],"sources":["../../../src/components/patterns/settings-modal.tsx"],"sourcesContent":["import { X } from 'lucide-react';\nimport React, { forwardRef, useEffect, useState } from 'react';\n\nimport { settingsModalVariants } from '@/components/patterns/settings-modal-variants';\nimport { Button, type ButtonProps } from '@/components/ui/button';\nimport { LoadingIndicator } from '@/components/ui/loading-indicator';\nimport { StickyFooter } from '@/components/ui/sticky-footer';\nimport { Box } from '@/components/primitives/box';\nimport { Inline } from '@/components/primitives/inline';\nimport { Text } from '@/components/primitives/text';\nimport { DirtyConfirmDialog } from '@/components/patterns/dirty-confirm-dialog';\nimport { useDirtyConfirmation } from '@/components/patterns/use-dirty-confirmation';\nimport useGlobalDirtyState from '@/hooks/use-global-dirty-state';\nimport { cn } from '@/lib/utils';\n\n/**\n * Consumer-controlled settings modal shell. Legacy full-page settings dialogs\n * still render through it; new modal flows should use Shade Dialog primitives.\n */\nexport type SettingsModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'bleed';\n\nexport interface SettingsModalProps {\n 'aria-label'?: string;\n className?: string;\n size?: SettingsModalSize;\n width?: 'full' | 'toSidebar' | number;\n height?: 'full' | number;\n align?: 'center' | 'left' | 'right';\n testId?: string;\n title?: React.ReactNode;\n okLabel?: string;\n okVariant?: ButtonProps['variant'];\n okLoading?: boolean;\n cancelLabel?: string;\n leftButton?: React.ReactNode;\n buttonsDisabled?: boolean;\n okDisabled?: boolean;\n footer?: boolean | React.ReactNode;\n /** Extra classes on the default footer's button row, e.g. to constrain its width. */\n footerClassName?: string;\n header?: boolean;\n padding?: boolean;\n /** May be async; the modal fires it without awaiting, so the handler owns its own error handling. */\n onOk?: () => void | Promise<void>;\n onCancel?: () => void;\n topRightContent?: 'close' | React.ReactNode;\n hideXOnMobile?: boolean;\n onClose: () => void;\n afterClose?: () => void;\n children?: React.ReactNode;\n backDrop?: boolean;\n backDropClick?: boolean;\n stickyFooter?: boolean;\n stickyHeader?: boolean;\n scrolling?: boolean;\n dirty?: boolean;\n animate?: boolean;\n formSheet?: boolean;\n enableCMDS?: boolean;\n allowBackgroundInteraction?: boolean;\n}\n\nconst MODAL_BACKDROP_CLASSES = 'bg-modal-backdrop backdrop-blur-[3px]';\n\nconst backdropPadding: Record<SettingsModalSize, string> = {\n sm: 'p-4 md:p-[8vmin]',\n md: 'p-4 md:p-[8vmin]',\n lg: 'p-4 md:p-[4vmin]',\n xl: 'p-4 md:p-[3vmin]',\n full: 'p-4 md:p-[3vmin]',\n bleed: '',\n};\n\nconst contentPadding: Record<SettingsModalSize, string> = {\n sm: 'p-8',\n md: 'p-8',\n lg: 'p-7',\n xl: 'p-10',\n full: 'p-10',\n bleed: 'p-10',\n};\n\nconst headerOffsets: Record<SettingsModalSize, string> = {\n sm: '-inset-x-8',\n md: '-inset-x-8',\n lg: '-inset-x-8',\n xl: '-inset-x-10 -top-10',\n full: '-inset-x-10',\n bleed: '-inset-x-10',\n};\n\nconst SettingsModal = forwardRef<HTMLElement, SettingsModalProps>(\n (\n {\n 'aria-label': ariaLabel,\n className,\n size = 'md',\n align = 'center',\n width,\n height,\n testId,\n title,\n okLabel = 'OK',\n okLoading = false,\n cancelLabel = 'Cancel',\n footer,\n footerClassName,\n header,\n leftButton,\n buttonsDisabled,\n okDisabled,\n padding = true,\n onOk,\n okVariant = 'default',\n onCancel,\n topRightContent,\n hideXOnMobile = false,\n onClose,\n afterClose,\n children,\n backDrop = true,\n backDropClick = true,\n stickyFooter = false,\n stickyHeader = false,\n scrolling = true,\n dirty = false,\n animate = true,\n formSheet = false,\n enableCMDS = true,\n allowBackgroundInteraction = false,\n },\n ref,\n ) => {\n const { setGlobalDirtyState } = useGlobalDirtyState();\n const { confirm, dialogProps } = useDirtyConfirmation();\n const [animationFinished, setAnimationFinished] = useState(false);\n useEffect(() => {\n setGlobalDirtyState(dirty);\n }, [dirty, setGlobalDirtyState]);\n\n const removeModal = () => {\n confirm(dirty, () => {\n onClose();\n afterClose?.();\n });\n };\n\n useEffect(() => {\n const handleEscapeKey = (event: KeyboardEvent) => {\n if (event.key !== 'Escape') {\n return;\n }\n\n const activeElement = document.activeElement;\n if (activeElement?.hasAttribute('data-kg-link-input')) {\n return;\n }\n\n setTimeout(() => {\n // Radix layers may handle Escape from a document listener that\n // was registered after this modal. Wait until propagation is\n // complete before deciding whether the modal should close.\n if (event.defaultPrevented) {\n return;\n }\n\n if (activeElement instanceof HTMLElement && document.activeElement === activeElement) {\n activeElement.blur();\n }\n\n if (onCancel) {\n onCancel();\n } else {\n removeModal();\n }\n });\n };\n\n document.addEventListener('keydown', handleEscapeKey);\n return () => document.removeEventListener('keydown', handleEscapeKey);\n });\n\n useEffect(() => {\n const timeout = setTimeout(() => setAnimationFinished(true), 250);\n return () => clearTimeout(timeout);\n }, []);\n\n useEffect(() => {\n if (!onOk || !enableCMDS) {\n return;\n }\n\n const handleCMDS = (event: KeyboardEvent) => {\n if ((event.metaKey || event.ctrlKey) && event.key === 's') {\n event.preventDefault();\n void onOk();\n }\n };\n\n window.addEventListener('keydown', handleCMDS);\n return () => window.removeEventListener('keydown', handleCMDS);\n }, [enableCMDS, onOk]);\n\n const paddingClasses = padding ? contentPadding[size] : 'p-0';\n const modalClasses = cn(\n settingsModalVariants({ size, align, scrolling, formSheet }),\n className,\n animate && !formSheet && !animationFinished && align === 'center' && 'animate-modal-in',\n animate &&\n !formSheet &&\n !animationFinished &&\n align === 'right' &&\n 'animate-modal-in-from-right',\n formSheet && !animationFinished && 'animate-modal-in-reverse',\n width === 'full' && 'w-full',\n width === 'toSidebar' &&\n 'w-full max-w-[calc(100dvw_-_280px)] lg:max-w-full min-[1280px]:max-w-[calc(100dvw_-_320px)]',\n height === 'full' && 'h-full',\n allowBackgroundInteraction && 'pointer-events-auto',\n );\n const backdropClasses = cn(\n 'fixed inset-0 z-[1000] h-[100dvh] w-[100dvw] max-[800px]:pb-20',\n backdropPadding[size],\n allowBackgroundInteraction && 'pointer-events-none',\n );\n const headerClasses = cn(\n paddingClasses,\n 'pb-0',\n headerOffsets[size],\n topRightContent && topRightContent !== 'close' && 'flex items-center justify-between gap-5',\n stickyHeader && 'sticky -top-px z-[300] -mb-4 bg-background pb-4',\n );\n const contentClasses = cn(\n paddingClasses,\n 'py-0',\n (size === 'full' || size === 'bleed' || height === 'full' || typeof height === 'number') &&\n 'grow',\n !scrolling && 'min-h-0',\n footer === false && 'pb-0',\n );\n const footerClasses = cn(\n paddingClasses,\n 'flex w-full items-center justify-between',\n stickyFooter && 'py-6',\n footerClassName,\n );\n const modalStyles: React.CSSProperties = {\n ...(typeof width === 'number' ? { width: '100%', maxWidth: `${width}px` } : {}),\n ...(typeof height === 'number' ? { height: '100%', maxHeight: `${height}px` } : {}),\n };\n\n const handleBackdropClick = (event: React.MouseEvent<HTMLDivElement>) => {\n if (event.target === event.currentTarget && backDropClick) {\n removeModal();\n }\n };\n\n let footerContent: React.ReactNode;\n if (footer) {\n footerContent = footer;\n } else if (footer !== false) {\n footerContent = (\n <Inline className={footerClasses} gap=\"none\" justify=\"between\">\n <Box>{leftButton}</Box>\n <Inline gap=\"md\">\n {cancelLabel && (\n <Button\n data-testid=\"cancel-modal\"\n disabled={buttonsDisabled}\n type=\"button\"\n variant=\"outline\"\n onClick={onCancel || removeModal}\n >\n {cancelLabel}\n </Button>\n )}\n {okLabel && (\n <Button\n data-testid=\"ok-modal\"\n disabled={buttonsDisabled || okDisabled || okLoading}\n type=\"button\"\n variant={okVariant}\n onClick={() => void onOk?.()}\n >\n {okLoading && <LoadingIndicator size=\"sm\" />}\n {okLabel}\n </Button>\n )}\n </Inline>\n </Inline>\n );\n }\n\n if (stickyFooter) {\n footerContent = <StickyFooter height={84}>{footerContent}</StickyFooter>;\n }\n\n const titleContent = title && (\n <Text as=\"h3\" className=\"md:text-2xl\" leading=\"heading\" size=\"xl\" weight=\"bold\">\n {title}\n </Text>\n );\n const headerContent =\n topRightContent && topRightContent !== 'close' ? (\n <Inline as=\"header\" className={headerClasses} gap=\"lg\" justify=\"between\">\n {titleContent}\n {topRightContent}\n </Inline>\n ) : (\n <header className={headerClasses}>\n {titleContent}\n <Box\n className={cn(\n 'absolute top-6 right-6',\n topRightContent !== 'close' && 'md:hidden',\n hideXOnMobile && 'hidden',\n )}\n >\n <Button\n aria-label=\"Close modal\"\n className=\"-m-2 opacity-50 hover:opacity-100\"\n data-testid=\"close-modal\"\n size=\"icon\"\n type=\"button\"\n variant=\"ghost\"\n onClick={removeModal}\n >\n <X />\n </Button>\n </Box>\n </header>\n );\n\n return (\n <>\n <Box className={backdropClasses} id=\"modal-backdrop\" onMouseDown={handleBackdropClick}>\n <Box\n className={cn(\n 'pointer-events-none fixed inset-0 z-0',\n backDrop && !formSheet && MODAL_BACKDROP_CLASSES,\n formSheet && 'bg-form-sheet-backdrop',\n )}\n />\n <section\n ref={ref}\n aria-label={ariaLabel}\n className={modalClasses}\n data-testid={testId}\n style={modalStyles}\n >\n {header !== false && headerContent}\n <Box className={contentClasses}>{children}</Box>\n {footerContent}\n </section>\n </Box>\n <DirtyConfirmDialog {...dialogProps} />\n </>\n );\n },\n);\n\nSettingsModal.displayName = 'SettingsModal';\n\nexport { SettingsModal };\n"],"mappings":";;;;;;;;;;;;;;;AA8DA,IAAM,yBAAyB;AAE/B,IAAM,kBAAqD;CACzD,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,MAAM;CACN,OAAO;AACT;AAEA,IAAM,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AlE,CACE,oBAAC,KAAD,EACE,WAAW,GACT,yCACA,YAAY,CAAC,aAAa,wBAC1B,aAAa,wBACf,EACD,CAAA,GACD,qBAAC,WAAD;GACO;GACL,cAAY;GACZ,WAAW;GACX,eAAa;GACb,OAAO;aALT;IAOG,WAAW,SAAS;IACrB,oBAAC,KAAD;KAAK,WAAW;KAAiB;IAAc,CAAA;IAC9C;GACM;IACN;KACL,oBAAC,oBAAD,EAAoB,GAAI,YAAc,CAAA,CACtC,EAAA,CAAA;AAEN,CACF;AAEA,cAAc,cAAc"}
|
|
1
|
+
{"version":3,"file":"settings-modal.js","names":[],"sources":["../../../src/components/patterns/settings-modal.tsx"],"sourcesContent":["import { X } from 'lucide-react';\nimport React, { forwardRef, useEffect, useState } from 'react';\n\nimport { settingsModalVariants } from '@/components/patterns/settings-modal-variants';\nimport { Button, type ButtonProps } from '@/components/ui/button';\nimport { LoadingIndicator } from '@/components/ui/loading-indicator';\nimport { StickyFooter } from '@/components/ui/sticky-footer';\nimport { Box } from '@/components/primitives/box';\nimport { Inline } from '@/components/primitives/inline';\nimport { Text } from '@/components/primitives/text';\nimport { DirtyConfirmDialog } from '@/components/patterns/dirty-confirm-dialog';\nimport { useDirtyConfirmation } from '@/components/patterns/use-dirty-confirmation';\nimport useGlobalDirtyState from '@/hooks/use-global-dirty-state';\nimport { cn } from '@/lib/utils';\n\n/**\n * Consumer-controlled settings modal shell. Legacy full-page settings dialogs\n * still render through it; new modal flows should use Shade Dialog primitives.\n */\nexport type SettingsModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'bleed';\n\nexport interface SettingsModalProps {\n 'aria-label'?: string;\n className?: string;\n size?: SettingsModalSize;\n width?: 'full' | 'toSidebar' | number;\n height?: 'full' | number;\n align?: 'center' | 'left' | 'right';\n testId?: string;\n title?: React.ReactNode;\n okLabel?: string;\n okVariant?: ButtonProps['variant'];\n okLoading?: boolean;\n cancelLabel?: string;\n leftButton?: React.ReactNode;\n buttonsDisabled?: boolean;\n okDisabled?: boolean;\n footer?: boolean | React.ReactNode;\n /** Extra classes on the default footer's button row, e.g. to constrain its width. */\n footerClassName?: string;\n header?: boolean;\n padding?: boolean;\n /** May be async; the modal fires it without awaiting, so the handler owns its own error handling. */\n onOk?: () => void | Promise<void>;\n onCancel?: () => void;\n topRightContent?: 'close' | React.ReactNode;\n hideXOnMobile?: boolean;\n onClose: () => void;\n afterClose?: () => void;\n children?: React.ReactNode;\n backDrop?: boolean;\n backDropClick?: boolean;\n stickyFooter?: boolean;\n stickyHeader?: boolean;\n scrolling?: boolean;\n dirty?: boolean;\n animate?: boolean;\n formSheet?: boolean;\n enableCMDS?: boolean;\n allowBackgroundInteraction?: boolean;\n}\n\nconst MODAL_BACKDROP_CLASSES = 'bg-modal-backdrop backdrop-blur-[3px]';\n\nconst backdropPadding: Record<SettingsModalSize, string> = {\n sm: 'p-4 md:p-[8vmin]',\n md: 'p-4 md:p-[8vmin]',\n lg: 'p-4 md:p-[4vmin]',\n xl: 'p-4 md:p-[3vmin]',\n full: 'p-4 md:p-[3vmin]',\n bleed: '',\n};\n\nconst contentPadding: Record<SettingsModalSize, string> = {\n sm: 'p-8',\n md: 'p-8',\n lg: 'p-7',\n xl: 'p-10',\n full: 'p-10',\n bleed: 'p-10',\n};\n\nconst headerOffsets: Record<SettingsModalSize, string> = {\n sm: '-inset-x-8',\n md: '-inset-x-8',\n lg: '-inset-x-8',\n xl: '-inset-x-10 -top-10',\n full: '-inset-x-10',\n bleed: '-inset-x-10',\n};\n\nconst SettingsModal = forwardRef<HTMLElement, SettingsModalProps>(\n (\n {\n 'aria-label': ariaLabel,\n className,\n size = 'md',\n align = 'center',\n width,\n height,\n testId,\n title,\n okLabel = 'OK',\n okLoading = false,\n cancelLabel = 'Cancel',\n footer,\n footerClassName,\n header,\n leftButton,\n buttonsDisabled,\n okDisabled,\n padding = true,\n onOk,\n okVariant = 'default',\n onCancel,\n topRightContent,\n hideXOnMobile = false,\n onClose,\n afterClose,\n children,\n backDrop = true,\n backDropClick = true,\n stickyFooter = false,\n stickyHeader = false,\n scrolling = true,\n dirty = false,\n animate = true,\n formSheet = false,\n enableCMDS = true,\n allowBackgroundInteraction = false,\n },\n ref,\n ) => {\n const { setGlobalDirtyState } = useGlobalDirtyState();\n const { confirm, dialogProps } = useDirtyConfirmation();\n const [animationFinished, setAnimationFinished] = useState(false);\n useEffect(() => {\n setGlobalDirtyState(dirty);\n }, [dirty, setGlobalDirtyState]);\n\n const removeModal = () => {\n confirm(dirty, () => {\n onClose();\n afterClose?.();\n });\n };\n\n useEffect(() => {\n const handleEscapeKey = (event: KeyboardEvent) => {\n if (event.key !== 'Escape') {\n return;\n }\n\n const activeElement = document.activeElement;\n if (activeElement?.hasAttribute('data-kg-link-input')) {\n return;\n }\n\n setTimeout(() => {\n // Radix layers may handle Escape from a document listener that\n // was registered after this modal. Wait until propagation is\n // complete before deciding whether the modal should close.\n if (event.defaultPrevented) {\n return;\n }\n\n if (activeElement instanceof HTMLElement && document.activeElement === activeElement) {\n activeElement.blur();\n }\n\n if (onCancel) {\n onCancel();\n } else {\n removeModal();\n }\n });\n };\n\n document.addEventListener('keydown', handleEscapeKey);\n return () => document.removeEventListener('keydown', handleEscapeKey);\n });\n\n useEffect(() => {\n const timeout = setTimeout(() => setAnimationFinished(true), 250);\n return () => clearTimeout(timeout);\n }, []);\n\n useEffect(() => {\n if (!onOk || !enableCMDS) {\n return;\n }\n\n const handleCMDS = (event: KeyboardEvent) => {\n if ((event.metaKey || event.ctrlKey) && event.key === 's') {\n event.preventDefault();\n void onOk();\n }\n };\n\n window.addEventListener('keydown', handleCMDS);\n return () => window.removeEventListener('keydown', handleCMDS);\n }, [enableCMDS, onOk]);\n\n const paddingClasses = padding ? contentPadding[size] : 'p-0';\n const modalClasses = cn(\n settingsModalVariants({ size, align, scrolling, formSheet }),\n className,\n animate && !formSheet && !animationFinished && align === 'center' && 'animate-modal-in',\n animate &&\n !formSheet &&\n !animationFinished &&\n align === 'right' &&\n 'animate-modal-in-from-right',\n formSheet && !animationFinished && 'animate-modal-in-reverse',\n width === 'full' && 'w-full',\n width === 'toSidebar' &&\n 'w-full max-w-[calc(100dvw_-_280px)] lg:max-w-full min-[1280px]:max-w-[calc(100dvw_-_320px)]',\n height === 'full' && 'h-full',\n allowBackgroundInteraction && 'pointer-events-auto',\n );\n const backdropClasses = cn(\n 'fixed inset-0 z-[1000] h-[100dvh] w-[100dvw] max-[800px]:pb-20',\n backdropPadding[size],\n allowBackgroundInteraction && 'pointer-events-none',\n );\n const headerClasses = cn(\n paddingClasses,\n 'pb-0',\n headerOffsets[size],\n topRightContent && topRightContent !== 'close' && 'flex items-center justify-between gap-5',\n stickyHeader && 'sticky -top-px z-[300] -mb-4 bg-background pb-4',\n );\n const contentClasses = cn(\n paddingClasses,\n 'py-0',\n (size === 'full' || size === 'bleed' || height === 'full' || typeof height === 'number') &&\n 'grow',\n !scrolling && 'min-h-0',\n footer === false && 'pb-0',\n );\n const footerClasses = cn(\n paddingClasses,\n 'flex w-full items-center justify-between',\n stickyFooter && 'py-6',\n footerClassName,\n );\n const modalStyles: React.CSSProperties = {\n ...(typeof width === 'number' ? { width: '100%', maxWidth: `${width}px` } : {}),\n ...(typeof height === 'number' ? { height: '100%', maxHeight: `${height}px` } : {}),\n };\n\n const handleBackdropClick = (event: React.MouseEvent<HTMLDivElement>) => {\n if (event.target === event.currentTarget && backDropClick) {\n removeModal();\n }\n };\n\n let footerContent: React.ReactNode;\n if (footer) {\n footerContent = footer;\n } else if (footer !== false) {\n footerContent = (\n <Inline className={footerClasses} gap=\"none\" justify=\"between\">\n <Box>{leftButton}</Box>\n <Inline gap=\"md\">\n {cancelLabel && (\n <Button\n data-testid=\"cancel-modal\"\n disabled={buttonsDisabled}\n type=\"button\"\n variant=\"outline\"\n onClick={onCancel || removeModal}\n >\n {cancelLabel}\n </Button>\n )}\n {okLabel && (\n <Button\n data-testid=\"ok-modal\"\n disabled={buttonsDisabled || okDisabled || okLoading}\n type=\"button\"\n variant={okVariant}\n onClick={() => void onOk?.()}\n >\n {okLoading && <LoadingIndicator size=\"sm\" />}\n {okLabel}\n </Button>\n )}\n </Inline>\n </Inline>\n );\n }\n\n if (stickyFooter) {\n footerContent = <StickyFooter height={84}>{footerContent}</StickyFooter>;\n }\n\n const titleContent = title && (\n <Text\n as=\"h3\"\n className=\"in-data-[admin7-design=true]:font-title md:text-2xl\"\n leading=\"heading\"\n size=\"xl\"\n weight=\"bold\"\n >\n {title}\n </Text>\n );\n const headerContent =\n topRightContent && topRightContent !== 'close' ? (\n <Inline as=\"header\" className={headerClasses} gap=\"lg\" justify=\"between\">\n {titleContent}\n {topRightContent}\n </Inline>\n ) : (\n <header className={headerClasses}>\n {titleContent}\n <Box\n className={cn(\n 'absolute top-6 right-6',\n topRightContent !== 'close' && 'md:hidden',\n hideXOnMobile && 'hidden',\n )}\n >\n <Button\n aria-label=\"Close modal\"\n className=\"-m-2 opacity-50 hover:opacity-100\"\n data-testid=\"close-modal\"\n size=\"icon\"\n type=\"button\"\n variant=\"ghost\"\n onClick={removeModal}\n >\n <X />\n </Button>\n </Box>\n </header>\n );\n\n return (\n <>\n <Box className={backdropClasses} id=\"modal-backdrop\" onMouseDown={handleBackdropClick}>\n <Box\n className={cn(\n 'pointer-events-none fixed inset-0 z-0',\n backDrop && !formSheet && MODAL_BACKDROP_CLASSES,\n formSheet && 'bg-form-sheet-backdrop',\n )}\n />\n <section\n ref={ref}\n aria-label={ariaLabel}\n className={modalClasses}\n data-testid={testId}\n style={modalStyles}\n >\n {header !== false && headerContent}\n <Box className={contentClasses}>{children}</Box>\n {footerContent}\n </section>\n </Box>\n <DirtyConfirmDialog {...dialogProps} />\n </>\n );\n },\n);\n\nSettingsModal.displayName = 'SettingsModal';\n\nexport { SettingsModal };\n"],"mappings":";;;;;;;;;;;;;;;AA8DA,IAAM,yBAAyB;AAE/B,IAAM,kBAAqD;CACzD,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,MAAM;CACN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G;EAAiB,aAAa;YAAlE,CACE,oBAAC,KAAD,EACE,WAAW,GACT,yCACA,YAAY,CAAC,aAAa,wBAC1B,aAAa,wBACf,EACD,CAAA,GACD,qBAAC,WAAD;GACO;GACL,cAAY;GACZ,WAAW;GACX,eAAa;GACb,OAAO;aALT;IAOG,WAAW,SAAS;IACrB,oBAAC,KAAD;KAAK,WAAW;KAAiB;IAAc,CAAA;IAC9C;GACM;IACN;KACL,oBAAC,oBAAD,EAAoB,GAAI,YAAc,CAAA,CACtC,EAAA,CAAA;AAEN,CACF;AAEA,cAAc,cAAc"}
|
|
@@ -36,7 +36,7 @@ var AlertDialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div",
|
|
|
36
36
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
37
37
|
var AlertDialogTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AlertDialogPrimitive.Title, {
|
|
38
38
|
ref,
|
|
39
|
-
className: cn("text-xl font-semibold", className),
|
|
39
|
+
className: cn("text-xl font-semibold in-data-[admin7-design=true]:font-title", className),
|
|
40
40
|
...props
|
|
41
41
|
}));
|
|
42
42
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.js","names":[],"sources":["../../../src/components/ui/alert-dialog.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\n\nimport { cn } from '@/lib/utils';\nimport type { ButtonProps } from '@/components/ui/button';\nimport { buttonVariants } from '@/components/ui/button-variants';\nimport { useShade } from '@/providers/shade-context';\nimport { ShadeScope } from '@/shade-scope';\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 transform-gpu bg-black/30 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Content\n> & {\n overlayClassName?: string;\n};\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n AlertDialogContentProps\n>(({ className, overlayClassName, ...props }, ref) => (\n <AlertDialogPortal>\n <ShadeScope>\n <AlertDialogOverlay className={overlayClassName} onClick={(e) => e.stopPropagation()} />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed top-[20%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-20%] gap-6 bg-surface-elevated-2 p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-top-[18%] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-top-[18%] sm:rounded-lg',\n className,\n )}\n {...props}\n />\n </ShadeScope>\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nconst AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col gap-y-2 text-center sm:text-left', className)} {...props} />\n);\nAlertDialogHeader.displayName = 'AlertDialogHeader';\n\nconst AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2', className)}\n {...props}\n />\n);\nAlertDialogFooter.displayName = 'AlertDialogFooter';\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn('text-xl font-semibold', className)}\n {...props}\n />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn('text-base', className)} {...props} />\n));\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> & Pick<ButtonProps, 'variant'>\n>(({ className, variant, ...props }, ref) => {\n const { controlShape } = useShade();\n\n return (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={cn(buttonVariants({ shape: controlShape, variant }), className)}\n {...props}\n data-control-shape={controlShape}\n />\n );\n});\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => {\n const { controlShape } = useShade();\n\n return (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(\n buttonVariants({ shape: controlShape, variant: 'outline' }),\n 'mt-2 sm:mt-0',\n className,\n )}\n {...props}\n data-control-shape={controlShape}\n />\n );\n});\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n};\n"],"mappings":";;;;;;;;AASA,IAAM,cAAc,qBAAqB;AAEzC,IAAM,qBAAqB,qBAAqB;AAEhD,IAAM,oBAAoB,qBAAqB;AAE/C,IAAM,qBAAqB,QAAM,YAG9B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,qBAAqB,SAAtB;CACE,WAAW,GACT,yLACA,SACF;CACA,GAAI;CACC;AACN,CAAA,CACF;AACD,mBAAmB,cAAc,qBAAqB,QAAQ;AAQ9D,IAAM,qBAAqB,QAAM,YAG9B,EAAE,WAAW,kBAAkB,GAAG,SAAS,QAC5C,oBAAC,mBAAD,EAAA,UACE,qBAAC,YAAD,EAAA,UAAA,CACE,oBAAC,oBAAD;CAAoB,WAAW;CAAkB,UAAU,MAAM,EAAE,gBAAgB;AAAI,CAAA,GACvF,oBAAC,qBAAqB,SAAtB;CACO;CACL,WAAW,GACT,6aACA,SACF;CACA,GAAI;AACL,CAAA,CACS,EAAA,CAAA,EACK,CAAA,CACpB;AACD,mBAAmB,cAAc,qBAAqB,QAAQ;AAE9D,IAAM,qBAAqB,EAAE,WAAW,GAAG,YACzC,oBAAC,OAAD;CAAK,WAAW,GAAG,kDAAkD,SAAS;CAAG,GAAI;AAAQ,CAAA;AAE/F,kBAAkB,cAAc;AAEhC,IAAM,qBAAqB,EAAE,WAAW,GAAG,YACzC,oBAAC,OAAD;CACE,WAAW,GAAG,6DAA6D,SAAS;CACpF,GAAI;AACL,CAAA;AAEH,kBAAkB,cAAc;AAEhC,IAAM,mBAAmB,QAAM,YAG5B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,qBAAqB,OAAtB;CACO;CACL,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"alert-dialog.js","names":[],"sources":["../../../src/components/ui/alert-dialog.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';\n\nimport { cn } from '@/lib/utils';\nimport type { ButtonProps } from '@/components/ui/button';\nimport { buttonVariants } from '@/components/ui/button-variants';\nimport { useShade } from '@/providers/shade-context';\nimport { ShadeScope } from '@/shade-scope';\n\nconst AlertDialog = AlertDialogPrimitive.Root;\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger;\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal;\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 transform-gpu bg-black/30 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;\n\ntype AlertDialogContentProps = React.ComponentPropsWithoutRef<\n typeof AlertDialogPrimitive.Content\n> & {\n overlayClassName?: string;\n};\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Content>,\n AlertDialogContentProps\n>(({ className, overlayClassName, ...props }, ref) => (\n <AlertDialogPortal>\n <ShadeScope>\n <AlertDialogOverlay className={overlayClassName} onClick={(e) => e.stopPropagation()} />\n <AlertDialogPrimitive.Content\n ref={ref}\n className={cn(\n 'fixed top-[20%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-20%] gap-6 bg-surface-elevated-2 p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:slide-out-to-top-[18%] data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:slide-in-from-top-[18%] sm:rounded-lg',\n className,\n )}\n {...props}\n />\n </ShadeScope>\n </AlertDialogPortal>\n));\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;\n\nconst AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col gap-y-2 text-center sm:text-left', className)} {...props} />\n);\nAlertDialogHeader.displayName = 'AlertDialogHeader';\n\nconst AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2', className)}\n {...props}\n />\n);\nAlertDialogFooter.displayName = 'AlertDialogFooter';\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Title\n ref={ref}\n className={cn('text-xl font-semibold in-data-[admin7-design=true]:font-title', className)}\n {...props}\n />\n));\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <AlertDialogPrimitive.Description ref={ref} className={cn('text-base', className)} {...props} />\n));\nAlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Action>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> & Pick<ButtonProps, 'variant'>\n>(({ className, variant, ...props }, ref) => {\n const { controlShape } = useShade();\n\n return (\n <AlertDialogPrimitive.Action\n ref={ref}\n className={cn(buttonVariants({ shape: controlShape, variant }), className)}\n {...props}\n data-control-shape={controlShape}\n />\n );\n});\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef<typeof AlertDialogPrimitive.Cancel>,\n React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>\n>(({ className, ...props }, ref) => {\n const { controlShape } = useShade();\n\n return (\n <AlertDialogPrimitive.Cancel\n ref={ref}\n className={cn(\n buttonVariants({ shape: controlShape, variant: 'outline' }),\n 'mt-2 sm:mt-0',\n className,\n )}\n {...props}\n data-control-shape={controlShape}\n />\n );\n});\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n};\n"],"mappings":";;;;;;;;AASA,IAAM,cAAc,qBAAqB;AAEzC,IAAM,qBAAqB,qBAAqB;AAEhD,IAAM,oBAAoB,qBAAqB;AAE/C,IAAM,qBAAqB,QAAM,YAG9B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,qBAAqB,SAAtB;CACE,WAAW,GACT,yLACA,SACF;CACA,GAAI;CACC;AACN,CAAA,CACF;AACD,mBAAmB,cAAc,qBAAqB,QAAQ;AAQ9D,IAAM,qBAAqB,QAAM,YAG9B,EAAE,WAAW,kBAAkB,GAAG,SAAS,QAC5C,oBAAC,mBAAD,EAAA,UACE,qBAAC,YAAD,EAAA,UAAA,CACE,oBAAC,oBAAD;CAAoB,WAAW;CAAkB,UAAU,MAAM,EAAE,gBAAgB;AAAI,CAAA,GACvF,oBAAC,qBAAqB,SAAtB;CACO;CACL,WAAW,GACT,6aACA,SACF;CACA,GAAI;AACL,CAAA,CACS,EAAA,CAAA,EACK,CAAA,CACpB;AACD,mBAAmB,cAAc,qBAAqB,QAAQ;AAE9D,IAAM,qBAAqB,EAAE,WAAW,GAAG,YACzC,oBAAC,OAAD;CAAK,WAAW,GAAG,kDAAkD,SAAS;CAAG,GAAI;AAAQ,CAAA;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variants: { variant: {
|
|
5
5
|
outline: "rounded-card border border-border-default transition-all hover:shadow-xs",
|
|
6
|
-
plain: ""
|
|
6
|
+
plain: "",
|
|
7
|
+
ruled: "border-t border-border"
|
|
7
8
|
} },
|
|
8
9
|
defaultVariants: { variant: "outline" }
|
|
9
10
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-variants.js","names":[],"sources":["../../../src/components/ui/card-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nconst cardVariants = cva('flex flex-col bg-card text-card-foreground', {\n variants: {\n variant: {\n outline: 'rounded-card border border-border-default transition-all hover:shadow-xs',\n plain: '',\n },\n },\n defaultVariants: {\n variant: 'outline',\n },\n});\n\nexport { cardVariants };\n"],"mappings":";;AAEA,IAAM,eAAe,IAAI,8CAA8C;CACrE,UAAU,EACR,SAAS;EACP,SAAS;EACT,OAAO;CACT,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"card-variants.js","names":[],"sources":["../../../src/components/ui/card-variants.ts"],"sourcesContent":["import { cva } from 'class-variance-authority';\n\nconst cardVariants = cva('flex flex-col bg-card text-card-foreground', {\n variants: {\n variant: {\n outline: 'rounded-card border border-border-default transition-all hover:shadow-xs',\n plain: '',\n ruled: 'border-t border-border',\n },\n },\n defaultVariants: {\n variant: 'outline',\n },\n});\n\nexport { cardVariants };\n"],"mappings":";;AAEA,IAAM,eAAe,IAAI,8CAA8C;CACrE,UAAU,EACR,SAAS;EACP,SAAS;EACT,OAAO;EACP,OAAO;CACT,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CAAC"}
|
package/es/components/ui/card.js
CHANGED
|
@@ -20,7 +20,8 @@ Card.displayName = "Card";
|
|
|
20
20
|
var cardHeaderVariants = cva("flex flex-col gap-y-1.5", {
|
|
21
21
|
variants: { variant: {
|
|
22
22
|
outline: "p-6",
|
|
23
|
-
plain: "border-b border-border-default py-5"
|
|
23
|
+
plain: "border-b border-border-default py-5",
|
|
24
|
+
ruled: "pt-3"
|
|
24
25
|
} },
|
|
25
26
|
defaultVariants: { variant: "outline" }
|
|
26
27
|
});
|
|
@@ -50,7 +51,8 @@ CardDescription.displayName = "CardDescription";
|
|
|
50
51
|
var cardContentVariants = cva("", {
|
|
51
52
|
variants: { variant: {
|
|
52
53
|
outline: "p-6 pt-0",
|
|
53
|
-
plain: "border-b border-border-default"
|
|
54
|
+
plain: "border-b border-border-default",
|
|
55
|
+
ruled: "pt-5"
|
|
54
56
|
} },
|
|
55
57
|
defaultVariants: { variant: "outline" }
|
|
56
58
|
});
|
|
@@ -68,7 +70,8 @@ CardContent.displayName = "CardContent";
|
|
|
68
70
|
var cardFooterVariants = cva("flex w-full items-center", {
|
|
69
71
|
variants: { variant: {
|
|
70
72
|
outline: "p-6 pt-0",
|
|
71
|
-
plain: "py-5"
|
|
73
|
+
plain: "py-5",
|
|
74
|
+
ruled: "pt-3"
|
|
72
75
|
} },
|
|
73
76
|
defaultVariants: { variant: "outline" }
|
|
74
77
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","names":[],"sources":["../../../src/components/ui/card.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cardVariants } from '@/components/ui/card-variants';\nimport { cn } from '@/lib/utils';\nimport { cva } from 'class-variance-authority';\n\ntype CardsVariant = 'outline' | 'plain';\nconst CardsVariantContext = React.createContext<CardsVariant>('outline');\n\nexport interface CardProps extends React.ComponentPropsWithoutRef<'div'> {\n variant?: CardsVariant;\n}\n\nconst Card = React.forwardRef<HTMLDivElement, CardProps>(\n ({ variant = 'outline', className, ...props }, ref) => (\n <CardsVariantContext.Provider value={variant}>\n <div ref={ref} className={cn(cardVariants({ variant, className }))} {...props} />\n </CardsVariantContext.Provider>\n ),\n);\nCard.displayName = 'Card';\n\nconst cardHeaderVariants = cva('flex flex-col gap-y-1.5', {\n variants: {\n variant: {\n outline: 'p-6',\n plain: 'border-b border-border-default py-5',\n },\n },\n defaultVariants: {\n variant: 'outline',\n },\n});\n\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const variant = React.useContext(CardsVariantContext);\n return <div ref={ref} className={cn(cardHeaderVariants({ variant, className }))} {...props} />;\n },\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />\n ),\n);\nCardDescription.displayName = 'CardDescription';\n\nconst cardContentVariants = cva('', {\n variants: {\n variant: {\n outline: 'p-6 pt-0',\n plain: 'border-b border-border-default',\n },\n },\n defaultVariants: {\n variant: 'outline',\n },\n});\n\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const variant = React.useContext(CardsVariantContext);\n return <div ref={ref} className={cn(cardContentVariants({ variant, className }))} {...props} />;\n },\n);\nCardContent.displayName = 'CardContent';\n\nconst cardFooterVariants = cva('flex w-full items-center', {\n variants: {\n variant: {\n outline: 'p-6 pt-0',\n plain: 'py-5',\n },\n },\n defaultVariants: {\n variant: 'outline',\n },\n});\n\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const variant = React.useContext(CardsVariantContext);\n return (\n <div className=\"flex grow items-end\">\n <div ref={ref} className={cn(cardFooterVariants({ variant, className }))} {...props} />\n </div>\n );\n },\n);\nCardFooter.displayName = 'CardFooter';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface EmptyCardProps extends React.ComponentPropsWithoutRef<'div'> {}\n\nconst EmptyCard = React.forwardRef<HTMLDivElement, EmptyCardProps>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'flex flex-col rounded-card border border-border-default bg-card p-6 text-card-foreground transition-all hover:shadow-xs',\n className,\n )}\n {...props}\n />\n ),\n);\nEmptyCard.displayName = 'EmptyCard';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, EmptyCard };\n"],"mappings":";;;;;;AAMA,IAAM,sBAAsB,QAAM,cAA4B,SAAS;AAMvE,IAAM,OAAO,QAAM,YAChB,EAAE,UAAU,WAAW,WAAW,GAAG,SAAS,QAC7C,oBAAC,oBAAoB,UAArB;CAA8B,OAAO;WACnC,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,aAAa;GAAE;GAAS;EAAU,CAAC,CAAC;EAAG,GAAI;CAAQ,CAAA;AACpD,CAAA,CAElC;AACA,KAAK,cAAc;AAEnB,IAAM,qBAAqB,IAAI,2BAA2B;CACxD,UAAU,EACR,SAAS;EACP,SAAS;EACT,OAAO;CACT,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CAAC;AAED,IAAM,aAAa,QAAM,YACtB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAEhC,OAAO,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,mBAAmB;GAAE,SADzC,QAAM,WAAW,mBACwB;GAAS;EAAU,CAAC,CAAC;EAAG,GAAI;CAAQ,CAAA;AAC/F,CACF;AACA,WAAW,cAAc;AAEzB,IAAM,YAAY,QAAM,YACrB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CACO;CACL,WAAW,GAAG,6CAA6C,SAAS;CACpE,GAAI;AACL,CAAA,CAEL;AACA,UAAU,cAAc;AAExB,IAAM,kBAAkB,QAAM,YAC3B,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CAAU;CAAK,WAAW,GAAG,iCAAiC,SAAS;CAAG,GAAI;AAAQ,CAAA,CAE1F;AACA,gBAAgB,cAAc;AAE9B,IAAM,sBAAsB,IAAI,IAAI;CAClC,UAAU,EACR,SAAS;EACP,SAAS;EACT,OAAO;CACT,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CAAC;AAED,IAAM,cAAc,QAAM,YACvB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAEhC,OAAO,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,oBAAoB;GAAE,SAD1C,QAAM,WAAW,mBACyB;GAAS;EAAU,CAAC,CAAC;EAAG,GAAI;CAAQ,CAAA;AAChG,CACF;AACA,YAAY,cAAc;AAE1B,IAAM,qBAAqB,IAAI,4BAA4B;CACzD,UAAU,EACR,SAAS;EACP,SAAS;EACT,OAAO;CACT,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CAAC;AAED,IAAM,aAAa,QAAM,YACtB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAEhC,OACE,oBAAC,OAAD;EAAK,WAAU;YACb,oBAAC,OAAD;GAAU;GAAK,WAAW,GAAG,mBAAmB;IAAE,SAHtC,QAAM,WAAW,mBAGqB;IAAS;GAAU,CAAC,CAAC;GAAG,GAAI;EAAQ,CAAA;CACnF,CAAA;AAET,CACF;AACA,WAAW,cAAc;AAKzB,IAAM,YAAY,QAAM,YACrB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CACO;CACL,WAAW,GACT,2HACA,SACF;CACA,GAAI;AACL,CAAA,CAEL;AACA,UAAU,cAAc"}
|
|
1
|
+
{"version":3,"file":"card.js","names":[],"sources":["../../../src/components/ui/card.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cardVariants } from '@/components/ui/card-variants';\nimport { cn } from '@/lib/utils';\nimport { cva } from 'class-variance-authority';\n\ntype CardsVariant = 'outline' | 'plain' | 'ruled';\nconst CardsVariantContext = React.createContext<CardsVariant>('outline');\n\nexport interface CardProps extends React.ComponentPropsWithoutRef<'div'> {\n variant?: CardsVariant;\n}\n\nconst Card = React.forwardRef<HTMLDivElement, CardProps>(\n ({ variant = 'outline', className, ...props }, ref) => (\n <CardsVariantContext.Provider value={variant}>\n <div ref={ref} className={cn(cardVariants({ variant, className }))} {...props} />\n </CardsVariantContext.Provider>\n ),\n);\nCard.displayName = 'Card';\n\nconst cardHeaderVariants = cva('flex flex-col gap-y-1.5', {\n variants: {\n variant: {\n outline: 'p-6',\n plain: 'border-b border-border-default py-5',\n ruled: 'pt-3',\n },\n },\n defaultVariants: {\n variant: 'outline',\n },\n});\n\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const variant = React.useContext(CardsVariantContext);\n return <div ref={ref} className={cn(cardHeaderVariants({ variant, className }))} {...props} />;\n },\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('leading-none font-semibold tracking-tight', className)}\n {...props}\n />\n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />\n ),\n);\nCardDescription.displayName = 'CardDescription';\n\nconst cardContentVariants = cva('', {\n variants: {\n variant: {\n outline: 'p-6 pt-0',\n plain: 'border-b border-border-default',\n ruled: 'pt-5',\n },\n },\n defaultVariants: {\n variant: 'outline',\n },\n});\n\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const variant = React.useContext(CardsVariantContext);\n return <div ref={ref} className={cn(cardContentVariants({ variant, className }))} {...props} />;\n },\n);\nCardContent.displayName = 'CardContent';\n\nconst cardFooterVariants = cva('flex w-full items-center', {\n variants: {\n variant: {\n outline: 'p-6 pt-0',\n plain: 'py-5',\n ruled: 'pt-3',\n },\n },\n defaultVariants: {\n variant: 'outline',\n },\n});\n\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => {\n const variant = React.useContext(CardsVariantContext);\n return (\n <div className=\"flex grow items-end\">\n <div ref={ref} className={cn(cardFooterVariants({ variant, className }))} {...props} />\n </div>\n );\n },\n);\nCardFooter.displayName = 'CardFooter';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface EmptyCardProps extends React.ComponentPropsWithoutRef<'div'> {}\n\nconst EmptyCard = React.forwardRef<HTMLDivElement, EmptyCardProps>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'flex flex-col rounded-card border border-border-default bg-card p-6 text-card-foreground transition-all hover:shadow-xs',\n className,\n )}\n {...props}\n />\n ),\n);\nEmptyCard.displayName = 'EmptyCard';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, EmptyCard };\n"],"mappings":";;;;;;AAMA,IAAM,sBAAsB,QAAM,cAA4B,SAAS;AAMvE,IAAM,OAAO,QAAM,YAChB,EAAE,UAAU,WAAW,WAAW,GAAG,SAAS,QAC7C,oBAAC,oBAAoB,UAArB;CAA8B,OAAO;WACnC,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,aAAa;GAAE;GAAS;EAAU,CAAC,CAAC;EAAG,GAAI;CAAQ,CAAA;AACpD,CAAA,CAElC;AACA,KAAK,cAAc;AAEnB,IAAM,qBAAqB,IAAI,2BAA2B;CACxD,UAAU,EACR,SAAS;EACP,SAAS;EACT,OAAO;EACP,OAAO;CACT,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CAAC;AAED,IAAM,aAAa,QAAM,YACtB,EAAE,WAAW,GAAG,SAAS,QAAQ;CAEhC,OAAO,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,mBAAmB;GAAE,SADzC,QAAM,WAAW,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AG,SAAS,QACxB,oBAAC,OAAD;CACO;CACL,WAAW,GACT,2HACA,SACF;CACA,GAAI;AACL,CAAA,CAEL;AACA,UAAU,cAAc"}
|
|
@@ -14,7 +14,7 @@ DataList.displayName = "DataList";
|
|
|
14
14
|
var DataListHeader = React.forwardRef(({ children, className, ...props }, ref) => {
|
|
15
15
|
return /* @__PURE__ */ jsx("div", {
|
|
16
16
|
ref,
|
|
17
|
-
className: cn("flex items-center justify-between gap-2 border-b p-2 text-xs font-medium tracking-wide text-muted-foreground uppercase", className),
|
|
17
|
+
className: cn("column-label flex items-center justify-between gap-2 border-b p-2 text-xs font-medium tracking-wide text-muted-foreground uppercase", className),
|
|
18
18
|
...props,
|
|
19
19
|
children
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-list.js","names":[],"sources":["../../../src/components/ui/data-list.tsx"],"sourcesContent":["import { cn } from '@/lib/utils';\nimport React from 'react';\n\n/* Data List main component\n/* -------------------------------------------------------------------------- */\ninterface DataListProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataList = React.forwardRef<HTMLDivElement, DataListProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div ref={ref} className={cn('flex flex-col items-stretch', className)} {...props}>\n {children}\n </div>\n );\n },\n);\n\nDataList.displayName = 'DataList';\n\n/* Header\n/* -------------------------------------------------------------------------- */\ninterface DataListHeaderProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListHeader = React.forwardRef<HTMLDivElement, DataListHeaderProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'flex items-center justify-between gap-2 border-b p-2 text-xs font-medium tracking-wide text-muted-foreground uppercase',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListHeader.displayName = 'DataListHeader';\n\n/* Head\n/* -------------------------------------------------------------------------- */\ninterface DataListHeadProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListHead = React.forwardRef<HTMLDivElement, DataListHeadProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div ref={ref} className={cn('', className)} {...props}>\n {children}\n </div>\n );\n },\n);\n\nDataListHead.displayName = 'DataListHead';\n\n/* Body\n/* -------------------------------------------------------------------------- */\ninterface DataListBodyProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListBody = React.forwardRef<HTMLDivElement, DataListBodyProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div ref={ref} className={cn('flex flex-col items-stretch pt-1.5', className)} {...props}>\n {children}\n </div>\n );\n },\n);\n\nDataListBody.displayName = 'DataListBody';\n\n/* Data row\n/* -------------------------------------------------------------------------- */\ninterface DataListRowProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListRow = React.forwardRef<HTMLDivElement, DataListRowProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'group/row relative flex items-center justify-between gap-3 py-0.5 before:absolute before:-inset-x-0.5 before:inset-y-0.5 before:z-0 before:rounded-control before:bg-muted/60 before:opacity-0 hover:before:opacity-100',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListRow.displayName = 'DataListRow';\n\n/* Bar\n/* -------------------------------------------------------------------------- */\ninterface DataListBarProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListBar = React.forwardRef<HTMLDivElement, DataListBarProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'absolute inset-x-0 inset-y-1 z-0 origin-left rounded-[4px] bg-state-info/10 transition-all group-hover/row:bg-state-info/25 dark:bg-state-info/20 dark:group-hover/row:bg-state-info/35',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListBar.displayName = 'DataListBar';\n\n/* List item content\n/* -------------------------------------------------------------------------- */\ninterface DataListItemContentProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListItemContent = React.forwardRef<HTMLDivElement, DataListItemContentProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'relative z-10 flex max-w-[calc(100%-32px)] min-w-0 items-center p-2 text-sm font-medium transition-[max-width] duration-300 ease-in-out group-hover/datalist:max-w-[calc(100%-100px)]',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListItemContent.displayName = 'DataListItemContent';\n\n/* Value\n/* -------------------------------------------------------------------------- */\ninterface DataListItemValueProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListItemValue = React.forwardRef<HTMLDivElement, DataListItemValueProps>(\n ({ children, className, ...props }, ref) => {\n // Apply animation styles when there are multiple children\n const childrenArray = React.Children.toArray(children);\n const hasMultipleChildren = childrenArray.length > 1;\n\n return (\n <div\n ref={ref}\n className={cn(\n 'z-10 flex items-center',\n // Apply animation styles when there are multiple children\n hasMultipleChildren &&\n '[&>[data-type=\"value-abs\"]]:transition-transform [&>[data-type=\"value-abs\"]]:duration-300 [&>[data-type=\"value-abs\"]]:group-hover/datalist:-translate-x-14',\n hasMultipleChildren &&\n '[&>[data-type=\"value-perc\"]]:invisible [&>[data-type=\"value-perc\"]]:absolute [&>[data-type=\"value-perc\"]]:right-0 [&>[data-type=\"value-perc\"]]:translate-x-14 [&>[data-type=\"value-perc\"]]:opacity-0 [&>[data-type=\"value-perc\"]]:transition-all [&>[data-type=\"value-perc\"]]:duration-300 [&>[data-type=\"value-perc\"]]:group-hover/datalist:visible [&>[data-type=\"value-perc\"]]:group-hover/datalist:translate-x-0 [&>[data-type=\"value-perc\"]]:group-hover/datalist:opacity-100',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListItemValue.displayName = 'DataListItemValue';\n\n/* Value absolute value, e.g. 996.178.341\n/* -------------------------------------------------------------------------- */\ninterface DataListItemValueAbsProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListItemValueAbs = React.forwardRef<HTMLDivElement, DataListItemValueAbsProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn('z-10 px-2 font-mono text-sm', className)}\n data-type=\"value-abs\"\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListItemValueAbs.displayName = 'DataListItemValueAbs';\n\n/* Value percentage value, e.g. 85%\n/* -------------------------------------------------------------------------- */\ninterface DataListItemValuePercProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListItemValuePerc = React.forwardRef<HTMLDivElement, DataListItemValuePercProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn('px-3 font-mono text-sm text-muted-foreground', className)}\n data-type=\"value-perc\"\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListItemValuePerc.displayName = 'DataListItemValuePerc';\n\n/* End of components\n/* -------------------------------------------------------------------------- */\nexport {\n DataList,\n DataListHeader,\n DataListHead,\n DataListBody,\n DataListRow,\n DataListBar,\n DataListItemContent,\n DataListItemValue,\n DataListItemValueAbs,\n DataListItemValuePerc,\n};\n"],"mappings":";;;;AAUA,IAAM,WAAW,MAAM,YACpB,EAAE,UAAU,WAAW,GAAG,SAAS,QAAQ;CAC1C,OACE,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,+BAA+B,SAAS;EAAG,GAAI;EACzE;CACE,CAAA;AAET,CACF;AAEA,SAAS,cAAc;AASvB,IAAM,iBAAiB,MAAM,YAC1B,EAAE,UAAU,WAAW,GAAG,SAAS,QAAQ;CAC1C,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GACT,0HACA,SACF;EACA,GAA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BAAkB,cAAc;AAShC,IAAM,uBAAuB,MAAM,YAChC,EAAE,UAAU,WAAW,GAAG,SAAS,QAAQ;CAC1C,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GAAG,+BAA+B,SAAS;EACtD,aAAU;EACV,GAAI;EAEH;CACE,CAAA;AAET,CACF;AAEA,qBAAqB,cAAc;AASnC,IAAM,wBAAwB,MAAM,YACjC,EAAE,UAAU,WAAW,GAAG,SAAS,QAAQ;CAC1C,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GAAG,gDAAgD,SAAS;EACvE,aAAU;EACV,GAAI;EAEH;CACE,CAAA;AAET,CACF;AAEA,sBAAsB,cAAc"}
|
|
1
|
+
{"version":3,"file":"data-list.js","names":[],"sources":["../../../src/components/ui/data-list.tsx"],"sourcesContent":["import { cn } from '@/lib/utils';\nimport React from 'react';\n\n/* Data List main component\n/* -------------------------------------------------------------------------- */\ninterface DataListProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataList = React.forwardRef<HTMLDivElement, DataListProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div ref={ref} className={cn('flex flex-col items-stretch', className)} {...props}>\n {children}\n </div>\n );\n },\n);\n\nDataList.displayName = 'DataList';\n\n/* Header\n/* -------------------------------------------------------------------------- */\ninterface DataListHeaderProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListHeader = React.forwardRef<HTMLDivElement, DataListHeaderProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'column-label flex items-center justify-between gap-2 border-b p-2 text-xs font-medium tracking-wide text-muted-foreground uppercase',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListHeader.displayName = 'DataListHeader';\n\n/* Head\n/* -------------------------------------------------------------------------- */\ninterface DataListHeadProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListHead = React.forwardRef<HTMLDivElement, DataListHeadProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div ref={ref} className={cn('', className)} {...props}>\n {children}\n </div>\n );\n },\n);\n\nDataListHead.displayName = 'DataListHead';\n\n/* Body\n/* -------------------------------------------------------------------------- */\ninterface DataListBodyProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListBody = React.forwardRef<HTMLDivElement, DataListBodyProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div ref={ref} className={cn('flex flex-col items-stretch pt-1.5', className)} {...props}>\n {children}\n </div>\n );\n },\n);\n\nDataListBody.displayName = 'DataListBody';\n\n/* Data row\n/* -------------------------------------------------------------------------- */\ninterface DataListRowProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListRow = React.forwardRef<HTMLDivElement, DataListRowProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'group/row relative flex items-center justify-between gap-3 py-0.5 before:absolute before:-inset-x-0.5 before:inset-y-0.5 before:z-0 before:rounded-control before:bg-muted/60 before:opacity-0 hover:before:opacity-100',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListRow.displayName = 'DataListRow';\n\n/* Bar\n/* -------------------------------------------------------------------------- */\ninterface DataListBarProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListBar = React.forwardRef<HTMLDivElement, DataListBarProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'absolute inset-x-0 inset-y-1 z-0 origin-left rounded-[4px] bg-state-info/10 transition-all group-hover/row:bg-state-info/25 dark:bg-state-info/20 dark:group-hover/row:bg-state-info/35',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListBar.displayName = 'DataListBar';\n\n/* List item content\n/* -------------------------------------------------------------------------- */\ninterface DataListItemContentProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListItemContent = React.forwardRef<HTMLDivElement, DataListItemContentProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n 'relative z-10 flex max-w-[calc(100%-32px)] min-w-0 items-center p-2 text-sm font-medium transition-[max-width] duration-300 ease-in-out group-hover/datalist:max-w-[calc(100%-100px)]',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListItemContent.displayName = 'DataListItemContent';\n\n/* Value\n/* -------------------------------------------------------------------------- */\ninterface DataListItemValueProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListItemValue = React.forwardRef<HTMLDivElement, DataListItemValueProps>(\n ({ children, className, ...props }, ref) => {\n // Apply animation styles when there are multiple children\n const childrenArray = React.Children.toArray(children);\n const hasMultipleChildren = childrenArray.length > 1;\n\n return (\n <div\n ref={ref}\n className={cn(\n 'z-10 flex items-center',\n // Apply animation styles when there are multiple children\n hasMultipleChildren &&\n '[&>[data-type=\"value-abs\"]]:transition-transform [&>[data-type=\"value-abs\"]]:duration-300 [&>[data-type=\"value-abs\"]]:group-hover/datalist:-translate-x-14',\n hasMultipleChildren &&\n '[&>[data-type=\"value-perc\"]]:invisible [&>[data-type=\"value-perc\"]]:absolute [&>[data-type=\"value-perc\"]]:right-0 [&>[data-type=\"value-perc\"]]:translate-x-14 [&>[data-type=\"value-perc\"]]:opacity-0 [&>[data-type=\"value-perc\"]]:transition-all [&>[data-type=\"value-perc\"]]:duration-300 [&>[data-type=\"value-perc\"]]:group-hover/datalist:visible [&>[data-type=\"value-perc\"]]:group-hover/datalist:translate-x-0 [&>[data-type=\"value-perc\"]]:group-hover/datalist:opacity-100',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListItemValue.displayName = 'DataListItemValue';\n\n/* Value absolute value, e.g. 996.178.341\n/* -------------------------------------------------------------------------- */\ninterface DataListItemValueAbsProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListItemValueAbs = React.forwardRef<HTMLDivElement, DataListItemValueAbsProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn('z-10 px-2 font-mono text-sm', className)}\n data-type=\"value-abs\"\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListItemValueAbs.displayName = 'DataListItemValueAbs';\n\n/* Value percentage value, e.g. 85%\n/* -------------------------------------------------------------------------- */\ninterface DataListItemValuePercProps extends React.HTMLAttributes<HTMLDivElement> {\n children?: React.ReactNode;\n className?: string;\n}\n\nconst DataListItemValuePerc = React.forwardRef<HTMLDivElement, DataListItemValuePercProps>(\n ({ children, className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn('px-3 font-mono text-sm text-muted-foreground', className)}\n data-type=\"value-perc\"\n {...props}\n >\n {children}\n </div>\n );\n },\n);\n\nDataListItemValuePerc.displayName = 'DataListItemValuePerc';\n\n/* End of components\n/* -------------------------------------------------------------------------- */\nexport {\n DataList,\n DataListHeader,\n DataListHead,\n DataListBody,\n DataListRow,\n DataListBar,\n DataListItemContent,\n DataListItemValue,\n DataListItemValueAbs,\n DataListItemValuePerc,\n};\n"],"mappings":";;;;AAUA,IAAM,WAAW,MAAM,YACpB,EAAE,UAAU,WAAW,GAAG,SAAS,QAAQ;CAC1C,OACE,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,+BAA+B,SAAS;EAAG,GAAI;EACzE;CACE,CAAA;AAET,CACF;AAEA,SAAS,cAAc;AASvB,IAAM,iBAAiB,MAAM,YAC1B,EAAE,UAAU,WAAW,GAAG,SAAS,QAAQ;CAC1C,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GACT,uIACA,SACF;EACA,GAAI;EAEH;CACE,CAAA;AAET,CACF;AAEA,eAAe,cAAc;AAS7B,IAAM,eAA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GAAG,SAAS,QAAQ;CAC1C,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GAAG,+BAA+B,SAAS;EACtD,aAAU;EACV,GAAI;EAEH;CACE,CAAA;AAET,CACF;AAEA,qBAAqB,cAAc;AASnC,IAAM,wBAAwB,MAAM,YACjC,EAAE,UAAU,WAAW,GAAG,SAAS,QAAQ;CAC1C,OACE,oBAAC,OAAD;EACO;EACL,WAAW,GAAG,gDAAgD,SAAS;EACvE,aAAU;EACV,GAAI;EAEH;CACE,CAAA;AAET,CACF;AAEA,sBAAsB,cAAc"}
|
|
@@ -57,7 +57,7 @@ var DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
57
57
|
DialogFooter.displayName = "DialogFooter";
|
|
58
58
|
var DialogTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Title, {
|
|
59
59
|
ref,
|
|
60
|
-
className: cn("text-xl leading-none font-semibold tracking-tight", className),
|
|
60
|
+
className: cn("text-xl leading-none font-semibold tracking-tight in-data-[admin7-design=true]:font-title", className),
|
|
61
61
|
...props
|
|
62
62
|
}));
|
|
63
63
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","names":[],"sources":["../../../src/components/ui/dialog.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\n\nimport { cn } from '@/lib/utils';\nimport { ShadeScope } from '@/shade-scope';\n\n// Radix keeps whether a dialog is modal to itself, and the overlay scroll layout needs to know.\nconst DialogModalContext = React.createContext(true);\n\nconst Dialog = ({ modal = true, ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) => (\n <DialogModalContext.Provider value={modal}>\n <DialogPrimitive.Root modal={modal} {...props} />\n </DialogModalContext.Provider>\n);\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 transform-gpu bg-black/30 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',\n className,\n )}\n data-slot=\"dialog-overlay\"\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\n// The panel itself, shared by both ways a dialog can sit on the page.\nconst dialogPanelClassName =\n 'z-50 grid w-full max-w-lg transform-gpu gap-6 bg-surface-elevated-2 p-6 shadow-lg outline-hidden duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95';\n\nexport interface DialogContentProps extends React.ComponentPropsWithoutRef<\n typeof DialogPrimitive.Content\n> {\n /**\n * How a dialog taller than the window scrolls. `fixed` (the default) pins the dialog near\n * the top of the window, so it needs its own height limit and inner scroll. `overlay` makes\n * the backdrop the scroll container instead: the whole dialog scrolls as one piece, the way\n * a page does.\n */\n scroll?: 'fixed' | 'overlay';\n}\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps\n>(({ className, children, scroll = 'fixed', ...props }, ref) => {\n const modal = React.useContext(DialogModalContext);\n\n const panel = (\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n scroll === 'overlay'\n ? 'pointer-events-auto relative rounded-lg'\n : 'fixed top-[8vmin] left-[50%] translate-x-[-50%] sm:rounded-lg',\n dialogPanelClassName,\n className,\n )}\n {...props}\n >\n {children}\n </DialogPrimitive.Content>\n );\n\n // The space around the dialog is padding on this wrapper, not on the scroll container:\n // browsers leave a scroll container's own bottom padding out of what it scrolls, which\n // would leave the dialog flush with the bottom of the window.\n const scrollingPanel = (\n <div className=\"flex min-h-full items-start justify-center px-4 py-[8vmin]\">{panel}</div>\n );\n\n return (\n <DialogPortal>\n <ShadeScope>\n {scroll === 'overlay' ? (\n modal ? (\n // The dialog sits inside the backdrop here, so the backdrop animates as long as the\n // dialog does; otherwise closing unmounts the dialog part-way through its animation.\n <DialogOverlay className=\"overflow-y-auto duration-200\">{scrollingPanel}</DialogOverlay>\n ) : (\n // Radix renders no backdrop for a non-modal dialog, and the page behind stays\n // usable, so this scroll container lets presses beside the dialog through.\n <div\n className=\"pointer-events-none fixed inset-0 z-50 overflow-y-auto\"\n data-slot=\"dialog-scroller\"\n >\n {scrollingPanel}\n </div>\n )\n ) : (\n <>\n <DialogOverlay />\n {panel}\n </>\n )}\n </ShadeScope>\n </DialogPortal>\n );\n});\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col gap-y-1.5 text-center sm:text-left', className)} {...props} />\n);\nDialogHeader.displayName = 'DialogHeader';\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex flex-col-reverse sm:flex-row sm:items-end sm:justify-end sm:gap-2 [&_button]:min-w-20',\n className,\n )}\n {...props}\n />\n);\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn('text-xl leading-none font-semibold tracking-tight'
|
|
1
|
+
{"version":3,"file":"dialog.js","names":[],"sources":["../../../src/components/ui/dialog.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\n\nimport { cn } from '@/lib/utils';\nimport { ShadeScope } from '@/shade-scope';\n\n// Radix keeps whether a dialog is modal to itself, and the overlay scroll layout needs to know.\nconst DialogModalContext = React.createContext(true);\n\nconst Dialog = ({ modal = true, ...props }: React.ComponentProps<typeof DialogPrimitive.Root>) => (\n <DialogModalContext.Provider value={modal}>\n <DialogPrimitive.Root modal={modal} {...props} />\n </DialogModalContext.Provider>\n);\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Overlay\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 transform-gpu bg-black/30 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0 dark:bg-black/60',\n className,\n )}\n data-slot=\"dialog-overlay\"\n {...props}\n />\n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\n// The panel itself, shared by both ways a dialog can sit on the page.\nconst dialogPanelClassName =\n 'z-50 grid w-full max-w-lg transform-gpu gap-6 bg-surface-elevated-2 p-6 shadow-lg outline-hidden duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95';\n\nexport interface DialogContentProps extends React.ComponentPropsWithoutRef<\n typeof DialogPrimitive.Content\n> {\n /**\n * How a dialog taller than the window scrolls. `fixed` (the default) pins the dialog near\n * the top of the window, so it needs its own height limit and inner scroll. `overlay` makes\n * the backdrop the scroll container instead: the whole dialog scrolls as one piece, the way\n * a page does.\n */\n scroll?: 'fixed' | 'overlay';\n}\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Content>,\n DialogContentProps\n>(({ className, children, scroll = 'fixed', ...props }, ref) => {\n const modal = React.useContext(DialogModalContext);\n\n const panel = (\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n scroll === 'overlay'\n ? 'pointer-events-auto relative rounded-lg'\n : 'fixed top-[8vmin] left-[50%] translate-x-[-50%] sm:rounded-lg',\n dialogPanelClassName,\n className,\n )}\n {...props}\n >\n {children}\n </DialogPrimitive.Content>\n );\n\n // The space around the dialog is padding on this wrapper, not on the scroll container:\n // browsers leave a scroll container's own bottom padding out of what it scrolls, which\n // would leave the dialog flush with the bottom of the window.\n const scrollingPanel = (\n <div className=\"flex min-h-full items-start justify-center px-4 py-[8vmin]\">{panel}</div>\n );\n\n return (\n <DialogPortal>\n <ShadeScope>\n {scroll === 'overlay' ? (\n modal ? (\n // The dialog sits inside the backdrop here, so the backdrop animates as long as the\n // dialog does; otherwise closing unmounts the dialog part-way through its animation.\n <DialogOverlay className=\"overflow-y-auto duration-200\">{scrollingPanel}</DialogOverlay>\n ) : (\n // Radix renders no backdrop for a non-modal dialog, and the page behind stays\n // usable, so this scroll container lets presses beside the dialog through.\n <div\n className=\"pointer-events-none fixed inset-0 z-50 overflow-y-auto\"\n data-slot=\"dialog-scroller\"\n >\n {scrollingPanel}\n </div>\n )\n ) : (\n <>\n <DialogOverlay />\n {panel}\n </>\n )}\n </ShadeScope>\n </DialogPortal>\n );\n});\nDialogContent.displayName = DialogPrimitive.Content.displayName;\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col gap-y-1.5 text-center sm:text-left', className)} {...props} />\n);\nDialogHeader.displayName = 'DialogHeader';\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex flex-col-reverse sm:flex-row sm:items-end sm:justify-end sm:gap-2 [&_button]:min-w-20',\n className,\n )}\n {...props}\n />\n);\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n 'text-xl leading-none font-semibold tracking-tight in-data-[admin7-design=true]:font-title',\n className,\n )}\n {...props}\n />\n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn('text-muted-foreground', className)}\n {...props}\n />\n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogTrigger,\n DialogClose,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n};\n"],"mappings":";;;;;;AAOA,IAAM,qBAAqB,QAAM,cAAc,IAAI;AAEnD,IAAM,UAAU,EAAE,QAAQ,MAAM,GAAG,YACjC,oBAAC,mBAAmB,UAApB;CAA6B,OAAO;WAClC,oBAAC,gBAAgB,MAAjB;EAA6B;EAAO,GAAI;CAAQ,CAAA;AACrB,CAAA;AAG/B,IAAM,gBAAgB,gBAAgB;AAEtC,IAAM,eAAe,gBAAgB;AAErC,IAAM,cAAc,gBAAgB;AAEpC,IAAM,gBAAgB,QAAM,YAGzB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,SAAjB;CACO;CACL,WAAW,GACT,yLACA,SACF;CACA,aAAU;CACV,GAAI;AACL,CAAA,CACF;AACD,cAAc,cAAc,gBAAgB,QAAQ;AAGpD,IAAM,uBACJ;AAcF,IAAM,gBAAgB,QAAM,YAGzB,EAAE,WAAW,UAAU,SAAS,SAAS,GAAG,SAAS,QAAQ;CAC9D,MAAM,QAAQ,QAAM,WAAW,kBAAkB;CAEjD,MAAM,QACJ,oBAAC,gBAAgB,SAAjB;EACO;EACL,WAAW,GACT,WAAW,YACP,4CACA,iEACJ,sBACA,SACF;EACA,GAAI;EAEH;CACsB,CAAA;CAM3B,MAAM,iBACJ,oBAAC,OAAD;EAAK,WAAU;YAA8D;CAAW,CAAA;CAG1F,OACE,oBAAC,cAAD,EAAA,UACE,oBAAC,YAAD,EAAA,UACG,WAAW,YACV,QAGE,oBAAC,eAAD;EAAe,WAAU;YAAgC;CAA8B,CAAA,IAIvF,oBAAC,OAAD;EACE,WAAU;EACV,aAAU;YAET;CACE,CAAA,IAGP,qBAAA,YAAA,EAAA,UAAA,CACE,oBAAC,eAAD,CAAgB,CAAA,GACf,KACD,EAAA,CAAA,EAEM,CAAA,EACA,CAAA;AAElB,CAAC;AACD,cAAc,cAAc,gBAAgB,QAAQ;AAEpD,IAAM,gBAAgB,EAAE,WAAW,GAAG,YACpC,oBAAC,OAAD;CAAK,WAAW,GAAG,oDAAoD,SAAS;CAAG,GAAI;AAAQ,CAAA;AAEjG,aAAa,cAAc;AAE3B,IAAM,gBAAgB,EAAE,WAAW,GAAG,YACpC,oBAAC,OAAD;CACE,WAAW,GACT,8FACA,SACF;CACA,GAAI;AACL,CAAA;AAEH,aAAa,cAAc;AAE3B,IAAM,cAAc,QAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GACT,6FACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc,gBAAgB,MAAM;AAEhD,IAAM,oBAAoB,QAAM,YAG7B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,aAAjB;CACO;CACL,WAAW,GAAG,yBAAyB,SAAS;CAChD,GAAI;AACL,CAAA,CACF;AACD,kBAAkB,cAAc,gBAAgB,YAAY"}
|
|
@@ -51,7 +51,7 @@ var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
51
51
|
SheetFooter.displayName = "SheetFooter";
|
|
52
52
|
var SheetTitle = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SheetPrimitive.Title, {
|
|
53
53
|
ref,
|
|
54
|
-
className: cn("text-xl font-semibold text-foreground", className),
|
|
54
|
+
className: cn("text-xl font-semibold text-foreground in-data-[admin7-design=true]:font-title", className),
|
|
55
55
|
...props
|
|
56
56
|
}));
|
|
57
57
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.js","names":[],"sources":["../../../src/components/ui/sheet.tsx"],"sourcesContent":["'use client';\n\n// Disable sourcemap for this file due to source map resolution errors\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport { ShadeScope } from '@/shade-scope';\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/10 duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n 'fixed z-50 gap-4 bg-surface-elevated p-8 shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:animate-in data-[state=open]:duration-500',\n {\n variants: {\n side: {\n top: 'inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',\n bottom:\n 'inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',\n left: 'inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',\n right:\n 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n },\n);\n\ninterface SheetContentProps\n extends\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = 'right', className, children, ...props }, ref) => (\n <SheetPortal>\n <ShadeScope>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n <SheetPrimitive.Close className=\"fixed top-4 right-4 z-50 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n {children}\n </SheetPrimitive.Content>\n </ShadeScope>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-1 text-center sm:text-left', className)} {...props} />\n);\nSheetHeader.displayName = 'SheetHeader';\n\nconst SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2', className)}\n {...props}\n />\n);\nSheetFooter.displayName = 'SheetFooter';\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn('text-xl font-semibold text-foreground'
|
|
1
|
+
{"version":3,"file":"sheet.js","names":[],"sources":["../../../src/components/ui/sheet.tsx"],"sourcesContent":["'use client';\n\n// Disable sourcemap for this file due to source map resolution errors\nimport * as React from 'react';\nimport * as SheetPrimitive from '@radix-ui/react-dialog';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { X } from 'lucide-react';\n\nimport { cn } from '@/lib/utils';\nimport { ShadeScope } from '@/shade-scope';\n\nconst Sheet = SheetPrimitive.Root;\n\nconst SheetTrigger = SheetPrimitive.Trigger;\n\nconst SheetClose = SheetPrimitive.Close;\n\nconst SheetPortal = SheetPrimitive.Portal;\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Overlay>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Overlay>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Overlay\n className={cn(\n 'fixed inset-0 z-50 bg-black/10 duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0',\n className,\n )}\n {...props}\n ref={ref}\n />\n));\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName;\n\nconst sheetVariants = cva(\n 'fixed z-50 gap-4 bg-surface-elevated p-8 shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:animate-in data-[state=open]:duration-500',\n {\n variants: {\n side: {\n top: 'inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',\n bottom:\n 'inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',\n left: 'inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',\n right:\n 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',\n },\n },\n defaultVariants: {\n side: 'right',\n },\n },\n);\n\ninterface SheetContentProps\n extends\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,\n VariantProps<typeof sheetVariants> {}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Content>,\n SheetContentProps\n>(({ side = 'right', className, children, ...props }, ref) => (\n <SheetPortal>\n <ShadeScope>\n <SheetOverlay />\n <SheetPrimitive.Content\n ref={ref}\n className={cn(sheetVariants({ side }), className)}\n {...props}\n >\n <SheetPrimitive.Close className=\"fixed top-4 right-4 z-50 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-secondary\">\n <X className=\"size-4\" />\n <span className=\"sr-only\">Close</span>\n </SheetPrimitive.Close>\n {children}\n </SheetPrimitive.Content>\n </ShadeScope>\n </SheetPortal>\n));\nSheetContent.displayName = SheetPrimitive.Content.displayName;\n\nconst SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex flex-col space-y-1 text-center sm:text-left', className)} {...props} />\n);\nSheetHeader.displayName = 'SheetHeader';\n\nconst SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:gap-2', className)}\n {...props}\n />\n);\nSheetFooter.displayName = 'SheetFooter';\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n className={cn(\n 'text-xl font-semibold text-foreground in-data-[admin7-design=true]:font-title',\n className,\n )}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"mappings":";;;;;;;;;AAWA,IAAM,QAAQ,eAAe;AAE7B,IAAM,eAAe,eAAe;AAEpC,IAAM,aAAa,eAAe;AAElC,IAAM,cAAc,eAAe;AAEnC,IAAM,eAAe,QAAM,YAGxB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,SAAhB;CACE,WAAW,GACT,wKACA,SACF;CACA,GAAI;CACC;AACN,CAAA,CACF;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,IAAM,gBAAgB,IACpB,0MACA;CACE,UAAU,EACR,MAAM;EACJ,KAAK;EACL,QACE;EACF,MAAM;EACN,OACE;CACJ,EACF;CACA,iBAAiB,EACf,MAAM,QACR;AACF,CACF;AAOA,IAAM,eAAe,QAAM,YAGxB,EAAE,OAAO,SAAS,WAAW,UAAU,GAAG,SAAS,QACpD,oBAAC,aAAD,EAAA,UACE,qBAAC,YAAD,EAAA,UAAA,CACE,oBAAC,cAAD,CAAe,CAAA,GACf,qBAAC,eAAe,SAAhB;CACO;CACL,WAAW,GAAG,cAAc,EAAE,KAAK,CAAC,GAAG,SAAS;CAChD,GAAI;WAHN,CAKE,qBAAC,eAAe,OAAhB;EAAsB,WAAU;YAAhC,CACE,oBAAC,GAAD,EAAG,WAAU,SAAU,CAAA,GACvB,oBAAC,QAAD;GAAM,WAAU;aAAU;EAAW,CAAA,CACjB;KACrB,QACqB;EACd,EAAA,CAAA,EACD,CAAA,CACd;AACD,aAAa,cAAc,eAAe,QAAQ;AAElD,IAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAAC,OAAD;CAAK,WAAW,GAAG,oDAAoD,SAAS;CAAG,GAAI;AAAQ,CAAA;AAEjG,YAAY,cAAc;AAE1B,IAAM,eAAe,EAAE,WAAW,GAAG,YACnC,oBAAC,OAAD;CACE,WAAW,GAAG,6DAA6D,SAAS;CACpF,GAAI;AACL,CAAA;AAEH,YAAY,cAAc;AAE1B,IAAM,aAAa,QAAM,YAGtB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,OAAhB;CACO;CACL,WAAW,GACT,iFACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,WAAW,cAAc,eAAe,MAAM;AAE9C,IAAM,mBAAmB,QAAM,YAG5B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,eAAe,aAAhB;CACO;CACL,WAAW,GAAG,iCAAiC,SAAS;CACxD,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc,eAAe,YAAY"}
|
|
@@ -39,7 +39,7 @@ var TableRow = React$1.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
39
39
|
TableRow.displayName = "TableRow";
|
|
40
40
|
var headVariants = cva("relative align-middle", {
|
|
41
41
|
variants: { variant: {
|
|
42
|
-
default: "h-(--control-height) px-2 text-left text-sm font-medium tracking-wide text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
42
|
+
default: "column-label h-(--control-height) px-2 text-left text-sm font-medium tracking-wide text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
43
43
|
cardhead: "text-base font-normal [&>div]:px-0"
|
|
44
44
|
} },
|
|
45
45
|
defaultVariants: { variant: "default" }
|
|
@@ -55,7 +55,7 @@ var TableHead = React$1.forwardRef(({ className, variant, ...props }, ref) => /*
|
|
|
55
55
|
TableHead.displayName = "TableHead";
|
|
56
56
|
var TableHeadButton = ({ className, children, ...props }) => {
|
|
57
57
|
return /* @__PURE__ */ jsx(Button, {
|
|
58
|
-
className: cn("gap-1 px-0 text-right text-sm leading-4 tracking-wide text-text-secondary uppercase hover:bg-transparent [&_svg]:size-4", className),
|
|
58
|
+
className: cn("column-label gap-1 px-0 text-right text-sm leading-4 tracking-wide text-text-secondary uppercase hover:bg-transparent [&_svg]:size-4", className),
|
|
59
59
|
size: "sm",
|
|
60
60
|
variant: "ghost",
|
|
61
61
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","names":[],"sources":["../../../src/components/ui/table.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from './button';\nimport { cva, VariantProps } from 'class-variance-authority';\n\nconst Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(\n ({ className, ...props }, ref) => (\n <div className=\"relative w-full\">\n <table ref={ref} className={cn('w-full caption-bottom text-base', className)} {...props} />\n </div>\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr:hover:before]:bg-transparent', className)} {...props} />\n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => <tbody ref={ref} className={cn('', className)} {...props} />);\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn('border-b bg-muted/50 font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn('group relative border-b data-[state=selected]:bg-muted', className)}\n {...props}\n />\n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst headVariants = cva('relative align-middle', {\n variants: {\n variant: {\n default:\n 'h-(--control-height) px-2 text-left text-sm font-medium tracking-wide text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n cardhead: 'text-base font-normal [&>div]:px-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface TableHeadProps\n extends React.ThHTMLAttributes<HTMLTableCellElement>, VariantProps<typeof headVariants> {\n asChild?: boolean;\n}\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>(\n ({ className, variant, ...props }, ref) => (\n <th ref={ref} className={cn(headVariants({ variant, className }))} {...props} />\n ),\n);\nTableHead.displayName = 'TableHead';\n\ntype TableHeadButtonProps = React.ComponentProps<typeof Button>;\n\nconst TableHeadButton: React.FC<TableHeadButtonProps> = ({ className, children, ...props }) => {\n const buttonClassName = cn(\n 'gap-1 px-0 text-right text-sm leading-4 tracking-wide text-text-secondary uppercase hover:bg-transparent [&_svg]:size-4',\n className,\n );\n return (\n <Button className={buttonClassName} size=\"sm\" variant=\"ghost\" {...props}>\n {children}\n </Button>\n );\n};\nTableHeadButton.displayName = 'TableHeadButton';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'relative p-2.5 align-middle group-hover:bg-table-row-hover [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n className,\n )}\n {...props}\n />\n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('mt-4 text-base text-muted-foreground', className)} {...props} />\n));\nTableCaption.displayName = 'TableCaption';\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableHeadButton,\n TableRow,\n TableCell,\n TableCaption,\n};\n"],"mappings":";;;;;;AAMA,IAAM,QAAQ,QAAM,YACjB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|
+
{"version":3,"file":"table.js","names":[],"sources":["../../../src/components/ui/table.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\nimport { Button } from './button';\nimport { cva, VariantProps } from 'class-variance-authority';\n\nconst Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(\n ({ className, ...props }, ref) => (\n <div className=\"relative w-full\">\n <table ref={ref} className={cn('w-full caption-bottom text-base', className)} {...props} />\n </div>\n ),\n);\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <thead ref={ref} className={cn('[&_tr:hover:before]:bg-transparent', className)} {...props} />\n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => <tbody ref={ref} className={cn('', className)} {...props} />);\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes<HTMLTableSectionElement>\n>(({ className, ...props }, ref) => (\n <tfoot\n ref={ref}\n className={cn('border-b bg-muted/50 font-medium [&>tr]:last:border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(\n ({ className, ...props }, ref) => (\n <tr\n ref={ref}\n className={cn('group relative border-b data-[state=selected]:bg-muted', className)}\n {...props}\n />\n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst headVariants = cva('relative align-middle', {\n variants: {\n variant: {\n default:\n 'column-label h-(--control-height) px-2 text-left text-sm font-medium tracking-wide text-text-secondary [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n cardhead: 'text-base font-normal [&>div]:px-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface TableHeadProps\n extends React.ThHTMLAttributes<HTMLTableCellElement>, VariantProps<typeof headVariants> {\n asChild?: boolean;\n}\n\nconst TableHead = React.forwardRef<HTMLTableCellElement, TableHeadProps>(\n ({ className, variant, ...props }, ref) => (\n <th ref={ref} className={cn(headVariants({ variant, className }))} {...props} />\n ),\n);\nTableHead.displayName = 'TableHead';\n\ntype TableHeadButtonProps = React.ComponentProps<typeof Button>;\n\nconst TableHeadButton: React.FC<TableHeadButtonProps> = ({ className, children, ...props }) => {\n const buttonClassName = cn(\n 'column-label gap-1 px-0 text-right text-sm leading-4 tracking-wide text-text-secondary uppercase hover:bg-transparent [&_svg]:size-4',\n className,\n );\n return (\n <Button className={buttonClassName} size=\"sm\" variant=\"ghost\" {...props}>\n {children}\n </Button>\n );\n};\nTableHeadButton.displayName = 'TableHeadButton';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes<HTMLTableCellElement>\n>(({ className, ...props }, ref) => (\n <td\n ref={ref}\n className={cn(\n 'relative p-2.5 align-middle group-hover:bg-table-row-hover [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n className,\n )}\n {...props}\n />\n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes<HTMLTableCaptionElement>\n>(({ className, ...props }, ref) => (\n <caption ref={ref} className={cn('mt-4 text-base text-muted-foreground', className)} {...props} />\n));\nTableCaption.displayName = 'TableCaption';\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableHeadButton,\n TableRow,\n TableCell,\n TableCaption,\n};\n"],"mappings":";;;;;;AAMA,IAAM,QAAQ,QAAM,YACjB,EAAE,WAAW,GAAG,SAAS,QACxB,oBAAC,OAAD;CAAK,WAAU;WACb,oBAAC,SAAD;EAAY;EAAK,WAAW,GAAG,mCAAmC,SAAS;EAAG,GAAI;CAAQ,CAAA;AACvF,CAAA,CAET;AACA,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MAAD;CACO;CACL,WAAW,GACT,kIACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,UAAU,cAAc;AAExB,IAAM,eAAe,QAAM,YAGxB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,WAAD;CAAc;CAAK,WAAW,GAAG,wCAAwC,SAAS;CAAG,GAAI;AAAQ,CAAA,CAClG;AACD,aAAa,cAAc"}
|
package/es/tokens.js
CHANGED
|
@@ -29,6 +29,7 @@ var SHADE_TOKEN_NAMES = [
|
|
|
29
29
|
"breakpoint-xxxl",
|
|
30
30
|
"card",
|
|
31
31
|
"card-foreground",
|
|
32
|
+
"character-count",
|
|
32
33
|
"chart-1",
|
|
33
34
|
"chart-2",
|
|
34
35
|
"chart-3",
|
|
@@ -65,6 +66,7 @@ var SHADE_TOKEN_NAMES = [
|
|
|
65
66
|
"color-border-strong",
|
|
66
67
|
"color-card",
|
|
67
68
|
"color-card-foreground",
|
|
69
|
+
"color-character-count",
|
|
68
70
|
"color-chart-1",
|
|
69
71
|
"color-chart-2",
|
|
70
72
|
"color-chart-3",
|
|
@@ -83,6 +85,18 @@ var SHADE_TOKEN_NAMES = [
|
|
|
83
85
|
"color-current",
|
|
84
86
|
"color-destructive",
|
|
85
87
|
"color-destructive-foreground",
|
|
88
|
+
"color-event-email-icon",
|
|
89
|
+
"color-event-email-surface",
|
|
90
|
+
"color-event-engagement-icon",
|
|
91
|
+
"color-event-engagement-surface",
|
|
92
|
+
"color-event-gain-icon",
|
|
93
|
+
"color-event-gain-surface",
|
|
94
|
+
"color-event-gift-icon",
|
|
95
|
+
"color-event-gift-surface",
|
|
96
|
+
"color-event-loss-icon",
|
|
97
|
+
"color-event-loss-surface",
|
|
98
|
+
"color-event-warning-icon",
|
|
99
|
+
"color-event-warning-surface",
|
|
86
100
|
"color-focus-ring",
|
|
87
101
|
"color-foreground",
|
|
88
102
|
"color-ghostaccent",
|
|
@@ -243,6 +257,18 @@ var SHADE_TOKEN_NAMES = [
|
|
|
243
257
|
"duration-slow",
|
|
244
258
|
"ease-emphasized",
|
|
245
259
|
"ease-standard",
|
|
260
|
+
"event-email-icon",
|
|
261
|
+
"event-email-surface",
|
|
262
|
+
"event-engagement-icon",
|
|
263
|
+
"event-engagement-surface",
|
|
264
|
+
"event-gain-icon",
|
|
265
|
+
"event-gain-surface",
|
|
266
|
+
"event-gift-icon",
|
|
267
|
+
"event-gift-surface",
|
|
268
|
+
"event-loss-icon",
|
|
269
|
+
"event-loss-surface",
|
|
270
|
+
"event-warning-icon",
|
|
271
|
+
"event-warning-surface",
|
|
246
272
|
"field-border",
|
|
247
273
|
"field-chip-internal-border",
|
|
248
274
|
"field-chip-internal-surface",
|
|
@@ -258,6 +284,7 @@ var SHADE_TOKEN_NAMES = [
|
|
|
258
284
|
"font-mono",
|
|
259
285
|
"font-sans",
|
|
260
286
|
"font-serif",
|
|
287
|
+
"font-weight-title",
|
|
261
288
|
"foreground",
|
|
262
289
|
"input",
|
|
263
290
|
"input-group-radius",
|
|
@@ -363,6 +390,8 @@ var SHADE_TOKEN_NAMES = [
|
|
|
363
390
|
"text-md",
|
|
364
391
|
"text-primary",
|
|
365
392
|
"text-secondary",
|
|
393
|
+
"text-section-heading",
|
|
394
|
+
"text-section-heading-lg",
|
|
366
395
|
"text-sm",
|
|
367
396
|
"text-tertiary",
|
|
368
397
|
"text-xl",
|
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 '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-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-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 '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 '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-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;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-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"}
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -28,6 +28,55 @@
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/* admin7Design: a heading for a section inside a page, one step below the page's
|
|
32
|
+
title. Comes after the utilities at their specificity, so it beats text classes. */
|
|
33
|
+
.section-heading:where([data-admin7-design='true'] *) {
|
|
34
|
+
font-size: var(--text-section-heading);
|
|
35
|
+
font-weight: var(--font-weight-title);
|
|
36
|
+
letter-spacing: 0;
|
|
37
|
+
line-height: 1.35;
|
|
38
|
+
font-variation-settings:
|
|
39
|
+
'opsz' 22,
|
|
40
|
+
'wght' var(--font-weight-title);
|
|
41
|
+
font-feature-settings: 'dlig', 'zero', 'ss01', 'ss02', 'cv10', 'cv06';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* admin7Design: a small label above a stat or a value, and a large, light number
|
|
45
|
+
for stats. Any unit inside the number is the number's size too. */
|
|
46
|
+
.stat-label:where([data-admin7-design='true'] *) {
|
|
47
|
+
color: var(--text-secondary);
|
|
48
|
+
font-size: 13px;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
line-height: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.stat-value:where([data-admin7-design='true'] *) {
|
|
54
|
+
font-size: 32px;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
letter-spacing: -0.025em;
|
|
57
|
+
line-height: 1;
|
|
58
|
+
font-variation-settings:
|
|
59
|
+
'opsz' 36,
|
|
60
|
+
'wght' 400;
|
|
61
|
+
|
|
62
|
+
& > span {
|
|
63
|
+
color: inherit;
|
|
64
|
+
font-size: inherit;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* admin7Design: the label style of column headers, whichever element holds
|
|
69
|
+
them. Comes after the utilities at their specificity, so it beats their text
|
|
70
|
+
classes but not a parent's, like the Members list's hidden sizing header. A
|
|
71
|
+
TableHead used as a row title is not a column header. */
|
|
72
|
+
.column-label:where([data-admin7-design='true'] :not([scope='row'])) {
|
|
73
|
+
color: var(--text-secondary);
|
|
74
|
+
font-size: 10px;
|
|
75
|
+
font-weight: 500;
|
|
76
|
+
letter-spacing: 0.04em;
|
|
77
|
+
text-transform: uppercase;
|
|
78
|
+
}
|
|
79
|
+
|
|
31
80
|
/* admin7Design: banners are a flat color with darker shades of it for text and no
|
|
32
81
|
outline. Text inside takes those shades, whichever tone it asks for. */
|
|
33
82
|
[data-admin7-design='true']
|
package/tailwind.theme.css
CHANGED
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
--font-serif: Georgia, serif;
|
|
136
136
|
--font-mono: Consolas, Liberation Mono, Menlo, Courier, monospace;
|
|
137
137
|
--font-inherit: inherit;
|
|
138
|
+
--font-weight-title: 540;
|
|
138
139
|
--tracking-tightest: -0.05em;
|
|
139
140
|
--tracking-tighter: -0.025em;
|
|
140
141
|
--tracking-tight: -0.01em;
|
|
@@ -372,6 +373,19 @@
|
|
|
372
373
|
--color-table-row-hover: var(--table-row-hover);
|
|
373
374
|
--color-map-surface: var(--map-surface);
|
|
374
375
|
--color-publish-accent: var(--publish-accent);
|
|
376
|
+
--color-character-count: var(--character-count);
|
|
377
|
+
--color-event-email-surface: var(--event-email-surface);
|
|
378
|
+
--color-event-email-icon: var(--event-email-icon);
|
|
379
|
+
--color-event-gain-surface: var(--event-gain-surface);
|
|
380
|
+
--color-event-gain-icon: var(--event-gain-icon);
|
|
381
|
+
--color-event-loss-surface: var(--event-loss-surface);
|
|
382
|
+
--color-event-loss-icon: var(--event-loss-icon);
|
|
383
|
+
--color-event-warning-surface: var(--event-warning-surface);
|
|
384
|
+
--color-event-warning-icon: var(--event-warning-icon);
|
|
385
|
+
--color-event-engagement-surface: var(--event-engagement-surface);
|
|
386
|
+
--color-event-engagement-icon: var(--event-engagement-icon);
|
|
387
|
+
--color-event-gift-surface: var(--event-gift-surface);
|
|
388
|
+
--color-event-gift-icon: var(--event-gift-icon);
|
|
375
389
|
--color-table-row-selected: var(--table-row-selected);
|
|
376
390
|
--color-control-surface: var(--control-surface);
|
|
377
391
|
--color-control-readonly-surface: var(--control-readonly-surface);
|
package/theme-variables.css
CHANGED
|
@@ -73,6 +73,20 @@
|
|
|
73
73
|
/* Publishing is a celebration: brighter than --state-success, which has to pass
|
|
74
74
|
AA as small text. */
|
|
75
75
|
--publish-accent: var(--color-green-600);
|
|
76
|
+
--character-count: var(--color-green-600);
|
|
77
|
+
/* Activity feed icons: a color pair for each kind of event. */
|
|
78
|
+
--event-email-surface: var(--color-blue-200);
|
|
79
|
+
--event-email-icon: var(--color-blue-700);
|
|
80
|
+
--event-gain-surface: var(--color-green-200);
|
|
81
|
+
--event-gain-icon: var(--color-green-700);
|
|
82
|
+
--event-loss-surface: var(--color-red-200);
|
|
83
|
+
--event-loss-icon: var(--color-red-700);
|
|
84
|
+
--event-warning-surface: var(--color-yellow-200);
|
|
85
|
+
--event-warning-icon: var(--color-yellow-700);
|
|
86
|
+
--event-engagement-surface: var(--color-purple-200);
|
|
87
|
+
--event-engagement-icon: var(--color-purple-700);
|
|
88
|
+
--event-gift-surface: var(--color-pink-200);
|
|
89
|
+
--event-gift-icon: var(--color-pink-700);
|
|
76
90
|
--state-success-foreground: var(--color-black);
|
|
77
91
|
--state-warning: var(--color-yellow-700);
|
|
78
92
|
/* --state-warning is dark enough for text, so a tint or a solid mark made from it
|
|
@@ -149,11 +163,13 @@
|
|
|
149
163
|
--control-readonly-surface: var(--color-gray-50);
|
|
150
164
|
--control-disabled-surface: var(--color-gray-100);
|
|
151
165
|
--control-border: color-mix(in oklab, var(--color-gray-200), var(--color-gray-300));
|
|
166
|
+
--text-section-heading: 1.6rem;
|
|
167
|
+
--text-section-heading-lg: 1.9rem;
|
|
152
168
|
/* Text-entry fields are white with a light outline. */
|
|
153
169
|
--field-surface: var(--control-surface);
|
|
154
170
|
--field-readonly-surface: var(--control-readonly-surface);
|
|
155
171
|
--field-disabled-surface: var(--control-disabled-surface);
|
|
156
|
-
--field-border: var(--
|
|
172
|
+
--field-border: var(--color-gray-300);
|
|
157
173
|
--field-chip-surface: var(--secondary);
|
|
158
174
|
--field-chip-internal-surface: transparent;
|
|
159
175
|
--field-chip-internal-border: var(--field-chip-surface);
|
|
@@ -272,6 +288,7 @@
|
|
|
272
288
|
--state-info: var(--color-blue-500);
|
|
273
289
|
--state-success: var(--color-green-500);
|
|
274
290
|
--publish-accent: var(--state-success);
|
|
291
|
+
--character-count: var(--state-success);
|
|
275
292
|
--state-warning: var(--color-yellow-500);
|
|
276
293
|
--state-warning-surface: color-mix(in oklab, var(--state-warning) 10%, transparent);
|
|
277
294
|
--state-warning-border: color-mix(in oklab, var(--state-warning) 40%, transparent);
|
|
@@ -329,6 +346,19 @@
|
|
|
329
346
|
--color-sidebar-bg: oklch(0.204 0.002 255);
|
|
330
347
|
|
|
331
348
|
--publish-accent: var(--state-success);
|
|
349
|
+
--character-count: var(--state-success);
|
|
350
|
+
--event-email-surface: var(--color-blue-900);
|
|
351
|
+
--event-email-icon: var(--color-blue-300);
|
|
352
|
+
--event-gain-surface: var(--color-green-900);
|
|
353
|
+
--event-gain-icon: var(--color-green-300);
|
|
354
|
+
--event-loss-surface: var(--color-red-900);
|
|
355
|
+
--event-loss-icon: var(--color-red-300);
|
|
356
|
+
--event-warning-surface: var(--color-yellow-900);
|
|
357
|
+
--event-warning-icon: var(--color-yellow-300);
|
|
358
|
+
--event-engagement-surface: var(--color-purple-900);
|
|
359
|
+
--event-engagement-icon: var(--color-purple-300);
|
|
360
|
+
--event-gift-surface: var(--color-pink-900);
|
|
361
|
+
--event-gift-icon: var(--color-pink-300);
|
|
332
362
|
--state-warning-surface: var(--color-yellow-900);
|
|
333
363
|
--state-warning-border: transparent;
|
|
334
364
|
--state-warning-fill: var(--state-warning);
|
|
@@ -356,6 +386,7 @@
|
|
|
356
386
|
--control-readonly-surface: var(--color-gray-950);
|
|
357
387
|
--control-disabled-surface: var(--color-gray-950);
|
|
358
388
|
--control-border: color-mix(in oklab, var(--color-gray-900) 70%, transparent);
|
|
389
|
+
--field-border: var(--control-border);
|
|
359
390
|
--control-pressed-shadow: lch(0 0 0 / 0.07) 0px 1px 2px 0px inset;
|
|
360
391
|
--control-outline-shadow:
|
|
361
392
|
lch(0 0 0 / 0.1) 0px 0px 0px 0.5px, lch(0 0 0 / 0.02) 0px 3px 6px -2px,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-modal.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/settings-modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAWlE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,kBAAkB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,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AA+BD,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"settings-modal.d.ts","sourceRoot":"","sources":["../../../src/components/patterns/settings-modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAWlE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC;AAE7E,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC;IACnC,qFAAqF;IACrF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qGAAqG;IACrG,IAAI,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AA+BD,QAAA,MAAM,aAAa,wFAkRlB,CAAC;AAIF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const cardVariants: (props?: ({
|
|
2
|
-
variant?: "outline" | "plain" | null | undefined;
|
|
2
|
+
variant?: "outline" | "plain" | "ruled" | null | undefined;
|
|
3
3
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
4
|
export { cardVariants };
|
|
5
5
|
//# sourceMappingURL=card-variants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;
|
|
1
|
+
{"version":3,"file":"card-variants.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card-variants.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY;;8EAWhB,CAAC;AAEH,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,KAAK,YAAY,GAAG,SAAS,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,KAAK,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAGlD,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;IACtE,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,QAAA,MAAM,IAAI,kFAMT,CAAC;AAgBF,QAAA,MAAM,UAAU,6GAKf,CAAC;AAGF,QAAA,MAAM,SAAS,6GAQd,CAAC;AAGF,QAAA,MAAM,eAAe,6GAIpB,CAAC;AAgBF,QAAA,MAAM,WAAW,6GAKhB,CAAC;AAgBF,QAAA,MAAM,UAAU,6GASf,CAAC;AAIF,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC;CAAG;AAEhF,QAAA,MAAM,SAAS,uFAWd,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAQ1D,QAAA,MAAM,MAAM,wBAAgC,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,sBAI5F,CAAC;AAEF,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAajB,CAAC;AAOH,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,wBAAwB,CACxE,OAAO,eAAe,CAAC,OAAO,CAC/B;IACC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;AAED,QAAA,MAAM,aAAa,2FAwDjB,CAAC;8BAGmB,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;;;8BAK7D,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;;;AAWnF,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAQ1D,QAAA,MAAM,MAAM,wBAAgC,KAAK,CAAC,cAAc,CAAC,OAAO,e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;AAQlF,QAAA,MAAM,UAAU,mKAYd,CAAC;AAGH,QAAA,MAAM,gBAAgB,6KASpB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,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', '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-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-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', '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', '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-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-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'];
|
|
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
|
package/types/tokens.d.ts.map
CHANGED
|
@@ -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,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,eAAe,EACf,eA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UAAU,EACV,uBAAuB,EACvB,UAAU,EACV,uBAAuB,EACvB,WAAW,EACX,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,SAAS,EACT,SAAS,EACT,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,CACT,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,UAAU,SAAU,cAAc,KAAG,MAA0B,CAAC"}
|
|
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,cAAc,EACd,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,gBAAgB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