-
Notifications
You must be signed in to change notification settings - Fork 2
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 #68 from merative/ab/add-shared-entrypoint-2
Add shared entrypoint
- Loading branch information
Showing
21 changed files
with
70 additions
and
114 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import "../../custom-carbon-addons/src/scss/index.scss"; | ||
import "regenerator-runtime/runtime"; | ||
import { renderers, sampleRenderers } from "./staticExports"; | ||
/* | ||
* Copyright Merative US L.P. 2021, 2024 | ||
*/ | ||
import "./scss/index.scss"; | ||
import sampleRenderers from "../sample_renderers"; | ||
|
||
import { requireCustomCarbonAddons } from "./dynamicExports"; | ||
|
||
export default { requireCustomCarbonAddons, renderers, sampleRenderers }; | ||
export default sampleRenderers; |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
packages/carbon-addons-devenv/src/scss/addons_samples/logo.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
16 changes: 8 additions & 8 deletions
16
packages/carbon-addons-devenv/src/scss/addons_samples/personfolio.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,25 +1,25 @@ | ||
.#{$prefix}--personfolio { | ||
background-color: $layer-01; | ||
color: $text-primary; | ||
background-color: themes.get("layer-01"); | ||
color: themes.get("text-primary"); | ||
border-radius: 6px; | ||
border-width: 1px 1px 1px 1px; | ||
border-style: solid !important; | ||
padding: $spacing-05; | ||
margin-top: $spacing-05; | ||
padding: themes.get("spacing-05"); | ||
margin-top: themes.get("spacing-05"); | ||
|
||
&--child { | ||
border-color: $support-error; | ||
border-color: themes.get("support-error"); | ||
} | ||
|
||
&--youngadult { | ||
border-color: $support-success; | ||
border-color: themes.get("support-success"); | ||
} | ||
|
||
&--adult { | ||
border-color: $support-warning; | ||
border-color: themes.get("support-warning"); | ||
} | ||
|
||
&--senior { | ||
border-color: $support-info; | ||
border-color: themes.get("support-info"); | ||
} | ||
} |
Empty file.
9 changes: 0 additions & 9 deletions
9
packages/carbon-addons-devenv/src/scss/carbon-components.scss
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
@import "./app.scss"; | ||
@use "@carbon/themes/scss/themes" as *; | ||
@use "@carbon/themes"; | ||
|
||
.spm-custom-component { | ||
@import "./carbon-components.scss"; | ||
@import "./prefix.scss"; | ||
@import "./variables.scss"; | ||
@import "./addons_samples/logo.scss"; | ||
@import "./addons_samples/personfolio.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
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,25 +1,25 @@ | ||
.#{$prefix}--personfolio { | ||
background-color: $ui-01; | ||
color: $text-01; | ||
background-color: themes.get("layer-01"); | ||
color: themes.get("text-primary"); | ||
border-radius: 6px; | ||
border-width: 1px 1px 1px 1px; | ||
border-style: solid !important; | ||
padding: $spacing-05; | ||
margin-top: $spacing-05; | ||
padding: themes.get("spacing-05"); | ||
margin-top: themes.get("spacing-05"); | ||
|
||
&--child { | ||
border-color: $support-01; | ||
border-color: themes.get("support-error"); | ||
} | ||
|
||
&--youngadult { | ||
border-color: $support-02; | ||
border-color: themes.get("support-success"); | ||
} | ||
|
||
&--adult { | ||
border-color: $support-03; | ||
border-color: themes.get("support-warning"); | ||
} | ||
|
||
&--senior { | ||
border-color: $support-04; | ||
border-color: themes.get("support-info"); | ||
} | ||
} |
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 @@ | ||
$prefix: "bx"; |
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,6 +1,4 @@ | ||
$prefix: "bx"; | ||
$border-radius-round: 100vw !default; | ||
$width-logo-large: 120px; // do we need small and medium too | ||
$width-logo-medium: 80px; | ||
$width-logo-small: 36px; | ||
$border-base: 1px solid $background; |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright Merative US L.P. 2024 | ||
*/ | ||
|
||
import "regenerator-runtime/runtime"; | ||
|
||
// eslint-disable-next-line import/no-unresolved | ||
import sampleRenderers from "devenv_pkg/src"; | ||
// eslint-disable-next-line import/no-unresolved | ||
import renderers from "custom_pkg/src"; | ||
|
||
/* Imports Carbon Addons dynamically */ | ||
const requireCustomCarbonAddons = async () => { | ||
const customCarbonAddons = await import( | ||
/* webpackChunkName: "simple" */ "../../custom-carbon-addons/src/apollo-client-hooks" | ||
); | ||
return customCarbonAddons; | ||
}; | ||
|
||
// These items will become children of window.spmcustom | ||
export { requireCustomCarbonAddons, renderers, sampleRenderers }; |
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,8 +1,7 @@ | ||
/* | ||
* Copyright Merative US L.P. 2021, 2024 | ||
*/ | ||
import "./scss/index.scss"; | ||
import renderers from "../renderers"; | ||
|
||
// eslint-disable-next-line import/no-unresolved | ||
import { renderers, sampleRenderers } from "devenv_pkg/src"; | ||
|
||
export { renderers, sampleRenderers }; | ||
export default renderers; |
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 @@ | ||
// Import your custom SCSS files in this file to automatically include them in the build. |
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 +1 @@ | ||
Add your custom SCSS files to this directory | ||
Add your custom SCSS files to this directory and import them in index.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,17 +1,7 @@ | ||
@import "../../../carbon-addons-devenv/src/scss/app.scss"; | ||
@use "@carbon/themes/scss/themes" as *; | ||
@use "@carbon/themes"; | ||
|
||
.spm-custom-component { | ||
//------------------------- | ||
// Variable overrides | ||
//------------------------- | ||
@import "./variables.scss"; | ||
//------------------------- | ||
// Carbon-Components | ||
//------------------------- | ||
@import "../../../carbon-addons-devenv/src/scss/carbon-components.scss"; | ||
//------------------------- | ||
// Custom addons scss here | ||
//------------------------- | ||
// Sample component addons | ||
//@import '../../../carbon-addons-devenv/src/scss/addon-samples.scss'; | ||
@import "./addons"; | ||
} |
This file was deleted.
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