@kashifd/jwero-components 0.8.6 → 0.8.7

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.es.js CHANGED
@@ -49092,48 +49092,38 @@ const MW = ({
49092
49092
  return ne(), window.addEventListener("resize", ne), window.addEventListener("scroll", ne, !0), () => {
49093
49093
  window.removeEventListener("resize", ne), window.removeEventListener("scroll", ne, !0);
49094
49094
  };
49095
- }, []), /* @__PURE__ */ v.jsxs(
49096
- Le,
49097
- {
49098
- className: "hide-scrollbar",
49099
- sx: { position: "relative", height: "100%", ...w },
49100
- children: [
49101
- /* @__PURE__ */ v.jsx(
49102
- cv,
49103
- {
49104
- ref: D,
49105
- component: eo,
49106
- sx: { boxShadow: "none", ...e },
49107
- children: /* @__PURE__ */ v.jsxs(sv, { stickyHeader: !0, children: [
49108
- /* @__PURE__ */ v.jsx(dv, { children: /* @__PURE__ */ v.jsx(yu, { children: Mr.isArrayWithValues(r) && r.map((ne) => /* @__PURE__ */ v.jsx(
49109
- xu,
49095
+ }, []), /* @__PURE__ */ v.jsxs(Le, { sx: { position: "relative", height: "100%", ...w }, children: [
49096
+ /* @__PURE__ */ v.jsx(
49097
+ cv,
49098
+ {
49099
+ ref: D,
49100
+ component: eo,
49101
+ className: "hide-scrollbar",
49102
+ sx: {
49103
+ boxShadow: "none",
49104
+ overflow: "auto",
49105
+ height: "100%",
49106
+ ...e
49107
+ },
49108
+ children: /* @__PURE__ */ v.jsxs(sv, { stickyHeader: !0, children: [
49109
+ /* @__PURE__ */ v.jsx(dv, { children: /* @__PURE__ */ v.jsx(yu, { children: Mr.isArrayWithValues(r) && r.map((ne) => /* @__PURE__ */ v.jsx(
49110
+ xu,
49111
+ {
49112
+ align: ne.align,
49113
+ sortDirection: E === ne.value ? B : !1,
49114
+ sx: {
49115
+ backgroundColor: T.palette.background.paper,
49116
+ border: 0,
49117
+ padding: "1rem",
49118
+ cursor: ne.sortable ? "pointer" : "default"
49119
+ },
49120
+ onClick: () => _(ne.value, ne.sortable),
49121
+ children: ne.sortable ? /* @__PURE__ */ v.jsx(
49122
+ uv,
49110
49123
  {
49111
- align: ne.align,
49112
- sortDirection: E === ne.value ? B : !1,
49113
- sx: {
49114
- backgroundColor: T.palette.background.paper,
49115
- border: 0,
49116
- padding: "1rem",
49117
- cursor: ne.sortable ? "pointer" : "default"
49118
- },
49119
- onClick: () => _(ne.value, ne.sortable),
49120
- children: ne.sortable ? /* @__PURE__ */ v.jsx(
49121
- uv,
49122
- {
49123
- active: E === ne.value,
49124
- direction: E === ne.value ? B : "asc",
49125
- children: /* @__PURE__ */ v.jsx(
49126
- nt,
49127
- {
49128
- sx: {
49129
- color: T.colors.text_secondary,
49130
- whiteSpace: u ? "nowrap" : "normal"
49131
- },
49132
- children: ne.label
49133
- }
49134
- )
49135
- }
49136
- ) : /* @__PURE__ */ v.jsx(
49124
+ active: E === ne.value,
49125
+ direction: E === ne.value ? B : "asc",
49126
+ children: /* @__PURE__ */ v.jsx(
49137
49127
  nt,
49138
49128
  {
49139
49129
  sx: {
@@ -49143,89 +49133,98 @@ const MW = ({
49143
49133
  children: ne.label
49144
49134
  }
49145
49135
  )
49146
- },
49147
- ne.value
49148
- )) }) }),
49149
- /* @__PURE__ */ v.jsx(lv, { children: Mr.isArrayWithValues(ue) && ue.map((ne, re) => /* @__PURE__ */ v.jsx(
49150
- yu,
49136
+ }
49137
+ ) : /* @__PURE__ */ v.jsx(
49138
+ nt,
49151
49139
  {
49152
- onClick: (te) => s(te, ne),
49153
- onContextMenu: (te) => c(te, ne),
49154
49140
  sx: {
49155
- borderBottom: "1px solid #f5f6f7",
49156
- cursor: "pointer",
49157
- transition: "0.3s",
49158
- "&:hover": {
49159
- backgroundColor: T.palette.background.default
49160
- }
49141
+ color: T.colors.text_secondary,
49142
+ whiteSpace: u ? "nowrap" : "normal"
49161
49143
  },
49162
- children: r.map((te) => /* @__PURE__ */ v.jsx(
49163
- xu,
49164
- {
49165
- align: te.align,
49166
- children: a[te.value](ne)
49167
- },
49168
- `${te.value}_${re}`
49169
- ))
49170
- },
49171
- `${(ne.id ?? re).toString()}_${re}`
49172
- )) })
49173
- ] })
49174
- }
49175
- ),
49176
- j && b && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
49177
- V && /* @__PURE__ */ v.jsx(
49178
- Jt,
49179
- {
49180
- disableRipple: !0,
49181
- sx: {
49182
- position: "absolute",
49183
- left: 15,
49184
- // top: "10%",
49185
- top: `${Z}px`,
49186
- // transform: "translateY(-50%)",
49187
- zIndex: 1,
49188
- backgroundColor: "white",
49189
- borderRadius: "50%",
49190
- padding: "0.35rem",
49191
- boxShadow: 2,
49192
- transition: "0.3s ease",
49193
- "&:hover": {
49194
- backgroundColor: T.colors.surface2_lightgrey
49144
+ children: ne.label
49195
49145
  }
49196
- },
49197
- onClick: $,
49198
- children: /* @__PURE__ */ v.jsx(Zt, { title: "Scroll left", enterDelay: 1500, children: /* @__PURE__ */ v.jsx(XF, { sx: { color: "#000" } }) })
49199
- }
49200
- ),
49201
- F && /* @__PURE__ */ v.jsx(
49202
- Jt,
49146
+ )
49147
+ },
49148
+ ne.value
49149
+ )) }) }),
49150
+ /* @__PURE__ */ v.jsx(lv, { children: Mr.isArrayWithValues(ue) && ue.map((ne, re) => /* @__PURE__ */ v.jsx(
49151
+ yu,
49203
49152
  {
49204
- disableRipple: !0,
49153
+ onClick: (te) => s(te, ne),
49154
+ onContextMenu: (te) => c(te, ne),
49205
49155
  sx: {
49206
- position: "absolute",
49207
- right: 15,
49208
- // top: "50%",
49209
- top: `${Z}px`,
49210
- // transform: "translateY(-50%)",
49211
- zIndex: 1,
49212
- backgroundColor: "white",
49213
- borderRadius: "50%",
49214
- padding: "0.35rem",
49215
- boxShadow: 2,
49216
- transition: "0.3s ease",
49156
+ borderBottom: "1px solid #f5f6f7",
49157
+ cursor: "pointer",
49158
+ transition: "0.3s",
49217
49159
  "&:hover": {
49218
- backgroundColor: T.colors.surface2_lightgrey
49160
+ backgroundColor: T.palette.background.default
49219
49161
  }
49220
49162
  },
49221
- onClick: W,
49222
- children: /* @__PURE__ */ v.jsx(Zt, { title: "Scroll right", enterDelay: 1500, children: /* @__PURE__ */ v.jsx(GF, { sx: { color: "#000" } }) })
49223
- }
49224
- )
49163
+ children: r.map((te) => /* @__PURE__ */ v.jsx(
49164
+ xu,
49165
+ {
49166
+ align: te.align,
49167
+ children: a[te.value](ne)
49168
+ },
49169
+ `${te.value}_${re}`
49170
+ ))
49171
+ },
49172
+ `${(ne.id ?? re).toString()}_${re}`
49173
+ )) })
49225
49174
  ] })
49226
- ]
49227
- }
49228
- );
49175
+ }
49176
+ ),
49177
+ j && b && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
49178
+ V && /* @__PURE__ */ v.jsx(
49179
+ Jt,
49180
+ {
49181
+ disableRipple: !0,
49182
+ sx: {
49183
+ position: "absolute",
49184
+ left: 15,
49185
+ // top: "10%",
49186
+ top: `${Z}px`,
49187
+ // transform: "translateY(-50%)",
49188
+ zIndex: 1,
49189
+ backgroundColor: "white",
49190
+ borderRadius: "50%",
49191
+ padding: "0.35rem",
49192
+ boxShadow: 2,
49193
+ transition: "0.3s ease",
49194
+ "&:hover": {
49195
+ backgroundColor: T.colors.surface2_lightgrey
49196
+ }
49197
+ },
49198
+ onClick: $,
49199
+ children: /* @__PURE__ */ v.jsx(Zt, { title: "Scroll left", enterDelay: 1500, children: /* @__PURE__ */ v.jsx(XF, { sx: { color: "#000" } }) })
49200
+ }
49201
+ ),
49202
+ F && /* @__PURE__ */ v.jsx(
49203
+ Jt,
49204
+ {
49205
+ disableRipple: !0,
49206
+ sx: {
49207
+ position: "absolute",
49208
+ right: 15,
49209
+ // top: "50%",
49210
+ top: `${Z}px`,
49211
+ // transform: "translateY(-50%)",
49212
+ zIndex: 1,
49213
+ backgroundColor: "white",
49214
+ borderRadius: "50%",
49215
+ padding: "0.35rem",
49216
+ boxShadow: 2,
49217
+ transition: "0.3s ease",
49218
+ "&:hover": {
49219
+ backgroundColor: T.colors.surface2_lightgrey
49220
+ }
49221
+ },
49222
+ onClick: W,
49223
+ children: /* @__PURE__ */ v.jsx(Zt, { title: "Scroll right", enterDelay: 1500, children: /* @__PURE__ */ v.jsx(GF, { sx: { color: "#000" } }) })
49224
+ }
49225
+ )
49226
+ ] })
49227
+ ] });
49229
49228
  }, uz = ({
49230
49229
  currentPage: e,
49231
49230
  totalPages: t,