-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #369 from IQSS/feature/sub-branch/dynamic-fields-a…
…nd-validation Dynamically render form field in Create Dataset Form + Fields Validations
- Loading branch information
Showing
58 changed files
with
6,663 additions
and
683 deletions.
There are no files selected for viewing
This file contains 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
|
@@ -3,6 +3,21 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
# Non Published Changes | ||
|
||
- **Accordion:** extend Props Interface to accept HTML Attributes props. | ||
- **AccordionBody:** extend Props Interface to accept HTML Attributes, `bsPrefix` and `as` props. | ||
- **AccordionHeader:** extend Props Interface to accept HTML Attributes, `onClick`, `bsPrefix` and `as` props. | ||
- **AccordionItem:** extend Props Interface to accept HTML Attributes, `bsPrefix` and `as` props. | ||
- **FormChecboxGroup:** refactor styles. | ||
- **FormGroupWithMultipleFields:** refactor styles and conditional render logic. | ||
- **FormGroup:** ability to clone children wrapped by react fragments. | ||
- **FormCheckbox:** ability to forward react ref to input. | ||
- **FormInput:** ability to forward react ref to input. | ||
- **FormSelect:** ability to forward react ref to input. | ||
- **FormTextArea:** ability to forward react ref to input. | ||
- **FormFeedback:** remove `span: 9` from styles. | ||
|
||
# [1.1.0](https://github.com/IQSS/dataverse-frontend/compare/@iqss/[email protected]...@iqss/[email protected]) (2024-03-12) | ||
|
||
### Bug Fixes | ||
|
This file contains 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
10 changes: 6 additions & 4 deletions
10
packages/design-system/src/lib/components/accordion/AccordionBody.tsx
This file contains 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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { ReactNode } from 'react' | ||
import { ElementType, ReactNode } from 'react' | ||
import { Accordion as AccordionBS } from 'react-bootstrap' | ||
|
||
interface AccordionBodyProps { | ||
interface AccordionBodyProps extends React.HTMLAttributes<HTMLElement> { | ||
children: ReactNode | ||
bsPrefix?: string | ||
as?: ElementType | ||
} | ||
|
||
export function AccordionBody({ children }: AccordionBodyProps) { | ||
return <AccordionBS.Body>{children}</AccordionBS.Body> | ||
export function AccordionBody({ children, ...rest }: AccordionBodyProps) { | ||
return <AccordionBS.Body {...rest}>{children}</AccordionBS.Body> | ||
} |
11 changes: 7 additions & 4 deletions
11
packages/design-system/src/lib/components/accordion/AccordionHeader.tsx
This file contains 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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import { ReactNode } from 'react' | ||
import { ElementType, ReactNode } from 'react' | ||
import { Accordion as AccordionBS } from 'react-bootstrap' | ||
|
||
interface AccordionHeaderProps { | ||
interface AccordionHeaderProps extends React.HTMLAttributes<HTMLElement> { | ||
children: ReactNode | ||
onClick?: () => void | ||
bsPrefix?: string | ||
as?: ElementType | ||
} | ||
|
||
export function AccordionHeader({ children }: AccordionHeaderProps) { | ||
return <AccordionBS.Header>{children}</AccordionBS.Header> | ||
export function AccordionHeader({ children, ...rest }: AccordionHeaderProps) { | ||
return <AccordionBS.Header {...rest}>{children}</AccordionBS.Header> | ||
} |
10 changes: 6 additions & 4 deletions
10
packages/design-system/src/lib/components/accordion/AccordionItem.tsx
This file contains 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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { ReactNode } from 'react' | ||
import { ElementType, ReactNode } from 'react' | ||
import { Accordion as AccordionBS } from 'react-bootstrap' | ||
|
||
interface AccordionItemProps { | ||
export interface AccordionItemProps extends React.HTMLAttributes<HTMLElement> { | ||
eventKey: string | ||
children: ReactNode | ||
bsPrefix?: string | ||
as?: ElementType | ||
} | ||
|
||
export function AccordionItem({ eventKey, children }: AccordionItemProps) { | ||
return <AccordionBS.Item eventKey={eventKey}>{children}</AccordionBS.Item> | ||
export function AccordionItem({ children, ...rest }: AccordionItemProps) { | ||
return <AccordionBS.Item {...rest}>{children}</AccordionBS.Item> | ||
} |
8 changes: 4 additions & 4 deletions
8
...s/design-system/src/lib/components/form/form-checkbox-group/FormCheckboxGroup.module.scss
This file contains 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@import "src/lib/assets/styles/design-tokens/typography.module"; | ||
@import 'src/lib/assets/styles/design-tokens/typography.module'; | ||
|
||
.title { | ||
padding-top: calc(0.375rem + 1px); | ||
padding-bottom: calc(0.375rem + 1px); | ||
display: inline-block; | ||
margin-bottom: 0.5rem; | ||
font-weight: $dv-font-weight-bold; | ||
} | ||
} |
This file contains 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 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 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 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 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 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 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.