@particle-network/ui-react 0.4.0-beta.3 → 0.4.0-beta.31
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/ProgressWrapper/index.d.ts +1 -1
- package/dist/components/ProgressWrapper/index.js +18 -3
- package/dist/components/UXAutocomplete/index.d.ts +5 -0
- package/dist/components/UXAutocomplete/index.js +72 -0
- package/dist/components/UXButton/button-theme.js +15 -23
- package/dist/components/UXButton/use-button.js +2 -1
- package/dist/components/UXCheckbox/checkbox.extend.js +3 -3
- package/dist/components/UXDatePicker/index.js +1 -1
- package/dist/components/UXDateRangePicker/index.js +1 -1
- package/dist/components/UXDivider/divider.extend.d.ts +2 -2
- package/dist/components/UXDrawer/index.d.ts +9 -0
- package/dist/components/UXDrawer/index.js +89 -0
- package/dist/components/UXDropdown/dropdown-item.js +1 -1
- package/dist/components/UXEmpty/index.d.ts +2 -1
- package/dist/components/UXEmpty/index.js +8 -2
- package/dist/components/UXHint/index.js +1 -1
- package/dist/components/UXInput/index.d.ts +33 -33
- package/dist/components/UXInput/input.extend.d.ts +33 -33
- package/dist/components/UXModal/index.d.ts +1 -1
- package/dist/components/UXModal/index.js +7 -6
- package/dist/components/UXSelect/index.js +3 -3
- package/dist/components/UXSwitch/index.d.ts +22 -22
- package/dist/components/UXSwitch/switch.extend.d.ts +22 -22
- package/dist/components/UXTable/index.d.ts +19 -19
- package/dist/components/UXTable/table.extend.d.ts +19 -19
- package/dist/components/UXTabs/tabs.classes.js +7 -7
- package/dist/components/UXThemeSwitch/index.d.ts +0 -1
- package/dist/components/UXThemeSwitch/index.js +0 -1
- package/dist/components/UXThemeSwitch/theme-item.d.ts +1 -1
- package/dist/components/UXThemeSwitch/theme-item.js +4 -5
- package/dist/components/UXThemeSwitch/theme-switch.d.ts +3 -3
- package/dist/components/UXThemeSwitch/theme-switch.js +134 -101
- package/dist/components/UXThemeSwitch/use-color-scheme.d.ts +1 -1
- package/dist/components/UXThemeSwitch/use-color-scheme.js +3 -3
- package/dist/components/UXThemeSwitch/use-theme-color.d.ts +1 -19
- package/dist/components/UXThemeSwitch/use-theme-color.js +3 -3
- package/dist/components/UXThemeSwitch/use-theme-store.d.ts +5 -20
- package/dist/components/UXThemeSwitch/use-theme-store.js +14 -28
- package/dist/components/UXThemeSwitch/use-theme.d.ts +7 -12
- package/dist/components/UXThemeSwitch/use-theme.js +73 -80
- package/dist/components/UXToast/index.d.ts +7 -4
- package/dist/components/UXToast/index.js +21 -17
- package/dist/components/UXTooltip/tooltip.extend.d.ts +21 -21
- package/dist/components/UXTooltip/tooltip.extend.js +2 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/hooks/useI18n.d.ts +6 -2
- package/dist/hooks/useI18n.js +15 -7
- package/dist/utils/detect.js +1 -2
- package/dist/utils/variants.js +16 -16
- package/package.json +6 -7
- package/tailwind-preset.js +192 -93
- package/dist/components/UXThemeSwitch/theme-data.d.ts +0 -29
- package/dist/components/UXThemeSwitch/theme-data.js +0 -304
- package/dist/icons/index.d.ts +0 -14
- package/dist/icons/index.js +0 -120
|
@@ -40,7 +40,7 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
40
40
|
vocab?: string | undefined;
|
|
41
41
|
autoCorrect?: string | undefined;
|
|
42
42
|
autoSave?: string | undefined;
|
|
43
|
-
color?: "default" | "
|
|
43
|
+
color?: "default" | "success" | "secondary" | "primary" | "danger" | "warning" | "bullish" | "bearish" | undefined;
|
|
44
44
|
itemProp?: string | undefined;
|
|
45
45
|
itemScope?: boolean | undefined;
|
|
46
46
|
itemType?: string | undefined;
|
|
@@ -285,6 +285,7 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
285
285
|
list?: string | undefined;
|
|
286
286
|
step?: string | number | undefined;
|
|
287
287
|
size?: "sm" | "md" | "lg" | undefined;
|
|
288
|
+
label?: import("react").ReactNode;
|
|
288
289
|
value?: string | (readonly string[] & string) | undefined;
|
|
289
290
|
width?: string | number | undefined;
|
|
290
291
|
height?: string | number | undefined;
|
|
@@ -292,52 +293,51 @@ declare const ExtendedInput: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
292
293
|
multiple?: boolean | undefined;
|
|
293
294
|
disabled?: boolean | undefined;
|
|
294
295
|
variant?: "flat" | "bordered" | "faded" | "underlined" | undefined;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
name?: string | undefined;
|
|
298
|
-
type?: string | undefined;
|
|
299
|
-
key?: import("react").Key | null | undefined;
|
|
300
|
-
labelPlacement?: "inside" | "outside" | "outside-left" | "outside-top" | undefined;
|
|
301
|
-
label?: import("react").ReactNode;
|
|
302
|
-
disableAnimation?: boolean | undefined;
|
|
296
|
+
isClearable?: boolean | undefined;
|
|
297
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"base" | "input" | "label" | "description" | "errorMessage" | "clearButton" | "mainWrapper" | "inputWrapper" | "innerWrapper" | "helperWrapper"> | undefined;
|
|
303
298
|
isDisabled?: boolean | undefined;
|
|
304
|
-
|
|
305
|
-
|
|
299
|
+
isReadOnly?: boolean | undefined;
|
|
300
|
+
isRequired?: boolean | undefined;
|
|
301
|
+
isInvalid?: boolean | undefined;
|
|
302
|
+
validationState?: import("@react-types/shared").ValidationState | undefined;
|
|
303
|
+
validationBehavior?: "aria" | "native" | undefined;
|
|
304
|
+
validate?: ((value: string) => import("@react-types/shared").ValidationError | true | null | undefined) | undefined;
|
|
305
|
+
description?: import("react").ReactNode;
|
|
306
|
+
errorMessage?: import("react").ReactNode | ((v: import("@react-types/shared").ValidationResult) => import("react").ReactNode);
|
|
306
307
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
307
|
-
|
|
308
|
-
formEncType?: string | undefined;
|
|
309
|
-
formMethod?: string | undefined;
|
|
310
|
-
formNoValidate?: boolean | undefined;
|
|
311
|
-
formTarget?: string | undefined;
|
|
308
|
+
placeholder?: string | undefined;
|
|
312
309
|
excludeFromTabOrder?: boolean | undefined;
|
|
313
|
-
startContent?: import("react").ReactNode;
|
|
314
|
-
endContent?: import("react").ReactNode;
|
|
315
|
-
onClear?: (() => void) | undefined;
|
|
316
310
|
autoComplete?: string | undefined;
|
|
317
|
-
alt?: string | undefined;
|
|
318
311
|
maxLength?: number | undefined;
|
|
319
312
|
minLength?: number | undefined;
|
|
313
|
+
pattern?: string | undefined;
|
|
314
|
+
type?: string | undefined;
|
|
315
|
+
name?: string | undefined;
|
|
316
|
+
labelPlacement?: "inside" | "outside" | "outside-left" | "outside-top" | undefined;
|
|
317
|
+
disableAnimation?: boolean | undefined;
|
|
318
|
+
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
319
|
+
key?: import("react").Key | null | undefined;
|
|
320
320
|
accept?: string | undefined;
|
|
321
|
+
alt?: string | undefined;
|
|
321
322
|
capture?: boolean | "user" | "environment" | undefined;
|
|
322
323
|
checked?: boolean | undefined;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
324
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
325
|
+
formEncType?: string | undefined;
|
|
326
|
+
formMethod?: string | undefined;
|
|
327
|
+
formNoValidate?: boolean | undefined;
|
|
328
|
+
formTarget?: string | undefined;
|
|
329
|
+
max?: string | number | undefined;
|
|
330
|
+
min?: string | number | undefined;
|
|
330
331
|
readOnly?: boolean | undefined;
|
|
331
332
|
required?: boolean | undefined;
|
|
332
|
-
|
|
333
|
-
isRequired?: boolean | undefined;
|
|
334
|
-
validationBehavior?: "aria" | "native" | undefined;
|
|
335
|
-
validate?: ((value: string) => import("@react-types/shared").ValidationError | true | null | undefined) | undefined;
|
|
336
|
-
description?: import("react").ReactNode;
|
|
337
|
-
isClearable?: boolean | undefined;
|
|
333
|
+
src?: string | undefined;
|
|
338
334
|
baseRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
339
335
|
wrapperRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
340
336
|
innerWrapperRef?: import("react").Ref<HTMLDivElement> | undefined;
|
|
337
|
+
startContent?: import("react").ReactNode;
|
|
338
|
+
endContent?: import("react").ReactNode;
|
|
339
|
+
onClear?: (() => void) | undefined;
|
|
340
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
341
341
|
textAlign?: "center" | "left" | "right" | undefined;
|
|
342
342
|
}, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>>;
|
|
343
343
|
export default ExtendedInput;
|
|
@@ -6,4 +6,4 @@ export type UXModalProps = Omit<ModalProps, 'closeButton'> & {
|
|
|
6
6
|
tip?: React.ReactNode;
|
|
7
7
|
titleAlign?: 'left' | 'center';
|
|
8
8
|
};
|
|
9
|
-
export declare const UXModal: React.
|
|
9
|
+
export declare const UXModal: React.FC<UXModalProps>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "react";
|
|
3
3
|
import { Modal, ModalBody, ModalContent, ModalFooter, ModalHeader } from "@heroui/modal";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import CloseIcon from "@particle-network/icons/web/CloseIcon";
|
|
5
|
+
import { Center, Circle, Flex } from "../layout/index.js";
|
|
6
|
+
import { Text } from "../typography/Text.js";
|
|
7
|
+
import { UXButton } from "../UXButton/index.js";
|
|
8
|
+
const UXModal = (props)=>{
|
|
7
9
|
const { title, footer, backdrop, scrollBehavior = 'inside', children, titleAlign = 'left', classNames, tip, ...restProps } = props;
|
|
8
10
|
return /*#__PURE__*/ jsx(Modal, {
|
|
9
|
-
ref: ref,
|
|
10
11
|
backdrop: backdrop,
|
|
11
12
|
scrollBehavior: scrollBehavior,
|
|
12
13
|
classNames: {
|
|
@@ -86,6 +87,6 @@ const UXModal = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
86
87
|
]
|
|
87
88
|
})
|
|
88
89
|
});
|
|
89
|
-
}
|
|
90
|
+
};
|
|
90
91
|
UXModal.displayName = 'UX.Modal';
|
|
91
92
|
export { UXModal };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { Select, SelectItem, SelectSection } from "@heroui/select";
|
|
4
|
-
import
|
|
4
|
+
import ChevronDownIcon from "@particle-network/icons/web/ChevronDownIcon";
|
|
5
5
|
const UXSelect = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
6
6
|
const { fullWidth = false, classNames = {}, radius = 'sm', ...restProps } = props;
|
|
7
7
|
const { popoverContent, selectorIcon, trigger, value, ...restClassNames } = classNames;
|
|
@@ -18,7 +18,7 @@ const UXSelect = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
18
18
|
selectorIcon
|
|
19
19
|
],
|
|
20
20
|
trigger: [
|
|
21
|
-
'h-[30px] min-h-[30px] px-md bg-background-200',
|
|
21
|
+
'h-[30px] min-h-[30px] px-md bg-background-200 data-[hover=true]:bg-background-200 data-[hover=true]:opacity-hover',
|
|
22
22
|
trigger
|
|
23
23
|
],
|
|
24
24
|
value: [
|
|
@@ -34,7 +34,7 @@ const UXSelect = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
34
34
|
list: 'gap-0 [&_[data-slot="heading"]]:text-small [&_[data-slot="heading"]]:font-medium'
|
|
35
35
|
},
|
|
36
36
|
itemClasses: {
|
|
37
|
-
base: '!outline-none min-h-8 px-md rounded-small text-foreground-300 !outline-none data-[hover=true]:bg-background-200 data-[
|
|
37
|
+
base: '!outline-none min-h-8 px-md rounded-small text-foreground-300 !outline-none data-[hover=true]:bg-background-200 data-[focus-visible=true]:bg-background-200 data-[focus-visible=true]:dark:bg-background-200 data-[hover=true]:text-default-foreground data-[selectable=true]:focus:!bg-background-200 data-[selectable=true]:focus:dark:!bg-background-200 gap-1',
|
|
38
38
|
title: 'text-tiny font-medium antialiased',
|
|
39
39
|
selectedIcon: '[&>svg>polyline]:stroke-[2.5]'
|
|
40
40
|
}
|
|
@@ -42,7 +42,7 @@ export declare const UXSwitch: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
42
42
|
vocab?: string | undefined;
|
|
43
43
|
autoCorrect?: string | undefined;
|
|
44
44
|
autoSave?: string | undefined;
|
|
45
|
-
color?: "default" | "
|
|
45
|
+
color?: "default" | "success" | "secondary" | "primary" | "danger" | "warning" | "bullish" | "bearish" | "contrast" | undefined;
|
|
46
46
|
itemProp?: string | undefined;
|
|
47
47
|
itemScope?: boolean | undefined;
|
|
48
48
|
itemType?: string | undefined;
|
|
@@ -292,39 +292,39 @@ export declare const UXSwitch: React.ForwardRefExoticComponent<Omit<Omit<{
|
|
|
292
292
|
height?: string | number | undefined;
|
|
293
293
|
multiple?: boolean | undefined;
|
|
294
294
|
disabled?: boolean | undefined;
|
|
295
|
-
|
|
296
|
-
min?: string | number | undefined;
|
|
297
|
-
name?: string | undefined;
|
|
298
|
-
type?: React.HTMLInputTypeAttribute | undefined;
|
|
299
|
-
key?: React.Key | null | undefined;
|
|
300
|
-
disableAnimation?: boolean | undefined;
|
|
295
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"base" | "label" | "startContent" | "endContent" | "wrapper" | "hiddenInput" | "thumb" | "thumbIcon"> | undefined;
|
|
301
296
|
isDisabled?: boolean | undefined;
|
|
302
|
-
|
|
303
|
-
pattern?: string | undefined;
|
|
304
|
-
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
297
|
+
isReadOnly?: boolean | undefined;
|
|
305
298
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
306
|
-
|
|
307
|
-
formEncType?: string | undefined;
|
|
308
|
-
formMethod?: string | undefined;
|
|
309
|
-
formNoValidate?: boolean | undefined;
|
|
310
|
-
formTarget?: string | undefined;
|
|
299
|
+
placeholder?: string | undefined;
|
|
311
300
|
excludeFromTabOrder?: boolean | undefined;
|
|
312
|
-
startContent?: React.ReactNode;
|
|
313
|
-
endContent?: React.ReactNode;
|
|
314
301
|
autoComplete?: React.HTMLInputAutoCompleteAttribute | undefined;
|
|
315
|
-
alt?: string | undefined;
|
|
316
302
|
maxLength?: number | undefined;
|
|
317
303
|
minLength?: number | undefined;
|
|
304
|
+
pattern?: string | undefined;
|
|
305
|
+
type?: React.HTMLInputTypeAttribute | undefined;
|
|
306
|
+
name?: string | undefined;
|
|
307
|
+
disableAnimation?: boolean | undefined;
|
|
308
|
+
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
309
|
+
key?: React.Key | null | undefined;
|
|
318
310
|
accept?: string | undefined;
|
|
311
|
+
alt?: string | undefined;
|
|
319
312
|
capture?: boolean | "user" | "environment" | undefined;
|
|
320
313
|
checked?: boolean | undefined;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
314
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
315
|
+
formEncType?: string | undefined;
|
|
316
|
+
formMethod?: string | undefined;
|
|
317
|
+
formNoValidate?: boolean | undefined;
|
|
318
|
+
formTarget?: string | undefined;
|
|
319
|
+
max?: string | number | undefined;
|
|
320
|
+
min?: string | number | undefined;
|
|
325
321
|
readOnly?: boolean | undefined;
|
|
326
322
|
required?: boolean | undefined;
|
|
323
|
+
src?: string | undefined;
|
|
324
|
+
startContent?: React.ReactNode;
|
|
325
|
+
endContent?: React.ReactNode;
|
|
327
326
|
onValueChange?: ((isSelected: boolean) => void) | undefined;
|
|
327
|
+
isSelected?: boolean | undefined;
|
|
328
328
|
defaultSelected?: boolean | undefined;
|
|
329
329
|
thumbIcon?: React.ReactNode | ((props: import("@heroui/switch").SwitchThumbIconProps) => React.ReactNode);
|
|
330
330
|
}, "ref"> & React.RefAttributes<React.ReactElement<unknown, string | React.JSXElementConstructor<any>>>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -39,7 +39,7 @@ declare const ExtendedSwitch: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
39
39
|
vocab?: string | undefined;
|
|
40
40
|
autoCorrect?: string | undefined;
|
|
41
41
|
autoSave?: string | undefined;
|
|
42
|
-
color?: "default" | "
|
|
42
|
+
color?: "default" | "success" | "secondary" | "primary" | "danger" | "warning" | "bullish" | "bearish" | "contrast" | undefined;
|
|
43
43
|
itemProp?: string | undefined;
|
|
44
44
|
itemScope?: boolean | undefined;
|
|
45
45
|
itemType?: string | undefined;
|
|
@@ -289,39 +289,39 @@ declare const ExtendedSwitch: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
289
289
|
height?: string | number | undefined;
|
|
290
290
|
multiple?: boolean | undefined;
|
|
291
291
|
disabled?: boolean | undefined;
|
|
292
|
-
|
|
293
|
-
min?: string | number | undefined;
|
|
294
|
-
name?: string | undefined;
|
|
295
|
-
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
296
|
-
key?: import("react").Key | null | undefined;
|
|
297
|
-
disableAnimation?: boolean | undefined;
|
|
292
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"base" | "label" | "startContent" | "endContent" | "wrapper" | "hiddenInput" | "thumb" | "thumbIcon"> | undefined;
|
|
298
293
|
isDisabled?: boolean | undefined;
|
|
299
|
-
|
|
300
|
-
pattern?: string | undefined;
|
|
301
|
-
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
294
|
+
isReadOnly?: boolean | undefined;
|
|
302
295
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
303
|
-
|
|
304
|
-
formEncType?: string | undefined;
|
|
305
|
-
formMethod?: string | undefined;
|
|
306
|
-
formNoValidate?: boolean | undefined;
|
|
307
|
-
formTarget?: string | undefined;
|
|
296
|
+
placeholder?: string | undefined;
|
|
308
297
|
excludeFromTabOrder?: boolean | undefined;
|
|
309
|
-
startContent?: import("react").ReactNode;
|
|
310
|
-
endContent?: import("react").ReactNode;
|
|
311
298
|
autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
|
|
312
|
-
alt?: string | undefined;
|
|
313
299
|
maxLength?: number | undefined;
|
|
314
300
|
minLength?: number | undefined;
|
|
301
|
+
pattern?: string | undefined;
|
|
302
|
+
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
303
|
+
name?: string | undefined;
|
|
304
|
+
disableAnimation?: boolean | undefined;
|
|
305
|
+
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
306
|
+
key?: import("react").Key | null | undefined;
|
|
315
307
|
accept?: string | undefined;
|
|
308
|
+
alt?: string | undefined;
|
|
316
309
|
capture?: boolean | "user" | "environment" | undefined;
|
|
317
310
|
checked?: boolean | undefined;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
311
|
+
formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
|
|
312
|
+
formEncType?: string | undefined;
|
|
313
|
+
formMethod?: string | undefined;
|
|
314
|
+
formNoValidate?: boolean | undefined;
|
|
315
|
+
formTarget?: string | undefined;
|
|
316
|
+
max?: string | number | undefined;
|
|
317
|
+
min?: string | number | undefined;
|
|
322
318
|
readOnly?: boolean | undefined;
|
|
323
319
|
required?: boolean | undefined;
|
|
320
|
+
src?: string | undefined;
|
|
321
|
+
startContent?: import("react").ReactNode;
|
|
322
|
+
endContent?: import("react").ReactNode;
|
|
324
323
|
onValueChange?: ((isSelected: boolean) => void) | undefined;
|
|
324
|
+
isSelected?: boolean | undefined;
|
|
325
325
|
defaultSelected?: boolean | undefined;
|
|
326
326
|
thumbIcon?: import("react").ReactNode | ((props: import("@heroui/switch").SwitchThumbIconProps) => import("react").ReactNode);
|
|
327
327
|
}, "ref"> & import("react").RefAttributes<import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>>>;
|
|
@@ -43,7 +43,7 @@ export declare const UXTable: import("@heroui/system-rsc").InternalForwardRefRen
|
|
|
43
43
|
vocab?: string | undefined;
|
|
44
44
|
autoCorrect?: string | undefined;
|
|
45
45
|
autoSave?: string | undefined;
|
|
46
|
-
color?: "default" | "
|
|
46
|
+
color?: "default" | "success" | "secondary" | "primary" | "danger" | "warning" | undefined;
|
|
47
47
|
itemProp?: string | undefined;
|
|
48
48
|
itemScope?: boolean | undefined;
|
|
49
49
|
itemType?: string | undefined;
|
|
@@ -286,37 +286,37 @@ export declare const UXTable: import("@heroui/system-rsc").InternalForwardRefRen
|
|
|
286
286
|
onTransitionStartCapture?: React.TransitionEventHandler<HTMLTableElement> | undefined;
|
|
287
287
|
align?: "start" | "end" | "center" | undefined;
|
|
288
288
|
size?: "md" | "lg" | undefined;
|
|
289
|
+
summary?: string | undefined;
|
|
289
290
|
width?: string | number | undefined;
|
|
290
291
|
radius?: "sm" | "md" | "lg" | "none" | undefined;
|
|
291
292
|
layout?: "auto" | "fixed" | undefined;
|
|
292
293
|
border?: number | undefined;
|
|
293
|
-
|
|
294
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"table" | "base" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "wrapper" | "sortIcon" | "emptyWrapper" | "loadingWrapper"> | undefined;
|
|
294
295
|
disableAnimation?: boolean | undefined;
|
|
295
|
-
shadow?: "sm" | "md" | "lg" | "none" | undefined;
|
|
296
|
-
summary?: string | undefined;
|
|
297
296
|
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
classNames?: import("@heroui/theme").SlotsToClasses<"table" | "base" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "wrapper" | "sortIcon" | "emptyWrapper" | "loadingWrapper"> | undefined;
|
|
304
|
-
topContent?: React.ReactNode;
|
|
305
|
-
bottomContent?: React.ReactNode;
|
|
297
|
+
key?: React.Key | null | undefined;
|
|
298
|
+
baseRef?: import("@heroui/react-utils").ReactRef<HTMLElement | null> | undefined;
|
|
299
|
+
disallowEmptySelection?: boolean | undefined;
|
|
300
|
+
onSelectionChange?: ((keys: import("@react-types/shared").Selection) => void) | undefined;
|
|
301
|
+
disabledKeys?: Iterable<import("@react-types/shared").Key> | undefined;
|
|
306
302
|
scrollRef?: import("@react-types/shared").RefObject<HTMLElement | null> | undefined;
|
|
307
303
|
isVirtualized?: boolean | undefined;
|
|
304
|
+
shadow?: "sm" | "md" | "lg" | "none" | undefined;
|
|
305
|
+
topContent?: React.ReactNode;
|
|
306
|
+
bottomContent?: React.ReactNode;
|
|
307
|
+
keyboardDelegate?: import("@react-types/shared").KeyboardDelegate | undefined;
|
|
308
|
+
selectionBehavior?: "replace" | "toggle" | undefined;
|
|
309
|
+
shouldSelectOnPressUp?: boolean | undefined;
|
|
308
310
|
escapeKeyBehavior?: "none" | "clearSelection" | undefined;
|
|
309
|
-
disabledKeys?: Iterable<import("@react-types/shared").Key> | undefined;
|
|
310
311
|
selectionMode?: import("@react-types/shared").SelectionMode | undefined;
|
|
311
|
-
disallowEmptySelection?: boolean | undefined;
|
|
312
312
|
selectedKeys?: "all" | Iterable<import("@react-types/shared").Key> | undefined;
|
|
313
313
|
defaultSelectedKeys?: "all" | Iterable<import("@react-types/shared").Key> | undefined;
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
bgcolor?: string | undefined;
|
|
315
|
+
cellPadding?: string | number | undefined;
|
|
316
|
+
cellSpacing?: string | number | undefined;
|
|
317
|
+
frame?: boolean | undefined;
|
|
318
|
+
rules?: "none" | "all" | "rows" | "groups" | "columns" | undefined;
|
|
316
319
|
isCompact?: boolean | undefined;
|
|
317
|
-
keyboardDelegate?: import("@react-types/shared").KeyboardDelegate | undefined;
|
|
318
|
-
selectionBehavior?: "replace" | "toggle" | undefined;
|
|
319
|
-
shouldSelectOnPressUp?: boolean | undefined;
|
|
320
320
|
hideHeader?: boolean | undefined;
|
|
321
321
|
isStriped?: boolean | undefined;
|
|
322
322
|
isHeaderSticky?: boolean | undefined;
|
|
@@ -40,7 +40,7 @@ declare const ExtendedTable: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
40
40
|
vocab?: string | undefined;
|
|
41
41
|
autoCorrect?: string | undefined;
|
|
42
42
|
autoSave?: string | undefined;
|
|
43
|
-
color?: "default" | "
|
|
43
|
+
color?: "default" | "success" | "secondary" | "primary" | "danger" | "warning" | undefined;
|
|
44
44
|
itemProp?: string | undefined;
|
|
45
45
|
itemScope?: boolean | undefined;
|
|
46
46
|
itemType?: string | undefined;
|
|
@@ -283,37 +283,37 @@ declare const ExtendedTable: import("react").ForwardRefExoticComponent<Omit<{
|
|
|
283
283
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLTableElement> | undefined;
|
|
284
284
|
align?: "start" | "end" | "center" | undefined;
|
|
285
285
|
size?: "md" | "lg" | undefined;
|
|
286
|
+
summary?: string | undefined;
|
|
286
287
|
width?: string | number | undefined;
|
|
287
288
|
radius?: "sm" | "md" | "lg" | "none" | undefined;
|
|
288
289
|
layout?: "auto" | "fixed" | undefined;
|
|
289
290
|
border?: number | undefined;
|
|
290
|
-
|
|
291
|
+
classNames?: import("@heroui/theme").SlotsToClasses<"table" | "base" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "wrapper" | "sortIcon" | "emptyWrapper" | "loadingWrapper"> | undefined;
|
|
291
292
|
disableAnimation?: boolean | undefined;
|
|
292
|
-
shadow?: "sm" | "md" | "lg" | "none" | undefined;
|
|
293
|
-
summary?: string | undefined;
|
|
294
293
|
as?: import("@heroui/system-rsc").As<any> | undefined;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
classNames?: import("@heroui/theme").SlotsToClasses<"table" | "base" | "tbody" | "td" | "tfoot" | "th" | "thead" | "tr" | "wrapper" | "sortIcon" | "emptyWrapper" | "loadingWrapper"> | undefined;
|
|
301
|
-
topContent?: import("react").ReactNode;
|
|
302
|
-
bottomContent?: import("react").ReactNode;
|
|
294
|
+
key?: import("react").Key | null | undefined;
|
|
295
|
+
baseRef?: import("@heroui/react-utils").ReactRef<HTMLElement | null> | undefined;
|
|
296
|
+
disallowEmptySelection?: boolean | undefined;
|
|
297
|
+
onSelectionChange?: ((keys: import("@react-types/shared").Selection) => void) | undefined;
|
|
298
|
+
disabledKeys?: Iterable<import("@react-types/shared").Key> | undefined;
|
|
303
299
|
scrollRef?: import("@react-types/shared").RefObject<HTMLElement | null> | undefined;
|
|
304
300
|
isVirtualized?: boolean | undefined;
|
|
301
|
+
shadow?: "sm" | "md" | "lg" | "none" | undefined;
|
|
302
|
+
topContent?: import("react").ReactNode;
|
|
303
|
+
bottomContent?: import("react").ReactNode;
|
|
304
|
+
keyboardDelegate?: import("@react-types/shared").KeyboardDelegate | undefined;
|
|
305
|
+
selectionBehavior?: "replace" | "toggle" | undefined;
|
|
306
|
+
shouldSelectOnPressUp?: boolean | undefined;
|
|
305
307
|
escapeKeyBehavior?: "none" | "clearSelection" | undefined;
|
|
306
|
-
disabledKeys?: Iterable<import("@react-types/shared").Key> | undefined;
|
|
307
308
|
selectionMode?: import("@react-types/shared").SelectionMode | undefined;
|
|
308
|
-
disallowEmptySelection?: boolean | undefined;
|
|
309
309
|
selectedKeys?: "all" | Iterable<import("@react-types/shared").Key> | undefined;
|
|
310
310
|
defaultSelectedKeys?: "all" | Iterable<import("@react-types/shared").Key> | undefined;
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
bgcolor?: string | undefined;
|
|
312
|
+
cellPadding?: string | number | undefined;
|
|
313
|
+
cellSpacing?: string | number | undefined;
|
|
314
|
+
frame?: boolean | undefined;
|
|
315
|
+
rules?: "none" | "all" | "rows" | "groups" | "columns" | undefined;
|
|
313
316
|
isCompact?: boolean | undefined;
|
|
314
|
-
keyboardDelegate?: import("@react-types/shared").KeyboardDelegate | undefined;
|
|
315
|
-
selectionBehavior?: "replace" | "toggle" | undefined;
|
|
316
|
-
shouldSelectOnPressUp?: boolean | undefined;
|
|
317
317
|
hideHeader?: boolean | undefined;
|
|
318
318
|
isStriped?: boolean | undefined;
|
|
319
319
|
isHeaderSticky?: boolean | undefined;
|
|
@@ -3,7 +3,7 @@ const tabsClasses = {
|
|
|
3
3
|
variants: {
|
|
4
4
|
variant: {
|
|
5
5
|
solid: {
|
|
6
|
-
tabList: 'gap-0 bg-background-
|
|
6
|
+
tabList: 'gap-0 bg-background-200',
|
|
7
7
|
tab: 'py-0 !outline-none',
|
|
8
8
|
cursor: 'shadow-none inset-0',
|
|
9
9
|
tabContent: 'text-foreground-300 font-medium'
|
|
@@ -252,9 +252,9 @@ const tabsClasses = {
|
|
|
252
252
|
color: 'default',
|
|
253
253
|
class: {
|
|
254
254
|
cursor: [
|
|
255
|
-
'bg-
|
|
255
|
+
'!bg-tertiary'
|
|
256
256
|
],
|
|
257
|
-
tabContent: 'group-data-[selected=true]:text-
|
|
257
|
+
tabContent: 'group-data-[selected=true]:text-tertiary-foreground'
|
|
258
258
|
}
|
|
259
259
|
},
|
|
260
260
|
{
|
|
@@ -264,9 +264,9 @@ const tabsClasses = {
|
|
|
264
264
|
color: 'default',
|
|
265
265
|
class: {
|
|
266
266
|
cursor: [
|
|
267
|
-
'bg-
|
|
267
|
+
'!bg-tertiary'
|
|
268
268
|
],
|
|
269
|
-
tabContent: 'group-data-[selected=true]:text-
|
|
269
|
+
tabContent: 'group-data-[selected=true]:text-tertiary-foreground'
|
|
270
270
|
}
|
|
271
271
|
},
|
|
272
272
|
{
|
|
@@ -276,9 +276,9 @@ const tabsClasses = {
|
|
|
276
276
|
color: 'default',
|
|
277
277
|
class: {
|
|
278
278
|
cursor: [
|
|
279
|
-
'bg-
|
|
279
|
+
'!bg-tertiary'
|
|
280
280
|
],
|
|
281
|
-
tabContent: 'group-data-[selected=true]:text-
|
|
281
|
+
tabContent: 'group-data-[selected=true]:text-tertiary-foreground'
|
|
282
282
|
}
|
|
283
283
|
},
|
|
284
284
|
{
|
|
@@ -7,17 +7,15 @@ import { Text } from "../typography/Text.js";
|
|
|
7
7
|
const ThemeItem = ({ id, zhName, enName, isSelected, onClick })=>{
|
|
8
8
|
const lang = useLang();
|
|
9
9
|
return /*#__PURE__*/ jsxs(VStack, {
|
|
10
|
-
center: true,
|
|
11
10
|
gap: 2,
|
|
12
|
-
|
|
11
|
+
items: "center",
|
|
12
|
+
className: cn('cursor-pointer', id),
|
|
13
13
|
onClick: onClick,
|
|
14
14
|
children: [
|
|
15
15
|
/*#__PURE__*/ jsx("div", {
|
|
16
|
-
className: cn('rounded-medium border-2', isSelected ? 'border-primary' : 'border-transparent'),
|
|
16
|
+
className: cn('rounded-medium border-2 hover:scale-105 transition-all duration-300', 'w-[100px] h-[59px] md:w-[120px] md:h-[71px]', isSelected ? 'border-primary' : 'border-transparent'),
|
|
17
17
|
children: /*#__PURE__*/ jsxs("svg", {
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
-
width: "180",
|
|
20
|
-
height: "106.5",
|
|
21
19
|
viewBox: "0 0 120 71",
|
|
22
20
|
fill: "none",
|
|
23
21
|
children: [
|
|
@@ -138,6 +136,7 @@ const ThemeItem = ({ id, zhName, enName, isSelected, onClick })=>{
|
|
|
138
136
|
})
|
|
139
137
|
}),
|
|
140
138
|
/*#__PURE__*/ jsx(Text, {
|
|
139
|
+
align: "center",
|
|
141
140
|
children: 'zh' === lang ? zhName : enName
|
|
142
141
|
})
|
|
143
142
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type
|
|
3
|
-
export type
|
|
4
|
-
export declare const
|
|
2
|
+
import { type UXModalProps } from '../UXModal';
|
|
3
|
+
export type UXThemeSwitchModalProps = Omit<UXModalProps, 'children'>;
|
|
4
|
+
export declare const UXThemeSwitchModal: React.FC<UXThemeSwitchModalProps>;
|
|
5
5
|
export interface UXThemeSwitchProps {
|
|
6
6
|
children?: (onOpen: () => void) => React.ReactNode;
|
|
7
7
|
}
|