elseware-ui 3.0.7 → 3.0.9
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.css +382 -61
- package/dist/index.css.map +1 -1
- package/dist/index.js +31 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -16
- package/dist/index.mjs.map +1 -1
- package/dist/index.native.js +16 -13
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +16 -13
- package/dist/index.native.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6415,9 +6415,21 @@ function Button({
|
|
|
6415
6415
|
}
|
|
6416
6416
|
var Button_web_default = Button;
|
|
6417
6417
|
|
|
6418
|
+
// src/data/styles/shared.styles.tsx
|
|
6419
|
+
var inputShapes = shapes;
|
|
6420
|
+
var inputInlineInsetClassName = "left-3";
|
|
6421
|
+
var inputInlinePaddingXClassName = "px-3";
|
|
6422
|
+
var inputRootClassName = "relative w-full";
|
|
6423
|
+
var inputFrameClassName = `relative h-14 w-full overflow-hidden border bg-white/95 ${inputInlinePaddingXClassName} dark:bg-eui-primary-300/10`;
|
|
6424
|
+
var inputFrameIdleClassName = "border-gray-300 hover:border-gray-400 dark:border-eui-dark-300 dark:hover:border-eui-dark-200";
|
|
6425
|
+
var inputFrameActiveClassName = "border-eui-secondary-600";
|
|
6426
|
+
var inputFrameErrorClassName = "border-eui-danger-500";
|
|
6427
|
+
var inputFrameDisabledClassName = "cursor-not-allowed opacity-60";
|
|
6428
|
+
var inputControlClassName = "w-full bg-transparent pt-5 pb-2 text-base font-normal text-gray-950 dark:text-gray-300";
|
|
6429
|
+
|
|
6418
6430
|
// src/components/data-entry/input/input-label/base/InputLabel.styles.ts
|
|
6419
6431
|
var inputLabelStaticClassName = "pointer-events-none select-none px-0 text-[13.5px] leading-none text-[#6B7280]";
|
|
6420
|
-
var inputLabelBaseClassName =
|
|
6432
|
+
var inputLabelBaseClassName = `pointer-events-none absolute ${inputInlineInsetClassName} z-10 select-none bg-transparent px-0 font-medium leading-none`;
|
|
6421
6433
|
var inputLabelTransitionClassName = "transition-all duration-200 ease-out";
|
|
6422
6434
|
var inputLabelRestingClassName = "top-[18px] translate-y-0 text-base leading-none text-[#6B7280]";
|
|
6423
6435
|
var inputLabelFloatingClassName = "top-1.5 translate-y-0 text-xs leading-none text-[#6B7280]";
|
|
@@ -7223,7 +7235,7 @@ var Transition = {
|
|
|
7223
7235
|
};
|
|
7224
7236
|
|
|
7225
7237
|
// src/components/data-entry/input/input-response/base/InputResponse.styles.ts
|
|
7226
|
-
var inputResponseBaseClassName =
|
|
7238
|
+
var inputResponseBaseClassName = `${inputInlinePaddingXClassName} pt-1.5 text-sm font-medium`;
|
|
7227
7239
|
var inputResponseVariants = textVariants;
|
|
7228
7240
|
function InputResponse({
|
|
7229
7241
|
name: name2,
|
|
@@ -7272,16 +7284,6 @@ function useInputFieldState(props) {
|
|
|
7272
7284
|
};
|
|
7273
7285
|
}
|
|
7274
7286
|
|
|
7275
|
-
// src/data/styles/shared.styles.tsx
|
|
7276
|
-
var inputShapes = shapes;
|
|
7277
|
-
var inputRootClassName = "relative w-full";
|
|
7278
|
-
var inputFrameClassName = "relative h-14 w-full overflow-hidden border bg-white/95 px-3 dark:bg-eui-primary-300/10";
|
|
7279
|
-
var inputFrameIdleClassName = "border-gray-300 hover:border-gray-400 dark:border-eui-dark-300 dark:hover:border-eui-dark-200";
|
|
7280
|
-
var inputFrameActiveClassName = "border-eui-secondary-600";
|
|
7281
|
-
var inputFrameErrorClassName = "border-eui-danger-500";
|
|
7282
|
-
var inputFrameDisabledClassName = "cursor-not-allowed opacity-60";
|
|
7283
|
-
var inputControlClassName = "w-full bg-transparent pt-5 pb-2 text-base font-medium text-gray-950 dark:text-gray-50";
|
|
7284
|
-
|
|
7285
7287
|
// src/components/data-entry/input/input/web/Input.web.styles.ts
|
|
7286
7288
|
var webInputControlClassName = "placeholder-transparent outline-none transition-all duration-200 ease-out";
|
|
7287
7289
|
var webPasswordToggleClassName = "absolute right-3 top-[18px] cursor-pointer text-xl text-eui-dark-200 transition-colors duration-180 hover:text-eui-secondary-700";
|
|
@@ -58149,9 +58151,14 @@ function createDefaultPlugins({
|
|
|
58149
58151
|
defaultCodeBlockLanguage,
|
|
58150
58152
|
codeMirrorOptions,
|
|
58151
58153
|
imageOptions,
|
|
58152
|
-
linkDialogOptions
|
|
58154
|
+
linkDialogOptions,
|
|
58155
|
+
dark
|
|
58153
58156
|
}) {
|
|
58154
58157
|
const codeBlockLanguages = codeMirrorOptions?.codeBlockLanguages ?? DEFAULT_CODE_BLOCK_LANGUAGES;
|
|
58158
|
+
const codeMirrorExtensions = [
|
|
58159
|
+
...dark ? [oneDark] : [],
|
|
58160
|
+
...codeMirrorOptions?.codeMirrorExtensions ?? []
|
|
58161
|
+
];
|
|
58155
58162
|
return [
|
|
58156
58163
|
headingsPlugin(),
|
|
58157
58164
|
listsPlugin(),
|
|
@@ -58167,7 +58174,8 @@ function createDefaultPlugins({
|
|
|
58167
58174
|
}),
|
|
58168
58175
|
codeMirrorPlugin({
|
|
58169
58176
|
...codeMirrorOptions,
|
|
58170
|
-
codeBlockLanguages
|
|
58177
|
+
codeBlockLanguages,
|
|
58178
|
+
...codeMirrorExtensions.length > 0 ? { codeMirrorExtensions } : {}
|
|
58171
58179
|
}),
|
|
58172
58180
|
...showToolbar ? [
|
|
58173
58181
|
toolbarPlugin({
|
|
@@ -58225,11 +58233,13 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
58225
58233
|
defaultCodeBlockLanguage,
|
|
58226
58234
|
codeMirrorOptions,
|
|
58227
58235
|
imageOptions,
|
|
58228
|
-
linkDialogOptions
|
|
58236
|
+
linkDialogOptions,
|
|
58237
|
+
dark
|
|
58229
58238
|
}),
|
|
58230
58239
|
[
|
|
58231
58240
|
codeMirrorOptions,
|
|
58232
58241
|
defaultCodeBlockLanguage,
|
|
58242
|
+
dark,
|
|
58233
58243
|
imageOptions,
|
|
58234
58244
|
linkDialogOptions,
|
|
58235
58245
|
showToolbar,
|
|
@@ -58288,6 +58298,7 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
58288
58298
|
"aria-readonly": readOnly || void 0,
|
|
58289
58299
|
"aria-required": required || void 0,
|
|
58290
58300
|
"aria-invalid": invalid || void 0,
|
|
58301
|
+
"data-theme": dark ? "dark" : void 0,
|
|
58291
58302
|
onBlurCapture: handleBlur,
|
|
58292
58303
|
className: classNames69(
|
|
58293
58304
|
"eui-markdown-adapter",
|
|
@@ -58307,7 +58318,11 @@ var MDXMarkdownEditor = forwardRef(
|
|
|
58307
58318
|
markdown: currentValue ?? "",
|
|
58308
58319
|
readOnly: disabled || readOnly,
|
|
58309
58320
|
plugins: plugins ?? defaultPlugins,
|
|
58310
|
-
className: classNames69(
|
|
58321
|
+
className: classNames69(
|
|
58322
|
+
"eui-markdown-mdx-editor",
|
|
58323
|
+
dark && ["dark", "dark-theme"],
|
|
58324
|
+
editorClassName
|
|
58325
|
+
),
|
|
58311
58326
|
contentEditableClassName: classNames69(
|
|
58312
58327
|
"eui-markdown-mdx-content",
|
|
58313
58328
|
contentEditableClassName
|