neko-ui 1.0.43 → 1.0.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/es/tree/style.js +7 -1
- package/lib/tree/style.js +1 -1
- package/package.json +1 -1
package/es/tree/style.js
CHANGED
|
@@ -6,6 +6,9 @@ import{injectGlobal}from"../emotion";import prefixCls from"../prefix-cls";export
|
|
|
6
6
|
}
|
|
7
7
|
.${cls.row} {
|
|
8
8
|
position: relative;
|
|
9
|
+
z-index: 0;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: baseline;
|
|
9
12
|
border-radius: var(--border-radius);
|
|
10
13
|
padding: 2px 10px;
|
|
11
14
|
background-color: var(--component-background, #fff);
|
|
@@ -58,7 +61,7 @@ import{injectGlobal}from"../emotion";import prefixCls from"../prefix-cls";export
|
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
&:first-of-type {
|
|
61
|
-
--r: var(--border-radius) 0 0 var(--border-radius)
|
|
64
|
+
--r: var(--border-radius) 0 0 var(--border-radius);
|
|
62
65
|
|
|
63
66
|
&[data-depth]::after {
|
|
64
67
|
border-width: 1px 0 1px 1px;
|
|
@@ -76,6 +79,9 @@ import{injectGlobal}from"../emotion";import prefixCls from"../prefix-cls";export
|
|
|
76
79
|
.${cls.rtl} {
|
|
77
80
|
direction: rtl;
|
|
78
81
|
.${cls.row} {
|
|
82
|
+
flex-direction: row-reverse;
|
|
83
|
+
justify-content: flex-end;
|
|
84
|
+
|
|
79
85
|
&::before,
|
|
80
86
|
&::after {
|
|
81
87
|
transform: scaleX(-1);
|
package/lib/tree/style.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"cls",{enumerable:true,get:function(){return cls}});var _emotion=require("../emotion");var _prefixCls=_interopRequireDefault(require("../prefix-cls"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0)}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _templateObject(){var data=_taggedTemplateLiteral(["\n ."," {\n padding-inline-start: 2em;\n inline-size: 100%;\n box-sizing: border-box;\n }\n ."," {\n position: relative;\n border-radius: var(--border-radius);\n padding: 2px 10px;\n background-color: var(--component-background, #fff);\n list-style: none;\n box-shadow: 0 0 0 1px var(--border-color);\n margin-inline-start: var(--depth);\n margin-block-end: 8px;\n cursor: pointer;\n box-sizing: border-box;\n min-inline-size: 160px;\n inline-size: fit-content;\n\n /* content-visibility: visible;\n contain-intrinsic-size: 25px; */\n\n &::before,\n &::after {\n position: absolute;\n pointer-events: none;\n z-index: -1;\n inset-inline-start: 0;\n }\n\n &:not(:first-of-type, :last-of-type, [data-depth-end])::before {\n content: '';\n inset-inline-start: -1em;\n inset-block-start: 50%;\n inline-size: 1em;\n block-size: 100%;\n border-block-start: 1px solid var(--border-color);\n box-sizing: border-box;\n }\n\n &[data-depth] {\n --r: 0 0 0 var(--border-radius);\n --c: '';\n\n &::after {\n border-style: solid;\n border-width: 0 0 1px 1px;\n border-color: var(--border-color);\n border-radius: var(--r);\n content: var(--c);\n inline-size: 1em;\n inset-block-start: -8px;\n inset-inline-start: -1em;\n block-size: var(--line);\n box-sizing: border-box;\n }\n }\n\n &:first-of-type {\n --r: var(--border-radius) 0 0 var(--border-radius)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});Object.defineProperty(exports,"cls",{enumerable:true,get:function(){return cls}});var _emotion=require("../emotion");var _prefixCls=_interopRequireDefault(require("../prefix-cls"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0)}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}function _templateObject(){var data=_taggedTemplateLiteral(["\n ."," {\n padding-inline-start: 2em;\n inline-size: 100%;\n box-sizing: border-box;\n }\n ."," {\n position: relative;\n z-index: 0;\n display: flex;\n align-items: baseline;\n border-radius: var(--border-radius);\n padding: 2px 10px;\n background-color: var(--component-background, #fff);\n list-style: none;\n box-shadow: 0 0 0 1px var(--border-color);\n margin-inline-start: var(--depth);\n margin-block-end: 8px;\n cursor: pointer;\n box-sizing: border-box;\n min-inline-size: 160px;\n inline-size: fit-content;\n\n /* content-visibility: visible;\n contain-intrinsic-size: 25px; */\n\n &::before,\n &::after {\n position: absolute;\n pointer-events: none;\n z-index: -1;\n inset-inline-start: 0;\n }\n\n &:not(:first-of-type, :last-of-type, [data-depth-end])::before {\n content: '';\n inset-inline-start: -1em;\n inset-block-start: 50%;\n inline-size: 1em;\n block-size: 100%;\n border-block-start: 1px solid var(--border-color);\n box-sizing: border-box;\n }\n\n &[data-depth] {\n --r: 0 0 0 var(--border-radius);\n --c: '';\n\n &::after {\n border-style: solid;\n border-width: 0 0 1px 1px;\n border-color: var(--border-color);\n border-radius: var(--r);\n content: var(--c);\n inline-size: 1em;\n inset-block-start: -8px;\n inset-inline-start: -1em;\n block-size: var(--line);\n box-sizing: border-box;\n }\n }\n\n &:first-of-type {\n --r: var(--border-radius) 0 0 var(--border-radius);\n\n &[data-depth]::after {\n border-width: 1px 0 1px 1px;\n inset-block-start: 15px;\n }\n }\n\n &:last-of-type {\n margin-block-end: 0;\n }\n }\n ."," {\n direction: ltr;\n }\n ."," {\n direction: rtl;\n ."," {\n flex-direction: row-reverse;\n justify-content: flex-end;\n\n &::before,\n &::after {\n transform: scaleX(-1);\n }\n }\n }\n ."," {\n font-size: 14px;\n font-weight: normal;\n }\n ."," {\n padding: 0 8px;\n font-size: 10px;\n color: var(--text-secondary);\n font-style: italic;\n text-transform: capitalize;\n opacity: 0.5;\n }\n ."," {\n color: var(--primary-color);\n background-color: var(--primary-color-bg);\n box-shadow: 0 0 0 1px var(--primary-color-border);\n text-shadow: 2px 2px 2px var(--primary-color-outline);\n }\n"]);_templateObject=function _templateObject(){return data};return data}var cls={tree:(0,_prefixCls.default)("tree"),row:(0,_prefixCls.default)("tree-row"),children:(0,_prefixCls.default)("tree-children"),title:(0,_prefixCls.default)("tree-title"),subTitle:(0,_prefixCls.default)("tree-sub-title"),active:(0,_prefixCls.default)("tree-active"),ltr:(0,_prefixCls.default)("tree-ltr"),rtl:(0,_prefixCls.default)("tree-rtl")};(0,_emotion.injectGlobal)(_templateObject(),cls.tree,cls.row,cls.ltr,cls.rtl,cls.row,cls.title,cls.subTitle,cls.active);
|