@quen-ui/theme 1.0.1 → 1.1.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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const generateCardTokens = (theme) => ({
4
4
  radius: theme.components.Card?.radius ?? theme.control.radius,
5
- borderColor: theme.components.Card?.borderColor ?? theme.colors.grayViolet[5]
5
+ borderColor: theme.components.Card?.borderColor ?? theme.colors.grayViolet[5],
6
+ shadow: theme.components.Card?.shadow ?? `0 2px 4px ${theme.colors.grayViolet[5]}`
6
7
  });
7
8
  exports.generateCardTokens = generateCardTokens;
@@ -4,5 +4,7 @@ export interface ICardTokens {
4
4
  radius: string;
5
5
  /** Border color of the card */
6
6
  borderColor: string;
7
+ /** Shadow of the card */
8
+ shadow: string;
7
9
  }
8
10
  export declare const generateCardTokens: (theme: IQuenUITheme) => ICardTokens;
@@ -1,6 +1,7 @@
1
1
  const generateCardTokens = (theme) => ({
2
2
  radius: theme.components.Card?.radius ?? theme.control.radius,
3
- borderColor: theme.components.Card?.borderColor ?? theme.colors.grayViolet[5]
3
+ borderColor: theme.components.Card?.borderColor ?? theme.colors.grayViolet[5],
4
+ shadow: theme.components.Card?.shadow ?? `0 2px 4px ${theme.colors.grayViolet[5]}`
4
5
  });
5
6
  export {
6
7
  generateCardTokens
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quen-ui/theme",
3
3
  "private": false,
4
- "version": "1.0.1",
4
+ "version": "1.1.0",
5
5
  "type": "module",
6
6
  "homepage": "https://quen-ui.github.io/quen-ui/",
7
7
  "description": "Provides a consistent visual style for components from `@quen-ui/components`.",