@newtonschool/grauity 2.0.3-beta.9 → 3.0.0-beta.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.
Files changed (133) hide show
  1. package/README.md +4 -4
  2. package/dist/common/types.d.ts +2 -0
  3. package/dist/common/types.d.ts.map +1 -1
  4. package/dist/css/grauity-icons.scss +90 -114
  5. package/dist/fonts/grauity-icons.eot +0 -0
  6. package/dist/fonts/grauity-icons.ttf +0 -0
  7. package/dist/fonts/grauity-icons.woff +0 -0
  8. package/dist/fonts/grauity-icons.woff2 +0 -0
  9. package/dist/index.d.ts +290 -286
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/main.cjs +1 -1
  12. package/dist/main.cjs.map +1 -1
  13. package/dist/module.mjs +1 -1
  14. package/dist/module.mjs.map +1 -1
  15. package/dist/ui/core/colors/index.d.ts +23 -0
  16. package/dist/ui/core/colors/index.d.ts.map +1 -0
  17. package/dist/ui/core/icons/iconTags.d.ts +0 -6
  18. package/dist/ui/core/icons/iconTags.d.ts.map +1 -1
  19. package/dist/ui/core/icons/iconTypes.d.ts +2 -8
  20. package/dist/ui/core/icons/iconTypes.d.ts.map +1 -1
  21. package/dist/ui/core/index.d.ts +1 -0
  22. package/dist/ui/core/index.d.ts.map +1 -1
  23. package/dist/ui/elements/Alert/Alert.d.ts.map +1 -1
  24. package/dist/ui/elements/Alert/constants.d.ts +0 -24
  25. package/dist/ui/elements/Alert/constants.d.ts.map +1 -1
  26. package/dist/ui/elements/Alert/types.d.ts +4 -0
  27. package/dist/ui/elements/Alert/types.d.ts.map +1 -1
  28. package/dist/ui/elements/AlertBanner/AlertBanner.d.ts.map +1 -1
  29. package/dist/ui/elements/AlertBanner/constants.d.ts +17 -17
  30. package/dist/ui/elements/AlertBanner/constants.d.ts.map +1 -1
  31. package/dist/ui/elements/AlertBanner/types.d.ts +1 -1
  32. package/dist/ui/elements/AlertBanner/utils.d.ts +11 -1
  33. package/dist/ui/elements/AlertBanner/utils.d.ts.map +1 -1
  34. package/dist/ui/elements/Button/Button.d.ts.map +1 -1
  35. package/dist/ui/elements/Button/Button.styles.d.ts.map +1 -1
  36. package/dist/ui/elements/Button/IconButton.d.ts.map +1 -1
  37. package/dist/ui/elements/Button/constants.d.ts +12 -11
  38. package/dist/ui/elements/Button/constants.d.ts.map +1 -1
  39. package/dist/ui/elements/Button/types.d.ts +24 -6
  40. package/dist/ui/elements/Button/types.d.ts.map +1 -1
  41. package/dist/ui/elements/Carousel/Carousel.d.ts.map +1 -1
  42. package/dist/ui/elements/Carousel/Carousel.styles.d.ts +2 -3
  43. package/dist/ui/elements/Carousel/Carousel.styles.d.ts.map +1 -1
  44. package/dist/ui/elements/Carousel/types.d.ts +8 -0
  45. package/dist/ui/elements/Carousel/types.d.ts.map +1 -1
  46. package/dist/ui/elements/Form/Checkbox/Checkbox.d.ts.map +1 -1
  47. package/dist/ui/elements/Form/Checkbox/Checkbox.styles.d.ts.map +1 -1
  48. package/dist/ui/elements/Form/Checkbox/types.d.ts +6 -1
  49. package/dist/ui/elements/Form/Checkbox/types.d.ts.map +1 -1
  50. package/dist/ui/elements/Form/Checkbox/utils.d.ts +6 -1
  51. package/dist/ui/elements/Form/Checkbox/utils.d.ts.map +1 -1
  52. package/dist/ui/elements/Form/Label/index.d.ts.map +1 -1
  53. package/dist/ui/elements/Form/OtpInputField/OtpInputField.d.ts +1 -1
  54. package/dist/ui/elements/Form/OtpInputField/OtpInputField.d.ts.map +1 -1
  55. package/dist/ui/elements/Form/OtpInputField/OtpInputField.styles.d.ts.map +1 -1
  56. package/dist/ui/elements/Form/OtpInputField/types.d.ts +12 -0
  57. package/dist/ui/elements/Form/OtpInputField/types.d.ts.map +1 -1
  58. package/dist/ui/elements/Form/RadioButton/RadioButton.d.ts.map +1 -1
  59. package/dist/ui/elements/Form/RadioButton/RadioButton.styles.d.ts.map +1 -1
  60. package/dist/ui/elements/Form/RadioButton/types.d.ts +9 -0
  61. package/dist/ui/elements/Form/RadioButton/types.d.ts.map +1 -1
  62. package/dist/ui/elements/Form/RadioButton/utils.d.ts +3 -0
  63. package/dist/ui/elements/Form/RadioButton/utils.d.ts.map +1 -0
  64. package/dist/ui/elements/Form/TextArea/TextArea.d.ts.map +1 -1
  65. package/dist/ui/elements/Form/TextArea/constant.d.ts.map +1 -1
  66. package/dist/ui/elements/Form/TextArea/index.styles.d.ts.map +1 -1
  67. package/dist/ui/elements/Form/TextArea/types.d.ts +11 -20
  68. package/dist/ui/elements/Form/TextArea/types.d.ts.map +1 -1
  69. package/dist/ui/elements/Form/TextField/TextField.d.ts.map +1 -1
  70. package/dist/ui/elements/Form/TextField/index.styles.d.ts.map +1 -1
  71. package/dist/ui/elements/Form/TextField/types.d.ts +12 -17
  72. package/dist/ui/elements/Form/TextField/types.d.ts.map +1 -1
  73. package/dist/ui/elements/Form/TextField/utils.d.ts +3 -0
  74. package/dist/ui/elements/Form/TextField/utils.d.ts.map +1 -0
  75. package/dist/ui/elements/Form/index.styles.d.ts.map +1 -1
  76. package/dist/ui/elements/Form/types.d.ts +12 -0
  77. package/dist/ui/elements/Form/types.d.ts.map +1 -1
  78. package/dist/ui/elements/Modal/Modal.d.ts.map +1 -1
  79. package/dist/ui/elements/Modal/MultiStepModal/index.d.ts.map +1 -1
  80. package/dist/ui/elements/Modal/types.d.ts +13 -6
  81. package/dist/ui/elements/Modal/types.d.ts.map +1 -1
  82. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.d.ts +0 -5
  83. package/dist/ui/elements/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -1
  84. package/dist/ui/elements/MultiSelectDropdown/types.d.ts +0 -5
  85. package/dist/ui/elements/MultiSelectDropdown/types.d.ts.map +1 -1
  86. package/dist/ui/elements/Overlay/Overlay.d.ts.map +1 -1
  87. package/dist/ui/elements/Overlay/Overlay.styles.d.ts +1 -2
  88. package/dist/ui/elements/Overlay/Overlay.styles.d.ts.map +1 -1
  89. package/dist/ui/elements/Overlay/types.d.ts +0 -17
  90. package/dist/ui/elements/Overlay/types.d.ts.map +1 -1
  91. package/dist/ui/elements/Pagination/Pagination.d.ts.map +1 -1
  92. package/dist/ui/elements/Pagination/types.d.ts +22 -7
  93. package/dist/ui/elements/Pagination/types.d.ts.map +1 -1
  94. package/dist/ui/elements/SelectDropdown/SelectDropdown.d.ts +0 -5
  95. package/dist/ui/elements/SelectDropdown/SelectDropdown.d.ts.map +1 -1
  96. package/dist/ui/elements/SelectDropdown/types.d.ts +0 -5
  97. package/dist/ui/elements/SelectDropdown/types.d.ts.map +1 -1
  98. package/dist/ui/index.d.ts +0 -1
  99. package/dist/ui/index.d.ts.map +1 -1
  100. package/dist/ui/themes/ThemeProvider.d.ts +70 -0
  101. package/dist/ui/themes/ThemeProvider.d.ts.map +1 -1
  102. package/dist/ui/themes/darkThemeConstants.d.ts +35 -0
  103. package/dist/ui/themes/darkThemeConstants.d.ts.map +1 -1
  104. package/dist/ui/themes/lightThemeConstants.d.ts +35 -0
  105. package/dist/ui/themes/lightThemeConstants.d.ts.map +1 -1
  106. package/dist/ui/themes/utils.d.ts +1 -1
  107. package/package.json +1 -1
  108. package/dist/ui/elements/DropdownMenu/DropdownMenu.d.ts +0 -4
  109. package/dist/ui/elements/DropdownMenu/DropdownMenu.d.ts.map +0 -1
  110. package/dist/ui/elements/DropdownMenu/DropdownMenu.styles.d.ts +0 -19
  111. package/dist/ui/elements/DropdownMenu/DropdownMenu.styles.d.ts.map +0 -1
  112. package/dist/ui/elements/DropdownMenu/DropdownTrigger.d.ts +0 -7
  113. package/dist/ui/elements/DropdownMenu/DropdownTrigger.d.ts.map +0 -1
  114. package/dist/ui/elements/DropdownMenu/components/DropdownMenuFooter.d.ts +0 -12
  115. package/dist/ui/elements/DropdownMenu/components/DropdownMenuFooter.d.ts.map +0 -1
  116. package/dist/ui/elements/DropdownMenu/components/DropdownMenuHeader.d.ts +0 -11
  117. package/dist/ui/elements/DropdownMenu/components/DropdownMenuHeader.d.ts.map +0 -1
  118. package/dist/ui/elements/DropdownMenu/components/DropdownMenuOption.d.ts +0 -9
  119. package/dist/ui/elements/DropdownMenu/components/DropdownMenuOption.d.ts.map +0 -1
  120. package/dist/ui/elements/DropdownMenu/components/DropdownMenuSubHeader.d.ts +0 -4
  121. package/dist/ui/elements/DropdownMenu/components/DropdownMenuSubHeader.d.ts.map +0 -1
  122. package/dist/ui/elements/DropdownMenu/components/DropdownMenuWithoutTrigger.d.ts +0 -9
  123. package/dist/ui/elements/DropdownMenu/components/DropdownMenuWithoutTrigger.d.ts.map +0 -1
  124. package/dist/ui/elements/DropdownMenu/components/DropdownSearchBox.d.ts +0 -10
  125. package/dist/ui/elements/DropdownMenu/components/DropdownSearchBox.d.ts.map +0 -1
  126. package/dist/ui/elements/DropdownMenu/constants.d.ts +0 -3
  127. package/dist/ui/elements/DropdownMenu/constants.d.ts.map +0 -1
  128. package/dist/ui/elements/DropdownMenu/index.d.ts +0 -4
  129. package/dist/ui/elements/DropdownMenu/index.d.ts.map +0 -1
  130. package/dist/ui/elements/DropdownMenu/types.d.ts +0 -179
  131. package/dist/ui/elements/DropdownMenu/types.d.ts.map +0 -1
  132. package/dist/ui/elements/DropdownMenu/utils.d.ts +0 -33
  133. package/dist/ui/elements/DropdownMenu/utils.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -2,6 +2,28 @@ import React, { NamedExoticComponent, ReactNode, RefAttributes, Component, HTMLA
2
2
  import { Substitute, IStyledComponentBase } from "styled-components/dist/types";
3
3
  import { HTMLMotionProps, ForwardRefComponent } from "framer-motion";
4
4
  import { FastOmit } from "styled-components";
5
+ /**
6
+ * The list of colors which should be available for all action components.
7
+ */
8
+ enum ACTION_COLORS {
9
+ BRAND = "brand",
10
+ SUCCESS = "success",
11
+ WARNING = "warning",
12
+ ERROR = "error"
13
+ }
14
+ /**
15
+ * The list of colors which should be available for all text components.
16
+ */
17
+ enum TEXT_COLORS {
18
+ PRIMARY = "primary",
19
+ SECONDARY = "secondary",
20
+ BRAND = "brand",
21
+ SUCCESS = "success",
22
+ WARNING = "warning",
23
+ ERROR = "error",
24
+ YELLOW = "yellow",
25
+ PURPLE = "purple"
26
+ }
5
27
  export const ICON_TAGS: {
6
28
  "exclamation-circle-filled": string[];
7
29
  "exclamation-circle": string[];
@@ -335,12 +357,6 @@ export const ICON_TAGS: {
335
357
  "power-bi": string[];
336
358
  "printer-filled": string[];
337
359
  printer: string[];
338
- "progress-half-filled": string[];
339
- "progress-half": string[];
340
- "progress-quarter-filled": string[];
341
- "progress-quarter": string[];
342
- "progress-zero-filled": string[];
343
- "progress-zero": string[];
344
360
  "python-filled": string[];
345
361
  python: string[];
346
362
  "quiz-filled": string[];
@@ -442,7 +458,7 @@ export const TAG_ICONS: {
442
458
  Time: string[];
443
459
  User: string[];
444
460
  };
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';
461
+ 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' | '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
462
  type grauityFlippedChoiceName = 'vertically' | 'horizontally';
447
463
  type grauityRotatedChoiceName = 'clockwise' | 'counterclockwise';
448
464
  type grauityIconSizeName = '4' | '8' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '36' | '40';
@@ -486,16 +502,31 @@ export const NS_DARK_THEME_CONFIG: {
486
502
  hover: string;
487
503
  disabled: string;
488
504
  };
505
+ 'invert-primary': {
506
+ default: string;
507
+ hover: string;
508
+ disabled: string;
509
+ };
489
510
  secondary: {
490
511
  default: string;
491
512
  hover: string;
492
513
  disabled: string;
493
514
  };
515
+ 'invert-secondary': {
516
+ default: string;
517
+ hover: string;
518
+ disabled: string;
519
+ };
494
520
  tertiary: {
495
521
  default: string;
496
522
  hover: string;
497
523
  disabled: string;
498
524
  };
525
+ 'invert-tertiary': {
526
+ default: string;
527
+ hover: string;
528
+ disabled: string;
529
+ };
499
530
  brand: {
500
531
  default: string;
501
532
  hover: string;
@@ -723,6 +754,11 @@ export const NS_DARK_THEME_CONFIG: {
723
754
  hover: string;
724
755
  disabled: string;
725
756
  };
757
+ 'invert-primary': {
758
+ default: string;
759
+ hover: string;
760
+ disabled: string;
761
+ };
726
762
  secondary: {
727
763
  default: string;
728
764
  hover: string;
@@ -777,6 +813,11 @@ export const NS_DARK_THEME_CONFIG: {
777
813
  hover: string;
778
814
  disabled: string;
779
815
  };
816
+ 'invert-primary': {
817
+ default: string;
818
+ hover: string;
819
+ disabled: string;
820
+ };
780
821
  secondary: {
781
822
  default: string;
782
823
  hover: string;
@@ -824,6 +865,11 @@ export const NS_DARK_THEME_CONFIG: {
824
865
  hover: string;
825
866
  disabled: string;
826
867
  };
868
+ 'invert-primary': {
869
+ default: string;
870
+ hover: string;
871
+ disabled: string;
872
+ };
827
873
  secondary: {
828
874
  default: string;
829
875
  hover: string;
@@ -871,6 +917,11 @@ export const NS_DARK_THEME_CONFIG: {
871
917
  hover: string;
872
918
  disabled: string;
873
919
  };
920
+ 'invert-primary': {
921
+ default: string;
922
+ hover: string;
923
+ disabled: string;
924
+ };
874
925
  secondary: {
875
926
  default: string;
876
927
  hover: string;
@@ -982,16 +1033,31 @@ export const NS_LIGHT_THEME_CONFIG: {
982
1033
  hover: string;
983
1034
  disabled: string;
984
1035
  };
1036
+ 'invert-primary': {
1037
+ default: string;
1038
+ hover: string;
1039
+ disabled: string;
1040
+ };
985
1041
  secondary: {
986
1042
  default: string;
987
1043
  hover: string;
988
1044
  disabled: string;
989
1045
  };
1046
+ 'invert-secondary': {
1047
+ default: string;
1048
+ hover: string;
1049
+ disabled: string;
1050
+ };
990
1051
  tertiary: {
991
1052
  default: string;
992
1053
  hover: string;
993
1054
  disabled: string;
994
1055
  };
1056
+ 'invert-tertiary': {
1057
+ default: string;
1058
+ hover: string;
1059
+ disabled: string;
1060
+ };
995
1061
  brand: {
996
1062
  default: string;
997
1063
  hover: string;
@@ -1219,6 +1285,11 @@ export const NS_LIGHT_THEME_CONFIG: {
1219
1285
  hover: string;
1220
1286
  disabled: string;
1221
1287
  };
1288
+ 'invert-primary': {
1289
+ default: string;
1290
+ hover: string;
1291
+ disabled: string;
1292
+ };
1222
1293
  secondary: {
1223
1294
  default: string;
1224
1295
  hover: string;
@@ -1273,6 +1344,11 @@ export const NS_LIGHT_THEME_CONFIG: {
1273
1344
  hover: string;
1274
1345
  disabled: string;
1275
1346
  };
1347
+ 'invert-primary': {
1348
+ default: string;
1349
+ hover: string;
1350
+ disabled: string;
1351
+ };
1276
1352
  secondary: {
1277
1353
  default: string;
1278
1354
  hover: string;
@@ -1320,6 +1396,11 @@ export const NS_LIGHT_THEME_CONFIG: {
1320
1396
  hover: string;
1321
1397
  disabled: string;
1322
1398
  };
1399
+ 'invert-primary': {
1400
+ default: string;
1401
+ hover: string;
1402
+ disabled: string;
1403
+ };
1323
1404
  secondary: {
1324
1405
  default: string;
1325
1406
  hover: string;
@@ -1367,6 +1448,11 @@ export const NS_LIGHT_THEME_CONFIG: {
1367
1448
  hover: string;
1368
1449
  disabled: string;
1369
1450
  };
1451
+ 'invert-primary': {
1452
+ default: string;
1453
+ hover: string;
1454
+ disabled: string;
1455
+ };
1370
1456
  secondary: {
1371
1457
  default: string;
1372
1458
  hover: string;
@@ -1491,16 +1577,31 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
1491
1577
  hover: string;
1492
1578
  disabled: string;
1493
1579
  };
1580
+ 'invert-primary': {
1581
+ default: string;
1582
+ hover: string;
1583
+ disabled: string;
1584
+ };
1494
1585
  secondary: {
1495
1586
  default: string;
1496
1587
  hover: string;
1497
1588
  disabled: string;
1498
1589
  };
1590
+ 'invert-secondary': {
1591
+ default: string;
1592
+ hover: string;
1593
+ disabled: string;
1594
+ };
1499
1595
  tertiary: {
1500
1596
  default: string;
1501
1597
  hover: string;
1502
1598
  disabled: string;
1503
1599
  };
1600
+ 'invert-tertiary': {
1601
+ default: string;
1602
+ hover: string;
1603
+ disabled: string;
1604
+ };
1504
1605
  brand: {
1505
1606
  default: string;
1506
1607
  hover: string;
@@ -1728,6 +1829,11 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
1728
1829
  hover: string;
1729
1830
  disabled: string;
1730
1831
  };
1832
+ 'invert-primary': {
1833
+ default: string;
1834
+ hover: string;
1835
+ disabled: string;
1836
+ };
1731
1837
  secondary: {
1732
1838
  default: string;
1733
1839
  hover: string;
@@ -1782,6 +1888,11 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
1782
1888
  hover: string;
1783
1889
  disabled: string;
1784
1890
  };
1891
+ 'invert-primary': {
1892
+ default: string;
1893
+ hover: string;
1894
+ disabled: string;
1895
+ };
1785
1896
  secondary: {
1786
1897
  default: string;
1787
1898
  hover: string;
@@ -1829,6 +1940,11 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
1829
1940
  hover: string;
1830
1941
  disabled: string;
1831
1942
  };
1943
+ 'invert-primary': {
1944
+ default: string;
1945
+ hover: string;
1946
+ disabled: string;
1947
+ };
1832
1948
  secondary: {
1833
1949
  default: string;
1834
1950
  hover: string;
@@ -1876,6 +1992,11 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
1876
1992
  hover: string;
1877
1993
  disabled: string;
1878
1994
  };
1995
+ 'invert-primary': {
1996
+ default: string;
1997
+ hover: string;
1998
+ disabled: string;
1999
+ };
1879
2000
  secondary: {
1880
2001
  default: string;
1881
2002
  hover: string;
@@ -1986,16 +2107,31 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
1986
2107
  hover: string;
1987
2108
  disabled: string;
1988
2109
  };
2110
+ 'invert-primary': {
2111
+ default: string;
2112
+ hover: string;
2113
+ disabled: string;
2114
+ };
1989
2115
  secondary: {
1990
2116
  default: string;
1991
2117
  hover: string;
1992
2118
  disabled: string;
1993
2119
  };
2120
+ 'invert-secondary': {
2121
+ default: string;
2122
+ hover: string;
2123
+ disabled: string;
2124
+ };
1994
2125
  tertiary: {
1995
2126
  default: string;
1996
2127
  hover: string;
1997
2128
  disabled: string;
1998
2129
  };
2130
+ 'invert-tertiary': {
2131
+ default: string;
2132
+ hover: string;
2133
+ disabled: string;
2134
+ };
1999
2135
  brand: {
2000
2136
  default: string;
2001
2137
  hover: string;
@@ -2223,6 +2359,11 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
2223
2359
  hover: string;
2224
2360
  disabled: string;
2225
2361
  };
2362
+ 'invert-primary': {
2363
+ default: string;
2364
+ hover: string;
2365
+ disabled: string;
2366
+ };
2226
2367
  secondary: {
2227
2368
  default: string;
2228
2369
  hover: string;
@@ -2277,6 +2418,11 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
2277
2418
  hover: string;
2278
2419
  disabled: string;
2279
2420
  };
2421
+ 'invert-primary': {
2422
+ default: string;
2423
+ hover: string;
2424
+ disabled: string;
2425
+ };
2280
2426
  secondary: {
2281
2427
  default: string;
2282
2428
  hover: string;
@@ -2324,6 +2470,11 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
2324
2470
  hover: string;
2325
2471
  disabled: string;
2326
2472
  };
2473
+ 'invert-primary': {
2474
+ default: string;
2475
+ hover: string;
2476
+ disabled: string;
2477
+ };
2327
2478
  secondary: {
2328
2479
  default: string;
2329
2480
  hover: string;
@@ -2371,6 +2522,11 @@ export const GrauityThemeProvider: ({ themeConfig, children, }: {
2371
2522
  hover: string;
2372
2523
  disabled: string;
2373
2524
  };
2525
+ 'invert-primary': {
2526
+ default: string;
2527
+ hover: string;
2528
+ disabled: string;
2529
+ };
2374
2530
  secondary: {
2375
2531
  default: string;
2376
2532
  hover: string;
@@ -2483,6 +2639,14 @@ interface ThemeWrapperProps {
2483
2639
  }
2484
2640
  export const NSThemeWrapper: ({ children, defaultTheme, usePreferredColorScheme, }: ThemeWrapperProps) => JSX.Element;
2485
2641
  export const NSThemeConsumer: React.Consumer<any>;
2642
+ export enum ALERT_VARIANTS_ENUM {
2643
+ PRIMARY = "primary",
2644
+ SUCCESS = "success",
2645
+ WARNING = "warning",
2646
+ ERROR = "error",
2647
+ DEFAULT = "default"
2648
+ }
2649
+ export const ALERT_VARIANTS: ALERT_VARIANTS_ENUM[];
2486
2650
  export interface IconProps {
2487
2651
  /**
2488
2652
  * Icon can have the aria hidden attribute
@@ -2577,6 +2741,7 @@ interface StyledLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
2577
2741
  ref?: React.Ref<HTMLLabelElement>;
2578
2742
  isRequired?: boolean;
2579
2743
  isDisabled?: boolean;
2744
+ color?: `${TEXT_COLORS}`;
2580
2745
  }
2581
2746
  /**
2582
2747
  * Interface representing the properties for a styled button component.
@@ -2587,18 +2752,27 @@ interface StyledLabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
2587
2752
  interface StyledButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
2588
2753
  ref?: React.Ref<HTMLButtonElement>;
2589
2754
  }
2590
- type ButtonVariants = 'primary' | 'secondary' | 'tertiary' | 'success' | 'danger' | 'warning' | 'primary-outlined' | 'secondary-outlined' | 'tertiary-outlined' | 'success-outlined' | 'danger-outlined' | 'warning-outlined';
2591
- type ButtonSizes = 'small' | 'medium' | 'large' | 'extra-large';
2592
- type ButtonIconPositions = 'left' | 'right';
2755
+ type ButtonVariants = `${BUTTON_VARIANTS_ENUM}`;
2756
+ type ButtonColors = `${BUTTON_COLORS_ENUM}`;
2757
+ type ButtonSizes = `${BUTTON_SIZES_ENUM}`;
2758
+ type ButtonIconPositions = `${BUTTON_ICON_POSITIONS_ENUM}`;
2593
2759
  export interface ButtonProps extends StyledButtonProps {
2594
2760
  /**
2595
2761
  * Variant of the button
2596
2762
  *
2597
- * Available choices: `primary`, `secondary`, `tertiary`, `success`, `danger`, `warning`, `primary-outlined`, `secondary-outlined`, `tertiary-outlined`, `success-outlined`, `danger-outlined`, `warning-outlined`
2763
+ * Available choices: `primary` (solid), `secondary` (outlined), `tertiary` (text)
2598
2764
  *
2599
2765
  * Default: `primary`
2600
2766
  * */
2601
2767
  variant?: ButtonVariants;
2768
+ /**
2769
+ * Color of the button
2770
+ *
2771
+ * Available choices: `brand` (blue), `neutral` (black), `error` (red), `success` (green), `warning` (orange)
2772
+ *
2773
+ * Default: `brand`
2774
+ * */
2775
+ color?: ButtonColors;
2602
2776
  /**
2603
2777
  * Size of the button
2604
2778
  * Available choices: `small`, `medium`, `large`
@@ -2611,7 +2785,7 @@ export interface ButtonProps extends StyledButtonProps {
2611
2785
  * */
2612
2786
  icon?: grauityIconName;
2613
2787
  /**
2614
- * Size of the icon
2788
+ * Size of the icon, defaults to `20`
2615
2789
  * */
2616
2790
  iconSize?: grauityIconSizeName;
2617
2791
  /**
@@ -2694,6 +2868,14 @@ interface IconButtonProps {
2694
2868
  * Default: `primary`
2695
2869
  * */
2696
2870
  variant?: ButtonVariants;
2871
+ /**
2872
+ * Color of the button
2873
+ *
2874
+ * Available choices: `brand` (blue), `neutral` (black), `error` (red), `success` (green), `warning` (orange)
2875
+ *
2876
+ * Default: `brand`
2877
+ * */
2878
+ color?: ButtonColors;
2697
2879
  /**
2698
2880
  * Size of the button
2699
2881
  * Available choices: `small`, `medium`, `large`
@@ -2780,16 +2962,14 @@ interface ButtonGroupProps {
2780
2962
  export enum BUTTON_VARIANTS_ENUM {
2781
2963
  PRIMARY = "primary",
2782
2964
  SECONDARY = "secondary",
2783
- TERTIARY = "tertiary",
2965
+ TERTIARY = "tertiary"
2966
+ }
2967
+ enum BUTTON_COLORS_ENUM {
2968
+ BRAND = "brand",
2969
+ NEUTRAL = "neutral",
2970
+ ERROR = "error",
2784
2971
  SUCCESS = "success",
2785
- DANGER = "danger",
2786
- WARNING = "warning",
2787
- PRIMARY_OUTLINED = "primary-outlined",
2788
- SECONDARY_OUTLINED = "secondary-outlined",
2789
- TERTIARY_OUTLINED = "tertiary-outlined",
2790
- SUCCESS_OUTLINED = "success-outlined",
2791
- DANGER_OUTLINED = "danger-outlined",
2792
- WARNING_OUTLINED = "warning-outlined"
2972
+ WARNING = "warning"
2793
2973
  }
2794
2974
  export enum BUTTON_SIZES_ENUM {
2795
2975
  SMALL = "small",
@@ -2843,10 +3023,14 @@ export interface AlertProps {
2843
3023
  icon?: grauityIconName | 'auto' | null;
2844
3024
  /**
2845
3025
  * Alert title
3026
+ *
3027
+ * Default: `''`
2846
3028
  * */
2847
3029
  title?: React.ReactNode;
2848
3030
  /**
2849
3031
  * Alert description
3032
+ *
3033
+ * Default: `''`
2850
3034
  * */
2851
3035
  description?: React.ReactNode;
2852
3036
  /**
@@ -2922,7 +3106,7 @@ export interface AlertBannerProps {
2922
3106
  /**
2923
3107
  * Variant of the alert banner
2924
3108
  *
2925
- * Available choices: `'primary'`, `'secondary'`, `'tertiary'`, `'success'`, `'danger'`, `'warning'`
3109
+ * Available choices: `'primary'`, `'secondary'`, `'tertiary'`, `'success'`, `'error'`, `'warning'`
2926
3110
  *
2927
3111
  * Default: `'primary'`
2928
3112
  * */
@@ -3002,14 +3186,6 @@ export interface AlertBannerProps {
3002
3186
  * An alert component is used to display important messages to the user.
3003
3187
  */
3004
3188
  export const NSAlert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
3005
- export enum ALERT_VARIANTS_ENUM {
3006
- PRIMARY = "primary",
3007
- SUCCESS = "success",
3008
- WARNING = "warning",
3009
- ERROR = "error",
3010
- DEFAULT = "default"
3011
- }
3012
- export const ALERT_VARIANTS: ALERT_VARIANTS_ENUM[];
3013
3189
  /**
3014
3190
  * An alert banner is a component that is used to typically display
3015
3191
  * important messages to the user. It is normally shown at the top of the page.
@@ -3351,19 +3527,6 @@ export interface OverlayProps {
3351
3527
  * Additional className to be passed to the Overlay
3352
3528
  */
3353
3529
  className?: string;
3354
- /**
3355
- * The custom position of the overlay
3356
- * @default { top: 0, left: 0 }
3357
- */
3358
- position?: {
3359
- top?: number;
3360
- left?: number;
3361
- };
3362
- /**
3363
- * Should focus on the first element in the overlay
3364
- * @default true
3365
- */
3366
- shouldFocusOnFirstElement?: boolean;
3367
3530
  }
3368
3531
  export const NSOverlay: React.ForwardRefExoticComponent<OverlayProps & React.RefAttributes<HTMLDivElement>>;
3369
3532
  type ModalContentType = React.ReactNode;
@@ -3400,6 +3563,10 @@ interface ModalStep {
3400
3563
  * Variant for the button
3401
3564
  * */
3402
3565
  buttonVariant?: ButtonVariants | null;
3566
+ /**
3567
+ * Color for the button
3568
+ * */
3569
+ buttonColor?: ButtonColors | null;
3403
3570
  }
3404
3571
  export interface ModalProps {
3405
3572
  /**
@@ -3531,11 +3698,6 @@ export interface ModalProps {
3531
3698
  * Click even object, to be passed by the onClick event for use with `emanate` modal animation
3532
3699
  * */
3533
3700
  clickEvent?: any;
3534
- /**
3535
- * Should focus on the first element in the modal
3536
- * @default true
3537
- */
3538
- shouldFocusOnFirstElement?: boolean;
3539
3701
  }
3540
3702
  export interface MultiStepModalProps {
3541
3703
  /**
@@ -3747,10 +3909,18 @@ export interface ConfirmationDialogProps {
3747
3909
  * Variant for the cancel button
3748
3910
  * */
3749
3911
  cancelButtonVariant?: ButtonVariants;
3912
+ /**
3913
+ * Color for the cancel button
3914
+ * */
3915
+ cancelButtonColor?: ButtonColors;
3750
3916
  /**
3751
3917
  * Variant for the confirm button
3752
3918
  * */
3753
3919
  confirmButtonVariant?: ButtonVariants;
3920
+ /**
3921
+ * Color for the confirm button
3922
+ * */
3923
+ confirmButtonColor?: ButtonColors;
3754
3924
  /**
3755
3925
  * Determines if the close button should be shown
3756
3926
  * Available choices: `true`, `false`
@@ -3942,11 +4112,6 @@ interface DropdownOption {
3942
4112
  id: number | string;
3943
4113
  label: string;
3944
4114
  }
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
4115
  export interface SelectDropdownProps {
3951
4116
  /**
3952
4117
  * Set of options available for selection.
@@ -3998,21 +4163,11 @@ export interface SelectDropdownProps {
3998
4163
  */
3999
4164
  width?: string | null;
4000
4165
  }
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
4166
  export const NSSelectDropdown: React.ForwardRefExoticComponent<SelectDropdownProps & React.RefAttributes<HTMLSelectElement>>;
4007
4167
  interface _DropdownOption1 {
4008
4168
  id: string;
4009
4169
  label: string;
4010
4170
  }
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
4171
  export interface MultiSelectDropdownProps {
4017
4172
  /**
4018
4173
  * Text to display when no option is selected.
@@ -4065,11 +4220,6 @@ export interface MultiSelectDropdownProps {
4065
4220
  */
4066
4221
  triggerComponent?: React.ReactNode;
4067
4222
  }
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
4223
  export const NSMultiSelectDropdown: React.ForwardRefExoticComponent<MultiSelectDropdownProps & React.RefAttributes<HTMLSelectElement>>;
4074
4224
  type ChipVariants = 'brand' | 'success' | 'error' | 'warning' | 'yellow' | 'purple' | 'disabled' | 'action-brand' | 'action-success' | 'action-error' | 'action-warning' | 'action-yellow' | 'action-purple';
4075
4225
  type ChipSizes = 'small' | 'medium' | 'large' | 'extra-large';
@@ -4801,6 +4951,11 @@ export interface CarouselProps {
4801
4951
  * @default null
4802
4952
  */
4803
4953
  onScrollEnd?: () => void;
4954
+ /**
4955
+ * Gap between the carousel header and the items row in pixels.
4956
+ * @default 12
4957
+ */
4958
+ headerGap?: number;
4804
4959
  /**
4805
4960
  * Gap between the carousel items in pixels.
4806
4961
  * @default 12
@@ -4841,8 +4996,19 @@ export interface FormRowProps {
4841
4996
  * @returns
4842
4997
  */
4843
4998
  export const NSFormRow: (props: FormRowProps) => JSX.Element;
4999
+ type FormTextColors = `${TEXT_COLORS}`;
4844
5000
  export interface LabelProps extends StyledLabelProps {
5001
+ /**
5002
+ * The name of the label. Required for use with form elements' `htmlFor` attribute.
5003
+ */
4845
5004
  name: string;
5005
+ /**
5006
+ * The color of the label. Defaults to 'secondary'.
5007
+ */
5008
+ color?: FormTextColors;
5009
+ /**
5010
+ * The content of the label.
5011
+ */
4846
5012
  children: React.ReactNode;
4847
5013
  }
4848
5014
  export interface HelpMessageProps {
@@ -4908,6 +5074,7 @@ enum TEXT_FIELD_SIZES {
4908
5074
  EXTRA_LARGE = "extra-large"
4909
5075
  }
4910
5076
  type TextFieldSize = `${TEXT_FIELD_SIZES}`;
5077
+ type TextFieldColors = `${ACTION_COLORS}`;
4911
5078
  type InputAdornmentType = React.ReactNode;
4912
5079
  interface InputAdornments {
4913
5080
  /**
@@ -4924,166 +5091,151 @@ interface InputAdornments {
4924
5091
  export interface TextFieldProps {
4925
5092
  /**
4926
5093
  * The name of the input field. Required.
4927
- * @type {string}
4928
5094
  */
4929
5095
  name: string;
4930
5096
  /**
4931
5097
  * The label for the input field.
4932
- * @type {string}
4933
5098
  */
4934
5099
  label?: string;
4935
5100
  /**
4936
5101
  * Whether the input field is required.
4937
- * @type {boolean}
4938
5102
  * @default false
4939
5103
  */
4940
5104
  isRequired?: boolean;
4941
5105
  /**
4942
5106
  * The placeholder text for the input field.
4943
- * @type {string}
4944
5107
  */
4945
5108
  placeholder?: string;
4946
5109
  /**
4947
5110
  * The validation message to display when the input field is invalid.
4948
- * @type {string}
4949
5111
  */
4950
5112
  validationMessage?: string;
4951
5113
  /**
4952
5114
  * The input value.
4953
- * @type {string}
4954
5115
  * @default ''
4955
5116
  */
4956
5117
  value?: string;
4957
5118
  /**
4958
5119
  * Whether to disable the input field.
4959
- * @type {boolean}
4960
5120
  * @default false
4961
5121
  */
4962
5122
  isDisabled?: boolean;
5123
+ /**
5124
+ * Whether the input field is read-only.
5125
+ * @default false
5126
+ */
5127
+ isReadOnly?: boolean;
4963
5128
  /**
4964
5129
  * The function to call when the input value is changed.
4965
- * @type {(event: React.ChangeEvent<HTMLInputElement>) => void}
4966
5130
  */
4967
5131
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
4968
5132
  /**
4969
5133
  * The function to call when the input field is clicked (focused).
4970
- * @type {(event: React.MouseEvent<HTMLInputElement>) => void}
4971
5134
  */
4972
5135
  onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
4973
5136
  /**
4974
5137
  * The function to call when the input field is blurred (unfocused/clicked away).
4975
- * @type {(event: React.FocusEvent<HTMLInputElement>) => void}
4976
5138
  */
4977
5139
  onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
4978
5140
  /**
4979
5141
  * The error message to display when the input field is invalid.
4980
- * @type {string}
4981
5142
  */
4982
5143
  errorMessage?: string;
4983
5144
  /**
4984
5145
  * The autocomplete attribute for the input field.
4985
- * @type {string}
4986
5146
  * @default 'on'
4987
5147
  */
4988
5148
  autoComplete?: string;
4989
5149
  /**
4990
5150
  * Whether the input field should autofocus.
4991
- * @type {boolean}
4992
5151
  * @default false
4993
5152
  */
4994
5153
  autoFocus?: boolean;
4995
5154
  /**
4996
5155
  * The help message to display below the input field.
4997
- * @type {string}
4998
5156
  */
4999
5157
  helpMessage?: string;
5000
5158
  /**
5001
5159
  * The maximum length of the input field.
5002
- * @type {number}
5003
5160
  */
5004
5161
  maxLength?: number;
5005
5162
  /**
5006
5163
  * The size of the input field.
5007
- * @type {string}
5008
5164
  * @default 'medium'
5009
5165
  */
5010
5166
  size?: TextFieldSize;
5011
5167
  /**
5012
5168
  * The adornments to display on the input field.
5013
- * @type {InputAdornments}
5014
5169
  */
5015
5170
  adornments?: InputAdornments;
5171
+ /**
5172
+ * The color of the input field.
5173
+ */
5174
+ color?: TextFieldColors;
5016
5175
  }
5017
5176
  export const NSTextField: (props: TextFieldProps) => JSX.Element;
5018
5177
  type VARIANTS = `${VARIANTS_SIZES}`;
5178
+ type TextAreaColors = TextFieldColors;
5019
5179
  export interface TextAreaProps {
5020
5180
  /**
5021
5181
  * The name of the input field. Required.
5022
- * @type {string}
5023
5182
  */
5024
5183
  name: string;
5025
5184
  /**
5026
5185
  * The label for the input field.
5027
- * @type {string}
5028
5186
  */
5029
5187
  label?: string;
5030
5188
  /**
5031
5189
  * variant of the input field.
5032
- * @type {VARIANTS}
5033
5190
  * @default 'medium'
5034
5191
  */
5035
5192
  size?: VARIANTS;
5036
5193
  /**
5037
5194
  * Whether the input field is required.
5038
- * @type {boolean}
5039
5195
  * @default false
5040
5196
  */
5041
5197
  isRequired?: boolean;
5042
5198
  /**
5043
5199
  * The placeholder text for the input field.
5044
- * @type {string}
5045
5200
  */
5046
5201
  placeholder?: string;
5047
5202
  /**
5048
5203
  * The validation message to display when the input field is invalid.
5049
- * @type {string}
5050
5204
  */
5051
5205
  validationMessage?: string;
5052
5206
  /**
5053
5207
  * The input value.
5054
- * @type {string}
5055
5208
  * @default ''
5056
5209
  */
5057
5210
  value?: string;
5058
5211
  /**
5059
5212
  * Whether to disable the input field.
5060
- * @type {boolean}
5061
5213
  * @default false
5062
5214
  */
5063
5215
  isDisabled?: boolean;
5216
+ /**
5217
+ * Whether the input field is read-only.
5218
+ * @default false
5219
+ */
5220
+ isReadOnly?: boolean;
5064
5221
  /**
5065
5222
  * The function to call when the input value is changed.
5066
- * @type {(event: React.ChangeEvent<HTMLTextAreaElement>) => void}
5067
5223
  */
5068
5224
  onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
5069
5225
  /**
5070
5226
  * The function to call when the input field is clicked (focused).
5071
- * @type {(event: React.MouseEvent<HTMLTextAreaElement>) => void}
5072
5227
  */
5073
5228
  onClick?: (event: React.MouseEvent<HTMLTextAreaElement>) => void;
5074
5229
  /**
5075
5230
  * The function to call when the input field is blurred (unfocused/clicked away).
5076
- * @type {(event: React.FocusEvent<HTMLTextAreaElement>) => void}
5077
5231
  */
5078
5232
  onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
5079
5233
  /**
5080
5234
  * The error message to display when the input field is invalid.
5081
- * @type {string}
5082
5235
  */
5083
5236
  errorMessage?: string;
5084
5237
  /**
5085
5238
  * The autocomplete attribute for the input field.
5086
- * @type {string}
5087
5239
  * @default 'on'
5088
5240
  */
5089
5241
  autoComplete?: string;
@@ -5095,17 +5247,14 @@ export interface TextAreaProps {
5095
5247
  autoFocus?: boolean;
5096
5248
  /**
5097
5249
  * The help message to display below the input field.
5098
- * @type {string}
5099
5250
  */
5100
5251
  helpMessage?: string;
5101
5252
  /**
5102
5253
  * The number of columns for the input field.
5103
- * @type {number}
5104
5254
  */
5105
5255
  cols?: number;
5106
5256
  /**
5107
5257
  * The number of rows for the input field.
5108
- * @type {number}
5109
5258
  */
5110
5259
  rows?: number;
5111
5260
  /**
@@ -5114,11 +5263,10 @@ export interface TextAreaProps {
5114
5263
  */
5115
5264
  maxLength?: number;
5116
5265
  /**
5117
- * Whether the input field is read-only.
5118
- * @type {boolean}
5119
- * @default false
5266
+ * Color of the textarea input field.
5267
+ * @default 'brand'
5120
5268
  */
5121
- readOnly?: boolean;
5269
+ color?: TextAreaColors;
5122
5270
  }
5123
5271
  enum VARIANTS_SIZES {
5124
5272
  SMALL = "small",
@@ -5129,6 +5277,7 @@ enum VARIANTS_SIZES {
5129
5277
  export const NSTextArea: (props: TextAreaProps) => JSX.Element;
5130
5278
  type CheckboxSize = 'small' | 'medium' | 'large';
5131
5279
  type CheckboxState = 'default' | 'error' | 'success';
5280
+ type CheckboxColors = `${ACTION_COLORS}`;
5132
5281
  export interface CheckboxProps {
5133
5282
  /**
5134
5283
  * The name of the checkbox group.
@@ -5147,6 +5296,7 @@ export interface CheckboxProps {
5147
5296
  /**
5148
5297
  * The size of the checkbox.
5149
5298
  * @default medium
5299
+ * @deprecated Use color prop instead
5150
5300
  */
5151
5301
  size?: CheckboxSize;
5152
5302
  /**
@@ -5191,9 +5341,10 @@ export interface CheckboxProps {
5191
5341
  value?: string | number;
5192
5342
  /**
5193
5343
  * Additional class names to apply to the checkbox.
5194
- * @default undefined
5344
+ * @default brand
5195
5345
  */
5196
5346
  className?: string;
5347
+ color?: CheckboxColors;
5197
5348
  }
5198
5349
  /**
5199
5350
  * A checkbox is a form element that allows the user to select one or more options from a set of choices.
@@ -5201,6 +5352,7 @@ export interface CheckboxProps {
5201
5352
  export const NSCheckbox: React.FC<CheckboxProps>;
5202
5353
  type RadioButtonSize = 'small' | 'medium' | 'large';
5203
5354
  type RadioButtonState = 'default' | 'error' | 'success';
5355
+ type RadioButtonColors = `${ACTION_COLORS}`;
5204
5356
  export interface RadioButtonProps {
5205
5357
  /**
5206
5358
  * The name of the radio button group.
@@ -5228,6 +5380,7 @@ export interface RadioButtonProps {
5228
5380
  /**
5229
5381
  * The state of the radio button.
5230
5382
  * @default default
5383
+ * @deprecated Use color prop instead
5231
5384
  */
5232
5385
  state?: RadioButtonState;
5233
5386
  /**
@@ -5260,6 +5413,11 @@ export interface RadioButtonProps {
5260
5413
  * @default undefined
5261
5414
  */
5262
5415
  className?: string;
5416
+ /**
5417
+ * The color of the radio button.
5418
+ * @default brand
5419
+ */
5420
+ color?: RadioButtonColors;
5263
5421
  }
5264
5422
  export const NSRadioButton: (props: RadioButtonProps) => JSX.Element;
5265
5423
  type PaginationJustifyContent = 'space-between' | 'space-around' | 'space-evenly' | 'flex-start' | 'flex-end';
@@ -5288,20 +5446,35 @@ export interface PaginationProps {
5288
5446
  */
5289
5447
  justifyContent?: PaginationJustifyContent;
5290
5448
  /**
5291
- * The type of the pagination button. Defaults to 'tertiary'.
5292
- * @default 'tertiary'
5449
+ * The type of the pagination button. Defaults to 'secondary'.
5450
+ * @default 'secondary'
5293
5451
  */
5294
5452
  buttonVariant?: ButtonVariants;
5295
5453
  /**
5296
- * The type of the active pagination button. Defaults to 'secondary'.
5297
- * @default 'secondary'
5454
+ * The color of the pagination button. Defaults to 'neutral'.
5455
+ * @default 'neutral'
5456
+ */
5457
+ buttonColor?: ButtonColors;
5458
+ /**
5459
+ * The type of the active pagination button. Defaults to 'primary'.
5460
+ * @default 'primary'
5298
5461
  */
5299
5462
  activeButtonVariant?: ButtonVariants;
5300
5463
  /**
5301
- * The type of the control pagination button. Defaults to 'tertiary'.
5302
- * @default 'tertiary'
5464
+ * The color of the active pagination button. Defaults to 'neutral'.
5465
+ * @default 'neutral'
5466
+ */
5467
+ activeButtonColor?: ButtonColors;
5468
+ /**
5469
+ * The type of the control pagination button. Defaults to 'secondary'.
5470
+ * @default 'secondary'
5303
5471
  */
5304
5472
  controlButtonVariant?: ButtonVariants;
5473
+ /**
5474
+ * The color of the control pagination button. Defaults to 'neutral'.
5475
+ * @default 'neutral'
5476
+ */
5477
+ controlButtonColor?: ButtonColors;
5305
5478
  /**
5306
5479
  * The class name of the pagination.
5307
5480
  * @default ''
@@ -5313,6 +5486,7 @@ export interface PaginationProps {
5313
5486
  */
5314
5487
  export const NSPagination: (props: PaginationProps) => JSX.Element;
5315
5488
  export const NSSuccessMessage: (props: SuccessMessageProps) => JSX.Element;
5489
+ type OtpFieldColors = TextFieldColors;
5316
5490
  export interface OtpInputFieldProps {
5317
5491
  /**
5318
5492
  * The label displayed above the OTP input fields.
@@ -5376,182 +5550,12 @@ export interface OtpInputFieldProps {
5376
5550
  * @default 'OTP is correct'
5377
5551
  */
5378
5552
  successMessage?: string;
5379
- }
5380
- 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
5553
  /**
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'
5554
+ * The color of the OTP input fields.
5555
+ * @default 'brand'
5547
5556
  */
5548
- width?: string;
5557
+ color?: OtpFieldColors;
5549
5558
  }
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;
5559
+ export const NSOtpInput: (props: OtpInputFieldProps) => JSX.Element;
5556
5560
 
5557
5561
  //# sourceMappingURL=index.d.ts.map