@deskpro/deskpro-ui 0.2.0 → 1.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/dist/cjs/components/AttachmentTag/AttachmentTag.d.ts +0 -1
- package/dist/cjs/components/AttachmentTag/AttachmentTag.d.ts.map +1 -1
- package/dist/cjs/components/AttachmentTag/LoadingAttachment.d.ts +0 -1
- package/dist/cjs/components/AttachmentTag/LoadingAttachment.d.ts.map +1 -1
- package/dist/cjs/components/Avatar/AvatarGroup.d.ts +0 -1
- package/dist/cjs/components/Avatar/AvatarGroup.d.ts.map +1 -1
- package/dist/cjs/components/Button/Button.d.ts +1 -2
- package/dist/cjs/components/Button/Button.d.ts.map +1 -1
- package/dist/cjs/components/Button/styles.d.ts +1 -0
- package/dist/cjs/components/Button/styles.d.ts.map +1 -1
- package/dist/cjs/components/Button/styles.js +35 -32
- package/dist/cjs/components/Button/types.d.ts +0 -1
- package/dist/cjs/components/Button/types.d.ts.map +1 -1
- package/dist/cjs/components/CCUserTag/CCUserTag.d.ts +0 -1
- package/dist/cjs/components/CCUserTag/CCUserTag.d.ts.map +1 -1
- package/dist/cjs/components/CCUserTag/CCUserTag.js +9 -11
- package/dist/cjs/components/Card/AppCard.d.ts +0 -1
- package/dist/cjs/components/Card/AppCard.d.ts.map +1 -1
- package/dist/cjs/components/Card/CardKanban.d.ts +0 -1
- package/dist/cjs/components/Card/CardKanban.d.ts.map +1 -1
- package/dist/cjs/components/Card/CardList.d.ts +0 -1
- package/dist/cjs/components/Card/CardList.d.ts.map +1 -1
- package/dist/cjs/components/Card/RowCard.d.ts +0 -1
- package/dist/cjs/components/Card/RowCard.d.ts.map +1 -1
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/cjs/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/cjs/components/ColorInput/ColorInput.d.ts +0 -1
- package/dist/cjs/components/ColorInput/ColorInput.d.ts.map +1 -1
- package/dist/cjs/components/DatePicker/DatePicker.d.ts +0 -1
- package/dist/cjs/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/cjs/components/DatePicker/styles.d.ts +0 -1
- package/dist/cjs/components/DatePicker/styles.d.ts.map +1 -1
- package/dist/cjs/components/Dropdown/Dropdown.d.ts +0 -1
- package/dist/cjs/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/cjs/components/Dropdown/DropdownResetButton.d.ts +0 -2
- package/dist/cjs/components/Dropdown/DropdownResetButton.d.ts.map +1 -1
- package/dist/cjs/components/Dropdown/styles.d.ts +0 -2
- package/dist/cjs/components/Dropdown/styles.d.ts.map +1 -1
- package/dist/cjs/components/Dropdown/types.d.ts +0 -1
- package/dist/cjs/components/Dropdown/types.d.ts.map +1 -1
- package/dist/cjs/components/FlagImg/FlagImg.d.ts +0 -1
- package/dist/cjs/components/FlagImg/FlagImg.d.ts.map +1 -1
- package/dist/cjs/components/Formik/FormikFastField.d.ts +0 -1
- package/dist/cjs/components/Formik/FormikFastField.d.ts.map +1 -1
- package/dist/cjs/components/Icon/DeskproCustomIcon.d.ts +0 -1
- package/dist/cjs/components/Icon/DeskproCustomIcon.d.ts.map +1 -1
- package/dist/cjs/components/Icon/HeroIcon.d.ts +0 -1
- package/dist/cjs/components/Icon/HeroIcon.d.ts.map +1 -1
- package/dist/cjs/components/Icon/Icon.d.ts +0 -2
- package/dist/cjs/components/Icon/Icon.d.ts.map +1 -1
- package/dist/cjs/components/Infinite/ObservedDiv.d.ts +0 -1
- package/dist/cjs/components/Infinite/ObservedDiv.d.ts.map +1 -1
- package/dist/cjs/components/Input/Input.d.ts +0 -1
- package/dist/cjs/components/Input/Input.d.ts.map +1 -1
- package/dist/cjs/components/Label/Label.d.ts +0 -1
- package/dist/cjs/components/Label/Label.d.ts.map +1 -1
- package/dist/cjs/components/LabelTag/Tag.d.ts +0 -1
- package/dist/cjs/components/LabelTag/Tag.d.ts.map +1 -1
- package/dist/cjs/components/LabelTag/TagCircle.d.ts +0 -1
- package/dist/cjs/components/LabelTag/TagCircle.d.ts.map +1 -1
- package/dist/cjs/components/Menu/Menu.d.ts +0 -1
- package/dist/cjs/components/Menu/Menu.d.ts.map +1 -1
- package/dist/cjs/components/NonIdealState/styles.d.ts +0 -1
- package/dist/cjs/components/NonIdealState/styles.d.ts.map +1 -1
- package/dist/cjs/components/OptionTag/OptionTag.d.ts +0 -1
- package/dist/cjs/components/OptionTag/OptionTag.d.ts.map +1 -1
- package/dist/cjs/components/Pagination/Pagination.d.ts +0 -2
- package/dist/cjs/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/cjs/components/Pill/UrgencyCircle.d.ts +0 -1
- package/dist/cjs/components/Pill/UrgencyCircle.d.ts.map +1 -1
- package/dist/cjs/components/Radio/Radio.d.ts +0 -1
- package/dist/cjs/components/Radio/Radio.d.ts.map +1 -1
- package/dist/cjs/components/SandboxHtml/SandboxHtml.d.ts +0 -1
- package/dist/cjs/components/SandboxHtml/SandboxHtml.d.ts.map +1 -1
- package/dist/cjs/components/Scrollbar/Scrollbar.d.ts +2 -0
- package/dist/cjs/components/Scrollbar/Scrollbar.d.ts.map +1 -1
- package/dist/cjs/components/Select/Select.d.ts +0 -1
- package/dist/cjs/components/Select/Select.d.ts.map +1 -1
- package/dist/cjs/components/Spinner/Spinner.d.ts +0 -1
- package/dist/cjs/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/cjs/components/TabBar/TabBar.d.ts +0 -1
- package/dist/cjs/components/TabBar/TabBar.d.ts.map +1 -1
- package/dist/cjs/components/TabbedSection/Tabs.d.ts +0 -1
- package/dist/cjs/components/TabbedSection/Tabs.d.ts.map +1 -1
- package/dist/cjs/components/Tabs/Tabs.d.ts +0 -1
- package/dist/cjs/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/cjs/components/TextArea/TextArea.d.ts +0 -1
- package/dist/cjs/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/cjs/components/Toggle/Toggle.d.ts +0 -1
- package/dist/cjs/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.d.ts +0 -1
- package/dist/cjs/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/cjs/layout/Stack/Spacer.d.ts +0 -1
- package/dist/cjs/layout/Stack/Spacer.d.ts.map +1 -1
- package/dist/cjs/layout/Stack/ToolbarStack.d.ts +11 -1054
- package/dist/cjs/layout/Stack/ToolbarStack.d.ts.map +1 -1
- package/dist/cjs/structure/AppSidebar/AppSidebar.d.ts +0 -1
- package/dist/cjs/structure/AppSidebar/AppSidebar.d.ts.map +1 -1
- package/dist/cjs/structure/AppSidebar/index.d.ts +0 -1
- package/dist/cjs/structure/AppSidebar/index.d.ts.map +1 -1
- package/dist/cjs/style/index.d.ts +1 -0
- package/dist/cjs/style/index.d.ts.map +1 -1
- package/dist/cjs/style/index.js +4 -1
- package/dist/cjs/style/theme/ThemeProvider.d.ts +10 -0
- package/dist/cjs/style/theme/ThemeProvider.d.ts.map +1 -0
- package/dist/cjs/style/theme/ThemeProvider.js +11 -0
- package/dist/cjs/testing/providers.d.ts.map +1 -1
- package/dist/cjs/testing/providers.js +2 -3
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/utils/events/isRightClick.d.ts +0 -1
- package/dist/cjs/utils/events/isRightClick.d.ts.map +1 -1
- package/dist/esm/components/Button/styles.js +34 -31
- package/dist/esm/components/CCUserTag/CCUserTag.js +10 -12
- package/dist/esm/style/index.js +1 -0
- package/dist/esm/style/theme/ThemeProvider.js +5 -0
- package/dist/esm/testing/providers.js +1 -2
- package/package.json +60 -50
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isRightClick.d.ts","sourceRoot":"","sources":["../../../../src/utils/events/isRightClick.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isRightClick.d.ts","sourceRoot":"","sources":["../../../../src/utils/events/isRightClick.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,YAAY,MAAO,gBAAgB,CAAC,OAAO,EAAE,UAAU,CAAC,YASpE,CAAC"}
|
|
@@ -16,7 +16,7 @@ export var buttonSmall = css(templateObject_5 || (templateObject_5 = __makeTempl
|
|
|
16
16
|
export var buttonTiny = css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n height: 16px;\n min-height: 16px;\n max-height: 16px;\n min-width: 28px;\n justify-content: center;\n padding: 1px 2px;\n ", " {\n ", ";\n }\n\n ", " {\n ", ";\n }\n"], ["\n height: 16px;\n min-height: 16px;\n max-height: 16px;\n min-width: 28px;\n justify-content: center;\n padding: 1px 2px;\n ", " {\n ", ";\n }\n\n ", " {\n ", ";\n }\n"])), ButtonText, paragraphStyled.p11, Icon, paragraphStyled.p11);
|
|
17
17
|
export var iconButtonBase = css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border-radius: 50%;\n justify-content: center;\n ", " {\n ", "\n }\n"], ["\n border-radius: 50%;\n justify-content: center;\n ", " {\n ", "\n }\n"])), Icon, paragraphStyled.p1);
|
|
18
18
|
export var iconButtonSmall = css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n border-radius: 4px;\n padding: 3px;\n height: 20px;\n min-height: 20px;\n max-height: 20px;\n width: 20px;\n ", " {\n ", ";\n }\n\n ", " {\n ", "\n }\n\n &:hover,\n &:active,\n &:focus {\n ", " {\n color: inherit;\n }\n }\n"], ["\n border-radius: 4px;\n padding: 3px;\n height: 20px;\n min-height: 20px;\n max-height: 20px;\n width: 20px;\n ", " {\n ", ";\n }\n\n ", " {\n ", "\n }\n\n &:hover,\n &:active,\n &:focus {\n ", " {\n color: inherit;\n }\n }\n"])), ButtonText, paragraphStyled.p11, Icon, paragraphStyled.p8, Icon);
|
|
19
|
-
export var iconMinimalActive = css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n color: ", ";\n box-shadow: none;\n background-color: transparent;\n border-color: transparent;\n"], ["\n color: ", ";\n box-shadow: none;\n background-color: transparent;\n border-color: transparent;\n"])), function (props) { return props.theme.colors.brandShade100; });
|
|
19
|
+
export var iconMinimalActive = css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n color: ", ";\n box-shadow: none;\n background-color: transparent;\n border-color: transparent;\n outline: none;\n"], ["\n color: ", ";\n box-shadow: none;\n background-color: transparent;\n border-color: transparent;\n outline: none;\n"])), function (props) { return props.theme.colors.brandShade100; });
|
|
20
20
|
export var iconButtonMinimal = css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n padding: 0;\n height: 16px;\n min-height: 16px;\n max-height: 16px;\n width: 16px;\n color: ", ";\n background-color: transparent;\n border-color: transparent;\n box-shadow: none;\n\n :hover {\n color: ", ";\n box-shadow: none;\n background-color: transparent;\n border-color: transparent;\n }\n\n :active,\n :focus {\n ", ";\n }\n\n :disabled {\n box-shadow: none;\n background-color: transparent;\n border-color: transparent;\n color: ", ";\n }\n\n ", " {\n ", "\n }\n"], ["\n padding: 0;\n height: 16px;\n min-height: 16px;\n max-height: 16px;\n width: 16px;\n color: ", ";\n background-color: transparent;\n border-color: transparent;\n box-shadow: none;\n\n :hover {\n color: ", ";\n box-shadow: none;\n background-color: transparent;\n border-color: transparent;\n }\n\n :active,\n :focus {\n ", ";\n }\n\n :disabled {\n box-shadow: none;\n background-color: transparent;\n border-color: transparent;\n color: ", ";\n }\n\n ", " {\n ", "\n }\n"])), function (props) { return props.theme.colors.grey40; }, function (props) { return props.theme.colors.brandShade80; }, iconMinimalActive, function (props) { return props.theme.colors.grey20; }, Icon, headingStyles.h0);
|
|
21
21
|
// ------- BASEs ---------
|
|
22
22
|
// Primary ---------
|
|
@@ -36,15 +36,16 @@ var buttonMinimalDisabled = css(templateObject_17 || (templateObject_17 = __make
|
|
|
36
36
|
var theme = _a.theme;
|
|
37
37
|
return theme.colors.grey20;
|
|
38
38
|
});
|
|
39
|
-
export var
|
|
40
|
-
var theme = _a.theme;
|
|
41
|
-
return theme.colors.grey40;
|
|
42
|
-
}, headingStyles.h5, function (_a) {
|
|
39
|
+
export var buttonMinimalActive = css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n background: none;\n color: ", ";\n border: none;\n outline: none;\n"], ["\n background: none;\n color: ", ";\n border: none;\n outline: none;\n"])), function (_a) {
|
|
43
40
|
var theme = _a.theme;
|
|
44
41
|
return theme.colors.brandPrimary;
|
|
45
|
-
}
|
|
42
|
+
});
|
|
43
|
+
export var buttonMinimal = css(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n background: none;\n border: none;\n box-shadow: none;\n border-radius: 0;\n color: ", ";\n padding-left: 2px;\n padding-right: 2px;\n ", "\n\n :active, :hover, :focus {\n ", "\n }\n\n :disabled {\n ", "\n }\n"], ["\n background: none;\n border: none;\n box-shadow: none;\n border-radius: 0;\n color: ", ";\n padding-left: 2px;\n padding-right: 2px;\n ", "\n\n :active, :hover, :focus {\n ", "\n }\n\n :disabled {\n ", "\n }\n"])), function (_a) {
|
|
44
|
+
var theme = _a.theme;
|
|
45
|
+
return theme.colors.grey40;
|
|
46
|
+
}, headingStyles.h5, buttonMinimalActive, buttonMinimalDisabled);
|
|
46
47
|
// MinimalUnderline
|
|
47
|
-
export var buttonMinimalUnderline = css(
|
|
48
|
+
export var buttonMinimalUnderline = css(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n ", "\n\n border-bottom: 1px solid ", ";\n\n :disabled {\n border-bottom: 1px solid ", ";\n }\n\n :hover,\n :active,\n :focus {\n border-bottom: 1px solid ", ";\n }\n"], ["\n ", "\n\n border-bottom: 1px solid ", ";\n\n :disabled {\n border-bottom: 1px solid ", ";\n }\n\n :hover,\n :active,\n :focus {\n border-bottom: 1px solid ", ";\n }\n"])), buttonMinimal, function (_a) {
|
|
48
49
|
var theme = _a.theme;
|
|
49
50
|
return theme.colors.grey40;
|
|
50
51
|
}, function (_a) {
|
|
@@ -55,16 +56,16 @@ export var buttonMinimalUnderline = css(templateObject_19 || (templateObject_19
|
|
|
55
56
|
return theme.colors.brandPrimary;
|
|
56
57
|
});
|
|
57
58
|
// minimalBLock
|
|
58
|
-
var minimalBlockActive = css(
|
|
59
|
-
export var minimalBLock = css(
|
|
60
|
-
export var dangerPrimaryActive = css(
|
|
61
|
-
export var dangerPrimary = css(
|
|
62
|
-
export var dangerSecondaryTeritaryActive = css(
|
|
63
|
-
export var dangerSecondaryTertiary = css(
|
|
64
|
-
var primaryDisabled = css(
|
|
65
|
-
var secondaryDisabled = css(
|
|
66
|
-
var tertiaryDisabled = css(
|
|
67
|
-
export var buttonFill = css(
|
|
59
|
+
var minimalBlockActive = css(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: none;\n &:hover {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: none;\n }\n"], ["\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: none;\n &:hover {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: none;\n }\n"])), function (props) { return props.theme.colors.white; }, function (props) { return props.theme.colors.cyan100; }, function (props) { return props.theme.colors.white; }, function (props) { return props.theme.colors.cyan80; });
|
|
60
|
+
export var minimalBLock = css(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n padding: 0;\n height: 22px;\n min-height: 22px;\n max-height: 22px;\n min-width: 22px;\n max-width: 22px;\n width: 22px;\n color: ", ";\n background-color: transparent;\n border: none;\n box-shadow: none;\n border-radius: 4px;\n :hover {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: none;\n }\n :active {\n &:hover {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: none;\n }\n }\n :active,\n :focus {\n ", "\n }\n :disabled {\n background-color: ", ";\n color: ", ";\n border: none;\n box-shadow: none;\n }\n ", " {\n ", "\n }\n"], ["\n padding: 0;\n height: 22px;\n min-height: 22px;\n max-height: 22px;\n min-width: 22px;\n max-width: 22px;\n width: 22px;\n color: ", ";\n background-color: transparent;\n border: none;\n box-shadow: none;\n border-radius: 4px;\n :hover {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: none;\n }\n :active {\n &:hover {\n color: ", ";\n background-color: ", ";\n border: none;\n box-shadow: none;\n }\n }\n :active,\n :focus {\n ", "\n }\n :disabled {\n background-color: ", ";\n color: ", ";\n border: none;\n box-shadow: none;\n }\n ", " {\n ", "\n }\n"])), function (props) { return props.theme.colors.grey80; }, function (props) { return props.theme.colors.brandShade100; }, function (props) { return props.theme.colors.brandShade20; }, function (props) { return props.theme.colors.white; }, function (props) { return props.theme.colors.cyan80; }, minimalBlockActive, function (props) { return props.theme.colors.grey5; }, function (props) { return props.theme.colors.grey80; }, Icon, headingStyles.h0);
|
|
61
|
+
export var dangerPrimaryActive = css(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n outline: none;\n background-color: ", ";\n border: 1px solid ", ";\n box-shadow: 0px 0px 0px ", ";\n"], ["\n outline: none;\n background-color: ", ";\n border: 1px solid ", ";\n box-shadow: 0px 0px 0px ", ";\n"])), function (props) { return props.theme.colors.red100; }, function (props) { return props.theme.colors.red100; }, function (props) { return props.theme.colors.brandShade40; });
|
|
62
|
+
export var dangerPrimary = css(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n :hover {\n background-color: ", ";\n border: 1px solid ", ";\n }\n\n :focus,\n :active {\n ", "\n }\n"], ["\n :hover {\n background-color: ", ";\n border: 1px solid ", ";\n }\n\n :focus,\n :active {\n ", "\n }\n"])), function (props) { return props.theme.colors.red100; }, function (props) { return props.theme.colors.red100; }, dangerPrimaryActive);
|
|
63
|
+
export var dangerSecondaryTeritaryActive = css(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n color: ", ";\n background-color: ", ";\n border: 1px solid ", ";\n box-shadow: 0px 0px 0px ", ";\n"], ["\n color: ", ";\n background-color: ", ";\n border: 1px solid ", ";\n box-shadow: 0px 0px 0px ", ";\n"])), function (props) { return props.theme.colors.red100; }, function (props) { return props.theme.colors.red40; }, function (props) { return props.theme.colors.red100; }, function (props) { return props.theme.colors.brandShade40; });
|
|
64
|
+
export var dangerSecondaryTertiary = css(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n :focus {\n outline: none;\n background-color: ", ";\n box-shadow: 0px 2px 2px ", ";\n border: 1px solid ", ";\n }\n\n :active {\n ", "\n }\n\n :hover {\n color: ", ";\n background-color: ", ";\n border: 1px solid ", ";\n }\n"], ["\n :focus {\n outline: none;\n background-color: ", ";\n box-shadow: 0px 2px 2px ", ";\n border: 1px solid ", ";\n }\n\n :active {\n ", "\n }\n\n :hover {\n color: ", ";\n background-color: ", ";\n border: 1px solid ", ";\n }\n"])), function (props) { return props.theme.colors.white; }, function (props) { return props.theme.colors.brandShade40; }, function (props) { return props.theme.colors.grey20; }, dangerSecondaryTeritaryActive, function (props) { return props.theme.colors.red100; }, function (props) { return props.theme.colors.red20; }, function (props) { return props.theme.colors.red100; });
|
|
65
|
+
var primaryDisabled = css(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n border: 1px solid ", ";\n box-shadow: 0px 0px 0px ", ";\n background-color: ", ";\n cursor: not-allowed;\n"], ["\n border: 1px solid ", ";\n box-shadow: 0px 0px 0px ", ";\n background-color: ", ";\n cursor: not-allowed;\n"])), function (props) { return props.theme.colors.grey20; }, function (props) { return props.theme.colors.brandShade40; }, function (props) { return props.theme.colors.grey20; });
|
|
66
|
+
var secondaryDisabled = css(templateObject_28 || (templateObject_28 = __makeTemplateObject(["\n color: ", ";\n box-shadow: 0px 0px 0px ", ";\n border-color: ", ";\n background-color: ", ";\n cursor: not-allowed;\n"], ["\n color: ", ";\n box-shadow: 0px 0px 0px ", ";\n border-color: ", ";\n background-color: ", ";\n cursor: not-allowed;\n"])), function (props) { return props.theme.colors.grey40; }, function (props) { return props.theme.colors.brandShade40; }, function (props) { return props.theme.colors.grey20; }, function (props) { return props.theme.colors.grey5; });
|
|
67
|
+
var tertiaryDisabled = css(templateObject_29 || (templateObject_29 = __makeTemplateObject(["\n color: ", ";\n box-shadow: 0px 0px 0px ", ";\n border-color: ", ";\n background-color: ", ";\n cursor: not-allowed;\n"], ["\n color: ", ";\n box-shadow: 0px 0px 0px ", ";\n border-color: ", ";\n background-color: ", ";\n cursor: not-allowed;\n"])), function (props) { return props.theme.colors.grey40; }, function (props) { return props.theme.colors.brandShade40; }, function (props) { return props.theme.colors.grey20; }, function (props) { return props.theme.colors.grey5; });
|
|
68
|
+
export var buttonFill = css(templateObject_30 || (templateObject_30 = __makeTemplateObject(["\n width: 100%;\n & > * {\n flex: 1;\n }\n\n ", " {\n width: 100%;\n }\n"], ["\n width: 100%;\n & > * {\n flex: 1;\n }\n\n ", " {\n width: 100%;\n }\n"])), ButtonText);
|
|
68
69
|
export function getIntentBase(props) {
|
|
69
70
|
switch (props.intent) {
|
|
70
71
|
case undefined:
|
|
@@ -111,6 +112,8 @@ export function getActiveIntent(props) {
|
|
|
111
112
|
return secondaryActive;
|
|
112
113
|
case "tertiary":
|
|
113
114
|
return tertiaryActive;
|
|
115
|
+
case "minimal":
|
|
116
|
+
return buttonMinimalActive;
|
|
114
117
|
case "minimalBlock":
|
|
115
118
|
return minimalBlockActive;
|
|
116
119
|
}
|
|
@@ -132,20 +135,20 @@ export var getDisabledIntent = function (props) {
|
|
|
132
135
|
return buttonMinimalDisabled;
|
|
133
136
|
}
|
|
134
137
|
};
|
|
135
|
-
export var ButtonLoaderContainer = styled.div.attrs(dpNameProp("ButtonLoader"))(
|
|
136
|
-
export var buttonLoading = css(
|
|
137
|
-
export var navButtonBase = css(
|
|
138
|
-
export var navButtonSmall = css(
|
|
139
|
-
export var TestOverlayButtonWrapper = styled.div(
|
|
138
|
+
export var ButtonLoaderContainer = styled.div.attrs(dpNameProp("ButtonLoader"))(templateObject_31 || (templateObject_31 = __makeTemplateObject(["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n color: ", ";\n margin: 0 !important;\n opacity: 0.8;\n"], ["\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n color: ", ";\n margin: 0 !important;\n opacity: 0.8;\n"])), function (props) { return props.theme.colors.brandPrimary; });
|
|
139
|
+
export var buttonLoading = css(templateObject_32 || (templateObject_32 = __makeTemplateObject(["\n &,\n :hover,\n :active,\n :focus {\n background-color: ", " !important;\n color: transparent !important;\n border-color: ", " !important;\n box-shadow: none !important;\n }\n"], ["\n &,\n :hover,\n :active,\n :focus {\n background-color: ", " !important;\n color: transparent !important;\n border-color: ", " !important;\n box-shadow: none !important;\n }\n"])), function (props) { return props.theme.colors.grey10; }, function (props) { return props.theme.colors.grey10; });
|
|
140
|
+
export var navButtonBase = css(templateObject_33 || (templateObject_33 = __makeTemplateObject(["\n position: relative;\n transition: all 0.1s ease-in-out;\n display: inline-flex;\n flex-direction: column;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n padding: 4px 8px;\n vertical-align: middle;\n height: 55px;\n width: 90px;\n overflow: hidden;\n align-items: center;\n justify-content: center;\n\n & > :not(:last-child) {\n margin-bottom: 4px;\n }\n\n :disabled {\n cursor: not-allowed;\n }\n\n > * {\n flex: 0;\n }\n\n ", " {\n font-size: 20px;\n flex: 0 0 auto;\n }\n\n ", " {\n ", "\n flex: 0 1 auto;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n"], ["\n position: relative;\n transition: all 0.1s ease-in-out;\n display: inline-flex;\n flex-direction: column;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n padding: 4px 8px;\n vertical-align: middle;\n height: 55px;\n width: 90px;\n overflow: hidden;\n align-items: center;\n justify-content: center;\n\n & > :not(:last-child) {\n margin-bottom: 4px;\n }\n\n :disabled {\n cursor: not-allowed;\n }\n\n > * {\n flex: 0;\n }\n\n ", " {\n font-size: 20px;\n flex: 0 0 auto;\n }\n\n ", " {\n ", "\n flex: 0 1 auto;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n"])), Icon, ButtonText, paragraphStyled.p8);
|
|
141
|
+
export var navButtonSmall = css(templateObject_34 || (templateObject_34 = __makeTemplateObject(["\n height: 50px;\n width: 60px;\n min-height: 50px;\n min-width: 60px;\n"], ["\n height: 50px;\n width: 60px;\n min-height: 50px;\n min-width: 60px;\n"])));
|
|
142
|
+
export var TestOverlayButtonWrapper = styled.div(templateObject_35 || (templateObject_35 = __makeTemplateObject(["\n background-color: #eeeeee;\n height: 50px;\n position: ", ";\n width: 100px;\n"], ["\n background-color: #eeeeee;\n height: 50px;\n position: ", ";\n width: 100px;\n"])), function (_a) {
|
|
140
143
|
var position = _a.position;
|
|
141
144
|
return (position ? position : "unset");
|
|
142
145
|
});
|
|
143
|
-
export var overlayButtonStyle = css(
|
|
144
|
-
export var overlayButtonRightTop = css(
|
|
145
|
-
export var overlayButtonRightBottom = css(
|
|
146
|
-
export var overlayButtonLeftTop = css(
|
|
147
|
-
export var overlayButtonLeftBottom = css(
|
|
148
|
-
export var overlayButtonMiddleBottom = css(
|
|
149
|
-
export var overlayButtonMiddleTop = css(
|
|
150
|
-
export var buttonIconSubsection = css(
|
|
151
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42;
|
|
146
|
+
export var overlayButtonStyle = css(templateObject_36 || (templateObject_36 = __makeTemplateObject(["\n transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out,\n background-color 0.2s ease-in-out, fill 0.2s ease-in-out;\n align-items: center;\n background-color: ", ";\n\n cursor: pointer;\n display: flex;\n justify-content: center;\n min-width: 25px;\n height: 22px;\n border-color: ", ";\n border-style: solid;\n color: ", ";\n\n &:hover {\n color: ", ";\n background-color: ", ";\n border-color: ", ";\n\n ", " {\n color: ", ";\n }\n }\n\n &:active {\n color: ", ";\n border-color: ", ";\n background-color: ", ";\n box-shadow: 0px 0px 0px ", ";\n\n ", " {\n color: ", ";\n }\n }\n\n & > :not(:last-child) {\n margin-right: 7px;\n }\n"], ["\n transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out,\n background-color 0.2s ease-in-out, fill 0.2s ease-in-out;\n align-items: center;\n background-color: ", ";\n\n cursor: pointer;\n display: flex;\n justify-content: center;\n min-width: 25px;\n height: 22px;\n border-color: ", ";\n border-style: solid;\n color: ", ";\n\n &:hover {\n color: ", ";\n background-color: ", ";\n border-color: ", ";\n\n ", " {\n color: ", ";\n }\n }\n\n &:active {\n color: ", ";\n border-color: ", ";\n background-color: ", ";\n box-shadow: 0px 0px 0px ", ";\n\n ", " {\n color: ", ";\n }\n }\n\n & > :not(:last-child) {\n margin-right: 7px;\n }\n"])), function (props) { return props.theme.colors.white; }, function (props) { return props.theme.colors.grey40; }, function (props) { return props.theme.colors.grey80; }, function (props) { return props.theme.colors.brandShade100; }, function (props) { return props.theme.colors.brandShade10; }, function (props) { return props.theme.colors.brandShade100; }, Icon, function (props) { return props.theme.colors.brandShade100; }, function (props) { return props.theme.colors.brandShade100; }, function (props) { return props.theme.colors.brandShade100; }, function (props) { return props.theme.colors.brandShade40; }, function (props) { return props.theme.colors.brandShade40; }, Icon, function (props) { return props.theme.colors.brandShade100; });
|
|
147
|
+
export var overlayButtonRightTop = css(templateObject_37 || (templateObject_37 = __makeTemplateObject(["\n border-bottom-left-radius: 5px;\n border-bottom-width: 1px;\n border-left-width: 1px;\n\n border-top: 0;\n border-right: 0;\n top: 0;\n right: 0;\n"], ["\n border-bottom-left-radius: 5px;\n border-bottom-width: 1px;\n border-left-width: 1px;\n\n border-top: 0;\n border-right: 0;\n top: 0;\n right: 0;\n"])));
|
|
148
|
+
export var overlayButtonRightBottom = css(templateObject_38 || (templateObject_38 = __makeTemplateObject(["\n border-top-left-radius: 5px;\n border-top-width: 1px;\n border-left-width: 1px;\n border-bottom: 0;\n border-right: 0;\n bottom: 0;\n right: 0;\n"], ["\n border-top-left-radius: 5px;\n border-top-width: 1px;\n border-left-width: 1px;\n border-bottom: 0;\n border-right: 0;\n bottom: 0;\n right: 0;\n"])));
|
|
149
|
+
export var overlayButtonLeftTop = css(templateObject_39 || (templateObject_39 = __makeTemplateObject(["\n border-bottom-right-radius: 5px;\n border-bottom-width: 1px;\n border-right-width: 1px;\n border-left: 0;\n border-top: 0;\n top: 0;\n left: 0;\n"], ["\n border-bottom-right-radius: 5px;\n border-bottom-width: 1px;\n border-right-width: 1px;\n border-left: 0;\n border-top: 0;\n top: 0;\n left: 0;\n"])));
|
|
150
|
+
export var overlayButtonLeftBottom = css(templateObject_40 || (templateObject_40 = __makeTemplateObject(["\n border-top-right-radius: 5px;\n border-top-width: 1px;\n border-right-width: 1px;\n border-left: 0;\n border-bottom: 0;\n top: 0;\n left: 0;\n"], ["\n border-top-right-radius: 5px;\n border-top-width: 1px;\n border-right-width: 1px;\n border-left: 0;\n border-bottom: 0;\n top: 0;\n left: 0;\n"])));
|
|
151
|
+
export var overlayButtonMiddleBottom = css(templateObject_41 || (templateObject_41 = __makeTemplateObject(["\n border-radius: 5px;\n border-width: 1px;\n bottom: 10px;\n left: 50%;\n transform: translateX(-50%);\n white-space: nowrap;\n"], ["\n border-radius: 5px;\n border-width: 1px;\n bottom: 10px;\n left: 50%;\n transform: translateX(-50%);\n white-space: nowrap;\n"])));
|
|
152
|
+
export var overlayButtonMiddleTop = css(templateObject_42 || (templateObject_42 = __makeTemplateObject(["\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n border-bottom-width: 1px;\n border-right-width: 1px;\n border-left-width: 1px;\n border-top: 0;\n top: 0;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n"], ["\n border-bottom-left-radius: 5px;\n border-bottom-right-radius: 5px;\n border-bottom-width: 1px;\n border-right-width: 1px;\n border-left-width: 1px;\n border-top: 0;\n top: 0;\n left: 0;\n right: 0;\n margin-left: auto;\n margin-right: auto;\n"])));
|
|
153
|
+
export var buttonIconSubsection = css(templateObject_43 || (templateObject_43 = __makeTemplateObject(["\n min-width: 18px;\n width: 18px;\n ", " {\n width: 12px;\n height: 12px;\n }\n"], ["\n min-width: 18px;\n width: 18px;\n ", " {\n width: 12px;\n height: 12px;\n }\n"])), Icon);
|
|
154
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35, templateObject_36, templateObject_37, templateObject_38, templateObject_39, templateObject_40, templateObject_41, templateObject_42, templateObject_43;
|
|
@@ -2,23 +2,21 @@ import { __assign, __makeTemplateObject } from "tslib";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { Avatar } from "../Avatar";
|
|
5
|
-
import {
|
|
6
|
-
import { P8, TSpan } from "../Typography";
|
|
5
|
+
import { TSpan } from "../Typography";
|
|
7
6
|
import { Stack } from "../../layout";
|
|
8
7
|
import { dpNameProp } from "../../utils";
|
|
9
|
-
|
|
8
|
+
import { IconButton } from "../Button";
|
|
9
|
+
var Container = styled(Stack)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n box-sizing: border-box;\n background-color: ", ";\n border-radius: 10px;\n height: 20px;\n width: fit-content;\n max-width: 100%;\n overflow: hidden;\n padding: 2px 5px 2px 10px;\n font-size: 11px;\n color: #1c3e55;\n"], ["\n box-sizing: border-box;\n background-color: ", ";\n border-radius: 10px;\n height: 20px;\n width: fit-content;\n max-width: 100%;\n overflow: hidden;\n padding: 2px 5px 2px 10px;\n font-size: 11px;\n color: #1c3e55;\n"])), function (_a) {
|
|
10
10
|
var theme = _a.theme;
|
|
11
11
|
return theme.colors.brandShade20;
|
|
12
12
|
});
|
|
13
|
-
var CloseIcon = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ", ";\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n color: ", ";\n"])), function (props) { return props.theme.colors.brandShade100; });
|
|
14
13
|
export var CCUserTag = function (_a) {
|
|
15
14
|
var displayName = _a.displayName, avatar = _a.avatar, email = _a.email, onClose = _a.onClose, closeIcon = _a.closeIcon, avatarBackupIcon = _a.avatarBackupIcon;
|
|
16
|
-
return (React.createElement(Container, __assign({}, dpNameProp("CCUserTag"), {
|
|
17
|
-
|
|
18
|
-
React.createElement(Avatar, __assign({}, avatar, { backupIcon: avatarBackupIcon }))
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
onClose && (React.createElement(
|
|
22
|
-
React.createElement(Icon, { icon: closeIcon })))));
|
|
15
|
+
return (React.createElement(Container, __assign({}, dpNameProp("CCUserTag"), { align: "center", wrap: "nowrap" }),
|
|
16
|
+
React.createElement(Stack, { gap: 6, align: "center", wrap: "nowrap", overflow: "hidden" },
|
|
17
|
+
avatar && React.createElement(Avatar, __assign({ size: 15 }, avatar, { backupIcon: avatarBackupIcon })),
|
|
18
|
+
displayName && (React.createElement(TSpan, { type: "p6", style: { whiteSpace: "nowrap" }, overflow: "ellipsis", flex: 3 }, displayName)),
|
|
19
|
+
email && React.createElement(TSpan, { type: "p8", overflow: "ellipsis", flex: 1 }, "(".concat(email, ")"))),
|
|
20
|
+
onClose && (React.createElement(IconButton, { size: "tiny", intent: "minimal", icon: closeIcon, onClick: function () { return onClose(); } }))));
|
|
23
21
|
};
|
|
24
|
-
var templateObject_1
|
|
22
|
+
var templateObject_1;
|
package/dist/esm/style/index.js
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { useContext } from "react";
|
|
3
|
+
import { ThemeContext } from "styled-components";
|
|
4
|
+
export var ThemeProvider = function (props) { return (React.createElement(ThemeContext.Provider, { value: props.theme }, props.children)); };
|
|
5
|
+
export var useTheme = function () { return useContext(ThemeContext); };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { ThemeProvider } from "
|
|
3
|
-
import { lightTheme } from "../style/theme";
|
|
2
|
+
import { lightTheme, ThemeProvider } from "../style";
|
|
4
3
|
export var TestingThemeProvider = function (_a) {
|
|
5
4
|
var children = _a.children;
|
|
6
5
|
return React.createElement(ThemeProvider, { theme: lightTheme }, children);
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deskpro/deskpro-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Deskpro UI components",
|
|
5
|
+
"bugs": {
|
|
6
|
+
"url": "https://github.com/deskpro/deskpro-ui/issues"
|
|
7
|
+
},
|
|
8
|
+
"homepage": "https://github.com/deskpro/deskpro-ui#readme",
|
|
5
9
|
"author": "Deskpro",
|
|
6
10
|
"license": "BSD-3-Clause",
|
|
7
11
|
"repository": {
|
|
@@ -14,6 +18,9 @@
|
|
|
14
18
|
"engines": {
|
|
15
19
|
"node": "^16.0.0"
|
|
16
20
|
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
17
24
|
"scripts": {
|
|
18
25
|
"start": "start-storybook -p 6006",
|
|
19
26
|
"watch": "rimraf ./dist && yarn tsc -b --watch",
|
|
@@ -26,69 +33,75 @@
|
|
|
26
33
|
"codegen": "true",
|
|
27
34
|
"start:storybook": "start-storybook -p 6006",
|
|
28
35
|
"build": "rimraf ./dist && yarn build:cjs && yarn build:esm && yarn build:copy-assets",
|
|
29
|
-
"build:copy-assets": "cp -
|
|
36
|
+
"build:copy-assets": "cp -r ./fonts ./dist && cp ./deskpro-ui.css ./dist && cp ./deskpro-custom-icons.css ./dist",
|
|
30
37
|
"build:esm": "tsc -p ./src/tsconfig.json --module ES2022 --declaration false --composite false --declarationMap false --outDir ./dist/esm",
|
|
31
38
|
"build:cjs": "tsc -p ./src/tsconfig.json --module CommonJS --outDir ./dist/cjs",
|
|
32
39
|
"build-storybook": "build-storybook --quiet -o build-storybook",
|
|
33
40
|
"docs:storybook": "build-storybook --quiet -o docs/storybook",
|
|
34
41
|
"docs:typedoc": "typedoc --out docs/typedoc src/lib.ts",
|
|
35
42
|
"docs": "yarn docs:storybook && yarn docs:typedoc",
|
|
36
|
-
"pub:patch": "yarn build && npm version patch --force && npm publish
|
|
43
|
+
"pub:patch": "yarn build && npm version patch --force && npm publish",
|
|
44
|
+
"pub:minor": "yarn build && npm version minor --force && npm publish",
|
|
45
|
+
"pub:major": "yarn build && npm version major --force && npm publish",
|
|
37
46
|
"postpub": "echo \"\\x1b[101m\\x1b[97mDon't forget to publish updated docs. Rebase the 'docs' branch on main, run 'yarn docs' then 'git push'. Docs are published to https://deskpro.github.io/deskpro-ui\\x1b[0m\"",
|
|
38
47
|
"precommit": "lint-staged",
|
|
39
48
|
"generate:dp-custom-icons": "fantasticon -c .fantasticonrc.json",
|
|
40
49
|
"prepare": "husky install"
|
|
41
50
|
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"react": "17",
|
|
53
|
+
"react-dom": "17"
|
|
54
|
+
},
|
|
42
55
|
"dependencies": {
|
|
43
|
-
"@fortawesome/fontawesome-
|
|
44
|
-
"@fortawesome/
|
|
45
|
-
"@fortawesome/free-
|
|
46
|
-
"@fortawesome/free-
|
|
47
|
-
"@fortawesome/
|
|
56
|
+
"@fortawesome/fontawesome-common-types": "^0.3.0",
|
|
57
|
+
"@fortawesome/fontawesome-svg-core": "^1.3.0",
|
|
58
|
+
"@fortawesome/free-brands-svg-icons": "^6.0.0",
|
|
59
|
+
"@fortawesome/free-regular-svg-icons": "^6.0.0",
|
|
60
|
+
"@fortawesome/free-solid-svg-icons": "^6.0.0",
|
|
61
|
+
"@fortawesome/react-fontawesome": "^0.1.17",
|
|
48
62
|
"@heroicons/react": "^1.0.5",
|
|
49
63
|
"@popperjs/core": "^2.11.0",
|
|
50
64
|
"@tippyjs/react": "^4.2.6",
|
|
51
65
|
"classnames": "^2.3.1",
|
|
52
|
-
"csstype": "3.0.10",
|
|
66
|
+
"csstype": "^3.0.10",
|
|
53
67
|
"d3-array": "^3.1.1",
|
|
54
|
-
"date-fns": "2.27.0",
|
|
55
|
-
"flag-icon-css": "4.1.6",
|
|
68
|
+
"date-fns": "^2.27.0",
|
|
69
|
+
"flag-icon-css": "^4.1.6",
|
|
70
|
+
"flatpickr": "^4.6.9",
|
|
56
71
|
"formik": "^2.2.9",
|
|
57
|
-
"framer-motion": "
|
|
58
|
-
"fuse.js": "6.4.6",
|
|
59
|
-
"iframe-resizer": "4.3.2",
|
|
72
|
+
"framer-motion": "^6.2.4",
|
|
73
|
+
"fuse.js": "^6.4.6",
|
|
74
|
+
"iframe-resizer": "^4.3.2",
|
|
60
75
|
"lodash": "^4.17.21",
|
|
61
|
-
"modern-normalize": "1.1.0",
|
|
62
|
-
"notyf": "3.10.0",
|
|
76
|
+
"modern-normalize": "^1.1.0",
|
|
77
|
+
"notyf": "^3.10.0",
|
|
63
78
|
"polished": "^4.1.1",
|
|
64
|
-
"pretty-bytes": "5.6.0",
|
|
65
|
-
"react": "
|
|
66
|
-
"react-
|
|
67
|
-
"react-color": "2.19.3",
|
|
79
|
+
"pretty-bytes": "^5.6.0",
|
|
80
|
+
"react-beautiful-dnd": "^13.1.0",
|
|
81
|
+
"react-color": "^2.19.3",
|
|
68
82
|
"react-content-loader": "^6.1.0",
|
|
69
|
-
"react-
|
|
70
|
-
"react-flatpickr": "3.10.7",
|
|
83
|
+
"react-flatpickr": "^3.10.7",
|
|
71
84
|
"react-highlight-words": "^0.17.0",
|
|
72
85
|
"react-is": "^17.0.2",
|
|
73
86
|
"react-phone-number-input": "3.1.27",
|
|
74
87
|
"react-popper": "^2.2.4",
|
|
75
|
-
"react-virtuoso": "2.3.1",
|
|
76
|
-
"shortcut-buttons-flatpickr": "0.3.1",
|
|
77
|
-
"simplebar": "5.3.6",
|
|
78
|
-
"simplebar-react": "2.3.6",
|
|
79
|
-
"styled-components": "5.3.3",
|
|
80
|
-
"ts-pattern": "3.3.5",
|
|
81
|
-
"
|
|
88
|
+
"react-virtuoso": "^2.3.1",
|
|
89
|
+
"shortcut-buttons-flatpickr": "^0.3.1",
|
|
90
|
+
"simplebar": "^5.3.6",
|
|
91
|
+
"simplebar-react": "^2.3.6",
|
|
92
|
+
"styled-components": "^5.3.3",
|
|
93
|
+
"ts-pattern": "^3.3.5",
|
|
94
|
+
"tslib": "~2.3.1",
|
|
95
|
+
"use-debounce": "^7.0.1",
|
|
82
96
|
"uuid": "^8.3.2",
|
|
83
|
-
"yup": "0.31.1"
|
|
97
|
+
"yup": "^0.31.1"
|
|
84
98
|
},
|
|
85
99
|
"devDependencies": {
|
|
86
100
|
"@babel/core": "^7.16.0",
|
|
87
|
-
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
|
88
101
|
"@shopify/jest-dom-mocks": "^3.0.13",
|
|
89
102
|
"@storybook/addon-actions": "^6.3.12",
|
|
90
103
|
"@storybook/addon-docs": "^6.4.18",
|
|
91
|
-
"@storybook/addon-knobs": "6.
|
|
104
|
+
"@storybook/addon-knobs": "^6.4.0",
|
|
92
105
|
"@storybook/addons": "^6.3.8",
|
|
93
106
|
"@storybook/react": "^6.3.12",
|
|
94
107
|
"@swc/core": "^1.2.135",
|
|
@@ -97,48 +110,45 @@
|
|
|
97
110
|
"@testing-library/react": "^12.1.2",
|
|
98
111
|
"@types/d3-array": "^3.0.2",
|
|
99
112
|
"@types/iframe-resizer": "3.5.9",
|
|
113
|
+
"@types/jest": "^27.4.0",
|
|
100
114
|
"@types/lodash": "^4.14.178",
|
|
101
|
-
"@types/
|
|
115
|
+
"@types/node": "^17.0.16",
|
|
116
|
+
"@types/react": "17.0.39",
|
|
102
117
|
"@types/react-beautiful-dnd": "13.1.2",
|
|
103
118
|
"@types/react-color": "3.0.6",
|
|
104
119
|
"@types/react-dom": "17.0.11",
|
|
105
|
-
"@types/react-flatpickr": "3.8.
|
|
120
|
+
"@types/react-flatpickr": "3.8.5",
|
|
106
121
|
"@types/react-highlight-words": "^0.16.4",
|
|
107
122
|
"@types/react-phone-number-input": "3.0.13",
|
|
108
|
-
"@types/styled-components": "5.1.
|
|
123
|
+
"@types/styled-components": "5.1.22",
|
|
109
124
|
"@types/uuid": "^8.3.4",
|
|
110
125
|
"@types/yup": "^0.29.11",
|
|
111
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
112
|
-
"@typescript-eslint/parser": "5.
|
|
126
|
+
"@typescript-eslint/eslint-plugin": "5.11.0",
|
|
127
|
+
"@typescript-eslint/parser": "5.11.0",
|
|
113
128
|
"@typescript/lib-dom": "npm:@types/web",
|
|
114
|
-
"chromatic": "6.
|
|
129
|
+
"chromatic": "6.4.3",
|
|
115
130
|
"conditional-type-checks": "1.0.5",
|
|
116
131
|
"cross-env": "^7.0.3",
|
|
117
|
-
"eslint": "8.
|
|
132
|
+
"eslint": "8.8.0",
|
|
118
133
|
"eslint-config-prettier": "8.3.0",
|
|
119
134
|
"eslint-plugin-react-hooks": "4.3.0",
|
|
120
135
|
"fantasticon": "1.2.3",
|
|
121
|
-
"fast-check": "2.
|
|
136
|
+
"fast-check": "2.21.0",
|
|
122
137
|
"husky": "^7.0.4",
|
|
123
|
-
"jest": "27.
|
|
138
|
+
"jest": "^27.5.1",
|
|
124
139
|
"lint-staged": "^12.3.3",
|
|
125
140
|
"prettier": "^2.5.1",
|
|
141
|
+
"react": "^17.0.2",
|
|
142
|
+
"react-dom": "^17.0.2",
|
|
126
143
|
"rimraf": "3.0.2",
|
|
127
|
-
"type-fest": "2.
|
|
144
|
+
"type-fest": "2.11.1",
|
|
128
145
|
"typedoc": "^0.22.11",
|
|
129
146
|
"typescript": "4.5.5",
|
|
130
147
|
"utility-types": "3.10.0"
|
|
131
148
|
},
|
|
132
|
-
"files": [
|
|
133
|
-
"dist"
|
|
134
|
-
],
|
|
135
149
|
"lint-staged": {
|
|
136
150
|
"*.{ts,tsx,js,jsx,json}": [
|
|
137
151
|
"prettier --write"
|
|
138
152
|
]
|
|
139
|
-
}
|
|
140
|
-
"bugs": {
|
|
141
|
-
"url": "https://github.com/deskpro/deskpro-ui/issues"
|
|
142
|
-
},
|
|
143
|
-
"homepage": "https://github.com/deskpro/deskpro-ui#readme"
|
|
153
|
+
}
|
|
144
154
|
}
|