@kosdev-code/kos-ddk-components 2.0.4 → 2.1.0

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/index.js CHANGED
@@ -3609,7 +3609,7 @@ const Ps = _.div`
3609
3609
  width: 4px;
3610
3610
  z-index: 1;
3611
3611
  `, $s = _.div`
3612
- background-color: ${(t) => t.disabled ? "var(--ddk-generic-color-grey-20, #dfdede)" : t.backgroundColor ? t.backgroundColor : "var(--ddk-generic-color-white, #ffffff)"};
3612
+ background-color: ${(t) => t.disabled ? "var(--ddk-generic-color-grey-50, #888888)" : t.backgroundColor ? t.backgroundColor : "var(--ddk-generic-color-white, #ffffff)"};
3613
3613
 
3614
3614
  border-radius: 8px;
3615
3615
  border: 1px solid var(--ddk-generic-color-grey-20, #dfdede);
@@ -3696,48 +3696,50 @@ const Ps = _.div`
3696
3696
  width: 100%;
3697
3697
  position: absolute;
3698
3698
  top: 0;
3699
- background-color: ${(t) => t.disabled ? "var(--ddk-generic-color-grey-20, #dfdede)" : t.backgroundColor ? t.backgroundColor : "var(--ddk-component-dashboard-card-header-background-color)"};
3699
+ background-color: ${(t) => t.disabled ? "var(--ddk-generic-color-grey-50, #888888)" : t.backgroundColor ? t.backgroundColor : "var(--ddk-component-dashboard-card-header-background-color)"};
3700
3700
  `, Lr = ({
3701
3701
  avatar: t,
3702
3702
  body: n,
3703
3703
  cardId: o,
3704
3704
  color: c,
3705
- backgroundColor: h,
3706
- errors: y,
3707
- footer: S,
3708
- disabled: P,
3709
- indicatorColor: F,
3710
- onCardSelect: j,
3711
- showNavIcon: M,
3712
- title: X
3705
+ headerBackgroundColor: h,
3706
+ backgroundColor: y,
3707
+ errors: S,
3708
+ footer: P,
3709
+ disabled: F,
3710
+ indicatorColor: j,
3711
+ onCardSelect: M,
3712
+ showNavIcon: X,
3713
+ title: s
3713
3714
  }) => {
3714
- const s = Dt(null), m = (i) => {
3715
- s.current = i.pointerId;
3716
- }, e = (i) => {
3717
- s.current === i.pointerId && (j == null || j(o)), s.current = null;
3718
- }, { componentModeOverride: r } = It();
3715
+ h || (h = y);
3716
+ const m = Dt(null), e = (d) => {
3717
+ m.current = d.pointerId;
3718
+ }, r = (d) => {
3719
+ m.current === d.pointerId && (M == null || M(o)), m.current = null;
3720
+ }, { componentModeOverride: a } = It();
3719
3721
  return /* @__PURE__ */ at(
3720
3722
  $s,
3721
3723
  {
3722
3724
  color: c,
3723
- backgroundColor: h,
3724
- onPointerDown: m,
3725
- onPointerUp: e,
3726
- disabled: P,
3725
+ backgroundColor: y,
3726
+ onPointerDown: e,
3727
+ onPointerUp: r,
3728
+ disabled: F,
3727
3729
  children: [
3728
- r === "compact" && F && /* @__PURE__ */ k(js, { backgroundColor: F }),
3730
+ a === "compact" && j && /* @__PURE__ */ k(js, { backgroundColor: j }),
3729
3731
  /* @__PURE__ */ k(
3730
3732
  Vs,
3731
3733
  {
3732
3734
  backgroundColor: h,
3733
- disabled: P
3735
+ disabled: F
3734
3736
  }
3735
3737
  ),
3736
- !!t && /* @__PURE__ */ k(Ns, { backgroundColor: h, children: t }),
3737
- X && /* @__PURE__ */ k(zs, { backgroundColor: h, children: X }),
3738
+ !!t && /* @__PURE__ */ k(Ns, { backgroundColor: y, children: t }),
3739
+ s && /* @__PURE__ */ k(zs, { backgroundColor: y, children: s }),
3738
3740
  /* @__PURE__ */ k(Bs, { children: n }),
3739
- r === "compact" && !!M && /* @__PURE__ */ k(Fs, {}),
3740
- !!S && /* @__PURE__ */ k(Ls, { children: S })
3741
+ a === "compact" && !!X && /* @__PURE__ */ k(Fs, {}),
3742
+ !!P && /* @__PURE__ */ k(Ls, { children: P })
3741
3743
  ]
3742
3744
  }
3743
3745
  );
@@ -3970,19 +3972,30 @@ const Ps = _.div`
3970
3972
 
3971
3973
  & table {
3972
3974
  overflow: hidden;
3975
+ border-collapse: collapse;
3973
3976
  border-radius: var(--ddk-component-table-border-radius);
3974
-
3975
3977
  border-spacing: 0;
3976
3978
  width: 100%;
3977
3979
 
3978
3980
  & tr {
3981
+ border-top: var(--ddk-component-table-border-width)
3982
+ var(--ddk-component-table-border-style)
3983
+ var(--ddk-component-table-border-color);
3979
3984
  vertical-align: top;
3985
+
3986
+ &.no-heading:first-of-type {
3987
+ border-top: none;
3988
+ }
3980
3989
  }
3981
3990
 
3982
3991
  & .heading {
3983
3992
  background-color: var(--ddk-component-table-heading-background-color);
3984
3993
  height: var(--ddk-component-table-heading-height);
3985
3994
 
3995
+ &:first-of-type {
3996
+ border-top: none;
3997
+ }
3998
+
3986
3999
  & th {
3987
4000
  color: var(--ddk-component-table-heading-color);
3988
4001
  font-size: var(--ddk-component-table-heading-font-size);
@@ -4013,9 +4026,6 @@ const Ps = _.div`
4013
4026
 
4014
4027
  & .data {
4015
4028
  & td {
4016
- border-top: var(--ddk-component-table-border-width)
4017
- var(--ddk-component-table-border-style)
4018
- var(--ddk-component-table-border-color);
4019
4029
  padding: var(--ddk-component-table-data-padding);
4020
4030
  }
4021
4031
  }
@@ -4051,12 +4061,6 @@ const Ps = _.div`
4051
4061
  }
4052
4062
 
4053
4063
  & .data {
4054
- & td {
4055
- border-top: var(--ddk-component-table-info-border-width)
4056
- var(--ddk-component-table-info-border-style)
4057
- var(--ddk-component-table-info-border-color);
4058
- }
4059
-
4060
4064
  &.indent {
4061
4065
  & td {
4062
4066
  padding: var(--ddk-component-table-info-data-indent-padding);
@@ -4100,7 +4104,11 @@ const Ps = _.div`
4100
4104
  /* @__PURE__ */ k("tbody", { children: c == null ? void 0 : c.map((j, M) => /* @__PURE__ */ k(
4101
4105
  "tr",
4102
4106
  {
4103
- className: "data" + (P === "info" && S ? " indent" : ""),
4107
+ className: `
4108
+ data
4109
+ ${P === "info" && S ? " indent" : ""}
4110
+ ${S ? "" : " no-heading"}
4111
+ `,
4104
4112
  children: /* @__PURE__ */ k(
4105
4113
  F,
4106
4114
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosdev-code/kos-ddk-components",
3
- "version": "2.0.4",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -12,15 +12,15 @@
12
12
  "./style.css": "./style.css"
13
13
  },
14
14
  "dependencies": {
15
- "@kosdev-code/kos-ui-sdk": "~2.0.41",
16
- "@kosdev-code/kos-dispense-sdk": "~2.0.41"
15
+ "@kosdev-code/kos-ui-sdk": "~2.1.1",
16
+ "@kosdev-code/kos-dispense-sdk": "~2.1.1"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react-router-dom": "^6.11.2"
20
20
  },
21
21
  "kos": {
22
22
  "build": {
23
- "gitHash": "221fedf31dd11999a754543ac90ad93acb602a1f"
23
+ "gitHash": "44209c3896236d2d701f11c536c35ec021ece847"
24
24
  }
25
25
  },
26
26
  "publishConfig": {