@liner-fe/prism 1.12.49 → 1.13.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.
@@ -1,12 +1,11 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
+ import { DefaultButtonProps, FillType } from '../Button';
3
4
  import { BasicColorType } from '../../types/color';
4
5
  declare const defaultTextfieldVariants: (props?: ({
5
6
  color?: "neutral-container-lowest" | "neutral-container-mid" | null | undefined;
6
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export interface TextfieldButtonProps {
8
- text?: string;
9
- onClick?: () => void;
8
+ export interface TextfieldButtonProps extends Omit<DefaultButtonProps<FillType>, 'size'> {
10
9
  }
11
10
  export type TextfieldLabelType = 'in' | 'out';
12
11
  interface TextfieldLabelProps {
@@ -14,7 +13,7 @@ interface TextfieldLabelProps {
14
13
  type?: TextfieldLabelType;
15
14
  }
16
15
  export interface TextfieldProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof defaultTextfieldVariants> {
17
- label: TextfieldLabelProps;
16
+ label?: TextfieldLabelProps;
18
17
  value?: string;
19
18
  maxCharacter?: number;
20
19
  error?: string;
package/lib/index.css CHANGED
@@ -954,18 +954,19 @@
954
954
  }
955
955
 
956
956
  /* esbuild-sass-plugin:css-chunk:src/components/Textfield/style.module.scss */
957
- ._textfield-container_ylsn9_1 {
957
+ ._textfield-container_mmkqk_1 {
958
958
  display: flex;
959
959
  flex-direction: column;
960
960
  gap: var(--lp-sys-gap-positive-200);
961
+ width: 100%;
961
962
  }
962
- ._textfield-container_ylsn9_1:has(:disabled) {
963
+ ._textfield-container_mmkqk_1:has(:disabled) {
963
964
  cursor: not-allowed;
964
965
  }
965
- ._textfield-container_ylsn9_1:has(:disabled) * {
966
+ ._textfield-container_mmkqk_1:has(:disabled) * {
966
967
  cursor: not-allowed;
967
968
  }
968
- ._textfield_ylsn9_1 {
969
+ ._textfield_mmkqk_1 {
969
970
  box-sizing: border-box;
970
971
  position: relative;
971
972
  width: 100%;
@@ -976,46 +977,46 @@
976
977
  cursor: text;
977
978
  transition: ease-out all 0.1s;
978
979
  }
979
- ._textfield_ylsn9_1:hover {
980
+ ._textfield_mmkqk_1:hover {
980
981
  outline: 1px solid var(--neutral-border-opaque-strong);
981
982
  }
982
- ._textfield_ylsn9_1:focus-within {
983
+ ._textfield_mmkqk_1:focus-within {
983
984
  outline: 2px solid var(--neutral-border-opaque-strong);
984
985
  }
985
- ._textfield_ylsn9_1:has(:disabled) {
986
+ ._textfield_mmkqk_1:has(:disabled) {
986
987
  outline: 1px solid var(--neutral-border-opaque-subtle);
987
988
  cursor: not-allowed;
988
989
  }
989
- ._textfield_ylsn9_1:has(:disabled) > ._label_ylsn9_34 {
990
+ ._textfield_mmkqk_1:has(:disabled) > ._label_mmkqk_35 {
990
991
  color: var(--neutral-label-tertiary);
991
992
  cursor: not-allowed;
992
993
  }
993
- ._textfield_ylsn9_1._label-out-textfield_ylsn9_38 {
994
+ ._textfield_mmkqk_1._label-out-textfield_mmkqk_39 {
994
995
  height: 52px;
995
996
  margin-top: 24px;
996
997
  }
997
- ._textfield_ylsn9_1._white_ylsn9_42 {
998
+ ._textfield_mmkqk_1._white_mmkqk_43 {
998
999
  background: var(--neutral-container-lowest);
999
1000
  }
1000
- ._textfield_ylsn9_1._gray_ylsn9_45 {
1001
+ ._textfield_mmkqk_1._gray_mmkqk_46 {
1001
1002
  background: var(--neutral-container-mid);
1002
1003
  }
1003
- ._label_ylsn9_34 {
1004
+ ._label_mmkqk_35 {
1004
1005
  position: absolute;
1005
1006
  left: 0;
1006
1007
  top: 0;
1007
1008
  color: var(--neutral-label-secondary);
1008
1009
  cursor: text;
1009
1010
  }
1010
- ._label-in_ylsn9_57 {
1011
+ ._label-in_mmkqk_58 {
1011
1012
  transform-origin: left top;
1012
1013
  transform: translate(var(--lp-sys-padding-component-400), 100%) scale(1);
1013
1014
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
1014
1015
  }
1015
- ._label-out_ylsn9_38 {
1016
+ ._label-out_mmkqk_39 {
1016
1017
  transform: translateY(-150%);
1017
1018
  }
1018
- ._input-wrapper_ylsn9_67 {
1019
+ ._input-wrapper_mmkqk_68 {
1019
1020
  display: flex;
1020
1021
  align-items: center;
1021
1022
  justify-content: space-between;
@@ -1023,7 +1024,7 @@
1023
1024
  height: 100%;
1024
1025
  gap: var(--lp-sys-gap-positive-300);
1025
1026
  }
1026
- ._input_ylsn9_67 {
1027
+ ._input_mmkqk_68 {
1027
1028
  background: transparent;
1028
1029
  border: none;
1029
1030
  outline: none;
@@ -1037,68 +1038,68 @@
1037
1038
  font-weight: var(--lp-pri-font-weight-400);
1038
1039
  line-height: 130%;
1039
1040
  }
1040
- ._input_ylsn9_67:focus + ._label-in_ylsn9_57,
1041
- ._input_ylsn9_67:not(:placeholder-shown) + ._label-in_ylsn9_57 {
1041
+ ._input_mmkqk_68:focus + ._label-in_mmkqk_58,
1042
+ ._input_mmkqk_68:not(:placeholder-shown) + ._label-in_mmkqk_58 {
1042
1043
  transform: translate(var(--lp-sys-padding-component-400), 60%) scale(0.8);
1043
1044
  font-weight: var(--lp-pri-font-weight-500);
1044
1045
  color: var(--neutral-label-primary);
1045
1046
  }
1046
- ._input_ylsn9_67::placeholder {
1047
+ ._input_mmkqk_68::placeholder {
1047
1048
  color: var(--neutral-label-tertiary);
1048
1049
  font-size: var(--lp-pri-font-size-15);
1049
1050
  font-style: normal;
1050
1051
  font-weight: var(--lp-pri-font-weight-400);
1051
1052
  line-height: 130%;
1052
1053
  }
1053
- ._label-out-input_ylsn9_103 {
1054
+ ._label-out-input_mmkqk_104 {
1054
1055
  transform: translateY(0);
1055
1056
  }
1056
- ._input-action-buttons_ylsn9_107 {
1057
+ ._input-action-buttons_mmkqk_108 {
1057
1058
  display: flex;
1058
1059
  align-items: center;
1059
1060
  gap: var(--lp-sys-gap-positive-50);
1060
1061
  }
1061
- ._action-button_ylsn9_113 {
1062
+ ._action-button_mmkqk_114 {
1062
1063
  margin-right: var(--lp-sys-padding-component-100);
1063
1064
  }
1064
- ._action-button_ylsn9_113 > svg > circle {
1065
+ ._action-button_mmkqk_114 > svg > circle {
1065
1066
  fill: var(--neutral-label-secondary);
1066
1067
  }
1067
- ._error_ylsn9_120 {
1068
+ ._error_mmkqk_121 {
1068
1069
  display: block;
1069
1070
  outline: 2px solid var(--function-label-negative);
1070
1071
  }
1071
- ._error_ylsn9_120 > ._input_ylsn9_67 + ._label_ylsn9_34 {
1072
+ ._error_mmkqk_121 > ._input_mmkqk_68 + ._label_mmkqk_35 {
1072
1073
  color: var(--function-label-negative);
1073
1074
  }
1074
- ._error_ylsn9_120:hover {
1075
+ ._error_mmkqk_121:hover {
1075
1076
  outline: 2px solid var(--function-label-negative);
1076
1077
  }
1077
- ._error_ylsn9_120:focus-within {
1078
+ ._error_mmkqk_121:focus-within {
1078
1079
  outline: 2px solid var(--function-label-negative);
1079
1080
  }
1080
- ._error_ylsn9_120:focus-within > ._label_ylsn9_34 {
1081
+ ._error_mmkqk_121:focus-within > ._label_mmkqk_35 {
1081
1082
  color: var(--function-label-negative);
1082
1083
  }
1083
- ._error_ylsn9_120 > div > ._error-message_ylsn9_136 {
1084
+ ._error_mmkqk_121 > div > ._error-message_mmkqk_137 {
1084
1085
  color: var(--function-label-negative);
1085
1086
  }
1086
- ._error-wrapper_ylsn9_140 {
1087
+ ._error-wrapper_mmkqk_141 {
1087
1088
  display: flex;
1088
1089
  align-items: flex-end;
1089
1090
  gap: 4px;
1090
1091
  }
1091
- ._error-wrapper_ylsn9_140 > ._error-message_ylsn9_136 {
1092
+ ._error-wrapper_mmkqk_141 > ._error-message_mmkqk_137 {
1092
1093
  color: var(--function-label-negative);
1093
1094
  }
1094
- ._footer_ylsn9_149 {
1095
+ ._footer_mmkqk_150 {
1095
1096
  display: flex;
1096
1097
  justify-content: space-between;
1097
1098
  align-items: center;
1098
1099
  gap: 8px;
1099
1100
  min-height: var(--lp-sys-icon-size-xs);
1100
1101
  }
1101
- ._character_ylsn9_157 {
1102
+ ._character_mmkqk_158 {
1102
1103
  color: var(--neutral-label-secondary);
1103
1104
  }
1104
1105
 
@@ -1190,7 +1191,7 @@
1190
1191
  }
1191
1192
 
1192
1193
  /* esbuild-sass-plugin:css-chunk:src/components/Select/style.module.scss */
1193
- @-webkit-keyframes _slide-up_1h1x0_1 {
1194
+ @-webkit-keyframes _slide-up_vs1zv_1 {
1194
1195
  0% {
1195
1196
  transform: translateY(3%);
1196
1197
  opacity: 0;
@@ -1200,7 +1201,7 @@
1200
1201
  opacity: 1;
1201
1202
  }
1202
1203
  }
1203
- @keyframes _slide-up_1h1x0_1 {
1204
+ @keyframes _slide-up_vs1zv_1 {
1204
1205
  0% {
1205
1206
  transform: translateY(3%);
1206
1207
  opacity: 0;
@@ -1210,7 +1211,7 @@
1210
1211
  opacity: 1;
1211
1212
  }
1212
1213
  }
1213
- @-webkit-keyframes _slide-down_1h1x0_1 {
1214
+ @-webkit-keyframes _slide-down_vs1zv_1 {
1214
1215
  0% {
1215
1216
  transform: translateY(0);
1216
1217
  opacity: 1;
@@ -1220,7 +1221,7 @@
1220
1221
  opacity: 0;
1221
1222
  }
1222
1223
  }
1223
- @keyframes _slide-down_1h1x0_1 {
1224
+ @keyframes _slide-down_vs1zv_1 {
1224
1225
  0% {
1225
1226
  transform: translateY(0);
1226
1227
  opacity: 1;
@@ -1230,7 +1231,7 @@
1230
1231
  opacity: 0;
1231
1232
  }
1232
1233
  }
1233
- @-webkit-keyframes _slide-in-right_1h1x0_1 {
1234
+ @-webkit-keyframes _slide-in-right_vs1zv_1 {
1234
1235
  0% {
1235
1236
  opacity: 0;
1236
1237
  -webkit-transform: translateX(1000px);
@@ -1242,7 +1243,7 @@
1242
1243
  transform: translateX(0);
1243
1244
  }
1244
1245
  }
1245
- @keyframes _slide-in-right_1h1x0_1 {
1246
+ @keyframes _slide-in-right_vs1zv_1 {
1246
1247
  0% {
1247
1248
  opacity: 0;
1248
1249
  -webkit-transform: translateX(1000px);
@@ -1254,7 +1255,7 @@
1254
1255
  transform: translateX(0);
1255
1256
  }
1256
1257
  }
1257
- @-webkit-keyframes _slide-out-right_1h1x0_1 {
1258
+ @-webkit-keyframes _slide-out-right_vs1zv_1 {
1258
1259
  0% {
1259
1260
  opacity: 1;
1260
1261
  -webkit-transform: translateX(0);
@@ -1266,7 +1267,7 @@
1266
1267
  transform: translateX(1000px);
1267
1268
  }
1268
1269
  }
1269
- @keyframes _slide-out-right_1h1x0_1 {
1270
+ @keyframes _slide-out-right_vs1zv_1 {
1270
1271
  0% {
1271
1272
  opacity: 1;
1272
1273
  -webkit-transform: translateX(0);
@@ -1278,10 +1279,10 @@
1278
1279
  transform: translateX(1000px);
1279
1280
  }
1280
1281
  }
1281
- ._select-label_1h1x0_101 {
1282
+ ._select-label_vs1zv_101 {
1282
1283
  padding-bottom: var(--lp-sys-padding-component-300);
1283
1284
  }
1284
- ._trigger_1h1x0_105 {
1285
+ ._trigger_vs1zv_105 {
1285
1286
  display: flex;
1286
1287
  align-items: center;
1287
1288
  gap: var(--lp-sys-gap-positive-200);
@@ -1294,43 +1295,45 @@
1294
1295
  width: 100%;
1295
1296
  min-width: 0;
1296
1297
  }
1297
- ._trigger_1h1x0_105 > span:not([aria-hidden]) {
1298
+ ._trigger_vs1zv_105 > span:not([aria-hidden]) {
1298
1299
  text-align: left;
1299
1300
  width: 100%;
1300
1301
  overflow: hidden;
1301
1302
  white-space: nowrap;
1302
1303
  text-overflow: ellipsis;
1303
1304
  }
1304
- ._trigger_1h1x0_105 > span[aria-hidden] {
1305
+ ._trigger_vs1zv_105 > span[aria-hidden] {
1305
1306
  flex: 0 1 0;
1306
1307
  }
1307
- ._trigger_1h1x0_105 > span > svg {
1308
+ ._trigger_vs1zv_105 > span > svg {
1308
1309
  transition: transform 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
1309
1310
  }
1310
- ._trigger_1h1x0_105[data-state=open] {
1311
+ ._trigger_vs1zv_105[data-state=open] {
1311
1312
  border-color: var(--neutral-border-opaque-strong);
1312
1313
  }
1313
- ._trigger_1h1x0_105[data-state=open] > span > svg {
1314
+ ._trigger_vs1zv_105[data-state=open] > span > svg {
1314
1315
  transform: rotate(180deg);
1315
1316
  }
1316
- ._trigger_1h1x0_105[data-disabled] {
1317
+ ._trigger_vs1zv_105[data-disabled] {
1317
1318
  pointer-events: none;
1318
1319
  background: var(--neutral-container-low);
1319
1320
  border-color: var(--neutral-border-overlay-normal);
1320
- color: var(--neutral-label-tertiary) !important;
1321
1321
  }
1322
- ._trigger_1h1x0_105[data-disabled] > span > svg > * {
1322
+ ._trigger_vs1zv_105[data-disabled] > span > p {
1323
+ color: var(--neutral-label-tertiary);
1324
+ }
1325
+ ._trigger_vs1zv_105[data-disabled] > span > svg > * {
1323
1326
  fill: var(--neutral-label-tertiary);
1324
1327
  }
1325
- ._placeholder_1h1x0_147 {
1328
+ ._placeholder_vs1zv_149 {
1326
1329
  width: 100%;
1327
1330
  }
1328
- ._openIcon_1h1x0_151 {
1331
+ ._openIcon_vs1zv_153 {
1329
1332
  display: flex;
1330
1333
  align-items: center;
1331
1334
  justify-content: center;
1332
1335
  }
1333
- @keyframes _slide-up_1h1x0_1 {
1336
+ @keyframes _slide-up_vs1zv_1 {
1334
1337
  0% {
1335
1338
  transform: translateY(3%);
1336
1339
  opacity: 0;
@@ -1340,7 +1343,7 @@
1340
1343
  opacity: 1;
1341
1344
  }
1342
1345
  }
1343
- ._desktop-content_1h1x0_167 {
1346
+ ._desktop-content_vs1zv_169 {
1344
1347
  box-sizing: border-box;
1345
1348
  transform: translateX(-0.5%);
1346
1349
  padding: var(--lp-sys-padding-component-200);
@@ -1351,45 +1354,45 @@
1351
1354
  width: var(--radix-select-trigger-width);
1352
1355
  z-index: 10;
1353
1356
  }
1354
- ._desktop-content_1h1x0_167[data-state=open] {
1355
- -webkit-animation: _slide-up_1h1x0_1 0.2s cubic-bezier(0.39, 0.575, 0.565, 1) 0s both;
1356
- animation: _slide-up_1h1x0_1 0.2s cubic-bezier(0.39, 0.575, 0.565, 1) 0s both;
1357
+ ._desktop-content_vs1zv_169[data-state=open] {
1358
+ -webkit-animation: _slide-up_vs1zv_1 0.2s cubic-bezier(0.39, 0.575, 0.565, 1) 0s both;
1359
+ animation: _slide-up_vs1zv_1 0.2s cubic-bezier(0.39, 0.575, 0.565, 1) 0s both;
1357
1360
  }
1358
1361
  @media screen and (max-width: 600px) {
1359
- ._desktop-content_1h1x0_167._responsive_1h1x0_183 {
1362
+ ._desktop-content_vs1zv_169._responsive_vs1zv_185 {
1360
1363
  display: none !important;
1361
1364
  }
1362
1365
  }
1363
- ._header_1h1x0_188 {
1366
+ ._header_vs1zv_190 {
1364
1367
  display: flex;
1365
1368
  align-items: center;
1366
1369
  justify-content: space-between;
1367
1370
  gap: var(--lp-sys-gap-positive-200);
1368
1371
  padding-bottom: var(--lp-sys-padding-component-300);
1369
1372
  }
1370
- ._scrollAreaRoot_1h1x0_196 {
1373
+ ._scrollAreaRoot_vs1zv_198 {
1371
1374
  width: 100%;
1372
1375
  height: 100%;
1373
1376
  }
1374
- ._scrollAreaViewport_1h1x0_201 {
1377
+ ._scrollAreaViewport_vs1zv_203 {
1375
1378
  width: 100%;
1376
1379
  height: 100%;
1377
1380
  max-height: 290px;
1378
1381
  padding-bottom: var(--lp-sys-padding-component-150);
1379
1382
  }
1380
- ._scrollAreaScrollbar_1h1x0_208 {
1383
+ ._scrollAreaScrollbar_vs1zv_210 {
1381
1384
  width: var(--lp-pri-size-4);
1382
1385
  padding: 5px 2px;
1383
1386
  }
1384
- ._scrollAreaThumb_1h1x0_213 {
1387
+ ._scrollAreaThumb_vs1zv_215 {
1385
1388
  background: var(--neutral-fill-high);
1386
1389
  border-radius: var(--radius-xxl);
1387
1390
  }
1388
- ._desktop-label_1h1x0_218 {
1391
+ ._desktop-label_vs1zv_220 {
1389
1392
  padding: var(--lp-sys-padding-component-200);
1390
1393
  padding-bottom: var(--lp-sys-padding-component-150);
1391
1394
  }
1392
- ._item_1h1x0_223 {
1395
+ ._item_vs1zv_225 {
1393
1396
  display: flex;
1394
1397
  align-items: center;
1395
1398
  overflow: hidden;
@@ -1399,29 +1402,29 @@
1399
1402
  border-radius: var(--lp-sys-radius-s);
1400
1403
  padding: var(--lp-sys-padding-component-200);
1401
1404
  }
1402
- ._item_1h1x0_223:focus {
1405
+ ._item_vs1zv_225:focus {
1403
1406
  background: var(--neutral-fill-lowest-hover);
1404
1407
  outline: none;
1405
1408
  }
1406
- ._item_1h1x0_223[data-state=checked] > span > p {
1409
+ ._item_vs1zv_225[data-state=checked] > span > p {
1407
1410
  color: var(--brand-label-primary);
1408
1411
  font-weight: var(--lp-pri-font-weight-700);
1409
1412
  }
1410
- ._item_1h1x0_223[data-disabled] {
1413
+ ._item_vs1zv_225[data-disabled] {
1411
1414
  pointer-events: none;
1412
1415
  }
1413
- ._item_1h1x0_223 > span:nth-child(1) {
1416
+ ._item_vs1zv_225 > span:nth-child(1) {
1414
1417
  overflow: hidden;
1415
1418
  white-space: nowrap;
1416
1419
  text-overflow: ellipsis;
1417
1420
  width: 100%;
1418
1421
  }
1419
- ._icon_1h1x0_251 {
1422
+ ._icon_vs1zv_253 {
1420
1423
  display: flex;
1421
1424
  align-items: center;
1422
1425
  justify-content: center;
1423
1426
  }
1424
- ._itemIndicator_1h1x0_257 {
1427
+ ._itemIndicator_vs1zv_259 {
1425
1428
  display: flex;
1426
1429
  align-items: center;
1427
1430
  justify-content: center;