@tryghost/shade 0.1.0-alpha.41 → 0.1.0-alpha.43

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 (54) hide show
  1. package/es/assets/images/index.js +1 -1
  2. package/es/components/ui/icon.js +1 -1
  3. package/es/components/ui/list.js +94 -0
  4. package/es/components/ui/list.js.map +1 -0
  5. package/es/components/ui/row-primary-action.js +48 -0
  6. package/es/components/ui/row-primary-action.js.map +1 -0
  7. package/es/components/ui/row-surface.js +18 -0
  8. package/es/components/ui/row-surface.js.map +1 -0
  9. package/es/components/ui/sortable-list.js +6 -2
  10. package/es/components/ui/sortable-list.js.map +1 -1
  11. package/es/components/ui/table.js +18 -7
  12. package/es/components/ui/table.js.map +1 -1
  13. package/es/components.js +6 -4
  14. package/es/hooks/use-row-behavior.js +94 -0
  15. package/es/hooks/use-row-behavior.js.map +1 -0
  16. package/es/hooks/use-row-press.js +63 -0
  17. package/es/hooks/use-row-press.js.map +1 -0
  18. package/es/{icon-BJcGsQ4b.js → icon--CakqPdG.js} +15 -19
  19. package/es/icon--CakqPdG.js.map +1 -0
  20. package/es/{images-DtbFINdz.js → images-F6slcZrB.js} +14 -20
  21. package/es/images-F6slcZrB.js.map +1 -0
  22. package/es/index.js +6 -4
  23. package/es/lib/svg-graphic.js +32 -0
  24. package/es/lib/svg-graphic.js.map +1 -0
  25. package/es/providers/shade-provider.js +1 -1
  26. package/package.json +1 -1
  27. package/styles.css +334 -0
  28. package/types/assets/images/index.d.ts +3 -2
  29. package/types/assets/images/index.d.ts.map +1 -1
  30. package/types/components/ui/icon.d.ts +2 -1
  31. package/types/components/ui/icon.d.ts.map +1 -1
  32. package/types/components/ui/list.d.ts +28 -0
  33. package/types/components/ui/list.d.ts.map +1 -0
  34. package/types/components/ui/row-primary-action.d.ts +8 -0
  35. package/types/components/ui/row-primary-action.d.ts.map +1 -0
  36. package/types/components/ui/row-surface.d.ts +11 -0
  37. package/types/components/ui/row-surface.d.ts.map +1 -0
  38. package/types/components/ui/sortable-list.d.ts.map +1 -1
  39. package/types/components/ui/table.d.ts +4 -1
  40. package/types/components/ui/table.d.ts.map +1 -1
  41. package/types/components.d.ts +3 -1
  42. package/types/components.d.ts.map +1 -1
  43. package/types/hooks/use-row-behavior.d.ts +24 -0
  44. package/types/hooks/use-row-behavior.d.ts.map +1 -0
  45. package/types/hooks/use-row-press.d.ts +11 -0
  46. package/types/hooks/use-row-press.d.ts.map +1 -0
  47. package/types/lib/svg-graphic.d.ts +22 -0
  48. package/types/lib/svg-graphic.d.ts.map +1 -0
  49. package/es/components/ui/action-list.js +0 -56
  50. package/es/components/ui/action-list.js.map +0 -1
  51. package/es/icon-BJcGsQ4b.js.map +0 -1
  52. package/es/images-DtbFINdz.js.map +0 -1
  53. package/types/components/ui/action-list.d.ts +0 -21
  54. package/types/components/ui/action-list.d.ts.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { cn, kebabToPascalCase } from "./lib/ds-utils.js";
2
+ import { svgGraphicProps } from "./lib/svg-graphic.js";
2
3
  import React from "react";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
4
5
  import { cva } from "class-variance-authority";
@@ -16,46 +17,43 @@ var __exportAll = (all, no_symbols) => {
16
17
  //#endregion
17
18
  //#region src/assets/icons/error-fill.svg?react
18
19
  var error_fill_exports = /* @__PURE__ */ __exportAll({ default: () => SvgErrorFill });
19
- var SvgErrorFill = (props) => /* @__PURE__ */ jsxs("svg", {
20
+ var SvgErrorFill = (props) => /* @__PURE__ */ jsx("svg", {
20
21
  xmlns: "http://www.w3.org/2000/svg",
21
22
  viewBox: "0 0 24 24",
22
23
  height: 24,
23
24
  width: 24,
24
- id: "Alert-Triangle--Streamline-Ultimate",
25
25
  ...props,
26
- children: [/* @__PURE__ */ jsx("desc", { children: "Alert Triangle Streamline Icon: https://streamlinehq.com" }), /* @__PURE__ */ jsx("path", {
26
+ children: /* @__PURE__ */ jsx("path", {
27
27
  d: "m23.77 20.57 -10 -19A2 2 0 0 0 12 0.5a2 2 0 0 0 -1.77 1.07l-10 19a2 2 0 0 0 0.06 2A2 2 0 0 0 2 23.5h20a2 2 0 0 0 1.77 -2.93ZM11 8.5a1 1 0 0 1 2 0v6a1 1 0 0 1 -2 0ZM12.05 20a1.53 1.53 0 0 1 -1.52 -1.47A1.48 1.48 0 0 1 12 17a1.53 1.53 0 0 1 1.52 1.47A1.48 1.48 0 0 1 12.05 20Z",
28
28
  fill: "currentColor",
29
29
  strokeWidth: 1
30
- })]
30
+ })
31
31
  });
32
32
  //#endregion
33
33
  //#region src/assets/icons/info-fill.svg?react
34
34
  var info_fill_exports = /* @__PURE__ */ __exportAll({ default: () => SvgInfoFill });
35
- var SvgInfoFill = (props) => /* @__PURE__ */ jsxs("svg", {
35
+ var SvgInfoFill = (props) => /* @__PURE__ */ jsx("svg", {
36
36
  xmlns: "http://www.w3.org/2000/svg",
37
37
  viewBox: "0 0 24 24",
38
38
  height: 24,
39
39
  width: 24,
40
- id: "Information-Circle--Streamline-Ultimate",
41
40
  ...props,
42
- children: [/* @__PURE__ */ jsx("desc", { children: "Information Circle Streamline Icon: https://streamlinehq.com" }), /* @__PURE__ */ jsx("path", {
41
+ children: /* @__PURE__ */ jsx("path", {
43
42
  d: "M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0Zm0.25 5a1.5 1.5 0 1 1 -1.5 1.5 1.5 1.5 0 0 1 1.5 -1.5Zm2.25 13.5h-4a1 1 0 0 1 0 -2h0.75a0.25 0.25 0 0 0 0.25 -0.25v-4.5a0.25 0.25 0 0 0 -0.25 -0.25h-0.75a1 1 0 0 1 0 -2h1a2 2 0 0 1 2 2v4.75a0.25 0.25 0 0 0 0.25 0.25h0.75a1 1 0 0 1 0 2Z",
44
43
  fill: "currentcolor",
45
44
  strokeWidth: 1
46
- })]
45
+ })
47
46
  });
48
47
  //#endregion
49
48
  //#region src/assets/icons/skull-and-bones.svg?react
50
49
  var skull_and_bones_exports = /* @__PURE__ */ __exportAll({ default: () => SvgSkullAndBones });
51
- var SvgSkullAndBones = (props) => /* @__PURE__ */ jsxs("svg", {
50
+ var SvgSkullAndBones = (props) => /* @__PURE__ */ jsx("svg", {
52
51
  height: 16,
53
- id: "Skull-2--Streamline-Ultimate",
54
52
  viewBox: "0 0 16 16",
55
53
  width: 16,
56
54
  xmlns: "http://www.w3.org/2000/svg",
57
55
  ...props,
58
- children: [/* @__PURE__ */ jsx("desc", { children: "\n Skull 2 Streamline Icon: https://streamlinehq.com\n " }), /* @__PURE__ */ jsxs("g", { children: [
56
+ children: /* @__PURE__ */ jsxs("g", { children: [
59
57
  /* @__PURE__ */ jsx("path", {
60
58
  d: "M12.333333333333332 7.333333333333333a4.333333333333333 4.333333333333333 0 1 0 -7.333333333333333 3.126666666666667v1.88a1 1 0 0 0 2 0 1 1 0 0 0 2 0 1 1 0 1 0 2 0v-1.88a4.326666666666666 4.326666666666666 0 0 0 1.3333333333333333 -3.126666666666667Zm-6.253333333333334 1a1 1 0 1 1 1 -1 1 1 0 0 1 -1 1Zm4 0a1 1 0 1 1 1 -1 1 1 0 0 1 -1 1Z",
61
59
  fill: "currentColor",
@@ -81,23 +79,22 @@ var SvgSkullAndBones = (props) => /* @__PURE__ */ jsxs("svg", {
81
79
  fill: "currentColor",
82
80
  strokeWidth: .6667
83
81
  })
84
- ] })]
82
+ ] })
85
83
  });
86
84
  //#endregion
87
85
  //#region src/assets/icons/success-fill.svg?react
88
86
  var success_fill_exports = /* @__PURE__ */ __exportAll({ default: () => SvgSuccessFill });
89
- var SvgSuccessFill = (props) => /* @__PURE__ */ jsxs("svg", {
87
+ var SvgSuccessFill = (props) => /* @__PURE__ */ jsx("svg", {
90
88
  xmlns: "http://www.w3.org/2000/svg",
91
89
  viewBox: "0 0 24 24",
92
90
  height: 24,
93
91
  width: 24,
94
- id: "Check-Circle-1--Streamline-Ultimate",
95
92
  ...props,
96
- children: [/* @__PURE__ */ jsx("desc", { children: "Check Circle 1 Streamline Icon: https://streamlinehq.com" }), /* @__PURE__ */ jsx("path", {
93
+ children: /* @__PURE__ */ jsx("path", {
97
94
  d: "M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0Zm6.93 8.2 -6.85 9.29a1 1 0 0 1 -1.43 0.19l-4.89 -3.91a1 1 0 0 1 -0.15 -1.41A1 1 0 0 1 7 12.21l4.08 3.26L17.32 7a1 1 0 0 1 1.39 -0.21 1 1 0 0 1 0.22 1.41Z",
98
95
  fill: "currentcolor",
99
96
  strokeWidth: 1
100
- })]
97
+ })
101
98
  });
102
99
  //#endregion
103
100
  //#region src/assets/icons/typography.svg?react
@@ -109,7 +106,6 @@ var SvgTypography = (props) => /* @__PURE__ */ jsxs("svg", {
109
106
  width: 24,
110
107
  ...props,
111
108
  children: [
112
- /* @__PURE__ */ jsx("desc", { children: "Typography" }),
113
109
  /* @__PURE__ */ jsx("path", {
114
110
  d: "m0.578125 9.827354166666668 8.09375 0",
115
111
  fill: "none",
@@ -170,7 +166,7 @@ var Icon = Object.entries(/* @__PURE__ */ Object.assign({
170
166
  className
171
167
  }));
172
168
  return React.createElement(module.default, {
173
- ...rest,
169
+ ...svgGraphicProps(rest),
174
170
  className: iconClassName
175
171
  });
176
172
  };
@@ -182,4 +178,4 @@ var IconComponents = Icon;
182
178
  //#endregion
183
179
  export { IconComponents as n, Icon as t };
184
180
 
185
- //# sourceMappingURL=icon-BJcGsQ4b.js.map
181
+ //# sourceMappingURL=icon--CakqPdG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon--CakqPdG.js","names":[],"sources":["../src/assets/icons/error-fill.svg?react","../src/assets/icons/info-fill.svg?react","../src/assets/icons/skull-and-bones.svg?react","../src/assets/icons/success-fill.svg?react","../src/assets/icons/typography.svg?react","../src/components/ui/icon.ts"],"sourcesContent":["import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgErrorFill = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\txmlns: \"http://www.w3.org/2000/svg\",\n\tviewBox: \"0 0 24 24\",\n\theight: 24,\n\twidth: 24,\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"m23.77 20.57 -10 -19A2 2 0 0 0 12 0.5a2 2 0 0 0 -1.77 1.07l-10 19a2 2 0 0 0 0.06 2A2 2 0 0 0 2 23.5h20a2 2 0 0 0 1.77 -2.93ZM11 8.5a1 1 0 0 1 2 0v6a1 1 0 0 1 -2 0ZM12.05 20a1.53 1.53 0 0 1 -1.52 -1.47A1.48 1.48 0 0 1 12 17a1.53 1.53 0 0 1 1.52 1.47A1.48 1.48 0 0 1 12.05 20Z\",\n\t\tfill: \"currentColor\",\n\t\tstrokeWidth: 1\n\t})\n});\nexport default SvgErrorFill;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgInfoFill = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\txmlns: \"http://www.w3.org/2000/svg\",\n\tviewBox: \"0 0 24 24\",\n\theight: 24,\n\twidth: 24,\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0Zm0.25 5a1.5 1.5 0 1 1 -1.5 1.5 1.5 1.5 0 0 1 1.5 -1.5Zm2.25 13.5h-4a1 1 0 0 1 0 -2h0.75a0.25 0.25 0 0 0 0.25 -0.25v-4.5a0.25 0.25 0 0 0 -0.25 -0.25h-0.75a1 1 0 0 1 0 -2h1a2 2 0 0 1 2 2v4.75a0.25 0.25 0 0 0 0.25 0.25h0.75a1 1 0 0 1 0 2Z\",\n\t\tfill: \"currentcolor\",\n\t\tstrokeWidth: 1\n\t})\n});\nexport default SvgInfoFill;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgSkullAndBones = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\theight: 16,\n\tviewBox: \"0 0 16 16\",\n\twidth: 16,\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsxs(\"g\", { children: [\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M12.333333333333332 7.333333333333333a4.333333333333333 4.333333333333333 0 1 0 -7.333333333333333 3.126666666666667v1.88a1 1 0 0 0 2 0 1 1 0 0 0 2 0 1 1 0 1 0 2 0v-1.88a4.326666666666666 4.326666666666666 0 0 0 1.3333333333333333 -3.126666666666667Zm-6.253333333333334 1a1 1 0 1 1 1 -1 1 1 0 0 1 -1 1Zm4 0a1 1 0 1 1 1 -1 1 1 0 0 1 -1 1Z\",\n\t\t\tfill: \"currentColor\",\n\t\t\tstrokeWidth: .6667\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"m1.8666666666666665 3.28 1.22 1.22a0.3466666666666667 0.3466666666666667 0 0 0 0.26666666666666666 0.09333333333333334 0.35333333333333333 0.35333333333333333 0 0 0 0.24666666666666665 -0.14666666666666667 5.133333333333333 5.133333333333333 0 0 1 0.8066666666666666 -0.9733333333333333 0.3133333333333333 0.3133333333333333 0 0 0 0.09999999999999999 -0.2333333333333333 0.3666666666666667 0.3666666666666667 0 0 0 -0.09333333333333334 -0.24666666666666665L3.28 1.8666666666666665A1.1666666666666665 1.1666666666666665 0 0 0 1.8399999999999999 0.11333333333333334a0.6666666666666666 0.6666666666666666 0 0 0 -0.3666666666666667 0.48l-0.09999999999999999 0.5133333333333333a0.31999999999999995 0.31999999999999995 0 0 1 -0.26 0.26666666666666666l-0.52 0.09999999999999999a0.6666666666666666 0.6666666666666666 0 0 0 -0.48 0.3666666666666667A1.1666666666666665 1.1666666666666665 0 0 0 1.8666666666666665 3.28Z\",\n\t\t\tfill: \"currentColor\",\n\t\t\tstrokeWidth: .6667\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M12.4 4.446666666666666a0.35333333333333333 0.35333333333333333 0 0 0 0.24666666666666665 0.14666666666666667 0.3466666666666667 0.3466666666666667 0 0 0 0.26666666666666666 -0.09333333333333334l1.22 -1.22a1.1666666666666665 1.1666666666666665 0 0 0 1.7533333333333332 -1.44 0.6666666666666666 0.6666666666666666 0 0 0 -0.48 -0.3666666666666667l-0.52 -0.09999999999999999a0.31999999999999995 0.31999999999999995 0 0 1 -0.26 -0.26666666666666666l-0.09999999999999999 -0.5133333333333333a0.6666666666666666 0.6666666666666666 0 0 0 -0.3666666666666667 -0.48 1.1666666666666665 1.1666666666666665 0 0 0 -1.44 1.7533333333333332l-1.1333333333333333 1.1266666666666665a0.3666666666666667 0.3666666666666667 0 0 0 -0.09333333333333334 0.24666666666666665 0.3133333333333333 0.3133333333333333 0 0 0 0.09999999999999999 0.2333333333333333 5.133333333333333 5.133333333333333 0 0 1 0.8066666666666666 0.9733333333333333Z\",\n\t\t\tfill: \"currentColor\",\n\t\t\tstrokeWidth: .6667\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M3.6 11.559999999999999a0.33999999999999997 0.33999999999999997 0 0 0 -0.26666666666666666 -0.15333333333333332 0.3466666666666667 0.3466666666666667 0 0 0 -0.26666666666666666 0.09333333333333334l-1.2 1.22a1.1666666666666665 1.1666666666666665 0 0 0 -1.7533333333333332 1.44 0.6666666666666666 0.6666666666666666 0 0 0 0.48 0.3666666666666667l0.52 0.09999999999999999a0.31999999999999995 0.31999999999999995 0 0 1 0.26 0.26666666666666666l0.09999999999999999 0.5133333333333333a0.6666666666666666 0.6666666666666666 0 0 0 0.3666666666666667 0.48 1.1666666666666665 1.1666666666666665 0 0 0 1.44 -1.7533333333333332l1.1333333333333333 -1.1266666666666665a0.36 0.36 0 0 0 0.09333333333333334 -0.24 0.31999999999999995 0.31999999999999995 0 0 0 -0.09999999999999999 -0.24 5.333333333333333 5.333333333333333 0 0 1 -0.8066666666666666 -0.9666666666666666Z\",\n\t\t\tfill: \"currentColor\",\n\t\t\tstrokeWidth: .6667\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"m14.133333333333333 12.719999999999999 -1.22 -1.22a0.3466666666666667 0.3466666666666667 0 0 0 -0.26666666666666666 -0.09333333333333334 0.33999999999999997 0.33999999999999997 0 0 0 -0.24666666666666665 0.15333333333333332 5.333333333333333 5.333333333333333 0 0 1 -0.8066666666666666 0.9666666666666666 0.31999999999999995 0.31999999999999995 0 0 0 -0.09999999999999999 0.24 0.36 0.36 0 0 0 0.09333333333333334 0.24l1.1333333333333333 1.1266666666666665a1.1666666666666665 1.1666666666666665 0 0 0 1.44 1.7533333333333332 0.6666666666666666 0.6666666666666666 0 0 0 0.3666666666666667 -0.48l0.09999999999999999 -0.5133333333333333a0.31999999999999995 0.31999999999999995 0 0 1 0.26 -0.26666666666666666l0.52 -0.09999999999999999a0.6666666666666666 0.6666666666666666 0 0 0 0.48 -0.3666666666666667 1.1666666666666665 1.1666666666666665 0 0 0 -1.7533333333333332 -1.44Z\",\n\t\t\tfill: \"currentColor\",\n\t\t\tstrokeWidth: .6667\n\t\t})\n\t] })\n});\nexport default SvgSkullAndBones;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgSuccessFill = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\txmlns: \"http://www.w3.org/2000/svg\",\n\tviewBox: \"0 0 24 24\",\n\theight: 24,\n\twidth: 24,\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"M12 0a12 12 0 1 0 12 12A12 12 0 0 0 12 0Zm6.93 8.2 -6.85 9.29a1 1 0 0 1 -1.43 0.19l-4.89 -3.91a1 1 0 0 1 -0.15 -1.41A1 1 0 0 1 7 12.21l4.08 3.26L17.32 7a1 1 0 0 1 1.39 -0.21 1 1 0 0 1 0.22 1.41Z\",\n\t\tfill: \"currentcolor\",\n\t\tstrokeWidth: 1\n\t})\n});\nexport default SvgSuccessFill;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgTypography = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\tviewBox: \"-0.75 -0.75 20 20\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\theight: 24,\n\twidth: 24,\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"m0.578125 9.827354166666668 8.09375 0\",\n\t\t\tfill: \"none\",\n\t\t\tstroke: \"currentColor\",\n\t\t\tstrokeLinecap: \"round\",\n\t\t\tstrokeLinejoin: \"round\",\n\t\t\tstrokeWidth: 1.5\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"m12.140625 13.296104166666666 5.78125 0\",\n\t\t\tfill: \"none\",\n\t\t\tstroke: \"currentColor\",\n\t\t\tstrokeLinecap: \"round\",\n\t\t\tstrokeLinejoin: \"round\",\n\t\t\tstrokeWidth: 1.5\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M12.140625 16.764854166666666V10.40625a2.890625 2.890625 0 0 1 5.78125 0v6.359375\",\n\t\t\tfill: \"none\",\n\t\t\tstroke: \"currentColor\",\n\t\t\tstrokeLinecap: \"round\",\n\t\t\tstrokeLinejoin: \"round\",\n\t\t\tstrokeWidth: 1.5\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M0.578125 16.764854166666666V5.78125a4.046875 4.046875 0 0 1 8.09375 0v10.984375\",\n\t\t\tfill: \"none\",\n\t\t\tstroke: \"currentColor\",\n\t\t\tstrokeLinecap: \"round\",\n\t\t\tstrokeLinejoin: \"round\",\n\t\t\tstrokeWidth: 1.5\n\t\t})\n\t]\n});\nexport default SvgTypography;\n","import React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { svgGraphicProps, type SvgGraphicProps } from '@/lib/svg-graphic';\nimport { cn, kebabToPascalCase } from '@/lib/utils';\n\nconst iconVariants = cva('', {\n variants: {\n size: {\n sm: 'size-3',\n md: 'size-4',\n lg: 'size-6',\n xl: 'size-8',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\n// Icons are decorative unless the caller names them with `title`,\n// `aria-label` or `aria-labelledby`.\ninterface IconProps extends SvgGraphicProps, VariantProps<typeof iconVariants> {\n className?: string;\n}\n\nconst iconModules = import.meta.glob<{ default: React.FC<React.SVGProps<SVGSVGElement>> }>(\n '../../assets/icons/*.svg',\n {\n eager: true,\n query: '?react',\n },\n);\n\nconst Icon = Object.entries(iconModules).reduce(\n (acc, [path, module]) => {\n const kebabName = path.match(/[^/]+(?=\\.svg$)/)?.[0] ?? '';\n const iconName = kebabToPascalCase(kebabName);\n\n const IconComponent = (props: IconProps) => {\n const { size, className, ...rest } = props;\n const iconClassName = cn(iconVariants({ size, className }));\n return React.createElement(module.default, {\n ...svgGraphicProps(rest),\n className: iconClassName,\n });\n };\n\n IconComponent.displayName = `Icon.${iconName}`;\n\n acc[iconName] = IconComponent;\n return acc;\n },\n {} as Record<string, React.FC<IconProps>>,\n);\n\nexport type IconName = keyof typeof Icon;\n\nexport const IconComponents = Icon;\nexport default Icon;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAEA,IAAM,gBAAgB,UAA0B,oBAAK,OAAO;CAC3D,OAAO;CACP,SAAS;CACT,QAAQ;CACR,OAAO;CACP,GAAG;CACH,UAA0B,oBAAK,QAAQ;EACtC,GAAG;EACH,MAAM;EACN,aAAa;CACd,CAAC;AACF,CAAC;;;;ACXD,IAAM,eAAe,UAA0B,oBAAK,OAAO;CAC1D,OAAO;CACP,SAAS;CACT,QAAQ;CACR,OAAO;CACP,GAAG;CACH,UAA0B,oBAAK,QAAQ;EACtC,GAAG;EACH,MAAM;EACN,aAAa;CACd,CAAC;AACF,CAAC;;;;ACXD,IAAM,oBAAoB,UAA0B,oBAAK,OAAO;CAC/D,QAAQ;CACR,SAAS;CACT,OAAO;CACP,OAAO;CACP,GAAG;CACH,UAA0B,qBAAM,KAAK,EAAE,UAAU;EAChC,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;GACN,aAAa;EACd,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;GACN,aAAa;EACd,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;GACN,aAAa;EACd,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;GACN,aAAa;EACd,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;GACN,aAAa;EACd,CAAC;CACF,EAAE,CAAC;AACJ,CAAC;;;;ACjCD,IAAM,kBAAkB,UAA0B,oBAAK,OAAO;CAC7D,OAAO;CACP,SAAS;CACT,QAAQ;CACR,OAAO;CACP,GAAG;CACH,UAA0B,oBAAK,QAAQ;EACtC,GAAG;EACH,MAAM;EACN,aAAa;CACd,CAAC;AACF,CAAC;;;;ACXD,IAAM,iBAAiB,UAA0B,qBAAM,OAAO;CAC7D,SAAS;CACT,OAAO;CACP,QAAQ;CACR,OAAO;CACP,GAAG;CACH,UAAU;EACO,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;GACN,QAAQ;GACR,eAAe;GACf,gBAAgB;GAChB,aAAa;EACd,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;GACN,QAAQ;GACR,eAAe;GACf,gBAAgB;GAChB,aAAa;EACd,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;GACN,QAAQ;GACR,eAAe;GACf,gBAAgB;GAChB,aAAa;EACd,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;GACN,QAAQ;GACR,eAAe;GACf,gBAAgB;GAChB,aAAa;EACd,CAAC;CACF;AACD,CAAC;;;ACrCD,IAAM,eAAe,IAAI,IAAI;CAC3B,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;CACN,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC;AAgBD,IAAM,OAAO,OAAO,QARA,uBAAA,OAAA;CAAA,qCAAA;CAAA,oCAAA;CAAA,0CAAA;CAAA,uCAAA;CAAA,qCAAA;CAQQ,CAAW,CAAC,CAAC,QACtC,KAAK,CAAC,MAAM,YAAY;CAEvB,MAAM,WAAW,kBADC,KAAK,MAAM,iBAAiB,CAAC,GAAG,MAAM,EACZ;CAE5C,MAAM,iBAAiB,UAAqB;EAC1C,MAAM,EAAE,MAAM,WAAW,GAAG,SAAS;EACrC,MAAM,gBAAgB,GAAG,aAAa;GAAE;GAAM;EAAU,CAAC,CAAC;EAC1D,OAAO,MAAM,cAAc,OAAO,SAAS;GACzC,GAAG,gBAAgB,IAAI;GACvB,WAAW;EACb,CAAC;CACH;CAEA,cAAc,cAAc,QAAQ;CAEpC,IAAI,YAAY;CAChB,OAAO;AACT,GACA,CAAC,CACH;AAIA,IAAa,iBAAiB"}
@@ -1,3 +1,4 @@
1
+ import { svgGraphic } from "./lib/svg-graphic.js";
1
2
  import "react";
2
3
  import { jsx, jsxs } from "react/jsx-runtime";
3
4
  //#region src/assets/images/facebook-logo.svg?react
@@ -6,17 +7,13 @@ var SvgFacebookLogo = (props) => /* @__PURE__ */ jsxs("svg", {
6
7
  viewBox: "0 0 40 40",
7
8
  xmlns: "http://www.w3.org/2000/svg",
8
9
  ...props,
9
- children: [
10
- /* @__PURE__ */ jsx("title", { children: "social-facebook" }),
11
- /* @__PURE__ */ jsx("path", {
12
- d: "M20 40.004c11.046 0 20-8.955 20-20 0-11.046-8.954-20-20-20s-20 8.954-20 20c0 11.045 8.954 20 20 20z",
13
- fill: "#1977F3"
14
- }),
15
- /* @__PURE__ */ jsx("path", {
16
- d: "m27.785 25.785.886-5.782h-5.546V16.25c0-1.58.773-3.125 3.26-3.125h2.522V8.204s-2.29-.39-4.477-.39c-4.568 0-7.555 2.767-7.555 7.781v4.408h-5.08v5.782h5.08v13.976a20.08 20.08 0 0 0 3.125.242c1.063 0 2.107-.085 3.125-.242V25.785h4.66z",
17
- fill: "#fff"
18
- })
19
- ]
10
+ children: [/* @__PURE__ */ jsx("path", {
11
+ d: "M20 40.004c11.046 0 20-8.955 20-20 0-11.046-8.954-20-20-20s-20 8.954-20 20c0 11.045 8.954 20 20 20z",
12
+ fill: "#1977F3"
13
+ }), /* @__PURE__ */ jsx("path", {
14
+ d: "m27.785 25.785.886-5.782h-5.546V16.25c0-1.58.773-3.125 3.26-3.125h2.522V8.204s-2.29-.39-4.477-.39c-4.568 0-7.555 2.767-7.555 7.781v4.408h-5.08v5.782h5.08v13.976a20.08 20.08 0 0 0 3.125.242c1.063 0 2.107-.085 3.125-.242V25.785h4.66z",
15
+ fill: "#fff"
16
+ })]
20
17
  });
21
18
  //#endregion
22
19
  //#region src/assets/images/ghost-logo.svg?react
@@ -27,7 +24,6 @@ var SvgGhostLogo = (props) => /* @__PURE__ */ jsx("svg", {
27
24
  backgroundRepeat: "no-repeat",
28
25
  backgroundImage: "url(https://assets.ghost.io/admin/1597/assets/img/logos/ghost-logo-black-1-fb561a374422b405ec90fa586b05ebdf.png)"
29
26
  },
30
- alt: "Ghost",
31
27
  ...props
32
28
  });
33
29
  //#endregion
@@ -53,7 +49,6 @@ var SvgGoogleLogo = (props) => /* @__PURE__ */ jsxs("svg", {
53
49
  viewBox: "0 0 92 31",
54
50
  ...props,
55
51
  children: [
56
- /* @__PURE__ */ jsx("title", { children: "google" }),
57
52
  /* @__PURE__ */ jsx("path", {
58
53
  d: "M39.15 15.898c0 4.303-3.378 7.473-7.525 7.473s-7.526-3.17-7.526-7.473c0-4.334 3.38-7.474 7.526-7.474 4.147 0 7.526 3.14 7.526 7.474zm-3.294 0c0-2.69-1.958-4.529-4.231-4.529-2.273 0-4.231 1.84-4.231 4.529 0 2.662 1.958 4.528 4.231 4.528 2.273 0 4.231-1.87 4.231-4.528z",
59
54
  fill: "#EA4335"
@@ -84,7 +79,6 @@ var SvgGoogleLogo = (props) => /* @__PURE__ */ jsxs("svg", {
84
79
  //#region src/assets/images/x-logo.svg?react
85
80
  var SvgXLogo = (props) => /* @__PURE__ */ jsx("svg", {
86
81
  viewBox: "0 0 24 24",
87
- "aria-hidden": "true",
88
82
  ...props,
89
83
  children: /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx("path", {
90
84
  d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",
@@ -93,12 +87,12 @@ var SvgXLogo = (props) => /* @__PURE__ */ jsx("svg", {
93
87
  });
94
88
  //#endregion
95
89
  //#region src/assets/images/index.ts
96
- var FacebookLogo = SvgFacebookLogo;
97
- var GhostLogo = SvgGhostLogo;
98
- var GhostOrb = SvgGhostOrb;
99
- var GoogleLogo = SvgGoogleLogo;
100
- var XLogo = SvgXLogo;
90
+ var FacebookLogo = svgGraphic(SvgFacebookLogo, "FacebookLogo");
91
+ var GhostLogo = svgGraphic(SvgGhostLogo, "GhostLogo");
92
+ var GhostOrb = svgGraphic(SvgGhostOrb, "GhostOrb");
93
+ var GoogleLogo = svgGraphic(SvgGoogleLogo, "GoogleLogo");
94
+ var XLogo = svgGraphic(SvgXLogo, "XLogo");
101
95
  //#endregion
102
96
  export { XLogo as a, GoogleLogo as i, GhostLogo as n, GhostOrb as r, FacebookLogo as t };
103
97
 
104
- //# sourceMappingURL=images-DtbFINdz.js.map
98
+ //# sourceMappingURL=images-F6slcZrB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"images-F6slcZrB.js","names":[],"sources":["../src/assets/images/facebook-logo.svg?react","../src/assets/images/ghost-logo.svg?react","../src/assets/images/ghost-orb.svg?react","../src/assets/images/google-logo.svg?react","../src/assets/images/x-logo.svg?react","../src/assets/images/index.ts"],"sourcesContent":["import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgFacebookLogo = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\tfill: \"none\",\n\tviewBox: \"0 0 40 40\",\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: [/* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"M20 40.004c11.046 0 20-8.955 20-20 0-11.046-8.954-20-20-20s-20 8.954-20 20c0 11.045 8.954 20 20 20z\",\n\t\tfill: \"#1977F3\"\n\t}), /* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"m27.785 25.785.886-5.782h-5.546V16.25c0-1.58.773-3.125 3.26-3.125h2.522V8.204s-2.29-.39-4.477-.39c-4.568 0-7.555 2.767-7.555 7.781v4.408h-5.08v5.782h5.08v13.976a20.08 20.08 0 0 0 3.125.242c1.063 0 2.107-.085 3.125-.242V25.785h4.66z\",\n\t\tfill: \"#fff\"\n\t})]\n});\nexport default SvgFacebookLogo;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgGhostLogo = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\tviewBox: \"0 0 770 294\",\n\tstyle: {\n\t\tbackgroundSize: \"100% 100%\",\n\t\tbackgroundRepeat: \"no-repeat\",\n\t\tbackgroundImage: \"url(https://assets.ghost.io/admin/1597/assets/img/logos/ghost-logo-black-1-fb561a374422b405ec90fa586b05ebdf.png)\"\n\t},\n\t...props\n});\nexport default SvgGhostLogo;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgGhostOrb = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\tfill: \"none\",\n\theight: 24,\n\tviewBox: \"0 0 24 24\",\n\twidth: 24,\n\txmlns: \"http://www.w3.org/2000/svg\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"path\", {\n\t\tclipRule: \"evenodd\",\n\t\td: \"M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM11.8326 2.33879C6.37785 2.95189 3.95901 5.20797 3.41126 9.74699C3.34896 10.2632 3.22642 10.7805 3.10443 11.2954C2.93277 12.02 2.76221 12.74 2.76221 13.4458C2.76221 17.9885 6.5856 21.556 11.1283 21.556C12.8959 21.556 14.4433 20.8144 15.8756 20.048C19.0536 18.3478 22.0328 16.2597 22.0328 12.5411C22.0328 9.91512 20.1051 7.56932 18.466 5.5747C18.3834 5.47416 18.3015 5.37451 18.2206 5.27577C17.3866 4.25742 14.4333 2.04643 11.8326 2.33879Z\",\n\t\tfill: \"currentColor\",\n\t\tfillRule: \"evenodd\"\n\t})\n});\nexport default SvgGhostOrb;\n","import * as React from \"react\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst SvgGoogleLogo = (props) => /* @__PURE__ */ _jsxs(\"svg\", {\n\tfill: \"none\",\n\tviewBox: \"0 0 92 31\",\n\t...props,\n\tchildren: [\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M39.15 15.898c0 4.303-3.378 7.473-7.525 7.473s-7.526-3.17-7.526-7.473c0-4.334 3.38-7.474 7.526-7.474 4.147 0 7.526 3.14 7.526 7.474zm-3.294 0c0-2.69-1.958-4.529-4.231-4.529-2.273 0-4.231 1.84-4.231 4.529 0 2.662 1.958 4.528 4.231 4.528 2.273 0 4.231-1.87 4.231-4.528z\",\n\t\t\tfill: \"#EA4335\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M55.386 15.898c0 4.303-3.379 7.473-7.526 7.473-4.146 0-7.526-3.17-7.526-7.473 0-4.33 3.38-7.474 7.526-7.474 4.147 0 7.526 3.14 7.526 7.474zm-3.294 0c0-2.69-1.959-4.529-4.232-4.529s-4.231 1.84-4.231 4.529c0 2.662 1.958 4.528 4.231 4.528 2.273 0 4.232-1.87 4.232-4.528z\",\n\t\t\tfill: \"#FBBC05\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M70.945 8.875v13.418c0 5.52-3.267 7.774-7.13 7.774-3.636 0-5.825-2.423-6.65-4.404l2.868-1.19c.511 1.217 1.763 2.652 3.779 2.652 2.472 0 4.004-1.52 4.004-4.38V21.67h-.115c-.737.906-2.158 1.698-3.95 1.698-3.751 0-7.188-3.255-7.188-7.443 0-4.22 3.437-7.501 7.188-7.501 1.789 0 3.21.792 3.95 1.671h.115V8.88h3.129v-.004zm-2.895 7.05c0-2.632-1.763-4.556-4.005-4.556-2.273 0-4.177 1.924-4.177 4.556 0 2.604 1.904 4.501 4.177 4.501 2.242 0 4.005-1.897 4.005-4.501z\",\n\t\t\tfill: \"#4285F4\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M76.103 1.01v21.903H72.89V1.011h3.213z\",\n\t\t\tfill: \"#34A853\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M88.624 18.357l2.558 1.699c-.826 1.216-2.815 3.312-6.251 3.312-4.262 0-7.445-3.282-7.445-7.474 0-4.444 3.21-7.473 7.076-7.473 3.893 0 5.798 3.086 6.42 4.754l.341.85-10.028 4.137c.768 1.5 1.962 2.264 3.636 2.264 1.678 0 2.841-.822 3.693-2.069zm-7.87-2.688l6.703-2.774c-.368-.933-1.478-1.583-2.783-1.583-1.674 0-4.005 1.472-3.92 4.357z\",\n\t\t\tfill: \"#EA4335\"\n\t\t}),\n\t\t/* @__PURE__ */ _jsx(\"path\", {\n\t\t\td: \"M11.936 13.953v-3.17h10.726c.105.552.159 1.206.159 1.914 0 2.378-.653 5.32-2.757 7.416-2.046 2.123-4.66 3.255-8.124 3.255-6.42 0-11.818-5.21-11.818-11.605C.122 5.368 5.52.158 11.94.158c3.551 0 6.081 1.389 7.982 3.198l-2.246 2.237c-1.363-1.273-3.21-2.264-5.74-2.264-4.688 0-8.354 3.764-8.354 8.434s3.666 8.434 8.354 8.434c3.041 0 4.773-1.216 5.882-2.322.9-.896 1.492-2.176 1.725-3.925l-7.607.003z\",\n\t\t\tfill: \"#4285F4\"\n\t\t})\n\t]\n});\nexport default SvgGoogleLogo;\n","import * as React from \"react\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst SvgXLogo = (props) => /* @__PURE__ */ _jsx(\"svg\", {\n\tviewBox: \"0 0 24 24\",\n\t...props,\n\tchildren: /* @__PURE__ */ _jsx(\"g\", { children: /* @__PURE__ */ _jsx(\"path\", {\n\t\td: \"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z\",\n\t\tfill: \"currentColor\"\n\t}) })\n});\nexport default SvgXLogo;\n","import type { FunctionComponent } from 'react';\nimport { svgGraphic, type SvgGraphicProps } from '@/lib/svg-graphic';\nimport FacebookLogoSvg from './facebook-logo.svg?react';\nimport GhostLogoSvg from './ghost-logo.svg?react';\nimport GhostOrbSvg from './ghost-orb.svg?react';\nimport GoogleLogoSvg from './google-logo.svg?react';\nimport XLogoSvg from './x-logo.svg?react';\n\n// Explicit types keep the `?react` asset imports out of the published\n// declarations, where consumers can't resolve them.\ntype Logo = FunctionComponent<SvgGraphicProps>;\n\n// Logos are decorative unless the caller names them with `title`,\n// `aria-label` or `aria-labelledby`.\nexport const FacebookLogo: Logo = svgGraphic(FacebookLogoSvg, 'FacebookLogo');\nexport const GhostLogo: Logo = svgGraphic(GhostLogoSvg, 'GhostLogo');\nexport const GhostOrb: Logo = svgGraphic(GhostOrbSvg, 'GhostOrb');\nexport const GoogleLogo: Logo = svgGraphic(GoogleLogoSvg, 'GoogleLogo');\nexport const XLogo: Logo = svgGraphic(XLogoSvg, 'XLogo');\n"],"mappings":";;;;AAEA,IAAM,mBAAmB,UAA0B,qBAAM,OAAO;CAC/D,MAAM;CACN,SAAS;CACT,OAAO;CACP,GAAG;CACH,UAAU,CAAiB,oBAAK,QAAQ;EACvC,GAAG;EACH,MAAM;CACP,CAAC,GAAmB,oBAAK,QAAQ;EAChC,GAAG;EACH,MAAM;CACP,CAAC,CAAC;AACH,CAAC;;;ACZD,IAAM,gBAAgB,UAA0B,oBAAK,OAAO;CAC3D,SAAS;CACT,OAAO;EACN,gBAAgB;EAChB,kBAAkB;EAClB,iBAAiB;CAClB;CACA,GAAG;AACJ,CAAC;;;ACRD,IAAM,eAAe,UAA0B,oBAAK,OAAO;CAC1D,MAAM;CACN,QAAQ;CACR,SAAS;CACT,OAAO;CACP,OAAO;CACP,GAAG;CACH,UAA0B,oBAAK,QAAQ;EACtC,UAAU;EACV,GAAG;EACH,MAAM;EACN,UAAU;CACX,CAAC;AACF,CAAC;;;ACbD,IAAM,iBAAiB,UAA0B,qBAAM,OAAO;CAC7D,MAAM;CACN,SAAS;CACT,GAAG;CACH,UAAU;EACO,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;EACP,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;EACP,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;EACP,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;EACP,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;EACP,CAAC;EACe,oBAAK,QAAQ;GAC5B,GAAG;GACH,MAAM;EACP,CAAC;CACF;AACD,CAAC;;;AC9BD,IAAM,YAAY,UAA0B,oBAAK,OAAO;CACvD,SAAS;CACT,GAAG;CACH,UAA0B,oBAAK,KAAK,EAAE,UAA0B,oBAAK,QAAQ;EAC5E,GAAG;EACH,MAAM;CACP,CAAC,EAAE,CAAC;AACL,CAAC;;;ACKD,IAAa,eAAqB,WAAW,iBAAiB,cAAc;AAC5E,IAAa,YAAkB,WAAW,cAAc,WAAW;AACnE,IAAa,WAAiB,WAAW,aAAa,UAAU;AAChE,IAAa,aAAmB,WAAW,eAAe,YAAY;AACtE,IAAa,QAAc,WAAW,UAAU,OAAO"}
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as IconComponents } from "./icon-BJcGsQ4b.js";
1
+ import { n as IconComponents } from "./icon--CakqPdG.js";
2
2
  import { SHADE_TOKEN_NAMES, shadeToken } from "./tokens.js";
3
3
  import { Toaster } from "./components/ui/sonner.js";
4
4
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/ui/tooltip.js";
@@ -60,7 +60,6 @@ import { ListPage, ListPageBody, ListPageHeader } from "./components/page-templa
60
60
  import { ModalPage, ModalPageTitle } from "./components/page-templates/modal-page.js";
61
61
  import "./page-templates.js";
62
62
  import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/ui/accordion.js";
63
- import { ActionList, ActionListItem, ActionListItemActions, ActionListItemContent } from "./components/ui/action-list.js";
64
63
  import { AnimatedNumber } from "./components/ui/animated-number.js";
65
64
  import { Avatar, AvatarFallback, AvatarImage } from "./components/ui/avatar.js";
66
65
  import { badgeVariants } from "./components/ui/badge-variants.js";
@@ -90,6 +89,8 @@ import { indicatorVariants } from "./components/ui/indicator-variants.js";
90
89
  import { Indicator } from "./components/ui/indicator.js";
91
90
  import { inputGroupVariants } from "./components/ui/input-group-variants.js";
92
91
  import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./components/ui/input-group.js";
92
+ import { rowSurface, rowSurfaceClasses } from "./components/ui/row-surface.js";
93
+ import { ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, List, ListItem, ListItemActions, ListItemContent } from "./components/ui/list.js";
93
94
  import { Link } from "./components/ui/link.js";
94
95
  import { Navbar, NavbarActions, NavbarNavigation } from "./components/ui/navbar.js";
95
96
  import { NoValueLabel, NoValueLabelIcon } from "./components/ui/no-value-label.js";
@@ -107,8 +108,9 @@ import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, Tabl
107
108
  import { Textarea } from "./components/ui/textarea.js";
108
109
  import { toast } from "./components/ui/toast.js";
109
110
  import { ToggleGroup, ToggleGroupItem } from "./components/ui/toggle-group.js";
110
- import { a as XLogo, i as GoogleLogo, n as GhostLogo, r as GhostOrb, t as FacebookLogo } from "./images-DtbFINdz.js";
111
+ import { a as XLogo, i as GoogleLogo, n as GhostLogo, r as GhostOrb, t as FacebookLogo } from "./images-F6slcZrB.js";
111
112
  import { TimePicker } from "./components/ui/time-picker.js";
112
113
  import { tokenFieldClasses } from "./components/ui/token-field.js";
114
+ import { RowPrimaryAction } from "./components/ui/row-primary-action.js";
113
115
  import { commandDefaultFilter } from "./components.js";
114
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, ColorPicker, ColorPickerTrigger, ColorSwatch, ColorSwatchRow, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DEFAULT_I18N, DEFAULT_OPERATORS, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, DetailPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirtyConfirmDialog, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, ErrorPage, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterBar, FilterDatePicker, FilterSegmentInput, FilterSegmentMultiSelect, FilterSegmentSelect, Filters, FiltersContent, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhAreaChart, GhCustomTooltipContent, GhostLogo, GhostOrb, GoogleLogo, Grid, H1, H2, H3, H4, HTable, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, ImageUpload, ImageUploadAction, ImageUploadActions, ImageUploadDropzone, ImageUploadImage, ImageUploadPreview, Indicator, Inline, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue, KpiDropdownButton, KpiTabTrigger, KpiTabValue, Label, Link, ListPage, ListPageBody, ListPageHeader, LoadingIndicator, ModalPage, ModalPageTitle, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageChromeProvider, PageHeader, PageHeaderActionGroup, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuContent, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupPrimary, PageHeaderActions, PageHeaderBreadcrumb, PageHeaderCount, PageHeaderDescription, PageHeaderLeft, PageHeaderMeta, PageHeaderTitle, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, SHADE_TOKEN_NAMES, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, SettingsModal, ShareModal, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, Stack, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Text, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, ViewBar, ViewBarActions, ViewBarNav, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, createFilter, createFilterGroup, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, imageUploadPreviewVariants, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, selectTriggerVariants, settingGroupVariants, settingsModalVariants, shadeToken, tabSurfaceVariants, tabsVariants, toast, tokenFieldClasses, useDirtyConfirmation, useFormField, usePageChrome, useSidebar };
116
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionList, ActionListItem, ActionListItemActions, ActionListItemContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlignedAxisTick, AnimatedNumber, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BarChartLoadingIndicator, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, CodeEditor, ColorPicker, ColorPickerTrigger, ColorSwatch, ColorSwatchRow, Combobox, ComboboxContent, ComboboxTrigger, ComboboxValue, Command, CommandCheck, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Container, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyField, CopyFieldActions, CopyFieldContent, CopyFieldCopyButton, CopyFieldLabel, CopyFieldValue, DEFAULT_I18N, DEFAULT_OPERATORS, DataList, DataListBar, DataListBody, DataListHead, DataListHeader, DataListItemContent, DataListItemValue, DataListItemValueAbs, DataListItemValuePerc, DataListRow, DetailPage, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirtyConfirmDialog, DragIndicator, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, EmptyBadge, EmptyCard, EmptyIndicator, ErrorPage, FLOATING_SIDEBAR_BUMP, FLOATING_SIDEBAR_CLOSED_FOOTPRINT, FLOATING_SIDEBAR_CLOSED_SIZE, FLOATING_SIDEBAR_DURATION, FLOATING_SIDEBAR_EASE, FLOATING_SIDEBAR_EASE_DURATION, FLOATING_SIDEBAR_INSET, FLOATING_SIDEBAR_OPEN_WIDTH, FLOATING_SIDEBAR_SPRING, FacebookLogo, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterBar, FilterDatePicker, FilterSegmentInput, FilterSegmentMultiSelect, FilterSegmentSelect, Filters, FiltersContent, Flag, FloatingSidebar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GhAreaChart, GhCustomTooltipContent, GhostLogo, GhostOrb, GoogleLogo, Grid, H1, H2, H3, H4, HTable, HoverCard, HoverCardContent, HoverCardTrigger, IconComponents as Icon, ImageUpload, ImageUploadAction, ImageUploadActions, ImageUploadDropzone, ImageUploadImage, ImageUploadPreview, Indicator, Inline, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Kbd, KbdGroup, KpiCardHeader, KpiCardHeaderLabel, KpiCardHeaderValue, KpiDropdownButton, KpiTabTrigger, KpiTabValue, Label, Link, List, ListItem, ListItemActions, ListItemContent, ListPage, ListPageBody, ListPageHeader, LoadingIndicator, ModalPage, ModalPageTitle, MultiSelectCombobox, Navbar, NavbarActions, NavbarNavigation, NoValueLabel, NoValueLabelIcon, PageChromeProvider, PageHeader, PageHeaderActionGroup, PageHeaderActionGroupMobileMenu, PageHeaderActionGroupMobileMenuContent, PageHeaderActionGroupMobileMenuTrigger, PageHeaderActionGroupPrimary, PageHeaderActions, PageHeaderBreadcrumb, PageHeaderCount, PageHeaderDescription, PageHeaderLeft, PageHeaderMeta, PageHeaderTitle, PageMenu, PageMenuItem, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverTrigger, PreviewChrome, RadioGroup, RadioGroupItem, RowPrimaryAction, RowPrimaryAction as TableRowAction, SHADE_TOKEN_NAMES, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, SettingGroup, SettingGroupActions, SettingGroupContent, SettingGroupDescription, SettingGroupDetails, SettingGroupHeader, SettingGroupTitle, SettingGroupValue, SettingGroupValueContent, SettingGroupValueTitle, SettingsModal, ShareModal, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimplePagination, SimplePaginationNavigation, SimplePaginationNextButton, SimplePaginationPages, SimplePaginationPreviousButton, Skeleton, SkeletonTable, SortableList, Stack, StickyFooter, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeadButton, TableHeader, TableRow, Tabs, TabsContent, TabsDropdownTrigger, TabsList, TabsTrigger, TabsTriggerCount, Text, Textarea, TimePicker, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, ViewBar, ViewBarActions, ViewBarNav, XLogo, badgeVariants, bannerVariants, buttonVariants, cardVariants, commandDefaultFilter, createFilter, createFilterGroup, dropzoneVariants, getFloatingSidebarGapWidth, getFloatingSidebarTiming, imageOverlayButton, imageOverlayButtonClasses, imageUploadPreviewVariants, indicatorVariants, inputGroupVariants, inputSurface, inputSurfaceClasses, previewChromeVariants, radioGroupItemVariants, rowSurface, rowSurfaceClasses, selectTriggerVariants, settingGroupVariants, settingsModalVariants, shadeToken, tabSurfaceVariants, tabsVariants, toast, tokenFieldClasses, useDirtyConfirmation, useFormField, usePageChrome, useSidebar };
@@ -0,0 +1,32 @@
1
+ import { createElement } from "react";
2
+ //#region src/lib/svg-graphic.ts
3
+ var nonBlank = (value) => value?.trim() ? value : void 0;
4
+ /**
5
+ * Applies Shade's rule for SVG logos and icons: decorative by default, and an
6
+ * image with a name when the caller gives one. Callers can still override
7
+ * `aria-hidden` and `role`; a prop passed as `undefined` keeps the default.
8
+ *
9
+ * This lives in code rather than SVGR options because Admin and other apps
10
+ * compile Shade's source with their own SVGR config.
11
+ */
12
+ function svgGraphicProps({ title, ...props }) {
13
+ const label = nonBlank(props["aria-label"]) ?? nonBlank(title);
14
+ if (label || nonBlank(props["aria-labelledby"])) return {
15
+ ...props,
16
+ role: props.role ?? "img",
17
+ "aria-label": label
18
+ };
19
+ return {
20
+ ...props,
21
+ "aria-hidden": props["aria-hidden"] ?? true
22
+ };
23
+ }
24
+ function svgGraphic(Svg, displayName) {
25
+ const Graphic = (props) => createElement(Svg, svgGraphicProps(props));
26
+ Graphic.displayName = displayName;
27
+ return Graphic;
28
+ }
29
+ //#endregion
30
+ export { svgGraphic, svgGraphicProps };
31
+
32
+ //# sourceMappingURL=svg-graphic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg-graphic.js","names":[],"sources":["../../src/lib/svg-graphic.ts"],"sourcesContent":["import { createElement, type FunctionComponent, type SVGProps } from 'react';\n\nexport interface SvgGraphicProps extends SVGProps<SVGSVGElement> {\n /**\n * Names the graphic for screen readers. It sets `aria-label`, and doesn't\n * render a tooltip or an SVG `<title>`. Without a `title`, `aria-label` or\n * `aria-labelledby`, the graphic is decorative and hidden from them. A\n * non-blank `aria-label` takes precedence over `title`, and an explicit\n * `aria-hidden` from the caller always wins.\n */\n title?: string | undefined;\n}\n\nconst nonBlank = (value: string | undefined) => (value?.trim() ? value : undefined);\n\n/**\n * Applies Shade's rule for SVG logos and icons: decorative by default, and an\n * image with a name when the caller gives one. Callers can still override\n * `aria-hidden` and `role`; a prop passed as `undefined` keeps the default.\n *\n * This lives in code rather than SVGR options because Admin and other apps\n * compile Shade's source with their own SVGR config.\n */\nexport function svgGraphicProps({ title, ...props }: SvgGraphicProps): SVGProps<SVGSVGElement> {\n const label = nonBlank(props['aria-label']) ?? nonBlank(title);\n\n if (label || nonBlank(props['aria-labelledby'])) {\n return { ...props, role: props.role ?? 'img', 'aria-label': label };\n }\n\n return { ...props, 'aria-hidden': props['aria-hidden'] ?? true };\n}\n\nexport function svgGraphic(\n Svg: FunctionComponent<SVGProps<SVGSVGElement>>,\n displayName: string,\n): FunctionComponent<SvgGraphicProps> {\n const Graphic = (props: SvgGraphicProps) => createElement(Svg, svgGraphicProps(props));\n Graphic.displayName = displayName;\n return Graphic;\n}\n"],"mappings":";;AAaA,IAAM,YAAY,UAA+B,OAAO,KAAK,IAAI,QAAQ,KAAA;;;;;;;;;AAUzE,SAAgB,gBAAgB,EAAE,OAAO,GAAG,SAAmD;CAC7F,MAAM,QAAQ,SAAS,MAAM,aAAa,KAAK,SAAS,KAAK;CAE7D,IAAI,SAAS,SAAS,MAAM,kBAAkB,GAC5C,OAAO;EAAE,GAAG;EAAO,MAAM,MAAM,QAAQ;EAAO,cAAc;CAAM;CAGpE,OAAO;EAAE,GAAG;EAAO,eAAe,MAAM,kBAAkB;CAAK;AACjE;AAEA,SAAgB,WACd,KACA,aACoC;CACpC,MAAM,WAAW,UAA2B,cAAc,KAAK,gBAAgB,KAAK,CAAC;CACrF,QAAQ,cAAc;CACtB,OAAO;AACT"}
@@ -1,4 +1,4 @@
1
- import { t as Icon } from "../icon-BJcGsQ4b.js";
1
+ import { t as Icon } from "../icon--CakqPdG.js";
2
2
  import { ShadeContext } from "./shade-context.js";
3
3
  import { ShadeScope } from "../shade-scope.js";
4
4
  import { Toaster } from "../components/ui/sonner.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/shade",
3
- "version": "0.1.0-alpha.41",
3
+ "version": "0.1.0-alpha.43",
4
4
  "description": "Ghost design system for React apps",
5
5
  "license": "MIT",
6
6
  "author": "Ghost Foundation",