musae 1.2.0 → 1.3.1-beta.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.
Files changed (96) hide show
  1. package/dist/components/card/actions.cjs +31 -0
  2. package/dist/components/card/actions.d.ts +31 -0
  3. package/dist/components/card/actions.mjs +27 -0
  4. package/dist/components/card/body.cjs +30 -0
  5. package/dist/components/card/body.d.ts +18 -0
  6. package/dist/components/card/body.mjs +26 -0
  7. package/dist/components/card/card.cjs +76 -140
  8. package/dist/components/card/card.d.ts +23 -150
  9. package/dist/components/card/card.mjs +67 -135
  10. package/dist/components/card/content.cjs +33 -0
  11. package/dist/components/card/content.d.ts +33 -0
  12. package/dist/components/card/content.mjs +29 -0
  13. package/dist/components/card/context.cjs +14 -1
  14. package/dist/components/card/context.d.ts +15 -1
  15. package/dist/components/card/context.mjs +13 -2
  16. package/dist/components/card/header.cjs +79 -0
  17. package/dist/components/card/header.d.ts +58 -0
  18. package/dist/components/card/header.mjs +75 -0
  19. package/dist/components/card/headline.cjs +30 -0
  20. package/dist/components/card/headline.d.ts +18 -0
  21. package/dist/components/card/headline.mjs +26 -0
  22. package/dist/components/card/index.d.ts +1 -1
  23. package/dist/components/card/media.cjs +50 -0
  24. package/dist/components/card/media.d.ts +42 -0
  25. package/dist/components/card/media.mjs +46 -0
  26. package/dist/components/card/styles.cjs +133 -14
  27. package/dist/components/card/styles.d.ts +88 -28
  28. package/dist/components/card/styles.mjs +133 -14
  29. package/dist/components/card/subhead.cjs +30 -0
  30. package/dist/components/card/subhead.d.ts +18 -0
  31. package/dist/components/card/subhead.mjs +26 -0
  32. package/dist/components/card/title.cjs +30 -0
  33. package/dist/components/card/title.d.ts +18 -0
  34. package/dist/components/card/title.mjs +26 -0
  35. package/dist/components/search/search.cjs +3 -1
  36. package/dist/components/search/search.d.ts +1 -0
  37. package/dist/components/search/search.mjs +3 -1
  38. package/dist/components/sheet/sheet.cjs +13 -3
  39. package/dist/components/sheet/sheet.d.ts +1 -1
  40. package/dist/components/sheet/sheet.mjs +13 -3
  41. package/dist/components/side-sheet/__test__/index.test.d.ts +1 -0
  42. package/dist/components/side-sheet/context.cjs +15 -0
  43. package/dist/components/side-sheet/context.d.ts +11 -0
  44. package/dist/components/side-sheet/context.mjs +13 -0
  45. package/dist/components/side-sheet/index.d.ts +2 -0
  46. package/dist/components/side-sheet/side-sheet.cjs +140 -0
  47. package/dist/components/side-sheet/side-sheet.d.ts +16 -0
  48. package/dist/components/side-sheet/side-sheet.mjs +136 -0
  49. package/dist/components/side-sheet/styles.cjs +106 -0
  50. package/dist/components/side-sheet/styles.d.ts +83 -0
  51. package/dist/components/side-sheet/styles.mjs +104 -0
  52. package/dist/components/theme/theme.cjs +31 -0
  53. package/dist/components/theme/theme.mjs +31 -1
  54. package/dist/components/theme/tokens.stylex.cjs +4 -1
  55. package/dist/components/theme/tokens.stylex.d.ts +16 -1
  56. package/dist/components/theme/tokens.stylex.mjs +4 -1
  57. package/dist/components/typography/body.cjs +31 -0
  58. package/dist/components/typography/body.d.ts +8 -0
  59. package/dist/components/typography/body.mjs +27 -0
  60. package/dist/components/typography/context.cjs +15 -0
  61. package/dist/components/typography/context.d.ts +11 -0
  62. package/dist/components/typography/context.mjs +13 -0
  63. package/dist/components/typography/display.cjs +31 -0
  64. package/dist/components/typography/display.d.ts +8 -0
  65. package/dist/components/typography/display.mjs +27 -0
  66. package/dist/components/typography/headline.cjs +31 -0
  67. package/dist/components/typography/headline.d.ts +8 -0
  68. package/dist/components/typography/headline.mjs +27 -0
  69. package/dist/components/typography/index.d.ts +2 -0
  70. package/dist/components/typography/label.cjs +31 -0
  71. package/dist/components/typography/label.d.ts +8 -0
  72. package/dist/components/typography/label.mjs +27 -0
  73. package/dist/components/typography/title.cjs +31 -0
  74. package/dist/components/typography/title.d.ts +8 -0
  75. package/dist/components/typography/title.mjs +27 -0
  76. package/dist/components/typography/typography.cjs +24 -0
  77. package/dist/components/typography/typography.d.ts +14 -0
  78. package/dist/components/typography/typography.mjs +15 -0
  79. package/dist/index.cjs +4 -2
  80. package/dist/index.d.ts +2 -1
  81. package/dist/index.mjs +2 -1
  82. package/dist/styles.css +118 -23
  83. package/dist/types/card.d.ts +39 -2
  84. package/dist/types/search.d.ts +6 -0
  85. package/dist/types/sheet.d.ts +6 -0
  86. package/dist/types/side-sheet.d.ts +90 -0
  87. package/dist/types/typography.d.ts +15 -0
  88. package/package.json +2 -4
  89. package/dist/components/drawer/context.cjs +0 -14
  90. package/dist/components/drawer/context.d.ts +0 -10
  91. package/dist/components/drawer/context.mjs +0 -12
  92. package/dist/components/drawer/drawer.cjs +0 -92
  93. package/dist/components/drawer/drawer.d.ts +0 -9
  94. package/dist/components/drawer/drawer.mjs +0 -88
  95. package/dist/components/drawer/index.d.ts +0 -2
  96. package/dist/types/drawer.d.ts +0 -74
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @zh Card 组件样式定义,每个 namespace 独立 $create 调用
3
+ */
1
4
  var styles = {
2
5
  card: {
3
6
  "default": {
@@ -5,7 +8,7 @@ var styles = {
5
8
  kVQacm: "musaex-b3r6kr",
6
9
  kaIpWk: "musaex-1k532am",
7
10
  kB7OPa: "musaex-9f619",
8
- k1ekBW: "musaex-1ijdko7",
11
+ k1ekBW: "musaex-f1bglv",
9
12
  kIyJzY: "musaex-1dg6om",
10
13
  k5JduY: "musaex-100rkj9",
11
14
  kwXMNM: "musaex-1j6awrg",
@@ -13,31 +16,68 @@ var styles = {
13
16
  kloYau: "musaex-2q1x1w",
14
17
  kRicXK: "musaex-1ywzrc5",
15
18
  kPNhGg: "musaex-l3kudx",
19
+ ks3ayO: "musaex-86grr",
20
+ $$css: true
21
+ },
22
+ stacked: {
23
+ k1xSpc: "musaex-78zum5",
24
+ kXwgrk: "musaex-dt5ytf",
25
+ $$css: true
26
+ },
27
+ horizontal: {
28
+ k1xSpc: "musaex-78zum5",
29
+ kXwgrk: "musaex-1q0g3np",
30
+ kGNEyG: "musaex-1qjc9v5",
16
31
  $$css: true
17
32
  },
18
33
  interactive: {
19
34
  kkrTdU: "musaex-1ypdohk",
20
35
  $$css: true
21
36
  },
37
+ disabled: {
38
+ kkrTdU: "musaex-1h6gzvc",
39
+ $$css: true
40
+ },
22
41
  outlined: {
23
42
  kWkggS: "musaex-k7eln3",
24
43
  kMzoRj: "musaex-1iyq3db",
25
44
  ksu8eU: "musaex-1y0btm7",
26
45
  kVAM5u: "musaex-axmpxa",
27
- ks3ayO: "musaex-yhc2n1",
46
+ kGVxlE: "musaex-1gnnqk1",
28
47
  $$css: true
29
48
  },
30
49
  elevated: {
31
50
  kWkggS: "musaex-1eai1fy",
32
- kMzoRj: "musaex-k59kd",
33
- kGVxlE: "musaex-bapks6",
34
- ks3ayO: "musaex-yhc2n1",
51
+ kMzoRj: "musaex-c342km",
52
+ kGVxlE: "musaex-1tw10uf",
35
53
  $$css: true
36
54
  },
37
55
  filled: {
38
56
  kWkggS: "musaex-1mu49yl",
39
- kMzoRj: "musaex-k59kd",
40
- ks3ayO: "musaex-yhc2n1",
57
+ kMzoRj: "musaex-c342km",
58
+ kGVxlE: "musaex-1gnnqk1",
59
+ $$css: true
60
+ }
61
+ },
62
+ elevationState: {
63
+ outlinedHover: {
64
+ kGVxlE: "musaex-1tw10uf",
65
+ $$css: true
66
+ },
67
+ outlinedDragged: {
68
+ kGVxlE: "musaex-15krw24",
69
+ $$css: true
70
+ },
71
+ elevatedHover: {
72
+ kGVxlE: "musaex-vkh6yx",
73
+ $$css: true
74
+ },
75
+ elevatedDragged: {
76
+ kGVxlE: "musaex-1ltemje",
77
+ $$css: true
78
+ },
79
+ filledDragged: {
80
+ kGVxlE: "musaex-15krw24",
41
81
  $$css: true
42
82
  }
43
83
  },
@@ -50,7 +90,7 @@ var styles = {
50
90
  kUltx: "musaex-177puvd",
51
91
  $$css: true
52
92
  },
53
- active: {
93
+ press: {
54
94
  kAcZsS: "musaex-6g40nx",
55
95
  $$css: true
56
96
  }
@@ -59,12 +99,21 @@ var styles = {
59
99
  "default": {
60
100
  k1xSpc: "musaex-78zum5",
61
101
  kGNEyG: "musaex-6s0dn4",
62
- kg3NbH: "musaex-1v4gb6w",
63
- k8WAf4: "musaex-s7sbuz",
64
- kpe85a: "musaex-15ebt9c",
65
102
  kB7OPa: "musaex-9f619",
66
103
  kzqmXN: "musaex-92755x",
67
- kAzted: "musaex-1qafhyn",
104
+ kmuXW: "musaex-2lah0s",
105
+ kZCmMZ: "musaex-1ox7qdy",
106
+ kwRFfy: "musaex-epcfto",
107
+ k8WAf4: "musaex-s7sbuz",
108
+ kOIVth: "musaex-g4b44g",
109
+ $$css: true
110
+ },
111
+ stacked: {
112
+ $$css: true
113
+ },
114
+ horizontal: {
115
+ kmVPX3: "musaex-1atb43h",
116
+ kUk6DE: "musaex-5mp9sv",
68
117
  $$css: true
69
118
  }
70
119
  },
@@ -111,15 +160,46 @@ var styles = {
111
160
  $$css: true
112
161
  }
113
162
  },
163
+ headerAction: {
164
+ "default": {
165
+ k1xSpc: "musaex-78zum5",
166
+ kGNEyG: "musaex-6s0dn4",
167
+ kjj79g: "musaex-l56j7k",
168
+ kzqmXN: "musaex-1useyqa",
169
+ kZKoxP: "musaex-sdox4t",
170
+ kmuXW: "musaex-2lah0s",
171
+ kSGwAc: "musaex-kh2ocl",
172
+ $$css: true
173
+ }
174
+ },
114
175
  media: {
115
176
  "default": {
116
177
  kVAEAm: "musaex-1n2onr6",
178
+ kVQacm: "musaex-b3r6kr",
179
+ $$css: true
180
+ },
181
+ stacked: {
117
182
  kzqmXN: "musaex-92755x",
118
183
  kUk6DE: "musaex-5mp9sv",
119
184
  kAzted: "musaex-2lwn1j",
120
- kVQacm: "musaex-b3r6kr",
121
185
  $$css: true
122
- }},
186
+ },
187
+ horizontal: {
188
+ kzqmXN: "musaex-1dmp6jm",
189
+ kZKoxP: "musaex-qg7gut",
190
+ kUk6DE: "musaex-3psx0u",
191
+ kEafiO: "musaex-uvson1",
192
+ kWqL5O: "musaex-a640vs",
193
+ kt9PQ7: "musaex-d1xpcx",
194
+ kPef9Z: "musaex-13fuv20",
195
+ kSWEuD: "musaex-32b0ac",
196
+ kfdmCh: "musaex-1q0q8m5",
197
+ kLZC3w: "musaex-6ogecl",
198
+ k26BEO: "musaex-imfbgf",
199
+ kL6WhQ: "musaex-quqrak",
200
+ $$css: true
201
+ }
202
+ },
123
203
  content: {
124
204
  "default": {
125
205
  k1xSpc: "musaex-78zum5",
@@ -131,6 +211,45 @@ var styles = {
131
211
  $$css: true
132
212
  }
133
213
  },
214
+ headline: {
215
+ "default": {
216
+ k1xSpc: "musaex-78zum5",
217
+ kXwgrk: "musaex-dt5ytf",
218
+ kOIVth: "musaex-15wobh7",
219
+ kzqmXN: "musaex-92755x",
220
+ $$css: true
221
+ }
222
+ },
223
+ title: {
224
+ "default": {
225
+ kGuDYH: "musaex-1j61zf2",
226
+ k63SB2: "musaex-o1l8bm",
227
+ kLWn49: "musaex-1o2sk6j",
228
+ kb6lSQ: "musaex-bac8wx",
229
+ kMwMTN: "musaex-1j14bxn",
230
+ $$css: true
231
+ }
232
+ },
233
+ subhead: {
234
+ "default": {
235
+ kGuDYH: "musaex-if65rj",
236
+ k63SB2: "musaex-o1l8bm",
237
+ kLWn49: "musaex-1fc57z9",
238
+ kb6lSQ: "musaex-f4yft",
239
+ kMwMTN: "musaex-bq1wot",
240
+ $$css: true
241
+ }
242
+ },
243
+ body: {
244
+ "default": {
245
+ kGuDYH: "musaex-if65rj",
246
+ k63SB2: "musaex-o1l8bm",
247
+ kLWn49: "musaex-1fc57z9",
248
+ kb6lSQ: "musaex-f4yft",
249
+ kMwMTN: "musaex-bq1wot",
250
+ $$css: true
251
+ }
252
+ },
134
253
  actions: {
135
254
  "default": {
136
255
  k1xSpc: "musaex-78zum5",
@@ -0,0 +1,30 @@
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 className = require('@aiszlab/relax/class-name');
8
+ var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
9
+ var useClassNames = require('../../hooks/use-class-names.cjs');
10
+ var context = require('./context.cjs');
11
+ var styles = require('./styles.cjs');
12
+
13
+ /**
14
+ * @zh 卡片 Subhead 文本(14px body/medium)。
15
+ * @en Card subhead text (14px body/medium).
16
+ */
17
+ var CardSubhead = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
18
+ var className$1 = _ref.className,
19
+ style = _ref.style,
20
+ children = _ref.children;
21
+ var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
22
+ var subheadStyled = stylex.props(styles.default.subhead["default"]);
23
+ return /*#__PURE__*/React.createElement("div", {
24
+ ref: ref,
25
+ className: className.stringify(classNames.subhead, className$1, subheadStyled.className),
26
+ style: _objectSpread(_objectSpread({}, subheadStyled.style), style)
27
+ }, children);
28
+ });
29
+
30
+ exports.default = CardSubhead;
@@ -0,0 +1,18 @@
1
+ import type { ReactNode, CSSProperties } from "react";
2
+ import React from "react";
3
+ /**
4
+ * @zh 卡片 Subhead 文本(14px body/medium,on-surface-variant)
5
+ * @en Card subhead text (14px body/medium, on-surface-variant)
6
+ */
7
+ interface CardSubheadProps {
8
+ className?: string;
9
+ style?: CSSProperties;
10
+ children?: ReactNode;
11
+ }
12
+ /**
13
+ * @zh 卡片 Subhead 文本(14px body/medium)。
14
+ * @en Card subhead text (14px body/medium).
15
+ */
16
+ declare const CardSubhead: React.ForwardRefExoticComponent<CardSubheadProps & React.RefAttributes<HTMLDivElement>>;
17
+ export default CardSubhead;
18
+ export type { CardSubheadProps };
@@ -0,0 +1,26 @@
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
+ import React, { forwardRef } from 'react';
3
+ import { stringify } from '@aiszlab/relax/class-name';
4
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
5
+ import { useClassNames } from '../../hooks/use-class-names.mjs';
6
+ import { CLASS_NAMES } from './context.mjs';
7
+ import styles from './styles.mjs';
8
+
9
+ /**
10
+ * @zh 卡片 Subhead 文本(14px body/medium)。
11
+ * @en Card subhead text (14px body/medium).
12
+ */
13
+ var CardSubhead = /*#__PURE__*/forwardRef(function (_ref, ref) {
14
+ var className = _ref.className,
15
+ style = _ref.style,
16
+ children = _ref.children;
17
+ var classNames = useClassNames(CLASS_NAMES);
18
+ var subheadStyled = props(styles.subhead["default"]);
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ ref: ref,
21
+ className: stringify(classNames.subhead, className, subheadStyled.className),
22
+ style: _objectSpread(_objectSpread({}, subheadStyled.style), style)
23
+ }, children);
24
+ });
25
+
26
+ export { CardSubhead as default };
@@ -0,0 +1,30 @@
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 className = require('@aiszlab/relax/class-name');
8
+ var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
9
+ var useClassNames = require('../../hooks/use-class-names.cjs');
10
+ var context = require('./context.cjs');
11
+ var styles = require('./styles.cjs');
12
+
13
+ /**
14
+ * @zh 卡片 Title 文本(16px body/large)。
15
+ * @en Card title text (16px body/large).
16
+ */
17
+ var CardTitle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
18
+ var className$1 = _ref.className,
19
+ style = _ref.style,
20
+ children = _ref.children;
21
+ var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
22
+ var titleStyled = stylex.props(styles.default.title["default"]);
23
+ return /*#__PURE__*/React.createElement("div", {
24
+ ref: ref,
25
+ className: className.stringify(classNames.title, className$1, titleStyled.className),
26
+ style: _objectSpread(_objectSpread({}, titleStyled.style), style)
27
+ }, children);
28
+ });
29
+
30
+ exports.default = CardTitle;
@@ -0,0 +1,18 @@
1
+ import type { ReactNode, CSSProperties } from "react";
2
+ import React from "react";
3
+ /**
4
+ * @zh 卡片 Title 文本(16px body/large)
5
+ * @en Card title text (16px body/large)
6
+ */
7
+ interface CardTitleProps {
8
+ className?: string;
9
+ style?: CSSProperties;
10
+ children?: ReactNode;
11
+ }
12
+ /**
13
+ * @zh 卡片 Title 文本(16px body/large)。
14
+ * @en Card title text (16px body/large).
15
+ */
16
+ declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLDivElement>>;
17
+ export default CardTitle;
18
+ export type { CardTitleProps };
@@ -0,0 +1,26 @@
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
+ import React, { forwardRef } from 'react';
3
+ import { stringify } from '@aiszlab/relax/class-name';
4
+ import { props } from '../../node_modules/.pnpm/@stylexjs_stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
5
+ import { useClassNames } from '../../hooks/use-class-names.mjs';
6
+ import { CLASS_NAMES } from './context.mjs';
7
+ import styles from './styles.mjs';
8
+
9
+ /**
10
+ * @zh 卡片 Title 文本(16px body/large)。
11
+ * @en Card title text (16px body/large).
12
+ */
13
+ var CardTitle = /*#__PURE__*/forwardRef(function (_ref, ref) {
14
+ var className = _ref.className,
15
+ style = _ref.style,
16
+ children = _ref.children;
17
+ var classNames = useClassNames(CLASS_NAMES);
18
+ var titleStyled = props(styles.title["default"]);
19
+ return /*#__PURE__*/React.createElement("div", {
20
+ ref: ref,
21
+ className: stringify(classNames.title, className, titleStyled.className),
22
+ style: _objectSpread(_objectSpread({}, titleStyled.style), style)
23
+ }, children);
24
+ });
25
+
26
+ export { CardTitle as default };
@@ -35,7 +35,8 @@ var Search = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
35
35
  _ref$clearable = _ref.clearable,
36
36
  clearable = _ref$clearable === void 0 ? true : _ref$clearable,
37
37
  searchButton = _ref.searchButton,
38
- onSearch = _ref.onSearch;
38
+ onSearch = _ref.onSearch,
39
+ onClear = _ref.onClear;
39
40
  var inputRef = React.useRef(null);
40
41
  var classNames = useClassNames.useClassNames(context.CLASS_NAMES);
41
42
  var themeColorVars = useThemeColorVars.useThemeColorVars(["primary", "outline", "surface-container-high", "on-surface-variant", ["on-surface-variant", tokens_stylex.OPACITY.thin], ["on-surface", tokens_stylex.OPACITY.thickest], ["on-surface", tokens_stylex.OPACITY.thin]]);
@@ -74,6 +75,7 @@ var Search = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
74
75
  var handleClear = relax.useEvent(function () {
75
76
  _setValue("");
76
77
  onChange === null || onChange === void 0 || onChange("");
78
+ onClear === null || onClear === void 0 || onClear();
77
79
  });
78
80
  var handleKeyDown = React.useCallback(function (e) {
79
81
  if (e.key === "Enter") {
@@ -13,5 +13,6 @@ declare const Search: React.ForwardRefExoticComponent<import("../../types/elemen
13
13
  clearable?: boolean;
14
14
  searchButton?: React.ReactNode;
15
15
  onSearch?: (keyword?: string) => void;
16
+ onClear?: () => void;
16
17
  } & React.RefAttributes<SearchRef>>;
17
18
  export default Search;
@@ -31,7 +31,8 @@ var Search = /*#__PURE__*/forwardRef(function (_ref, ref) {
31
31
  _ref$clearable = _ref.clearable,
32
32
  clearable = _ref$clearable === void 0 ? true : _ref$clearable,
33
33
  searchButton = _ref.searchButton,
34
- onSearch = _ref.onSearch;
34
+ onSearch = _ref.onSearch,
35
+ onClear = _ref.onClear;
35
36
  var inputRef = useRef(null);
36
37
  var classNames = useClassNames(CLASS_NAMES);
37
38
  var themeColorVars = useThemeColorVars(["primary", "outline", "surface-container-high", "on-surface-variant", ["on-surface-variant", OPACITY.thin], ["on-surface", OPACITY.thickest], ["on-surface", OPACITY.thin]]);
@@ -70,6 +71,7 @@ var Search = /*#__PURE__*/forwardRef(function (_ref, ref) {
70
71
  var handleClear = useEvent(function () {
71
72
  _setValue("");
72
73
  onChange === null || onChange === void 0 || onChange("");
74
+ onClear === null || onClear === void 0 || onClear();
73
75
  });
74
76
  var handleKeyDown = useCallback(function (e) {
75
77
  if (e.key === "Enter") {
@@ -88,6 +88,15 @@ var styles = {
88
88
  kVQacm: "musaex-ysyzu8",
89
89
  kZeWKH: "musaex-ish69e",
90
90
  $$css: true
91
+ },
92
+ panelFullscreen: {
93
+ kRDq7Z: "musaex-1ej3teu",
94
+ kllhKz: "musaex-1pzvw0h",
95
+ kIfGbc: "musaex-1se81xg",
96
+ kBJAon: "musaex-19wv56r",
97
+ kGHaHD: "musaex-1m33i82",
98
+ kYNdYH: "musaex-1uogugb",
99
+ $$css: true
91
100
  }
92
101
  };
93
102
  /**
@@ -106,6 +115,7 @@ var Sheet = function Sheet(_ref) {
106
115
  _ref$closable = _ref.closable,
107
116
  closable = _ref$closable === void 0 ? true : _ref$closable,
108
117
  header = _ref.header,
118
+ footer = _ref.footer,
109
119
  className$1 = _ref.className,
110
120
  panelClassName = _ref.panelClassName,
111
121
  panelStyle = _ref.panelStyle,
@@ -201,7 +211,7 @@ var Sheet = function Sheet(_ref) {
201
211
  overlay: {
202
212
  className: "musaex-10l6tqk musaex-10a8y8t musaex-67bb7w musaex-g01cxk musaex-11we2rp"
203
213
  },
204
- panel: stylex.props(styles.panel, styles[placement]),
214
+ panel: stylex.props(styles.panel, styles[placement], styles.panelFullscreen),
205
215
  body: {
206
216
  className: "musaex-98rzlu musaex-ysyzu8 musaex-ish69e"
207
217
  }
@@ -220,7 +230,7 @@ var Sheet = function Sheet(_ref) {
220
230
  className: className.stringify(classNames.sheet, className$1, styled.container.className),
221
231
  style: _objectSpread(_objectSpread(_objectSpread({}, styled.container.style), themeColorVars), {}, {
222
232
  "--default-position": relax.at(_placement, 0),
223
- "--size": "".concat(size, "px")
233
+ "--size": typeof size === "number" ? "".concat(size, "px") : size
224
234
  }),
225
235
  onKeyDown: onKeyDown
226
236
  }, /*#__PURE__*/React.createElement("div", {
@@ -235,7 +245,7 @@ var Sheet = function Sheet(_ref) {
235
245
  }, header, /*#__PURE__*/React.createElement("div", {
236
246
  className: className.stringify(classNames.body, styled.body.className),
237
247
  style: styled.body.style
238
- }, children)))));
248
+ }, children), footer))));
239
249
  };
240
250
 
241
251
  exports.default = Sheet;
@@ -7,5 +7,5 @@ import type { SheetProps } from "../../types/sheet";
7
7
  * placement-driven slide animation, focus management, and body scroll lock.
8
8
  * Drawer and BottomSheet are thin wrappers around this component.
9
9
  */
10
- declare const Sheet: ({ visible, onClose, placement, size, closable, header, className, panelClassName, panelStyle, modal, children, }: SheetProps) => React.JSX.Element;
10
+ declare const Sheet: ({ visible, onClose, placement, size, closable, header, footer, className, panelClassName, panelStyle, modal, children, }: SheetProps) => React.JSX.Element;
11
11
  export default Sheet;
@@ -84,6 +84,15 @@ var styles = {
84
84
  kVQacm: "musaex-ysyzu8",
85
85
  kZeWKH: "musaex-ish69e",
86
86
  $$css: true
87
+ },
88
+ panelFullscreen: {
89
+ kRDq7Z: "musaex-1ej3teu",
90
+ kllhKz: "musaex-1pzvw0h",
91
+ kIfGbc: "musaex-1se81xg",
92
+ kBJAon: "musaex-19wv56r",
93
+ kGHaHD: "musaex-1m33i82",
94
+ kYNdYH: "musaex-1uogugb",
95
+ $$css: true
87
96
  }
88
97
  };
89
98
  /**
@@ -102,6 +111,7 @@ var Sheet = function Sheet(_ref) {
102
111
  _ref$closable = _ref.closable,
103
112
  closable = _ref$closable === void 0 ? true : _ref$closable,
104
113
  header = _ref.header,
114
+ footer = _ref.footer,
105
115
  className = _ref.className,
106
116
  panelClassName = _ref.panelClassName,
107
117
  panelStyle = _ref.panelStyle,
@@ -197,7 +207,7 @@ var Sheet = function Sheet(_ref) {
197
207
  overlay: {
198
208
  className: "musaex-10l6tqk musaex-10a8y8t musaex-67bb7w musaex-g01cxk musaex-11we2rp"
199
209
  },
200
- panel: props(styles.panel, styles[placement]),
210
+ panel: props(styles.panel, styles[placement], styles.panelFullscreen),
201
211
  body: {
202
212
  className: "musaex-98rzlu musaex-ysyzu8 musaex-ish69e"
203
213
  }
@@ -216,7 +226,7 @@ var Sheet = function Sheet(_ref) {
216
226
  className: stringify(classNames.sheet, className, styled.container.className),
217
227
  style: _objectSpread(_objectSpread(_objectSpread({}, styled.container.style), themeColorVars), {}, {
218
228
  "--default-position": at(_placement, 0),
219
- "--size": "".concat(size, "px")
229
+ "--size": typeof size === "number" ? "".concat(size, "px") : size
220
230
  }),
221
231
  onKeyDown: onKeyDown
222
232
  }, /*#__PURE__*/React.createElement("div", {
@@ -231,7 +241,7 @@ var Sheet = function Sheet(_ref) {
231
241
  }, header, /*#__PURE__*/React.createElement("div", {
232
242
  className: stringify(classNames.body, styled.body.className),
233
243
  style: styled.body.style
234
- }, children)))));
244
+ }, children), footer))));
235
245
  };
236
246
 
237
247
  export { Sheet as default };
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @zh SideSheet 的 class 名称
5
+ * @en class names for SideSheet
6
+ */
7
+ var CLASS_NAMES = {
8
+ sideSheet: "side-sheet",
9
+ header: "side-sheet__header",
10
+ title: "side-sheet__title",
11
+ content: "side-sheet__content",
12
+ actions: "side-sheet__actions"
13
+ };
14
+
15
+ exports.CLASS_NAMES = CLASS_NAMES;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @zh SideSheet 的 class 名称
3
+ * @en class names for SideSheet
4
+ */
5
+ export declare const CLASS_NAMES: {
6
+ readonly sideSheet: "side-sheet";
7
+ readonly header: "side-sheet__header";
8
+ readonly title: "side-sheet__title";
9
+ readonly content: "side-sheet__content";
10
+ readonly actions: "side-sheet__actions";
11
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @zh SideSheet 的 class 名称
3
+ * @en class names for SideSheet
4
+ */
5
+ var CLASS_NAMES = {
6
+ sideSheet: "side-sheet",
7
+ header: "side-sheet__header",
8
+ title: "side-sheet__title",
9
+ content: "side-sheet__content",
10
+ actions: "side-sheet__actions"
11
+ };
12
+
13
+ export { CLASS_NAMES };
@@ -0,0 +1,2 @@
1
+ import SideSheet from "./side-sheet";
2
+ export { SideSheet };