musae 0.1.42 → 0.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/avatar/__test__/index.test.d.ts +1 -0
- package/dist/components/avatar/{avatar.mjs → avatar.js} +14 -10
- package/dist/components/avatar/context.d.ts +1 -1
- package/dist/components/avatar/group.d.ts +1 -1
- package/dist/components/avatar/group.js +26 -0
- package/dist/components/avatar/index.js +8 -0
- package/dist/components/breadcrumb/__test__/index.test.d.ts +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +59 -0
- package/dist/components/breadcrumb/item.d.ts +4 -0
- package/dist/components/breadcrumb/item.js +82 -0
- package/dist/components/breadcrumb/types.d.ts +28 -15
- package/dist/components/button/{button.mjs → button.js} +15 -24
- package/dist/components/button/{hooks.mjs → hooks.js} +1 -1
- package/dist/components/calendar/{calendar.mjs → calendar.js} +10 -10
- package/dist/components/calendar/{hooks.mjs → hooks.js} +9 -9
- package/dist/components/cascader/{cascader.mjs → cascader.js} +6 -6
- package/dist/components/cascader/{hooks.mjs → hooks.js} +1 -1
- package/dist/components/checkbox/{checkbox.mjs → checkbox.js} +8 -9
- package/dist/components/{radio/context.mjs → checkbox/context.js} +1 -2
- package/dist/components/checkbox/{group.mjs → group.js} +2 -3
- package/dist/components/checkbox/index.js +8 -0
- package/dist/components/clock/{clock.mjs → clock.js} +5 -5
- package/dist/components/clock/{column.mjs → column.js} +8 -9
- package/dist/components/clock/{hooks.mjs → hooks.js} +1 -1
- package/dist/components/config/{context.mjs → context.js} +2 -3
- package/dist/components/config/hooks.d.ts +32 -0
- package/dist/components/config/{hooks.mjs → hooks.js} +1 -1
- package/dist/components/config/{provider.mjs → provider.js} +3 -3
- package/dist/components/date-picker/{date-picker.mjs → date-picker.js} +5 -5
- package/dist/components/date-range-picker/{date-range-picker.mjs → date-range-picker.js} +6 -6
- package/dist/components/dialog/__test__/index.test.d.ts +1 -0
- package/dist/components/dialog/{dialog.mjs → dialog.js} +2 -2
- package/dist/components/dialog/{hooks.mjs → hooks.js} +2 -2
- package/dist/components/dialog/{popup.mjs → popup.js} +16 -17
- package/dist/components/divider/{divider.mjs → divider.js} +7 -7
- package/dist/components/drawer/{drawer.mjs → drawer.js} +2 -2
- package/dist/components/drawer/{popup.mjs → popup.js} +14 -15
- package/dist/components/empty/__test__/index.test.d.ts +1 -0
- package/dist/components/empty/{empty.mjs → empty.js} +6 -6
- package/dist/components/form/field/{error.mjs → error.js} +3 -4
- package/dist/components/form/field/{field.mjs → field.js} +9 -10
- package/dist/components/form/field/{layout.mjs → layout.js} +7 -8
- package/dist/components/form/{form.mjs → form.js} +3 -4
- package/dist/components/form/index.js +10 -0
- package/dist/components/form/{item.mjs → item.js} +3 -4
- package/dist/components/grid/col.d.ts +1 -1
- package/dist/components/grid/{col.mjs → col.js} +6 -7
- package/dist/components/grid/index.d.ts +2 -2
- package/dist/components/grid/index.js +9 -0
- package/dist/components/grid/row.d.ts +1 -1
- package/dist/components/grid/{row.mjs → row.js} +7 -8
- package/dist/components/icon/{hoc.mjs → hoc.js} +1 -1
- package/dist/components/icon/{icon.mjs → icon.js} +3 -3
- package/dist/components/icon/icons/action/{check-circle-outline.mjs → check-circle-outline.js} +1 -1
- package/dist/components/icon/icons/action/{check-circle.mjs → check-circle.js} +1 -1
- package/dist/components/icon/icons/action/{done-outline.mjs → done-outline.js} +1 -1
- package/dist/components/icon/icons/action/{done.mjs → done.js} +1 -1
- package/dist/components/icon/icons/action/index.js +10 -0
- package/dist/components/icon/icons/action/{swap-horiz.mjs → swap-horiz.js} +1 -1
- package/dist/components/icon/icons/action/{swap-vert.mjs → swap-vert.js} +1 -1
- package/dist/components/icon/icons/action/{visibility-off.mjs → visibility-off.js} +1 -1
- package/dist/components/icon/icons/action/{visibility.mjs → visibility.js} +1 -1
- package/dist/components/icon/icons/action/{zoom-in.mjs → zoom-in.js} +1 -1
- package/dist/components/icon/icons/action/{zoom-out.mjs → zoom-out.js} +1 -1
- package/dist/components/icon/icons/alert/{error-outline.mjs → error-outline.js} +1 -1
- package/dist/components/icon/icons/alert/index.js +1 -0
- package/dist/components/icon/icons/content/{clear.mjs → clear.js} +1 -1
- package/dist/components/icon/icons/content/index.js +1 -0
- package/dist/components/icon/icons/hardware/{index.mjs → index.js} +6 -6
- package/dist/components/icon/icons/hardware/{keyboard-arrow-down.mjs → keyboard-arrow-down.js} +1 -1
- package/dist/components/icon/icons/hardware/{keyboard-arrow-left.mjs → keyboard-arrow-left.js} +1 -1
- package/dist/components/icon/icons/hardware/{keyboard-arrow-right.mjs → keyboard-arrow-right.js} +1 -1
- package/dist/components/icon/icons/hardware/{keyboard-arrow-up.mjs → keyboard-arrow-up.js} +1 -1
- package/dist/components/icon/icons/hardware/{keyboard-double-arrow-left.mjs → keyboard-double-arrow-left.js} +1 -1
- package/dist/components/icon/icons/hardware/{keyboard-double-arrow-right.mjs → keyboard-double-arrow-right.js} +1 -1
- package/dist/components/icon/icons/image/{bedtime.mjs → bedtime.js} +1 -1
- package/dist/components/icon/icons/image/index.js +4 -0
- package/dist/components/icon/icons/image/{rotate-left.mjs → rotate-left.js} +1 -1
- package/dist/components/icon/icons/image/{rotate-right.mjs → rotate-right.js} +1 -1
- package/dist/components/icon/icons/image/{wb-sunny.mjs → wb-sunny.js} +1 -1
- package/dist/components/icon/icons/index.js +46 -0
- package/dist/components/icon/icons/mock/{github.mjs → github.js} +1 -1
- package/dist/components/icon/icons/mock/index.js +1 -0
- package/dist/components/icon/icons/navigation/{cancel.mjs → cancel.js} +1 -1
- package/dist/components/icon/icons/navigation/{check.mjs → check.js} +1 -1
- package/dist/components/icon/icons/navigation/{close.mjs → close.js} +1 -1
- package/dist/components/icon/icons/navigation/index.js +4 -0
- package/dist/components/icon/icons/navigation/{more-horiz.mjs → more-horiz.js} +1 -1
- package/dist/components/icon/icons/toggle/index.js +3 -0
- package/dist/components/icon/icons/toggle/{star-half.mjs → star-half.js} +1 -1
- package/dist/components/icon/icons/toggle/{star-outline.mjs → star-outline.js} +1 -1
- package/dist/components/icon/icons/toggle/{star.mjs → star.js} +1 -1
- package/dist/components/image/{hooks.mjs → hooks.js} +7 -7
- package/dist/components/image/{image.mjs → image.js} +3 -4
- package/dist/components/image/index.js +8 -0
- package/dist/components/image/preview/context.js +5 -0
- package/dist/components/image/preview/{group.mjs → group.js} +3 -4
- package/dist/components/image/preview/{operations.mjs → operations.js} +13 -15
- package/dist/components/image/preview/{preview.mjs → preview.js} +4 -5
- package/dist/components/input/{input.mjs → input.js} +7 -7
- package/dist/components/layout/footer.js +5 -0
- package/dist/components/layout/{header.mjs → header.js} +5 -6
- package/dist/components/layout/{hooks.mjs → hooks.js} +5 -5
- package/dist/components/layout/index.js +13 -0
- package/dist/components/layout/{layout.mjs → layout.js} +6 -7
- package/dist/components/layout/{main.mjs → main.js} +1 -2
- package/dist/components/layout/{sider.mjs → sider.js} +2 -3
- package/dist/components/loading/{loading.mjs → loading.js} +1 -1
- package/dist/components/menu/{context.mjs → context.js} +1 -2
- package/dist/components/menu/{group.mjs → group.js} +9 -10
- package/dist/components/menu/{hooks.mjs → hooks.js} +4 -4
- package/dist/components/menu/{item.mjs → item.js} +11 -12
- package/dist/components/menu/{menu.mjs → menu.js} +5 -5
- package/dist/components/message/{holder.mjs → holder.js} +4 -5
- package/dist/components/message/{hooks.mjs → hooks.js} +2 -2
- package/dist/components/message/{message.mjs → message.js} +8 -9
- package/dist/components/pagination/{hooks.mjs → hooks.js} +1 -1
- package/dist/components/pagination/{item.mjs → item.js} +8 -9
- package/dist/components/pagination/{pagination.mjs → pagination.js} +2 -2
- package/dist/components/picker/{picker.mjs → picker.js} +12 -21
- package/dist/components/picker/types.d.ts +1 -1
- package/dist/components/popper/dropdown.d.ts +2 -2
- package/dist/components/popper/dropdown.js +102 -0
- package/dist/components/popper/hooks.d.ts +12 -0
- package/dist/components/popper/hooks.js +20 -0
- package/dist/components/popper/popper.d.ts +2 -2
- package/dist/components/popper/popper.js +10 -0
- package/dist/components/popper/types.d.ts +15 -15
- package/dist/components/portal/{portal.mjs → portal.js} +1 -2
- package/dist/components/{checkbox/context.mjs → radio/context.js} +1 -2
- package/dist/components/radio/{group.mjs → group.js} +2 -3
- package/dist/components/radio/index.js +8 -0
- package/dist/components/radio/{radio.mjs → radio.js} +8 -9
- package/dist/components/rate/{rate.mjs → rate.js} +5 -5
- package/dist/components/rate/{star.mjs → star.js} +7 -8
- package/dist/components/ripple/{ripple.mjs → ripple.js} +2 -3
- package/dist/components/select/{hooks.mjs → hooks.js} +1 -1
- package/dist/components/select/{select.mjs → select.js} +6 -6
- package/dist/components/select/{selections.mjs → selections.js} +3 -4
- package/dist/components/select/{selector.mjs → selector.js} +7 -8
- package/dist/components/slider/slider.d.ts +3 -0
- package/dist/components/slider/steps.d.ts +2 -0
- package/dist/components/space/space.d.ts +1 -1
- package/dist/components/space/{space.mjs → space.js} +11 -5
- package/dist/components/space/types.d.ts +2 -1
- package/dist/components/steps/context.d.ts +3 -0
- package/dist/components/steps/context.js +9 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/steps/item.d.ts +4 -0
- package/dist/components/steps/item.js +162 -0
- package/dist/components/steps/steps.d.ts +12 -0
- package/dist/components/steps/steps.js +71 -0
- package/dist/components/steps/types.d.ts +92 -0
- package/dist/components/switch/{switch.mjs → switch.js} +8 -8
- package/dist/components/table/body.d.ts +1 -1
- package/dist/components/table/{body.mjs → body.js} +11 -7
- package/dist/components/table/{context.mjs → context.js} +1 -2
- package/dist/components/table/{header.mjs → header.js} +9 -8
- package/dist/components/table/hooks.d.ts +13 -1
- package/dist/components/table/hooks.js +72 -0
- package/dist/components/table/table.js +32 -0
- package/dist/components/table/types.d.ts +2 -7
- package/dist/components/tabs/{context.mjs → context.js} +1 -2
- package/dist/components/tabs/{item.mjs → item.js} +5 -6
- package/dist/components/tabs/{tabs.mjs → tabs.js} +7 -7
- package/dist/components/tag/{tag.mjs → tag.js} +7 -7
- package/dist/components/theme/{hooks.mjs → hooks.js} +6 -6
- package/dist/components/theme/{theme-provider.mjs → theme-provider.js} +1 -1
- package/dist/components/theme/tokens.stylex.d.ts +10 -2
- package/dist/components/theme/types.d.ts +4 -0
- package/dist/components/time-picker/{panel.mjs → panel.js} +8 -9
- package/dist/components/time-picker/{time-picker.mjs → time-picker.js} +5 -5
- package/dist/components/timeline/context.d.ts +3 -0
- package/dist/components/timeline/context.js +8 -0
- package/dist/components/timeline/index.d.ts +2 -0
- package/dist/components/timeline/item.d.ts +4 -0
- package/dist/components/timeline/item.js +220 -0
- package/dist/components/timeline/timeline.d.ts +4 -0
- package/dist/components/timeline/timeline.js +36 -0
- package/dist/components/timeline/types.d.ts +62 -0
- package/dist/components/tooltip/{tooltip.mjs → tooltip.js} +5 -5
- package/dist/components/tour/hooks.d.ts +15 -0
- package/dist/components/tour/hooks.js +35 -0
- package/dist/components/tour/index.d.ts +2 -0
- package/dist/components/tour/spotlight.d.ts +4 -0
- package/dist/components/tour/spotlight.js +62 -0
- package/dist/components/tour/tour.d.ts +1 -1
- package/dist/components/tour/tour.js +149 -0
- package/dist/components/tour/types.d.ts +32 -3
- package/dist/components/tree/{context.mjs → context.js} +1 -2
- package/dist/components/tree/{list.mjs → list.js} +7 -8
- package/dist/components/tree/{node.mjs → node.js} +9 -10
- package/dist/components/tree/{tree.mjs → tree.js} +3 -3
- package/dist/components/waterfall/sequential.d.ts +1 -1
- package/dist/components/waterfall/{sequential.mjs → sequential.js} +3 -5
- package/dist/components/waterfall/{waterfall.mjs → waterfall.js} +4 -4
- package/dist/hooks/{use-dismissable.mjs → use-dismissable.js} +3 -3
- package/dist/hooks/use-gutters.d.ts +1 -1
- package/dist/hooks/use-gutters.js +10 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +42 -0
- package/dist/node_modules/@aiszlab/relax/dist/dom/contains.js +20 -0
- package/dist/node_modules/@stylexjs/stylex/lib/es/{stylex.mjs → stylex.js} +40 -52
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +103 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +168 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +144 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +9 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +62 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js +25 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +18 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +3 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +14 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +8 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +12 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/{errorContext.mjs → errorContext.js} +3 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/util/{identity.mjs → identity.js} +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/{isFunction.mjs → isFunction.js} +1 -1
- package/dist/node_modules/rxjs/dist/esm5/internal/util/lift.js +22 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +3 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +15 -0
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +11 -0
- package/dist/node_modules/tslib/tslib.es6.js +76 -0
- package/dist/stylex.css +50 -17
- package/dist/utils/class-name.d.ts +135 -2
- package/dist/utils/{class-name.mjs → class-name.js} +76 -2
- package/package.json +24 -13
- package/dist/_virtual/_rollupPluginBabelHelpers.mjs +0 -51
- package/dist/components/avatar/group.mjs +0 -23
- package/dist/components/avatar/index.mjs +0 -8
- package/dist/components/breadcrumb/breadcrumb.mjs +0 -99
- package/dist/components/checkbox/index.mjs +0 -8
- package/dist/components/form/index.mjs +0 -10
- package/dist/components/grid/index.mjs +0 -9
- package/dist/components/icon/icons/action/index.mjs +0 -10
- package/dist/components/icon/icons/alert/index.mjs +0 -1
- package/dist/components/icon/icons/content/index.mjs +0 -1
- package/dist/components/icon/icons/image/index.mjs +0 -4
- package/dist/components/icon/icons/index.mjs +0 -46
- package/dist/components/icon/icons/mock/index.mjs +0 -1
- package/dist/components/icon/icons/navigation/index.mjs +0 -4
- package/dist/components/icon/icons/toggle/index.mjs +0 -3
- package/dist/components/image/index.mjs +0 -8
- package/dist/components/image/preview/context.mjs +0 -6
- package/dist/components/layout/footer.mjs +0 -6
- package/dist/components/layout/index.mjs +0 -13
- package/dist/components/popper/dropdown.mjs +0 -78
- package/dist/components/popper/popper.mjs +0 -17
- package/dist/components/radio/index.mjs +0 -8
- package/dist/components/table/hooks.mjs +0 -33
- package/dist/components/table/table.mjs +0 -76
- package/dist/hooks/use-gutters.mjs +0 -16
- package/dist/index.mjs +0 -39
- package/dist/node_modules/@aiszlab/relax/dist/dom/contains.mjs +0 -20
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.mjs +0 -102
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.mjs +0 -158
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.mjs +0 -142
- package/dist/node_modules/rxjs/dist/esm5/internal/config.mjs +0 -9
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.mjs +0 -51
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.mjs +0 -27
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.mjs +0 -38
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.mjs +0 -5
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.mjs +0 -14
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.mjs +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.mjs +0 -12
- package/dist/node_modules/rxjs/dist/esm5/internal/util/lift.mjs +0 -21
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.mjs +0 -3
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.mjs +0 -17
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.mjs +0 -11
- package/dist/node_modules/tslib/tslib.es6.mjs +0 -87
- package/dist/types/stylex.d.ts +0 -6
- /package/dist/components/avatar/{context.mjs → context.js} +0 -0
- /package/dist/components/cascader/{utils.mjs → utils.js} +0 -0
- /package/dist/components/clock/{types.mjs → types.js} +0 -0
- /package/dist/components/date-picker/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/date-range-picker/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/divider/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/drawer/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/form/{context.mjs → context.js} +0 -0
- /package/dist/components/form/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/input/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/pagination/{types.mjs → types.js} +0 -0
- /package/dist/components/picker/{context.mjs → context.js} +0 -0
- /package/dist/components/picker/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/rate/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/ripple/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/select/{utils.mjs → utils.js} +0 -0
- /package/dist/components/theme/{theme.mjs → theme.js} +0 -0
- /package/dist/components/theme/{tokens.stylex.mjs → tokens.stylex.js} +0 -0
- /package/dist/components/time-picker/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/tree/{hooks.mjs → hooks.js} +0 -0
- /package/dist/components/waterfall/{hooks.mjs → hooks.js} +0 -0
- /package/dist/hooks/{use-expand-effect.mjs → use-expand-effect.js} +0 -0
- /package/dist/utils/{colors.mjs → colors.js} +0 -0
- /package/dist/utils/{keyboard.mjs → keyboard.js} +0 -0
- /package/dist/utils/{layer.mjs → layer.js} +0 -0
- /package/dist/utils/{styles.mjs → styles.js} +0 -0
- /package/dist/utils/{timespan.mjs → timespan.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React, { useContext } from 'react';
|
|
2
|
-
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.
|
|
3
|
-
import { Context } from './context.
|
|
4
|
-
import { useTheme } from '../theme/hooks.
|
|
5
|
-
import { ColorToken } from '../../utils/colors.
|
|
2
|
+
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
3
|
+
import { Context } from './context.js';
|
|
4
|
+
import { useTheme } from '../theme/hooks.js';
|
|
5
|
+
import { ColorToken } from '../../utils/colors.js';
|
|
6
|
+
import { useClassNames } from '../config/hooks.js';
|
|
7
|
+
import { ComponentToken, AvatarClassToken } from '../../utils/class-name.js';
|
|
8
|
+
import clsx from 'clsx';
|
|
6
9
|
|
|
7
10
|
const styles = {
|
|
8
11
|
avatar: {
|
|
@@ -52,9 +55,9 @@ const styles = {
|
|
|
52
55
|
$$css: true
|
|
53
56
|
},
|
|
54
57
|
overlapping: props => [{
|
|
55
|
-
":not(:first-child)
|
|
56
|
-
":not(:first-child)
|
|
57
|
-
":not(:first-child)
|
|
58
|
+
":not(:first-child)_marginInlineStart": "musae-1i5rff9",
|
|
59
|
+
":not(:first-child)_marginLeft": null,
|
|
60
|
+
":not(:first-child)_marginRight": null,
|
|
58
61
|
borderColor: "musae-eqt46j",
|
|
59
62
|
borderInlineColor: null,
|
|
60
63
|
borderInlineStartColor: null,
|
|
@@ -118,6 +121,7 @@ const Avatar = ({
|
|
|
118
121
|
const isInGroup = !!group;
|
|
119
122
|
const size = group?.size ?? props$1.size ?? "medium";
|
|
120
123
|
const shape = group?.shape ?? props$1.shape ?? "circular";
|
|
124
|
+
const classNames = useClassNames(ComponentToken.Avatar);
|
|
121
125
|
const styled = {
|
|
122
126
|
avatar: props(styles.avatar, styles[size], styles[shape], isInGroup && styles.overlapping({
|
|
123
127
|
outlineColor: theme.colors[ColorToken.OnPrimary]
|
|
@@ -127,13 +131,13 @@ const Avatar = ({
|
|
|
127
131
|
}
|
|
128
132
|
};
|
|
129
133
|
return React.createElement("span", {
|
|
130
|
-
|
|
134
|
+
className: clsx(classNames[AvatarClassToken.Avatar], styled.avatar.className),
|
|
135
|
+
style: styled.avatar.style
|
|
131
136
|
}, React.createElement("img", {
|
|
132
137
|
...styled.image,
|
|
133
138
|
src: src,
|
|
134
139
|
alt: alt
|
|
135
140
|
}));
|
|
136
141
|
};
|
|
137
|
-
var _Avatar = Avatar;
|
|
138
142
|
|
|
139
|
-
export {
|
|
143
|
+
export { Avatar as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Context } from './context.js';
|
|
3
|
+
import { useClassNames } from '../config/hooks.js';
|
|
4
|
+
import { ComponentToken, AvatarClassToken } from '../../utils/class-name.js';
|
|
5
|
+
|
|
6
|
+
const Group = ({
|
|
7
|
+
children,
|
|
8
|
+
shape = "circular",
|
|
9
|
+
size = "medium"
|
|
10
|
+
}) => {
|
|
11
|
+
const styled = {
|
|
12
|
+
className: "musae-3nfvp2"
|
|
13
|
+
};
|
|
14
|
+
const classNames = useClassNames(ComponentToken.Avatar);
|
|
15
|
+
return React.createElement(Context.Provider, {
|
|
16
|
+
value: {
|
|
17
|
+
shape,
|
|
18
|
+
size
|
|
19
|
+
}
|
|
20
|
+
}, React.createElement("div", {
|
|
21
|
+
className: (classNames[AvatarClassToken.Group], styled.className),
|
|
22
|
+
style: styled.style
|
|
23
|
+
}, children));
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { Group as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { BreadcrumbProps } from "./types";
|
|
3
|
-
declare const Breadcrumb: (
|
|
3
|
+
declare const Breadcrumb: ({ items, className, separator, style }: BreadcrumbProps) => React.JSX.Element | null;
|
|
4
4
|
export default Breadcrumb;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
3
|
+
import { typography } from '../theme/theme.js';
|
|
4
|
+
import { useTheme } from '../theme/hooks.js';
|
|
5
|
+
import { ColorToken } from '../../utils/colors.js';
|
|
6
|
+
import { useClassNames } from '../config/hooks.js';
|
|
7
|
+
import { ComponentToken, BreadcrumbClassToken } from '../../utils/class-name.js';
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import Item from './item.js';
|
|
10
|
+
|
|
11
|
+
const styles = {
|
|
12
|
+
breadcrumb: props => [{
|
|
13
|
+
color: "musae-19dipnz",
|
|
14
|
+
$$css: true
|
|
15
|
+
}, {
|
|
16
|
+
"--color": props.color != null ? props.color : "initial"
|
|
17
|
+
}]
|
|
18
|
+
};
|
|
19
|
+
const Breadcrumb = ({
|
|
20
|
+
items = [],
|
|
21
|
+
className,
|
|
22
|
+
separator,
|
|
23
|
+
style
|
|
24
|
+
}) => {
|
|
25
|
+
const theme = useTheme();
|
|
26
|
+
const classNames = useClassNames(ComponentToken.Breadcrumb);
|
|
27
|
+
/// there is no need to render the breadcrumb when there is no items
|
|
28
|
+
if (items.length === 0) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
const styled = {
|
|
32
|
+
breadcrumb: props(typography.label.large, styles.breadcrumb({
|
|
33
|
+
color: theme.colors[ColorToken.OnSurfaceVariant]
|
|
34
|
+
})),
|
|
35
|
+
navigations: {
|
|
36
|
+
className: "musae-e8uvvx musae-78zum5 musae-1a02dak"
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return React.createElement("nav", {
|
|
40
|
+
className: clsx(classNames[BreadcrumbClassToken.Breadcrumb], className, styled.breadcrumb.className),
|
|
41
|
+
style: {
|
|
42
|
+
...styled.breadcrumb.style,
|
|
43
|
+
...style
|
|
44
|
+
}
|
|
45
|
+
}, React.createElement("ol", {
|
|
46
|
+
...styled.navigations
|
|
47
|
+
}, items.map((item, index) => {
|
|
48
|
+
return React.createElement(Item, {
|
|
49
|
+
key: index,
|
|
50
|
+
label: item.label,
|
|
51
|
+
max: index === items.length - 1,
|
|
52
|
+
href: item.href,
|
|
53
|
+
separator: separator
|
|
54
|
+
});
|
|
55
|
+
})));
|
|
56
|
+
};
|
|
57
|
+
var Breadcrumb$1 = Breadcrumb;
|
|
58
|
+
|
|
59
|
+
export { Breadcrumb$1 as default };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import _stylex from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
3
|
+
import { useTheme } from '../theme/hooks.js';
|
|
4
|
+
import { ColorToken } from '../../utils/colors.js';
|
|
5
|
+
import { useClassNames } from '../config/hooks.js';
|
|
6
|
+
import { ComponentToken, BreadcrumbClassToken } from '../../utils/class-name.js';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
|
|
9
|
+
const styles = {
|
|
10
|
+
navigation: {
|
|
11
|
+
default: props => [{
|
|
12
|
+
":last-of-type_color": "musae-1befqep",
|
|
13
|
+
$$css: true
|
|
14
|
+
}, {
|
|
15
|
+
"--h3adkr": props.color != null ? props.color : "initial"
|
|
16
|
+
}],
|
|
17
|
+
link: props => [{
|
|
18
|
+
paddingInline: "musae-381k9q",
|
|
19
|
+
paddingStart: null,
|
|
20
|
+
paddingLeft: null,
|
|
21
|
+
paddingEnd: null,
|
|
22
|
+
paddingRight: null,
|
|
23
|
+
borderRadius: "musae-1gg5qfe",
|
|
24
|
+
borderStartStartRadius: null,
|
|
25
|
+
borderStartEndRadius: null,
|
|
26
|
+
borderEndStartRadius: null,
|
|
27
|
+
borderEndEndRadius: null,
|
|
28
|
+
borderTopLeftRadius: null,
|
|
29
|
+
borderTopRightRadius: null,
|
|
30
|
+
borderBottomLeftRadius: null,
|
|
31
|
+
borderBottomRightRadius: null,
|
|
32
|
+
backgroundColor: "musae-rl4t6d",
|
|
33
|
+
color: "musae-vm0q45",
|
|
34
|
+
transitionProperty: "musae-fagghw",
|
|
35
|
+
transitionDuration: "musae-13dflua",
|
|
36
|
+
$$css: true
|
|
37
|
+
}, {
|
|
38
|
+
"--1e2mv7m": props.hoveredBackgroundColor != null ? props.hoveredBackgroundColor : "initial",
|
|
39
|
+
"--1113oo7": props.hoveredColor != null ? props.hoveredColor : "initial"
|
|
40
|
+
}]
|
|
41
|
+
},
|
|
42
|
+
separator: {
|
|
43
|
+
default: {
|
|
44
|
+
marginInline: "musae-19s5fsp",
|
|
45
|
+
marginInlineStart: null,
|
|
46
|
+
marginLeft: null,
|
|
47
|
+
marginInlineEnd: null,
|
|
48
|
+
marginRight: null,
|
|
49
|
+
$$css: true
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const Item = ({
|
|
54
|
+
href,
|
|
55
|
+
label,
|
|
56
|
+
max,
|
|
57
|
+
separator
|
|
58
|
+
}) => {
|
|
59
|
+
const theme = useTheme();
|
|
60
|
+
const isLink = !!href;
|
|
61
|
+
const classNames = useClassNames(ComponentToken.Breadcrumb);
|
|
62
|
+
const styled = {
|
|
63
|
+
navigation: _stylex.props(styles.navigation.default({
|
|
64
|
+
color: theme.colors[ColorToken.OnSurface]
|
|
65
|
+
}), isLink && styles.navigation.link({
|
|
66
|
+
hoveredBackgroundColor: theme.colors[ColorToken.Surface],
|
|
67
|
+
hoveredColor: theme.colors[ColorToken.OnSurface]
|
|
68
|
+
})),
|
|
69
|
+
separator: _stylex.props(styles.separator.default)
|
|
70
|
+
};
|
|
71
|
+
return React.createElement(React.Fragment, null, React.createElement("li", {
|
|
72
|
+
className: classNames[BreadcrumbClassToken.Item]
|
|
73
|
+
}, isLink && React.createElement("a", {
|
|
74
|
+
href: href
|
|
75
|
+
}, label), !isLink && label), !max && React.createElement("li", {
|
|
76
|
+
role: "separator",
|
|
77
|
+
className: clsx(classNames[BreadcrumbClassToken.Separator], styled.separator.className),
|
|
78
|
+
style: styled.separator.style
|
|
79
|
+
}, separator ?? "/"));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export { Item as default };
|
|
@@ -1,38 +1,51 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
+
import { ComponentProps } from "../../types/element";
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* item
|
|
6
|
+
*/
|
|
7
|
+
export type BreadcrumbItem = {
|
|
8
|
+
/**
|
|
9
|
+
* @description
|
|
10
|
+
* item display label
|
|
11
|
+
*/
|
|
12
|
+
label: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* @description
|
|
15
|
+
* item href link
|
|
16
|
+
* if link is not provided, item will display as a label
|
|
17
|
+
*/
|
|
18
|
+
href?: string;
|
|
19
|
+
};
|
|
2
20
|
/**
|
|
3
|
-
* @author murukal
|
|
4
|
-
*
|
|
5
21
|
* @description
|
|
6
22
|
* breadcrumb props
|
|
7
23
|
*/
|
|
8
|
-
export
|
|
24
|
+
export type BreadcrumbProps = ComponentProps & {
|
|
9
25
|
/**
|
|
10
26
|
* @description
|
|
11
27
|
* breadcrumb items
|
|
12
28
|
*/
|
|
13
|
-
items:
|
|
29
|
+
items: BreadcrumbItem[];
|
|
14
30
|
/**
|
|
15
31
|
* @description
|
|
16
32
|
* separator
|
|
17
33
|
*/
|
|
18
34
|
separator?: ReactNode;
|
|
19
|
-
}
|
|
35
|
+
};
|
|
20
36
|
/**
|
|
21
|
-
* @author murukal
|
|
22
|
-
*
|
|
23
37
|
* @description
|
|
24
|
-
* item props
|
|
38
|
+
* breadcrumb item props
|
|
25
39
|
*/
|
|
26
|
-
export
|
|
40
|
+
export type BreadcrumbItemProps = BreadcrumbItem & {
|
|
27
41
|
/**
|
|
28
42
|
* @description
|
|
29
|
-
*
|
|
43
|
+
* max
|
|
30
44
|
*/
|
|
31
|
-
|
|
45
|
+
max: boolean;
|
|
32
46
|
/**
|
|
33
47
|
* @description
|
|
34
|
-
*
|
|
35
|
-
* if link is not provided, item will display as a label
|
|
48
|
+
* separator
|
|
36
49
|
*/
|
|
37
|
-
|
|
38
|
-
}
|
|
50
|
+
separator?: ReactNode;
|
|
51
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import { useClassNames } from '../config/hooks.
|
|
3
|
-
import { ComponentToken, ButtonClassToken } from '../../utils/class-name.
|
|
2
|
+
import { useClassNames } from '../config/hooks.js';
|
|
3
|
+
import { ComponentToken, ButtonClassToken } from '../../utils/class-name.js';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.
|
|
6
|
-
import { useTheme } from '../theme/hooks.
|
|
7
|
-
import { useButton } from './hooks.
|
|
8
|
-
import Ripple from '../ripple/ripple.
|
|
9
|
-
import { typography } from '../theme/theme.
|
|
10
|
-
import { ColorToken } from '../../utils/colors.
|
|
11
|
-
import { layer } from '../../utils/layer.
|
|
5
|
+
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
6
|
+
import { useTheme } from '../theme/hooks.js';
|
|
7
|
+
import { useButton } from './hooks.js';
|
|
8
|
+
import Ripple from '../ripple/ripple.js';
|
|
9
|
+
import { typography } from '../theme/theme.js';
|
|
10
|
+
import { ColorToken } from '../../utils/colors.js';
|
|
11
|
+
import { layer } from '../../utils/layer.js';
|
|
12
12
|
|
|
13
13
|
const styles = {
|
|
14
14
|
button: {
|
|
@@ -22,12 +22,8 @@ const styles = {
|
|
|
22
22
|
rowGap: null,
|
|
23
23
|
columnGap: null,
|
|
24
24
|
whiteSpace: "musae-uxw1ft",
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
transitionDelay: null,
|
|
28
|
-
transitionDuration: null,
|
|
29
|
-
transitionProperty: null,
|
|
30
|
-
transitionTimingFunction: null,
|
|
25
|
+
transitionProperty: "musae-fagghw",
|
|
26
|
+
transitionDuration: "musae-1d8287x",
|
|
31
27
|
willChange: "musae-19v51jg",
|
|
32
28
|
$$css: true
|
|
33
29
|
},
|
|
@@ -195,12 +191,6 @@ const styles = {
|
|
|
195
191
|
color: "musae-19dipnz",
|
|
196
192
|
cursor: "musae-1h6gzvc",
|
|
197
193
|
boxShadow: null,
|
|
198
|
-
$$css: true
|
|
199
|
-
}, {
|
|
200
|
-
"--backgroundColor": props.backgroundColor != null ? props.backgroundColor : "initial",
|
|
201
|
-
"--color": props.color != null ? props.color : "initial"
|
|
202
|
-
}],
|
|
203
|
-
disabledOutline: props => [{
|
|
204
194
|
borderColor: "musae-eqt46j",
|
|
205
195
|
borderInlineColor: null,
|
|
206
196
|
borderInlineStartColor: null,
|
|
@@ -212,6 +202,8 @@ const styles = {
|
|
|
212
202
|
borderBottomColor: null,
|
|
213
203
|
$$css: true
|
|
214
204
|
}, {
|
|
205
|
+
"--backgroundColor": props.backgroundColor != null ? props.backgroundColor : "initial",
|
|
206
|
+
"--color": props.color != null ? props.color : "initial",
|
|
215
207
|
"--borderColor": props.outlineColor != null ? props.outlineColor : "initial"
|
|
216
208
|
}]
|
|
217
209
|
};
|
|
@@ -266,9 +258,8 @@ const Button = forwardRef(({
|
|
|
266
258
|
// disabled
|
|
267
259
|
disabled && styles.disabled({
|
|
268
260
|
backgroundColor: variant === "filled" ? layer(theme.colors[ColorToken.OnSurface], "medium") : "transparent",
|
|
269
|
-
color: layer(theme.colors[ColorToken.OnSurface], "thicker")
|
|
270
|
-
|
|
271
|
-
outlineColor: layer(theme.colors[ColorToken.OnSurface], "thicker")
|
|
261
|
+
color: layer(theme.colors[ColorToken.OnSurface], "thicker"),
|
|
262
|
+
outlineColor: variant === "outlined" ? layer(theme.colors[ColorToken.OnSurface], "thicker") : null
|
|
272
263
|
}))
|
|
273
264
|
};
|
|
274
265
|
return React.createElement("button", {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useValue, useFocusedAt, useDateCells, useHeadCells } from './hooks.
|
|
3
|
-
import { useClassNames } from '../config/hooks.
|
|
4
|
-
import { ComponentToken, CalendarClassToken } from '../../utils/class-name.
|
|
5
|
-
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.
|
|
6
|
-
import { typography } from '../theme/theme.
|
|
2
|
+
import { useValue, useFocusedAt, useDateCells, useHeadCells } from './hooks.js';
|
|
3
|
+
import { useClassNames } from '../config/hooks.js';
|
|
4
|
+
import { ComponentToken, CalendarClassToken } from '../../utils/class-name.js';
|
|
5
|
+
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
6
|
+
import { typography } from '../theme/theme.js';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
|
-
import Button from '../button/button.
|
|
9
|
-
import KeyboardDoubleArrowLeft from '../icon/icons/hardware/keyboard-double-arrow-left.
|
|
10
|
-
import KeyboardDoubleArrowRight from '../icon/icons/hardware/keyboard-double-arrow-right.
|
|
11
|
-
import KeyboardArrowLeft from '../icon/icons/hardware/keyboard-arrow-left.
|
|
12
|
-
import KeyboardArrowRight from '../icon/icons/hardware/keyboard-arrow-right.
|
|
8
|
+
import Button from '../button/button.js';
|
|
9
|
+
import KeyboardDoubleArrowLeft from '../icon/icons/hardware/keyboard-double-arrow-left.js';
|
|
10
|
+
import KeyboardDoubleArrowRight from '../icon/icons/hardware/keyboard-double-arrow-right.js';
|
|
11
|
+
import KeyboardArrowLeft from '../icon/icons/hardware/keyboard-arrow-left.js';
|
|
12
|
+
import KeyboardArrowRight from '../icon/icons/hardware/keyboard-arrow-right.js';
|
|
13
13
|
|
|
14
14
|
const styles = {
|
|
15
15
|
header: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
2
|
import React, { useMemo, useCallback } from 'react';
|
|
3
|
-
import { useClassNames } from '../config/hooks.
|
|
4
|
-
import { ComponentToken, CalendarClassToken } from '../../utils/class-name.
|
|
3
|
+
import { useClassNames } from '../config/hooks.js';
|
|
4
|
+
import { ComponentToken, CalendarClassToken } from '../../utils/class-name.js';
|
|
5
5
|
import { isArray, useControlledState } from '@aiszlab/relax';
|
|
6
|
-
import { Timespan } from '../../utils/timespan.
|
|
6
|
+
import { Timespan } from '../../utils/timespan.js';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
|
-
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.
|
|
9
|
-
import { typography } from '../theme/theme.
|
|
10
|
-
import { useTheme } from '../theme/hooks.
|
|
11
|
-
import { ColorToken } from '../../utils/colors.
|
|
12
|
-
import Button from '../button/button.
|
|
8
|
+
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
9
|
+
import { typography } from '../theme/theme.js';
|
|
10
|
+
import { useTheme } from '../theme/hooks.js';
|
|
11
|
+
import { ColorToken } from '../../utils/colors.js';
|
|
12
|
+
import Button from '../button/button.js';
|
|
13
13
|
|
|
14
14
|
const styles = {
|
|
15
15
|
cell: {
|
|
@@ -27,7 +27,7 @@ const styles = {
|
|
|
27
27
|
"::before_content": "musae-1cpjm7i",
|
|
28
28
|
"::before_position": "musae-1hmns74",
|
|
29
29
|
"::before_backgroundColor": "musae-rr6jkh",
|
|
30
|
-
"::before_zIndex": "musae-
|
|
30
|
+
"::before_zIndex": "musae-1ly6cpr",
|
|
31
31
|
"::before_height": "musae-58076a",
|
|
32
32
|
$$css: true
|
|
33
33
|
}, {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useRef, useCallback, useMemo } from 'react';
|
|
2
|
-
import Picker from '../picker/picker.
|
|
3
|
-
import Tag from '../tag/tag.
|
|
4
|
-
import { useOptions, useValue } from './hooks.
|
|
5
|
-
import Menu from '../menu/menu.
|
|
6
|
-
import { useClassNames } from '../config/hooks.
|
|
7
|
-
import { ComponentToken, CascaderClassToken } from '../../utils/class-name.
|
|
2
|
+
import Picker from '../picker/picker.js';
|
|
3
|
+
import Tag from '../tag/tag.js';
|
|
4
|
+
import { useOptions, useValue } from './hooks.js';
|
|
5
|
+
import Menu from '../menu/menu.js';
|
|
6
|
+
import { useClassNames } from '../config/hooks.js';
|
|
7
|
+
import { ComponentToken, CascaderClassToken } from '../../utils/class-name.js';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
|
|
10
10
|
const Cascader = ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo, useCallback, useState } from 'react';
|
|
2
2
|
import { useControlledState } from '@aiszlab/relax';
|
|
3
|
-
import { toValues, toKey, toMenuItem, toKeys, readOptions } from './utils.
|
|
3
|
+
import { toValues, toKey, toMenuItem, toKeys, readOptions } from './utils.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @description
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useContext, useMemo, useCallback } from 'react';
|
|
2
2
|
import { useControlledState } from '@aiszlab/relax';
|
|
3
|
-
import Context from './context.
|
|
4
|
-
import { useClassNames } from '../config/hooks.
|
|
5
|
-
import { ComponentToken, CheckboxClassToken } from '../../utils/class-name.
|
|
3
|
+
import Context from './context.js';
|
|
4
|
+
import { useClassNames } from '../config/hooks.js';
|
|
5
|
+
import { ComponentToken, CheckboxClassToken } from '../../utils/class-name.js';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
-
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.
|
|
8
|
-
import { useTheme } from '../theme/hooks.
|
|
9
|
-
import { ColorToken } from '../../utils/colors.
|
|
10
|
-
import { typography } from '../theme/theme.
|
|
7
|
+
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
8
|
+
import { useTheme } from '../theme/hooks.js';
|
|
9
|
+
import { ColorToken } from '../../utils/colors.js';
|
|
10
|
+
import { typography } from '../theme/theme.js';
|
|
11
11
|
|
|
12
12
|
const styles = {
|
|
13
13
|
trigger: props => [{
|
|
@@ -191,6 +191,5 @@ const Checkbox = ({
|
|
|
191
191
|
style: styled.label.style
|
|
192
192
|
}, children));
|
|
193
193
|
};
|
|
194
|
-
var _Checkbox = Checkbox;
|
|
195
194
|
|
|
196
|
-
export {
|
|
195
|
+
export { Checkbox as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Context from './context.
|
|
1
|
+
import Context from './context.js';
|
|
2
2
|
import React, { useMemo, useCallback } from 'react';
|
|
3
3
|
import { useControlledState } from '@aiszlab/relax';
|
|
4
4
|
|
|
@@ -29,6 +29,5 @@ const Group = (props) => {
|
|
|
29
29
|
}, [value, change]);
|
|
30
30
|
return React.createElement(Context.Provider, { value: _contextValue }, props.children);
|
|
31
31
|
};
|
|
32
|
-
var Group$1 = Group;
|
|
33
32
|
|
|
34
|
-
export { Group
|
|
33
|
+
export { Group as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useClassNames } from '../config/hooks.
|
|
3
|
-
import { ComponentToken, ClockClassToken } from '../../utils/class-name.
|
|
4
|
-
import { TimeUnit } from './types.
|
|
5
|
-
import Column from './column.
|
|
2
|
+
import { useClassNames } from '../config/hooks.js';
|
|
3
|
+
import { ComponentToken, ClockClassToken } from '../../utils/class-name.js';
|
|
4
|
+
import { TimeUnit } from './types.js';
|
|
5
|
+
import Column from './column.js';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
-
import Divider from '../divider/divider.
|
|
7
|
+
import Divider from '../divider/divider.js';
|
|
8
8
|
|
|
9
9
|
const Clock = ({
|
|
10
10
|
value,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React, { forwardRef, useRef, useCallback, useImperativeHandle, useEffect, useMemo } from 'react';
|
|
2
|
-
import { useTimeUnit } from './hooks.
|
|
3
|
-
import Menu from '../menu/menu.
|
|
4
|
-
import { useClassNames } from '../config/hooks.
|
|
5
|
-
import { ComponentToken, ClockClassToken } from '../../utils/class-name.
|
|
2
|
+
import { useTimeUnit } from './hooks.js';
|
|
3
|
+
import Menu from '../menu/menu.js';
|
|
4
|
+
import { useClassNames } from '../config/hooks.js';
|
|
5
|
+
import { ComponentToken, ClockClassToken } from '../../utils/class-name.js';
|
|
6
6
|
import { isVoid } from '@aiszlab/relax';
|
|
7
|
-
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.
|
|
8
|
-
import { useTheme } from '../theme/hooks.
|
|
9
|
-
import { ColorToken } from '../../utils/colors.
|
|
7
|
+
import { props } from '../../node_modules/@stylexjs/stylex/lib/es/stylex.js';
|
|
8
|
+
import { useTheme } from '../theme/hooks.js';
|
|
9
|
+
import { ColorToken } from '../../utils/colors.js';
|
|
10
10
|
import clsx from 'clsx';
|
|
11
11
|
|
|
12
12
|
const styles = {
|
|
@@ -79,6 +79,5 @@ const Column = forwardRef(({
|
|
|
79
79
|
onClick: onClick
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
|
-
var Column$1 = Column;
|
|
83
82
|
|
|
84
|
-
export { Column
|
|
83
|
+
export { Column as default };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { createContext } from 'react';
|
|
2
|
-
import { DEFAULT_CLASS_NAMES } from '../../utils/class-name.
|
|
2
|
+
import { DEFAULT_CLASS_NAMES } from '../../utils/class-name.js';
|
|
3
3
|
|
|
4
4
|
const Context = createContext({
|
|
5
5
|
messager: null,
|
|
6
6
|
classNames: DEFAULT_CLASS_NAMES,
|
|
7
7
|
});
|
|
8
|
-
var Context$1 = Context;
|
|
9
8
|
|
|
10
|
-
export { Context
|
|
9
|
+
export { Context as default };
|