@umami/react-zen 0.120.0 → 0.121.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.120.0",
3
+ "version": "0.121.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -3333,15 +3333,17 @@ li {
3333
3333
  }
3334
3334
 
3335
3335
  /* virtual-css:css:c1c264103e87c7a7d9c345a7e75f073b */
3336
- .Form_form__ZjMwZ {
3336
+ .Form_form__NmE1N {
3337
+ display: grid;
3337
3338
  position: relative;
3338
3339
  font-size: var(--font-size);
3340
+ gap: var(--gap);
3339
3341
  }
3340
- .Form_text__NDc1Y {
3342
+ .Form_text__MjgxN {
3341
3343
  text-align: center;
3342
3344
  margin: auto;
3343
3345
  }
3344
- .Form_icon__ZGE1Z {
3346
+ .Form_icon__MTI0N {
3345
3347
  align-self: flex-start;
3346
3348
  }
3347
3349
 
@@ -3965,61 +3967,55 @@ body a.Button_button__NDYwM {
3965
3967
  }
3966
3968
  }
3967
3969
 
3968
- /* virtual-css:css:ac55918cdbb6b3a9ac9deedf05ce3806 */
3969
- .input_field__ZmMwY {
3970
- position: relative;
3971
- }
3972
- .input_field__ZmMwY,
3973
- .input_row__NTc1Z {
3974
- position: relative;
3975
- }
3976
- .input_field__ZmMwY[data-readonly] .input_input__MzU4N,
3977
- .input_field__ZmMwY[data-disabled] .input_input__MzU4N {
3978
- background: var(--base-color-2);
3979
- }
3980
- .input_input__MzU4N {
3970
+ /* virtual-css:css:f85c857d13f820fa4badfb09996080b9 */
3971
+ .TextField_field__YWExY {
3972
+ display: flex;
3973
+ align-items: center;
3974
+ padding: 0 var(--padding-x);
3975
+ gap: var(--gap);
3976
+ font-family: inherit;
3981
3977
  font-size: var(--font-size);
3982
3978
  color: var(--font-color);
3983
3979
  border: var(--border);
3984
3980
  border-radius: var(--border-radius);
3985
3981
  background: var(--background-color);
3986
3982
  box-shadow: var(--box-shadow);
3987
- padding: var(--padding);
3988
3983
  line-height: 1.5rem;
3989
- width: 100%;
3990
- }
3991
- .input_input__MzU4N:focus {
3992
- border-color: transparent;
3993
- outline: var(--outline);
3994
- outline-offset: -1px;
3995
- }
3996
- .input_input__MzU4N::placeholder {
3997
- color: var(--font-color-muted);
3998
- }
3999
- .input_input__MzU4N:disabled {
4000
- color: var(--font-color-muted);
4001
- }
4002
- .input_input__MzU4N::-webkit-search-cancel-button,
4003
- .input_input__MzU4N::-webkit-search-decoration {
4004
- -webkit-appearance: none;
4005
- }
4006
- .input_icon__YzA4Z {
4007
- color: var(--font-color-muted);
4008
- }
4009
- .input_icon__YzA4Z:hover {
4010
- color: var(--font-color);
4011
- cursor: pointer;
3984
+ position: relative;
3985
+ &[data-readonly] {
3986
+ background: var(--base-color-2);
3987
+ }
3988
+ &[data-disabled] {
3989
+ color: var(--font-color-muted);
3990
+ background: var(--base-color-2);
3991
+ }
3992
+ &:focus-within {
3993
+ border-color: transparent;
3994
+ outline: var(--outline);
3995
+ outline-offset: -1px;
3996
+ &[data-readonly] {
3997
+ border-color: var(--border-color);
3998
+ outline: none;
3999
+ }
4000
+ }
4012
4001
  }
4013
-
4014
- /* virtual-css:css:f85c857d13f820fa4badfb09996080b9 */
4015
- .TextField_allowCopy__Y2RhY {
4016
- padding-right: 32px;
4002
+ .TextField_field__YWExY input,
4003
+ .TextField_field__YWExY textarea {
4004
+ border: none;
4005
+ outline: none;
4006
+ padding: var(--padding-y) 0;
4007
+ background: transparent;
4008
+ flex: 1;
4009
+ &::placeholder {
4010
+ color: var(--font-color-muted);
4011
+ }
4012
+ &::-webkit-search-cancel-button,
4013
+ &::-webkit-search-decoration {
4014
+ -webkit-appearance: none;
4015
+ }
4017
4016
  }
4018
- .TextField_icon__MWVlN {
4019
- position: absolute;
4020
- top: calc(var(--padding-y) + 4px);
4021
- right: var(--padding-x);
4022
- background: none;
4017
+ .TextField_textarea__ODY3N {
4018
+ padding-right: 0;
4023
4019
  }
4024
4020
 
4025
4021
  /* virtual-css:css:603e8ab63f869366a7b9c81da6a1d757 */
@@ -4349,7 +4345,7 @@ body a.Button_button__NDYwM {
4349
4345
  }
4350
4346
 
4351
4347
  /* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
4352
- .Menu_menu__ZGIxY {
4348
+ .Menu_menu__OTZkN {
4353
4349
  min-width: 200px;
4354
4350
  border: var(--border);
4355
4351
  border-radius: var(--border-radius);
@@ -4358,19 +4354,19 @@ body a.Button_button__NDYwM {
4358
4354
  background: var(--background-color);
4359
4355
  overflow: hidden;
4360
4356
  }
4361
- .Menu_separator__YjgwM {
4357
+ .Menu_separator__ZTgwZ {
4362
4358
  border-bottom: var(--border);
4363
4359
  margin: var(--spacing-2) calc(-1 * var(--spacing-3));
4364
4360
  }
4365
- .Menu_section__MmNkY:not(:last-child) {
4361
+ .Menu_section__ZDVhM:not(:last-child) {
4366
4362
  margin-bottom: var(--spacing-4);
4367
4363
  }
4368
- .Menu_header__YmQ0M {
4364
+ .Menu_header__YWE2Z {
4369
4365
  font-size: var(--font-size-2);
4370
4366
  font-weight: var(--font-weight-bold);
4371
4367
  padding: var(--padding);
4372
4368
  }
4373
- .Menu_item__NzJlM {
4369
+ .Menu_item__MTU4N {
4374
4370
  display: flex;
4375
4371
  align-items: center;
4376
4372
  gap: var(--gap);
@@ -4383,26 +4379,28 @@ body a.Button_button__NDYwM {
4383
4379
  outline: none;
4384
4380
  width: 100%;
4385
4381
  }
4386
- .Menu_item__NzJlM[data-disabled] {
4382
+ .Menu_item__MTU4N[data-disabled] {
4387
4383
  color: var(--font-color-disabled);
4388
4384
  }
4389
- .Menu_item__NzJlM[data-focus],
4390
- .Menu_item__NzJlM[data-focus-visible] {
4385
+ .Menu_item__MTU4N[data-focus],
4386
+ .Menu_item__MTU4N[data-focus-visible] {
4391
4387
  outline: var(--outline);
4392
4388
  background: var(--highlight-color);
4393
4389
  }
4394
- .Menu_item__NzJlM:hover {
4390
+ .Menu_item__MTU4N:hover {
4395
4391
  background: var(--highlight-color);
4396
4392
  }
4397
- .Menu_item__NzJlM[data-selected] {
4393
+ .Menu_item__MTU4N[data-selected] {
4398
4394
  font-weight: bold;
4395
+ & .Menu_checkmark__MTk4O {
4396
+ display: flex;
4397
+ justify-content: flex-end;
4398
+ }
4399
4399
  }
4400
- .Menu_item__NzJlM[data-selected] .Menu_check__ZDc1Z {
4401
- display: flex;
4402
- justify-content: flex-end;
4403
- flex: 1;
4400
+ .Menu_checkmark__MTk4O {
4401
+ display: none;
4404
4402
  }
4405
- .Menu_check__ZDc1Z {
4403
+ .Menu_hideCheckmark__MjEyZ .Menu_checkmark__MTk4O {
4406
4404
  display: none;
4407
4405
  }
4408
4406
 
@@ -4603,6 +4601,52 @@ body a.Button_button__NDYwM {
4603
4601
  }
4604
4602
  }
4605
4603
 
4604
+ /* virtual-css:css:ac55918cdbb6b3a9ac9deedf05ce3806 */
4605
+ .input_field__ZmMwY {
4606
+ position: relative;
4607
+ }
4608
+ .input_field__ZmMwY,
4609
+ .input_row__NTc1Z {
4610
+ position: relative;
4611
+ }
4612
+ .input_field__ZmMwY[data-readonly] .input_input__MzU4N,
4613
+ .input_field__ZmMwY[data-disabled] .input_input__MzU4N {
4614
+ background: var(--base-color-2);
4615
+ }
4616
+ .input_input__MzU4N {
4617
+ font-size: var(--font-size);
4618
+ color: var(--font-color);
4619
+ border: var(--border);
4620
+ border-radius: var(--border-radius);
4621
+ background: var(--background-color);
4622
+ box-shadow: var(--box-shadow);
4623
+ padding: var(--padding);
4624
+ line-height: 1.5rem;
4625
+ width: 100%;
4626
+ }
4627
+ .input_input__MzU4N:focus {
4628
+ border-color: transparent;
4629
+ outline: var(--outline);
4630
+ outline-offset: -1px;
4631
+ }
4632
+ .input_input__MzU4N::placeholder {
4633
+ color: var(--font-color-muted);
4634
+ }
4635
+ .input_input__MzU4N:disabled {
4636
+ color: var(--font-color-muted);
4637
+ }
4638
+ .input_input__MzU4N::-webkit-search-cancel-button,
4639
+ .input_input__MzU4N::-webkit-search-decoration {
4640
+ -webkit-appearance: none;
4641
+ }
4642
+ .input_icon__YzA4Z {
4643
+ color: var(--font-color-muted);
4644
+ }
4645
+ .input_icon__YzA4Z:hover {
4646
+ color: var(--font-color);
4647
+ cursor: pointer;
4648
+ }
4649
+
4606
4650
  /* virtual-css:css:3547a441584a5024882cb71ab3ccf244 */
4607
4651
  .PasswordField_icon__NTRlM {
4608
4652
  position: absolute;
@@ -4746,32 +4790,6 @@ body a.Button_button__NDYwM {
4746
4790
  background-color: var(--base-color-4);
4747
4791
  }
4748
4792
 
4749
- /* virtual-css:css:3ce2e85ef9035a94276951bdf0511402 */
4750
- .SearchField_search__MzkwY {
4751
- position: absolute;
4752
- top: 0;
4753
- left: var(--spacing-3);
4754
- bottom: 0;
4755
- height: 100%;
4756
- background: none;
4757
- }
4758
- .SearchField_input__OGFiY {
4759
- padding-left: var(--spacing-7);
4760
- padding-right: var(--spacing-7);
4761
- }
4762
- .SearchField_close__NmJkM {
4763
- display: flex;
4764
- align-items: center;
4765
- justify-content: center;
4766
- position: absolute;
4767
- top: 0;
4768
- right: var(--spacing-3);
4769
- bottom: 0;
4770
- height: 100%;
4771
- border: 0;
4772
- background: none;
4773
- }
4774
-
4775
4793
  /* virtual-css:css:844962527a8f0e375161b58db0fc39ed */
4776
4794
  .Sidebar_sidenav__ODc2Z {
4777
4795
  height: 100%;
@@ -5098,20 +5116,6 @@ body a.Button_button__NDYwM {
5098
5116
  cursor: default;
5099
5117
  }
5100
5118
 
5101
- /* virtual-css:css:884bc0b1f4a7097bca42714da27c0d2b */
5102
- .TextArea_textarea__MTk5Y {
5103
- font-family: inherit;
5104
- }
5105
- .TextArea_resize-none__OTJhY textarea {
5106
- resize: none;
5107
- }
5108
- .TextArea_resize-horizontal__YWIyZ textarea {
5109
- resize: horizontal;
5110
- }
5111
- .TextArea_resize-vertical__NTM3O textarea {
5112
- resize: vertical;
5113
- }
5114
-
5115
5119
  /* virtual-css:css:c0d584d0daeaec1be71f8a50d43bf66c */
5116
5120
  .ThemeButton_button__Zjc5N {
5117
5121
  width: 50px;