@lobehub/ui 3.4.1 → 3.4.2
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/es/Flex/FlexBasic.d.ts
CHANGED
package/es/Flex/FlexBasic.js
CHANGED
|
@@ -10,7 +10,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
12
|
import { memo } from 'react';
|
|
13
|
-
import "./style.css";
|
|
14
13
|
import { getCssValue, getFlexDirection, isHorizontal, isSpaceDistribution } from "./utils";
|
|
15
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
15
|
var FlexBasic = function FlexBasic(_ref) {
|
|
@@ -2,5 +2,5 @@ var _templateObject;
|
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
3
|
import { css } from 'antd-style';
|
|
4
4
|
export default (function (token) {
|
|
5
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :root {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n\n text-autospace: normal;\n }\n\n html {\n overscroll-behavior: none;\n color-scheme: ", ";\n }\n\n body {\n overflow: hidden auto;\n\n min-height: 100vh;\n margin: 0;\n padding: 0;\n\n font-family: ", ";\n font-size: ", "px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1;\n color: ", ";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n word-wrap: break-word;\n vertical-align: baseline;\n\n background-color: ", ";\n\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n code {\n font-family: ", " !important;\n\n span {\n font-family: ", " !important;\n }\n }\n\n ::selection {\n color: #000;\n background: ", ";\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n scrollbar-color: ", " transparent;\n scrollbar-width: thin;\n box-sizing: border-box;\n vertical-align: baseline;\n }\n"])), token.isDarkMode ? 'dark' : 'light', token.fontFamily, token.fontSize, token.colorTextBase, token.colorBgLayout, token.fontFamilyCode, token.fontFamilyCode, token.yellow9, token.colorFill);
|
|
5
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :root {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n\n text-autospace: normal;\n }\n\n html {\n overscroll-behavior: none;\n color-scheme: ", ";\n }\n\n body {\n overflow: hidden auto;\n\n min-height: 100vh;\n margin: 0;\n padding: 0;\n\n font-family: ", ";\n font-size: ", "px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1;\n color: ", ";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n word-wrap: break-word;\n vertical-align: baseline;\n\n background-color: ", ";\n\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n code {\n font-family: ", " !important;\n\n span {\n font-family: ", " !important;\n }\n }\n\n ::selection {\n color: #000;\n background: ", ";\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n scrollbar-color: ", " transparent;\n scrollbar-width: thin;\n box-sizing: border-box;\n vertical-align: baseline;\n }\n\n @layer lobe-base {\n :where(.lobe-flex) {\n /* Define defaults on the element itself to avoid CSS variable inheritance leaking to nested Flex */\n --lobe-flex: 0 1 auto;\n --lobe-flex-direction: column;\n --lobe-flex-wrap: nowrap;\n --lobe-flex-justify: flex-start;\n --lobe-flex-align: stretch;\n --lobe-flex-width: auto;\n --lobe-flex-height: auto;\n --lobe-flex-padding: 0;\n /* Keep padding-inline/block aligned with padding by default, and prevent inheriting from parent */\n --lobe-flex-padding-inline: var(--lobe-flex-padding);\n --lobe-flex-padding-block: var(--lobe-flex-padding);\n --lobe-flex-gap: 0;\n\n display: flex;\n\n flex: var(--lobe-flex);\n flex-direction: var(--lobe-flex-direction);\n flex-wrap: var(--lobe-flex-wrap);\n justify-content: var(--lobe-flex-justify);\n align-items: var(--lobe-flex-align);\n\n width: var(--lobe-flex-width);\n height: var(--lobe-flex-height);\n\n padding: var(--lobe-flex-padding);\n padding-inline: var(--lobe-flex-padding-inline);\n padding-block: var(--lobe-flex-padding-block);\n\n gap: var(--lobe-flex-gap);\n }\n\n .lobe-flex--hidden {\n display: none;\n }\n }\n"])), token.isDarkMode ? 'dark' : 'light', token.fontFamily, token.fontSize, token.colorTextBase, token.colorBgLayout, token.fontFamilyCode, token.fontFamilyCode, token.yellow9, token.colorFill);
|
|
6
6
|
});
|
package/package.json
CHANGED
package/es/Flex/style.css
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
.lobe-flex {
|
|
2
|
-
/* Define defaults on the element itself to avoid CSS variable inheritance leaking to nested Flex */
|
|
3
|
-
--lobe-flex: 0 1 auto;
|
|
4
|
-
--lobe-flex-direction: column;
|
|
5
|
-
--lobe-flex-wrap: nowrap;
|
|
6
|
-
--lobe-flex-justify: flex-start;
|
|
7
|
-
--lobe-flex-align: stretch;
|
|
8
|
-
--lobe-flex-width: auto;
|
|
9
|
-
--lobe-flex-height: auto;
|
|
10
|
-
--lobe-flex-padding: 0;
|
|
11
|
-
/* Keep padding-inline/block aligned with padding by default, and prevent inheriting from parent */
|
|
12
|
-
--lobe-flex-padding-inline: var(--lobe-flex-padding);
|
|
13
|
-
--lobe-flex-padding-block: var(--lobe-flex-padding);
|
|
14
|
-
--lobe-flex-gap: 0;
|
|
15
|
-
|
|
16
|
-
display: flex;
|
|
17
|
-
|
|
18
|
-
flex: var(--lobe-flex);
|
|
19
|
-
flex-direction: var(--lobe-flex-direction);
|
|
20
|
-
flex-wrap: var(--lobe-flex-wrap);
|
|
21
|
-
justify-content: var(--lobe-flex-justify);
|
|
22
|
-
align-items: var(--lobe-flex-align);
|
|
23
|
-
|
|
24
|
-
width: var(--lobe-flex-width);
|
|
25
|
-
height: var(--lobe-flex-height);
|
|
26
|
-
|
|
27
|
-
padding: var(--lobe-flex-padding);
|
|
28
|
-
padding-inline: var(--lobe-flex-padding-inline);
|
|
29
|
-
padding-block: var(--lobe-flex-padding-block);
|
|
30
|
-
|
|
31
|
-
gap: var(--lobe-flex-gap);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.lobe-flex--hidden {
|
|
35
|
-
display: none;
|
|
36
|
-
}
|