@moni-labs/moni-ui 0.2.0 → 0.3.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.
- package/README.md +52 -194
- package/custom-elements.json +1636 -350
- package/dist/actions/index.d.ts +6 -0
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/index.js +6 -0
- package/dist/components/_base/field-styles.d.ts +51 -16
- package/dist/components/_base/field-styles.d.ts.map +1 -1
- package/dist/components/_base/field-styles.js +164 -36
- package/dist/components/_base/index.d.ts +25 -0
- package/dist/components/_base/index.d.ts.map +1 -1
- package/dist/components/_base/index.js +25 -0
- package/dist/components/_base/interaction-styles.d.ts +39 -12
- package/dist/components/_base/interaction-styles.d.ts.map +1 -1
- package/dist/components/_base/interaction-styles.js +85 -33
- package/dist/components/_base/moni-element.d.ts +43 -8
- package/dist/components/_base/moni-element.d.ts.map +1 -1
- package/dist/components/_base/moni-element.js +43 -8
- package/dist/components/_base/shared-styles.d.ts +41 -17
- package/dist/components/_base/shared-styles.d.ts.map +1 -1
- package/dist/components/_base/shared-styles.js +113 -21
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +6 -0
- package/dist/components/loading-shapes.d.ts +6 -0
- package/dist/components/loading-shapes.d.ts.map +1 -1
- package/dist/components/loading-shapes.js +6 -0
- package/dist/components/moni-app-bar.d.ts +128 -33
- package/dist/components/moni-app-bar.d.ts.map +1 -1
- package/dist/components/moni-app-bar.js +121 -26
- package/dist/components/moni-badge.d.ts +122 -14
- package/dist/components/moni-badge.d.ts.map +1 -1
- package/dist/components/moni-badge.js +122 -14
- package/dist/components/moni-bottom-sheet.d.ts +120 -15
- package/dist/components/moni-bottom-sheet.d.ts.map +1 -1
- package/dist/components/moni-bottom-sheet.js +116 -12
- package/dist/components/moni-button-group.d.ts +53 -27
- package/dist/components/moni-button-group.d.ts.map +1 -1
- package/dist/components/moni-button-group.js +49 -23
- package/dist/components/moni-button-segment.d.ts +28 -8
- package/dist/components/moni-button-segment.d.ts.map +1 -1
- package/dist/components/moni-button-segment.js +27 -7
- package/dist/components/moni-button.d.ts +51 -32
- package/dist/components/moni-button.d.ts.map +1 -1
- package/dist/components/moni-button.js +50 -31
- package/dist/components/moni-card.d.ts +91 -31
- package/dist/components/moni-card.d.ts.map +1 -1
- package/dist/components/moni-card.js +86 -26
- package/dist/components/moni-carousel.d.ts +67 -17
- package/dist/components/moni-carousel.d.ts.map +1 -1
- package/dist/components/moni-carousel.js +59 -16
- package/dist/components/moni-checkbox.d.ts +122 -17
- package/dist/components/moni-checkbox.d.ts.map +1 -1
- package/dist/components/moni-checkbox.js +118 -14
- package/dist/components/moni-chip.d.ts +56 -30
- package/dist/components/moni-chip.d.ts.map +1 -1
- package/dist/components/moni-chip.js +51 -25
- package/dist/components/moni-color-field.d.ts +44 -6
- package/dist/components/moni-color-field.d.ts.map +1 -1
- package/dist/components/moni-color-field.js +43 -5
- package/dist/components/moni-context-menu.d.ts +44 -22
- package/dist/components/moni-context-menu.d.ts.map +1 -1
- package/dist/components/moni-context-menu.js +43 -21
- package/dist/components/moni-dialog.d.ts +107 -15
- package/dist/components/moni-dialog.d.ts.map +1 -1
- package/dist/components/moni-dialog.js +105 -14
- package/dist/components/moni-divider.d.ts +50 -15
- package/dist/components/moni-divider.d.ts.map +1 -1
- package/dist/components/moni-divider.js +49 -14
- package/dist/components/moni-expansion.d.ts +44 -8
- package/dist/components/moni-expansion.d.ts.map +1 -1
- package/dist/components/moni-expansion.js +43 -7
- package/dist/components/moni-fab-menu.d.ts +39 -20
- package/dist/components/moni-fab-menu.d.ts.map +1 -1
- package/dist/components/moni-fab-menu.js +38 -19
- package/dist/components/moni-fab.d.ts +49 -23
- package/dist/components/moni-fab.d.ts.map +1 -1
- package/dist/components/moni-fab.js +46 -20
- package/dist/components/moni-file-field.d.ts +54 -14
- package/dist/components/moni-file-field.d.ts.map +1 -1
- package/dist/components/moni-file-field.js +53 -13
- package/dist/components/moni-icon.d.ts +78 -11
- package/dist/components/moni-icon.d.ts.map +1 -1
- package/dist/components/moni-icon.js +77 -10
- package/dist/components/moni-list-item.d.ts +61 -30
- package/dist/components/moni-list-item.d.ts.map +1 -1
- package/dist/components/moni-list-item.js +55 -24
- package/dist/components/moni-list.d.ts +37 -13
- package/dist/components/moni-list.d.ts.map +1 -1
- package/dist/components/moni-list.js +36 -12
- package/dist/components/moni-loading-indicator.d.ts +38 -11
- package/dist/components/moni-loading-indicator.d.ts.map +1 -1
- package/dist/components/moni-loading-indicator.js +37 -10
- package/dist/components/moni-menu-item.d.ts +31 -8
- package/dist/components/moni-menu-item.d.ts.map +1 -1
- package/dist/components/moni-menu-item.js +30 -7
- package/dist/components/moni-menu.d.ts +58 -33
- package/dist/components/moni-menu.d.ts.map +1 -1
- package/dist/components/moni-menu.js +51 -26
- package/dist/components/moni-morph-modal.d.ts +7 -1
- package/dist/components/moni-morph-modal.d.ts.map +1 -1
- package/dist/components/moni-morph-modal.js +46 -24
- package/dist/components/moni-nav-item.d.ts +50 -10
- package/dist/components/moni-nav-item.d.ts.map +1 -1
- package/dist/components/moni-nav-item.js +48 -8
- package/dist/components/moni-nav.d.ts +57 -22
- package/dist/components/moni-nav.d.ts.map +1 -1
- package/dist/components/moni-nav.js +53 -18
- package/dist/components/moni-progress.d.ts +108 -20
- package/dist/components/moni-progress.d.ts.map +1 -1
- package/dist/components/moni-progress.js +104 -16
- package/dist/components/moni-radio.d.ts +106 -14
- package/dist/components/moni-radio.d.ts.map +1 -1
- package/dist/components/moni-radio.js +104 -13
- package/dist/components/moni-ripple.d.ts +121 -10
- package/dist/components/moni-ripple.d.ts.map +1 -1
- package/dist/components/moni-ripple.js +120 -9
- package/dist/components/moni-segmented-button.d.ts +31 -11
- package/dist/components/moni-segmented-button.d.ts.map +1 -1
- package/dist/components/moni-segmented-button.js +30 -10
- package/dist/components/moni-select-option.d.ts +43 -9
- package/dist/components/moni-select-option.d.ts.map +1 -1
- package/dist/components/moni-select-option.js +41 -7
- package/dist/components/moni-select.d.ts +59 -2
- package/dist/components/moni-select.d.ts.map +1 -1
- package/dist/components/moni-select.js +58 -1
- package/dist/components/moni-shape.d.ts +1 -1
- package/dist/components/moni-side-sheet.d.ts +56 -19
- package/dist/components/moni-side-sheet.d.ts.map +1 -1
- package/dist/components/moni-side-sheet.js +53 -16
- package/dist/components/moni-slider.d.ts +56 -25
- package/dist/components/moni-slider.d.ts.map +1 -1
- package/dist/components/moni-slider.js +55 -24
- package/dist/components/moni-snackbar.d.ts +86 -17
- package/dist/components/moni-snackbar.d.ts.map +1 -1
- package/dist/components/moni-snackbar.js +85 -16
- package/dist/components/moni-split-button.d.ts +38 -9
- package/dist/components/moni-split-button.d.ts.map +1 -1
- package/dist/components/moni-split-button.js +37 -8
- package/dist/components/moni-step.d.ts +42 -9
- package/dist/components/moni-step.d.ts.map +1 -1
- package/dist/components/moni-step.js +41 -8
- package/dist/components/moni-stepper.d.ts +43 -6
- package/dist/components/moni-stepper.d.ts.map +1 -1
- package/dist/components/moni-stepper.js +42 -5
- package/dist/components/moni-switch.d.ts +103 -16
- package/dist/components/moni-switch.d.ts.map +1 -1
- package/dist/components/moni-switch.js +99 -13
- package/dist/components/moni-tab.d.ts +35 -8
- package/dist/components/moni-tab.d.ts.map +1 -1
- package/dist/components/moni-tab.js +34 -7
- package/dist/components/moni-tabs.d.ts +51 -13
- package/dist/components/moni-tabs.d.ts.map +1 -1
- package/dist/components/moni-tabs.js +48 -10
- package/dist/components/moni-text-field.d.ts +55 -10
- package/dist/components/moni-text-field.d.ts.map +1 -1
- package/dist/components/moni-text-field.js +54 -9
- package/dist/components/moni-textarea.d.ts +51 -21
- package/dist/components/moni-textarea.d.ts.map +1 -1
- package/dist/components/moni-textarea.js +48 -18
- package/dist/components/moni-time-picker.d.ts +41 -11
- package/dist/components/moni-time-picker.d.ts.map +1 -1
- package/dist/components/moni-time-picker.js +40 -10
- package/dist/components/moni-toolbar.d.ts +43 -15
- package/dist/components/moni-toolbar.d.ts.map +1 -1
- package/dist/components/moni-toolbar.js +42 -14
- package/dist/components/moni-tooltip.d.ts +55 -25
- package/dist/components/moni-tooltip.d.ts.map +1 -1
- package/dist/components/moni-tooltip.js +54 -24
- package/dist/components/moni-typography.d.ts +43 -18
- package/dist/components/moni-typography.d.ts.map +1 -1
- package/dist/components/moni-typography.js +42 -17
- package/dist/index.d.ts +47 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +59 -2
- package/dist/styles/tailwind.css +67 -0
- package/dist/styles/tokens.css +111 -99
- package/dist/utils/color.d.ts +181 -2
- package/dist/utils/color.d.ts.map +1 -1
- package/dist/utils/color.js +182 -4
- package/dist/utils/theme.svelte.d.ts +305 -2
- package/dist/utils/theme.svelte.d.ts.map +1 -1
- package/dist/utils/theme.svelte.js +331 -2
- package/dist/web-components.d.ts +28 -0
- package/dist/web-components.d.ts.map +1 -1
- package/dist/web-components.js +29 -2
- package/package.json +1 -1
- package/src/actions/index.ts +7 -0
- package/src/components/_base/field-styles.ts +165 -37
- package/src/components/_base/index.ts +27 -0
- package/src/components/_base/interaction-styles.ts +86 -33
- package/src/components/_base/moni-element.ts +44 -8
- package/src/components/_base/shared-styles.ts +114 -21
- package/src/components/index.ts +7 -0
- package/src/components/loading-shapes.ts +7 -0
- package/src/components/moni-app-bar.ts +127 -26
- package/src/components/moni-badge.ts +128 -14
- package/src/components/moni-bottom-sheet.ts +125 -13
- package/src/components/moni-button-group.ts +50 -23
- package/src/components/moni-button-segment.ts +28 -7
- package/src/components/moni-button.ts +51 -31
- package/src/components/moni-card.ts +90 -26
- package/src/components/moni-carousel.ts +67 -16
- package/src/components/moni-checkbox.ts +125 -14
- package/src/components/moni-chip.ts +52 -25
- package/src/components/moni-color-field.ts +44 -5
- package/src/components/moni-context-menu.ts +44 -21
- package/src/components/moni-dialog.ts +111 -14
- package/src/components/moni-divider.ts +50 -14
- package/src/components/moni-expansion.ts +44 -7
- package/src/components/moni-fab-menu.ts +39 -19
- package/src/components/moni-fab.ts +47 -20
- package/src/components/moni-file-field.ts +54 -13
- package/src/components/moni-icon.ts +80 -10
- package/src/components/moni-list-item.ts +56 -24
- package/src/components/moni-list.ts +37 -12
- package/src/components/moni-loading-indicator.ts +38 -10
- package/src/components/moni-menu-item.ts +31 -7
- package/src/components/moni-menu.ts +52 -26
- package/src/components/moni-morph-modal.ts +58 -24
- package/src/components/moni-nav-item.ts +49 -8
- package/src/components/moni-nav.ts +54 -18
- package/src/components/moni-progress.ts +109 -16
- package/src/components/moni-radio.ts +111 -13
- package/src/components/moni-ripple.ts +126 -9
- package/src/components/moni-segmented-button.ts +31 -10
- package/src/components/moni-select-option.ts +42 -7
- package/src/components/moni-select.ts +79 -1
- package/src/components/moni-side-sheet.ts +54 -16
- package/src/components/moni-slider.ts +56 -24
- package/src/components/moni-snackbar.ts +90 -16
- package/src/components/moni-split-button.ts +38 -8
- package/src/components/moni-step.ts +42 -8
- package/src/components/moni-stepper.ts +43 -5
- package/src/components/moni-switch.ts +106 -13
- package/src/components/moni-tab.ts +35 -7
- package/src/components/moni-tabs.ts +49 -10
- package/src/components/moni-text-field.ts +55 -9
- package/src/components/moni-textarea.ts +49 -18
- package/src/components/moni-time-picker.ts +41 -10
- package/src/components/moni-toolbar.ts +43 -14
- package/src/components/moni-tooltip.ts +55 -24
- package/src/components/moni-typography.ts +43 -17
- package/src/index.ts +67 -3
- package/src/styles/tailwind.css +67 -0
- package/src/styles/tokens.css +111 -99
- package/src/types/svelte-runes.d.ts +64 -2
- package/src/utils/color.ts +286 -5
- package/src/utils/theme.svelte.ts +411 -2
- package/src/web-components.ts +31 -2
- package/dist/assets/shapes/arch.svg +0 -1
- package/dist/assets/shapes/arrow.svg +0 -1
- package/dist/assets/shapes/boom.svg +0 -1
- package/dist/assets/shapes/burst.svg +0 -1
- package/dist/assets/shapes/circle.svg +0 -1
- package/dist/assets/shapes/clamshell.svg +0 -1
- package/dist/assets/shapes/diamond.svg +0 -1
- package/dist/assets/shapes/fan.svg +0 -1
- package/dist/assets/shapes/flower.svg +0 -1
- package/dist/assets/shapes/gem.svg +0 -1
- package/dist/assets/shapes/ghost-ish.svg +0 -1
- package/dist/assets/shapes/heart.svg +0 -1
- package/dist/assets/shapes/leaf-clover4.svg +0 -1
- package/dist/assets/shapes/leaf-clover8.svg +0 -1
- package/dist/assets/shapes/loading-indicator.svg +0 -1
- package/dist/assets/shapes/oval.svg +0 -1
- package/dist/assets/shapes/pentagon.svg +0 -1
- package/dist/assets/shapes/pill.svg +0 -1
- package/dist/assets/shapes/pixel-circle.svg +0 -1
- package/dist/assets/shapes/pixel-triangle.svg +0 -1
- package/dist/assets/shapes/puffy-diamond.svg +0 -1
- package/dist/assets/shapes/puffy.svg +0 -1
- package/dist/assets/shapes/semicircle.svg +0 -1
- package/dist/assets/shapes/sided-cookie12.svg +0 -1
- package/dist/assets/shapes/sided-cookie4.svg +0 -1
- package/dist/assets/shapes/sided-cookie6.svg +0 -1
- package/dist/assets/shapes/sided-cookie7.svg +0 -1
- package/dist/assets/shapes/sided-cookie9.svg +0 -1
- package/dist/assets/shapes/slanted.svg +0 -1
- package/dist/assets/shapes/soft-boom.svg +0 -1
- package/dist/assets/shapes/soft-burst.svg +0 -1
- package/dist/assets/shapes/square.svg +0 -1
- package/dist/assets/shapes/sunny.svg +0 -1
- package/dist/assets/shapes/triangle.svg +0 -1
- package/dist/assets/shapes/very-sunny.svg +0 -1
- package/dist/assets/shapes/wavy-circle.svg +0 -1
- package/dist/assets/shapes/wavy.svg +0 -1
- package/src/assets/shapes/arch.svg +0 -1
- package/src/assets/shapes/arrow.svg +0 -1
- package/src/assets/shapes/boom.svg +0 -1
- package/src/assets/shapes/burst.svg +0 -1
- package/src/assets/shapes/circle.svg +0 -1
- package/src/assets/shapes/clamshell.svg +0 -1
- package/src/assets/shapes/diamond.svg +0 -1
- package/src/assets/shapes/fan.svg +0 -1
- package/src/assets/shapes/flower.svg +0 -1
- package/src/assets/shapes/gem.svg +0 -1
- package/src/assets/shapes/ghost-ish.svg +0 -1
- package/src/assets/shapes/heart.svg +0 -1
- package/src/assets/shapes/leaf-clover4.svg +0 -1
- package/src/assets/shapes/leaf-clover8.svg +0 -1
- package/src/assets/shapes/loading-indicator.svg +0 -1
- package/src/assets/shapes/oval.svg +0 -1
- package/src/assets/shapes/pentagon.svg +0 -1
- package/src/assets/shapes/pill.svg +0 -1
- package/src/assets/shapes/pixel-circle.svg +0 -1
- package/src/assets/shapes/pixel-triangle.svg +0 -1
- package/src/assets/shapes/puffy-diamond.svg +0 -1
- package/src/assets/shapes/puffy.svg +0 -1
- package/src/assets/shapes/semicircle.svg +0 -1
- package/src/assets/shapes/sided-cookie12.svg +0 -1
- package/src/assets/shapes/sided-cookie4.svg +0 -1
- package/src/assets/shapes/sided-cookie6.svg +0 -1
- package/src/assets/shapes/sided-cookie7.svg +0 -1
- package/src/assets/shapes/sided-cookie9.svg +0 -1
- package/src/assets/shapes/slanted.svg +0 -1
- package/src/assets/shapes/soft-boom.svg +0 -1
- package/src/assets/shapes/soft-burst.svg +0 -1
- package/src/assets/shapes/square.svg +0 -1
- package/src/assets/shapes/sunny.svg +0 -1
- package/src/assets/shapes/triangle.svg +0 -1
- package/src/assets/shapes/very-sunny.svg +0 -1
- package/src/assets/shapes/wavy-circle.svg +0 -1
- package/src/assets/shapes/wavy.svg +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moni-tooltip.d.ts","sourceRoot":"","sources":["../../src/components/moni-tooltip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"moni-tooltip.d.ts","sourceRoot":"","sources":["../../src/components/moni-tooltip.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,WAAW,EAAgB,MAAM,kBAAkB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,qBACa,WAAY,SAAQ,WAAW;IACd,IAAI,SAAM;IAEvC,QAAQ,EACL,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,CAAS;IAExB,IAAI,EAAE,EAAE,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAM;IACD,IAAI,UAAS;IAEzD,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,UAAU,CAA4B;IAC9C,OAAO,CAAC,WAAW,CAAmD;IACtE;;;;OAIG;IACH,OAAO,CAAC,WAAW,CAAuB;IAEjC,iBAAiB;IAoCjB,oBAAoB;IAe7B,OAAO,CAAC,KAAK,CAOX;IAEF,OAAO,CAAC,KAAK,CAOX;IAEF,OAAO,CAAC,iBAAiB;IAMzB;;;OAGG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,OAAgB,MAAM,4BA2JpB;IAEO,MAAM;CAgBf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,cAAc,EAAE,WAAW,CAAC;KAC5B;CACD;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file components/moni-tooltip.ts
|
|
3
|
+
* @package @moni-labs/moni-ui
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @contributors Moni Labs & Contributors
|
|
6
|
+
*/
|
|
1
7
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
8
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
9
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,34 +14,58 @@ import { html, css } from 'lit';
|
|
|
8
14
|
import { customElement, property } from 'lit/decorators.js';
|
|
9
15
|
import { MoniElement, sharedStyles } from './_base/index.js';
|
|
10
16
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
17
|
+
* Material Design 3 Tooltip component.
|
|
18
|
+
*
|
|
19
|
+
* Tooltips provide contextual text labels or rich content that appear when
|
|
20
|
+
* users hover over, focus on, or tap an element. They surface supplementary
|
|
21
|
+
* information that helps users understand interface elements without
|
|
22
|
+
* permanently occupying screen space.
|
|
23
|
+
*
|
|
24
|
+
* **M3 spec reference:** `m3-docs/components/tooltips/specs.md`
|
|
25
|
+
*
|
|
26
|
+
* **Types:**
|
|
27
|
+
* - **Plain** (default) — Text-only label for simple descriptions (max 1 line).
|
|
28
|
+
* - **Rich** (`rich` attribute) — HTML content including formatted text,
|
|
29
|
+
* links, and icons. Rich tooltips can contain multiple lines and action links.
|
|
30
|
+
*
|
|
31
|
+
* **Placements:**
|
|
32
|
+
* - `top` (default), `top-start`, `top-end`
|
|
33
|
+
* - `bottom`, `bottom-start`, `bottom-end`
|
|
34
|
+
*
|
|
35
|
+
* **Trigger mechanism:**
|
|
36
|
+
* The tooltip uses `position: absolute` inside the parent element. The parent
|
|
37
|
+
* must have `position: relative` (set automatically via `connectedCallback`).
|
|
38
|
+
* Hover/focus events on the parent trigger the tooltip's CSS `:hover` and
|
|
39
|
+
* `:focus-within` selectors, which drive the show/hide transition.
|
|
40
|
+
*
|
|
41
|
+
* **Accessibility:**
|
|
42
|
+
* - The tooltip has `role="tooltip"`.
|
|
43
|
+
* - For keyboard accessibility, the parent should have `aria-describedby`
|
|
44
|
+
* pointing to the tooltip's `id` attribute. The component exposes a
|
|
45
|
+
* `tooltipId` getter for this purpose.
|
|
46
|
+
* - The `Escape` key closes rich tooltips.
|
|
13
47
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```html
|
|
50
|
+
* <!-- Plain tooltip -->
|
|
51
|
+
* <button aria-describedby="save-tip">
|
|
52
|
+
* Save
|
|
53
|
+
* <moni-tooltip id="save-tip" text="Ctrl+S"></moni-tooltip>
|
|
54
|
+
* </button>
|
|
19
55
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
56
|
+
* <!-- Rich tooltip -->
|
|
57
|
+
* <button>
|
|
58
|
+
* Filter
|
|
59
|
+
* <moni-tooltip rich position="bottom">
|
|
60
|
+
* <strong>Filter by date</strong>
|
|
61
|
+
* <p>Select a date range to filter results.</p>
|
|
62
|
+
* </moni-tooltip>
|
|
63
|
+
* </button>
|
|
64
|
+
* ```
|
|
23
65
|
*
|
|
24
|
-
*
|
|
25
|
-
* - The tooltip has `role="tooltip"` (M3 spec).
|
|
26
|
-
* - When `rich` content is used, the parent should also have
|
|
27
|
-
* `aria-describedby="<tooltip-id>"`. The component sets a unique `id` on
|
|
28
|
-
* the tooltip element and exposes it via `tooltipId` getter.
|
|
29
|
-
* - `Escape` closes the tooltip (WAI-ARIA tooltip pattern).
|
|
66
|
+
* @slot default - Rich content for the tooltip body (only used when `rich=true`).
|
|
30
67
|
*
|
|
31
|
-
*
|
|
32
|
-
* - text: tooltip text (plain tooltip)
|
|
33
|
-
* - position: top (default) | top-start | top-end | bottom | bottom-start | bottom-end
|
|
34
|
-
* - size: '' (default) | small | medium | large
|
|
35
|
-
* - rich: boolean — when true, the default slot accepts arbitrary HTML
|
|
36
|
-
* for rich content (links, icons, etc.). When false (default),
|
|
37
|
-
* the slot is rendered as text only.
|
|
38
|
-
* - id: forwarded to the tooltip element (useful for aria-describedby)
|
|
68
|
+
* @csspart tooltip - The tooltip container element.
|
|
39
69
|
*/
|
|
40
70
|
let MoniTooltip = class MoniTooltip extends MoniElement {
|
|
41
71
|
constructor() {
|
|
@@ -1,27 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file components/moni-typography.ts
|
|
3
|
+
* @package @moni-labs/moni-ui
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @contributors Moni Labs & Contributors
|
|
6
|
+
*/
|
|
1
7
|
import { MoniElement } from './_base/index.js';
|
|
2
8
|
/**
|
|
3
|
-
* Material 3 Typography
|
|
9
|
+
* Material Design 3 Typography component.
|
|
10
|
+
*
|
|
11
|
+
* A specialized text component that enforces the M3 type scale. It ensures
|
|
12
|
+
* typography is consistent, accessible, and correctly styled across the
|
|
13
|
+
* application without requiring manual CSS classes.
|
|
14
|
+
*
|
|
15
|
+
* **M3 spec reference:** `m3-docs/components/typography/specs.md`
|
|
16
|
+
*
|
|
17
|
+
* **Type Scale Categories:**
|
|
18
|
+
* - `display`: The largest text on the screen, reserved for short, important
|
|
19
|
+
* text or numerals. Works best on large screens. (Renders `<h1>` by default).
|
|
20
|
+
* - `headline`: High-emphasis text for primary page/section headers.
|
|
21
|
+
* (Renders `<h2>` by default).
|
|
22
|
+
* - `title`: Medium-emphasis text used for dialog headers or smaller section
|
|
23
|
+
* titles. (Renders `<h3>` by default).
|
|
24
|
+
* - `body`: Standard paragraph text used for long-form content.
|
|
25
|
+
* (Renders `<p>` by default).
|
|
26
|
+
* - `label`: Small, utilitarian text used for buttons, captions, and form
|
|
27
|
+
* elements. (Renders `<label>` by default).
|
|
28
|
+
*
|
|
29
|
+
* Each category supports three sizes: `large`, `medium`, and `small`.
|
|
4
30
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
31
|
+
* **Semantic Tags:**
|
|
32
|
+
* The component automatically selects an appropriate HTML semantic tag based on
|
|
33
|
+
* the variant. You can explicitly override this by setting the `as` attribute
|
|
34
|
+
* (e.g., to render a `headline` style but using a `<span>` tag for SEO or
|
|
35
|
+
* structural reasons).
|
|
8
36
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* - **body**: paragraph text.
|
|
14
|
-
* - **label**: button text, captions.
|
|
37
|
+
* @example
|
|
38
|
+
* ```html
|
|
39
|
+
* <!-- Renders an <h1> with display-large styles -->
|
|
40
|
+
* <moni-typography variant="display" size="large">Hero Text</moni-typography>
|
|
15
41
|
*
|
|
16
|
-
*
|
|
42
|
+
* <!-- Renders a <p> with body-medium styles -->
|
|
43
|
+
* <moni-typography variant="body">Standard paragraph text.</moni-typography>
|
|
17
44
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* - as: override the rendered tag (e.g. "span", "p", "label")
|
|
45
|
+
* <!-- Overriding the semantic tag -->
|
|
46
|
+
* <moni-typography variant="title" as="span">Inline title</moni-typography>
|
|
47
|
+
* ```
|
|
22
48
|
*
|
|
23
|
-
*
|
|
24
|
-
* - default: text content (falls back to `text` attribute if empty)
|
|
49
|
+
* @slot default - The text content to display.
|
|
25
50
|
*/
|
|
26
51
|
export declare class MoniTypography extends MoniElement {
|
|
27
52
|
variant: 'display' | 'headline' | 'title' | 'body' | 'label';
|
|
@@ -30,7 +55,7 @@ export declare class MoniTypography extends MoniElement {
|
|
|
30
55
|
text: string;
|
|
31
56
|
/** Default semantic tag for each variant per M3 spec. */
|
|
32
57
|
private static _tagFor;
|
|
33
|
-
render(): import("lit
|
|
58
|
+
render(): import("lit").TemplateResult;
|
|
34
59
|
static styles: import("lit").CSSResult[];
|
|
35
60
|
}
|
|
36
61
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moni-typography.d.ts","sourceRoot":"","sources":["../../src/components/moni-typography.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"moni-typography.d.ts","sourceRoot":"","sources":["../../src/components/moni-typography.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAE,WAAW,EAAgB,MAAM,kBAAkB,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,qBACa,cAAe,SAAQ,WAAW;IAE9C,OAAO,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAU;IAEtE,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAY;IAE9C,EAAE,EAAE,MAAM,GAAG,IAAI,CAAQ;IACI,IAAI,SAAM;IAEvC,yDAAyD;IACzD,OAAO,CAAC,MAAM,CAAC,OAAO;IAiBb,MAAM;IAcf,OAAgB,MAAM,4BAkHpB;CACF;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,cAAc,CAAC;KAClC;CACD;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file components/moni-typography.ts
|
|
3
|
+
* @package @moni-labs/moni-ui
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @contributors Moni Labs & Contributors
|
|
6
|
+
*/
|
|
1
7
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
8
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
9
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -10,28 +16,47 @@ import { customElement, property } from 'lit/decorators.js';
|
|
|
10
16
|
import { unsafeStatic, html as staticHtml } from 'lit/static-html.js';
|
|
11
17
|
import { MoniElement, sharedStyles } from './_base/index.js';
|
|
12
18
|
/**
|
|
13
|
-
* Material 3 Typography
|
|
19
|
+
* Material Design 3 Typography component.
|
|
20
|
+
*
|
|
21
|
+
* A specialized text component that enforces the M3 type scale. It ensures
|
|
22
|
+
* typography is consistent, accessible, and correctly styled across the
|
|
23
|
+
* application without requiring manual CSS classes.
|
|
24
|
+
*
|
|
25
|
+
* **M3 spec reference:** `m3-docs/components/typography/specs.md`
|
|
26
|
+
*
|
|
27
|
+
* **Type Scale Categories:**
|
|
28
|
+
* - `display`: The largest text on the screen, reserved for short, important
|
|
29
|
+
* text or numerals. Works best on large screens. (Renders `<h1>` by default).
|
|
30
|
+
* - `headline`: High-emphasis text for primary page/section headers.
|
|
31
|
+
* (Renders `<h2>` by default).
|
|
32
|
+
* - `title`: Medium-emphasis text used for dialog headers or smaller section
|
|
33
|
+
* titles. (Renders `<h3>` by default).
|
|
34
|
+
* - `body`: Standard paragraph text used for long-form content.
|
|
35
|
+
* (Renders `<p>` by default).
|
|
36
|
+
* - `label`: Small, utilitarian text used for buttons, captions, and form
|
|
37
|
+
* elements. (Renders `<label>` by default).
|
|
38
|
+
*
|
|
39
|
+
* Each category supports three sizes: `large`, `medium`, and `small`.
|
|
14
40
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
41
|
+
* **Semantic Tags:**
|
|
42
|
+
* The component automatically selects an appropriate HTML semantic tag based on
|
|
43
|
+
* the variant. You can explicitly override this by setting the `as` attribute
|
|
44
|
+
* (e.g., to render a `headline` style but using a `<span>` tag for SEO or
|
|
45
|
+
* structural reasons).
|
|
18
46
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* - **body**: paragraph text.
|
|
24
|
-
* - **label**: button text, captions.
|
|
47
|
+
* @example
|
|
48
|
+
* ```html
|
|
49
|
+
* <!-- Renders an <h1> with display-large styles -->
|
|
50
|
+
* <moni-typography variant="display" size="large">Hero Text</moni-typography>
|
|
25
51
|
*
|
|
26
|
-
*
|
|
52
|
+
* <!-- Renders a <p> with body-medium styles -->
|
|
53
|
+
* <moni-typography variant="body">Standard paragraph text.</moni-typography>
|
|
27
54
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* - as: override the rendered tag (e.g. "span", "p", "label")
|
|
55
|
+
* <!-- Overriding the semantic tag -->
|
|
56
|
+
* <moni-typography variant="title" as="span">Inline title</moni-typography>
|
|
57
|
+
* ```
|
|
32
58
|
*
|
|
33
|
-
*
|
|
34
|
-
* - default: text content (falls back to `text` attribute if empty)
|
|
59
|
+
* @slot default - The text content to display.
|
|
35
60
|
*/
|
|
36
61
|
let MoniTypography = class MoniTypography extends MoniElement {
|
|
37
62
|
constructor() {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file index.ts
|
|
3
|
+
* @package @moni-labs/moni-ui
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @contributors Moni Labs & Contributors
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @module @moni-labs/moni-ui
|
|
9
|
+
*
|
|
10
|
+
* Main entry point for the Moni UI component library.
|
|
11
|
+
*
|
|
12
|
+
* **What this file does:**
|
|
13
|
+
* 1. **Side-effect import** — `import './components/index.js'` triggers the
|
|
14
|
+
* auto-registration of every `<moni-*>` custom element with the browser's
|
|
15
|
+
* Custom Element registry. This must happen before any component is rendered
|
|
16
|
+
* in the DOM.
|
|
17
|
+
* 2. **Re-exports** — All component classes, utilities, and TypeScript types
|
|
18
|
+
* are re-exported so consumers get a single import path:
|
|
19
|
+
*
|
|
20
|
+
* ```ts
|
|
21
|
+
* import {
|
|
22
|
+
* MoniButton,
|
|
23
|
+
* getThemeEngine,
|
|
24
|
+
* generateScheme,
|
|
25
|
+
* type ColorScheme
|
|
26
|
+
* } from '@moni-labs/moni-ui';
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* **Import strategies:**
|
|
30
|
+
* - **Full bundle** (this file): imports and registers ALL components at once.
|
|
31
|
+
* Best for SPAs that use many components.
|
|
32
|
+
* - **Tree-shaken per-component**: import individual files from
|
|
33
|
+
* `@moni-labs/moni-ui/components/moni-button.js` etc. to let bundlers
|
|
34
|
+
* include only what is used. Better for apps that use a small subset.
|
|
35
|
+
*
|
|
36
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry Custom Element Registry}
|
|
37
|
+
*/
|
|
1
38
|
import './components/index.js';
|
|
2
39
|
export { MoniBadge, MoniBottomSheet, MoniButton, MoniCheckbox, MoniChip, MoniColorField, MoniContextMenu, MoniDialog, MoniExpansion, MoniFileField, MoniMenu, MoniMenuItem, MoniNav, MoniNavItem, MoniProgress, MoniRadio, MoniRipple, MoniSelect, MoniSlider, MoniSnackbar, MoniStep, MoniStepper, MoniSwitch, MoniTab, MoniTabs, MoniTextarea, MoniTextField, MoniTimePicker, MoniSideSheet, MoniTooltip, MoniFab, MoniFabMenu, MoniButtonGroup, MoniSplitButton, MoniButtonSegment, MoniSegmentedButton, MoniLoadingIndicator, MoniMorphModal, MoniCarousel, MoniShape, } from './components/index.js';
|
|
40
|
+
/**
|
|
41
|
+
* Theme engine singleton factory.
|
|
42
|
+
* @see {@link getThemeEngine} for full documentation.
|
|
43
|
+
*/
|
|
3
44
|
export { getThemeEngine, resetThemeEngine } from './utils/theme.svelte.js';
|
|
45
|
+
/** TypeScript types for theme engine configuration. */
|
|
4
46
|
export type { ThemeSettings, ThemeMode, ThemeDensity, ThemeRadius, ThemeFont } from './utils/theme.svelte.js';
|
|
47
|
+
/**
|
|
48
|
+
* Color generation and application utilities.
|
|
49
|
+
* @see utils/color.ts for full documentation.
|
|
50
|
+
*/
|
|
5
51
|
export { generateScheme, applySchemeToDocument, getDefaultSeed, hexToHsl, hslToHex } from './utils/color.js';
|
|
52
|
+
/** TypeScript types for the color system. */
|
|
6
53
|
export type { ColorScheme, ContrastLevel } from './utils/color.js';
|
|
7
54
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAOH,OAAO,uBAAuB,CAAC;AAS/B,OAAO,EACN,SAAS,EACT,eAAe,EACf,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,eAAe,EACf,UAAU,EACV,aAAa,EACb,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,UAAU,EACV,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,OAAO,EACP,WAAW,EACX,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,SAAS,GACT,MAAM,uBAAuB,CAAC;AAM/B;;;GAGG;AACH,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE3E,uDAAuD;AACvD,YAAY,EACX,aAAa,EACb,SAAS,EACT,YAAY,EACZ,WAAW,EACX,SAAS,EACT,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,OAAO,EACN,cAAc,EACd,qBAAqB,EACrB,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,MAAM,kBAAkB,CAAC;AAE1B,6CAA6C;AAC7C,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file index.ts
|
|
3
|
+
* @package @moni-labs/moni-ui
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @contributors Moni Labs & Contributors
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @module @moni-labs/moni-ui
|
|
9
|
+
*
|
|
10
|
+
* Main entry point for the Moni UI component library.
|
|
11
|
+
*
|
|
12
|
+
* **What this file does:**
|
|
13
|
+
* 1. **Side-effect import** — `import './components/index.js'` triggers the
|
|
14
|
+
* auto-registration of every `<moni-*>` custom element with the browser's
|
|
15
|
+
* Custom Element registry. This must happen before any component is rendered
|
|
16
|
+
* in the DOM.
|
|
17
|
+
* 2. **Re-exports** — All component classes, utilities, and TypeScript types
|
|
18
|
+
* are re-exported so consumers get a single import path:
|
|
19
|
+
*
|
|
20
|
+
* ```ts
|
|
21
|
+
* import {
|
|
22
|
+
* MoniButton,
|
|
23
|
+
* getThemeEngine,
|
|
24
|
+
* generateScheme,
|
|
25
|
+
* type ColorScheme
|
|
26
|
+
* } from '@moni-labs/moni-ui';
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* **Import strategies:**
|
|
30
|
+
* - **Full bundle** (this file): imports and registers ALL components at once.
|
|
31
|
+
* Best for SPAs that use many components.
|
|
32
|
+
* - **Tree-shaken per-component**: import individual files from
|
|
33
|
+
* `@moni-labs/moni-ui/components/moni-button.js` etc. to let bundlers
|
|
34
|
+
* include only what is used. Better for apps that use a small subset.
|
|
35
|
+
*
|
|
36
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry Custom Element Registry}
|
|
37
|
+
*/
|
|
38
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1
39
|
// Auto-register all Moni UI Web Components
|
|
40
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
41
|
+
// This import has side effects: it calls customElements.define() for every
|
|
42
|
+
// <moni-*> element. Bundlers must NOT tree-shake this import.
|
|
2
43
|
import './components/index.js';
|
|
3
|
-
//
|
|
44
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
45
|
+
// Web Component class exports
|
|
46
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
47
|
+
// Exporting the class enables TypeScript consumers to:
|
|
48
|
+
// - Subclass components for customization.
|
|
49
|
+
// - Use the class in type narrowing (instanceof MoniButton).
|
|
50
|
+
// - Access static members and properties programmatically.
|
|
4
51
|
export { MoniBadge, MoniBottomSheet, MoniButton, MoniCheckbox, MoniChip, MoniColorField, MoniContextMenu, MoniDialog, MoniExpansion, MoniFileField, MoniMenu, MoniMenuItem, MoniNav, MoniNavItem, MoniProgress, MoniRadio, MoniRipple, MoniSelect, MoniSlider, MoniSnackbar, MoniStep, MoniStepper, MoniSwitch, MoniTab, MoniTabs, MoniTextarea, MoniTextField, MoniTimePicker, MoniSideSheet, MoniTooltip, MoniFab, MoniFabMenu, MoniButtonGroup, MoniSplitButton, MoniButtonSegment, MoniSegmentedButton, MoniLoadingIndicator, MoniMorphModal, MoniCarousel, MoniShape, } from './components/index.js';
|
|
5
|
-
//
|
|
52
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
53
|
+
// Utility exports
|
|
54
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
55
|
+
/**
|
|
56
|
+
* Theme engine singleton factory.
|
|
57
|
+
* @see {@link getThemeEngine} for full documentation.
|
|
58
|
+
*/
|
|
6
59
|
export { getThemeEngine, resetThemeEngine } from './utils/theme.svelte.js';
|
|
60
|
+
/**
|
|
61
|
+
* Color generation and application utilities.
|
|
62
|
+
* @see utils/color.ts for full documentation.
|
|
63
|
+
*/
|
|
7
64
|
export { generateScheme, applySchemeToDocument, getDefaultSeed, hexToHsl, hslToHex } from './utils/color.js';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file styles/tailwind.css
|
|
3
|
+
* @package @moni-labs/moni-ui
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @contributors Moni Labs & Contributors
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
@import 'tailwindcss';
|
|
9
|
+
|
|
10
|
+
@theme {
|
|
11
|
+
/* ─── Material Design 3 Expressive tokens integration ─── */
|
|
12
|
+
--color-primary: var(--moni-primary);
|
|
13
|
+
--color-on-primary: var(--moni-on-primary);
|
|
14
|
+
--color-primary-container: var(--moni-primary-container);
|
|
15
|
+
--color-on-primary-container: var(--moni-on-primary-container);
|
|
16
|
+
|
|
17
|
+
--color-secondary: var(--moni-secondary);
|
|
18
|
+
--color-on-secondary: var(--moni-on-secondary);
|
|
19
|
+
--color-secondary-container: var(--moni-secondary-container);
|
|
20
|
+
--color-on-secondary-container: var(--moni-on-secondary-container);
|
|
21
|
+
|
|
22
|
+
--color-tertiary: var(--moni-tertiary);
|
|
23
|
+
--color-on-tertiary: var(--moni-on-tertiary);
|
|
24
|
+
--color-tertiary-container: var(--moni-tertiary-container);
|
|
25
|
+
--color-on-tertiary-container: var(--moni-on-tertiary-container);
|
|
26
|
+
|
|
27
|
+
--color-error: var(--moni-error);
|
|
28
|
+
--color-on-error: var(--moni-on-error);
|
|
29
|
+
--color-error-container: var(--moni-error-container);
|
|
30
|
+
--color-on-error-container: var(--moni-on-error-container);
|
|
31
|
+
|
|
32
|
+
--color-background: var(--moni-background);
|
|
33
|
+
--color-on-background: var(--moni-on-background);
|
|
34
|
+
--color-surface: var(--moni-surface);
|
|
35
|
+
--color-on-surface: var(--moni-on-surface);
|
|
36
|
+
--color-surface-variant: var(--moni-surface-variant);
|
|
37
|
+
--color-on-surface-variant: var(--moni-on-surface-variant);
|
|
38
|
+
|
|
39
|
+
--color-outline: var(--moni-outline);
|
|
40
|
+
--color-outline-variant: var(--moni-outline-variant);
|
|
41
|
+
|
|
42
|
+
--color-surface-container-lowest: var(--moni-surface-container-lowest);
|
|
43
|
+
--color-surface-container-low: var(--moni-surface-container-low);
|
|
44
|
+
--color-surface-container: var(--moni-surface-container);
|
|
45
|
+
--color-surface-container-high: var(--moni-surface-container-high);
|
|
46
|
+
--color-surface-container-highest: var(--moni-surface-container-highest);
|
|
47
|
+
|
|
48
|
+
--color-inverse-surface: var(--moni-inverse-surface);
|
|
49
|
+
--color-inverse-on-surface: var(--moni-inverse-on-surface);
|
|
50
|
+
--color-inverse-primary: var(--moni-inverse-primary);
|
|
51
|
+
|
|
52
|
+
/* ─── Typography ─── */
|
|
53
|
+
--font-sans: var(--moni-font-sans, 'Geist', system-ui, -apple-system, sans-serif);
|
|
54
|
+
--font-serif: var(--moni-font-title, 'Instrument Serif', Georgia, serif);
|
|
55
|
+
--font-mono: 'Geist Mono', 'Fira Code', monospace;
|
|
56
|
+
--font-brand: var(--moni-font-sans, 'Geist', system-ui, sans-serif);
|
|
57
|
+
--font-title: var(--moni-font-title, 'Instrument Serif', Georgia, serif);
|
|
58
|
+
--font-icon: var(--moni-font-icon, 'Material Symbols Rounded');
|
|
59
|
+
|
|
60
|
+
/* ─── Radius scale ─── */
|
|
61
|
+
--radius-base: var(--moni-radius-base, 12px);
|
|
62
|
+
--radius-sm: calc(var(--moni-radius-base, 12px) * 0.5);
|
|
63
|
+
--radius-md: var(--moni-radius-base, 12px);
|
|
64
|
+
--radius-lg: calc(var(--moni-radius-base, 12px) * 1.5);
|
|
65
|
+
--radius-xl: calc(var(--moni-radius-base, 12px) * 2);
|
|
66
|
+
--radius-full: 9999px;
|
|
67
|
+
}
|