@gnist/design-system 4.2.2 → 4.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/CHANGELOG.md +10 -0
- package/dist/components/actions/selectionControls/Switch.cjs +14 -28
- package/dist/components/actions/selectionControls/Switch.d.ts +4 -6
- package/dist/components/actions/selectionControls/Switch.d.ts.map +1 -1
- package/dist/components/actions/selectionControls/Switch.js +16 -30
- package/dist/components/actions/selectionControls/switch.css.cjs +14 -21
- package/dist/components/actions/selectionControls/switch.css.d.ts +1 -3
- package/dist/components/actions/selectionControls/switch.css.d.ts.map +1 -1
- package/dist/components/actions/selectionControls/switch.css.js +14 -21
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [4.3.0](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@4.2.3...@gnist/design-system@4.3.0) (2025-10-31)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* simplify switch behavior ([23b2363](https://github.com/mollerdigital/design-system-design-system/commit/23b2363bf590ad5364b1a991ae43910fb317dbb5))
|
|
11
|
+
|
|
12
|
+
## [4.2.3](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@4.2.2...@gnist/design-system@4.2.3) (2025-10-31)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @gnist/design-system
|
|
15
|
+
|
|
6
16
|
## [4.2.2](https://github.com/mollerdigital/design-system-design-system/compare/@gnist/design-system@4.2.1...@gnist/design-system@4.2.2) (2025-10-24)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @gnist/design-system
|
|
@@ -2,47 +2,33 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
4
4
|
const jsxRuntime = require("react/jsx-runtime");
|
|
5
|
-
const InputHelperText = require("../../../building-blocks/inputs/InputHelperText.cjs");
|
|
6
5
|
const ScreenReaderOnly = require("../../../utilities/accessibility/ScreenReaderOnly.cjs");
|
|
7
6
|
require("../../../utilities/accessibility/visuallyHidden.css.cjs");
|
|
8
7
|
const index = require("../../../utilities/html/index.cjs");
|
|
9
8
|
const switch_css = require("./switch.css.cjs");
|
|
10
9
|
const shared_css = require("./shared.css.cjs");
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
function Switch({ offLabel, onLabel, description, value = false, onChange, disabled, validity, id = index.createValidHtmlId(offLabel || onLabel || "toggle"), hideLabel = false, canShowErrorMessage = false, className, ref, ...rest }) {
|
|
10
|
+
const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
11
|
+
function Switch({ label, description, value = false, onChange, disabled, id = index.createValidHtmlId(label || "toggle"), position = "left", hideLabel = false, className, ref, ...rest }) {
|
|
14
12
|
const inputId = id;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
22
|
-
const descriptionElement = description ? jsxRuntime.jsx(shared.SelectionDescription, { disabled, children: description }) : void 0;
|
|
23
|
-
const switchElement = jsxRuntime.jsx("span", { className: `${shared_css.InputWrapper} ${className}`, ref, children: jsxRuntime.jsxs("div", { className: switch_css.switchContainerStyle, children: [offLabel && !hideLabel && jsxRuntime.jsx("span", { className: switch_css.SwitchLabelRecipe({
|
|
24
|
-
disabled,
|
|
25
|
-
side: "left"
|
|
26
|
-
}), children: offLabel }), jsxRuntime.jsxs("label", { htmlFor: inputId, className: switch_css.SwitchRecipe({
|
|
27
|
-
selected: value,
|
|
28
|
-
disabled,
|
|
29
|
-
validity: validity?.type === "error" ? "error" : void 0
|
|
30
|
-
}), id: labelId, children: [jsxRuntime.jsx("input", { type: "checkbox", id: inputId, disabled, onChange, checked: value === true, className: shared_css.InputStyleRecipe({ disabled }), style: {
|
|
13
|
+
const LabelElement = () => {
|
|
14
|
+
return jsxRuntime.jsxs("span", { className: switch_css.SwitchLabelRecipe({
|
|
15
|
+
disabled,
|
|
16
|
+
side: position === "right" ? "left" : "right"
|
|
17
|
+
}), children: [label, description && jsxRuntime.jsx("div", { className: switch_css.switchDescription, children: description })] });
|
|
18
|
+
};
|
|
19
|
+
return jsxRuntime.jsxs("span", { className: `${shared_css.InputWrapper} ${switch_css.focusContainer} ${className} ${atoms_css_js.atoms({ borderRadius: hideLabel ? "full" : "input" })}`, ref, children: [jsxRuntime.jsx("input", { type: "checkbox", id: inputId, disabled, onChange, checked: value === true, className: shared_css.InputStyleRecipe({ disabled }), style: {
|
|
31
20
|
position: "absolute",
|
|
32
21
|
opacity: 0,
|
|
33
22
|
width: "100%",
|
|
34
23
|
height: "100%",
|
|
35
24
|
margin: 0,
|
|
36
25
|
cursor: disabled ? "not-allowed" : "pointer"
|
|
37
|
-
}, ...
|
|
38
|
-
selected: value
|
|
26
|
+
}, ...rest }), jsxRuntime.jsxs("label", { htmlFor: inputId, className: switch_css.switchContainerStyle, children: [position === "right" && !hideLabel && jsxRuntime.jsx(LabelElement, {}), jsxRuntime.jsx("span", { className: switch_css.SwitchRecipe({
|
|
27
|
+
selected: value,
|
|
39
28
|
disabled
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
side: "right"
|
|
43
|
-
}), children: onLabel }), onLabel && !hideLabel && !offLabel && !onLabel && jsxRuntime.jsx("span", { className: switch_css.SwitchLabelRecipe({
|
|
29
|
+
}), children: jsxRuntime.jsx("span", { className: switch_css.SwitchThumbRecipe({
|
|
30
|
+
selected: value ?? false,
|
|
44
31
|
disabled
|
|
45
|
-
}), children:
|
|
46
|
-
return jsxRuntime.jsx(shared.HelperTextWrapper, { ...helperTextProps, children: defaultRender(switchElement, descriptionElement) });
|
|
32
|
+
}) }) }), position === "left" && !hideLabel && jsxRuntime.jsx(LabelElement, {}), hideLabel && jsxRuntime.jsx(ScreenReaderOnly.ScreenReaderOnly, { children: label })] })] });
|
|
47
33
|
}
|
|
48
34
|
exports.Switch = Switch;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Ref } from "react";
|
|
2
2
|
import { SelectionControlProps } from "./shared.js";
|
|
3
|
-
export interface SwitchProps extends Omit<SelectionControlProps<boolean>, "render"> {
|
|
4
|
-
/** The
|
|
5
|
-
|
|
6
|
-
/** The right side label of the switch. */
|
|
7
|
-
onLabel: string;
|
|
3
|
+
export interface SwitchProps extends Omit<SelectionControlProps<boolean>, "render" | "validity"> {
|
|
4
|
+
/** The position of the Switch */
|
|
5
|
+
position?: string;
|
|
8
6
|
ref?: Ref<HTMLSpanElement>;
|
|
9
7
|
}
|
|
10
8
|
/**
|
|
@@ -15,5 +13,5 @@ export interface SwitchProps extends Omit<SelectionControlProps<boolean>, "rende
|
|
|
15
13
|
*
|
|
16
14
|
* Documentation: [Switch](https://gnist.moller.no/developers/components/latest/?path=/docs/components-actions-selectioncontrols-switch--docs)
|
|
17
15
|
*/
|
|
18
|
-
export declare function Switch({
|
|
16
|
+
export declare function Switch({ label, description, value, onChange, disabled, id, position, hideLabel, className, ref, ...rest }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
19
17
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/Switch.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAU5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,MAAM,WAAW,WACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IACnE,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC,CAAC;CAC9B;AAED;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,EACnB,KAAK,EACL,WAAW,EACX,KAAa,EACb,QAAQ,EACR,QAAQ,EACR,EAAyC,EACzC,QAAiB,EACjB,SAAiB,EACjB,SAAS,EACT,GAAG,EACH,GAAG,IAAI,EACV,EAAE,WAAW,2CA6Db"}
|
|
@@ -1,47 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useInputHelperText } from "../../../building-blocks/inputs/InputHelperText.js";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
3
|
import { ScreenReaderOnly } from "../../../utilities/accessibility/ScreenReaderOnly.js";
|
|
5
4
|
import "../../../utilities/accessibility/visuallyHidden.css.js";
|
|
6
5
|
import { createValidHtmlId } from "../../../utilities/html/index.js";
|
|
7
|
-
import {
|
|
6
|
+
import { focusContainer, switchContainerStyle, SwitchRecipe, SwitchThumbRecipe, SwitchLabelRecipe, switchDescription } from "./switch.css.js";
|
|
8
7
|
import { InputWrapper, InputStyleRecipe } from "./shared.css.js";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
function Switch({ offLabel, onLabel, description, value = false, onChange, disabled, validity, id = createValidHtmlId(offLabel || onLabel || "toggle"), hideLabel = false, canShowErrorMessage = false, className, ref, ...rest }) {
|
|
8
|
+
import { atoms } from "@gnist/themes/atoms.css.js";
|
|
9
|
+
function Switch({ label, description, value = false, onChange, disabled, id = createValidHtmlId(label || "toggle"), position = "left", hideLabel = false, className, ref, ...rest }) {
|
|
12
10
|
const inputId = id;
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})
|
|
20
|
-
const descriptionElement = description ? jsx(SelectionDescription, { disabled, children: description }) : void 0;
|
|
21
|
-
const switchElement = jsx("span", { className: `${InputWrapper} ${className}`, ref, children: jsxs("div", { className: switchContainerStyle, children: [offLabel && !hideLabel && jsx("span", { className: SwitchLabelRecipe({
|
|
22
|
-
disabled,
|
|
23
|
-
side: "left"
|
|
24
|
-
}), children: offLabel }), jsxs("label", { htmlFor: inputId, className: SwitchRecipe({
|
|
25
|
-
selected: value,
|
|
26
|
-
disabled,
|
|
27
|
-
validity: validity?.type === "error" ? "error" : void 0
|
|
28
|
-
}), id: labelId, children: [jsx("input", { type: "checkbox", id: inputId, disabled, onChange, checked: value === true, className: InputStyleRecipe({ disabled }), style: {
|
|
11
|
+
const LabelElement = () => {
|
|
12
|
+
return jsxs("span", { className: SwitchLabelRecipe({
|
|
13
|
+
disabled,
|
|
14
|
+
side: position === "right" ? "left" : "right"
|
|
15
|
+
}), children: [label, description && jsx("div", { className: switchDescription, children: description })] });
|
|
16
|
+
};
|
|
17
|
+
return jsxs("span", { className: `${InputWrapper} ${focusContainer} ${className} ${atoms({ borderRadius: hideLabel ? "full" : "input" })}`, ref, children: [jsx("input", { type: "checkbox", id: inputId, disabled, onChange, checked: value === true, className: InputStyleRecipe({ disabled }), style: {
|
|
29
18
|
position: "absolute",
|
|
30
19
|
opacity: 0,
|
|
31
20
|
width: "100%",
|
|
32
21
|
height: "100%",
|
|
33
22
|
margin: 0,
|
|
34
23
|
cursor: disabled ? "not-allowed" : "pointer"
|
|
35
|
-
}, ...
|
|
36
|
-
selected: value
|
|
24
|
+
}, ...rest }), jsxs("label", { htmlFor: inputId, className: switchContainerStyle, children: [position === "right" && !hideLabel && jsx(LabelElement, {}), jsx("span", { className: SwitchRecipe({
|
|
25
|
+
selected: value,
|
|
37
26
|
disabled
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
side: "right"
|
|
41
|
-
}), children: onLabel }), onLabel && !hideLabel && !offLabel && !onLabel && jsx("span", { className: SwitchLabelRecipe({
|
|
27
|
+
}), children: jsx("span", { className: SwitchThumbRecipe({
|
|
28
|
+
selected: value ?? false,
|
|
42
29
|
disabled
|
|
43
|
-
}), children:
|
|
44
|
-
return jsx(HelperTextWrapper, { ...helperTextProps, children: defaultRender(switchElement, descriptionElement) });
|
|
30
|
+
}) }) }), position === "left" && !hideLabel && jsx(LabelElement, {}), hideLabel && jsx(ScreenReaderOnly, { children: label })] })] });
|
|
45
31
|
}
|
|
46
32
|
export {
|
|
47
33
|
Switch
|
|
@@ -5,9 +5,18 @@ const atoms_css_js = require("@gnist/themes/atoms.css.js");
|
|
|
5
5
|
const tokens_css_js = require("@gnist/themes/tokens.css.js");
|
|
6
6
|
const recipes = require("@vanilla-extract/recipes");
|
|
7
7
|
const css = require("@vanilla-extract/css");
|
|
8
|
+
const focusContainer = css.style({
|
|
9
|
+
display: "inline-flex",
|
|
10
|
+
alignItems: "center",
|
|
11
|
+
selectors: {
|
|
12
|
+
"&:has(:focus-visible)": {
|
|
13
|
+
outline: `${tokens_css_js.tokens.stroke.medium} solid ${tokens_css_js.tokens.color.interactive}`,
|
|
14
|
+
outlineOffset: "2px"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
8
18
|
const switchContainerStyle = css.style({
|
|
9
|
-
display: "flex"
|
|
10
|
-
alignItems: "center"
|
|
19
|
+
display: "flex"
|
|
11
20
|
});
|
|
12
21
|
const switchContainer = css.style([
|
|
13
22
|
{
|
|
@@ -32,16 +41,6 @@ const SwitchRecipe = recipes.recipe({
|
|
|
32
41
|
borderWidth: "1px",
|
|
33
42
|
borderStyle: "solid",
|
|
34
43
|
boxSizing: "border-box"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
selectors: {
|
|
38
|
-
"&:focus:not(:focus-visible)": {
|
|
39
|
-
outline: "none"
|
|
40
|
-
},
|
|
41
|
-
"&:has(:focus-visible)": {
|
|
42
|
-
outline: `${tokens_css_js.tokens.stroke.medium} solid ${tokens_css_js.tokens.color.interactive}`
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
44
|
}
|
|
46
45
|
],
|
|
47
46
|
variants: {
|
|
@@ -69,13 +68,6 @@ const SwitchRecipe = recipes.recipe({
|
|
|
69
68
|
}
|
|
70
69
|
],
|
|
71
70
|
false: {}
|
|
72
|
-
},
|
|
73
|
-
validity: {
|
|
74
|
-
error: [
|
|
75
|
-
atoms_css_js.atoms({
|
|
76
|
-
borderColor: "error"
|
|
77
|
-
})
|
|
78
|
-
]
|
|
79
71
|
}
|
|
80
72
|
}
|
|
81
73
|
});
|
|
@@ -119,7 +111,7 @@ const switchLabel = css.style([
|
|
|
119
111
|
{
|
|
120
112
|
userSelect: "none",
|
|
121
113
|
fontSize: tokens_css_js.tokens.type.small.body.fontSize,
|
|
122
|
-
lineHeight: tokens_css_js.tokens.
|
|
114
|
+
lineHeight: tokens_css_js.tokens.typeface.size.xl
|
|
123
115
|
},
|
|
124
116
|
atoms_css_js.atoms({
|
|
125
117
|
color: "on-surface"
|
|
@@ -152,12 +144,13 @@ const SwitchLabelRecipe = recipes.recipe({
|
|
|
152
144
|
});
|
|
153
145
|
const switchDescription = css.style([
|
|
154
146
|
atoms_css_js.atoms({
|
|
155
|
-
color: "
|
|
147
|
+
color: "text-variant"
|
|
156
148
|
})
|
|
157
149
|
]);
|
|
158
150
|
exports.SwitchLabelRecipe = SwitchLabelRecipe;
|
|
159
151
|
exports.SwitchRecipe = SwitchRecipe;
|
|
160
152
|
exports.SwitchThumbRecipe = SwitchThumbRecipe;
|
|
153
|
+
exports.focusContainer = focusContainer;
|
|
161
154
|
exports.switchContainer = switchContainer;
|
|
162
155
|
exports.switchContainerStyle = switchContainerStyle;
|
|
163
156
|
exports.switchDescription = switchDescription;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const focusContainer: string;
|
|
1
2
|
export declare const switchContainerStyle: string;
|
|
2
3
|
export declare const switchContainer: string;
|
|
3
4
|
export declare const SwitchRecipe: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
@@ -12,9 +13,6 @@ export declare const SwitchRecipe: import("@vanilla-extract/recipes").RuntimeFn<
|
|
|
12
13
|
})[];
|
|
13
14
|
false: {};
|
|
14
15
|
};
|
|
15
|
-
validity: {
|
|
16
|
-
error: string[];
|
|
17
|
-
};
|
|
18
16
|
}>;
|
|
19
17
|
export declare const switchThumb: string;
|
|
20
18
|
export declare const SwitchThumbRecipe: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/switch.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"switch.css.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/selectionControls/switch.css.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc,QASzB,CAAC;AAEH,eAAO,MAAM,oBAAoB,QAE/B,CAAC;AAEH,eAAO,MAAM,eAAe,QAY1B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;EAuCvB,CAAC;AAEH,eAAO,MAAM,WAAW,QAQtB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;EA0B5B,CAAC;AAEH,eAAO,MAAM,WAAW,QAStB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;EAwB5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAI5B,CAAC"}
|
|
@@ -3,9 +3,18 @@ import { atoms } from "@gnist/themes/atoms.css.js";
|
|
|
3
3
|
import { tokens } from "@gnist/themes/tokens.css.js";
|
|
4
4
|
import { recipe } from "@vanilla-extract/recipes";
|
|
5
5
|
import { style } from "@vanilla-extract/css";
|
|
6
|
+
const focusContainer = style({
|
|
7
|
+
display: "inline-flex",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
selectors: {
|
|
10
|
+
"&:has(:focus-visible)": {
|
|
11
|
+
outline: `${tokens.stroke.medium} solid ${tokens.color.interactive}`,
|
|
12
|
+
outlineOffset: "2px"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
6
16
|
const switchContainerStyle = style({
|
|
7
|
-
display: "flex"
|
|
8
|
-
alignItems: "center"
|
|
17
|
+
display: "flex"
|
|
9
18
|
});
|
|
10
19
|
const switchContainer = style([
|
|
11
20
|
{
|
|
@@ -30,16 +39,6 @@ const SwitchRecipe = recipe({
|
|
|
30
39
|
borderWidth: "1px",
|
|
31
40
|
borderStyle: "solid",
|
|
32
41
|
boxSizing: "border-box"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
selectors: {
|
|
36
|
-
"&:focus:not(:focus-visible)": {
|
|
37
|
-
outline: "none"
|
|
38
|
-
},
|
|
39
|
-
"&:has(:focus-visible)": {
|
|
40
|
-
outline: `${tokens.stroke.medium} solid ${tokens.color.interactive}`
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
42
|
}
|
|
44
43
|
],
|
|
45
44
|
variants: {
|
|
@@ -67,13 +66,6 @@ const SwitchRecipe = recipe({
|
|
|
67
66
|
}
|
|
68
67
|
],
|
|
69
68
|
false: {}
|
|
70
|
-
},
|
|
71
|
-
validity: {
|
|
72
|
-
error: [
|
|
73
|
-
atoms({
|
|
74
|
-
borderColor: "error"
|
|
75
|
-
})
|
|
76
|
-
]
|
|
77
69
|
}
|
|
78
70
|
}
|
|
79
71
|
});
|
|
@@ -117,7 +109,7 @@ const switchLabel = style([
|
|
|
117
109
|
{
|
|
118
110
|
userSelect: "none",
|
|
119
111
|
fontSize: tokens.type.small.body.fontSize,
|
|
120
|
-
lineHeight: tokens.
|
|
112
|
+
lineHeight: tokens.typeface.size.xl
|
|
121
113
|
},
|
|
122
114
|
atoms({
|
|
123
115
|
color: "on-surface"
|
|
@@ -150,13 +142,14 @@ const SwitchLabelRecipe = recipe({
|
|
|
150
142
|
});
|
|
151
143
|
const switchDescription = style([
|
|
152
144
|
atoms({
|
|
153
|
-
color: "
|
|
145
|
+
color: "text-variant"
|
|
154
146
|
})
|
|
155
147
|
]);
|
|
156
148
|
export {
|
|
157
149
|
SwitchLabelRecipe,
|
|
158
150
|
SwitchRecipe,
|
|
159
151
|
SwitchThumbRecipe,
|
|
152
|
+
focusContainer,
|
|
160
153
|
switchContainer,
|
|
161
154
|
switchContainerStyle,
|
|
162
155
|
switchDescription,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnist/design-system",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@base-ui-components/react": "1.0.0-beta.2",
|
|
51
51
|
"@formkit/auto-animate": "^0.8.2",
|
|
52
52
|
"@gnist/component-utils": "3.0.10",
|
|
53
|
-
"@gnist/themes": "^3.
|
|
53
|
+
"@gnist/themes": "^3.20.0",
|
|
54
54
|
"@vanilla-extract/css": "^1.17.4",
|
|
55
55
|
"@vanilla-extract/css-utils": "^0.1.6",
|
|
56
56
|
"@vanilla-extract/dynamic": "^2.1.5",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"tslib": "^2.8.1",
|
|
91
91
|
"tsx": "^4.20.4",
|
|
92
92
|
"typescript-transform-paths": "^3.5.5",
|
|
93
|
-
"vite": "7.1.
|
|
93
|
+
"vite": "7.1.12",
|
|
94
94
|
"vite-plugin-svgr": "^4.3.0",
|
|
95
95
|
"vite-tsconfig-paths": "^5.1.4"
|
|
96
96
|
},
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
"optional": true
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "e18d8f7b6f49f16ce6c111a7213e2e295f112f3d"
|
|
106
106
|
}
|