obeyaka-ui 0.1.14 → 0.1.15
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 +4164 -2985
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/components/atoms/BoxAvatar/BoxAvatar.types.d.ts +4 -4
- package/dist/types/components/atoms/BoxAvatar/BoxAvatar.types.d.ts.map +1 -1
- package/dist/types/components/atoms/BoxAvatar/EmojiAvatar/EmojiAvatar.d.ts +1 -1
- package/dist/types/components/atoms/BoxAvatar/EmojiAvatar/EmojiAvatar.d.ts.map +1 -1
- package/dist/types/components/atoms/BoxAvatar/IconAvatar/IconAvatar.d.ts +1 -1
- package/dist/types/components/atoms/BoxAvatar/IconAvatar/IconAvatar.d.ts.map +1 -1
- package/dist/types/components/atoms/BoxAvatar/ImageAvatar/ImageAvatar.d.ts +1 -1
- package/dist/types/components/atoms/BoxAvatar/ImageAvatar/ImageAvatar.d.ts.map +1 -1
- package/dist/types/components/atoms/BoxAvatar/PlaceholderAvatar/PlaceholderAvatar.d.ts +1 -1
- package/dist/types/components/atoms/BoxAvatar/PlaceholderAvatar/PlaceholderAvatar.d.ts.map +1 -1
- package/dist/types/components/atoms/BoxAvatar/utils.d.ts +4 -0
- package/dist/types/components/atoms/BoxAvatar/utils.d.ts.map +1 -1
- package/dist/types/components/atoms/EditableText/EditableText.d.ts +2 -2
- package/dist/types/components/atoms/EditableText/EditableText.d.ts.map +1 -1
- package/dist/types/components/atoms/EditableText/EditableText.types.d.ts +13 -5
- package/dist/types/components/atoms/EditableText/EditableText.types.d.ts.map +1 -1
- package/dist/types/components/atoms/EditableTextarea/EditableTextarea.d.ts +4 -0
- package/dist/types/components/atoms/EditableTextarea/EditableTextarea.d.ts.map +1 -0
- package/dist/types/components/atoms/EditableTextarea/EditableTextarea.types.d.ts +76 -0
- package/dist/types/components/atoms/EditableTextarea/EditableTextarea.types.d.ts.map +1 -0
- package/dist/types/components/atoms/EditableTextarea/index.d.ts +3 -0
- package/dist/types/components/atoms/EditableTextarea/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/dist/types/components/molecules/UserChip/UserChip.d.ts +3 -0
- package/dist/types/components/molecules/UserChip/UserChip.d.ts.map +1 -0
- package/dist/types/components/molecules/UserChip/UserChip.types.d.ts +8 -0
- package/dist/types/components/molecules/UserChip/UserChip.types.d.ts.map +1 -0
- package/dist/types/components/molecules/UserChip/index.d.ts +3 -0
- package/dist/types/components/molecules/UserChip/index.d.ts.map +1 -0
- package/dist/types/components/molecules/index.d.ts +2 -0
- package/dist/types/components/molecules/index.d.ts.map +1 -1
- package/dist/types/components/organisms/AvatarSelector/AvatarSelector.d.ts +1 -1
- package/dist/types/components/organisms/AvatarSelector/AvatarSelector.d.ts.map +1 -1
- package/dist/types/components/organisms/AvatarSelector/AvatarSelector.types.d.ts +3 -9
- package/dist/types/components/organisms/AvatarSelector/AvatarSelector.types.d.ts.map +1 -1
- package/dist/types/components/organisms/Property/LinkProperty/LinkProperty.d.ts +4 -0
- package/dist/types/components/organisms/Property/LinkProperty/LinkProperty.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/LinkProperty/LinkProperty.types.d.ts +10 -0
- package/dist/types/components/organisms/Property/LinkProperty/LinkProperty.types.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/LinkProperty/index.d.ts +3 -0
- package/dist/types/components/organisms/Property/LinkProperty/index.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/NumberProperty/NumberProperty.d.ts +4 -0
- package/dist/types/components/organisms/Property/NumberProperty/NumberProperty.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/NumberProperty/NumberProperty.types.d.ts +12 -0
- package/dist/types/components/organisms/Property/NumberProperty/NumberProperty.types.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/NumberProperty/index.d.ts +3 -0
- package/dist/types/components/organisms/Property/NumberProperty/index.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/PageProperty.d.ts +4 -0
- package/dist/types/components/organisms/Property/PageProperty.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/PageProperty.types.d.ts +14 -0
- package/dist/types/components/organisms/Property/PageProperty.types.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/SelectUserProperty.d.ts +11 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/SelectUserProperty.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/SelectUserProperty.types.d.ts +52 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/SelectUserProperty.types.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/index.d.ts +7 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/index.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useComboboxState.d.ts +17 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useComboboxState.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useDropdownPlacement.d.ts +11 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useDropdownPlacement.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useInfiniteScroll.d.ts +12 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useInfiniteScroll.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useSelectUserHandlers.d.ts +13 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useSelectUserHandlers.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useUserSearch.d.ts +16 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useUserSearch.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useUserSelection.d.ts +16 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/hooks/useUserSelection.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/index.d.ts +3 -0
- package/dist/types/components/organisms/Property/SelectUserProperty/index.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/TextProperty/TextProperty.d.ts +4 -0
- package/dist/types/components/organisms/Property/TextProperty/TextProperty.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/TextProperty/TextProperty.types.d.ts +12 -0
- package/dist/types/components/organisms/Property/TextProperty/TextProperty.types.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/TextProperty/index.d.ts +3 -0
- package/dist/types/components/organisms/Property/TextProperty/index.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/TextareaProperty/TextareaProperty.d.ts +4 -0
- package/dist/types/components/organisms/Property/TextareaProperty/TextareaProperty.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/TextareaProperty/TextareaProperty.types.d.ts +24 -0
- package/dist/types/components/organisms/Property/TextareaProperty/TextareaProperty.types.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/TextareaProperty/index.d.ts +3 -0
- package/dist/types/components/organisms/Property/TextareaProperty/index.d.ts.map +1 -0
- package/dist/types/components/organisms/Property/index.d.ts +13 -0
- package/dist/types/components/organisms/Property/index.d.ts.map +1 -0
- package/dist/types/components/templates/SidePeek/SidePeek.d.ts.map +1 -1
- package/dist/types/components/templates/SidePeek/SidePeek.types.d.ts +17 -1
- package/dist/types/components/templates/SidePeek/SidePeek.types.d.ts.map +1 -1
- package/dist/types/components/templates/TeamPage/TeamPage.d.ts +18 -0
- package/dist/types/components/templates/TeamPage/TeamPage.d.ts.map +1 -0
- package/dist/types/components/templates/TeamPage/TeamPage.types.d.ts +62 -0
- package/dist/types/components/templates/TeamPage/TeamPage.types.d.ts.map +1 -0
- package/dist/types/components/templates/TeamPage/TeamProperties.d.ts +3 -0
- package/dist/types/components/templates/TeamPage/TeamProperties.d.ts.map +1 -0
- package/dist/types/components/templates/TeamPage/useTeamProperties.d.ts +7 -0
- package/dist/types/components/templates/TeamPage/useTeamProperties.d.ts.map +1 -0
- package/dist/types/components/templates/TeamSidePeek/TeamSidePeek.d.ts +45 -0
- package/dist/types/components/templates/TeamSidePeek/TeamSidePeek.d.ts.map +1 -0
- package/dist/types/components/templates/TeamSidePeek/TeamSidePeek.types.d.ts +34 -0
- package/dist/types/components/templates/TeamSidePeek/TeamSidePeek.types.d.ts.map +1 -0
- package/dist/types/components/templates/TeamSidePeek/index.d.ts +3 -0
- package/dist/types/components/templates/TeamSidePeek/index.d.ts.map +1 -0
- package/dist/types/components/templates/index.d.ts +2 -0
- package/dist/types/components/templates/index.d.ts.map +1 -1
- package/dist/types/layouts/PageLayout/PageLayout.d.ts +4 -0
- package/dist/types/layouts/PageLayout/PageLayout.d.ts.map +1 -0
- package/dist/types/layouts/PageLayout/PageLayout.types.d.ts +18 -0
- package/dist/types/layouts/PageLayout/PageLayout.types.d.ts.map +1 -0
- package/dist/types/layouts/PageLayout/index.d.ts +3 -0
- package/dist/types/layouts/PageLayout/index.d.ts.map +1 -0
- package/dist/types/layouts/SidePeekLayout/SidePeekLayout.d.ts +4 -0
- package/dist/types/layouts/SidePeekLayout/SidePeekLayout.d.ts.map +1 -0
- package/dist/types/layouts/SidePeekLayout/SidePeekLayout.types.d.ts +20 -0
- package/dist/types/layouts/SidePeekLayout/SidePeekLayout.types.d.ts.map +1 -0
- package/dist/types/layouts/SidePeekLayout/index.d.ts +1 -0
- package/dist/types/layouts/SidePeekLayout/index.d.ts.map +1 -0
- package/dist/types/theme/index.d.ts.map +1 -1
- package/dist/types/theme/useTheme.d.ts +19 -0
- package/dist/types/theme/useTheme.d.ts.map +1 -0
- package/package.json +1 -4
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.userChip-module__pill___DgFME{display:flex;align-items:center;gap:4px}.workspace-selector-module__menuItem___FSB6P{transition:background-color .2s ease;border-radius:var(--mantine-radius-md)}.workspace-selector-module__menuItem___FSB6P:hover{background-color:var(--mantine-color-gray-0)!important}.workspace-selector-module__menuItem___FSB6P[data-danger=red]:hover{background-color:var(--mantine-color-red-0)!important}.workspace-selector-module__workspaceButton___-P6kp{transition:background-color .2s ease;cursor:pointer;border-radius:var(--mantine-radius-md)}.workspace-selector-module__workspaceButton___-P6kp:hover{background-color:var(--mantine-color-gray-1)!important}.workspace-selector-module__workspaceText___YDAlj{flex:1;min-width:0;overflow:hidden}.workspace-selector-module__scrollWrapper___MzrJY{position:relative}.workspace-selector-module__scrollWrapper___MzrJY:after{content:"";position:absolute;bottom:0;left:0;width:100%;height:20px;background:linear-gradient(to top,var(--mantine-color-body),transparent);pointer-events:none;z-index:1}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export type AvatarData = {
|
|
2
|
-
type:
|
|
2
|
+
type: 'emoji';
|
|
3
3
|
value: string;
|
|
4
4
|
} | {
|
|
5
|
-
type:
|
|
5
|
+
type: 'icon';
|
|
6
6
|
value: string;
|
|
7
7
|
} | {
|
|
8
|
-
type:
|
|
8
|
+
type: 'image';
|
|
9
9
|
value: string;
|
|
10
10
|
};
|
|
11
11
|
export interface BoxAvatarProps {
|
|
12
12
|
/** Avatar data with type safety (preferred) */
|
|
13
13
|
avatar?: AvatarData;
|
|
14
14
|
/** Size of the avatar */
|
|
15
|
-
size?:
|
|
15
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number;
|
|
16
16
|
/** Whether the component is loading */
|
|
17
17
|
loading?: boolean;
|
|
18
18
|
/** Click handler */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BoxAvatar.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/BoxAvatar/BoxAvatar.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAErC,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"BoxAvatar.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/BoxAvatar/BoxAvatar.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAErC,MAAM,WAAW,cAAc;IAC7B,+CAA+C;IAC/C,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IACzD,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,8DAA8D;IAC9D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -2,7 +2,7 @@ export interface EmojiAvatarProps {
|
|
|
2
2
|
/** The emoji to display */
|
|
3
3
|
emoji: string;
|
|
4
4
|
/** Size of the avatar */
|
|
5
|
-
size?:
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number;
|
|
6
6
|
/** Whether the avatar is editable (clickable with hover effects) */
|
|
7
7
|
editable?: boolean;
|
|
8
8
|
/** Click handler */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmojiAvatar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/BoxAvatar/EmojiAvatar/EmojiAvatar.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"EmojiAvatar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/BoxAvatar/EmojiAvatar/EmojiAvatar.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,gBAAgB;IAC/B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IACzD,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AA0BD,eAAO,MAAM,WAAW,GAAI,uDAOzB,gBAAgB,4CA6ClB,CAAC"}
|
|
@@ -2,7 +2,7 @@ export interface IconAvatarProps {
|
|
|
2
2
|
/** The icon name to display */
|
|
3
3
|
iconName: string;
|
|
4
4
|
/** Size of the avatar */
|
|
5
|
-
size?:
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number;
|
|
6
6
|
/** Whether the avatar is editable (clickable with hover effects) */
|
|
7
7
|
editable?: boolean;
|
|
8
8
|
/** Click handler */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconAvatar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/BoxAvatar/IconAvatar/IconAvatar.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"IconAvatar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/BoxAvatar/IconAvatar/IconAvatar.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IACzD,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAwBD,eAAO,MAAM,UAAU,GAAI,0DAOxB,eAAe,4CAkDjB,CAAC"}
|
|
@@ -2,7 +2,7 @@ export interface ImageAvatarProps {
|
|
|
2
2
|
/** The image source URL */
|
|
3
3
|
src: string;
|
|
4
4
|
/** Size of the avatar */
|
|
5
|
-
size?:
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number;
|
|
6
6
|
/** Whether the avatar is editable (clickable with hover effects) */
|
|
7
7
|
editable?: boolean;
|
|
8
8
|
/** Click handler */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageAvatar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/BoxAvatar/ImageAvatar/ImageAvatar.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ImageAvatar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/BoxAvatar/ImageAvatar/ImageAvatar.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IACzD,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6BAA6B;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAwBD,eAAO,MAAM,WAAW,GAAI,mEASzB,gBAAgB,4CAqElB,CAAC"}
|
|
@@ -2,7 +2,7 @@ export interface PlaceholderAvatarProps {
|
|
|
2
2
|
/** The placeholder text to display */
|
|
3
3
|
text?: string;
|
|
4
4
|
/** Size of the avatar */
|
|
5
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
5
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number;
|
|
6
6
|
/** Whether the avatar is editable (clickable with hover effects) */
|
|
7
7
|
editable?: boolean;
|
|
8
8
|
/** Click handler */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaceholderAvatar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/BoxAvatar/PlaceholderAvatar/PlaceholderAvatar.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"PlaceholderAvatar.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/BoxAvatar/PlaceholderAvatar/PlaceholderAvatar.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IACzD,oEAAoE;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AA0BD,eAAO,MAAM,iBAAiB,GAAI,+DAQ/B,sBAAsB,4CA4DxB,CAAC"}
|
|
@@ -4,4 +4,8 @@
|
|
|
4
4
|
* @returns A string with up to 2 initials in uppercase
|
|
5
5
|
*/
|
|
6
6
|
export declare const getInitialsFromName: (fullName: string) => string;
|
|
7
|
+
export declare const getSizeStyles: (size: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | number) => {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
7
11
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/BoxAvatar/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,KAAG,MAqCtD,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/BoxAvatar/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,KAAG,MAqCtD,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM;;;CAgBxD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { EditableTextProps } from
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { EditableTextProps } from './EditableText.types';
|
|
3
3
|
export declare const EditableText: React.FC<EditableTextProps>;
|
|
4
4
|
//# sourceMappingURL=EditableText.d.ts.map
|
|
@@ -1 +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,
|
|
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,CAoIpD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from
|
|
2
|
-
export interface EditableTextProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
export interface EditableTextProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size'> {
|
|
3
3
|
/**
|
|
4
4
|
* The current value of the editable text
|
|
5
5
|
*/
|
|
@@ -23,15 +23,15 @@ export interface EditableTextProps extends Omit<InputHTMLAttributes<HTMLInputEle
|
|
|
23
23
|
/**
|
|
24
24
|
* Background color of the input
|
|
25
25
|
*/
|
|
26
|
-
bgColor?:
|
|
26
|
+
bgColor?: 'white' | 'gray' | 'gray.0';
|
|
27
27
|
/**
|
|
28
28
|
* Size of the input
|
|
29
29
|
*/
|
|
30
|
-
size?:
|
|
30
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
31
31
|
/**
|
|
32
32
|
* Border radius of the input
|
|
33
33
|
*/
|
|
34
|
-
radius?:
|
|
34
|
+
radius?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
35
35
|
/**
|
|
36
36
|
* Custom CSS class name
|
|
37
37
|
*/
|
|
@@ -52,5 +52,13 @@ export interface EditableTextProps extends Omit<InputHTMLAttributes<HTMLInputEle
|
|
|
52
52
|
* Whether to select all text when entering edit mode
|
|
53
53
|
*/
|
|
54
54
|
selectOnFocus?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether to show the edit icon
|
|
57
|
+
*/
|
|
58
|
+
pageTitle?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Callback fired when hover state changes
|
|
61
|
+
*/
|
|
62
|
+
onHover?: (isHover: boolean) => void;
|
|
55
63
|
}
|
|
56
64
|
//# sourceMappingURL=EditableText.types.d.ts.map
|
|
@@ -1 +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;
|
|
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;IAExB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableTextarea.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/EditableTextarea/EditableTextarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAyK5D,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
export interface EditableTextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'size'> {
|
|
3
|
+
/**
|
|
4
|
+
* The current value of the editable textarea
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* Label of the textarea
|
|
9
|
+
*/
|
|
10
|
+
label?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Callback fired when the value changes
|
|
13
|
+
*/
|
|
14
|
+
onChange: (value: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Placeholder text when the textarea is empty
|
|
17
|
+
*/
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the textarea is disabled from editing
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Background color of the textarea
|
|
25
|
+
*/
|
|
26
|
+
bgColor?: 'white' | 'gray' | 'gray.0';
|
|
27
|
+
/**
|
|
28
|
+
* Size of the textarea
|
|
29
|
+
*/
|
|
30
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
31
|
+
/**
|
|
32
|
+
* Border radius of the textarea
|
|
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
|
+
* Minimum number of rows
|
|
57
|
+
*/
|
|
58
|
+
minRows?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Maximum number of rows
|
|
61
|
+
*/
|
|
62
|
+
maxRows?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Whether the textarea should resize automatically
|
|
65
|
+
*/
|
|
66
|
+
autosize?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Callback fired when hover state changes
|
|
69
|
+
*/
|
|
70
|
+
onHover?: (isHover: boolean) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the textarea is a page title
|
|
73
|
+
*/
|
|
74
|
+
pageTitle?: boolean;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=EditableTextarea.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditableTextarea.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/EditableTextarea/EditableTextarea.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAE/C,MAAM,WAAW,qBACf,SAAQ,IAAI,CACV,sBAAsB,CAAC,mBAAmB,CAAC,EAC3C,UAAU,GAAG,MAAM,CACpB;IACD;;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;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/EditableTextarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -7,6 +7,7 @@ export * from './BoxAvatar/EmojiAvatar';
|
|
|
7
7
|
export * from './TextButton';
|
|
8
8
|
export * from './Logo';
|
|
9
9
|
export * from './EditableText';
|
|
10
|
+
export * from './EditableTextarea';
|
|
10
11
|
export type { ActionButtonProps, ActionButtonVariant, ActionButtonSize, } from './ActionButton/ActionButton.types';
|
|
11
12
|
export type { BoxAvatarProps, AvatarData } from './BoxAvatar/BoxAvatar.types';
|
|
12
13
|
export type { PlaceholderAvatarProps } from './BoxAvatar/PlaceholderAvatar';
|
|
@@ -16,4 +17,5 @@ export type { EmojiAvatarProps as AtomsEmojiAvatarProps } from './BoxAvatar/Emoj
|
|
|
16
17
|
export type { TextButtonProps } from './TextButton/TextButton.types';
|
|
17
18
|
export type { LogoProps } from './Logo/Logo.types';
|
|
18
19
|
export type { EditableTextProps } from './EditableText';
|
|
20
|
+
export type { EditableTextareaProps } from './EditableTextarea';
|
|
19
21
|
//# 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;AACvB,cAAc,gBAAgB,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;AAC/B,cAAc,oBAAoB,CAAC;AAEnC,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;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserChip.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/UserChip/UserChip.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6B5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserChip.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/UserChip/UserChip.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAEnE,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/molecules/UserChip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -3,9 +3,11 @@ export { FilterDropdown, FilterDropdownButton, FilterDropdownFilters, } from './
|
|
|
3
3
|
export { Menu } from './Menu';
|
|
4
4
|
export { NavButton } from './NavButton';
|
|
5
5
|
export { NavLink } from './NavLink';
|
|
6
|
+
export { UserChip } from './UserChip';
|
|
6
7
|
export type { ExpandableSearchProps } from './ExpandableSearch/ExpandableSearch.types';
|
|
7
8
|
export type { FilterDropdownProps, FilterDropdownButtonProps, FilterDropdownFiltersProps, FilterTagProps, AddFilterButtonProps, FilterOption, FilterTag, } from './FilterDropdown/FilterDropdown.types';
|
|
8
9
|
export type { MenuProps, MenuItemProps } from './Menu/Menu.types';
|
|
9
10
|
export type { NavButtonProps } from './NavButton/NavButton.types';
|
|
10
11
|
export type { NavLinkProps } from './NavLink/NavLink.types';
|
|
12
|
+
export type { UserChipProps } from './UserChip/UserChip.types';
|
|
11
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACvF,YAAY,EACV,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,SAAS,GACV,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClE,YAAY,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AvatarSelectorProps } from './AvatarSelector.types';
|
|
2
|
-
export declare const AvatarSelector: ({ opened, onOpen, onClose, avatar, onAvatarSelect, onRemove,
|
|
2
|
+
export declare const AvatarSelector: ({ editable, opened, onOpen, onClose, avatar, onAvatarSelect, onRemove, size, loading, placeholder, showPlaceholder, position, withinPortal, zIndex, }: AvatarSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=AvatarSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/AvatarSelector/AvatarSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAS7D,eAAO,MAAM,cAAc,GAAI,
|
|
1
|
+
{"version":3,"file":"AvatarSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/AvatarSelector/AvatarSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAS7D,eAAO,MAAM,cAAc,GAAI,uJAkB5B,mBAAmB,4CAwMrB,CAAC"}
|
|
@@ -18,6 +18,8 @@ export interface AvatarSelection {
|
|
|
18
18
|
file?: File;
|
|
19
19
|
}
|
|
20
20
|
export interface AvatarSelectorProps {
|
|
21
|
+
/** Whether the avatar selector is editable */
|
|
22
|
+
editable?: boolean;
|
|
21
23
|
/** Whether the menu is opened */
|
|
22
24
|
opened: boolean;
|
|
23
25
|
/** Callback when the menu is opened */
|
|
@@ -30,16 +32,8 @@ export interface AvatarSelectorProps {
|
|
|
30
32
|
onAvatarSelect?: (avatar: AvatarData) => void;
|
|
31
33
|
/** Callback when the remove button is clicked */
|
|
32
34
|
onRemove?: () => void;
|
|
33
|
-
/** @deprecated Use avatar prop instead */
|
|
34
|
-
value?: string | File;
|
|
35
|
-
/** @deprecated Use onAvatarSelect instead */
|
|
36
|
-
onEmojiSelect?: (emoji: string) => void;
|
|
37
|
-
/** @deprecated Use onAvatarSelect instead */
|
|
38
|
-
onImageSelect?: (file: File) => void;
|
|
39
|
-
/** @deprecated Use onAvatarSelect instead */
|
|
40
|
-
onIconSelect?: (iconName: string) => void;
|
|
41
35
|
/** Size of the avatar */
|
|
42
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
36
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | number;
|
|
43
37
|
/** Whether the component is loading */
|
|
44
38
|
loading?: boolean;
|
|
45
39
|
/** Whether to show a placeholder when no avatar is selected */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarSelector.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/AvatarSelector/AvatarSelector.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAGpD,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAErC,MAAM,WAAW,eAAe;IAC9B,4EAA4E;IAC5E,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,kCAAkC;IAClC,IAAI,EAAE,UAAU,CAAC;IACjB,sDAAsD;IACtD,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AAED,MAAM,WAAW,mBAAmB;IAClC,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,uCAAuC;IACvC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,uCAAuC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"AvatarSelector.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/AvatarSelector/AvatarSelector.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/Property/LinkProperty/LinkProperty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAoBpD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '../../../../types/global';
|
|
3
|
+
export interface LinkPropertyProps {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: React.ComponentType<IconProps>;
|
|
6
|
+
href: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=LinkProperty.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkProperty.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/Property/LinkProperty/LinkProperty.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;CAClD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/Property/LinkProperty/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/Property/NumberProperty/NumberProperty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA4DxD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '../../../../types/global';
|
|
3
|
+
export interface NumberPropertyProps {
|
|
4
|
+
label: string;
|
|
5
|
+
icon: React.ComponentType<IconProps>;
|
|
6
|
+
value: number | null;
|
|
7
|
+
onChange?: (value: number | null) => void;
|
|
8
|
+
editable?: boolean;
|
|
9
|
+
format?: (value: number) => string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=NumberProperty.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberProperty.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/Property/NumberProperty/NumberProperty.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/Property/NumberProperty/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageProperty.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Property/PageProperty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAuEpD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '../../../types/global';
|
|
3
|
+
import { GroupProps } from '@mantine/core';
|
|
4
|
+
export interface PagePropertyProps extends GroupProps {
|
|
5
|
+
label: string;
|
|
6
|
+
icon: React.ComponentType<IconProps>;
|
|
7
|
+
value: React.ReactNode;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
description?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
editable?: boolean;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=PageProperty.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageProperty.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/organisms/Property/PageProperty.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SelectUserPropertyProps } from './SelectUserProperty.types';
|
|
3
|
+
/**
|
|
4
|
+
* SelectUserProperty Component
|
|
5
|
+
*
|
|
6
|
+
* A property component for selecting one or multiple users with search,
|
|
7
|
+
* infinite scroll, and chip display for selected users.
|
|
8
|
+
* Uses Combobox with PillsInput for inline chip display and search.
|
|
9
|
+
*/
|
|
10
|
+
export declare const SelectUserProperty: React.FC<SelectUserPropertyProps>;
|
|
11
|
+
//# sourceMappingURL=SelectUserProperty.d.ts.map
|
package/dist/types/components/organisms/Property/SelectUserProperty/SelectUserProperty.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectUserProperty.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/Property/SelectUserProperty/SelectUserProperty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAiBtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAerE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA8chE,CAAC"}
|
package/dist/types/components/organisms/Property/SelectUserProperty/SelectUserProperty.types.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from '../../../../types/global';
|
|
3
|
+
import { AvatarData } from '../../../atoms/BoxAvatar/BoxAvatar.types';
|
|
4
|
+
/**
|
|
5
|
+
* Represents a user that can be selected
|
|
6
|
+
*/
|
|
7
|
+
export interface SelectUser {
|
|
8
|
+
/** Unique identifier for the user */
|
|
9
|
+
id: string;
|
|
10
|
+
/** User's display name */
|
|
11
|
+
name: string;
|
|
12
|
+
/** User's email address */
|
|
13
|
+
email: string;
|
|
14
|
+
/** User's avatar (URL string or AvatarData object) */
|
|
15
|
+
avatar: AvatarData;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Props for the SelectUserProperty component
|
|
19
|
+
*/
|
|
20
|
+
export interface SelectUserPropertyProps {
|
|
21
|
+
/** Property label */
|
|
22
|
+
label: string;
|
|
23
|
+
/** Icon component for the property */
|
|
24
|
+
icon: React.ComponentType<IconProps>;
|
|
25
|
+
/** Selected user ID(s) - string for single mode, string[] for multiple mode */
|
|
26
|
+
value?: string | string[];
|
|
27
|
+
/** Array of available users */
|
|
28
|
+
users: SelectUser[];
|
|
29
|
+
/** Callback when selection changes */
|
|
30
|
+
onChange?: (value: string | string[]) => void;
|
|
31
|
+
/** Placeholder text when no users are selected */
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
/** Whether to allow multiple user selection */
|
|
34
|
+
multiple?: boolean;
|
|
35
|
+
/** Whether the property is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Callback for remote search - receives search query and returns users */
|
|
38
|
+
onSearch?: (query: string) => Promise<SelectUser[]>;
|
|
39
|
+
/** Whether search should be debounced (default: true) */
|
|
40
|
+
debounceSearch?: boolean;
|
|
41
|
+
/** Debounce delay in milliseconds (default: 300) */
|
|
42
|
+
debounceDelay?: number;
|
|
43
|
+
/** Callback for loading more users (infinite scroll) */
|
|
44
|
+
onLoadMore?: () => Promise<SelectUser[]>;
|
|
45
|
+
/** Whether more users are available to load */
|
|
46
|
+
hasMore?: boolean;
|
|
47
|
+
/** Whether search results are currently loading */
|
|
48
|
+
loading?: boolean;
|
|
49
|
+
/** Whether the property is editable */
|
|
50
|
+
editable?: boolean;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=SelectUserProperty.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectUserProperty.types.d.ts","sourceRoot":"","sources":["../../../../../../src/components/organisms/Property/SelectUserProperty/SelectUserProperty.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAEtE;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,MAAM,EAAE,UAAU,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACrC,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,+BAA+B;IAC/B,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IACpD,yDAAyD;IACzD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,oDAAoD;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IACzC,+CAA+C;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|