bord-design-system 0.0.22 → 0.0.23
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/components/BordEmptyState/BordEmptyState.d.ts.map +1 -1
- package/dist/components/BordEmptyState/BordEmptyState.types.d.ts +4 -0
- package/dist/components/BordEmptyState/BordEmptyState.types.d.ts.map +1 -1
- package/dist/components/BordIlustrationIcon/BordIlustration.types.d.ts +1 -0
- package/dist/components/BordIlustrationIcon/BordIlustration.types.d.ts.map +1 -1
- package/dist/components/BordIlustrationIcon/BordIlustrationIcon.d.ts +1 -1
- package/dist/components/BordIlustrationIcon/BordIlustrationIcon.d.ts.map +1 -1
- package/dist/components/BordTwoToneIcon/BordTwoToneIcon.d.ts +1 -1
- package/dist/components/BordTwoToneIcon/BordTwoToneIcon.d.ts.map +1 -1
- package/dist/components/BordTwoToneIcon/BordTwoToneIcon.types.d.ts +1 -0
- package/dist/components/BordTwoToneIcon/BordTwoToneIcon.types.d.ts.map +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.esm.js +23 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +23 -14
- package/dist/index.js.map +1 -1
- package/dist/index.webpack.js +23 -14
- package/dist/index.webpack.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/BordEmptyState/BordEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAK9D,OAAO,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"BordEmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/BordEmptyState/BordEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAK9D,OAAO,uCAAuC,CAAC;AAI/C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,oBAAoB,CAwE5C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
1
2
|
import { IBordButton } from '../BordButton/BordButton.types';
|
|
2
3
|
import { IBordIlustrationIconProps } from '../BordIlustrationIcon/BordIlustration.types';
|
|
3
4
|
import { IbordOneToneIconProps } from '../BordOneToneIcon/BordOneToneIcon';
|
|
@@ -10,7 +11,10 @@ export interface IBordEmptyStateProps {
|
|
|
10
11
|
oneToneIconProps?: IbordOneToneIconProps;
|
|
11
12
|
buttonOneProps?: IBordButton;
|
|
12
13
|
buttonTwoProps?: IBordButton;
|
|
14
|
+
customClassName?: string;
|
|
15
|
+
customClassNameIlustration?: string;
|
|
13
16
|
customClassNameSubTitle?: string;
|
|
14
17
|
customClassNameTitle?: string;
|
|
18
|
+
customStyles?: CSSProperties;
|
|
15
19
|
}
|
|
16
20
|
//# sourceMappingURL=BordEmptyState.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordEmptyState.types.d.ts","sourceRoot":"","sources":["../../../src/components/BordEmptyState/BordEmptyState.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,yBAAyB,CAAC;IACjD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"BordEmptyState.types.d.ts","sourceRoot":"","sources":["../../../src/components/BordEmptyState/BordEmptyState.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AACzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAEjF,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,yBAAyB,CAAC;IACjD,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,cAAc,CAAC,EAAE,WAAW,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B"}
|
|
@@ -31,5 +31,6 @@ export interface IBordIlustrationIconProps extends ComponentProps<'svg'> {
|
|
|
31
31
|
variant: TbordilustrationIcon;
|
|
32
32
|
standardSize?: 12 | 14 | 16 | 20 | 24 | 32 | 48 | 100 | number;
|
|
33
33
|
customWidth?: string;
|
|
34
|
+
customClassName?: string;
|
|
34
35
|
}
|
|
35
36
|
//# sourceMappingURL=BordIlustration.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordIlustration.types.d.ts","sourceRoot":"","sources":["../../../src/components/BordIlustrationIcon/BordIlustration.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,KAAK,GACL,SAAS,GACT,aAAa,GACb,QAAQ,GACR,KAAK,GACL,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,OAAO,GACP,OAAO,GACP,eAAe,GACf,OAAO,GACP,gCAAgC,GAChC,WAAW,GACX,eAAe,GACf,mBAAmB,GACnB,OAAO,GACP,WAAW,GACX,WAAW,GACX,UAAU,GACV,eAAe,CAAC;AAEpB,oBAAY,sBAAsB;IAChC,QAAQ,WAAW;IACnB,UAAU,aAAa;IACvB,QAAQ,WAAW;IACnB,KAAK,QAAQ;IACb,SAAS,YAAY;IACrB,aAAa,gBAAgB;IAC7B,QAAQ,WAAW;IACnB,KAAK,QAAQ;IACb,SAAS,YAAY;IACrB,QAAQ,WAAW;IACnB,SAAS,YAAY;IACrB,QAAQ,WAAW;IACnB,OAAO,UAAU;IACjB,OAAO,UAAU;IACjB,eAAe,kBAAkB;IACjC,OAAO,UAAU;IACjB,gCAAgC,mCAAmC;IACnE,WAAW,cAAc;IACzB,eAAe,kBAAkB;IACjC,mBAAmB,sBAAsB;IACzC,OAAO,UAAU;IACjB,WAAW,cAAc;IACzB,WAAW,cAAc;IACzB,UAAU,aAAa;IACvB,eAAe,kBAAkB;CAClC;AAED,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,KAAK,CAAC;IACtE,OAAO,EAAE,oBAAoB,CAAC;IAC9B,YAAY,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,MAAM,CAAC;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"BordIlustration.types.d.ts","sourceRoot":"","sources":["../../../src/components/BordIlustrationIcon/BordIlustration.types.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,oBAAoB,GAC5B,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,KAAK,GACL,SAAS,GACT,aAAa,GACb,QAAQ,GACR,KAAK,GACL,SAAS,GACT,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,OAAO,GACP,OAAO,GACP,eAAe,GACf,OAAO,GACP,gCAAgC,GAChC,WAAW,GACX,eAAe,GACf,mBAAmB,GACnB,OAAO,GACP,WAAW,GACX,WAAW,GACX,UAAU,GACV,eAAe,CAAC;AAEpB,oBAAY,sBAAsB;IAChC,QAAQ,WAAW;IACnB,UAAU,aAAa;IACvB,QAAQ,WAAW;IACnB,KAAK,QAAQ;IACb,SAAS,YAAY;IACrB,aAAa,gBAAgB;IAC7B,QAAQ,WAAW;IACnB,KAAK,QAAQ;IACb,SAAS,YAAY;IACrB,QAAQ,WAAW;IACnB,SAAS,YAAY;IACrB,QAAQ,WAAW;IACnB,OAAO,UAAU;IACjB,OAAO,UAAU;IACjB,eAAe,kBAAkB;IACjC,OAAO,UAAU;IACjB,gCAAgC,mCAAmC;IACnE,WAAW,cAAc;IACzB,eAAe,kBAAkB;IACjC,mBAAmB,sBAAsB;IACzC,OAAO,UAAU;IACjB,WAAW,cAAc;IACzB,WAAW,cAAc;IACzB,UAAU,aAAa;IACvB,eAAe,kBAAkB;CAClC;AAED,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,KAAK,CAAC;IACtE,OAAO,EAAE,oBAAoB,CAAC;IAC9B,YAAY,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,MAAM,CAAC;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IBordIlustrationIconProps } from "./BordIlustration.types";
|
|
2
|
-
declare const BordIlustrationIcon: ({ variant, standardSize, customWidth, style, }: IBordIlustrationIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const BordIlustrationIcon: ({ variant, standardSize, customWidth, style, customClassName, }: IBordIlustrationIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BordIlustrationIcon;
|
|
4
4
|
//# sourceMappingURL=BordIlustrationIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordIlustrationIcon.d.ts","sourceRoot":"","sources":["../../../src/components/BordIlustrationIcon/BordIlustrationIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,QAAA,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"BordIlustrationIcon.d.ts","sourceRoot":"","sources":["../../../src/components/BordIlustrationIcon/BordIlustrationIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,QAAA,MAAM,mBAAmB,oEAMtB,yBAAyB,4CAY3B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { IBordTwoToneIconProps } from "./BordTwoToneIcon.types";
|
|
2
|
-
declare const BordTwoToneIcon: ({ variant, standardSize, customWidth, colorTones, }: IBordTwoToneIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const BordTwoToneIcon: ({ variant, standardSize, customWidth, colorTones, customClassName, }: IBordTwoToneIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BordTwoToneIcon;
|
|
4
4
|
//# sourceMappingURL=BordTwoToneIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordTwoToneIcon.d.ts","sourceRoot":"","sources":["../../../src/components/BordTwoToneIcon/BordTwoToneIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,QAAA,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"BordTwoToneIcon.d.ts","sourceRoot":"","sources":["../../../src/components/BordTwoToneIcon/BordTwoToneIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,QAAA,MAAM,eAAe,yEAMlB,qBAAqB,4CAYvB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -30,6 +30,7 @@ export interface IBordTwoToneIconProps extends ComponentProps<"svg"> {
|
|
|
30
30
|
colorTones?: IcolorTones;
|
|
31
31
|
standardSize?: 12 | 16 | 18 | 20 | 24 | 32;
|
|
32
32
|
customWidth?: string;
|
|
33
|
+
customClassName?: string;
|
|
33
34
|
}
|
|
34
35
|
export interface ITwoToneIconProps extends ComponentProps<"svg"> {
|
|
35
36
|
colorTones?: IcolorTones;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordTwoToneIcon.types.d.ts","sourceRoot":"","sources":["../../../src/components/BordTwoToneIcon/BordTwoToneIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,oBAAY,mBAAmB;IAC7B,UAAU,aAAa;IACvB,QAAQ,WAAW;IACnB,YAAY,eAAe;IAC3B,WAAW,cAAc;IACzB,SAAS,YAAY;IACrB,YAAY,eAAe;IAC3B,UAAU,aAAa;IACvB,UAAU,aAAa;IACvB,oBAAoB,uBAAuB;IAC3C,cAAc,iBAAiB;IAC/B,eAAe,kBAAkB;IACjC,gBAAgB,mBAAmB;IACnC,mBAAmB,sBAAsB;IACzC,gBAAgB,mBAAmB;IACnC,UAAU,aAAa;IACvB,cAAc,iBAAiB;IAC/B,SAAS,YAAY;IACrB,eAAe,kBAAkB;IACjC,OAAO,UAAU;IACjB,MAAM,SAAS;IACf,QAAQ,WAAW;IACnB,QAAQ,WAAW;IACnB,OAAO,UAAU;CAClB;AAED,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,SAAS,GACT,YAAY,GACZ,UAAU,GACV,UAAU,GACV,oBAAoB,GACpB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,SAAS,GACT,eAAe,GACf,OAAO,GACP,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAClE,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"BordTwoToneIcon.types.d.ts","sourceRoot":"","sources":["../../../src/components/BordTwoToneIcon/BordTwoToneIcon.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,oBAAY,mBAAmB;IAC7B,UAAU,aAAa;IACvB,QAAQ,WAAW;IACnB,YAAY,eAAe;IAC3B,WAAW,cAAc;IACzB,SAAS,YAAY;IACrB,YAAY,eAAe;IAC3B,UAAU,aAAa;IACvB,UAAU,aAAa;IACvB,oBAAoB,uBAAuB;IAC3C,cAAc,iBAAiB;IAC/B,eAAe,kBAAkB;IACjC,gBAAgB,mBAAmB;IACnC,mBAAmB,sBAAsB;IACzC,gBAAgB,mBAAmB;IACnC,UAAU,aAAa;IACvB,cAAc,iBAAiB;IAC/B,SAAS,YAAY;IACrB,eAAe,kBAAkB;IACjC,OAAO,UAAU;IACjB,MAAM,SAAS;IACf,QAAQ,WAAW;IACnB,QAAQ,WAAW;IACnB,OAAO,UAAU;CAClB;AAED,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,SAAS,GACT,YAAY,GACZ,UAAU,GACV,UAAU,GACV,oBAAoB,GACpB,cAAc,GACd,eAAe,GACf,gBAAgB,GAChB,mBAAmB,GACnB,gBAAgB,GAChB,UAAU,GACV,cAAc,GACd,SAAS,GACT,eAAe,GACf,OAAO,GACP,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,OAAO,CAAC;AAEZ,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAClE,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,YAAY,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC9D,UAAU,CAAC,EAAE,WAAW,CAAC;CAC1B;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ComponentProps, ChangeEvent, ReactNode, ReactElement, RefObject, FC, Dispatch, SetStateAction,
|
|
3
|
+
import React__default, { ComponentProps, ChangeEvent, ReactNode, ReactElement, RefObject, FC, Dispatch, SetStateAction, CSSProperties, ButtonHTMLAttributes, HTMLAttributes, Ref } from 'react';
|
|
4
4
|
|
|
5
5
|
declare enum BORD_AVATARS {
|
|
6
6
|
'circularFigma' = "circularFigma",
|
|
@@ -669,6 +669,7 @@ interface IBordTwoToneIconProps extends ComponentProps<"svg"> {
|
|
|
669
669
|
colorTones?: IcolorTones;
|
|
670
670
|
standardSize?: 12 | 16 | 18 | 20 | 24 | 32;
|
|
671
671
|
customWidth?: string;
|
|
672
|
+
customClassName?: string;
|
|
672
673
|
}
|
|
673
674
|
interface ITwoToneIconProps extends ComponentProps<"svg"> {
|
|
674
675
|
colorTones?: IcolorTones;
|
|
@@ -680,7 +681,7 @@ interface IcolorTones {
|
|
|
680
681
|
opacity2?: string;
|
|
681
682
|
}
|
|
682
683
|
|
|
683
|
-
declare const BordTwoToneIcon: ({ variant, standardSize, customWidth, colorTones, }: IBordTwoToneIconProps) => react_jsx_runtime.JSX.Element;
|
|
684
|
+
declare const BordTwoToneIcon: ({ variant, standardSize, customWidth, colorTones, customClassName, }: IBordTwoToneIconProps) => react_jsx_runtime.JSX.Element;
|
|
684
685
|
|
|
685
686
|
interface IBordBackButtonProps extends ComponentProps<"div"> {
|
|
686
687
|
buttonText: string;
|
|
@@ -1223,6 +1224,7 @@ interface IBordIlustrationIconProps extends ComponentProps<'svg'> {
|
|
|
1223
1224
|
variant: TbordilustrationIcon;
|
|
1224
1225
|
standardSize?: 12 | 14 | 16 | 20 | 24 | 32 | 48 | 100 | number;
|
|
1225
1226
|
customWidth?: string;
|
|
1227
|
+
customClassName?: string;
|
|
1226
1228
|
}
|
|
1227
1229
|
|
|
1228
1230
|
interface IBordModalProps {
|
|
@@ -1281,7 +1283,7 @@ declare const BordModal: React__default.FC<IBordModalProps>;
|
|
|
1281
1283
|
|
|
1282
1284
|
declare const ModalContent: ({ CustomModalComponent, toCloseModal, customWidth, customHeight, leftAlignmentTitle, customHeaderClass, excludeHeader, title, subTitle, showButtonOne, showButtonTwo, sizeButtonOne, sizeButtonTwo, textButtonOne, textButtonTwo, modalSize, onClickButtonOne, onClickButtonTwo, onClickBackButton, buttonOneProps, buttonTwoProps, customClassButtonOne, customClassButtonTwo, customSubtitleClass, customModalContent, withoutHeaderCustomClass, noPadding, excludeCloseButton, stylesCustomHeaderProps, gradientBackground, customIconContainerClass, iconIllustration, iconIllustrationVariant, iconIllustrationWidth, customButtonsContainerClass, textBackButton }: IBordModalContent) => react_jsx_runtime.JSX.Element;
|
|
1283
1285
|
|
|
1284
|
-
declare const BordIlustrationIcon: ({ variant, standardSize, customWidth, style, }: IBordIlustrationIconProps) => react_jsx_runtime.JSX.Element;
|
|
1286
|
+
declare const BordIlustrationIcon: ({ variant, standardSize, customWidth, style, customClassName, }: IBordIlustrationIconProps) => react_jsx_runtime.JSX.Element;
|
|
1285
1287
|
|
|
1286
1288
|
type toastVariants = 'informative' | 'success' | 'warning' | 'danger';
|
|
1287
1289
|
interface IBordToastProps {
|
|
@@ -1387,8 +1389,11 @@ interface IBordEmptyStateProps {
|
|
|
1387
1389
|
oneToneIconProps?: IbordOneToneIconProps;
|
|
1388
1390
|
buttonOneProps?: IBordButton;
|
|
1389
1391
|
buttonTwoProps?: IBordButton;
|
|
1392
|
+
customClassName?: string;
|
|
1393
|
+
customClassNameIlustration?: string;
|
|
1390
1394
|
customClassNameSubTitle?: string;
|
|
1391
1395
|
customClassNameTitle?: string;
|
|
1396
|
+
customStyles?: CSSProperties;
|
|
1392
1397
|
}
|
|
1393
1398
|
|
|
1394
1399
|
declare const BordEmptyState: FC<IBordEmptyStateProps>;
|
package/dist/index.esm.js
CHANGED
|
@@ -4379,11 +4379,12 @@ const listOfBordTwoToneIcons = {
|
|
|
4379
4379
|
timer: BordTwoToneTimerIcon,
|
|
4380
4380
|
};
|
|
4381
4381
|
|
|
4382
|
-
const BordTwoToneIcon = ({ variant, standardSize = 24, customWidth, colorTones, }) => {
|
|
4382
|
+
const BordTwoToneIcon = ({ variant, standardSize = 24, customWidth, colorTones, customClassName, }) => {
|
|
4383
4383
|
const twoToneIcon = listOfBordTwoToneIcons[variant];
|
|
4384
4384
|
const standardSizeStyle = `${(standardSize / 10).toFixed(1)}rem`;
|
|
4385
4385
|
const iconWidth = customWidth || standardSizeStyle;
|
|
4386
|
-
|
|
4386
|
+
const className = ['bordTwoToneIcon', customClassName].filter(Boolean).join(' ');
|
|
4387
|
+
return (jsx("div", { className: className, style: { width: iconWidth }, children: React__default.createElement(twoToneIcon, { colorTones }) }));
|
|
4387
4388
|
};
|
|
4388
4389
|
|
|
4389
4390
|
var css_248z$1z = ".bordBackButtonDS{align-items:center;cursor:pointer;display:flex;gap:.4rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.bordBackButtonDS .buttonText{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));font-size:1.2rem;line-height:1.6rem}";
|
|
@@ -10687,11 +10688,12 @@ const listOfBordIlustrationIcon = {
|
|
|
10687
10688
|
'3DSpecialBell': Bord3dSpecialBell,
|
|
10688
10689
|
};
|
|
10689
10690
|
|
|
10690
|
-
const BordIlustrationIcon = ({ variant, standardSize = 24, customWidth, style, }) => {
|
|
10691
|
+
const BordIlustrationIcon = ({ variant, standardSize = 24, customWidth, style, customClassName, }) => {
|
|
10691
10692
|
const iconComponent = listOfBordIlustrationIcon[variant];
|
|
10692
10693
|
const standardSizeStyle = `${(standardSize / 10).toFixed(1)}rem`;
|
|
10693
10694
|
const iconWidth = customWidth || standardSizeStyle;
|
|
10694
|
-
|
|
10695
|
+
const className = ['bordIlustrationIcon', customClassName].filter(Boolean).join(' ');
|
|
10696
|
+
return (jsx("div", { className: className, style: { ...style, width: iconWidth }, children: React__default.createElement(iconComponent, {}) }));
|
|
10695
10697
|
};
|
|
10696
10698
|
|
|
10697
10699
|
var css_248z$15 = ".modalContentDS{align-items:center;background-color:var(--ds-c-layout-bg);border-radius:.6rem;display:flex;flex-direction:column;justify-content:center;position:relative;z-index:50}.modalContentDS.gradientBackground{overflow:hidden}.modalContentDS .contentHeader{align-items:center;display:flex;flex-direction:row;justify-content:center;margin-top:4rem}.modalContentDS .contentHeader.showIconIllustration{flex-direction:column}.modalContentDS .contentHeader .contentIconIllustration{margin-bottom:3.4rem}.modalContentDS .contentHeader .title{color:var(--ds-c-content-default);font-size:2rem;font-weight:700;line-height:2.6rem}.modalContentDS .contentHeader .subTitle{color:var(--ds-c-content-secondary);font-size:1.2rem;line-height:1.5rem;margin-top:.8rem}.modalContentDS .leftAlignmentTitle{justify-content:flex-start}.modalContentDS .customSectionContainer{overflow-y:scroll}.modalContentDS .customModalContainer{align-items:flex-start;display:flex;height:100%;justify-content:center;padding-left:4rem;padding-right:4rem}.modalContentDS .withoutHeader{height:100%;overflow:auto;padding:4rem;width:100%}.modalContentDS .exitContentButton{cursor:pointer;position:absolute;right:2.4rem;top:2.4rem;z-index:10}.modalContentDS .exitContentButton svg>path{stroke:var(--ds-c-content-secondary)}.modalContentDS .backContentButton{cursor:pointer;left:2.4rem;position:absolute;top:2.4rem}.modalContentDS .buttonsContainer{display:flex;gap:1.2rem;justify-content:center;padding:4rem}@media (max-width:768px){.modalContentDS .buttonsContainer{padding:1.6rem 1.2rem}}@media (max-width:350px){.modalContentDS .buttonsContainer{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:1.6rem 1.2rem}}.modalContentDS.sm{height:34rem;width:48rem}@media (max-width:768px){.modalContentDS.sm{height:-moz-max-content;height:max-content;padding:1.2rem;width:100%}}.modalContentDS.md{height:48rem;width:58rem}@media (max-width:768px){.modalContentDS.md{height:-moz-max-content;height:max-content;padding:1.2rem;width:100%}}.modalContentDS.lg{height:50rem;width:68rem}@media (max-width:768px){.modalContentDS.lg{height:-moz-max-content;height:max-content;padding:1.2rem;width:100%}}.modalShow{animation:animationShow .2s}.modalHide{animation:animationHide .25s;opacity:0;z-index:-1}@keyframes animationShow{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes animationHide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}";
|
|
@@ -10877,23 +10879,30 @@ const BordSortSelect = ({ triggerLabel, sortByOptions, selectedSortById, order,
|
|
|
10877
10879
|
return (jsxs("div", { ref: rootRef, className: classnames, children: [jsx("button", { type: "button", className: "bordSortSelectTrigger", onClick: toggleOpen, disabled: disabled, "aria-expanded": isOpen, "aria-haspopup": "dialog", "aria-disabled": disabled, children: jsxs("span", { className: "bordSortSelectTriggerLabel", children: [jsx("span", { className: "truncate", children: triggerLabel }), jsx("span", { className: "bordSortSelectDirectionIcon", "aria-hidden": true, children: jsx(BordOneToneIcon, { variant: directionIconVariant, standardSize: 18 }) })] }) }), isOpen && (jsxs("div", { className: `bordSortSelectPanel ${panelAlign === 'end' ? 'bordSortSelectPanel--alignEnd' : ''}`, role: "presentation", onMouseDown: (e) => e.stopPropagation(), children: [jsxs("div", { className: "bordSortSelectSection", children: [jsx("div", { className: "bordSortSelectSectionTitle", children: sortBySectionLabel }), jsx("div", { className: "bordSortSelectRadios", children: sortByOptions.map((option) => (jsx(BordRadioButton, { componentSize: "small", label: option.label, isButtonActive: selectedSortById === option.id, onClick: () => onSortByChange(option.id) }, option.id))) })] }), jsxs("div", { className: "bordSortSelectSection", children: [jsx("div", { className: "bordSortSelectSectionTitle", children: orderSectionLabel }), jsxs("div", { className: "bordSortSelectRadios", children: [jsx(BordRadioButton, { componentSize: "small", label: orderAscLabel, isButtonActive: order === 'asc', onClick: () => onOrderChange('asc') }), jsx(BordRadioButton, { componentSize: "small", label: orderDescLabel, isButtonActive: order === 'desc', onClick: () => onOrderChange('desc') })] })] })] }))] }));
|
|
10878
10880
|
};
|
|
10879
10881
|
|
|
10880
|
-
var css_248z$$ = ".bordEmptyStateDS{align-items:center;display:flex;flex-direction:column;gap:2.4rem;text-align:center}.bordEmptyStateDS .titleAndSubTitleContainer{max-width:58rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:-moz-max-content;width:max-content}.bordEmptyStateDS .
|
|
10882
|
+
var css_248z$$ = ".bordEmptyStateDS{align-items:center;display:flex;flex-direction:column;gap:2.4rem;text-align:center}.bordEmptyStateDS .titleAndSubTitleContainer{max-width:58rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:-moz-max-content;width:max-content}.bordEmptyStateDS :where(.title){color:var(--ds-c-content-default);font-size:2rem;font-weight:700;line-height:2.6rem}.bordEmptyStateDS :where(.subTitle){color:var(--ds-c-content-secondary);font-size:1.6rem;font-weight:400;line-height:2.1rem;margin-top:.8rem}.bordEmptyStateDS .buttonsContainer{align-items:center;display:flex;gap:1.2rem}";
|
|
10881
10883
|
styleInject(css_248z$$);
|
|
10882
10884
|
|
|
10883
|
-
const
|
|
10885
|
+
const mergeClassNames = (...classNames) => classNames.filter(Boolean).join(' ');
|
|
10886
|
+
const BordEmptyState = ({ title = 'title', subTitle, customClassName = '', customClassNameTitle = '', customClassNameSubTitle = '', customClassNameIlustration = '', customStyles, buttonOneProps, buttonTwoProps, ilustrationIconProps, oneToneIconProps, twoToneIconProps, }) => {
|
|
10884
10887
|
const defaultIcon = 'search';
|
|
10885
10888
|
const defaultStandardSize = 100;
|
|
10886
10889
|
const getIlustration = () => {
|
|
10887
|
-
if (ilustrationIconProps)
|
|
10888
|
-
return jsx(BordIlustrationIcon, { ...ilustrationIconProps });
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10890
|
+
if (ilustrationIconProps) {
|
|
10891
|
+
return (jsx(BordIlustrationIcon, { ...ilustrationIconProps, customClassName: mergeClassNames(ilustrationIconProps.customClassName, customClassNameIlustration) }));
|
|
10892
|
+
}
|
|
10893
|
+
if (twoToneIconProps) {
|
|
10894
|
+
return (jsx(BordTwoToneIcon, { ...twoToneIconProps, customClassName: mergeClassNames(twoToneIconProps.customClassName, customClassNameIlustration) }));
|
|
10895
|
+
}
|
|
10896
|
+
if (oneToneIconProps) {
|
|
10897
|
+
return (jsx(BordOneToneIcon, { ...oneToneIconProps, customClassName: mergeClassNames(oneToneIconProps.customClassName, customClassNameIlustration) }));
|
|
10898
|
+
}
|
|
10899
|
+
return (jsx(BordIlustrationIcon, { standardSize: defaultStandardSize, variant: defaultIcon, customClassName: customClassNameIlustration }));
|
|
10894
10900
|
};
|
|
10895
10901
|
const ilustration = getIlustration();
|
|
10896
|
-
|
|
10902
|
+
const rootClassName = mergeClassNames('bordEmptyStateDS', customClassName);
|
|
10903
|
+
const titleAndSubTitleContainerClassName = mergeClassNames('titleAndSubTitleContainer');
|
|
10904
|
+
const buttonsContainerClassName = mergeClassNames('buttonsContainer');
|
|
10905
|
+
return (jsxs("div", { className: rootClassName, style: customStyles, children: [ilustration, jsxs("div", { className: titleAndSubTitleContainerClassName, children: [jsx("div", { className: mergeClassNames('title', customClassNameTitle), children: title }), subTitle && jsx("div", { className: mergeClassNames('subTitle', customClassNameSubTitle), children: subTitle })] }), jsxs("div", { className: buttonsContainerClassName, children: [buttonOneProps && jsx(BordButton, { ...buttonOneProps }), buttonTwoProps && jsx(BordButton, { ...buttonTwoProps })] })] }));
|
|
10897
10906
|
};
|
|
10898
10907
|
|
|
10899
10908
|
var css_248z$_ = ".dsSwitchVariant-default{align-items:center;background-color:transparent;border-color:var(--ds-c-stroke-interactive);border-radius:4rem;border-style:solid;border-width:1px;border-width:.1rem;box-sizing:content-box;cursor:pointer;display:flex;flex-shrink:0;height:2.4rem;padding:0;transition-duration:.2s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);width:5.6rem}.dsSwitchVariant-default,.dsSwitchVariant-default .dsSwitchThumb{position:relative}.dsSwitchVariant-default .dsSwitchThumb{background-color:var(--ds-c-stroke-default);border-radius:15998.4rem;color:var(--ds-c-content-secondary);display:grid;flex-shrink:0;height:2rem;margin-left:.2rem;place-items:center;transform:translateX(0);transition-duration:.2s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);width:2rem}.dsSwitchVariant-default.dsSwitchRootOn .dsSwitchThumb{background-color:var(--ds-c-primary-bg-default);color:var(--ds-c-layout-l1);transform:translateX(3.1rem)}.dsSwitchVariant-default:disabled{background-color:var(--ds-c-bool-disabled-bg);border-color:var(--ds-c-stroke-default);cursor:not-allowed}.dsSwitchVariant-default:disabled .dsSwitchThumb,.dsSwitchVariant-default:disabled.dsSwitchRootOn .dsSwitchThumb{background-color:var(--ds-c-bool-disabled-fg);color:var(--ds-c-bool-disabled-sec-bg)}.dsSwitchSkeleton.dsSwitchVariant-default{width:5.6rem}";
|