@servicetitan/marketing-ui 1.15.0 → 1.18.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 +353 -0
- package/dist/components/ads/ads-stat.js +13 -18
- package/dist/components/ads/ads-stat.js.map +1 -1
- package/dist/components/charts/funnel-chart/components/funnel-chart.js +15 -41
- package/dist/components/charts/funnel-chart/components/funnel-chart.js.map +1 -1
- package/dist/components/charts/funnel-chart/components/funnel-svg.js +9 -16
- package/dist/components/charts/funnel-chart/components/funnel-svg.js.map +1 -1
- package/dist/components/charts/funnel-chart/funnel-chart.stories.js +11 -14
- package/dist/components/charts/funnel-chart/funnel-chart.stories.js.map +1 -1
- package/dist/components/charts/funnel-chart/index.js +2 -16
- package/dist/components/charts/funnel-chart/index.js.map +1 -1
- package/dist/components/charts/funnel-chart/utils/const.js +2 -5
- package/dist/components/charts/funnel-chart/utils/const.js.map +1 -1
- package/dist/components/charts/funnel-chart/utils/interface.js +1 -2
- package/dist/components/charts/line-chart/components/body.js +26 -51
- package/dist/components/charts/line-chart/components/body.js.map +1 -1
- package/dist/components/charts/line-chart/components/container.js +12 -15
- package/dist/components/charts/line-chart/components/container.js.map +1 -1
- package/dist/components/charts/line-chart/components/hover-popover.js +20 -45
- package/dist/components/charts/line-chart/components/hover-popover.js.map +1 -1
- package/dist/components/charts/line-chart/components/sidebar.js +9 -35
- package/dist/components/charts/line-chart/components/sidebar.js.map +1 -1
- package/dist/components/charts/line-chart/components/stuff.js +13 -41
- package/dist/components/charts/line-chart/components/stuff.js.map +1 -1
- package/dist/components/charts/line-chart/components/svg-bars.js +14 -17
- package/dist/components/charts/line-chart/components/svg-bars.js.map +1 -1
- package/dist/components/charts/line-chart/components/svg-body.js +15 -41
- package/dist/components/charts/line-chart/components/svg-body.js.map +1 -1
- package/dist/components/charts/line-chart/components/svg-lines.js +11 -33
- package/dist/components/charts/line-chart/components/svg-lines.js.map +1 -1
- package/dist/components/charts/line-chart/index.js +2 -14
- package/dist/components/charts/line-chart/index.js.map +1 -1
- package/dist/components/charts/line-chart/line-chart.stories.js +19 -27
- package/dist/components/charts/line-chart/line-chart.stories.js.map +1 -1
- package/dist/components/charts/line-chart/stores/line-chart.store.js +20 -23
- package/dist/components/charts/line-chart/stores/line-chart.store.js.map +1 -1
- package/dist/components/charts/line-chart/stores/svg.store.js +10 -13
- package/dist/components/charts/line-chart/stores/svg.store.js.map +1 -1
- package/dist/components/charts/line-chart/utils/const.js +2 -6
- package/dist/components/charts/line-chart/utils/const.js.map +1 -1
- package/dist/components/charts/line-chart/utils/formatters.js +7 -11
- package/dist/components/charts/line-chart/utils/formatters.js.map +1 -1
- package/dist/components/charts/line-chart/utils/interfaces.js +1 -2
- package/dist/components/charts/line-chart/utils/internal-interfaces.js +1 -2
- package/dist/components/charts/line-chart/utils/key.js +1 -5
- package/dist/components/charts/line-chart/utils/key.js.map +1 -1
- package/dist/components/charts/line-chart/utils/labels.js +19 -26
- package/dist/components/charts/line-chart/utils/labels.js.map +1 -1
- package/dist/components/charts/pie-chart/components/pie-chart.js +12 -38
- package/dist/components/charts/pie-chart/components/pie-chart.js.map +1 -1
- package/dist/components/charts/pie-chart/components/pie.js +20 -27
- package/dist/components/charts/pie-chart/components/pie.js.map +1 -1
- package/dist/components/charts/pie-chart/index.js +1 -5
- package/dist/components/charts/pie-chart/index.js.map +1 -1
- package/dist/components/charts/pie-chart/pie-chart.stories.js +11 -18
- package/dist/components/charts/pie-chart/pie-chart.stories.js.map +1 -1
- package/dist/components/charts/pie-chart/utils/const.js +4 -8
- package/dist/components/charts/pie-chart/utils/const.js.map +1 -1
- package/dist/components/charts/pie-chart/utils/interface.js +1 -2
- package/dist/components/image-cropper/image-cropper.js +17 -23
- package/dist/components/image-cropper/image-cropper.js.map +1 -1
- package/dist/components/image-cropper/image-cropper.stories.js +10 -14
- package/dist/components/image-cropper/image-cropper.stories.js.map +1 -1
- package/dist/components/stat/stat-card.js +15 -42
- package/dist/components/stat/stat-card.js.map +1 -1
- package/dist/components/stat/stat-cards.stories.js +10 -13
- package/dist/components/stat/stat-cards.stories.js.map +1 -1
- package/dist/components/stat/stat-extended-card.js +9 -35
- package/dist/components/stat/stat-extended-card.js.map +1 -1
- package/dist/components/stat/stat-extended-card.stories.js +8 -11
- package/dist/components/stat/stat-extended-card.stories.js.map +1 -1
- package/dist/components/ui/action-button/action-button.d.ts +14 -0
- package/dist/components/ui/action-button/action-button.d.ts.map +1 -0
- package/dist/components/ui/action-button/action-button.js +32 -0
- package/dist/components/ui/action-button/action-button.js.map +1 -0
- package/dist/components/ui/action-button/action-button.module.less +51 -0
- package/dist/components/ui/action-button/action-button.stories.d.ts +10 -0
- package/dist/components/ui/action-button/action-button.stories.d.ts.map +1 -0
- package/dist/components/ui/action-button/action-button.stories.js +11 -0
- package/dist/components/ui/action-button/action-button.stories.js.map +1 -0
- 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/centered-spinner.js +7 -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/centered-spinner.stories.js +12 -0
- package/dist/components/ui/centered-spinner/centered-spinner.stories.js.map +1 -0
- package/dist/components/ui/date-range-picker/date-range-picker.js +11 -36
- package/dist/components/ui/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/ui/date-range-picker/date-range-picker.stories.js +9 -12
- package/dist/components/ui/date-range-picker/date-range-picker.stories.js.map +1 -1
- package/dist/components/ui/disabled-button.js +4 -8
- package/dist/components/ui/disabled-button.js.map +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/index.js +1 -13
- package/dist/components/ui/line-text/index.js.map +1 -1
- package/dist/components/ui/line-text/line-text-body.stories.js +7 -10
- package/dist/components/ui/line-text/line-text-body.stories.js.map +1 -1
- package/dist/components/ui/line-text/line-text-head.stories.js +7 -10
- package/dist/components/ui/line-text/line-text-head.stories.js.map +1 -1
- package/dist/components/ui/line-text/line-text.js +15 -42
- package/dist/components/ui/line-text/line-text.js.map +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.d.ts +17 -0
- package/dist/components/ui/title-popover/title-popover.d.ts.map +1 -0
- package/dist/components/ui/title-popover/title-popover.js +96 -0
- package/dist/components/ui/title-popover/title-popover.js.map +1 -0
- package/dist/components/ui/title-popover/title-popover.module.less +10 -0
- package/dist/components/ui/title-popover/title-popover.stories.d.ts +11 -0
- package/dist/components/ui/title-popover/title-popover.stories.d.ts.map +1 -0
- package/dist/components/ui/title-popover/title-popover.stories.js +17 -0
- package/dist/components/ui/title-popover/title-popover.stories.js.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -24
- package/dist/index.js.map +1 -1
- package/dist/utils/ads-texts.js +1 -4
- package/dist/utils/ads-texts.js.map +1 -1
- package/dist/utils/date/__mocks__/date-mock.js +1 -5
- package/dist/utils/date/__mocks__/date-mock.js.map +1 -1
- package/dist/utils/date/date-range-picker-options.js +7 -12
- package/dist/utils/date/date-range-picker-options.js.map +1 -1
- package/dist/utils/date/date-range-picker-state.js +6 -10
- package/dist/utils/date/date-range-picker-state.js.map +1 -1
- package/dist/utils/date/date-tenant.js +1 -5
- package/dist/utils/date/date-tenant.js.map +1 -1
- package/dist/utils/date/date.js +3 -9
- package/dist/utils/date/date.js.map +1 -1
- package/dist/utils/date/index.js +4 -16
- package/dist/utils/date/index.js.map +1 -1
- package/dist/utils/format-big-numbers.js +1 -5
- package/dist/utils/format-big-numbers.js.map +1 -1
- package/dist/utils/formatters.js +13 -41
- package/dist/utils/formatters.js.map +1 -1
- package/dist/utils/helpers.js +2 -7
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/string-case.js +2 -7
- package/dist/utils/string-case.js.map +1 -1
- package/dist/utils/use-client-rect.js +7 -11
- package/dist/utils/use-client-rect.js.map +1 -1
- package/dist/utils/use-target-range-store.d.ts +7 -0
- package/dist/utils/use-target-range-store.d.ts.map +1 -0
- package/dist/utils/use-target-range-store.js +9 -0
- package/dist/utils/use-target-range-store.js.map +1 -0
- package/package.json +2 -2
- package/src/components/ui/action-button/action-button.module.less +51 -0
- package/src/components/ui/action-button/action-button.module.less.d.ts +9 -0
- package/src/components/ui/action-button/action-button.stories.tsx +19 -0
- package/src/components/ui/action-button/action-button.tsx +82 -0
- 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/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/title-popover/index.tsx +1 -0
- package/src/components/ui/title-popover/title-popover.module.less +10 -0
- package/src/components/ui/title-popover/title-popover.module.less.d.ts +3 -0
- package/src/components/ui/title-popover/title-popover.stories.tsx +28 -0
- package/src/components/ui/title-popover/title-popover.tsx +86 -0
- package/src/index.ts +5 -1
- package/src/utils/use-target-range-store.ts +17 -0
- package/dist/components/ui/centered-spinner.d.ts.map +0 -1
- package/dist/components/ui/centered-spinner.js +0 -14
- 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 +0 -15
- package/dist/components/ui/centered-spinner.stories.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
# v1.18.0 (Mon Aug 15 2022)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- feat(marketing-ui): add label-with-hint component ([@zefirka](https://github.com/zefirka))
|
|
6
|
+
- feat(marketing-ui): add label-with-hint component [#145](https://github.com/servicetitan/anvil-uikit-contrib/pull/145) ([@zefirka](https://github.com/zefirka))
|
|
7
|
+
|
|
8
|
+
#### Authors: 1
|
|
9
|
+
|
|
10
|
+
- Trdat Mkrtchyan ([@zefirka](https://github.com/zefirka))
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# v1.17.0 (Tue Aug 09 2022)
|
|
15
|
+
|
|
16
|
+
#### 🚀 Enhancement
|
|
17
|
+
|
|
18
|
+
- MRK-6019: Export components [#144](https://github.com/servicetitan/anvil-uikit-contrib/pull/144) ([@withnorush](https://github.com/withnorush))
|
|
19
|
+
|
|
20
|
+
#### Authors: 1
|
|
21
|
+
|
|
22
|
+
- Andreev Pavel ([@withnorush](https://github.com/withnorush))
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# v1.16.0 (Mon Aug 08 2022)
|
|
27
|
+
|
|
28
|
+
#### 🚀 Enhancement
|
|
29
|
+
|
|
30
|
+
- MRK-6019: Move common components to marketing-ui [#141](https://github.com/servicetitan/anvil-uikit-contrib/pull/141) ([@withnorush](https://github.com/withnorush))
|
|
31
|
+
|
|
32
|
+
#### Authors: 1
|
|
33
|
+
|
|
34
|
+
- Andreev Pavel ([@withnorush](https://github.com/withnorush))
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
# v1.15.0 (Thu May 19 2022)
|
|
39
|
+
|
|
40
|
+
#### 🚀 Enhancement
|
|
41
|
+
|
|
42
|
+
- update ran rate description, added description for callBookingRate, MAD-1314 [#101](https://github.com/servicetitan/anvil-uikit-contrib/pull/101) ([@venmelkonian](https://github.com/venmelkonian))
|
|
43
|
+
|
|
44
|
+
#### Authors: 1
|
|
45
|
+
|
|
46
|
+
- Venera Melkonyan ([@venmelkonian](https://github.com/venmelkonian))
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
# v1.14.0 (Wed Mar 02 2022)
|
|
51
|
+
|
|
52
|
+
#### 🚀 Enhancement
|
|
53
|
+
|
|
54
|
+
- Round to the nearest integer for value formatting [#94](https://github.com/servicetitan/anvil-uikit-contrib/pull/94) ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
55
|
+
|
|
56
|
+
#### Authors: 1
|
|
57
|
+
|
|
58
|
+
- Venera Melkonyan ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
# v1.13.0 (Thu Feb 24 2022)
|
|
63
|
+
|
|
64
|
+
#### 🚀 Enhancement
|
|
65
|
+
|
|
66
|
+
- MPA-290: useAsyncLazyDropdownState [marketing-ui] [#83](https://github.com/servicetitan/anvil-uikit-contrib/pull/83) ([@aschumahua](https://github.com/aschumahua))
|
|
67
|
+
|
|
68
|
+
#### Authors: 1
|
|
69
|
+
|
|
70
|
+
- Anzar Schumahua ([@aschumahua](https://github.com/aschumahua))
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
# v1.12.0 (Sat Feb 19 2022)
|
|
75
|
+
|
|
76
|
+
#### 🚀 Enhancement
|
|
77
|
+
|
|
78
|
+
- MPA-290: findSubstrIndexes [marketing-ui] [#82](https://github.com/servicetitan/anvil-uikit-contrib/pull/82) ([@aschumahua](https://github.com/aschumahua))
|
|
79
|
+
- MPA-290: formatBigNumber [marketing-ui] [#78](https://github.com/servicetitan/anvil-uikit-contrib/pull/78) ([@aschumahua](https://github.com/aschumahua))
|
|
80
|
+
|
|
81
|
+
#### Authors: 1
|
|
82
|
+
|
|
83
|
+
- Anzar Schumahua ([@aschumahua](https://github.com/aschumahua))
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
# v1.11.0 (Wed Jan 26 2022)
|
|
88
|
+
|
|
89
|
+
#### 🚀 Enhancement
|
|
90
|
+
|
|
91
|
+
- all conversion definition [#73](https://github.com/servicetitan/anvil-uikit-contrib/pull/73) ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
92
|
+
|
|
93
|
+
#### Authors: 1
|
|
94
|
+
|
|
95
|
+
- Venera Melkonyan ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
# v1.10.0 (Fri Jan 21 2022)
|
|
100
|
+
|
|
101
|
+
#### 🚀 Enhancement
|
|
102
|
+
|
|
103
|
+
- MAD-1189 [#72](https://github.com/servicetitan/anvil-uikit-contrib/pull/72) ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
104
|
+
|
|
105
|
+
#### Authors: 1
|
|
106
|
+
|
|
107
|
+
- Venera Melkonyan ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
# v1.8.0 (Mon Dec 27 2021)
|
|
112
|
+
|
|
113
|
+
#### 🚀 Enhancement
|
|
114
|
+
|
|
115
|
+
- Update useFormatPhone [#69](https://github.com/servicetitan/anvil-uikit-contrib/pull/69) ([@aschumahua](https://github.com/aschumahua) [@fnkear](https://github.com/fnkear))
|
|
116
|
+
|
|
117
|
+
#### Authors: 2
|
|
118
|
+
|
|
119
|
+
- Anzar Schumahua ([@aschumahua](https://github.com/aschumahua))
|
|
120
|
+
- Oleg Mikhalkov ([@fnkear](https://github.com/fnkear))
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
# v1.7.0 (Fri Dec 24 2021)
|
|
125
|
+
|
|
126
|
+
#### 🚀 Enhancement
|
|
127
|
+
|
|
128
|
+
- updated styles - MAD-1131 [#68](https://github.com/servicetitan/anvil-uikit-contrib/pull/68) ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
129
|
+
|
|
130
|
+
#### Authors: 1
|
|
131
|
+
|
|
132
|
+
- Venera Melkonyan ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
# v1.6.1 (Fri Dec 10 2021)
|
|
137
|
+
|
|
138
|
+
#### 🐛 Bug Fix
|
|
139
|
+
|
|
140
|
+
- Round to the nearest integer for percent formatting MAD-1117 [#64](https://github.com/servicetitan/anvil-uikit-contrib/pull/64) ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
141
|
+
|
|
142
|
+
#### Authors: 1
|
|
143
|
+
|
|
144
|
+
- Venera Melkonyan ([@VenMelkonyan](https://github.com/VenMelkonyan))
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
# v1.6.0 (Fri Nov 19 2021)
|
|
149
|
+
|
|
150
|
+
#### 🚀 Enhancement
|
|
151
|
+
|
|
152
|
+
- fix: considering metric values empty array case [#52](https://github.com/servicetitan/anvil-uikit-contrib/pull/52) ([@venmelkonyan](https://github.com/venmelkonyan))
|
|
153
|
+
|
|
154
|
+
#### Authors: 1
|
|
155
|
+
|
|
156
|
+
- Venera Melkonyan ([@venmelkonyan](https://github.com/venmelkonyan))
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
# v1.5.0 (Thu Nov 18 2021)
|
|
161
|
+
|
|
162
|
+
:tada: This release contains work from a new contributor! :tada:
|
|
163
|
+
|
|
164
|
+
Thank you, Venera Melkonyan ([@venmelkonyan](https://github.com/venmelkonyan)), for all your work!
|
|
165
|
+
|
|
166
|
+
#### 🚀 Enhancement
|
|
167
|
+
|
|
168
|
+
- Master marketing UI mad 916 [#50](https://github.com/servicetitan/anvil-uikit-contrib/pull/50) ([@venmelkonyan](https://github.com/venmelkonyan))
|
|
169
|
+
|
|
170
|
+
#### Authors: 1
|
|
171
|
+
|
|
172
|
+
- Venera Melkonyan ([@venmelkonyan](https://github.com/venmelkonyan))
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
# v1.4.0 (Wed Oct 13 2021)
|
|
177
|
+
|
|
178
|
+
#### 🚀 Enhancement
|
|
179
|
+
|
|
180
|
+
- [marketing-ui] fix line chart layering and labels positions [#38](https://github.com/servicetitan/anvil-uikit-contrib/pull/38) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
181
|
+
|
|
182
|
+
#### Authors: 1
|
|
183
|
+
|
|
184
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
# v1.3.0 (Wed Oct 06 2021)
|
|
189
|
+
|
|
190
|
+
#### 🚀 Enhancement
|
|
191
|
+
|
|
192
|
+
- [marketing-ui] add loading prop to funnel chart [#35](https://github.com/servicetitan/anvil-uikit-contrib/pull/35) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
193
|
+
|
|
194
|
+
#### Authors: 1
|
|
195
|
+
|
|
196
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
# v1.2.0 (Tue Oct 05 2021)
|
|
201
|
+
|
|
202
|
+
#### 🚀 Enhancement
|
|
203
|
+
|
|
204
|
+
- [marketing-ui] add funnel chart [#32](https://github.com/servicetitan/anvil-uikit-contrib/pull/32) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
205
|
+
|
|
206
|
+
#### Authors: 1
|
|
207
|
+
|
|
208
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
# v1.1.0 (Mon Oct 04 2021)
|
|
213
|
+
|
|
214
|
+
#### 🚀 Enhancement
|
|
215
|
+
|
|
216
|
+
- [marketing-ui] add new ads stats and stat card [#30](https://github.com/servicetitan/anvil-uikit-contrib/pull/30) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
217
|
+
|
|
218
|
+
#### Authors: 1
|
|
219
|
+
|
|
220
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
# v1.0.0 (Thu Sep 30 2021)
|
|
225
|
+
|
|
226
|
+
#### 💥 Breaking Change
|
|
227
|
+
|
|
228
|
+
- [marketing-ui] move hooks to react-hooks package [#28](https://github.com/servicetitan/anvil-uikit-contrib/pull/28) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
229
|
+
|
|
230
|
+
#### Authors: 1
|
|
231
|
+
|
|
232
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
# v0.8.0 (Mon Sep 27 2021)
|
|
237
|
+
|
|
238
|
+
#### 🚀 Enhancement
|
|
239
|
+
|
|
240
|
+
- [marketing-ui] history hooks - fix string enum parser [#24](https://github.com/servicetitan/anvil-uikit-contrib/pull/24) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
241
|
+
|
|
242
|
+
#### Authors: 1
|
|
243
|
+
|
|
244
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
# v0.7.0 (Fri Sep 17 2021)
|
|
249
|
+
|
|
250
|
+
#### 🚀 Enhancement
|
|
251
|
+
|
|
252
|
+
- [marketing-ui] extend history hooks - optional urlParams when all params are not required [#19](https://github.com/servicetitan/anvil-uikit-contrib/pull/19) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
253
|
+
|
|
254
|
+
#### Authors: 1
|
|
255
|
+
|
|
256
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
# v0.6.1 (Wed Sep 15 2021)
|
|
261
|
+
|
|
262
|
+
#### 🐛 Bug Fix
|
|
263
|
+
|
|
264
|
+
- [marketing-ui] fix history hooks [#17](https://github.com/servicetitan/anvil-uikit-contrib/pull/17) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
265
|
+
|
|
266
|
+
#### Authors: 1
|
|
267
|
+
|
|
268
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
# v0.6.0 (Mon Sep 13 2021)
|
|
273
|
+
|
|
274
|
+
#### 🚀 Enhancement
|
|
275
|
+
|
|
276
|
+
- Marketing UI: ImageCropper [#14](https://github.com/servicetitan/anvil-uikit-contrib/pull/14) ([@aschumahua](https://github.com/aschumahua) [@karpoff-titan](https://github.com/karpoff-titan))
|
|
277
|
+
- [marketing-ui] add handlers for parsing url params [#15](https://github.com/servicetitan/anvil-uikit-contrib/pull/15) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
278
|
+
- MAD-826: [marketing-ui] date-range picker and date helpers [#13](https://github.com/servicetitan/anvil-uikit-contrib/pull/13) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
279
|
+
|
|
280
|
+
#### Authors: 2
|
|
281
|
+
|
|
282
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
283
|
+
- Anzar Schumahua ([@aschumahua](https://github.com/aschumahua))
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
# v0.5.0 (Thu Sep 09 2021)
|
|
288
|
+
|
|
289
|
+
#### 🚀 Enhancement
|
|
290
|
+
|
|
291
|
+
- [marketing-ui] add hook for typed parsing url parameters [#11](https://github.com/servicetitan/anvil-uikit-contrib/pull/11) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
292
|
+
|
|
293
|
+
#### Authors: 1
|
|
294
|
+
|
|
295
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
# v0.4.0 (Wed Sep 08 2021)
|
|
300
|
+
|
|
301
|
+
#### 🚀 Enhancement
|
|
302
|
+
|
|
303
|
+
- [marketing-ui] fix history helpers, add hook for query params [#10](https://github.com/servicetitan/anvil-uikit-contrib/pull/10) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
304
|
+
|
|
305
|
+
#### Authors: 1
|
|
306
|
+
|
|
307
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
308
|
+
|
|
309
|
+
---
|
|
310
|
+
|
|
311
|
+
# v0.3.0 (Tue Sep 07 2021)
|
|
312
|
+
|
|
313
|
+
#### 🚀 Enhancement
|
|
314
|
+
|
|
315
|
+
- [marketing-ui] add history helpers [#9](https://github.com/servicetitan/anvil-uikit-contrib/pull/9) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
316
|
+
|
|
317
|
+
#### Authors: 1
|
|
318
|
+
|
|
319
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
# v0.2.0 (Fri Aug 27 2021)
|
|
324
|
+
|
|
325
|
+
#### 🚀 Enhancement
|
|
326
|
+
|
|
327
|
+
- [marketing-ui] fix ads stat descriptions, add init effect hook [#8](https://github.com/servicetitan/anvil-uikit-contrib/pull/8) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
328
|
+
|
|
329
|
+
#### Authors: 1
|
|
330
|
+
|
|
331
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
# v0.1.0 (Fri Aug 20 2021)
|
|
336
|
+
|
|
337
|
+
:tada: This release contains work from a new contributor! :tada:
|
|
338
|
+
|
|
339
|
+
Thank you, Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan)), for all your work!
|
|
340
|
+
|
|
341
|
+
#### 🚀 Enhancement
|
|
342
|
+
|
|
343
|
+
- update marketing ads texts, add some default exports and components [#7](https://github.com/servicetitan/anvil-uikit-contrib/pull/7) ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
344
|
+
|
|
345
|
+
#### ⚠️ Pushed to `master`
|
|
346
|
+
|
|
347
|
+
- Publish ([@xarety](https://github.com/xarety))
|
|
348
|
+
- Convert package to public ([@xarety](https://github.com/xarety))
|
|
349
|
+
|
|
350
|
+
#### Authors: 2
|
|
351
|
+
|
|
352
|
+
- Anton Karpov ([@karpoff-titan](https://github.com/karpoff-titan))
|
|
353
|
+
- Denis Gordeev ([@xarety](https://github.com/xarety))
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const ads_texts_1 = require("../../utils/ads-texts");
|
|
8
|
-
const string_case_1 = require("../../utils/string-case");
|
|
9
|
-
const AdsPerformanceStatCard = props => {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { StatCard } from '../stat/stat-card';
|
|
3
|
+
import { StatExtendedCard } from '../stat/stat-extended-card';
|
|
4
|
+
import { adsStatDescriptions } from '../../utils/ads-texts';
|
|
5
|
+
import { camelCaseToTitleCase } from '../../utils/string-case';
|
|
6
|
+
export const AdsPerformanceStatCard = props => {
|
|
10
7
|
var _a, _b;
|
|
11
|
-
const titleText = (_a = props.title) !== null && _a !== void 0 ? _a :
|
|
12
|
-
const hintText = (_b = props.description) !== null && _b !== void 0 ? _b :
|
|
13
|
-
return (
|
|
8
|
+
const titleText = (_a = props.title) !== null && _a !== void 0 ? _a : camelCaseToTitleCase(props.stat);
|
|
9
|
+
const hintText = (_b = props.description) !== null && _b !== void 0 ? _b : adsStatDescriptions[props.stat];
|
|
10
|
+
return _jsx(StatCard, Object.assign({}, props, { title: titleText, description: hintText }));
|
|
14
11
|
};
|
|
15
|
-
|
|
16
|
-
const AdsPerformanceStatExtendedCard = props => {
|
|
12
|
+
export const AdsPerformanceStatExtendedCard = props => {
|
|
17
13
|
var _a, _b;
|
|
18
|
-
const titleText = (_a = props.title) !== null && _a !== void 0 ? _a :
|
|
19
|
-
const hintText = (_b = props.description) !== null && _b !== void 0 ? _b :
|
|
20
|
-
return (
|
|
14
|
+
const titleText = (_a = props.title) !== null && _a !== void 0 ? _a : camelCaseToTitleCase(props.stat);
|
|
15
|
+
const hintText = (_b = props.description) !== null && _b !== void 0 ? _b : adsStatDescriptions[props.stat];
|
|
16
|
+
return _jsx(StatExtendedCard, Object.assign({}, props, { title: titleText, description: hintText }));
|
|
21
17
|
};
|
|
22
|
-
exports.AdsPerformanceStatExtendedCard = AdsPerformanceStatExtendedCard;
|
|
23
18
|
//# sourceMappingURL=ads-stat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ads-stat.js","sourceRoot":"","sources":["../../../src/components/ads/ads-stat.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ads-stat.js","sourceRoot":"","sources":["../../../src/components/ads/ads-stat.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAiB,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAe,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAO/D,MAAM,CAAC,MAAM,sBAAsB,GAAgC,KAAK,CAAC,EAAE;;IACvE,MAAM,SAAS,GAAG,MAAA,KAAK,CAAC,KAAK,mCAAI,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClE,MAAM,QAAQ,GAAG,MAAA,KAAK,CAAC,WAAW,mCAAI,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEtE,OAAO,KAAC,QAAQ,oBAAK,KAAK,IAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,IAAI,CAAC;AAC5E,CAAC,CAAC;AAQF,MAAM,CAAC,MAAM,8BAA8B,GAAwC,KAAK,CAAC,EAAE;;IACvF,MAAM,SAAS,GAAG,MAAA,KAAK,CAAC,KAAK,mCAAI,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClE,MAAM,QAAQ,GAAG,MAAA,KAAK,CAAC,WAAW,mCAAI,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEtE,OAAO,KAAC,gBAAgB,oBAAK,KAAK,IAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,IAAI,CAAC;AACpF,CAAC,CAAC"}
|
|
@@ -1,44 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.FunnelChart = void 0;
|
|
26
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
-
const react_1 = require("react");
|
|
28
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
29
|
-
const design_system_1 = require("@servicetitan/design-system");
|
|
30
|
-
const tokens_1 = __importDefault(require("@servicetitan/tokens"));
|
|
31
|
-
const formatters_1 = require("../../../../utils/formatters");
|
|
32
|
-
const stat_card_1 = require("../../../stat/stat-card");
|
|
33
|
-
const const_1 = require("../utils/const");
|
|
34
|
-
const funnel_svg_1 = require("./funnel-svg");
|
|
35
|
-
const Styles = __importStar(require("./funnel-chart.module.less"));
|
|
36
|
-
const FunnelChart = ({ sections, format, topSideLength = const_1.defaultTopSideLength, bottomSideLength = const_1.defaultBottomSideLength, popoverContent: PopoverContent, loading, className, }) => {
|
|
37
|
-
const [popoverShown, setPopoverShown] = (0, react_1.useState)(undefined);
|
|
38
|
-
const colors = (0, react_1.useMemo)(() => sections.map(s => s.color), [sections]);
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo, useState } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import { BodyText, Eyebrow, Headline, Icon, Mask, Popover, Stack, StatusLight, Tooltip, } from '@servicetitan/design-system';
|
|
5
|
+
import tokens from '@servicetitan/tokens';
|
|
6
|
+
import { formatValue } from '../../../../utils/formatters';
|
|
7
|
+
import { StatDiff } from '../../../stat/stat-card';
|
|
8
|
+
import { defaultBottomSideLength, defaultTopSideLength } from '../utils/const';
|
|
9
|
+
import { FunnelPyramidSvg } from './funnel-svg';
|
|
10
|
+
import * as Styles from './funnel-chart.module.less';
|
|
11
|
+
export const FunnelChart = ({ sections, format, topSideLength = defaultTopSideLength, bottomSideLength = defaultBottomSideLength, popoverContent: PopoverContent, loading, className, }) => {
|
|
12
|
+
const [popoverShown, setPopoverShown] = useState(undefined);
|
|
13
|
+
const colors = useMemo(() => sections.map(s => s.color), [sections]);
|
|
39
14
|
const hidePopover = () => setPopoverShown(undefined);
|
|
40
|
-
const pyramidTextsStyles =
|
|
41
|
-
return ((
|
|
15
|
+
const pyramidTextsStyles = useMemo(() => ({ left: `${100 - topSideLength}%` }), [topSideLength]);
|
|
16
|
+
return (_jsxs(Mask, Object.assign({ className: classNames('h-100 bg-white border border-radius-2 p-3 of-hidden position-relative', className), active: !!loading }, { children: [_jsx("div", Object.assign({ className: Styles.pyramidWrapper }, { children: _jsx(FunnelPyramidSvg, { colors: colors, topSideLength: topSideLength, bottomSideLength: bottomSideLength }) })), _jsx("div", Object.assign({ className: classNames('d-f flex-column justify-content-around', Styles.pyramidBoxRight), style: pyramidTextsStyles }, { children: sections.map(({ id, title, value, color, prev, textClass, data }, ind) => (_jsx(Stack, Object.assign({ className: Styles.flex1, justifyContent: "center", alignItems: "center", onMouseEnter: () => setPopoverShown(id), onMouseLeave: hidePopover }, { children: _jsxs(Popover, Object.assign({ className: "of-hidden", trigger: _jsx(Headline, Object.assign({ size: "small", className: classNames('m-x-2 m-b-0-i', textClass) }, { children: formatValue(value, format) })), open: popoverShown === id, direction: ind === 0 ? 'lt' : 'lb', padding: "s", width: "auto", portal: true }, { children: [_jsxs(Stack, Object.assign({ alignItems: "center", justifyContent: "flex-start" }, { children: [_jsx(StatusLight, { color: color }), _jsx(BodyText, Object.assign({ bold: true, className: "m-r-half" }, { children: formatValue(value, format) })), _jsx(BodyText, Object.assign({ bold: true, className: "m-r-1" }, { children: title })), _jsx(StatDiff, { value: value, prev: prev, size: "xsmall", format: format })] })), !!PopoverContent && (_jsx(PopoverContent, { id: id, value: value, text: formatValue(value, format), data: data }))] })) }), title))) })), _jsx(Stack, Object.assign({ className: Styles.pyramidBoxLeft, direction: "column" }, { children: sections.map(s => (_jsxs(Stack, Object.assign({ className: Styles.flex1, justifyContent: "flex-start", alignItems: "flex-end" }, { children: [_jsx(Eyebrow, Object.assign({ size: "small", className: classNames(Styles.statTitle, 'm-r-half') }, { children: s.title })), _jsx(Tooltip, Object.assign({ direction: "t", portal: true, text: s.description }, { children: _jsx(Icon, { name: "info", className: "m-r-1", size: "14px", color: tokens.colorNeutral90 }) })), _jsx(StatDiff, { value: s.value, prev: s.prev, size: "xsmall", format: format })] }), s.id))) }))] })));
|
|
42
17
|
};
|
|
43
|
-
exports.FunnelChart = FunnelChart;
|
|
44
18
|
//# sourceMappingURL=funnel-chart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funnel-chart.js","sourceRoot":"","sources":["../../../../../src/components/charts/funnel-chart/components/funnel-chart.tsx"],"names":[],"mappings":"
|
|
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,sBAAsB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD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IACA,EACN,KAAC,KAAK,kBAAC,SAAS,EAAE,MAAM,CAAC,cAAc,EAAE,SAAS,EAAC,QAAQ,gBACtD,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CACf,MAAC,KAAK,kBAEF,SAAS,EAAE,MAAM,CAAC,KAAK,EACvB,cAAc,EAAC,YAAY,EAC3B,UAAU,EAAC,UAAU,iBAErB,KAAC,OAAO,kBAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,gBACpE,CAAC,CAAC,KAAK,IACF,EAEV,KAAC,OAAO,kBAAC,SAAS,EAAC,GAAG,EAAC,MAAM,QAAC,IAAI,EAAE,CAAC,CAAC,WAAW,gBAC7C,KAAC,IAAI,IACD,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,OAAO,EACjB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,MAAM,CAAC,cAAc,GAC9B,IACI,EAEV,KAAC,QAAQ,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,16 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.FunnelPyramidSvg = void 0;
|
|
7
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const react_1 = require("react");
|
|
9
|
-
const tokens_1 = __importDefault(require("@servicetitan/tokens"));
|
|
10
|
-
const const_1 = require("../utils/const");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import tokens from '@servicetitan/tokens';
|
|
4
|
+
import { defaultBottomSideLength, defaultTopSideLength } from '../utils/const';
|
|
11
5
|
const st = (v) => v.toFixed(2);
|
|
12
|
-
const FunnelPyramidSvg = ({ colors, topSideLength =
|
|
13
|
-
const sections =
|
|
6
|
+
export const FunnelPyramidSvg = ({ colors, topSideLength = defaultTopSideLength, bottomSideLength = defaultBottomSideLength, }) => {
|
|
7
|
+
const sections = useMemo(() => {
|
|
14
8
|
if (!colors.length) {
|
|
15
9
|
return [];
|
|
16
10
|
}
|
|
@@ -30,7 +24,7 @@ const FunnelPyramidSvg = ({ colors, topSideLength = const_1.defaultTopSideLength
|
|
|
30
24
|
};
|
|
31
25
|
});
|
|
32
26
|
}, [colors, topSideLength, bottomSideLength]);
|
|
33
|
-
const paths =
|
|
27
|
+
const paths = useMemo(() => {
|
|
34
28
|
if (!sections.length) {
|
|
35
29
|
return [];
|
|
36
30
|
}
|
|
@@ -48,8 +42,7 @@ const FunnelPyramidSvg = ({ colors, topSideLength = const_1.defaultTopSideLength
|
|
|
48
42
|
};
|
|
49
43
|
});
|
|
50
44
|
}, [sections]);
|
|
51
|
-
const lines =
|
|
52
|
-
return ((
|
|
45
|
+
const lines = useMemo(() => sections.slice(1).map((s, ind) => [ind, s.xtr, s.yt]), [sections]);
|
|
46
|
+
return (_jsxs("svg", Object.assign({ width: "100%", height: "100%", preserveAspectRatio: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("svg", Object.assign({ width: "100%", height: "100%", x: "0%", y: "0", viewBox: "0 0 100 100", preserveAspectRatio: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: paths.map(({ key, path, color }) => (_jsx("path", { d: path, fill: color }, key))) })), _jsx("svg", Object.assign({ width: "100%", height: "100%", x: "0", y: "0", viewBox: "0 0 100 100", preserveAspectRatio: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: lines.map(([id, x, y]) => (_jsx("line", { x1: "0", y1: st(y), x2: st(x), y2: st(y), stroke: tokens.colorNeutral60, strokeWidth: 0.5 }, id))) }))] })));
|
|
53
47
|
};
|
|
54
|
-
exports.FunnelPyramidSvg = FunnelPyramidSvg;
|
|
55
48
|
//# sourceMappingURL=funnel-svg.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funnel-svg.js","sourceRoot":"","sources":["../../../../../src/components/charts/funnel-chart/components/funnel-svg.tsx"],"names":[],"mappings":"
|
|
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,sBAAsB,CAAC;AAC1C,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,uBAAuB,GAC7C,EAAE,EAAE;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC1B,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE;YAChB,OAAO,EAAE,CAAC;SACb;QAED,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC;QAC1B,MAAM,KAAK,GAAG,GAAG,GAAG,GAAG,CAAC;QACxB,MAAM,KAAK,GAAG,CAAC,aAAa,GAAG,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACtF,MAAM,OAAO,GAAG,GAAG,GAAG,aAAa,CAAC;QAEpC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,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,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,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const index_1 = require("./index");
|
|
6
|
-
const design_system_1 = require("@servicetitan/design-system");
|
|
7
|
-
exports.default = {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { FunnelChart } from './index';
|
|
3
|
+
import { BodyText } from '@servicetitan/design-system';
|
|
4
|
+
export default {
|
|
8
5
|
title: 'Marketing UI/charts/FunnelChart',
|
|
9
|
-
component:
|
|
6
|
+
component: FunnelChart,
|
|
10
7
|
parameters: {},
|
|
11
8
|
};
|
|
12
|
-
const w = (cb) => () => (
|
|
9
|
+
const w = (cb) => () => _jsx("div", Object.assign({ style: { height: '300px', width: '420px' } }, { children: cb() }));
|
|
13
10
|
const sections3 = () => [
|
|
14
11
|
{
|
|
15
12
|
id: 1,
|
|
@@ -39,9 +36,9 @@ const sections3 = () => [
|
|
|
39
36
|
textClass: 'c-white',
|
|
40
37
|
},
|
|
41
38
|
];
|
|
42
|
-
const CustomPopoverContent = ({ data }) => (data === null || data === void 0 ? void 0 : data.info.length) ? ((
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
const CustomPopoverContent = ({ data }) => (data === null || data === void 0 ? void 0 : data.info.length) ? (_jsx("div", { children: data.info.map(t => (_jsx(BodyText, { children: t }, t))) })) : null;
|
|
40
|
+
export const funnelChart3Sections = w(() => (_jsx(FunnelChart, { format: "percent", sections: sections3() })));
|
|
41
|
+
export const funnelChart4Sections = w(() => (_jsx(FunnelChart, { format: "percent", sections: [
|
|
45
42
|
{
|
|
46
43
|
id: 1,
|
|
47
44
|
color: '#A9D1FF',
|
|
@@ -74,6 +71,6 @@ exports.funnelChart4Sections = w(() => ((0, jsx_runtime_1.jsx)(index_1.FunnelCha
|
|
|
74
71
|
value: 0.22,
|
|
75
72
|
prev: 0.221,
|
|
76
73
|
},
|
|
77
|
-
] }
|
|
78
|
-
|
|
74
|
+
] })));
|
|
75
|
+
export const funnelChartCustomContent = w(() => (_jsx(FunnelChart, { format: "percent", topSideLength: 80, bottomSideLength: 20, sections: sections3(), popoverContent: CustomPopoverContent })));
|
|
79
76
|
//# sourceMappingURL=funnel-chart.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funnel-chart.stories.js","sourceRoot":"","sources":["../../../../src/components/charts/funnel-chart/funnel-chart.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"funnel-chart.stories.js","sourceRoot":"","sources":["../../../../src/components/charts/funnel-chart/funnel-chart.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAqD,MAAM,SAAS,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAEvD,eAAe;IACX,KAAK,EAAE,iCAAiC;IACxC,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,EAAE;CACjB,CAAC;AACF,MAAM,CAAC,GAAG,CAAC,EAAsB,EAAE,EAAE,CAAC,GAAG,EAAE,CACvC,4BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,gBAAG,EAAE,EAAE,IAAO,CAAC;AAElE,MAAM,SAAS,GAAG,GAA6C,EAAE,CAAC;IAC9D;QACI,EAAE,EAAE,CAAC;QACL,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,SAAS;QAChB,WAAW,EAAE,oBAAo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WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACb;QACD;YACI,EAAE,EAAE,CAAC;YACL,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACb;QACD;YACI,EAAE,EAAE,CAAC;YACL,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACb;QACD;YACI,EAAE,EAAE,CAAC;YACL,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,KAAK;SACd;KACJ,GACH,CACL,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAC5C,KAAC,WAAW,IACR,MAAM,EAAC,SAAS,EAChB,aAAa,EAAE,EAAE,EACjB,gBAAgB,EAAE,EAAE,EACpB,QAAQ,EAAE,SAAS,EAAE,EACrB,cAAc,EAAE,oBAAoB,GACtC,CACL,CAAC,CAAC"}
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.FunnelChart = void 0;
|
|
14
|
-
var funnel_chart_1 = require("./components/funnel-chart");
|
|
15
|
-
Object.defineProperty(exports, "FunnelChart", { enumerable: true, get: function () { return funnel_chart_1.FunnelChart; } });
|
|
16
|
-
__exportStar(require("./utils/interface"), exports);
|
|
1
|
+
export { FunnelChart } from './components/funnel-chart';
|
|
2
|
+
export * from './utils/interface';
|
|
17
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/charts/funnel-chart/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/charts/funnel-chart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,cAAc,mBAAmB,CAAC"}
|