@x-plat/design-system 0.2.3 → 0.2.4
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/{colors-BNxEsOY3.d.cts → colors-cxE7RsuF.d.cts} +9 -1
- package/dist/{colors-BNxEsOY3.d.ts → colors-cxE7RsuF.d.ts} +9 -1
- package/dist/components/Avatar/index.cjs +2 -1
- package/dist/components/Avatar/index.d.cts +1 -1
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Avatar/index.js +2 -1
- package/dist/components/Badge/index.cjs +2 -1
- package/dist/components/Badge/index.d.cts +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Badge/index.js +2 -1
- package/dist/components/Button/index.cjs +2 -1
- package/dist/components/Button/index.d.cts +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.js +2 -1
- package/dist/components/CheckBox/index.cjs +2 -1
- package/dist/components/CheckBox/index.d.cts +1 -1
- package/dist/components/CheckBox/index.d.ts +1 -1
- package/dist/components/CheckBox/index.js +2 -1
- package/dist/components/Chip/index.cjs +2 -1
- package/dist/components/Chip/index.d.cts +1 -1
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/Chip/index.js +2 -1
- package/dist/components/DatePicker/index.cjs +2 -1
- package/dist/components/DatePicker/index.d.cts +1 -1
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DatePicker/index.js +2 -1
- package/dist/components/Pagination/index.cjs +2 -1
- package/dist/components/Pagination/index.d.cts +1 -1
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/Pagination/index.js +2 -1
- package/dist/components/Progress/index.cjs +2 -1
- package/dist/components/Progress/index.d.cts +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Progress/index.js +2 -1
- package/dist/components/Radio/index.cjs +2 -1
- package/dist/components/Radio/index.d.cts +1 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Radio/index.js +2 -1
- package/dist/components/Spinner/index.cjs +2 -1
- package/dist/components/Spinner/index.d.cts +1 -1
- package/dist/components/Spinner/index.d.ts +1 -1
- package/dist/components/Spinner/index.js +2 -1
- package/dist/components/Steps/index.cjs +2 -1
- package/dist/components/Steps/index.d.cts +1 -1
- package/dist/components/Steps/index.d.ts +1 -1
- package/dist/components/Steps/index.js +2 -1
- package/dist/components/Switch/index.cjs +2 -1
- package/dist/components/Switch/index.d.cts +1 -1
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Switch/index.js +2 -1
- package/dist/components/Table/index.cjs +2 -1
- package/dist/components/Table/index.d.cts +1 -1
- package/dist/components/Table/index.d.ts +1 -1
- package/dist/components/Table/index.js +2 -1
- package/dist/components/Tag/index.cjs +2 -1
- package/dist/components/Tag/index.d.cts +1 -1
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.js +2 -1
- package/dist/components/Tooltip/index.cjs +2 -1
- package/dist/components/Tooltip/index.d.cts +1 -1
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/index.js +2 -1
- package/dist/components/index.cjs +28 -14
- package/dist/components/index.d.cts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +28 -14
- package/dist/index.cjs +28 -14
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +28 -14
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5994,9 +5994,10 @@ var Avatar = (props) => {
|
|
|
5994
5994
|
colorNamespace = "xplat",
|
|
5995
5995
|
color: color2 = "blue",
|
|
5996
5996
|
colorDepth,
|
|
5997
|
+
colorToken,
|
|
5997
5998
|
className
|
|
5998
5999
|
} = props;
|
|
5999
|
-
const colorClass = getColorClass(
|
|
6000
|
+
const colorClass = colorToken ?? getColorClass(
|
|
6000
6001
|
colorNamespace,
|
|
6001
6002
|
color2,
|
|
6002
6003
|
colorDepth ?? 500
|
|
@@ -6019,9 +6020,10 @@ var Badge = (props) => {
|
|
|
6019
6020
|
colorNamespace = "xplat",
|
|
6020
6021
|
color: color2 = "red",
|
|
6021
6022
|
colorDepth,
|
|
6023
|
+
colorToken,
|
|
6022
6024
|
className
|
|
6023
6025
|
} = props;
|
|
6024
|
-
const colorClass = getColorClass(
|
|
6026
|
+
const colorClass = colorToken ?? getColorClass(
|
|
6025
6027
|
colorNamespace,
|
|
6026
6028
|
color2,
|
|
6027
6029
|
colorDepth ?? 500
|
|
@@ -6061,11 +6063,12 @@ var Button = (props) => {
|
|
|
6061
6063
|
colorNamespace = "xplat",
|
|
6062
6064
|
color: color2 = "black",
|
|
6063
6065
|
colorDepth,
|
|
6066
|
+
colorToken,
|
|
6064
6067
|
disabled,
|
|
6065
6068
|
className,
|
|
6066
6069
|
...rest
|
|
6067
6070
|
} = props;
|
|
6068
|
-
const colorClass = getColorClass(
|
|
6071
|
+
const colorClass = colorToken ?? getColorClass(
|
|
6069
6072
|
colorNamespace,
|
|
6070
6073
|
color2,
|
|
6071
6074
|
colorDepth ?? 500
|
|
@@ -20703,6 +20706,7 @@ var CheckBox = (props) => {
|
|
|
20703
20706
|
colorNamespace = "xplat",
|
|
20704
20707
|
color: color2 = "blue",
|
|
20705
20708
|
colorDepth,
|
|
20709
|
+
colorToken,
|
|
20706
20710
|
checked,
|
|
20707
20711
|
label,
|
|
20708
20712
|
onChange,
|
|
@@ -20714,7 +20718,7 @@ var CheckBox = (props) => {
|
|
|
20714
20718
|
const handleChange = (e) => {
|
|
20715
20719
|
if (onChange) onChange(e);
|
|
20716
20720
|
};
|
|
20717
|
-
const mainColor = getColorClass(
|
|
20721
|
+
const mainColor = colorToken ?? getColorClass(
|
|
20718
20722
|
colorNamespace,
|
|
20719
20723
|
color2,
|
|
20720
20724
|
colorDepth ?? 500
|
|
@@ -20749,11 +20753,12 @@ var Chip = (props) => {
|
|
|
20749
20753
|
colorNamespace = "xplat",
|
|
20750
20754
|
color: color2 = "black",
|
|
20751
20755
|
colorDepth,
|
|
20756
|
+
colorToken,
|
|
20752
20757
|
type = "primary",
|
|
20753
20758
|
size: size4 = "md",
|
|
20754
20759
|
className
|
|
20755
20760
|
} = props;
|
|
20756
|
-
const colorClass = getColorClass(
|
|
20761
|
+
const colorClass = colorToken ?? getColorClass(
|
|
20757
20762
|
colorNamespace,
|
|
20758
20763
|
color2,
|
|
20759
20764
|
colorDepth ?? 500
|
|
@@ -32627,9 +32632,10 @@ var Pagination = (props) => {
|
|
|
32627
32632
|
colorNamespace = "xplat",
|
|
32628
32633
|
color: color2 = "blue",
|
|
32629
32634
|
colorDepth,
|
|
32635
|
+
colorToken,
|
|
32630
32636
|
className
|
|
32631
32637
|
} = props;
|
|
32632
|
-
const colorClass = getColorClass(
|
|
32638
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32633
32639
|
colorNamespace,
|
|
32634
32640
|
color2,
|
|
32635
32641
|
colorDepth ?? 500
|
|
@@ -32746,9 +32752,10 @@ var Progress = (props) => {
|
|
|
32746
32752
|
colorNamespace = "xplat",
|
|
32747
32753
|
color: color2 = "blue",
|
|
32748
32754
|
colorDepth,
|
|
32755
|
+
colorToken,
|
|
32749
32756
|
className
|
|
32750
32757
|
} = props;
|
|
32751
|
-
const colorClass = getColorClass(
|
|
32758
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32752
32759
|
colorNamespace,
|
|
32753
32760
|
color2,
|
|
32754
32761
|
colorDepth ?? 500
|
|
@@ -32801,6 +32808,7 @@ var Radio = (props) => {
|
|
|
32801
32808
|
colorNamespace = "xplat",
|
|
32802
32809
|
color: color2 = "blue",
|
|
32803
32810
|
colorDepth,
|
|
32811
|
+
colorToken,
|
|
32804
32812
|
size: sizeProp,
|
|
32805
32813
|
...rest
|
|
32806
32814
|
} = props;
|
|
@@ -32813,7 +32821,7 @@ var Radio = (props) => {
|
|
|
32813
32821
|
value,
|
|
32814
32822
|
onChange: rest.onChange
|
|
32815
32823
|
};
|
|
32816
|
-
const colorClass = getColorClass(
|
|
32824
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32817
32825
|
colorNamespace,
|
|
32818
32826
|
color2,
|
|
32819
32827
|
colorDepth ?? 500
|
|
@@ -32885,9 +32893,10 @@ var Spinner = (props) => {
|
|
|
32885
32893
|
colorNamespace = "xplat",
|
|
32886
32894
|
color: color2 = "blue",
|
|
32887
32895
|
colorDepth,
|
|
32896
|
+
colorToken,
|
|
32888
32897
|
className
|
|
32889
32898
|
} = props;
|
|
32890
|
-
const colorClass = getColorClass(
|
|
32899
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32891
32900
|
colorNamespace,
|
|
32892
32901
|
color2,
|
|
32893
32902
|
colorDepth ?? 500
|
|
@@ -32936,9 +32945,10 @@ var Steps = (props) => {
|
|
|
32936
32945
|
colorNamespace = "xplat",
|
|
32937
32946
|
color: color2 = "blue",
|
|
32938
32947
|
colorDepth,
|
|
32948
|
+
colorToken,
|
|
32939
32949
|
className
|
|
32940
32950
|
} = props;
|
|
32941
|
-
const colorClass = getColorClass(
|
|
32951
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32942
32952
|
colorNamespace,
|
|
32943
32953
|
color2,
|
|
32944
32954
|
colorDepth ?? 500
|
|
@@ -32973,6 +32983,7 @@ var Switch = (props) => {
|
|
|
32973
32983
|
colorNamespace = "xplat",
|
|
32974
32984
|
color: color2 = "blue",
|
|
32975
32985
|
colorDepth,
|
|
32986
|
+
colorToken,
|
|
32976
32987
|
className
|
|
32977
32988
|
} = props;
|
|
32978
32989
|
const [isAnimating, setIsAnimating] = import_react29.default.useState(false);
|
|
@@ -32992,7 +33003,7 @@ var Switch = (props) => {
|
|
|
32992
33003
|
timeoutRef.current = null;
|
|
32993
33004
|
}, KNOB_TRANSITION_MS);
|
|
32994
33005
|
};
|
|
32995
|
-
const colorClass = getColorClass(
|
|
33006
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32996
33007
|
colorNamespace,
|
|
32997
33008
|
color2,
|
|
32998
33009
|
colorDepth ?? 500
|
|
@@ -33241,6 +33252,7 @@ var TableRow = (props) => {
|
|
|
33241
33252
|
colorNamespace = "xplat",
|
|
33242
33253
|
color: color2 = "black",
|
|
33243
33254
|
colorDepth,
|
|
33255
|
+
colorToken,
|
|
33244
33256
|
type = "secondary",
|
|
33245
33257
|
isHover,
|
|
33246
33258
|
onClick
|
|
@@ -33253,7 +33265,7 @@ var TableRow = (props) => {
|
|
|
33253
33265
|
return [...prev, ref];
|
|
33254
33266
|
});
|
|
33255
33267
|
};
|
|
33256
|
-
const colorClass = getColorClass(
|
|
33268
|
+
const colorClass = colorToken ?? getColorClass(
|
|
33257
33269
|
colorNamespace,
|
|
33258
33270
|
color2,
|
|
33259
33271
|
colorDepth ?? 500
|
|
@@ -33287,9 +33299,10 @@ var Tag = (props) => {
|
|
|
33287
33299
|
colorNamespace = "xplat",
|
|
33288
33300
|
color: color2 = "neutral",
|
|
33289
33301
|
colorDepth,
|
|
33302
|
+
colorToken,
|
|
33290
33303
|
className
|
|
33291
33304
|
} = props;
|
|
33292
|
-
const colorClass = getColorClass(
|
|
33305
|
+
const colorClass = colorToken ?? getColorClass(
|
|
33293
33306
|
colorNamespace,
|
|
33294
33307
|
color2,
|
|
33295
33308
|
colorDepth ?? 500
|
|
@@ -33459,11 +33472,12 @@ var Tooltip2 = (props) => {
|
|
|
33459
33472
|
colorNamespace = "xplat",
|
|
33460
33473
|
color: color2 = "blue",
|
|
33461
33474
|
colorDepth,
|
|
33475
|
+
colorToken,
|
|
33462
33476
|
description,
|
|
33463
33477
|
children
|
|
33464
33478
|
} = props;
|
|
33465
33479
|
const iconRef = import_react39.default.useRef(null);
|
|
33466
|
-
const colorClass = getColorClass(
|
|
33480
|
+
const colorClass = colorToken ?? getColorClass(
|
|
33467
33481
|
colorNamespace,
|
|
33468
33482
|
color2,
|
|
33469
33483
|
colorDepth ?? 500
|
package/dist/index.d.cts
CHANGED
|
@@ -42,7 +42,7 @@ export { B as BREAKPOINT_KEYS_ORDERED, a as BreakpointKey, b as GridColumnConfig
|
|
|
42
42
|
export { Header } from './layout/Header/index.cjs';
|
|
43
43
|
export { Layout } from './layout/Layout/index.cjs';
|
|
44
44
|
export { SideBar, SideBarContext, useSideBarContext } from './layout/SideBar/index.cjs';
|
|
45
|
-
export { e as ColorDepth, d as ColorName, b as ColorNamespace,
|
|
45
|
+
export { e as ColorDepth, d as ColorName, b as ColorNamespace, g as ColorProps, f as ColorToken, C as CustomColors, a as CustomNamespaces, c as colors } from './colors-cxE7RsuF.cjs';
|
|
46
46
|
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, 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, 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';
|
|
47
47
|
import 'react';
|
|
48
48
|
import 'react/jsx-runtime';
|
package/dist/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export { B as BREAKPOINT_KEYS_ORDERED, a as BreakpointKey, b as GridColumnConfig
|
|
|
42
42
|
export { Header } from './layout/Header/index.js';
|
|
43
43
|
export { Layout } from './layout/Layout/index.js';
|
|
44
44
|
export { SideBar, SideBarContext, useSideBarContext } from './layout/SideBar/index.js';
|
|
45
|
-
export { e as ColorDepth, d as ColorName, b as ColorNamespace,
|
|
45
|
+
export { e as ColorDepth, d as ColorName, b as ColorNamespace, g as ColorProps, f as ColorToken, C as CustomColors, a as CustomNamespaces, c as colors } from './colors-cxE7RsuF.js';
|
|
46
46
|
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, 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, 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';
|
|
47
47
|
import 'react';
|
|
48
48
|
import 'react/jsx-runtime';
|
package/dist/index.js
CHANGED
|
@@ -5612,9 +5612,10 @@ var Avatar = (props) => {
|
|
|
5612
5612
|
colorNamespace = "xplat",
|
|
5613
5613
|
color: color2 = "blue",
|
|
5614
5614
|
colorDepth,
|
|
5615
|
+
colorToken,
|
|
5615
5616
|
className
|
|
5616
5617
|
} = props;
|
|
5617
|
-
const colorClass = getColorClass(
|
|
5618
|
+
const colorClass = colorToken ?? getColorClass(
|
|
5618
5619
|
colorNamespace,
|
|
5619
5620
|
color2,
|
|
5620
5621
|
colorDepth ?? 500
|
|
@@ -5637,9 +5638,10 @@ var Badge = (props) => {
|
|
|
5637
5638
|
colorNamespace = "xplat",
|
|
5638
5639
|
color: color2 = "red",
|
|
5639
5640
|
colorDepth,
|
|
5641
|
+
colorToken,
|
|
5640
5642
|
className
|
|
5641
5643
|
} = props;
|
|
5642
|
-
const colorClass = getColorClass(
|
|
5644
|
+
const colorClass = colorToken ?? getColorClass(
|
|
5643
5645
|
colorNamespace,
|
|
5644
5646
|
color2,
|
|
5645
5647
|
colorDepth ?? 500
|
|
@@ -5679,11 +5681,12 @@ var Button = (props) => {
|
|
|
5679
5681
|
colorNamespace = "xplat",
|
|
5680
5682
|
color: color2 = "black",
|
|
5681
5683
|
colorDepth,
|
|
5684
|
+
colorToken,
|
|
5682
5685
|
disabled,
|
|
5683
5686
|
className,
|
|
5684
5687
|
...rest
|
|
5685
5688
|
} = props;
|
|
5686
|
-
const colorClass = getColorClass(
|
|
5689
|
+
const colorClass = colorToken ?? getColorClass(
|
|
5687
5690
|
colorNamespace,
|
|
5688
5691
|
color2,
|
|
5689
5692
|
colorDepth ?? 500
|
|
@@ -20321,6 +20324,7 @@ var CheckBox = (props) => {
|
|
|
20321
20324
|
colorNamespace = "xplat",
|
|
20322
20325
|
color: color2 = "blue",
|
|
20323
20326
|
colorDepth,
|
|
20327
|
+
colorToken,
|
|
20324
20328
|
checked,
|
|
20325
20329
|
label,
|
|
20326
20330
|
onChange,
|
|
@@ -20332,7 +20336,7 @@ var CheckBox = (props) => {
|
|
|
20332
20336
|
const handleChange = (e) => {
|
|
20333
20337
|
if (onChange) onChange(e);
|
|
20334
20338
|
};
|
|
20335
|
-
const mainColor = getColorClass(
|
|
20339
|
+
const mainColor = colorToken ?? getColorClass(
|
|
20336
20340
|
colorNamespace,
|
|
20337
20341
|
color2,
|
|
20338
20342
|
colorDepth ?? 500
|
|
@@ -20367,11 +20371,12 @@ var Chip = (props) => {
|
|
|
20367
20371
|
colorNamespace = "xplat",
|
|
20368
20372
|
color: color2 = "black",
|
|
20369
20373
|
colorDepth,
|
|
20374
|
+
colorToken,
|
|
20370
20375
|
type = "primary",
|
|
20371
20376
|
size: size4 = "md",
|
|
20372
20377
|
className
|
|
20373
20378
|
} = props;
|
|
20374
|
-
const colorClass = getColorClass(
|
|
20379
|
+
const colorClass = colorToken ?? getColorClass(
|
|
20375
20380
|
colorNamespace,
|
|
20376
20381
|
color2,
|
|
20377
20382
|
colorDepth ?? 500
|
|
@@ -32245,9 +32250,10 @@ var Pagination = (props) => {
|
|
|
32245
32250
|
colorNamespace = "xplat",
|
|
32246
32251
|
color: color2 = "blue",
|
|
32247
32252
|
colorDepth,
|
|
32253
|
+
colorToken,
|
|
32248
32254
|
className
|
|
32249
32255
|
} = props;
|
|
32250
|
-
const colorClass = getColorClass(
|
|
32256
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32251
32257
|
colorNamespace,
|
|
32252
32258
|
color2,
|
|
32253
32259
|
colorDepth ?? 500
|
|
@@ -32364,9 +32370,10 @@ var Progress = (props) => {
|
|
|
32364
32370
|
colorNamespace = "xplat",
|
|
32365
32371
|
color: color2 = "blue",
|
|
32366
32372
|
colorDepth,
|
|
32373
|
+
colorToken,
|
|
32367
32374
|
className
|
|
32368
32375
|
} = props;
|
|
32369
|
-
const colorClass = getColorClass(
|
|
32376
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32370
32377
|
colorNamespace,
|
|
32371
32378
|
color2,
|
|
32372
32379
|
colorDepth ?? 500
|
|
@@ -32419,6 +32426,7 @@ var Radio = (props) => {
|
|
|
32419
32426
|
colorNamespace = "xplat",
|
|
32420
32427
|
color: color2 = "blue",
|
|
32421
32428
|
colorDepth,
|
|
32429
|
+
colorToken,
|
|
32422
32430
|
size: sizeProp,
|
|
32423
32431
|
...rest
|
|
32424
32432
|
} = props;
|
|
@@ -32431,7 +32439,7 @@ var Radio = (props) => {
|
|
|
32431
32439
|
value,
|
|
32432
32440
|
onChange: rest.onChange
|
|
32433
32441
|
};
|
|
32434
|
-
const colorClass = getColorClass(
|
|
32442
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32435
32443
|
colorNamespace,
|
|
32436
32444
|
color2,
|
|
32437
32445
|
colorDepth ?? 500
|
|
@@ -32503,9 +32511,10 @@ var Spinner = (props) => {
|
|
|
32503
32511
|
colorNamespace = "xplat",
|
|
32504
32512
|
color: color2 = "blue",
|
|
32505
32513
|
colorDepth,
|
|
32514
|
+
colorToken,
|
|
32506
32515
|
className
|
|
32507
32516
|
} = props;
|
|
32508
|
-
const colorClass = getColorClass(
|
|
32517
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32509
32518
|
colorNamespace,
|
|
32510
32519
|
color2,
|
|
32511
32520
|
colorDepth ?? 500
|
|
@@ -32554,9 +32563,10 @@ var Steps = (props) => {
|
|
|
32554
32563
|
colorNamespace = "xplat",
|
|
32555
32564
|
color: color2 = "blue",
|
|
32556
32565
|
colorDepth,
|
|
32566
|
+
colorToken,
|
|
32557
32567
|
className
|
|
32558
32568
|
} = props;
|
|
32559
|
-
const colorClass = getColorClass(
|
|
32569
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32560
32570
|
colorNamespace,
|
|
32561
32571
|
color2,
|
|
32562
32572
|
colorDepth ?? 500
|
|
@@ -32591,6 +32601,7 @@ var Switch = (props) => {
|
|
|
32591
32601
|
colorNamespace = "xplat",
|
|
32592
32602
|
color: color2 = "blue",
|
|
32593
32603
|
colorDepth,
|
|
32604
|
+
colorToken,
|
|
32594
32605
|
className
|
|
32595
32606
|
} = props;
|
|
32596
32607
|
const [isAnimating, setIsAnimating] = React27.useState(false);
|
|
@@ -32610,7 +32621,7 @@ var Switch = (props) => {
|
|
|
32610
32621
|
timeoutRef.current = null;
|
|
32611
32622
|
}, KNOB_TRANSITION_MS);
|
|
32612
32623
|
};
|
|
32613
|
-
const colorClass = getColorClass(
|
|
32624
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32614
32625
|
colorNamespace,
|
|
32615
32626
|
color2,
|
|
32616
32627
|
colorDepth ?? 500
|
|
@@ -32859,6 +32870,7 @@ var TableRow = (props) => {
|
|
|
32859
32870
|
colorNamespace = "xplat",
|
|
32860
32871
|
color: color2 = "black",
|
|
32861
32872
|
colorDepth,
|
|
32873
|
+
colorToken,
|
|
32862
32874
|
type = "secondary",
|
|
32863
32875
|
isHover,
|
|
32864
32876
|
onClick
|
|
@@ -32871,7 +32883,7 @@ var TableRow = (props) => {
|
|
|
32871
32883
|
return [...prev, ref];
|
|
32872
32884
|
});
|
|
32873
32885
|
};
|
|
32874
|
-
const colorClass = getColorClass(
|
|
32886
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32875
32887
|
colorNamespace,
|
|
32876
32888
|
color2,
|
|
32877
32889
|
colorDepth ?? 500
|
|
@@ -32905,9 +32917,10 @@ var Tag = (props) => {
|
|
|
32905
32917
|
colorNamespace = "xplat",
|
|
32906
32918
|
color: color2 = "neutral",
|
|
32907
32919
|
colorDepth,
|
|
32920
|
+
colorToken,
|
|
32908
32921
|
className
|
|
32909
32922
|
} = props;
|
|
32910
|
-
const colorClass = getColorClass(
|
|
32923
|
+
const colorClass = colorToken ?? getColorClass(
|
|
32911
32924
|
colorNamespace,
|
|
32912
32925
|
color2,
|
|
32913
32926
|
colorDepth ?? 500
|
|
@@ -33077,11 +33090,12 @@ var Tooltip2 = (props) => {
|
|
|
33077
33090
|
colorNamespace = "xplat",
|
|
33078
33091
|
color: color2 = "blue",
|
|
33079
33092
|
colorDepth,
|
|
33093
|
+
colorToken,
|
|
33080
33094
|
description,
|
|
33081
33095
|
children
|
|
33082
33096
|
} = props;
|
|
33083
33097
|
const iconRef = React37.useRef(null);
|
|
33084
|
-
const colorClass = getColorClass(
|
|
33098
|
+
const colorClass = colorToken ?? getColorClass(
|
|
33085
33099
|
colorNamespace,
|
|
33086
33100
|
color2,
|
|
33087
33101
|
colorDepth ?? 500
|
package/dist/tokens/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { B as BREAKPOINT_KEYS_ORDERED, a as BreakpointKey, b as GridColumnConfig, G as GridSpanFor, c as breakpoints, g as gridColumns } from '../breakpoints-DsXkJgdl.cjs';
|
|
2
|
-
export { e as ColorDepth, d as ColorName, b as ColorNamespace,
|
|
2
|
+
export { e as ColorDepth, d as ColorName, b as ColorNamespace, g as ColorProps, f as ColorToken, C as CustomColors, a as CustomNamespaces, c as colors } from '../colors-cxE7RsuF.cjs';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
declare const CopyIcon: React.FC;
|
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { B as BREAKPOINT_KEYS_ORDERED, a as BreakpointKey, b as GridColumnConfig, G as GridSpanFor, c as breakpoints, g as gridColumns } from '../breakpoints-DsXkJgdl.js';
|
|
2
|
-
export { e as ColorDepth, d as ColorName, b as ColorNamespace,
|
|
2
|
+
export { e as ColorDepth, d as ColorName, b as ColorNamespace, g as ColorProps, f as ColorToken, C as CustomColors, a as CustomNamespaces, c as colors } from '../colors-cxE7RsuF.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
5
|
declare const CopyIcon: React.FC;
|