@ismou-workspace/ui 0.0.0-stage → 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 +17 -2
- package/dist/brand/app-brands.d.ts +59 -0
- package/dist/brand/app-brands.js +130 -0
- package/dist/brand/app-icon.d.ts +34 -0
- package/dist/brand/app-icon.js +65 -0
- package/dist/brand/app-logo.d.ts +14 -0
- package/dist/brand/app-logo.js +27 -0
- package/dist/brand/favicons/account.svg +1 -0
- package/dist/brand/favicons/admin.svg +1 -0
- package/dist/brand/favicons/calendar.svg +1 -0
- package/dist/brand/favicons/contacts.svg +1 -0
- package/dist/brand/favicons/core.svg +1 -0
- package/dist/brand/favicons/drive.svg +1 -0
- package/dist/brand/favicons/google.svg +1 -0
- package/dist/brand/favicons/office.svg +1 -0
- package/dist/brand/file-icons/archive.svg +1 -0
- package/dist/brand/file-icons/audio.svg +1 -0
- package/dist/brand/file-icons/code.svg +1 -0
- package/dist/brand/file-icons/diagram.svg +1 -0
- package/dist/brand/file-icons/document.svg +1 -0
- package/dist/brand/file-icons/form.svg +1 -0
- package/dist/brand/file-icons/image.svg +1 -0
- package/dist/brand/file-icons/markdown.svg +1 -0
- package/dist/brand/file-icons/other.svg +1 -0
- package/dist/brand/file-icons/pdf.svg +1 -0
- package/dist/brand/file-icons/presentation.svg +1 -0
- package/dist/brand/file-icons/spreadsheet.svg +1 -0
- package/dist/brand/file-icons/text.svg +1 -0
- package/dist/brand/file-icons/video.svg +1 -0
- package/dist/brand/grain-surface.d.ts +8 -0
- package/dist/brand/grain-surface.js +10 -0
- package/dist/brand/kind-icons.d.ts +36 -0
- package/dist/brand/kind-icons.js +149 -0
- package/dist/components/account-menu.d.ts +20 -0
- package/dist/components/account-menu.js +13 -0
- package/dist/components/alert.d.ts +10 -0
- package/dist/components/alert.js +28 -0
- package/dist/components/app-switcher.d.ts +21 -0
- package/dist/components/app-switcher.js +17 -0
- package/dist/components/area-selection.d.ts +21 -0
- package/dist/components/area-selection.js +91 -0
- package/dist/components/avatar-picker-dialog.d.ts +40 -0
- package/dist/components/avatar-picker-dialog.js +110 -0
- package/dist/components/avatar.d.ts +5 -0
- package/dist/components/avatar.js +10 -0
- package/dist/components/badge-list.d.ts +7 -0
- package/dist/components/badge-list.js +7 -0
- package/dist/components/badge.d.ts +9 -0
- package/dist/components/badge.js +32 -0
- package/dist/components/breadcrumbs.d.ts +20 -0
- package/dist/components/breadcrumbs.js +16 -0
- package/dist/components/button.d.ts +12 -0
- package/dist/components/button.js +38 -0
- package/dist/components/caption.d.ts +3 -0
- package/dist/components/caption.js +6 -0
- package/dist/components/card.d.ts +8 -0
- package/dist/components/card.js +23 -0
- package/dist/components/checkbox-field.d.ts +10 -0
- package/dist/components/checkbox-field.js +8 -0
- package/dist/components/checkbox.d.ts +3 -0
- package/dist/components/checkbox.js +7 -0
- package/dist/components/code.d.ts +16 -0
- package/dist/components/code.js +32 -0
- package/dist/components/color-dot.d.ts +11 -0
- package/dist/components/color-dot.js +34 -0
- package/dist/components/corner-mark.d.ts +14 -0
- package/dist/components/corner-mark.js +27 -0
- package/dist/components/date-range-field.d.ts +9 -0
- package/dist/components/date-range-field.js +9 -0
- package/dist/components/description-list.d.ts +11 -0
- package/dist/components/description-list.js +10 -0
- package/dist/components/dialog.d.ts +16 -0
- package/dist/components/dialog.js +38 -0
- package/dist/components/drag-and-drop.d.ts +60 -0
- package/dist/components/drag-and-drop.js +141 -0
- package/dist/components/dropdown-menu.d.ts +27 -0
- package/dist/components/dropdown-menu.js +44 -0
- package/dist/components/entity-avatar.d.ts +28 -0
- package/dist/components/entity-avatar.js +22 -0
- package/dist/components/entity-menu.d.ts +67 -0
- package/dist/components/entity-menu.js +74 -0
- package/dist/components/error-alert.d.ts +7 -0
- package/dist/components/error-alert.js +9 -0
- package/dist/components/event-chip.d.ts +16 -0
- package/dist/components/event-chip.js +19 -0
- package/dist/components/fab.d.ts +21 -0
- package/dist/components/fab.js +14 -0
- package/dist/components/file-drop-zone.d.ts +35 -0
- package/dist/components/file-drop-zone.js +44 -0
- package/dist/components/file-type-icon.d.ts +44 -0
- package/dist/components/file-type-icon.js +147 -0
- package/dist/components/icon-image.d.ts +10 -0
- package/dist/components/icon-image.js +11 -0
- package/dist/components/identity.d.ts +27 -0
- package/dist/components/identity.js +22 -0
- package/dist/components/inline-field.d.ts +40 -0
- package/dist/components/inline-field.js +110 -0
- package/dist/components/input.d.ts +17 -0
- package/dist/components/input.js +14 -0
- package/dist/components/item-list.d.ts +11 -0
- package/dist/components/item-list.js +15 -0
- package/dist/components/label.d.ts +3 -0
- package/dist/components/label.js +6 -0
- package/dist/components/mini-month.d.ts +15 -0
- package/dist/components/mini-month.js +35 -0
- package/dist/components/placeholder-avatar.d.ts +12 -0
- package/dist/components/placeholder-avatar.js +6 -0
- package/dist/components/popover.d.ts +7 -0
- package/dist/components/popover.js +16 -0
- package/dist/components/progress-list.d.ts +31 -0
- package/dist/components/progress-list.js +15 -0
- package/dist/components/progress-ring.d.ts +13 -0
- package/dist/components/progress-ring.js +14 -0
- package/dist/components/progress.d.ts +10 -0
- package/dist/components/progress.js +12 -0
- package/dist/components/search-box.d.ts +25 -0
- package/dist/components/search-box.js +56 -0
- package/dist/components/searchable-options.d.ts +32 -0
- package/dist/components/searchable-options.js +17 -0
- package/dist/components/section-label.d.ts +7 -0
- package/dist/components/section-label.js +8 -0
- package/dist/components/segmented-control.d.ts +21 -0
- package/dist/components/segmented-control.js +9 -0
- package/dist/components/select-menu.d.ts +38 -0
- package/dist/components/select-menu.js +26 -0
- package/dist/components/selection-bar.d.ts +17 -0
- package/dist/components/selection-bar.js +15 -0
- package/dist/components/separator.d.ts +3 -0
- package/dist/components/separator.js +6 -0
- package/dist/components/share-dialog.d.ts +63 -0
- package/dist/components/share-dialog.js +74 -0
- package/dist/components/sheet.d.ts +20 -0
- package/dist/components/sheet.js +24 -0
- package/dist/components/skeleton.d.ts +2 -0
- package/dist/components/skeleton.js +5 -0
- package/dist/components/spinner.d.ts +3 -0
- package/dist/components/spinner.js +8 -0
- package/dist/components/table.d.ts +7 -0
- package/dist/components/table.js +20 -0
- package/dist/components/text-link.d.ts +9 -0
- package/dist/components/text-link.js +9 -0
- package/dist/components/text.d.ts +13 -0
- package/dist/components/text.js +8 -0
- package/dist/components/toaster.d.ts +8 -0
- package/dist/components/toaster.js +27 -0
- package/dist/components/viewer-dialog.d.ts +37 -0
- package/dist/components/viewer-dialog.js +53 -0
- package/dist/index.d.ts +87 -0
- package/dist/index.js +87 -0
- package/dist/layout/app-frame.d.ts +42 -0
- package/dist/layout/app-frame.js +62 -0
- package/dist/layout/app-shell.d.ts +11 -0
- package/dist/layout/app-shell.js +7 -0
- package/dist/layout/document-title.d.ts +14 -0
- package/dist/layout/document-title.js +39 -0
- package/dist/layout/empty-state.d.ts +16 -0
- package/dist/layout/empty-state.js +19 -0
- package/dist/layout/entity-header.d.ts +14 -0
- package/dist/layout/entity-header.js +6 -0
- package/dist/layout/form-field.d.ts +10 -0
- package/dist/layout/form-field.js +9 -0
- package/dist/layout/form-grid.d.ts +6 -0
- package/dist/layout/form-grid.js +9 -0
- package/dist/layout/full-page-message.d.ts +10 -0
- package/dist/layout/full-page-message.js +5 -0
- package/dist/layout/full-page-surface.d.ts +12 -0
- package/dist/layout/full-page-surface.js +8 -0
- package/dist/layout/month-grid.d.ts +31 -0
- package/dist/layout/month-grid.js +12 -0
- package/dist/layout/page-header.d.ts +14 -0
- package/dist/layout/page-header.js +11 -0
- package/dist/layout/panel.d.ts +15 -0
- package/dist/layout/panel.js +12 -0
- package/dist/layout/retry-message.d.ts +8 -0
- package/dist/layout/retry-message.js +9 -0
- package/dist/layout/route-error-message.d.ts +9 -0
- package/dist/layout/route-error-message.js +9 -0
- package/dist/layout/row-list.d.ts +87 -0
- package/dist/layout/row-list.js +67 -0
- package/dist/layout/settings-section.d.ts +14 -0
- package/dist/layout/settings-section.js +11 -0
- package/dist/layout/sidebar-nav.d.ts +79 -0
- package/dist/layout/sidebar-nav.js +59 -0
- package/dist/layout/sign-in-layout.d.ts +19 -0
- package/dist/layout/sign-in-layout.js +11 -0
- package/dist/layout/sortable-row-list.d.ts +27 -0
- package/dist/layout/sortable-row-list.js +61 -0
- package/dist/layout/stack.d.ts +41 -0
- package/dist/layout/stack.js +51 -0
- package/dist/layout/tile-grid.d.ts +75 -0
- package/dist/layout/tile-grid.js +71 -0
- package/dist/layout/time-grid.d.ts +40 -0
- package/dist/layout/time-grid.js +63 -0
- package/dist/layout/use-favicon.d.ts +5 -0
- package/dist/layout/use-favicon.js +20 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/cn.js +5 -0
- package/dist/lib/initials.d.ts +2 -0
- package/dist/lib/initials.js +7 -0
- package/dist/mascot/mascot.d.ts +23 -0
- package/dist/mascot/mascot.definition.json +14 -0
- package/dist/mascot/mascot.js +49 -0
- package/dist/mascot/use-thinking-motion.d.ts +8 -0
- package/dist/mascot/use-thinking-motion.js +68 -0
- package/dist/styles.css +385 -0
- package/dist/vite/ismou-favicon.plugin.d.ts +10 -0
- package/dist/vite/ismou-favicon.plugin.js +67 -0
- package/dist/vite/phosphor-icons.plugin.d.ts +8 -0
- package/dist/vite/phosphor-icons.plugin.js +61 -0
- package/package.json +98 -3
package/README.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ismou-workspace/ui
|
|
2
2
|
|
|
3
|
-
|
|
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)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/** The palette of styles.css. An app's primary is one of them (`data-primary`). */
|
|
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';
|
|
10
|
+
/** The apps that have a brand mark (icon + favicon). */
|
|
11
|
+
export type AppBrand = GlyphAppBrand | LogoAppBrand;
|
|
12
|
+
interface AppBrandBase {
|
|
13
|
+
/** Name of the mark, used as the favicon's title. */
|
|
14
|
+
title: string;
|
|
15
|
+
/** The app's primary colour: its accent, and the paint of a glyph mark. */
|
|
16
|
+
primary: PaletteColor;
|
|
17
|
+
}
|
|
18
|
+
export interface GlyphBrandDefinition extends AppBrandBase {
|
|
19
|
+
/**
|
|
20
|
+
* The glyph as SVG markup on a 24px grid, drawn in white: it is used as a mask, so the painted
|
|
21
|
+
* grain shows only where the glyph is.
|
|
22
|
+
*/
|
|
23
|
+
glyph: string;
|
|
24
|
+
/**
|
|
25
|
+
* Shapes painted plain white over the textured glyph, e.g. in its cut-outs (SVG markup on the
|
|
26
|
+
* same grid): parts of the mark that read as paper rather than colour.
|
|
27
|
+
*/
|
|
28
|
+
inlay?: string;
|
|
29
|
+
}
|
|
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>>;
|
|
39
|
+
/**
|
|
40
|
+
* The two ends of each palette colour's texture gradient, in hex for SVG files (favicons).
|
|
41
|
+
* They match the `--<colour>-light` and `--<colour>-dark` tokens of styles.css.
|
|
42
|
+
*/
|
|
43
|
+
export declare const PALETTE_TEXTURE_HEX: Readonly<Record<PaletteColor, {
|
|
44
|
+
light: string;
|
|
45
|
+
dark: string;
|
|
46
|
+
}>>;
|
|
47
|
+
/**
|
|
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.
|
|
57
|
+
*/
|
|
58
|
+
export declare function appFaviconSvg(brand: AppBrand): string;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The core's mark: a capital A without its crossbar (a Λ), legs 4.5 units thick. Every corner
|
|
3
|
+
* is rounded (quadratic corners): the apex generously, the feet like our controls, the inner
|
|
4
|
+
* notch barely, so the shape stays soft yet crisp at 16px.
|
|
5
|
+
*/
|
|
6
|
+
const CORE_GLYPH = '<path fill="#fff" d="M10.77 4.12Q12 1.6 13.23 4.12L20.99 19.99Q21.6 21.25 20.2 21.25L17.5 21.25Q16.6 21.25 16.2 20.45L12.4 12.88Q12 12.08 11.6 12.88L7.8 20.45Q7.4 21.25 6.5 21.25L3.8 21.25Q2.4 21.25 3.01 19.99Z"/>';
|
|
7
|
+
/** The contacts app's mark: a person (round head, shoulders), one solid silhouette. */
|
|
8
|
+
const CONTACT_GLYPH = '<circle fill="#fff" cx="12" cy="7" r="4.5"/>' +
|
|
9
|
+
'<path fill="#fff" d="M5 21.5A1.75 1.75 0 0 1 3.25 19.75C3.25 15.6 7.15 13.25 12 13.25S20.75 15.6 20.75 19.75A1.75 1.75 0 0 1 19 21.5Z"/>';
|
|
10
|
+
/**
|
|
11
|
+
* The account mark: a key, its round bow pierced (even-odd) and its blade carrying two teeth,
|
|
12
|
+
* every corner rounded like the other glyphs. Drawn level, then turned 35° so the blade rises
|
|
13
|
+
* to the right, and nudged back to the centre of the grid.
|
|
14
|
+
*/
|
|
15
|
+
const ACCOUNT_GLYPH = '<g transform="translate(0.3 -0.5) rotate(-35 12 12)">' +
|
|
16
|
+
'<path fill="#fff" fill-rule="evenodd" d="M7.5 6.5A5.5 5.5 0 1 0 7.5 17.5A5.5 5.5 0 1 0 7.5 6.5ZM7.5 10A2 2 0 1 1 7.5 14A2 2 0 1 1 7.5 10Z"/>' +
|
|
17
|
+
'<path fill="#fff" d="M11.5 10.4L20.9 10.4Q22 10.4 22 11.5L22 15.4Q22 16.5 20.9 16.5L20.1 16.5Q19 16.5 19 15.4L19 13.6L18 13.6L18 16.9Q18 18 16.9 18L16.1 18Q15 18 15 16.9L15 13.6L11.5 13.6Z"/>' +
|
|
18
|
+
'</g>';
|
|
19
|
+
/** The drive mark: a folder, its tab on the top-left, one solid silhouette. */
|
|
20
|
+
const DRIVE_GLYPH = '<path fill="#fff" d="M4.25 4.5L8.6 4.5Q9.4 4.5 9.9 5.1L11.2 6.6Q11.6 7 12.2 7L19.75 7Q21.5 7 21.5 8.75L21.5 17.75Q21.5 19.5 19.75 19.5L4.25 19.5Q2.5 19.5 2.5 17.75L2.5 6.25Q2.5 4.5 4.25 4.5Z"/>';
|
|
21
|
+
/** The five days of the calendar's page: cut out of its glyph, painted white over it. */
|
|
22
|
+
const CALENDAR_DAYS = 'M6.1 11L7.9 11Q8.5 11 8.5 11.6L8.5 13.4Q8.5 14 7.9 14L6.1 14Q5.5 14 5.5 13.4L5.5 11.6Q5.5 11 6.1 11ZM11.1 11L12.9 11Q13.5 11 13.5 11.6L13.5 13.4Q13.5 14 12.9 14L11.1 14Q10.5 14 10.5 13.4L10.5 11.6Q10.5 11 11.1 11ZM16.1 11L17.9 11Q18.5 11 18.5 11.6L18.5 13.4Q18.5 14 17.9 14L16.1 14Q15.5 14 15.5 13.4L15.5 11.6Q15.5 11 16.1 11ZM6.1 15.5L7.9 15.5Q8.5 15.5 8.5 16.1L8.5 17.9Q8.5 18.5 7.9 18.5L6.1 18.5Q5.5 18.5 5.5 17.9L5.5 16.1Q5.5 15.5 6.1 15.5ZM11.1 15.5L12.9 15.5Q13.5 15.5 13.5 16.1L13.5 17.9Q13.5 18.5 12.9 18.5L11.1 18.5Q10.5 18.5 10.5 17.9L10.5 16.1Q10.5 15.5 11.1 15.5Z';
|
|
23
|
+
/**
|
|
24
|
+
* The calendar mark: a page with its two rings, five days cut out of it (even-odd) and painted
|
|
25
|
+
* white (its inlay), corners rounded like the other glyphs.
|
|
26
|
+
*/
|
|
27
|
+
const CALENDAR_GLYPH = `<path fill="#fff" fill-rule="evenodd" d="M5.5 5L18.5 5Q21 5 21 7.5L21 18.5Q21 21 18.5 21L5.5 21Q3 21 3 18.5L3 7.5Q3 5 5.5 5Z${CALENDAR_DAYS}"/>` +
|
|
28
|
+
'<rect fill="#fff" x="6.75" y="1.75" width="2.5" height="5.5" rx="1.25"/>' +
|
|
29
|
+
'<rect fill="#fff" x="14.75" y="1.75" width="2.5" height="5.5" rx="1.25"/>';
|
|
30
|
+
/**
|
|
31
|
+
* The ONLYOFFICE logo (Office embeds its editors): three stacked layers, blue, green, orange.
|
|
32
|
+
* From selfhst/icons (`svg/onlyoffice.svg`).
|
|
33
|
+
*/
|
|
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"/>';
|
|
37
|
+
/**
|
|
38
|
+
* The Google "G" (the Google bridge), its four colours blended into one another.
|
|
39
|
+
* From selfhst/icons (`svg/google.svg`).
|
|
40
|
+
*/
|
|
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)"/>';
|
|
48
|
+
/**
|
|
49
|
+
* The administration mark: an eight-tooth cog with a round hub hole (even-odd), teeth rounded
|
|
50
|
+
* like the other glyphs. Same visual weight as the Λ and the person.
|
|
51
|
+
*/
|
|
52
|
+
const ADMIN_GLYPH = '<path fill="#fff" fill-rule="evenodd" d="M9.7 4.75Q10.35 4.48 10.4 3.78L10.5 2.5Q10.55 1.8 11.25 1.8L12.75 1.8Q13.45 1.8 13.5 2.5L13.6 3.78Q13.65 4.48 14.3 4.75A7.7 7.7 0 0 1 15.5 5.25Q16.15 5.51 16.68 5.06L17.65 4.22Q18.18 3.76 18.68 4.26L19.74 5.32Q20.24 5.82 19.78 6.35L18.94 7.32Q18.49 7.85 18.75 8.5A7.7 7.7 0 0 1 19.25 9.7Q19.52 10.35 20.22 10.4L21.5 10.5Q22.2 10.55 22.2 11.25L22.2 12.75Q22.2 13.45 21.5 13.5L20.22 13.6Q19.52 13.65 19.25 14.3A7.7 7.7 0 0 1 18.75 15.5Q18.49 16.15 18.94 16.68L19.78 17.65Q20.24 18.18 19.74 18.68L18.68 19.74Q18.18 20.24 17.65 19.78L16.68 18.94Q16.15 18.49 15.5 18.75A7.7 7.7 0 0 1 14.3 19.25Q13.65 19.52 13.6 20.22L13.5 21.5Q13.45 22.2 12.75 22.2L11.25 22.2Q10.55 22.2 10.5 21.5L10.4 20.22Q10.35 19.52 9.7 19.25A7.7 7.7 0 0 1 8.5 18.75Q7.85 18.49 7.32 18.94L6.35 19.78Q5.82 20.24 5.32 19.74L4.26 18.68Q3.76 18.18 4.22 17.65L5.06 16.68Q5.51 16.15 5.25 15.5A7.7 7.7 0 0 1 4.75 14.3Q4.48 13.65 3.78 13.6L2.5 13.5Q1.8 13.45 1.8 12.75L1.8 11.25Q1.8 10.55 2.5 10.5L3.78 10.4Q4.48 10.35 4.75 9.7A7.7 7.7 0 0 1 5.25 8.5Q5.51 7.85 5.06 7.32L4.22 6.35Q3.76 5.82 4.26 5.32L5.32 4.26Q5.82 3.76 6.35 4.22L7.32 5.06Q7.85 5.51 8.5 5.25A7.7 7.7 0 0 1 9.7 4.75ZM15.2 12A3.2 3.2 0 1 0 8.8 12A3.2 3.2 0 1 0 15.2 12Z"/>';
|
|
53
|
+
export const APP_BRANDS = {
|
|
54
|
+
core: { title: 'Ismou', primary: 'blue', glyph: CORE_GLYPH },
|
|
55
|
+
account: { title: 'Account', primary: 'orange', glyph: ACCOUNT_GLYPH },
|
|
56
|
+
contacts: { title: 'Contacts', primary: 'green', glyph: CONTACT_GLYPH },
|
|
57
|
+
drive: { title: 'Drive', primary: 'blue', glyph: DRIVE_GLYPH },
|
|
58
|
+
calendar: {
|
|
59
|
+
title: 'Calendar',
|
|
60
|
+
primary: 'cyan',
|
|
61
|
+
glyph: CALENDAR_GLYPH,
|
|
62
|
+
inlay: `<path fill="#fff" d="${CALENDAR_DAYS}"/>`,
|
|
63
|
+
},
|
|
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
|
+
},
|
|
74
|
+
admin: { title: 'Administration', primary: 'red', glyph: ADMIN_GLYPH },
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* The two ends of each palette colour's texture gradient, in hex for SVG files (favicons).
|
|
78
|
+
* They match the `--<colour>-light` and `--<colour>-dark` tokens of styles.css.
|
|
79
|
+
*/
|
|
80
|
+
export const PALETTE_TEXTURE_HEX = {
|
|
81
|
+
blue: { light: '#3774d4', dark: '#2751b8' },
|
|
82
|
+
cyan: { light: '#2ba1a7', dark: '#007e8f' },
|
|
83
|
+
green: { light: '#459b61', dark: '#187549' },
|
|
84
|
+
violet: { light: '#7f67c5', dark: '#6542a3' },
|
|
85
|
+
yellow: { light: '#eec96c', dark: '#d5a13c' },
|
|
86
|
+
orange: { light: '#e4914e', dark: '#cb6620' },
|
|
87
|
+
red: { light: '#de3c37', dark: '#bb081a' },
|
|
88
|
+
};
|
|
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
|
+
*/
|
|
93
|
+
export function appGlyphSvg(brand) {
|
|
94
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">${APP_BRANDS[brand].glyph}</svg>`;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
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.
|
|
101
|
+
*/
|
|
102
|
+
export function appFaviconSvg(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;
|
|
109
|
+
const { light, dark } = PALETTE_TEXTURE_HEX[primary];
|
|
110
|
+
return [
|
|
111
|
+
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64">',
|
|
112
|
+
`<title>${title}</title>`,
|
|
113
|
+
'<defs>',
|
|
114
|
+
`<mask id="glyph" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">${glyph}</mask>`,
|
|
115
|
+
'<linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1">',
|
|
116
|
+
`<stop offset="0" stop-color="${light}"/><stop offset="1" stop-color="${dark}"/>`,
|
|
117
|
+
'</linearGradient>',
|
|
118
|
+
'<filter id="grain" x="0" y="0" width="100%" height="100%">',
|
|
119
|
+
'<feTurbulence type="fractalNoise" baseFrequency="1.6" numOctaves="2" seed="7" stitchTiles="stitch"/>',
|
|
120
|
+
'<feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0"/>',
|
|
121
|
+
'</filter>',
|
|
122
|
+
'</defs>',
|
|
123
|
+
'<g mask="url(#glyph)">',
|
|
124
|
+
'<rect width="24" height="24" fill="url(#fill)"/>',
|
|
125
|
+
'<rect width="24" height="24" filter="url(#grain)" opacity="0.45" style="mix-blend-mode:overlay"/>',
|
|
126
|
+
'</g>',
|
|
127
|
+
inlay ?? '',
|
|
128
|
+
'</svg>',
|
|
129
|
+
].join('');
|
|
130
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import type * as React from 'react';
|
|
3
|
+
import { type AppBrand } from './app-brands.ts';
|
|
4
|
+
export declare const appIconVariants: (props?: ({
|
|
5
|
+
size?: "inline" | "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export type AppIconSize = NonNullable<VariantProps<typeof appIconVariants>['size']>;
|
|
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, admin red; office and google show their product's logo). */
|
|
10
|
+
brand: AppBrand;
|
|
11
|
+
/** Accessible name, e.g. the app name. Omit when the name is printed next to the icon. */
|
|
12
|
+
label?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* An app's logo, as an image: exactly the SVG served as its favicon and at its icon URL (app
|
|
16
|
+
* switchers show that URL), so the mark looks the same in the sidebar, the switcher and the
|
|
17
|
+
* browser tab.
|
|
18
|
+
*/
|
|
19
|
+
export declare function AppIcon({ brand, size, label, className, ...props }: AppIconProps): React.JSX.Element;
|
|
20
|
+
export type BrandAppIconProps = Omit<AppIconProps, 'brand'>;
|
|
21
|
+
/** The core's logo: a blue grain Λ. */
|
|
22
|
+
export declare function CoreAppIcon(props: BrandAppIconProps): React.JSX.Element;
|
|
23
|
+
/** The Account interface's logo: an orange grain key. */
|
|
24
|
+
export declare function AccountAppIcon(props: BrandAppIconProps): React.JSX.Element;
|
|
25
|
+
/** The drive app's logo: a blue grain folder. */
|
|
26
|
+
export declare function DriveAppIcon(props: BrandAppIconProps): React.JSX.Element;
|
|
27
|
+
/** The calendar app's logo: a cyan grain calendar page. */
|
|
28
|
+
export declare function CalendarAppIcon(props: BrandAppIconProps): React.JSX.Element;
|
|
29
|
+
/** The contacts app's logo: a green grain person. */
|
|
30
|
+
export declare function ContactsAppIcon(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
|
+
/** The administration logo: a red grain cog. */
|
|
34
|
+
export declare function AdminAppIcon(props: BrandAppIconProps): React.JSX.Element;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cn } from '../lib/cn.js';
|
|
4
|
+
import { APP_BRANDS, appFaviconSvg } from './app-brands.js';
|
|
5
|
+
export const appIconVariants = cva('inline-block shrink-0 select-none', {
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
/** Inside a sentence of small text. */
|
|
9
|
+
inline: 'size-3.5',
|
|
10
|
+
/** Inline with text: a log row, a menu item. */
|
|
11
|
+
xs: 'size-5',
|
|
12
|
+
sm: 'size-6',
|
|
13
|
+
md: 'size-8',
|
|
14
|
+
lg: 'size-12',
|
|
15
|
+
xl: 'size-16',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: { size: 'md' },
|
|
19
|
+
});
|
|
20
|
+
/** Data URLs of the brand images, built once per brand. */
|
|
21
|
+
const iconUrls = new Map();
|
|
22
|
+
function appIconUrl(brand) {
|
|
23
|
+
let url = iconUrls.get(brand);
|
|
24
|
+
if (!url) {
|
|
25
|
+
url = `data:image/svg+xml,${encodeURIComponent(appFaviconSvg(brand))}`;
|
|
26
|
+
iconUrls.set(brand, url);
|
|
27
|
+
}
|
|
28
|
+
return url;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* An app's logo, as an image: exactly the SVG served as its favicon and at its icon URL (app
|
|
32
|
+
* switchers show that URL), so the mark looks the same in the sidebar, the switcher and the
|
|
33
|
+
* browser tab.
|
|
34
|
+
*/
|
|
35
|
+
export function AppIcon({ brand, size, label, className, ...props }) {
|
|
36
|
+
return (_jsx("img", { "data-slot": "app-icon", "data-brand": brand, "data-size": size ?? 'md', "data-primary": APP_BRANDS[brand].primary, src: appIconUrl(brand), alt: label ?? '', "aria-hidden": label ? undefined : true, draggable: false, className: cn(appIconVariants({ size }), className), ...props }));
|
|
37
|
+
}
|
|
38
|
+
/** The core's logo: a blue grain Λ. */
|
|
39
|
+
export function CoreAppIcon(props) {
|
|
40
|
+
return _jsx(AppIcon, { brand: "core", ...props });
|
|
41
|
+
}
|
|
42
|
+
/** The Account interface's logo: an orange grain key. */
|
|
43
|
+
export function AccountAppIcon(props) {
|
|
44
|
+
return _jsx(AppIcon, { brand: "account", ...props });
|
|
45
|
+
}
|
|
46
|
+
/** The drive app's logo: a blue grain folder. */
|
|
47
|
+
export function DriveAppIcon(props) {
|
|
48
|
+
return _jsx(AppIcon, { brand: "drive", ...props });
|
|
49
|
+
}
|
|
50
|
+
/** The calendar app's logo: a cyan grain calendar page. */
|
|
51
|
+
export function CalendarAppIcon(props) {
|
|
52
|
+
return _jsx(AppIcon, { brand: "calendar", ...props });
|
|
53
|
+
}
|
|
54
|
+
/** The contacts app's logo: a green grain person. */
|
|
55
|
+
export function ContactsAppIcon(props) {
|
|
56
|
+
return _jsx(AppIcon, { brand: "contacts", ...props });
|
|
57
|
+
}
|
|
58
|
+
/** The Google bridge's logo: Google's own "G". */
|
|
59
|
+
export function GoogleAppIcon(props) {
|
|
60
|
+
return _jsx(AppIcon, { brand: "google", ...props });
|
|
61
|
+
}
|
|
62
|
+
/** The administration logo: a red grain cog. */
|
|
63
|
+
export function AdminAppIcon(props) {
|
|
64
|
+
return _jsx(AppIcon, { brand: "admin", ...props });
|
|
65
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const appLogoVariants: (props?: ({
|
|
3
|
+
size?: "inline" | "lg" | "md" | "xs" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
export interface AppLogoProps extends VariantProps<typeof appLogoVariants> {
|
|
6
|
+
/** Where the app serves its icon; without one (an app not running yet), its initial shows. */
|
|
7
|
+
src?: string | null;
|
|
8
|
+
/** The app's name: its initial stands in when the icon can't be loaded. */
|
|
9
|
+
name: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/** An enrolled app's own icon, or a quiet tile with its initial when the app can't serve it. */
|
|
13
|
+
export declare function AppLogo({ src, name, size, className }: AppLogoProps): import("react").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { useState } from 'react';
|
|
4
|
+
import { cn } from '../lib/cn.js';
|
|
5
|
+
const appLogoVariants = cva('flex shrink-0 select-none items-center justify-center', {
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
/** Inside a sentence of small text. */
|
|
9
|
+
inline: 'size-3.5 rounded-sm text-xs',
|
|
10
|
+
/** Inline with text: a log row, a menu item. */
|
|
11
|
+
xs: 'size-5 rounded-md text-xs',
|
|
12
|
+
/** A row of a list. */
|
|
13
|
+
md: 'size-11 rounded-xl text-lg',
|
|
14
|
+
/** A review header. */
|
|
15
|
+
lg: 'size-14 rounded-xl text-2xl',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: { size: 'md' },
|
|
19
|
+
});
|
|
20
|
+
/** An enrolled app's own icon, or a quiet tile with its initial when the app can't serve it. */
|
|
21
|
+
export function AppLogo({ src, name, size, className }) {
|
|
22
|
+
const [failed, setFailed] = useState(false);
|
|
23
|
+
if (src && !failed) {
|
|
24
|
+
return (_jsx("img", { src: src, alt: "", draggable: false, onError: () => setFailed(true), "data-slot": "app-logo", className: cn(appLogoVariants({ size }), className) }));
|
|
25
|
+
}
|
|
26
|
+
return (_jsx("span", { "aria-hidden": true, "data-slot": "app-logo", className: cn(appLogoVariants({ size }), 'bg-muted font-semibold text-secondary-foreground tracking-tight', className), children: name.trim().charAt(0).toUpperCase() || '?' }));
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Account</title><defs><mask id="glyph" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><g transform="translate(0.3 -0.5) rotate(-35 12 12)"><path fill="#fff" fill-rule="evenodd" d="M7.5 6.5A5.5 5.5 0 1 0 7.5 17.5A5.5 5.5 0 1 0 7.5 6.5ZM7.5 10A2 2 0 1 1 7.5 14A2 2 0 1 1 7.5 10Z"/><path fill="#fff" d="M11.5 10.4L20.9 10.4Q22 10.4 22 11.5L22 15.4Q22 16.5 20.9 16.5L20.1 16.5Q19 16.5 19 15.4L19 13.6L18 13.6L18 16.9Q18 18 16.9 18L16.1 18Q15 18 15 16.9L15 13.6L11.5 13.6Z"/></g></mask><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#e4914e"/><stop offset="1" stop-color="#cb6620"/></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>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Administration</title><defs><mask id="glyph" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><path fill="#fff" fill-rule="evenodd" d="M9.7 4.75Q10.35 4.48 10.4 3.78L10.5 2.5Q10.55 1.8 11.25 1.8L12.75 1.8Q13.45 1.8 13.5 2.5L13.6 3.78Q13.65 4.48 14.3 4.75A7.7 7.7 0 0 1 15.5 5.25Q16.15 5.51 16.68 5.06L17.65 4.22Q18.18 3.76 18.68 4.26L19.74 5.32Q20.24 5.82 19.78 6.35L18.94 7.32Q18.49 7.85 18.75 8.5A7.7 7.7 0 0 1 19.25 9.7Q19.52 10.35 20.22 10.4L21.5 10.5Q22.2 10.55 22.2 11.25L22.2 12.75Q22.2 13.45 21.5 13.5L20.22 13.6Q19.52 13.65 19.25 14.3A7.7 7.7 0 0 1 18.75 15.5Q18.49 16.15 18.94 16.68L19.78 17.65Q20.24 18.18 19.74 18.68L18.68 19.74Q18.18 20.24 17.65 19.78L16.68 18.94Q16.15 18.49 15.5 18.75A7.7 7.7 0 0 1 14.3 19.25Q13.65 19.52 13.6 20.22L13.5 21.5Q13.45 22.2 12.75 22.2L11.25 22.2Q10.55 22.2 10.5 21.5L10.4 20.22Q10.35 19.52 9.7 19.25A7.7 7.7 0 0 1 8.5 18.75Q7.85 18.49 7.32 18.94L6.35 19.78Q5.82 20.24 5.32 19.74L4.26 18.68Q3.76 18.18 4.22 17.65L5.06 16.68Q5.51 16.15 5.25 15.5A7.7 7.7 0 0 1 4.75 14.3Q4.48 13.65 3.78 13.6L2.5 13.5Q1.8 13.45 1.8 12.75L1.8 11.25Q1.8 10.55 2.5 10.5L3.78 10.4Q4.48 10.35 4.75 9.7A7.7 7.7 0 0 1 5.25 8.5Q5.51 7.85 5.06 7.32L4.22 6.35Q3.76 5.82 4.26 5.32L5.32 4.26Q5.82 3.76 6.35 4.22L7.32 5.06Q7.85 5.51 8.5 5.25A7.7 7.7 0 0 1 9.7 4.75ZM15.2 12A3.2 3.2 0 1 0 8.8 12A3.2 3.2 0 1 0 15.2 12Z"/></mask><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#de3c37"/><stop offset="1" stop-color="#bb081a"/></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>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Calendar</title><defs><mask id="glyph" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><path fill="#fff" fill-rule="evenodd" d="M5.5 5L18.5 5Q21 5 21 7.5L21 18.5Q21 21 18.5 21L5.5 21Q3 21 3 18.5L3 7.5Q3 5 5.5 5ZM6.1 11L7.9 11Q8.5 11 8.5 11.6L8.5 13.4Q8.5 14 7.9 14L6.1 14Q5.5 14 5.5 13.4L5.5 11.6Q5.5 11 6.1 11ZM11.1 11L12.9 11Q13.5 11 13.5 11.6L13.5 13.4Q13.5 14 12.9 14L11.1 14Q10.5 14 10.5 13.4L10.5 11.6Q10.5 11 11.1 11ZM16.1 11L17.9 11Q18.5 11 18.5 11.6L18.5 13.4Q18.5 14 17.9 14L16.1 14Q15.5 14 15.5 13.4L15.5 11.6Q15.5 11 16.1 11ZM6.1 15.5L7.9 15.5Q8.5 15.5 8.5 16.1L8.5 17.9Q8.5 18.5 7.9 18.5L6.1 18.5Q5.5 18.5 5.5 17.9L5.5 16.1Q5.5 15.5 6.1 15.5ZM11.1 15.5L12.9 15.5Q13.5 15.5 13.5 16.1L13.5 17.9Q13.5 18.5 12.9 18.5L11.1 18.5Q10.5 18.5 10.5 17.9L10.5 16.1Q10.5 15.5 11.1 15.5Z"/><rect fill="#fff" x="6.75" y="1.75" width="2.5" height="5.5" rx="1.25"/><rect fill="#fff" x="14.75" y="1.75" width="2.5" height="5.5" rx="1.25"/></mask><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#2ba1a7"/><stop offset="1" stop-color="#007e8f"/></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><path fill="#fff" d="M6.1 11L7.9 11Q8.5 11 8.5 11.6L8.5 13.4Q8.5 14 7.9 14L6.1 14Q5.5 14 5.5 13.4L5.5 11.6Q5.5 11 6.1 11ZM11.1 11L12.9 11Q13.5 11 13.5 11.6L13.5 13.4Q13.5 14 12.9 14L11.1 14Q10.5 14 10.5 13.4L10.5 11.6Q10.5 11 11.1 11ZM16.1 11L17.9 11Q18.5 11 18.5 11.6L18.5 13.4Q18.5 14 17.9 14L16.1 14Q15.5 14 15.5 13.4L15.5 11.6Q15.5 11 16.1 11ZM6.1 15.5L7.9 15.5Q8.5 15.5 8.5 16.1L8.5 17.9Q8.5 18.5 7.9 18.5L6.1 18.5Q5.5 18.5 5.5 17.9L5.5 16.1Q5.5 15.5 6.1 15.5ZM11.1 15.5L12.9 15.5Q13.5 15.5 13.5 16.1L13.5 17.9Q13.5 18.5 12.9 18.5L11.1 18.5Q10.5 18.5 10.5 17.9L10.5 16.1Q10.5 15.5 11.1 15.5Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Contacts</title><defs><mask id="glyph" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><circle fill="#fff" cx="12" cy="7" r="4.5"/><path fill="#fff" d="M5 21.5A1.75 1.75 0 0 1 3.25 19.75C3.25 15.6 7.15 13.25 12 13.25S20.75 15.6 20.75 19.75A1.75 1.75 0 0 1 19 21.5Z"/></mask><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#459b61"/><stop offset="1" stop-color="#187549"/></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>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Ismou</title><defs><mask id="glyph" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><path fill="#fff" d="M10.77 4.12Q12 1.6 13.23 4.12L20.99 19.99Q21.6 21.25 20.2 21.25L17.5 21.25Q16.6 21.25 16.2 20.45L12.4 12.88Q12 12.08 11.6 12.88L7.8 20.45Q7.4 21.25 6.5 21.25L3.8 21.25Q2.4 21.25 3.01 19.99Z"/></mask><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#3774d4"/><stop offset="1" stop-color="#2751b8"/></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>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Drive</title><defs><mask id="glyph" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><path fill="#fff" d="M4.25 4.5L8.6 4.5Q9.4 4.5 9.9 5.1L11.2 6.6Q11.6 7 12.2 7L19.75 7Q21.5 7 21.5 8.75L21.5 17.75Q21.5 19.5 19.75 19.5L4.25 19.5Q2.5 19.5 2.5 17.75L2.5 6.25Q2.5 4.5 4.25 4.5Z"/></mask><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#3774d4"/><stop offset="1" stop-color="#2751b8"/></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>
|
|
@@ -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>
|
|
@@ -0,0 +1 @@
|
|
|
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>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Archive</title><defs><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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><rect fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" x="5.5" y="6.5" width="13" height="3.5" rx="1"/><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M6.5 10V16.25Q6.5 17.5 7.75 17.5H16.25Q17.5 17.5 17.5 16.25V10M10.5 13H13.5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Audio</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#e4914e"/><stop offset="1" stop-color="#cb6620"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M10 16.5V7.5L17 6V15"/><circle fill="#fff" cx="8.25" cy="16.5" r="1.75"/><circle fill="#fff" cx="15.25" cy="15" r="1.75"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Code</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#2ba1a7"/><stop offset="1" stop-color="#007e8f"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M9 8.5L5.5 12L9 15.5M15 8.5L18.5 12L15 15.5M13 7L11 17"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Diagram</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#2ba1a7"/><stop offset="1" stop-color="#007e8f"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><rect fill="#fff" x="9.5" y="5" width="5" height="4" rx="1"/><rect fill="#fff" x="5" y="15" width="5" height="4" rx="1"/><rect fill="#fff" x="14" y="15" width="5" height="4" rx="1"/><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M12 9V12M7.5 15V12H16.5V15"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Document</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#3774d4"/><stop offset="1" stop-color="#2751b8"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M7 7.5H17M7 10.5H17M7 13.5H17M7 16.5H13"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Form</title><defs><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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><rect fill="#fff" x="6" y="6.75" width="4" height="4" rx="1"/><rect fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" x="6.5" y="13.75" width="3.5" height="3.5" rx="0.75"/><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M12.5 8.75H18M12.5 15.5H18"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Image</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#de3c37"/><stop offset="1" stop-color="#bb081a"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><rect fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" x="5.5" y="6.5" width="13" height="11" rx="1.5"/><circle fill="#fff" cx="9.5" cy="10" r="1.25"/><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M5.75 16L10 12.25L13 14.75L14.75 13.25L18.25 16.25"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Markdown</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#8b9099"/><stop offset="1" stop-color="#5f646d"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><rect fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" x="4.5" y="7" width="15" height="10" rx="2"/><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M7.5 14.5V9.5L9.75 12L12 9.5V14.5M15.5 9.5V14.5M13.75 12.75L15.5 14.5L17.25 12.75"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>File</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#8b9099"/><stop offset="1" stop-color="#5f646d"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M13 5.5H8.75Q7.5 5.5 7.5 6.75V17.25Q7.5 18.5 8.75 18.5H15.25Q16.5 18.5 16.5 17.25V9ZM13 5.5V9H16.5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>PDF</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#de3c37"/><stop offset="1" stop-color="#bb081a"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M13 5.5H8.75Q7.5 5.5 7.5 6.75V17.25Q7.5 18.5 8.75 18.5H15.25Q16.5 18.5 16.5 17.25V9ZM13 5.5V9H16.5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Presentation</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#e4914e"/><stop offset="1" stop-color="#cb6620"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><rect fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" x="5.5" y="6" width="13" height="9" rx="1.5"/><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M12 15V18.5M9.5 18.5H14.5M9 12L11 10L12.5 11.5L15 9"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Spreadsheet</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#459b61"/><stop offset="1" stop-color="#187549"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M10 6.5V17.5M6.5 9.875H17.5M6.5 14.125H17.5"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Text</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#8b9099"/><stop offset="1" stop-color="#5f646d"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M7 7.5H17M7 10.5H14M7 13.5H17M7 16.5H12"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="64" height="64"><title>Video</title><defs><linearGradient id="fill" x1="0.3" y1="0" x2="0.7" y2="1"><stop offset="0" stop-color="#e4914e"/><stop offset="1" stop-color="#cb6620"/></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><clipPath id="tile"><rect width="24" height="24" rx="5.5"/></clipPath></defs><g clip-path="url(#tile)"><rect width="24" height="24" fill="url(#fill)"/><rect width="24" height="24" filter="url(#grain)" opacity="0.3" style="mix-blend-mode:overlay"/></g><rect fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" x="4.5" y="7.5" width="10.5" height="9" rx="1.5"/><path fill="none" stroke="#fff" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" d="M15 11L19.5 8.5V15.5L15 13Z"/></svg>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type GrainSurfaceProps = React.ComponentProps<'div'>;
|
|
3
|
+
/**
|
|
4
|
+
* The brand surface: the primary texture of the primary buttons and the app icons (the
|
|
5
|
+
* primary's light-to-dark gradient under the film grain), at its largest. Children render in
|
|
6
|
+
* white. An accent: reserve it for the sign-in painted half and similar brand moments.
|
|
7
|
+
*/
|
|
8
|
+
export declare function GrainSurface({ className, ...props }: GrainSurfaceProps): React.JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from '../lib/cn.js';
|
|
3
|
+
/**
|
|
4
|
+
* The brand surface: the primary texture of the primary buttons and the app icons (the
|
|
5
|
+
* primary's light-to-dark gradient under the film grain), at its largest. Children render in
|
|
6
|
+
* white. An accent: reserve it for the sign-in painted half and similar brand moments.
|
|
7
|
+
*/
|
|
8
|
+
export function GrainSurface({ className, ...props }) {
|
|
9
|
+
return (_jsx("div", { "data-slot": "grain-surface", className: cn('primary-texture text-white', className), ...props }));
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kinds of files that have an icon of their own: what an app handling them (an editor, a
|
|
3
|
+
* previewer) shows next to its actions ("Open with Office", "New spreadsheet").
|
|
4
|
+
*/
|
|
5
|
+
export declare const FILE_KINDS: readonly ['document', 'spreadsheet', 'presentation', 'form', 'pdf', 'markdown', 'diagram'];
|
|
6
|
+
export type FileKind = (typeof FILE_KINDS)[number];
|
|
7
|
+
/**
|
|
8
|
+
* Every file icon: the kinds apps serve, then what `FileTypeIcon` draws by itself (the
|
|
9
|
+
* categories of files no app handles). Both sets share the same look, drawn by `fileIconSvg`; a
|
|
10
|
+
* folder is the drive's own mark (`favicons/drive.svg`).
|
|
11
|
+
*/
|
|
12
|
+
export declare const FILE_ICONS: readonly ["document", "spreadsheet", "presentation", "form", "pdf", "markdown", "diagram", "image", "video", "audio", "archive", "code", "text", "other"];
|
|
13
|
+
export type FileIcon = (typeof FILE_ICONS)[number];
|
|
14
|
+
export interface FileIconDefinition {
|
|
15
|
+
/** Name of the icon, as its title. */
|
|
16
|
+
title: string;
|
|
17
|
+
/** The two ends of its gradient, light then dark. */
|
|
18
|
+
colors: {
|
|
19
|
+
light: string;
|
|
20
|
+
dark: string;
|
|
21
|
+
};
|
|
22
|
+
/** The glyph as SVG markup on a 24px grid, drawn in white over the colour. */
|
|
23
|
+
glyph: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const FILE_ICON_DEFINITIONS: Readonly<Record<FileIcon, FileIconDefinition>>;
|
|
26
|
+
/** The icons of the kinds apps serve: the same as `FILE_ICON_DEFINITIONS`, for those only. */
|
|
27
|
+
export declare const FILE_KIND_ICONS: Readonly<Record<FileKind, FileIconDefinition>>;
|
|
28
|
+
export declare function isFileKind(value: string): value is FileKind;
|
|
29
|
+
/**
|
|
30
|
+
* A file icon, as an SVG document: a rounded square in its colour (its gradient under the same
|
|
31
|
+
* quiet grain as the app marks), its white glyph over it. Those `FileTypeIcon` draws by itself
|
|
32
|
+
* are shipped as files in `brand/file-icons/`, kept in sync with this by a test.
|
|
33
|
+
*/
|
|
34
|
+
export declare function fileIconSvg(icon: FileIcon): string;
|
|
35
|
+
/** A kind's icon, as an app serves it (`/icons/<kind>.svg`). */
|
|
36
|
+
export declare function kindIconSvg(kind: FileKind): string;
|