@newtonschool/grauity 1.2.3 → 1.3.1
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/common/types.d.ts +1 -0
- package/dist/common/types.d.ts.map +1 -1
- package/dist/css/grauity-icons.scss +418 -354
- package/dist/fonts/grauity-icons.eot +0 -0
- package/dist/fonts/grauity-icons.ttf +0 -0
- package/dist/fonts/grauity-icons.woff +0 -0
- package/dist/fonts/grauity-icons.woff2 +0 -0
- package/dist/index.d.ts +287 -56
- package/dist/index.d.ts.map +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +1 -1
- package/dist/module.mjs.map +1 -1
- package/dist/ui/core/icons/iconTags.d.ts +17 -0
- package/dist/ui/core/icons/iconTags.d.ts.map +1 -1
- package/dist/ui/core/icons/iconTypes.d.ts +18 -2
- package/dist/ui/core/icons/iconTypes.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.d.ts +2 -1
- package/dist/ui/elements/Calendar/CalendarEvent/CalendarEvent.styles.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/CalendarEvent/types.d.ts +1 -4
- package/dist/ui/elements/Calendar/CalendarEvent/types.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/MonthlyCalendar/DateCircle.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/DateCircle.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/GridHeaderRow.d.ts +4 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/GridHeaderRow.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/Loading.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/Loading.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.styles.d.ts +17 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendar.styles.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendarGridItem.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyCalendarGridItem.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyControls.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/MonthlyControls.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/OverflowEventsList.d.ts +6 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/OverflowEventsList.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/OverflowIndicator.d.ts +6 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/OverflowIndicator.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/constants.d.ts +6 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/constants.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/index.d.ts +3 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/index.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/types.d.ts +96 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/types.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/utils.d.ts +4 -0
- package/dist/ui/elements/Calendar/MonthlyCalendar/utils.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/MonthlyCalendar.styles.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/MonthlyCalendar.styles.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/MonthlyCalendarEvent.d.ts +5 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/MonthlyCalendarEvent.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/index.d.ts +3 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/index.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/types.d.ts +51 -0
- package/dist/ui/elements/Calendar/MonthlyCalendarEvent/types.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/Header.d.ts +5 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/Header.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.d.ts +6 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.styles.d.ts +6 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/UnifiedCalendar.styles.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/index.d.ts +3 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/index.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/types.d.ts +84 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/types.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/utils.d.ts +3 -0
- package/dist/ui/elements/Calendar/UnifiedCalendar/utils.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/EventRenderer.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/WeeklyCalendar.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/{WeeklyCalendar.styles.d.ts → WeeklyCalendar/WeeklyCalendar.styles.d.ts} +2 -1
- package/dist/ui/elements/Calendar/WeeklyCalendar/WeeklyCalendar.styles.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/constants.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/index.d.ts +3 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/index.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/types.d.ts +97 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/types.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/utils.d.ts +11 -0
- package/dist/ui/elements/Calendar/WeeklyCalendar/utils.d.ts.map +1 -0
- package/dist/ui/elements/Calendar/types.d.ts +6 -79
- package/dist/ui/elements/Calendar/types.d.ts.map +1 -1
- package/dist/ui/elements/Calendar/utils.d.ts +0 -7
- package/dist/ui/elements/Calendar/utils.d.ts.map +1 -1
- package/dist/ui/elements/Chip/Chip.d.ts.map +1 -1
- package/dist/ui/elements/Chip/Chip.styles.d.ts +1 -0
- package/dist/ui/elements/Chip/Chip.styles.d.ts.map +1 -1
- package/dist/ui/elements/Chip/types.d.ts +23 -0
- package/dist/ui/elements/Chip/types.d.ts.map +1 -1
- package/dist/ui/elements/Overlay/types.d.ts +1 -1
- package/dist/ui/elements/Overlay/types.d.ts.map +1 -1
- package/dist/ui/elements/Placeholder/types.d.ts +1 -1
- package/dist/ui/elements/Placeholder/types.d.ts.map +1 -1
- package/dist/ui/elements/PopOver/PopOver.d.ts.map +1 -1
- package/dist/ui/elements/PopOver/types.d.ts +9 -0
- package/dist/ui/elements/PopOver/types.d.ts.map +1 -1
- package/dist/ui/elements/RangeInput/RangeInput.styles.d.ts +1 -1
- package/dist/ui/elements/RangeInput/RangeInput.styles.d.ts.map +1 -1
- package/dist/ui/elements/RangeInput/types.d.ts +1 -2
- package/dist/ui/elements/RangeInput/types.d.ts.map +1 -1
- package/dist/ui/elements/Tabs/Tabs.d.ts +5 -0
- package/dist/ui/elements/Tabs/Tabs.d.ts.map +1 -0
- package/dist/ui/elements/Tabs/Tabs.styles.d.ts +5 -0
- package/dist/ui/elements/Tabs/Tabs.styles.d.ts.map +1 -0
- package/dist/ui/elements/Tabs/index.d.ts +3 -0
- package/dist/ui/elements/Tabs/index.d.ts.map +1 -0
- package/dist/ui/elements/Tabs/types.d.ts +49 -0
- package/dist/ui/elements/Tabs/types.d.ts.map +1 -0
- package/dist/ui/index.d.ts +3 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ui/elements/Calendar/EventRenderer.d.ts.map +0 -1
- package/dist/ui/elements/Calendar/WeeklyCalendar.d.ts.map +0 -1
- package/dist/ui/elements/Calendar/WeeklyCalendar.styles.d.ts.map +0 -1
- package/dist/ui/elements/Calendar/constants.d.ts.map +0 -1
- /package/dist/ui/elements/Calendar/{EventRenderer.d.ts → WeeklyCalendar/EventRenderer.d.ts} +0 -0
- /package/dist/ui/elements/Calendar/{WeeklyCalendar.d.ts → WeeklyCalendar/WeeklyCalendar.d.ts} +0 -0
- /package/dist/ui/elements/Calendar/{constants.d.ts → WeeklyCalendar/constants.d.ts} +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ export const ICON_TAGS: {
|
|
|
48
48
|
pen: string[];
|
|
49
49
|
"pin-filled": string[];
|
|
50
50
|
pin: string[];
|
|
51
|
+
"currency-rupee-filled": string[];
|
|
52
|
+
"currency-rupee": string[];
|
|
51
53
|
"headphone-filled": string[];
|
|
52
54
|
"headphone-mic-filled": string[];
|
|
53
55
|
"headphone-mic": string[];
|
|
@@ -238,6 +240,8 @@ export const ICON_TAGS: {
|
|
|
238
240
|
"double-check": string[];
|
|
239
241
|
"download-filled": string[];
|
|
240
242
|
download: string[];
|
|
243
|
+
"eda-filled": string[];
|
|
244
|
+
eda: string[];
|
|
241
245
|
"email-alt-filled": string[];
|
|
242
246
|
"email-alt": string[];
|
|
243
247
|
"email-filled": string[];
|
|
@@ -284,6 +288,8 @@ export const ICON_TAGS: {
|
|
|
284
288
|
load: string[];
|
|
285
289
|
"loudspeaker-filled": string[];
|
|
286
290
|
loudspeaker: string[];
|
|
291
|
+
"machine-learning-filled": string[];
|
|
292
|
+
"machine-learning": string[];
|
|
287
293
|
"map-pin-alt1-filled": string[];
|
|
288
294
|
"map-pin-alt1": string[];
|
|
289
295
|
"map-pin-alt2-filled": string[];
|
|
@@ -318,8 +324,12 @@ export const ICON_TAGS: {
|
|
|
318
324
|
"plus-square-filled": string[];
|
|
319
325
|
"plus-square": string[];
|
|
320
326
|
plus: string[];
|
|
327
|
+
"power-bi-filled": string[];
|
|
328
|
+
"power-bi": string[];
|
|
321
329
|
"printer-filled": string[];
|
|
322
330
|
printer: string[];
|
|
331
|
+
"python-filled": string[];
|
|
332
|
+
python: string[];
|
|
323
333
|
"quiz-filled": string[];
|
|
324
334
|
quiz: string[];
|
|
325
335
|
"refresh-filled": string[];
|
|
@@ -328,6 +338,8 @@ export const ICON_TAGS: {
|
|
|
328
338
|
remove: string[];
|
|
329
339
|
"reply-filled": string[];
|
|
330
340
|
reply: string[];
|
|
341
|
+
"retail-filled": string[];
|
|
342
|
+
retail: string[];
|
|
331
343
|
"screenshare-start-filled": string[];
|
|
332
344
|
"screenshare-start": string[];
|
|
333
345
|
"screenshare-stop-filled": string[];
|
|
@@ -346,6 +358,8 @@ export const ICON_TAGS: {
|
|
|
346
358
|
"shield-x-filled": string[];
|
|
347
359
|
"shield-x": string[];
|
|
348
360
|
shield: string[];
|
|
361
|
+
"shop-filled": string[];
|
|
362
|
+
shop: string[];
|
|
349
363
|
"sidebar-left-filled": string[];
|
|
350
364
|
"sidebar-left": string[];
|
|
351
365
|
"sidebar-right-filled": string[];
|
|
@@ -368,6 +382,8 @@ export const ICON_TAGS: {
|
|
|
368
382
|
"thumbs-up": string[];
|
|
369
383
|
"thunder-filled": string[];
|
|
370
384
|
thunder: string[];
|
|
385
|
+
"truck-filled": string[];
|
|
386
|
+
truck: string[];
|
|
371
387
|
"upload-filled": string[];
|
|
372
388
|
upload: string[];
|
|
373
389
|
"wrench-filled": string[];
|
|
@@ -404,6 +420,7 @@ export const TAG_ICONS: {
|
|
|
404
420
|
Code: string[];
|
|
405
421
|
Device: string[];
|
|
406
422
|
Docs: string[];
|
|
423
|
+
Finance: string[];
|
|
407
424
|
Media: string[];
|
|
408
425
|
Misc: string[];
|
|
409
426
|
Reward: string[];
|
|
@@ -411,7 +428,7 @@ export const TAG_ICONS: {
|
|
|
411
428
|
Time: string[];
|
|
412
429
|
User: string[];
|
|
413
430
|
};
|
|
414
|
-
type grauityIconName = 'exclamation-circle-filled' | 'exclamation-circle' | 'exclamation-triangle-filled' | 'exclamation-triangle' | 'info-circle-filled' | 'info-circle' | 'question-circle-filled' | 'question-circle' | 'code-alt-filled' | 'code-alt' | 'code-filled' | 'code' | 'project-filled' | 'project' | 'terminal-filled' | 'terminal' | 'desktop-filled' | 'desktop' | 'gamepad-filled' | 'gamepad' | 'lamp-filled' | 'lamp' | 'laptop-filled' | 'laptop' | 'mobile-filled' | 'mobile' | 'archive-filled' | 'archive' | 'bookmark-filled' | 'bookmark' | 'file-alt-filled' | 'file-alt' | 'file-filled' | 'file-lightning-filled' | 'file-lightning' | 'file' | 'folder-filled' | 'folder-open-filled' | 'folder-open' | 'folder' | 'label-filled' | 'label' | 'note-filled' | 'note' | 'pen-filled' | 'pen' | 'pin-filled' | 'pin' | 'headphone-filled' | 'headphone-mic-filled' | 'headphone-mic' | 'headphone' | 'mic-filled' | 'mic' | 'micmute-filled' | 'micmute' | 'pause-circle-filled' | 'pause-circle' | 'pause-filled' | 'pause' | 'play-circle-filled' | 'play-circle' | 'play-filled' | 'play-rectangle-filled' | 'play-rectangle' | 'play' | 'video-filled' | 'video-off-filled' | 'video-off' | 'video' | 'volume-maximum-filled' | 'volume-maximum' | 'volume-minimum-filled' | 'volume-minimum' | 'volume-mute-filled' | 'volume-mute' | 'comment-filled' | 'comment' | 'connector-filled' | 'connector' | 'doubt-alt2-filled' | 'doubt-alt2' | 'doubt-filled' | 'doubt-message-filled' | 'doubt-message' | 'doubt' | 'hearing-filled' | 'hearing' | 'heart-filled' | 'heart' | 'hearthands-filled' | 'hearthands' | 'lock-filled' | 'lock-open-filled' | 'lock-open' | 'lock' | 'message-filled' | 'message-info-filled' | 'message-info' | 'message' | 'milestone-filled' | 'milestone' | 'scholar-hat-filled' | 'scholar-hat' | 'smiley-bad-filled' | 'smiley-bad' | 'smiley-filled' | 'smiley-happy-filled' | 'smiley-happy' | 'smiley-neutral-filled' | 'smiley-neutral' | 'smiley-sad-filled' | 'smiley-sad' | 'smiley-very-bad-filled' | 'smiley-very-bad' | 'smiley-very-happy-filled' | 'smiley-very-happy' | 'smiley' | 'spark-filled' | 'spark' | 'sparkle-filled' | 'sparkle' | 'target-filled' | 'target' | 'check-badge-filled' | 'check-badge' | 'crown-filled' | 'crown' | 'flag-filled' | 'flag' | 'gift-filled' | 'gift' | 'leaderboard-filled' | 'leaderboard' | 'medal-filled' | 'medal' | 'star-filled' | 'star' | 'trophy-filled' | 'trophy' | 'arrow-double-filled' | 'arrow-double' | 'arrow-down-filled' | 'arrow-down-left-filled' | 'arrow-down-left' | 'arrow-down-right-filled' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-filled' | 'arrow-left' | 'arrow-right-filled' | 'arrow-right' | 'arrow-up-filled' | 'arrow-up-left-filled' | 'arrow-up-left' | 'arrow-up-right-filled' | 'arrow-up-right' | 'arrow-up' | 'ban-filled' | 'ban' | 'bin-filled' | 'bin' | 'book-alt-filled' | 'book-alt' | 'book-alt2-filled' | 'book-alt2' | 'book-alt3-filled' | 'book-alt3' | 'book-filled' | 'book' | 'briefcase-alt2-filled' | 'briefcase-alt2' | 'briefcase-filled' | 'briefcase' | 'broadcast-filled' | 'broadcast' | 'bug-filled' | 'bug' | 'bulb-filled' | 'bulb' | 'call-end-filled' | 'call-end' | 'call-start-filled' | 'call-start' | 'camera-filled' | 'camera' | 'caret-double-filled' | 'caret-double' | 'caret-down-filled' | 'caret-down' | 'caret-left-filled' | 'caret-left' | 'caret-right-filled' | 'caret-right' | 'caret-up-filled' | 'caret-up' | 'check-circle-filled' | 'check-circle' | 'check-filled' | 'check-square-filled' | 'check-square' | 'check' | 'chevron-down-double-filled' | 'chevron-down-double' | 'chevron-down-filled' | 'chevron-down' | 'chevron-left-double-filled' | 'chevron-left-double' | 'chevron-left-filled' | 'chevron-left' | 'chevron-right-double-filled' | 'chevron-right-double' | 'chevron-right-filled' | 'chevron-right' | 'chevron-up-double-filled' | 'chevron-up-double' | 'chevron-up-filled' | 'chevron-up' | 'circle-filled' | 'circle' | 'clock-alarm-filled' | 'clock-alarm' | 'close-circle-filled' | 'close-circle' | 'close-filled' | 'close-square-filled' | 'close-square' | 'close' | 'compass-filled' | 'compass' | 'database-filled' | 'database' | 'diamond-filled' | 'diamond' | 'double-check-filled' | 'double-check' | 'download-filled' | 'download' | 'email-alt-filled' | 'email-alt' | 'email-filled' | 'email' | 'filter-filled' | 'filter' | 'floppy-filled' | 'floppy' | 'forward-filled' | 'forward' | 'gear-filled' | 'gear' | 'git-commit-filled' | 'git-commit' | 'globe-filled' | 'globe' | 'grip-hortizontal-filled' | 'grip-hortizontal' | 'grip-vertical-filled' | 'grip-vertical' | 'growth-down-filled' | 'growth-down' | 'growth-up-filled' | 'growth-up' | 'help-filled' | 'help' | 'hold-filled' | 'hold' | 'home-filled' | 'home' | 'hourglass-filled' | 'hourglass' | 'kebab-horizontal-filled' | 'kebab-horizontal' | 'kebab-vertical-filled' | 'kebab-vertical' | 'link-filled' | 'link' | 'list-checked-filled' | 'list-checked' | 'list-filled' | 'list' | 'load-filled' | 'load' | 'loudspeaker-filled' | 'loudspeaker' | 'map-pin-alt1-filled' | 'map-pin-alt1' | 'map-pin-alt2-filled' | 'map-pin-alt2' | 'map-pin-filled' | 'map-pin' | 'maximize-filled' | 'maximize' | 'menu-alt2-filled' | 'menu-alt2' | 'menu-filled' | 'menu-grid-filled' | 'menu-grid' | 'menu' | 'microchip-filled' | 'microchip' | 'minimize-filled' | 'minimize' | 'minus-circle-filled' | 'minus-circle' | 'minus-square-filled' | 'minus-square' | 'moon-filled' | 'moon' | 'new-tab-filled' | 'new-tab' | 'paper-clip-filled' | 'paper-clip' | 'plus-circle-filled' | 'plus-circle' | 'plus-filled' | 'plus-square-filled' | 'plus-square' | 'plus' | 'printer-filled' | 'printer' | 'quiz-filled' | 'quiz' | 'refresh-filled' | 'refresh' | 'remove-filled' | 'remove' | 'reply-filled' | 'reply' | 'screenshare-start-filled' | 'screenshare-start' | 'screenshare-stop-filled' | 'screenshare-stop' | 'search-filled' | 'search' | 'share-filled' | 'share' | 'shield-alert-filled' | 'shield-alert' | 'shield-check-filled' | 'shield-check' | 'shield-filled' | 'shield-lock-filled' | 'shield-lock' | 'shield-x-filled' | 'shield-x' | 'shield' | 'sidebar-left-filled' | 'sidebar-left' | 'sidebar-right-filled' | 'sidebar-right' | 'signin-filled' | 'signin' | 'signout-filled' | 'signout' | 'slider-filled' | 'slider' | 'square-filled' | 'square' | 'sticky-note-filled' | 'sticky-note' | 'sun-filled' | 'sun' | 'thumbs-down-filled' | 'thumbs-down' | 'thumbs-up-filled' | 'thumbs-up' | 'thunder-filled' | 'thunder' | 'upload-filled' | 'upload' | 'wrench-filled' | 'wrench' | 'bell-filled' | 'bell' | 'calender-check-filled' | 'calender-check' | 'calender-filled' | 'calender-plus-filled' | 'calender-plus' | 'calender' | 'clock-filled' | 'clock' | 'rewatch-filled' | 'rewatch' | 'stopwatch-filled' | 'stopwatch' | 'bot-filled' | 'bot' | 'person-check-filled' | 'person-check' | 'person-filled' | 'person-plus-filled' | 'person-plus' | 'person' | 'user-speak-filled' | 'user-speak' | 'users-filled' | 'users';
|
|
431
|
+
type grauityIconName = 'exclamation-circle-filled' | 'exclamation-circle' | 'exclamation-triangle-filled' | 'exclamation-triangle' | 'info-circle-filled' | 'info-circle' | 'question-circle-filled' | 'question-circle' | 'code-alt-filled' | 'code-alt' | 'code-filled' | 'code' | 'project-filled' | 'project' | 'terminal-filled' | 'terminal' | 'desktop-filled' | 'desktop' | 'gamepad-filled' | 'gamepad' | 'lamp-filled' | 'lamp' | 'laptop-filled' | 'laptop' | 'mobile-filled' | 'mobile' | 'archive-filled' | 'archive' | 'bookmark-filled' | 'bookmark' | 'file-alt-filled' | 'file-alt' | 'file-filled' | 'file-lightning-filled' | 'file-lightning' | 'file' | 'folder-filled' | 'folder-open-filled' | 'folder-open' | 'folder' | 'label-filled' | 'label' | 'note-filled' | 'note' | 'pen-filled' | 'pen' | 'pin-filled' | 'pin' | 'currency-rupee-filled' | 'currency-rupee' | 'headphone-filled' | 'headphone-mic-filled' | 'headphone-mic' | 'headphone' | 'mic-filled' | 'mic' | 'micmute-filled' | 'micmute' | 'pause-circle-filled' | 'pause-circle' | 'pause-filled' | 'pause' | 'play-circle-filled' | 'play-circle' | 'play-filled' | 'play-rectangle-filled' | 'play-rectangle' | 'play' | 'video-filled' | 'video-off-filled' | 'video-off' | 'video' | 'volume-maximum-filled' | 'volume-maximum' | 'volume-minimum-filled' | 'volume-minimum' | 'volume-mute-filled' | 'volume-mute' | 'comment-filled' | 'comment' | 'connector-filled' | 'connector' | 'doubt-alt2-filled' | 'doubt-alt2' | 'doubt-filled' | 'doubt-message-filled' | 'doubt-message' | 'doubt' | 'hearing-filled' | 'hearing' | 'heart-filled' | 'heart' | 'hearthands-filled' | 'hearthands' | 'lock-filled' | 'lock-open-filled' | 'lock-open' | 'lock' | 'message-filled' | 'message-info-filled' | 'message-info' | 'message' | 'milestone-filled' | 'milestone' | 'scholar-hat-filled' | 'scholar-hat' | 'smiley-bad-filled' | 'smiley-bad' | 'smiley-filled' | 'smiley-happy-filled' | 'smiley-happy' | 'smiley-neutral-filled' | 'smiley-neutral' | 'smiley-sad-filled' | 'smiley-sad' | 'smiley-very-bad-filled' | 'smiley-very-bad' | 'smiley-very-happy-filled' | 'smiley-very-happy' | 'smiley' | 'spark-filled' | 'spark' | 'sparkle-filled' | 'sparkle' | 'target-filled' | 'target' | 'check-badge-filled' | 'check-badge' | 'crown-filled' | 'crown' | 'flag-filled' | 'flag' | 'gift-filled' | 'gift' | 'leaderboard-filled' | 'leaderboard' | 'medal-filled' | 'medal' | 'star-filled' | 'star' | 'trophy-filled' | 'trophy' | 'arrow-double-filled' | 'arrow-double' | 'arrow-down-filled' | 'arrow-down-left-filled' | 'arrow-down-left' | 'arrow-down-right-filled' | 'arrow-down-right' | 'arrow-down' | 'arrow-left-filled' | 'arrow-left' | 'arrow-right-filled' | 'arrow-right' | 'arrow-up-filled' | 'arrow-up-left-filled' | 'arrow-up-left' | 'arrow-up-right-filled' | 'arrow-up-right' | 'arrow-up' | 'ban-filled' | 'ban' | 'bin-filled' | 'bin' | 'book-alt-filled' | 'book-alt' | 'book-alt2-filled' | 'book-alt2' | 'book-alt3-filled' | 'book-alt3' | 'book-filled' | 'book' | 'briefcase-alt2-filled' | 'briefcase-alt2' | 'briefcase-filled' | 'briefcase' | 'broadcast-filled' | 'broadcast' | 'bug-filled' | 'bug' | 'bulb-filled' | 'bulb' | 'call-end-filled' | 'call-end' | 'call-start-filled' | 'call-start' | 'camera-filled' | 'camera' | 'caret-double-filled' | 'caret-double' | 'caret-down-filled' | 'caret-down' | 'caret-left-filled' | 'caret-left' | 'caret-right-filled' | 'caret-right' | 'caret-up-filled' | 'caret-up' | 'check-circle-filled' | 'check-circle' | 'check-filled' | 'check-square-filled' | 'check-square' | 'check' | 'chevron-down-double-filled' | 'chevron-down-double' | 'chevron-down-filled' | 'chevron-down' | 'chevron-left-double-filled' | 'chevron-left-double' | 'chevron-left-filled' | 'chevron-left' | 'chevron-right-double-filled' | 'chevron-right-double' | 'chevron-right-filled' | 'chevron-right' | 'chevron-up-double-filled' | 'chevron-up-double' | 'chevron-up-filled' | 'chevron-up' | 'circle-filled' | 'circle' | 'clock-alarm-filled' | 'clock-alarm' | 'close-circle-filled' | 'close-circle' | 'close-filled' | 'close-square-filled' | 'close-square' | 'close' | 'compass-filled' | 'compass' | 'database-filled' | 'database' | 'diamond-filled' | 'diamond' | 'double-check-filled' | 'double-check' | 'download-filled' | 'download' | 'eda-filled' | 'eda' | 'email-alt-filled' | 'email-alt' | 'email-filled' | 'email' | 'filter-filled' | 'filter' | 'floppy-filled' | 'floppy' | 'forward-filled' | 'forward' | 'gear-filled' | 'gear' | 'git-commit-filled' | 'git-commit' | 'globe-filled' | 'globe' | 'grip-hortizontal-filled' | 'grip-hortizontal' | 'grip-vertical-filled' | 'grip-vertical' | 'growth-down-filled' | 'growth-down' | 'growth-up-filled' | 'growth-up' | 'help-filled' | 'help' | 'hold-filled' | 'hold' | 'home-filled' | 'home' | 'hourglass-filled' | 'hourglass' | 'kebab-horizontal-filled' | 'kebab-horizontal' | 'kebab-vertical-filled' | 'kebab-vertical' | 'link-filled' | 'link' | 'list-checked-filled' | 'list-checked' | 'list-filled' | 'list' | 'load-filled' | 'load' | 'loudspeaker-filled' | 'loudspeaker' | 'machine-learning-filled' | 'machine-learning' | 'map-pin-alt1-filled' | 'map-pin-alt1' | 'map-pin-alt2-filled' | 'map-pin-alt2' | 'map-pin-filled' | 'map-pin' | 'maximize-filled' | 'maximize' | 'menu-alt2-filled' | 'menu-alt2' | 'menu-filled' | 'menu-grid-filled' | 'menu-grid' | 'menu' | 'microchip-filled' | 'microchip' | 'minimize-filled' | 'minimize' | 'minus-circle-filled' | 'minus-circle' | 'minus-square-filled' | 'minus-square' | 'moon-filled' | 'moon' | 'new-tab-filled' | 'new-tab' | 'paper-clip-filled' | 'paper-clip' | 'plus-circle-filled' | 'plus-circle' | 'plus-filled' | 'plus-square-filled' | 'plus-square' | 'plus' | 'power-bi-filled' | 'power-bi' | 'printer-filled' | 'printer' | 'python-filled' | 'python' | 'quiz-filled' | 'quiz' | 'refresh-filled' | 'refresh' | 'remove-filled' | 'remove' | 'reply-filled' | 'reply' | 'retail-filled' | 'retail' | 'screenshare-start-filled' | 'screenshare-start' | 'screenshare-stop-filled' | 'screenshare-stop' | 'search-filled' | 'search' | 'share-filled' | 'share' | 'shield-alert-filled' | 'shield-alert' | 'shield-check-filled' | 'shield-check' | 'shield-filled' | 'shield-lock-filled' | 'shield-lock' | 'shield-x-filled' | 'shield-x' | 'shield' | 'shop-filled' | 'shop' | 'sidebar-left-filled' | 'sidebar-left' | 'sidebar-right-filled' | 'sidebar-right' | 'signin-filled' | 'signin' | 'signout-filled' | 'signout' | 'slider-filled' | 'slider' | 'square-filled' | 'square' | 'sticky-note-filled' | 'sticky-note' | 'sun-filled' | 'sun' | 'thumbs-down-filled' | 'thumbs-down' | 'thumbs-up-filled' | 'thumbs-up' | 'thunder-filled' | 'thunder' | 'truck-filled' | 'truck' | 'upload-filled' | 'upload' | 'wrench-filled' | 'wrench' | 'bell-filled' | 'bell' | 'calender-check-filled' | 'calender-check' | 'calender-filled' | 'calender-plus-filled' | 'calender-plus' | 'calender' | 'clock-filled' | 'clock' | 'rewatch-filled' | 'rewatch' | 'stopwatch-filled' | 'stopwatch' | 'bot-filled' | 'bot' | 'person-check-filled' | 'person-check' | 'person-filled' | 'person-plus-filled' | 'person-plus' | 'person' | 'user-speak-filled' | 'user-speak' | 'users-filled' | 'users';
|
|
415
432
|
type grauityFlippedChoiceName = 'vertically' | 'horizontally';
|
|
416
433
|
type grauityRotatedChoiceName = 'clockwise' | 'counterclockwise';
|
|
417
434
|
type grauityIconSizeName = '4' | '8' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40';
|
|
@@ -826,6 +843,7 @@ export function NSIcon({ ariaHidden, ariaLabel, as, bordered, circular, color, c
|
|
|
826
843
|
*/
|
|
827
844
|
interface StyledDivProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
828
845
|
ref?: React.Ref<HTMLDivElement>;
|
|
846
|
+
'data-testid'?: string;
|
|
829
847
|
}
|
|
830
848
|
/**
|
|
831
849
|
* Interface representing the properties for a styled button component.
|
|
@@ -1504,61 +1522,6 @@ export const NSTable: {
|
|
|
1504
1522
|
TableHeadingCell: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableHeadingCellComponentProps, never>;
|
|
1505
1523
|
TableRow: import("styled-components").StyledComponent<string, any, import("ui/elements/Table/types").TableRowComponentProps, never>;
|
|
1506
1524
|
};
|
|
1507
|
-
type EventRendererFn<T> = (event: CalendarEvent<T>) => React.ReactNode;
|
|
1508
|
-
interface CalendarEvent<T = {}> {
|
|
1509
|
-
title?: string;
|
|
1510
|
-
start: Date;
|
|
1511
|
-
end: Date;
|
|
1512
|
-
allDay?: boolean;
|
|
1513
|
-
render?: EventRendererFn<T>;
|
|
1514
|
-
focused?: boolean;
|
|
1515
|
-
}
|
|
1516
|
-
export interface WeeklyCalendarProps<T = {}> {
|
|
1517
|
-
/**
|
|
1518
|
-
* An optional array of calendar events.
|
|
1519
|
-
* @default []
|
|
1520
|
-
*/
|
|
1521
|
-
events?: CalendarEvent<T>[];
|
|
1522
|
-
/**
|
|
1523
|
-
* A function to render each event.
|
|
1524
|
-
*/
|
|
1525
|
-
eventRenderer?: EventRendererFn<T>;
|
|
1526
|
-
/**
|
|
1527
|
-
* A component to render in the header of the calendar.
|
|
1528
|
-
* @default null
|
|
1529
|
-
*/
|
|
1530
|
-
header?: React.ReactNode;
|
|
1531
|
-
/**
|
|
1532
|
-
* A boolean indicating whether to show week controls.
|
|
1533
|
-
* @default true
|
|
1534
|
-
*/
|
|
1535
|
-
shouldShowWeekControls?: boolean;
|
|
1536
|
-
/**
|
|
1537
|
-
* The offset for the week relative to current week, where 0 represents the current week.
|
|
1538
|
-
* @default 0
|
|
1539
|
-
*/
|
|
1540
|
-
weekOffset?: number;
|
|
1541
|
-
/**
|
|
1542
|
-
* A callback function that is called when the week changes.
|
|
1543
|
-
* @param weekOffset - The new week offset.
|
|
1544
|
-
*/
|
|
1545
|
-
onWeekChange?: (weekOffset: number) => void;
|
|
1546
|
-
/**
|
|
1547
|
-
* A boolean indicating whether to show the placeholder for loading state.
|
|
1548
|
-
* @default false
|
|
1549
|
-
*/
|
|
1550
|
-
loading?: boolean;
|
|
1551
|
-
/**
|
|
1552
|
-
* The time in hours (24 hour format) to show at top initially.
|
|
1553
|
-
* @default 8.5 (8:30 AM)
|
|
1554
|
-
*/
|
|
1555
|
-
defaultScrollHour?: number;
|
|
1556
|
-
/**
|
|
1557
|
-
* A boolean indicating whether to scroll to the first event initially.
|
|
1558
|
-
* @default true
|
|
1559
|
-
*/
|
|
1560
|
-
shouldScrollToFirstEvent?: boolean;
|
|
1561
|
-
}
|
|
1562
1525
|
export interface OverlayProps {
|
|
1563
1526
|
/**
|
|
1564
1527
|
* Content to be displayed inside the Overlay.
|
|
@@ -2097,6 +2060,10 @@ type PopOverOffset = {
|
|
|
2097
2060
|
bottom?: number;
|
|
2098
2061
|
right?: number;
|
|
2099
2062
|
};
|
|
2063
|
+
type PopoverPosition = {
|
|
2064
|
+
top: number;
|
|
2065
|
+
left: number;
|
|
2066
|
+
};
|
|
2100
2067
|
export interface PopOverProps {
|
|
2101
2068
|
/**
|
|
2102
2069
|
* Whether the PopOver is open or not.
|
|
@@ -2154,6 +2121,11 @@ export interface PopOverProps {
|
|
|
2154
2121
|
* Height of the PopOver Content.
|
|
2155
2122
|
*/
|
|
2156
2123
|
height?: string;
|
|
2124
|
+
/**
|
|
2125
|
+
* Custom position of the PopOver.
|
|
2126
|
+
* This will directly open the popover at given position without any adjustments.
|
|
2127
|
+
*/
|
|
2128
|
+
position?: PopoverPosition;
|
|
2157
2129
|
}
|
|
2158
2130
|
export function NSPopOver(props: PopOverProps): JSX.Element;
|
|
2159
2131
|
interface DropdownOption {
|
|
@@ -2314,6 +2286,26 @@ export interface ChipProps {
|
|
|
2314
2286
|
* Content to be displayed inside the chip.
|
|
2315
2287
|
*/
|
|
2316
2288
|
children?: React.ReactNode;
|
|
2289
|
+
/**
|
|
2290
|
+
* Icon to be displayed in the button.
|
|
2291
|
+
* @default null
|
|
2292
|
+
* */
|
|
2293
|
+
icon?: grauityIconName;
|
|
2294
|
+
/**
|
|
2295
|
+
* Size of the icon
|
|
2296
|
+
* @default '12'
|
|
2297
|
+
* */
|
|
2298
|
+
iconSize?: grauityIconSizeName;
|
|
2299
|
+
/**
|
|
2300
|
+
* Position of the icon
|
|
2301
|
+
* @default 'left'
|
|
2302
|
+
* */
|
|
2303
|
+
iconPosition?: ButtonIconPositions;
|
|
2304
|
+
/**
|
|
2305
|
+
* Additional styles to be used over the element
|
|
2306
|
+
* @default {}
|
|
2307
|
+
* */
|
|
2308
|
+
style?: React.CSSProperties;
|
|
2317
2309
|
}
|
|
2318
2310
|
export const NSChip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLDivElement>>;
|
|
2319
2311
|
export interface AccordionProps {
|
|
@@ -2440,6 +2432,127 @@ export interface CalendarEventProps {
|
|
|
2440
2432
|
chipBackgroundColor?: string;
|
|
2441
2433
|
}
|
|
2442
2434
|
export const NSCalendarEvent: React.ForwardRefExoticComponent<CalendarEventProps & React.RefAttributes<HTMLDivElement>>;
|
|
2435
|
+
export interface MonthlyCalendarEventProps extends StyledDivProps {
|
|
2436
|
+
/**
|
|
2437
|
+
* The background color of the calendar event.
|
|
2438
|
+
* @default 'var(--bg-action-brand)'
|
|
2439
|
+
*/
|
|
2440
|
+
backgroundColor?: string;
|
|
2441
|
+
/**
|
|
2442
|
+
* The border radius of the calendar event container.
|
|
2443
|
+
* @default '4px'
|
|
2444
|
+
*/
|
|
2445
|
+
borderRadius?: string;
|
|
2446
|
+
/**
|
|
2447
|
+
* The width of the calendar event container.
|
|
2448
|
+
* @default '100%'
|
|
2449
|
+
*/
|
|
2450
|
+
width?: string;
|
|
2451
|
+
/**
|
|
2452
|
+
* The height of the calendar event container.
|
|
2453
|
+
* @default '100%'
|
|
2454
|
+
*/
|
|
2455
|
+
height?: string;
|
|
2456
|
+
/**
|
|
2457
|
+
* The date and time of the calendar event.
|
|
2458
|
+
*/
|
|
2459
|
+
eventTime: Date;
|
|
2460
|
+
/**
|
|
2461
|
+
* The title or description of the calendar event.
|
|
2462
|
+
*/
|
|
2463
|
+
eventTitle: string;
|
|
2464
|
+
/**
|
|
2465
|
+
* The color of the event time text.
|
|
2466
|
+
* @default 'var(--text-action2)'
|
|
2467
|
+
*/
|
|
2468
|
+
eventTimeColor?: string;
|
|
2469
|
+
/**
|
|
2470
|
+
* The color of the event title text.
|
|
2471
|
+
* @default 'var(--text-action2)'
|
|
2472
|
+
*/
|
|
2473
|
+
eventTitleColor?: string;
|
|
2474
|
+
/**
|
|
2475
|
+
* Whether the calendar event is active.
|
|
2476
|
+
* @default false
|
|
2477
|
+
*/
|
|
2478
|
+
isActive?: boolean;
|
|
2479
|
+
}
|
|
2480
|
+
export const NSMonthlyCalendarEvent: React.ForwardRefExoticComponent<Omit<MonthlyCalendarEventProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2481
|
+
type EventRendererFn<T> = (event: CalendarEvent<T>) => React.ReactNode;
|
|
2482
|
+
interface CalendarEvent<T = {}> {
|
|
2483
|
+
id?: string | number;
|
|
2484
|
+
title?: string;
|
|
2485
|
+
start: Date;
|
|
2486
|
+
end: Date;
|
|
2487
|
+
allDay?: boolean;
|
|
2488
|
+
render?: EventRendererFn<T>;
|
|
2489
|
+
focused?: boolean;
|
|
2490
|
+
}
|
|
2491
|
+
type CalendarView = 'monthly' | 'weekly';
|
|
2492
|
+
export interface WeeklyCalendarProps<T = {}> {
|
|
2493
|
+
/**
|
|
2494
|
+
* An optional array of calendar events.
|
|
2495
|
+
* @default []
|
|
2496
|
+
*/
|
|
2497
|
+
events?: CalendarEvent<T>[];
|
|
2498
|
+
/**
|
|
2499
|
+
* A function to render each event.
|
|
2500
|
+
*/
|
|
2501
|
+
eventRenderer?: EventRendererFn<T>;
|
|
2502
|
+
/**
|
|
2503
|
+
* A component to render in the header of the calendar.
|
|
2504
|
+
* @default null
|
|
2505
|
+
*/
|
|
2506
|
+
header?: React.ReactNode;
|
|
2507
|
+
/**
|
|
2508
|
+
* A boolean indicating whether to show week controls.
|
|
2509
|
+
* @default true
|
|
2510
|
+
*/
|
|
2511
|
+
shouldShowWeekControls?: boolean;
|
|
2512
|
+
/**
|
|
2513
|
+
* [DEPRECATED] The offset for the week relative to current week, where 0 represents the current week.
|
|
2514
|
+
*
|
|
2515
|
+
* @default undefined
|
|
2516
|
+
* @deprecated Use `date` prop instead.
|
|
2517
|
+
* @see date
|
|
2518
|
+
*/
|
|
2519
|
+
weekOffset?: number;
|
|
2520
|
+
/**
|
|
2521
|
+
* [DEPRECATED] A callback function that is called when the week changes.
|
|
2522
|
+
*
|
|
2523
|
+
* @deprecated Use `onDateChange` instead.
|
|
2524
|
+
* @see onDateChange
|
|
2525
|
+
* @param weekOffset - The new week offset.
|
|
2526
|
+
*/
|
|
2527
|
+
onWeekChange?: (weekOffset: number) => void;
|
|
2528
|
+
/**
|
|
2529
|
+
* The date to show in the calendar.
|
|
2530
|
+
*
|
|
2531
|
+
* @default new Date()
|
|
2532
|
+
*/
|
|
2533
|
+
date?: Date;
|
|
2534
|
+
/**
|
|
2535
|
+
* A callback function that is called when the date changes.
|
|
2536
|
+
*
|
|
2537
|
+
* @param date - The new date.
|
|
2538
|
+
*/
|
|
2539
|
+
onDateChange?: (date: Date) => void;
|
|
2540
|
+
/**
|
|
2541
|
+
* A boolean indicating whether to show the placeholder for loading state.
|
|
2542
|
+
* @default false
|
|
2543
|
+
*/
|
|
2544
|
+
loading?: boolean;
|
|
2545
|
+
/**
|
|
2546
|
+
* The time in hours (24 hour format) to show at top initially.
|
|
2547
|
+
* @default 8.5 (8:30 AM)
|
|
2548
|
+
*/
|
|
2549
|
+
defaultScrollHour?: number;
|
|
2550
|
+
/**
|
|
2551
|
+
* A boolean indicating whether to scroll to the first event initially.
|
|
2552
|
+
* @default true
|
|
2553
|
+
*/
|
|
2554
|
+
shouldScrollToFirstEvent?: boolean;
|
|
2555
|
+
}
|
|
2443
2556
|
export interface PlaceholderProps {
|
|
2444
2557
|
/**
|
|
2445
2558
|
* Width of the placeholder.
|
|
@@ -2474,6 +2587,124 @@ export interface PlaceholderProps {
|
|
|
2474
2587
|
}
|
|
2475
2588
|
export const NSPlaceholder: React.ForwardRefExoticComponent<PlaceholderProps & React.RefAttributes<HTMLDivElement>>;
|
|
2476
2589
|
export function NSWeeklyCalendar<T>(props: WeeklyCalendarProps<T>): JSX.Element;
|
|
2590
|
+
export interface CalendarProps<T> {
|
|
2591
|
+
/**
|
|
2592
|
+
* Calendar view to display. Only supports monthly and weekly
|
|
2593
|
+
* @default weekly
|
|
2594
|
+
*/
|
|
2595
|
+
view?: CalendarView;
|
|
2596
|
+
/**
|
|
2597
|
+
* Calendar view callback when viewtype changes
|
|
2598
|
+
*/
|
|
2599
|
+
onViewChange?: (viewType: CalendarView) => void;
|
|
2600
|
+
/**
|
|
2601
|
+
* Array of events to display in the calendar.
|
|
2602
|
+
*/
|
|
2603
|
+
events: CalendarEvent<T>[];
|
|
2604
|
+
/**
|
|
2605
|
+
* Function to render each event in the calendar.
|
|
2606
|
+
* @param item - The event item to render
|
|
2607
|
+
*/
|
|
2608
|
+
eventRenderer: (item: CalendarEvent<T>, view: CalendarView) => React.ReactNode;
|
|
2609
|
+
/**
|
|
2610
|
+
* Whether to show navigation controls.
|
|
2611
|
+
* @default true
|
|
2612
|
+
*/
|
|
2613
|
+
shouldShowControls?: boolean;
|
|
2614
|
+
/**
|
|
2615
|
+
* Custom header content to display above the calendar.
|
|
2616
|
+
* @default null
|
|
2617
|
+
*/
|
|
2618
|
+
header?: React.ReactNode;
|
|
2619
|
+
/**
|
|
2620
|
+
* The date for which the calendar should render events
|
|
2621
|
+
* @default new Date()
|
|
2622
|
+
*/
|
|
2623
|
+
date: Date;
|
|
2624
|
+
/**
|
|
2625
|
+
* Callback fired when the date changes.
|
|
2626
|
+
* @param date - The new date value.
|
|
2627
|
+
* @default null
|
|
2628
|
+
*/
|
|
2629
|
+
onDateChange?: (date: Date) => void;
|
|
2630
|
+
/**
|
|
2631
|
+
* Whether the calendar is in a loading state.
|
|
2632
|
+
* @default false
|
|
2633
|
+
*/
|
|
2634
|
+
loading?: boolean;
|
|
2635
|
+
/**
|
|
2636
|
+
* Weekly calendar properties, only applicable when type is 'weekly'.
|
|
2637
|
+
*/
|
|
2638
|
+
weeklyCalendarProps?: {
|
|
2639
|
+
/**
|
|
2640
|
+
* The time in hours (24 hour format) to show at top initially.
|
|
2641
|
+
* @default 8.5 (8:30 AM)
|
|
2642
|
+
*/
|
|
2643
|
+
defaultScrollHour?: number;
|
|
2644
|
+
/**
|
|
2645
|
+
* A boolean indicating whether to scroll to the first event initially.
|
|
2646
|
+
* @default true
|
|
2647
|
+
*/
|
|
2648
|
+
shouldScrollToFirstEvent?: boolean;
|
|
2649
|
+
};
|
|
2650
|
+
/**
|
|
2651
|
+
* Monthly calendar properties, only applicable when type is 'monthly'.
|
|
2652
|
+
*/
|
|
2653
|
+
monthlyCalendarProps?: {
|
|
2654
|
+
/**
|
|
2655
|
+
* Optional alternative render function for events.
|
|
2656
|
+
* @param item - The event item to render
|
|
2657
|
+
* @default null
|
|
2658
|
+
*/
|
|
2659
|
+
renderDayItem?: (item: CalendarEvent<T>, view: CalendarView) => React.ReactNode;
|
|
2660
|
+
};
|
|
2661
|
+
}
|
|
2662
|
+
export interface MonthlyCalendarProps<T = {}> {
|
|
2663
|
+
/**
|
|
2664
|
+
* Array of events to display in the calendar.
|
|
2665
|
+
*/
|
|
2666
|
+
events: CalendarEvent<T>[];
|
|
2667
|
+
/**
|
|
2668
|
+
* Function to render each event in the calendar.
|
|
2669
|
+
* @param item - The event item to render
|
|
2670
|
+
*/
|
|
2671
|
+
eventRenderer: (item: CalendarEvent<T>) => React.ReactNode;
|
|
2672
|
+
/**
|
|
2673
|
+
* Optional alternative render function for events.
|
|
2674
|
+
* @param item - The event item to render
|
|
2675
|
+
* @default null
|
|
2676
|
+
*/
|
|
2677
|
+
renderDayItem?: (item: CalendarEvent<T>) => React.ReactNode;
|
|
2678
|
+
/**
|
|
2679
|
+
* Whether to show month navigation controls.
|
|
2680
|
+
* @default true
|
|
2681
|
+
*/
|
|
2682
|
+
shouldShowMonthControls?: boolean;
|
|
2683
|
+
/**
|
|
2684
|
+
* Custom header content to display above the calendar.
|
|
2685
|
+
* @default null
|
|
2686
|
+
*/
|
|
2687
|
+
header?: React.ReactNode;
|
|
2688
|
+
/**
|
|
2689
|
+
* The date to show in the calendar.
|
|
2690
|
+
*
|
|
2691
|
+
* @default new Date()
|
|
2692
|
+
*/
|
|
2693
|
+
date?: Date;
|
|
2694
|
+
/**
|
|
2695
|
+
* A callback function that is called when the date changes.
|
|
2696
|
+
*
|
|
2697
|
+
* @param date - The new date.
|
|
2698
|
+
*/
|
|
2699
|
+
onDateChange?: (date: Date) => void;
|
|
2700
|
+
/**
|
|
2701
|
+
* Whether the calendar is in a loading state.
|
|
2702
|
+
* @default false
|
|
2703
|
+
*/
|
|
2704
|
+
loading?: boolean;
|
|
2705
|
+
}
|
|
2706
|
+
export function NSMonthlyCalendar<T>(props: MonthlyCalendarProps<T>): JSX.Element;
|
|
2707
|
+
export function NSCalendar(props: CalendarProps<any>): JSX.Element;
|
|
2477
2708
|
type RangeInputValue = {
|
|
2478
2709
|
min: number;
|
|
2479
2710
|
max: number;
|