@react-fabric/core 1.0.0-beta.60 → 1.0.0-beta.61

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.
Files changed (82) hide show
  1. package/css/components/_button.css +10 -2
  2. package/css/components/_icon.css +1 -1
  3. package/css/reset/_reset.css +1 -1
  4. package/css/reset/_theme.css +3 -3
  5. package/css/styles.css +2 -0
  6. package/css/theme/_colors.css +2 -2
  7. package/dist/cjs/components/animations/Animations.js +54 -49
  8. package/dist/cjs/components/button/Button.js +1 -1
  9. package/dist/cjs/components/callout/Callout.js +4 -4
  10. package/dist/cjs/components/collapsable/Collapsable.js +4 -5
  11. package/dist/cjs/components/dropdown/DropdownTool.js +1 -2
  12. package/dist/cjs/components/media/Media.js +9 -8
  13. package/dist/cjs/components/menu/Menu.js +1 -2
  14. package/dist/cjs/components/menu/MenuItem.js +0 -1
  15. package/dist/cjs/components/navigator/Navigator.js +2 -3
  16. package/dist/cjs/components/panel/Panel.js +7 -7
  17. package/dist/cjs/components/tabpanel/Tab.js +0 -1
  18. package/dist/cjs/core/aside/Aside.js +3 -4
  19. package/dist/cjs/core/page/Page.js +1 -1
  20. package/dist/cjs/hooks/useStepper.js +0 -1
  21. package/dist/cjs/index.js +3 -8
  22. package/dist/cjs/overlays/alert/Alert.js +1 -2
  23. package/dist/cjs/overlays/flyout/Flyout.js +2 -3
  24. package/dist/cjs/overlays/modal/Modal.js +2 -3
  25. package/dist/cjs/overlays/toast/Toast.js +2 -3
  26. package/dist/cjs/overlays/tooltip/Tooltip.js +1 -2
  27. package/dist/cjs/typography/Copy.js +1 -2
  28. package/dist/esm/components/animations/Animations.js +51 -47
  29. package/dist/esm/components/button/Button.js +1 -1
  30. package/dist/esm/components/callout/Callout.js +4 -4
  31. package/dist/esm/components/collapsable/Collapsable.js +4 -5
  32. package/dist/esm/components/dropdown/DropdownTool.js +1 -2
  33. package/dist/esm/components/media/Media.js +9 -8
  34. package/dist/esm/components/menu/Menu.js +1 -2
  35. package/dist/esm/components/menu/MenuItem.js +0 -1
  36. package/dist/esm/components/navigator/Navigator.js +2 -3
  37. package/dist/esm/components/panel/Panel.js +8 -8
  38. package/dist/esm/components/tabpanel/Tab.js +0 -1
  39. package/dist/esm/core/aside/Aside.js +4 -5
  40. package/dist/esm/core/page/Page.js +2 -2
  41. package/dist/esm/hooks/useStepper.js +0 -1
  42. package/dist/esm/index.js +1 -2
  43. package/dist/esm/overlays/alert/Alert.js +1 -2
  44. package/dist/esm/overlays/flyout/Flyout.js +3 -4
  45. package/dist/esm/overlays/modal/Modal.js +3 -4
  46. package/dist/esm/overlays/toast/Toast.js +2 -3
  47. package/dist/esm/overlays/tooltip/Tooltip.js +1 -2
  48. package/dist/esm/typography/Copy.js +1 -2
  49. package/dist/types/components/animations/Animations.d.ts +28 -9
  50. package/dist/types/components/collapsable/Collapsable.d.ts +2 -2
  51. package/dist/types/components/index.d.ts +1 -1
  52. package/dist/types/components/panel/Panel.d.ts +1 -1
  53. package/dist/types/core/aside/Aside.d.ts +1 -1
  54. package/dist/types/index.d.ts +0 -1
  55. package/dist/types/types/index.d.ts +9 -3
  56. package/package.json +6 -3
  57. package/src/components/animations/Animations.tsx +53 -45
  58. package/src/components/button/Button.tsx +1 -1
  59. package/src/components/callout/Callout.tsx +4 -5
  60. package/src/components/collapsable/Collapsable.tsx +4 -5
  61. package/src/components/dropdown/DropdownTool.tsx +1 -2
  62. package/src/components/index.ts +3 -3
  63. package/src/components/media/Media.tsx +7 -8
  64. package/src/components/menu/Menu.tsx +1 -2
  65. package/src/components/navigator/Navigator.tsx +2 -3
  66. package/src/components/panel/Panel.tsx +14 -8
  67. package/src/core/aside/Aside.tsx +4 -5
  68. package/src/core/page/Page.tsx +2 -2
  69. package/src/index.ts +0 -1
  70. package/src/overlays/alert/Alert.tsx +1 -2
  71. package/src/overlays/flyout/Flyout.tsx +3 -4
  72. package/src/overlays/modal/Modal.tsx +3 -4
  73. package/src/overlays/toast/Toast.tsx +2 -3
  74. package/src/overlays/tooltip/Tooltip.tsx +1 -2
  75. package/src/types/index.ts +32 -2
  76. package/src/typography/Copy.tsx +1 -2
  77. package/css/flags.rect.css +0 -1607
  78. package/css/flags.wavy.css +0 -1606
  79. package/dist/cjs/types/icons.js +0 -212
  80. package/dist/esm/types/icons.js +0 -214
  81. package/dist/types/types/icons.d.ts +0 -210
  82. package/src/types/icons.ts +0 -451
@@ -23,7 +23,7 @@
23
23
 
24
24
  @layer components {
25
25
  .fabric-buttonWrapper {
26
- --color: var(--color-primary-500);
26
+ --color: var(--color-tint-700);
27
27
 
28
28
  font-size: 1rem;
29
29
  border-radius: var(--rounding);
@@ -132,6 +132,10 @@
132
132
  --bg-click: color-mix(in lab, var(--color) 25%, var(--fabric-bg));
133
133
  --bg-active: color-mix(in lab, var(--color) 24%, var(--fabric-bg));
134
134
 
135
+ &[data-color="primary"] {
136
+ --color: var(--color-primary-500);
137
+ }
138
+
135
139
  &[data-color="accent"] {
136
140
  --color: var(--color-accent-500);
137
141
  }
@@ -152,6 +156,10 @@
152
156
  --color: var(--color-warning-500);
153
157
  }
154
158
 
159
+ &[data-color="muted"] {
160
+ --color: var(--color-tint-300);
161
+ }
162
+
155
163
  &[data-variant="outline"] {
156
164
  --outline: var(--color);
157
165
  }
@@ -265,7 +273,7 @@
265
273
 
266
274
  .fabric-buttonIcon,
267
275
  .fabric-buttonLabel {
268
- transform: translateY(1px);
276
+ translate: 0 1px;
269
277
  }
270
278
  }
271
279
 
@@ -69,6 +69,6 @@
69
69
  }
70
70
 
71
71
  [dir="rtl"] .fabric-icon[data-flip="true"] {
72
- transform: scaleX(-1);
72
+ scale: -1 1;
73
73
  }
74
74
  }
@@ -233,7 +233,7 @@
233
233
  h5,
234
234
  h6,
235
235
  .mixed-lang {
236
- text-align: right;
236
+ text-align: start;
237
237
  }
238
238
  }
239
239
  }
@@ -63,7 +63,7 @@
63
63
  [data-color-scheme="light"] {
64
64
  --fabric-bg: var(--color-white);
65
65
  --fabric-text: var(--color-black);
66
- --fabric-input: color-mix(in lab, var(--fabric-bg) 90%, #fff);
66
+ --fabric-input: #fdfdfd;
67
67
  --fabric-input-focus: #fff;
68
68
  --fabric-shadow: #8ba0b0;
69
69
 
@@ -73,8 +73,8 @@
73
73
  [data-color-scheme="dark"] {
74
74
  --fabric-bg: var(--color-black);
75
75
  --fabric-text: var(--color-white);
76
- --fabric-input: color-mix(in lab, var(--fabric-bg) 80%, #0a1218);
77
- --fabric-input-focus: color-mix(in lab, var(--fabric-bg) 60%, #0a1218);
76
+ --fabric-input: #141A1F;
77
+ --fabric-input-focus: #0a1218;
78
78
  --fabric-shadow: #010101;
79
79
 
80
80
  color-scheme: dark;
package/css/styles.css CHANGED
@@ -29,4 +29,6 @@
29
29
  @import "./core/index.css";
30
30
  @import "./components/index.css";
31
31
 
32
+ @plugin "@iconify/tailwind4";
33
+
32
34
  @source "../../";
@@ -22,8 +22,8 @@
22
22
  */
23
23
 
24
24
  @theme static {
25
- --color-black: #121213;
26
- --color-white: #fffefd;
25
+ --color-black: #151b1f;
26
+ --color-white: #fefefe;
27
27
  --color-silver: #989da5;
28
28
  --color-steel: #7c99af;
29
29
  --color-olive: #769b8d;
@@ -83,35 +83,31 @@ var AnimationIndicator = function AnimationIndicator(_ref) {
83
83
  };
84
84
 
85
85
  /**
86
- * A component that displays an animated bars loader.
87
- * It can be customized with color and size properties.
88
- * This component is typically used to indicate loading states in the UI.
89
- *
90
- * @param {Object} props - The properties for the AnimationBars component.
91
- * @param {ColorType | PaletteType | string} [props.color="tint-500"] - The color of the bars.
92
- * @param {number | string} [props.size="2rem"] - The size of the bars.
93
- * @returns {JSX.Element} The rendered AnimationBars component.
94
- *
95
- * @example
96
- * ```jsx
97
- * <AnimationBars color="primary-500" size="3rem" />
98
- * ```
86
+ * A component that displays a loading animation with a customizable icon, color, size, and mask blur.
87
+ * It is typically used to indicate loading states in the UI.
99
88
  *
100
- * @see {@link https://adarshpastakia.github.io/react-fabric/?path=/story/core-components-animations--docs} for more details.
89
+ * @param {Object} props - The properties for the AnimationLoader component.
90
+ * @param {ColorType | PaletteType | string} [props.color="tint-500"] - The color of the loader icon.
91
+ * @param {number | string} [props.size="2rem"] - The size of the loader icon.
92
+ * @param {string} props.icon - The icon to be displayed as the loader.
93
+ * @param {"sm" | "md" | "lg"} [props.maskBlur] - The blur effect for the background mask.
94
+ * @returns {JSX.Element} The rendered AnimationLoader component.
101
95
  */
102
- var AnimationBars = function AnimationBars(_ref2) {
96
+ var AnimationLoader = function AnimationLoader(_ref2) {
103
97
  var _ref2$color = _ref2.color,
104
98
  color = _ref2$color === void 0 ? "tint-500" : _ref2$color,
105
99
  _ref2$size = _ref2.size,
106
- size = _ref2$size === void 0 ? "2rem" : _ref2$size;
100
+ size = _ref2$size === void 0 ? "2rem" : _ref2$size,
101
+ icon = _ref2.icon,
102
+ maskBlur = _ref2.maskBlur;
107
103
  return /*#__PURE__*/jsxRuntime.jsx("div", {
108
- className: classNames("absolute inset-0 z-10 flex justify-center items-center cursor-wait"),
104
+ className: classNames("absolute inset-0 z-10 flex justify-center items-center cursor-wait", maskBlur === "sm" && "backdrop-blur-sm", maskBlur === "md" && "backdrop-blur-md", maskBlur === "lg" && "backdrop-blur-lg"),
109
105
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
110
- className: classNames("outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm rounded"),
106
+ className: classNames("outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm leading-0 rounded"),
111
107
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
112
- className: classNames("fabric-bars"),
108
+ className: classNames("aspect-square", icon),
113
109
  style: {
114
- width: size,
110
+ fontSize: size,
115
111
  color: getColor.getColor(color)
116
112
  }
117
113
  })
@@ -119,42 +115,50 @@ var AnimationBars = function AnimationBars(_ref2) {
119
115
  });
120
116
  };
121
117
 
118
+ /**
119
+ * A component that displays an animated bars loader.
120
+ * It can be customized with color and size properties.
121
+ * This component is typically used to indicate loading states in the UI.
122
+ *
123
+ * @param {Object} props - The properties for the LoadingBars component.
124
+ * @param {ColorType | PaletteType | string} [props.color="tint-500"] - The color of the bars.
125
+ * @param {number | string} [props.size="2rem"] - The size of the bars.
126
+ * @returns {JSX.Element} The rendered LoadingBars component.
127
+ *
128
+ * @example
129
+ * ```jsx
130
+ * <LoadingBars color="primary-500" size="3rem" />
131
+ * ```
132
+ *
133
+ * @see {@link https://adarshpastakia.github.io/react-fabric/?path=/story/core-components-animations--docs} for more details.
134
+ */
135
+ var LoadingBars = function LoadingBars(props) {
136
+ return /*#__PURE__*/jsxRuntime.jsx(AnimationLoader, _objectSpread({
137
+ icon: "icon-[svg-spinners--bars-scale-fade]"
138
+ }, props));
139
+ };
140
+
122
141
  /**
123
142
  * A component that displays a spinner animation.
124
143
  * It can be customized with color and size properties.
125
144
  * This component is typically used to indicate loading states in the UI.
126
145
  *
127
- * @param {Object} props - The properties for the AnimationSpinner component.
146
+ * @param {Object} props - The properties for the LoadingSpinner component.
128
147
  * @param {ColorType | PaletteType | string} [props.color="tint-700"] - The color of the spinner.
129
148
  * @param {number | string} [props.size="2rem"] - The size of the spinner.
130
- * @returns {JSX.Element} The rendered AnimationSpinner component.
149
+ * @returns {JSX.Element} The rendered LoadingSpinner component.
131
150
  *
132
151
  * @example
133
152
  * ```jsx
134
- * <AnimationSpinner color="primary-500" size="3rem" />
153
+ * <LoadingSpinner color="primary-500" size="3rem" />
135
154
  * ```
136
155
  *
137
156
  * @see {@link https://adarshpastakia.github.io/react-fabric/?path=/story/core-components-animations--docs} for more details.
138
157
  */
139
- var AnimationSpinner = function AnimationSpinner(_ref3) {
140
- var _ref3$color = _ref3.color,
141
- color = _ref3$color === void 0 ? "tint-700" : _ref3$color,
142
- _ref3$size = _ref3.size,
143
- size = _ref3$size === void 0 ? "2rem" : _ref3$size;
144
- return /*#__PURE__*/jsxRuntime.jsx("div", {
145
- className: classNames("absolute inset-0 z-10 flex justify-center items-center cursor-wait"),
146
- "data-ref": "spinner",
147
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
148
- className: classNames("outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm rounded"),
149
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
150
- className: classNames("fabric-spinner"),
151
- style: {
152
- width: size,
153
- color: getColor.getColor(color)
154
- }
155
- })
156
- })
157
- });
158
+ var LoadingSpinner = function LoadingSpinner(props) {
159
+ return /*#__PURE__*/jsxRuntime.jsx(AnimationLoader, _objectSpread({
160
+ icon: "icon-[svg-spinners--eclipse]"
161
+ }, props));
158
162
  };
159
163
 
160
164
  /**
@@ -174,9 +178,9 @@ var AnimationSpinner = function AnimationSpinner(_ref3) {
174
178
  *
175
179
  * @see {@link https://adarshpastakia.github.io/react-fabric/?path=/story/core-components-animations--docs} for more details.
176
180
  */
177
- var Skeleton = function Skeleton(_ref4) {
178
- var className = _ref4.className,
179
- rest = _objectWithoutProperties(_ref4, _excluded2);
181
+ var Skeleton = function Skeleton(_ref3) {
182
+ var className = _ref3.className,
183
+ rest = _objectWithoutProperties(_ref3, _excluded2);
180
184
  return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread(_objectSpread({
181
185
  className: classNames(className, "p-2 animate-pulse flex gap-2 max-w-lg"),
182
186
  "data-ref": "skeleton"
@@ -212,7 +216,7 @@ var Skeleton = function Skeleton(_ref4) {
212
216
  *
213
217
  * @returns {JSX.Element} The rendered Loading component.
214
218
  */
215
- var Loading = function Loading() {
219
+ var LoadingLine = function LoadingLine() {
216
220
  return /*#__PURE__*/jsxRuntime.jsx("div", {
217
221
  className: classNames("fabric-loader", "area-[loader] relative overflow-x-clip"),
218
222
  "data-ref": "loading",
@@ -222,8 +226,9 @@ var Loading = function Loading() {
222
226
  });
223
227
  };
224
228
 
225
- exports.AnimationBars = AnimationBars;
226
229
  exports.AnimationIndicator = AnimationIndicator;
227
- exports.AnimationSpinner = AnimationSpinner;
228
- exports.Loading = Loading;
230
+ exports.AnimationLoader = AnimationLoader;
231
+ exports.LoadingBars = LoadingBars;
232
+ exports.LoadingLine = LoadingLine;
233
+ exports.LoadingSpinner = LoadingSpinner;
229
234
  exports.Skeleton = Skeleton;
@@ -50,7 +50,7 @@ var Button = function Button(_ref) {
50
50
  className = _ref.className,
51
51
  active = _ref.active,
52
52
  _ref$color = _ref.color,
53
- color = _ref$color === void 0 ? "primary" : _ref$color,
53
+ color = _ref$color === void 0 ? "default" : _ref$color,
54
54
  icon = _ref.icon,
55
55
  _ref$iconAlign = _ref.iconAlign,
56
56
  iconAlign = _ref$iconAlign === void 0 ? "start" : _ref$iconAlign,
@@ -3,7 +3,6 @@
3
3
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
4
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
5
  var classNames = require('classnames');
6
- var icons = require('../../types/icons.js');
7
6
  var Icon = require('../icon/Icon.js');
8
7
  var jsxRuntime = require('react/jsx-runtime');
9
8
 
@@ -13,7 +12,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
13
12
  // colors for different callout types
14
13
  var colors = {
15
14
  none: "bg-base text-tint-900 border-tint-100",
16
- tint: "bg-tint-50/50 text-tint-800 border-tint-300",
15
+ "default": "bg-tint-50/50 text-tint-800 border-tint-300",
16
+ muted: "bg-tint-50/50 text-muted border-muted",
17
17
  primary: "bg-primary-50/50 text-primary-800 border-primary-300",
18
18
  accent: "bg-accent-50/50 text-accent-800 border-accent-300",
19
19
  info: "bg-info-50/50 text-info-800 border-info-300",
@@ -51,7 +51,7 @@ var colors = {
51
51
  var Callout = function Callout(_ref) {
52
52
  var children = _ref.children,
53
53
  _ref$color = _ref.color,
54
- color = _ref$color === void 0 ? "tint" : _ref$color,
54
+ color = _ref$color === void 0 ? "default" : _ref$color,
55
55
  legend = _ref.legend,
56
56
  title = _ref.title,
57
57
  icon = _ref.icon,
@@ -86,7 +86,7 @@ var Callout = function Callout(_ref) {
86
86
  size: "md",
87
87
  "data-ref": "calloutClose",
88
88
  className: classNames("absolute end-2", legend ? "top-0" : "top-2"),
89
- icon: icons.CoreIcons.close,
89
+ icon: "icon-[mdi--close]",
90
90
  onClick: onClose
91
91
  })]
92
92
  }));
@@ -6,7 +6,6 @@ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
6
6
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
7
7
  var classNames = require('classnames');
8
8
  var react = require('react');
9
- var icons = require('../../types/icons.js');
10
9
  var Icon = require('../icon/Icon.js');
11
10
  var jsxRuntime = require('react/jsx-runtime');
12
11
 
@@ -26,8 +25,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
26
25
  * ```jsx
27
26
  * <Collapsable
28
27
  * iconAlign="start"
29
- * iconOpen={CoreIcons.chevronDown}
30
- * iconClosed={CoreIcons.chevronRight}
28
+ * iconOpen="icon-[mdi--chevron-down]"
29
+ * iconClosed="icon-[mdi--chevron-right]"
31
30
  * open={true}
32
31
  * onOpen={() => console.log("Opened")}
33
32
  * onClose={() => console.log("Closed")}
@@ -49,9 +48,9 @@ var Collapsable = function Collapsable(_ref) {
49
48
  iconAlign = _ref.iconAlign,
50
49
  stickyHeader = _ref.stickyHeader,
51
50
  _ref$iconClosed = _ref.iconClosed,
52
- iconClosed = _ref$iconClosed === void 0 ? icons.CoreIcons.chevronRight : _ref$iconClosed,
51
+ iconClosed = _ref$iconClosed === void 0 ? "icon-[mdi--chevron-right]" : _ref$iconClosed,
53
52
  _ref$iconOpen = _ref.iconOpen,
54
- iconOpen = _ref$iconOpen === void 0 ? icons.CoreIcons.chevronDown : _ref$iconOpen,
53
+ iconOpen = _ref$iconOpen === void 0 ? "icon-[mdi--chevron-down]" : _ref$iconOpen,
55
54
  open = _ref.open;
56
55
  _ref.onClose;
57
56
  _ref.onOpen;
@@ -3,7 +3,6 @@
3
3
  var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
4
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
5
  var classNames = require('classnames');
6
- var icons = require('../../types/icons.js');
7
6
  var Icon = require('../icon/Icon.js');
8
7
  var Dropdown = require('./Dropdown.js');
9
8
  var jsxRuntime = require('react/jsx-runtime');
@@ -19,7 +18,7 @@ var DropdownTool = function DropdownTool(_ref) {
19
18
  props = _objectWithoutProperties(_ref, _excluded);
20
19
  return /*#__PURE__*/jsxRuntime.jsxs(Dropdown.Dropdown, _objectSpread(_objectSpread({}, props), {}, {
21
20
  children: [/*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
22
- icon: icon !== null && icon !== void 0 ? icon : icons.CoreIcons.caretDown,
21
+ icon: icon !== null && icon !== void 0 ? icon : "icon-[mdi--menu-down]",
23
22
  className: classNames("outline bg-tint-50/50 flex-content pointer-events-auto cursor-pointer", className, groupHover && "hidden group-hover/tool:inline-block data-dropdown-open:inline-block")
24
23
  }), children]
25
24
  }));
@@ -6,7 +6,6 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
6
6
  var utilities = require('@react-fabric/utilities');
7
7
  var classNames = require('classnames');
8
8
  var react = require('react');
9
- var icons = require('../../types/icons.js');
10
9
  var Button = require('../button/Button.js');
11
10
  var Icon = require('../icon/Icon.js');
12
11
  var jsxRuntime = require('react/jsx-runtime');
@@ -21,8 +20,10 @@ var cover = {
21
20
  contain: "object-contain"
22
21
  };
23
22
  var loadIndicator = /*#__PURE__*/jsxRuntime.jsx("div", {
24
- className: classNames("fabric-mediaPlaceholder", "absolute z-1 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-4xl text-gray animate-pulse"),
25
- children: "\u25CF\u25CF\u25CF"
23
+ className: classNames("fabric-mediaPlaceholder", "absolute z-1 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-sm text-gray"),
24
+ children: /*#__PURE__*/jsxRuntime.jsx("i", {
25
+ className: "icon-[svg-spinners--pulse-rings-2]"
26
+ })
26
27
  });
27
28
 
28
29
  /**
@@ -94,7 +95,7 @@ var Image = function Image(_ref) {
94
95
  }), errored && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
95
96
  size: "2rem",
96
97
  className: "absolute text-tint-300 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
97
- icon: icons.CoreIcons.mediaImageBroken
98
+ icon: "icon-[mdi--image-off-outline]"
98
99
  })]
99
100
  }));
100
101
  };
@@ -211,7 +212,7 @@ var Video = function Video(_ref2) {
211
212
  rounded: true,
212
213
  variant: "link",
213
214
  className: "fabric-mediaControlPlaceholder",
214
- icon: icons.CoreIcons.ellipsis,
215
+ icon: "icon-[mdi--dots-vertical]",
215
216
  "aria-label": "controls"
216
217
  }), /*#__PURE__*/jsxRuntime.jsx(Button.Button, {
217
218
  rounded: true,
@@ -221,7 +222,7 @@ var Video = function Video(_ref2) {
221
222
  onClick: function onClick() {
222
223
  videoRef.current && (videoRef.current.volume = videoRef.current.volume ? 0 : 1);
223
224
  },
224
- icon: volume ? icons.CoreIcons.volumeOn : icons.CoreIcons.volumeOff
225
+ icon: volume ? "icon-[mdi--volume]" : "icon-[mdi--volume-mute]"
225
226
  }), /*#__PURE__*/jsxRuntime.jsx(Button.Button, {
226
227
  rounded: true,
227
228
  variant: "link",
@@ -231,13 +232,13 @@ var Video = function Video(_ref2) {
231
232
  var _videoRef$current3, _videoRef$current4, _videoRef$current5;
232
233
  (_videoRef$current3 = videoRef.current) !== null && _videoRef$current3 !== void 0 && _videoRef$current3.paused ? (_videoRef$current4 = videoRef.current) === null || _videoRef$current4 === void 0 ? void 0 : _videoRef$current4.play() : (_videoRef$current5 = videoRef.current) === null || _videoRef$current5 === void 0 ? void 0 : _videoRef$current5.pause();
233
234
  },
234
- icon: state ? icons.CoreIcons.pause : icons.CoreIcons.play
235
+ icon: state ? "icon-[mdi--pause]" : "icon-[mdi--play]"
235
236
  })]
236
237
  })]
237
238
  }), errored && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
238
239
  size: "2rem",
239
240
  className: "absolute text-tint-300 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",
240
- icon: icons.CoreIcons.mediaVideoBroken
241
+ icon: "icon-[mdi--video-off-outline]"
241
242
  })]
242
243
  }));
243
244
  };
@@ -8,7 +8,6 @@ var utilities = require('@react-fabric/utilities');
8
8
  var classNames = require('classnames');
9
9
  var react$1 = require('react');
10
10
  var HotKeyWrapper = require('../../hotkeys/HotKeyWrapper.js');
11
- var icons = require('../../types/icons.js');
12
11
  var cloneElement = require('../../utils/cloneElement.js');
13
12
  var nodeCheck = require('../../utils/nodeCheck.js');
14
13
  var MenuItem = require('./MenuItem.js');
@@ -166,7 +165,7 @@ var MenuComponent = function MenuComponent(_ref) {
166
165
  }))), {}, {
167
166
  "data-open": isOpen,
168
167
  minimal: minimal,
169
- altIcon: icons.CoreIcons.chevronRight,
168
+ altIcon: "icon-[mdi--menu-right]",
170
169
  ref: utilities.mergeRefs(refs.setReference, ref)
171
170
  })), /*#__PURE__*/jsxRuntime.jsx(react.FloatingList, {
172
171
  elementsRef: elementsRef,
@@ -15,7 +15,6 @@ var jsxRuntime = require('react/jsx-runtime');
15
15
  var Tooltip = require('../../overlays/tooltip/Tooltip.js');
16
16
  var Badge = require('../badge/Badge.js');
17
17
  var Icon = require('../icon/Icon.js');
18
- require('../../types/icons.js');
19
18
  require('../../hotkeys/HotKeyWrapper.js');
20
19
 
21
20
  var _excluded = ["as", "label", "color", "className", "icon", "appendLabel", "altIcon", "id", "active", "disabled", "onClick", "badge", "hotKey", "tabIndex", "minimal", "data-open", "ref"],
@@ -5,7 +5,6 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
5
5
  var classNames = require('classnames');
6
6
  var react = require('react');
7
7
  var HotKey = require('../../hotkeys/HotKey.js');
8
- var icons = require('../../types/icons.js');
9
8
  var Icon = require('../icon/Icon.js');
10
9
  var utilities = require('@react-fabric/utilities');
11
10
  var jsxRuntime = require('react/jsx-runtime');
@@ -66,7 +65,7 @@ var Navigator = function Navigator(_ref) {
66
65
  className: "text-[1em] p-1",
67
66
  "aria-label": "previous",
68
67
  "data-ref": "previous",
69
- icon: icons.CoreIcons.chevronLeft,
68
+ icon: "icon-[mdi--chevron-left]",
70
69
  disabled: !utilities.isEmpty(current) && current === 0,
71
70
  onClick: function onClick(e) {
72
71
  return [e.stopPropagation(), navPrev()];
@@ -77,7 +76,7 @@ var Navigator = function Navigator(_ref) {
77
76
  color: color,
78
77
  "aria-label": "next",
79
78
  "data-ref": "next",
80
- icon: icons.CoreIcons.chevronRight,
79
+ icon: "icon-[mdi--chevron-right]",
81
80
  disabled: !utilities.isEmpty(current) && current + 1 === length,
82
81
  onClick: function onClick(e) {
83
82
  return [e.stopPropagation(), navNext()];
@@ -7,7 +7,6 @@ var classNames = require('classnames');
7
7
  var react = require('react');
8
8
  var usePropToggle = require('../../hooks/usePropToggle.js');
9
9
  var HotKey = require('../../hotkeys/HotKey.js');
10
- var icons = require('../../types/icons.js');
11
10
  var Animations = require('../animations/Animations.js');
12
11
  var Icon = require('../icon/Icon.js');
13
12
  var jsxRuntime = require('react/jsx-runtime');
@@ -30,7 +29,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
30
29
  * ```jsx
31
30
  * <Panel
32
31
  * title="Panel Title"
33
- * icon={CoreIcons.info}
32
+ * icon="icon-[mdi--info]"
34
33
  * actions={<button>Action</button>}
35
34
  * expandable
36
35
  * collapsable
@@ -112,9 +111,10 @@ var Panel = function Panel(_ref) {
112
111
  "data-ref": "panelHeader",
113
112
  onClick: collapsable ? toggleCollapse : undefined,
114
113
  children: [onBack && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
114
+ rtlFlip: true,
115
115
  "data-ref": "panelBack",
116
116
  className: classNames("fabric-panelAction", "cursor-pointer"),
117
- icon: icons.CoreIcons.chevronLeft,
117
+ icon: "icon-[mdi--chevron-left]",
118
118
  onClick: onBack
119
119
  }), icon && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, _objectSpread({
120
120
  className: "p-2 text-md select-none pointer-events-none"
@@ -133,24 +133,24 @@ var Panel = function Panel(_ref) {
133
133
  children: [expandable && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
134
134
  "data-ref": "panelExpand",
135
135
  className: classNames("fabric-panelAction", "cursor-pointer"),
136
- icon: expanded ? icons.CoreIcons.minimize : icons.CoreIcons.maximize,
136
+ icon: expanded ? "icon-[mdi--fullscreen-exit]" : "icon-[mdi--fullscreen]",
137
137
  onClick: toggleExpand
138
138
  }), !expanded && collapsable && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
139
139
  "data-ref": "panelCollapse",
140
140
  className: classNames("fabric-panelAction", "cursor-pointer"),
141
- icon: collapsed ? icons.CoreIcons.expand : icons.CoreIcons.collapse,
141
+ icon: collapsed ? "icon-[mdi--plus-box]" : "icon-[mdi--minus-box]",
142
142
  onClick: toggleCollapse
143
143
  }), !expanded && onClose && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
144
144
  "data-ref": "panelClose",
145
145
  className: classNames("fabric-panelAction", "cursor-pointer"),
146
- icon: icons.CoreIcons.close,
146
+ icon: "icon-[mdi--close]",
147
147
  onClick: onClose
148
148
  })]
149
149
  })]
150
150
  }), (!collapsed || expanded) && /*#__PURE__*/jsxRuntime.jsxs("div", {
151
151
  "data-ref": "panelBody",
152
152
  className: classNames("fabric-panelBody", "area-content grid overflow-hidden"),
153
- children: [loading && /*#__PURE__*/jsxRuntime.jsx(Animations.Loading, {}), children]
153
+ children: [loading && /*#__PURE__*/jsxRuntime.jsx(Animations.LoadingLine, {}), children]
154
154
  })]
155
155
  }));
156
156
  };
@@ -14,7 +14,6 @@ require('../../hotkeys/HotKeyWrapper.js');
14
14
  var Tooltip = require('../../overlays/tooltip/Tooltip.js');
15
15
  var Badge = require('../badge/Badge.js');
16
16
  var Icon = require('../icon/Icon.js');
17
- require('../../types/icons.js');
18
17
  var DropdownTool = require('../dropdown/DropdownTool.js');
19
18
 
20
19
  var _excluded = ["ref", "as", "id", "className", "label", "icon", "badge", "disabled", "onClose", "active", "onClick", "tabFlex", "color", "actions", "tooltip", "activeClassName"];
@@ -9,7 +9,6 @@ var Icon = require('../../components/icon/Icon.js');
9
9
  var useEffectDebugger = require('../../hooks/useEffectDebugger.js');
10
10
  var usePropToggle = require('../../hooks/usePropToggle.js');
11
11
  var useResize = require('../../hooks/useResize.js');
12
- var icons = require('../../types/icons.js');
13
12
  var ErrorBoundary = require('../boundary/ErrorBoundary.js');
14
13
  var jsxRuntime = require('react/jsx-runtime');
15
14
 
@@ -27,7 +26,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
27
26
  * ```jsx
28
27
  * <Aside
29
28
  * title="Sidebar Title"
30
- * icon={CoreIcons.menu}
29
+ * icon=icon-[mdi--menu]
31
30
  * rtlFlip={true}
32
31
  * className="custom-aside"
33
32
  * bodyClassName="custom-aside-body"
@@ -151,7 +150,7 @@ var Aside = function Aside(_ref) {
151
150
  }), collapsable && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
152
151
  "aria-label": isCollapsed ? "expand" : "collapse",
153
152
  className: classNames("fabric-asideCollapse", "p-2 select-none"),
154
- icon: icons.CoreIcons.chevronLeft,
153
+ icon: "icon-[mdi--chevron-left]",
155
154
  rtlFlip: true,
156
155
  onClick: toggleCollapse,
157
156
  "data-ref": "asideToggle"
@@ -161,7 +160,7 @@ var Aside = function Aside(_ref) {
161
160
  className: "fabric-asideActions",
162
161
  children: actions
163
162
  })]
164
- }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.Loading, {}), isCollapsed && /*#__PURE__*/jsxRuntime.jsx("div", {
163
+ }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.LoadingLine, {}), isCollapsed && /*#__PURE__*/jsxRuntime.jsx("div", {
165
164
  role: "none",
166
165
  onClick: tryPeek,
167
166
  "data-ref": "asidePlaceholder",
@@ -60,7 +60,7 @@ var Page = function Page(_ref) {
60
60
  children: [icon && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, _objectSpread({
61
61
  size: "1.25em"
62
62
  }, Icon.getIconProps(icon))), title]
63
- }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.Loading, {}), children]
63
+ }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.LoadingLine, {}), children]
64
64
  }));
65
65
  };
66
66
 
@@ -13,7 +13,6 @@ var Icon = require('../components/icon/Icon.js');
13
13
  require('@floating-ui/react');
14
14
  require('../hotkeys/HotKeyWrapper.js');
15
15
  require('react-i18next');
16
- require('../types/icons.js');
17
16
  require('@babel/runtime/helpers/toConsumableArray');
18
17
  require('@babel/runtime/helpers/classCallCheck');
19
18
  require('@babel/runtime/helpers/createClass');
package/dist/cjs/index.js CHANGED
@@ -50,7 +50,6 @@ require('@floating-ui/react');
50
50
  require('classnames');
51
51
  require('react');
52
52
  require('react-i18next');
53
- var icons = require('./types/icons.js');
54
53
  var Title = require('./typography/Title.js');
55
54
  var cloneElement = require('./utils/cloneElement.js');
56
55
  require('@react-fabric/utilities');
@@ -82,10 +81,10 @@ var Global = require('./context/Global.js');
82
81
 
83
82
 
84
83
  exports.ActionLabel = ActionLabel.ActionLabel;
85
- exports.AnimationBars = Animations.AnimationBars;
86
84
  exports.AnimationIndicator = Animations.AnimationIndicator;
87
- exports.AnimationSpinner = Animations.AnimationSpinner;
88
- exports.Loading = Animations.Loading;
85
+ exports.LoadingBars = Animations.LoadingBars;
86
+ exports.LoadingLine = Animations.LoadingLine;
87
+ exports.LoadingSpinner = Animations.LoadingSpinner;
89
88
  exports.Skeleton = Animations.Skeleton;
90
89
  exports.Avatar = Avatar.Avatar;
91
90
  exports.AvatarGroup = AvatarGroup.AvatarGroup;
@@ -136,10 +135,6 @@ exports.Section = Section.Section;
136
135
  exports.ThemeProvider = ThemeProvider.ThemeProvider;
137
136
  exports.Viewport = Viewport.Viewport;
138
137
  exports.addTranslationBundle = index.addTranslationBundle;
139
- Object.defineProperty(exports, "CoreIcons", {
140
- enumerable: true,
141
- get: function () { return icons.CoreIcons; }
142
- });
143
138
  exports.Title = Title.Title;
144
139
  exports.cloneChildren = cloneElement.cloneChildren;
145
140
  exports.Flyout = Flyout.Flyout;
@@ -9,7 +9,6 @@ var reactI18next = require('react-i18next');
9
9
  var Animations = require('../../components/animations/Animations.js');
10
10
  var Button = require('../../components/button/Button.js');
11
11
  var Icon = require('../../components/icon/Icon.js');
12
- var icons = require('../../types/icons.js');
13
12
  var Title = require('../../typography/Title.js');
14
13
  var jsxRuntime = require('react/jsx-runtime');
15
14
  var getColor = require('../../utils/getColor.js');
@@ -180,7 +179,7 @@ var Alert = function Alert(_ref) {
180
179
  onClick: function onClick() {
181
180
  return handleClose(false);
182
181
  },
183
- icon: icons.CoreIcons.close,
182
+ icon: "icon-[mdi--close]",
184
183
  "aria-label": "close"
185
184
  })
186
185
  })]