myshell-react-lib 0.1.4 → 0.1.6
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/index.cjs +52 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
- package/src/common/assets/audio-playing.json +0 -3657
- package/src/common/constants/constants.ts +0 -24
- package/src/common/constants/types/common.ts +0 -10
- package/src/common/hooks/useAudioPlayer.tsx +0 -198
- package/src/common/hooks/useDevice.ts +0 -26
- package/src/common/hooks/useNativeBridge.ts +0 -42
- package/src/common/hooks/useNotification.tsx +0 -179
- package/src/common/hooks/useWindowWidth.ts +0 -19
- package/src/common/utils/common-helper.ts +0 -81
- package/src/components/ItemDemo.tsx +0 -15
- package/src/components/accordion.tsx +0 -126
- package/src/components/alert-dialog.tsx +0 -148
- package/src/components/alert.tsx +0 -65
- package/src/components/aspect-ratio.tsx +0 -7
- package/src/components/audio-player.tsx +0 -60
- package/src/components/audio-playing.tsx +0 -33
- package/src/components/avatar.tsx +0 -133
- package/src/components/badge.tsx +0 -67
- package/src/components/button/button.styles.ts +0 -258
- package/src/components/button/button.tsx +0 -215
- package/src/components/button/icon-button.styles.ts +0 -101
- package/src/components/button/icon-button.tsx +0 -100
- package/src/components/button/index.tsx +0 -3
- package/src/components/button/link-button.tsx +0 -184
- package/src/components/cascader.tsx +0 -175
- package/src/components/checkbox.tsx +0 -135
- package/src/components/command.tsx +0 -155
- package/src/components/context-menu.tsx +0 -198
- package/src/components/count-down.tsx +0 -83
- package/src/components/custom-notification.tsx +0 -95
- package/src/components/dialog.tsx +0 -158
- package/src/components/drawer.tsx +0 -116
- package/src/components/dropdown-menu.tsx +0 -196
- package/src/components/energy-progress.tsx +0 -55
- package/src/components/form.tsx +0 -201
- package/src/components/group.tsx +0 -9
- package/src/components/guide.tsx +0 -243
- package/src/components/icon.tsx +0 -96
- package/src/components/icons/index.tsx +0 -13
- package/src/components/icons/outline/ArrowLeftIcon.tsx +0 -28
- package/src/components/icons/outline/ArrowUpTrayIcon.tsx +0 -28
- package/src/components/icons/outline/CheckCircleIcon.tsx +0 -27
- package/src/components/icons/outline/ConfigIcon.tsx +0 -42
- package/src/components/icons/outline/DownIcon.tsx +0 -18
- package/src/components/icons/outline/FilterIcon.tsx +0 -20
- package/src/components/icons/outline/PencilSquareIcon.tsx +0 -28
- package/src/components/icons/outline/WindowIcon.tsx +0 -26
- package/src/components/icons/solid/CaretDownIcon.tsx +0 -22
- package/src/components/icons/solid/CodeIcon.tsx +0 -25
- package/src/components/icons/solid/DragIcon.tsx +0 -24
- package/src/components/icons/solid/PhoneIcon.tsx +0 -29
- package/src/components/icons/solid/RectangleGroupIcon.tsx +0 -26
- package/src/components/image.tsx +0 -151
- package/src/components/input.tsx +0 -118
- package/src/components/label.tsx +0 -26
- package/src/components/link.tsx +0 -123
- package/src/components/marquee/index.css +0 -15
- package/src/components/marquee/marquee.tsx +0 -220
- package/src/components/masonry.tsx +0 -138
- package/src/components/menubar.tsx +0 -234
- package/src/components/mobile/m-tooltip.tsx +0 -34
- package/src/components/modal.tsx +0 -561
- package/src/components/navigation-bar.tsx +0 -100
- package/src/components/number-input.tsx +0 -143
- package/src/components/page-content.tsx +0 -16
- package/src/components/popover.tsx +0 -191
- package/src/components/progress.tsx +0 -80
- package/src/components/radio-group.tsx +0 -44
- package/src/components/scroll-area.tsx +0 -49
- package/src/components/search-bar.tsx +0 -140
- package/src/components/secondary-navigation-bar.tsx +0 -328
- package/src/components/select.tsx +0 -273
- package/src/components/separator.tsx +0 -31
- package/src/components/sheet.tsx +0 -143
- package/src/components/skeleton.tsx +0 -20
- package/src/components/slider.tsx +0 -160
- package/src/components/spinner.tsx +0 -50
- package/src/components/swiper/index.module.scss +0 -88
- package/src/components/swiper/index.tsx +0 -319
- package/src/components/switch.tsx +0 -67
- package/src/components/tabs.tsx +0 -325
- package/src/components/textarea.tsx +0 -71
- package/src/components/toast/toast.tsx +0 -182
- package/src/components/toast/toaster.tsx +0 -160
- package/src/components/toast/use-toast.tsx +0 -248
- package/src/components/toggle-group.tsx +0 -64
- package/src/components/toggle.tsx +0 -46
- package/src/components/tooltip.tsx +0 -283
- package/src/components/typography.tsx +0 -437
- package/src/index.ts +0 -70
- package/src/lib/utils.ts +0 -62
- package/src/stories/Accordion.stories.tsx +0 -64
- package/src/stories/AccordionItem.stories.tsx +0 -48
- package/src/stories/Avatar.stories.ts +0 -58
- package/src/stories/Badge.stories.tsx +0 -40
- package/src/stories/BannerSwiper.stories.tsx +0 -102
- package/src/stories/Button.stories.tsx +0 -543
- package/src/stories/Checkbox.stories.tsx +0 -161
- package/src/stories/Configure.mdx +0 -341
- package/src/stories/CssProperties.mdx +0 -30
- package/src/stories/Description.stories.ts +0 -70
- package/src/stories/Display.stories.ts +0 -64
- package/src/stories/FeaturedSwiper.stories.tsx +0 -6978
- package/src/stories/GridSwiper.stories.tsx +0 -1407
- package/src/stories/Guide.stories.tsx +0 -247
- package/src/stories/Heading.stories.ts +0 -89
- package/src/stories/Icon.stories.ts +0 -77
- package/src/stories/IconButton.stories.tsx +0 -301
- package/src/stories/IconTextButton.stories.ts +0 -59
- package/src/stories/Image.stories.ts +0 -55
- package/src/stories/Input.stories.tsx +0 -203
- package/src/stories/Modal.stories.tsx +0 -144
- package/src/stories/NavigationBar.stories.tsx +0 -81
- package/src/stories/Notification.stories.tsx +0 -276
- package/src/stories/Popover.stories.tsx +0 -100
- package/src/stories/SearchBar.stories.ts +0 -43
- package/src/stories/SecondaryNavigationBar.stories.tsx +0 -199
- package/src/stories/Select.stories.tsx +0 -107
- package/src/stories/Separator.stories.tsx +0 -49
- package/src/stories/Spinner.stories.tsx +0 -48
- package/src/stories/SubHeading.stories.ts +0 -64
- package/src/stories/Swich.stories.tsx +0 -69
- package/src/stories/Tabs.stories.tsx +0 -90
- package/src/stories/Text.stories.ts +0 -78
- package/src/stories/Textarea.stories.tsx +0 -155
- package/src/stories/Toast.stories.tsx +0 -424
- package/src/stories/Tooltip.stories.tsx +0 -244
- package/src/stories/ViewAutoSwiper.stories.tsx +0 -1408
- package/src/styles/components-dark.scss +0 -212
- package/src/styles/components-light.scss +0 -210
- package/src/styles/design-dark.scss +0 -330
- package/src/styles/design-light.scss +0 -345
- package/src/styles/design2-dark.scss +0 -319
- package/src/styles/design2-light.scss +0 -364
- package/src/styles/font.css +0 -19
- package/src/styles/global.scss +0 -251
- package/src/styles/md-viewer.scss +0 -155
- package/src/styles/new-tokens.scss +0 -255
- package/src/styles/tokens.scss +0 -401
- package/src/types/scss.d.ts +0 -24
package/dist/index.cjs
CHANGED
|
@@ -93,6 +93,47 @@ function _instanceof(left, right) {
|
|
|
93
93
|
return left instanceof right;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
97
|
+
if (typeof WeakMap !== "function") return null;
|
|
98
|
+
var cacheBabelInterop = new WeakMap();
|
|
99
|
+
var cacheNodeInterop = new WeakMap();
|
|
100
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
101
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
102
|
+
})(nodeInterop);
|
|
103
|
+
}
|
|
104
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
105
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
106
|
+
return obj;
|
|
107
|
+
}
|
|
108
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
109
|
+
return {
|
|
110
|
+
default: obj
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
114
|
+
if (cache && cache.has(obj)) {
|
|
115
|
+
return cache.get(obj);
|
|
116
|
+
}
|
|
117
|
+
var newObj = {
|
|
118
|
+
__proto__: null
|
|
119
|
+
};
|
|
120
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
121
|
+
for(var key in obj){
|
|
122
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
123
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
124
|
+
if (desc && (desc.get || desc.set)) {
|
|
125
|
+
Object.defineProperty(newObj, key, desc);
|
|
126
|
+
} else {
|
|
127
|
+
newObj[key] = obj[key];
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
newObj.default = obj;
|
|
132
|
+
if (cache) {
|
|
133
|
+
cache.set(obj, newObj);
|
|
134
|
+
}
|
|
135
|
+
return newObj;
|
|
136
|
+
}
|
|
96
137
|
function _iterable_to_array(iter) {
|
|
97
138
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
98
139
|
}
|
|
@@ -5397,8 +5438,15 @@ function isString(str) {
|
|
|
5397
5438
|
}
|
|
5398
5439
|
// src/components/image.tsx
|
|
5399
5440
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
5400
|
-
var
|
|
5441
|
+
var import_dynamic = __toESM(require("next/dynamic"), 1);
|
|
5401
5442
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
5443
|
+
var RCImage = (0, import_dynamic.default)(function() {
|
|
5444
|
+
return Promise.resolve().then(function() {
|
|
5445
|
+
return /*#__PURE__*/ _interop_require_wildcard(require("rc-image"));
|
|
5446
|
+
});
|
|
5447
|
+
}, {
|
|
5448
|
+
ssr: false
|
|
5449
|
+
});
|
|
5402
5450
|
var imageVariants = (0, import_class_variance_authority4.cva)("", {
|
|
5403
5451
|
variants: {
|
|
5404
5452
|
rounded: {
|
|
@@ -5439,7 +5487,7 @@ function Image2(_param) {
|
|
|
5439
5487
|
"fetchPriority",
|
|
5440
5488
|
"loading"
|
|
5441
5489
|
]);
|
|
5442
|
-
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
5490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(RCImage, _object_spread({
|
|
5443
5491
|
fetchPriority: fetchPriority,
|
|
5444
5492
|
placeholder: placeholder,
|
|
5445
5493
|
width: width,
|
|
@@ -6387,7 +6435,8 @@ var iconButtonVariants = (0, import_class_variance_authority6.cva)("shrink-0 inl
|
|
|
6387
6435
|
tertiary: "border shadow-none",
|
|
6388
6436
|
plain: "",
|
|
6389
6437
|
opacity: "text-Colors-Text-Static-White bg-Colors-Beta-White-30 border border-Colors-Beta-White-12 shadow-none hover:bg-Colors-Beta-White-40 focus:shadow-cc-Focus-Rings-Brand-default active:bg-Colors-Beta-White-50 disabled:bg-Colors-Beta-White-60 disabled:text-Colors-Beta-White-80",
|
|
6390
|
-
solid: "shadow-none text-Colors-Text-Subtle bg-cc-Button-Solid-bg-default border border-cc-Button-Solid-border-default hover:bg-cc-Button-Solid-bg-hover hover:border-cc-Button-Solid-border-alt active:bg-cc-Button-Solid-bg-active disabled:text-cc-Button-Solid-fg-alt"
|
|
6438
|
+
solid: "shadow-none text-Colors-Text-Subtle bg-cc-Button-Solid-bg-default border border-cc-Button-Solid-border-default hover:bg-cc-Button-Solid-bg-hover hover:border-cc-Button-Solid-border-alt active:bg-cc-Button-Solid-bg-active disabled:text-cc-Button-Solid-fg-alt",
|
|
6439
|
+
static: "text-cc-Button-Static-fg-default border-cc-Button-Static-border-default bg-cc-Button-Static-bg-default hover:bg-cc-Button-Static-bg-hover active:bg-cc-Button-Static-bg-active disabled:bg-cc-Button-Static-bg-disabled disabled:text-cc-Button-Static-fg-alt"
|
|
6391
6440
|
},
|
|
6392
6441
|
color: {
|
|
6393
6442
|
default: "",
|