@medway-ui/core 1.45.0 → 1.47.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 +225 -1
- package/COMPONENTS_SUMMARY.md +6 -1
- package/dist/COMPONENTS.md +225 -1
- package/dist/COMPONENTS_SUMMARY.md +6 -1
- 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/Carousel.d.ts +1 -0
- package/dist/components/Carousel.js +1 -1
- package/dist/components/Carousel.mjs +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/Dialog.mjs +1 -1
- 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/components/TextMarker.js +1 -1
- package/dist/components/TextMarker.mjs +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +8 -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.47.0 · Generated 2026-11-18
|
|
5
5
|
|
|
6
6
|
All components require React 18+ and are client components (`"use client"`).
|
|
7
7
|
|
|
@@ -43,6 +43,7 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
43
43
|
- [ConnectorNode](#connectornode)
|
|
44
44
|
- [Dialog](#dialog)
|
|
45
45
|
- [Dismiss](#dismiss)
|
|
46
|
+
- [DistributionBar](#distributionbar)
|
|
46
47
|
- [DropdownMenu](#dropdownmenu)
|
|
47
48
|
- [DatePicker](#datepicker)
|
|
48
49
|
- [IndexLevel](#indexlevel)
|
|
@@ -54,23 +55,27 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
54
55
|
- [LoadingOverlay](#loadingoverlay)
|
|
55
56
|
- [Logo](#logo)
|
|
56
57
|
- [Offcanvas](#offcanvas)
|
|
58
|
+
- [CardOption](#cardoption)
|
|
57
59
|
- [Pagination](#pagination)
|
|
58
60
|
- [Progress](#progress)
|
|
59
61
|
- [ProgressCircle](#progresscircle)
|
|
60
62
|
- [RadioGroup](#radiogroup)
|
|
61
63
|
- [Ranking](#ranking)
|
|
62
64
|
- [Rating](#rating)
|
|
65
|
+
- [RingCounter](#ringcounter)
|
|
63
66
|
- [Scroll Area](#scroll-area)
|
|
64
67
|
- [Select](#select)
|
|
65
68
|
- [SegmentControl](#segmentcontrol)
|
|
66
69
|
- [Separator](#separator)
|
|
67
70
|
- [Sidebar](#sidebar)
|
|
68
71
|
- [Skeleton](#skeleton)
|
|
72
|
+
- [SortableList](#sortablelist)
|
|
69
73
|
- [Switch](#switch)
|
|
70
74
|
- [Switcher](#switcher)
|
|
71
75
|
- [Tabs](#tabs)
|
|
72
76
|
- [Tag](#tag)
|
|
73
77
|
- [TagPicker](#tagpicker)
|
|
78
|
+
- [CardTestimonial](#cardtestimonial)
|
|
74
79
|
- [TextMarker](#textmarker)
|
|
75
80
|
- [Textarea](#textarea)
|
|
76
81
|
- [Tile](#tile)
|
|
@@ -821,6 +826,7 @@ type CardLessonProps = | (ComponentProps<"div"> & {
|
|
|
821
826
|
| `controlsFrom` | `CarouselControlsFrom` | |
|
|
822
827
|
| `edgeBehavior` | `CarouselEdgeBehavior` | |
|
|
823
828
|
| `hideControlsWhenFits` | `boolean` | |
|
|
829
|
+
| `wheelGestures` | `boolean` | |
|
|
824
830
|
| `index` | `number` | |
|
|
825
831
|
| `defaultIndex` | `number` | |
|
|
826
832
|
| `onIndexChange` | `(index: number) => void` | |
|
|
@@ -1209,6 +1215,54 @@ type ConnectorNodeProps = ConnectorNodeButtonProps | ConnectorNodeStaticProps
|
|
|
1209
1215
|
|
|
1210
1216
|
---
|
|
1211
1217
|
|
|
1218
|
+
## DistributionBar
|
|
1219
|
+
|
|
1220
|
+
**Sub-components:** `DistributionBar`
|
|
1221
|
+
|
|
1222
|
+
**Functions / variant helpers:** `distributionBarVariants`, `distributionToneClass`
|
|
1223
|
+
|
|
1224
|
+
**Exported types:** `DistributionBarProps`, `DistributionSegment`, `DistributionTone`
|
|
1225
|
+
|
|
1226
|
+
### `distributionBarVariants` — CVA Variants
|
|
1227
|
+
|
|
1228
|
+
**`size`** *(default: `"sm"`)*:
|
|
1229
|
+
|
|
1230
|
+
`"sm"` \| `"md"`
|
|
1231
|
+
|
|
1232
|
+
### `DistributionSegment`
|
|
1233
|
+
|
|
1234
|
+
| Prop | Type | Required |
|
|
1235
|
+
|------|------|:--------:|
|
|
1236
|
+
| `label` | `string` | ✓ |
|
|
1237
|
+
| `value` | `number` | ✓ |
|
|
1238
|
+
| `tone` | `DistributionTone` | |
|
|
1239
|
+
|
|
1240
|
+
### `DistributionBarProps`
|
|
1241
|
+
|
|
1242
|
+
*Extends: Omit<ComponentProps<"div">, "children">, VariantProps<typeof distributionBarVariants>*
|
|
1243
|
+
|
|
1244
|
+
| Prop | Type | Required |
|
|
1245
|
+
|------|------|:--------:|
|
|
1246
|
+
| `segments` | `readonly DistributionSegment[]` | ✓ |
|
|
1247
|
+
| `label` | `ReactNode` | |
|
|
1248
|
+
| `showLegend` | `boolean` | |
|
|
1249
|
+
| `showPercent` | `boolean` | |
|
|
1250
|
+
|
|
1251
|
+
### `DistributionTone` *(type)*
|
|
1252
|
+
|
|
1253
|
+
```typescript
|
|
1254
|
+
type DistributionTone = | "primary"
|
|
1255
|
+
| "secondary"
|
|
1256
|
+
| "cm"
|
|
1257
|
+
| "go"
|
|
1258
|
+
| "cir"
|
|
1259
|
+
| "ped"
|
|
1260
|
+
| "prev"
|
|
1261
|
+
| "gray"
|
|
1262
|
+
```
|
|
1263
|
+
|
|
1264
|
+
---
|
|
1265
|
+
|
|
1212
1266
|
## DropdownMenu
|
|
1213
1267
|
|
|
1214
1268
|
**Sub-components:** `DropdownMenu`, `DropdownMenuCheckboxItem`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuItem`, `DropdownMenuLabel`, `DropdownMenuPortal`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubContent`, `DropdownMenuSubTrigger`, `DropdownMenuTrigger`
|
|
@@ -1648,6 +1702,76 @@ type OffcanvasSize = number | string
|
|
|
1648
1702
|
|
|
1649
1703
|
---
|
|
1650
1704
|
|
|
1705
|
+
## CardOption
|
|
1706
|
+
|
|
1707
|
+
**Sub-components:** `CardOption`, `CardOptionGroup`
|
|
1708
|
+
|
|
1709
|
+
**Functions / variant helpers:** `cardOptionVariants`
|
|
1710
|
+
|
|
1711
|
+
**Exported types:** `CardOptionGroupProps`, `CardOptionIndicator`, `CardOptionProps`, `CardOptionSize`
|
|
1712
|
+
|
|
1713
|
+
> **Radix UI base:** `RadioGroup` — sub-components forward all Radix UI props.
|
|
1714
|
+
|
|
1715
|
+
### `cardOptionVariants` — CVA Variants
|
|
1716
|
+
|
|
1717
|
+
**`size`** *(default: `"md"`)*:
|
|
1718
|
+
|
|
1719
|
+
`"md"` \| `"lg"`
|
|
1720
|
+
|
|
1721
|
+
**`emphasis`** *(default: `"true"`)*:
|
|
1722
|
+
|
|
1723
|
+
`"true"` \| `"false"`
|
|
1724
|
+
|
|
1725
|
+
**`interactive`** *(default: `"true"`)*:
|
|
1726
|
+
|
|
1727
|
+
`"true"` \| `"false"`
|
|
1728
|
+
|
|
1729
|
+
**`disabled`** *(default: `"false"`)*:
|
|
1730
|
+
|
|
1731
|
+
`"true"` \| `"false"`
|
|
1732
|
+
|
|
1733
|
+
### `CardOptionProps`
|
|
1734
|
+
|
|
1735
|
+
*Extends: Omit<
|
|
1736
|
+
ComponentPropsWithoutRef<"button">,
|
|
1737
|
+
"value" | "children" | "disabled" | "onClick" | "type"
|
|
1738
|
+
>*
|
|
1739
|
+
|
|
1740
|
+
| Prop | Type | Required |
|
|
1741
|
+
|------|------|:--------:|
|
|
1742
|
+
| `value` | `string` | ✓ |
|
|
1743
|
+
| `label` | `string` | |
|
|
1744
|
+
| `children` | `ReactNode` | |
|
|
1745
|
+
| `description` | `string` | |
|
|
1746
|
+
| `disabled` | `boolean` | |
|
|
1747
|
+
| `readOnly` | `boolean` | |
|
|
1748
|
+
| `emphasis` | `boolean` | |
|
|
1749
|
+
| `className` | `string` | |
|
|
1750
|
+
| `indicator` | `CardOptionIndicator` | |
|
|
1751
|
+
| `checked` | `boolean` | |
|
|
1752
|
+
| `onCheckedChange` | `(checked: boolean) => void` | |
|
|
1753
|
+
|
|
1754
|
+
### `CardOptionSize` *(type)*
|
|
1755
|
+
|
|
1756
|
+
```typescript
|
|
1757
|
+
type CardOptionSize = "md" | "lg"
|
|
1758
|
+
```
|
|
1759
|
+
|
|
1760
|
+
### `CardOptionIndicator` *(type)*
|
|
1761
|
+
|
|
1762
|
+
```typescript
|
|
1763
|
+
type CardOptionIndicator = "radio" | "checkbox"
|
|
1764
|
+
```
|
|
1765
|
+
|
|
1766
|
+
### `CardOptionGroupProps` *(type)*
|
|
1767
|
+
|
|
1768
|
+
```typescript
|
|
1769
|
+
type CardOptionGroupProps = | CardOptionGroupSingleProps
|
|
1770
|
+
| CardOptionGroupMultipleProps
|
|
1771
|
+
```
|
|
1772
|
+
|
|
1773
|
+
---
|
|
1774
|
+
|
|
1651
1775
|
## Pagination
|
|
1652
1776
|
|
|
1653
1777
|
**Sub-components:** `Pagination`, `PaginationContent`, `PaginationEllipsis`, `PaginationInfo`, `PaginationItem`, `PaginationLink`, `PaginationNext`, `PaginationPrevious`, `PaginationRoot`
|
|
@@ -1952,6 +2076,40 @@ type RatingStarState = "empty" | "half" | "full"
|
|
|
1952
2076
|
|
|
1953
2077
|
---
|
|
1954
2078
|
|
|
2079
|
+
## RingCounter
|
|
2080
|
+
|
|
2081
|
+
**Sub-components:** `RingCounter`
|
|
2082
|
+
|
|
2083
|
+
**Functions / variant helpers:** `alignToStep`
|
|
2084
|
+
|
|
2085
|
+
**Exported types:** `RingCounterProps`
|
|
2086
|
+
|
|
2087
|
+
### `RingCounterProps`
|
|
2088
|
+
|
|
2089
|
+
*Extends: Omit<
|
|
2090
|
+
ComponentProps<"div">,
|
|
2091
|
+
"children" | "defaultValue" | "onChange"
|
|
2092
|
+
>*
|
|
2093
|
+
|
|
2094
|
+
| Prop | Type | Required |
|
|
2095
|
+
|------|------|:--------:|
|
|
2096
|
+
| `value` | `number \| null` | |
|
|
2097
|
+
| `defaultValue` | `number` | |
|
|
2098
|
+
| `onValueChange` | `(value: number) => void` | |
|
|
2099
|
+
| `min` | `number` | |
|
|
2100
|
+
| `max` | `number` | |
|
|
2101
|
+
| `step` | `number` | |
|
|
2102
|
+
| `formatValue` | `(value: number) => string` | |
|
|
2103
|
+
| `caption` | `ReactNode` | |
|
|
2104
|
+
| `helperText` | `ReactNode` | |
|
|
2105
|
+
| `valueText` | `(value: number) => string` | |
|
|
2106
|
+
| `decrementLabel` | `string` | |
|
|
2107
|
+
| `incrementLabel` | `string` | |
|
|
2108
|
+
| `arc` | `"static" \| "progress"` | |
|
|
2109
|
+
| `disabled` | `boolean` | |
|
|
2110
|
+
|
|
2111
|
+
---
|
|
2112
|
+
|
|
1955
2113
|
## Scroll Area
|
|
1956
2114
|
|
|
1957
2115
|
**Sub-components:** `ScrollArea`, `ScrollBar`
|
|
@@ -2069,6 +2227,47 @@ type SelectSize = "md" | "lg"
|
|
|
2069
2227
|
|
|
2070
2228
|
---
|
|
2071
2229
|
|
|
2230
|
+
## SortableList
|
|
2231
|
+
|
|
2232
|
+
**Sub-components:** `SortableList`
|
|
2233
|
+
|
|
2234
|
+
**Functions / variant helpers:** `moveItem`
|
|
2235
|
+
|
|
2236
|
+
**Exported types:** `SortableId`, `SortableItem`, `SortableListProps`
|
|
2237
|
+
|
|
2238
|
+
### `SortableItem`
|
|
2239
|
+
|
|
2240
|
+
| Prop | Type | Required |
|
|
2241
|
+
|------|------|:--------:|
|
|
2242
|
+
| `id` | `SortableId` | ✓ |
|
|
2243
|
+
| `label` | `string` | ✓ |
|
|
2244
|
+
|
|
2245
|
+
### `SortableListProps`
|
|
2246
|
+
|
|
2247
|
+
*Extends: Omit<ComponentPropsWithoutRef<"ul">, "children" | "onChange">*
|
|
2248
|
+
|
|
2249
|
+
| Prop | Type | Required |
|
|
2250
|
+
|------|------|:--------:|
|
|
2251
|
+
| `items` | `readonly T[]` | ✓ |
|
|
2252
|
+
| `onChange` | `(items: T[]) => void` | ✓ |
|
|
2253
|
+
| `onRemove` | `(item: T) => void` | |
|
|
2254
|
+
| `showRank` | `boolean` | |
|
|
2255
|
+
| `renderLabel` | `(item: T, index: number) => ReactNode` | |
|
|
2256
|
+
| `disabled` | `boolean` | |
|
|
2257
|
+
| `emptyState` | `ReactNode` | |
|
|
2258
|
+
| `dragHandleLabel` | `string` | |
|
|
2259
|
+
| `removeLabel` | `(item: T) => string` | |
|
|
2260
|
+
| `moveUpLabel` | `string` | |
|
|
2261
|
+
| `moveDownLabel` | `string` | |
|
|
2262
|
+
|
|
2263
|
+
### `SortableId` *(type)*
|
|
2264
|
+
|
|
2265
|
+
```typescript
|
|
2266
|
+
type SortableId = string | number
|
|
2267
|
+
```
|
|
2268
|
+
|
|
2269
|
+
---
|
|
2270
|
+
|
|
2072
2271
|
## Switch
|
|
2073
2272
|
|
|
2074
2273
|
**Sub-components:** `Switch`
|
|
@@ -2353,6 +2552,31 @@ type TagSize = NonNullable<VariantProps<typeof tagVariants>["size"]>
|
|
|
2353
2552
|
|
|
2354
2553
|
---
|
|
2355
2554
|
|
|
2555
|
+
## CardTestimonial
|
|
2556
|
+
|
|
2557
|
+
**Sub-components:** `CardTestimonial`
|
|
2558
|
+
|
|
2559
|
+
**Functions / variant helpers:** `cardTestimonialInitials`
|
|
2560
|
+
|
|
2561
|
+
**Exported types:** `CardTestimonialProps`
|
|
2562
|
+
|
|
2563
|
+
### `CardTestimonialProps`
|
|
2564
|
+
|
|
2565
|
+
*Extends: Omit<ComponentProps<"figure">, "children">*
|
|
2566
|
+
|
|
2567
|
+
| Prop | Type | Required |
|
|
2568
|
+
|------|------|:--------:|
|
|
2569
|
+
| `name` | `string` | ✓ |
|
|
2570
|
+
| `quote` | `string` | ✓ |
|
|
2571
|
+
| `jobTitle` | `string` | |
|
|
2572
|
+
| `organization` | `string` | |
|
|
2573
|
+
| `separator` | `string` | |
|
|
2574
|
+
| `avatarSrc` | `string` | |
|
|
2575
|
+
| `avatarFallback` | `string` | |
|
|
2576
|
+
| `footer` | `ReactNode` | |
|
|
2577
|
+
|
|
2578
|
+
---
|
|
2579
|
+
|
|
2356
2580
|
## TextMarker
|
|
2357
2581
|
|
|
2358
2582
|
**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.47.0 · For the full prop/variant reference see `COMPONENTS.md`.
|
|
4
4
|
|
|
5
5
|
## Components
|
|
6
6
|
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
- **ConnectorNode** — status: done, current, upcoming
|
|
28
28
|
- **Dialog** — Radix: Dialog | sub: DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger
|
|
29
29
|
- **Dismiss** — sizes: sm, md
|
|
30
|
+
- **DistributionBar** — sizes: sm, md
|
|
30
31
|
- **DropdownMenu** — Radix: DropdownMenu | sub: DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger
|
|
31
32
|
- **DatePicker** — sizes: lg, md | Radix: Popover | sub: DateRangePicker, DatePickerWrapper, DatePickerLabel, DatePickerText
|
|
32
33
|
- **IndexLevel** — variants: regular, soft, basic | sizes: sm, md | sub: INDEX_LEVEL_LABELS, IndexLevelIcon
|
|
@@ -38,23 +39,27 @@
|
|
|
38
39
|
- **LoadingOverlay** — Radix: Dialog | sub: LoadingOverlayCard, LoadingOverlaySpinner
|
|
39
40
|
- **Logo** — sub: LogoShort, LogoCircular
|
|
40
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
|
|
41
43
|
- **Pagination** — sub: PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot
|
|
42
44
|
- **Progress** — Radix: Progress
|
|
43
45
|
- **ProgressCircle**
|
|
44
46
|
- **RadioGroup** — variants: regular | sizes: sm, md, lg | Radix: RadioGroup | sub: RadioGroupItem
|
|
45
47
|
- **Ranking** — sub: RankingHeader, RankingHeaderCell, RankingBody, RankingItem, RankingNumber, RankingTopicColumn, RankingTopicContent, RankingSpecialty, RankingTopic, RankingSuperFocus, RankingAssigneesColumn, RankingAssigneeLabel, RankingAssigneeGroup, RankingAssigneeItem, RankingPriority, RankingQuestions, RankingPerformance, RankingButton
|
|
46
48
|
- **Rating** — sizes: sm, md, lg | readOnly: true, false | sub: RatingButtonVariants, RatingLabelVariants, RatingStarVariants
|
|
49
|
+
- **RingCounter**
|
|
47
50
|
- **Scroll Area** — Radix: ScrollArea | sub: ScrollArea, ScrollBar
|
|
48
51
|
- **Select** — sizes: lg, md | Radix: Select | sub: SelectContent, SelectGroup, SelectHeader, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectText, SelectTrigger, SelectValue, SelectWrapper
|
|
49
52
|
- **SegmentControl** — sizes: sm, md, lg | Radix: Tabs | sub: SegmentControlContent, SegmentControlList, SegmentControlTrigger
|
|
50
53
|
- **Separator** — Radix: Separator
|
|
51
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
|
|
52
55
|
- **Skeleton**
|
|
56
|
+
- **SortableList**
|
|
53
57
|
- **Switch** — variants: regular | sizes: sm, md, lg | Radix: Switch
|
|
54
58
|
- **Switcher** — sub: SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger
|
|
55
59
|
- **Tabs** — variants: standalone, header | sizes: md, lg | side: left, right | Radix: Tabs | sub: TabsContent, TabsList, TabsTrigger
|
|
56
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
|
|
57
61
|
- **TagPicker** — sub: TAG_PICKER_PALETTE
|
|
62
|
+
- **CardTestimonial**
|
|
58
63
|
- **TextMarker** — color: none | strikethrough: true, false | underline: true, false | Radix: Popover, Toolbar | sub: TEXT_MARKER_COLORS
|
|
59
64
|
- **Textarea** — sizes: lg, md | autoResize: true, false
|
|
60
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.47.0 · Generated 2026-11-18
|
|
5
5
|
|
|
6
6
|
All components require React 18+ and are client components (`"use client"`).
|
|
7
7
|
|
|
@@ -43,6 +43,7 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
43
43
|
- [ConnectorNode](#connectornode)
|
|
44
44
|
- [Dialog](#dialog)
|
|
45
45
|
- [Dismiss](#dismiss)
|
|
46
|
+
- [DistributionBar](#distributionbar)
|
|
46
47
|
- [DropdownMenu](#dropdownmenu)
|
|
47
48
|
- [DatePicker](#datepicker)
|
|
48
49
|
- [IndexLevel](#indexlevel)
|
|
@@ -54,23 +55,27 @@ import type { ButtonProps } from "@medway-ui/core";
|
|
|
54
55
|
- [LoadingOverlay](#loadingoverlay)
|
|
55
56
|
- [Logo](#logo)
|
|
56
57
|
- [Offcanvas](#offcanvas)
|
|
58
|
+
- [CardOption](#cardoption)
|
|
57
59
|
- [Pagination](#pagination)
|
|
58
60
|
- [Progress](#progress)
|
|
59
61
|
- [ProgressCircle](#progresscircle)
|
|
60
62
|
- [RadioGroup](#radiogroup)
|
|
61
63
|
- [Ranking](#ranking)
|
|
62
64
|
- [Rating](#rating)
|
|
65
|
+
- [RingCounter](#ringcounter)
|
|
63
66
|
- [Scroll Area](#scroll-area)
|
|
64
67
|
- [Select](#select)
|
|
65
68
|
- [SegmentControl](#segmentcontrol)
|
|
66
69
|
- [Separator](#separator)
|
|
67
70
|
- [Sidebar](#sidebar)
|
|
68
71
|
- [Skeleton](#skeleton)
|
|
72
|
+
- [SortableList](#sortablelist)
|
|
69
73
|
- [Switch](#switch)
|
|
70
74
|
- [Switcher](#switcher)
|
|
71
75
|
- [Tabs](#tabs)
|
|
72
76
|
- [Tag](#tag)
|
|
73
77
|
- [TagPicker](#tagpicker)
|
|
78
|
+
- [CardTestimonial](#cardtestimonial)
|
|
74
79
|
- [TextMarker](#textmarker)
|
|
75
80
|
- [Textarea](#textarea)
|
|
76
81
|
- [Tile](#tile)
|
|
@@ -821,6 +826,7 @@ type CardLessonProps = | (ComponentProps<"div"> & {
|
|
|
821
826
|
| `controlsFrom` | `CarouselControlsFrom` | |
|
|
822
827
|
| `edgeBehavior` | `CarouselEdgeBehavior` | |
|
|
823
828
|
| `hideControlsWhenFits` | `boolean` | |
|
|
829
|
+
| `wheelGestures` | `boolean` | |
|
|
824
830
|
| `index` | `number` | |
|
|
825
831
|
| `defaultIndex` | `number` | |
|
|
826
832
|
| `onIndexChange` | `(index: number) => void` | |
|
|
@@ -1209,6 +1215,54 @@ type ConnectorNodeProps = ConnectorNodeButtonProps | ConnectorNodeStaticProps
|
|
|
1209
1215
|
|
|
1210
1216
|
---
|
|
1211
1217
|
|
|
1218
|
+
## DistributionBar
|
|
1219
|
+
|
|
1220
|
+
**Sub-components:** `DistributionBar`
|
|
1221
|
+
|
|
1222
|
+
**Functions / variant helpers:** `distributionBarVariants`, `distributionToneClass`
|
|
1223
|
+
|
|
1224
|
+
**Exported types:** `DistributionBarProps`, `DistributionSegment`, `DistributionTone`
|
|
1225
|
+
|
|
1226
|
+
### `distributionBarVariants` — CVA Variants
|
|
1227
|
+
|
|
1228
|
+
**`size`** *(default: `"sm"`)*:
|
|
1229
|
+
|
|
1230
|
+
`"sm"` \| `"md"`
|
|
1231
|
+
|
|
1232
|
+
### `DistributionSegment`
|
|
1233
|
+
|
|
1234
|
+
| Prop | Type | Required |
|
|
1235
|
+
|------|------|:--------:|
|
|
1236
|
+
| `label` | `string` | ✓ |
|
|
1237
|
+
| `value` | `number` | ✓ |
|
|
1238
|
+
| `tone` | `DistributionTone` | |
|
|
1239
|
+
|
|
1240
|
+
### `DistributionBarProps`
|
|
1241
|
+
|
|
1242
|
+
*Extends: Omit<ComponentProps<"div">, "children">, VariantProps<typeof distributionBarVariants>*
|
|
1243
|
+
|
|
1244
|
+
| Prop | Type | Required |
|
|
1245
|
+
|------|------|:--------:|
|
|
1246
|
+
| `segments` | `readonly DistributionSegment[]` | ✓ |
|
|
1247
|
+
| `label` | `ReactNode` | |
|
|
1248
|
+
| `showLegend` | `boolean` | |
|
|
1249
|
+
| `showPercent` | `boolean` | |
|
|
1250
|
+
|
|
1251
|
+
### `DistributionTone` *(type)*
|
|
1252
|
+
|
|
1253
|
+
```typescript
|
|
1254
|
+
type DistributionTone = | "primary"
|
|
1255
|
+
| "secondary"
|
|
1256
|
+
| "cm"
|
|
1257
|
+
| "go"
|
|
1258
|
+
| "cir"
|
|
1259
|
+
| "ped"
|
|
1260
|
+
| "prev"
|
|
1261
|
+
| "gray"
|
|
1262
|
+
```
|
|
1263
|
+
|
|
1264
|
+
---
|
|
1265
|
+
|
|
1212
1266
|
## DropdownMenu
|
|
1213
1267
|
|
|
1214
1268
|
**Sub-components:** `DropdownMenu`, `DropdownMenuCheckboxItem`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuItem`, `DropdownMenuLabel`, `DropdownMenuPortal`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubContent`, `DropdownMenuSubTrigger`, `DropdownMenuTrigger`
|
|
@@ -1648,6 +1702,76 @@ type OffcanvasSize = number | string
|
|
|
1648
1702
|
|
|
1649
1703
|
---
|
|
1650
1704
|
|
|
1705
|
+
## CardOption
|
|
1706
|
+
|
|
1707
|
+
**Sub-components:** `CardOption`, `CardOptionGroup`
|
|
1708
|
+
|
|
1709
|
+
**Functions / variant helpers:** `cardOptionVariants`
|
|
1710
|
+
|
|
1711
|
+
**Exported types:** `CardOptionGroupProps`, `CardOptionIndicator`, `CardOptionProps`, `CardOptionSize`
|
|
1712
|
+
|
|
1713
|
+
> **Radix UI base:** `RadioGroup` — sub-components forward all Radix UI props.
|
|
1714
|
+
|
|
1715
|
+
### `cardOptionVariants` — CVA Variants
|
|
1716
|
+
|
|
1717
|
+
**`size`** *(default: `"md"`)*:
|
|
1718
|
+
|
|
1719
|
+
`"md"` \| `"lg"`
|
|
1720
|
+
|
|
1721
|
+
**`emphasis`** *(default: `"true"`)*:
|
|
1722
|
+
|
|
1723
|
+
`"true"` \| `"false"`
|
|
1724
|
+
|
|
1725
|
+
**`interactive`** *(default: `"true"`)*:
|
|
1726
|
+
|
|
1727
|
+
`"true"` \| `"false"`
|
|
1728
|
+
|
|
1729
|
+
**`disabled`** *(default: `"false"`)*:
|
|
1730
|
+
|
|
1731
|
+
`"true"` \| `"false"`
|
|
1732
|
+
|
|
1733
|
+
### `CardOptionProps`
|
|
1734
|
+
|
|
1735
|
+
*Extends: Omit<
|
|
1736
|
+
ComponentPropsWithoutRef<"button">,
|
|
1737
|
+
"value" | "children" | "disabled" | "onClick" | "type"
|
|
1738
|
+
>*
|
|
1739
|
+
|
|
1740
|
+
| Prop | Type | Required |
|
|
1741
|
+
|------|------|:--------:|
|
|
1742
|
+
| `value` | `string` | ✓ |
|
|
1743
|
+
| `label` | `string` | |
|
|
1744
|
+
| `children` | `ReactNode` | |
|
|
1745
|
+
| `description` | `string` | |
|
|
1746
|
+
| `disabled` | `boolean` | |
|
|
1747
|
+
| `readOnly` | `boolean` | |
|
|
1748
|
+
| `emphasis` | `boolean` | |
|
|
1749
|
+
| `className` | `string` | |
|
|
1750
|
+
| `indicator` | `CardOptionIndicator` | |
|
|
1751
|
+
| `checked` | `boolean` | |
|
|
1752
|
+
| `onCheckedChange` | `(checked: boolean) => void` | |
|
|
1753
|
+
|
|
1754
|
+
### `CardOptionSize` *(type)*
|
|
1755
|
+
|
|
1756
|
+
```typescript
|
|
1757
|
+
type CardOptionSize = "md" | "lg"
|
|
1758
|
+
```
|
|
1759
|
+
|
|
1760
|
+
### `CardOptionIndicator` *(type)*
|
|
1761
|
+
|
|
1762
|
+
```typescript
|
|
1763
|
+
type CardOptionIndicator = "radio" | "checkbox"
|
|
1764
|
+
```
|
|
1765
|
+
|
|
1766
|
+
### `CardOptionGroupProps` *(type)*
|
|
1767
|
+
|
|
1768
|
+
```typescript
|
|
1769
|
+
type CardOptionGroupProps = | CardOptionGroupSingleProps
|
|
1770
|
+
| CardOptionGroupMultipleProps
|
|
1771
|
+
```
|
|
1772
|
+
|
|
1773
|
+
---
|
|
1774
|
+
|
|
1651
1775
|
## Pagination
|
|
1652
1776
|
|
|
1653
1777
|
**Sub-components:** `Pagination`, `PaginationContent`, `PaginationEllipsis`, `PaginationInfo`, `PaginationItem`, `PaginationLink`, `PaginationNext`, `PaginationPrevious`, `PaginationRoot`
|
|
@@ -1952,6 +2076,40 @@ type RatingStarState = "empty" | "half" | "full"
|
|
|
1952
2076
|
|
|
1953
2077
|
---
|
|
1954
2078
|
|
|
2079
|
+
## RingCounter
|
|
2080
|
+
|
|
2081
|
+
**Sub-components:** `RingCounter`
|
|
2082
|
+
|
|
2083
|
+
**Functions / variant helpers:** `alignToStep`
|
|
2084
|
+
|
|
2085
|
+
**Exported types:** `RingCounterProps`
|
|
2086
|
+
|
|
2087
|
+
### `RingCounterProps`
|
|
2088
|
+
|
|
2089
|
+
*Extends: Omit<
|
|
2090
|
+
ComponentProps<"div">,
|
|
2091
|
+
"children" | "defaultValue" | "onChange"
|
|
2092
|
+
>*
|
|
2093
|
+
|
|
2094
|
+
| Prop | Type | Required |
|
|
2095
|
+
|------|------|:--------:|
|
|
2096
|
+
| `value` | `number \| null` | |
|
|
2097
|
+
| `defaultValue` | `number` | |
|
|
2098
|
+
| `onValueChange` | `(value: number) => void` | |
|
|
2099
|
+
| `min` | `number` | |
|
|
2100
|
+
| `max` | `number` | |
|
|
2101
|
+
| `step` | `number` | |
|
|
2102
|
+
| `formatValue` | `(value: number) => string` | |
|
|
2103
|
+
| `caption` | `ReactNode` | |
|
|
2104
|
+
| `helperText` | `ReactNode` | |
|
|
2105
|
+
| `valueText` | `(value: number) => string` | |
|
|
2106
|
+
| `decrementLabel` | `string` | |
|
|
2107
|
+
| `incrementLabel` | `string` | |
|
|
2108
|
+
| `arc` | `"static" \| "progress"` | |
|
|
2109
|
+
| `disabled` | `boolean` | |
|
|
2110
|
+
|
|
2111
|
+
---
|
|
2112
|
+
|
|
1955
2113
|
## Scroll Area
|
|
1956
2114
|
|
|
1957
2115
|
**Sub-components:** `ScrollArea`, `ScrollBar`
|
|
@@ -2069,6 +2227,47 @@ type SelectSize = "md" | "lg"
|
|
|
2069
2227
|
|
|
2070
2228
|
---
|
|
2071
2229
|
|
|
2230
|
+
## SortableList
|
|
2231
|
+
|
|
2232
|
+
**Sub-components:** `SortableList`
|
|
2233
|
+
|
|
2234
|
+
**Functions / variant helpers:** `moveItem`
|
|
2235
|
+
|
|
2236
|
+
**Exported types:** `SortableId`, `SortableItem`, `SortableListProps`
|
|
2237
|
+
|
|
2238
|
+
### `SortableItem`
|
|
2239
|
+
|
|
2240
|
+
| Prop | Type | Required |
|
|
2241
|
+
|------|------|:--------:|
|
|
2242
|
+
| `id` | `SortableId` | ✓ |
|
|
2243
|
+
| `label` | `string` | ✓ |
|
|
2244
|
+
|
|
2245
|
+
### `SortableListProps`
|
|
2246
|
+
|
|
2247
|
+
*Extends: Omit<ComponentPropsWithoutRef<"ul">, "children" | "onChange">*
|
|
2248
|
+
|
|
2249
|
+
| Prop | Type | Required |
|
|
2250
|
+
|------|------|:--------:|
|
|
2251
|
+
| `items` | `readonly T[]` | ✓ |
|
|
2252
|
+
| `onChange` | `(items: T[]) => void` | ✓ |
|
|
2253
|
+
| `onRemove` | `(item: T) => void` | |
|
|
2254
|
+
| `showRank` | `boolean` | |
|
|
2255
|
+
| `renderLabel` | `(item: T, index: number) => ReactNode` | |
|
|
2256
|
+
| `disabled` | `boolean` | |
|
|
2257
|
+
| `emptyState` | `ReactNode` | |
|
|
2258
|
+
| `dragHandleLabel` | `string` | |
|
|
2259
|
+
| `removeLabel` | `(item: T) => string` | |
|
|
2260
|
+
| `moveUpLabel` | `string` | |
|
|
2261
|
+
| `moveDownLabel` | `string` | |
|
|
2262
|
+
|
|
2263
|
+
### `SortableId` *(type)*
|
|
2264
|
+
|
|
2265
|
+
```typescript
|
|
2266
|
+
type SortableId = string | number
|
|
2267
|
+
```
|
|
2268
|
+
|
|
2269
|
+
---
|
|
2270
|
+
|
|
2072
2271
|
## Switch
|
|
2073
2272
|
|
|
2074
2273
|
**Sub-components:** `Switch`
|
|
@@ -2353,6 +2552,31 @@ type TagSize = NonNullable<VariantProps<typeof tagVariants>["size"]>
|
|
|
2353
2552
|
|
|
2354
2553
|
---
|
|
2355
2554
|
|
|
2555
|
+
## CardTestimonial
|
|
2556
|
+
|
|
2557
|
+
**Sub-components:** `CardTestimonial`
|
|
2558
|
+
|
|
2559
|
+
**Functions / variant helpers:** `cardTestimonialInitials`
|
|
2560
|
+
|
|
2561
|
+
**Exported types:** `CardTestimonialProps`
|
|
2562
|
+
|
|
2563
|
+
### `CardTestimonialProps`
|
|
2564
|
+
|
|
2565
|
+
*Extends: Omit<ComponentProps<"figure">, "children">*
|
|
2566
|
+
|
|
2567
|
+
| Prop | Type | Required |
|
|
2568
|
+
|------|------|:--------:|
|
|
2569
|
+
| `name` | `string` | ✓ |
|
|
2570
|
+
| `quote` | `string` | ✓ |
|
|
2571
|
+
| `jobTitle` | `string` | |
|
|
2572
|
+
| `organization` | `string` | |
|
|
2573
|
+
| `separator` | `string` | |
|
|
2574
|
+
| `avatarSrc` | `string` | |
|
|
2575
|
+
| `avatarFallback` | `string` | |
|
|
2576
|
+
| `footer` | `ReactNode` | |
|
|
2577
|
+
|
|
2578
|
+
---
|
|
2579
|
+
|
|
2356
2580
|
## TextMarker
|
|
2357
2581
|
|
|
2358
2582
|
**Sub-components:** `TEXT_MARKER_COLORS`, `TextMarker`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @medway-ui/core — Component Summary
|
|
2
2
|
|
|
3
|
-
> v1.
|
|
3
|
+
> v1.47.0 · For the full prop/variant reference see `COMPONENTS.md`.
|
|
4
4
|
|
|
5
5
|
## Components
|
|
6
6
|
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
- **ConnectorNode** — status: done, current, upcoming
|
|
28
28
|
- **Dialog** — Radix: Dialog | sub: DialogClose, DialogContainer, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger
|
|
29
29
|
- **Dismiss** — sizes: sm, md
|
|
30
|
+
- **DistributionBar** — sizes: sm, md
|
|
30
31
|
- **DropdownMenu** — Radix: DropdownMenu | sub: DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger
|
|
31
32
|
- **DatePicker** — sizes: lg, md | Radix: Popover | sub: DateRangePicker, DatePickerWrapper, DatePickerLabel, DatePickerText
|
|
32
33
|
- **IndexLevel** — variants: regular, soft, basic | sizes: sm, md | sub: INDEX_LEVEL_LABELS, IndexLevelIcon
|
|
@@ -38,23 +39,27 @@
|
|
|
38
39
|
- **LoadingOverlay** — Radix: Dialog | sub: LoadingOverlayCard, LoadingOverlaySpinner
|
|
39
40
|
- **Logo** — sub: LogoShort, LogoCircular
|
|
40
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
|
|
41
43
|
- **Pagination** — sub: PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationRoot
|
|
42
44
|
- **Progress** — Radix: Progress
|
|
43
45
|
- **ProgressCircle**
|
|
44
46
|
- **RadioGroup** — variants: regular | sizes: sm, md, lg | Radix: RadioGroup | sub: RadioGroupItem
|
|
45
47
|
- **Ranking** — sub: RankingHeader, RankingHeaderCell, RankingBody, RankingItem, RankingNumber, RankingTopicColumn, RankingTopicContent, RankingSpecialty, RankingTopic, RankingSuperFocus, RankingAssigneesColumn, RankingAssigneeLabel, RankingAssigneeGroup, RankingAssigneeItem, RankingPriority, RankingQuestions, RankingPerformance, RankingButton
|
|
46
48
|
- **Rating** — sizes: sm, md, lg | readOnly: true, false | sub: RatingButtonVariants, RatingLabelVariants, RatingStarVariants
|
|
49
|
+
- **RingCounter**
|
|
47
50
|
- **Scroll Area** — Radix: ScrollArea | sub: ScrollArea, ScrollBar
|
|
48
51
|
- **Select** — sizes: lg, md | Radix: Select | sub: SelectContent, SelectGroup, SelectHeader, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectText, SelectTrigger, SelectValue, SelectWrapper
|
|
49
52
|
- **SegmentControl** — sizes: sm, md, lg | Radix: Tabs | sub: SegmentControlContent, SegmentControlList, SegmentControlTrigger
|
|
50
53
|
- **Separator** — Radix: Separator
|
|
51
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
|
|
52
55
|
- **Skeleton**
|
|
56
|
+
- **SortableList**
|
|
53
57
|
- **Switch** — variants: regular | sizes: sm, md, lg | Radix: Switch
|
|
54
58
|
- **Switcher** — sub: SwitcherContent, SwitcherFooter, SwitcherGroup, SwitcherItem, SwitcherSeparator, SwitcherTrigger
|
|
55
59
|
- **Tabs** — variants: standalone, header | sizes: md, lg | side: left, right | Radix: Tabs | sub: TabsContent, TabsList, TabsTrigger
|
|
56
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
|
|
57
61
|
- **TagPicker** — sub: TAG_PICKER_PALETTE
|
|
62
|
+
- **CardTestimonial**
|
|
58
63
|
- **TextMarker** — color: none | strikethrough: true, false | underline: true, false | Radix: Popover, Toolbar | sub: TEXT_MARKER_COLORS
|
|
59
64
|
- **Textarea** — sizes: lg, md | autoResize: true, false
|
|
60
65
|
- **Tile** — variants: regular, cm, go, cir, ped, prev | sizes: default, compact | sub: TileDescription, TileIcon, TileTitle
|