@charcoal-ui/react 3.5.0 → 3.6.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/components/Button/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Checkbox/index.story.d.ts +1 -0
- package/dist/components/Checkbox/index.story.d.ts.map +1 -1
- package/dist/components/DropdownSelector/DropdownMenuItem.d.ts.map +1 -1
- package/dist/components/DropdownSelector/ListItem/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
- package/dist/components/DropdownSelector/index.d.ts.map +1 -1
- package/dist/components/FieldLabel/index.d.ts.map +1 -1
- package/dist/components/IconButton/index.d.ts.map +1 -1
- package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
- package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
- package/dist/components/Modal/index.d.ts.map +1 -1
- package/dist/components/Modal/index.story.d.ts +1 -0
- package/dist/components/Modal/index.story.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.story.d.ts +2 -0
- package/dist/components/MultiSelect/index.story.d.ts.map +1 -1
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/SegmentedControl/index.d.ts.map +1 -1
- package/dist/components/Switch/index.d.ts.map +1 -1
- package/dist/components/TagItem/index.d.ts.map +1 -1
- package/dist/components/TextField/TextField.story.d.ts.map +1 -1
- package/dist/components/TextField/index.d.ts.map +1 -1
- package/dist/index.cjs.js +741 -317
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +728 -304
- package/dist/index.esm.js.map +1 -1
- package/dist/styled.d.ts +4 -4
- package/package.json +9 -9
- package/src/components/Button/__snapshots__/index.story.storyshot +312 -592
- package/src/components/Button/index.tsx +50 -14
- package/src/components/Checkbox/__snapshots__/index.story.storyshot +209 -40
- package/src/components/Checkbox/__snapshots__/snapshot.test.tsx.snap +410 -80
- package/src/components/Checkbox/index.story.tsx +24 -0
- package/src/components/Checkbox/index.tsx +47 -17
- package/src/components/Clickable/__snapshots__/index.story.storyshot +4 -0
- package/src/components/Clickable/index.tsx +1 -0
- package/src/components/DropdownSelector/DropdownMenuItem.tsx +19 -3
- package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +3 -10
- package/src/components/DropdownSelector/ListItem/index.tsx +6 -4
- package/src/components/DropdownSelector/MenuItemGroup/index.tsx +1 -1
- package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +4 -13
- package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +20 -37
- package/src/components/DropdownSelector/Popover/index.tsx +5 -8
- package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +60 -191
- package/src/components/DropdownSelector/index.tsx +70 -20
- package/src/components/FieldLabel/index.tsx +77 -12
- package/src/components/IconButton/__snapshots__/index.story.storyshot +30 -54
- package/src/components/IconButton/index.tsx +51 -26
- package/src/components/LoadingSpinner/index.tsx +3 -6
- package/src/components/Modal/Dialog/index.tsx +1 -1
- package/src/components/Modal/ModalPlumbing.tsx +26 -5
- package/src/components/Modal/__snapshots__/index.story.storyshot +2454 -108
- package/src/components/Modal/index.story.tsx +27 -0
- package/src/components/Modal/index.tsx +19 -4
- package/src/components/MultiSelect/__snapshots__/index.story.storyshot +528 -25
- package/src/components/MultiSelect/index.story.tsx +60 -0
- package/src/components/MultiSelect/index.tsx +82 -22
- package/src/components/Radio/__snapshots__/index.story.storyshot +32 -49
- package/src/components/Radio/index.tsx +71 -23
- package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +18 -19
- package/src/components/SegmentedControl/index.tsx +35 -15
- package/src/components/Switch/__snapshots__/index.story.storyshot +6 -18
- package/src/components/Switch/index.tsx +10 -15
- package/src/components/TagItem/__snapshots__/index.story.storyshot +39 -158
- package/src/components/TagItem/index.tsx +84 -19
- package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +38 -76
- package/src/components/TextField/TextField.story.tsx +35 -18
- package/src/components/TextField/__snapshots__/TextField.story.storyshot +71 -128
- package/src/components/TextField/index.tsx +0 -1
|
@@ -50,33 +50,22 @@ exports[`Storyshots TextArea Auto Height 1`] = `
|
|
|
50
50
|
margin-bottom: -4px;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.c5:
|
|
54
|
-
.c5
|
|
53
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
54
|
+
.c5[aria-disabled='false']:hover {
|
|
55
55
|
color: var(--charcoal-text3-hover);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.c5:
|
|
59
|
-
.c5
|
|
58
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
59
|
+
.c5[aria-disabled='false']:active {
|
|
60
60
|
color: var(--charcoal-text3-press);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
64
|
-
.c5[aria-disabled=false]:focus,
|
|
65
63
|
.c5:not(:disabled):not([aria-disabled]):active,
|
|
66
|
-
.c5[aria-disabled=false]:active
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
72
|
-
.c5[aria-disabled=false]:focus:not(:focus-visible),
|
|
73
|
-
.c5:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
74
|
-
.c5[aria-disabled=false]:active:not(:focus-visible) {
|
|
75
|
-
outline: none;
|
|
76
|
-
}
|
|
77
|
-
|
|
64
|
+
.c5[aria-disabled='false']:active,
|
|
65
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
66
|
+
.c5[aria-disabled='false']:focus,
|
|
78
67
|
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
79
|
-
.c5[aria-disabled=false]:focus-visible {
|
|
68
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
80
69
|
outline: none;
|
|
81
70
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
82
71
|
}
|
|
@@ -245,6 +234,8 @@ exports[`Storyshots TextArea Default 1`] = `
|
|
|
245
234
|
-ms-letter-spacing: inherit;
|
|
246
235
|
letter-spacing: inherit;
|
|
247
236
|
word-spacing: inherit;
|
|
237
|
+
-webkit-text-decoration: none;
|
|
238
|
+
text-decoration: none;
|
|
248
239
|
font: inherit;
|
|
249
240
|
margin: 0;
|
|
250
241
|
overflow: visible;
|
|
@@ -314,33 +305,22 @@ exports[`Storyshots TextArea Default 1`] = `
|
|
|
314
305
|
margin-bottom: -4px;
|
|
315
306
|
}
|
|
316
307
|
|
|
317
|
-
.c6:
|
|
318
|
-
.c6
|
|
308
|
+
.c6:not(:disabled):not([aria-disabled]):hover,
|
|
309
|
+
.c6[aria-disabled='false']:hover {
|
|
319
310
|
color: var(--charcoal-text3-hover);
|
|
320
311
|
}
|
|
321
312
|
|
|
322
|
-
.c6:
|
|
323
|
-
.c6
|
|
313
|
+
.c6:not(:disabled):not([aria-disabled]):active,
|
|
314
|
+
.c6[aria-disabled='false']:active {
|
|
324
315
|
color: var(--charcoal-text3-press);
|
|
325
316
|
}
|
|
326
317
|
|
|
327
|
-
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
328
|
-
.c6[aria-disabled=false]:focus,
|
|
329
318
|
.c6:not(:disabled):not([aria-disabled]):active,
|
|
330
|
-
.c6[aria-disabled=false]:active
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
336
|
-
.c6[aria-disabled=false]:focus:not(:focus-visible),
|
|
337
|
-
.c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
338
|
-
.c6[aria-disabled=false]:active:not(:focus-visible) {
|
|
339
|
-
outline: none;
|
|
340
|
-
}
|
|
341
|
-
|
|
319
|
+
.c6[aria-disabled='false']:active,
|
|
320
|
+
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
321
|
+
.c6[aria-disabled='false']:focus,
|
|
342
322
|
.c6:not(:disabled):not([aria-disabled]):focus-visible,
|
|
343
|
-
.c6[aria-disabled=false]:focus-visible {
|
|
323
|
+
.c6[aria-disabled='false']:focus-visible {
|
|
344
324
|
outline: none;
|
|
345
325
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
346
326
|
}
|
|
@@ -525,6 +505,8 @@ exports[`Storyshots TextArea Has Count 1`] = `
|
|
|
525
505
|
-ms-letter-spacing: inherit;
|
|
526
506
|
letter-spacing: inherit;
|
|
527
507
|
word-spacing: inherit;
|
|
508
|
+
-webkit-text-decoration: none;
|
|
509
|
+
text-decoration: none;
|
|
528
510
|
font: inherit;
|
|
529
511
|
margin: 0;
|
|
530
512
|
overflow: visible;
|
|
@@ -594,33 +576,22 @@ exports[`Storyshots TextArea Has Count 1`] = `
|
|
|
594
576
|
margin-bottom: -4px;
|
|
595
577
|
}
|
|
596
578
|
|
|
597
|
-
.c6:
|
|
598
|
-
.c6
|
|
579
|
+
.c6:not(:disabled):not([aria-disabled]):hover,
|
|
580
|
+
.c6[aria-disabled='false']:hover {
|
|
599
581
|
color: var(--charcoal-text3-hover);
|
|
600
582
|
}
|
|
601
583
|
|
|
602
|
-
.c6:
|
|
603
|
-
.c6
|
|
584
|
+
.c6:not(:disabled):not([aria-disabled]):active,
|
|
585
|
+
.c6[aria-disabled='false']:active {
|
|
604
586
|
color: var(--charcoal-text3-press);
|
|
605
587
|
}
|
|
606
588
|
|
|
607
|
-
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
608
|
-
.c6[aria-disabled=false]:focus,
|
|
609
589
|
.c6:not(:disabled):not([aria-disabled]):active,
|
|
610
|
-
.c6[aria-disabled=false]:active
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
.c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
616
|
-
.c6[aria-disabled=false]:focus:not(:focus-visible),
|
|
617
|
-
.c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
618
|
-
.c6[aria-disabled=false]:active:not(:focus-visible) {
|
|
619
|
-
outline: none;
|
|
620
|
-
}
|
|
621
|
-
|
|
590
|
+
.c6[aria-disabled='false']:active,
|
|
591
|
+
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
592
|
+
.c6[aria-disabled='false']:focus,
|
|
622
593
|
.c6:not(:disabled):not([aria-disabled]):focus-visible,
|
|
623
|
-
.c6[aria-disabled=false]:focus-visible {
|
|
594
|
+
.c6[aria-disabled='false']:focus-visible {
|
|
624
595
|
outline: none;
|
|
625
596
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
626
597
|
}
|
|
@@ -820,6 +791,8 @@ exports[`Storyshots TextArea Has Label 1`] = `
|
|
|
820
791
|
-ms-letter-spacing: inherit;
|
|
821
792
|
letter-spacing: inherit;
|
|
822
793
|
word-spacing: inherit;
|
|
794
|
+
-webkit-text-decoration: none;
|
|
795
|
+
text-decoration: none;
|
|
823
796
|
font: inherit;
|
|
824
797
|
margin: 0;
|
|
825
798
|
overflow: visible;
|
|
@@ -912,33 +885,22 @@ exports[`Storyshots TextArea Has Label 1`] = `
|
|
|
912
885
|
margin-bottom: -4px;
|
|
913
886
|
}
|
|
914
887
|
|
|
915
|
-
.c8:
|
|
916
|
-
.c8
|
|
888
|
+
.c8:not(:disabled):not([aria-disabled]):hover,
|
|
889
|
+
.c8[aria-disabled='false']:hover {
|
|
917
890
|
color: var(--charcoal-text3-hover);
|
|
918
891
|
}
|
|
919
892
|
|
|
920
|
-
.c8:
|
|
921
|
-
.c8
|
|
893
|
+
.c8:not(:disabled):not([aria-disabled]):active,
|
|
894
|
+
.c8[aria-disabled='false']:active {
|
|
922
895
|
color: var(--charcoal-text3-press);
|
|
923
896
|
}
|
|
924
897
|
|
|
925
|
-
.c8:not(:disabled):not([aria-disabled]):focus,
|
|
926
|
-
.c8[aria-disabled=false]:focus,
|
|
927
898
|
.c8:not(:disabled):not([aria-disabled]):active,
|
|
928
|
-
.c8[aria-disabled=false]:active
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
.c8:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
934
|
-
.c8[aria-disabled=false]:focus:not(:focus-visible),
|
|
935
|
-
.c8:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
936
|
-
.c8[aria-disabled=false]:active:not(:focus-visible) {
|
|
937
|
-
outline: none;
|
|
938
|
-
}
|
|
939
|
-
|
|
899
|
+
.c8[aria-disabled='false']:active,
|
|
900
|
+
.c8:not(:disabled):not([aria-disabled]):focus,
|
|
901
|
+
.c8[aria-disabled='false']:focus,
|
|
940
902
|
.c8:not(:disabled):not([aria-disabled]):focus-visible,
|
|
941
|
-
.c8[aria-disabled=false]:focus-visible {
|
|
903
|
+
.c8[aria-disabled='false']:focus-visible {
|
|
942
904
|
outline: none;
|
|
943
905
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
944
906
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { action } from '@storybook/addon-actions'
|
|
2
1
|
import styled from 'styled-components'
|
|
3
2
|
import { Story } from '../../_lib/compat'
|
|
4
3
|
import Clickable from '../Clickable'
|
|
5
4
|
import TextField, { TextFieldProps } from '.'
|
|
6
5
|
import { px } from '@charcoal-ui/utils'
|
|
7
6
|
import IconButton from '../IconButton'
|
|
7
|
+
import { useCallback, useState } from 'react'
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
10
|
title: 'TextField',
|
|
@@ -30,9 +30,7 @@ const Template: Story<Partial<TextFieldProps>> = (args) => (
|
|
|
30
30
|
<TextField
|
|
31
31
|
label="Label"
|
|
32
32
|
requiredText="*必須"
|
|
33
|
-
subLabel={
|
|
34
|
-
<Clickable onClick={action('label-click')}>Text Link</Clickable>
|
|
35
|
-
}
|
|
33
|
+
subLabel={<Clickable>Text Link</Clickable>}
|
|
36
34
|
placeholder="TextField"
|
|
37
35
|
{...args}
|
|
38
36
|
/>
|
|
@@ -64,21 +62,40 @@ HasAffix.args = {
|
|
|
64
62
|
suffix: '.png',
|
|
65
63
|
}
|
|
66
64
|
|
|
67
|
-
export const PrefixIcon: Story<Partial<TextFieldProps>> = (args) =>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
65
|
+
export const PrefixIcon: Story<Partial<TextFieldProps>> = (args) => {
|
|
66
|
+
const [value, setValue] = useState('')
|
|
67
|
+
const handleChange = useCallback((value: string) => {
|
|
68
|
+
setValue(value)
|
|
69
|
+
}, [])
|
|
70
|
+
const handleClear = useCallback(() => {
|
|
71
|
+
setValue('')
|
|
72
|
+
}, [])
|
|
73
|
+
return (
|
|
74
|
+
<TextField
|
|
75
|
+
{...args}
|
|
76
|
+
label="Label"
|
|
77
|
+
placeholder="作品を検索"
|
|
78
|
+
value={value}
|
|
79
|
+
onChange={handleChange}
|
|
80
|
+
prefix={
|
|
81
|
+
<PrefixIconWrap>
|
|
82
|
+
<pixiv-icon name="16/Search" />
|
|
83
|
+
</PrefixIconWrap>
|
|
84
|
+
}
|
|
85
|
+
suffix={
|
|
86
|
+
<IconButton
|
|
87
|
+
variant="Overlay"
|
|
88
|
+
icon={'16/Remove'}
|
|
89
|
+
size="XS"
|
|
90
|
+
onClick={handleClear}
|
|
91
|
+
/>
|
|
92
|
+
}
|
|
93
|
+
/>
|
|
94
|
+
)
|
|
95
|
+
}
|
|
80
96
|
|
|
81
97
|
const PrefixIconWrap = styled.div`
|
|
82
|
-
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
83
100
|
color: ${({ theme }) => theme.color.text3};
|
|
84
101
|
`
|
|
@@ -17,6 +17,8 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
17
17
|
-ms-letter-spacing: inherit;
|
|
18
18
|
letter-spacing: inherit;
|
|
19
19
|
word-spacing: inherit;
|
|
20
|
+
-webkit-text-decoration: none;
|
|
21
|
+
text-decoration: none;
|
|
20
22
|
font: inherit;
|
|
21
23
|
margin: 0;
|
|
22
24
|
overflow: visible;
|
|
@@ -86,33 +88,22 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
86
88
|
margin-bottom: -4px;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
.c6:
|
|
90
|
-
.c6
|
|
91
|
+
.c6:not(:disabled):not([aria-disabled]):hover,
|
|
92
|
+
.c6[aria-disabled='false']:hover {
|
|
91
93
|
color: var(--charcoal-text3-hover);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
|
-
.c6:
|
|
95
|
-
.c6
|
|
96
|
+
.c6:not(:disabled):not([aria-disabled]):active,
|
|
97
|
+
.c6[aria-disabled='false']:active {
|
|
96
98
|
color: var(--charcoal-text3-press);
|
|
97
99
|
}
|
|
98
100
|
|
|
99
|
-
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
100
|
-
.c6[aria-disabled=false]:focus,
|
|
101
101
|
.c6:not(:disabled):not([aria-disabled]):active,
|
|
102
|
-
.c6[aria-disabled=false]:active
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
108
|
-
.c6[aria-disabled=false]:focus:not(:focus-visible),
|
|
109
|
-
.c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
110
|
-
.c6[aria-disabled=false]:active:not(:focus-visible) {
|
|
111
|
-
outline: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
102
|
+
.c6[aria-disabled='false']:active,
|
|
103
|
+
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
104
|
+
.c6[aria-disabled='false']:focus,
|
|
114
105
|
.c6:not(:disabled):not([aria-disabled]):focus-visible,
|
|
115
|
-
.c6[aria-disabled=false]:focus-visible {
|
|
106
|
+
.c6[aria-disabled='false']:focus-visible {
|
|
116
107
|
outline: none;
|
|
117
108
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
118
109
|
}
|
|
@@ -264,7 +255,6 @@ exports[`Storyshots TextField Default 1`] = `
|
|
|
264
255
|
<span>
|
|
265
256
|
<button
|
|
266
257
|
className="c7"
|
|
267
|
-
onClick={[Function]}
|
|
268
258
|
>
|
|
269
259
|
Text Link
|
|
270
260
|
</button>
|
|
@@ -340,33 +330,22 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
340
330
|
margin-bottom: -4px;
|
|
341
331
|
}
|
|
342
332
|
|
|
343
|
-
.c5:
|
|
344
|
-
.c5
|
|
333
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
334
|
+
.c5[aria-disabled='false']:hover {
|
|
345
335
|
color: var(--charcoal-text3-hover);
|
|
346
336
|
}
|
|
347
337
|
|
|
348
|
-
.c5:
|
|
349
|
-
.c5
|
|
338
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
339
|
+
.c5[aria-disabled='false']:active {
|
|
350
340
|
color: var(--charcoal-text3-press);
|
|
351
341
|
}
|
|
352
342
|
|
|
353
|
-
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
354
|
-
.c5[aria-disabled=false]:focus,
|
|
355
343
|
.c5:not(:disabled):not([aria-disabled]):active,
|
|
356
|
-
.c5[aria-disabled=false]:active
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
362
|
-
.c5[aria-disabled=false]:focus:not(:focus-visible),
|
|
363
|
-
.c5:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
364
|
-
.c5[aria-disabled=false]:active:not(:focus-visible) {
|
|
365
|
-
outline: none;
|
|
366
|
-
}
|
|
367
|
-
|
|
344
|
+
.c5[aria-disabled='false']:active,
|
|
345
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
346
|
+
.c5[aria-disabled='false']:focus,
|
|
368
347
|
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
369
|
-
.c5[aria-disabled=false]:focus-visible {
|
|
348
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
370
349
|
outline: none;
|
|
371
350
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
372
351
|
}
|
|
@@ -436,7 +415,6 @@ exports[`Storyshots TextField Has Affix 1`] = `
|
|
|
436
415
|
display: -webkit-flex;
|
|
437
416
|
display: -ms-flexbox;
|
|
438
417
|
display: flex;
|
|
439
|
-
padding-left: 8px;
|
|
440
418
|
-webkit-align-items: center;
|
|
441
419
|
-webkit-box-align: center;
|
|
442
420
|
-ms-flex-align: center;
|
|
@@ -591,6 +569,8 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
591
569
|
-ms-letter-spacing: inherit;
|
|
592
570
|
letter-spacing: inherit;
|
|
593
571
|
word-spacing: inherit;
|
|
572
|
+
-webkit-text-decoration: none;
|
|
573
|
+
text-decoration: none;
|
|
594
574
|
font: inherit;
|
|
595
575
|
margin: 0;
|
|
596
576
|
overflow: visible;
|
|
@@ -660,33 +640,22 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
660
640
|
margin-bottom: -4px;
|
|
661
641
|
}
|
|
662
642
|
|
|
663
|
-
.c6:
|
|
664
|
-
.c6
|
|
643
|
+
.c6:not(:disabled):not([aria-disabled]):hover,
|
|
644
|
+
.c6[aria-disabled='false']:hover {
|
|
665
645
|
color: var(--charcoal-text3-hover);
|
|
666
646
|
}
|
|
667
647
|
|
|
668
|
-
.c6:
|
|
669
|
-
.c6
|
|
648
|
+
.c6:not(:disabled):not([aria-disabled]):active,
|
|
649
|
+
.c6[aria-disabled='false']:active {
|
|
670
650
|
color: var(--charcoal-text3-press);
|
|
671
651
|
}
|
|
672
652
|
|
|
673
|
-
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
674
|
-
.c6[aria-disabled=false]:focus,
|
|
675
653
|
.c6:not(:disabled):not([aria-disabled]):active,
|
|
676
|
-
.c6[aria-disabled=false]:active
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
.c6:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
682
|
-
.c6[aria-disabled=false]:focus:not(:focus-visible),
|
|
683
|
-
.c6:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
684
|
-
.c6[aria-disabled=false]:active:not(:focus-visible) {
|
|
685
|
-
outline: none;
|
|
686
|
-
}
|
|
687
|
-
|
|
654
|
+
.c6[aria-disabled='false']:active,
|
|
655
|
+
.c6:not(:disabled):not([aria-disabled]):focus,
|
|
656
|
+
.c6[aria-disabled='false']:focus,
|
|
688
657
|
.c6:not(:disabled):not([aria-disabled]):focus-visible,
|
|
689
|
-
.c6[aria-disabled=false]:focus-visible {
|
|
658
|
+
.c6[aria-disabled='false']:focus-visible {
|
|
690
659
|
outline: none;
|
|
691
660
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
692
661
|
}
|
|
@@ -856,7 +825,6 @@ exports[`Storyshots TextField Has Count 1`] = `
|
|
|
856
825
|
<span>
|
|
857
826
|
<button
|
|
858
827
|
className="c7"
|
|
859
|
-
onClick={[Function]}
|
|
860
828
|
>
|
|
861
829
|
Text Link
|
|
862
830
|
</button>
|
|
@@ -909,6 +877,8 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
909
877
|
-ms-letter-spacing: inherit;
|
|
910
878
|
letter-spacing: inherit;
|
|
911
879
|
word-spacing: inherit;
|
|
880
|
+
-webkit-text-decoration: none;
|
|
881
|
+
text-decoration: none;
|
|
912
882
|
font: inherit;
|
|
913
883
|
margin: 0;
|
|
914
884
|
overflow: visible;
|
|
@@ -1001,33 +971,22 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
1001
971
|
margin-bottom: -4px;
|
|
1002
972
|
}
|
|
1003
973
|
|
|
1004
|
-
.c8:
|
|
1005
|
-
.c8
|
|
974
|
+
.c8:not(:disabled):not([aria-disabled]):hover,
|
|
975
|
+
.c8[aria-disabled='false']:hover {
|
|
1006
976
|
color: var(--charcoal-text3-hover);
|
|
1007
977
|
}
|
|
1008
978
|
|
|
1009
|
-
.c8:
|
|
1010
|
-
.c8
|
|
979
|
+
.c8:not(:disabled):not([aria-disabled]):active,
|
|
980
|
+
.c8[aria-disabled='false']:active {
|
|
1011
981
|
color: var(--charcoal-text3-press);
|
|
1012
982
|
}
|
|
1013
983
|
|
|
1014
|
-
.c8:not(:disabled):not([aria-disabled]):focus,
|
|
1015
|
-
.c8[aria-disabled=false]:focus,
|
|
1016
984
|
.c8:not(:disabled):not([aria-disabled]):active,
|
|
1017
|
-
.c8[aria-disabled=false]:active
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
.c8:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1023
|
-
.c8[aria-disabled=false]:focus:not(:focus-visible),
|
|
1024
|
-
.c8:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
1025
|
-
.c8[aria-disabled=false]:active:not(:focus-visible) {
|
|
1026
|
-
outline: none;
|
|
1027
|
-
}
|
|
1028
|
-
|
|
985
|
+
.c8[aria-disabled='false']:active,
|
|
986
|
+
.c8:not(:disabled):not([aria-disabled]):focus,
|
|
987
|
+
.c8[aria-disabled='false']:focus,
|
|
1029
988
|
.c8:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1030
|
-
.c8[aria-disabled=false]:focus-visible {
|
|
989
|
+
.c8[aria-disabled='false']:focus-visible {
|
|
1031
990
|
outline: none;
|
|
1032
991
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1033
992
|
}
|
|
@@ -1180,7 +1139,6 @@ exports[`Storyshots TextField Has Label 1`] = `
|
|
|
1180
1139
|
<span>
|
|
1181
1140
|
<button
|
|
1182
1141
|
className="c9"
|
|
1183
|
-
onClick={[Function]}
|
|
1184
1142
|
>
|
|
1185
1143
|
Text Link
|
|
1186
1144
|
</button>
|
|
@@ -1229,6 +1187,8 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1229
1187
|
-ms-letter-spacing: inherit;
|
|
1230
1188
|
letter-spacing: inherit;
|
|
1231
1189
|
word-spacing: inherit;
|
|
1190
|
+
-webkit-text-decoration: none;
|
|
1191
|
+
text-decoration: none;
|
|
1232
1192
|
font: inherit;
|
|
1233
1193
|
margin: 0;
|
|
1234
1194
|
overflow: visible;
|
|
@@ -1298,33 +1258,22 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1298
1258
|
margin-bottom: -4px;
|
|
1299
1259
|
}
|
|
1300
1260
|
|
|
1301
|
-
.c5:
|
|
1302
|
-
.c5
|
|
1261
|
+
.c5:not(:disabled):not([aria-disabled]):hover,
|
|
1262
|
+
.c5[aria-disabled='false']:hover {
|
|
1303
1263
|
color: var(--charcoal-text3-hover);
|
|
1304
1264
|
}
|
|
1305
1265
|
|
|
1306
|
-
.c5:
|
|
1307
|
-
.c5
|
|
1266
|
+
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1267
|
+
.c5[aria-disabled='false']:active {
|
|
1308
1268
|
color: var(--charcoal-text3-press);
|
|
1309
1269
|
}
|
|
1310
1270
|
|
|
1311
|
-
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
1312
|
-
.c5[aria-disabled=false]:focus,
|
|
1313
1271
|
.c5:not(:disabled):not([aria-disabled]):active,
|
|
1314
|
-
.c5[aria-disabled=false]:active
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
.c5:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
|
|
1320
|
-
.c5[aria-disabled=false]:focus:not(:focus-visible),
|
|
1321
|
-
.c5:not(:disabled):not([aria-disabled]):active:not(:focus-visible),
|
|
1322
|
-
.c5[aria-disabled=false]:active:not(:focus-visible) {
|
|
1323
|
-
outline: none;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1272
|
+
.c5[aria-disabled='false']:active,
|
|
1273
|
+
.c5:not(:disabled):not([aria-disabled]):focus,
|
|
1274
|
+
.c5[aria-disabled='false']:focus,
|
|
1326
1275
|
.c5:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1327
|
-
.c5[aria-disabled=false]:focus-visible {
|
|
1276
|
+
.c5[aria-disabled='false']:focus-visible {
|
|
1328
1277
|
outline: none;
|
|
1329
1278
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1330
1279
|
}
|
|
@@ -1370,40 +1319,29 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1370
1319
|
transition: 0.2s background-color,0.2s box-shadow;
|
|
1371
1320
|
}
|
|
1372
1321
|
|
|
1373
|
-
.c12:
|
|
1374
|
-
.c12
|
|
1375
|
-
background-color: var(--charcoal-surface4-hover);
|
|
1322
|
+
.c12:not(:disabled):not([aria-disabled]):hover,
|
|
1323
|
+
.c12[aria-disabled='false']:hover {
|
|
1324
|
+
background-color: var( --charcoal-surface4-hover );
|
|
1376
1325
|
}
|
|
1377
1326
|
|
|
1378
|
-
.c12:
|
|
1379
|
-
.c12
|
|
1380
|
-
background-color: var(--charcoal-surface4-press);
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
.c12:disabled,
|
|
1384
|
-
.c12[aria-disabled]:not([aria-disabled=false]) {
|
|
1385
|
-
opacity: 0.32;
|
|
1327
|
+
.c12:not(:disabled):not([aria-disabled]):active,
|
|
1328
|
+
.c12[aria-disabled='false']:active {
|
|
1329
|
+
background-color: var( --charcoal-surface4-press );
|
|
1386
1330
|
}
|
|
1387
1331
|
|
|
1388
1332
|
.c12:not(:disabled):not([aria-disabled]):focus,
|
|
1389
|
-
.c12[aria-disabled=false]:focus,
|
|
1333
|
+
.c12[aria-disabled='false']:focus,
|
|
1390
1334
|
.c12:not(:disabled):not([aria-disabled]):active,
|
|
1391
|
-
.c12[aria-disabled=false]:active
|
|
1335
|
+
.c12[aria-disabled='false']:active,
|
|
1336
|
+
.c12:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1337
|
+
.c12[aria-disabled='false']:focus-visible {
|
|
1392
1338
|
outline: none;
|
|
1393
1339
|
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1394
1340
|
}
|
|
1395
1341
|
|
|
1396
|
-
.c12:
|
|
1397
|
-
.c12[aria-disabled
|
|
1398
|
-
.
|
|
1399
|
-
.c12[aria-disabled=false]:active:not(:focus-visible) {
|
|
1400
|
-
outline: none;
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
.c12:not(:disabled):not([aria-disabled]):focus-visible,
|
|
1404
|
-
.c12[aria-disabled=false]:focus-visible {
|
|
1405
|
-
outline: none;
|
|
1406
|
-
box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
|
|
1342
|
+
.c12:disabled,
|
|
1343
|
+
.c12[aria-disabled]:not([aria-disabled='false']) {
|
|
1344
|
+
opacity: 0.32;
|
|
1407
1345
|
}
|
|
1408
1346
|
|
|
1409
1347
|
.c0 {
|
|
@@ -1456,7 +1394,6 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1456
1394
|
display: -webkit-flex;
|
|
1457
1395
|
display: -ms-flexbox;
|
|
1458
1396
|
display: flex;
|
|
1459
|
-
padding-left: 8px;
|
|
1460
1397
|
-webkit-align-items: center;
|
|
1461
1398
|
-webkit-box-align: center;
|
|
1462
1399
|
-ms-flex-align: center;
|
|
@@ -1517,7 +1454,14 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1517
1454
|
}
|
|
1518
1455
|
|
|
1519
1456
|
.c8 {
|
|
1520
|
-
|
|
1457
|
+
display: -webkit-box;
|
|
1458
|
+
display: -webkit-flex;
|
|
1459
|
+
display: -ms-flexbox;
|
|
1460
|
+
display: flex;
|
|
1461
|
+
-webkit-align-items: center;
|
|
1462
|
+
-webkit-box-align: center;
|
|
1463
|
+
-ms-flex-align: center;
|
|
1464
|
+
align-items: center;
|
|
1521
1465
|
color: #858585;
|
|
1522
1466
|
}
|
|
1523
1467
|
|
|
@@ -1582,15 +1526,14 @@ exports[`Storyshots TextField Prefix Icon 1`] = `
|
|
|
1582
1526
|
placeholder="作品を検索"
|
|
1583
1527
|
readOnly={false}
|
|
1584
1528
|
type="text"
|
|
1529
|
+
value=""
|
|
1585
1530
|
/>
|
|
1586
1531
|
<span
|
|
1587
1532
|
className="c10"
|
|
1588
1533
|
>
|
|
1589
1534
|
<button
|
|
1590
1535
|
className="c11 c12"
|
|
1591
|
-
|
|
1592
|
-
size="XS"
|
|
1593
|
-
width={20}
|
|
1536
|
+
onClick={[Function]}
|
|
1594
1537
|
>
|
|
1595
1538
|
<pixiv-icon
|
|
1596
1539
|
name="16/Remove"
|