@mario_hahn/jumpy-ui 0.8.1 → 0.9.0
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/README.md +68 -1
- package/dist/{chunk-B7QIDGY7.js → chunk-3QWVEQL3.js} +4 -0
- package/dist/index.js +658 -350
- package/dist/theme.js +1 -1
- package/index.d.ts +16 -1
- package/package.json +6 -3
package/dist/theme.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -119,7 +119,7 @@ export declare function JumpSwitch(props: Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
119
119
|
export declare function JumpRadioGroup(props: HTMLAttributes<HTMLDivElement> & { name?: string; value?: string; defaultValue?: string; onValueChange?: (value: string) => void; disabled?: boolean; readOnly?: boolean; direction?: 'horizontal' | 'vertical'; innerClasses?: JumpRadioInnerClasses; options: Array<{ value: string; label: ReactNode; disabled?: boolean }> }): ReactNode
|
|
120
120
|
export type JumpDropdownItemValue = string | number
|
|
121
121
|
export interface JumpDropdownItem<TValue extends JumpDropdownItemValue = JumpDropdownItemValue> { label: string; value: TValue; children?: Array<JumpDropdownItem<TValue>>; metadata?: Record<string, unknown>; disabled?: boolean }
|
|
122
|
-
export declare function JumpDropdown<TValue extends JumpDropdownItemValue = JumpDropdownItemValue>(props: Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange'> & { label?: string; hint?: string; value?: Array<TValue>; defaultValue?: Array<TValue>; open?: boolean; onChange?: (value: Array<TValue>) => void; onOpenChange?: (open: boolean) => void; items?: Array<JumpDropdownItem<TValue>>; placeholder?: string; disabled?: boolean; multiple?: boolean; searchable?: boolean; renderTrigger?: (selectedValues: Array<TValue>, isOpen: boolean) => ReactNode; renderItem?: (option: JumpDropdownItem<TValue>, selected: boolean, listItemProps: Record<string, unknown>) => ReactNode; inputRef?: import('react').Ref<HTMLInputElement>; status?: 'regular' | 'alarm'; error?: boolean; hideClearIcon?: boolean; onClear?: () => void }): ReactNode
|
|
122
|
+
export declare function JumpDropdown<TValue extends JumpDropdownItemValue = JumpDropdownItemValue>(props: Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange'> & { label?: string; hint?: string; value?: Array<TValue>; defaultValue?: Array<TValue>; open?: boolean; onChange?: (value: Array<TValue>) => void; onOpenChange?: (open: boolean) => void; items?: Array<JumpDropdownItem<TValue>>; placeholder?: string; popupMinWidth?: number; disabled?: boolean; multiple?: boolean; searchable?: boolean; renderTrigger?: (selectedValues: Array<TValue>, isOpen: boolean) => ReactNode; renderItem?: (option: JumpDropdownItem<TValue>, selected: boolean, listItemProps: Record<string, unknown>) => ReactNode; inputRef?: import('react').Ref<HTMLInputElement>; status?: 'regular' | 'alarm'; error?: boolean; hideClearIcon?: boolean; onClear?: () => void }): ReactNode
|
|
123
123
|
export type JumpDateTimeValue = Date | number
|
|
124
124
|
export declare function JumpDatePicker<TValue extends JumpDateTimeValue = Date>(props: Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange'> & { label?: string; hint?: string; value?: TValue | null; defaultValue?: TValue | null; onChange?: (value: TValue | null) => void; open?: boolean; onOpenChange?: (open: boolean) => void; format?: string | string[]; minDate?: TValue; maxDate?: TValue; disabledDates?: TValue[]; isDateDisabled?: (date: Date) => boolean; labels?: { cancelButton?: string; applyButton?: string }; disabled?: boolean; readOnly?: boolean; status?: 'regular' | 'alarm'; error?: boolean; hideClearIcon?: boolean; onClear?: () => void }): ReactNode
|
|
125
125
|
export declare function JumpTimePicker<TValue extends JumpDateTimeValue = Date>(props: Omit<InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange'> & { label?: string; hint?: string; value?: TValue | null; defaultValue?: TValue | null; onChange?: (value: TValue | null) => void; open?: boolean; onOpenChange?: (open: boolean) => void; format?: string; twentyFourHours?: boolean; labels?: { cancelButton?: string; applyButton?: string }; disabled?: boolean; readOnly?: boolean; status?: 'regular' | 'alarm'; error?: boolean; hideClearIcon?: boolean; onClear?: () => void }): ReactNode
|
|
@@ -132,6 +132,21 @@ export declare function JumpButton(props: JumpPolymorphicButtonAttributes & { as
|
|
|
132
132
|
export declare function JumpIconButton(props: JumpPolymorphicButtonAttributes & { as?: ElementTag; variant?: 'primary' | 'secondary' | 'tertiary' | 'borderless'; status?: 'regular' | 'alarm'; alternateHover?: boolean; elevated?: boolean }): ReactNode
|
|
133
133
|
export declare function JumpLinkButton(props: AnchorHTMLAttributes<HTMLAnchorElement> & { href: string; variant?: 'primary' | 'secondary' | 'tertiary' | 'borderless'; status?: 'regular' | 'alarm'; leadingIcon?: ReactNode; trailingIcon?: ReactNode }): ReactNode
|
|
134
134
|
export declare const JumpInput: import('react').ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & { status?: JumpInputStatus } & import('react').RefAttributes<HTMLInputElement>>
|
|
135
|
+
export type JumpTokenInputToken = { type: 'token'; id: string; value: string; label: string }
|
|
136
|
+
export type JumpTokenInputValue = Array<{ type: 'text'; text: string } | JumpTokenInputToken>
|
|
137
|
+
export interface JumpTokenInputHandle {
|
|
138
|
+
focus(): void
|
|
139
|
+
insertToken(token: Omit<JumpTokenInputToken, 'type' | 'id'> & { id?: string }): void
|
|
140
|
+
insertText(text: string): void
|
|
141
|
+
removeToken(id: string): void
|
|
142
|
+
}
|
|
143
|
+
export declare function JumpTokenInput(props: Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue' | 'children'> & {
|
|
144
|
+
ref?: Ref<JumpTokenInputHandle>; value?: JumpTokenInputValue; defaultValue?: JumpTokenInputValue;
|
|
145
|
+
onChange?: (value: JumpTokenInputValue) => void;
|
|
146
|
+
onTokenInsert?: (token: JumpTokenInputToken) => void; onTokenRemove?: (token: JumpTokenInputToken) => void;
|
|
147
|
+
label?: string; hint?: string; placeholder?: string; status?: JumpInputStatus; error?: boolean;
|
|
148
|
+
disabled?: boolean; readOnly?: boolean;
|
|
149
|
+
}): ReactNode
|
|
135
150
|
export declare function JumpTextarea(props: TextareaHTMLAttributes<HTMLTextAreaElement> & { status?: JumpInputStatus }): ReactNode
|
|
136
151
|
export declare function JumpBaseInput(props: { label?: string; hint?: string; children: ReactNode; className?: string; 'data-testid'?: string; labelTestId?: string; leading?: ReactNode; trailing?: ReactNode; status?: JumpInputStatus; error?: boolean; hideClearIcon?: boolean; showCharCount?: boolean; onClear?: () => void; slots?: JumpBaseInputSlots }): ReactNode
|
|
137
152
|
export declare function JumpField(props: { label?: string; hint?: string; children: ReactNode; className?: string; 'data-testid'?: string; labelTestId?: string; leading?: ReactNode; trailing?: ReactNode; status?: JumpInputStatus; error?: boolean; hideClearIcon?: boolean; showCharCount?: boolean; onClear?: () => void; slots?: JumpBaseInputSlots }): ReactNode
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mario_hahn/jumpy-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"prebuild": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\"",
|
|
8
|
-
"build": "esbuild index.js theme.js utils.js jumpy-theme-inventory.js --outdir=dist --format=esm --splitting --jsx=automatic --loader:.js=jsx --bundle --external:react --external:react/jsx-runtime --external:@floating-ui/react",
|
|
8
|
+
"build": "esbuild index.js theme.js utils.js jumpy-theme-inventory.js --outdir=dist --format=esm --splitting --jsx=automatic --loader:.js=jsx --bundle --external:react --external:react/jsx-runtime --external:react-dom --external:lexical --external:@lexical/* --external:@floating-ui/react",
|
|
9
9
|
"prepack": "npm run build"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
@@ -45,7 +45,10 @@
|
|
|
45
45
|
"url": "git+https://github.com/mariohahn/jumpy-ui.git"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@floating-ui/react": "^0.27.20"
|
|
48
|
+
"@floating-ui/react": "^0.27.20",
|
|
49
|
+
"@lexical/clipboard": "^0.52.0",
|
|
50
|
+
"@lexical/react": "^0.52.0",
|
|
51
|
+
"lexical": "^0.52.0"
|
|
49
52
|
},
|
|
50
53
|
"devDependencies": {
|
|
51
54
|
"esbuild": "^0.28.2"
|