@awes-io/ui 2.90.0 → 2.91.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.91.1](https://github.com/awes-io/client/compare/@awes-io/ui@2.91.0...@awes-io/ui@2.91.1) (2024-01-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * conditional chainig removed ([9c2cd3e](https://github.com/awes-io/client/commit/9c2cd3ea940c809a615435edc5d219495ee0e9a7))
12
+
13
+
14
+
15
+
16
+
17
+ # [2.91.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.90.0...@awes-io/ui@2.91.0) (2024-01-19)
18
+
19
+
20
+ ### Features
21
+
22
+ * **aw-dropdown:** button styles updated ([e9dcb81](https://github.com/awes-io/client/commit/e9dcb8166888e29285b326b36a2f5cf04609cc8f))
23
+
24
+
25
+
26
+
27
+
6
28
  # [2.90.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.89.1...@awes-io/ui@2.90.0) (2024-01-16)
7
29
 
8
30
 
@@ -4,7 +4,12 @@
4
4
 
5
5
  & > span {
6
6
  display: flex;
7
- padding: theme('spacing.3', 0.75rem) theme('spacing.5', 1.25rem);
7
+ gap: 1rem;
8
+ align-items: flex-start;
9
+ padding: 1.125rem 1rem;
10
+
11
+ font-size: 1rem;
12
+ line-height: 1.25rem;
8
13
  }
9
14
 
10
15
  & + & {
@@ -21,6 +26,11 @@
21
26
  background-color: rgba(var(--c-info-rgb, 69, 164, 220), 0.2);
22
27
  }
23
28
 
29
+ .aw-icon {
30
+ flex-shrink: 0;
31
+ margin-top: calc((1.25rem - var(--icon-size, 1.25rem)) / 2);
32
+ }
33
+
24
34
  /* Default color */
25
35
  &_default {
26
36
  color: inherit;
@@ -46,17 +56,26 @@
46
56
 
47
57
  @screen md {
48
58
  .aw-dropdown-button {
49
- @apply text-sm whitespace-no-wrap;
50
- line-height: 19px;
51
- position: relative;
59
+ white-space: nowrap;
60
+
52
61
  padding: 2px;
53
62
  border-radius: theme('borderRadius.default');
54
63
 
64
+ position: relative;
65
+
55
66
  & > span {
56
- display: block;
67
+ align-items: center;
68
+
69
+ font-size: 0.875rem;
70
+ line-height: 1rem;
71
+
57
72
  padding: calc(theme('spacing.3') - 2px) calc(theme('spacing.4') - 2px);
58
73
  }
59
74
 
75
+ .aw-icon {
76
+ margin-top: 0;
77
+ }
78
+
60
79
  &:focus > span {
61
80
  outline: theme('focusOutline', 'none');
62
81
  }
@@ -89,9 +89,9 @@
89
89
  border-radius: 0.9375rem;
90
90
  margin-top: 0;
91
91
 
92
- .aw-dropdown-button > span {
92
+ /* .aw-dropdown-button > span {
93
93
  padding: 1rem 1.5rem;
94
- }
94
+ } */
95
95
  }
96
96
 
97
97
  &__close {
package/assets/js/url.js CHANGED
@@ -1,3 +1,6 @@
1
+ import { pathOr } from 'rambdax'
2
+
1
3
  const FILENAME_RE = /([^\n?/]+)(?:\?.*)?$/g
2
4
 
3
- export const getFileName = (val) => String(val).match(FILENAME_RE)?.[0] || ''
5
+ export const getFileName = (val) =>
6
+ pathOr('', '0', String(val).match(FILENAME_RE))
@@ -7,16 +7,10 @@
7
7
  v-on="$listeners"
8
8
  >
9
9
  <!-- content inside button -->
10
-
11
- <span class="flex items-start white" tabindex="-1">
12
- <span
13
- v-if="icon || $scopedSlots.icon"
14
- class="w-6 text-left inline-block mr-1"
15
- >
16
- <slot name="icon">
17
- <AwIcon :name="icon" :size="iconSize" />
18
- </slot>
19
- </span>
10
+ <span tabindex="-1" :style="{ '--icon-size': iconSize + 'px' }">
11
+ <slot name="icon">
12
+ <AwIcon v-if="icon || $scopedSlots.icon" :name="icon" :size="iconSize" />
13
+ </slot>
20
14
  <slot>
21
15
  {{ text }}
22
16
  </slot>
@@ -12,7 +12,7 @@
12
12
  v-for="({ listeners, tooltip, iconSize, ...attrs },
13
13
  i) in splitButtons.dropdown"
14
14
  :key="i"
15
- :iconSize="iconSize ? iconSize : 24"
15
+ :iconSize="iconSize ? iconSize : undefined"
16
16
  v-tooltip="tooltip"
17
17
  v-bind="attrs"
18
18
  v-on="listeners"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awes-io/ui",
3
- "version": "2.90.0",
3
+ "version": "2.91.1",
4
4
  "description": "User Interface (UI) components",
5
5
  "keywords": [
6
6
  "ui",
@@ -114,5 +114,5 @@
114
114
  "rollup-plugin-visualizer": "^2.6.0",
115
115
  "rollup-plugin-vue": "^5.0.1"
116
116
  },
117
- "gitHead": "1b568eaaa2094a6d2324afcb218f403ed63be30a"
117
+ "gitHead": "67ab5fc3f0f2cda7aad811b8ccfee1f179325cca"
118
118
  }