@airtable/blocks 1.18.2 → 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 +10 -1
- package/dist/cjs/sdk.js +1 -1
- package/dist/cjs/ui/select_and_select_buttons_helpers.js +2 -0
- package/dist/cjs/ui/system/utils/ensure_numbers_are_within_scale.js +2 -0
- package/dist/cjs/ui/ui.js +8 -0
- package/dist/cjs/ui/use_color_scheme.js +60 -0
- package/dist/cjs/ui/use_records.js +5 -5
- package/dist/types/src/ui/button.d.ts +1 -1
- package/dist/types/src/ui/button.d.ts.map +1 -1
- package/dist/types/src/ui/choice_token.d.ts +1 -1
- package/dist/types/src/ui/choice_token.d.ts.map +1 -1
- package/dist/types/src/ui/collaborator_token.d.ts +1 -1
- package/dist/types/src/ui/collaborator_token.d.ts.map +1 -1
- package/dist/types/src/ui/color_palette.d.ts +1 -1
- package/dist/types/src/ui/color_palette.d.ts.map +1 -1
- package/dist/types/src/ui/field_picker.d.ts +1 -1
- 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/heading.d.ts +1 -1
- package/dist/types/src/ui/heading.d.ts.map +1 -1
- package/dist/types/src/ui/icon.d.ts +1 -1
- package/dist/types/src/ui/icon.d.ts.map +1 -1
- package/dist/types/src/ui/input.d.ts +1 -1
- 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 +1 -1
- package/dist/types/src/ui/link.d.ts.map +1 -1
- package/dist/types/src/ui/loader.d.ts +1 -1
- package/dist/types/src/ui/loader.d.ts.map +1 -1
- package/dist/types/src/ui/progress_bar.d.ts +1 -1
- package/dist/types/src/ui/progress_bar.d.ts.map +1 -1
- package/dist/types/src/ui/record_card.d.ts +1 -1
- package/dist/types/src/ui/record_card.d.ts.map +1 -1
- package/dist/types/src/ui/record_card_list.d.ts +2 -2
- package/dist/types/src/ui/record_card_list.d.ts.map +1 -1
- package/dist/types/src/ui/select_and_select_buttons_helpers.d.ts.map +1 -1
- package/dist/types/src/ui/select_buttons.d.ts +1 -1
- package/dist/types/src/ui/select_buttons.d.ts.map +1 -1
- package/dist/types/src/ui/switch.d.ts +1 -1
- package/dist/types/src/ui/switch.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 +1 -1
- package/dist/types/src/ui/text.d.ts.map +1 -1
- package/dist/types/src/ui/text_button.d.ts +1 -1
- package/dist/types/src/ui/text_button.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_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_records.d.ts.map +1 -1
- package/dist/types/src/ui/view_picker.d.ts +1 -1
- package/dist/types/src/ui/view_picker.d.ts.map +1 -1
- package/package.json +17 -12
- 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 -60
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text_button.d.ts","sourceRoot":"","sources":["../../../../src/ui/text_button.tsx"],"names":[],"mappings":"AAAA,8CAA8C,CAAC,MAAM;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAa,QAAQ,EAAyB,MAAM,kBAAkB,CAAC;AAG9E,OAAO,EAAgB,SAAS,EAAC,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAC,sBAAsB,EAAC,MAAM,sBAAsB,CAAC;AAC5D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ChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,mGAAmG;IACnG,cAAc,CAAC,EAAE,kBAAkB,CAAC;IACpC,qCAAqC;IACrC,CAAC,eAAe,CAAC,CAAC,EAAE,OAAO,CAAC;CAC/B;AA2ID,QAAA,MAAM,sBAAsB,yFAAiE,CAAC;AAqB9F,eAAe,sBAAsB,CAAC"}
|
|
@@ -29,6 +29,7 @@ export { default as ViewportConstraint } from './viewport_constraint';
|
|
|
29
29
|
export { initializeBlock } from './initialize_block';
|
|
30
30
|
export { default as withHooks } from './with_hooks';
|
|
31
31
|
export { default as useLoadable } from './use_loadable';
|
|
32
|
+
export { useColorScheme } from './use_color_scheme';
|
|
32
33
|
export { useRecordIds, useRecords, useRecordById, useRecordQueryResult } from './use_records';
|
|
33
34
|
export { default as useBase } from './use_base';
|
|
34
35
|
export { default as useCursor } from './use_cursor';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../../src/ui/ui.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAMzC,OAAO,KAAK,CAAC;AAEb,OAAO,EAAC,OAAO,IAAI,YAAY,EAAC,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAC,OAAO,IAAI,UAAU,EAAC,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,OAAO,IAAI,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAC,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B,CAAC;AAEzC,eAAO,MAAM,WAAW,aAAoB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A hook for checking whether Airtable is in light mode or dark mode.
|
|
3
|
+
*
|
|
4
|
+
* @returns An object with a `colorScheme` property, which can be `'light'` or `'dark'`.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```js
|
|
8
|
+
* import {useColorScheme} from '@airtable/blocks/ui';
|
|
9
|
+
*
|
|
10
|
+
* function MyApp() {
|
|
11
|
+
* const {colorScheme} = useColorScheme();
|
|
12
|
+
* return (
|
|
13
|
+
* <div style={colorScheme === 'dark' ?
|
|
14
|
+
* {color: 'white', backgroundColor: 'black'} :
|
|
15
|
+
* {color: 'black', backgroundColor: 'white'}
|
|
16
|
+
* }>
|
|
17
|
+
* Tada!
|
|
18
|
+
* </div>
|
|
19
|
+
* );
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
* @docsPath UI/hooks/useColorScheme
|
|
23
|
+
* @hook
|
|
24
|
+
*/
|
|
25
|
+
export declare function useColorScheme(): {
|
|
26
|
+
colorScheme: 'light' | 'dark';
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=use_color_scheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use_color_scheme.d.ts","sourceRoot":"","sources":["../../../../src/ui/use_color_scheme.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAIH,wBAAgB,cAAc,IAAI;IAAC,WAAW,EAAE,OAAO,GAAG,MAAM,CAAA;CAAC,CAqBhE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_records.d.ts","sourceRoot":"","sources":["../../../../src/ui/use_records.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO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;AAkE9F;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAChC,wBAAwB,EAAE,wBAAwB,GAAG,IAAI,EACzD,IAAI,CAAC,EAAE,qBAAqB,GAC7B,iBAAiB,GAAG,IAAI,CAQ1B"}
|
|
@@ -48,7 +48,7 @@ export declare const sharedViewPickerPropTypes: {
|
|
|
48
48
|
*
|
|
49
49
|
* @docsPath UI/components/ViewPicker
|
|
50
50
|
*/
|
|
51
|
-
interface ViewPickerProps extends SharedViewPickerProps {
|
|
51
|
+
export interface ViewPickerProps extends SharedViewPickerProps {
|
|
52
52
|
/** The selected view model. */
|
|
53
53
|
view?: View | null;
|
|
54
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view_picker.d.ts","sourceRoot":"","sources":["../../../../src/ui/view_picker.tsx"],"names":[],"mappings":"AAAA,8CAA8C,CAAC,MAAM;AACrD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAA4B,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAK1E;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAChE,sGAAsG;IACtG,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/B,8DAA8D;IAC9D,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C;AAGD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;CAOrC,CAAC;AAEF;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"view_picker.d.ts","sourceRoot":"","sources":["../../../../src/ui/view_picker.tsx"],"names":[],"mappings":"AAAA,8CAA8C,CAAC,MAAM;AACrD,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAA4B,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAK1E;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,qBAAqB;IAChE,sGAAsG;IACtG,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC/B,8DAA8D;IAC9D,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,oFAAoF;IACpF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C;AAGD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;CAOrC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC1D,+BAA+B;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB;AAwED,QAAA,MAAM,sBAAsB,2FAAmE,CAAC;AAShG,eAAe,sBAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airtable/blocks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"description": "Airtable Blocks SDK",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,14 +46,15 @@
|
|
|
46
46
|
"build:docs": "cd ../blocks-docs && yarn run build && cd ../sdk",
|
|
47
47
|
"build": "yarn run build:clean && concurrently yarn:build:babel yarn:build:types",
|
|
48
48
|
"watch": "yarn run build:clean && concurrently yarn:watch:babel yarn:watch:types",
|
|
49
|
-
"storybook": "
|
|
50
|
-
"build-storybook": "build
|
|
49
|
+
"storybook": "storybook dev -p 6006",
|
|
50
|
+
"build-storybook": "storybook build",
|
|
51
51
|
"deploy-storybook": "storybook-to-ghpages"
|
|
52
52
|
},
|
|
53
53
|
"author": "",
|
|
54
54
|
"license": "UNLICENSED",
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@airtable-blocks-internal/changelog-publish": "^1.0.2",
|
|
57
|
+
"@airtable/eslint-plugin-blocks": "^1.0.4",
|
|
57
58
|
"@babel/cli": "^7.7.5",
|
|
58
59
|
"@babel/core": "^7.7.5",
|
|
59
60
|
"@babel/plugin-proposal-class-properties": "^7.7.4",
|
|
@@ -63,10 +64,12 @@
|
|
|
63
64
|
"@babel/preset-env": "^7.7.6",
|
|
64
65
|
"@babel/preset-react": "^7.7.4",
|
|
65
66
|
"@babel/preset-typescript": "^7.7.4",
|
|
66
|
-
"@storybook/addon-actions": "^
|
|
67
|
-
"@storybook/addon-links": "^
|
|
68
|
-
"@storybook/
|
|
69
|
-
"@storybook/
|
|
67
|
+
"@storybook/addon-actions": "^8.4.7",
|
|
68
|
+
"@storybook/addon-links": "^8.4.7",
|
|
69
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
70
|
+
"@storybook/manager-api": "^8.4.7",
|
|
71
|
+
"@storybook/react": "^8.4.7",
|
|
72
|
+
"@storybook/react-webpack5": "^8.4.7",
|
|
70
73
|
"@storybook/storybook-deployer": "^2.8.1",
|
|
71
74
|
"@types/enzyme": "^3.10.4",
|
|
72
75
|
"@types/enzyme-adapter-react-16": "^1.0.5",
|
|
@@ -74,7 +77,8 @@
|
|
|
74
77
|
"@types/glob": "^7.1.1",
|
|
75
78
|
"@types/hoist-non-react-statics": "^3.3.5",
|
|
76
79
|
"@types/jest": "^24.0.23",
|
|
77
|
-
"@types/lodash.
|
|
80
|
+
"@types/lodash.capitalize": "^4.2.9",
|
|
81
|
+
"@types/lodash.clamp": "^4.0.9",
|
|
78
82
|
"@types/prettier": "^1.19.0",
|
|
79
83
|
"@types/react-dom": "^16.9.24",
|
|
80
84
|
"@types/react-window": "^1.8.8",
|
|
@@ -92,15 +96,17 @@
|
|
|
92
96
|
"eslint-plugin-import": "^2.29.1",
|
|
93
97
|
"eslint-plugin-jsdoc": "^48.2.12",
|
|
94
98
|
"eslint-plugin-react": "^7.34.2",
|
|
95
|
-
"eslint-plugin-react-hooks": "^
|
|
99
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
96
100
|
"glob": "^7.1.6",
|
|
97
101
|
"jest": "^24.9.0",
|
|
102
|
+
"lodash.capitalize": "^4.2.1",
|
|
103
|
+
"lodash.clamp": "^4.0.3",
|
|
98
104
|
"prettier": "^1.19.1",
|
|
99
105
|
"prism-react-renderer": "^1.0.2",
|
|
106
|
+
"storybook": "^8.4.7",
|
|
100
107
|
"typescript": "^5.4.5"
|
|
101
108
|
},
|
|
102
109
|
"dependencies": {
|
|
103
|
-
"@airtable/eslint-plugin-blocks": "^1.0.2",
|
|
104
110
|
"@babel/runtime": "^7.7.6",
|
|
105
111
|
"@styled-system/core": "^5.1.2",
|
|
106
112
|
"@types/prop-types": "^15.7.12",
|
|
@@ -110,7 +116,6 @@
|
|
|
110
116
|
"emotion": "^10.0.23",
|
|
111
117
|
"fast-deep-equal": "^3.1.1",
|
|
112
118
|
"hoist-non-react-statics": "^3.3.2",
|
|
113
|
-
"lodash.omit": "^4.5.0",
|
|
114
119
|
"prop-types": "15.8.1",
|
|
115
120
|
"react-window": "1.8.10",
|
|
116
121
|
"use-subscription": "^1.3.0"
|
|
@@ -143,7 +148,7 @@
|
|
|
143
148
|
},
|
|
144
149
|
"hooks": {
|
|
145
150
|
"before:init": "../../bin/check-repo-for-release && yarn build && yarn test",
|
|
146
|
-
"after:bump": "yarn build",
|
|
151
|
+
"after:bump": "yarn build && rm -rf dist/types/{stories,test}",
|
|
147
152
|
"after:release": "../../tools/git-mirror/bin/git-mirror sync @airtable/blocks@${version}"
|
|
148
153
|
},
|
|
149
154
|
"npm": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"all_controls.stories.d.ts","sourceRoot":"","sources":["../../../stories/all_controls.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.appearance.stories.d.ts","sourceRoot":"","sources":["../../../stories/box.appearance.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.dimensions.stories.d.ts","sourceRoot":"","sources":["../../../stories/box.dimensions.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.flex_container.stories.d.ts","sourceRoot":"","sources":["../../../stories/box.flex_container.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.flex_item.stories.d.ts","sourceRoot":"","sources":["../../../stories/box.flex_item.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.position.stories.d.ts","sourceRoot":"","sources":["../../../stories/box.position.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.spacing.stories.d.ts","sourceRoot":"","sources":["../../../stories/box.spacing.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.stories.d.ts","sourceRoot":"","sources":["../../../stories/box.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"box.typography.stories.d.ts","sourceRoot":"","sources":["../../../stories/box.typography.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"button.stories.d.ts","sourceRoot":"","sources":["../../../stories/button.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cell_renderer.stories.d.ts","sourceRoot":"","sources":["../../../stories/cell_renderer.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"choice_token.stories.d.ts","sourceRoot":"","sources":["../../../stories/choice_token.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collaborator_token.stories.d.ts","sourceRoot":"","sources":["../../../stories/collaborator_token.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"color_palette.stories.d.ts","sourceRoot":"","sources":["../../../stories/color_palette.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"confirmation_dialog.stories.d.ts","sourceRoot":"","sources":["../../../stories/confirmation_dialog.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.stories.d.ts","sourceRoot":"","sources":["../../../stories/dialog.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field_icon.stories.d.ts","sourceRoot":"","sources":["../../../stories/field_icon.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form_field.stories.d.ts","sourceRoot":"","sources":["../../../stories/form_field.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading.size.stories.d.ts","sourceRoot":"","sources":["../../../stories/heading.size.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"heading.stories.d.ts","sourceRoot":"","sources":["../../../stories/heading.stories.tsx"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
declare const _default: string[];
|
|
2
|
-
export default _default;
|
|
3
|
-
export declare const recordCardAttachment = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAFCgAwAEAAAAAQAAAFAAAAAA/+0AOFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAAOEJJTQQlAAAAAAAQ1B2M2Y8AsgTpgAmY7PhCfv/AABEIAFAAUAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFho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4aNf43Sirre9tPRX/ABPRtM1UvPGFR9wU5XaEX2zxn8a7uPxbbabEri6LzBshC7SCM/7KbsDHYmvCINEv3UsSHAG7G8dPoSM1ShlDNhQ3HYDPT6V5WKpylo479zto42UOZ06ibXVbL/gn0la+Jrq+UyRrNMRydw3cnntnmum8NfGi80e4BZ5F25QgM3GeMFa8n8K+OIbKyjgOFdS2T03ZPWuX8R+IBe30s0SYJABck8sOpA4596+VeEnKpUpzp+537n0H9u18LDDV8PjP3ytzK22h/9P8P4L5omAEiOe3atZ9eYIA90xA7RjaPpnkmvPNQtXjc9cGlhiklA/dyNj+6pau/wCszjdW/E+enldCoozck16I65vEfP7uL8WJYj8TWpb+KLxVAWTqwCoFGT3rm7LSpnbb5TqB13Lt/PNegm1j0uw8y3u1ikMio8hUFzg/dTdxt9a2outLmk5tJLX+tDycdHBwcKapKcpOyT1+92ZhyXMkzeZKPvMVyP73ofersDWyuFlnVM/dJ5H4ntXeWdnpviCyYXd2hvYoQ6XMUaxs8Sk5DqDlmX7vT864q+0DdH5kV3azorHMyZidcdpEbBDDuKc1NK9r32OeSpbN8qWjtsuxafWZbd2idOh4IBAI/GqouZYQJQjxl87fXHtWQ1xdIoklkFwiMV4yGHtn09KzY5t7vjcMnIyefxxXLOpJtXbv08iaeAhZtRj/AHmtU/k7HUSan50eNsgk9QBg/wC9/wDWqGWSQEtkgdg7gn/69c/NckDiYE+mSGFPGoRyjY9oi+jxjDZ9znBrlqyjfVs2jguVLlgrf13P/9k=";
|
|
4
|
-
//# sourceMappingURL=attachments.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/attachments.ts"],"names":[],"mappings":";AACA,wBAKE;AAEF,eAAO,MAAM,oBAAoB,4tHAC4rH,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Given a list of style prop names, map each to its corresponding category and return
|
|
3
|
-
* a map of style props grouped by category name.
|
|
4
|
-
* e.g.
|
|
5
|
-
* input: ['alignContent', 'justifyItems', 'fontSize']
|
|
6
|
-
* output: {
|
|
7
|
-
* 'Flex container': ['alignContent', 'justifyItems'],
|
|
8
|
-
* 'Typography': ['fontSize'],
|
|
9
|
-
* }
|
|
10
|
-
*/
|
|
11
|
-
export default function categorizeStyleProps(styleProps: Array<string>): {
|
|
12
|
-
[category: string]: Array<string>;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=categorize_style_props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"categorize_style_props.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/categorize_style_props.ts"],"names":[],"mappings":"AA2CA;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CACxC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,GAC1B;IAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;CAAC,CAUrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"choice_options.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/choice_options.ts"],"names":[],"mappings":";;;;;AAAA,wBA0BE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code_block.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/code_block.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiF1B,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAC,IAAI,EAAC,EAAE;IAAC,IAAI,EAAE,MAAM,CAAA;CAAC,qBAoCvD"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helper function to turn an object keyed by prop name into JSX properties.
|
|
3
|
-
*
|
|
4
|
-
* ```
|
|
5
|
-
* valuesAsJsxProps({ size: 'large', disabled: true }) => `size="large" disabled="true"`
|
|
6
|
-
* ```
|
|
7
|
-
*
|
|
8
|
-
* False boolean values are ignored:
|
|
9
|
-
*
|
|
10
|
-
* ```
|
|
11
|
-
* valuesAsJsxProps({ disabled: false }) => ``
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* Provide a `mappingConfig` object to map certain keys:
|
|
15
|
-
*
|
|
16
|
-
* ```
|
|
17
|
-
* valuesAsJsxProps(
|
|
18
|
-
* { icon: true },
|
|
19
|
-
* {
|
|
20
|
-
* icon: value => (value ? 'edit' : null)
|
|
21
|
-
* }
|
|
22
|
-
* ) => `icon="edit"`
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare function createJsxPropsStringFromValuesMap(values: {
|
|
26
|
-
[key: string]: string | boolean | number | null;
|
|
27
|
-
}, mappingConfig?: {
|
|
28
|
-
[key: string]: (value: string | boolean | number | null) => string | boolean | null | number;
|
|
29
|
-
}): string;
|
|
30
|
-
export declare function createJsxComponentString(name: string, props: Array<string>, children?: string | null): string;
|
|
31
|
-
export declare const CONTROL_WIDTH = "320px";
|
|
32
|
-
//# sourceMappingURL=code_utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"code_utils.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/code_utils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iCAAiC,CAC7C,MAAM,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,CAAA;CAAC,EACzD,aAAa,CAAC,EAAE;IACZ,CAAC,GAAG,EAAE,MAAM,GAAG,CACX,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI,KACtC,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;CACzC,GACF,MAAM,CAuCR;AAGD,wBAAgB,wBAAwB,CACpC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EACpB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GACzB,MAAM,CAMR;AAED,eAAO,MAAM,aAAa,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collaborator_options.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/collaborator_options.ts"],"names":[],"mappings":";;;;;AAAA,wBAyBE"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface SelectOption {
|
|
3
|
-
type: 'select';
|
|
4
|
-
label: string;
|
|
5
|
-
options: Array<string | number>;
|
|
6
|
-
defaultValue?: string | number;
|
|
7
|
-
renderLabel?: (label: string) => string;
|
|
8
|
-
}
|
|
9
|
-
interface SelectButtonsOption {
|
|
10
|
-
type: 'selectButtons';
|
|
11
|
-
label: string;
|
|
12
|
-
options: Array<string | number>;
|
|
13
|
-
defaultValue?: string | number;
|
|
14
|
-
renderLabel?: (label: string) => string;
|
|
15
|
-
}
|
|
16
|
-
interface SwitchOption {
|
|
17
|
-
type: 'switch';
|
|
18
|
-
label: string;
|
|
19
|
-
defaultValue?: boolean;
|
|
20
|
-
}
|
|
21
|
-
type ArrayType<T extends Array<any>> = T extends Array<infer U> ? U : never;
|
|
22
|
-
type OptionType<T extends Option> = T extends SelectOption ? ArrayType<T['options']> : T extends SwitchOption ? boolean : T extends SelectButtonsOption ? ArrayType<T['options']> : never;
|
|
23
|
-
type Option = SelectOption | SwitchOption | SelectButtonsOption;
|
|
24
|
-
interface OptionMap {
|
|
25
|
-
[key: string]: Option;
|
|
26
|
-
}
|
|
27
|
-
type OptionMapType<T extends OptionMap> = {
|
|
28
|
-
[K in keyof T]: OptionType<T[K]>;
|
|
29
|
-
};
|
|
30
|
-
interface Props<T extends OptionMap> {
|
|
31
|
-
options?: T;
|
|
32
|
-
styleProps?: Array<string>;
|
|
33
|
-
children: (values: OptionMapType<T>) => React.ReactNode;
|
|
34
|
-
renderCodeFn?: (values: OptionMapType<T>) => string;
|
|
35
|
-
containerPadding?: number;
|
|
36
|
-
}
|
|
37
|
-
export default function Example<T extends OptionMap>(props: Props<T>): React.JSX.Element;
|
|
38
|
-
export {};
|
|
39
|
-
//# sourceMappingURL=example.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/example.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAyBtC,UAAU,YAAY;IAClB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C;AAED,UAAU,mBAAmB;IACzB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C;AAED,UAAU,YAAY;IAClB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,KAAK,SAAS,CAAC,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE5E,KAAK,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,YAAY,GACpD,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GACvB,CAAC,SAAS,YAAY,GACtB,OAAO,GACP,CAAC,SAAS,mBAAmB,GAC7B,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,GACvB,KAAK,CAAC;AAEZ,KAAK,MAAM,GAAG,YAAY,GAAG,YAAY,GAAG,mBAAmB,CAAC;AAChE,UAAU,SAAS;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AACD,KAAK,aAAa,CAAC,CAAC,SAAS,SAAS,IAAI;KAAE,CAAC,IAAI,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAC,CAAC;AAE7E,UAAU,KAAK,CAAC,CAAC,SAAS,SAAS;IAC/B,OAAO,CAAC,EAAE,CAAC,CAAC;IACZ,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;IACxD,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;IACpD,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,CAAC,SAAS,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,qBAkHnE"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
code: string;
|
|
4
|
-
onHeightChange: (height: number) => unknown;
|
|
5
|
-
minHeight: number;
|
|
6
|
-
initialHeight: number;
|
|
7
|
-
}
|
|
8
|
-
export default function ExampleCodePanel({ code, onHeightChange, minHeight, initialHeight }: Props): React.JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=example_code_panel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"example_code_panel.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/example_code_panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,UAAU,KAAK;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACzB;AAeD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAC,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAC,EAAE,KAAK,qBAwD/F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fake_cell_renderer.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/fake_cell_renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAIhD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,EAAE;IAAC,SAAS,EAAE,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,GAAG,CAAA;CAAC,qBAsI/F"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fake_foreign_record.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/fake_foreign_record.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAC,QAAQ,EAAC,EAAE;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAC,qBAchF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FieldType } from '../../src/types/field';
|
|
3
|
-
interface FakeRecordCardProps {
|
|
4
|
-
primaryFieldValue?: string;
|
|
5
|
-
fieldNames?: Array<string>;
|
|
6
|
-
fieldTypes?: Array<FieldType>;
|
|
7
|
-
fieldValues?: Array<any>;
|
|
8
|
-
showAttachment?: boolean;
|
|
9
|
-
isInRecordCardList?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export default function FakeRecordCard({ primaryFieldValue, fieldNames, fieldTypes, fieldValues, showAttachment, isInRecordCardList, }: FakeRecordCardProps): React.JSX.Element;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=fake_record_card.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fake_record_card.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/fake_record_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAQtC,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAKhD,UAAU,mBAAmB;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAChC;AAWD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,iBAA8B,EAC9B,UAA8B,EAC9B,UAA8B,EAC9B,WAAW,EACX,cAAqB,EACrB,kBAA0B,GAC7B,EAAE,mBAAmB,qBA8FrB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ObjectMap } from '../../src/private_utils';
|
|
2
|
-
import { IconName } from '../../src/ui/icon_config';
|
|
3
|
-
import { FieldType } from '../../src/types/field';
|
|
4
|
-
export declare const ReadableFieldTypes: ObjectMap<FieldType, string>;
|
|
5
|
-
export declare const IconNamesByFieldType: ObjectMap<FieldType, IconName>;
|
|
6
|
-
//# sourceMappingURL=field_type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field_type.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/field_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,uBAAuB,CAAC;AAEhD,eAAO,MAAM,kBAAkB,EAAE,SAAS,CAAC,SAAS,EAAE,MAAM,CAkC3D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAAS,CAAC,SAAS,EAAE,QAAQ,CAkC/D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raf_throttle.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/raf_throttle.ts"],"names":[],"mappings":"AAGA,iBAAS,WAAW,CAChB,QAAQ,EAAE,MAAM,IAAI,GACrB,CAAC,MAAM,IAAI,CAAC,GAAG;IACd,MAAM,EAAE,MAAM,IAAI,CAAC;CACtB,CAqCA;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface StylePropListProps {
|
|
3
|
-
stylePropsByCategory: {
|
|
4
|
-
[category: string]: Array<string>;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export default function StylePropList({ stylePropsByCategory }: StylePropListProps): React.JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=style_prop_list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style_prop_list.d.ts","sourceRoot":"","sources":["../../../../stories/helpers/style_prop_list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAMtC,UAAU,kBAAkB;IACxB,oBAAoB,EAAE;QAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,CAAC;CAC7D;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAC,oBAAoB,EAAC,EAAE,kBAAkB,qBA8B/E"}
|