@medway-ui/core 1.44.0 → 1.46.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 +231 -1
- package/COMPONENTS_SUMMARY.md +7 -1
- package/dist/COMPONENTS.md +231 -1
- package/dist/COMPONENTS_SUMMARY.md +7 -1
- package/dist/components/CardMission.d.ts +9 -0
- package/dist/components/CardMission.js +3 -0
- package/dist/components/CardMission.mjs +3 -0
- package/dist/components/CardOption.d.ts +47 -0
- package/dist/components/CardOption.js +3 -0
- package/dist/components/CardOption.mjs +3 -0
- package/dist/components/CardTestimonial.d.ts +16 -0
- package/dist/components/CardTestimonial.js +3 -0
- package/dist/components/CardTestimonial.mjs +3 -0
- package/dist/components/DistributionBar.d.ts +22 -0
- package/dist/components/DistributionBar.js +3 -0
- package/dist/components/DistributionBar.mjs +3 -0
- package/dist/components/RingCounter.d.ts +45 -0
- package/dist/components/RingCounter.js +3 -0
- package/dist/components/RingCounter.mjs +3 -0
- package/dist/components/SortableList.d.ts +47 -0
- package/dist/components/SortableList.js +3 -0
- package/dist/components/SortableList.mjs +3 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -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.46.0 · Generated 2026-11-16
|
|
5
5
|
|
|
6
6
|
All components require React 18+ and are client components (`"use client"`).
|
|
7
7
|
|
|
@@ -31,6 +31,7 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
31
31
|
- [CardModule](#cardmodule)
|
|
32
32
|
- [CardTopic](#cardtopic)
|
|
33
33
|
- [CardContinue](#cardcontinue)
|
|
34
|
+
- [CardMission](#cardmission)
|
|
34
35
|
- [CardLesson](#cardlesson)
|
|
35
36
|
- [CardNews](#cardnews)
|
|
36
37
|
- [Carousel](#carousel)
|
|
@@ -42,6 +43,7 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
42
43
|
- [ConnectorNode](#connectornode)
|
|
43
44
|
- [Dialog](#dialog)
|
|
44
45
|
- [Dismiss](#dismiss)
|
|
46
|
+
- [DistributionBar](#distributionbar)
|
|
45
47
|
- [DropdownMenu](#dropdownmenu)
|
|
46
48
|
- [DatePicker](#datepicker)
|
|
47
49
|
- [IndexLevel](#indexlevel)
|
|
@@ -53,23 +55,27 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
53
55
|
- [LoadingOverlay](#loadingoverlay)
|
|
54
56
|
- [Logo](#logo)
|
|
55
57
|
- [Offcanvas](#offcanvas)
|
|
58
|
+
- [CardOption](#cardoption)
|
|
56
59
|
- [Pagination](#pagination)
|
|
57
60
|
- [Progress](#progress)
|
|
58
61
|
- [ProgressCircle](#progresscircle)
|
|
59
62
|
- [RadioGroup](#radiogroup)
|
|
60
63
|
- [Ranking](#ranking)
|
|
61
64
|
- [Rating](#rating)
|
|
65
|
+
- [RingCounter](#ringcounter)
|
|
62
66
|
- [Scroll Area](#scroll-area)
|
|
63
67
|
- [Select](#select)
|
|
64
68
|
- [SegmentControl](#segmentcontrol)
|
|
65
69
|
- [Separator](#separator)
|
|
66
70
|
- [Sidebar](#sidebar)
|
|
67
71
|
- [Skeleton](#skeleton)
|
|
72
|
+
- [SortableList](#sortablelist)
|
|
68
73
|
- [Switch](#switch)
|
|
69
74
|
- [Switcher](#switcher)
|
|
70
75
|
- [Tabs](#tabs)
|
|
71
76
|
- [Tag](#tag)
|
|
72
77
|
- [TagPicker](#tagpicker)
|
|
78
|
+
- [CardTestimonial](#cardtestimonial)
|
|
73
79
|
- [TextMarker](#textmarker)
|
|
74
80
|
- [Textarea](#textarea)
|
|
75
81
|
- [Tile](#tile)
|
|
@@ -582,6 +588,12 @@ type CardTopicProps = | (CollapsibleProps & {
|
|
|
582
588
|
|
|
583
589
|
---
|
|
584
590
|
|
|
591
|
+
## CardMission
|
|
592
|
+
|
|
593
|
+
**Sub-components:** `CardMission`, `CardMissionContent`, `CardMissionDescription`, `CardMissionHeader`, `CardMissionOverline`, `CardMissionPhase`, `CardMissionTitle`
|
|
594
|
+
|
|
595
|
+
---
|
|
596
|
+
|
|
585
597
|
## CardLesson
|
|
586
598
|
|
|
587
599
|
**Sub-components:** `CardLesson`, `CardLessonButton`, `CardLessonContent`, `CardLessonDuration`, `CardLessonFooter`, `CardLessonHeader`, `CardLessonIcon`, `CardLessonIcons`, `CardLessonImage`, `CardLessonLabel`, `CardLessonStatus`, `CardLessonTitle`
|
|
@@ -1202,6 +1214,54 @@ type ConnectorNodeProps = ConnectorNodeButtonProps | ConnectorNodeStaticProps
|
|
|
1202
1214
|
|
|
1203
1215
|
---
|
|
1204
1216
|
|
|
1217
|
+
## DistributionBar
|
|
1218
|
+
|
|
1219
|
+
**Sub-components:** `DistributionBar`
|
|
1220
|
+
|
|
1221
|
+
**Functions / variant helpers:** `distributionBarVariants`, `distributionToneClass`
|
|
1222
|
+
|
|
1223
|
+
**Exported types:** `DistributionBarProps`, `DistributionSegment`, `DistributionTone`
|
|
1224
|
+
|
|
1225
|
+
### `distributionBarVariants` — CVA Variants
|
|
1226
|
+
|
|
1227
|
+
**`size`** *(default: `"sm"`)*:
|
|
1228
|
+
|
|
1229
|
+
`"sm"` \| `"md"`
|
|
1230
|
+
|
|
1231
|
+
### `DistributionSegment`
|
|
1232
|
+
|
|
1233
|
+
| Prop | Type | Required |
|
|
1234
|
+
|------|------|:--------:|
|
|
1235
|
+
| `label` | `string` | ✓ |
|
|
1236
|
+
| `value` | `number` | ✓ |
|
|
1237
|
+
| `tone` | `DistributionTone` | |
|
|
1238
|
+
|
|
1239
|
+
### `DistributionBarProps`
|
|
1240
|
+
|
|
1241
|
+
*Extends: Omit<ComponentProps<"div">, "children">, VariantProps<typeof distributionBarVariants>*
|
|
1242
|
+
|
|
1243
|
+
| Prop | Type | Required |
|
|
1244
|
+
|------|------|:--------:|
|
|
1245
|
+
| `segments` | `readonly DistributionSegment[]` | ✓ |
|
|
1246
|
+
| `label` | `ReactNode` | |
|
|
1247
|
+
| `showLegend` | `boolean` | |
|
|
1248
|
+
| `showPercent` | `boolean` | |
|
|
1249
|
+
|
|
1250
|
+
### `DistributionTone` *(type)*
|
|
1251
|
+
|
|
1252
|
+
```typescript
|
|
1253
|
+
type DistributionTone = | "primary"
|
|
1254
|
+
| "secondary"
|
|
1255
|
+
| "cm"
|
|
1256
|
+
| "go"
|
|
1257
|
+
| "cir"
|
|
1258
|
+
| "ped"
|
|
1259
|
+
| "prev"
|
|
1260
|
+
| "gray"
|
|
1261
|
+
```
|
|
1262
|
+
|
|
1263
|
+
---
|
|
1264
|
+
|
|
1205
1265
|
## DropdownMenu
|
|
1206
1266
|
|
|
1207
1267
|
**Sub-components:** `DropdownMenu`, `DropdownMenuCheckboxItem`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuItem`, `DropdownMenuLabel`, `DropdownMenuPortal`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubContent`, `DropdownMenuSubTrigger`, `DropdownMenuTrigger`
|
|
@@ -1641,6 +1701,76 @@ type OffcanvasSize = number | string
|
|
|
1641
1701
|
|
|
1642
1702
|
---
|
|
1643
1703
|
|
|
1704
|
+
## CardOption
|
|
1705
|
+
|
|
1706
|
+
**Sub-components:** `CardOption`, `CardOptionGroup`
|
|
1707
|
+
|
|
1708
|
+
**Functions / variant helpers:** `cardOptionVariants`
|
|
1709
|
+
|
|
1710
|
+
**Exported types:** `CardOptionGroupProps`, `CardOptionIndicator`, `CardOptionProps`, `CardOptionSize`
|
|
1711
|
+
|
|
1712
|
+
> **Radix UI base:** `RadioGroup` — sub-components forward all Radix UI props.
|
|
1713
|
+
|
|
1714
|
+
### `cardOptionVariants` — CVA Variants
|
|
1715
|
+
|
|
1716
|
+
**`size`** *(default: `"md"`)*:
|
|
1717
|
+
|
|
1718
|
+
`"md"` \| `"lg"`
|
|
1719
|
+
|
|
1720
|
+
**`emphasis`** *(default: `"true"`)*:
|
|
1721
|
+
|
|
1722
|
+
`"true"` \| `"false"`
|
|
1723
|
+
|
|
1724
|
+
**`interactive`** *(default: `"true"`)*:
|
|
1725
|
+
|
|
1726
|
+
`"true"` \| `"false"`
|
|
1727
|
+
|
|
1728
|
+
**`disabled`** *(default: `"false"`)*:
|
|
1729
|
+
|
|
1730
|
+
`"true"` \| `"false"`
|
|
1731
|
+
|
|
1732
|
+
### `CardOptionProps`
|
|
1733
|
+
|
|
1734
|
+
*Extends: Omit<
|
|
1735
|
+
ComponentPropsWithoutRef<"button">,
|
|
1736
|
+
"value" | "children" | "disabled" | "onClick" | "type"
|
|
1737
|
+
>*
|
|
1738
|
+
|
|
1739
|
+
| Prop | Type | Required |
|
|
1740
|
+
|------|------|:--------:|
|
|
1741
|
+
| `value` | `string` | ✓ |
|
|
1742
|
+
| `label` | `string` | |
|
|
1743
|
+
| `children` | `ReactNode` | |
|
|
1744
|
+
| `description` | `string` | |
|
|
1745
|
+
| `disabled` | `boolean` | |
|
|
1746
|
+
| `readOnly` | `boolean` | |
|
|
1747
|
+
| `emphasis` | `boolean` | |
|
|
1748
|
+
| `className` | `string` | |
|
|
1749
|
+
| `indicator` | `CardOptionIndicator` | |
|
|
1750
|
+
| `checked` | `boolean` | |
|
|
1751
|
+
| `onCheckedChange` | `(checked: boolean) => void` | |
|
|
1752
|
+
|
|
1753
|
+
### `CardOptionSize` *(type)*
|
|
1754
|
+
|
|
1755
|
+
```typescript
|
|
1756
|
+
type CardOptionSize = "md" | "lg"
|
|
1757
|
+
```
|
|
1758
|
+
|
|
1759
|
+
### `CardOptionIndicator` *(type)*
|
|
1760
|
+
|
|
1761
|
+
```typescript
|
|
1762
|
+
type CardOptionIndicator = "radio" | "checkbox"
|
|
1763
|
+
```
|
|
1764
|
+
|
|
1765
|
+
### `CardOptionGroupProps` *(type)*
|
|
1766
|
+
|
|
1767
|
+
```typescript
|
|
1768
|
+
type CardOptionGroupProps = | CardOptionGroupSingleProps
|
|
1769
|
+
| CardOptionGroupMultipleProps
|
|
1770
|
+
```
|
|
1771
|
+
|
|
1772
|
+
---
|
|
1773
|
+
|
|
1644
1774
|
## Pagination
|
|
1645
1775
|
|
|
1646
1776
|
**Sub-components:** `Pagination`, `PaginationContent`, `PaginationEllipsis`, `PaginationInfo`, `PaginationItem`, `PaginationLink`, `PaginationNext`, `PaginationPrevious`, `PaginationRoot`
|
|
@@ -1945,6 +2075,40 @@ type RatingStarState = "empty" | "half" | "full"
|
|
|
1945
2075
|
|
|
1946
2076
|
---
|
|
1947
2077
|
|
|
2078
|
+
## RingCounter
|
|
2079
|
+
|
|
2080
|
+
**Sub-components:** `RingCounter`
|
|
2081
|
+
|
|
2082
|
+
**Functions / variant helpers:** `alignToStep`
|
|
2083
|
+
|
|
2084
|
+
**Exported types:** `RingCounterProps`
|
|
2085
|
+
|
|
2086
|
+
### `RingCounterProps`
|
|
2087
|
+
|
|
2088
|
+
*Extends: Omit<
|
|
2089
|
+
ComponentProps<"div">,
|
|
2090
|
+
"children" | "defaultValue" | "onChange"
|
|
2091
|
+
>*
|
|
2092
|
+
|
|
2093
|
+
| Prop | Type | Required |
|
|
2094
|
+
|------|------|:--------:|
|
|
2095
|
+
| `value` | `number \| null` | |
|
|
2096
|
+
| `defaultValue` | `number` | |
|
|
2097
|
+
| `onValueChange` | `(value: number) => void` | |
|
|
2098
|
+
| `min` | `number` | |
|
|
2099
|
+
| `max` | `number` | |
|
|
2100
|
+
| `step` | `number` | |
|
|
2101
|
+
| `formatValue` | `(value: number) => string` | |
|
|
2102
|
+
| `caption` | `ReactNode` | |
|
|
2103
|
+
| `helperText` | `ReactNode` | |
|
|
2104
|
+
| `valueText` | `(value: number) => string` | |
|
|
2105
|
+
| `decrementLabel` | `string` | |
|
|
2106
|
+
| `incrementLabel` | `string` | |
|
|
2107
|
+
| `arc` | `"static" \| "progress"` | |
|
|
2108
|
+
| `disabled` | `boolean` | |
|
|
2109
|
+
|
|
2110
|
+
---
|
|
2111
|
+
|
|
1948
2112
|
## Scroll Area
|
|
1949
2113
|
|
|
1950
2114
|
**Sub-components:** `ScrollArea`, `ScrollBar`
|
|
@@ -2062,6 +2226,47 @@ type SelectSize = "md" | "lg"
|
|
|
2062
2226
|
|
|
2063
2227
|
---
|
|
2064
2228
|
|
|
2229
|
+
## SortableList
|
|
2230
|
+
|
|
2231
|
+
**Sub-components:** `SortableList`
|
|
2232
|
+
|
|
2233
|
+
**Functions / variant helpers:** `moveItem`
|
|
2234
|
+
|
|
2235
|
+
**Exported types:** `SortableId`, `SortableItem`, `SortableListProps`
|
|
2236
|
+
|
|
2237
|
+
### `SortableItem`
|
|
2238
|
+
|
|
2239
|
+
| Prop | Type | Required |
|
|
2240
|
+
|------|------|:--------:|
|
|
2241
|
+
| `id` | `SortableId` | ✓ |
|
|
2242
|
+
| `label` | `string` | ✓ |
|
|
2243
|
+
|
|
2244
|
+
### `SortableListProps`
|
|
2245
|
+
|
|
2246
|
+
*Extends: Omit<ComponentPropsWithoutRef<"ul">, "children" | "onChange">*
|
|
2247
|
+
|
|
2248
|
+
| Prop | Type | Required |
|
|
2249
|
+
|------|------|:--------:|
|
|
2250
|
+
| `items` | `readonly T[]` | ✓ |
|
|
2251
|
+
| `onChange` | `(items: T[]) => void` | ✓ |
|
|
2252
|
+
| `onRemove` | `(item: T) => void` | |
|
|
2253
|
+
| `showRank` | `boolean` | |
|
|
2254
|
+
| `renderLabel` | `(item: T, index: number) => ReactNode` | |
|
|
2255
|
+
| `disabled` | `boolean` | |
|
|
2256
|
+
| `emptyState` | `ReactNode` | |
|
|
2257
|
+
| `dragHandleLabel` | `string` | |
|
|
2258
|
+
| `removeLabel` | `(item: T) => string` | |
|
|
2259
|
+
| `moveUpLabel` | `string` | |
|
|
2260
|
+
| `moveDownLabel` | `string` | |
|
|
2261
|
+
|
|
2262
|
+
### `SortableId` *(type)*
|
|
2263
|
+
|
|
2264
|
+
```typescript
|
|
2265
|
+
type SortableId = string | number
|
|
2266
|
+
```
|
|
2267
|
+
|
|
2268
|
+
---
|
|
2269
|
+
|
|
2065
2270
|
## Switch
|
|
2066
2271
|
|
|
2067
2272
|
**Sub-components:** `Switch`
|
|
@@ -2346,6 +2551,31 @@ type TagSize = NonNullable<VariantProps<typeof tagVariants>["size"]>
|
|
|
2346
2551
|
|
|
2347
2552
|
---
|
|
2348
2553
|
|
|
2554
|
+
## CardTestimonial
|
|
2555
|
+
|
|
2556
|
+
**Sub-components:** `CardTestimonial`
|
|
2557
|
+
|
|
2558
|
+
**Functions / variant helpers:** `cardTestimonialInitials`
|
|
2559
|
+
|
|
2560
|
+
**Exported types:** `CardTestimonialProps`
|
|
2561
|
+
|
|
2562
|
+
### `CardTestimonialProps`
|
|
2563
|
+
|
|
2564
|
+
*Extends: Omit<ComponentProps<"figure">, "children">*
|
|
2565
|
+
|
|
2566
|
+
| Prop | Type | Required |
|
|
2567
|
+
|------|------|:--------:|
|
|
2568
|
+
| `name` | `string` | ✓ |
|
|
2569
|
+
| `quote` | `string` | ✓ |
|
|
2570
|
+
| `jobTitle` | `string` | |
|
|
2571
|
+
| `organization` | `string` | |
|
|
2572
|
+
| `separator` | `string` | |
|
|
2573
|
+
| `avatarSrc` | `string` | |
|
|
2574
|
+
| `avatarFallback` | `string` | |
|
|
2575
|
+
| `footer` | `ReactNode` | |
|
|
2576
|
+
|
|
2577
|
+
---
|
|
2578
|
+
|
|
2349
2579
|
## TextMarker
|
|
2350
2580
|
|
|
2351
2581
|
**Sub-components:** `TEXT_MARKER_COLORS`, `TextMarker`
|
package/COMPONENTS_SUMMARY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @medway-ui/core — Component Summary
|
|
2
2
|
|
|
3
|
-
> v1.
|
|
3
|
+
> v1.46.0 · For the full prop/variant reference see `COMPONENTS.md`.
|
|
4
4
|
|
|
5
5
|
## Components
|
|
6
6
|
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
- **CardModule** — variants: default, blocked | sub: CardModuleAction, CardModuleButton, CardModuleFooter, CardModuleHeader, CardModuleLabel, CardModuleProgress, CardModuleTitle
|
|
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
|
+
- **CardMission** — sub: CardMissionContent, CardMissionDescription, CardMissionHeader, CardMissionOverline, CardMissionPhase, CardMissionTitle
|
|
18
19
|
- **CardLesson** — variants: default, blocked | orientation: vertical, horizontal | sub: CardLessonButton, CardLessonContent, CardLessonDuration, CardLessonFooter, CardLessonHeader, CardLessonIcon, CardLessonIcons, CardLessonImage, CardLessonLabel, CardLessonStatus, CardLessonTitle
|
|
19
20
|
- **CardNews** — variants: default, read, compact | orientation: vertical, horizontal | sub: CardNewsAuthor, CardNewsBody, CardNewsContent, CardNewsDate, CardNewsDescription, CardNewsFooter, CardNewsHeader, CardNewsImage, CardNewsResourceItem, CardNewsResources, CardNewsTags, CardNewsTitle
|
|
20
21
|
- **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
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
- **ConnectorNode** — status: done, current, upcoming
|
|
27
28
|
- **Dialog** — Radix: Dialog | sub: DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger
|
|
28
29
|
- **Dismiss** — sizes: sm, md
|
|
30
|
+
- **DistributionBar** — sizes: sm, md
|
|
29
31
|
- **DropdownMenu** — Radix: DropdownMenu | sub: DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger
|
|
30
32
|
- **DatePicker** — sizes: lg, md | Radix: Popover | sub: DateRangePicker, DatePickerWrapper, DatePickerLabel, DatePickerText
|
|
31
33
|
- **IndexLevel** — variants: regular, soft, basic | sizes: sm, md | sub: INDEX_LEVEL_LABELS, IndexLevelIcon
|
|
@@ -37,23 +39,27 @@
|
|
|
37
39
|
- **LoadingOverlay** — Radix: Dialog | sub: LoadingOverlayCard, LoadingOverlaySpinner
|
|
38
40
|
- **Logo** — sub: LogoShort, LogoCircular
|
|
39
41
|
- **Offcanvas** — Radix: Dialog | sub: OffcanvasBody, OffcanvasClose, OffcanvasContent, OffcanvasDescription, OffcanvasFooter, OffcanvasHeader, OffcanvasOverlay, OffcanvasPortal, OffcanvasTitle, OffcanvasTrigger
|
|
42
|
+
- **CardOption** — sizes: md, lg | emphasis: true, false | interactive: true, false | disabled: true, false | Radix: RadioGroup | sub: CardOptionGroup
|
|
40
43
|
- **Pagination** — sub: PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot
|
|
41
44
|
- **Progress** — Radix: Progress
|
|
42
45
|
- **ProgressCircle**
|
|
43
46
|
- **RadioGroup** — variants: regular | sizes: sm, md, lg | Radix: RadioGroup | sub: RadioGroupItem
|
|
44
47
|
- **Ranking** — sub: RankingHeader, RankingHeaderCell, RankingBody, RankingItem, RankingNumber, RankingTopicColumn, RankingTopicContent, RankingSpecialty, RankingTopic, RankingSuperFocus, RankingAssigneesColumn, RankingAssigneeLabel, RankingAssigneeGroup, RankingAssigneeItem, RankingPriority, RankingQuestions, RankingPerformance, RankingButton
|
|
45
48
|
- **Rating** — sizes: sm, md, lg | readOnly: true, false | sub: RatingButtonVariants, RatingLabelVariants, RatingStarVariants
|
|
49
|
+
- **RingCounter**
|
|
46
50
|
- **Scroll Area** — Radix: ScrollArea | sub: ScrollArea, ScrollBar
|
|
47
51
|
- **Select** — sizes: lg, md | Radix: Select | sub: SelectContent, SelectGroup, SelectHeader, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectText, SelectTrigger, SelectValue, SelectWrapper
|
|
48
52
|
- **SegmentControl** — sizes: sm, md, lg | Radix: Tabs | sub: SegmentControlContent, SegmentControlList, SegmentControlTrigger
|
|
49
53
|
- **Separator** — Radix: Separator
|
|
50
54
|
- **Sidebar** — variants: default, section, outline | sizes: sm, md, lg | sub: SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger
|
|
51
55
|
- **Skeleton**
|
|
56
|
+
- **SortableList**
|
|
52
57
|
- **Switch** — variants: regular | sizes: sm, md, lg | Radix: Switch
|
|
53
58
|
- **Switcher** — sub: SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger
|
|
54
59
|
- **Tabs** — variants: standalone, header | sizes: md, lg | side: left, right | Radix: Tabs | sub: TabsContent, TabsList, TabsTrigger
|
|
55
60
|
- **Tag** — sizes: sm, md | variants: regular, regular-soft, regular-basic, emphasis, emphasis-soft, emphasis-basic, gray, gray-soft, gray-basic, success, success-soft, success-basic, error, error-soft, error-basic, warning, warning-soft, warning-basic, cm, cm-soft, cm-basic, go, go-soft, go-basic, cir, cir-soft, cir-basic, ped, ped-soft, ped-basic, prev, prev-soft, prev-basic, ia, ia-soft, ia-basic
|
|
56
61
|
- **TagPicker** — sub: TAG_PICKER_PALETTE
|
|
62
|
+
- **CardTestimonial**
|
|
57
63
|
- **TextMarker** — color: none | strikethrough: true, false | underline: true, false | Radix: Popover, Toolbar | sub: TEXT_MARKER_COLORS
|
|
58
64
|
- **Textarea** — sizes: lg, md | autoResize: true, false
|
|
59
65
|
- **Tile** — variants: regular, cm, go, cir, ped, prev | sizes: default, compact | sub: TileDescription, TileIcon, TileTitle
|
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.46.0 · Generated 2026-11-16
|
|
5
5
|
|
|
6
6
|
All components require React 18+ and are client components (`"use client"`).
|
|
7
7
|
|
|
@@ -31,6 +31,7 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
31
31
|
- [CardModule](#cardmodule)
|
|
32
32
|
- [CardTopic](#cardtopic)
|
|
33
33
|
- [CardContinue](#cardcontinue)
|
|
34
|
+
- [CardMission](#cardmission)
|
|
34
35
|
- [CardLesson](#cardlesson)
|
|
35
36
|
- [CardNews](#cardnews)
|
|
36
37
|
- [Carousel](#carousel)
|
|
@@ -42,6 +43,7 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
42
43
|
- [ConnectorNode](#connectornode)
|
|
43
44
|
- [Dialog](#dialog)
|
|
44
45
|
- [Dismiss](#dismiss)
|
|
46
|
+
- [DistributionBar](#distributionbar)
|
|
45
47
|
- [DropdownMenu](#dropdownmenu)
|
|
46
48
|
- [DatePicker](#datepicker)
|
|
47
49
|
- [IndexLevel](#indexlevel)
|
|
@@ -53,23 +55,27 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
53
55
|
- [LoadingOverlay](#loadingoverlay)
|
|
54
56
|
- [Logo](#logo)
|
|
55
57
|
- [Offcanvas](#offcanvas)
|
|
58
|
+
- [CardOption](#cardoption)
|
|
56
59
|
- [Pagination](#pagination)
|
|
57
60
|
- [Progress](#progress)
|
|
58
61
|
- [ProgressCircle](#progresscircle)
|
|
59
62
|
- [RadioGroup](#radiogroup)
|
|
60
63
|
- [Ranking](#ranking)
|
|
61
64
|
- [Rating](#rating)
|
|
65
|
+
- [RingCounter](#ringcounter)
|
|
62
66
|
- [Scroll Area](#scroll-area)
|
|
63
67
|
- [Select](#select)
|
|
64
68
|
- [SegmentControl](#segmentcontrol)
|
|
65
69
|
- [Separator](#separator)
|
|
66
70
|
- [Sidebar](#sidebar)
|
|
67
71
|
- [Skeleton](#skeleton)
|
|
72
|
+
- [SortableList](#sortablelist)
|
|
68
73
|
- [Switch](#switch)
|
|
69
74
|
- [Switcher](#switcher)
|
|
70
75
|
- [Tabs](#tabs)
|
|
71
76
|
- [Tag](#tag)
|
|
72
77
|
- [TagPicker](#tagpicker)
|
|
78
|
+
- [CardTestimonial](#cardtestimonial)
|
|
73
79
|
- [TextMarker](#textmarker)
|
|
74
80
|
- [Textarea](#textarea)
|
|
75
81
|
- [Tile](#tile)
|
|
@@ -582,6 +588,12 @@ type CardTopicProps = | (CollapsibleProps & {
|
|
|
582
588
|
|
|
583
589
|
---
|
|
584
590
|
|
|
591
|
+
## CardMission
|
|
592
|
+
|
|
593
|
+
**Sub-components:** `CardMission`, `CardMissionContent`, `CardMissionDescription`, `CardMissionHeader`, `CardMissionOverline`, `CardMissionPhase`, `CardMissionTitle`
|
|
594
|
+
|
|
595
|
+
---
|
|
596
|
+
|
|
585
597
|
## CardLesson
|
|
586
598
|
|
|
587
599
|
**Sub-components:** `CardLesson`, `CardLessonButton`, `CardLessonContent`, `CardLessonDuration`, `CardLessonFooter`, `CardLessonHeader`, `CardLessonIcon`, `CardLessonIcons`, `CardLessonImage`, `CardLessonLabel`, `CardLessonStatus`, `CardLessonTitle`
|
|
@@ -1202,6 +1214,54 @@ type ConnectorNodeProps = ConnectorNodeButtonProps | ConnectorNodeStaticProps
|
|
|
1202
1214
|
|
|
1203
1215
|
---
|
|
1204
1216
|
|
|
1217
|
+
## DistributionBar
|
|
1218
|
+
|
|
1219
|
+
**Sub-components:** `DistributionBar`
|
|
1220
|
+
|
|
1221
|
+
**Functions / variant helpers:** `distributionBarVariants`, `distributionToneClass`
|
|
1222
|
+
|
|
1223
|
+
**Exported types:** `DistributionBarProps`, `DistributionSegment`, `DistributionTone`
|
|
1224
|
+
|
|
1225
|
+
### `distributionBarVariants` — CVA Variants
|
|
1226
|
+
|
|
1227
|
+
**`size`** *(default: `"sm"`)*:
|
|
1228
|
+
|
|
1229
|
+
`"sm"` \| `"md"`
|
|
1230
|
+
|
|
1231
|
+
### `DistributionSegment`
|
|
1232
|
+
|
|
1233
|
+
| Prop | Type | Required |
|
|
1234
|
+
|------|------|:--------:|
|
|
1235
|
+
| `label` | `string` | ✓ |
|
|
1236
|
+
| `value` | `number` | ✓ |
|
|
1237
|
+
| `tone` | `DistributionTone` | |
|
|
1238
|
+
|
|
1239
|
+
### `DistributionBarProps`
|
|
1240
|
+
|
|
1241
|
+
*Extends: Omit<ComponentProps<"div">, "children">, VariantProps<typeof distributionBarVariants>*
|
|
1242
|
+
|
|
1243
|
+
| Prop | Type | Required |
|
|
1244
|
+
|------|------|:--------:|
|
|
1245
|
+
| `segments` | `readonly DistributionSegment[]` | ✓ |
|
|
1246
|
+
| `label` | `ReactNode` | |
|
|
1247
|
+
| `showLegend` | `boolean` | |
|
|
1248
|
+
| `showPercent` | `boolean` | |
|
|
1249
|
+
|
|
1250
|
+
### `DistributionTone` *(type)*
|
|
1251
|
+
|
|
1252
|
+
```typescript
|
|
1253
|
+
type DistributionTone = | "primary"
|
|
1254
|
+
| "secondary"
|
|
1255
|
+
| "cm"
|
|
1256
|
+
| "go"
|
|
1257
|
+
| "cir"
|
|
1258
|
+
| "ped"
|
|
1259
|
+
| "prev"
|
|
1260
|
+
| "gray"
|
|
1261
|
+
```
|
|
1262
|
+
|
|
1263
|
+
---
|
|
1264
|
+
|
|
1205
1265
|
## DropdownMenu
|
|
1206
1266
|
|
|
1207
1267
|
**Sub-components:** `DropdownMenu`, `DropdownMenuCheckboxItem`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuItem`, `DropdownMenuLabel`, `DropdownMenuPortal`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubContent`, `DropdownMenuSubTrigger`, `DropdownMenuTrigger`
|
|
@@ -1641,6 +1701,76 @@ type OffcanvasSize = number | string
|
|
|
1641
1701
|
|
|
1642
1702
|
---
|
|
1643
1703
|
|
|
1704
|
+
## CardOption
|
|
1705
|
+
|
|
1706
|
+
**Sub-components:** `CardOption`, `CardOptionGroup`
|
|
1707
|
+
|
|
1708
|
+
**Functions / variant helpers:** `cardOptionVariants`
|
|
1709
|
+
|
|
1710
|
+
**Exported types:** `CardOptionGroupProps`, `CardOptionIndicator`, `CardOptionProps`, `CardOptionSize`
|
|
1711
|
+
|
|
1712
|
+
> **Radix UI base:** `RadioGroup` — sub-components forward all Radix UI props.
|
|
1713
|
+
|
|
1714
|
+
### `cardOptionVariants` — CVA Variants
|
|
1715
|
+
|
|
1716
|
+
**`size`** *(default: `"md"`)*:
|
|
1717
|
+
|
|
1718
|
+
`"md"` \| `"lg"`
|
|
1719
|
+
|
|
1720
|
+
**`emphasis`** *(default: `"true"`)*:
|
|
1721
|
+
|
|
1722
|
+
`"true"` \| `"false"`
|
|
1723
|
+
|
|
1724
|
+
**`interactive`** *(default: `"true"`)*:
|
|
1725
|
+
|
|
1726
|
+
`"true"` \| `"false"`
|
|
1727
|
+
|
|
1728
|
+
**`disabled`** *(default: `"false"`)*:
|
|
1729
|
+
|
|
1730
|
+
`"true"` \| `"false"`
|
|
1731
|
+
|
|
1732
|
+
### `CardOptionProps`
|
|
1733
|
+
|
|
1734
|
+
*Extends: Omit<
|
|
1735
|
+
ComponentPropsWithoutRef<"button">,
|
|
1736
|
+
"value" | "children" | "disabled" | "onClick" | "type"
|
|
1737
|
+
>*
|
|
1738
|
+
|
|
1739
|
+
| Prop | Type | Required |
|
|
1740
|
+
|------|------|:--------:|
|
|
1741
|
+
| `value` | `string` | ✓ |
|
|
1742
|
+
| `label` | `string` | |
|
|
1743
|
+
| `children` | `ReactNode` | |
|
|
1744
|
+
| `description` | `string` | |
|
|
1745
|
+
| `disabled` | `boolean` | |
|
|
1746
|
+
| `readOnly` | `boolean` | |
|
|
1747
|
+
| `emphasis` | `boolean` | |
|
|
1748
|
+
| `className` | `string` | |
|
|
1749
|
+
| `indicator` | `CardOptionIndicator` | |
|
|
1750
|
+
| `checked` | `boolean` | |
|
|
1751
|
+
| `onCheckedChange` | `(checked: boolean) => void` | |
|
|
1752
|
+
|
|
1753
|
+
### `CardOptionSize` *(type)*
|
|
1754
|
+
|
|
1755
|
+
```typescript
|
|
1756
|
+
type CardOptionSize = "md" | "lg"
|
|
1757
|
+
```
|
|
1758
|
+
|
|
1759
|
+
### `CardOptionIndicator` *(type)*
|
|
1760
|
+
|
|
1761
|
+
```typescript
|
|
1762
|
+
type CardOptionIndicator = "radio" | "checkbox"
|
|
1763
|
+
```
|
|
1764
|
+
|
|
1765
|
+
### `CardOptionGroupProps` *(type)*
|
|
1766
|
+
|
|
1767
|
+
```typescript
|
|
1768
|
+
type CardOptionGroupProps = | CardOptionGroupSingleProps
|
|
1769
|
+
| CardOptionGroupMultipleProps
|
|
1770
|
+
```
|
|
1771
|
+
|
|
1772
|
+
---
|
|
1773
|
+
|
|
1644
1774
|
## Pagination
|
|
1645
1775
|
|
|
1646
1776
|
**Sub-components:** `Pagination`, `PaginationContent`, `PaginationEllipsis`, `PaginationInfo`, `PaginationItem`, `PaginationLink`, `PaginationNext`, `PaginationPrevious`, `PaginationRoot`
|
|
@@ -1945,6 +2075,40 @@ type RatingStarState = "empty" | "half" | "full"
|
|
|
1945
2075
|
|
|
1946
2076
|
---
|
|
1947
2077
|
|
|
2078
|
+
## RingCounter
|
|
2079
|
+
|
|
2080
|
+
**Sub-components:** `RingCounter`
|
|
2081
|
+
|
|
2082
|
+
**Functions / variant helpers:** `alignToStep`
|
|
2083
|
+
|
|
2084
|
+
**Exported types:** `RingCounterProps`
|
|
2085
|
+
|
|
2086
|
+
### `RingCounterProps`
|
|
2087
|
+
|
|
2088
|
+
*Extends: Omit<
|
|
2089
|
+
ComponentProps<"div">,
|
|
2090
|
+
"children" | "defaultValue" | "onChange"
|
|
2091
|
+
>*
|
|
2092
|
+
|
|
2093
|
+
| Prop | Type | Required |
|
|
2094
|
+
|------|------|:--------:|
|
|
2095
|
+
| `value` | `number \| null` | |
|
|
2096
|
+
| `defaultValue` | `number` | |
|
|
2097
|
+
| `onValueChange` | `(value: number) => void` | |
|
|
2098
|
+
| `min` | `number` | |
|
|
2099
|
+
| `max` | `number` | |
|
|
2100
|
+
| `step` | `number` | |
|
|
2101
|
+
| `formatValue` | `(value: number) => string` | |
|
|
2102
|
+
| `caption` | `ReactNode` | |
|
|
2103
|
+
| `helperText` | `ReactNode` | |
|
|
2104
|
+
| `valueText` | `(value: number) => string` | |
|
|
2105
|
+
| `decrementLabel` | `string` | |
|
|
2106
|
+
| `incrementLabel` | `string` | |
|
|
2107
|
+
| `arc` | `"static" \| "progress"` | |
|
|
2108
|
+
| `disabled` | `boolean` | |
|
|
2109
|
+
|
|
2110
|
+
---
|
|
2111
|
+
|
|
1948
2112
|
## Scroll Area
|
|
1949
2113
|
|
|
1950
2114
|
**Sub-components:** `ScrollArea`, `ScrollBar`
|
|
@@ -2062,6 +2226,47 @@ type SelectSize = "md" | "lg"
|
|
|
2062
2226
|
|
|
2063
2227
|
---
|
|
2064
2228
|
|
|
2229
|
+
## SortableList
|
|
2230
|
+
|
|
2231
|
+
**Sub-components:** `SortableList`
|
|
2232
|
+
|
|
2233
|
+
**Functions / variant helpers:** `moveItem`
|
|
2234
|
+
|
|
2235
|
+
**Exported types:** `SortableId`, `SortableItem`, `SortableListProps`
|
|
2236
|
+
|
|
2237
|
+
### `SortableItem`
|
|
2238
|
+
|
|
2239
|
+
| Prop | Type | Required |
|
|
2240
|
+
|------|------|:--------:|
|
|
2241
|
+
| `id` | `SortableId` | ✓ |
|
|
2242
|
+
| `label` | `string` | ✓ |
|
|
2243
|
+
|
|
2244
|
+
### `SortableListProps`
|
|
2245
|
+
|
|
2246
|
+
*Extends: Omit<ComponentPropsWithoutRef<"ul">, "children" | "onChange">*
|
|
2247
|
+
|
|
2248
|
+
| Prop | Type | Required |
|
|
2249
|
+
|------|------|:--------:|
|
|
2250
|
+
| `items` | `readonly T[]` | ✓ |
|
|
2251
|
+
| `onChange` | `(items: T[]) => void` | ✓ |
|
|
2252
|
+
| `onRemove` | `(item: T) => void` | |
|
|
2253
|
+
| `showRank` | `boolean` | |
|
|
2254
|
+
| `renderLabel` | `(item: T, index: number) => ReactNode` | |
|
|
2255
|
+
| `disabled` | `boolean` | |
|
|
2256
|
+
| `emptyState` | `ReactNode` | |
|
|
2257
|
+
| `dragHandleLabel` | `string` | |
|
|
2258
|
+
| `removeLabel` | `(item: T) => string` | |
|
|
2259
|
+
| `moveUpLabel` | `string` | |
|
|
2260
|
+
| `moveDownLabel` | `string` | |
|
|
2261
|
+
|
|
2262
|
+
### `SortableId` *(type)*
|
|
2263
|
+
|
|
2264
|
+
```typescript
|
|
2265
|
+
type SortableId = string | number
|
|
2266
|
+
```
|
|
2267
|
+
|
|
2268
|
+
---
|
|
2269
|
+
|
|
2065
2270
|
## Switch
|
|
2066
2271
|
|
|
2067
2272
|
**Sub-components:** `Switch`
|
|
@@ -2346,6 +2551,31 @@ type TagSize = NonNullable<VariantProps<typeof tagVariants>["size"]>
|
|
|
2346
2551
|
|
|
2347
2552
|
---
|
|
2348
2553
|
|
|
2554
|
+
## CardTestimonial
|
|
2555
|
+
|
|
2556
|
+
**Sub-components:** `CardTestimonial`
|
|
2557
|
+
|
|
2558
|
+
**Functions / variant helpers:** `cardTestimonialInitials`
|
|
2559
|
+
|
|
2560
|
+
**Exported types:** `CardTestimonialProps`
|
|
2561
|
+
|
|
2562
|
+
### `CardTestimonialProps`
|
|
2563
|
+
|
|
2564
|
+
*Extends: Omit<ComponentProps<"figure">, "children">*
|
|
2565
|
+
|
|
2566
|
+
| Prop | Type | Required |
|
|
2567
|
+
|------|------|:--------:|
|
|
2568
|
+
| `name` | `string` | ✓ |
|
|
2569
|
+
| `quote` | `string` | ✓ |
|
|
2570
|
+
| `jobTitle` | `string` | |
|
|
2571
|
+
| `organization` | `string` | |
|
|
2572
|
+
| `separator` | `string` | |
|
|
2573
|
+
| `avatarSrc` | `string` | |
|
|
2574
|
+
| `avatarFallback` | `string` | |
|
|
2575
|
+
| `footer` | `ReactNode` | |
|
|
2576
|
+
|
|
2577
|
+
---
|
|
2578
|
+
|
|
2349
2579
|
## TextMarker
|
|
2350
2580
|
|
|
2351
2581
|
**Sub-components:** `TEXT_MARKER_COLORS`, `TextMarker`
|