musae 1.3.0 → 1.3.1-beta.2
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/__test__/table.test.d.ts +1 -0
- package/dist/components/search/search.cjs +3 -1
- package/dist/components/search/search.d.ts +1 -0
- package/dist/components/search/search.mjs +3 -1
- package/dist/components/sheet/sheet.cjs +13 -3
- package/dist/components/sheet/sheet.d.ts +1 -1
- package/dist/components/sheet/sheet.mjs +13 -3
- package/dist/components/side-sheet/__test__/index.test.d.ts +1 -0
- package/dist/components/side-sheet/context.cjs +15 -0
- package/dist/components/side-sheet/context.d.ts +11 -0
- package/dist/components/side-sheet/context.mjs +13 -0
- package/dist/components/side-sheet/index.d.ts +2 -0
- package/dist/components/side-sheet/side-sheet.cjs +140 -0
- package/dist/components/side-sheet/side-sheet.d.ts +16 -0
- package/dist/components/side-sheet/side-sheet.mjs +136 -0
- package/dist/components/side-sheet/styles.cjs +106 -0
- package/dist/components/side-sheet/styles.d.ts +83 -0
- package/dist/components/side-sheet/styles.mjs +104 -0
- package/dist/components/table/body.cjs +11 -20
- package/dist/components/table/body.mjs +12 -21
- package/dist/components/table/context.cjs +6 -1
- package/dist/components/table/context.d.ts +4 -0
- package/dist/components/table/context.mjs +6 -2
- package/dist/components/table/header/cell.cjs +7 -23
- package/dist/components/table/header/cell.mjs +7 -23
- package/dist/components/table/header/header.cjs +3 -31
- package/dist/components/table/header/header.mjs +4 -32
- package/dist/components/table/hooks.cjs +31 -9
- package/dist/components/table/hooks.d.ts +3 -2
- package/dist/components/table/hooks.mjs +31 -9
- package/dist/components/table/styles.cjs +99 -0
- package/dist/components/table/styles.d.ts +84 -0
- package/dist/components/table/styles.mjs +95 -0
- package/dist/components/table/table.cjs +49 -7
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.mjs +51 -9
- package/dist/components/theme/theme.cjs +31 -0
- package/dist/components/theme/theme.mjs +31 -1
- package/dist/components/theme/tokens.stylex.d.ts +7 -0
- package/dist/components/typography/body.cjs +31 -0
- package/dist/components/typography/body.d.ts +8 -0
- package/dist/components/typography/body.mjs +27 -0
- package/dist/components/typography/context.cjs +15 -0
- package/dist/components/typography/context.d.ts +11 -0
- package/dist/components/typography/context.mjs +13 -0
- package/dist/components/typography/display.cjs +31 -0
- package/dist/components/typography/display.d.ts +8 -0
- package/dist/components/typography/display.mjs +27 -0
- package/dist/components/typography/headline.cjs +31 -0
- package/dist/components/typography/headline.d.ts +8 -0
- package/dist/components/typography/headline.mjs +27 -0
- package/dist/components/typography/index.d.ts +2 -0
- package/dist/components/typography/label.cjs +31 -0
- package/dist/components/typography/label.d.ts +8 -0
- package/dist/components/typography/label.mjs +27 -0
- package/dist/components/typography/title.cjs +31 -0
- package/dist/components/typography/title.d.ts +8 -0
- package/dist/components/typography/title.mjs +27 -0
- package/dist/components/typography/typography.cjs +24 -0
- package/dist/components/typography/typography.d.ts +14 -0
- package/dist/components/typography/typography.mjs +15 -0
- package/dist/index.cjs +4 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/styles.css +54 -0
- package/dist/types/search.d.ts +6 -0
- package/dist/types/sheet.d.ts +6 -0
- package/dist/types/side-sheet.d.ts +90 -0
- package/dist/types/table.d.ts +17 -0
- package/dist/types/typography.d.ts +15 -0
- package/package.json +2 -2
- package/dist/components/drawer/context.cjs +0 -14
- package/dist/components/drawer/context.d.ts +0 -10
- package/dist/components/drawer/context.mjs +0 -12
- package/dist/components/drawer/drawer.cjs +0 -92
- package/dist/components/drawer/drawer.d.ts +0 -9
- package/dist/components/drawer/drawer.mjs +0 -88
- package/dist/components/drawer/index.d.ts +0 -2
- package/dist/types/drawer.d.ts +0 -74
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
|
+
var className = require('@aiszlab/relax/class-name');
|
|
10
|
+
var theme = require('../theme/theme.cjs');
|
|
11
|
+
var context = require('./context.cjs');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @zh Body 排版组件。使用 `<p>` 语义元素,适用于正文段落。
|
|
15
|
+
* @en Body typography component. Uses `<p>` semantic element for body text paragraphs.
|
|
16
|
+
*/
|
|
17
|
+
var Body = function Body(_ref) {
|
|
18
|
+
var _ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
20
|
+
children = _ref.children,
|
|
21
|
+
className$1 = _ref.className,
|
|
22
|
+
style = _ref.style;
|
|
23
|
+
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
24
|
+
var styled = stylex.props(theme.$body[size]);
|
|
25
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
26
|
+
className: className.stringify(classNames.body, className$1, styled.className),
|
|
27
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
28
|
+
}, children);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.default = Body;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TypographyProps } from "../../types/typography";
|
|
3
|
+
/**
|
|
4
|
+
* @zh Body 排版组件。使用 `<p>` 语义元素,适用于正文段落。
|
|
5
|
+
* @en Body typography component. Uses `<p>` semantic element for body text paragraphs.
|
|
6
|
+
*/
|
|
7
|
+
declare const Body: ({ size, children, className, style }: TypographyProps) => ReactNode;
|
|
8
|
+
export default Body;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
|
+
import { stringify } from '@aiszlab/relax/class-name';
|
|
6
|
+
import { $body } from '../theme/theme.mjs';
|
|
7
|
+
import { CLASS_NAMES } from './context.mjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @zh Body 排版组件。使用 `<p>` 语义元素,适用于正文段落。
|
|
11
|
+
* @en Body typography component. Uses `<p>` semantic element for body text paragraphs.
|
|
12
|
+
*/
|
|
13
|
+
var Body = function Body(_ref) {
|
|
14
|
+
var _ref$size = _ref.size,
|
|
15
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
style = _ref.style;
|
|
19
|
+
var classNames = useClassNames(CLASS_NAMES);
|
|
20
|
+
var styled = props($body[size]);
|
|
21
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
22
|
+
className: stringify(classNames.body, className, styled.className),
|
|
23
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
24
|
+
}, children);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { Body as default };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @zh Typography 的 class 名称
|
|
5
|
+
* @en class names for Typography
|
|
6
|
+
*/
|
|
7
|
+
var CLASS_NAMES = {
|
|
8
|
+
display: "typography-display",
|
|
9
|
+
headline: "typography-headline",
|
|
10
|
+
title: "typography-title",
|
|
11
|
+
label: "typography-label",
|
|
12
|
+
body: "typography-body"
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.CLASS_NAMES = CLASS_NAMES;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @zh Typography 的 class 名称
|
|
3
|
+
* @en class names for Typography
|
|
4
|
+
*/
|
|
5
|
+
export declare const CLASS_NAMES: {
|
|
6
|
+
readonly display: "typography-display";
|
|
7
|
+
readonly headline: "typography-headline";
|
|
8
|
+
readonly title: "typography-title";
|
|
9
|
+
readonly label: "typography-label";
|
|
10
|
+
readonly body: "typography-body";
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @zh Typography 的 class 名称
|
|
3
|
+
* @en class names for Typography
|
|
4
|
+
*/
|
|
5
|
+
var CLASS_NAMES = {
|
|
6
|
+
display: "typography-display",
|
|
7
|
+
headline: "typography-headline",
|
|
8
|
+
title: "typography-title",
|
|
9
|
+
label: "typography-label",
|
|
10
|
+
body: "typography-body"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { CLASS_NAMES };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
|
+
var className = require('@aiszlab/relax/class-name');
|
|
10
|
+
var theme = require('../theme/theme.cjs');
|
|
11
|
+
var context = require('./context.cjs');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @zh Display 排版组件。使用 `<h1>` 语义元素,适用于页面最大的标题。
|
|
15
|
+
* @en Display typography component. Uses `<h1>` semantic element for the largest page headings.
|
|
16
|
+
*/
|
|
17
|
+
var Display = function Display(_ref) {
|
|
18
|
+
var _ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
20
|
+
children = _ref.children,
|
|
21
|
+
className$1 = _ref.className,
|
|
22
|
+
style = _ref.style;
|
|
23
|
+
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
24
|
+
var styled = stylex.props(theme.$display[size]);
|
|
25
|
+
return /*#__PURE__*/React.createElement("h1", {
|
|
26
|
+
className: className.stringify(classNames.display, className$1, styled.className),
|
|
27
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
28
|
+
}, children);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.default = Display;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TypographyProps } from "../../types/typography";
|
|
3
|
+
/**
|
|
4
|
+
* @zh Display 排版组件。使用 `<h1>` 语义元素,适用于页面最大的标题。
|
|
5
|
+
* @en Display typography component. Uses `<h1>` semantic element for the largest page headings.
|
|
6
|
+
*/
|
|
7
|
+
declare const Display: ({ size, children, className, style }: TypographyProps) => ReactNode;
|
|
8
|
+
export default Display;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
|
+
import { stringify } from '@aiszlab/relax/class-name';
|
|
6
|
+
import { $display } from '../theme/theme.mjs';
|
|
7
|
+
import { CLASS_NAMES } from './context.mjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @zh Display 排版组件。使用 `<h1>` 语义元素,适用于页面最大的标题。
|
|
11
|
+
* @en Display typography component. Uses `<h1>` semantic element for the largest page headings.
|
|
12
|
+
*/
|
|
13
|
+
var Display = function Display(_ref) {
|
|
14
|
+
var _ref$size = _ref.size,
|
|
15
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
style = _ref.style;
|
|
19
|
+
var classNames = useClassNames(CLASS_NAMES);
|
|
20
|
+
var styled = props($display[size]);
|
|
21
|
+
return /*#__PURE__*/React.createElement("h1", {
|
|
22
|
+
className: stringify(classNames.display, className, styled.className),
|
|
23
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
24
|
+
}, children);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { Display as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
|
+
var className = require('@aiszlab/relax/class-name');
|
|
10
|
+
var theme = require('../theme/theme.cjs');
|
|
11
|
+
var context = require('./context.cjs');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @zh Headline 排版组件。使用 `<h2>` 语义元素,适用于页面次级标题。
|
|
15
|
+
* @en Headline typography component. Uses `<h2>` semantic element for secondary page headings.
|
|
16
|
+
*/
|
|
17
|
+
var Headline = function Headline(_ref) {
|
|
18
|
+
var _ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
20
|
+
children = _ref.children,
|
|
21
|
+
className$1 = _ref.className,
|
|
22
|
+
style = _ref.style;
|
|
23
|
+
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
24
|
+
var styled = stylex.props(theme.$headline[size]);
|
|
25
|
+
return /*#__PURE__*/React.createElement("h2", {
|
|
26
|
+
className: className.stringify(classNames.headline, className$1, styled.className),
|
|
27
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
28
|
+
}, children);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.default = Headline;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TypographyProps } from "../../types/typography";
|
|
3
|
+
/**
|
|
4
|
+
* @zh Headline 排版组件。使用 `<h2>` 语义元素,适用于页面次级标题。
|
|
5
|
+
* @en Headline typography component. Uses `<h2>` semantic element for secondary page headings.
|
|
6
|
+
*/
|
|
7
|
+
declare const Headline: ({ size, children, className, style }: TypographyProps) => ReactNode;
|
|
8
|
+
export default Headline;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
|
+
import { stringify } from '@aiszlab/relax/class-name';
|
|
6
|
+
import { $headline } from '../theme/theme.mjs';
|
|
7
|
+
import { CLASS_NAMES } from './context.mjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @zh Headline 排版组件。使用 `<h2>` 语义元素,适用于页面次级标题。
|
|
11
|
+
* @en Headline typography component. Uses `<h2>` semantic element for secondary page headings.
|
|
12
|
+
*/
|
|
13
|
+
var Headline = function Headline(_ref) {
|
|
14
|
+
var _ref$size = _ref.size,
|
|
15
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
style = _ref.style;
|
|
19
|
+
var classNames = useClassNames(CLASS_NAMES);
|
|
20
|
+
var styled = props($headline[size]);
|
|
21
|
+
return /*#__PURE__*/React.createElement("h2", {
|
|
22
|
+
className: stringify(classNames.headline, className, styled.className),
|
|
23
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
24
|
+
}, children);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { Headline as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
|
+
var className = require('@aiszlab/relax/class-name');
|
|
10
|
+
var theme = require('../theme/theme.cjs');
|
|
11
|
+
var context = require('./context.cjs');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @zh Label 排版组件。使用 `<span>` 语义元素,适用于标签、说明等文本。
|
|
15
|
+
* @en Label typography component. Uses `<span>` semantic element for labels and captions.
|
|
16
|
+
*/
|
|
17
|
+
var Label = function Label(_ref) {
|
|
18
|
+
var _ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
20
|
+
children = _ref.children,
|
|
21
|
+
className$1 = _ref.className,
|
|
22
|
+
style = _ref.style;
|
|
23
|
+
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
24
|
+
var styled = stylex.props(theme.$label[size]);
|
|
25
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
26
|
+
className: className.stringify(classNames.label, className$1, styled.className),
|
|
27
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
28
|
+
}, children);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.default = Label;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TypographyProps } from "../../types/typography";
|
|
3
|
+
/**
|
|
4
|
+
* @zh Label 排版组件。使用 `<span>` 语义元素,适用于标签、说明等文本。
|
|
5
|
+
* @en Label typography component. Uses `<span>` semantic element for labels and captions.
|
|
6
|
+
*/
|
|
7
|
+
declare const Label: ({ size, children, className, style }: TypographyProps) => ReactNode;
|
|
8
|
+
export default Label;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
|
+
import { stringify } from '@aiszlab/relax/class-name';
|
|
6
|
+
import { $label } from '../theme/theme.mjs';
|
|
7
|
+
import { CLASS_NAMES } from './context.mjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @zh Label 排版组件。使用 `<span>` 语义元素,适用于标签、说明等文本。
|
|
11
|
+
* @en Label typography component. Uses `<span>` semantic element for labels and captions.
|
|
12
|
+
*/
|
|
13
|
+
var Label = function Label(_ref) {
|
|
14
|
+
var _ref$size = _ref.size,
|
|
15
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
style = _ref.style;
|
|
19
|
+
var classNames = useClassNames(CLASS_NAMES);
|
|
20
|
+
var styled = props($label[size]);
|
|
21
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
22
|
+
className: stringify(classNames.label, className, styled.className),
|
|
23
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
24
|
+
}, children);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { Label as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
8
|
+
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
|
+
var className = require('@aiszlab/relax/class-name');
|
|
10
|
+
var theme = require('../theme/theme.cjs');
|
|
11
|
+
var context = require('./context.cjs');
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @zh Title 排版组件。使用 `<h3>` 语义元素,适用于区块标题。
|
|
15
|
+
* @en Title typography component. Uses `<h3>` semantic element for section titles.
|
|
16
|
+
*/
|
|
17
|
+
var Title = function Title(_ref) {
|
|
18
|
+
var _ref$size = _ref.size,
|
|
19
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
20
|
+
children = _ref.children,
|
|
21
|
+
className$1 = _ref.className,
|
|
22
|
+
style = _ref.style;
|
|
23
|
+
var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
|
|
24
|
+
var styled = stylex.props(theme.$title[size]);
|
|
25
|
+
return /*#__PURE__*/React.createElement("h3", {
|
|
26
|
+
className: className.stringify(classNames.title, className$1, styled.className),
|
|
27
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
28
|
+
}, children);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.default = Title;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { TypographyProps } from "../../types/typography";
|
|
3
|
+
/**
|
|
4
|
+
* @zh Title 排版组件。使用 `<h3>` 语义元素,适用于区块标题。
|
|
5
|
+
* @en Title typography component. Uses `<h3>` semantic element for section titles.
|
|
6
|
+
*/
|
|
7
|
+
declare const Title: ({ size, children, className, style }: TypographyProps) => ReactNode;
|
|
8
|
+
export default Title;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
4
|
+
import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
|
+
import { stringify } from '@aiszlab/relax/class-name';
|
|
6
|
+
import { $title } from '../theme/theme.mjs';
|
|
7
|
+
import { CLASS_NAMES } from './context.mjs';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @zh Title 排版组件。使用 `<h3>` 语义元素,适用于区块标题。
|
|
11
|
+
* @en Title typography component. Uses `<h3>` semantic element for section titles.
|
|
12
|
+
*/
|
|
13
|
+
var Title = function Title(_ref) {
|
|
14
|
+
var _ref$size = _ref.size,
|
|
15
|
+
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
16
|
+
children = _ref.children,
|
|
17
|
+
className = _ref.className,
|
|
18
|
+
style = _ref.style;
|
|
19
|
+
var classNames = useClassNames(CLASS_NAMES);
|
|
20
|
+
var styled = props($title[size]);
|
|
21
|
+
return /*#__PURE__*/React.createElement("h3", {
|
|
22
|
+
className: stringify(classNames.title, className, styled.className),
|
|
23
|
+
style: _objectSpread(_objectSpread({}, styled.style), style)
|
|
24
|
+
}, children);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { Title as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var display = require('./display.cjs');
|
|
6
|
+
var headline = require('./headline.cjs');
|
|
7
|
+
var title = require('./title.cjs');
|
|
8
|
+
var label = require('./label.cjs');
|
|
9
|
+
var body = require('./body.cjs');
|
|
10
|
+
|
|
11
|
+
var Typography = {
|
|
12
|
+
Display: display.default,
|
|
13
|
+
Headline: headline.default,
|
|
14
|
+
Title: title.default,
|
|
15
|
+
Label: label.default,
|
|
16
|
+
Body: body.default
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.Display = display.default;
|
|
20
|
+
exports.Headline = headline.default;
|
|
21
|
+
exports.Title = title.default;
|
|
22
|
+
exports.Label = label.default;
|
|
23
|
+
exports.Body = body.default;
|
|
24
|
+
exports.default = Typography;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Display from "./display";
|
|
2
|
+
import Headline from "./headline";
|
|
3
|
+
import Title from "./title";
|
|
4
|
+
import Label from "./label";
|
|
5
|
+
import Body from "./body";
|
|
6
|
+
declare const Typography: {
|
|
7
|
+
Display: ({ size, children, className, style }: import("../../types/typography").TypographyProps) => import("react").ReactNode;
|
|
8
|
+
Headline: ({ size, children, className, style }: import("../../types/typography").TypographyProps) => import("react").ReactNode;
|
|
9
|
+
Title: ({ size, children, className, style }: import("../../types/typography").TypographyProps) => import("react").ReactNode;
|
|
10
|
+
Label: ({ size, children, className, style }: import("../../types/typography").TypographyProps) => import("react").ReactNode;
|
|
11
|
+
Body: ({ size, children, className, style }: import("../../types/typography").TypographyProps) => import("react").ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export default Typography;
|
|
14
|
+
export { Display, Headline, Title, Label, Body };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Display from './display.mjs';
|
|
2
|
+
import Headline from './headline.mjs';
|
|
3
|
+
import Title from './title.mjs';
|
|
4
|
+
import Label from './label.mjs';
|
|
5
|
+
import Body from './body.mjs';
|
|
6
|
+
|
|
7
|
+
var Typography = {
|
|
8
|
+
Display: Display,
|
|
9
|
+
Headline: Headline,
|
|
10
|
+
Title: Title,
|
|
11
|
+
Label: Label,
|
|
12
|
+
Body: Body
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { Body, Display, Headline, Label, Title, Typography as default };
|
package/dist/index.cjs
CHANGED
|
@@ -28,7 +28,6 @@ var datePicker = require('./components/date-picker/date-picker.cjs');
|
|
|
28
28
|
var dateRangePicker = require('./components/date-range-picker/date-range-picker.cjs');
|
|
29
29
|
var dialog = require('./components/dialog/dialog.cjs');
|
|
30
30
|
var divider = require('./components/divider/divider.cjs');
|
|
31
|
-
var drawer = require('./components/drawer/drawer.cjs');
|
|
32
31
|
var ellipsis = require('./components/ellipsis/ellipsis.cjs');
|
|
33
32
|
var empty = require('./components/empty/empty.cjs');
|
|
34
33
|
var fab = require('./components/fab/fab.cjs');
|
|
@@ -52,6 +51,7 @@ var rate = require('./components/rate/rate.cjs');
|
|
|
52
51
|
var search = require('./components/search/search.cjs');
|
|
53
52
|
var select = require('./components/select/select.cjs');
|
|
54
53
|
var sessionStorage = require('./components/session-storage/session-storage.cjs');
|
|
54
|
+
var sideSheet = require('./components/side-sheet/side-sheet.cjs');
|
|
55
55
|
var skeleton = require('./components/skeleton/skeleton.cjs');
|
|
56
56
|
var space = require('./components/space/space.cjs');
|
|
57
57
|
var splitPanel = require('./components/split-panel/split-panel.cjs');
|
|
@@ -68,6 +68,7 @@ var tooltip = require('./components/tooltip/tooltip.cjs');
|
|
|
68
68
|
var tour = require('./components/tour/tour.cjs');
|
|
69
69
|
var transfer = require('./components/transfer/transfer.cjs');
|
|
70
70
|
var tree = require('./components/tree/tree.cjs');
|
|
71
|
+
var typography = require('./components/typography/typography.cjs');
|
|
71
72
|
var upload = require('./components/upload/upload.cjs');
|
|
72
73
|
var visuallyHidden = require('./components/visually-hidden/visually-hidden.cjs');
|
|
73
74
|
var waterfall = require('./components/waterfall/waterfall.cjs');
|
|
@@ -108,7 +109,6 @@ exports.DatePicker = datePicker.default;
|
|
|
108
109
|
exports.DateRangePicker = dateRangePicker.default;
|
|
109
110
|
exports.Dialog = dialog.default;
|
|
110
111
|
exports.Divider = divider.default;
|
|
111
|
-
exports.Drawer = drawer.default;
|
|
112
112
|
exports.Ellipsis = ellipsis.default;
|
|
113
113
|
exports.Empty = empty.default;
|
|
114
114
|
exports.Fab = fab.default;
|
|
@@ -132,6 +132,7 @@ exports.Rate = rate.default;
|
|
|
132
132
|
exports.Search = search.default;
|
|
133
133
|
exports.Select = select.default;
|
|
134
134
|
exports.SessionStorage = sessionStorage.default;
|
|
135
|
+
exports.SideSheet = sideSheet.default;
|
|
135
136
|
exports.Skeleton = skeleton.default;
|
|
136
137
|
exports.Space = space.default;
|
|
137
138
|
exports.SplitPanel = splitPanel.default;
|
|
@@ -148,6 +149,7 @@ exports.Tooltip = tooltip.default;
|
|
|
148
149
|
exports.Tour = tour.default;
|
|
149
150
|
exports.Transfer = transfer.default;
|
|
150
151
|
exports.Tree = tree.default;
|
|
152
|
+
exports.Typography = typography.default;
|
|
151
153
|
exports.Upload = upload.default;
|
|
152
154
|
exports.VisuallyHidden = visuallyHidden.default;
|
|
153
155
|
exports.Waterfall = waterfall.default;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export { ThemeProvider } from "./components/theme";
|
|
|
21
21
|
export { ConfigProvider } from "./components/config";
|
|
22
22
|
export { Form } from "./components/form";
|
|
23
23
|
export { Empty } from "./components/empty";
|
|
24
|
-
export { Drawer } from "./components/drawer";
|
|
25
24
|
export { Dialog } from "./components/dialog";
|
|
26
25
|
export { Tag } from "./components/tag";
|
|
27
26
|
export { Calendar, ContributionCalendar } from "./components/calendar";
|
|
@@ -52,6 +51,7 @@ export { Watermark } from "./components/watermark";
|
|
|
52
51
|
export { Collapse } from "./components/collapse";
|
|
53
52
|
export { Fab } from "./components/fab";
|
|
54
53
|
export { Transfer } from "./components/transfer";
|
|
54
|
+
export { Typography } from "./components/typography";
|
|
55
55
|
export { Badge } from "./components/badge";
|
|
56
56
|
export { Skeleton } from "./components/skeleton";
|
|
57
57
|
export { VisuallyHidden } from "./components/visually-hidden";
|
|
@@ -60,6 +60,7 @@ export { Popconfirm } from "./components/popconfirm";
|
|
|
60
60
|
export { Highlight } from "./components/highlight";
|
|
61
61
|
export { Bench } from "./components/bench";
|
|
62
62
|
export { BottomSheet } from "./components/bottom-sheet";
|
|
63
|
+
export { SideSheet } from "./components/side-sheet";
|
|
63
64
|
export { I18nButton } from "./components/i18n-button";
|
|
64
65
|
export { RichTextEditor } from "./components/rich-text-editor";
|
|
65
66
|
export { Quote } from "./components/quote";
|
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,6 @@ export { default as DatePicker } from './components/date-picker/date-picker.mjs'
|
|
|
26
26
|
export { default as DateRangePicker } from './components/date-range-picker/date-range-picker.mjs';
|
|
27
27
|
export { default as Dialog } from './components/dialog/dialog.mjs';
|
|
28
28
|
export { default as Divider } from './components/divider/divider.mjs';
|
|
29
|
-
export { default as Drawer } from './components/drawer/drawer.mjs';
|
|
30
29
|
export { default as Ellipsis } from './components/ellipsis/ellipsis.mjs';
|
|
31
30
|
export { default as Empty } from './components/empty/empty.mjs';
|
|
32
31
|
export { default as Fab } from './components/fab/fab.mjs';
|
|
@@ -50,6 +49,7 @@ export { default as Rate } from './components/rate/rate.mjs';
|
|
|
50
49
|
export { default as Search } from './components/search/search.mjs';
|
|
51
50
|
export { default as Select } from './components/select/select.mjs';
|
|
52
51
|
export { default as SessionStorage } from './components/session-storage/session-storage.mjs';
|
|
52
|
+
export { default as SideSheet } from './components/side-sheet/side-sheet.mjs';
|
|
53
53
|
export { default as Skeleton } from './components/skeleton/skeleton.mjs';
|
|
54
54
|
export { default as Space } from './components/space/space.mjs';
|
|
55
55
|
export { default as SplitPanel } from './components/split-panel/split-panel.mjs';
|
|
@@ -66,6 +66,7 @@ export { default as Tooltip } from './components/tooltip/tooltip.mjs';
|
|
|
66
66
|
export { default as Tour } from './components/tour/tour.mjs';
|
|
67
67
|
export { default as Transfer } from './components/transfer/transfer.mjs';
|
|
68
68
|
export { default as Tree } from './components/tree/tree.mjs';
|
|
69
|
+
export { default as Typography } from './components/typography/typography.mjs';
|
|
69
70
|
export { default as Upload } from './components/upload/upload.mjs';
|
|
70
71
|
export { default as VisuallyHidden } from './components/visually-hidden/visually-hidden.mjs';
|
|
71
72
|
export { default as Waterfall } from './components/waterfall/waterfall.mjs';
|
package/dist/styles.css
CHANGED
|
@@ -1396,6 +1396,14 @@
|
|
|
1396
1396
|
padding-inline-end: var(--musaex-16072l3);
|
|
1397
1397
|
}
|
|
1398
1398
|
|
|
1399
|
+
.musaex-1max5gj {
|
|
1400
|
+
padding-inline-end: var(--musaex-1vpnstl);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
.musaex-1sznsej {
|
|
1404
|
+
padding-inline-start: calc(var(--depth) * var(--musaex-14eq97i));
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1399
1407
|
.musaex-4qvwnj {
|
|
1400
1408
|
padding-inline-start: calc(var(--musaex-16suft8) / 2 - var(--musaex-1035pbm));
|
|
1401
1409
|
}
|
|
@@ -1412,6 +1420,10 @@
|
|
|
1412
1420
|
padding-inline-start: var(--musaex-16072l3);
|
|
1413
1421
|
}
|
|
1414
1422
|
|
|
1423
|
+
.musaex-150i2hq {
|
|
1424
|
+
padding-inline-start: var(--musaex-1bvtfky);
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1415
1427
|
.musaex-1yyv1zj {
|
|
1416
1428
|
padding-inline-start: var(--musaex-1vpnstl);
|
|
1417
1429
|
}
|
|
@@ -1909,6 +1921,18 @@
|
|
|
1909
1921
|
border-bottom-width: var(--musaex-1xf102v);
|
|
1910
1922
|
}
|
|
1911
1923
|
|
|
1924
|
+
.musaex-svd4c5 {
|
|
1925
|
+
border-left-color: var(--color-outline-variant);
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
.musaex-19ypqd9 {
|
|
1929
|
+
border-left-style: solid;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
.musaex-6vwjc {
|
|
1933
|
+
border-left-width: var(--musaex-1xf102v);
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1912
1936
|
.musaex-imfbgf {
|
|
1913
1937
|
border-right-color: var(--color-outline-variant);
|
|
1914
1938
|
}
|
|
@@ -2381,6 +2405,10 @@
|
|
|
2381
2405
|
padding-top: var(--musaex-1fxazvh);
|
|
2382
2406
|
}
|
|
2383
2407
|
|
|
2408
|
+
.musaex-h1u3e4 {
|
|
2409
|
+
padding-top: var(--musaex-1vpnstl);
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2384
2412
|
.musaex-3nylsr {
|
|
2385
2413
|
padding-top: var(--musaex-48i97p);
|
|
2386
2414
|
}
|
|
@@ -2593,6 +2621,32 @@
|
|
|
2593
2621
|
border-bottom-width: 0;
|
|
2594
2622
|
}
|
|
2595
2623
|
|
|
2624
|
+
@media (width <= 904px) {
|
|
2625
|
+
.musaex-1m33i82.musaex-1m33i82 {
|
|
2626
|
+
border-bottom-left-radius: 0;
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
.musaex-1uogugb.musaex-1uogugb {
|
|
2630
|
+
border-bottom-right-radius: 0;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
.musaex-1se81xg.musaex-1se81xg {
|
|
2634
|
+
border-top-left-radius: 0;
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
.musaex-19wv56r.musaex-19wv56r {
|
|
2638
|
+
border-top-right-radius: 0;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2641
|
+
.musaex-1pzvw0h.musaex-1pzvw0h {
|
|
2642
|
+
height: 100vh;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
.musaex-1ej3teu.musaex-1ej3teu {
|
|
2646
|
+
width: 100vw;
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2596
2650
|
@media (hover: hover) {
|
|
2597
2651
|
.musaex-1fjziz3.musaex-1fjziz3:hover {
|
|
2598
2652
|
overflow-y: auto;
|
package/dist/types/search.d.ts
CHANGED
|
@@ -79,4 +79,10 @@ export type SearchProps = ComponentProps & {
|
|
|
79
79
|
* @default undefined
|
|
80
80
|
*/
|
|
81
81
|
onSearch?: (keyword?: string) => void;
|
|
82
|
+
/**
|
|
83
|
+
* @zh 点击清除按钮时的回调函数
|
|
84
|
+
* @en Callback when the clear button is clicked
|
|
85
|
+
* @default undefined
|
|
86
|
+
*/
|
|
87
|
+
onClear?: () => void;
|
|
82
88
|
};
|