@x-plat/design-system 0.6.0 → 0.6.1

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/index.css CHANGED
@@ -1381,6 +1381,53 @@
1381
1381
  color: var(--semantic-text-error);
1382
1382
  }
1383
1383
 
1384
+ /* src/components/AutoResizeTextArea/autoResizeTextArea.scss */
1385
+ .lib-xplat-auto-resize-textarea-wrapper {
1386
+ display: flex;
1387
+ flex-direction: column;
1388
+ gap: var(--spacing-space-2);
1389
+ }
1390
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea {
1391
+ display: flex;
1392
+ align-items: center;
1393
+ border: 1px solid var(--semantic-border-primary);
1394
+ border-radius: var(--spacing-radius-md);
1395
+ min-height: var(--spacing-control-height-md);
1396
+ overflow: hidden;
1397
+ background-color: var(--semantic-surface-neutral-primary);
1398
+ width: 100%;
1399
+ transition: border-color 0.15s, box-shadow 0.15s;
1400
+ }
1401
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
1402
+ border-color: var(--semantic-border-tertiary);
1403
+ }
1404
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
1405
+ border-color: var(--semantic-interaction-focus-ring);
1406
+ box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
1407
+ }
1408
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
1409
+ border-color: var(--semantic-border-tertiary);
1410
+ }
1411
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea.disabled {
1412
+ background-color: var(--semantic-surface-neutral-disabled);
1413
+ cursor: not-allowed;
1414
+ }
1415
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea {
1416
+ border: none;
1417
+ outline: none;
1418
+ flex: 1;
1419
+ padding: var(--spacing-space-2) var(--spacing-space-4);
1420
+ width: 100%;
1421
+ color: var(--semantic-text-secondary);
1422
+ resize: none;
1423
+ font-size: var(--semantic-typo-label-2-m-size);
1424
+ line-height: var(--semantic-typo-label-2-m-lh);
1425
+ font-family: inherit;
1426
+ }
1427
+ .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea:disabled {
1428
+ cursor: not-allowed;
1429
+ }
1430
+
1384
1431
  /* src/components/Avatar/avatar.scss */
1385
1432
  .lib-xplat-avatar {
1386
1433
  display: inline-flex;
@@ -2200,53 +2247,6 @@
2200
2247
  }
2201
2248
  }
2202
2249
 
2203
- /* src/components/AutoResizeTextArea/autoResizeTextArea.scss */
2204
- .lib-xplat-auto-resize-textarea-wrapper {
2205
- display: flex;
2206
- flex-direction: column;
2207
- gap: var(--spacing-space-2);
2208
- }
2209
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea {
2210
- display: flex;
2211
- align-items: center;
2212
- border: 1px solid var(--semantic-border-primary);
2213
- border-radius: var(--spacing-radius-md);
2214
- min-height: var(--spacing-control-height-md);
2215
- overflow: hidden;
2216
- background-color: var(--semantic-surface-neutral-primary);
2217
- width: 100%;
2218
- transition: border-color 0.15s, box-shadow 0.15s;
2219
- }
2220
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:hover:not(.disabled):not(:focus-within) {
2221
- border-color: var(--semantic-border-tertiary);
2222
- }
2223
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:focus-within {
2224
- border-color: var(--semantic-interaction-focus-ring);
2225
- box-shadow: 0 0 0 2px var(--semantic-interaction-overlay-10);
2226
- }
2227
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea:has(> textarea:not(:placeholder-shown)):not(:focus-within) {
2228
- border-color: var(--semantic-border-tertiary);
2229
- }
2230
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea.disabled {
2231
- background-color: var(--semantic-surface-neutral-disabled);
2232
- cursor: not-allowed;
2233
- }
2234
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea {
2235
- border: none;
2236
- outline: none;
2237
- flex: 1;
2238
- padding: var(--spacing-space-2) var(--spacing-space-4);
2239
- width: 100%;
2240
- color: var(--semantic-text-secondary);
2241
- resize: none;
2242
- font-size: var(--semantic-typo-label-2-m-size);
2243
- line-height: var(--semantic-typo-label-2-m-lh);
2244
- font-family: inherit;
2245
- }
2246
- .lib-xplat-auto-resize-textarea-wrapper .lib-xplat-auto-resize-textarea > textarea:disabled {
2247
- cursor: not-allowed;
2248
- }
2249
-
2250
2250
  /* src/components/IconButton/iconButton.scss */
2251
2251
  .lib-xplat-icon-button {
2252
2252
  display: inline-flex;
@@ -5128,7 +5128,7 @@
5128
5128
  color: inherit;
5129
5129
  text-align: left;
5130
5130
  cursor: pointer;
5131
- border-radius: var(--spacing-radius-xs);
5131
+ border-radius: var(--spacing-radius-sm);
5132
5132
  font-size: var(--semantic-typo-caption-2-r-size);
5133
5133
  font-variant-numeric: tabular-nums;
5134
5134
  }
@@ -5318,8 +5318,8 @@
5318
5318
  align-items: center;
5319
5319
  justify-content: space-between;
5320
5320
  padding: 16px;
5321
- border-bottom: 1px solid var(--xplat-neutral-200);
5322
- background-color: var(--xplat-white);
5321
+ border-bottom: 1px solid var(--semantic-border-primary);
5322
+ background-color: var(--semantic-surface-neutral-primary);
5323
5323
  width: 100%;
5324
5324
  box-sizing: border-box;
5325
5325
  gap: 12px;
@@ -5340,7 +5340,7 @@
5340
5340
  width: 100vw;
5341
5341
  height: 100vh;
5342
5342
  overflow: hidden;
5343
- background-color: var(--xplat-neutral-50);
5343
+ background-color: var(--semantic-surface-neutral-secondary);
5344
5344
  }
5345
5345
  .lib-xplat-layout > .lib-xplat-layout-content-wrapper {
5346
5346
  display: flex;
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../global.d.ts" />
2
2
  export { Accordion } from './components/Accordion/index.cjs';
3
3
  export { Alert } from './components/Alert/index.cjs';
4
+ export { AutoResizeTextArea } from './components/AutoResizeTextArea/index.cjs';
4
5
  export { Avatar } from './components/Avatar/index.cjs';
5
6
  export { Badge } from './components/Badge/index.cjs';
6
7
  export { Box } from './components/Box/index.cjs';
@@ -9,7 +10,6 @@ export { Button } from './components/Button/index.cjs';
9
10
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './components/Calendar/index.cjs';
10
11
  export { CardTab } from './components/CardTab/index.cjs';
11
12
  export { Chart } from './components/Chart/index.cjs';
12
- export { AutoResizeTextArea } from './components/AutoResizeTextArea/index.cjs';
13
13
  export { ChatInput } from './components/ChatInput/index.cjs';
14
14
  export { CheckBox } from './components/CheckBox/index.cjs';
15
15
  export { Chip } from './components/Chip/index.cjs';
@@ -52,5 +52,5 @@ export { SideBar, SideBarContext, useSideBarContext } from './layout/SideBar/ind
52
52
  export { TokenVar, cssVar, semantic } from '@x-plat/tokens-core';
53
53
  export { ActivityIcon, AirplayIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnchorIcon, ApertureIcon, ArchiveIcon, ArrowDownCircleIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftCircleIcon, ArrowLeftIcon, ArrowRightCircleIcon, ArrowRightIcon, ArrowUpCircleIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, AwardIcon, BarChart2Icon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BluetoothIcon, BoldIcon, BookIcon, BookOpenIcon, BookmarkIcon, BoxIcon, BriefcaseIcon, CalendarIcon, CalenderIcon, CallActiveIcon, CallForwardedIcon, DefaultCall as CallIcon, CallIncomingIcon, CallMissedIcon, CallOffIcon, CallOutgoingIcon, CameraIcon, CameraOffIcon, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseEyeIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, CodeIcon, CodepenIcon, CodesandboxIcon, CoffeeIcon, ColorProps, ColorToken, ColumnsIcon, CommandIcon, CompassIcon, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, DatabaseIcon, DefaultCall, DeleteIcon, DiscIcon, DivideCircleIcon, DivideIcon, DivideSquareIcon, DollarSignIcon, DownloadCloudIcon, DownloadIcon, DribbbleIcon, DropletIcon, Edit2Icon, Edit3Icon, EditIcon, ErrorIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FigmaIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, FolderMinusIcon, FolderPlusIcon, FramerIcon, FrownIcon, GierIcon, GiftIcon, GitBranchIcon, GitCommitIcon, GitMergeIcon, GitPullRequestIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HardDriveIcon, HashIcon, HeadphonesIcon, HeartIcon, HelpCircleIcon, HexagonIcon, HomeIcon, ImageIcon, InboxIcon, InfoIcon, InstagramIcon, ItalicIcon, KeyIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link2Icon, LinkIcon, LinkedinIcon, ListIcon, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapIcon, MapPinIcon, Maximize2Icon, MaximizeIcon, MehIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, Minimize2Icon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MousePointerIcon, MoveIcon, MusicIcon, Navigation2Icon, NavigationIcon, OctagonIcon, OpenEyeIcon, PackageIcon, PaperclipIcon, PauseCircleIcon, PauseIcon, PenToolIcon, PercentIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, PowerIcon, PrinterIcon, ProfileIcon, RadioIcon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, RewindIcon, RotateCcwIcon, RotateCwIcon, RssIcon, SaveIcon, ScissorsIcon, SearchIcon, SemanticColorToken, SendIcon, ServerIcon, SettingsIcon, Share2Icon, ShareIcon, ShieldIcon, ShieldOffIcon, ShoppingBagIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, SlackIcon, SlashIcon, SlidersIcon, SmartphoneIcon, SmileIcon, SpeakerIcon, SquareIcon, StarIcon, StopCircleIcon, SuccessIcon, SunIcon, SunriseIcon, SunsetIcon, TableIcon, TabletIcon, TagIcon, TargetIcon, TerminalIcon, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, ToggleLeftIcon, ToggleRightIcon, ToolIcon, Trash2Icon, TrashIcon, TrelloIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TruckIcon, TvIcon, TwitchIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VideoIcon, VideoOffIcon, VoicemailIcon, Volume1Icon, Volume2Icon, VolumeIcon, VolumeXIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XIcon, XOctagonIcon, XSquareIcon, YoutubeIcon, ZapIcon, ZapOffIcon, ZoomInIcon, ZoomOutIcon } from './tokens/index.cjs';
54
54
  import 'react';
55
- import 'react/jsx-runtime';
56
55
  import './attributes-DJIWir_0.cjs';
56
+ import 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../global.d.ts" />
2
2
  export { Accordion } from './components/Accordion/index.js';
3
3
  export { Alert } from './components/Alert/index.js';
4
+ export { AutoResizeTextArea } from './components/AutoResizeTextArea/index.js';
4
5
  export { Avatar } from './components/Avatar/index.js';
5
6
  export { Badge } from './components/Badge/index.js';
6
7
  export { Box } from './components/Box/index.js';
@@ -9,7 +10,6 @@ export { Button } from './components/Button/index.js';
9
10
  export { Calendar, CalendarDay, CalendarEvent, CalendarProps, isInRange, isSameDay, useCalendar } from './components/Calendar/index.js';
10
11
  export { CardTab } from './components/CardTab/index.js';
11
12
  export { Chart } from './components/Chart/index.js';
12
- export { AutoResizeTextArea } from './components/AutoResizeTextArea/index.js';
13
13
  export { ChatInput } from './components/ChatInput/index.js';
14
14
  export { CheckBox } from './components/CheckBox/index.js';
15
15
  export { Chip } from './components/Chip/index.js';
@@ -52,5 +52,5 @@ export { SideBar, SideBarContext, useSideBarContext } from './layout/SideBar/ind
52
52
  export { TokenVar, cssVar, semantic } from '@x-plat/tokens-core';
53
53
  export { ActivityIcon, AirplayIcon, AlertCircleIcon, AlertOctagonIcon, AlertTriangleIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AnchorIcon, ApertureIcon, ArchiveIcon, ArrowDownCircleIcon, ArrowDownIcon, ArrowDownLeftIcon, ArrowDownRightIcon, ArrowLeftCircleIcon, ArrowLeftIcon, ArrowRightCircleIcon, ArrowRightIcon, ArrowUpCircleIcon, ArrowUpIcon, ArrowUpLeftIcon, ArrowUpRightIcon, AtSignIcon, AwardIcon, BarChart2Icon, BarChartIcon, BatteryChargingIcon, BatteryIcon, BellIcon, BellOffIcon, BluetoothIcon, BoldIcon, BookIcon, BookOpenIcon, BookmarkIcon, BoxIcon, BriefcaseIcon, CalendarIcon, CalenderIcon, CallActiveIcon, CallForwardedIcon, DefaultCall as CallIcon, CallIncomingIcon, CallMissedIcon, CallOffIcon, CallOutgoingIcon, CameraIcon, CameraOffIcon, CastIcon, CheckCircleIcon, CheckIcon, CheckSquareIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsDownIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpIcon, ChromeIcon, CircleIcon, ClipboardIcon, ClockIcon, CloseEyeIcon, CloudDrizzleIcon, CloudIcon, CloudLightningIcon, CloudOffIcon, CloudRainIcon, CloudSnowIcon, CodeIcon, CodepenIcon, CodesandboxIcon, CoffeeIcon, ColorProps, ColorToken, ColumnsIcon, CommandIcon, CompassIcon, CopyIcon, CornerDownLeftIcon, CornerDownRightIcon, CornerLeftDownIcon, CornerLeftUpIcon, CornerRightDownIcon, CornerRightUpIcon, CornerUpLeftIcon, CornerUpRightIcon, CpuIcon, CreditCardIcon, CropIcon, CrosshairIcon, DatabaseIcon, DefaultCall, DeleteIcon, DiscIcon, DivideCircleIcon, DivideIcon, DivideSquareIcon, DollarSignIcon, DownloadCloudIcon, DownloadIcon, DribbbleIcon, DropletIcon, Edit2Icon, Edit3Icon, EditIcon, ErrorIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FacebookIcon, FastForwardIcon, FeatherIcon, FigmaIcon, FileIcon, FileMinusIcon, FilePlusIcon, FileTextIcon, FilmIcon, FilterIcon, FlagIcon, FolderIcon, FolderMinusIcon, FolderPlusIcon, FramerIcon, FrownIcon, GierIcon, GiftIcon, GitBranchIcon, GitCommitIcon, GitMergeIcon, GitPullRequestIcon, GithubIcon, GitlabIcon, GlobeIcon, GridIcon, HardDriveIcon, HashIcon, HeadphonesIcon, HeartIcon, HelpCircleIcon, HexagonIcon, HomeIcon, ImageIcon, InboxIcon, InfoIcon, InstagramIcon, ItalicIcon, KeyIcon, LayersIcon, LayoutIcon, LifeBuoyIcon, Link2Icon, LinkIcon, LinkedinIcon, ListIcon, LoaderIcon, LockIcon, LogInIcon, LogOutIcon, MailIcon, MapIcon, MapPinIcon, Maximize2Icon, MaximizeIcon, MehIcon, MenuIcon, MessageCircleIcon, MessageSquareIcon, MicIcon, MicOffIcon, Minimize2Icon, MinimizeIcon, MinusCircleIcon, MinusIcon, MinusSquareIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, MousePointerIcon, MoveIcon, MusicIcon, Navigation2Icon, NavigationIcon, OctagonIcon, OpenEyeIcon, PackageIcon, PaperclipIcon, PauseCircleIcon, PauseIcon, PenToolIcon, PercentIcon, PieChartIcon, PlayCircleIcon, PlayIcon, PlusCircleIcon, PlusIcon, PlusSquareIcon, PocketIcon, PowerIcon, PrinterIcon, ProfileIcon, RadioIcon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, RewindIcon, RotateCcwIcon, RotateCwIcon, RssIcon, SaveIcon, ScissorsIcon, SearchIcon, SemanticColorToken, SendIcon, ServerIcon, SettingsIcon, Share2Icon, ShareIcon, ShieldIcon, ShieldOffIcon, ShoppingBagIcon, ShoppingCartIcon, ShuffleIcon, SidebarIcon, SkipBackIcon, SkipForwardIcon, SlackIcon, SlashIcon, SlidersIcon, SmartphoneIcon, SmileIcon, SpeakerIcon, SquareIcon, StarIcon, StopCircleIcon, SuccessIcon, SunIcon, SunriseIcon, SunsetIcon, TableIcon, TabletIcon, TagIcon, TargetIcon, TerminalIcon, ThermometerIcon, ThumbsDownIcon, ThumbsUpIcon, ToggleLeftIcon, ToggleRightIcon, ToolIcon, Trash2Icon, TrashIcon, TrelloIcon, TrendingDownIcon, TrendingUpIcon, TriangleIcon, TruckIcon, TvIcon, TwitchIcon, TwitterIcon, TypeIcon, UmbrellaIcon, UnderlineIcon, UnlockIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, UserMinusIcon, UserPlusIcon, UserXIcon, UsersIcon, VideoIcon, VideoOffIcon, VoicemailIcon, Volume1Icon, Volume2Icon, VolumeIcon, VolumeXIcon, WatchIcon, WifiIcon, WifiOffIcon, WindIcon, XCircleIcon, XIcon, XOctagonIcon, XSquareIcon, YoutubeIcon, ZapIcon, ZapOffIcon, ZoomInIcon, ZoomOutIcon } from './tokens/index.js';
54
54
  import 'react';
55
- import 'react/jsx-runtime';
56
55
  import './attributes-DJIWir_0.js';
56
+ import 'react/jsx-runtime';