@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260228093240 → 0.8.1-dev.20260318104006

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.js CHANGED
@@ -951,6 +951,7 @@ var ColorInput = (props) => {
951
951
  {
952
952
  type: "color",
953
953
  name: props.name,
954
+ title: color,
954
955
  id: props.name,
955
956
  value: color,
956
957
  onChange: handleColorChange,
@@ -2037,6 +2038,7 @@ var Icon_default = Icon;
2037
2038
 
2038
2039
  // src/FormReducer.tsx
2039
2040
  var FORM_INPUT_UPDATE = "FORM_INPUT_UPDATE";
2041
+ var FORM_INITIAL_UPDATE = "FORM_INITIAL_UPDATE";
2040
2042
  function setNestedProperty(obj, path, value) {
2041
2043
  if (path.includes(".")) {
2042
2044
  const keys = path.split(".");
@@ -2067,6 +2069,11 @@ function FormReducer(state, action) {
2067
2069
  ),
2068
2070
  lastPropertyChanged: action.name.toString()
2069
2071
  };
2072
+ case FORM_INITIAL_UPDATE:
2073
+ return {
2074
+ inputValues: { ...action.values },
2075
+ lastPropertyChanged: action.name?.toString() || ""
2076
+ };
2070
2077
  default:
2071
2078
  return state;
2072
2079
  }
@@ -2510,7 +2517,7 @@ var DataList = (props) => {
2510
2517
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
2511
2518
  "th",
2512
2519
  {
2513
- className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.moneyView ? " text-right" : ""),
2520
+ className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.moneyView ? " text-right" : ""),
2514
2521
  children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Hyperlink, { href: url, className: "text-body-950", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "flex items-center space-x-1", children: [
2515
2522
  /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: column.label }),
2516
2523
  column.enableSorting && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon_default, { className: "w-4 h-4", name: icon })
package/dist/index.mjs CHANGED
@@ -911,6 +911,7 @@ var ColorInput = (props) => {
911
911
  {
912
912
  type: "color",
913
913
  name: props.name,
914
+ title: color,
914
915
  id: props.name,
915
916
  value: color,
916
917
  onChange: handleColorChange,
@@ -2005,6 +2006,7 @@ var Icon_default = Icon;
2005
2006
 
2006
2007
  // src/FormReducer.tsx
2007
2008
  var FORM_INPUT_UPDATE = "FORM_INPUT_UPDATE";
2009
+ var FORM_INITIAL_UPDATE = "FORM_INITIAL_UPDATE";
2008
2010
  function setNestedProperty(obj, path, value) {
2009
2011
  if (path.includes(".")) {
2010
2012
  const keys = path.split(".");
@@ -2035,6 +2037,11 @@ function FormReducer(state, action) {
2035
2037
  ),
2036
2038
  lastPropertyChanged: action.name.toString()
2037
2039
  };
2040
+ case FORM_INITIAL_UPDATE:
2041
+ return {
2042
+ inputValues: { ...action.values },
2043
+ lastPropertyChanged: action.name?.toString() || ""
2044
+ };
2038
2045
  default:
2039
2046
  return state;
2040
2047
  }
@@ -2478,7 +2485,7 @@ var DataList = (props) => {
2478
2485
  return /* @__PURE__ */ jsx40(
2479
2486
  "th",
2480
2487
  {
2481
- className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.moneyView ? " text-right" : ""),
2488
+ className: "px-6 py-3 text-left font-medium cursor-pointer bg-neutral-soft " + column.width + (column.controlType == ViewControlTypes_default.moneyView ? " text-right" : ""),
2482
2489
  children: /* @__PURE__ */ jsx40(Hyperlink, { href: url, className: "text-body-950", children: /* @__PURE__ */ jsxs22("span", { className: "flex items-center space-x-1", children: [
2483
2490
  /* @__PURE__ */ jsx40("span", { children: column.label }),
2484
2491
  column.enableSorting && /* @__PURE__ */ jsx40(Icon_default, { className: "w-4 h-4", name: icon })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acoustte-digital-services/digitalstore-controls-dev",
3
- "version": "0.8.1-dev.20260228093240",
3
+ "version": "0.8.1-dev.20260318104006",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,7 +16,7 @@
16
16
  "react-dom": "^18 || ^19"
17
17
  },
18
18
  "devDependencies": {
19
- "@types/node": "^25.3.2",
19
+ "@types/node": "^25.5.0",
20
20
  "@types/react": "^19",
21
21
  "@types/react-dom": "^19",
22
22
  "tsup": "^8.5.1",
@@ -25,6 +25,6 @@
25
25
  "license": "ISC",
26
26
  "dependencies": {
27
27
  "moment-timezone": "^0.6.0",
28
- "next": "^15.5.12"
28
+ "next": "^15.5.13"
29
29
  }
30
30
  }