@adiba-banking-cloud/backoffice 0.0.15 → 0.0.16

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.
@@ -11780,7 +11780,7 @@ const TitledPanel = _ref2 => {
11780
11780
  mt: !withPadding ? "md" : 0,
11781
11781
  justify: "space-between"
11782
11782
  }, /*#__PURE__*/React$1.createElement(core.Group, null, /*#__PURE__*/React$1.createElement(core.Center, {
11783
- bg: "adiba.1",
11783
+ bg: "gray.1",
11784
11784
  w: 32,
11785
11785
  h: 32,
11786
11786
  style: {
@@ -12273,7 +12273,7 @@ const ApplicationPanel = _ref => {
12273
12273
  }, /*#__PURE__*/React$1.createElement(core.Group, {
12274
12274
  gap: 30,
12275
12275
  justify: "space-between"
12276
- }, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(core.Text, {
12276
+ }, /*#__PURE__*/React$1.createElement(core.Box, null, /*#__PURE__*/React$1.createElement(core.Text, {
12277
12277
  fz: "lg",
12278
12278
  fw: 500,
12279
12279
  style: {
@@ -12287,21 +12287,26 @@ const ApplicationPanel = _ref => {
12287
12287
  lineHeight: 1
12288
12288
  },
12289
12289
  mt: 3
12290
- }, "per ".concat(frequency))), /*#__PURE__*/React$1.createElement(core.Button, {
12290
+ }, "per ".concat(frequency))), /*#__PURE__*/React$1.createElement(core.Box, {
12291
+ hidden: subscribed
12292
+ }, /*#__PURE__*/React$1.createElement(core.Button, {
12291
12293
  fw: 300,
12294
+ leftSection: /*#__PURE__*/React$1.createElement(Icons, {
12295
+ name: "AddCircle"
12296
+ }),
12292
12297
  radius: "md",
12293
- onClick: onClick,
12298
+ onClick: onClick
12299
+ }, actionLabel)), /*#__PURE__*/React$1.createElement(core.Box, {
12294
12300
  hidden: !subscribed
12295
- }, actionLabel), /*#__PURE__*/React$1.createElement(core.Button, {
12301
+ }, /*#__PURE__*/React$1.createElement(core.Button, {
12296
12302
  leftSection: /*#__PURE__*/React$1.createElement(Icons, {
12297
12303
  name: "TickCircle"
12298
12304
  }),
12299
12305
  fw: 300,
12300
- color: "green",
12301
12306
  radius: "md",
12302
12307
  disabled: true,
12303
12308
  hidden: !subscribed
12304
- }, subscribedLabel))));
12309
+ }, subscribedLabel)))));
12305
12310
  };
12306
12311
 
12307
12312
  const SubscriptionPlans = _ref => {
@@ -11759,7 +11759,7 @@ const TitledPanel = _ref2 => {
11759
11759
  mt: !withPadding ? "md" : 0,
11760
11760
  justify: "space-between"
11761
11761
  }, /*#__PURE__*/React$1.createElement(Group, null, /*#__PURE__*/React$1.createElement(Center, {
11762
- bg: "adiba.1",
11762
+ bg: "gray.1",
11763
11763
  w: 32,
11764
11764
  h: 32,
11765
11765
  style: {
@@ -12252,7 +12252,7 @@ const ApplicationPanel = _ref => {
12252
12252
  }, /*#__PURE__*/React$1.createElement(Group, {
12253
12253
  gap: 30,
12254
12254
  justify: "space-between"
12255
- }, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Text, {
12255
+ }, /*#__PURE__*/React$1.createElement(Box, null, /*#__PURE__*/React$1.createElement(Text, {
12256
12256
  fz: "lg",
12257
12257
  fw: 500,
12258
12258
  style: {
@@ -12266,21 +12266,26 @@ const ApplicationPanel = _ref => {
12266
12266
  lineHeight: 1
12267
12267
  },
12268
12268
  mt: 3
12269
- }, "per ".concat(frequency))), /*#__PURE__*/React$1.createElement(Button, {
12269
+ }, "per ".concat(frequency))), /*#__PURE__*/React$1.createElement(Box, {
12270
+ hidden: subscribed
12271
+ }, /*#__PURE__*/React$1.createElement(Button, {
12270
12272
  fw: 300,
12273
+ leftSection: /*#__PURE__*/React$1.createElement(Icons, {
12274
+ name: "AddCircle"
12275
+ }),
12271
12276
  radius: "md",
12272
- onClick: onClick,
12277
+ onClick: onClick
12278
+ }, actionLabel)), /*#__PURE__*/React$1.createElement(Box, {
12273
12279
  hidden: !subscribed
12274
- }, actionLabel), /*#__PURE__*/React$1.createElement(Button, {
12280
+ }, /*#__PURE__*/React$1.createElement(Button, {
12275
12281
  leftSection: /*#__PURE__*/React$1.createElement(Icons, {
12276
12282
  name: "TickCircle"
12277
12283
  }),
12278
12284
  fw: 300,
12279
- color: "green",
12280
12285
  radius: "md",
12281
12286
  disabled: true,
12282
12287
  hidden: !subscribed
12283
- }, subscribedLabel))));
12288
+ }, subscribedLabel)))));
12284
12289
  };
12285
12290
 
12286
12291
  const SubscriptionPlans = _ref => {
@@ -8,3 +8,4 @@ export declare const SimplePageTitle: import("@storybook/core/csf").AnnotatedSto
8
8
  export declare const BreadcrumbsPageTitle: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Title.types").PageTitleProps>;
9
9
  export declare const CreateButtonOnPageTitle: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Title.types").PageTitleWithCreateProps>;
10
10
  export declare const SwitcherOnPageTitle: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Title.types").PageTitleWithSwitcherProps>;
11
+ export declare const CardTitleWithIndex: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Title.types").TitleWithIndexProps>;
@@ -22,3 +22,15 @@ export interface CreateButtonProps extends ButtonProps {
22
22
  createFn: (e: any) => void;
23
23
  icon: IconsProps;
24
24
  }
25
+ export interface TitleWithIndexProps {
26
+ title: string;
27
+ growth: GrowthProps;
28
+ subtitle: string;
29
+ hasError: boolean;
30
+ errorLabel: string;
31
+ errorFn: () => void;
32
+ }
33
+ export interface GrowthProps {
34
+ text: string;
35
+ direction: "up" | "down";
36
+ }
@@ -0,0 +1,3 @@
1
+ import { TitleWithIndexProps } from "./Title.types";
2
+ import React from "react";
3
+ export declare const TitleWithIndex: React.FC<TitleWithIndexProps>;
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.15",
4
+ "version": "0.0.16",
5
5
  "description": "An ADIBA component library for backoffice and dashboard applications",
6
6
  "license": "ISC",
7
7
  "main": "build/index.cjs.js",