musae 0.3.10 → 0.3.12
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/README.md +18 -9
- package/dist/components/avatar/avatar.cjs +3 -4
- package/dist/components/avatar/avatar.mjs +3 -4
- package/dist/components/badge/badge.cjs +2 -3
- package/dist/components/badge/badge.mjs +2 -3
- package/dist/components/bench/bench.cjs +1 -2
- package/dist/components/bench/bench.mjs +1 -2
- package/dist/components/bench/hooks.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.cjs +1 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +1 -2
- package/dist/components/breadcrumb/item.cjs +3 -4
- package/dist/components/breadcrumb/item.mjs +3 -4
- package/dist/components/button/button.cjs +5 -6
- package/dist/components/button/button.mjs +5 -6
- package/dist/components/calendar/calendar.cjs +1 -2
- package/dist/components/calendar/calendar.mjs +1 -2
- package/dist/components/calendar/hooks.cjs +2 -3
- package/dist/components/calendar/hooks.mjs +2 -3
- package/dist/components/checkbox/checkbox.cjs +5 -6
- package/dist/components/checkbox/checkbox.mjs +5 -6
- package/dist/components/clock/column.cjs +2 -3
- package/dist/components/clock/column.mjs +2 -3
- package/dist/components/collapse/collapse.cjs +1 -2
- package/dist/components/collapse/collapse.mjs +1 -2
- package/dist/components/collapse/item.cjs +2 -3
- package/dist/components/collapse/item.mjs +2 -3
- package/dist/components/dialog/hooks.cjs +3 -3
- package/dist/components/dialog/hooks.mjs +3 -3
- package/dist/components/dialog/popup.cjs +4 -4
- package/dist/components/dialog/popup.mjs +4 -4
- package/dist/components/divider/divider.cjs +2 -3
- package/dist/components/divider/divider.mjs +2 -3
- package/dist/components/drawer/popup.cjs +3 -4
- package/dist/components/drawer/popup.mjs +3 -4
- package/dist/components/fab/fab.cjs +7 -5
- package/dist/components/fab/fab.d.ts +1 -1
- package/dist/components/fab/fab.mjs +7 -5
- package/dist/components/fab/floatable.cjs +9 -3
- package/dist/components/fab/floatable.mjs +10 -4
- package/dist/components/form/field/error.cjs +1 -2
- package/dist/components/form/field/error.mjs +1 -2
- package/dist/components/form/field/layout.cjs +1 -2
- package/dist/components/form/field/layout.mjs +1 -2
- package/dist/components/highlight/highlight.cjs +1 -2
- package/dist/components/highlight/highlight.mjs +1 -2
- package/dist/components/image/image.cjs +9 -3
- package/dist/components/image/image.d.ts +1 -1
- package/dist/components/image/image.mjs +9 -3
- package/dist/components/image/index.d.ts +1 -1
- package/dist/components/image/preview/operations.cjs +2 -3
- package/dist/components/image/preview/operations.mjs +2 -3
- package/dist/components/input/hooks.cjs +10 -24
- package/dist/components/input/hooks.d.ts +2 -4
- package/dist/components/input/hooks.mjs +10 -24
- package/dist/components/input/input.cjs +21 -32
- package/dist/components/input/input.d.ts +5 -6
- package/dist/components/input/input.mjs +22 -33
- package/dist/components/layout/header.cjs +1 -2
- package/dist/components/layout/header.mjs +1 -2
- package/dist/components/layout/layout.cjs +2 -3
- package/dist/components/layout/layout.mjs +2 -3
- package/dist/components/menu/group.cjs +1 -2
- package/dist/components/menu/group.mjs +1 -2
- package/dist/components/menu/item.cjs +6 -7
- package/dist/components/menu/item.mjs +6 -7
- package/dist/components/notification/notification.cjs +3 -4
- package/dist/components/notification/notification.mjs +3 -4
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/password-input.cjs +34 -0
- package/dist/components/password-input/password-input.d.ts +5 -0
- package/dist/components/password-input/password-input.mjs +32 -0
- package/dist/components/picker/picker.cjs +3 -5
- package/dist/components/picker/picker.mjs +3 -5
- package/dist/components/popconfirm/popconfirm.cjs +1 -2
- package/dist/components/popconfirm/popconfirm.mjs +1 -2
- package/dist/components/popper/dropdown.cjs +2 -3
- package/dist/components/popper/dropdown.mjs +2 -3
- package/dist/components/progress/circular.cjs +2 -3
- package/dist/components/progress/circular.d.ts +1 -1
- package/dist/components/progress/circular.mjs +2 -3
- package/dist/components/progress/linear.cjs +2 -3
- package/dist/components/progress/linear.mjs +2 -3
- package/dist/components/quote/quote.cjs +1 -2
- package/dist/components/quote/quote.mjs +1 -2
- package/dist/components/radio/radio.cjs +3 -4
- package/dist/components/radio/radio.mjs +3 -4
- package/dist/components/rate/star.cjs +3 -4
- package/dist/components/rate/star.mjs +3 -4
- package/dist/components/rich-text-editor/plugins/toolbar/index.cjs +1 -2
- package/dist/components/rich-text-editor/plugins/toolbar/index.mjs +1 -2
- package/dist/components/rich-text-editor/rich-text-editor.cjs +4 -8
- package/dist/components/rich-text-editor/rich-text-editor.mjs +4 -8
- package/dist/components/select/hooks.cjs +1 -2
- package/dist/components/select/hooks.mjs +1 -2
- package/dist/components/select/selector.cjs +1 -2
- package/dist/components/select/selector.mjs +1 -2
- package/dist/components/space/space.cjs +1 -1
- package/dist/components/space/space.mjs +1 -1
- package/dist/components/steps/item.cjs +8 -9
- package/dist/components/steps/item.mjs +8 -9
- package/dist/components/switch/switch.cjs +18 -19
- package/dist/components/switch/switch.mjs +18 -19
- package/dist/components/table/body.cjs +8 -3
- package/dist/components/table/body.mjs +8 -3
- package/dist/components/table/header/cell.cjs +3 -4
- package/dist/components/table/header/cell.d.ts +2 -1
- package/dist/components/table/header/cell.mjs +3 -4
- package/dist/components/table/header/header.cjs +8 -5
- package/dist/components/table/header/header.mjs +8 -5
- package/dist/components/table/hooks.cjs +1 -2
- package/dist/components/table/hooks.d.ts +1 -1
- package/dist/components/table/hooks.mjs +1 -2
- package/dist/components/tabs/navigation.cjs +2 -3
- package/dist/components/tabs/navigation.mjs +2 -3
- package/dist/components/tag/tag.cjs +2 -3
- package/dist/components/tag/tag.mjs +2 -3
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textarea.cjs +73 -0
- package/dist/components/textarea/textarea.d.ts +4 -0
- package/dist/components/textarea/textarea.mjs +71 -0
- package/dist/components/theme/hooks.cjs +5 -5
- package/dist/components/theme/hooks.d.ts +1 -1
- package/dist/components/theme/hooks.mjs +3 -3
- package/dist/components/time-picker/panel.cjs +1 -2
- package/dist/components/time-picker/panel.mjs +1 -2
- package/dist/components/timeline/item.cjs +2 -3
- package/dist/components/timeline/item.mjs +2 -3
- package/dist/components/tour/tour.cjs +2 -3
- package/dist/components/tour/tour.mjs +2 -3
- package/dist/components/transfer/list.cjs +2 -3
- package/dist/components/transfer/list.mjs +2 -3
- package/dist/components/tree/node.cjs +3 -4
- package/dist/components/tree/node.mjs +3 -4
- package/dist/components/upload/context.cjs +7 -0
- package/dist/components/upload/context.d.ts +2 -0
- package/dist/components/upload/context.mjs +7 -0
- package/dist/components/upload/upload.cjs +20 -11
- package/dist/components/upload/upload.d.ts +1 -1
- package/dist/components/upload/upload.mjs +22 -13
- package/dist/components/upload/uploaded-item.cjs +158 -0
- package/dist/components/upload/uploaded-item.d.ts +7 -0
- package/dist/components/upload/uploaded-item.mjs +156 -0
- package/dist/components/upload/{uploadeds.cjs → uploaded-list.cjs} +18 -30
- package/dist/components/upload/uploaded-list.d.ts +4 -0
- package/dist/components/upload/{uploadeds.mjs → uploaded-list.mjs} +20 -32
- package/dist/components/upload/utils.cjs +3 -3
- package/dist/components/upload/utils.d.ts +2 -2
- package/dist/components/upload/utils.mjs +3 -3
- package/dist/hooks/use-class-names.d.ts +15 -1
- package/dist/hooks/use-closable.cjs +24 -3
- package/dist/hooks/use-closable.d.ts +2 -1
- package/dist/hooks/use-closable.mjs +24 -3
- package/dist/index.cjs +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +2 -0
- package/dist/styles.css +3 -0
- package/dist/types/bench.d.ts +5 -3
- package/dist/types/fab.d.ts +12 -1
- package/dist/types/icon.d.ts +1 -1
- package/dist/types/image.d.ts +6 -1
- package/dist/types/input.d.ts +1 -1
- package/dist/types/password-input.d.ts +6 -0
- package/dist/types/textarea.d.ts +23 -0
- package/dist/types/theme.d.ts +2 -2
- package/dist/types/upload.d.ts +34 -10
- package/dist/utils/class-name.cjs +20 -2
- package/dist/utils/class-name.d.ts +47 -4
- package/dist/utils/class-name.mjs +21 -3
- package/dist/utils/color-role.cjs +63 -0
- package/dist/utils/color-role.d.ts +18 -0
- package/dist/utils/color-role.mjs +63 -0
- package/dist/utils/component-token.cjs +2 -0
- package/dist/utils/component-token.d.ts +3 -1
- package/dist/utils/component-token.mjs +2 -0
- package/package.json +6 -6
- package/dist/components/upload/uploadeds.d.ts +0 -4
- package/dist/utils/colors.cjs +0 -72
- package/dist/utils/colors.d.ts +0 -64
- package/dist/utils/colors.mjs +0 -72
package/README.md
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
<h1 align="center">
|
|
1
|
+
<h1 align="center">musae</h1>
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## Introduction
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
- 📦 A set of high-quality React components out of the box.
|
|
7
|
-
- 🛡 Written in TypeScript with predictable static types.
|
|
8
|
-
- ⚙️ Whole package of design resources and development tools.
|
|
9
|
-
- 🎨 Powerful theme customization based on CSS-in-JS.
|
|
5
|
+
Next-generation UI Component suite for `React`.
|
|
10
6
|
|
|
11
7
|
## 📦 Install
|
|
12
8
|
|
|
13
9
|
```bash
|
|
10
|
+
## use npm
|
|
14
11
|
npm install musae
|
|
15
|
-
|
|
16
|
-
##
|
|
12
|
+
|
|
13
|
+
## use pnpm
|
|
14
|
+
pnpm add musae
|
|
15
|
+
|
|
16
|
+
## use yarn
|
|
17
|
+
yarn add musae
|
|
17
18
|
```
|
|
18
19
|
|
|
20
|
+
## Overview
|
|
21
|
+
|
|
22
|
+
`musae` is a complete UI suite for `React` consisting of a rich set of UI components, icons, blocks, and application templates.
|
|
23
|
+
|
|
24
|
+
## Theming
|
|
25
|
+
|
|
26
|
+
`musae` has powerful theme customization based on CSS-in-JS.
|
|
27
|
+
|
|
19
28
|
## 🔨 Usage
|
|
20
29
|
|
|
21
30
|
```tsx
|
|
@@ -6,7 +6,6 @@ var React = require('react');
|
|
|
6
6
|
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
7
7
|
var context = require('./context.cjs');
|
|
8
8
|
var hooks = require('../theme/hooks.cjs');
|
|
9
|
-
var colors = require('../../utils/colors.cjs');
|
|
10
9
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
11
10
|
var className = require('../../utils/class-name.cjs');
|
|
12
11
|
var theme = require('../theme/theme.cjs');
|
|
@@ -157,10 +156,10 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
157
156
|
});
|
|
158
157
|
var styled = {
|
|
159
158
|
avatar: stylex.default.props(theme.typography.label[size], styles.avatar({
|
|
160
|
-
backgroundColor: theme$1.colors[
|
|
161
|
-
color: theme$1.colors
|
|
159
|
+
backgroundColor: theme$1.colors["primary-container"],
|
|
160
|
+
color: theme$1.colors.primary
|
|
162
161
|
}), styles[size], styles[shape], isInGroup && styles.overlapping({
|
|
163
|
-
outlineColor: theme$1.colors[
|
|
162
|
+
outlineColor: theme$1.colors["on-primary"]
|
|
164
163
|
})),
|
|
165
164
|
loading: stylex.default.props(styles[shape], styles[size]),
|
|
166
165
|
image: stylex.default.props(styles.image, styles[size])
|
|
@@ -4,7 +4,6 @@ import React, { forwardRef, useContext } from 'react';
|
|
|
4
4
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
5
5
|
import { Context } from './context.mjs';
|
|
6
6
|
import { useTheme } from '../theme/hooks.mjs';
|
|
7
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
8
7
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
9
8
|
import { AvatarClassToken } from '../../utils/class-name.mjs';
|
|
10
9
|
import { typography } from '../theme/theme.mjs';
|
|
@@ -155,10 +154,10 @@ var Avatar = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
155
154
|
});
|
|
156
155
|
var styled = {
|
|
157
156
|
avatar: _stylex.props(typography.label[size], styles.avatar({
|
|
158
|
-
backgroundColor: theme.colors[
|
|
159
|
-
color: theme.colors
|
|
157
|
+
backgroundColor: theme.colors["primary-container"],
|
|
158
|
+
color: theme.colors.primary
|
|
160
159
|
}), styles[size], styles[shape], isInGroup && styles.overlapping({
|
|
161
|
-
outlineColor: theme.colors[
|
|
160
|
+
outlineColor: theme.colors["on-primary"]
|
|
162
161
|
})),
|
|
163
162
|
loading: _stylex.props(styles[shape], styles[size]),
|
|
164
163
|
image: _stylex.props(styles.image, styles[size])
|
|
@@ -8,7 +8,6 @@ var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modul
|
|
|
8
8
|
var theme = require('../theme/theme.cjs');
|
|
9
9
|
var tokens_stylex = require('../theme/tokens.stylex.cjs');
|
|
10
10
|
var hooks = require('../theme/hooks.cjs');
|
|
11
|
-
var colors = require('../../utils/colors.cjs');
|
|
12
11
|
var relax = require('@aiszlab/relax');
|
|
13
12
|
var componentToken = require('../../utils/component-token.cjs');
|
|
14
13
|
|
|
@@ -104,8 +103,8 @@ var Badge = function Badge(_ref) {
|
|
|
104
103
|
var styled = {
|
|
105
104
|
badge: stylex.default.props(styles.badge["default"]),
|
|
106
105
|
tail: stylex.default.props(styles.tail["default"]({
|
|
107
|
-
backgroundColor: theme$1.colors
|
|
108
|
-
color: theme$1.colors[
|
|
106
|
+
backgroundColor: theme$1.colors.primary,
|
|
107
|
+
color: theme$1.colors["on-primary"]
|
|
109
108
|
}), isDot && styles.tail.dot, theme.typography.label.small, invisible && styles.tail.invisible, styles.tail[placement])
|
|
110
109
|
};
|
|
111
110
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -6,7 +6,6 @@ import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_module
|
|
|
6
6
|
import { typography } from '../theme/theme.mjs';
|
|
7
7
|
import { sizes } from '../theme/tokens.stylex.mjs';
|
|
8
8
|
import { useTheme } from '../theme/hooks.mjs';
|
|
9
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
10
9
|
import { isVoid, clsx } from '@aiszlab/relax';
|
|
11
10
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
12
11
|
|
|
@@ -102,8 +101,8 @@ var Badge = function Badge(_ref) {
|
|
|
102
101
|
var styled = {
|
|
103
102
|
badge: _stylex.props(styles.badge["default"]),
|
|
104
103
|
tail: _stylex.props(styles.tail["default"]({
|
|
105
|
-
backgroundColor: theme.colors
|
|
106
|
-
color: theme.colors[
|
|
104
|
+
backgroundColor: theme.colors.primary,
|
|
105
|
+
color: theme.colors["on-primary"]
|
|
107
106
|
}), isDot && styles.tail.dot, typography.label.small, invisible && styles.tail.invisible, styles.tail[placement])
|
|
108
107
|
};
|
|
109
108
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -9,7 +9,6 @@ var divider = require('../divider/divider.cjs');
|
|
|
9
9
|
var hooks$1 = require('./hooks.cjs');
|
|
10
10
|
var menu = require('../menu/menu.cjs');
|
|
11
11
|
var hooks = require('../theme/hooks.cjs');
|
|
12
|
-
var colors = require('../../utils/colors.cjs');
|
|
13
12
|
var theme = require('../theme/theme.cjs');
|
|
14
13
|
var relax = require('@aiszlab/relax');
|
|
15
14
|
|
|
@@ -115,7 +114,7 @@ var Bench = function Bench(_ref) {
|
|
|
115
114
|
})),
|
|
116
115
|
main: stylex.default.props(styles.bench.main),
|
|
117
116
|
sider: stylex.default.props(styles.bench.sider({
|
|
118
|
-
outlineColor: theme$1.colors[
|
|
117
|
+
outlineColor: theme$1.colors["outline-variant"]
|
|
119
118
|
})),
|
|
120
119
|
title: stylex.default.props(theme.typography.title.large),
|
|
121
120
|
divider: stylex.default.props(styles.header.divider),
|
|
@@ -7,7 +7,6 @@ import Divider from '../divider/divider.mjs';
|
|
|
7
7
|
import { useLogo, useNavigations } from './hooks.mjs';
|
|
8
8
|
import Menu from '../menu/menu.mjs';
|
|
9
9
|
import { useTheme } from '../theme/hooks.mjs';
|
|
10
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
11
10
|
import { typography } from '../theme/theme.mjs';
|
|
12
11
|
import { clsx } from '@aiszlab/relax';
|
|
13
12
|
|
|
@@ -113,7 +112,7 @@ var Bench = function Bench(_ref) {
|
|
|
113
112
|
})),
|
|
114
113
|
main: _stylex.props(styles.bench.main),
|
|
115
114
|
sider: _stylex.props(styles.bench.sider({
|
|
116
|
-
outlineColor: theme.colors[
|
|
115
|
+
outlineColor: theme.colors["outline-variant"]
|
|
117
116
|
})),
|
|
118
117
|
title: _stylex.props(typography.title.large),
|
|
119
118
|
divider: _stylex.props(styles.header.divider),
|
|
@@ -16,7 +16,7 @@ export declare const useNavigations: ({ navigations, onNavigate, location, layou
|
|
|
16
16
|
location?: string;
|
|
17
17
|
layout: Layout;
|
|
18
18
|
}) => {
|
|
19
|
-
selectedKeys: [(
|
|
19
|
+
selectedKeys: [(string | undefined)?, (string | undefined)?];
|
|
20
20
|
topMenuItems: MenuItem[];
|
|
21
21
|
sideMenuItems: MenuItem[];
|
|
22
22
|
navigate: (path: Key) => void;
|
|
@@ -5,7 +5,6 @@ var React = require('react');
|
|
|
5
5
|
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
6
6
|
var theme = require('../theme/theme.cjs');
|
|
7
7
|
var hooks = require('../theme/hooks.cjs');
|
|
8
|
-
var colors = require('../../utils/colors.cjs');
|
|
9
8
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
10
9
|
var className = require('../../utils/class-name.cjs');
|
|
11
10
|
var relax = require('@aiszlab/relax');
|
|
@@ -37,7 +36,7 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
37
36
|
}
|
|
38
37
|
var styled = {
|
|
39
38
|
breadcrumb: stylex.default.props(theme.typography.label.large, styles.breadcrumb({
|
|
40
|
-
color: theme$1.colors[
|
|
39
|
+
color: theme$1.colors["on-surface-variant"]
|
|
41
40
|
})),
|
|
42
41
|
navigations: {
|
|
43
42
|
className: "musaex-e8uvvx musaex-78zum5 musaex-1a02dak"
|
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
|
3
3
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
4
4
|
import { typography } from '../theme/theme.mjs';
|
|
5
5
|
import { useTheme } from '../theme/hooks.mjs';
|
|
6
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
7
6
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
8
7
|
import { BreadcrumbClassToken } from '../../utils/class-name.mjs';
|
|
9
8
|
import { clsx } from '@aiszlab/relax';
|
|
@@ -35,7 +34,7 @@ var Breadcrumb = function Breadcrumb(_ref) {
|
|
|
35
34
|
}
|
|
36
35
|
var styled = {
|
|
37
36
|
breadcrumb: _stylex.props(typography.label.large, styles.breadcrumb({
|
|
38
|
-
color: theme.colors[
|
|
37
|
+
color: theme.colors["on-surface-variant"]
|
|
39
38
|
})),
|
|
40
39
|
navigations: {
|
|
41
40
|
className: "musaex-e8uvvx musaex-78zum5 musaex-1a02dak"
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
5
5
|
var hooks = require('../theme/hooks.cjs');
|
|
6
|
-
var colors = require('../../utils/colors.cjs');
|
|
7
6
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
8
7
|
var className = require('../../utils/class-name.cjs');
|
|
9
8
|
var relax = require('@aiszlab/relax');
|
|
@@ -67,10 +66,10 @@ var Item = function Item(_ref) {
|
|
|
67
66
|
var classNames = useClassNames.useClassNames(componentToken.ComponentToken.Breadcrumb);
|
|
68
67
|
var styled = {
|
|
69
68
|
navigation: stylex.default.props(styles.navigation["default"]({
|
|
70
|
-
color: theme.colors[
|
|
69
|
+
color: theme.colors["on-surface"]
|
|
71
70
|
}), isLink && styles.navigation.link({
|
|
72
|
-
hoveredBackgroundColor: theme.colors
|
|
73
|
-
hoveredColor: theme.colors[
|
|
71
|
+
hoveredBackgroundColor: theme.colors.surface,
|
|
72
|
+
hoveredColor: theme.colors["on-surface"]
|
|
74
73
|
})),
|
|
75
74
|
separator: stylex.default.props(styles.separator["default"])
|
|
76
75
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
3
3
|
import { useTheme } from '../theme/hooks.mjs';
|
|
4
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
5
4
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
6
5
|
import { BreadcrumbClassToken } from '../../utils/class-name.mjs';
|
|
7
6
|
import { clsx } from '@aiszlab/relax';
|
|
@@ -65,10 +64,10 @@ var Item = function Item(_ref) {
|
|
|
65
64
|
var classNames = useClassNames(ComponentToken.Breadcrumb);
|
|
66
65
|
var styled = {
|
|
67
66
|
navigation: _stylex.props(styles.navigation["default"]({
|
|
68
|
-
color: theme.colors[
|
|
67
|
+
color: theme.colors["on-surface"]
|
|
69
68
|
}), isLink && styles.navigation.link({
|
|
70
|
-
hoveredBackgroundColor: theme.colors
|
|
71
|
-
hoveredColor: theme.colors[
|
|
69
|
+
hoveredBackgroundColor: theme.colors.surface,
|
|
70
|
+
hoveredColor: theme.colors["on-surface"]
|
|
72
71
|
})),
|
|
73
72
|
separator: _stylex.props(styles.separator["default"])
|
|
74
73
|
};
|
|
@@ -11,7 +11,6 @@ var hooks = require('../theme/hooks.cjs');
|
|
|
11
11
|
var hooks$1 = require('./hooks.cjs');
|
|
12
12
|
var ripple = require('../ripple/ripple.cjs');
|
|
13
13
|
var theme = require('../theme/theme.cjs');
|
|
14
|
-
var colors = require('../../utils/colors.cjs');
|
|
15
14
|
var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
16
15
|
var componentToken = require('../../utils/component-token.cjs');
|
|
17
16
|
var color = require('@aiszlab/fuzzy/color');
|
|
@@ -268,18 +267,18 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
268
267
|
color: theme$1.colors["on-".concat(color$1)]
|
|
269
268
|
}), variant === "outlined" && styles.outlined({
|
|
270
269
|
color: theme$1.colors[color$1],
|
|
271
|
-
hoveredBackgroundColor: color.hexToRgba(theme$1.colors
|
|
270
|
+
hoveredBackgroundColor: color.hexToRgba(theme$1.colors.primary, tokens_stylex.OPACITY.thin)
|
|
272
271
|
}), variant === "text" && styles.text({
|
|
273
272
|
color: theme$1.colors[color$1],
|
|
274
|
-
hoveredBackgroundColor: color.hexToRgba(theme$1.colors
|
|
273
|
+
hoveredBackgroundColor: color.hexToRgba(theme$1.colors.primary, tokens_stylex.OPACITY.thin)
|
|
275
274
|
}),
|
|
276
275
|
// shape
|
|
277
276
|
styles[shape],
|
|
278
277
|
// disabled
|
|
279
278
|
disabled && styles.disabled({
|
|
280
|
-
backgroundColor: variant === "filled" ? color.hexToRgba(theme$1.colors[
|
|
281
|
-
color: color.hexToRgba(theme$1.colors[
|
|
282
|
-
outlineColor: variant === "outlined" ? color.hexToRgba(theme$1.colors[
|
|
279
|
+
backgroundColor: variant === "filled" ? color.hexToRgba(theme$1.colors["on-surface"], tokens_stylex.OPACITY.medium) : "transparent",
|
|
280
|
+
color: color.hexToRgba(theme$1.colors["on-surface"], tokens_stylex.OPACITY.thicker),
|
|
281
|
+
outlineColor: variant === "outlined" ? color.hexToRgba(theme$1.colors["on-surface"], tokens_stylex.OPACITY.thicker) : null
|
|
283
282
|
}))
|
|
284
283
|
};
|
|
285
284
|
return /*#__PURE__*/React.createElement("button", _objectSpread({
|
|
@@ -9,7 +9,6 @@ import { useTheme } from '../theme/hooks.mjs';
|
|
|
9
9
|
import { useButton } from './hooks.mjs';
|
|
10
10
|
import Ripple from '../ripple/ripple.mjs';
|
|
11
11
|
import { typography } from '../theme/theme.mjs';
|
|
12
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
13
12
|
import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
14
13
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
15
14
|
import { hexToRgba } from '@aiszlab/fuzzy/color';
|
|
@@ -266,18 +265,18 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
266
265
|
color: theme.colors["on-".concat(color)]
|
|
267
266
|
}), variant === "outlined" && styles.outlined({
|
|
268
267
|
color: theme.colors[color],
|
|
269
|
-
hoveredBackgroundColor: hexToRgba(theme.colors
|
|
268
|
+
hoveredBackgroundColor: hexToRgba(theme.colors.primary, OPACITY.thin)
|
|
270
269
|
}), variant === "text" && styles.text({
|
|
271
270
|
color: theme.colors[color],
|
|
272
|
-
hoveredBackgroundColor: hexToRgba(theme.colors
|
|
271
|
+
hoveredBackgroundColor: hexToRgba(theme.colors.primary, OPACITY.thin)
|
|
273
272
|
}),
|
|
274
273
|
// shape
|
|
275
274
|
styles[shape],
|
|
276
275
|
// disabled
|
|
277
276
|
disabled && styles.disabled({
|
|
278
|
-
backgroundColor: variant === "filled" ? hexToRgba(theme.colors[
|
|
279
|
-
color: hexToRgba(theme.colors[
|
|
280
|
-
outlineColor: variant === "outlined" ? hexToRgba(theme.colors[
|
|
277
|
+
backgroundColor: variant === "filled" ? hexToRgba(theme.colors["on-surface"], OPACITY.medium) : "transparent",
|
|
278
|
+
color: hexToRgba(theme.colors["on-surface"], OPACITY.thicker),
|
|
279
|
+
outlineColor: variant === "outlined" ? hexToRgba(theme.colors["on-surface"], OPACITY.thicker) : null
|
|
281
280
|
}))
|
|
282
281
|
};
|
|
283
282
|
return /*#__PURE__*/React.createElement("button", _objectSpread({
|
|
@@ -10,7 +10,6 @@ var theme = require('../theme/theme.cjs');
|
|
|
10
10
|
var relax = require('@aiszlab/relax');
|
|
11
11
|
var button = require('../button/button.cjs');
|
|
12
12
|
var hooks$1 = require('../theme/hooks.cjs');
|
|
13
|
-
var colors = require('../../utils/colors.cjs');
|
|
14
13
|
var componentToken = require('../../utils/component-token.cjs');
|
|
15
14
|
var keyboardDoubleArrowLeft = require('../icon/icons/hardware/keyboard-double-arrow-left.cjs');
|
|
16
15
|
var keyboardDoubleArrowRight = require('../icon/icons/hardware/keyboard-double-arrow-right.cjs');
|
|
@@ -68,7 +67,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
68
67
|
className: "musaex-eq5yr9"
|
|
69
68
|
},
|
|
70
69
|
header: stylex.default.props(theme.typography.label.large, styles.header({
|
|
71
|
-
color: theme$1.colors[
|
|
70
|
+
color: theme$1.colors["on-surface-variant"]
|
|
72
71
|
})),
|
|
73
72
|
heading: {
|
|
74
73
|
className: "musaex-98rzlu musaex-78zum5 musaex-l56j7k"
|
|
@@ -8,7 +8,6 @@ import { typography } from '../theme/theme.mjs';
|
|
|
8
8
|
import { clsx } from '@aiszlab/relax';
|
|
9
9
|
import { Button } from '../button/button.mjs';
|
|
10
10
|
import { useTheme } from '../theme/hooks.mjs';
|
|
11
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
12
11
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
13
12
|
import KeyboardDoubleArrowLeft from '../icon/icons/hardware/keyboard-double-arrow-left.mjs';
|
|
14
13
|
import KeyboardDoubleArrowRight from '../icon/icons/hardware/keyboard-double-arrow-right.mjs';
|
|
@@ -66,7 +65,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
66
65
|
className: "musaex-eq5yr9"
|
|
67
66
|
},
|
|
68
67
|
header: _stylex.props(typography.label.large, styles.header({
|
|
69
|
-
color: theme.colors[
|
|
68
|
+
color: theme.colors["on-surface-variant"]
|
|
70
69
|
})),
|
|
71
70
|
heading: {
|
|
72
71
|
className: "musaex-98rzlu musaex-78zum5 musaex-l56j7k"
|
|
@@ -10,7 +10,6 @@ var timespan = require('../../utils/timespan.cjs');
|
|
|
10
10
|
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
11
11
|
var theme = require('../theme/theme.cjs');
|
|
12
12
|
var hooks = require('../theme/hooks.cjs');
|
|
13
|
-
var colors = require('../../utils/colors.cjs');
|
|
14
13
|
var button = require('../button/button.cjs');
|
|
15
14
|
var componentToken = require('../../utils/component-token.cjs');
|
|
16
15
|
|
|
@@ -87,7 +86,7 @@ var useHeadCells = function useHeadCells() {
|
|
|
87
86
|
return React.useMemo(function () {
|
|
88
87
|
var _dayjs$Ls$dayjs$local;
|
|
89
88
|
var styled = stylex.default.props(styles.cell, styles.header({
|
|
90
|
-
color: theme$1.colors[
|
|
89
|
+
color: theme$1.colors["on-surface-variant"]
|
|
91
90
|
}), theme.typography.body.large);
|
|
92
91
|
return (_dayjs$Ls$dayjs$local = dayjs.Ls[dayjs.locale()].weekdays) === null || _dayjs$Ls$dayjs$local === void 0 ? void 0 : _dayjs$Ls$dayjs$local.map(function (weekday, index) {
|
|
93
92
|
return /*#__PURE__*/React.createElement("th", {
|
|
@@ -125,7 +124,7 @@ var useDateCells = function useDateCells(_ref) {
|
|
|
125
124
|
var isSelected = isFrom || isTo;
|
|
126
125
|
var styled = {
|
|
127
126
|
cell: stylex.default.props(styles.cell, styles.date({
|
|
128
|
-
backgroundColor: theme$1.colors[
|
|
127
|
+
backgroundColor: theme$1.colors["secondary-container"]
|
|
129
128
|
}), isDisabled && styles.hidden, isBetween && styles.range, isFrom && timespan.isRange && styles.from, isTo && timespan.isRange && styles.to, theme.typography.body.large),
|
|
130
129
|
trigger: {
|
|
131
130
|
className: "musaex-gnae0u musaex-ksl8fa"
|
|
@@ -10,7 +10,6 @@ import { Timespan } from '../../utils/timespan.mjs';
|
|
|
10
10
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
11
11
|
import { typography } from '../theme/theme.mjs';
|
|
12
12
|
import { useTheme } from '../theme/hooks.mjs';
|
|
13
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
14
13
|
import { Button } from '../button/button.mjs';
|
|
15
14
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
16
15
|
|
|
@@ -87,7 +86,7 @@ var useHeadCells = function useHeadCells() {
|
|
|
87
86
|
return useMemo(function () {
|
|
88
87
|
var _dayjs$Ls$dayjs$local;
|
|
89
88
|
var styled = _stylex.props(styles.cell, styles.header({
|
|
90
|
-
color: theme.colors[
|
|
89
|
+
color: theme.colors["on-surface-variant"]
|
|
91
90
|
}), typography.body.large);
|
|
92
91
|
return (_dayjs$Ls$dayjs$local = dayjs.Ls[dayjs.locale()].weekdays) === null || _dayjs$Ls$dayjs$local === void 0 ? void 0 : _dayjs$Ls$dayjs$local.map(function (weekday, index) {
|
|
93
92
|
return /*#__PURE__*/React.createElement("th", {
|
|
@@ -125,7 +124,7 @@ var useDateCells = function useDateCells(_ref) {
|
|
|
125
124
|
var isSelected = isFrom || isTo;
|
|
126
125
|
var styled = {
|
|
127
126
|
cell: _stylex.props(styles.cell, styles.date({
|
|
128
|
-
backgroundColor: theme.colors[
|
|
127
|
+
backgroundColor: theme.colors["secondary-container"]
|
|
129
128
|
}), isDisabled && styles.hidden, isBetween && styles.range, isFrom && timespan.isRange && styles.from, isTo && timespan.isRange && styles.to, typography.body.large),
|
|
130
129
|
trigger: {
|
|
131
130
|
className: "musaex-gnae0u musaex-ksl8fa"
|
|
@@ -9,7 +9,6 @@ var useClassNames = require('../../hooks/use-class-names.cjs');
|
|
|
9
9
|
var className = require('../../utils/class-name.cjs');
|
|
10
10
|
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
11
11
|
var hooks = require('../theme/hooks.cjs');
|
|
12
|
-
var colors = require('../../utils/colors.cjs');
|
|
13
12
|
var theme = require('../theme/theme.cjs');
|
|
14
13
|
var componentToken = require('../../utils/component-token.cjs');
|
|
15
14
|
var styles = require('./styles.cjs');
|
|
@@ -57,13 +56,13 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
57
56
|
});
|
|
58
57
|
var styled = {
|
|
59
58
|
checkbox: stylex.default.props(styles.default.checkbox["default"], isDisabled && styles.default.checkbox.disabled, styles.default.checkbox.variables({
|
|
60
|
-
primaryColor: theme$1.colors
|
|
61
|
-
onPrimaryColor: theme$1.colors[
|
|
62
|
-
outlineColor: theme$1.colors
|
|
59
|
+
primaryColor: theme$1.colors.primary,
|
|
60
|
+
onPrimaryColor: theme$1.colors["on-primary"],
|
|
61
|
+
outlineColor: theme$1.colors.outline
|
|
63
62
|
})),
|
|
64
63
|
trigger: stylex.default.props(styles.default.trigger["default"], isChecked && styles.default.trigger.checked, isDisabled && styles.default.trigger.disabled({
|
|
65
|
-
backgroundColor: theme$1.colors[
|
|
66
|
-
color: theme$1.colors[
|
|
64
|
+
backgroundColor: theme$1.colors["on-surface"],
|
|
65
|
+
color: theme$1.colors["on-primary"]
|
|
67
66
|
}), !isChecked && styles.default.trigger.unchecked),
|
|
68
67
|
label: stylex.default.props(styles.default.label["default"], theme.typography.label.small)
|
|
69
68
|
};
|
|
@@ -7,7 +7,6 @@ import { useClassNames } from '../../hooks/use-class-names.mjs';
|
|
|
7
7
|
import { CheckboxClassToken } from '../../utils/class-name.mjs';
|
|
8
8
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
9
9
|
import { useTheme } from '../theme/hooks.mjs';
|
|
10
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
11
10
|
import { typography } from '../theme/theme.mjs';
|
|
12
11
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
13
12
|
import styles from './styles.mjs';
|
|
@@ -55,13 +54,13 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
55
54
|
});
|
|
56
55
|
var styled = {
|
|
57
56
|
checkbox: _stylex.props(styles.checkbox["default"], isDisabled && styles.checkbox.disabled, styles.checkbox.variables({
|
|
58
|
-
primaryColor: theme.colors
|
|
59
|
-
onPrimaryColor: theme.colors[
|
|
60
|
-
outlineColor: theme.colors
|
|
57
|
+
primaryColor: theme.colors.primary,
|
|
58
|
+
onPrimaryColor: theme.colors["on-primary"],
|
|
59
|
+
outlineColor: theme.colors.outline
|
|
61
60
|
})),
|
|
62
61
|
trigger: _stylex.props(styles.trigger["default"], isChecked && styles.trigger.checked, isDisabled && styles.trigger.disabled({
|
|
63
|
-
backgroundColor: theme.colors[
|
|
64
|
-
color: theme.colors[
|
|
62
|
+
backgroundColor: theme.colors["on-surface"],
|
|
63
|
+
color: theme.colors["on-primary"]
|
|
65
64
|
}), !isChecked && styles.trigger.unchecked),
|
|
66
65
|
label: _stylex.props(styles.label["default"], typography.label.small)
|
|
67
66
|
};
|
|
@@ -7,7 +7,6 @@ var className = require('../../utils/class-name.cjs');
|
|
|
7
7
|
var relax = require('@aiszlab/relax');
|
|
8
8
|
var stylex = require('../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.cjs');
|
|
9
9
|
var hooks = require('../theme/hooks.cjs');
|
|
10
|
-
var colors = require('../../utils/colors.cjs');
|
|
11
10
|
var componentToken = require('../../utils/component-token.cjs');
|
|
12
11
|
|
|
13
12
|
var UNITS = {
|
|
@@ -65,8 +64,8 @@ var Column = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
65
64
|
}, [value]);
|
|
66
65
|
var styled = {
|
|
67
66
|
menu: stylex.default.props(styles.menu({
|
|
68
|
-
scrollbarThumbColor: theme.colors
|
|
69
|
-
outlineColor: theme.colors[
|
|
67
|
+
scrollbarThumbColor: theme.colors.secondary,
|
|
68
|
+
outlineColor: theme.colors["outline-variant"]
|
|
70
69
|
})),
|
|
71
70
|
item: {
|
|
72
71
|
className: "musaex-yueg9c musaex-78zum5 musaex-l56j7k"
|
|
@@ -5,7 +5,6 @@ import { ClockClassToken } from '../../utils/class-name.mjs';
|
|
|
5
5
|
import { isVoid, clsx } from '@aiszlab/relax';
|
|
6
6
|
import _stylex from '../../node_modules/.pnpm/@stylexjs_stylex@0.7.5/node_modules/@stylexjs/stylex/lib/es/stylex.mjs';
|
|
7
7
|
import { useTheme } from '../theme/hooks.mjs';
|
|
8
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
9
8
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
10
9
|
|
|
11
10
|
var UNITS = {
|
|
@@ -63,8 +62,8 @@ var Column = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
63
62
|
}, [value]);
|
|
64
63
|
var styled = {
|
|
65
64
|
menu: _stylex.props(styles.menu({
|
|
66
|
-
scrollbarThumbColor: theme.colors
|
|
67
|
-
outlineColor: theme.colors[
|
|
65
|
+
scrollbarThumbColor: theme.colors.secondary,
|
|
66
|
+
outlineColor: theme.colors["outline-variant"]
|
|
68
67
|
})),
|
|
69
68
|
item: {
|
|
70
69
|
className: "musaex-yueg9c musaex-78zum5 musaex-l56j7k"
|
|
@@ -11,7 +11,6 @@ var relax = require('@aiszlab/relax');
|
|
|
11
11
|
var hooks = require('./hooks.cjs');
|
|
12
12
|
var context = require('./context.cjs');
|
|
13
13
|
var hooks$1 = require('../theme/hooks.cjs');
|
|
14
|
-
var colors = require('../../utils/colors.cjs');
|
|
15
14
|
var componentToken = require('../../utils/component-token.cjs');
|
|
16
15
|
|
|
17
16
|
var styles = {
|
|
@@ -82,7 +81,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
82
81
|
// no need to render when items is empty
|
|
83
82
|
if (items.length === 0) return null;
|
|
84
83
|
var styled = stylex.default.props(styles.collapse({
|
|
85
|
-
outlineColor: theme.colors[
|
|
84
|
+
outlineColor: theme.colors["outline-variant"]
|
|
86
85
|
}));
|
|
87
86
|
return /*#__PURE__*/React.createElement(context.Context.Provider, {
|
|
88
87
|
value: {
|
|
@@ -9,7 +9,6 @@ import { clsx } from '@aiszlab/relax';
|
|
|
9
9
|
import { useActiveKeys } from './hooks.mjs';
|
|
10
10
|
import { Context } from './context.mjs';
|
|
11
11
|
import { useTheme } from '../theme/hooks.mjs';
|
|
12
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
13
12
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
14
13
|
|
|
15
14
|
var styles = {
|
|
@@ -80,7 +79,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
80
79
|
// no need to render when items is empty
|
|
81
80
|
if (items.length === 0) return null;
|
|
82
81
|
var styled = _stylex.props(styles.collapse({
|
|
83
|
-
outlineColor: theme.colors[
|
|
82
|
+
outlineColor: theme.colors["outline-variant"]
|
|
84
83
|
}));
|
|
85
84
|
return /*#__PURE__*/React.createElement(Context.Provider, {
|
|
86
85
|
value: {
|
|
@@ -13,7 +13,6 @@ var framerMotion = require('framer-motion');
|
|
|
13
13
|
var context = require('./context.cjs');
|
|
14
14
|
var useExpandable = require('../../hooks/use-expandable.cjs');
|
|
15
15
|
var hooks = require('../theme/hooks.cjs');
|
|
16
|
-
var colors = require('../../utils/colors.cjs');
|
|
17
16
|
var componentToken = require('../../utils/component-token.cjs');
|
|
18
17
|
var keyboardArrowRight = require('../icon/icons/hardware/keyboard-arrow-right.cjs');
|
|
19
18
|
|
|
@@ -135,12 +134,12 @@ var CollapseItem = function CollapseItem(_ref) {
|
|
|
135
134
|
})), [isExpanded]);
|
|
136
135
|
var styled = {
|
|
137
136
|
item: stylex.default.props(styles.item["default"]({
|
|
138
|
-
outlineColor: theme.colors[
|
|
137
|
+
outlineColor: theme.colors["outline-variant"]
|
|
139
138
|
})),
|
|
140
139
|
header: stylex.default.props(styles.header["default"]),
|
|
141
140
|
panel: stylex.default.props(styles.panel["default"], !isExpanded && styles.panel.hidden),
|
|
142
141
|
content: stylex.default.props(styles.content["default"]({
|
|
143
|
-
outlineColor: theme.colors[
|
|
142
|
+
outlineColor: theme.colors["outline-variant"]
|
|
144
143
|
})),
|
|
145
144
|
collapser: stylex.default.props(styles.collapser["default"], isExpanded && styles.collapser.expanded)
|
|
146
145
|
};
|
|
@@ -11,7 +11,6 @@ import { useAnimate } from 'framer-motion';
|
|
|
11
11
|
import { Context } from './context.mjs';
|
|
12
12
|
import { useExpandable } from '../../hooks/use-expandable.mjs';
|
|
13
13
|
import { useTheme } from '../theme/hooks.mjs';
|
|
14
|
-
import { ColorToken } from '../../utils/colors.mjs';
|
|
15
14
|
import { ComponentToken } from '../../utils/component-token.mjs';
|
|
16
15
|
import KeyboardArrowRight from '../icon/icons/hardware/keyboard-arrow-right.mjs';
|
|
17
16
|
|
|
@@ -133,12 +132,12 @@ var CollapseItem = function CollapseItem(_ref) {
|
|
|
133
132
|
})), [isExpanded]);
|
|
134
133
|
var styled = {
|
|
135
134
|
item: _stylex.props(styles.item["default"]({
|
|
136
|
-
outlineColor: theme.colors[
|
|
135
|
+
outlineColor: theme.colors["outline-variant"]
|
|
137
136
|
})),
|
|
138
137
|
header: _stylex.props(styles.header["default"]),
|
|
139
138
|
panel: _stylex.props(styles.panel["default"], !isExpanded && styles.panel.hidden),
|
|
140
139
|
content: _stylex.props(styles.content["default"]({
|
|
141
|
-
outlineColor: theme.colors[
|
|
140
|
+
outlineColor: theme.colors["outline-variant"]
|
|
142
141
|
})),
|
|
143
142
|
collapser: _stylex.props(styles.collapser["default"], isExpanded && styles.collapser.expanded)
|
|
144
143
|
};
|
|
@@ -19,11 +19,11 @@ var useFooter = function useFooter(_ref) {
|
|
|
19
19
|
locale = _useLocale2[0];
|
|
20
20
|
return React.useMemo(function () {
|
|
21
21
|
return footer !== null && footer !== void 0 ? footer : (/*#__PURE__*/React.createElement(space.default, null, /*#__PURE__*/React.createElement(button.Button, {
|
|
22
|
-
onClick:
|
|
23
|
-
color: "secondary",
|
|
22
|
+
onClick: onConfirm,
|
|
24
23
|
variant: "text"
|
|
25
24
|
}, locale.confirm), /*#__PURE__*/React.createElement(button.Button, {
|
|
26
|
-
onClick:
|
|
25
|
+
onClick: onClose,
|
|
26
|
+
color: "secondary",
|
|
27
27
|
variant: "text"
|
|
28
28
|
}, locale.cancel)));
|
|
29
29
|
}, [footer, onConfirm, onClose, locale]);
|
|
@@ -19,11 +19,11 @@ var useFooter = function useFooter(_ref) {
|
|
|
19
19
|
locale = _useLocale2[0];
|
|
20
20
|
return useMemo(function () {
|
|
21
21
|
return footer !== null && footer !== void 0 ? footer : (/*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
|
|
22
|
-
onClick:
|
|
23
|
-
color: "secondary",
|
|
22
|
+
onClick: onConfirm,
|
|
24
23
|
variant: "text"
|
|
25
24
|
}, locale.confirm), /*#__PURE__*/React.createElement(Button, {
|
|
26
|
-
onClick:
|
|
25
|
+
onClick: onClose,
|
|
26
|
+
color: "secondary",
|
|
27
27
|
variant: "text"
|
|
28
28
|
}, locale.cancel)));
|
|
29
29
|
}, [footer, onConfirm, onClose, locale]);
|