@react-fabric/core 1.0.0-beta.53 → 1.0.0-beta.55

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 (33) hide show
  1. package/css/components/_button.css +8 -4
  2. package/css/components/_tabPanel.css +25 -9
  3. package/css/theme/_utilities.css +1 -1
  4. package/dist/cjs/components/chip/Chip.js +1 -1
  5. package/dist/cjs/components/empty/EmptyContent.js +2 -2
  6. package/dist/cjs/components/menu/Menu.js +2 -0
  7. package/dist/cjs/components/panel/Panel.js +5 -1
  8. package/dist/cjs/components/tabpanel/Tab.js +1 -1
  9. package/dist/cjs/components/tabpanel/TabPanel.js +3 -1
  10. package/dist/cjs/overlays/flyout/Flyout.js +1 -1
  11. package/dist/cjs/overlays/modal/Modal.js +1 -1
  12. package/dist/cjs/types/icons.js +5 -1
  13. package/dist/esm/components/chip/Chip.js +1 -1
  14. package/dist/esm/components/empty/EmptyContent.js +2 -2
  15. package/dist/esm/components/menu/Menu.js +2 -0
  16. package/dist/esm/components/panel/Panel.js +5 -1
  17. package/dist/esm/components/tabpanel/Tab.js +1 -1
  18. package/dist/esm/components/tabpanel/TabPanel.js +3 -1
  19. package/dist/esm/overlays/flyout/Flyout.js +1 -1
  20. package/dist/esm/overlays/modal/Modal.js +1 -1
  21. package/dist/esm/types/icons.js +5 -1
  22. package/dist/types/components/tabpanel/TabPanel.d.ts +6 -2
  23. package/dist/types/types/icons.d.ts +5 -1
  24. package/package.json +2 -2
  25. package/src/components/chip/Chip.tsx +1 -1
  26. package/src/components/empty/EmptyContent.tsx +2 -2
  27. package/src/components/menu/Menu.tsx +2 -0
  28. package/src/components/panel/Panel.tsx +2 -0
  29. package/src/components/tabpanel/Tab.tsx +2 -2
  30. package/src/components/tabpanel/TabPanel.tsx +7 -1
  31. package/src/overlays/flyout/Flyout.tsx +1 -1
  32. package/src/overlays/modal/Modal.tsx +1 -1
  33. package/src/types/icons.ts +10 -1
@@ -98,10 +98,6 @@
98
98
  & > .fabric-buttonWrapper {
99
99
  flex: 0 1 1em;
100
100
  }
101
-
102
- &:not(.flex) + &:not(.flex) {
103
- margin-inline-start: 0.5rem;
104
- }
105
101
  }
106
102
  }
107
103
 
@@ -328,6 +324,10 @@
328
324
  border-start-start-radius: 0;
329
325
  border-end-start-radius: 0;
330
326
  }
327
+
328
+ &:not(.flex) + &:not(.flex) {
329
+ margin-inline-start: 0.5rem;
330
+ }
331
331
  }
332
332
 
333
333
  &.vertical {
@@ -360,6 +360,10 @@
360
360
  border-start-start-radius: 0;
361
361
  border-start-end-radius: 0;
362
362
  }
363
+
364
+ &:not(.flex) + &:not(.flex) {
365
+ margin-top: 0.5rem;
366
+ }
363
367
  }
364
368
  }
365
369
  }
@@ -120,13 +120,14 @@
120
120
  }
121
121
  }
122
122
 
123
- &[data-variant="soft"] {
123
+ &[data-variant="soft"],
124
+ &[data-variant="pills"] {
124
125
  & .fabric-tabList > .fabric-tabButton.active {
125
126
  background-color: color-mix(in lab, var(--color) 20%, var(--fabric-bg));
126
127
  }
127
128
  }
128
129
 
129
- &[data-orientation="top"] .fabric-tabList {
130
+ &[data-orientation="top"]:not([data-variant="pills"]) .fabric-tabList {
130
131
  & > .fabric-tabButton.active {
131
132
  box-shadow:
132
133
  0 -2px 0 var(--active-color) inset,
@@ -134,7 +135,7 @@
134
135
  }
135
136
  }
136
137
 
137
- &[data-orientation="bottom"] .fabric-tabList {
138
+ &[data-orientation="bottom"]:not([data-variant="pills"]) .fabric-tabList {
138
139
  & > .fabric-tabButton.active {
139
140
  box-shadow:
140
141
  0 2px 0 var(--active-color) inset,
@@ -142,7 +143,7 @@
142
143
  }
143
144
  }
144
145
 
145
- &[data-orientation="start"] .fabric-tabList {
146
+ &[data-orientation="start"]:not([data-variant="pills"]) .fabric-tabList {
146
147
  & > .fabric-tabButton.active {
147
148
  box-shadow:
148
149
  -2px 0 0 var(--active-color) inset,
@@ -150,7 +151,7 @@
150
151
  }
151
152
  }
152
153
 
153
- &[data-orientation="end"] .fabric-tabList {
154
+ &[data-orientation="end"]:not([data-variant="pills"]) .fabric-tabList {
154
155
  & > .fabric-tabButton.active {
155
156
  box-shadow:
156
157
  2px 0 0 var(--active-color) inset,
@@ -158,32 +159,47 @@
158
159
  }
159
160
  }
160
161
 
161
- &[data-orientation="top"] .fabric-tabList > .fabric-tabButton {
162
+ &[data-orientation="top"]:not([data-variant="pills"])
163
+ .fabric-tabList
164
+ > .fabric-tabButton {
162
165
  margin-top: 2px;
163
166
  margin-inline: 1px;
164
167
  border-end-start-radius: 0;
165
168
  border-end-end-radius: 0;
166
169
  }
167
170
 
168
- &[data-orientation="bottom"] .fabric-tabList > .fabric-tabButton {
171
+ &[data-orientation="bottom"]:not([data-variant="pills"])
172
+ .fabric-tabList
173
+ > .fabric-tabButton {
169
174
  margin-bottom: 2px;
170
175
  margin-inline: 1px;
171
176
  border-start-start-radius: 0;
172
177
  border-start-end-radius: 0;
173
178
  }
174
179
 
175
- &[data-orientation="start"] .fabric-tabList > .fabric-tabButton {
180
+ &[data-orientation="start"]:not([data-variant="pills"])
181
+ .fabric-tabList
182
+ > .fabric-tabButton {
176
183
  margin-block: 1px;
177
184
  margin-inline-start: 2px;
178
185
  border-start-end-radius: 0;
179
186
  border-end-end-radius: 0;
180
187
  }
181
188
 
182
- &[data-orientation="end"] .fabric-tabList > .fabric-tabButton {
189
+ &[data-orientation="end"]:not([data-variant="pills"])
190
+ .fabric-tabList
191
+ > .fabric-tabButton {
183
192
  margin-block: 1px;
184
193
  margin-inline-end: 2px;
185
194
  border-start-start-radius: 0;
186
195
  border-end-start-radius: 0;
187
196
  }
197
+
198
+ &[data-variant="pills"] {
199
+ .fabric-tabList > .fabric-tabButton {
200
+ margin: 2px;
201
+ box-shadow: 0 0 2px var(--active-color) inset;
202
+ }
203
+ }
188
204
  }
189
205
  }
@@ -82,7 +82,7 @@
82
82
  }
83
83
 
84
84
  @utility flex-content {
85
- flex: 0 1 auto;
85
+ flex: 0 0 auto;
86
86
  }
87
87
 
88
88
  @utility flex-full {
@@ -95,7 +95,7 @@ var Chip = function Chip(_ref) {
95
95
  }, aria), {}, {
96
96
  children: [icon && /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
97
97
  "data-ref": "chipIcon",
98
- className: classNames("fabric-chipIcon", "m-1 flex-auto"),
98
+ className: classNames("fabric-chipIcon", "m-1 flex-content"),
99
99
  icon: icon,
100
100
  bg: iconBg,
101
101
  onClick: onIconClick,
@@ -101,13 +101,13 @@ var EmptyContent = function EmptyContent(_ref) {
101
101
  icon: icon
102
102
  }), /*#__PURE__*/react.isValidElement(icon) && icon, !icon && /*#__PURE__*/jsxRuntime.jsx(DefaultIcon, {})]
103
103
  }), title && /*#__PURE__*/jsxRuntime.jsx("div", {
104
- className: "font-medium text-center text-dimmed",
104
+ className: "font-medium text-center opacity-85",
105
105
  style: {
106
106
  fontSize: "1.5em"
107
107
  },
108
108
  children: title
109
109
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
110
- className: "font-medium text-center text-muted",
110
+ className: "font-medium text-center opacity-65",
111
111
  style: {
112
112
  fontSize: "0.875em"
113
113
  },
@@ -241,12 +241,14 @@ var Menu = function Menu(props) {
241
241
  var tree = react.useFloatingTree();
242
242
  if (tree) {
243
243
  return /*#__PURE__*/jsxRuntime.jsx(MenuComponent, _objectSpread(_objectSpread({}, props), {}, {
244
+ className: "",
244
245
  menuClassName: props.className
245
246
  }));
246
247
  }
247
248
  if (parentId === null) {
248
249
  return /*#__PURE__*/jsxRuntime.jsx(react.FloatingTree, {
249
250
  children: /*#__PURE__*/jsxRuntime.jsx(MenuComponent, _objectSpread(_objectSpread({}, props), {}, {
251
+ className: "",
250
252
  menuClassName: props.className
251
253
  }))
252
254
  });
@@ -9,6 +9,7 @@ var usePropToggle = require('../../hooks/usePropToggle.js');
9
9
  var icons = require('../../types/icons.js');
10
10
  var Animations = require('../animations/Animations.js');
11
11
  var Icon = require('../icon/Icon.js');
12
+ var HotKey = require('../../hotkeys/HotKey.js');
12
13
  var jsxRuntime = require('react/jsx-runtime');
13
14
 
14
15
  var _excluded = ["children", "className", "titleClassName", "headerClassName", "title", "actions", "icon", "iconBg", "iconColor", "rtlFlip", "panelId", "height", "width", "minHeight", "minWidth", "maxHeight", "maxWidth", "loading", "expandable", "expanded", "onExpand", "collapsable", "collapsed", "onCollapse", "onClose", "onBack"];
@@ -107,7 +108,10 @@ var Panel = function Panel(_ref) {
107
108
  maxHeight: maxHeight
108
109
  }
109
110
  }, aria), {}, {
110
- children: [/*#__PURE__*/jsxRuntime.jsxs("header", {
111
+ children: [expanded && /*#__PURE__*/jsxRuntime.jsx(HotKey.HotKey, {
112
+ keyCombo: "esc",
113
+ handler: toggleExpand
114
+ }), /*#__PURE__*/jsxRuntime.jsxs("header", {
111
115
  role: "none",
112
116
  className: classNames("fabric-panelHeader", headerClassName, "flex flex-nowrap items-center area-head"),
113
117
  "data-ref": "panelHeader",
@@ -92,7 +92,7 @@ var Tab = function Tab(_ref) {
92
92
  disabled: disabled,
93
93
  "data-color": color,
94
94
  "data-inner-clickable": true,
95
- className: classNames("fabric-tabButton", className, active && "active pointer-events-none", active && activeClassName, disabled && "text-tint-500 pointer-events-none", tabFlex ? "flex-1" : "flex-initial max-w-36", minimal ? "min-w-6" : "min-w-18", "flex items-center justify-center px-1 rounded overflow-hidden cursor-pointer"),
95
+ className: classNames("fabric-tabButton", className, active && "active pointer-events-none", active && activeClassName, disabled && "text-tint-500 pointer-events-none", tabFlex ? "flex-1" : "flex-initial max-w-36", minimal ? "min-w-6 rounded" : "min-w-18 rounded-capped", "flex items-center justify-center px-1 overflow-hidden cursor-pointer"),
96
96
  onClick: function onClick() {
97
97
  return !active && (_onClick === null || _onClick === void 0 ? void 0 : _onClick(id));
98
98
  },
@@ -49,6 +49,7 @@ var TabPanel = function TabPanel(_ref) {
49
49
  _ref$orientation = _ref.orientation,
50
50
  orientation = _ref$orientation === void 0 ? "top" : _ref$orientation,
51
51
  activeTab = _ref.activeTab,
52
+ activeClassName = _ref.activeClassName,
52
53
  justify = _ref.justify,
53
54
  variant = _ref.variant,
54
55
  tabFlex = _ref.tabFlex,
@@ -99,9 +100,10 @@ var TabPanel = function TabPanel(_ref) {
99
100
  gap: gap
100
101
  },
101
102
  children: tabs.map(function (node) {
102
- var _node$props$tabFlex;
103
+ var _node$props$tabFlex, _node$props$activeCla;
103
104
  return /*#__PURE__*/react.cloneElement(node, {
104
105
  tabFlex: (_node$props$tabFlex = node.props.tabFlex) !== null && _node$props$tabFlex !== void 0 ? _node$props$tabFlex : tabFlex,
106
+ activeClassName: (_node$props$activeCla = node.props.activeClassName) !== null && _node$props$activeCla !== void 0 ? _node$props$activeCla : activeClassName,
105
107
  onClick: handleClick,
106
108
  active: node.props.id === active
107
109
  });
@@ -120,7 +120,7 @@ var Flyout = function Flyout(_ref) {
120
120
  children: title
121
121
  }), actions, /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
122
122
  "data-ref": "panelClose",
123
- className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-stretch"),
123
+ className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-center"),
124
124
  icon: icons.CoreIcons.close,
125
125
  onClick: function onClick() {
126
126
  return handleClose(false);
@@ -114,7 +114,7 @@ var Modal = function Modal(_ref) {
114
114
  children: title
115
115
  }), actions, /*#__PURE__*/jsxRuntime.jsx(Icon.Icon, {
116
116
  "data-ref": "panelClose",
117
- className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-stretch"),
117
+ className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-center"),
118
118
  icon: icons.CoreIcons.close,
119
119
  onClick: function onClick() {
120
120
  return handleClose(false);
@@ -194,7 +194,7 @@ exports.CoreIcons = void 0;
194
194
  _CoreIcons.mediaSplitter = "M3 15V17H5V15M15 19V21H17V19M19 3H5C3.9 3 3 3.9 3 5V9H5V5H19V9H21V5C21 3.9 20.1 3 19 3M21 19H19V21C20.1 21 21 20.1 21 19M1 11V13H23V11M7 19V21H9V19M19 15V17H21V15M11 19V21H13V19M3 19C3 20.1 3.9 21 5 21V19Z";
195
195
  _CoreIcons.mediaPlay = "M8,5.14V19.14L19,12.14L8,5.14Z";
196
196
  _CoreIcons.mediaPause = "M14,19H18V5H14M6,19H10V5H6V19Z";
197
- _CoreIcons.mediaContrast = "M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z";
197
+ _CoreIcons.mediaContrast = "M12,20C9.79,20 7.79,19.1 6.34,17.66L17.66,6.34C19.1,7.79 20,9.79 20,12A8,8 0 0,1 12,20M6,8H8V6H9.5V8H11.5V9.5H9.5V11.5H8V9.5H6M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,16H17V14.5H12V16Z";
198
198
  _CoreIcons.mediaEqs = "M7 3H5V9H7V3M19 3H17V13H19V3M3 13H5V21H7V13H9V11H3V13M15 7H13V3H11V7H9V9H15V7M11 21H13V11H11V21M15 15V17H17V21H19V17H21V15H15Z";
199
199
  _CoreIcons.mediaCaptionOff = "M5,4C4.45,4 4,4.18 3.59,4.57C3.2,4.96 3,5.44 3,6V18C3,18.56 3.2,19.04 3.59,19.43C4,19.82 4.45,20 5,20H19C19.5,20 20,19.81 20.39,19.41C20.8,19 21,18.53 21,18V6C21,5.47 20.8,5 20.39,4.59C20,4.19 19.5,4 19,4H5M4.5,5.5H19.5V18.5H4.5V5.5M7,9C6.7,9 6.47,9.09 6.28,9.28C6.09,9.47 6,9.7 6,10V14C6,14.3 6.09,14.53 6.28,14.72C6.47,14.91 6.7,15 7,15H10C10.27,15 10.5,14.91 10.71,14.72C10.91,14.53 11,14.3 11,14V13H9.5V13.5H7.5V10.5H9.5V11H11V10C11,9.7 10.91,9.47 10.71,9.28C10.5,9.09 10.27,9 10,9H7M14,9C13.73,9 13.5,9.09 13.29,9.28C13.09,9.47 13,9.7 13,10V14C13,14.3 13.09,14.53 13.29,14.72C13.5,14.91 13.73,15 14,15H17C17.3,15 17.53,14.91 17.72,14.72C17.91,14.53 18,14.3 18,14V13H16.5V13.5H14.5V10.5H16.5V11H18V10C18,9.7 17.91,9.47 17.72,9.28C17.53,9.09 17.3,9 17,9H14Z";
200
200
  _CoreIcons.mediaCaptionOn = "M18,11H16.5V10.5H14.5V13.5H16.5V13H18V14A1,1 0 0,1 17,15H14A1,1 0 0,1 13,14V10A1,1 0 0,1 14,9H17A1,1 0 0,1 18,10M11,11H9.5V10.5H7.5V13.5H9.5V13H11V14A1,1 0 0,1 10,15H7A1,1 0 0,1 6,14V10A1,1 0 0,1 7,9H10A1,1 0 0,1 11,10M19,4H5C3.89,4 3,4.89 3,6V18A2,2 0 0,0 5,20H19A2,2 0 0,0 21,18V6C21,4.89 20.1,4 19,4Z";
@@ -205,4 +205,8 @@ exports.CoreIcons = void 0;
205
205
  _CoreIcons.mediaVolume3 = "M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z";
206
206
  _CoreIcons.mediaComment = "M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M10,16V19.08L13.08,16H20V4H4V16H10M6,7H18V9H6V7M6,11H15V13H6V11Z";
207
207
  _CoreIcons.mediaCommentAdd = "M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M10,16V19.08L13.08,16H20V4H4V16H10M11,6H13V9H16V11H13V14H11V11H8V9H11V6Z";
208
+ _CoreIcons.mediaLightness = "M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,15.31L23.31,12L20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31Z";
209
+ _CoreIcons.mediaColor = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z";
210
+ _CoreIcons.mediaInvert = "M12,19.58V19.58C10.4,19.58 8.89,18.96 7.76,17.83C6.62,16.69 6,15.19 6,13.58C6,12 6.62,10.47 7.76,9.34L12,5.1M17.66,7.93L12,2.27V2.27L6.34,7.93C3.22,11.05 3.22,16.12 6.34,19.24C7.9,20.8 9.95,21.58 12,21.58C14.05,21.58 16.1,20.8 17.66,19.24C20.78,16.12 20.78,11.05 17.66,7.93Z";
211
+ _CoreIcons.mediaSaturate = "M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z";
208
212
  })(exports.CoreIcons || (exports.CoreIcons = {}));
@@ -95,7 +95,7 @@ var Chip = function Chip(_ref) {
95
95
  }, aria), {}, {
96
96
  children: [icon && /*#__PURE__*/jsx(Icon, {
97
97
  "data-ref": "chipIcon",
98
- className: classNames("fabric-chipIcon", "m-1 flex-auto"),
98
+ className: classNames("fabric-chipIcon", "m-1 flex-content"),
99
99
  icon: icon,
100
100
  bg: iconBg,
101
101
  onClick: onIconClick,
@@ -101,13 +101,13 @@ var EmptyContent = function EmptyContent(_ref) {
101
101
  icon: icon
102
102
  }), /*#__PURE__*/isValidElement(icon) && icon, !icon && /*#__PURE__*/jsx(DefaultIcon, {})]
103
103
  }), title && /*#__PURE__*/jsx("div", {
104
- className: "font-medium text-center text-dimmed",
104
+ className: "font-medium text-center opacity-85",
105
105
  style: {
106
106
  fontSize: "1.5em"
107
107
  },
108
108
  children: title
109
109
  }), /*#__PURE__*/jsx("div", {
110
- className: "font-medium text-center text-muted",
110
+ className: "font-medium text-center opacity-65",
111
111
  style: {
112
112
  fontSize: "0.875em"
113
113
  },
@@ -241,12 +241,14 @@ var Menu = function Menu(props) {
241
241
  var tree = useFloatingTree();
242
242
  if (tree) {
243
243
  return /*#__PURE__*/jsx(MenuComponent, _objectSpread(_objectSpread({}, props), {}, {
244
+ className: "",
244
245
  menuClassName: props.className
245
246
  }));
246
247
  }
247
248
  if (parentId === null) {
248
249
  return /*#__PURE__*/jsx(FloatingTree, {
249
250
  children: /*#__PURE__*/jsx(MenuComponent, _objectSpread(_objectSpread({}, props), {}, {
251
+ className: "",
250
252
  menuClassName: props.className
251
253
  }))
252
254
  });
@@ -9,6 +9,7 @@ import { usePropToggle } from '../../hooks/usePropToggle.js';
9
9
  import { CoreIcons } from '../../types/icons.js';
10
10
  import { Loading } from '../animations/Animations.js';
11
11
  import { Icon } from '../icon/Icon.js';
12
+ import { HotKey } from '../../hotkeys/HotKey.js';
12
13
  import { jsxs, jsx } from 'react/jsx-runtime';
13
14
 
14
15
  var _excluded = ["children", "className", "titleClassName", "headerClassName", "title", "actions", "icon", "iconBg", "iconColor", "rtlFlip", "panelId", "height", "width", "minHeight", "minWidth", "maxHeight", "maxWidth", "loading", "expandable", "expanded", "onExpand", "collapsable", "collapsed", "onCollapse", "onClose", "onBack"];
@@ -107,7 +108,10 @@ var Panel = function Panel(_ref) {
107
108
  maxHeight: maxHeight
108
109
  }
109
110
  }, aria), {}, {
110
- children: [/*#__PURE__*/jsxs("header", {
111
+ children: [expanded && /*#__PURE__*/jsx(HotKey, {
112
+ keyCombo: "esc",
113
+ handler: toggleExpand
114
+ }), /*#__PURE__*/jsxs("header", {
111
115
  role: "none",
112
116
  className: classNames("fabric-panelHeader", headerClassName, "flex flex-nowrap items-center area-head"),
113
117
  "data-ref": "panelHeader",
@@ -92,7 +92,7 @@ var Tab = function Tab(_ref) {
92
92
  disabled: disabled,
93
93
  "data-color": color,
94
94
  "data-inner-clickable": true,
95
- className: classNames("fabric-tabButton", className, active && "active pointer-events-none", active && activeClassName, disabled && "text-tint-500 pointer-events-none", tabFlex ? "flex-1" : "flex-initial max-w-36", minimal ? "min-w-6" : "min-w-18", "flex items-center justify-center px-1 rounded overflow-hidden cursor-pointer"),
95
+ className: classNames("fabric-tabButton", className, active && "active pointer-events-none", active && activeClassName, disabled && "text-tint-500 pointer-events-none", tabFlex ? "flex-1" : "flex-initial max-w-36", minimal ? "min-w-6 rounded" : "min-w-18 rounded-capped", "flex items-center justify-center px-1 overflow-hidden cursor-pointer"),
96
96
  onClick: function onClick() {
97
97
  return !active && (_onClick === null || _onClick === void 0 ? void 0 : _onClick(id));
98
98
  },
@@ -49,6 +49,7 @@ var TabPanel = function TabPanel(_ref) {
49
49
  _ref$orientation = _ref.orientation,
50
50
  orientation = _ref$orientation === void 0 ? "top" : _ref$orientation,
51
51
  activeTab = _ref.activeTab,
52
+ activeClassName = _ref.activeClassName,
52
53
  justify = _ref.justify,
53
54
  variant = _ref.variant,
54
55
  tabFlex = _ref.tabFlex,
@@ -99,9 +100,10 @@ var TabPanel = function TabPanel(_ref) {
99
100
  gap: gap
100
101
  },
101
102
  children: tabs.map(function (node) {
102
- var _node$props$tabFlex;
103
+ var _node$props$tabFlex, _node$props$activeCla;
103
104
  return /*#__PURE__*/cloneElement(node, {
104
105
  tabFlex: (_node$props$tabFlex = node.props.tabFlex) !== null && _node$props$tabFlex !== void 0 ? _node$props$tabFlex : tabFlex,
106
+ activeClassName: (_node$props$activeCla = node.props.activeClassName) !== null && _node$props$activeCla !== void 0 ? _node$props$activeCla : activeClassName,
105
107
  onClick: handleClick,
106
108
  active: node.props.id === active
107
109
  });
@@ -120,7 +120,7 @@ var Flyout = function Flyout(_ref) {
120
120
  children: title
121
121
  }), actions, /*#__PURE__*/jsx(Icon, {
122
122
  "data-ref": "panelClose",
123
- className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-stretch"),
123
+ className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-center"),
124
124
  icon: CoreIcons.close,
125
125
  onClick: function onClick() {
126
126
  return handleClose(false);
@@ -114,7 +114,7 @@ var Modal = function Modal(_ref) {
114
114
  children: title
115
115
  }), actions, /*#__PURE__*/jsx(Icon, {
116
116
  "data-ref": "panelClose",
117
- className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-stretch"),
117
+ className: classNames("fabric-panelAction", "cursor-pointer p-1 text-xl self-center"),
118
118
  icon: CoreIcons.close,
119
119
  onClick: function onClick() {
120
120
  return handleClose(false);
@@ -194,7 +194,7 @@ var CoreIcons;
194
194
  _CoreIcons.mediaSplitter = "M3 15V17H5V15M15 19V21H17V19M19 3H5C3.9 3 3 3.9 3 5V9H5V5H19V9H21V5C21 3.9 20.1 3 19 3M21 19H19V21C20.1 21 21 20.1 21 19M1 11V13H23V11M7 19V21H9V19M19 15V17H21V15M11 19V21H13V19M3 19C3 20.1 3.9 21 5 21V19Z";
195
195
  _CoreIcons.mediaPlay = "M8,5.14V19.14L19,12.14L8,5.14Z";
196
196
  _CoreIcons.mediaPause = "M14,19H18V5H14M6,19H10V5H6V19Z";
197
- _CoreIcons.mediaContrast = "M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z";
197
+ _CoreIcons.mediaContrast = "M12,20C9.79,20 7.79,19.1 6.34,17.66L17.66,6.34C19.1,7.79 20,9.79 20,12A8,8 0 0,1 12,20M6,8H8V6H9.5V8H11.5V9.5H9.5V11.5H8V9.5H6M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,16H17V14.5H12V16Z";
198
198
  _CoreIcons.mediaEqs = "M7 3H5V9H7V3M19 3H17V13H19V3M3 13H5V21H7V13H9V11H3V13M15 7H13V3H11V7H9V9H15V7M11 21H13V11H11V21M15 15V17H17V21H19V17H21V15H15Z";
199
199
  _CoreIcons.mediaCaptionOff = "M5,4C4.45,4 4,4.18 3.59,4.57C3.2,4.96 3,5.44 3,6V18C3,18.56 3.2,19.04 3.59,19.43C4,19.82 4.45,20 5,20H19C19.5,20 20,19.81 20.39,19.41C20.8,19 21,18.53 21,18V6C21,5.47 20.8,5 20.39,4.59C20,4.19 19.5,4 19,4H5M4.5,5.5H19.5V18.5H4.5V5.5M7,9C6.7,9 6.47,9.09 6.28,9.28C6.09,9.47 6,9.7 6,10V14C6,14.3 6.09,14.53 6.28,14.72C6.47,14.91 6.7,15 7,15H10C10.27,15 10.5,14.91 10.71,14.72C10.91,14.53 11,14.3 11,14V13H9.5V13.5H7.5V10.5H9.5V11H11V10C11,9.7 10.91,9.47 10.71,9.28C10.5,9.09 10.27,9 10,9H7M14,9C13.73,9 13.5,9.09 13.29,9.28C13.09,9.47 13,9.7 13,10V14C13,14.3 13.09,14.53 13.29,14.72C13.5,14.91 13.73,15 14,15H17C17.3,15 17.53,14.91 17.72,14.72C17.91,14.53 18,14.3 18,14V13H16.5V13.5H14.5V10.5H16.5V11H18V10C18,9.7 17.91,9.47 17.72,9.28C17.53,9.09 17.3,9 17,9H14Z";
200
200
  _CoreIcons.mediaCaptionOn = "M18,11H16.5V10.5H14.5V13.5H16.5V13H18V14A1,1 0 0,1 17,15H14A1,1 0 0,1 13,14V10A1,1 0 0,1 14,9H17A1,1 0 0,1 18,10M11,11H9.5V10.5H7.5V13.5H9.5V13H11V14A1,1 0 0,1 10,15H7A1,1 0 0,1 6,14V10A1,1 0 0,1 7,9H10A1,1 0 0,1 11,10M19,4H5C3.89,4 3,4.89 3,6V18A2,2 0 0,0 5,20H19A2,2 0 0,0 21,18V6C21,4.89 20.1,4 19,4Z";
@@ -205,6 +205,10 @@ var CoreIcons;
205
205
  _CoreIcons.mediaVolume3 = "M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z";
206
206
  _CoreIcons.mediaComment = "M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M10,16V19.08L13.08,16H20V4H4V16H10M6,7H18V9H6V7M6,11H15V13H6V11Z";
207
207
  _CoreIcons.mediaCommentAdd = "M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M10,16V19.08L13.08,16H20V4H4V16H10M11,6H13V9H16V11H13V14H11V11H8V9H11V6Z";
208
+ _CoreIcons.mediaLightness = "M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,15.31L23.31,12L20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31Z";
209
+ _CoreIcons.mediaColor = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z";
210
+ _CoreIcons.mediaInvert = "M12,19.58V19.58C10.4,19.58 8.89,18.96 7.76,17.83C6.62,16.69 6,15.19 6,13.58C6,12 6.62,10.47 7.76,9.34L12,5.1M17.66,7.93L12,2.27V2.27L6.34,7.93C3.22,11.05 3.22,16.12 6.34,19.24C7.9,20.8 9.95,21.58 12,21.58C14.05,21.58 16.1,20.8 17.66,19.24C20.78,16.12 20.78,11.05 17.66,7.93Z";
211
+ _CoreIcons.mediaSaturate = "M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z";
208
212
  })(CoreIcons || (CoreIcons = {}));
209
213
 
210
214
  export { CoreIcons };
@@ -13,7 +13,7 @@ export interface TabPanelProps extends ChildrenProp<typeof Tab> {
13
13
  /**
14
14
  * tab variations
15
15
  */
16
- variant?: "soft" | "solid" | "outline";
16
+ variant?: "soft" | "solid" | "outline" | "pills";
17
17
  /**
18
18
  * tab button flex to fill tabs
19
19
  */
@@ -30,6 +30,10 @@ export interface TabPanelProps extends ChildrenProp<typeof Tab> {
30
30
  * tab list className
31
31
  */
32
32
  headerClassName?: string;
33
+ /**
34
+ * active tab className
35
+ */
36
+ activeClassName?: string;
33
37
  /**
34
38
  * append element
35
39
  */
@@ -80,4 +84,4 @@ export interface TabPanelProps extends ChildrenProp<typeof Tab> {
80
84
  *
81
85
  * @see {@link https://adarshpastakia.github.io/react-fabric/?path=/docs/core-components-tabpanel--docs} for more details.
82
86
  */
83
- export declare const TabPanel: ({ children, headerClassName, orientation, activeTab, justify, variant, tabFlex, append, prepend, gap, onBeforeChange, onChange, }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;
87
+ export declare const TabPanel: ({ children, headerClassName, orientation, activeTab, activeClassName, justify, variant, tabFlex, append, prepend, gap, onBeforeChange, onChange, }: TabPanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -191,7 +191,7 @@ export declare namespace CoreIcons {
191
191
  const mediaSplitter = "M3 15V17H5V15M15 19V21H17V19M19 3H5C3.9 3 3 3.9 3 5V9H5V5H19V9H21V5C21 3.9 20.1 3 19 3M21 19H19V21C20.1 21 21 20.1 21 19M1 11V13H23V11M7 19V21H9V19M19 15V17H21V15M11 19V21H13V19M3 19C3 20.1 3.9 21 5 21V19Z";
192
192
  const mediaPlay = "M8,5.14V19.14L19,12.14L8,5.14Z";
193
193
  const mediaPause = "M14,19H18V5H14M6,19H10V5H6V19Z";
194
- const mediaContrast = "M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z";
194
+ const mediaContrast = "M12,20C9.79,20 7.79,19.1 6.34,17.66L17.66,6.34C19.1,7.79 20,9.79 20,12A8,8 0 0,1 12,20M6,8H8V6H9.5V8H11.5V9.5H9.5V11.5H8V9.5H6M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,16H17V14.5H12V16Z";
195
195
  const mediaEqs = "M7 3H5V9H7V3M19 3H17V13H19V3M3 13H5V21H7V13H9V11H3V13M15 7H13V3H11V7H9V9H15V7M11 21H13V11H11V21M15 15V17H17V21H19V17H21V15H15Z";
196
196
  const mediaCaptionOff = "M5,4C4.45,4 4,4.18 3.59,4.57C3.2,4.96 3,5.44 3,6V18C3,18.56 3.2,19.04 3.59,19.43C4,19.82 4.45,20 5,20H19C19.5,20 20,19.81 20.39,19.41C20.8,19 21,18.53 21,18V6C21,5.47 20.8,5 20.39,4.59C20,4.19 19.5,4 19,4H5M4.5,5.5H19.5V18.5H4.5V5.5M7,9C6.7,9 6.47,9.09 6.28,9.28C6.09,9.47 6,9.7 6,10V14C6,14.3 6.09,14.53 6.28,14.72C6.47,14.91 6.7,15 7,15H10C10.27,15 10.5,14.91 10.71,14.72C10.91,14.53 11,14.3 11,14V13H9.5V13.5H7.5V10.5H9.5V11H11V10C11,9.7 10.91,9.47 10.71,9.28C10.5,9.09 10.27,9 10,9H7M14,9C13.73,9 13.5,9.09 13.29,9.28C13.09,9.47 13,9.7 13,10V14C13,14.3 13.09,14.53 13.29,14.72C13.5,14.91 13.73,15 14,15H17C17.3,15 17.53,14.91 17.72,14.72C17.91,14.53 18,14.3 18,14V13H16.5V13.5H14.5V10.5H16.5V11H18V10C18,9.7 17.91,9.47 17.72,9.28C17.53,9.09 17.3,9 17,9H14Z";
197
197
  const mediaCaptionOn = "M18,11H16.5V10.5H14.5V13.5H16.5V13H18V14A1,1 0 0,1 17,15H14A1,1 0 0,1 13,14V10A1,1 0 0,1 14,9H17A1,1 0 0,1 18,10M11,11H9.5V10.5H7.5V13.5H9.5V13H11V14A1,1 0 0,1 10,15H7A1,1 0 0,1 6,14V10A1,1 0 0,1 7,9H10A1,1 0 0,1 11,10M19,4H5C3.89,4 3,4.89 3,6V18A2,2 0 0,0 5,20H19A2,2 0 0,0 21,18V6C21,4.89 20.1,4 19,4Z";
@@ -202,4 +202,8 @@ export declare namespace CoreIcons {
202
202
  const mediaVolume3 = "M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z";
203
203
  const mediaComment = "M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M10,16V19.08L13.08,16H20V4H4V16H10M6,7H18V9H6V7M6,11H15V13H6V11Z";
204
204
  const mediaCommentAdd = "M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M10,16V19.08L13.08,16H20V4H4V16H10M11,6H13V9H16V11H13V14H11V11H8V9H11V6Z";
205
+ const mediaLightness = "M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,15.31L23.31,12L20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31Z";
206
+ const mediaColor = "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z";
207
+ const mediaInvert = "M12,19.58V19.58C10.4,19.58 8.89,18.96 7.76,17.83C6.62,16.69 6,15.19 6,13.58C6,12 6.62,10.47 7.76,9.34L12,5.1M17.66,7.93L12,2.27V2.27L6.34,7.93C3.22,11.05 3.22,16.12 6.34,19.24C7.9,20.8 9.95,21.58 12,21.58C14.05,21.58 16.1,20.8 17.66,19.24C20.78,16.12 20.78,11.05 17.66,7.93Z";
208
+ const mediaSaturate = "M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z";
205
209
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/core",
3
- "version": "1.0.0-beta.53",
3
+ "version": "1.0.0-beta.55",
4
4
  "description": "RUF: Core package",
5
5
  "author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
6
6
  "license": "MIT",
@@ -54,5 +54,5 @@
54
54
  "node": ">=18.12.0",
55
55
  "npm": ">=8.19.0"
56
56
  },
57
- "gitHead": "1042327831f9c908912c552d5c2704b765a6f9c2"
57
+ "gitHead": "c8454798fb7546174ee8c7ea10e491c5e903e789"
58
58
  }
@@ -190,7 +190,7 @@ export const Chip = <Tag extends React.ElementType = "div">({
190
190
  {icon && (
191
191
  <Icon
192
192
  data-ref="chipIcon"
193
- className={classNames("fabric-chipIcon", "m-1 flex-auto")}
193
+ className={classNames("fabric-chipIcon", "m-1 flex-content")}
194
194
  icon={icon}
195
195
  bg={iconBg}
196
196
  onClick={onIconClick}
@@ -164,14 +164,14 @@ export const EmptyContent = ({
164
164
  </div>
165
165
  {title && (
166
166
  <div
167
- className="font-medium text-center text-dimmed"
167
+ className="font-medium text-center opacity-85"
168
168
  style={{ fontSize: "1.5em" }}
169
169
  >
170
170
  {title}
171
171
  </div>
172
172
  )}
173
173
  <div
174
- className="font-medium text-center text-muted"
174
+ className="font-medium text-center opacity-65"
175
175
  style={{ fontSize: "0.875em" }}
176
176
  >
177
177
  {message}
@@ -313,6 +313,7 @@ export const Menu = (props: MenuProps) => {
313
313
  return (
314
314
  <MenuComponent
315
315
  {...(props as AnyObject)}
316
+ className=""
316
317
  menuClassName={props.className}
317
318
  />
318
319
  );
@@ -323,6 +324,7 @@ export const Menu = (props: MenuProps) => {
323
324
  <FloatingTree>
324
325
  <MenuComponent
325
326
  {...(props as AnyObject)}
327
+ className=""
326
328
  menuClassName={props.className}
327
329
  />
328
330
  </FloatingTree>
@@ -38,6 +38,7 @@ import {
38
38
  import { CoreIcons } from "../../types/icons";
39
39
  import { Loading } from "../animations/Animations";
40
40
  import { Icon } from "../icon/Icon";
41
+ import { HotKey } from "../../hotkeys/HotKey";
41
42
 
42
43
  export interface PanelProps
43
44
  extends CssProp,
@@ -205,6 +206,7 @@ export const Panel = ({
205
206
  }
206
207
  {...aria}
207
208
  >
209
+ {expanded && <HotKey keyCombo="esc" handler={toggleExpand} />}
208
210
  <header
209
211
  role="none"
210
212
  className={classNames(
@@ -174,8 +174,8 @@ export const Tab = <Tag extends React.ElementType = "button">({
174
174
  active && activeClassName,
175
175
  disabled && "text-tint-500 pointer-events-none",
176
176
  tabFlex ? "flex-1" : "flex-initial max-w-36",
177
- minimal ? "min-w-6" : "min-w-18",
178
- "flex items-center justify-center px-1 rounded overflow-hidden cursor-pointer",
177
+ minimal ? "min-w-6 rounded" : "min-w-18 rounded-capped",
178
+ "flex items-center justify-center px-1 overflow-hidden cursor-pointer",
179
179
  )}
180
180
  onClick={() => !active && onClick?.(id)}
181
181
  ref={ref as AnyObject}
@@ -47,7 +47,7 @@ export interface TabPanelProps extends ChildrenProp<typeof Tab> {
47
47
  /**
48
48
  * tab variations
49
49
  */
50
- variant?: "soft" | "solid" | "outline";
50
+ variant?: "soft" | "solid" | "outline" | "pills";
51
51
  /**
52
52
  * tab button flex to fill tabs
53
53
  */
@@ -64,6 +64,10 @@ export interface TabPanelProps extends ChildrenProp<typeof Tab> {
64
64
  * tab list className
65
65
  */
66
66
  headerClassName?: string;
67
+ /**
68
+ * active tab className
69
+ */
70
+ activeClassName?: string;
67
71
  /**
68
72
  * append element
69
73
  */
@@ -122,6 +126,7 @@ export const TabPanel = ({
122
126
  headerClassName,
123
127
  orientation = "top",
124
128
  activeTab,
129
+ activeClassName,
125
130
  justify,
126
131
  variant,
127
132
  tabFlex,
@@ -196,6 +201,7 @@ export const TabPanel = ({
196
201
  {tabs.map((node: AnyObject) =>
197
202
  cloneElement(node, {
198
203
  tabFlex: node.props.tabFlex ?? tabFlex,
204
+ activeClassName: node.props.activeClassName ?? activeClassName,
199
205
  onClick: handleClick,
200
206
  active: node.props.id === active,
201
207
  }),
@@ -245,7 +245,7 @@ export const Flyout = ({
245
245
  data-ref="panelClose"
246
246
  className={classNames(
247
247
  "fabric-panelAction",
248
- "cursor-pointer p-1 text-xl self-stretch",
248
+ "cursor-pointer p-1 text-xl self-center",
249
249
  )}
250
250
  icon={CoreIcons.close}
251
251
  onClick={() => handleClose(false)}
@@ -240,7 +240,7 @@ export const Modal = ({
240
240
  data-ref="panelClose"
241
241
  className={classNames(
242
242
  "fabric-panelAction",
243
- "cursor-pointer p-1 text-xl self-stretch",
243
+ "cursor-pointer p-1 text-xl self-center",
244
244
  )}
245
245
  icon={CoreIcons.close}
246
246
  onClick={() => handleClose(false)}
@@ -417,7 +417,7 @@ export namespace CoreIcons {
417
417
  export const mediaPlay = "M8,5.14V19.14L19,12.14L8,5.14Z";
418
418
  export const mediaPause = "M14,19H18V5H14M6,19H10V5H6V19Z";
419
419
  export const mediaContrast =
420
- "M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z";
420
+ "M12,20C9.79,20 7.79,19.1 6.34,17.66L17.66,6.34C19.1,7.79 20,9.79 20,12A8,8 0 0,1 12,20M6,8H8V6H9.5V8H11.5V9.5H9.5V11.5H8V9.5H6M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,16H17V14.5H12V16Z";
421
421
  export const mediaEqs =
422
422
  "M7 3H5V9H7V3M19 3H17V13H19V3M3 13H5V21H7V13H9V11H3V13M15 7H13V3H11V7H9V9H15V7M11 21H13V11H11V21M15 15V17H17V21H19V17H21V15H15Z";
423
423
  export const mediaCaptionOff =
@@ -437,4 +437,13 @@ export namespace CoreIcons {
437
437
  "M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M10,16V19.08L13.08,16H20V4H4V16H10M6,7H18V9H6V7M6,11H15V13H6V11Z";
438
438
  export const mediaCommentAdd =
439
439
  "M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22V22H9M10,16V19.08L13.08,16H20V4H4V16H10M11,6H13V9H16V11H13V14H11V11H8V9H11V6Z";
440
+
441
+ export const mediaLightness =
442
+ "M12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12A6,6 0 0,1 12,18M20,15.31L23.31,12L20,8.69V4H15.31L12,0.69L8.69,4H4V8.69L0.69,12L4,15.31V20H8.69L12,23.31L15.31,20H20V15.31Z";
443
+ export const mediaColor =
444
+ "M19,11.5C19,11.5 17,13.67 17,15A2,2 0 0,0 19,17A2,2 0 0,0 21,15C21,13.67 19,11.5 19,11.5M5.21,10L10,5.21L14.79,10M16.56,8.94L7.62,0L6.21,1.41L8.59,3.79L3.44,8.94C2.85,9.5 2.85,10.47 3.44,11.06L8.94,16.56C9.23,16.85 9.62,17 10,17C10.38,17 10.77,16.85 11.06,16.56L16.56,11.06C17.15,10.47 17.15,9.5 16.56,8.94Z";
445
+ export const mediaInvert =
446
+ "M12,19.58V19.58C10.4,19.58 8.89,18.96 7.76,17.83C6.62,16.69 6,15.19 6,13.58C6,12 6.62,10.47 7.76,9.34L12,5.1M17.66,7.93L12,2.27V2.27L6.34,7.93C3.22,11.05 3.22,16.12 6.34,19.24C7.9,20.8 9.95,21.58 12,21.58C14.05,21.58 16.1,20.8 17.66,19.24C20.78,16.12 20.78,11.05 17.66,7.93Z";
447
+ export const mediaSaturate =
448
+ "M12 2A10 10 0 0 0 2 12A10 10 0 0 0 12 22A10 10 0 0 0 22 12A10 10 0 0 0 12 2M12 4A8 8 0 0 1 20 12A8 8 0 0 1 12 20V4Z";
440
449
  }