@moni-labs/moni-ui 0.4.9 → 0.4.10

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.
Files changed (68) hide show
  1. package/dist/browser/moni-ui.iife.min.js +15 -0
  2. package/dist/browser/moni-ui.iife.min.js.br +0 -0
  3. package/dist/browser/moni-ui.iife.min.js.gz +0 -0
  4. package/dist/browser/moni-ui.iife.min.js.map +1 -1
  5. package/dist/browser/moni-ui.min.js +15 -0
  6. package/dist/browser/moni-ui.min.js.br +0 -0
  7. package/dist/browser/moni-ui.min.js.gz +0 -0
  8. package/dist/browser/moni-ui.min.js.map +1 -1
  9. package/dist/cdn/chunks/{class-map-C4FUGLfQ.js → class-map-DVIPqVv8.js} +1 -1
  10. package/dist/cdn/chunks/{decorate-C9xO7mby.js → decorate-B_60A6SM.js} +15 -0
  11. package/dist/cdn/chunks/if-defined-35Uf60Gp.js +1 -0
  12. package/dist/cdn/chunks/{live-DcFRrlh7.js → live-0xU7YMoc.js} +1 -1
  13. package/dist/cdn/components/moni-app-bar.js +1 -1
  14. package/dist/cdn/components/moni-badge.js +1 -1
  15. package/dist/cdn/components/moni-bottom-sheet.js +1 -1
  16. package/dist/cdn/components/moni-button-group.js +1 -1
  17. package/dist/cdn/components/moni-button-segment.js +1 -1
  18. package/dist/cdn/components/moni-button.js +1 -1
  19. package/dist/cdn/components/moni-card.js +1 -1
  20. package/dist/cdn/components/moni-carousel.js +1 -1
  21. package/dist/cdn/components/moni-checkbox.js +1 -1
  22. package/dist/cdn/components/moni-chip.js +1 -1
  23. package/dist/cdn/components/moni-color-field.js +1 -1
  24. package/dist/cdn/components/moni-context-menu.js +1 -1
  25. package/dist/cdn/components/moni-dialog.js +1 -1
  26. package/dist/cdn/components/moni-divider.js +1 -1
  27. package/dist/cdn/components/moni-expansion.js +1 -1
  28. package/dist/cdn/components/moni-fab-menu.js +1 -1
  29. package/dist/cdn/components/moni-fab.js +1 -1
  30. package/dist/cdn/components/moni-file-field.js +1 -1
  31. package/dist/cdn/components/moni-icon.js +1 -1
  32. package/dist/cdn/components/moni-list-item.js +1 -1
  33. package/dist/cdn/components/moni-list.js +1 -1
  34. package/dist/cdn/components/moni-loading-indicator.js +1 -1
  35. package/dist/cdn/components/moni-menu-item.js +1 -1
  36. package/dist/cdn/components/moni-menu.js +1 -1
  37. package/dist/cdn/components/moni-morph-modal.js +1 -1
  38. package/dist/cdn/components/moni-nav-item.js +1 -1
  39. package/dist/cdn/components/moni-nav.js +1 -1
  40. package/dist/cdn/components/moni-progress.js +1 -1
  41. package/dist/cdn/components/moni-radio.js +1 -1
  42. package/dist/cdn/components/moni-ripple.js +1 -1
  43. package/dist/cdn/components/moni-segmented-button.js +1 -1
  44. package/dist/cdn/components/moni-select-option.js +1 -1
  45. package/dist/cdn/components/moni-select.js +1 -1
  46. package/dist/cdn/components/moni-shape.js +1 -1
  47. package/dist/cdn/components/moni-side-sheet.js +1 -1
  48. package/dist/cdn/components/moni-slider.js +1 -1
  49. package/dist/cdn/components/moni-snackbar.js +1 -1
  50. package/dist/cdn/components/moni-split-button.js +1 -1
  51. package/dist/cdn/components/moni-step.js +1 -1
  52. package/dist/cdn/components/moni-stepper.js +1 -1
  53. package/dist/cdn/components/moni-switch.js +1 -1
  54. package/dist/cdn/components/moni-tab.js +1 -1
  55. package/dist/cdn/components/moni-tabs.js +1 -1
  56. package/dist/cdn/components/moni-text-field.js +1 -1
  57. package/dist/cdn/components/moni-textarea.js +1 -1
  58. package/dist/cdn/components/moni-time-picker.js +1 -1
  59. package/dist/cdn/components/moni-toolbar.js +1 -1
  60. package/dist/cdn/components/moni-tooltip.js +1 -1
  61. package/dist/cdn/components/moni-typography.js +1 -1
  62. package/dist/cdn/importmap.json +98 -98
  63. package/dist/components/_base/field-styles.d.ts.map +1 -1
  64. package/dist/components/_base/field-styles.js +15 -0
  65. package/docs/api.json +1 -1
  66. package/package.json +1 -1
  67. package/src/components/_base/field-styles.ts +15 -0
  68. package/dist/cdn/chunks/if-defined-6foei_QT.js +0 -1
@@ -600,6 +600,11 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
600
600
  .field.label[class*='round'] > label {
601
601
  inset: -0.5rem 1.9375rem 0 var(--_start);
602
602
  }
603
+ /* Compact rounding keeps the label closer to the edge than pill fields. */
604
+ .field.label.small-round > label {
605
+ --_start: 1rem;
606
+ inset: -0.5rem 0.9375rem 0 var(--_start);
607
+ }
603
608
 
604
609
  /* ─── Label lift selector group ──────────────────────────────────────────── */
605
610
  /* The label lifts (scales down + moves up) in four conditions:
@@ -723,6 +728,16 @@ var MoniUI=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Modul
723
728
  clip-path: polygon(-2% -2%,1.25rem -2%,1.25rem .5rem,calc(100% - 2rem) .5rem,calc(100% - 2rem) -2%,102% -2%,102% 102%,-2% 102%);
724
729
  }
725
730
 
731
+ /* The compact shape needs a narrower leading segment so it never crosses
732
+ the first glyph of the floating label. */
733
+ .field.label.border.small-round:not(.fill)
734
+ > :is(input, textarea):is(:focus, [placeholder]:not(:placeholder-shown), .active),
735
+ .field.label.border.small-round:not(.fill) > select,
736
+ .field.label.border.small-round:not(.fill) > input.active,
737
+ .field.label.border.small-round:not(.fill) > select.active {
738
+ clip-path: polygon(-2% -2%,.75rem -2%,.75rem .5rem,calc(100% - 1rem) .5rem,calc(100% - 1rem) -2%,102% -2%,102% 102%,-2% 102%);
739
+ }
740
+
726
741
  /* ─── Label color changes ─────────────────────────────────────────────────── */
727
742
  /* On focus: label turns primary-colored to draw attention. */
728
743
  .field.label > :focus + label {
Binary file
Binary file