This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
fix: Remove depth and transparentBorders from FieldProps, remove ObjectArrayField, and refactor OpenObjectField #6633
Merged
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
3a0d6d3
Remove depth and transparentBorder
tdurnford 79aa2d6
Update OneOfField dropdown styles
tdurnford ef53dc5
Remove ObjectArrayField
tdurnford 8696cc2
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 8034416
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 740c0b3
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 4a683df
fix tests
tdurnford 73d74b5
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford a60deef
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford dc29cb6
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 29a6432
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 87426a7
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford fa54381
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford cbcfdf6
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 49c9b72
Refactor OpenObjectField
tdurnford 75793e4
Merge branch 'durnford/fix/refactor-adaptive-form' of github.com:micr…
tdurnford 8dc4203
updated test
tdurnford bcb1fd4
minor
tdurnford ac3320a
fix test
tdurnford 9063b01
Merge branch 'main' into durnford/fix/refactor-adaptive-form
beyackle 5b323d6
Merge branch 'main' into durnford/fix/refactor-adaptive-form
beyackle 015319e
minor
tdurnford 0c040f6
Merge branch 'durnford/fix/refactor-adaptive-form' of github.com:micr…
tdurnford d071cfa
Merge branch 'main' into durnford/fix/refactor-adaptive-form
beyackle d43a6e1
Merge branch 'main' into durnford/fix/refactor-adaptive-form
beyackle 00d6fcf
Merge branch 'main' into durnford/fix/refactor-adaptive-form
beyackle 9647966
Merge branch 'main' into durnford/fix/refactor-adaptive-form
beyackle 4032f5d
Merge branch 'main' into durnford/fix/refactor-adaptive-form
beyackle f3a1c77
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 553c999
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 9234107
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 9d5537e
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 0683dc4
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 017fd8f
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 212d183
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 82a1d7b
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 74cd6b3
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 99d2a8b
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 8b24391
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 87ed5fd
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford 8a3ee8e
Merge branch 'main' into durnford/fix/refactor-adaptive-form
tdurnford File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
Composer/packages/adaptive-form/src/components/AddButton.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import React from 'react'; | ||
| import styled from '@emotion/styled'; | ||
| import { ActionButton, IButtonStyles } from 'office-ui-fabric-react/lib/components/Button'; | ||
| import { FluentTheme } from '@uifabric/fluent-theme'; | ||
| import formatMessage from 'format-message'; | ||
|
|
||
| export const ButtonContainer = styled.div({ | ||
| borderTop: `1px solid ${FluentTheme.palette.neutralLight}`, | ||
| width: '100%', | ||
| }); | ||
|
|
||
| export const actionButtonStyles: IButtonStyles = { | ||
| root: { | ||
| fontSize: FluentTheme.fonts.small.fontSize, | ||
| fontWeight: FluentTheme.fonts.small.fontWeight, | ||
| color: FluentTheme.palette.themePrimary, | ||
| paddingLeft: 8, | ||
| height: 20, | ||
| }, | ||
| }; | ||
|
|
||
| type Props = { | ||
| onClick: () => void; | ||
| }; | ||
|
|
||
| export const AddButton = ({ children, onClick }: React.PropsWithChildren<Props>) => { | ||
| return ( | ||
| <ButtonContainer> | ||
| <ActionButton styles={actionButtonStyles} onClick={onClick}> | ||
| {children ?? formatMessage('Add new')} | ||
| </ActionButton> | ||
| </ButtonContainer> | ||
| ); | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.