@netlify/spark-ui 0.0.30 → 0.0.31

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.
@@ -2,5 +2,5 @@ type Props = {
2
2
  name: IconName;
3
3
  };
4
4
  export default function Icon(props: Props): import("preact").JSX.Element;
5
- export type IconName = 'book' | 'caretRight' | 'code' | 'cube' | 'link' | 'pageWithLines' | 'pencil' | 'rss' | 'search' | 'sparkles' | 'terminal' | 'question' | 'linkedin' | 'netlify' | 'bluesky' | 'twitter' | 'youtube';
5
+ export type IconName = 'book' | 'caretRight' | 'code' | 'comment' | 'cube' | 'link' | 'pageWithLines' | 'pencil' | 'rss' | 'search' | 'sparkles' | 'terminal' | 'question' | 'linkedin' | 'netlify' | 'bluesky' | 'twitter' | 'youtube';
6
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { u as C } from "../../../chunks/jsxRuntime.module.Bzuv3cXw.js";
2
2
  import { Fragment as t } from "preact";
3
- function g(L) {
4
- const r = I[L.name];
3
+ function w(L) {
4
+ const r = m[L.name];
5
5
  return /* @__PURE__ */ C("svg", { "data-icon": L.name, viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(r, {}) });
6
6
  }
7
7
  const n = () => /* @__PURE__ */ C(
@@ -103,73 +103,74 @@ const n = () => /* @__PURE__ */ C(
103
103
  d: "M0 4.57143C0 2.04286 2.04286 0 4.57143 0C37.4 0 64 26.6 64 59.4286C64 61.9571 61.9571 64 59.4286 64C56.9 64 54.8571 61.9571 54.8571 59.4286C54.8571 31.6571 32.3429 9.14286 4.57143 9.14286C2.04286 9.14286 0 7.1 0 4.57143ZM0 54.8571C0 52.4323 0.963263 50.1068 2.67788 48.3922C4.3925 46.6776 6.71802 45.7143 9.14286 45.7143C11.5677 45.7143 13.8932 46.6776 15.6078 48.3922C17.3225 50.1068 18.2857 52.4323 18.2857 54.8571C18.2857 57.282 17.3225 59.6075 15.6078 61.3221C13.8932 63.0367 11.5677 64 9.14286 64C6.71802 64 4.3925 63.0367 2.67788 61.3221C0.963263 59.6075 0 57.282 0 54.8571ZM4.57143 18.2857C27.3 18.2857 45.7143 36.7 45.7143 59.4286C45.7143 61.9571 43.6714 64 41.1429 64C38.6143 64 36.5714 61.9571 36.5714 59.4286C36.5714 41.7571 22.2429 27.4286 4.57143 27.4286C2.04286 27.4286 0 25.3857 0 22.8571C0 20.3286 2.04286 18.2857 4.57143 18.2857Z",
104
104
  fill: "currentColor"
105
105
  }
106
- ), Z = () => /* @__PURE__ */ C(
106
+ ), Z = () => /* @__PURE__ */ C("path", { d: "M15.4623 44.9025C17.0744 43.7277 19.1614 43.4278 21.0359 44.1027C24.3475 45.3024 28.0591 45.9897 32.0081 45.9897C47.5917 45.9897 58.0015 35.9295 58.0015 25.9942C58.0015 16.0589 47.5917 5.99866 32.0081 5.99866C16.4246 5.99866 6.01468 16.0589 6.01468 25.9942C6.01468 29.9933 7.56429 33.8424 10.4761 37.1417C11.5508 38.3539 12.0756 39.9536 11.9507 41.5782C11.7757 43.8402 11.2384 45.9148 10.5385 47.7518C12.663 46.7646 14.4251 45.6648 15.4623 44.915V44.9025ZM2.66553 49.9763C2.89048 49.6389 3.10292 49.3015 3.30287 48.9641C4.55255 46.8895 5.73975 44.1651 5.97719 41.1033C2.22814 36.8418 0.0162028 31.6304 0.0162028 25.9942C0.0162028 11.6349 14.3376 0 32.0081 0C49.6786 0 64 11.6349 64 25.9942C64 40.3535 49.6786 51.9884 32.0081 51.9884C27.3718 51.9884 22.9729 51.1886 18.9989 49.7514C17.5118 50.8387 15.0874 52.3258 12.2131 53.5755C10.3261 54.4004 8.17664 55.1502 5.9522 55.5876C5.85222 55.6126 5.75225 55.6251 5.65228 55.6501C5.10241 55.7501 4.56505 55.8375 4.00269 55.8875C3.9777 55.8875 3.94021 55.9 3.91522 55.9C3.27788 55.9625 2.64054 56 2.0032 56C1.19091 56 0.466089 55.5126 0.153668 54.7628C-0.158753 54.0129 0.0162028 53.1631 0.57856 52.5883C1.09093 52.0634 1.55331 51.501 1.9907 50.9011C2.20315 50.6137 2.4031 50.3263 2.59055 50.0388L2.62804 49.9763H2.66553Z", fill: "currentColor" }), u = () => /* @__PURE__ */ C(
107
107
  "path",
108
108
  {
109
109
  d: "M72.5371 33.3999C79.5621 26.3749 79.5621 14.9874 72.5371 7.96235C65.8496 1.27485 55.1121 0.912354 47.9871 7.14985L47.2246 7.82485C45.9746 8.91235 45.8496 10.8124 46.9371 12.0624C48.0246 13.3124 49.9246 13.4374 51.1746 12.3499L51.9371 11.6749C56.6871 7.52486 63.8371 7.76236 68.2996 12.2249C72.9746 16.8999 72.9746 24.4874 68.2996 29.1749L54.1371 43.3249C49.4621 47.9999 41.8621 47.9999 37.1871 43.3249C32.7246 38.8624 32.4871 31.7124 36.6371 26.9624L37.2246 26.2874C38.3121 25.0374 38.1871 23.1499 36.9371 22.0499C35.6871 20.9499 33.7996 21.0874 32.6996 22.3374L32.1121 23.0124C25.8871 30.1374 26.2496 40.8749 32.9371 47.5624C39.9621 54.5874 51.3496 54.5874 58.3746 47.5624L72.5371 33.3999ZM7.46211 30.5999C0.437109 37.6249 0.437109 49.0124 7.46211 56.0249C14.1621 62.7249 24.8996 63.0749 32.0246 56.8374L32.7871 56.1624C34.0371 55.0749 34.1621 53.1749 33.0746 51.9249C31.9871 50.6749 30.0871 50.5499 28.8371 51.6374L28.0746 52.3124C23.3246 56.4624 16.1746 56.2249 11.7121 51.7624C7.03711 47.0874 7.03711 39.4999 11.7121 34.8124L25.8746 20.6749C30.5496 15.9999 38.1371 15.9999 42.8246 20.6749C47.2871 25.1374 47.5246 32.2874 43.3746 37.0374L42.6996 37.7999C41.6121 39.0499 41.7371 40.9374 42.9871 42.0374C44.2371 43.1374 46.1246 42.9999 47.2246 41.7499L47.8996 40.9874C54.1371 33.8624 53.7746 23.1249 47.0871 16.4249C40.0621 9.39985 28.6746 9.39985 21.6496 16.4249L7.46211 30.5999Z",
110
110
  fill: "currentColor"
111
111
  }
112
- ), u = () => /* @__PURE__ */ C(
112
+ ), i = () => /* @__PURE__ */ C(
113
113
  "path",
114
114
  {
115
115
  d: "M49.8875 0.137732C48.3 -0.349768 46.625 0.525232 46.1375 2.11273L28.1375 60.1127C27.65 61.7002 28.525 63.3752 30.1125 63.8627C31.7 64.3502 33.375 63.4752 33.8625 61.8877L51.8625 3.88773C52.35 2.30023 51.475 0.625232 49.8875 0.137732ZM58.8125 14.9502C57.675 16.1627 57.7375 18.0627 58.95 19.1877L72.6125 32.0002L58.95 44.8127C57.7375 45.9502 57.675 47.8502 58.8125 49.0502C59.95 50.2502 61.85 50.3252 63.05 49.1877L79.05 34.1877C79.65 33.6252 80 32.8252 80 32.0002C80 31.1752 79.6625 30.3752 79.05 29.8127L63.05 14.8127C61.8375 13.6752 59.9375 13.7377 58.8125 14.9502ZM21.1875 14.9502C20.05 13.7377 18.15 13.6752 16.95 14.8127L0.95 29.8127C0.3375 30.3752 0 31.1752 0 32.0002C0 32.8252 0.3375 33.6252 0.95 34.1877L16.95 49.1877C18.1625 50.3252 20.0625 50.2627 21.1875 49.0502C22.3125 47.8377 22.2625 45.9377 21.05 44.8127L7.3875 32.0002L21.05 19.1877C22.2625 18.0502 22.325 16.1502 21.1875 14.9502Z",
116
116
  fill: "currentColor"
117
117
  }
118
- ), i = () => /* @__PURE__ */ C(
118
+ ), a = () => /* @__PURE__ */ C(
119
119
  "path",
120
120
  {
121
121
  d: "M8 58C6.9 58 6 57.1 6 56V8C6 6.9 6.9 6 8 6H28V16C28 18.2125 29.7875 20 32 20H42V56C42 57.1 41.1 58 40 58H8ZM8 0C3.5875 0 0 3.5875 0 8V56C0 60.4125 3.5875 64 8 64H40C44.4125 64 48 60.4125 48 56V19.3125C48 17.1875 47.1625 15.15 45.6625 13.65L34.3375 2.3375C32.8375 0.8375 30.8125 0 28.6875 0H8ZM15 32C13.3375 32 12 33.3375 12 35C12 36.6625 13.3375 38 15 38H33C34.6625 38 36 36.6625 36 35C36 33.3375 34.6625 32 33 32H15ZM15 44C13.3375 44 12 45.3375 12 47C12 48.6625 13.3375 50 15 50H33C34.6625 50 36 48.6625 36 47C36 45.3375 34.6625 44 33 44H15Z",
122
122
  fill: "currentColor"
123
123
  }
124
- ), a = () => /* @__PURE__ */ C(
124
+ ), h = () => /* @__PURE__ */ C(
125
125
  "path",
126
126
  {
127
127
  d: "M0.787918 9.02542C-0.337082 7.80042 -0.249582 5.91292 0.962918 4.78792C2.17542 3.66292 4.07542 3.75042 5.20042 4.96292L28.2004 29.9629C29.2629 31.1129 29.2629 32.8754 28.2004 34.0254L5.20042 59.0254C4.07542 60.2504 2.17542 60.3254 0.962918 59.2004C-0.249582 58.0754 -0.337082 56.1754 0.787918 54.9629L21.9254 32.0004L0.787918 9.02542ZM31.0004 54.0004H69.0004C70.6629 54.0004 72.0004 55.3379 72.0004 57.0004C72.0004 58.6629 70.6629 60.0004 69.0004 60.0004H31.0004C29.3379 60.0004 28.0004 58.6629 28.0004 57.0004C28.0004 55.3379 29.3379 54.0004 31.0004 54.0004Z",
128
128
  fill: "currentColor"
129
129
  }
130
- ), h = () => /* @__PURE__ */ C(
130
+ ), s = () => /* @__PURE__ */ C(
131
131
  "path",
132
132
  {
133
133
  d: "M8 20.0002C8 14.4752 12.475 10.0002 18 10.0002H22C27.525 10.0002 32 14.4752 32 20.0002V20.5752C32 23.5877 30.5 26.4002 27.9875 28.0627L21.45 32.4252C18.675 34.2752 17 37.4002 17 40.7502V41.0002C17 42.6627 18.3375 44.0002 20 44.0002C21.6625 44.0002 23 42.6627 23 41.0002V40.7502C23 39.4127 23.6625 38.1627 24.775 37.4252L31.3125 33.0627C35.4875 30.2752 37.9875 25.6002 37.9875 20.5877V20.0127C37.9875 11.1752 30.825 4.01271 21.9875 4.01271H17.9875C9.1625 4.00021 2 11.1627 2 20.0002C2 21.6627 3.3375 23.0002 5 23.0002C6.6625 23.0002 8 21.6627 8 20.0002ZM20 60.0002C21.0609 60.0002 22.0783 59.5788 22.8284 58.8286C23.5786 58.0785 24 57.0611 24 56.0002C24 54.9393 23.5786 53.9219 22.8284 53.1718C22.0783 52.4216 21.0609 52.0002 20 52.0002C18.9391 52.0002 17.9217 52.4216 17.1716 53.1718C16.4214 53.9219 16 54.9393 16 56.0002C16 57.0611 16.4214 58.0785 17.1716 58.8286C17.9217 59.5788 18.9391 60.0002 20 60.0002Z",
134
134
  fill: "currentColor"
135
135
  }
136
- ), s = () => /* @__PURE__ */ C("path", { d: "M59.4286 0H4.55714C2.04286 0 0 2.07143 0 4.61429V59.3857C0 61.9286 2.04286 64 4.55714 64H59.4286C61.9429 64 64 61.9286 64 59.3857V4.61429C64 2.07143 61.9429 0 59.4286 0ZM19.3429 54.8571H9.85714V24.3143H19.3571V54.8571H19.3429ZM14.6 20.1429C11.5571 20.1429 9.1 17.6714 9.1 14.6429C9.1 11.6143 11.5571 9.14286 14.6 9.14286C17.6286 9.14286 20.1 11.6143 20.1 14.6429C20.1 17.6857 17.6429 20.1429 14.6 20.1429ZM54.9 54.8571H45.4143V40C45.4143 36.4571 45.3429 31.9 40.4857 31.9C35.5429 31.9 34.7857 35.7571 34.7857 39.7429V54.8571H25.3V24.3143H34.4V28.4857H34.5286C35.8 26.0857 38.9 23.5571 43.5143 23.5571C53.1143 23.5571 54.9 29.8857 54.9 38.1143V54.8571Z", fill: "currentColor" }), d = () => /* @__PURE__ */ C(
136
+ ), d = () => /* @__PURE__ */ C("path", { d: "M59.4286 0H4.55714C2.04286 0 0 2.07143 0 4.61429V59.3857C0 61.9286 2.04286 64 4.55714 64H59.4286C61.9429 64 64 61.9286 64 59.3857V4.61429C64 2.07143 61.9429 0 59.4286 0ZM19.3429 54.8571H9.85714V24.3143H19.3571V54.8571H19.3429ZM14.6 20.1429C11.5571 20.1429 9.1 17.6714 9.1 14.6429C9.1 11.6143 11.5571 9.14286 14.6 9.14286C17.6286 9.14286 20.1 11.6143 20.1 14.6429C20.1 17.6857 17.6429 20.1429 14.6 20.1429ZM54.9 54.8571H45.4143V40C45.4143 36.4571 45.3429 31.9 40.4857 31.9C35.5429 31.9 34.7857 35.7571 34.7857 39.7429V54.8571H25.3V24.3143H34.4V28.4857H34.5286C35.8 26.0857 38.9 23.5571 43.5143 23.5571C53.1143 23.5571 54.9 29.8857 54.9 38.1143V54.8571Z", fill: "currentColor" }), f = () => /* @__PURE__ */ C(
137
137
  "path",
138
138
  {
139
139
  d: "M48.6496 6H57.4746L38.1996 28.025L60.8746 58H43.1246L29.2121 39.825L13.3121 58H4.47461L25.0871 34.4375L3.34961 6H21.5496L34.1121 22.6125L48.6496 6ZM45.5496 52.725H50.4371L18.8871 11H13.6371L45.5496 52.725Z",
140
140
  fill: "currentColor"
141
141
  }
142
- ), f = () => /* @__PURE__ */ C(
142
+ ), p = () => /* @__PURE__ */ C(
143
143
  "path",
144
144
  {
145
145
  d: "M13.975 7.77494C21.275 13.2374 29.125 24.3374 32 30.2999C34.875 24.3499 42.725 13.2499 50.025 7.77494C55.2875 3.82494 63.8125 0.77494 63.8125 10.4999C63.8125 12.4374 62.7 26.8124 62.05 29.1499C59.775 37.2499 51.5 39.3249 44.1375 38.0624C57 40.2499 60.275 47.4999 53.2 54.7499C39.775 68.5249 33.9125 51.2999 32.4125 46.8874C32.2 46.2749 32.0875 45.9124 32 45.9124C31.9125 45.9124 31.8 46.2874 31.5875 46.8874C30.0875 51.2999 24.2125 68.5249 10.8 54.7499C3.7375 47.4999 7 40.2499 19.8625 38.0624C12.5 39.3249 4.225 37.2499 1.9625 29.1374C1.3 26.7999 0.1875 12.4249 0.1875 10.4874C0.1875 0.76244 8.7125 3.81244 13.975 7.76244V7.77494Z",
146
146
  fill: "currentColor"
147
147
  }
148
- ), p = () => /* @__PURE__ */ C(
148
+ ), I = () => /* @__PURE__ */ C(
149
149
  "path",
150
150
  {
151
151
  d: "M61.0785 13.8158C60.3785 11.1773 58.3229 9.10664 55.7118 8.40527C50.9785 7.125 32.0007 7.125 32.0007 7.125C32.0007 7.125 13.0229 7.125 8.28958 8.40527C5.67847 9.10664 3.62292 11.1773 2.92292 13.8158C1.65625 18.5918 1.65625 28.5445 1.65625 28.5445C1.65625 28.5445 1.65625 38.4973 2.92292 43.2732C3.62292 45.9117 5.67847 47.8934 8.28958 48.5947C13.0229 49.875 32.0007 49.875 32.0007 49.875C32.0007 49.875 50.9785 49.875 55.7118 48.5947C58.3229 47.8934 60.3785 45.9006 61.0785 43.2732C62.3451 38.4973 62.3451 28.5445 62.3451 28.5445C62.3451 28.5445 62.3451 18.5918 61.0785 13.8158ZM25.8007 37.5844V19.5047L41.6563 28.5445L25.8007 37.5844Z",
152
152
  fill: "currentColor"
153
153
  }
154
- ), I = {
154
+ ), m = {
155
155
  book: e,
156
156
  caretRight: V,
157
- code: u,
157
+ code: i,
158
+ comment: Z,
158
159
  cube: c,
159
- link: Z,
160
- pageWithLines: i,
160
+ link: u,
161
+ pageWithLines: a,
161
162
  pencil: H,
162
163
  rss: M,
163
164
  search: n,
164
165
  sparkles: o,
165
- terminal: a,
166
- question: h,
167
- bluesky: f,
168
- linkedin: s,
166
+ terminal: h,
167
+ question: s,
168
+ bluesky: p,
169
+ linkedin: d,
169
170
  netlify: l,
170
- twitter: d,
171
- youtube: p
171
+ twitter: f,
172
+ youtube: I
172
173
  };
173
174
  export {
174
- g as default
175
+ w as default
175
176
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@netlify/spark-ui",
3
3
  "description": "Assets, design tokens, components, and utilities",
4
- "version": "0.0.30",
4
+ "version": "0.0.31",
5
5
  "type": "module",
6
6
  "main": "dist/components/preact/index.js",
7
7
  "types": "dist/components/preact/index.d.ts",
@@ -116,6 +116,12 @@ const RSSIcon: FunctionComponent = () => {
116
116
  );
117
117
  };
118
118
 
119
+ const CommentIcon: FunctionComponent = () => {
120
+ return (
121
+ <path d="M15.4623 44.9025C17.0744 43.7277 19.1614 43.4278 21.0359 44.1027C24.3475 45.3024 28.0591 45.9897 32.0081 45.9897C47.5917 45.9897 58.0015 35.9295 58.0015 25.9942C58.0015 16.0589 47.5917 5.99866 32.0081 5.99866C16.4246 5.99866 6.01468 16.0589 6.01468 25.9942C6.01468 29.9933 7.56429 33.8424 10.4761 37.1417C11.5508 38.3539 12.0756 39.9536 11.9507 41.5782C11.7757 43.8402 11.2384 45.9148 10.5385 47.7518C12.663 46.7646 14.4251 45.6648 15.4623 44.915V44.9025ZM2.66553 49.9763C2.89048 49.6389 3.10292 49.3015 3.30287 48.9641C4.55255 46.8895 5.73975 44.1651 5.97719 41.1033C2.22814 36.8418 0.0162028 31.6304 0.0162028 25.9942C0.0162028 11.6349 14.3376 0 32.0081 0C49.6786 0 64 11.6349 64 25.9942C64 40.3535 49.6786 51.9884 32.0081 51.9884C27.3718 51.9884 22.9729 51.1886 18.9989 49.7514C17.5118 50.8387 15.0874 52.3258 12.2131 53.5755C10.3261 54.4004 8.17664 55.1502 5.9522 55.5876C5.85222 55.6126 5.75225 55.6251 5.65228 55.6501C5.10241 55.7501 4.56505 55.8375 4.00269 55.8875C3.9777 55.8875 3.94021 55.9 3.91522 55.9C3.27788 55.9625 2.64054 56 2.0032 56C1.19091 56 0.466089 55.5126 0.153668 54.7628C-0.158753 54.0129 0.0162028 53.1631 0.57856 52.5883C1.09093 52.0634 1.55331 51.501 1.9907 50.9011C2.20315 50.6137 2.4031 50.3263 2.59055 50.0388L2.62804 49.9763H2.66553Z" fill="currentColor" />
122
+ );
123
+ };
124
+
119
125
  const LinkIcon: FunctionComponent = () => {
120
126
  return (
121
127
  <path
@@ -198,6 +204,7 @@ export type IconName =
198
204
  | 'book'
199
205
  | 'caretRight'
200
206
  | 'code'
207
+ | 'comment'
201
208
  | 'cube'
202
209
  | 'link'
203
210
  | 'pageWithLines'
@@ -217,6 +224,7 @@ const iconPathMap: Record<IconName, FunctionComponent> = {
217
224
  book: BookIcon,
218
225
  caretRight: CaretRightIcon,
219
226
  code: CodeIcon,
227
+ comment: CommentIcon,
220
228
  cube: CubeIcon,
221
229
  link: LinkIcon,
222
230
  pageWithLines: PageWithLinesIcon,