@appquality/unguess-design-system 3.1.67 → 3.1.69--canary.d2f9e4a.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/.github/dependabot.yml +11 -11
- package/build/index.js +47 -46
- package/build/stories/buttons/button/index.stories.d.ts +1 -0
- package/build/stories/buttons/utils.d.ts +27 -27
- package/build/stories/chat/_types.d.ts +1 -1
- package/build/stories/chat/index.stories.d.ts +1 -0
- 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/.github/dependabot.yml
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
-
|
|
6
|
-
version: 2
|
|
7
|
-
updates:
|
|
8
|
-
- package-ecosystem: "yarn"
|
|
9
|
-
directory: "/" # Location of package manifests
|
|
10
|
-
schedule:
|
|
11
|
-
interval: "daily"
|
|
1
|
+
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
+
# package ecosystems to update and where the package manifests are located.
|
|
3
|
+
# Please see the documentation for all configuration options:
|
|
4
|
+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
+
|
|
6
|
+
version: 2
|
|
7
|
+
updates:
|
|
8
|
+
- package-ecosystem: "yarn"
|
|
9
|
+
directory: "/" # Location of package manifests
|
|
10
|
+
schedule:
|
|
11
|
+
interval: "daily"
|
package/build/index.js
CHANGED
|
@@ -3046,7 +3046,7 @@ const MentionList = React.forwardRef((props, ref) => {
|
|
|
3046
3046
|
return false;
|
|
3047
3047
|
},
|
|
3048
3048
|
}));
|
|
3049
|
-
return (jsxRuntime.jsx("div", Object.assign({ className: "items" }, { children: jsxRuntime.jsx(StyledCard$1, { children: jsxRuntime.jsx(List, { children: props.items.length ? (props.items.map((item, index) => (jsxRuntime.jsx("div", { children: jsxRuntime.
|
|
3049
|
+
return (jsxRuntime.jsx("div", Object.assign({ className: "items" }, { children: jsxRuntime.jsx(StyledCard$1, { children: jsxRuntime.jsx(List, { children: props.items.length ? (props.items.map((item, index) => (jsxRuntime.jsx("div", { children: jsxRuntime.jsxs(Item$2, Object.assign({ ref: index === selectedIndex ? selectedRef : undefined, isBasic: true, isStretched: true, isAccent: true, isPill: false, isActive: index === selectedIndex, onClick: () => selectItem(index) }, { children: [jsxRuntime.jsx(MD, Object.assign({ isBold: true, style: { color: theme.palette.black } }, { children: item.name })), jsxRuntime.jsx(SM, Object.assign({ style: { color: theme.palette.grey[600] } }, { children: item.email }))] }), index) })))) : (jsxRuntime.jsx(EmptyMention, { content: (_b = (_a = i18n === null || i18n === void 0 ? void 0 : i18n.mention) === null || _a === void 0 ? void 0 : _a.noResults) !== null && _b !== void 0 ? _b : "No results" })) }) }) })));
|
|
3050
3050
|
});
|
|
3051
3051
|
|
|
3052
3052
|
/**
|
|
@@ -3165,7 +3165,7 @@ const ChatBoxContainer = styled__default["default"].div `
|
|
|
3165
3165
|
*/
|
|
3166
3166
|
const CommentBox = (_a) => {
|
|
3167
3167
|
var { placeholderOptions } = _a, props = __rest(_a, ["placeholderOptions"]);
|
|
3168
|
-
const { children,
|
|
3168
|
+
const { children, hasFloatingMenu, hasButtonsMenu, bubbleOptions, i18n } = props;
|
|
3169
3169
|
const { editor, setEditor, mentionableUsers, triggerSave } = useChatContext();
|
|
3170
3170
|
const ext = editorExtensions({ placeholderOptions, mentionableUsers });
|
|
3171
3171
|
const ed = react.useEditor(Object.assign({ extensions: ext, content: children || "", editorProps: {
|
|
@@ -3184,8 +3184,9 @@ const CommentBox = (_a) => {
|
|
|
3184
3184
|
};
|
|
3185
3185
|
if (!ed)
|
|
3186
3186
|
return null;
|
|
3187
|
+
ed.on("create", ({ editor }) => setEditor(editor));
|
|
3187
3188
|
ed.on("update", ({ editor }) => setEditor(editor));
|
|
3188
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3189
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [hasFloatingMenu && (jsxRuntime.jsx(FloatingMenu, { editor: ed, tippyOptions: Object.assign({}, bubbleOptions) })), jsxRuntime.jsx(ChatBoxContainer, { children: jsxRuntime.jsx(EditorContainer$1, Object.assign({ editable: true, style: { marginLeft: 0 } }, { children: jsxRuntime.jsx(react.EditorContent, { editor: ed, onKeyDown: onKeyDown }) })) }), hasButtonsMenu && jsxRuntime.jsx(CommentBar, { editor: ed, i18n: i18n })] }));
|
|
3189
3190
|
};
|
|
3190
3191
|
|
|
3191
3192
|
const CommentCard = styled.styled(Card) `
|
|
@@ -3885,12 +3886,12 @@ const UgToggle = styled__default["default"](reactForms.Toggle) ``;
|
|
|
3885
3886
|
**/
|
|
3886
3887
|
const Toggle = (props) => jsxRuntime.jsx(UgToggle, Object.assign({}, props));
|
|
3887
3888
|
|
|
3888
|
-
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
3889
|
-
margin-bottom: ${theme.space.lg};
|
|
3890
|
-
|
|
3891
|
-
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
3892
|
-
margin-bottom: ${theme.space.md};
|
|
3893
|
-
}
|
|
3889
|
+
const StyledCol$1 = styled__default["default"](reactGrid.Col) `
|
|
3890
|
+
margin-bottom: ${theme.space.lg};
|
|
3891
|
+
|
|
3892
|
+
@media screen and (max-width: ${theme.breakpoints.sm}) {
|
|
3893
|
+
margin-bottom: ${theme.space.md};
|
|
3894
|
+
}
|
|
3894
3895
|
`;
|
|
3895
3896
|
const Col = (props) => jsxRuntime.jsx(StyledCol$1, Object.assign({}, props));
|
|
3896
3897
|
|
|
@@ -5921,47 +5922,47 @@ Slider.Slide = Slide;
|
|
|
5921
5922
|
Slider.PrevButton = PrevButton;
|
|
5922
5923
|
Slider.NextButton = NextButton;
|
|
5923
5924
|
|
|
5924
|
-
const UgStep = styled__default["default"](reactAccordions.Stepper.Step) `
|
|
5925
|
-
svg {
|
|
5926
|
-
color: ${({ theme }) => theme.palette.green[700]};
|
|
5927
|
-
}
|
|
5925
|
+
const UgStep = styled__default["default"](reactAccordions.Stepper.Step) `
|
|
5926
|
+
svg {
|
|
5927
|
+
color: ${({ theme }) => theme.palette.green[700]};
|
|
5928
|
+
}
|
|
5928
5929
|
`;
|
|
5929
5930
|
const UgLabel = styled__default["default"](reactAccordions.Stepper.Label) ``;
|
|
5930
|
-
const UgStepper = styled__default["default"](reactAccordions.Stepper) `
|
|
5931
|
-
div[data-garden-id="accordions.step_icon"] {
|
|
5932
|
-
background-color: ${({ theme }) => theme.palette.grey[200]};
|
|
5933
|
-
color: ${({ theme }) => theme.palette.grey[800]};
|
|
5934
|
-
font-weight: bold;
|
|
5935
|
-
}
|
|
5936
|
-
|
|
5931
|
+
const UgStepper = styled__default["default"](reactAccordions.Stepper) `
|
|
5932
|
+
div[data-garden-id="accordions.step_icon"] {
|
|
5933
|
+
background-color: ${({ theme }) => theme.palette.grey[200]};
|
|
5934
|
+
color: ${({ theme }) => theme.palette.grey[800]};
|
|
5935
|
+
font-weight: bold;
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5937
5938
|
${(props) => props.activeIndex !== undefined &&
|
|
5938
|
-
`
|
|
5939
|
-
${UgStep}:nth-child(${props.activeIndex + 1}) {
|
|
5940
|
-
|
|
5941
|
-
div[data-garden-id="accordions.step_icon"] {
|
|
5942
|
-
background-color: ${props.theme.palette.blue[600]};
|
|
5943
|
-
color: white;
|
|
5944
|
-
}
|
|
5945
|
-
|
|
5946
|
-
${UgLabel} {
|
|
5947
|
-
font-weight: 500;
|
|
5948
|
-
color: ${props.theme.palette.blue[600]};
|
|
5949
|
-
}
|
|
5950
|
-
}
|
|
5951
|
-
`}
|
|
5952
|
-
`;
|
|
5953
|
-
const UgContent = styled__default["default"](reactAccordions.Stepper.Content) `
|
|
5954
|
-
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.sm} ${theme.space.sm} 24px`};
|
|
5955
|
-
margin-top: 0;
|
|
5956
|
-
margin-bottom: 0;
|
|
5957
|
-
> div {
|
|
5958
|
-
color: ${({ theme }) => theme.palette.grey[600]};
|
|
5959
|
-
}
|
|
5939
|
+
`
|
|
5940
|
+
${UgStep}:nth-child(${props.activeIndex + 1}) {
|
|
5941
|
+
|
|
5942
|
+
div[data-garden-id="accordions.step_icon"] {
|
|
5943
|
+
background-color: ${props.theme.palette.blue[600]};
|
|
5944
|
+
color: white;
|
|
5945
|
+
}
|
|
5946
|
+
|
|
5947
|
+
${UgLabel} {
|
|
5948
|
+
font-weight: 500;
|
|
5949
|
+
color: ${props.theme.palette.blue[600]};
|
|
5950
|
+
}
|
|
5951
|
+
}
|
|
5952
|
+
`}
|
|
5953
|
+
`;
|
|
5954
|
+
const UgContent = styled__default["default"](reactAccordions.Stepper.Content) `
|
|
5955
|
+
padding: ${({ theme }) => `${theme.space.sm} ${theme.space.sm} ${theme.space.sm} 24px`};
|
|
5956
|
+
margin-top: 0;
|
|
5957
|
+
margin-bottom: 0;
|
|
5958
|
+
> div {
|
|
5959
|
+
color: ${({ theme }) => theme.palette.grey[600]};
|
|
5960
|
+
}
|
|
5960
5961
|
`;
|
|
5961
|
-
const StyledAccordionHeader = styled__default["default"](Accordion.Header) `
|
|
5962
|
-
button, svg {
|
|
5963
|
-
padding: ${({ theme }) => `${theme.space.xs} ${theme.space.md}`};
|
|
5964
|
-
}
|
|
5962
|
+
const StyledAccordionHeader = styled__default["default"](Accordion.Header) `
|
|
5963
|
+
button, svg {
|
|
5964
|
+
padding: ${({ theme }) => `${theme.space.xs} ${theme.space.md}`};
|
|
5965
|
+
}
|
|
5965
5966
|
`;
|
|
5966
5967
|
/**
|
|
5967
5968
|
* A Stepper guides users through steps of a task in sequential order.
|
|
@@ -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;
|
|
@@ -8,7 +8,7 @@ export type SuggestedUser = {
|
|
|
8
8
|
};
|
|
9
9
|
export interface ChatEditorArgs extends Partial<EditorOptions> {
|
|
10
10
|
placeholderOptions?: Partial<PlaceholderOptions>;
|
|
11
|
-
|
|
11
|
+
hasFloatingMenu?: boolean;
|
|
12
12
|
hasButtonsMenu?: boolean;
|
|
13
13
|
bubbleOptions?: any;
|
|
14
14
|
author: Author;
|