@geomak/ui 5.8.0 → 5.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +105 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +126 -38
- package/dist/index.d.ts +126 -38
- package/dist/index.js +105 -54
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -614,6 +614,10 @@ interface IconButtonProps {
|
|
|
614
614
|
loading?: boolean;
|
|
615
615
|
loadingIcon?: React.ReactNode;
|
|
616
616
|
title?: string;
|
|
617
|
+
/** Extra classes appended to the button. */
|
|
618
|
+
className?: string;
|
|
619
|
+
/** Inline style on the button. */
|
|
620
|
+
style?: React.CSSProperties;
|
|
617
621
|
}
|
|
618
622
|
/**
|
|
619
623
|
* Square icon-only button.
|
|
@@ -622,7 +626,7 @@ interface IconButtonProps {
|
|
|
622
626
|
* <IconButton icon={<Icon.Search />} onClick={doSearch} />
|
|
623
627
|
* <IconButton type="bordered" icon={<Icon.Edit />} />
|
|
624
628
|
*/
|
|
625
|
-
declare function IconButton({ icon, onClick, type, buttonType, disabled, size, loading, loadingIcon, }: IconButtonProps): react_jsx_runtime.JSX.Element;
|
|
629
|
+
declare function IconButton({ icon, onClick, type, buttonType, disabled, size, loading, loadingIcon, className, style, }: IconButtonProps): react_jsx_runtime.JSX.Element;
|
|
626
630
|
|
|
627
631
|
interface ModalProps {
|
|
628
632
|
/**
|
|
@@ -646,6 +650,8 @@ interface ModalProps {
|
|
|
646
650
|
hasFooter?: boolean;
|
|
647
651
|
title?: React__default.ReactNode;
|
|
648
652
|
children?: React__default.ReactNode;
|
|
653
|
+
/** Extra classes merged onto the modal panel. */
|
|
654
|
+
className?: string;
|
|
649
655
|
}
|
|
650
656
|
/**
|
|
651
657
|
* Centred modal dialog powered by Radix Dialog + Framer Motion.
|
|
@@ -659,7 +665,7 @@ interface ModalProps {
|
|
|
659
665
|
* Are you sure you want to delete this item?
|
|
660
666
|
* </Modal>
|
|
661
667
|
*/
|
|
662
|
-
declare function Modal({ width, size, isOpen, onClose, onOk, onCancel, okText, cancelText, hasFooter, title, children, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
668
|
+
declare function Modal({ width, size, isOpen, onClose, onOk, onCancel, okText, cancelText, hasFooter, title, children, className, }: ModalProps): react_jsx_runtime.JSX.Element;
|
|
663
669
|
|
|
664
670
|
interface DrawerProps {
|
|
665
671
|
isOpen?: boolean;
|
|
@@ -674,6 +680,8 @@ interface DrawerProps {
|
|
|
674
680
|
onCancel?: () => void;
|
|
675
681
|
title?: React__default.ReactNode;
|
|
676
682
|
children?: React__default.ReactNode;
|
|
683
|
+
/** Extra classes merged onto the drawer panel. */
|
|
684
|
+
className?: string;
|
|
677
685
|
}
|
|
678
686
|
/**
|
|
679
687
|
* Side-sliding drawer panel powered by Radix Dialog + Framer Motion.
|
|
@@ -687,7 +695,7 @@ interface DrawerProps {
|
|
|
687
695
|
* <FilterForm />
|
|
688
696
|
* </Drawer>
|
|
689
697
|
*/
|
|
690
|
-
declare function Drawer({ isOpen, onClose, hasFooter, placement, width, okText, cancelText, onOk, onCancel, title, children, }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
698
|
+
declare function Drawer({ isOpen, onClose, hasFooter, placement, width, okText, cancelText, onOk, onCancel, title, children, className, }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
691
699
|
|
|
692
700
|
interface TooltipProps {
|
|
693
701
|
children: React__default.ReactNode;
|
|
@@ -699,6 +707,8 @@ interface TooltipProps {
|
|
|
699
707
|
delayDuration?: number;
|
|
700
708
|
/** Offset from trigger in px (default 8) */
|
|
701
709
|
sideOffset?: number;
|
|
710
|
+
/** Extra classes merged onto the tooltip content bubble. */
|
|
711
|
+
className?: string;
|
|
702
712
|
}
|
|
703
713
|
/**
|
|
704
714
|
* Tooltip powered by Radix Tooltip.
|
|
@@ -715,7 +725,7 @@ interface TooltipProps {
|
|
|
715
725
|
* </Tooltip>
|
|
716
726
|
* </TooltipProvider>
|
|
717
727
|
*/
|
|
718
|
-
declare function Tooltip({ children, title, placement, delayDuration, sideOffset, }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
728
|
+
declare function Tooltip({ children, title, placement, delayDuration, sideOffset, className, }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
719
729
|
|
|
720
730
|
declare const TooltipProvider: React__default.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
721
731
|
|
|
@@ -771,6 +781,10 @@ interface TreeProps {
|
|
|
771
781
|
onNodeClick: (payload: TreeItemClickPayload) => void;
|
|
772
782
|
defaultExpandAll?: boolean;
|
|
773
783
|
defaultExpandedKeys?: string[];
|
|
784
|
+
/** Extra classes merged onto the tree root. */
|
|
785
|
+
className?: string;
|
|
786
|
+
/** Inline style on the tree root. */
|
|
787
|
+
style?: React__default.CSSProperties;
|
|
774
788
|
}
|
|
775
789
|
/** ─────────────────── public component ─────────────────── */
|
|
776
790
|
/**
|
|
@@ -787,7 +801,7 @@ interface TreeProps {
|
|
|
787
801
|
* defaultExpandAll
|
|
788
802
|
* />
|
|
789
803
|
*/
|
|
790
|
-
declare function Tree({ nodes, onNodeClick, defaultExpandAll, defaultExpandedKeys, }: TreeProps): react_jsx_runtime.JSX.Element;
|
|
804
|
+
declare function Tree({ nodes, onNodeClick, defaultExpandAll, defaultExpandedKeys, className, style, }: TreeProps): react_jsx_runtime.JSX.Element;
|
|
791
805
|
|
|
792
806
|
/** ─────────────────── types ─────────────────── */
|
|
793
807
|
type NotificationType = 'info' | 'success' | 'warning' | 'danger';
|
|
@@ -865,6 +879,8 @@ interface LoadingSpinnerProps {
|
|
|
865
879
|
* previous state. Ignored when `inline` is true.
|
|
866
880
|
*/
|
|
867
881
|
backdropOpacity?: number;
|
|
882
|
+
/** Extra classes merged onto the spinner root. */
|
|
883
|
+
className?: string;
|
|
868
884
|
}
|
|
869
885
|
/**
|
|
870
886
|
* Enterprise-grade loading indicator.
|
|
@@ -909,7 +925,7 @@ interface LoadingSpinnerProps {
|
|
|
909
925
|
* />
|
|
910
926
|
* ```
|
|
911
927
|
*/
|
|
912
|
-
declare function LoadingSpinner({ prompt, size, inline, spinnerColor, textColor, backdropOpacity, }: LoadingSpinnerProps): react_jsx_runtime.JSX.Element;
|
|
928
|
+
declare function LoadingSpinner({ prompt, size, inline, spinnerColor, textColor, backdropOpacity, className, }: LoadingSpinnerProps): react_jsx_runtime.JSX.Element;
|
|
913
929
|
|
|
914
930
|
interface FadingBaseProps {
|
|
915
931
|
className?: string;
|
|
@@ -959,6 +975,10 @@ interface ListProps {
|
|
|
959
975
|
* `'comfortable'` (default) for typical UI, `'spacious'` for hero rows.
|
|
960
976
|
*/
|
|
961
977
|
density?: 'compact' | 'comfortable' | 'spacious';
|
|
978
|
+
/** Extra classes merged onto the list root. */
|
|
979
|
+
className?: string;
|
|
980
|
+
/** Inline style on the list root. */
|
|
981
|
+
style?: React__default.CSSProperties;
|
|
962
982
|
}
|
|
963
983
|
/**
|
|
964
984
|
* Vertical clickable list with optional avatar / description / trailing
|
|
@@ -998,7 +1018,7 @@ interface ListProps {
|
|
|
998
1018
|
* />
|
|
999
1019
|
* ```
|
|
1000
1020
|
*/
|
|
1001
|
-
declare function List({ items, onItemClick, activeKey, density, }: ListProps): react_jsx_runtime.JSX.Element;
|
|
1021
|
+
declare function List({ items, onItemClick, activeKey, density, className, style, }: ListProps): react_jsx_runtime.JSX.Element;
|
|
1002
1022
|
|
|
1003
1023
|
interface ScalableContainerProps {
|
|
1004
1024
|
/** Resting width. Any CSS length / percent. Default `'100%'`. */
|
|
@@ -1027,6 +1047,8 @@ interface ScalableContainerProps {
|
|
|
1027
1047
|
* Default `'top-right'` — matches the OS-window convention.
|
|
1028
1048
|
*/
|
|
1029
1049
|
togglePosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
1050
|
+
/** Extra classes merged onto the container root. */
|
|
1051
|
+
className?: string;
|
|
1030
1052
|
}
|
|
1031
1053
|
/**
|
|
1032
1054
|
* Container that smoothly expands to fill its parent on click and
|
|
@@ -1053,7 +1075,7 @@ interface ScalableContainerProps {
|
|
|
1053
1075
|
* </ScalableContainer>
|
|
1054
1076
|
* ```
|
|
1055
1077
|
*/
|
|
1056
|
-
declare function ScalableContainer({ width, height, expandedWidth, expandedHeight, expanded, onExpandedChange, children, assignClassOnClick, expandIcon, collapseIcon, togglePosition, }: ScalableContainerProps): react_jsx_runtime.JSX.Element;
|
|
1078
|
+
declare function ScalableContainer({ width, height, expandedWidth, expandedHeight, expanded, onExpandedChange, children, assignClassOnClick, expandIcon, collapseIcon, togglePosition, className, }: ScalableContainerProps): react_jsx_runtime.JSX.Element;
|
|
1057
1079
|
|
|
1058
1080
|
interface GridCardItem {
|
|
1059
1081
|
key: string | number;
|
|
@@ -1071,6 +1093,10 @@ interface GridCardProps {
|
|
|
1071
1093
|
buttonText?: string;
|
|
1072
1094
|
/** Called when the button is clicked. Receives the full item. */
|
|
1073
1095
|
onOpen?: (item: GridCardItem) => void;
|
|
1096
|
+
/** Extra classes merged onto the card root. */
|
|
1097
|
+
className?: string;
|
|
1098
|
+
/** Inline style on the card root. */
|
|
1099
|
+
style?: React__default.CSSProperties;
|
|
1074
1100
|
}
|
|
1075
1101
|
/**
|
|
1076
1102
|
* Application card tile (grid layout).
|
|
@@ -1083,13 +1109,15 @@ interface GridCardProps {
|
|
|
1083
1109
|
* onOpen={({ to }) => navigate(to!)}
|
|
1084
1110
|
* />
|
|
1085
1111
|
*/
|
|
1086
|
-
declare function GridCard({ item, buttonText, onOpen }: GridCardProps): react_jsx_runtime.JSX.Element;
|
|
1112
|
+
declare function GridCard({ item, buttonText, onOpen, className, style }: GridCardProps): react_jsx_runtime.JSX.Element;
|
|
1087
1113
|
|
|
1088
1114
|
interface OpaqueGridCardProps {
|
|
1089
1115
|
item: GridCardItem;
|
|
1090
1116
|
isRight?: boolean;
|
|
1091
1117
|
buttonText?: string;
|
|
1092
1118
|
onOpen?: (item: GridCardItem) => void;
|
|
1119
|
+
/** Extra classes merged onto the card root. */
|
|
1120
|
+
className?: string;
|
|
1093
1121
|
}
|
|
1094
1122
|
/**
|
|
1095
1123
|
* Opaque carousel variant of GridCard (left or right edge of the carousel).
|
|
@@ -1100,29 +1128,33 @@ interface OpaqueGridCardProps {
|
|
|
1100
1128
|
* @example
|
|
1101
1129
|
* <OpaqueGridCard item={sideItem} isRight onOpen={({ to }) => navigate(to!)} />
|
|
1102
1130
|
*/
|
|
1103
|
-
declare function OpaqueGridCard({ item, isRight, buttonText, onOpen, }: OpaqueGridCardProps): react_jsx_runtime.JSX.Element;
|
|
1131
|
+
declare function OpaqueGridCard({ item, isRight, buttonText, onOpen, className, }: OpaqueGridCardProps): react_jsx_runtime.JSX.Element;
|
|
1104
1132
|
|
|
1105
1133
|
interface CatalogGridProps {
|
|
1106
1134
|
items: GridCardItem[];
|
|
1107
1135
|
buttonText?: string;
|
|
1108
1136
|
onOpen?: (item: GridCardItem) => void;
|
|
1137
|
+
/** Extra classes merged onto the grid root. */
|
|
1138
|
+
className?: string;
|
|
1109
1139
|
}
|
|
1110
1140
|
/**
|
|
1111
1141
|
* Wrapping flex grid of `GridCard` tiles.
|
|
1112
1142
|
*/
|
|
1113
|
-
declare function CatalogGrid({ items, buttonText, onOpen }: CatalogGridProps): react_jsx_runtime.JSX.Element;
|
|
1143
|
+
declare function CatalogGrid({ items, buttonText, onOpen, className }: CatalogGridProps): react_jsx_runtime.JSX.Element;
|
|
1114
1144
|
|
|
1115
1145
|
interface CatalogCarouselProps {
|
|
1116
1146
|
items: GridCardItem[];
|
|
1117
1147
|
buttonText?: string;
|
|
1118
1148
|
onOpen?: (item: GridCardItem) => void;
|
|
1149
|
+
/** Extra classes merged onto the carousel root. */
|
|
1150
|
+
className?: string;
|
|
1119
1151
|
}
|
|
1120
1152
|
/**
|
|
1121
1153
|
* Three-card carousel (previous → active (scaled) → next).
|
|
1122
1154
|
*
|
|
1123
1155
|
* Decoupled from ThemeContext — uses CSS `dark:` classes.
|
|
1124
1156
|
*/
|
|
1125
|
-
declare function CatalogCarousel({ items, buttonText, onOpen }: CatalogCarouselProps): react_jsx_runtime.JSX.Element;
|
|
1157
|
+
declare function CatalogCarousel({ items, buttonText, onOpen, className }: CatalogCarouselProps): react_jsx_runtime.JSX.Element;
|
|
1126
1158
|
|
|
1127
1159
|
interface CatalogProps {
|
|
1128
1160
|
/** 'grid' | 'carousel' */
|
|
@@ -1130,6 +1162,8 @@ interface CatalogProps {
|
|
|
1130
1162
|
items?: GridCardItem[];
|
|
1131
1163
|
buttonText?: string;
|
|
1132
1164
|
onOpen?: (item: GridCardItem) => void;
|
|
1165
|
+
/** Extra classes merged onto the catalog root. */
|
|
1166
|
+
className?: string;
|
|
1133
1167
|
}
|
|
1134
1168
|
/**
|
|
1135
1169
|
* Switches between grid and carousel layouts for a list of application tiles.
|
|
@@ -1137,7 +1171,7 @@ interface CatalogProps {
|
|
|
1137
1171
|
* @example
|
|
1138
1172
|
* <Catalog display="carousel" items={apps} onOpen={({ to }) => navigate(to!)} />
|
|
1139
1173
|
*/
|
|
1140
|
-
declare function Catalog({ display, items, buttonText, onOpen }: CatalogProps): react_jsx_runtime.JSX.Element;
|
|
1174
|
+
declare function Catalog({ display, items, buttonText, onOpen, className }: CatalogProps): react_jsx_runtime.JSX.Element;
|
|
1141
1175
|
|
|
1142
1176
|
/**
|
|
1143
1177
|
* A single action in the context menu.
|
|
@@ -1168,6 +1202,8 @@ interface ContextMenuProps {
|
|
|
1168
1202
|
* component / div / image — anything you can right-click on.
|
|
1169
1203
|
*/
|
|
1170
1204
|
children: React__default.ReactNode;
|
|
1205
|
+
/** Extra classes merged onto the menu content panel. */
|
|
1206
|
+
className?: string;
|
|
1171
1207
|
}
|
|
1172
1208
|
/**
|
|
1173
1209
|
* Right-click context menu, built on `@radix-ui/react-context-menu`.
|
|
@@ -1206,7 +1242,7 @@ interface ContextMenuProps {
|
|
|
1206
1242
|
* </ContextMenu>
|
|
1207
1243
|
* ```
|
|
1208
1244
|
*/
|
|
1209
|
-
declare function ContextMenu({ items, children }: ContextMenuProps): react_jsx_runtime.JSX.Element;
|
|
1245
|
+
declare function ContextMenu({ items, children, className }: ContextMenuProps): react_jsx_runtime.JSX.Element;
|
|
1210
1246
|
/** @deprecated The Radix rewrite positions the menu automatically — no coordinates needed. */
|
|
1211
1247
|
interface ContextMenuPosition {
|
|
1212
1248
|
x: number;
|
|
@@ -1376,6 +1412,10 @@ interface TableProps<T extends Record<string, any> = Record<string, any>> {
|
|
|
1376
1412
|
loading?: boolean;
|
|
1377
1413
|
/** Number of skeleton rows to render when `loading` is true. Default `8`. */
|
|
1378
1414
|
loadingRowCount?: number;
|
|
1415
|
+
/** Extra classes merged onto the table wrapper root. */
|
|
1416
|
+
className?: string;
|
|
1417
|
+
/** Inline style on the table wrapper root. */
|
|
1418
|
+
style?: React__default.CSSProperties;
|
|
1379
1419
|
}
|
|
1380
1420
|
/** ─────────────────── main component ─────────────────── */
|
|
1381
1421
|
/**
|
|
@@ -1418,7 +1458,7 @@ interface TableProps<T extends Record<string, any> = Record<string, any>> {
|
|
|
1418
1458
|
* />
|
|
1419
1459
|
* ```
|
|
1420
1460
|
*/
|
|
1421
|
-
declare function Table<T extends Record<string, any> = Record<string, any>>({ columns, rows, getRowKey, pagination, expandRow, hasSearch, footer, header, loading, loadingRowCount, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1461
|
+
declare function Table<T extends Record<string, any> = Record<string, any>>({ columns, rows, getRowKey, pagination, expandRow, hasSearch, footer, header, loading, loadingRowCount, className, style, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1422
1462
|
|
|
1423
1463
|
interface ThemeSwitchProps {
|
|
1424
1464
|
checked: boolean;
|
|
@@ -1429,6 +1469,8 @@ interface ThemeSwitchProps {
|
|
|
1429
1469
|
}) => void;
|
|
1430
1470
|
/** Optional accessible label (defaults to "Toggle dark mode") */
|
|
1431
1471
|
label?: string;
|
|
1472
|
+
/** Extra classes merged onto the root label. */
|
|
1473
|
+
className?: string;
|
|
1432
1474
|
}
|
|
1433
1475
|
/**
|
|
1434
1476
|
* Theme (dark-mode) toggle switch powered by Radix Switch.
|
|
@@ -1440,7 +1482,7 @@ interface ThemeSwitchProps {
|
|
|
1440
1482
|
* @example
|
|
1441
1483
|
* <ThemeSwitch checked={isDark} onChange={({ target }) => setDark(target.checked)} />
|
|
1442
1484
|
*/
|
|
1443
|
-
declare function ThemeSwitch({ checked, onChange, label }: ThemeSwitchProps): react_jsx_runtime.JSX.Element;
|
|
1485
|
+
declare function ThemeSwitch({ checked, onChange, label, className }: ThemeSwitchProps): react_jsx_runtime.JSX.Element;
|
|
1444
1486
|
|
|
1445
1487
|
interface TopBarProps {
|
|
1446
1488
|
/** Brand area — logo, wordmark, or app name. Rendered on the leading edge. */
|
|
@@ -1515,6 +1557,8 @@ interface SidebarProps {
|
|
|
1515
1557
|
collapsedWidth?: number;
|
|
1516
1558
|
/** Slot rendered at the bottom of the sidebar (theme switch, user avatar…) */
|
|
1517
1559
|
footer?: React__default.ReactNode;
|
|
1560
|
+
/** Extra classes merged onto the sidebar root (`<aside>`). */
|
|
1561
|
+
className?: string;
|
|
1518
1562
|
}
|
|
1519
1563
|
/** ─────────────────── main component ─────────────────── */
|
|
1520
1564
|
/**
|
|
@@ -1532,7 +1576,7 @@ interface SidebarProps {
|
|
|
1532
1576
|
* onToggle={() => setOpen(o => !o)}
|
|
1533
1577
|
* />
|
|
1534
1578
|
*/
|
|
1535
|
-
declare function Sidebar({ sections, isExpanded, onToggle, expandedWidth, collapsedWidth, footer, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1579
|
+
declare function Sidebar({ sections, isExpanded, onToggle, expandedWidth, collapsedWidth, footer, className, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1536
1580
|
|
|
1537
1581
|
interface AppShellProps {
|
|
1538
1582
|
/**
|
|
@@ -1801,6 +1845,8 @@ interface ButtonProps {
|
|
|
1801
1845
|
disabled?: boolean;
|
|
1802
1846
|
/** Inline style overrides (width, etc.). Margins/layout belong in the parent. */
|
|
1803
1847
|
style?: React__default.CSSProperties;
|
|
1848
|
+
/** Extra classes appended to the button (override variant/size styles). */
|
|
1849
|
+
className?: string;
|
|
1804
1850
|
/** Leading icon — rendered before content */
|
|
1805
1851
|
icon?: React__default.ReactNode;
|
|
1806
1852
|
/** Click handler. */
|
|
@@ -1822,7 +1868,7 @@ interface ButtonProps {
|
|
|
1822
1868
|
* <Button content="Cancel" variant="secondary" />
|
|
1823
1869
|
* <Button content="Loading…" loading buttonType="submit" />
|
|
1824
1870
|
*/
|
|
1825
|
-
declare function Button({ content, variant, size, buttonType, loading, disabled, style, icon, onClick, }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
1871
|
+
declare function Button({ content, variant, size, buttonType, loading, disabled, style, icon, onClick, className, }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
1826
1872
|
|
|
1827
1873
|
/**
|
|
1828
1874
|
* Shared field foundation for all oxygen-ui inputs.
|
|
@@ -1971,6 +2017,8 @@ interface TextInputProps {
|
|
|
1971
2017
|
errorMessage?: React__default.ReactNode;
|
|
1972
2018
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
1973
2019
|
helperText?: React__default.ReactNode;
|
|
2020
|
+
/** Extra classes merged onto the field root element. */
|
|
2021
|
+
className?: string;
|
|
1974
2022
|
/** Mark the field required (renders an asterisk after the label). */
|
|
1975
2023
|
required?: boolean;
|
|
1976
2024
|
/** Optional leading adornment (icon / prefix). */
|
|
@@ -2001,7 +2049,7 @@ interface TextInputProps {
|
|
|
2001
2049
|
* />
|
|
2002
2050
|
* ```
|
|
2003
2051
|
*/
|
|
2004
|
-
declare function TextInput({ value, onChange, disabled, label, htmlFor, placeholder, name, type, inputStyle, style, layout, size, onBlur, errorMessage, helperText, required, prefix, suffix, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
2052
|
+
declare function TextInput({ value, onChange, disabled, label, htmlFor, placeholder, name, type, inputStyle, style, layout, size, onBlur, errorMessage, helperText, className, required, prefix, suffix, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
2005
2053
|
|
|
2006
2054
|
interface NumberInputProps {
|
|
2007
2055
|
/** Step size for the up/down buttons and native arrow-key handling. Default `1`. */
|
|
@@ -2032,6 +2080,8 @@ interface NumberInputProps {
|
|
|
2032
2080
|
errorMessage?: React__default.ReactNode;
|
|
2033
2081
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2034
2082
|
helperText?: React__default.ReactNode;
|
|
2083
|
+
/** Extra classes merged onto the field root element. */
|
|
2084
|
+
className?: string;
|
|
2035
2085
|
/** Show a required asterisk after the label. */
|
|
2036
2086
|
required?: boolean;
|
|
2037
2087
|
/** Inline style applied to the inner input element. */
|
|
@@ -2083,7 +2133,7 @@ interface NumberInputProps {
|
|
|
2083
2133
|
* <NumberInput label="Tonnage" step={0.25} precision={2} />
|
|
2084
2134
|
* ```
|
|
2085
2135
|
*/
|
|
2086
|
-
declare function NumberInput({ step, value, onChange, label, htmlFor, name, disabled, layout, size, errorMessage, helperText, required, inputStyle, labelStyle, placeholder, style, min, max, readOnly, precision, }: NumberInputProps): react_jsx_runtime.JSX.Element;
|
|
2136
|
+
declare function NumberInput({ step, value, onChange, label, htmlFor, name, disabled, layout, size, errorMessage, helperText, className, required, inputStyle, labelStyle, placeholder, style, min, max, readOnly, precision, }: NumberInputProps): react_jsx_runtime.JSX.Element;
|
|
2087
2137
|
|
|
2088
2138
|
interface PasswordProps {
|
|
2089
2139
|
/** Controlled value. */
|
|
@@ -2114,6 +2164,8 @@ interface PasswordProps {
|
|
|
2114
2164
|
errorMessage?: React__default.ReactNode;
|
|
2115
2165
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2116
2166
|
helperText?: React__default.ReactNode;
|
|
2167
|
+
/** Extra classes merged onto the field root element. */
|
|
2168
|
+
className?: string;
|
|
2117
2169
|
/** Show a required asterisk after the label. */
|
|
2118
2170
|
required?: boolean;
|
|
2119
2171
|
/** Override the "reveal" (password hidden) icon. */
|
|
@@ -2130,7 +2182,7 @@ interface PasswordProps {
|
|
|
2130
2182
|
* <Password label="Password" value={pw} onChange={(e) => setPw(e.target.value)} />
|
|
2131
2183
|
* ```
|
|
2132
2184
|
*/
|
|
2133
|
-
declare function Password({ value, onChange, disabled, label, htmlFor, placeholder, name, inputStyle, style, layout, size, onBlur, errorMessage, helperText, required, showIcon, hideIcon, }: PasswordProps): react_jsx_runtime.JSX.Element;
|
|
2185
|
+
declare function Password({ value, onChange, disabled, label, htmlFor, placeholder, name, inputStyle, style, layout, size, onBlur, errorMessage, helperText, className, required, showIcon, hideIcon, }: PasswordProps): react_jsx_runtime.JSX.Element;
|
|
2134
2186
|
|
|
2135
2187
|
interface SearchInputProps {
|
|
2136
2188
|
/** Controlled value. */
|
|
@@ -2159,6 +2211,8 @@ interface SearchInputProps {
|
|
|
2159
2211
|
icon?: React__default.ReactNode;
|
|
2160
2212
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2161
2213
|
helperText?: React__default.ReactNode;
|
|
2214
|
+
/** Extra classes merged onto the field root element. */
|
|
2215
|
+
className?: string;
|
|
2162
2216
|
}
|
|
2163
2217
|
/**
|
|
2164
2218
|
* Search field with a leading magnifier icon. Uses `type="search"` for the
|
|
@@ -2213,6 +2267,8 @@ interface CheckboxProps {
|
|
|
2213
2267
|
labelPosition?: 'left' | 'right';
|
|
2214
2268
|
/** @deprecated Use `checked`. Kept for API compatibility. */
|
|
2215
2269
|
value?: boolean;
|
|
2270
|
+
/** Extra classes merged onto the component root. */
|
|
2271
|
+
className?: string;
|
|
2216
2272
|
}
|
|
2217
2273
|
/**
|
|
2218
2274
|
* Accessible checkbox powered by Radix Checkbox.
|
|
@@ -2235,7 +2291,7 @@ interface CheckboxProps {
|
|
|
2235
2291
|
* />
|
|
2236
2292
|
*/
|
|
2237
2293
|
declare function Checkbox({ checked, value, // legacy alias
|
|
2238
|
-
onChange, label, description, name, htmlFor, errorMessage, helperText, disabled, required, layout, labelPosition, }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
2294
|
+
onChange, label, description, name, htmlFor, errorMessage, helperText, disabled, required, layout, labelPosition, className, }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
2239
2295
|
|
|
2240
2296
|
interface RadioOption {
|
|
2241
2297
|
/** Stable value submitted / reported on change. */
|
|
@@ -2279,6 +2335,8 @@ interface RadioGroupProps {
|
|
|
2279
2335
|
required?: boolean;
|
|
2280
2336
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2281
2337
|
helperText?: React__default.ReactNode;
|
|
2338
|
+
/** Extra classes merged onto the field root element. */
|
|
2339
|
+
className?: string;
|
|
2282
2340
|
/** Validation message — shown under the control; also flags it red and sets aria-invalid. */
|
|
2283
2341
|
errorMessage?: React__default.ReactNode;
|
|
2284
2342
|
}
|
|
@@ -2305,7 +2363,7 @@ interface RadioGroupProps {
|
|
|
2305
2363
|
* />
|
|
2306
2364
|
* ```
|
|
2307
2365
|
*/
|
|
2308
|
-
declare function RadioGroup({ options, value, defaultValue, onChange, name, label, layout, labelPosition, size, disabled, required, helperText, errorMessage, }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
2366
|
+
declare function RadioGroup({ options, value, defaultValue, onChange, name, label, layout, labelPosition, size, disabled, required, helperText, className, errorMessage, }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
2309
2367
|
|
|
2310
2368
|
interface SwitchInputProps {
|
|
2311
2369
|
/** Controlled on/off state. */
|
|
@@ -2332,6 +2390,8 @@ interface SwitchInputProps {
|
|
|
2332
2390
|
layout?: 'horizontal' | 'vertical';
|
|
2333
2391
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2334
2392
|
helperText?: React__default.ReactNode;
|
|
2393
|
+
/** Extra classes merged onto the field root element. */
|
|
2394
|
+
className?: string;
|
|
2335
2395
|
/** Label rendered to the left of the track, emphasised while off. */
|
|
2336
2396
|
offLabel?: React__default.ReactNode;
|
|
2337
2397
|
/** Label rendered to the right of the track, emphasised while on. */
|
|
@@ -2362,7 +2422,7 @@ interface SwitchInputProps {
|
|
|
2362
2422
|
* <Switch label="Email notifications" checked={on} onChange={({ target }) => setOn(target.checked)} />
|
|
2363
2423
|
* <Switch offLabel="Monthly" onLabel="Yearly" checked={yearly} onChange={...} />
|
|
2364
2424
|
*/
|
|
2365
|
-
declare function Switch({ checked, defaultChecked, onChange, checkedIcon, uncheckedIcon, label, layout, helperText, offLabel, onLabel, name, required, disabled, errorMessage, }: SwitchInputProps): react_jsx_runtime.JSX.Element;
|
|
2425
|
+
declare function Switch({ checked, defaultChecked, onChange, checkedIcon, uncheckedIcon, label, layout, helperText, className, offLabel, onLabel, name, required, disabled, errorMessage, }: SwitchInputProps): react_jsx_runtime.JSX.Element;
|
|
2366
2426
|
|
|
2367
2427
|
interface DropdownItem {
|
|
2368
2428
|
key: string | number;
|
|
@@ -2422,6 +2482,8 @@ interface DropdownProps {
|
|
|
2422
2482
|
placeholder?: string;
|
|
2423
2483
|
/** Size preset. Default `'md'`. */
|
|
2424
2484
|
size?: FieldSize;
|
|
2485
|
+
/** Extra classes merged onto the component root. */
|
|
2486
|
+
className?: string;
|
|
2425
2487
|
}
|
|
2426
2488
|
/**
|
|
2427
2489
|
* Select / multi-select dropdown powered by Radix Popover.
|
|
@@ -2438,7 +2500,7 @@ interface DropdownProps {
|
|
|
2438
2500
|
* // Multi-select
|
|
2439
2501
|
* <Dropdown isMultiselect label="Fuels" items={fuels} value={form.fuels} onChange={handleChange} />
|
|
2440
2502
|
*/
|
|
2441
|
-
declare function Dropdown({ isMultiselect, hasSearch, label, name, value, onChange, disabled, layout, helperText, required, errorMessage, style, htmlFor, items, labelStyle, placeholder, size, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
2503
|
+
declare function Dropdown({ isMultiselect, hasSearch, label, name, value, onChange, disabled, layout, helperText, required, errorMessage, style, htmlFor, items, labelStyle, placeholder, size, className, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
2442
2504
|
|
|
2443
2505
|
interface AutoCompleteItem {
|
|
2444
2506
|
key: string;
|
|
@@ -2493,6 +2555,8 @@ interface AutoCompleteProps {
|
|
|
2493
2555
|
errorMessage?: React__default.ReactNode;
|
|
2494
2556
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2495
2557
|
helperText?: React__default.ReactNode;
|
|
2558
|
+
/** Extra classes merged onto the field root element. */
|
|
2559
|
+
className?: string;
|
|
2496
2560
|
/** Mark required (asterisk after the label). */
|
|
2497
2561
|
required?: boolean;
|
|
2498
2562
|
/** The control id; the field label links to it for accessibility. */
|
|
@@ -2534,7 +2598,7 @@ interface AutoCompleteProps {
|
|
|
2534
2598
|
* />
|
|
2535
2599
|
* ```
|
|
2536
2600
|
*/
|
|
2537
|
-
declare function AutoComplete({ disabled, label, placeholder, name, inputStyle, style, layout, items, onSearch, debounce, onItemClick, emptyText, loadingText, size, icon, errorMessage, helperText, required, htmlFor, }: AutoCompleteProps): react_jsx_runtime.JSX.Element;
|
|
2601
|
+
declare function AutoComplete({ disabled, label, placeholder, name, inputStyle, style, layout, items, onSearch, debounce, onItemClick, emptyText, loadingText, size, icon, errorMessage, helperText, className, required, htmlFor, }: AutoCompleteProps): react_jsx_runtime.JSX.Element;
|
|
2538
2602
|
|
|
2539
2603
|
interface TreeSelectNode {
|
|
2540
2604
|
key: string | number;
|
|
@@ -2570,6 +2634,8 @@ interface TreeSelectProps {
|
|
|
2570
2634
|
layout?: 'horizontal' | 'vertical';
|
|
2571
2635
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2572
2636
|
helperText?: React__default.ReactNode;
|
|
2637
|
+
/** Extra classes merged onto the field root element. */
|
|
2638
|
+
className?: string;
|
|
2573
2639
|
/** Show a required asterisk after the label. */
|
|
2574
2640
|
required?: boolean;
|
|
2575
2641
|
/** Disable interaction and dim the control. */
|
|
@@ -2625,7 +2691,7 @@ interface TreeSelectProps {
|
|
|
2625
2691
|
* />
|
|
2626
2692
|
* ```
|
|
2627
2693
|
*/
|
|
2628
|
-
declare function TreeSelect({ label, name, value, onChange, disabled, layout, helperText, required, errorMessage, style, htmlFor, items, placeholder, parentsSelectable, defaultExpandedKeys, size, }: TreeSelectProps): react_jsx_runtime.JSX.Element;
|
|
2694
|
+
declare function TreeSelect({ label, name, value, onChange, disabled, layout, helperText, className, required, errorMessage, style, htmlFor, items, placeholder, parentsSelectable, defaultExpandedKeys, size, }: TreeSelectProps): react_jsx_runtime.JSX.Element;
|
|
2629
2695
|
|
|
2630
2696
|
interface FileInputProps {
|
|
2631
2697
|
/** Allow selecting more than one file. */
|
|
@@ -2657,6 +2723,8 @@ interface FileInputProps {
|
|
|
2657
2723
|
errorMessage?: React__default.ReactNode;
|
|
2658
2724
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2659
2725
|
helperText?: React__default.ReactNode;
|
|
2726
|
+
/** Extra classes merged onto the field root element. */
|
|
2727
|
+
className?: string;
|
|
2660
2728
|
/** Disable interaction and dim the control. */
|
|
2661
2729
|
disabled?: boolean;
|
|
2662
2730
|
/** Show a required asterisk after the label. */
|
|
@@ -2684,7 +2752,7 @@ interface FileInputProps {
|
|
|
2684
2752
|
* />
|
|
2685
2753
|
* ```
|
|
2686
2754
|
*/
|
|
2687
|
-
declare function FileInput({ allowMultiple, onChange, name, htmlFor, label, accept, prompt, hint, maxSize, errorMessage, helperText, disabled, required, icon, }: FileInputProps): react_jsx_runtime.JSX.Element;
|
|
2755
|
+
declare function FileInput({ allowMultiple, onChange, name, htmlFor, label, accept, prompt, hint, maxSize, errorMessage, helperText, className, disabled, required, icon, }: FileInputProps): react_jsx_runtime.JSX.Element;
|
|
2688
2756
|
|
|
2689
2757
|
interface DatePickerProps {
|
|
2690
2758
|
/** Current date. `null` / `undefined` means "no date selected". */
|
|
@@ -2726,6 +2794,8 @@ interface DatePickerProps {
|
|
|
2726
2794
|
clearable?: boolean;
|
|
2727
2795
|
/** Size preset. Default `'md'`. */
|
|
2728
2796
|
size?: FieldSize;
|
|
2797
|
+
/** Extra classes merged onto the component root. */
|
|
2798
|
+
className?: string;
|
|
2729
2799
|
}
|
|
2730
2800
|
type TemporalPickerProps = DatePickerProps;
|
|
2731
2801
|
/**
|
|
@@ -2763,7 +2833,7 @@ type TemporalPickerProps = DatePickerProps;
|
|
|
2763
2833
|
* />
|
|
2764
2834
|
* ```
|
|
2765
2835
|
*/
|
|
2766
|
-
declare function DatePicker({ value, onChange, label, placeholder, htmlFor, name: _name, layout, helperText, required, disabled, errorMessage, min, max, style, format, weekStartsOn, clearable, size, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
2836
|
+
declare function DatePicker({ value, onChange, label, placeholder, htmlFor, name: _name, layout, helperText, required, disabled, errorMessage, min, max, style, format, weekStartsOn, clearable, size, className, }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
2767
2837
|
|
|
2768
2838
|
interface TextAreaProps {
|
|
2769
2839
|
/** Controlled value. */
|
|
@@ -2805,6 +2875,8 @@ interface TextAreaProps {
|
|
|
2805
2875
|
errorMessage?: React__default.ReactNode;
|
|
2806
2876
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2807
2877
|
helperText?: React__default.ReactNode;
|
|
2878
|
+
/** Extra classes merged onto the field root element. */
|
|
2879
|
+
className?: string;
|
|
2808
2880
|
/** Show a required asterisk after the label. */
|
|
2809
2881
|
required?: boolean;
|
|
2810
2882
|
/** Inline style applied to the control shell. */
|
|
@@ -2828,7 +2900,7 @@ interface TextAreaProps {
|
|
|
2828
2900
|
* <TextArea label="Bio" maxLength={280} showCount value={bio} onChange={onChange} />
|
|
2829
2901
|
* ```
|
|
2830
2902
|
*/
|
|
2831
|
-
declare function TextArea({ value, onChange, onBlur, disabled, label, htmlFor, placeholder, name, layout, size, rows, autoGrow, maxRows, maxLength, showCount, resize, errorMessage, helperText, required, style, inputStyle, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
2903
|
+
declare function TextArea({ value, onChange, onBlur, disabled, label, htmlFor, placeholder, name, layout, size, rows, autoGrow, maxRows, maxLength, showCount, resize, errorMessage, helperText, className, required, style, inputStyle, }: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
2832
2904
|
|
|
2833
2905
|
interface SegmentedOption {
|
|
2834
2906
|
value: string;
|
|
@@ -2857,6 +2929,8 @@ interface SegmentedControlProps {
|
|
|
2857
2929
|
layout?: 'horizontal' | 'vertical';
|
|
2858
2930
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2859
2931
|
helperText?: React__default.ReactNode;
|
|
2932
|
+
/** Extra classes merged onto the field root element. */
|
|
2933
|
+
className?: string;
|
|
2860
2934
|
/** Native form field name (emits a hidden input carrying the value). */
|
|
2861
2935
|
name?: string;
|
|
2862
2936
|
/** Show a required asterisk after the label. */
|
|
@@ -2893,7 +2967,7 @@ interface SegmentedControlProps {
|
|
|
2893
2967
|
* />
|
|
2894
2968
|
* ```
|
|
2895
2969
|
*/
|
|
2896
|
-
declare function SegmentedControl({ options, value, defaultValue, onChange, size, fullWidth, disabled, label, layout, helperText, name, required, errorMessage, 'aria-label': ariaLabel, }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
2970
|
+
declare function SegmentedControl({ options, value, defaultValue, onChange, size, fullWidth, disabled, label, layout, helperText, className, name, required, errorMessage, 'aria-label': ariaLabel, }: SegmentedControlProps): react_jsx_runtime.JSX.Element;
|
|
2897
2971
|
|
|
2898
2972
|
/**
|
|
2899
2973
|
* Slider value. A single number for a one-thumb slider, or a `[min, max]`
|
|
@@ -2937,6 +3011,8 @@ interface SliderProps {
|
|
|
2937
3011
|
errorMessage?: React__default.ReactNode;
|
|
2938
3012
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2939
3013
|
helperText?: React__default.ReactNode;
|
|
3014
|
+
/** Extra classes merged onto the field root element. */
|
|
3015
|
+
className?: string;
|
|
2940
3016
|
/** Show a required asterisk after the label. */
|
|
2941
3017
|
required?: boolean;
|
|
2942
3018
|
/** Native form field name (used for FormData serialisation). */
|
|
@@ -2965,7 +3041,7 @@ interface SliderProps {
|
|
|
2965
3041
|
* />
|
|
2966
3042
|
* ```
|
|
2967
3043
|
*/
|
|
2968
|
-
declare function Slider({ value, defaultValue, onChange, onChangeEnd, min, max, step, label, showValue, formatValue, marks, tooltip, size, disabled, errorMessage, helperText, required, name, htmlFor, }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
3044
|
+
declare function Slider({ value, defaultValue, onChange, onChangeEnd, min, max, step, label, showValue, formatValue, marks, tooltip, size, disabled, errorMessage, helperText, className, required, name, htmlFor, }: SliderProps): react_jsx_runtime.JSX.Element;
|
|
2969
3045
|
|
|
2970
3046
|
interface TagsInputProps {
|
|
2971
3047
|
/** Controlled list of tags. */
|
|
@@ -2992,6 +3068,8 @@ interface TagsInputProps {
|
|
|
2992
3068
|
errorMessage?: React__default.ReactNode;
|
|
2993
3069
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
2994
3070
|
helperText?: React__default.ReactNode;
|
|
3071
|
+
/** Extra classes merged onto the field root element. */
|
|
3072
|
+
className?: string;
|
|
2995
3073
|
/** Show a required asterisk after the label. */
|
|
2996
3074
|
required?: boolean;
|
|
2997
3075
|
/** Maximum number of tags. Further input is ignored once reached. */
|
|
@@ -3018,7 +3096,7 @@ interface TagsInputProps {
|
|
|
3018
3096
|
* validate={(t) => /.+@.+\..+/.test(t) || 'Not a valid email'} />
|
|
3019
3097
|
* ```
|
|
3020
3098
|
*/
|
|
3021
|
-
declare function TagsInput({ value, defaultValue, onChange, label, htmlFor, name, placeholder, layout, size, disabled, errorMessage, helperText, required, maxTags, dedupe, validate, separators, }: TagsInputProps): react_jsx_runtime.JSX.Element;
|
|
3099
|
+
declare function TagsInput({ value, defaultValue, onChange, label, htmlFor, name, placeholder, layout, size, disabled, errorMessage, helperText, className, required, maxTags, dedupe, validate, separators, }: TagsInputProps): react_jsx_runtime.JSX.Element;
|
|
3022
3100
|
|
|
3023
3101
|
interface OtpInputProps {
|
|
3024
3102
|
/** Number of code boxes. Default `6`. */
|
|
@@ -3051,6 +3129,8 @@ interface OtpInputProps {
|
|
|
3051
3129
|
layout?: 'horizontal' | 'vertical';
|
|
3052
3130
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
3053
3131
|
helperText?: React__default.ReactNode;
|
|
3132
|
+
/** Extra classes merged onto the field root element. */
|
|
3133
|
+
className?: string;
|
|
3054
3134
|
/** Render a visual gap after this many boxes (e.g. `3` → `123 456`). */
|
|
3055
3135
|
groupAfter?: number;
|
|
3056
3136
|
}
|
|
@@ -3064,7 +3144,7 @@ interface OtpInputProps {
|
|
|
3064
3144
|
* <OtpInput length={6} value={code} onChange={setCode} onComplete={verify} />
|
|
3065
3145
|
* ```
|
|
3066
3146
|
*/
|
|
3067
|
-
declare function OtpInput({ length, value, onChange, onComplete, label, htmlFor, name, mode, masked, size, disabled, errorMessage, required, layout, helperText, groupAfter, }: OtpInputProps): react_jsx_runtime.JSX.Element;
|
|
3147
|
+
declare function OtpInput({ length, value, onChange, onComplete, label, htmlFor, name, mode, masked, size, disabled, errorMessage, required, layout, helperText, className, groupAfter, }: OtpInputProps): react_jsx_runtime.JSX.Element;
|
|
3068
3148
|
|
|
3069
3149
|
interface RatingProps {
|
|
3070
3150
|
/** Controlled value. */
|
|
@@ -3097,6 +3177,8 @@ interface RatingProps {
|
|
|
3097
3177
|
layout?: 'horizontal' | 'vertical';
|
|
3098
3178
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
3099
3179
|
helperText?: React__default.ReactNode;
|
|
3180
|
+
/** Extra classes merged onto the field root element. */
|
|
3181
|
+
className?: string;
|
|
3100
3182
|
/** Show a required asterisk after the label. */
|
|
3101
3183
|
required?: boolean;
|
|
3102
3184
|
}
|
|
@@ -3115,7 +3197,7 @@ interface RatingProps {
|
|
|
3115
3197
|
* <Rating value={4.5} allowHalf readOnly />
|
|
3116
3198
|
* ```
|
|
3117
3199
|
*/
|
|
3118
|
-
declare function Rating({ value, defaultValue, onChange, count, allowHalf, readOnly, clearable, label, size, disabled, icon, errorMessage, name, layout, helperText, required, }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
3200
|
+
declare function Rating({ value, defaultValue, onChange, count, allowHalf, readOnly, clearable, label, size, disabled, icon, errorMessage, name, layout, helperText, className, required, }: RatingProps): react_jsx_runtime.JSX.Element;
|
|
3119
3201
|
|
|
3120
3202
|
interface TimePickerProps {
|
|
3121
3203
|
/** Value as `"HH:mm"` (24h) or `"HH:mm:ss"`. `null`/`undefined` = unset. */
|
|
@@ -3146,6 +3228,8 @@ interface TimePickerProps {
|
|
|
3146
3228
|
errorMessage?: React__default.ReactNode;
|
|
3147
3229
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
3148
3230
|
helperText?: React__default.ReactNode;
|
|
3231
|
+
/** Extra classes merged onto the field root element. */
|
|
3232
|
+
className?: string;
|
|
3149
3233
|
/** Show a required asterisk after the label. */
|
|
3150
3234
|
required?: boolean;
|
|
3151
3235
|
/** Inline style applied to the control shell. */
|
|
@@ -3161,7 +3245,7 @@ interface TimePickerProps {
|
|
|
3161
3245
|
* <TimePicker label="Departure" value={time} onChange={setTime} minuteStep={15} use12Hours />
|
|
3162
3246
|
* ```
|
|
3163
3247
|
*/
|
|
3164
|
-
declare function TimePicker({ value, onChange, label, htmlFor, name, placeholder, layout, size, use12Hours, withSeconds, minuteStep, disabled, errorMessage, helperText, required, style, }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
3248
|
+
declare function TimePicker({ value, onChange, label, htmlFor, name, placeholder, layout, size, use12Hours, withSeconds, minuteStep, disabled, errorMessage, helperText, className, required, style, }: TimePickerProps): react_jsx_runtime.JSX.Element;
|
|
3165
3249
|
|
|
3166
3250
|
interface DateRange {
|
|
3167
3251
|
start: Date | null;
|
|
@@ -3203,6 +3287,8 @@ interface DateRangePickerProps {
|
|
|
3203
3287
|
errorMessage?: React__default.ReactNode;
|
|
3204
3288
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
3205
3289
|
helperText?: React__default.ReactNode;
|
|
3290
|
+
/** Extra classes merged onto the field root element. */
|
|
3291
|
+
className?: string;
|
|
3206
3292
|
/** Show a required asterisk after the label. */
|
|
3207
3293
|
required?: boolean;
|
|
3208
3294
|
/** Inline style applied to the control shell. */
|
|
@@ -3225,7 +3311,7 @@ interface DateRangePickerProps {
|
|
|
3225
3311
|
* />
|
|
3226
3312
|
* ```
|
|
3227
3313
|
*/
|
|
3228
|
-
declare function DateRangePicker({ value, onChange, label, htmlFor, placeholder, layout, size, min, max, weekStartsOn, presets, format, disabled, errorMessage, helperText, required, style, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
3314
|
+
declare function DateRangePicker({ value, onChange, label, htmlFor, placeholder, layout, size, min, max, weekStartsOn, presets, format, disabled, errorMessage, helperText, className, required, style, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
3229
3315
|
|
|
3230
3316
|
interface ColorPickerProps {
|
|
3231
3317
|
/** Hex string, e.g. `"#0466c8"`. */
|
|
@@ -3252,6 +3338,8 @@ interface ColorPickerProps {
|
|
|
3252
3338
|
errorMessage?: React__default.ReactNode;
|
|
3253
3339
|
/** Contextual help revealed via an info icon + tooltip beside the label. */
|
|
3254
3340
|
helperText?: React__default.ReactNode;
|
|
3341
|
+
/** Extra classes merged onto the field root element. */
|
|
3342
|
+
className?: string;
|
|
3255
3343
|
/** Show a required asterisk after the label. */
|
|
3256
3344
|
required?: boolean;
|
|
3257
3345
|
/** Placeholder shown when the field is empty. */
|
|
@@ -3267,7 +3355,7 @@ interface ColorPickerProps {
|
|
|
3267
3355
|
* <ColorPicker label="Brand colour" value={color} onChange={setColor} />
|
|
3268
3356
|
* ```
|
|
3269
3357
|
*/
|
|
3270
|
-
declare function ColorPicker({ value, onChange, label, htmlFor, name, layout, size, swatches, allowCustom, disabled, errorMessage, helperText, required, placeholder, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
3358
|
+
declare function ColorPicker({ value, onChange, label, htmlFor, name, layout, size, swatches, allowCustom, disabled, errorMessage, helperText, className, required, placeholder, }: ColorPickerProps): react_jsx_runtime.JSX.Element;
|
|
3271
3359
|
|
|
3272
3360
|
/**
|
|
3273
3361
|
* Native, dependency-free validation. A field carries one rule or an array of
|