@mathwiz/ui-components 0.1.30 → 0.1.31
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/components/AICopilot/AICopilot.css +237 -0
- package/dist/components/AICopilot/AICopilot.d.ts +10 -0
- package/dist/components/AICopilot/AICopilot.d.ts.map +1 -0
- package/dist/components/AICopilot/components/ChatContainer.d.ts +9 -0
- package/dist/components/AICopilot/components/ChatContainer.d.ts.map +1 -0
- package/dist/components/AICopilot/components/ChatInput.d.ts +9 -0
- package/dist/components/AICopilot/components/ChatInput.d.ts.map +1 -0
- package/dist/components/AICopilot/components/ChatMessage.d.ts +9 -0
- package/dist/components/AICopilot/components/ChatMessage.d.ts.map +1 -0
- package/dist/components/AICopilot/components/CollapsibleContextBar.d.ts +9 -0
- package/dist/components/AICopilot/components/CollapsibleContextBar.d.ts.map +1 -0
- package/dist/components/AICopilot/components/QuickActions.d.ts +9 -0
- package/dist/components/AICopilot/components/QuickActions.d.ts.map +1 -0
- package/dist/components/AICopilot/components/StreamMessage.d.ts +9 -0
- package/dist/components/AICopilot/components/StreamMessage.d.ts.map +1 -0
- package/dist/components/AICopilot/index.d.ts +12 -0
- package/dist/components/AICopilot/index.d.ts.map +1 -0
- package/dist/components/AICopilot/store.d.ts +30 -0
- package/dist/components/AICopilot/store.d.ts.map +1 -0
- package/dist/components/AICopilot/types.d.ts +219 -0
- package/dist/components/AICopilot/types.d.ts.map +1 -0
- package/dist/components/MathCardV2/MathCardV2.types.d.ts +20 -1
- package/dist/components/MathCardV2/MathCardV2.types.d.ts.map +1 -1
- package/dist/components/MathCardV2/components/content/MathContainerContent.d.ts +16 -0
- package/dist/components/MathCardV2/components/content/MathContainerContent.d.ts.map +1 -0
- package/dist/components/MathCardV2/components/renderers/ContentRenderer.d.ts.map +1 -1
- package/dist/components/MathCardV2/hooks/useDataAdapter.d.ts.map +1 -1
- package/dist/components/MathCardV2/hooks/useMeetingProblemAdapter.d.ts.map +1 -1
- package/dist/components/MathCell/MathCell.d.ts +35 -0
- package/dist/components/MathCell/MathCell.d.ts.map +1 -0
- package/dist/components/MathCell/MathCell.styles.d.ts +149 -0
- package/dist/components/MathCell/MathCell.styles.d.ts.map +1 -0
- package/dist/components/MathCell/MathCell.types.d.ts +76 -0
- package/dist/components/MathCell/MathCell.types.d.ts.map +1 -0
- package/dist/components/MathCell/index.d.ts +11 -0
- package/dist/components/MathCell/index.d.ts.map +1 -0
- package/dist/components/MathContainer/FactorTable/FactorTable.d.ts +17 -0
- package/dist/components/MathContainer/FactorTable/FactorTable.d.ts.map +1 -0
- package/dist/components/MathContainer/FactorTable/FactorTable.types.d.ts +55 -0
- package/dist/components/MathContainer/FactorTable/FactorTable.types.d.ts.map +1 -0
- package/dist/components/MathContainer/FactorTable/FactorTableView.d.ts +28 -0
- package/dist/components/MathContainer/FactorTable/FactorTableView.d.ts.map +1 -0
- package/dist/components/MathContainer/FactorTable/index.d.ts +7 -0
- package/dist/components/MathContainer/FactorTable/index.d.ts.map +1 -0
- package/dist/components/MathContainer/LongDivision/LongDivision.d.ts +12 -0
- package/dist/components/MathContainer/LongDivision/LongDivision.d.ts.map +1 -0
- package/dist/components/MathContainer/LongDivision/LongDivision.layout.d.ts +81 -0
- package/dist/components/MathContainer/LongDivision/LongDivision.layout.d.ts.map +1 -0
- package/dist/components/MathContainer/LongDivision/LongDivision.types.d.ts +37 -0
- package/dist/components/MathContainer/LongDivision/LongDivision.types.d.ts.map +1 -0
- package/dist/components/MathContainer/LongDivision/LongDivisionView.d.ts +37 -0
- package/dist/components/MathContainer/LongDivision/LongDivisionView.d.ts.map +1 -0
- package/dist/components/MathContainer/LongDivision/index.d.ts +7 -0
- package/dist/components/MathContainer/LongDivision/index.d.ts.map +1 -0
- package/dist/components/MathContainer/MathContainer.types.d.ts +151 -0
- package/dist/components/MathContainer/MathContainer.types.d.ts.map +1 -0
- package/dist/components/MathContainer/ShortDivision/ShortDivision.d.ts +15 -0
- package/dist/components/MathContainer/ShortDivision/ShortDivision.d.ts.map +1 -0
- package/dist/components/MathContainer/ShortDivision/ShortDivision.types.d.ts +67 -0
- package/dist/components/MathContainer/ShortDivision/ShortDivision.types.d.ts.map +1 -0
- package/dist/components/MathContainer/ShortDivision/ShortDivisionView.d.ts +16 -0
- package/dist/components/MathContainer/ShortDivision/ShortDivisionView.d.ts.map +1 -0
- package/dist/components/MathContainer/ShortDivision/index.d.ts +8 -0
- package/dist/components/MathContainer/ShortDivision/index.d.ts.map +1 -0
- package/dist/components/MathContainer/VerticalMultiplication/VerticalMultiplication.d.ts +16 -0
- package/dist/components/MathContainer/VerticalMultiplication/VerticalMultiplication.d.ts.map +1 -0
- package/dist/components/MathContainer/VerticalMultiplication/VerticalMultiplication.types.d.ts +42 -0
- package/dist/components/MathContainer/VerticalMultiplication/VerticalMultiplication.types.d.ts.map +1 -0
- package/dist/components/MathContainer/VerticalMultiplication/VerticalMultiplicationView.d.ts +22 -0
- package/dist/components/MathContainer/VerticalMultiplication/VerticalMultiplicationView.d.ts.map +1 -0
- package/dist/components/MathContainer/VerticalMultiplication/VerticalMultiplicationView.utils.d.ts +19 -0
- package/dist/components/MathContainer/VerticalMultiplication/VerticalMultiplicationView.utils.d.ts.map +1 -0
- package/dist/components/MathContainer/VerticalMultiplication/index.d.ts +9 -0
- package/dist/components/MathContainer/VerticalMultiplication/index.d.ts.map +1 -0
- package/dist/components/MathContainer/hooks/index.d.ts +15 -0
- package/dist/components/MathContainer/hooks/index.d.ts.map +1 -0
- package/dist/components/MathContainer/hooks/useFactorTable.d.ts +39 -0
- package/dist/components/MathContainer/hooks/useFactorTable.d.ts.map +1 -0
- package/dist/components/MathContainer/hooks/useLongDivision.d.ts +51 -0
- package/dist/components/MathContainer/hooks/useLongDivision.d.ts.map +1 -0
- package/dist/components/MathContainer/hooks/useLongDivision.utils.d.ts +15 -0
- package/dist/components/MathContainer/hooks/useLongDivision.utils.d.ts.map +1 -0
- package/dist/components/MathContainer/hooks/useShortDivision.d.ts +41 -0
- package/dist/components/MathContainer/hooks/useShortDivision.d.ts.map +1 -0
- package/dist/components/MathContainer/hooks/useVerticalMultiplication.d.ts +28 -0
- package/dist/components/MathContainer/hooks/useVerticalMultiplication.d.ts.map +1 -0
- package/dist/components/MathContainer/hooks/useVerticalMultiplication.utils.d.ts +30 -0
- package/dist/components/MathContainer/hooks/useVerticalMultiplication.utils.d.ts.map +1 -0
- package/dist/components/MathContainer/index.d.ts +17 -0
- package/dist/components/MathContainer/index.d.ts.map +1 -0
- package/dist/components/dashboard/atoms/Badge/Badge.d.ts +32 -0
- package/dist/components/dashboard/atoms/Badge/Badge.d.ts.map +1 -0
- package/dist/components/dashboard/atoms/Badge/index.d.ts +4 -0
- package/dist/components/dashboard/atoms/Badge/index.d.ts.map +1 -0
- package/dist/index.cjs +129 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +6214 -4315
- package/dist/index.mjs.map +1 -1
- package/dist/mathwiz-ui.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useLongDivision Hook 工具函数
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* 计算长除法步骤
|
|
6
|
+
* 返回每一步的被除数、商、余数、乘积
|
|
7
|
+
*/
|
|
8
|
+
export declare function calculateSteps(dividend: number, divisor: number): Array<{
|
|
9
|
+
index: number;
|
|
10
|
+
dividend: number;
|
|
11
|
+
quotient: number;
|
|
12
|
+
remainder: number;
|
|
13
|
+
product: number;
|
|
14
|
+
}>;
|
|
15
|
+
//# sourceMappingURL=useLongDivision.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLongDivision.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/MathContainer/hooks/useLongDivision.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC,CAyCD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useShortDivision Hook
|
|
3
|
+
* 短除法逻辑层 - 管理状态、验证逻辑
|
|
4
|
+
*
|
|
5
|
+
* @description
|
|
6
|
+
* 使用 useRef 避免闭包问题,确保回调函数引用稳定。
|
|
7
|
+
* 短除法计算逻辑:每一步被除数 ÷ 除数 = 商 ... 余数
|
|
8
|
+
* 余数 × 10 + 下一位 = 新的被除数
|
|
9
|
+
*/
|
|
10
|
+
import type { ShortDivisionConfig, ContainerAnswers, AnswerStatus } from '../MathContainer.types';
|
|
11
|
+
export interface UseShortDivisionOptions {
|
|
12
|
+
/** 短除法配置 */
|
|
13
|
+
config: ShortDivisionConfig;
|
|
14
|
+
/** 初始答案 */
|
|
15
|
+
initialAnswers?: ContainerAnswers;
|
|
16
|
+
/** 答案变化回调 */
|
|
17
|
+
onAnswerChange?: (answers: ContainerAnswers) => void;
|
|
18
|
+
}
|
|
19
|
+
export interface UseShortDivisionReturn {
|
|
20
|
+
/** 当前所有答案 */
|
|
21
|
+
answers: ContainerAnswers;
|
|
22
|
+
/** 更新答案函数 */
|
|
23
|
+
updateAnswer: (cellId: string, value: number | null) => void;
|
|
24
|
+
/** 获取单元格状态 */
|
|
25
|
+
getCellStatus: (cellId: string) => AnswerStatus;
|
|
26
|
+
/** 每步计算结果 */
|
|
27
|
+
stepResults: Record<number, {
|
|
28
|
+
quotient: number;
|
|
29
|
+
remainder: number;
|
|
30
|
+
}>;
|
|
31
|
+
/** 是否完成 */
|
|
32
|
+
isComplete: boolean;
|
|
33
|
+
/** 重置函数 */
|
|
34
|
+
reset: () => void;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 短除法 Hook
|
|
38
|
+
* 管理短除法的状态和验证逻辑
|
|
39
|
+
*/
|
|
40
|
+
export declare function useShortDivision(options: UseShortDivisionOptions): UseShortDivisionReturn;
|
|
41
|
+
//# sourceMappingURL=useShortDivision.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShortDivision.d.ts","sourceRoot":"","sources":["../../../../src/components/MathContainer/hooks/useShortDivision.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,KAAK,EACV,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAEhC,MAAM,WAAW,uBAAuB;IACtC,YAAY;IACZ,MAAM,EAAE,mBAAmB,CAAC;IAC5B,WAAW;IACX,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,aAAa;IACb,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,sBAAsB;IACrC,aAAa;IACb,OAAO,EAAE,gBAAgB,CAAC;IAC1B,aAAa;IACb,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7D,cAAc;IACd,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,YAAY,CAAC;IAChD,aAAa;IACb,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrE,WAAW;IACX,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW;IACX,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,sBAAsB,CAiKzF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useVerticalMultiplication Hook
|
|
3
|
+
* 乘法竖式逻辑层 - 管理状态、验证逻辑
|
|
4
|
+
*/
|
|
5
|
+
import type { VerticalMultiplicationConfig, ContainerAnswers, AnswerStatus } from '../MathContainer.types';
|
|
6
|
+
export interface UseVerticalMultiplicationOptions {
|
|
7
|
+
config: VerticalMultiplicationConfig;
|
|
8
|
+
initialAnswers?: ContainerAnswers;
|
|
9
|
+
onAnswerChange?: (answers: ContainerAnswers) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface UseVerticalMultiplicationReturn {
|
|
12
|
+
answers: ContainerAnswers;
|
|
13
|
+
updateAnswer: (cellId: string, value: number | null) => void;
|
|
14
|
+
getCellStatus: (cellId: string) => AnswerStatus;
|
|
15
|
+
partialProducts: Array<{
|
|
16
|
+
digit: number;
|
|
17
|
+
partial: number;
|
|
18
|
+
rowIndex: number;
|
|
19
|
+
}>;
|
|
20
|
+
correctProduct: number;
|
|
21
|
+
isComplete: boolean;
|
|
22
|
+
reset: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 乘法竖式 Hook
|
|
26
|
+
*/
|
|
27
|
+
export declare function useVerticalMultiplication(options: UseVerticalMultiplicationOptions): UseVerticalMultiplicationReturn;
|
|
28
|
+
//# sourceMappingURL=useVerticalMultiplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVerticalMultiplication.d.ts","sourceRoot":"","sources":["../../../../src/components/MathContainer/hooks/useVerticalMultiplication.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,YAAY,EAAc,MAAM,wBAAwB,CAAC;AAGvH,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,4BAA4B,CAAC;IACrC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,+BAA+B;IAC9C,OAAO,EAAE,gBAAgB,CAAC;IAC1B,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7D,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,YAAY,CAAC;IAChD,eAAe,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7E,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,gCAAgC,GAAG,+BAA+B,CAkCpH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useVerticalMultiplication Hook 工具函数
|
|
3
|
+
*/
|
|
4
|
+
import type { ContainerAnswers } from '../MathContainer.types';
|
|
5
|
+
/**
|
|
6
|
+
* 计算中间积
|
|
7
|
+
* 被乘数 × 乘数的每一位
|
|
8
|
+
*/
|
|
9
|
+
export declare function calculatePartialProducts(multiplicand: number, multiplier: number): Array<{
|
|
10
|
+
digit: number;
|
|
11
|
+
partial: number;
|
|
12
|
+
rowIndex: number;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* 计算总单元格数
|
|
16
|
+
*/
|
|
17
|
+
export declare function calculateTotalCells(partialProducts: Array<{
|
|
18
|
+
partial: number;
|
|
19
|
+
}>, correctProduct: number): number;
|
|
20
|
+
/**
|
|
21
|
+
* 获取单元格的正确值
|
|
22
|
+
*/
|
|
23
|
+
export declare function getCorrectCellValue(cellId: string, partialProducts: Array<{
|
|
24
|
+
partial: number;
|
|
25
|
+
}>, correctProduct: number): number | null;
|
|
26
|
+
/**
|
|
27
|
+
* 检查是否完成
|
|
28
|
+
*/
|
|
29
|
+
export declare function checkComplete(answers: ContainerAnswers, totalCells: number): boolean;
|
|
30
|
+
//# sourceMappingURL=useVerticalMultiplication.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVerticalMultiplication.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/MathContainer/hooks/useVerticalMultiplication.utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,GACjB,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAO7D;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,eAAe,EAAE,KAAK,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,EAC3C,cAAc,EAAE,MAAM,GACrB,MAAM,CAMR;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,KAAK,CAAC;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,EAC3C,cAAc,EAAE,MAAM,GACrB,MAAM,GAAG,IAAI,CAyBf;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAGpF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MathContainer 模块导出
|
|
3
|
+
* 业务容器组件体系
|
|
4
|
+
*/
|
|
5
|
+
export { MathContainerMode, AnswerStatus, MathContainerType, } from './MathContainer.types';
|
|
6
|
+
export type { CellAnswer, ContainerAnswers, BaseContainerConfig, FactorTableConfig, ShortDivisionConfig, VerticalMultiplicationConfig, LongDivisionConfig, ContainerConfig, UseContainerReturn, ContainerViewProps, MathContainerProps, MathContainerAnswer, } from './MathContainer.types';
|
|
7
|
+
export { useFactorTable, useShortDivision, useVerticalMultiplication, useLongDivision, } from './hooks';
|
|
8
|
+
export type { UseFactorTableOptions, UseFactorTableReturn, UseShortDivisionOptions, UseShortDivisionReturn, UseVerticalMultiplicationOptions, UseVerticalMultiplicationReturn, UseLongDivisionOptions, UseLongDivisionReturn, } from './hooks';
|
|
9
|
+
export { FactorTable, FactorTableView } from './FactorTable';
|
|
10
|
+
export type { FactorTableProps, FactorPair, FactorCellData, FactorValidationResult, } from './FactorTable/FactorTable.types';
|
|
11
|
+
export { ShortDivision, ShortDivisionView } from './ShortDivision';
|
|
12
|
+
export type { ShortDivisionProps, ShortDivisionViewProps, ShortDivisionStep, ShortDivisionCellData, } from './ShortDivision/ShortDivision.types';
|
|
13
|
+
export { VerticalMultiplication, VerticalMultiplicationView } from './VerticalMultiplication';
|
|
14
|
+
export type { VerticalMultiplicationProps, VerticalMultiplicationViewProps, } from './VerticalMultiplication/VerticalMultiplication.types';
|
|
15
|
+
export { LongDivision, LongDivisionView } from './LongDivision';
|
|
16
|
+
export type { LongDivisionProps, LongDivisionViewProps, } from './LongDivision/LongDivision.types';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MathContainer/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAE/B,YAAY,EACV,UAAU,EACV,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC5B,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,yBAAyB,EACzB,eAAe,GAChB,MAAM,SAAS,CAAC;AACjB,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,gCAAgC,EAChC,+BAA+B,EAC/B,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC7D,YAAY,EACV,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACnE,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,qCAAqC,CAAC;AAG7C,OAAO,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC9F,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,GAChC,MAAM,uDAAuD,CAAC;AAG/D,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAChE,YAAY,EACV,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,mCAAmC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type BadgeVariant = 'solid' | 'outline' | 'glass';
|
|
3
|
+
export type BadgeColor = 'brand' | 'growth' | 'motivation' | 'neutral';
|
|
4
|
+
export type BadgeSize = 'sm' | 'md';
|
|
5
|
+
export interface BadgeProps {
|
|
6
|
+
/** Badge variant style */
|
|
7
|
+
variant?: BadgeVariant;
|
|
8
|
+
/** Badge color theme */
|
|
9
|
+
color?: BadgeColor;
|
|
10
|
+
/** Badge size */
|
|
11
|
+
size?: BadgeSize;
|
|
12
|
+
/** FontAwesome icon class (e.g., 'fa-solid fa-star') */
|
|
13
|
+
icon?: string;
|
|
14
|
+
/** Badge content */
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
/** Additional CSS classes */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** ARIA label for accessibility */
|
|
19
|
+
'aria-label'?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Badge component with solid, outline, and glass variants
|
|
23
|
+
*
|
|
24
|
+
* Features:
|
|
25
|
+
* - Three variants: solid, outline, glass (with backdrop-blur effect)
|
|
26
|
+
* - Four color themes: brand, growth, motivation, neutral
|
|
27
|
+
* - Two sizes: sm, md
|
|
28
|
+
* - Optional FontAwesome icon support
|
|
29
|
+
*/
|
|
30
|
+
export declare const Badge: React.FC<BadgeProps>;
|
|
31
|
+
export default Badge;
|
|
32
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../src/components/dashboard/atoms/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AACzD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,YAAY,GAAG,SAAS,CAAC;AACvE,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpC,MAAM,WAAW,UAAU;IACzB,0BAA0B;IAC1B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,wBAAwB;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,iBAAiB;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA0CD;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAmDtC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/dashboard/atoms/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC"}
|