@moni-labs/moni-ui 0.4.8 → 0.4.9
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/custom-elements.json +3 -3
- package/dist/browser/moni-ui.iife.min.js +10 -3
- package/dist/browser/moni-ui.iife.min.js.br +0 -0
- package/dist/browser/moni-ui.iife.min.js.gz +0 -0
- package/dist/browser/moni-ui.iife.min.js.map +1 -1
- package/dist/browser/moni-ui.min.js +10 -0
- package/dist/browser/moni-ui.min.js.br +0 -0
- package/dist/browser/moni-ui.min.js.gz +0 -0
- package/dist/browser/moni-ui.min.js.map +1 -1
- package/dist/cdn/chunks/{class-map-EVPcxmRq.js → class-map-C4FUGLfQ.js} +1 -1
- package/dist/cdn/chunks/{decorate-D4jKxi6H.js → decorate-C9xO7mby.js} +7 -0
- package/dist/cdn/chunks/if-defined-6foei_QT.js +1 -0
- package/dist/cdn/chunks/{live-DdUrWiUp.js → live-DcFRrlh7.js} +1 -1
- package/dist/cdn/components/moni-app-bar.js +1 -1
- package/dist/cdn/components/moni-badge.js +1 -1
- package/dist/cdn/components/moni-bottom-sheet.js +1 -1
- package/dist/cdn/components/moni-button-group.js +1 -1
- package/dist/cdn/components/moni-button-segment.js +1 -1
- package/dist/cdn/components/moni-button.js +1 -1
- package/dist/cdn/components/moni-card.js +1 -1
- package/dist/cdn/components/moni-carousel.js +1 -1
- package/dist/cdn/components/moni-checkbox.js +1 -1
- package/dist/cdn/components/moni-chip.js +1 -1
- package/dist/cdn/components/moni-color-field.js +1 -1
- package/dist/cdn/components/moni-context-menu.js +1 -1
- package/dist/cdn/components/moni-dialog.js +1 -1
- package/dist/cdn/components/moni-divider.js +1 -1
- package/dist/cdn/components/moni-expansion.js +1 -1
- package/dist/cdn/components/moni-fab-menu.js +1 -1
- package/dist/cdn/components/moni-fab.js +1 -1
- package/dist/cdn/components/moni-file-field.js +1 -1
- package/dist/cdn/components/moni-icon.js +1 -1
- package/dist/cdn/components/moni-list-item.js +1 -1
- package/dist/cdn/components/moni-list.js +1 -1
- package/dist/cdn/components/moni-loading-indicator.js +1 -1
- package/dist/cdn/components/moni-menu-item.js +1 -1
- package/dist/cdn/components/moni-menu.js +1 -1
- package/dist/cdn/components/moni-morph-modal.js +1 -1
- package/dist/cdn/components/moni-nav-item.js +1 -1
- package/dist/cdn/components/moni-nav.js +1 -1
- package/dist/cdn/components/moni-progress.js +1 -1
- package/dist/cdn/components/moni-radio.js +1 -1
- package/dist/cdn/components/moni-ripple.js +1 -1
- package/dist/cdn/components/moni-segmented-button.js +1 -1
- package/dist/cdn/components/moni-select-option.js +1 -1
- package/dist/cdn/components/moni-select.js +2 -2
- package/dist/cdn/components/moni-shape.js +1 -1
- package/dist/cdn/components/moni-side-sheet.js +1 -1
- package/dist/cdn/components/moni-slider.js +1 -1
- package/dist/cdn/components/moni-snackbar.js +1 -1
- package/dist/cdn/components/moni-split-button.js +1 -1
- package/dist/cdn/components/moni-step.js +1 -1
- package/dist/cdn/components/moni-stepper.js +1 -1
- package/dist/cdn/components/moni-switch.js +1 -1
- package/dist/cdn/components/moni-tab.js +1 -1
- package/dist/cdn/components/moni-tabs.js +1 -1
- package/dist/cdn/components/moni-text-field.js +2 -2
- package/dist/cdn/components/moni-textarea.js +2 -2
- package/dist/cdn/components/moni-time-picker.js +1 -1
- package/dist/cdn/components/moni-toolbar.js +1 -1
- package/dist/cdn/components/moni-tooltip.js +1 -1
- package/dist/cdn/components/moni-typography.js +1 -1
- package/dist/cdn/importmap.json +98 -98
- package/dist/components/_base/field-styles.d.ts.map +1 -1
- package/dist/components/_base/field-styles.js +7 -0
- package/dist/components/moni-select.d.ts +2 -2
- package/dist/components/moni-select.d.ts.map +1 -1
- package/dist/components/moni-select.js +2 -1
- package/dist/components/moni-text-field.d.ts +2 -2
- package/dist/components/moni-text-field.d.ts.map +1 -1
- package/dist/components/moni-text-field.js +2 -1
- package/dist/components/moni-textarea.d.ts +2 -2
- package/dist/components/moni-textarea.d.ts.map +1 -1
- package/dist/components/moni-textarea.js +2 -1
- package/docs/api.json +7 -4
- package/docs/assets/moni-select/shape--small-round.png +0 -0
- package/docs/assets/moni-text-field/shape--small-round.png +0 -0
- package/docs/assets/moni-textarea/shape--small-round.png +0 -0
- package/docs/components/select.md +3 -1
- package/docs/components/text-field.md +3 -1
- package/docs/components/textarea.md +3 -1
- package/package.json +1 -1
- package/src/components/_base/field-styles.ts +7 -0
- package/src/components/moni-select.test.ts +8 -0
- package/src/components/moni-select.ts +3 -2
- package/src/components/moni-text-field.test.ts +8 -0
- package/src/components/moni-text-field.ts +3 -2
- package/src/components/moni-textarea.test.ts +8 -0
- package/src/components/moni-textarea.ts +3 -2
- package/dist/cdn/chunks/if-defined-DlAUOFi9.js +0 -1
|
@@ -1013,6 +1013,13 @@ var H = class extends Le {
|
|
|
1013
1013
|
.field[class*='round'].extra {
|
|
1014
1014
|
border-radius: 2rem;
|
|
1015
1015
|
}
|
|
1016
|
+
/* Compact rounding for dense forms without falling back to square corners. */
|
|
1017
|
+
.field.small-round,
|
|
1018
|
+
.field.small-round.small,
|
|
1019
|
+
.field.small-round.large,
|
|
1020
|
+
.field.small-round.extra {
|
|
1021
|
+
border-radius: 0.5rem;
|
|
1022
|
+
}
|
|
1016
1023
|
|
|
1017
1024
|
/* ─── Icon positioning ───────────────────────────────────────────────────── */
|
|
1018
1025
|
/* Generic rule: absolutely positions any icon/image/svg inside the field. */
|
|
@@ -6835,6 +6842,7 @@ var K = class extends H {
|
|
|
6835
6842
|
suffix: !0,
|
|
6836
6843
|
invalid: this.error,
|
|
6837
6844
|
round: this.shape === "round",
|
|
6845
|
+
"small-round": this.shape === "small-round",
|
|
6838
6846
|
square: this.shape === "no-round"
|
|
6839
6847
|
}, o = this.icon ? L`<i class="leading-icon" part="leading-icon"
|
|
6840
6848
|
><moni-icon name="${this.icon}"></moni-icon
|
|
@@ -8069,6 +8077,7 @@ var q = class extends H {
|
|
|
8069
8077
|
suffix: t,
|
|
8070
8078
|
invalid: this.error,
|
|
8071
8079
|
round: this.shape === "round",
|
|
8080
|
+
"small-round": this.shape === "small-round",
|
|
8072
8081
|
square: this.shape === "no-round"
|
|
8073
8082
|
}, a = this.placeholder || (this.label ? " " : ""), o = this.icon ? L`<i class="leading-icon" part="leading-icon"
|
|
8074
8083
|
><moni-icon name="${this.icon}"></moni-icon
|
|
@@ -11311,6 +11320,7 @@ var Rt = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
11311
11320
|
"suffix-action-field": !!this.suffixButtonIcon || this._hasSuffixSlot,
|
|
11312
11321
|
invalid: this.error,
|
|
11313
11322
|
round: this.shape === "round" && this.variant !== "underlined",
|
|
11323
|
+
"small-round": this.shape === "small-round" && this.variant !== "underlined",
|
|
11314
11324
|
square: this.shape === "no-round"
|
|
11315
11325
|
}, i = this.placeholder || (this.label ? " " : ""), a = this.icon ? L`<i class="leading-icon" part="leading-icon"
|
|
11316
11326
|
><moni-icon name="${this.icon}"></moni-icon
|
|
Binary file
|
|
Binary file
|