@particle-network/ui-react 0.1.4-beta.6 → 0.1.4-beta.7
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.
|
@@ -3,13 +3,25 @@ import "react";
|
|
|
3
3
|
import { DateRangePicker } from "@heroui/date-picker";
|
|
4
4
|
import { CalendarIcon } from "../../icons/index.js";
|
|
5
5
|
import { calendarClassNames } from "../UXCalendar/index.js";
|
|
6
|
+
const classes = {
|
|
7
|
+
inputWrapper: 'bg-background-200 h-[30px] min-h-[30px] rounded-small',
|
|
8
|
+
focus: 'focus:bg-primary/30 focus:shadow-none focus:outline-none'
|
|
9
|
+
};
|
|
6
10
|
const UXDateRangePicker = ({ classNames, ...props })=>/*#__PURE__*/ jsx(DateRangePicker, {
|
|
7
11
|
classNames: {
|
|
8
|
-
inputWrapper:
|
|
9
|
-
input:
|
|
10
|
-
|
|
12
|
+
inputWrapper: classes.inputWrapper,
|
|
13
|
+
input: [
|
|
14
|
+
'gap-px',
|
|
15
|
+
classes.focus
|
|
16
|
+
],
|
|
17
|
+
segment: [
|
|
18
|
+
'text-foreground text-xs font-medium',
|
|
19
|
+
classes.focus
|
|
20
|
+
],
|
|
11
21
|
separator: 'text-foreground-100',
|
|
12
22
|
timeInputWrapper: 'bg-content1',
|
|
23
|
+
timeInput: classes.focus,
|
|
24
|
+
selectorButton: 'w-6 h-6 min-w-6 rounded-sm',
|
|
13
25
|
...classNames
|
|
14
26
|
},
|
|
15
27
|
calendarProps: {
|
|
@@ -21,8 +33,17 @@ const UXDateRangePicker = ({ classNames, ...props })=>/*#__PURE__*/ jsx(DateRang
|
|
|
21
33
|
content: 'bg-content1 text-foreground-300 shadow-box'
|
|
22
34
|
}
|
|
23
35
|
},
|
|
36
|
+
timeInputProps: {
|
|
37
|
+
classNames: {
|
|
38
|
+
base: [
|
|
39
|
+
'[&>[data-slot="input-wrapper"]]:h-[30px] [&>[data-slot="input-wrapper"]]:min-h-[30px] [&>[data-slot="input-wrapper"]]:rounded-small [&>[data-slot="input-wrapper"]]:bg-background-200',
|
|
40
|
+
'[&_[data-slot=segment]:focus]:bg-primary/30 [&_[data-slot=segment]:focus]:shadow-none [&_[data-slot=segment]:focus]:outline-none'
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
24
44
|
selectorIcon: /*#__PURE__*/ jsx(CalendarIcon, {
|
|
25
|
-
size: 18
|
|
45
|
+
size: 18,
|
|
46
|
+
color: "tertiary"
|
|
26
47
|
}),
|
|
27
48
|
granularity: "second",
|
|
28
49
|
visibleMonths: 2,
|
|
@@ -4,25 +4,25 @@ const tabsClasses = {
|
|
|
4
4
|
variant: {
|
|
5
5
|
solid: {
|
|
6
6
|
tabList: 'gap-0 bg-background-400',
|
|
7
|
-
tab: 'py-0',
|
|
7
|
+
tab: 'py-0 !outline-none',
|
|
8
8
|
cursor: 'shadow-none inset-0',
|
|
9
9
|
tabContent: 'text-foreground-300 font-medium'
|
|
10
10
|
},
|
|
11
11
|
switch: {
|
|
12
12
|
tabList: 'p-0 gap-0 bg-background-200',
|
|
13
|
-
tab: 'py-0',
|
|
13
|
+
tab: 'py-0 !outline-none',
|
|
14
14
|
cursor: 'shadow-none inset-0',
|
|
15
15
|
tabContent: 'text-foreground-300 font-medium'
|
|
16
16
|
},
|
|
17
17
|
light: {
|
|
18
18
|
tabList: 'p-0 gap-md rounded-none bg-transparent dark:bg-transparent',
|
|
19
|
-
tab: 'py-0 h-full',
|
|
19
|
+
tab: 'py-0 h-full !outline-none',
|
|
20
20
|
cursor: 'shadow-none',
|
|
21
21
|
tabContent: 'text-foreground-300 font-medium'
|
|
22
22
|
},
|
|
23
23
|
text: {
|
|
24
24
|
tabList: 'p-0 rounded-none bg-transparent dark:bg-transparent',
|
|
25
|
-
tab: 'font-medium p-0 h-fit rounded-none',
|
|
25
|
+
tab: 'font-medium p-0 h-fit rounded-none !outline-none',
|
|
26
26
|
tabContent: 'text-foreground-300 font-medium',
|
|
27
27
|
cursor: 'hidden'
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-react",
|
|
3
|
-
"version": "0.1.4-beta.
|
|
3
|
+
"version": "0.1.4-beta.7",
|
|
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/
|
|
43
|
-
"@particle-network/
|
|
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",
|