@salesmind-ai/design-system 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.cjs +23 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.css +147 -2
- package/dist/core/index.css.map +1 -1
- package/dist/core/index.d.cts +12 -0
- package/dist/core/index.d.ts +12 -0
- package/dist/core/index.js +23 -6
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +37 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +428 -14
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +37 -7
- package/dist/index.js.map +1 -1
- package/dist/marketing/index.cjs +13 -2
- package/dist/marketing/index.cjs.map +1 -1
- package/dist/marketing/index.css +293 -9
- package/dist/marketing/index.css.map +1 -1
- package/dist/marketing/index.js +13 -2
- package/dist/marketing/index.js.map +1 -1
- package/dist/styles/styles.css +3 -3
- package/package.json +2 -1
package/dist/core/index.d.cts
CHANGED
|
@@ -928,6 +928,8 @@ interface GridProps extends BoxProps {
|
|
|
928
928
|
rows?: number | string;
|
|
929
929
|
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
930
930
|
justify?: 'start' | 'center' | 'end' | 'stretch';
|
|
931
|
+
/** Prevent grid from expanding to more columns on wide screens. */
|
|
932
|
+
fixed?: boolean;
|
|
931
933
|
}
|
|
932
934
|
declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLElement>>;
|
|
933
935
|
|
|
@@ -2391,21 +2393,31 @@ declare const Z_INDEX: {
|
|
|
2391
2393
|
type ZIndexToken = keyof typeof Z_INDEX;
|
|
2392
2394
|
|
|
2393
2395
|
declare const BREAKPOINTS: {
|
|
2396
|
+
readonly '3xs': 320;
|
|
2397
|
+
readonly '2xs': 375;
|
|
2394
2398
|
readonly xs: 480;
|
|
2395
2399
|
readonly sm: 640;
|
|
2396
2400
|
readonly md: 768;
|
|
2397
2401
|
readonly lg: 1024;
|
|
2398
2402
|
readonly xl: 1280;
|
|
2399
2403
|
readonly '2xl': 1536;
|
|
2404
|
+
readonly '3xl': 1920;
|
|
2405
|
+
readonly '4xl': 2560;
|
|
2406
|
+
readonly '5xl': 3840;
|
|
2400
2407
|
};
|
|
2401
2408
|
type Breakpoint = keyof typeof BREAKPOINTS;
|
|
2402
2409
|
declare const MEDIA_QUERIES: {
|
|
2410
|
+
readonly '3xs': "(min-width: 320px)";
|
|
2411
|
+
readonly '2xs': "(min-width: 375px)";
|
|
2403
2412
|
readonly xs: "(min-width: 480px)";
|
|
2404
2413
|
readonly sm: "(min-width: 640px)";
|
|
2405
2414
|
readonly md: "(min-width: 768px)";
|
|
2406
2415
|
readonly lg: "(min-width: 1024px)";
|
|
2407
2416
|
readonly xl: "(min-width: 1280px)";
|
|
2408
2417
|
readonly '2xl': "(min-width: 1536px)";
|
|
2418
|
+
readonly '3xl': "(min-width: 1920px)";
|
|
2419
|
+
readonly '4xl': "(min-width: 2560px)";
|
|
2420
|
+
readonly '5xl': "(min-width: 3840px)";
|
|
2409
2421
|
};
|
|
2410
2422
|
|
|
2411
2423
|
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, type AlertProps, type AlertVariant, type AppearanceContextValue, AppearancePanel, type AppearancePanelLabels, type AppearancePanelProps, AppearanceProvider, type AppearanceProviderProps, type AppearanceSettings, AspectRatio, type AspectRatioProps, Avatar, AvatarFallback, AvatarImage, type AvatarProps, BREAKPOINTS, Badge, type BadgeProps, Box, type BoxProps, type Brand, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, type Breakpoint, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COLORS, CONTAINER_SIZE_MAP, Calendar, type CalendarLabels, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, type CarouselNextProps, CarouselPrevious, type CarouselPreviousProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, Command, CommandDialog, type CommandDialogProps, CommandEmpty, CommandGroup, type CommandGroupProps, CommandInput, CommandItem, type CommandItemProps, CommandList, type CommandProps, CommandSeparator, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuContent, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuProps, ContextMenuSeparator, ContextMenuTrigger, DISTANCE, DSIntlProvider, type DSIntlProviderProps, DURATION, type Density, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EASING, EmptyState, type EmptyStateProps, FONT_FAMILY, FONT_SIZE, FONT_WEIGHT, type FieldRenderProps, FormControl, FormDescription, FormField, type FormFieldProps, FormItem, FormLabel, FormMessage, Grid, type GridProps, Heading, type HeadingProps, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputOTPSlotProps, LINE_HEIGHT, Label, type LabelProps, MEDIA_QUERIES, MOTION, type MessageValues, type NavPlacement, Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, Popover, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, Prose, type ProseProps, RADIUS, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type Radius, type RadiusToken, SHADOWS, SPACING, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Section, type SectionProps, Separator, type SeparatorProps, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetProps, type SheetSide, SheetTitle, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SpacingProps, type SpacingToken, Stack, type StackProps, StatusBadge, type StatusBadgeProps, Switch, type SwitchProps, TRANSITION, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, type Theme, ToastContext, type ToastContextType, ToastItem, type ToastProps, ToastProvider, type ToastVariant, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, VARIANTS, VisuallyHidden, type ZIndexToken, Z_INDEX, alertMessages, allMessages, appearanceMessages, authMessages, calendarMessages, carouselMessages, commonMessages, dialogMessages, extractSpacingStyles, formMessages, hexToRgb, initializeAppearance, methodologyMessages, navigationMessages, paginationMessages, prefersReducedMotion, reportMessages, resolveSpacing, toastMessages, useAppearance, useDateFormat, useFormField, useIsRTL, useLocale, useMessage, useNumberFormat, useRelativeTime, useTextDirection, useToast };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -928,6 +928,8 @@ interface GridProps extends BoxProps {
|
|
|
928
928
|
rows?: number | string;
|
|
929
929
|
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
930
930
|
justify?: 'start' | 'center' | 'end' | 'stretch';
|
|
931
|
+
/** Prevent grid from expanding to more columns on wide screens. */
|
|
932
|
+
fixed?: boolean;
|
|
931
933
|
}
|
|
932
934
|
declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttributes<HTMLElement>>;
|
|
933
935
|
|
|
@@ -2391,21 +2393,31 @@ declare const Z_INDEX: {
|
|
|
2391
2393
|
type ZIndexToken = keyof typeof Z_INDEX;
|
|
2392
2394
|
|
|
2393
2395
|
declare const BREAKPOINTS: {
|
|
2396
|
+
readonly '3xs': 320;
|
|
2397
|
+
readonly '2xs': 375;
|
|
2394
2398
|
readonly xs: 480;
|
|
2395
2399
|
readonly sm: 640;
|
|
2396
2400
|
readonly md: 768;
|
|
2397
2401
|
readonly lg: 1024;
|
|
2398
2402
|
readonly xl: 1280;
|
|
2399
2403
|
readonly '2xl': 1536;
|
|
2404
|
+
readonly '3xl': 1920;
|
|
2405
|
+
readonly '4xl': 2560;
|
|
2406
|
+
readonly '5xl': 3840;
|
|
2400
2407
|
};
|
|
2401
2408
|
type Breakpoint = keyof typeof BREAKPOINTS;
|
|
2402
2409
|
declare const MEDIA_QUERIES: {
|
|
2410
|
+
readonly '3xs': "(min-width: 320px)";
|
|
2411
|
+
readonly '2xs': "(min-width: 375px)";
|
|
2403
2412
|
readonly xs: "(min-width: 480px)";
|
|
2404
2413
|
readonly sm: "(min-width: 640px)";
|
|
2405
2414
|
readonly md: "(min-width: 768px)";
|
|
2406
2415
|
readonly lg: "(min-width: 1024px)";
|
|
2407
2416
|
readonly xl: "(min-width: 1280px)";
|
|
2408
2417
|
readonly '2xl': "(min-width: 1536px)";
|
|
2418
|
+
readonly '3xl': "(min-width: 1920px)";
|
|
2419
|
+
readonly '4xl': "(min-width: 2560px)";
|
|
2420
|
+
readonly '5xl': "(min-width: 3840px)";
|
|
2409
2421
|
};
|
|
2410
2422
|
|
|
2411
2423
|
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, type AlertProps, type AlertVariant, type AppearanceContextValue, AppearancePanel, type AppearancePanelLabels, type AppearancePanelProps, AppearanceProvider, type AppearanceProviderProps, type AppearanceSettings, AspectRatio, type AspectRatioProps, Avatar, AvatarFallback, AvatarImage, type AvatarProps, BREAKPOINTS, Badge, type BadgeProps, Box, type BoxProps, type Brand, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, type Breakpoint, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COLORS, CONTAINER_SIZE_MAP, Calendar, type CalendarLabels, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, type CarouselNextProps, CarouselPrevious, type CarouselPreviousProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleProps, CollapsibleTrigger, Command, CommandDialog, type CommandDialogProps, CommandEmpty, CommandGroup, type CommandGroupProps, CommandInput, CommandItem, type CommandItemProps, CommandList, type CommandProps, CommandSeparator, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuContent, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuProps, ContextMenuSeparator, ContextMenuTrigger, DISTANCE, DSIntlProvider, type DSIntlProviderProps, DURATION, type Density, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, type DrawerContentProps, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, EASING, EmptyState, type EmptyStateProps, FONT_FAMILY, FONT_SIZE, FONT_WEIGHT, type FieldRenderProps, FormControl, FormDescription, FormField, type FormFieldProps, FormItem, FormLabel, FormMessage, Grid, type GridProps, Heading, type HeadingProps, HoverCard, HoverCardContent, type HoverCardContentProps, type HoverCardProps, HoverCardTrigger, InputOTP, InputOTPGroup, type InputOTPProps, InputOTPSeparator, InputOTPSlot, type InputOTPSlotProps, LINE_HEIGHT, Label, type LabelProps, MEDIA_QUERIES, MOTION, type MessageValues, type NavPlacement, Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, Popover, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, Prose, type ProseProps, RADIUS, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type Radius, type RadiusToken, SHADOWS, SPACING, ScrollArea, type ScrollAreaProps, ScrollBar, type ScrollBarProps, Section, type SectionProps, Separator, type SeparatorProps, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetProps, type SheetSide, SheetTitle, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonProps, Slider, type SliderProps, type SpacingProps, type SpacingToken, Stack, type StackProps, StatusBadge, type StatusBadgeProps, Switch, type SwitchProps, TRANSITION, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, TextArea, type TextAreaProps, TextField, type TextFieldProps, type TextProps, type Theme, ToastContext, type ToastContextType, ToastItem, type ToastProps, ToastProvider, type ToastVariant, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Tooltip, TooltipContent, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, VARIANTS, VisuallyHidden, type ZIndexToken, Z_INDEX, alertMessages, allMessages, appearanceMessages, authMessages, calendarMessages, carouselMessages, commonMessages, dialogMessages, extractSpacingStyles, formMessages, hexToRgb, initializeAppearance, methodologyMessages, navigationMessages, paginationMessages, prefersReducedMotion, reportMessages, resolveSpacing, toastMessages, useAppearance, useDateFormat, useFormField, useIsRTL, useLocale, useMessage, useNumberFormat, useRelativeTime, useTextDirection, useToast };
|
package/dist/core/index.js
CHANGED
|
@@ -227,20 +227,30 @@ var Z_INDEX = {
|
|
|
227
227
|
|
|
228
228
|
// src/tokens/breakpoints.ts
|
|
229
229
|
var BREAKPOINTS = {
|
|
230
|
+
"3xs": 320,
|
|
231
|
+
"2xs": 375,
|
|
230
232
|
xs: 480,
|
|
231
233
|
sm: 640,
|
|
232
234
|
md: 768,
|
|
233
235
|
lg: 1024,
|
|
234
236
|
xl: 1280,
|
|
235
|
-
"2xl": 1536
|
|
237
|
+
"2xl": 1536,
|
|
238
|
+
"3xl": 1920,
|
|
239
|
+
"4xl": 2560,
|
|
240
|
+
"5xl": 3840
|
|
236
241
|
};
|
|
237
242
|
var MEDIA_QUERIES = {
|
|
243
|
+
"3xs": `(min-width: ${BREAKPOINTS["3xs"]}px)`,
|
|
244
|
+
"2xs": `(min-width: ${BREAKPOINTS["2xs"]}px)`,
|
|
238
245
|
xs: `(min-width: ${BREAKPOINTS.xs}px)`,
|
|
239
246
|
sm: `(min-width: ${BREAKPOINTS.sm}px)`,
|
|
240
247
|
md: `(min-width: ${BREAKPOINTS.md}px)`,
|
|
241
248
|
lg: `(min-width: ${BREAKPOINTS.lg}px)`,
|
|
242
249
|
xl: `(min-width: ${BREAKPOINTS.xl}px)`,
|
|
243
|
-
"2xl": `(min-width: ${BREAKPOINTS["2xl"]}px)
|
|
250
|
+
"2xl": `(min-width: ${BREAKPOINTS["2xl"]}px)`,
|
|
251
|
+
"3xl": `(min-width: ${BREAKPOINTS["3xl"]}px)`,
|
|
252
|
+
"4xl": `(min-width: ${BREAKPOINTS["4xl"]}px)`,
|
|
253
|
+
"5xl": `(min-width: ${BREAKPOINTS["5xl"]}px)`
|
|
244
254
|
};
|
|
245
255
|
var STORAGE_KEY = "void-appearance-settings";
|
|
246
256
|
var DEFAULT_SETTINGS = {
|
|
@@ -3340,15 +3350,22 @@ var Stack = forwardRef(
|
|
|
3340
3350
|
}
|
|
3341
3351
|
);
|
|
3342
3352
|
Stack.displayName = "Stack";
|
|
3353
|
+
var MAX_RESPONSIVE_COLS = 6;
|
|
3343
3354
|
var Grid = forwardRef(
|
|
3344
|
-
({ columns, rows, align, justify, className, style, ...props }, ref) => {
|
|
3355
|
+
({ columns, rows, align, justify, fixed, className, style, ...props }, ref) => {
|
|
3356
|
+
const useColClass = typeof columns === "number" && columns >= 1 && columns <= MAX_RESPONSIVE_COLS;
|
|
3345
3357
|
return /* @__PURE__ */ jsx(
|
|
3346
3358
|
Box,
|
|
3347
3359
|
{
|
|
3348
3360
|
ref,
|
|
3349
|
-
className: clsx27(
|
|
3361
|
+
className: clsx27(
|
|
3362
|
+
"ds-grid",
|
|
3363
|
+
useColClass && `ds-grid--cols-${columns}`,
|
|
3364
|
+
fixed && "ds-grid--fixed",
|
|
3365
|
+
className
|
|
3366
|
+
),
|
|
3350
3367
|
style: {
|
|
3351
|
-
gridTemplateColumns: typeof columns === "number" ? `repeat(${columns}, 1fr)` : columns,
|
|
3368
|
+
gridTemplateColumns: useColClass ? void 0 : typeof columns === "number" ? `repeat(${columns}, 1fr)` : columns,
|
|
3352
3369
|
gridTemplateRows: typeof rows === "number" ? `repeat(${rows}, 1fr)` : rows,
|
|
3353
3370
|
alignItems: align,
|
|
3354
3371
|
justifyItems: justify,
|
|
@@ -3379,7 +3396,7 @@ var Container = forwardRef(
|
|
|
3379
3396
|
} else if (size) {
|
|
3380
3397
|
resolvedMaxWidth = CONTAINER_SIZE_MAP[size];
|
|
3381
3398
|
} else {
|
|
3382
|
-
resolvedMaxWidth = maxWidth || "1200px";
|
|
3399
|
+
resolvedMaxWidth = maxWidth || "var(--container-default-max, 1200px)";
|
|
3383
3400
|
}
|
|
3384
3401
|
return /* @__PURE__ */ jsx(
|
|
3385
3402
|
Box,
|