not-bulma 1.2.28 → 1.2.30

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": "not-bulma",
3
- "version": "1.2.28",
3
+ "version": "1.2.30",
4
4
  "description": "not-* family UI components on Bulma CSS Framework",
5
5
  "main": "src/index.js",
6
6
  "svelte": "src/index.js",
@@ -12,24 +12,30 @@
12
12
  * @property {string} [size=''] medium|large
13
13
  **/
14
14
  export let size = "";
15
+ /**
16
+ * @property {boolean} [pointable=false] medium|large
17
+ **/
18
+ export let pointable = false;
15
19
  </script>
16
20
 
17
21
  {#if title}
18
- <span class="icon-text">
22
+ <span class="icon-text {pointable ? 'is-clickable' : ''}">
19
23
  <span class="icon {size ? `is-${size}` : ''}">
20
24
  <i
21
- class="fas
25
+ class="is-title-icon fas
22
26
  fa-{font}
23
27
  {size == 'medium' ? 'fa-lg' : ''}
24
28
  {size == 'large' ? 'fa-2x' : ''}
25
29
  "
26
30
  ></i>
31
+ <span>{$LOCALE[title]}</span>
27
32
  </span>
28
- <span>{$LOCALE[title]}</span>
29
33
  </span>
30
34
  {:else}
31
35
  <span
32
- class="icon {size ? `is-${size}` : ''} {size == 'medium' ? 'fa-lg' : ''}
36
+ class="
37
+ {pointable ? 'is-clickable' : ''}
38
+ icon {size ? `is-${size}` : ''} {size == 'medium' ? 'fa-lg' : ''}
33
39
  {size == 'large' ? 'fa-2x' : ''}"
34
40
  >
35
41
  <i class="fas fa-{font}"></i>
@@ -169,13 +169,15 @@
169
169
  {#each fields as field}
170
170
  {@const propPath = field.path.substring(1)}
171
171
  <th
172
- class={field.hideOnMobile ? "is-hidden-touch" : ""}
172
+ class={(field.hideOnMobile ? " is-hidden-touch" : "") +
173
+ (field.sortable ? " is-clickable" : "")}
173
174
  on:click={onFieldHeadClick(field)}
174
175
  >
175
176
  {#if field.sortable && Object.hasOwn(sorter, propPath)}
176
177
  <UIIcon
177
178
  font={sorter[propPath] > 0 ? "sort-up" : "sort-down"}
178
179
  title={field.title}
180
+ pointable={true}
179
181
  />
180
182
  {:else}
181
183
  {$LOCALE[field.title]}
@@ -0,0 +1,7 @@
1
+ .is-pointable {
2
+ cursor: pointer;
3
+ }
4
+
5
+ .is-title-icon {
6
+ padding-right: 0.3rem;
7
+ }
@@ -1,5 +1,6 @@
1
1
  @import "bulma/sass/utilities/_index.scss";
2
2
 
3
+ @import "./_helpers.scss";
3
4
  @import "./_menu.scss";
4
5
  @import "./_position.scss";
5
6
  @import "./_forms.scss";
@@ -11,6 +12,6 @@
11
12
  @import "./_bulma-list.scss";
12
13
 
13
14
  @import "./_list-select.scss";
14
- .navbar-menu.is-active{
15
- display: flex;
15
+ .navbar-menu.is-active {
16
+ display: flex;
16
17
  }