@borisj74/bv-ds 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3,6 +3,10 @@
3
3
  var React28 = require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var bvDsIcons = require('@borisj74/bv-ds-icons');
6
+ var react = require('@tiptap/react');
7
+ var starterKit = require('@tiptap/starter-kit');
8
+ var extensionTextAlign = require('@tiptap/extension-text-align');
9
+ var extensionPlaceholder = require('@tiptap/extension-placeholder');
6
10
 
7
11
  function _interopNamespace(e) {
8
12
  if (e && e.__esModule) return e;
@@ -4884,10 +4888,10 @@ function ActivityFeed({
4884
4888
  }
4885
4889
  );
4886
4890
  }
4887
- function ringGeometry(diameter, stroke, value, opts = {}) {
4891
+ function ringGeometry(diameter, stroke2, value, opts = {}) {
4888
4892
  const { ringIndex = 0, ringGap = 0, arcFraction = 1 } = opts;
4889
4893
  const center = diameter / 2;
4890
- const radius = center - stroke / 2 - ringIndex * (stroke + ringGap);
4894
+ const radius = center - stroke2 / 2 - ringIndex * (stroke2 + ringGap);
4891
4895
  const circumference = 2 * Math.PI * radius;
4892
4896
  const arc = circumference * arcFraction;
4893
4897
  const filled = Math.max(0, Math.min(100, value)) / 100 * arc;
@@ -4895,7 +4899,7 @@ function ringGeometry(diameter, stroke, value, opts = {}) {
4895
4899
  }
4896
4900
  function RingPair({
4897
4901
  geo,
4898
- stroke,
4902
+ stroke: stroke2,
4899
4903
  trackClass = "stroke-utility-neutral-100",
4900
4904
  progressClass,
4901
4905
  progressColor,
@@ -4911,7 +4915,7 @@ function RingPair({
4911
4915
  r: radius,
4912
4916
  fill: "none",
4913
4917
  className: trackClass,
4914
- strokeWidth: stroke,
4918
+ strokeWidth: stroke2,
4915
4919
  strokeDasharray: `${arc} ${circumference}`
4916
4920
  }
4917
4921
  ),
@@ -4924,7 +4928,7 @@ function RingPair({
4924
4928
  fill: "none",
4925
4929
  className: clsx_default(!progressColor && progressClass),
4926
4930
  stroke: progressColor,
4927
- strokeWidth: stroke,
4931
+ strokeWidth: stroke2,
4928
4932
  strokeLinecap: linecap,
4929
4933
  strokeDasharray: `${filled} ${circumference}`
4930
4934
  }
@@ -4956,10 +4960,10 @@ function ActivityGauge({
4956
4960
  legend = "none",
4957
4961
  className
4958
4962
  }) {
4959
- const { diameter, stroke, gap, valueClass } = sizeSpecs[size];
4963
+ const { diameter, stroke: stroke2, gap, valueClass } = sizeSpecs[size];
4960
4964
  const center = diameter / 2;
4961
4965
  const rings = series.map((s2, i) => {
4962
- const geo = ringGeometry(diameter, stroke, s2.value, { ringIndex: i, ringGap: gap });
4966
+ const geo = ringGeometry(diameter, stroke2, s2.value, { ringIndex: i, ringGap: gap });
4963
4967
  const strokeClass = DEFAULT_STROKE_CLASSES[i % DEFAULT_STROKE_CLASSES.length];
4964
4968
  return { radius: geo.radius, circumference: geo.circumference, filled: geo.filled, strokeClass, custom: s2.color };
4965
4969
  });
@@ -4981,7 +4985,7 @@ function ActivityGauge({
4981
4985
  r: r2.radius,
4982
4986
  fill: "none",
4983
4987
  className: TRACK_STROKE_CLASS,
4984
- strokeWidth: stroke
4988
+ strokeWidth: stroke2
4985
4989
  }
4986
4990
  ),
4987
4991
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -4993,7 +4997,7 @@ function ActivityGauge({
4993
4997
  fill: "none",
4994
4998
  className: clsx_default(!r2.custom && r2.strokeClass),
4995
4999
  stroke: r2.custom,
4996
- strokeWidth: stroke,
5000
+ strokeWidth: stroke2,
4997
5001
  strokeLinecap: "round",
4998
5002
  strokeDasharray: `${r2.filled} ${r2.circumference - r2.filled}`
4999
5003
  }
@@ -15793,15 +15797,15 @@ var getMainColorOfGraphicItem = function getMainColorOfGraphicItem2(item) {
15793
15797
  var _item$type;
15794
15798
  var _ref = item, displayName = _ref.type.displayName;
15795
15799
  var defaultedProps = (_item$type = item.type) !== null && _item$type !== void 0 && _item$type.defaultProps ? _objectSpread10(_objectSpread10({}, item.type.defaultProps), item.props) : item.props;
15796
- var stroke = defaultedProps.stroke, fill = defaultedProps.fill;
15800
+ var stroke2 = defaultedProps.stroke, fill = defaultedProps.fill;
15797
15801
  var result;
15798
15802
  switch (displayName) {
15799
15803
  case "Line":
15800
- result = stroke;
15804
+ result = stroke2;
15801
15805
  break;
15802
15806
  case "Area":
15803
15807
  case "Radar":
15804
- result = stroke && stroke !== "none" ? stroke : fill;
15808
+ result = stroke2 && stroke2 !== "none" ? stroke2 : fill;
15805
15809
  break;
15806
15810
  default:
15807
15811
  result = fill;
@@ -20311,7 +20315,7 @@ var PolarRadiusAxis = /* @__PURE__ */ (function(_PureComponent) {
20311
20315
  key: "renderTicks",
20312
20316
  value: function renderTicks() {
20313
20317
  var _this = this;
20314
- var _this$props4 = this.props, ticks2 = _this$props4.ticks, tick = _this$props4.tick, angle = _this$props4.angle, tickFormatter = _this$props4.tickFormatter, stroke = _this$props4.stroke, others = _objectWithoutProperties14(_this$props4, _excluded24);
20318
+ var _this$props4 = this.props, ticks2 = _this$props4.ticks, tick = _this$props4.tick, angle = _this$props4.angle, tickFormatter = _this$props4.tickFormatter, stroke2 = _this$props4.stroke, others = _objectWithoutProperties14(_this$props4, _excluded24);
20315
20319
  var textAnchor = this.getTickTextAnchor();
20316
20320
  var axisProps = filterProps(others, false);
20317
20321
  var customTickProps = filterProps(tick, false);
@@ -20322,7 +20326,7 @@ var PolarRadiusAxis = /* @__PURE__ */ (function(_PureComponent) {
20322
20326
  transform: "rotate(".concat(90 - angle, ", ").concat(coord.x, ", ").concat(coord.y, ")")
20323
20327
  }, axisProps), {}, {
20324
20328
  stroke: "none",
20325
- fill: stroke
20329
+ fill: stroke2
20326
20330
  }, customTickProps), {}, {
20327
20331
  index: i
20328
20332
  }, coord), {}, {
@@ -20600,7 +20604,7 @@ var PolarAngleAxis = /* @__PURE__ */ (function(_PureComponent) {
20600
20604
  key: "renderTicks",
20601
20605
  value: function renderTicks() {
20602
20606
  var _this = this;
20603
- var _this$props3 = this.props, ticks2 = _this$props3.ticks, tick = _this$props3.tick, tickLine = _this$props3.tickLine, tickFormatter = _this$props3.tickFormatter, stroke = _this$props3.stroke;
20607
+ var _this$props3 = this.props, ticks2 = _this$props3.ticks, tick = _this$props3.tick, tickLine = _this$props3.tickLine, tickFormatter = _this$props3.tickFormatter, stroke2 = _this$props3.stroke;
20604
20608
  var axisProps = filterProps(this.props, false);
20605
20609
  var customTickProps = filterProps(tick, false);
20606
20610
  var tickLineProps = _objectSpread23(_objectSpread23({}, axisProps), {}, {
@@ -20613,7 +20617,7 @@ var PolarAngleAxis = /* @__PURE__ */ (function(_PureComponent) {
20613
20617
  textAnchor
20614
20618
  }, axisProps), {}, {
20615
20619
  stroke: "none",
20616
- fill: stroke
20620
+ fill: stroke2
20617
20621
  }, customTickProps), {}, {
20618
20622
  index: i,
20619
20623
  payload: entry,
@@ -22547,9 +22551,9 @@ var Brush = /* @__PURE__ */ (function(_PureComponent) {
22547
22551
  }, {
22548
22552
  key: "renderBackground",
22549
22553
  value: function renderBackground() {
22550
- var _this$props6 = this.props, x2 = _this$props6.x, y2 = _this$props6.y, width = _this$props6.width, height = _this$props6.height, fill = _this$props6.fill, stroke = _this$props6.stroke;
22554
+ var _this$props6 = this.props, x2 = _this$props6.x, y2 = _this$props6.y, width = _this$props6.width, height = _this$props6.height, fill = _this$props6.fill, stroke2 = _this$props6.stroke;
22551
22555
  return /* @__PURE__ */ React28__namespace.default.createElement("rect", {
22552
- stroke,
22556
+ stroke: stroke2,
22553
22557
  fill,
22554
22558
  x: x2,
22555
22559
  y: y2,
@@ -22624,7 +22628,7 @@ var Brush = /* @__PURE__ */ (function(_PureComponent) {
22624
22628
  }, {
22625
22629
  key: "renderSlide",
22626
22630
  value: function renderSlide(startX, endX) {
22627
- var _this$props9 = this.props, y2 = _this$props9.y, height = _this$props9.height, stroke = _this$props9.stroke, travellerWidth = _this$props9.travellerWidth;
22631
+ var _this$props9 = this.props, y2 = _this$props9.y, height = _this$props9.height, stroke2 = _this$props9.stroke, travellerWidth = _this$props9.travellerWidth;
22628
22632
  var x2 = Math.min(startX, endX) + travellerWidth;
22629
22633
  var width = Math.max(Math.abs(endX - startX) - travellerWidth, 0);
22630
22634
  return /* @__PURE__ */ React28__namespace.default.createElement("rect", {
@@ -22637,7 +22641,7 @@ var Brush = /* @__PURE__ */ (function(_PureComponent) {
22637
22641
  cursor: "move"
22638
22642
  },
22639
22643
  stroke: "none",
22640
- fill: stroke,
22644
+ fill: stroke2,
22641
22645
  fillOpacity: 0.2,
22642
22646
  x: x2,
22643
22647
  y: y2,
@@ -22648,12 +22652,12 @@ var Brush = /* @__PURE__ */ (function(_PureComponent) {
22648
22652
  }, {
22649
22653
  key: "renderText",
22650
22654
  value: function renderText() {
22651
- var _this$props10 = this.props, startIndex = _this$props10.startIndex, endIndex = _this$props10.endIndex, y2 = _this$props10.y, height = _this$props10.height, travellerWidth = _this$props10.travellerWidth, stroke = _this$props10.stroke;
22655
+ var _this$props10 = this.props, startIndex = _this$props10.startIndex, endIndex = _this$props10.endIndex, y2 = _this$props10.y, height = _this$props10.height, travellerWidth = _this$props10.travellerWidth, stroke2 = _this$props10.stroke;
22652
22656
  var _this$state4 = this.state, startX = _this$state4.startX, endX = _this$state4.endX;
22653
22657
  var offset = 5;
22654
22658
  var attrs = {
22655
22659
  pointerEvents: "none",
22656
- fill: stroke
22660
+ fill: stroke2
22657
22661
  };
22658
22662
  return /* @__PURE__ */ React28__namespace.default.createElement(Layer, {
22659
22663
  className: "recharts-brush-texts"
@@ -22690,14 +22694,14 @@ var Brush = /* @__PURE__ */ (function(_PureComponent) {
22690
22694
  }], [{
22691
22695
  key: "renderDefaultTraveller",
22692
22696
  value: function renderDefaultTraveller(props) {
22693
- var x2 = props.x, y2 = props.y, width = props.width, height = props.height, stroke = props.stroke;
22697
+ var x2 = props.x, y2 = props.y, width = props.width, height = props.height, stroke2 = props.stroke;
22694
22698
  var lineY = Math.floor(y2 + height / 2) - 1;
22695
22699
  return /* @__PURE__ */ React28__namespace.default.createElement(React28__namespace.default.Fragment, null, /* @__PURE__ */ React28__namespace.default.createElement("rect", {
22696
22700
  x: x2,
22697
22701
  y: y2,
22698
22702
  width,
22699
22703
  height,
22700
- fill: stroke,
22704
+ fill: stroke2,
22701
22705
  stroke: "none"
22702
22706
  }), /* @__PURE__ */ React28__namespace.default.createElement("line", {
22703
22707
  x1: x2 + 1,
@@ -25212,7 +25216,7 @@ var CartesianAxis = /* @__PURE__ */ (function(_Component) {
25212
25216
  */
25213
25217
  function renderTicks(ticks2, fontSize, letterSpacing) {
25214
25218
  var _this2 = this;
25215
- var _this$props6 = this.props, tickLine = _this$props6.tickLine, stroke = _this$props6.stroke, tick = _this$props6.tick, tickFormatter = _this$props6.tickFormatter, unit2 = _this$props6.unit;
25219
+ var _this$props6 = this.props, tickLine = _this$props6.tickLine, stroke2 = _this$props6.stroke, tick = _this$props6.tick, tickFormatter = _this$props6.tickFormatter, unit2 = _this$props6.unit;
25216
25220
  var finalTicks = getTicks(_objectSpread37(_objectSpread37({}, this.props), {}, {
25217
25221
  ticks: ticks2
25218
25222
  }), fontSize, letterSpacing);
@@ -25230,7 +25234,7 @@ var CartesianAxis = /* @__PURE__ */ (function(_Component) {
25230
25234
  verticalAnchor
25231
25235
  }, axisProps), {}, {
25232
25236
  stroke: "none",
25233
- fill: stroke
25237
+ fill: stroke2
25234
25238
  }, customTickProps), tickCoord), {}, {
25235
25239
  index: i,
25236
25240
  payload: entry,
@@ -28922,13 +28926,13 @@ function ChartMini({
28922
28926
  className,
28923
28927
  style
28924
28928
  }) {
28925
- const stroke = resolveColor(color2, trend);
28929
+ const stroke2 = resolveColor(color2, trend);
28926
28930
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className, style: { width, height, ...style }, children: /* @__PURE__ */ jsxRuntime.jsx(ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(LineChart, { data, margin: { top: 4, right: 4, bottom: 4, left: 4 }, children: /* @__PURE__ */ jsxRuntime.jsx(
28927
28931
  Line2,
28928
28932
  {
28929
28933
  type: "monotone",
28930
28934
  dataKey: "value",
28931
- stroke,
28935
+ stroke: stroke2,
28932
28936
  strokeWidth: 2,
28933
28937
  dot: false,
28934
28938
  isAnimationActive: false
@@ -31101,8 +31105,8 @@ function LoadingIndicator({
31101
31105
  if (variant === "dot-circle") {
31102
31106
  spinner = /* @__PURE__ */ jsxRuntime.jsx(DotCircle, { px });
31103
31107
  } else {
31104
- const stroke = borderPx[size];
31105
- const r2 = (px - stroke) / 2;
31108
+ const stroke2 = borderPx[size];
31109
+ const r2 = (px - stroke2) / 2;
31106
31110
  const c2 = 2 * Math.PI * r2;
31107
31111
  spinner = /* @__PURE__ */ jsxRuntime.jsxs(
31108
31112
  "svg",
@@ -31120,7 +31124,7 @@ function LoadingIndicator({
31120
31124
  r: r2,
31121
31125
  fill: "none",
31122
31126
  className: "stroke-bg-quaternary",
31123
- strokeWidth: stroke
31127
+ strokeWidth: stroke2
31124
31128
  }
31125
31129
  ),
31126
31130
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -31131,7 +31135,7 @@ function LoadingIndicator({
31131
31135
  r: r2,
31132
31136
  fill: "none",
31133
31137
  className: "stroke-fg-brand-primary",
31134
- strokeWidth: stroke,
31138
+ strokeWidth: stroke2,
31135
31139
  strokeDasharray: c2,
31136
31140
  strokeDashoffset: c2 * 0.75,
31137
31141
  strokeLinecap: variant === "line-spinner" ? "round" : "butt"
@@ -32728,22 +32732,22 @@ function ProgressCircle({
32728
32732
  size = "xxs",
32729
32733
  className
32730
32734
  }) {
32731
- const { d, stroke, valueClass, labelClass } = SPECS[size];
32735
+ const { d, stroke: stroke2, valueClass, labelClass } = SPECS[size];
32732
32736
  const isHalf = shape === "half";
32733
- const geo = ringGeometry(d, stroke, value, { arcFraction: isHalf ? 0.5 : 1 });
32737
+ const geo = ringGeometry(d, stroke2, value, { arcFraction: isHalf ? 0.5 : 1 });
32734
32738
  const center = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center text-center", children: [
32735
32739
  label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx_default("font-medium text-text-tertiary", labelClass), children: label }),
32736
32740
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx_default("font-display font-semibold text-text-primary", valueClass), children: valueText ?? `${value}%` })
32737
32741
  ] });
32738
32742
  if (isHalf) {
32739
- const h = geo.center + stroke;
32743
+ const h = geo.center + stroke2;
32740
32744
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx_default("relative", className), style: { width: d, height: h }, children: [
32741
- /* @__PURE__ */ jsxRuntime.jsx("svg", { width: d, height: d, viewBox: `0 0 ${d} ${d}`, className: "absolute left-0 top-0", role: "img", "aria-label": `${value}%`, children: /* @__PURE__ */ jsxRuntime.jsx("g", { transform: `rotate(180 ${geo.center} ${geo.center})`, children: /* @__PURE__ */ jsxRuntime.jsx(RingPair, { geo, stroke, trackClass: "stroke-bg-quaternary", progressClass: "stroke-fg-brand-primary" }) }) }),
32745
+ /* @__PURE__ */ jsxRuntime.jsx("svg", { width: d, height: d, viewBox: `0 0 ${d} ${d}`, className: "absolute left-0 top-0", role: "img", "aria-label": `${value}%`, children: /* @__PURE__ */ jsxRuntime.jsx("g", { transform: `rotate(180 ${geo.center} ${geo.center})`, children: /* @__PURE__ */ jsxRuntime.jsx(RingPair, { geo, stroke: stroke2, trackClass: "stroke-bg-quaternary", progressClass: "stroke-fg-brand-primary" }) }) }),
32742
32746
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute bottom-0 left-1/2 -translate-x-1/2", children: center })
32743
32747
  ] });
32744
32748
  }
32745
32749
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx_default("relative", className), style: { width: d, height: d }, children: [
32746
- /* @__PURE__ */ jsxRuntime.jsx("svg", { width: d, height: d, viewBox: `0 0 ${d} ${d}`, className: "block", role: "img", "aria-label": `${value}%`, children: /* @__PURE__ */ jsxRuntime.jsx("g", { transform: `rotate(-90 ${geo.center} ${geo.center})`, children: /* @__PURE__ */ jsxRuntime.jsx(RingPair, { geo, stroke, trackClass: "stroke-bg-quaternary", progressClass: "stroke-fg-brand-primary" }) }) }),
32750
+ /* @__PURE__ */ jsxRuntime.jsx("svg", { width: d, height: d, viewBox: `0 0 ${d} ${d}`, className: "block", role: "img", "aria-label": `${value}%`, children: /* @__PURE__ */ jsxRuntime.jsx("g", { transform: `rotate(-90 ${geo.center} ${geo.center})`, children: /* @__PURE__ */ jsxRuntime.jsx(RingPair, { geo, stroke: stroke2, trackClass: "stroke-bg-quaternary", progressClass: "stroke-fg-brand-primary" }) }) }),
32747
32751
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: center })
32748
32752
  ] });
32749
32753
  }
@@ -33705,6 +33709,137 @@ function TextEditorTooltip({ children, className, ...rest }) {
33705
33709
  }
33706
33710
  );
33707
33711
  }
33712
+ function useTextEditor({
33713
+ placeholder,
33714
+ content,
33715
+ editable = true,
33716
+ onUpdate
33717
+ } = {}) {
33718
+ return react.useEditor({
33719
+ editable,
33720
+ content: content ?? "",
33721
+ extensions: [
33722
+ starterKit.StarterKit.configure({ link: { openOnClick: false } }),
33723
+ extensionTextAlign.TextAlign.configure({ types: ["heading", "paragraph"] }),
33724
+ extensionPlaceholder.Placeholder.configure({ placeholder: placeholder ?? "" })
33725
+ ],
33726
+ onUpdate: ({ editor }) => onUpdate?.(editor.getHTML())
33727
+ });
33728
+ }
33729
+ var stroke = {
33730
+ fill: "none",
33731
+ stroke: "currentColor",
33732
+ strokeWidth: 2,
33733
+ strokeLinecap: "round",
33734
+ strokeLinejoin: "round"
33735
+ };
33736
+ var ItalicIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", ...stroke, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19 4h-9M14 20H5M15 4 9 20" }) });
33737
+ var UnderlineIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", ...stroke, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 4v6a6 6 0 0 0 12 0V4M4 21h16" }) });
33738
+ var StrikeIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", ...stroke, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M4 12h16M16 7.5A4 3 0 0 0 8 8M8 16.5a4 3 0 0 0 8-.5" }) });
33739
+ var HeadingIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", ...stroke, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 4v16M18 4v16M6 12h12" }) });
33740
+ var BulletListIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", ...stroke, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01" }) });
33741
+ var OrderedListIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", ...stroke, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M10 6h10M10 12h10M10 18h10M4 4v4M3 14h2l-2 3h2" }) });
33742
+ var proseClass = clsx_default(
33743
+ "font-body text-sm text-text-primary",
33744
+ "[&_.ProseMirror]:min-h-[80px] [&_.ProseMirror]:outline-none",
33745
+ "[&_.ProseMirror_p]:my-0",
33746
+ "[&_.ProseMirror_ul]:list-disc [&_.ProseMirror_ul]:pl-2xl",
33747
+ "[&_.ProseMirror_ol]:list-decimal [&_.ProseMirror_ol]:pl-2xl",
33748
+ "[&_.ProseMirror_h2]:text-lg [&_.ProseMirror_h2]:font-semibold [&_.ProseMirror_h2]:text-text-primary",
33749
+ "[&_.ProseMirror_a]:text-text-brand-secondary [&_.ProseMirror_a]:underline",
33750
+ // Placeholder (extension adds .is-editor-empty + data-placeholder).
33751
+ "[&_.ProseMirror_p.is-editor-empty:first-child]:before:pointer-events-none",
33752
+ "[&_.ProseMirror_p.is-editor-empty:first-child]:before:float-left",
33753
+ "[&_.ProseMirror_p.is-editor-empty:first-child]:before:h-0",
33754
+ "[&_.ProseMirror_p.is-editor-empty:first-child]:before:text-text-placeholder",
33755
+ "[&_.ProseMirror_p.is-editor-empty:first-child]:before:content-[attr(data-placeholder)]"
33756
+ );
33757
+ function TextEditor({
33758
+ placeholder,
33759
+ content,
33760
+ onUpdate,
33761
+ disabled = false,
33762
+ className
33763
+ }) {
33764
+ const editor = useTextEditor({ placeholder, content, editable: !disabled, onUpdate });
33765
+ React28.useEffect(() => {
33766
+ editor?.setEditable(!disabled);
33767
+ }, [editor, disabled]);
33768
+ const isActive = (name, attrs) => editor?.isActive(name, attrs) ?? false;
33769
+ const setLink = () => {
33770
+ if (!editor) return;
33771
+ const prev = editor.getAttributes("link").href ?? "";
33772
+ const url = window.prompt("Link URL", prev);
33773
+ if (url === null) return;
33774
+ const chain = editor.chain().focus().extendMarkRange("link");
33775
+ if (url === "") chain.unsetLink().run();
33776
+ else chain.setLink({ href: url }).run();
33777
+ };
33778
+ const ToolbarButton = ({
33779
+ label,
33780
+ icon,
33781
+ active,
33782
+ onRun
33783
+ }) => /* @__PURE__ */ jsxRuntime.jsx(
33784
+ ButtonUtility,
33785
+ {
33786
+ variant: "ghost",
33787
+ label,
33788
+ icon: /* @__PURE__ */ jsxRuntime.jsx(IconBox, { size: 20, children: icon }),
33789
+ "aria-pressed": active,
33790
+ disabled: disabled || !editor,
33791
+ className: active ? "!bg-bg-secondary !text-fg-secondary" : void 0,
33792
+ onMouseDown: (e) => e.preventDefault(),
33793
+ onClick: onRun
33794
+ }
33795
+ );
33796
+ return /* @__PURE__ */ jsxRuntime.jsxs(
33797
+ "div",
33798
+ {
33799
+ className: clsx_default(
33800
+ "relative flex flex-col overflow-hidden rounded-xl border border-border-primary bg-bg-primary",
33801
+ "focus-within:ring-2 focus-within:ring-border-brand",
33802
+ disabled && "opacity-60",
33803
+ className
33804
+ ),
33805
+ children: [
33806
+ /* @__PURE__ */ jsxRuntime.jsxs(TextEditorToolbar, { className: "w-full !rounded-none !border-l-0 !border-r-0 !border-t-0 !shadow-none", children: [
33807
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Bold", icon: /* @__PURE__ */ jsxRuntime.jsx(bvDsIcons.Bold01, {}), active: isActive("bold"), onRun: () => editor?.chain().focus().toggleBold().run() }),
33808
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Italic", icon: /* @__PURE__ */ jsxRuntime.jsx(ItalicIcon, {}), active: isActive("italic"), onRun: () => editor?.chain().focus().toggleItalic().run() }),
33809
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Underline", icon: /* @__PURE__ */ jsxRuntime.jsx(UnderlineIcon, {}), active: isActive("underline"), onRun: () => editor?.chain().focus().toggleUnderline().run() }),
33810
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Strikethrough", icon: /* @__PURE__ */ jsxRuntime.jsx(StrikeIcon, {}), active: isActive("strike"), onRun: () => editor?.chain().focus().toggleStrike().run() }),
33811
+ /* @__PURE__ */ jsxRuntime.jsx(TextEditorToolbarDivider, {}),
33812
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Heading", icon: /* @__PURE__ */ jsxRuntime.jsx(HeadingIcon, {}), active: isActive("heading", { level: 2 }), onRun: () => editor?.chain().focus().toggleHeading({ level: 2 }).run() }),
33813
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Bullet list", icon: /* @__PURE__ */ jsxRuntime.jsx(BulletListIcon, {}), active: isActive("bulletList"), onRun: () => editor?.chain().focus().toggleBulletList().run() }),
33814
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Ordered list", icon: /* @__PURE__ */ jsxRuntime.jsx(OrderedListIcon, {}), active: isActive("orderedList"), onRun: () => editor?.chain().focus().toggleOrderedList().run() }),
33815
+ /* @__PURE__ */ jsxRuntime.jsx(TextEditorToolbarDivider, {}),
33816
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Align left", icon: /* @__PURE__ */ jsxRuntime.jsx(bvDsIcons.AlignLeft, {}), active: editor?.isActive({ textAlign: "left" }) ?? false, onRun: () => editor?.chain().focus().setTextAlign("left").run() }),
33817
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Align center", icon: /* @__PURE__ */ jsxRuntime.jsx(bvDsIcons.AlignCenter, {}), active: editor?.isActive({ textAlign: "center" }) ?? false, onRun: () => editor?.chain().focus().setTextAlign("center").run() }),
33818
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Align right", icon: /* @__PURE__ */ jsxRuntime.jsx(bvDsIcons.AlignRight, {}), active: editor?.isActive({ textAlign: "right" }) ?? false, onRun: () => editor?.chain().focus().setTextAlign("right").run() }),
33819
+ /* @__PURE__ */ jsxRuntime.jsx(TextEditorToolbarDivider, {}),
33820
+ /* @__PURE__ */ jsxRuntime.jsx(ToolbarButton, { label: "Link", icon: /* @__PURE__ */ jsxRuntime.jsx(bvDsIcons.Link01, {}), active: isActive("link"), onRun: setLink })
33821
+ ] }),
33822
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative min-h-[120px] px-3xl py-2xl", children: [
33823
+ /* @__PURE__ */ jsxRuntime.jsx(react.EditorContent, { editor, className: proseClass }),
33824
+ editor?.isActive("link") && /* @__PURE__ */ jsxRuntime.jsxs(TextEditorTooltip, { className: "absolute right-3xl top-md z-10", children: [
33825
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "max-w-[160px] truncate px-xs text-xs text-text-secondary", children: String(editor.getAttributes("link").href ?? "") }),
33826
+ /* @__PURE__ */ jsxRuntime.jsx(ButtonUtility, { variant: "ghost", size: "xs", label: "Edit link", icon: /* @__PURE__ */ jsxRuntime.jsx(IconBox, { size: 16, children: /* @__PURE__ */ jsxRuntime.jsx(bvDsIcons.Link01, {}) }), onClick: setLink }),
33827
+ /* @__PURE__ */ jsxRuntime.jsx(
33828
+ ButtonUtility,
33829
+ {
33830
+ variant: "ghost",
33831
+ size: "xs",
33832
+ label: "Remove link",
33833
+ icon: /* @__PURE__ */ jsxRuntime.jsx(IconBox, { size: 16, children: /* @__PURE__ */ jsxRuntime.jsx(bvDsIcons.XClose, {}) }),
33834
+ onClick: () => editor.chain().focus().extendMarkRange("link").unsetLink().run()
33835
+ }
33836
+ )
33837
+ ] })
33838
+ ] })
33839
+ ]
33840
+ }
33841
+ );
33842
+ }
33708
33843
  function TextareaInputField({
33709
33844
  size = "md",
33710
33845
  label,
@@ -34217,6 +34352,7 @@ exports.TableHeaderLabel = TableHeaderLabel;
34217
34352
  exports.Tabs = Tabs;
34218
34353
  exports.Tag = Tag;
34219
34354
  exports.TagsInputField = TagsInputField;
34355
+ exports.TextEditor = TextEditor;
34220
34356
  exports.TextEditorToolbar = TextEditorToolbar;
34221
34357
  exports.TextEditorToolbarDivider = TextEditorToolbarDivider;
34222
34358
  exports.TextEditorTooltip = TextEditorTooltip;
@@ -34230,5 +34366,6 @@ exports.TreeViewItem = TreeViewItem;
34230
34366
  exports.VerificationCodeInput = VerificationCodeInput;
34231
34367
  exports.illustrations = illustrations_exports;
34232
34368
  exports.useContextMenu = useContextMenu;
34369
+ exports.useTextEditor = useTextEditor;
34233
34370
  //# sourceMappingURL=index.cjs.map
34234
34371
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import react__default, { ReactNode, ButtonHTMLAttributes, MouseEventHandler, HTMLAttributes, CSSProperties, InputHTMLAttributes, ElementType, TextareaHTMLAttributes, SVGProps } from 'react';
3
+ import { Editor } from '@tiptap/react';
3
4
 
4
5
  type ActivityFeedDivider = "line" | "connector" | "divider" | "none";
5
6
  interface ActivityFeedProps {
@@ -2675,6 +2676,25 @@ interface TagProps extends HTMLAttributes<HTMLSpanElement> {
2675
2676
  */
2676
2677
  declare function Tag({ size, children, icon, checkbox, checked, onCheckedChange, count, onClose, className, ...rest }: TagProps): react.JSX.Element;
2677
2678
 
2679
+ interface TextEditorProps {
2680
+ placeholder?: string;
2681
+ /** Initial HTML content. */
2682
+ content?: string;
2683
+ /** Fires with serialized HTML on every change. */
2684
+ onUpdate?: (html: string) => void;
2685
+ disabled?: boolean;
2686
+ className?: string;
2687
+ }
2688
+ /**
2689
+ * Rich-text editor — composes the `TextEditorToolbar` / `TextEditorTooltip`
2690
+ * chrome shells onto a TipTap editor (`useTextEditor`). The toolbar buttons map
2691
+ * to TipTap commands and reflect `editor.isActive(...)`; a `TextEditorTooltip`
2692
+ * surfaces link controls when the caret sits inside a link.
2693
+ *
2694
+ * Pass `content` as initial HTML and read changes via `onUpdate(html)`.
2695
+ */
2696
+ declare function TextEditor({ placeholder, content, onUpdate, disabled, className, }: TextEditorProps): react.JSX.Element;
2697
+
2678
2698
  interface TextEditorToolbarProps extends HTMLAttributes<HTMLDivElement> {
2679
2699
  /** Toolbar controls — typically `ButtonUtility` groups. */
2680
2700
  children?: ReactNode;
@@ -2832,6 +2852,30 @@ interface VerificationCodeInputProps {
2832
2852
  */
2833
2853
  declare function VerificationCodeInput({ digits, value, onChange, size, label, hint, destructive, disabled, className, "aria-label": ariaLabel, }: VerificationCodeInputProps): react.JSX.Element;
2834
2854
 
2855
+ interface UseTextEditorOptions {
2856
+ /** Placeholder shown while the document is empty. */
2857
+ placeholder?: string;
2858
+ /** Initial HTML content. */
2859
+ content?: string;
2860
+ /** Whether the editor is editable (default `true`). */
2861
+ editable?: boolean;
2862
+ /** Fires with the serialized HTML on every change. */
2863
+ onUpdate?: (html: string) => void;
2864
+ }
2865
+ /**
2866
+ * Thin wrapper around TipTap's `useEditor`, pre-configured with the standard
2867
+ * extension set: StarterKit (bold/italic/strike/code/heading/lists — and, in
2868
+ * TipTap v3, **underline + link**), TextAlign (left/center/right) and
2869
+ * Placeholder. Link is configured `openOnClick: false` via StarterKit.
2870
+ *
2871
+ * Note: Underline and Link ship inside StarterKit v3, so they are NOT added as
2872
+ * separate extensions (doing so throws a duplicate-extension error).
2873
+ *
2874
+ * Returns the TipTap `Editor` (or `null` until mounted). Compose it with
2875
+ * `EditorContent` + the toolbar, or use the `TextEditor` composite.
2876
+ */
2877
+ declare function useTextEditor({ placeholder, content, editable, onUpdate, }?: UseTextEditorOptions): Editor | null;
2878
+
2835
2879
  /** Line-art cloud illustration (empty-state / upload). Color via `currentColor`. */
2836
2880
  declare function CloudIllustration({ className, ...props }: SVGProps<SVGSVGElement>): react.JSX.Element;
2837
2881
 
@@ -2852,4 +2896,4 @@ declare namespace index {
2852
2896
  export { index_BoxIllustration as BoxIllustration, index_CloudIllustration as CloudIllustration, index_CreditCardIllustration as CreditCardIllustration, index_DocumentsIllustration as DocumentsIllustration };
2853
2897
  }
2854
2898
 
2855
- export { ActivityFeed, type ActivityFeedDivider, type ActivityFeedProps, ActivityGauge, type ActivityGaugeLegend, type ActivityGaugeProps, type ActivityGaugeSeries, type ActivityGaugeSize, AdvancedFilterBar, type AdvancedFilterBarProps, Alert, type AlertAction, type AlertColor, type AlertProps, type AlertSize, Avatar, AvatarAddButton, type AvatarAddButtonProps, type AvatarAddButtonSize, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupSize, AvatarLabelGroup, type AvatarLabelGroupProps, type AvatarLabelGroupSize, AvatarProfilePhoto, type AvatarProfilePhotoProps, type AvatarProfilePhotoSize, type AvatarProps, type AvatarSize, BadgeCloseX, type BadgeCloseXProps, type BadgeCloseXShape, type BadgeColor, type BadgeCommonProps, BadgeGroup, type BadgeGroupBadgePosition, type BadgeGroupProps, type BadgeGroupSize, type BadgeGroupType, type BadgeSize, BreadcrumbButtonBase, type BreadcrumbButtonBaseProps, type BreadcrumbButtonType, Breadcrumbs, type BreadcrumbsDivider, type BreadcrumbsProps, Button, ButtonCloseX, type ButtonCloseXProps, type ButtonCloseXSize, ButtonDestructive, type ButtonDestructiveHierarchy, type ButtonDestructiveProps, type ButtonDestructiveSize, ButtonGroup, type ButtonGroupProps, ButtonGroupSegment, type ButtonGroupSegmentProps, type ButtonGroupSegmentSize, type ButtonProps, ButtonUtility, type ButtonUtilityProps, type ButtonUtilitySize, type ButtonUtilityVariant, type CalendarBreakpoint, CalendarCell, type CalendarCellBreakpoint, CalendarCellDayWeekView, type CalendarCellDayWeekViewProps, type CalendarCellEvent, type CalendarCellProps, CalendarColumnHeader, type CalendarColumnHeaderOrientation, type CalendarColumnHeaderProps, type CalendarColumnHeaderType, CalendarDateIcon, type CalendarDateIconProps, CalendarEvent, type CalendarEventBreakpoint, type CalendarEventColor, CalendarEventDayWeekView, type CalendarEventDayWeekViewProps, type CalendarEventProps, type CalendarEventState, CalendarHeader, type CalendarHeaderProps, CalendarRowLabel, type CalendarRowLabelProps, CalendarTimemarker, type CalendarTimemarkerAlign, type CalendarTimemarkerBreakpoint, type CalendarTimemarkerProps, type CalendarTimeslotState, type CalendarTimeslotType, type CalendarView, CalendarViewDropdown, type CalendarViewDropdownProps, type CalendarViewOption, CardHeader, type CardHeaderProps, CarouselArrow, type CarouselArrowDirection, type CarouselArrowProps, type CarouselArrowSize, CarouselImage, type CarouselImageProps, Change, type ChangeProps, type ChangeTrend, type ChangeType, ChartLegend, type ChartLegendItem, type ChartLegendPosition, type ChartLegendProps, ChartMarker, type ChartMarkerLine, type ChartMarkerProps, ChartMini, type ChartMiniDatum, type ChartMiniProps, type ChartMiniTrend, type ChartSeries, type ChartStyle, ChartTooltip, type ChartTooltipPayloadItem, type ChartTooltipProps, type CheckControlSize, Checkbox, type CheckboxProps, CodeSnippet, type CodeSnippetProps, CodeSnippetTabs, type CodeSnippetTabsProps, ColorBadge, type ColorBadgeProps, CommandBar, CommandBarFooter, type CommandBarFooterHint, type CommandBarFooterProps, CommandBarMenuSection, type CommandBarMenuSectionProps, CommandBarNavigationIcon, type CommandBarNavigationIconProps, type CommandBarProps, CommandDropdownMenuItem, type CommandDropdownMenuItemProps, CommandInput, type CommandInputProps, CommandShortcut, type CommandShortcutProps, ContentDivider, type ContentDividerProps, type ContentDividerStyle, type ContentDividerType, ContentFeatureText, type ContentFeatureTextProps, type ContentFeatureTextSize, ContentHeading, type ContentHeadingProps, type ContentHeadingSize, ContentParagraph, type ContentParagraphProps, type ContentParagraphSize, ContentQuote, type ContentQuoteAlign, type ContentQuoteProps, type ContentQuoteSize, ContentRule, type ContentRuleProps, type ContentRuleSize, ContextMenu, type ContextMenuProps, type ContextMenuState, DatePickerCell, type DatePickerCellProps, type DatePickerCellType, DatePickerListItem, type DatePickerListItemProps, DatePickerMenu, type DatePickerMenuProps, DropdownAccountListItem, type DropdownAccountListItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, type DropdownMenuFooterType, DropdownMenuHeader, type DropdownMenuHeaderProps, type DropdownMenuHeaderType, DropdownMenuItemInsetIcon, type DropdownMenuItemInsetIconProps, type DropdownMenuItemInsetIconType, DropdownMenuListItem, type DropdownMenuListItemProps, EmptyState, type EmptyStateProps, type EmptyStateSize, FeaturedIcon, type FeaturedIconColor, type FeaturedIconProps, type FeaturedIconSize, type FeaturedIconTheme, FeedItemBase, type FeedItemBaseProps, type FeedItemSize, FileUpload, FileUploadBase, type FileUploadBaseProps, FileUploadItemBase, type FileUploadItemBaseProps, type FileUploadItemIconType, type FileUploadItemStatus, type FileUploadItemType, type FileUploadProps, FilterBar, type FilterBarProps, FilterTabs, type FilterTabsProps, FiltersDropdownMenu, type FiltersDropdownMenuProps, FiltersSlideoutMenu, type FiltersSlideoutMenuProps, type HeaderNavItem, HeaderNavigation, type HeaderNavigationProps, type HeaderNavigationType, HelpIcon, type HelpIconProps, InputField, type InputFieldProps, type InputFieldSize, type InputFieldType, LeadingInputField, type LeadingInputFieldProps, LineAndBarChart, type LineAndBarChartProps, LinkMessage, type LinkMessageProps, type LinkMessageType, LoadingIndicator, type LoadingIndicatorProps, type LoadingIndicatorSize, type LoadingIndicatorStyle, MediaMessage, type MediaMessageProps, type MediaMessageType, MegaInputFieldBase, type MegaInputFieldBaseProps, type MegaInputFieldBaseSize, Message, MessageAction, MessageActionButton, type MessageActionButtonProps, MessageActionPanel, type MessageActionPanelProps, type MessageActionProps, type MessageActionType, type MessageBubbleTone, type MessageProps, MessageReaction, type MessageReactionProps, type MessageStatus, MessageStatusIcon, type MessageStatusIconProps, type MessageType, MetricItem, type MetricItemProps, Modal, ModalActions, type ModalActionsProps, type ModalActionsType, ModalHeader, type ModalHeaderProps, type ModalHeaderType, type ModalProps, type ModalSize, ModernBadge, type ModernBadgeProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavAccountCard, type NavAccountCardBreakpoint, NavAccountCardMenuItem, type NavAccountCardMenuItemProps, type NavAccountCardMenuItemType, type NavAccountCardProps, type NavAccountCardVariant, NavButton, type NavButtonProps, NavFeaturedCard, type NavFeaturedCardProps, NavItemBase, type NavItemBaseProps, NavItemDropdownBase, type NavItemDropdownBaseProps, NavMenuButton, type NavMenuButtonProps, Notification, type NotificationProps, type NotificationVariant, NumberInput, type NumberInputLayout, type NumberInputProps, PageHeader, type PageHeaderProps, type PageHeaderStyle, Pagination, PaginationButtonGroupBase, type PaginationButtonGroupBaseProps, type PaginationButtonGroupType, PaginationCards, type PaginationCardsProps, type PaginationCardsVariant, PaginationDotGroup, type PaginationDotGroupProps, PaginationDotIndicator, type PaginationDotIndicatorProps, type PaginationDotSize, type PaginationDotVariant, PaginationNumberBase, type PaginationNumberBaseProps, type PaginationNumberShape, type PaginationProps, type PaginationType, PieChart, type PieChartProps, type PieChartSize, type PieSlice, PillBadge, type PillBadgeProps, ProgressBar, type ProgressBarLabel, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, type ProgressCircleShape, type ProgressCircleSize, RadarChart, type RadarChartProps, type RadarLegendPosition, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupItemSize, type RadioGroupItemType, type RadioGroupProps, type RadioProps, SectionFooter, type SectionFooterProps, type SectionFooterType, SectionHeader, type SectionHeaderProps, SectionLabel, type SectionLabelProps, type SectionLabelSize, Select, SelectMenuItem, type SelectMenuItemProps, type SelectMenuItemSize, type SelectProps, type SelectSize, type SelectType, SidebarNavigation, type SidebarNavigationProps, type SidebarNavigationType, SlideOutMenuHeader, type SlideOutMenuHeaderProps, SlideoutMenu, type SlideoutMenuProps, type SlideoutMenuSide, type SlideoutMenuSize, Slider, type SliderLabel, type SliderProps, type SocialBrand, SocialButton, type SocialButtonProps, type SocialButtonSize, type SocialButtonTheme, StatusIcon, type StatusIconProps, type StatusIconType, StepBase, type StepBaseProps, StepIconBase, type StepIconBaseProps, type StepIconSize, type StepIconType, type StepOrientation, type StepStatus, TabButtonBase, type TabButtonBaseProps, type TabButtonSize, type TabButtonType, type TabItem, TableCell, type TableCellProps, type TableCellSize, TableHeaderCell, type TableHeaderCellProps, type TableHeaderCellSize, TableHeaderLabel, type TableHeaderLabelArrow, type TableHeaderLabelProps, Tabs, type TabsOrientation, type TabsProps, Tag, type TagProps, type TagSize, TagsInputField, type TagsInputFieldProps, type TagsInputVariant, TextEditorToolbar, TextEditorToolbarDivider, type TextEditorToolbarProps, TextEditorTooltip, type TextEditorTooltipProps, TextareaInputField, type TextareaInputFieldProps, Toggle, type ToggleProps, type ToggleSize, type ToggleType, Tooltip, type TooltipArrow, type TooltipProps, TrailingInputField, type TrailingInputFieldProps, type TreeNode, TreeView, TreeViewConnector, type TreeViewConnectorProps, type TreeViewConnectorSize, type TreeViewConnectorType, TreeViewItem, type TreeViewItemProps, type TreeViewItemSize, type TreeViewProps, type UseContextMenuReturn, type VerificationCodeDigits, VerificationCodeInput, type VerificationCodeInputProps, type VerificationCodeSize, index as illustrations, useContextMenu };
2899
+ export { ActivityFeed, type ActivityFeedDivider, type ActivityFeedProps, ActivityGauge, type ActivityGaugeLegend, type ActivityGaugeProps, type ActivityGaugeSeries, type ActivityGaugeSize, AdvancedFilterBar, type AdvancedFilterBarProps, Alert, type AlertAction, type AlertColor, type AlertProps, type AlertSize, Avatar, AvatarAddButton, type AvatarAddButtonProps, type AvatarAddButtonSize, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, type AvatarGroupSize, AvatarLabelGroup, type AvatarLabelGroupProps, type AvatarLabelGroupSize, AvatarProfilePhoto, type AvatarProfilePhotoProps, type AvatarProfilePhotoSize, type AvatarProps, type AvatarSize, BadgeCloseX, type BadgeCloseXProps, type BadgeCloseXShape, type BadgeColor, type BadgeCommonProps, BadgeGroup, type BadgeGroupBadgePosition, type BadgeGroupProps, type BadgeGroupSize, type BadgeGroupType, type BadgeSize, BreadcrumbButtonBase, type BreadcrumbButtonBaseProps, type BreadcrumbButtonType, Breadcrumbs, type BreadcrumbsDivider, type BreadcrumbsProps, Button, ButtonCloseX, type ButtonCloseXProps, type ButtonCloseXSize, ButtonDestructive, type ButtonDestructiveHierarchy, type ButtonDestructiveProps, type ButtonDestructiveSize, ButtonGroup, type ButtonGroupProps, ButtonGroupSegment, type ButtonGroupSegmentProps, type ButtonGroupSegmentSize, type ButtonProps, ButtonUtility, type ButtonUtilityProps, type ButtonUtilitySize, type ButtonUtilityVariant, type CalendarBreakpoint, CalendarCell, type CalendarCellBreakpoint, CalendarCellDayWeekView, type CalendarCellDayWeekViewProps, type CalendarCellEvent, type CalendarCellProps, CalendarColumnHeader, type CalendarColumnHeaderOrientation, type CalendarColumnHeaderProps, type CalendarColumnHeaderType, CalendarDateIcon, type CalendarDateIconProps, CalendarEvent, type CalendarEventBreakpoint, type CalendarEventColor, CalendarEventDayWeekView, type CalendarEventDayWeekViewProps, type CalendarEventProps, type CalendarEventState, CalendarHeader, type CalendarHeaderProps, CalendarRowLabel, type CalendarRowLabelProps, CalendarTimemarker, type CalendarTimemarkerAlign, type CalendarTimemarkerBreakpoint, type CalendarTimemarkerProps, type CalendarTimeslotState, type CalendarTimeslotType, type CalendarView, CalendarViewDropdown, type CalendarViewDropdownProps, type CalendarViewOption, CardHeader, type CardHeaderProps, CarouselArrow, type CarouselArrowDirection, type CarouselArrowProps, type CarouselArrowSize, CarouselImage, type CarouselImageProps, Change, type ChangeProps, type ChangeTrend, type ChangeType, ChartLegend, type ChartLegendItem, type ChartLegendPosition, type ChartLegendProps, ChartMarker, type ChartMarkerLine, type ChartMarkerProps, ChartMini, type ChartMiniDatum, type ChartMiniProps, type ChartMiniTrend, type ChartSeries, type ChartStyle, ChartTooltip, type ChartTooltipPayloadItem, type ChartTooltipProps, type CheckControlSize, Checkbox, type CheckboxProps, CodeSnippet, type CodeSnippetProps, CodeSnippetTabs, type CodeSnippetTabsProps, ColorBadge, type ColorBadgeProps, CommandBar, CommandBarFooter, type CommandBarFooterHint, type CommandBarFooterProps, CommandBarMenuSection, type CommandBarMenuSectionProps, CommandBarNavigationIcon, type CommandBarNavigationIconProps, type CommandBarProps, CommandDropdownMenuItem, type CommandDropdownMenuItemProps, CommandInput, type CommandInputProps, CommandShortcut, type CommandShortcutProps, ContentDivider, type ContentDividerProps, type ContentDividerStyle, type ContentDividerType, ContentFeatureText, type ContentFeatureTextProps, type ContentFeatureTextSize, ContentHeading, type ContentHeadingProps, type ContentHeadingSize, ContentParagraph, type ContentParagraphProps, type ContentParagraphSize, ContentQuote, type ContentQuoteAlign, type ContentQuoteProps, type ContentQuoteSize, ContentRule, type ContentRuleProps, type ContentRuleSize, ContextMenu, type ContextMenuProps, type ContextMenuState, DatePickerCell, type DatePickerCellProps, type DatePickerCellType, DatePickerListItem, type DatePickerListItemProps, DatePickerMenu, type DatePickerMenuProps, DropdownAccountListItem, type DropdownAccountListItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, type DropdownMenuFooterType, DropdownMenuHeader, type DropdownMenuHeaderProps, type DropdownMenuHeaderType, DropdownMenuItemInsetIcon, type DropdownMenuItemInsetIconProps, type DropdownMenuItemInsetIconType, DropdownMenuListItem, type DropdownMenuListItemProps, EmptyState, type EmptyStateProps, type EmptyStateSize, FeaturedIcon, type FeaturedIconColor, type FeaturedIconProps, type FeaturedIconSize, type FeaturedIconTheme, FeedItemBase, type FeedItemBaseProps, type FeedItemSize, FileUpload, FileUploadBase, type FileUploadBaseProps, FileUploadItemBase, type FileUploadItemBaseProps, type FileUploadItemIconType, type FileUploadItemStatus, type FileUploadItemType, type FileUploadProps, FilterBar, type FilterBarProps, FilterTabs, type FilterTabsProps, FiltersDropdownMenu, type FiltersDropdownMenuProps, FiltersSlideoutMenu, type FiltersSlideoutMenuProps, type HeaderNavItem, HeaderNavigation, type HeaderNavigationProps, type HeaderNavigationType, HelpIcon, type HelpIconProps, InputField, type InputFieldProps, type InputFieldSize, type InputFieldType, LeadingInputField, type LeadingInputFieldProps, LineAndBarChart, type LineAndBarChartProps, LinkMessage, type LinkMessageProps, type LinkMessageType, LoadingIndicator, type LoadingIndicatorProps, type LoadingIndicatorSize, type LoadingIndicatorStyle, MediaMessage, type MediaMessageProps, type MediaMessageType, MegaInputFieldBase, type MegaInputFieldBaseProps, type MegaInputFieldBaseSize, Message, MessageAction, MessageActionButton, type MessageActionButtonProps, MessageActionPanel, type MessageActionPanelProps, type MessageActionProps, type MessageActionType, type MessageBubbleTone, type MessageProps, MessageReaction, type MessageReactionProps, type MessageStatus, MessageStatusIcon, type MessageStatusIconProps, type MessageType, MetricItem, type MetricItemProps, Modal, ModalActions, type ModalActionsProps, type ModalActionsType, ModalHeader, type ModalHeaderProps, type ModalHeaderType, type ModalProps, type ModalSize, ModernBadge, type ModernBadgeProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, NavAccountCard, type NavAccountCardBreakpoint, NavAccountCardMenuItem, type NavAccountCardMenuItemProps, type NavAccountCardMenuItemType, type NavAccountCardProps, type NavAccountCardVariant, NavButton, type NavButtonProps, NavFeaturedCard, type NavFeaturedCardProps, NavItemBase, type NavItemBaseProps, NavItemDropdownBase, type NavItemDropdownBaseProps, NavMenuButton, type NavMenuButtonProps, Notification, type NotificationProps, type NotificationVariant, NumberInput, type NumberInputLayout, type NumberInputProps, PageHeader, type PageHeaderProps, type PageHeaderStyle, Pagination, PaginationButtonGroupBase, type PaginationButtonGroupBaseProps, type PaginationButtonGroupType, PaginationCards, type PaginationCardsProps, type PaginationCardsVariant, PaginationDotGroup, type PaginationDotGroupProps, PaginationDotIndicator, type PaginationDotIndicatorProps, type PaginationDotSize, type PaginationDotVariant, PaginationNumberBase, type PaginationNumberBaseProps, type PaginationNumberShape, type PaginationProps, type PaginationType, PieChart, type PieChartProps, type PieChartSize, type PieSlice, PillBadge, type PillBadgeProps, ProgressBar, type ProgressBarLabel, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, type ProgressCircleShape, type ProgressCircleSize, RadarChart, type RadarChartProps, type RadarLegendPosition, Radio, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupItemSize, type RadioGroupItemType, type RadioGroupProps, type RadioProps, SectionFooter, type SectionFooterProps, type SectionFooterType, SectionHeader, type SectionHeaderProps, SectionLabel, type SectionLabelProps, type SectionLabelSize, Select, SelectMenuItem, type SelectMenuItemProps, type SelectMenuItemSize, type SelectProps, type SelectSize, type SelectType, SidebarNavigation, type SidebarNavigationProps, type SidebarNavigationType, SlideOutMenuHeader, type SlideOutMenuHeaderProps, SlideoutMenu, type SlideoutMenuProps, type SlideoutMenuSide, type SlideoutMenuSize, Slider, type SliderLabel, type SliderProps, type SocialBrand, SocialButton, type SocialButtonProps, type SocialButtonSize, type SocialButtonTheme, StatusIcon, type StatusIconProps, type StatusIconType, StepBase, type StepBaseProps, StepIconBase, type StepIconBaseProps, type StepIconSize, type StepIconType, type StepOrientation, type StepStatus, TabButtonBase, type TabButtonBaseProps, type TabButtonSize, type TabButtonType, type TabItem, TableCell, type TableCellProps, type TableCellSize, TableHeaderCell, type TableHeaderCellProps, type TableHeaderCellSize, TableHeaderLabel, type TableHeaderLabelArrow, type TableHeaderLabelProps, Tabs, type TabsOrientation, type TabsProps, Tag, type TagProps, type TagSize, TagsInputField, type TagsInputFieldProps, type TagsInputVariant, TextEditor, type TextEditorProps, TextEditorToolbar, TextEditorToolbarDivider, type TextEditorToolbarProps, TextEditorTooltip, type TextEditorTooltipProps, TextareaInputField, type TextareaInputFieldProps, Toggle, type ToggleProps, type ToggleSize, type ToggleType, Tooltip, type TooltipArrow, type TooltipProps, TrailingInputField, type TrailingInputFieldProps, type TreeNode, TreeView, TreeViewConnector, type TreeViewConnectorProps, type TreeViewConnectorSize, type TreeViewConnectorType, TreeViewItem, type TreeViewItemProps, type TreeViewItemSize, type TreeViewProps, type UseContextMenuReturn, type UseTextEditorOptions, type VerificationCodeDigits, VerificationCodeInput, type VerificationCodeInputProps, type VerificationCodeSize, index as illustrations, useContextMenu, useTextEditor };