@moving-walls/design-system 1.0.2 → 1.0.3

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.
@@ -1,4 +1,10 @@
1
1
  import React from 'react';
2
+ export interface DisplayProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
+ size?: 'large' | 'medium' | 'small';
4
+ children: React.ReactNode;
5
+ className?: string;
6
+ }
7
+ export declare function Display({ size, children, className, ...props }: DisplayProps): import("react/jsx-runtime").JSX.Element;
2
8
  export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
9
  level?: 1 | 2 | 3 | 4 | 5 | 6;
4
10
  children: React.ReactNode;
@@ -6,7 +12,7 @@ export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
6
12
  }
7
13
  export declare function Heading({ level, children, className, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
8
14
  type TextBaseProps = {
9
- size?: '2xs' | 'xs' | 'sm' | 'base' | 'lg' | 'xl';
15
+ size?: '2xs' | 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
10
16
  variant?: 'primary' | 'secondary' | 'muted' | 'error' | 'success' | 'info' | 'warning';
11
17
  weight?: 'normal' | 'medium' | 'semibold' | 'bold';
12
18
  children: React.ReactNode;
@@ -76,8 +76,8 @@ export { DataGrid } from './DataGrid';
76
76
  export type { DataGridColumn, DataGridSort, DataGridFilter, DataGridSelection } from './DataGrid';
77
77
  export { Thumbnail, VideoThumbnail, ImageThumbnail, ThumbnailGallery } from './Thumbnail';
78
78
  export { DragDrop, SortableList, useDragDrop } from './DragDrop';
79
- export { Heading, Text, Label } from './Typography';
80
- export type { HeadingProps, TextProps, LabelProps } from './Typography';
79
+ export { Heading, Text, Label, Display } from './Typography';
80
+ export type { HeadingProps, TextProps, LabelProps, DisplayProps } from './Typography';
81
81
  export { PageHeader } from './PageHeader';
82
82
  export type { PageHeaderProps } from './PageHeader';
83
83
  export { AppHeader, SidebarToggleButton } from './AppHeader';
package/dist/index.esm.js CHANGED
@@ -43965,6 +43965,25 @@ function SortableList(_ref4) {
43965
43965
  });
43966
43966
  }
43967
43967
 
43968
+ function Display(_a) {
43969
+ var _a$size = _a.size,
43970
+ size = _a$size === void 0 ? 'large' : _a$size,
43971
+ children = _a.children,
43972
+ className = _a.className,
43973
+ props = __rest$1(_a, ["size", "children", "className"]);
43974
+ var sizeClasses = {
43975
+ large: 'text-4xl font-bold leading-[3.5rem] text-mw-neutral-900 dark:text-white',
43976
+ // 40px / 56px
43977
+ medium: 'text-3xl font-bold leading-[3rem] text-mw-neutral-900 dark:text-white',
43978
+ // 32px / 48px
43979
+ small: 'text-2xl font-bold leading-[2.5rem] text-mw-neutral-900 dark:text-white' // 24px / 40px
43980
+ };
43981
+ return jsx("h1", Object.assign({
43982
+ className: clsx(sizeClasses[size], className)
43983
+ }, props, {
43984
+ children: children
43985
+ }));
43986
+ }
43968
43987
  function Heading(_a) {
43969
43988
  var _a$level = _a.level,
43970
43989
  level = _a$level === void 0 ? 1 : _a$level,
@@ -43973,14 +43992,19 @@ function Heading(_a) {
43973
43992
  props = __rest$1(_a, ["level", "children", "className"]);
43974
43993
  var Tag = "h".concat(level);
43975
43994
  var sizeClasses = {
43976
- 1: 'text-4xl font-bold text-mw-neutral-900 dark:text-white',
43977
- 2: 'text-3xl font-bold text-mw-neutral-900 dark:text-white',
43978
- 3: 'text-2xl font-semibold text-mw-neutral-900 dark:text-white',
43995
+ 1: 'text-4xl font-semibold leading-[3.5rem] text-mw-neutral-900 dark:text-white',
43996
+ // 40px / 56px
43997
+ 2: 'text-3xl font-semibold leading-[3rem] text-mw-neutral-900 dark:text-white',
43998
+ // 32px / 48px
43999
+ 3: 'text-2xl font-semibold leading-[2.5rem] text-mw-neutral-900 dark:text-white',
44000
+ // 24px / 40px
43979
44001
  // H4: Page titles - 20px font, 600 weight, 32px line-height (Figma: Creatives title)
43980
44002
  4: 'text-xl font-semibold leading-[2rem] text-mw-neutral-900 dark:text-white',
43981
- 5: 'text-lg font-medium text-mw-neutral-900 dark:text-white',
44003
+ // 20px / 32px
44004
+ 5: 'text-lg font-semibold leading-[1.5rem] text-mw-neutral-900 dark:text-white',
44005
+ // 18px / 24px
43982
44006
  // H6: Section headings - 16px font, 500 weight, 20px line-height (Figma: Folders/Recently Activity)
43983
- 6: 'text-base font-medium leading-[1.25rem] text-mw-neutral-900 dark:text-white'
44007
+ 6: 'text-base font-medium leading-[1.25rem] text-mw-neutral-900 dark:text-white' // 16px / 20px
43984
44008
  };
43985
44009
  return jsx(Tag, Object.assign({
43986
44010
  className: clsx(sizeClasses[level], className)
@@ -43989,8 +44013,8 @@ function Heading(_a) {
43989
44013
  }));
43990
44014
  }
43991
44015
  function Text(_a) {
43992
- var _a$size = _a.size,
43993
- size = _a$size === void 0 ? 'base' : _a$size,
44016
+ var _a$size2 = _a.size,
44017
+ size = _a$size2 === void 0 ? 'base' : _a$size2,
43994
44018
  _a$variant = _a.variant,
43995
44019
  variant = _a$variant === void 0 ? 'primary' : _a$variant,
43996
44020
  _a$weight = _a.weight,
@@ -44006,11 +44030,18 @@ function Text(_a) {
44006
44030
  xs: 'text-xs leading-[1rem]',
44007
44031
  // 12px font, 16px line-height
44008
44032
  sm: 'text-sm leading-[1.125rem]',
44009
- // 14px font, 18px line-height (Figma: subtitle)
44033
+ // 14px font, 18px line-height
44010
44034
  base: 'text-base leading-[1.25rem]',
44011
44035
  // 16px font, 20px line-height
44012
- lg: 'text-lg',
44013
- xl: 'text-xl'
44036
+ lg: 'text-lg leading-[1.5rem]',
44037
+ // 18px / 24px
44038
+ xl: 'text-xl leading-[2rem]',
44039
+ // 20px / 32px
44040
+ '2xl': 'text-2xl leading-[2.5rem]',
44041
+ // 24px / 40px
44042
+ '3xl': 'text-3xl leading-[3rem]',
44043
+ // 32px / 48px
44044
+ '4xl': 'text-4xl leading-[3.5rem]' // 40px / 56px
44014
44045
  };
44015
44046
  var variantClasses = {
44016
44047
  primary: 'text-mw-neutral-900 dark:text-white',
@@ -48406,35 +48437,35 @@ var typography = {
48406
48437
  xs: ['0.75rem', {
48407
48438
  lineHeight: '1rem'
48408
48439
  }],
48409
- // 12px
48440
+ // 12px / 16px
48410
48441
  sm: ['0.875rem', {
48411
- lineHeight: '1.25rem'
48442
+ lineHeight: '1.125rem'
48412
48443
  }],
48413
- // 14px
48444
+ // 14px / 18px
48414
48445
  base: ['1rem', {
48415
- lineHeight: '1.5rem'
48446
+ lineHeight: '1.25rem'
48416
48447
  }],
48417
- // 16px
48448
+ // 16px / 20px
48418
48449
  lg: ['1.125rem', {
48419
- lineHeight: '1.75rem'
48450
+ lineHeight: '1.5rem'
48420
48451
  }],
48421
- // 18px
48452
+ // 18px / 24px
48422
48453
  xl: ['1.25rem', {
48423
- lineHeight: '1.75rem'
48454
+ lineHeight: '2rem'
48424
48455
  }],
48425
- // 20px
48456
+ // 20px / 32px
48426
48457
  '2xl': ['1.5rem', {
48427
- lineHeight: '2rem'
48458
+ lineHeight: '2.5rem'
48428
48459
  }],
48429
- // 24px
48430
- '3xl': ['1.875rem', {
48431
- lineHeight: '2.25rem'
48460
+ // 24px / 40px
48461
+ '3xl': ['2rem', {
48462
+ lineHeight: '3rem'
48432
48463
  }],
48433
- // 30px
48434
- '4xl': ['2.25rem', {
48435
- lineHeight: '2.5rem'
48464
+ // 32px / 48px
48465
+ '4xl': ['2.5rem', {
48466
+ lineHeight: '3.5rem'
48436
48467
  }],
48437
- // 36px
48468
+ // 40px / 56px
48438
48469
  '5xl': ['3rem', {
48439
48470
  lineHeight: '1'
48440
48471
  }],
@@ -48473,21 +48504,57 @@ var breakpoints = {
48473
48504
  };
48474
48505
  var borderRadius = {
48475
48506
  none: '0px',
48476
- sm: '0.125rem',
48477
- // 2px
48478
- base: '0.25rem',
48507
+ '2xs': '0.25rem',
48479
48508
  // 4px
48480
- md: '0.375rem',
48481
- // 6px
48482
- lg: '0.5rem',
48509
+ xs: '0.5rem',
48483
48510
  // 8px
48484
- xl: '0.75rem',
48511
+ s: '0.75rem',
48485
48512
  // 12px
48486
- '2xl': '1rem',
48513
+ m: '1rem',
48487
48514
  // 16px
48488
- '3xl': '1.5rem',
48515
+ l: '1.25rem',
48516
+ // 20px
48517
+ xl: '1.5rem',
48489
48518
  // 24px
48490
- full: '9999px'
48519
+ '2xl': '2rem',
48520
+ // 32px
48521
+ '3xl': '2.5rem',
48522
+ // 40px
48523
+ '4xl': '3rem',
48524
+ // 48px
48525
+ '5xl': '3.5rem',
48526
+ // 56px
48527
+ full: '999px'
48528
+ };
48529
+ var borderWidth = {
48530
+ s: '1px',
48531
+ m: '2px',
48532
+ l: '4px',
48533
+ xl: '6px',
48534
+ '2xl': '8px',
48535
+ '3xl': '12px',
48536
+ '4xl': '16px',
48537
+ '5xl': '20px'
48538
+ };
48539
+ var effects = {
48540
+ // E0 - Elevation (Selected State)
48541
+ elevation: {
48542
+ border: '1px solid var(--color-mw-primary-500)',
48543
+ shadow: '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)'
48544
+ },
48545
+ // E1 - Default/Flat (no effect)
48546
+ "default": {
48547
+ border: 'none',
48548
+ shadow: 'none'
48549
+ },
48550
+ // E2 - Sunken
48551
+ sunken: {
48552
+ shadow: 'inset 0 2px 4px 0 rgb(0 0 0 / 0.1)'
48553
+ },
48554
+ // E3 - Glow
48555
+ glow: {
48556
+ shadow: '0 0 8px rgba(29, 101, 175, 0.3), 0 0 16px rgba(29, 101, 175, 0.2)'
48557
+ }
48491
48558
  };
48492
48559
  var zIndex = {
48493
48560
  auto: 'auto',
@@ -48513,6 +48580,8 @@ var tokens = {
48513
48580
  shadows: shadows,
48514
48581
  breakpoints: breakpoints,
48515
48582
  borderRadius: borderRadius,
48583
+ borderWidth: borderWidth,
48584
+ effects: effects,
48516
48585
  zIndex: zIndex
48517
48586
  };
48518
48587
  // CSS Custom Properties
@@ -48580,9 +48649,34 @@ var cssVariables = {
48580
48649
  '--mw-shadow-md': shadows.md,
48581
48650
  '--mw-shadow-lg': shadows.lg,
48582
48651
  // Border Radius
48583
- '--mw-radius-sm': borderRadius.sm,
48584
- '--mw-radius-md': borderRadius.md,
48585
- '--mw-radius-lg': borderRadius.lg
48652
+ '--mw-radius-none': borderRadius.none,
48653
+ '--mw-radius-2xs': borderRadius['2xs'],
48654
+ '--mw-radius-xs': borderRadius.xs,
48655
+ '--mw-radius-s': borderRadius.s,
48656
+ '--mw-radius-m': borderRadius.m,
48657
+ '--mw-radius-l': borderRadius.l,
48658
+ '--mw-radius-xl': borderRadius.xl,
48659
+ '--mw-radius-2xl': borderRadius['2xl'],
48660
+ '--mw-radius-3xl': borderRadius['3xl'],
48661
+ '--mw-radius-4xl': borderRadius['4xl'],
48662
+ '--mw-radius-5xl': borderRadius['5xl'],
48663
+ '--mw-radius-full': borderRadius.full,
48664
+ // Border Width
48665
+ '--mw-border-s': borderWidth.s,
48666
+ '--mw-border-m': borderWidth.m,
48667
+ '--mw-border-l': borderWidth.l,
48668
+ '--mw-border-xl': borderWidth.xl,
48669
+ '--mw-border-2xl': borderWidth['2xl'],
48670
+ '--mw-border-3xl': borderWidth['3xl'],
48671
+ '--mw-border-4xl': borderWidth['4xl'],
48672
+ '--mw-border-5xl': borderWidth['5xl'],
48673
+ // Effects
48674
+ '--mw-effect-elevation-border': effects.elevation.border,
48675
+ '--mw-effect-elevation-shadow': effects.elevation.shadow,
48676
+ '--mw-effect-default-border': effects["default"].border,
48677
+ '--mw-effect-default-shadow': effects["default"].shadow,
48678
+ '--mw-effect-sunken-shadow': effects.sunken.shadow,
48679
+ '--mw-effect-glow-shadow': effects.glow.shadow
48586
48680
  }
48587
48681
  };
48588
48682
 
@@ -51923,5 +52017,5 @@ function getShortcutCategory(shortcut) {
51923
52017
  // Version
51924
52018
  var version = '1.0.0';
51925
52019
 
51926
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedTable, Alert, AlertCircleIcon, AlertTriangleIcon, AnimatedElement, AppHeader, Autocomplete, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselSlide, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, CloseIcon, CodeSnippet, Collapsible, CollapsibleCode, CollapsibleContent, CollapsibleTrigger, ColumnCustomizationDrawer, Command, CommandGroup, CommandItem, CommandSeparator, Container, CounterAnimation, DataGrid, DatePicker, DateRangePicker, DescriptionList, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DocumentEditor, DragDrop, Dropdown, DropdownContent, DropdownItem, Dropdown as DropdownMenu, DropdownContent as DropdownMenuContent, DropdownItem as DropdownMenuItem, DropdownMenuLabel, DropdownSeparator as DropdownMenuSeparator, DropdownTrigger as DropdownMenuTrigger, DropdownSeparator, DropdownTrigger, DynamicIcon, EmptyState, Fieldset, FileUpload, Filter, FlexContainer, FloatingElement, Footer, Form, FormActions, FormControl, FormDescription, FormError, FormField, FormGroup, FormItem, FormLabel, FormMessage, FormSection, GridContainer, HStack, Heading, Icon$1 as Icon, ImageCarousel, ImageThumbnail, InfoIcon, Input, Label, List, ListItem, Loading, MWBounceLoader, MWDotsLoader, MWHeartbeatLoader, MWLoader, MWMatrixLoader, MWProgressiveLoader, Menu, MenuCheckboxItem, MenuGroup, MenuItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MinusIcon, Modal, ModalBody, ModalFooter, ModalHeader, MultiSelect, Navigation, NavigationList, NoDataEmptyState, NoResultsEmptyState, Notification, NotificationBadge, NotificationBell, NotificationList, PageHeader, PageHero, Pagination, Panel, PanelGroup, PanelHeader, PanelResizer, PlusIcon, Popover, PopoverContent, PopoverTrigger, ProcessFlowAnimation, Progress, Radio$1 as Radio, RadioGroup, RadioGroupItem, Rating, ResponsiveContainer, RichTextEditor, ScheduleGrid, ScrollArea, SearchBar, SearchIcon, SearchResults, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarCollapseToggle, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, SidebarNav, SidebarPanel, SidebarProvider, SidebarToggleButton, SidebarTrigger, Skeleton, Slider, SnackbarProvider, SortableList, Spinner, SplitPanel, Stack, StackPanel, StatusBadge, Stepper, Switch, SwitchGroup, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Text, Textarea, ThemeToggle, Thumbnail, ThumbnailGallery, TimePicker, TimeRangePicker, Timeline, TimelineItem, ToastProvider, ToggleGroup, ToggleGroupItem, Tooltip, TreeView, VideoThumbnail, borderRadius, breakpoints, cn, colors, cssVariables, debounce, findTreeNode, formatIconName$1 as formatIconName, generateColorVariations, generateIconCode, getAllNodeIds, getParentIds, hexToRgb, shadows, spacing, tokens, typography, useDragDrop, useFormContext, useIconSearch, useKeyboardShortcuts, useSidebar, useSidebarSafe, useSnackbar, useSnackbarHelpers, useToast, version, zIndex };
52020
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdvancedTable, Alert, AlertCircleIcon, AlertTriangleIcon, AnimatedElement, AppHeader, Autocomplete, Avatar, AvatarFallback, AvatarGroup, AvatarImage, Badge, Breadcrumb, BreadcrumbItem, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselSlide, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, CloseIcon, CodeSnippet, Collapsible, CollapsibleCode, CollapsibleContent, CollapsibleTrigger, ColumnCustomizationDrawer, Command, CommandGroup, CommandItem, CommandSeparator, Container, CounterAnimation, DataGrid, DatePicker, DateRangePicker, DescriptionList, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Display, DocumentEditor, DragDrop, Dropdown, DropdownContent, DropdownItem, Dropdown as DropdownMenu, DropdownContent as DropdownMenuContent, DropdownItem as DropdownMenuItem, DropdownMenuLabel, DropdownSeparator as DropdownMenuSeparator, DropdownTrigger as DropdownMenuTrigger, DropdownSeparator, DropdownTrigger, DynamicIcon, EmptyState, Fieldset, FileUpload, Filter, FlexContainer, FloatingElement, Footer, Form, FormActions, FormControl, FormDescription, FormError, FormField, FormGroup, FormItem, FormLabel, FormMessage, FormSection, GridContainer, HStack, Heading, Icon$1 as Icon, ImageCarousel, ImageThumbnail, InfoIcon, Input, Label, List, ListItem, Loading, MWBounceLoader, MWDotsLoader, MWHeartbeatLoader, MWLoader, MWMatrixLoader, MWProgressiveLoader, Menu, MenuCheckboxItem, MenuGroup, MenuItem, MenuRadioGroup, MenuRadioItem, MenuSeparator, MinusIcon, Modal, ModalBody, ModalFooter, ModalHeader, MultiSelect, Navigation, NavigationList, NoDataEmptyState, NoResultsEmptyState, Notification, NotificationBadge, NotificationBell, NotificationList, PageHeader, PageHero, Pagination, Panel, PanelGroup, PanelHeader, PanelResizer, PlusIcon, Popover, PopoverContent, PopoverTrigger, ProcessFlowAnimation, Progress, Radio$1 as Radio, RadioGroup, RadioGroupItem, Rating, ResponsiveContainer, RichTextEditor, ScheduleGrid, ScrollArea, SearchBar, SearchIcon, SearchResults, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarCollapseToggle, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, SidebarNav, SidebarPanel, SidebarProvider, SidebarToggleButton, SidebarTrigger, Skeleton, Slider, SnackbarProvider, SortableList, Spinner, SplitPanel, Stack, StackPanel, StatusBadge, Stepper, Switch, SwitchGroup, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Text, Textarea, ThemeToggle, Thumbnail, ThumbnailGallery, TimePicker, TimeRangePicker, Timeline, TimelineItem, ToastProvider, ToggleGroup, ToggleGroupItem, Tooltip, TreeView, VideoThumbnail, borderRadius, borderWidth, breakpoints, cn, colors, cssVariables, debounce, effects, findTreeNode, formatIconName$1 as formatIconName, generateColorVariations, generateIconCode, getAllNodeIds, getParentIds, hexToRgb, shadows, spacing, tokens, typography, useDragDrop, useFormContext, useIconSearch, useKeyboardShortcuts, useSidebar, useSidebarSafe, useSnackbar, useSnackbarHelpers, useToast, version, zIndex };
51927
52021
  //# sourceMappingURL=index.esm.js.map