@fairmint/ui 0.3.19 → 0.3.21

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 (41) hide show
  1. package/dist/components/generic/AgentSuggestion/AgentSuggestion.cjs +186 -0
  2. package/dist/components/generic/AgentSuggestion/AgentSuggestion.cjs.map +1 -0
  3. package/dist/components/generic/AgentSuggestion/AgentSuggestion.d.ts +44 -0
  4. package/dist/components/generic/AgentSuggestion/AgentSuggestion.d.ts.map +1 -0
  5. package/dist/components/generic/AgentSuggestion/AgentSuggestion.js +186 -0
  6. package/dist/components/generic/AgentSuggestion/AgentSuggestion.js.map +1 -0
  7. package/dist/components/generic/NotificationRow/NotificationRow.cjs +169 -0
  8. package/dist/components/generic/NotificationRow/NotificationRow.cjs.map +1 -0
  9. package/dist/components/generic/NotificationRow/NotificationRow.d.ts +51 -0
  10. package/dist/components/generic/NotificationRow/NotificationRow.d.ts.map +1 -0
  11. package/dist/components/generic/NotificationRow/NotificationRow.js +169 -0
  12. package/dist/components/generic/NotificationRow/NotificationRow.js.map +1 -0
  13. package/dist/components/generic/TaskRow/TaskRow.cjs +151 -0
  14. package/dist/components/generic/TaskRow/TaskRow.cjs.map +1 -0
  15. package/dist/components/generic/TaskRow/TaskRow.d.ts +56 -0
  16. package/dist/components/generic/TaskRow/TaskRow.d.ts.map +1 -0
  17. package/dist/components/generic/TaskRow/TaskRow.js +151 -0
  18. package/dist/components/generic/TaskRow/TaskRow.js.map +1 -0
  19. package/dist/components/primitives/layout.cjs.map +1 -1
  20. package/dist/components/primitives/layout.d.ts +1 -1
  21. package/dist/components/primitives/layout.d.ts.map +1 -1
  22. package/dist/components/primitives/layout.js.map +1 -1
  23. package/dist/fairmint-ui.cjs +7 -0
  24. package/dist/fairmint-ui.cjs.map +1 -1
  25. package/dist/fairmint-ui.js +7 -0
  26. package/dist/fairmint-ui.js.map +1 -1
  27. package/dist/index.d.ts +6 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.cjs +11 -0
  30. package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.cjs.map +1 -0
  31. package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.js +11 -0
  32. package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.js.map +1 -0
  33. package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.cjs +66 -0
  34. package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.cjs.map +1 -0
  35. package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.js +66 -0
  36. package/dist/node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.js.map +1 -0
  37. package/dist/node_modules/@mantine/hooks/esm/use-color-scheme/use-color-scheme.cjs +8 -0
  38. package/dist/node_modules/@mantine/hooks/esm/use-color-scheme/use-color-scheme.cjs.map +1 -0
  39. package/dist/node_modules/@mantine/hooks/esm/use-color-scheme/use-color-scheme.js +8 -0
  40. package/dist/node_modules/@mantine/hooks/esm/use-color-scheme/use-color-scheme.js.map +1 -0
  41. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const useMantineColorScheme = require("./use-mantine-color-scheme.cjs");
4
+ const useColorScheme = require("../../../../../hooks/esm/use-color-scheme/use-color-scheme.cjs");
5
+ function useComputedColorScheme(defaultValue, options = { getInitialValueInEffect: true }) {
6
+ const osColorScheme = useColorScheme.useColorScheme(defaultValue, options);
7
+ const { colorScheme } = useMantineColorScheme.useMantineColorScheme();
8
+ return colorScheme === "auto" ? osColorScheme : colorScheme;
9
+ }
10
+ exports.useComputedColorScheme = useComputedColorScheme;
11
+ //# sourceMappingURL=use-computed-color-scheme.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-computed-color-scheme.cjs","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.mjs"],"sourcesContent":["'use client';\nimport { useColorScheme } from '@mantine/hooks';\nimport { useMantineColorScheme } from './use-mantine-color-scheme.mjs';\n\nfunction useComputedColorScheme(defaultValue, options = { getInitialValueInEffect: true }) {\n const osColorScheme = useColorScheme(defaultValue, options);\n const { colorScheme } = useMantineColorScheme();\n return colorScheme === \"auto\" ? osColorScheme : colorScheme;\n}\n\nexport { useComputedColorScheme };\n//# sourceMappingURL=use-computed-color-scheme.mjs.map\n"],"names":["useColorScheme","useMantineColorScheme"],"mappings":";;;;AAIA,SAAS,uBAAuB,cAAc,UAAU,EAAE,yBAAyB,KAAI,GAAI;AACzF,QAAM,gBAAgBA,eAAAA,eAAe,cAAc,OAAO;AAC1D,QAAM,EAAE,YAAW,IAAKC,4CAAqB;AAC7C,SAAO,gBAAgB,SAAS,gBAAgB;AAClD;;","x_google_ignoreList":[0]}
@@ -0,0 +1,11 @@
1
+ import { useMantineColorScheme } from "./use-mantine-color-scheme.js";
2
+ import { useColorScheme } from "../../../../../hooks/esm/use-color-scheme/use-color-scheme.js";
3
+ function useComputedColorScheme(defaultValue, options = { getInitialValueInEffect: true }) {
4
+ const osColorScheme = useColorScheme(defaultValue, options);
5
+ const { colorScheme } = useMantineColorScheme();
6
+ return colorScheme === "auto" ? osColorScheme : colorScheme;
7
+ }
8
+ export {
9
+ useComputedColorScheme
10
+ };
11
+ //# sourceMappingURL=use-computed-color-scheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-computed-color-scheme.js","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-computed-color-scheme.mjs"],"sourcesContent":["'use client';\nimport { useColorScheme } from '@mantine/hooks';\nimport { useMantineColorScheme } from './use-mantine-color-scheme.mjs';\n\nfunction useComputedColorScheme(defaultValue, options = { getInitialValueInEffect: true }) {\n const osColorScheme = useColorScheme(defaultValue, options);\n const { colorScheme } = useMantineColorScheme();\n return colorScheme === \"auto\" ? osColorScheme : colorScheme;\n}\n\nexport { useComputedColorScheme };\n//# sourceMappingURL=use-computed-color-scheme.mjs.map\n"],"names":[],"mappings":";;AAIA,SAAS,uBAAuB,cAAc,UAAU,EAAE,yBAAyB,KAAI,GAAI;AACzF,QAAM,gBAAgB,eAAe,cAAc,OAAO;AAC1D,QAAM,EAAE,YAAW,IAAK,sBAAqB;AAC7C,SAAO,gBAAgB,SAAS,gBAAgB;AAClD;","x_google_ignoreList":[0]}
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const React = require("react");
4
+ require("react/jsx-runtime");
5
+ const noop = require("../../utils/noop/noop.cjs");
6
+ const Mantine_context = require("../Mantine.context.cjs");
7
+ const useColorScheme = require("../../../../../hooks/esm/use-color-scheme/use-color-scheme.cjs");
8
+ function disableTransition(nonce) {
9
+ const style = document.createElement("style");
10
+ style.setAttribute("data-mantine-styles", "inline");
11
+ style.innerHTML = "*, *::before, *::after {transition: none !important;}";
12
+ style.setAttribute("data-mantine-disable-transition", "true");
13
+ nonce && style.setAttribute("nonce", nonce);
14
+ document.head.appendChild(style);
15
+ const clear = () => document.querySelectorAll("[data-mantine-disable-transition]").forEach((element) => element.remove());
16
+ return clear;
17
+ }
18
+ function useMantineColorScheme({ keepTransitions } = {}) {
19
+ const clearStylesRef = React.useRef(noop.noop);
20
+ const timeoutRef = React.useRef(-1);
21
+ const ctx = React.useContext(Mantine_context.MantineContext);
22
+ const nonce = Mantine_context.useMantineStyleNonce();
23
+ const nonceValue = React.useRef(nonce?.());
24
+ if (!ctx) {
25
+ throw new Error("[@mantine/core] MantineProvider was not found in tree");
26
+ }
27
+ const setColorScheme = (value) => {
28
+ ctx.setColorScheme(value);
29
+ clearStylesRef.current = keepTransitions ? () => {
30
+ } : disableTransition(nonceValue.current);
31
+ window.clearTimeout(timeoutRef.current);
32
+ timeoutRef.current = window.setTimeout(() => {
33
+ clearStylesRef.current?.();
34
+ }, 10);
35
+ };
36
+ const clearColorScheme = () => {
37
+ ctx.clearColorScheme();
38
+ clearStylesRef.current = keepTransitions ? () => {
39
+ } : disableTransition(nonceValue.current);
40
+ window.clearTimeout(timeoutRef.current);
41
+ timeoutRef.current = window.setTimeout(() => {
42
+ clearStylesRef.current?.();
43
+ }, 10);
44
+ };
45
+ const osColorScheme = useColorScheme.useColorScheme("light", { getInitialValueInEffect: false });
46
+ const computedColorScheme = ctx.colorScheme === "auto" ? osColorScheme : ctx.colorScheme;
47
+ const toggleColorScheme = React.useCallback(
48
+ () => setColorScheme(computedColorScheme === "light" ? "dark" : "light"),
49
+ [setColorScheme, computedColorScheme]
50
+ );
51
+ React.useEffect(
52
+ () => () => {
53
+ clearStylesRef.current?.();
54
+ window.clearTimeout(timeoutRef.current);
55
+ },
56
+ []
57
+ );
58
+ return {
59
+ colorScheme: ctx.colorScheme,
60
+ setColorScheme,
61
+ clearColorScheme,
62
+ toggleColorScheme
63
+ };
64
+ }
65
+ exports.useMantineColorScheme = useMantineColorScheme;
66
+ //# sourceMappingURL=use-mantine-color-scheme.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-mantine-color-scheme.cjs","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.mjs"],"sourcesContent":["'use client';\nimport { useRef, useContext, useCallback, useEffect } from 'react';\nimport { useColorScheme } from '@mantine/hooks';\nimport '../../utils/units-converters/rem.mjs';\nimport 'react/jsx-runtime';\nimport { noop } from '../../utils/noop/noop.mjs';\nimport { MantineContext, useMantineStyleNonce } from '../Mantine.context.mjs';\n\nfunction disableTransition(nonce) {\n const style = document.createElement(\"style\");\n style.setAttribute(\"data-mantine-styles\", \"inline\");\n style.innerHTML = \"*, *::before, *::after {transition: none !important;}\";\n style.setAttribute(\"data-mantine-disable-transition\", \"true\");\n nonce && style.setAttribute(\"nonce\", nonce);\n document.head.appendChild(style);\n const clear = () => document.querySelectorAll(\"[data-mantine-disable-transition]\").forEach((element) => element.remove());\n return clear;\n}\nfunction useMantineColorScheme({ keepTransitions } = {}) {\n const clearStylesRef = useRef(noop);\n const timeoutRef = useRef(-1);\n const ctx = useContext(MantineContext);\n const nonce = useMantineStyleNonce();\n const nonceValue = useRef(nonce?.());\n if (!ctx) {\n throw new Error(\"[@mantine/core] MantineProvider was not found in tree\");\n }\n const setColorScheme = (value) => {\n ctx.setColorScheme(value);\n clearStylesRef.current = keepTransitions ? () => {\n } : disableTransition(nonceValue.current);\n window.clearTimeout(timeoutRef.current);\n timeoutRef.current = window.setTimeout(() => {\n clearStylesRef.current?.();\n }, 10);\n };\n const clearColorScheme = () => {\n ctx.clearColorScheme();\n clearStylesRef.current = keepTransitions ? () => {\n } : disableTransition(nonceValue.current);\n window.clearTimeout(timeoutRef.current);\n timeoutRef.current = window.setTimeout(() => {\n clearStylesRef.current?.();\n }, 10);\n };\n const osColorScheme = useColorScheme(\"light\", { getInitialValueInEffect: false });\n const computedColorScheme = ctx.colorScheme === \"auto\" ? osColorScheme : ctx.colorScheme;\n const toggleColorScheme = useCallback(\n () => setColorScheme(computedColorScheme === \"light\" ? \"dark\" : \"light\"),\n [setColorScheme, computedColorScheme]\n );\n useEffect(\n () => () => {\n clearStylesRef.current?.();\n window.clearTimeout(timeoutRef.current);\n },\n []\n );\n return {\n colorScheme: ctx.colorScheme,\n setColorScheme,\n clearColorScheme,\n toggleColorScheme\n };\n}\n\nexport { useMantineColorScheme };\n//# sourceMappingURL=use-mantine-color-scheme.mjs.map\n"],"names":["useRef","noop","useContext","MantineContext","useMantineStyleNonce","useColorScheme","useCallback","useEffect"],"mappings":";;;;;;;AAQA,SAAS,kBAAkB,OAAO;AAChC,QAA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AAAA,IACxB,MAAM,eAAe,wBAAwB,UAAU,SAAS,OAAO;AAAA,IACvE,CAAC,gBAAgB,mBAAmB;AAAA,EACxC;AACEC,QAAAA;AAAAA,IACE,MAAM,MAAM;AACV,qBAAe,UAAO;AACtB,aAAO,aAAa,WAAW,OAAO;AAAA,IACxC;AAAA,IACA,CAAA;AAAA,EACJ;AACE,SAAO;AAAA,IACL,aAAa,IAAI;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AACA;;","x_google_ignoreList":[0]}
@@ -0,0 +1,66 @@
1
+ import { useRef, useContext, useCallback, useEffect } from "react";
2
+ import "react/jsx-runtime";
3
+ import { noop } from "../../utils/noop/noop.js";
4
+ import { MantineContext, useMantineStyleNonce } from "../Mantine.context.js";
5
+ import { useColorScheme } from "../../../../../hooks/esm/use-color-scheme/use-color-scheme.js";
6
+ function disableTransition(nonce) {
7
+ const style = document.createElement("style");
8
+ style.setAttribute("data-mantine-styles", "inline");
9
+ style.innerHTML = "*, *::before, *::after {transition: none !important;}";
10
+ style.setAttribute("data-mantine-disable-transition", "true");
11
+ nonce && style.setAttribute("nonce", nonce);
12
+ document.head.appendChild(style);
13
+ const clear = () => document.querySelectorAll("[data-mantine-disable-transition]").forEach((element) => element.remove());
14
+ return clear;
15
+ }
16
+ function useMantineColorScheme({ keepTransitions } = {}) {
17
+ const clearStylesRef = useRef(noop);
18
+ const timeoutRef = useRef(-1);
19
+ const ctx = useContext(MantineContext);
20
+ const nonce = useMantineStyleNonce();
21
+ const nonceValue = useRef(nonce?.());
22
+ if (!ctx) {
23
+ throw new Error("[@mantine/core] MantineProvider was not found in tree");
24
+ }
25
+ const setColorScheme = (value) => {
26
+ ctx.setColorScheme(value);
27
+ clearStylesRef.current = keepTransitions ? () => {
28
+ } : disableTransition(nonceValue.current);
29
+ window.clearTimeout(timeoutRef.current);
30
+ timeoutRef.current = window.setTimeout(() => {
31
+ clearStylesRef.current?.();
32
+ }, 10);
33
+ };
34
+ const clearColorScheme = () => {
35
+ ctx.clearColorScheme();
36
+ clearStylesRef.current = keepTransitions ? () => {
37
+ } : disableTransition(nonceValue.current);
38
+ window.clearTimeout(timeoutRef.current);
39
+ timeoutRef.current = window.setTimeout(() => {
40
+ clearStylesRef.current?.();
41
+ }, 10);
42
+ };
43
+ const osColorScheme = useColorScheme("light", { getInitialValueInEffect: false });
44
+ const computedColorScheme = ctx.colorScheme === "auto" ? osColorScheme : ctx.colorScheme;
45
+ const toggleColorScheme = useCallback(
46
+ () => setColorScheme(computedColorScheme === "light" ? "dark" : "light"),
47
+ [setColorScheme, computedColorScheme]
48
+ );
49
+ useEffect(
50
+ () => () => {
51
+ clearStylesRef.current?.();
52
+ window.clearTimeout(timeoutRef.current);
53
+ },
54
+ []
55
+ );
56
+ return {
57
+ colorScheme: ctx.colorScheme,
58
+ setColorScheme,
59
+ clearColorScheme,
60
+ toggleColorScheme
61
+ };
62
+ }
63
+ export {
64
+ useMantineColorScheme
65
+ };
66
+ //# sourceMappingURL=use-mantine-color-scheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-mantine-color-scheme.js","sources":["../../../../../../../../node_modules/@mantine/core/esm/core/MantineProvider/use-mantine-color-scheme/use-mantine-color-scheme.mjs"],"sourcesContent":["'use client';\nimport { useRef, useContext, useCallback, useEffect } from 'react';\nimport { useColorScheme } from '@mantine/hooks';\nimport '../../utils/units-converters/rem.mjs';\nimport 'react/jsx-runtime';\nimport { noop } from '../../utils/noop/noop.mjs';\nimport { MantineContext, useMantineStyleNonce } from '../Mantine.context.mjs';\n\nfunction disableTransition(nonce) {\n const style = document.createElement(\"style\");\n style.setAttribute(\"data-mantine-styles\", \"inline\");\n style.innerHTML = \"*, *::before, *::after {transition: none !important;}\";\n style.setAttribute(\"data-mantine-disable-transition\", \"true\");\n nonce && style.setAttribute(\"nonce\", nonce);\n document.head.appendChild(style);\n const clear = () => document.querySelectorAll(\"[data-mantine-disable-transition]\").forEach((element) => element.remove());\n return clear;\n}\nfunction useMantineColorScheme({ keepTransitions } = {}) {\n const clearStylesRef = useRef(noop);\n const timeoutRef = useRef(-1);\n const ctx = useContext(MantineContext);\n const nonce = useMantineStyleNonce();\n const nonceValue = useRef(nonce?.());\n if (!ctx) {\n throw new Error(\"[@mantine/core] MantineProvider was not found in tree\");\n }\n const setColorScheme = (value) => {\n ctx.setColorScheme(value);\n clearStylesRef.current = keepTransitions ? () => {\n } : disableTransition(nonceValue.current);\n window.clearTimeout(timeoutRef.current);\n timeoutRef.current = window.setTimeout(() => {\n clearStylesRef.current?.();\n }, 10);\n };\n const clearColorScheme = () => {\n ctx.clearColorScheme();\n clearStylesRef.current = keepTransitions ? () => {\n } : disableTransition(nonceValue.current);\n window.clearTimeout(timeoutRef.current);\n timeoutRef.current = window.setTimeout(() => {\n clearStylesRef.current?.();\n }, 10);\n };\n const osColorScheme = useColorScheme(\"light\", { getInitialValueInEffect: false });\n const computedColorScheme = ctx.colorScheme === \"auto\" ? osColorScheme : ctx.colorScheme;\n const toggleColorScheme = useCallback(\n () => setColorScheme(computedColorScheme === \"light\" ? \"dark\" : \"light\"),\n [setColorScheme, computedColorScheme]\n );\n useEffect(\n () => () => {\n clearStylesRef.current?.();\n window.clearTimeout(timeoutRef.current);\n },\n []\n );\n return {\n colorScheme: ctx.colorScheme,\n setColorScheme,\n clearColorScheme,\n toggleColorScheme\n };\n}\n\nexport { useMantineColorScheme };\n//# sourceMappingURL=use-mantine-color-scheme.mjs.map\n"],"names":[],"mappings":";;;;;AAQA,SAAS,kBAAkB,OAAO;AAChC,QAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,QAAM,aAAa,uBAAuB,QAAQ;AAClD,QAAM,YAAY;AAClB,QAAM,aAAa,mCAAmC,MAAM;AAC5D,WAAS,MAAM,aAAa,SAAS,KAAK;AAC1C,WAAS,KAAK,YAAY,KAAK;AAC/B,QAAM,QAAQ,MAAM,SAAS,iBAAiB,mCAAmC,EAAE,QAAQ,CAAC,YAAY,QAAQ,QAAQ;A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1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const useMediaQuery = require("../use-media-query/use-media-query.cjs");
4
+ function useColorScheme(initialValue, options) {
5
+ return useMediaQuery.useMediaQuery("(prefers-color-scheme: dark)", initialValue === "dark", options) ? "dark" : "light";
6
+ }
7
+ exports.useColorScheme = useColorScheme;
8
+ //# sourceMappingURL=use-color-scheme.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-color-scheme.cjs","sources":["../../../../../../node_modules/@mantine/hooks/esm/use-color-scheme/use-color-scheme.mjs"],"sourcesContent":["'use client';\nimport { useMediaQuery } from '../use-media-query/use-media-query.mjs';\n\nfunction useColorScheme(initialValue, options) {\n return useMediaQuery(\"(prefers-color-scheme: dark)\", initialValue === \"dark\", options) ? \"dark\" : \"light\";\n}\n\nexport { useColorScheme };\n//# sourceMappingURL=use-color-scheme.mjs.map\n"],"names":["useMediaQuery"],"mappings":";;;AAGA,SAAS,eAAe,cAAc,SAAS;AAC7C,SAAOA,cAAAA,cAAc,gCAAgC,iBAAiB,QAAQ,OAAO,IAAI,SAAS;AACpG;;","x_google_ignoreList":[0]}
@@ -0,0 +1,8 @@
1
+ import { useMediaQuery } from "../use-media-query/use-media-query.js";
2
+ function useColorScheme(initialValue, options) {
3
+ return useMediaQuery("(prefers-color-scheme: dark)", initialValue === "dark", options) ? "dark" : "light";
4
+ }
5
+ export {
6
+ useColorScheme
7
+ };
8
+ //# sourceMappingURL=use-color-scheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-color-scheme.js","sources":["../../../../../../node_modules/@mantine/hooks/esm/use-color-scheme/use-color-scheme.mjs"],"sourcesContent":["'use client';\nimport { useMediaQuery } from '../use-media-query/use-media-query.mjs';\n\nfunction useColorScheme(initialValue, options) {\n return useMediaQuery(\"(prefers-color-scheme: dark)\", initialValue === \"dark\", options) ? \"dark\" : \"light\";\n}\n\nexport { useColorScheme };\n//# sourceMappingURL=use-color-scheme.mjs.map\n"],"names":[],"mappings":";AAGA,SAAS,eAAe,cAAc,SAAS;AAC7C,SAAO,cAAc,gCAAgC,iBAAiB,QAAQ,OAAO,IAAI,SAAS;AACpG;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairmint/ui",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
4
4
  "type": "module",
5
5
  "description": "Fairmint design system and UI component library",
6
6
  "license": "UNLICENSED",