@globalbrain/sefirot 2.5.0 → 2.5.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.
@@ -25,7 +25,7 @@ const fuse = computed(() => {
25
25
  const filteredOptions = computed(() => {
26
26
  return !props.search || !query.value
27
27
  ? unref(props.options)
28
- : fuse.value.search(query.value).map(r => r.item)
28
+ : fuse.value.search(query.value).map((r) => r.item)
29
29
  })
30
30
 
31
31
  onMounted(() => {
@@ -144,7 +144,7 @@ function handleClick(option: DropdownSectionFilterOption, value: string | number
144
144
 
145
145
  .checkbox {
146
146
  display: block;
147
- padding-top: 9px;
147
+ padding-top: 8px;
148
148
  }
149
149
 
150
150
  .checkbox-box {
@@ -14,9 +14,12 @@ defineProps<{
14
14
  .SDropdownSectionFilterItemText {
15
15
  display: inline-block;
16
16
  padding: 6px 0;
17
+ line-height: 20px;
18
+ font-size: 12px;
17
19
  }
18
20
 
19
21
  .text {
22
+ display: inline-block;
20
23
  line-height: 20px;
21
24
  font-size: 12px;
22
25
  font-weight: 500;
@@ -28,7 +28,7 @@ function isChecked(value: unknown): boolean {
28
28
 
29
29
  function handleChange(value: unknown): void {
30
30
  const distinct = props.modelValue
31
- .filter(v => v !== value)
31
+ .filter((v) => v !== value)
32
32
  .concat(props.modelValue.includes(value) ? [] : [value])
33
33
 
34
34
  emit('update:modelValue', distinct)
@@ -71,10 +71,10 @@ const dropdownOptions = computed<DropdownSectionFilter[]>(() => [{
71
71
 
72
72
  const selected = computed(() => {
73
73
  if (isArray(props.modelValue)) {
74
- return props.options.filter(o => (props.modelValue as ArrayValue).includes(o.value))
74
+ return props.options.filter((o) => (props.modelValue as ArrayValue).includes(o.value))
75
75
  }
76
76
 
77
- const item = props.options.find(o => o.value === props.modelValue)
77
+ const item = props.options.find((o) => o.value === props.modelValue)
78
78
 
79
79
  return item ? [item] : []
80
80
  })
@@ -87,7 +87,7 @@ function emitTouch(type: ValueType): void {
87
87
 
88
88
  touched[type] = true
89
89
 
90
- if (createRequiredTouched().every(v => v)) {
90
+ if (createRequiredTouched().every((v) => v)) {
91
91
  props.validation.$touch()
92
92
  }
93
93
  }
@@ -38,7 +38,7 @@ function isChecked(value: string | number | boolean): boolean {
38
38
 
39
39
  function handleChange(value: string | number | boolean): void {
40
40
  const difference = props.modelValue
41
- .filter(v => v !== value)
41
+ .filter((v) => v !== value)
42
42
  .concat(props.modelValue.includes(value) ? [] : [value])
43
43
 
44
44
  emit('update:modelValue', difference)
@@ -77,7 +77,7 @@ function emitTouch(type: ValueType): void {
77
77
 
78
78
  touched[type] = true
79
79
 
80
- if (createRequiredTouched().every(v => v)) {
80
+ if (createRequiredTouched().every((v) => v)) {
81
81
  props.validation.$touch()
82
82
  }
83
83
  }
@@ -29,7 +29,7 @@ watch(
29
29
  { immediate: true }
30
30
  )
31
31
 
32
- subscribe(payload => emit('clicked', payload))
32
+ subscribe((payload) => emit('clicked', payload))
33
33
  </script>
34
34
 
35
35
  <template>
@@ -46,7 +46,7 @@ export function useGrid(options: UseGridOptions): Grid {
46
46
 
47
47
  function adjustSpacer() {
48
48
  container.value?.querySelectorAll(`${toClassSelector(spacerClass)}`)
49
- .forEach(n => n.remove())
49
+ .forEach((n) => n.remove())
50
50
 
51
51
  const track = container.value?.firstElementChild
52
52
 
@@ -70,7 +70,7 @@ export function useLink({ container, callbacks }: UseLinkOptions): UseLink {
70
70
  const isExternal = isExternalUrl(href)
71
71
  const isCallback = isCallbackUrl(href)
72
72
 
73
- subscribers.forEach(sub => sub({
73
+ subscribers.forEach((sub) => sub({
74
74
  event,
75
75
  target,
76
76
  isExternal,
@@ -37,7 +37,7 @@ export const useSnackbars = defineStore('snackbars', () => {
37
37
  }
38
38
 
39
39
  function pop(id: number): void {
40
- items.value = items.value.filter(item => item.id !== id)
40
+ items.value = items.value.filter((item) => item.id !== id)
41
41
  }
42
42
 
43
43
  return {
@@ -1,7 +1,7 @@
1
1
  type Awaited<T> = T extends undefined ? T : T extends PromiseLike<infer U> ? U : T
2
2
 
3
3
  export function sleep(ms = 500): Promise<undefined> {
4
- return new Promise<undefined>(resolve => setTimeout(resolve, ms))
4
+ return new Promise<undefined>((resolve) => setTimeout(resolve, ms))
5
5
  }
6
6
 
7
7
  export function delay<T extends any[]>(
@@ -13,5 +13,5 @@ export const HmsMap = {
13
13
  } as const
14
14
 
15
15
  export function requiredHms(hms: Hms, required: HmsType[] = ['h', 'm', 's']): boolean {
16
- return required.every(r => hms[HmsMap[r]] !== undefined)
16
+ return required.every((r) => hms[HmsMap[r]] !== undefined)
17
17
  }
@@ -3,5 +3,5 @@ import { Ymd, YmdMap, YmdType } from './ymd'
3
3
  export type { Ymd, YmdType, YmdMap }
4
4
 
5
5
  export function requiredYmd(ymd: Ymd, required: YmdType[] = ['y', 'm', 'd']): boolean {
6
- return required.every(r => ymd[YmdMap[r]] !== null)
6
+ return required.every((r) => ymd[YmdMap[r]] !== null)
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Vue Components for Global Brain Design System.",
5
5
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",
6
6
  "license": "MIT",
@@ -43,7 +43,7 @@
43
43
  "vue-router": "^4.1.5"
44
44
  },
45
45
  "devDependencies": {
46
- "@globalbrain/eslint-config": "^0.1.0",
46
+ "@globalbrain/eslint-config": "^1.0.0",
47
47
  "@histoire/plugin-vue": "^0.10.7",
48
48
  "@iconify-icons/ph": "^1.2.2",
49
49
  "@iconify/vue": "^4.0.0",
@@ -62,7 +62,7 @@
62
62
  "conventional-changelog-cli": "^2.2.2",
63
63
  "dayjs": "^1.11.5",
64
64
  "enquirer": "^2.3.6",
65
- "eslint": "^8.23.1",
65
+ "eslint": "^8.27.0",
66
66
  "execa": "^5.1.1",
67
67
  "fuse.js": "^6.6.2",
68
68
  "happy-dom": "^6.0.4",