@saasquatch/mint-components 1.3.2-2 → 1.3.2-6

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 (75) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-big-stat.cjs.entry.js +1 -1
  4. package/dist/cjs/{sqm-divided-layout_27.cjs.entry.js → sqm-divided-layout_28.cjs.entry.js} +975 -395
  5. package/dist/cjs/{useDemoBigStat-17e61803.js → useDemoBigStat-d7c65044.js} +90 -20
  6. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +8 -1
  7. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
  8. package/dist/collection/components/sqm-big-stat/useBigStat.js +89 -20
  9. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
  10. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -14
  11. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +26 -40
  12. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +68 -47
  13. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +2 -1
  14. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +3 -1
  15. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  16. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
  17. package/dist/collection/components/sqm-task-card/SVGs.js +0 -6
  18. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +74 -243
  19. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  20. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
  21. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +311 -0
  22. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar.stories.js +53 -0
  23. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +15 -309
  24. package/dist/collection/components/sqm-task-card/sqm-task-card.js +108 -48
  25. package/dist/collection/stories/NewPortal.stories.js +15 -15
  26. package/dist/esm/loader.js +1 -1
  27. package/dist/esm/mint-components.js +1 -1
  28. package/dist/esm/sqm-big-stat.entry.js +1 -1
  29. package/dist/esm/{sqm-divided-layout_27.entry.js → sqm-divided-layout_28.entry.js} +939 -360
  30. package/dist/esm/{useDemoBigStat-b71fe122.js → useDemoBigStat-3d4832ef.js} +90 -20
  31. package/dist/esm-es5/loader.js +1 -1
  32. package/dist/esm-es5/mint-components.js +1 -1
  33. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  34. package/dist/esm-es5/sqm-divided-layout_28.entry.js +1 -0
  35. package/dist/esm-es5/useDemoBigStat-3d4832ef.js +1 -0
  36. package/dist/mint-components/mint-components.esm.js +1 -1
  37. package/dist/mint-components/p-0c07c81a.js +227 -0
  38. package/dist/mint-components/p-2d209222.system.entry.js +1 -0
  39. package/dist/mint-components/{p-c9c4f31b.system.entry.js → p-6e9944ed.system.entry.js} +1 -1
  40. package/dist/mint-components/p-8f04bed2.entry.js +288 -0
  41. package/dist/mint-components/p-91d39961.system.js +1 -1
  42. package/dist/mint-components/{p-e22eed7b.entry.js → p-aefa270d.entry.js} +1 -1
  43. package/dist/mint-components/p-fca9971b.system.js +1 -0
  44. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  45. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
  46. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
  47. package/dist/types/components/sqm-reward-exchange-list/progressBar.d.ts +3 -2
  48. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +1 -0
  49. package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -1
  50. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +3 -1
  51. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  52. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  53. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +9 -0
  54. package/dist/types/components/sqm-task-card/progress-bar/progress-bar.stories.d.ts +12 -0
  55. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +13 -22
  56. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +25 -13
  57. package/dist/types/components.d.ts +48 -34
  58. package/grapesjs/grapesjs.js +1 -1
  59. package/package.json +1 -1
  60. package/dist/cjs/sqm-task-card-view-57066e67.js +0 -476
  61. package/dist/cjs/sqm-task-card.cjs.entry.js +0 -56
  62. package/dist/esm/sqm-task-card-view-2ee495af.js +0 -474
  63. package/dist/esm/sqm-task-card.entry.js +0 -52
  64. package/dist/esm-es5/sqm-divided-layout_27.entry.js +0 -1
  65. package/dist/esm-es5/sqm-task-card-view-2ee495af.js +0 -1
  66. package/dist/esm-es5/sqm-task-card.entry.js +0 -1
  67. package/dist/esm-es5/useDemoBigStat-b71fe122.js +0 -1
  68. package/dist/mint-components/p-0ba3c956.system.entry.js +0 -1
  69. package/dist/mint-components/p-1e248afc.system.entry.js +0 -1
  70. package/dist/mint-components/p-353b4413.system.js +0 -1
  71. package/dist/mint-components/p-405a9253.js +0 -227
  72. package/dist/mint-components/p-8f5e2af4.entry.js +0 -1
  73. package/dist/mint-components/p-bca8867d.entry.js +0 -287
  74. package/dist/mint-components/p-e78a5a91.js +0 -1
  75. package/dist/mint-components/p-f87d8f53.system.js +0 -1
@@ -2,7 +2,7 @@ import { getAssetPath, h } from "@stencil/core";
2
2
  import jss from "jss";
3
3
  import preset from "jss-preset-default";
4
4
  import { ProgressBar } from "./progressBar";
5
- import { LeftArrow } from "./SVGs";
5
+ import { LeftArrow, ExchangeArrows } from "./SVGs";
6
6
  const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
7
7
  const stageProgressList = {
8
8
  chooseReward: "Choose reward",
@@ -21,29 +21,33 @@ export function RewardExchangeView(props) {
21
21
  },
22
22
  },
23
23
  Base: {
24
- display: "block",
24
+ display: "flex",
25
25
  cursor: "pointer",
26
26
  textAlign: "center",
27
+ height: "120px",
27
28
  "&::part(base)": {
28
29
  width: "100%",
29
- height: "170px",
30
+ maxWidth: "350px",
30
31
  display: "flex",
31
- justifyContent: "space-between",
32
- alignItems: "center",
32
+ margin: "0 auto",
33
33
  },
34
34
  "&::part(body)": {
35
- padding: "10px 0",
35
+ padding: 0,
36
+ display: "flex",
37
+ width: "100%",
36
38
  },
37
39
  },
38
40
  Drawer: {
39
41
  "&::part(base)": {
40
42
  minWidth: "400px",
43
+ maxWidth: "700px",
41
44
  width: "50%",
42
45
  margin: "0 auto",
43
46
  right: "0",
44
47
  },
45
48
  "&::part(panel)": {
46
49
  height: "85vh",
50
+ width: "100%",
47
51
  },
48
52
  },
49
53
  FullImage: {
@@ -53,8 +57,9 @@ export function RewardExchangeView(props) {
53
57
  },
54
58
  PreviewImage: {
55
59
  objectFit: "contain",
56
- maxWidth: "100%",
57
- height: "75px",
60
+ width: "120px",
61
+ height: "120px",
62
+ flex: 0.33,
58
63
  },
59
64
  InputBox: {
60
65
  width: "100%",
@@ -69,8 +74,9 @@ export function RewardExchangeView(props) {
69
74
  },
70
75
  },
71
76
  Buttons: {
72
- bottom: "0",
77
+ marginLeft: "auto",
73
78
  width: "100%",
79
+ maxWidth: "300px",
74
80
  },
75
81
  Button: {
76
82
  margin: "10px 0",
@@ -104,7 +110,9 @@ export function RewardExchangeView(props) {
104
110
  });
105
111
  } }, (_b = item.steps) === null || _b === void 0 ? void 0 : _b.map((step) => (h("sl-menu-item", { value: step, disabled: !step.available },
106
112
  step.prettyDestinationValue,
107
- h("span", { slot: "suffix", style: { fontSize: "75%" } }, step.prettySourceValue))))));
113
+ h("div", { slot: "suffix", style: { fontSize: "75%", float: "right" } },
114
+ step.prettySourceValue,
115
+ step.unavailableReasonCode && (h("p", { style: { fontSize: "70%", color: "#F2994A" } }, step.unavailableReasonCode))))))));
108
116
  }
109
117
  function chooseReward() {
110
118
  var _a;
@@ -112,29 +120,40 @@ export function RewardExchangeView(props) {
112
120
  ? "confirmation"
113
121
  : "chooseAmount";
114
122
  console.log({ nextStage, ruleType: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType });
115
- return (h("div", { style: {
116
- display: "flex",
117
- justifyContent: "center",
118
- flexWrap: "wrap",
119
- alignItems: "center",
120
- columnGap: "12px",
121
- rowGap: "12px",
122
- } }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 :
123
- _a.map((item) => {
123
+ return [
124
+ h("div", { style: {
125
+ display: "grid",
126
+ justifyContent: "center",
127
+ gap: "20px",
128
+ gridTemplateColumns: "repeat(auto-fill, minmax(220px, 1fr))",
129
+ } }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
124
130
  const style = {
125
131
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) ? "0 1px 8px #87ceeb" : "none",
126
132
  marginBottom: "10px 0",
127
133
  flex: "1",
128
- minWidth: "45%",
134
+ minWidth: "100%",
135
+ color: !item.available && "#eee",
129
136
  };
130
- return (h("div", { key: item.key, class: sheet.classes.CardContainer, style: style },
131
- h("sl-card", { class: sheet.classes.Base, onClick: () => callbacks.setExchangeState({ selectedItem: item }), disabled: !item.available },
132
- h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || getAssetPath("./assets/Reward-icon.png") }),
133
- h("p", null, item.description))));
134
- }),
137
+ const amount = item.ruleType === "FIXED_GLOBAL_REWARD"
138
+ ? item.prettySourceValue
139
+ : `${item.sourceMinValue} to ${item.sourceMaxValue} ${item.sourceUnit}`;
140
+ return (h("div", { key: item.key, class: item.available ? sheet.classes.CardContainer : "", style: style },
141
+ h("sl-card", { class: sheet.classes.Base, onClick: () => item.available &&
142
+ callbacks.setExchangeState({ selectedItem: item }) },
143
+ (item === null || item === void 0 ? void 0 : item.imageUrl) && (h("img", { class: sheet.classes.PreviewImage, src: (item === null || item === void 0 ? void 0 : item.imageUrl) || getAssetPath("./assets/Reward-icon.png") })),
144
+ h("p", { style: { margin: "0", flex: "1", fontSize: "90%" } },
145
+ h("b", null, item.description),
146
+ h("p", { style: { margin: "0" } }, amount),
147
+ item.unavailableReasonCode && (h("p", { style: {
148
+ fontSize: "70%",
149
+ color: "#F2994A",
150
+ marginTop: "0",
151
+ } }, item.unavailableReasonCode))))));
152
+ })),
135
153
  h("div", { class: sheet.classes.Buttons },
136
154
  h("sl-button", { onClick: () => callbacks.setStage(nextStage), style: { display: "block" }, class: sheet.classes.Button, disabled: !states.selectedItem }, "Continue"),
137
- h("a", { onClick: () => { var _a; return (_a = refs.drawerRef.current) === null || _a === void 0 ? void 0 : _a.hide(); }, style: { display: "block" }, class: sheet.classes.Button }, "Cancel"))));
155
+ h("a", { onClick: () => { var _a; return (_a = refs.drawerRef.current) === null || _a === void 0 ? void 0 : _a.hide(); }, style: { display: "block" }, class: sheet.classes.Button }, "Cancel")),
156
+ ];
138
157
  }
139
158
  function chooseAmount() {
140
159
  const input = getInput();
@@ -148,24 +167,26 @@ export function RewardExchangeView(props) {
148
167
  }
149
168
  console.log({ selectedItem, selectedStep });
150
169
  function confirmation() {
151
- console.log("confirmation:", { selectedItem });
152
- const redemptionAmount = () => {
153
- var _a;
154
- if ((selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD") {
155
- return `Redeem ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.sourceValue} ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.sourceUnit} for ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.globalRewardKey}`;
156
- }
157
- else {
158
- const amount = states.amount;
159
- const reward = (_a = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue) !== null && _a !== void 0 ? _a : `${amount} ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.destinationUnit}`;
160
- return `Redeem ${amount} ${selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.sourceUnit} for ${reward}`;
161
- }
162
- };
163
170
  const previousStage = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.ruleType) === "FIXED_GLOBAL_REWARD"
164
171
  ? "chooseReward"
165
172
  : "chooseAmount";
166
173
  return (h("div", null,
167
- h("h2", null, "Confirm your redemption:"),
168
- redemptionAmount(),
174
+ h("h2", null, "Confirm and redeem"),
175
+ h("div", { style: { textAlign: "center" } },
176
+ h("p", null,
177
+ h("b", null, selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue)),
178
+ h("p", null,
179
+ h(ExchangeArrows, null)),
180
+ h("div", { class: sheet.classes.CardContainer, style: {
181
+ boxShadow: "none",
182
+ marginBottom: "10px",
183
+ flex: "1",
184
+ minWidth: "100%",
185
+ } },
186
+ h("sl-card", { class: sheet.classes.Base },
187
+ h("img", { class: sheet.classes.PreviewImage, src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
188
+ getAssetPath("./assets/Reward-icon.png") }),
189
+ h("p", { style: { marginBottom: "0", flex: "1" } }, selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue)))),
169
190
  h("div", { class: sheet.classes.Buttons },
170
191
  h("sl-button", { onClick: callbacks.exchangeReward, style: { display: "block" }, class: sheet.classes.Button }, "Redeem"),
171
192
  h("a", { onClick: () => callbacks.setStage(previousStage), style: { display: "block" }, class: sheet.classes.Button }, "Back"))));
@@ -186,24 +207,24 @@ export function RewardExchangeView(props) {
186
207
  const currentStage = stages[states.redeemStage];
187
208
  function stageMap() {
188
209
  const stageNumber = stageList.indexOf(states.redeemStage);
189
- return (h("div", { style: { fontSize: "80%" } },
190
- h(ProgressBar, { stage: stageNumber }),
210
+ return (h("div", { style: { fontSize: "80%", marginBottom: "20px" } },
191
211
  h("div", { style: {
192
212
  marginTop: "5px",
193
213
  display: "flex",
194
214
  justifyContent: "center",
195
215
  textAlign: "center",
196
216
  whiteSpace: "nowrap",
197
- marginBottom: "10px",
217
+ marginBottom: "6px",
198
218
  } }, Object.keys(stageProgressList).map((stage) => {
199
219
  if (stage === states.redeemStage)
200
220
  return (h("b", { style: { flex: "1 1 0" } },
201
221
  " ",
202
222
  stageProgressList[stage]));
203
223
  return h("i", { style: { flex: "1 1 0" } }, stageProgressList[stage]);
204
- }))));
224
+ })),
225
+ h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
205
226
  }
206
- const Label = () => {
227
+ const BackButton = () => {
207
228
  if (states.redeemStage === "success")
208
229
  return "";
209
230
  let previousStage = "";
@@ -225,10 +246,10 @@ export function RewardExchangeView(props) {
225
246
  h("style", { type: "text/css" }, styleString),
226
247
  h("div", null,
227
248
  h("sl-drawer", { ref: (ref) => (refs.drawerRef.current = ref), placement: "right", class: sheet.classes.Drawer, open: stageList.indexOf(states.redeemStage) >= 0 },
228
- h(Label, null),
249
+ h(BackButton, null),
229
250
  stageMap(),
230
251
  currentStage && currentStage(),
231
252
  states.exchangeError &&
232
253
  "Something went wrong. Please contact support or try again."),
233
- h("sl-button", { onClick: () => callbacks.openDrawer() }, "Redeem Rewards"))));
254
+ h("sl-button", { loading: states.loading, onClick: () => callbacks.openDrawer() }, "Redeem Rewards"))));
234
255
  }
@@ -63,7 +63,7 @@ export class SqmRewardExchangeList {
63
63
  "mutable": false,
64
64
  "complexType": {
65
65
  "original": "DemoData<RewardExchangeViewProps>",
66
- "resolved": "{ states?: { selectedItem: ExchangeItem; selectedStep: ExchangeStep; redeemStage: string; amount: number; exchangeError?: boolean; content: { text: any; }; }; data?: { exchangeList: any; }; refs?: { drawerRef: any; }; }",
66
+ "resolved": "{ states?: { selectedItem: ExchangeItem; selectedStep: ExchangeStep; redeemStage: string; amount: number; exchangeError?: boolean; loading: boolean; content: { text: any; }; }; data?: { exchangeList: any; }; refs?: { drawerRef: any; }; }",
67
67
  "references": {
68
68
  "DemoData": {
69
69
  "location": "import",
@@ -103,6 +103,7 @@ function useRewardExchangeListDemo(props) {
103
103
  amount: 0,
104
104
  selectedStep: undefined,
105
105
  exchangeError: false,
106
+ loading: false,
106
107
  },
107
108
  data: {
108
109
  shareCode: "SHARECODE123",
@@ -34,6 +34,7 @@ const GET_EXCHANGE_LIST = gql `
34
34
  destinationValue
35
35
  prettyDestinationValue
36
36
  available
37
+ unavailableReasonCode
37
38
  }
38
39
  }
39
40
  totalCount
@@ -68,7 +69,7 @@ export function useRewardExchangeList(props) {
68
69
  const { selectedItem, selectedStep, redeemStage, amount, exchangeError } = exchangeState;
69
70
  const user = useUserIdentity();
70
71
  const [exchange, { data: exchangeResponse, errors }] = useMutation(EXCHANGE);
71
- const { data } = useQuery(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
72
+ const { data, loading } = useQuery(GET_EXCHANGE_LIST, !(user === null || user === void 0 ? void 0 : user.jwt));
72
73
  useEffect(() => {
73
74
  var _a, _b;
74
75
  if ((_b = (_a = exchangeResponse === null || exchangeResponse === void 0 ? void 0 : exchangeResponse.exchangeReward) === null || _a === void 0 ? void 0 : _a.reward) === null || _b === void 0 ? void 0 : _b.id) {
@@ -177,6 +178,7 @@ export function useRewardExchangeList(props) {
177
178
  amount,
178
179
  selectedStep,
179
180
  exchangeError,
181
+ loading,
180
182
  },
181
183
  data: {
182
184
  exchangeList: (_b = (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.visibleRewardExchangeItems) === null || _b === void 0 ? void 0 : _b.data,
@@ -13,6 +13,8 @@ export const CucumberAddon = ({ story }, children) => {
13
13
  // No scenario or invalid. Ignoring.
14
14
  }
15
15
  return (h("div", null,
16
- result && h("pre", { innerHTML: result.value }),
16
+ h("details", null,
17
+ h("summary", null, "Specs"),
18
+ result && h("pre", { innerHTML: result.value })),
17
19
  children));
18
20
  };
@@ -16,6 +16,7 @@ import * as UseEditProfile from "../sqm-edit-profile/UseEditProfile.stories";
16
16
  import * as UseLeaderboard from "../sqm-leaderboard/UseLeaderboard.stories";
17
17
  import * as FormMessage from "../sqm-form-message/FormMessage.stories";
18
18
  import * as UseRewardExchangeList from "../sqm-reward-exchange-list/UseRewardExchangeList.stories";
19
+ import * as UseTaskCard from "../sqm-task-card/UseTaskCard.stories";
19
20
  import * as NewPortal from "../../stories/NewPortal.stories";
20
21
  import * as SidebarItem from "../sqm-navigation-sidebar-item/SidebarItem.stories";
21
22
  import * as NavigationSidebar from "../sqm-navigation-sidebar/NavigationSidebar.stories";
@@ -35,6 +36,7 @@ import * as ReferralTableRewardsCell from "../sqm-referral-table/ReferralTableRe
35
36
  import * as UserName from "../sqm-user-name/UserName.stories";
36
37
  import * as PasswordField from "../sqm-password-field/PasswordField.stories";
37
38
  import * as TaskCard from "../sqm-task-card/TaskCard.stories";
39
+ import * as TaskCardProgressBar from "../sqm-task-card/progress-bar/progress-bar.stories";
38
40
  import * as PortalTemplates from "../../stories/PortalTemplates.stories";
39
41
  import * as ProgramMenu from "../sqm-program-menu/ProgramMenu.stories";
40
42
  import * as PoweredByImg from "../../stories/PoweredByImg.stories";
@@ -79,6 +81,7 @@ const stories = [
79
81
  UserName,
80
82
  PasswordField,
81
83
  TaskCard,
84
+ TaskCardProgressBar,
82
85
  PortalTemplates,
83
86
  ProgramMenu,
84
87
  PoweredByImg,
@@ -87,6 +90,7 @@ const stories = [
87
90
  ReferralIframe,
88
91
  NameFields,
89
92
  UseRewardExchangeList,
93
+ UseTaskCard,
90
94
  ];
91
95
  /**
92
96
  * For internal documentation
@@ -7,9 +7,3 @@ export const arrow_left_right = () => {
7
7
  return (h("svg", { width: 11, height: 12, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
8
8
  h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
9
9
  };
10
- export const gift = () => {
11
- return (h("svg", { width: 16, height: 16, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
12
- h("path", { d: "M15 5H9v11h4.5a1 1 0 001-1V9h.5a1 1 0 001-1V6a1 1 0 00-1-1zM1.5 9v6a1 1 0 001 1H7V5H1a1 1 0 00-1 1v2a1 1 0 001 1h.5z", fill: "var(--sl-color-primary-200)" }),
13
- h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9v1h13V9h-13z", fill: "var(--sl-color-primary-300)" }),
14
- h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.71c0 .886-1.33 2.227-2 2.29H9v11H7.002V5H4.588C3.212 4.702 2 3.645 2 2.52 2 1.426 2.476.558 3.342.183 4.169-.176 5.125.02 5.88.545c.927.643 1.447 1.851 1.919 2.947l.123.286.12-.272C8.51 2.45 9.045 1.243 9.94.596c.793-.573 1.801-.79 2.672-.397.9.405 1.388 1.336 1.388 2.51zM10.612 1.5c.48-.347 1.056-.41 1.548 0 .428.357.45.525.506.93l.01.07c0 .599-.516 1.5-1.032 1.5-.366 0-.653-.003-.922-.006-.49-.005-.92-.01-1.657.006.14-.272.252-.533.36-.782.285-.667.534-1.246 1.187-1.718zm-5.673 0c-.233-.161-.766-.09-.987.006-.183.08-.456.32-.456 1.015 0 .674 1.092 1.257 1.092 1.257S5.454 4 7.002 4c-.527-1.305-1.273-1.951-2.063-2.5z", fill: "var(--sl-color-primary-600)" })));
15
- };