@tcn/ui 0.3.3 → 0.5.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 (131) hide show
  1. package/dist/Color-6BZIO3FS-CWWwv-fq.js +1004 -0
  2. package/dist/Color-6BZIO3FS-CWWwv-fq.js.map +1 -0
  3. package/dist/{WithTooltip-IO6J4KBT-B1oq93K5.js → WithTooltip-65CFNBJE-DvcUZizH.js} +4 -4
  4. package/dist/WithTooltip-65CFNBJE-DvcUZizH.js.map +1 -0
  5. package/dist/actions/__docs__/components/showcase.d.ts.map +1 -1
  6. package/dist/actions/__docs__/components/showcase.js +1 -1
  7. package/dist/actions/button/base_button/base_button.d.ts +2 -4
  8. package/dist/actions/button/base_button/base_button.d.ts.map +1 -1
  9. package/dist/actions/button/base_button/base_button.js +35 -35
  10. package/dist/actions/button/base_button/base_button.js.map +1 -1
  11. package/dist/actions/button/button/button.d.ts +7 -1
  12. package/dist/actions/button/button/button.d.ts.map +1 -1
  13. package/dist/actions/button/button/button.js +9 -7
  14. package/dist/actions/button/button/button.js.map +1 -1
  15. package/dist/actions/button/slim_button/slim_button.d.ts +6 -1
  16. package/dist/actions/button/slim_button/slim_button.d.ts.map +1 -1
  17. package/dist/actions/button/slim_button/slim_button.js +13 -14
  18. package/dist/actions/button/slim_button/slim_button.js.map +1 -1
  19. package/dist/actions/toggle/toggle.d.ts +9 -0
  20. package/dist/actions/toggle/toggle.d.ts.map +1 -0
  21. package/dist/actions/toggle/toggle.js +21 -0
  22. package/dist/actions/toggle/toggle.js.map +1 -0
  23. package/dist/feedback/lazy/lazy.js +3 -3
  24. package/dist/formatter-EIJCOSYU-D6nmx63h.js +6 -0
  25. package/dist/formatter-EIJCOSYU-D6nmx63h.js.map +1 -0
  26. package/dist/inputs/mask_input/mask.d.ts.map +1 -1
  27. package/dist/inputs/mask_input/mask.js.map +1 -1
  28. package/dist/inputs/multiselect/multiselect_inline_values.js +3 -2
  29. package/dist/inputs/multiselect/multiselect_inline_values.js.map +1 -1
  30. package/dist/inputs/multiselect/multiselect_values.js +3 -2
  31. package/dist/inputs/multiselect/multiselect_values.js.map +1 -1
  32. package/dist/layouts/index.d.ts +3 -1
  33. package/dist/layouts/index.d.ts.map +1 -1
  34. package/dist/layouts/index.js +22 -18
  35. package/dist/layouts/index.js.map +1 -1
  36. package/dist/layouts/row/row.d.ts +4 -0
  37. package/dist/layouts/row/row.d.ts.map +1 -0
  38. package/dist/layouts/row/row.js +11 -0
  39. package/dist/layouts/row/row.js.map +1 -0
  40. package/dist/layouts/section/heading.d.ts +7 -0
  41. package/dist/layouts/section/heading.d.ts.map +1 -0
  42. package/dist/layouts/section/heading.js +9 -0
  43. package/dist/layouts/section/heading.js.map +1 -0
  44. package/dist/layouts/section/section.d.ts +4 -0
  45. package/dist/layouts/section/section.d.ts.map +1 -0
  46. package/dist/layouts/section/section.js +22 -0
  47. package/dist/layouts/section/section.js.map +1 -0
  48. package/dist/navigation/tabs/primitives/tabs_list.d.ts.map +1 -1
  49. package/dist/navigation/tabs/primitives/tabs_list.js +17 -24
  50. package/dist/navigation/tabs/primitives/tabs_list.js.map +1 -1
  51. package/dist/overlay/carrot/base_carrot.d.ts +8 -0
  52. package/dist/overlay/carrot/base_carrot.d.ts.map +1 -0
  53. package/dist/overlay/carrot/base_carrot.js +21 -0
  54. package/dist/overlay/carrot/base_carrot.js.map +1 -0
  55. package/dist/row.css +1 -0
  56. package/dist/section.css +1 -0
  57. package/dist/section.module-0wyGkhDg.js +5 -0
  58. package/dist/section.module-0wyGkhDg.js.map +1 -0
  59. package/dist/{showcase-WfP6kBEb.js → showcase-DK557szS.js} +18018 -16269
  60. package/dist/showcase-DK557szS.js.map +1 -0
  61. package/dist/surfaces/pop_confirm/pop_confirm.js +6 -3
  62. package/dist/surfaces/pop_confirm/pop_confirm.js.map +1 -1
  63. package/dist/{syntaxhighlighter-IQDEPFLK-BX_eF8__.js → syntaxhighlighter-ED5Y7EFY-DaMS-2cF.js} +54 -54
  64. package/dist/syntaxhighlighter-ED5Y7EFY-DaMS-2cF.js.map +1 -0
  65. package/dist/themes/themes/ergo/ergo_theme.css +1 -1
  66. package/dist/themes/themes/ergo/ergo_theme.js +403 -263
  67. package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
  68. package/dist/themes/themes/windows_98/windows_98.css +1 -1
  69. package/dist/themes/themes/windows_98/windows_98_theme.js +108 -1
  70. package/dist/themes/themes/windows_98/windows_98_theme.js.map +1 -1
  71. package/dist/tokens/index.d.ts +2 -0
  72. package/dist/tokens/index.d.ts.map +1 -1
  73. package/dist/tokens/index.js +5 -1
  74. package/dist/tokens/index.js.map +1 -1
  75. package/dist/tokens/key/key.d.ts +3 -0
  76. package/dist/tokens/key/key.d.ts.map +1 -0
  77. package/dist/tokens/key/key.js +8 -0
  78. package/dist/tokens/key/key.js.map +1 -0
  79. package/dist/tokens/value/value.d.ts +3 -0
  80. package/dist/tokens/value/value.d.ts.map +1 -0
  81. package/dist/tokens/value/value.js +8 -0
  82. package/dist/tokens/value/value.js.map +1 -0
  83. package/package.json +1 -1
  84. package/src/actions/__docs__/actions.mdx +159 -34
  85. package/src/actions/__docs__/actions.stories.tsx +416 -101
  86. package/src/actions/__docs__/components/showcase.tsx +10 -6
  87. package/src/actions/button/__stories__/button.stories.tsx +10 -0
  88. package/src/actions/button/__stories__/toggle.stories.tsx +177 -0
  89. package/src/actions/button/base_button/base_button.tsx +8 -10
  90. package/src/actions/button/button/button.tsx +11 -2
  91. package/src/actions/button/slim_button/slim_button.tsx +20 -13
  92. package/src/actions/toggle/toggle.tsx +26 -0
  93. package/src/inputs/mask_input/mask.ts +7 -1
  94. package/src/layouts/index.ts +4 -2
  95. package/src/layouts/row/row.module.css +5 -0
  96. package/src/layouts/row/row.tsx +15 -0
  97. package/src/layouts/section/__stories__/section.stories.module.css +6 -0
  98. package/src/layouts/section/__stories__/section.stories.tsx +152 -0
  99. package/src/layouts/section/heading.tsx +16 -0
  100. package/src/layouts/section/section.module.css +41 -0
  101. package/src/layouts/section/section.tsx +21 -0
  102. package/src/navigation/tabs/primitives/tabs_list.tsx +5 -6
  103. package/src/overlay/carrot/base_carrot.tsx +24 -0
  104. package/src/overlay/carrot/carrot.stories.tsx +54 -0
  105. package/src/surfaces/card/card.stories.tsx +14 -14
  106. package/src/surfaces/modal/__stories__/modal.stories.tsx +16 -7
  107. package/src/surfaces/window/window.stories.tsx +16 -10
  108. package/src/themes/themes/ergo/__stories__/components/material_picker/sb_inverted_materials.module.css +4 -4
  109. package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_picker.module.css +3 -0
  110. package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_picker.tsx +5 -2
  111. package/src/themes/themes/ergo/__stories__/material.stories.tsx +2 -2
  112. package/src/themes/themes/ergo/__stories__/sb_materials.module.css +31 -26
  113. package/src/themes/themes/ergo/ergo_theme.css +400 -260
  114. package/src/themes/themes/windows_98/windows_98.css +108 -1
  115. package/src/tokens/index.ts +2 -0
  116. package/src/tokens/key/key.tsx +10 -0
  117. package/src/tokens/value/value.tsx +10 -0
  118. package/tsconfig.json +6 -0
  119. package/dist/Color-ASIRERSW-B4GaVKuQ.js +0 -990
  120. package/dist/Color-ASIRERSW-B4GaVKuQ.js.map +0 -1
  121. package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js.map +0 -1
  122. package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js +0 -6
  123. package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js.map +0 -1
  124. package/dist/layouts/list/section_header.d.ts +0 -6
  125. package/dist/layouts/list/section_header.d.ts.map +0 -1
  126. package/dist/layouts/list/section_header.js +0 -22
  127. package/dist/layouts/list/section_header.js.map +0 -1
  128. package/dist/showcase-WfP6kBEb.js.map +0 -1
  129. package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js.map +0 -1
  130. package/src/layouts/list/section_header.module.css +0 -20
  131. package/src/layouts/list/section_header.tsx +0 -21
@@ -57,7 +57,6 @@
57
57
  font-family: var(--font-family);
58
58
  color: var(--font-color);
59
59
  -webkit-font-smoothing: none;
60
- background-color: var(--background-color-primary);
61
60
  }
62
61
 
63
62
  /* ===== TYPOGRAPHY ===== */
@@ -1036,6 +1035,114 @@
1036
1035
  border-right: 1px solid #f5f5f5;
1037
1036
  border-left: 1px solid #808080;
1038
1037
  }
1038
+
1039
+ /* ===== SECTIONS ===== */
1040
+
1041
+ .tcn-section {
1042
+ background: silver;
1043
+ gap: 0px;
1044
+ font-size: 12px;
1045
+ }
1046
+
1047
+ .tcn-heading {
1048
+ background: silver;
1049
+ padding-inline-start: 8px;
1050
+ height: 23px;
1051
+ z-index: 5;
1052
+ box-shadow:
1053
+ inset -1px -1px #0a0a0a,
1054
+ inset 1px 1px #fff,
1055
+ inset -2px -2px grey,
1056
+ inset 2px 2px #c0c0c0;
1057
+ }
1058
+
1059
+ .tcn-section > .tcn-heading {
1060
+ top: 0;
1061
+ padding-inline-start: 8px;
1062
+ z-index: 4;
1063
+ }
1064
+
1065
+ .tcn-section > .tcn-section > .tcn-heading {
1066
+ top: 23px;
1067
+ padding-inline-start: 12px;
1068
+ z-index: 3;
1069
+ }
1070
+
1071
+ .tcn-section > .tcn-section > .tcn-section > .tcn-heading {
1072
+ top: 46px;
1073
+ padding-inline-start: 16px;
1074
+ z-index: 2;
1075
+ }
1076
+
1077
+ .tcn-section > .tcn-section > .tcn-section > .tcn-section .tcn-heading {
1078
+ top: 69px;
1079
+ padding-inline-start: 20px;
1080
+ z-index: 1;
1081
+ }
1082
+
1083
+ .tcn-section > :not(.tcn-heading, .tcn-section) {
1084
+ padding-inline-start: 8px;
1085
+ }
1086
+
1087
+ .tcn-section > .tcn-section > :not(.tcn-heading, .tcn-section) {
1088
+ padding-inline-start: 12px;
1089
+ }
1090
+
1091
+ .tcn-section > .tcn-section > .tcn-section > :not(.tcn-heading, .tcn-section) {
1092
+ padding-inline-start: 16px;
1093
+ }
1094
+
1095
+ .tcn-section
1096
+ > .tcn-section
1097
+ > .tcn-section
1098
+ > .tcn-section
1099
+ > :not(.tcn-heading, .tcn-section) {
1100
+ padding-inline-start: 20px;
1101
+ }
1102
+
1103
+ .tcn-section > .tcn-row {
1104
+ background: #fff;
1105
+ padding: 4px;
1106
+ font-size: 12px;
1107
+ gap: 4px;
1108
+ }
1109
+
1110
+ .tcn-base-carrot {
1111
+ --carrot-size: 12px;
1112
+ --carrot-triangle-height: calc(var(--carrot-size) / 2);
1113
+ --carrot-triangle-width: var(--carrot-size);
1114
+ --carrot-triangle-base: var(--carrot-triangle-height) solid transparent;
1115
+ --carrot-triangle-peak: var(--carrot-triangle-width) solid #000;
1116
+
1117
+ width: 0;
1118
+ height: 0;
1119
+ flex-grow: 0;
1120
+ display: inline-block;
1121
+
1122
+ &[data-direction="top"] {
1123
+ border-bottom: var(--carrot-triangle-peak);
1124
+ border-left: var(--carrot-triangle-base);
1125
+ border-right: var(--carrot-triangle-base);
1126
+ }
1127
+
1128
+ &[data-direction="bottom"] {
1129
+ border-top: var(--carrot-triangle-peak);
1130
+ border-left: var(--carrot-triangle-base);
1131
+ border-right: var(--carrot-triangle-base);
1132
+ }
1133
+
1134
+ &[data-direction="start"] {
1135
+ border-right: var(--carrot-triangle-peak);
1136
+ border-top: var(--carrot-triangle-base);
1137
+ border-bottom: var(--carrot-triangle-base);
1138
+ }
1139
+
1140
+ &[data-direction="end"] {
1141
+ border-left: var(--carrot-triangle-peak);
1142
+ border-top: var(--carrot-triangle-base);
1143
+ border-bottom: var(--carrot-triangle-base);
1144
+ }
1145
+ }
1039
1146
  }
1040
1147
 
1041
1148
  /* ===== TABS ===== */
@@ -1,3 +1,5 @@
1
1
  export * from './chip/chip.js';
2
2
  export * from './badge/badge.js';
3
3
  export * from './bubble/bubble.js';
4
+ export * from './key/key.js';
5
+ export * from './value/value.js';
@@ -0,0 +1,10 @@
1
+ import clsx from 'clsx';
2
+ import { HStack, HStackProps } from '../../stacks/h_stack.js';
3
+
4
+ export const Key = ({ children, className, hAlign = 'start', ...props }: HStackProps) => {
5
+ return (
6
+ <HStack className={clsx(className, 'tcn-key')} hAlign={hAlign} {...props}>
7
+ {children}
8
+ </HStack>
9
+ );
10
+ };
@@ -0,0 +1,10 @@
1
+ import clsx from 'clsx';
2
+ import { HStack, HStackProps } from '../../stacks/h_stack.js';
3
+
4
+ export const Value = ({ children, className, hAlign = 'end', ...props }: HStackProps) => {
5
+ return (
6
+ <HStack className={clsx(className, 'tcn-value')} hAlign={hAlign} {...props}>
7
+ {children}
8
+ </HStack>
9
+ );
10
+ };
package/tsconfig.json CHANGED
@@ -12,6 +12,9 @@
12
12
  "~icons/*": [
13
13
  "../icons/src/*"
14
14
  ],
15
+ "~resource-store/*": [
16
+ "../resource-store/src/*"
17
+ ],
15
18
  "~sb-blackcat-addon/*": [
16
19
  "../sb-blackcat-addon/src/*"
17
20
  ],
@@ -20,6 +23,9 @@
20
23
  ],
21
24
  "~ui/*": [
22
25
  "./src/*"
26
+ ],
27
+ "~ui-table/*": [
28
+ "../ui-table/src/*"
23
29
  ]
24
30
  }
25
31
  },