@appquality/unguess-design-system 3.1.60 → 3.1.61
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 +13 -0
- package/build/index.js +10 -9
- package/build/stories/buttons/button/index.stories.d.ts +1 -0
- package/build/stories/buttons/utils.d.ts +27 -27
- package/build/stories/chat/index.stories.d.ts +1 -0
- package/build/stories/chat/parts/header.d.ts +2 -2
- package/build/stories/dropdowns/select/index.stories.d.ts +1 -0
- package/build/stories/editor/index.stories.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v3.1.61 (Fri Dec 29 2023)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Improve chat spacing and save behaviour [#288](https://github.com/AppQuality/unguess-design-system/pull/288) ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
- Update-chat-spaces [#287](https://github.com/AppQuality/unguess-design-system/pull/287) ([@cannarocks](https://github.com/cannarocks))
|
|
7
|
+
|
|
8
|
+
#### Authors: 1
|
|
9
|
+
|
|
10
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
1
14
|
# v3.1.60 (Fri Dec 29 2023)
|
|
2
15
|
|
|
3
16
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -2302,18 +2302,18 @@ const useChatContext = () => {
|
|
|
2302
2302
|
};
|
|
2303
2303
|
|
|
2304
2304
|
const ChatContainer = styled__default["default"](Card) `
|
|
2305
|
-
padding: ${({ theme }) => theme.space.
|
|
2305
|
+
padding: ${({ theme }) => `0 ${theme.space.base * 4}px`};
|
|
2306
2306
|
&:hover {
|
|
2307
2307
|
box-shadow: none;
|
|
2308
2308
|
}
|
|
2309
2309
|
cursor: default;
|
|
2310
2310
|
`;
|
|
2311
2311
|
const MessagesContainer = styled__default["default"].div `
|
|
2312
|
-
padding: ${({ theme }) => theme.space.md};
|
|
2313
|
-
margin: ${({ theme }) => `0 -${theme.space.
|
|
2312
|
+
padding: ${({ theme }) => `${theme.space.md} ${theme.space.sm}`};
|
|
2313
|
+
margin: ${({ theme }) => `0 -${theme.space.base * 4}px`};
|
|
2314
2314
|
display: flex;
|
|
2315
2315
|
flex-direction: column;
|
|
2316
|
-
gap: ${({ theme }) => theme.space.
|
|
2316
|
+
gap: ${({ theme }) => theme.space.xs};
|
|
2317
2317
|
background: ${({ chatBkg }) => chatBkg !== null && chatBkg !== void 0 ? chatBkg : `#fff`};
|
|
2318
2318
|
overflow-y: auto;
|
|
2319
2319
|
`;
|
|
@@ -2326,7 +2326,7 @@ const Title$1 = (props) => jsxRuntime.jsx(reactNotifications.Title, Object.assig
|
|
|
2326
2326
|
const ChatTitle = styled__default["default"](Title$1) `
|
|
2327
2327
|
color: ${({ theme }) => theme.palette.blue[600]};
|
|
2328
2328
|
margin: ${({ theme }) => `0 -${theme.space.md}`};
|
|
2329
|
-
padding: ${({ theme }) =>
|
|
2329
|
+
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.md}`};
|
|
2330
2330
|
border-bottom: ${({ theme }) => `1px solid ${theme.palette.grey[200]}`};
|
|
2331
2331
|
`;
|
|
2332
2332
|
|
|
@@ -2747,13 +2747,13 @@ const FloatingMenu = (props) => {
|
|
|
2747
2747
|
const ChatBoxContainer = styled__default["default"].div `
|
|
2748
2748
|
display: flex;
|
|
2749
2749
|
border-top: 1px solid ${({ theme }) => theme.palette.grey[200]};
|
|
2750
|
-
margin: ${({ theme }) => `0 -${theme.space.
|
|
2751
|
-
padding: ${({ theme }) => theme.space.
|
|
2750
|
+
margin: ${({ theme }) => `0 -${theme.space.base * 4}px`};
|
|
2751
|
+
padding: ${({ theme }) => `${theme.space.base * 4}px ${theme.space.sm} 0`};
|
|
2752
2752
|
`;
|
|
2753
2753
|
const EditorContainer$1 = styled__default["default"](reactForms.FauxInput) `
|
|
2754
2754
|
margin-left: ${({ theme }) => theme.space.sm};
|
|
2755
|
+
padding: ${({ theme }) => `${theme.space.xxs} ${theme.space.xs}`};
|
|
2755
2756
|
.ProseMirror {
|
|
2756
|
-
padding: ${({ theme }) => `${theme.space.xxs} ${theme.space.xs}`};
|
|
2757
2757
|
background-color: #fff;
|
|
2758
2758
|
min-height: 36px;
|
|
2759
2759
|
outline: none;
|
|
@@ -2779,10 +2779,11 @@ const CommentBox = (_a) => {
|
|
|
2779
2779
|
var _b;
|
|
2780
2780
|
var { placeholderOptions } = _a, props = __rest(_a, ["placeholderOptions"]);
|
|
2781
2781
|
const { children, hasInlineMenu, bubbleOptions, author } = props;
|
|
2782
|
-
const { setEditor, triggerSave } = useChatContext();
|
|
2782
|
+
const { editor, setEditor, triggerSave } = useChatContext();
|
|
2783
2783
|
const onKeyDown = (event) => {
|
|
2784
2784
|
if ((event.ctrlKey || event.metaKey) && event.key === "Enter") {
|
|
2785
2785
|
triggerSave();
|
|
2786
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.clearContent();
|
|
2786
2787
|
}
|
|
2787
2788
|
};
|
|
2788
2789
|
const ed = react.useEditor(Object.assign({ extensions: [
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ButtonArgs } from "./_types";
|
|
2
3
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
3
4
|
export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
@@ -8,18 +8,18 @@ export declare const variants: readonly [{}, {
|
|
|
8
8
|
readonly disabled: true;
|
|
9
9
|
}];
|
|
10
10
|
export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
11
|
-
alignItems?: "
|
|
12
|
-
alignItemsXs?: "
|
|
13
|
-
alignItemsSm?: "
|
|
14
|
-
alignItemsMd?: "
|
|
15
|
-
alignItemsLg?: "
|
|
16
|
-
alignItemsXl?: "
|
|
17
|
-
justifyContent?: "
|
|
18
|
-
justifyContentXs?: "
|
|
19
|
-
justifyContentSm?: "
|
|
20
|
-
justifyContentMd?: "
|
|
21
|
-
justifyContentLg?: "
|
|
22
|
-
justifyContentXl?: "
|
|
11
|
+
alignItems?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
12
|
+
alignItemsXs?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
13
|
+
alignItemsSm?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
14
|
+
alignItemsMd?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
15
|
+
alignItemsLg?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
16
|
+
alignItemsXl?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
17
|
+
justifyContent?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
18
|
+
justifyContentXs?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
19
|
+
justifyContentSm?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
20
|
+
justifyContentMd?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
21
|
+
justifyContentLg?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
22
|
+
justifyContentXl?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
23
23
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
24
24
|
wrapXs?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
25
25
|
wrapSm?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
@@ -73,7 +73,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
|
73
73
|
results?: number | undefined;
|
|
74
74
|
security?: string | undefined;
|
|
75
75
|
unselectable?: "on" | "off" | undefined;
|
|
76
|
-
inputMode?: "
|
|
76
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
77
77
|
is?: string | undefined;
|
|
78
78
|
"aria-activedescendant"?: string | undefined;
|
|
79
79
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -299,18 +299,18 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
299
299
|
md?: string | number | boolean | undefined;
|
|
300
300
|
lg?: string | number | boolean | undefined;
|
|
301
301
|
xl?: string | number | boolean | undefined;
|
|
302
|
-
alignSelf?: "
|
|
303
|
-
alignSelfXs?: "
|
|
304
|
-
alignSelfSm?: "
|
|
305
|
-
alignSelfMd?: "
|
|
306
|
-
alignSelfLg?: "
|
|
307
|
-
alignSelfXl?: "
|
|
308
|
-
textAlign?: "
|
|
309
|
-
textAlignXs?: "
|
|
310
|
-
textAlignSm?: "
|
|
311
|
-
textAlignMd?: "
|
|
312
|
-
textAlignLg?: "
|
|
313
|
-
textAlignXl?: "
|
|
302
|
+
alignSelf?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
303
|
+
alignSelfXs?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
304
|
+
alignSelfSm?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
305
|
+
alignSelfMd?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
306
|
+
alignSelfLg?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
307
|
+
alignSelfXl?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
308
|
+
textAlign?: "center" | "start" | "end" | "justify" | undefined;
|
|
309
|
+
textAlignXs?: "center" | "start" | "end" | "justify" | undefined;
|
|
310
|
+
textAlignSm?: "center" | "start" | "end" | "justify" | undefined;
|
|
311
|
+
textAlignMd?: "center" | "start" | "end" | "justify" | undefined;
|
|
312
|
+
textAlignLg?: "center" | "start" | "end" | "justify" | undefined;
|
|
313
|
+
textAlignXl?: "center" | "start" | "end" | "justify" | undefined;
|
|
314
314
|
offset?: string | number | undefined;
|
|
315
315
|
offsetXs?: string | number | undefined;
|
|
316
316
|
offsetSm?: string | number | undefined;
|
|
@@ -370,7 +370,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
370
370
|
results?: number | undefined;
|
|
371
371
|
security?: string | undefined;
|
|
372
372
|
unselectable?: "on" | "off" | undefined;
|
|
373
|
-
inputMode?: "
|
|
373
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
374
374
|
is?: string | undefined;
|
|
375
375
|
"aria-activedescendant"?: string | undefined;
|
|
376
376
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -640,7 +640,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
|
|
|
640
640
|
results?: number | undefined;
|
|
641
641
|
security?: string | undefined;
|
|
642
642
|
unselectable?: "on" | "off" | undefined;
|
|
643
|
-
inputMode?: "
|
|
643
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
644
644
|
is?: string | undefined;
|
|
645
645
|
"aria-activedescendant"?: string | undefined;
|
|
646
646
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
export declare const ChatTitle: import("styled-components").IStyledComponent<"web", {
|
|
3
3
|
isRegular?: boolean | undefined;
|
|
4
4
|
defaultChecked?: boolean | undefined;
|
|
@@ -98,7 +98,7 @@ export declare const ChatTitle: import("styled-components").IStyledComponent<"we
|
|
|
98
98
|
"aria-valuemin"?: number | undefined;
|
|
99
99
|
"aria-valuenow"?: number | undefined;
|
|
100
100
|
"aria-valuetext"?: string | undefined;
|
|
101
|
-
children?: ReactNode;
|
|
101
|
+
children?: import("react").ReactNode;
|
|
102
102
|
dangerouslySetInnerHTML?: {
|
|
103
103
|
__html: string | TrustedHTML;
|
|
104
104
|
} | undefined;
|