@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
@@ -10,7 +10,6 @@ var Animations = require('../../components/animations/Animations.js');
10
10
  var Icon = require('../../components/icon/Icon.js');
11
11
  var HeadFoot = require('../../core/headfoot/HeadFoot.js');
12
12
  var HotKeyWrapper = require('../../hotkeys/HotKeyWrapper.js');
13
- var icons = require('../../types/icons.js');
14
13
  var jsxRuntime = require('react/jsx-runtime');
15
14
 
16
15
  var _excluded = ["icon", "iconClassName", "title", "actions", "closeOnClick", "headerClassName", "onClose", "onBeforeClose", "children", "loading", "size", "width", "minWidth", "root", "hideMask", "align"];
@@ -116,12 +115,12 @@ var Flyout = function Flyout(_ref) {
116
115
  }), actions, /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
117
116
  "data-ref": "panelClose",
118
117
  className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-center"),
119
- icon: icons.CoreIcons.close,
118
+ icon: "icon-[mdi--close]",
120
119
  onClick: function onClick() {
121
120
  return handleClose(false);
122
121
  }
123
122
  })]
124
- }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.Loading, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
123
+ }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.LoadingLine, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
125
124
  role: "dialog",
126
125
  className: classNames("fabric-flyoutBody", "flex-1 grid overflow-hidden"),
127
126
  tabIndex: 0,
@@ -10,7 +10,6 @@ var Animations = require('../../components/animations/Animations.js');
10
10
  var Icon = require('../../components/icon/Icon.js');
11
11
  var HeadFoot = require('../../core/headfoot/HeadFoot.js');
12
12
  var HotKeyWrapper = require('../../hotkeys/HotKeyWrapper.js');
13
- var icons = require('../../types/icons.js');
14
13
  var jsxRuntime = require('react/jsx-runtime');
15
14
 
16
15
  var _excluded = ["icon", "iconClassName", "title", "actions", "headerClassName", "onClose", "onBeforeClose", "children", "loading", "root", "size", "hideMask", "width", "height", "minHeight", "minWidth"];
@@ -108,12 +107,12 @@ var Modal = function Modal(_ref) {
108
107
  }), actions, /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
109
108
  "data-ref": "panelClose",
110
109
  className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-center"),
111
- icon: icons.CoreIcons.close,
110
+ icon: "icon-[mdi--close]",
112
111
  onClick: function onClick() {
113
112
  return handleClose(false);
114
113
  }
115
114
  })]
116
- }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.Loading, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
115
+ }), loading && /*#__PURE__*/jsxRuntime.jsx(Animations.LoadingLine, {}), /*#__PURE__*/jsxRuntime.jsx("div", {
117
116
  role: "dialog",
118
117
  className: classNames("fabric-modalBody", "flex-1 grid overflow-hidden"),
119
118
  tabIndex: 0,
@@ -6,7 +6,6 @@ var reactI18next = require('react-i18next');
6
6
  var Animations = require('../../components/animations/Animations.js');
7
7
  var Button = require('../../components/button/Button.js');
8
8
  var Icon = require('../../components/icon/Icon.js');
9
- var icons = require('../../types/icons.js');
10
9
  var jsxRuntime = require('react/jsx-runtime');
11
10
  var getColor = require('../../utils/getColor.js');
12
11
  require('@react-fabric/utilities');
@@ -122,7 +121,7 @@ var Toast = function Toast(_ref) {
122
121
  variant: "link",
123
122
  className: "m-0",
124
123
  color: color,
125
- icon: icons.CoreIcons.closeAll,
124
+ icon: "icon-[mdi--close-box-multiple-outline]",
126
125
  "aria-label": "close-all",
127
126
  onClick: onCloseAll
128
127
  }), /*#__PURE__*/jsxRuntime.jsx(Button.Button, {
@@ -130,7 +129,7 @@ var Toast = function Toast(_ref) {
130
129
  variant: "link",
131
130
  className: "m-0",
132
131
  color: color,
133
- icon: icons.CoreIcons.close,
132
+ icon: "icon-[mdi--close]",
134
133
  "aria-label": "close",
135
134
  onClick: function onClick() {
136
135
  return handleClose(false);
@@ -9,7 +9,6 @@ var classNames = require('classnames');
9
9
  var react = require('react');
10
10
  var Icon = require('../../components/icon/Icon.js');
11
11
  var useIsRtl = require('../../hooks/useIsRtl.js');
12
- var icons = require('../../types/icons.js');
13
12
  var jsxRuntime = require('react/jsx-runtime');
14
13
  var getColor = require('../../utils/getColor.js');
15
14
 
@@ -102,7 +101,7 @@ var Tooltip = function Tooltip(_ref) {
102
101
  className: "ms-2 cursor-pointer text-dimmed flex-content opacity-75 hover:opacity-90 active:opacity-60",
103
102
  onClick: handler,
104
103
  children: /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
105
- icon: icons.CoreIcons.copy
104
+ icon: "icon-[mdi--content-copy]"
106
105
  })
107
106
  });
108
107
  }
@@ -5,7 +5,6 @@ var react = require('react');
5
5
  var reactI18next = require('react-i18next');
6
6
  var Button = require('../components/button/Button.js');
7
7
  var Tooltip = require('../overlays/tooltip/Tooltip.js');
8
- var icons = require('../types/icons.js');
9
8
  var jsxRuntime = require('react/jsx-runtime');
10
9
 
11
10
  /*
@@ -45,7 +44,7 @@ var Copy = function Copy(_ref) {
45
44
  return /*#__PURE__*/jsxRuntime.jsx(Tooltip.Tooltip, {
46
45
  content: t("action.copy"),
47
46
  children: /*#__PURE__*/jsxRuntime.jsx(Button.Button, {
48
- icon: icons.CoreIcons.copy,
47
+ icon: "icon-[mdi--content-copy]",
49
48
  "aria-label": "Copy text",
50
49
  actionMessage: t("action.copied"),
51
50
  variant: "link",
@@ -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__*/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__*/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__*/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(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__*/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__*/jsx("div", {
145
- className: classNames("absolute inset-0 z-10 flex justify-center items-center cursor-wait"),
146
- "data-ref": "spinner",
147
- children: /*#__PURE__*/jsx("div", {
148
- className: classNames("outline outline-tint-500/20 p-4 bg-tint-50/50 backdrop-blur-sm rounded"),
149
- children: /*#__PURE__*/jsx("div", {
150
- className: classNames("fabric-spinner"),
151
- style: {
152
- width: size,
153
- color: getColor(color)
154
- }
155
- })
156
- })
157
- });
158
+ var LoadingSpinner = function LoadingSpinner(props) {
159
+ return /*#__PURE__*/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__*/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__*/jsx("div", {
217
221
  className: classNames("fabric-loader", "area-[loader] relative overflow-x-clip"),
218
222
  "data-ref": "loading",
@@ -222,4 +226,4 @@ var Loading = function Loading() {
222
226
  });
223
227
  };
224
228
 
225
- export { AnimationBars, AnimationIndicator, AnimationSpinner, Loading, Skeleton };
229
+ export { AnimationIndicator, AnimationLoader, LoadingBars, LoadingLine, LoadingSpinner, 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
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
4
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
5
  import classNames from 'classnames';
6
- import { CoreIcons } from '../../types/icons.js';
7
6
  import { Icon } from '../icon/Icon.js';
8
7
  import { jsxs, jsx } from '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: CoreIcons.close,
89
+ icon: "icon-[mdi--close]",
90
90
  onClick: onClose
91
91
  })]
92
92
  }));
@@ -6,7 +6,6 @@ import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
6
6
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
7
7
  import classNames from 'classnames';
8
8
  import { useState, useRef, useImperativeHandle, useEffect, useMemo, Children } from 'react';
9
- import { CoreIcons } from '../../types/icons.js';
10
9
  import { Icon } from '../icon/Icon.js';
11
10
  import { jsxs, jsx } from '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 ? 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 ? 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
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
4
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
5
  import classNames from 'classnames';
6
- import { CoreIcons } from '../../types/icons.js';
7
6
  import { Icon } from '../icon/Icon.js';
8
7
  import { Dropdown } from './Dropdown.js';
9
8
  import { jsxs, jsx } from 'react/jsx-runtime';
@@ -19,7 +18,7 @@ var DropdownTool = function DropdownTool(_ref) {
19
18
  props = _objectWithoutProperties(_ref, _excluded);
20
19
  return /*#__PURE__*/jsxs(Dropdown, _objectSpread(_objectSpread({}, props), {}, {
21
20
  children: [/*#__PURE__*/jsx(Icon, {
22
- icon: icon !== null && icon !== void 0 ? icon : 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 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
6
6
  import { getImageColorset } from '@react-fabric/utilities';
7
7
  import classNames from 'classnames';
8
8
  import { useState, useEffect, useRef, Fragment } from 'react';
9
- import { CoreIcons } from '../../types/icons.js';
10
9
  import { Button } from '../button/Button.js';
11
10
  import { Icon } from '../icon/Icon.js';
12
11
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -21,8 +20,10 @@ var cover = {
21
20
  contain: "object-contain"
22
21
  };
23
22
  var loadIndicator = /*#__PURE__*/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__*/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__*/jsx(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: 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: CoreIcons.ellipsis,
215
+ icon: "icon-[mdi--dots-vertical]",
215
216
  "aria-label": "controls"
216
217
  }), /*#__PURE__*/jsx(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 ? CoreIcons.volumeOn : CoreIcons.volumeOff
225
+ icon: volume ? "icon-[mdi--volume]" : "icon-[mdi--volume-mute]"
225
226
  }), /*#__PURE__*/jsx(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 ? CoreIcons.pause : CoreIcons.play
235
+ icon: state ? "icon-[mdi--pause]" : "icon-[mdi--play]"
235
236
  })]
236
237
  })]
237
238
  }), errored && /*#__PURE__*/jsx(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: CoreIcons.mediaVideoBroken
241
+ icon: "icon-[mdi--video-off-outline]"
241
242
  })]
242
243
  }));
243
244
  };
@@ -8,7 +8,6 @@ import { mergeRefs } from '@react-fabric/utilities';
8
8
  import classNames from 'classnames';
9
9
  import { useState, useRef, useEffect, useCallback, cloneElement, Fragment } from 'react';
10
10
  import { HotKeyWrapper } from '../../hotkeys/HotKeyWrapper.js';
11
- import { CoreIcons } from '../../types/icons.js';
12
11
  import { cloneChildren } from '../../utils/cloneElement.js';
13
12
  import { nodeCheck } from '../../utils/nodeCheck.js';
14
13
  import { MenuItem } from './MenuItem.js';
@@ -166,7 +165,7 @@ var MenuComponent = function MenuComponent(_ref) {
166
165
  }))), {}, {
167
166
  "data-open": isOpen,
168
167
  minimal: minimal,
169
- altIcon: CoreIcons.chevronRight,
168
+ altIcon: "icon-[mdi--menu-right]",
170
169
  ref: mergeRefs(refs.setReference, ref)
171
170
  })), /*#__PURE__*/jsx(FloatingList, {
172
171
  elementsRef: elementsRef,
@@ -15,7 +15,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
15
15
  import { Tooltip } from '../../overlays/tooltip/Tooltip.js';
16
16
  import { getBadgeProps, Badge } from '../badge/Badge.js';
17
17
  import { Icon, getIconProps } from '../icon/Icon.js';
18
- import '../../types/icons.js';
19
18
  import '../../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 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
5
5
  import classNames from 'classnames';
6
6
  import { useCallback } from 'react';
7
7
  import { HotKey } from '../../hotkeys/HotKey.js';
8
- import { CoreIcons } from '../../types/icons.js';
9
8
  import { Icon } from '../icon/Icon.js';
10
9
  import { isEmpty } from '@react-fabric/utilities';
11
10
  import { jsxs, jsx } from '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: CoreIcons.chevronLeft,
68
+ icon: "icon-[mdi--chevron-left]",
70
69
  disabled: !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: CoreIcons.chevronRight,
79
+ icon: "icon-[mdi--chevron-right]",
81
80
  disabled: !isEmpty(current) && current + 1 === length,
82
81
  onClick: function onClick(e) {
83
82
  return [e.stopPropagation(), navNext()];
@@ -7,8 +7,7 @@ import classNames from 'classnames';
7
7
  import { useMemo } from 'react';
8
8
  import { usePropToggle } from '../../hooks/usePropToggle.js';
9
9
  import { HotKey } from '../../hotkeys/HotKey.js';
10
- import { CoreIcons } from '../../types/icons.js';
11
- import { Loading } from '../animations/Animations.js';
10
+ import { LoadingLine } from '../animations/Animations.js';
12
11
  import { Icon, getIconProps } from '../icon/Icon.js';
13
12
  import { jsxs, jsx } from 'react/jsx-runtime';
14
13
 
@@ -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__*/jsx(Icon, {
114
+ rtlFlip: true,
115
115
  "data-ref": "panelBack",
116
116
  className: classNames("fabric-panelAction", "cursor-pointer"),
117
- icon: CoreIcons.chevronLeft,
117
+ icon: "icon-[mdi--chevron-left]",
118
118
  onClick: onBack
119
119
  }), icon && /*#__PURE__*/jsx(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__*/jsx(Icon, {
134
134
  "data-ref": "panelExpand",
135
135
  className: classNames("fabric-panelAction", "cursor-pointer"),
136
- icon: expanded ? CoreIcons.minimize : CoreIcons.maximize,
136
+ icon: expanded ? "icon-[mdi--fullscreen-exit]" : "icon-[mdi--fullscreen]",
137
137
  onClick: toggleExpand
138
138
  }), !expanded && collapsable && /*#__PURE__*/jsx(Icon, {
139
139
  "data-ref": "panelCollapse",
140
140
  className: classNames("fabric-panelAction", "cursor-pointer"),
141
- icon: collapsed ? CoreIcons.expand : CoreIcons.collapse,
141
+ icon: collapsed ? "icon-[mdi--plus-box]" : "icon-[mdi--minus-box]",
142
142
  onClick: toggleCollapse
143
143
  }), !expanded && onClose && /*#__PURE__*/jsx(Icon, {
144
144
  "data-ref": "panelClose",
145
145
  className: classNames("fabric-panelAction", "cursor-pointer"),
146
- icon: CoreIcons.close,
146
+ icon: "icon-[mdi--close]",
147
147
  onClick: onClose
148
148
  })]
149
149
  })]
150
150
  }), (!collapsed || expanded) && /*#__PURE__*/jsxs("div", {
151
151
  "data-ref": "panelBody",
152
152
  className: classNames("fabric-panelBody", "area-content grid overflow-hidden"),
153
- children: [loading && /*#__PURE__*/jsx(Loading, {}), children]
153
+ children: [loading && /*#__PURE__*/jsx(LoadingLine, {}), children]
154
154
  })]
155
155
  }));
156
156
  };
@@ -14,7 +14,6 @@ import '../../hotkeys/HotKeyWrapper.js';
14
14
  import { Tooltip } from '../../overlays/tooltip/Tooltip.js';
15
15
  import { getBadgeProps, Badge } from '../badge/Badge.js';
16
16
  import { Icon, getIconProps } from '../icon/Icon.js';
17
- import '../../types/icons.js';
18
17
  import { DropdownTool } from '../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"];
@@ -4,12 +4,11 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
4
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
5
5
  import classNames from 'classnames';
6
6
  import { useRef, useState, useEffect, useCallback, useMemo } from 'react';
7
- import { Loading } from '../../components/animations/Animations.js';
7
+ import { LoadingLine } from '../../components/animations/Animations.js';
8
8
  import { Icon, getIconProps } from '../../components/icon/Icon.js';
9
9
  import { useLayoutEffectDebugger } from '../../hooks/useEffectDebugger.js';
10
10
  import { usePropToggle } from '../../hooks/usePropToggle.js';
11
11
  import { useResize } from '../../hooks/useResize.js';
12
- import { CoreIcons } from '../../types/icons.js';
13
12
  import { ErrorBoundary } from '../boundary/ErrorBoundary.js';
14
13
  import { jsxs, jsx } from '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__*/jsx(Icon, {
152
151
  "aria-label": isCollapsed ? "expand" : "collapse",
153
152
  className: classNames("fabric-asideCollapse", "p-2 select-none"),
154
- icon: 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__*/jsx(Loading, {}), isCollapsed && /*#__PURE__*/jsx("div", {
163
+ }), loading && /*#__PURE__*/jsx(LoadingLine, {}), isCollapsed && /*#__PURE__*/jsx("div", {
165
164
  role: "none",
166
165
  onClick: tryPeek,
167
166
  "data-ref": "asidePlaceholder",
@@ -3,7 +3,7 @@
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
4
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
5
5
  import classNames from 'classnames';
6
- import { Loading } from '../../components/animations/Animations.js';
6
+ import { LoadingLine } from '../../components/animations/Animations.js';
7
7
  import { Icon, getIconProps } from '../../components/icon/Icon.js';
8
8
  import { jsxs, jsx } from 'react/jsx-runtime';
9
9
 
@@ -60,7 +60,7 @@ var Page = function Page(_ref) {
60
60
  children: [icon && /*#__PURE__*/jsx(Icon, _objectSpread({
61
61
  size: "1.25em"
62
62
  }, getIconProps(icon))), title]
63
- }), loading && /*#__PURE__*/jsx(Loading, {}), children]
63
+ }), loading && /*#__PURE__*/jsx(LoadingLine, {}), children]
64
64
  }));
65
65
  };
66
66
 
@@ -13,7 +13,6 @@ import { Icon } from '../components/icon/Icon.js';
13
13
  import '@floating-ui/react';
14
14
  import '../hotkeys/HotKeyWrapper.js';
15
15
  import 'react-i18next';
16
- import '../types/icons.js';
17
16
  import '@babel/runtime/helpers/toConsumableArray';
18
17
  import '@babel/runtime/helpers/classCallCheck';
19
18
  import '@babel/runtime/helpers/createClass';
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  export { ActionLabel } from './components/actionLabel/ActionLabel.js';
4
- export { AnimationBars, AnimationIndicator, AnimationSpinner, Loading, Skeleton } from './components/animations/Animations.js';
4
+ export { AnimationIndicator, LoadingBars, LoadingLine, LoadingSpinner, Skeleton } from './components/animations/Animations.js';
5
5
  export { Avatar } from './components/avatar/Avatar.js';
6
6
  export { AvatarGroup } from './components/avatar/AvatarGroup.js';
7
7
  export { Badge, getBadgeProps } from './components/badge/Badge.js';
@@ -50,7 +50,6 @@ import '@floating-ui/react';
50
50
  import 'classnames';
51
51
  import 'react';
52
52
  import 'react-i18next';
53
- export { CoreIcons } from './types/icons.js';
54
53
  export { Title } from './typography/Title.js';
55
54
  export { cloneChildren } from './utils/cloneElement.js';
56
55
  import '@react-fabric/utilities';