@ramme-io/ui 4.2.2 → 4.2.4
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/blocks/ai/Actions.js +8 -4
- package/dist/blocks/ai/PromptInput.js +13 -5
- package/dist/components/data-display/DataTable.d.ts +17 -2
- package/dist/components/data-display/DataTable.js +61 -49
- package/dist/components/data-display/_DataTableCards.d.ts +33 -0
- package/dist/components/data-display/_DataTableCards.js +153 -0
- package/dist/components/feedback/Plan.js +1 -1
- package/dist/components/forms/DatePicker.js +19 -5
- package/dist/components/showroom/ShowroomSidebar.js +1 -1
- package/dist/components/theme/FineTuningControls.js +8 -8
- package/dist/index.css +1 -1
- package/dist/wizardManifest.js +33 -5
- package/package.json +2 -2
- package/src/wizardManifest.ts +33 -5
- package/dist/formFieldFloor.test.d.ts +0 -1
package/dist/wizardManifest.js
CHANGED
|
@@ -912,21 +912,49 @@ const e = {
|
|
|
912
912
|
{
|
|
913
913
|
id: "data-table",
|
|
914
914
|
name: "DataTable",
|
|
915
|
-
version: "1.0.
|
|
916
|
-
description: 'A "Smart" data grid that renders data based on a simple JSON schema.',
|
|
915
|
+
version: "1.0.1",
|
|
916
|
+
description: 'A "Smart" data grid that renders data based on a simple JSON schema. Below 768px it renders the same rows as cards instead, derived from the column definitions — no second layout to write. Set mobileCards={false} to keep the grid at every width.',
|
|
917
917
|
tags: [
|
|
918
918
|
"data-display",
|
|
919
919
|
"grid",
|
|
920
920
|
"table",
|
|
921
|
-
"smart-component"
|
|
921
|
+
"smart-component",
|
|
922
|
+
"responsive",
|
|
923
|
+
"mobile"
|
|
922
924
|
],
|
|
923
925
|
category: "data-display",
|
|
924
|
-
props: [
|
|
926
|
+
props: [
|
|
927
|
+
{
|
|
928
|
+
name: "schema",
|
|
929
|
+
type: "Array<ColumnSchema>",
|
|
930
|
+
description: "Columns as a JSON schema; an alternative to passing columnDefs."
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
name: "actions",
|
|
934
|
+
type: "Array<TableAction>",
|
|
935
|
+
description: "Per-row icon buttons, pinned right in the grid and shown in the card footer."
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
name: "mobileCards",
|
|
939
|
+
type: "boolean",
|
|
940
|
+
description: "Render rows as cards below 768px. Default true."
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
name: "emptyState",
|
|
944
|
+
type: "ReactNode",
|
|
945
|
+
description: "Shown instead of the grid or the cards when there are no rows."
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
name: "loading",
|
|
949
|
+
type: "boolean",
|
|
950
|
+
description: "Shows a loading overlay in the grid, skeleton cards on a phone."
|
|
951
|
+
}
|
|
952
|
+
],
|
|
925
953
|
importPath: "./components/data-display/DataTable",
|
|
926
954
|
filePath: "src/components/data-display/DataTable.tsx",
|
|
927
955
|
sku: "@molecule/data/data-table",
|
|
928
956
|
humanLabel: "DataTable",
|
|
929
|
-
humanDescription: 'A "Smart" data grid that renders data based on a simple JSON schema.'
|
|
957
|
+
humanDescription: 'A "Smart" data grid that renders data based on a simple JSON schema. Below 768px it renders the same rows as cards instead, derived from the column definitions — no second layout to write. Set mobileCards={false} to keep the grid at every width.'
|
|
930
958
|
},
|
|
931
959
|
{
|
|
932
960
|
id: "kpi-grid",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ramme-io/ui",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.4",
|
|
4
4
|
"description": "The structural component library for the Ramme Framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"tailwind-merge": "^3.3.1",
|
|
55
55
|
"tippy.js": "^6.3.7",
|
|
56
56
|
"zod": "^3.23.8",
|
|
57
|
-
"@ramme-io/shared": "3.
|
|
57
|
+
"@ramme-io/shared": "3.4.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@storybook/addon-links": "^10.5.9",
|
package/src/wizardManifest.ts
CHANGED
|
@@ -916,21 +916,49 @@ export const wizardManifest: WizardManifest = {
|
|
|
916
916
|
{
|
|
917
917
|
"id": "data-table",
|
|
918
918
|
"name": "DataTable",
|
|
919
|
-
"version": "1.0.
|
|
920
|
-
"description": "A \"Smart\" data grid that renders data based on a simple JSON schema.",
|
|
919
|
+
"version": "1.0.1",
|
|
920
|
+
"description": "A \"Smart\" data grid that renders data based on a simple JSON schema. Below 768px it renders the same rows as cards instead, derived from the column definitions — no second layout to write. Set mobileCards={false} to keep the grid at every width.",
|
|
921
921
|
"tags": [
|
|
922
922
|
"data-display",
|
|
923
923
|
"grid",
|
|
924
924
|
"table",
|
|
925
|
-
"smart-component"
|
|
925
|
+
"smart-component",
|
|
926
|
+
"responsive",
|
|
927
|
+
"mobile"
|
|
926
928
|
],
|
|
927
929
|
"category": "data-display",
|
|
928
|
-
"props": [
|
|
930
|
+
"props": [
|
|
931
|
+
{
|
|
932
|
+
"name": "schema",
|
|
933
|
+
"type": "Array<ColumnSchema>",
|
|
934
|
+
"description": "Columns as a JSON schema; an alternative to passing columnDefs."
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
"name": "actions",
|
|
938
|
+
"type": "Array<TableAction>",
|
|
939
|
+
"description": "Per-row icon buttons, pinned right in the grid and shown in the card footer."
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
"name": "mobileCards",
|
|
943
|
+
"type": "boolean",
|
|
944
|
+
"description": "Render rows as cards below 768px. Default true."
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "emptyState",
|
|
948
|
+
"type": "ReactNode",
|
|
949
|
+
"description": "Shown instead of the grid or the cards when there are no rows."
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "loading",
|
|
953
|
+
"type": "boolean",
|
|
954
|
+
"description": "Shows a loading overlay in the grid, skeleton cards on a phone."
|
|
955
|
+
}
|
|
956
|
+
],
|
|
929
957
|
"importPath": "./components/data-display/DataTable",
|
|
930
958
|
"filePath": "src/components/data-display/DataTable.tsx",
|
|
931
959
|
"sku": "@molecule/data/data-table",
|
|
932
960
|
"humanLabel": "DataTable",
|
|
933
|
-
"humanDescription": "A \"Smart\" data grid that renders data based on a simple JSON schema."
|
|
961
|
+
"humanDescription": "A \"Smart\" data grid that renders data based on a simple JSON schema. Below 768px it renders the same rows as cards instead, derived from the column definitions — no second layout to write. Set mobileCards={false} to keep the grid at every width."
|
|
934
962
|
},
|
|
935
963
|
{
|
|
936
964
|
"id": "kpi-grid",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|