@cmgfi/clear-ds 1.1.6 → 1.1.8
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +52 -0
- package/dist/index.mjs +2996 -2713
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -245,6 +245,45 @@ export declare type ButtonSize = 'sm' | 'md' | 'lg';
|
|
|
245
245
|
|
|
246
246
|
export declare type ButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger' | 'link';
|
|
247
247
|
|
|
248
|
+
/**
|
|
249
|
+
* Calendar — Clear Design System
|
|
250
|
+
*
|
|
251
|
+
* A standalone, inline calendar for picking a single date. Renders directly in the
|
|
252
|
+
* page (no popover or text input). Three views: day, month, and year — click the
|
|
253
|
+
* month or year in the header to drill up. This is the same calendar surface used
|
|
254
|
+
* inside DatePicker, extracted for use on its own.
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* <Calendar value={date} onChange={setDate} />
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* <Calendar value={date} onChange={setDate} minDate={new Date()} showFooter />
|
|
261
|
+
*/
|
|
262
|
+
export declare const Calendar: ForwardRefExoticComponent<CalendarProps & RefAttributes<HTMLDivElement>>;
|
|
263
|
+
|
|
264
|
+
export declare interface CalendarProps {
|
|
265
|
+
/** Controlled selected date. Pass `null` to clear. */
|
|
266
|
+
value?: Date | null;
|
|
267
|
+
/** Called when the user selects (or, with the footer, clears) a date. */
|
|
268
|
+
onChange?: (date: Date | null) => void;
|
|
269
|
+
/** Dates before this date are disabled and not selectable. */
|
|
270
|
+
minDate?: Date;
|
|
271
|
+
/** Dates after this date are disabled and not selectable. */
|
|
272
|
+
maxDate?: Date;
|
|
273
|
+
/** When true, shows ISO week numbers as the first column. Defaults to false. */
|
|
274
|
+
showWeekNumbers?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Surface style. `'card'` (default) is a white panel with a border and shadow;
|
|
277
|
+
* `'plain'` is transparent with no border or shadow, letting the page show through.
|
|
278
|
+
*/
|
|
279
|
+
variant?: 'card' | 'plain';
|
|
280
|
+
/** Month to display initially when there is no `value`. Defaults to the current month. */
|
|
281
|
+
defaultMonth?: Date;
|
|
282
|
+
id?: string;
|
|
283
|
+
className?: string;
|
|
284
|
+
style?: React.CSSProperties;
|
|
285
|
+
}
|
|
286
|
+
|
|
248
287
|
/**
|
|
249
288
|
* Card — Clear Design System
|
|
250
289
|
*
|
|
@@ -1242,6 +1281,14 @@ export declare interface MultiSelectOption {
|
|
|
1242
1281
|
value: string;
|
|
1243
1282
|
/** When true, this option cannot be toggled. */
|
|
1244
1283
|
disabled?: boolean;
|
|
1284
|
+
/**
|
|
1285
|
+
* When set, the option is rendered as a MiscChip in the dropdown row and the
|
|
1286
|
+
* trigger pill, using the given color. Mirrors the production "tag picker"
|
|
1287
|
+
* pattern where each option carries its own color.
|
|
1288
|
+
*/
|
|
1289
|
+
chip?: {
|
|
1290
|
+
color: MiscChipColor;
|
|
1291
|
+
};
|
|
1245
1292
|
}
|
|
1246
1293
|
|
|
1247
1294
|
export declare interface MultiSelectProps {
|
|
@@ -1277,6 +1324,11 @@ export declare interface MultiSelectProps {
|
|
|
1277
1324
|
showSelectAll?: boolean;
|
|
1278
1325
|
/** Size variant that controls font size and trigger padding. sm = 10px / md = 12px (default) / lg = 14px. */
|
|
1279
1326
|
size?: 'sm' | 'md' | 'lg';
|
|
1327
|
+
/**
|
|
1328
|
+
* Optional content rendered as a sticky bottom row of the dropdown
|
|
1329
|
+
* (e.g., a "Modify Tags" action link). Mirrors PrimeNG's `footerTemplate`.
|
|
1330
|
+
*/
|
|
1331
|
+
footer?: ReactNode;
|
|
1280
1332
|
className?: string;
|
|
1281
1333
|
style?: React.CSSProperties;
|
|
1282
1334
|
}
|