@liner-fe/prism 2.9.45 → 2.9.47
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/lib/index.css +14 -14
- package/lib/index.d.ts +1 -0
- package/lib/index.js +7 -7
- package/package.json +2 -2
package/lib/index.css
CHANGED
|
@@ -931,7 +931,7 @@
|
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
/* esbuild-sass-plugin:css-chunk:src/components/CheckBox/style.module.scss */
|
|
934
|
-
.
|
|
934
|
+
._checkbox_1expy_1 {
|
|
935
935
|
display: flex;
|
|
936
936
|
width: var(--lp-sys-icon-size-xs);
|
|
937
937
|
height: var(--lp-sys-icon-size-xs);
|
|
@@ -941,49 +941,49 @@
|
|
|
941
941
|
outline: none;
|
|
942
942
|
transform: translateY(10%);
|
|
943
943
|
background: var(--lp-pri-achromatic-white);
|
|
944
|
-
border-radius:
|
|
944
|
+
border-radius: 4px;
|
|
945
945
|
border: 1px solid var(--neutral-border-overlay-strong);
|
|
946
946
|
cursor: pointer;
|
|
947
947
|
}
|
|
948
|
-
.
|
|
948
|
+
._checkbox_1expy_1:hover:not(:disabled) {
|
|
949
949
|
background: var(--neutral-fill-overlay-lowest-hover);
|
|
950
950
|
}
|
|
951
|
-
.
|
|
951
|
+
._checkbox_1expy_1:disabled {
|
|
952
952
|
background: var(--neutral-container-highest);
|
|
953
953
|
cursor: not-allowed;
|
|
954
954
|
border: 1px solid var(--neutral-border-overlay-strong);
|
|
955
955
|
}
|
|
956
|
-
.
|
|
956
|
+
._checkbox_1expy_1:disabled > span {
|
|
957
957
|
background: none;
|
|
958
958
|
}
|
|
959
|
-
.
|
|
959
|
+
._checkbox_1expy_1:disabled > span > svg > path {
|
|
960
960
|
fill: var(--neutral-label-tertiary);
|
|
961
961
|
}
|
|
962
|
-
.
|
|
962
|
+
._checkbox_1expy_1[aria-checked=true]:not(:disabled) {
|
|
963
963
|
border: none;
|
|
964
964
|
}
|
|
965
|
-
.
|
|
965
|
+
._checkbox_1expy_1[aria-checked=true]:hover:not(:disabled) > span {
|
|
966
966
|
background: var(--inverse-container-static-high-hover);
|
|
967
967
|
}
|
|
968
|
-
.
|
|
968
|
+
._checkbox_1expy_1 [aria-checked=true]:disabled > span {
|
|
969
969
|
background: none;
|
|
970
970
|
}
|
|
971
|
-
._checkbox-
|
|
971
|
+
._checkbox-indicator_1expy_39 {
|
|
972
972
|
display: flex;
|
|
973
973
|
align-items: center;
|
|
974
974
|
justify-content: center;
|
|
975
|
-
border-radius:
|
|
975
|
+
border-radius: 4px;
|
|
976
976
|
background: var(--inverse-container-static-high);
|
|
977
977
|
}
|
|
978
|
-
._label-
|
|
978
|
+
._label-wrapper_1expy_47 {
|
|
979
979
|
display: flex;
|
|
980
980
|
flex-direction: column;
|
|
981
981
|
gap: var(--lp-sys-gap-positive-200);
|
|
982
982
|
}
|
|
983
|
-
.
|
|
983
|
+
._description_1expy_53 {
|
|
984
984
|
color: var(--neutral-label-secondary);
|
|
985
985
|
}
|
|
986
|
-
.
|
|
986
|
+
._description_1expy_53:has([disabled]) {
|
|
987
987
|
color: var(--neutral-label-tertiary);
|
|
988
988
|
}
|
|
989
989
|
|
package/lib/index.d.ts
CHANGED
|
@@ -336,6 +336,7 @@ declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & reac
|
|
|
336
336
|
|
|
337
337
|
interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof Checkbox$1.Root> {
|
|
338
338
|
label?: string;
|
|
339
|
+
labelComponent?: ReactNode;
|
|
339
340
|
description?: string;
|
|
340
341
|
}
|
|
341
342
|
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLButtonElement>>;
|
package/lib/index.js
CHANGED
|
@@ -1645,10 +1645,10 @@ import { Checkbox as CheckboxPrimitive } from "radix-ui";
|
|
|
1645
1645
|
|
|
1646
1646
|
// src/components/CheckBox/style.module.scss
|
|
1647
1647
|
var style_module_default9 = {
|
|
1648
|
-
"checkbox": "
|
|
1649
|
-
"checkbox-indicator": "_checkbox-
|
|
1650
|
-
"label-wrapper": "_label-
|
|
1651
|
-
"description": "
|
|
1648
|
+
"checkbox": "_checkbox_1expy_1",
|
|
1649
|
+
"checkbox-indicator": "_checkbox-indicator_1expy_39",
|
|
1650
|
+
"label-wrapper": "_label-wrapper_1expy_47",
|
|
1651
|
+
"description": "_description_1expy_53"
|
|
1652
1652
|
};
|
|
1653
1653
|
|
|
1654
1654
|
// src/components/CheckBox/index.tsx
|
|
@@ -1739,11 +1739,11 @@ Label.displayName = "Label";
|
|
|
1739
1739
|
import { IconCheckMark } from "@liner-fe/icon";
|
|
1740
1740
|
import { Fragment as Fragment4, jsx as jsx15, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1741
1741
|
var Checkbox = forwardRef12(
|
|
1742
|
-
({ className, label, description, ...props }, ref) => {
|
|
1742
|
+
({ className, label, labelComponent, description, ...props }, ref) => {
|
|
1743
1743
|
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs6(Label, { position: "right", htmlFor: props.id, children: [
|
|
1744
|
-
/* @__PURE__ */ jsxs6("div", { className: style_module_default9["label-wrapper"], children: [
|
|
1744
|
+
labelComponent ? labelComponent : /* @__PURE__ */ jsxs6("div", { className: style_module_default9["label-wrapper"], children: [
|
|
1745
1745
|
label,
|
|
1746
|
-
/* @__PURE__ */ jsx15(Paragraph, { className: style_module_default9.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
1746
|
+
description && /* @__PURE__ */ jsx15(Paragraph, { className: style_module_default9.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
1747
1747
|
] }),
|
|
1748
1748
|
children
|
|
1749
1749
|
] }) : /* @__PURE__ */ jsx15(Fragment4, { children }), "CheckboxWrapper");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liner-fe/prism",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.47",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"dependencies": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"recoil": "^0.5.2",
|
|
20
20
|
"@liner-fe/design-token": "^2.5.35",
|
|
21
21
|
"@liner-fe/design-token-primitive": "^0.2.34",
|
|
22
|
-
"@liner-fe/icon": "^0.2.
|
|
22
|
+
"@liner-fe/icon": "^0.2.42",
|
|
23
23
|
"@liner-fe/illust": "^0.2.10"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|