@ismou-workspace/ui 0.1.1 → 0.1.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.
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ # @ismou-workspace/ui
2
+
3
+ Ismou's design system: React components, styles, app and file icons, and the Vite plugins of the web clients.
4
+
5
+ Part of the [Ismou SDK](https://github.com/ismou-workspace/sdk): the packages the core and every app of [Ismou](https://github.com/ismou-workspace) are built with, released together under one version.
6
+
7
+ How screens are built with it: [the design system](https://github.com/ismou-workspace/sdk/blob/main/docs/design-system.md).
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ pnpm add @ismou-workspace/ui
13
+ ```
14
+
15
+ ## Documentation
16
+
17
+ - [The platform's documentation](https://github.com/ismou-workspace/sdk/tree/main/docs): architecture, conventions, design system.
18
+ - [Source](https://github.com/ismou-workspace/sdk/tree/main/packages/ui)
@@ -1,12 +1,21 @@
1
1
  /** The palette of styles.css. An app's primary is one of them (`data-primary`). */
2
2
  export type PaletteColor = 'blue' | 'cyan' | 'green' | 'violet' | 'yellow' | 'orange' | 'red';
3
+ /** The apps whose mark is a glyph of ours, painted in their primary's grain texture. */
4
+ export type GlyphAppBrand = 'core' | 'account' | 'contacts' | 'drive' | 'calendar' | 'admin';
5
+ /**
6
+ * The apps whose mark is an outside product's own logo, as that product draws it: Office (the
7
+ * ONLYOFFICE editors it embeds) and the Google bridge (Google).
8
+ */
9
+ export type LogoAppBrand = 'office' | 'google';
3
10
  /** The apps that have a brand mark (icon + favicon). */
4
- export type AppBrand = 'core' | 'account' | 'contacts' | 'drive' | 'calendar' | 'bridge' | 'office' | 'admin';
5
- export interface AppBrandDefinition {
11
+ export type AppBrand = GlyphAppBrand | LogoAppBrand;
12
+ interface AppBrandBase {
6
13
  /** Name of the mark, used as the favicon's title. */
7
14
  title: string;
8
- /** The app's primary colour: its icon and favicon are painted with it. */
15
+ /** The app's primary colour: its accent, and the paint of a glyph mark. */
9
16
  primary: PaletteColor;
17
+ }
18
+ export interface GlyphBrandDefinition extends AppBrandBase {
10
19
  /**
11
20
  * The glyph as SVG markup on a 24px grid, drawn in white: it is used as a mask, so the painted
12
21
  * grain shows only where the glyph is.
@@ -18,7 +27,15 @@ export interface AppBrandDefinition {
18
27
  */
19
28
  inlay?: string;
20
29
  }
21
- export declare const APP_BRANDS: Readonly<Record<AppBrand, AppBrandDefinition>>;
30
+ export interface LogoBrandDefinition extends AppBrandBase {
31
+ /** The product's logo, untouched: its SVG markup and the square `viewBox` it is drawn on. */
32
+ logo: {
33
+ viewBox: string;
34
+ markup: string;
35
+ };
36
+ }
37
+ export type AppBrandDefinition = GlyphBrandDefinition | LogoBrandDefinition;
38
+ export declare const APP_BRANDS: Readonly<Record<GlyphAppBrand, GlyphBrandDefinition> & Record<LogoAppBrand, LogoBrandDefinition>>;
22
39
  /**
23
40
  * The two ends of each palette colour's texture gradient, in hex for SVG files (favicons).
24
41
  * They match the `--<colour>-light` and `--<colour>-dark` tokens of styles.css.
@@ -27,12 +44,16 @@ export declare const PALETTE_TEXTURE_HEX: Readonly<Record<PaletteColor, {
27
44
  light: string;
28
45
  dark: string;
29
46
  }>>;
30
- /** The glyph as a standalone 24px SVG document (white on transparent), for CSS masks. */
31
- export declare function appGlyphSvg(brand: AppBrand): string;
32
47
  /**
33
- * The app's favicon: the glyph in the primary texture (its primary's light gradient under a film
34
- * grain). The
35
- * grain is coarse and quiet (one octave, low opacity) so it reads as texture at 32px and
36
- * vanishes into a clean silhouette at 16px instead of turning into noise.
48
+ * The glyph as a standalone 24px SVG document (white on transparent), for CSS masks. A logo
49
+ * brand has none: a product's logo is never recoloured.
50
+ */
51
+ export declare function appGlyphSvg(brand: GlyphAppBrand): string;
52
+ /**
53
+ * The app's favicon. A glyph brand: the glyph in the primary texture (its primary's light
54
+ * gradient under a film grain); the grain is coarse and quiet (one octave, low opacity) so it
55
+ * reads as texture at 32px and vanishes into a clean silhouette at 16px instead of turning into
56
+ * noise. A logo brand: the product's logo, as it draws it.
37
57
  */
38
58
  export declare function appFaviconSvg(brand: AppBrand): string;
59
+ export {};
@@ -28,19 +28,23 @@ const CALENDAR_GLYPH = `<path fill="#fff" fill-rule="evenodd" d="M5.5 5L18.5 5Q2
28
28
  '<rect fill="#fff" x="6.75" y="1.75" width="2.5" height="5.5" rx="1.25"/>' +
29
29
  '<rect fill="#fff" x="14.75" y="1.75" width="2.5" height="5.5" rx="1.25"/>';
30
30
  /**
31
- * The bridge mark (the Google bridge, an app linking an outside service): a deck on an arch,
32
- * its two towers above, every corner rounded like the other glyphs.
31
+ * The ONLYOFFICE logo (Office embeds its editors): three stacked layers, blue, green, orange.
32
+ * From selfhst/icons (`svg/onlyoffice.svg`).
33
33
  */
34
- const BRIDGE_GLYPH = '<rect fill="#fff" x="2.5" y="8.5" width="19" height="3" rx="1.25"/>' +
35
- '<path fill="#fff" d="M3.75 11.5L20.25 11.5L20.25 19.75Q20.25 21 19 21L17.75 21Q16.5 21 16.5 19.75L16.5 18A4.5 4.5 0 0 0 7.5 18L7.5 19.75Q7.5 21 6.25 21L5 21Q3.75 21 3.75 19.75Z"/>' +
36
- '<rect fill="#fff" x="5" y="3" width="2.5" height="6" rx="1.25"/>' +
37
- '<rect fill="#fff" x="16.5" y="3" width="2.5" height="6" rx="1.25"/>';
34
+ const ONLYOFFICE_LOGO = '<path d="M224 486.5 13.5 389.2c-17.9-8.5-17.9-21.6 0-29.4l73.3-34 136.5 63.3c17.9 8.5 46.8 8.5 64 0l136.5-63.3 73.3 34c17.9 8.5 17.9 21.6 0 29.4l-210.6 97.3c-16.5 7.7-45.3 7.7-62.5 0" style="fill-rule:evenodd;clip-rule:evenodd;fill:#ff6f3d"/>' +
35
+ '<path d="M224 366.8 13.5 269.4c-17.9-8.5-17.9-21.6 0-29.4l71.7-33.2L224 271c17.9 8.5 46.8 8.5 64 0l138.8-64.1 71.8 33.2c17.9 8.5 17.9 21.6 0 29.4L288 366.8c-18 8.5-46.8 8.5-64 0" style="fill-rule:evenodd;clip-rule:evenodd;fill:#95c038"/>' +
36
+ '<path d="M224 250.1 13.5 152.8c-17.9-8.5-17.9-21.6 0-29.4L224 26.1c17.9-8.5 46.8-8.5 64 0l210.6 97.3c17.9 8.5 17.9 21.6 0 29.4L288 250.1c-18 7.7-46.8 7.7-64 0" style="fill-rule:evenodd;clip-rule:evenodd;fill:#5dc0e8"/>';
38
37
  /**
39
- * The office mark (the editor of documents, spreadsheets and presentations): a page, three lines
40
- * of text cut out of it (even-odd), its top corner notched and folded down into the notch.
38
+ * The Google "G" (the Google bridge), its four colours blended into one another.
39
+ * From selfhst/icons (`svg/google.svg`).
41
40
  */
42
- const OFFICE_GLYPH = '<path fill="#fff" fill-rule="evenodd" d="M6.5 2.5L12.25 2.5Q13.25 2.5 13.25 3.5L13.25 7.25Q13.25 8.75 14.75 8.75L18.5 8.75Q19.5 8.75 19.5 9.75L19.5 19.5Q19.5 21.5 17.5 21.5L6.5 21.5Q4.5 21.5 4.5 19.5L4.5 4.5Q4.5 2.5 6.5 2.5ZM8 11.75L16 11.75Q16.75 11.75 16.75 12.5Q16.75 13.25 16 13.25L8 13.25Q7.25 13.25 7.25 12.5Q7.25 11.75 8 11.75ZM8 15L16 15Q16.75 15 16.75 15.75Q16.75 16.5 16 16.5L8 16.5Q7.25 16.5 7.25 15.75Q7.25 15 8 15ZM8 18.25L12.5 18.25Q13.25 18.25 13.25 19Q13.25 19.75 12.5 19.75L8 19.75Q7.25 19.75 7.25 19Q7.25 18.25 8 18.25Z"/>' +
43
- '<path fill="#fff" d="M14.75 2.9L19.1 7.25L15.5 7.25Q14.75 7.25 14.75 6.5Z"/>';
41
+ const GOOGLE_LOGO = '<path d="M502.2 209.5H261.1v99.1h137.8c-6.1 31.9-24.2 58.9-51.4 77-22.8 15.4-51.9 24.7-86.3 24.7-66.6 0-123.1-44.9-143.4-105.4h-.3l.3-.2c-5.1-15.4-8.1-31.7-8.1-48.6s3-33.3 8.1-48.6C138 147 194.6 102.1 261.2 102.1c37.7 0 71.2 13 98 38.2L432.5 67C388 25.4 330.2 0 261.1 0 161 0 74.7 57.5 32.6 141.3 15.1 175.7 5.1 214.6 5.1 256s10 80.3 27.5 114.7v.2C74.7 454.5 161 512 261.1 512c69.1 0 127.1-22.8 169.4-61.9 48.4-44.7 76.3-110.3 76.3-188.3.1-18.1-1.5-35.6-4.6-52.3" style="fill:#fc4c53"/>' +
42
+ '<radialGradient id="google-yellow" cx="91.998" cy="254.653" r="224.709" gradientTransform="matrix(.8032 0 0 -1.0842 -7.184 568.69)" gradientUnits="userSpaceOnUse"><stop offset=".368" style="stop-color:#ffcf09"/><stop offset=".718" style="stop-color:#ffcf09;stop-opacity:.7"/><stop offset="1" style="stop-color:#ffcf09;stop-opacity:0"/></radialGradient>' +
43
+ '<path d="M117.8 304.9h-.3l.3-.2c-5.1-15.4-8.1-31.7-8.1-48.6 0-17 3-33.3 8.1-48.6 12.8-38.3 40.2-70.2 75.3-88.6C169 86.9 138.3 64 104 54.2c-29.7 23.3-54.3 52.9-71.5 87C15.1 175.7 5.1 214.6 5.1 256s10 80.3 27.5 114.7v.2c28.3 56 76.5 100.3 135.3 123.4 24.6-22.5 44.7-53 58.6-88.7-50.9-12.4-92.1-51.1-108.7-100.7" style="fill:url(#google-yellow)"/>' +
44
+ '<radialGradient id="google-green" cx="188.9" cy="-30.673" r="276.436" gradientTransform="matrix(1.317 -.1645 -.1248 -.9995 90.861 507.496)" gradientUnits="userSpaceOnUse"><stop offset=".383" style="stop-color:#34a853"/><stop offset=".706" style="stop-color:#34a853;stop-opacity:.7"/><stop offset="1" style="stop-color:#34a853;stop-opacity:0"/></radialGradient>' +
45
+ '<path d="M34.5 374.4C77.2 456.1 162.4 512 261.1 512c69.1 0 127.1-22.8 169.4-61.9 48.4-44.7 76.3-110.3 76.3-188.3 0-4.5-.4-8.7-.6-13.1-59-19.4-126.6-26.7-197.2-17.9-16.4 2-32.2 5.1-47.8 8.7v69.1H399c-6.1 31.9-24.2 58.9-51.4 77-22.8 15.4-51.9 24.7-86.3 24.7-66.6 0-123.1-44.9-143.4-105.4h-.3l.3-.2c-.5-1.5-.7-3.1-1.2-4.6-32.5 21.3-60.2 46.5-82.2 74.3" style="fill:url(#google-green)"/>' +
46
+ '<linearGradient id="google-blue" x1="521.402" x2="255.847" y1="398.065" y2="71.945" gradientTransform="matrix(1 0 0 -1 0 514)" gradientUnits="userSpaceOnUse"><stop offset=".671" style="stop-color:#4285f4"/><stop offset=".885" style="stop-color:#4285f4;stop-opacity:0"/></linearGradient>' +
47
+ '<path d="M430.5 450.1c48.4-44.7 76.3-110.3 76.3-188.3 0-18.2-1.6-35.6-4.7-52.4h-241v99.1h137.8c-6.1 31.9-24.2 58.9-51.4 77-16.4 11-36.1 18.8-58.6 22.3l85.7 79.7c20.8-9.7 39.6-22.3 55.9-37.4" style="fill:url(#google-blue)"/>';
44
48
  /**
45
49
  * The administration mark: an eight-tooth cog with a round hub hole (even-odd), teeth rounded
46
50
  * like the other glyphs. Same visual weight as the Λ and the person.
@@ -57,8 +61,16 @@ export const APP_BRANDS = {
57
61
  glyph: CALENDAR_GLYPH,
58
62
  inlay: `<path fill="#fff" d="${CALENDAR_DAYS}"/>`,
59
63
  },
60
- bridge: { title: 'Bridge', primary: 'violet', glyph: BRIDGE_GLYPH },
61
- office: { title: 'Office', primary: 'yellow', glyph: OFFICE_GLYPH },
64
+ google: {
65
+ title: 'Google',
66
+ primary: 'violet',
67
+ logo: { viewBox: '0 0 512 512', markup: GOOGLE_LOGO },
68
+ },
69
+ office: {
70
+ title: 'Office',
71
+ primary: 'yellow',
72
+ logo: { viewBox: '0 0 512 512', markup: ONLYOFFICE_LOGO },
73
+ },
62
74
  admin: { title: 'Administration', primary: 'red', glyph: ADMIN_GLYPH },
63
75
  };
64
76
  /**
@@ -74,18 +86,26 @@ export const PALETTE_TEXTURE_HEX = {
74
86
  orange: { light: '#e4914e', dark: '#cb6620' },
75
87
  red: { light: '#de3c37', dark: '#bb081a' },
76
88
  };
77
- /** The glyph as a standalone 24px SVG document (white on transparent), for CSS masks. */
89
+ /**
90
+ * The glyph as a standalone 24px SVG document (white on transparent), for CSS masks. A logo
91
+ * brand has none: a product's logo is never recoloured.
92
+ */
78
93
  export function appGlyphSvg(brand) {
79
94
  return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${APP_BRANDS[brand].glyph}</svg>`;
80
95
  }
81
96
  /**
82
- * The app's favicon: the glyph in the primary texture (its primary's light gradient under a film
83
- * grain). The
84
- * grain is coarse and quiet (one octave, low opacity) so it reads as texture at 32px and
85
- * vanishes into a clean silhouette at 16px instead of turning into noise.
97
+ * The app's favicon. A glyph brand: the glyph in the primary texture (its primary's light
98
+ * gradient under a film grain); the grain is coarse and quiet (one octave, low opacity) so it
99
+ * reads as texture at 32px and vanishes into a clean silhouette at 16px instead of turning into
100
+ * noise. A logo brand: the product's logo, as it draws it.
86
101
  */
87
102
  export function appFaviconSvg(brand) {
88
- const { title, primary, glyph } = APP_BRANDS[brand];
103
+ const definition = APP_BRANDS[brand];
104
+ if ('logo' in definition) {
105
+ const { title, logo } = definition;
106
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${logo.viewBox}" width="64" height="64"><title>${title}</title>${logo.markup}</svg>`;
107
+ }
108
+ const { title, primary, glyph, inlay } = definition;
89
109
  const { light, dark } = PALETTE_TEXTURE_HEX[primary];
90
110
  return [
91
111
  '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64">',
@@ -104,7 +124,7 @@ export function appFaviconSvg(brand) {
104
124
  '<rect width="24" height="24" fill="url(#fill)"/>',
105
125
  '<rect width="24" height="24" filter="url(#grain)" opacity="0.45" style="mix-blend-mode:overlay"/>',
106
126
  '</g>',
107
- APP_BRANDS[brand].inlay ?? '',
127
+ inlay ?? '',
108
128
  '</svg>',
109
129
  ].join('');
110
130
  }
@@ -6,7 +6,7 @@ export declare const appIconVariants: (props?: ({
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export type AppIconSize = NonNullable<VariantProps<typeof appIconVariants>['size']>;
8
8
  export interface AppIconProps extends Omit<React.ComponentProps<'img'>, 'children' | 'src' | 'alt'>, VariantProps<typeof appIconVariants> {
9
- /** Which app's mark to draw (core blue, account orange, contacts green, drive blue, calendar cyan, bridge violet, office yellow, admin red). */
9
+ /** Which app's mark to draw (core blue, account orange, contacts green, drive blue, calendar cyan, admin red; office and google show their product's logo). */
10
10
  brand: AppBrand;
11
11
  /** Accessible name, e.g. the app name. Omit when the name is printed next to the icon. */
12
12
  label?: string;
@@ -28,7 +28,7 @@ export declare function DriveAppIcon(props: BrandAppIconProps): React.JSX.Elemen
28
28
  export declare function CalendarAppIcon(props: BrandAppIconProps): React.JSX.Element;
29
29
  /** The contacts app's logo: a green grain person. */
30
30
  export declare function ContactsAppIcon(props: BrandAppIconProps): React.JSX.Element;
31
- /** The logo of a bridge to an outside service (the Google bridge): a violet grain bridge. */
32
- export declare function BridgeAppIcon(props: BrandAppIconProps): React.JSX.Element;
31
+ /** The Google bridge's logo: Google's own "G". */
32
+ export declare function GoogleAppIcon(props: BrandAppIconProps): React.JSX.Element;
33
33
  /** The administration logo: a red grain cog. */
34
34
  export declare function AdminAppIcon(props: BrandAppIconProps): React.JSX.Element;
@@ -55,9 +55,9 @@ export function CalendarAppIcon(props) {
55
55
  export function ContactsAppIcon(props) {
56
56
  return _jsx(AppIcon, { brand: "contacts", ...props });
57
57
  }
58
- /** The logo of a bridge to an outside service (the Google bridge): a violet grain bridge. */
59
- export function BridgeAppIcon(props) {
60
- return _jsx(AppIcon, { brand: "bridge", ...props });
58
+ /** The Google bridge's logo: Google's own "G". */
59
+ export function GoogleAppIcon(props) {
60
+ return _jsx(AppIcon, { brand: "google", ...props });
61
61
  }
62
62
  /** The administration logo: a red grain cog. */
63
63
  export function AdminAppIcon(props) {
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="64" height="64"><title>Google</title><path d="M502.2 209.5H261.1v99.1h137.8c-6.1 31.9-24.2 58.9-51.4 77-22.8 15.4-51.9 24.7-86.3 24.7-66.6 0-123.1-44.9-143.4-105.4h-.3l.3-.2c-5.1-15.4-8.1-31.7-8.1-48.6s3-33.3 8.1-48.6C138 147 194.6 102.1 261.2 102.1c37.7 0 71.2 13 98 38.2L432.5 67C388 25.4 330.2 0 261.1 0 161 0 74.7 57.5 32.6 141.3 15.1 175.7 5.1 214.6 5.1 256s10 80.3 27.5 114.7v.2C74.7 454.5 161 512 261.1 512c69.1 0 127.1-22.8 169.4-61.9 48.4-44.7 76.3-110.3 76.3-188.3.1-18.1-1.5-35.6-4.6-52.3" style="fill:#fc4c53"/><radialGradient id="google-yellow" cx="91.998" cy="254.653" r="224.709" gradientTransform="matrix(.8032 0 0 -1.0842 -7.184 568.69)" gradientUnits="userSpaceOnUse"><stop offset=".368" style="stop-color:#ffcf09"/><stop offset=".718" style="stop-color:#ffcf09;stop-opacity:.7"/><stop offset="1" style="stop-color:#ffcf09;stop-opacity:0"/></radialGradient><path d="M117.8 304.9h-.3l.3-.2c-5.1-15.4-8.1-31.7-8.1-48.6 0-17 3-33.3 8.1-48.6 12.8-38.3 40.2-70.2 75.3-88.6C169 86.9 138.3 64 104 54.2c-29.7 23.3-54.3 52.9-71.5 87C15.1 175.7 5.1 214.6 5.1 256s10 80.3 27.5 114.7v.2c28.3 56 76.5 100.3 135.3 123.4 24.6-22.5 44.7-53 58.6-88.7-50.9-12.4-92.1-51.1-108.7-100.7" style="fill:url(#google-yellow)"/><radialGradient id="google-green" cx="188.9" cy="-30.673" r="276.436" gradientTransform="matrix(1.317 -.1645 -.1248 -.9995 90.861 507.496)" gradientUnits="userSpaceOnUse"><stop offset=".383" style="stop-color:#34a853"/><stop offset=".706" style="stop-color:#34a853;stop-opacity:.7"/><stop offset="1" style="stop-color:#34a853;stop-opacity:0"/></radialGradient><path d="M34.5 374.4C77.2 456.1 162.4 512 261.1 512c69.1 0 127.1-22.8 169.4-61.9 48.4-44.7 76.3-110.3 76.3-188.3 0-4.5-.4-8.7-.6-13.1-59-19.4-126.6-26.7-197.2-17.9-16.4 2-32.2 5.1-47.8 8.7v69.1H399c-6.1 31.9-24.2 58.9-51.4 77-22.8 15.4-51.9 24.7-86.3 24.7-66.6 0-123.1-44.9-143.4-105.4h-.3l.3-.2c-.5-1.5-.7-3.1-1.2-4.6-32.5 21.3-60.2 46.5-82.2 74.3" style="fill:url(#google-green)"/><linearGradient id="google-blue" x1="521.402" x2="255.847" y1="398.065" y2="71.945" gradientTransform="matrix(1 0 0 -1 0 514)" gradientUnits="userSpaceOnUse"><stop offset=".671" style="stop-color:#4285f4"/><stop offset=".885" style="stop-color:#4285f4;stop-opacity:0"/></linearGradient><path d="M430.5 450.1c48.4-44.7 76.3-110.3 76.3-188.3 0-18.2-1.6-35.6-4.7-52.4h-241v99.1h137.8c-6.1 31.9-24.2 58.9-51.4 77-16.4 11-36.1 18.8-58.6 22.3l85.7 79.7c20.8-9.7 39.6-22.3 55.9-37.4" style="fill:url(#google-blue)"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Office</title><defs><mask id="glyph" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><path fill="#fff" fill-rule="evenodd" d="M6.5 2.5L12.25 2.5Q13.25 2.5 13.25 3.5L13.25 7.25Q13.25 8.75 14.75 8.75L18.5 8.75Q19.5 8.75 19.5 9.75L19.5 19.5Q19.5 21.5 17.5 21.5L6.5 21.5Q4.5 21.5 4.5 19.5L4.5 4.5Q4.5 2.5 6.5 2.5ZM8 11.75L16 11.75Q16.75 11.75 16.75 12.5Q16.75 13.25 16 13.25L8 13.25Q7.25 13.25 7.25 12.5Q7.25 11.75 8 11.75ZM8 15L16 15Q16.75 15 16.75 15.75Q16.75 16.5 16 16.5L8 16.5Q7.25 16.5 7.25 15.75Q7.25 15 8 15ZM8 18.25L12.5 18.25Q13.25 18.25 13.25 19Q13.25 19.75 12.5 19.75L8 19.75Q7.25 19.75 7.25 19Q7.25 18.25 8 18.25Z"/><path fill="#fff" d="M14.75 2.9L19.1 7.25L15.5 7.25Q14.75 7.25 14.75 6.5Z"/></mask><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#eec96c"/><stop offset="1" stop-color="#d5a13c"/></linearGradient><filter id="grain" x="0" y="0" width="100%" height="100%"><feTurbulence type="fractalNoise" baseFrequency="1.6" numOctaves="2" seed="7" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0"/></filter></defs><g mask="url(#glyph)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.45" style="mix-blend-mode:overlay"/></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="64" height="64"><title>Office</title><path d="M224 486.5 13.5 389.2c-17.9-8.5-17.9-21.6 0-29.4l73.3-34 136.5 63.3c17.9 8.5 46.8 8.5 64 0l136.5-63.3 73.3 34c17.9 8.5 17.9 21.6 0 29.4l-210.6 97.3c-16.5 7.7-45.3 7.7-62.5 0" style="fill-rule:evenodd;clip-rule:evenodd;fill:#ff6f3d"/><path d="M224 366.8 13.5 269.4c-17.9-8.5-17.9-21.6 0-29.4l71.7-33.2L224 271c17.9 8.5 46.8 8.5 64 0l138.8-64.1 71.8 33.2c17.9 8.5 17.9 21.6 0 29.4L288 366.8c-18 8.5-46.8 8.5-64 0" style="fill-rule:evenodd;clip-rule:evenodd;fill:#95c038"/><path d="M224 250.1 13.5 152.8c-17.9-8.5-17.9-21.6 0-29.4L224 26.1c17.9-8.5 46.8-8.5 64 0l210.6 97.3c17.9 8.5 17.9 21.6 0 29.4L288 250.1c-18 7.7-46.8 7.7-64 0" style="fill-rule:evenodd;clip-rule:evenodd;fill:#5dc0e8"/></svg>
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { APP_BRANDS, type AppBrand, type AppBrandDefinition, appFaviconSvg, appGlyphSvg, PALETTE_TEXTURE_HEX, type PaletteColor, } from './brand/app-brands.ts';
2
- export { AccountAppIcon, AdminAppIcon, AppIcon, type AppIconProps, type AppIconSize, appIconVariants, type BrandAppIconProps, BridgeAppIcon, CalendarAppIcon, ContactsAppIcon, CoreAppIcon, DriveAppIcon, } from './brand/app-icon.tsx';
1
+ export { APP_BRANDS, type AppBrand, type AppBrandDefinition, appFaviconSvg, appGlyphSvg, type GlyphAppBrand, type GlyphBrandDefinition, type LogoAppBrand, type LogoBrandDefinition, PALETTE_TEXTURE_HEX, type PaletteColor, } from './brand/app-brands.ts';
2
+ export { AccountAppIcon, AdminAppIcon, AppIcon, type AppIconProps, type AppIconSize, appIconVariants, type BrandAppIconProps, CalendarAppIcon, ContactsAppIcon, CoreAppIcon, DriveAppIcon, GoogleAppIcon, } from './brand/app-icon.tsx';
3
3
  export { AppLogo, type AppLogoProps } from './brand/app-logo.tsx';
4
4
  export { GrainSurface, type GrainSurfaceProps } from './brand/grain-surface.tsx';
5
5
  export { AccountMenu, type AccountMenuProps } from './components/account-menu.tsx';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { APP_BRANDS, appFaviconSvg, appGlyphSvg, PALETTE_TEXTURE_HEX, } from './brand/app-brands.js';
2
- export { AccountAppIcon, AdminAppIcon, AppIcon, appIconVariants, BridgeAppIcon, CalendarAppIcon, ContactsAppIcon, CoreAppIcon, DriveAppIcon, } from './brand/app-icon.js';
2
+ export { AccountAppIcon, AdminAppIcon, AppIcon, appIconVariants, CalendarAppIcon, ContactsAppIcon, CoreAppIcon, DriveAppIcon, GoogleAppIcon, } from './brand/app-icon.js';
3
3
  export { AppLogo } from './brand/app-logo.js';
4
4
  export { GrainSurface } from './brand/grain-surface.js';
5
5
  export { AccountMenu } from './components/account-menu.js';
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@ismou-workspace/ui",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
+ "description": "Ismou's design system: React components, styles, app and file icons, and the Vite plugins of the web clients.",
4
5
  "type": "module",
5
6
  "sideEffects": [
6
7
  "**/*.css",
@@ -33,7 +34,7 @@
33
34
  "./favicons/contacts.svg": "./dist/brand/favicons/contacts.svg",
34
35
  "./favicons/drive.svg": "./dist/brand/favicons/drive.svg",
35
36
  "./favicons/calendar.svg": "./dist/brand/favicons/calendar.svg",
36
- "./favicons/bridge.svg": "./dist/brand/favicons/bridge.svg",
37
+ "./favicons/google.svg": "./dist/brand/favicons/google.svg",
37
38
  "./favicons/office.svg": "./dist/brand/favicons/office.svg",
38
39
  "./favicons/admin.svg": "./dist/brand/favicons/admin.svg"
39
40
  },
@@ -56,7 +57,7 @@
56
57
  "tailwind-merge": "3.7.3",
57
58
  "tailwindcss": "4.3.5",
58
59
  "tw-animate-css": "1.4.0",
59
- "@ismou-workspace/translations": "^0.1.1"
60
+ "@ismou-workspace/translations": "^0.1.2"
60
61
  },
61
62
  "peerDependencies": {
62
63
  "react": "19.3.1",
@@ -79,7 +80,7 @@
79
80
  "typescript": "7.0.2",
80
81
  "vite": "8.4.1",
81
82
  "vitest": "5.1.2",
82
- "@ismou-workspace/tsconfig": "^0.1.1"
83
+ "@ismou-workspace/tsconfig": "^0.1.2"
83
84
  },
84
85
  "repository": {
85
86
  "type": "git",
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Bridge</title><defs><mask id="glyph" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect fill="#fff" x="2.5" y="8.5" width="19" height="3" rx="1.25"/><path fill="#fff" d="M3.75 11.5L20.25 11.5L20.25 19.75Q20.25 21 19 21L17.75 21Q16.5 21 16.5 19.75L16.5 18A4.5 4.5 0 0 0 7.5 18L7.5 19.75Q7.5 21 6.25 21L5 21Q3.75 21 3.75 19.75Z"/><rect fill="#fff" x="5" y="3" width="2.5" height="6" rx="1.25"/><rect fill="#fff" x="16.5" y="3" width="2.5" height="6" rx="1.25"/></mask><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#7f67c5"/><stop offset="1" stop-color="#6542a3"/></linearGradient><filter id="grain" x="0" y="0" width="100%" height="100%"><feTurbulence type="fractalNoise" baseFrequency="1.6" numOctaves="2" seed="7" stitchTiles="stitch"/><feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0"/></filter></defs><g mask="url(#glyph)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.45" style="mix-blend-mode:overlay"/></g></svg>