@nation-a/ui 0.8.0 → 0.9.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/dist/index.cjs +405 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +405 -33
- package/dist/index.js.map +1 -1
- package/dist/styled-system/styles.css +200 -36
- package/dist/styled-system/tokens/index.mjs +192 -0
- package/dist/styled-system/tokens/tokens.d.ts +2 -2
- package/dist/types/components/Input/Input.stories.d.ts +10 -0
- package/dist/types/components/Input/index.d.ts +25 -0
- package/dist/types/components/Input/input.recipe.d.ts +84 -0
- package/dist/types/components/TextArea/TextArea.stories.d.ts +11 -0
- package/dist/types/components/TextArea/index.d.ts +23 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/theme/tokens/index.d.ts +119 -47
- package/package.json +1 -1
|
@@ -871,34 +871,110 @@ const tokens = {
|
|
|
871
871
|
"value": "1rem",
|
|
872
872
|
"variable": "var(--spacing-4)"
|
|
873
873
|
},
|
|
874
|
+
"spacing.5": {
|
|
875
|
+
"value": "1.25rem",
|
|
876
|
+
"variable": "var(--spacing-5)"
|
|
877
|
+
},
|
|
874
878
|
"spacing.6": {
|
|
875
879
|
"value": "1.5rem",
|
|
876
880
|
"variable": "var(--spacing-6)"
|
|
877
881
|
},
|
|
882
|
+
"spacing.7": {
|
|
883
|
+
"value": "1.75rem",
|
|
884
|
+
"variable": "var(--spacing-7)"
|
|
885
|
+
},
|
|
878
886
|
"spacing.8": {
|
|
879
887
|
"value": "2rem",
|
|
880
888
|
"variable": "var(--spacing-8)"
|
|
881
889
|
},
|
|
890
|
+
"spacing.9": {
|
|
891
|
+
"value": "2.25rem",
|
|
892
|
+
"variable": "var(--spacing-9)"
|
|
893
|
+
},
|
|
894
|
+
"spacing.10": {
|
|
895
|
+
"value": "2.5rem",
|
|
896
|
+
"variable": "var(--spacing-10)"
|
|
897
|
+
},
|
|
898
|
+
"spacing.11": {
|
|
899
|
+
"value": "2.75rem",
|
|
900
|
+
"variable": "var(--spacing-11)"
|
|
901
|
+
},
|
|
882
902
|
"spacing.12": {
|
|
883
903
|
"value": "3rem",
|
|
884
904
|
"variable": "var(--spacing-12)"
|
|
885
905
|
},
|
|
906
|
+
"spacing.14": {
|
|
907
|
+
"value": "3.5rem",
|
|
908
|
+
"variable": "var(--spacing-14)"
|
|
909
|
+
},
|
|
910
|
+
"spacing.16": {
|
|
911
|
+
"value": "4rem",
|
|
912
|
+
"variable": "var(--spacing-16)"
|
|
913
|
+
},
|
|
886
914
|
"spacing.20": {
|
|
887
915
|
"value": "5rem",
|
|
888
916
|
"variable": "var(--spacing-20)"
|
|
889
917
|
},
|
|
918
|
+
"spacing.24": {
|
|
919
|
+
"value": "6rem",
|
|
920
|
+
"variable": "var(--spacing-24)"
|
|
921
|
+
},
|
|
922
|
+
"spacing.28": {
|
|
923
|
+
"value": "7rem",
|
|
924
|
+
"variable": "var(--spacing-28)"
|
|
925
|
+
},
|
|
890
926
|
"spacing.30": {
|
|
891
927
|
"value": "7.5rem",
|
|
892
928
|
"variable": "var(--spacing-30)"
|
|
893
929
|
},
|
|
930
|
+
"spacing.32": {
|
|
931
|
+
"value": "8rem",
|
|
932
|
+
"variable": "var(--spacing-32)"
|
|
933
|
+
},
|
|
934
|
+
"spacing.36": {
|
|
935
|
+
"value": "9rem",
|
|
936
|
+
"variable": "var(--spacing-36)"
|
|
937
|
+
},
|
|
938
|
+
"spacing.40": {
|
|
939
|
+
"value": "10rem",
|
|
940
|
+
"variable": "var(--spacing-40)"
|
|
941
|
+
},
|
|
942
|
+
"spacing.44": {
|
|
943
|
+
"value": "11rem",
|
|
944
|
+
"variable": "var(--spacing-44)"
|
|
945
|
+
},
|
|
946
|
+
"spacing.48": {
|
|
947
|
+
"value": "12rem",
|
|
948
|
+
"variable": "var(--spacing-48)"
|
|
949
|
+
},
|
|
950
|
+
"spacing.52": {
|
|
951
|
+
"value": "13rem",
|
|
952
|
+
"variable": "var(--spacing-52)"
|
|
953
|
+
},
|
|
894
954
|
"spacing.56": {
|
|
895
955
|
"value": "14rem",
|
|
896
956
|
"variable": "var(--spacing-56)"
|
|
897
957
|
},
|
|
958
|
+
"spacing.60": {
|
|
959
|
+
"value": "15rem",
|
|
960
|
+
"variable": "var(--spacing-60)"
|
|
961
|
+
},
|
|
962
|
+
"spacing.64": {
|
|
963
|
+
"value": "16rem",
|
|
964
|
+
"variable": "var(--spacing-64)"
|
|
965
|
+
},
|
|
898
966
|
"spacing.72": {
|
|
899
967
|
"value": "18rem",
|
|
900
968
|
"variable": "var(--spacing-72)"
|
|
901
969
|
},
|
|
970
|
+
"spacing.80": {
|
|
971
|
+
"value": "20rem",
|
|
972
|
+
"variable": "var(--spacing-80)"
|
|
973
|
+
},
|
|
974
|
+
"spacing.96": {
|
|
975
|
+
"value": "24rem",
|
|
976
|
+
"variable": "var(--spacing-96)"
|
|
977
|
+
},
|
|
902
978
|
"spacing.98": {
|
|
903
979
|
"value": "24rem",
|
|
904
980
|
"variable": "var(--spacing-98)"
|
|
@@ -911,6 +987,26 @@ const tokens = {
|
|
|
911
987
|
"value": "40rem",
|
|
912
988
|
"variable": "var(--spacing-160)"
|
|
913
989
|
},
|
|
990
|
+
"spacing.0.5": {
|
|
991
|
+
"value": "0.125rem",
|
|
992
|
+
"variable": "var(--spacing-0\\.5)"
|
|
993
|
+
},
|
|
994
|
+
"spacing.1.5": {
|
|
995
|
+
"value": "0.375rem",
|
|
996
|
+
"variable": "var(--spacing-1\\.5)"
|
|
997
|
+
},
|
|
998
|
+
"spacing.2.5": {
|
|
999
|
+
"value": "0.625rem",
|
|
1000
|
+
"variable": "var(--spacing-2\\.5)"
|
|
1001
|
+
},
|
|
1002
|
+
"spacing.3.5": {
|
|
1003
|
+
"value": "0.875rem",
|
|
1004
|
+
"variable": "var(--spacing-3\\.5)"
|
|
1005
|
+
},
|
|
1006
|
+
"spacing.4.5": {
|
|
1007
|
+
"value": "1.125rem",
|
|
1008
|
+
"variable": "var(--spacing-4\\.5)"
|
|
1009
|
+
},
|
|
914
1010
|
"radii.none": {
|
|
915
1011
|
"value": "0px",
|
|
916
1012
|
"variable": "var(--radii-none)"
|
|
@@ -1419,34 +1515,110 @@ const tokens = {
|
|
|
1419
1515
|
"value": "calc(var(--spacing-4) * -1)",
|
|
1420
1516
|
"variable": "var(--spacing-4)"
|
|
1421
1517
|
},
|
|
1518
|
+
"spacing.-5": {
|
|
1519
|
+
"value": "calc(var(--spacing-5) * -1)",
|
|
1520
|
+
"variable": "var(--spacing-5)"
|
|
1521
|
+
},
|
|
1422
1522
|
"spacing.-6": {
|
|
1423
1523
|
"value": "calc(var(--spacing-6) * -1)",
|
|
1424
1524
|
"variable": "var(--spacing-6)"
|
|
1425
1525
|
},
|
|
1526
|
+
"spacing.-7": {
|
|
1527
|
+
"value": "calc(var(--spacing-7) * -1)",
|
|
1528
|
+
"variable": "var(--spacing-7)"
|
|
1529
|
+
},
|
|
1426
1530
|
"spacing.-8": {
|
|
1427
1531
|
"value": "calc(var(--spacing-8) * -1)",
|
|
1428
1532
|
"variable": "var(--spacing-8)"
|
|
1429
1533
|
},
|
|
1534
|
+
"spacing.-9": {
|
|
1535
|
+
"value": "calc(var(--spacing-9) * -1)",
|
|
1536
|
+
"variable": "var(--spacing-9)"
|
|
1537
|
+
},
|
|
1538
|
+
"spacing.-10": {
|
|
1539
|
+
"value": "calc(var(--spacing-10) * -1)",
|
|
1540
|
+
"variable": "var(--spacing-10)"
|
|
1541
|
+
},
|
|
1542
|
+
"spacing.-11": {
|
|
1543
|
+
"value": "calc(var(--spacing-11) * -1)",
|
|
1544
|
+
"variable": "var(--spacing-11)"
|
|
1545
|
+
},
|
|
1430
1546
|
"spacing.-12": {
|
|
1431
1547
|
"value": "calc(var(--spacing-12) * -1)",
|
|
1432
1548
|
"variable": "var(--spacing-12)"
|
|
1433
1549
|
},
|
|
1550
|
+
"spacing.-14": {
|
|
1551
|
+
"value": "calc(var(--spacing-14) * -1)",
|
|
1552
|
+
"variable": "var(--spacing-14)"
|
|
1553
|
+
},
|
|
1554
|
+
"spacing.-16": {
|
|
1555
|
+
"value": "calc(var(--spacing-16) * -1)",
|
|
1556
|
+
"variable": "var(--spacing-16)"
|
|
1557
|
+
},
|
|
1434
1558
|
"spacing.-20": {
|
|
1435
1559
|
"value": "calc(var(--spacing-20) * -1)",
|
|
1436
1560
|
"variable": "var(--spacing-20)"
|
|
1437
1561
|
},
|
|
1562
|
+
"spacing.-24": {
|
|
1563
|
+
"value": "calc(var(--spacing-24) * -1)",
|
|
1564
|
+
"variable": "var(--spacing-24)"
|
|
1565
|
+
},
|
|
1566
|
+
"spacing.-28": {
|
|
1567
|
+
"value": "calc(var(--spacing-28) * -1)",
|
|
1568
|
+
"variable": "var(--spacing-28)"
|
|
1569
|
+
},
|
|
1438
1570
|
"spacing.-30": {
|
|
1439
1571
|
"value": "calc(var(--spacing-30) * -1)",
|
|
1440
1572
|
"variable": "var(--spacing-30)"
|
|
1441
1573
|
},
|
|
1574
|
+
"spacing.-32": {
|
|
1575
|
+
"value": "calc(var(--spacing-32) * -1)",
|
|
1576
|
+
"variable": "var(--spacing-32)"
|
|
1577
|
+
},
|
|
1578
|
+
"spacing.-36": {
|
|
1579
|
+
"value": "calc(var(--spacing-36) * -1)",
|
|
1580
|
+
"variable": "var(--spacing-36)"
|
|
1581
|
+
},
|
|
1582
|
+
"spacing.-40": {
|
|
1583
|
+
"value": "calc(var(--spacing-40) * -1)",
|
|
1584
|
+
"variable": "var(--spacing-40)"
|
|
1585
|
+
},
|
|
1586
|
+
"spacing.-44": {
|
|
1587
|
+
"value": "calc(var(--spacing-44) * -1)",
|
|
1588
|
+
"variable": "var(--spacing-44)"
|
|
1589
|
+
},
|
|
1590
|
+
"spacing.-48": {
|
|
1591
|
+
"value": "calc(var(--spacing-48) * -1)",
|
|
1592
|
+
"variable": "var(--spacing-48)"
|
|
1593
|
+
},
|
|
1594
|
+
"spacing.-52": {
|
|
1595
|
+
"value": "calc(var(--spacing-52) * -1)",
|
|
1596
|
+
"variable": "var(--spacing-52)"
|
|
1597
|
+
},
|
|
1442
1598
|
"spacing.-56": {
|
|
1443
1599
|
"value": "calc(var(--spacing-56) * -1)",
|
|
1444
1600
|
"variable": "var(--spacing-56)"
|
|
1445
1601
|
},
|
|
1602
|
+
"spacing.-60": {
|
|
1603
|
+
"value": "calc(var(--spacing-60) * -1)",
|
|
1604
|
+
"variable": "var(--spacing-60)"
|
|
1605
|
+
},
|
|
1606
|
+
"spacing.-64": {
|
|
1607
|
+
"value": "calc(var(--spacing-64) * -1)",
|
|
1608
|
+
"variable": "var(--spacing-64)"
|
|
1609
|
+
},
|
|
1446
1610
|
"spacing.-72": {
|
|
1447
1611
|
"value": "calc(var(--spacing-72) * -1)",
|
|
1448
1612
|
"variable": "var(--spacing-72)"
|
|
1449
1613
|
},
|
|
1614
|
+
"spacing.-80": {
|
|
1615
|
+
"value": "calc(var(--spacing-80) * -1)",
|
|
1616
|
+
"variable": "var(--spacing-80)"
|
|
1617
|
+
},
|
|
1618
|
+
"spacing.-96": {
|
|
1619
|
+
"value": "calc(var(--spacing-96) * -1)",
|
|
1620
|
+
"variable": "var(--spacing-96)"
|
|
1621
|
+
},
|
|
1450
1622
|
"spacing.-98": {
|
|
1451
1623
|
"value": "calc(var(--spacing-98) * -1)",
|
|
1452
1624
|
"variable": "var(--spacing-98)"
|
|
@@ -1459,6 +1631,26 @@ const tokens = {
|
|
|
1459
1631
|
"value": "calc(var(--spacing-160) * -1)",
|
|
1460
1632
|
"variable": "var(--spacing-160)"
|
|
1461
1633
|
},
|
|
1634
|
+
"spacing.-0.5": {
|
|
1635
|
+
"value": "calc(var(--spacing-0\\.5) * -1)",
|
|
1636
|
+
"variable": "var(--spacing-0\\.5)"
|
|
1637
|
+
},
|
|
1638
|
+
"spacing.-1.5": {
|
|
1639
|
+
"value": "calc(var(--spacing-1\\.5) * -1)",
|
|
1640
|
+
"variable": "var(--spacing-1\\.5)"
|
|
1641
|
+
},
|
|
1642
|
+
"spacing.-2.5": {
|
|
1643
|
+
"value": "calc(var(--spacing-2\\.5) * -1)",
|
|
1644
|
+
"variable": "var(--spacing-2\\.5)"
|
|
1645
|
+
},
|
|
1646
|
+
"spacing.-3.5": {
|
|
1647
|
+
"value": "calc(var(--spacing-3\\.5) * -1)",
|
|
1648
|
+
"variable": "var(--spacing-3\\.5)"
|
|
1649
|
+
},
|
|
1650
|
+
"spacing.-4.5": {
|
|
1651
|
+
"value": "calc(var(--spacing-4\\.5) * -1)",
|
|
1652
|
+
"variable": "var(--spacing-4\\.5)"
|
|
1653
|
+
},
|
|
1462
1654
|
"colors.colorPalette.0": {
|
|
1463
1655
|
"value": "var(--colors-color-palette-0)",
|
|
1464
1656
|
"variable": "var(--colors-color-palette-0)"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
export type Token = "animations.backdrop-in" | "animations.backdrop-out" | "animations.dialog-in" | "animations.dialog-out" | "animations.drawer-in-left" | "animations.drawer-out-left" | "animations.drawer-in-right" | "animations.drawer-out-right" | "animations.skeleton-pulse" | "animations.fade-in" | "animations.collapse-in" | "animations.collapse-out" | "animations.spin" | "blurs.sm" | "blurs.base" | "blurs.md" | "blurs.lg" | "blurs.xl" | "blurs.2xl" | "blurs.3xl" | "borders.none" | "durations.fastest" | "durations.faster" | "durations.fast" | "durations.normal" | "durations.slow" | "durations.slower" | "durations.slowest" | "easings.pulse" | "easings.default" | "easings.emphasized-in" | "easings.emphasized-out" | "sizes.0" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.14" | "sizes.16" | "sizes.20" | "sizes.24" | "sizes.28" | "sizes.32" | "sizes.36" | "sizes.40" | "sizes.44" | "sizes.48" | "sizes.52" | "sizes.56" | "sizes.60" | "sizes.64" | "sizes.72" | "sizes.80" | "sizes.96" | "sizes.0.5" | "sizes.1.5" | "sizes.2.5" | "sizes.3.5" | "sizes.4.5" | "sizes.2xs" | "sizes.xs" | "sizes.sm" | "sizes.md" | "sizes.lg" | "sizes.xl" | "sizes.2xl" | "sizes.3xl" | "sizes.4xl" | "sizes.5xl" | "sizes.6xl" | "sizes.7xl" | "sizes.8xl" | "sizes.full" | "sizes.min" | "sizes.max" | "sizes.fit" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "sizes.breakpoint-2xl" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.dropdown" | "zIndex.sticky" | "zIndex.banner" | "zIndex.overlay" | "zIndex.modal" | "zIndex.popover" | "zIndex.skipLink" | "zIndex.toast" | "zIndex.tooltip" | "colors.neutral.0" | "colors.neutral.100" | "colors.neutral.200" | "colors.neutral.300" | "colors.neutral.400" | "colors.neutral.500" | "colors.neutral.600" | "colors.neutral.700" | "colors.neutral.800" | "colors.neutral.900" | "colors.neutral.1000" | "colors.neutral.1050" | "colors.neutral.1100" | "colors.neutral.1200" | "colors.black.700A" | "colors.black.600A" | "colors.black.500A" | "colors.black.400A" | "colors.black.300A" | "colors.black.200A" | "colors.black.100A" | "colors.white.700A" | "colors.white.600A" | "colors.white.500A" | "colors.white.400A" | "colors.white.300A" | "colors.white.200A" | "colors.white.100A" | "colors.red.100" | "colors.red.200" | "colors.red.300" | "colors.red.400" | "colors.red.500" | "colors.red.600" | "colors.red.700" | "colors.red.800" | "colors.red.900" | "colors.red.1000" | "colors.orange.100" | "colors.orange.200" | "colors.orange.300" | "colors.orange.400" | "colors.orange.500" | "colors.orange.600" | "colors.orange.700" | "colors.orange.800" | "colors.orange.900" | "colors.orange.1000" | "colors.blue.100" | "colors.blue.200" | "colors.blue.300" | "colors.blue.400" | "colors.blue.500" | "colors.blue.600" | "colors.blue.700" | "colors.blue.800" | "colors.blue.900" | "colors.blue.1000" | "colors.green.100" | "colors.green.200" | "colors.green.300" | "colors.green.400" | "colors.green.500" | "colors.green.600" | "colors.green.700" | "colors.green.800" | "colors.green.900" | "colors.green.1000" | "colors.purple.100" | "colors.purple.200" | "colors.purple.300" | "colors.purple.400" | "colors.purple.500" | "colors.purple.600" | "colors.purple.700" | "colors.purple.800" | "colors.purple.900" | "colors.purple.1000" | "colors.ohre.100" | "colors.ohre.200" | "colors.ohre.300" | "colors.ohre.400" | "colors.ohre.500" | "colors.ohre.600" | "colors.ohre.700" | "colors.ohre.800" | "colors.ohre.900" | "colors.ohre.1000" | "colors.cyan.100" | "colors.cyan.200" | "colors.cyan.300" | "colors.cyan.400" | "colors.cyan.500" | "colors.cyan.600" | "colors.cyan.700" | "colors.cyan.800" | "colors.cyan.900" | "colors.cyan.1000" | "colors.yellow.100" | "colors.yellow.200" | "colors.yellow.300" | "colors.yellow.400" | "colors.yellow.500" | "colors.yellow.600" | "colors.yellow.700" | "colors.yellow.800" | "colors.yellow.900" | "colors.yellow.1000" | "borderWidths.none" | "borderWidths.sm" | "borderWidths.md" | "borderWidths.lg" | "spacing.0" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.6" | "spacing.8" | "spacing.12" | "spacing.20" | "spacing.30" | "spacing.56" | "spacing.72" | "spacing.98" | "spacing.128" | "spacing.160" | "radii.none" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.full" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontSizes.3xl" | "fontSizes.4xl" | "letterSpacings.xs" | "letterSpacings.sm" | "letterSpacings.md" | "letterSpacings.lg" | "letterSpacings.xl" | "letterSpacings.2xl" | "letterSpacings.3xl" | "lineHeights.md" | "lineHeights.lg" | "lineHeights.xl" | "lineHeights.2xl" | "lineHeights.3xl" | "lineHeights.4xl" | "lineHeights.5xl" | "fontWeights.regular" | "fontWeights.medium" | "fontWeights.semibold" | "fontWeights.bold" | "fontWeights.regularItalic" | "fontWeights.mediumItalic" | "fonts.inter" | "fonts.notoSans" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "breakpoints.2xl" | "colors.content.neutral.bold" | "colors.content.neutral.default" | "colors.content.neutral.subtle" | "colors.content.neutral.subtlest" | "colors.content.neutral.disabled" | "colors.content.neutral.default_inverse" | "colors.content.neuroidPrimary.default" | "colors.content.neuroidPrimary.default_inverse" | "colors.content.danger.default" | "colors.content.warning.default" | "colors.content.success.default" | "colors.content.informative.default" | "colors.content.zoltarinaPrimary.default" | "colors.content.zoltarinaPrimary.defult_inverse" | "colors.content.heydPrimary.default" | "colors.content.heydPrimary.defult_inverse" | "colors.content.static.white.bold" | "colors.content.static.white.default" | "colors.content.static.white.subtle" | "colors.content.static.white.subtlest" | "colors.content.static.white.disabled" | "colors.content.static.black.bold" | "colors.content.static.black.default" | "colors.content.static.black.subtle" | "colors.content.static.black.subtlest" | "colors.content.static.black.disabled" | "colors.content.heybeePrimary.default" | "colors.content.heybeePrimary.default_inverse" | "colors.background.neutral.default" | "colors.background.neutral.selected" | "colors.background.neutral.disabled" | "colors.background.neuroidPrimary.default" | "colors.background.neuroidPrimary.selected" | "colors.background.neuroidSecondary.default" | "colors.background.neuroidSecondary.selected" | "colors.background.danger.default" | "colors.background.danger.selected" | "colors.background.warning.default" | "colors.background.warning.selected" | "colors.background.success.default" | "colors.background.success.selected" | "colors.background.informative.default" | "colors.background.informative.selected" | "colors.background.zoltarinaPrimary.default" | "colors.background.zoltarinaPrimary.selected" | "colors.background.zoltarinaSecondary.default" | "colors.background.zoltarinaSecondary.selected" | "colors.background.heydPrimary.default" | "colors.background.heydPrimary.selected" | "colors.background.heydSecondary.default" | "colors.background.heydSecondary.selected" | "colors.background.static.whiteAlpha.bold" | "colors.background.static.whiteAlpha.default" | "colors.background.static.whiteAlpha.selected" | "colors.background.static.whiteAlpha.disabled" | "colors.background.static.blackAlpha.bold" | "colors.background.static.blackAlpha.default" | "colors.background.static.blackAlpha.selected" | "colors.background.static.blackAlpha.disabled" | "colors.background.heybeePrimary.default" | "colors.background.heybeePrimary.selected" | "colors.surface.base" | "colors.surface.layer_1" | "colors.surface.layer_2" | "colors.shadow.overlay" | "colors.shadow.raised" | "colors.scrim.default" | "colors.skeleton.default" | "colors.skeleton.subtle" | "colors.border.neutral.default" | "colors.border.neutral.subtle" | "colors.border.neutral.disabled" | "colors.border.neuroidPrimary.default" | "colors.border.danger.default" | "colors.border.warning.default" | "colors.border.success.default" | "colors.border.informative.default" | "colors.border.zoltarinaPrimary.default" | "colors.border.heydPrimary.default" | "colors.border.heybeePrimary.default" | "shadows.raised" | "shadows.overlay" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-6" | "spacing.-8" | "spacing.-12" | "spacing.-20" | "spacing.-30" | "spacing.-56" | "spacing.-72" | "spacing.-98" | "spacing.-128" | "spacing.-160" | "colors.colorPalette.0" | "colors.colorPalette.100" | "colors.colorPalette.200" | "colors.colorPalette.300" | "colors.colorPalette.400" | "colors.colorPalette.500" | "colors.colorPalette.600" | "colors.colorPalette.700" | "colors.colorPalette.800" | "colors.colorPalette.900" | "colors.colorPalette.1000" | "colors.colorPalette.1050" | "colors.colorPalette.1100" | "colors.colorPalette.1200" | "colors.colorPalette.700A" | "colors.colorPalette.600A" | "colors.colorPalette.500A" | "colors.colorPalette.400A" | "colors.colorPalette.300A" | "colors.colorPalette.200A" | "colors.colorPalette.100A" | "colors.colorPalette.neutral.bold" | "colors.colorPalette.bold" | "colors.colorPalette.neutral.default" | "colors.colorPalette.default" | "colors.colorPalette.neutral.subtle" | "colors.colorPalette.subtle" | "colors.colorPalette.neutral.subtlest" | "colors.colorPalette.subtlest" | "colors.colorPalette.neutral.disabled" | "colors.colorPalette.disabled" | "colors.colorPalette.neutral.default_inverse" | "colors.colorPalette.default_inverse" | "colors.colorPalette.neuroidPrimary.default" | "colors.colorPalette.neuroidPrimary.default_inverse" | "colors.colorPalette.danger.default" | "colors.colorPalette.warning.default" | "colors.colorPalette.success.default" | "colors.colorPalette.informative.default" | "colors.colorPalette.zoltarinaPrimary.default" | "colors.colorPalette.zoltarinaPrimary.defult_inverse" | "colors.colorPalette.defult_inverse" | "colors.colorPalette.heydPrimary.default" | "colors.colorPalette.heydPrimary.defult_inverse" | "colors.colorPalette.static.white.bold" | "colors.colorPalette.white.bold" | "colors.colorPalette.static.white.default" | "colors.colorPalette.white.default" | "colors.colorPalette.static.white.subtle" | "colors.colorPalette.white.subtle" | "colors.colorPalette.static.white.subtlest" | "colors.colorPalette.white.subtlest" | "colors.colorPalette.static.white.disabled" | "colors.colorPalette.white.disabled" | "colors.colorPalette.static.black.bold" | "colors.colorPalette.black.bold" | "colors.colorPalette.static.black.default" | "colors.colorPalette.black.default" | "colors.colorPalette.static.black.subtle" | "colors.colorPalette.black.subtle" | "colors.colorPalette.static.black.subtlest" | "colors.colorPalette.black.subtlest" | "colors.colorPalette.static.black.disabled" | "colors.colorPalette.black.disabled" | "colors.colorPalette.heybeePrimary.default" | "colors.colorPalette.heybeePrimary.default_inverse" | "colors.colorPalette.neutral.selected" | "colors.colorPalette.selected" | "colors.colorPalette.neuroidPrimary.selected" | "colors.colorPalette.neuroidSecondary.default" | "colors.colorPalette.neuroidSecondary.selected" | "colors.colorPalette.danger.selected" | "colors.colorPalette.warning.selected" | "colors.colorPalette.success.selected" | "colors.colorPalette.informative.selected" | "colors.colorPalette.zoltarinaPrimary.selected" | "colors.colorPalette.zoltarinaSecondary.default" | "colors.colorPalette.zoltarinaSecondary.selected" | "colors.colorPalette.heydPrimary.selected" | "colors.colorPalette.heydSecondary.default" | "colors.colorPalette.heydSecondary.selected" | "colors.colorPalette.static.whiteAlpha.bold" | "colors.colorPalette.whiteAlpha.bold" | "colors.colorPalette.static.whiteAlpha.default" | "colors.colorPalette.whiteAlpha.default" | "colors.colorPalette.static.whiteAlpha.selected" | "colors.colorPalette.whiteAlpha.selected" | "colors.colorPalette.static.whiteAlpha.disabled" | "colors.colorPalette.whiteAlpha.disabled" | "colors.colorPalette.static.blackAlpha.bold" | "colors.colorPalette.blackAlpha.bold" | "colors.colorPalette.static.blackAlpha.default" | "colors.colorPalette.blackAlpha.default" | "colors.colorPalette.static.blackAlpha.selected" | "colors.colorPalette.blackAlpha.selected" | "colors.colorPalette.static.blackAlpha.disabled" | "colors.colorPalette.blackAlpha.disabled" | "colors.colorPalette.heybeePrimary.selected" | "colors.colorPalette.base" | "colors.colorPalette.layer_1" | "colors.colorPalette.layer_2" | "colors.colorPalette.overlay" | "colors.colorPalette.raised"
|
|
2
|
+
export type Token = "animations.backdrop-in" | "animations.backdrop-out" | "animations.dialog-in" | "animations.dialog-out" | "animations.drawer-in-left" | "animations.drawer-out-left" | "animations.drawer-in-right" | "animations.drawer-out-right" | "animations.skeleton-pulse" | "animations.fade-in" | "animations.collapse-in" | "animations.collapse-out" | "animations.spin" | "blurs.sm" | "blurs.base" | "blurs.md" | "blurs.lg" | "blurs.xl" | "blurs.2xl" | "blurs.3xl" | "borders.none" | "durations.fastest" | "durations.faster" | "durations.fast" | "durations.normal" | "durations.slow" | "durations.slower" | "durations.slowest" | "easings.pulse" | "easings.default" | "easings.emphasized-in" | "easings.emphasized-out" | "sizes.0" | "sizes.1" | "sizes.2" | "sizes.3" | "sizes.4" | "sizes.5" | "sizes.6" | "sizes.7" | "sizes.8" | "sizes.9" | "sizes.10" | "sizes.11" | "sizes.12" | "sizes.14" | "sizes.16" | "sizes.20" | "sizes.24" | "sizes.28" | "sizes.32" | "sizes.36" | "sizes.40" | "sizes.44" | "sizes.48" | "sizes.52" | "sizes.56" | "sizes.60" | "sizes.64" | "sizes.72" | "sizes.80" | "sizes.96" | "sizes.0.5" | "sizes.1.5" | "sizes.2.5" | "sizes.3.5" | "sizes.4.5" | "sizes.2xs" | "sizes.xs" | "sizes.sm" | "sizes.md" | "sizes.lg" | "sizes.xl" | "sizes.2xl" | "sizes.3xl" | "sizes.4xl" | "sizes.5xl" | "sizes.6xl" | "sizes.7xl" | "sizes.8xl" | "sizes.full" | "sizes.min" | "sizes.max" | "sizes.fit" | "sizes.breakpoint-sm" | "sizes.breakpoint-md" | "sizes.breakpoint-lg" | "sizes.breakpoint-xl" | "sizes.breakpoint-2xl" | "zIndex.hide" | "zIndex.base" | "zIndex.docked" | "zIndex.dropdown" | "zIndex.sticky" | "zIndex.banner" | "zIndex.overlay" | "zIndex.modal" | "zIndex.popover" | "zIndex.skipLink" | "zIndex.toast" | "zIndex.tooltip" | "colors.neutral.0" | "colors.neutral.100" | "colors.neutral.200" | "colors.neutral.300" | "colors.neutral.400" | "colors.neutral.500" | "colors.neutral.600" | "colors.neutral.700" | "colors.neutral.800" | "colors.neutral.900" | "colors.neutral.1000" | "colors.neutral.1050" | "colors.neutral.1100" | "colors.neutral.1200" | "colors.black.700A" | "colors.black.600A" | "colors.black.500A" | "colors.black.400A" | "colors.black.300A" | "colors.black.200A" | "colors.black.100A" | "colors.white.700A" | "colors.white.600A" | "colors.white.500A" | "colors.white.400A" | "colors.white.300A" | "colors.white.200A" | "colors.white.100A" | "colors.red.100" | "colors.red.200" | "colors.red.300" | "colors.red.400" | "colors.red.500" | "colors.red.600" | "colors.red.700" | "colors.red.800" | "colors.red.900" | "colors.red.1000" | "colors.orange.100" | "colors.orange.200" | "colors.orange.300" | "colors.orange.400" | "colors.orange.500" | "colors.orange.600" | "colors.orange.700" | "colors.orange.800" | "colors.orange.900" | "colors.orange.1000" | "colors.blue.100" | "colors.blue.200" | "colors.blue.300" | "colors.blue.400" | "colors.blue.500" | "colors.blue.600" | "colors.blue.700" | "colors.blue.800" | "colors.blue.900" | "colors.blue.1000" | "colors.green.100" | "colors.green.200" | "colors.green.300" | "colors.green.400" | "colors.green.500" | "colors.green.600" | "colors.green.700" | "colors.green.800" | "colors.green.900" | "colors.green.1000" | "colors.purple.100" | "colors.purple.200" | "colors.purple.300" | "colors.purple.400" | "colors.purple.500" | "colors.purple.600" | "colors.purple.700" | "colors.purple.800" | "colors.purple.900" | "colors.purple.1000" | "colors.ohre.100" | "colors.ohre.200" | "colors.ohre.300" | "colors.ohre.400" | "colors.ohre.500" | "colors.ohre.600" | "colors.ohre.700" | "colors.ohre.800" | "colors.ohre.900" | "colors.ohre.1000" | "colors.cyan.100" | "colors.cyan.200" | "colors.cyan.300" | "colors.cyan.400" | "colors.cyan.500" | "colors.cyan.600" | "colors.cyan.700" | "colors.cyan.800" | "colors.cyan.900" | "colors.cyan.1000" | "colors.yellow.100" | "colors.yellow.200" | "colors.yellow.300" | "colors.yellow.400" | "colors.yellow.500" | "colors.yellow.600" | "colors.yellow.700" | "colors.yellow.800" | "colors.yellow.900" | "colors.yellow.1000" | "borderWidths.none" | "borderWidths.sm" | "borderWidths.md" | "borderWidths.lg" | "spacing.0" | "spacing.1" | "spacing.2" | "spacing.3" | "spacing.4" | "spacing.5" | "spacing.6" | "spacing.7" | "spacing.8" | "spacing.9" | "spacing.10" | "spacing.11" | "spacing.12" | "spacing.14" | "spacing.16" | "spacing.20" | "spacing.24" | "spacing.28" | "spacing.30" | "spacing.32" | "spacing.36" | "spacing.40" | "spacing.44" | "spacing.48" | "spacing.52" | "spacing.56" | "spacing.60" | "spacing.64" | "spacing.72" | "spacing.80" | "spacing.96" | "spacing.98" | "spacing.128" | "spacing.160" | "spacing.0.5" | "spacing.1.5" | "spacing.2.5" | "spacing.3.5" | "spacing.4.5" | "radii.none" | "radii.xs" | "radii.sm" | "radii.md" | "radii.lg" | "radii.full" | "fontSizes.xs" | "fontSizes.sm" | "fontSizes.md" | "fontSizes.lg" | "fontSizes.xl" | "fontSizes.2xl" | "fontSizes.3xl" | "fontSizes.4xl" | "letterSpacings.xs" | "letterSpacings.sm" | "letterSpacings.md" | "letterSpacings.lg" | "letterSpacings.xl" | "letterSpacings.2xl" | "letterSpacings.3xl" | "lineHeights.md" | "lineHeights.lg" | "lineHeights.xl" | "lineHeights.2xl" | "lineHeights.3xl" | "lineHeights.4xl" | "lineHeights.5xl" | "fontWeights.regular" | "fontWeights.medium" | "fontWeights.semibold" | "fontWeights.bold" | "fontWeights.regularItalic" | "fontWeights.mediumItalic" | "fonts.inter" | "fonts.notoSans" | "breakpoints.sm" | "breakpoints.md" | "breakpoints.lg" | "breakpoints.xl" | "breakpoints.2xl" | "colors.content.neutral.bold" | "colors.content.neutral.default" | "colors.content.neutral.subtle" | "colors.content.neutral.subtlest" | "colors.content.neutral.disabled" | "colors.content.neutral.default_inverse" | "colors.content.neuroidPrimary.default" | "colors.content.neuroidPrimary.default_inverse" | "colors.content.danger.default" | "colors.content.warning.default" | "colors.content.success.default" | "colors.content.informative.default" | "colors.content.zoltarinaPrimary.default" | "colors.content.zoltarinaPrimary.defult_inverse" | "colors.content.heydPrimary.default" | "colors.content.heydPrimary.defult_inverse" | "colors.content.static.white.bold" | "colors.content.static.white.default" | "colors.content.static.white.subtle" | "colors.content.static.white.subtlest" | "colors.content.static.white.disabled" | "colors.content.static.black.bold" | "colors.content.static.black.default" | "colors.content.static.black.subtle" | "colors.content.static.black.subtlest" | "colors.content.static.black.disabled" | "colors.content.heybeePrimary.default" | "colors.content.heybeePrimary.default_inverse" | "colors.background.neutral.default" | "colors.background.neutral.selected" | "colors.background.neutral.disabled" | "colors.background.neuroidPrimary.default" | "colors.background.neuroidPrimary.selected" | "colors.background.neuroidSecondary.default" | "colors.background.neuroidSecondary.selected" | "colors.background.danger.default" | "colors.background.danger.selected" | "colors.background.warning.default" | "colors.background.warning.selected" | "colors.background.success.default" | "colors.background.success.selected" | "colors.background.informative.default" | "colors.background.informative.selected" | "colors.background.zoltarinaPrimary.default" | "colors.background.zoltarinaPrimary.selected" | "colors.background.zoltarinaSecondary.default" | "colors.background.zoltarinaSecondary.selected" | "colors.background.heydPrimary.default" | "colors.background.heydPrimary.selected" | "colors.background.heydSecondary.default" | "colors.background.heydSecondary.selected" | "colors.background.static.whiteAlpha.bold" | "colors.background.static.whiteAlpha.default" | "colors.background.static.whiteAlpha.selected" | "colors.background.static.whiteAlpha.disabled" | "colors.background.static.blackAlpha.bold" | "colors.background.static.blackAlpha.default" | "colors.background.static.blackAlpha.selected" | "colors.background.static.blackAlpha.disabled" | "colors.background.heybeePrimary.default" | "colors.background.heybeePrimary.selected" | "colors.surface.base" | "colors.surface.layer_1" | "colors.surface.layer_2" | "colors.shadow.overlay" | "colors.shadow.raised" | "colors.scrim.default" | "colors.skeleton.default" | "colors.skeleton.subtle" | "colors.border.neutral.default" | "colors.border.neutral.subtle" | "colors.border.neutral.disabled" | "colors.border.neuroidPrimary.default" | "colors.border.danger.default" | "colors.border.warning.default" | "colors.border.success.default" | "colors.border.informative.default" | "colors.border.zoltarinaPrimary.default" | "colors.border.heydPrimary.default" | "colors.border.heybeePrimary.default" | "shadows.raised" | "shadows.overlay" | "spacing.-1" | "spacing.-2" | "spacing.-3" | "spacing.-4" | "spacing.-5" | "spacing.-6" | "spacing.-7" | "spacing.-8" | "spacing.-9" | "spacing.-10" | "spacing.-11" | "spacing.-12" | "spacing.-14" | "spacing.-16" | "spacing.-20" | "spacing.-24" | "spacing.-28" | "spacing.-30" | "spacing.-32" | "spacing.-36" | "spacing.-40" | "spacing.-44" | "spacing.-48" | "spacing.-52" | "spacing.-56" | "spacing.-60" | "spacing.-64" | "spacing.-72" | "spacing.-80" | "spacing.-96" | "spacing.-98" | "spacing.-128" | "spacing.-160" | "spacing.-0.5" | "spacing.-1.5" | "spacing.-2.5" | "spacing.-3.5" | "spacing.-4.5" | "colors.colorPalette.0" | "colors.colorPalette.100" | "colors.colorPalette.200" | "colors.colorPalette.300" | "colors.colorPalette.400" | "colors.colorPalette.500" | "colors.colorPalette.600" | "colors.colorPalette.700" | "colors.colorPalette.800" | "colors.colorPalette.900" | "colors.colorPalette.1000" | "colors.colorPalette.1050" | "colors.colorPalette.1100" | "colors.colorPalette.1200" | "colors.colorPalette.700A" | "colors.colorPalette.600A" | "colors.colorPalette.500A" | "colors.colorPalette.400A" | "colors.colorPalette.300A" | "colors.colorPalette.200A" | "colors.colorPalette.100A" | "colors.colorPalette.neutral.bold" | "colors.colorPalette.bold" | "colors.colorPalette.neutral.default" | "colors.colorPalette.default" | "colors.colorPalette.neutral.subtle" | "colors.colorPalette.subtle" | "colors.colorPalette.neutral.subtlest" | "colors.colorPalette.subtlest" | "colors.colorPalette.neutral.disabled" | "colors.colorPalette.disabled" | "colors.colorPalette.neutral.default_inverse" | "colors.colorPalette.default_inverse" | "colors.colorPalette.neuroidPrimary.default" | "colors.colorPalette.neuroidPrimary.default_inverse" | "colors.colorPalette.danger.default" | "colors.colorPalette.warning.default" | "colors.colorPalette.success.default" | "colors.colorPalette.informative.default" | "colors.colorPalette.zoltarinaPrimary.default" | "colors.colorPalette.zoltarinaPrimary.defult_inverse" | "colors.colorPalette.defult_inverse" | "colors.colorPalette.heydPrimary.default" | "colors.colorPalette.heydPrimary.defult_inverse" | "colors.colorPalette.static.white.bold" | "colors.colorPalette.white.bold" | "colors.colorPalette.static.white.default" | "colors.colorPalette.white.default" | "colors.colorPalette.static.white.subtle" | "colors.colorPalette.white.subtle" | "colors.colorPalette.static.white.subtlest" | "colors.colorPalette.white.subtlest" | "colors.colorPalette.static.white.disabled" | "colors.colorPalette.white.disabled" | "colors.colorPalette.static.black.bold" | "colors.colorPalette.black.bold" | "colors.colorPalette.static.black.default" | "colors.colorPalette.black.default" | "colors.colorPalette.static.black.subtle" | "colors.colorPalette.black.subtle" | "colors.colorPalette.static.black.subtlest" | "colors.colorPalette.black.subtlest" | "colors.colorPalette.static.black.disabled" | "colors.colorPalette.black.disabled" | "colors.colorPalette.heybeePrimary.default" | "colors.colorPalette.heybeePrimary.default_inverse" | "colors.colorPalette.neutral.selected" | "colors.colorPalette.selected" | "colors.colorPalette.neuroidPrimary.selected" | "colors.colorPalette.neuroidSecondary.default" | "colors.colorPalette.neuroidSecondary.selected" | "colors.colorPalette.danger.selected" | "colors.colorPalette.warning.selected" | "colors.colorPalette.success.selected" | "colors.colorPalette.informative.selected" | "colors.colorPalette.zoltarinaPrimary.selected" | "colors.colorPalette.zoltarinaSecondary.default" | "colors.colorPalette.zoltarinaSecondary.selected" | "colors.colorPalette.heydPrimary.selected" | "colors.colorPalette.heydSecondary.default" | "colors.colorPalette.heydSecondary.selected" | "colors.colorPalette.static.whiteAlpha.bold" | "colors.colorPalette.whiteAlpha.bold" | "colors.colorPalette.static.whiteAlpha.default" | "colors.colorPalette.whiteAlpha.default" | "colors.colorPalette.static.whiteAlpha.selected" | "colors.colorPalette.whiteAlpha.selected" | "colors.colorPalette.static.whiteAlpha.disabled" | "colors.colorPalette.whiteAlpha.disabled" | "colors.colorPalette.static.blackAlpha.bold" | "colors.colorPalette.blackAlpha.bold" | "colors.colorPalette.static.blackAlpha.default" | "colors.colorPalette.blackAlpha.default" | "colors.colorPalette.static.blackAlpha.selected" | "colors.colorPalette.blackAlpha.selected" | "colors.colorPalette.static.blackAlpha.disabled" | "colors.colorPalette.blackAlpha.disabled" | "colors.colorPalette.heybeePrimary.selected" | "colors.colorPalette.base" | "colors.colorPalette.layer_1" | "colors.colorPalette.layer_2" | "colors.colorPalette.overlay" | "colors.colorPalette.raised"
|
|
3
3
|
|
|
4
4
|
export type ColorPalette = "neutral" | "black" | "white" | "red" | "orange" | "blue" | "green" | "purple" | "ohre" | "cyan" | "yellow" | "content" | "content.neutral" | "content.neuroidPrimary" | "content.danger" | "content.warning" | "content.success" | "content.informative" | "content.zoltarinaPrimary" | "content.heydPrimary" | "content.static" | "content.static.white" | "content.static.black" | "content.heybeePrimary" | "background" | "background.neutral" | "background.neuroidPrimary" | "background.neuroidSecondary" | "background.danger" | "background.warning" | "background.success" | "background.informative" | "background.zoltarinaPrimary" | "background.zoltarinaSecondary" | "background.heydPrimary" | "background.heydSecondary" | "background.static" | "background.static.whiteAlpha" | "background.static.blackAlpha" | "background.heybeePrimary" | "surface" | "shadow" | "scrim" | "skeleton" | "border" | "border.neutral" | "border.neuroidPrimary" | "border.danger" | "border.warning" | "border.success" | "border.informative" | "border.zoltarinaPrimary" | "border.heydPrimary" | "border.heybeePrimary"
|
|
5
5
|
|
|
@@ -21,7 +21,7 @@ export type ColorToken = "neutral.0" | "neutral.100" | "neutral.200" | "neutral.
|
|
|
21
21
|
|
|
22
22
|
export type BorderWidthToken = "none" | "sm" | "md" | "lg"
|
|
23
23
|
|
|
24
|
-
export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "6" | "8" | "12" | "20" | "30" | "56" | "72" | "98" | "128" | "160" | "-1" | "-2" | "-3" | "-4" | "-6" | "-8" | "-12" | "-20" | "-30" | "-56" | "-72" | "-98" | "-128" | "-160"
|
|
24
|
+
export type SpacingToken = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "14" | "16" | "20" | "24" | "28" | "30" | "32" | "36" | "40" | "44" | "48" | "52" | "56" | "60" | "64" | "72" | "80" | "96" | "98" | "128" | "160" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "-1" | "-2" | "-3" | "-4" | "-5" | "-6" | "-7" | "-8" | "-9" | "-10" | "-11" | "-12" | "-14" | "-16" | "-20" | "-24" | "-28" | "-30" | "-32" | "-36" | "-40" | "-44" | "-48" | "-52" | "-56" | "-60" | "-64" | "-72" | "-80" | "-96" | "-98" | "-128" | "-160" | "-0.5" | "-1.5" | "-2.5" | "-3.5" | "-4.5"
|
|
25
25
|
|
|
26
26
|
export type RadiusToken = "none" | "xs" | "sm" | "md" | "lg" | "full"
|
|
27
27
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Input } from './index';
|
|
3
|
+
declare const meta: Meta<typeof Input>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Input>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithDescription: Story;
|
|
8
|
+
export declare const UIVariants: Story;
|
|
9
|
+
export declare const DisabledStates: Story;
|
|
10
|
+
export declare const LabelVariations: Story;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { InputVariantProps } from './input.recipe';
|
|
3
|
+
export type InputProps = InputHTMLAttributes<HTMLInputElement> & InputVariantProps & {
|
|
4
|
+
value: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
labelPosition?: 'outside' | 'inside';
|
|
9
|
+
description?: string;
|
|
10
|
+
textLimit?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const RequiredStar: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Description: ({ children }: {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const Input: import('react').ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & InputVariantProps & {
|
|
17
|
+
value: string;
|
|
18
|
+
required?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
label?: string;
|
|
21
|
+
labelPosition?: "outside" | "inside";
|
|
22
|
+
description?: string;
|
|
23
|
+
textLimit?: number;
|
|
24
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
25
|
+
export default Input;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export type InputVariantProps = Omit<typeof inputRecipe.__type, 'state'>;
|
|
2
|
+
export type InputStateType = Pick<typeof inputRecipe.__type, 'state'>['state'];
|
|
3
|
+
export declare const inputRecipe: import('../../../styled-system/types').RecipeRuntimeFn<{
|
|
4
|
+
isTextArea: {
|
|
5
|
+
true: {
|
|
6
|
+
minHeight: "56px";
|
|
7
|
+
'& textarea': {
|
|
8
|
+
background: "transparent";
|
|
9
|
+
height: "100%";
|
|
10
|
+
resize: "none";
|
|
11
|
+
overflowY: "auto";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
false: {
|
|
15
|
+
minHeight: "48px";
|
|
16
|
+
maxHeight: "60px";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
variant: {
|
|
20
|
+
solid: {
|
|
21
|
+
borderColor: "transparent";
|
|
22
|
+
};
|
|
23
|
+
line: {
|
|
24
|
+
background: "transparent";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
color: {
|
|
28
|
+
alpha: {
|
|
29
|
+
'&::placeholder': {
|
|
30
|
+
color: "content.static.white.subtlest";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
neutral: {
|
|
34
|
+
'&::placeholder': {
|
|
35
|
+
color: "content.neutral.subtlest";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
radius: {
|
|
40
|
+
md: {
|
|
41
|
+
borderRadius: number;
|
|
42
|
+
px: number;
|
|
43
|
+
};
|
|
44
|
+
lg: {
|
|
45
|
+
borderRadius: number;
|
|
46
|
+
px: number;
|
|
47
|
+
};
|
|
48
|
+
full: {
|
|
49
|
+
borderRadius: number;
|
|
50
|
+
px: number;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
state: {
|
|
54
|
+
default: {
|
|
55
|
+
color: "content.neutral.bold";
|
|
56
|
+
};
|
|
57
|
+
selected: {
|
|
58
|
+
color: "content.neutral.bold";
|
|
59
|
+
};
|
|
60
|
+
disabled: {
|
|
61
|
+
color: "content.neutral.disabled";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}>;
|
|
65
|
+
export declare const labelRecipe: import('../../../styled-system/types').RecipeRuntimeFn<{
|
|
66
|
+
state: {
|
|
67
|
+
default: {};
|
|
68
|
+
selected: {};
|
|
69
|
+
disabled: {};
|
|
70
|
+
};
|
|
71
|
+
color: {
|
|
72
|
+
alpha: {
|
|
73
|
+
color: "content.static.white.bold";
|
|
74
|
+
};
|
|
75
|
+
neutral: {
|
|
76
|
+
color: "content.neutral.subtle";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
radius: {
|
|
80
|
+
md: {};
|
|
81
|
+
lg: {};
|
|
82
|
+
full: {};
|
|
83
|
+
};
|
|
84
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Textarea } from './index';
|
|
3
|
+
declare const meta: Meta<typeof Textarea>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Textarea>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithDescription: Story;
|
|
8
|
+
export declare const UIVariants: Story;
|
|
9
|
+
export declare const DisabledStates: Story;
|
|
10
|
+
export declare const LabelVariations: Story;
|
|
11
|
+
export declare const TextLimitExample: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import { InputVariantProps } from '../Input/input.recipe';
|
|
3
|
+
export type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & InputVariantProps & {
|
|
4
|
+
value: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
labelPosition?: 'outside' | 'inside';
|
|
9
|
+
description?: string;
|
|
10
|
+
textLimit?: number;
|
|
11
|
+
showTextCount?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const Textarea: import('react').ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & InputVariantProps & {
|
|
14
|
+
value: string;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
label?: string;
|
|
18
|
+
labelPosition?: "outside" | "inside";
|
|
19
|
+
description?: string;
|
|
20
|
+
textLimit?: number;
|
|
21
|
+
showTextCount?: boolean;
|
|
22
|
+
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
23
|
+
export default Textarea;
|
|
@@ -7,4 +7,6 @@ export { default as BottomSheet, type BottomSheetProps } from './BottomSheet';
|
|
|
7
7
|
export { default as Navigation, type NavigationProps, type NavigationTriggerProps } from './Navigation';
|
|
8
8
|
export { default as Tag, type TagProps } from './Tag';
|
|
9
9
|
export { Portal, type PortalProps } from '@ark-ui/react';
|
|
10
|
+
export { default as Input, type InputProps } from './Input';
|
|
11
|
+
export { default as TextArea, type TextAreaProps } from './TextArea';
|
|
10
12
|
export * from './Layout';
|