@medway-ui/core 1.49.0 → 1.51.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 +185 -1
- package/COMPONENTS_SUMMARY.md +3 -1
- package/dist/COMPONENTS.md +185 -1
- package/dist/COMPONENTS_SUMMARY.md +3 -1
- package/dist/components/CardFocus.d.ts +95 -0
- package/dist/components/CardFocus.js +3 -0
- package/dist/components/CardFocus.mjs +3 -0
- package/dist/components/CardLearn.d.ts +49 -0
- package/dist/components/CardLearn.js +3 -0
- package/dist/components/CardLearn.mjs +3 -0
- package/dist/components/IndexLevelAnimated.d.ts +5 -1
- package/dist/components/IndexLevelAnimated.js +1 -1
- package/dist/components/IndexLevelAnimated.mjs +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
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.
|
|
4
|
+
> Package `@medway-ui/core` · v1.51.0 · Generated 2026-11-24
|
|
5
5
|
|
|
6
6
|
All components require React 18+ and are client components (`"use client"`).
|
|
7
7
|
|
|
@@ -32,6 +32,8 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
32
32
|
- [CardTopic](#cardtopic)
|
|
33
33
|
- [CardContinue](#cardcontinue)
|
|
34
34
|
- [CardMission](#cardmission)
|
|
35
|
+
- [CardFocus](#cardfocus)
|
|
36
|
+
- [CardFocus](#cardfocus)
|
|
35
37
|
- [CardLesson](#cardlesson)
|
|
36
38
|
- [CardNews](#cardnews)
|
|
37
39
|
- [Carousel](#carousel)
|
|
@@ -595,6 +597,188 @@ type CardTopicProps = | (CollapsibleProps & {
|
|
|
595
597
|
|
|
596
598
|
---
|
|
597
599
|
|
|
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
|
|
732
|
+
|
|
733
|
+
**Sub-components:** `CardLearn`, `CardLearnActions`, `CardLearnBadge`, `CardLearnCategory`, `CardLearnContent`, `CardLearnDescription`, `CardLearnFooter`, `CardLearnHeader`, `CardLearnHeading`, `CardLearnIndicators`, `CardLearnLesson`, `CardLearnMeta`, `CardLearnMore`, `CardLearnPlayButton`, `CardLearnProgress`, `CardLearnProgressLabel`, `CardLearnSchedule`, `CardLearnStatus`, `CardLearnThumbnail`, `CardLearnTimeRemaining`, `CardLearnTitle`
|
|
734
|
+
|
|
735
|
+
**Exported types:** `CardLearnHeadingProps`, `CardLearnPillProps`, `CardLearnProps`, `CardLearnScheduleProps`, `CardLearnSpecialty`, `CardLearnThumbnailProps`
|
|
736
|
+
|
|
737
|
+
### `CardLearnProps`
|
|
738
|
+
|
|
739
|
+
| Prop | Type | Required |
|
|
740
|
+
|------|------|:--------:|
|
|
741
|
+
| `specialty` | `CardLearnSpecialty` | |
|
|
742
|
+
| `done` | `boolean` | |
|
|
743
|
+
|
|
744
|
+
### `CardLearnPillProps`
|
|
745
|
+
|
|
746
|
+
| Prop | Type | Required |
|
|
747
|
+
|------|------|:--------:|
|
|
748
|
+
| `icon` | `ReactElement` | |
|
|
749
|
+
| `specialty` | `CardLearnSpecialty` | |
|
|
750
|
+
|
|
751
|
+
### `CardLearnHeadingProps`
|
|
752
|
+
|
|
753
|
+
| Prop | Type | Required |
|
|
754
|
+
|------|------|:--------:|
|
|
755
|
+
| `icon` | `ReactNode` | |
|
|
756
|
+
|
|
757
|
+
### `CardLearnThumbnailProps`
|
|
758
|
+
|
|
759
|
+
| Prop | Type | Required |
|
|
760
|
+
|------|------|:--------:|
|
|
761
|
+
| `src` | `string` | ✓ |
|
|
762
|
+
| `alt` | `string` | |
|
|
763
|
+
| `loading` | `"lazy" \| "eager"` | |
|
|
764
|
+
| `imageClassName` | `string` | |
|
|
765
|
+
|
|
766
|
+
### `CardLearnScheduleProps`
|
|
767
|
+
|
|
768
|
+
| Prop | Type | Required |
|
|
769
|
+
|------|------|:--------:|
|
|
770
|
+
| `start` | `ReactNode` | ✓ |
|
|
771
|
+
| `end` | `ReactNode` | ✓ |
|
|
772
|
+
| `label` | `ReactNode` | |
|
|
773
|
+
|
|
774
|
+
### `CardLearnSpecialty` *(type)*
|
|
775
|
+
|
|
776
|
+
```typescript
|
|
777
|
+
type CardLearnSpecialty = "default" | "cm" | "go" | "cir" | "ped" | "prev"
|
|
778
|
+
```
|
|
779
|
+
|
|
780
|
+
---
|
|
781
|
+
|
|
598
782
|
## CardLesson
|
|
599
783
|
|
|
600
784
|
**Sub-components:** `CardLesson`, `CardLessonButton`, `CardLessonContent`, `CardLessonDuration`, `CardLessonFooter`, `CardLessonHeader`, `CardLessonIcon`, `CardLessonIcons`, `CardLessonImage`, `CardLessonLabel`, `CardLessonStatus`, `CardLessonTitle`
|
package/COMPONENTS_SUMMARY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @medway-ui/core — Component Summary
|
|
2
2
|
|
|
3
|
-
> v1.
|
|
3
|
+
> v1.51.0 · For the full prop/variant reference see `COMPONENTS.md`.
|
|
4
4
|
|
|
5
5
|
## Components
|
|
6
6
|
|
|
@@ -16,6 +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
|
+
- **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
|
|
19
21
|
- **CardLesson** — variants: default, blocked | orientation: vertical, horizontal | sub: CardLessonButton, CardLessonContent, CardLessonDuration, CardLessonFooter, CardLessonHeader, CardLessonIcon, CardLessonIcons, CardLessonImage, CardLessonLabel, CardLessonStatus, CardLessonTitle
|
|
20
22
|
- **CardNews** — variants: default, read, compact | orientation: vertical, horizontal | sub: CardNewsAuthor, CardNewsBody, CardNewsContent, CardNewsDate, CardNewsDescription, CardNewsFooter, CardNewsHeader, CardNewsImage, CardNewsResourceItem, CardNewsResources, CardNewsTags, CardNewsTitle
|
|
21
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
|
package/dist/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.
|
|
4
|
+
> Package `@medway-ui/core` · v1.51.0 · Generated 2026-11-24
|
|
5
5
|
|
|
6
6
|
All components require React 18+ and are client components (`"use client"`).
|
|
7
7
|
|
|
@@ -32,6 +32,8 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
32
32
|
- [CardTopic](#cardtopic)
|
|
33
33
|
- [CardContinue](#cardcontinue)
|
|
34
34
|
- [CardMission](#cardmission)
|
|
35
|
+
- [CardFocus](#cardfocus)
|
|
36
|
+
- [CardFocus](#cardfocus)
|
|
35
37
|
- [CardLesson](#cardlesson)
|
|
36
38
|
- [CardNews](#cardnews)
|
|
37
39
|
- [Carousel](#carousel)
|
|
@@ -595,6 +597,188 @@ type CardTopicProps = | (CollapsibleProps & {
|
|
|
595
597
|
|
|
596
598
|
---
|
|
597
599
|
|
|
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
|
|
732
|
+
|
|
733
|
+
**Sub-components:** `CardLearn`, `CardLearnActions`, `CardLearnBadge`, `CardLearnCategory`, `CardLearnContent`, `CardLearnDescription`, `CardLearnFooter`, `CardLearnHeader`, `CardLearnHeading`, `CardLearnIndicators`, `CardLearnLesson`, `CardLearnMeta`, `CardLearnMore`, `CardLearnPlayButton`, `CardLearnProgress`, `CardLearnProgressLabel`, `CardLearnSchedule`, `CardLearnStatus`, `CardLearnThumbnail`, `CardLearnTimeRemaining`, `CardLearnTitle`
|
|
734
|
+
|
|
735
|
+
**Exported types:** `CardLearnHeadingProps`, `CardLearnPillProps`, `CardLearnProps`, `CardLearnScheduleProps`, `CardLearnSpecialty`, `CardLearnThumbnailProps`
|
|
736
|
+
|
|
737
|
+
### `CardLearnProps`
|
|
738
|
+
|
|
739
|
+
| Prop | Type | Required |
|
|
740
|
+
|------|------|:--------:|
|
|
741
|
+
| `specialty` | `CardLearnSpecialty` | |
|
|
742
|
+
| `done` | `boolean` | |
|
|
743
|
+
|
|
744
|
+
### `CardLearnPillProps`
|
|
745
|
+
|
|
746
|
+
| Prop | Type | Required |
|
|
747
|
+
|------|------|:--------:|
|
|
748
|
+
| `icon` | `ReactElement` | |
|
|
749
|
+
| `specialty` | `CardLearnSpecialty` | |
|
|
750
|
+
|
|
751
|
+
### `CardLearnHeadingProps`
|
|
752
|
+
|
|
753
|
+
| Prop | Type | Required |
|
|
754
|
+
|------|------|:--------:|
|
|
755
|
+
| `icon` | `ReactNode` | |
|
|
756
|
+
|
|
757
|
+
### `CardLearnThumbnailProps`
|
|
758
|
+
|
|
759
|
+
| Prop | Type | Required |
|
|
760
|
+
|------|------|:--------:|
|
|
761
|
+
| `src` | `string` | ✓ |
|
|
762
|
+
| `alt` | `string` | |
|
|
763
|
+
| `loading` | `"lazy" \| "eager"` | |
|
|
764
|
+
| `imageClassName` | `string` | |
|
|
765
|
+
|
|
766
|
+
### `CardLearnScheduleProps`
|
|
767
|
+
|
|
768
|
+
| Prop | Type | Required |
|
|
769
|
+
|------|------|:--------:|
|
|
770
|
+
| `start` | `ReactNode` | ✓ |
|
|
771
|
+
| `end` | `ReactNode` | ✓ |
|
|
772
|
+
| `label` | `ReactNode` | |
|
|
773
|
+
|
|
774
|
+
### `CardLearnSpecialty` *(type)*
|
|
775
|
+
|
|
776
|
+
```typescript
|
|
777
|
+
type CardLearnSpecialty = "default" | "cm" | "go" | "cir" | "ped" | "prev"
|
|
778
|
+
```
|
|
779
|
+
|
|
780
|
+
---
|
|
781
|
+
|
|
598
782
|
## CardLesson
|
|
599
783
|
|
|
600
784
|
**Sub-components:** `CardLesson`, `CardLessonButton`, `CardLessonContent`, `CardLessonDuration`, `CardLessonFooter`, `CardLessonHeader`, `CardLessonIcon`, `CardLessonIcons`, `CardLessonImage`, `CardLessonLabel`, `CardLessonStatus`, `CardLessonTitle`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @medway-ui/core — Component Summary
|
|
2
2
|
|
|
3
|
-
> v1.
|
|
3
|
+
> v1.51.0 · For the full prop/variant reference see `COMPONENTS.md`.
|
|
4
4
|
|
|
5
5
|
## Components
|
|
6
6
|
|
|
@@ -16,6 +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
|
+
- **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
|
|
19
21
|
- **CardLesson** — variants: default, blocked | orientation: vertical, horizontal | sub: CardLessonButton, CardLessonContent, CardLessonDuration, CardLessonFooter, CardLessonHeader, CardLessonIcon, CardLessonIcons, CardLessonImage, CardLessonLabel, CardLessonStatus, CardLessonTitle
|
|
20
22
|
- **CardNews** — variants: default, read, compact | orientation: vertical, horizontal | sub: CardNewsAuthor, CardNewsBody, CardNewsContent, CardNewsDate, CardNewsDescription, CardNewsFooter, CardNewsHeader, CardNewsImage, CardNewsResourceItem, CardNewsResources, CardNewsTags, CardNewsTitle
|
|
21
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};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import { type ButtonProps } from "./Button.js";
|
|
3
|
+
import { type ProgressProps } from "./Progress.js";
|
|
4
|
+
type CardLearnSpecialty = "default" | "cm" | "go" | "cir" | "ped" | "prev";
|
|
5
|
+
interface CardLearnProps extends ComponentProps<"div"> {
|
|
6
|
+
specialty?: CardLearnSpecialty;
|
|
7
|
+
done?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface CardLearnPillProps extends ComponentProps<"span"> {
|
|
10
|
+
icon?: ReactElement;
|
|
11
|
+
specialty?: CardLearnSpecialty;
|
|
12
|
+
}
|
|
13
|
+
interface CardLearnHeadingProps extends ComponentProps<"div"> {
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
interface CardLearnThumbnailProps extends ComponentProps<"div"> {
|
|
17
|
+
src: string;
|
|
18
|
+
alt?: string;
|
|
19
|
+
loading?: "lazy" | "eager";
|
|
20
|
+
imageClassName?: string;
|
|
21
|
+
}
|
|
22
|
+
interface CardLearnScheduleProps extends ComponentProps<"div"> {
|
|
23
|
+
start: ReactNode;
|
|
24
|
+
end: ReactNode;
|
|
25
|
+
label?: ReactNode;
|
|
26
|
+
}
|
|
27
|
+
declare function CardLearn({ className, specialty, done, ...props }: CardLearnProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function CardLearnHeader({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function CardLearnCategory({ className, icon, specialty, children, ...props }: CardLearnPillProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function CardLearnMeta({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function CardLearnBadge({ className, icon, specialty, children, ...props }: CardLearnPillProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function CardLearnIndicators({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function CardLearnContent({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function CardLearnThumbnail({ className, imageClassName, src, alt, loading, children, ...props }: CardLearnThumbnailProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare const CardLearnPlayButton: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
36
|
+
declare function CardLearnLesson({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
declare function CardLearnHeading({ className, icon, children, ...props }: CardLearnHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
declare const CardLearnTitle: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
39
|
+
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;
|
|
41
|
+
declare function CardLearnFooter({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare function CardLearnProgress({ className, value, indicatorClassName, children, ...props }: Omit<ProgressProps, "label">): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare function CardLearnProgressLabel({ className, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function CardLearnTimeRemaining({ className, children, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element | null;
|
|
45
|
+
declare function CardLearnStatus({ className, children, ...props }: ComponentProps<"span">): import("react/jsx-runtime").JSX.Element | null;
|
|
46
|
+
declare function CardLearnActions({ className, ...props }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
declare const CardLearnMore: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
48
|
+
export { CardLearn, CardLearnActions, CardLearnBadge, CardLearnCategory, CardLearnContent, CardLearnDescription, CardLearnFooter, CardLearnHeader, CardLearnHeading, CardLearnIndicators, CardLearnLesson, CardLearnMeta, CardLearnMore, CardLearnPlayButton, CardLearnProgress, CardLearnProgressLabel, CardLearnSchedule, CardLearnStatus, CardLearnThumbnail, CardLearnTimeRemaining, CardLearnTitle, };
|
|
49
|
+
export type { CardLearnHeadingProps, CardLearnPillProps, CardLearnProps, CardLearnScheduleProps, CardLearnSpecialty, CardLearnThumbnailProps, };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
"use strict";var n=require("react/jsx-runtime"),m=require("react"),y=require("./Button.js"),T=require("./FallbackImage.js"),O=require("./Progress.js"),q=require("./Separator.js"),C=require("./Tag.js"),p=require("./Tooltip.js"),R=require("../hooks/use-composed-refs.js"),c=require("../lib/utils.js"),g=require("@medway-ui/icons"),S=Object.defineProperty,E=Object.defineProperties,B=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,k=(a,e,r)=>e in a?S(a,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[e]=r,i=(a,e)=>{for(var r in e||(e={}))w.call(e,r)&&k(a,r,e[r]);if(v)for(var r of v(e))L.call(e,r)&&k(a,r,e[r]);return a},f=(a,e)=>E(a,B(e)),o=(a,e)=>{var r={};for(var s in a)w.call(a,s)&&e.indexOf(s)<0&&(r[s]=a[s]);if(a!=null&&v)for(var s of v(a))e.indexOf(s)<0&&L.call(a,s)&&(r[s]=a[s]);return r};const _=m.createContext({specialty:"default",done:!1}),H={default:"[--card-learn-blur-1:var(--color-gray-stroke-emphasis)] [--card-learn-blur-2:var(--color-gray-stroke-emphasis)] [--card-learn-blur-3:var(--color-gray-stroke-emphasis)]",cm:"[--card-learn-blur-1:var(--color-gradient-cm-blur-1)] [--card-learn-blur-2:var(--color-gradient-cm-blur-2)] [--card-learn-blur-3:var(--color-gradient-cm-blur-3)]",go:"[--card-learn-blur-1:var(--color-gradient-go-blur-1)] [--card-learn-blur-2:var(--color-gradient-go-blur-2)] [--card-learn-blur-3:var(--color-gradient-go-blur-3)]",cir:"[--card-learn-blur-1:var(--color-gradient-cir-blur-1)] [--card-learn-blur-2:var(--color-gradient-cir-blur-2)] [--card-learn-blur-3:var(--color-gradient-cir-blur-3)]",ped:"[--card-learn-blur-1:var(--color-gradient-ped-blur-1)] [--card-learn-blur-2:var(--color-gradient-ped-blur-2)] [--card-learn-blur-3:var(--color-gradient-ped-blur-3)]",prev:"[--card-learn-blur-1:var(--color-gradient-prev-blur-1)] [--card-learn-blur-2:var(--color-gradient-prev-blur-2)] [--card-learn-blur-3:var(--color-gradient-prev-blur-3)]"},P={default:"regular-soft",cm:"cm-soft",go:"go-soft",cir:"cir-soft",ped:"ped-soft",prev:"prev-soft"},M="bg-surface-card [background-image:linear-gradient(-73.5deg,transparent_50%,color-mix(in_srgb,var(--card-learn-blur-3)_4%,transparent)_100%),linear-gradient(73.5deg,transparent_50%,color-mix(in_srgb,var(--card-learn-blur-2)_8%,transparent)_100%),linear-gradient(0deg,transparent_50%,color-mix(in_srgb,var(--card-learn-blur-1)_32%,transparent)_100%)]",z="h-6 rounded-lg p-2 text-xxs leading-xxs [&_[data-slot=tag-icon]>svg]:size-3.5";function x(){return m.useContext(_)}function A(a){var e=a,{className:r,specialty:s="default",done:l=!1}=e,t=o(e,["className","specialty","done"]);const d=m.useMemo(()=>({specialty:s,done:l}),[s,l]);return n.jsx(_.Provider,{value:d,children:n.jsx("div",i({"data-slot":"card-learn","data-specialty":s,"data-done":l||void 0,className:c.cn("flex flex-col rounded-lg ring-1 ring-inset ring-gray-stroke-muted",H[s],M,r)},t))})}function F(a){var e=a,{className:r}=e,s=o(e,["className"]);return n.jsx("div",i({"data-slot":"card-learn-header",className:c.cn("flex min-w-0 items-center justify-between gap-2 px-4 pt-4",r)},s))}function I(a){var e=a,{className:r,icon:s,specialty:l,children:t}=e,d=o(e,["className","icon","specialty","children"]);const u=x();return n.jsx(C.Tag,f(i({"data-slot":"card-learn-category",variant:P[l!=null?l:u.specialty],icon:s,className:c.cn(z,"gap-1",r)},d),{children:t}))}function D(a){var e=a,{className:r}=e,s=o(e,["className"]);return n.jsx("div",i({"data-slot":"card-learn-meta",className:c.cn("flex shrink-0 items-center gap-2 self-stretch",r)},s))}function $(a){var e=a,{className:r,icon:s,specialty:l,children:t}=e,d=o(e,["className","icon","specialty","children"]);const u=x();return n.jsx(C.Tag,f(i({"data-slot":"card-learn-badge",variant:P[l!=null?l:u.specialty],icon:s,className:c.cn(z,"shrink-0",r)},d),{children:t}))}function V(a){var e=a,{className:r}=e,s=o(e,["className"]);return n.jsx("div",i({"data-slot":"card-learn-indicators",className:c.cn("flex items-center gap-0.5 self-stretch",r)},s))}function X(a){var e=a,{className:r}=e,s=o(e,["className"]);return n.jsx("div",i({"data-slot":"card-learn-content",className:c.cn("flex flex-col gap-4 px-4 pt-4",r)},s))}function G(a){var e=a,{className:r,imageClassName:s,src:l,alt:t="",loading:d="lazy",children:u}=e,b=o(e,["className","imageClassName","src","alt","loading","children"]);const[N,h]=m.useState();return n.jsxs("div",f(i({"data-slot":"card-learn-thumbnail",className:c.cn("relative isolate flex aspect-video w-full items-center justify-center overflow-hidden rounded-lg",r)},b),{children:[l&&N!==l?n.jsx("img",{src:l,alt:t,loading:d,onError:()=>h(l),className:c.cn("absolute inset-0 -z-10 size-full object-cover",s)}):n.jsx(T.FallbackImage,{className:"absolute inset-0 -z-10 size-full",label:t,"aria-hidden":t===""||void 0}),n.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 -z-10 bg-black-24"}),u]}))}const J=m.forwardRef(function(a,e){var r=a,{"aria-label":s="Assistir",containerClassName:l}=r,t=o(r,["aria-label","containerClassName"]);return n.jsx(y.Button,i({ref:e,variant:"regular",iconLeft:n.jsx(g.Play,{}),"aria-label":s,containerClassName:c.cn("dark",l)},t))});function K(a){var e=a,{className:r}=e,s=o(e,["className"]);return n.jsx("div",i({"data-slot":"card-learn-lesson",className:c.cn("flex items-start justify-between gap-4",r)},s))}function Q(a){var e=a,{className:r,icon:s,children:l}=e,t=o(e,["className","icon","children"]);return n.jsxs("div",f(i({"data-slot":"card-learn-heading",className:c.cn("flex min-w-0 flex-1 items-start",r)},t),{children:[s&&n.jsx("span",{className:"flex shrink-0 items-center pr-2.5 text-primary-foreground [&_svg]:size-5",children:s}),n.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-1 break-words",children:l})]}))}const U=m.forwardRef(function(a,e){var r=a,{className:s,children:l}=r,t=o(r,["className","children"]);const d=m.useRef(null),u=R.useComposedRefs(e,d),[b,N]=m.useState(!1);return n.jsx(p.TooltipProvider,{children:n.jsxs(p.Tooltip,{open:b,onOpenChange:h=>{const j=d.current;N(h&&!!j&&j.scrollHeight>j.clientHeight+1)},children:[n.jsx(p.TooltipTrigger,{asChild:!0,children:n.jsx("div",f(i({ref:u,"data-slot":"card-learn-title",className:c.cn("line-clamp-2 text-sm font-semibold leading-sm text-primary-foreground",s)},t),{children:l}))}),n.jsx(p.TooltipContent,{side:"top",className:"max-w-xs break-words",children:l})]})})});function W(a){var e=a,{className:r}=e,s=o(e,["className"]);return n.jsx("div",i({"data-slot":"card-learn-description",className:c.cn("text-xs font-medium leading-xs text-primary-foreground-muted",r)},s))}function Y(a){var e=a,{className:r,start:s,end:l,label:t="Hor\xE1rios"}=e,d=o(e,["className","start","end","label"]);return n.jsxs("div",f(i({"data-slot":"card-learn-schedule",className:c.cn("flex items-center justify-between gap-2 text-xs leading-xs",r)},d),{children:[n.jsx("span",{className:"font-medium text-primary-foreground",children:t}),n.jsxs("div",{className:"flex shrink-0 items-center gap-2 rounded-md bg-primary-background-soft px-2 py-1 font-semibold",children:[n.jsx(g.Cloudy,{size:16,"aria-hidden":!0,className:"text-primary-foreground"}),n.jsx("span",{className:"text-primary-foreground",children:s}),n.jsx(q.Separator,{className:"bg-primary-foreground-muted data-[orientation=horizontal]:w-[19px]"}),n.jsx("span",{className:"sr-only",children:"at\xE9"}),n.jsx("span",{className:"text-primary-foreground-muted",children:l})]})]}))}function Z(a){var e=a,{className:r}=e,s=o(e,["className"]);return n.jsx("div",i({"data-slot":"card-learn-footer",className:c.cn("mt-auto flex flex-col gap-4 p-4",r)},s))}function ee(a){var e=a,{className:r,value:s,indicatorClassName:l,children:t}=e,d=o(e,["className","value","indicatorClassName","children"]);const{done:u}=x();return n.jsxs("div",{"data-slot":"card-learn-progress",className:c.cn("flex flex-col gap-2",r),children:[m.Children.toArray(t).length>0&&n.jsx("div",{className:"flex min-w-0 items-center gap-2",children:t}),n.jsx(O.Progress,f(i({},d),{className:"my-[0.5px]",value:u?100:s,indicatorClassName:c.cn("rounded-pill",u&&"bg-feedback-success-stroke-emphasis",l)}))]})}function ae(a){var e=a,{className:r}=e,s=o(e,["className"]);return n.jsx("span",i({"data-slot":"card-learn-progress-label",className:c.cn("min-w-0 flex-1 text-xs font-medium leading-xs text-gray-foreground-muted [&_strong]:font-semibold [&_strong]:text-gray-foreground",r)},s))}function re(a){var e=a,{className:r,children:s}=e,l=o(e,["className","children"]);const{done:t}=x();return t?null:n.jsxs("span",f(i({"data-slot":"card-learn-time-remaining",className:c.cn("ml-auto flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs font-medium leading-xs text-primary-foreground-muted [&_strong]:font-semibold",r)},l),{children:[n.jsx(g.TimeRemaining,{size:16,"aria-hidden":!0}),n.jsx("span",{children:s})]}))}function se(a){var e=a,{className:r,children:s="Conclu\xEDdo"}=e,l=o(e,["className","children"]);const{done:t}=x();return t?n.jsxs("span",f(i({"data-slot":"card-learn-status",className:c.cn("ml-auto flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs font-semibold leading-xs text-feedback-success-stroke-emphasis",r)},l),{children:[n.jsx(g.CircleCheck,{size:16,"aria-hidden":!0}),s]})):null}function ne(a){var e=a,{className:r}=e,s=o(e,["className"]);return n.jsx("div",i({"data-slot":"card-learn-actions",className:c.cn("flex items-center gap-2 [&>*:has(>[data-card-learn-more])]:flex-none [&>*>[data-slot=button]]:w-full [&>*]:min-w-0 [&>*]:flex-1",r)},s))}const le=m.forwardRef(function(a,e){var r=a,{"aria-label":s="Mais op\xE7\xF5es"}=r,l=o(r,["aria-label"]);return n.jsx(y.Button,i({ref:e,variant:"regular-basic",iconLeft:n.jsx(g.MoreVertical,{}),"aria-label":s,"data-card-learn-more":""},l))});exports.CardLearn=A,exports.CardLearnActions=ne,exports.CardLearnBadge=$,exports.CardLearnCategory=I,exports.CardLearnContent=X,exports.CardLearnDescription=W,exports.CardLearnFooter=Z,exports.CardLearnHeader=F,exports.CardLearnHeading=Q,exports.CardLearnIndicators=V,exports.CardLearnLesson=K,exports.CardLearnMeta=D,exports.CardLearnMore=le,exports.CardLearnPlayButton=J,exports.CardLearnProgress=ee,exports.CardLearnProgressLabel=ae,exports.CardLearnSchedule=Y,exports.CardLearnStatus=se,exports.CardLearnThumbnail=G,exports.CardLearnTimeRemaining=re,exports.CardLearnTitle=U;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
import{jsx as n,jsxs as f}from"react/jsx-runtime";import{createContext as O,forwardRef as h,useRef as T,useState as y,useMemo as E,Children as S,useContext as R}from"react";import{Button as C}from"./Button.mjs";import{FallbackImage as H}from"./FallbackImage.mjs";import{Progress as M}from"./Progress.mjs";import{Separator as $}from"./Separator.mjs";import{Tag as L}from"./Tag.mjs";import{TooltipProvider as A,Tooltip as I,TooltipTrigger as B,TooltipContent as D}from"./Tooltip.mjs";import{useComposedRefs as F}from"../hooks/use-composed-refs.mjs";import{cn as i}from"../lib/utils.mjs";import{Play as V,MoreVertical as W,Cloudy as X,CircleCheck as Z,TimeRemaining as q}from"@medway-ui/icons";var G=Object.defineProperty,J=Object.defineProperties,K=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,_=(e,a,r)=>a in e?G(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,o=(e,a)=>{for(var r in a||(a={}))w.call(a,r)&&_(e,r,a[r]);if(g)for(var r of g(a))k.call(a,r)&&_(e,r,a[r]);return e},u=(e,a)=>J(e,K(a)),c=(e,a)=>{var r={};for(var l in e)w.call(e,l)&&a.indexOf(l)<0&&(r[l]=e[l]);if(e!=null&&g)for(var l of g(e))a.indexOf(l)<0&&k.call(e,l)&&(r[l]=e[l]);return r};const j=O({specialty:"default",done:!1}),Q={default:"[--card-learn-blur-1:var(--color-gray-stroke-emphasis)] [--card-learn-blur-2:var(--color-gray-stroke-emphasis)] [--card-learn-blur-3:var(--color-gray-stroke-emphasis)]",cm:"[--card-learn-blur-1:var(--color-gradient-cm-blur-1)] [--card-learn-blur-2:var(--color-gradient-cm-blur-2)] [--card-learn-blur-3:var(--color-gradient-cm-blur-3)]",go:"[--card-learn-blur-1:var(--color-gradient-go-blur-1)] [--card-learn-blur-2:var(--color-gradient-go-blur-2)] [--card-learn-blur-3:var(--color-gradient-go-blur-3)]",cir:"[--card-learn-blur-1:var(--color-gradient-cir-blur-1)] [--card-learn-blur-2:var(--color-gradient-cir-blur-2)] [--card-learn-blur-3:var(--color-gradient-cir-blur-3)]",ped:"[--card-learn-blur-1:var(--color-gradient-ped-blur-1)] [--card-learn-blur-2:var(--color-gradient-ped-blur-2)] [--card-learn-blur-3:var(--color-gradient-ped-blur-3)]",prev:"[--card-learn-blur-1:var(--color-gradient-prev-blur-1)] [--card-learn-blur-2:var(--color-gradient-prev-blur-2)] [--card-learn-blur-3:var(--color-gradient-prev-blur-3)]"},z={default:"regular-soft",cm:"cm-soft",go:"go-soft",cir:"cir-soft",ped:"ped-soft",prev:"prev-soft"},U="bg-surface-card [background-image:linear-gradient(-73.5deg,transparent_50%,color-mix(in_srgb,var(--card-learn-blur-3)_4%,transparent)_100%),linear-gradient(73.5deg,transparent_50%,color-mix(in_srgb,var(--card-learn-blur-2)_8%,transparent)_100%),linear-gradient(0deg,transparent_50%,color-mix(in_srgb,var(--card-learn-blur-1)_32%,transparent)_100%)]",P="h-6 rounded-lg p-2 text-xxs leading-xxs [&_[data-slot=tag-icon]>svg]:size-3.5";function p(){return R(j)}function Y(e){var a=e,{className:r,specialty:l="default",done:s=!1}=a,t=c(a,["className","specialty","done"]);const d=E(()=>({specialty:l,done:s}),[l,s]);return n(j.Provider,{value:d,children:n("div",o({"data-slot":"card-learn","data-specialty":l,"data-done":s||void 0,className:i("flex flex-col rounded-lg ring-1 ring-inset ring-gray-stroke-muted",Q[l],U,r)},t))})}function aa(e){var a=e,{className:r}=a,l=c(a,["className"]);return n("div",o({"data-slot":"card-learn-header",className:i("flex min-w-0 items-center justify-between gap-2 px-4 pt-4",r)},l))}function ea(e){var a=e,{className:r,icon:l,specialty:s,children:t}=a,d=c(a,["className","icon","specialty","children"]);const m=p();return n(L,u(o({"data-slot":"card-learn-category",variant:z[s!=null?s:m.specialty],icon:l,className:i(P,"gap-1",r)},d),{children:t}))}function ra(e){var a=e,{className:r}=a,l=c(a,["className"]);return n("div",o({"data-slot":"card-learn-meta",className:i("flex shrink-0 items-center gap-2 self-stretch",r)},l))}function la(e){var a=e,{className:r,icon:l,specialty:s,children:t}=a,d=c(a,["className","icon","specialty","children"]);const m=p();return n(L,u(o({"data-slot":"card-learn-badge",variant:z[s!=null?s:m.specialty],icon:l,className:i(P,"shrink-0",r)},d),{children:t}))}function na(e){var a=e,{className:r}=a,l=c(a,["className"]);return n("div",o({"data-slot":"card-learn-indicators",className:i("flex items-center gap-0.5 self-stretch",r)},l))}function sa(e){var a=e,{className:r}=a,l=c(a,["className"]);return n("div",o({"data-slot":"card-learn-content",className:i("flex flex-col gap-4 px-4 pt-4",r)},l))}function ta(e){var a=e,{className:r,imageClassName:l,src:s,alt:t="",loading:d="lazy",children:m}=a,v=c(a,["className","imageClassName","src","alt","loading","children"]);const[b,x]=y();return f("div",u(o({"data-slot":"card-learn-thumbnail",className:i("relative isolate flex aspect-video w-full items-center justify-center overflow-hidden rounded-lg",r)},v),{children:[s&&b!==s?n("img",{src:s,alt:t,loading:d,onError:()=>x(s),className:i("absolute inset-0 -z-10 size-full object-cover",l)}):n(H,{className:"absolute inset-0 -z-10 size-full",label:t,"aria-hidden":t===""||void 0}),n("div",{"aria-hidden":!0,className:"absolute inset-0 -z-10 bg-black-24"}),m]}))}const ia=h(function(e,a){var r=e,{"aria-label":l="Assistir",containerClassName:s}=r,t=c(r,["aria-label","containerClassName"]);return n(C,o({ref:a,variant:"regular",iconLeft:n(V,{}),"aria-label":l,containerClassName:i("dark",s)},t))});function oa(e){var a=e,{className:r}=a,l=c(a,["className"]);return n("div",o({"data-slot":"card-learn-lesson",className:i("flex items-start justify-between gap-4",r)},l))}function ca(e){var a=e,{className:r,icon:l,children:s}=a,t=c(a,["className","icon","children"]);return f("div",u(o({"data-slot":"card-learn-heading",className:i("flex min-w-0 flex-1 items-start",r)},t),{children:[l&&n("span",{className:"flex shrink-0 items-center pr-2.5 text-primary-foreground [&_svg]:size-5",children:l}),n("div",{className:"flex min-w-0 flex-1 flex-col gap-1 break-words",children:s})]}))}const da=h(function(e,a){var r=e,{className:l,children:s}=r,t=c(r,["className","children"]);const d=T(null),m=F(a,d),[v,b]=y(!1);return n(A,{children:f(I,{open:v,onOpenChange:x=>{const N=d.current;b(x&&!!N&&N.scrollHeight>N.clientHeight+1)},children:[n(B,{asChild:!0,children:n("div",u(o({ref:m,"data-slot":"card-learn-title",className:i("line-clamp-2 text-sm font-semibold leading-sm text-primary-foreground",l)},t),{children:s}))}),n(D,{side:"top",className:"max-w-xs break-words",children:s})]})})});function ma(e){var a=e,{className:r}=a,l=c(a,["className"]);return n("div",o({"data-slot":"card-learn-description",className:i("text-xs font-medium leading-xs text-primary-foreground-muted",r)},l))}function ua(e){var a=e,{className:r,start:l,end:s,label:t="Hor\xE1rios"}=a,d=c(a,["className","start","end","label"]);return f("div",u(o({"data-slot":"card-learn-schedule",className:i("flex items-center justify-between gap-2 text-xs leading-xs",r)},d),{children:[n("span",{className:"font-medium text-primary-foreground",children:t}),f("div",{className:"flex shrink-0 items-center gap-2 rounded-md bg-primary-background-soft px-2 py-1 font-semibold",children:[n(X,{size:16,"aria-hidden":!0,className:"text-primary-foreground"}),n("span",{className:"text-primary-foreground",children:l}),n($,{className:"bg-primary-foreground-muted data-[orientation=horizontal]:w-[19px]"}),n("span",{className:"sr-only",children:"at\xE9"}),n("span",{className:"text-primary-foreground-muted",children:s})]})]}))}function fa(e){var a=e,{className:r}=a,l=c(a,["className"]);return n("div",o({"data-slot":"card-learn-footer",className:i("mt-auto flex flex-col gap-4 p-4",r)},l))}function pa(e){var a=e,{className:r,value:l,indicatorClassName:s,children:t}=a,d=c(a,["className","value","indicatorClassName","children"]);const{done:m}=p();return f("div",{"data-slot":"card-learn-progress",className:i("flex flex-col gap-2",r),children:[S.toArray(t).length>0&&n("div",{className:"flex min-w-0 items-center gap-2",children:t}),n(M,u(o({},d),{className:"my-[0.5px]",value:m?100:l,indicatorClassName:i("rounded-pill",m&&"bg-feedback-success-stroke-emphasis",s)}))]})}function ga(e){var a=e,{className:r}=a,l=c(a,["className"]);return n("span",o({"data-slot":"card-learn-progress-label",className:i("min-w-0 flex-1 text-xs font-medium leading-xs text-gray-foreground-muted [&_strong]:font-semibold [&_strong]:text-gray-foreground",r)},l))}function va(e){var a=e,{className:r,children:l}=a,s=c(a,["className","children"]);const{done:t}=p();return t?null:f("span",u(o({"data-slot":"card-learn-time-remaining",className:i("ml-auto flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs font-medium leading-xs text-primary-foreground-muted [&_strong]:font-semibold",r)},s),{children:[n(q,{size:16,"aria-hidden":!0}),n("span",{children:l})]}))}function ba(e){var a=e,{className:r,children:l="Conclu\xEDdo"}=a,s=c(a,["className","children"]);const{done:t}=p();return t?f("span",u(o({"data-slot":"card-learn-status",className:i("ml-auto flex shrink-0 items-center gap-1.5 whitespace-nowrap text-xs font-semibold leading-xs text-feedback-success-stroke-emphasis",r)},s),{children:[n(Z,{size:16,"aria-hidden":!0}),l]})):null}function xa(e){var a=e,{className:r}=a,l=c(a,["className"]);return n("div",o({"data-slot":"card-learn-actions",className:i("flex items-center gap-2 [&>*:has(>[data-card-learn-more])]:flex-none [&>*>[data-slot=button]]:w-full [&>*]:min-w-0 [&>*]:flex-1",r)},l))}const Na=h(function(e,a){var r=e,{"aria-label":l="Mais op\xE7\xF5es"}=r,s=c(r,["aria-label"]);return n(C,o({ref:a,variant:"regular-basic",iconLeft:n(W,{}),"aria-label":l,"data-card-learn-more":""},s))});export{Y as CardLearn,xa as CardLearnActions,la as CardLearnBadge,ea as CardLearnCategory,sa as CardLearnContent,ma as CardLearnDescription,fa as CardLearnFooter,aa as CardLearnHeader,ca as CardLearnHeading,na as CardLearnIndicators,oa as CardLearnLesson,ra as CardLearnMeta,Na as CardLearnMore,ia as CardLearnPlayButton,pa as CardLearnProgress,ga as CardLearnProgressLabel,ua as CardLearnSchedule,ba as CardLearnStatus,ta as CardLearnThumbnail,va as CardLearnTimeRemaining,da as CardLearnTitle};
|
|
@@ -7,6 +7,10 @@ type IndexLevelSpecialtyProp = IndexLevelSpecialty | Uppercase<IndexLevelSpecial
|
|
|
7
7
|
declare const indexLevelAnimatedVariants: (props?: ({
|
|
8
8
|
size?: "sm" | "md" | null | undefined;
|
|
9
9
|
} & ({ class: import("clsx").ClassValue; className?: never } | { class?: never; className: import("clsx").ClassValue } | { class?: never; className?: never })) | undefined) => string;
|
|
10
|
+
interface IndexLevelRingProps extends ComponentProps<"span"> {
|
|
11
|
+
animated?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare function IndexLevelRing({ className, animated, ...props }: IndexLevelRingProps): import("react/jsx-runtime").JSX.Element;
|
|
10
14
|
interface IndexLevelAnimatedProps extends ComponentProps<"span">, VariantProps<typeof indexLevelAnimatedVariants> {
|
|
11
15
|
/** Priority level, matching the `PriorityLevelType` enum values. */
|
|
12
16
|
level: IndexLevelValue;
|
|
@@ -29,5 +33,5 @@ interface IndexLevelAnimatedProps extends ComponentProps<"span">, VariantProps<t
|
|
|
29
33
|
asChild?: boolean;
|
|
30
34
|
}
|
|
31
35
|
declare const IndexLevelAnimated: import("react").ForwardRefExoticComponent<Omit<IndexLevelAnimatedProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
32
|
-
export { IndexLevelAnimated, indexLevelAnimatedVariants };
|
|
36
|
+
export { IndexLevelAnimated, indexLevelAnimatedVariants, IndexLevelRing };
|
|
33
37
|
export type { IndexLevelAnimatedProps, IndexLevelSpecialty, IndexLevelSpecialtyProp, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
|
-
"use strict";var n=require("react/jsx-runtime"),
|
|
3
|
+
"use strict";var n=require("react/jsx-runtime"),J=require("class-variance-authority"),j=require("radix-ui"),K=require("react"),w=require("./IndexLevel.js"),s=require("../lib/utils.js"),Q=Object.defineProperty,T=Object.defineProperties,U=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,O=(e,a,r)=>a in e?Q(e,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[a]=r,C=(e,a)=>{for(var r in a||(a={}))_.call(a,r)&&O(e,r,a[r]);if(c)for(var r of c(a))L.call(a,r)&&O(e,r,a[r]);return e},q=(e,a)=>T(e,U(a)),I=(e,a)=>{var r={};for(var t in e)_.call(e,t)&&a.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&c)for(var t of c(e))a.indexOf(t)<0&&L.call(e,t)&&(r[t]=e[t]);return r};const W=["p","h"],z={default:{text:"text-primary-foreground",ring:"text-primary-background-fill",soft:{sm:"bg-gray-background-soft-muted",md:"bg-gray-background-soft-muted"}},cm:{text:"text-cm-foreground",ring:"text-cm-background-fill",soft:{sm:"bg-cm-background-soft",md:"bg-cm-background-soft-emphasis"}},go:{text:"text-go-foreground",ring:"text-go-background-fill",soft:{sm:"bg-go-background-soft",md:"bg-go-background-soft-emphasis"}},cir:{text:"text-cir-foreground",ring:"text-cir-background-fill",soft:{sm:"bg-cir-background-soft",md:"bg-cir-background-soft-emphasis"}},ped:{text:"text-ped-foreground",ring:"text-ped-background-fill",soft:{sm:"bg-ped-background-soft",md:"bg-ped-background-soft-emphasis"}},prev:{text:"text-prev-foreground",ring:"text-prev-background-fill",soft:{sm:"bg-prev-background-soft",md:"bg-prev-background-soft-emphasis"}}},S=J.cva("relative inline-flex w-fit min-w-0 max-w-full items-center justify-center whitespace-nowrap rounded-md font-semibold",{variants:{size:{sm:"gap-1.5 px-2 py-1 text-xs leading-xs",md:"gap-2 px-2.5 py-1.5 text-sm leading-sm"}},defaultVariants:{size:"md"}}),X=["[-webkit-mask-image:linear-gradient(#fff_0_0),linear-gradient(#fff_0_0)]","[-webkit-mask-clip:content-box,border-box]","[-webkit-mask-composite:xor]","[mask-image:linear-gradient(#fff_0_0),linear-gradient(#fff_0_0)]","[mask-clip:content-box,border-box]","[mask-composite:exclude]"];function E(e){var a=e,{className:r,animated:t=!0}=a,l=I(a,["className","animated"]);return n.jsx("span",q(C({"aria-hidden":!0,className:s.cn("pointer-events-none absolute inset-[-4px] rounded-[12px] p-[2px]",X,t?"animate-index-level-ring-settle motion-reduce:animate-none motion-reduce:opacity-10":"opacity-10",r)},l),{children:n.jsx("span",{className:"absolute left-1/2 top-1/2 aspect-square w-[200%] -translate-x-1/2 -translate-y-1/2",children:n.jsx("span",{className:s.cn("block size-full [background:linear-gradient(to_bottom,currentColor_0%,transparent_100%)]",t&&"animate-index-level-ring-spin motion-reduce:animate-none")})})}))}const Y=K.forwardRef(function(e,a){var r=e,{className:t,size:l,level:o,specialty:P="default",shortName:A=!1,label:g,hideLabel:b=!1,animated:V=!0,iconClassName:R,labelClassName:D,ringClassName:B,asChild:p=!1,children:i}=r,m=I(r,["className","size","level","specialty","shortName","label","hideLabel","animated","iconClassName","labelClassName","ringClassName","asChild","children"]),x,v,k;const d=w.INDEX_LEVEL_LABELS[o];if(!d)return null;const G=p?j.Slot.Slot:"span",H=l!=null?l:"md",h=P.toLowerCase(),u=(x=z[h])!=null?x:z.default,y=W.includes(o),f=g!=null?g:A?d.short:d.full,N=(v=m["aria-label"])!=null?v:b&&!i?typeof f=="string"?f:d.full:void 0;return n.jsxs(G,q(C({ref:a,"data-slot":"index-level-animated","data-level":o,"data-specialty":h,className:s.cn(S({size:l}),u.text,y?"bg-surface-card":u.soft[H],t)},m),{role:(k=m.role)!=null?k:N&&!i?"img":void 0,"aria-label":N,children:[y&&n.jsx(E,{"data-slot":"index-level-animated-ring",animated:V,className:s.cn(u.ring,B)}),n.jsx(w.IndexLevelIcon,{level:o,size:l,baseOpacity:"20",className:R}),!b&&n.jsx("span",{"data-slot":"index-level-animated-label",className:s.cn("min-w-0 truncate text-center",D),children:f}),p?n.jsx(j.Slot.Slottable,{children:i}):i&&n.jsx("span",{"data-slot":"index-level-animated-extra",children:i})]}))});exports.IndexLevelAnimated=Y,exports.IndexLevelRing=E,exports.indexLevelAnimatedVariants=S;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
"use client";
|
|
3
|
-
import{jsxs as
|
|
3
|
+
import{jsxs as H,jsx as n}from"react/jsx-runtime";import{cva as J}from"class-variance-authority";import{Slot as w}from"radix-ui";import{forwardRef as K}from"react";import{INDEX_LEVEL_LABELS as M,IndexLevelIcon as Q}from"./IndexLevel.mjs";import{cn as o}from"../lib/utils.mjs";var T=Object.defineProperty,W=Object.defineProperties,X=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,L=(e,a,t)=>a in e?T(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t,C=(e,a)=>{for(var t in a||(a={}))_.call(a,t)&&L(e,t,a[t]);if(m)for(var t of m(a))O.call(a,t)&&L(e,t,a[t]);return e},j=(e,a)=>W(e,X(a)),z=(e,a)=>{var t={};for(var r in e)_.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&m)for(var r of m(e))a.indexOf(r)<0&&O.call(e,r)&&(t[r]=e[r]);return t};const Y=["p","h"],I={default:{text:"text-primary-foreground",ring:"text-primary-background-fill",soft:{sm:"bg-gray-background-soft-muted",md:"bg-gray-background-soft-muted"}},cm:{text:"text-cm-foreground",ring:"text-cm-background-fill",soft:{sm:"bg-cm-background-soft",md:"bg-cm-background-soft-emphasis"}},go:{text:"text-go-foreground",ring:"text-go-background-fill",soft:{sm:"bg-go-background-soft",md:"bg-go-background-soft-emphasis"}},cir:{text:"text-cir-foreground",ring:"text-cir-background-fill",soft:{sm:"bg-cir-background-soft",md:"bg-cir-background-soft-emphasis"}},ped:{text:"text-ped-foreground",ring:"text-ped-background-fill",soft:{sm:"bg-ped-background-soft",md:"bg-ped-background-soft-emphasis"}},prev:{text:"text-prev-foreground",ring:"text-prev-background-fill",soft:{sm:"bg-prev-background-soft",md:"bg-prev-background-soft-emphasis"}}},E=J("relative inline-flex w-fit min-w-0 max-w-full items-center justify-center whitespace-nowrap rounded-md font-semibold",{variants:{size:{sm:"gap-1.5 px-2 py-1 text-xs leading-xs",md:"gap-2 px-2.5 py-1.5 text-sm leading-sm"}},defaultVariants:{size:"md"}}),$=["[-webkit-mask-image:linear-gradient(#fff_0_0),linear-gradient(#fff_0_0)]","[-webkit-mask-clip:content-box,border-box]","[-webkit-mask-composite:xor]","[mask-image:linear-gradient(#fff_0_0),linear-gradient(#fff_0_0)]","[mask-clip:content-box,border-box]","[mask-composite:exclude]"];function P(e){var a=e,{className:t,animated:r=!0}=a,l=z(a,["className","animated"]);return n("span",j(C({"aria-hidden":!0,className:o("pointer-events-none absolute inset-[-4px] rounded-[12px] p-[2px]",$,r?"animate-index-level-ring-settle motion-reduce:animate-none motion-reduce:opacity-10":"opacity-10",t)},l),{children:n("span",{className:"absolute left-1/2 top-1/2 aspect-square w-[200%] -translate-x-1/2 -translate-y-1/2",children:n("span",{className:o("block size-full [background:linear-gradient(to_bottom,currentColor_0%,transparent_100%)]",r&&"animate-index-level-ring-spin motion-reduce:animate-none")})})}))}const F=K(function(e,a){var t=e,{className:r,size:l,level:s,specialty:S="default",shortName:A=!1,label:u,hideLabel:p=!1,animated:V=!0,iconClassName:D,labelClassName:R,ringClassName:q,asChild:b=!1,children:i}=t,c=z(t,["className","size","level","specialty","shortName","label","hideLabel","animated","iconClassName","labelClassName","ringClassName","asChild","children"]),x,v,k;const d=M[s];if(!d)return null;const B=b?w.Slot:"span",G=l!=null?l:"md",h=S.toLowerCase(),f=(x=I[h])!=null?x:I.default,y=Y.includes(s),g=u!=null?u:A?d.short:d.full,N=(v=c["aria-label"])!=null?v:p&&!i?typeof g=="string"?g:d.full:void 0;return H(B,j(C({ref:a,"data-slot":"index-level-animated","data-level":s,"data-specialty":h,className:o(E({size:l}),f.text,y?"bg-surface-card":f.soft[G],r)},c),{role:(k=c.role)!=null?k:N&&!i?"img":void 0,"aria-label":N,children:[y&&n(P,{"data-slot":"index-level-animated-ring",animated:V,className:o(f.ring,q)}),n(Q,{level:s,size:l,baseOpacity:"20",className:D}),!p&&n("span",{"data-slot":"index-level-animated-label",className:o("min-w-0 truncate text-center",R),children:g}),b?n(w.Slottable,{children:i}):i&&n("span",{"data-slot":"index-level-animated-extra",children:i})]}))});export{F as IndexLevelAnimated,P as IndexLevelRing,E as indexLevelAnimatedVariants};
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ export type { CardTopicProgressProps, CardTopicProps, CardTopicVariant, } from "
|
|
|
21
21
|
export { CardContinue, CardContinueButton, CardContinueBreadcrumb, CardContinueContent, CardContinueHeader, CardContinueImage, CardContinueTitle, } from "./components/CardContinue.js";
|
|
22
22
|
export type { CardContinueBreadcrumbProps, CardContinueImageProps, } from "./components/CardContinue.js";
|
|
23
23
|
export { CardMission, CardMissionContent, CardMissionDescription, CardMissionHeader, CardMissionOverline, CardMissionPhase, CardMissionTitle, } from "./components/CardMission.js";
|
|
24
|
+
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, } from "./components/CardFocus.js";
|
|
25
|
+
export type { CardFocusAvatarProps, CardFocusCountProps, CardFocusIndexLevelProps, CardFocusIndicatorProps, CardFocusLastContactProps, CardFocusLastScoreProps, CardFocusLiveProps, CardFocusMetaItemProps, CardFocusProgressProps, CardFocusProps, CardFocusReviewCountProps, CardFocusSpecialty, CardFocusStatProps, CardFocusStatusProps, CardFocusStatusType, CardFocusTurboProps, CardFocusUndoProps, } from "./components/CardFocus.js";
|
|
26
|
+
export { CardLearn, CardLearnActions, CardLearnBadge, CardLearnCategory, CardLearnContent, CardLearnDescription, CardLearnFooter, CardLearnHeader, CardLearnHeading, CardLearnIndicators, CardLearnLesson, CardLearnMeta, CardLearnMore, CardLearnPlayButton, CardLearnProgress, CardLearnProgressLabel, CardLearnSchedule, CardLearnStatus, CardLearnThumbnail, CardLearnTimeRemaining, CardLearnTitle, } from "./components/CardLearn.js";
|
|
27
|
+
export type { CardLearnHeadingProps, CardLearnPillProps, CardLearnProps, CardLearnScheduleProps, CardLearnSpecialty, CardLearnThumbnailProps, } from "./components/CardLearn.js";
|
|
24
28
|
export { cardLessonVariants, CardLesson, CardLessonButton, CardLessonContent, CardLessonDuration, CardLessonFooter, CardLessonHeader, CardLessonIcon, CardLessonIcons, CardLessonImage, CardLessonLabel, CardLessonStatus, CardLessonTitle, } from "./components/CardLesson.js";
|
|
25
29
|
export type { CardLessonIconProps, CardLessonImageProps, CardLessonOrientation, CardLessonProps, CardLessonStatusProps, CardLessonStatusType, CardLessonVariant, } from "./components/CardLesson.js";
|
|
26
30
|
export { CardNews, CardNewsAuthor, CardNewsBody, CardNewsContent, CardNewsDate, CardNewsDescription, CardNewsFooter, CardNewsHeader, CardNewsImage, CardNewsResourceItem, CardNewsResources, CardNewsTags, CardNewsTitle, } from "./components/CardNews.js";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
"use strict";var C=require("./components/Alert.js"),i=require("./components/AlertDialog.js"),S=require("./components/Autocomplete.js"),V=require("./components/Avatar.js"),G=require("./components/Badge.js"),v=require("./components/Breadcrumb.js"),y=require("./components/Button.js"),t=require("./components/CardWeek.js"),g=require("./components/CardModule.js"),p=require("./components/CardTopic.js"),m=require("./components/CardContinue.js"),D=require("./components/CardMission.js"),n=require("./components/CardLesson.js"),s=require("./components/CardNews.js"),T=require("./components/Carousel.js"),H=require("./components/Checkbox.js"),A=require("./components/Chip.js"),h=require("./components/Collapsible.js"),$=require("./components/ConfirmDeleteButton.js"),ee=require("./components/Connector.js"),re=require("./components/ConnectorNode.js"),d=require("./components/Dialog.js"),E=require("./components/Dismiss.js"),f=require("./components/DistributionBar.js"),a=require("./components/DropdownMenu.js"),L=require("./components/DatePicker.js"),M=require("./components/IndexLevel.js"),_=require("./components/IndexLevelAnimated.js"),l=require("./components/Input.js"),K=require("./components/Label.js"),ae=require("./components/FallbackImage.js"),te=require("./components/Loading.js"),O=require("./components/LoadingOverlay.js"),x=require("./components/Logo.js"),u=require("./components/Offcanvas.js"),N=require("./components/CardOption.js"),c=require("./components/Pagination.js"),R=require("./components/Popover.js"),oe=require("./components/Progress.js"),ie=require("./components/ProgressCircle.js"),W=require("./components/RadioGroup.js"),r=require("./components/Ranking.js"),B=require("./components/Rating.js"),X=require("./components/RingCounter.js"),z=require("./components/ScrollArea.js"),o=require("./components/Select.js"),P=require("./components/SegmentControl.js"),ne=require("./components/Separator.js"),e=require("./components/Sidebar.js"),se=require("./components/Skeleton.js"),Q=require("./components/SortableList.js"),U=require("./components/Switch.js"),k=require("./components/Switcher.js"),I=require("./components/Tabs.js"),j=require("./components/Tag.js"),J=require("./components/TagPicker.js"),Y=require("./components/CardTestimonial.js"),F=require("./components/TextMarker.js"),Z=require("./components/Textarea.js"),w=require("./components/Tile.js"),b=require("./components/Toast.js"),le=require("./hooks/use-toast.js"),q=require("./components/Tooltip.js"),de=require("./components/TrailStep.js"),ue=require("./hooks/use-mobile.js");exports.Alert=C.Alert,exports.AlertActions=C.AlertActions,exports.AlertButton=C.AlertButton,exports.AlertContainer=C.AlertContainer,exports.AlertContent=C.AlertContent,exports.AlertDescription=C.AlertDescription,exports.AlertIcon=C.AlertIcon,exports.AlertTitle=C.AlertTitle,exports.alertButtonVariants=C.alertButtonVariants,exports.alertVariants=C.alertVariants,exports.AlertDialog=i.AlertDialog,exports.AlertDialogAction=i.AlertDialogAction,exports.AlertDialogCancel=i.AlertDialogCancel,exports.AlertDialogContent=i.AlertDialogContent,exports.AlertDialogDescription=i.AlertDialogDescription,exports.AlertDialogFooter=i.AlertDialogFooter,exports.AlertDialogHeader=i.AlertDialogHeader,exports.AlertDialogIcon=i.AlertDialogIcon,exports.AlertDialogOverlay=i.AlertDialogOverlay,exports.AlertDialogPortal=i.AlertDialogPortal,exports.AlertDialogTag=i.AlertDialogTag,exports.AlertDialogTitle=i.AlertDialogTitle,exports.AlertDialogTrigger=i.AlertDialogTrigger,exports.Autocomplete=S.Autocomplete,exports.AutocompleteContent=S.AutocompleteContent,exports.AutocompleteContentFooter=S.AutocompleteContentFooter,exports.AutocompleteGroup=S.AutocompleteGroup,exports.AutocompleteItem=S.AutocompleteItem,exports.AutocompleteText=S.AutocompleteText,exports.AutocompleteTrigger=S.AutocompleteTrigger,exports.AutocompleteWrapper=S.AutocompleteWrapper,exports.Avatar=V.Avatar,exports.AvatarFallback=V.AvatarFallback,exports.AvatarImage=V.AvatarImage,exports.avatarVariants=V.avatarVariants,exports.Badge=G.Badge,exports.badgeVariants=G.badgeVariants,exports.Breadcrumb=v.Breadcrumb,exports.BreadcrumbEllipsis=v.BreadcrumbEllipsis,exports.BreadcrumbItem=v.BreadcrumbItem,exports.BreadcrumbLink=v.BreadcrumbLink,exports.BreadcrumbList=v.BreadcrumbList,exports.BreadcrumbPage=v.BreadcrumbPage,exports.BreadcrumbSeparator=v.BreadcrumbSeparator,exports.Button=y.Button,exports.buttonVariants=y.buttonVariants,exports.CardWeek=t.CardWeek,exports.CardWeekActions=t.CardWeekActions,exports.CardWeekBreadcrumb=t.CardWeekBreadcrumb,exports.CardWeekContainer=t.CardWeekContainer,exports.CardWeekContent=t.CardWeekContent,exports.CardWeekDescription=t.CardWeekDescription,exports.CardWeekFooter=t.CardWeekFooter,exports.CardWeekHeader=t.CardWeekHeader,exports.CardWeekProgress=t.CardWeekProgress,exports.CardWeekProgressCircle=t.CardWeekProgressCircle,exports.CardWeekStatus=t.CardWeekStatus,exports.CardWeekTags=t.CardWeekTags,exports.CardWeekText=t.CardWeekText,exports.CardWeekTitle=t.CardWeekTitle,exports.CardModule=g.CardModule,exports.CardModuleAction=g.CardModuleAction,exports.CardModuleButton=g.CardModuleButton,exports.CardModuleFooter=g.CardModuleFooter,exports.CardModuleHeader=g.CardModuleHeader,exports.CardModuleLabel=g.CardModuleLabel,exports.CardModuleProgress=g.CardModuleProgress,exports.CardModuleTitle=g.CardModuleTitle,exports.cardModuleStatusVariants=g.cardModuleStatusVariants,exports.cardModuleVariants=g.cardModuleVariants,exports.CardTopic=p.CardTopic,exports.CardTopicColumn=p.CardTopicColumn,exports.CardTopicContent=p.CardTopicContent,exports.CardTopicCount=p.CardTopicCount,exports.CardTopicNumber=p.CardTopicNumber,exports.CardTopicProgress=p.CardTopicProgress,exports.CardTopicTitle=p.CardTopicTitle,exports.CardTopicTrigger=p.CardTopicTrigger,exports.cardTopicVariants=p.cardTopicVariants,exports.CardContinue=m.CardContinue,exports.CardContinueBreadcrumb=m.CardContinueBreadcrumb,exports.CardContinueButton=m.CardContinueButton,exports.CardContinueContent=m.CardContinueContent,exports.CardContinueHeader=m.CardContinueHeader,exports.CardContinueImage=m.CardContinueImage,exports.CardContinueTitle=m.CardContinueTitle,exports.CardMission=D.CardMission,exports.CardMissionContent=D.CardMissionContent,exports.CardMissionDescription=D.CardMissionDescription,exports.CardMissionHeader=D.CardMissionHeader,exports.CardMissionOverline=D.CardMissionOverline,exports.CardMissionPhase=D.CardMissionPhase,exports.CardMissionTitle=D.CardMissionTitle,exports.CardLesson=n.CardLesson,exports.CardLessonButton=n.CardLessonButton,exports.CardLessonContent=n.CardLessonContent,exports.CardLessonDuration=n.CardLessonDuration,exports.CardLessonFooter=n.CardLessonFooter,exports.CardLessonHeader=n.CardLessonHeader,exports.CardLessonIcon=n.CardLessonIcon,exports.CardLessonIcons=n.CardLessonIcons,exports.CardLessonImage=n.CardLessonImage,exports.CardLessonLabel=n.CardLessonLabel,exports.CardLessonStatus=n.CardLessonStatus,exports.CardLessonTitle=n.CardLessonTitle,exports.cardLessonVariants=n.cardLessonVariants,exports.CardNews=s.CardNews,exports.CardNewsAuthor=s.CardNewsAuthor,exports.CardNewsBody=s.CardNewsBody,exports.CardNewsContent=s.CardNewsContent,exports.CardNewsDate=s.CardNewsDate,exports.CardNewsDescription=s.CardNewsDescription,exports.CardNewsFooter=s.CardNewsFooter,exports.CardNewsHeader=s.CardNewsHeader,exports.CardNewsImage=s.CardNewsImage,exports.CardNewsResourceItem=s.CardNewsResourceItem,exports.CardNewsResources=s.CardNewsResources,exports.CardNewsTags=s.CardNewsTags,exports.CardNewsTitle=s.CardNewsTitle,exports.Carousel=T.Carousel,exports.CarouselAutoplayToggle=T.CarouselAutoplayToggle,exports.CarouselContent=T.CarouselContent,exports.CarouselDots=T.CarouselDots,exports.CarouselItem=T.CarouselItem,exports.CarouselNext=T.CarouselNext,exports.CarouselPrevious=T.CarouselPrevious,exports.useCarousel=T.useCarousel,exports.Checkbox=H.Checkbox,exports.checkboxVariants=H.checkboxVariants,exports.Chip=A.Chip,exports.ChipChoice=A.ChipChoice,exports.ChipClear=A.ChipClear,exports.ChipFilter=A.ChipFilter,exports.chipClearVariants=A.chipClearVariants,exports.chipSelectableVariants=A.chipSelectableVariants,exports.chipVariants=A.chipVariants,exports.Collapsible=h.Collapsible,exports.CollapsibleContent=h.CollapsibleContent,exports.CollapsibleTrigger=h.CollapsibleTrigger,exports.ConfirmDeleteButton=$.ConfirmDeleteButton,exports.Connector=ee.Connector,exports.ConnectorNode=re.ConnectorNode,exports.Dialog=d.Dialog,exports.DialogClose=d.DialogClose,exports.DialogContainer=d.DialogContainer,exports.DialogContent=d.DialogContent,exports.DialogDescription=d.DialogDescription,exports.DialogFooter=d.DialogFooter,exports.DialogHeader=d.DialogHeader,exports.DialogOverlay=d.DialogOverlay,exports.DialogPortal=d.DialogPortal,exports.DialogTitle=d.DialogTitle,exports.DialogTrigger=d.DialogTrigger,exports.Dismiss=E.Dismiss,exports.dismissVariants=E.dismissVariants,exports.DistributionBar=f.DistributionBar,exports.distributionBarVariants=f.distributionBarVariants,exports.distributionToneClass=f.distributionToneClass,exports.DropdownMenu=a.DropdownMenu,exports.DropdownMenuCheckboxItem=a.DropdownMenuCheckboxItem,exports.DropdownMenuContent=a.DropdownMenuContent,exports.DropdownMenuGroup=a.DropdownMenuGroup,exports.DropdownMenuItem=a.DropdownMenuItem,exports.DropdownMenuLabel=a.DropdownMenuLabel,exports.DropdownMenuPortal=a.DropdownMenuPortal,exports.DropdownMenuRadioGroup=a.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=a.DropdownMenuRadioItem,exports.DropdownMenuSeparator=a.DropdownMenuSeparator,exports.DropdownMenuShortcut=a.DropdownMenuShortcut,exports.DropdownMenuSub=a.DropdownMenuSub,exports.DropdownMenuSubContent=a.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=a.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=a.DropdownMenuTrigger,exports.DatePicker=L.DatePicker,exports.DatePickerLabel=L.DatePickerLabel,exports.DatePickerText=L.DatePickerText,exports.DatePickerWrapper=L.DatePickerWrapper,exports.DateRangePicker=L.DateRangePicker,exports.datePickerTriggerVariants=L.datePickerTriggerVariants,exports.INDEX_LEVEL_LABELS=M.INDEX_LEVEL_LABELS,exports.IndexLevel=M.IndexLevel,exports.IndexLevelIcon=M.IndexLevelIcon,exports.indexLevelIconVariants=M.indexLevelIconVariants,exports.indexLevelVariants=M.indexLevelVariants,exports.IndexLevelAnimated=_.IndexLevelAnimated,exports.indexLevelAnimatedVariants=_.indexLevelAnimatedVariants,exports.Input=l.Input,exports.InputAdornment=l.InputAdornment,exports.InputEndIcon=l.InputEndIcon,exports.InputField=l.InputField,exports.InputLabel=l.InputLabel,exports.InputNumeric=l.InputNumeric,exports.InputPassword=l.InputPassword,exports.InputStartIcon=l.InputStartIcon,exports.InputText=l.InputText,exports.InputWrapper=l.InputWrapper,exports.applyInputIconSize=l.applyInputIconSize,exports.inputVariants=l.inputVariants,exports.Label=K.Label,exports.labelVariants=K.labelVariants,exports.FallbackImage=ae.FallbackImage,exports.Loading=te.Loading,exports.LoadingOverlay=O.LoadingOverlay,exports.LoadingOverlayCard=O.LoadingOverlayCard,exports.LoadingOverlaySpinner=O.LoadingOverlaySpinner,exports.Logo=x.Logo,exports.LogoCircular=x.LogoCircular,exports.LogoShort=x.LogoShort,exports.Offcanvas=u.Offcanvas,exports.OffcanvasBody=u.OffcanvasBody,exports.OffcanvasClose=u.OffcanvasClose,exports.OffcanvasContent=u.OffcanvasContent,exports.OffcanvasDescription=u.OffcanvasDescription,exports.OffcanvasFooter=u.OffcanvasFooter,exports.OffcanvasHeader=u.OffcanvasHeader,exports.OffcanvasOverlay=u.OffcanvasOverlay,exports.OffcanvasPortal=u.OffcanvasPortal,exports.OffcanvasTitle=u.OffcanvasTitle,exports.OffcanvasTrigger=u.OffcanvasTrigger,exports.CardOption=N.CardOption,exports.CardOptionGroup=N.CardOptionGroup,exports.cardOptionVariants=N.cardOptionVariants,exports.Pagination=c.Pagination,exports.PaginationContent=c.PaginationContent,exports.PaginationEllipsis=c.PaginationEllipsis,exports.PaginationInfo=c.PaginationInfo,exports.PaginationItem=c.PaginationItem,exports.PaginationLink=c.PaginationLink,exports.PaginationNext=c.PaginationNext,exports.PaginationPrevious=c.PaginationPrevious,exports.PaginationRoot=c.PaginationRoot,exports.calculatePageNumbers=c.calculatePageNumbers,exports.Popover=R.Popover,exports.PopoverAnchor=R.PopoverAnchor,exports.PopoverContent=R.PopoverContent,exports.PopoverTrigger=R.PopoverTrigger,exports.Progress=oe.Progress,exports.ProgressCircle=ie.ProgressCircle,exports.RadioGroup=W.RadioGroup,exports.RadioGroupItem=W.RadioGroupItem,exports.radioGroupVariants=W.radioGroupVariants,exports.Ranking=r.Ranking,exports.RankingAssigneeGroup=r.RankingAssigneeGroup,exports.RankingAssigneeItem=r.RankingAssigneeItem,exports.RankingAssigneeLabel=r.RankingAssigneeLabel,exports.RankingAssigneesColumn=r.RankingAssigneesColumn,exports.RankingBody=r.RankingBody,exports.RankingButton=r.RankingButton,exports.RankingHeader=r.RankingHeader,exports.RankingHeaderCell=r.RankingHeaderCell,exports.RankingItem=r.RankingItem,exports.RankingNumber=r.RankingNumber,exports.RankingPerformance=r.RankingPerformance,exports.RankingPriority=r.RankingPriority,exports.RankingQuestions=r.RankingQuestions,exports.RankingSpecialty=r.RankingSpecialty,exports.RankingSuperFocus=r.RankingSuperFocus,exports.RankingTopic=r.RankingTopic,exports.RankingTopicColumn=r.RankingTopicColumn,exports.RankingTopicContent=r.RankingTopicContent,exports.Rating=B.Rating,exports.RatingButtonVariants=B.RatingButtonVariants,exports.RatingLabelVariants=B.RatingLabelVariants,exports.RatingStarVariants=B.RatingStarVariants,exports.RingCounter=X.RingCounter,exports.alignToStep=X.alignToStep,exports.ScrollArea=z.ScrollArea,exports.ScrollBar=z.ScrollBar,exports.Select=o.Select,exports.SelectContent=o.SelectContent,exports.SelectGroup=o.SelectGroup,exports.SelectHeader=o.SelectHeader,exports.SelectItem=o.SelectItem,exports.SelectLabel=o.SelectLabel,exports.SelectScrollDownButton=o.SelectScrollDownButton,exports.SelectScrollUpButton=o.SelectScrollUpButton,exports.SelectSeparator=o.SelectSeparator,exports.SelectText=o.SelectText,exports.SelectTrigger=o.SelectTrigger,exports.SelectValue=o.SelectValue,exports.SelectWrapper=o.SelectWrapper,exports.selectVariants=o.selectVariants,exports.SegmentControl=P.SegmentControl,exports.SegmentControlContent=P.SegmentControlContent,exports.SegmentControlList=P.SegmentControlList,exports.SegmentControlTrigger=P.SegmentControlTrigger,exports.segmentControlTriggerVariants=P.segmentControlTriggerVariants,exports.Separator=ne.Separator,exports.Sidebar=e.Sidebar,exports.SidebarContent=e.SidebarContent,exports.SidebarFooter=e.SidebarFooter,exports.SidebarGroup=e.SidebarGroup,exports.SidebarGroupAction=e.SidebarGroupAction,exports.SidebarGroupContent=e.SidebarGroupContent,exports.SidebarGroupLabel=e.SidebarGroupLabel,exports.SidebarHeader=e.SidebarHeader,exports.SidebarInput=e.SidebarInput,exports.SidebarInset=e.SidebarInset,exports.SidebarMenu=e.SidebarMenu,exports.SidebarMenuAction=e.SidebarMenuAction,exports.SidebarMenuBadge=e.SidebarMenuBadge,exports.SidebarMenuButton=e.SidebarMenuButton,exports.SidebarMenuItem=e.SidebarMenuItem,exports.SidebarMenuItemCollapse=e.SidebarMenuItemCollapse,exports.SidebarMenuItemTitle=e.SidebarMenuItemTitle,exports.SidebarMenuSkeleton=e.SidebarMenuSkeleton,exports.SidebarMenuSub=e.SidebarMenuSub,exports.SidebarMenuSubButton=e.SidebarMenuSubButton,exports.SidebarMenuSubItem=e.SidebarMenuSubItem,exports.SidebarProvider=e.SidebarProvider,exports.SidebarRail=e.SidebarRail,exports.SidebarSeparator=e.SidebarSeparator,exports.SidebarTrigger=e.SidebarTrigger,exports.useSidebar=e.useSidebar,exports.useSidebarSearch=e.useSidebarSearch,exports.Skeleton=se.Skeleton,exports.SortableList=Q.SortableList,exports.moveItem=Q.moveItem,exports.Switch=U.Switch,exports.switchVariants=U.switchVariants,exports.Switcher=k.Switcher,exports.SwitcherContent=k.SwitcherContent,exports.SwitcherFooter=k.SwitcherFooter,exports.SwitcherGroup=k.SwitcherGroup,exports.SwitcherItem=k.SwitcherItem,exports.SwitcherSeparator=k.SwitcherSeparator,exports.SwitcherTrigger=k.SwitcherTrigger,exports.Tabs=I.Tabs,exports.TabsContent=I.TabsContent,exports.TabsList=I.TabsList,exports.TabsTrigger=I.TabsTrigger,exports.tabsContentVariants=I.tabsContentVariants,exports.tabsListVariants=I.tabsListVariants,exports.tabsTriggerVariants=I.tabsTriggerVariants,exports.Tag=j.Tag,exports.tagVariants=j.tagVariants,exports.TAG_PICKER_PALETTE=J.TAG_PICKER_PALETTE,exports.TagPicker=J.TagPicker,exports.CardTestimonial=Y.CardTestimonial,exports.cardTestimonialInitials=Y.cardTestimonialInitials,exports.TEXT_MARKER_COLORS=F.TEXT_MARKER_COLORS,exports.TextMarker=F.TextMarker,exports.textMarkerMarkVariants=F.textMarkerMarkVariants,exports.Textarea=Z.Textarea,exports.textareaVariants=Z.textareaVariants,exports.Tile=w.Tile,exports.TileDescription=w.TileDescription,exports.TileIcon=w.TileIcon,exports.TileTitle=w.TileTitle,exports.tileVariants=w.tileVariants,exports.Toast=b.Toast,exports.ToastAction=b.ToastAction,exports.ToastClose=b.ToastClose,exports.ToastDescription=b.ToastDescription,exports.ToastProvider=b.ToastProvider,exports.ToastTitle=b.ToastTitle,exports.ToastViewport=b.ToastViewport,exports.toastVariants=b.toastVariants,exports.useToast=le.useToast,exports.Tooltip=q.Tooltip,exports.TooltipContent=q.TooltipContent,exports.TooltipProvider=q.TooltipProvider,exports.TooltipTrigger=q.TooltipTrigger,exports.TrailStep=de.TrailStep,exports.useIsMobile=ue.useIsMobile;
|
|
2
|
+
"use strict";var g=require("./components/Alert.js"),s=require("./components/AlertDialog.js"),b=require("./components/Autocomplete.js"),V=require("./components/Avatar.js"),G=require("./components/Badge.js"),m=require("./components/Breadcrumb.js"),E=require("./components/Button.js"),n=require("./components/CardWeek.js"),p=require("./components/CardModule.js"),T=require("./components/CardTopic.js"),D=require("./components/CardContinue.js"),A=require("./components/CardMission.js"),e=require("./components/CardFocus.js"),a=require("./components/CardLearn.js"),d=require("./components/CardLesson.js"),l=require("./components/CardNews.js"),L=require("./components/Carousel.js"),_=require("./components/Checkbox.js"),I=require("./components/Chip.js"),f=require("./components/Collapsible.js"),re=require("./components/ConfirmDeleteButton.js"),ae=require("./components/Connector.js"),oe=require("./components/ConnectorNode.js"),C=require("./components/Dialog.js"),K=require("./components/Dismiss.js"),O=require("./components/DistributionBar.js"),t=require("./components/DropdownMenu.js"),P=require("./components/DatePicker.js"),F=require("./components/IndexLevel.js"),U=require("./components/IndexLevelAnimated.js"),u=require("./components/Input.js"),X=require("./components/Label.js"),te=require("./components/FallbackImage.js"),ne=require("./components/Loading.js"),x=require("./components/LoadingOverlay.js"),N=require("./components/Logo.js"),c=require("./components/Offcanvas.js"),W=require("./components/CardOption.js"),S=require("./components/Pagination.js"),B=require("./components/Popover.js"),ie=require("./components/Progress.js"),se=require("./components/ProgressCircle.js"),H=require("./components/RadioGroup.js"),o=require("./components/Ranking.js"),q=require("./components/Rating.js"),z=require("./components/RingCounter.js"),Q=require("./components/ScrollArea.js"),i=require("./components/Select.js"),w=require("./components/SegmentControl.js"),de=require("./components/Separator.js"),r=require("./components/Sidebar.js"),le=require("./components/Skeleton.js"),j=require("./components/SortableList.js"),J=require("./components/Switch.js"),k=require("./components/Switcher.js"),M=require("./components/Tabs.js"),Y=require("./components/Tag.js"),Z=require("./components/TagPicker.js"),$=require("./components/CardTestimonial.js"),y=require("./components/TextMarker.js"),ee=require("./components/Textarea.js"),R=require("./components/Tile.js"),v=require("./components/Toast.js"),ue=require("./hooks/use-toast.js"),h=require("./components/Tooltip.js"),Ce=require("./components/TrailStep.js"),ce=require("./hooks/use-mobile.js");exports.Alert=g.Alert,exports.AlertActions=g.AlertActions,exports.AlertButton=g.AlertButton,exports.AlertContainer=g.AlertContainer,exports.AlertContent=g.AlertContent,exports.AlertDescription=g.AlertDescription,exports.AlertIcon=g.AlertIcon,exports.AlertTitle=g.AlertTitle,exports.alertButtonVariants=g.alertButtonVariants,exports.alertVariants=g.alertVariants,exports.AlertDialog=s.AlertDialog,exports.AlertDialogAction=s.AlertDialogAction,exports.AlertDialogCancel=s.AlertDialogCancel,exports.AlertDialogContent=s.AlertDialogContent,exports.AlertDialogDescription=s.AlertDialogDescription,exports.AlertDialogFooter=s.AlertDialogFooter,exports.AlertDialogHeader=s.AlertDialogHeader,exports.AlertDialogIcon=s.AlertDialogIcon,exports.AlertDialogOverlay=s.AlertDialogOverlay,exports.AlertDialogPortal=s.AlertDialogPortal,exports.AlertDialogTag=s.AlertDialogTag,exports.AlertDialogTitle=s.AlertDialogTitle,exports.AlertDialogTrigger=s.AlertDialogTrigger,exports.Autocomplete=b.Autocomplete,exports.AutocompleteContent=b.AutocompleteContent,exports.AutocompleteContentFooter=b.AutocompleteContentFooter,exports.AutocompleteGroup=b.AutocompleteGroup,exports.AutocompleteItem=b.AutocompleteItem,exports.AutocompleteText=b.AutocompleteText,exports.AutocompleteTrigger=b.AutocompleteTrigger,exports.AutocompleteWrapper=b.AutocompleteWrapper,exports.Avatar=V.Avatar,exports.AvatarFallback=V.AvatarFallback,exports.AvatarImage=V.AvatarImage,exports.avatarVariants=V.avatarVariants,exports.Badge=G.Badge,exports.badgeVariants=G.badgeVariants,exports.Breadcrumb=m.Breadcrumb,exports.BreadcrumbEllipsis=m.BreadcrumbEllipsis,exports.BreadcrumbItem=m.BreadcrumbItem,exports.BreadcrumbLink=m.BreadcrumbLink,exports.BreadcrumbList=m.BreadcrumbList,exports.BreadcrumbPage=m.BreadcrumbPage,exports.BreadcrumbSeparator=m.BreadcrumbSeparator,exports.Button=E.Button,exports.buttonVariants=E.buttonVariants,exports.CardWeek=n.CardWeek,exports.CardWeekActions=n.CardWeekActions,exports.CardWeekBreadcrumb=n.CardWeekBreadcrumb,exports.CardWeekContainer=n.CardWeekContainer,exports.CardWeekContent=n.CardWeekContent,exports.CardWeekDescription=n.CardWeekDescription,exports.CardWeekFooter=n.CardWeekFooter,exports.CardWeekHeader=n.CardWeekHeader,exports.CardWeekProgress=n.CardWeekProgress,exports.CardWeekProgressCircle=n.CardWeekProgressCircle,exports.CardWeekStatus=n.CardWeekStatus,exports.CardWeekTags=n.CardWeekTags,exports.CardWeekText=n.CardWeekText,exports.CardWeekTitle=n.CardWeekTitle,exports.CardModule=p.CardModule,exports.CardModuleAction=p.CardModuleAction,exports.CardModuleButton=p.CardModuleButton,exports.CardModuleFooter=p.CardModuleFooter,exports.CardModuleHeader=p.CardModuleHeader,exports.CardModuleLabel=p.CardModuleLabel,exports.CardModuleProgress=p.CardModuleProgress,exports.CardModuleTitle=p.CardModuleTitle,exports.cardModuleStatusVariants=p.cardModuleStatusVariants,exports.cardModuleVariants=p.cardModuleVariants,exports.CardTopic=T.CardTopic,exports.CardTopicColumn=T.CardTopicColumn,exports.CardTopicContent=T.CardTopicContent,exports.CardTopicCount=T.CardTopicCount,exports.CardTopicNumber=T.CardTopicNumber,exports.CardTopicProgress=T.CardTopicProgress,exports.CardTopicTitle=T.CardTopicTitle,exports.CardTopicTrigger=T.CardTopicTrigger,exports.cardTopicVariants=T.cardTopicVariants,exports.CardContinue=D.CardContinue,exports.CardContinueBreadcrumb=D.CardContinueBreadcrumb,exports.CardContinueButton=D.CardContinueButton,exports.CardContinueContent=D.CardContinueContent,exports.CardContinueHeader=D.CardContinueHeader,exports.CardContinueImage=D.CardContinueImage,exports.CardContinueTitle=D.CardContinueTitle,exports.CardMission=A.CardMission,exports.CardMissionContent=A.CardMissionContent,exports.CardMissionDescription=A.CardMissionDescription,exports.CardMissionHeader=A.CardMissionHeader,exports.CardMissionOverline=A.CardMissionOverline,exports.CardMissionPhase=A.CardMissionPhase,exports.CardMissionTitle=A.CardMissionTitle,exports.CardFocus=e.CardFocus,exports.CardFocusAction=e.CardFocusAction,exports.CardFocusActions=e.CardFocusActions,exports.CardFocusAvatar=e.CardFocusAvatar,exports.CardFocusCategory=e.CardFocusCategory,exports.CardFocusContent=e.CardFocusContent,exports.CardFocusCount=e.CardFocusCount,exports.CardFocusCounts=e.CardFocusCounts,exports.CardFocusFooter=e.CardFocusFooter,exports.CardFocusHeader=e.CardFocusHeader,exports.CardFocusHeading=e.CardFocusHeading,exports.CardFocusIndexLevel=e.CardFocusIndexLevel,exports.CardFocusIndicator=e.CardFocusIndicator,exports.CardFocusIndicators=e.CardFocusIndicators,exports.CardFocusLastContact=e.CardFocusLastContact,exports.CardFocusLastScore=e.CardFocusLastScore,exports.CardFocusLive=e.CardFocusLive,exports.CardFocusMeta=e.CardFocusMeta,exports.CardFocusMetaItem=e.CardFocusMetaItem,exports.CardFocusMore=e.CardFocusMore,exports.CardFocusProgress=e.CardFocusProgress,exports.CardFocusProgressLabel=e.CardFocusProgressLabel,exports.CardFocusRemove=e.CardFocusRemove,exports.CardFocusReviewCount=e.CardFocusReviewCount,exports.CardFocusSettings=e.CardFocusSettings,exports.CardFocusStat=e.CardFocusStat,exports.CardFocusStatus=e.CardFocusStatus,exports.CardFocusTimeRemaining=e.CardFocusTimeRemaining,exports.CardFocusTitle=e.CardFocusTitle,exports.CardFocusTurbo=e.CardFocusTurbo,exports.CardFocusUndo=e.CardFocusUndo,exports.CardLearn=a.CardLearn,exports.CardLearnActions=a.CardLearnActions,exports.CardLearnBadge=a.CardLearnBadge,exports.CardLearnCategory=a.CardLearnCategory,exports.CardLearnContent=a.CardLearnContent,exports.CardLearnDescription=a.CardLearnDescription,exports.CardLearnFooter=a.CardLearnFooter,exports.CardLearnHeader=a.CardLearnHeader,exports.CardLearnHeading=a.CardLearnHeading,exports.CardLearnIndicators=a.CardLearnIndicators,exports.CardLearnLesson=a.CardLearnLesson,exports.CardLearnMeta=a.CardLearnMeta,exports.CardLearnMore=a.CardLearnMore,exports.CardLearnPlayButton=a.CardLearnPlayButton,exports.CardLearnProgress=a.CardLearnProgress,exports.CardLearnProgressLabel=a.CardLearnProgressLabel,exports.CardLearnSchedule=a.CardLearnSchedule,exports.CardLearnStatus=a.CardLearnStatus,exports.CardLearnThumbnail=a.CardLearnThumbnail,exports.CardLearnTimeRemaining=a.CardLearnTimeRemaining,exports.CardLearnTitle=a.CardLearnTitle,exports.CardLesson=d.CardLesson,exports.CardLessonButton=d.CardLessonButton,exports.CardLessonContent=d.CardLessonContent,exports.CardLessonDuration=d.CardLessonDuration,exports.CardLessonFooter=d.CardLessonFooter,exports.CardLessonHeader=d.CardLessonHeader,exports.CardLessonIcon=d.CardLessonIcon,exports.CardLessonIcons=d.CardLessonIcons,exports.CardLessonImage=d.CardLessonImage,exports.CardLessonLabel=d.CardLessonLabel,exports.CardLessonStatus=d.CardLessonStatus,exports.CardLessonTitle=d.CardLessonTitle,exports.cardLessonVariants=d.cardLessonVariants,exports.CardNews=l.CardNews,exports.CardNewsAuthor=l.CardNewsAuthor,exports.CardNewsBody=l.CardNewsBody,exports.CardNewsContent=l.CardNewsContent,exports.CardNewsDate=l.CardNewsDate,exports.CardNewsDescription=l.CardNewsDescription,exports.CardNewsFooter=l.CardNewsFooter,exports.CardNewsHeader=l.CardNewsHeader,exports.CardNewsImage=l.CardNewsImage,exports.CardNewsResourceItem=l.CardNewsResourceItem,exports.CardNewsResources=l.CardNewsResources,exports.CardNewsTags=l.CardNewsTags,exports.CardNewsTitle=l.CardNewsTitle,exports.Carousel=L.Carousel,exports.CarouselAutoplayToggle=L.CarouselAutoplayToggle,exports.CarouselContent=L.CarouselContent,exports.CarouselDots=L.CarouselDots,exports.CarouselItem=L.CarouselItem,exports.CarouselNext=L.CarouselNext,exports.CarouselPrevious=L.CarouselPrevious,exports.useCarousel=L.useCarousel,exports.Checkbox=_.Checkbox,exports.checkboxVariants=_.checkboxVariants,exports.Chip=I.Chip,exports.ChipChoice=I.ChipChoice,exports.ChipClear=I.ChipClear,exports.ChipFilter=I.ChipFilter,exports.chipClearVariants=I.chipClearVariants,exports.chipSelectableVariants=I.chipSelectableVariants,exports.chipVariants=I.chipVariants,exports.Collapsible=f.Collapsible,exports.CollapsibleContent=f.CollapsibleContent,exports.CollapsibleTrigger=f.CollapsibleTrigger,exports.ConfirmDeleteButton=re.ConfirmDeleteButton,exports.Connector=ae.Connector,exports.ConnectorNode=oe.ConnectorNode,exports.Dialog=C.Dialog,exports.DialogClose=C.DialogClose,exports.DialogContainer=C.DialogContainer,exports.DialogContent=C.DialogContent,exports.DialogDescription=C.DialogDescription,exports.DialogFooter=C.DialogFooter,exports.DialogHeader=C.DialogHeader,exports.DialogOverlay=C.DialogOverlay,exports.DialogPortal=C.DialogPortal,exports.DialogTitle=C.DialogTitle,exports.DialogTrigger=C.DialogTrigger,exports.Dismiss=K.Dismiss,exports.dismissVariants=K.dismissVariants,exports.DistributionBar=O.DistributionBar,exports.distributionBarVariants=O.distributionBarVariants,exports.distributionToneClass=O.distributionToneClass,exports.DropdownMenu=t.DropdownMenu,exports.DropdownMenuCheckboxItem=t.DropdownMenuCheckboxItem,exports.DropdownMenuContent=t.DropdownMenuContent,exports.DropdownMenuGroup=t.DropdownMenuGroup,exports.DropdownMenuItem=t.DropdownMenuItem,exports.DropdownMenuLabel=t.DropdownMenuLabel,exports.DropdownMenuPortal=t.DropdownMenuPortal,exports.DropdownMenuRadioGroup=t.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=t.DropdownMenuRadioItem,exports.DropdownMenuSeparator=t.DropdownMenuSeparator,exports.DropdownMenuShortcut=t.DropdownMenuShortcut,exports.DropdownMenuSub=t.DropdownMenuSub,exports.DropdownMenuSubContent=t.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=t.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=t.DropdownMenuTrigger,exports.DatePicker=P.DatePicker,exports.DatePickerLabel=P.DatePickerLabel,exports.DatePickerText=P.DatePickerText,exports.DatePickerWrapper=P.DatePickerWrapper,exports.DateRangePicker=P.DateRangePicker,exports.datePickerTriggerVariants=P.datePickerTriggerVariants,exports.INDEX_LEVEL_LABELS=F.INDEX_LEVEL_LABELS,exports.IndexLevel=F.IndexLevel,exports.IndexLevelIcon=F.IndexLevelIcon,exports.indexLevelIconVariants=F.indexLevelIconVariants,exports.indexLevelVariants=F.indexLevelVariants,exports.IndexLevelAnimated=U.IndexLevelAnimated,exports.indexLevelAnimatedVariants=U.indexLevelAnimatedVariants,exports.Input=u.Input,exports.InputAdornment=u.InputAdornment,exports.InputEndIcon=u.InputEndIcon,exports.InputField=u.InputField,exports.InputLabel=u.InputLabel,exports.InputNumeric=u.InputNumeric,exports.InputPassword=u.InputPassword,exports.InputStartIcon=u.InputStartIcon,exports.InputText=u.InputText,exports.InputWrapper=u.InputWrapper,exports.applyInputIconSize=u.applyInputIconSize,exports.inputVariants=u.inputVariants,exports.Label=X.Label,exports.labelVariants=X.labelVariants,exports.FallbackImage=te.FallbackImage,exports.Loading=ne.Loading,exports.LoadingOverlay=x.LoadingOverlay,exports.LoadingOverlayCard=x.LoadingOverlayCard,exports.LoadingOverlaySpinner=x.LoadingOverlaySpinner,exports.Logo=N.Logo,exports.LogoCircular=N.LogoCircular,exports.LogoShort=N.LogoShort,exports.Offcanvas=c.Offcanvas,exports.OffcanvasBody=c.OffcanvasBody,exports.OffcanvasClose=c.OffcanvasClose,exports.OffcanvasContent=c.OffcanvasContent,exports.OffcanvasDescription=c.OffcanvasDescription,exports.OffcanvasFooter=c.OffcanvasFooter,exports.OffcanvasHeader=c.OffcanvasHeader,exports.OffcanvasOverlay=c.OffcanvasOverlay,exports.OffcanvasPortal=c.OffcanvasPortal,exports.OffcanvasTitle=c.OffcanvasTitle,exports.OffcanvasTrigger=c.OffcanvasTrigger,exports.CardOption=W.CardOption,exports.CardOptionGroup=W.CardOptionGroup,exports.cardOptionVariants=W.cardOptionVariants,exports.Pagination=S.Pagination,exports.PaginationContent=S.PaginationContent,exports.PaginationEllipsis=S.PaginationEllipsis,exports.PaginationInfo=S.PaginationInfo,exports.PaginationItem=S.PaginationItem,exports.PaginationLink=S.PaginationLink,exports.PaginationNext=S.PaginationNext,exports.PaginationPrevious=S.PaginationPrevious,exports.PaginationRoot=S.PaginationRoot,exports.calculatePageNumbers=S.calculatePageNumbers,exports.Popover=B.Popover,exports.PopoverAnchor=B.PopoverAnchor,exports.PopoverContent=B.PopoverContent,exports.PopoverTrigger=B.PopoverTrigger,exports.Progress=ie.Progress,exports.ProgressCircle=se.ProgressCircle,exports.RadioGroup=H.RadioGroup,exports.RadioGroupItem=H.RadioGroupItem,exports.radioGroupVariants=H.radioGroupVariants,exports.Ranking=o.Ranking,exports.RankingAssigneeGroup=o.RankingAssigneeGroup,exports.RankingAssigneeItem=o.RankingAssigneeItem,exports.RankingAssigneeLabel=o.RankingAssigneeLabel,exports.RankingAssigneesColumn=o.RankingAssigneesColumn,exports.RankingBody=o.RankingBody,exports.RankingButton=o.RankingButton,exports.RankingHeader=o.RankingHeader,exports.RankingHeaderCell=o.RankingHeaderCell,exports.RankingItem=o.RankingItem,exports.RankingNumber=o.RankingNumber,exports.RankingPerformance=o.RankingPerformance,exports.RankingPriority=o.RankingPriority,exports.RankingQuestions=o.RankingQuestions,exports.RankingSpecialty=o.RankingSpecialty,exports.RankingSuperFocus=o.RankingSuperFocus,exports.RankingTopic=o.RankingTopic,exports.RankingTopicColumn=o.RankingTopicColumn,exports.RankingTopicContent=o.RankingTopicContent,exports.Rating=q.Rating,exports.RatingButtonVariants=q.RatingButtonVariants,exports.RatingLabelVariants=q.RatingLabelVariants,exports.RatingStarVariants=q.RatingStarVariants,exports.RingCounter=z.RingCounter,exports.alignToStep=z.alignToStep,exports.ScrollArea=Q.ScrollArea,exports.ScrollBar=Q.ScrollBar,exports.Select=i.Select,exports.SelectContent=i.SelectContent,exports.SelectGroup=i.SelectGroup,exports.SelectHeader=i.SelectHeader,exports.SelectItem=i.SelectItem,exports.SelectLabel=i.SelectLabel,exports.SelectScrollDownButton=i.SelectScrollDownButton,exports.SelectScrollUpButton=i.SelectScrollUpButton,exports.SelectSeparator=i.SelectSeparator,exports.SelectText=i.SelectText,exports.SelectTrigger=i.SelectTrigger,exports.SelectValue=i.SelectValue,exports.SelectWrapper=i.SelectWrapper,exports.selectVariants=i.selectVariants,exports.SegmentControl=w.SegmentControl,exports.SegmentControlContent=w.SegmentControlContent,exports.SegmentControlList=w.SegmentControlList,exports.SegmentControlTrigger=w.SegmentControlTrigger,exports.segmentControlTriggerVariants=w.segmentControlTriggerVariants,exports.Separator=de.Separator,exports.Sidebar=r.Sidebar,exports.SidebarContent=r.SidebarContent,exports.SidebarFooter=r.SidebarFooter,exports.SidebarGroup=r.SidebarGroup,exports.SidebarGroupAction=r.SidebarGroupAction,exports.SidebarGroupContent=r.SidebarGroupContent,exports.SidebarGroupLabel=r.SidebarGroupLabel,exports.SidebarHeader=r.SidebarHeader,exports.SidebarInput=r.SidebarInput,exports.SidebarInset=r.SidebarInset,exports.SidebarMenu=r.SidebarMenu,exports.SidebarMenuAction=r.SidebarMenuAction,exports.SidebarMenuBadge=r.SidebarMenuBadge,exports.SidebarMenuButton=r.SidebarMenuButton,exports.SidebarMenuItem=r.SidebarMenuItem,exports.SidebarMenuItemCollapse=r.SidebarMenuItemCollapse,exports.SidebarMenuItemTitle=r.SidebarMenuItemTitle,exports.SidebarMenuSkeleton=r.SidebarMenuSkeleton,exports.SidebarMenuSub=r.SidebarMenuSub,exports.SidebarMenuSubButton=r.SidebarMenuSubButton,exports.SidebarMenuSubItem=r.SidebarMenuSubItem,exports.SidebarProvider=r.SidebarProvider,exports.SidebarRail=r.SidebarRail,exports.SidebarSeparator=r.SidebarSeparator,exports.SidebarTrigger=r.SidebarTrigger,exports.useSidebar=r.useSidebar,exports.useSidebarSearch=r.useSidebarSearch,exports.Skeleton=le.Skeleton,exports.SortableList=j.SortableList,exports.moveItem=j.moveItem,exports.Switch=J.Switch,exports.switchVariants=J.switchVariants,exports.Switcher=k.Switcher,exports.SwitcherContent=k.SwitcherContent,exports.SwitcherFooter=k.SwitcherFooter,exports.SwitcherGroup=k.SwitcherGroup,exports.SwitcherItem=k.SwitcherItem,exports.SwitcherSeparator=k.SwitcherSeparator,exports.SwitcherTrigger=k.SwitcherTrigger,exports.Tabs=M.Tabs,exports.TabsContent=M.TabsContent,exports.TabsList=M.TabsList,exports.TabsTrigger=M.TabsTrigger,exports.tabsContentVariants=M.tabsContentVariants,exports.tabsListVariants=M.tabsListVariants,exports.tabsTriggerVariants=M.tabsTriggerVariants,exports.Tag=Y.Tag,exports.tagVariants=Y.tagVariants,exports.TAG_PICKER_PALETTE=Z.TAG_PICKER_PALETTE,exports.TagPicker=Z.TagPicker,exports.CardTestimonial=$.CardTestimonial,exports.cardTestimonialInitials=$.cardTestimonialInitials,exports.TEXT_MARKER_COLORS=y.TEXT_MARKER_COLORS,exports.TextMarker=y.TextMarker,exports.textMarkerMarkVariants=y.textMarkerMarkVariants,exports.Textarea=ee.Textarea,exports.textareaVariants=ee.textareaVariants,exports.Tile=R.Tile,exports.TileDescription=R.TileDescription,exports.TileIcon=R.TileIcon,exports.TileTitle=R.TileTitle,exports.tileVariants=R.tileVariants,exports.Toast=v.Toast,exports.ToastAction=v.ToastAction,exports.ToastClose=v.ToastClose,exports.ToastDescription=v.ToastDescription,exports.ToastProvider=v.ToastProvider,exports.ToastTitle=v.ToastTitle,exports.ToastViewport=v.ToastViewport,exports.toastVariants=v.toastVariants,exports.useToast=ue.useToast,exports.Tooltip=h.Tooltip,exports.TooltipContent=h.TooltipContent,exports.TooltipProvider=h.TooltipProvider,exports.TooltipTrigger=h.TooltipTrigger,exports.TrailStep=Ce.TrailStep,exports.useIsMobile=ce.useIsMobile;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
import{Alert as o,AlertActions as t,AlertButton as a,AlertContainer as n,AlertContent as i,AlertDescription as s,AlertIcon as l,AlertTitle as d,alertButtonVariants as p,alertVariants as C}from"./components/Alert.mjs";import{AlertDialog as g,AlertDialogAction as c,AlertDialogCancel as m,AlertDialogContent as f,AlertDialogDescription as S,AlertDialogFooter as T,AlertDialogHeader as x,AlertDialogIcon as b,AlertDialogOverlay as D,AlertDialogPortal as A,AlertDialogTag as I,AlertDialogTitle as k,AlertDialogTrigger as L}from"./components/AlertDialog.mjs";import{Autocomplete as P,AutocompleteContent as w,AutocompleteContentFooter as V,AutocompleteGroup as v,AutocompleteItem as R,AutocompleteText as B,AutocompleteTrigger as h,AutocompleteWrapper as O}from"./components/Autocomplete.mjs";import{Avatar as W,AvatarFallback as F,AvatarImage as G,avatarVariants as y}from"./components/Avatar.mjs";import{Badge as E,badgeVariants as _}from"./components/Badge.mjs";import{Breadcrumb as X,BreadcrumbEllipsis as z,BreadcrumbItem as Q,BreadcrumbLink as U,BreadcrumbList as j,BreadcrumbPage as q,BreadcrumbSeparator as J}from"./components/Breadcrumb.mjs";import{Button as Z,buttonVariants as $}from"./components/Button.mjs";import{CardWeek as re,CardWeekActions as oe,CardWeekBreadcrumb as te,CardWeekContainer as ae,CardWeekContent as ne,CardWeekDescription as ie,CardWeekFooter as se,CardWeekHeader as le,CardWeekProgress as de,CardWeekProgressCircle as pe,CardWeekStatus as Ce,CardWeekTags as ue,CardWeekText as ge,CardWeekTitle as ce}from"./components/CardWeek.mjs";import{CardModule as fe,CardModuleAction as Se,CardModuleButton as Te,CardModuleFooter as xe,CardModuleHeader as be,CardModuleLabel as De,CardModuleProgress as Ae,CardModuleTitle as Ie,cardModuleStatusVariants as ke,cardModuleVariants as Le}from"./components/CardModule.mjs";import{CardTopic as Pe,CardTopicColumn as we,CardTopicContent as Ve,CardTopicCount as ve,CardTopicNumber as Re,CardTopicProgress as Be,CardTopicTitle as he,CardTopicTrigger as Oe,cardTopicVariants as Ne}from"./components/CardTopic.mjs";import{CardContinue as Fe,CardContinueBreadcrumb as Ge,CardContinueButton as ye,CardContinueContent as He,CardContinueHeader as Ee,CardContinueImage as _e,CardContinueTitle as Ke}from"./components/CardContinue.mjs";import{CardMission as ze,CardMissionContent as Qe,CardMissionDescription as Ue,CardMissionHeader as je,CardMissionOverline as qe,CardMissionPhase as Je,CardMissionTitle as Ye}from"./components/CardMission.mjs";import{CardLesson as $e,CardLessonButton as er,CardLessonContent as rr,CardLessonDuration as or,CardLessonFooter as tr,CardLessonHeader as ar,CardLessonIcon as nr,CardLessonIcons as ir,CardLessonImage as sr,CardLessonLabel as lr,CardLessonStatus as dr,CardLessonTitle as pr,cardLessonVariants as Cr}from"./components/CardLesson.mjs";import{CardNews as gr,CardNewsAuthor as cr,CardNewsBody as mr,CardNewsContent as fr,CardNewsDate as Sr,CardNewsDescription as Tr,CardNewsFooter as xr,CardNewsHeader as br,CardNewsImage as Dr,CardNewsResourceItem as Ar,CardNewsResources as Ir,CardNewsTags as kr,CardNewsTitle as Lr}from"./components/CardNews.mjs";import{Carousel as Pr,CarouselAutoplayToggle as wr,CarouselContent as Vr,CarouselDots as vr,CarouselItem as Rr,CarouselNext as Br,CarouselPrevious as hr,useCarousel as Or}from"./components/Carousel.mjs";import{Checkbox as Wr,checkboxVariants as Fr}from"./components/Checkbox.mjs";import{Chip as yr,ChipChoice as Hr,ChipClear as Er,ChipFilter as _r,chipClearVariants as Kr,chipSelectableVariants as Xr,chipVariants as zr}from"./components/Chip.mjs";import{Collapsible as Ur,CollapsibleContent as jr,CollapsibleTrigger as qr}from"./components/Collapsible.mjs";import{ConfirmDeleteButton as Yr}from"./components/ConfirmDeleteButton.mjs";import{Connector as $r}from"./components/Connector.mjs";import{ConnectorNode as ro}from"./components/ConnectorNode.mjs";import{Dialog as to,DialogClose as ao,DialogContainer as no,DialogContent as io,DialogDescription as so,DialogFooter as lo,DialogHeader as po,DialogOverlay as Co,DialogPortal as uo,DialogTitle as go,DialogTrigger as co}from"./components/Dialog.mjs";import{Dismiss as fo,dismissVariants as So}from"./components/Dismiss.mjs";import{DistributionBar as xo,distributionBarVariants as bo,distributionToneClass as Do}from"./components/DistributionBar.mjs";import{DropdownMenu as Io,DropdownMenuCheckboxItem as ko,DropdownMenuContent as Lo,DropdownMenuGroup as Mo,DropdownMenuItem as Po,DropdownMenuLabel as wo,DropdownMenuPortal as Vo,DropdownMenuRadioGroup as vo,DropdownMenuRadioItem as Ro,DropdownMenuSeparator as Bo,DropdownMenuShortcut as ho,DropdownMenuSub as Oo,DropdownMenuSubContent as No,DropdownMenuSubTrigger as Wo,DropdownMenuTrigger as Fo}from"./components/DropdownMenu.mjs";import{DatePicker as yo,DatePickerLabel as Ho,DatePickerText as Eo,DatePickerWrapper as _o,DateRangePicker as Ko,datePickerTriggerVariants as Xo}from"./components/DatePicker.mjs";import{INDEX_LEVEL_LABELS as Qo,IndexLevel as Uo,IndexLevelIcon as jo,indexLevelIconVariants as qo,indexLevelVariants as Jo}from"./components/IndexLevel.mjs";import{IndexLevelAnimated as Zo,indexLevelAnimatedVariants as $o}from"./components/IndexLevelAnimated.mjs";import{Input as rt,InputAdornment as ot,InputEndIcon as tt,InputField as at,InputLabel as nt,InputNumeric as it,InputPassword as st,InputStartIcon as lt,InputText as dt,InputWrapper as pt,applyInputIconSize as Ct,inputVariants as ut}from"./components/Input.mjs";import{Label as ct,labelVariants as mt}from"./components/Label.mjs";import{FallbackImage as St}from"./components/FallbackImage.mjs";import{Loading as xt}from"./components/Loading.mjs";import{LoadingOverlay as Dt,LoadingOverlayCard as At,LoadingOverlaySpinner as It}from"./components/LoadingOverlay.mjs";import{Logo as Lt,LogoCircular as Mt,LogoShort as Pt}from"./components/Logo.mjs";import{Offcanvas as Vt,OffcanvasBody as vt,OffcanvasClose as Rt,OffcanvasContent as Bt,OffcanvasDescription as ht,OffcanvasFooter as Ot,OffcanvasHeader as Nt,OffcanvasOverlay as Wt,OffcanvasPortal as Ft,OffcanvasTitle as Gt,OffcanvasTrigger as yt}from"./components/Offcanvas.mjs";import{CardOption as Et,CardOptionGroup as _t,cardOptionVariants as Kt}from"./components/CardOption.mjs";import{Pagination as zt,PaginationContent as Qt,PaginationEllipsis as Ut,PaginationInfo as jt,PaginationItem as qt,PaginationLink as Jt,PaginationNext as Yt,PaginationPrevious as Zt,PaginationRoot as $t,calculatePageNumbers as ea}from"./components/Pagination.mjs";import{Popover as oa,PopoverAnchor as ta,PopoverContent as aa,PopoverTrigger as na}from"./components/Popover.mjs";import{Progress as sa}from"./components/Progress.mjs";import{ProgressCircle as da}from"./components/ProgressCircle.mjs";import{RadioGroup as Ca,RadioGroupItem as ua,radioGroupVariants as ga}from"./components/RadioGroup.mjs";import{Ranking as ma,RankingAssigneeGroup as fa,RankingAssigneeItem as Sa,RankingAssigneeLabel as Ta,RankingAssigneesColumn as xa,RankingBody as ba,RankingButton as Da,RankingHeader as Aa,RankingHeaderCell as Ia,RankingItem as ka,RankingNumber as La,RankingPerformance as Ma,RankingPriority as Pa,RankingQuestions as wa,RankingSpecialty as Va,RankingSuperFocus as va,RankingTopic as Ra,RankingTopicColumn as Ba,RankingTopicContent as ha}from"./components/Ranking.mjs";import{Rating as Na,RatingButtonVariants as Wa,RatingLabelVariants as Fa,RatingStarVariants as Ga}from"./components/Rating.mjs";import{RingCounter as Ha,alignToStep as Ea}from"./components/RingCounter.mjs";import{ScrollArea as Ka,ScrollBar as Xa}from"./components/ScrollArea.mjs";import{Select as Qa,SelectContent as Ua,SelectGroup as ja,SelectHeader as qa,SelectItem as Ja,SelectLabel as Ya,SelectScrollDownButton as Za,SelectScrollUpButton as $a,SelectSeparator as en,SelectText as rn,SelectTrigger as on,SelectValue as tn,SelectWrapper as an,selectVariants as nn}from"./components/Select.mjs";import{SegmentControl as ln,SegmentControlContent as dn,SegmentControlList as pn,SegmentControlTrigger as Cn,segmentControlTriggerVariants as un}from"./components/SegmentControl.mjs";import{Separator as cn}from"./components/Separator.mjs";import{Sidebar as fn,SidebarContent as Sn,SidebarFooter as Tn,SidebarGroup as xn,SidebarGroupAction as bn,SidebarGroupContent as Dn,SidebarGroupLabel as An,SidebarHeader as In,SidebarInput as kn,SidebarInset as Ln,SidebarMenu as Mn,SidebarMenuAction as Pn,SidebarMenuBadge as wn,SidebarMenuButton as Vn,SidebarMenuItem as vn,SidebarMenuItemCollapse as Rn,SidebarMenuItemTitle as Bn,SidebarMenuSkeleton as hn,SidebarMenuSub as On,SidebarMenuSubButton as Nn,SidebarMenuSubItem as Wn,SidebarProvider as Fn,SidebarRail as Gn,SidebarSeparator as yn,SidebarTrigger as Hn,useSidebar as En,useSidebarSearch as _n}from"./components/Sidebar.mjs";import{Skeleton as Xn}from"./components/Skeleton.mjs";import{SortableList as Qn,moveItem as Un}from"./components/SortableList.mjs";import{Switch as qn,switchVariants as Jn}from"./components/Switch.mjs";import{Switcher as Zn,SwitcherContent as $n,SwitcherFooter as ei,SwitcherGroup as ri,SwitcherItem as oi,SwitcherSeparator as ti,SwitcherTrigger as ai}from"./components/Switcher.mjs";import{Tabs as ii,TabsContent as si,TabsList as li,TabsTrigger as di,tabsContentVariants as pi,tabsListVariants as Ci,tabsTriggerVariants as ui}from"./components/Tabs.mjs";import{Tag as ci,tagVariants as mi}from"./components/Tag.mjs";import{TAG_PICKER_PALETTE as Si,TagPicker as Ti}from"./components/TagPicker.mjs";import{CardTestimonial as bi,cardTestimonialInitials as Di}from"./components/CardTestimonial.mjs";import{TEXT_MARKER_COLORS as Ii,TextMarker as ki,textMarkerMarkVariants as Li}from"./components/TextMarker.mjs";import{Textarea as Pi,textareaVariants as wi}from"./components/Textarea.mjs";import{Tile as vi,TileDescription as Ri,TileIcon as Bi,TileTitle as hi,tileVariants as Oi}from"./components/Tile.mjs";import{Toast as Wi,ToastAction as Fi,ToastClose as Gi,ToastDescription as yi,ToastProvider as Hi,ToastTitle as Ei,ToastViewport as _i,toastVariants as Ki}from"./components/Toast.mjs";import{useToast as zi}from"./hooks/use-toast.mjs";import{Tooltip as Ui,TooltipContent as ji,TooltipProvider as qi,TooltipTrigger as Ji}from"./components/Tooltip.mjs";import{TrailStep as Zi}from"./components/TrailStep.mjs";import{useIsMobile as es}from"./hooks/use-mobile.mjs";export{o as Alert,t as AlertActions,a as AlertButton,n as AlertContainer,i as AlertContent,s as AlertDescription,g as AlertDialog,c as AlertDialogAction,m as AlertDialogCancel,f as AlertDialogContent,S as AlertDialogDescription,T as AlertDialogFooter,x as AlertDialogHeader,b as AlertDialogIcon,D as AlertDialogOverlay,A as AlertDialogPortal,I as AlertDialogTag,k as AlertDialogTitle,L as AlertDialogTrigger,l as AlertIcon,d as AlertTitle,P as Autocomplete,w as AutocompleteContent,V as AutocompleteContentFooter,v as AutocompleteGroup,R as AutocompleteItem,B as AutocompleteText,h as AutocompleteTrigger,O as AutocompleteWrapper,W as Avatar,F as AvatarFallback,G as AvatarImage,E as Badge,X as Breadcrumb,z as BreadcrumbEllipsis,Q as BreadcrumbItem,U as BreadcrumbLink,j as BreadcrumbList,q as BreadcrumbPage,J as BreadcrumbSeparator,Z as Button,Fe as CardContinue,Ge as CardContinueBreadcrumb,ye as CardContinueButton,He as CardContinueContent,Ee as CardContinueHeader,_e as CardContinueImage,Ke as CardContinueTitle,$e as CardLesson,er as CardLessonButton,rr as CardLessonContent,or as CardLessonDuration,tr as CardLessonFooter,ar as CardLessonHeader,nr as CardLessonIcon,ir as CardLessonIcons,sr as CardLessonImage,lr as CardLessonLabel,dr as CardLessonStatus,pr as CardLessonTitle,ze as CardMission,Qe as CardMissionContent,Ue as CardMissionDescription,je as CardMissionHeader,qe as CardMissionOverline,Je as CardMissionPhase,Ye as CardMissionTitle,fe as CardModule,Se as CardModuleAction,Te as CardModuleButton,xe as CardModuleFooter,be as CardModuleHeader,De as CardModuleLabel,Ae as CardModuleProgress,Ie as CardModuleTitle,gr as CardNews,cr as CardNewsAuthor,mr as CardNewsBody,fr as CardNewsContent,Sr as CardNewsDate,Tr as CardNewsDescription,xr as CardNewsFooter,br as CardNewsHeader,Dr as CardNewsImage,Ar as CardNewsResourceItem,Ir as CardNewsResources,kr as CardNewsTags,Lr as CardNewsTitle,Et as CardOption,_t as CardOptionGroup,bi as CardTestimonial,Pe as CardTopic,we as CardTopicColumn,Ve as CardTopicContent,ve as CardTopicCount,Re as CardTopicNumber,Be as CardTopicProgress,he as CardTopicTitle,Oe as CardTopicTrigger,re as CardWeek,oe as CardWeekActions,te as CardWeekBreadcrumb,ae as CardWeekContainer,ne as CardWeekContent,ie as CardWeekDescription,se as CardWeekFooter,le as CardWeekHeader,de as CardWeekProgress,pe as CardWeekProgressCircle,Ce as CardWeekStatus,ue as CardWeekTags,ge as CardWeekText,ce as CardWeekTitle,Pr as Carousel,wr as CarouselAutoplayToggle,Vr as CarouselContent,vr as CarouselDots,Rr as CarouselItem,Br as CarouselNext,hr as CarouselPrevious,Wr as Checkbox,yr as Chip,Hr as ChipChoice,Er as ChipClear,_r as ChipFilter,Ur as Collapsible,jr as CollapsibleContent,qr as CollapsibleTrigger,Yr as ConfirmDeleteButton,$r as Connector,ro as ConnectorNode,yo as DatePicker,Ho as DatePickerLabel,Eo as DatePickerText,_o as DatePickerWrapper,Ko as DateRangePicker,to as Dialog,ao as DialogClose,no as DialogContainer,io as DialogContent,so as DialogDescription,lo as DialogFooter,po as DialogHeader,Co as DialogOverlay,uo as DialogPortal,go as DialogTitle,co as DialogTrigger,fo as Dismiss,xo as DistributionBar,Io as DropdownMenu,ko as DropdownMenuCheckboxItem,Lo as DropdownMenuContent,Mo as DropdownMenuGroup,Po as DropdownMenuItem,wo as DropdownMenuLabel,Vo as DropdownMenuPortal,vo as DropdownMenuRadioGroup,Ro as DropdownMenuRadioItem,Bo as DropdownMenuSeparator,ho as DropdownMenuShortcut,Oo as DropdownMenuSub,No as DropdownMenuSubContent,Wo as DropdownMenuSubTrigger,Fo as DropdownMenuTrigger,St as FallbackImage,Qo as INDEX_LEVEL_LABELS,Uo as IndexLevel,Zo as IndexLevelAnimated,jo as IndexLevelIcon,rt as Input,ot as InputAdornment,tt as InputEndIcon,at as InputField,nt as InputLabel,it as InputNumeric,st as InputPassword,lt as InputStartIcon,dt as InputText,pt as InputWrapper,ct as Label,xt as Loading,Dt as LoadingOverlay,At as LoadingOverlayCard,It as LoadingOverlaySpinner,Lt as Logo,Mt as LogoCircular,Pt as LogoShort,Vt as Offcanvas,vt as OffcanvasBody,Rt as OffcanvasClose,Bt as OffcanvasContent,ht as OffcanvasDescription,Ot as OffcanvasFooter,Nt as OffcanvasHeader,Wt as OffcanvasOverlay,Ft as OffcanvasPortal,Gt as OffcanvasTitle,yt as OffcanvasTrigger,zt as Pagination,Qt as PaginationContent,Ut as PaginationEllipsis,jt as PaginationInfo,qt as PaginationItem,Jt as PaginationLink,Yt as PaginationNext,Zt as PaginationPrevious,$t as PaginationRoot,oa as Popover,ta as PopoverAnchor,aa as PopoverContent,na as PopoverTrigger,sa as Progress,da as ProgressCircle,Ca as RadioGroup,ua as RadioGroupItem,ma as Ranking,fa as RankingAssigneeGroup,Sa as RankingAssigneeItem,Ta as RankingAssigneeLabel,xa as RankingAssigneesColumn,ba as RankingBody,Da as RankingButton,Aa as RankingHeader,Ia as RankingHeaderCell,ka as RankingItem,La as RankingNumber,Ma as RankingPerformance,Pa as RankingPriority,wa as RankingQuestions,Va as RankingSpecialty,va as RankingSuperFocus,Ra as RankingTopic,Ba as RankingTopicColumn,ha as RankingTopicContent,Na as Rating,Wa as RatingButtonVariants,Fa as RatingLabelVariants,Ga as RatingStarVariants,Ha as RingCounter,Ka as ScrollArea,Xa as ScrollBar,ln as SegmentControl,dn as SegmentControlContent,pn as SegmentControlList,Cn as SegmentControlTrigger,Qa as Select,Ua as SelectContent,ja as SelectGroup,qa as SelectHeader,Ja as SelectItem,Ya as SelectLabel,Za as SelectScrollDownButton,$a as SelectScrollUpButton,en as SelectSeparator,rn as SelectText,on as SelectTrigger,tn as SelectValue,an as SelectWrapper,cn as Separator,fn as Sidebar,Sn as SidebarContent,Tn as SidebarFooter,xn as SidebarGroup,bn as SidebarGroupAction,Dn as SidebarGroupContent,An as SidebarGroupLabel,In as SidebarHeader,kn as SidebarInput,Ln as SidebarInset,Mn as SidebarMenu,Pn as SidebarMenuAction,wn as SidebarMenuBadge,Vn as SidebarMenuButton,vn as SidebarMenuItem,Rn as SidebarMenuItemCollapse,Bn as SidebarMenuItemTitle,hn as SidebarMenuSkeleton,On as SidebarMenuSub,Nn as SidebarMenuSubButton,Wn as SidebarMenuSubItem,Fn as SidebarProvider,Gn as SidebarRail,yn as SidebarSeparator,Hn as SidebarTrigger,Xn as Skeleton,Qn as SortableList,qn as Switch,Zn as Switcher,$n as SwitcherContent,ei as SwitcherFooter,ri as SwitcherGroup,oi as SwitcherItem,ti as SwitcherSeparator,ai as SwitcherTrigger,Si as TAG_PICKER_PALETTE,Ii as TEXT_MARKER_COLORS,ii as Tabs,si as TabsContent,li as TabsList,di as TabsTrigger,ci as Tag,Ti as TagPicker,ki as TextMarker,Pi as Textarea,vi as Tile,Ri as TileDescription,Bi as TileIcon,hi as TileTitle,Wi as Toast,Fi as ToastAction,Gi as ToastClose,yi as ToastDescription,Hi as ToastProvider,Ei as ToastTitle,_i as ToastViewport,Ui as Tooltip,ji as TooltipContent,qi as TooltipProvider,Ji as TooltipTrigger,Zi as TrailStep,p as alertButtonVariants,C as alertVariants,Ea as alignToStep,Ct as applyInputIconSize,y as avatarVariants,_ as badgeVariants,$ as buttonVariants,ea as calculatePageNumbers,Cr as cardLessonVariants,ke as cardModuleStatusVariants,Le as cardModuleVariants,Kt as cardOptionVariants,Di as cardTestimonialInitials,Ne as cardTopicVariants,Fr as checkboxVariants,Kr as chipClearVariants,Xr as chipSelectableVariants,zr as chipVariants,Xo as datePickerTriggerVariants,So as dismissVariants,bo as distributionBarVariants,Do as distributionToneClass,$o as indexLevelAnimatedVariants,qo as indexLevelIconVariants,Jo as indexLevelVariants,ut as inputVariants,mt as labelVariants,Un as moveItem,ga as radioGroupVariants,un as segmentControlTriggerVariants,nn as selectVariants,Jn as switchVariants,pi as tabsContentVariants,Ci as tabsListVariants,ui as tabsTriggerVariants,mi as tagVariants,Li as textMarkerMarkVariants,wi as textareaVariants,Oi as tileVariants,Ki as toastVariants,Or as useCarousel,es as useIsMobile,En as useSidebar,_n as useSidebarSearch,zi as useToast};
|
|
2
|
+
import{Alert as o,AlertActions as a,AlertButton as t,AlertContainer as n,AlertContent as i,AlertDescription as s,AlertIcon as d,AlertTitle as l,alertButtonVariants as C,alertVariants as u}from"./components/Alert.mjs";import{AlertDialog as c,AlertDialogAction as g,AlertDialogCancel as m,AlertDialogContent as S,AlertDialogDescription as T,AlertDialogFooter as f,AlertDialogHeader as x,AlertDialogIcon as b,AlertDialogOverlay as L,AlertDialogPortal as D,AlertDialogTag as I,AlertDialogTitle as A,AlertDialogTrigger as M}from"./components/AlertDialog.mjs";import{Autocomplete as F,AutocompleteContent as P,AutocompleteContentFooter as v,AutocompleteGroup as w,AutocompleteItem as R,AutocompleteText as V,AutocompleteTrigger as B,AutocompleteWrapper as h}from"./components/Autocomplete.mjs";import{Avatar as N,AvatarFallback as W,AvatarImage as H,avatarVariants as y}from"./components/Avatar.mjs";import{Badge as E,badgeVariants as _}from"./components/Badge.mjs";import{Breadcrumb as U,BreadcrumbEllipsis as X,BreadcrumbItem as z,BreadcrumbLink as Q,BreadcrumbList as j,BreadcrumbPage as q,BreadcrumbSeparator as J}from"./components/Breadcrumb.mjs";import{Button as Z,buttonVariants as $}from"./components/Button.mjs";import{CardWeek as re,CardWeekActions as oe,CardWeekBreadcrumb as ae,CardWeekContainer as te,CardWeekContent as ne,CardWeekDescription as ie,CardWeekFooter as se,CardWeekHeader as de,CardWeekProgress as le,CardWeekProgressCircle as Ce,CardWeekStatus as ue,CardWeekTags as pe,CardWeekText as ce,CardWeekTitle as ge}from"./components/CardWeek.mjs";import{CardModule as Se,CardModuleAction as Te,CardModuleButton as fe,CardModuleFooter as xe,CardModuleHeader as be,CardModuleLabel as Le,CardModuleProgress as De,CardModuleTitle as Ie,cardModuleStatusVariants as Ae,cardModuleVariants as Me}from"./components/CardModule.mjs";import{CardTopic as Fe,CardTopicColumn as Pe,CardTopicContent as ve,CardTopicCount as we,CardTopicNumber as Re,CardTopicProgress as Ve,CardTopicTitle as Be,CardTopicTrigger as he,cardTopicVariants as Oe}from"./components/CardTopic.mjs";import{CardContinue as We,CardContinueBreadcrumb as He,CardContinueButton as ye,CardContinueContent as Ge,CardContinueHeader as Ee,CardContinueImage as _e,CardContinueTitle as Ke}from"./components/CardContinue.mjs";import{CardMission as Xe,CardMissionContent as ze,CardMissionDescription as Qe,CardMissionHeader as je,CardMissionOverline as qe,CardMissionPhase as Je,CardMissionTitle as Ye}from"./components/CardMission.mjs";import{CardFocus as $e,CardFocusAction as er,CardFocusActions as rr,CardFocusAvatar as or,CardFocusCategory as ar,CardFocusContent as tr,CardFocusCount as nr,CardFocusCounts as ir,CardFocusFooter as sr,CardFocusHeader as dr,CardFocusHeading as lr,CardFocusIndexLevel as Cr,CardFocusIndicator as ur,CardFocusIndicators as pr,CardFocusLastContact as cr,CardFocusLastScore as gr,CardFocusLive as mr,CardFocusMeta as Sr,CardFocusMetaItem as Tr,CardFocusMore as fr,CardFocusProgress as xr,CardFocusProgressLabel as br,CardFocusRemove as Lr,CardFocusReviewCount as Dr,CardFocusSettings as Ir,CardFocusStat as Ar,CardFocusStatus as Mr,CardFocusTimeRemaining as kr,CardFocusTitle as Fr,CardFocusTurbo as Pr,CardFocusUndo as vr}from"./components/CardFocus.mjs";import{CardLearn as Rr,CardLearnActions as Vr,CardLearnBadge as Br,CardLearnCategory as hr,CardLearnContent as Or,CardLearnDescription as Nr,CardLearnFooter as Wr,CardLearnHeader as Hr,CardLearnHeading as yr,CardLearnIndicators as Gr,CardLearnLesson as Er,CardLearnMeta as _r,CardLearnMore as Kr,CardLearnPlayButton as Ur,CardLearnProgress as Xr,CardLearnProgressLabel as zr,CardLearnSchedule as Qr,CardLearnStatus as jr,CardLearnThumbnail as qr,CardLearnTimeRemaining as Jr,CardLearnTitle as Yr}from"./components/CardLearn.mjs";import{CardLesson as $r,CardLessonButton as eo,CardLessonContent as ro,CardLessonDuration as oo,CardLessonFooter as ao,CardLessonHeader as to,CardLessonIcon as no,CardLessonIcons as io,CardLessonImage as so,CardLessonLabel as lo,CardLessonStatus as Co,CardLessonTitle as uo,cardLessonVariants as po}from"./components/CardLesson.mjs";import{CardNews as go,CardNewsAuthor as mo,CardNewsBody as So,CardNewsContent as To,CardNewsDate as fo,CardNewsDescription as xo,CardNewsFooter as bo,CardNewsHeader as Lo,CardNewsImage as Do,CardNewsResourceItem as Io,CardNewsResources as Ao,CardNewsTags as Mo,CardNewsTitle as ko}from"./components/CardNews.mjs";import{Carousel as Po,CarouselAutoplayToggle as vo,CarouselContent as wo,CarouselDots as Ro,CarouselItem as Vo,CarouselNext as Bo,CarouselPrevious as ho,useCarousel as Oo}from"./components/Carousel.mjs";import{Checkbox as Wo,checkboxVariants as Ho}from"./components/Checkbox.mjs";import{Chip as Go,ChipChoice as Eo,ChipClear as _o,ChipFilter as Ko,chipClearVariants as Uo,chipSelectableVariants as Xo,chipVariants as zo}from"./components/Chip.mjs";import{Collapsible as jo,CollapsibleContent as qo,CollapsibleTrigger as Jo}from"./components/Collapsible.mjs";import{ConfirmDeleteButton as Zo}from"./components/ConfirmDeleteButton.mjs";import{Connector as ea}from"./components/Connector.mjs";import{ConnectorNode as oa}from"./components/ConnectorNode.mjs";import{Dialog as ta,DialogClose as na,DialogContainer as ia,DialogContent as sa,DialogDescription as da,DialogFooter as la,DialogHeader as Ca,DialogOverlay as ua,DialogPortal as pa,DialogTitle as ca,DialogTrigger as ga}from"./components/Dialog.mjs";import{Dismiss as Sa,dismissVariants as Ta}from"./components/Dismiss.mjs";import{DistributionBar as xa,distributionBarVariants as ba,distributionToneClass as La}from"./components/DistributionBar.mjs";import{DropdownMenu as Ia,DropdownMenuCheckboxItem as Aa,DropdownMenuContent as Ma,DropdownMenuGroup as ka,DropdownMenuItem as Fa,DropdownMenuLabel as Pa,DropdownMenuPortal as va,DropdownMenuRadioGroup as wa,DropdownMenuRadioItem as Ra,DropdownMenuSeparator as Va,DropdownMenuShortcut as Ba,DropdownMenuSub as ha,DropdownMenuSubContent as Oa,DropdownMenuSubTrigger as Na,DropdownMenuTrigger as Wa}from"./components/DropdownMenu.mjs";import{DatePicker as ya,DatePickerLabel as Ga,DatePickerText as Ea,DatePickerWrapper as _a,DateRangePicker as Ka,datePickerTriggerVariants as Ua}from"./components/DatePicker.mjs";import{INDEX_LEVEL_LABELS as za,IndexLevel as Qa,IndexLevelIcon as ja,indexLevelIconVariants as qa,indexLevelVariants as Ja}from"./components/IndexLevel.mjs";import{IndexLevelAnimated as Za,indexLevelAnimatedVariants as $a}from"./components/IndexLevelAnimated.mjs";import{Input as rt,InputAdornment as ot,InputEndIcon as at,InputField as tt,InputLabel as nt,InputNumeric as it,InputPassword as st,InputStartIcon as dt,InputText as lt,InputWrapper as Ct,applyInputIconSize as ut,inputVariants as pt}from"./components/Input.mjs";import{Label as gt,labelVariants as mt}from"./components/Label.mjs";import{FallbackImage as Tt}from"./components/FallbackImage.mjs";import{Loading as xt}from"./components/Loading.mjs";import{LoadingOverlay as Lt,LoadingOverlayCard as Dt,LoadingOverlaySpinner as It}from"./components/LoadingOverlay.mjs";import{Logo as Mt,LogoCircular as kt,LogoShort as Ft}from"./components/Logo.mjs";import{Offcanvas as vt,OffcanvasBody as wt,OffcanvasClose as Rt,OffcanvasContent as Vt,OffcanvasDescription as Bt,OffcanvasFooter as ht,OffcanvasHeader as Ot,OffcanvasOverlay as Nt,OffcanvasPortal as Wt,OffcanvasTitle as Ht,OffcanvasTrigger as yt}from"./components/Offcanvas.mjs";import{CardOption as Et,CardOptionGroup as _t,cardOptionVariants as Kt}from"./components/CardOption.mjs";import{Pagination as Xt,PaginationContent as zt,PaginationEllipsis as Qt,PaginationInfo as jt,PaginationItem as qt,PaginationLink as Jt,PaginationNext as Yt,PaginationPrevious as Zt,PaginationRoot as $t,calculatePageNumbers as en}from"./components/Pagination.mjs";import{Popover as on,PopoverAnchor as an,PopoverContent as tn,PopoverTrigger as nn}from"./components/Popover.mjs";import{Progress as dn}from"./components/Progress.mjs";import{ProgressCircle as Cn}from"./components/ProgressCircle.mjs";import{RadioGroup as pn,RadioGroupItem as cn,radioGroupVariants as gn}from"./components/RadioGroup.mjs";import{Ranking as Sn,RankingAssigneeGroup as Tn,RankingAssigneeItem as fn,RankingAssigneeLabel as xn,RankingAssigneesColumn as bn,RankingBody as Ln,RankingButton as Dn,RankingHeader as In,RankingHeaderCell as An,RankingItem as Mn,RankingNumber as kn,RankingPerformance as Fn,RankingPriority as Pn,RankingQuestions as vn,RankingSpecialty as wn,RankingSuperFocus as Rn,RankingTopic as Vn,RankingTopicColumn as Bn,RankingTopicContent as hn}from"./components/Ranking.mjs";import{Rating as Nn,RatingButtonVariants as Wn,RatingLabelVariants as Hn,RatingStarVariants as yn}from"./components/Rating.mjs";import{RingCounter as En,alignToStep as _n}from"./components/RingCounter.mjs";import{ScrollArea as Un,ScrollBar as Xn}from"./components/ScrollArea.mjs";import{Select as Qn,SelectContent as jn,SelectGroup as qn,SelectHeader as Jn,SelectItem as Yn,SelectLabel as Zn,SelectScrollDownButton as $n,SelectScrollUpButton as ei,SelectSeparator as ri,SelectText as oi,SelectTrigger as ai,SelectValue as ti,SelectWrapper as ni,selectVariants as ii}from"./components/Select.mjs";import{SegmentControl as di,SegmentControlContent as li,SegmentControlList as Ci,SegmentControlTrigger as ui,segmentControlTriggerVariants as pi}from"./components/SegmentControl.mjs";import{Separator as gi}from"./components/Separator.mjs";import{Sidebar as Si,SidebarContent as Ti,SidebarFooter as fi,SidebarGroup as xi,SidebarGroupAction as bi,SidebarGroupContent as Li,SidebarGroupLabel as Di,SidebarHeader as Ii,SidebarInput as Ai,SidebarInset as Mi,SidebarMenu as ki,SidebarMenuAction as Fi,SidebarMenuBadge as Pi,SidebarMenuButton as vi,SidebarMenuItem as wi,SidebarMenuItemCollapse as Ri,SidebarMenuItemTitle as Vi,SidebarMenuSkeleton as Bi,SidebarMenuSub as hi,SidebarMenuSubButton as Oi,SidebarMenuSubItem as Ni,SidebarProvider as Wi,SidebarRail as Hi,SidebarSeparator as yi,SidebarTrigger as Gi,useSidebar as Ei,useSidebarSearch as _i}from"./components/Sidebar.mjs";import{Skeleton as Ui}from"./components/Skeleton.mjs";import{SortableList as zi,moveItem as Qi}from"./components/SortableList.mjs";import{Switch as qi,switchVariants as Ji}from"./components/Switch.mjs";import{Switcher as Zi,SwitcherContent as $i,SwitcherFooter as es,SwitcherGroup as rs,SwitcherItem as os,SwitcherSeparator as as,SwitcherTrigger as ts}from"./components/Switcher.mjs";import{Tabs as is,TabsContent as ss,TabsList as ds,TabsTrigger as ls,tabsContentVariants as Cs,tabsListVariants as us,tabsTriggerVariants as ps}from"./components/Tabs.mjs";import{Tag as gs,tagVariants as ms}from"./components/Tag.mjs";import{TAG_PICKER_PALETTE as Ts,TagPicker as fs}from"./components/TagPicker.mjs";import{CardTestimonial as bs,cardTestimonialInitials as Ls}from"./components/CardTestimonial.mjs";import{TEXT_MARKER_COLORS as Is,TextMarker as As,textMarkerMarkVariants as Ms}from"./components/TextMarker.mjs";import{Textarea as Fs,textareaVariants as Ps}from"./components/Textarea.mjs";import{Tile as ws,TileDescription as Rs,TileIcon as Vs,TileTitle as Bs,tileVariants as hs}from"./components/Tile.mjs";import{Toast as Ns,ToastAction as Ws,ToastClose as Hs,ToastDescription as ys,ToastProvider as Gs,ToastTitle as Es,ToastViewport as _s,toastVariants as Ks}from"./components/Toast.mjs";import{useToast as Xs}from"./hooks/use-toast.mjs";import{Tooltip as Qs,TooltipContent as js,TooltipProvider as qs,TooltipTrigger as Js}from"./components/Tooltip.mjs";import{TrailStep as Zs}from"./components/TrailStep.mjs";import{useIsMobile as ed}from"./hooks/use-mobile.mjs";export{o as Alert,a as AlertActions,t as AlertButton,n as AlertContainer,i as AlertContent,s as AlertDescription,c as AlertDialog,g as AlertDialogAction,m as AlertDialogCancel,S as AlertDialogContent,T as AlertDialogDescription,f as AlertDialogFooter,x as AlertDialogHeader,b as AlertDialogIcon,L as AlertDialogOverlay,D as AlertDialogPortal,I as AlertDialogTag,A as AlertDialogTitle,M as AlertDialogTrigger,d as AlertIcon,l as AlertTitle,F as Autocomplete,P as AutocompleteContent,v as AutocompleteContentFooter,w as AutocompleteGroup,R as AutocompleteItem,V as AutocompleteText,B as AutocompleteTrigger,h as AutocompleteWrapper,N as Avatar,W as AvatarFallback,H as AvatarImage,E as Badge,U as Breadcrumb,X as BreadcrumbEllipsis,z as BreadcrumbItem,Q as BreadcrumbLink,j as BreadcrumbList,q as BreadcrumbPage,J as BreadcrumbSeparator,Z as Button,We as CardContinue,He as CardContinueBreadcrumb,ye as CardContinueButton,Ge as CardContinueContent,Ee as CardContinueHeader,_e as CardContinueImage,Ke as CardContinueTitle,$e as CardFocus,er as CardFocusAction,rr as CardFocusActions,or as CardFocusAvatar,ar as CardFocusCategory,tr as CardFocusContent,nr as CardFocusCount,ir as CardFocusCounts,sr as CardFocusFooter,dr as CardFocusHeader,lr as CardFocusHeading,Cr as CardFocusIndexLevel,ur as CardFocusIndicator,pr as CardFocusIndicators,cr as CardFocusLastContact,gr as CardFocusLastScore,mr as CardFocusLive,Sr as CardFocusMeta,Tr as CardFocusMetaItem,fr as CardFocusMore,xr as CardFocusProgress,br as CardFocusProgressLabel,Lr as CardFocusRemove,Dr as CardFocusReviewCount,Ir as CardFocusSettings,Ar as CardFocusStat,Mr as CardFocusStatus,kr as CardFocusTimeRemaining,Fr as CardFocusTitle,Pr as CardFocusTurbo,vr as CardFocusUndo,Rr as CardLearn,Vr as CardLearnActions,Br as CardLearnBadge,hr as CardLearnCategory,Or as CardLearnContent,Nr as CardLearnDescription,Wr as CardLearnFooter,Hr as CardLearnHeader,yr as CardLearnHeading,Gr as CardLearnIndicators,Er as CardLearnLesson,_r as CardLearnMeta,Kr as CardLearnMore,Ur as CardLearnPlayButton,Xr as CardLearnProgress,zr as CardLearnProgressLabel,Qr as CardLearnSchedule,jr as CardLearnStatus,qr as CardLearnThumbnail,Jr as CardLearnTimeRemaining,Yr as CardLearnTitle,$r as CardLesson,eo as CardLessonButton,ro as CardLessonContent,oo as CardLessonDuration,ao as CardLessonFooter,to as CardLessonHeader,no as CardLessonIcon,io as CardLessonIcons,so as CardLessonImage,lo as CardLessonLabel,Co as CardLessonStatus,uo as CardLessonTitle,Xe as CardMission,ze as CardMissionContent,Qe as CardMissionDescription,je as CardMissionHeader,qe as CardMissionOverline,Je as CardMissionPhase,Ye as CardMissionTitle,Se as CardModule,Te as CardModuleAction,fe as CardModuleButton,xe as CardModuleFooter,be as CardModuleHeader,Le as CardModuleLabel,De as CardModuleProgress,Ie as CardModuleTitle,go as CardNews,mo as CardNewsAuthor,So as CardNewsBody,To as CardNewsContent,fo as CardNewsDate,xo as CardNewsDescription,bo as CardNewsFooter,Lo as CardNewsHeader,Do as CardNewsImage,Io as CardNewsResourceItem,Ao as CardNewsResources,Mo as CardNewsTags,ko as CardNewsTitle,Et as CardOption,_t as CardOptionGroup,bs as CardTestimonial,Fe as CardTopic,Pe as CardTopicColumn,ve as CardTopicContent,we as CardTopicCount,Re as CardTopicNumber,Ve as CardTopicProgress,Be as CardTopicTitle,he as CardTopicTrigger,re as CardWeek,oe as CardWeekActions,ae as CardWeekBreadcrumb,te as CardWeekContainer,ne as CardWeekContent,ie as CardWeekDescription,se as CardWeekFooter,de as CardWeekHeader,le as CardWeekProgress,Ce as CardWeekProgressCircle,ue as CardWeekStatus,pe as CardWeekTags,ce as CardWeekText,ge as CardWeekTitle,Po as Carousel,vo as CarouselAutoplayToggle,wo as CarouselContent,Ro as CarouselDots,Vo as CarouselItem,Bo as CarouselNext,ho as CarouselPrevious,Wo as Checkbox,Go as Chip,Eo as ChipChoice,_o as ChipClear,Ko as ChipFilter,jo as Collapsible,qo as CollapsibleContent,Jo as CollapsibleTrigger,Zo as ConfirmDeleteButton,ea as Connector,oa as ConnectorNode,ya as DatePicker,Ga as DatePickerLabel,Ea as DatePickerText,_a as DatePickerWrapper,Ka as DateRangePicker,ta as Dialog,na as DialogClose,ia as DialogContainer,sa as DialogContent,da as DialogDescription,la as DialogFooter,Ca as DialogHeader,ua as DialogOverlay,pa as DialogPortal,ca as DialogTitle,ga as DialogTrigger,Sa as Dismiss,xa as DistributionBar,Ia as DropdownMenu,Aa as DropdownMenuCheckboxItem,Ma as DropdownMenuContent,ka as DropdownMenuGroup,Fa as DropdownMenuItem,Pa as DropdownMenuLabel,va as DropdownMenuPortal,wa as DropdownMenuRadioGroup,Ra as DropdownMenuRadioItem,Va as DropdownMenuSeparator,Ba as DropdownMenuShortcut,ha as DropdownMenuSub,Oa as DropdownMenuSubContent,Na as DropdownMenuSubTrigger,Wa as DropdownMenuTrigger,Tt as FallbackImage,za as INDEX_LEVEL_LABELS,Qa as IndexLevel,Za as IndexLevelAnimated,ja as IndexLevelIcon,rt as Input,ot as InputAdornment,at as InputEndIcon,tt as InputField,nt as InputLabel,it as InputNumeric,st as InputPassword,dt as InputStartIcon,lt as InputText,Ct as InputWrapper,gt as Label,xt as Loading,Lt as LoadingOverlay,Dt as LoadingOverlayCard,It as LoadingOverlaySpinner,Mt as Logo,kt as LogoCircular,Ft as LogoShort,vt as Offcanvas,wt as OffcanvasBody,Rt as OffcanvasClose,Vt as OffcanvasContent,Bt as OffcanvasDescription,ht as OffcanvasFooter,Ot as OffcanvasHeader,Nt as OffcanvasOverlay,Wt as OffcanvasPortal,Ht as OffcanvasTitle,yt as OffcanvasTrigger,Xt as Pagination,zt as PaginationContent,Qt as PaginationEllipsis,jt as PaginationInfo,qt as PaginationItem,Jt as PaginationLink,Yt as PaginationNext,Zt as PaginationPrevious,$t as PaginationRoot,on as Popover,an as PopoverAnchor,tn as PopoverContent,nn as PopoverTrigger,dn as Progress,Cn as ProgressCircle,pn as RadioGroup,cn as RadioGroupItem,Sn as Ranking,Tn as RankingAssigneeGroup,fn as RankingAssigneeItem,xn as RankingAssigneeLabel,bn as RankingAssigneesColumn,Ln as RankingBody,Dn as RankingButton,In as RankingHeader,An as RankingHeaderCell,Mn as RankingItem,kn as RankingNumber,Fn as RankingPerformance,Pn as RankingPriority,vn as RankingQuestions,wn as RankingSpecialty,Rn as RankingSuperFocus,Vn as RankingTopic,Bn as RankingTopicColumn,hn as RankingTopicContent,Nn as Rating,Wn as RatingButtonVariants,Hn as RatingLabelVariants,yn as RatingStarVariants,En as RingCounter,Un as ScrollArea,Xn as ScrollBar,di as SegmentControl,li as SegmentControlContent,Ci as SegmentControlList,ui as SegmentControlTrigger,Qn as Select,jn as SelectContent,qn as SelectGroup,Jn as SelectHeader,Yn as SelectItem,Zn as SelectLabel,$n as SelectScrollDownButton,ei as SelectScrollUpButton,ri as SelectSeparator,oi as SelectText,ai as SelectTrigger,ti as SelectValue,ni as SelectWrapper,gi as Separator,Si as Sidebar,Ti as SidebarContent,fi as SidebarFooter,xi as SidebarGroup,bi as SidebarGroupAction,Li as SidebarGroupContent,Di as SidebarGroupLabel,Ii as SidebarHeader,Ai as SidebarInput,Mi as SidebarInset,ki as SidebarMenu,Fi as SidebarMenuAction,Pi as SidebarMenuBadge,vi as SidebarMenuButton,wi as SidebarMenuItem,Ri as SidebarMenuItemCollapse,Vi as SidebarMenuItemTitle,Bi as SidebarMenuSkeleton,hi as SidebarMenuSub,Oi as SidebarMenuSubButton,Ni as SidebarMenuSubItem,Wi as SidebarProvider,Hi as SidebarRail,yi as SidebarSeparator,Gi as SidebarTrigger,Ui as Skeleton,zi as SortableList,qi as Switch,Zi as Switcher,$i as SwitcherContent,es as SwitcherFooter,rs as SwitcherGroup,os as SwitcherItem,as as SwitcherSeparator,ts as SwitcherTrigger,Ts as TAG_PICKER_PALETTE,Is as TEXT_MARKER_COLORS,is as Tabs,ss as TabsContent,ds as TabsList,ls as TabsTrigger,gs as Tag,fs as TagPicker,As as TextMarker,Fs as Textarea,ws as Tile,Rs as TileDescription,Vs as TileIcon,Bs as TileTitle,Ns as Toast,Ws as ToastAction,Hs as ToastClose,ys as ToastDescription,Gs as ToastProvider,Es as ToastTitle,_s as ToastViewport,Qs as Tooltip,js as TooltipContent,qs as TooltipProvider,Js as TooltipTrigger,Zs as TrailStep,C as alertButtonVariants,u as alertVariants,_n as alignToStep,ut as applyInputIconSize,y as avatarVariants,_ as badgeVariants,$ as buttonVariants,en as calculatePageNumbers,po as cardLessonVariants,Ae as cardModuleStatusVariants,Me as cardModuleVariants,Kt as cardOptionVariants,Ls as cardTestimonialInitials,Oe as cardTopicVariants,Ho as checkboxVariants,Uo as chipClearVariants,Xo as chipSelectableVariants,zo as chipVariants,Ua as datePickerTriggerVariants,Ta as dismissVariants,ba as distributionBarVariants,La as distributionToneClass,$a as indexLevelAnimatedVariants,qa as indexLevelIconVariants,Ja as indexLevelVariants,pt as inputVariants,mt as labelVariants,Qi as moveItem,gn as radioGroupVariants,pi as segmentControlTriggerVariants,ii as selectVariants,Ji as switchVariants,Cs as tabsContentVariants,us as tabsListVariants,ps as tabsTriggerVariants,ms as tagVariants,Ms as textMarkerMarkVariants,Ps as textareaVariants,hs as tileVariants,Ks as toastVariants,Oo as useCarousel,ed as useIsMobile,Ei as useSidebar,_i as useSidebarSearch,Xs as useToast};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medway-ui/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.51.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Biblioteca de componentes e assets para o sistema Medway",
|
|
6
6
|
"author": "Alekcarvalho",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"use-sync-external-store": "^1.5.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@medway-ui/icons": "^1.
|
|
47
|
+
"@medway-ui/icons": "^1.23.0",
|
|
48
48
|
"@tiptap/pm": "^3.31.3",
|
|
49
49
|
"@tiptap/react": "^3.31.3",
|
|
50
50
|
"react": ">=17.0.2",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@medway-ui/icons": "1.
|
|
63
|
+
"@medway-ui/icons": "1.23.0",
|
|
64
64
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
65
65
|
"@tiptap/core": "^3.31.3",
|
|
66
66
|
"@tiptap/extension-blockquote": "^3.31.3",
|