@airtable/blocks 1.18.1 → 1.19.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.
- package/CHANGELOG.md +15 -1
- package/dist/cjs/color_utils.js +21 -23
- package/dist/cjs/colors.js +4 -60
- package/dist/cjs/error_utils.js +15 -25
- package/dist/cjs/event_tracker.js +5 -11
- package/dist/cjs/global_config.js +107 -188
- package/dist/cjs/index.js +16 -40
- package/dist/cjs/injected/airtable_interface.js +1 -6
- package/dist/cjs/models/abstract_model.js +50 -81
- package/dist/cjs/models/abstract_model_with_async_data.js +102 -177
- package/dist/cjs/models/base.js +211 -374
- package/dist/cjs/models/create_aggregators.js +53 -47
- package/dist/cjs/models/cursor.js +125 -201
- package/dist/cjs/models/field.js +256 -303
- package/dist/cjs/models/grouped_record_query_result.js +210 -286
- package/dist/cjs/models/linked_records_query_result.js +276 -454
- package/dist/cjs/models/models.js +36 -50
- package/dist/cjs/models/mutation_constants.js +5 -9
- package/dist/cjs/models/mutations.js +125 -338
- package/dist/cjs/models/object_pool.js +37 -94
- package/dist/cjs/models/record.js +132 -226
- package/dist/cjs/models/record_coloring.js +14 -19
- package/dist/cjs/models/record_query_result.js +323 -282
- package/dist/cjs/models/record_store.js +355 -688
- package/dist/cjs/models/session.js +99 -158
- package/dist/cjs/models/table.js +361 -549
- package/dist/cjs/models/table_or_view_query_result.js +410 -765
- package/dist/cjs/models/view.js +161 -204
- package/dist/cjs/models/view_data_store.js +177 -282
- package/dist/cjs/models/view_metadata_query_result.js +96 -127
- package/dist/cjs/perform_record_action.js +69 -103
- package/dist/cjs/private_utils.js +133 -223
- package/dist/cjs/sdk.js +97 -142
- package/dist/cjs/settings_button.js +30 -57
- package/dist/cjs/stats/block_stats.js +3 -15
- package/dist/cjs/testing/abstract_mock_airtable_interface.js +53 -97
- package/dist/cjs/types/airtable_interface.js +36 -8
- package/dist/cjs/types/field.js +66 -12
- package/dist/cjs/types/mutations.js +99 -6
- package/dist/cjs/types/permission_levels.js +2 -4
- package/dist/cjs/types/undo_redo.js +2 -3
- package/dist/cjs/types/view.js +16 -11
- package/dist/cjs/ui/base_provider.js +14 -9
- package/dist/cjs/ui/baymax_utils.js +107 -1102
- package/dist/cjs/ui/block_wrapper.js +30 -68
- package/dist/cjs/ui/box.js +52 -56
- package/dist/cjs/ui/button.js +60 -77
- package/dist/cjs/ui/cell_renderer.js +78 -139
- package/dist/cjs/ui/choice_token.js +45 -47
- package/dist/cjs/ui/collaborator_token.js +33 -54
- package/dist/cjs/ui/color_palette.js +58 -106
- package/dist/cjs/ui/color_palette_synced.js +41 -52
- package/dist/cjs/ui/confirmation_dialog.js +53 -69
- package/dist/cjs/ui/control_sizes.js +21 -46
- package/dist/cjs/ui/create_detect_element_resize.js +16 -50
- package/dist/cjs/ui/css_helpers.js +3 -10
- package/dist/cjs/ui/dialog.js +44 -71
- package/dist/cjs/ui/dialog_close_button.js +52 -72
- package/dist/cjs/ui/expand_record.js +4 -11
- package/dist/cjs/ui/expand_record_list.js +6 -11
- package/dist/cjs/ui/expand_record_picker_async.js +18 -35
- package/dist/cjs/ui/field_icon.js +25 -28
- package/dist/cjs/ui/field_picker.js +47 -81
- package/dist/cjs/ui/field_picker_synced.js +33 -44
- package/dist/cjs/ui/form_field.js +45 -64
- package/dist/cjs/ui/geometry/geometry.js +6 -10
- package/dist/cjs/ui/geometry/point.js +5 -13
- package/dist/cjs/ui/geometry/rect.js +7 -29
- package/dist/cjs/ui/geometry/size.js +5 -13
- package/dist/cjs/ui/global_alert.js +35 -61
- package/dist/cjs/ui/global_config_synced_component_helpers.js +4 -13
- package/dist/cjs/ui/heading.js +63 -92
- package/dist/cjs/ui/icon.js +44 -66
- package/dist/cjs/ui/icon_config.js +13 -24
- package/dist/cjs/ui/initialize_block.js +23 -36
- package/dist/cjs/ui/input.js +74 -87
- package/dist/cjs/ui/input_synced.js +34 -43
- package/dist/cjs/ui/key_codes.js +4 -9
- package/dist/cjs/ui/label.js +45 -50
- package/dist/cjs/ui/link.js +74 -89
- package/dist/cjs/ui/loader.js +26 -42
- package/dist/cjs/ui/modal.js +63 -89
- package/dist/cjs/ui/model_picker_select.js +29 -47
- package/dist/cjs/ui/popover.js +98 -180
- package/dist/cjs/ui/progress_bar.js +45 -51
- package/dist/cjs/ui/record_card.js +143 -278
- package/dist/cjs/ui/record_card_list.js +117 -165
- package/dist/cjs/ui/remote_utils.js +5 -13
- package/dist/cjs/ui/sdk_context.js +7 -9
- package/dist/cjs/ui/select.js +84 -118
- package/dist/cjs/ui/select_and_select_buttons_helpers.js +29 -45
- package/dist/cjs/ui/select_buttons.js +54 -90
- package/dist/cjs/ui/select_buttons_synced.js +32 -41
- package/dist/cjs/ui/select_synced.js +32 -42
- package/dist/cjs/ui/switch.js +66 -84
- package/dist/cjs/ui/switch_synced.js +32 -38
- package/dist/cjs/ui/synced.js +16 -43
- package/dist/cjs/ui/system/all_styles_set.js +89 -22
- package/dist/cjs/ui/system/appearance/appearance_set.js +15 -26
- package/dist/cjs/ui/system/appearance/background_color.js +6 -12
- package/dist/cjs/ui/system/appearance/border.js +6 -12
- package/dist/cjs/ui/system/appearance/border_radius.js +6 -12
- package/dist/cjs/ui/system/appearance/box_shadow.js +6 -12
- package/dist/cjs/ui/system/appearance/opacity.js +5 -11
- package/dist/cjs/ui/system/dimensions/dimensions_set.js +15 -27
- package/dist/cjs/ui/system/dimensions/height.js +5 -11
- package/dist/cjs/ui/system/dimensions/max_height.js +5 -11
- package/dist/cjs/ui/system/dimensions/max_width.js +5 -11
- package/dist/cjs/ui/system/dimensions/min_height.js +5 -11
- package/dist/cjs/ui/system/dimensions/min_width.js +5 -11
- package/dist/cjs/ui/system/dimensions/width.js +5 -11
- package/dist/cjs/ui/system/display.js +8 -9
- package/dist/cjs/ui/system/flex_container/align_content.js +6 -12
- package/dist/cjs/ui/system/flex_container/align_items.js +6 -12
- package/dist/cjs/ui/system/flex_container/flex_container_set.js +15 -27
- package/dist/cjs/ui/system/flex_container/flex_direction.js +5 -11
- package/dist/cjs/ui/system/flex_container/flex_wrap.js +5 -11
- package/dist/cjs/ui/system/flex_container/justify_content.js +5 -11
- package/dist/cjs/ui/system/flex_container/justify_items.js +5 -11
- package/dist/cjs/ui/system/flex_item/align_self.js +6 -12
- package/dist/cjs/ui/system/flex_item/flex.js +5 -11
- package/dist/cjs/ui/system/flex_item/flex_basis.js +5 -11
- package/dist/cjs/ui/system/flex_item/flex_grow.js +5 -11
- package/dist/cjs/ui/system/flex_item/flex_item_set.js +15 -28
- package/dist/cjs/ui/system/flex_item/flex_shrink.js +5 -11
- package/dist/cjs/ui/system/flex_item/justify_self.js +5 -11
- package/dist/cjs/ui/system/flex_item/order.js +5 -11
- package/dist/cjs/ui/system/index.js +310 -362
- package/dist/cjs/ui/system/overflow.js +8 -9
- package/dist/cjs/ui/system/position/bottom.js +6 -13
- package/dist/cjs/ui/system/position/left.js +5 -12
- package/dist/cjs/ui/system/position/position.js +5 -11
- package/dist/cjs/ui/system/position/position_set.js +15 -27
- package/dist/cjs/ui/system/position/right.js +5 -12
- package/dist/cjs/ui/system/position/top.js +5 -12
- package/dist/cjs/ui/system/position/z_index.js +5 -11
- package/dist/cjs/ui/system/spacing/margin.js +5 -12
- package/dist/cjs/ui/system/spacing/padding.js +5 -12
- package/dist/cjs/ui/system/spacing/spacing_set.js +15 -23
- package/dist/cjs/ui/system/typography/font_family.js +5 -11
- package/dist/cjs/ui/system/typography/font_size.js +5 -11
- package/dist/cjs/ui/system/typography/font_style.js +5 -11
- package/dist/cjs/ui/system/typography/font_weight.js +5 -11
- package/dist/cjs/ui/system/typography/letter_spacing.js +5 -11
- package/dist/cjs/ui/system/typography/line_height.js +5 -11
- package/dist/cjs/ui/system/typography/text_align.js +5 -11
- package/dist/cjs/ui/system/typography/text_color.js +5 -11
- package/dist/cjs/ui/system/typography/text_decoration.js +5 -11
- package/dist/cjs/ui/system/typography/text_transform.js +5 -11
- package/dist/cjs/ui/system/typography/typography_set.js +15 -31
- package/dist/cjs/ui/system/utils/create_responsive_prop_type.js +2 -4
- package/dist/cjs/ui/system/utils/create_style_prop_types.js +5 -13
- package/dist/cjs/ui/system/utils/ensure_numbers_are_within_scale.js +4 -14
- package/dist/cjs/ui/system/utils/get_style_props_for_responsive_prop.js +30 -70
- package/dist/cjs/ui/table_picker.js +26 -43
- package/dist/cjs/ui/table_picker_synced.js +33 -42
- package/dist/cjs/ui/text.js +59 -71
- package/dist/cjs/ui/text_button.js +80 -97
- package/dist/cjs/ui/theme/default_theme/button_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/control_sizes.js +29 -42
- package/dist/cjs/ui/theme/default_theme/heading_styles.js +4 -5
- package/dist/cjs/ui/theme/default_theme/index.js +15 -32
- package/dist/cjs/ui/theme/default_theme/input_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/link_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/select_buttons_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/select_variants.js +10 -21
- package/dist/cjs/ui/theme/default_theme/switch_variants.js +8 -20
- package/dist/cjs/ui/theme/default_theme/text_button_variants.js +1 -5
- package/dist/cjs/ui/theme/default_theme/text_styles.js +1 -2
- package/dist/cjs/ui/theme/default_theme/tokens.js +33 -35
- package/dist/cjs/ui/theme/theme_context.js +3 -6
- package/dist/cjs/ui/theme/use_theme.js +1 -7
- package/dist/cjs/ui/tooltip.js +38 -79
- package/dist/cjs/ui/types/aria_props.js +3 -7
- package/dist/cjs/ui/types/data_attributes_prop.js +8 -6
- package/dist/cjs/ui/types/tooltip_anchor_props.js +4 -5
- package/dist/cjs/ui/ui.js +97 -130
- package/dist/cjs/ui/unstable_standalone_ui.js +18 -42
- package/dist/cjs/ui/use_array_identity.js +0 -4
- package/dist/cjs/ui/use_base.js +4 -13
- package/dist/cjs/ui/use_color_scheme.js +60 -0
- package/dist/cjs/ui/use_cursor.js +3 -12
- package/dist/cjs/ui/use_form_field.js +4 -6
- package/dist/cjs/ui/use_global_config.js +3 -10
- package/dist/cjs/ui/use_loadable.js +59 -132
- package/dist/cjs/ui/use_record_action_data.js +6 -12
- package/dist/cjs/ui/use_records.js +27 -28
- package/dist/cjs/ui/use_session.js +6 -15
- package/dist/cjs/ui/use_settings_button.js +4 -11
- package/dist/cjs/ui/use_styled_system.js +12 -21
- package/dist/cjs/ui/use_synced.js +0 -7
- package/dist/cjs/ui/use_text_color_for_background_color.js +1 -5
- package/dist/cjs/ui/use_view_metadata.js +5 -8
- package/dist/cjs/ui/use_viewport.js +1 -7
- package/dist/cjs/ui/use_watchable.js +36 -74
- package/dist/cjs/ui/view_picker.js +44 -78
- package/dist/cjs/ui/view_picker_synced.js +33 -44
- package/dist/cjs/ui/viewport_constraint.js +37 -64
- package/dist/cjs/ui/with_hooks.js +17 -22
- package/dist/cjs/ui/with_styled_system.js +33 -60
- package/dist/cjs/undo_redo.js +12 -32
- package/dist/cjs/unstable_private_utils.js +6 -8
- package/dist/cjs/unstable_testing_utils.js +44 -57
- package/dist/cjs/viewport.js +127 -189
- package/dist/cjs/warning.js +5 -6
- package/dist/cjs/watchable.js +66 -148
- package/dist/types/src/colors.d.ts +1 -1
- package/dist/types/src/colors.d.ts.map +1 -1
- package/dist/types/src/global_config.d.ts +1 -1
- package/dist/types/src/global_config.d.ts.map +1 -1
- package/dist/types/src/models/base.d.ts +1 -1
- package/dist/types/src/models/base.d.ts.map +1 -1
- package/dist/types/src/models/cursor.d.ts +1 -1
- package/dist/types/src/models/cursor.d.ts.map +1 -1
- package/dist/types/src/models/field.d.ts +1 -1
- package/dist/types/src/models/field.d.ts.map +1 -1
- package/dist/types/src/models/linked_records_query_result.d.ts.map +1 -1
- package/dist/types/src/models/models.d.ts.map +1 -1
- package/dist/types/src/models/record.d.ts +1 -1
- package/dist/types/src/models/record.d.ts.map +1 -1
- package/dist/types/src/models/record_coloring.d.ts +2 -2
- package/dist/types/src/models/record_coloring.d.ts.map +1 -1
- package/dist/types/src/models/record_query_result.d.ts +3 -3
- package/dist/types/src/models/record_query_result.d.ts.map +1 -1
- package/dist/types/src/models/session.d.ts +1 -1
- package/dist/types/src/models/session.d.ts.map +1 -1
- package/dist/types/src/models/table.d.ts +1 -1
- package/dist/types/src/models/table.d.ts.map +1 -1
- package/dist/types/src/models/view.d.ts +1 -1
- package/dist/types/src/models/view.d.ts.map +1 -1
- package/dist/types/src/models/view_metadata_query_result.d.ts +2 -2
- package/dist/types/src/models/view_metadata_query_result.d.ts.map +1 -1
- package/dist/types/src/perform_record_action.d.ts +1 -1
- package/dist/types/src/perform_record_action.d.ts.map +1 -1
- package/dist/types/src/private_utils.d.ts +8 -8
- package/dist/types/src/private_utils.d.ts.map +1 -1
- package/dist/types/src/sdk.d.ts +1 -1
- package/dist/types/src/sdk.d.ts.map +1 -1
- package/dist/types/src/settings_button.d.ts +1 -1
- package/dist/types/src/settings_button.d.ts.map +1 -1
- package/dist/types/src/types/aggregators.d.ts +1 -1
- package/dist/types/src/types/aggregators.d.ts.map +1 -1
- package/dist/types/src/types/airtable_interface.d.ts +6 -6
- package/dist/types/src/types/airtable_interface.d.ts.map +1 -1
- package/dist/types/src/types/attachment.d.ts +1 -1
- package/dist/types/src/types/attachment.d.ts.map +1 -1
- package/dist/types/src/types/base.d.ts +1 -1
- package/dist/types/src/types/base.d.ts.map +1 -1
- package/dist/types/src/types/block.d.ts +1 -1
- package/dist/types/src/types/block.d.ts.map +1 -1
- package/dist/types/src/types/collaborator.d.ts +1 -1
- package/dist/types/src/types/collaborator.d.ts.map +1 -1
- package/dist/types/src/types/field.d.ts +5 -5
- package/dist/types/src/types/field.d.ts.map +1 -1
- package/dist/types/src/types/global_config.d.ts +6 -6
- package/dist/types/src/types/global_config.d.ts.map +1 -1
- package/dist/types/src/types/mutations.d.ts +4 -4
- package/dist/types/src/types/mutations.d.ts.map +1 -1
- package/dist/types/src/types/permission_levels.d.ts +1 -1
- package/dist/types/src/types/permission_levels.d.ts.map +1 -1
- package/dist/types/src/types/record.d.ts +2 -2
- package/dist/types/src/types/record.d.ts.map +1 -1
- package/dist/types/src/types/record_action_data.d.ts +1 -1
- package/dist/types/src/types/record_action_data.d.ts.map +1 -1
- package/dist/types/src/types/table.d.ts +3 -3
- package/dist/types/src/types/table.d.ts.map +1 -1
- package/dist/types/src/types/undo_redo.d.ts +1 -1
- package/dist/types/src/types/undo_redo.d.ts.map +1 -1
- package/dist/types/src/types/view.d.ts +4 -4
- package/dist/types/src/types/view.d.ts.map +1 -1
- package/dist/types/src/ui/base_provider.d.ts +1 -1
- package/dist/types/src/ui/base_provider.d.ts.map +1 -1
- package/dist/types/src/ui/block_wrapper.d.ts +2 -2
- package/dist/types/src/ui/button.d.ts +2 -2
- package/dist/types/src/ui/button.d.ts.map +1 -1
- package/dist/types/src/ui/cell_renderer.d.ts +2 -2
- package/dist/types/src/ui/choice_token.d.ts +4 -4
- package/dist/types/src/ui/choice_token.d.ts.map +1 -1
- package/dist/types/src/ui/collaborator_token.d.ts +6 -6
- package/dist/types/src/ui/collaborator_token.d.ts.map +1 -1
- package/dist/types/src/ui/color_palette.d.ts +3 -3
- package/dist/types/src/ui/color_palette.d.ts.map +1 -1
- package/dist/types/src/ui/color_palette_synced.d.ts +2 -2
- package/dist/types/src/ui/confirmation_dialog.d.ts +1 -1
- package/dist/types/src/ui/control_sizes.d.ts +2 -2
- package/dist/types/src/ui/control_sizes.d.ts.map +1 -1
- package/dist/types/src/ui/dialog.d.ts +2 -2
- package/dist/types/src/ui/dialog.d.ts.map +1 -1
- package/dist/types/src/ui/dialog_close_button.d.ts +1 -1
- package/dist/types/src/ui/field_icon.d.ts +3 -3
- package/dist/types/src/ui/field_icon.d.ts.map +1 -1
- package/dist/types/src/ui/field_picker.d.ts +2 -2
- package/dist/types/src/ui/field_picker.d.ts.map +1 -1
- package/dist/types/src/ui/form_field.d.ts +1 -1
- package/dist/types/src/ui/form_field.d.ts.map +1 -1
- package/dist/types/src/ui/global_alert.d.ts +1 -1
- package/dist/types/src/ui/global_alert.d.ts.map +1 -1
- package/dist/types/src/ui/global_config_synced_component_helpers.d.ts +1 -1
- package/dist/types/src/ui/global_config_synced_component_helpers.d.ts.map +1 -1
- package/dist/types/src/ui/heading.d.ts +4 -4
- package/dist/types/src/ui/heading.d.ts.map +1 -1
- package/dist/types/src/ui/icon.d.ts +2 -2
- package/dist/types/src/ui/icon.d.ts.map +1 -1
- package/dist/types/src/ui/icon_config.d.ts +39 -39
- package/dist/types/src/ui/icon_config.d.ts.map +1 -1
- package/dist/types/src/ui/initialize_block.d.ts +3 -3
- package/dist/types/src/ui/initialize_block.d.ts.map +1 -1
- package/dist/types/src/ui/input.d.ts +16 -16
- package/dist/types/src/ui/input.d.ts.map +1 -1
- package/dist/types/src/ui/label.d.ts +1 -1
- package/dist/types/src/ui/label.d.ts.map +1 -1
- package/dist/types/src/ui/link.d.ts +2 -2
- package/dist/types/src/ui/link.d.ts.map +1 -1
- package/dist/types/src/ui/loader.d.ts +2 -2
- package/dist/types/src/ui/loader.d.ts.map +1 -1
- package/dist/types/src/ui/model_picker_select.d.ts +1 -1
- package/dist/types/src/ui/model_picker_select.d.ts.map +1 -1
- package/dist/types/src/ui/popover.d.ts +5 -5
- package/dist/types/src/ui/popover.d.ts.map +1 -1
- package/dist/types/src/ui/progress_bar.d.ts +2 -2
- package/dist/types/src/ui/progress_bar.d.ts.map +1 -1
- package/dist/types/src/ui/record_card.d.ts +3 -3
- package/dist/types/src/ui/record_card.d.ts.map +1 -1
- package/dist/types/src/ui/record_card_list.d.ts +3 -3
- package/dist/types/src/ui/record_card_list.d.ts.map +1 -1
- package/dist/types/src/ui/select.d.ts +4 -4
- package/dist/types/src/ui/select_and_select_buttons_helpers.d.ts +4 -4
- package/dist/types/src/ui/select_and_select_buttons_helpers.d.ts.map +1 -1
- package/dist/types/src/ui/select_buttons.d.ts +5 -5
- package/dist/types/src/ui/select_buttons.d.ts.map +1 -1
- package/dist/types/src/ui/switch.d.ts +2 -2
- package/dist/types/src/ui/switch.d.ts.map +1 -1
- package/dist/types/src/ui/synced.d.ts +3 -3
- package/dist/types/src/ui/system/all_styles_set.d.ts +0 -1
- package/dist/types/src/ui/system/all_styles_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/appearance_set.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/appearance_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/background_color.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/background_color.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/border.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/border.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/border_radius.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/border_radius.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/box_shadow.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/box_shadow.d.ts.map +1 -1
- package/dist/types/src/ui/system/appearance/opacity.d.ts +0 -1
- package/dist/types/src/ui/system/appearance/opacity.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/dimensions_set.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/dimensions_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/height.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/height.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/max_height.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/max_height.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/max_width.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/max_width.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/min_height.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/min_height.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/min_width.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/min_width.d.ts.map +1 -1
- package/dist/types/src/ui/system/dimensions/width.d.ts +0 -1
- package/dist/types/src/ui/system/dimensions/width.d.ts.map +1 -1
- package/dist/types/src/ui/system/display.d.ts +0 -1
- package/dist/types/src/ui/system/display.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/align_content.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/align_content.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/align_items.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/align_items.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/flex_container_set.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/flex_container_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/flex_direction.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/flex_direction.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/flex_wrap.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/flex_wrap.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/justify_content.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/justify_content.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_container/justify_items.d.ts +0 -1
- package/dist/types/src/ui/system/flex_container/justify_items.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/align_self.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/align_self.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex_basis.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex_basis.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex_grow.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex_grow.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex_item_set.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex_item_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/flex_shrink.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/flex_shrink.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/justify_self.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/justify_self.d.ts.map +1 -1
- package/dist/types/src/ui/system/flex_item/order.d.ts +0 -1
- package/dist/types/src/ui/system/flex_item/order.d.ts.map +1 -1
- package/dist/types/src/ui/system/overflow.d.ts +0 -1
- package/dist/types/src/ui/system/overflow.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/bottom.d.ts +0 -1
- package/dist/types/src/ui/system/position/bottom.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/left.d.ts +0 -1
- package/dist/types/src/ui/system/position/left.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/position.d.ts +0 -1
- package/dist/types/src/ui/system/position/position.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/position_set.d.ts +0 -1
- package/dist/types/src/ui/system/position/position_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/right.d.ts +0 -1
- package/dist/types/src/ui/system/position/right.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/top.d.ts +0 -1
- package/dist/types/src/ui/system/position/top.d.ts.map +1 -1
- package/dist/types/src/ui/system/position/z_index.d.ts +0 -1
- package/dist/types/src/ui/system/position/z_index.d.ts.map +1 -1
- package/dist/types/src/ui/system/spacing/margin.d.ts +0 -1
- package/dist/types/src/ui/system/spacing/margin.d.ts.map +1 -1
- package/dist/types/src/ui/system/spacing/padding.d.ts +0 -1
- package/dist/types/src/ui/system/spacing/padding.d.ts.map +1 -1
- package/dist/types/src/ui/system/spacing/spacing_set.d.ts +0 -1
- package/dist/types/src/ui/system/spacing/spacing_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/font_family.d.ts +0 -1
- package/dist/types/src/ui/system/typography/font_family.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/font_size.d.ts +0 -1
- package/dist/types/src/ui/system/typography/font_size.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/font_style.d.ts +0 -1
- package/dist/types/src/ui/system/typography/font_style.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/font_weight.d.ts +0 -1
- package/dist/types/src/ui/system/typography/font_weight.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/letter_spacing.d.ts +0 -1
- package/dist/types/src/ui/system/typography/letter_spacing.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/line_height.d.ts +0 -1
- package/dist/types/src/ui/system/typography/line_height.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/text_align.d.ts +0 -1
- package/dist/types/src/ui/system/typography/text_align.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/text_color.d.ts +0 -1
- package/dist/types/src/ui/system/typography/text_color.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/text_decoration.d.ts +0 -1
- package/dist/types/src/ui/system/typography/text_decoration.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/text_transform.d.ts +0 -1
- package/dist/types/src/ui/system/typography/text_transform.d.ts.map +1 -1
- package/dist/types/src/ui/system/typography/typography_set.d.ts +0 -1
- package/dist/types/src/ui/system/typography/typography_set.d.ts.map +1 -1
- package/dist/types/src/ui/system/utils/create_style_prop_types.d.ts +1 -1
- package/dist/types/src/ui/system/utils/create_style_prop_types.d.ts.map +1 -1
- package/dist/types/src/ui/system/utils/csstype.d.ts +578 -578
- package/dist/types/src/ui/system/utils/csstype.d.ts.map +1 -1
- package/dist/types/src/ui/system/utils/types.d.ts +4 -4
- package/dist/types/src/ui/system/utils/types.d.ts.map +1 -1
- package/dist/types/src/ui/table_picker.d.ts +1 -1
- package/dist/types/src/ui/table_picker.d.ts.map +1 -1
- package/dist/types/src/ui/text.d.ts +4 -4
- package/dist/types/src/ui/text.d.ts.map +1 -1
- package/dist/types/src/ui/text_button.d.ts +2 -2
- package/dist/types/src/ui/text_button.d.ts.map +1 -1
- package/dist/types/src/ui/theme/default_theme/heading_styles.d.ts +2 -2
- package/dist/types/src/ui/theme/default_theme/heading_styles.d.ts.map +1 -1
- package/dist/types/src/ui/theme/default_theme/index.d.ts +1 -1
- package/dist/types/src/ui/theme/theme_context.d.ts +1 -3
- package/dist/types/src/ui/theme/theme_context.d.ts.map +1 -1
- package/dist/types/src/ui/theme/use_theme.d.ts +1 -1
- package/dist/types/src/ui/tooltip.d.ts +3 -3
- package/dist/types/src/ui/types/data_attributes_prop.d.ts.map +1 -1
- package/dist/types/src/ui/types/tooltip_anchor_props.d.ts +0 -1
- package/dist/types/src/ui/types/tooltip_anchor_props.d.ts.map +1 -1
- package/dist/types/src/ui/ui.d.ts +1 -0
- package/dist/types/src/ui/ui.d.ts.map +1 -1
- package/dist/types/src/ui/use_base.d.ts.map +1 -1
- package/dist/types/src/ui/use_color_scheme.d.ts +28 -0
- package/dist/types/src/ui/use_color_scheme.d.ts.map +1 -0
- package/dist/types/src/ui/use_cursor.d.ts.map +1 -1
- package/dist/types/src/ui/use_form_field.d.ts +0 -2
- package/dist/types/src/ui/use_form_field.d.ts.map +1 -1
- package/dist/types/src/ui/use_records.d.ts +2 -2
- package/dist/types/src/ui/use_records.d.ts.map +1 -1
- package/dist/types/src/ui/use_session.d.ts.map +1 -1
- package/dist/types/src/ui/view_picker.d.ts +3 -3
- package/dist/types/src/ui/view_picker.d.ts.map +1 -1
- package/dist/types/src/ui/viewport_constraint.d.ts +3 -3
- package/dist/types/src/ui/viewport_constraint.d.ts.map +1 -1
- package/dist/types/src/viewport.d.ts +2 -2
- package/dist/types/src/viewport.d.ts.map +1 -1
- package/dist/types/src/warning.d.ts +1 -1
- package/dist/types/src/warning.d.ts.map +1 -1
- package/package.json +40 -34
- package/dist/types/stories/all_controls.stories.d.ts +0 -2
- package/dist/types/stories/all_controls.stories.d.ts.map +0 -1
- package/dist/types/stories/box.appearance.stories.d.ts +0 -2
- package/dist/types/stories/box.appearance.stories.d.ts.map +0 -1
- package/dist/types/stories/box.dimensions.stories.d.ts +0 -2
- package/dist/types/stories/box.dimensions.stories.d.ts.map +0 -1
- package/dist/types/stories/box.flex_container.stories.d.ts +0 -2
- package/dist/types/stories/box.flex_container.stories.d.ts.map +0 -1
- package/dist/types/stories/box.flex_item.stories.d.ts +0 -2
- package/dist/types/stories/box.flex_item.stories.d.ts.map +0 -1
- package/dist/types/stories/box.position.stories.d.ts +0 -2
- package/dist/types/stories/box.position.stories.d.ts.map +0 -1
- package/dist/types/stories/box.spacing.stories.d.ts +0 -2
- package/dist/types/stories/box.spacing.stories.d.ts.map +0 -1
- package/dist/types/stories/box.stories.d.ts +0 -2
- package/dist/types/stories/box.stories.d.ts.map +0 -1
- package/dist/types/stories/box.typography.stories.d.ts +0 -2
- package/dist/types/stories/box.typography.stories.d.ts.map +0 -1
- package/dist/types/stories/button.stories.d.ts +0 -2
- package/dist/types/stories/button.stories.d.ts.map +0 -1
- package/dist/types/stories/cell_renderer.stories.d.ts +0 -2
- package/dist/types/stories/cell_renderer.stories.d.ts.map +0 -1
- package/dist/types/stories/choice_token.stories.d.ts +0 -2
- package/dist/types/stories/choice_token.stories.d.ts.map +0 -1
- package/dist/types/stories/collaborator_token.stories.d.ts +0 -2
- package/dist/types/stories/collaborator_token.stories.d.ts.map +0 -1
- package/dist/types/stories/color_palette.stories.d.ts +0 -2
- package/dist/types/stories/color_palette.stories.d.ts.map +0 -1
- package/dist/types/stories/confirmation_dialog.stories.d.ts +0 -2
- package/dist/types/stories/confirmation_dialog.stories.d.ts.map +0 -1
- package/dist/types/stories/dialog.stories.d.ts +0 -2
- package/dist/types/stories/dialog.stories.d.ts.map +0 -1
- package/dist/types/stories/field_icon.stories.d.ts +0 -2
- package/dist/types/stories/field_icon.stories.d.ts.map +0 -1
- package/dist/types/stories/form_field.stories.d.ts +0 -2
- package/dist/types/stories/form_field.stories.d.ts.map +0 -1
- package/dist/types/stories/heading.size.stories.d.ts +0 -2
- package/dist/types/stories/heading.size.stories.d.ts.map +0 -1
- package/dist/types/stories/heading.stories.d.ts +0 -2
- package/dist/types/stories/heading.stories.d.ts.map +0 -1
- package/dist/types/stories/helpers/attachments.d.ts +0 -4
- package/dist/types/stories/helpers/attachments.d.ts.map +0 -1
- package/dist/types/stories/helpers/categorize_style_props.d.ts +0 -14
- package/dist/types/stories/helpers/categorize_style_props.d.ts.map +0 -1
- package/dist/types/stories/helpers/choice_options.d.ts +0 -7
- package/dist/types/stories/helpers/choice_options.d.ts.map +0 -1
- package/dist/types/stories/helpers/code_block.d.ts +0 -5
- package/dist/types/stories/helpers/code_block.d.ts.map +0 -1
- package/dist/types/stories/helpers/code_utils.d.ts +0 -32
- package/dist/types/stories/helpers/code_utils.d.ts.map +0 -1
- package/dist/types/stories/helpers/collaborator_options.d.ts +0 -7
- package/dist/types/stories/helpers/collaborator_options.d.ts.map +0 -1
- package/dist/types/stories/helpers/example.d.ts +0 -39
- package/dist/types/stories/helpers/example.d.ts.map +0 -1
- package/dist/types/stories/helpers/example_code_panel.d.ts +0 -10
- package/dist/types/stories/helpers/example_code_panel.d.ts.map +0 -1
- package/dist/types/stories/helpers/fake_cell_renderer.d.ts +0 -7
- package/dist/types/stories/helpers/fake_cell_renderer.d.ts.map +0 -1
- package/dist/types/stories/helpers/fake_foreign_record.d.ts +0 -5
- package/dist/types/stories/helpers/fake_foreign_record.d.ts.map +0 -1
- package/dist/types/stories/helpers/fake_record_card.d.ts +0 -13
- package/dist/types/stories/helpers/fake_record_card.d.ts.map +0 -1
- package/dist/types/stories/helpers/field_type.d.ts +0 -6
- package/dist/types/stories/helpers/field_type.d.ts.map +0 -1
- package/dist/types/stories/helpers/raf_throttle.d.ts +0 -5
- package/dist/types/stories/helpers/raf_throttle.d.ts.map +0 -1
- package/dist/types/stories/helpers/style_prop_list.d.ts +0 -9
- package/dist/types/stories/helpers/style_prop_list.d.ts.map +0 -1
- package/dist/types/stories/helpers/sync_source_options.d.ts +0 -7
- package/dist/types/stories/helpers/sync_source_options.d.ts.map +0 -1
- package/dist/types/stories/helpers/use_resizable_panel.d.ts +0 -27
- package/dist/types/stories/helpers/use_resizable_panel.d.ts.map +0 -1
- package/dist/types/stories/icon.stories.d.ts +0 -2
- package/dist/types/stories/icon.stories.d.ts.map +0 -1
- package/dist/types/stories/icon_example.d.ts +0 -3
- package/dist/types/stories/icon_example.d.ts.map +0 -1
- package/dist/types/stories/input.stories.d.ts +0 -2
- package/dist/types/stories/input.stories.d.ts.map +0 -1
- package/dist/types/stories/label.stories.d.ts +0 -2
- package/dist/types/stories/label.stories.d.ts.map +0 -1
- package/dist/types/stories/link.stories.d.ts +0 -2
- package/dist/types/stories/link.stories.d.ts.map +0 -1
- package/dist/types/stories/loader.stories.d.ts +0 -2
- package/dist/types/stories/loader.stories.d.ts.map +0 -1
- package/dist/types/stories/model_pickers.stories.d.ts +0 -2
- package/dist/types/stories/model_pickers.stories.d.ts.map +0 -1
- package/dist/types/stories/progress_bar.stories.d.ts +0 -2
- package/dist/types/stories/progress_bar.stories.d.ts.map +0 -1
- package/dist/types/stories/record_card.stories.d.ts +0 -2
- package/dist/types/stories/record_card.stories.d.ts.map +0 -1
- package/dist/types/stories/record_card_list.stories.d.ts +0 -2
- package/dist/types/stories/record_card_list.stories.d.ts.map +0 -1
- package/dist/types/stories/select.stories.d.ts +0 -2
- package/dist/types/stories/select.stories.d.ts.map +0 -1
- package/dist/types/stories/select_buttons.stories.d.ts +0 -2
- package/dist/types/stories/select_buttons.stories.d.ts.map +0 -1
- package/dist/types/stories/switch.stories.d.ts +0 -2
- package/dist/types/stories/switch.stories.d.ts.map +0 -1
- package/dist/types/stories/text.size.stories.d.ts +0 -2
- package/dist/types/stories/text.size.stories.d.ts.map +0 -1
- package/dist/types/stories/text.stories.d.ts +0 -2
- package/dist/types/stories/text.stories.d.ts.map +0 -1
- package/dist/types/stories/text_button.stories.d.ts +0 -2
- package/dist/types/stories/text_button.stories.d.ts.map +0 -1
- package/dist/types/stories/tooltip.stories.d.ts +0 -2
- package/dist/types/stories/tooltip.stories.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts +0 -124
- package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/linked_records.d.ts +0 -4
- package/dist/types/test/airtable_interface_mocks/linked_records.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts +0 -61
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts.map +0 -1
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts +0 -4
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts.map +0 -1
- package/dist/types/test/error_utils.test.d.ts +0 -2
- package/dist/types/test/error_utils.test.d.ts.map +0 -1
- package/dist/types/test/get_style_props_for_responsive_prop.test.d.ts +0 -2
- package/dist/types/test/get_style_props_for_responsive_prop.test.d.ts.map +0 -1
- package/dist/types/test/index.test.d.ts +0 -2
- package/dist/types/test/index.test.d.ts.map +0 -1
- package/dist/types/test/models/base.test.d.ts +0 -2
- package/dist/types/test/models/base.test.d.ts.map +0 -1
- package/dist/types/test/models/cursor.test.d.ts +0 -2
- package/dist/types/test/models/cursor.test.d.ts.map +0 -1
- package/dist/types/test/models/field.test.d.ts +0 -2
- package/dist/types/test/models/field.test.d.ts.map +0 -1
- package/dist/types/test/models/linked_records_query_result.test.d.ts +0 -2
- package/dist/types/test/models/linked_records_query_result.test.d.ts.map +0 -1
- package/dist/types/test/models/mutations.test.d.ts +0 -2
- package/dist/types/test/models/mutations.test.d.ts.map +0 -1
- package/dist/types/test/models/object_pool.test.d.ts +0 -2
- package/dist/types/test/models/object_pool.test.d.ts.map +0 -1
- package/dist/types/test/models/record.test.d.ts +0 -2
- package/dist/types/test/models/record.test.d.ts.map +0 -1
- package/dist/types/test/models/session.test.d.ts +0 -2
- package/dist/types/test/models/session.test.d.ts.map +0 -1
- package/dist/types/test/models/table.test.d.ts +0 -2
- package/dist/types/test/models/table.test.d.ts.map +0 -1
- package/dist/types/test/models/table_mutations.test.d.ts +0 -2
- package/dist/types/test/models/table_mutations.test.d.ts.map +0 -1
- package/dist/types/test/models/table_or_view_query_result.test.d.ts +0 -2
- package/dist/types/test/models/table_or_view_query_result.test.d.ts.map +0 -1
- package/dist/types/test/models/view.test.d.ts +0 -2
- package/dist/types/test/models/view.test.d.ts.map +0 -1
- package/dist/types/test/models/view_metadata_query_result.test.d.ts +0 -2
- package/dist/types/test/models/view_metadata_query_result.test.d.ts.map +0 -1
- package/dist/types/test/private_utils.test.d.ts +0 -2
- package/dist/types/test/private_utils.test.d.ts.map +0 -1
- package/dist/types/test/sdk.test.d.ts +0 -2
- package/dist/types/test/sdk.test.d.ts.map +0 -1
- package/dist/types/test/setup_enzyme.d.ts +0 -2
- package/dist/types/test/setup_enzyme.d.ts.map +0 -1
- package/dist/types/test/test_helpers.d.ts +0 -11
- package/dist/types/test/test_helpers.d.ts.map +0 -1
- package/dist/types/test/ui/base_provider.test.d.ts +0 -2
- package/dist/types/test/ui/base_provider.test.d.ts.map +0 -1
- package/dist/types/test/ui/block_wrapper.test.d.ts +0 -2
- package/dist/types/test/ui/block_wrapper.test.d.ts.map +0 -1
- package/dist/types/test/ui/box.test.d.ts +0 -2
- package/dist/types/test/ui/box.test.d.ts.map +0 -1
- package/dist/types/test/ui/button.test.d.ts +0 -2
- package/dist/types/test/ui/button.test.d.ts.map +0 -1
- package/dist/types/test/ui/cell_renderer.test.d.ts +0 -2
- package/dist/types/test/ui/cell_renderer.test.d.ts.map +0 -1
- package/dist/types/test/ui/choice_token.test.d.ts +0 -2
- package/dist/types/test/ui/choice_token.test.d.ts.map +0 -1
- package/dist/types/test/ui/collaborator_token.test.d.ts +0 -2
- package/dist/types/test/ui/collaborator_token.test.d.ts.map +0 -1
- package/dist/types/test/ui/color_palette.test.d.ts +0 -2
- package/dist/types/test/ui/color_palette.test.d.ts.map +0 -1
- package/dist/types/test/ui/color_palette_synced.test.d.ts +0 -2
- package/dist/types/test/ui/color_palette_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/confirmation_dialog.test.d.ts +0 -2
- package/dist/types/test/ui/confirmation_dialog.test.d.ts.map +0 -1
- package/dist/types/test/ui/dialog.test.d.ts +0 -2
- package/dist/types/test/ui/dialog.test.d.ts.map +0 -1
- package/dist/types/test/ui/expand_record.test.d.ts +0 -2
- package/dist/types/test/ui/expand_record.test.d.ts.map +0 -1
- package/dist/types/test/ui/expand_record_list.test.d.ts +0 -2
- package/dist/types/test/ui/expand_record_list.test.d.ts.map +0 -1
- package/dist/types/test/ui/expand_record_picker_async.test.d.ts +0 -2
- package/dist/types/test/ui/expand_record_picker_async.test.d.ts.map +0 -1
- package/dist/types/test/ui/field_icon.test.d.ts +0 -2
- package/dist/types/test/ui/field_icon.test.d.ts.map +0 -1
- package/dist/types/test/ui/field_picker.test.d.ts +0 -2
- package/dist/types/test/ui/field_picker.test.d.ts.map +0 -1
- package/dist/types/test/ui/field_picker_synced.test.d.ts +0 -2
- package/dist/types/test/ui/field_picker_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/form_field.test.d.ts +0 -2
- package/dist/types/test/ui/form_field.test.d.ts.map +0 -1
- package/dist/types/test/ui/global_alert.test.d.ts +0 -2
- package/dist/types/test/ui/global_alert.test.d.ts.map +0 -1
- package/dist/types/test/ui/heading.test.d.ts +0 -2
- package/dist/types/test/ui/heading.test.d.ts.map +0 -1
- package/dist/types/test/ui/icon.test.d.ts +0 -2
- package/dist/types/test/ui/icon.test.d.ts.map +0 -1
- package/dist/types/test/ui/initialize_block.test.d.ts +0 -2
- package/dist/types/test/ui/initialize_block.test.d.ts.map +0 -1
- package/dist/types/test/ui/input.test.d.ts +0 -2
- package/dist/types/test/ui/input.test.d.ts.map +0 -1
- package/dist/types/test/ui/input_synced.test.d.ts +0 -2
- package/dist/types/test/ui/input_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/label.test.d.ts +0 -2
- package/dist/types/test/ui/label.test.d.ts.map +0 -1
- package/dist/types/test/ui/link.test.d.ts +0 -2
- package/dist/types/test/ui/link.test.d.ts.map +0 -1
- package/dist/types/test/ui/loader.test.d.ts +0 -2
- package/dist/types/test/ui/loader.test.d.ts.map +0 -1
- package/dist/types/test/ui/modal.test.d.ts +0 -2
- package/dist/types/test/ui/modal.test.d.ts.map +0 -1
- package/dist/types/test/ui/popover.test.d.ts +0 -2
- package/dist/types/test/ui/popover.test.d.ts.map +0 -1
- package/dist/types/test/ui/progress_bar.test.d.ts +0 -2
- package/dist/types/test/ui/progress_bar.test.d.ts.map +0 -1
- package/dist/types/test/ui/record_card.test.d.ts +0 -2
- package/dist/types/test/ui/record_card.test.d.ts.map +0 -1
- package/dist/types/test/ui/record_card_list.test.d.ts +0 -2
- package/dist/types/test/ui/record_card_list.test.d.ts.map +0 -1
- package/dist/types/test/ui/remote_utils.test.d.ts +0 -2
- package/dist/types/test/ui/remote_utils.test.d.ts.map +0 -1
- package/dist/types/test/ui/select.test.d.ts +0 -2
- package/dist/types/test/ui/select.test.d.ts.map +0 -1
- package/dist/types/test/ui/select_buttons.test.d.ts +0 -2
- package/dist/types/test/ui/select_buttons.test.d.ts.map +0 -1
- package/dist/types/test/ui/select_buttons_synced.test.d.ts +0 -2
- package/dist/types/test/ui/select_buttons_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/select_synced.test.d.ts +0 -2
- package/dist/types/test/ui/select_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/switch.test.d.ts +0 -2
- package/dist/types/test/ui/switch.test.d.ts.map +0 -1
- package/dist/types/test/ui/switch_synced.test.d.ts +0 -2
- package/dist/types/test/ui/switch_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/synced.test.d.ts +0 -2
- package/dist/types/test/ui/synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/table_picker.test.d.ts +0 -2
- package/dist/types/test/ui/table_picker.test.d.ts.map +0 -1
- package/dist/types/test/ui/table_picker_synced.test.d.ts +0 -2
- package/dist/types/test/ui/table_picker_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/text.test.d.ts +0 -2
- package/dist/types/test/ui/text.test.d.ts.map +0 -1
- package/dist/types/test/ui/text_button.test.d.ts +0 -2
- package/dist/types/test/ui/text_button.test.d.ts.map +0 -1
- package/dist/types/test/ui/tooltip.test.d.ts +0 -2
- package/dist/types/test/ui/tooltip.test.d.ts.map +0 -1
- package/dist/types/test/ui/ui.test.d.ts +0 -2
- package/dist/types/test/ui/ui.test.d.ts.map +0 -1
- package/dist/types/test/ui/unstable_standalone_ui.test.d.ts +0 -1
- package/dist/types/test/ui/unstable_standalone_ui.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_array_identity.test.d.ts +0 -2
- package/dist/types/test/ui/use_array_identity.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_loadable.test.d.ts +0 -2
- package/dist/types/test/ui/use_loadable.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_record_action_data.test.d.ts +0 -2
- package/dist/types/test/ui/use_record_action_data.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_records.test.d.ts +0 -2
- package/dist/types/test/ui/use_records.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_view_metadata.test.d.ts +0 -2
- package/dist/types/test/ui/use_view_metadata.test.d.ts.map +0 -1
- package/dist/types/test/ui/use_watchable.test.d.ts +0 -2
- package/dist/types/test/ui/use_watchable.test.d.ts.map +0 -1
- package/dist/types/test/ui/view_picker.test.d.ts +0 -2
- package/dist/types/test/ui/view_picker.test.d.ts.map +0 -1
- package/dist/types/test/ui/view_picker_synced.test.d.ts +0 -2
- package/dist/types/test/ui/view_picker_synced.test.d.ts.map +0 -1
- package/dist/types/test/ui/viewport_constraint.test.d.ts +0 -2
- package/dist/types/test/ui/viewport_constraint.test.d.ts.map +0 -1
- package/dist/types/test/unstable_private_utils.test.d.ts +0 -1
- package/dist/types/test/unstable_private_utils.test.d.ts.map +0 -1
package/dist/cjs/ui/icon.js
CHANGED
|
@@ -1,51 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.array.filter.js");
|
|
5
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
6
|
+
require("core-js/modules/es.object.to-string.js");
|
|
7
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
3
8
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.symbol");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.array.concat");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/es.array.filter");
|
|
10
|
-
|
|
11
|
-
require("core-js/modules/es.object.get-own-property-descriptors");
|
|
12
|
-
|
|
13
|
-
require("core-js/modules/web.dom-collections.for-each");
|
|
14
|
-
|
|
15
9
|
Object.defineProperty(exports, "__esModule", {
|
|
16
10
|
value: true
|
|
17
11
|
});
|
|
18
|
-
exports.
|
|
19
|
-
|
|
12
|
+
exports.sharedIconPropTypes = exports.iconStylePropTypes = exports.default = void 0;
|
|
13
|
+
require("core-js/modules/es.array.concat.js");
|
|
20
14
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
21
|
-
|
|
22
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
23
|
-
|
|
24
16
|
var _react = _interopRequireDefault(require("react"));
|
|
25
|
-
|
|
26
17
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
27
|
-
|
|
28
18
|
var _core = require("@styled-system/core");
|
|
29
|
-
|
|
30
19
|
var _emotion = require("emotion");
|
|
31
|
-
|
|
32
20
|
var _warning = _interopRequireDefault(require("../warning"));
|
|
33
|
-
|
|
34
21
|
var _use_styled_system = _interopRequireDefault(require("./use_styled_system"));
|
|
35
|
-
|
|
36
22
|
var _system = require("./system");
|
|
37
|
-
|
|
38
23
|
var _tooltip_anchor_props = require("./types/tooltip_anchor_props");
|
|
39
|
-
|
|
40
24
|
var _icon_config = require("./icon_config");
|
|
41
|
-
|
|
42
|
-
function ownKeys(
|
|
43
|
-
|
|
44
|
-
|
|
25
|
+
var _excluded = ["name", "size", "fillColor", "onMouseEnter", "onMouseLeave", "onClick", "hasOnClick", "className", "style", "pathClassName", "pathStyle", "suppressWarning"];
|
|
26
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /** @module @airtable/blocks/ui: Icon */ /** */
|
|
28
|
+
/**
|
|
29
|
+
* Style props shared between the {@link Icon} and {@link FieldIcon} components. Accepts:
|
|
30
|
+
* * {@link FlexItemSetProps}
|
|
31
|
+
* * {@link PositionSetProps}
|
|
32
|
+
* * {@link MarginProps}
|
|
33
|
+
*
|
|
34
|
+
* @noInheritDoc
|
|
35
|
+
*/
|
|
45
36
|
|
|
46
37
|
var styleParser = (0, _core.compose)(_system.flexItemSet, _system.positionSet, _system.margin, _system.width, _system.height);
|
|
38
|
+
var iconStylePropTypes = exports.iconStylePropTypes = _objectSpread(_objectSpread(_objectSpread({}, _system.flexItemSetPropTypes), _system.positionSetPropTypes), _system.marginPropTypes);
|
|
47
39
|
|
|
48
|
-
var iconStylePropTypes = _objectSpread({}, _system.flexItemSetPropTypes, {}, _system.positionSetPropTypes, {}, _system.marginPropTypes);
|
|
49
40
|
/**
|
|
50
41
|
* Props shared between the {@link Icon} and {@link FieldIcon} components.
|
|
51
42
|
*
|
|
@@ -53,25 +44,20 @@ var iconStylePropTypes = _objectSpread({}, _system.flexItemSetPropTypes, {}, _sy
|
|
|
53
44
|
*/
|
|
54
45
|
// TODO (stephen): inherit shared props without inheriting style props
|
|
55
46
|
|
|
56
|
-
|
|
57
|
-
exports.iconStylePropTypes = iconStylePropTypes;
|
|
58
|
-
|
|
59
|
-
var sharedIconPropTypes = _objectSpread({
|
|
47
|
+
var sharedIconPropTypes = exports.sharedIconPropTypes = _objectSpread(_objectSpread({
|
|
60
48
|
size: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
61
49
|
fillColor: _propTypes.default.string,
|
|
62
50
|
className: _propTypes.default.string,
|
|
63
51
|
style: _propTypes.default.object,
|
|
64
52
|
pathClassName: _propTypes.default.string,
|
|
65
53
|
pathStyle: _propTypes.default.object
|
|
66
|
-
}, _tooltip_anchor_props.tooltipAnchorPropTypes,
|
|
54
|
+
}, _tooltip_anchor_props.tooltipAnchorPropTypes), iconStylePropTypes);
|
|
55
|
+
|
|
67
56
|
/**
|
|
68
57
|
* Props for the {@link Icon} component. Also accepts:
|
|
69
58
|
* * {@link IconStyleProps}
|
|
70
59
|
*/
|
|
71
60
|
|
|
72
|
-
|
|
73
|
-
exports.sharedIconPropTypes = sharedIconPropTypes;
|
|
74
|
-
|
|
75
61
|
/**
|
|
76
62
|
* A vector icon from the Airtable icon set.
|
|
77
63
|
*
|
|
@@ -82,47 +68,42 @@ exports.sharedIconPropTypes = sharedIconPropTypes;
|
|
|
82
68
|
*/
|
|
83
69
|
var Icon = (props, ref) => {
|
|
84
70
|
var name = props.name,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
var classNameForStyleProps = (0, _use_styled_system.default)(_objectSpread({}, styleProps, {
|
|
71
|
+
_props$size = props.size,
|
|
72
|
+
size = _props$size === void 0 ? 16 : _props$size,
|
|
73
|
+
_props$fillColor = props.fillColor,
|
|
74
|
+
fillColor = _props$fillColor === void 0 ? 'currentColor' : _props$fillColor,
|
|
75
|
+
onMouseEnter = props.onMouseEnter,
|
|
76
|
+
onMouseLeave = props.onMouseLeave,
|
|
77
|
+
onClick = props.onClick,
|
|
78
|
+
hasOnClick = props.hasOnClick,
|
|
79
|
+
className = props.className,
|
|
80
|
+
style = props.style,
|
|
81
|
+
pathClassName = props.pathClassName,
|
|
82
|
+
pathStyle = props.pathStyle,
|
|
83
|
+
_props$suppressWarnin = props.suppressWarning,
|
|
84
|
+
suppressWarning = _props$suppressWarnin === void 0 ? false : _props$suppressWarnin,
|
|
85
|
+
styleProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
86
|
+
var classNameForStyleProps = (0, _use_styled_system.default)(_objectSpread(_objectSpread({}, styleProps), {}, {
|
|
101
87
|
width: size,
|
|
102
88
|
height: size
|
|
103
89
|
}), styleParser);
|
|
104
90
|
var phosphorIconName = _icon_config.legacyIconNameToPhosphorIconName[name];
|
|
105
91
|
var pathData = phosphorIconName ? _icon_config.phosphorIconConfig[phosphorIconName] : null;
|
|
106
|
-
|
|
107
92
|
if (!pathData) {
|
|
108
93
|
return null;
|
|
109
94
|
}
|
|
110
|
-
|
|
111
95
|
if (_icon_config.deprecatedIconNameToReplacementName.has(name) && !suppressWarning) {
|
|
112
96
|
var alternative = _icon_config.deprecatedIconNameToReplacementName.get(name);
|
|
113
|
-
|
|
114
97
|
var alternativeText = '';
|
|
115
|
-
|
|
116
98
|
if (alternative) {
|
|
117
99
|
alternativeText = "Use <Icon name='".concat(alternative, "' .../> instead.");
|
|
118
100
|
}
|
|
119
|
-
|
|
120
101
|
(0, _warning.default)("'".concat(name, "' as an icon name is deprecated. ").concat(alternativeText));
|
|
121
102
|
}
|
|
122
|
-
|
|
123
|
-
return _react.default.createElement("svg", {
|
|
103
|
+
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
124
104
|
ref: ref,
|
|
125
|
-
viewBox: "0 0 16 16"
|
|
105
|
+
viewBox: "0 0 16 16"
|
|
106
|
+
// TODO (stephen): remove tooltip anchor props
|
|
126
107
|
,
|
|
127
108
|
onMouseEnter: onMouseEnter,
|
|
128
109
|
onMouseLeave: onMouseLeave,
|
|
@@ -131,7 +112,7 @@ var Icon = (props, ref) => {
|
|
|
131
112
|
style: _objectSpread({
|
|
132
113
|
shapeRendering: 'geometricPrecision'
|
|
133
114
|
}, style)
|
|
134
|
-
}, _react.default.createElement("path", {
|
|
115
|
+
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
135
116
|
fillRule: "evenodd",
|
|
136
117
|
className: pathClassName,
|
|
137
118
|
style: pathStyle,
|
|
@@ -139,13 +120,10 @@ var Icon = (props, ref) => {
|
|
|
139
120
|
d: pathData
|
|
140
121
|
}));
|
|
141
122
|
};
|
|
142
|
-
|
|
143
|
-
var ForwardedRefIcon = _react.default.forwardRef(Icon);
|
|
144
|
-
|
|
123
|
+
var ForwardedRefIcon = /*#__PURE__*/_react.default.forwardRef(Icon);
|
|
145
124
|
ForwardedRefIcon.propTypes = _objectSpread({
|
|
146
125
|
name: _icon_config.iconNamePropType.isRequired,
|
|
147
126
|
suppressWarning: _propTypes.default.bool
|
|
148
127
|
}, sharedIconPropTypes);
|
|
149
128
|
ForwardedRefIcon.displayName = 'Icon';
|
|
150
|
-
var _default = ForwardedRefIcon;
|
|
151
|
-
exports.default = _default;
|
|
129
|
+
var _default = exports.default = ForwardedRefIcon;
|
|
@@ -1,39 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.array.iterator");
|
|
4
|
-
|
|
5
|
-
require("core-js/modules/es.map");
|
|
6
|
-
|
|
7
|
-
require("core-js/modules/es.object.to-string");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
10
|
-
|
|
11
3
|
Object.defineProperty(exports, "__esModule", {
|
|
12
4
|
value: true
|
|
13
5
|
});
|
|
14
|
-
exports.
|
|
15
|
-
|
|
6
|
+
exports.phosphorIconConfig = exports.legacyIconNameToPhosphorIconName = exports.iconNamesArray = exports.iconNames = exports.iconNamePropType = exports.deprecatedIconNameToReplacementName = void 0;
|
|
7
|
+
require("core-js/modules/es.array.iterator.js");
|
|
8
|
+
require("core-js/modules/es.map.js");
|
|
9
|
+
require("core-js/modules/es.object.to-string.js");
|
|
10
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
16
11
|
var _private_utils = require("../private_utils");
|
|
17
|
-
|
|
18
12
|
// New icons should be added to both Hyperbase and this file.
|
|
19
13
|
// In the UI kit we need more specific types to allow proper autocomplete and prop types.
|
|
20
14
|
// To achieve this we run the original `iconConfig` object from Hyperbase through an utility.
|
|
21
15
|
// You can find the utility here: https://codesandbox.io/s/winter-sound-f4p2l?fontsize=14
|
|
22
|
-
var iconNamesArray = ['aiAssistant', 'android', 'apple', 'apps', 'applyRowTemplate', 'ascending', 'attachment', 'automations', 'autonumber', 'barcode', 'bell', 'blocks', 'bold', 'bolt', 'boltList', 'book', 'calendar', 'calendarDay', 'caret', 'chart', 'chat', 'check', 'checkbox', 'checkboxChecked', 'checkboxUnchecked', 'checklist', 'chevronDown', 'chevronLeft', 'chevronRight', 'chevronUp', 'clipboard', 'code', 'cog', 'collapse', 'collapseSidebar', 'contacts', 'count', 'count1', 'cube', 'cursor', 'day', 'dayAuto', 'dedent', 'descending', 'dollar', 'down', 'download', 'dragHandle', 'drive', 'duplicate', 'edit', 'envelope', 'envelope1', 'expand', 'expand1', 'expandSidebar', 'feed', 'file', 'filter', 'flag', 'form', 'formula', 'fullscreen', 'gallery', 'gantt', 'gift', 'grid', 'grid1', 'group', 'heart', 'help', 'hide', 'hide1', 'history', 'home', 'hyperlink', 'hyperlinkCancel', 'indent', 'info', 'italic', 'kanban', 'laptop', 'left', 'lightbulb', 'link', 'link1', 'lock', 'logout', 'lookup', 'mapPin', 'markdown', 'megaphone', 'menu', 'minus', 'mobile', 'multicollaborator', 'multiselect', 'number', 'ol', 'overflow', 'overlay', 'paint', 'paragraph', 'paragraph1', 'pause', 'percent', 'personal', 'personalAuto', 'personalCloseup', 'phone', 'pivot', 'play', 'plus', 'plusFilled', 'premium', 'print', 'public', 'publish', 'quote', 'quote1', 'radio', 'radioSelected', 'redo', 'redo1', 'richText', 'right', 'rollup', 'rollup1', 'rowHeightSmall', 'rowHeightMedium', 'rowHeightLarge', 'rowHeightExtraLarge', 'search', 'select', 'selectCaret', 'settings', 'shapes', 'share', 'share1', 'shareWithBolt', 'show', 'show1', 'slack', 'smiley', 'sort', 'stack', 'star', 'strikethrough', 'switcher', 'tabs', 'team', 'teamLocked', 'text', 'thumbsUp', 'time', 'timeline', 'toggle', 'trash', 'twitter', 'ul', 'underline', 'undo', 'up', 'upload', 'video', 'view', 'warning', 'windows', 'x', 'xCheckbox'];
|
|
23
|
-
exports.
|
|
24
|
-
var
|
|
25
|
-
exports.iconNames = iconNames;
|
|
26
|
-
var deprecatedIconNameToReplacementName = new Map([['blocks', 'apps']]);
|
|
16
|
+
var iconNamesArray = exports.iconNamesArray = ['aiAssistant', 'android', 'apple', 'apps', 'applyRowTemplate', 'ascending', 'attachment', 'automations', 'autonumber', 'barcode', 'bell', 'blocks', 'bold', 'bolt', 'boltList', 'book', 'calendar', 'calendarDay', 'caret', 'chart', 'chat', 'check', 'checkbox', 'checkboxChecked', 'checkboxUnchecked', 'checklist', 'chevronDown', 'chevronLeft', 'chevronRight', 'chevronUp', 'clipboard', 'code', 'cog', 'collapse', 'collapseSidebar', 'contacts', 'count', 'count1', 'cube', 'cursor', 'day', 'dayAuto', 'dedent', 'descending', 'dollar', 'down', 'download', 'dragHandle', 'drive', 'duplicate', 'edit', 'envelope', 'envelope1', 'expand', 'expand1', 'expandSidebar', 'feed', 'file', 'filter', 'flag', 'form', 'formula', 'fullscreen', 'gallery', 'gantt', 'gift', 'grid', 'grid1', 'group', 'heart', 'help', 'hide', 'hide1', 'history', 'home', 'hyperlink', 'hyperlinkCancel', 'indent', 'info', 'italic', 'kanban', 'laptop', 'left', 'lightbulb', 'link', 'link1', 'lock', 'logout', 'lookup', 'mapPin', 'markdown', 'megaphone', 'menu', 'minus', 'mobile', 'multicollaborator', 'multiselect', 'number', 'ol', 'overflow', 'overlay', 'paint', 'paragraph', 'paragraph1', 'pause', 'percent', 'personal', 'personalAuto', 'personalCloseup', 'phone', 'pivot', 'play', 'plus', 'plusFilled', 'premium', 'print', 'public', 'publish', 'quote', 'quote1', 'radio', 'radioSelected', 'redo', 'redo1', 'richText', 'right', 'rollup', 'rollup1', 'rowHeightSmall', 'rowHeightMedium', 'rowHeightLarge', 'rowHeightExtraLarge', 'search', 'select', 'selectCaret', 'settings', 'shapes', 'share', 'share1', 'shareWithBolt', 'show', 'show1', 'slack', 'smiley', 'sort', 'stack', 'star', 'strikethrough', 'switcher', 'tabs', 'team', 'teamLocked', 'text', 'thumbsUp', 'time', 'timeline', 'toggle', 'trash', 'twitter', 'ul', 'underline', 'undo', 'up', 'upload', 'video', 'view', 'warning', 'windows', 'x', 'xCheckbox'];
|
|
17
|
+
var iconNames = exports.iconNames = (0, _private_utils.createEnum)(...iconNamesArray);
|
|
18
|
+
var deprecatedIconNameToReplacementName = exports.deprecatedIconNameToReplacementName = new Map([['blocks', 'apps']]);
|
|
27
19
|
/**
|
|
28
20
|
* List of all icon names. If you need to render an icon use the {@link Icon|Icon component}.
|
|
29
21
|
*
|
|
30
22
|
* [[ Story id="icon--example" title="Icon example" height="576px"]]
|
|
31
23
|
*/
|
|
32
24
|
|
|
33
|
-
exports.
|
|
34
|
-
var
|
|
35
|
-
exports.iconNamePropType = iconNamePropType;
|
|
36
|
-
var phosphorIconConfig = {
|
|
25
|
+
var iconNamePropType = exports.iconNamePropType = (0, _private_utils.createPropTypeFromEnum)(iconNames);
|
|
26
|
+
var phosphorIconConfig = exports.phosphorIconConfig = {
|
|
37
27
|
AddressBook: 'M8.5 4.5C7.12522 4.5 6 5.62522 6 7C6 7.73367 6.32641 8.38947 6.83423 8.8479C6.15661 9.13725 5.55366 9.59508 5.09998 10.2C5.06057 10.2525 5.03189 10.3123 5.01559 10.3759C4.99928 10.4395 4.99567 10.5057 5.00495 10.5707C5.01424 10.6357 5.03624 10.6983 5.06969 10.7548C5.10315 10.8113 5.14741 10.8606 5.19995 10.9C5.25248 10.9394 5.31226 10.9681 5.37587 10.9844C5.43949 11.0007 5.50569 11.0043 5.5707 10.995C5.63571 10.9858 5.69825 10.9638 5.75476 10.9303C5.81126 10.8968 5.86063 10.8526 5.90002 10.8C6.51409 9.98135 7.4766 9.50003 8.5 9.5C9.5234 9.50005 10.4859 9.98136 11.1 10.8C11.1394 10.8526 11.1887 10.8968 11.2452 10.9303C11.3017 10.9638 11.3643 10.9858 11.4293 10.995C11.4943 11.0043 11.5605 11.0007 11.6241 10.9844C11.6877 10.9681 11.7475 10.9394 11.8 10.9C11.8526 10.8606 11.8968 10.8113 11.9303 10.7548C11.9638 10.6983 11.9858 10.6357 11.995 10.5707C12.0043 10.5057 12.0007 10.4395 11.9844 10.3759C11.9681 10.3123 11.9394 10.2525 11.9 10.2C11.4463 9.5951 10.8434 9.13725 10.1658 8.8479C10.6736 8.38947 11 7.73367 11 7C11 5.62522 9.87478 4.5 8.5 4.5ZM8.5 5.5C9.33434 5.5 10 6.16566 10 7C10 7.83434 9.33434 8.5 8.5 8.5C7.66566 8.5 7 7.83434 7 7C7 6.16566 7.66566 5.5 8.5 5.5Z M4 1.5C3.45364 1.5 3 1.95364 3 2.5V13.5C3 14.0464 3.45364 14.5 4 14.5H13C13.5464 14.5 14 14.0464 14 13.5V2.5C14 1.95364 13.5464 1.5 13 1.5H4ZM4 2.5H13V13.5H4V2.5Z M2 3.75C1.86739 3.75 1.74021 3.80268 1.64645 3.89645C1.55268 3.99021 1.5 4.11739 1.5 4.25C1.5 4.38261 1.55268 4.50979 1.64645 4.60355C1.74021 4.69732 1.86739 4.75 2 4.75H3.5C3.63261 4.75 3.75979 4.69732 3.85355 4.60355C3.94732 4.50979 4 4.38261 4 4.25C4 4.11739 3.94732 3.99021 3.85355 3.89645C3.75979 3.80268 3.63261 3.75 3.5 3.75H2Z M2 6.25C1.86739 6.25 1.74021 6.30268 1.64645 6.39645C1.55268 6.49021 1.5 6.61739 1.5 6.75C1.5 6.88261 1.55268 7.00979 1.64645 7.10355C1.74021 7.19732 1.86739 7.25 2 7.25H3.5C3.63261 7.25 3.75979 7.19732 3.85355 7.10355C3.94732 7.00979 4 6.88261 4 6.75C4 6.61739 3.94732 6.49021 3.85355 6.39645C3.75979 6.30268 3.63261 6.25 3.5 6.25H2Z M2 8.75C1.86739 8.75 1.74021 8.80268 1.64645 8.89645C1.55268 8.99021 1.5 9.11739 1.5 9.25C1.5 9.38261 1.55268 9.50979 1.64645 9.60355C1.74021 9.69732 1.86739 9.75 2 9.75H3.5C3.63261 9.75 3.75979 9.69732 3.85355 9.60355C3.94732 9.50979 4 9.38261 4 9.25C4 9.11739 3.94732 8.99021 3.85355 8.89645C3.75979 8.80268 3.63261 8.75 3.5 8.75H2Z M2 11.25C1.86739 11.25 1.74021 11.3027 1.64645 11.3964C1.55268 11.4902 1.5 11.6174 1.5 11.75C1.5 11.8826 1.55268 12.0098 1.64645 12.1036C1.74021 12.1973 1.86739 12.25 2 12.25H3.5C3.63261 12.25 3.75979 12.1973 3.85355 12.1036C3.94732 12.0098 4 11.8826 4 11.75C4 11.6174 3.94732 11.4902 3.85355 11.3964C3.75979 11.3027 3.63261 11.25 3.5 11.25H2Z',
|
|
38
28
|
Apple: 'M13.443 5.10467C13.3786 5.14227 11.8441 5.93585 11.8441 7.69538C11.9164 9.70202 13.7805 10.4057 13.8125 10.4057C13.7805 10.4433 13.5311 11.3644 12.7921 12.3298C12.2057 13.1615 11.5548 14 10.5664 14C9.62623 14 9.28873 13.4457 8.20391 13.4457C7.0389 13.4457 6.70926 14 5.81729 14C4.8289 14 4.12979 13.1166 3.51139 12.2927C2.70799 11.2144 2.02513 9.5223 2.00102 7.89755C1.98477 7.03659 2.16191 6.19028 2.61156 5.47142C3.24621 4.46786 4.37925 3.78661 5.61657 3.76414C6.56462 3.73435 7.40837 4.37068 7.98694 4.37068C8.54141 4.37068 9.57802 3.76414 10.7509 3.76414C11.2571 3.76463 12.6071 3.90674 13.443 5.10467Z M7.90676 3.59224C7.73801 2.806 8.20391 2.01975 8.63784 1.51821C9.1923 0.911681 10.068 0.5 10.8232 0.5C10.8714 1.28625 10.5659 2.05735 10.0198 2.61896C9.5298 3.22549 8.68605 3.6821 7.90676 3.59224Z',
|
|
39
29
|
AiAssistant: 'M6.75004 6.00002C6.75004 5.72388 6.52618 5.50002 6.25004 5.50002C5.97389 5.50002 5.75004 5.72388 5.75004 6.00002V7.00002C5.75004 7.27616 5.97389 7.50002 6.25004 7.50002C6.52618 7.50002 6.75004 7.27616 6.75004 7.00002V6.00002Z M10.25 6.00002C10.25 5.72388 10.0262 5.50002 9.75004 5.50002C9.47389 5.50002 9.25004 5.72388 9.25004 6.00002V7.00002C9.25004 7.27616 9.47389 7.50002 9.75004 7.50002C10.0262 7.50002 10.25 7.27616 10.25 7.00002V6.00002Z M5.25681 9.06325C5.49805 8.92887 5.80255 9.01549 5.93693 9.25673C6.14942 9.63819 6.45288 9.95226 6.81496 10.1695C7.17686 10.3866 7.58548 10.5 8.00013 10.5C8.41477 10.5 8.82339 10.3866 9.18529 10.1695C9.54737 9.95226 9.85083 9.63819 10.0633 9.25673C10.1977 9.01549 10.5022 8.92887 10.7434 9.06325C10.9847 9.19763 11.0713 9.50213 10.9369 9.74337C10.6411 10.2744 10.2152 10.7178 9.69979 11.027C9.18421 11.3363 8.59803 11.5 8.00013 11.5C7.40222 11.5 6.81604 11.3363 6.30047 11.027C5.78506 10.7178 5.35914 10.2744 5.06332 9.74337C4.92894 9.50213 5.01557 9.19763 5.25681 9.06325Z M12.207 3.99986L12.0691 3.86195C11.341 3.13389 10.7675 2.56042 10.2638 2.14972C9.74904 1.73 9.26514 1.44414 8.7058 1.33288C8.25501 1.24321 7.79096 1.24321 7.34017 1.33288C6.78083 1.44414 6.29693 1.73 5.78215 2.14972C5.27843 2.56041 4.70497 3.13389 3.97691 3.86195L3.839 3.99986C3.11094 4.72792 2.53747 5.30138 2.12677 5.8051C1.70705 6.31988 1.42119 6.80378 1.30993 7.36312C1.22026 7.81391 1.22026 8.27795 1.30993 8.72875C1.42119 9.28809 1.70705 9.77198 2.12677 10.2868C2.53746 10.7905 3.11093 11.3639 3.839 12.092L3.97691 12.2299C4.70497 12.958 5.27843 13.5315 5.78215 13.9421C6.29693 14.3619 6.78083 14.6477 7.34017 14.759C7.79096 14.8487 8.25501 14.8487 8.7058 14.759C9.26514 14.6477 9.74904 14.3619 10.2638 13.9421C10.7675 13.5315 11.341 12.958 12.0691 12.2299L12.207 12.092C12.935 11.3639 13.5085 10.7905 13.9192 10.2868C14.3389 9.77199 14.6248 9.28809 14.736 8.72875C14.8257 8.27795 14.8257 7.81391 14.736 7.36312C14.6248 6.80378 14.3389 6.31988 13.9192 5.8051C13.5085 5.30138 12.935 4.72792 12.207 3.99986ZM8.51071 2.31366C8.84393 2.37994 9.17872 2.55526 9.63191 2.92476C10.0916 3.29956 10.6296 3.83666 11.3817 4.58885L11.4801 4.68718C12.2323 5.43936 12.7694 5.97732 13.1442 6.43701C13.5137 6.8902 13.689 7.22499 13.7553 7.55821C13.8193 7.8802 13.8193 8.21166 13.7553 8.53366C13.689 8.86688 13.5137 9.20167 13.1442 9.65485C12.7694 10.1145 12.2323 10.6525 11.4801 11.4047L11.3817 11.503C10.6296 12.2552 10.0916 12.7923 9.6319 13.1671C9.17872 13.5366 8.84393 13.7119 8.51071 13.7782C8.18871 13.8423 7.85725 13.8423 7.53526 13.7782C7.20204 13.7119 6.86725 13.5366 6.41406 13.1671C5.95437 12.7923 5.41641 12.2552 4.66423 11.503L4.5659 11.4047C3.81371 10.6525 3.27661 10.1145 2.90181 9.65485C2.53231 9.20167 2.35699 8.86688 2.29071 8.53366C2.22666 8.21166 2.22666 7.8802 2.29071 7.55821C2.35699 7.22499 2.53231 6.8902 2.90181 6.43701C3.27661 5.97732 3.81371 5.43936 4.5659 4.68718L4.66423 4.58885C5.41642 3.83666 5.95437 3.29956 6.41406 2.92476C6.86725 2.55526 7.20204 2.37994 7.53526 2.31366C7.85725 2.24961 8.18871 2.24961 8.51071 2.31366Z',
|
|
@@ -269,10 +259,10 @@ var phosphorIconConfig = {
|
|
|
269
259
|
XBold: 'M13.2071 4.20711C13.5976 3.81658 13.5976 3.18342 13.2071 2.79289C12.8166 2.40237 12.1834 2.40237 11.7929 2.79289L8 6.58579L4.20711 2.79289C3.81658 2.40237 3.18342 2.40237 2.79289 2.79289C2.40237 3.18342 2.40237 3.81658 2.79289 4.20711L6.58579 8L2.79289 11.7929C2.40237 12.1834 2.40237 12.8166 2.79289 13.2071C3.18342 13.5976 3.81658 13.5976 4.20711 13.2071L8 9.41421L11.7929 13.2071C12.1834 13.5976 12.8166 13.5976 13.2071 13.2071C13.5976 12.8166 13.5976 12.1834 13.2071 11.7929L9.41421 8L13.2071 4.20711Z',
|
|
270
260
|
XCircle: 'M6 5.5C5.8674 5.50002 5.74024 5.55271 5.64648 5.64648C5.55274 5.74025 5.50008 5.86741 5.50008 6C5.50008 6.13259 5.55274 6.25975 5.64648 6.35352L7.29297 8L5.64648 9.64648C5.55274 9.74025 5.50008 9.86741 5.50008 10C5.50008 10.1326 5.55274 10.2598 5.64648 10.3535C5.74025 10.4473 5.86741 10.4999 6 10.4999C6.13259 10.4999 6.25975 10.4473 6.35352 10.3535L8 8.70703L9.64648 10.3535C9.74025 10.4473 9.86741 10.4999 10 10.4999C10.1326 10.4999 10.2598 10.4473 10.3535 10.3535C10.4473 10.2598 10.4999 10.1326 10.4999 10C10.4999 9.86741 10.4473 9.74025 10.3535 9.64648L8.70703 8L10.3535 6.35352C10.4473 6.25975 10.4999 6.13259 10.4999 6C10.4999 5.86741 10.4473 5.74025 10.3535 5.64648C10.2598 5.55274 10.1326 5.50008 10 5.50008C9.86741 5.50008 9.74025 5.55274 9.64648 5.64648L8 7.29297L6.35352 5.64648C6.25976 5.55271 6.1326 5.50002 6 5.5Z M8 1.5C4.41604 1.5 1.5 4.41604 1.5 8C1.5 11.5839 4.41603 14.5 8 14.5C11.5839 14.5 14.5 11.5839 14.5 8C14.5 4.41603 11.5839 1.5 8 1.5ZM8 2.5C11.0435 2.5 13.5 4.95647 13.5 8C13.5 11.0435 11.0435 13.5 8 13.5C4.95647 13.5 2.5 11.0435 2.5 8C2.5 4.95647 4.95647 2.5 8 2.5Z'
|
|
271
261
|
};
|
|
262
|
+
|
|
272
263
|
/** @hidden */
|
|
273
264
|
|
|
274
|
-
exports.
|
|
275
|
-
var legacyIconNameToPhosphorIconName = {
|
|
265
|
+
var legacyIconNameToPhosphorIconName = exports.legacyIconNameToPhosphorIconName = {
|
|
276
266
|
aiAssistant: 'AiAssistant',
|
|
277
267
|
apple: 'Apple',
|
|
278
268
|
apps: 'ExtensionsFeature',
|
|
@@ -440,5 +430,4 @@ var legacyIconNameToPhosphorIconName = {
|
|
|
440
430
|
windows: 'WindowsLogo',
|
|
441
431
|
x: 'X',
|
|
442
432
|
xCheckbox: 'XBold'
|
|
443
|
-
};
|
|
444
|
-
exports.legacyIconNameToPhosphorIconName = legacyIconNameToPhosphorIconName;
|
|
433
|
+
};
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.array.iterator.js");
|
|
4
|
+
require("core-js/modules/es.object.to-string.js");
|
|
5
|
+
require("core-js/modules/es.weak-map.js");
|
|
6
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
3
7
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
6
|
-
|
|
7
8
|
Object.defineProperty(exports, "__esModule", {
|
|
8
9
|
value: true
|
|
9
10
|
});
|
|
10
|
-
exports.initializeBlock = initializeBlock;
|
|
11
11
|
exports.__injectSdkIntoInitializeBlock = __injectSdkIntoInitializeBlock;
|
|
12
12
|
exports.__resetHasBeenInitialized = __resetHasBeenInitialized;
|
|
13
|
-
|
|
13
|
+
exports.initializeBlock = initializeBlock;
|
|
14
14
|
var React = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
15
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
17
|
-
|
|
18
16
|
var _error_utils = require("../error_utils");
|
|
19
|
-
|
|
20
17
|
var _airtable_interface = _interopRequireDefault(require("../injected/airtable_interface"));
|
|
21
|
-
|
|
22
18
|
var _airtable_interface2 = require("../types/airtable_interface");
|
|
23
|
-
|
|
24
19
|
var _block_wrapper = _interopRequireDefault(require("./block_wrapper"));
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
+
/** @module @airtable/blocks/ui: initializeBlock */ /** */
|
|
25
23
|
|
|
26
|
-
/** @module @airtable/blocks/ui: initializeBlock */
|
|
27
|
-
|
|
28
|
-
/** */
|
|
29
24
|
var hasBeenInitialized = false;
|
|
25
|
+
|
|
30
26
|
/** */
|
|
31
27
|
|
|
28
|
+
/** @hidden */
|
|
29
|
+
|
|
30
|
+
/** @hidden */
|
|
31
|
+
|
|
32
|
+
/** @hidden */
|
|
33
|
+
|
|
32
34
|
/**
|
|
33
35
|
* `initializeBlock` takes the top-level React component in your tree and renders it. It is conceptually similar to `ReactDOM.render`, but takes care of some Extensions-specific things.
|
|
34
36
|
*
|
|
@@ -51,54 +53,44 @@ var hasBeenInitialized = false;
|
|
|
51
53
|
*/
|
|
52
54
|
function initializeBlock(getEntryElement) {
|
|
53
55
|
var _airtableInterface$sd;
|
|
54
|
-
|
|
55
56
|
var entryPoints = typeof getEntryElement === 'function' ? {
|
|
56
57
|
dashboard: getEntryElement
|
|
57
58
|
} : getEntryElement;
|
|
58
59
|
var body = typeof document !== 'undefined' ? document.body : null;
|
|
59
|
-
|
|
60
60
|
if (!body) {
|
|
61
61
|
throw (0, _error_utils.spawnError)('initializeBlock should only be called from browser environments');
|
|
62
62
|
}
|
|
63
|
-
|
|
64
63
|
if (hasBeenInitialized) {
|
|
65
64
|
throw (0, _error_utils.spawnError)('initializeBlock should only be called once');
|
|
66
65
|
}
|
|
67
|
-
|
|
68
66
|
hasBeenInitialized = true;
|
|
69
67
|
var airtableInterface = (0, _airtable_interface.default)();
|
|
70
|
-
var entryElement;
|
|
68
|
+
var entryElement;
|
|
69
|
+
// runContext can be undefined if running from an old version client version (before 01/2021)
|
|
71
70
|
// TODO (SeanKeenan): Remove nullish coelescing once old clients are no longer a concern
|
|
72
|
-
|
|
73
71
|
var runContext = (_airtableInterface$sd = airtableInterface.sdkInitData.runContext) !== null && _airtableInterface$sd !== void 0 ? _airtableInterface$sd : {
|
|
74
72
|
type: _airtable_interface2.BlockRunContextType.DASHBOARD_APP
|
|
75
73
|
};
|
|
76
|
-
|
|
77
74
|
switch (runContext.type) {
|
|
78
75
|
case _airtable_interface2.BlockRunContextType.DASHBOARD_APP:
|
|
79
76
|
{
|
|
80
77
|
if (entryPoints.dashboard === undefined) {
|
|
81
78
|
throw (0, _error_utils.spawnError)('If running an extension within the dashboard, it must have a dashboard initialization function');
|
|
82
79
|
}
|
|
83
|
-
|
|
84
80
|
if (typeof entryPoints.dashboard !== 'function') {
|
|
85
81
|
throw (0, _error_utils.spawnError)('initializeBlock must contain a dashboard function that returns a React element');
|
|
86
82
|
}
|
|
87
|
-
|
|
88
83
|
entryElement = entryPoints.dashboard();
|
|
89
84
|
break;
|
|
90
85
|
}
|
|
91
|
-
|
|
92
86
|
case _airtable_interface2.BlockRunContextType.VIEW:
|
|
93
87
|
{
|
|
94
88
|
if (entryPoints.view === undefined) {
|
|
95
89
|
throw (0, _error_utils.spawnError)('If running an extension within a view, it must have a view initialization function');
|
|
96
90
|
}
|
|
97
|
-
|
|
98
91
|
if (typeof entryPoints.view !== 'function') {
|
|
99
92
|
throw (0, _error_utils.spawnError)('initializeBlock must contain a view function that returns a React element');
|
|
100
93
|
}
|
|
101
|
-
|
|
102
94
|
var table = sdk.base.getTableById(runContext.tableId);
|
|
103
95
|
var view = table.getViewById(runContext.viewId);
|
|
104
96
|
entryElement = entryPoints.view({
|
|
@@ -107,33 +99,28 @@ function initializeBlock(getEntryElement) {
|
|
|
107
99
|
});
|
|
108
100
|
break;
|
|
109
101
|
}
|
|
110
|
-
|
|
111
102
|
default:
|
|
112
103
|
throw (0, _error_utils.spawnError)('Invalid context to run ');
|
|
113
104
|
}
|
|
114
|
-
|
|
115
|
-
if (!React.isValidElement(entryElement)) {
|
|
105
|
+
if (! /*#__PURE__*/React.isValidElement(entryElement)) {
|
|
116
106
|
throw (0, _error_utils.spawnError)("The first argument to initializeBlock didn't return a valid React element");
|
|
117
107
|
}
|
|
118
|
-
|
|
119
108
|
sdk.__setBatchedUpdatesFn(_reactDom.default.unstable_batchedUpdates);
|
|
120
|
-
|
|
121
109
|
var container = document.createElement('div');
|
|
122
110
|
body.appendChild(container);
|
|
123
|
-
|
|
124
|
-
_reactDom.default.render(React.createElement(_block_wrapper.default, {
|
|
111
|
+
_reactDom.default.render( /*#__PURE__*/React.createElement(_block_wrapper.default, {
|
|
125
112
|
sdk: sdk
|
|
126
113
|
}, entryElement), container);
|
|
127
114
|
}
|
|
115
|
+
var sdk;
|
|
128
116
|
|
|
129
|
-
|
|
117
|
+
// The application-level Sdk instance must be injected dynamically to avoid
|
|
130
118
|
// circular dependencies at the time of module resolution.
|
|
131
|
-
|
|
132
119
|
function __injectSdkIntoInitializeBlock(_sdk) {
|
|
133
120
|
sdk = _sdk;
|
|
134
|
-
}
|
|
135
|
-
|
|
121
|
+
}
|
|
136
122
|
|
|
123
|
+
// Exclusively for tests
|
|
137
124
|
function __resetHasBeenInitialized() {
|
|
138
125
|
hasBeenInitialized = false;
|
|
139
126
|
}
|