@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.
- package/dist/Color-6BZIO3FS-CWWwv-fq.js +1004 -0
- package/dist/Color-6BZIO3FS-CWWwv-fq.js.map +1 -0
- package/dist/{WithTooltip-IO6J4KBT-B1oq93K5.js → WithTooltip-65CFNBJE-DvcUZizH.js} +4 -4
- package/dist/WithTooltip-65CFNBJE-DvcUZizH.js.map +1 -0
- package/dist/actions/__docs__/components/showcase.d.ts.map +1 -1
- package/dist/actions/__docs__/components/showcase.js +1 -1
- package/dist/actions/button/base_button/base_button.d.ts +2 -4
- package/dist/actions/button/base_button/base_button.d.ts.map +1 -1
- package/dist/actions/button/base_button/base_button.js +35 -35
- package/dist/actions/button/base_button/base_button.js.map +1 -1
- package/dist/actions/button/button/button.d.ts +7 -1
- package/dist/actions/button/button/button.d.ts.map +1 -1
- package/dist/actions/button/button/button.js +9 -7
- package/dist/actions/button/button/button.js.map +1 -1
- package/dist/actions/button/slim_button/slim_button.d.ts +6 -1
- package/dist/actions/button/slim_button/slim_button.d.ts.map +1 -1
- package/dist/actions/button/slim_button/slim_button.js +13 -14
- package/dist/actions/button/slim_button/slim_button.js.map +1 -1
- package/dist/actions/toggle/toggle.d.ts +9 -0
- package/dist/actions/toggle/toggle.d.ts.map +1 -0
- package/dist/actions/toggle/toggle.js +21 -0
- package/dist/actions/toggle/toggle.js.map +1 -0
- package/dist/feedback/lazy/lazy.js +3 -3
- package/dist/formatter-EIJCOSYU-D6nmx63h.js +6 -0
- package/dist/formatter-EIJCOSYU-D6nmx63h.js.map +1 -0
- package/dist/inputs/mask_input/mask.d.ts.map +1 -1
- package/dist/inputs/mask_input/mask.js.map +1 -1
- package/dist/inputs/multiselect/multiselect_inline_values.js +3 -2
- package/dist/inputs/multiselect/multiselect_inline_values.js.map +1 -1
- package/dist/inputs/multiselect/multiselect_values.js +3 -2
- package/dist/inputs/multiselect/multiselect_values.js.map +1 -1
- package/dist/layouts/index.d.ts +3 -1
- package/dist/layouts/index.d.ts.map +1 -1
- package/dist/layouts/index.js +22 -18
- package/dist/layouts/index.js.map +1 -1
- package/dist/layouts/row/row.d.ts +4 -0
- package/dist/layouts/row/row.d.ts.map +1 -0
- package/dist/layouts/row/row.js +11 -0
- package/dist/layouts/row/row.js.map +1 -0
- package/dist/layouts/section/heading.d.ts +7 -0
- package/dist/layouts/section/heading.d.ts.map +1 -0
- package/dist/layouts/section/heading.js +9 -0
- package/dist/layouts/section/heading.js.map +1 -0
- package/dist/layouts/section/section.d.ts +4 -0
- package/dist/layouts/section/section.d.ts.map +1 -0
- package/dist/layouts/section/section.js +22 -0
- package/dist/layouts/section/section.js.map +1 -0
- package/dist/navigation/tabs/primitives/tabs_list.d.ts.map +1 -1
- package/dist/navigation/tabs/primitives/tabs_list.js +17 -24
- package/dist/navigation/tabs/primitives/tabs_list.js.map +1 -1
- package/dist/overlay/carrot/base_carrot.d.ts +8 -0
- package/dist/overlay/carrot/base_carrot.d.ts.map +1 -0
- package/dist/overlay/carrot/base_carrot.js +21 -0
- package/dist/overlay/carrot/base_carrot.js.map +1 -0
- package/dist/row.css +1 -0
- package/dist/section.css +1 -0
- package/dist/section.module-0wyGkhDg.js +5 -0
- package/dist/section.module-0wyGkhDg.js.map +1 -0
- package/dist/{showcase-WfP6kBEb.js → showcase-DK557szS.js} +18018 -16269
- package/dist/showcase-DK557szS.js.map +1 -0
- package/dist/surfaces/pop_confirm/pop_confirm.js +6 -3
- package/dist/surfaces/pop_confirm/pop_confirm.js.map +1 -1
- package/dist/{syntaxhighlighter-IQDEPFLK-BX_eF8__.js → syntaxhighlighter-ED5Y7EFY-DaMS-2cF.js} +54 -54
- package/dist/syntaxhighlighter-ED5Y7EFY-DaMS-2cF.js.map +1 -0
- package/dist/themes/themes/ergo/ergo_theme.css +1 -1
- package/dist/themes/themes/ergo/ergo_theme.js +403 -263
- package/dist/themes/themes/ergo/ergo_theme.js.map +1 -1
- package/dist/themes/themes/windows_98/windows_98.css +1 -1
- package/dist/themes/themes/windows_98/windows_98_theme.js +108 -1
- package/dist/themes/themes/windows_98/windows_98_theme.js.map +1 -1
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +5 -1
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/key/key.d.ts +3 -0
- package/dist/tokens/key/key.d.ts.map +1 -0
- package/dist/tokens/key/key.js +8 -0
- package/dist/tokens/key/key.js.map +1 -0
- package/dist/tokens/value/value.d.ts +3 -0
- package/dist/tokens/value/value.d.ts.map +1 -0
- package/dist/tokens/value/value.js +8 -0
- package/dist/tokens/value/value.js.map +1 -0
- package/package.json +1 -1
- package/src/actions/__docs__/actions.mdx +159 -34
- package/src/actions/__docs__/actions.stories.tsx +416 -101
- package/src/actions/__docs__/components/showcase.tsx +10 -6
- package/src/actions/button/__stories__/button.stories.tsx +10 -0
- package/src/actions/button/__stories__/toggle.stories.tsx +177 -0
- package/src/actions/button/base_button/base_button.tsx +8 -10
- package/src/actions/button/button/button.tsx +11 -2
- package/src/actions/button/slim_button/slim_button.tsx +20 -13
- package/src/actions/toggle/toggle.tsx +26 -0
- package/src/inputs/mask_input/mask.ts +7 -1
- package/src/layouts/index.ts +4 -2
- package/src/layouts/row/row.module.css +5 -0
- package/src/layouts/row/row.tsx +15 -0
- package/src/layouts/section/__stories__/section.stories.module.css +6 -0
- package/src/layouts/section/__stories__/section.stories.tsx +152 -0
- package/src/layouts/section/heading.tsx +16 -0
- package/src/layouts/section/section.module.css +41 -0
- package/src/layouts/section/section.tsx +21 -0
- package/src/navigation/tabs/primitives/tabs_list.tsx +5 -6
- package/src/overlay/carrot/base_carrot.tsx +24 -0
- package/src/overlay/carrot/carrot.stories.tsx +54 -0
- package/src/surfaces/card/card.stories.tsx +14 -14
- package/src/surfaces/modal/__stories__/modal.stories.tsx +16 -7
- package/src/surfaces/window/window.stories.tsx +16 -10
- package/src/themes/themes/ergo/__stories__/components/material_picker/sb_inverted_materials.module.css +4 -4
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_picker.module.css +3 -0
- package/src/themes/themes/ergo/__stories__/components/tone_picker/sb_tone_picker.tsx +5 -2
- package/src/themes/themes/ergo/__stories__/material.stories.tsx +2 -2
- package/src/themes/themes/ergo/__stories__/sb_materials.module.css +31 -26
- package/src/themes/themes/ergo/ergo_theme.css +400 -260
- package/src/themes/themes/windows_98/windows_98.css +108 -1
- package/src/tokens/index.ts +2 -0
- package/src/tokens/key/key.tsx +10 -0
- package/src/tokens/value/value.tsx +10 -0
- package/tsconfig.json +6 -0
- package/dist/Color-ASIRERSW-B4GaVKuQ.js +0 -990
- package/dist/Color-ASIRERSW-B4GaVKuQ.js.map +0 -1
- package/dist/WithTooltip-IO6J4KBT-B1oq93K5.js.map +0 -1
- package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js +0 -6
- package/dist/formatter-QJ4M4OGQ-DaIl2Wi_.js.map +0 -1
- package/dist/layouts/list/section_header.d.ts +0 -6
- package/dist/layouts/list/section_header.d.ts.map +0 -1
- package/dist/layouts/list/section_header.js +0 -22
- package/dist/layouts/list/section_header.js.map +0 -1
- package/dist/showcase-WfP6kBEb.js.map +0 -1
- package/dist/syntaxhighlighter-IQDEPFLK-BX_eF8__.js.map +0 -1
- package/src/layouts/list/section_header.module.css +0 -20
- 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 ===== */
|
package/src/tokens/index.ts
CHANGED
|
@@ -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
|
},
|