@globalbrain/sefirot 2.20.0 → 2.22.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.
Files changed (59) hide show
  1. package/lib/components/SDropdown.vue +1 -1
  2. package/lib/components/SDropdownSection.vue +11 -1
  3. package/lib/components/SDropdownSectionActions.vue +61 -0
  4. package/lib/components/SDropdownSectionComponent.vue +11 -0
  5. package/lib/components/SDropdownSectionFilter.vue +3 -3
  6. package/lib/components/SDropdownSectionFilterItem.vue +1 -1
  7. package/lib/components/SDropdownSectionMenu.vue +1 -1
  8. package/lib/components/SIcon.vue +1 -1
  9. package/lib/components/SInputAddon.vue +1 -1
  10. package/lib/components/SInputBase.vue +6 -3
  11. package/lib/components/SInputCheckbox.vue +3 -3
  12. package/lib/components/SInputCheckboxes.vue +2 -2
  13. package/lib/components/SInputDate.vue +6 -4
  14. package/lib/components/SInputDropdown.vue +6 -4
  15. package/lib/components/SInputFile.vue +4 -3
  16. package/lib/components/SInputHMS.vue +4 -3
  17. package/lib/components/SInputNumber.vue +6 -5
  18. package/lib/components/SInputRadio.vue +3 -3
  19. package/lib/components/SInputRadios.vue +4 -3
  20. package/lib/components/SInputSelect.vue +4 -3
  21. package/lib/components/SInputSwitch.vue +217 -41
  22. package/lib/components/SInputSwitches.vue +6 -5
  23. package/lib/components/SInputText.vue +4 -3
  24. package/lib/components/SInputTextarea.vue +38 -32
  25. package/lib/components/SInputYMD.vue +4 -3
  26. package/lib/components/SMarkdown.vue +2 -1
  27. package/lib/components/SSheetFooterAction.vue +2 -1
  28. package/lib/components/SSnackbar.vue +2 -1
  29. package/lib/components/SStep.vue +2 -2
  30. package/lib/components/SSteps.vue +5 -4
  31. package/lib/components/STable.vue +1 -1
  32. package/lib/components/STableCell.vue +1 -1
  33. package/lib/components/STableCellAvatars.vue +1 -1
  34. package/lib/components/STableCellDay.vue +1 -1
  35. package/lib/components/STableCellPills.vue +1 -1
  36. package/lib/components/STableColumn.vue +1 -1
  37. package/lib/components/STooltip.vue +2 -1
  38. package/lib/composables/Data.ts +2 -1
  39. package/lib/composables/Dropdown.ts +23 -3
  40. package/lib/composables/Flyout.ts +2 -1
  41. package/lib/composables/Form.ts +6 -3
  42. package/lib/composables/Grid.ts +2 -1
  43. package/lib/composables/Markdown.ts +4 -2
  44. package/lib/composables/Table.ts +4 -3
  45. package/lib/composables/Tooltip.ts +2 -1
  46. package/lib/composables/Utils.ts +4 -2
  47. package/lib/composables/Validation.ts +5 -3
  48. package/lib/composables/markdown/LinkPlugin.ts +1 -1
  49. package/lib/mixins/Sheet.ts +1 -1
  50. package/lib/styles/variables.css +20 -10
  51. package/lib/support/Day.ts +2 -1
  52. package/lib/validation/rules/hms.ts +2 -1
  53. package/lib/validation/rules/requiredHms.ts +2 -1
  54. package/lib/validation/rules/requiredYmd.ts +2 -1
  55. package/lib/validation/rules/ymd.ts +2 -1
  56. package/lib/validation/validators/hms.ts +6 -6
  57. package/lib/validation/validators/requiredHms.ts +4 -4
  58. package/lib/validation/validators/requiredYmd.ts +3 -2
  59. package/package.json +3 -3
@@ -1,7 +1,8 @@
1
- import { Ymd, YmdMap, YmdType } from './ymd'
1
+ import type { Ymd, YmdType } from './ymd'
2
+ import { YmdMap } from './ymd'
2
3
 
3
4
  export type { Ymd, YmdType, YmdMap }
4
5
 
5
6
  export function requiredYmd(ymd: Ymd, required: YmdType[] = ['y', 'm', 'd']): boolean {
6
- return required.every((r) => ymd[YmdMap[r]] !== null)
7
+ return required.every((r) => ymd[YmdMap[r]] != null)
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
- "version": "2.20.0",
3
+ "version": "2.22.0",
4
4
  "packageManager": "pnpm@7.26.2",
5
5
  "description": "Vue Components for Global Brain Design System.",
6
6
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",
@@ -46,7 +46,7 @@
46
46
  "dayjs": "^1.11.7"
47
47
  },
48
48
  "devDependencies": {
49
- "@globalbrain/eslint-config": "^1.2.1",
49
+ "@globalbrain/eslint-config": "^1.3.0",
50
50
  "@histoire/plugin-vue": "^0.12.4",
51
51
  "@iconify-icons/ph": "^1.2.3",
52
52
  "@iconify/vue": "^4.0.2",
@@ -64,7 +64,7 @@
64
64
  "chalk": "^4.1.2",
65
65
  "conventional-changelog-cli": "^2.2.2",
66
66
  "enquirer": "^2.3.6",
67
- "eslint": "^8.32.0",
67
+ "eslint": "^8.35.0",
68
68
  "execa": "^5.1.1",
69
69
  "fuse.js": "^6.6.2",
70
70
  "histoire": "^0.12.4",