@particle-network/ui-react 0.1.3-beta.6 → 0.1.3
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/UXDropdown/dropdown.js +1 -1
- package/dist/components/UXHint/index.js +1 -1
- package/dist/components/UXModal/index.js +6 -3
- package/dist/components/UXPopover/popover.extend.js +2 -2
- package/dist/components/UXTooltip/tooltip.extend.js +2 -2
- package/package.json +4 -4
- package/tailwind-preset.js +7 -3
|
@@ -8,7 +8,7 @@ const UXDropdown = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
8
8
|
ref: ref,
|
|
9
9
|
classNames: {
|
|
10
10
|
content: [
|
|
11
|
-
'text-tiny p-2.5 text-foreground-300 rounded-medium no-scrollbar',
|
|
11
|
+
'text-tiny p-2.5 text-foreground-300 rounded-medium no-scrollbar shadow-box',
|
|
12
12
|
content
|
|
13
13
|
],
|
|
14
14
|
...restClassNames
|
|
@@ -4,7 +4,7 @@ import { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader } from "@herou
|
|
|
4
4
|
import { Center, Circle, Flex, Text, UXButton } from "../index.js";
|
|
5
5
|
import { CloseIcon } from "../../icons/index.js";
|
|
6
6
|
const UXModal = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
7
|
-
const { title, footer, backdrop
|
|
7
|
+
const { title, footer, backdrop, scrollBehavior = 'inside', children, titleAlign = 'left', classNames, tip, ...restProps } = props;
|
|
8
8
|
return /*#__PURE__*/ jsx(Modal, {
|
|
9
9
|
ref: ref,
|
|
10
10
|
backdrop: backdrop,
|
|
@@ -15,12 +15,15 @@ const UXModal = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
15
15
|
classNames?.wrapper
|
|
16
16
|
],
|
|
17
17
|
base: [
|
|
18
|
-
'py-6 gap-5',
|
|
18
|
+
'py-6 gap-5 shadow-box',
|
|
19
19
|
'max-h-[calc(100vh-48px)] max-md:m-0 max-md:rounded-b-none',
|
|
20
20
|
'md:max-h-[750px]',
|
|
21
21
|
classNames?.base
|
|
22
22
|
],
|
|
23
|
-
backdrop:
|
|
23
|
+
backdrop: [
|
|
24
|
+
'backdrop-blur-[1px] bg-black/50 dark:bg-black/70',
|
|
25
|
+
classNames?.backdrop
|
|
26
|
+
],
|
|
24
27
|
header: [
|
|
25
28
|
'px-lg py-0 max-md:text-h3',
|
|
26
29
|
'md:px-6 md:text-h2',
|
|
@@ -9,8 +9,8 @@ const ExtendedPopover = extendVariants(Popover, {
|
|
|
9
9
|
},
|
|
10
10
|
color: {
|
|
11
11
|
default: {
|
|
12
|
-
base: 'before:bg-content1 before:shadow-
|
|
13
|
-
content: 'bg-content1 text-foreground-300'
|
|
12
|
+
base: 'before:bg-content1 before:shadow-box',
|
|
13
|
+
content: 'bg-content1 text-foreground-300 shadow-box'
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -9,8 +9,8 @@ const ExtendedTooltip = extendVariants(Tooltip, {
|
|
|
9
9
|
},
|
|
10
10
|
color: {
|
|
11
11
|
default: {
|
|
12
|
-
base: 'before:bg-content1 before:shadow-
|
|
13
|
-
content: 'bg-content1 text-foreground-300'
|
|
12
|
+
base: 'before:bg-content1 before:shadow-box',
|
|
13
|
+
content: 'bg-content1 text-foreground-300 shadow-box'
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-react",
|
|
3
|
-
"version": "0.1.3
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@types/react": "^19.1.10",
|
|
40
40
|
"react": "^19.1.0",
|
|
41
41
|
"typescript": "^5.8.3",
|
|
42
|
-
"@particle-network/lintstaged-config": "0.
|
|
43
|
-
"@particle-network/eslint-config": "0.
|
|
42
|
+
"@particle-network/lintstaged-config": "0.1.0",
|
|
43
|
+
"@particle-network/eslint-config": "0.3.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": ">=16.9.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"ahooks": "^3.9.4",
|
|
51
|
-
"@particle-network/ui-shared": "0.1.1
|
|
51
|
+
"@particle-network/ui-shared": "0.1.1"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "rslib build",
|
package/tailwind-preset.js
CHANGED
|
@@ -18,9 +18,6 @@ module.exports = {
|
|
|
18
18
|
md: '0.625rem', // 10px
|
|
19
19
|
lg: '0.875rem', // 14px
|
|
20
20
|
},
|
|
21
|
-
boxShadow: {
|
|
22
|
-
box: '2px 2px 12px rgba(139, 142, 161, 0.15)',
|
|
23
|
-
},
|
|
24
21
|
animation: {
|
|
25
22
|
blink: 'blink 1s infinite',
|
|
26
23
|
'sprite-refresh': 'sprite-refresh 5s steps(270)',
|
|
@@ -289,6 +286,13 @@ module.exports = {
|
|
|
289
286
|
display: 'none',
|
|
290
287
|
},
|
|
291
288
|
},
|
|
289
|
+
// shadow styles
|
|
290
|
+
'.shadow-box': {
|
|
291
|
+
boxShadow: '0px 2px 12px 0px rgba(23, 23, 28, 0.15)',
|
|
292
|
+
},
|
|
293
|
+
'.dark .shadow-box': {
|
|
294
|
+
boxShadow: '0px 2px 12px 0px rgba(0, 0, 0, 0.5)',
|
|
295
|
+
},
|
|
292
296
|
});
|
|
293
297
|
}),
|
|
294
298
|
],
|