design-system-next 2.12.15 → 2.13.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.
@@ -2193,16 +2193,13 @@ const Y = /* @__PURE__ */ P2(ei), ti = (e, r) => {
2193
2193
  neutral: "spr-background-color-base",
2194
2194
  success: "spr-background-color-brand-base",
2195
2195
  danger: "spr-background-color-danger-base"
2196
- })[o.value] || "", C = B(() => Y(
2197
- "spr-border spr-border-solid",
2198
- {
2199
- "spr-border-transparent": l.value === "primary" || l.value === "tertiary",
2200
- "spr-border-white-50": f.value && l.value === "primary" || l.value === "tertiary",
2201
- "spr-border-color-base": l.value === "secondary" && o.value === "neutral",
2202
- "spr-border-color-brand-base": l.value === "secondary" && o.value === "success",
2203
- "spr-border-color-danger-base": l.value === "secondary" && o.value === "danger"
2204
- }
2205
- )), b = B(() => ({
2196
+ })[o.value] || "", C = B(() => Y("spr-border spr-border-solid", {
2197
+ "spr-border-transparent": l.value === "primary" || l.value === "tertiary",
2198
+ "spr-border-white-50": f.value && l.value === "primary" || l.value === "tertiary",
2199
+ "spr-border-color-base": l.value === "secondary" && o.value === "neutral",
2200
+ "spr-border-color-brand-base": l.value === "secondary" && o.value === "success",
2201
+ "spr-border-color-danger-base": l.value === "secondary" && o.value === "danger"
2202
+ })), b = B(() => ({
2206
2203
  ...i.value && { ariaDisabled: !0 },
2207
2204
  disabled: i.value,
2208
2205
  autofocus: t.value === "focus",
@@ -15725,6 +15722,7 @@ const e9 = ["white", "dark", "gray", "green"], t9 = [
15725
15722
  "infinite-scroll-trigger": (e) => !0,
15726
15723
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
15727
15724
  "search-string": (e) => !0,
15725
+ "get-selected-option": Object,
15728
15726
  "popper-state": Boolean
15729
15727
  }, i8 = (e, r) => {
15730
15728
  const { displayText: t, options: s, disabled: n, textField: o, valueField: l, disabledLocalSearch: i } = Ie(e), u = B(() => {
@@ -15798,12 +15796,12 @@ const e9 = ["white", "dark", "gray", "green"], t9 = [
15798
15796
  M.value = !0;
15799
15797
  const w = O[0];
15800
15798
  if ("_originalObject" in w)
15801
- f.value = w._originalObject;
15799
+ f.value = w._originalObject, r("get-selected-option", w._originalObject);
15802
15800
  else {
15803
15801
  const j = w.value, I = w.text || "";
15804
15802
  typeof j == "string" && !isNaN(Number(j)) && j.trim() !== "" ? f.value = Number(j) : f.value = j, $.value = I;
15805
15803
  }
15806
- z.value = $.value, setTimeout(() => {
15804
+ z.value = $.value, r("get-selected-option", w), setTimeout(() => {
15807
15805
  c.value = !1, r("popper-state", !1);
15808
15806
  }, 10);
15809
15807
  }, P = () => {
@@ -16137,7 +16135,7 @@ const e9 = ["white", "dark", "gray", "green"], t9 = [
16137
16135
  return S === T || window.location.hostname === "localhost";
16138
16136
  }, d = (N) => {
16139
16137
  const S = new URL(N);
16140
- return S ? S.pathname : "";
16138
+ return S ? `${S.pathname}${S.hash}` : "";
16141
16139
  }, c = (N) => u(N.url) ? d(N.url) : N.url, g = (N) => {
16142
16140
  const S = {};
16143
16141
  return N.forEach((T) => {
@@ -16158,7 +16156,7 @@ const e9 = ["white", "dark", "gray", "green"], t9 = [
16158
16156
  icon: N.icon ?? "",
16159
16157
  redirect: N.url ? {
16160
16158
  openInNewTab: N.isNewTab || !1,
16161
- isAbsoluteURL: !u(N.url),
16159
+ isAbsoluteURL: !0,
16162
16160
  link: c(N) ?? ""
16163
16161
  } : void 0,
16164
16162
  menuLinks: T(C, "menuHeading"),
@@ -19649,7 +19647,8 @@ const vg = (e) => ({
19649
19647
  ], 2)) : k("", !0),
19650
19648
  (p(!0), v(q, null, ge(C.headers, (L, _) => (p(), v("th", {
19651
19649
  key: _,
19652
- class: A([a(d).headerClasses(L)])
19650
+ class: A([a(d).headerClasses(L)]),
19651
+ style: Te({ width: L == null ? void 0 : L.width })
19653
19652
  }, [
19654
19653
  D("div", {
19655
19654
  class: A(a(d).headerNameClass)
@@ -19682,7 +19681,7 @@ const vg = (e) => ({
19682
19681
  }, null, 8, ["icon", "class"])
19683
19682
  ], 10, mf)) : k("", !0)
19684
19683
  ], 2)
19685
- ], 2))), 128)),
19684
+ ], 6))), 128)),
19686
19685
  C.action ? (p(), v("th", {
19687
19686
  key: 1,
19688
19687
  class: A(a(d).headerClasses(null))
@@ -19721,7 +19720,8 @@ const vg = (e) => ({
19721
19720
  ], 2)) : k("", !0),
19722
19721
  (p(!0), v(q, null, ge(C.headers, (x, R) => (p(), v("td", {
19723
19722
  key: R,
19724
- class: A(a(d).tableDataClasses)
19723
+ class: A(a(d).tableDataClasses),
19724
+ style: Te({ width: x == null ? void 0 : x.width })
19725
19725
  }, [
19726
19726
  C.$slots[x.field] ? re(C.$slots, x.field, {
19727
19727
  key: 0,
@@ -19770,7 +19770,7 @@ const vg = (e) => ({
19770
19770
  ])
19771
19771
  ])) : k("", !0)
19772
19772
  ], 64))
19773
- ], 2))), 128)),
19773
+ ], 6))), 128)),
19774
19774
  C.action ? (p(), v("td", {
19775
19775
  key: 1,
19776
19776
  class: A(a(d).tableRowActionClasses)
@@ -20311,7 +20311,7 @@ const vg = (e) => ({
20311
20311
  }), ch = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20312
20312
  __proto__: null,
20313
20313
  default: dh
20314
- }, Symbol.toStringTag, { value: "Module" })), ph = "design-system-next", gh = "2.12.15", fh = "./dist/design-system-next.umd.js", hh = "./dist/design-system-next.es.js", vh = { type: "git", url: "https://dev.azure.com/sproutphil/Sprout%20Design%20System/_git/Sprout%20Design%20System%20Next" }, yh = "module", Ch = ["dist", "dist/", "src/", "README.md", "LICENSE"], mh = { ".": { import: "./dist/design-system-next.es.js", require: "./dist/design-system-next.umd.js" }, "./style.css": "./dist/main.css" }, Mh = { dev: "vite", build: "vue-tsc && vite build", "watch-build": "vue-tsc && vite build --watch", types: "vue-tsc", preview: "vite preview", "lint:script": 'eslint "**/*.{js,ts,vue}"', "lint:style": 'stylelint "**/*.{vue,css}"', "fix:style": 'stylelint --fix "**/*.{vue,css}"', lint: "npm run lint:script && npm run lint:style", prepublishOnly: "npm run build", "docs:dev": "vitepress dev docs", "docs:build": "vitepress build docs", "docs:serve": "vitepress serve docs", "docs:preview": "vitepress preview docs", clean: "rm -rf node_modules dist coverage package-lock.json && npm install" }, bh = { "@cloudinary/url-gen": "^1.21.0", "@eslint/js": "^9.17.0", "@iconify-icons/ph": "^1.2.5", "@iconify/vue": "^4.3.0", classnames: "^2.5.1", "countries-list": "^3.1.1", dayjs: "^1.11.13", "floating-vue": "^5.2.2", "libphonenumber-js": "^1.12.5", lodash: "^4.17.21", pinia: "^2.3.1", stylelint: "^16.12.0", "stylelint-config-recess-order": "^5.1.1", "stylelint-config-recommended": "^14.0.1", "stylelint-config-recommended-vue": "^1.5.0", "typescript-eslint": "^8.19.1", "vite-plugin-sass": "^0.1.0", vue: "^3.0.0" }, $h = { "@stylistic/stylelint-plugin": "^3.1.1", "@types/node": "^22.10.5", "@vitejs/plugin-vue": "^5.2.1", autoprefixer: "^10.4.20", eslint: "^9.17.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-vue": "^9.32.0", prettier: "^3.4.2", "prettier-plugin-tailwindcss": "^0.6.9", "rollup-plugin-gzip": "^4.0.1", "sass-embedded": "^1.83.1", tailwindcss: "^3.4.17", typescript: "~5.7.2", "unplugin-vue-components": "^28.0.0", vite: "^6.0.7", "vite-plugin-dts": "^4.4.0", "vite-tsconfig-paths": "^5.1.4", vitepress: "^1.5.0", "vue-eslint-parser": "^9.4.3", "vue-tsc": "^2.2.0" }, Nh = { vue: "^3.0.0" }, Dh = { node: ">=20.0.0", npm: ">=10.0.0" }, Ih = {
20314
+ }, Symbol.toStringTag, { value: "Module" })), ph = "design-system-next", gh = "2.13.1", fh = "./dist/design-system-next.umd.js", hh = "./dist/design-system-next.es.js", vh = { type: "git", url: "https://dev.azure.com/sproutphil/Sprout%20Design%20System/_git/Sprout%20Design%20System%20Next" }, yh = "module", Ch = ["dist", "dist/", "src/", "README.md", "LICENSE"], mh = { ".": { import: "./dist/design-system-next.es.js", require: "./dist/design-system-next.umd.js" }, "./style.css": "./dist/main.css" }, Mh = { dev: "vite", build: "vue-tsc && vite build", "watch-build": "vue-tsc && vite build --watch", types: "vue-tsc", preview: "vite preview", "lint:script": 'eslint "**/*.{js,ts,vue}"', "lint:style": 'stylelint "**/*.{vue,css}"', "fix:style": 'stylelint --fix "**/*.{vue,css}"', lint: "npm run lint:script && npm run lint:style", prepublishOnly: "npm run build", "docs:dev": "vitepress dev docs", "docs:build": "vitepress build docs", "docs:serve": "vitepress serve docs", "docs:preview": "vitepress preview docs", "test:e2e": "npx playwright test --ui", clean: "rm -rf node_modules dist coverage package-lock.json && npm install" }, bh = { "@cloudinary/url-gen": "^1.21.0", "@eslint/js": "^9.17.0", "@iconify-icons/ph": "^1.2.5", "@iconify/vue": "^4.3.0", classnames: "^2.5.1", "countries-list": "^3.1.1", dayjs: "^1.11.13", "floating-vue": "^5.2.2", "libphonenumber-js": "^1.12.5", lodash: "^4.17.21", pinia: "^2.3.1", stylelint: "^16.12.0", "stylelint-config-recess-order": "^5.1.1", "stylelint-config-recommended": "^14.0.1", "stylelint-config-recommended-vue": "^1.5.0", "typescript-eslint": "^8.19.1", "vite-plugin-sass": "^0.1.0", vue: "^3.0.0" }, $h = { "@axe-core/playwright": "^4.10.2", "@playwright/test": "^1.55.0", "@stylistic/stylelint-plugin": "^3.1.1", "@types/node": "^22.10.5", "@vitejs/plugin-vue": "^5.2.1", autoprefixer: "^10.4.20", eslint: "^9.17.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-vue": "^9.32.0", prettier: "^3.4.2", "prettier-plugin-tailwindcss": "^0.6.9", "rollup-plugin-gzip": "^4.0.1", "sass-embedded": "^1.83.1", tailwindcss: "^3.4.17", typescript: "~5.7.2", "unplugin-vue-components": "^28.0.0", vite: "^6.0.7", "vite-plugin-dts": "^4.4.0", "vite-tsconfig-paths": "^5.1.4", vitepress: "^1.5.0", "vue-eslint-parser": "^9.4.3", "vue-tsc": "^2.2.0" }, Nh = { vue: "^3.0.0" }, Dh = { node: ">=20.0.0", npm: ">=10.0.0" }, Ih = {
20315
20315
  name: ph,
20316
20316
  private: !1,
20317
20317
  version: gh,
Binary file