@hellboy/ds 0.1.3 → 0.2.7
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/README.md +512 -162
- package/{src/style/components/badge → dist/components}/badge.css +9 -25
- package/dist/components/badge.d.mts +12 -0
- package/dist/components/badge.d.ts +12 -0
- package/dist/components/badge.js +42 -0
- package/dist/components/badge.mjs +15 -0
- package/dist/components/banner.css +280 -0
- package/dist/components/banner.d.mts +12 -0
- package/dist/components/banner.d.ts +12 -0
- package/dist/components/banner.js +184 -0
- package/dist/components/banner.mjs +147 -0
- package/dist/components/button-group.css +289 -0
- package/dist/components/button-group.d.mts +81 -0
- package/dist/components/button-group.d.ts +81 -0
- package/dist/components/button-group.js +180 -0
- package/dist/components/button-group.mjs +143 -0
- package/{src/style/components/button → dist/components}/button.css +59 -62
- package/dist/components/button.d.mts +57 -0
- package/dist/components/button.d.ts +57 -0
- package/dist/components/button.js +129 -0
- package/dist/components/button.mjs +92 -0
- package/{src/style/components/card → dist/components}/card.css +9 -30
- package/dist/components/card.d.mts +31 -0
- package/dist/components/card.d.ts +31 -0
- package/dist/components/card.js +59 -0
- package/dist/components/card.mjs +32 -0
- package/{src/style → dist}/components/checkbox.css +51 -43
- package/dist/components/checkbox.d.mts +31 -0
- package/dist/components/checkbox.d.ts +31 -0
- package/dist/components/checkbox.js +130 -0
- package/dist/components/checkbox.mjs +93 -0
- package/{src/style/components/code-block → dist/components}/code-block.css +3 -7
- package/dist/components/code-block.d.mts +24 -0
- package/dist/components/code-block.d.ts +24 -0
- package/dist/components/code-block.js +43 -0
- package/dist/components/code-block.mjs +16 -0
- package/dist/components/color-control.css +285 -0
- package/dist/components/color-control.d.mts +5 -0
- package/dist/components/color-control.d.ts +5 -0
- package/dist/components/color-control.js +534 -0
- package/dist/components/color-control.mjs +497 -0
- package/dist/components/dialog.css +930 -0
- package/dist/components/dialog.d.mts +32 -0
- package/dist/components/dialog.d.ts +32 -0
- package/dist/components/dialog.js +1111 -0
- package/dist/components/dialog.mjs +1074 -0
- package/dist/components/divider.css +356 -0
- package/dist/components/divider.d.mts +32 -0
- package/dist/components/divider.d.ts +32 -0
- package/dist/components/divider.js +344 -0
- package/dist/components/divider.mjs +307 -0
- package/{src/style/components/drag-handle → dist/components}/drag-handle.css +3 -18
- package/dist/components/drag-handle.d.mts +11 -0
- package/dist/components/drag-handle.d.ts +11 -0
- package/dist/components/drag-handle.js +103 -0
- package/dist/components/drag-handle.mjs +66 -0
- package/dist/components/drawer.css +1027 -0
- package/dist/components/drawer.d.mts +14 -0
- package/dist/components/drawer.d.ts +14 -0
- package/dist/components/drawer.js +1072 -0
- package/dist/components/drawer.mjs +1035 -0
- package/dist/components/floating-bar.css +17 -0
- package/dist/components/floating-bar.d.mts +25 -0
- package/dist/components/floating-bar.d.ts +25 -0
- package/dist/components/floating-bar.js +52 -0
- package/dist/components/floating-bar.mjs +25 -0
- package/dist/components/footer.css +40 -0
- package/dist/components/footer.d.mts +8 -0
- package/dist/components/footer.d.ts +8 -0
- package/dist/components/footer.js +44 -0
- package/dist/components/footer.mjs +17 -0
- package/dist/components/grid.css +47 -0
- package/dist/components/grid.d.mts +27 -0
- package/dist/components/grid.d.ts +27 -0
- package/dist/components/grid.js +52 -0
- package/dist/components/grid.mjs +25 -0
- package/dist/components/header.css +1075 -0
- package/dist/components/header.d.mts +35 -0
- package/dist/components/header.d.ts +35 -0
- package/dist/components/header.js +1402 -0
- package/dist/components/header.mjs +1365 -0
- package/dist/components/hero.css +121 -0
- package/dist/components/hero.d.mts +111 -0
- package/dist/components/hero.d.ts +111 -0
- package/dist/components/hero.js +285 -0
- package/dist/components/hero.mjs +248 -0
- package/{src/style/components/icons → dist/components}/icons.css +14 -15
- package/dist/components/icons.d.mts +104 -0
- package/dist/components/icons.d.ts +104 -0
- package/dist/components/icons.js +239 -0
- package/dist/components/icons.mjs +203 -0
- package/{src/style/components/input → dist/components}/input.css +189 -102
- package/dist/components/input.d.mts +114 -0
- package/dist/components/input.d.ts +114 -0
- package/dist/components/input.js +926 -0
- package/dist/components/input.mjs +879 -0
- package/dist/components/layout.css +551 -0
- package/dist/components/layout.d.mts +16 -0
- package/dist/components/layout.d.ts +16 -0
- package/dist/components/layout.js +387 -0
- package/dist/components/layout.mjs +352 -0
- package/{src/style/components/list → dist/components}/list.css +47 -41
- package/dist/components/list.d.mts +46 -0
- package/dist/components/list.d.ts +46 -0
- package/dist/components/list.js +124 -0
- package/dist/components/list.mjs +96 -0
- package/dist/components/navbar.css +706 -0
- package/dist/components/navbar.d.mts +56 -0
- package/dist/components/navbar.d.ts +56 -0
- package/dist/components/navbar.js +994 -0
- package/dist/components/navbar.mjs +952 -0
- package/{src/style/components/page-index → dist/components}/page-index.css +2 -47
- package/dist/components/page-index.d.mts +25 -0
- package/dist/components/page-index.d.ts +25 -0
- package/dist/components/page-index.js +239 -0
- package/dist/components/page-index.mjs +202 -0
- package/{src/style/components/page → dist/components}/page.css +4 -15
- package/dist/components/page.d.mts +30 -0
- package/dist/components/page.d.ts +30 -0
- package/dist/components/page.js +40 -0
- package/dist/components/page.mjs +13 -0
- package/dist/components/popover.css +87 -0
- package/dist/components/popover.d.mts +22 -0
- package/dist/components/popover.d.ts +22 -0
- package/dist/components/popover.js +243 -0
- package/dist/components/popover.mjs +206 -0
- package/{src/style → dist}/components/radio.css +8 -51
- package/dist/components/radio.d.mts +59 -0
- package/dist/components/radio.d.ts +59 -0
- package/dist/components/radio.js +133 -0
- package/dist/components/radio.mjs +95 -0
- package/dist/components/section.css +993 -0
- package/dist/components/section.d.mts +33 -0
- package/dist/components/section.d.ts +33 -0
- package/dist/components/section.js +1401 -0
- package/dist/components/section.mjs +1364 -0
- package/dist/components/select.css +391 -0
- package/dist/components/select.d.mts +63 -0
- package/dist/components/select.d.ts +63 -0
- package/dist/components/select.js +452 -0
- package/dist/components/select.mjs +415 -0
- package/{src/style/components/slider → dist/components}/slider.css +55 -33
- package/dist/components/slider.d.mts +69 -0
- package/dist/components/slider.d.ts +69 -0
- package/dist/components/slider.js +254 -0
- package/dist/components/slider.mjs +217 -0
- package/dist/components/switch.css +1081 -0
- package/dist/components/switch.d.mts +33 -0
- package/dist/components/switch.d.ts +33 -0
- package/dist/components/switch.js +1092 -0
- package/dist/components/switch.mjs +1055 -0
- package/{src/style/components/table → dist/components}/table.css +3 -28
- package/dist/components/table.d.mts +42 -0
- package/dist/components/table.d.ts +42 -0
- package/dist/components/table.js +108 -0
- package/dist/components/table.mjs +76 -0
- package/dist/components/tag.css +97 -0
- package/dist/components/tag.d.mts +12 -0
- package/dist/components/tag.d.ts +12 -0
- package/dist/components/tag.js +42 -0
- package/dist/components/tag.mjs +15 -0
- package/dist/components/textarea.css +1359 -0
- package/dist/components/textarea.d.mts +84 -0
- package/dist/components/textarea.d.ts +84 -0
- package/dist/components/textarea.js +1962 -0
- package/dist/components/textarea.mjs +1924 -0
- package/{src/style/components/theme-control → dist/components}/theme-control.css +3 -7
- package/dist/components/theme-control.d.mts +9 -0
- package/dist/components/theme-control.d.ts +9 -0
- package/dist/components/theme-control.js +235 -0
- package/dist/components/theme-control.mjs +200 -0
- package/{src/style/components/tooltip → dist/components}/tooltip.css +5 -13
- package/dist/components/tooltip.d.mts +12 -0
- package/dist/components/tooltip.d.ts +12 -0
- package/dist/components/tooltip.js +200 -0
- package/dist/components/tooltip.mjs +163 -0
- package/dist/icons-Czahnf-r.d.mts +15 -0
- package/dist/icons-Czahnf-r.d.ts +15 -0
- package/dist/index.css +2914 -2067
- package/dist/index.d.mts +144 -721
- package/dist/index.d.ts +144 -721
- package/dist/index.js +4076 -2282
- package/dist/index.mjs +4132 -2366
- package/dist/theme.css +34 -34
- package/package.json +27 -8
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/hellboy-ds-0.1.2.tgz +0 -0
- package/src/components/badge/Badge.tsx +0 -29
- package/src/components/badge/index.ts +0 -1
- package/src/components/banner/Banner.tsx +0 -48
- package/src/components/banner/banner.css +0 -44
- package/src/components/banner/index.ts +0 -1
- package/src/components/button/button.tsx +0 -127
- package/src/components/button/index.ts +0 -1
- package/src/components/card/card.tsx +0 -57
- package/src/components/card/index.ts +0 -1
- package/src/components/checkbox/Checkbox.tsx +0 -98
- package/src/components/checkbox/index.ts +0 -1
- package/src/components/code-block/code-block.tsx +0 -44
- package/src/components/code-block/index.ts +0 -1
- package/src/components/color-control/color-control.tsx +0 -322
- package/src/components/color-control/index.ts +0 -1
- package/src/components/drag-handle/DragHandle.tsx +0 -78
- package/src/components/drag-handle/index.ts +0 -1
- package/src/components/drawer/drawer.tsx +0 -82
- package/src/components/drawer/index.ts +0 -1
- package/src/components/floating-bar/floating-bar.tsx +0 -52
- package/src/components/floating-bar/index.ts +0 -2
- package/src/components/footer/footer.tsx +0 -28
- package/src/components/footer/index.ts +0 -1
- package/src/components/grid/Grid.tsx +0 -53
- package/src/components/grid/index.ts +0 -1
- package/src/components/header/header.tsx +0 -57
- package/src/components/header/index.ts +0 -1
- package/src/components/icons/icons.tsx +0 -44
- package/src/components/icons/index.ts +0 -1
- package/src/components/index.ts +0 -29
- package/src/components/input/DatePicker.tsx +0 -133
- package/src/components/input/Input.tsx +0 -220
- package/src/components/input/InputDate.tsx +0 -10
- package/src/components/input/InputDateTime.tsx +0 -10
- package/src/components/input/InputEmail.tsx +0 -10
- package/src/components/input/InputField.tsx +0 -137
- package/src/components/input/InputNumber.tsx +0 -10
- package/src/components/input/InputPassword.tsx +0 -10
- package/src/components/input/InputSearch.tsx +0 -10
- package/src/components/input/InputTel.tsx +0 -10
- package/src/components/input/InputText.tsx +0 -10
- package/src/components/input/InputTime.tsx +0 -10
- package/src/components/input/InputUrl.tsx +0 -10
- package/src/components/input/TimePicker.tsx +0 -151
- package/src/components/input/index.ts +0 -11
- package/src/components/layout/Layout.tsx +0 -244
- package/src/components/layout/index.ts +0 -1
- package/src/components/list/List.tsx +0 -159
- package/src/components/list/index.ts +0 -1
- package/src/components/navbar/MenuCategory.tsx +0 -20
- package/src/components/navbar/MenuGroup.tsx +0 -288
- package/src/components/navbar/MenuItem.tsx +0 -65
- package/src/components/navbar/Navbar.tsx +0 -23
- package/src/components/navbar/index.ts +0 -4
- package/src/components/page/index.ts +0 -1
- package/src/components/page/page.tsx +0 -46
- package/src/components/page-index/PageIndex.tsx +0 -275
- package/src/components/page-index/index.ts +0 -1
- package/src/components/popover/index.ts +0 -1
- package/src/components/popover/popover.tsx +0 -199
- package/src/components/radio/Radio.tsx +0 -176
- package/src/components/radio/index.ts +0 -1
- package/src/components/section/index.ts +0 -1
- package/src/components/section/section.tsx +0 -66
- package/src/components/select/Select.tsx +0 -212
- package/src/components/select/index.ts +0 -1
- package/src/components/slider/Slider.tsx +0 -267
- package/src/components/slider/index.ts +0 -1
- package/src/components/switch/index.ts +0 -1
- package/src/components/switch/switch.tsx +0 -99
- package/src/components/table/Table.tsx +0 -147
- package/src/components/table/index.ts +0 -1
- package/src/components/theme-control/index.ts +0 -1
- package/src/components/theme-control/theme-control.tsx +0 -78
- package/src/components/tooltip/index.ts +0 -1
- package/src/components/tooltip/tooltip.tsx +0 -207
- package/src/contexts/NavbarTooltipContext.tsx +0 -48
- package/src/contexts/index.ts +0 -1
- package/src/foundations/motion.md +0 -136
- package/src/index.ts +0 -40
- package/src/style/_shared/field.css +0 -69
- package/src/style/components/color-control/color-control.css +0 -126
- package/src/style/components/drawer/drawer.css +0 -210
- package/src/style/components/floating-bar/floating-bar.css +0 -39
- package/src/style/components/footer/footer.css +0 -108
- package/src/style/components/grid/grid.css +0 -33
- package/src/style/components/header/header.css +0 -44
- package/src/style/components/layout/layout.css +0 -205
- package/src/style/components/navbar/navbar.css +0 -342
- package/src/style/components/popover/popover.css +0 -44
- package/src/style/components/section/section.css +0 -67
- package/src/style/components/select/select.css +0 -143
- package/src/style/components/switch/switch.css +0 -267
- package/src/style/foundations/global.css +0 -316
- package/src/style/foundations/motion.css +0 -164
- package/src/style/foundations/spacing.css +0 -51
- package/src/style/foundations/typography.css +0 -39
- package/src/style/foundations/z-index.css +0 -81
- package/src/style/modes/dark.css +0 -146
- package/src/style/modes/light.css +0 -147
- package/src/style/semantic.css +0 -52
- package/src/style/styles.css +0 -51
- package/src/style/themes/theme.json +0 -37
- package/src/utils/README.md +0 -305
- package/src/utils/USER_PREFERENCES.md +0 -558
- package/src/utils/theme.ts +0 -127
- package/src/utils/user-preferences.ts +0 -577
- package/tsconfig.json +0 -25
- package/tsup.config.ts +0 -52
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
/* src/style/components/divider/divider.css */
|
|
2
|
+
.divider {
|
|
3
|
+
width: 100%;
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
.divider hr {
|
|
7
|
+
border: 2px solid var(--color-bg-2);
|
|
8
|
+
box-shadow: none;
|
|
9
|
+
border-radius: var(--radius-base);
|
|
10
|
+
}
|
|
11
|
+
.divider--with-go-top {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
.divider--with-go-top.divider--sm {
|
|
16
|
+
margin: var(--spacing-8) 0 0 0;
|
|
17
|
+
}
|
|
18
|
+
.divider--with-go-top.divider--md {
|
|
19
|
+
margin: var(--spacing-12) 0 0 0;
|
|
20
|
+
}
|
|
21
|
+
.divider--with-go-top.divider--lg {
|
|
22
|
+
margin: var(--spacing-16) 0 0 0;
|
|
23
|
+
}
|
|
24
|
+
hr.divider--sm,
|
|
25
|
+
.divider--sm .divider__line {
|
|
26
|
+
border: 1px solid var(--color-bg-3);
|
|
27
|
+
box-shadow: none;
|
|
28
|
+
margin: 0;
|
|
29
|
+
border-radius: var(--radius-base);
|
|
30
|
+
}
|
|
31
|
+
hr.divider--md,
|
|
32
|
+
.divider--md .divider__line {
|
|
33
|
+
border: 2px solid var(--color-bg-2);
|
|
34
|
+
box-shadow: 0 1px 0 0 var(--color-surface-primary);
|
|
35
|
+
margin: var(--spacing-4) 0;
|
|
36
|
+
border-radius: var(--radius-base);
|
|
37
|
+
}
|
|
38
|
+
hr.divider--lg,
|
|
39
|
+
.divider--lg .divider__line {
|
|
40
|
+
border: 4px solid var(--color-bg-2);
|
|
41
|
+
box-shadow: 0 2px 0 0 var(--color-surface-primary);
|
|
42
|
+
margin: var(--spacing-12) 0;
|
|
43
|
+
border-radius: var(--radius-base);
|
|
44
|
+
}
|
|
45
|
+
.divider__line {
|
|
46
|
+
flex: 1;
|
|
47
|
+
}
|
|
48
|
+
.divider__go-top-btn {
|
|
49
|
+
margin: 0 var(--spacing-4);
|
|
50
|
+
border-radius: var(--radius-full);
|
|
51
|
+
}
|
|
52
|
+
.divider--lg .divider__go-top-btn {
|
|
53
|
+
position: absolute;
|
|
54
|
+
outline: 6px solid var(--color-bg-2);
|
|
55
|
+
box-shadow: 0 3px 0 6px var(--color-surface-primary);
|
|
56
|
+
left: 50%;
|
|
57
|
+
margin-left: -24px;
|
|
58
|
+
}
|
|
59
|
+
@media (max-width: 640px) {
|
|
60
|
+
.divider--with-go-top.divider--sm {
|
|
61
|
+
margin: var(--spacing-4) 0;
|
|
62
|
+
}
|
|
63
|
+
.divider--with-go-top.divider--md {
|
|
64
|
+
margin: var(--spacing-6) 0;
|
|
65
|
+
}
|
|
66
|
+
.divider--with-go-top.divider--lg {
|
|
67
|
+
margin: var(--spacing-8) 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* src/style/components/icons/icons.css */
|
|
72
|
+
.icon {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
}
|
|
77
|
+
.icon--skeleton {
|
|
78
|
+
background:
|
|
79
|
+
linear-gradient(
|
|
80
|
+
90deg,
|
|
81
|
+
rgba(0, 0, 0, 0.06) 0%,
|
|
82
|
+
rgba(0, 0, 0, 0.03) 50%,
|
|
83
|
+
rgba(0, 0, 0, 0.06) 100%);
|
|
84
|
+
border-radius: 4px;
|
|
85
|
+
animation: hb-skeleton 1.2s ease-in-out infinite;
|
|
86
|
+
}
|
|
87
|
+
@keyframes hb-skeleton {
|
|
88
|
+
0% {
|
|
89
|
+
background-position: 200% 0;
|
|
90
|
+
}
|
|
91
|
+
100% {
|
|
92
|
+
background-position: -200% 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.icon {
|
|
96
|
+
display: inline-block;
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
transition: color var(--transition-base, 0.2s ease);
|
|
99
|
+
}
|
|
100
|
+
.icon--interactive {
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
color: var(--color-foreground-1);
|
|
103
|
+
}
|
|
104
|
+
.icon--interactive:hover:not(:disabled) {
|
|
105
|
+
color: var(--color-action-primary-hover);
|
|
106
|
+
}
|
|
107
|
+
.icon--interactive:active:not(:disabled) {
|
|
108
|
+
color: var(--color-action-primary-active);
|
|
109
|
+
}
|
|
110
|
+
.icon--interactive:disabled {
|
|
111
|
+
cursor: not-allowed;
|
|
112
|
+
color: var(--color-foreground-2);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* src/style/components/button/button.css */
|
|
116
|
+
.btn {
|
|
117
|
+
position: relative;
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
gap: var(--spacing-2);
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
text-decoration: none;
|
|
124
|
+
user-select: none;
|
|
125
|
+
border-radius: var(--radius-base);
|
|
126
|
+
border: 1px solid transparent;
|
|
127
|
+
font-family: var(--font-family-action);
|
|
128
|
+
font-weight: var(--font-weight-semibold);
|
|
129
|
+
line-height: var(--line-height-normal);
|
|
130
|
+
letter-spacing: var(--letter-spacing-normal);
|
|
131
|
+
transition: var(--motion-transition-hover-in), transform var(--motion-duration-fast) var(--motion-easing-linear);
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
}
|
|
134
|
+
.btn:not(:hover):not(:active) {
|
|
135
|
+
transition: var(--motion-transition-hover-out), transform var(--motion-duration-fast) var(--motion-easing-accelerate);
|
|
136
|
+
}
|
|
137
|
+
.btn--xs {
|
|
138
|
+
padding: var(--spacing-1);
|
|
139
|
+
font-size: var(--font-size-xs);
|
|
140
|
+
}
|
|
141
|
+
.btn--sm {
|
|
142
|
+
padding: var(--spacing-2) var(--spacing-3);
|
|
143
|
+
font-size: var(--font-size-sm);
|
|
144
|
+
min-height: 32px;
|
|
145
|
+
}
|
|
146
|
+
.btn--md {
|
|
147
|
+
padding: var(--spacing-2) var(--spacing-4);
|
|
148
|
+
font-size: var(--font-size-base);
|
|
149
|
+
min-height: 40px;
|
|
150
|
+
}
|
|
151
|
+
.btn--lg {
|
|
152
|
+
padding: var(--spacing-3) var(--spacing-6);
|
|
153
|
+
font-size: var(--font-size-lg);
|
|
154
|
+
min-height: 48px;
|
|
155
|
+
}
|
|
156
|
+
.btn--icon-only {
|
|
157
|
+
padding: var(--spacing-2);
|
|
158
|
+
width: auto;
|
|
159
|
+
aspect-ratio: 1;
|
|
160
|
+
}
|
|
161
|
+
.btn--icon-only.btn--xs {
|
|
162
|
+
padding: var(--spacing-1);
|
|
163
|
+
min-width: 24px;
|
|
164
|
+
min-height: 24px;
|
|
165
|
+
}
|
|
166
|
+
.btn--icon-only.btn--sm {
|
|
167
|
+
padding: var(--spacing-1);
|
|
168
|
+
min-width: 32px;
|
|
169
|
+
min-height: 32px;
|
|
170
|
+
}
|
|
171
|
+
.btn--icon-only.btn--md {
|
|
172
|
+
padding: var(--spacing-2);
|
|
173
|
+
min-width: 40px;
|
|
174
|
+
min-height: 40px;
|
|
175
|
+
}
|
|
176
|
+
.btn--icon-only.btn--lg {
|
|
177
|
+
padding: var(--spacing-3);
|
|
178
|
+
min-width: 48px;
|
|
179
|
+
min-height: 48px;
|
|
180
|
+
}
|
|
181
|
+
.btn--active {
|
|
182
|
+
background-color: var(--color-accent);
|
|
183
|
+
color: var(--color-on-accent);
|
|
184
|
+
}
|
|
185
|
+
.btn--active:hover:not(:disabled) {
|
|
186
|
+
background-color: var(--color-accent-hover);
|
|
187
|
+
color: var(--color-on-accent);
|
|
188
|
+
}
|
|
189
|
+
.btn--active:active:not(:disabled) {
|
|
190
|
+
background-color: var(--color-accent-active);
|
|
191
|
+
color: var(--color-on-accent);
|
|
192
|
+
}
|
|
193
|
+
.btn--primary {
|
|
194
|
+
background-color: var(--color-action-primary);
|
|
195
|
+
outline: 0px solid var(--color-action-primary);
|
|
196
|
+
box-shadow: 0 0 0 0 var(--color-action-primary);
|
|
197
|
+
color: var(--color-on-action-primary);
|
|
198
|
+
}
|
|
199
|
+
.btn--primary:hover:not(:disabled) {
|
|
200
|
+
background-color: var(--color-action-primary-hover);
|
|
201
|
+
box-shadow: 0 0 0 2px var(--color-action-primary-hover);
|
|
202
|
+
outline: 2px solid var(--color-action-primary-hover);
|
|
203
|
+
}
|
|
204
|
+
.btn--primary:active:not(:disabled) {
|
|
205
|
+
background-color: var(--color-action-primary-active);
|
|
206
|
+
transform: scale(0.98);
|
|
207
|
+
}
|
|
208
|
+
.btn--primary:focus-visible:not(:disabled) {
|
|
209
|
+
outline: 2px solid var(--color-action-primary);
|
|
210
|
+
outline-offset: 2px;
|
|
211
|
+
}
|
|
212
|
+
.btn--secondary {
|
|
213
|
+
background-color: var(--color-action-secondary);
|
|
214
|
+
color: var(--color-on-action-secondary);
|
|
215
|
+
}
|
|
216
|
+
.btn--secondary:hover:not(:disabled) {
|
|
217
|
+
background-color: var(--color-action-secondary-hover);
|
|
218
|
+
}
|
|
219
|
+
.btn--secondary:active:not(:disabled) {
|
|
220
|
+
background-color: var(--color-action-secondary-active);
|
|
221
|
+
transform: scale(0.98);
|
|
222
|
+
}
|
|
223
|
+
.btn--secondary:focus-visible:not(:disabled) {
|
|
224
|
+
outline: 2px solid var(--color-action-secondary);
|
|
225
|
+
outline-offset: 2px;
|
|
226
|
+
}
|
|
227
|
+
.btn--tertiary {
|
|
228
|
+
background-color: transparent;
|
|
229
|
+
color: var(--color-foreground-2);
|
|
230
|
+
border-color: var(--color-action-tertiary);
|
|
231
|
+
border-width: 2px;
|
|
232
|
+
}
|
|
233
|
+
.btn--tertiary:hover:not(:disabled) {
|
|
234
|
+
background-color: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness-hover), 0.2);
|
|
235
|
+
border-color: var(--color-action-primary-hover);
|
|
236
|
+
color: var(--color-foreground-2);
|
|
237
|
+
}
|
|
238
|
+
.btn--tertiary:active:not(:disabled) {
|
|
239
|
+
background-color: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness-active), 0.2);
|
|
240
|
+
border-color: var(--color-action-primary-active);
|
|
241
|
+
color: var(--color-action-primary-active);
|
|
242
|
+
transform: scale(0.98);
|
|
243
|
+
}
|
|
244
|
+
.btn--tertiary:focus-visible:not(:disabled) {
|
|
245
|
+
outline: 2px solid var(--color-action-primary);
|
|
246
|
+
outline-offset: 2px;
|
|
247
|
+
}
|
|
248
|
+
.btn--ghost {
|
|
249
|
+
background-color: transparent;
|
|
250
|
+
color: var(--color-foreground-2);
|
|
251
|
+
border-color: transparent;
|
|
252
|
+
border-width: 2px;
|
|
253
|
+
}
|
|
254
|
+
.btn--ghost:hover:not(:disabled) {
|
|
255
|
+
background-color: transparent;
|
|
256
|
+
border-color: var(--color-action-primary-hover);
|
|
257
|
+
color: var(--color-foreground-2);
|
|
258
|
+
}
|
|
259
|
+
.btn--ghost:active:not(:disabled) {
|
|
260
|
+
background-color: hsla(var(--accent-hue), var(--accent-saturation), var(--accent-lightness-active), 0.2);
|
|
261
|
+
border-color: var(--color-action-primary-active);
|
|
262
|
+
color: var(--color-action-primary-active);
|
|
263
|
+
transform: scale(0.98);
|
|
264
|
+
}
|
|
265
|
+
.btn--ghost:focus-visible:not(:disabled) {
|
|
266
|
+
outline: 2px solid var(--color-action-primary);
|
|
267
|
+
outline-offset: 2px;
|
|
268
|
+
}
|
|
269
|
+
.btn:disabled {
|
|
270
|
+
background-color: var(--color-primary-disabled);
|
|
271
|
+
color: var(--color-foreground-2);
|
|
272
|
+
cursor: not-allowed;
|
|
273
|
+
border-color: var(--color-primary-disabled);
|
|
274
|
+
}
|
|
275
|
+
.btn--full-width {
|
|
276
|
+
width: 100%;
|
|
277
|
+
}
|
|
278
|
+
@media (hover: none) and (pointer: coarse) {
|
|
279
|
+
.btn--primary:active:not(:disabled) {
|
|
280
|
+
background-color: var(--color-primary-active);
|
|
281
|
+
}
|
|
282
|
+
.btn--secondary:active:not(:disabled) {
|
|
283
|
+
background-color: var(--color-secondary-active);
|
|
284
|
+
}
|
|
285
|
+
.btn--tertiary:active:not(:disabled) {
|
|
286
|
+
background-color: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness-active), 0.2);
|
|
287
|
+
}
|
|
288
|
+
.btn--ghost:active:not(:disabled) {
|
|
289
|
+
background-color: hsla(var(--primary-hue), var(--primary-saturation), var(--primary-lightness-active), 0.2);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
.btn__spinner {
|
|
293
|
+
display: inline-block;
|
|
294
|
+
width: 16px;
|
|
295
|
+
height: 16px;
|
|
296
|
+
border-radius: 50%;
|
|
297
|
+
border: 2px solid currentColor;
|
|
298
|
+
border-top-color: transparent;
|
|
299
|
+
animation: btn-spin 0.6s linear infinite;
|
|
300
|
+
}
|
|
301
|
+
.btn__icon {
|
|
302
|
+
flex-shrink: 0;
|
|
303
|
+
}
|
|
304
|
+
.btn__icon-placeholder {
|
|
305
|
+
flex-shrink: 0;
|
|
306
|
+
}
|
|
307
|
+
@keyframes btn-spin {
|
|
308
|
+
to {
|
|
309
|
+
transform: rotate(360deg);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* src/style/components/tooltip/tooltip.css */
|
|
314
|
+
.tooltip {
|
|
315
|
+
position: fixed;
|
|
316
|
+
z-index: var(--z-tooltip);
|
|
317
|
+
background: var(--color-bg-1);
|
|
318
|
+
border: 1px solid var(--color-bg-3);
|
|
319
|
+
border-color: rgba(0, 0, 0, 0.15);
|
|
320
|
+
border-radius: var(--radius-base);
|
|
321
|
+
box-shadow: var(--shadow-md);
|
|
322
|
+
max-width: 200px;
|
|
323
|
+
padding: var(--spacing-2, 0.5rem) var(--spacing-3, 0.75rem);
|
|
324
|
+
font-size: var(--font-size-xs, 0.75rem);
|
|
325
|
+
font-weight: 500;
|
|
326
|
+
color: var(--color-foreground-1);
|
|
327
|
+
white-space: nowrap;
|
|
328
|
+
animation: tooltip-fade-in var(--transition-fast, 0.15s ease);
|
|
329
|
+
opacity: 0;
|
|
330
|
+
visibility: hidden;
|
|
331
|
+
pointer-events: none;
|
|
332
|
+
}
|
|
333
|
+
.tooltip--top {
|
|
334
|
+
margin-bottom: var(--spacing-1);
|
|
335
|
+
}
|
|
336
|
+
.tooltip--bottom {
|
|
337
|
+
margin-top: var(--spacing-1);
|
|
338
|
+
}
|
|
339
|
+
.tooltip--left {
|
|
340
|
+
margin-right: var(--spacing-1);
|
|
341
|
+
}
|
|
342
|
+
.tooltip--right {
|
|
343
|
+
margin-left: var(--spacing-1);
|
|
344
|
+
}
|
|
345
|
+
@keyframes tooltip-fade-in {
|
|
346
|
+
from {
|
|
347
|
+
opacity: 0;
|
|
348
|
+
transform: translateY(-2px);
|
|
349
|
+
}
|
|
350
|
+
to {
|
|
351
|
+
opacity: 1;
|
|
352
|
+
transform: translateY(0);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
.tooltip__content {
|
|
356
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
type DividerVariant = 'default' | 'with-go-top';
|
|
4
|
+
type DividerSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
interface DividerProps {
|
|
6
|
+
/**
|
|
7
|
+
* Visual variant of the divider
|
|
8
|
+
* @default 'default'
|
|
9
|
+
*/
|
|
10
|
+
variant?: DividerVariant;
|
|
11
|
+
/**
|
|
12
|
+
* Size of the divider
|
|
13
|
+
* @default 'md'
|
|
14
|
+
*/
|
|
15
|
+
size?: DividerSize;
|
|
16
|
+
/**
|
|
17
|
+
* Custom class name
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Target element for scroll to top (defaults to window)
|
|
22
|
+
* Only used with 'with-go-top' variant
|
|
23
|
+
*/
|
|
24
|
+
scrollTarget?: Element | Window | string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Divider component for content separation
|
|
28
|
+
* Provides visual separation with optional go-to-top functionality
|
|
29
|
+
*/
|
|
30
|
+
declare const Divider: React__default.FC<DividerProps>;
|
|
31
|
+
|
|
32
|
+
export { Divider, type DividerProps, type DividerSize, type DividerVariant };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
type DividerVariant = 'default' | 'with-go-top';
|
|
4
|
+
type DividerSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
interface DividerProps {
|
|
6
|
+
/**
|
|
7
|
+
* Visual variant of the divider
|
|
8
|
+
* @default 'default'
|
|
9
|
+
*/
|
|
10
|
+
variant?: DividerVariant;
|
|
11
|
+
/**
|
|
12
|
+
* Size of the divider
|
|
13
|
+
* @default 'md'
|
|
14
|
+
*/
|
|
15
|
+
size?: DividerSize;
|
|
16
|
+
/**
|
|
17
|
+
* Custom class name
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Target element for scroll to top (defaults to window)
|
|
22
|
+
* Only used with 'with-go-top' variant
|
|
23
|
+
*/
|
|
24
|
+
scrollTarget?: Element | Window | string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Divider component for content separation
|
|
28
|
+
* Provides visual separation with optional go-to-top functionality
|
|
29
|
+
*/
|
|
30
|
+
declare const Divider: React__default.FC<DividerProps>;
|
|
31
|
+
|
|
32
|
+
export { Divider, type DividerProps, type DividerSize, type DividerVariant };
|