@sorayasm/vietri-ds 0.3.1 → 0.4.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,6BAA6B;IAC7B,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,WAAW,EACX,KAAU,EACV,KAAU,EACV,UAA2B,EAC3B,MAAM,EACN,KAAK,EACL,aAAsC,GACvC,EAAE,WAAW,2CA+Ib"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/Footer/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAYvC,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,6BAA6B;IAC7B,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,iDAAiD;IACjD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,WAAW,EACX,KAAU,EACV,KAAU,EACV,UAA2B,EAC3B,MAAM,EACN,KAAK,EACL,aAAsC,GACvC,EAAE,WAAW,2CAmJb"}
@@ -10,11 +10,17 @@ export interface HeroProps {
10
10
  /** Heading level of the title (h1–h6). A page's hero is normally h1. */
11
11
  level?: HeadingLevel;
12
12
  align?: "left" | "center";
13
+ /**
14
+ * Draws a short rule under the title, in the theme's `accentLarge` (or the primary
15
+ * color). It is decorative. The title itself stays in the text color, so it is
16
+ * readable over any photo.
17
+ */
18
+ accentRule?: boolean;
13
19
  /**
14
20
  * Address of a background image. It is decorative (it carries no text
15
21
  * alternative), so do not put information in it. A dark layer (the theme's
16
- * `scrim`) sits over it and the text stays in the area it covers best, so the
17
- * text keeps AA contrast whatever the photo. If the image fails to load, the
22
+ * `scrim`) sits over it, at least 74% opaque under the text, so the text keeps
23
+ * AA contrast whatever the photo, even a pure white one. If the image fails to load, the
18
24
  * theme surface shows instead.
19
25
  */
20
26
  image?: string;
@@ -26,6 +32,6 @@ export interface HeroProps {
26
32
  * text on top, or a background image under a dark layer. Outlined and text
27
33
  * buttons inside it take the text color of the surface, so they stay visible.
28
34
  */
29
- export declare function Hero({ title, eyebrow, description, actions, level, align, image, imagePosition, }: HeroProps): import("react/jsx-runtime").JSX.Element;
35
+ export declare function Hero({ title, eyebrow, description, actions, level, align, accentRule, image, imagePosition, }: HeroProps): import("react/jsx-runtime").JSX.Element;
30
36
  export {};
31
37
  //# sourceMappingURL=Hero.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../../src/components/Hero/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,KAAK,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,uCAAuC;IACvC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,wEAAwE;IACxE,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,OAAO,EACP,WAAW,EACX,OAAO,EACP,KAAS,EACT,KAAc,EACd,KAAK,EACL,aAAwB,GACzB,EAAE,SAAS,2CA8FX"}
1
+ {"version":3,"file":"Hero.d.ts","sourceRoot":"","sources":["../../../../src/components/Hero/Hero.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC,KAAK,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,uCAAuC;IACvC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,wEAAwE;IACxE,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,OAAO,EACP,WAAW,EACX,OAAO,EACP,KAAS,EACT,KAAc,EACd,UAAkB,EAClB,KAAK,EACL,aAAwB,GACzB,EAAE,SAAS,2CAkHX"}
@@ -25,6 +25,13 @@ export interface NavBarProps {
25
25
  * let it span the whole width.
26
26
  */
27
27
  maxWidth?: Breakpoint | false;
28
+ /**
29
+ * Shows the links in the theme's primary color. The page you are on stays in
30
+ * the text color and is underlined, so color is not the only clue. Use it when
31
+ * the primary color reads as text on the page background (true in the
32
+ * Streaming theme). Default false: muted links.
33
+ */
34
+ accentLinks?: boolean;
28
35
  }
29
- export declare function NavBar({ brand, brandHref, links, actions, ariaLabel, menuLabel, closeLabel, maxWidth, }: NavBarProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function NavBar({ brand, brandHref, links, actions, ariaLabel, menuLabel, closeLabel, maxWidth, accentLinks, }: NavBarProps): import("react/jsx-runtime").JSX.Element;
30
37
  //# sourceMappingURL=NavBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/components/NavBar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWjD,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGjE,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,oEAAoE;IACpE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;CAC/B;AAkCD,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,SAAe,EACf,KAAK,EACL,OAAO,EACP,SAAkB,EAClB,SAAkB,EAClB,UAAyB,EACzB,QAAe,GAChB,EAAE,WAAW,2CAkGb"}
1
+ {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../../src/components/NavBar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAWjD,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGjE,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,oEAAoE;IACpE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,yCAAyC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;IAC9B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAiDD,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,SAAe,EACf,KAAK,EACL,OAAO,EACP,SAAkB,EAClB,SAAkB,EAClB,UAAyB,EACzB,QAAe,EACf,WAAmB,GACpB,EAAE,WAAW,2CAkGb"}
@@ -1,4 +1,4 @@
1
- import type { ThemeOptions } from "@mui/material/styles";
1
+ import { type ThemeOptions } from "@mui/material/styles";
2
2
  import "./augmentation";
3
3
  /**
4
4
  * Visual identity of the MUI components. It lives in the theme so it
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,gBAAgB,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAgJjD,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/theme/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,gBAAgB,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAwLjD,CAAC"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Each theme (editorial, streaming, observatory) has its own identity:
5
5
  * - editorial → the portfolio: black, white and gold
6
- * - streaming → "El Blues es Femenino": deep purple, violet, lavender, magenta, cyan
6
+ * - streaming → "El Blues es Femenino": deep violet and orange
7
7
  * - observatory → the Mujeres del Blues Observatory: teal, cyan, amber, coral, red, purple
8
8
  *
9
9
  * Every pair that carries text meets WCAG AA (4.5:1). Brand colors that are
@@ -42,11 +42,32 @@ export interface ThemeColors {
42
42
  actionHover: GradientStops;
43
43
  /** Text on action fills. */
44
44
  onAction: string;
45
+ /**
46
+ * Optional color of the line of outlined buttons (a neutral one, so that the
47
+ * line does not compete with the orange of the action). The label of those buttons
48
+ * uses the text color. Hover and focus use the primary color. Needs 3:1 on the page
49
+ * and on the cards.
50
+ */
51
+ outline?: string;
52
+ /**
53
+ * A brighter accent for the fill of large buttons, where the label is white and
54
+ * bold (at least 18.7px, which counts as large text and only needs 3:1), and for
55
+ * the short rule under a hero title. Can be livelier than `action`. Optional.
56
+ */
57
+ accentLarge?: string;
58
+ /** Hover of `accentLarge`. */
59
+ accentLargeHover?: string;
45
60
  /** Fill of footers, headers and banners. */
46
61
  surface: GradientStops;
62
+ /** Optional middle color of the surface gradient (at 60%). */
63
+ surfaceMid?: string;
64
+ /** Angle of the surface gradient in degrees. Default 135. */
65
+ surfaceAngle?: number;
66
+ /** Optional 4px rule along the top edge of footers. Decorative: it carries no text. */
67
+ surfaceRule?: string;
47
68
  /**
48
- * Dark color laid over a hero image so the text stays readable. At 85% or
49
- * more it keeps the text above 4.5:1 even over a pure white photo.
69
+ * Color laid over a hero image so the text stays readable. At 74% or more it
70
+ * keeps white text above 4.5:1 even over a pure white photo.
50
71
  */
51
72
  scrim: string;
52
73
  /** Text on surfaces. */
@@ -73,9 +94,18 @@ export interface ThemeColors {
73
94
  /** Portfolio — black, white and gold. */
74
95
  export declare const editorialColors: ThemeColors;
75
96
  /**
76
- * El Blues es Femenino — deep purple, violet, lavender, magenta and cyan.
77
- * Fills are flat, except the surface (footer and banners): a soft gradient
78
- * between two violets.
97
+ * El Blues es Femenino — deep violet and orange.
98
+ *
99
+ * Orange carries everything you can press, in three versions chosen by where it
100
+ * sits: a burnt orange for button fills with white text, a light orange for links,
101
+ * outlines and arrows on the dark backgrounds, and the brand orange for large text
102
+ * and large buttons (a bold white label of 19px reaches 3.25:1, enough for large text).
103
+ *
104
+ * Everything else is violet and lilac: a flat deep violet footer with a thin orange
105
+ * rule along its top, lilac lines on outlined buttons, white text. The rule of thumb:
106
+ * orange is for acting, and it goes as a surface or over a dark flat background. On
107
+ * the violet of a hero, or on a gradient, lines and texts are lilac or white, because
108
+ * orange there gives 3.75:1 and vibrates.
79
109
  */
80
110
  export declare const streamingColors: ThemeColors;
81
111
  /** Observatory — teal, cyan, amber, coral, red and deep purple. Flat colors. */
@@ -1 +1 @@
1
- {"version":3,"file":"palettes.d.ts","sourceRoot":"","sources":["../../../src/theme/palettes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,8EAA8E;AAC9E,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;AAEhE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IAEvB,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,sBAAsB;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IAEb,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IAEpB,gEAAgE;IAChE,MAAM,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,CAAC,GAAG,IAAI,CAAC;IAEvC,MAAM,EAAE,YAAY,CAAC;IACrB,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IAEjB,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,2EAA2E;IAC3E,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAWD,yCAAyC;AACzC,eAAO,MAAM,eAAe,EAAE,WAoC7B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,EAAE,WAiE7B,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,iBAAiB,EAAE,WAmD/B,CAAC"}
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import type { GradientStops, ThemeColors } from "./palettes";
7
7
  export type { GradientStops };
8
- export declare function linearGradient(from: string, to: string, angle?: number): string;
8
+ export declare function linearGradient(from: string, to: string, angle?: number, mid?: string): string;
9
9
  export interface Gradients {
10
10
  /** Footers, headers and banners. */
11
11
  surface: string;
@@ -17,7 +17,7 @@ export interface Gradients {
17
17
  * Turns a palette's color pairs into CSS. When both colors of a pair are
18
18
  * equal the result looks flat, so flat themes and gradient themes share code.
19
19
  */
20
- export declare function createGradients(colors: Pick<ThemeColors, "surface" | "action" | "actionHover">): Gradients;
20
+ export declare function createGradients(colors: Pick<ThemeColors, "surface" | "action" | "actionHover"> & Partial<Pick<ThemeColors, "surfaceMid" | "surfaceAngle">>): Gradients;
21
21
  export declare const tokens: {
22
22
  readonly spacing: 8;
23
23
  readonly radius: {
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/theme/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE7D,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,wBAAgB,cAAc,CAAC,IAA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orayasm/vietri-ds",
3
3
  "private": false,
4
- "version": "0.3.1",
4
+ "version": "0.4.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",