@drghaliasri/butex 6.1.1 → 6.1.3

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/react.js CHANGED
@@ -24,6 +24,26 @@ __export(react_entry_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(react_entry_exports);
26
26
 
27
+ // src/react/matrixPickerCss.ts
28
+ var MATRIX_PICKER_CSS = `
29
+ .butex-widget .matrix-grid-picker,
30
+ .butex-widget .matrix-grid-cell {
31
+ box-sizing: border-box;
32
+ }
33
+ `.trim();
34
+ var MATRIX_PICKER_STYLE_ID = "butex-matrix-picker-css";
35
+ function injectMatrixPickerCss(doc) {
36
+ const d = doc ?? (typeof document !== "undefined" ? document : void 0);
37
+ if (!d || d.getElementById(MATRIX_PICKER_STYLE_ID)) {
38
+ return;
39
+ }
40
+ const style = d.createElement("style");
41
+ style.id = MATRIX_PICKER_STYLE_ID;
42
+ style.textContent = MATRIX_PICKER_CSS;
43
+ d.head.appendChild(style);
44
+ }
45
+ injectMatrixPickerCss();
46
+
27
47
  // src/react/ButexEditor.tsx
28
48
  var import_react = require("react");
29
49