vanilla-jui 1.5.41 → 1.5.42

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": "vanilla-jui",
3
- "version": "1.5.41",
3
+ "version": "1.5.42",
4
4
  "private": false,
5
5
  "description": "A lightweight, reactive, and fully customizable vanilla JS UI library.",
6
6
  "keywords": [
@@ -631,7 +631,6 @@ export function createAccordion(props: AccordionProps): AccordionInstance {
631
631
  jsx('span', {
632
632
  className: resolvedProps.className.arrow,
633
633
  'data-accordion-arrow': name,
634
- // 'aria-hidden': 'true',
635
634
  children: icon('arrow-down'),
636
635
  }),
637
636
  ],
@@ -103,8 +103,8 @@ const DEFAULT_CLASS_NAMES: PaginationClassNames = {
103
103
  root: 'j-pagination',
104
104
  list: 'pagination',
105
105
  item: 'item',
106
- button: 'j-button is-default is-icon',
107
- currentBtn: 'j-button is-ghost is-icon is-active',
106
+ button: 'j-button is-ghost is-icon',
107
+ currentBtn: 'j-button is-outline is-icon is-active',
108
108
  moreBtn: 'j-button is-ghost is-icon',
109
109
  loading: 'animate-spin',
110
110
  };
@@ -11,6 +11,7 @@
11
11
  @layer status {
12
12
  /* sad mode */
13
13
  .is-sad {
14
+ -webkit-filter: grayscale(100%);
14
15
  filter: grayscale(100%);
15
16
  }
16
17
 
@@ -37,18 +38,24 @@
37
38
  /* drag status */
38
39
  .dragging {
39
40
  cursor: move;
41
+ cursor: -webkit-grab;
40
42
  cursor: grab;
41
43
  }
42
44
 
43
45
  .dragging:active {
46
+ cursor: -webkit-grabbing;
44
47
  cursor: grabbing;
45
48
  }
46
49
 
47
50
  /* disabled */
48
51
  :disabled,
52
+ [disabled],
49
53
  .is-disabled,
50
54
  [aria-disabled='true'] {
51
55
  cursor: not-allowed;
56
+ -webkit-user-select: none;
57
+ -moz-user-select: none;
58
+ -ms-user-select: none;
52
59
  user-select: none;
53
60
  }
54
61
 
@@ -1,6 +1,5 @@
1
1
  @layer themes {
2
2
  .j-accordion {
3
- --accordion-font-weight: var(--font-medium);
4
3
  --accordion-border: 1px solid var(--ui-border-subtle);
5
4
  --accordion-icon-transform: rotate(0deg);
6
5
  }
@@ -8,9 +7,8 @@
8
7
  .j-accordion .accordion-header {
9
8
  padding: var(--s2) var(--s3);
10
9
  margin: 0;
11
- font-weight: var(--accordion-font-weight);
10
+ font-weight: var(--font-medium);
12
11
  font-size: var(--font-size-md);
13
-
14
12
  border-bottom: var(--accordion-border);
15
13
  }
16
14
 
@@ -34,14 +32,14 @@
34
32
  border-right: 0;
35
33
  }
36
34
 
37
- .j-accordion .accordion-header[aria-expanded='true'] .header-title {
38
- --accordion-font-weight: var(--font-bold);
39
- }
40
-
41
35
  .j-accordion .accordion-header .header-arrow {
42
36
  transform: var(--accordion-icon-transform);
43
37
  }
44
38
 
39
+ .j-accordion .accordion-header .header-arrow svg {
40
+ width: var(--font-size-lg);
41
+ }
42
+
45
43
  .j-accordion[data-direction='horizontal'] .accordion-header .header-arrow {
46
44
  --accordion-icon-transform: rotate(-90deg);
47
45
  }
@@ -28,6 +28,10 @@
28
28
  font-weight: var(--font-medium);
29
29
  }
30
30
 
31
+ .j-modal .modal-header .is-icon svg {
32
+ width: var(--font-size-lg);
33
+ }
34
+
31
35
  .j-modal .modal-body {
32
36
  padding: var(--modal-body-padding);
33
37
  min-height: 32px;
@@ -10,6 +10,6 @@
10
10
  }
11
11
 
12
12
  .j-pagination .pagination {
13
- gap: var(--space);
13
+ gap: 2px;
14
14
  }
15
15
  }
@@ -26,7 +26,6 @@
26
26
  }
27
27
 
28
28
  .j-toast .el-icon {
29
- margin-right: var(--s2);
30
29
  width: var(--font-size-lg);
31
30
  }
32
31
 
@@ -11,6 +11,7 @@
11
11
  border-color: var(--tooltip-border-color);
12
12
  border-radius: var(--radius-md);
13
13
  max-width: 260px;
14
+ padding: 2px 4px;
14
15
  }
15
16
 
16
17
  .j-tooltip.is-reverse {
@@ -48,4 +49,11 @@
48
49
  font-size: var(--font-size-md);
49
50
  line-height: var(--line-height);
50
51
  }
52
+
53
+ .drop-container:has(.j-tooltip) {
54
+ border: unset;
55
+ /* border-radius: unset; */
56
+ background: unset;
57
+ box-shadow: unset;
58
+ }
51
59
  }
@@ -4,6 +4,10 @@
4
4
  width: -webkit-fit-content;
5
5
  width: -moz-fit-content;
6
6
  width: fit-content;
7
+ -webkit-user-select: none;
8
+ -moz-user-select: none;
9
+ -ms-user-select: none;
10
+ user-select: none;
7
11
  }
8
12
 
9
13
  .j-tooltip .el-text {
@@ -128,7 +128,7 @@ const DROP_PROPS_SCHEMA = {
128
128
  ],
129
129
  },
130
130
  offset: {
131
- default: 10,
131
+ default: 0,
132
132
  type: 'number',
133
133
  min: 0,
134
134
  },
@@ -134,7 +134,7 @@ const TOOLTIP_OPTIONS_SCHEMA = {
134
134
  'right',
135
135
  ],
136
136
  },
137
- offset: { default: 8, type: 'number' },
137
+ offset: { default: 0, type: 'number' },
138
138
  message: {
139
139
  default: '',
140
140
  type: 'string',