@medway-ui/core 1.50.0 → 1.52.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/COMPONENTS.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @medway-ui/core — Component Reference
2
2
 
3
3
  > **Auto-generated — do not edit manually.**
4
- > Package `@medway-ui/core` · v1.50.0 · Generated 2026-11-24
4
+ > Package `@medway-ui/core` · v1.52.0 · Generated 2026-11-26
5
5
 
6
6
  All components require React 18+ and are client components (`"use client"`).
7
7
 
@@ -32,7 +32,8 @@ import type { ButtonProps } from "@medway-ui/core";
32
32
  - [CardTopic](#cardtopic)
33
33
  - [CardContinue](#cardcontinue)
34
34
  - [CardMission](#cardmission)
35
- - [CardMission](#cardmission)
35
+ - [CardFocus](#cardfocus)
36
+ - [CardFocus](#cardfocus)
36
37
  - [CardLesson](#cardlesson)
37
38
  - [CardNews](#cardnews)
38
39
  - [Carousel](#carousel)
@@ -596,7 +597,138 @@ type CardTopicProps = | (CollapsibleProps & {
596
597
 
597
598
  ---
598
599
 
599
- ## CardMission
600
+ ## CardFocus
601
+
602
+ **Sub-components:** `CardFocus`, `CardFocusAction`, `CardFocusActions`, `CardFocusAvatar`, `CardFocusCategory`, `CardFocusContent`, `CardFocusCount`, `CardFocusCounts`, `CardFocusFooter`, `CardFocusHeader`, `CardFocusHeading`, `CardFocusIndexLevel`, `CardFocusIndicator`, `CardFocusIndicators`, `CardFocusLastContact`, `CardFocusLastScore`, `CardFocusLive`, `CardFocusMeta`, `CardFocusMetaItem`, `CardFocusMore`, `CardFocusProgress`, `CardFocusProgressLabel`, `CardFocusRemove`, `CardFocusReviewCount`, `CardFocusSettings`, `CardFocusStat`, `CardFocusStatus`, `CardFocusTimeRemaining`, `CardFocusTitle`, `CardFocusTurbo`, `CardFocusUndo`
603
+
604
+ **Exported types:** `CardFocusAvatarProps`, `CardFocusCountProps`, `CardFocusIndexLevelProps`, `CardFocusIndicatorProps`, `CardFocusLastContactProps`, `CardFocusLastScoreProps`, `CardFocusLiveProps`, `CardFocusMetaItemProps`, `CardFocusProgressProps`, `CardFocusProps`, `CardFocusReviewCountProps`, `CardFocusSpecialty`, `CardFocusStatProps`, `CardFocusStatusProps`, `CardFocusStatusType`, `CardFocusTurboProps`, `CardFocusUndoProps`
605
+
606
+ > **Radix UI base:** `Progress` — sub-components forward all Radix UI props.
607
+
608
+ ### `CardFocusProps`
609
+
610
+ | Prop | Type | Required |
611
+ |------|------|:--------:|
612
+ | `specialty` | `CardFocusSpecialty` | |
613
+ | `edit` | `boolean` | |
614
+
615
+ ### `CardFocusIndexLevelProps`
616
+
617
+ *Extends: Omit<IndexLevelAnimatedProps, "specialty">*
618
+
619
+ | Prop | Type | Required |
620
+ |------|------|:--------:|
621
+ | `hint` | `ReactNode` | |
622
+ | `iconOnly` | `boolean` | |
623
+
624
+ ### `CardFocusIndicatorProps`
625
+
626
+ | Prop | Type | Required |
627
+ |------|------|:--------:|
628
+ | `icon` | `ReactNode` | ✓ |
629
+ | `label` | `string` | ✓ |
630
+
631
+ ### `CardFocusReviewCountProps`
632
+
633
+ | Prop | Type | Required |
634
+ |------|------|:--------:|
635
+ | `count` | `number` | ✓ |
636
+ | `label` | `string` | |
637
+
638
+ ### `CardFocusMetaItemProps`
639
+
640
+ | Prop | Type | Required |
641
+ |------|------|:--------:|
642
+ | `icon` | `ReactNode` | |
643
+
644
+ ### `CardFocusLastContactProps`
645
+
646
+ | Prop | Type | Required |
647
+ |------|------|:--------:|
648
+ | `score` | `ReactNode` | |
649
+
650
+ ### `CardFocusLastScoreProps`
651
+
652
+ | Prop | Type | Required |
653
+ |------|------|:--------:|
654
+ | `value` | `number` | ✓ |
655
+ | `label` | `string` | |
656
+ | `tooltip` | `string \| null` | |
657
+
658
+ ### `CardFocusCountProps`
659
+
660
+ | Prop | Type | Required |
661
+ |------|------|:--------:|
662
+ | `specialty` | `Exclude<CardFocusSpecialty, "default">` | ✓ |
663
+ | `count` | `number` | ✓ |
664
+
665
+ ### `CardFocusProgressProps`
666
+
667
+ *Extends: Omit<ComponentProps<typeof ProgressPrimitive.Root>, "value">*
668
+
669
+ | Prop | Type | Required |
670
+ |------|------|:--------:|
671
+ | `value` | `number \| null` | |
672
+ | `correct` | `number` | |
673
+
674
+ ### `CardFocusAvatarProps`
675
+
676
+ | Prop | Type | Required |
677
+ |------|------|:--------:|
678
+ | `src` | `string` | |
679
+ | `alt` | `string` | |
680
+ | `shape` | `"circle" \| "square"` | |
681
+ | `tooltip` | `string` | |
682
+
683
+ ### `CardFocusStatusProps`
684
+
685
+ *Extends: ButtonProps*
686
+
687
+ | Prop | Type | Required |
688
+ |------|------|:--------:|
689
+ | `status` | `CardFocusStatusType` | ✓ |
690
+
691
+ ### `CardFocusUndoProps`
692
+
693
+ *Extends: ButtonProps*
694
+
695
+ | Prop | Type | Required |
696
+ |------|------|:--------:|
697
+ | `label` | `string` | |
698
+
699
+ ### `CardFocusStatProps`
700
+
701
+ | Prop | Type | Required |
702
+ |------|------|:--------:|
703
+ | `icon` | `ReactNode` | ✓ |
704
+
705
+ ### `CardFocusSpecialty` *(type)*
706
+
707
+ ```typescript
708
+ type CardFocusSpecialty = "default" | "cm" | "go" | "cir" | "ped" | "prev"
709
+ ```
710
+
711
+ ### `CardFocusStatusType` *(type)*
712
+
713
+ ```typescript
714
+ type CardFocusStatusType = "done" | "skipped" | "postponed"
715
+ ```
716
+
717
+ ### `CardFocusLiveProps` *(type)*
718
+
719
+ ```typescript
720
+ type CardFocusLiveProps = CardFocusChipProps
721
+ ```
722
+
723
+ ### `CardFocusTurboProps` *(type)*
724
+
725
+ ```typescript
726
+ type CardFocusTurboProps = CardFocusChipProps
727
+ ```
728
+
729
+ ---
730
+
731
+ ## CardFocus
600
732
 
601
733
  **Sub-components:** `CardLearn`, `CardLearnActions`, `CardLearnBadge`, `CardLearnCategory`, `CardLearnContent`, `CardLearnDescription`, `CardLearnFooter`, `CardLearnHeader`, `CardLearnHeading`, `CardLearnIndicators`, `CardLearnLesson`, `CardLearnMeta`, `CardLearnMore`, `CardLearnPlayButton`, `CardLearnProgress`, `CardLearnProgressLabel`, `CardLearnSchedule`, `CardLearnStatus`, `CardLearnThumbnail`, `CardLearnTimeRemaining`, `CardLearnTitle`
602
734
 
@@ -638,6 +770,10 @@ type CardTopicProps = | (CollapsibleProps & {
638
770
  | `start` | `ReactNode` | ✓ |
639
771
  | `end` | `ReactNode` | ✓ |
640
772
  | `label` | `ReactNode` | |
773
+ | `startOptions` | `string[]` | |
774
+ | `endOptions` | `string[]` | |
775
+ | `onStartChange` | `(value: string) => void` | |
776
+ | `onEndChange` | `(value: string) => void` | |
641
777
 
642
778
  ### `CardLearnSpecialty` *(type)*
643
779
 
@@ -1,6 +1,6 @@
1
1
  # @medway-ui/core — Component Summary
2
2
 
3
- > v1.50.0 · For the full prop/variant reference see `COMPONENTS.md`.
3
+ > v1.52.0 · For the full prop/variant reference see `COMPONENTS.md`.
4
4
 
5
5
  ## Components
6
6
 
@@ -16,7 +16,8 @@
16
16
  - **CardTopic** — variants: default, blocked | sub: CardTopicColumn, CardTopicContent, CardTopicCount, CardTopicNumber, CardTopicProgress, CardTopicTitle, CardTopicTrigger
17
17
  - **CardContinue** — sub: CardContinueButton, CardContinueBreadcrumb, CardContinueContent, CardContinueHeader, CardContinueImage, CardContinueTitle
18
18
  - **CardMission** — sub: CardMissionContent, CardMissionDescription, CardMissionHeader, CardMissionOverline, CardMissionPhase, CardMissionTitle
19
- - **CardMission** — sub: CardLearn, CardLearnActions, CardLearnBadge, CardLearnCategory, CardLearnContent, CardLearnDescription, CardLearnFooter, CardLearnHeader, CardLearnHeading, CardLearnIndicators, CardLearnLesson, CardLearnMeta, CardLearnMore, CardLearnPlayButton, CardLearnProgress, CardLearnProgressLabel, CardLearnSchedule, CardLearnStatus, CardLearnThumbnail, CardLearnTimeRemaining, CardLearnTitle
19
+ - **CardFocus** — Radix: Progress | sub: CardFocusAction, CardFocusActions, CardFocusAvatar, CardFocusCategory, CardFocusContent, CardFocusCount, CardFocusCounts, CardFocusFooter, CardFocusHeader, CardFocusHeading, CardFocusIndexLevel, CardFocusIndicator, CardFocusIndicators, CardFocusLastContact, CardFocusLastScore, CardFocusLive, CardFocusMeta, CardFocusMetaItem, CardFocusMore, CardFocusProgress, CardFocusProgressLabel, CardFocusRemove, CardFocusReviewCount, CardFocusSettings, CardFocusStat, CardFocusStatus, CardFocusTimeRemaining, CardFocusTitle, CardFocusTurbo, CardFocusUndo
20
+ - **CardFocus** — sub: CardLearn, CardLearnActions, CardLearnBadge, CardLearnCategory, CardLearnContent, CardLearnDescription, CardLearnFooter, CardLearnHeader, CardLearnHeading, CardLearnIndicators, CardLearnLesson, CardLearnMeta, CardLearnMore, CardLearnPlayButton, CardLearnProgress, CardLearnProgressLabel, CardLearnSchedule, CardLearnStatus, CardLearnThumbnail, CardLearnTimeRemaining, CardLearnTitle
20
21
  - **CardLesson** — variants: default, blocked | orientation: vertical, horizontal | sub: CardLessonButton, CardLessonContent, CardLessonDuration, CardLessonFooter, CardLessonHeader, CardLessonIcon, CardLessonIcons, CardLessonImage, CardLessonLabel, CardLessonStatus, CardLessonTitle
21
22
  - **CardNews** — variants: default, read, compact | orientation: vertical, horizontal | sub: CardNewsAuthor, CardNewsBody, CardNewsContent, CardNewsDate, CardNewsDescription, CardNewsFooter, CardNewsHeader, CardNewsImage, CardNewsResourceItem, CardNewsResources, CardNewsTags, CardNewsTitle
22
23
  - **Carousel** — orientation: horizontal, vertical | controls: side, floating, outside, inline | direction: previous, next | controlsFrom: always, md, lg | opaque: true, false | edge: start, end | visible: true, false | sub: CarouselAutoplayToggle, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious
@@ -1,7 +1,7 @@
1
1
  # @medway-ui/core — Component Reference
2
2
 
3
3
  > **Auto-generated — do not edit manually.**
4
- > Package `@medway-ui/core` · v1.50.0 · Generated 2026-11-24
4
+ > Package `@medway-ui/core` · v1.52.0 · Generated 2026-11-26
5
5
 
6
6
  All components require React 18+ and are client components (`"use client"`).
7
7
 
@@ -32,7 +32,8 @@ import type { ButtonProps } from "@medway-ui/core";
32
32
  - [CardTopic](#cardtopic)
33
33
  - [CardContinue](#cardcontinue)
34
34
  - [CardMission](#cardmission)
35
- - [CardMission](#cardmission)
35
+ - [CardFocus](#cardfocus)
36
+ - [CardFocus](#cardfocus)
36
37
  - [CardLesson](#cardlesson)
37
38
  - [CardNews](#cardnews)
38
39
  - [Carousel](#carousel)
@@ -596,7 +597,138 @@ type CardTopicProps = | (CollapsibleProps & {
596
597
 
597
598
  ---
598
599
 
599
- ## CardMission
600
+ ## CardFocus
601
+
602
+ **Sub-components:** `CardFocus`, `CardFocusAction`, `CardFocusActions`, `CardFocusAvatar`, `CardFocusCategory`, `CardFocusContent`, `CardFocusCount`, `CardFocusCounts`, `CardFocusFooter`, `CardFocusHeader`, `CardFocusHeading`, `CardFocusIndexLevel`, `CardFocusIndicator`, `CardFocusIndicators`, `CardFocusLastContact`, `CardFocusLastScore`, `CardFocusLive`, `CardFocusMeta`, `CardFocusMetaItem`, `CardFocusMore`, `CardFocusProgress`, `CardFocusProgressLabel`, `CardFocusRemove`, `CardFocusReviewCount`, `CardFocusSettings`, `CardFocusStat`, `CardFocusStatus`, `CardFocusTimeRemaining`, `CardFocusTitle`, `CardFocusTurbo`, `CardFocusUndo`
603
+
604
+ **Exported types:** `CardFocusAvatarProps`, `CardFocusCountProps`, `CardFocusIndexLevelProps`, `CardFocusIndicatorProps`, `CardFocusLastContactProps`, `CardFocusLastScoreProps`, `CardFocusLiveProps`, `CardFocusMetaItemProps`, `CardFocusProgressProps`, `CardFocusProps`, `CardFocusReviewCountProps`, `CardFocusSpecialty`, `CardFocusStatProps`, `CardFocusStatusProps`, `CardFocusStatusType`, `CardFocusTurboProps`, `CardFocusUndoProps`
605
+
606
+ > **Radix UI base:** `Progress` — sub-components forward all Radix UI props.
607
+
608
+ ### `CardFocusProps`
609
+
610
+ | Prop | Type | Required |
611
+ |------|------|:--------:|
612
+ | `specialty` | `CardFocusSpecialty` | |
613
+ | `edit` | `boolean` | |
614
+
615
+ ### `CardFocusIndexLevelProps`
616
+
617
+ *Extends: Omit<IndexLevelAnimatedProps, "specialty">*
618
+
619
+ | Prop | Type | Required |
620
+ |------|------|:--------:|
621
+ | `hint` | `ReactNode` | |
622
+ | `iconOnly` | `boolean` | |
623
+
624
+ ### `CardFocusIndicatorProps`
625
+
626
+ | Prop | Type | Required |
627
+ |------|------|:--------:|
628
+ | `icon` | `ReactNode` | ✓ |
629
+ | `label` | `string` | ✓ |
630
+
631
+ ### `CardFocusReviewCountProps`
632
+
633
+ | Prop | Type | Required |
634
+ |------|------|:--------:|
635
+ | `count` | `number` | ✓ |
636
+ | `label` | `string` | |
637
+
638
+ ### `CardFocusMetaItemProps`
639
+
640
+ | Prop | Type | Required |
641
+ |------|------|:--------:|
642
+ | `icon` | `ReactNode` | |
643
+
644
+ ### `CardFocusLastContactProps`
645
+
646
+ | Prop | Type | Required |
647
+ |------|------|:--------:|
648
+ | `score` | `ReactNode` | |
649
+
650
+ ### `CardFocusLastScoreProps`
651
+
652
+ | Prop | Type | Required |
653
+ |------|------|:--------:|
654
+ | `value` | `number` | ✓ |
655
+ | `label` | `string` | |
656
+ | `tooltip` | `string \| null` | |
657
+
658
+ ### `CardFocusCountProps`
659
+
660
+ | Prop | Type | Required |
661
+ |------|------|:--------:|
662
+ | `specialty` | `Exclude<CardFocusSpecialty, "default">` | ✓ |
663
+ | `count` | `number` | ✓ |
664
+
665
+ ### `CardFocusProgressProps`
666
+
667
+ *Extends: Omit<ComponentProps<typeof ProgressPrimitive.Root>, "value">*
668
+
669
+ | Prop | Type | Required |
670
+ |------|------|:--------:|
671
+ | `value` | `number \| null` | |
672
+ | `correct` | `number` | |
673
+
674
+ ### `CardFocusAvatarProps`
675
+
676
+ | Prop | Type | Required |
677
+ |------|------|:--------:|
678
+ | `src` | `string` | |
679
+ | `alt` | `string` | |
680
+ | `shape` | `"circle" \| "square"` | |
681
+ | `tooltip` | `string` | |
682
+
683
+ ### `CardFocusStatusProps`
684
+
685
+ *Extends: ButtonProps*
686
+
687
+ | Prop | Type | Required |
688
+ |------|------|:--------:|
689
+ | `status` | `CardFocusStatusType` | ✓ |
690
+
691
+ ### `CardFocusUndoProps`
692
+
693
+ *Extends: ButtonProps*
694
+
695
+ | Prop | Type | Required |
696
+ |------|------|:--------:|
697
+ | `label` | `string` | |
698
+
699
+ ### `CardFocusStatProps`
700
+
701
+ | Prop | Type | Required |
702
+ |------|------|:--------:|
703
+ | `icon` | `ReactNode` | ✓ |
704
+
705
+ ### `CardFocusSpecialty` *(type)*
706
+
707
+ ```typescript
708
+ type CardFocusSpecialty = "default" | "cm" | "go" | "cir" | "ped" | "prev"
709
+ ```
710
+
711
+ ### `CardFocusStatusType` *(type)*
712
+
713
+ ```typescript
714
+ type CardFocusStatusType = "done" | "skipped" | "postponed"
715
+ ```
716
+
717
+ ### `CardFocusLiveProps` *(type)*
718
+
719
+ ```typescript
720
+ type CardFocusLiveProps = CardFocusChipProps
721
+ ```
722
+
723
+ ### `CardFocusTurboProps` *(type)*
724
+
725
+ ```typescript
726
+ type CardFocusTurboProps = CardFocusChipProps
727
+ ```
728
+
729
+ ---
730
+
731
+ ## CardFocus
600
732
 
601
733
  **Sub-components:** `CardLearn`, `CardLearnActions`, `CardLearnBadge`, `CardLearnCategory`, `CardLearnContent`, `CardLearnDescription`, `CardLearnFooter`, `CardLearnHeader`, `CardLearnHeading`, `CardLearnIndicators`, `CardLearnLesson`, `CardLearnMeta`, `CardLearnMore`, `CardLearnPlayButton`, `CardLearnProgress`, `CardLearnProgressLabel`, `CardLearnSchedule`, `CardLearnStatus`, `CardLearnThumbnail`, `CardLearnTimeRemaining`, `CardLearnTitle`
602
734
 
@@ -638,6 +770,10 @@ type CardTopicProps = | (CollapsibleProps & {
638
770
  | `start` | `ReactNode` | ✓ |
639
771
  | `end` | `ReactNode` | ✓ |
640
772
  | `label` | `ReactNode` | |
773
+ | `startOptions` | `string[]` | |
774
+ | `endOptions` | `string[]` | |
775
+ | `onStartChange` | `(value: string) => void` | |
776
+ | `onEndChange` | `(value: string) => void` | |
641
777
 
642
778
  ### `CardLearnSpecialty` *(type)*
643
779
 
@@ -1,6 +1,6 @@
1
1
  # @medway-ui/core — Component Summary
2
2
 
3
- > v1.50.0 · For the full prop/variant reference see `COMPONENTS.md`.
3
+ > v1.52.0 · For the full prop/variant reference see `COMPONENTS.md`.
4
4
 
5
5
  ## Components
6
6
 
@@ -16,7 +16,8 @@
16
16
  - **CardTopic** — variants: default, blocked | sub: CardTopicColumn, CardTopicContent, CardTopicCount, CardTopicNumber, CardTopicProgress, CardTopicTitle, CardTopicTrigger
17
17
  - **CardContinue** — sub: CardContinueButton, CardContinueBreadcrumb, CardContinueContent, CardContinueHeader, CardContinueImage, CardContinueTitle
18
18
  - **CardMission** — sub: CardMissionContent, CardMissionDescription, CardMissionHeader, CardMissionOverline, CardMissionPhase, CardMissionTitle
19
- - **CardMission** — sub: CardLearn, CardLearnActions, CardLearnBadge, CardLearnCategory, CardLearnContent, CardLearnDescription, CardLearnFooter, CardLearnHeader, CardLearnHeading, CardLearnIndicators, CardLearnLesson, CardLearnMeta, CardLearnMore, CardLearnPlayButton, CardLearnProgress, CardLearnProgressLabel, CardLearnSchedule, CardLearnStatus, CardLearnThumbnail, CardLearnTimeRemaining, CardLearnTitle
19
+ - **CardFocus** — Radix: Progress | sub: CardFocusAction, CardFocusActions, CardFocusAvatar, CardFocusCategory, CardFocusContent, CardFocusCount, CardFocusCounts, CardFocusFooter, CardFocusHeader, CardFocusHeading, CardFocusIndexLevel, CardFocusIndicator, CardFocusIndicators, CardFocusLastContact, CardFocusLastScore, CardFocusLive, CardFocusMeta, CardFocusMetaItem, CardFocusMore, CardFocusProgress, CardFocusProgressLabel, CardFocusRemove, CardFocusReviewCount, CardFocusSettings, CardFocusStat, CardFocusStatus, CardFocusTimeRemaining, CardFocusTitle, CardFocusTurbo, CardFocusUndo
20
+ - **CardFocus** — sub: CardLearn, CardLearnActions, CardLearnBadge, CardLearnCategory, CardLearnContent, CardLearnDescription, CardLearnFooter, CardLearnHeader, CardLearnHeading, CardLearnIndicators, CardLearnLesson, CardLearnMeta, CardLearnMore, CardLearnPlayButton, CardLearnProgress, CardLearnProgressLabel, CardLearnSchedule, CardLearnStatus, CardLearnThumbnail, CardLearnTimeRemaining, CardLearnTitle
20
21
  - **CardLesson** — variants: default, blocked | orientation: vertical, horizontal | sub: CardLessonButton, CardLessonContent, CardLessonDuration, CardLessonFooter, CardLessonHeader, CardLessonIcon, CardLessonIcons, CardLessonImage, CardLessonLabel, CardLessonStatus, CardLessonTitle
21
22
  - **CardNews** — variants: default, read, compact | orientation: vertical, horizontal | sub: CardNewsAuthor, CardNewsBody, CardNewsContent, CardNewsDate, CardNewsDescription, CardNewsFooter, CardNewsHeader, CardNewsImage, CardNewsResourceItem, CardNewsResources, CardNewsTags, CardNewsTitle
22
23
  - **Carousel** — orientation: horizontal, vertical | controls: side, floating, outside, inline | direction: previous, next | controlsFrom: always, md, lg | opaque: true, false | edge: start, end | visible: true, false | sub: CarouselAutoplayToggle, CarouselContent, CarouselDots, CarouselItem, CarouselNext, CarouselPrevious
@@ -0,0 +1,95 @@
1
+ import { Progress as ProgressPrimitive } from "radix-ui";
2
+ import { type ComponentProps, type ReactNode } from "react";
3
+ import { type ButtonProps } from "./Button.js";
4
+ import { type IndexLevelAnimatedProps } from "./IndexLevelAnimated.js";
5
+ type CardFocusSpecialty = "default" | "cm" | "go" | "cir" | "ped" | "prev";
6
+ type CardFocusStatusType = "done" | "skipped" | "postponed";
7
+ interface CardFocusProps extends ComponentProps<"div"> {
8
+ specialty?: CardFocusSpecialty;
9
+ edit?: boolean;
10
+ }
11
+ interface CardFocusIndexLevelProps extends Omit<IndexLevelAnimatedProps, "specialty"> {
12
+ hint?: ReactNode;
13
+ iconOnly?: boolean;
14
+ }
15
+ interface CardFocusIndicatorProps extends ComponentProps<"span"> {
16
+ icon: ReactNode;
17
+ label: string;
18
+ }
19
+ interface CardFocusReviewCountProps extends ComponentProps<"span"> {
20
+ count: number;
21
+ label?: string;
22
+ }
23
+ interface CardFocusMetaItemProps extends ComponentProps<"span"> {
24
+ icon?: ReactNode;
25
+ }
26
+ interface CardFocusLastContactProps extends ComponentProps<"div"> {
27
+ score?: ReactNode;
28
+ }
29
+ interface CardFocusLastScoreProps extends ComponentProps<"span"> {
30
+ value: number;
31
+ label?: string;
32
+ tooltip?: string | null;
33
+ }
34
+ interface CardFocusCountProps extends ComponentProps<"span"> {
35
+ specialty: Exclude<CardFocusSpecialty, "default">;
36
+ count: number;
37
+ }
38
+ interface CardFocusProgressProps extends Omit<ComponentProps<typeof ProgressPrimitive.Root>, "value"> {
39
+ value?: number | null;
40
+ correct?: number;
41
+ }
42
+ interface CardFocusAvatarProps extends ComponentProps<"span"> {
43
+ src?: string;
44
+ alt?: string;
45
+ shape?: "circle" | "square";
46
+ tooltip?: string;
47
+ }
48
+ interface CardFocusStatusProps extends ButtonProps {
49
+ status: CardFocusStatusType;
50
+ }
51
+ interface CardFocusChipProps extends ComponentProps<"span"> {
52
+ size?: "sm" | "md";
53
+ animated?: boolean;
54
+ }
55
+ type CardFocusLiveProps = CardFocusChipProps;
56
+ type CardFocusTurboProps = CardFocusChipProps;
57
+ interface CardFocusUndoProps extends ButtonProps {
58
+ label?: string;
59
+ }
60
+ interface CardFocusStatProps extends ComponentProps<"span"> {
61
+ icon: ReactNode;
62
+ }
63
+ declare function CardFocus({ className, specialty, edit, ...props }: CardFocusProps): import("react/jsx-runtime").JSX.Element;
64
+ declare function CardFocusHeader({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
65
+ declare function CardFocusIndexLevel({ className, level, hint, iconOnly, size, shortName, label, hideLabel, animated, iconClassName, labelClassName, ringClassName, asChild, ...props }: CardFocusIndexLevelProps): import("react/jsx-runtime").JSX.Element;
66
+ declare function CardFocusLive({ className, children, ...props }: CardFocusChipProps): import("react/jsx-runtime").JSX.Element;
67
+ declare function CardFocusTurbo({ className, children, ...props }: CardFocusChipProps): import("react/jsx-runtime").JSX.Element;
68
+ declare function CardFocusIndicators({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
69
+ declare function CardFocusIndicator({ className, icon, label, ...props }: CardFocusIndicatorProps): import("react/jsx-runtime").JSX.Element;
70
+ declare function CardFocusReviewCount({ className, count, label, ...props }: CardFocusReviewCountProps): import("react/jsx-runtime").JSX.Element;
71
+ declare const CardFocusRemove: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
72
+ declare function CardFocusContent({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
73
+ declare function CardFocusHeading({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
74
+ declare function CardFocusMeta({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
75
+ declare function CardFocusCategory({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
76
+ declare function CardFocusMetaItem({ className, icon, children, ...props }: CardFocusMetaItemProps): import("react/jsx-runtime").JSX.Element;
77
+ declare const CardFocusTitle: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
78
+ declare function CardFocusLastContact({ className, score, children, ...props }: CardFocusLastContactProps): import("react/jsx-runtime").JSX.Element;
79
+ declare function CardFocusLastScore({ className, value, label, tooltip, ...props }: CardFocusLastScoreProps): import("react/jsx-runtime").JSX.Element;
80
+ declare function CardFocusCounts({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
81
+ declare function CardFocusCount({ className, specialty, count, children, ...props }: CardFocusCountProps): import("react/jsx-runtime").JSX.Element;
82
+ declare function CardFocusFooter({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
83
+ declare function CardFocusProgress({ className, value, correct, children, ...props }: CardFocusProgressProps): import("react/jsx-runtime").JSX.Element;
84
+ declare function CardFocusProgressLabel({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
85
+ declare function CardFocusTimeRemaining({ className, children, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
86
+ declare function CardFocusStat({ className, icon, children, ...props }: CardFocusStatProps): import("react/jsx-runtime").JSX.Element;
87
+ declare const CardFocusSettings: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
88
+ declare function CardFocusActions({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
89
+ declare function CardFocusAvatar({ className, src, alt, shape, tooltip, children, ...props }: CardFocusAvatarProps): import("react/jsx-runtime").JSX.Element;
90
+ declare const CardFocusAction: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
91
+ declare const CardFocusStatus: import("react").ForwardRefExoticComponent<Omit<CardFocusStatusProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
92
+ declare const CardFocusMore: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
93
+ declare const CardFocusUndo: import("react").ForwardRefExoticComponent<Omit<CardFocusUndoProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
94
+ export { CardFocus, CardFocusAction, CardFocusActions, CardFocusAvatar, CardFocusCategory, CardFocusContent, CardFocusCount, CardFocusCounts, CardFocusFooter, CardFocusHeader, CardFocusHeading, CardFocusIndexLevel, CardFocusIndicator, CardFocusIndicators, CardFocusLastContact, CardFocusLastScore, CardFocusLive, CardFocusMeta, CardFocusMetaItem, CardFocusMore, CardFocusProgress, CardFocusProgressLabel, CardFocusRemove, CardFocusReviewCount, CardFocusSettings, CardFocusStat, CardFocusStatus, CardFocusTimeRemaining, CardFocusTitle, CardFocusTurbo, CardFocusUndo, };
95
+ export type { CardFocusAvatarProps, CardFocusCountProps, CardFocusIndexLevelProps, CardFocusIndicatorProps, CardFocusLastContactProps, CardFocusLastScoreProps, CardFocusLiveProps, CardFocusMetaItemProps, CardFocusProgressProps, CardFocusProps, CardFocusReviewCountProps, CardFocusSpecialty, CardFocusStatProps, CardFocusStatusProps, CardFocusStatusType, CardFocusTurboProps, CardFocusUndoProps, };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ "use client";
3
+ "use strict";var s=require("react/jsx-runtime"),E=require("radix-ui"),x=require("react"),_=require("./Avatar.js"),C=require("./Button.js"),L=require("./IndexLevel.js"),q=require("./IndexLevelAnimated.js"),j=require("./Tooltip.js"),J=require("../hooks/use-composed-refs.js"),K=require("../hooks/use-id.js"),c=require("../lib/utils.js"),v=require("@medway-ui/icons"),Q=Object.defineProperty,Y=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,S=(a,e,t)=>e in a?Q(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,l=(a,e)=>{for(var t in e||(e={}))M.call(e,t)&&S(a,t,e[t]);if(w)for(var t of w(e))$.call(e,t)&&S(a,t,e[t]);return a},m=(a,e)=>Y(a,Z(e)),i=(a,e)=>{var t={};for(var r in a)M.call(a,r)&&e.indexOf(r)<0&&(t[r]=a[r]);if(a!=null&&w)for(var r of w(a))e.indexOf(r)<0&&$.call(a,r)&&(t[r]=a[r]);return t};const B={default:{text:"text-primary-foreground-muted",fill:"bg-primary-stroke",correct:"bg-secondary-stroke-emphasis",ring:"text-secondary-stroke-emphasis",soft:"bg-gray-background-soft-muted"},cm:{text:"text-cm-foreground",fill:"bg-cm-background-fill",correct:"bg-cm-background-fill",ring:"text-cm-background-fill",soft:"bg-cm-background-soft-emphasis"},go:{text:"text-go-foreground",fill:"bg-go-background-fill",correct:"bg-go-background-fill",ring:"text-go-background-fill",soft:"bg-go-background-soft-emphasis"},cir:{text:"text-cir-foreground",fill:"bg-cir-background-fill",correct:"bg-cir-background-fill",ring:"text-cir-background-fill",soft:"bg-cir-background-soft-emphasis"},ped:{text:"text-ped-foreground",fill:"bg-ped-background-fill",correct:"bg-ped-background-fill",ring:"text-ped-background-fill",soft:"bg-ped-background-soft-emphasis"},prev:{text:"text-prev-foreground",fill:"bg-prev-background-fill",correct:"bg-prev-background-fill",ring:"text-prev-background-fill",soft:"bg-prev-background-soft-emphasis"}},ee={cm:"bg-cm-background-soft text-cm-foreground",go:"bg-go-background-soft text-go-foreground",cir:"bg-cir-background-soft text-cir-foreground",ped:"bg-ped-background-soft text-ped-foreground",prev:"bg-prev-background-soft text-prev-foreground"},re={default:"",cm:"[--card-focus-blur-1:var(--color-gradient-cm-blur-1)] [--card-focus-blur-2:var(--color-gradient-cm-blur-2)] [--card-focus-blur-3:var(--color-gradient-cm-blur-3)]",go:"[--card-focus-blur-1:var(--color-gradient-go-blur-1)] [--card-focus-blur-2:var(--color-gradient-go-blur-2)] [--card-focus-blur-3:var(--color-gradient-go-blur-3)]",cir:"[--card-focus-blur-1:var(--color-gradient-cir-blur-1)] [--card-focus-blur-2:var(--color-gradient-cir-blur-2)] [--card-focus-blur-3:var(--color-gradient-cir-blur-3)]",ped:"[--card-focus-blur-1:var(--color-gradient-ped-blur-1)] [--card-focus-blur-2:var(--color-gradient-ped-blur-2)] [--card-focus-blur-3:var(--color-gradient-ped-blur-3)]",prev:"[--card-focus-blur-1:var(--color-gradient-prev-blur-1)] [--card-focus-blur-2:var(--color-gradient-prev-blur-2)] [--card-focus-blur-3:var(--color-gradient-prev-blur-3)]"},ae="[background-image:linear-gradient(-61.6deg,transparent_50%,color-mix(in_srgb,var(--card-focus-blur-3)_4%,transparent)_100%),linear-gradient(61.6deg,transparent_50%,color-mix(in_srgb,var(--card-focus-blur-2)_8%,transparent)_100%),linear-gradient(0deg,transparent_50%,color-mix(in_srgb,var(--card-focus-blur-1)_32%,transparent)_100%)]",se={done:{label:"Conclu\xEDdo",icon:s.jsx(v.Check,{})},skipped:{label:"Pulado",icon:s.jsx(v.SkipForward,{})},postponed:{label:"Adiado",icon:s.jsx(v.Forward,{})}},D=x.createContext({specialty:"default",edit:!1});function F(){return x.useContext(D)}function y(){var a;return(a=B[F().specialty])!=null?a:B.default}function z(a){return a!=null&&a!==!1&&a!==""}function k({content:a,children:e}){return z(a)?s.jsx(j.TooltipProvider,{children:s.jsxs(j.Tooltip,{children:[s.jsx(j.TooltipTrigger,{asChild:!0,children:e}),s.jsx(j.TooltipContent,{side:"top",className:"max-w-xs",children:a})]})}):s.jsx(s.Fragment,{children:e})}function te(a){var e=a,{className:t,specialty:r="default",edit:n=!1}=e,o=i(e,["className","specialty","edit"]);const d=x.useMemo(()=>({specialty:r,edit:n}),[r,n]);return s.jsx(D.Provider,{value:d,children:s.jsx("div",l({"data-slot":"card-focus","data-specialty":r,"data-edit":n||void 0,className:c.cn("relative flex flex-col rounded-lg bg-surface-card ring-1 ring-inset ring-gray-stroke-muted",r!=="default"&&[re[r],ae],t)},o))})}function ne(a){var e=a,{className:t}=e,r=i(e,["className"]);return s.jsx("div",l({"data-slot":"card-focus-header",className:c.cn("flex min-w-0 items-center gap-4 px-6 pt-5",t)},r))}function oe(a){var e=a,{className:t,level:r,hint:n,iconOnly:o,size:d,shortName:f,label:u,hideLabel:b,animated:g,iconClassName:p,labelClassName:N,ringClassName:W,asChild:X}=e,R=i(e,["className","level","hint","iconOnly","size","shortName","label","hideLabel","animated","iconClassName","labelClassName","ringClassName","asChild"]),O,P;const{specialty:T,edit:H}=F(),{text:U}=y(),A=z(n),G=(O=L.INDEX_LEVEL_LABELS[r])==null?void 0:O[f?"short":"full"];return(o!=null?o:H)?s.jsx(k,{content:n,children:s.jsx("span",m(l({"data-slot":"card-focus-index-level","data-level":r,role:"img","aria-label":(P=L.INDEX_LEVEL_LABELS[r])==null?void 0:P.full,tabIndex:A?0:void 0,className:c.cn("flex shrink-0 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-primary-stroke",T==="default"?"text-primary-foreground":U,t)},R),{children:s.jsx(L.IndexLevelIcon,{level:r,baseOpacity:"20",className:p})}))}):s.jsx(k,{content:n,children:s.jsx(q.IndexLevelAnimated,l(m(l({"data-slot":"card-focus-index-level",level:r,specialty:T,size:d,shortName:f,label:u,hideLabel:b,animated:g,iconClassName:p,labelClassName:N,ringClassName:W,asChild:X},A&&{tabIndex:0,role:"img","aria-label":typeof u=="string"?u:G}),{className:c.cn("shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-primary-stroke",t)}),R))})}function V(a){var e=a,{className:t,ringClassName:r,slot:n,size:o="md",animated:d=!0,children:f}=e,u=i(e,["className","ringClassName","slot","size","animated","children"]);return s.jsxs("span",m(l({"data-slot":n,"data-size":o,className:c.cn("relative inline-flex w-fit shrink-0 items-center justify-center whitespace-nowrap rounded-md font-semibold [&_svg]:shrink-0",o==="sm"?"gap-1.5 px-2 py-1 text-xs leading-xs [&_svg]:size-4":"gap-2 px-2.5 py-1.5 text-sm leading-sm [&_svg]:size-5",t)},u),{children:[s.jsx(q.IndexLevelRing,{"data-slot":`${n}-ring`,animated:d,className:r}),f]}))}function ce(a){var e=a,{className:t,children:r="Ao vivo"}=e,n=i(e,["className","children"]);return s.jsxs(V,m(l({slot:"card-focus-live",ringClassName:"text-feedback-error-background-fill",className:c.cn("text-feedback-error-foreground [background:linear-gradient(var(--color-feedback-error-background-soft-emphasis),var(--color-feedback-error-background-soft-emphasis)),var(--color-surface-card)]",t)},n),{children:[s.jsx(v.Circle,{"aria-hidden":!0,strokeWidth:1.67,gradient:{fromOpacity:.12,toOpacity:1,opacity:.6}}),r]}))}function le(a){var e=a,{className:t,children:r="Revis\xE3o turbo"}=e,n=i(e,["className","children"]);return s.jsxs(V,m(l({slot:"card-focus-turbo",ringClassName:"text-secondary-stroke",className:c.cn("bg-secondary-background-soft-muted",t)},n),{children:[s.jsx(v.TurboReview,{"aria-hidden":!0,strokeWidth:1.67,className:"text-secondary-stroke-emphasis",gradient:{fromOpacity:.12,toOpacity:1,opacity:.6}}),s.jsx("span",{className:"bg-gradient-to-b from-secondary-stroke-emphasis to-primary-stroke bg-clip-text text-transparent",children:r})]}))}function ie(a){var e=a,{className:t}=e,r=i(e,["className"]);return s.jsx("div",l({"data-slot":"card-focus-indicators",className:c.cn("flex min-w-0 flex-1 items-center justify-end gap-4",t)},r))}function de(a){var e=a,{className:t,icon:r,label:n}=e,o=i(e,["className","icon","label"]);return s.jsx(k,{content:n,children:s.jsx("span",m(l({"data-slot":"card-focus-indicator",role:"img","aria-label":n,className:c.cn("flex size-5 shrink-0 items-center justify-center [&_svg]:size-5",t)},o),{children:r}))})}function ue(a){var e=a,{className:t,count:r,label:n="Vezes revisado"}=e,o=i(e,["className","count","label"]);return s.jsx(k,{content:n,children:s.jsx("span",m(l({"data-slot":"card-focus-review-count",role:"img","aria-label":`${n}: ${r}`,className:c.cn("inline-flex min-h-7 min-w-7 shrink-0 items-center justify-center rounded-pill bg-primary-background-fill px-2 py-1 text-sm font-bold leading-sm text-primary-foreground-onfill",t)},o),{children:r}))})}const me=x.forwardRef(function(a,e){var t=a,{children:r="Remover",containerClassName:n,className:o}=t,d=i(t,["children","containerClassName","className"]);return s.jsx(C.Button,m(l({ref:e,"data-slot":"card-focus-remove",variant:"error-basic",size:"sm",iconLeft:s.jsx(v.CloseMd,{}),containerClassName:c.cn("absolute right-[11px] top-[11px]",n),className:c.cn("rounded-pill",o)},d),{children:r}))});function fe(a){var e=a,{className:t}=e,r=i(e,["className"]);return s.jsx("div",l({"data-slot":"card-focus-content",className:c.cn("flex flex-col gap-4 px-6 py-5",t)},r))}function ge(a){var e=a,{className:t}=e,r=i(e,["className"]);return s.jsx("div",l({"data-slot":"card-focus-heading",className:c.cn("flex min-w-0 flex-col gap-2",t)},r))}function xe(a){var e=a,{className:t}=e,r=i(e,["className"]);return s.jsx("div",l({"data-slot":"card-focus-meta",className:c.cn("flex min-w-0 items-center gap-4",t)},r))}function pe(a){var e=a,{className:t}=e,r=i(e,["className"]);const{text:n}=y();return s.jsx("span",l({"data-slot":"card-focus-category",className:c.cn("min-w-0 flex-1 truncate text-xs font-semibold leading-xs",n,t)},r))}function be(a){var e=a,{className:t,icon:r,children:n}=e,o=i(e,["className","icon","children"]);return s.jsxs("span",m(l({"data-slot":"card-focus-meta-item",className:c.cn("flex min-w-0 max-w-[50%] shrink-0 items-center gap-1.5 text-xs font-semibold leading-xs text-primary-foreground-muted [&_svg]:size-4 [&_svg]:shrink-0",t)},o),{children:[r&&s.jsx("span",{"aria-hidden":!0,className:"contents",children:r}),s.jsx("span",{className:"truncate",children:n})]}))}const ve=x.forwardRef(function(a,e){var t=a,{className:r,children:n}=t,o=i(t,["className","children"]);const{edit:d}=F(),f=x.useRef(null),u=J.useComposedRefs(e,f),[b,g]=x.useState(!1);return s.jsx(j.TooltipProvider,{children:s.jsxs(j.Tooltip,{open:b,onOpenChange:p=>{const N=f.current;g(p&&!!N&&N.scrollHeight>N.clientHeight+1)},children:[s.jsx(j.TooltipTrigger,{asChild:!0,children:s.jsx("div",m(l({ref:u,"data-slot":"card-focus-title",className:c.cn("line-clamp-2 break-words text-lg font-semibold leading-lg text-primary-foreground",!d&&"min-h-14",r)},o),{children:n}))}),s.jsx(j.TooltipContent,{side:"top",className:"max-w-xs break-words",children:n})]})})});function he(a){var e=a,{className:t,score:r,children:n}=e,o=i(e,["className","score","children"]);const{soft:d}=y();return s.jsxs("div",m(l({"data-slot":"card-focus-last-contact",className:c.cn("flex min-w-0 items-center gap-2 rounded-md px-3 py-2",d,t)},o),{children:[s.jsx("span",{className:"min-w-0 flex-1 break-words text-xs font-semibold leading-xs text-primary-foreground-muted [&_strong]:font-semibold [&_strong]:text-primary-foreground",children:n}),r]}))}const h=16,I=2;function Ne(a){var e=a,{className:t,value:r,label:n="acertos",tooltip:o="\xDAltimo desempenho no foco"}=e,d=i(e,["className","value","label","tooltip"]);const{ring:f}=y(),u=Math.round(c.clampPercentage(r)),b=(h-I)/2,g=2*Math.PI*b;return s.jsx(k,{content:o,children:s.jsxs("span",m(l({"data-slot":"card-focus-last-score",role:"img","aria-label":`${u}% ${n}`,tabIndex:z(o)?0:void 0,className:c.cn("flex shrink-0 items-center gap-2 whitespace-nowrap rounded-sm text-xs leading-xs outline-none focus-visible:ring-2 focus-visible:ring-primary-stroke",t)},d),{children:[s.jsxs("span",{className:"flex items-center gap-[3px]",children:[s.jsxs("strong",{className:"font-semibold text-primary-foreground",children:[u,"%"]}),s.jsx("span",{className:"font-medium text-primary-foreground-muted",children:n})]}),s.jsxs("svg",{"aria-hidden":!0,width:h,height:h,viewBox:`0 0 ${h} ${h}`,className:"shrink-0 -rotate-90",children:[s.jsx("circle",{cx:h/2,cy:h/2,r:b,fill:"none",stroke:"currentColor",strokeWidth:I,className:"text-gray-stroke-muted"}),s.jsx("circle",{"data-slot":"card-focus-last-score-indicator",cx:h/2,cy:h/2,r:b,fill:"none",stroke:"currentColor",strokeWidth:I,strokeLinecap:"round",strokeDasharray:g,strokeDashoffset:g-u/100*g,className:f})]})]}))})}function je(a){var e=a,{className:t}=e,r=i(e,["className"]);return s.jsx("div",l({"data-slot":"card-focus-counts",className:c.cn("flex flex-wrap items-center gap-1",t)},r))}function ye(a){var e=a,{className:t,specialty:r,count:n,children:o}=e,d=i(e,["className","specialty","count","children"]);return s.jsxs("span",m(l({"data-slot":"card-focus-count","data-specialty":r,"data-empty":n===0||void 0,className:c.cn("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2.5 py-2 text-xs font-semibold leading-xs",n===0?"bg-gray-background-soft-muted text-gray-foreground-muted":ee[r],t)},d),{children:[s.jsx("span",{children:o!=null?o:r.toUpperCase()}),s.jsx("span",{children:n})]}))}function ke(a){var e=a,{className:t}=e,r=i(e,["className"]);const{edit:n}=F();return s.jsx("div",l({"data-slot":"card-focus-footer",className:c.cn("mt-auto flex px-6 pb-5",n?"items-center justify-end gap-4":"flex-col gap-4",t)},r))}function Ce(a){var e=a,{className:t,value:r,correct:n,children:o}=e,d=i(e,["className","value","correct","children"]);const{fill:f,correct:u}=y(),b=K.useId(),g=c.clampPercentage(r!=null?r:0),p=n==null?null:Math.min(c.clampPercentage(n),g),N=x.Children.toArray(o).length>0;return s.jsxs("div",{"data-slot":"card-focus-progress",className:c.cn("flex flex-col gap-2",t),children:[N&&s.jsx("div",{id:b,className:"flex min-w-0 items-center gap-2",children:o}),s.jsxs(E.Progress.Root,m(l({"data-slot":"card-focus-progress-bar",className:"relative my-[0.5px] flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",value:r==null?r:g,"aria-label":d["aria-labelledby"]?void 0:"Progresso","aria-describedby":N?b:void 0,getValueLabel:p==null?void 0:()=>`${Math.round(g)}% respondido, ${Math.round(p)}% de acertos`},d),{children:[s.jsx(E.Progress.Indicator,{"data-slot":"card-focus-progress-indicator",className:c.cn("absolute inset-x-0 -top-[0.5px] h-0.5 rounded-pill transition-transform motion-reduce:transition-none",p==null?f:"bg-primary-stroke"),style:{transform:`translateX(-${100-g}%)`}}),p!=null&&s.jsx("div",{"aria-hidden":!0,"data-slot":"card-focus-progress-correct",className:c.cn("absolute inset-x-0 -top-[0.5px] h-0.5 rounded-pill transition-transform motion-reduce:transition-none",u),style:{transform:`translateX(-${100-p}%)`}})]}))]})}function we(a){var e=a,{className:t}=e,r=i(e,["className"]);return s.jsx("span",l({"data-slot":"card-focus-progress-label",className:c.cn("min-w-0 truncate text-xs font-medium leading-xs text-gray-foreground-muted [&_strong]:font-semibold [&_strong]:text-gray-foreground",t)},r))}function Fe(a){var e=a,{className:t,children:r}=e,n=i(e,["className","children"]);const{text:o}=y();return s.jsxs("span",m(l({"data-slot":"card-focus-time-remaining",className:c.cn("ml-auto flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs font-medium leading-xs [&_strong]:font-semibold",o,t)},n),{children:[s.jsx(v.TimeRemaining,{size:16,"aria-hidden":!0}),s.jsx("span",{children:r})]}))}function _e(a){var e=a,{className:t,icon:r,children:n}=e,o=i(e,["className","icon","children"]);const{text:d}=y();return s.jsxs("span",m(l({"data-slot":"card-focus-stat",className:c.cn("flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs font-semibold leading-xs [&_svg]:size-4 [&_svg]:shrink-0",d,t)},o),{children:[r,s.jsx("span",{children:n})]}))}const Le=x.forwardRef(function(a,e){var t=a,{className:r,children:n,type:o}=t,d=i(t,["className","children","type"]);return s.jsxs("button",m(l({ref:e,type:o!=null?o:"button","data-slot":"card-focus-settings",className:c.cn("mr-auto inline-flex min-w-0 items-center gap-2 rounded-md bg-gray-background-soft px-3 py-2 text-xs font-medium leading-xs text-gray-foreground outline-none transition-colors hover:bg-gray-background-soft-emphasis focus-visible:ring-2 focus-visible:ring-primary-stroke disabled:pointer-events-none disabled:opacity-50",r)},d),{children:[s.jsx("span",{className:"truncate",children:n}),s.jsx(v.ChevronDown,{"aria-hidden":!0,size:16,className:"shrink-0"})]}))});function ze(a){var e=a,{className:t}=e,r=i(e,["className"]);return s.jsx("div",l({"data-slot":"card-focus-actions",className:c.cn("flex min-w-0 items-center gap-3",t)},r))}function Ie(a){var e=a,{className:t,src:r,alt:n="",shape:o="circle",tooltip:d,children:f}=e,u=i(e,["className","src","alt","shape","tooltip","children"]);const[b,g]=x.useState(),p=n||d||void 0;return s.jsx(k,{content:d!=null?d:n,children:s.jsx("span",m(l({"data-slot":"card-focus-avatar","data-shape":o,role:p?"img":void 0,"aria-label":p,className:c.cn("flex shrink-0",o==="circle"?"rounded-pill":"size-10 items-center justify-center overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-card p-1.5",t)},u),{children:f!=null?f:o==="circle"?s.jsxs(_.Avatar,{size:"md",children:[r&&s.jsx(_.AvatarImage,{src:r,alt:""}),s.jsx(_.AvatarFallback,{})]}):r&&b!==r?s.jsx("img",{src:r,alt:"",loading:"lazy",onError:()=>g(r),className:"size-full object-contain"}):s.jsx("span",{"data-slot":"card-focus-avatar-fallback",className:"size-full rounded-sm bg-gray-background-soft"})}))})}const Re=x.forwardRef(function(a,e){var t=a,{className:r,containerClassName:n,variant:o="regular"}=t,d=i(t,["className","containerClassName","variant"]);return s.jsx(C.Button,l({ref:e,"data-slot":"card-focus-action",variant:o,containerClassName:c.cn("min-w-0 flex-1",n),className:c.cn("w-full rounded-pill disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted disabled:[background:var(--color-gray-background-soft-muted)]",r)},d))}),Oe=x.forwardRef(function(a,e){var t=a,{className:r,containerClassName:n,status:o,children:d}=t,f=i(t,["className","containerClassName","status","children"]);const u=se[o];return u?s.jsx(C.Button,m(l({ref:e,"data-slot":"card-focus-status","data-status":o,variant:"regular-soft",iconLeft:u.icon,containerClassName:c.cn("min-w-0 flex-1",n),className:c.cn("w-full rounded-pill",r)},f),{children:d!=null?d:u.label})):null}),Pe=x.forwardRef(function(a,e){var t=a,{"aria-label":r="Mais op\xE7\xF5es",containerClassName:n}=t,o=i(t,["aria-label","containerClassName"]);return s.jsx(C.Button,l({ref:e,"data-slot":"card-focus-more",variant:"regular-basic",iconLeft:s.jsx(v.MoreVertical,{}),"aria-label":r,containerClassName:c.cn("shrink-0",n)},o))}),Te=x.forwardRef(function(a,e){var t=a,{label:r="Desfazer",containerClassName:n}=t,o=i(t,["label","containerClassName"]);return s.jsx(k,{content:r,children:s.jsx(C.Button,l({ref:e,"data-slot":"card-focus-undo",variant:"regular-basic",iconLeft:s.jsx(v.Undo,{}),"aria-label":r,containerClassName:c.cn("shrink-0",n)},o))})});exports.CardFocus=te,exports.CardFocusAction=Re,exports.CardFocusActions=ze,exports.CardFocusAvatar=Ie,exports.CardFocusCategory=pe,exports.CardFocusContent=fe,exports.CardFocusCount=ye,exports.CardFocusCounts=je,exports.CardFocusFooter=ke,exports.CardFocusHeader=ne,exports.CardFocusHeading=ge,exports.CardFocusIndexLevel=oe,exports.CardFocusIndicator=de,exports.CardFocusIndicators=ie,exports.CardFocusLastContact=he,exports.CardFocusLastScore=Ne,exports.CardFocusLive=ce,exports.CardFocusMeta=xe,exports.CardFocusMetaItem=be,exports.CardFocusMore=Pe,exports.CardFocusProgress=Ce,exports.CardFocusProgressLabel=we,exports.CardFocusRemove=me,exports.CardFocusReviewCount=ue,exports.CardFocusSettings=Le,exports.CardFocusStat=_e,exports.CardFocusStatus=Oe,exports.CardFocusTimeRemaining=Fe,exports.CardFocusTitle=ve,exports.CardFocusTurbo=le,exports.CardFocusUndo=Te;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ "use client";
3
+ import{jsx as t,jsxs as f,Fragment as Y}from"react/jsx-runtime";import{Progress as P}from"radix-ui";import{createContext as Z,forwardRef as N,useRef as ee,useState as A,useContext as ae,useMemo as re,Children as se}from"react";import{Avatar as te,AvatarImage as oe,AvatarFallback as ne}from"./Avatar.mjs";import{Button as C}from"./Button.mjs";import{INDEX_LEVEL_LABELS as R,IndexLevelIcon as le}from"./IndexLevel.mjs";import{IndexLevelAnimated as ce,IndexLevelRing as ie}from"./IndexLevelAnimated.mjs";import{TooltipProvider as T,Tooltip as E,TooltipTrigger as S,TooltipContent as D}from"./Tooltip.mjs";import{useComposedRefs as de}from"../hooks/use-composed-refs.mjs";import{useId as ue}from"../hooks/use-id.mjs";import{cn as l,clampPercentage as _}from"../lib/utils.mjs";import{Forward as me,SkipForward as fe,Check as ge,CloseMd as pe,ChevronDown as be,MoreVertical as ve,Undo as he,Circle as xe,TimeRemaining as Ne,TurboReview as ye}from"@medway-ui/icons";var ke=Object.defineProperty,Ce=Object.defineProperties,we=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,B=(r,e,s)=>e in r?ke(r,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[e]=s,c=(r,e)=>{for(var s in e||(e={}))W.call(e,s)&&B(r,s,e[s]);if(w)for(var s of w(e))V.call(e,s)&&B(r,s,e[s]);return r},m=(r,e)=>Ce(r,we(e)),i=(r,e)=>{var s={};for(var a in r)W.call(r,a)&&e.indexOf(a)<0&&(s[a]=r[a]);if(r!=null&&w)for(var a of w(r))e.indexOf(a)<0&&V.call(r,a)&&(s[a]=r[a]);return s};const H={default:{text:"text-primary-foreground-muted",fill:"bg-primary-stroke",correct:"bg-secondary-stroke-emphasis",ring:"text-secondary-stroke-emphasis",soft:"bg-gray-background-soft-muted"},cm:{text:"text-cm-foreground",fill:"bg-cm-background-fill",correct:"bg-cm-background-fill",ring:"text-cm-background-fill",soft:"bg-cm-background-soft-emphasis"},go:{text:"text-go-foreground",fill:"bg-go-background-fill",correct:"bg-go-background-fill",ring:"text-go-background-fill",soft:"bg-go-background-soft-emphasis"},cir:{text:"text-cir-foreground",fill:"bg-cir-background-fill",correct:"bg-cir-background-fill",ring:"text-cir-background-fill",soft:"bg-cir-background-soft-emphasis"},ped:{text:"text-ped-foreground",fill:"bg-ped-background-fill",correct:"bg-ped-background-fill",ring:"text-ped-background-fill",soft:"bg-ped-background-soft-emphasis"},prev:{text:"text-prev-foreground",fill:"bg-prev-background-fill",correct:"bg-prev-background-fill",ring:"text-prev-background-fill",soft:"bg-prev-background-soft-emphasis"}},Fe={cm:"bg-cm-background-soft text-cm-foreground",go:"bg-go-background-soft text-go-foreground",cir:"bg-cir-background-soft text-cir-foreground",ped:"bg-ped-background-soft text-ped-foreground",prev:"bg-prev-background-soft text-prev-foreground"},_e={default:"",cm:"[--card-focus-blur-1:var(--color-gradient-cm-blur-1)] [--card-focus-blur-2:var(--color-gradient-cm-blur-2)] [--card-focus-blur-3:var(--color-gradient-cm-blur-3)]",go:"[--card-focus-blur-1:var(--color-gradient-go-blur-1)] [--card-focus-blur-2:var(--color-gradient-go-blur-2)] [--card-focus-blur-3:var(--color-gradient-go-blur-3)]",cir:"[--card-focus-blur-1:var(--color-gradient-cir-blur-1)] [--card-focus-blur-2:var(--color-gradient-cir-blur-2)] [--card-focus-blur-3:var(--color-gradient-cir-blur-3)]",ped:"[--card-focus-blur-1:var(--color-gradient-ped-blur-1)] [--card-focus-blur-2:var(--color-gradient-ped-blur-2)] [--card-focus-blur-3:var(--color-gradient-ped-blur-3)]",prev:"[--card-focus-blur-1:var(--color-gradient-prev-blur-1)] [--card-focus-blur-2:var(--color-gradient-prev-blur-2)] [--card-focus-blur-3:var(--color-gradient-prev-blur-3)]"},ze="[background-image:linear-gradient(-61.6deg,transparent_50%,color-mix(in_srgb,var(--card-focus-blur-3)_4%,transparent)_100%),linear-gradient(61.6deg,transparent_50%,color-mix(in_srgb,var(--card-focus-blur-2)_8%,transparent)_100%),linear-gradient(0deg,transparent_50%,color-mix(in_srgb,var(--card-focus-blur-1)_32%,transparent)_100%)]",Le={done:{label:"Conclu\xEDdo",icon:t(ge,{})},skipped:{label:"Pulado",icon:t(fe,{})},postponed:{label:"Adiado",icon:t(me,{})}},X=Z({specialty:"default",edit:!1});function F(){return ae(X)}function y(){var r;return(r=H[F().specialty])!=null?r:H.default}function z(r){return r!=null&&r!==!1&&r!==""}function k({content:r,children:e}){return z(r)?t(T,{children:f(E,{children:[t(S,{asChild:!0,children:e}),t(D,{side:"top",className:"max-w-xs",children:r})]})}):t(Y,{children:e})}function Oe(r){var e=r,{className:s,specialty:a="default",edit:o=!1}=e,n=i(e,["className","specialty","edit"]);const d=re(()=>({specialty:a,edit:o}),[a,o]);return t(X.Provider,{value:d,children:t("div",c({"data-slot":"card-focus","data-specialty":a,"data-edit":o||void 0,className:l("relative flex flex-col rounded-lg bg-surface-card ring-1 ring-inset ring-gray-stroke-muted",a!=="default"&&[_e[a],ze],s)},n))})}function $e(r){var e=r,{className:s}=e,a=i(e,["className"]);return t("div",c({"data-slot":"card-focus-header",className:l("flex min-w-0 items-center gap-4 px-6 pt-5",s)},a))}function Ie(r){var e=r,{className:s,level:a,hint:o,iconOnly:n,size:d,shortName:g,label:u,hideLabel:v,animated:p,iconClassName:b,labelClassName:x,ringClassName:q,asChild:G}=e,O=i(e,["className","level","hint","iconOnly","size","shortName","label","hideLabel","animated","iconClassName","labelClassName","ringClassName","asChild"]),$,I;const{specialty:j,edit:J}=F(),{text:K}=y(),M=z(o),Q=($=R[a])==null?void 0:$[g?"short":"full"];return(n!=null?n:J)?t(k,{content:o,children:t("span",m(c({"data-slot":"card-focus-index-level","data-level":a,role:"img","aria-label":(I=R[a])==null?void 0:I.full,tabIndex:M?0:void 0,className:l("flex shrink-0 rounded-sm outline-none focus-visible:ring-2 focus-visible:ring-primary-stroke",j==="default"?"text-primary-foreground":K,s)},O),{children:t(le,{level:a,baseOpacity:"20",className:b})}))}):t(k,{content:o,children:t(ce,c(m(c({"data-slot":"card-focus-index-level",level:a,specialty:j,size:d,shortName:g,label:u,hideLabel:v,animated:p,iconClassName:b,labelClassName:x,ringClassName:q,asChild:G},M&&{tabIndex:0,role:"img","aria-label":typeof u=="string"?u:Q}),{className:l("shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-primary-stroke",s)}),O))})}function U(r){var e=r,{className:s,ringClassName:a,slot:o,size:n="md",animated:d=!0,children:g}=e,u=i(e,["className","ringClassName","slot","size","animated","children"]);return f("span",m(c({"data-slot":o,"data-size":n,className:l("relative inline-flex w-fit shrink-0 items-center justify-center whitespace-nowrap rounded-md font-semibold [&_svg]:shrink-0",n==="sm"?"gap-1.5 px-2 py-1 text-xs leading-xs [&_svg]:size-4":"gap-2 px-2.5 py-1.5 text-sm leading-sm [&_svg]:size-5",s)},u),{children:[t(ie,{"data-slot":`${o}-ring`,animated:d,className:a}),g]}))}function je(r){var e=r,{className:s,children:a="Ao vivo"}=e,o=i(e,["className","children"]);return f(U,m(c({slot:"card-focus-live",ringClassName:"text-feedback-error-background-fill",className:l("text-feedback-error-foreground [background:linear-gradient(var(--color-feedback-error-background-soft-emphasis),var(--color-feedback-error-background-soft-emphasis)),var(--color-surface-card)]",s)},o),{children:[t(xe,{"aria-hidden":!0,strokeWidth:1.67,gradient:{fromOpacity:.12,toOpacity:1,opacity:.6}}),a]}))}function Me(r){var e=r,{className:s,children:a="Revis\xE3o turbo"}=e,o=i(e,["className","children"]);return f(U,m(c({slot:"card-focus-turbo",ringClassName:"text-secondary-stroke",className:l("bg-secondary-background-soft-muted",s)},o),{children:[t(ye,{"aria-hidden":!0,strokeWidth:1.67,className:"text-secondary-stroke-emphasis",gradient:{fromOpacity:.12,toOpacity:1,opacity:.6}}),t("span",{className:"bg-gradient-to-b from-secondary-stroke-emphasis to-primary-stroke bg-clip-text text-transparent",children:a})]}))}function Pe(r){var e=r,{className:s}=e,a=i(e,["className"]);return t("div",c({"data-slot":"card-focus-indicators",className:l("flex min-w-0 flex-1 items-center justify-end gap-4",s)},a))}function Ae(r){var e=r,{className:s,icon:a,label:o}=e,n=i(e,["className","icon","label"]);return t(k,{content:o,children:t("span",m(c({"data-slot":"card-focus-indicator",role:"img","aria-label":o,className:l("flex size-5 shrink-0 items-center justify-center [&_svg]:size-5",s)},n),{children:a}))})}function Re(r){var e=r,{className:s,count:a,label:o="Vezes revisado"}=e,n=i(e,["className","count","label"]);return t(k,{content:o,children:t("span",m(c({"data-slot":"card-focus-review-count",role:"img","aria-label":`${o}: ${a}`,className:l("inline-flex min-h-7 min-w-7 shrink-0 items-center justify-center rounded-pill bg-primary-background-fill px-2 py-1 text-sm font-bold leading-sm text-primary-foreground-onfill",s)},n),{children:a}))})}const Te=N(function(r,e){var s=r,{children:a="Remover",containerClassName:o,className:n}=s,d=i(s,["children","containerClassName","className"]);return t(C,m(c({ref:e,"data-slot":"card-focus-remove",variant:"error-basic",size:"sm",iconLeft:t(pe,{}),containerClassName:l("absolute right-[11px] top-[11px]",o),className:l("rounded-pill",n)},d),{children:a}))});function Ee(r){var e=r,{className:s}=e,a=i(e,["className"]);return t("div",c({"data-slot":"card-focus-content",className:l("flex flex-col gap-4 px-6 py-5",s)},a))}function Se(r){var e=r,{className:s}=e,a=i(e,["className"]);return t("div",c({"data-slot":"card-focus-heading",className:l("flex min-w-0 flex-col gap-2",s)},a))}function De(r){var e=r,{className:s}=e,a=i(e,["className"]);return t("div",c({"data-slot":"card-focus-meta",className:l("flex min-w-0 items-center gap-4",s)},a))}function We(r){var e=r,{className:s}=e,a=i(e,["className"]);const{text:o}=y();return t("span",c({"data-slot":"card-focus-category",className:l("min-w-0 flex-1 truncate text-xs font-semibold leading-xs",o,s)},a))}function Ve(r){var e=r,{className:s,icon:a,children:o}=e,n=i(e,["className","icon","children"]);return f("span",m(c({"data-slot":"card-focus-meta-item",className:l("flex min-w-0 max-w-[50%] shrink-0 items-center gap-1.5 text-xs font-semibold leading-xs text-primary-foreground-muted [&_svg]:size-4 [&_svg]:shrink-0",s)},n),{children:[a&&t("span",{"aria-hidden":!0,className:"contents",children:a}),t("span",{className:"truncate",children:o})]}))}const Be=N(function(r,e){var s=r,{className:a,children:o}=s,n=i(s,["className","children"]);const{edit:d}=F(),g=ee(null),u=de(e,g),[v,p]=A(!1);return t(T,{children:f(E,{open:v,onOpenChange:b=>{const x=g.current;p(b&&!!x&&x.scrollHeight>x.clientHeight+1)},children:[t(S,{asChild:!0,children:t("div",m(c({ref:u,"data-slot":"card-focus-title",className:l("line-clamp-2 break-words text-lg font-semibold leading-lg text-primary-foreground",!d&&"min-h-14",a)},n),{children:o}))}),t(D,{side:"top",className:"max-w-xs break-words",children:o})]})})});function He(r){var e=r,{className:s,score:a,children:o}=e,n=i(e,["className","score","children"]);const{soft:d}=y();return f("div",m(c({"data-slot":"card-focus-last-contact",className:l("flex min-w-0 items-center gap-2 rounded-md px-3 py-2",d,s)},n),{children:[t("span",{className:"min-w-0 flex-1 break-words text-xs font-semibold leading-xs text-primary-foreground-muted [&_strong]:font-semibold [&_strong]:text-primary-foreground",children:o}),a]}))}const h=16,L=2;function Xe(r){var e=r,{className:s,value:a,label:o="acertos",tooltip:n="\xDAltimo desempenho no foco"}=e,d=i(e,["className","value","label","tooltip"]);const{ring:g}=y(),u=Math.round(_(a)),v=(h-L)/2,p=2*Math.PI*v;return t(k,{content:n,children:f("span",m(c({"data-slot":"card-focus-last-score",role:"img","aria-label":`${u}% ${o}`,tabIndex:z(n)?0:void 0,className:l("flex shrink-0 items-center gap-2 whitespace-nowrap rounded-sm text-xs leading-xs outline-none focus-visible:ring-2 focus-visible:ring-primary-stroke",s)},d),{children:[f("span",{className:"flex items-center gap-[3px]",children:[f("strong",{className:"font-semibold text-primary-foreground",children:[u,"%"]}),t("span",{className:"font-medium text-primary-foreground-muted",children:o})]}),f("svg",{"aria-hidden":!0,width:h,height:h,viewBox:`0 0 ${h} ${h}`,className:"shrink-0 -rotate-90",children:[t("circle",{cx:h/2,cy:h/2,r:v,fill:"none",stroke:"currentColor",strokeWidth:L,className:"text-gray-stroke-muted"}),t("circle",{"data-slot":"card-focus-last-score-indicator",cx:h/2,cy:h/2,r:v,fill:"none",stroke:"currentColor",strokeWidth:L,strokeLinecap:"round",strokeDasharray:p,strokeDashoffset:p-u/100*p,className:g})]})]}))})}function Ue(r){var e=r,{className:s}=e,a=i(e,["className"]);return t("div",c({"data-slot":"card-focus-counts",className:l("flex flex-wrap items-center gap-1",s)},a))}function qe(r){var e=r,{className:s,specialty:a,count:o,children:n}=e,d=i(e,["className","specialty","count","children"]);return f("span",m(c({"data-slot":"card-focus-count","data-specialty":a,"data-empty":o===0||void 0,className:l("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2.5 py-2 text-xs font-semibold leading-xs",o===0?"bg-gray-background-soft-muted text-gray-foreground-muted":Fe[a],s)},d),{children:[t("span",{children:n!=null?n:a.toUpperCase()}),t("span",{children:o})]}))}function Ge(r){var e=r,{className:s}=e,a=i(e,["className"]);const{edit:o}=F();return t("div",c({"data-slot":"card-focus-footer",className:l("mt-auto flex px-6 pb-5",o?"items-center justify-end gap-4":"flex-col gap-4",s)},a))}function Je(r){var e=r,{className:s,value:a,correct:o,children:n}=e,d=i(e,["className","value","correct","children"]);const{fill:g,correct:u}=y(),v=ue(),p=_(a!=null?a:0),b=o==null?null:Math.min(_(o),p),x=se.toArray(n).length>0;return f("div",{"data-slot":"card-focus-progress",className:l("flex flex-col gap-2",s),children:[x&&t("div",{id:v,className:"flex min-w-0 items-center gap-2",children:n}),f(P.Root,m(c({"data-slot":"card-focus-progress-bar",className:"relative my-[0.5px] flex h-px w-full overflow-x-clip rounded-pill bg-gray-stroke-muted",value:a==null?a:p,"aria-label":d["aria-labelledby"]?void 0:"Progresso","aria-describedby":x?v:void 0,getValueLabel:b==null?void 0:()=>`${Math.round(p)}% respondido, ${Math.round(b)}% de acertos`},d),{children:[t(P.Indicator,{"data-slot":"card-focus-progress-indicator",className:l("absolute inset-x-0 -top-[0.5px] h-0.5 rounded-pill transition-transform motion-reduce:transition-none",b==null?g:"bg-primary-stroke"),style:{transform:`translateX(-${100-p}%)`}}),b!=null&&t("div",{"aria-hidden":!0,"data-slot":"card-focus-progress-correct",className:l("absolute inset-x-0 -top-[0.5px] h-0.5 rounded-pill transition-transform motion-reduce:transition-none",u),style:{transform:`translateX(-${100-b}%)`}})]}))]})}function Ke(r){var e=r,{className:s}=e,a=i(e,["className"]);return t("span",c({"data-slot":"card-focus-progress-label",className:l("min-w-0 truncate text-xs font-medium leading-xs text-gray-foreground-muted [&_strong]:font-semibold [&_strong]:text-gray-foreground",s)},a))}function Qe(r){var e=r,{className:s,children:a}=e,o=i(e,["className","children"]);const{text:n}=y();return f("span",m(c({"data-slot":"card-focus-time-remaining",className:l("ml-auto flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs font-medium leading-xs [&_strong]:font-semibold",n,s)},o),{children:[t(Ne,{size:16,"aria-hidden":!0}),t("span",{children:a})]}))}function Ye(r){var e=r,{className:s,icon:a,children:o}=e,n=i(e,["className","icon","children"]);const{text:d}=y();return f("span",m(c({"data-slot":"card-focus-stat",className:l("flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs font-semibold leading-xs [&_svg]:size-4 [&_svg]:shrink-0",d,s)},n),{children:[a,t("span",{children:o})]}))}const Ze=N(function(r,e){var s=r,{className:a,children:o,type:n}=s,d=i(s,["className","children","type"]);return f("button",m(c({ref:e,type:n!=null?n:"button","data-slot":"card-focus-settings",className:l("mr-auto inline-flex min-w-0 items-center gap-2 rounded-md bg-gray-background-soft px-3 py-2 text-xs font-medium leading-xs text-gray-foreground outline-none transition-colors hover:bg-gray-background-soft-emphasis focus-visible:ring-2 focus-visible:ring-primary-stroke disabled:pointer-events-none disabled:opacity-50",a)},d),{children:[t("span",{className:"truncate",children:o}),t(be,{"aria-hidden":!0,size:16,className:"shrink-0"})]}))});function ea(r){var e=r,{className:s}=e,a=i(e,["className"]);return t("div",c({"data-slot":"card-focus-actions",className:l("flex min-w-0 items-center gap-3",s)},a))}function aa(r){var e=r,{className:s,src:a,alt:o="",shape:n="circle",tooltip:d,children:g}=e,u=i(e,["className","src","alt","shape","tooltip","children"]);const[v,p]=A(),b=o||d||void 0;return t(k,{content:d!=null?d:o,children:t("span",m(c({"data-slot":"card-focus-avatar","data-shape":n,role:b?"img":void 0,"aria-label":b,className:l("flex shrink-0",n==="circle"?"rounded-pill":"size-10 items-center justify-center overflow-hidden rounded-md border border-gray-stroke-muted bg-surface-card p-1.5",s)},u),{children:g!=null?g:n==="circle"?f(te,{size:"md",children:[a&&t(oe,{src:a,alt:""}),t(ne,{})]}):a&&v!==a?t("img",{src:a,alt:"",loading:"lazy",onError:()=>p(a),className:"size-full object-contain"}):t("span",{"data-slot":"card-focus-avatar-fallback",className:"size-full rounded-sm bg-gray-background-soft"})}))})}const ra=N(function(r,e){var s=r,{className:a,containerClassName:o,variant:n="regular"}=s,d=i(s,["className","containerClassName","variant"]);return t(C,c({ref:e,"data-slot":"card-focus-action",variant:n,containerClassName:l("min-w-0 flex-1",o),className:l("w-full rounded-pill disabled:bg-gray-background-soft-muted disabled:text-gray-foreground-muted disabled:[background:var(--color-gray-background-soft-muted)]",a)},d))}),sa=N(function(r,e){var s=r,{className:a,containerClassName:o,status:n,children:d}=s,g=i(s,["className","containerClassName","status","children"]);const u=Le[n];return u?t(C,m(c({ref:e,"data-slot":"card-focus-status","data-status":n,variant:"regular-soft",iconLeft:u.icon,containerClassName:l("min-w-0 flex-1",o),className:l("w-full rounded-pill",a)},g),{children:d!=null?d:u.label})):null}),ta=N(function(r,e){var s=r,{"aria-label":a="Mais op\xE7\xF5es",containerClassName:o}=s,n=i(s,["aria-label","containerClassName"]);return t(C,c({ref:e,"data-slot":"card-focus-more",variant:"regular-basic",iconLeft:t(ve,{}),"aria-label":a,containerClassName:l("shrink-0",o)},n))}),oa=N(function(r,e){var s=r,{label:a="Desfazer",containerClassName:o}=s,n=i(s,["label","containerClassName"]);return t(k,{content:a,children:t(C,c({ref:e,"data-slot":"card-focus-undo",variant:"regular-basic",iconLeft:t(he,{}),"aria-label":a,containerClassName:l("shrink-0",o)},n))})});export{Oe as CardFocus,ra as CardFocusAction,ea as CardFocusActions,aa as CardFocusAvatar,We as CardFocusCategory,Ee as CardFocusContent,qe as CardFocusCount,Ue as CardFocusCounts,Ge as CardFocusFooter,$e as CardFocusHeader,Se as CardFocusHeading,Ie as CardFocusIndexLevel,Ae as CardFocusIndicator,Pe as CardFocusIndicators,He as CardFocusLastContact,Xe as CardFocusLastScore,je as CardFocusLive,De as CardFocusMeta,Ve as CardFocusMetaItem,ta as CardFocusMore,Je as CardFocusProgress,Ke as CardFocusProgressLabel,Te as CardFocusRemove,Re as CardFocusReviewCount,Ze as CardFocusSettings,Ye as CardFocusStat,sa as CardFocusStatus,Qe as CardFocusTimeRemaining,Be as CardFocusTitle,Me as CardFocusTurbo,oa as CardFocusUndo};
@@ -23,6 +23,10 @@ interface CardLearnScheduleProps extends ComponentProps<"div"> {
23
23
  start: ReactNode;
24
24
  end: ReactNode;
25
25
  label?: ReactNode;
26
+ startOptions?: string[];
27
+ endOptions?: string[];
28
+ onStartChange?: (value: string) => void;
29
+ onEndChange?: (value: string) => void;
26
30
  }
27
31
  declare function CardLearn({ className, specialty, done, ...props }: CardLearnProps): import("react/jsx-runtime").JSX.Element;
28
32
  declare function CardLearnHeader({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
@@ -37,7 +41,7 @@ declare function CardLearnLesson({ className, ...props }: ComponentProps<"div">)
37
41
  declare function CardLearnHeading({ className, icon, children, ...props }: CardLearnHeadingProps): import("react/jsx-runtime").JSX.Element;
38
42
  declare const CardLearnTitle: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
39
43
  declare function CardLearnDescription({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
40
- declare function CardLearnSchedule({ className, start, end, label, ...props }: CardLearnScheduleProps): import("react/jsx-runtime").JSX.Element;
44
+ declare function CardLearnSchedule({ className, start, end, label, startOptions, endOptions, onStartChange, onEndChange, ...props }: CardLearnScheduleProps): import("react/jsx-runtime").JSX.Element;
41
45
  declare function CardLearnFooter({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
42
46
  declare function CardLearnProgress({ className, value, indicatorClassName, children, ...props }: Omit<ProgressProps, "label">): import("react/jsx-runtime").JSX.Element;
43
47
  declare function CardLearnProgressLabel({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;