@newtonschool/grauity 2.0.3-beta.9 → 2.0.3
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/css/grauity-icons.scss +468 -412
- 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 +37 -197
- 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 +15 -0
- package/dist/ui/core/icons/iconTags.d.ts.map +1 -1
- package/dist/ui/core/icons/iconTypes.d.ts +16 -2
- package/dist/ui/core/icons/iconTypes.d.ts.map +1 -1
- package/dist/ui/elements/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/ui/elements/BottomSheet/types.d.ts +11 -1
- package/dist/ui/elements/BottomSheet/types.d.ts.map +1 -1
- package/dist/ui/elements/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/elements/Modal/types.d.ts +5 -0
- package/dist/ui/elements/Modal/types.d.ts.map +1 -1
- package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.d.ts +0 -5
- package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -1
- package/dist/ui/elements/MultiSelectDropdown/types.d.ts +0 -5
- package/dist/ui/elements/MultiSelectDropdown/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 +5 -0
- package/dist/ui/elements/PopOver/types.d.ts.map +1 -1
- package/dist/ui/elements/SelectDropdown/SelectDropdown.d.ts +0 -5
- package/dist/ui/elements/SelectDropdown/SelectDropdown.d.ts.map +1 -1
- package/dist/ui/elements/SelectDropdown/types.d.ts +0 -5
- package/dist/ui/elements/SelectDropdown/types.d.ts.map +1 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/ui/elements/DropdownMenu/DropdownMenu.d.ts +0 -4
- package/dist/ui/elements/DropdownMenu/DropdownMenu.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/DropdownMenu.styles.d.ts +0 -19
- package/dist/ui/elements/DropdownMenu/DropdownMenu.styles.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/DropdownTrigger.d.ts +0 -7
- package/dist/ui/elements/DropdownMenu/DropdownTrigger.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuFooter.d.ts +0 -12
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuFooter.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuHeader.d.ts +0 -11
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuHeader.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuOption.d.ts +0 -9
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuOption.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuSubHeader.d.ts +0 -4
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuSubHeader.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuWithoutTrigger.d.ts +0 -9
- package/dist/ui/elements/DropdownMenu/components/DropdownMenuWithoutTrigger.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/components/DropdownSearchBox.d.ts +0 -10
- package/dist/ui/elements/DropdownMenu/components/DropdownSearchBox.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/constants.d.ts +0 -3
- package/dist/ui/elements/DropdownMenu/constants.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/index.d.ts +0 -4
- package/dist/ui/elements/DropdownMenu/index.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/types.d.ts +0 -179
- package/dist/ui/elements/DropdownMenu/types.d.ts.map +0 -1
- package/dist/ui/elements/DropdownMenu/utils.d.ts +0 -33
- package/dist/ui/elements/DropdownMenu/utils.d.ts.map +0 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export const ICON_TAGS: {
|
|
|
19
19
|
project: string[];
|
|
20
20
|
"terminal-filled": string[];
|
|
21
21
|
terminal: string[];
|
|
22
|
+
"nst-filled": string[];
|
|
23
|
+
nst: string[];
|
|
22
24
|
"desktop-filled": string[];
|
|
23
25
|
desktop: string[];
|
|
24
26
|
"gamepad-filled": string[];
|
|
@@ -101,6 +103,8 @@ export const ICON_TAGS: {
|
|
|
101
103
|
"lock-open-filled": string[];
|
|
102
104
|
"lock-open": string[];
|
|
103
105
|
lock: string[];
|
|
106
|
+
"magic-orb-filled": string[];
|
|
107
|
+
"magic-orb": string[];
|
|
104
108
|
"message-filled": string[];
|
|
105
109
|
"message-info-filled": string[];
|
|
106
110
|
"message-info": string[];
|
|
@@ -145,10 +149,20 @@ export const ICON_TAGS: {
|
|
|
145
149
|
star: string[];
|
|
146
150
|
"trophy-filled": string[];
|
|
147
151
|
trophy: string[];
|
|
152
|
+
codechef: string[];
|
|
153
|
+
codeforces: string[];
|
|
148
154
|
facebook: string[];
|
|
155
|
+
github: string[];
|
|
156
|
+
google: string[];
|
|
157
|
+
hackerearth: string[];
|
|
158
|
+
hackerrank: string[];
|
|
159
|
+
instagram: string[];
|
|
160
|
+
leetcode: string[];
|
|
149
161
|
linkedin: string[];
|
|
150
162
|
twitter: string[];
|
|
151
163
|
whatsapp: string[];
|
|
164
|
+
x: string[];
|
|
165
|
+
youtube: string[];
|
|
152
166
|
"arrow-double-filled": string[];
|
|
153
167
|
"arrow-double": string[];
|
|
154
168
|
"arrow-down-filled": string[];
|
|
@@ -431,6 +445,7 @@ export const ICON_TAGS: {
|
|
|
431
445
|
export const TAG_ICONS: {
|
|
432
446
|
Alert: string[];
|
|
433
447
|
Code: string[];
|
|
448
|
+
College: string[];
|
|
434
449
|
Device: string[];
|
|
435
450
|
Docs: string[];
|
|
436
451
|
Finance: string[];
|
|
@@ -442,7 +457,7 @@ export const TAG_ICONS: {
|
|
|
442
457
|
Time: string[];
|
|
443
458
|
User: string[];
|
|
444
459
|
};
|
|
445
|
-
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' | 'facebook' | 'linkedin' | 'twitter' | 'whatsapp' | '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' | 'progress-half-filled' | 'progress-half' | 'progress-quarter-filled' | 'progress-quarter' | 'progress-zero-filled' | 'progress-zero' | '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';
|
|
460
|
+
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' | 'nst-filled' | 'nst' | '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' | 'magic-orb-filled' | 'magic-orb' | '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' | 'codechef' | 'codeforces' | 'facebook' | 'github' | 'google' | 'hackerearth' | 'hackerrank' | 'instagram' | 'leetcode' | 'linkedin' | 'twitter' | 'whatsapp' | 'x' | 'youtube' | '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' | 'progress-half-filled' | 'progress-half' | 'progress-quarter-filled' | 'progress-quarter' | 'progress-zero-filled' | 'progress-zero' | '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';
|
|
446
461
|
type grauityFlippedChoiceName = 'vertically' | 'horizontally';
|
|
447
462
|
type grauityRotatedChoiceName = 'clockwise' | 'counterclockwise';
|
|
448
463
|
type grauityIconSizeName = '4' | '8' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40';
|
|
@@ -3536,6 +3551,11 @@ export interface ModalProps {
|
|
|
3536
3551
|
* @default true
|
|
3537
3552
|
*/
|
|
3538
3553
|
shouldFocusOnFirstElement?: boolean;
|
|
3554
|
+
/**
|
|
3555
|
+
* Flag to determine if the background scroll should be disabled.
|
|
3556
|
+
* @default true
|
|
3557
|
+
*/
|
|
3558
|
+
shouldDisableScroll?: boolean;
|
|
3539
3559
|
}
|
|
3540
3560
|
export interface MultiStepModalProps {
|
|
3541
3561
|
/**
|
|
@@ -3936,17 +3956,17 @@ export interface PopOverProps {
|
|
|
3936
3956
|
* This will directly open the popover at given position without any adjustments.
|
|
3937
3957
|
*/
|
|
3938
3958
|
position?: PopoverPosition;
|
|
3959
|
+
/**
|
|
3960
|
+
* Should focus on the first element in the popover
|
|
3961
|
+
* @default true
|
|
3962
|
+
*/
|
|
3963
|
+
shouldFocusOnFirstElement?: boolean;
|
|
3939
3964
|
}
|
|
3940
3965
|
export function NSPopOver(props: PopOverProps): JSX.Element;
|
|
3941
3966
|
interface DropdownOption {
|
|
3942
3967
|
id: number | string;
|
|
3943
3968
|
label: string;
|
|
3944
3969
|
}
|
|
3945
|
-
/**
|
|
3946
|
-
* @deprecated This interface is deprecated and will be removed in future versions.
|
|
3947
|
-
* - Use the `DropdownMenu` component instead.
|
|
3948
|
-
* @see {@link https://grauity.newtonschool.co/?path=/docs/elements-dropdownmenu--docs}
|
|
3949
|
-
*/
|
|
3950
3970
|
export interface SelectDropdownProps {
|
|
3951
3971
|
/**
|
|
3952
3972
|
* Set of options available for selection.
|
|
@@ -3998,21 +4018,11 @@ export interface SelectDropdownProps {
|
|
|
3998
4018
|
*/
|
|
3999
4019
|
width?: string | null;
|
|
4000
4020
|
}
|
|
4001
|
-
/**
|
|
4002
|
-
* @deprecated This component is deprecated and will be removed in future releases.
|
|
4003
|
-
* - Use the `DropdownMenu` component instead.
|
|
4004
|
-
* @see {@link https://grauity.newtonschool.co/?path=/docs/elements-dropdownmenu--docs}
|
|
4005
|
-
*/
|
|
4006
4021
|
export const NSSelectDropdown: React.ForwardRefExoticComponent<SelectDropdownProps & React.RefAttributes<HTMLSelectElement>>;
|
|
4007
4022
|
interface _DropdownOption1 {
|
|
4008
4023
|
id: string;
|
|
4009
4024
|
label: string;
|
|
4010
4025
|
}
|
|
4011
|
-
/**
|
|
4012
|
-
* @deprecated This interface is deprecated and will be removed in future versions.
|
|
4013
|
-
* - Use the `DropdownMenu` component instead.
|
|
4014
|
-
* @see {@link https://grauity.newtonschool.co/?path=/docs/elements-dropdownmenu--docs}
|
|
4015
|
-
*/
|
|
4016
4026
|
export interface MultiSelectDropdownProps {
|
|
4017
4027
|
/**
|
|
4018
4028
|
* Text to display when no option is selected.
|
|
@@ -4065,11 +4075,6 @@ export interface MultiSelectDropdownProps {
|
|
|
4065
4075
|
*/
|
|
4066
4076
|
triggerComponent?: React.ReactNode;
|
|
4067
4077
|
}
|
|
4068
|
-
/**
|
|
4069
|
-
* @deprecated This component is deprecated and will be removed in future releases.
|
|
4070
|
-
* - Use the `DropdownMenu` component instead.
|
|
4071
|
-
* @see {@link https://grauity.newtonschool.co/?path=/docs/elements-dropdownmenu--docs}
|
|
4072
|
-
*/
|
|
4073
4078
|
export const NSMultiSelectDropdown: React.ForwardRefExoticComponent<MultiSelectDropdownProps & React.RefAttributes<HTMLSelectElement>>;
|
|
4074
4079
|
type ChipVariants = 'brand' | 'success' | 'error' | 'warning' | 'yellow' | 'purple' | 'disabled' | 'action-brand' | 'action-success' | 'action-error' | 'action-warning' | 'action-yellow' | 'action-purple';
|
|
4075
4080
|
type ChipSizes = 'small' | 'medium' | 'large' | 'extra-large';
|
|
@@ -4210,7 +4215,7 @@ export interface BottomSheetProps {
|
|
|
4210
4215
|
closeOnBackdropClick?: boolean;
|
|
4211
4216
|
/**
|
|
4212
4217
|
* The height of the BottomSheet.
|
|
4213
|
-
* @default '
|
|
4218
|
+
* @default '50vh'
|
|
4214
4219
|
*/
|
|
4215
4220
|
height?: string;
|
|
4216
4221
|
/**
|
|
@@ -4227,6 +4232,16 @@ export interface BottomSheetProps {
|
|
|
4227
4232
|
* Additional class name to be passed to the BottomSheet.
|
|
4228
4233
|
*/
|
|
4229
4234
|
className?: string;
|
|
4235
|
+
/**
|
|
4236
|
+
* Should focus on the first element in the bottomsheet
|
|
4237
|
+
* @default true
|
|
4238
|
+
*/
|
|
4239
|
+
shouldFocusOnFirstElement?: boolean;
|
|
4240
|
+
/**
|
|
4241
|
+
* Flag to determine if the background scroll should be disabled.
|
|
4242
|
+
* @default true
|
|
4243
|
+
*/
|
|
4244
|
+
shouldDisableScroll?: boolean;
|
|
4230
4245
|
}
|
|
4231
4246
|
export const NSBottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
4232
4247
|
export interface CalendarEventProps {
|
|
@@ -5378,180 +5393,5 @@ export interface OtpInputFieldProps {
|
|
|
5378
5393
|
successMessage?: string;
|
|
5379
5394
|
}
|
|
5380
5395
|
export const NSOtpInput: ({ label, name, length, onChange, style, isOtpCorrect, isOtpWrong, isDisabled, errorMessage, successMessage, }: OtpInputFieldProps) => JSX.Element;
|
|
5381
|
-
export enum DropdownMenuBaseItemType {
|
|
5382
|
-
SUB_HEADER = "subheader",
|
|
5383
|
-
DIVIDER = "divider",
|
|
5384
|
-
OPTION = "option"
|
|
5385
|
-
}
|
|
5386
|
-
export type DropdownMenuBaseItemSubHeaderProps = {
|
|
5387
|
-
type: DropdownMenuBaseItemType.SUB_HEADER;
|
|
5388
|
-
title: string;
|
|
5389
|
-
};
|
|
5390
|
-
export type DropdownMenuBaseItemDividerProps = {
|
|
5391
|
-
type: DropdownMenuBaseItemType.DIVIDER;
|
|
5392
|
-
};
|
|
5393
|
-
export type DropdownMenuBaseItemOptionProps = {
|
|
5394
|
-
type: DropdownMenuBaseItemType.OPTION;
|
|
5395
|
-
label: string;
|
|
5396
|
-
value: string | number;
|
|
5397
|
-
description?: string;
|
|
5398
|
-
leftIcon?: grauityIconName;
|
|
5399
|
-
rightIcon?: grauityIconName;
|
|
5400
|
-
disabled?: boolean;
|
|
5401
|
-
};
|
|
5402
|
-
export type DropdownMenuBaseItemProps = DropdownMenuBaseItemSubHeaderProps | DropdownMenuBaseItemDividerProps | DropdownMenuBaseItemOptionProps;
|
|
5403
|
-
export interface DropdownMenuProps {
|
|
5404
|
-
/**
|
|
5405
|
-
* Whether to show the header of the dropdown menu.
|
|
5406
|
-
* - If `showHeader` is false, `title`, `overline`, and `subtext` will be ignored.
|
|
5407
|
-
* - if `title`, `overline`, and `subtext` all are not provided, `showHeader` will be ignored.
|
|
5408
|
-
* @default true
|
|
5409
|
-
*/
|
|
5410
|
-
showHeader?: boolean;
|
|
5411
|
-
/**
|
|
5412
|
-
* The title of the dropdown menu.
|
|
5413
|
-
* @default 'Select'
|
|
5414
|
-
*/
|
|
5415
|
-
title?: string;
|
|
5416
|
-
/**
|
|
5417
|
-
* The overline text of the dropdown menu.
|
|
5418
|
-
* @default ''
|
|
5419
|
-
*/
|
|
5420
|
-
overline?: string;
|
|
5421
|
-
/**
|
|
5422
|
-
* The subtext of the dropdown menu.
|
|
5423
|
-
* @default ''
|
|
5424
|
-
*/
|
|
5425
|
-
subtext?: string;
|
|
5426
|
-
/**
|
|
5427
|
-
* Custom header component for the dropdown menu.
|
|
5428
|
-
* - If `customHeader` is provided, `showHeader`, `title`, `overline`, and `subtext` will be ignored.
|
|
5429
|
-
* @default null
|
|
5430
|
-
*/
|
|
5431
|
-
customHeader?: React.ReactNode;
|
|
5432
|
-
/**
|
|
5433
|
-
* Whether the dropdown menu is searchable.
|
|
5434
|
-
* @default false
|
|
5435
|
-
*/
|
|
5436
|
-
searchable?: boolean;
|
|
5437
|
-
/**
|
|
5438
|
-
* Placeholder text for the search input.
|
|
5439
|
-
* @default 'Search'
|
|
5440
|
-
*/
|
|
5441
|
-
searchPlaceholder?: string;
|
|
5442
|
-
/**
|
|
5443
|
-
* Icon name for the search input.
|
|
5444
|
-
* @default 'search'
|
|
5445
|
-
*/
|
|
5446
|
-
searchIcon?: grauityIconName;
|
|
5447
|
-
/**
|
|
5448
|
-
* Callback function called when the search input value changes.
|
|
5449
|
-
* @param value - The new value of the search input.
|
|
5450
|
-
* @default A function that searches on label and description of items.
|
|
5451
|
-
*/
|
|
5452
|
-
onSearchInputChange?: (value: string) => void;
|
|
5453
|
-
/**
|
|
5454
|
-
* Whether multiple items can be selected.
|
|
5455
|
-
* @default false
|
|
5456
|
-
*/
|
|
5457
|
-
multiple?: boolean;
|
|
5458
|
-
/**
|
|
5459
|
-
* List of items to be displayed in the dropdown menu.
|
|
5460
|
-
* @type {
|
|
5461
|
-
type: 'subheader'
|
|
5462
|
-
title?: string;
|
|
5463
|
-
} | {
|
|
5464
|
-
type: 'divider'
|
|
5465
|
-
} | {
|
|
5466
|
-
type: 'option'
|
|
5467
|
-
label: string;
|
|
5468
|
-
value: string;
|
|
5469
|
-
description?: string;
|
|
5470
|
-
leftIcon?: grauityIconName;
|
|
5471
|
-
rightIcon?: grauityIconName;
|
|
5472
|
-
disabled?: boolean;
|
|
5473
|
-
}
|
|
5474
|
-
* @default []
|
|
5475
|
-
*/
|
|
5476
|
-
items: DropdownMenuBaseItemProps[];
|
|
5477
|
-
/**
|
|
5478
|
-
* Whether to show action buttons (e.g., Apply, Clear All).
|
|
5479
|
-
* @default false in single select mode, true in multiple select mode
|
|
5480
|
-
*/
|
|
5481
|
-
showActionButtons?: boolean;
|
|
5482
|
-
/**
|
|
5483
|
-
* Whether to show the "Clear All" button.
|
|
5484
|
-
* - If `showActionButtons` is false, `showClearAllButton` will be ignored.
|
|
5485
|
-
* - If `multiple` is false, `showClearAllButton` will always be false.
|
|
5486
|
-
* @default true
|
|
5487
|
-
*/
|
|
5488
|
-
showClearAllButton?: boolean;
|
|
5489
|
-
/**
|
|
5490
|
-
* Text for the "Clear All" button.
|
|
5491
|
-
* @default 'Clear All'
|
|
5492
|
-
*/
|
|
5493
|
-
clearAllButtonText?: string;
|
|
5494
|
-
/**
|
|
5495
|
-
* Text for the "Apply" button.
|
|
5496
|
-
* @default 'Apply'
|
|
5497
|
-
*/
|
|
5498
|
-
applyButtonText?: string;
|
|
5499
|
-
/**
|
|
5500
|
-
* Callback function called when the "Clear All" button is clicked.
|
|
5501
|
-
* @default null
|
|
5502
|
-
*/
|
|
5503
|
-
onClearAll?: () => void;
|
|
5504
|
-
/**
|
|
5505
|
-
* Callback function called to apply the selected items.
|
|
5506
|
-
* - In single select mode, if `showActionButtons` is false, `onApply` will be called when an option is clicked.
|
|
5507
|
-
* - In multiple select mode, if `showActionButtons` is false, `onApply` will be called when clicked outside the dropdown menu.
|
|
5508
|
-
* - If `showActionButtons` is true, `onApply` will be called when the "Apply" button is clicked.
|
|
5509
|
-
* @param items - The selected items.
|
|
5510
|
-
* @default null
|
|
5511
|
-
*/
|
|
5512
|
-
onApply?: (items: DropdownMenuBaseItemOptionProps[] | DropdownMenuBaseItemOptionProps) => void;
|
|
5513
|
-
/**
|
|
5514
|
-
* Callback function called when the dropdown menu is scrolled to the bottom.
|
|
5515
|
-
* @default null
|
|
5516
|
-
*/
|
|
5517
|
-
onScrollToBottom?: () => void;
|
|
5518
|
-
/**
|
|
5519
|
-
* Additional class names for the dropdown menu.
|
|
5520
|
-
* @default null
|
|
5521
|
-
*/
|
|
5522
|
-
className?: string;
|
|
5523
|
-
/**
|
|
5524
|
-
* Additional styles for the dropdown menu.
|
|
5525
|
-
* @default {}
|
|
5526
|
-
*/
|
|
5527
|
-
styles?: React.CSSProperties;
|
|
5528
|
-
/**
|
|
5529
|
-
* The values of the selected items.
|
|
5530
|
-
* @default []
|
|
5531
|
-
*/
|
|
5532
|
-
selectedValues?: (string | number)[];
|
|
5533
|
-
/**
|
|
5534
|
-
* The trigger element for the dropdown menu.
|
|
5535
|
-
* - If the trigger element is not provided, the dropdown menu will be always visible.
|
|
5536
|
-
* - If the trigger element is provided, initially the dropdown menu will be hidden.
|
|
5537
|
-
* - If the trigger element is provided, the dropdown menu will be shown when the trigger element is clicked.
|
|
5538
|
-
* @default null
|
|
5539
|
-
*/
|
|
5540
|
-
trigger?: React.ReactNode;
|
|
5541
|
-
/**
|
|
5542
|
-
* The width of the dropdown menu.
|
|
5543
|
-
* - If width is not provided, the width will be set to 300px.
|
|
5544
|
-
* - If width is provided, the width will be set to the provided value.
|
|
5545
|
-
* - If the width is 100%, the width will be equal to the width of the trigger element or parent element if trigger is not given.
|
|
5546
|
-
* @default '300px'
|
|
5547
|
-
*/
|
|
5548
|
-
width?: string;
|
|
5549
|
-
}
|
|
5550
|
-
export const NSDropdownMenu: (props: DropdownMenuProps) => JSX.Element;
|
|
5551
|
-
export const NSDropdownTrigger: ({ label, children, errorMessage, }: {
|
|
5552
|
-
label?: string;
|
|
5553
|
-
children?: string;
|
|
5554
|
-
errorMessage?: string;
|
|
5555
|
-
}) => JSX.Element;
|
|
5556
5396
|
|
|
5557
5397
|
//# sourceMappingURL=index.d.ts.map
|