@ostack.tech/ui 1.3.2 → 1.3.4

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 CHANGED
@@ -7,8 +7,9 @@ To build forms with [ostack/KForm](https://kform.ostack.tech/), see
7
7
 
8
8
  ## Documentation
9
9
 
10
- - [ostack/UI documentation](https://ui.ostack.tech/) ([llms.txt](https://ui.ostack.tech/llms.txt)):
11
- the latest ostack/UI and ostack/UI-KForm documentation.
10
+ - [ostack/UI documentation](https://ui.ostack.tech/) ([llms.txt](https://ui.ostack.tech/llms.txt),
11
+ [llms-full.txt](https://ui.ostack.tech/llms-full.txt)): the latest ostack/UI and ostack/UI-KForm
12
+ documentation.
12
13
 
13
14
  ## License
14
15
 
@@ -193,16 +193,16 @@
193
193
  --o-ui-ml: var(--o-ui-ml-xxl);
194
194
  }
195
195
  }
196
- :is(.o-ui-root, .o-ui-root *)[data-has-mt] {
196
+ :where(.o-ui-root, .o-ui-root *)[data-has-mt] {
197
197
  margin-top: var(--o-ui-mt);
198
198
  }
199
- :is(.o-ui-root, .o-ui-root *)[data-has-mr] {
199
+ :where(.o-ui-root, .o-ui-root *)[data-has-mr] {
200
200
  margin-right: var(--o-ui-mr);
201
201
  }
202
- :is(.o-ui-root, .o-ui-root *)[data-has-mb] {
202
+ :where(.o-ui-root, .o-ui-root *)[data-has-mb] {
203
203
  margin-bottom: var(--o-ui-mb);
204
204
  }
205
- :is(.o-ui-root, .o-ui-root *)[data-has-ml] {
205
+ :where(.o-ui-root, .o-ui-root *)[data-has-ml] {
206
206
  margin-left: var(--o-ui-ml);
207
207
  }
208
208
 
@@ -308,16 +308,16 @@
308
308
  --o-ui-pl: var(--o-ui-pl-xxl);
309
309
  }
310
310
  }
311
- :is(.o-ui-root, .o-ui-root *)[data-has-pt] {
311
+ :where(.o-ui-root, .o-ui-root *)[data-has-pt] {
312
312
  padding-top: var(--o-ui-pt);
313
313
  }
314
- :is(.o-ui-root, .o-ui-root *)[data-has-pr] {
314
+ :where(.o-ui-root, .o-ui-root *)[data-has-pr] {
315
315
  padding-right: var(--o-ui-pr);
316
316
  }
317
- :is(.o-ui-root, .o-ui-root *)[data-has-pb] {
317
+ :where(.o-ui-root, .o-ui-root *)[data-has-pb] {
318
318
  padding-bottom: var(--o-ui-pb);
319
319
  }
320
- :is(.o-ui-root, .o-ui-root *)[data-has-pl] {
320
+ :where(.o-ui-root, .o-ui-root *)[data-has-pl] {
321
321
  padding-left: var(--o-ui-pl);
322
322
  }
323
323
 
@@ -479,22 +479,22 @@
479
479
  --o-ui-max-h: var(--o-ui-max-h-xxl);
480
480
  }
481
481
  }
482
- :is(.o-ui-root, .o-ui-root *)[data-has-w] {
482
+ :where(.o-ui-root, .o-ui-root *)[data-has-w] {
483
483
  width: var(--o-ui-w);
484
484
  }
485
- :is(.o-ui-root, .o-ui-root *)[data-has-min-w] {
485
+ :where(.o-ui-root, .o-ui-root *)[data-has-min-w] {
486
486
  min-width: var(--o-ui-min-w);
487
487
  }
488
- :is(.o-ui-root, .o-ui-root *)[data-has-max-w] {
488
+ :where(.o-ui-root, .o-ui-root *)[data-has-max-w] {
489
489
  max-width: var(--o-ui-max-w);
490
490
  }
491
- :is(.o-ui-root, .o-ui-root *)[data-has-h] {
491
+ :where(.o-ui-root, .o-ui-root *)[data-has-h] {
492
492
  height: var(--o-ui-h);
493
493
  }
494
- :is(.o-ui-root, .o-ui-root *)[data-has-min-h] {
494
+ :where(.o-ui-root, .o-ui-root *)[data-has-min-h] {
495
495
  min-height: var(--o-ui-min-h);
496
496
  }
497
- :is(.o-ui-root, .o-ui-root *)[data-has-max-h] {
497
+ :where(.o-ui-root, .o-ui-root *)[data-has-max-h] {
498
498
  max-height: var(--o-ui-max-h);
499
499
  }
500
500
 
@@ -623,22 +623,22 @@
623
623
  --o-ui-text-wrap: var(--o-ui-text-wrap-xxl);
624
624
  }
625
625
  }
626
- :is(.o-ui-root, .o-ui-root *)[data-text-truncate] {
626
+ :where(.o-ui-root, .o-ui-root *)[data-text-truncate] {
627
627
  text-overflow: ellipsis;
628
628
  white-space: nowrap;
629
629
  overflow: hidden;
630
630
  }
631
- :is(.o-ui-root, .o-ui-root *)[data-has-text-size] {
631
+ :where(.o-ui-root, .o-ui-root *)[data-has-text-size] {
632
632
  font-size: var(--o-ui-font-size);
633
633
  line-height: var(--o-ui-line-height);
634
634
  }
635
- :is(.o-ui-root, .o-ui-root *)[data-has-text-align] {
635
+ :where(.o-ui-root, .o-ui-root *)[data-has-text-align] {
636
636
  text-align: var(--o-ui-text-align);
637
637
  }
638
- :is(.o-ui-root, .o-ui-root *)[data-has-font-weight] {
638
+ :where(.o-ui-root, .o-ui-root *)[data-has-font-weight] {
639
639
  font-weight: var(--o-ui-font-weight);
640
640
  }
641
- :is(.o-ui-root, .o-ui-root *)[data-has-text-wrap] {
641
+ :where(.o-ui-root, .o-ui-root *)[data-has-text-wrap] {
642
642
  text-wrap: var(--o-ui-text-wrap);
643
643
  }
644
644
 
@@ -3420,32 +3420,32 @@ a > .o-ui-code {
3420
3420
  outline: 2px solid var(--o-ui-accent-8);
3421
3421
  outline-offset: 2px;
3422
3422
  }
3423
- .o-ui-link:is(button) {
3423
+ .o-ui-link--alert:is(:any-link, button) {
3424
+ color: inherit;
3425
+ text-decoration-line: underline;
3426
+ font-weight: var(--prefixfont-weight, 700);
3427
+ }
3428
+ .o-ui-link--alert:is(:any-link, button):hover {
3429
+ color: inherit;
3430
+ text-decoration-color: inherit;
3431
+ }
3432
+ .o-ui-link:is(button):not(:any-link) {
3424
3433
  -webkit-appearance: button;
3425
3434
  -webkit-user-select: none;
3426
3435
  user-select: none;
3427
3436
  }
3428
- .o-ui-link:is(button):not(:disabled, [data-disabled]) {
3437
+ .o-ui-link:is(button):not(:any-link):not(:disabled, [data-disabled]) {
3429
3438
  cursor: pointer;
3430
3439
  }
3431
- .o-ui-link:is(button):is(:disabled, [data-disabled]) {
3440
+ .o-ui-link:is(button):not(:any-link):is(:disabled, [data-disabled]) {
3432
3441
  cursor: not-allowed;
3433
3442
  }
3434
- .o-ui-link:is(button) {
3443
+ .o-ui-link:is(button):not(:any-link) {
3435
3444
  padding: 0;
3436
3445
  background-color: transparent;
3437
3446
  border: none;
3438
3447
  font: inherit;
3439
3448
  }
3440
- .o-ui-link--alert:is(:any-link, button) {
3441
- color: inherit;
3442
- text-decoration-line: underline;
3443
- font-weight: var(--prefixfont-weight, 700);
3444
- }
3445
- .o-ui-link--alert:is(:any-link, button):hover {
3446
- color: inherit;
3447
- text-decoration-color: inherit;
3448
- }
3449
3449
  .o-ui-link__icon {
3450
3450
  margin-left: 0.35em;
3451
3451
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ostack.tech/ui",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Accessible React component library.",
5
5
  "homepage": "https://ui.ostack.tech/",
6
6
  "license": "Apache-2.0",
@@ -28,15 +28,6 @@
28
28
  }
29
29
  }
30
30
 
31
- &:is(button) {
32
- @include button-reset();
33
-
34
- padding: 0;
35
- background-color: transparent;
36
- border: none;
37
- font: inherit;
38
- }
39
-
40
31
  // Alert variant
41
32
  &--alert:is(:any-link, button) {
42
33
  color: $link-alert-color;
@@ -52,7 +43,14 @@
52
43
  }
53
44
 
54
45
  // Button
55
- &:is(button, :any-link) {
46
+ &:is(button):not(:any-link) {
47
+ @include button-reset();
48
+
49
+ padding: 0;
50
+ background-color: transparent;
51
+ border: none;
52
+ font: inherit;
53
+
56
54
  text-transform: $link-button-text-transform;
57
55
  color: $link-button-color;
58
56
  text-decoration-line: $link-button-text-decoration-line;
@@ -18,7 +18,7 @@
18
18
  )
19
19
  );
20
20
 
21
- :is(.#{$prefix}root, .#{$prefix}root *) {
21
+ :where(.#{$prefix}root, .#{$prefix}root *) {
22
22
  &[data-has-mt] {
23
23
  margin-top: var(--#{$prefix}mt);
24
24
  }
@@ -18,7 +18,7 @@
18
18
  )
19
19
  );
20
20
 
21
- :is(.#{$prefix}root, .#{$prefix}root *) {
21
+ :where(.#{$prefix}root, .#{$prefix}root *) {
22
22
  &[data-has-pt] {
23
23
  padding-top: var(--#{$prefix}pt);
24
24
  }
@@ -20,7 +20,7 @@
20
20
  )
21
21
  );
22
22
 
23
- :is(.#{$prefix}root, .#{$prefix}root *) {
23
+ :where(.#{$prefix}root, .#{$prefix}root *) {
24
24
  &[data-has-w] {
25
25
  width: var(--#{$prefix}w);
26
26
  }
@@ -19,7 +19,7 @@
19
19
  )
20
20
  );
21
21
 
22
- :is(.#{$prefix}root, .#{$prefix}root *) {
22
+ :where(.#{$prefix}root, .#{$prefix}root *) {
23
23
  &[data-text-truncate] {
24
24
  text-overflow: ellipsis;
25
25
  white-space: nowrap;