diff --git a/examples/codesandbox/basic/components/inline-loading/cdn.html b/examples/codesandbox/basic/components/inline-loading/cdn.html index 30e8dabb6..a55b33693 100644 --- a/examples/codesandbox/basic/components/inline-loading/cdn.html +++ b/examples/codesandbox/basic/components/inline-loading/cdn.html @@ -15,20 +15,13 @@ href="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/plex.css"/> - - + - - - Label text - Optional helper text - Something isn't right - - +Loading data... diff --git a/examples/codesandbox/basic/components/input/cdn.html b/examples/codesandbox/basic/components/input/cdn.html index 030974bde..bcee06f7b 100644 --- a/examples/codesandbox/basic/components/input/cdn.html +++ b/examples/codesandbox/basic/components/input/cdn.html @@ -15,13 +15,19 @@ href="https://1.www.s81c.com/common/carbon-for-ibm-dotcom/tag/v1/latest/plex.css"/> - + - Loading data... + + + Label text + Optional helper text + Something isn't right + + diff --git a/examples/codesandbox/basic/components/skip-to-content/.babelrc b/examples/codesandbox/basic/components/skip-to-content/.babelrc new file mode 100644 index 000000000..74450eed9 --- /dev/null +++ b/examples/codesandbox/basic/components/skip-to-content/.babelrc @@ -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" }]] +} diff --git a/examples/codesandbox/basic/components/skip-to-content/.gitignore b/examples/codesandbox/basic/components/skip-to-content/.gitignore new file mode 100644 index 000000000..d94d6e13e --- /dev/null +++ b/examples/codesandbox/basic/components/skip-to-content/.gitignore @@ -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* diff --git a/examples/codesandbox/basic/components/skip-to-content/cdn.html b/examples/codesandbox/basic/components/skip-to-content/cdn.html new file mode 100644 index 000000000..252993d17 --- /dev/null +++ b/examples/codesandbox/basic/components/skip-to-content/cdn.html @@ -0,0 +1,35 @@ + + + + + @carbon/ibmdotcom-web-components example + + + + + + + + +
+ + Button + +
+ + diff --git a/examples/codesandbox/basic/components/skip-to-content/index.html b/examples/codesandbox/basic/components/skip-to-content/index.html new file mode 100644 index 000000000..999799d98 --- /dev/null +++ b/examples/codesandbox/basic/components/skip-to-content/index.html @@ -0,0 +1,34 @@ + + + + + carbon-web-components example + + + + + + + +
+ + Button + +
+ + diff --git a/examples/codesandbox/basic/components/skip-to-content/package.json b/examples/codesandbox/basic/components/skip-to-content/package.json new file mode 100644 index 000000000..91bc9ca4f --- /dev/null +++ b/examples/codesandbox/basic/components/skip-to-content/package.json @@ -0,0 +1,21 @@ +{ + "name": "carbon-web-components-skip-to-content-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-web-components": "latest" + }, + "devDependencies": { + "@babel/core": "^7.0.0-0", + "parcel-bundler": "1.12.3", + "rimraf": "^3.0.2" + } +} diff --git a/examples/codesandbox/basic/components/skip-to-content/sandbox.config.json b/examples/codesandbox/basic/components/skip-to-content/sandbox.config.json new file mode 100644 index 000000000..a4df8557d --- /dev/null +++ b/examples/codesandbox/basic/components/skip-to-content/sandbox.config.json @@ -0,0 +1,3 @@ +{ + "template": "node" +} diff --git a/examples/codesandbox/basic/components/skip-to-content/src/index.js b/examples/codesandbox/basic/components/skip-to-content/src/index.js new file mode 100644 index 000000000..27032a878 --- /dev/null +++ b/examples/codesandbox/basic/components/skip-to-content/src/index.js @@ -0,0 +1,11 @@ +/** + * @license + * + * Copyright IBM Corp. 2020, 2021 + * + * 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/skip-to-content/index.js'; +import 'carbon-web-components/es/components/button/index.js';