@globalbrain/sefirot 4.24.0 → 4.25.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.
@@ -8,7 +8,7 @@ import SDropdown from './SDropdown.vue'
8
8
  export type { Mode, Size, Tooltip, Type }
9
9
 
10
10
  const props = defineProps<{
11
- tag?: string
11
+ tag?: Component | string
12
12
  size?: Size
13
13
  type?: Type
14
14
  mode?: Mode
@@ -22,8 +22,8 @@ export type Mode =
22
22
  | 'danger'
23
23
 
24
24
  export interface Tooltip {
25
- tag?: string
26
- triggerTag?: string
25
+ tag?: Component | string
26
+ triggerTag?: Component | string
27
27
  text?: MaybeRef<string | null>
28
28
  position?: Position
29
29
  display?: 'inline' | 'inline-block' | 'block'
@@ -32,7 +32,7 @@ export interface Tooltip {
32
32
  }
33
33
 
34
34
  const props = defineProps<{
35
- tag?: string
35
+ tag?: Component | string
36
36
  size?: Size
37
37
  type?: Type
38
38
  mode?: Mode
@@ -5,7 +5,7 @@ import { type DropdownSection } from '../composables/Dropdown'
5
5
  import SActionMenu, { type Mode, type Tooltip, type Type } from './SActionMenu.vue'
6
6
 
7
7
  defineProps<{
8
- tag?: string
8
+ tag?: Component | string
9
9
  type?: Type
10
10
  mode?: Mode
11
11
  icon?: Component
@@ -4,7 +4,7 @@ import { useControlSize } from '../composables/Control'
4
4
  import SButton, { type Mode, type Tooltip, type Type } from './SButton.vue'
5
5
 
6
6
  defineProps<{
7
- tag?: string
7
+ tag?: Component | string
8
8
  type?: Type
9
9
  mode?: Mode
10
10
  icon?: Component
@@ -3,7 +3,7 @@ import { type Component } from 'vue'
3
3
  import SButton, { type Mode, type Tooltip, type Type } from './SButton.vue'
4
4
 
5
5
  export interface Action {
6
- tag?: string
6
+ tag?: Component | string
7
7
  type?: Type
8
8
  mode?: Mode
9
9
  icon?: Component
@@ -29,6 +29,7 @@ defineProps<{
29
29
  <div v-for="action, i in actions" :key="i" class="action">
30
30
  <SButton
31
31
  size="small"
32
+ :tag="action.tag"
32
33
  :type="action.type"
33
34
  :mode="action.mode"
34
35
  :icon="action.icon"
@@ -1,9 +1,9 @@
1
1
  <script setup lang="ts">
2
- import { computed } from 'vue'
2
+ import { type Component, computed } from 'vue'
3
3
  import { useMarkdown } from '../composables/Markdown'
4
4
 
5
5
  const props = withDefaults(defineProps<{
6
- tag?: string
6
+ tag?: Component | string
7
7
  content: string
8
8
  html?: boolean
9
9
  inline?: boolean
@@ -1,8 +1,8 @@
1
1
  <script setup lang="ts">
2
- import { onMounted, ref } from 'vue'
2
+ import { type Component, onMounted, ref } from 'vue'
3
3
 
4
4
  defineProps<{
5
- tag?: string
5
+ tag?: Component | string
6
6
  }>()
7
7
 
8
8
  const mount = ref(true)
@@ -355,7 +355,7 @@ function removeSelected(item: any) {
355
355
 
356
356
  function getColWidth(key: string) {
357
357
  if (key === '__select') {
358
- return '48px + var(--table-padding-left, 0)'
358
+ return '48px + var(--table-padding-left)'
359
359
  }
360
360
  const adjustedWidth = colWidths[key]
361
361
  if (adjustedWidth && adjustedWidth !== 'auto') {
@@ -631,7 +631,7 @@ function getStyles(key: string) {
631
631
  }
632
632
 
633
633
  .STable .col-__select {
634
- --table-col-width: calc(48px + var(--table-padding-left, 0));
634
+ --table-col-width: calc(48px + var(--table-padding-left));
635
635
 
636
636
  :deep(.input) {
637
637
  align-items: center;
@@ -25,14 +25,14 @@ const classes = computed(() => [
25
25
  <style scoped lang="postcss">
26
26
  .STableItem {
27
27
  position: var(--table-col-position, relative);
28
- left: var(--table-col-left, 0);
28
+ left: var(--table-col-left, 0px);
29
29
  right: var(--table-col-right, auto);
30
30
  z-index: var(--table-col-z-index, auto);
31
31
  flex-shrink: 0;
32
32
  flex-grow: 1;
33
- border-left: var(--table-col-border-left, 0) solid var(--c-gutter);
33
+ border-left: var(--table-col-border-left, 0px) solid var(--c-gutter);
34
34
  border-right: 1px solid var(--c-gutter);
35
- margin-left: calc(var(--table-col-border-left, 0) * -1);
35
+ margin-left: calc(var(--table-col-border-left, 0px) * -1);
36
36
  min-width: var(--table-col-width);
37
37
  max-width: var(--table-col-width);
38
38
 
@@ -1,11 +1,11 @@
1
1
  <script setup lang="ts">
2
2
  import { onClickOutside, onKeyStroke, useElementHover, useFocusWithin } from '@vueuse/core'
3
- import { computed, onBeforeUnmount, ref, shallowRef, watch } from 'vue'
3
+ import { type Component, computed, onBeforeUnmount, ref, shallowRef, watch } from 'vue'
4
4
  import { type Position, useTooltip } from '../composables/Tooltip'
5
5
 
6
6
  const props = withDefaults(defineProps<{
7
- tag?: string
8
- triggerTag?: string
7
+ tag?: Component | string
8
+ triggerTag?: Component | string
9
9
  text?: string
10
10
  position?: Position
11
11
  display?: 'inline' | 'inline-block' | 'block'
@@ -871,8 +871,8 @@
871
871
  --table-border-left: var(--table-border);
872
872
  --table-border-radius: 6px;
873
873
 
874
- --table-padding-right: 0;
875
- --table-padding-left: 0;
874
+ --table-padding-right: 0px;
875
+ --table-padding-left: 0px;
876
876
 
877
877
  --table-cell-font-size: 14px;
878
878
  --table-cell-font-weight: 400;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
3
  "type": "module",
4
- "version": "4.24.0",
4
+ "version": "4.25.1",
5
5
  "packageManager": "pnpm@9.15.4",
6
6
  "description": "Vue Components for Global Brain Design System.",
7
7
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",
@@ -59,15 +59,15 @@
59
59
  "markdown-it": "^14.1.0",
60
60
  "normalize.css": "^8.0.1",
61
61
  "pinia": "^3.0.3",
62
- "postcss": "^8.5.4",
62
+ "postcss": "^8.5.5",
63
63
  "postcss-nested": "^7.0.2",
64
64
  "v-calendar": "3.0.1",
65
65
  "vue": "^3.5.16",
66
66
  "vue-router": "^4.5.1"
67
67
  },
68
68
  "dependencies": {
69
- "@sentry/browser": "^9.26.0",
70
- "@sentry/vue": "^9.26.0",
69
+ "@sentry/browser": "^9.29.0",
70
+ "@sentry/vue": "^9.29.0",
71
71
  "@tanstack/vue-virtual": "3.0.0-beta.62",
72
72
  "@tinyhttp/content-disposition": "^2.2.2",
73
73
  "@tinyhttp/cookie": "^2.1.1",
@@ -92,9 +92,9 @@
92
92
  "@types/body-scroll-lock": "^3.1.2",
93
93
  "@types/lodash-es": "^4.17.12",
94
94
  "@types/markdown-it": "^14.1.2",
95
- "@types/node": "^22.15.29",
95
+ "@types/node": "^24.0.1",
96
96
  "@vitejs/plugin-vue": "^5.2.4",
97
- "@vitest/coverage-v8": "^3.2.1",
97
+ "@vitest/coverage-v8": "^3.2.3",
98
98
  "@vue/reactivity": "^3.5.16",
99
99
  "@vue/test-utils": "^2.4.6",
100
100
  "@vuelidate/core": "^2.0.3",
@@ -104,21 +104,21 @@
104
104
  "dayjs": "^1.11.13",
105
105
  "eslint": "8.57.0",
106
106
  "fuse.js": "^7.1.0",
107
- "happy-dom": "^17.6.3",
107
+ "happy-dom": "^18.0.1",
108
108
  "histoire": "0.16.5",
109
109
  "lodash-es": "^4.17.21",
110
110
  "markdown-it": "^14.1.0",
111
111
  "normalize.css": "^8.0.1",
112
112
  "pinia": "^3.0.3",
113
- "postcss": "^8.5.4",
113
+ "postcss": "^8.5.5",
114
114
  "postcss-nested": "^7.0.2",
115
115
  "punycode": "^2.3.1",
116
116
  "release-it": "^19.0.3",
117
117
  "typescript": "~5.8.3",
118
118
  "v-calendar": "3.0.1",
119
119
  "vite": "^6.3.5",
120
- "vitepress": "^2.0.0-alpha.5",
121
- "vitest": "^3.2.1",
120
+ "vitepress": "^2.0.0-alpha.6",
121
+ "vitest": "^3.2.3",
122
122
  "vue": "^3.5.16",
123
123
  "vue-router": "^4.5.1",
124
124
  "vue-tsc": "^2.2.10"