@m3ui-vue/m3ui-vue 0.9.2 → 0.9.3
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 +2 -0
- package/dist/API.md +69 -8
- package/dist/{MIcon-CaEooCmZ.js → MIcon-DLOkQduI.js} +10 -3
- package/dist/MIcon-DLOkQduI.js.map +1 -0
- package/dist/{MTextField-Ck0oWDMk.js → MTextField-DKtgPymd.js} +416 -206
- package/dist/MTextField-DKtgPymd.js.map +1 -0
- package/dist/THIRD_PARTY_LICENSES.md +547 -0
- package/dist/api.json +1 -1
- package/dist/code-editor.js +2 -2
- package/dist/components/MButton.vue.d.ts +4 -2
- package/dist/components/MButtonGroup.vue.d.ts +2 -0
- package/dist/components/MFab.vue.d.ts +4 -2
- package/dist/components/MIcon.vue.d.ts +3 -0
- package/dist/components/MIconButton.vue.d.ts +15 -1
- package/dist/components/MMenuItem.vue.d.ts +17 -4
- package/dist/components/MSplitButton.vue.d.ts +2 -0
- package/dist/components/MTabs.vue.d.ts +6 -0
- package/dist/components/MTimePickerModal.vue.d.ts +3 -0
- package/dist/components/MTimeScroll.vue.d.ts +22 -0
- package/dist/components/MToggleButton.vue.d.ts +2 -0
- package/dist/components/MTree.vue.d.ts +2 -2
- package/dist/components/_MDrawerItemList.vue.d.ts +3 -0
- package/dist/composables/_useSpring.d.ts +2 -0
- package/dist/composables/useLocale.d.ts +6 -0
- package/dist/directives/vRipple.d.ts +16 -0
- package/dist/emoji-names-de-BphO5XpV.js.map +1 -1
- package/dist/emoji-names-en-9ZvMRvzi.js.map +1 -1
- package/dist/emoji-names-es-DvfWU3Pj.js.map +1 -1
- package/dist/emoji-names-fr-B-jhUlsP.js.map +1 -1
- package/dist/emoji-names-ja-l8cMFJo1.js.map +1 -1
- package/dist/emoji-names-ko-YP-o9G0c.js.map +1 -1
- package/dist/emoji-names-pt-DGj_Js4M.js.map +1 -1
- package/dist/emoji-names-zh-Dzecwtw_.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/locales/index.js +42 -0
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +5741 -5634
- package/dist/m3ui.js.map +1 -1
- package/dist/rich-text-editor.js +22 -22
- package/dist/styles/theme.css +13 -0
- package/dist/styles.css +1 -1
- package/dist/terminal.js +1 -1
- package/dist/{useLocale-CFW8cIzL.js → useLocale-Cn9MVIdw.js} +7 -1
- package/dist/useLocale-Cn9MVIdw.js.map +1 -0
- package/package.json +2 -2
- package/src/__tests__/MIconButton.test.ts +60 -0
- package/src/__tests__/MMenuItem.test.ts +84 -0
- package/src/__tests__/MScrollField.test.ts +28 -0
- package/src/__tests__/MTabs.test.ts +39 -0
- package/src/__tests__/MTimePickerModal.test.ts +52 -0
- package/src/__tests__/MTimeScroll.test.ts +44 -0
- package/src/__tests__/vRipple.test.ts +92 -0
- package/src/components/MButton.vue +4 -13
- package/src/components/MButtonGroup.vue +4 -11
- package/src/components/MFab.vue +8 -15
- package/src/components/MIcon.vue +4 -2
- package/src/components/MIconButton.vue +96 -24
- package/src/components/MMenuItem.vue +115 -13
- package/src/components/MScrollField.vue +10 -2
- package/src/components/MSplitButton.vue +5 -12
- package/src/components/MTabs.vue +16 -5
- package/src/components/MTimePickerModal.vue +48 -8
- package/src/components/MTimeScroll.vue +161 -0
- package/src/components/MToggleButton.vue +5 -12
- package/src/composables/_carouselStrategy.ts +3 -0
- package/src/composables/_useSpring.ts +2 -0
- package/src/composables/useLocale.ts +12 -0
- package/src/data/emoji-names/emoji-names-de.ts +1 -0
- package/src/data/emoji-names/emoji-names-en.ts +1 -0
- package/src/data/emoji-names/emoji-names-es.ts +1 -0
- package/src/data/emoji-names/emoji-names-fr.ts +1 -0
- package/src/data/emoji-names/emoji-names-ja.ts +1 -0
- package/src/data/emoji-names/emoji-names-ko.ts +1 -0
- package/src/data/emoji-names/emoji-names-pt.ts +1 -0
- package/src/data/emoji-names/emoji-names-zh.ts +1 -0
- package/src/data/emojis.ts +1 -0
- package/src/directives/vRipple.ts +73 -0
- package/src/index.ts +5 -0
- package/src/locales/de.ts +6 -0
- package/src/locales/es.ts +6 -0
- package/src/locales/fr.ts +6 -0
- package/src/locales/ja.ts +6 -0
- package/src/locales/ko.ts +6 -0
- package/src/locales/pt.ts +6 -0
- package/src/locales/zh.ts +6 -0
- package/src/plugin.ts +2 -0
- package/src/styles/theme.css +13 -0
- package/dist/MIcon-CaEooCmZ.js.map +0 -1
- package/dist/MTextField-Ck0oWDMk.js.map +0 -1
- package/dist/useLocale-CFW8cIzL.js.map +0 -1
package/README.md
CHANGED
|
@@ -484,3 +484,5 @@ Thanks for using it! ⭐ Starring the repo is also a nice way to show support.
|
|
|
484
484
|
## License
|
|
485
485
|
|
|
486
486
|
MIT
|
|
487
|
+
|
|
488
|
+
The package bundles code from a few open-source packages (`@material/material-color-utilities`, `shape-morph`, `highlight.js`, `@lezer/highlight`), emoji data generated from Unicode's emoji files and CLDR annotations (Unicode License v3), and a TypeScript port of the Compose Material 3 carousel engine (Android Open Source Project, Apache-2.0). Their licenses ship in `dist/THIRD_PARTY_LICENSES.md`, generated on every build. Optional peer dependencies (TipTap, CodeMirror, xterm.js, Chart.js, markdown-it…) aren't bundled: your app installs them with their own licenses.
|
package/dist/API.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @m3ui-vue/m3ui-vue 0.9.
|
|
1
|
+
# @m3ui-vue/m3ui-vue 0.9.3 — API reference
|
|
2
2
|
|
|
3
3
|
Material Design 3 components for Vue 3 + Tailwind CSS v4. Generated from the source by
|
|
4
4
|
`scripts/generate-api.mjs`; full docs with live demos at https://m3ui.dev.
|
|
@@ -288,6 +288,7 @@ Props:
|
|
|
288
288
|
- `size?: "xs" | "sm" | "md" | "lg" | "xl" = "sm"` — M3's 5-tier expressive button sizing (xs: 32px, sm: 40px, md: 56px, lg: 96px, xl: 136px) — lg/xl are meant for hero-style prominent buttons, not everyday UI
|
|
289
289
|
- `shape?: "rounded" | "squared" = "rounded"` — Button shape — rounded (pill, always) or squared (corner radius scales with size: 12px xs/sm, 16px md, 28px lg/xl)
|
|
290
290
|
- `to?: string | Record<string, any>` — Vue Router destination — renders as RouterLink instead of button
|
|
291
|
+
- `rippleColor?: string` — Any CSS color for the press ripple; defaults to the button's content color
|
|
291
292
|
|
|
292
293
|
Slots:
|
|
293
294
|
- `#default` — The button's label.
|
|
@@ -304,6 +305,7 @@ Props:
|
|
|
304
305
|
- `multiSelect?: boolean = false` — Allow multiple selections
|
|
305
306
|
- `selectionRequired?: boolean = false` — At least one must be selected
|
|
306
307
|
- `color?: "primary" | "secondary" | "tertiary" = "primary"` — Selected button color
|
|
308
|
+
- `rippleColor?: string` — Any CSS color for the press ripple; defaults to the button's content color
|
|
307
309
|
|
|
308
310
|
Events:
|
|
309
311
|
- `update:modelValue(unknown)` — Emitted on selection change — powers v-model
|
|
@@ -1009,6 +1011,7 @@ Props:
|
|
|
1009
1011
|
- `align?: "start" | "end" = "start"` — For the `up`/`down` #content panel only: which edge it anchors to when it's wider than the FAB itself. 'start' (default) keeps its left edge aligned with the FAB's left edge (existing behavior); 'end' aligns the right edges instead, which keeps a wide panel from running off-screen when the FAB sits in the bottom-right corner, a common placement.
|
|
1010
1012
|
- `scrim?: boolean = false` — Dims the rest of the screen behind the #content panel while open (has no effect on the `items` speed dial). A plain sibling with its own fade transition, independent of the panel's enter/leave transform, so it doesn't visually shrink/lag along with it.
|
|
1011
1013
|
- `contentTransition?: "none" | "scale" | "fade" = "scale"` — How the #content panel itself animates open/closed. 'scale' (default) is the original fade+scale. 'fade' drops the scale — use this when the slot content already animates its own entrance (e.g. a staggered per-item reveal), so the panel doesn't *also* scale as a group on top of that; it still gives Vue a real transition to wait for on close, so the content's own leave animation has time to play instead of just vanishing. 'none' skips any panel-level transition entirely.
|
|
1014
|
+
- `rippleColor?: string` — Any CSS color for the press ripple; defaults to the FAB's content color
|
|
1012
1015
|
|
|
1013
1016
|
Events:
|
|
1014
1017
|
- `click(MouseEvent)` — Emitted when the FAB itself is clicked (not a speed-dial item)
|
|
@@ -1192,10 +1195,11 @@ Renders a Material Symbols Outlined glyph by name. Color follows the surrounding
|
|
|
1192
1195
|
Props:
|
|
1193
1196
|
- `name: string` — Material Symbol name (e.g. "settings", "favorite")
|
|
1194
1197
|
- `size?: number = 24` — Icon size in px
|
|
1198
|
+
- `filled?: boolean = false` — Filled glyph (the Material Symbols FILL axis), as M3 draws a selected icon
|
|
1195
1199
|
|
|
1196
1200
|
### MIconButton
|
|
1197
1201
|
|
|
1198
|
-
A button that shows only an icon — four visual styles, the same 5-tier expressive sizing as MButton.
|
|
1202
|
+
A button that shows only an icon — four visual styles, the same 5-tier expressive sizing as MButton. Give it `checked` (v-model:checked) and it becomes M3's icon toggle button.
|
|
1199
1203
|
|
|
1200
1204
|
Props:
|
|
1201
1205
|
- `icon: string` — Material Symbol icon name
|
|
@@ -1205,6 +1209,12 @@ Props:
|
|
|
1205
1209
|
- `size?: number | "xs" | "sm" | "md" | "lg" | "xl" = "sm"` — M3's 5-tier icon button sizing (xs:32, sm:40, md:56, lg:96, xl:136), or a custom pixel value
|
|
1206
1210
|
- `disabled?: boolean = false` — Disables interaction
|
|
1207
1211
|
- `to?: string | Record<string, any>` — Vue Router destination — renders as RouterLink instead of button
|
|
1212
|
+
- `rippleColor?: string` — Any CSS color for the press ripple; defaults to the button's content color
|
|
1213
|
+
- `checked?: boolean` (v-model:checked) — Makes it a toggle button (v-model:checked): selected colors, a filled icon, and a shape that morphs when pressed and when checked. Leave it unset for a plain icon button
|
|
1214
|
+
- `checkedIcon?: string` — Icon shown while checked, when it differs from `icon` (e.g. 'pause' for 'play_arrow')
|
|
1215
|
+
|
|
1216
|
+
Events:
|
|
1217
|
+
- `update:checked(boolean)` — Emitted on click when `checked` is set — powers v-model:checked
|
|
1208
1218
|
|
|
1209
1219
|
### MInfiniteScroll
|
|
1210
1220
|
|
|
@@ -1547,7 +1557,7 @@ Props:
|
|
|
1547
1557
|
|
|
1548
1558
|
### MMenuItem
|
|
1549
1559
|
|
|
1550
|
-
An item of an MMenu or MContextMenu: icon, label and a shortcut hint. Put more items in its `#children` slot to make it open a submenu.
|
|
1560
|
+
An item of an MMenu or MContextMenu: icon, label and a shortcut hint. Put more items in its `#children` slot to make it open a submenu. With `selected` it's one choice of several (Compose's SelectableDropdownMenuItem), with `checked` an on/off setting (CheckableDropdownMenuItem): tertiary-container and rounder while on, with a check that slides in.
|
|
1551
1561
|
|
|
1552
1562
|
Props:
|
|
1553
1563
|
- `icon?: string` — Material Symbol icon name
|
|
@@ -1555,10 +1565,14 @@ Props:
|
|
|
1555
1565
|
- `to?: string | Record<string, any>` — Vue Router destination — renders as RouterLink instead of button
|
|
1556
1566
|
- `disabled?: boolean = false` — Disables the item
|
|
1557
1567
|
- `danger?: boolean = false` — Danger/destructive styling (error color)
|
|
1558
|
-
- `keepOpen?: boolean
|
|
1568
|
+
- `keepOpen?: boolean` — Keep the menu open after this item is clicked. Defaults to true for `checked` items, false otherwise
|
|
1569
|
+
- `selected?: boolean` — Makes it one choice of several (radio-like): selected look while true. Leave unset for a plain item
|
|
1570
|
+
- `checked?: boolean` (v-model:checked) — Makes it an on/off setting (v-model:checked, checkbox-like): checked look while true. Leave unset for a plain item
|
|
1571
|
+
- `selectedIcon?: string` — Icon shown while selected or checked. Defaults to a check that slides in when the item has no `icon`; with an `icon`, that icon stays and turns filled
|
|
1559
1572
|
|
|
1560
1573
|
Events:
|
|
1561
1574
|
- `click()` — Emitted when a leaf item (no #children) is clicked. Not emitted for disabled items or for items with #children, since clicking those just opens/toggles the submenu instead.
|
|
1575
|
+
- `update:checked(boolean)` — Emitted on click when `checked` is set, with the new value — powers v-model:checked
|
|
1562
1576
|
|
|
1563
1577
|
Slots:
|
|
1564
1578
|
- `#default` — Item label text.
|
|
@@ -2457,6 +2471,7 @@ Props:
|
|
|
2457
2471
|
- `size?: "xs" | "sm" | "md" | "lg" | "xl" = "sm"` — Button size
|
|
2458
2472
|
- `disabled?: boolean = false` — Disables both parts
|
|
2459
2473
|
- `items?: SplitButtonItem[]` — Dropdown menu items; see `SplitButtonItem`
|
|
2474
|
+
- `rippleColor?: string` — Any CSS color for the press ripple; defaults to the button's content color
|
|
2460
2475
|
|
|
2461
2476
|
Events:
|
|
2462
2477
|
- `click(MouseEvent)` — Emitted when the main (left) button is clicked
|
|
@@ -2716,6 +2731,7 @@ Props:
|
|
|
2716
2731
|
- `tabs: Tab[]` — Tab definitions
|
|
2717
2732
|
- `variant?: "primary" | "secondary" = "primary"` — Primary: short sliding underline shorter than the tab with a stretch animation. Secondary: full-width underline spanning the entire tab, text-only.
|
|
2718
2733
|
- `scrollable?: boolean = false` — Fixed (default, M3 `TabRow`): tabs evenly share the available width, no scrolling — use for 2-5 tabs. Scrollable (M3 `ScrollableTabRow`): tabs keep their natural width and the row scrolls horizontally when they overflow — use for many tabs.
|
|
2734
|
+
- `iconPosition?: "top" | "leading"` — Where a tab's icon goes: `top`, stacked above the label in a 64px tab (Compose's `Tab`), or `leading`, beside the label in a 48px tab (Compose's `LeadingIconTab`). Defaults to `top` for primary tabs and `leading` for secondary ones.
|
|
2719
2735
|
|
|
2720
2736
|
Events:
|
|
2721
2737
|
- `update:modelValue(string | number)` — Emitted with the value of the tab you picked.
|
|
@@ -2871,7 +2887,7 @@ Events:
|
|
|
2871
2887
|
|
|
2872
2888
|
### MTimePickerModal
|
|
2873
2889
|
|
|
2874
|
-
A modal, centered time picker with a clock dial and a keyboard input mode. Supports AM/PM toggle and 24h format — the sibling of MTimePicker, a fully separate component rather than a shared internal.
|
|
2890
|
+
A modal, centered time picker with a clock dial (or, with `mode="scroll"`, M3 Expressive's scroll wheels from MTimeScroll) and a keyboard input mode. Supports AM/PM toggle and 24h format — the sibling of MTimePicker, a fully separate component rather than a shared internal.
|
|
2875
2891
|
|
|
2876
2892
|
Props:
|
|
2877
2893
|
- `modelValue: string | null = null` (v-model) — Selected time in HH:MM format (v-model)
|
|
@@ -2879,11 +2895,25 @@ Props:
|
|
|
2879
2895
|
- `use24h?: boolean = false` — Use 24-hour format (shows inner ring 13-23)
|
|
2880
2896
|
- `minuteStep?: number = 5` — Minute increment step
|
|
2881
2897
|
- `title?: string` — Dialog title
|
|
2898
|
+
- `mode?: "dial" | "scroll" = "dial"` — How the time is picked before switching to keyboard input: a clock `dial`, or `scroll` wheels (MTimeScroll)
|
|
2882
2899
|
|
|
2883
2900
|
Events:
|
|
2884
2901
|
- `update:modelValue(string | null)` — Emitted when a time is confirmed — powers v-model
|
|
2885
2902
|
- `update:show(boolean)` — Emitted when the dialog opens or closes — powers v-model:show
|
|
2886
2903
|
|
|
2904
|
+
### MTimeScroll
|
|
2905
|
+
|
|
2906
|
+
M3 Expressive's time scroll picker (a port of Compose's `TimeScroll`): an hour wheel and a minute wheel side by side, plus an AM/PM toggle in 12-hour mode. It updates as the wheels turn; put it in a dialog or a form for the confirm step.
|
|
2907
|
+
|
|
2908
|
+
Props:
|
|
2909
|
+
- `modelValue: string | null = null` (v-model) — Selected time in HH:MM, 24-hour (v-model); null shows 12:00 AM (00:00 in 24-hour mode)
|
|
2910
|
+
- `use24h?: boolean = false` — 24-hour wheel (00–23) instead of 1–12 with AM/PM
|
|
2911
|
+
- `minuteStep?: number = 1` — Minute increment step; the minute wheel shows only multiples of it
|
|
2912
|
+
- `disabled?: boolean = false` — Disables the wheels and the AM/PM toggle
|
|
2913
|
+
|
|
2914
|
+
Events:
|
|
2915
|
+
- `update:modelValue(string)` — Emitted with the time as HH:MM (24-hour) whenever a wheel or AM/PM changes
|
|
2916
|
+
|
|
2887
2917
|
### MTitle
|
|
2888
2918
|
|
|
2889
2919
|
Semantic heading component in three sizes — a thin wrapper around `MText` at medium weight.
|
|
@@ -2907,6 +2937,7 @@ Props:
|
|
|
2907
2937
|
- `disabled?: boolean = false` — Disables interaction
|
|
2908
2938
|
- `icon?: string` — Material Symbol icon name shown before the label
|
|
2909
2939
|
- `size?: "xs" | "sm" | "md" | "lg" | "xl" = "sm"` — Same 5-tier expressive sizing as MButton
|
|
2940
|
+
- `rippleColor?: string` — Any CSS color for the press ripple; defaults to the button's content color
|
|
2910
2941
|
|
|
2911
2942
|
Events:
|
|
2912
2943
|
- `update:checked(boolean)` — Emitted when clicked — powers v-model:checked
|
|
@@ -3054,8 +3085,8 @@ Props:
|
|
|
3054
3085
|
- `emptyText?: string` — Text shown when nodes is empty. Falls back to the app's configured locale's noItems string
|
|
3055
3086
|
|
|
3056
3087
|
Events:
|
|
3057
|
-
- `update:selected(string | number | null)` — Fires when a node is clicked, toggling selection (clicking the already-selected node clears it)
|
|
3058
3088
|
- `update:checked((string | number)[])` — Fires when a checkbox toggles a node (checkable mode)
|
|
3089
|
+
- `update:selected(string | number | null)` — Fires when a node is clicked, toggling selection (clicking the already-selected node clears it)
|
|
3059
3090
|
- `node-click(TreeNode)` — Fires whenever a node row is clicked, alongside update:selected
|
|
3060
3091
|
|
|
3061
3092
|
Exposed (template ref):
|
|
@@ -3361,6 +3392,14 @@ usePageProgress(): {
|
|
|
3361
3392
|
}
|
|
3362
3393
|
```
|
|
3363
3394
|
|
|
3395
|
+
### vRipple
|
|
3396
|
+
|
|
3397
|
+
The M3 press ripple for any element: `<div v-ripple>`, `v-ripple="false"`, `v-ripple="'#e91e63'"` or `v-ripple="{ disabled, color }"`. A statically positioned element is made `position: relative`. Registered globally as `v-ripple` by `createM3UI()`; import `vRipple` to use it without the plugin.
|
|
3398
|
+
|
|
3399
|
+
```ts
|
|
3400
|
+
vRipple: Directive<HTMLElement, RippleValue>
|
|
3401
|
+
```
|
|
3402
|
+
|
|
3364
3403
|
### emojiCategories
|
|
3365
3404
|
|
|
3366
3405
|
```ts
|
|
@@ -3580,6 +3619,12 @@ export interface M3Locale {
|
|
|
3580
3619
|
// Pickers
|
|
3581
3620
|
selectDate: string
|
|
3582
3621
|
selectTime: string
|
|
3622
|
+
timeHourSelection: string
|
|
3623
|
+
timeMinuteSelection: string
|
|
3624
|
+
timePeriodToggle: string
|
|
3625
|
+
timeToggleKeyboard: string
|
|
3626
|
+
timeToggleDial: string
|
|
3627
|
+
timeToggleScroll: string
|
|
3583
3628
|
selectRange: string
|
|
3584
3629
|
pickStart: string
|
|
3585
3630
|
pickEnd: string
|
|
@@ -3778,8 +3823,24 @@ export interface NotificationOptions {
|
|
|
3778
3823
|
}
|
|
3779
3824
|
```
|
|
3780
3825
|
|
|
3826
|
+
```ts
|
|
3827
|
+
/** Options for `v-ripple`. */
|
|
3828
|
+
export interface RippleOptions {
|
|
3829
|
+
/** No ripple while true (e.g. bound to the element's disabled state). */
|
|
3830
|
+
disabled?: boolean
|
|
3831
|
+
/** Any CSS color for the ripple; defaults to the element's text color (`currentColor`). */
|
|
3832
|
+
color?: string
|
|
3833
|
+
}
|
|
3834
|
+
```
|
|
3835
|
+
|
|
3836
|
+
```ts
|
|
3837
|
+
/** `v-ripple` value: nothing or `true` (on), `false` (off), a CSS color, or an options object. */
|
|
3838
|
+
export type RippleValue = boolean | string | RippleOptions | null | undefined
|
|
3839
|
+
```
|
|
3840
|
+
|
|
3781
3841
|
```ts
|
|
3782
3842
|
// Generated by scripts/generate-emoji-data.mjs from Unicode emoji-test.txt (Emoji 15). Don't edit by hand.
|
|
3843
|
+
// Emoji data © Unicode, Inc., under the Unicode License v3 (dist/THIRD_PARTY_LICENSES.md, scripts/licenses/unicode-license-v3.txt).
|
|
3783
3844
|
|
|
3784
3845
|
export interface EmojiCategory {
|
|
3785
3846
|
id: string
|
|
@@ -3795,12 +3856,12 @@ export interface EmojiCategory {
|
|
|
3795
3856
|
`M3Locale` keys (pass a partial object to `createM3UI({ locale })`; presets from `@m3ui-vue/m3ui-vue/locales`:
|
|
3796
3857
|
`esLocale`, `frLocale`, `ptLocale`, `deLocale`, `jaLocale`, `zhLocale`, `koLocale`):
|
|
3797
3858
|
|
|
3798
|
-
lang, search, noResults, close, cancel, confirm, loading, menu, previous, next, today, more, selectedCount, recordCount, expand, columns, exportCsv, noGroup, finish, dropText, selectText, maxSizePrefix, remove, selectDate, selectTime, selectRange, pickStart, pickEnd, previousMonth, nextMonth, selectColor, colorHue, colorSaturation, colorBrightness, colorAlpha, colorEyedropper, colorOriginal, colorFormat, colorRecent, colorPresets, dayView, weekView, allDay, emojiSearch, emojiNoResults, emojiRecent, emojiSkinTone, emojiSkinTones, emojiCategorySmileys, emojiCategoryGestures, emojiCategoryPeople, emojiCategoryAnimals, emojiCategoryNature, emojiCategoryFood, emojiCategoryActivities, emojiCategoryTravel, emojiCategoryObjects, emojiCategorySymbols, emojiCategoryFlags, available, selected, noItems, moveAllRight, moveRight, moveLeft, moveAllLeft, searchCommand, navigateHint, selectHint, openHint, closeHint, loadingMore, noMoreItems, bold, italic, underline, strikethrough, highlight, bulletList, orderedList, blockquote, code, alignLeft, alignCenter, alignRight, undo, redo, link, image, paragraph, heading1, heading2, heading3, insertLink, insertImage, imageUrlLabel, insert, jsonValid, jsonInvalid, jsonFormat, jsonMinify, jsonElements, jsonFields, resultSuccessTitle, resultSuccessDesc, resultErrorTitle, resultErrorDesc, resultWarningTitle, resultWarningDesc, resultInfoTitle, resultInfoDesc, result404Title, result404Desc, result403Title, result403Desc, result500Title, result500Desc, chatTyping, chatRecordingAudio, reorderHandle, reorderGrabbed, reorderMoved, reorderDropped, reorderCancelled, selectAll, clearSearch, kanbanMoved, windowMinimize, windowMaximize, windowRestore, paginationRange, paginationPage, previousPage, nextPage, carousel, carouselItem
|
|
3859
|
+
lang, search, noResults, close, cancel, confirm, loading, menu, previous, next, today, more, selectedCount, recordCount, expand, columns, exportCsv, noGroup, finish, dropText, selectText, maxSizePrefix, remove, selectDate, selectTime, timeHourSelection, timeMinuteSelection, timePeriodToggle, timeToggleKeyboard, timeToggleDial, timeToggleScroll, selectRange, pickStart, pickEnd, previousMonth, nextMonth, selectColor, colorHue, colorSaturation, colorBrightness, colorAlpha, colorEyedropper, colorOriginal, colorFormat, colorRecent, colorPresets, dayView, weekView, allDay, emojiSearch, emojiNoResults, emojiRecent, emojiSkinTone, emojiSkinTones, emojiCategorySmileys, emojiCategoryGestures, emojiCategoryPeople, emojiCategoryAnimals, emojiCategoryNature, emojiCategoryFood, emojiCategoryActivities, emojiCategoryTravel, emojiCategoryObjects, emojiCategorySymbols, emojiCategoryFlags, available, selected, noItems, moveAllRight, moveRight, moveLeft, moveAllLeft, searchCommand, navigateHint, selectHint, openHint, closeHint, loadingMore, noMoreItems, bold, italic, underline, strikethrough, highlight, bulletList, orderedList, blockquote, code, alignLeft, alignCenter, alignRight, undo, redo, link, image, paragraph, heading1, heading2, heading3, insertLink, insertImage, imageUrlLabel, insert, jsonValid, jsonInvalid, jsonFormat, jsonMinify, jsonElements, jsonFields, resultSuccessTitle, resultSuccessDesc, resultErrorTitle, resultErrorDesc, resultWarningTitle, resultWarningDesc, resultInfoTitle, resultInfoDesc, result404Title, result404Desc, result403Title, result403Desc, result500Title, result500Desc, chatTyping, chatRecordingAudio, reorderHandle, reorderGrabbed, reorderMoved, reorderDropped, reorderCancelled, selectAll, clearSearch, kanbanMoved, windowMinimize, windowMaximize, windowRestore, paginationRange, paginationPage, previousPage, nextPage, carousel, carouselItem
|
|
3799
3860
|
|
|
3800
3861
|
## Theme tokens
|
|
3801
3862
|
|
|
3802
3863
|
- Colors (`bg-*`, `text-*`, `border-*`…): primary, on-primary, primary-container, on-primary-container, secondary, on-secondary, secondary-container, on-secondary-container, tertiary, on-tertiary, tertiary-container, on-tertiary-container, primary-fixed, primary-fixed-dim, on-primary-fixed, on-primary-fixed-variant, secondary-fixed, secondary-fixed-dim, on-secondary-fixed, on-secondary-fixed-variant, tertiary-fixed, tertiary-fixed-dim, on-tertiary-fixed, on-tertiary-fixed-variant, error, on-error, error-container, on-error-container, success, on-success, success-container, on-success-container, background, on-background, surface, on-surface, surface-variant, on-surface-variant, surface-dim, surface-bright, surface-container-lowest, surface-container-low, surface-container, surface-container-high, surface-container-highest, outline, outline-variant, shadow, scrim, inverse-surface, inverse-on-surface, inverse-primary
|
|
3803
3864
|
- Type scale (`text-*`): display-large, display-medium, display-small, headline-large, headline-medium, headline-small, title-large, title-medium, title-small, body-large, body-medium, body-small, label-large, label-medium, label-small, display-large-emphasized, display-medium-emphasized, display-small-emphasized, headline-large-emphasized, headline-medium-emphasized, headline-small-emphasized, title-large-emphasized, title-medium-emphasized, title-small-emphasized, body-large-emphasized, body-medium-emphasized, body-small-emphasized, label-large-emphasized, label-medium-emphasized, label-small-emphasized
|
|
3804
|
-
- Radius (`rounded-*`): xs, sm, md, lg, xl
|
|
3865
|
+
- Radius (`rounded-*`): xs, sm, md, lg, xl, lg-increased, xl-increased, xxl
|
|
3805
3866
|
- Shadows (`shadow-*`): elevation-1, elevation-2, elevation-3, elevation-4, elevation-5
|
|
3806
3867
|
- Palettes (`useColorPalette().set(id)` / `createM3UI({ palette })`): purple, indigo, navy, blue, cyan, teal, green, lime, olive, amber, sand, orange, deep-orange, brown, red, coral, crimson, pink, violet, slate, graphite, charcoal, steel, ash, iron, fog, pewter, smoke, stone, zinc, monochrome, rust, gold, emerald, turquoise, cobalt, sapphire, amethyst, magenta, mauve
|
|
@@ -5,16 +5,23 @@ var a = /* @__PURE__ */ t({
|
|
|
5
5
|
__name: "MIcon",
|
|
6
6
|
props: {
|
|
7
7
|
name: {},
|
|
8
|
-
size: { default: 24 }
|
|
8
|
+
size: { default: 24 },
|
|
9
|
+
filled: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
}
|
|
9
13
|
},
|
|
10
14
|
setup(t) {
|
|
11
15
|
return (a, o) => (r(), e("span", {
|
|
12
16
|
class: "material-symbols-outlined leading-none",
|
|
13
|
-
style: n({
|
|
17
|
+
style: n({
|
|
18
|
+
fontSize: `${t.size}px`,
|
|
19
|
+
fontVariationSettings: t.filled ? "'FILL' 1" : void 0
|
|
20
|
+
})
|
|
14
21
|
}, i(t.name), 5));
|
|
15
22
|
}
|
|
16
23
|
});
|
|
17
24
|
//#endregion
|
|
18
25
|
export { a as t };
|
|
19
26
|
|
|
20
|
-
//# sourceMappingURL=MIcon-
|
|
27
|
+
//# sourceMappingURL=MIcon-DLOkQduI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MIcon-DLOkQduI.js","names":[],"sources":["../src/components/MIcon.vue","../src/components/MIcon.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Renders a Material Symbols Outlined glyph by name. Color follows the surrounding text color (set it with a\n * Tailwind text-* class).\n */\nwithDefaults(defineProps<{\n /** Material Symbol name (e.g. \"settings\", \"favorite\") */\n name: string\n /** Icon size in px */\n size?: number\n /** Filled glyph (the Material Symbols FILL axis), as M3 draws a selected icon */\n filled?: boolean\n}>(), { size: 24, filled: false })\n</script>\n\n<template>\n <span class=\"material-symbols-outlined leading-none\" :style=\"{ fontSize: `${size}px`, fontVariationSettings: filled ? `'FILL' 1` : undefined }\">{{\n name\n }}</span>\n</template>\n","<script setup lang=\"ts\">\n/**\n * Renders a Material Symbols Outlined glyph by name. Color follows the surrounding text color (set it with a\n * Tailwind text-* class).\n */\nwithDefaults(defineProps<{\n /** Material Symbol name (e.g. \"settings\", \"favorite\") */\n name: string\n /** Icon size in px */\n size?: number\n /** Filled glyph (the Material Symbols FILL axis), as M3 draws a selected icon */\n filled?: boolean\n}>(), { size: 24, filled: false })\n</script>\n\n<template>\n <span class=\"material-symbols-outlined leading-none\" :style=\"{ fontSize: `${size}px`, fontVariationSettings: filled ? `'FILL' 1` : undefined }\">{{\n name\n }}</span>\n</template>\n"],"mappings":";;;;;;;;;;;;;;oBAgBE,EAAA,GAAA,EAES,QAAA;GAFH,OAAM;GAA0C,OAAK,EAAA;IAAA,UAAA,GAAiB,EAAA,KAAI;IAAA,uBAA6B,EAAA,SAAM,aAAgB,KAAA;GAAS,CAAA;EAC1I,GAAA,EAAA,EAAA,IAAI,GAAA,CAAA"}
|