obeyaka-ui 0.1.10 → 0.1.11
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/index.es.js +608 -541
- package/dist/index.js +2 -2
- package/dist/types/components/atoms/EditableText/EditableText.d.ts +4 -0
- package/dist/types/components/atoms/EditableText/EditableText.d.ts.map +1 -0
- package/dist/types/components/atoms/EditableText/EditableText.types.d.ts +56 -0
- package/dist/types/components/atoms/EditableText/EditableText.types.d.ts.map +1 -0
- package/dist/types/components/atoms/EditableText/index.d.ts +3 -0
- package/dist/types/components/atoms/EditableText/index.d.ts.map +1 -0
- package/dist/types/components/atoms/index.d.ts +2 -0
- package/dist/types/components/atoms/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableText.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/EditableText/EditableText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAwGpD,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from "react";
|
|
2
|
+
export interface EditableTextProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> {
|
|
3
|
+
/**
|
|
4
|
+
* The current value of the editable text
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* Label of the input
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Callback fired when the value changes
|
|
13
|
+
*/
|
|
14
|
+
onChange: (value: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Placeholder text when the input is empty
|
|
17
|
+
*/
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the text is disabled from editing
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Background color of the input
|
|
25
|
+
*/
|
|
26
|
+
bgColor?: "white" | "gray" | "gray.0";
|
|
27
|
+
/**
|
|
28
|
+
* Size of the input
|
|
29
|
+
*/
|
|
30
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
31
|
+
/**
|
|
32
|
+
* Border radius of the input
|
|
33
|
+
*/
|
|
34
|
+
radius?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
35
|
+
/**
|
|
36
|
+
* Custom CSS class name
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Custom styles
|
|
41
|
+
*/
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to show the edit border when focused
|
|
45
|
+
*/
|
|
46
|
+
showEditBorder?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Color of the edit border
|
|
49
|
+
*/
|
|
50
|
+
editBorderColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether to select all text when entering edit mode
|
|
53
|
+
*/
|
|
54
|
+
selectOnFocus?: boolean;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=EditableText.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableText.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/EditableText/EditableText.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IACxE;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAElC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IAEtC;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,MAAM,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAE1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/EditableText/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -6,6 +6,7 @@ export * from './BoxAvatar/IconAvatar';
|
|
|
6
6
|
export * from './BoxAvatar/EmojiAvatar';
|
|
7
7
|
export * from './TextButton';
|
|
8
8
|
export * from './Logo';
|
|
9
|
+
export * from './EditableText';
|
|
9
10
|
export type { ActionButtonProps, ActionButtonVariant, ActionButtonSize, } from './ActionButton/ActionButton.types';
|
|
10
11
|
export type { BoxAvatarProps, AvatarData } from './BoxAvatar/BoxAvatar.types';
|
|
11
12
|
export type { PlaceholderAvatarProps } from './BoxAvatar/PlaceholderAvatar';
|
|
@@ -14,4 +15,5 @@ export type { IconAvatarProps } from './BoxAvatar/IconAvatar';
|
|
|
14
15
|
export type { EmojiAvatarProps as AtomsEmojiAvatarProps } from './BoxAvatar/EmojiAvatar';
|
|
15
16
|
export type { TextButtonProps } from './TextButton/TextButton.types';
|
|
16
17
|
export type { LogoProps } from './Logo/Logo.types';
|
|
18
|
+
export type { EditableTextProps } from './EditableText';
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAE/B,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9E,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,YAAY,EAAE,gBAAgB,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACzF,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|