@canvas-components/react-list-table 0.3.76 → 0.3.77

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
@@ -4917,6 +4917,7 @@ function CompositeEditor({
4917
4917
  initialText: entry?.key === item.key ? request.initialText : void 0,
4918
4918
  feedback: errors,
4919
4919
  style: {
4920
+ textAlign: request.theme.textAlign,
4920
4921
  fontSize: request.theme.fontSize,
4921
4922
  fontFamily: request.theme.fontFamily,
4922
4923
  fontWeight: request.theme.fontWeight ?? "normal",
@@ -4937,6 +4938,9 @@ function CompositeEditor({
4937
4938
  ) });
4938
4939
  }
4939
4940
 
4941
+ // src/features/editor/editor-overlay.css
4942
+ styleInject(".react-list-table-cell-editor input,\n.react-list-table-cell-editor textarea {\n text-align: var(--react-list-table-editor-text-align, left);\n}\n");
4943
+
4940
4944
  // src/features/editor/editor-change.ts
4941
4945
  function publishEditorChange(request, value, meta = { trigger: "change" }) {
4942
4946
  if (!request.config.hasChangeHandler && request.config.valueType !== "table-select") {
@@ -5431,6 +5435,10 @@ function ReactTableEditorOverlay(props) {
5431
5435
  "div",
5432
5436
  {
5433
5437
  ref: editorHostRef,
5438
+ className: "react-list-table-cell-editor",
5439
+ style: {
5440
+ "--react-list-table-editor-text-align": request.theme.textAlign ?? "left"
5441
+ },
5434
5442
  "aria-busy": request.feedback?.pending || void 0,
5435
5443
  children: [
5436
5444
  renderEditorByType(editorRequest, style),
package/dist/index.js CHANGED
@@ -4916,6 +4916,7 @@ function CompositeEditor({
4916
4916
  initialText: entry?.key === item.key ? request.initialText : void 0,
4917
4917
  feedback: errors,
4918
4918
  style: {
4919
+ textAlign: request.theme.textAlign,
4919
4920
  fontSize: request.theme.fontSize,
4920
4921
  fontFamily: request.theme.fontFamily,
4921
4922
  fontWeight: request.theme.fontWeight ?? "normal",
@@ -4936,6 +4937,9 @@ function CompositeEditor({
4936
4937
  ) });
4937
4938
  }
4938
4939
 
4940
+ // src/features/editor/editor-overlay.css
4941
+ styleInject(".react-list-table-cell-editor input,\n.react-list-table-cell-editor textarea {\n text-align: var(--react-list-table-editor-text-align, left);\n}\n");
4942
+
4939
4943
  // src/features/editor/editor-change.ts
4940
4944
  function publishEditorChange(request, value, meta = { trigger: "change" }) {
4941
4945
  if (!request.config.hasChangeHandler && request.config.valueType !== "table-select") {
@@ -5430,6 +5434,10 @@ function ReactTableEditorOverlay(props) {
5430
5434
  "div",
5431
5435
  {
5432
5436
  ref: editorHostRef,
5437
+ className: "react-list-table-cell-editor",
5438
+ style: {
5439
+ "--react-list-table-editor-text-align": request.theme.textAlign ?? "left"
5440
+ },
5433
5441
  "aria-busy": request.feedback?.pending || void 0,
5434
5442
  children: [
5435
5443
  renderEditorByType(editorRequest, style),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canvas-components/react-list-table",
3
- "version": "0.3.76",
3
+ "version": "0.3.77",
4
4
  "description": "React adapter for the list table core engine.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -39,15 +39,15 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@canvas-components/chart": "0.3.9",
42
- "@canvas-components/list-table": "0.3.58",
43
- "@canvas-components/react-print-design": "0.1.21",
44
- "@canvas-components/utils": "0.2.10",
42
+ "@canvas-components/list-table": "0.3.59",
45
43
  "@canvas-components/react-components": "0.3.31",
46
- "@canvas-components/print-design-plugin": "^0.1.22"
44
+ "@canvas-components/utils": "0.2.10",
45
+ "@canvas-components/print-design-plugin": "^0.1.23",
46
+ "@canvas-components/react-print-design": "0.1.21"
47
47
  },
48
48
  "devDependencies": {
49
- "@canvas-components/print": "0.1.1",
50
- "@canvas-components/print-design": "0.1.14"
49
+ "@canvas-components/print-design": "0.1.14",
50
+ "@canvas-components/print": "0.1.1"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@canvas-components/print": ">=0.1.0",