@servicetitan/feature-spotlight 2.3.0 → 3.1.0
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.
|
@@ -15,6 +15,6 @@ import { Popover } from '@servicetitan/design-system';
|
|
|
15
15
|
import * as Styles from '../feature-spotlight.module.css';
|
|
16
16
|
export const FeaturePopover = (_a) => {
|
|
17
17
|
var { children, footer, header } = _a, rest = __rest(_a, ["children", "footer", "header"]);
|
|
18
|
-
return (_jsxs(Popover, Object.assign({ className: classNames(Styles.featurePopover), caret: { show: true, className: Styles.featurePopoverCaret }, padding: "m" }, rest, { children: [header && (_jsx(Popover.Header,
|
|
18
|
+
return (_jsxs(Popover, Object.assign({ className: classNames(Styles.featurePopover), caret: { show: true, className: Styles.featurePopoverCaret }, padding: "m" }, rest, { children: [header && (_jsx(Popover.Header, { className: classNames(Styles.featurePopoverHeader), children: header })), children, footer && (_jsx(Popover.Footer, { className: classNames(Styles.featurePopoverFooter), align: "right", children: footer }))] })));
|
|
19
19
|
};
|
|
20
20
|
//# sourceMappingURL=feature-popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-popover.js","sourceRoot":"","sources":["../../src/components/feature-popover.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAgB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAQ1D,MAAM,CAAC,MAAM,cAAc,GAA4B,CAAC,EAAqC,EAAE,EAAE;QAAzC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAW,EAAN,IAAI,cAAnC,gCAAqC,CAAF;IACvF,OAAO,CACH,MAAC,OAAO,kBACJ,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,EAC5C,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,mBAAmB,EAAE,EAC5D,OAAO,EAAC,GAAG,IACP,IAAI,eAEP,MAAM,IAAI,CACP,KAAC,OAAO,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"feature-popover.js","sourceRoot":"","sources":["../../src/components/feature-popover.tsx"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAgB,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAQ1D,MAAM,CAAC,MAAM,cAAc,GAA4B,CAAC,EAAqC,EAAE,EAAE;QAAzC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,OAAW,EAAN,IAAI,cAAnC,gCAAqC,CAAF;IACvF,OAAO,CACH,MAAC,OAAO,kBACJ,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,EAC5C,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,mBAAmB,EAAE,EAC5D,OAAO,EAAC,GAAG,IACP,IAAI,eAEP,MAAM,IAAI,CACP,KAAC,OAAO,CAAC,MAAM,IAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,oBAAoB,CAAC,YAC7D,MAAM,GACM,CACpB,EACA,QAAQ,EACR,MAAM,IAAI,CACP,KAAC,OAAO,CAAC,MAAM,IAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,KAAK,EAAC,OAAO,YAC5E,MAAM,GACM,CACpB,KACK,CACb,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -3,6 +3,6 @@ import classNames from 'classnames';
|
|
|
3
3
|
import { Stack, Headline, BodyText, Button, ButtonGroup, } from '@servicetitan/design-system';
|
|
4
4
|
import * as Styles from '../feature-spotlight.module.css';
|
|
5
5
|
export const TourPopover = ({ children, currentStep = 1, endText = 'Close', headerText, nextText = 'Next', onClose, onNext, totalStepCount = 1, }) => {
|
|
6
|
-
return (_jsx(Stack,
|
|
6
|
+
return (_jsx(Stack, { direction: "column", className: classNames(Styles.featurePopover, 'Popper__body Popover__body Popover__body--open Popover--w-s p-x-3 p-y-2'), children: _jsxs(Stack.Item, { className: "m-t-half", children: [headerText && _jsx(Headline, { size: "small", children: headerText }), children, _jsxs(Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", className: "m-t-2 m-b-half", children: [_jsxs(BodyText, { subdued: true, children: [currentStep + 1, "/", totalStepCount] }), _jsxs(ButtonGroup, { children: [currentStep !== totalStepCount - 1 && (_jsx(Button, { fill: "subtle", size: "small", onClick: onClose, children: "Skip" })), _jsx(Button, { size: "small", onClick: onNext, primary: true, children: currentStep !== totalStepCount - 1 ? nextText : endText })] })] })] }) }));
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=tour-popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tour-popover.js","sourceRoot":"","sources":["../../src/components/tour-popover.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAEH,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,WAAW,GACd,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,iCAAiC,CAAC;AAa1D,MAAM,CAAC,MAAM,WAAW,GAAyB,CAAC,EAC9C,QAAQ,EACR,WAAW,GAAG,CAAC,EACf,OAAO,GAAG,OAAO,EACjB,UAAU,EACV,QAAQ,GAAG,MAAM,EACjB,OAAO,EACP,MAAM,EACN,cAAc,GAAG,CAAC,GACrB,EAAE,EAAE;IACD,OAAO,CACH,KAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"tour-popover.js","sourceRoot":"","sources":["../../src/components/tour-popover.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAEH,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,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
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Provides specific styles to Anvil components to highlight a feature",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/servicetitan/anvil-uikit-contrib",
|
|
7
|
+
"url": "https://github.com/servicetitan/anvil-uikit-contrib.git",
|
|
8
8
|
"directory": "packages/feature-spotlight"
|
|
9
9
|
},
|
|
10
10
|
"main": "./dist/index.js",
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
"src"
|
|
16
16
|
],
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@servicetitan/design-system": "
|
|
18
|
+
"@servicetitan/design-system": "~13.4.5",
|
|
19
19
|
"@types/history": "~4.7.10",
|
|
20
|
-
"@types/react": "~
|
|
20
|
+
"@types/react": "~18.2.55",
|
|
21
21
|
"@types/react-router": "~5.1.17",
|
|
22
|
-
"react": "~
|
|
22
|
+
"react": "~18.2.0",
|
|
23
23
|
"react-router-dom": "~5.3.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@servicetitan/design-system": ">=13.2.1",
|
|
27
|
-
"react": "
|
|
27
|
+
"react": ">=17.0.2",
|
|
28
28
|
"react-router-dom": "~5.3.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"cli": {
|
|
38
38
|
"webpack": false
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "41795ef488172af6a1d3cf989a759d7e10af2f67"
|
|
41
41
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const __esModule: true;
|
|
2
|
+
export const featureModalHeader: string;
|
|
2
3
|
export const featurePopover: string;
|
|
3
|
-
export const featurePopoverHeader: string;
|
|
4
|
-
export const featurePopoverFooter: string;
|
|
5
4
|
export const featurePopoverCaret: string;
|
|
6
|
-
export const
|
|
5
|
+
export const featurePopoverFooter: string;
|
|
6
|
+
export const featurePopoverHeader: string;
|
|
7
7
|
export const featureToast: string;
|
|
8
8
|
export const featureToastCenter: string;
|
|
9
9
|
|