@nayhoo/ui 0.20.2 → 0.22.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/dist/{button.css-BQdFVzyM.d.mts → button.css-CBtNCrkL.d.mts} +42 -1
- package/dist/{button.css-BQdFVzyM.d.ts → button.css-CBtNCrkL.d.ts} +42 -1
- package/dist/{chunk-MJK5V5VM.mjs → chunk-4JJB6DUF.mjs} +10 -2
- package/dist/chunk-4JJB6DUF.mjs.map +1 -0
- package/dist/{chunk-N535ABFC.mjs → chunk-4Q6FJKVL.mjs} +2 -2
- package/dist/{chunk-N535ABFC.mjs.map → chunk-4Q6FJKVL.mjs.map} +1 -1
- package/dist/{chunk-5WJ4KGIE.mjs → chunk-BD5MZVXZ.mjs} +1 -1
- package/dist/{chunk-5WJ4KGIE.mjs.map → chunk-BD5MZVXZ.mjs.map} +1 -1
- package/dist/{chunk-SV63RX5X.mjs → chunk-DO2J4RNO.mjs} +2 -2
- package/dist/chunk-DO2J4RNO.mjs.map +1 -0
- package/dist/{chunk-O62XWWJU.mjs → chunk-IVA2SE6G.mjs} +1 -1
- package/dist/chunk-IVA2SE6G.mjs.map +1 -0
- package/dist/{chunk-SG7GE2WP.mjs → chunk-OWCOYR6H.mjs} +19 -5
- package/dist/chunk-OWCOYR6H.mjs.map +1 -0
- package/dist/components/avatar.js +1 -1
- package/dist/components/avatar.js.map +1 -1
- package/dist/components/avatar.mjs +1 -1
- package/dist/components/button.css +60 -1
- package/dist/components/button.css.map +1 -1
- package/dist/components/button.d.mts +6 -3
- package/dist/components/button.d.ts +6 -3
- package/dist/components/button.js +20 -2
- package/dist/components/button.js.map +1 -1
- package/dist/components/button.mjs +2 -2
- package/dist/components/dialog.css +82 -19
- package/dist/components/dialog.css.map +1 -1
- package/dist/components/dialog.d.mts +3 -3
- package/dist/components/dialog.d.ts +3 -3
- package/dist/components/dialog.js +8 -4
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/dialog.mjs +6 -7
- package/dist/components/dialog.mjs.map +1 -1
- package/dist/components/dropdown-menu.css +2 -2
- package/dist/components/dropdown-menu.css.map +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/dropdown-menu.mjs +2 -2
- package/dist/components/menu.css +2 -2
- package/dist/components/menu.css.map +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/menu.js.map +1 -1
- package/dist/components/menu.mjs +2 -2
- package/dist/components/popover.css +2 -2
- package/dist/components/popover.css.map +1 -1
- package/dist/components/popover.js.map +1 -1
- package/dist/components/popover.mjs +1 -1
- package/dist/components/select.css +62 -3
- package/dist/components/select.css.map +1 -1
- package/dist/components/select.d.mts +1 -1
- package/dist/components/select.d.ts +1 -1
- package/dist/components/select.js +20 -2
- package/dist/components/select.js.map +1 -1
- package/dist/components/select.mjs +3 -3
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/tooltip.mjs +1 -1
- package/dist/{dialog.css-C7oMaNav.d.ts → dialog.css-Ab_SVu1p.d.mts} +6 -7
- package/dist/{dialog.css-C7oMaNav.d.mts → dialog.css-Ab_SVu1p.d.ts} +6 -7
- package/dist/patterns/index.css +82 -19
- package/dist/patterns/index.css.map +1 -1
- package/dist/patterns/index.js +8 -3
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/index.mjs +6 -6
- package/dist/patterns/index.mjs.map +1 -1
- package/dist/providers/index.css +74 -9
- package/dist/providers/index.css.map +1 -1
- package/dist/providers/index.js +20 -2
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/index.mjs +3 -3
- package/dist/theme/index.css +82 -19
- package/dist/theme/index.css.map +1 -1
- package/dist/theme/index.d.mts +5 -2
- package/dist/theme/index.d.ts +5 -2
- package/dist/theme/index.js +12 -2
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/index.mjs +10 -6
- package/package.json +4 -4
- package/dist/chunk-MJK5V5VM.mjs.map +0 -1
- package/dist/chunk-O62XWWJU.mjs.map +0 -1
- package/dist/chunk-SG7GE2WP.mjs.map +0 -1
- package/dist/chunk-SV63RX5X.mjs.map +0 -1
package/dist/patterns/index.mjs
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
} from "../chunk-OUMPB4BX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
sprinkles
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-DO2J4RNO.mjs";
|
|
7
7
|
import "../chunk-GWDU7T23.mjs";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-IVA2SE6G.mjs";
|
|
9
9
|
import "../chunk-P3OUEGR4.mjs";
|
|
10
10
|
import "../chunk-E6E5BANX.mjs";
|
|
11
11
|
import "../chunk-ZE66ZTIP.mjs";
|
|
@@ -15,7 +15,7 @@ import "../chunk-DOHVBMXO.mjs";
|
|
|
15
15
|
import "../chunk-NOIOHUNH.mjs";
|
|
16
16
|
import "../chunk-3QRC6OXA.mjs";
|
|
17
17
|
import "../chunk-6HL72YC5.mjs";
|
|
18
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-BD5MZVXZ.mjs";
|
|
19
19
|
import "../chunk-WUVNL3DI.mjs";
|
|
20
20
|
import "../chunk-ZE5SRIKT.mjs";
|
|
21
21
|
import "../chunk-6BSCPITT.mjs";
|
|
@@ -27,13 +27,13 @@ import "../chunk-TYCD7GHO.mjs";
|
|
|
27
27
|
import "../chunk-IN7LRE7C.mjs";
|
|
28
28
|
import {
|
|
29
29
|
theme
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-4Q6FJKVL.mjs";
|
|
31
31
|
import "../chunk-FURY4XP7.mjs";
|
|
32
32
|
import {
|
|
33
33
|
Box
|
|
34
34
|
} from "../chunk-LSB5JVS2.mjs";
|
|
35
35
|
import "../chunk-OI24WXH6.mjs";
|
|
36
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-4JJB6DUF.mjs";
|
|
37
37
|
import "../chunk-URGU4MLN.mjs";
|
|
38
38
|
import "../chunk-6RSPMV3B.mjs";
|
|
39
39
|
import "../chunk-IFN22XIN.mjs";
|
|
@@ -69,7 +69,7 @@ var Nav = ({
|
|
|
69
69
|
top: 0,
|
|
70
70
|
transition: "border-color 0.4s, padding 0.4s",
|
|
71
71
|
width: "100%",
|
|
72
|
-
zIndex: theme.zIndices[
|
|
72
|
+
zIndex: theme.zIndices[4],
|
|
73
73
|
backgroundColor: `color-mix(in srgb, ${theme.semanticColors.background}, transparent 40%)`,
|
|
74
74
|
backdropFilter: "blur(10px)"
|
|
75
75
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/patterns/nav.tsx"],"sourcesContent":["import { Box } from \"@/components/box\";\nimport { Container } from \"@/components/container\";\nimport { sprinkles, theme } from \"@/theme\";\nimport { useScrollPosition } from \"@nayhoo/hooks\";\n\n/** Common Nav component for Nayhoo apps */\nexport const Nav = ({\n children,\n variant = \"fixed\",\n fullWidth = false,\n compact = false,\n}: {\n children: React.ReactNode;\n variant?: \"fixed\" | \"sticky\";\n fullWidth?: boolean;\n compact?: boolean;\n}) => {\n const scrollPosition = useScrollPosition();\n\n const isScrolled = scrollPosition > 24;\n\n return (\n <Box\n asChild\n className={sprinkles({\n paddingY: {\n initial: undefined,\n xs: isScrolled || compact ? undefined : 2,\n },\n })}\n style={{\n borderBottom: \"1px solid\",\n borderColor:\n isScrolled || compact ? theme.semanticColors.line : \"transparent\",\n position: variant,\n top: 0,\n transition: \"border-color 0.4s, padding 0.4s\",\n width: \"100%\",\n zIndex: theme.zIndices[
|
|
1
|
+
{"version":3,"sources":["../../src/patterns/nav.tsx"],"sourcesContent":["import { Box } from \"@/components/box\";\nimport { Container } from \"@/components/container\";\nimport { sprinkles, theme } from \"@/theme\";\nimport { useScrollPosition } from \"@nayhoo/hooks\";\n\n/** Common Nav component for Nayhoo apps */\nexport const Nav = ({\n children,\n variant = \"fixed\",\n fullWidth = false,\n compact = false,\n}: {\n children: React.ReactNode;\n variant?: \"fixed\" | \"sticky\";\n fullWidth?: boolean;\n compact?: boolean;\n}) => {\n const scrollPosition = useScrollPosition();\n\n const isScrolled = scrollPosition > 24;\n\n return (\n <Box\n asChild\n className={sprinkles({\n paddingY: {\n initial: undefined,\n xs: isScrolled || compact ? undefined : 2,\n },\n })}\n style={{\n borderBottom: \"1px solid\",\n borderColor:\n isScrolled || compact ? theme.semanticColors.line : \"transparent\",\n position: variant,\n top: 0,\n transition: \"border-color 0.4s, padding 0.4s\",\n width: \"100%\",\n zIndex: theme.zIndices[4],\n backgroundColor: `color-mix(in srgb, ${theme.semanticColors.background}, transparent 40%)`,\n backdropFilter: \"blur(10px)\",\n }}\n >\n <nav>\n <Container\n size={fullWidth ? \"4\" : \"3\"}\n style={{\n padding: theme.space[2],\n width: \"100%\",\n }}\n >\n {children}\n </Container>\n </nav>\n </Box>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,SAAS,yBAAyB;AAyC1B;AAtCD,IAAM,MAAM,CAAC;AAAA,EAClB;AAAA,EACA,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,UAAU;AACZ,MAKM;AACJ,QAAM,iBAAiB,kBAAkB;AAEzC,QAAM,aAAa,iBAAiB;AAEpC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAO;AAAA,MACP,WAAW,UAAU;AAAA,QACnB,UAAU;AAAA,UACR,SAAS;AAAA,UACT,IAAI,cAAc,UAAU,SAAY;AAAA,QAC1C;AAAA,MACF,CAAC;AAAA,MACD,OAAO;AAAA,QACL,cAAc;AAAA,QACd,aACE,cAAc,UAAU,MAAM,eAAe,OAAO;AAAA,QACtD,UAAU;AAAA,QACV,KAAK;AAAA,QACL,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,QAAQ,MAAM,SAAS,CAAC;AAAA,QACxB,iBAAiB,sBAAsB,MAAM,eAAe,UAAU;AAAA,QACtE,gBAAgB;AAAA,MAClB;AAAA,MAEA,8BAAC,SACC;AAAA,QAAC;AAAA;AAAA,UACC,MAAM,YAAY,MAAM;AAAA,UACxB,OAAO;AAAA,YACL,SAAS,MAAM,MAAM,CAAC;AAAA,YACtB,OAAO;AAAA,UACT;AAAA,UAEC;AAAA;AAAA,MACH,GACF;AAAA;AAAA,EACF;AAEJ;","names":[]}
|