@cck-ui/core 0.16.0 → 0.18.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.
Files changed (38) hide show
  1. package/cjs/components/paper/index.cjs +14 -0
  2. package/cjs/components/paper/index.cjs.map +1 -0
  3. package/cjs/components/paper/paper.cjs +401 -0
  4. package/cjs/components/paper/paper.cjs.map +1 -0
  5. package/cjs/components/paper/paper.module.cjs +7 -0
  6. package/cjs/components/paper/paper.module.cjs.map +1 -0
  7. package/cjs/components/paper/paper.utils.cjs +11 -0
  8. package/cjs/components/paper/paper.utils.cjs.map +1 -0
  9. package/cjs/index.cjs +26 -23
  10. package/cjs/index.cjs.map +1 -1
  11. package/esm/components/paper/index.mjs +11 -0
  12. package/esm/components/paper/index.mjs.map +1 -0
  13. package/esm/components/paper/paper.mjs +401 -0
  14. package/esm/components/paper/paper.mjs.map +1 -0
  15. package/esm/components/paper/paper.module.mjs +7 -0
  16. package/esm/components/paper/paper.module.mjs.map +1 -0
  17. package/esm/components/paper/paper.utils.mjs +12 -0
  18. package/esm/components/paper/paper.utils.mjs.map +1 -0
  19. package/esm/index.mjs +3 -1
  20. package/esm/index.mjs.map +1 -1
  21. package/lib/components/action-icon/action-icon-group/action-icon-group.types.d.ts +23 -0
  22. package/lib/components/action-icon/action-icon-group/action-icon-group.utils.d.ts +6 -0
  23. package/lib/components/action-icon/action-icon-group-section/action-icon-group-section.types.d.ts +34 -0
  24. package/lib/components/action-icon/action-icon-group-section/action-icon-group-section.utils.d.ts +7 -0
  25. package/lib/components/action-icon/action-icon.types.d.ts +56 -0
  26. package/lib/components/action-icon/action-icon.utils.d.ts +9 -0
  27. package/lib/components/action-icon/index.d.ts +15 -0
  28. package/lib/components/index.d.ts +1 -0
  29. package/lib/components/paper/index.d.ts +6 -0
  30. package/lib/components/paper/paper.types.d.ts +29 -0
  31. package/lib/components/paper/paper.utils.d.ts +7 -0
  32. package/package.json +1 -1
  33. package/styles/action-icon.css +189 -0
  34. package/styles/action-icon.layer.css +190 -0
  35. package/styles/paper.css +24 -0
  36. package/styles/paper.layer.css +25 -0
  37. package/styles.css +215 -0
  38. package/styles.layer.css +215 -0
package/styles.css CHANGED
@@ -882,6 +882,196 @@ fieldset:disabled .c-active:active {
882
882
  justify-content: center;
883
883
  }
884
884
 
885
+ .m_cfeededf {
886
+ --ai-size-xs: calc(1.125rem * var(--c-scale));
887
+ --ai-size-sm: calc(1.375rem * var(--c-scale));
888
+ --ai-size-md: calc(1.75rem * var(--c-scale));
889
+ --ai-size-lg: calc(2.125rem * var(--c-scale));
890
+ --ai-size-xl: calc(2.75rem * var(--c-scale));
891
+
892
+ --ai-size-input-xs: calc(1.875rem * var(--c-scale));
893
+ --ai-size-input-sm: calc(2.25rem * var(--c-scale));
894
+ --ai-size-input-md: calc(2.625rem * var(--c-scale));
895
+ --ai-size-input-lg: calc(3.125rem * var(--c-scale));
896
+ --ai-size-input-xl: calc(3.75rem * var(--c-scale));
897
+
898
+ --ai-size: var(--ai-size-md);
899
+ --ai-color: var(--c-color-white);
900
+
901
+ line-height: 1;
902
+ display: inline-flex;
903
+ align-items: center;
904
+ justify-content: center;
905
+ position: relative;
906
+ user-select: none;
907
+ overflow: hidden;
908
+
909
+ width: var(--ai-size);
910
+ height: var(--ai-size);
911
+ min-width: var(--ai-size);
912
+ min-height: var(--ai-size);
913
+ border-radius: var(--ai-radius, var(--c-radius-default));
914
+ background: var(--ai-bg, var(--c-color-default));
915
+ color: var(--ai-color, var(--c-color-default-color));
916
+ border: var(--ai-bd, calc(0.0625rem * var(--c-scale)) solid var(--c-color-default-color));
917
+ cursor: pointer;
918
+ }
919
+
920
+ @media (hover: hover) {
921
+ .m_cfeededf:hover:where(:not([data-loading], :disabled, [data-disabled])) {
922
+ background-color: var(--ai-hover, var(--c-color-default-hover));
923
+ color: var(--ai-hover-color, var(--ai-color));
924
+ }
925
+ }
926
+
927
+ @media (hover: none) {
928
+ .m_cfeededf:active:where(:not([data-loading], :disabled, [data-disabled])) {
929
+ background-color: var(--ai-hover, var(--c-color-default-hover));
930
+ color: var(--ai-hover-color, var(--ai-color));
931
+ }
932
+ }
933
+
934
+ .m_cfeededf[data-loading] {
935
+ cursor: not-allowed;
936
+ }
937
+
938
+ .m_cfeededf[data-loading] .m_cfea9a76 {
939
+ opacity: 0;
940
+ transform: translateY(100%);
941
+ }
942
+
943
+ .m_cfeededf:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])) {
944
+ cursor: not-allowed;
945
+ border: calc(0.0625rem * var(--c-scale)) solid transparent;
946
+ color: var(--c-color-disabled-color);
947
+ background: var(--c-color-disabled);
948
+ }
949
+
950
+ .m_cfeededf:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])):active {
951
+ transform: none;
952
+ }
953
+
954
+ .m_856f02d0 {
955
+ inset: calc(-0.0625rem * var(--c-scale));
956
+ position: absolute;
957
+ border-radius: var(--ai-radius, var(--c-radius-default));
958
+ display: flex;
959
+ align-items: center;
960
+ justify-content: center;
961
+ }
962
+
963
+ :where([data-c-color-scheme='light']) .m_856f02d0 {
964
+ background-color: rgba(255, 255, 255, 0.15);
965
+ }
966
+
967
+ :where([data-c-color-scheme='dark']) .m_856f02d0 {
968
+ background-color: rgba(0, 0, 0, 0.15);
969
+ }
970
+
971
+ .m_2d535822 {
972
+ --ai-border-width: calc(0.0625rem * var(--c-scale));
973
+ display: flex;
974
+ }
975
+
976
+ .m_2d535822 :where(*):focus {
977
+ position: relative;
978
+ z-index: 1;
979
+ }
980
+
981
+ .m_2d535822[data-orientation='horizontal'] {
982
+ flex-direction: row;
983
+ }
984
+
985
+ .m_2d535822[data-orientation='horizontal'] .m_cfeededf:not(:only-child):first-child, .m_2d535822[data-orientation='horizontal'] .m_cb49b463:not(:only-child):first-child {
986
+ border-end-end-radius: 0;
987
+ border-start-end-radius: 0;
988
+ border-inline-end-width: calc(var(--ai-border-width) / 2);
989
+ }
990
+
991
+ .m_2d535822[data-orientation='horizontal'] .m_cfeededf:not(:only-child):last-child, .m_2d535822[data-orientation='horizontal'] .m_cb49b463:not(:only-child):last-child {
992
+ border-end-start-radius: 0;
993
+ border-start-start-radius: 0;
994
+ border-inline-start-width: calc(var(--ai-border-width) / 2);
995
+ }
996
+
997
+ .m_2d535822[data-orientation='horizontal'] .m_cfeededf:not(:only-child):not(:first-child):not(:last-child), .m_2d535822[data-orientation='horizontal'] .m_cb49b463:not(:only-child):not(:first-child):not(:last-child) {
998
+ border-radius: 0;
999
+ border-inline-width: calc(var(--ai-border-width) / 2);
1000
+ }
1001
+
1002
+ .m_2d535822[data-orientation='vertical'] {
1003
+ flex-direction: column;
1004
+ }
1005
+
1006
+ .m_2d535822[data-orientation='vertical'] .m_cfeededf:not(:only-child):first-child, .m_2d535822[data-orientation='vertical'] .m_cb49b463:not(:only-child):first-child {
1007
+ border-end-start-radius: 0;
1008
+ border-end-end-radius: 0;
1009
+ border-bottom-width: calc(var(--ai-border-width) / 2);
1010
+ }
1011
+
1012
+ .m_2d535822[data-orientation='vertical'] .m_cfeededf:not(:only-child):last-child, .m_2d535822[data-orientation='vertical'] .m_cb49b463:not(:only-child):last-child {
1013
+ border-start-start-radius: 0;
1014
+ border-start-end-radius: 0;
1015
+ border-top-width: calc(var(--ai-border-width) / 2);
1016
+ }
1017
+
1018
+ .m_2d535822[data-orientation='vertical'] .m_cfeededf:not(:only-child):not(:first-child):not(:last-child), .m_2d535822[data-orientation='vertical'] .m_cb49b463:not(:only-child):not(:first-child):not(:last-child) {
1019
+ border-radius: 0;
1020
+ border-bottom-width: calc(var(--ai-border-width) / 2);
1021
+ border-top-width: calc(var(--ai-border-width) / 2);
1022
+ }
1023
+
1024
+ .m_cfea9a76 {
1025
+ display: flex;
1026
+ align-items: center;
1027
+ justify-content: center;
1028
+ transition:
1029
+ transform 150ms ease,
1030
+ opacity 100ms ease;
1031
+ width: 100%;
1032
+ height: 100%;
1033
+ }
1034
+
1035
+ .m_cb49b463 {
1036
+ --section-height-xs: calc(1.125rem * var(--c-scale));
1037
+ --section-height-sm: calc(1.375rem * var(--c-scale));
1038
+ --section-height-md: calc(1.75rem * var(--c-scale));
1039
+ --section-height-lg: calc(2.125rem * var(--c-scale));
1040
+ --section-height-xl: calc(2.75rem * var(--c-scale));
1041
+
1042
+ --section-height-input-xs: calc(1.875rem * var(--c-scale));
1043
+ --section-height-input-sm: calc(2.25rem * var(--c-scale));
1044
+ --section-height-input-md: calc(2.625rem * var(--c-scale));
1045
+ --section-height-input-lg: calc(3.125rem * var(--c-scale));
1046
+ --section-height-input-xl: calc(3.75rem * var(--c-scale));
1047
+
1048
+ --section-padding-x-xs: calc(0.375rem * var(--c-scale));
1049
+ --section-padding-x-sm: calc(0.5rem * var(--c-scale));
1050
+ --section-padding-x-md: calc(0.625rem * var(--c-scale));
1051
+ --section-padding-x-lg: calc(0.75rem * var(--c-scale));
1052
+ --section-padding-x-xl: calc(1rem * var(--c-scale));
1053
+
1054
+ --section-height: var(--section-height-sm);
1055
+ --section-padding-x: var(--section-padding-x-sm);
1056
+ --section-color: var(--c-color-white);
1057
+
1058
+ font-weight: var(--c-font-weight-medium);
1059
+ width: auto;
1060
+ border-radius: var(--section-radius, var(--c-radius-default));
1061
+
1062
+ font-size: var(--section-fz, var(--c-font-size-sm));
1063
+ background: var(--section-bg, var(--c-primary-color-filled));
1064
+ border: var(--section-bd, calc(0.0625rem * var(--c-scale)) solid transparent);
1065
+ color: var(--section-color, var(--c-color-white));
1066
+ height: var(--section-height, var(--section-height-sm));
1067
+ padding-inline: var(--section-padding-x, var(--section-padding-x-sm));
1068
+ vertical-align: middle;
1069
+ line-height: 1;
1070
+ display: inline-flex;
1071
+ align-items: center;
1072
+ justify-content: center;
1073
+ }
1074
+
885
1075
  .m_efb192b3 {
886
1076
  --alert-radius: var(--c-radius-default);
887
1077
  --alert-bg: var(--c-primary-color-light);
@@ -1379,6 +1569,31 @@ fieldset:disabled .c-active:active {
1379
1569
  animation: m_1309882b 1.2s linear infinite;
1380
1570
  }
1381
1571
 
1572
+ .m_a4a0a883 {
1573
+ --paper-radius: var(--c-radius-default);
1574
+
1575
+ outline: 0;
1576
+ -webkit-tap-heighlight-color: transparent;
1577
+ display: block;
1578
+ touch-action: manipulation;
1579
+ text-decoration: none;
1580
+ border-radius: var(--paper-radius);
1581
+ box-shadow: var(--paper-shadow);
1582
+ background-color: var(--c-color-body);
1583
+ }
1584
+
1585
+ [data-c-color-scheme='light'] .m_a4a0a883 {
1586
+ --paper-border-color: var(--c-color-gray-3);
1587
+ }
1588
+
1589
+ [data-c-color-scheme='dark'] .m_a4a0a883 {
1590
+ --paper-border-color: var(--c-color-dark-4);
1591
+ }
1592
+
1593
+ .m_a4a0a883:where([data-with-border]) {
1594
+ border: calc(0.0625rem * var(--c-scale)) solid var(--paper-border-color);
1595
+ }
1596
+
1382
1597
  .m_6f2f9f44 {
1383
1598
  --scp-filled-segment-color: var(--c-primary-color-filled);
1384
1599
  --scp-transition-duration: 0ms;
package/styles.layer.css CHANGED
@@ -882,6 +882,196 @@ fieldset:disabled .c-active:active {
882
882
  justify-content: center;
883
883
  }
884
884
 
885
+ .m_cfeededf {
886
+ --ai-size-xs: calc(1.125rem * var(--c-scale));
887
+ --ai-size-sm: calc(1.375rem * var(--c-scale));
888
+ --ai-size-md: calc(1.75rem * var(--c-scale));
889
+ --ai-size-lg: calc(2.125rem * var(--c-scale));
890
+ --ai-size-xl: calc(2.75rem * var(--c-scale));
891
+
892
+ --ai-size-input-xs: calc(1.875rem * var(--c-scale));
893
+ --ai-size-input-sm: calc(2.25rem * var(--c-scale));
894
+ --ai-size-input-md: calc(2.625rem * var(--c-scale));
895
+ --ai-size-input-lg: calc(3.125rem * var(--c-scale));
896
+ --ai-size-input-xl: calc(3.75rem * var(--c-scale));
897
+
898
+ --ai-size: var(--ai-size-md);
899
+ --ai-color: var(--c-color-white);
900
+
901
+ line-height: 1;
902
+ display: inline-flex;
903
+ align-items: center;
904
+ justify-content: center;
905
+ position: relative;
906
+ user-select: none;
907
+ overflow: hidden;
908
+
909
+ width: var(--ai-size);
910
+ height: var(--ai-size);
911
+ min-width: var(--ai-size);
912
+ min-height: var(--ai-size);
913
+ border-radius: var(--ai-radius, var(--c-radius-default));
914
+ background: var(--ai-bg, var(--c-color-default));
915
+ color: var(--ai-color, var(--c-color-default-color));
916
+ border: var(--ai-bd, calc(0.0625rem * var(--c-scale)) solid var(--c-color-default-color));
917
+ cursor: pointer;
918
+ }
919
+
920
+ @media (hover: hover) {
921
+ .m_cfeededf:hover:where(:not([data-loading], :disabled, [data-disabled])) {
922
+ background-color: var(--ai-hover, var(--c-color-default-hover));
923
+ color: var(--ai-hover-color, var(--ai-color));
924
+ }
925
+ }
926
+
927
+ @media (hover: none) {
928
+ .m_cfeededf:active:where(:not([data-loading], :disabled, [data-disabled])) {
929
+ background-color: var(--ai-hover, var(--c-color-default-hover));
930
+ color: var(--ai-hover-color, var(--ai-color));
931
+ }
932
+ }
933
+
934
+ .m_cfeededf[data-loading] {
935
+ cursor: not-allowed;
936
+ }
937
+
938
+ .m_cfeededf[data-loading] .m_cfea9a76 {
939
+ opacity: 0;
940
+ transform: translateY(100%);
941
+ }
942
+
943
+ .m_cfeededf:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])) {
944
+ cursor: not-allowed;
945
+ border: calc(0.0625rem * var(--c-scale)) solid transparent;
946
+ color: var(--c-color-disabled-color);
947
+ background: var(--c-color-disabled);
948
+ }
949
+
950
+ .m_cfeededf:where(:disabled:not([data-loading]), [data-disabled]:not([data-loading])):active {
951
+ transform: none;
952
+ }
953
+
954
+ .m_856f02d0 {
955
+ inset: calc(-0.0625rem * var(--c-scale));
956
+ position: absolute;
957
+ border-radius: var(--ai-radius, var(--c-radius-default));
958
+ display: flex;
959
+ align-items: center;
960
+ justify-content: center;
961
+ }
962
+
963
+ :where([data-c-color-scheme='light']) .m_856f02d0 {
964
+ background-color: rgba(255, 255, 255, 0.15);
965
+ }
966
+
967
+ :where([data-c-color-scheme='dark']) .m_856f02d0 {
968
+ background-color: rgba(0, 0, 0, 0.15);
969
+ }
970
+
971
+ .m_2d535822 {
972
+ --ai-border-width: calc(0.0625rem * var(--c-scale));
973
+ display: flex;
974
+ }
975
+
976
+ .m_2d535822 :where(*):focus {
977
+ position: relative;
978
+ z-index: 1;
979
+ }
980
+
981
+ .m_2d535822[data-orientation='horizontal'] {
982
+ flex-direction: row;
983
+ }
984
+
985
+ .m_2d535822[data-orientation='horizontal'] .m_cfeededf:not(:only-child):first-child, .m_2d535822[data-orientation='horizontal'] .m_cb49b463:not(:only-child):first-child {
986
+ border-end-end-radius: 0;
987
+ border-start-end-radius: 0;
988
+ border-inline-end-width: calc(var(--ai-border-width) / 2);
989
+ }
990
+
991
+ .m_2d535822[data-orientation='horizontal'] .m_cfeededf:not(:only-child):last-child, .m_2d535822[data-orientation='horizontal'] .m_cb49b463:not(:only-child):last-child {
992
+ border-end-start-radius: 0;
993
+ border-start-start-radius: 0;
994
+ border-inline-start-width: calc(var(--ai-border-width) / 2);
995
+ }
996
+
997
+ .m_2d535822[data-orientation='horizontal'] .m_cfeededf:not(:only-child):not(:first-child):not(:last-child), .m_2d535822[data-orientation='horizontal'] .m_cb49b463:not(:only-child):not(:first-child):not(:last-child) {
998
+ border-radius: 0;
999
+ border-inline-width: calc(var(--ai-border-width) / 2);
1000
+ }
1001
+
1002
+ .m_2d535822[data-orientation='vertical'] {
1003
+ flex-direction: column;
1004
+ }
1005
+
1006
+ .m_2d535822[data-orientation='vertical'] .m_cfeededf:not(:only-child):first-child, .m_2d535822[data-orientation='vertical'] .m_cb49b463:not(:only-child):first-child {
1007
+ border-end-start-radius: 0;
1008
+ border-end-end-radius: 0;
1009
+ border-bottom-width: calc(var(--ai-border-width) / 2);
1010
+ }
1011
+
1012
+ .m_2d535822[data-orientation='vertical'] .m_cfeededf:not(:only-child):last-child, .m_2d535822[data-orientation='vertical'] .m_cb49b463:not(:only-child):last-child {
1013
+ border-start-start-radius: 0;
1014
+ border-start-end-radius: 0;
1015
+ border-top-width: calc(var(--ai-border-width) / 2);
1016
+ }
1017
+
1018
+ .m_2d535822[data-orientation='vertical'] .m_cfeededf:not(:only-child):not(:first-child):not(:last-child), .m_2d535822[data-orientation='vertical'] .m_cb49b463:not(:only-child):not(:first-child):not(:last-child) {
1019
+ border-radius: 0;
1020
+ border-bottom-width: calc(var(--ai-border-width) / 2);
1021
+ border-top-width: calc(var(--ai-border-width) / 2);
1022
+ }
1023
+
1024
+ .m_cfea9a76 {
1025
+ display: flex;
1026
+ align-items: center;
1027
+ justify-content: center;
1028
+ transition:
1029
+ transform 150ms ease,
1030
+ opacity 100ms ease;
1031
+ width: 100%;
1032
+ height: 100%;
1033
+ }
1034
+
1035
+ .m_cb49b463 {
1036
+ --section-height-xs: calc(1.125rem * var(--c-scale));
1037
+ --section-height-sm: calc(1.375rem * var(--c-scale));
1038
+ --section-height-md: calc(1.75rem * var(--c-scale));
1039
+ --section-height-lg: calc(2.125rem * var(--c-scale));
1040
+ --section-height-xl: calc(2.75rem * var(--c-scale));
1041
+
1042
+ --section-height-input-xs: calc(1.875rem * var(--c-scale));
1043
+ --section-height-input-sm: calc(2.25rem * var(--c-scale));
1044
+ --section-height-input-md: calc(2.625rem * var(--c-scale));
1045
+ --section-height-input-lg: calc(3.125rem * var(--c-scale));
1046
+ --section-height-input-xl: calc(3.75rem * var(--c-scale));
1047
+
1048
+ --section-padding-x-xs: calc(0.375rem * var(--c-scale));
1049
+ --section-padding-x-sm: calc(0.5rem * var(--c-scale));
1050
+ --section-padding-x-md: calc(0.625rem * var(--c-scale));
1051
+ --section-padding-x-lg: calc(0.75rem * var(--c-scale));
1052
+ --section-padding-x-xl: calc(1rem * var(--c-scale));
1053
+
1054
+ --section-height: var(--section-height-sm);
1055
+ --section-padding-x: var(--section-padding-x-sm);
1056
+ --section-color: var(--c-color-white);
1057
+
1058
+ font-weight: var(--c-font-weight-medium);
1059
+ width: auto;
1060
+ border-radius: var(--section-radius, var(--c-radius-default));
1061
+
1062
+ font-size: var(--section-fz, var(--c-font-size-sm));
1063
+ background: var(--section-bg, var(--c-primary-color-filled));
1064
+ border: var(--section-bd, calc(0.0625rem * var(--c-scale)) solid transparent);
1065
+ color: var(--section-color, var(--c-color-white));
1066
+ height: var(--section-height, var(--section-height-sm));
1067
+ padding-inline: var(--section-padding-x, var(--section-padding-x-sm));
1068
+ vertical-align: middle;
1069
+ line-height: 1;
1070
+ display: inline-flex;
1071
+ align-items: center;
1072
+ justify-content: center;
1073
+ }
1074
+
885
1075
  .m_efb192b3 {
886
1076
  --alert-radius: var(--c-radius-default);
887
1077
  --alert-bg: var(--c-primary-color-light);
@@ -1379,6 +1569,31 @@ fieldset:disabled .c-active:active {
1379
1569
  animation: m_1309882b 1.2s linear infinite;
1380
1570
  }
1381
1571
 
1572
+ .m_a4a0a883 {
1573
+ --paper-radius: var(--c-radius-default);
1574
+
1575
+ outline: 0;
1576
+ -webkit-tap-heighlight-color: transparent;
1577
+ display: block;
1578
+ touch-action: manipulation;
1579
+ text-decoration: none;
1580
+ border-radius: var(--paper-radius);
1581
+ box-shadow: var(--paper-shadow);
1582
+ background-color: var(--c-color-body);
1583
+ }
1584
+
1585
+ [data-c-color-scheme='light'] .m_a4a0a883 {
1586
+ --paper-border-color: var(--c-color-gray-3);
1587
+ }
1588
+
1589
+ [data-c-color-scheme='dark'] .m_a4a0a883 {
1590
+ --paper-border-color: var(--c-color-dark-4);
1591
+ }
1592
+
1593
+ .m_a4a0a883:where([data-with-border]) {
1594
+ border: calc(0.0625rem * var(--c-scale)) solid var(--paper-border-color);
1595
+ }
1596
+
1382
1597
  .m_6f2f9f44 {
1383
1598
  --scp-filled-segment-color: var(--c-primary-color-filled);
1384
1599
  --scp-transition-duration: 0ms;