myshell-react-lib 0.1.4 → 0.1.6
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/index.cjs +52 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
- package/src/common/assets/audio-playing.json +0 -3657
- package/src/common/constants/constants.ts +0 -24
- package/src/common/constants/types/common.ts +0 -10
- package/src/common/hooks/useAudioPlayer.tsx +0 -198
- package/src/common/hooks/useDevice.ts +0 -26
- package/src/common/hooks/useNativeBridge.ts +0 -42
- package/src/common/hooks/useNotification.tsx +0 -179
- package/src/common/hooks/useWindowWidth.ts +0 -19
- package/src/common/utils/common-helper.ts +0 -81
- package/src/components/ItemDemo.tsx +0 -15
- package/src/components/accordion.tsx +0 -126
- package/src/components/alert-dialog.tsx +0 -148
- package/src/components/alert.tsx +0 -65
- package/src/components/aspect-ratio.tsx +0 -7
- package/src/components/audio-player.tsx +0 -60
- package/src/components/audio-playing.tsx +0 -33
- package/src/components/avatar.tsx +0 -133
- package/src/components/badge.tsx +0 -67
- package/src/components/button/button.styles.ts +0 -258
- package/src/components/button/button.tsx +0 -215
- package/src/components/button/icon-button.styles.ts +0 -101
- package/src/components/button/icon-button.tsx +0 -100
- package/src/components/button/index.tsx +0 -3
- package/src/components/button/link-button.tsx +0 -184
- package/src/components/cascader.tsx +0 -175
- package/src/components/checkbox.tsx +0 -135
- package/src/components/command.tsx +0 -155
- package/src/components/context-menu.tsx +0 -198
- package/src/components/count-down.tsx +0 -83
- package/src/components/custom-notification.tsx +0 -95
- package/src/components/dialog.tsx +0 -158
- package/src/components/drawer.tsx +0 -116
- package/src/components/dropdown-menu.tsx +0 -196
- package/src/components/energy-progress.tsx +0 -55
- package/src/components/form.tsx +0 -201
- package/src/components/group.tsx +0 -9
- package/src/components/guide.tsx +0 -243
- package/src/components/icon.tsx +0 -96
- package/src/components/icons/index.tsx +0 -13
- package/src/components/icons/outline/ArrowLeftIcon.tsx +0 -28
- package/src/components/icons/outline/ArrowUpTrayIcon.tsx +0 -28
- package/src/components/icons/outline/CheckCircleIcon.tsx +0 -27
- package/src/components/icons/outline/ConfigIcon.tsx +0 -42
- package/src/components/icons/outline/DownIcon.tsx +0 -18
- package/src/components/icons/outline/FilterIcon.tsx +0 -20
- package/src/components/icons/outline/PencilSquareIcon.tsx +0 -28
- package/src/components/icons/outline/WindowIcon.tsx +0 -26
- package/src/components/icons/solid/CaretDownIcon.tsx +0 -22
- package/src/components/icons/solid/CodeIcon.tsx +0 -25
- package/src/components/icons/solid/DragIcon.tsx +0 -24
- package/src/components/icons/solid/PhoneIcon.tsx +0 -29
- package/src/components/icons/solid/RectangleGroupIcon.tsx +0 -26
- package/src/components/image.tsx +0 -151
- package/src/components/input.tsx +0 -118
- package/src/components/label.tsx +0 -26
- package/src/components/link.tsx +0 -123
- package/src/components/marquee/index.css +0 -15
- package/src/components/marquee/marquee.tsx +0 -220
- package/src/components/masonry.tsx +0 -138
- package/src/components/menubar.tsx +0 -234
- package/src/components/mobile/m-tooltip.tsx +0 -34
- package/src/components/modal.tsx +0 -561
- package/src/components/navigation-bar.tsx +0 -100
- package/src/components/number-input.tsx +0 -143
- package/src/components/page-content.tsx +0 -16
- package/src/components/popover.tsx +0 -191
- package/src/components/progress.tsx +0 -80
- package/src/components/radio-group.tsx +0 -44
- package/src/components/scroll-area.tsx +0 -49
- package/src/components/search-bar.tsx +0 -140
- package/src/components/secondary-navigation-bar.tsx +0 -328
- package/src/components/select.tsx +0 -273
- package/src/components/separator.tsx +0 -31
- package/src/components/sheet.tsx +0 -143
- package/src/components/skeleton.tsx +0 -20
- package/src/components/slider.tsx +0 -160
- package/src/components/spinner.tsx +0 -50
- package/src/components/swiper/index.module.scss +0 -88
- package/src/components/swiper/index.tsx +0 -319
- package/src/components/switch.tsx +0 -67
- package/src/components/tabs.tsx +0 -325
- package/src/components/textarea.tsx +0 -71
- package/src/components/toast/toast.tsx +0 -182
- package/src/components/toast/toaster.tsx +0 -160
- package/src/components/toast/use-toast.tsx +0 -248
- package/src/components/toggle-group.tsx +0 -64
- package/src/components/toggle.tsx +0 -46
- package/src/components/tooltip.tsx +0 -283
- package/src/components/typography.tsx +0 -437
- package/src/index.ts +0 -70
- package/src/lib/utils.ts +0 -62
- package/src/stories/Accordion.stories.tsx +0 -64
- package/src/stories/AccordionItem.stories.tsx +0 -48
- package/src/stories/Avatar.stories.ts +0 -58
- package/src/stories/Badge.stories.tsx +0 -40
- package/src/stories/BannerSwiper.stories.tsx +0 -102
- package/src/stories/Button.stories.tsx +0 -543
- package/src/stories/Checkbox.stories.tsx +0 -161
- package/src/stories/Configure.mdx +0 -341
- package/src/stories/CssProperties.mdx +0 -30
- package/src/stories/Description.stories.ts +0 -70
- package/src/stories/Display.stories.ts +0 -64
- package/src/stories/FeaturedSwiper.stories.tsx +0 -6978
- package/src/stories/GridSwiper.stories.tsx +0 -1407
- package/src/stories/Guide.stories.tsx +0 -247
- package/src/stories/Heading.stories.ts +0 -89
- package/src/stories/Icon.stories.ts +0 -77
- package/src/stories/IconButton.stories.tsx +0 -301
- package/src/stories/IconTextButton.stories.ts +0 -59
- package/src/stories/Image.stories.ts +0 -55
- package/src/stories/Input.stories.tsx +0 -203
- package/src/stories/Modal.stories.tsx +0 -144
- package/src/stories/NavigationBar.stories.tsx +0 -81
- package/src/stories/Notification.stories.tsx +0 -276
- package/src/stories/Popover.stories.tsx +0 -100
- package/src/stories/SearchBar.stories.ts +0 -43
- package/src/stories/SecondaryNavigationBar.stories.tsx +0 -199
- package/src/stories/Select.stories.tsx +0 -107
- package/src/stories/Separator.stories.tsx +0 -49
- package/src/stories/Spinner.stories.tsx +0 -48
- package/src/stories/SubHeading.stories.ts +0 -64
- package/src/stories/Swich.stories.tsx +0 -69
- package/src/stories/Tabs.stories.tsx +0 -90
- package/src/stories/Text.stories.ts +0 -78
- package/src/stories/Textarea.stories.tsx +0 -155
- package/src/stories/Toast.stories.tsx +0 -424
- package/src/stories/Tooltip.stories.tsx +0 -244
- package/src/stories/ViewAutoSwiper.stories.tsx +0 -1408
- package/src/styles/components-dark.scss +0 -212
- package/src/styles/components-light.scss +0 -210
- package/src/styles/design-dark.scss +0 -330
- package/src/styles/design-light.scss +0 -345
- package/src/styles/design2-dark.scss +0 -319
- package/src/styles/design2-light.scss +0 -364
- package/src/styles/font.css +0 -19
- package/src/styles/global.scss +0 -251
- package/src/styles/md-viewer.scss +0 -155
- package/src/styles/new-tokens.scss +0 -255
- package/src/styles/tokens.scss +0 -401
- package/src/types/scss.d.ts +0 -24
package/src/components/icon.tsx
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { cva, type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
|
|
4
|
-
import { cn } from '@/lib/utils';
|
|
5
|
-
|
|
6
|
-
const iconVariants = cva('inline-flex shrink-0', {
|
|
7
|
-
variants: {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* 可用尺寸:
|
|
11
|
-
* - 2xs: 12px
|
|
12
|
-
* - xs: 14px
|
|
13
|
-
* - sm: 16px
|
|
14
|
-
* - md: 18px
|
|
15
|
-
* - lg: 20px
|
|
16
|
-
* - xl: 22px
|
|
17
|
-
* - 2xl: 24px
|
|
18
|
-
* - 3xl: 28px
|
|
19
|
-
* - 4xl: 32px
|
|
20
|
-
* - 5xl: 36px
|
|
21
|
-
* - 6xl: 40px
|
|
22
|
-
* - 7xl: 44px
|
|
23
|
-
* - 8xl: 48px
|
|
24
|
-
*/
|
|
25
|
-
size: {
|
|
26
|
-
'2xs': 'w-3 h-3', // 12
|
|
27
|
-
xs: 'w-3.5 h-3.5', // 14
|
|
28
|
-
sm: 'w-4 h-4', // 16
|
|
29
|
-
md: 'w-[18px] h-[18px]', // 18
|
|
30
|
-
lg: 'w-5 h-5', // 20
|
|
31
|
-
xl: 'w-[22px] h-[22px]', // 22
|
|
32
|
-
'2xl': 'w-6 h-6', // 24
|
|
33
|
-
'3xl': 'w-7 h-7', // 28
|
|
34
|
-
'4xl': 'w-8 h-8', // 32
|
|
35
|
-
'5xl': 'w-9 h-9', // 36
|
|
36
|
-
'6xl': 'w-10 h-10', // 40
|
|
37
|
-
'7xl': 'w-11 h-11', // 44
|
|
38
|
-
'8xl': 'w-12 h-12', // 48
|
|
39
|
-
},
|
|
40
|
-
color: {
|
|
41
|
-
default: 'text-Colors-Foreground-Default',
|
|
42
|
-
subtle: 'text-Colors-Foreground-Subtle',
|
|
43
|
-
subtler: 'text-Colors-Foreground-Subtler',
|
|
44
|
-
subtlest: 'text-Colors-Foreground-Subtlest',
|
|
45
|
-
disabled: 'text-Colors-Foreground-Disabled',
|
|
46
|
-
bolder: 'text-Colors-Foreground-Bolder',
|
|
47
|
-
inverse: 'text-Colors-Foreground-Static-White',
|
|
48
|
-
critical: 'text-Colors-Foreground-Critical-Default',
|
|
49
|
-
brand: 'text-Colors-Text-Brand-Default',
|
|
50
|
-
'critical-bolder': 'text-Colors-Text-Critical-Bolder',
|
|
51
|
-
warning: 'text-Colors-Text-Warning-Default',
|
|
52
|
-
'warning-bolder': 'text-Colors-Text-Warning-Bolder',
|
|
53
|
-
success: 'text-Colors-Text-Success-Default',
|
|
54
|
-
'success-bolder': 'text-Colors-Text-Success-Bolder',
|
|
55
|
-
},
|
|
56
|
-
rotate: {
|
|
57
|
-
'45': 'rotate-45',
|
|
58
|
-
'90': 'rotate-90',
|
|
59
|
-
'-45': '-rotate-45',
|
|
60
|
-
'-90': '-rotate-90',
|
|
61
|
-
'180': 'rotate-180',
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
defaultVariants: {
|
|
65
|
-
size: 'sm',
|
|
66
|
-
color: 'default',
|
|
67
|
-
},
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export type IconProps = React.HTMLAttributes<HTMLSpanElement> &
|
|
71
|
-
VariantProps<typeof iconVariants> & {
|
|
72
|
-
/**
|
|
73
|
-
* icon 组件 优先heroicons
|
|
74
|
-
*/
|
|
75
|
-
component?: React.ElementType;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
const Icon = React.forwardRef<HTMLSpanElement, IconProps>((props, ref) => {
|
|
79
|
-
const { children, component, size, color, rotate, className, ...passProps } =
|
|
80
|
-
props;
|
|
81
|
-
const Com = component || 'span';
|
|
82
|
-
|
|
83
|
-
return (
|
|
84
|
-
<Com
|
|
85
|
-
ref={ref}
|
|
86
|
-
{...passProps}
|
|
87
|
-
className={cn(iconVariants({ size, color, rotate }), className)}
|
|
88
|
-
>
|
|
89
|
-
{children}
|
|
90
|
-
</Com>
|
|
91
|
-
);
|
|
92
|
-
});
|
|
93
|
-
Icon.displayName = 'Icon';
|
|
94
|
-
|
|
95
|
-
export type IconComponent = React.ForwardRefExoticComponent<IconProps>;
|
|
96
|
-
export { Icon };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './outline/DownIcon';
|
|
2
|
-
export * from './outline/ArrowLeftIcon';
|
|
3
|
-
export * from './outline/ArrowUpTrayIcon';
|
|
4
|
-
export * from './outline/WindowIcon';
|
|
5
|
-
export * from './outline/CheckCircleIcon';
|
|
6
|
-
export * from './outline/FilterIcon';
|
|
7
|
-
export * from './outline/PencilSquareIcon';
|
|
8
|
-
export * from './outline/ConfigIcon';
|
|
9
|
-
export * from './solid/CaretDownIcon';
|
|
10
|
-
export * from './solid/CodeIcon';
|
|
11
|
-
export * from './solid/DragIcon';
|
|
12
|
-
export * from './solid/PhoneIcon';
|
|
13
|
-
export * from './solid/RectangleGroupIcon';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const ArrowLeftIcon = React.forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
-
(props, ref) => {
|
|
6
|
-
return (
|
|
7
|
-
<Icon {...props}>
|
|
8
|
-
<svg
|
|
9
|
-
ref={ref}
|
|
10
|
-
className="w-full h-full"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
fill="none"
|
|
13
|
-
strokeWidth="1.5"
|
|
14
|
-
stroke="currentColor"
|
|
15
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
-
>
|
|
17
|
-
<path
|
|
18
|
-
strokeLinecap="round"
|
|
19
|
-
strokeLinejoin="round"
|
|
20
|
-
d="M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"
|
|
21
|
-
/>
|
|
22
|
-
</svg>
|
|
23
|
-
</Icon>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
export { ArrowLeftIcon };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const ArrowUpTrayIcon = React.forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
-
(props, ref) => {
|
|
6
|
-
return (
|
|
7
|
-
<Icon {...props}>
|
|
8
|
-
<svg
|
|
9
|
-
ref={ref}
|
|
10
|
-
className="w-full h-full"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
fill="none"
|
|
13
|
-
strokeWidth="1.5"
|
|
14
|
-
stroke="currentColor"
|
|
15
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
-
>
|
|
17
|
-
<path
|
|
18
|
-
strokeLinecap="round"
|
|
19
|
-
strokeLinejoin="round"
|
|
20
|
-
d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"
|
|
21
|
-
/>
|
|
22
|
-
</svg>
|
|
23
|
-
</Icon>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
export { ArrowUpTrayIcon };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const CheckCircleIcon = React.forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
-
(props, ref) => {
|
|
6
|
-
return (
|
|
7
|
-
<Icon {...props}>
|
|
8
|
-
<svg
|
|
9
|
-
ref={ref}
|
|
10
|
-
className="w-full h-full"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
fill="currentColor"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
>
|
|
15
|
-
<path d="M15.4359 9.1397C15.773 9.38046 15.8511 9.84887 15.6103 10.1859L11.8603 15.4359C11.7322 15.6153 11.5316 15.7293 11.3119 15.7474C11.0921 15.7656 10.8756 15.6862 10.7197 15.5303L8.46967 13.2803C8.17678 12.9874 8.17678 12.5126 8.46967 12.2197C8.76256 11.9268 9.23744 11.9268 9.53033 12.2197L11.1543 13.8436L14.3897 9.31407C14.6305 8.97701 15.0989 8.89894 15.4359 9.1397Z" />
|
|
16
|
-
<path
|
|
17
|
-
fillRule="evenodd"
|
|
18
|
-
clipRule="evenodd"
|
|
19
|
-
d="M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM12 3.75C7.44365 3.75 3.75 7.44365 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C16.5563 20.25 20.25 16.5563 20.25 12C20.25 7.44365 16.5563 3.75 12 3.75Z"
|
|
20
|
-
/>
|
|
21
|
-
</svg>
|
|
22
|
-
</Icon>
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
export { CheckCircleIcon };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const ConfigIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => {
|
|
5
|
-
return (
|
|
6
|
-
<Icon {...props}>
|
|
7
|
-
<svg
|
|
8
|
-
width="18"
|
|
9
|
-
height="18"
|
|
10
|
-
viewBox="0 0 18 18"
|
|
11
|
-
fill="none"
|
|
12
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
-
className="cursor-pointer"
|
|
14
|
-
>
|
|
15
|
-
<g id="wrapper">
|
|
16
|
-
<g id="Union">
|
|
17
|
-
<path
|
|
18
|
-
fillRule="evenodd"
|
|
19
|
-
clipRule="evenodd"
|
|
20
|
-
d="M4.5 2.25C4.81066 2.25 5.0625 2.50184 5.0625 2.8125L5.0625 9.65852C5.71792 9.89018 6.1875 10.5153 6.1875 11.25C6.1875 11.9847 5.71792 12.6098 5.0625 12.8415V15.1875C5.0625 15.4982 4.81066 15.75 4.5 15.75C4.18934 15.75 3.9375 15.4982 3.9375 15.1875V12.8415C3.28208 12.6098 2.8125 11.9847 2.8125 11.25C2.8125 10.5153 3.28208 9.89018 3.9375 9.65852L3.9375 2.8125C3.9375 2.50184 4.18934 2.25 4.5 2.25ZM4.5 10.6875C4.18934 10.6875 3.9375 10.9393 3.9375 11.25C3.9375 11.5607 4.18934 11.8125 4.5 11.8125C4.81066 11.8125 5.0625 11.5607 5.0625 11.25C5.0625 10.9393 4.81066 10.6875 4.5 10.6875Z"
|
|
21
|
-
fill="#6D7175"
|
|
22
|
-
/>
|
|
23
|
-
<path
|
|
24
|
-
fillRule="evenodd"
|
|
25
|
-
clipRule="evenodd"
|
|
26
|
-
d="M9 2.25C9.31066 2.25 9.5625 2.50184 9.5625 2.8125V5.15852C10.2179 5.39018 10.6875 6.01525 10.6875 6.75C10.6875 7.48475 10.2179 8.10982 9.5625 8.34148V15.1875C9.5625 15.4982 9.31066 15.75 9 15.75C8.68934 15.75 8.4375 15.4982 8.4375 15.1875V8.34148C7.78208 8.10982 7.3125 7.48475 7.3125 6.75C7.3125 6.01525 7.78208 5.39018 8.4375 5.15852V2.8125C8.4375 2.50184 8.68934 2.25 9 2.25ZM9 6.1875C8.68934 6.1875 8.4375 6.43934 8.4375 6.75C8.4375 7.06066 8.68934 7.3125 9 7.3125C9.31066 7.3125 9.5625 7.06066 9.5625 6.75C9.5625 6.43934 9.31066 6.1875 9 6.1875Z"
|
|
27
|
-
fill="#6D7175"
|
|
28
|
-
/>
|
|
29
|
-
<path
|
|
30
|
-
fillRule="evenodd"
|
|
31
|
-
clipRule="evenodd"
|
|
32
|
-
d="M13.5 2.25C13.8107 2.25 14.0625 2.50184 14.0625 2.8125V9.65852C14.7179 9.89018 15.1875 10.5153 15.1875 11.25C15.1875 11.9847 14.7179 12.6098 14.0625 12.8415L14.0625 15.1875C14.0625 15.4982 13.8107 15.75 13.5 15.75C13.1893 15.75 12.9375 15.4982 12.9375 15.1875L12.9375 12.8415C12.2821 12.6098 11.8125 11.9847 11.8125 11.25C11.8125 10.5153 12.2821 9.89018 12.9375 9.65852V2.8125C12.9375 2.50184 13.1893 2.25 13.5 2.25ZM13.5 10.6875C13.1893 10.6875 12.9375 10.9393 12.9375 11.25C12.9375 11.5607 13.1893 11.8125 13.5 11.8125C13.8107 11.8125 14.0625 11.5607 14.0625 11.25C14.0625 10.9393 13.8107 10.6875 13.5 10.6875Z"
|
|
33
|
-
fill="#6D7175"
|
|
34
|
-
/>
|
|
35
|
-
</g>
|
|
36
|
-
</g>
|
|
37
|
-
</svg>
|
|
38
|
-
</Icon>
|
|
39
|
-
);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export { ConfigIcon };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { cn } from '@/lib/utils';
|
|
2
|
-
|
|
3
|
-
function DownIcon({ className }: { className?: string }) {
|
|
4
|
-
return (
|
|
5
|
-
<svg
|
|
6
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
-
width="12"
|
|
8
|
-
height="12"
|
|
9
|
-
viewBox="0 0 12 12"
|
|
10
|
-
fill="none"
|
|
11
|
-
className={cn('transition-all', className)}
|
|
12
|
-
>
|
|
13
|
-
<path d="M6.75593 8.8908C6.35716 9.35126 5.64284 9.35126 5.24407 8.8908L1.3708 4.41832C0.80992 3.77068 1.26997 2.76367 2.12673 2.76367L9.87328 2.76367C10.73 2.76367 11.1901 3.77068 10.6292 4.41833L6.75593 8.8908Z" />
|
|
14
|
-
</svg>
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { DownIcon };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function FilterIcon({ className }: { className?: string }) {
|
|
2
|
-
return (
|
|
3
|
-
<svg
|
|
4
|
-
className={className}
|
|
5
|
-
width="22"
|
|
6
|
-
height="22"
|
|
7
|
-
viewBox="0 0 22 22"
|
|
8
|
-
fill="none"
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
>
|
|
11
|
-
<path
|
|
12
|
-
fillRule="evenodd"
|
|
13
|
-
clipRule="evenodd"
|
|
14
|
-
d="M10.0278 2.84729C7.67712 2.84729 5.37221 3.04531 3.12895 3.42572C2.37055 3.55432 1.83336 4.2145 1.83336 4.96859V5.84598C1.83336 6.51468 2.099 7.15598 2.57185 7.62882L7.13715 12.1941C7.37358 12.4305 7.5064 12.7511 7.5064 13.0855V18.6055C7.5064 18.8239 7.61951 19.0268 7.80535 19.1417C7.99118 19.2565 8.22323 19.267 8.41863 19.1693L11.1553 17.8009C12.0095 17.3738 12.5491 16.5008 12.5491 15.5458V13.0855C12.5491 12.7511 12.6819 12.4305 12.9183 12.1941L17.4837 7.62882C17.9565 7.15598 18.2221 6.51468 18.2221 5.84598V4.96857C18.2221 4.21448 17.6849 3.5543 16.9265 3.4257C14.6833 3.0453 12.3784 2.84729 10.0278 2.84729ZM3.33973 4.66863C5.51363 4.29998 7.74805 4.10794 10.0278 4.10794C12.3075 4.10794 14.5419 4.29998 16.7158 4.66861C16.8531 4.69189 16.9615 4.8142 16.9615 4.96857V5.84598C16.9615 6.18033 16.8286 6.50098 16.5922 6.7374L12.0269 11.3026C11.5541 11.7755 11.2884 12.4168 11.2884 13.0855V15.5458C11.2884 16.0233 11.0186 16.4598 10.5915 16.6734L8.76707 17.5856V13.0855C8.76707 12.4168 8.50143 11.7755 8.02859 11.3026L3.46328 6.7374C3.22685 6.50098 3.09403 6.18033 3.09403 5.84598V4.96859C3.09403 4.81422 3.20244 4.69191 3.33973 4.66863ZM15.1424 12.0035C14.9222 11.7833 14.5651 11.7833 14.3448 12.0035C14.1246 12.2238 14.1246 12.5809 14.3448 12.8011L16.3756 14.8318L14.3448 16.8625C14.1246 17.0828 14.1246 17.4399 14.3448 17.6601C14.5651 17.8804 14.9222 17.8804 15.1424 17.6601L17.1732 15.6294L19.2039 17.6601C19.4242 17.8804 19.7813 17.8804 20.0015 17.6601C20.2218 17.4399 20.2218 17.0828 20.0015 16.8625L17.9708 14.8318L20.0015 12.8011C20.2218 12.5809 20.2218 12.2238 20.0015 12.0035C19.7813 11.7833 19.4242 11.7833 19.2039 12.0035L17.1732 14.0342L15.1424 12.0035Z"
|
|
15
|
-
/>
|
|
16
|
-
</svg>
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export default FilterIcon;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const PencilSquareIcon = React.forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
-
(props, ref) => {
|
|
6
|
-
return (
|
|
7
|
-
<Icon {...props}>
|
|
8
|
-
<svg
|
|
9
|
-
ref={ref}
|
|
10
|
-
className="w-full h-full"
|
|
11
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
-
fill="none"
|
|
13
|
-
viewBox="0 0 24 24"
|
|
14
|
-
strokeWidth="1.5"
|
|
15
|
-
stroke="currentColor"
|
|
16
|
-
>
|
|
17
|
-
<path
|
|
18
|
-
strokeLinecap="round"
|
|
19
|
-
strokeLinejoin="round"
|
|
20
|
-
d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
|
|
21
|
-
/>
|
|
22
|
-
</svg>
|
|
23
|
-
</Icon>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
export { PencilSquareIcon };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const WindowIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => {
|
|
5
|
-
return (
|
|
6
|
-
<Icon {...props}>
|
|
7
|
-
<svg
|
|
8
|
-
ref={ref}
|
|
9
|
-
className="w-full h-full"
|
|
10
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
fill="none"
|
|
13
|
-
strokeWidth="1.5"
|
|
14
|
-
stroke="currentColor"
|
|
15
|
-
>
|
|
16
|
-
<path
|
|
17
|
-
strokeLinecap="round"
|
|
18
|
-
strokeLinejoin="round"
|
|
19
|
-
d="M3 8.25V18a2.25 2.25 0 0 0 2.25 2.25h13.5A2.25 2.25 0 0 0 21 18V8.25m-18 0V6a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6ZM7.5 6h.008v.008H7.5V6Zm2.25 0h.008v.008H9.75V6Z"
|
|
20
|
-
/>
|
|
21
|
-
</svg>
|
|
22
|
-
</Icon>
|
|
23
|
-
);
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export { WindowIcon };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const CaretDownIcon = React.forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
-
(props, ref) => {
|
|
6
|
-
return (
|
|
7
|
-
<Icon {...props}>
|
|
8
|
-
<svg
|
|
9
|
-
ref={ref}
|
|
10
|
-
className="w-full h-full"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
fill="currentColor"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
>
|
|
15
|
-
<path d="M13.5119 17.7818C12.7143 18.7028 11.2857 18.7028 10.4881 17.7818L2.74159 8.83689C1.61984 7.54161 2.53995 5.52759 4.25345 5.52759L19.7466 5.52759C21.4601 5.52759 22.3802 7.54161 21.2584 8.8369L13.5119 17.7818Z" />
|
|
16
|
-
</svg>
|
|
17
|
-
</Icon>
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
export { CaretDownIcon };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const CodeIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => {
|
|
5
|
-
return (
|
|
6
|
-
<Icon {...props}>
|
|
7
|
-
<svg
|
|
8
|
-
ref={ref}
|
|
9
|
-
className="w-full h-full"
|
|
10
|
-
viewBox="0 0 24 24"
|
|
11
|
-
fill="currentColor"
|
|
12
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
-
>
|
|
14
|
-
<path d="M15.3995 7.375C15.6066 7.01628 15.4837 6.55759 15.125 6.35048C14.7663 6.14337 14.3076 6.26628 14.1005 6.625L8.35048 16.5843C8.14337 16.943 8.26628 17.4017 8.625 17.6088C8.98372 17.8159 9.44241 17.693 9.64952 17.3343L15.3995 7.375Z" />
|
|
15
|
-
<path
|
|
16
|
-
fillRule="evenodd"
|
|
17
|
-
clipRule="evenodd"
|
|
18
|
-
d="M6 3C4.34315 3 3 4.34315 3 6V18C3 19.6569 4.34315 21 6 21H18C19.6569 21 21 19.6569 21 18V6C21 4.34315 19.6569 3 18 3H6ZM4.5 6C4.5 5.17157 5.17157 4.5 6 4.5H18C18.8284 4.5 19.5 5.17157 19.5 6V18C19.5 18.8284 18.8284 19.5 18 19.5H6C5.17157 19.5 4.5 18.8284 4.5 18V6Z"
|
|
19
|
-
/>
|
|
20
|
-
</svg>
|
|
21
|
-
</Icon>
|
|
22
|
-
);
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
export { CodeIcon };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const DragIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => {
|
|
5
|
-
return (
|
|
6
|
-
<Icon {...props}>
|
|
7
|
-
<svg
|
|
8
|
-
ref={ref}
|
|
9
|
-
className="w-full h-full"
|
|
10
|
-
viewBox="0 0 24 24"
|
|
11
|
-
fill="currentColor"
|
|
12
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
-
>
|
|
14
|
-
<path
|
|
15
|
-
fillRule="evenodd"
|
|
16
|
-
clipRule="evenodd"
|
|
17
|
-
d="M7.5 5C7.5 4.17157 8.17157 3.5 9 3.5C9.82843 3.5 10.5 4.17157 10.5 5C10.5 5.82843 9.82843 6.5 9 6.5C8.17157 6.5 7.5 5.82843 7.5 5ZM13.5 5C13.5 4.17157 14.1716 3.5 15 3.5C15.8284 3.5 16.5 4.17157 16.5 5C16.5 5.82843 15.8284 6.5 15 6.5C14.1716 6.5 13.5 5.82843 13.5 5ZM7.5 12C7.5 11.1716 8.17157 10.5 9 10.5C9.82843 10.5 10.5 11.1716 10.5 12C10.5 12.8284 9.82843 13.5 9 13.5C8.17157 13.5 7.5 12.8284 7.5 12ZM13.5 12C13.5 11.1716 14.1716 10.5 15 10.5C15.8284 10.5 16.5 11.1716 16.5 12C16.5 12.8284 15.8284 13.5 15 13.5C14.1716 13.5 13.5 12.8284 13.5 12ZM7.5 19C7.5 18.1716 8.17157 17.5 9 17.5C9.82843 17.5 10.5 18.1716 10.5 19C10.5 19.8284 9.82843 20.5 9 20.5C8.17157 20.5 7.5 19.8284 7.5 19ZM13.5 19C13.5 18.1716 14.1716 17.5 15 17.5C15.8284 17.5 16.5 18.1716 16.5 19C16.5 19.8284 15.8284 20.5 15 20.5C14.1716 20.5 13.5 19.8284 13.5 19Z"
|
|
18
|
-
/>
|
|
19
|
-
</svg>
|
|
20
|
-
</Icon>
|
|
21
|
-
);
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export { DragIcon };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const PhoneIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => {
|
|
5
|
-
return (
|
|
6
|
-
<Icon {...props}>
|
|
7
|
-
<svg
|
|
8
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
9
|
-
width="20"
|
|
10
|
-
height="20"
|
|
11
|
-
viewBox="0 0 20 20"
|
|
12
|
-
fill="none"
|
|
13
|
-
>
|
|
14
|
-
<path
|
|
15
|
-
d="M8.75 15.625C8.40482 15.625 8.125 15.9048 8.125 16.25C8.125 16.5952 8.40482 16.875 8.75 16.875H11.25C11.5952 16.875 11.875 16.5952 11.875 16.25C11.875 15.9048 11.5952 15.625 11.25 15.625H8.75Z"
|
|
16
|
-
fill="#3E5CFA"
|
|
17
|
-
/>
|
|
18
|
-
<path
|
|
19
|
-
fillRule="evenodd"
|
|
20
|
-
clipRule="evenodd"
|
|
21
|
-
d="M7.1875 0.625C5.6342 0.625 4.375 1.8842 4.375 3.4375V16.5625C4.375 18.1158 5.6342 19.375 7.1875 19.375H12.8125C14.3658 19.375 15.625 18.1158 15.625 16.5625V3.4375C15.625 1.8842 14.3658 0.625 12.8125 0.625H7.1875ZM6.25 3.4375C6.25 2.91973 6.66973 2.5 7.1875 2.5H8.125V2.8125C8.125 3.33027 8.54473 3.75 9.0625 3.75H10.9375C11.4553 3.75 11.875 3.33027 11.875 2.8125V2.5H12.8125C13.3303 2.5 13.75 2.91973 13.75 3.4375V16.5625C13.75 17.0803 13.3303 17.5 12.8125 17.5H7.1875C6.66973 17.5 6.25 17.0803 6.25 16.5625V3.4375Z"
|
|
22
|
-
fill="#3E5CFA"
|
|
23
|
-
/>
|
|
24
|
-
</svg>
|
|
25
|
-
</Icon>
|
|
26
|
-
);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
export { PhoneIcon };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Icon, IconProps } from '../../icon';
|
|
3
|
-
|
|
4
|
-
const RectangleGroupIcon = React.forwardRef<SVGSVGElement, IconProps>(
|
|
5
|
-
(props, ref) => {
|
|
6
|
-
return (
|
|
7
|
-
<Icon {...props}>
|
|
8
|
-
<svg
|
|
9
|
-
ref={ref}
|
|
10
|
-
className="w-full h-full"
|
|
11
|
-
viewBox="0 0 24 24"
|
|
12
|
-
fill="currentColor"
|
|
13
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
-
>
|
|
15
|
-
<path
|
|
16
|
-
fillRule="evenodd"
|
|
17
|
-
clipRule="evenodd"
|
|
18
|
-
d="M1.5 7.125C1.5 6.08947 2.33947 5.25 3.375 5.25H9.375C10.4105 5.25 11.25 6.08947 11.25 7.125V10.875C11.25 11.9105 10.4105 12.75 9.375 12.75H3.375C2.33947 12.75 1.5 11.9105 1.5 10.875V7.125ZM13.5 8.625C13.5 7.58947 14.3395 6.75 15.375 6.75H20.625C21.6605 6.75 22.5 7.58947 22.5 8.625V16.875C22.5 17.9105 21.6605 18.75 20.625 18.75H15.375C14.3395 18.75 13.5 17.9105 13.5 16.875V8.625ZM3 16.125C3 15.0895 3.83947 14.25 4.875 14.25H10.125C11.1605 14.25 12 15.0895 12 16.125V18.375C12 19.4105 11.1605 20.25 10.125 20.25H4.875C3.83947 20.25 3 19.4105 3 18.375V16.125Z"
|
|
19
|
-
/>
|
|
20
|
-
</svg>
|
|
21
|
-
</Icon>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
export { RectangleGroupIcon };
|
package/src/components/image.tsx
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { cva } from 'class-variance-authority';
|
|
2
|
-
import RCImage, { ImagePreviewType } from 'rc-image';
|
|
3
|
-
import { ReactElement, SyntheticEvent } from 'react';
|
|
4
|
-
|
|
5
|
-
import { cn } from '@/lib/utils';
|
|
6
|
-
|
|
7
|
-
const imageVariants = cva('', {
|
|
8
|
-
variants: {
|
|
9
|
-
rounded: {
|
|
10
|
-
none: 'rounded-none',
|
|
11
|
-
sm: 'rounded-sm',
|
|
12
|
-
default: 'rounded',
|
|
13
|
-
md: 'rounded-md',
|
|
14
|
-
lg: 'rounded-lg',
|
|
15
|
-
xl: 'rounded-xl',
|
|
16
|
-
'2xl': 'rounded-2xl',
|
|
17
|
-
'3xl': 'rounded-3xl',
|
|
18
|
-
full: 'rounded-full',
|
|
19
|
-
},
|
|
20
|
-
object: {
|
|
21
|
-
contain: 'object-contain',
|
|
22
|
-
cover: 'object-cover',
|
|
23
|
-
fill: 'object-fill',
|
|
24
|
-
none: 'object-none',
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
defaultVariants: {
|
|
28
|
-
rounded: 'none',
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export interface ImageProps {
|
|
33
|
-
/**
|
|
34
|
-
* 图片地址
|
|
35
|
-
*/
|
|
36
|
-
src: string;
|
|
37
|
-
/**
|
|
38
|
-
* 图像宽度
|
|
39
|
-
* string | number
|
|
40
|
-
*/
|
|
41
|
-
width?: string | number;
|
|
42
|
-
/**
|
|
43
|
-
* 图像高度
|
|
44
|
-
* string | number
|
|
45
|
-
*/
|
|
46
|
-
height?: string | number;
|
|
47
|
-
/**
|
|
48
|
-
* 加载占位,为 true 时使用默认占位
|
|
49
|
-
*/
|
|
50
|
-
placeholder?: boolean | ReactElement;
|
|
51
|
-
/**
|
|
52
|
-
* 加载失败容错地址
|
|
53
|
-
*/
|
|
54
|
-
fallback?: string;
|
|
55
|
-
/**
|
|
56
|
-
* 预览参数,为 false 时禁用
|
|
57
|
-
*/
|
|
58
|
-
// preview?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* 圆角,默认为 none
|
|
61
|
-
*/
|
|
62
|
-
rounded?:
|
|
63
|
-
| 'none'
|
|
64
|
-
| 'sm'
|
|
65
|
-
| 'default'
|
|
66
|
-
| 'md'
|
|
67
|
-
| 'lg'
|
|
68
|
-
| 'xl'
|
|
69
|
-
| '2xl'
|
|
70
|
-
| '3xl'
|
|
71
|
-
| 'full';
|
|
72
|
-
/**
|
|
73
|
-
* 填充类型
|
|
74
|
-
*/
|
|
75
|
-
object?: 'contain' | 'cover' | 'fill' | 'none';
|
|
76
|
-
/**
|
|
77
|
-
* 图像描述
|
|
78
|
-
*/
|
|
79
|
-
alt?: string;
|
|
80
|
-
/**
|
|
81
|
-
* image样式覆盖
|
|
82
|
-
*/
|
|
83
|
-
className?: string;
|
|
84
|
-
/**
|
|
85
|
-
* image样式覆盖
|
|
86
|
-
*/
|
|
87
|
-
imgClassName?: string;
|
|
88
|
-
/**
|
|
89
|
-
* 是否是背景图
|
|
90
|
-
*/
|
|
91
|
-
isBackgroud?: boolean;
|
|
92
|
-
|
|
93
|
-
preview?: boolean | ImagePreviewType;
|
|
94
|
-
/**
|
|
95
|
-
* 加载优先级
|
|
96
|
-
*
|
|
97
|
-
* @default auto
|
|
98
|
-
*/
|
|
99
|
-
fetchPriority?: 'auto' | 'high' | 'low' | 'low';
|
|
100
|
-
|
|
101
|
-
loading?: 'eager' | 'lazy';
|
|
102
|
-
|
|
103
|
-
style?: React.CSSProperties;
|
|
104
|
-
/**
|
|
105
|
-
* 加载错误回调
|
|
106
|
-
*/
|
|
107
|
-
onError?: (event: SyntheticEvent<HTMLImageElement, Event>) => void;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export function Image({
|
|
111
|
-
className,
|
|
112
|
-
imgClassName,
|
|
113
|
-
placeholder = true,
|
|
114
|
-
width = '100%',
|
|
115
|
-
height = '100%',
|
|
116
|
-
src,
|
|
117
|
-
rounded = 'none',
|
|
118
|
-
fallback = '',
|
|
119
|
-
object = 'cover',
|
|
120
|
-
isBackgroud = false,
|
|
121
|
-
preview = false,
|
|
122
|
-
fetchPriority = 'auto',
|
|
123
|
-
loading = 'eager',
|
|
124
|
-
...otherProps
|
|
125
|
-
}: ImageProps) {
|
|
126
|
-
return (
|
|
127
|
-
<RCImage
|
|
128
|
-
fetchPriority={fetchPriority}
|
|
129
|
-
placeholder={placeholder}
|
|
130
|
-
width={width}
|
|
131
|
-
height={height}
|
|
132
|
-
src={src}
|
|
133
|
-
fallback={
|
|
134
|
-
fallback ||
|
|
135
|
-
'data:image/png;base64,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'
|
|
136
|
-
}
|
|
137
|
-
preview={preview}
|
|
138
|
-
loading={loading}
|
|
139
|
-
rootClassName={cn(
|
|
140
|
-
isBackgroud && 'absolute top-0 left-0 z-0 w-full h-full',
|
|
141
|
-
className
|
|
142
|
-
)}
|
|
143
|
-
className={cn(
|
|
144
|
-
imageVariants({ rounded, object }),
|
|
145
|
-
isBackgroud && 'object-cover',
|
|
146
|
-
imgClassName
|
|
147
|
-
)}
|
|
148
|
-
{...otherProps}
|
|
149
|
-
/>
|
|
150
|
-
);
|
|
151
|
-
}
|