@haklex/rich-editor-ui 0.0.1
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/LICENSE +28 -0
- package/README.md +152 -0
- package/dist/components/color-picker/index.d.ts +7 -0
- package/dist/components/color-picker/index.d.ts.map +1 -0
- package/dist/components/color-picker/styles.css.d.ts +11 -0
- package/dist/components/color-picker/styles.css.d.ts.map +1 -0
- package/dist/components/dialog/index.d.ts +28 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/stack.d.ts +3 -0
- package/dist/components/dialog/stack.d.ts.map +1 -0
- package/dist/components/dialog/store.d.ts +24 -0
- package/dist/components/dialog/store.d.ts.map +1 -0
- package/dist/components/dialog/styles.css.d.ts +8 -0
- package/dist/components/dialog/styles.css.d.ts.map +1 -0
- package/dist/components/dropdown-menu/index.d.ts +37 -0
- package/dist/components/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/dropdown-menu/styles.css.d.ts +7 -0
- package/dist/components/dropdown-menu/styles.css.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +36 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/styles.css.d.ts +5 -0
- package/dist/components/popover/styles.css.d.ts.map +1 -0
- package/dist/components/segmented-control/index.d.ts +16 -0
- package/dist/components/segmented-control/index.d.ts.map +1 -0
- package/dist/components/segmented-control/styles.css.d.ts +11 -0
- package/dist/components/segmented-control/styles.css.d.ts.map +1 -0
- package/dist/components/tooltip/index.d.ts +25 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/styles.css.d.ts +2 -0
- package/dist/components/tooltip/styles.css.d.ts.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +743 -0
- package/dist/lib/get-strict-context.d.ts +9 -0
- package/dist/lib/get-strict-context.d.ts.map +1 -0
- package/dist/rich-editor-ui.css +487 -0
- package/package.json +47 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Innei
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
Additional Terms and Conditions
|
|
25
|
+
|
|
26
|
+
----------------
|
|
27
|
+
|
|
28
|
+
Use of this software is governed by the terms of MIT and, in addition, by the terms and conditions described in the additional file (ADDITIONAL_TERMS.md). By using this software, you agree to abide by these additional terms and conditions.
|
package/README.md
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# @haklex/rich-editor-ui
|
|
2
|
+
|
|
3
|
+
基于 @base-ui/react 的无头 UI 组件,用于富文本编辑器。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @haklex/rich-editor-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 组件
|
|
12
|
+
|
|
13
|
+
### Dialog
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Dialog, presentDialog } from '@haklex/rich-editor-ui'
|
|
17
|
+
|
|
18
|
+
// 声明式
|
|
19
|
+
<Dialog.Root>
|
|
20
|
+
<Dialog.Trigger>打开</Dialog.Trigger>
|
|
21
|
+
<Dialog.Portal>
|
|
22
|
+
<Dialog.Backdrop />
|
|
23
|
+
<Dialog.Popup>
|
|
24
|
+
<Dialog.Header>
|
|
25
|
+
<Dialog.Title>标题</Dialog.Title>
|
|
26
|
+
</Dialog.Header>
|
|
27
|
+
<Dialog.Description>内容</Dialog.Description>
|
|
28
|
+
<Dialog.Footer>
|
|
29
|
+
<Dialog.Close>关闭</Dialog.Close>
|
|
30
|
+
</Dialog.Footer>
|
|
31
|
+
</Dialog.Popup>
|
|
32
|
+
</Dialog.Portal>
|
|
33
|
+
</Dialog.Root>
|
|
34
|
+
|
|
35
|
+
// 命令式
|
|
36
|
+
const result = await presentDialog({
|
|
37
|
+
title: '确认',
|
|
38
|
+
content: <MyForm />,
|
|
39
|
+
})
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### DropdownMenu
|
|
43
|
+
|
|
44
|
+
```tsx
|
|
45
|
+
import { DropdownMenu } from '@haklex/rich-editor-ui'
|
|
46
|
+
|
|
47
|
+
<DropdownMenu.Root>
|
|
48
|
+
<DropdownMenu.Trigger>菜单</DropdownMenu.Trigger>
|
|
49
|
+
<DropdownMenu.Portal>
|
|
50
|
+
<DropdownMenu.Content>
|
|
51
|
+
<DropdownMenu.Item>操作 1</DropdownMenu.Item>
|
|
52
|
+
<DropdownMenu.Separator />
|
|
53
|
+
<DropdownMenu.Item>操作 2</DropdownMenu.Item>
|
|
54
|
+
</DropdownMenu.Content>
|
|
55
|
+
</DropdownMenu.Portal>
|
|
56
|
+
</DropdownMenu.Root>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Popover
|
|
60
|
+
|
|
61
|
+
```tsx
|
|
62
|
+
import { Popover } from '@haklex/rich-editor-ui'
|
|
63
|
+
|
|
64
|
+
<Popover.Root>
|
|
65
|
+
<Popover.Trigger>触发</Popover.Trigger>
|
|
66
|
+
<Popover.Portal>
|
|
67
|
+
<Popover.Positioner>
|
|
68
|
+
<Popover.Popup>
|
|
69
|
+
<Popover.Title>标题</Popover.Title>
|
|
70
|
+
<Popover.Description>描述</Popover.Description>
|
|
71
|
+
</Popover.Popup>
|
|
72
|
+
</Popover.Positioner>
|
|
73
|
+
</Popover.Portal>
|
|
74
|
+
</Popover.Root>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Tooltip
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
import { Tooltip } from '@haklex/rich-editor-ui'
|
|
81
|
+
|
|
82
|
+
<Tooltip.Provider>
|
|
83
|
+
<Tooltip.Root>
|
|
84
|
+
<Tooltip.Trigger>悬停</Tooltip.Trigger>
|
|
85
|
+
<Tooltip.Portal>
|
|
86
|
+
<Tooltip.Positioner>
|
|
87
|
+
<Tooltip.Popup>提示文本</Tooltip.Popup>
|
|
88
|
+
</Tooltip.Positioner>
|
|
89
|
+
</Tooltip.Portal>
|
|
90
|
+
</Tooltip.Root>
|
|
91
|
+
</Tooltip.Provider>
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### SegmentedControl
|
|
95
|
+
|
|
96
|
+
```tsx
|
|
97
|
+
import { SegmentedControl } from '@haklex/rich-editor-ui'
|
|
98
|
+
|
|
99
|
+
<SegmentedControl.Root value={value} onValueChange={setValue}>
|
|
100
|
+
<SegmentedControl.Item value="a">A</SegmentedControl.Item>
|
|
101
|
+
<SegmentedControl.Item value="b">B</SegmentedControl.Item>
|
|
102
|
+
</SegmentedControl.Root>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### ColorPicker
|
|
106
|
+
|
|
107
|
+
```tsx
|
|
108
|
+
import { ColorPicker } from '@haklex/rich-editor-ui'
|
|
109
|
+
|
|
110
|
+
<ColorPicker value={color} onChange={setColor} />
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## 导出
|
|
114
|
+
|
|
115
|
+
```ts
|
|
116
|
+
// Dialog
|
|
117
|
+
export { Dialog, DialogBackdrop, DialogClose, ... } from './components/dialog'
|
|
118
|
+
export { presentDialog, dismissDialog, dismissAllDialogs } from './components/dialog/store'
|
|
119
|
+
|
|
120
|
+
// DropdownMenu
|
|
121
|
+
export { DropdownMenu, DropdownMenuItem, ... } from './components/dropdown-menu'
|
|
122
|
+
|
|
123
|
+
// Popover
|
|
124
|
+
export { Popover, PopoverPopup, PopoverTrigger, ... } from './components/popover'
|
|
125
|
+
|
|
126
|
+
// Tooltip
|
|
127
|
+
export { TooltipRoot, TooltipTrigger, TooltipPopup, ... } from './components/tooltip'
|
|
128
|
+
|
|
129
|
+
// SegmentedControl
|
|
130
|
+
export { SegmentedControl } from './components/segmented-control'
|
|
131
|
+
|
|
132
|
+
// ColorPicker
|
|
133
|
+
export { ColorPicker } from './components/color-picker'
|
|
134
|
+
|
|
135
|
+
// Portal 主题
|
|
136
|
+
export { PortalThemeProvider, PortalThemeWrapper, usePortalTheme } from '@haklex/rich-style-token'
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## 依赖
|
|
140
|
+
|
|
141
|
+
```json
|
|
142
|
+
{
|
|
143
|
+
"@base-ui/react": "^1.1.0",
|
|
144
|
+
"lucide-react": "^0.574.0",
|
|
145
|
+
"react": ">=19",
|
|
146
|
+
"react-dom": ">=19"
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## License
|
|
151
|
+
|
|
152
|
+
MIT
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ColorPickerProps {
|
|
2
|
+
currentColor: string;
|
|
3
|
+
onSelect: (color: string) => void;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function ColorPicker({ currentColor, onSelect, className, }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/color-picker/index.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,MAAM,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,WAAW,CAAC,EAC1B,YAAY,EACZ,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,2CAqDlB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const trigger: string;
|
|
2
|
+
export declare const triggerLabel: string;
|
|
3
|
+
export declare const triggerLetter: string;
|
|
4
|
+
export declare const triggerBar: string;
|
|
5
|
+
export declare const triggerChevron: string;
|
|
6
|
+
export declare const panel: string;
|
|
7
|
+
export declare const grid: string;
|
|
8
|
+
export declare const swatch: string;
|
|
9
|
+
export declare const swatchDot: string;
|
|
10
|
+
export declare const swatchCheck: string;
|
|
11
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/color-picker/styles.css.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,OAAO,QAgBlB,CAAA;AAEF,eAAO,MAAM,YAAY,QAIvB,CAAA;AAEF,eAAO,MAAM,aAAa,QAIxB,CAAA;AAEF,eAAO,MAAM,UAAU,QAKrB,CAAA;AAEF,eAAO,MAAM,cAAc,QAIzB,CAAA;AAEF,eAAO,MAAM,KAAK,QAGhB,CAAA;AAMF,eAAO,MAAM,IAAI,QAIf,CAAA;AAEF,eAAO,MAAM,MAAM,QAgBjB,CAAA;AAEF,eAAO,MAAM,SAAS,QAKpB,CAAA;AAEF,eAAO,MAAM,WAAW,QAKtB,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
type DialogProps = ComponentProps<typeof DialogPrimitive.Root>;
|
|
4
|
+
export declare function Dialog(props: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type DialogTriggerProps = ComponentProps<typeof DialogPrimitive.Trigger>;
|
|
6
|
+
export declare function DialogTrigger(props: DialogTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
type DialogPortalProps = ComponentProps<typeof DialogPrimitive.Portal>;
|
|
8
|
+
export declare function DialogPortal({ children, ...props }: DialogPortalProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
type DialogBackdropProps = ComponentProps<typeof DialogPrimitive.Backdrop>;
|
|
10
|
+
export declare function DialogBackdrop({ className, ...props }: DialogBackdropProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
type DialogPopupProps = ComponentProps<typeof DialogPrimitive.Popup> & {
|
|
12
|
+
showCloseButton?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export declare function DialogPopup({ showCloseButton, className, children, ...props }: DialogPopupProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
type DialogCloseProps = ComponentProps<typeof DialogPrimitive.Close>;
|
|
18
|
+
export declare function DialogClose(props: DialogCloseProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
type DialogHeaderProps = ComponentProps<'div'>;
|
|
20
|
+
export declare function DialogHeader({ className, ...props }: DialogHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
type DialogFooterProps = ComponentProps<'div'>;
|
|
22
|
+
export declare function DialogFooter({ className, ...props }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
type DialogTitleProps = ComponentProps<typeof DialogPrimitive.Title>;
|
|
24
|
+
export declare function DialogTitle({ className, ...props }: DialogTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
type DialogDescriptionProps = ComponentProps<typeof DialogPrimitive.Description>;
|
|
26
|
+
export declare function DialogDescription({ className, ...props }: DialogDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export type { DialogBackdropProps, DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogPopupProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, };
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAGjE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtD,KAAK,WAAW,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAA;AAE9D,wBAAgB,MAAM,CAAC,KAAK,EAAE,WAAW,2CAExC;AAID,KAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAA;AAExE,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAEtD;AAID,KAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,CAAA;AAEtE,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAMrE;AAID,KAAK,mBAAmB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,CAAA;AAE1E,wBAAgB,cAAc,CAA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B,EAChB,kBAAkB,GACnB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/stack.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAa,MAAM,OAAO,CAAA;AAkG7D,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,iBAAiB,CAWrD,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface DialogStackItemProps {
|
|
3
|
+
title?: ReactNode;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
content: FC<{
|
|
6
|
+
dismiss: () => void;
|
|
7
|
+
}>;
|
|
8
|
+
className?: string;
|
|
9
|
+
portalClassName?: string;
|
|
10
|
+
showCloseButton?: boolean;
|
|
11
|
+
clickOutsideToDismiss?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface DialogStackItem extends DialogStackItemProps {
|
|
14
|
+
id: string;
|
|
15
|
+
open: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function subscribe(fn: () => void): () => void;
|
|
18
|
+
export declare function getSnapshot(): DialogStackItem[];
|
|
19
|
+
export declare function presentDialog(props: DialogStackItemProps): () => void;
|
|
20
|
+
export declare function removeDialog(id: string): void;
|
|
21
|
+
export declare function dismissDialog(id: string): void;
|
|
22
|
+
export declare function dismissTopDialog(): void;
|
|
23
|
+
export declare function dismissAllDialogs(): void;
|
|
24
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAE1C,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,OAAO,EAAE,EAAE,CAAC;QAAE,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAA;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,OAAO,CAAA;CACd;AAUD,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,IAAI,cAKvC;AAED,wBAAgB,WAAW,IAAI,eAAe,EAAE,CAE/C;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,IAAI,CAKrE;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,QAGtC;AAED,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM,QAKvC;AAED,wBAAgB,gBAAgB,SAO/B;AAED,wBAAgB,iBAAiB,SAGhC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const backdrop: string;
|
|
2
|
+
export declare const popup: string;
|
|
3
|
+
export declare const closeButton: string;
|
|
4
|
+
export declare const header: string;
|
|
5
|
+
export declare const footer: string;
|
|
6
|
+
export declare const title: string;
|
|
7
|
+
export declare const description: string;
|
|
8
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/dialog/styles.css.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,QAAQ,QAKnB,CAAA;AAUF,eAAO,MAAM,KAAK,QAyBhB,CAAA;AAUF,eAAO,MAAM,WAAW,QA8BtB,CAAA;AASF,eAAO,MAAM,MAAM,QAUjB,CAAA;AAEF,eAAO,MAAM,MAAM,QAWjB,CAAA;AAEF,eAAO,MAAM,KAAK,QAOhB,CAAA;AAEF,eAAO,MAAM,WAAW,QAKtB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Menu as MenuPrimitive } from '@base-ui/react/menu';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
type DropdownMenuProps = ComponentProps<typeof MenuPrimitive.Root>;
|
|
4
|
+
export declare function DropdownMenu(props: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type DropdownMenuTriggerProps = ComponentProps<typeof MenuPrimitive.Trigger>;
|
|
6
|
+
export declare function DropdownMenuTrigger(props: DropdownMenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
type DropdownMenuContentProps = Omit<ComponentProps<typeof MenuPrimitive.Popup>, 'render'> & {
|
|
8
|
+
align?: ComponentProps<typeof MenuPrimitive.Positioner>['align'];
|
|
9
|
+
alignOffset?: ComponentProps<typeof MenuPrimitive.Positioner>['alignOffset'];
|
|
10
|
+
side?: ComponentProps<typeof MenuPrimitive.Positioner>['side'];
|
|
11
|
+
sideOffset?: ComponentProps<typeof MenuPrimitive.Positioner>['sideOffset'];
|
|
12
|
+
className?: string;
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
};
|
|
15
|
+
export declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, children, ...popupProps }: DropdownMenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
type DropdownMenuGroupProps = ComponentProps<typeof MenuPrimitive.Group>;
|
|
17
|
+
export declare function DropdownMenuGroup(props: DropdownMenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
type DropdownMenuLabelProps = ComponentProps<typeof MenuPrimitive.GroupLabel>;
|
|
19
|
+
export declare function DropdownMenuLabel({ className, ...props }: DropdownMenuLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
type DropdownMenuItemProps = ComponentProps<typeof MenuPrimitive.Item> & {
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare function DropdownMenuItem({ className, ...props }: DropdownMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
type DropdownMenuSeparatorProps = ComponentProps<typeof MenuPrimitive.Separator>;
|
|
25
|
+
export declare function DropdownMenuSeparator({ className, ...props }: DropdownMenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
type DropdownMenuRadioGroupProps = ComponentProps<typeof MenuPrimitive.RadioGroup>;
|
|
27
|
+
export declare function DropdownMenuRadioGroup(props: DropdownMenuRadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
type DropdownMenuRadioItemProps = ComponentProps<typeof MenuPrimitive.RadioItem> & {
|
|
29
|
+
className?: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function DropdownMenuRadioItem({ className, children, ...props }: DropdownMenuRadioItemProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
type DropdownMenuCheckboxItemProps = ComponentProps<typeof MenuPrimitive.CheckboxItem> & {
|
|
33
|
+
className?: string;
|
|
34
|
+
};
|
|
35
|
+
export declare function DropdownMenuCheckboxItem({ className, children, ...props }: DropdownMenuCheckboxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export type { DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuGroupProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuSeparatorProps, DropdownMenuTriggerProps, };
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown-menu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CA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AE,sBAAsB,2CAOxB;AAID,KAAK,qBAAqB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG;IACvE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,qBAAqB,2CAOvB;AAID,KAAK,0BAA0B,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAA;AAEhF,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,0BAA0B,2CAO5B;AAID,KAAK,2BAA2B,GAAG,cAAc,CAC/C,OAAO,aAAa,CAAC,UAAU,CAChC,CAAA;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,2BAA2B,2CAExE;AAID,KAAK,0BAA0B,GAAG,cAAc,CAC9C,OAAO,aAAa,CAAC,SAAS,CAC/B,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,0BAA0B,2CAY5B;AAID,KAAK,6BAA6B,GAAG,cAAc,CACjD,OAAO,aAAa,CAAC,YAAY,CAClC,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,6BAA6B,2CAY/B;AAUD,YAAY,EACV,6BAA6B,EAC7B,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,GACzB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const popup: string;
|
|
2
|
+
export declare const item: string;
|
|
3
|
+
export declare const separator: string;
|
|
4
|
+
export declare const label: string;
|
|
5
|
+
export declare const checkboxIndicator: string;
|
|
6
|
+
export declare const radioIndicator: string;
|
|
7
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown-menu/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,QAuBhB,CAAA;AAEF,eAAO,MAAM,IAAI,QAqBf,CAAA;AASF,eAAO,MAAM,SAAS,QAIpB,CAAA;AAEF,eAAO,MAAM,KAAK,QAKhB,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAO5B,CAAA;AAEF,eAAO,MAAM,cAAc,QAOzB,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
type PopoverContextType = {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const usePopover: () => PopoverContextType;
|
|
7
|
+
export { usePopover };
|
|
8
|
+
type PopoverProps = ComponentProps<typeof PopoverPrimitive.Root>;
|
|
9
|
+
export declare function Popover(props: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
type PopoverTriggerProps = ComponentProps<typeof PopoverPrimitive.Trigger>;
|
|
11
|
+
export declare function PopoverTrigger(props: PopoverTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
type PopoverPortalProps = ComponentProps<typeof PopoverPrimitive.Portal>;
|
|
13
|
+
export declare function PopoverPortal({ children, ...props }: PopoverPortalProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
type PopoverPositionerProps = ComponentProps<typeof PopoverPrimitive.Positioner>;
|
|
15
|
+
export declare function PopoverPositioner(props: PopoverPositionerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
type PopoverPopupProps = Omit<ComponentProps<typeof PopoverPrimitive.Popup>, 'render'> & {
|
|
17
|
+
className?: string;
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
};
|
|
20
|
+
export declare function PopoverPopup({ className, children, ...props }: PopoverPopupProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
type PopoverPanelProps = PopoverPopupProps & {
|
|
22
|
+
align?: PopoverPositionerProps['align'];
|
|
23
|
+
side?: PopoverPositionerProps['side'];
|
|
24
|
+
sideOffset?: PopoverPositionerProps['sideOffset'];
|
|
25
|
+
};
|
|
26
|
+
export declare function PopoverPanel({ align, side, sideOffset, className, children, ...popupProps }: PopoverPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
type PopoverArrowProps = ComponentProps<typeof PopoverPrimitive.Arrow>;
|
|
28
|
+
export declare function PopoverArrow({ className, ...props }: PopoverArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
type PopoverCloseProps = ComponentProps<typeof PopoverPrimitive.Close>;
|
|
30
|
+
export declare function PopoverClose(props: PopoverCloseProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
type PopoverTitleProps = ComponentProps<typeof PopoverPrimitive.Title>;
|
|
32
|
+
export declare function PopoverTitle({ className, ...props }: PopoverTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
type PopoverDescriptionProps = ComponentProps<typeof PopoverPrimitive.Description>;
|
|
34
|
+
export declare function PopoverDescription({ className, ...props }: PopoverDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export type { PopoverArrowProps, PopoverCloseProps, PopoverDescriptionProps, PopoverPanelProps, PopoverPopupProps, PopoverPortalProps, PopoverPositionerProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, };
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popover/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gB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AAM,WAAW,QAKtB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SegmentedControlItem<T extends string = string> {
|
|
3
|
+
value: T;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface SegmentedControlProps<T extends string = string> {
|
|
8
|
+
items: SegmentedControlItem<T>[];
|
|
9
|
+
value: T;
|
|
10
|
+
onChange: (value: T) => void;
|
|
11
|
+
size?: 'sm' | 'md';
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function SegmentedControl<T extends string>({ items, value, onChange, size, fullWidth, className, }: SegmentedControlProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/segmented-control/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrD,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC7D,KAAK,EAAE,CAAC,CAAA;IACR,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC9D,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAA;IAChC,KAAK,EAAE,CAAC,CAAA;IACR,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IAC5B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,EACjD,KAAK,EACL,KAAK,EACL,QAAQ,EACR,IAAW,EACX,SAAiB,EACjB,SAAS,GACV,EAAE,qBAAqB,CAAC,CAAC,CAAC,2CAmH1B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const container: string;
|
|
2
|
+
export declare const containerFullWidth: string;
|
|
3
|
+
export declare const sizeVariants: Record<"sm" | "md", string>;
|
|
4
|
+
export declare const indicator: string;
|
|
5
|
+
export declare const indicatorHidden: string;
|
|
6
|
+
export declare const item: string;
|
|
7
|
+
export declare const itemActive: string;
|
|
8
|
+
export declare const itemDisabled: string;
|
|
9
|
+
export declare const itemFullWidth: string;
|
|
10
|
+
export declare const itemPaddingVariants: Record<"sm" | "md", string>;
|
|
11
|
+
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/segmented-control/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAOpB,CAAA;AAEF,eAAO,MAAM,kBAAkB,QAE7B,CAAA;AAEF,eAAO,MAAM,YAAY,6BASvB,CAAA;AAEF,eAAO,MAAM,SAAS,QASpB,CAAA;AAEF,eAAO,MAAM,eAAe,QAE1B,CAAA;AAEF,eAAO,MAAM,IAAI,QAsBf,CAAA;AAEF,eAAO,MAAM,UAAU,QAErB,CAAA;AAEF,eAAO,MAAM,YAAY,QAGvB,CAAA;AAEF,eAAO,MAAM,aAAa,QAExB,CAAA;AAEF,eAAO,MAAM,mBAAmB,6BAO9B,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
type TooltipProviderProps = ComponentProps<typeof TooltipPrimitive.Provider>;
|
|
4
|
+
export declare function TooltipProvider(props: TooltipProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
type TooltipRootProps = ComponentProps<typeof TooltipPrimitive.Root>;
|
|
6
|
+
export declare function TooltipRoot(props: TooltipRootProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
type TooltipTriggerProps = ComponentProps<typeof TooltipPrimitive.Trigger>;
|
|
8
|
+
export declare function TooltipTrigger(props: TooltipTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
type TooltipPortalProps = ComponentProps<typeof TooltipPrimitive.Portal>;
|
|
10
|
+
export declare function TooltipPortal({ children, ...props }: TooltipPortalProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
type TooltipPositionerProps = ComponentProps<typeof TooltipPrimitive.Positioner>;
|
|
12
|
+
export declare function TooltipPositioner(props: TooltipPositionerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
type TooltipPopupProps = Omit<ComponentProps<typeof TooltipPrimitive.Popup>, 'render'> & {
|
|
14
|
+
className?: string;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
};
|
|
17
|
+
export declare function TooltipPopup({ className, children, ...props }: TooltipPopupProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
type TooltipContentProps = TooltipPopupProps & {
|
|
19
|
+
side?: TooltipPositionerProps['side'];
|
|
20
|
+
sideOffset?: TooltipPositionerProps['sideOffset'];
|
|
21
|
+
align?: TooltipPositionerProps['align'];
|
|
22
|
+
};
|
|
23
|
+
export declare function TooltipContent({ side, sideOffset, align, className, children, ...popupProps }: TooltipContentProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export type { TooltipContentProps, TooltipPopupProps, TooltipPortalProps, TooltipPositionerProps, TooltipProviderProps, TooltipRootProps, TooltipTriggerProps, };
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/index.tsx"],"names":[],"mappings":"AAAA,OAAO,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CAAC,YAAY,CAAC,CAAA;IACjD,KAAK,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAA;CACxC,CAAA;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAY,EACZ,UAAc,EACd,KAAgB,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,UAAU,EACd,EAAE,mBAAmB,2CAUrB;AAED,YAAY,EACV,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,GACpB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/tooltip/styles.css.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,KAAK,QAgBhB,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type { ColorPickerProps } from './components/color-picker';
|
|
2
|
+
export { ColorPicker } from './components/color-picker';
|
|
3
|
+
export type { DialogBackdropProps, DialogCloseProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogPopupProps, DialogPortalProps, DialogProps, DialogTitleProps, DialogTriggerProps, } from './components/dialog';
|
|
4
|
+
export { Dialog, DialogBackdrop, DialogClose, DialogDescription, DialogFooter, DialogHeader, DialogPopup, DialogPortal, DialogTitle, DialogTrigger, } from './components/dialog';
|
|
5
|
+
export { DialogStackProvider } from './components/dialog/stack';
|
|
6
|
+
export type { DialogStackItem, DialogStackItemProps, } from './components/dialog/store';
|
|
7
|
+
export { dismissAllDialogs, dismissDialog, dismissTopDialog, presentDialog, } from './components/dialog/store';
|
|
8
|
+
export type { DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuGroupProps, DropdownMenuItemProps, DropdownMenuLabelProps, DropdownMenuProps, DropdownMenuRadioGroupProps, DropdownMenuRadioItemProps, DropdownMenuSeparatorProps, DropdownMenuTriggerProps, } from './components/dropdown-menu';
|
|
9
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, } from './components/dropdown-menu';
|
|
10
|
+
export type { PopoverArrowProps, PopoverCloseProps, PopoverDescriptionProps, PopoverPanelProps, PopoverPopupProps, PopoverPortalProps, PopoverPositionerProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps, } from './components/popover';
|
|
11
|
+
export { Popover, PopoverArrow, PopoverClose, PopoverDescription, PopoverPanel, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverTitle, PopoverTrigger, usePopover, } from './components/popover';
|
|
12
|
+
export type { SegmentedControlItem, SegmentedControlProps, } from './components/segmented-control';
|
|
13
|
+
export { SegmentedControl } from './components/segmented-control';
|
|
14
|
+
export type { TooltipContentProps, TooltipPopupProps, TooltipPortalProps, TooltipPositionerProps, TooltipProviderProps, TooltipRootProps, TooltipTriggerProps, } from './components/tooltip';
|
|
15
|
+
export { TooltipContent, TooltipPopup, TooltipPortal, TooltipPositioner, TooltipProvider, TooltipRoot, TooltipTrigger, } from './components/tooltip';
|
|
16
|
+
export { PortalThemeProvider, PortalThemeWrapper, usePortalTheme, } from '@haklex/rich-style-token';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,qBAAqB,CAAA;AAC5B,O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