@liner-fe/prism 2.6.4 → 2.6.6

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 CHANGED
@@ -1372,19 +1372,25 @@
1372
1372
  }
1373
1373
 
1374
1374
  /* esbuild-sass-plugin:css-chunk:src/components/Textfield/style.module.scss */
1375
- ._textfield-container_15lqz_1 {
1375
+ ._textfield-container_ogykf_1 {
1376
1376
  display: flex;
1377
1377
  flex-direction: column;
1378
1378
  gap: var(--lp-sys-gap-positive-200);
1379
1379
  width: 100%;
1380
1380
  }
1381
- ._textfield-container_15lqz_1:has(:disabled) {
1382
- cursor: not-allowed;
1381
+ ._textfield-container_ogykf_1:hover > ._textfield_ogykf_1 {
1382
+ outline: 1px solid var(--neutral-border-opaque-strong);
1383
1383
  }
1384
- ._textfield-container_15lqz_1:has(:disabled) * {
1384
+ ._textfield-container_ogykf_1[data-disabled=true] {
1385
1385
  cursor: not-allowed;
1386
1386
  }
1387
- ._textfield_15lqz_1 {
1387
+ ._textfield-container_ogykf_1[data-disabled=true] > * {
1388
+ cursor: not-allowed !important;
1389
+ }
1390
+ ._textfield-container_ogykf_1[data-disabled=true] > ._textfield_ogykf_1 {
1391
+ outline: 1px solid var(--neutral-border-opaque-normal) !important;
1392
+ }
1393
+ ._textfield_ogykf_1 {
1388
1394
  box-sizing: border-box;
1389
1395
  position: relative;
1390
1396
  width: 100%;
@@ -1395,46 +1401,53 @@
1395
1401
  cursor: text;
1396
1402
  transition: ease-out all 0.1s;
1397
1403
  }
1398
- ._textfield_15lqz_1:hover {
1399
- outline: 1px solid var(--neutral-border-opaque-strong);
1400
- }
1401
- ._textfield_15lqz_1:focus-within {
1404
+ ._textfield_ogykf_1:focus-within {
1402
1405
  outline: 2px solid var(--neutral-border-opaque-strong);
1403
1406
  }
1404
- ._textfield_15lqz_1:has(:disabled) {
1407
+ ._textfield_ogykf_1:disabled {
1405
1408
  outline: 1px solid var(--neutral-border-opaque-subtle);
1406
1409
  cursor: not-allowed;
1407
1410
  }
1408
- ._textfield_15lqz_1:has(:disabled) > ._label_15lqz_35 {
1411
+ ._textfield_ogykf_1:disabled > ._label_ogykf_38 {
1409
1412
  color: var(--neutral-label-tertiary);
1410
1413
  cursor: not-allowed;
1411
1414
  }
1412
- ._textfield_15lqz_1._label-out-textfield_15lqz_39 {
1415
+ ._textfield_ogykf_1._label-out-textfield_ogykf_42 {
1413
1416
  height: 52px;
1414
1417
  margin-top: 24px;
1415
1418
  }
1416
- ._textfield_15lqz_1._white_15lqz_43 {
1419
+ ._textfield_ogykf_1._white_ogykf_46 {
1417
1420
  background: var(--neutral-container-lowest);
1418
1421
  }
1419
- ._textfield_15lqz_1._gray_15lqz_46 {
1422
+ ._textfield_ogykf_1._gray_ogykf_49 {
1420
1423
  background: var(--neutral-container-mid);
1421
1424
  }
1422
- ._label_15lqz_35 {
1425
+ ._label_ogykf_38 {
1423
1426
  position: absolute;
1424
1427
  left: 0;
1425
1428
  top: 0;
1426
1429
  color: var(--neutral-label-secondary);
1427
1430
  cursor: text;
1428
1431
  }
1429
- ._label-in_15lqz_58 {
1432
+ ._label-in_ogykf_61 {
1430
1433
  transform-origin: left top;
1431
1434
  transform: translate(var(--lp-sys-padding-component-400), 100%) scale(1);
1432
1435
  transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
1433
1436
  }
1434
- ._label-out_15lqz_39 {
1437
+ ._label-out_ogykf_42 {
1435
1438
  transform: translateY(-150%);
1436
1439
  }
1437
- ._input-wrapper_15lqz_68 {
1440
+ ._label-visually-hidden_ogykf_71 {
1441
+ position: absolute;
1442
+ width: 1px;
1443
+ height: 1px;
1444
+ overflow: hidden;
1445
+ margin: -1px;
1446
+ clip: rect(0 0 0 0);
1447
+ white-space: nowrap;
1448
+ border: 0;
1449
+ }
1450
+ ._input-wrapper_ogykf_82 {
1438
1451
  display: flex;
1439
1452
  align-items: center;
1440
1453
  justify-content: space-between;
@@ -1442,7 +1455,7 @@
1442
1455
  height: 100%;
1443
1456
  gap: var(--lp-sys-gap-positive-300);
1444
1457
  }
1445
- ._input_15lqz_68 {
1458
+ ._input_ogykf_82 {
1446
1459
  background: transparent;
1447
1460
  border: none;
1448
1461
  outline: none;
@@ -1456,68 +1469,68 @@
1456
1469
  font-weight: var(--lp-pri-font-weight-400);
1457
1470
  line-height: 130%;
1458
1471
  }
1459
- ._input_15lqz_68:focus + ._label-in_15lqz_58,
1460
- ._input_15lqz_68:not(:placeholder-shown) + ._label-in_15lqz_58 {
1472
+ ._input_ogykf_82:focus + ._label-in_ogykf_61,
1473
+ ._input_ogykf_82:not(:placeholder-shown) + ._label-in_ogykf_61 {
1461
1474
  transform: translate(var(--lp-sys-padding-component-400), 60%) scale(0.8);
1462
1475
  font-weight: var(--lp-pri-font-weight-500);
1463
1476
  color: var(--neutral-label-primary);
1464
1477
  }
1465
- ._input_15lqz_68::placeholder {
1478
+ ._input_ogykf_82::placeholder {
1466
1479
  color: var(--neutral-label-tertiary);
1467
1480
  font-size: var(--lp-pri-font-size-15);
1468
1481
  font-style: normal;
1469
1482
  font-weight: var(--lp-pri-font-weight-400);
1470
1483
  line-height: 130%;
1471
1484
  }
1472
- ._label-out-input_15lqz_104 {
1485
+ ._label-out-input_ogykf_118 {
1473
1486
  transform: translateY(0);
1474
1487
  }
1475
- ._input-action-buttons_15lqz_108 {
1488
+ ._input-action-buttons_ogykf_122 {
1476
1489
  display: flex;
1477
1490
  align-items: center;
1478
1491
  gap: var(--lp-sys-gap-positive-50);
1479
1492
  }
1480
- ._action-button_15lqz_114 {
1493
+ ._action-button_ogykf_128 {
1481
1494
  margin-right: var(--lp-sys-padding-component-100);
1482
1495
  }
1483
- ._action-button_15lqz_114 > svg > circle {
1496
+ ._action-button_ogykf_128 > svg > circle {
1484
1497
  fill: var(--neutral-label-secondary);
1485
1498
  }
1486
- ._error_15lqz_121 {
1499
+ ._error_ogykf_135 {
1487
1500
  display: block;
1488
1501
  outline: 2px solid var(--function-label-negative);
1489
1502
  }
1490
- ._error_15lqz_121 > ._input_15lqz_68 + ._label_15lqz_35 {
1503
+ ._error_ogykf_135 > ._input_ogykf_82 + ._label_ogykf_38 {
1491
1504
  color: var(--function-label-negative);
1492
1505
  }
1493
- ._error_15lqz_121:hover {
1506
+ ._error_ogykf_135:hover {
1494
1507
  outline: 2px solid var(--function-label-negative);
1495
1508
  }
1496
- ._error_15lqz_121:focus-within {
1509
+ ._error_ogykf_135:focus-within {
1497
1510
  outline: 2px solid var(--function-label-negative);
1498
1511
  }
1499
- ._error_15lqz_121:focus-within > ._label_15lqz_35 {
1512
+ ._error_ogykf_135:focus-within > ._label_ogykf_38 {
1500
1513
  color: var(--function-label-negative);
1501
1514
  }
1502
- ._error_15lqz_121 > div > ._error-message_15lqz_137 {
1515
+ ._error_ogykf_135 > div > ._error-message_ogykf_151 {
1503
1516
  color: var(--function-label-negative);
1504
1517
  }
1505
- ._error-wrapper_15lqz_141 {
1518
+ ._error-wrapper_ogykf_155 {
1506
1519
  display: flex;
1507
1520
  align-items: flex-end;
1508
1521
  gap: 4px;
1509
1522
  }
1510
- ._error-wrapper_15lqz_141 > ._error-message_15lqz_137 {
1523
+ ._error-wrapper_ogykf_155 > ._error-message_ogykf_151 {
1511
1524
  color: var(--function-label-negative);
1512
1525
  }
1513
- ._footer_15lqz_150 {
1526
+ ._footer_ogykf_164 {
1514
1527
  display: flex;
1515
1528
  justify-content: space-between;
1516
1529
  align-items: center;
1517
1530
  gap: 8px;
1518
1531
  min-height: var(--lp-sys-icon-size-xs);
1519
1532
  }
1520
- ._character_15lqz_158 {
1533
+ ._character_ogykf_172 {
1521
1534
  color: var(--neutral-label-secondary);
1522
1535
  }
1523
1536
 
@@ -1937,6 +1950,136 @@
1937
1950
  margin-left: var(--lp-sys-padding-component-150);
1938
1951
  }
1939
1952
 
1953
+ /* esbuild-sass-plugin:css-chunk:src/components/Snackbar/style.module.scss */
1954
+ ._Viewport_1hil0_1 {
1955
+ --viewport-padding: 25px;
1956
+ position: fixed;
1957
+ bottom: 0;
1958
+ right: 0;
1959
+ display: flex;
1960
+ flex-direction: column;
1961
+ padding: var(--viewport-padding);
1962
+ gap: 10px;
1963
+ max-width: 400px;
1964
+ margin: 0;
1965
+ list-style: none;
1966
+ z-index: 2147483647;
1967
+ outline: none;
1968
+ }
1969
+ @media (max-width: 500px) {
1970
+ ._Viewport_1hil0_1 {
1971
+ max-width: calc(100vw - 50px);
1972
+ }
1973
+ }
1974
+ ._NavigationWrapper_1hil0_22 {
1975
+ display: flex;
1976
+ align-items: center;
1977
+ justify-content: space-between;
1978
+ cursor: pointer;
1979
+ }
1980
+ ._Wrapper_1hil0_29 {
1981
+ display: flex;
1982
+ align-items: center;
1983
+ justify-content: space-between;
1984
+ }
1985
+ ._Root_1hil0_35 {
1986
+ padding: var(--lp-sys-padding-component-400);
1987
+ border-radius: var(--lp-sys-radius-m);
1988
+ background: var(--inverse-container-static-high);
1989
+ position: relative;
1990
+ }
1991
+ ._Root_1hil0_35:hover ._CloseButton_1hil0_41 {
1992
+ display: flex !important;
1993
+ }
1994
+ ._CloseButton_1hil0_41 {
1995
+ position: absolute;
1996
+ top: -8px;
1997
+ right: -8px;
1998
+ display: none !important;
1999
+ }
2000
+ ._Content_1hil0_52 {
2001
+ display: flex;
2002
+ flex-direction: column;
2003
+ gap: var(--lp-sys-gap-positive-100);
2004
+ }
2005
+ ._MarginRight12_1hil0_58 {
2006
+ margin-right: var(--lp-pri-size-12);
2007
+ }
2008
+ ._ContentWrapper_1hil0_62 {
2009
+ display: flex;
2010
+ align-items: center;
2011
+ gap: var(--lp-sys-gap-positive-200);
2012
+ }
2013
+ ._gap300_1hil0_68 {
2014
+ display: flex;
2015
+ flex-direction: column;
2016
+ gap: var(--lp-sys-gap-positive-300);
2017
+ }
2018
+ ._minWidth32_1hil0_74 {
2019
+ min-width: 32px;
2020
+ min-height: 32px;
2021
+ }
2022
+ ._minWidth24_1hil0_79 {
2023
+ min-width: 24px;
2024
+ min-height: 24px;
2025
+ }
2026
+ ._JustifyEnd_1hil0_84 {
2027
+ justify-content: end;
2028
+ }
2029
+ ._Root_1hil0_35[data-state=open] {
2030
+ animation: _slideIn_1hil0_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
2031
+ }
2032
+ ._Root_1hil0_35[data-state=closed] {
2033
+ animation: _hide_1hil0_1 100ms ease-in;
2034
+ }
2035
+ ._Root_1hil0_35[data-swipe=move] {
2036
+ transform: translateX(var(--radix-toast-swipe-move-x));
2037
+ }
2038
+ ._Root_1hil0_35[data-swipe=cancel] {
2039
+ transform: translateX(0);
2040
+ transition: transform 200ms ease-out;
2041
+ }
2042
+ ._Root_1hil0_35[data-swipe=end] {
2043
+ animation: _swipeOut_1hil0_1 100ms ease-out;
2044
+ }
2045
+ @keyframes _hide_1hil0_1 {
2046
+ from {
2047
+ opacity: 1;
2048
+ }
2049
+ to {
2050
+ opacity: 0;
2051
+ }
2052
+ }
2053
+ @keyframes _slideIn_1hil0_1 {
2054
+ from {
2055
+ transform: translateX(calc(100% + var(--viewport-padding)));
2056
+ }
2057
+ to {
2058
+ transform: translateX(0);
2059
+ }
2060
+ }
2061
+ @keyframes _swipeOut_1hil0_1 {
2062
+ from {
2063
+ transform: translateX(var(--radix-toast-swipe-end-x));
2064
+ }
2065
+ to {
2066
+ transform: translateX(calc(100% + var(--viewport-padding)));
2067
+ }
2068
+ }
2069
+
2070
+ /* esbuild-sass-plugin:css-chunk:src/components/Snackbar/SnackbarIcon/style.module.scss */
2071
+ ._container_1witc_1 {
2072
+ margin-right: 6px;
2073
+ }
2074
+
2075
+ /* esbuild-sass-plugin:css-chunk:src/components/Snackbar/SnackbarButton/style.module.scss */
2076
+ ._Container_1kn7v_1 {
2077
+ display: flex;
2078
+ align-items: center;
2079
+ gap: var(--lp-sys-gap-positive-400);
2080
+ padding: 0 4px;
2081
+ }
2082
+
1940
2083
  /* esbuild-sass-plugin:css-chunk:src/components/coach-mark/primitive/style.module.scss */
1941
2084
  ._anchor_1pmfi_1 {
1942
2085
  transform: rotate(270deg) translateX(7px);
package/lib/index.d.ts CHANGED
@@ -396,7 +396,7 @@ declare const defaultTextfieldVariants: (props?: ({
396
396
  className?: cva.ClassValue;
397
397
  })) | undefined) => string;
398
398
  type TextfieldButtonProps = Omit<DefaultButtonProps<FillType>, 'size'>;
399
- type TextfieldLabelType = 'in' | 'out';
399
+ type TextfieldLabelType = 'in' | 'out' | 'visually-hidden';
400
400
  interface TextfieldLabelProps {
401
401
  text: string;
402
402
  type?: TextfieldLabelType;
@@ -466,6 +466,44 @@ declare const List: (({ children, className, ...props }: ListRootProps) => react
466
466
  Item: ({ value, text, disabled, icon, onClick }: ItemProps) => react_jsx_runtime.JSX.Element;
467
467
  };
468
468
 
469
+ interface ISnackbarBase extends ToastProps {
470
+ title: string;
471
+ description?: string;
472
+ position?: 'left' | 'right';
473
+ }
474
+ interface ButtonType {
475
+ onClick: () => void;
476
+ text: string;
477
+ }
478
+ interface ISnackbarBasic {
479
+ kind?: 'basic';
480
+ icon?: Pick<IconProps, 'name' | 'fill' | 'thick'>;
481
+ button?: {
482
+ text?: ButtonType;
483
+ basic?: ButtonType;
484
+ };
485
+ }
486
+ interface ISnackbarNavigation {
487
+ kind: 'navigation';
488
+ button: {
489
+ onClick: () => void;
490
+ };
491
+ }
492
+ interface ISnackbarExtended {
493
+ kind: 'extended';
494
+ button?: {
495
+ text?: ButtonType;
496
+ basic?: ButtonType;
497
+ };
498
+ }
499
+ type SnackbarProp = ISnackbarBase & (ISnackbarBasic | ISnackbarNavigation | ISnackbarExtended);
500
+ type SnackbarPropWithId = SnackbarProp & {
501
+ snackbarId: number;
502
+ };
503
+
504
+ declare const Snackbar: () => react_jsx_runtime.JSX.Element;
505
+ declare const SingleSnackbar: (props: SnackbarPropWithId) => react_jsx_runtime.JSX.Element;
506
+
469
507
  declare const defaultLabelVariants: (props?: ({
470
508
  level?: "primary" | "secondary" | undefined;
471
509
  position?: "top" | "right" | undefined;
@@ -637,4 +675,4 @@ interface TagProps extends Omit<IPropsNormalBold, 'type' | 'size' | 'weight'> {
637
675
  }
638
676
  declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLParagraphElement>>;
639
677
 
640
- export { type BaseCoachMarkContentProps, type BasicColorType, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DefaultButton, type DefaultButtonProps, Display, type FillFalseLevelType, type FillLevelType, type FillType, Heading, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, Icon, IconButton, type IconButtonLevelType, type IconButtonProps, type IconColorType, type IconComponent, type IconComponentProps, type IconKey, type IconMapType, type IconProps, type IconSizeKey, type IconSizeType, type ItemProps, Label, List, Loading, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, Radio, Select, type SelectItemProps, type SelectProps, Slider, Tag, TextButton, type TextButtonProps, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, Toaster, Tooltip, Typography, arrayToStyleObject, getIconComponent, iconKeyOptions, iconMap, isEmptyObject, objectToArray, rootMediaStyle, useToast };
678
+ export { type BaseCoachMarkContentProps, type BasicColorType, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DefaultButton, type DefaultButtonProps, Display, type FillFalseLevelType, type FillLevelType, type FillType, Heading, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, Icon, IconButton, type IconButtonLevelType, type IconButtonProps, type IconColorType, type IconComponent, type IconComponentProps, type IconKey, type IconMapType, type IconProps, type IconSizeKey, type IconSizeType, type ItemProps, Label, List, Loading, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, Radio, Select, type SelectItemProps, type SelectProps, SingleSnackbar, Slider, Snackbar, Tag, TextButton, type TextButtonProps, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, Toaster, Tooltip, Typography, arrayToStyleObject, getIconComponent, iconKeyOptions, iconMap, isEmptyObject, objectToArray, rootMediaStyle, useToast };