@octavius2929-personal/design-system 0.5.0 → 0.5.1
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/LICENSE +1 -1
- package/dist/index.cjs +16 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026
|
|
3
|
+
Copyright (c) 2026 Justin Octavio <justinoctavio2001@gmail.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/dist/index.cjs
CHANGED
|
@@ -182,7 +182,10 @@ function ThemeProvider({
|
|
|
182
182
|
setSchema,
|
|
183
183
|
setMode: setPreference,
|
|
184
184
|
toggleMode: () => setPreference(mode === "dark" ? "light" : "dark"),
|
|
185
|
-
cycleMode: () =>
|
|
185
|
+
cycleMode: () => {
|
|
186
|
+
const next = modeNames[(modeNames.indexOf(mode) + 1) % modeNames.length];
|
|
187
|
+
if (next) setPreference(next);
|
|
188
|
+
}
|
|
186
189
|
}),
|
|
187
190
|
[schema, mode, preference]
|
|
188
191
|
);
|
|
@@ -331,7 +334,10 @@ var root4 = "use-styles_root__1wpei6p0";
|
|
|
331
334
|
var tone2 = { ink: "use-styles_tone_ink__1wpei6p2", accent: "use-styles_tone_accent__1wpei6p3" };
|
|
332
335
|
|
|
333
336
|
// src/components/badge/use-styles.ts
|
|
334
|
-
function useStyles4({
|
|
337
|
+
function useStyles4({
|
|
338
|
+
tone: tone4 = "ink",
|
|
339
|
+
className
|
|
340
|
+
}) {
|
|
335
341
|
const { themeClass } = useTheme();
|
|
336
342
|
const root24 = (0, import_react7.useMemo)(
|
|
337
343
|
() => [themeClass, root4, className].filter(Boolean).join(" "),
|
|
@@ -1089,7 +1095,9 @@ var placement = { top: "use-styles_placement_top__h9kvh2", bottom: "use-styles_p
|
|
|
1089
1095
|
var wrapper = "use-styles_wrapper__h9kvh0";
|
|
1090
1096
|
|
|
1091
1097
|
// src/components/tooltip/use-styles.ts
|
|
1092
|
-
function useStyles14({
|
|
1098
|
+
function useStyles14({
|
|
1099
|
+
placement: placement2 = "top"
|
|
1100
|
+
}) {
|
|
1093
1101
|
const { themeClass } = useTheme();
|
|
1094
1102
|
const wrapper4 = (0, import_react18.useMemo)(
|
|
1095
1103
|
() => [themeClass, wrapper].filter(Boolean).join(" "),
|
|
@@ -1914,6 +1922,7 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
1914
1922
|
}
|
|
1915
1923
|
const first = focusable[0];
|
|
1916
1924
|
const last = focusable[focusable.length - 1];
|
|
1925
|
+
if (!first || !last) return;
|
|
1917
1926
|
const active2 = document.activeElement;
|
|
1918
1927
|
if (event.shiftKey) {
|
|
1919
1928
|
if (active2 === first || active2 === surfaceEl) {
|
|
@@ -2065,7 +2074,10 @@ var selected2 = "use-styles_selected__kbreq11";
|
|
|
2065
2074
|
var trailing = "use-styles_trailing__kbreq14";
|
|
2066
2075
|
|
|
2067
2076
|
// src/components/list-item/use-styles.ts
|
|
2068
|
-
function useStyles27({
|
|
2077
|
+
function useStyles27({
|
|
2078
|
+
selected: selected3,
|
|
2079
|
+
className
|
|
2080
|
+
}) {
|
|
2069
2081
|
const { themeClass } = useTheme();
|
|
2070
2082
|
const root24 = (0, import_react38.useMemo)(
|
|
2071
2083
|
() => [themeClass, root23, selected3 && selected2, className].filter(Boolean).join(" "),
|