@adiba-banking-cloud/backoffice 0.0.69 → 0.0.70

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.
@@ -12395,31 +12395,31 @@ const theme = core.createTheme({
12395
12395
  }
12396
12396
  });
12397
12397
 
12398
- const _excluded$6 = ["title", "subtitle", "rightsection", "withCreate", "withSwitcher", "create", "switcher"];
12398
+ const _excluded$6 = ["createFn", "icon", "label"];
12399
12399
  const PageTitle = _ref => {
12400
12400
  var _switcher$items;
12401
12401
  let {
12402
- title,
12403
- subtitle = "",
12404
- rightsection,
12405
- withCreate,
12406
- withSwitcher,
12407
- create,
12408
- switcher
12409
- } = _ref,
12410
- rest = _objectWithoutProperties(_ref, _excluded$6);
12402
+ title,
12403
+ subtitle = "",
12404
+ rightsection,
12405
+ withCreate,
12406
+ withSwitcher,
12407
+ create,
12408
+ switcher
12409
+ } = _ref;
12411
12410
  if (withCreate && create) {
12412
12411
  const {
12413
- createFn,
12414
- icon,
12415
- label
12416
- } = create;
12417
- rightsection = /*#__PURE__*/React.createElement(core.Button, {
12412
+ createFn,
12413
+ icon,
12414
+ label
12415
+ } = create,
12416
+ rest = _objectWithoutProperties(create, _excluded$6);
12417
+ rightsection = /*#__PURE__*/React.createElement(core.Button, _extends({
12418
12418
  radius: "md",
12419
12419
  size: "sm",
12420
12420
  leftSection: /*#__PURE__*/React.createElement(Icons, icon),
12421
12421
  onClick: createFn
12422
- }, /*#__PURE__*/React.createElement(core.Text, {
12422
+ }, rest), /*#__PURE__*/React.createElement(core.Text, {
12423
12423
  fw: 300,
12424
12424
  fz: 14
12425
12425
  }, label));
@@ -12427,6 +12427,8 @@ const PageTitle = _ref => {
12427
12427
  if (withSwitcher && switcher !== null && switcher !== void 0 && (_switcher$items = switcher.items) !== null && _switcher$items !== void 0 && _switcher$items.length) {
12428
12428
  rightsection = /*#__PURE__*/React.createElement(core.SegmentedControl, {
12429
12429
  size: "sm",
12430
+ bg: "white",
12431
+ bd: "1px solid gray.3",
12430
12432
  color: theme.primaryColor,
12431
12433
  data: switcher.items
12432
12434
  });
@@ -12436,10 +12438,10 @@ const PageTitle = _ref => {
12436
12438
  py: "lg"
12437
12439
  }, /*#__PURE__*/React.createElement(core.Stack, {
12438
12440
  gap: 4
12439
- }, /*#__PURE__*/React.createElement(core.Title, _extends({
12441
+ }, /*#__PURE__*/React.createElement(core.Title, {
12440
12442
  order: 2,
12441
12443
  fw: 500
12442
- }, rest), title), typeof subtitle == "string" ? /*#__PURE__*/React.createElement(core.Text, {
12444
+ }, title), typeof subtitle == "string" ? /*#__PURE__*/React.createElement(core.Text, {
12443
12445
  fz: 14,
12444
12446
  fw: 300
12445
12447
  }, subtitle) : /*#__PURE__*/React.createElement(core.Breadcrumbs, {
@@ -12456,7 +12458,7 @@ const PageTitle = _ref => {
12456
12458
  fz: 14,
12457
12459
  key: index,
12458
12460
  fw: 300,
12459
- c: 'dimmed'
12461
+ c: "dimmed"
12460
12462
  }, item.name);
12461
12463
  }))), /*#__PURE__*/React.createElement(React.Fragment, null, rightsection)));
12462
12464
  };
@@ -13270,7 +13272,8 @@ const SimpleForm = _ref => {
13270
13272
  c: "adiba.5"
13271
13273
  },
13272
13274
  readOnly: !isEditable,
13273
- variant: !isEditable ? "unstyled" : "default"
13275
+ variant: !isEditable ? "unstyled" : "default",
13276
+ required: true
13274
13277
  };
13275
13278
  return /*#__PURE__*/React.createElement(core.Grid, null, fields.map((field, index) => {
13276
13279
  if (typeof field === "string") {
@@ -12374,31 +12374,31 @@ const theme = createTheme({
12374
12374
  }
12375
12375
  });
12376
12376
 
12377
- const _excluded$6 = ["title", "subtitle", "rightsection", "withCreate", "withSwitcher", "create", "switcher"];
12377
+ const _excluded$6 = ["createFn", "icon", "label"];
12378
12378
  const PageTitle = _ref => {
12379
12379
  var _switcher$items;
12380
12380
  let {
12381
- title,
12382
- subtitle = "",
12383
- rightsection,
12384
- withCreate,
12385
- withSwitcher,
12386
- create,
12387
- switcher
12388
- } = _ref,
12389
- rest = _objectWithoutProperties(_ref, _excluded$6);
12381
+ title,
12382
+ subtitle = "",
12383
+ rightsection,
12384
+ withCreate,
12385
+ withSwitcher,
12386
+ create,
12387
+ switcher
12388
+ } = _ref;
12390
12389
  if (withCreate && create) {
12391
12390
  const {
12392
- createFn,
12393
- icon,
12394
- label
12395
- } = create;
12396
- rightsection = /*#__PURE__*/React.createElement(Button, {
12391
+ createFn,
12392
+ icon,
12393
+ label
12394
+ } = create,
12395
+ rest = _objectWithoutProperties(create, _excluded$6);
12396
+ rightsection = /*#__PURE__*/React.createElement(Button, _extends({
12397
12397
  radius: "md",
12398
12398
  size: "sm",
12399
12399
  leftSection: /*#__PURE__*/React.createElement(Icons, icon),
12400
12400
  onClick: createFn
12401
- }, /*#__PURE__*/React.createElement(Text, {
12401
+ }, rest), /*#__PURE__*/React.createElement(Text, {
12402
12402
  fw: 300,
12403
12403
  fz: 14
12404
12404
  }, label));
@@ -12406,6 +12406,8 @@ const PageTitle = _ref => {
12406
12406
  if (withSwitcher && switcher !== null && switcher !== void 0 && (_switcher$items = switcher.items) !== null && _switcher$items !== void 0 && _switcher$items.length) {
12407
12407
  rightsection = /*#__PURE__*/React.createElement(SegmentedControl, {
12408
12408
  size: "sm",
12409
+ bg: "white",
12410
+ bd: "1px solid gray.3",
12409
12411
  color: theme.primaryColor,
12410
12412
  data: switcher.items
12411
12413
  });
@@ -12415,10 +12417,10 @@ const PageTitle = _ref => {
12415
12417
  py: "lg"
12416
12418
  }, /*#__PURE__*/React.createElement(Stack, {
12417
12419
  gap: 4
12418
- }, /*#__PURE__*/React.createElement(Title, _extends({
12420
+ }, /*#__PURE__*/React.createElement(Title, {
12419
12421
  order: 2,
12420
12422
  fw: 500
12421
- }, rest), title), typeof subtitle == "string" ? /*#__PURE__*/React.createElement(Text, {
12423
+ }, title), typeof subtitle == "string" ? /*#__PURE__*/React.createElement(Text, {
12422
12424
  fz: 14,
12423
12425
  fw: 300
12424
12426
  }, subtitle) : /*#__PURE__*/React.createElement(Breadcrumbs, {
@@ -12435,7 +12437,7 @@ const PageTitle = _ref => {
12435
12437
  fz: 14,
12436
12438
  key: index,
12437
12439
  fw: 300,
12438
- c: 'dimmed'
12440
+ c: "dimmed"
12439
12441
  }, item.name);
12440
12442
  }))), /*#__PURE__*/React.createElement(React.Fragment, null, rightsection)));
12441
12443
  };
@@ -13249,7 +13251,8 @@ const SimpleForm = _ref => {
13249
13251
  c: "adiba.5"
13250
13252
  },
13251
13253
  readOnly: !isEditable,
13252
- variant: !isEditable ? "unstyled" : "default"
13254
+ variant: !isEditable ? "unstyled" : "default",
13255
+ required: true
13253
13256
  };
13254
13257
  return /*#__PURE__*/React.createElement(Grid, null, fields.map((field, index) => {
13255
13258
  if (typeof field === "string") {
@@ -42,7 +42,7 @@ export declare const theme: {
42
42
  headings?: {
43
43
  fontFamily?: string | undefined;
44
44
  fontWeight?: string | undefined;
45
- textWrap?: "wrap" | "nowrap" | "balance" | "pretty" | "stable" | undefined;
45
+ textWrap?: "nowrap" | "wrap" | "balance" | "pretty" | "stable" | undefined;
46
46
  sizes?: {
47
47
  h1?: {
48
48
  fontSize?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adiba-banking-cloud/backoffice",
3
3
  "author": "TUROG Technologies",
4
- "version": "0.0.69",
4
+ "version": "0.0.70",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",