@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.
- package/components.css +1 -0
- package/dist/components/Button.css +10 -0
- package/dist/components/Button.js +1 -1
- package/dist/components/Checkbox.css +10 -0
- package/dist/components/Checkbox.js +1 -1
- package/dist/components/Chip.css +10 -0
- package/dist/components/Chip.js +1 -1
- package/dist/components/CodeBlock.css +10 -0
- package/dist/components/CodeBlock.js +2 -2
- package/dist/components/Eyebrow.css +10 -0
- package/dist/components/Eyebrow.js +3 -3
- package/dist/components/IconButton.css +10 -0
- package/dist/components/IconButton.js +2 -2
- package/dist/components/Input.css +10 -0
- package/dist/components/Input.js +1 -1
- package/dist/components/LinkCTA.css +10 -0
- package/dist/components/LinkCTA.js +2 -2
- package/dist/components/Radio.css +10 -0
- package/dist/components/Radio.js +1 -1
- package/dist/components/RadioSwitch.css +10 -0
- package/dist/components/RadioSwitch.js +2 -1
- package/dist/components/SanityIcon.css +9 -0
- package/dist/components/SanityIcon.js +2 -1
- package/dist/components/Select.css +10 -0
- package/dist/components/Select.js +1 -1
- package/dist/components/Switch.css +10 -0
- package/dist/components/Switch.js +1 -1
- package/dist/components/TextCard.css +10 -0
- package/dist/components/TextCard.js +3 -3
- package/dist/components/Textarea.css +10 -0
- package/dist/components/Textarea.js +1 -1
- package/dist/components/{chunk-TBD76CFH.js → chunk-CLL6M6SE.js} +1 -1
- package/dist/components/chunk-FWU2MW33.js +33 -0
- package/dist/components/{chunk-PMARRZU5.js → chunk-SHMDGY6H.js} +1 -1
- package/dist/components/{chunk-SXBHZTND.js → chunk-XX5UFTAH.js} +1 -1
- package/package.json +1 -1
- 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 {
|
|
@@ -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
|
+
}
|
package/dist/components/Chip.css
CHANGED
|
@@ -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
|
+
}
|
package/dist/components/Chip.js
CHANGED
|
@@ -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 {
|
|
@@ -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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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 {
|
|
@@ -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
|
+
}
|
package/dist/components/Input.js
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
package/dist/components/Radio.js
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-CLL6M6SE.js";
|
|
4
|
+
import "./chunk-XX5UFTAH.js";
|
|
5
5
|
import {
|
|
6
6
|
SanityIcon
|
|
7
|
-
} from "./chunk-
|
|
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
|
+
}
|
|
@@ -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
|
+
};
|
package/package.json
CHANGED
|
@@ -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
|
-
};
|