@gostudent/shared-ui-library 1.27.0-DT-17005.2 → 1.27.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/dist/index.js +3017 -3334
- package/dist/src/components/Calendar/Calendar.d.ts +2 -2
- package/dist/src/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/src/compositions/CalendarTrigger/CalendarTrigger.d.ts +5 -1
- package/dist/src/compositions/CalendarTrigger/CalendarTrigger.d.ts.map +1 -1
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/themes/theme-gs.css +2 -2
- package/dist/themes/theme-sk.css +3 -3
- package/package.json +1 -1
- package/src/tokens/output/gs/semantic-colors/variables.css +2 -2
- package/src/tokens/output/sk/semantic-colors/variables.css +1 -1
- package/src/tokens/output/sk/semantic-font-desktop/variables.css +2 -2
- package/dist/src/compositions/StudentLessonCard/StudentLessonCard.d.ts +0 -57
- package/dist/src/compositions/StudentLessonCard/StudentLessonCard.d.ts.map +0 -1
- package/dist/src/compositions/StudentLessonCard/StudentLessonCard.figma.d.ts +0 -2
- package/dist/src/compositions/StudentLessonCard/StudentLessonCard.figma.d.ts.map +0 -1
- package/dist/src/compositions/StudentLessonCard/StudentLessonCardFooter.d.ts +0 -26
- package/dist/src/compositions/StudentLessonCard/StudentLessonCardFooter.d.ts.map +0 -1
- package/dist/src/compositions/StudentLessonCard/StudentLessonCardHeader.d.ts +0 -14
- package/dist/src/compositions/StudentLessonCard/StudentLessonCardHeader.d.ts.map +0 -1
- package/dist/src/compositions/StudentLessonCard/StudentLessonCardSkeleton.d.ts +0 -5
- package/dist/src/compositions/StudentLessonCard/StudentLessonCardSkeleton.d.ts.map +0 -1
- package/dist/src/compositions/StudentLessonCard/avatarFit.d.ts +0 -24
- package/dist/src/compositions/StudentLessonCard/avatarFit.d.ts.map +0 -1
- package/dist/src/compositions/StudentLessonCard/index.d.ts +0 -5
- package/dist/src/compositions/StudentLessonCard/index.d.ts.map +0 -1
- package/dist/src/compositions/TutorDetails/TutorDetails.d.ts +0 -22
- package/dist/src/compositions/TutorDetails/TutorDetails.d.ts.map +0 -1
- package/dist/src/compositions/TutorDetails/index.d.ts +0 -3
- package/dist/src/compositions/TutorDetails/index.d.ts.map +0 -1
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { StudentLessonCardClassmate, StudentLessonCardLabels, FeedbackState, LessonModality, LessonState, LessonType } from './StudentLessonCard';
|
|
2
|
-
|
|
3
|
-
interface StudentLessonCardFooterProps {
|
|
4
|
-
modality: LessonModality;
|
|
5
|
-
type: LessonType;
|
|
6
|
-
time: string;
|
|
7
|
-
lessonState: LessonState;
|
|
8
|
-
feedbackState: FeedbackState;
|
|
9
|
-
tutor: {
|
|
10
|
-
name: string;
|
|
11
|
-
avatarSrc?: string;
|
|
12
|
-
};
|
|
13
|
-
classmates: StudentLessonCardClassmate[];
|
|
14
|
-
room?: string;
|
|
15
|
-
lessonCenter?: string;
|
|
16
|
-
isInProgress: boolean;
|
|
17
|
-
isStartLessonDisabled: boolean;
|
|
18
|
-
onStartLesson?: () => void;
|
|
19
|
-
onWorkspace?: () => void;
|
|
20
|
-
onRateLesson?: () => void;
|
|
21
|
-
onCheckFeedback?: () => void;
|
|
22
|
-
labels: Required<StudentLessonCardLabels>;
|
|
23
|
-
}
|
|
24
|
-
export declare function StudentLessonCardFooter({ modality, type, time, lessonState, feedbackState, tutor, classmates, room, lessonCenter, isInProgress, isStartLessonDisabled, onStartLesson, onWorkspace, onRateLesson, onCheckFeedback, labels, }: StudentLessonCardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=StudentLessonCardFooter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StudentLessonCardFooter.d.ts","sourceRoot":"","sources":["../../../../src/compositions/StudentLessonCard/StudentLessonCardFooter.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,0BAA0B,EAC1B,uBAAuB,EACvB,aAAa,EACb,cAAc,EACd,WAAW,EACX,UAAU,EACX,MAAM,qBAAqB,CAAC;AAG7B,UAAU,4BAA4B;IACpC,QAAQ,EAAE,cAAc,CAAC;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,UAAU,EAAE,0BAA0B,EAAE,CAAC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,MAAM,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC;CAC3C;AAED,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,aAAa,EACb,KAAK,EACL,UAAU,EACV,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,aAAa,EACb,WAAW,EACX,YAAY,EACZ,eAAe,EACf,MAAM,GACP,EAAE,4BAA4B,2CAuH9B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { StudentLessonCardLabels, StudentLessonCardMenuItem, LessonModality, LessonType } from './StudentLessonCard';
|
|
2
|
-
|
|
3
|
-
interface StudentLessonCardHeaderProps {
|
|
4
|
-
title: string;
|
|
5
|
-
modality: LessonModality;
|
|
6
|
-
type: LessonType;
|
|
7
|
-
subjects: string[];
|
|
8
|
-
isInProgress: boolean;
|
|
9
|
-
menuItems?: StudentLessonCardMenuItem[];
|
|
10
|
-
labels: Required<StudentLessonCardLabels>;
|
|
11
|
-
}
|
|
12
|
-
export declare function StudentLessonCardHeader({ title, modality, subjects, isInProgress, menuItems, labels, }: StudentLessonCardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=StudentLessonCardHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StudentLessonCardHeader.d.ts","sourceRoot":"","sources":["../../../../src/compositions/StudentLessonCard/StudentLessonCardHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,cAAc,EACd,UAAU,EACX,MAAM,qBAAqB,CAAC;AAG7B,UAAU,4BAA4B;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,cAAc,CAAC;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,yBAAyB,EAAE,CAAC;IACxC,MAAM,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC;CAC3C;AAED,wBAAgB,uBAAuB,CAAC,EACtC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,MAAM,GACP,EAAE,4BAA4B,2CA8E9B"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export interface StudentLessonCardSkeletonProps {
|
|
2
|
-
className?: string;
|
|
3
|
-
}
|
|
4
|
-
export declare function StudentLessonCardSkeleton({ className }: StudentLessonCardSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=StudentLessonCardSkeleton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StudentLessonCardSkeleton.d.ts","sourceRoot":"","sources":["../../../../src/compositions/StudentLessonCard/StudentLessonCardSkeleton.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,8BAA8B;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,yBAAyB,CAAC,EAAE,SAAS,EAAE,EAAE,8BAA8B,2CAatF"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure helper for the space-aware classmate avatar group in StudentLessonCard.
|
|
3
|
-
*
|
|
4
|
-
* Given the measured width available to the avatar group, returns how many avatars
|
|
5
|
-
* should be shown before collapsing the rest into a "+N" overflow badge. The return
|
|
6
|
-
* value maps directly onto AvatarGroup's `max` prop (avatars shown before overflow;
|
|
7
|
-
* the badge renders only when `total > max`).
|
|
8
|
-
*/
|
|
9
|
-
export interface ComputeVisibleAvatarCountArgs {
|
|
10
|
-
/** Measured content width of the avatar wrapper, in px. `null`/`0` → fallback. */
|
|
11
|
-
availableWidth: number | null;
|
|
12
|
-
/** Total number of classmate avatars. */
|
|
13
|
-
total: number;
|
|
14
|
-
/** Avatar diameter in px. Avatar "sm" = 2rem = 32px. */
|
|
15
|
-
avatarSize?: number;
|
|
16
|
-
/** Negative overlap between consecutive avatars, in px. AvatarGroup default = 9. */
|
|
17
|
-
overlap?: number;
|
|
18
|
-
/** "+N" badge diameter in px. --avatar-md = 2.5rem = 40px. */
|
|
19
|
-
badgeSize?: number;
|
|
20
|
-
/** Count to return when width is unknown (initial render). */
|
|
21
|
-
fallback?: number;
|
|
22
|
-
}
|
|
23
|
-
export declare function computeVisibleAvatarCount({ availableWidth, total, avatarSize, overlap, badgeSize, fallback, }: ComputeVisibleAvatarCountArgs): number;
|
|
24
|
-
//# sourceMappingURL=avatarFit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"avatarFit.d.ts","sourceRoot":"","sources":["../../../../src/compositions/StudentLessonCard/avatarFit.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,6BAA6B;IAC5C,kFAAkF;IAClF,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAQD,wBAAgB,yBAAyB,CAAC,EACxC,cAAc,EACd,KAAK,EACL,UAAe,EACf,OAAW,EACX,SAAc,EACd,QAAY,GACb,EAAE,6BAA6B,GAAG,MAAM,CAwBxC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { StudentLessonCard } from './StudentLessonCard';
|
|
2
|
-
export type { StudentLessonCardProps, StudentLessonCardClassmate, StudentLessonCardMenuItem, StudentLessonCardLabels, } from './StudentLessonCard';
|
|
3
|
-
export { StudentLessonCardSkeleton } from './StudentLessonCardSkeleton';
|
|
4
|
-
export type { StudentLessonCardSkeletonProps } from './StudentLessonCardSkeleton';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/compositions/StudentLessonCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EACV,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,YAAY,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AvatarStatus } from '../../components/Avatar';
|
|
2
|
-
|
|
3
|
-
export type TutorDetailsSize = 'sm' | 'md';
|
|
4
|
-
export interface TutorDetailsProps {
|
|
5
|
-
/** Tutor display name — also used to derive the avatar initials/colour. */
|
|
6
|
-
name: string;
|
|
7
|
-
/** Optional avatar image URL. */
|
|
8
|
-
avatarSrc?: string;
|
|
9
|
-
/** Forwarded to the internal Avatar's `status` prop (renders a done/pending badge). */
|
|
10
|
-
status?: AvatarStatus;
|
|
11
|
-
/** Controls avatar + text sizing. Defaults to `md`. */
|
|
12
|
-
size?: TutorDetailsSize;
|
|
13
|
-
/** Truncates the name with an ellipsis on mobile when it overflows. Off by default; full name shows from the tablet breakpoint up. */
|
|
14
|
-
truncate?: boolean;
|
|
15
|
-
/** Dims the tutor to 50% opacity, e.g. when unavailable. */
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
/** Tooltip text shown when hovering/focusing a disabled tutor. */
|
|
18
|
-
disabledLabel?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare function TutorDetails({ name, avatarSrc, status, size, truncate, disabled, disabledLabel, className, }: TutorDetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
//# sourceMappingURL=TutorDetails.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TutorDetails.d.ts","sourceRoot":"","sources":["../../../../src/compositions/TutorDetails/TutorDetails.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIxE,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,iBAAiB;IAChC,2EAA2E;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,uDAAuD;IACvD,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,sIAAsI;IACtI,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kEAAkE;IAClE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,SAAS,EACT,MAAM,EACN,IAAW,EACX,QAAgB,EAChB,QAAgB,EAChB,aAA6B,EAC7B,SAAS,GACV,EAAE,iBAAiB,2CAqBnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/compositions/TutorDetails/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
|