@natoora-libs/core 0.0.34 → 0.0.36

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.
@@ -5,7 +5,7 @@ import {
5
5
  Loading_default,
6
6
  colors,
7
7
  isDarkModeEnabled
8
- } from "../chunk-RHG2EMI3.js";
8
+ } from "../chunk-TZJCFK33.js";
9
9
 
10
10
  // src/components/alerts/AlertDialog.tsx
11
11
  import { Box, Button, Dialog, Typography } from "@mui/material";
@@ -2297,7 +2297,7 @@ var RoundButton = ({
2297
2297
  chevronUp: /* @__PURE__ */ jsx57(KeyboardArrowUp, { fontSize: iconSize }),
2298
2298
  chevronDown: /* @__PURE__ */ jsx57(KeyboardArrowDown, { fontSize: iconSize }),
2299
2299
  close: /* @__PURE__ */ jsx57(Close, { fontSize: iconSize }),
2300
- delete: /* @__PURE__ */ jsx57(Delete2, { fontSize: iconSize, fill: colors.grey650 }),
2300
+ delete: /* @__PURE__ */ jsx57(Delete2, { fontSize: iconSize, fill: colors.neutral800 }),
2301
2301
  done: /* @__PURE__ */ jsx57(Done, { fontSize: iconSize }),
2302
2302
  edit: /* @__PURE__ */ jsx57(Edit2, { fontSize: iconSize }),
2303
2303
  email: /* @__PURE__ */ jsx57(Email, { fontSize: iconSize }),
@@ -2413,7 +2413,7 @@ var defaultTheme = createTheme({
2413
2413
  mode: isDarkModeEnabled ? "dark" : "light",
2414
2414
  default: {
2415
2415
  main: colors.grey650,
2416
- background: colors.white
2416
+ background: colors.neutral100
2417
2417
  },
2418
2418
  primary: {
2419
2419
  main: colors.muiPrimary,
@@ -2821,7 +2821,7 @@ var drawerAppList = [
2821
2821
  name: "Content Management",
2822
2822
  routeName: "content-management",
2823
2823
  alwaysDisplay: false,
2824
- featureNames: ["cms"],
2824
+ featureNames: [featureName_default.CONTENT_MANAGEMENT],
2825
2825
  pinned: null,
2826
2826
  icon: /* @__PURE__ */ jsx65(icons_default.SvgIconContentManagement, {}),
2827
2827
  url: "/react/content-management"
@@ -2968,7 +2968,7 @@ var drawerAppList = [
2968
2968
  routeName: "kanban",
2969
2969
  alwaysDisplay: false,
2970
2970
  featureNames: [featureName_default.KANBAN],
2971
- pinned: "kanbancards",
2971
+ pinned: "kanban_cards",
2972
2972
  icon: /* @__PURE__ */ jsx65(icons_default.SvgIconVkc, {}),
2973
2973
  url: `/#/kanban`
2974
2974
  },
@@ -3310,7 +3310,6 @@ var LeftDrawer_default = memo3(LeftDrawer);
3310
3310
  import Pagination from "@mui/material/Pagination";
3311
3311
  import Paper3 from "@mui/material/Paper";
3312
3312
  import Typography9 from "@mui/material/Typography";
3313
- import { any as any2, func as func4, object, oneOf as oneOf3, string as string4 } from "prop-types";
3314
3313
  import { makeStyles as makeStyles15 } from "tss-react/mui";
3315
3314
  import { jsx as jsx67, jsxs as jsxs40 } from "react/jsx-runtime";
3316
3315
  var paginationHeight = "56px";
@@ -3379,23 +3378,11 @@ var PaginationForTable = ({
3379
3378
  }
3380
3379
  ) });
3381
3380
  };
3382
- PaginationForTable.defaultProps = {
3383
- className: ""
3384
- };
3385
- PaginationForTable.propTypes = {
3386
- appliedFilters: any2,
3387
- className: string4,
3388
- page: any2,
3389
- pagination: object,
3390
- position: oneOf3(["relative", "fixed"]),
3391
- style: any2,
3392
- updateFilters: func4.isRequired
3393
- };
3394
3381
  var PaginationForTable_default = PaginationForTable;
3395
3382
 
3396
3383
  // src/components/ProductImage/ProductImage.tsx
3397
3384
  import { CardMedia } from "@mui/material";
3398
- import { any as any3, string as string5 } from "prop-types";
3385
+ import { any as any2, string as string4 } from "prop-types";
3399
3386
  import { withStyles as withStyles2 } from "tss-react/mui";
3400
3387
  import { jsx as jsx68, jsxs as jsxs41 } from "react/jsx-runtime";
3401
3388
  var PImage = ({
@@ -3491,10 +3478,10 @@ var ProductImage = withStyles2(PImage, (theme) => ({
3491
3478
  }
3492
3479
  }));
3493
3480
  PImage.propTypes = {
3494
- classes: any3,
3495
- image: string5,
3496
- size: string5,
3497
- status: any3
3481
+ classes: any2,
3482
+ image: string4,
3483
+ size: string4,
3484
+ status: any2
3498
3485
  };
3499
3486
  var ProductImage_default = ProductImage;
3500
3487
 
@@ -3562,7 +3549,7 @@ var RenderContentList_default = RenderContentList;
3562
3549
  // src/components/RowProductCard/RowProductCard.tsx
3563
3550
  import { Box as Box11, Divider as Divider2, Paper as Paper4, Typography as Typography10 } from "@mui/material";
3564
3551
  import { makeStyles as makeStyles17 } from "tss-react/mui";
3565
- import { arrayOf, node as node3, oneOf as oneOf4, oneOfType as oneOfType2, shape as shape2, string as string6 } from "prop-types";
3552
+ import { arrayOf, node as node3, oneOf as oneOf3, oneOfType as oneOfType2, shape as shape2, string as string5 } from "prop-types";
3566
3553
  import { Fragment as Fragment3, jsx as jsx70, jsxs as jsxs42 } from "react/jsx-runtime";
3567
3554
  var useStyles17 = makeStyles17()((theme) => ({
3568
3555
  wrapper: {
@@ -3667,23 +3654,23 @@ RowProductCard.propTypes = {
3667
3654
  */
3668
3655
  columns: arrayOf(
3669
3656
  shape2({
3670
- title: string6,
3671
- value: oneOfType2([string6, node3])
3657
+ title: string5,
3658
+ value: oneOfType2([string5, node3])
3672
3659
  })
3673
3660
  ),
3674
3661
  /**
3675
3662
  * Where is the product location
3676
3663
  */
3677
- location: string6,
3664
+ location: string5,
3678
3665
  /**
3679
3666
  * Product information
3680
3667
  */
3681
3668
  product: shape2({
3682
- image: string6.isRequired,
3683
- name: string6.isRequired,
3684
- status: string6
3669
+ image: string5.isRequired,
3670
+ name: string5.isRequired,
3671
+ status: string5
3685
3672
  }).isRequired,
3686
- size: oneOf4(["small", "medium", "large"])
3673
+ size: oneOf3(["small", "medium", "large"])
3687
3674
  };
3688
3675
  var RowProductCard_default = RowProductCard;
3689
3676
 
@@ -4071,7 +4058,7 @@ var SectionName_default = SectionName;
4071
4058
 
4072
4059
  // src/components/Shift/Shift.tsx
4073
4060
  import { Box as Box15, Typography as Typography12 } from "@mui/material";
4074
- import { oneOf as oneOf5 } from "prop-types";
4061
+ import { oneOf as oneOf4 } from "prop-types";
4075
4062
  import { makeStyles as makeStyles22 } from "tss-react/mui";
4076
4063
 
4077
4064
  // src/resources/icons/DayIcon.js
@@ -4160,7 +4147,7 @@ var Shift = ({ shift }) => {
4160
4147
  );
4161
4148
  };
4162
4149
  Shift.propTypes = {
4163
- shift: oneOf5(Object.values(ShiftEnum))
4150
+ shift: oneOf4(Object.values(ShiftEnum))
4164
4151
  };
4165
4152
  var Shift_default = Shift;
4166
4153
 
@@ -4396,7 +4383,7 @@ var TableDesktop = ({
4396
4383
  updateSort(property, orderDir);
4397
4384
  };
4398
4385
  const emptyRows = rowsPerPage - data.length;
4399
- return /* @__PURE__ */ jsx81("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsx81(Paper7, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx81("div", { children: [...Array(Math.floor(rowsPerPage))].map(() => /* @__PURE__ */ jsx81(
4386
+ return /* @__PURE__ */ jsx81("div", { className: classes.root, style: { height }, children: /* @__PURE__ */ jsx81(Paper7, { className: classes.paper, children: isLoading ? /* @__PURE__ */ jsx81("div", { children: [...Array(Math.floor(rowsPerPage))].map((rowPerPage) => /* @__PURE__ */ jsx81(
4400
4387
  Skeleton,
4401
4388
  {
4402
4389
  animation: "pulse",
@@ -4404,7 +4391,7 @@ var TableDesktop = ({
4404
4391
  variant: "rectangular",
4405
4392
  height: rowHeight
4406
4393
  },
4407
- Math.random()
4394
+ rowPerPage
4408
4395
  )) }) : /* @__PURE__ */ jsxs51(Fragment5, { children: [
4409
4396
  /* @__PURE__ */ jsx81(TableContainer, { className: classes.container, children: /* @__PURE__ */ jsxs51(
4410
4397
  Table,
@@ -4450,7 +4437,7 @@ var TableDesktop_default = TableDesktop;
4450
4437
  import { memo as memo4, useEffect as useEffect4, useState as useState6 } from "react";
4451
4438
  import ImportExportIcon from "@mui/icons-material/ImportExport";
4452
4439
  import { TableCell as TableCell3, TableHead as TableHead2, TableRow as TableRow3, TableSortLabel as TableSortLabel2 } from "@mui/material";
4453
- import { arrayOf as arrayOf2, bool as bool4, func as func5, oneOf as oneOf6, shape as shape3, string as string7 } from "prop-types";
4440
+ import { arrayOf as arrayOf2, bool as bool4, func as func4, oneOf as oneOf5, shape as shape3, string as string6 } from "prop-types";
4454
4441
  import { makeStyles as makeStyles27 } from "tss-react/mui";
4455
4442
  import { jsx as jsx82 } from "react/jsx-runtime";
4456
4443
  var useStyles27 = makeStyles27()(() => ({
@@ -4514,13 +4501,13 @@ TableHeader.defaultProps = {
4514
4501
  TableHeader.propTypes = {
4515
4502
  cells: arrayOf2(
4516
4503
  shape3({
4517
- direction: oneOf6(["asc", "desc", ""]),
4504
+ direction: oneOf5(["asc", "desc", ""]),
4518
4505
  isSortable: bool4,
4519
- label: string7,
4520
- name: string7
4506
+ label: string6,
4507
+ name: string6
4521
4508
  })
4522
4509
  ).isRequired,
4523
- onSort: func5
4510
+ onSort: func4
4524
4511
  };
4525
4512
  var TableHeader_default = memo4(TableHeader);
4526
4513