@taiv/ui 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/README.md +1 -0
- package/dist/components/Data/CheckboxTable.d.ts +21 -0
- package/dist/components/Data/CheckboxTable.d.ts.map +1 -0
- package/dist/components/Data/CheckboxTable.js +85 -0
- package/dist/components/Data/RemovableItemList.d.ts +10 -0
- package/dist/components/Data/RemovableItemList.d.ts.map +1 -0
- package/dist/components/Data/RemovableItemList.js +44 -0
- package/dist/components/Info/Modals/ConfirmationModal.d.ts +18 -0
- package/dist/components/Info/Modals/ConfirmationModal.d.ts.map +1 -0
- package/dist/components/Info/Modals/ConfirmationModal.js +76 -0
- package/dist/components/Info/Modals/InfoModal.d.ts +15 -0
- package/dist/components/Info/Modals/InfoModal.d.ts.map +1 -0
- package/dist/components/Info/Modals/InfoModal.js +70 -0
- package/dist/components/Info/Modals/Modal.d.ts +13 -0
- package/dist/components/Info/Modals/Modal.d.ts.map +1 -0
- package/dist/components/Info/Modals/Modal.js +42 -0
- package/dist/components/Info/Modals/ModalProvider.d.ts +5 -0
- package/dist/components/Info/Modals/ModalProvider.d.ts.map +1 -0
- package/dist/components/Info/Modals/ModalProvider.js +15 -0
- package/dist/components/Info/Modals/variants.d.ts +63 -0
- package/dist/components/Info/Modals/variants.d.ts.map +1 -0
- package/dist/components/Info/Modals/variants.js +63 -0
- package/dist/components/Info/Notifications/NotificationProvider.d.ts +2 -0
- package/dist/components/Info/Notifications/NotificationProvider.d.ts.map +1 -0
- package/dist/components/Info/Notifications/NotificationProvider.js +46 -0
- package/dist/components/Info/Notifications/Notifications.d.ts +16 -0
- package/dist/components/Info/Notifications/Notifications.d.ts.map +1 -0
- package/dist/components/Info/Notifications/Notifications.js +41 -0
- package/dist/components/Info/Notifications/variants.d.ts +39 -0
- package/dist/components/Info/Notifications/variants.d.ts.map +1 -0
- package/dist/components/Info/Notifications/variants.js +41 -0
- package/dist/components/Info/Tooltips/InfoTooltip.d.ts +18 -0
- package/dist/components/Info/Tooltips/InfoTooltip.d.ts.map +1 -0
- package/dist/components/Info/Tooltips/InfoTooltip.js +20 -0
- package/dist/components/Info/Tooltips/Tooltip.d.ts +13 -0
- package/dist/components/Info/Tooltips/Tooltip.d.ts.map +1 -0
- package/dist/components/Info/Tooltips/Tooltip.js +35 -0
- package/dist/components/Inputs/Buttons/Button.d.ts +11 -0
- package/dist/components/Inputs/Buttons/Button.d.ts.map +1 -0
- package/dist/components/Inputs/Buttons/Button.js +27 -0
- package/dist/components/Inputs/Buttons/UnstyledButton.d.ts +10 -0
- package/dist/components/Inputs/Buttons/UnstyledButton.d.ts.map +1 -0
- package/dist/components/Inputs/Buttons/UnstyledButton.js +6 -0
- package/dist/components/Inputs/Buttons/shared/sizes.d.ts +25 -0
- package/dist/components/Inputs/Buttons/shared/sizes.d.ts.map +1 -0
- package/dist/components/Inputs/Buttons/shared/sizes.js +7 -0
- package/dist/components/Inputs/Buttons/shared/variants.d.ts +141 -0
- package/dist/components/Inputs/Buttons/shared/variants.d.ts.map +1 -0
- package/dist/components/Inputs/Buttons/shared/variants.js +141 -0
- package/dist/components/Inputs/Controls/Checkbox.d.ts +27 -0
- package/dist/components/Inputs/Controls/Checkbox.d.ts.map +1 -0
- package/dist/components/Inputs/Controls/Checkbox.js +55 -0
- package/dist/components/Inputs/Controls/Toggle.d.ts +29 -0
- package/dist/components/Inputs/Controls/Toggle.d.ts.map +1 -0
- package/dist/components/Inputs/Controls/Toggle.js +42 -0
- package/dist/components/Inputs/Dropdowns/FontSelect.d.ts +14 -0
- package/dist/components/Inputs/Dropdowns/FontSelect.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/FontSelect.js +48 -0
- package/dist/components/Inputs/Dropdowns/MultiSelect.d.ts +12 -0
- package/dist/components/Inputs/Dropdowns/MultiSelect.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/MultiSelect.js +94 -0
- package/dist/components/Inputs/Dropdowns/Select.d.ts +11 -0
- package/dist/components/Inputs/Dropdowns/Select.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/Select.js +62 -0
- package/dist/components/Inputs/Dropdowns/shared/fontSelectList.d.ts +12 -0
- package/dist/components/Inputs/Dropdowns/shared/fontSelectList.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/shared/fontSelectList.js +68 -0
- package/dist/components/Inputs/Dropdowns/shared/sizes.d.ts +36 -0
- package/dist/components/Inputs/Dropdowns/shared/sizes.d.ts.map +1 -0
- package/dist/components/Inputs/Dropdowns/shared/sizes.js +33 -0
- package/dist/components/Inputs/Sliders/Slider.d.ts +16 -0
- package/dist/components/Inputs/Sliders/Slider.d.ts.map +1 -0
- package/dist/components/Inputs/Sliders/Slider.js +91 -0
- package/dist/components/Inputs/Sliders/VolumeSlider.d.ts +6 -0
- package/dist/components/Inputs/Sliders/VolumeSlider.d.ts.map +1 -0
- package/dist/components/Inputs/Sliders/VolumeSlider.js +37 -0
- package/dist/components/Inputs/Sliders/shared/sizes.d.ts +45 -0
- package/dist/components/Inputs/Sliders/shared/sizes.d.ts.map +1 -0
- package/dist/components/Inputs/Sliders/shared/sizes.js +27 -0
- package/dist/components/Inputs/TextInputs/AutoComplete.d.ts +11 -0
- package/dist/components/Inputs/TextInputs/AutoComplete.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/AutoComplete.js +57 -0
- package/dist/components/Inputs/TextInputs/PasswordInput.d.ts +12 -0
- package/dist/components/Inputs/TextInputs/PasswordInput.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/PasswordInput.js +52 -0
- package/dist/components/Inputs/TextInputs/SearchBar.d.ts +7 -0
- package/dist/components/Inputs/TextInputs/SearchBar.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/SearchBar.js +23 -0
- package/dist/components/Inputs/TextInputs/TextArea.d.ts +12 -0
- package/dist/components/Inputs/TextInputs/TextArea.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/TextArea.js +33 -0
- package/dist/components/Inputs/TextInputs/TextInput.d.ts +12 -0
- package/dist/components/Inputs/TextInputs/TextInput.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/TextInput.js +32 -0
- package/dist/components/Inputs/TextInputs/shared/sizes.d.ts +27 -0
- package/dist/components/Inputs/TextInputs/shared/sizes.d.ts.map +1 -0
- package/dist/components/Inputs/TextInputs/shared/sizes.js +6 -0
- package/dist/components/Layout/Box.d.ts +10 -0
- package/dist/components/Layout/Box.d.ts.map +1 -0
- package/dist/components/Layout/Box.js +6 -0
- package/dist/components/Layout/Center.d.ts +9 -0
- package/dist/components/Layout/Center.d.ts.map +1 -0
- package/dist/components/Layout/Center.js +6 -0
- package/dist/components/Layout/Divider.d.ts +9 -0
- package/dist/components/Layout/Divider.d.ts.map +1 -0
- package/dist/components/Layout/Divider.js +7 -0
- package/dist/components/Layout/Frame.d.ts +12 -0
- package/dist/components/Layout/Frame.d.ts.map +1 -0
- package/dist/components/Layout/Frame.js +7 -0
- package/dist/components/Layout/Group.d.ts +10 -0
- package/dist/components/Layout/Group.d.ts.map +1 -0
- package/dist/components/Layout/Group.js +6 -0
- package/dist/components/Layout/Loader.d.ts +8 -0
- package/dist/components/Layout/Loader.d.ts.map +1 -0
- package/dist/components/Layout/Loader.js +6 -0
- package/dist/components/Layout/Stack.d.ts +10 -0
- package/dist/components/Layout/Stack.d.ts.map +1 -0
- package/dist/components/Layout/Stack.js +6 -0
- package/dist/components/Misc/Copy.d.ts +10 -0
- package/dist/components/Misc/Copy.d.ts.map +1 -0
- package/dist/components/Misc/Copy.js +18 -0
- package/dist/components/Misc/MediaQuery.d.ts +3 -0
- package/dist/components/Misc/MediaQuery.d.ts.map +1 -0
- package/dist/components/Misc/MediaQuery.js +2 -0
- package/dist/components/Misc/Transition.d.ts +4 -0
- package/dist/components/Misc/Transition.d.ts.map +1 -0
- package/dist/components/Misc/Transition.js +6 -0
- package/dist/components/Typography/CollapsibleText.d.ts +14 -0
- package/dist/components/Typography/CollapsibleText.d.ts.map +1 -0
- package/dist/components/Typography/CollapsibleText.js +16 -0
- package/dist/components/Typography/Text.d.ts +14 -0
- package/dist/components/Typography/Text.d.ts.map +1 -0
- package/dist/components/Typography/Text.js +20 -0
- package/dist/components/Typography/Title.d.ts +22 -0
- package/dist/components/Typography/Title.d.ts.map +1 -0
- package/dist/components/Typography/Title.js +30 -0
- package/dist/components/index.d.ts +38 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +43 -0
- package/dist/constants/colors.d.ts +79 -0
- package/dist/constants/colors.d.ts.map +1 -0
- package/dist/constants/colors.js +53 -0
- package/dist/constants/font.d.ts +245 -0
- package/dist/constants/font.d.ts.map +1 -0
- package/dist/constants/font.js +114 -0
- package/dist/constants/index.d.ts +3 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +2 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +5 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/package.json +50 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { componentVariants } from './variants';
|
|
2
|
+
export declare const useNotifications: () => {
|
|
3
|
+
show: (options: {
|
|
4
|
+
variant?: keyof typeof componentVariants;
|
|
5
|
+
message: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
}) => void;
|
|
9
|
+
showError: () => void;
|
|
10
|
+
showLoading: (options: {
|
|
11
|
+
message: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
}) => string;
|
|
14
|
+
hide: (id: string) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=Notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notifications.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Notifications/Notifications.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,gBAAgB;oBAMJ;QACrB,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;QACzC,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;KACb;;2BAmB6B;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;eA7BzC,MAAM;CAiD/B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { notifications as mantineNotifications } from '@mantine/notifications';
|
|
2
|
+
import { componentVariants } from './variants';
|
|
3
|
+
export const useNotifications = () => {
|
|
4
|
+
const hide = async (id) => {
|
|
5
|
+
mantineNotifications.hide(id);
|
|
6
|
+
await new Promise((resolve) => setTimeout(resolve, 200));
|
|
7
|
+
};
|
|
8
|
+
const show = (options) => {
|
|
9
|
+
const { variant = 'info', message, title, id } = options;
|
|
10
|
+
const selectedVariant = componentVariants[variant];
|
|
11
|
+
mantineNotifications.show({
|
|
12
|
+
title: title || selectedVariant.defaultTitle,
|
|
13
|
+
message,
|
|
14
|
+
icon: selectedVariant.icon,
|
|
15
|
+
autoClose: selectedVariant.autoClose,
|
|
16
|
+
id,
|
|
17
|
+
styles: {
|
|
18
|
+
root: {
|
|
19
|
+
borderLeft: `4px solid ${selectedVariant.color}`,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
const showLoading = (options) => {
|
|
25
|
+
const notificationId = `${Math.random()}-${Math.random()}`;
|
|
26
|
+
show({
|
|
27
|
+
id: notificationId,
|
|
28
|
+
message: options.message,
|
|
29
|
+
title: options.title,
|
|
30
|
+
variant: 'loading',
|
|
31
|
+
});
|
|
32
|
+
return notificationId;
|
|
33
|
+
};
|
|
34
|
+
const showError = () => {
|
|
35
|
+
show({
|
|
36
|
+
variant: 'error',
|
|
37
|
+
message: 'An error has occurred. Please try again. If the issue persists, please contact us at support@taiv.tv',
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
return { show, showError, showLoading, hide };
|
|
41
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const componentVariants: {
|
|
2
|
+
readonly success: {
|
|
3
|
+
readonly defaultTitle: "Success!";
|
|
4
|
+
readonly color: "#00A63E";
|
|
5
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
readonly autoClose: 4000;
|
|
7
|
+
};
|
|
8
|
+
readonly error: {
|
|
9
|
+
readonly defaultTitle: "Oops!";
|
|
10
|
+
readonly color: "#FB2C36";
|
|
11
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
readonly autoClose: false;
|
|
13
|
+
};
|
|
14
|
+
readonly warning: {
|
|
15
|
+
readonly defaultTitle: "Warning";
|
|
16
|
+
readonly color: "#FE9A00";
|
|
17
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
readonly autoClose: 4000;
|
|
19
|
+
};
|
|
20
|
+
readonly info: {
|
|
21
|
+
readonly defaultTitle: "Note";
|
|
22
|
+
readonly color: "#00A6F4";
|
|
23
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
readonly autoClose: 4000;
|
|
25
|
+
};
|
|
26
|
+
readonly loading: {
|
|
27
|
+
readonly defaultTitle: "Loading...";
|
|
28
|
+
readonly color: "#00A6F4";
|
|
29
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
readonly autoClose: false;
|
|
31
|
+
};
|
|
32
|
+
readonly copy: {
|
|
33
|
+
readonly defaultTitle: "Copied to clipboard!";
|
|
34
|
+
readonly color: "#0081CE";
|
|
35
|
+
readonly icon: import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
readonly autoClose: 4000;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Notifications/variants.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCpB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { primary, error, success, warning } from '../../../constants/colors';
|
|
3
|
+
import { Loader } from '../../Layout/Loader';
|
|
4
|
+
export const componentVariants = {
|
|
5
|
+
success: {
|
|
6
|
+
defaultTitle: 'Success!',
|
|
7
|
+
color: success[200],
|
|
8
|
+
icon: _jsx("i", { className: "fas fa-check-circle", style: { color: success[200] } }),
|
|
9
|
+
autoClose: 4000,
|
|
10
|
+
},
|
|
11
|
+
error: {
|
|
12
|
+
defaultTitle: 'Oops!',
|
|
13
|
+
color: error[100],
|
|
14
|
+
icon: _jsx("i", { className: "fas fa-exclamation-circle", style: { color: error[100] } }),
|
|
15
|
+
autoClose: false,
|
|
16
|
+
},
|
|
17
|
+
warning: {
|
|
18
|
+
defaultTitle: 'Warning',
|
|
19
|
+
color: warning[100],
|
|
20
|
+
icon: _jsx("i", { className: "fas fa-exclamation-triangle", style: { color: warning[100] } }),
|
|
21
|
+
autoClose: 4000,
|
|
22
|
+
},
|
|
23
|
+
info: {
|
|
24
|
+
defaultTitle: 'Note',
|
|
25
|
+
color: primary[200],
|
|
26
|
+
icon: _jsx("i", { className: "fas fa-info-circle", style: { color: primary[200] } }),
|
|
27
|
+
autoClose: 4000,
|
|
28
|
+
},
|
|
29
|
+
loading: {
|
|
30
|
+
defaultTitle: 'Loading...',
|
|
31
|
+
color: primary[200],
|
|
32
|
+
icon: _jsx(Loader, { size: "md", color: primary[200] }),
|
|
33
|
+
autoClose: false,
|
|
34
|
+
},
|
|
35
|
+
copy: {
|
|
36
|
+
defaultTitle: 'Copied to clipboard!',
|
|
37
|
+
color: primary[300],
|
|
38
|
+
icon: _jsx("i", { className: "fas fa-copy", style: { color: primary[300] } }),
|
|
39
|
+
autoClose: 4000,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CSSObject } from '@mantine/styles';
|
|
2
|
+
interface InfoTooltipProps {
|
|
3
|
+
text: string;
|
|
4
|
+
position?: 'top-end' | 'bottom-end' | 'top-start' | 'bottom-start';
|
|
5
|
+
size?: keyof typeof componentSizes;
|
|
6
|
+
offset?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
styles?: Record<string, CSSObject>;
|
|
9
|
+
}
|
|
10
|
+
declare const componentSizes: {
|
|
11
|
+
readonly sm: "1.2rem";
|
|
12
|
+
readonly md: "1.6rem";
|
|
13
|
+
readonly lg: "2rem";
|
|
14
|
+
readonly xl: "2.4rem";
|
|
15
|
+
};
|
|
16
|
+
declare const InfoTooltip: ({ text, position, size, offset, className, styles }: InfoTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { InfoTooltip };
|
|
18
|
+
//# sourceMappingURL=InfoTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoTooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Tooltips/InfoTooltip.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,CAAC;IACnE,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,cAAc;;;;;CAKV,CAAC;AAEX,QAAA,MAAM,WAAW,GAAI,qDAA0E,gBAAgB,4CAc9G,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { neutral } from '../../../constants/colors';
|
|
3
|
+
import { Tooltip } from './Tooltip';
|
|
4
|
+
const componentSizes = {
|
|
5
|
+
sm: '1.2rem',
|
|
6
|
+
md: '1.6rem',
|
|
7
|
+
lg: '2rem',
|
|
8
|
+
xl: '2.4rem',
|
|
9
|
+
};
|
|
10
|
+
const InfoTooltip = ({ text, position = 'top-start', size = 'md', offset, className, styles }) => {
|
|
11
|
+
const style = {
|
|
12
|
+
icon: {
|
|
13
|
+
color: neutral[100],
|
|
14
|
+
fontSize: componentSizes[size],
|
|
15
|
+
},
|
|
16
|
+
...styles,
|
|
17
|
+
};
|
|
18
|
+
return (_jsx(Tooltip, { text: text, position: position, offset: offset, className: className, children: _jsx("i", { className: "fas fa-info-circle", style: style.icon }) }));
|
|
19
|
+
};
|
|
20
|
+
export { InfoTooltip };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CSSObject } from '@mantine/styles';
|
|
3
|
+
interface TooltipProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
text: string;
|
|
6
|
+
position?: 'top-end' | 'bottom-end' | 'top-start' | 'bottom-start';
|
|
7
|
+
offset?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
styles?: Record<string, CSSObject>;
|
|
10
|
+
}
|
|
11
|
+
declare const Tooltip: ({ children, text, position, offset, className, styles }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export { Tooltip };
|
|
13
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/Info/Tooltips/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,UAAU,YAAY;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,WAAW,GAAG,cAAc,CAAC;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CACpC;AAED,QAAA,MAAM,OAAO,GAAI,yDAAuE,YAAY,4CA+CnG,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as MantineTooltip, Box } from '@mantine/core';
|
|
3
|
+
import { neutral } from '../../../constants/colors';
|
|
4
|
+
import { fontBase, fontSize, fontWeight } from '../../../constants/font';
|
|
5
|
+
const Tooltip = ({ children, text, position = 'top-start', offset, className, styles }) => {
|
|
6
|
+
const positionToTransition = {
|
|
7
|
+
'top-end': 'slide-up',
|
|
8
|
+
'bottom-end': 'slide-down',
|
|
9
|
+
'top-start': 'slide-up',
|
|
10
|
+
'bottom-start': 'slide-down',
|
|
11
|
+
};
|
|
12
|
+
const wrapperStyle = {
|
|
13
|
+
display: 'flex',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
justifyContent: 'center',
|
|
16
|
+
width: 'fit-content',
|
|
17
|
+
};
|
|
18
|
+
const tooltipStyle = {
|
|
19
|
+
tooltip: {
|
|
20
|
+
...fontBase,
|
|
21
|
+
color: neutral[200],
|
|
22
|
+
fontWeight: fontWeight['medium'],
|
|
23
|
+
boxShadow: '0px 0px 19px 0px #00000040',
|
|
24
|
+
borderRadius: '8px',
|
|
25
|
+
textWrap: 'wrap',
|
|
26
|
+
maxWidth: '375px',
|
|
27
|
+
padding: '0.75rem 1.125rem',
|
|
28
|
+
...fontSize['sm'],
|
|
29
|
+
height: 'fit-content',
|
|
30
|
+
},
|
|
31
|
+
...styles,
|
|
32
|
+
};
|
|
33
|
+
return (_jsx(MantineTooltip, { withArrow: true, arrowRadius: 0, arrowSize: 8, label: text, position: position, transitionProps: { transition: positionToTransition[position], duration: 200 }, color: "white", styles: tooltipStyle, offset: offset, className: className, children: _jsx(Box, { sx: wrapperStyle, children: children }) }));
|
|
34
|
+
};
|
|
35
|
+
export { Tooltip };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ButtonProps as MantineButtonProps } from '@mantine/core';
|
|
2
|
+
import { componentSizes } from './shared/sizes';
|
|
3
|
+
import { componentVariants } from './shared/variants';
|
|
4
|
+
export interface ButtonProps extends MantineButtonProps {
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
size?: keyof typeof componentSizes;
|
|
7
|
+
variant?: keyof typeof componentVariants;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Button: ({ onClick, size, variant, fullWidth, styles, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/Inputs/Buttons/Button.tsx"],"names":[],"mappings":"AACA,OAAO,EAA2B,WAAW,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE3F,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,OAAO,cAAc,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,OAAO,iBAAiB,CAAC;IACzC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,GAAI,yDAOpB,WAAW,4CAuBb,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button as MantineButton } from '@mantine/core';
|
|
3
|
+
import { fontBase, fontWeight } from '../../../constants/font';
|
|
4
|
+
import { componentSizes } from './shared/sizes';
|
|
5
|
+
import { componentVariants } from './shared/variants';
|
|
6
|
+
export const Button = ({ onClick, size = 'md', variant = 'primary', fullWidth = false, styles, ...props }) => {
|
|
7
|
+
const selectedVariant = componentVariants[variant];
|
|
8
|
+
const selectedSize = componentSizes[size];
|
|
9
|
+
const style = {
|
|
10
|
+
root: {
|
|
11
|
+
borderRadius: '8px',
|
|
12
|
+
border: '1px solid white',
|
|
13
|
+
width: fullWidth ? '100%' : 'fit-content',
|
|
14
|
+
height: `${selectedSize.height}rem`,
|
|
15
|
+
padding: selectedSize.padding,
|
|
16
|
+
minWidth: `${selectedSize.minWidth}rem`,
|
|
17
|
+
fontSize: selectedSize.fontSize,
|
|
18
|
+
...selectedVariant,
|
|
19
|
+
},
|
|
20
|
+
label: {
|
|
21
|
+
...fontBase,
|
|
22
|
+
fontWeight: fontWeight['semibold'],
|
|
23
|
+
},
|
|
24
|
+
...styles,
|
|
25
|
+
};
|
|
26
|
+
return _jsx(MantineButton, { styles: style, size: size, onClick: onClick, ...props });
|
|
27
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UnstyledButtonProps as MantineUnstyledButtonProps } from '@mantine/core';
|
|
3
|
+
import { CSSObject } from '@mantine/styles';
|
|
4
|
+
interface UnstyledButtonProps extends MantineUnstyledButtonProps {
|
|
5
|
+
styles?: Record<string, CSSObject>;
|
|
6
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const UnstyledButton: ({ styles, onClick, ...props }: UnstyledButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { UnstyledButton };
|
|
10
|
+
//# sourceMappingURL=UnstyledButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnstyledButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Inputs/Buttons/UnstyledButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,mBAAmB,IAAI,0BAA0B,EAClD,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,UAAU,mBAAoB,SAAQ,0BAA0B;IAC9D,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAChE;AAED,QAAA,MAAM,cAAc,GAAI,+BAA+B,mBAAmB,4CAEzE,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { UnstyledButton as MantineUnstyledButton, } from '@mantine/core';
|
|
3
|
+
const UnstyledButton = ({ styles, onClick, ...props }) => {
|
|
4
|
+
return _jsx(MantineUnstyledButton, { styles: styles, onClick: onClick, ...props });
|
|
5
|
+
};
|
|
6
|
+
export { UnstyledButton };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const componentSizes: {
|
|
2
|
+
sm: {
|
|
3
|
+
padding: string;
|
|
4
|
+
minWidth: number;
|
|
5
|
+
fontSize: string;
|
|
6
|
+
lineHeight: string;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
md: {
|
|
10
|
+
padding: string;
|
|
11
|
+
minWidth: number;
|
|
12
|
+
fontSize: string;
|
|
13
|
+
lineHeight: string;
|
|
14
|
+
height: number;
|
|
15
|
+
};
|
|
16
|
+
lg: {
|
|
17
|
+
padding: string;
|
|
18
|
+
minWidth: number;
|
|
19
|
+
fontSize: string;
|
|
20
|
+
lineHeight: string;
|
|
21
|
+
height: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export { componentSizes };
|
|
25
|
+
//# sourceMappingURL=sizes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizes.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Buttons/shared/sizes.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;CAInB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { fontSize } from '../../../../constants/font';
|
|
2
|
+
const componentSizes = {
|
|
3
|
+
sm: { height: 3, ...fontSize['sm'], padding: '0.8rem 1.8rem', minWidth: 6.8 },
|
|
4
|
+
md: { height: 4, ...fontSize['md'], padding: '0.8rem 2.4rem', minWidth: 11.2 },
|
|
5
|
+
lg: { height: 4.8, ...fontSize['lg'], padding: '0.8rem 4rem', minWidth: 15.2 },
|
|
6
|
+
};
|
|
7
|
+
export { componentSizes };
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
export declare const componentVariants: {
|
|
2
|
+
readonly primary: {
|
|
3
|
+
readonly background: "linear-gradient(to right, #0081CE, #00A6F4)";
|
|
4
|
+
readonly color: "white";
|
|
5
|
+
readonly '&:hover': {
|
|
6
|
+
readonly background: "linear-gradient(to right, #0081CE, #0081CE)";
|
|
7
|
+
readonly transition: "background 0.3s ease-in-out";
|
|
8
|
+
};
|
|
9
|
+
readonly '&:active': {
|
|
10
|
+
readonly background: "white";
|
|
11
|
+
readonly border: "1px solid #00A6F4";
|
|
12
|
+
readonly color: "#00A6F4";
|
|
13
|
+
};
|
|
14
|
+
readonly '&:disabled': {
|
|
15
|
+
readonly background: "#EDEDED";
|
|
16
|
+
readonly color: "#D9D9D9";
|
|
17
|
+
};
|
|
18
|
+
readonly '&[data-loading]': {
|
|
19
|
+
readonly '& .mantine-Button-icon svg': {
|
|
20
|
+
readonly stroke: "white";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
readonly secondary: {
|
|
25
|
+
readonly background: "white";
|
|
26
|
+
readonly color: "#6D6D6D";
|
|
27
|
+
readonly border: "1px solid #6D6D6D";
|
|
28
|
+
readonly '&:hover': {
|
|
29
|
+
readonly background: "#D9D9D9";
|
|
30
|
+
readonly border: "1px solid #D9D9D9";
|
|
31
|
+
readonly color: "white";
|
|
32
|
+
};
|
|
33
|
+
readonly '&:active': {
|
|
34
|
+
readonly background: "#D9D9D9";
|
|
35
|
+
readonly border: "1px solid #6D6D6D";
|
|
36
|
+
readonly color: "#6D6D6D";
|
|
37
|
+
};
|
|
38
|
+
readonly '&:disabled': {
|
|
39
|
+
readonly background: "#EDEDED";
|
|
40
|
+
readonly border: "1px solid #EDEDED";
|
|
41
|
+
readonly color: "#D9D9D9";
|
|
42
|
+
};
|
|
43
|
+
readonly '&[data-loading]': {
|
|
44
|
+
readonly '& .mantine-Button-icon svg': {
|
|
45
|
+
readonly stroke: "#6D6D6D";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly cancel: {
|
|
50
|
+
readonly background: "#C10007";
|
|
51
|
+
readonly color: "white";
|
|
52
|
+
readonly '&:hover': {
|
|
53
|
+
readonly background: "#FB2C36";
|
|
54
|
+
};
|
|
55
|
+
readonly '&:active': {
|
|
56
|
+
readonly background: "white";
|
|
57
|
+
readonly border: "1px solid #C10007";
|
|
58
|
+
readonly color: "#C10007";
|
|
59
|
+
};
|
|
60
|
+
readonly '&:disabled': {
|
|
61
|
+
readonly background: "#FFD7D9";
|
|
62
|
+
readonly border: "1px solid #FFD7D9";
|
|
63
|
+
readonly color: "white";
|
|
64
|
+
};
|
|
65
|
+
readonly '&[data-loading]': {
|
|
66
|
+
readonly '& .mantine-Button-icon svg': {
|
|
67
|
+
readonly stroke: "white";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly success: {
|
|
72
|
+
readonly background: "#00A63E";
|
|
73
|
+
readonly color: "white";
|
|
74
|
+
readonly '&:hover': {
|
|
75
|
+
readonly background: "#00C951";
|
|
76
|
+
};
|
|
77
|
+
readonly '&:active': {
|
|
78
|
+
readonly background: "white";
|
|
79
|
+
readonly border: "1px solid #00A63E";
|
|
80
|
+
readonly color: "#00A63E";
|
|
81
|
+
};
|
|
82
|
+
readonly '&:disabled': {
|
|
83
|
+
readonly background: "#E6F4E7";
|
|
84
|
+
readonly border: "1px solid #E6F4E7";
|
|
85
|
+
readonly color: "white";
|
|
86
|
+
};
|
|
87
|
+
readonly '&[data-loading]': {
|
|
88
|
+
readonly '& .mantine-Button-icon svg': {
|
|
89
|
+
readonly stroke: "white";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly warning: {
|
|
94
|
+
readonly background: "#E17100";
|
|
95
|
+
readonly color: "white";
|
|
96
|
+
readonly '&:hover': {
|
|
97
|
+
readonly background: "#FE9A00";
|
|
98
|
+
};
|
|
99
|
+
readonly '&:active': {
|
|
100
|
+
readonly background: "white";
|
|
101
|
+
readonly border: "1px solid #E17100";
|
|
102
|
+
readonly color: "#E17100";
|
|
103
|
+
};
|
|
104
|
+
readonly '&:disabled': {
|
|
105
|
+
readonly background: "#FFE5B4";
|
|
106
|
+
readonly border: "1px solid #FFE5B4";
|
|
107
|
+
readonly color: "white";
|
|
108
|
+
};
|
|
109
|
+
readonly '&[data-loading]': {
|
|
110
|
+
readonly '& .mantine-Button-icon svg': {
|
|
111
|
+
readonly stroke: "white";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
readonly text: {
|
|
116
|
+
readonly background: "transparent";
|
|
117
|
+
readonly color: "#6D6D6D";
|
|
118
|
+
readonly border: "none";
|
|
119
|
+
readonly padding: "0";
|
|
120
|
+
readonly height: "auto";
|
|
121
|
+
readonly minWidth: "unset";
|
|
122
|
+
readonly '&:hover': {
|
|
123
|
+
readonly background: "transparent";
|
|
124
|
+
readonly color: "#0081CE";
|
|
125
|
+
};
|
|
126
|
+
readonly '&:active': {
|
|
127
|
+
readonly background: "transparent";
|
|
128
|
+
readonly color: "#00A6F4";
|
|
129
|
+
};
|
|
130
|
+
readonly '&:disabled': {
|
|
131
|
+
readonly background: "transparent";
|
|
132
|
+
readonly color: "#D9D9D9";
|
|
133
|
+
};
|
|
134
|
+
readonly '&[data-loading]': {
|
|
135
|
+
readonly '& .mantine-Button-icon svg': {
|
|
136
|
+
readonly stroke: "#6D6D6D";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../../src/components/Inputs/Buttons/shared/variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2IpB,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { primary, neutral, error, success, warning } from '../../../../constants/colors';
|
|
2
|
+
export const componentVariants = {
|
|
3
|
+
primary: {
|
|
4
|
+
background: `linear-gradient(to right, ${primary[300]}, ${primary[200]})`,
|
|
5
|
+
color: 'white',
|
|
6
|
+
'&:hover': {
|
|
7
|
+
background: `linear-gradient(to right, ${primary[300]}, ${primary[300]})`,
|
|
8
|
+
transition: 'background 0.3s ease-in-out',
|
|
9
|
+
},
|
|
10
|
+
'&:active': {
|
|
11
|
+
background: 'white',
|
|
12
|
+
border: `1px solid ${primary[200]}`,
|
|
13
|
+
color: primary[200],
|
|
14
|
+
},
|
|
15
|
+
'&:disabled': {
|
|
16
|
+
background: neutral[50],
|
|
17
|
+
color: neutral[100],
|
|
18
|
+
},
|
|
19
|
+
'&[data-loading]': {
|
|
20
|
+
'& .mantine-Button-icon svg': {
|
|
21
|
+
stroke: 'white',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
secondary: {
|
|
26
|
+
background: 'white',
|
|
27
|
+
color: neutral[200],
|
|
28
|
+
border: `1px solid ${neutral[200]}`,
|
|
29
|
+
'&:hover': {
|
|
30
|
+
background: neutral[100],
|
|
31
|
+
border: `1px solid ${neutral[100]}`,
|
|
32
|
+
color: 'white',
|
|
33
|
+
},
|
|
34
|
+
'&:active': {
|
|
35
|
+
background: neutral[100],
|
|
36
|
+
border: `1px solid ${neutral[200]}`,
|
|
37
|
+
color: neutral[200],
|
|
38
|
+
},
|
|
39
|
+
'&:disabled': {
|
|
40
|
+
background: neutral[50],
|
|
41
|
+
border: `1px solid ${neutral[50]}`,
|
|
42
|
+
color: neutral[100],
|
|
43
|
+
},
|
|
44
|
+
'&[data-loading]': {
|
|
45
|
+
'& .mantine-Button-icon svg': {
|
|
46
|
+
stroke: neutral[200],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
cancel: {
|
|
51
|
+
background: error[200],
|
|
52
|
+
color: 'white',
|
|
53
|
+
'&:hover': {
|
|
54
|
+
background: error[100],
|
|
55
|
+
},
|
|
56
|
+
'&:active': {
|
|
57
|
+
background: 'white',
|
|
58
|
+
border: `1px solid ${error[200]}`,
|
|
59
|
+
color: error[200],
|
|
60
|
+
},
|
|
61
|
+
'&:disabled': {
|
|
62
|
+
background: error[50],
|
|
63
|
+
border: `1px solid ${error[50]}`,
|
|
64
|
+
color: 'white',
|
|
65
|
+
},
|
|
66
|
+
'&[data-loading]': {
|
|
67
|
+
'& .mantine-Button-icon svg': {
|
|
68
|
+
stroke: 'white',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
success: {
|
|
73
|
+
background: success[200],
|
|
74
|
+
color: 'white',
|
|
75
|
+
'&:hover': {
|
|
76
|
+
background: success[100],
|
|
77
|
+
},
|
|
78
|
+
'&:active': {
|
|
79
|
+
background: 'white',
|
|
80
|
+
border: `1px solid ${success[200]}`,
|
|
81
|
+
color: success[200],
|
|
82
|
+
},
|
|
83
|
+
'&:disabled': {
|
|
84
|
+
background: success[50],
|
|
85
|
+
border: `1px solid ${success[50]}`,
|
|
86
|
+
color: 'white',
|
|
87
|
+
},
|
|
88
|
+
'&[data-loading]': {
|
|
89
|
+
'& .mantine-Button-icon svg': {
|
|
90
|
+
stroke: 'white',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
warning: {
|
|
95
|
+
background: warning[200],
|
|
96
|
+
color: 'white',
|
|
97
|
+
'&:hover': {
|
|
98
|
+
background: warning[100],
|
|
99
|
+
},
|
|
100
|
+
'&:active': {
|
|
101
|
+
background: 'white',
|
|
102
|
+
border: `1px solid ${warning[200]}`,
|
|
103
|
+
color: warning[200],
|
|
104
|
+
},
|
|
105
|
+
'&:disabled': {
|
|
106
|
+
background: warning[50],
|
|
107
|
+
border: `1px solid ${warning[50]}`,
|
|
108
|
+
color: 'white',
|
|
109
|
+
},
|
|
110
|
+
'&[data-loading]': {
|
|
111
|
+
'& .mantine-Button-icon svg': {
|
|
112
|
+
stroke: 'white',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
text: {
|
|
117
|
+
background: 'transparent',
|
|
118
|
+
color: neutral[200],
|
|
119
|
+
border: 'none',
|
|
120
|
+
padding: '0',
|
|
121
|
+
height: 'auto',
|
|
122
|
+
minWidth: 'unset',
|
|
123
|
+
'&:hover': {
|
|
124
|
+
background: 'transparent',
|
|
125
|
+
color: primary[300],
|
|
126
|
+
},
|
|
127
|
+
'&:active': {
|
|
128
|
+
background: 'transparent',
|
|
129
|
+
color: primary[200],
|
|
130
|
+
},
|
|
131
|
+
'&:disabled': {
|
|
132
|
+
background: 'transparent',
|
|
133
|
+
color: neutral[100],
|
|
134
|
+
},
|
|
135
|
+
'&[data-loading]': {
|
|
136
|
+
'& .mantine-Button-icon svg': {
|
|
137
|
+
stroke: neutral[200],
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
};
|