@sanity/sanity-id 1.2.0 → 1.3.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.
Files changed (37) hide show
  1. package/components.css +1 -0
  2. package/dist/components/Button.css +10 -0
  3. package/dist/components/Button.js +1 -1
  4. package/dist/components/Checkbox.css +10 -0
  5. package/dist/components/Checkbox.js +1 -1
  6. package/dist/components/Chip.css +10 -0
  7. package/dist/components/Chip.js +1 -1
  8. package/dist/components/CodeBlock.css +10 -0
  9. package/dist/components/CodeBlock.js +2 -2
  10. package/dist/components/Eyebrow.css +10 -0
  11. package/dist/components/Eyebrow.js +3 -3
  12. package/dist/components/IconButton.css +10 -0
  13. package/dist/components/IconButton.js +2 -2
  14. package/dist/components/Input.css +10 -0
  15. package/dist/components/Input.js +1 -1
  16. package/dist/components/LinkCTA.css +10 -0
  17. package/dist/components/LinkCTA.js +2 -2
  18. package/dist/components/Radio.css +10 -0
  19. package/dist/components/Radio.js +1 -1
  20. package/dist/components/RadioSwitch.css +10 -0
  21. package/dist/components/RadioSwitch.js +2 -1
  22. package/dist/components/SanityIcon.css +9 -0
  23. package/dist/components/SanityIcon.js +2 -1
  24. package/dist/components/Select.css +10 -0
  25. package/dist/components/Select.js +1 -1
  26. package/dist/components/Switch.css +10 -0
  27. package/dist/components/Switch.js +1 -1
  28. package/dist/components/TextCard.css +10 -0
  29. package/dist/components/TextCard.js +3 -3
  30. package/dist/components/Textarea.css +10 -0
  31. package/dist/components/Textarea.js +1 -1
  32. package/dist/components/{chunk-TBD76CFH.js → chunk-CLL6M6SE.js} +1 -1
  33. package/dist/components/chunk-FWU2MW33.js +33 -0
  34. package/dist/components/{chunk-PMARRZU5.js → chunk-SHMDGY6H.js} +1 -1
  35. package/dist/components/{chunk-SXBHZTND.js → chunk-XX5UFTAH.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/components/chunk-K2RGV5MW.js +0 -11
package/components.css CHANGED
@@ -13,6 +13,7 @@
13
13
  @import "./dist/components/Person.css";
14
14
  @import "./dist/components/Radio.css";
15
15
  @import "./dist/components/RadioSwitch.css";
16
+ @import "./dist/components/SanityIcon.css";
16
17
  @import "./dist/components/Select.css";
17
18
  @import "./dist/components/Switch.css";
18
19
  @import "./dist/components/Table.css";
@@ -1,3 +1,13 @@
1
+ /* src/components/SanityIcon.module.css */
2
+ .SanityIcon_spinner {
3
+ animation: SanityIcon_spinner 1000ms linear infinite;
4
+ }
5
+ @keyframes SanityIcon_spinner {
6
+ to {
7
+ rotate: 360deg;
8
+ }
9
+ }
10
+
1
11
  /* src/components/Button.module.css */
2
12
  @reference "../../tailwind.css";
3
13
  .Button_button {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -55,3 +55,13 @@
55
55
  margin-top: calc((-3 / 16) * 1rem);
56
56
  right: 100%;
57
57
  }
58
+
59
+ /* src/components/SanityIcon.module.css */
60
+ .SanityIcon_spinner {
61
+ animation: SanityIcon_spinner 1000ms linear infinite;
62
+ }
63
+ @keyframes SanityIcon_spinner {
64
+ to {
65
+ rotate: 360deg;
66
+ }
67
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -38,3 +38,13 @@
38
38
  width: var(--spacing-icon-sm);
39
39
  margin: -5px;
40
40
  }
41
+
42
+ /* src/components/SanityIcon.module.css */
43
+ .SanityIcon_spinner {
44
+ animation: SanityIcon_spinner 1000ms linear infinite;
45
+ }
46
+ @keyframes SanityIcon_spinner {
47
+ to {
48
+ rotate: 360deg;
49
+ }
50
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -49,6 +49,16 @@
49
49
  }
50
50
  }
51
51
 
52
+ /* src/components/SanityIcon.module.css */
53
+ .SanityIcon_spinner {
54
+ animation: SanityIcon_spinner 1000ms linear infinite;
55
+ }
56
+ @keyframes SanityIcon_spinner {
57
+ to {
58
+ rotate: 360deg;
59
+ }
60
+ }
61
+
52
62
  /* src/components/IconButton.module.css */
53
63
  @reference "../../tailwind.css";
54
64
  .IconButton_button {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  IconButton
4
- } from "./chunk-PMARRZU5.js";
4
+ } from "./chunk-SHMDGY6H.js";
5
5
  import "./chunk-QT2A4HNA.js";
6
- import "./chunk-K2RGV5MW.js";
6
+ import "./chunk-FWU2MW33.js";
7
7
  import {
8
8
  Code,
9
9
  normalizeCode
@@ -40,3 +40,13 @@
40
40
  padding: var(--spacing-2);
41
41
  width: var(--spacing-icon-lg);
42
42
  }
43
+
44
+ /* src/components/SanityIcon.module.css */
45
+ .SanityIcon_spinner {
46
+ animation: SanityIcon_spinner 1000ms linear infinite;
47
+ }
48
+ @keyframes SanityIcon_spinner {
49
+ to {
50
+ rotate: 360deg;
51
+ }
52
+ }
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Eyebrow
3
- } from "./chunk-TBD76CFH.js";
4
- import "./chunk-SXBHZTND.js";
5
- import "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-CLL6M6SE.js";
4
+ import "./chunk-XX5UFTAH.js";
5
+ import "./chunk-FWU2MW33.js";
6
6
  import "./chunk-RC7UR3KP.js";
7
7
  import "./chunk-U67V476Y.js";
8
8
  export {
@@ -1,3 +1,13 @@
1
+ /* src/components/SanityIcon.module.css */
2
+ .SanityIcon_spinner {
3
+ animation: SanityIcon_spinner 1000ms linear infinite;
4
+ }
5
+ @keyframes SanityIcon_spinner {
6
+ to {
7
+ rotate: 360deg;
8
+ }
9
+ }
10
+
1
11
  /* src/components/IconButton.module.css */
2
12
  @reference "../../tailwind.css";
3
13
  .IconButton_button {
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  IconButton
3
- } from "./chunk-PMARRZU5.js";
3
+ } from "./chunk-SHMDGY6H.js";
4
4
  import "./chunk-QT2A4HNA.js";
5
- import "./chunk-K2RGV5MW.js";
5
+ import "./chunk-FWU2MW33.js";
6
6
  import "./chunk-RC7UR3KP.js";
7
7
  import "./chunk-U67V476Y.js";
8
8
  export {
@@ -51,3 +51,13 @@
51
51
  width: var(--spacing-icon-md);
52
52
  margin-top: calc((-3 / 16) * 1rem);
53
53
  }
54
+
55
+ /* src/components/SanityIcon.module.css */
56
+ .SanityIcon_spinner {
57
+ animation: SanityIcon_spinner 1000ms linear infinite;
58
+ }
59
+ @keyframes SanityIcon_spinner {
60
+ to {
61
+ rotate: 360deg;
62
+ }
63
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -29,3 +29,13 @@
29
29
  padding: var(--spacing-2);
30
30
  width: var(--spacing-icon-lg);
31
31
  }
32
+
33
+ /* src/components/SanityIcon.module.css */
34
+ .SanityIcon_spinner {
35
+ animation: SanityIcon_spinner 1000ms linear infinite;
36
+ }
37
+ @keyframes SanityIcon_spinner {
38
+ to {
39
+ rotate: 360deg;
40
+ }
41
+ }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LinkCTA
3
- } from "./chunk-SXBHZTND.js";
4
- import "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-XX5UFTAH.js";
4
+ import "./chunk-FWU2MW33.js";
5
5
  import "./chunk-RC7UR3KP.js";
6
6
  import "./chunk-U67V476Y.js";
7
7
  export {
@@ -53,3 +53,13 @@
53
53
  margin-top: calc((-3 / 16) * 1rem);
54
54
  right: 100%;
55
55
  }
56
+
57
+ /* src/components/SanityIcon.module.css */
58
+ .SanityIcon_spinner {
59
+ animation: SanityIcon_spinner 1000ms linear infinite;
60
+ }
61
+ @keyframes SanityIcon_spinner {
62
+ to {
63
+ rotate: 360deg;
64
+ }
65
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -42,3 +42,13 @@
42
42
  height: 100%;
43
43
  width: 100%;
44
44
  }
45
+
46
+ /* src/components/SanityIcon.module.css */
47
+ .SanityIcon_spinner {
48
+ animation: SanityIcon_spinner 1000ms linear infinite;
49
+ }
50
+ @keyframes SanityIcon_spinner {
51
+ to {
52
+ rotate: 360deg;
53
+ }
54
+ }
@@ -1,7 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  SanityIcon
4
- } from "./chunk-K2RGV5MW.js";
4
+ } from "./chunk-FWU2MW33.js";
5
+ import "./chunk-RC7UR3KP.js";
5
6
  import "./chunk-U67V476Y.js";
6
7
 
7
8
  // src/components/RadioSwitch.tsx
@@ -0,0 +1,9 @@
1
+ /* src/components/SanityIcon.module.css */
2
+ .SanityIcon_spinner {
3
+ animation: SanityIcon_spinner 1000ms linear infinite;
4
+ }
5
+ @keyframes SanityIcon_spinner {
6
+ to {
7
+ rotate: 360deg;
8
+ }
9
+ }
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
+ import "./chunk-RC7UR3KP.js";
4
5
  import "./chunk-U67V476Y.js";
5
6
  export {
6
7
  SanityIcon
@@ -56,3 +56,13 @@
56
56
  width: var(--spacing-icon-md);
57
57
  margin-top: calc((-3 / 16) * 1rem);
58
58
  }
59
+
60
+ /* src/components/SanityIcon.module.css */
61
+ .SanityIcon_spinner {
62
+ animation: SanityIcon_spinner 1000ms linear infinite;
63
+ }
64
+ @keyframes SanityIcon_spinner {
65
+ to {
66
+ rotate: 360deg;
67
+ }
68
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -62,3 +62,13 @@
62
62
  margin-top: calc((-3 / 16) * 1rem);
63
63
  right: 100%;
64
64
  }
65
+
66
+ /* src/components/SanityIcon.module.css */
67
+ .SanityIcon_spinner {
68
+ animation: SanityIcon_spinner 1000ms linear infinite;
69
+ }
70
+ @keyframes SanityIcon_spinner {
71
+ to {
72
+ rotate: 360deg;
73
+ }
74
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -74,3 +74,13 @@
74
74
  padding: var(--spacing-2);
75
75
  width: var(--spacing-icon-lg);
76
76
  }
77
+
78
+ /* src/components/SanityIcon.module.css */
79
+ .SanityIcon_spinner {
80
+ animation: SanityIcon_spinner 1000ms linear infinite;
81
+ }
82
+ @keyframes SanityIcon_spinner {
83
+ to {
84
+ rotate: 360deg;
85
+ }
86
+ }
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Eyebrow
3
- } from "./chunk-TBD76CFH.js";
4
- import "./chunk-SXBHZTND.js";
3
+ } from "./chunk-CLL6M6SE.js";
4
+ import "./chunk-XX5UFTAH.js";
5
5
  import {
6
6
  SanityIcon
7
- } from "./chunk-K2RGV5MW.js";
7
+ } from "./chunk-FWU2MW33.js";
8
8
  import {
9
9
  require_classnames
10
10
  } from "./chunk-RC7UR3KP.js";
@@ -49,3 +49,13 @@
49
49
  width: var(--spacing-icon-md);
50
50
  margin-top: calc((-3 / 16) * 1rem);
51
51
  }
52
+
53
+ /* src/components/SanityIcon.module.css */
54
+ .SanityIcon_spinner {
55
+ animation: SanityIcon_spinner 1000ms linear infinite;
56
+ }
57
+ @keyframes SanityIcon_spinner {
58
+ to {
59
+ rotate: 360deg;
60
+ }
61
+ }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LinkCTA
3
- } from "./chunk-SXBHZTND.js";
3
+ } from "./chunk-XX5UFTAH.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -0,0 +1,33 @@
1
+ import {
2
+ require_classnames
3
+ } from "./chunk-RC7UR3KP.js";
4
+ import {
5
+ __toESM
6
+ } from "./chunk-U67V476Y.js";
7
+
8
+ // src/components/SanityIcon.module.css
9
+ var SanityIcon_default = {
10
+ spinner: "SanityIcon_spinner"
11
+ };
12
+
13
+ // src/components/SanityIcon.tsx
14
+ var import_classnames = __toESM(require_classnames());
15
+ import { jsx } from "react/jsx-runtime";
16
+ var prefix = process.env.SANITY_ID_ICONOPHOR_PREFIX ?? process.env.NEXT_PUBLIC_SANITY_ID_ICONOPHOR_PREFIX ?? process.env.VITE_SANITY_ID_ICONOPHOR_PREFIX ?? "";
17
+ function SanityIcon({ icon, ...props }) {
18
+ const url = `${prefix}/iconophor/sanity-icons/3.7.0/${icon}?replace-colors=currentColor&symbol=true#icon`;
19
+ return /* @__PURE__ */ jsx(
20
+ "svg",
21
+ {
22
+ ...props,
23
+ className: (0, import_classnames.default)(props.className, icon === "spinner" && SanityIcon_default.spinner),
24
+ "data-icon": icon,
25
+ viewBox: "0 0 25 25",
26
+ children: /* @__PURE__ */ jsx("use", { href: icon ? url : void 0 })
27
+ }
28
+ );
29
+ }
30
+
31
+ export {
32
+ SanityIcon
33
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SanityIcon
3
- } from "./chunk-K2RGV5MW.js";
3
+ } from "./chunk-FWU2MW33.js";
4
4
  import {
5
5
  require_classnames
6
6
  } from "./chunk-RC7UR3KP.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/sanity-id",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "repository": "https://github.com/sanity-io/sanity-id.git",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",
@@ -1,11 +0,0 @@
1
- // src/components/SanityIcon.tsx
2
- import { jsx } from "react/jsx-runtime";
3
- var prefix = process.env.SANITY_ID_ICONOPHOR_PREFIX ?? process.env.NEXT_PUBLIC_SANITY_ID_ICONOPHOR_PREFIX ?? process.env.VITE_SANITY_ID_ICONOPHOR_PREFIX ?? "";
4
- function SanityIcon({ icon, ...props }) {
5
- const url = `${prefix}/iconophor/sanity-icons/3.7.0/${icon}?replace-colors=currentColor&symbol=true#icon`;
6
- return /* @__PURE__ */ jsx("svg", { ...props, "data-icon": icon, viewBox: "0 0 25 25", children: /* @__PURE__ */ jsx("use", { href: icon ? url : void 0 }) });
7
- }
8
-
9
- export {
10
- SanityIcon
11
- };