@servicetitan/marketing-ui 1.16.0 → 2.0.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.
- package/CHANGELOG.md +37 -0
- package/dist/components/charts/funnel-chart/components/funnel-chart.js +1 -1
- package/dist/components/charts/funnel-chart/components/funnel-chart.js.map +1 -1
- package/dist/components/charts/funnel-chart/components/funnel-chart.module.less +1 -1
- package/dist/components/charts/funnel-chart/components/funnel-svg.js +1 -1
- package/dist/components/charts/funnel-chart/components/funnel-svg.js.map +1 -1
- package/dist/components/charts/line-chart/components/body.module.less +1 -1
- package/dist/components/charts/line-chart/components/hover-popover.module.less +1 -1
- package/dist/components/charts/line-chart/components/sidebar.module.less +1 -1
- package/dist/components/charts/line-chart/components/stuff.module.less +1 -1
- package/dist/components/charts/line-chart/components/svg-body.js +1 -1
- package/dist/components/charts/line-chart/components/svg-body.js.map +1 -1
- package/dist/components/charts/line-chart/components/svg.module.less +1 -1
- package/dist/components/charts/pie-chart/components/pie.js +1 -1
- package/dist/components/charts/pie-chart/components/pie.js.map +1 -1
- package/dist/components/stat/stat-card.module.less +1 -1
- package/dist/components/ui/action-button/action-button.module.less +1 -1
- package/dist/components/ui/action-button/index.d.ts +2 -0
- package/dist/components/ui/action-button/index.d.ts.map +1 -0
- package/dist/components/ui/action-button/index.js +2 -0
- package/dist/components/ui/action-button/index.js.map +1 -0
- package/dist/components/ui/{centered-spinner.d.ts → centered-spinner/centered-spinner.d.ts} +0 -0
- package/dist/components/ui/centered-spinner/centered-spinner.d.ts.map +1 -0
- package/dist/components/ui/{centered-spinner.js → centered-spinner/centered-spinner.js} +0 -0
- package/dist/components/ui/centered-spinner/centered-spinner.js.map +1 -0
- package/dist/components/ui/{centered-spinner.stories.d.ts → centered-spinner/centered-spinner.stories.d.ts} +0 -0
- package/dist/components/ui/centered-spinner/centered-spinner.stories.d.ts.map +1 -0
- package/dist/components/ui/{centered-spinner.stories.js → centered-spinner/centered-spinner.stories.js} +0 -0
- package/dist/components/ui/centered-spinner/centered-spinner.stories.js.map +1 -0
- package/dist/components/ui/date-range-picker/date-range-picker.module.less +1 -1
- package/dist/components/ui/label-with-hint/label-with-hint.d.ts +10 -0
- package/dist/components/ui/label-with-hint/label-with-hint.d.ts.map +1 -0
- package/dist/components/ui/label-with-hint/label-with-hint.js +5 -0
- package/dist/components/ui/label-with-hint/label-with-hint.js.map +1 -0
- package/dist/components/ui/label-with-hint/label-with-hint.stories.d.ts +11 -0
- package/dist/components/ui/label-with-hint/label-with-hint.stories.d.ts.map +1 -0
- package/dist/components/ui/label-with-hint/label-with-hint.stories.js +12 -0
- package/dist/components/ui/label-with-hint/label-with-hint.stories.js.map +1 -0
- package/dist/components/ui/line-text/line-text.module.less +1 -1
- package/dist/components/ui/title-popover/index.d.ts +2 -0
- package/dist/components/ui/title-popover/index.d.ts.map +1 -0
- package/dist/components/ui/title-popover/index.js +2 -0
- package/dist/components/ui/title-popover/index.js.map +1 -0
- package/dist/components/ui/title-popover/title-popover.module.less +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/components/charts/funnel-chart/components/funnel-chart.module.less +1 -1
- package/src/components/charts/funnel-chart/components/funnel-chart.tsx +1 -1
- package/src/components/charts/funnel-chart/components/funnel-svg.tsx +1 -1
- package/src/components/charts/line-chart/components/body.module.less +1 -1
- package/src/components/charts/line-chart/components/hover-popover.module.less +1 -1
- package/src/components/charts/line-chart/components/sidebar.module.less +1 -1
- package/src/components/charts/line-chart/components/stuff.module.less +1 -1
- package/src/components/charts/line-chart/components/svg-body.tsx +1 -1
- package/src/components/charts/line-chart/components/svg.module.less +1 -1
- package/src/components/charts/pie-chart/components/pie.tsx +1 -1
- package/src/components/stat/stat-card.module.less +1 -1
- package/src/components/ui/action-button/action-button.module.less +1 -1
- package/src/components/ui/action-button/index.tsx +1 -0
- package/src/components/ui/{centered-spinner.stories.tsx → centered-spinner/centered-spinner.stories.tsx} +0 -0
- package/src/components/ui/{centered-spinner.tsx → centered-spinner/centered-spinner.tsx} +0 -0
- package/src/components/ui/date-range-picker/date-range-picker.module.less +1 -1
- package/src/components/ui/label-with-hint/label-with-hint.stories.tsx +29 -0
- package/src/components/ui/label-with-hint/label-with-hint.tsx +30 -0
- package/src/components/ui/line-text/line-text.module.less +1 -1
- package/src/components/ui/title-popover/index.tsx +1 -0
- package/src/components/ui/title-popover/title-popover.module.less +1 -1
- package/src/index.ts +5 -1
- package/dist/components/ui/centered-spinner.d.ts.map +0 -1
- package/dist/components/ui/centered-spinner.js.map +0 -1
- package/dist/components/ui/centered-spinner.stories.d.ts.map +0 -1
- package/dist/components/ui/centered-spinner.stories.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
# v2.0.0 (Fri Sep 09 2022)
|
|
2
|
+
|
|
3
|
+
#### 💥 Breaking Change
|
|
4
|
+
|
|
5
|
+
- DS-1141: Updating dependencies for design-system, tokens, formstate, etc [#150](https://github.com/servicetitan/anvil-uikit-contrib/pull/150) ([@rgdelato](https://github.com/rgdelato))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Ryan De La Torre ([@rgdelato](https://github.com/rgdelato))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# v1.18.0 (Mon Aug 15 2022)
|
|
14
|
+
|
|
15
|
+
#### 🚀 Enhancement
|
|
16
|
+
|
|
17
|
+
- feat(marketing-ui): add label-with-hint component ([@zefirka](https://github.com/zefirka))
|
|
18
|
+
- feat(marketing-ui): add label-with-hint component [#145](https://github.com/servicetitan/anvil-uikit-contrib/pull/145) ([@zefirka](https://github.com/zefirka))
|
|
19
|
+
|
|
20
|
+
#### Authors: 1
|
|
21
|
+
|
|
22
|
+
- Trdat Mkrtchyan ([@zefirka](https://github.com/zefirka))
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# v1.17.0 (Tue Aug 09 2022)
|
|
27
|
+
|
|
28
|
+
#### 🚀 Enhancement
|
|
29
|
+
|
|
30
|
+
- MRK-6019: Export components [#144](https://github.com/servicetitan/anvil-uikit-contrib/pull/144) ([@withnorush](https://github.com/withnorush))
|
|
31
|
+
|
|
32
|
+
#### Authors: 1
|
|
33
|
+
|
|
34
|
+
- Andreev Pavel ([@withnorush](https://github.com/withnorush))
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
1
38
|
# v1.16.0 (Mon Aug 08 2022)
|
|
2
39
|
|
|
3
40
|
#### 🚀 Enhancement
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo, useState } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { BodyText, Eyebrow, Headline, Icon, Mask, Popover, Stack, StatusLight, Tooltip, } from '@servicetitan/design-system';
|
|
5
|
-
import tokens from '@servicetitan/tokens';
|
|
5
|
+
import { tokens } from '@servicetitan/tokens/core';
|
|
6
6
|
import { formatValue } from '../../../../utils/formatters';
|
|
7
7
|
import { StatDiff } from '../../../stat/stat-card';
|
|
8
8
|
import { defaultBottomSideLength, defaultTopSideLength } from '../utils/const';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funnel-chart.js","sourceRoot":"","sources":["../../../../../src/components/charts/funnel-chart/components/funnel-chart.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAM,MAAM,OAAO,CAAC;AAC9C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EACH,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,KAAK,EACL,WAAW,EACX,OAAO,GACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,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,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,EAAC,QAAQ,EAAC,MAAM,EAAE,MAAM,GAAI,MAlBnE,CAAC,CAAC,EAAE,CAmBL,CACX,CAAC,IACE,KACL,CACV,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
-
import tokens from '@servicetitan/tokens';
|
|
3
|
+
import { tokens } from '@servicetitan/tokens/core';
|
|
4
4
|
import { defaultBottomSideLength, defaultTopSideLength } from '../utils/const';
|
|
5
5
|
const st = (v) => v.toFixed(2);
|
|
6
6
|
export const FunnelPyramidSvg = ({ colors, topSideLength = defaultTopSideLength, bottomSideLength = defaultBottomSideLength, }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funnel-svg.js","sourceRoot":"","sources":["../../../../../src/components/charts/funnel-chart/components/funnel-svg.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAM,MAAM,OAAO,CAAC;AACpC,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"funnel-svg.js","sourceRoot":"","sources":["../../../../../src/components/charts/funnel-chart/components/funnel-svg.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAM,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE/E,MAAM,EAAE,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAQvC,MAAM,CAAC,MAAM,gBAAgB,GAA8B,CAAC,EACxD,MAAM,EACN,aAAa,GAAG,oBAAoB,EACpC,gBAAgB,GAAG,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AAO,EAAC,aAAa,EACrB,mBAAmB,EAAC,MAAM,EAC1B,KAAK,EAAC,4BAA4B,gBAEjC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACjC,eAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,IAAzB,GAAG,CAA0B,CAC3C,CAAC,IACA,EACN,4BACI,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,OAAO,EAAC,aAAa,EACrB,mBAAmB,EAAC,MAAM,EAC1B,KAAK,EAAC,4BAA4B,gBAEjC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CACvB,eAEI,EAAE,EAAC,GAAG,EACN,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EACT,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EACT,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,EACT,MAAM,EAAE,MAAM,CAAC,cAAc,EAC7B,WAAW,EAAE,GAAG,IANX,EAAE,CAOT,CACL,CAAC,IACA,KACJ,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { observer } from 'mobx-react';
|
|
3
|
-
import tokens from '@servicetitan/tokens';
|
|
3
|
+
import { tokens } from '@servicetitan/tokens/core';
|
|
4
4
|
import { useDependencies } from '@servicetitan/react-ioc';
|
|
5
5
|
import { SvgStore } from '../stores/svg.store';
|
|
6
6
|
import { keyVal } from '../utils/key';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg-body.js","sourceRoot":"","sources":["../../../../../src/components/charts/line-chart/components/svg-body.tsx"],"names":[],"mappings":";AACA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C,YAAY,IAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,GAAI,IAC5D,CACT,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useMemo, useState, Fragment } from 'react';
|
|
3
|
-
import tokens from '@servicetitan/tokens';
|
|
3
|
+
import { tokens } from '@servicetitan/tokens/core';
|
|
4
4
|
import { BodyText, Popover, Stack, StatusLight } from '@servicetitan/design-system';
|
|
5
5
|
import { useClientRect } from '../../../../utils/use-client-rect';
|
|
6
6
|
const chartPadding = 8;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pie.js","sourceRoot":"","sources":["../../../../../src/components/charts/pie-chart/components/pie.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAM,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"pie.js","sourceRoot":"","sources":["../../../../../src/components/charts/pie-chart/components/pie.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAM,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAEpF,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGlE,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,EAAE,GAAG,CAAC,KAAc,EAAE,EAAE,CAAC,GAAG,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,IAAI,CAAC;AAEjD,MAAM,WAAW,GAGZ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,OAA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BJ,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,GAAG,CAgCpB,CACT,CAAA;iBAAA,CAAC,EACL,CAAC,CAAC,UAAU,IAAI,KAAC,UAAU,KAAG,EAC/B,KAAC,MAAM,IACH,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,GAChC,EACF,KAAC,WAAW,IACR,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,GAChC,IACK,CACd,IACC,CACT,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/action-button/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/action-button/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"centered-spinner.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/centered-spinner/centered-spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B,MAAM,WAAW,0BAA0B;IACvC,oBAAoB;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,0BAA0B,CAgB1D,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"centered-spinner.js","sourceRoot":"","sources":["../../../../src/components/ui/centered-spinner/centered-spinner.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AASvE,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACzF,OAAO,CACH,MAAC,KAAK,kBACF,cAAc,EAAC,QAAQ,EACvB,UAAU,EAAC,QAAQ,EACnB,SAAS,EAAC,QAAQ,EAClB,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,aAAa,CAAC,iBAE/C,KAAC,OAAO,IAAC,SAAS,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,GAAI,EAC5C,CAAC,CAAC,IAAI,IAAI,CACP,KAAC,QAAQ,kBAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,sBAC3C,IAAI,IACE,CACd,KACG,CACX,CAAC;AACN,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"centered-spinner.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/centered-spinner/centered-spinner.stories.tsx"],"names":[],"mappings":";;;;;;AAGA,wBAIE;AAKF,eAAO,MAAM,mBAAmB,mBAA+C,CAAC;AAChF,eAAO,MAAM,eAAe,mBAAoE,CAAC;AACjG,eAAO,MAAM,qBAAqB,mBAEhC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"centered-spinner.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/centered-spinner/centered-spinner.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,eAAe;IACX,KAAK,EAAE,iCAAiC;IACxC,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,GAAG,CAAC,KAA0C,EAAE,EAAsB,EAAE,EAAE,CAAC,GAAG,EAAE,CACnF,4BAAK,KAAK,EAAE,KAAK,gBAAG,EAAE,EAAE,IAAO,CAAC;AAEpC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,KAAC,eAAe,IAAC,IAAI,EAAC,MAAM,GAAG,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,KAAC,eAAe,KAAG,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,CAC9E,KAAC,eAAe,IAAC,IAAI,EAAC,qBAAqB,GAAG,CACjD,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
export interface LabelWithHintProps {
|
|
3
|
+
label: string;
|
|
4
|
+
hint?: string;
|
|
5
|
+
textClassName?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
textSize?: 'large' | 'medium' | 'small' | 'xsmall';
|
|
8
|
+
}
|
|
9
|
+
export declare const LabelWithHint: FC<LabelWithHintProps>;
|
|
10
|
+
//# sourceMappingURL=label-with-hint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-with-hint.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/label-with-hint/label-with-hint.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;CACtD;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAiBhD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { BodyText, Icon, Stack, Tooltip } from '@servicetitan/design-system';
|
|
3
|
+
import { tokens } from '@servicetitan/tokens/core';
|
|
4
|
+
export const LabelWithHint = ({ label, textClassName, className, hint, textSize = 'small', }) => (_jsxs(Stack, Object.assign({ spacing: 1, alignItems: "flex-start", className: className }, { children: [_jsx(BodyText, Object.assign({ size: textSize, bold: true, className: textClassName }, { children: label })), !!hint && (_jsx(Tooltip, Object.assign({ direction: "tr", text: hint }, { children: _jsx(Icon, { name: "info", size: 18, color: tokens.colorNeutral80 }) })))] })));
|
|
5
|
+
//# sourceMappingURL=label-with-hint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-with-hint.js","sourceRoot":"","sources":["../../../../src/components/ui/label-with-hint/label-with-hint.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAWnD,MAAM,CAAC,MAAM,aAAa,GAA2B,CAAC,EAClD,KAAK,EACL,aAAa,EACb,SAAS,EACT,IAAI,EACJ,QAAQ,GAAG,OAAO,GACrB,EAAE,EAAE,CAAC,CACF,MAAC,KAAK,kBAAC,OAAO,EAAE,CAAC,EAAE,UAAU,EAAC,YAAY,EAAC,SAAS,EAAE,SAAS,iBAC3D,KAAC,QAAQ,kBAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,QAAC,SAAS,EAAE,aAAa,gBAClD,KAAK,IACC,EACV,CAAC,CAAC,IAAI,IAAI,CACP,KAAC,OAAO,kBAAC,SAAS,EAAC,IAAI,EAAC,IAAI,EAAE,IAAI,gBAC9B,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,cAAc,GAAI,IACtD,CACb,KACG,CACX,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("react").FC<import("./label-with-hint").LabelWithHintProps>;
|
|
5
|
+
parameters: {};
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|
|
8
|
+
export declare const Basic: () => JSX.Element;
|
|
9
|
+
export declare const Custom: () => JSX.Element;
|
|
10
|
+
export declare const Sizes: () => JSX.Element;
|
|
11
|
+
//# sourceMappingURL=label-with-hint.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-with-hint.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/label-with-hint/label-with-hint.stories.tsx"],"names":[],"mappings":";;;;;;AAGA,wBAIE;AAEF,eAAO,MAAM,KAAK,mBAAoD,CAAC;AAEvE,eAAO,MAAM,MAAM,mBAQlB,CAAC;AAEF,eAAO,MAAM,KAAK,mBAOjB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment } from 'react';
|
|
3
|
+
import { LabelWithHint } from './label-with-hint';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Marketing UI/ui/LabelWithHint',
|
|
6
|
+
component: LabelWithHint,
|
|
7
|
+
parameters: {},
|
|
8
|
+
};
|
|
9
|
+
export const Basic = () => _jsx(LabelWithHint, { label: "Label", hint: "Hint" });
|
|
10
|
+
export const Custom = () => (_jsx(LabelWithHint, { label: "Label", hint: "Hint", textClassName: "text-red-500", className: "bg-blue-500", textSize: "large" }));
|
|
11
|
+
export const Sizes = () => (_jsxs(Fragment, { children: [_jsx(LabelWithHint, { label: "Label", hint: "Hint", textSize: "large" }), _jsx(LabelWithHint, { label: "Label", hint: "Hint", textSize: "medium" }), _jsx(LabelWithHint, { label: "Label", hint: "Hint", textSize: "small" }), _jsx(LabelWithHint, { label: "Label", hint: "Hint", textSize: "xsmall" })] }));
|
|
12
|
+
//# sourceMappingURL=label-with-hint.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-with-hint.stories.js","sourceRoot":"","sources":["../../../../src/components/ui/label-with-hint/label-with-hint.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAe;IACX,KAAK,EAAE,+BAA+B;IACtC,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,KAAC,aAAa,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,GAAG,CAAC;AAEvE,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,EAAE,CAAC,CACxB,KAAC,aAAa,IACV,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,MAAM,EACX,aAAa,EAAC,cAAc,EAC5B,SAAS,EAAC,aAAa,EACvB,QAAQ,EAAC,OAAO,GAClB,CACL,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,CACvB,MAAC,QAAQ,eACL,KAAC,aAAa,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,OAAO,GAAG,EAC5D,KAAC,aAAa,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,GAAG,EAC7D,KAAC,aAAa,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,OAAO,GAAG,EAC5D,KAAC,aAAa,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,QAAQ,GAAG,IACtD,CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/title-popover/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/title-popover/index.tsx"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from './components/stat/stat-card';
|
|
2
2
|
export * from './components/stat/stat-extended-card';
|
|
3
3
|
export * from './components/ads/ads-stat';
|
|
4
|
-
export * from './components/ui/
|
|
4
|
+
export * from './components/ui/action-button';
|
|
5
|
+
export * from './components/ui/centered-spinner/centered-spinner';
|
|
6
|
+
export * from './components/ui/label-with-hint/label-with-hint';
|
|
5
7
|
export * from './components/ui/line-text';
|
|
8
|
+
export * from './components/ui/title-popover';
|
|
6
9
|
export * from './components/image-cropper/image-cropper';
|
|
7
10
|
export * from './utils/ads-texts';
|
|
8
11
|
export * from './utils/formatters';
|
|
@@ -10,4 +13,5 @@ export * from './utils/string-case';
|
|
|
10
13
|
export * from './utils/use-client-rect';
|
|
11
14
|
export * from './utils/helpers';
|
|
12
15
|
export * from './utils/format-big-numbers';
|
|
16
|
+
export * from './utils/use-target-range-store';
|
|
13
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AAEzD,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from './components/stat/stat-card';
|
|
2
2
|
export * from './components/stat/stat-extended-card';
|
|
3
3
|
export * from './components/ads/ads-stat';
|
|
4
|
-
export * from './components/ui/
|
|
4
|
+
export * from './components/ui/action-button';
|
|
5
|
+
export * from './components/ui/centered-spinner/centered-spinner';
|
|
6
|
+
export * from './components/ui/label-with-hint/label-with-hint';
|
|
5
7
|
export * from './components/ui/line-text';
|
|
8
|
+
export * from './components/ui/title-popover';
|
|
6
9
|
export * from './components/image-cropper/image-cropper';
|
|
7
10
|
export * from './utils/ads-texts';
|
|
8
11
|
export * from './utils/formatters';
|
|
@@ -10,4 +13,5 @@ export * from './utils/string-case';
|
|
|
10
13
|
export * from './utils/use-client-rect';
|
|
11
14
|
export * from './utils/helpers';
|
|
12
15
|
export * from './utils/format-big-numbers';
|
|
16
|
+
export * from './utils/use-target-range-store';
|
|
13
17
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mDAAmD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AAEzD,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/marketing-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Marketing UI component and utils",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"react-image-crop": "8.6.5"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@servicetitan/design-system": "
|
|
22
|
+
"@servicetitan/design-system": ">=12.4.1",
|
|
23
23
|
"@servicetitan/react-ioc": "~14.1.1",
|
|
24
|
-
"@servicetitan/tokens": "
|
|
24
|
+
"@servicetitan/tokens": ">=12.1.11",
|
|
25
25
|
"accounting": "~0.4.1",
|
|
26
26
|
"mobx": "~6.3.2",
|
|
27
27
|
"mobx-react": "~7.2.0",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"react": "~17.0.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@servicetitan/design-system": "
|
|
32
|
+
"@servicetitan/design-system": ">=12.4.1",
|
|
33
33
|
"@servicetitan/react-ioc": "~14.1.1",
|
|
34
|
-
"@servicetitan/tokens": "
|
|
34
|
+
"@servicetitan/tokens": ">=12.1.11",
|
|
35
35
|
"@testing-library/react": "^12.0.0",
|
|
36
36
|
"@types/accounting": "~0.4.2",
|
|
37
37
|
"@types/history": "~4.7.7",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"less": true,
|
|
52
52
|
"webpack": false
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "c29a739a4437e2bb2a91805e01d34858fe0c7425"
|
|
55
55
|
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
StatusLight,
|
|
12
12
|
Tooltip,
|
|
13
13
|
} from '@servicetitan/design-system';
|
|
14
|
-
import tokens from '@servicetitan/tokens';
|
|
14
|
+
import { tokens } from '@servicetitan/tokens/core';
|
|
15
15
|
import { formatValue } from '../../../../utils/formatters';
|
|
16
16
|
import { StatDiff } from '../../../stat/stat-card';
|
|
17
17
|
import { FunnelChartProps } from '../utils/interface';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { observer } from 'mobx-react';
|
|
3
|
-
import tokens from '@servicetitan/tokens';
|
|
3
|
+
import { tokens } from '@servicetitan/tokens/core';
|
|
4
4
|
import { useDependencies } from '@servicetitan/react-ioc';
|
|
5
5
|
|
|
6
6
|
import { SvgStore } from '../stores/svg.store';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo, useState, FC, Fragment } from 'react';
|
|
2
|
-
import tokens from '@servicetitan/tokens';
|
|
2
|
+
import { tokens } from '@servicetitan/tokens/core';
|
|
3
3
|
import { BodyText, Popover, Stack, StatusLight } from '@servicetitan/design-system';
|
|
4
4
|
|
|
5
5
|
import { useClientRect } from '../../../../utils/use-client-rect';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './action-button';
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Fragment } from 'react';
|
|
2
|
+
import { LabelWithHint } from './label-with-hint';
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Marketing UI/ui/LabelWithHint',
|
|
6
|
+
component: LabelWithHint,
|
|
7
|
+
parameters: {},
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export const Basic = () => <LabelWithHint label="Label" hint="Hint" />;
|
|
11
|
+
|
|
12
|
+
export const Custom = () => (
|
|
13
|
+
<LabelWithHint
|
|
14
|
+
label="Label"
|
|
15
|
+
hint="Hint"
|
|
16
|
+
textClassName="text-red-500"
|
|
17
|
+
className="bg-blue-500"
|
|
18
|
+
textSize="large"
|
|
19
|
+
/>
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
export const Sizes = () => (
|
|
23
|
+
<Fragment>
|
|
24
|
+
<LabelWithHint label="Label" hint="Hint" textSize="large" />
|
|
25
|
+
<LabelWithHint label="Label" hint="Hint" textSize="medium" />
|
|
26
|
+
<LabelWithHint label="Label" hint="Hint" textSize="small" />
|
|
27
|
+
<LabelWithHint label="Label" hint="Hint" textSize="xsmall" />
|
|
28
|
+
</Fragment>
|
|
29
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { BodyText, Icon, Stack, Tooltip } from '@servicetitan/design-system';
|
|
2
|
+
import { tokens } from '@servicetitan/tokens/core';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
|
|
5
|
+
export interface LabelWithHintProps {
|
|
6
|
+
label: string;
|
|
7
|
+
hint?: string;
|
|
8
|
+
textClassName?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
textSize?: 'large' | 'medium' | 'small' | 'xsmall';
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const LabelWithHint: FC<LabelWithHintProps> = ({
|
|
14
|
+
label,
|
|
15
|
+
textClassName,
|
|
16
|
+
className,
|
|
17
|
+
hint,
|
|
18
|
+
textSize = 'small',
|
|
19
|
+
}) => (
|
|
20
|
+
<Stack spacing={1} alignItems="flex-start" className={className}>
|
|
21
|
+
<BodyText size={textSize} bold className={textClassName}>
|
|
22
|
+
{label}
|
|
23
|
+
</BodyText>
|
|
24
|
+
{!!hint && (
|
|
25
|
+
<Tooltip direction="tr" text={hint}>
|
|
26
|
+
<Icon name="info" size={18} color={tokens.colorNeutral80} />
|
|
27
|
+
</Tooltip>
|
|
28
|
+
)}
|
|
29
|
+
</Stack>
|
|
30
|
+
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './title-popover';
|
package/src/index.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from './components/stat/stat-card';
|
|
2
2
|
export * from './components/stat/stat-extended-card';
|
|
3
3
|
export * from './components/ads/ads-stat';
|
|
4
|
-
export * from './components/ui/
|
|
4
|
+
export * from './components/ui/action-button';
|
|
5
|
+
export * from './components/ui/centered-spinner/centered-spinner';
|
|
6
|
+
export * from './components/ui/label-with-hint/label-with-hint';
|
|
5
7
|
export * from './components/ui/line-text';
|
|
8
|
+
export * from './components/ui/title-popover';
|
|
6
9
|
export * from './components/image-cropper/image-cropper';
|
|
7
10
|
|
|
8
11
|
export * from './utils/ads-texts';
|
|
@@ -11,3 +14,4 @@ export * from './utils/string-case';
|
|
|
11
14
|
export * from './utils/use-client-rect';
|
|
12
15
|
export * from './utils/helpers';
|
|
13
16
|
export * from './utils/format-big-numbers';
|
|
17
|
+
export * from './utils/use-target-range-store';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"centered-spinner.d.ts","sourceRoot":"","sources":["../../../src/components/ui/centered-spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAI3B,MAAM,WAAW,0BAA0B;IACvC,oBAAoB;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,0BAA0B,CAgB1D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"centered-spinner.js","sourceRoot":"","sources":["../../../src/components/ui/centered-spinner.tsx"],"names":[],"mappings":";AACA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AASvE,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;IACzF,OAAO,CACH,MAAC,KAAK,kBACF,cAAc,EAAC,QAAQ,EACvB,UAAU,EAAC,QAAQ,EACnB,SAAS,EAAC,QAAQ,EAClB,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,aAAa,CAAC,iBAE/C,KAAC,OAAO,IAAC,SAAS,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,GAAI,EAC5C,CAAC,CAAC,IAAI,IAAI,CACP,KAAC,QAAQ,kBAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,sBAC3C,IAAI,IACE,CACd,KACG,CACX,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"centered-spinner.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ui/centered-spinner.stories.tsx"],"names":[],"mappings":";;;;;;AAGA,wBAIE;AAKF,eAAO,MAAM,mBAAmB,mBAA+C,CAAC;AAChF,eAAO,MAAM,eAAe,mBAAoE,CAAC;AACjG,eAAO,MAAM,qBAAqB,mBAEhC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"centered-spinner.stories.js","sourceRoot":"","sources":["../../../src/components/ui/centered-spinner.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,eAAe;IACX,KAAK,EAAE,iCAAiC;IACxC,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE,EAAE;CACjB,CAAC;AAEF,MAAM,CAAC,GAAG,CAAC,KAA0C,EAAE,EAAsB,EAAE,EAAE,CAAC,GAAG,EAAE,CACnF,4BAAK,KAAK,EAAE,KAAK,gBAAG,EAAE,EAAE,IAAO,CAAC;AAEpC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,KAAC,eAAe,IAAC,IAAI,EAAC,MAAM,GAAG,CAAC,CAAC;AAChF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,KAAC,eAAe,KAAG,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,CAC9E,KAAC,eAAe,IAAC,IAAI,EAAC,qBAAqB,GAAG,CACjD,CAAC,CAAC"}
|