@stachelock/ui 0.6.1 → 0.6.3
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/AvatarIcon-kcEI0AWe.js +4 -0
- package/dist/AvatarImage-YFR2etb8.js +4 -0
- package/dist/AvatarInitials-B7wCnBX9.js +4 -0
- package/dist/composables/index.js +33 -30
- package/dist/index.js +3409 -1140
- package/dist/src/components/UiBanner.d.ts +1 -1
- package/dist/src/components/UiLoadingDots.d.ts +1 -1
- package/dist/src/components/UiMenu.d.ts +1 -1
- package/dist/src/components/UiModal.d.ts +1 -1
- package/dist/src/components/avatars/AvatarIcon.d.ts +18 -0
- package/dist/src/components/avatars/AvatarImage.d.ts +25 -0
- package/dist/src/components/avatars/AvatarInitials.d.ts +15 -0
- package/dist/src/components/avatars/AvatarWithText.d.ts +129 -0
- package/dist/src/components/avatars/index.d.ts +4 -0
- package/dist/src/components/collection-editor/CollectionItemList.d.ts +42 -0
- package/dist/src/components/collection-editor/OrganizationsEditor.d.ts +29 -0
- package/dist/src/components/collection-editor/RelatedNamesEditor.d.ts +26 -0
- package/dist/src/components/collection-editor/SocialLinksEditor.d.ts +26 -0
- package/dist/src/components/collection-editor/index.d.ts +5 -0
- package/dist/src/components/formatters/DateFormatter.d.ts +119 -0
- package/dist/src/components/formatters/DateRangeFormatter.d.ts +63 -0
- package/dist/src/components/formatters/index.d.ts +2 -0
- package/dist/src/components/forms/FormFieldWrapper.d.ts +1 -1
- package/dist/src/components/icons/brands/DiscordBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/FacebookBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/GitHubBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/InstagramBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/LinkedInBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/PinterestBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/SnapchatBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/ThreadsBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/TikTokBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/TwitchBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/XBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/YouTubeBrandIcon.d.ts +2 -0
- package/dist/src/components/icons/brands/index.d.ts +12 -0
- package/dist/src/components/icons/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +5 -0
- package/dist/src/components/inputs/AddressInput.d.ts +1 -1
- package/dist/src/components/inputs/ComboboxInput.d.ts +2 -2
- package/dist/src/components/inputs/DatepickerInput.d.ts +17 -17
- package/dist/src/components/inputs/EmailInput.d.ts +2 -2
- package/dist/src/components/inputs/ImageDropzoneInput.d.ts +326 -0
- package/dist/src/components/inputs/PhoneInput.d.ts +2 -2
- package/dist/src/components/inputs/RichTextInput.d.ts +2 -2
- package/dist/src/components/inputs/SelectInput.d.ts +2 -2
- package/dist/src/components/inputs/SelectTextInput.d.ts +4 -4
- package/dist/src/components/inputs/TagifyInput.d.ts +2 -2
- package/dist/src/components/inputs/TextInput.d.ts +3 -3
- package/dist/src/components/inputs/index.d.ts +1 -0
- package/dist/src/components/layouts/CardLayout.d.ts +1 -1
- package/dist/src/components/maps/UiInfoWindow.d.ts +2 -2
- package/dist/src/components/maps/UiMap.d.ts +1 -1
- package/dist/src/components/maps/UiMapAll.d.ts +6 -6
- package/dist/src/components/maps/UiMapMarker.d.ts +2 -2
- package/dist/src/components/modals/BaseModal.d.ts +1 -1
- package/dist/src/components/profiles/BentoProfileLayout.d.ts +9 -0
- package/dist/src/components/profiles/ProfileCard.d.ts +30 -0
- package/dist/src/components/profiles/ProfileContactCard.d.ts +12 -0
- package/dist/src/components/profiles/ProfileHeaderCard.d.ts +20 -0
- package/dist/src/components/profiles/ProfileLocationCard.d.ts +17 -0
- package/dist/src/components/profiles/ProfileOrganizationsCard.d.ts +11 -0
- package/dist/src/components/profiles/ProfilePersonalCard.d.ts +10 -0
- package/dist/src/components/profiles/ProfileProfessionalCard.d.ts +11 -0
- package/dist/src/components/profiles/ProfileRelatedNamesCard.d.ts +11 -0
- package/dist/src/components/profiles/index.d.ts +9 -0
- package/dist/src/components/wrappers/BackgroundGradientWrapper.d.ts +1 -1
- package/dist/src/composables/index.d.ts +1 -0
- package/dist/src/composables/useCollectionEditor.d.ts +64 -0
- package/dist/src/composables/useNotifications.d.ts +4 -4
- package/dist/src/types/collection-editor.d.ts +134 -0
- package/dist/src/types/index.d.ts +2 -0
- package/dist/src/types/profiles.d.ts +149 -0
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/dist/useCollectionEditor-BYyoAT0U.js +121 -0
- package/package.json +1 -1
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Profile component types
|
|
3
|
+
*
|
|
4
|
+
* Types for the Bento-style profile layout components
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Profile image/avatar information
|
|
8
|
+
*/
|
|
9
|
+
export interface ProfileImage {
|
|
10
|
+
url?: string;
|
|
11
|
+
public_id?: string;
|
|
12
|
+
secure_url?: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Professional information
|
|
17
|
+
*/
|
|
18
|
+
export interface ProfessionalInfo {
|
|
19
|
+
title?: string;
|
|
20
|
+
company?: string;
|
|
21
|
+
department?: string;
|
|
22
|
+
linkedin?: string;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Address information
|
|
27
|
+
*/
|
|
28
|
+
export interface AddressInfo {
|
|
29
|
+
name?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
street?: string;
|
|
32
|
+
suite?: string;
|
|
33
|
+
city?: string;
|
|
34
|
+
state?: string;
|
|
35
|
+
zip?: string;
|
|
36
|
+
country?: string;
|
|
37
|
+
geocode?: {
|
|
38
|
+
location?: {
|
|
39
|
+
lat: number;
|
|
40
|
+
lng: number;
|
|
41
|
+
};
|
|
42
|
+
formatted_address?: string;
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
};
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Social link item
|
|
49
|
+
*/
|
|
50
|
+
export interface SocialLinkItem {
|
|
51
|
+
id?: string;
|
|
52
|
+
platform: string;
|
|
53
|
+
handle?: string;
|
|
54
|
+
url?: string;
|
|
55
|
+
[key: string]: unknown;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Organization/position item
|
|
59
|
+
*/
|
|
60
|
+
export interface OrganizationItem {
|
|
61
|
+
id?: string;
|
|
62
|
+
organization?: string | {
|
|
63
|
+
name: string;
|
|
64
|
+
id?: string;
|
|
65
|
+
};
|
|
66
|
+
position?: string | {
|
|
67
|
+
name: string;
|
|
68
|
+
id?: string;
|
|
69
|
+
};
|
|
70
|
+
position_prefix?: string;
|
|
71
|
+
position_suffix?: string;
|
|
72
|
+
start_date?: Date | string | null;
|
|
73
|
+
end_date?: Date | string | null;
|
|
74
|
+
status?: string;
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Related name item
|
|
79
|
+
*/
|
|
80
|
+
export interface RelatedNameItem {
|
|
81
|
+
id?: string;
|
|
82
|
+
name?: string;
|
|
83
|
+
first_name?: string;
|
|
84
|
+
last_name?: string;
|
|
85
|
+
label?: string | {
|
|
86
|
+
name: string;
|
|
87
|
+
id?: string;
|
|
88
|
+
};
|
|
89
|
+
birthday?: Date | string | null;
|
|
90
|
+
relationship?: string;
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Profile data object
|
|
95
|
+
* Flexible structure to accommodate different data sources
|
|
96
|
+
*/
|
|
97
|
+
export interface ProfileData {
|
|
98
|
+
id?: string;
|
|
99
|
+
uid?: string;
|
|
100
|
+
name?: string;
|
|
101
|
+
first_name?: string;
|
|
102
|
+
last_name?: string;
|
|
103
|
+
nickname?: string;
|
|
104
|
+
prefix?: string;
|
|
105
|
+
suffix?: string;
|
|
106
|
+
email?: string;
|
|
107
|
+
phone?: string;
|
|
108
|
+
website?: string;
|
|
109
|
+
birthday?: Date | string | null;
|
|
110
|
+
profile_image?: ProfileImage | string;
|
|
111
|
+
image?: string;
|
|
112
|
+
professional?: ProfessionalInfo;
|
|
113
|
+
address?: AddressInfo | AddressInfo[];
|
|
114
|
+
latLng?: {
|
|
115
|
+
lat: number;
|
|
116
|
+
lng: number;
|
|
117
|
+
};
|
|
118
|
+
_geoloc?: {
|
|
119
|
+
lat: number;
|
|
120
|
+
lng: number;
|
|
121
|
+
};
|
|
122
|
+
social?: SocialLinkItem[];
|
|
123
|
+
organizations?: OrganizationItem[];
|
|
124
|
+
relatedNames?: RelatedNameItem[];
|
|
125
|
+
related_names?: RelatedNameItem[];
|
|
126
|
+
status?: 'active' | 'inactive' | string;
|
|
127
|
+
[key: string]: unknown;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Profile preview configuration
|
|
131
|
+
*/
|
|
132
|
+
export interface ProfilePreviewConfig {
|
|
133
|
+
showContact?: boolean;
|
|
134
|
+
showLocation?: boolean;
|
|
135
|
+
showProfessional?: boolean;
|
|
136
|
+
showPersonal?: boolean;
|
|
137
|
+
showOrganizations?: boolean;
|
|
138
|
+
showRelatedNames?: boolean;
|
|
139
|
+
showSocial?: boolean;
|
|
140
|
+
animationEnabled?: boolean;
|
|
141
|
+
animationDelay?: number;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Props for BentoProfileLayout
|
|
145
|
+
*/
|
|
146
|
+
export interface BentoProfileLayoutProps {
|
|
147
|
+
profile: ProfileData;
|
|
148
|
+
config?: ProfilePreviewConfig;
|
|
149
|
+
}
|