@strapi/design-system 2.2.0 → 2.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/darkTheme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,eAAO,MAAM,SAAS,EAAE,YAIvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/darkTheme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,eAAO,MAAM,SAAS,EAAE,YAKvB,CAAC"}
@@ -4,8 +4,15 @@ export * from './lightTheme';
4
4
  export * from './darkTheme';
5
5
  export * from './extendTheme';
6
6
  export * from './utils';
7
+ /**
8
+ * Identifies which built-in color scheme a theme is based on. Read it from a
9
+ * `styled-components` theme (`theme.colorScheme`) when a style genuinely has to
10
+ * branch on light vs dark — prefer semantic color tokens whenever one exists.
11
+ */
12
+ export type ColorScheme = 'light' | 'dark';
7
13
  export interface StrapiTheme extends CommonTheme {
8
14
  colors: Colors;
9
15
  shadows: Shadows;
16
+ colorScheme: ColorScheme;
10
17
  }
11
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AAExB,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AAExB;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/lightTheme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,eAAO,MAAM,UAAU,EAAE,YAIxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/lightTheme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOjD,eAAO,MAAM,UAAU,EAAE,YAKxB,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@strapi/design-system",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/strapi/design-system.git",
9
+ "directory": "packages/design-system"
10
+ },
6
11
  "sideEffects": false,
7
12
  "source": "./src/index.ts",
8
13
  "main": "./dist/index.js",
@@ -33,13 +38,13 @@
33
38
  "@radix-ui/react-tabs": "1.0.4",
34
39
  "@radix-ui/react-tooltip": "1.0.7",
35
40
  "@radix-ui/react-use-callback-ref": "1.0.1",
36
- "@strapi/ui-primitives": "2.2.0",
41
+ "@strapi/ui-primitives": "2.2.2",
37
42
  "@uiw/react-codemirror": "4.22.2",
38
- "lodash": "4.17.23",
43
+ "lodash": "4.18.1",
39
44
  "react-remove-scroll": "2.5.10"
40
45
  },
41
46
  "devDependencies": {
42
- "@strapi/icons": "2.2.0",
47
+ "@strapi/icons": "2.2.2",
43
48
  "@types/lodash": "^4.17.23",
44
49
  "@vitejs/plugin-react-swc": "^3.7.0",
45
50
  "jest": "29.7.0",
@@ -54,8 +59,8 @@
54
59
  },
55
60
  "peerDependencies": {
56
61
  "@strapi/icons": "^2.0.0 || ^2.0.0-beta || ^2.0.0-alpha",
57
- "react": "^17.0.0 || ^18.0.0",
58
- "react-dom": "^17.0.0 || ^18.0.0",
62
+ "react": "^18.0.0",
63
+ "react-dom": "^18.0.0",
59
64
  "styled-components": "^6.0.0"
60
65
  },
61
66
  "scripts": {