jclib-ui 1.0.95 → 1.0.97

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.
@@ -8066,8 +8066,6 @@ const ContainerFixed = styled.div`
8066
8066
  display: grid;
8067
8067
  place-items: center;
8068
8068
 
8069
- animation: FadeIn 0.2s both;
8070
-
8071
8069
  & > .mod-panel {
8072
8070
  background-color: var(--pn-color);
8073
8071
  border: 1px solid var(--pn-color);
@@ -19202,17 +19200,20 @@ const Container$1 = styled.div`
19202
19200
  --toggle-color-white: #fff;
19203
19201
  --toggle-color-text: var(--bs-body-color);
19204
19202
 
19205
- display: flex;
19206
- align-items: center;
19207
19203
  user-select: none;
19208
19204
  margin: 2px 0;
19209
19205
 
19210
- .toggle {
19211
- display: inline-flex;
19212
- align-items: center;
19206
+ & > label {
19207
+ display: flex;
19208
+ align-items: flex-start;
19213
19209
  gap: 5px;
19214
19210
 
19215
19211
  cursor: ${(props) => !props.disabled ? "pointer" : "default"};
19212
+
19213
+ & > div {
19214
+ margin-top: 3px;
19215
+ margin-right: -5px;
19216
+ }
19216
19217
  }
19217
19218
 
19218
19219
  input {
@@ -19254,39 +19255,28 @@ function Toggle({
19254
19255
  });
19255
19256
  }
19256
19257
  }
19257
- return /* @__PURE__ */ jsxRuntimeExports.jsx(
19258
- Container$1,
19258
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { checked, disabled, className, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
19259
+ "label",
19259
19260
  {
19260
- checked,
19261
- disabled,
19262
- className: `form-switch ${className}`,
19263
- ...rest,
19264
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
19265
- "label",
19266
- {
19267
- className: "toggle",
19268
- style: {
19269
- flexDirection: toRight ? "row-reverse" : "row",
19270
- justifyContent: toRight ? "space-between" : "flex-start",
19271
- alignItems: toRight ? "flex-start" : "center"
19272
- },
19273
- children: [
19274
- /* @__PURE__ */ jsxRuntimeExports.jsx(
19275
- "input",
19276
- {
19277
- disabled,
19278
- type: "checkbox",
19279
- className: "form-check-input",
19280
- checked,
19281
- onChange: handleClick
19282
- }
19283
- ),
19284
- children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "title", children })
19285
- ]
19286
- }
19287
- )
19261
+ style: {
19262
+ flexDirection: toRight ? "row-reverse" : "row",
19263
+ justifyContent: toRight ? "space-between" : "flex-start"
19264
+ },
19265
+ children: [
19266
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "form-switch", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
19267
+ "input",
19268
+ {
19269
+ disabled,
19270
+ type: "checkbox",
19271
+ className: "form-check-input",
19272
+ checked,
19273
+ onChange: handleClick
19274
+ }
19275
+ ) }),
19276
+ children && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "title", children })
19277
+ ]
19288
19278
  }
19289
- );
19279
+ ) });
19290
19280
  }
19291
19281
  const Container = styled.div`
19292
19282
  --margin-up: 15px;