@linzjs/lui 24.20.1 → 26.1.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 (148) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/assets/svg-content.d.ts +7 -7
  3. package/dist/components/Drawer/Drawer.d.ts +45 -45
  4. package/dist/components/Drawer/DrawerContext.d.ts +6 -7
  5. package/dist/components/Drawer/DrawerGlobal.d.ts +12 -12
  6. package/dist/components/Drawer/DrawerGlobalContext.d.ts +14 -14
  7. package/dist/components/Drawer/utils.d.ts +7 -7
  8. package/dist/components/LuiAccordicard/LuiAccordicard.d.ts +9 -9
  9. package/dist/components/LuiAccordicardStatic/LuiAccordicardStatic.d.ts +9 -9
  10. package/dist/components/LuiAccordion/LuiAccordion.d.ts +12 -12
  11. package/dist/components/LuiBadge/LuiBadge.d.ts +12 -12
  12. package/dist/components/LuiBanner/LuiBanner.d.ts +10 -10
  13. package/dist/components/LuiBannerV2/LuiBannerV2.d.ts +22 -22
  14. package/dist/components/LuiBearingInput/LuiBearingInput.d.ts +16 -16
  15. package/dist/components/LuiButton/LuiButton.d.ts +44 -44
  16. package/dist/components/LuiColourPicker/ColorBucket.d.ts +6 -6
  17. package/dist/components/LuiColourPicker/ColorInput.d.ts +9 -9
  18. package/dist/components/LuiColourPicker/ColorPalette.d.ts +14 -14
  19. package/dist/components/LuiColourPicker/ColourPaletteConstants.d.ts +8 -8
  20. package/dist/components/LuiCommonInputProps.d.ts +5 -5
  21. package/dist/components/LuiCounter/LuiCounter.d.ts +8 -8
  22. package/dist/components/LuiError/LuiError.d.ts +8 -8
  23. package/dist/components/LuiErrorPage/LuiErrorIllustration.d.ts +5 -5
  24. package/dist/components/LuiErrorPage/LuiErrorPage.d.ts +9 -9
  25. package/dist/components/LuiErrorPanel/LuiErrorPanel.d.ts +23 -23
  26. package/dist/components/LuiExpandableBanner/LuiExpandableBanner.d.ts +19 -19
  27. package/dist/components/LuiFilterContainer/LuiFilterContainer.d.ts +14 -14
  28. package/dist/components/LuiFilterMenu/LuiFilterMenu.d.ts +16 -16
  29. package/dist/components/LuiFooter/LuiAppFooterSml.d.ts +13 -13
  30. package/dist/components/LuiFooter/LuiFooter.d.ts +12 -12
  31. package/dist/components/LuiFormElements/ClearableLuiTextInput/ClearableLuiTextInput.d.ts +14 -14
  32. package/dist/components/LuiFormElements/LuiCheckboxInput/LuiCheckboxInput.d.ts +16 -16
  33. package/dist/components/LuiFormElements/LuiComboSelect/LuiComboSelect.d.ts +27 -27
  34. package/dist/components/LuiFormElements/LuiDateInput/DateInput.d.ts +5 -5
  35. package/dist/components/LuiFormElements/LuiDateInput/DateInputHelper.d.ts +6 -6
  36. package/dist/components/LuiFormElements/LuiDateInput/FireDateChange.d.ts +1 -1
  37. package/dist/components/LuiFormElements/LuiDateInput/LuiDateInput.d.ts +5 -5
  38. package/dist/components/LuiFormElements/LuiFileInputBox/LuiFileInputBox.d.ts +36 -36
  39. package/dist/components/LuiFormElements/LuiMoneyInput/LuiMoneyInput.d.ts +28 -28
  40. package/dist/components/LuiFormElements/LuiRadioInput/LuiRadioInput.d.ts +15 -15
  41. package/dist/components/LuiFormElements/LuiSelectInput/LuiSelectInput.d.ts +20 -20
  42. package/dist/components/LuiFormElements/LuiTextAreaInput/LuiAutoExpandTextAreaInput.d.ts +3 -3
  43. package/dist/components/LuiFormElements/LuiTextAreaInput/LuiTextAreaInput.d.ts +12 -12
  44. package/dist/components/LuiFormElements/LuiTextInput/LuiTextInput.d.ts +23 -23
  45. package/dist/components/LuiForms/LuiFormSection/LuiFormSectionHeader.d.ts +7 -7
  46. package/dist/components/LuiForms/LuiFormSection/LuiHelpInfo/LuiHelpInfo.d.ts +6 -6
  47. package/dist/components/LuiHeader/LuiHeader.d.ts +72 -72
  48. package/dist/components/LuiHeaderMenu/LuiHeaderMenus.d.ts +51 -51
  49. package/dist/components/LuiHeaderMenuV2/LuiHeaderMenusV2.d.ts +87 -102
  50. package/dist/components/LuiHeaderV2/LuiHeaderV2.d.ts +103 -109
  51. package/dist/components/LuiIcon/LuiIcon.d.ts +35 -35
  52. package/dist/components/LuiListBox/LuiListBox.d.ts +59 -59
  53. package/dist/components/LuiListBox/LuiListBoxGroup.d.ts +10 -10
  54. package/dist/components/LuiListBox/LuiListBoxItem.d.ts +10 -10
  55. package/dist/components/LuiListBox/Renderers/CheckboxItemRenderer.d.ts +4 -4
  56. package/dist/components/LuiListBox/Renderers/RadioItemRenderer.d.ts +4 -4
  57. package/dist/components/LuiListBox/useLuiListBox.d.ts +3 -3
  58. package/dist/components/LuiLoadingSpinner/LuiLoadingSpinner.d.ts +16 -16
  59. package/dist/components/LuiLoadingSpinner/LuiLottieLight.d.ts +14 -14
  60. package/dist/components/LuiMenu/LuiMenu.d.ts +12 -12
  61. package/dist/components/LuiMenuTrigger/LuiMenuTrigger.d.ts +5 -5
  62. package/dist/components/LuiModal/LuiAlertModalV2.d.ts +7 -7
  63. package/dist/components/LuiModal/LuiModal.d.ts +40 -40
  64. package/dist/components/LuiModal/LuiModalContext.d.ts +6 -0
  65. package/dist/components/LuiModal/LuiModalV2.d.ts +36 -36
  66. package/dist/components/LuiMultiSwitch/LuiMultiSwitch.d.ts +23 -23
  67. package/dist/components/LuiMultiSwitch/LuiMultiSwitch.examples.d.ts +4 -4
  68. package/dist/components/LuiPagination/LuiPagination.d.ts +23 -23
  69. package/dist/components/LuiProgressBar/LuiProgressBar.d.ts +9 -9
  70. package/dist/components/LuiResizableLayout/LuiResizableLayout.d.ts +25 -25
  71. package/dist/components/LuiSearchBox/LuiSearchBox.d.ts +41 -41
  72. package/dist/components/LuiSearchInput/LuiPassiveSearchInput.d.ts +28 -28
  73. package/dist/components/LuiSearchInput/LuiSearchInput.d.ts +38 -38
  74. package/dist/components/LuiSearchInput/ResultsDisplay.d.ts +23 -23
  75. package/dist/components/LuiSelectMenu/LuiSelectDataMenu.d.ts +15 -15
  76. package/dist/components/LuiSelectMenu/LuiSelectMenu.d.ts +25 -25
  77. package/dist/components/LuiShadow/LuiShadow.d.ts +6 -6
  78. package/dist/components/LuiSideMenu/LuiSideMenu.d.ts +5 -5
  79. package/dist/components/LuiSideMenu/LuiSideMenuItem.d.ts +11 -11
  80. package/dist/components/LuiSidePanel/LuiSidePanel.d.ts +9 -9
  81. package/dist/components/LuiSidePanel/LuiSidePanelHelper.d.ts +7 -7
  82. package/dist/components/LuiSideToolbar/LuiSideToolbar.d.ts +11 -11
  83. package/dist/components/LuiSideToolbar/ToolbarButton.d.ts +21 -21
  84. package/dist/components/LuiSideToolbar/ToolbarIcon.d.ts +13 -13
  85. package/dist/components/LuiSideToolbar/ToolbarItem.d.ts +17 -17
  86. package/dist/components/LuiSplitButton/LuiSplitButton.d.ts +30 -30
  87. package/dist/components/LuiStaticMessage/LuiStaticMessage.d.ts +10 -10
  88. package/dist/components/LuiSwitchButton/LuiSwitchButton.d.ts +8 -8
  89. package/dist/components/LuiTabs/LuiTab/LuiTab.d.ts +13 -13
  90. package/dist/components/LuiTabs/LuiTabs.d.ts +10 -10
  91. package/dist/components/LuiTabs/LuiTabsGroup/LuiTabsGroup.d.ts +5 -5
  92. package/dist/components/LuiTabs/LuiTabsPanel/LuiTabsPanel.d.ts +8 -8
  93. package/dist/components/LuiTabs/LuiTabsPanelSwitch/LuiTabsPanelSwitch.d.ts +8 -8
  94. package/dist/components/LuiToastMessage/LuiToastMessage.d.ts +20 -20
  95. package/dist/components/LuiTooltip/LuiTooltip.d.ts +16 -16
  96. package/dist/components/LuiUpdateSplashModal/LuiUpdatesSplashModal.d.ts +27 -27
  97. package/dist/components/Splitter/Control/Control.d.ts +9 -9
  98. package/dist/components/Splitter/Control/ControlIcon.d.ts +7 -7
  99. package/dist/components/Splitter/Separator/Separator.d.ts +11 -11
  100. package/dist/components/Splitter/Splitter.d.ts +44 -44
  101. package/dist/components/Splitter/Stories/RangeAsPx.d.ts +9 -9
  102. package/dist/components/Splitter/Stories/Section.d.ts +5 -3
  103. package/dist/components/Splitter/helpers/clampSeparator.d.ts +10 -10
  104. package/dist/components/Splitter/helpers/dataBoundary.d.ts +18 -18
  105. package/dist/components/Splitter/helpers/getGridTemplate.d.ts +14 -14
  106. package/dist/components/Splitter/helpers/getKeyDownDeltaMove.d.ts +6 -7
  107. package/dist/components/Splitter/helpers/getSeparatorAttributes.d.ts +27 -27
  108. package/dist/components/Splitter/helpers/getSeparatorPosition.d.ts +7 -7
  109. package/dist/components/Splitter/helpers/transition.d.ts +5 -5
  110. package/dist/components/Splitter/helpers/useForkRef.d.ts +3 -4
  111. package/dist/components/Splitter/helpers/useMoveSeparator.d.ts +11 -11
  112. package/dist/components/Splitter/helpers/useShowSeparator.d.ts +7 -7
  113. package/dist/components/Splitter/helpers/useValueSeparator.d.ts +15 -15
  114. package/dist/components/Splitter/helpers/useValueSeparatorEffects.d.ts +5 -5
  115. package/dist/components/Splitter/useSplitterRef.d.ts +5 -5
  116. package/dist/components/Toast/Helpers/ToastSection.d.ts +9 -9
  117. package/dist/components/Toast/Helpers/ToastTypes.d.ts +35 -35
  118. package/dist/components/Toast/Helpers/getToastProviderEl.d.ts +15 -15
  119. package/dist/components/Toast/Helpers/toastUsage.d.ts +2 -2
  120. package/dist/components/Toast/Helpers/useToastState.d.ts +20 -21
  121. package/dist/components/Toast/ToastBanner.d.ts +6 -6
  122. package/dist/components/Toast/ToastProvider.d.ts +10 -10
  123. package/dist/components/Toast/Upgrade/LuiToastMessageCompatibleInterface.d.ts +5 -5
  124. package/dist/components/Toast/Upgrade/ToastVersion.d.ts +2 -3
  125. package/dist/components/Toast/Upgrade/index.d.ts +39 -39
  126. package/dist/components/Toast/Upgrade/observeOlderToasts.d.ts +6 -6
  127. package/dist/components/Toast/Upgrade/useShowLUIMessageCompatibleInterface.d.ts +5 -5
  128. package/dist/components/Toast/index.d.ts +2 -2
  129. package/dist/components/Toast/useToast.d.ts +43 -43
  130. package/dist/components/common/Hooks.d.ts +32 -32
  131. package/dist/components/common/ResponsiveUtils.d.ts +7 -7
  132. package/dist/components/common/StorybookSupport.d.ts +6 -6
  133. package/dist/components/common/UseMediaQuery.d.ts +9 -9
  134. package/dist/contexts/LuiFilterCharactersProvider.d.ts +12 -12
  135. package/dist/contexts/LuiMessagingContextProvider.d.ts +14 -14
  136. package/dist/fonts.d.ts +10 -10
  137. package/dist/functions/LinzFreeTextFilter.d.ts +14 -14
  138. package/dist/functions/LinzFreeTextValidator.d.ts +2 -2
  139. package/dist/hooks/index.d.ts +1 -1
  140. package/dist/hooks/useClickedOutsideElement.d.ts +14 -14
  141. package/dist/hooks/useDeprecatedWarning.d.ts +1 -1
  142. package/dist/index.d.ts +92 -92
  143. package/dist/index.js +10917 -9559
  144. package/dist/index.js.map +1 -1
  145. package/dist/lui.esm.js +10917 -9559
  146. package/dist/lui.esm.js.map +1 -1
  147. package/dist/scss/Components/LuiSwitchButton/LuiSwitchButton.scss +1 -0
  148. package/package.json +73 -61
package/CHANGELOG.md CHANGED
@@ -5,6 +5,45 @@
5
5
 
6
6
  * **LuiComboSelect:** restore interface to support styling of the input element. ([#1270](https://github.com/linz/lui/issues/1270)) ([7ce6a13](https://github.com/linz/lui/commit/7ce6a137c7f16ffa3acbe4357569a6eb59ef47db))
7
7
 
8
+ ## [26.1.0](https://github.com/linz/Lui/compare/lui-v26.0.0...lui-v26.1.0) (2026-09-04)
9
+
10
+
11
+ ### Features
12
+
13
+ * **LuiIcon:** add parcel topology icon for SURVEY-28094 ([#1406](https://github.com/linz/Lui/issues/1406)) ([33213db](https://github.com/linz/Lui/commit/33213db8efb9b71b704dd0688c38da7a9484296e))
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * SRVTRI-5363 LuiSwitch changes caused formatting change ([#1409](https://github.com/linz/Lui/issues/1409)) ([f0de019](https://github.com/linz/Lui/commit/f0de01968742183e8b385951cc87ad2a74d792b4))
19
+
20
+
21
+ ### Reverts
22
+
23
+ * remove parcel topology icon (SURVEY-28094) ([#1408](https://github.com/linz/Lui/issues/1408)) ([2fd86f3](https://github.com/linz/Lui/commit/2fd86f3b43b563a6e31767a684a3dee23155f7a7))
24
+
25
+ ## [26.0.0](https://github.com/linz/Lui/compare/lui-v25.0.0...lui-v26.0.0) (2026-09-03)
26
+
27
+
28
+ ### ⚠ BREAKING CHANGES
29
+
30
+ * SRVTRI-5458 snyk security fixes for govt security reqs v2 ([#1404](https://github.com/linz/Lui/issues/1404))
31
+
32
+ ### Miscellaneous Chores
33
+
34
+ * SRVTRI-5458 snyk security fixes for govt security reqs v2 ([#1404](https://github.com/linz/Lui/issues/1404)) ([18503e3](https://github.com/linz/Lui/commit/18503e3dcbe43abf921aba9f1b9679beee7d671c))
35
+
36
+ ## [25.0.0](https://github.com/linz/Lui/compare/lui-v24.20.1...lui-v25.0.0) (2026-09-02)
37
+
38
+
39
+ ### ⚠ BREAKING CHANGES
40
+
41
+ * SRVTRI-5458 snyk security fixes for govt security reqs ([#1401](https://github.com/linz/Lui/issues/1401))
42
+
43
+ ### Miscellaneous Chores
44
+
45
+ * SRVTRI-5458 snyk security fixes for govt security reqs ([#1401](https://github.com/linz/Lui/issues/1401)) ([58643d6](https://github.com/linz/Lui/commit/58643d68573ef4257225442451e95eed8967210d))
46
+
8
47
  ## [24.20.1](https://github.com/linz/Lui/compare/lui-v24.20.0...lui-v24.20.1) (2026-08-31)
9
48
 
10
49
 
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- export type LuiIconName = string | 'ic_account_circle' | 'ic_add' | 'ic_add_adopt' | 'ic_add_area_interest' | 'ic_add_circle' | 'ic_add_circle_outline' | 'ic_add_coordinate' | 'ic_add_image' | 'ic_add_irregular_image' | 'ic_add_label' | 'ic_add_line' | 'ic_add_multiple' | 'ic_add_page' | 'ic_add_rectangle' | 'ic_add_rt_lines' | 'ic_add_to_adjustment' | 'ic_add_to_csv' | 'ic_add_to_list' | 'ic_add_to_parcels' | 'ic_add_to_statutory_action' | 'ic_add_to_xml' | 'ic_added_to_list' | 'ic_adj_hold_fixed' | 'ic_adj_not_fixed' | 'ic_adjustment' | 'ic_admin' | 'ic_advanced_user_search' | 'ic_alias' | 'ic_alias_unselected' | 'ic_anchor' | 'ic_annotations' | 'ic_apps' | 'ic_arrow_back' | 'ic_arrow_back_ios' | 'ic_arrow_back_left' | 'ic_arrow_drop_down' | 'ic_arrow_drop_right' | 'ic_arrow_drop_up' | 'ic_arrow_forward_ios' | 'ic_arrow_forward_right' | 'ic_arrow_up_left' | 'ic_attach_file' | 'ic_attachment' | 'ic_auth_and_instruct' | 'ic_auto_preval' | 'ic_auto_regenerate' | 'ic_balance_parcel' | 'ic_banana' | 'ic_basemap_off' | 'ic_blackwhite_greyscale' | 'ic_blocked' | 'ic_border_color' | 'ic_bug' | 'ic_c_report' | 'ic_cancel_clear' | 'ic_cancel_outline' | 'ic_capture_area' | 'ic_cart_view' | 'ic_certify_and_sign' | 'ic_change_password' | 'ic_check' | 'ic_check_circle' | 'ic_check_circle_outline' | 'ic_checklist' | 'ic_clear' | 'ic_close_list' | 'ic_closest_match' | 'ic_columns' | 'ic_complete_cmn' | 'ic_contract' | 'ic_control_point' | 'ic_convert_data' | 'ic_copy' | 'ic_copy_titles_to_here' | 'ic_corporate_fare' | 'ic_create' | 'ic_create_new_list' | 'ic_create_node' | 'ic_csv_file' | 'ic_data_display_threshold' | 'ic_data_display_threshold_high_urban' | 'ic_data_display_threshold_low_large_rural' | 'ic_data_display_threshold_medium_rural' | 'ic_dealings' | 'ic_deceased' | 'ic_deceased_fill' | 'ic_decommission' | 'ic_deeds' | 'ic_define_diagrams' | 'ic_define_nonprimary_diagram_circle' | 'ic_define_nonprimary_diagram_polygon' | 'ic_define_nonprimary_diagram_rectangle' | 'ic_define_primary_diagram_circle' | 'ic_define_primary_diagram_polygon' | 'ic_define_primary_diagram_rectangle' | 'ic_define_survey_diagram_circle' | 'ic_define_survey_diagram_polygon' | 'ic_define_survey_diagram_rectangle' | 'ic_delete_forever' | 'ic_delete_outline' | 'ic_delete_page' | 'ic_delete_solid' | 'ic_description' | 'ic_destination' | 'ic_dollar_round' | 'ic_double_arrow_left' | 'ic_double_arrow_right' | 'ic_double_tick' | 'ic_drag_handle' | 'ic_drag_indicator' | 'ic_draw_abuttal' | 'ic_draw_irregular_line' | 'ic_draw_rt_bdry' | 'ic_email' | 'ic_empty_circle' | 'ic_enabled_users' | 'ic_error' | 'ic_error_outline' | 'ic_error_report_pnx' | 'ic_exception_request' | 'ic_expand_less' | 'ic_expand_more' | 'ic_fast_forward' | 'ic_fast_forward_outline' | 'ic_feature_id' | 'ic_feedback_lightbulb' | 'ic_feedback_lightbulb_alt' | 'ic_file_attached' | 'ic_file_attached_outline' | 'ic_filter_alt' | 'ic_filter_list' | 'ic_flag' | 'ic_fold_in' | 'ic_fold_out' | 'ic_format_colour' | 'ic_format_lines_text' | 'ic_forward' | 'ic_fullscreen_frame' | 'ic_generate_title' | 'ic_grid_view' | 'ic_help' | 'ic_help_outline' | 'ic_high_priority' | 'ic_history' | 'ic_hourglass' | 'ic_info' | 'ic_info_outline' | 'ic_insert_into_sheet' | 'ic_insert_invitation' | 'ic_insert_photo' | 'ic_instruments_roles' | 'ic_keyboard_arrow_down' | 'ic_keyboard_arrow_left' | 'ic_keyboard_arrow_right' | 'ic_keyboard_arrow_up' | 'ic_label_diagrams' | 'ic_label_settings' | 'ic_labels_off' | 'ic_labels_on' | 'ic_land_record_search' | 'ic_launch_modal' | 'ic_launch_new window_open' | 'ic_layers' | 'ic_layers_user_defined' | 'ic_layout_plan_sheets' | 'ic_left' | 'ic_left_col' | 'ic_line_arc' | 'ic_line_arc_reverse' | 'ic_line_irregular' | 'ic_line_vector' | 'ic_link' | 'ic_list_add' | 'ic_list_clear' | 'ic_list_notepad' | 'ic_list_view' | 'ic_lists_folder' | 'ic_locate' | 'ic_located_in_spatial' | 'ic_lock' | 'ic_lock_alt' | 'ic_log_out' | 'ic_maintain_node' | 'ic_manage_adjust' | 'ic_manage_labels' | 'ic_maori_land' | 'ic_mark_linking' | 'ic_marks' | 'ic_memorials' | 'ic_menu' | 'ic_merge' | 'ic_message_received' | 'ic_minimise' | 'ic_misclose_error' | 'ic_more_vert' | 'ic_move_down' | 'ic_move_node' | 'ic_multi_factor_authentication_mfa' | 'ic_navigate_before' | 'ic_navigate_next' | 'ic_new_anchor' | 'ic_new_work_item' | 'ic_no_longer_restricted_hidden_title' | 'ic_note_add' | 'ic_notice_of_change' | 'ic_notifications' | 'ic_numbered_list' | 'ic_numerical_input' | 'ic_office_building_corporate' | 'ic_opacity' | 'ic_open_diagrams' | 'ic_order_history' | 'ic_package' | 'ic_pan_map' | 'ic_pan_map_alt' | 'ic_parcel_network_transaction_pnx' | 'ic_parcel_network_transaction_pnx_create' | 'ic_parcel_network_transaction_pnx_exit' | 'ic_parcel_network_transaction_pnx_search' | 'ic_parcels_existing' | 'ic_parcels_new' | 'ic_pause' | 'ic_pdf' | 'ic_pdf_doc' | 'ic_pen_and_paper_sign' | 'ic_people_outline' | 'ic_perform_next_step_right' | 'ic_person' | 'ic_person_add' | 'ic_picker' | 'ic_placeholder' | 'ic_plan_generation' | 'ic_plus_one' | 'ic_pointer_outlined' | 'ic_polygon_selection' | 'ic_pop_back' | 'ic_pre_validation' | 'ic_print' | 'ic_product_list' | 'ic_publish' | 'ic_push_pin' | 'ic_push_pin_remove' | 'ic_re_commission' | 'ic_read_only' | 'ic_record_statutory_action' | 'ic_redo' | 'ic_refresh' | 'ic_regenerate' | 'ic_regenerate_off' | 'ic_release' | 'ic_remove_circle' | 'ic_remove_circle_outline' | 'ic_remove_from_adjustment' | 'ic_remove_from_sheet' | 'ic_remove_line' | 'ic_renumber_page' | 'ic_request' | 'ic_requisitions' | 'ic_restart' | 'ic_restore' | 'ic_restricted_hidden_title' | 'ic_rotate_sheet' | 'ic_round_selection' | 'ic_save' | 'ic_save_as' | 'ic_save_download' | 'ic_saved_area_interest' | 'ic_search' | 'ic_select_coordinates' | 'ic_select_diagram' | 'ic_select_label' | 'ic_select_line' | 'ic_select_rt_lines' | 'ic_selection_focus' | 'ic_send' | 'ic_send_email_dart' | 'ic_separator' | 'ic_settings' | 'ic_slidein' | 'ic_slideout' | 'ic_slideup' | 'ic_sort' | 'ic_sorting_down_arrow_up' | 'ic_sorting_up_arrow_up' | 'ic_source' | 'ic_split' | 'ic_square_selection' | 'ic_structured_data' | 'ic_subdirectory_arrow_right' | 'ic_submit' | 'ic_summary_open' | 'ic_survey' | 'ic_survey_checked' | 'ic_survey_data_extraction' | 'ic_survey_report' | 'ic_survey_sheet' | 'ic_swap_vertical' | 'ic_ta_request_sent' | 'ic_table_columns' | 'ic_tax_statement' | 'ic_text_match' | 'ic_tick' | 'ic_tick_and_cross' | 'ic_timeline' | 'ic_title_allocation_swap' | 'ic_title_sheet' | 'ic_toggle_off' | 'ic_toggle_on' | 'ic_tune_setting_configure' | 'ic_undo' | 'ic_unlink' | 'ic_unlock' | 'ic_upload' | 'ic_validate_pnx' | 'ic_vector' | 'ic_vector_sequence' | 'ic_verified_complete_approve_check_tick' | 'ic_view' | 'ic_view_in_viewer' | 'ic_view_list' | 'ic_view_quilt' | 'ic_view_sidebar' | 'ic_view_week' | 'ic_visiblity_off' | 'ic_warning' | 'ic_warning_outline' | 'ic_waves' | 'ic_whats_new_updates' | 'ic_xml_file' | 'ic_zoom_centre' | 'ic_zoom_out' | 'ic_zoom_previous' | 'ic_zoomin_snippet_circle' | 'ic_zoomin_snippet_polygon' | 'ic_zoomin_snippet_rectangle' | 'ic_zoomout_snippet_circle' | 'ic_zoomout_snippet_polygon' | 'ic_zoomout_snippet_rectangle';
3
- type IconNameElementMap = {
4
- [key in LuiIconName]?: React.ReactElement;
5
- };
6
- export declare const ICONS: IconNameElementMap;
7
- export {};
1
+ import React from 'react';
2
+ export type LuiIconName = string | 'ic_account_circle' | 'ic_add' | 'ic_add_adopt' | 'ic_add_area_interest' | 'ic_add_circle' | 'ic_add_circle_outline' | 'ic_add_coordinate' | 'ic_add_image' | 'ic_add_irregular_image' | 'ic_add_label' | 'ic_add_line' | 'ic_add_multiple' | 'ic_add_page' | 'ic_add_rectangle' | 'ic_add_rt_lines' | 'ic_add_to_adjustment' | 'ic_add_to_csv' | 'ic_add_to_list' | 'ic_add_to_parcels' | 'ic_add_to_statutory_action' | 'ic_add_to_xml' | 'ic_added_to_list' | 'ic_adj_hold_fixed' | 'ic_adj_not_fixed' | 'ic_adjustment' | 'ic_admin' | 'ic_advanced_user_search' | 'ic_alias' | 'ic_alias_unselected' | 'ic_anchor' | 'ic_annotations' | 'ic_apps' | 'ic_arrow_back' | 'ic_arrow_back_ios' | 'ic_arrow_back_left' | 'ic_arrow_drop_down' | 'ic_arrow_drop_right' | 'ic_arrow_drop_up' | 'ic_arrow_forward_ios' | 'ic_arrow_forward_right' | 'ic_arrow_up_left' | 'ic_attach_file' | 'ic_attachment' | 'ic_auth_and_instruct' | 'ic_auto_preval' | 'ic_auto_regenerate' | 'ic_balance_parcel' | 'ic_banana' | 'ic_basemap_off' | 'ic_blackwhite_greyscale' | 'ic_blocked' | 'ic_border_color' | 'ic_bug' | 'ic_c_report' | 'ic_cancel_clear' | 'ic_cancel_outline' | 'ic_capture_area' | 'ic_cart_view' | 'ic_certify_and_sign' | 'ic_change_password' | 'ic_check' | 'ic_check_circle' | 'ic_check_circle_outline' | 'ic_checklist' | 'ic_clear' | 'ic_close_list' | 'ic_closest_match' | 'ic_columns' | 'ic_complete_cmn' | 'ic_contract' | 'ic_control_point' | 'ic_convert_data' | 'ic_copy' | 'ic_copy_titles_to_here' | 'ic_corporate_fare' | 'ic_create' | 'ic_create_new_list' | 'ic_create_node' | 'ic_csv_file' | 'ic_data_display_threshold' | 'ic_data_display_threshold_high_urban' | 'ic_data_display_threshold_low_large_rural' | 'ic_data_display_threshold_medium_rural' | 'ic_dealings' | 'ic_deceased' | 'ic_deceased_fill' | 'ic_decommission' | 'ic_deeds' | 'ic_define_diagrams' | 'ic_define_nonprimary_diagram_circle' | 'ic_define_nonprimary_diagram_polygon' | 'ic_define_nonprimary_diagram_rectangle' | 'ic_define_primary_diagram_circle' | 'ic_define_primary_diagram_polygon' | 'ic_define_primary_diagram_rectangle' | 'ic_define_survey_diagram_circle' | 'ic_define_survey_diagram_polygon' | 'ic_define_survey_diagram_rectangle' | 'ic_delete_forever' | 'ic_delete_outline' | 'ic_delete_page' | 'ic_delete_solid' | 'ic_description' | 'ic_destination' | 'ic_dollar_round' | 'ic_double_arrow_left' | 'ic_double_arrow_right' | 'ic_double_tick' | 'ic_drag_handle' | 'ic_drag_indicator' | 'ic_draw_abuttal' | 'ic_draw_irregular_line' | 'ic_draw_rt_bdry' | 'ic_email' | 'ic_empty_circle' | 'ic_enabled_users' | 'ic_error' | 'ic_error_outline' | 'ic_error_report_pnx' | 'ic_exception_request' | 'ic_expand_less' | 'ic_expand_more' | 'ic_fast_forward' | 'ic_fast_forward_outline' | 'ic_feature_id' | 'ic_feedback_lightbulb' | 'ic_feedback_lightbulb_alt' | 'ic_file_attached' | 'ic_file_attached_outline' | 'ic_filter_alt' | 'ic_filter_list' | 'ic_flag' | 'ic_fold_in' | 'ic_fold_out' | 'ic_format_colour' | 'ic_format_lines_text' | 'ic_forward' | 'ic_fullscreen_frame' | 'ic_generate_title' | 'ic_grid_view' | 'ic_help' | 'ic_help_outline' | 'ic_high_priority' | 'ic_history' | 'ic_hourglass' | 'ic_info' | 'ic_info_outline' | 'ic_insert_into_sheet' | 'ic_insert_invitation' | 'ic_insert_photo' | 'ic_instruments_roles' | 'ic_keyboard_arrow_down' | 'ic_keyboard_arrow_left' | 'ic_keyboard_arrow_right' | 'ic_keyboard_arrow_up' | 'ic_label_diagrams' | 'ic_label_settings' | 'ic_labels_off' | 'ic_labels_on' | 'ic_land_record_search' | 'ic_launch_modal' | 'ic_launch_new window_open' | 'ic_layers' | 'ic_layers_user_defined' | 'ic_layout_plan_sheets' | 'ic_left' | 'ic_left_col' | 'ic_line_arc' | 'ic_line_arc_reverse' | 'ic_line_irregular' | 'ic_line_vector' | 'ic_link' | 'ic_list_add' | 'ic_list_clear' | 'ic_list_notepad' | 'ic_list_view' | 'ic_lists_folder' | 'ic_locate' | 'ic_located_in_spatial' | 'ic_lock' | 'ic_lock_alt' | 'ic_log_out' | 'ic_maintain_node' | 'ic_manage_adjust' | 'ic_manage_labels' | 'ic_maori_land' | 'ic_mark_linking' | 'ic_marks' | 'ic_memorials' | 'ic_menu' | 'ic_merge' | 'ic_message_received' | 'ic_minimise' | 'ic_misclose_error' | 'ic_more_vert' | 'ic_move_down' | 'ic_move_node' | 'ic_multi_factor_authentication_mfa' | 'ic_navigate_before' | 'ic_navigate_next' | 'ic_new_anchor' | 'ic_new_work_item' | 'ic_no_longer_restricted_hidden_title' | 'ic_note_add' | 'ic_notice_of_change' | 'ic_notifications' | 'ic_numbered_list' | 'ic_numerical_input' | 'ic_office_building_corporate' | 'ic_opacity' | 'ic_open_diagrams' | 'ic_order_history' | 'ic_package' | 'ic_pan_map' | 'ic_pan_map_alt' | 'ic_parcel_network_transaction_pnx' | 'ic_parcel_network_transaction_pnx_create' | 'ic_parcel_network_transaction_pnx_exit' | 'ic_parcel_network_transaction_pnx_search' | 'ic_parcels_existing' | 'ic_parcels_new' | 'ic_pause' | 'ic_pdf' | 'ic_pdf_doc' | 'ic_pen_and_paper_sign' | 'ic_people_outline' | 'ic_perform_next_step_right' | 'ic_person' | 'ic_person_add' | 'ic_picker' | 'ic_placeholder' | 'ic_plan_generation' | 'ic_plus_one' | 'ic_pointer_outlined' | 'ic_polygon_selection' | 'ic_pop_back' | 'ic_pre_validation' | 'ic_print' | 'ic_product_list' | 'ic_publish' | 'ic_push_pin' | 'ic_push_pin_remove' | 'ic_re_commission' | 'ic_read_only' | 'ic_record_statutory_action' | 'ic_redo' | 'ic_refresh' | 'ic_regenerate' | 'ic_regenerate_off' | 'ic_release' | 'ic_remove_circle' | 'ic_remove_circle_outline' | 'ic_remove_from_adjustment' | 'ic_remove_from_sheet' | 'ic_remove_line' | 'ic_renumber_page' | 'ic_request' | 'ic_requisitions' | 'ic_restart' | 'ic_restore' | 'ic_restricted_hidden_title' | 'ic_rotate_sheet' | 'ic_round_selection' | 'ic_save' | 'ic_save_as' | 'ic_save_download' | 'ic_saved_area_interest' | 'ic_search' | 'ic_select_coordinates' | 'ic_select_diagram' | 'ic_select_label' | 'ic_select_line' | 'ic_select_rt_lines' | 'ic_selection_focus' | 'ic_send' | 'ic_send_email_dart' | 'ic_separator' | 'ic_settings' | 'ic_slidein' | 'ic_slideout' | 'ic_slideup' | 'ic_sort' | 'ic_sorting_down_arrow_up' | 'ic_sorting_up_arrow_up' | 'ic_source' | 'ic_split' | 'ic_square_selection' | 'ic_structured_data' | 'ic_subdirectory_arrow_right' | 'ic_submit' | 'ic_summary_open' | 'ic_survey' | 'ic_survey_checked' | 'ic_survey_data_extraction' | 'ic_survey_report' | 'ic_survey_sheet' | 'ic_swap_vertical' | 'ic_ta_request_sent' | 'ic_table_columns' | 'ic_tax_statement' | 'ic_text_match' | 'ic_tick' | 'ic_tick_and_cross' | 'ic_timeline' | 'ic_title_allocation_swap' | 'ic_title_sheet' | 'ic_toggle_off' | 'ic_toggle_on' | 'ic_tune_setting_configure' | 'ic_undo' | 'ic_unlink' | 'ic_unlock' | 'ic_upload' | 'ic_validate_pnx' | 'ic_vector' | 'ic_vector_sequence' | 'ic_verified_complete_approve_check_tick' | 'ic_view' | 'ic_view_in_viewer' | 'ic_view_list' | 'ic_view_quilt' | 'ic_view_sidebar' | 'ic_view_week' | 'ic_visiblity_off' | 'ic_warning' | 'ic_warning_outline' | 'ic_waves' | 'ic_whats_new_updates' | 'ic_xml_file' | 'ic_zoom_centre' | 'ic_zoom_out' | 'ic_zoom_previous' | 'ic_zoomin_snippet_circle' | 'ic_zoomin_snippet_polygon' | 'ic_zoomin_snippet_rectangle' | 'ic_zoomout_snippet_circle' | 'ic_zoomout_snippet_polygon' | 'ic_zoomout_snippet_rectangle';
3
+ type IconNameElementMap = {
4
+ [key in LuiIconName]?: React.ReactElement;
5
+ };
6
+ export declare const ICONS: IconNameElementMap;
7
+ export {};
@@ -1,45 +1,45 @@
1
- import React, { ComponentProps, PropsWithChildren } from 'react';
2
- import { Splitter } from '../Splitter/Splitter';
3
- import './Drawer.scss';
4
- import { UseDisableParentScroll } from './utils';
5
- type Position = 'top' | 'bottom' | 'left' | 'right';
6
- type BaseDrawerProps = {
7
- /** It's not recommended to make this prop dynamic during runtime as it might affect the opening animation. See the `Positions` story for more info. */
8
- position?: Position;
9
- /** Drawer open state is fully handled by the parent */
10
- isOpen: boolean;
11
- /** Allows the Drawer to request closing itself (must be handled by the parent). For accessibility reasons, you must pass this prop unless you implement your custom close button, `closeOnEsc` and `closeOnClickOutside` functionality. */
12
- onRequestClose: () => void;
13
- /** Enables resizing the drawer via UI. `true` by default. Note: the drawer is always resizeable programmatically. */
14
- resizeable?: boolean;
15
- /** Pressing `ESC` calls `onRequestClose` */
16
- closeOnEsc?: boolean;
17
- /** Clicking `div.overlay` calls `onRequestClose`.
18
- *
19
- * Must be used in conjunction with `passThroughOverlayClick={false}`.*/
20
- closeOnClickOutside?: boolean;
21
- /** Allows pointer events through the non-content panel. If you set this to `false`, it is recommended that you style `div.overlay` to dim the background.
22
- *
23
- * Must be set to false to enable `closeOnClickOutside`.
24
- */
25
- passThroughOverlayClick?: boolean;
26
- /** Controls the drawer size. Valid values are from `0` to `100`, in percent of screen width or height occupied by content.
27
- *
28
- * If `undefined`, the drawer will be uncontrolled, and resizeable purely via DOM/CSS.
29
- *
30
- * Note: if `resizeable` is true, the drawer will revert to the value of the `size` prop when rerendered. If you use both `size` and `resizeable` make sure the parent updates `size` via `onResized`*/
31
- size?: number;
32
- /** `0` to `100`, in percent of screen width or height occupied by content. If `undefined`, the drawer will take up half the screen when first mounting. */
33
- initialSize?: number;
34
- /** Disables scrolling the document or the parent element when the drawer is open.*/
35
- disableScroll?: UseDisableParentScroll['mode'];
36
- /** A close button is visible by default. Use this if you're implementing a custom button. */
37
- hideCloseButton?: boolean;
38
- /** By default, `children` is mounted when the drawer opens for the first time. */
39
- mountChildrenOn?: 'mount' | 'first-open';
40
- /** Called when the drawer is resized either manually or programmatically. */
41
- onResized?: ComponentProps<typeof Splitter>['onResized'];
42
- };
43
- export type DrawerProps = PropsWithChildren<BaseDrawerProps> & Omit<ComponentProps<typeof Splitter>, 'ratio' | 'orientation' | 'onResized' | 'startAt' | 'min' | 'max'>;
44
- export declare const Drawer: React.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
- export {};
1
+ import React, { ComponentProps, PropsWithChildren } from 'react';
2
+ import { Splitter } from '../Splitter/Splitter';
3
+ import './Drawer.scss';
4
+ import { UseDisableParentScroll } from './utils';
5
+ type Position = 'top' | 'bottom' | 'left' | 'right';
6
+ type BaseDrawerProps = {
7
+ /** It's not recommended to make this prop dynamic during runtime as it might affect the opening animation. See the `Positions` story for more info. */
8
+ position?: Position;
9
+ /** Drawer open state is fully handled by the parent */
10
+ isOpen: boolean;
11
+ /** Allows the Drawer to request closing itself (must be handled by the parent). For accessibility reasons, you must pass this prop unless you implement your custom close button, `closeOnEsc` and `closeOnClickOutside` functionality. */
12
+ onRequestClose: () => void;
13
+ /** Enables resizing the drawer via UI. `true` by default. Note: the drawer is always resizeable programmatically. */
14
+ resizeable?: boolean;
15
+ /** Pressing `ESC` calls `onRequestClose` */
16
+ closeOnEsc?: boolean;
17
+ /** Clicking `div.overlay` calls `onRequestClose`.
18
+ *
19
+ * Must be used in conjunction with `passThroughOverlayClick={false}`.*/
20
+ closeOnClickOutside?: boolean;
21
+ /** Allows pointer events through the non-content panel. If you set this to `false`, it is recommended that you style `div.overlay` to dim the background.
22
+ *
23
+ * Must be set to false to enable `closeOnClickOutside`.
24
+ */
25
+ passThroughOverlayClick?: boolean;
26
+ /** Controls the drawer size. Valid values are from `0` to `100`, in percent of screen width or height occupied by content.
27
+ *
28
+ * If `undefined`, the drawer will be uncontrolled, and resizeable purely via DOM/CSS.
29
+ *
30
+ * Note: if `resizeable` is true, the drawer will revert to the value of the `size` prop when rerendered. If you use both `size` and `resizeable` make sure the parent updates `size` via `onResized`*/
31
+ size?: number;
32
+ /** `0` to `100`, in percent of screen width or height occupied by content. If `undefined`, the drawer will take up half the screen when first mounting. */
33
+ initialSize?: number;
34
+ /** Disables scrolling the document or the parent element when the drawer is open.*/
35
+ disableScroll?: UseDisableParentScroll['mode'];
36
+ /** A close button is visible by default. Use this if you're implementing a custom button. */
37
+ hideCloseButton?: boolean;
38
+ /** By default, `children` is mounted when the drawer opens for the first time. */
39
+ mountChildrenOn?: 'mount' | 'first-open';
40
+ /** Called when the drawer is resized either manually or programmatically. */
41
+ onResized?: ComponentProps<typeof Splitter>['onResized'];
42
+ };
43
+ export type DrawerProps = PropsWithChildren<BaseDrawerProps> & Omit<ComponentProps<typeof Splitter>, 'ratio' | 'orientation' | 'onResized' | 'startAt' | 'min' | 'max'>;
44
+ export declare const Drawer: React.ForwardRefExoticComponent<Omit<DrawerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
+ export {};
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
- export type DrawerContext = {
3
- isOpen: boolean;
4
- requestClose: () => void | Promise<void>;
5
- };
6
- export declare const DrawerContext: import("react").Context<DrawerContext | null>;
7
- export declare const useDrawerContext: () => DrawerContext;
1
+ export type DrawerContext = {
2
+ isOpen: boolean;
3
+ requestClose: () => void | Promise<void>;
4
+ };
5
+ export declare const DrawerContext: import("react").Context<DrawerContext | null>;
6
+ export declare const useDrawerContext: () => DrawerContext;
@@ -1,12 +1,12 @@
1
- import React from 'react';
2
- import { DrawerProps } from './Drawer';
3
- import './Drawer.scss';
4
- export type DrawerGlobalProps = Omit<DrawerProps, 'isOpen' | 'onRequestClose'> & {
5
- /** Uniquely identifies your drawer undet the global context. It's extremely important that `id` be unique, as it will also be attached to the DOM element. */
6
- id: string;
7
- /** Return `false` to prevent the drawer from closing. Useful for controlling flow, or for side-effects.
8
- *
9
- * Unlike in the vanilla `Drawer`, where the consumer must handle the open/close state, here state is handled by `DrawerGlobalContext`. */
10
- onBeforeClose?: () => boolean | Promise<boolean>;
11
- };
12
- export declare const DrawerGlobal: React.ForwardRefExoticComponent<Omit<DrawerGlobalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
1
+ import React from 'react';
2
+ import { DrawerProps } from './Drawer';
3
+ import './Drawer.scss';
4
+ export type DrawerGlobalProps = Omit<DrawerProps, 'isOpen' | 'onRequestClose'> & {
5
+ /** Uniquely identifies your drawer undet the global context. It's extremely important that `id` be unique, as it will also be attached to the DOM element. */
6
+ id: string;
7
+ /** Return `false` to prevent the drawer from closing. Useful for controlling flow, or for side-effects.
8
+ *
9
+ * Unlike in the vanilla `Drawer`, where the consumer must handle the open/close state, here state is handled by `DrawerGlobalContext`. */
10
+ onBeforeClose?: () => boolean | Promise<boolean>;
11
+ };
12
+ export declare const DrawerGlobal: React.ForwardRefExoticComponent<Omit<DrawerGlobalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,14 +1,14 @@
1
- import React, { FC, PropsWithChildren } from 'react';
2
- export type DrawerGlobalContext = {
3
- /** Tracks the currently open `DrawerGlobal`. Multiple `DrawerGlobal`s can be mounted/rendered simultaneoulsy but only a single one can be open at any time. */
4
- currentOpenId?: string;
5
- /** Imperatively opens a drawer mounted with a specific `id`. */
6
- requestOpen: (drawerId?: string) => void | Promise<void>;
7
- /** Imperatively closes a drawer mounted with a specific `id`. Note that usually a given drawer should only be able to close itself, but you can pass an arbitrary `drawerId` or even `forceClose` for more complex use cases. */
8
- requestClose: (drawerId?: string,
9
- /** Closes currently open drawer regardless of `drawerId`. */
10
- forceClose?: boolean) => void | Promise<void>;
11
- };
12
- export declare const DrawerGlobalContext: React.Context<DrawerGlobalContext | null>;
13
- export declare const useDrawerGlobalContext: () => DrawerGlobalContext;
14
- export declare const DrawerGlobalProvider: FC<PropsWithChildren<{}>>;
1
+ import React, { FC, PropsWithChildren } from 'react';
2
+ export type DrawerGlobalContext = {
3
+ /** Tracks the currently open `DrawerGlobal`. Multiple `DrawerGlobal`s can be mounted/rendered simultaneoulsy but only a single one can be open at any time. */
4
+ currentOpenId?: string;
5
+ /** Imperatively opens a drawer mounted with a specific `id`. */
6
+ requestOpen: (drawerId?: string) => void | Promise<void>;
7
+ /** Imperatively closes a drawer mounted with a specific `id`. Note that usually a given drawer should only be able to close itself, but you can pass an arbitrary `drawerId` or even `forceClose` for more complex use cases. */
8
+ requestClose: (drawerId?: string,
9
+ /** Closes currently open drawer regardless of `drawerId`. */
10
+ forceClose?: boolean) => void | Promise<void>;
11
+ };
12
+ export declare const DrawerGlobalContext: React.Context<DrawerGlobalContext | null>;
13
+ export declare const useDrawerGlobalContext: () => DrawerGlobalContext;
14
+ export declare const DrawerGlobalProvider: FC<PropsWithChildren<{}>>;
@@ -1,7 +1,7 @@
1
- import { MutableRefObject } from 'react';
2
- export type UseDisableParentScroll = {
3
- shouldDisable?: boolean;
4
- parentRef?: MutableRefObject<HTMLElement | null>;
5
- mode?: 'body' | 'parent';
6
- };
7
- export declare const useDisableParentScroll: ({ shouldDisable, mode, parentRef, }: UseDisableParentScroll) => void;
1
+ import { MutableRefObject } from 'react';
2
+ export type UseDisableParentScroll = {
3
+ shouldDisable?: boolean;
4
+ parentRef?: MutableRefObject<HTMLElement | null>;
5
+ mode?: 'body' | 'parent';
6
+ };
7
+ export declare const useDisableParentScroll: ({ shouldDisable, mode, parentRef, }: UseDisableParentScroll) => void;
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- export interface IAccordicard {
3
- defaultToOpen?: boolean;
4
- children: React.ReactNode;
5
- headerContent: React.ReactNode;
6
- className?: string;
7
- warning?: boolean;
8
- }
9
- export declare const LuiAccordicard: (props: IAccordicard) => React.JSX.Element;
1
+ import React from 'react';
2
+ export interface IAccordicard {
3
+ defaultToOpen?: boolean;
4
+ children: React.ReactNode;
5
+ headerContent: React.ReactNode;
6
+ className?: string;
7
+ warning?: boolean;
8
+ }
9
+ export declare const LuiAccordicard: (props: IAccordicard) => React.JSX.Element;
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- export interface IAccordicardStatic {
3
- defaultToOpen?: boolean;
4
- children: React.ReactNode;
5
- headerContent: React.ReactNode;
6
- className?: string;
7
- warning?: boolean;
8
- }
9
- export declare const LuiAccordicardStatic: (props: IAccordicardStatic) => React.JSX.Element;
1
+ import React from 'react';
2
+ export interface IAccordicardStatic {
3
+ defaultToOpen?: boolean;
4
+ children: React.ReactNode;
5
+ headerContent: React.ReactNode;
6
+ className?: string;
7
+ warning?: boolean;
8
+ }
9
+ export declare const LuiAccordicardStatic: (props: IAccordicardStatic) => React.JSX.Element;
@@ -1,12 +1,12 @@
1
- import React, { CSSProperties, ReactNode } from 'react';
2
- import './LuiAccordion.scss';
3
- export interface ILuiAccordion {
4
- heading: ReactNode;
5
- children: ReactNode;
6
- expanded?: boolean;
7
- iconColor?: string;
8
- className?: string;
9
- style?: CSSProperties;
10
- onToggleExpand?: (isOpen: boolean) => void;
11
- }
12
- export declare const LuiAccordion: (props: ILuiAccordion) => React.JSX.Element;
1
+ import React, { CSSProperties, ReactNode } from 'react';
2
+ import './LuiAccordion.scss';
3
+ export interface ILuiAccordion {
4
+ heading: ReactNode;
5
+ children: ReactNode;
6
+ expanded?: boolean;
7
+ iconColor?: string;
8
+ className?: string;
9
+ style?: CSSProperties;
10
+ onToggleExpand?: (isOpen: boolean) => void;
11
+ }
12
+ export declare const LuiAccordion: (props: ILuiAccordion) => React.JSX.Element;
@@ -1,12 +1,12 @@
1
- import React from 'react';
2
- type LuiBadgeFillVariation = 'outline' | 'fill';
3
- export interface ILuiBadge {
4
- children: React.ReactNode;
5
- size?: 'sm' | 'default' | 'lg';
6
- backgroundFill?: boolean;
7
- variation?: 'default' | 'warning' | 'info' | 'error';
8
- ariaRoleDescription: string;
9
- fillVariation?: LuiBadgeFillVariation;
10
- }
11
- export declare const LuiBadge: ({ size, variation, backgroundFill, ariaRoleDescription, fillVariation, children, }: ILuiBadge) => React.JSX.Element;
12
- export {};
1
+ import React from 'react';
2
+ type LuiBadgeFillVariation = 'outline' | 'fill';
3
+ export interface ILuiBadge {
4
+ children: React.ReactNode;
5
+ size?: 'sm' | 'default' | 'lg';
6
+ backgroundFill?: boolean;
7
+ variation?: 'default' | 'warning' | 'info' | 'error';
8
+ ariaRoleDescription: string;
9
+ fillVariation?: LuiBadgeFillVariation;
10
+ }
11
+ export declare const LuiBadge: ({ size, variation, backgroundFill, ariaRoleDescription, fillVariation, children, }: ILuiBadge) => React.JSX.Element;
12
+ export {};
@@ -1,10 +1,10 @@
1
- import React, { ReactNode } from 'react';
2
- type ILuiBanner = {
3
- level: 'success' | 'info' | 'warning' | 'error';
4
- children: ReactNode;
5
- className?: string;
6
- };
7
- export declare function getMaterialIconForLevel(level: 'success' | 'info' | 'warning' | 'error'): "info" | "warning" | "error" | "check_circle";
8
- export declare const LuiBanner: (props: ILuiBanner) => React.JSX.Element;
9
- export declare const LuiBannerContent: (props: ILuiBanner) => React.JSX.Element;
10
- export {};
1
+ import React, { ReactNode } from 'react';
2
+ type ILuiBanner = {
3
+ level: 'success' | 'info' | 'warning' | 'error';
4
+ children: ReactNode;
5
+ className?: string;
6
+ };
7
+ export declare function getMaterialIconForLevel(level: 'success' | 'info' | 'warning' | 'error'): "info" | "warning" | "error" | "check_circle";
8
+ export declare const LuiBanner: (props: ILuiBanner) => React.JSX.Element;
9
+ export declare const LuiBannerContent: (props: ILuiBanner) => React.JSX.Element;
10
+ export {};
@@ -1,22 +1,22 @@
1
- import './LuiBannerV2.scss';
2
- import { ComponentPropsWithoutRef } from 'react';
3
- import React from 'react';
4
- import { IconName } from '../LuiIcon/LuiIcon';
5
- type Button = ComponentPropsWithoutRef<'button'>;
6
- type Dismiss = {
7
- onDismiss: Button['onClick'];
8
- dismissButtonProps?: Omit<Button, 'onClick'>;
9
- } | {
10
- onDismiss?: undefined;
11
- dismissButtonProps?: never;
12
- };
13
- type Props = {
14
- level?: 'warning' | 'error' | 'info' | 'success';
15
- /**
16
- * The name of a `LuiIcon` to display in the banner. Overrides the icon
17
- * derived from `level`, allowing a custom banner.
18
- */
19
- iconName?: IconName;
20
- } & Dismiss & ComponentPropsWithoutRef<'div'>;
21
- export declare const LuiBannerV2: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
22
- export {};
1
+ import './LuiBannerV2.scss';
2
+ import { ComponentPropsWithoutRef } from 'react';
3
+ import React from 'react';
4
+ import { IconName } from '../LuiIcon/LuiIcon';
5
+ type Button = ComponentPropsWithoutRef<'button'>;
6
+ type Dismiss = {
7
+ onDismiss: Button['onClick'];
8
+ dismissButtonProps?: Omit<Button, 'onClick'>;
9
+ } | {
10
+ onDismiss?: undefined;
11
+ dismissButtonProps?: never;
12
+ };
13
+ type Props = {
14
+ level?: 'warning' | 'error' | 'info' | 'success';
15
+ /**
16
+ * The name of a `LuiIcon` to display in the banner. Overrides the icon
17
+ * derived from `level`, allowing a custom banner.
18
+ */
19
+ iconName?: IconName;
20
+ } & Dismiss & ComponentPropsWithoutRef<'div'>;
21
+ export declare const LuiBannerV2: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
22
+ export {};
@@ -1,16 +1,16 @@
1
- import React, { ReactNode } from 'react';
2
- import { LuiCommonInputProps } from '../LuiCommonInputProps';
3
- interface LuiBearingInputProps {
4
- name: string;
5
- label?: string;
6
- helperInfo?: ReactNode;
7
- tooltip?: string;
8
- value: string;
9
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
10
- validationError?: string;
11
- onValidate?: (error: string | null) => void;
12
- /** If true, validationError prop takes precedence over the internalError value. */
13
- preferValidationError?: boolean;
14
- }
15
- export declare const LuiBearingInput: React.FC<React.PropsWithChildren<LuiBearingInputProps & LuiCommonInputProps>>;
16
- export {};
1
+ import React, { ReactNode } from 'react';
2
+ import { LuiCommonInputProps } from '../LuiCommonInputProps';
3
+ interface LuiBearingInputProps {
4
+ name: string;
5
+ label?: string;
6
+ helperInfo?: ReactNode;
7
+ tooltip?: string;
8
+ value: string;
9
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
10
+ validationError?: string;
11
+ onValidate?: (error: string | null) => void;
12
+ /** If true, validationError prop takes precedence over the internalError value. */
13
+ preferValidationError?: boolean;
14
+ }
15
+ export declare const LuiBearingInput: React.FC<React.PropsWithChildren<LuiBearingInputProps & LuiCommonInputProps>>;
16
+ export {};
@@ -1,44 +1,44 @@
1
- import React, { MouseEvent, ReactNode, Ref } from 'react';
2
- export interface LuiButtonProps extends PlainButtonProps {
3
- href?: string;
4
- openInNewTab?: boolean;
5
- level?: 'text' | 'plain-text' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'error';
6
- intent?: 'danger';
7
- type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
8
- size?: 'sm' | '' | /* medium */ 'lg';
9
- loading?: boolean;
10
- }
11
- export interface PlainButtonProps {
12
- type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
13
- disabled?: boolean;
14
- style?: React.CSSProperties;
15
- onClick?: (e: MouseEvent) => void;
16
- name?: string;
17
- title?: string;
18
- 'data-testid'?: string;
19
- className?: string;
20
- buttonProps?: any;
21
- ref: Ref<HTMLButtonElement>;
22
- children: ReactNode;
23
- }
24
- export declare const PlainButton: React.ForwardRefExoticComponent<Omit<PlainButtonProps & {
25
- level: string;
26
- size: string;
27
- }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
28
- export declare const LuiButton: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<LuiButtonProps>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
29
- interface LuiButtonGroupProps {
30
- /**
31
- * LuiButton component(s) to render in series.
32
- *
33
- * While a single child element is technically supported, we recommend using
34
- * disabled styling for unavailable operations in order to communicate
35
- * possible actions. Please consult with the UX team before breaking this
36
- * style guideline.
37
- */
38
- children: ReactNode;
39
- }
40
- /**
41
- * A series of Lui buttons together.
42
- */
43
- export declare const LuiButtonGroup: (props: LuiButtonGroupProps) => React.JSX.Element;
44
- export {};
1
+ import React, { MouseEvent, ReactNode, Ref } from 'react';
2
+ export interface LuiButtonProps extends PlainButtonProps {
3
+ href?: string;
4
+ openInNewTab?: boolean;
5
+ level?: 'text' | 'plain-text' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'error';
6
+ intent?: 'danger';
7
+ type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
8
+ size?: 'sm' | '' | /* medium */ 'lg';
9
+ loading?: boolean;
10
+ }
11
+ export interface PlainButtonProps {
12
+ type?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
13
+ disabled?: boolean;
14
+ style?: React.CSSProperties;
15
+ onClick?: (e: MouseEvent) => void;
16
+ name?: string;
17
+ title?: string;
18
+ 'data-testid'?: string;
19
+ className?: string;
20
+ buttonProps?: any;
21
+ ref: Ref<HTMLButtonElement>;
22
+ children: ReactNode;
23
+ }
24
+ export declare const PlainButton: React.ForwardRefExoticComponent<Omit<PlainButtonProps & {
25
+ level: string;
26
+ size: string;
27
+ }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
28
+ export declare const LuiButton: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<LuiButtonProps>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
29
+ interface LuiButtonGroupProps {
30
+ /**
31
+ * LuiButton component(s) to render in series.
32
+ *
33
+ * While a single child element is technically supported, we recommend using
34
+ * disabled styling for unavailable operations in order to communicate
35
+ * possible actions. Please consult with the UX team before breaking this
36
+ * style guideline.
37
+ */
38
+ children: ReactNode;
39
+ }
40
+ /**
41
+ * A series of Lui buttons together.
42
+ */
43
+ export declare const LuiButtonGroup: (props: LuiButtonGroupProps) => React.JSX.Element;
44
+ export {};
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import './ColorBucket.scss';
3
- export interface ColorPaletteBucketProps {
4
- color: string;
5
- }
6
- export declare const ColorBucket: React.ForwardRefExoticComponent<ColorPaletteBucketProps & React.RefAttributes<HTMLDivElement>>;
1
+ import React from 'react';
2
+ import './ColorBucket.scss';
3
+ export interface ColorPaletteBucketProps {
4
+ color: string;
5
+ }
6
+ export declare const ColorBucket: React.ForwardRefExoticComponent<ColorPaletteBucketProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import './ColorPalette.scss';
3
- export declare const ColorInputGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
- export declare const ColorInput: React.ForwardRefExoticComponent<{
5
- name: string;
6
- color: string;
7
- description?: string | undefined;
8
- label?: Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "title" | "aria-label" | "htmlFor"> | undefined;
9
- } & Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "name" | "type" | "value"> & React.RefAttributes<HTMLInputElement>>;
1
+ import React, { ComponentProps } from 'react';
2
+ import './ColorPalette.scss';
3
+ export declare const ColorInputGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ export declare const ColorInput: React.ForwardRefExoticComponent<{
5
+ name: string;
6
+ color: string;
7
+ description?: string;
8
+ label?: Omit<ComponentProps<"label">, "htmlFor" | "aria-label" | "title">;
9
+ } & Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "name" | "type" | "value"> & React.RefAttributes<HTMLInputElement>>;