@globalbrain/sefirot 2.8.0 → 2.9.0

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.
@@ -103,8 +103,8 @@ const showError = computed(() => {
103
103
  .help-error {
104
104
  width: 100%;
105
105
  margin: 0;
106
- padding: 4px 0 0 0;
107
- line-height: 20px;
106
+ padding: 6px 0 0 0;
107
+ line-height: 18px;
108
108
  font-size: 12px;
109
109
  font-weight: 500;
110
110
  color: var(--c-danger);
@@ -0,0 +1,8 @@
1
+ import { decimal as baseDecimal, helpers } from '@vuelidate/validators'
2
+
3
+ export function decimal(msg?: string) {
4
+ return helpers.withMessage(
5
+ () => msg ?? 'The value must be valid decimal numbers.',
6
+ baseDecimal
7
+ )
8
+ }
@@ -13,6 +13,7 @@ export * from './requiredHms'
13
13
  export * from './requiredIf'
14
14
  export * from './requiredYmd'
15
15
  export * from './url'
16
+ export * from './decimal'
16
17
  export * from './month'
17
18
  export * from './ymd'
18
19
  export * from './rule'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "Vue Components for Global Brain Design System.",
5
5
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",
6
6
  "license": "MIT",