@hakumi-dev/hakumi-components 0.1.17-pre → 0.1.19-pre
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 +218 -369
- package/app/javascript/hakumi_components/controllers/hakumi/admin_panel_controller.js +5 -7
- package/app/javascript/hakumi_components/controllers/hakumi/back_top_controller.js +1 -1
- package/app/javascript/hakumi_components/controllers/hakumi/button_controller.js +108 -2
- package/app/javascript/hakumi_components/controllers/hakumi/calendar_controller.js +183 -95
- package/app/javascript/hakumi_components/controllers/hakumi/color_picker_controller.js +23 -285
- package/app/javascript/hakumi_components/controllers/hakumi/date_picker_controller.js +274 -262
- package/app/javascript/hakumi_components/controllers/hakumi/float_button_group_controller.js +2 -2
- package/app/javascript/hakumi_components/controllers/hakumi/message_controller.js +4 -2
- package/app/javascript/hakumi_components/controllers/hakumi/modal_controller.js +119 -125
- package/app/javascript/hakumi_components/controllers/hakumi/table/editable.js +291 -0
- package/app/javascript/hakumi_components/controllers/hakumi/table_controller.js +166 -366
- package/app/javascript/hakumi_components/controllers/hakumi/tabs_controller.js +8 -2
- package/app/javascript/hakumi_components/controllers/hakumi/tag_controller.js +27 -25
- package/app/javascript/hakumi_components/controllers/hakumi/tag_group_controller.js +19 -18
- package/app/javascript/hakumi_components/controllers/hakumi/theme_controller.js +116 -117
- package/app/javascript/hakumi_components/controllers/hakumi/transfer_controller.js +17 -1
- package/app/javascript/hakumi_components/controllers/hakumi/tree_controller.js +363 -78
- package/app/javascript/hakumi_components/controllers/hakumi/typography_controller.js +3 -3
- package/app/javascript/hakumi_components/controllers/hakumi/upload_controller.js +320 -204
- package/app/javascript/hakumi_components/core/render_component.js +37 -11
- package/app/javascript/hakumi_components/utils/color_helper.js +262 -0
- package/app/javascript/stylesheets/_base.scss +9 -0
- package/app/javascript/stylesheets/_hakumi_components.scss +1 -0
- package/app/javascript/stylesheets/components/_breadcrumb.scss +2 -2
- package/app/javascript/stylesheets/components/_calendar.scss +13 -13
- package/app/javascript/stylesheets/components/_cascader.scss +5 -5
- package/app/javascript/stylesheets/components/_checkbox.scss +9 -11
- package/app/javascript/stylesheets/components/_color_picker.scss +11 -11
- package/app/javascript/stylesheets/components/_date_picker.scss +4 -4
- package/app/javascript/stylesheets/components/_descriptions.scss +2 -2
- package/app/javascript/stylesheets/components/_drawer.scss +3 -3
- package/app/javascript/stylesheets/components/_dropdown.scss +2 -2
- package/app/javascript/stylesheets/components/_flex.scss +1 -1
- package/app/javascript/stylesheets/components/_float_button.scss +5 -5
- package/app/javascript/stylesheets/components/_form_item.scss +92 -0
- package/app/javascript/stylesheets/components/_image.scss +15 -15
- package/app/javascript/stylesheets/components/_input.scss +23 -113
- package/app/javascript/stylesheets/components/_layout.scss +27 -26
- package/app/javascript/stylesheets/components/_menu.scss +15 -15
- package/app/javascript/stylesheets/components/_modal.scss +13 -13
- package/app/javascript/stylesheets/components/_notification.scss +3 -3
- package/app/javascript/stylesheets/components/_popover.scss +1 -1
- package/app/javascript/stylesheets/components/_segmented.scss +3 -3
- package/app/javascript/stylesheets/components/_select.scss +6 -6
- package/app/javascript/stylesheets/components/_slider.scss +1 -1
- package/app/javascript/stylesheets/components/_spin.scss +2 -2
- package/app/javascript/stylesheets/components/_steps.scss +10 -10
- package/app/javascript/stylesheets/components/_switch.scss +11 -10
- package/app/javascript/stylesheets/components/_table.scss +6 -6
- package/app/javascript/stylesheets/components/_tag.scss +2 -2
- package/app/javascript/stylesheets/components/_tooltip.scss +4 -4
- package/app/javascript/stylesheets/components/_tree_select.scss +3 -3
- package/app/javascript/stylesheets/components/_typography.scss +3 -3
- package/app/javascript/stylesheets/components/_upload.scss +4 -4
- package/package.json +2 -2
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
align-items: center;
|
|
221
221
|
justify-content: center;
|
|
222
222
|
|
|
223
|
-
&.
|
|
223
|
+
&.hakumi-table-expand-button-expanded .hakumi-table-expand-icon {
|
|
224
224
|
transform: rotate(45deg);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
border-right: 2px solid var(--table-muted-color);
|
|
233
233
|
border-bottom: 2px solid var(--table-muted-color);
|
|
234
234
|
transform: rotate(-45deg);
|
|
235
|
-
transition: transform
|
|
235
|
+
transition: transform $transition-duration-base ease;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
&-expanded-row {
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
vertical-align: top;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
&:not(.
|
|
246
|
+
&:not(.hakumi-table-row-expanded) td {
|
|
247
247
|
padding: 0 !important;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
&-size-
|
|
310
|
+
&-size-default {
|
|
311
311
|
.hakumi-table-thead th,
|
|
312
312
|
.hakumi-table-tbody td,
|
|
313
313
|
.hakumi-table-summary td {
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
background: var(--table-row-bg);
|
|
347
347
|
color: var(--table-text-color);
|
|
348
348
|
font-size: inherit;
|
|
349
|
-
transition: border-color
|
|
349
|
+
transition: border-color $transition-duration-base, box-shadow $transition-duration-base;
|
|
350
350
|
|
|
351
351
|
&:focus {
|
|
352
352
|
border-color: var(--color-primary, #1677ff);
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
color: var(--table-muted-color);
|
|
374
374
|
padding: 4px;
|
|
375
375
|
border-radius: 4px;
|
|
376
|
-
transition: color
|
|
376
|
+
transition: color $transition-duration-base, background-color $transition-duration-base;
|
|
377
377
|
|
|
378
378
|
&:hover {
|
|
379
379
|
color: var(--table-text-color);
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
&-checked {
|
|
83
83
|
background: var(--color-primary);
|
|
84
84
|
border-color: var(--color-primary);
|
|
85
|
-
color:
|
|
85
|
+
color: var(--color-text-inverse);
|
|
86
86
|
|
|
87
87
|
&:hover {
|
|
88
88
|
background: var(--color-primary-hover);
|
|
89
89
|
border-color: var(--color-primary-hover);
|
|
90
|
-
color:
|
|
90
|
+
color: var(--color-text-inverse);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
max-width: 250px;
|
|
18
18
|
visibility: hidden;
|
|
19
19
|
opacity: 0;
|
|
20
|
-
transition: opacity
|
|
21
|
-
visibility
|
|
22
|
-
transform
|
|
20
|
+
transition: opacity $transition-duration-base $ease-in-out,
|
|
21
|
+
visibility $transition-duration-base $ease-in-out,
|
|
22
|
+
transform $transition-duration-base $ease-in-out;
|
|
23
23
|
pointer-events: none;
|
|
24
24
|
|
|
25
25
|
&-visible {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
min-width: 32px;
|
|
50
50
|
min-height: 32px;
|
|
51
51
|
padding: 6px 8px;
|
|
52
|
-
color:
|
|
52
|
+
color: var(--color-text-inverse);
|
|
53
53
|
text-align: start;
|
|
54
54
|
text-decoration: none;
|
|
55
55
|
word-wrap: break-word;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
background-color: var(--color-bg-container);
|
|
32
32
|
border: 1px solid var(--color-border);
|
|
33
33
|
border-radius: 6px;
|
|
34
|
-
transition: all
|
|
34
|
+
transition: all $transition-duration-base $ease-in-out;
|
|
35
35
|
width: 100%;
|
|
36
36
|
height: 32px;
|
|
37
37
|
padding: 0 30px 0 11px;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
margin-top: -6px;
|
|
97
97
|
font-size: 12px;
|
|
98
98
|
pointer-events: none;
|
|
99
|
-
transition: transform
|
|
99
|
+
transition: transform $transition-duration-slow;
|
|
100
100
|
|
|
101
101
|
.hakumi-tree-select-open & {
|
|
102
102
|
transform: rotate(180deg);
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
background: var(--hakumi-tree-select-clear-bg);
|
|
122
122
|
cursor: pointer;
|
|
123
123
|
opacity: 0;
|
|
124
|
-
transition: color
|
|
124
|
+
transition: color $transition-duration-slow ease, opacity 0.15s ease;
|
|
125
125
|
|
|
126
126
|
&:hover {
|
|
127
127
|
color: var(--color-text-tertiary);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
color: var(--color-link);
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
text-decoration: none;
|
|
29
|
-
transition: color
|
|
29
|
+
transition: color $transition-duration-base;
|
|
30
30
|
|
|
31
31
|
&:hover {
|
|
32
32
|
color: var(--color-link-hover);
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
margin-left: 4px;
|
|
70
70
|
color: var(--color-link);
|
|
71
71
|
cursor: pointer;
|
|
72
|
-
transition: color
|
|
72
|
+
transition: color $transition-duration-base;
|
|
73
73
|
|
|
74
74
|
&:hover {
|
|
75
75
|
color: var(--color-link-hover);
|
|
@@ -136,7 +136,7 @@ h5.hakumi-typography,
|
|
|
136
136
|
pointer-events: none;
|
|
137
137
|
z-index: 1070;
|
|
138
138
|
opacity: 0;
|
|
139
|
-
transition: opacity
|
|
139
|
+
transition: opacity $transition-duration-base ease;
|
|
140
140
|
box-shadow: var(--shadow-base);
|
|
141
141
|
|
|
142
142
|
&.hakumi-typography-tooltip-success {
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
background: rgba(255, 255, 255, 0.2);
|
|
309
309
|
border: none;
|
|
310
310
|
border-radius: 50%;
|
|
311
|
-
color:
|
|
311
|
+
color: var(--color-text-inverse);
|
|
312
312
|
cursor: pointer;
|
|
313
313
|
font-size: 16px;
|
|
314
314
|
transition: background-color $transition-duration-base $ease-in-out, transform $transition-duration-base $ease-in-out;
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
background: rgba(255, 255, 255, 0.1);
|
|
406
406
|
border: none;
|
|
407
407
|
border-radius: 50%;
|
|
408
|
-
color:
|
|
408
|
+
color: var(--color-text-inverse);
|
|
409
409
|
cursor: pointer;
|
|
410
410
|
font-size: 18px;
|
|
411
411
|
transition: background-color $transition-duration-base $ease-in-out;
|
|
@@ -431,7 +431,7 @@
|
|
|
431
431
|
background: rgba(255, 255, 255, 0.1);
|
|
432
432
|
border: none;
|
|
433
433
|
border-radius: 50%;
|
|
434
|
-
color:
|
|
434
|
+
color: var(--color-text-inverse);
|
|
435
435
|
cursor: pointer;
|
|
436
436
|
font-size: 24px;
|
|
437
437
|
transition: background-color $transition-duration-base $ease-in-out;
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
background: rgba(0, 0, 0, 0.6);
|
|
492
492
|
backdrop-filter: blur(4px);
|
|
493
493
|
-webkit-backdrop-filter: blur(4px);
|
|
494
|
-
color:
|
|
494
|
+
color: var(--color-text-inverse);
|
|
495
495
|
font-size: 12px;
|
|
496
496
|
font-weight: 500;
|
|
497
497
|
opacity: 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hakumi-dev/hakumi-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19-pre",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Hakumi Components for Rails and modern JavaScript frameworks",
|
|
6
6
|
"keywords": [
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@hotwired/stimulus": "^3.0.0",
|
|
49
|
-
"esbuild": "^0.
|
|
49
|
+
"esbuild": "^0.25.0",
|
|
50
50
|
"jsdom": "^27.4.0",
|
|
51
51
|
"sass": "^1.77.0"
|
|
52
52
|
},
|