@dscout/particle 1.0.0-alpha.21 → 1.0.0-alpha.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -76
- package/lib/cjs/components/advanced_options.d.ts +3 -3
- package/lib/cjs/components/advanced_options.js +14 -13
- package/lib/cjs/components/advanced_options.js.map +1 -1
- package/lib/cjs/components/attribute_input.d.ts +4 -3
- package/lib/cjs/components/attribute_input.js +4 -3
- package/lib/cjs/components/attribute_input.js.map +1 -1
- package/lib/cjs/components/attribute_selector.d.ts +4 -3
- package/lib/cjs/components/attribute_selector.js +4 -3
- package/lib/cjs/components/attribute_selector.js.map +1 -1
- package/lib/cjs/components/avatar.d.ts +3 -3
- package/lib/cjs/components/avatar.js +3 -2
- package/lib/cjs/components/avatar.js.map +1 -1
- package/lib/cjs/components/blitz.d.ts +2 -2
- package/lib/cjs/components/blitz.js +28 -4
- package/lib/cjs/components/blitz.js.map +1 -1
- package/lib/cjs/components/button.d.ts +3 -3
- package/lib/cjs/components/button.js +3 -2
- package/lib/cjs/components/button.js.map +1 -1
- package/lib/cjs/components/button_control.d.ts +3 -3
- package/lib/cjs/components/button_control.js +3 -2
- package/lib/cjs/components/button_control.js.map +1 -1
- package/lib/cjs/components/button_icon.d.ts +10 -10
- package/lib/cjs/components/button_icon.js +3 -2
- package/lib/cjs/components/button_icon.js.map +1 -1
- package/lib/cjs/components/button_mode.d.ts +3 -3
- package/lib/cjs/components/button_mode.js +3 -2
- package/lib/cjs/components/button_mode.js.map +1 -1
- package/lib/cjs/components/button_plain.d.ts +3 -3
- package/lib/cjs/components/button_plain.js +3 -2
- package/lib/cjs/components/button_plain.js.map +1 -1
- package/lib/cjs/components/card.d.ts +3 -3
- package/lib/cjs/components/card.js +3 -2
- package/lib/cjs/components/card.js.map +1 -1
- package/lib/cjs/components/card_body.d.ts +3 -3
- package/lib/cjs/components/card_body.js +3 -2
- package/lib/cjs/components/card_body.js.map +1 -1
- package/lib/cjs/components/card_footer.d.ts +3 -3
- package/lib/cjs/components/card_footer.js +3 -2
- package/lib/cjs/components/card_footer.js.map +1 -1
- package/lib/cjs/components/cards.d.ts +3 -3
- package/lib/cjs/components/cards.js +3 -2
- package/lib/cjs/components/cards.js.map +1 -1
- package/lib/cjs/components/checkbox_input.d.ts +5 -3
- package/lib/cjs/components/checkbox_input.js +4 -3
- package/lib/cjs/components/checkbox_input.js.map +1 -1
- package/lib/cjs/components/chip.d.ts +3 -3
- package/lib/cjs/components/chip.js +3 -2
- package/lib/cjs/components/chip.js.map +1 -1
- package/lib/cjs/components/collapsible_content.d.ts +3 -3
- package/lib/cjs/components/collapsible_content.js +11 -3
- package/lib/cjs/components/collapsible_content.js.map +1 -1
- package/lib/cjs/components/collapsing_menu.d.ts +3 -3
- package/lib/cjs/components/collapsing_menu.js +39 -16
- package/lib/cjs/components/collapsing_menu.js.map +1 -1
- package/lib/cjs/components/column.d.ts +2 -2
- package/lib/cjs/components/common_input.d.ts +3 -3
- package/lib/cjs/components/common_input.js +4 -2
- package/lib/cjs/components/common_input.js.map +1 -1
- package/lib/cjs/components/common_menu_item.d.ts +3 -3
- package/lib/cjs/components/common_menu_item.js +2 -2
- package/lib/cjs/components/common_menu_item.js.map +1 -1
- package/lib/cjs/components/container.d.ts +4 -3
- package/lib/cjs/components/container.js +8 -3
- package/lib/cjs/components/container.js.map +1 -1
- package/lib/cjs/components/container_header.d.ts +2 -2
- package/lib/cjs/components/date_input.d.ts +3 -3
- package/lib/cjs/components/date_input.js +2 -2
- package/lib/cjs/components/date_input.js.map +1 -1
- package/lib/cjs/components/drag_and_drop.d.ts +5 -3
- package/lib/cjs/components/drag_and_drop.js +4 -3
- package/lib/cjs/components/drag_and_drop.js.map +1 -1
- package/lib/cjs/components/dropdown.d.ts +2 -2
- package/lib/cjs/components/dropdown.js +3 -2
- package/lib/cjs/components/dropdown.js.map +1 -1
- package/lib/cjs/components/dropdown_input_toggle.d.ts +3 -3
- package/lib/cjs/components/dropdown_input_toggle.js +3 -2
- package/lib/cjs/components/dropdown_input_toggle.js.map +1 -1
- package/lib/cjs/components/editing_container.d.ts +2 -2
- package/lib/cjs/components/editing_container.js +8 -3
- package/lib/cjs/components/editing_container.js.map +1 -1
- package/lib/cjs/components/email_input.d.ts +3 -3
- package/lib/cjs/components/email_input.js +2 -2
- package/lib/cjs/components/email_input.js.map +1 -1
- package/lib/cjs/components/file_input.d.ts +5 -3
- package/lib/cjs/components/file_input.js +6 -4
- package/lib/cjs/components/file_input.js.map +1 -1
- package/lib/cjs/components/flex.d.ts +11 -4
- package/lib/cjs/components/flex.js +17 -11
- package/lib/cjs/components/flex.js.map +1 -1
- package/lib/cjs/components/focus_trap.d.ts +1 -1
- package/lib/cjs/components/footnote.d.ts +3 -3
- package/lib/cjs/components/footnote.js +3 -2
- package/lib/cjs/components/footnote.js.map +1 -1
- package/lib/cjs/components/heading.d.ts +3 -3
- package/lib/cjs/components/heading.js +4 -3
- package/lib/cjs/components/heading.js.map +1 -1
- package/lib/cjs/components/input_addon.js +1 -1
- package/lib/cjs/components/input_addon.js.map +1 -1
- package/lib/cjs/components/input_group.d.ts +3 -3
- package/lib/cjs/components/input_group.js +3 -2
- package/lib/cjs/components/input_group.js.map +1 -1
- package/lib/cjs/components/input_group_item.js +1 -1
- package/lib/cjs/components/input_group_item.js.map +1 -1
- package/lib/cjs/components/link_text.d.ts +3 -3
- package/lib/cjs/components/link_text.js +3 -2
- package/lib/cjs/components/link_text.js.map +1 -1
- package/lib/cjs/components/list.d.ts +3 -3
- package/lib/cjs/components/list.js +4 -3
- package/lib/cjs/components/list.js.map +1 -1
- package/lib/cjs/components/list_inline.d.ts +3 -3
- package/lib/cjs/components/list_inline.js +4 -3
- package/lib/cjs/components/list_inline.js.map +1 -1
- package/lib/cjs/components/menu.d.ts +3 -3
- package/lib/cjs/components/menu.js +3 -2
- package/lib/cjs/components/menu.js.map +1 -1
- package/lib/cjs/components/menu_item.d.ts +3 -3
- package/lib/cjs/components/menu_item.js +2 -2
- package/lib/cjs/components/menu_item.js.map +1 -1
- package/lib/cjs/components/menu_item_li.d.ts +2 -2
- package/lib/cjs/components/menu_item_li.js +2 -2
- package/lib/cjs/components/menu_item_li.js.map +1 -1
- package/lib/cjs/components/menu_link.d.ts +3 -3
- package/lib/cjs/components/menu_link.js +2 -2
- package/lib/cjs/components/menu_link.js.map +1 -1
- package/lib/cjs/components/menu_list.d.ts +3 -3
- package/lib/cjs/components/menu_list.js +3 -2
- package/lib/cjs/components/menu_list.js.map +1 -1
- package/lib/cjs/components/menu_section.d.ts +3 -3
- package/lib/cjs/components/menu_section.js +3 -2
- package/lib/cjs/components/menu_section.js.map +1 -1
- package/lib/cjs/components/menu_title.d.ts +3 -3
- package/lib/cjs/components/menu_title.js +3 -2
- package/lib/cjs/components/menu_title.js.map +1 -1
- package/lib/cjs/components/modal.d.ts +5 -3
- package/lib/cjs/components/modal.js +3 -3
- package/lib/cjs/components/modal.js.map +1 -1
- package/lib/cjs/components/modifier.d.ts +13 -13
- package/lib/cjs/components/modifier.js +3 -43
- package/lib/cjs/components/modifier.js.map +1 -1
- package/lib/cjs/components/number_input.d.ts +3 -3
- package/lib/cjs/components/number_input.js +2 -2
- package/lib/cjs/components/number_input.js.map +1 -1
- package/lib/cjs/components/password_input.d.ts +3 -3
- package/lib/cjs/components/password_input.js +2 -2
- package/lib/cjs/components/password_input.js.map +1 -1
- package/lib/cjs/components/pill.d.ts +3 -3
- package/lib/cjs/components/pill.js +3 -2
- package/lib/cjs/components/pill.js.map +1 -1
- package/lib/cjs/components/radio_input.d.ts +4 -3
- package/lib/cjs/components/radio_input.js +4 -3
- package/lib/cjs/components/radio_input.js.map +1 -1
- package/lib/cjs/components/range_input.d.ts +4 -3
- package/lib/cjs/components/range_input.js +5 -3
- package/lib/cjs/components/range_input.js.map +1 -1
- package/lib/cjs/components/row.d.ts +3 -3
- package/lib/cjs/components/row.js +3 -2
- package/lib/cjs/components/row.js.map +1 -1
- package/lib/cjs/components/search_input.d.ts +3 -3
- package/lib/cjs/components/search_input.js +2 -2
- package/lib/cjs/components/search_input.js.map +1 -1
- package/lib/cjs/components/segmented_controls.d.ts +3 -3
- package/lib/cjs/components/segmented_controls.js +3 -2
- package/lib/cjs/components/segmented_controls.js.map +1 -1
- package/lib/cjs/components/select_input.d.ts +5 -3
- package/lib/cjs/components/select_input.js +6 -4
- package/lib/cjs/components/select_input.js.map +1 -1
- package/lib/cjs/components/separator.d.ts +2 -2
- package/lib/cjs/components/speech_bubble.d.ts +3 -3
- package/lib/cjs/components/speech_bubble.js +3 -2
- package/lib/cjs/components/speech_bubble.js.map +1 -1
- package/lib/cjs/components/tags_input.d.ts +2 -2
- package/lib/cjs/components/tags_input.js +3 -2
- package/lib/cjs/components/tags_input.js.map +1 -1
- package/lib/cjs/components/text_input.d.ts +3 -3
- package/lib/cjs/components/text_input.js +2 -2
- package/lib/cjs/components/text_input.js.map +1 -1
- package/lib/cjs/components/textarea.d.ts +5 -3
- package/lib/cjs/components/textarea.js +5 -4
- package/lib/cjs/components/textarea.js.map +1 -1
- package/lib/cjs/components/theme_provider.d.ts +29 -1
- package/lib/cjs/components/theme_provider.js +28 -28
- package/lib/cjs/components/theme_provider.js.map +1 -1
- package/lib/cjs/components/thumbnail.d.ts +3 -3
- package/lib/cjs/components/thumbnail.js +3 -2
- package/lib/cjs/components/thumbnail.js.map +1 -1
- package/lib/cjs/components/togglable_fieldset.d.ts +3 -3
- package/lib/cjs/components/togglable_fieldset.js +7 -7
- package/lib/cjs/components/togglable_fieldset.js.map +1 -1
- package/lib/cjs/components/toggle.d.ts +5 -3
- package/lib/cjs/components/toggle.js +4 -3
- package/lib/cjs/components/toggle.js.map +1 -1
- package/lib/cjs/components/tooltip.d.ts +2 -2
- package/lib/cjs/components/tooltip_container.d.ts +3 -3
- package/lib/cjs/components/tooltip_container.js +3 -2
- package/lib/cjs/components/tooltip_container.js.map +1 -1
- package/lib/cjs/components/with_addons.d.ts +3 -3
- package/lib/cjs/components/with_addons.js +2 -2
- package/lib/cjs/components/with_addons.js.map +1 -1
- package/lib/cjs/index.d.ts +0 -1
- package/lib/cjs/index.js +5 -7
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/types.d.ts +17 -4
- package/lib/cjs/utils/dom.d.ts +1 -1
- package/lib/cjs/utils/modifier_classes.d.ts +6 -0
- package/lib/cjs/utils/modifier_classes.js +57 -0
- package/lib/cjs/utils/modifier_classes.js.map +1 -0
- package/lib/cjs/utils/strings.d.ts +0 -2
- package/lib/cjs/utils/strings.js +1 -8
- package/lib/cjs/utils/strings.js.map +1 -1
- package/lib/esm/components/advanced_options.d.ts +3 -3
- package/lib/esm/components/advanced_options.js +15 -14
- package/lib/esm/components/advanced_options.js.map +1 -1
- package/lib/esm/components/attribute_input.d.ts +4 -3
- package/lib/esm/components/attribute_input.js +4 -3
- package/lib/esm/components/attribute_input.js.map +1 -1
- package/lib/esm/components/attribute_selector.d.ts +4 -3
- package/lib/esm/components/attribute_selector.js +4 -3
- package/lib/esm/components/attribute_selector.js.map +1 -1
- package/lib/esm/components/avatar.d.ts +3 -3
- package/lib/esm/components/avatar.js +3 -2
- package/lib/esm/components/avatar.js.map +1 -1
- package/lib/esm/components/blitz.d.ts +2 -2
- package/lib/esm/components/blitz.js +5 -4
- package/lib/esm/components/blitz.js.map +1 -1
- package/lib/esm/components/button.d.ts +3 -3
- package/lib/esm/components/button.js +3 -2
- package/lib/esm/components/button.js.map +1 -1
- package/lib/esm/components/button_control.d.ts +3 -3
- package/lib/esm/components/button_control.js +3 -2
- package/lib/esm/components/button_control.js.map +1 -1
- package/lib/esm/components/button_icon.d.ts +10 -10
- package/lib/esm/components/button_icon.js +3 -2
- package/lib/esm/components/button_icon.js.map +1 -1
- package/lib/esm/components/button_mode.d.ts +3 -3
- package/lib/esm/components/button_mode.js +3 -2
- package/lib/esm/components/button_mode.js.map +1 -1
- package/lib/esm/components/button_plain.d.ts +3 -3
- package/lib/esm/components/button_plain.js +3 -2
- package/lib/esm/components/button_plain.js.map +1 -1
- package/lib/esm/components/card.d.ts +3 -3
- package/lib/esm/components/card.js +3 -2
- package/lib/esm/components/card.js.map +1 -1
- package/lib/esm/components/card_body.d.ts +3 -3
- package/lib/esm/components/card_body.js +3 -2
- package/lib/esm/components/card_body.js.map +1 -1
- package/lib/esm/components/card_footer.d.ts +3 -3
- package/lib/esm/components/card_footer.js +3 -2
- package/lib/esm/components/card_footer.js.map +1 -1
- package/lib/esm/components/cards.d.ts +3 -3
- package/lib/esm/components/cards.js +3 -2
- package/lib/esm/components/cards.js.map +1 -1
- package/lib/esm/components/checkbox_input.d.ts +5 -3
- package/lib/esm/components/checkbox_input.js +4 -3
- package/lib/esm/components/checkbox_input.js.map +1 -1
- package/lib/esm/components/chip.d.ts +3 -3
- package/lib/esm/components/chip.js +3 -2
- package/lib/esm/components/chip.js.map +1 -1
- package/lib/esm/components/collapsible_content.d.ts +3 -3
- package/lib/esm/components/collapsible_content.js +11 -3
- package/lib/esm/components/collapsible_content.js.map +1 -1
- package/lib/esm/components/collapsing_menu.d.ts +3 -3
- package/lib/esm/components/collapsing_menu.js +16 -16
- package/lib/esm/components/collapsing_menu.js.map +1 -1
- package/lib/esm/components/column.d.ts +2 -2
- package/lib/esm/components/common_input.d.ts +3 -3
- package/lib/esm/components/common_input.js +4 -2
- package/lib/esm/components/common_input.js.map +1 -1
- package/lib/esm/components/common_menu_item.d.ts +3 -3
- package/lib/esm/components/common_menu_item.js +2 -2
- package/lib/esm/components/common_menu_item.js.map +1 -1
- package/lib/esm/components/container.d.ts +4 -3
- package/lib/esm/components/container.js +8 -3
- package/lib/esm/components/container.js.map +1 -1
- package/lib/esm/components/container_header.d.ts +2 -2
- package/lib/esm/components/date_input.d.ts +3 -3
- package/lib/esm/components/date_input.js +2 -2
- package/lib/esm/components/date_input.js.map +1 -1
- package/lib/esm/components/drag_and_drop.d.ts +5 -3
- package/lib/esm/components/drag_and_drop.js +4 -3
- package/lib/esm/components/drag_and_drop.js.map +1 -1
- package/lib/esm/components/dropdown.d.ts +2 -2
- package/lib/esm/components/dropdown.js +3 -2
- package/lib/esm/components/dropdown.js.map +1 -1
- package/lib/esm/components/dropdown_input_toggle.d.ts +3 -3
- package/lib/esm/components/dropdown_input_toggle.js +3 -2
- package/lib/esm/components/dropdown_input_toggle.js.map +1 -1
- package/lib/esm/components/editing_container.d.ts +2 -2
- package/lib/esm/components/editing_container.js +8 -3
- package/lib/esm/components/editing_container.js.map +1 -1
- package/lib/esm/components/email_input.d.ts +3 -3
- package/lib/esm/components/email_input.js +2 -2
- package/lib/esm/components/email_input.js.map +1 -1
- package/lib/esm/components/file_input.d.ts +5 -3
- package/lib/esm/components/file_input.js +6 -4
- package/lib/esm/components/file_input.js.map +1 -1
- package/lib/esm/components/flex.d.ts +11 -4
- package/lib/esm/components/flex.js +17 -11
- package/lib/esm/components/flex.js.map +1 -1
- package/lib/esm/components/focus_trap.d.ts +1 -1
- package/lib/esm/components/footnote.d.ts +3 -3
- package/lib/esm/components/footnote.js +3 -2
- package/lib/esm/components/footnote.js.map +1 -1
- package/lib/esm/components/heading.d.ts +3 -3
- package/lib/esm/components/heading.js +4 -3
- package/lib/esm/components/heading.js.map +1 -1
- package/lib/esm/components/input_addon.js +1 -1
- package/lib/esm/components/input_addon.js.map +1 -1
- package/lib/esm/components/input_group.d.ts +3 -3
- package/lib/esm/components/input_group.js +3 -2
- package/lib/esm/components/input_group.js.map +1 -1
- package/lib/esm/components/input_group_item.js +1 -1
- package/lib/esm/components/input_group_item.js.map +1 -1
- package/lib/esm/components/link_text.d.ts +3 -3
- package/lib/esm/components/link_text.js +3 -2
- package/lib/esm/components/link_text.js.map +1 -1
- package/lib/esm/components/list.d.ts +3 -3
- package/lib/esm/components/list.js +4 -3
- package/lib/esm/components/list.js.map +1 -1
- package/lib/esm/components/list_inline.d.ts +3 -3
- package/lib/esm/components/list_inline.js +4 -3
- package/lib/esm/components/list_inline.js.map +1 -1
- package/lib/esm/components/menu.d.ts +3 -3
- package/lib/esm/components/menu.js +3 -2
- package/lib/esm/components/menu.js.map +1 -1
- package/lib/esm/components/menu_item.d.ts +3 -3
- package/lib/esm/components/menu_item.js +2 -2
- package/lib/esm/components/menu_item.js.map +1 -1
- package/lib/esm/components/menu_item_li.d.ts +2 -2
- package/lib/esm/components/menu_item_li.js +2 -2
- package/lib/esm/components/menu_item_li.js.map +1 -1
- package/lib/esm/components/menu_link.d.ts +3 -3
- package/lib/esm/components/menu_link.js +2 -2
- package/lib/esm/components/menu_link.js.map +1 -1
- package/lib/esm/components/menu_list.d.ts +3 -3
- package/lib/esm/components/menu_list.js +3 -2
- package/lib/esm/components/menu_list.js.map +1 -1
- package/lib/esm/components/menu_section.d.ts +3 -3
- package/lib/esm/components/menu_section.js +3 -2
- package/lib/esm/components/menu_section.js.map +1 -1
- package/lib/esm/components/menu_title.d.ts +3 -3
- package/lib/esm/components/menu_title.js +3 -2
- package/lib/esm/components/menu_title.js.map +1 -1
- package/lib/esm/components/modal.d.ts +5 -3
- package/lib/esm/components/modal.js +3 -3
- package/lib/esm/components/modal.js.map +1 -1
- package/lib/esm/components/modifier.d.ts +13 -13
- package/lib/esm/components/modifier.js +3 -43
- package/lib/esm/components/modifier.js.map +1 -1
- package/lib/esm/components/number_input.d.ts +3 -3
- package/lib/esm/components/number_input.js +2 -2
- package/lib/esm/components/number_input.js.map +1 -1
- package/lib/esm/components/password_input.d.ts +3 -3
- package/lib/esm/components/password_input.js +2 -2
- package/lib/esm/components/password_input.js.map +1 -1
- package/lib/esm/components/pill.d.ts +3 -3
- package/lib/esm/components/pill.js +3 -2
- package/lib/esm/components/pill.js.map +1 -1
- package/lib/esm/components/radio_input.d.ts +4 -3
- package/lib/esm/components/radio_input.js +4 -3
- package/lib/esm/components/radio_input.js.map +1 -1
- package/lib/esm/components/range_input.d.ts +4 -3
- package/lib/esm/components/range_input.js +5 -3
- package/lib/esm/components/range_input.js.map +1 -1
- package/lib/esm/components/row.d.ts +3 -3
- package/lib/esm/components/row.js +3 -2
- package/lib/esm/components/row.js.map +1 -1
- package/lib/esm/components/search_input.d.ts +3 -3
- package/lib/esm/components/search_input.js +2 -2
- package/lib/esm/components/search_input.js.map +1 -1
- package/lib/esm/components/segmented_controls.d.ts +3 -3
- package/lib/esm/components/segmented_controls.js +3 -2
- package/lib/esm/components/segmented_controls.js.map +1 -1
- package/lib/esm/components/select_input.d.ts +5 -3
- package/lib/esm/components/select_input.js +6 -4
- package/lib/esm/components/select_input.js.map +1 -1
- package/lib/esm/components/separator.d.ts +2 -2
- package/lib/esm/components/speech_bubble.d.ts +3 -3
- package/lib/esm/components/speech_bubble.js +3 -2
- package/lib/esm/components/speech_bubble.js.map +1 -1
- package/lib/esm/components/tags_input.d.ts +2 -2
- package/lib/esm/components/tags_input.js +3 -2
- package/lib/esm/components/tags_input.js.map +1 -1
- package/lib/esm/components/text_input.d.ts +3 -3
- package/lib/esm/components/text_input.js +2 -2
- package/lib/esm/components/text_input.js.map +1 -1
- package/lib/esm/components/textarea.d.ts +5 -3
- package/lib/esm/components/textarea.js +5 -4
- package/lib/esm/components/textarea.js.map +1 -1
- package/lib/esm/components/theme_provider.d.ts +29 -1
- package/lib/esm/components/theme_provider.js +28 -28
- package/lib/esm/components/theme_provider.js.map +1 -1
- package/lib/esm/components/thumbnail.d.ts +3 -3
- package/lib/esm/components/thumbnail.js +3 -2
- package/lib/esm/components/thumbnail.js.map +1 -1
- package/lib/esm/components/togglable_fieldset.d.ts +3 -3
- package/lib/esm/components/togglable_fieldset.js +7 -7
- package/lib/esm/components/togglable_fieldset.js.map +1 -1
- package/lib/esm/components/toggle.d.ts +5 -3
- package/lib/esm/components/toggle.js +4 -3
- package/lib/esm/components/toggle.js.map +1 -1
- package/lib/esm/components/tooltip.d.ts +2 -2
- package/lib/esm/components/tooltip_container.d.ts +3 -3
- package/lib/esm/components/tooltip_container.js +3 -2
- package/lib/esm/components/tooltip_container.js.map +1 -1
- package/lib/esm/components/with_addons.d.ts +3 -3
- package/lib/esm/components/with_addons.js +2 -2
- package/lib/esm/components/with_addons.js.map +1 -1
- package/lib/esm/index.d.ts +0 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/types.d.ts +17 -4
- package/lib/esm/utils/dom.d.ts +1 -1
- package/lib/esm/utils/modifier_classes.d.ts +6 -0
- package/lib/esm/utils/modifier_classes.js +46 -0
- package/lib/esm/utils/modifier_classes.js.map +1 -0
- package/lib/esm/utils/strings.d.ts +0 -2
- package/lib/esm/utils/strings.js +0 -6
- package/lib/esm/utils/strings.js.map +1 -1
- package/lib/stylesheets/particle.css +188 -156
- package/lib/stylesheets/particle.css.map +1 -1
- package/lib/stylesheets/particle.min.css +1 -1
- package/lib/stylesheets/particle.min.css.gz +0 -0
- package/package.json +1 -1
- package/styles/color_schemes/_base_colors.scss +1 -1
- package/styles/components/collapsible/_base.scss +11 -3
- package/styles/components/container/_base.scss +32 -5
- package/styles/components/container/themes/_theme_builder.scss +12 -6
- package/styles/components/drag_and_drop/themes/_theme_builder.scss +3 -3
- package/styles/utilities/_shadows.scss +4 -0
- package/styles/utilities/_spacing.scss +59 -39
- package/lib/cjs/components/collapsible.d.ts +0 -10
- package/lib/cjs/components/collapsible.js +0 -17
- package/lib/cjs/components/collapsible.js.map +0 -1
- package/lib/cjs/components/focus_intent.d.ts +0 -23
- package/lib/cjs/components/focus_intent.js +0 -92
- package/lib/cjs/components/focus_intent.js.map +0 -1
- package/lib/esm/components/collapsible.d.ts +0 -10
- package/lib/esm/components/collapsible.js +0 -13
- package/lib/esm/components/collapsible.js.map +0 -1
- package/lib/esm/components/focus_intent.d.ts +0 -23
- package/lib/esm/components/focus_intent.js +0 -66
- package/lib/esm/components/focus_intent.js.map +0 -1
|
@@ -25,6 +25,7 @@ import classNames from '../utils/class_names';
|
|
|
25
25
|
import { calculateHeight, formatPx, setElementStyle } from '../utils/dom';
|
|
26
26
|
import { handleGetRef } from '../utils/refs';
|
|
27
27
|
import getDataAttributes from '../utils/data_attributes';
|
|
28
|
+
import { getMarginClass } from '../utils/modifier_classes';
|
|
28
29
|
import { useLayoutEffectAfterMount, useTimeout } from './shared_hooks';
|
|
29
30
|
var HEIGHT_BUFFER = 10;
|
|
30
31
|
var TRANSITION_DURATION = 200; // should match the duration defined in CSS
|
|
@@ -36,7 +37,7 @@ var TRANSITION_DURATION = 200; // should match the duration defined in CSS
|
|
|
36
37
|
* that any content that might change height will not be cut off.
|
|
37
38
|
*/
|
|
38
39
|
export function CollapsibleContent(_a) {
|
|
39
|
-
var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, collapsedProp = _a.collapsed, getRef = _a.getRef, id = _a.id, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "collapsed", "getRef", "id"]);
|
|
40
|
+
var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, collapsedProp = _a.collapsed, getRef = _a.getRef, id = _a.id, margin = _a.margin, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "collapsed", "getRef", "id", "margin"]);
|
|
40
41
|
var _b = useState(collapsedProp), collapsedState = _b[0], setCollapsedState = _b[1];
|
|
41
42
|
var _c = useState(false), transitioningState = _c[0], setTransitioningState = _c[1];
|
|
42
43
|
var content = useRef();
|
|
@@ -70,9 +71,16 @@ export function CollapsibleContent(_a) {
|
|
|
70
71
|
setMaxHeight(collapsedState);
|
|
71
72
|
startTransitionTimeout();
|
|
72
73
|
}, [collapsedState]);
|
|
73
|
-
var wrapperClassNames = classNames('Collapsible__Wrapper', _modifierClass, {
|
|
74
|
+
var wrapperClassNames = classNames('Collapsible__Wrapper', _modifierClass, getMarginClass(margin), {
|
|
74
75
|
'Collapsible__Wrapper--collapsed': collapsedState,
|
|
75
|
-
'Collapsible__Wrapper--transitioning': transitioningState
|
|
76
|
+
'Collapsible__Wrapper--transitioning': transitioningState,
|
|
77
|
+
/**
|
|
78
|
+
* This margin utility class prevents the wrapper from adding extra vertical
|
|
79
|
+
* space when collapsed. The utility class is used instead of a CSS property
|
|
80
|
+
* so that it take precedence over any default margin applied by a
|
|
81
|
+
* a parent's `.spacing-v--` utility class.
|
|
82
|
+
*/
|
|
83
|
+
'margin-b--none': collapsedState || transitioningState
|
|
76
84
|
});
|
|
77
85
|
var contentClassNames = classNames('Collapsible__Content', {
|
|
78
86
|
'Collapsible__Content--collapsed': collapsedState
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible_content.js","sourceRoot":"","sources":["../../../src/components/collapsible_content.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"collapsible_content.js","sourceRoot":"","sources":["../../../src/components/collapsible_content.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAShD,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,yBAAyB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAYvE,IAAM,aAAa,GAAG,EAAE,CAAC;AACzB,IAAM,mBAAmB,GAAG,GAAG,CAAC,CAAC,2CAA2C;AAE5E;;;;;;GAMG;AAEH,MAAM,UAAU,kBAAkB,CAAC,EAWT;IAVx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,CAAC;IAC9B,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,yBAAyB,CAAC;QACxB,IAAI,kBAAkB;YAAE,YAAY,CAAC,cAAc,CAAC,CAAC;QACrD,iBAAiB,CAAC,aAAa,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEzB,yBAAyB,CAAC;QACxB,YAAY,CAAC,cAAc,CAAC,CAAC;QAC7B,sBAAsB,EAAE,CAAC;IAC3B,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,IAAM,iBAAiB,GAAG,UAAU,CAClC,sBAAsB,EACtB,cAAc,EACd,cAAc,CAAC,MAAM,CAAC,EACtB;QACE,iCAAiC,EAAE,cAAc;QACjD,qCAAqC,EAAE,kBAAkB;QACzD;;;;;WAKG;QACH,gBAAgB,EAAE,cAAc,IAAI,kBAAkB;KACvD,CACF,CAAC;IAEF,IAAM,iBAAiB,GAAG,UAAU,CAAC,sBAAsB,EAAE;QAC3D,iCAAiC,EAAE,cAAc;KAClD,CAAC,CAAC;IAEH,OAAO,CACL,wCACM,iBAAiB,CAAC,IAAI,CAAC,kBACf,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,UAAC,GAAG;YACP,YAAY,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;YAC3B,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC5B,CAAC;QAED,6BAAK,SAAS,EAAE,iBAAiB,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,OAAO,IACpD,QAAQ,CACL,CACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
|
-
interface CollapsingMenuProps extends CommonComponentProps,
|
|
4
|
+
interface CollapsingMenuProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
collapsedTitle?: string;
|
|
7
7
|
expandedTitle?: string;
|
|
@@ -11,5 +11,5 @@ interface CollapsingMenuProps extends CommonComponentProps, ModifierProps {
|
|
|
11
11
|
initialCollapsed?: boolean;
|
|
12
12
|
name?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare function CollapsingMenu({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, collapsedTitle, expandedTitle, getRef, heading, id, initialCollapsed, name, ...rest }: CollapsingMenuProps): React.JSX.Element;
|
|
14
|
+
export declare function CollapsingMenu({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, collapsedTitle, expandedTitle, getRef, heading, id, initialCollapsed, margin, name, ...rest }: CollapsingMenuProps): React.JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -20,14 +20,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import React from 'react';
|
|
23
|
+
import React, { useState } from 'react';
|
|
24
24
|
import classNames from '../utils/class_names';
|
|
25
25
|
import getDataAttributes from '../utils/data_attributes';
|
|
26
|
+
import { getMarginClass } from '../utils/modifier_classes';
|
|
26
27
|
import { Flex } from './flex';
|
|
27
28
|
import { CollapsibleContent } from './collapsible_content';
|
|
28
29
|
import { IconCircleMinus } from '../icons/circle_minus';
|
|
29
30
|
import { IconCirclePlus } from '../icons/circle_plus';
|
|
30
|
-
import { CollapsibleStateProvider } from './collapsible';
|
|
31
31
|
import { Separator } from './separator';
|
|
32
32
|
import { useFallbackId } from './shared_hooks';
|
|
33
33
|
function renderIcon(isCollapsed) {
|
|
@@ -36,20 +36,20 @@ function renderIcon(isCollapsed) {
|
|
|
36
36
|
return React.createElement(IconCircleMinus, null);
|
|
37
37
|
}
|
|
38
38
|
export function CollapsingMenu(_a) {
|
|
39
|
-
var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, collapsedTitle = _a.collapsedTitle, expandedTitle = _a.expandedTitle, getRef = _a.getRef, heading = _a.heading, id = _a.id, _b = _a.initialCollapsed, initialCollapsed = _b === void 0 ? false : _b, name = _a.name, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "collapsedTitle", "expandedTitle", "getRef", "heading", "id", "initialCollapsed", "name"]);
|
|
40
|
-
var
|
|
39
|
+
var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, collapsedTitle = _a.collapsedTitle, expandedTitle = _a.expandedTitle, getRef = _a.getRef, heading = _a.heading, id = _a.id, _b = _a.initialCollapsed, initialCollapsed = _b === void 0 ? false : _b, margin = _a.margin, name = _a.name, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "collapsedTitle", "expandedTitle", "getRef", "heading", "id", "initialCollapsed", "margin", "name"]);
|
|
40
|
+
var _c = useState(initialCollapsed), isCollapsed = _c[0], setIsCollapsed = _c[1];
|
|
41
|
+
var className = classNames('Menu', 'Menu--tight', 'Menu--contained', getMarginClass(margin), _modifierClass);
|
|
41
42
|
var collapsibleContentId = useFallbackId(id);
|
|
42
|
-
return (React.createElement(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}));
|
|
43
|
+
return (React.createElement("div", { className: className, ref: getRef },
|
|
44
|
+
React.createElement("header", { className: "margin-b--none" },
|
|
45
|
+
React.createElement("button", __assign({}, getDataAttributes(rest), { "aria-controls": collapsibleContentId, "aria-expanded": !isCollapsed, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: "Menu__Title Menu__Toggle", name: name ? "".concat(name, "_toggle") : 'toggle', onClick: function () {
|
|
46
|
+
setIsCollapsed(function (prevCollapsed) { return !prevCollapsed; });
|
|
47
|
+
}, title: isCollapsed ? collapsedTitle : expandedTitle, type: "button" }),
|
|
48
|
+
React.createElement(Flex, { justify: "between", width: "100%" },
|
|
49
|
+
heading,
|
|
50
|
+
React.createElement("div", { className: "Menu__Toggle-Icon" }, renderIcon(isCollapsed))))),
|
|
51
|
+
React.createElement(CollapsibleContent, { id: collapsibleContentId, collapsed: isCollapsed },
|
|
52
|
+
React.createElement(Separator, { size: "0.25" }),
|
|
53
|
+
children)));
|
|
54
54
|
}
|
|
55
55
|
//# sourceMappingURL=collapsing_menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsing_menu.js","sourceRoot":"","sources":["../../../src/components/collapsing_menu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"collapsing_menu.js","sourceRoot":"","sources":["../../../src/components/collapsing_menu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AASxC,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACx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E;oBACP,cAAc,CAAC,UAAC,aAAa,IAAK,OAAA,CAAC,aAAa,EAAd,CAAc,CAAC,CAAC;gBACpD,CAAC,EACD,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,aAAa,EACnD,IAAI,EAAC,QAAQ;gBAEb,oBAAC,IAAI,IAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,MAAM;oBACjC,OAAO;oBACR,6BAAK,SAAS,EAAC,mBAAmB,IAAE,UAAU,CAAC,WAAW,CAAC,CAAO,CAC7D,CACA,CACF;QACT,oBAAC,kBAAkB,IAAC,EAAE,EAAE,oBAAoB,EAAE,SAAS,EAAE,WAAW;YAClE,oBAAC,SAAS,IAAC,IAAI,EAAC,MAAM,GAAG;YACxB,QAAQ,CACU,CACjB,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { CommonComponentProps, ModifierClassProp } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
|
-
interface ColumnProps extends CommonComponentProps,
|
|
4
|
+
interface ColumnProps extends CommonComponentProps, ModifierClassProp {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
getRef?: GetRef<HTMLDivElement>;
|
|
7
7
|
id?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { GetRef } from '../utils/refs';
|
|
3
|
-
import type { CommonComponentProps,
|
|
4
|
-
interface CommonInputProps extends CommonComponentProps,
|
|
3
|
+
import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
|
|
4
|
+
interface CommonInputProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
|
|
5
5
|
'aria-invalid'?: React.AriaAttributes['aria-invalid'];
|
|
6
6
|
'aria-required'?: React.AriaAttributes['aria-required'];
|
|
7
7
|
autoComplete?: string;
|
|
@@ -31,5 +31,5 @@ interface CommonInputProps extends CommonComponentProps, ModifierProps {
|
|
|
31
31
|
type?: string;
|
|
32
32
|
value?: number | string;
|
|
33
33
|
}
|
|
34
|
-
export declare function CommonInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, autoFocus, defaultValue, disabled, getRef, id, invalid, max, maxLength, min, mini, name, onBlur, onChange, onFocus, onKeyDown, onPaste, placeholder, prefix, readOnly, required, suffix, step, tabIndex, type, value, ...rest }: CommonInputProps): React.JSX.Element;
|
|
34
|
+
export declare function CommonInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, autoFocus, defaultValue, disabled, getRef, id, invalid, margin, max, maxLength, min, mini, name, onBlur, onChange, onFocus, onKeyDown, onPaste, placeholder, prefix, readOnly, required, suffix, step, tabIndex, type, value, ...rest }: CommonInputProps): React.JSX.Element;
|
|
35
35
|
export {};
|
|
@@ -24,12 +24,14 @@ import React from 'react';
|
|
|
24
24
|
import classNames from '../utils/class_names';
|
|
25
25
|
import { inputValue } from '../utils/forms';
|
|
26
26
|
import getDataAttributes from '../utils/data_attributes';
|
|
27
|
+
import { getMarginClass } from '../utils/modifier_classes';
|
|
27
28
|
import { WithAddons } from './with_addons';
|
|
28
29
|
export function CommonInput(_a) {
|
|
29
30
|
var _b;
|
|
30
|
-
var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaRequired = _a["aria-required"], autoComplete = _a.autoComplete, autoFocus = _a.autoFocus, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, max = _a.max, maxLength = _a.maxLength, min = _a.min, mini = _a.mini, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onPaste = _a.onPaste, placeholder = _a.placeholder, prefix = _a.prefix, readOnly = _a.readOnly, required = _a.required, suffix = _a.suffix, step = _a.step, tabIndex = _a.tabIndex, type = _a.type, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-required', "autoComplete", "autoFocus", "defaultValue", "disabled", "getRef", "id", "invalid", "max", "maxLength", "min", "mini", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onPaste", "placeholder", "prefix", "readOnly", "required", "suffix", "step", "tabIndex", "type", "value"]);
|
|
31
|
+
var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaRequired = _a["aria-required"], autoComplete = _a.autoComplete, autoFocus = _a.autoFocus, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, margin = _a.margin, max = _a.max, maxLength = _a.maxLength, min = _a.min, mini = _a.mini, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onPaste = _a.onPaste, placeholder = _a.placeholder, prefix = _a.prefix, readOnly = _a.readOnly, required = _a.required, suffix = _a.suffix, step = _a.step, tabIndex = _a.tabIndex, type = _a.type, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-required', "autoComplete", "autoFocus", "defaultValue", "disabled", "getRef", "id", "invalid", "margin", "max", "maxLength", "min", "mini", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onPaste", "placeholder", "prefix", "readOnly", "required", "suffix", "step", "tabIndex", "type", "value"]);
|
|
31
32
|
var affixed = !!prefix || !!suffix;
|
|
32
33
|
var inputClass = classNames('Input', (_b = {},
|
|
34
|
+
_b[getMarginClass(margin)] = !affixed,
|
|
33
35
|
_b[_modifierClass] = _modifierClass && !affixed,
|
|
34
36
|
_b['Input--invalid'] = invalid,
|
|
35
37
|
_b['Input--mini'] = mini,
|
|
@@ -38,7 +40,7 @@ export function CommonInput(_a) {
|
|
|
38
40
|
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
39
41
|
autoFocus: autoFocus, className: inputClass, defaultValue: defaultValue, disabled: disabled, id: id, max: max, maxLength: maxLength, min: min, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onPaste: onPaste, placeholder: placeholder, readOnly: readOnly, required: required, ref: getRef, step: step, tabIndex: tabIndex, type: type, value: inputValue(value, onChange) })));
|
|
40
42
|
if (affixed) {
|
|
41
|
-
return (React.createElement(WithAddons, { _modifierClass: _modifierClass, disabled: disabled, mini: mini, prefix: prefix, suffix: suffix }, input));
|
|
43
|
+
return (React.createElement(WithAddons, { _modifierClass: _modifierClass, disabled: disabled, margin: margin, mini: mini, prefix: prefix, suffix: suffix }, input));
|
|
42
44
|
}
|
|
43
45
|
return input;
|
|
44
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common_input.js","sourceRoot":"","sources":["../../../src/components/common_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"common_input.js","sourceRoot":"","sources":["../../../src/components/common_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,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AQ,EAAE,QAAQ,EAClB,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,IAClC,CACH,CAAC;IAEF,IAAI,OAAO,EAAE;QACX,OAAO,CACL,oBAAC,UAAU,IACT,cAAc,EAAE,cAAc,EAC9B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,IAEb,KAAK,CACK,CACd,CAAC;KACH;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { CommonComponentProps, ModifierClassProp } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
|
-
interface CommonMenuItemProps extends CommonComponentProps,
|
|
4
|
+
interface CommonMenuItemProps extends CommonComponentProps, ModifierClassProp {
|
|
5
5
|
active?: boolean;
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
color?: string;
|
|
@@ -19,5 +19,5 @@ interface CommonMenuItemProps extends CommonComponentProps, ModifierProps {
|
|
|
19
19
|
style?: React.CSSProperties;
|
|
20
20
|
[key: string]: unknown;
|
|
21
21
|
}
|
|
22
|
-
export declare function CommonMenuItem({ _modifierClass, active, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, color, component, disabled, getRef, id, name, onClick, onKeyDown, refProp, selected, sortable, wrapWithLI, ...
|
|
22
|
+
export declare function CommonMenuItem({ _modifierClass, active, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, color, component, disabled, getRef, id, name, onClick, onKeyDown, refProp, selected, sortable, wrapWithLI, ...rest }: CommonMenuItemProps): React.JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -38,7 +38,7 @@ function validateModifierClass(_modifierClass) {
|
|
|
38
38
|
}
|
|
39
39
|
export function CommonMenuItem(_a) {
|
|
40
40
|
var _b, _c;
|
|
41
|
-
var _modifierClass = _a._modifierClass, active = _a.active, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, color = _a.color, _d = _a.component, component = _d === void 0 ? 'button' : _d, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, name = _a.name, onClick = _a.onClick, onKeyDown = _a.onKeyDown, _e = _a.refProp, refProp = _e === void 0 ? 'ref' : _e, selected = _a.selected, sortable = _a.sortable, wrapWithLI = _a.wrapWithLI,
|
|
41
|
+
var _modifierClass = _a._modifierClass, active = _a.active, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, color = _a.color, _d = _a.component, component = _d === void 0 ? 'button' : _d, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, name = _a.name, onClick = _a.onClick, onKeyDown = _a.onKeyDown, _e = _a.refProp, refProp = _e === void 0 ? 'ref' : _e, selected = _a.selected, sortable = _a.sortable, wrapWithLI = _a.wrapWithLI, rest = __rest(_a, ["_modifierClass", "active", 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "color", "component", "disabled", "getRef", "id", "name", "onClick", "onKeyDown", "refProp", "selected", "sortable", "wrapWithLI"]);
|
|
42
42
|
// Note: There are no styles applied by the .Menu__Item__sortable class. It exists
|
|
43
43
|
// as a hook for 3rd party sorting libraries to tie into.
|
|
44
44
|
var className = classNames('Menu__Item', _modifierClass, (_b = {
|
|
@@ -52,7 +52,7 @@ export function CommonMenuItem(_a) {
|
|
|
52
52
|
var refProps = getRef ? (_c = {}, _c[refProp] = getRef, _c) : {};
|
|
53
53
|
var Component = component;
|
|
54
54
|
validateModifierClass(_modifierClass);
|
|
55
|
-
var content = (React.createElement(Component, __assign({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: className, disabled: disabled, id: id, name: name, onClick: onClick, onKeyDown: onKeyDown }, refProps, sanitizeOtherProps(
|
|
55
|
+
var content = (React.createElement(Component, __assign({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: className, disabled: disabled, id: id, name: name, onClick: onClick, onKeyDown: onKeyDown }, refProps, sanitizeOtherProps(rest)), children));
|
|
56
56
|
return wrapWithLI ? React.createElement("li", null, content) : content;
|
|
57
57
|
}
|
|
58
58
|
//# sourceMappingURL=common_menu_item.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common_menu_item.js","sourceRoot":"","sources":["../../../src/components/common_menu_item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAqBrC,IAAM,sBAAsB,GAAG,CAAC,WAAW,CAAC,CAAC;AAE7C,SAAS,kBAAkB,CAAC,KAA8B;IACxD,OAAO,MAAM,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,qBAAqB,CAAC,cAAsB;IACnD,IAAI,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;QACpC,+BAA+B;QAC/B,OAAO,CAAC,IAAI,CACV,uEAAuE;YACrE,iEAAiE;YACjE,oBAAoB,CACvB,CAAC;QACF,8BAA8B;KAC/B;AACH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,EAoBT;;IAnBpB,IAAA,cAAc,oBAAA,EACd,MAAM,YAAA,EACQ,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,iBAAoB,EAApB,SAAS,mBAAG,QAAQ,KAAA,EACpB,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,EAAE,QAAA,EACF,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,SAAS,eAAA,EACT,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA,EACf,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,UAAU,gBAAA,EACP,
|
|
1
|
+
{"version":3,"file":"common_menu_item.js","sourceRoot":"","sources":["../../../src/components/common_menu_item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAqBrC,IAAM,sBAAsB,GAAG,CAAC,WAAW,CAAC,CAAC;AAE7C,SAAS,kBAAkB,CAAC,KAA8B;IACxD,OAAO,MAAM,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,qBAAqB,CAAC,cAAsB;IACnD,IAAI,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;QACpC,+BAA+B;QAC/B,OAAO,CAAC,IAAI,CACV,uEAAuE;YACrE,iEAAiE;YACjE,oBAAoB,CACvB,CAAC;QACF,8BAA8B;KAC/B;AACH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,EAoBT;;IAnBpB,IAAA,cAAc,oBAAA,EACd,MAAM,YAAA,EACQ,SAAS,mBAA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react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { Colors, CommonComponentProps, MarginModifierProp, ModifierClassProp, Shadows, Spacing } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
|
-
interface ContainerProps extends CommonComponentProps,
|
|
4
|
+
interface ContainerProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
getRef?: GetRef<HTMLDivElement>;
|
|
7
7
|
id?: string;
|
|
8
|
+
outlineColor?: Colors;
|
|
8
9
|
padding?: Spacing;
|
|
9
10
|
shadow?: Shadows;
|
|
10
11
|
}
|
|
11
|
-
export declare function Container({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, getRef, id, padding, shadow, ...rest }: ContainerProps): React.JSX.Element;
|
|
12
|
+
export declare function Container({ _modifierClass, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, outlineColor, children, getRef, margin, id, padding, shadow, ...rest }: ContainerProps): React.JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -23,15 +23,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import React from 'react';
|
|
24
24
|
import classNames from '../utils/class_names';
|
|
25
25
|
import getDataAttributes from '../utils/data_attributes';
|
|
26
|
+
import { getMarginClass } from '../utils/modifier_classes';
|
|
26
27
|
var PADDING_CLASS_PATTERN = /padding-/;
|
|
27
28
|
export function Container(_a) {
|
|
28
29
|
var _b;
|
|
29
|
-
var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, getRef = _a.getRef, id = _a.id,
|
|
30
|
+
var _modifierClass = _a._modifierClass, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], _c = _a.outlineColor, outlineColor = _c === void 0 ? 'none' : _c, children = _a.children, getRef = _a.getRef, margin = _a.margin, id = _a.id, _d = _a.padding, padding = _d === void 0 ? '2' : _d, shadow = _a.shadow, rest = __rest(_a, ["_modifierClass", 'aria-label', 'aria-labelledby', 'aria-describedby', "outlineColor", "children", "getRef", "margin", "id", "padding", "shadow"]);
|
|
30
31
|
var modifierAppliesPadding = PADDING_CLASS_PATTERN.test(_modifierClass);
|
|
31
|
-
var className = classNames('Container', _modifierClass, (_b = {},
|
|
32
|
+
var className = classNames('Container', _modifierClass, getMarginClass(margin), (_b = {},
|
|
32
33
|
_b["padding--".concat(padding)] = padding && !modifierAppliesPadding,
|
|
33
34
|
_b["shadow--".concat(shadow)] = shadow,
|
|
34
35
|
_b));
|
|
35
|
-
return (React.createElement("div", __assign({}, getDataAttributes(rest), { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: className, id: id, ref: getRef
|
|
36
|
+
return (React.createElement("div", __assign({}, getDataAttributes(rest), { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: className, id: id, ref: getRef, style: outlineColor
|
|
37
|
+
? {
|
|
38
|
+
'--Container____outline-color': "var(--color--".concat(outlineColor, ")")
|
|
39
|
+
}
|
|
40
|
+
: {} }), children));
|
|
36
41
|
}
|
|
37
42
|
//# sourceMappingURL=container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../src/components/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../../src/components/container.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAc3D,IAAM,qBAAqB,GAAG,UAAU,CAAC;AAEzC,MAAM,UAAU,SAAS,CAAC,EAaT;;IAZf,IAAA,cAAc,oBAAA,EACA,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,oBAAqB,EAArB,YAAY,mBAAG,MAAM,KAAA,EACrB,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,MAAM,YAAA,EACN,EAAE,QAAA,EACF,eAAa,EAAb,OAAO,mBAAG,GAAG,KAAA,EACb,MAAM,YAAA,EACH,IAAI,cAZiB,kJAazB,CADQ;IAEP,IAAM,sBAAsB,GAAG,qBAAqB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC1E,IAAM,SAAS,GAAG,UAAU,CAC1B,WAAW,EACX,cAAc,EACd,cAAc,CAAC,MAAM,CAAC;QAEpB,GAAC,mBAAY,OAAO,CAAE,IAAG,OAAO,IAAI,CAAC,sBAAsB;QAC3D,GAAC,kBAAW,MAAM,CAAE,IAAG,MAAM;YAEhC,CAAC;IAEF,OAAO,CACL,wCACM,iBAAiB,CAAC,IAAI,CAAC,kBACf,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,SAAS,EACpB,EAAE,EAAE,EAAE,EACN,GAAG,EAAE,MAAM,EACX,KAAK,EACH,YAAY;YACV,CAAC,CAAE;gBACC,8BAA8B,EAAE,uBAAgB,YAAY,MAAG;aACxC;YAC3B,CAAC,CAAC,EAAE,KAGP,QAAQ,CACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { CommonComponentProps, ModifierClassProp } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
|
-
interface ContainerHeaderProps extends CommonComponentProps,
|
|
4
|
+
interface ContainerHeaderProps extends CommonComponentProps, ModifierClassProp {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
getRef?: GetRef<HTMLElement>;
|
|
7
7
|
id?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
4
|
/**
|
|
5
5
|
* Date string in the yyyy-mm-dd format
|
|
6
6
|
*/
|
|
7
7
|
type DateString = `${number}${number}${number}${number}-${number}${number}-${number}${number}`;
|
|
8
|
-
interface DateInputProps extends CommonComponentProps,
|
|
8
|
+
interface DateInputProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
|
|
9
9
|
'aria-invalid'?: React.AriaAttributes['aria-invalid'];
|
|
10
10
|
'aria-required'?: React.AriaAttributes['aria-required'];
|
|
11
11
|
autoComplete?: string;
|
|
@@ -30,5 +30,5 @@ interface DateInputProps extends CommonComponentProps, ModifierProps {
|
|
|
30
30
|
tabIndex?: number;
|
|
31
31
|
value?: number | string;
|
|
32
32
|
}
|
|
33
|
-
export declare function DateInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, autoFocus, defaultValue, disabled, getRef, id, invalid, max, min, mini, name, onBlur, onChange, onFocus, onKeyDown, onPaste, readOnly, required, step, tabIndex, value, ...rest }: DateInputProps): React.JSX.Element;
|
|
33
|
+
export declare function DateInput({ _modifierClass, 'aria-describedby': ariaDescribedby, 'aria-invalid': ariaInvalid, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-required': ariaRequired, autoComplete, autoFocus, defaultValue, disabled, getRef, id, invalid, margin, max, min, mini, name, onBlur, onChange, onFocus, onKeyDown, onPaste, readOnly, required, step, tabIndex, value, ...rest }: DateInputProps): React.JSX.Element;
|
|
34
34
|
export {};
|
|
@@ -24,7 +24,7 @@ import React from 'react';
|
|
|
24
24
|
import getDataAttributes from '../utils/data_attributes';
|
|
25
25
|
import { CommonInput } from './common_input';
|
|
26
26
|
export function DateInput(_a) {
|
|
27
|
-
var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaRequired = _a["aria-required"], autoComplete = _a.autoComplete, autoFocus = _a.autoFocus, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, max = _a.max, min = _a.min, mini = _a.mini, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onPaste = _a.onPaste, readOnly = _a.readOnly, required = _a.required, step = _a.step, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-required', "autoComplete", "autoFocus", "defaultValue", "disabled", "getRef", "id", "invalid", "max", "min", "mini", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onPaste", "readOnly", "required", "step", "tabIndex", "value"]);
|
|
28
|
-
return (React.createElement(CommonInput, __assign({}, getDataAttributes(rest), { _modifierClass: _modifierClass, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-required": ariaRequired, autoComplete: autoComplete, autoFocus: autoFocus, defaultValue: defaultValue, disabled: disabled, getRef: getRef, id: id, invalid: invalid, max: max, min: min, mini: mini, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onPaste: onPaste, readOnly: readOnly, required: required, step: step, tabIndex: tabIndex, type: "date", value: value })));
|
|
27
|
+
var _modifierClass = _a._modifierClass, ariaDescribedby = _a["aria-describedby"], ariaInvalid = _a["aria-invalid"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaRequired = _a["aria-required"], autoComplete = _a.autoComplete, autoFocus = _a.autoFocus, defaultValue = _a.defaultValue, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, margin = _a.margin, max = _a.max, min = _a.min, mini = _a.mini, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onPaste = _a.onPaste, readOnly = _a.readOnly, required = _a.required, step = _a.step, tabIndex = _a.tabIndex, value = _a.value, rest = __rest(_a, ["_modifierClass", 'aria-describedby', 'aria-invalid', 'aria-label', 'aria-labelledby', 'aria-required', "autoComplete", "autoFocus", "defaultValue", "disabled", "getRef", "id", "invalid", "margin", "max", "min", "mini", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onPaste", "readOnly", "required", "step", "tabIndex", "value"]);
|
|
28
|
+
return (React.createElement(CommonInput, __assign({}, getDataAttributes(rest), { _modifierClass: _modifierClass, "aria-describedby": ariaDescribedby, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-required": ariaRequired, autoComplete: autoComplete, autoFocus: autoFocus, defaultValue: defaultValue, disabled: disabled, getRef: getRef, id: id, invalid: invalid, margin: margin, max: max, min: min, mini: mini, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onPaste: onPaste, readOnly: readOnly, required: required, step: step, tabIndex: tabIndex, type: "date", value: value })));
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=date_input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date_input.js","sourceRoot":"","sources":["../../../src/components/date_input.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"date_input.js","sourceRoot":"","sources":["../../../src/components/date_input.tsx"],"names":[],"mappings":";;;;;;;;;;;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OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,IACZ,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
|
-
interface DragAndDropProps extends CommonComponentProps,
|
|
4
|
+
interface DragAndDropProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
|
|
5
|
+
'aria-required'?: React.AriaAttributes['aria-required'];
|
|
5
6
|
accept?: string;
|
|
6
7
|
children?: React.ReactNode;
|
|
7
8
|
disabled?: boolean;
|
|
@@ -15,9 +16,10 @@ interface DragAndDropProps extends CommonComponentProps, ModifierProps {
|
|
|
15
16
|
onDragLeave?: React.DragEventHandler<HTMLInputElement>;
|
|
16
17
|
onDragOver?: React.DragEventHandler<HTMLInputElement>;
|
|
17
18
|
onDrop?: React.DragEventHandler<HTMLInputElement>;
|
|
19
|
+
required?: boolean;
|
|
18
20
|
success?: boolean;
|
|
19
21
|
tabIndex?: number;
|
|
20
22
|
value?: string;
|
|
21
23
|
}
|
|
22
|
-
export declare function DragAndDrop({ _modifierClass, accept, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, error, children, disabled, getRef, id, multiple, name, onChange, onDrop, onDragEnter, onDragOver, onDragLeave, success, tabIndex, value, ...rest }: DragAndDropProps): React.JSX.Element;
|
|
24
|
+
export declare function DragAndDrop({ _modifierClass, accept, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, 'aria-required': ariaRequired, error, children, disabled, getRef, id, margin, multiple, name, onChange, onDrop, onDragEnter, onDragOver, onDragLeave, required, success, tabIndex, value, ...rest }: DragAndDropProps): React.JSX.Element;
|
|
23
25
|
export {};
|
|
@@ -23,10 +23,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import React, { useState } from 'react';
|
|
24
24
|
import classNames from '../utils/class_names';
|
|
25
25
|
import getDataAttributes from '../utils/data_attributes';
|
|
26
|
+
import { getMarginClass } from '../utils/modifier_classes';
|
|
26
27
|
export function DragAndDrop(_a) {
|
|
27
|
-
var _modifierClass = _a._modifierClass, accept = _a.accept, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], error = _a.error, children = _a.children, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, multiple = _a.multiple, name = _a.name, onChange = _a.onChange, onDrop = _a.onDrop, onDragEnter = _a.onDragEnter, onDragOver = _a.onDragOver, onDragLeave = _a.onDragLeave, success = _a.success, tabIndex = _a.tabIndex, _b = _a.value, value = _b === void 0 ? '' : _b, rest = __rest(_a, ["_modifierClass", "accept", 'aria-label', 'aria-labelledby', 'aria-describedby', "error", "children", "disabled", "getRef", "id", "multiple", "name", "onChange", "onDrop", "onDragEnter", "onDragOver", "onDragLeave", "success", "tabIndex", "value"]);
|
|
28
|
+
var _modifierClass = _a._modifierClass, accept = _a.accept, ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], ariaRequired = _a["aria-required"], error = _a.error, children = _a.children, disabled = _a.disabled, getRef = _a.getRef, id = _a.id, margin = _a.margin, multiple = _a.multiple, name = _a.name, onChange = _a.onChange, onDrop = _a.onDrop, onDragEnter = _a.onDragEnter, onDragOver = _a.onDragOver, onDragLeave = _a.onDragLeave, required = _a.required, success = _a.success, tabIndex = _a.tabIndex, _b = _a.value, value = _b === void 0 ? '' : _b, rest = __rest(_a, ["_modifierClass", "accept", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-required', "error", "children", "disabled", "getRef", "id", "margin", "multiple", "name", "onChange", "onDrop", "onDragEnter", "onDragOver", "onDragLeave", "required", "success", "tabIndex", "value"]);
|
|
28
29
|
var _c = useState(false), draggedOver = _c[0], setDraggedOver = _c[1];
|
|
29
|
-
var className = classNames('Drag-and-Drop', _modifierClass, {
|
|
30
|
+
var className = classNames('Drag-and-Drop', getMarginClass(margin), _modifierClass, {
|
|
30
31
|
'Drag-and-Drop--dragged-over': draggedOver,
|
|
31
32
|
'Drag-and-Drop--error': error,
|
|
32
33
|
'Drag-and-Drop--success': success,
|
|
@@ -46,7 +47,7 @@ export function DragAndDrop(_a) {
|
|
|
46
47
|
onDragLeave(event);
|
|
47
48
|
}
|
|
48
49
|
return (React.createElement("div", { className: className, onDragOver: disabled ? undefined : onDragOver, onDragEnter: disabled ? undefined : handleEnter, onDragLeave: disabled ? undefined : handleLeave, onDrop: disabled ? undefined : onDrop },
|
|
49
|
-
React.createElement("input", __assign({}, getDataAttributes(rest), { accept: accept, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, className: fileInputClassName, disabled: disabled, id: id, multiple: multiple, name: name, onChange: onChange, ref: getRef, tabIndex: tabIndex, type: "file", value: value })),
|
|
50
|
+
React.createElement("input", __assign({}, getDataAttributes(rest), { accept: accept, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby, "aria-required": ariaRequired, className: fileInputClassName, disabled: disabled, id: id, multiple: multiple, name: name, onChange: onChange, ref: getRef, required: required, tabIndex: tabIndex, type: "file", value: value })),
|
|
50
51
|
children));
|
|
51
52
|
}
|
|
52
53
|
//# sourceMappingURL=drag_and_drop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag_and_drop.js","sourceRoot":"","sources":["../../../src/components/drag_and_drop.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,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,qCAAqC,EAAE,QAAQ;KAChD,CAAC,CAAC;IAEH,SAAS,WAAW,CAAC,KAAwC;QAC3D,cAAc,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,WAAW;YAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAED,SAAS,WAAW,CAAC,KAAwC;QAC3D,cAAc,CAAC,KAAK,CAAC,CAAC;QACtB,IAAI,WAAW;YAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;IAED,OAAO,CACL,6BACE,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,EAC7C,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAC/C,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAC/C,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM;QAErC,0CACM,iBAAiB,CAAC,IAAI,CAAC,IAC3B,MAAM,EAAE,MAAM,gBACF,SAAS,qBACJ,cAAc,sBACb,eAAe,mBAClB,YAAY,EAC3B,SAAS,EAAE,kBAAkB,EAC7B,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,IACZ;QACD,QAAQ,CACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { CommonComponentProps, MarginModifierProp, ModifierClassProp, Shadows } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
4
|
type ChildrenRenderProp = (args: {
|
|
5
5
|
isOpen: boolean;
|
|
@@ -11,7 +11,7 @@ type ToggleRenderProp = (args: {
|
|
|
11
11
|
isToggled: boolean;
|
|
12
12
|
onClick: () => void;
|
|
13
13
|
}) => React.ReactElement;
|
|
14
|
-
interface DropdownProps extends CommonComponentProps,
|
|
14
|
+
interface DropdownProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
|
|
15
15
|
align?: 'left' | 'right';
|
|
16
16
|
children?: React.ReactElement | ChildrenRenderProp;
|
|
17
17
|
contentShadow?: Shadows | 'none';
|
|
@@ -42,6 +42,7 @@ import { handleGetRef } from '../utils/refs';
|
|
|
42
42
|
import { isDesiredTransitionEndEvent } from '../utils/animation';
|
|
43
43
|
import classNames from '../utils/class_names';
|
|
44
44
|
import getDataAttributes from '../utils/data_attributes';
|
|
45
|
+
import { getMarginClass } from '../utils/modifier_classes';
|
|
45
46
|
var OPENS_PROP_MAPPING = {
|
|
46
47
|
up: 'bottom',
|
|
47
48
|
down: 'top'
|
|
@@ -140,8 +141,8 @@ var Dropdown = /** @class */ (function (_super) {
|
|
|
140
141
|
var isOpen = this.state.isOpen;
|
|
141
142
|
var _c = this.props,
|
|
142
143
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
143
|
-
_modifierClass = _c._modifierClass, align = _c.align, ariaLabel = _c["aria-label"], ariaLabelledby = _c["aria-labelledby"], ariaDescribedby = _c["aria-describedby"], contentShadow = _c.contentShadow, contentWidth = _c.contentWidth, getRef = _c.getRef, id = _c.id, maxHeight = _c.maxHeight, opens = _c.opens, rest = __rest(_c, ["_modifierClass", "align", 'aria-label', 'aria-labelledby', 'aria-describedby', "contentShadow", "contentWidth", "getRef", "id", "maxHeight", "opens"]);
|
|
144
|
-
var className = classNames('Dropdown', _modifierClass);
|
|
144
|
+
_modifierClass = _c._modifierClass, align = _c.align, ariaLabel = _c["aria-label"], ariaLabelledby = _c["aria-labelledby"], ariaDescribedby = _c["aria-describedby"], contentShadow = _c.contentShadow, contentWidth = _c.contentWidth, getRef = _c.getRef, id = _c.id, margin = _c.margin, maxHeight = _c.maxHeight, opens = _c.opens, rest = __rest(_c, ["_modifierClass", "align", 'aria-label', 'aria-labelledby', 'aria-describedby', "contentShadow", "contentWidth", "getRef", "id", "margin", "maxHeight", "opens"]);
|
|
145
|
+
var className = classNames('Dropdown', getMarginClass(margin), _modifierClass);
|
|
145
146
|
var contentClassName = classNames('Dropdown__Content', (_a = {
|
|
146
147
|
'Dropdown__Content--open': isOpen
|
|
147
148
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../../src/components/dropdown.tsx"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"dropdown.js","sourceRoot":"","sources":["../../../src/components/dropdown.tsx"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUnD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAqC3D,IAAM,kBAAkB,GAAG;IACzB,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF;IAA8B,4BAAuC;IAWnE,kBAAY,KAAoB;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EAAE,CAClB,CACF,CACP,CAAC;IACJ,CAAC;IA3KM,qBAAY,GAAG;QACpB,KAAK,EAAE,MAAM;QACb,aAAa,EAAE,IAAI;QACnB,KAAK,EAAE,MAAM;KACd,CAAC;IAwKJ,eAAC;CAAA,AA7KD,CAA8B,SAAS,GA6KtC;SA7KY,QAAQ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
|
-
interface DropdownInputToggleProps extends CommonComponentProps,
|
|
4
|
+
interface DropdownInputToggleProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
|
|
5
5
|
'aria-controls'?: string;
|
|
6
6
|
'aria-expanded'?: React.AriaAttributes['aria-expanded'];
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -14,5 +14,5 @@ interface DropdownInputToggleProps extends CommonComponentProps, ModifierProps {
|
|
|
14
14
|
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare function DropdownInputToggle({ _modifierClass, 'aria-controls': ariaControls, 'aria-expanded': ariaExpanded, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, getRef, id, invalid, isToggled, mini, name, onClick, disabled, ...rest }: DropdownInputToggleProps): React.JSX.Element;
|
|
17
|
+
export declare function DropdownInputToggle({ _modifierClass, 'aria-controls': ariaControls, 'aria-expanded': ariaExpanded, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, 'aria-describedby': ariaDescribedby, children, getRef, id, invalid, isToggled, margin, mini, name, onClick, disabled, ...rest }: DropdownInputToggleProps): React.JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -24,10 +24,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
24
|
import React from 'react';
|
|
25
25
|
import classNames from '../utils/class_names';
|
|
26
26
|
import getDataAttributes from '../utils/data_attributes';
|
|
27
|
+
import { getMarginClass } from '../utils/modifier_classes';
|
|
27
28
|
import { IconTriangleInverted } from '../icons/triangle_inverted';
|
|
28
29
|
export function DropdownInputToggle(_a) {
|
|
29
|
-
var _modifierClass = _a._modifierClass, ariaControls = _a["aria-controls"], ariaExpanded = _a["aria-expanded"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, isToggled = _a.isToggled, mini = _a.mini, name = _a.name, onClick = _a.onClick, disabled = _a.disabled, rest = __rest(_a, ["_modifierClass", 'aria-controls', 'aria-expanded', 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "getRef", "id", "invalid", "isToggled", "mini", "name", "onClick", "disabled"]);
|
|
30
|
-
return (React.createElement("div", { className: classNames('Dropdown__Toggle', _modifierClass, {
|
|
30
|
+
var _modifierClass = _a._modifierClass, ariaControls = _a["aria-controls"], ariaExpanded = _a["aria-expanded"], ariaLabel = _a["aria-label"], ariaLabelledby = _a["aria-labelledby"], ariaDescribedby = _a["aria-describedby"], children = _a.children, getRef = _a.getRef, id = _a.id, invalid = _a.invalid, isToggled = _a.isToggled, margin = _a.margin, mini = _a.mini, name = _a.name, onClick = _a.onClick, disabled = _a.disabled, rest = __rest(_a, ["_modifierClass", 'aria-controls', 'aria-expanded', 'aria-label', 'aria-labelledby', 'aria-describedby', "children", "getRef", "id", "invalid", "isToggled", "margin", "mini", "name", "onClick", "disabled"]);
|
|
31
|
+
return (React.createElement("div", { className: classNames('Dropdown__Toggle', getMarginClass(margin), _modifierClass, {
|
|
31
32
|
'Dropdown__Toggle--disabled': disabled,
|
|
32
33
|
'Dropdown__Toggle--mini': mini
|
|
33
34
|
}) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown_input_toggle.js","sourceRoot":"","sources":["../../../src/components/dropdown_input_toggle.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA2D;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"dropdown_input_toggle.js","sourceRoot":"","sources":["../../../src/components/dropdown_input_toggle.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA2D;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,iBAAiB,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAmBlE,MAAM,UAAU,mBAAmB,CAAC,EAkBT;IAjBzB,IAAA,cAAc,oBAAA,EACG,YAAY,sBAAA,EACZ,YAAY,sBAAA,EACf,SAAS,mBAAA,EACJ,cAAc,wBAAA,EACb,eAAe,yBAAA,EACnC,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,EAAE,QAAA,EACF,OAAO,aAAA,EACP,SAAS,eAAA,EACT,MAAM,YAAA,EACN,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,OAAO,aAAA,EACP,QAAQ,cAAA,EACL,IAAI,cAjB2B,8MAkBnC,CADQ;IAEP,OAAO,CACL,6BACE,SAAS,EAAE,UAAU,CACnB,kBAAkB,EAClB,cAAc,CAAC,MAAM,CAAC,EACtB,cAAc,EACd;YACE,4BAA4B,EAAE,QAAQ;YACtC,wBAAwB,EAAE,IAAI;SAC/B,CACF;QAED,2CACM,iBAAiB,CAAC,IAAI,CAAC,qBACZ,YAAY,mBACZ,YAAY,gBACf,SAAS,qBACJ,cAAc,sBACb,eAAe,EACjC,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,UAAU,EAAE;gBACzC,gBAAgB,EAAE,SAAS;gBAC3B,gBAAgB,EAAE,OAAO;gBACzB,aAAa,EAAE,IAAI;aACpB,CAAC,EACF,QAAQ,EAAE,QAAQ,EAClB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,MAAM,EACX,IAAI,EAAC,QAAQ,KAEZ,QAAQ,CACF;QACT,6BAAK,SAAS,EAAC,wBAAwB;YACrC,oBAAC,oBAAoB,IAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,GAAI,CAC1D,CACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
-
import type { CommonComponentProps,
|
|
2
|
+
import type { CommonComponentProps, MarginModifierProp, ModifierClassProp } from '../types';
|
|
3
3
|
import type { GetRef } from '../utils/refs';
|
|
4
4
|
import noop from '../utils/noop';
|
|
5
|
-
interface EditingContainerProps extends CommonComponentProps,
|
|
5
|
+
interface EditingContainerProps extends CommonComponentProps, MarginModifierProp, ModifierClassProp {
|
|
6
6
|
children?: React.ReactNode;
|
|
7
7
|
edit: React.ReactNode;
|
|
8
8
|
getRef?: GetRef;
|