@pimolu/web-styles 0.1.0-beta.4 → 0.1.0-beta.6

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/dist/pimolu.css CHANGED
@@ -3641,6 +3641,32 @@
3641
3641
  background: ButtonFace;
3642
3642
  }
3643
3643
  }
3644
+ .pimolu-slider__control::-webkit-slider-thumb {
3645
+ transition: box-shadow 150ms ease-out;
3646
+ }
3647
+ .pimolu-slider__control::-moz-range-thumb {
3648
+ transition: box-shadow 150ms ease-out;
3649
+ }
3650
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-webkit-slider-thumb {
3651
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3652
+ }
3653
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-moz-range-thumb {
3654
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3655
+ }
3656
+ @media (prefers-reduced-motion: reduce) {
3657
+ .pimolu-slider__control::-webkit-slider-thumb {
3658
+ transition: none;
3659
+ }
3660
+ .pimolu-slider__control::-moz-range-thumb {
3661
+ transition: none;
3662
+ }
3663
+ }
3664
+ [data-pimolu-motion=off] .pimolu-slider__control::-webkit-slider-thumb {
3665
+ transition: none;
3666
+ }
3667
+ [data-pimolu-motion=off] .pimolu-slider__control::-moz-range-thumb {
3668
+ transition: none;
3669
+ }
3644
3670
 
3645
3671
  /* src/range-slider.css */
3646
3672
  .pimolu-range-slider {
@@ -5477,6 +5503,19 @@
5477
5503
  }
5478
5504
 
5479
5505
  /* src/form-field.css */
5506
+ .pimolu-form-message--error {
5507
+ animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
5508
+ }
5509
+ @keyframes pimolu-field-feedback-in {
5510
+ from {
5511
+ opacity: 0;
5512
+ transform: translateY(-3px);
5513
+ }
5514
+ to {
5515
+ opacity: 1;
5516
+ transform: translateY(0);
5517
+ }
5518
+ }
5480
5519
  .pimolu-form-field {
5481
5520
  display: grid;
5482
5521
  gap: 6px;
@@ -5646,13 +5685,32 @@
5646
5685
  transform: rotate(180deg);
5647
5686
  }
5648
5687
  .pimolu-accordion__content {
5688
+ display: grid;
5689
+ grid-template-rows: 1fr;
5649
5690
  min-width: 0;
5650
5691
  color: var(--pimolu-muted-foreground);
5651
5692
  font-size: 0.875rem;
5652
5693
  line-height: 1.6;
5653
5694
  }
5695
+ .pimolu-accordion__content[hidden] {
5696
+ display: none;
5697
+ }
5698
+ .pimolu-accordion__content-clip {
5699
+ min-height: 0;
5700
+ overflow: hidden;
5701
+ }
5654
5702
  .pimolu-accordion__content[data-state=open] {
5655
- animation: pimolu-accordion-in 160ms ease-out;
5703
+ animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
5704
+ }
5705
+ .pimolu-accordion__content[data-state=closing] {
5706
+ display: grid;
5707
+ animation: pimolu-accordion-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
5708
+ }
5709
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__content {
5710
+ animation: none;
5711
+ }
5712
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__chevron {
5713
+ transition: none;
5656
5714
  }
5657
5715
  .pimolu-accordion__content-inner {
5658
5716
  padding: 0 0 16px;
@@ -5666,14 +5724,26 @@
5666
5724
  }
5667
5725
  @keyframes pimolu-accordion-in {
5668
5726
  from {
5727
+ grid-template-rows: 0fr;
5669
5728
  opacity: 0;
5670
5729
  transform: translateY(-3px);
5671
5730
  }
5672
5731
  to {
5732
+ grid-template-rows: 1fr;
5673
5733
  opacity: 1;
5674
5734
  transform: translateY(0);
5675
5735
  }
5676
5736
  }
5737
+ @keyframes pimolu-accordion-out {
5738
+ from {
5739
+ grid-template-rows: 1fr;
5740
+ opacity: 1;
5741
+ }
5742
+ to {
5743
+ grid-template-rows: 0fr;
5744
+ opacity: 0;
5745
+ }
5746
+ }
5677
5747
  @media (prefers-reduced-motion: reduce) {
5678
5748
  .pimolu-accordion__chevron {
5679
5749
  transition: none;
@@ -5681,6 +5751,10 @@
5681
5751
  .pimolu-accordion__content[data-state=open] {
5682
5752
  animation: none;
5683
5753
  }
5754
+ .pimolu-accordion__content[data-state=closing] {
5755
+ display: none;
5756
+ animation: none;
5757
+ }
5684
5758
  }
5685
5759
  @media (forced-colors: active) {
5686
5760
  .pimolu-accordion__item {
@@ -6226,6 +6300,76 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6226
6300
  .pimolu-navbar--transparent {
6227
6301
  background: transparent;
6228
6302
  }
6303
+ .pimolu-navbar__menu {
6304
+ display: contents;
6305
+ }
6306
+ @container pimolu-navbar (max-width: 700px) {
6307
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__content,
6308
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
6309
+ animation: pimolu-navbar-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1);
6310
+ }
6311
+ }
6312
+ @keyframes pimolu-navbar-reveal {
6313
+ from {
6314
+ opacity: 0;
6315
+ transform: translateY(-4px);
6316
+ }
6317
+ to {
6318
+ opacity: 1;
6319
+ transform: translateY(0);
6320
+ }
6321
+ }
6322
+ .pimolu-navbar__menu-panel {
6323
+ display: flex;
6324
+ flex-direction: column;
6325
+ gap: var(--pimolu-spacing-4, 16px);
6326
+ padding-top: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-top));
6327
+ padding-bottom: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-bottom));
6328
+ }
6329
+ .pimolu-navbar__menu-panel .pimolu-navbar__content {
6330
+ display: flex;
6331
+ flex-direction: column;
6332
+ align-items: stretch;
6333
+ gap: var(--pimolu-spacing-1, 4px);
6334
+ width: 100%;
6335
+ order: initial;
6336
+ overflow: visible;
6337
+ }
6338
+ .pimolu-navbar__menu-panel .pimolu-navbar__item {
6339
+ width: 100%;
6340
+ min-height: 44px;
6341
+ white-space: normal;
6342
+ }
6343
+ .pimolu-navbar__menu-panel .pimolu-navbar__actions {
6344
+ display: flex;
6345
+ width: 100%;
6346
+ margin-inline-start: 0;
6347
+ padding-block-start: var(--pimolu-spacing-4, 16px);
6348
+ border-block-start: 1px solid var(--pimolu-border);
6349
+ }
6350
+ .pimolu-navbar__menu-panel .pimolu-drawer__header {
6351
+ padding-inline-end: 48px;
6352
+ }
6353
+ .pimolu-navbar__menu-panel .pimolu-drawer__close {
6354
+ z-index: 2;
6355
+ width: 44px;
6356
+ height: 44px;
6357
+ color: var(--pimolu-foreground);
6358
+ border: 1px solid var(--pimolu-border);
6359
+ background: var(--pimolu-muted);
6360
+ }
6361
+ .pimolu-drawer__content.pimolu-navbar__menu-panel--full {
6362
+ inset: 0;
6363
+ width: 100%;
6364
+ height: 100%;
6365
+ border-radius: 0;
6366
+ }
6367
+ .pimolu-navbar__menu-layer--instant,
6368
+ .pimolu-navbar__menu-layer--instant .pimolu-drawer__overlay,
6369
+ .pimolu-navbar__menu-layer--instant.pimolu-drawer__content {
6370
+ animation: none !important;
6371
+ transition: none !important;
6372
+ }
6229
6373
  .pimolu-navbar--floating {
6230
6374
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
6231
6375
  border-radius: var(--pimolu-radius-lg);
@@ -6500,6 +6644,14 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6500
6644
  color: Highlight;
6501
6645
  }
6502
6646
  }
6647
+ .pimolu-sidebar {
6648
+ transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), padding 220ms ease-out;
6649
+ }
6650
+ @media (prefers-reduced-motion: reduce) {
6651
+ .pimolu-sidebar {
6652
+ transition: none;
6653
+ }
6654
+ }
6503
6655
 
6504
6656
  /* src/navigation-menu.css */
6505
6657
  .pimolu-navigation-menu {
@@ -13834,12 +13986,23 @@ button.pimolu-list__row:focus-visible {
13834
13986
  justify-self: start;
13835
13987
  }
13836
13988
  .pimolu-form__error {
13989
+ animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
13837
13990
  margin: 0;
13838
13991
  color: var(--pimolu-danger, #dc2626);
13839
13992
  font-size: 0.8125rem;
13840
13993
  line-height: 1.4;
13841
13994
  overflow-wrap: anywhere;
13842
13995
  }
13996
+ @keyframes pimolu-form-feedback-in {
13997
+ from {
13998
+ opacity: 0;
13999
+ transform: translateY(-3px);
14000
+ }
14001
+ to {
14002
+ opacity: 1;
14003
+ transform: translateY(0);
14004
+ }
14005
+ }
13843
14006
  @media (forced-colors: active) {
13844
14007
  .pimolu-form__error {
13845
14008
  color: LinkText;
@@ -16605,6 +16768,43 @@ button.pimolu-list__row:focus-visible {
16605
16768
  }
16606
16769
  }
16607
16770
 
16771
+ /* src/motion.css */
16772
+ :root {
16773
+ --pimolu-interaction-duration: 150ms;
16774
+ --pimolu-interaction-easing: ease-out;
16775
+ }
16776
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
16777
+ transition:
16778
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
16779
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
16780
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
16781
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
16782
+ }
16783
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
16784
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
16785
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
16786
+ animation: none !important;
16787
+ transition: none !important;
16788
+ scroll-behavior: auto !important;
16789
+ }
16790
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
16791
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
16792
+ display: none !important;
16793
+ }
16794
+ @media (prefers-reduced-motion: reduce) {
16795
+ :where([class^=pimolu-], [class*=" pimolu-"]),
16796
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
16797
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
16798
+ animation: none !important;
16799
+ transition: none !important;
16800
+ scroll-behavior: auto !important;
16801
+ }
16802
+ .pimolu-accordion__content[hidden],
16803
+ .pimolu-accordion__content[data-state=closing] {
16804
+ display: none !important;
16805
+ }
16806
+ }
16807
+
16608
16808
  /* src/toolbar.css */
16609
16809
  .pimolu-toolbar {
16610
16810
  display: flex;
@@ -18039,6 +18239,7 @@ button.pimolu-list__row:focus-visible {
18039
18239
  white-space: nowrap;
18040
18240
  }
18041
18241
  a.pimolu-chat__attachment-name {
18242
+ text-decoration: underline;
18042
18243
  text-underline-offset: 2px;
18043
18244
  }
18044
18245
  a.pimolu-chat__attachment-name:hover {