Skip to content

Commit

Permalink
chore(merge): conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore committed Jan 23, 2024
2 parents e387131 + 40457e0 commit d2354d2
Show file tree
Hide file tree
Showing 28 changed files with 311 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/percy-update-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
KALTURA_UICONF_ID: ${{ secrets.KALTURA_UICONF_ID }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_WEBCOMPONENTS }}
- name: Run percy storybook
run: yarn visual-snapshot
run: yarn build-storybook && visual-snapshot
working-directory: packages/web-components
carbon-web-components:
if: github.repository == 'carbon-design-system/carbon-for-ibm-dotcom'
Expand Down Expand Up @@ -67,5 +67,5 @@ jobs:
KALTURA_UICONF_ID: ${{ secrets.KALTURA_UICONF_ID }}
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN_CARBONWEBCOMPONENTS }}
- name: Run percy storybook
run: yarn visual-snapshot
run: yarn build-storybook && visual-snapshot
working-directory: packages/carbon-web-components
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions packages/carbon-web-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ These are the list of available components via CDN:
- radio-button.min.js
- search.min.js
- select.min.js
- skeleton-icon.min.js
- skeleton-placeholder.min.js
- skeleton-text.min.js
- skip-to-content.min.js
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,29 @@
<!--
@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-skeleton-icon:not(:defined) {
display: none;
}
</style>
<script type="module" src="https://1.www.s81c.com/common/carbon/web-components/tag/v2/latest/skeleton-icon.min.js"></script>
</head>
<body class="cds-theme-zone-white">
<cds-skeleton-icon></cds-skeleton-icon>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!--
@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-skeleton-icon:not(:defined) {
display: none;
}
</style>
<script type="module" src="src/index.js"></script>
</head>
<body>
<cds-skeleton-icon></cds-skeleton-icon>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "carbon-web-components-skeleton-icon-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, 2024
*
* 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/skeleton-icon/index.js';
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* @license
*
* Copyright IBM Corp. 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

@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);
}
2 changes: 1 addition & 1 deletion packages/carbon-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"test:unit": "gulp test:unit",
"test:unit:updateSnapshot": "gulp test:unit --update-snapshot",
"typecheck": "tsc --noEmit -p tsconfig.json",
"visual-snapshot": "yarn build-storybook && percy storybook:start ./storybook-static",
"visual-snapshot": "yarn percy storybook:start ./storybook-static",
"wca": "web-component-analyzer analyze src --outFile custom-elements.json"
},
"files": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -126,7 +126,7 @@ export default class CDSProgressStep extends FocusMixin(LitElement) {
}[state],
children: svgLabel ? svg`<title>${svgLabel}</title>` : undefined,
})}
<slot>
<slot name="label-text">
<p
role="button"
class="${prefix}--progress-label"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## Live demo

<StorybookDemo
tall
url="https://www.ibm.com/standards/carbon/carbon-web-components"
variants={[
{
label: 'Default',
variant: 'components-skeleton-icon--default'
}
]}
/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @license
*
* Copyright IBM Corp. 2021, 2024
*
* 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 './skeleton-icon';
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { Props, Description } from '@storybook/addon-docs/blocks';
import { cdnJs, cdnCss } from '../../globals/internal/storybook-cdn';

# Skeleton icon

> 💡 Check our
> [CodeSandbox](https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components/examples/codesandbox/basic/components/skeleton-icon)
> example implementation.
[![Edit carbon-web-components](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/carbon-web-components/examples/codesandbox/basic/components/skeleton-icon)

## Getting started

Here's a quick example to get you started.

### JS (via import)

```javascript
import '@carbon/web-components/es/components/skeleton-icon/index.js';
```

<Description markdown={`${cdnJs({ components: ['skeleton-icon'] })}`} />
<Description markdown={`${cdnCss()}`} />

### HTML

```html
<cds-skeleton-icon></cds-skeleton-icon>
```

## `<cds-skeleton-icon>` attributes, properties and events

<Props of="cds-skeleton-icon" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2024
*
* 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 { html } from 'lit';
import './skeleton-icon';
import storyDocs from './skeleton-icon-story.mdx';

export const Default = () =>
html`<cds-skeleton-icon style="margin: 50px"></cds-skeleton-icon
><cds-skeleton-icon
style="margin: 50px; width: 24px; height: 24px;"></cds-skeleton-icon>`;

Default.storyName = 'Default';

Default.parameters = {
percy: {
skip: true,
},
};

export default {
title: 'Components/Skeleton/Skeleton icon',
parameters: {
...storyDocs.parameters,
},
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// Copyright IBM Corp. 2019, 2024
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//

@use '@carbon/styles/scss/config' as *;
@use '@carbon/styles/scss/components/skeleton-styles';
@use '@carbon/styles/scss/utilities/skeleton' as *;

:host(#{$prefix}-skeleton-icon) {
@include skeleton;

@extend .#{$prefix}--icon--skeleton;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2024
*
* 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 { LitElement } from 'lit';
import { prefix } from '../../globals/settings';
import styles from './skeleton-icon.scss';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';

/**
* Skeleton icon.
*
* @element cds-skeleton-icon
*/
@customElement(`${prefix}-skeleton-icon`)
class CDSSkeletonIcon extends LitElement {
static styles = styles;
}

export default CDSSkeletonIcon;
3 changes: 2 additions & 1 deletion packages/carbon-web-components/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2023
* Copyright IBM Corp. 2019, 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -89,6 +89,7 @@ export { default as CDSRadioButton } from './components/radio-button/radio-butto
export { default as CDSRadioButtonGroup } from './components/radio-button/radio-button-group';
export { default as CDSSearch } from './components/search/search';
export { default as CDSSearchSkeleton } from './components/search/search-skeleton';
export { default as CDSSkeletonIcon } from './components/skeleton-icon/skeleton-icon';
export { default as CDSSkeletonPlaceholder } from './components/skeleton-placeholder/skeleton-placeholder';
export { default as CDSSkeletonText } from './components/skeleton-text/skeleton-text';
export { default as CDSSlider } from './components/slider/slider';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
>
<span class="cds--checkbox-label-text">
<slot>
Checkbox label
</slot>
</span>
</label>
Expand All @@ -61,3 +60,4 @@
</div>
```

Loading

0 comments on commit d2354d2

Please sign in to comment.