bord-design-system 0.0.19 → 0.0.20
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/BordSwitch/BordSwitch.d.ts.map +1 -1
- package/dist/components/BordSwitch/BordSwitch.types.d.ts +1 -1
- package/dist/components/BordSwitch/BordSwitch.types.d.ts.map +1 -1
- package/dist/components/BordSwitch/BordSwitchRender.d.ts +14 -0
- package/dist/components/BordSwitch/BordSwitchRender.d.ts.map +1 -0
- package/dist/components/BordSwitch/variants/DefaultSwitch.d.ts +12 -0
- package/dist/components/BordSwitch/variants/DefaultSwitch.d.ts.map +1 -0
- package/dist/components/BordSwitch/variants/LabeledSwitch.d.ts +14 -0
- package/dist/components/BordSwitch/variants/LabeledSwitch.d.ts.map +1 -0
- package/dist/components/BordSwitch/variants/SegmentedSwitch.d.ts +14 -0
- package/dist/components/BordSwitch/variants/SegmentedSwitch.d.ts.map +1 -0
- package/dist/components/BordTooltip/BordTooltip.d.ts.map +1 -1
- package/dist/components/BordTooltip/BordTooltip.type.d.ts +2 -1
- package/dist/components/BordTooltip/BordTooltip.type.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +113 -86
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +113 -86
- package/dist/index.js.map +1 -1
- package/dist/index.webpack.js +113 -86
- package/dist/index.webpack.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/BordSwitch/BordSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,oBAAoB,EAAc,aAAa,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,mBAAmB,CAAC;AAE3B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CA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QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,aAAa,CAAC;CAC7B;AAED,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAiDnC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
|
-
export type TBordSwitchVariant = 'labeled' | 'default';
|
|
2
|
+
export type TBordSwitchVariant = 'labeled' | 'default' | 'segmented';
|
|
3
3
|
export interface IBordSwitchProps extends Omit<ComponentProps<'button'>, 'onChange'> {
|
|
4
4
|
checked?: boolean;
|
|
5
5
|
onChange?: (next: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordSwitch.types.d.ts","sourceRoot":"","sources":["../../../src/components/BordSwitch/BordSwitch.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"BordSwitch.types.d.ts","sourceRoot":"","sources":["../../../src/components/BordSwitch/BordSwitch.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAErE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IAClF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, MouseEvent } from 'react';
|
|
2
|
+
import { TBordSwitchVariant } from './BordSwitch.types';
|
|
3
|
+
interface IBordSwitchRenderProps {
|
|
4
|
+
variant: TBordSwitchVariant;
|
|
5
|
+
checked: boolean;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
onLabel: string;
|
|
8
|
+
offLabel: string;
|
|
9
|
+
toggleSwitch: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
restProps: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
export declare const BordSwitchRender: FC<IBordSwitchRenderProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=BordSwitchRender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BordSwitchRender.d.ts","sourceRoot":"","sources":["../../../src/components/BordSwitch/BordSwitchRender.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAKxD,UAAU,sBAAsB;IAC9B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,sBAAsB,CAkDvD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC, MouseEvent } from 'react';
|
|
2
|
+
import './DefaultSwitch.scss';
|
|
3
|
+
interface IDefaultProps {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
className: string;
|
|
7
|
+
toggleSwitch: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
restProps: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export declare const DefaultSwitch: FC<IDefaultProps>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=DefaultSwitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultSwitch.d.ts","sourceRoot":"","sources":["../../../../src/components/BordSwitch/variants/DefaultSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,sBAAsB,CAAC;AAE9B,UAAU,aAAa;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACzD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,aAAa,CAY3C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, MouseEvent } from 'react';
|
|
2
|
+
import './LabeledSwitch.scss';
|
|
3
|
+
interface ILabeledProps {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
onLabel: string;
|
|
7
|
+
offLabel: string;
|
|
8
|
+
className: string;
|
|
9
|
+
toggleSwitch: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
restProps: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
export declare const LabeledSwitch: FC<ILabeledProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=LabeledSwitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabeledSwitch.d.ts","sourceRoot":"","sources":["../../../../src/components/BordSwitch/variants/LabeledSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,sBAAsB,CAAC;AAE9B,UAAU,aAAa;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACzD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,aAAa,CAc3C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC, MouseEvent } from 'react';
|
|
2
|
+
import './SegmentedSwitch.scss';
|
|
3
|
+
interface ISegmentedProps {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
onLabel: string;
|
|
7
|
+
offLabel: string;
|
|
8
|
+
className: string;
|
|
9
|
+
toggleSwitch: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
+
restProps: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
export declare const SegmentedSwitch: FC<ISegmentedProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=SegmentedSwitch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentedSwitch.d.ts","sourceRoot":"","sources":["../../../../src/components/BordSwitch/variants/SegmentedSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,wBAAwB,CAAC;AAEhC,UAAU,eAAe;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACzD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,eAAe,CAc/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/BordTooltip/BordTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA6C,MAAM,OAAO,CAAC;AAmBtE,OAAO,EAAY,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAKjE,OAAO,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"BordTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/BordTooltip/BordTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA6C,MAAM,OAAO,CAAC;AAmBtE,OAAO,EAAY,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAKjE,OAAO,oBAAoB,CAAC;AAkI5B,QAAA,MAAM,WAAW,EAAE,EAAE,CAAC,iBAAiB,CAYtC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { TbordOneToneIcon } from '../BordOneToneIcon/BordOneToneIcon.types';
|
|
3
3
|
export declare enum CTA_TYPE {
|
|
4
4
|
noCta = "noCta",
|
|
@@ -26,6 +26,7 @@ export interface IBordTooltipProps {
|
|
|
26
26
|
ctaButtonTwoAction?: () => void;
|
|
27
27
|
customClassName?: string;
|
|
28
28
|
customClassNameMessageContainer?: string;
|
|
29
|
+
customStylesMessageContainer?: React.CSSProperties;
|
|
29
30
|
messageContainerSize?: Partial<TBordTooltipMessageContainerSize>;
|
|
30
31
|
followMouse?: boolean;
|
|
31
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BordTooltip.type.d.ts","sourceRoot":"","sources":["../../../src/components/BordTooltip/BordTooltip.type.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BordTooltip.type.d.ts","sourceRoot":"","sources":["../../../src/components/BordTooltip/BordTooltip.type.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,oBAAY,QAAQ;IAClB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AACD,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,aAAa,CAAC;AAEvG,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,4BAA4B,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnD,oBAAoB,CAAC,EAAE,OAAO,CAAC,gCAAgC,CAAC,CAAC;IACjE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1332,6 +1332,7 @@ interface IBordTooltipProps {
|
|
|
1332
1332
|
ctaButtonTwoAction?: () => void;
|
|
1333
1333
|
customClassName?: string;
|
|
1334
1334
|
customClassNameMessageContainer?: string;
|
|
1335
|
+
customStylesMessageContainer?: React__default.CSSProperties;
|
|
1335
1336
|
messageContainerSize?: Partial<TBordTooltipMessageContainerSize>;
|
|
1336
1337
|
followMouse?: boolean;
|
|
1337
1338
|
}
|
|
@@ -1407,7 +1408,7 @@ interface IThemeProvider {
|
|
|
1407
1408
|
}
|
|
1408
1409
|
declare const ThemeProvider: ({ children, isDark }: IThemeProvider) => react_jsx_runtime.JSX.Element;
|
|
1409
1410
|
|
|
1410
|
-
type TBordSwitchVariant = 'labeled' | 'default';
|
|
1411
|
+
type TBordSwitchVariant = 'labeled' | 'default' | 'segmented';
|
|
1411
1412
|
interface IBordSwitchProps extends Omit<ComponentProps<'button'>, 'onChange'> {
|
|
1412
1413
|
checked?: boolean;
|
|
1413
1414
|
onChange?: (next: boolean) => void;
|