-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
affects: @fremtind/jkl-accordion-react, @fremtind/jkl-alert-message-react, @fremtind/jkl-button-react, @fremtind/jkl-checkbox-react, @fremtind/jkl-content-toggle-react, @fremtind/jkl-core, @fremtind/jkl-feedback-react, @fremtind/jkl-icons-react, @fremtind/jkl-image-react, @fremtind/jkl-list-react, @fremtind/jkl-portal-components, @fremtind/jkl-progress-bar-react, @fremtind/jkl-radio-button-react, @fremtind/jkl-react-hooks, @fremtind/jkl-summary-table-react, @fremtind/jkl-table-react, @fremtind/jkl-text-input-react, @fremtind/jkl-toggle-switch-react, @fremtind/portal improve responsive layout, prepare for react 17 removing unnesseary react imports
- Loading branch information
Leiv Fredrik Berge
committed
Dec 9, 2020
1 parent
037b5c2
commit 5c62a16
Showing
68 changed files
with
379 additions
and
522 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from "react"; | ||
import { ExampleComponentProps } from "@fremtind/jkl-portal-components"; | ||
import { PrimaryButton } from "../src"; | ||
|
||
function onClick() { | ||
console.log("Hello!"); | ||
} | ||
|
||
export const Primary: React.FC<ExampleComponentProps> = ({ boolValues }) => ( | ||
<PrimaryButton | ||
inverted={boolValues && boolValues["Invertert"]} | ||
forceCompact={boolValues && boolValues["Kompakt"]} | ||
loader={ | ||
!!boolValues?.["withLoader"] | ||
? { showLoader: !!boolValues?.["isLoading"], textDescription: "Laster innhold" } | ||
: undefined | ||
} | ||
onClick={onClick} | ||
className="jkl-spacing--right-1" | ||
> | ||
Avbryt | ||
</PrimaryButton> | ||
); | ||
|
||
export const PrimaryCode = ` | ||
<PrimaryButton | ||
inverted={boolValues && boolValues["Invertert"]} | ||
forceCompact={boolValues && boolValues["Kompakt"]} | ||
loader={ | ||
!!boolValues?.["withLoader"] | ||
? { showLoader: !!boolValues?.["isLoading"], textDescription: "Laster innhold" } | ||
: undefined | ||
} | ||
onClick={onClick} | ||
className="jkl-spacing--right-1" | ||
> | ||
Avbryt | ||
</PrimaryButton> | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from "react"; | ||
import { ExampleComponentProps } from "@fremtind/jkl-portal-components"; | ||
import { SecondaryButton } from "../src"; | ||
|
||
function onClick() { | ||
console.log("Hello!"); | ||
} | ||
|
||
export const Secondary: React.FC<ExampleComponentProps> = ({ boolValues }) => ( | ||
<SecondaryButton | ||
inverted={boolValues && boolValues["Invertert"]} | ||
forceCompact={boolValues && boolValues["Kompakt"]} | ||
loader={ | ||
!!boolValues?.["withLoader"] | ||
? { showLoader: !!boolValues?.["isLoading"], textDescription: "Laster innhold" } | ||
: undefined | ||
} | ||
onClick={onClick} | ||
className="jkl-spacing--right-1" | ||
> | ||
Avbryt | ||
</SecondaryButton> | ||
); | ||
|
||
export const SecondaryCode = ` | ||
<SecondaryButton | ||
inverted={boolValues && boolValues["Invertert"]} | ||
forceCompact={boolValues && boolValues["Kompakt"]} | ||
loader={ | ||
!!boolValues?.["withLoader"] | ||
? { showLoader: !!boolValues?.["isLoading"], textDescription: "Laster innhold" } | ||
: undefined | ||
} | ||
onClick={onClick} | ||
className="jkl-spacing--right-1" | ||
> | ||
Avbryt | ||
</SecondaryButton> | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from "react"; | ||
import { ExampleComponentProps } from "@fremtind/jkl-portal-components"; | ||
import { TertiaryButton } from "../src"; | ||
|
||
function onClick() { | ||
console.log("Hello!"); | ||
} | ||
|
||
export const Tertiary: React.FC<ExampleComponentProps> = ({ boolValues }) => ( | ||
<TertiaryButton | ||
inverted={boolValues && boolValues["Invertert"]} | ||
forceCompact={boolValues && boolValues["Kompakt"]} | ||
loader={ | ||
!!boolValues?.["withLoader"] | ||
? { showLoader: !!boolValues?.["isLoading"], textDescription: "Laster innhold" } | ||
: undefined | ||
} | ||
onClick={onClick} | ||
className="jkl-spacing--right-1" | ||
> | ||
Avbryt | ||
</TertiaryButton> | ||
); | ||
|
||
export const TertiaryCode = ` | ||
<TertiaryButton | ||
inverted={boolValues && boolValues["Invertert"]} | ||
forceCompact={boolValues && boolValues["Kompakt"]} | ||
loader={ | ||
!!boolValues?.["withLoader"] | ||
? { showLoader: !!boolValues?.["isLoading"], textDescription: "Laster innhold" } | ||
: undefined | ||
} | ||
onClick={onClick} | ||
className="jkl-spacing--right-1" | ||
> | ||
Avbryt | ||
</TertiaryButton> | ||
`; |
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
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.