Skip to content

Commit

Permalink
feat(menu): add menu on new archi
Browse files Browse the repository at this point in the history
  • Loading branch information
skhamvon authored and dpellier committed Aug 18, 2023
1 parent 828b927 commit 4456898
Show file tree
Hide file tree
Showing 78 changed files with 2,567 additions and 0 deletions.
33 changes: 33 additions & 0 deletions packages-new/components/menu/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
dist/
custom-elements/
custom-elements-bundle/
www/
loader/
docs-api
src/components.d.ts

*~
*.sw[mnpcod]
*.log
*.lock
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace

.stencil/
screenshot/
.idea/
.vscode/
.sass-cache/
.versions/
node_modules/
$RECYCLE.BIN/

.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
.env

src/**/readme.md
4 changes: 4 additions & 0 deletions packages-new/components/menu/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
!dist/
!loader/
!docs-api/
src/
246 changes: 246 additions & 0 deletions packages-new/components/menu/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
# 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)


# [15.0.1](https://ovhcloud.design/v15.0.1/?path=/docs/design-system-changelog--page) (2023-07-26)
[compare](https://github.com/ovh/design-system/compare/v15.0.0...v15.0.1)

**Note:** Version bump only for package @ovhcloud/ods-stencil-link







[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [15.0.0](https://ovhcloud.design/v15.0.0/?path=/docs/design-system-changelog--page) (2023-07-25)
[compare](https://github.com/ovh/design-system/compare/v13.0.1...v15.0.0)

### Bug Fixes

* **link:** add missing color for active state ([#81](https://github.com/ovh/design-system/issues/81)) ([0ed10dc](https://github.com/ovh/design-system/commit/0ed10dc8a3d5b7875bacfe20bacd9d0333b6d6e6))
* **link:** fix link host container size to match its content ([#82](https://github.com/ovh/design-system/issues/82)) ([d9b3900](https://github.com/ovh/design-system/commit/d9b390035b07f1b88d83bb0d007398b469f8ecc1))


### Features

* **icon:** add hover style ([#77](https://github.com/ovh/design-system/issues/77)) ([d4b221f](https://github.com/ovh/design-system/commit/d4b221ff82a67b63b2eba89022bb9dff9b0d12ec))



[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [14.1.1](https://ovhcloud.design/v14.1.1/?path=/docs/design-system-changelog--page) (2023-07-19)
[compare](https://github.com/ovh/design-system/compare/v14.1.0...v14.1.1)

**Note:** Version bump only for package @ovhcloud/ods-stencil-link







[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [14.1.0](https://ovhcloud.design/v14.1.0/?path=/docs/design-system-changelog--page) (2023-07-18)
[compare](https://github.com/ovh/design-system/compare/v13.0.1...v14.1.0)

### Bug Fixes

* **link:** add missing color for active state ([#81](https://github.com/ovh/design-system/issues/81)) ([0ed10dc](https://github.com/ovh/design-system/commit/0ed10dc8a3d5b7875bacfe20bacd9d0333b6d6e6))
* **link:** fix link host container size to match its content ([#82](https://github.com/ovh/design-system/issues/82)) ([d9b3900](https://github.com/ovh/design-system/commit/d9b390035b07f1b88d83bb0d007398b469f8ecc1))


### Features

* **icon:** add hover style ([#77](https://github.com/ovh/design-system/issues/77)) ([d4b221f](https://github.com/ovh/design-system/commit/d4b221ff82a67b63b2eba89022bb9dff9b0d12ec))



[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-stencil-link







[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

* **link:** add missing color for active state ([#81](https://github.com/ovh/design-system/issues/81)) ([0ed10dc](https://github.com/ovh/design-system/commit/0ed10dc8a3d5b7875bacfe20bacd9d0333b6d6e6))
* **link:** fix link host container size to match its content ([#82](https://github.com/ovh/design-system/issues/82)) ([d9b3900](https://github.com/ovh/design-system/commit/d9b390035b07f1b88d83bb0d007398b469f8ecc1))


### Features

* **icon:** add hover style ([#77](https://github.com/ovh/design-system/issues/77)) ([d4b221f](https://github.com/ovh/design-system/commit/d4b221ff82a67b63b2eba89022bb9dff9b0d12ec))



[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-stencil-link







[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

* **breadcrumb:** ensure alignement with empty text ([#65](https://github.com/ovh/design-system/issues/65)) ([d3a91e3](https://github.com/ovh/design-system/commit/d3a91e320b31b306cbd1980b1877e7fe63fe48b7))
* align icon and label in link ([#64](https://github.com/ovh/design-system/issues/64)) ([4c7c0ce](https://github.com/ovh/design-system/commit/4c7c0cee2d1fe35ac7c5388c70d1a8aba16311aa))
* **link:** set href & target optionnal ([#61](https://github.com/ovh/design-system/issues/61)) ([4943d84](https://github.com/ovh/design-system/commit/4943d84e0650acc0800cd011b2d44989225e4b6e))



[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-stencil-link





[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-stencil-link





[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-stencil-link





[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)

**Note:** Version bump only for package @ovhcloud/ods-stencil-link





[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-stencil-link







[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

* **testing:** fix imported cmpts screenshot tests ([#25](https://github.com/ovh/design-system/issues/25)) ([5aa963a](https://github.com/ovh/design-system/commit/5aa963ae85e4bb802830bbe973f87057fe008a56))



[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-stencil-link





[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-stencil-link





[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-stencil-link





[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-stencil-link
5 changes: 5 additions & 0 deletions packages-new/components/menu/THIRD-PARTY-LICENCES
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This file was generated with the generate-license-file npm package!
https://www.npmjs.com/package/generate-license-file

This file was generated with the generate-license-file npm package!
https://www.npmjs.com/package/generate-license-file
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
| Name | Default | Description |
|------|---------|-------------------------------------|
| - | 🚫 | menu main content (by default) |
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_none_
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_none_
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
| Name | Type | default | Description |
|-----------------------|-------------------------| ----------- |----------------------------------------------------|
| `[disabled]` | `boolean` | `false` | Disabled state |
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_none_
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {Description} from '@storybook/addon-docs';
import Specs from './spec.md';
import SpecsMessageContents from './specifications-menu-contents.mdx';
import SpecsMenuProperties from './specifications-menu-properties.mdx';
import SpecsMenuTests from './specifications-menu-tests.mdx';

<Description>{Specs}</Description>

## Contents
<SpecsMenuContents />

## Properties
<SpecsMenuProperties />

## Tests
<SpecsMenuTests />
23 changes: 23 additions & 0 deletions packages-new/components/menu/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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>/../../..',
args
});
export default config;
46 changes: 46 additions & 0 deletions packages-new/components/menu/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "@ovhcloud/ods-component-menu",
"version": "15.0.1",
"description": "ODS Menu component",
"author": "OVH SAS",
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"es2015": "dist/esm/index.js",
"es2017": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"collection": "dist/collection/collection-manifest.json",
"collection:main": "dist/collection/index.js",
"scripts": {
"build:prod": "npm run build:stencil --if-present && npm run build:react --if-present && npm run build:vue --if-present",
"build": "echo \"use build:prod\"",
"build:stencil": "stencil build --docs --prod --config stencil.config.ts",
"build:react": "npm --prefix react run build",
"build:vue": "npm --prefix vue run build",
"watch": "stencil build --docs --watch --dev --config stencil.config.ts",
"start": "stencil build --docs --dev --watch --serve",
"ignore:rm": "git clean -Xdf",
"generate": "stencil generate",
"doc:api": "typedoc",
"generate:licence": "npx generate-license-file --input package.json --output THIRD-PARTY-LICENCES --overwrite",
"test": "yarn run test:spec && yarn run test:e2e",
"test:spec": "stencil test --spec --config stencil.config.ts --coverage",
"test:spec:ci": "stencil test --config stencil.config.ts --spec --ci --coverage",
"test:e2e": "stencil test --e2e --config stencil.config.ts",
"test:e2e:screenshot": "stencil test --e2e --screenshot --config stencil.config.ts --passWithNoTests",
"test:e2e:screenshot:update": "stencil test --e2e --screenshot --config stencil.config.ts --update-screenshot --passWithNoTests",
"test:e2e:ci": "stencil test --config stencil.config.ts --e2e --ci",
"test:e2e:ci:screenshot": "stencil test --config stencil.config.ts --e2e --ci --screenshot --passWithNoTests",
"test:e2e:ci:screenshot:update": "stencil test --config stencil.config.ts --e2e --ci --screenshot --update-screenshot --passWithNoTests"
},
"dependencies": {
"@ovhcloud/ods-common-core": "^15.0.1",
"@ovhcloud/ods-common-stencil": "^15.0.1",
"@ovhcloud/ods-component-button": "^15.0.1",
"@ovhcloud/ods-component-divider": "^15.0.1"
},
"devDependencies": {
"@ovhcloud/ods-common-testing": "^15.0.1",
"@ovhcloud/ods-stencil-dev": "^15.0.1"
}
}
2 changes: 2 additions & 0 deletions packages-new/components/menu/react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
src/
2 changes: 2 additions & 0 deletions packages-new/components/menu/react/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!dist/
src/
Loading

0 comments on commit 4456898

Please sign in to comment.