design-system-next 2.12.17 → 2.13.2

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.
Binary file
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  "name": "design-system-next",
3
3
  "private": false,
4
- "version": "2.12.17",
4
+ "version": "2.13.2",
5
5
  "main": "./dist/design-system-next.umd.js",
6
6
  "module": "./dist/design-system-next.es.js",
7
7
  "repository": {
@@ -38,6 +38,7 @@ declare const _default: {
38
38
  "docs:build": "vitepress build docs",
39
39
  "docs:serve": "vitepress serve docs",
40
40
  "docs:preview": "vitepress preview docs",
41
+ "test:e2e": "npx playwright test --ui",
41
42
  "clean": "rm -rf node_modules dist coverage package-lock.json && npm install"
42
43
  },
43
44
  "dependencies": {
@@ -61,6 +62,8 @@ declare const _default: {
61
62
  "vue": "^3.0.0"
62
63
  },
63
64
  "devDependencies": {
65
+ "@axe-core/playwright": "^4.10.2",
66
+ "@playwright/test": "^1.55.0",
64
67
  "@stylistic/stylelint-plugin": "^3.1.1",
65
68
  "@types/node": "^22.10.5",
66
69
  "@vitejs/plugin-vue": "^5.2.1",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "design-system-next",
3
3
  "private": false,
4
- "version": "2.12.17",
4
+ "version": "2.13.2",
5
5
  "main": "./dist/design-system-next.umd.js",
6
6
  "module": "./dist/design-system-next.es.js",
7
7
  "repository": {
@@ -38,6 +38,7 @@
38
38
  "docs:build": "vitepress build docs",
39
39
  "docs:serve": "vitepress serve docs",
40
40
  "docs:preview": "vitepress preview docs",
41
+ "test:e2e": "npx playwright test --ui",
41
42
  "clean": "rm -rf node_modules dist coverage package-lock.json && npm install"
42
43
  },
43
44
  "dependencies": {
@@ -61,6 +62,8 @@
61
62
  "vue": "^3.0.0"
62
63
  },
63
64
  "devDependencies": {
65
+ "@axe-core/playwright": "^4.10.2",
66
+ "@playwright/test": "^1.55.0",
64
67
  "@stylistic/stylelint-plugin": "^3.1.1",
65
68
  "@types/node": "^22.10.5",
66
69
  "@vitejs/plugin-vue": "^5.2.1",
@@ -162,16 +162,13 @@ export const useButton = (props: ButtonPropTypes, emit: SetupContext<ButtonEmitT
162
162
  // #endregion - Background Css Class
163
163
 
164
164
  const buttonBorderCssClass: ComputedRef<string> = computed(() => {
165
- return classNames(
166
- 'spr-border spr-border-solid',
167
- {
168
- 'spr-border-transparent': variant.value === 'primary' || variant.value === 'tertiary',
169
- 'spr-border-white-50': focused.value && variant.value === 'primary' || variant.value === 'tertiary',
170
- 'spr-border-color-base': variant.value === 'secondary' && tone.value === 'neutral',
171
- 'spr-border-color-brand-base': variant.value === 'secondary' && tone.value === 'success',
172
- 'spr-border-color-danger-base': variant.value === 'secondary' && tone.value === 'danger',
173
- }
174
- );
165
+ return classNames('spr-border spr-border-solid', {
166
+ 'spr-border-transparent': variant.value === 'primary' || variant.value === 'tertiary',
167
+ 'spr-border-white-50': (focused.value && variant.value === 'primary') || variant.value === 'tertiary',
168
+ 'spr-border-color-base': variant.value === 'secondary' && tone.value === 'neutral',
169
+ 'spr-border-color-brand-base': variant.value === 'secondary' && tone.value === 'success',
170
+ 'spr-border-color-danger-base': variant.value === 'secondary' && tone.value === 'danger',
171
+ });
175
172
  });
176
173
 
177
174
  const buttonProps: ComputedRef<Record<string, unknown>> = computed(() => {
@@ -16,6 +16,7 @@ export interface Header {
16
16
  badgeVariant?: string;
17
17
  avatarVariant?: string;
18
18
  customTailwindClasses?: string;
19
+ width?: string;
19
20
  }
20
21
 
21
22
  export interface TableData {
@@ -38,6 +38,7 @@
38
38
  v-for="(header, keyHeader) in headers"
39
39
  :key="keyHeader"
40
40
  :class="[getTableClasses.headerClasses(header)]"
41
+ :style="{ width: header?.width }"
41
42
  >
42
43
  <div :class="getTableClasses.headerNameClass">
43
44
  <span :class="[{ 'spr-cursor-pointer': header.sort }]" @click="header.sort && sortData(header.field)">
@@ -87,12 +88,13 @@
87
88
  <td
88
89
  v-if="props.isMultiSelect"
89
90
  :class="[getTableClasses.multiselectClass, getTableClasses.multiselectRowClass]"
91
+
90
92
  >
91
93
  <div class="spr-flex spr-items-center spr-justify-center">
92
94
  <spr-checkbox label="" :checked="isRowSelected(item)" @update:model-value="handleSelect(item)" />
93
95
  </div>
94
96
  </td>
95
- <td v-for="(column, headerKey) in headers" :key="headerKey" :class="getTableClasses.tableDataClasses">
97
+ <td v-for="(column, headerKey) in headers" :key="headerKey" :class="getTableClasses.tableDataClasses" :style="{ width: column?.width }">
96
98
  <slot v-if="$slots[column.field]" :name="column.field" :row="item" :row-index="keyIndex" />
97
99
  <template v-else>
98
100
  <div v-if="sortedData[keyIndex][column.field]" class="spr-flex spr-flex-row spr-items-center spr-gap-2">