Skip to content

Commit

Permalink
chore(merge): merge feat/cwc-v2 into feat/carbon-for-ibm-dotcom-v2 (
Browse files Browse the repository at this point in the history
carbon-design-system#11157)

chore(merge): merges feat/cwc-v2 into feat/carbon-for-ibm-dotcom-v2
  • Loading branch information
kennylam authored Nov 20, 2023
1 parent c7e5a1f commit 3a5f274
Show file tree
Hide file tree
Showing 34 changed files with 978 additions and 81 deletions.
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"packages": [
"packages/web-components",
"packages/utilities",
"packages/react",
"packages/eslint-*",
"packages/services-*",
"packages/storybook-addon-theme",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"targets": [
"last 1 version",
"Firefox ESR",
"not opera > 0",
"not op_mini > 0",
"not op_mob > 0",
"not android > 0",
"not edge > 0",
"not ie > 0",
"not ie_mob > 0"
]
}
]
],
"plugins": [["@babel/plugin-transform-runtime", { "version": "7.3.0" }]]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build

# misc
.DS_Store
.cache
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"includePaths": [
"node_modules",
"../../node_modules"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!--
@license
Copyright IBM Corp. 2020
This source code is licensed under the Apache-2.0 license found in the
LICENSE file in the root directory of this source tree.
-->

<html>
<head>
<title>@carbon/ibmdotcom-web-components example</title>
<meta charset="UTF-8"/>
<link rel="stylesheet"
href="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/plex.css"/>
<link rel="stylesheet" href="https://1.www.s81c.com/common/carbon/web-components/tag/v2/latest/grid.css" />
<link rel="stylesheet" href="https://1.www.s81c.com/common/carbon/web-components/tag/v2/latest/themes.css" />
<style>
/* Suppress custom element until styles are loaded */
cds-slug:not(:defined) {
display: none;
}
</style>
<script type="module" src="https://1.www.s81c.com/common/carbon/web-components/slug/v2/latest/slug.min.js"></script>
</head>
<body class="cds-theme-zone-white">
<cds-slug size="mini" kind="hollow" alignment="bottom-left">
<span slot="body-text">AI was used to generate this content</span>
</cds-slug>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!--
@license
Copyright IBM Corp. 2020
This source code is licensed under the Apache-2.0 license found in the
LICENSE file in the root directory of this source tree.
-->

<html>
<head>
<title>carbon-web-components example</title>
<meta charset="UTF-8" />
<link rel="stylesheet"
href="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/plex.css"/>

<link rel="stylesheet" href="src/styles.scss" />
<style>
/* Suppress custom element until styles are loaded */
cds-slug:not(:defined) {
display: none;
}
</style>
<script type="module" src="src/index.js"></script>
</head>
<body>
<cds-slug size="mini" kind="hollow" alignment="bottom-left">
<span slot="body-text">AI was used to generate this content</span>
</cds-slug>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "carbon-web-components-slug-example",
"version": "0.1.0",
"private": true,
"description": "Sample project for getting started with the Web Components from Carbon.",
"license": "Apache-2",
"main": "index.html",
"scripts": {
"build": "parcel build *.html --no-minify --public-url ./",
"clean": "rimraf node_modules dist .cache",
"start": "parcel index.html --port=9000 --no-hmr"
},
"dependencies": {
"@carbon/styles": "^1.34.0",
"@carbon/web-components": "latest",
"sass": "^1.64.1"
},
"devDependencies": {
"@babel/core": "^7.0.0-0",
"parcel-bundler": "1.12.3",
"rimraf": "^3.0.2"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"template": "node"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license
*
* Copyright IBM Corp. 2020, 2022
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import '@carbon/web-components/es/components/slug/index.js';
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@use '@carbon/styles/scss/reset';
@use '@carbon/styles/scss/theme';
@use '@carbon/styles/scss/themes';

:root {
@include theme.theme(themes.$white);
background-color: var(--cds-background);
color: var(--cds-text-primary);
}

3 changes: 2 additions & 1 deletion packages/carbon-web-components/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "@carbon/web-components",
"private": true,
"version": "2.0.1",
"publishConfig": {
"access": "public"
Expand Down Expand Up @@ -71,7 +72,7 @@
],
"dependencies": {
"@babel/runtime": "^7.16.3",
"@carbon/styles": "^1.39.0",
"@carbon/styles": "^1.42.0",
"flatpickr": "4.6.1",
"lit": "^2.7.6",
"lodash-es": "^4.17.21"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ $css--plex: true !default;

@use '@carbon/styles/scss/theme' as *;
@use '@carbon/styles/scss/config' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/utilities' as *;
@use '@carbon/styles/scss/utilities/keyframes' as *;
@use '@carbon/styles/scss/motion' as *;
@use '@carbon/styles/scss/spacing' as *;
@use '@carbon/styles/scss/components/button';
@use '@carbon/styles/scss/components/tooltip';
@use '@carbon/styles/scss/components/code-snippet/code-snippet' as *;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ $css--plex: true !default;
@use '@carbon/styles/scss/utilities' as *;
@use '@carbon/styles/scss/breakpoint' as *;
@use '@carbon/styles/scss/layout' as *;
@use '@carbon/styles/scss/theme' as *;
@use '../tooltip/tooltip';
@use '../button/button';

:host(#{$prefix}-icon-button) {
@include emit-layout-tokens();
}

:host(#{$prefix}-icon-button[kind='ghost']) ::slotted([slot='icon']) {
color: $icon-primary;
}
Loading

0 comments on commit 3a5f274

Please sign in to comment.