@design-factory/tokens 21.0.0-next.1 → 21.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,10 +4,28 @@
4
4
 
5
5
  Design Factory Tokens is the package containing the Design Tokens used by Amadeus Design System, Design Factory.
6
6
 
7
+ Design Factory is an InnerSource design system made of:
8
+
9
+ - A UI library for Amadeus external and internal interfaces and applications, based on our four pillars
10
+ - A set of design and coding best practices
11
+ - A cross-functional community from all Amadeus business units
12
+
13
+ If you want to get more information about Design Factory, please contact [Design Factory team](mailto:DesignFactory@amadeus.com).
14
+
15
+ ## Architecture
16
+
17
+ The Design Factory is composed of multiple projects and you can install the package that fits your requirements.
18
+
19
+ - `@design-factory/tokens` includes the Design Tokens that empower the Design System
20
+ - `@design-factory/styles` includes the styles, composed of utilities and component styles
21
+ - `@design-factory/design-factory` contains Angular components and utilities. They will be migrated to the following package
22
+ - `@design-factory/angular` contains the new SideNav and will grow to include all Design Factory Angular components
23
+
7
24
  ## Exports
8
25
 
9
26
  The package `@design-factory/tokens` exports the following entry points to interact with tokens:
10
27
 
11
28
  - `@design-factory/tokens/figma/*.json` lists all tokens in a JSON format, by tier (t0, t1, t2 and t3)
12
29
  - `@design-factory/tokens/style-dictionary-config` exposes the style-dictionary utilities that can be used to customize the DF theme
13
- - `@design-factory/tokens/scss/*` exposes the sass vars, root css vars and bs mapping
30
+ - `@design-factory/tokens/scss/*` exposes the sass vars light and dark mode and root scss
31
+ - `@design-factory/tokens/css/*` exposes the root css vars, light and dark mode
package/config.cjs CHANGED
@@ -5,8 +5,9 @@ const enums = require("style-dictionary/enums");
5
5
  const utils = require("style-dictionary/utils");
6
6
  const os = require("os");
7
7
  const tier3ScopingMap = {
8
- button: `.btn,${os.EOL} .btn-close`,
9
8
  //needing .btn-close because the alert uses it// TODO: remove when wrapping alert
9
+ //needing .ng-arrow-wrapper because of select component // TODO remove when wrapping select
10
+ button: `.btn,${os.EOL} .btn-close,${os.EOL} .ng-arrow-wrapper`,
10
11
  badge: ".badge",
11
12
  footer: ".df-app-footer",
12
13
  navbar: ".navbar",
package/config.js CHANGED
@@ -3,8 +3,9 @@ import { transformTypes, transforms as transforms$1 } from "style-dictionary/enu
3
3
  import { fileHeader, sortByReference, usesReferences } from "style-dictionary/utils";
4
4
  import { EOL } from "os";
5
5
  const tier3ScopingMap = {
6
- button: `.btn,${EOL} .btn-close`,
7
6
  //needing .btn-close because the alert uses it// TODO: remove when wrapping alert
7
+ //needing .ng-arrow-wrapper because of select component // TODO remove when wrapping select
8
+ button: `.btn,${EOL} .btn-close,${EOL} .ng-arrow-wrapper`,
8
9
  badge: ".badge",
9
10
  footer: ".df-app-footer",
10
11
  navbar: ".navbar",
package/css/root-dark.css CHANGED
@@ -752,7 +752,8 @@ html:root[data-df-theme='dark'] {
752
752
 
753
753
  /* Tier 3 Scoped tokens */
754
754
  .btn,
755
- .btn-close {
755
+ .btn-close,
756
+ .ng-arrow-wrapper {
756
757
  --df-button-borderRadius-main-null: 0;
757
758
  --df-button-borderRadius-main-small: 0.25rem;
758
759
  --df-button-borderRadius-main-medium: 0.375rem;
@@ -752,7 +752,8 @@ html:root {
752
752
 
753
753
  /* Tier 3 Scoped tokens */
754
754
  .btn,
755
- .btn-close {
755
+ .btn-close,
756
+ .ng-arrow-wrapper {
756
757
  --df-button-borderRadius-main-null: 0;
757
758
  --df-button-borderRadius-main-small: 0.25rem;
758
759
  --df-button-borderRadius-main-medium: 0.375rem;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@design-factory/tokens",
3
3
  "description": "Amadeus design system tokens",
4
4
  "license": "BSD-3-Clause",
5
- "version": "21.0.0-next.1",
5
+ "version": "21.0.0",
6
6
  "type": "module",
7
7
  "peerDependencies": {
8
8
  "style-dictionary": "^5.0.0"
@@ -14,8 +14,8 @@
14
14
  },
15
15
  "exports": {
16
16
  "./style-dictionary-config": {
17
- "import": "./style-dictionary.config.js",
18
- "default": "./style-dictionary.config.cjs"
17
+ "import": "./config.js",
18
+ "default": "./config.cjs"
19
19
  },
20
20
  "./figma/*": "./figma/*",
21
21
  "./scss/*": "./scss/*.scss",
package/scss/root.scss CHANGED
@@ -749,7 +749,8 @@
749
749
  --df-color-tooltip-background: #{$df-color-tooltip-background};
750
750
  // Tier 3 Scoped tokens
751
751
  .btn,
752
- .btn-close {
752
+ .btn-close,
753
+ .ng-arrow-wrapper {
753
754
  --df-button-borderRadius-main-null: #{$df-button-borderRadius-main-null};
754
755
  --df-button-borderRadius-main-small: #{$df-button-borderRadius-main-small};
755
756
  --df-button-borderRadius-main-medium: #{$df-button-borderRadius-main-medium};