vim-web 0.3.44-dev.58 → 0.3.44-dev.59

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.
@@ -1,5 +1,6 @@
1
1
  export * as Ids from './controlBarIds';
2
2
  export * as Style from './style';
3
- export type * from './controlBar';
4
3
  export type * from './controlBarButton';
4
+ export { isControlBarButtonItem } from './controlBarButton';
5
+ export type * from './controlBar';
5
6
  export type * from './controlBarSection';
@@ -61511,11 +61511,6 @@ Averrage Date/Second ${avgDataRatePS} kb
61511
61511
  sectionDefaultStyle,
61512
61512
  sectionNoPadStyle
61513
61513
  }, Symbol.toStringTag, { value: "Module" }));
61514
- const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
61515
- __proto__: null,
61516
- Ids: controlBarIds,
61517
- Style: style
61518
- }, Symbol.toStringTag, { value: "Module" }));
61519
61514
  var jsxRuntime = { exports: {} };
61520
61515
  var reactJsxRuntime_production_min = {};
61521
61516
  /**
@@ -62454,6 +62449,21 @@ Averrage Date/Second ${avgDataRatePS} kb
62454
62449
  return jsxRuntime.exports;
62455
62450
  }
62456
62451
  var jsxRuntimeExports = requireJsxRuntime();
62452
+ function isControlBarButtonItem(button) {
62453
+ return button !== null && typeof button === "object" && typeof button.id === "string" && typeof button.tip === "string" && typeof button.action === "function" && typeof button.icon === "function" && (button.enabled === void 0 || typeof button.enabled === "function") && (button.isOn === void 0 || typeof button.isOn === "function") && (button.style === void 0 || typeof button.style === "function");
62454
+ }
62455
+ function createButton(button) {
62456
+ var _a3;
62457
+ if (button.enabled !== void 0 && !button.enabled()) return null;
62458
+ const style$1 = (button.style ?? buttonDefaultStyle)((_a3 = button.isOn) == null ? void 0 : _a3.call(button));
62459
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("button", { id: button.id, "data-tip": button.tip, onClick: button.action, className: style$1, type: "button", children: button.icon({ height: "20", width: "20", fill: "currentColor", className: "vc-max-h-[80%]" }) }, button.id);
62460
+ }
62461
+ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
62462
+ __proto__: null,
62463
+ Ids: controlBarIds,
62464
+ Style: style,
62465
+ isControlBarButtonItem
62466
+ }, Symbol.toStringTag, { value: "Module" }));
62457
62467
  function pointer({ height, width, fill: fill2, className }) {
62458
62468
  return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { className, height, width, viewBox: "0 0 50 50", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
62459
62469
  "path",
@@ -67316,15 +67326,6 @@ Averrage Date/Second ${avgDataRatePS} kb
67316
67326
  }
67317
67327
  );
67318
67328
  }
67319
- function isControlBarButtonItem(button) {
67320
- return button !== null && typeof button === "object" && typeof button.id === "string" && typeof button.tip === "string" && typeof button.action === "function" && typeof button.icon === "function" && (button.enabled === void 0 || typeof button.enabled === "function") && (button.isOn === void 0 || typeof button.isOn === "function") && (button.style === void 0 || typeof button.style === "function");
67321
- }
67322
- function createButton(button) {
67323
- var _a3;
67324
- if (button.enabled !== void 0 && !button.enabled()) return null;
67325
- const style$1 = (button.style ?? buttonDefaultStyle)((_a3 = button.isOn) == null ? void 0 : _a3.call(button));
67326
- return /* @__PURE__ */ jsxRuntimeExports.jsx("button", { id: button.id, "data-tip": button.tip, onClick: button.action, className: style$1, type: "button", children: button.icon({ height: "20", width: "20", fill: "currentColor", className: "vc-max-h-[80%]" }) }, button.id);
67327
- }
67328
67329
  function createSection$1(section) {
67329
67330
  if (section.enable !== void 0 && !section.enable()) return null;
67330
67331
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `vim-control-bar-section ${section.style ?? sectionDefaultStyle}`, children: section.buttons.map((b) => {