@deskpro/deskpro-ui 0.1.6 → 0.1.10

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.
@@ -0,0 +1,156 @@
1
+ @font-face {
2
+ font-family: "DpCustomIcons";
3
+ src: url("./fonts/DpCustomIcons/DpCustomIcons.eot?e0234406ba682cede64cde06c7a4439c#iefix") format("embedded-opentype"),
4
+ url("./fonts/DpCustomIcons/DpCustomIcons.woff2?e0234406ba682cede64cde06c7a4439c") format("woff2"),
5
+ url("./fonts/DpCustomIcons/DpCustomIcons.woff?e0234406ba682cede64cde06c7a4439c") format("woff");
6
+ }
7
+
8
+ i[class^="dp-custom-icon-"]:before, i[class*=" dp-custom-icon-"]:before {
9
+ font-family: DpCustomIcons !important;
10
+ font-style: normal;
11
+ font-weight: normal !important;
12
+ font-variant: normal;
13
+ text-transform: none;
14
+ line-height: 1;
15
+ -webkit-font-smoothing: antialiased;
16
+ -moz-osx-font-smoothing: grayscale;
17
+ }
18
+
19
+ .dp-custom-icon-active-call:before {
20
+ content: "\f101";
21
+ }
22
+ .dp-custom-icon-admin:before {
23
+ content: "\f102";
24
+ }
25
+ .dp-custom-icon-agent:before {
26
+ content: "\f103";
27
+ }
28
+ .dp-custom-icon-api:before {
29
+ content: "\f104";
30
+ }
31
+ .dp-custom-icon-apps-zapier:before {
32
+ content: "\f105";
33
+ }
34
+ .dp-custom-icon-arrow:before {
35
+ content: "\f106";
36
+ }
37
+ .dp-custom-icon-column-width:before {
38
+ content: "\f107";
39
+ }
40
+ .dp-custom-icon-community:before {
41
+ content: "\f108";
42
+ }
43
+ .dp-custom-icon-crown:before {
44
+ content: "\f109";
45
+ }
46
+ .dp-custom-icon-deskpro:before {
47
+ content: "\f10a";
48
+ }
49
+ .dp-custom-icon-dot:before {
50
+ content: "\f10b";
51
+ }
52
+ .dp-custom-icon-drag:before {
53
+ content: "\f10c";
54
+ }
55
+ .dp-custom-icon-dual-view:before {
56
+ content: "\f10d";
57
+ }
58
+ .dp-custom-icon-email-primary:before {
59
+ content: "\f10e";
60
+ }
61
+ .dp-custom-icon-enter:before {
62
+ content: "\f10f";
63
+ }
64
+ .dp-custom-icon-export-alt:before {
65
+ content: "\f110";
66
+ }
67
+ .dp-custom-icon-export:before {
68
+ content: "\f111";
69
+ }
70
+ .dp-custom-icon-follow-up:before {
71
+ content: "\f112";
72
+ }
73
+ .dp-custom-icon-glossary:before {
74
+ content: "\f113";
75
+ }
76
+ .dp-custom-icon-google-analytics:before {
77
+ content: "\f114";
78
+ }
79
+ .dp-custom-icon-grip:before {
80
+ content: "\f115";
81
+ }
82
+ .dp-custom-icon-hang-up:before {
83
+ content: "\f116";
84
+ }
85
+ .dp-custom-icon-helping-hand:before {
86
+ content: "\f117";
87
+ }
88
+ .dp-custom-icon-im-send:before {
89
+ content: "\f118";
90
+ }
91
+ .dp-custom-icon-im:before {
92
+ content: "\f119";
93
+ }
94
+ .dp-custom-icon-inbound-call:before {
95
+ content: "\f11a";
96
+ }
97
+ .dp-custom-icon-kanban-view:before {
98
+ content: "\f11b";
99
+ }
100
+ .dp-custom-icon-level-down:before {
101
+ content: "\f11c";
102
+ }
103
+ .dp-custom-icon-linked-ticket:before {
104
+ content: "\f11d";
105
+ }
106
+ .dp-custom-icon-location-arrow:before {
107
+ content: "\f11e";
108
+ }
109
+ .dp-custom-icon-merge:before {
110
+ content: "\f11f";
111
+ }
112
+ .dp-custom-icon-merge2:before {
113
+ content: "\f120";
114
+ }
115
+ .dp-custom-icon-missed-call:before {
116
+ content: "\f121";
117
+ }
118
+ .dp-custom-icon-mobile-rotate:before {
119
+ content: "\f122";
120
+ }
121
+ .dp-custom-icon-organization-circle:before {
122
+ content: "\f123";
123
+ }
124
+ .dp-custom-icon-outbound-call:before {
125
+ content: "\f124";
126
+ }
127
+ .dp-custom-icon-read:before {
128
+ content: "\f125";
129
+ }
130
+ .dp-custom-icon-record:before {
131
+ content: "\f126";
132
+ }
133
+ .dp-custom-icon-sent:before {
134
+ content: "\f127";
135
+ }
136
+ .dp-custom-icon-sip-address:before {
137
+ content: "\f128";
138
+ }
139
+ .dp-custom-icon-sort:before {
140
+ content: "\f129";
141
+ }
142
+ .dp-custom-icon-transfer-queue:before {
143
+ content: "\f12a";
144
+ }
145
+ .dp-custom-icon-triangle:before {
146
+ content: "\f12b";
147
+ }
148
+ .dp-custom-icon-warm-add:before {
149
+ content: "\f12c";
150
+ }
151
+ .dp-custom-icon-warm-transfer:before {
152
+ content: "\f12d";
153
+ }
154
+ .dp-custom-icon-webhook:before {
155
+ content: "\f12e";
156
+ }
@@ -0,0 +1,248 @@
1
+ .flatpickr-weekdays {
2
+ background: #ffffff;
3
+ color: #1c3e55;
4
+ }
5
+ .flatpickr-months .flatpickr-month {
6
+ background: #ffffff;
7
+ color: #1c3e55;
8
+ }
9
+
10
+ .flatpickr-current-month .flatpickr-monthDropdown-months {
11
+ background: #ffffff;
12
+ }
13
+
14
+ span.flatpickr-weekday {
15
+ background: none;
16
+ }
17
+
18
+ .flatpickr-day.selected,
19
+ .flatpickr-day.startRange,
20
+ .flatpickr-day.endRange,
21
+ .flatpickr-day.selected.inRange,
22
+ .flatpickr-day.startRange.inRange,
23
+ .flatpickr-day.endRange.inRange,
24
+ .flatpickr-day.selected:focus,
25
+ .flatpickr-day.startRange:focus,
26
+ .flatpickr-day.endRange:focus,
27
+ .flatpickr-day.selected:hover,
28
+ .flatpickr-day.startRange:hover,
29
+ .flatpickr-day.endRange:hover,
30
+ .flatpickr-day.selected.prevMonthDay,
31
+ .flatpickr-day.startRange.prevMonthDay,
32
+ .flatpickr-day.endRange.prevMonthDay,
33
+ .flatpickr-day.selected.nextMonthDay,
34
+ .flatpickr-day.startRange.nextMonthDay,
35
+ .flatpickr-day.endRange.nextMonthDay {
36
+ background: #1c3e55;
37
+ border-color: #1c3e55;
38
+ }
39
+
40
+ .flatpickr-months .flatpickr-prev-month:hover svg,
41
+ .flatpickr-months .flatpickr-next-month:hover svg {
42
+ fill: #1c3e55;
43
+ }
44
+
45
+ .flatpickr-calendar.arrowTop:before {
46
+ border-bottom-color: #ffffff;
47
+ }
48
+
49
+ .notyf__message {
50
+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
51
+ font-size: 12px;
52
+ }
53
+
54
+ /* Rubik */
55
+ @font-face {
56
+ font-family: "Rubik";
57
+ src: url("./fonts/Rubik/Rubik-Regular.ttf") format("truetype");
58
+ font-style: normal;
59
+ font-weight: normal;
60
+ font-display: block;
61
+ }
62
+
63
+ @font-face {
64
+ font-family: "Rubik";
65
+ src: url("./fonts/Rubik/Rubik-Medium.ttf") format("truetype");
66
+ font-style: normal;
67
+ font-weight: 500;
68
+ font-display: block;
69
+ }
70
+
71
+ /* Noto Sans */
72
+ @font-face {
73
+ font-family: "Noto Sans";
74
+ src: url("./fonts/NotoSans/NotoSans-Regular.ttf") format("truetype");
75
+ font-style: normal;
76
+ font-weight: normal;
77
+ font-display: block;
78
+ }
79
+
80
+ @font-face {
81
+ font-family: "Noto Sans";
82
+ src: url("./fonts/NotoSans/NotoSans-Italic.ttf") format("truetype");
83
+ font-style: italic;
84
+ font-weight: normal;
85
+ font-display: block;
86
+ }
87
+
88
+ @font-face {
89
+ font-family: "Noto Sans";
90
+ src: url("./fonts/NotoSans/NotoSans-Medium.ttf") format("truetype");
91
+ font-style: normal;
92
+ font-weight: 500;
93
+ font-display: block;
94
+ }
95
+
96
+ @font-face {
97
+ font-family: "Noto Sans";
98
+ src: url("./fonts/NotoSans/NotoSans-MediumItalic.ttf") format("truetype");
99
+ font-style: italic;
100
+ font-weight: 500;
101
+ font-display: block;
102
+ }
103
+
104
+ @font-face {
105
+ font-family: "Noto Sans";
106
+ src: url("./fonts/NotoSans/NotoSans-SemiBold.ttf") format("truetype");
107
+ font-style: normal;
108
+ font-weight: 600;
109
+ font-display: block;
110
+ }
111
+
112
+ @font-face {
113
+ font-family: "Noto Sans";
114
+ src: url("./fonts/NotoSans/NotoSans-SemiBoldItalic.ttf") format("truetype");
115
+ font-style: italic;
116
+ font-weight: 600;
117
+ font-display: block;
118
+ }
119
+
120
+ @font-face {
121
+ font-family: "Noto Sans";
122
+ src: url("./fonts/NotoSans/NotoSans-Bold.ttf") format("truetype");
123
+ font-style: normal;
124
+ font-weight: 700;
125
+ font-display: block;
126
+ }
127
+
128
+ @font-face {
129
+ font-family: "Noto Sans";
130
+ src: url("./fonts/NotoSans/NotoSans-BoldItalic.ttf") format("truetype");
131
+ font-style: italic;
132
+ font-weight: 700;
133
+ font-display: block;
134
+ }
135
+
136
+ /* Source Code Pro */
137
+ @font-face {
138
+ font-family: "Source Code Pro";
139
+ src: url("./fonts/SourceCodePro/SourceCodePro-Regular.ttf") format("truetype");
140
+ font-style: normal;
141
+ font-weight: normal;
142
+ font-display: block;
143
+ }
144
+
145
+ @font-face {
146
+ font-family: "Source Code Pro";
147
+ src: url("./fonts/SourceCodePro/SourceCodePro-It.ttf") format("truetype");
148
+ font-style: italic;
149
+ font-weight: normal;
150
+ font-display: block;
151
+ }
152
+
153
+ @font-face {
154
+ font-family: "Source Code Pro";
155
+ src: url("./fonts/SourceCodePro/SourceCodePro-Bold.ttf") format("truetype");
156
+ font-style: normal;
157
+ font-weight: 700;
158
+ font-display: block;
159
+ }
160
+
161
+ @font-face {
162
+ font-family: "Source Code Pro";
163
+ src: url("./fonts/SourceCodePro/SourceCodePro-BoldIt.ttf") format("truetype");
164
+ font-style: italic;
165
+ font-weight: 700;
166
+ font-display: block;
167
+ }
168
+
169
+ /** Lato **/
170
+ @font-face {
171
+ font-family: "Lato";
172
+ src: url("./fonts/Lato/Lato-BoldItalic.woff2") format("woff2"),
173
+ url("./fonts/Lato/Lato-BoldItalic.woff") format("woff");
174
+ font-weight: bold;
175
+ font-style: italic;
176
+ }
177
+
178
+ @font-face {
179
+ font-family: "Lato Hairline";
180
+ src: url("./fonts/Lato/Lato-HairlineItalic.woff2") format("woff2"),
181
+ url("./fonts/Lato/Lato-HairlineItalic.woff") format("woff");
182
+ font-weight: 300;
183
+ font-style: italic;
184
+ }
185
+
186
+ @font-face {
187
+ font-family: "Lato";
188
+ src: url("./fonts/Lato/Lato-BlackItalic.woff2") format("woff2"),
189
+ url("./fonts/Lato/Lato-BlackItalic.woff") format("woff");
190
+ font-weight: 900;
191
+ font-style: italic;
192
+ }
193
+
194
+ @font-face {
195
+ font-family: "Lato";
196
+ src: url("./fonts/Lato/Lato-LightItalic.woff2") format("woff2"),
197
+ url("./fonts/Lato/Lato-LightItalic.woff") format("woff");
198
+ font-weight: 300;
199
+ font-style: italic;
200
+ }
201
+
202
+ @font-face {
203
+ font-family: "Lato";
204
+ src: url("./fonts/Lato/Lato-Italic.woff2") format("woff2"),
205
+ url("./fonts/Lato/Lato-Italic.woff") format("woff");
206
+ font-weight: normal;
207
+ font-style: italic;
208
+ }
209
+
210
+ @font-face {
211
+ font-family: "Lato";
212
+ src: url("./fonts/Lato/Lato-Bold.woff2") format("woff2"),
213
+ url("./fonts/Lato/Lato-Bold.woff") format("woff");
214
+ font-weight: bold;
215
+ font-style: normal;
216
+ }
217
+
218
+ @font-face {
219
+ font-family: "Lato";
220
+ src: url("./fonts/Lato/Lato-Black.woff2") format("woff2"),
221
+ url("./fonts/Lato/Lato-Black.woff") format("woff");
222
+ font-weight: 900;
223
+ font-style: normal;
224
+ }
225
+
226
+ @font-face {
227
+ font-family: "Lato";
228
+ src: url("./fonts/Lato/Lato-Light.woff2") format("woff2"),
229
+ url("./fonts/Lato/Lato-Light.woff") format("woff");
230
+ font-weight: 300;
231
+ font-style: normal;
232
+ }
233
+
234
+ @font-face {
235
+ font-family: "Lato";
236
+ src: url("./fonts/Lato/Lato-Regular.woff2") format("woff2"),
237
+ url("./fonts/Lato/Lato-Regular.woff") format("woff");
238
+ font-weight: normal;
239
+ font-style: normal;
240
+ }
241
+
242
+ @font-face {
243
+ font-family: "Lato Hairline";
244
+ src: url("./fonts/Lato/Lato-Hairline.woff2") format("woff2"),
245
+ url("./fonts/Lato/Lato-Hairline.woff") format("woff");
246
+ font-weight: 300;
247
+ font-style: normal;
248
+ }
@@ -36,7 +36,7 @@ export var AttachmentTag = forwardRef(function AttachmentTag(_a, ref) {
36
36
  React.createElement(Size, null, displayFileSize)),
37
37
  match({ withClose: withClose, isLoading: isLoading })
38
38
  .with({ isLoading: true }, function () { return React.createElement(InlineLoadingSpinner, null); })
39
- .with({ withClose: true }, function () { return (React.createElement(IconButton, { minimal: true, onClick: onClose, icon: faTimes })); })
39
+ .with({ withClose: true }, function () { return (React.createElement(IconButton, { role: "button", "aria-label": "close-attachment", minimal: true, onClick: onClose, icon: faTimes })); })
40
40
  .otherwise(function () { return null; })));
41
41
  });
42
42
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
@@ -6,7 +6,7 @@ import { headingStyles } from "../Typography";
6
6
  import { dpNameProp } from "../../utils";
7
7
  export var TabWrapperCSS = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
8
8
  var active = _a.active, isTicketHistory = _a.isTicketHistory;
9
- return active && isTicketHistory ? headingStyles.h1 : headingStyles.h2;
9
+ return (active && isTicketHistory ? headingStyles.h1 : headingStyles.h2);
10
10
  });
11
11
  var TabWrapper = styled(Stack)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-family: ", ";\n font-style: normal;\n font-weight: ", ";\n font-size: 11px;\n line-height: 110%;\n cursor: default;\n align-items: center;\n justify-content: center;\n pointer-events: ", ";\n color: ", ";\n border-bottom: ", ";\n padding: 0 3px 6px 3px;\n\n :hover {\n color: ", ";\n cursor: pointer;\n }\n\n ", ";\n\n ", ";\n"], ["\n font-family: ", ";\n font-style: normal;\n font-weight: ", ";\n font-size: 11px;\n line-height: 110%;\n cursor: default;\n align-items: center;\n justify-content: center;\n pointer-events: ", ";\n color: ", ";\n border-bottom: ", ";\n padding: 0 3px 6px 3px;\n\n :hover {\n color: ", ";\n cursor: pointer;\n }\n\n ", ";\n\n ", ";\n"])), function (_a) {
12
12
  var theme = _a.theme;
@@ -27,7 +27,7 @@ var TabWrapper = styled(Stack)(templateObject_4 || (templateObject_4 = __makeTem
27
27
  return props.active ? "solid 2px ".concat(props.theme.colors.brandPrimary) : "none";
28
28
  }, function (props) { return props.theme.colors.grey100; }, function (_a) {
29
29
  var active = _a.active, tabStyle = _a.tabStyle, theme = _a.theme;
30
- return tabStyle === "button" && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-grow: 1;\n border: 1px solid ", ";\n border-bottom: solid 1px ", ";\n border-right-width: 0;\n\n :first-of-type {\n border-left-width: 0;\n }\n\n padding: 7px;\n\n ", ";\n "], ["\n flex-grow: 1;\n border: 1px solid ", ";\n border-bottom: solid 1px ", ";\n border-right-width: 0;\n\n :first-of-type {\n border-left-width: 0;\n }\n\n padding: 7px;\n\n ", ";\n "])), theme.colors.grey20, active ? theme.colors.brandPrimary : theme.colors.grey20, active && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), theme.colors.brandShade20));
30
+ return tabStyle === "button" && css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-grow: 1;\n border: 1px solid ", ";\n border-bottom: solid 1px\n ", ";\n border-right-width: 0;\n\n :first-of-type {\n border-left-width: 0;\n }\n\n padding: 7px;\n\n ", ";\n "], ["\n flex-grow: 1;\n border: 1px solid ", ";\n border-bottom: solid 1px\n ", ";\n border-right-width: 0;\n\n :first-of-type {\n border-left-width: 0;\n }\n\n padding: 7px;\n\n ", ";\n "])), theme.colors.grey20, active ? theme.colors.brandPrimary : theme.colors.grey20, active && css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n "], ["\n background-color: ", ";\n "])), theme.colors.brandShade20));
31
31
  }, TabWrapperCSS);
32
32
  var StyledTabBar = styled(Stack)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-bottom: ", ";\n width: 100%;\n padding: ", ";\n"], ["\n border-bottom: ", ";\n width: 100%;\n padding: ", ";\n"])), function (_a) {
33
33
  var tabStyle = _a.tabStyle, theme = _a.theme;
@@ -39,11 +39,11 @@ var StyledTabBar = styled(Stack)(templateObject_5 || (templateObject_5 = __makeT
39
39
  export function TabbedSectionTabs(_a) {
40
40
  var tabs = _a.tabs, activeTab = _a.activeTab, onTabChange = _a.onTabChange, children = _a.children, tabsWrapperStyles = _a.tabsWrapperStyles, rightElement = _a.rightElement, _b = _a.tabType, tabType = _b === void 0 ? "tab" : _b, className = _a.className;
41
41
  return (React.createElement(React.Fragment, null,
42
- React.createElement(StyledTabBar, __assign({}, dpNameProp("TabbedSectionTabs"), { style: tabsWrapperStyles, tabStyle: tabType, justify: "space-around", className: className }),
42
+ React.createElement(StyledTabBar, __assign({}, dpNameProp("TabbedSectionTabs"), { style: tabsWrapperStyles, tabStyle: tabType, justify: "space-around", className: className, role: "tablist" }),
43
43
  tabs.map(function (tab, index) {
44
44
  return (React.createElement(TabWrapper, { key: index, disabled: tab.disabled, active: tab.id === activeTab, onClick: function () {
45
45
  onTabChange(tab);
46
- }, tabStyle: tabType }, tab.title));
46
+ }, tabStyle: tabType, role: "tab", "aria-selected": tab.id === activeTab, "aria-controls": tab.controls }, tab.title));
47
47
  }),
48
48
  rightElement),
49
49
  children));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deskpro/deskpro-ui",
3
- "version": "0.1.6",
3
+ "version": "0.1.10",
4
4
  "description": "UI components used in Deskpro",
5
5
  "author": "Deskpro",
6
6
  "license": "BSD-3-Clause",