@liner-fe/prism 3.1.3 → 3.2.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/lib/index.css +109 -239
- package/lib/index.d.ts +33 -87
- package/lib/index.js +404 -1150
- package/package.json +5 -4
package/lib/index.css
CHANGED
|
@@ -463,99 +463,134 @@
|
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
/* esbuild-sass-plugin:css-chunk:src/components/Toast/style.module.scss */
|
|
466
|
-
|
|
467
|
-
from {
|
|
468
|
-
opacity: 1;
|
|
469
|
-
}
|
|
470
|
-
to {
|
|
471
|
-
opacity: 0;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
@keyframes _slideIn_5dhgy_1 {
|
|
475
|
-
from {
|
|
476
|
-
transform: translateY(-100%);
|
|
477
|
-
}
|
|
478
|
-
to {
|
|
479
|
-
transform: translateY(0);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
@keyframes _swipeOut_5dhgy_1 {
|
|
483
|
-
from {
|
|
484
|
-
transform: translateY(0);
|
|
485
|
-
}
|
|
486
|
-
to {
|
|
487
|
-
transform: translateY(-100%);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
._Icon_5dhgy_25 {
|
|
491
|
-
width: fit-content;
|
|
492
|
-
height: 24px;
|
|
493
|
-
}
|
|
494
|
-
@media (max-width: 360px) {
|
|
495
|
-
._TitleText_5dhgy_31 {
|
|
496
|
-
max-width: 227px;
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
._ToastViewport_5dhgy_36 {
|
|
500
|
-
position: fixed;
|
|
501
|
-
top: 29px;
|
|
502
|
-
left: 50%;
|
|
503
|
-
right: 0;
|
|
504
|
-
transform: translateX(-50%);
|
|
466
|
+
._Root_1el8w_1 {
|
|
505
467
|
display: flex;
|
|
506
|
-
flex-direction: column;
|
|
507
468
|
align-items: center;
|
|
508
|
-
gap:
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
469
|
+
gap: 6px;
|
|
470
|
+
padding: 16px;
|
|
471
|
+
border-radius: 8px;
|
|
472
|
+
background-color: var(--inverse-container-static-high);
|
|
473
|
+
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.25);
|
|
474
|
+
box-sizing: border-box;
|
|
475
|
+
min-width: 350px;
|
|
476
|
+
min-height: 70px;
|
|
515
477
|
width: fit-content;
|
|
478
|
+
max-width: 400px;
|
|
516
479
|
}
|
|
517
480
|
@media (max-width: 600px) {
|
|
518
|
-
.
|
|
519
|
-
width:
|
|
481
|
+
._Root_1el8w_1 {
|
|
482
|
+
width: 100%;
|
|
483
|
+
min-width: unset;
|
|
484
|
+
max-width: calc(100vw - 40px);
|
|
520
485
|
}
|
|
521
486
|
}
|
|
522
|
-
.
|
|
523
|
-
background-color: var(--inverse-container-static-high);
|
|
524
|
-
border-radius: 8px;
|
|
525
|
-
box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.2509803922);
|
|
526
|
-
padding: 16px;
|
|
487
|
+
._Icon_1el8w_23 {
|
|
527
488
|
display: flex;
|
|
528
489
|
align-items: center;
|
|
490
|
+
justify-content: center;
|
|
491
|
+
flex-shrink: 0;
|
|
529
492
|
width: fit-content;
|
|
530
|
-
|
|
493
|
+
height: 24px;
|
|
531
494
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
495
|
+
._Content_1el8w_32 {
|
|
496
|
+
display: flex;
|
|
497
|
+
flex-direction: column;
|
|
498
|
+
gap: var(--lp-sys-gap-positive-100);
|
|
499
|
+
flex: 1;
|
|
500
|
+
min-width: 0;
|
|
536
501
|
}
|
|
537
|
-
.
|
|
502
|
+
._Content_1el8w_32 p {
|
|
503
|
+
margin: 0;
|
|
504
|
+
padding: 0;
|
|
505
|
+
}
|
|
506
|
+
._Actions_1el8w_44 {
|
|
538
507
|
display: flex;
|
|
539
508
|
align-items: center;
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
509
|
+
gap: var(--lp-sys-gap-positive-200);
|
|
510
|
+
flex-shrink: 0;
|
|
511
|
+
}
|
|
512
|
+
._Spinner_1el8w_51 {
|
|
513
|
+
display: inline-block;
|
|
514
|
+
position: relative;
|
|
515
|
+
width: 24px;
|
|
516
|
+
height: 24px;
|
|
517
|
+
color: var(--inverse-label-static-primary);
|
|
518
|
+
}
|
|
519
|
+
._Spinner_1el8w_51 div {
|
|
520
|
+
transform-origin: 12px 12px;
|
|
521
|
+
animation: _lds-spinner_1el8w_1 1.2s linear infinite;
|
|
522
|
+
}
|
|
523
|
+
._Spinner_1el8w_51 div::after {
|
|
524
|
+
content: "";
|
|
525
|
+
display: block;
|
|
526
|
+
position: absolute;
|
|
527
|
+
top: 1px;
|
|
528
|
+
left: 11px;
|
|
529
|
+
width: 2px;
|
|
530
|
+
height: 5.5px;
|
|
531
|
+
border-radius: 20%;
|
|
532
|
+
background: currentColor;
|
|
533
|
+
}
|
|
534
|
+
._Spinner_1el8w_51 div:nth-child(1) {
|
|
535
|
+
transform: rotate(0deg);
|
|
536
|
+
animation-delay: -1.2s;
|
|
537
|
+
}
|
|
538
|
+
._Spinner_1el8w_51 div:nth-child(2) {
|
|
539
|
+
transform: rotate(30deg);
|
|
540
|
+
animation-delay: -1.1s;
|
|
541
|
+
}
|
|
542
|
+
._Spinner_1el8w_51 div:nth-child(3) {
|
|
543
|
+
transform: rotate(60deg);
|
|
544
|
+
animation-delay: -1s;
|
|
545
|
+
}
|
|
546
|
+
._Spinner_1el8w_51 div:nth-child(4) {
|
|
547
|
+
transform: rotate(90deg);
|
|
548
|
+
animation-delay: -0.9s;
|
|
543
549
|
}
|
|
544
|
-
.
|
|
545
|
-
|
|
550
|
+
._Spinner_1el8w_51 div:nth-child(5) {
|
|
551
|
+
transform: rotate(120deg);
|
|
552
|
+
animation-delay: -0.8s;
|
|
546
553
|
}
|
|
547
|
-
.
|
|
548
|
-
|
|
554
|
+
._Spinner_1el8w_51 div:nth-child(6) {
|
|
555
|
+
transform: rotate(150deg);
|
|
556
|
+
animation-delay: -0.7s;
|
|
549
557
|
}
|
|
550
|
-
.
|
|
551
|
-
transform:
|
|
558
|
+
._Spinner_1el8w_51 div:nth-child(7) {
|
|
559
|
+
transform: rotate(180deg);
|
|
560
|
+
animation-delay: -0.6s;
|
|
561
|
+
}
|
|
562
|
+
._Spinner_1el8w_51 div:nth-child(8) {
|
|
563
|
+
transform: rotate(210deg);
|
|
564
|
+
animation-delay: -0.5s;
|
|
565
|
+
}
|
|
566
|
+
._Spinner_1el8w_51 div:nth-child(9) {
|
|
567
|
+
transform: rotate(240deg);
|
|
568
|
+
animation-delay: -0.4s;
|
|
552
569
|
}
|
|
553
|
-
.
|
|
554
|
-
transform:
|
|
555
|
-
|
|
570
|
+
._Spinner_1el8w_51 div:nth-child(10) {
|
|
571
|
+
transform: rotate(270deg);
|
|
572
|
+
animation-delay: -0.3s;
|
|
556
573
|
}
|
|
557
|
-
.
|
|
558
|
-
|
|
574
|
+
._Spinner_1el8w_51 div:nth-child(11) {
|
|
575
|
+
transform: rotate(300deg);
|
|
576
|
+
animation-delay: -0.2s;
|
|
577
|
+
}
|
|
578
|
+
._Spinner_1el8w_51 div:nth-child(12) {
|
|
579
|
+
transform: rotate(330deg);
|
|
580
|
+
animation-delay: -0.1s;
|
|
581
|
+
}
|
|
582
|
+
@keyframes _lds-spinner_1el8w_1 {
|
|
583
|
+
0% {
|
|
584
|
+
opacity: 1;
|
|
585
|
+
}
|
|
586
|
+
100% {
|
|
587
|
+
opacity: 0;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
@media (prefers-reduced-motion: reduce) {
|
|
591
|
+
._Spinner_1el8w_51 div {
|
|
592
|
+
animation: none;
|
|
593
|
+
}
|
|
559
594
|
}
|
|
560
595
|
|
|
561
596
|
/* esbuild-sass-plugin:css-chunk:src/components/Typography/Set/style.module.scss */
|
|
@@ -1482,159 +1517,6 @@
|
|
|
1482
1517
|
margin-left: var(--lp-sys-padding-component-150);
|
|
1483
1518
|
}
|
|
1484
1519
|
|
|
1485
|
-
/* esbuild-sass-plugin:css-chunk:src/components/Snackbar/style.module.scss */
|
|
1486
|
-
._Viewport_1q9l5_1 {
|
|
1487
|
-
--viewport-padding: 25px;
|
|
1488
|
-
position: fixed;
|
|
1489
|
-
bottom: 0;
|
|
1490
|
-
display: flex;
|
|
1491
|
-
flex-direction: column;
|
|
1492
|
-
padding: var(--viewport-padding);
|
|
1493
|
-
gap: 10px;
|
|
1494
|
-
max-width: 400px;
|
|
1495
|
-
margin: 0;
|
|
1496
|
-
list-style: none;
|
|
1497
|
-
z-index: 2147483647;
|
|
1498
|
-
outline: none;
|
|
1499
|
-
}
|
|
1500
|
-
@media (max-width: 500px) {
|
|
1501
|
-
._Viewport_1q9l5_1 {
|
|
1502
|
-
max-width: calc(100vw - 50px);
|
|
1503
|
-
}
|
|
1504
|
-
}
|
|
1505
|
-
._ViewportRight_1q9l5_21 {
|
|
1506
|
-
right: var(--right-distance, 0px);
|
|
1507
|
-
}
|
|
1508
|
-
._ViewportLeft_1q9l5_25 {
|
|
1509
|
-
left: var(--left-distance, 0px);
|
|
1510
|
-
}
|
|
1511
|
-
._extendedContainer_1q9l5_29 {
|
|
1512
|
-
min-width: 320px;
|
|
1513
|
-
}
|
|
1514
|
-
._NavigationWrapper_1q9l5_33 {
|
|
1515
|
-
display: flex;
|
|
1516
|
-
align-items: center;
|
|
1517
|
-
justify-content: space-between;
|
|
1518
|
-
cursor: pointer;
|
|
1519
|
-
}
|
|
1520
|
-
._Wrapper_1q9l5_40 {
|
|
1521
|
-
display: flex;
|
|
1522
|
-
align-items: center;
|
|
1523
|
-
justify-content: space-between;
|
|
1524
|
-
}
|
|
1525
|
-
._Root_1q9l5_46 {
|
|
1526
|
-
padding: var(--lp-sys-padding-component-400);
|
|
1527
|
-
border-radius: var(--lp-sys-radius-m);
|
|
1528
|
-
background: var(--inverse-container-static-high);
|
|
1529
|
-
position: relative;
|
|
1530
|
-
}
|
|
1531
|
-
._Root_1q9l5_46:hover ._CloseButton_1q9l5_52 {
|
|
1532
|
-
display: flex !important;
|
|
1533
|
-
}
|
|
1534
|
-
._CloseButton_1q9l5_52 {
|
|
1535
|
-
position: absolute;
|
|
1536
|
-
top: -8px;
|
|
1537
|
-
right: -8px;
|
|
1538
|
-
display: none !important;
|
|
1539
|
-
}
|
|
1540
|
-
._Content_1q9l5_63 {
|
|
1541
|
-
display: flex;
|
|
1542
|
-
flex-direction: column;
|
|
1543
|
-
gap: var(--lp-sys-gap-positive-100);
|
|
1544
|
-
}
|
|
1545
|
-
._MarginRight12_1q9l5_69 {
|
|
1546
|
-
margin-right: var(--lp-pri-size-12);
|
|
1547
|
-
}
|
|
1548
|
-
._ContentWrapper_1q9l5_73 {
|
|
1549
|
-
display: flex;
|
|
1550
|
-
align-items: center;
|
|
1551
|
-
gap: var(--lp-sys-gap-positive-200);
|
|
1552
|
-
}
|
|
1553
|
-
._gap300_1q9l5_79 {
|
|
1554
|
-
display: flex;
|
|
1555
|
-
flex-direction: column;
|
|
1556
|
-
gap: var(--lp-sys-gap-positive-300);
|
|
1557
|
-
}
|
|
1558
|
-
._minWidth32_1q9l5_85 {
|
|
1559
|
-
min-width: 32px;
|
|
1560
|
-
min-height: 32px;
|
|
1561
|
-
}
|
|
1562
|
-
._minWidth24_1q9l5_90 {
|
|
1563
|
-
min-width: 24px;
|
|
1564
|
-
min-height: 24px;
|
|
1565
|
-
}
|
|
1566
|
-
._JustifyEnd_1q9l5_95 {
|
|
1567
|
-
justify-content: end;
|
|
1568
|
-
}
|
|
1569
|
-
._Root_1q9l5_46[data-state=open] {
|
|
1570
|
-
animation: _slideIn_1q9l5_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1571
|
-
}
|
|
1572
|
-
._Root_1q9l5_46[data-state=closed] {
|
|
1573
|
-
animation: _hide_1q9l5_1 100ms ease-in;
|
|
1574
|
-
}
|
|
1575
|
-
._Root_1q9l5_46[data-swipe=move] {
|
|
1576
|
-
transform: translateX(var(--radix-toast-swipe-move-x));
|
|
1577
|
-
}
|
|
1578
|
-
._Root_1q9l5_46[data-swipe=cancel] {
|
|
1579
|
-
transform: translateX(0);
|
|
1580
|
-
transition: transform 200ms ease-out;
|
|
1581
|
-
}
|
|
1582
|
-
._Root_1q9l5_46[data-swipe=end] {
|
|
1583
|
-
animation: _swipeOut_1q9l5_1 100ms ease-out;
|
|
1584
|
-
}
|
|
1585
|
-
._ViewportLeft_1q9l5_25 ._Root_1q9l5_46[data-state=open] {
|
|
1586
|
-
animation: _slideInLeft_1q9l5_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1587
|
-
}
|
|
1588
|
-
._ViewportLeft_1q9l5_25 ._Root_1q9l5_46[data-swipe=end] {
|
|
1589
|
-
animation: _swipeOutLeft_1q9l5_1 100ms ease-out;
|
|
1590
|
-
}
|
|
1591
|
-
@keyframes _hide_1q9l5_1 {
|
|
1592
|
-
from {
|
|
1593
|
-
opacity: 1;
|
|
1594
|
-
}
|
|
1595
|
-
to {
|
|
1596
|
-
opacity: 0;
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
@keyframes _slideIn_1q9l5_1 {
|
|
1600
|
-
from {
|
|
1601
|
-
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
1602
|
-
}
|
|
1603
|
-
to {
|
|
1604
|
-
transform: translateX(0);
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
@keyframes _slideInLeft_1q9l5_1 {
|
|
1608
|
-
from {
|
|
1609
|
-
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
1610
|
-
}
|
|
1611
|
-
to {
|
|
1612
|
-
transform: translateX(0);
|
|
1613
|
-
}
|
|
1614
|
-
}
|
|
1615
|
-
@keyframes _swipeOut_1q9l5_1 {
|
|
1616
|
-
from {
|
|
1617
|
-
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
1618
|
-
}
|
|
1619
|
-
to {
|
|
1620
|
-
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
@keyframes _swipeOutLeft_1q9l5_1 {
|
|
1624
|
-
from {
|
|
1625
|
-
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
1626
|
-
}
|
|
1627
|
-
to {
|
|
1628
|
-
transform: translateX(calc(-100% - var(--viewport-padding)));
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
/* esbuild-sass-plugin:css-chunk:src/components/Snackbar/SnackbarIcon/style.module.scss */
|
|
1633
|
-
._container_1jxdi_1 {
|
|
1634
|
-
margin-right: 6px;
|
|
1635
|
-
flex-shrink: 0;
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
1520
|
/* esbuild-sass-plugin:css-chunk:src/components/TextButton/style.module.scss */
|
|
1639
1521
|
._button_zsyf9_1 {
|
|
1640
1522
|
position: relative;
|
|
@@ -1694,18 +1576,6 @@
|
|
|
1694
1576
|
justify-content: center;
|
|
1695
1577
|
}
|
|
1696
1578
|
|
|
1697
|
-
/* esbuild-sass-plugin:css-chunk:src/components/Snackbar/SnackbarButton/style.module.scss */
|
|
1698
|
-
._Container_4sip5_1 {
|
|
1699
|
-
display: flex;
|
|
1700
|
-
align-items: center;
|
|
1701
|
-
gap: var(--lp-sys-gap-positive-400);
|
|
1702
|
-
padding: 0 4px;
|
|
1703
|
-
flex-shrink: 0;
|
|
1704
|
-
}
|
|
1705
|
-
._button_4sip5_9 p {
|
|
1706
|
-
margin: 0;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
1579
|
/* esbuild-sass-plugin:css-chunk:src/components/coach-mark/primitive/style.module.scss */
|
|
1710
1580
|
._anchor_1d9jc_1 {
|
|
1711
1581
|
transform: rotate(270deg) translateX(7px);
|
package/lib/index.d.ts
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { SystemKeys, TypographyCaptionPrefix, TypographyParagraphPrefix, TypographyHeadingPrefix, TypographyTitlePrefix, TypographyDisplayPrefix, BasicColorType } from '@liner-fe/design-token-primitive';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ButtonHTMLAttributes,
|
|
3
|
+
import react__default, { ButtonHTMLAttributes, HTMLAttributes, JSX, ReactNode, ComponentPropsWithoutRef, InputHTMLAttributes, ComponentProps, LiHTMLAttributes, MouseEventHandler } from 'react';
|
|
4
4
|
import * as cva from 'cva';
|
|
5
5
|
import { VariantProps } from 'cva';
|
|
6
6
|
import { IconProps, IconComponentType } from '@liner-fe/icon';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
-
import { Toast, Popover as Popover$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, RadioGroup, Select as Select$1, Label as Label$1 } from 'radix-ui';
|
|
9
8
|
import * as _artsy_fresnel_dist_Media from '@artsy/fresnel/dist/Media';
|
|
10
9
|
import { breakpointOrigin } from '@liner-fe/design-token';
|
|
11
|
-
import
|
|
10
|
+
import { Popover as Popover$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, RadioGroup, Select as Select$1, Label as Label$1 } from 'radix-ui';
|
|
12
11
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
13
12
|
import { PopoverProps, PopoverPortalProps } from '@radix-ui/react-popover';
|
|
14
13
|
import { IllustProps } from '@liner-fe/illust';
|
|
@@ -55,39 +54,37 @@ type ButtonProps = DefaultButtonProps;
|
|
|
55
54
|
declare const DefaultButton: react.ForwardRefExoticComponent<DefaultButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
56
55
|
declare const Button: react.ForwardRefExoticComponent<DefaultButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
57
56
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
};
|
|
88
|
-
endLoading: (toastId: number) => void;
|
|
89
|
-
setMessage: (toastId: number, message: string) => void;
|
|
57
|
+
/**
|
|
58
|
+
* 공개 API 시맨틱 타입.
|
|
59
|
+
* - 'default': 아이콘 없음
|
|
60
|
+
* - 'success', 'error', 'caution': 각 시맨틱 아이콘 표시
|
|
61
|
+
* - 'promise': loading 아이콘 표시 (toast.promise() 내부에서만 사용)
|
|
62
|
+
*/
|
|
63
|
+
type ToastType = 'default' | 'success' | 'error' | 'caution' | 'promise';
|
|
64
|
+
type ToastActionType = {
|
|
65
|
+
label: string;
|
|
66
|
+
onClick: () => void;
|
|
67
|
+
};
|
|
68
|
+
type ToastOptions = {
|
|
69
|
+
description?: string;
|
|
70
|
+
action?: ToastActionType;
|
|
71
|
+
id?: string | number;
|
|
72
|
+
duration?: number;
|
|
73
|
+
};
|
|
74
|
+
type PromiseToastOptions<T> = {
|
|
75
|
+
loading: string;
|
|
76
|
+
success: string | ((data: T) => string);
|
|
77
|
+
error: string | ((error: unknown) => string);
|
|
78
|
+
description?: string;
|
|
79
|
+
};
|
|
80
|
+
declare const toast: ((title: string, options?: ToastOptions) => string | number) & {
|
|
81
|
+
success: (title: string, options?: ToastOptions) => string | number;
|
|
82
|
+
error: (title: string, options?: ToastOptions) => string | number;
|
|
83
|
+
caution: (title: string, options?: ToastOptions) => string | number;
|
|
84
|
+
promise: <T>(promise: Promise<T>, options: PromiseToastOptions<T>) => string | number;
|
|
85
|
+
dismiss: (id?: number | string) => string | number;
|
|
90
86
|
};
|
|
87
|
+
declare const Toaster: () => react_jsx_runtime.JSX.Element;
|
|
91
88
|
|
|
92
89
|
interface ITypographyCommon<T extends HTMLElement = HTMLParagraphElement> extends Omit<HTMLAttributes<T>, 'color'>, WithHTMLAsProps {
|
|
93
90
|
color?: SystemKeys;
|
|
@@ -421,57 +418,6 @@ declare const List: (({ children, className, ...props }: ListRootProps) => react
|
|
|
421
418
|
Item: ({ value, text, disabled, icon, onClick }: ItemProps) => react_jsx_runtime.JSX.Element;
|
|
422
419
|
};
|
|
423
420
|
|
|
424
|
-
type ToastProps = Toast.ToastProps;
|
|
425
|
-
interface ISnackbarBase extends ToastProps {
|
|
426
|
-
title: string;
|
|
427
|
-
description?: string;
|
|
428
|
-
position?: 'left' | 'right';
|
|
429
|
-
timer?: number;
|
|
430
|
-
}
|
|
431
|
-
interface ButtonType {
|
|
432
|
-
onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
433
|
-
text: string;
|
|
434
|
-
}
|
|
435
|
-
interface ISnackbarBasic {
|
|
436
|
-
kind?: 'basic';
|
|
437
|
-
icon?: {
|
|
438
|
-
icon: IconComponentType;
|
|
439
|
-
} & Pick<IconProps, 'fill' | 'type' | 'fillType'>;
|
|
440
|
-
button?: {
|
|
441
|
-
text?: ButtonType;
|
|
442
|
-
basic?: ButtonType;
|
|
443
|
-
};
|
|
444
|
-
}
|
|
445
|
-
interface ISnackbarNavigation {
|
|
446
|
-
kind: 'navigation';
|
|
447
|
-
button: {
|
|
448
|
-
onClick: () => void;
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
interface ISnackbarExtended {
|
|
452
|
-
kind: 'extended';
|
|
453
|
-
button?: {
|
|
454
|
-
text?: ButtonType;
|
|
455
|
-
basic?: ButtonType;
|
|
456
|
-
};
|
|
457
|
-
}
|
|
458
|
-
type SnackbarProp = ISnackbarBase & (ISnackbarBasic | ISnackbarNavigation | ISnackbarExtended);
|
|
459
|
-
type SnackbarPropWithId = SnackbarProp & {
|
|
460
|
-
snackbarId: number;
|
|
461
|
-
};
|
|
462
|
-
|
|
463
|
-
declare const Snackbar: () => react_jsx_runtime.JSX.Element;
|
|
464
|
-
declare const SingleSnackbar: (props: SnackbarPropWithId & {
|
|
465
|
-
position: "left" | "right";
|
|
466
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
467
|
-
|
|
468
|
-
declare const snackbarAtom: jotai.PrimitiveAtom<SnackbarPropWithId[]> & {
|
|
469
|
-
init: SnackbarPropWithId[];
|
|
470
|
-
};
|
|
471
|
-
declare const useSnackbar: () => {
|
|
472
|
-
open: (info: SnackbarProp) => void;
|
|
473
|
-
};
|
|
474
|
-
|
|
475
421
|
declare const defaultLabelVariants: (props?: ({
|
|
476
422
|
level?: "primary" | "secondary" | undefined;
|
|
477
423
|
position?: "right" | "top" | undefined;
|
|
@@ -658,4 +604,4 @@ type BadgeBaseProps = ComponentPropsWithoutRef<'span'> & {
|
|
|
658
604
|
type BadgeProps = BadgeBaseProps & BadgeVariantColorProps;
|
|
659
605
|
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLSpanElement>>;
|
|
660
606
|
|
|
661
|
-
export { Badge, type BadgeColor, type BadgeIconProps, type BadgeProps, type BadgeSize, type BadgeVariant, type BaseCoachMarkContentProps, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DEFAULT_LEVEL_OPTIONS, DEFAULT_SIZE_OPTIONS, DefaultButton, type DefaultButtonProps, type DefaultLevelType, Display, Heading, ICON_LEVEL_OPTIONS, ICON_SIZE_OPTIONS, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, IconButton, type IconButtonProps, type ItemProps, Label, List, Loading, type LoadingLevelType, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, Radio, Select, type SelectItemProps, type SelectProps,
|
|
607
|
+
export { Badge, type BadgeColor, type BadgeIconProps, type BadgeProps, type BadgeSize, type BadgeVariant, type BaseCoachMarkContentProps, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DEFAULT_LEVEL_OPTIONS, DEFAULT_SIZE_OPTIONS, DefaultButton, type DefaultButtonProps, type DefaultLevelType, Display, Heading, ICON_LEVEL_OPTIONS, ICON_SIZE_OPTIONS, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, IconButton, type IconButtonProps, type ItemProps, Label, List, Loading, type LoadingLevelType, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, type PromiseToastOptions, Radio, Select, type SelectItemProps, type SelectProps, TEXT_LEVEL_OPTIONS, TEXT_SIZE_OPTIONS, Tag, TextButton, type TextButtonProps, type TextSizeType, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, type ToastOptions, type ToastType, Toaster, Tooltip, Typography, arrayToStyleObject, isEmptyObject, objectToArray, rootMediaStyle, toast };
|