@ceed/ads 1.24.0 → 1.25.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/dist/chunks/rehype-accent-FZRUD7VI.js +39 -0
- package/dist/components/CurrencyInput/CurrencyInput.d.ts +1 -1
- package/dist/components/CurrencyInput/hooks/use-currency-setting.d.ts +2 -2
- package/dist/components/data-display/DataTable.md +1 -1
- package/dist/components/surfaces/Sheet.md +1 -1
- package/dist/index.browser.js +14 -16
- package/dist/index.browser.js.map +4 -4
- package/dist/index.cjs +6 -9
- package/dist/index.js +10 -69
- package/framer/index.js +1 -166
- package/package.json +14 -14
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/libs/rehype-accent/index.ts
|
|
2
|
+
import { visit } from "unist-util-visit";
|
|
3
|
+
function rehypeAccent(options) {
|
|
4
|
+
const { accentColor } = options;
|
|
5
|
+
return (tree) => {
|
|
6
|
+
visit(tree, "text", (node, index, parent) => {
|
|
7
|
+
const value = node.value;
|
|
8
|
+
const regex = /\|\|.*?\|\|/g;
|
|
9
|
+
let match;
|
|
10
|
+
let lastIndex = 0;
|
|
11
|
+
const newNodes = [];
|
|
12
|
+
while ((match = regex.exec(value)) !== null) {
|
|
13
|
+
if (match.index > lastIndex) {
|
|
14
|
+
newNodes.push({
|
|
15
|
+
type: "text",
|
|
16
|
+
value: value.slice(lastIndex, match.index)
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const innerText = match[0].split("||")[1];
|
|
20
|
+
newNodes.push({
|
|
21
|
+
type: "element",
|
|
22
|
+
tagName: "span",
|
|
23
|
+
properties: { textColor: accentColor },
|
|
24
|
+
children: [{ type: "text", value: innerText }]
|
|
25
|
+
});
|
|
26
|
+
lastIndex = match.index + match[0].length;
|
|
27
|
+
}
|
|
28
|
+
if (lastIndex < value.length) {
|
|
29
|
+
newNodes.push({ type: "text", value: value.slice(lastIndex) });
|
|
30
|
+
}
|
|
31
|
+
if (newNodes.length) {
|
|
32
|
+
parent.children.splice(index, 1, ...newNodes);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
rehypeAccent
|
|
39
|
+
};
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { InputProps } from '@mui/joy';
|
|
3
3
|
import { MotionProps } from 'framer-motion';
|
|
4
4
|
export interface CurrencyInputProps {
|
|
5
|
-
currency?: 'USD' | 'KRW';
|
|
5
|
+
currency?: 'USD' | 'KRW' | 'CAD';
|
|
6
6
|
max?: number;
|
|
7
7
|
value?: number;
|
|
8
8
|
defaultValue?: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const useCurrencySetting: (props: {
|
|
2
|
-
currency?: "USD" | "KRW" | "BHD" | undefined;
|
|
2
|
+
currency?: "USD" | "KRW" | "BHD" | "CAD" | undefined;
|
|
3
3
|
placeholder?: string | undefined;
|
|
4
4
|
}) => {
|
|
5
5
|
symbol: string;
|
|
6
6
|
thousandSeparator: string;
|
|
7
|
-
decimalSeparator: string;
|
|
7
|
+
decimalSeparator: string | undefined;
|
|
8
8
|
placeholder: string;
|
|
9
9
|
fixedDecimalScale: boolean;
|
|
10
10
|
decimalScale: number;
|
|
@@ -1038,7 +1038,7 @@ You can use `onCellEditStart` and `onCellEditStop` to detect when editing starts
|
|
|
1038
1038
|
</Typography>
|
|
1039
1039
|
{editLog.length === 0 ? <Typography level="body-xs" textColor="text.secondary">
|
|
1040
1040
|
No edits yet. Click on a cell to edit.
|
|
1041
|
-
</Typography> : editLog.map(
|
|
1041
|
+
</Typography> : editLog.map(log => <Typography key={log} level="body-xs">
|
|
1042
1042
|
{log}
|
|
1043
1043
|
</Typography>)}
|
|
1044
1044
|
</Box>
|
|
@@ -585,7 +585,7 @@ Sheets can be nested to create layered dashboard layouts with distinct visual se
|
|
|
585
585
|
<Typography level="title-md">최근 활동</Typography>
|
|
586
586
|
|
|
587
587
|
<Stack spacing={1}>
|
|
588
|
-
{['새로운 사용자가 가입했습니다', '프로젝트가 완료되었습니다', '댓글이 등록되었습니다'].map(
|
|
588
|
+
{['새로운 사용자가 가입했습니다', '프로젝트가 완료되었습니다', '댓글이 등록되었습니다'].map(activity => <Box key={activity} sx={{
|
|
589
589
|
p: 1.5,
|
|
590
590
|
bgcolor: 'background.body',
|
|
591
591
|
borderRadius: 'sm'
|