-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(arch): new structure && update text & textarea
- Loading branch information
Showing
411 changed files
with
6,780 additions
and
1,495 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
dist/ | ||
www/ | ||
loader/ | ||
typedoc/ | ||
docs-api/ | ||
|
||
components/**/docs | ||
spec.md | ||
|
||
*.d.ts | ||
|
||
*~ | ||
*.sw[mnpcod] | ||
*.log | ||
*.lock | ||
*.tmp | ||
*.tmp.* | ||
log.txt | ||
*.sublime-project | ||
*.sublime-workspace | ||
|
||
.stencil/ | ||
.idea/ | ||
.vscode/ | ||
.sass-cache/ | ||
.versions/ | ||
node_modules/ | ||
$RECYCLE.BIN/ | ||
|
||
.DS_Store | ||
Thumbs.db | ||
UserInterfaceState.xcuserstate | ||
.env |
File renamed without changes.
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,196 @@ | ||
# Change Log | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [14.0.1](https://ovhcloud.design/v14.0.1/?path=/docs/design-system-changelog--page) (2023-06-28) | ||
[compare](https://github.com/ovh/design-system/compare/v14.0.0...v14.0.1) | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [14.0.0](https://ovhcloud.design/v14.0.0/?path=/docs/design-system-changelog--page) (2023-06-28) | ||
[compare](https://github.com/ovh/design-system/compare/v13.0.1...v14.0.0) | ||
|
||
### Bug Fixes | ||
|
||
* **popover:** change toBeFalse to toBe false in testing ([#86](https://github.com/ovh/design-system/issues/86)) ([b2e74b7](https://github.com/ovh/design-system/commit/b2e74b7648b7b6e0ecae89493c0c4832962f6abe)) | ||
* **tile:** add hoverable attribute to avoid double focus in radio when interactive ([#80](https://github.com/ovh/design-system/issues/80)) ([9429178](https://github.com/ovh/design-system/commit/942917827474b7a0524ea4d26fbaade95baee55f)) | ||
|
||
|
||
### Features | ||
|
||
* **icon:** add hover style ([#77](https://github.com/ovh/design-system/issues/77)) ([d4b221f](https://github.com/ovh/design-system/commit/d4b221ff82a67b63b2eba89022bb9dff9b0d12ec)) | ||
* **input-v1:** upgrading component ([#71](https://github.com/ovh/design-system/issues/71)) ([5609893](https://github.com/ovh/design-system/commit/56098935d29be39dbc9a763fb0b92396544f4d44)) | ||
* **popover:** add new component popover ([#14](https://github.com/ovh/design-system/issues/14)) ([507155c](https://github.com/ovh/design-system/commit/507155c4961c69adc5f98fd7c7c85518c483893f)) | ||
* add progress bar component ([#62](https://github.com/ovh/design-system/issues/62)) ([9d35e79](https://github.com/ovh/design-system/commit/9d35e79edf6a9680775d20ab8e44884ff7d8d381)) | ||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [13.0.1](https://ovhcloud.design/v13.0.1/?path=/docs/design-system-changelog--page) (2023-06-09) | ||
[compare](https://github.com/ovh/design-system/compare/v13.0.0...v13.0.1) | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [13.0.0](https://ovhcloud.design/v13.0.0/?path=/docs/design-system-changelog--page) (2023-06-08) | ||
[compare](https://github.com/ovh/design-system/compare/v12.1.3...v13.0.0) | ||
|
||
### Bug Fixes | ||
|
||
* **input:** not emit odsValueChange on init component ([#48](https://github.com/ovh/design-system/issues/48)) ([f789285](https://github.com/ovh/design-system/commit/f78928508ce82a0b6e61e2f4e34009890bc0c240)) | ||
* **link:** set href & target optionnal ([#61](https://github.com/ovh/design-system/issues/61)) ([4943d84](https://github.com/ovh/design-system/commit/4943d84e0650acc0800cd011b2d44989225e4b6e)) | ||
|
||
|
||
### Features | ||
|
||
* add circle shape in button ([#42](https://github.com/ovh/design-system/issues/42)) ([d024fae](https://github.com/ovh/design-system/commit/d024faecdda903d291a5bb88323c3dc4da3a5a0e)) | ||
* **component.pagination:** Add new component pagination ([#10](https://github.com/ovh/design-system/issues/10)) ([3b4c767](https://github.com/ovh/design-system/commit/3b4c767b5fb2c7d90b8acf2e787d69aa5a048c0f)) | ||
* **icons:** add download icon ([#46](https://github.com/ovh/design-system/issues/46)) ([5348075](https://github.com/ovh/design-system/commit/5348075b3faff0831caa521b435a0e6c2d2de88d)) | ||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.1.3](https://ovhcloud.design/v12.1.3/?path=/docs/design-system-changelog--page) (2023-05-16) | ||
[compare](https://github.com/ovh/design-system/compare/v12.1.2...v12.1.3) | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core | ||
|
||
|
||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.1.2](https://ovhcloud.design/v12.1.2/?path=/docs/design-system-changelog--page) (2023-05-16) | ||
[compare](https://github.com/ovh/design-system/compare/v12.1.1...v12.1.2) | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core | ||
|
||
|
||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.1.1](https://ovhcloud.design/v12.1.1/?path=/docs/design-system-changelog--page) (2023-05-05) | ||
[compare](https://github.com/ovh/design-system/compare/v12.1.0...v12.1.1) | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.1.0](https://ovhcloud.design/v12.1.0/?path=/docs/design-system-changelog--page) (2023-05-03) | ||
[compare](https://github.com/ovh/design-system/compare/v12.0.5...v12.1.0) | ||
|
||
### Features | ||
|
||
* **component.tabs:** Add new component tabs ([#13](https://github.com/ovh/design-system/issues/13)) ([e73b220](https://github.com/ovh/design-system/commit/e73b220bb287ad2f0233297ad4477134af91947b)) | ||
* **generator:** add typedoc and tsconfig generation ([#19](https://github.com/ovh/design-system/issues/19)) ([928f881](https://github.com/ovh/design-system/commit/928f8815b0a183694d48cb1ca63c810d7cbf52ad)) | ||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.0.5](https://ovhcloud.design/v12.0.5/?path=/docs/design-system-changelog--page) (2023-04-28) | ||
[compare](https://github.com/ovh/design-system/compare/v12.0.4...v12.0.5) | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.0.4](https://ovhcloud.design/v12.0.4/?path=/docs/design-system-changelog--page) (2023-04-28) | ||
[compare](https://github.com/ovh/design-system/compare/v12.0.3...v12.0.4) | ||
|
||
### Bug Fixes | ||
|
||
* **button:** submit button when in form ([#27](https://github.com/ovh/design-system/issues/27)) ([52a6f55](https://github.com/ovh/design-system/commit/52a6f558a6d252ae15aa12ee82185c9ffc782c23)) | ||
* **quantity:** disable button when min input is 0 ([#26](https://github.com/ovh/design-system/issues/26)) ([1255a10](https://github.com/ovh/design-system/commit/1255a105ea318452d22b282ee01d0ab3bb3a5d60)) | ||
* **quantity:** fix osds-input type in quantity ([#22](https://github.com/ovh/design-system/issues/22)) ([c130868](https://github.com/ovh/design-system/commit/c1308680b61850e16b761e8a5a61482364995759)) | ||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.0.3](https://ovhcloud.design/v12.0.3/?path=/docs/design-system-changelog--page) (2023-02-28) | ||
[compare](https://github.com/ovh/design-system/compare/v12.0.2...v12.0.3) | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core | ||
|
||
|
||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.0.2](https://ovhcloud.design/v12.0.2/?path=/docs/design-system-changelog--page) (2023-02-28) | ||
[compare](https://github.com/ovh/design-system/compare/v12.0.1...v12.0.2) | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core | ||
|
||
|
||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.0.1](https://ovhcloud.design/v12.0.1/?path=/docs/design-system-changelog--page) (2023-02-28) | ||
[compare](https://github.com/ovh/design-system/compare/v12.0.0...v12.0.1) | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core | ||
|
||
|
||
|
||
|
||
|
||
[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page) | ||
|
||
|
||
# [12.0.0](https://ovhcloud.design/v12.0.0/?path=/docs/design-system-changelog--page) (2023-02-27) | ||
12.0.0 | ||
|
||
**Note:** Version bump only for package @ovhcloud/ods-core |
File renamed without changes.
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,11 @@ | ||
<style> | ||
{` | ||
.container { | ||
display: inline-flex; | ||
align-items: flex-start; | ||
} | ||
.container > * { | ||
margin-right: 1em; | ||
} | ||
`} | ||
</style> |
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,3 @@ | ||
# `@ovhcloud/ods-core` | ||
|
||
This library includes all common stuff to all OVHCloud design system. |
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,3 @@ | ||
## Usage | ||
|
||
ods core usage |
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,20 @@ | ||
import type { Config } from '@jest/types'; | ||
import { OdsGetJestConfig } from '@ovhcloud/ods-common-testing'; | ||
|
||
const args = process.argv.slice(2); | ||
|
||
/** | ||
* synchronous config for jest. | ||
* | ||
* example with async config : | ||
* ```typescript | ||
* export default async (): Promise<Config.InitialOptions> => { | ||
* return { | ||
* verbose: true, | ||
* }; | ||
* }; | ||
* ``` | ||
*/ | ||
// @ts-ignore until dependencies are fixed to one unique version of @jest/types | ||
const config: Config.InitialOptions = OdsGetJestConfig({ basePath: '<rootDir>/../..', stencil: false, args }); | ||
export default config; |
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,25 @@ | ||
{ | ||
"name": "@ovhcloud/ods-common-core", | ||
"version": "14.1.1", | ||
"description": "ODS common core helpers", | ||
"author": "OVH SAS", | ||
"license": "Apache-2.0", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"scripts": { | ||
"ignore:rm": "git clean -Xdf", | ||
"build:esm": "tsc -p tsconfig.esm.json", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build": "npm run build:esm && npm run build:cjs && node ./scripts/generate-ods-version.js", | ||
"build:prod": "npm run build", | ||
"watch": "tsc -w -p tsconfig.esm.json", | ||
"doc": "typedoc --plugin none src/* && typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs true --hideInPageTOC true && typedoc --json ./typedoc/typedoc.json --pretty && tsc src/utils/typedoc/typedoc-json-to-md.ts && node scripts/generate-typedoc-md.js", | ||
"generate:licence": "npx generate-license-file --input package.json --output THIRD-PARTY-LICENCES --overwrite", | ||
"test:spec": "jest --coverage", | ||
"test:spec:ci": "jest --ci --coverage --detectOpenHandles" | ||
}, | ||
"devDependencies": { | ||
"@ovhcloud/ods-common-testing": "^14.1.1", | ||
"@ovhcloud/ods-dev": "^14.1.1" | ||
} | ||
} |
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,17 @@ | ||
var packageJson = require('../package.json'); | ||
const fs = require("fs"); | ||
console.log('writing version into version.js files...', { version: packageJson.version }); | ||
|
||
['./dist/esm/version.d.ts', './dist/esm/version.js', './dist/cjs/version.d.ts', './dist/cjs/version.js'] | ||
.forEach(file => | ||
fs.readFile(file, 'utf8', function (err, data) { | ||
|
||
if (err) return console.log(err); | ||
|
||
const formatted = data.replace(/{{{VERSION}}}/g, packageJson.version); | ||
|
||
fs.writeFile(file, formatted, 'utf8', function (err) { | ||
if (err) return console.log(err); | ||
}); | ||
}) | ||
); |
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,26 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const typedocJson = require(path.resolve('typedoc/typedoc.json')); | ||
|
||
const { convertJsonToMarkdown } = require(path.resolve('src/utils/typedoc/typedoc-json-to-md')); | ||
|
||
const componentTypes = require('../src/components/component-types.json'); | ||
|
||
const createComponentDetailedList = (list) => list.map((item) => ({ | ||
pathName: item.replace(/ods/gmi, '').replace(/([a-z])([A-Z])/gm, '$1-$2').toLowerCase(), | ||
regex: new RegExp(item, 'gmi'), | ||
})); | ||
|
||
createComponentDetailedList(componentTypes).forEach(({ pathName, regex }) => { | ||
const dir = path.resolve('src/components', pathName, 'docs'); | ||
fs.mkdirSync(dir, { recursive: true }); | ||
|
||
if(typedocJson.children) { | ||
fs.writeFileSync(path.resolve(dir, 'spec.md'), convertJsonToMarkdown(typedocJson.children, regex), (err) => { | ||
if (err) { | ||
console.error(`file write error.`); | ||
throw err; | ||
} | ||
}); | ||
} | ||
}); |
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 @@ | ||
!typedoc/ |
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,7 @@ | ||
/** | ||
* is the specified element has `aria-hidden` attribute or not | ||
* @param hostElement - Element node | ||
*/ | ||
export function odsHasAriaHidden<E extends HTMLElement>(hostElement: E): boolean { | ||
return hostElement.hasAttribute('aria-hidden') && hostElement.getAttribute('aria-hidden') === 'true'; | ||
} |
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 @@ | ||
export * from './ods-has-aria-hidden'; |
Oops, something went wrong.