@leaflink/stash 51.3.0 → 51.4.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.
- package/assets/illustrations/vignette/product-details.svg +29 -0
- package/dist/EmptyState.js +1 -1
- package/dist/EmptyState.vue.d.ts +2 -1
- package/dist/HttpError.js +1 -1
- package/dist/Illustration.js +2 -2
- package/dist/Illustration.vue.d.ts +1 -0
- package/dist/{Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js → Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js} +16 -16
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js.map +1 -0
- package/dist/ListView.vue.d.ts +12 -12
- package/dist/TableCell.js +1 -1
- package/dist/TableHeaderCell.js +1 -1
- package/dist/TableHeaderRow.js +1 -1
- package/dist/TableRow.js +1 -1
- package/package.json +1 -1
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<svg width="300" height="300" viewBox="0 0 300 300" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g style="mix-blend-mode:multiply">
|
|
3
|
+
<path d="M82 77C82 71.4772 86.4772 67 92 67H220C225.523 67 230 71.4772 230 77L230 235C230 240.523 225.523 245 220 245H92C86.4772 245 82 240.523 82 235L82 77Z" fill="#E8E9EE"/>
|
|
4
|
+
</g>
|
|
5
|
+
<path d="M80 55.5L208 55.5C213.247 55.5 217.5 59.7533 217.5 65L217.5 223C217.5 228.247 213.247 232.5 208 232.5H80C74.7533 232.5 70.5 228.247 70.5 223L70.5 65C70.5 59.7533 74.7533 55.5 80 55.5Z" fill="white" stroke="#06040F"/>
|
|
6
|
+
<rect x="82" y="173" width="76" height="6" rx="3" fill="#E8E9EE"/>
|
|
7
|
+
<rect x="82" y="183" width="76" height="6" rx="3" fill="#E8E9EE"/>
|
|
8
|
+
<rect x="82" y="193" width="76" height="6" rx="3" fill="#E8E9EE"/>
|
|
9
|
+
<rect x="82" y="163" width="30" height="6" rx="3" fill="#C5C9D4"/>
|
|
10
|
+
<rect x="168" y="173" width="15.2" height="6" rx="3" fill="#E8E9EE"/>
|
|
11
|
+
<rect x="168" y="183" width="15.2" height="6" rx="3" fill="#E8E9EE"/>
|
|
12
|
+
<rect x="168" y="193" width="15.2" height="6" rx="3" fill="#E8E9EE"/>
|
|
13
|
+
<rect x="187" y="173" width="19" height="6" rx="3" fill="#E8E9EE"/>
|
|
14
|
+
<rect x="187" y="183" width="19" height="6" rx="3" fill="#E8E9EE"/>
|
|
15
|
+
<rect x="187" y="193" width="19" height="6" rx="3" fill="#E8E9EE"/>
|
|
16
|
+
<rect x="168" y="163" width="21.7143" height="6" rx="3" fill="#C5C9D4"/>
|
|
17
|
+
<rect x="168" y="77" width="30.4" height="6" rx="3" fill="#E8E9EE"/>
|
|
18
|
+
<rect x="168" y="97" width="30.4" height="6" rx="3" fill="#E8E9EE"/>
|
|
19
|
+
<rect x="168" y="87" width="38" height="6" rx="3" fill="#C5C9D4"/>
|
|
20
|
+
<rect x="168" y="121" width="38" height="8" rx="4" fill="#E8E9EE"/>
|
|
21
|
+
<rect x="168" y="133" width="38" height="8" rx="4" fill="#E8E9EE"/>
|
|
22
|
+
<rect x="168" y="145" width="38" height="8" rx="4" fill="#C5C9D4"/>
|
|
23
|
+
<rect width="76" height="76" rx="4" transform="matrix(1 0 -4.30719e-05 1 82.0029 77)" fill="#E8E9EE"/>
|
|
24
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M115.877 105.118C116.954 99.4693 119.992 91 119.992 91C119.992 91 123.029 99.4693 124.106 105.118C124.638 107.909 124.262 111.556 123.77 114.443C125.17 112.942 126.711 111.477 128.192 110.453C132.833 107.242 140.798 103.465 140.798 103.465C140.798 103.465 137.129 111.665 134.01 116.442C133.553 117.142 133.005 117.856 132.405 118.562C137.983 118.282 145.999 119.042 145.999 119.042C145.999 119.042 138.838 124.255 133.817 126.787C132.375 127.515 130.562 128.015 128.728 128.36C131.761 130.015 135.568 132.786 135.568 132.786C135.568 132.786 130.159 133.3 126.704 133.057C125.473 132.971 124.045 132.602 122.735 132.171L122.734 139L117.249 139L117.249 132.176C115.943 132.604 114.52 132.971 113.293 133.057C109.838 133.3 104.429 132.786 104.429 132.786C104.429 132.786 108.236 130.015 111.269 128.36C109.435 128.016 107.623 127.515 106.18 126.787C101.159 124.255 93.9988 119.042 93.9988 119.042C93.9988 119.042 102.015 118.282 107.593 118.562C106.993 117.856 106.446 117.142 105.989 116.442C102.87 111.665 99.2012 103.465 99.2012 103.465C99.2012 103.465 107.166 107.242 111.807 110.453C113.281 111.472 114.815 112.928 116.209 114.422C115.719 111.538 115.347 107.902 115.877 105.118Z" fill="#C5C9D4"/>
|
|
25
|
+
<path d="M217.5 66.5V65C217.5 59.7533 213.247 55.5 208 55.5H80C74.7533 55.5 70.5 59.7533 70.5 65V66.5H217.5Z" fill="#C5C9D4" stroke="#06040F"/>
|
|
26
|
+
<path d="M70.5 209.5L70.5 223C70.5 228.247 74.7533 232.5 80 232.5L208 232.5C213.247 232.5 217.5 228.247 217.5 223L217.5 209.5L70.5 209.5Z" fill="#E8E9EE" stroke="#06040F"/>
|
|
27
|
+
<rect x="170" y="217" width="36" height="8" rx="4" fill="#C5C9D4"/>
|
|
28
|
+
<rect x="130" y="217" width="36" height="8" rx="4" fill="#C5C9D4"/>
|
|
29
|
+
</svg>
|
package/dist/EmptyState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, useCssModule as p, useSlots as g, createElementBlock as o, openBlock as s, createBlock as _, createCommentVNode as i, createElementVNode as u, renderSlot as a, toDisplayString as n, normalizeClass as m, unref as r, createTextVNode as y } from "vue";
|
|
2
2
|
import { t as w } from "./locale.js";
|
|
3
|
-
import { _ as b } from "./Illustration.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as b } from "./Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js";
|
|
4
4
|
import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const x = {
|
|
6
6
|
key: "empty",
|
package/dist/EmptyState.vue.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ src: string;
|
|
|
74
74
|
};
|
|
75
75
|
text: string;
|
|
76
76
|
subtitle: string;
|
|
77
|
-
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
77
|
+
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
78
78
|
footnote: string;
|
|
79
79
|
vignetteSize: number;
|
|
80
80
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, Readonly<EmptyStateSlots> & EmptyStateSlots>;
|
|
@@ -145,6 +145,7 @@ declare enum VignetteName {
|
|
|
145
145
|
Payments = "payments",
|
|
146
146
|
PieChart = "pie-chart",
|
|
147
147
|
ProductCards = "product-cards",
|
|
148
|
+
ProductDetails = "product-details",
|
|
148
149
|
ProductDisplay = "product-display",
|
|
149
150
|
Search = "search",
|
|
150
151
|
SearchStorefront = "search-storefront",
|
package/dist/HttpError.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as B, useCssModule as b, useSlots as z, computed as l, resolveComponent as S, createElementBlock as _, openBlock as m, normalizeClass as n, unref as s, createElementVNode as o, createVNode as p, createCommentVNode as V, withCtx as h, toDisplayString as a, createTextVNode as c, renderSlot as X } from "vue";
|
|
2
2
|
import { t } from "./locale.js";
|
|
3
3
|
import I from "./Button.js";
|
|
4
|
-
import { _ as N, V as $, I as M } from "./Illustration.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as N, V as $, I as M } from "./Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js";
|
|
5
5
|
import { _ as T } from "./Logo.vue_vue_type_script_setup_true_lang-Dz8c98sc.js";
|
|
6
6
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const H = { class: "heading-jumbo tw-m-0 tw-mb-3 !tw-text-white" }, j = { class: "tw-mb-8 tw-text-white" }, F = { class: "tw-mb-4 tw-text-white" }, R = ["href"], Y = {
|
package/dist/Illustration.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as s } from "./Illustration.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { I as m, S as o, V as p, s as r, v as i } from "./Illustration.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as s } from "./Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js";
|
|
2
|
+
import { I as m, S as o, V as p, s as r, v as i } from "./Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js";
|
|
3
3
|
export {
|
|
4
4
|
m as IllustrationType,
|
|
5
5
|
o as SpotName,
|
|
@@ -234,6 +234,7 @@ export declare enum VignetteName {
|
|
|
234
234
|
Payments = "payments",
|
|
235
235
|
PieChart = "pie-chart",
|
|
236
236
|
ProductCards = "product-cards",
|
|
237
|
+
ProductDetails = "product-details",
|
|
237
238
|
ProductDisplay = "product-display",
|
|
238
239
|
Search = "search",
|
|
239
240
|
SearchStorefront = "search-storefront",
|
|
@@ -3,9 +3,9 @@ import v from "lodash-es/uniqueId";
|
|
|
3
3
|
import { I as b } from "./index-D6bxWkZ1.js";
|
|
4
4
|
var l = /* @__PURE__ */ ((r) => (r.Approved = "approved", r.Avatar = "avatar", r.Barcode = "barcode", r.Calendar = "calendar", r.Cartridge = "cartridge", r.Celebrate = "celebrate", r.ChatBubble = "chat-bubble", r.CheckBox = "check-box", r.CheckCircle = "check-circle", r.Click = "click", r.Cocktail = "cocktail", r.Confirmation = "confirmation", r.Connnect = "connnect", r.Cookie = "cookie", r.CreditCard = "credit-card", r.Crm = "crm", r.Cultivation = "cultivation", r.Data = "data", r.DeliveryCompleted = "delivery-completed", r.Delivery = "delivery", r.DigitalPayments = "digital-payments", r.Discover = "discover", r.Diversity = "diversity", r.Drink = "drink", r.Dolly = "dolly", r.EasyReconciliations = "easy-reconciliations", r.Efficiency = "efficiency", r.Error = "error", r.ExtendDate = "extend-date", r.FinancialGrowth = "financial-growth", r.FinancialInstitution = "financial-institution", r.Focus = "focus", r.FulfillmentIssues = "fulfillment-issues", r.Growth = "growth", r.Handshake = "handshake", r.Hierarchy = "hierarchy", r.Home = "home", r.Laptop = "laptop", r.Licenses = "licenses", r.LightBulb = "light-bulb", r.LightbulbError = "lightbulb-error", r.LineChart = "line-chart", r.Link = "link", r.LocationPin = "location-pin", r.Lock = "lock", r.Messaging = "messaging", r.Messages = "messages", r.Microchip = "microchip", r.MissingData = "missing-data", r.MoneyTransfer = "money-transfer", r.Money = "money", r.NoInventoryAccess = "no-inventory-access", r.NoInventory = "no-inventory", r.NoPromote = "no-promote", r.PackageReceived = "package-received", r.Package = "package", r.PaymentProcessing = "payment-processing", r.Phone = "phone", r.PieChart = "pie-chart", r.ProductCycle = "product-cycle", r.Puzzle = "puzzle", r.Receipt = "receipt", r.Retail = "retail", r.SearchingDocument = "searching-document", r.ShoppingBasket = "shopping-basket", r.Shopping = "shopping", r.Sign = "sign", r.Smile = "smile", r.Speed = "speed", r.Time = "time", r.Tools = "tools", r.Truck = "truck", r.User = "user", r.Warehouse = "warehouse", r.Warning = "warning", r.XCircle = "x-circle", r))(l || {});
|
|
5
5
|
const C = Object.values(l);
|
|
6
|
-
var o = /* @__PURE__ */ ((r) => (r.Api = "api", r.Bank = "bank", r.Basket = "basket", r.BrandMenu = "brand-menu", r.Calendar = "calendar", r.Dashboard = "dashboard", r.Deals = "deals", r.DocumentSearch = "document-search", r.Edit = "edit", r.EmptyTray = "empty-tray", r.Graph = "graph", r.Integrations = "integrations", r.LightBulb = "light-bulb", r.Map = "map", r.Megaphone = "megaphone", r.Messages = "messages", r.MoneyBank = "money-bank", r.Notifications = "notifications", r.OrdersEmpty = "orders-empty", r.Payments = "payments", r.PieChart = "pie-chart", r.ProductCards = "product-cards", r.ProductDisplay = "product-display", r.Search = "search", r.SearchStorefront = "search-storefront", r.Store = "store", r.Todo = "todo", r.Truck = "truck", r.Users = "users", r.Warehouse = "warehouse", r.WarehouseDelivery = "warehouse-delivery", r))(o || {});
|
|
6
|
+
var o = /* @__PURE__ */ ((r) => (r.Api = "api", r.Bank = "bank", r.Basket = "basket", r.BrandMenu = "brand-menu", r.Calendar = "calendar", r.Dashboard = "dashboard", r.Deals = "deals", r.DocumentSearch = "document-search", r.Edit = "edit", r.EmptyTray = "empty-tray", r.Graph = "graph", r.Integrations = "integrations", r.LightBulb = "light-bulb", r.Map = "map", r.Megaphone = "megaphone", r.Messages = "messages", r.MoneyBank = "money-bank", r.Notifications = "notifications", r.OrdersEmpty = "orders-empty", r.Payments = "payments", r.PieChart = "pie-chart", r.ProductCards = "product-cards", r.ProductDetails = "product-details", r.ProductDisplay = "product-display", r.Search = "search", r.SearchStorefront = "search-storefront", r.Store = "store", r.Todo = "todo", r.Truck = "truck", r.Users = "users", r.Warehouse = "warehouse", r.WarehouseDelivery = "warehouse-delivery", r))(o || {});
|
|
7
7
|
const g = Object.values(o);
|
|
8
|
-
var
|
|
8
|
+
var i = /* @__PURE__ */ ((r) => (r.Spot = "spot", r.Vignette = "vignette", r.Scene = "scene", r))(i || {});
|
|
9
9
|
const I = /* @__PURE__ */ d({
|
|
10
10
|
__name: "Illustration",
|
|
11
11
|
props: {
|
|
@@ -13,44 +13,44 @@ const I = /* @__PURE__ */ d({
|
|
|
13
13
|
name: {},
|
|
14
14
|
title: { default: "" },
|
|
15
15
|
size: { default: 48 },
|
|
16
|
-
type: { default:
|
|
16
|
+
type: { default: i.Spot },
|
|
17
17
|
fillColor: { default: "blue" },
|
|
18
18
|
strokeColor: { default: "purple-500" },
|
|
19
19
|
staticPath: { default: "" }
|
|
20
20
|
},
|
|
21
21
|
setup(r) {
|
|
22
|
-
const
|
|
23
|
-
if (
|
|
22
|
+
const s = r;
|
|
23
|
+
if (s.type === i.Scene)
|
|
24
24
|
throw new Error(
|
|
25
25
|
"Scene illustration types are not supported. Illustrations will need to be uploaded under ./assets/illustrations/scene. Illustrations to be provided by design."
|
|
26
26
|
);
|
|
27
|
-
if (
|
|
27
|
+
if (s.type === i.Spot && !C.includes(s.name) || s.type === i.Vignette && !g.includes(s.name))
|
|
28
28
|
throw new Error(
|
|
29
|
-
`${
|
|
29
|
+
`${s.type} illustration name ${s.name} not found. Did you check that you are using the correct type for your illustration?`
|
|
30
30
|
);
|
|
31
31
|
const n = u("stashOptions", {
|
|
32
32
|
staticPath: "/static"
|
|
33
|
-
}), e = c(() =>
|
|
33
|
+
}), e = c(() => s.type === i.Spot), t = c(() => e.value ? "0" : !1), a = c(() => s.staticPath || (n == null ? void 0 : n.staticPath));
|
|
34
34
|
return (w, P) => (y(), h(k(b), {
|
|
35
|
-
id:
|
|
35
|
+
id: s.id,
|
|
36
36
|
class: f(["tw-inline-block tw-align-middle", {
|
|
37
|
-
[`tw-text-${
|
|
37
|
+
[`tw-text-${s.fillColor}-400 tw-stroke-${s.strokeColor}`]: e.value
|
|
38
38
|
}]),
|
|
39
|
-
title:
|
|
40
|
-
height:
|
|
41
|
-
width:
|
|
39
|
+
title: s.title,
|
|
40
|
+
height: s.size,
|
|
41
|
+
width: s.size,
|
|
42
42
|
"stroke-width": t.value,
|
|
43
43
|
fill: "none",
|
|
44
|
-
src: `${a.value}/illustrations/${
|
|
44
|
+
src: `${a.value}/illustrations/${s.type}/${s.name}.svg`
|
|
45
45
|
}, null, 8, ["id", "class", "title", "height", "width", "stroke-width", "src"]));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
i as I,
|
|
50
50
|
l as S,
|
|
51
51
|
o as V,
|
|
52
52
|
I as _,
|
|
53
53
|
C as s,
|
|
54
54
|
g as v
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=Illustration.vue_vue_type_script_setup_true_lang-
|
|
56
|
+
//# sourceMappingURL=Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js","sources":["../src/components/Illustration/Illustration.models.ts","../src/components/Illustration/Illustration.vue"],"sourcesContent":["/**\n * Enum to strongly map between a friendly name and file name of the illustration\n */\nexport enum SpotName {\n Approved = 'approved',\n Avatar = 'avatar',\n Barcode = 'barcode',\n Calendar = 'calendar',\n Cartridge = 'cartridge',\n Celebrate = 'celebrate',\n ChatBubble = 'chat-bubble',\n CheckBox = 'check-box',\n CheckCircle = 'check-circle',\n Click = 'click',\n Cocktail = 'cocktail',\n Confirmation = 'confirmation',\n Connnect = 'connnect',\n Cookie = 'cookie',\n CreditCard = 'credit-card',\n Crm = 'crm',\n Cultivation = 'cultivation',\n Data = 'data',\n DeliveryCompleted = 'delivery-completed',\n Delivery = 'delivery',\n DigitalPayments = 'digital-payments',\n Discover = 'discover',\n Diversity = 'diversity',\n Drink = 'drink',\n Dolly = 'dolly',\n EasyReconciliations = 'easy-reconciliations',\n Efficiency = 'efficiency',\n Error = 'error',\n ExtendDate = 'extend-date',\n FinancialGrowth = 'financial-growth',\n FinancialInstitution = 'financial-institution',\n Focus = 'focus',\n FulfillmentIssues = 'fulfillment-issues',\n Growth = 'growth',\n Handshake = 'handshake',\n Hierarchy = 'hierarchy',\n Home = 'home',\n Laptop = 'laptop',\n Licenses = 'licenses',\n LightBulb = 'light-bulb',\n LightbulbError = 'lightbulb-error',\n LineChart = 'line-chart',\n Link = 'link',\n LocationPin = 'location-pin',\n Lock = 'lock',\n Messaging = 'messaging',\n Messages = 'messages',\n Microchip = 'microchip',\n MissingData = 'missing-data',\n MoneyTransfer = 'money-transfer',\n Money = 'money',\n NoInventoryAccess = 'no-inventory-access',\n NoInventory = 'no-inventory',\n NoPromote = 'no-promote',\n PackageReceived = 'package-received',\n Package = 'package',\n PaymentProcessing = 'payment-processing',\n Phone = 'phone',\n PieChart = 'pie-chart',\n ProductCycle = 'product-cycle',\n Puzzle = 'puzzle',\n Receipt = 'receipt',\n Retail = 'retail',\n SearchingDocument = 'searching-document',\n ShoppingBasket = 'shopping-basket',\n Shopping = 'shopping',\n Sign = 'sign',\n Smile = 'smile',\n Speed = 'speed',\n Time = 'time',\n Tools = 'tools',\n Truck = 'truck',\n User = 'user',\n Warehouse = 'warehouse',\n Warning = 'warning',\n XCircle = 'x-circle',\n}\n\nexport type SpotNames = `${SpotName}`;\n\n/**\n * String array of all illustration names\n */\nexport const spotNames = Object.values(SpotName);\n\nexport enum VignetteName {\n Api = 'api',\n Bank = 'bank',\n Basket = 'basket',\n BrandMenu = 'brand-menu',\n Calendar = 'calendar',\n Dashboard = 'dashboard',\n Deals = 'deals',\n DocumentSearch = 'document-search',\n Edit = 'edit',\n EmptyTray = 'empty-tray',\n Graph = 'graph',\n Integrations = 'integrations',\n LightBulb = 'light-bulb',\n Map = 'map',\n Megaphone = 'megaphone',\n Messages = 'messages',\n MoneyBank = 'money-bank',\n Notifications = 'notifications',\n OrdersEmpty = 'orders-empty',\n Payments = 'payments',\n PieChart = 'pie-chart',\n ProductCards = 'product-cards',\n ProductDetails = 'product-details',\n ProductDisplay = 'product-display',\n Search = 'search',\n SearchStorefront = 'search-storefront',\n Store = 'store',\n Todo = 'todo',\n Truck = 'truck',\n Users = 'users',\n Warehouse = 'warehouse',\n WarehouseDelivery = 'warehouse-delivery',\n}\n\nexport type VignetteNames = `${VignetteName}`;\n\n/**\n * String array of all vignette names\n */\nexport const vignetteNames = Object.values(VignetteName);\n\n/**\n * Types of illustrations that map to the subfolder under ./assets/illustrations/<type>\n */\nexport enum IllustrationType {\n Spot = 'spot',\n Vignette = 'vignette',\n // Scene is not implemented, but adding it for future work mentioned in STASH-61.\n Scene = 'scene',\n}\n\nexport type IllustrationTypes = `${IllustrationType}`;\n","<script lang=\"ts\">\n export * from './Illustration.models';\n</script>\n\n<script lang=\"ts\" setup>\n import uniqueId from 'lodash-es/uniqueId';\n import { computed, inject } from 'vue';\n import InlineSvg from 'vue-inline-svg';\n\n import { StashPrimaryColor, StashPrimaryColorGroup } from '../../../types/colors';\n import { StashProvideState } from '../../../types/misc';\n import {\n IllustrationType,\n IllustrationTypes,\n SpotName,\n SpotNames,\n spotNames,\n VignetteName,\n VignetteNames,\n vignetteNames,\n } from './Illustration.models';\n\n export interface IllustrationProps {\n id?: string;\n\n /**\n * The filename of the icon that should be displayed\n */\n name: SpotNames | VignetteNames;\n\n /**\n * Accessible, short-text description for the icon. Not rendered as part of the graphic, but\n * browsers usually display it as a tooltip and screen readers use this.\n */\n title?: string;\n\n /**\n * The size in pixels of the illustration. This number will be used for width and height\n */\n size?: number;\n\n /**\n * Type of the illustration\n */\n type?: IllustrationTypes;\n\n /**\n * The fill color for the illustration. This component will use the 400 shade of the color\n * per design's request. Defaults to teal.\n */\n fillColor?: StashPrimaryColorGroup;\n\n /**\n * The color theme for the illustration. This component will use the standard 500 shade of the color.\n * Defaults to purple\n */\n strokeColor?: StashPrimaryColor;\n\n /**\n * Illustration's custom static path. It'll default to either the staticPath defined on the library installation or '/static' if none are provided.\n */\n staticPath?: string;\n }\n\n const props = withDefaults(defineProps<IllustrationProps>(), {\n id: uniqueId('ll-illustration-'),\n title: '',\n size: 48,\n type: IllustrationType.Spot,\n fillColor: 'blue',\n strokeColor: 'purple-500',\n staticPath: '',\n });\n\n if (props.type === IllustrationType.Scene) {\n throw new Error(\n 'Scene illustration types are not supported. Illustrations will need to be uploaded under ./assets/illustrations/scene. Illustrations to be provided by design.',\n );\n }\n\n if (\n (props.type === IllustrationType.Spot && !spotNames.includes(props.name as SpotName)) ||\n (props.type === IllustrationType.Vignette && !vignetteNames.includes(props.name as VignetteName))\n ) {\n throw new Error(\n `${props.type} illustration name ${props.name} not found. Did you check that you are using the correct type for your illustration?`,\n );\n }\n\n const stashOptions = inject<Partial<StashProvideState>>('stashOptions', {\n staticPath: '/static',\n });\n\n const isSpotIllustration = computed(() => props.type === IllustrationType.Spot);\n\n /**\n * Browsers won't add the `stroke-width` attribute if it is set to false.\n * However, setting it to specific number value affects vignettes\n */\n const strokeWidth = computed<boolean | string>(() => {\n return isSpotIllustration.value ? '0' : false;\n });\n\n const computedStaticPath = computed(() => {\n return props.staticPath || stashOptions?.staticPath;\n });\n</script>\n\n<template>\n <!-- InlineSvg package (https://github.com/shrpne/vue-inline-svg) swaps external svgs and puts\n them inline so we can style them with CSS -->\n <!-- Having to override fill to be none and stroke to be zero so the exported svgs from Figma\n that do not have those attributes specified do not get a default one applied -->\n <InlineSvg\n :id=\"props.id\"\n class=\"tw-inline-block tw-align-middle\"\n :class=\"{\n [`tw-text-${props.fillColor}-400 tw-stroke-${props.strokeColor}`]: isSpotIllustration,\n }\"\n :title=\"props.title\"\n :height=\"props.size\"\n :width=\"props.size\"\n :stroke-width=\"strokeWidth\"\n fill=\"none\"\n :src=\"`${computedStaticPath}/illustrations/${props.type}/${props.name}.svg`\"\n />\n</template>\n"],"names":["SpotName","spotNames","VignetteName","vignetteNames","IllustrationType","props","__props","stashOptions","inject","isSpotIllustration","computed","strokeWidth","computedStaticPath"],"mappings":";;;AAGY,IAAAA,sBAAAA,OACVA,EAAA,WAAW,YACXA,EAAA,SAAS,UACTA,EAAA,UAAU,WACVA,EAAA,WAAW,YACXA,EAAA,YAAY,aACZA,EAAA,YAAY,aACZA,EAAA,aAAa,eACbA,EAAA,WAAW,aACX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AI;AAAA,QACR,GAAGA,EAAM,IAAI,sBAAsBA,EAAM,IAAI;AAAA,MAC/C;AAGI,UAAAE,IAAeC,EAAmC,gBAAgB;AAAA,MACtE,YAAY;AAAA,IAAA,CACb,GAEKC,IAAqBC,EAAS,MAAML,EAAM,SAASD,EAAiB,IAAI,GAMxEO,IAAcD,EAA2B,MACtCD,EAAmB,QAAQ,MAAM,EACzC,GAEKG,IAAqBF,EAAS,MAC3BL,EAAM,eAAcE,KAAA,gBAAAA,EAAc,WAC1C;;;;;;;;;;;;;;;"}
|
package/dist/ListView.vue.d.ts
CHANGED
|
@@ -3540,7 +3540,7 @@ type: PropType<string>;
|
|
|
3540
3540
|
default: string;
|
|
3541
3541
|
};
|
|
3542
3542
|
vignette: {
|
|
3543
|
-
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
3543
|
+
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
3544
3544
|
default: undefined;
|
|
3545
3545
|
};
|
|
3546
3546
|
footnote: {
|
|
@@ -3559,7 +3559,7 @@ src: string;
|
|
|
3559
3559
|
};
|
|
3560
3560
|
text: string;
|
|
3561
3561
|
subtitle: string;
|
|
3562
|
-
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
3562
|
+
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
3563
3563
|
footnote: string;
|
|
3564
3564
|
vignetteSize: number;
|
|
3565
3565
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
@@ -3593,7 +3593,7 @@ type: PropType<string>;
|
|
|
3593
3593
|
default: string;
|
|
3594
3594
|
};
|
|
3595
3595
|
vignette: {
|
|
3596
|
-
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
3596
|
+
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
3597
3597
|
default: undefined;
|
|
3598
3598
|
};
|
|
3599
3599
|
footnote: {
|
|
@@ -3612,7 +3612,7 @@ src: string;
|
|
|
3612
3612
|
};
|
|
3613
3613
|
text: string;
|
|
3614
3614
|
subtitle: string;
|
|
3615
|
-
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
3615
|
+
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
3616
3616
|
footnote: string;
|
|
3617
3617
|
vignetteSize: number;
|
|
3618
3618
|
}>;
|
|
@@ -3643,7 +3643,7 @@ type: PropType<string>;
|
|
|
3643
3643
|
default: string;
|
|
3644
3644
|
};
|
|
3645
3645
|
vignette: {
|
|
3646
|
-
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
3646
|
+
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
3647
3647
|
default: undefined;
|
|
3648
3648
|
};
|
|
3649
3649
|
footnote: {
|
|
@@ -3662,7 +3662,7 @@ src: string;
|
|
|
3662
3662
|
};
|
|
3663
3663
|
text: string;
|
|
3664
3664
|
subtitle: string;
|
|
3665
|
-
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
3665
|
+
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
3666
3666
|
footnote: string;
|
|
3667
3667
|
vignetteSize: number;
|
|
3668
3668
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
@@ -5344,7 +5344,7 @@ type: PropType<string>;
|
|
|
5344
5344
|
default: string;
|
|
5345
5345
|
};
|
|
5346
5346
|
vignette: {
|
|
5347
|
-
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
5347
|
+
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
5348
5348
|
default: undefined;
|
|
5349
5349
|
};
|
|
5350
5350
|
footnote: {
|
|
@@ -5363,7 +5363,7 @@ src: string;
|
|
|
5363
5363
|
};
|
|
5364
5364
|
text: string;
|
|
5365
5365
|
subtitle: string;
|
|
5366
|
-
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
5366
|
+
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
5367
5367
|
footnote: string;
|
|
5368
5368
|
vignetteSize: number;
|
|
5369
5369
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
@@ -5397,7 +5397,7 @@ type: PropType<string>;
|
|
|
5397
5397
|
default: string;
|
|
5398
5398
|
};
|
|
5399
5399
|
vignette: {
|
|
5400
|
-
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
5400
|
+
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
5401
5401
|
default: undefined;
|
|
5402
5402
|
};
|
|
5403
5403
|
footnote: {
|
|
@@ -5416,7 +5416,7 @@ src: string;
|
|
|
5416
5416
|
};
|
|
5417
5417
|
text: string;
|
|
5418
5418
|
subtitle: string;
|
|
5419
|
-
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
5419
|
+
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
5420
5420
|
footnote: string;
|
|
5421
5421
|
vignetteSize: number;
|
|
5422
5422
|
}>;
|
|
@@ -5447,7 +5447,7 @@ type: PropType<string>;
|
|
|
5447
5447
|
default: string;
|
|
5448
5448
|
};
|
|
5449
5449
|
vignette: {
|
|
5450
|
-
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
5450
|
+
type: PropType<"map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery">;
|
|
5451
5451
|
default: undefined;
|
|
5452
5452
|
};
|
|
5453
5453
|
footnote: {
|
|
@@ -5466,7 +5466,7 @@ src: string;
|
|
|
5466
5466
|
};
|
|
5467
5467
|
text: string;
|
|
5468
5468
|
subtitle: string;
|
|
5469
|
-
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
5469
|
+
vignette: "map" | "search" | "calendar" | "dashboard" | "edit" | "megaphone" | "truck" | "warehouse" | "payments" | "light-bulb" | "messages" | "pie-chart" | "api" | "bank" | "basket" | "brand-menu" | "deals" | "document-search" | "empty-tray" | "graph" | "integrations" | "money-bank" | "notifications" | "orders-empty" | "product-cards" | "product-details" | "product-display" | "search-storefront" | "store" | "todo" | "users" | "warehouse-delivery";
|
|
5470
5470
|
footnote: string;
|
|
5471
5471
|
vignetteSize: number;
|
|
5472
5472
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
package/dist/TableCell.js
CHANGED
|
@@ -3,7 +3,7 @@ import "lodash-es/cloneDeep";
|
|
|
3
3
|
import "lodash-es/get";
|
|
4
4
|
import "lodash-es/uniqueId";
|
|
5
5
|
import "./DataView.keys-aSOnA4AD.js";
|
|
6
|
-
import "./Illustration.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import "./Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js";
|
|
7
7
|
import "@leaflink/snitch";
|
|
8
8
|
import { T as w } from "./Table.keys-LHQf6FEH.js";
|
|
9
9
|
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
package/dist/TableHeaderCell.js
CHANGED
|
@@ -3,7 +3,7 @@ import "lodash-es/cloneDeep";
|
|
|
3
3
|
import "lodash-es/get";
|
|
4
4
|
import f from "./Icon.js";
|
|
5
5
|
import { D as b } from "./DataView.keys-aSOnA4AD.js";
|
|
6
|
-
import "./Illustration.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import "./Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js";
|
|
7
7
|
import "lodash-es/uniqueId";
|
|
8
8
|
import "@leaflink/snitch";
|
|
9
9
|
import { T as N } from "./Table.keys-LHQf6FEH.js";
|
package/dist/TableHeaderRow.js
CHANGED
|
@@ -4,7 +4,7 @@ import v from "./Checkbox.js";
|
|
|
4
4
|
import { D as w } from "./DataView.keys-aSOnA4AD.js";
|
|
5
5
|
import "lodash-es/cloneDeep";
|
|
6
6
|
import "lodash-es/uniqueId";
|
|
7
|
-
import "./Illustration.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import "./Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js";
|
|
8
8
|
import { T as N } from "./Table.keys-LHQf6FEH.js";
|
|
9
9
|
import h from "./TableHeaderCell.js";
|
|
10
10
|
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
package/dist/TableRow.js
CHANGED
|
@@ -6,7 +6,7 @@ import { _ as U } from "./ChevronToggle.vue_vue_type_script_setup_true_lang-Ce_q
|
|
|
6
6
|
import { _ as G } from "./Expand.vue_vue_type_script_setup_true_lang-CiONJfAp.js";
|
|
7
7
|
import "lodash-es/cloneDeep";
|
|
8
8
|
import "./DataView.keys-aSOnA4AD.js";
|
|
9
|
-
import "./Illustration.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import "./Illustration.vue_vue_type_script_setup_true_lang-DlY0OGCe.js";
|
|
10
10
|
import y from "./TableCell.js";
|
|
11
11
|
import { T as H } from "./Table.keys-LHQf6FEH.js";
|
|
12
12
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Illustration.vue_vue_type_script_setup_true_lang-BBqgoJO8.js","sources":["../src/components/Illustration/Illustration.models.ts","../src/components/Illustration/Illustration.vue"],"sourcesContent":["/**\n * Enum to strongly map between a friendly name and file name of the illustration\n */\nexport enum SpotName {\n Approved = 'approved',\n Avatar = 'avatar',\n Barcode = 'barcode',\n Calendar = 'calendar',\n Cartridge = 'cartridge',\n Celebrate = 'celebrate',\n ChatBubble = 'chat-bubble',\n CheckBox = 'check-box',\n CheckCircle = 'check-circle',\n Click = 'click',\n Cocktail = 'cocktail',\n Confirmation = 'confirmation',\n Connnect = 'connnect',\n Cookie = 'cookie',\n CreditCard = 'credit-card',\n Crm = 'crm',\n Cultivation = 'cultivation',\n Data = 'data',\n DeliveryCompleted = 'delivery-completed',\n Delivery = 'delivery',\n DigitalPayments = 'digital-payments',\n Discover = 'discover',\n Diversity = 'diversity',\n Drink = 'drink',\n Dolly = 'dolly',\n EasyReconciliations = 'easy-reconciliations',\n Efficiency = 'efficiency',\n Error = 'error',\n ExtendDate = 'extend-date',\n FinancialGrowth = 'financial-growth',\n FinancialInstitution = 'financial-institution',\n Focus = 'focus',\n FulfillmentIssues = 'fulfillment-issues',\n Growth = 'growth',\n Handshake = 'handshake',\n Hierarchy = 'hierarchy',\n Home = 'home',\n Laptop = 'laptop',\n Licenses = 'licenses',\n LightBulb = 'light-bulb',\n LightbulbError = 'lightbulb-error',\n LineChart = 'line-chart',\n Link = 'link',\n LocationPin = 'location-pin',\n Lock = 'lock',\n Messaging = 'messaging',\n Messages = 'messages',\n Microchip = 'microchip',\n MissingData = 'missing-data',\n MoneyTransfer = 'money-transfer',\n Money = 'money',\n NoInventoryAccess = 'no-inventory-access',\n NoInventory = 'no-inventory',\n NoPromote = 'no-promote',\n PackageReceived = 'package-received',\n Package = 'package',\n PaymentProcessing = 'payment-processing',\n Phone = 'phone',\n PieChart = 'pie-chart',\n ProductCycle = 'product-cycle',\n Puzzle = 'puzzle',\n Receipt = 'receipt',\n Retail = 'retail',\n SearchingDocument = 'searching-document',\n ShoppingBasket = 'shopping-basket',\n Shopping = 'shopping',\n Sign = 'sign',\n Smile = 'smile',\n Speed = 'speed',\n Time = 'time',\n Tools = 'tools',\n Truck = 'truck',\n User = 'user',\n Warehouse = 'warehouse',\n Warning = 'warning',\n XCircle = 'x-circle',\n}\n\nexport type SpotNames = `${SpotName}`;\n\n/**\n * String array of all illustration names\n */\nexport const spotNames = Object.values(SpotName);\n\nexport enum VignetteName {\n Api = 'api',\n Bank = 'bank',\n Basket = 'basket',\n BrandMenu = 'brand-menu',\n Calendar = 'calendar',\n Dashboard = 'dashboard',\n Deals = 'deals',\n DocumentSearch = 'document-search',\n Edit = 'edit',\n EmptyTray = 'empty-tray',\n Graph = 'graph',\n Integrations = 'integrations',\n LightBulb = 'light-bulb',\n Map = 'map',\n Megaphone = 'megaphone',\n Messages = 'messages',\n MoneyBank = 'money-bank',\n Notifications = 'notifications',\n OrdersEmpty = 'orders-empty',\n Payments = 'payments',\n PieChart = 'pie-chart',\n ProductCards = 'product-cards',\n ProductDisplay = 'product-display',\n Search = 'search',\n SearchStorefront = 'search-storefront',\n Store = 'store',\n Todo = 'todo',\n Truck = 'truck',\n Users = 'users',\n Warehouse = 'warehouse',\n WarehouseDelivery = 'warehouse-delivery',\n}\n\nexport type VignetteNames = `${VignetteName}`;\n\n/**\n * String array of all vignette names\n */\nexport const vignetteNames = Object.values(VignetteName);\n\n/**\n * Types of illustrations that map to the subfolder under ./assets/illustrations/<type>\n */\nexport enum IllustrationType {\n Spot = 'spot',\n Vignette = 'vignette',\n // Scene is not implemented, but adding it for future work mentioned in STASH-61.\n Scene = 'scene',\n}\n\nexport type IllustrationTypes = `${IllustrationType}`;\n","<script lang=\"ts\">\n export * from './Illustration.models';\n</script>\n\n<script lang=\"ts\" setup>\n import uniqueId from 'lodash-es/uniqueId';\n import { computed, inject } from 'vue';\n import InlineSvg from 'vue-inline-svg';\n\n import { StashPrimaryColor, StashPrimaryColorGroup } from '../../../types/colors';\n import { StashProvideState } from '../../../types/misc';\n import {\n IllustrationType,\n IllustrationTypes,\n SpotName,\n SpotNames,\n spotNames,\n VignetteName,\n VignetteNames,\n vignetteNames,\n } from './Illustration.models';\n\n export interface IllustrationProps {\n id?: string;\n\n /**\n * The filename of the icon that should be displayed\n */\n name: SpotNames | VignetteNames;\n\n /**\n * Accessible, short-text description for the icon. Not rendered as part of the graphic, but\n * browsers usually display it as a tooltip and screen readers use this.\n */\n title?: string;\n\n /**\n * The size in pixels of the illustration. This number will be used for width and height\n */\n size?: number;\n\n /**\n * Type of the illustration\n */\n type?: IllustrationTypes;\n\n /**\n * The fill color for the illustration. This component will use the 400 shade of the color\n * per design's request. Defaults to teal.\n */\n fillColor?: StashPrimaryColorGroup;\n\n /**\n * The color theme for the illustration. This component will use the standard 500 shade of the color.\n * Defaults to purple\n */\n strokeColor?: StashPrimaryColor;\n\n /**\n * Illustration's custom static path. It'll default to either the staticPath defined on the library installation or '/static' if none are provided.\n */\n staticPath?: string;\n }\n\n const props = withDefaults(defineProps<IllustrationProps>(), {\n id: uniqueId('ll-illustration-'),\n title: '',\n size: 48,\n type: IllustrationType.Spot,\n fillColor: 'blue',\n strokeColor: 'purple-500',\n staticPath: '',\n });\n\n if (props.type === IllustrationType.Scene) {\n throw new Error(\n 'Scene illustration types are not supported. Illustrations will need to be uploaded under ./assets/illustrations/scene. Illustrations to be provided by design.',\n );\n }\n\n if (\n (props.type === IllustrationType.Spot && !spotNames.includes(props.name as SpotName)) ||\n (props.type === IllustrationType.Vignette && !vignetteNames.includes(props.name as VignetteName))\n ) {\n throw new Error(\n `${props.type} illustration name ${props.name} not found. Did you check that you are using the correct type for your illustration?`,\n );\n }\n\n const stashOptions = inject<Partial<StashProvideState>>('stashOptions', {\n staticPath: '/static',\n });\n\n const isSpotIllustration = computed(() => props.type === IllustrationType.Spot);\n\n /**\n * Browsers won't add the `stroke-width` attribute if it is set to false.\n * However, setting it to specific number value affects vignettes\n */\n const strokeWidth = computed<boolean | string>(() => {\n return isSpotIllustration.value ? '0' : false;\n });\n\n const computedStaticPath = computed(() => {\n return props.staticPath || stashOptions?.staticPath;\n });\n</script>\n\n<template>\n <!-- InlineSvg package (https://github.com/shrpne/vue-inline-svg) swaps external svgs and puts\n them inline so we can style them with CSS -->\n <!-- Having to override fill to be none and stroke to be zero so the exported svgs from Figma\n that do not have those attributes specified do not get a default one applied -->\n <InlineSvg\n :id=\"props.id\"\n class=\"tw-inline-block tw-align-middle\"\n :class=\"{\n [`tw-text-${props.fillColor}-400 tw-stroke-${props.strokeColor}`]: isSpotIllustration,\n }\"\n :title=\"props.title\"\n :height=\"props.size\"\n :width=\"props.size\"\n :stroke-width=\"strokeWidth\"\n fill=\"none\"\n :src=\"`${computedStaticPath}/illustrations/${props.type}/${props.name}.svg`\"\n />\n</template>\n"],"names":["SpotName","spotNames","VignetteName","vignetteNames","IllustrationType","props","__props","stashOptions","inject","isSpotIllustration","computed","strokeWidth","computedStaticPath"],"mappings":";;;AAGY,IAAAA,sBAAAA,OACVA,EAAA,WAAW,YACXA,EAAA,SAAS,UACTA,EAAA,UAAU,WACVA,EAAA,WAAW,YACXA,EAAA,YAAY,aACZA,EAAA,YAAY,aACZA,EAAA,aAAa,eACbA,EAAA,WAAW,a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