@react-fabric/core 1.0.0-beta.40 → 1.0.0-beta.41

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.
@@ -5,10 +5,11 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
5
5
  var utilities = require('@react-fabric/utilities');
6
6
  var classNames = require('classnames');
7
7
  var react = require('react');
8
- var Icon = require('../icon/Icon.js');
9
8
  var jsxRuntime = require('react/jsx-runtime');
9
+ var getColor = require('../../utils/getColor.js');
10
+ var Icon = require('../icon/Icon.js');
10
11
 
11
- var _excluded = ["children", "title", "message", "icon", "className", "size"];
12
+ var _excluded = ["children", "title", "message", "icon", "className", "size", "iconColor"];
12
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
15
  var SizeMap = {
@@ -55,6 +56,7 @@ var EmptyContent = function EmptyContent(_ref) {
55
56
  icon = _ref.icon,
56
57
  className = _ref.className,
57
58
  size = _ref.size,
59
+ iconColor = _ref.iconColor,
58
60
  test = _objectWithoutProperties(_ref, _excluded);
59
61
  return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread(_objectSpread({
60
62
  className: classNames("p-6 flex flex-col items-center area-content", className),
@@ -65,7 +67,8 @@ var EmptyContent = function EmptyContent(_ref) {
65
67
  children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
66
68
  className: "leading-none",
67
69
  style: {
68
- fontSize: "4em"
70
+ fontSize: "4em",
71
+ color: getColor.getColor(iconColor !== null && iconColor !== void 0 ? iconColor : "tint-700")
69
72
  },
70
73
  children: [utilities.isString(icon) && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
71
74
  icon: icon
@@ -84,66 +84,57 @@ var Flyout = function Flyout(_ref) {
84
84
  }, 100);
85
85
  }
86
86
  }, [closeOnClick, handleClose]);
87
- var Wrapper = react$1.useCallback(function (_ref2) {
88
- var children = _ref2.children;
89
- if (hideMask) return /*#__PURE__*/jsxRuntime.jsx(react$1.Fragment, {
90
- children: children
91
- });
92
- return /*#__PURE__*/jsxRuntime.jsx(react.FloatingOverlay, {
87
+ return /*#__PURE__*/jsxRuntime.jsxs(react.FloatingPortal, {
88
+ children: [!hideMask && /*#__PURE__*/jsxRuntime.jsx(react.FloatingOverlay, {
93
89
  lockScroll: true,
94
90
  style: {
95
- zIndex: "var(--z-overlay-mask)"
91
+ zIndex: "var(--z-overlay-mask)",
92
+ overflow: "hidden"
96
93
  },
97
- className: "bg-tint-100/10 backdrop-blur-sm transition-all",
98
- children: children
99
- });
100
- }, [hideMask, handleClose]);
101
- return /*#__PURE__*/jsxRuntime.jsx(react.FloatingPortal, {
102
- children: /*#__PURE__*/jsxRuntime.jsx(Wrapper, {
103
- children: /*#__PURE__*/jsxRuntime.jsx(react.FloatingFocusManager, {
104
- context: context,
105
- children: /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread(_objectSpread(_objectSpread({
106
- "data-align": align,
107
- className: classNames("fabric-flyout", "fixed inset-y-0 overflow-hidden flex flex-col flex-nowrap pointer-events-auto shadow-xl", align === "start" ? "start-0" : "end-0", size === "sm" && "w-[20rem]", size === "md" && "w-[40rem]", size === "lg" && "w-[60vw]", size === "xl" && "w-[80vw]"),
108
- style: {
109
- width: width,
110
- minWidth: minWidth
111
- },
112
- onMouseUpCapture: tryClosing,
113
- ref: refs.setFloating
114
- }, getFloatingProps()), aria), aria), {}, {
115
- children: /*#__PURE__*/jsxRuntime.jsxs(HotKeyWrapper.HotKeyWrapper, {
116
- children: [/*#__PURE__*/jsxRuntime.jsxs(HeadFoot.Header, {
117
- flex: true,
118
- align: "center",
119
- className: classNames("fabric-flyoutHeader", headerClassName),
120
- children: [utilities.isString(icon) && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
121
- icon: icon,
122
- bg: iconBg,
123
- color: iconColor,
124
- className: classNames(iconClassName, "p-1"),
125
- rtlFlip: rtlFlip
126
- }), /*#__PURE__*/react$1.isValidElement(icon) && icon, /*#__PURE__*/jsxRuntime.jsx("label", {
127
- className: "flex-1 truncate py-2 px-1",
128
- children: title
129
- }), actions, /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
130
- "data-ref": "panelClose",
131
- className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-stretch"),
132
- icon: icons.CoreIcons.close,
133
- onClick: function onClick() {
134
- return handleClose(false);
135
- }
136
- })]
137
- }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.Loading, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
138
- role: "dialog",
139
- className: classNames("fabric-flyoutBody", "flex-1 grid overflow-hidden"),
140
- tabIndex: 0,
141
- children: children
94
+ className: "bg-tint-100/10 backdrop-blur-sm transition-all"
95
+ }), /*#__PURE__*/jsxRuntime.jsx(react.FloatingFocusManager, {
96
+ context: context,
97
+ children: /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread(_objectSpread(_objectSpread({
98
+ "data-align": align,
99
+ className: classNames("fabric-flyout", "fixed inset-y-0 overflow-hidden flex flex-col flex-nowrap pointer-events-auto shadow-xl", align === "start" ? "start-0" : "end-0", size === "sm" && "w-[20rem]", size === "md" && "w-[40rem]", size === "lg" && "w-[60vw]", size === "xl" && "w-[80vw]"),
100
+ style: {
101
+ width: width,
102
+ minWidth: minWidth
103
+ },
104
+ onMouseUpCapture: tryClosing,
105
+ ref: refs.setFloating
106
+ }, getFloatingProps()), aria), aria), {}, {
107
+ children: /*#__PURE__*/jsxRuntime.jsxs(HotKeyWrapper.HotKeyWrapper, {
108
+ children: [/*#__PURE__*/jsxRuntime.jsxs(HeadFoot.Header, {
109
+ flex: true,
110
+ align: "center",
111
+ className: classNames("fabric-flyoutHeader", headerClassName),
112
+ children: [utilities.isString(icon) && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
113
+ icon: icon,
114
+ bg: iconBg,
115
+ color: iconColor,
116
+ className: classNames(iconClassName, "p-1"),
117
+ rtlFlip: rtlFlip
118
+ }), /*#__PURE__*/react$1.isValidElement(icon) && icon, /*#__PURE__*/jsxRuntime.jsx("label", {
119
+ className: "flex-1 truncate py-2 px-1",
120
+ children: title
121
+ }), actions, /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
122
+ "data-ref": "panelClose",
123
+ className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-stretch"),
124
+ icon: icons.CoreIcons.close,
125
+ onClick: function onClick() {
126
+ return handleClose(false);
127
+ }
142
128
  })]
143
- })
144
- }))
145
- })
146
- })
129
+ }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.Loading, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
130
+ role: "dialog",
131
+ className: classNames("fabric-flyoutBody", "flex-1 grid overflow-hidden"),
132
+ tabIndex: 0,
133
+ children: children
134
+ })]
135
+ })
136
+ }))
137
+ })]
147
138
  });
148
139
  };
149
140
 
@@ -78,13 +78,14 @@ var Modal = function Modal(_ref) {
78
78
  children: /*#__PURE__*/jsxRuntime.jsx(react.FloatingOverlay, {
79
79
  lockScroll: true,
80
80
  style: {
81
- zIndex: "var(--z-overlay-mask)"
81
+ zIndex: "var(--z-overlay-mask)",
82
+ overflow: "hidden"
82
83
  },
83
- className: "bg-tint-100/20 backdrop-blur-sm grid place-items-center",
84
+ className: "bg-tint-100/20 backdrop-blur-sm grid place-items-center p-16",
84
85
  children: /*#__PURE__*/jsxRuntime.jsx(react.FloatingFocusManager, {
85
86
  context: context,
86
87
  children: /*#__PURE__*/jsxRuntime.jsx("dialog", _objectSpread(_objectSpread(_objectSpread({
87
- className: classNames("fabric-modal", "rounded-capped relative overflow-hidden flex flex-col flex-nowrap", "ring-1 ring-tint-100 ring-offset-1 focus-within:ring-primary-300 shadow-xl", size === "sm" && "w-[20rem]", size === "md" && "w-[40rem]", size === "lg" && "w-[60vw]", size === "xl" && "w-[80vw]", size === "screen" && "w-screen h-screen"),
88
+ className: classNames("fabric-modal", "rounded-capped relative overflow-hidden flex flex-col flex-nowrap", "ring-2 ring-offset-2 ring-tint-100 focus-within:ring-primary-300 shadow-xl", size === "sm" && "w-[20rem]", size === "md" && "w-[40rem]", size === "lg" && "w-[60vw]", size === "xl" && "w-[80vw]", size === "screen" && "w-screen h-screen"),
88
89
  style: {
89
90
  width: width,
90
91
  height: height,
@@ -5,10 +5,11 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
5
5
  import { isString } from '@react-fabric/utilities';
6
6
  import classNames from 'classnames';
7
7
  import { isValidElement } from 'react';
8
- import { Icon } from '../icon/Icon.js';
9
8
  import { jsxs, jsx } from 'react/jsx-runtime';
9
+ import { getColor } from '../../utils/getColor.js';
10
+ import { Icon } from '../icon/Icon.js';
10
11
 
11
- var _excluded = ["children", "title", "message", "icon", "className", "size"];
12
+ var _excluded = ["children", "title", "message", "icon", "className", "size", "iconColor"];
12
13
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
14
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
15
  var SizeMap = {
@@ -55,6 +56,7 @@ var EmptyContent = function EmptyContent(_ref) {
55
56
  icon = _ref.icon,
56
57
  className = _ref.className,
57
58
  size = _ref.size,
59
+ iconColor = _ref.iconColor,
58
60
  test = _objectWithoutProperties(_ref, _excluded);
59
61
  return /*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
60
62
  className: classNames("p-6 flex flex-col items-center area-content", className),
@@ -65,7 +67,8 @@ var EmptyContent = function EmptyContent(_ref) {
65
67
  children: [/*#__PURE__*/jsxs("div", {
66
68
  className: "leading-none",
67
69
  style: {
68
- fontSize: "4em"
70
+ fontSize: "4em",
71
+ color: getColor(iconColor !== null && iconColor !== void 0 ? iconColor : "tint-700")
69
72
  },
70
73
  children: [isString(icon) && /*#__PURE__*/jsx(Icon, {
71
74
  icon: icon
@@ -2,16 +2,16 @@
2
2
 
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
4
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
- import { useFloating, useDismiss, useRole, useInteractions, FloatingOverlay, FloatingPortal, FloatingFocusManager } from '@floating-ui/react';
5
+ import { useFloating, useDismiss, useRole, useInteractions, FloatingPortal, FloatingOverlay, FloatingFocusManager } from '@floating-ui/react';
6
6
  import { isString } from '@react-fabric/utilities';
7
7
  import classNames from 'classnames';
8
- import { useCallback, useEffect, Fragment, isValidElement } from 'react';
8
+ import { useCallback, useEffect, isValidElement } from 'react';
9
9
  import { Loading } from '../../components/animations/Animations.js';
10
10
  import { Icon } from '../../components/icon/Icon.js';
11
11
  import { Header } from '../../core/headfoot/HeadFoot.js';
12
12
  import { HotKeyWrapper } from '../../hotkeys/HotKeyWrapper.js';
13
13
  import { CoreIcons } from '../../types/icons.js';
14
- import { jsx, jsxs } from 'react/jsx-runtime';
14
+ import { jsxs, jsx } from 'react/jsx-runtime';
15
15
 
16
16
  var _excluded = ["icon", "iconBg", "iconColor", "iconClassName", "rtlFlip", "title", "actions", "closeOnClick", "headerClassName", "onClose", "onBeforeClose", "children", "loading", "size", "width", "minWidth", "hideMask", "align"];
17
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -84,66 +84,57 @@ var Flyout = function Flyout(_ref) {
84
84
  }, 100);
85
85
  }
86
86
  }, [closeOnClick, handleClose]);
87
- var Wrapper = useCallback(function (_ref2) {
88
- var children = _ref2.children;
89
- if (hideMask) return /*#__PURE__*/jsx(Fragment, {
90
- children: children
91
- });
92
- return /*#__PURE__*/jsx(FloatingOverlay, {
87
+ return /*#__PURE__*/jsxs(FloatingPortal, {
88
+ children: [!hideMask && /*#__PURE__*/jsx(FloatingOverlay, {
93
89
  lockScroll: true,
94
90
  style: {
95
- zIndex: "var(--z-overlay-mask)"
91
+ zIndex: "var(--z-overlay-mask)",
92
+ overflow: "hidden"
96
93
  },
97
- className: "bg-tint-100/10 backdrop-blur-sm transition-all",
98
- children: children
99
- });
100
- }, [hideMask, handleClose]);
101
- return /*#__PURE__*/jsx(FloatingPortal, {
102
- children: /*#__PURE__*/jsx(Wrapper, {
103
- children: /*#__PURE__*/jsx(FloatingFocusManager, {
104
- context: context,
105
- children: /*#__PURE__*/jsx("div", _objectSpread(_objectSpread(_objectSpread(_objectSpread({
106
- "data-align": align,
107
- className: classNames("fabric-flyout", "fixed inset-y-0 overflow-hidden flex flex-col flex-nowrap pointer-events-auto shadow-xl", align === "start" ? "start-0" : "end-0", size === "sm" && "w-[20rem]", size === "md" && "w-[40rem]", size === "lg" && "w-[60vw]", size === "xl" && "w-[80vw]"),
108
- style: {
109
- width: width,
110
- minWidth: minWidth
111
- },
112
- onMouseUpCapture: tryClosing,
113
- ref: refs.setFloating
114
- }, getFloatingProps()), aria), aria), {}, {
115
- children: /*#__PURE__*/jsxs(HotKeyWrapper, {
116
- children: [/*#__PURE__*/jsxs(Header, {
117
- flex: true,
118
- align: "center",
119
- className: classNames("fabric-flyoutHeader", headerClassName),
120
- children: [isString(icon) && /*#__PURE__*/jsx(Icon, {
121
- icon: icon,
122
- bg: iconBg,
123
- color: iconColor,
124
- className: classNames(iconClassName, "p-1"),
125
- rtlFlip: rtlFlip
126
- }), /*#__PURE__*/isValidElement(icon) && icon, /*#__PURE__*/jsx("label", {
127
- className: "flex-1 truncate py-2 px-1",
128
- children: title
129
- }), actions, /*#__PURE__*/jsx(Icon, {
130
- "data-ref": "panelClose",
131
- className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-stretch"),
132
- icon: CoreIcons.close,
133
- onClick: function onClick() {
134
- return handleClose(false);
135
- }
136
- })]
137
- }), loading && /*#__PURE__*/jsx(Loading, {}), /*#__PURE__*/jsx("div", {
138
- role: "dialog",
139
- className: classNames("fabric-flyoutBody", "flex-1 grid overflow-hidden"),
140
- tabIndex: 0,
141
- children: children
94
+ className: "bg-tint-100/10 backdrop-blur-sm transition-all"
95
+ }), /*#__PURE__*/jsx(FloatingFocusManager, {
96
+ context: context,
97
+ children: /*#__PURE__*/jsx("div", _objectSpread(_objectSpread(_objectSpread(_objectSpread({
98
+ "data-align": align,
99
+ className: classNames("fabric-flyout", "fixed inset-y-0 overflow-hidden flex flex-col flex-nowrap pointer-events-auto shadow-xl", align === "start" ? "start-0" : "end-0", size === "sm" && "w-[20rem]", size === "md" && "w-[40rem]", size === "lg" && "w-[60vw]", size === "xl" && "w-[80vw]"),
100
+ style: {
101
+ width: width,
102
+ minWidth: minWidth
103
+ },
104
+ onMouseUpCapture: tryClosing,
105
+ ref: refs.setFloating
106
+ }, getFloatingProps()), aria), aria), {}, {
107
+ children: /*#__PURE__*/jsxs(HotKeyWrapper, {
108
+ children: [/*#__PURE__*/jsxs(Header, {
109
+ flex: true,
110
+ align: "center",
111
+ className: classNames("fabric-flyoutHeader", headerClassName),
112
+ children: [isString(icon) && /*#__PURE__*/jsx(Icon, {
113
+ icon: icon,
114
+ bg: iconBg,
115
+ color: iconColor,
116
+ className: classNames(iconClassName, "p-1"),
117
+ rtlFlip: rtlFlip
118
+ }), /*#__PURE__*/isValidElement(icon) && icon, /*#__PURE__*/jsx("label", {
119
+ className: "flex-1 truncate py-2 px-1",
120
+ children: title
121
+ }), actions, /*#__PURE__*/jsx(Icon, {
122
+ "data-ref": "panelClose",
123
+ className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-stretch"),
124
+ icon: CoreIcons.close,
125
+ onClick: function onClick() {
126
+ return handleClose(false);
127
+ }
142
128
  })]
143
- })
144
- }))
145
- })
146
- })
129
+ }), loading && /*#__PURE__*/jsx(Loading, {}), /*#__PURE__*/jsx("div", {
130
+ role: "dialog",
131
+ className: classNames("fabric-flyoutBody", "flex-1 grid overflow-hidden"),
132
+ tabIndex: 0,
133
+ children: children
134
+ })]
135
+ })
136
+ }))
137
+ })]
147
138
  });
148
139
  };
149
140
 
@@ -78,13 +78,14 @@ var Modal = function Modal(_ref) {
78
78
  children: /*#__PURE__*/jsx(FloatingOverlay, {
79
79
  lockScroll: true,
80
80
  style: {
81
- zIndex: "var(--z-overlay-mask)"
81
+ zIndex: "var(--z-overlay-mask)",
82
+ overflow: "hidden"
82
83
  },
83
- className: "bg-tint-100/20 backdrop-blur-sm grid place-items-center",
84
+ className: "bg-tint-100/20 backdrop-blur-sm grid place-items-center p-16",
84
85
  children: /*#__PURE__*/jsx(FloatingFocusManager, {
85
86
  context: context,
86
87
  children: /*#__PURE__*/jsx("dialog", _objectSpread(_objectSpread(_objectSpread({
87
- className: classNames("fabric-modal", "rounded-capped relative overflow-hidden flex flex-col flex-nowrap", "ring-1 ring-tint-100 ring-offset-1 focus-within:ring-primary-300 shadow-xl", size === "sm" && "w-[20rem]", size === "md" && "w-[40rem]", size === "lg" && "w-[60vw]", size === "xl" && "w-[80vw]", size === "screen" && "w-screen h-screen"),
88
+ className: classNames("fabric-modal", "rounded-capped relative overflow-hidden flex flex-col flex-nowrap", "ring-2 ring-offset-2 ring-tint-100 focus-within:ring-primary-300 shadow-xl", size === "sm" && "w-[20rem]", size === "md" && "w-[40rem]", size === "lg" && "w-[60vw]", size === "xl" && "w-[80vw]", size === "screen" && "w-screen h-screen"),
88
89
  style: {
89
90
  width: width,
90
91
  height: height,
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { type ChildrenProp, type CssProp, type TestProps } from "../../types";
2
+ import { type ChildrenProp, type ColorType, type CssProp, type PaletteType, type TestProps } from "../../types";
3
3
  export interface EmptyContentProps extends CssProp, TestProps, Partial<ChildrenProp> {
4
4
  /**
5
5
  * empty title
@@ -17,5 +17,9 @@ export interface EmptyContentProps extends CssProp, TestProps, Partial<ChildrenP
17
17
  * empty icon
18
18
  */
19
19
  icon?: string | React.ReactElement;
20
+ /**
21
+ * icon color
22
+ */
23
+ iconColor?: ColorType | PaletteType;
20
24
  }
21
- export declare const EmptyContent: ({ children, title, message, icon, className, size, ...test }: EmptyContentProps) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const EmptyContent: ({ children, title, message, icon, className, size, iconColor, ...test }: EmptyContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,8 +6,8 @@ export type ModalProps<P = unknown> = P & {
6
6
  export type SizeType = "xs" | "sm" | "md" | "lg" | "xl";
7
7
  export type SizeTypeWithZero = "xs" | "sm" | "md" | "lg" | "xl" | 0;
8
8
  export type ColorState = "primary" | "accent" | "info" | "danger" | "success" | "warning";
9
- export type ColorType = "primary-50" | "accent-50" | "info-50" | "danger-50" | "success-50" | "warning-50" | "primary-100" | "accent-100" | "info-100" | "danger-100" | "success-100" | "warning-100" | "primary-200" | "accent-200" | "info-200" | "danger-200" | "success-200" | "warning-200" | "primary-300" | "accent-300" | "info-300" | "danger-300" | "success-300" | "warning-300" | "primary-400" | "accent-400" | "info-400" | "danger-400" | "success-400" | "warning-400" | "primary-500" | "accent-500" | "info-500" | "danger-500" | "success-500" | "warning-500" | "primary-600" | "accent-600" | "info-600" | "danger-600" | "success-600" | "warning-600" | "primary-700" | "accent-700" | "info-700" | "danger-700" | "success-700" | "warning-700" | "primary-800" | "accent-800" | "info-800" | "danger-800" | "success-800" | "warning-800" | "primary-900" | "accent-900" | "info-900" | "danger-900" | "success-900" | "warning-900" | "primary-950" | "accent-950" | "info-950" | "danger-950" | "success-950" | "warning-950";
10
- export type PaletteType = "scarlet-50" | "pumpkin-50" | "marigold-50" | "avacado-50" | "jade-50" | "denim-50" | "iris-50" | "lilac-50" | "coral-50" | "wood-50" | "silver-50" | "steel-50" | "olive-50" | "sand-50" | "scarlet-100" | "pumpkin-100" | "marigold-100" | "avacado-100" | "jade-100" | "denim-100" | "iris-100" | "lilac-100" | "coral-100" | "wood-100" | "silver-100" | "steel-100" | "olive-100" | "sand-100" | "scarlet-200" | "pumpkin-200" | "marigold-200" | "avacado-200" | "jade-200" | "denim-200" | "iris-200" | "lilac-200" | "coral-200" | "wood-200" | "silver-200" | "steel-200" | "olive-200" | "sand-200" | "scarlet-300" | "pumpkin-300" | "marigold-300" | "avacado-300" | "jade-300" | "denim-300" | "iris-300" | "lilac-300" | "coral-300" | "wood-300" | "silver-300" | "steel-300" | "olive-300" | "sand-300" | "scarlet-400" | "pumpkin-400" | "marigold-400" | "avacado-400" | "jade-400" | "denim-400" | "iris-400" | "lilac-400" | "coral-400" | "wood-400" | "silver-400" | "steel-400" | "olive-400" | "sand-400" | "scarlet-500" | "pumpkin-500" | "marigold-500" | "avacado-500" | "jade-500" | "denim-500" | "iris-500" | "lilac-500" | "coral-500" | "wood-500" | "silver-500" | "steel-500" | "olive-500" | "sand-500" | "scarlet-600" | "pumpkin-600" | "marigold-600" | "avacado-600" | "jade-600" | "denim-600" | "iris-600" | "lilac-600" | "coral-600" | "wood-600" | "silver-600" | "steel-600" | "olive-600" | "sand-600" | "scarlet-700" | "pumpkin-700" | "marigold-700" | "avacado-700" | "jade-700" | "denim-700" | "iris-700" | "lilac-700" | "coral-700" | "wood-700" | "silver-700" | "steel-700" | "olive-700" | "sand-700" | "scarlet-800" | "pumpkin-800" | "marigold-800" | "avacado-800" | "jade-800" | "denim-800" | "iris-800" | "lilac-800" | "coral-800" | "wood-800" | "silver-800" | "steel-800" | "olive-800" | "sand-800" | "scarlet-900" | "pumpkin-900" | "marigold-900" | "avacado-900" | "jade-900" | "denim-900" | "iris-900" | "lilac-900" | "coral-900" | "wood-900" | "silver-900" | "steel-900" | "olive-900" | "sand-900" | "scarlet-950" | "pumpkin-950" | "marigold-950" | "avacado-950" | "jade-950" | "denim-950" | "iris-950" | "lilac-950" | "coral-950" | "wood-950" | "silver-950" | "steel-950" | "olive-950" | "sand-950";
9
+ export type ColorType = "primary-50" | "primary-100" | "primary-200" | "primary-300" | "primary-400" | "primary-500" | "primary-600" | "primary-700" | "primary-800" | "primary-900" | "primary-950" | "accent-50" | "accent-100" | "accent-200" | "accent-300" | "accent-400" | "accent-500" | "accent-600" | "accent-700" | "accent-800" | "accent-900" | "accent-950" | "info-50" | "info-100" | "info-200" | "info-300" | "info-400" | "info-500" | "info-600" | "info-700" | "info-800" | "info-900" | "info-950" | "danger-50" | "danger-100" | "danger-200" | "danger-300" | "danger-400" | "danger-500" | "danger-600" | "danger-700" | "danger-800" | "danger-900" | "danger-950" | "success-50" | "success-100" | "success-200" | "success-300" | "success-400" | "success-500" | "success-600" | "success-700" | "success-800" | "success-900" | "success-950" | "warning-50" | "warning-100" | "warning-200" | "warning-300" | "warning-400" | "warning-500" | "warning-600" | "warning-700" | "warning-800" | "warning-900" | "warning-950";
10
+ export type PaletteType = "scarlet-50" | "scarlet-100" | "scarlet-200" | "scarlet-300" | "scarlet-400" | "scarlet-500" | "scarlet-600" | "scarlet-700" | "scarlet-800" | "scarlet-900" | "scarlet-950" | "pumpkin-50" | "pumpkin-100" | "pumpkin-200" | "pumpkin-300" | "pumpkin-400" | "pumpkin-500" | "pumpkin-600" | "pumpkin-700" | "pumpkin-800" | "pumpkin-900" | "pumpkin-950" | "marigold-50" | "marigold-100" | "marigold-200" | "marigold-300" | "marigold-400" | "marigold-500" | "marigold-600" | "marigold-700" | "marigold-800" | "marigold-900" | "marigold-950" | "avacado-50" | "avacado-100" | "avacado-200" | "avacado-300" | "avacado-400" | "avacado-500" | "avacado-600" | "avacado-700" | "avacado-800" | "avacado-900" | "avacado-950" | "jade-50" | "jade-100" | "jade-200" | "jade-300" | "jade-400" | "jade-500" | "jade-600" | "jade-700" | "jade-800" | "jade-900" | "jade-950" | "denim-50" | "denim-100" | "denim-200" | "denim-300" | "denim-400" | "denim-500" | "denim-600" | "denim-700" | "denim-800" | "denim-900" | "denim-950" | "iris-50" | "iris-100" | "iris-200" | "iris-300" | "iris-400" | "iris-500" | "iris-600" | "iris-700" | "iris-800" | "iris-900" | "iris-950" | "lilac-50" | "lilac-100" | "lilac-200" | "lilac-300" | "lilac-400" | "lilac-500" | "lilac-600" | "lilac-700" | "lilac-800" | "lilac-900" | "lilac-950" | "coral-50" | "coral-100" | "coral-200" | "coral-300" | "coral-400" | "coral-500" | "coral-600" | "coral-700" | "coral-800" | "coral-900" | "coral-950" | "wood-50" | "wood-100" | "wood-200" | "wood-300" | "wood-400" | "wood-500" | "wood-600" | "wood-700" | "wood-800" | "wood-900" | "wood-950" | "silver-50" | "silver-100" | "silver-200" | "silver-300" | "silver-400" | "silver-500" | "silver-600" | "silver-700" | "silver-800" | "silver-900" | "silver-950" | "steel-50" | "steel-100" | "steel-200" | "steel-300" | "steel-400" | "steel-500" | "steel-600" | "steel-700" | "steel-800" | "steel-900" | "steel-950" | "olive-50" | "olive-100" | "olive-200" | "olive-300" | "olive-400" | "olive-500" | "olive-600" | "olive-700" | "olive-800" | "olive-900" | "olive-950" | "sand-50" | "sand-100" | "sand-200" | "sand-300" | "sand-400" | "sand-500" | "sand-600" | "sand-700" | "sand-800" | "sand-900" | "sand-950" | "tint-50" | "tint-100" | "tint-200" | "tint-300" | "tint-400" | "tint-500" | "tint-600" | "tint-700" | "tint-800" | "tint-900" | "tint-950";
11
11
  export type ColorWithGrays = ColorType | "invert" | "dimmed" | "muted";
12
12
  export declare const ThemeColors: string[];
13
13
  export interface TooltipType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/core",
3
- "version": "1.0.0-beta.40",
3
+ "version": "1.0.0-beta.41",
4
4
  "description": "RUF: Core package",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@floating-ui/react": "^0.26.24",
39
- "@react-fabric/utilities": "^1.0.0-beta.40",
39
+ "@react-fabric/utilities": "^1.0.0-beta.41",
40
40
  "@tailwindcss/postcss": "~4.0.14",
41
41
  "boring-avatars": "^1.10.2",
42
42
  "classnames": "^2.5.1",
@@ -54,5 +54,5 @@
54
54
  "node": ">=18.12.0",
55
55
  "npm": ">=8.19.0"
56
56
  },
57
- "gitHead": "ede05c84683697d85e28a0ae380cb9b74d693f51"
57
+ "gitHead": "bc737416d3c6a217a6b8c47291c3975a22722d80"
58
58
  }
@@ -24,7 +24,14 @@
24
24
  import { isString } from "@react-fabric/utilities";
25
25
  import classNames from "classnames";
26
26
  import { isValidElement } from "react";
27
- import { type ChildrenProp, type CssProp, type TestProps } from "../../types";
27
+ import {
28
+ type ChildrenProp,
29
+ type ColorType,
30
+ type CssProp,
31
+ type PaletteType,
32
+ type TestProps,
33
+ } from "../../types";
34
+ import { getColor } from "../../utils";
28
35
  import { Icon } from "../icon/Icon";
29
36
 
30
37
  export interface EmptyContentProps
@@ -47,6 +54,10 @@ export interface EmptyContentProps
47
54
  * empty icon
48
55
  */
49
56
  icon?: string | React.ReactElement;
57
+ /**
58
+ * icon color
59
+ */
60
+ iconColor?: ColorType | PaletteType;
50
61
  }
51
62
 
52
63
  const SizeMap: KeyValue = {
@@ -101,6 +112,7 @@ export const EmptyContent = ({
101
112
  icon,
102
113
  className,
103
114
  size,
115
+ iconColor,
104
116
  ...test
105
117
  }: EmptyContentProps) => {
106
118
  return (
@@ -116,7 +128,10 @@ export const EmptyContent = ({
116
128
  }
117
129
  {...test}
118
130
  >
119
- <div className="leading-none" style={{ fontSize: "4em" }}>
131
+ <div
132
+ className="leading-none"
133
+ style={{ fontSize: "4em", color: getColor(iconColor ?? "tint-700") }}
134
+ >
120
135
  {isString(icon) && <Icon icon={icon} />}
121
136
  {isValidElement(icon) && icon}
122
137
  {!icon && <DefaultIcon />}
@@ -33,12 +33,10 @@ import {
33
33
  import { isString } from "@react-fabric/utilities";
34
34
  import classNames from "classnames";
35
35
  import {
36
- Fragment,
37
36
  isValidElement,
38
37
  useCallback,
39
38
  useEffect,
40
39
  type ElementType,
41
- type PropsWithChildren,
42
40
  } from "react";
43
41
  import { Loading } from "../../components/animations/Animations";
44
42
  import { Icon } from "../../components/icon/Icon";
@@ -194,91 +192,79 @@ export const Flyout = ({
194
192
  [closeOnClick, handleClose],
195
193
  );
196
194
 
197
- const Wrapper = useCallback(
198
- ({ children }: PropsWithChildren) => {
199
- if (hideMask) return <Fragment>{children}</Fragment>;
200
-
201
- return (
195
+ return (
196
+ <FloatingPortal>
197
+ {!hideMask && (
202
198
  <FloatingOverlay
203
199
  lockScroll
204
- style={{ zIndex: "var(--z-overlay-mask)" }}
200
+ style={{ zIndex: "var(--z-overlay-mask)", overflow: "hidden" }}
205
201
  className="bg-tint-100/10 backdrop-blur-sm transition-all"
202
+ />
203
+ )}
204
+ <FloatingFocusManager context={context}>
205
+ <div
206
+ data-align={align}
207
+ className={classNames(
208
+ "fabric-flyout",
209
+ "fixed inset-y-0 overflow-hidden flex flex-col flex-nowrap pointer-events-auto shadow-xl",
210
+ align === "start" ? "start-0" : "end-0",
211
+ size === "sm" && "w-[20rem]",
212
+ size === "md" && "w-[40rem]",
213
+ size === "lg" && "w-[60vw]",
214
+ size === "xl" && "w-[80vw]",
215
+ )}
216
+ style={{
217
+ width,
218
+ minWidth,
219
+ }}
220
+ onMouseUpCapture={tryClosing}
221
+ ref={refs.setFloating}
222
+ {...getFloatingProps()}
223
+ {...aria}
224
+ {...aria}
206
225
  >
207
- {children}
208
- </FloatingOverlay>
209
- );
210
- },
211
- [hideMask, handleClose],
212
- );
213
-
214
- return (
215
- <FloatingPortal>
216
- <Wrapper>
217
- <FloatingFocusManager context={context}>
218
- <div
219
- data-align={align}
220
- className={classNames(
221
- "fabric-flyout",
222
- "fixed inset-y-0 overflow-hidden flex flex-col flex-nowrap pointer-events-auto shadow-xl",
223
- align === "start" ? "start-0" : "end-0",
224
- size === "sm" && "w-[20rem]",
225
- size === "md" && "w-[40rem]",
226
- size === "lg" && "w-[60vw]",
227
- size === "xl" && "w-[80vw]",
228
- )}
229
- style={{
230
- width,
231
- minWidth,
232
- }}
233
- onMouseUpCapture={tryClosing}
234
- ref={refs.setFloating}
235
- {...getFloatingProps()}
236
- {...aria}
237
- {...aria}
238
- >
239
- <HotKeyWrapper>
240
- <Header
241
- flex
242
- align="center"
243
- className={classNames("fabric-flyoutHeader", headerClassName)}
244
- >
245
- {isString(icon) && (
246
- <Icon
247
- icon={icon}
248
- bg={iconBg}
249
- color={iconColor}
250
- className={classNames(iconClassName, "p-1")}
251
- rtlFlip={rtlFlip}
252
- />
253
- )}
254
- {isValidElement(icon) && icon}
255
- <label className="flex-1 truncate py-2 px-1">{title}</label>
256
- {actions}
226
+ <HotKeyWrapper>
227
+ <Header
228
+ flex
229
+ align="center"
230
+ className={classNames("fabric-flyoutHeader", headerClassName)}
231
+ >
232
+ {isString(icon) && (
257
233
  <Icon
258
- data-ref="panelClose"
259
- className={classNames(
260
- "fabric-panelAction",
261
- "cursor-pointer p-1 text-xl self-stretch",
262
- )}
263
- icon={CoreIcons.close}
264
- onClick={() => handleClose(false)}
234
+ icon={icon}
235
+ bg={iconBg}
236
+ color={iconColor}
237
+ className={classNames(iconClassName, "p-1")}
238
+ rtlFlip={rtlFlip}
265
239
  />
266
- </Header>
267
- {loading && <Loading />}
268
- <div
269
- role="dialog"
240
+ )}
241
+ {isValidElement(icon) && icon}
242
+ <label className="flex-1 truncate py-2 px-1">{title}</label>
243
+ {actions}
244
+ <Icon
245
+ data-ref="panelClose"
270
246
  className={classNames(
271
- "fabric-flyoutBody",
272
- "flex-1 grid overflow-hidden",
247
+ "fabric-panelAction",
248
+ "cursor-pointer p-1 text-xl self-stretch",
273
249
  )}
274
- {...({ tabIndex: 0 } as AnyObject)}
275
- >
276
- {children}
277
- </div>
278
- </HotKeyWrapper>
279
- </div>
280
- </FloatingFocusManager>
281
- </Wrapper>
250
+ icon={CoreIcons.close}
251
+ onClick={() => handleClose(false)}
252
+ />
253
+ </Header>
254
+ {loading && <Loading />}
255
+ <div
256
+ role="dialog"
257
+ className={classNames(
258
+ "fabric-flyoutBody",
259
+ "flex-1 grid overflow-hidden",
260
+ )}
261
+ {...({ tabIndex: 0 } as AnyObject)}
262
+ >
263
+ {children}
264
+ </div>
265
+ </HotKeyWrapper>
266
+ </div>
267
+ </FloatingFocusManager>
282
268
  </FloatingPortal>
283
269
  );
284
270
  };
@@ -176,15 +176,15 @@ export const Modal = ({
176
176
  <FloatingPortal>
177
177
  <FloatingOverlay
178
178
  lockScroll
179
- style={{ zIndex: "var(--z-overlay-mask)" }}
180
- className="bg-tint-100/20 backdrop-blur-sm grid place-items-center"
179
+ style={{ zIndex: "var(--z-overlay-mask)", overflow: "hidden" }}
180
+ className="bg-tint-100/20 backdrop-blur-sm grid place-items-center p-16"
181
181
  >
182
182
  <FloatingFocusManager context={context}>
183
183
  <dialog
184
184
  className={classNames(
185
185
  "fabric-modal",
186
186
  "rounded-capped relative overflow-hidden flex flex-col flex-nowrap",
187
- "ring-1 ring-tint-100 ring-offset-1 focus-within:ring-primary-300 shadow-xl",
187
+ "ring-2 ring-offset-2 ring-tint-100 focus-within:ring-primary-300 shadow-xl",
188
188
  size === "sm" && "w-[20rem]",
189
189
  size === "md" && "w-[40rem]",
190
190
  size === "lg" && "w-[60vw]",
@@ -43,227 +43,238 @@ export type ColorState =
43
43
 
44
44
  export type ColorType =
45
45
  | "primary-50"
46
- | "accent-50"
47
- | "info-50"
48
- | "danger-50"
49
- | "success-50"
50
- | "warning-50"
51
46
  | "primary-100"
52
- | "accent-100"
53
- | "info-100"
54
- | "danger-100"
55
- | "success-100"
56
- | "warning-100"
57
47
  | "primary-200"
58
- | "accent-200"
59
- | "info-200"
60
- | "danger-200"
61
- | "success-200"
62
- | "warning-200"
63
48
  | "primary-300"
64
- | "accent-300"
65
- | "info-300"
66
- | "danger-300"
67
- | "success-300"
68
- | "warning-300"
69
49
  | "primary-400"
70
- | "accent-400"
71
- | "info-400"
72
- | "danger-400"
73
- | "success-400"
74
- | "warning-400"
75
50
  | "primary-500"
76
- | "accent-500"
77
- | "info-500"
78
- | "danger-500"
79
- | "success-500"
80
- | "warning-500"
81
51
  | "primary-600"
82
- | "accent-600"
83
- | "info-600"
84
- | "danger-600"
85
- | "success-600"
86
- | "warning-600"
87
52
  | "primary-700"
88
- | "accent-700"
89
- | "info-700"
90
- | "danger-700"
91
- | "success-700"
92
- | "warning-700"
93
53
  | "primary-800"
94
- | "accent-800"
95
- | "info-800"
96
- | "danger-800"
97
- | "success-800"
98
- | "warning-800"
99
54
  | "primary-900"
100
- | "accent-900"
101
- | "info-900"
102
- | "danger-900"
103
- | "success-900"
104
- | "warning-900"
105
55
  | "primary-950"
56
+ | "accent-50"
57
+ | "accent-100"
58
+ | "accent-200"
59
+ | "accent-300"
60
+ | "accent-400"
61
+ | "accent-500"
62
+ | "accent-600"
63
+ | "accent-700"
64
+ | "accent-800"
65
+ | "accent-900"
106
66
  | "accent-950"
67
+ | "info-50"
68
+ | "info-100"
69
+ | "info-200"
70
+ | "info-300"
71
+ | "info-400"
72
+ | "info-500"
73
+ | "info-600"
74
+ | "info-700"
75
+ | "info-800"
76
+ | "info-900"
107
77
  | "info-950"
78
+ | "danger-50"
79
+ | "danger-100"
80
+ | "danger-200"
81
+ | "danger-300"
82
+ | "danger-400"
83
+ | "danger-500"
84
+ | "danger-600"
85
+ | "danger-700"
86
+ | "danger-800"
87
+ | "danger-900"
108
88
  | "danger-950"
89
+ | "success-50"
90
+ | "success-100"
91
+ | "success-200"
92
+ | "success-300"
93
+ | "success-400"
94
+ | "success-500"
95
+ | "success-600"
96
+ | "success-700"
97
+ | "success-800"
98
+ | "success-900"
109
99
  | "success-950"
100
+ | "warning-50"
101
+ | "warning-100"
102
+ | "warning-200"
103
+ | "warning-300"
104
+ | "warning-400"
105
+ | "warning-500"
106
+ | "warning-600"
107
+ | "warning-700"
108
+ | "warning-800"
109
+ | "warning-900"
110
110
  | "warning-950";
111
111
 
112
112
  export type PaletteType =
113
113
  | "scarlet-50"
114
- | "pumpkin-50"
115
- | "marigold-50"
116
- | "avacado-50"
117
- | "jade-50"
118
- | "denim-50"
119
- | "iris-50"
120
- | "lilac-50"
121
- | "coral-50"
122
- | "wood-50"
123
- | "silver-50"
124
- | "steel-50"
125
- | "olive-50"
126
- | "sand-50"
127
114
  | "scarlet-100"
128
- | "pumpkin-100"
129
- | "marigold-100"
130
- | "avacado-100"
131
- | "jade-100"
132
- | "denim-100"
133
- | "iris-100"
134
- | "lilac-100"
135
- | "coral-100"
136
- | "wood-100"
137
- | "silver-100"
138
- | "steel-100"
139
- | "olive-100"
140
- | "sand-100"
141
115
  | "scarlet-200"
142
- | "pumpkin-200"
143
- | "marigold-200"
144
- | "avacado-200"
145
- | "jade-200"
146
- | "denim-200"
147
- | "iris-200"
148
- | "lilac-200"
149
- | "coral-200"
150
- | "wood-200"
151
- | "silver-200"
152
- | "steel-200"
153
- | "olive-200"
154
- | "sand-200"
155
116
  | "scarlet-300"
156
- | "pumpkin-300"
157
- | "marigold-300"
158
- | "avacado-300"
159
- | "jade-300"
160
- | "denim-300"
161
- | "iris-300"
162
- | "lilac-300"
163
- | "coral-300"
164
- | "wood-300"
165
- | "silver-300"
166
- | "steel-300"
167
- | "olive-300"
168
- | "sand-300"
169
117
  | "scarlet-400"
170
- | "pumpkin-400"
171
- | "marigold-400"
172
- | "avacado-400"
173
- | "jade-400"
174
- | "denim-400"
175
- | "iris-400"
176
- | "lilac-400"
177
- | "coral-400"
178
- | "wood-400"
179
- | "silver-400"
180
- | "steel-400"
181
- | "olive-400"
182
- | "sand-400"
183
118
  | "scarlet-500"
184
- | "pumpkin-500"
185
- | "marigold-500"
186
- | "avacado-500"
187
- | "jade-500"
188
- | "denim-500"
189
- | "iris-500"
190
- | "lilac-500"
191
- | "coral-500"
192
- | "wood-500"
193
- | "silver-500"
194
- | "steel-500"
195
- | "olive-500"
196
- | "sand-500"
197
119
  | "scarlet-600"
198
- | "pumpkin-600"
199
- | "marigold-600"
200
- | "avacado-600"
201
- | "jade-600"
202
- | "denim-600"
203
- | "iris-600"
204
- | "lilac-600"
205
- | "coral-600"
206
- | "wood-600"
207
- | "silver-600"
208
- | "steel-600"
209
- | "olive-600"
210
- | "sand-600"
211
120
  | "scarlet-700"
212
- | "pumpkin-700"
213
- | "marigold-700"
214
- | "avacado-700"
215
- | "jade-700"
216
- | "denim-700"
217
- | "iris-700"
218
- | "lilac-700"
219
- | "coral-700"
220
- | "wood-700"
221
- | "silver-700"
222
- | "steel-700"
223
- | "olive-700"
224
- | "sand-700"
225
121
  | "scarlet-800"
226
- | "pumpkin-800"
227
- | "marigold-800"
228
- | "avacado-800"
229
- | "jade-800"
230
- | "denim-800"
231
- | "iris-800"
232
- | "lilac-800"
233
- | "coral-800"
234
- | "wood-800"
235
- | "silver-800"
236
- | "steel-800"
237
- | "olive-800"
238
- | "sand-800"
239
122
  | "scarlet-900"
240
- | "pumpkin-900"
241
- | "marigold-900"
242
- | "avacado-900"
243
- | "jade-900"
244
- | "denim-900"
245
- | "iris-900"
246
- | "lilac-900"
247
- | "coral-900"
248
- | "wood-900"
249
- | "silver-900"
250
- | "steel-900"
251
- | "olive-900"
252
- | "sand-900"
253
123
  | "scarlet-950"
124
+ | "pumpkin-50"
125
+ | "pumpkin-100"
126
+ | "pumpkin-200"
127
+ | "pumpkin-300"
128
+ | "pumpkin-400"
129
+ | "pumpkin-500"
130
+ | "pumpkin-600"
131
+ | "pumpkin-700"
132
+ | "pumpkin-800"
133
+ | "pumpkin-900"
254
134
  | "pumpkin-950"
135
+ | "marigold-50"
136
+ | "marigold-100"
137
+ | "marigold-200"
138
+ | "marigold-300"
139
+ | "marigold-400"
140
+ | "marigold-500"
141
+ | "marigold-600"
142
+ | "marigold-700"
143
+ | "marigold-800"
144
+ | "marigold-900"
255
145
  | "marigold-950"
146
+ | "avacado-50"
147
+ | "avacado-100"
148
+ | "avacado-200"
149
+ | "avacado-300"
150
+ | "avacado-400"
151
+ | "avacado-500"
152
+ | "avacado-600"
153
+ | "avacado-700"
154
+ | "avacado-800"
155
+ | "avacado-900"
256
156
  | "avacado-950"
157
+ | "jade-50"
158
+ | "jade-100"
159
+ | "jade-200"
160
+ | "jade-300"
161
+ | "jade-400"
162
+ | "jade-500"
163
+ | "jade-600"
164
+ | "jade-700"
165
+ | "jade-800"
166
+ | "jade-900"
257
167
  | "jade-950"
168
+ | "denim-50"
169
+ | "denim-100"
170
+ | "denim-200"
171
+ | "denim-300"
172
+ | "denim-400"
173
+ | "denim-500"
174
+ | "denim-600"
175
+ | "denim-700"
176
+ | "denim-800"
177
+ | "denim-900"
258
178
  | "denim-950"
179
+ | "iris-50"
180
+ | "iris-100"
181
+ | "iris-200"
182
+ | "iris-300"
183
+ | "iris-400"
184
+ | "iris-500"
185
+ | "iris-600"
186
+ | "iris-700"
187
+ | "iris-800"
188
+ | "iris-900"
259
189
  | "iris-950"
190
+ | "lilac-50"
191
+ | "lilac-100"
192
+ | "lilac-200"
193
+ | "lilac-300"
194
+ | "lilac-400"
195
+ | "lilac-500"
196
+ | "lilac-600"
197
+ | "lilac-700"
198
+ | "lilac-800"
199
+ | "lilac-900"
260
200
  | "lilac-950"
201
+ | "coral-50"
202
+ | "coral-100"
203
+ | "coral-200"
204
+ | "coral-300"
205
+ | "coral-400"
206
+ | "coral-500"
207
+ | "coral-600"
208
+ | "coral-700"
209
+ | "coral-800"
210
+ | "coral-900"
261
211
  | "coral-950"
212
+ | "wood-50"
213
+ | "wood-100"
214
+ | "wood-200"
215
+ | "wood-300"
216
+ | "wood-400"
217
+ | "wood-500"
218
+ | "wood-600"
219
+ | "wood-700"
220
+ | "wood-800"
221
+ | "wood-900"
262
222
  | "wood-950"
223
+ | "silver-50"
224
+ | "silver-100"
225
+ | "silver-200"
226
+ | "silver-300"
227
+ | "silver-400"
228
+ | "silver-500"
229
+ | "silver-600"
230
+ | "silver-700"
231
+ | "silver-800"
232
+ | "silver-900"
263
233
  | "silver-950"
234
+ | "steel-50"
235
+ | "steel-100"
236
+ | "steel-200"
237
+ | "steel-300"
238
+ | "steel-400"
239
+ | "steel-500"
240
+ | "steel-600"
241
+ | "steel-700"
242
+ | "steel-800"
243
+ | "steel-900"
264
244
  | "steel-950"
245
+ | "olive-50"
246
+ | "olive-100"
247
+ | "olive-200"
248
+ | "olive-300"
249
+ | "olive-400"
250
+ | "olive-500"
251
+ | "olive-600"
252
+ | "olive-700"
253
+ | "olive-800"
254
+ | "olive-900"
265
255
  | "olive-950"
266
- | "sand-950";
256
+ | "sand-50"
257
+ | "sand-100"
258
+ | "sand-200"
259
+ | "sand-300"
260
+ | "sand-400"
261
+ | "sand-500"
262
+ | "sand-600"
263
+ | "sand-700"
264
+ | "sand-800"
265
+ | "sand-900"
266
+ | "sand-950"
267
+ | "tint-50"
268
+ | "tint-100"
269
+ | "tint-200"
270
+ | "tint-300"
271
+ | "tint-400"
272
+ | "tint-500"
273
+ | "tint-600"
274
+ | "tint-700"
275
+ | "tint-800"
276
+ | "tint-900"
277
+ | "tint-950";
267
278
 
268
279
  export type ColorWithGrays = ColorType | "invert" | "dimmed" | "muted";
269
280