@charcoal-ui/react 4.0.0-beta.1 → 4.0.0-beta.12

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 (266) hide show
  1. package/README.md +1 -1
  2. package/dist/_lib/compat.d.ts +0 -12
  3. package/dist/_lib/compat.d.ts.map +1 -1
  4. package/dist/_lib/createDivComponent.d.ts +4 -0
  5. package/dist/_lib/createDivComponent.d.ts.map +1 -0
  6. package/dist/_lib/useClassNames.d.ts +2 -2
  7. package/dist/_lib/useClassNames.d.ts.map +1 -1
  8. package/dist/components/Button/index.d.ts +5 -1
  9. package/dist/components/Button/index.d.ts.map +1 -1
  10. package/dist/components/Checkbox/CheckboxInput/index.d.ts +11 -0
  11. package/dist/components/Checkbox/CheckboxInput/index.d.ts.map +1 -0
  12. package/dist/components/Checkbox/CheckboxWithLabel.d.ts +9 -0
  13. package/dist/components/Checkbox/CheckboxWithLabel.d.ts.map +1 -0
  14. package/dist/components/Checkbox/index.d.ts +12 -21
  15. package/dist/components/Checkbox/index.d.ts.map +1 -1
  16. package/dist/components/Clickable/index.d.ts +9 -15
  17. package/dist/components/Clickable/index.d.ts.map +1 -1
  18. package/dist/components/DropdownSelector/Divider/index.d.ts +3 -0
  19. package/dist/components/DropdownSelector/Divider/index.d.ts.map +1 -0
  20. package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts +8 -0
  21. package/dist/components/DropdownSelector/DropdownMenuItem/index.d.ts.map +1 -0
  22. package/dist/components/DropdownSelector/DropdownPopover.d.ts.map +1 -1
  23. package/dist/components/DropdownSelector/ListItem/index.d.ts +5 -13
  24. package/dist/components/DropdownSelector/ListItem/index.d.ts.map +1 -1
  25. package/dist/components/DropdownSelector/MenuItem/index.d.ts +10 -3
  26. package/dist/components/DropdownSelector/MenuItem/index.d.ts.map +1 -1
  27. package/dist/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.d.ts +1 -1
  28. package/dist/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.d.ts.map +1 -1
  29. package/dist/components/DropdownSelector/MenuItemGroup/index.d.ts +1 -3
  30. package/dist/components/DropdownSelector/MenuItemGroup/index.d.ts.map +1 -1
  31. package/dist/components/DropdownSelector/MenuList/index.d.ts +1 -4
  32. package/dist/components/DropdownSelector/MenuList/index.d.ts.map +1 -1
  33. package/dist/components/DropdownSelector/Popover/index.d.ts +2 -2
  34. package/dist/components/DropdownSelector/Popover/index.d.ts.map +1 -1
  35. package/dist/components/DropdownSelector/index.d.ts +3 -1
  36. package/dist/components/DropdownSelector/index.d.ts.map +1 -1
  37. package/dist/components/FieldLabel/index.d.ts +1 -0
  38. package/dist/components/FieldLabel/index.d.ts.map +1 -1
  39. package/dist/components/IconButton/index.d.ts +6 -5
  40. package/dist/components/IconButton/index.d.ts.map +1 -1
  41. package/dist/components/LoadingSpinner/index.d.ts +1 -0
  42. package/dist/components/LoadingSpinner/index.d.ts.map +1 -1
  43. package/dist/components/Modal/Dialog/index.d.ts +6 -24
  44. package/dist/components/Modal/Dialog/index.d.ts.map +1 -1
  45. package/dist/components/Modal/ModalPlumbing.d.ts +10 -3
  46. package/dist/components/Modal/ModalPlumbing.d.ts.map +1 -1
  47. package/dist/components/Modal/index.d.ts +6 -2
  48. package/dist/components/Modal/index.d.ts.map +1 -1
  49. package/dist/components/Modal/useCustomModalOverlay.d.ts +1 -0
  50. package/dist/components/Modal/useCustomModalOverlay.d.ts.map +1 -1
  51. package/dist/components/Radio/RadioGroup/index.d.ts +20 -0
  52. package/dist/components/Radio/RadioGroup/index.d.ts.map +1 -0
  53. package/dist/components/Radio/RadioGroupContext.d.ts +11 -0
  54. package/dist/components/Radio/RadioGroupContext.d.ts.map +1 -0
  55. package/dist/components/Radio/RadioInput/index.d.ts +10 -0
  56. package/dist/components/Radio/RadioInput/index.d.ts.map +1 -0
  57. package/dist/components/Radio/index.d.ts +1 -14
  58. package/dist/components/Radio/index.d.ts.map +1 -1
  59. package/dist/components/SegmentedControl/index.d.ts +1 -0
  60. package/dist/components/SegmentedControl/index.d.ts.map +1 -1
  61. package/dist/components/Switch/SwitchInput/index.d.ts +9 -0
  62. package/dist/components/Switch/SwitchInput/index.d.ts.map +1 -0
  63. package/dist/components/Switch/SwitchWithLabel.d.ts +9 -0
  64. package/dist/components/Switch/SwitchWithLabel.d.ts.map +1 -0
  65. package/dist/components/Switch/index.d.ts +4 -15
  66. package/dist/components/Switch/index.d.ts.map +1 -1
  67. package/dist/components/TagItem/index.d.ts +10 -15
  68. package/dist/components/TagItem/index.d.ts.map +1 -1
  69. package/dist/components/TextArea/index.d.ts +29 -18
  70. package/dist/components/TextArea/index.d.ts.map +1 -1
  71. package/dist/components/TextField/AssistiveText/index.d.ts +5 -0
  72. package/dist/components/TextField/AssistiveText/index.d.ts.map +1 -0
  73. package/dist/components/TextField/index.d.ts +33 -22
  74. package/dist/components/TextField/index.d.ts.map +1 -1
  75. package/dist/core/CharcoalProvider.d.ts +4 -11
  76. package/dist/core/CharcoalProvider.d.ts.map +1 -1
  77. package/dist/core/SSRProvider.d.ts +3 -1
  78. package/dist/core/SSRProvider.d.ts.map +1 -1
  79. package/dist/index.cjs.js +575 -1255
  80. package/dist/index.cjs.js.map +1 -1
  81. package/dist/index.css +1097 -3
  82. package/dist/index.css.map +1 -1
  83. package/dist/index.d.ts +4 -5
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.esm.js +554 -1231
  86. package/dist/index.esm.js.map +1 -1
  87. package/package.json +22 -24
  88. package/src/README.mdx +68 -0
  89. package/src/SSR.mdx +67 -0
  90. package/src/_lib/compat.ts +0 -11
  91. package/src/_lib/createDivComponent.tsx +11 -0
  92. package/src/_lib/index.ts +1 -1
  93. package/src/_lib/useClassNames.ts +3 -9
  94. package/src/components/Button/__snapshots__/index.story.storyshot +18 -56
  95. package/src/components/Button/index.css +2 -3
  96. package/src/components/Button/index.story.tsx +14 -67
  97. package/src/components/Button/index.tsx +7 -3
  98. package/src/components/Checkbox/CheckboxInput/__snapshots__/index.story.storyshot +77 -0
  99. package/src/components/Checkbox/CheckboxInput/index.css +110 -0
  100. package/src/components/Checkbox/CheckboxInput/index.story.tsx +51 -0
  101. package/src/components/Checkbox/CheckboxInput/index.tsx +47 -0
  102. package/src/components/Checkbox/CheckboxWithLabel.tsx +24 -0
  103. package/src/components/Checkbox/__snapshots__/index.story.storyshot +103 -538
  104. package/src/components/Checkbox/index.css +21 -0
  105. package/src/components/Checkbox/index.story.tsx +49 -79
  106. package/src/components/Checkbox/index.tsx +32 -162
  107. package/src/components/Clickable/__snapshots__/index.story.storyshot +4 -80
  108. package/src/components/Clickable/index.css +41 -0
  109. package/src/components/Clickable/index.story.tsx +2 -2
  110. package/src/components/Clickable/index.tsx +19 -84
  111. package/src/components/DropdownSelector/Divider/index.css +11 -0
  112. package/src/components/DropdownSelector/Divider/index.tsx +5 -0
  113. package/src/components/DropdownSelector/DropdownMenuItem/index.css +20 -0
  114. package/src/components/DropdownSelector/DropdownMenuItem/index.tsx +34 -0
  115. package/src/components/DropdownSelector/DropdownPopover.tsx +16 -9
  116. package/src/components/DropdownSelector/ListItem/__snapshots__/index.story.storyshot +41 -224
  117. package/src/components/DropdownSelector/ListItem/index.css +24 -0
  118. package/src/components/DropdownSelector/ListItem/index.story.tsx +12 -6
  119. package/src/components/DropdownSelector/ListItem/index.tsx +14 -53
  120. package/src/components/DropdownSelector/MenuItem/index.tsx +17 -12
  121. package/src/components/DropdownSelector/MenuItem/internals/useMenuItemHandleKeyDown.tsx +2 -2
  122. package/src/components/DropdownSelector/MenuItemGroup/index.css +19 -0
  123. package/src/components/DropdownSelector/MenuItemGroup/index.tsx +6 -28
  124. package/src/components/DropdownSelector/MenuList/__snapshots__/index.story.storyshot +162 -416
  125. package/src/components/DropdownSelector/MenuList/index.css +4 -0
  126. package/src/components/DropdownSelector/MenuList/index.story.tsx +1 -1
  127. package/src/components/DropdownSelector/MenuList/index.tsx +4 -12
  128. package/src/components/DropdownSelector/Popover/__snapshots__/index.story.storyshot +1 -1
  129. package/src/components/DropdownSelector/Popover/index.css +11 -0
  130. package/src/components/DropdownSelector/Popover/index.story.tsx +1 -1
  131. package/src/components/DropdownSelector/Popover/index.tsx +7 -17
  132. package/src/components/DropdownSelector/__snapshots__/index.story.storyshot +432 -2458
  133. package/src/components/DropdownSelector/index.css +84 -0
  134. package/src/components/DropdownSelector/index.story.tsx +2 -6
  135. package/src/components/DropdownSelector/index.tsx +61 -137
  136. package/src/components/FieldLabel/index.css +35 -0
  137. package/src/components/FieldLabel/index.tsx +15 -105
  138. package/src/components/Icon/__snapshots__/index.story.storyshot +1 -1
  139. package/src/components/Icon/index.story.tsx +1 -1
  140. package/src/components/IconButton/__snapshots__/index.story.storyshot +19 -297
  141. package/src/components/IconButton/index.css +118 -0
  142. package/src/components/IconButton/index.story.tsx +17 -40
  143. package/src/components/IconButton/index.tsx +38 -118
  144. package/src/components/LoadingSpinner/__snapshots__/LoadingSpinnerIcon.story.storyshot +2 -17
  145. package/src/components/LoadingSpinner/__snapshots__/index.story.storyshot +80 -30
  146. package/src/components/LoadingSpinner/index.css +42 -0
  147. package/src/components/LoadingSpinner/index.story.tsx +19 -8
  148. package/src/components/LoadingSpinner/index.tsx +26 -52
  149. package/src/components/Modal/Dialog/index.css +44 -0
  150. package/src/components/Modal/Dialog/index.tsx +14 -57
  151. package/src/components/Modal/ModalPlumbing.css +40 -0
  152. package/src/components/Modal/ModalPlumbing.tsx +13 -61
  153. package/src/components/Modal/__snapshots__/index.story.storyshot +289 -2212
  154. package/src/components/Modal/index.css +36 -0
  155. package/src/components/Modal/index.story.tsx +28 -13
  156. package/src/components/Modal/index.tsx +42 -78
  157. package/src/components/Modal/useCustomModalOverlay.tsx +19 -4
  158. package/src/components/Radio/RadioGroup/index.css +5 -0
  159. package/src/components/Radio/RadioGroup/index.tsx +80 -0
  160. package/src/components/Radio/RadioGroupContext.ts +23 -0
  161. package/src/components/Radio/RadioInput/index.css +82 -0
  162. package/src/components/Radio/RadioInput/index.tsx +41 -0
  163. package/src/components/Radio/__snapshots__/index.story.storyshot +111 -855
  164. package/src/components/Radio/index.css +18 -0
  165. package/src/components/Radio/index.story.tsx +47 -40
  166. package/src/components/Radio/index.test.tsx +22 -29
  167. package/src/components/Radio/index.tsx +16 -208
  168. package/src/components/SegmentedControl/__snapshots__/index.story.storyshot +32 -262
  169. package/src/components/SegmentedControl/index.css +50 -0
  170. package/src/components/SegmentedControl/index.story.tsx +1 -1
  171. package/src/components/SegmentedControl/index.tsx +20 -89
  172. package/src/components/Switch/SwitchInput/index.css +82 -0
  173. package/src/components/Switch/SwitchInput/index.tsx +40 -0
  174. package/src/components/Switch/SwitchWithLabel.tsx +24 -0
  175. package/src/components/Switch/__snapshots__/index.story.storyshot +35 -539
  176. package/src/components/Switch/index.css +23 -0
  177. package/src/components/Switch/index.story.tsx +16 -19
  178. package/src/components/Switch/index.tsx +43 -140
  179. package/src/components/TagItem/__snapshots__/index.story.storyshot +212 -1063
  180. package/src/components/TagItem/index.css +140 -0
  181. package/src/components/TagItem/index.story.tsx +45 -162
  182. package/src/components/TagItem/index.tsx +72 -220
  183. package/src/components/TextArea/TextArea.story.tsx +63 -25
  184. package/src/components/TextArea/__snapshots__/TextArea.story.storyshot +615 -1055
  185. package/src/components/TextArea/index.css +78 -0
  186. package/src/components/TextArea/index.tsx +83 -174
  187. package/src/components/TextField/AssistiveText/index.css +10 -0
  188. package/src/components/TextField/AssistiveText/index.tsx +6 -0
  189. package/src/components/TextField/TextField.story.tsx +85 -76
  190. package/src/components/TextField/__snapshots__/TextField.story.storyshot +631 -1709
  191. package/src/components/TextField/index.css +87 -0
  192. package/src/components/TextField/index.tsx +92 -211
  193. package/src/core/CharcoalProvider.tsx +5 -29
  194. package/src/core/SSRProvider.tsx +12 -1
  195. package/src/index.ts +7 -19
  196. package/src/type.d.ts +3 -8
  197. package/dist/components/Button/index.story.d.ts +0 -24
  198. package/dist/components/Button/index.story.d.ts.map +0 -1
  199. package/dist/components/Checkbox/index.story.d.ts +0 -8
  200. package/dist/components/Checkbox/index.story.d.ts.map +0 -1
  201. package/dist/components/Clickable/index.story.d.ts +0 -6
  202. package/dist/components/Clickable/index.story.d.ts.map +0 -1
  203. package/dist/components/DropdownSelector/Divider.d.ts +0 -7
  204. package/dist/components/DropdownSelector/Divider.d.ts.map +0 -1
  205. package/dist/components/DropdownSelector/DropdownMenuItem.d.ts +0 -7
  206. package/dist/components/DropdownSelector/DropdownMenuItem.d.ts.map +0 -1
  207. package/dist/components/DropdownSelector/ListItem/index.story.d.ts +0 -9
  208. package/dist/components/DropdownSelector/ListItem/index.story.d.ts.map +0 -1
  209. package/dist/components/DropdownSelector/MenuList/index.story.d.ts +0 -8
  210. package/dist/components/DropdownSelector/MenuList/index.story.d.ts.map +0 -1
  211. package/dist/components/DropdownSelector/Popover/index.story.d.ts +0 -5
  212. package/dist/components/DropdownSelector/Popover/index.story.d.ts.map +0 -1
  213. package/dist/components/DropdownSelector/index.story.d.ts +0 -19
  214. package/dist/components/DropdownSelector/index.story.d.ts.map +0 -1
  215. package/dist/components/Icon/index.story.d.ts +0 -6
  216. package/dist/components/Icon/index.story.d.ts.map +0 -1
  217. package/dist/components/IconButton/index.story.d.ts +0 -9
  218. package/dist/components/IconButton/index.story.d.ts.map +0 -1
  219. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts +0 -8
  220. package/dist/components/LoadingSpinner/LoadingSpinnerIcon.story.d.ts.map +0 -1
  221. package/dist/components/LoadingSpinner/index.story.d.ts +0 -6
  222. package/dist/components/LoadingSpinner/index.story.d.ts.map +0 -1
  223. package/dist/components/Modal/__stories__/InternalScrollStory.d.ts +0 -4
  224. package/dist/components/Modal/__stories__/InternalScrollStory.d.ts.map +0 -1
  225. package/dist/components/Modal/index.story.d.ts +0 -21
  226. package/dist/components/Modal/index.story.d.ts.map +0 -1
  227. package/dist/components/MultiSelect/context.d.ts +0 -14
  228. package/dist/components/MultiSelect/context.d.ts.map +0 -1
  229. package/dist/components/MultiSelect/index.d.ts +0 -36
  230. package/dist/components/MultiSelect/index.d.ts.map +0 -1
  231. package/dist/components/MultiSelect/index.story.d.ts +0 -82
  232. package/dist/components/MultiSelect/index.story.d.ts.map +0 -1
  233. package/dist/components/MultiSelect/index.test.d.ts +0 -2
  234. package/dist/components/MultiSelect/index.test.d.ts.map +0 -1
  235. package/dist/components/Radio/index.story.d.ts +0 -26
  236. package/dist/components/Radio/index.story.d.ts.map +0 -1
  237. package/dist/components/Radio/index.test.d.ts +0 -2
  238. package/dist/components/Radio/index.test.d.ts.map +0 -1
  239. package/dist/components/SegmentedControl/index.story.d.ts +0 -7
  240. package/dist/components/SegmentedControl/index.story.d.ts.map +0 -1
  241. package/dist/components/Switch/index.story.d.ts +0 -9
  242. package/dist/components/Switch/index.story.d.ts.map +0 -1
  243. package/dist/components/TagItem/index.story.d.ts +0 -16
  244. package/dist/components/TagItem/index.story.d.ts.map +0 -1
  245. package/dist/components/TextArea/TextArea.story.d.ts +0 -9
  246. package/dist/components/TextArea/TextArea.story.d.ts.map +0 -1
  247. package/dist/components/TextField/TextField.story.d.ts +0 -22
  248. package/dist/components/TextField/TextField.story.d.ts.map +0 -1
  249. package/dist/components/a11y.test.d.ts +0 -2
  250. package/dist/components/a11y.test.d.ts.map +0 -1
  251. package/dist/core/ComponentAbstraction.d.ts +0 -24
  252. package/dist/core/ComponentAbstraction.d.ts.map +0 -1
  253. package/dist/styled.d.ts +0 -95
  254. package/dist/styled.d.ts.map +0 -1
  255. package/src/components/DropdownSelector/Divider.tsx +0 -16
  256. package/src/components/DropdownSelector/DropdownMenuItem.tsx +0 -43
  257. package/src/components/LoadingSpinner/LoadingSpinnerIcon.story.tsx +0 -13
  258. package/src/components/Modal/__stories__/InternalScrollStory.tsx +0 -75
  259. package/src/components/MultiSelect/__snapshots__/index.story.storyshot +0 -1066
  260. package/src/components/MultiSelect/context.ts +0 -23
  261. package/src/components/MultiSelect/index.story.tsx +0 -216
  262. package/src/components/MultiSelect/index.test.tsx +0 -263
  263. package/src/components/MultiSelect/index.tsx +0 -281
  264. package/src/components/a11y.test.tsx +0 -99
  265. package/src/core/ComponentAbstraction.tsx +0 -48
  266. package/src/styled.ts +0 -3
@@ -1,515 +1,6 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Storybook Tests Modal BackgroundScroll 1`] = `
4
- .c23 {
5
- cursor: pointer;
6
- -webkit-appearance: none;
7
- -moz-appearance: none;
8
- appearance: none;
9
- background: transparent;
10
- padding: 0;
11
- border-style: none;
12
- outline: none;
13
- color: inherit;
14
- text-rendering: inherit;
15
- -webkit-letter-spacing: inherit;
16
- -moz-letter-spacing: inherit;
17
- -ms-letter-spacing: inherit;
18
- letter-spacing: inherit;
19
- word-spacing: inherit;
20
- -webkit-text-decoration: none;
21
- text-decoration: none;
22
- font: inherit;
23
- margin: 0;
24
- overflow: visible;
25
- text-transform: none;
26
- }
27
-
28
- .c23:disabled,
29
- .c23[aria-disabled]:not([aria-disabled=false]) {
30
- cursor: default;
31
- }
32
-
33
- .c23:focus {
34
- outline: none;
35
- }
36
-
37
- .c23::-moz-focus-inner {
38
- border-style: none;
39
- padding: 0;
40
- }
41
-
42
- .c12 {
43
- font-size: 14px;
44
- line-height: 22px;
45
- font-weight: bold;
46
- display: flow-root;
47
- color: var(--charcoal-text1);
48
- }
49
-
50
- .c12::before {
51
- display: block;
52
- width: 0;
53
- height: 0;
54
- content: '';
55
- margin-top: -4px;
56
- }
57
-
58
- .c12::after {
59
- display: block;
60
- width: 0;
61
- height: 0;
62
- content: '';
63
- margin-bottom: -4px;
64
- }
65
-
66
- .c14 {
67
- font-size: 14px;
68
- line-height: 22px;
69
- display: flow-root;
70
- color: var(--charcoal-text3);
71
- -webkit-transition: 0.2s color,0.2s box-shadow;
72
- transition: 0.2s color,0.2s box-shadow;
73
- }
74
-
75
- .c14::before {
76
- display: block;
77
- width: 0;
78
- height: 0;
79
- content: '';
80
- margin-top: -4px;
81
- }
82
-
83
- .c14::after {
84
- display: block;
85
- width: 0;
86
- height: 0;
87
- content: '';
88
- margin-bottom: -4px;
89
- }
90
-
91
- .c14:not(:disabled):not([aria-disabled]):hover,
92
- .c14[aria-disabled='false']:hover {
93
- color: var(--charcoal-text3-hover);
94
- }
95
-
96
- .c14:not(:disabled):not([aria-disabled]):active,
97
- .c14[aria-disabled='false']:active {
98
- color: var(--charcoal-text3-press);
99
- }
100
-
101
- .c14:not(:disabled):not([aria-disabled]):active,
102
- .c14[aria-disabled='false']:active,
103
- .c14:not(:disabled):not([aria-disabled]):focus,
104
- .c14[aria-disabled='false']:focus,
105
- .c14:not(:disabled):not([aria-disabled]):focus-visible,
106
- .c14[aria-disabled='false']:focus-visible {
107
- outline: none;
108
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
109
- }
110
-
111
- .c10 {
112
- display: -webkit-inline-box;
113
- display: -webkit-inline-flex;
114
- display: -ms-inline-flexbox;
115
- display: inline-flex;
116
- -webkit-align-items: center;
117
- -webkit-box-align: center;
118
- -ms-flex-align: center;
119
- align-items: center;
120
- }
121
-
122
- .c10 > .c13 {
123
- margin-left: auto;
124
- }
125
-
126
- .c17 {
127
- display: inline-block;
128
- width: 100%;
129
- }
130
-
131
- .c17:disabled,
132
- .c17[aria-disabled]:not([aria-disabled=false]) {
133
- cursor: default;
134
- opacity: 0.32;
135
- }
136
-
137
- .c18 {
138
- width: 100%;
139
- margin-bottom: 8px;
140
- }
141
-
142
- .c19 {
143
- display: -webkit-box;
144
- display: -webkit-flex;
145
- display: -ms-flexbox;
146
- display: flex;
147
- -webkit-box-pack: justify;
148
- -webkit-justify-content: space-between;
149
- -ms-flex-pack: justify;
150
- justify-content: space-between;
151
- -webkit-align-items: center;
152
- -webkit-box-align: center;
153
- -ms-flex-align: center;
154
- align-items: center;
155
- height: 40px;
156
- width: 100%;
157
- box-sizing: border-box;
158
- border: none;
159
- cursor: pointer;
160
- gap: 4px;
161
- padding-right: 8px;
162
- padding-left: 8px;
163
- background-color: var(--charcoal-surface3);
164
- border-radius: 4px;
165
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
166
- transition: 0.2s box-shadow,0.2s background-color;
167
- }
168
-
169
- .c19:disabled,
170
- .c19[aria-disabled]:not([aria-disabled=false]) {
171
- cursor: default;
172
- }
173
-
174
- .c19:not(:disabled):not([aria-disabled]):focus,
175
- .c19[aria-disabled='false']:focus {
176
- outline: none;
177
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
178
- }
179
-
180
- .c19:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
181
- .c19[aria-disabled='false']:focus:not(:focus-visible) {
182
- box-shadow: none;
183
- }
184
-
185
- .c19:not(:disabled):not([aria-disabled]):focus-visible,
186
- .c19[aria-disabled='false']:focus-visible {
187
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
188
- }
189
-
190
- .c19:not(:disabled):not([aria-disabled]):hover,
191
- .c19[aria-disabled='false']:hover {
192
- background-color: var(--charcoal-surface3-hover);
193
- }
194
-
195
- .c19:not(:disabled):not([aria-disabled]):active,
196
- .c19[aria-disabled='false']:active {
197
- background-color: var(--charcoal-surface3-press);
198
- }
199
-
200
- .c20 {
201
- text-align: left;
202
- font-size: 14px;
203
- line-height: 22px;
204
- display: flow-root;
205
- color: var(--charcoal-text2);
206
- overflow: hidden;
207
- text-overflow: ellipsis;
208
- white-space: nowrap;
209
- }
210
-
211
- .c21 {
212
- color: var(--charcoal-text2);
213
- }
214
-
215
- .c24 {
216
- -webkit-user-select: none;
217
- -moz-user-select: none;
218
- -ms-user-select: none;
219
- user-select: none;
220
- width: 32px;
221
- height: 32px;
222
- display: -webkit-box;
223
- display: -webkit-flex;
224
- display: -ms-flexbox;
225
- display: flex;
226
- -webkit-align-items: center;
227
- -webkit-box-align: center;
228
- -ms-flex-align: center;
229
- align-items: center;
230
- -webkit-box-pack: center;
231
- -webkit-justify-content: center;
232
- -ms-flex-pack: center;
233
- justify-content: center;
234
- color: var(--charcoal-text3);
235
- background-color: var(--charcoal-transparent);
236
- border-radius: 999999px;
237
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
238
- transition: 0.2s background-color,0.2s box-shadow;
239
- }
240
-
241
- .c24:not(:disabled):not([aria-disabled]):hover,
242
- .c24[aria-disabled='false']:hover {
243
- color: var(--charcoal-text3-hover);
244
- background-color: var(--charcoal-transparent-hover);
245
- }
246
-
247
- .c24:not(:disabled):not([aria-disabled]):active,
248
- .c24[aria-disabled='false']:active {
249
- color: var(--charcoal-text3-press);
250
- background-color: var(--charcoal-transparent-press);
251
- }
252
-
253
- .c24:not(:disabled):not([aria-disabled]):focus,
254
- .c24[aria-disabled='false']:focus {
255
- outline: none;
256
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
257
- }
258
-
259
- .c24:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
260
- .c24[aria-disabled='false']:focus:not(:focus-visible) {
261
- box-shadow: none;
262
- }
263
-
264
- .c24:not(:disabled):not([aria-disabled]):focus-visible,
265
- .c24[aria-disabled='false']:focus-visible {
266
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
267
- }
268
-
269
- .c24:disabled,
270
- .c24[aria-disabled]:not([aria-disabled='false']) {
271
- opacity: 0.32;
272
- }
273
-
274
- .c1 {
275
- margin: auto;
276
- position: relative;
277
- height: -webkit-fit-content;
278
- height: -moz-fit-content;
279
- height: fit-content;
280
- width: 440px;
281
- background-color: var(--charcoal-surface1);
282
- border-radius: 24px;
283
- }
284
-
285
- .c1:focus {
286
- outline: none;
287
- }
288
-
289
- .c0 {
290
- z-index: 10;
291
- overflow: auto;
292
- display: -webkit-box;
293
- display: -webkit-flex;
294
- display: -ms-flexbox;
295
- display: flex;
296
- position: fixed;
297
- top: 0;
298
- left: 0;
299
- width: -webkit-fill-available;
300
- width: -moz-available;
301
- height: 100%;
302
- -webkit-box-pack: center;
303
- -webkit-justify-content: center;
304
- -ms-flex-pack: center;
305
- justify-content: center;
306
- padding: 40px 0;
307
- box-sizing: border-box;
308
- background-color: var(--charcoal-surface4);
309
- }
310
-
311
- .c25 {
312
- position: absolute;
313
- top: 8px;
314
- right: 8px;
315
- color: var(--charcoal-text3);
316
- -webkit-transition: 0.2s color;
317
- transition: 0.2s color;
318
- }
319
-
320
- .c25:not(:disabled):not([aria-disabled]):hover,
321
- .c25[aria-disabled='false']:hover {
322
- color: var(--charcoal-text3-hover);
323
- }
324
-
325
- .c25:not(:disabled):not([aria-disabled]):active,
326
- .c25[aria-disabled='false']:active {
327
- color: var(--charcoal-text3-press);
328
- }
329
-
330
- .c3 {
331
- margin: 0;
332
- font-weight: inherit;
333
- font-size: inherit;
334
- }
335
-
336
- .c2 {
337
- height: 64px;
338
- display: grid;
339
- -webkit-align-content: center;
340
- -ms-flex-line-pack: center;
341
- align-content: center;
342
- -webkit-box-pack: center;
343
- -webkit-justify-content: center;
344
- -ms-flex-pack: center;
345
- justify-content: center;
346
- }
347
-
348
- .c4 {
349
- color: var(--charcoal-text1);
350
- font-size: 16px;
351
- line-height: 24px;
352
- font-weight: bold;
353
- display: flow-root;
354
- }
355
-
356
- .c4::before {
357
- display: block;
358
- width: 0;
359
- height: 0;
360
- content: '';
361
- margin-top: -4px;
362
- }
363
-
364
- .c4::after {
365
- display: block;
366
- width: 0;
367
- height: 0;
368
- content: '';
369
- margin-bottom: -4px;
370
- }
371
-
372
- .c7 {
373
- padding-left: 16px;
374
- padding-right: 16px;
375
- }
376
-
377
- .c5 {
378
- padding-bottom: 40px;
379
- }
380
-
381
- .c22 {
382
- display: grid;
383
- grid-auto-flow: row;
384
- grid-row-gap: 8px;
385
- padding-top: 16px;
386
- padding-left: 16px;
387
- padding-right: 16px;
388
- }
389
-
390
- .c9 {
391
- display: -webkit-box;
392
- display: -webkit-flex;
393
- display: -ms-flexbox;
394
- display: flex;
395
- -webkit-flex-direction: column;
396
- -ms-flex-direction: column;
397
- flex-direction: column;
398
- }
399
-
400
- .c11 {
401
- margin-bottom: 8px;
402
- }
403
-
404
- .c15 {
405
- display: grid;
406
- grid-template-columns: 1fr;
407
- height: 40px;
408
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
409
- transition: 0.2s background-color,0.2s box-shadow;
410
- color: var(--charcoal-text2);
411
- background-color: var(--charcoal-surface3);
412
- border-radius: 4px;
413
- gap: 4px;
414
- padding: 0 8px;
415
- line-height: 22px;
416
- font-size: 14px;
417
- }
418
-
419
- .c15:not(:disabled):not([aria-disabled]):hover,
420
- .c15 [aria-disabled='false']:hover {
421
- background-color: var(--charcoal-surface3-hover);
422
- }
423
-
424
- .c15:focus-within {
425
- outline: none;
426
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
427
- }
428
-
429
- .c16 {
430
- border: none;
431
- box-sizing: border-box;
432
- outline: none;
433
- font-family: inherit;
434
- -webkit-transform-origin: top left;
435
- -ms-transform-origin: top left;
436
- transform-origin: top left;
437
- -webkit-transform: scale(0.875);
438
- -ms-transform: scale(0.875);
439
- transform: scale(0.875);
440
- width: calc(100% / 0.875);
441
- height: calc(100% / 0.875);
442
- font-size: calc(14px / 0.875);
443
- line-height: calc(22px / 0.875);
444
- padding-left: 0;
445
- padding-right: 0;
446
- border-radius: calc(4px / 0.875);
447
- -webkit-appearance: none;
448
- -moz-appearance: none;
449
- appearance: none;
450
- background: transparent;
451
- color: var(--charcoal-text2);
452
- }
453
-
454
- .c16::-webkit-input-placeholder {
455
- color: var(--charcoal-text3);
456
- }
457
-
458
- .c16::-moz-placeholder {
459
- color: var(--charcoal-text3);
460
- }
461
-
462
- .c16:-ms-input-placeholder {
463
- color: var(--charcoal-text3);
464
- }
465
-
466
- .c16::placeholder {
467
- color: var(--charcoal-text3);
468
- }
469
-
470
- .c6 {
471
- display: grid;
472
- gap: 24px;
473
- }
474
-
475
- .c8 {
476
- color: var(--charcoal-text2);
477
- font-size: 14px;
478
- line-height: 22px;
479
- display: flow-root;
480
- }
481
-
482
- .c8::before {
483
- display: block;
484
- width: 0;
485
- height: 0;
486
- content: '';
487
- margin-top: -4px;
488
- }
489
-
490
- .c8::after {
491
- display: block;
492
- width: 0;
493
- height: 0;
494
- content: '';
495
- margin-bottom: -4px;
496
- }
497
-
498
- @media (max-width:743px) {
499
- .c1 {
500
- max-width: 440px;
501
- width: calc(100% - 48px);
502
- }
503
- }
504
-
505
- @media (max-width:743px) {
506
-
507
- }
508
-
509
- @media (max-width:743px) {
510
-
511
- }
512
-
3
+ exports[`Storybook Tests > react/Modal > BackgroundScroll 1`] = `
513
4
  <div
514
5
  data-dark={false}
515
6
  >
@@ -532,137 +23,156 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
532
23
  </button>
533
24
  </div>
534
25
  <div
535
- className="c0"
26
+ className="charcoal-modal-background"
27
+ data-bottom-sheet={false}
536
28
  onClick={[Function]}
537
29
  onPointerDown={[Function]}
538
- style={Object {}}
30
+ style={
31
+ Object {
32
+ "zIndex": 10,
33
+ }
34
+ }
539
35
  >
540
36
  <div
541
- className="c1"
542
- onBlur={[Function]}
37
+ className="charcoal-modal-dialog"
38
+ data-bottom-sheet={false}
39
+ data-size="M"
543
40
  onKeyDown={[Function]}
544
41
  role="dialog"
545
- size="M"
546
42
  style={Object {}}
547
43
  tabIndex={-1}
548
44
  >
549
45
  <div
550
- className="c2"
46
+ className="charcoal-modal-header-root"
47
+ data-bottom-sheet={false}
551
48
  >
552
- <h3
553
- className="c3 c4"
49
+ <div
50
+ className="charcoal-modal-header-title"
554
51
  >
555
- Title
556
- </h3>
52
+ react/Title
53
+ </div>
557
54
  </div>
558
55
  <div
559
- className="c5"
56
+ className="charcoal-modal-body"
560
57
  >
561
58
  <div
562
- className="c6"
59
+ style={
60
+ Object {
61
+ "display": "grid",
62
+ "gap": 24,
63
+ }
64
+ }
563
65
  >
564
66
  <div
565
- className="c7 c8"
67
+ style={
68
+ Object {
69
+ "color": "var(--charcoal-text2)",
70
+ "fontSize": 14,
71
+ "lineHeight": "22px",
72
+ "padding": "0 16px",
73
+ }
74
+ }
566
75
  >
567
76
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
568
77
  </div>
569
78
  <div
570
- className="c7"
79
+ className="charcoal-modal-align"
571
80
  >
572
81
  <div
573
- className="c9"
82
+ aria-disabled={false}
83
+ className="charcoal-text-field-root"
574
84
  >
575
85
  <div
576
- className="c10 c11"
86
+ className="charcoal-field-label-root"
577
87
  >
578
88
  <label
579
- className="c12"
89
+ className="charcoal-field-label"
580
90
  htmlFor="test-id"
581
91
  id="test-id"
582
92
  >
583
93
  Name
584
94
  </label>
585
95
  <div
586
- className="c13 c14"
96
+ className="charcoal-field-label-sub-label"
587
97
  >
588
98
  <span />
589
99
  </div>
590
100
  </div>
591
101
  <div
592
- className="c15"
102
+ className="charcoal-text-field-container"
103
+ data-invalid={false}
593
104
  >
594
105
  <input
595
106
  aria-labelledby="test-id"
596
- className="c16"
107
+ className="charcoal-text-field-input"
108
+ data-invalid={false}
597
109
  disabled={false}
598
110
  id="test-id"
599
111
  onChange={[Function]}
600
112
  placeholder="Nagisa"
601
- readOnly={false}
602
- required={false}
603
113
  type="text"
604
- value=""
605
114
  />
606
115
  </div>
607
116
  </div>
608
117
  </div>
609
118
  <div
610
- className="c7"
119
+ className="charcoal-modal-align"
611
120
  >
612
121
  <div
613
- className="c9"
122
+ aria-disabled={false}
123
+ className="charcoal-text-field-root"
614
124
  >
615
125
  <div
616
- className="c10 c11"
126
+ className="charcoal-field-label-root"
617
127
  >
618
128
  <label
619
- className="c12"
129
+ className="charcoal-field-label"
620
130
  htmlFor="test-id"
621
131
  id="test-id"
622
132
  >
623
133
  Country
624
134
  </label>
625
135
  <div
626
- className="c13 c14"
136
+ className="charcoal-field-label-sub-label"
627
137
  >
628
138
  <span />
629
139
  </div>
630
140
  </div>
631
141
  <div
632
- className="c15"
142
+ className="charcoal-text-field-container"
143
+ data-invalid={false}
633
144
  >
634
145
  <input
635
146
  aria-labelledby="test-id"
636
147
  autoFocus={true}
637
- className="c16"
148
+ className="charcoal-text-field-input"
149
+ data-invalid={false}
638
150
  disabled={false}
639
151
  id="test-id"
640
152
  onChange={[Function]}
641
153
  placeholder="Tokyo"
642
- readOnly={false}
643
- required={false}
644
154
  type="text"
645
- value=""
646
155
  />
647
156
  </div>
648
157
  </div>
649
158
  </div>
650
159
  <div
651
- className="c7"
160
+ className="charcoal-modal-align"
652
161
  >
653
162
  <div
654
- className="c17"
163
+ className="charcoal-dropdown-selector-root"
655
164
  >
656
165
  <div
657
- className="c10 c18"
166
+ className="charcoal-field-label-root"
658
167
  >
659
168
  <label
660
- className="c12"
169
+ className="charcoal-field-label"
170
+ id="test-id"
661
171
  >
662
172
  Fruits
663
173
  </label>
664
174
  <div
665
- className="c13 c14"
175
+ className="charcoal-field-label-sub-label"
666
176
  >
667
177
  <span />
668
178
  </div>
@@ -685,6 +195,7 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
685
195
  }
686
196
  >
687
197
  <select
198
+ onChange={[Function]}
688
199
  tabIndex={-1}
689
200
  value="10"
690
201
  >
@@ -706,17 +217,20 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
706
217
  </select>
707
218
  </div>
708
219
  <button
709
- className="c19"
220
+ aria-labelledby="test-id"
221
+ className="charcoal-dropdown-selector-button"
222
+ data-active={false}
710
223
  onClick={[Function]}
711
224
  type="button"
712
225
  >
713
226
  <span
714
- className="c20"
227
+ className="charcoal-ui-dropdown-selector-text"
228
+ data-placeholder={false}
715
229
  >
716
230
  Apple
717
231
  </span>
718
232
  <pixiv-icon
719
- class="c21"
233
+ class="charcoal-ui-dropdown-selector-icon"
720
234
  name="16/Menu"
721
235
  />
722
236
  </button>
@@ -724,7 +238,7 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
724
238
  </div>
725
239
  </div>
726
240
  <div
727
- className="c22"
241
+ className="charcoal-modal-buttons"
728
242
  >
729
243
  <button
730
244
  className="charcoal-button"
@@ -744,8 +258,13 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
744
258
  </div>
745
259
  </div>
746
260
  <button
747
- className="c23 c24 c25"
261
+ aria-label="Close"
262
+ className="charcoal-icon-button charcoal-modal-close-button"
263
+ data-active={false}
264
+ data-size="S"
265
+ data-variant="Default"
748
266
  onClick={[Function]}
267
+ type="button"
749
268
  >
750
269
  <pixiv-icon
751
270
  name="24/Close"
@@ -757,271 +276,7 @@ exports[`Storybook Tests Modal BackgroundScroll 1`] = `
757
276
  </div>
758
277
  `;
759
278
 
760
- exports[`Storybook Tests Modal BottomSheet 1`] = `
761
- .c10 {
762
- cursor: pointer;
763
- -webkit-appearance: none;
764
- -moz-appearance: none;
765
- appearance: none;
766
- background: transparent;
767
- padding: 0;
768
- border-style: none;
769
- outline: none;
770
- color: inherit;
771
- text-rendering: inherit;
772
- -webkit-letter-spacing: inherit;
773
- -moz-letter-spacing: inherit;
774
- -ms-letter-spacing: inherit;
775
- letter-spacing: inherit;
776
- word-spacing: inherit;
777
- -webkit-text-decoration: none;
778
- text-decoration: none;
779
- font: inherit;
780
- margin: 0;
781
- overflow: visible;
782
- text-transform: none;
783
- }
784
-
785
- .c10:disabled,
786
- .c10[aria-disabled]:not([aria-disabled=false]) {
787
- cursor: default;
788
- }
789
-
790
- .c10:focus {
791
- outline: none;
792
- }
793
-
794
- .c10::-moz-focus-inner {
795
- border-style: none;
796
- padding: 0;
797
- }
798
-
799
- .c11 {
800
- -webkit-user-select: none;
801
- -moz-user-select: none;
802
- -ms-user-select: none;
803
- user-select: none;
804
- width: 32px;
805
- height: 32px;
806
- display: -webkit-box;
807
- display: -webkit-flex;
808
- display: -ms-flexbox;
809
- display: flex;
810
- -webkit-align-items: center;
811
- -webkit-box-align: center;
812
- -ms-flex-align: center;
813
- align-items: center;
814
- -webkit-box-pack: center;
815
- -webkit-justify-content: center;
816
- -ms-flex-pack: center;
817
- justify-content: center;
818
- color: var(--charcoal-text3);
819
- background-color: var(--charcoal-transparent);
820
- border-radius: 999999px;
821
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
822
- transition: 0.2s background-color,0.2s box-shadow;
823
- }
824
-
825
- .c11:not(:disabled):not([aria-disabled]):hover,
826
- .c11[aria-disabled='false']:hover {
827
- color: var(--charcoal-text3-hover);
828
- background-color: var(--charcoal-transparent-hover);
829
- }
830
-
831
- .c11:not(:disabled):not([aria-disabled]):active,
832
- .c11[aria-disabled='false']:active {
833
- color: var(--charcoal-text3-press);
834
- background-color: var(--charcoal-transparent-press);
835
- }
836
-
837
- .c11:not(:disabled):not([aria-disabled]):focus,
838
- .c11[aria-disabled='false']:focus {
839
- outline: none;
840
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
841
- }
842
-
843
- .c11:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
844
- .c11[aria-disabled='false']:focus:not(:focus-visible) {
845
- box-shadow: none;
846
- }
847
-
848
- .c11:not(:disabled):not([aria-disabled]):focus-visible,
849
- .c11[aria-disabled='false']:focus-visible {
850
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
851
- }
852
-
853
- .c11:disabled,
854
- .c11[aria-disabled]:not([aria-disabled='false']) {
855
- opacity: 0.32;
856
- }
857
-
858
- .c1 {
859
- margin: auto;
860
- position: relative;
861
- height: -webkit-fit-content;
862
- height: -moz-fit-content;
863
- height: fit-content;
864
- width: 440px;
865
- background-color: var(--charcoal-surface1);
866
- border-radius: 24px;
867
- }
868
-
869
- .c1:focus {
870
- outline: none;
871
- }
872
-
873
- .c0 {
874
- z-index: 10;
875
- overflow: auto;
876
- display: -webkit-box;
877
- display: -webkit-flex;
878
- display: -ms-flexbox;
879
- display: flex;
880
- position: fixed;
881
- top: 0;
882
- left: 0;
883
- width: -webkit-fill-available;
884
- width: -moz-available;
885
- height: 100%;
886
- -webkit-box-pack: center;
887
- -webkit-justify-content: center;
888
- -ms-flex-pack: center;
889
- justify-content: center;
890
- padding: 40px 0;
891
- box-sizing: border-box;
892
- background-color: var(--charcoal-surface4);
893
- }
894
-
895
- .c12 {
896
- position: absolute;
897
- top: 8px;
898
- right: 8px;
899
- color: var(--charcoal-text3);
900
- -webkit-transition: 0.2s color;
901
- transition: 0.2s color;
902
- }
903
-
904
- .c12:not(:disabled):not([aria-disabled]):hover,
905
- .c12[aria-disabled='false']:hover {
906
- color: var(--charcoal-text3-hover);
907
- }
908
-
909
- .c12:not(:disabled):not([aria-disabled]):active,
910
- .c12[aria-disabled='false']:active {
911
- color: var(--charcoal-text3-press);
912
- }
913
-
914
- .c3 {
915
- margin: 0;
916
- font-weight: inherit;
917
- font-size: inherit;
918
- }
919
-
920
- .c2 {
921
- height: 64px;
922
- display: grid;
923
- -webkit-align-content: center;
924
- -ms-flex-line-pack: center;
925
- align-content: center;
926
- -webkit-box-pack: center;
927
- -webkit-justify-content: center;
928
- -ms-flex-pack: center;
929
- justify-content: center;
930
- }
931
-
932
- .c4 {
933
- color: var(--charcoal-text1);
934
- font-size: 16px;
935
- line-height: 24px;
936
- font-weight: bold;
937
- display: flow-root;
938
- }
939
-
940
- .c4::before {
941
- display: block;
942
- width: 0;
943
- height: 0;
944
- content: '';
945
- margin-top: -4px;
946
- }
947
-
948
- .c4::after {
949
- display: block;
950
- width: 0;
951
- height: 0;
952
- content: '';
953
- margin-bottom: -4px;
954
- }
955
-
956
- .c7 {
957
- padding-left: 16px;
958
- padding-right: 16px;
959
- }
960
-
961
- .c5 {
962
- padding-bottom: 40px;
963
- }
964
-
965
- .c9 {
966
- display: grid;
967
- grid-auto-flow: row;
968
- grid-row-gap: 8px;
969
- padding-top: 16px;
970
- padding-left: 16px;
971
- padding-right: 16px;
972
- }
973
-
974
- .c6 {
975
- display: grid;
976
- gap: 24px;
977
- }
978
-
979
- .c8 {
980
- color: var(--charcoal-text2);
981
- font-size: 14px;
982
- line-height: 22px;
983
- display: flow-root;
984
- }
985
-
986
- .c8::before {
987
- display: block;
988
- width: 0;
989
- height: 0;
990
- content: '';
991
- margin-top: -4px;
992
- }
993
-
994
- .c8::after {
995
- display: block;
996
- width: 0;
997
- height: 0;
998
- content: '';
999
- margin-bottom: -4px;
1000
- }
1001
-
1002
- @media (max-width:743px) {
1003
- .c1 {
1004
- max-width: 440px;
1005
- width: calc(100% - 48px);
1006
- max-width: unset;
1007
- width: 100%;
1008
- border-radius: 0;
1009
- margin: auto 0 0 0;
1010
- }
1011
- }
1012
-
1013
- @media (max-width:743px) {
1014
- .c0 {
1015
- padding: 0;
1016
- }
1017
- }
1018
-
1019
- @media (max-width:743px) {
1020
- .c2 {
1021
- height: 48px;
1022
- }
1023
- }
1024
-
279
+ exports[`Storybook Tests > react/Modal > BottomSheet 1`] = `
1025
280
  <div
1026
281
  data-dark={false}
1027
282
  >
@@ -1036,53 +291,79 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1036
291
  Open Modal
1037
292
  </button>
1038
293
  <div
1039
- className="c0"
294
+ className="charcoal-modal-background"
295
+ data-bottom-sheet={true}
1040
296
  onClick={[Function]}
1041
297
  onPointerDown={[Function]}
1042
298
  style={
1043
299
  Object {
1044
- "backgroundColor": "rgba(0, 0, 0, 0)",
1045
- "overflow": "hidden",
300
+ "zIndex": 10,
1046
301
  }
1047
302
  }
1048
303
  >
1049
304
  <div
1050
- className="c1"
1051
- onBlur={[Function]}
305
+ className="charcoal-modal-dialog"
306
+ data-bottom-sheet={true}
307
+ data-size="M"
1052
308
  onKeyDown={[Function]}
1053
309
  role="dialog"
1054
- size="M"
1055
- style={
1056
- Object {
1057
- "transform": " translateY(100%)",
1058
- }
1059
- }
310
+ style={Object {}}
1060
311
  tabIndex={-1}
1061
312
  >
1062
313
  <div
1063
- className="c2"
314
+ className="charcoal-modal-header-root"
315
+ data-bottom-sheet={true}
1064
316
  >
1065
- <h3
1066
- className="c3 c4"
317
+ <div
318
+ className="charcoal-modal-header-title"
1067
319
  >
1068
- Title
1069
- </h3>
320
+ react/Title
321
+ </div>
1070
322
  </div>
1071
323
  <div
1072
- className="c5"
324
+ className="charcoal-modal-body"
1073
325
  >
1074
326
  <div
1075
- className="c6"
327
+ style={
328
+ Object {
329
+ "display": "grid",
330
+ "gap": 24,
331
+ }
332
+ }
1076
333
  >
1077
334
  <div
1078
- className="c7 c8"
335
+ style={
336
+ Object {
337
+ "color": "var(--charcoal-text2)",
338
+ "fontSize": 14,
339
+ "lineHeight": "22px",
340
+ "padding": "0 16px",
341
+ }
342
+ }
1079
343
  >
1080
344
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
1081
345
  </div>
1082
346
  </div>
1083
347
  <div
1084
- className="c9"
348
+ className="charcoal-modal-buttons"
1085
349
  >
350
+ <label
351
+ className="charcoal-checkbox__label"
352
+ htmlFor="test-id"
353
+ >
354
+ <input
355
+ checked={true}
356
+ className="charcoal-checkbox-input"
357
+ id="test-id"
358
+ onChange={[Function]}
359
+ type="checkbox"
360
+ />
361
+ <div
362
+ className="charcoal-checkbox__label_div"
363
+ >
364
+ test checkbox
365
+ </div>
366
+ </label>
1086
367
  <button
1087
368
  className="charcoal-button"
1088
369
  data-full-width={true}
@@ -1091,11 +372,23 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1091
372
  >
1092
373
  削除する
1093
374
  </button>
375
+ <button
376
+ className="charcoal-button"
377
+ data-full-width={true}
378
+ onClick={[Function]}
379
+ >
380
+ キャンセル
381
+ </button>
1094
382
  </div>
1095
383
  </div>
1096
384
  <button
1097
- className="c10 c11 c12"
385
+ aria-label="Close"
386
+ className="charcoal-icon-button charcoal-modal-close-button"
387
+ data-active={false}
388
+ data-size="S"
389
+ data-variant="Default"
1098
390
  onClick={[Function]}
391
+ type="button"
1099
392
  >
1100
393
  <pixiv-icon
1101
394
  name="24/Close"
@@ -1107,516 +400,7 @@ exports[`Storybook Tests Modal BottomSheet 1`] = `
1107
400
  </div>
1108
401
  `;
1109
402
 
1110
- exports[`Storybook Tests Modal Default 1`] = `
1111
- .c23 {
1112
- cursor: pointer;
1113
- -webkit-appearance: none;
1114
- -moz-appearance: none;
1115
- appearance: none;
1116
- background: transparent;
1117
- padding: 0;
1118
- border-style: none;
1119
- outline: none;
1120
- color: inherit;
1121
- text-rendering: inherit;
1122
- -webkit-letter-spacing: inherit;
1123
- -moz-letter-spacing: inherit;
1124
- -ms-letter-spacing: inherit;
1125
- letter-spacing: inherit;
1126
- word-spacing: inherit;
1127
- -webkit-text-decoration: none;
1128
- text-decoration: none;
1129
- font: inherit;
1130
- margin: 0;
1131
- overflow: visible;
1132
- text-transform: none;
1133
- }
1134
-
1135
- .c23:disabled,
1136
- .c23[aria-disabled]:not([aria-disabled=false]) {
1137
- cursor: default;
1138
- }
1139
-
1140
- .c23:focus {
1141
- outline: none;
1142
- }
1143
-
1144
- .c23::-moz-focus-inner {
1145
- border-style: none;
1146
- padding: 0;
1147
- }
1148
-
1149
- .c12 {
1150
- font-size: 14px;
1151
- line-height: 22px;
1152
- font-weight: bold;
1153
- display: flow-root;
1154
- color: var(--charcoal-text1);
1155
- }
1156
-
1157
- .c12::before {
1158
- display: block;
1159
- width: 0;
1160
- height: 0;
1161
- content: '';
1162
- margin-top: -4px;
1163
- }
1164
-
1165
- .c12::after {
1166
- display: block;
1167
- width: 0;
1168
- height: 0;
1169
- content: '';
1170
- margin-bottom: -4px;
1171
- }
1172
-
1173
- .c14 {
1174
- font-size: 14px;
1175
- line-height: 22px;
1176
- display: flow-root;
1177
- color: var(--charcoal-text3);
1178
- -webkit-transition: 0.2s color,0.2s box-shadow;
1179
- transition: 0.2s color,0.2s box-shadow;
1180
- }
1181
-
1182
- .c14::before {
1183
- display: block;
1184
- width: 0;
1185
- height: 0;
1186
- content: '';
1187
- margin-top: -4px;
1188
- }
1189
-
1190
- .c14::after {
1191
- display: block;
1192
- width: 0;
1193
- height: 0;
1194
- content: '';
1195
- margin-bottom: -4px;
1196
- }
1197
-
1198
- .c14:not(:disabled):not([aria-disabled]):hover,
1199
- .c14[aria-disabled='false']:hover {
1200
- color: var(--charcoal-text3-hover);
1201
- }
1202
-
1203
- .c14:not(:disabled):not([aria-disabled]):active,
1204
- .c14[aria-disabled='false']:active {
1205
- color: var(--charcoal-text3-press);
1206
- }
1207
-
1208
- .c14:not(:disabled):not([aria-disabled]):active,
1209
- .c14[aria-disabled='false']:active,
1210
- .c14:not(:disabled):not([aria-disabled]):focus,
1211
- .c14[aria-disabled='false']:focus,
1212
- .c14:not(:disabled):not([aria-disabled]):focus-visible,
1213
- .c14[aria-disabled='false']:focus-visible {
1214
- outline: none;
1215
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1216
- }
1217
-
1218
- .c10 {
1219
- display: -webkit-inline-box;
1220
- display: -webkit-inline-flex;
1221
- display: -ms-inline-flexbox;
1222
- display: inline-flex;
1223
- -webkit-align-items: center;
1224
- -webkit-box-align: center;
1225
- -ms-flex-align: center;
1226
- align-items: center;
1227
- }
1228
-
1229
- .c10 > .c13 {
1230
- margin-left: auto;
1231
- }
1232
-
1233
- .c17 {
1234
- display: inline-block;
1235
- width: 100%;
1236
- }
1237
-
1238
- .c17:disabled,
1239
- .c17[aria-disabled]:not([aria-disabled=false]) {
1240
- cursor: default;
1241
- opacity: 0.32;
1242
- }
1243
-
1244
- .c18 {
1245
- width: 100%;
1246
- margin-bottom: 8px;
1247
- }
1248
-
1249
- .c19 {
1250
- display: -webkit-box;
1251
- display: -webkit-flex;
1252
- display: -ms-flexbox;
1253
- display: flex;
1254
- -webkit-box-pack: justify;
1255
- -webkit-justify-content: space-between;
1256
- -ms-flex-pack: justify;
1257
- justify-content: space-between;
1258
- -webkit-align-items: center;
1259
- -webkit-box-align: center;
1260
- -ms-flex-align: center;
1261
- align-items: center;
1262
- height: 40px;
1263
- width: 100%;
1264
- box-sizing: border-box;
1265
- border: none;
1266
- cursor: pointer;
1267
- gap: 4px;
1268
- padding-right: 8px;
1269
- padding-left: 8px;
1270
- background-color: var(--charcoal-surface3);
1271
- border-radius: 4px;
1272
- -webkit-transition: 0.2s box-shadow,0.2s background-color;
1273
- transition: 0.2s box-shadow,0.2s background-color;
1274
- }
1275
-
1276
- .c19:disabled,
1277
- .c19[aria-disabled]:not([aria-disabled=false]) {
1278
- cursor: default;
1279
- }
1280
-
1281
- .c19:not(:disabled):not([aria-disabled]):focus,
1282
- .c19[aria-disabled='false']:focus {
1283
- outline: none;
1284
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1285
- }
1286
-
1287
- .c19:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1288
- .c19[aria-disabled='false']:focus:not(:focus-visible) {
1289
- box-shadow: none;
1290
- }
1291
-
1292
- .c19:not(:disabled):not([aria-disabled]):focus-visible,
1293
- .c19[aria-disabled='false']:focus-visible {
1294
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1295
- }
1296
-
1297
- .c19:not(:disabled):not([aria-disabled]):hover,
1298
- .c19[aria-disabled='false']:hover {
1299
- background-color: var(--charcoal-surface3-hover);
1300
- }
1301
-
1302
- .c19:not(:disabled):not([aria-disabled]):active,
1303
- .c19[aria-disabled='false']:active {
1304
- background-color: var(--charcoal-surface3-press);
1305
- }
1306
-
1307
- .c20 {
1308
- text-align: left;
1309
- font-size: 14px;
1310
- line-height: 22px;
1311
- display: flow-root;
1312
- color: var(--charcoal-text2);
1313
- overflow: hidden;
1314
- text-overflow: ellipsis;
1315
- white-space: nowrap;
1316
- }
1317
-
1318
- .c21 {
1319
- color: var(--charcoal-text2);
1320
- }
1321
-
1322
- .c24 {
1323
- -webkit-user-select: none;
1324
- -moz-user-select: none;
1325
- -ms-user-select: none;
1326
- user-select: none;
1327
- width: 32px;
1328
- height: 32px;
1329
- display: -webkit-box;
1330
- display: -webkit-flex;
1331
- display: -ms-flexbox;
1332
- display: flex;
1333
- -webkit-align-items: center;
1334
- -webkit-box-align: center;
1335
- -ms-flex-align: center;
1336
- align-items: center;
1337
- -webkit-box-pack: center;
1338
- -webkit-justify-content: center;
1339
- -ms-flex-pack: center;
1340
- justify-content: center;
1341
- color: var(--charcoal-text3);
1342
- background-color: var(--charcoal-transparent);
1343
- border-radius: 999999px;
1344
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1345
- transition: 0.2s background-color,0.2s box-shadow;
1346
- }
1347
-
1348
- .c24:not(:disabled):not([aria-disabled]):hover,
1349
- .c24[aria-disabled='false']:hover {
1350
- color: var(--charcoal-text3-hover);
1351
- background-color: var(--charcoal-transparent-hover);
1352
- }
1353
-
1354
- .c24:not(:disabled):not([aria-disabled]):active,
1355
- .c24[aria-disabled='false']:active {
1356
- color: var(--charcoal-text3-press);
1357
- background-color: var(--charcoal-transparent-press);
1358
- }
1359
-
1360
- .c24:not(:disabled):not([aria-disabled]):focus,
1361
- .c24[aria-disabled='false']:focus {
1362
- outline: none;
1363
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1364
- }
1365
-
1366
- .c24:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
1367
- .c24[aria-disabled='false']:focus:not(:focus-visible) {
1368
- box-shadow: none;
1369
- }
1370
-
1371
- .c24:not(:disabled):not([aria-disabled]):focus-visible,
1372
- .c24[aria-disabled='false']:focus-visible {
1373
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1374
- }
1375
-
1376
- .c24:disabled,
1377
- .c24[aria-disabled]:not([aria-disabled='false']) {
1378
- opacity: 0.32;
1379
- }
1380
-
1381
- .c1 {
1382
- margin: auto;
1383
- position: relative;
1384
- height: -webkit-fit-content;
1385
- height: -moz-fit-content;
1386
- height: fit-content;
1387
- width: 440px;
1388
- background-color: var(--charcoal-surface1);
1389
- border-radius: 24px;
1390
- }
1391
-
1392
- .c1:focus {
1393
- outline: none;
1394
- }
1395
-
1396
- .c0 {
1397
- z-index: 10;
1398
- overflow: auto;
1399
- display: -webkit-box;
1400
- display: -webkit-flex;
1401
- display: -ms-flexbox;
1402
- display: flex;
1403
- position: fixed;
1404
- top: 0;
1405
- left: 0;
1406
- width: -webkit-fill-available;
1407
- width: -moz-available;
1408
- height: 100%;
1409
- -webkit-box-pack: center;
1410
- -webkit-justify-content: center;
1411
- -ms-flex-pack: center;
1412
- justify-content: center;
1413
- padding: 40px 0;
1414
- box-sizing: border-box;
1415
- background-color: var(--charcoal-surface4);
1416
- }
1417
-
1418
- .c25 {
1419
- position: absolute;
1420
- top: 8px;
1421
- right: 8px;
1422
- color: var(--charcoal-text3);
1423
- -webkit-transition: 0.2s color;
1424
- transition: 0.2s color;
1425
- }
1426
-
1427
- .c25:not(:disabled):not([aria-disabled]):hover,
1428
- .c25[aria-disabled='false']:hover {
1429
- color: var(--charcoal-text3-hover);
1430
- }
1431
-
1432
- .c25:not(:disabled):not([aria-disabled]):active,
1433
- .c25[aria-disabled='false']:active {
1434
- color: var(--charcoal-text3-press);
1435
- }
1436
-
1437
- .c3 {
1438
- margin: 0;
1439
- font-weight: inherit;
1440
- font-size: inherit;
1441
- }
1442
-
1443
- .c2 {
1444
- height: 64px;
1445
- display: grid;
1446
- -webkit-align-content: center;
1447
- -ms-flex-line-pack: center;
1448
- align-content: center;
1449
- -webkit-box-pack: center;
1450
- -webkit-justify-content: center;
1451
- -ms-flex-pack: center;
1452
- justify-content: center;
1453
- }
1454
-
1455
- .c4 {
1456
- color: var(--charcoal-text1);
1457
- font-size: 16px;
1458
- line-height: 24px;
1459
- font-weight: bold;
1460
- display: flow-root;
1461
- }
1462
-
1463
- .c4::before {
1464
- display: block;
1465
- width: 0;
1466
- height: 0;
1467
- content: '';
1468
- margin-top: -4px;
1469
- }
1470
-
1471
- .c4::after {
1472
- display: block;
1473
- width: 0;
1474
- height: 0;
1475
- content: '';
1476
- margin-bottom: -4px;
1477
- }
1478
-
1479
- .c7 {
1480
- padding-left: 16px;
1481
- padding-right: 16px;
1482
- }
1483
-
1484
- .c5 {
1485
- padding-bottom: 40px;
1486
- }
1487
-
1488
- .c22 {
1489
- display: grid;
1490
- grid-auto-flow: row;
1491
- grid-row-gap: 8px;
1492
- padding-top: 16px;
1493
- padding-left: 16px;
1494
- padding-right: 16px;
1495
- }
1496
-
1497
- .c9 {
1498
- display: -webkit-box;
1499
- display: -webkit-flex;
1500
- display: -ms-flexbox;
1501
- display: flex;
1502
- -webkit-flex-direction: column;
1503
- -ms-flex-direction: column;
1504
- flex-direction: column;
1505
- }
1506
-
1507
- .c11 {
1508
- margin-bottom: 8px;
1509
- }
1510
-
1511
- .c15 {
1512
- display: grid;
1513
- grid-template-columns: 1fr;
1514
- height: 40px;
1515
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
1516
- transition: 0.2s background-color,0.2s box-shadow;
1517
- color: var(--charcoal-text2);
1518
- background-color: var(--charcoal-surface3);
1519
- border-radius: 4px;
1520
- gap: 4px;
1521
- padding: 0 8px;
1522
- line-height: 22px;
1523
- font-size: 14px;
1524
- }
1525
-
1526
- .c15:not(:disabled):not([aria-disabled]):hover,
1527
- .c15 [aria-disabled='false']:hover {
1528
- background-color: var(--charcoal-surface3-hover);
1529
- }
1530
-
1531
- .c15:focus-within {
1532
- outline: none;
1533
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1534
- }
1535
-
1536
- .c16 {
1537
- border: none;
1538
- box-sizing: border-box;
1539
- outline: none;
1540
- font-family: inherit;
1541
- -webkit-transform-origin: top left;
1542
- -ms-transform-origin: top left;
1543
- transform-origin: top left;
1544
- -webkit-transform: scale(0.875);
1545
- -ms-transform: scale(0.875);
1546
- transform: scale(0.875);
1547
- width: calc(100% / 0.875);
1548
- height: calc(100% / 0.875);
1549
- font-size: calc(14px / 0.875);
1550
- line-height: calc(22px / 0.875);
1551
- padding-left: 0;
1552
- padding-right: 0;
1553
- border-radius: calc(4px / 0.875);
1554
- -webkit-appearance: none;
1555
- -moz-appearance: none;
1556
- appearance: none;
1557
- background: transparent;
1558
- color: var(--charcoal-text2);
1559
- }
1560
-
1561
- .c16::-webkit-input-placeholder {
1562
- color: var(--charcoal-text3);
1563
- }
1564
-
1565
- .c16::-moz-placeholder {
1566
- color: var(--charcoal-text3);
1567
- }
1568
-
1569
- .c16:-ms-input-placeholder {
1570
- color: var(--charcoal-text3);
1571
- }
1572
-
1573
- .c16::placeholder {
1574
- color: var(--charcoal-text3);
1575
- }
1576
-
1577
- .c6 {
1578
- display: grid;
1579
- gap: 24px;
1580
- }
1581
-
1582
- .c8 {
1583
- color: var(--charcoal-text2);
1584
- font-size: 14px;
1585
- line-height: 22px;
1586
- display: flow-root;
1587
- }
1588
-
1589
- .c8::before {
1590
- display: block;
1591
- width: 0;
1592
- height: 0;
1593
- content: '';
1594
- margin-top: -4px;
1595
- }
1596
-
1597
- .c8::after {
1598
- display: block;
1599
- width: 0;
1600
- height: 0;
1601
- content: '';
1602
- margin-bottom: -4px;
1603
- }
1604
-
1605
- @media (max-width:743px) {
1606
- .c1 {
1607
- max-width: 440px;
1608
- width: calc(100% - 48px);
1609
- }
1610
- }
1611
-
1612
- @media (max-width:743px) {
1613
-
1614
- }
1615
-
1616
- @media (max-width:743px) {
1617
-
1618
- }
1619
-
403
+ exports[`Storybook Tests > react/Modal > Default 1`] = `
1620
404
  <div
1621
405
  data-dark={false}
1622
406
  >
@@ -1631,137 +415,156 @@ exports[`Storybook Tests Modal Default 1`] = `
1631
415
  Open Modal
1632
416
  </button>
1633
417
  <div
1634
- className="c0"
418
+ className="charcoal-modal-background"
419
+ data-bottom-sheet={false}
1635
420
  onClick={[Function]}
1636
421
  onPointerDown={[Function]}
1637
- style={Object {}}
422
+ style={
423
+ Object {
424
+ "zIndex": 10,
425
+ }
426
+ }
1638
427
  >
1639
428
  <div
1640
- className="c1"
1641
- onBlur={[Function]}
429
+ className="charcoal-modal-dialog"
430
+ data-bottom-sheet={false}
431
+ data-size="M"
1642
432
  onKeyDown={[Function]}
1643
433
  role="dialog"
1644
- size="M"
1645
434
  style={Object {}}
1646
435
  tabIndex={-1}
1647
436
  >
1648
437
  <div
1649
- className="c2"
438
+ className="charcoal-modal-header-root"
439
+ data-bottom-sheet={false}
1650
440
  >
1651
- <h3
1652
- className="c3 c4"
441
+ <div
442
+ className="charcoal-modal-header-title"
1653
443
  >
1654
- Title
1655
- </h3>
444
+ react/Title
445
+ </div>
1656
446
  </div>
1657
447
  <div
1658
- className="c5"
448
+ className="charcoal-modal-body"
1659
449
  >
1660
450
  <div
1661
- className="c6"
451
+ style={
452
+ Object {
453
+ "display": "grid",
454
+ "gap": 24,
455
+ }
456
+ }
1662
457
  >
1663
458
  <div
1664
- className="c7 c8"
459
+ style={
460
+ Object {
461
+ "color": "var(--charcoal-text2)",
462
+ "fontSize": 14,
463
+ "lineHeight": "22px",
464
+ "padding": "0 16px",
465
+ }
466
+ }
1665
467
  >
1666
468
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
1667
469
  </div>
1668
470
  <div
1669
- className="c7"
471
+ className="charcoal-modal-align"
1670
472
  >
1671
473
  <div
1672
- className="c9"
474
+ aria-disabled={false}
475
+ className="charcoal-text-field-root"
1673
476
  >
1674
477
  <div
1675
- className="c10 c11"
478
+ className="charcoal-field-label-root"
1676
479
  >
1677
480
  <label
1678
- className="c12"
481
+ className="charcoal-field-label"
1679
482
  htmlFor="test-id"
1680
483
  id="test-id"
1681
484
  >
1682
485
  Name
1683
486
  </label>
1684
487
  <div
1685
- className="c13 c14"
488
+ className="charcoal-field-label-sub-label"
1686
489
  >
1687
490
  <span />
1688
491
  </div>
1689
492
  </div>
1690
493
  <div
1691
- className="c15"
494
+ className="charcoal-text-field-container"
495
+ data-invalid={false}
1692
496
  >
1693
497
  <input
1694
498
  aria-labelledby="test-id"
1695
- className="c16"
499
+ className="charcoal-text-field-input"
500
+ data-invalid={false}
1696
501
  disabled={false}
1697
502
  id="test-id"
1698
503
  onChange={[Function]}
1699
504
  placeholder="Nagisa"
1700
- readOnly={false}
1701
- required={false}
1702
505
  type="text"
1703
- value=""
1704
506
  />
1705
507
  </div>
1706
508
  </div>
1707
509
  </div>
1708
510
  <div
1709
- className="c7"
511
+ className="charcoal-modal-align"
1710
512
  >
1711
513
  <div
1712
- className="c9"
514
+ aria-disabled={false}
515
+ className="charcoal-text-field-root"
1713
516
  >
1714
517
  <div
1715
- className="c10 c11"
518
+ className="charcoal-field-label-root"
1716
519
  >
1717
520
  <label
1718
- className="c12"
521
+ className="charcoal-field-label"
1719
522
  htmlFor="test-id"
1720
523
  id="test-id"
1721
524
  >
1722
525
  Country
1723
526
  </label>
1724
527
  <div
1725
- className="c13 c14"
528
+ className="charcoal-field-label-sub-label"
1726
529
  >
1727
530
  <span />
1728
531
  </div>
1729
532
  </div>
1730
533
  <div
1731
- className="c15"
534
+ className="charcoal-text-field-container"
535
+ data-invalid={false}
1732
536
  >
1733
537
  <input
1734
538
  aria-labelledby="test-id"
1735
539
  autoFocus={true}
1736
- className="c16"
540
+ className="charcoal-text-field-input"
541
+ data-invalid={false}
1737
542
  disabled={false}
1738
543
  id="test-id"
1739
544
  onChange={[Function]}
1740
545
  placeholder="Tokyo"
1741
- readOnly={false}
1742
- required={false}
1743
546
  type="text"
1744
- value=""
1745
547
  />
1746
548
  </div>
1747
549
  </div>
1748
550
  </div>
1749
551
  <div
1750
- className="c7"
552
+ className="charcoal-modal-align"
1751
553
  >
1752
554
  <div
1753
- className="c17"
555
+ className="charcoal-dropdown-selector-root"
1754
556
  >
1755
557
  <div
1756
- className="c10 c18"
558
+ className="charcoal-field-label-root"
1757
559
  >
1758
560
  <label
1759
- className="c12"
561
+ className="charcoal-field-label"
562
+ id="test-id"
1760
563
  >
1761
564
  Fruits
1762
565
  </label>
1763
566
  <div
1764
- className="c13 c14"
567
+ className="charcoal-field-label-sub-label"
1765
568
  >
1766
569
  <span />
1767
570
  </div>
@@ -1784,6 +587,7 @@ exports[`Storybook Tests Modal Default 1`] = `
1784
587
  }
1785
588
  >
1786
589
  <select
590
+ onChange={[Function]}
1787
591
  tabIndex={-1}
1788
592
  value="10"
1789
593
  >
@@ -1805,17 +609,20 @@ exports[`Storybook Tests Modal Default 1`] = `
1805
609
  </select>
1806
610
  </div>
1807
611
  <button
1808
- className="c19"
612
+ aria-labelledby="test-id"
613
+ className="charcoal-dropdown-selector-button"
614
+ data-active={false}
1809
615
  onClick={[Function]}
1810
616
  type="button"
1811
617
  >
1812
618
  <span
1813
- className="c20"
619
+ className="charcoal-ui-dropdown-selector-text"
620
+ data-placeholder={false}
1814
621
  >
1815
622
  Apple
1816
623
  </span>
1817
624
  <pixiv-icon
1818
- class="c21"
625
+ class="charcoal-ui-dropdown-selector-icon"
1819
626
  name="16/Menu"
1820
627
  />
1821
628
  </button>
@@ -1823,7 +630,7 @@ exports[`Storybook Tests Modal Default 1`] = `
1823
630
  </div>
1824
631
  </div>
1825
632
  <div
1826
- className="c22"
633
+ className="charcoal-modal-buttons"
1827
634
  >
1828
635
  <button
1829
636
  className="charcoal-button"
@@ -1843,8 +650,13 @@ exports[`Storybook Tests Modal Default 1`] = `
1843
650
  </div>
1844
651
  </div>
1845
652
  <button
1846
- className="c23 c24 c25"
653
+ aria-label="Close"
654
+ className="charcoal-icon-button charcoal-modal-close-button"
655
+ data-active={false}
656
+ data-size="S"
657
+ data-variant="Default"
1847
658
  onClick={[Function]}
659
+ type="button"
1848
660
  >
1849
661
  <pixiv-icon
1850
662
  name="24/Close"
@@ -1856,436 +668,7 @@ exports[`Storybook Tests Modal Default 1`] = `
1856
668
  </div>
1857
669
  `;
1858
670
 
1859
- exports[`Storybook Tests Modal FullBottomSheet 1`] = `
1860
- .c18 {
1861
- cursor: pointer;
1862
- -webkit-appearance: none;
1863
- -moz-appearance: none;
1864
- appearance: none;
1865
- background: transparent;
1866
- padding: 0;
1867
- border-style: none;
1868
- outline: none;
1869
- color: inherit;
1870
- text-rendering: inherit;
1871
- -webkit-letter-spacing: inherit;
1872
- -moz-letter-spacing: inherit;
1873
- -ms-letter-spacing: inherit;
1874
- letter-spacing: inherit;
1875
- word-spacing: inherit;
1876
- -webkit-text-decoration: none;
1877
- text-decoration: none;
1878
- font: inherit;
1879
- margin: 0;
1880
- overflow: visible;
1881
- text-transform: none;
1882
- }
1883
-
1884
- .c18:disabled,
1885
- .c18[aria-disabled]:not([aria-disabled=false]) {
1886
- cursor: default;
1887
- }
1888
-
1889
- .c18:focus {
1890
- outline: none;
1891
- }
1892
-
1893
- .c18::-moz-focus-inner {
1894
- border-style: none;
1895
- padding: 0;
1896
- }
1897
-
1898
- .c12 {
1899
- font-size: 14px;
1900
- line-height: 22px;
1901
- font-weight: bold;
1902
- display: flow-root;
1903
- color: var(--charcoal-text1);
1904
- }
1905
-
1906
- .c12::before {
1907
- display: block;
1908
- width: 0;
1909
- height: 0;
1910
- content: '';
1911
- margin-top: -4px;
1912
- }
1913
-
1914
- .c12::after {
1915
- display: block;
1916
- width: 0;
1917
- height: 0;
1918
- content: '';
1919
- margin-bottom: -4px;
1920
- }
1921
-
1922
- .c14 {
1923
- font-size: 14px;
1924
- line-height: 22px;
1925
- display: flow-root;
1926
- color: var(--charcoal-text3);
1927
- -webkit-transition: 0.2s color,0.2s box-shadow;
1928
- transition: 0.2s color,0.2s box-shadow;
1929
- }
1930
-
1931
- .c14::before {
1932
- display: block;
1933
- width: 0;
1934
- height: 0;
1935
- content: '';
1936
- margin-top: -4px;
1937
- }
1938
-
1939
- .c14::after {
1940
- display: block;
1941
- width: 0;
1942
- height: 0;
1943
- content: '';
1944
- margin-bottom: -4px;
1945
- }
1946
-
1947
- .c14:not(:disabled):not([aria-disabled]):hover,
1948
- .c14[aria-disabled='false']:hover {
1949
- color: var(--charcoal-text3-hover);
1950
- }
1951
-
1952
- .c14:not(:disabled):not([aria-disabled]):active,
1953
- .c14[aria-disabled='false']:active {
1954
- color: var(--charcoal-text3-press);
1955
- }
1956
-
1957
- .c14:not(:disabled):not([aria-disabled]):active,
1958
- .c14[aria-disabled='false']:active,
1959
- .c14:not(:disabled):not([aria-disabled]):focus,
1960
- .c14[aria-disabled='false']:focus,
1961
- .c14:not(:disabled):not([aria-disabled]):focus-visible,
1962
- .c14[aria-disabled='false']:focus-visible {
1963
- outline: none;
1964
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
1965
- }
1966
-
1967
- .c10 {
1968
- display: -webkit-inline-box;
1969
- display: -webkit-inline-flex;
1970
- display: -ms-inline-flexbox;
1971
- display: inline-flex;
1972
- -webkit-align-items: center;
1973
- -webkit-box-align: center;
1974
- -ms-flex-align: center;
1975
- align-items: center;
1976
- }
1977
-
1978
- .c10 > .c13 {
1979
- margin-left: auto;
1980
- }
1981
-
1982
- .c19 {
1983
- -webkit-user-select: none;
1984
- -moz-user-select: none;
1985
- -ms-user-select: none;
1986
- user-select: none;
1987
- width: 32px;
1988
- height: 32px;
1989
- display: -webkit-box;
1990
- display: -webkit-flex;
1991
- display: -ms-flexbox;
1992
- display: flex;
1993
- -webkit-align-items: center;
1994
- -webkit-box-align: center;
1995
- -ms-flex-align: center;
1996
- align-items: center;
1997
- -webkit-box-pack: center;
1998
- -webkit-justify-content: center;
1999
- -ms-flex-pack: center;
2000
- justify-content: center;
2001
- color: var(--charcoal-text3);
2002
- background-color: var(--charcoal-transparent);
2003
- border-radius: 999999px;
2004
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
2005
- transition: 0.2s background-color,0.2s box-shadow;
2006
- }
2007
-
2008
- .c19:not(:disabled):not([aria-disabled]):hover,
2009
- .c19[aria-disabled='false']:hover {
2010
- color: var(--charcoal-text3-hover);
2011
- background-color: var(--charcoal-transparent-hover);
2012
- }
2013
-
2014
- .c19:not(:disabled):not([aria-disabled]):active,
2015
- .c19[aria-disabled='false']:active {
2016
- color: var(--charcoal-text3-press);
2017
- background-color: var(--charcoal-transparent-press);
2018
- }
2019
-
2020
- .c19:not(:disabled):not([aria-disabled]):focus,
2021
- .c19[aria-disabled='false']:focus {
2022
- outline: none;
2023
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2024
- }
2025
-
2026
- .c19:not(:disabled):not([aria-disabled]):focus:not(:focus-visible),
2027
- .c19[aria-disabled='false']:focus:not(:focus-visible) {
2028
- box-shadow: none;
2029
- }
2030
-
2031
- .c19:not(:disabled):not([aria-disabled]):focus-visible,
2032
- .c19[aria-disabled='false']:focus-visible {
2033
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2034
- }
2035
-
2036
- .c19:disabled,
2037
- .c19[aria-disabled]:not([aria-disabled='false']) {
2038
- opacity: 0.32;
2039
- }
2040
-
2041
- .c1 {
2042
- margin: auto;
2043
- position: relative;
2044
- height: -webkit-fit-content;
2045
- height: -moz-fit-content;
2046
- height: fit-content;
2047
- width: 440px;
2048
- background-color: var(--charcoal-surface1);
2049
- border-radius: 24px;
2050
- }
2051
-
2052
- .c1:focus {
2053
- outline: none;
2054
- }
2055
-
2056
- .c0 {
2057
- z-index: 10;
2058
- overflow: auto;
2059
- display: -webkit-box;
2060
- display: -webkit-flex;
2061
- display: -ms-flexbox;
2062
- display: flex;
2063
- position: fixed;
2064
- top: 0;
2065
- left: 0;
2066
- width: -webkit-fill-available;
2067
- width: -moz-available;
2068
- height: 100%;
2069
- -webkit-box-pack: center;
2070
- -webkit-justify-content: center;
2071
- -ms-flex-pack: center;
2072
- justify-content: center;
2073
- padding: 40px 0;
2074
- box-sizing: border-box;
2075
- background-color: var(--charcoal-surface4);
2076
- }
2077
-
2078
- .c20 {
2079
- position: absolute;
2080
- top: 8px;
2081
- right: 8px;
2082
- color: var(--charcoal-text3);
2083
- -webkit-transition: 0.2s color;
2084
- transition: 0.2s color;
2085
- }
2086
-
2087
- .c20:not(:disabled):not([aria-disabled]):hover,
2088
- .c20[aria-disabled='false']:hover {
2089
- color: var(--charcoal-text3-hover);
2090
- }
2091
-
2092
- .c20:not(:disabled):not([aria-disabled]):active,
2093
- .c20[aria-disabled='false']:active {
2094
- color: var(--charcoal-text3-press);
2095
- }
2096
-
2097
- .c3 {
2098
- margin: 0;
2099
- font-weight: inherit;
2100
- font-size: inherit;
2101
- }
2102
-
2103
- .c2 {
2104
- height: 64px;
2105
- display: grid;
2106
- -webkit-align-content: center;
2107
- -ms-flex-line-pack: center;
2108
- align-content: center;
2109
- -webkit-box-pack: center;
2110
- -webkit-justify-content: center;
2111
- -ms-flex-pack: center;
2112
- justify-content: center;
2113
- }
2114
-
2115
- .c4 {
2116
- color: var(--charcoal-text1);
2117
- font-size: 16px;
2118
- line-height: 24px;
2119
- font-weight: bold;
2120
- display: flow-root;
2121
- }
2122
-
2123
- .c4::before {
2124
- display: block;
2125
- width: 0;
2126
- height: 0;
2127
- content: '';
2128
- margin-top: -4px;
2129
- }
2130
-
2131
- .c4::after {
2132
- display: block;
2133
- width: 0;
2134
- height: 0;
2135
- content: '';
2136
- margin-bottom: -4px;
2137
- }
2138
-
2139
- .c7 {
2140
- padding-left: 16px;
2141
- padding-right: 16px;
2142
- }
2143
-
2144
- .c5 {
2145
- padding-bottom: 40px;
2146
- }
2147
-
2148
- .c17 {
2149
- display: grid;
2150
- grid-auto-flow: row;
2151
- grid-row-gap: 8px;
2152
- padding-top: 16px;
2153
- padding-left: 16px;
2154
- padding-right: 16px;
2155
- }
2156
-
2157
- .c9 {
2158
- display: -webkit-box;
2159
- display: -webkit-flex;
2160
- display: -ms-flexbox;
2161
- display: flex;
2162
- -webkit-flex-direction: column;
2163
- -ms-flex-direction: column;
2164
- flex-direction: column;
2165
- }
2166
-
2167
- .c11 {
2168
- margin-bottom: 8px;
2169
- }
2170
-
2171
- .c15 {
2172
- display: grid;
2173
- grid-template-columns: 1fr;
2174
- height: 40px;
2175
- -webkit-transition: 0.2s background-color,0.2s box-shadow;
2176
- transition: 0.2s background-color,0.2s box-shadow;
2177
- color: var(--charcoal-text2);
2178
- background-color: var(--charcoal-surface3);
2179
- border-radius: 4px;
2180
- gap: 4px;
2181
- padding: 0 8px;
2182
- line-height: 22px;
2183
- font-size: 14px;
2184
- }
2185
-
2186
- .c15:not(:disabled):not([aria-disabled]):hover,
2187
- .c15 [aria-disabled='false']:hover {
2188
- background-color: var(--charcoal-surface3-hover);
2189
- }
2190
-
2191
- .c15:focus-within {
2192
- outline: none;
2193
- box-shadow: 0 0 0 4px rgba(0,150,250,0.32);
2194
- }
2195
-
2196
- .c16 {
2197
- border: none;
2198
- box-sizing: border-box;
2199
- outline: none;
2200
- font-family: inherit;
2201
- -webkit-transform-origin: top left;
2202
- -ms-transform-origin: top left;
2203
- transform-origin: top left;
2204
- -webkit-transform: scale(0.875);
2205
- -ms-transform: scale(0.875);
2206
- transform: scale(0.875);
2207
- width: calc(100% / 0.875);
2208
- height: calc(100% / 0.875);
2209
- font-size: calc(14px / 0.875);
2210
- line-height: calc(22px / 0.875);
2211
- padding-left: 0;
2212
- padding-right: 0;
2213
- border-radius: calc(4px / 0.875);
2214
- -webkit-appearance: none;
2215
- -moz-appearance: none;
2216
- appearance: none;
2217
- background: transparent;
2218
- color: var(--charcoal-text2);
2219
- }
2220
-
2221
- .c16::-webkit-input-placeholder {
2222
- color: var(--charcoal-text3);
2223
- }
2224
-
2225
- .c16::-moz-placeholder {
2226
- color: var(--charcoal-text3);
2227
- }
2228
-
2229
- .c16:-ms-input-placeholder {
2230
- color: var(--charcoal-text3);
2231
- }
2232
-
2233
- .c16::placeholder {
2234
- color: var(--charcoal-text3);
2235
- }
2236
-
2237
- .c6 {
2238
- display: grid;
2239
- gap: 24px;
2240
- }
2241
-
2242
- .c8 {
2243
- color: var(--charcoal-text2);
2244
- font-size: 14px;
2245
- line-height: 22px;
2246
- display: flow-root;
2247
- }
2248
-
2249
- .c8::before {
2250
- display: block;
2251
- width: 0;
2252
- height: 0;
2253
- content: '';
2254
- margin-top: -4px;
2255
- }
2256
-
2257
- .c8::after {
2258
- display: block;
2259
- width: 0;
2260
- height: 0;
2261
- content: '';
2262
- margin-bottom: -4px;
2263
- }
2264
-
2265
- @media (max-width:743px) {
2266
- .c1 {
2267
- max-width: 440px;
2268
- width: calc(100% - 48px);
2269
- max-width: unset;
2270
- width: 100%;
2271
- border-radius: 0;
2272
- margin: auto 0 0 0;
2273
- min-height: 100%;
2274
- }
2275
- }
2276
-
2277
- @media (max-width:743px) {
2278
- .c0 {
2279
- padding: 0;
2280
- }
2281
- }
2282
-
2283
- @media (max-width:743px) {
2284
- .c2 {
2285
- height: 48px;
2286
- }
2287
- }
2288
-
671
+ exports[`Storybook Tests > react/Modal > FullBottomSheet 1`] = `
2289
672
  <div
2290
673
  data-dark={false}
2291
674
  >
@@ -2300,132 +683,141 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2300
683
  Open Modal
2301
684
  </button>
2302
685
  <div
2303
- className="c0"
686
+ className="charcoal-modal-background"
687
+ data-bottom-sheet="full"
2304
688
  onClick={[Function]}
2305
689
  onPointerDown={[Function]}
2306
690
  style={
2307
691
  Object {
2308
- "backgroundColor": "rgba(0, 0, 0, 0)",
2309
- "overflow": "hidden",
692
+ "zIndex": 10,
2310
693
  }
2311
694
  }
2312
695
  >
2313
696
  <div
2314
- className="c1"
2315
- onBlur={[Function]}
697
+ className="charcoal-modal-dialog"
698
+ data-bottom-sheet="full"
699
+ data-size="M"
2316
700
  onKeyDown={[Function]}
2317
701
  role="dialog"
2318
- size="M"
2319
- style={
2320
- Object {
2321
- "transform": " translateY(100%)",
2322
- }
2323
- }
702
+ style={Object {}}
2324
703
  tabIndex={-1}
2325
704
  >
2326
705
  <div
2327
- className="c2"
706
+ className="charcoal-modal-header-root"
707
+ data-bottom-sheet="full"
2328
708
  >
2329
- <h3
2330
- className="c3 c4"
709
+ <div
710
+ className="charcoal-modal-header-title"
2331
711
  >
2332
- Title
2333
- </h3>
712
+ react/Title
713
+ </div>
2334
714
  </div>
2335
715
  <div
2336
- className="c5"
716
+ className="charcoal-modal-body"
2337
717
  >
2338
718
  <div
2339
- className="c6"
719
+ style={
720
+ Object {
721
+ "display": "grid",
722
+ "gap": 24,
723
+ }
724
+ }
2340
725
  >
2341
726
  <div
2342
- className="c7 c8"
727
+ style={
728
+ Object {
729
+ "color": "var(--charcoal-text2)",
730
+ "fontSize": 14,
731
+ "lineHeight": "22px",
732
+ "padding": "0 16px",
733
+ }
734
+ }
2343
735
  >
2344
736
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
2345
737
  </div>
2346
738
  <div
2347
- className="c7"
739
+ className="charcoal-modal-align"
2348
740
  >
2349
741
  <div
2350
- className="c9"
742
+ aria-disabled={false}
743
+ className="charcoal-text-field-root"
2351
744
  >
2352
745
  <div
2353
- className="c10 c11"
746
+ className="charcoal-field-label-root"
2354
747
  >
2355
748
  <label
2356
- className="c12"
749
+ className="charcoal-field-label"
2357
750
  htmlFor="test-id"
2358
751
  id="test-id"
2359
752
  >
2360
753
  Name
2361
754
  </label>
2362
755
  <div
2363
- className="c13 c14"
756
+ className="charcoal-field-label-sub-label"
2364
757
  >
2365
758
  <span />
2366
759
  </div>
2367
760
  </div>
2368
761
  <div
2369
- className="c15"
762
+ className="charcoal-text-field-container"
763
+ data-invalid={false}
2370
764
  >
2371
765
  <input
2372
766
  aria-labelledby="test-id"
2373
- className="c16"
767
+ className="charcoal-text-field-input"
768
+ data-invalid={false}
2374
769
  disabled={false}
2375
770
  id="test-id"
2376
771
  onChange={[Function]}
2377
772
  placeholder="Nagisa"
2378
- readOnly={false}
2379
- required={false}
2380
773
  type="text"
2381
- value=""
2382
774
  />
2383
775
  </div>
2384
776
  </div>
2385
777
  </div>
2386
778
  <div
2387
- className="c7"
779
+ className="charcoal-modal-align"
2388
780
  >
2389
781
  <div
2390
- className="c9"
782
+ aria-disabled={false}
783
+ className="charcoal-text-field-root"
2391
784
  >
2392
785
  <div
2393
- className="c10 c11"
786
+ className="charcoal-field-label-root"
2394
787
  >
2395
788
  <label
2396
- className="c12"
789
+ className="charcoal-field-label"
2397
790
  htmlFor="test-id"
2398
791
  id="test-id"
2399
792
  >
2400
793
  Country
2401
794
  </label>
2402
795
  <div
2403
- className="c13 c14"
796
+ className="charcoal-field-label-sub-label"
2404
797
  >
2405
798
  <span />
2406
799
  </div>
2407
800
  </div>
2408
801
  <div
2409
- className="c15"
802
+ className="charcoal-text-field-container"
803
+ data-invalid={false}
2410
804
  >
2411
805
  <input
2412
806
  aria-labelledby="test-id"
2413
- className="c16"
807
+ className="charcoal-text-field-input"
808
+ data-invalid={false}
2414
809
  disabled={false}
2415
810
  id="test-id"
2416
811
  onChange={[Function]}
2417
812
  placeholder="Tokyo"
2418
- readOnly={false}
2419
- required={false}
2420
813
  type="text"
2421
- value=""
2422
814
  />
2423
815
  </div>
2424
816
  </div>
2425
817
  </div>
2426
818
  </div>
2427
819
  <div
2428
- className="c17"
820
+ className="charcoal-modal-buttons"
2429
821
  >
2430
822
  <button
2431
823
  className="charcoal-button"
@@ -2445,8 +837,13 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2445
837
  </div>
2446
838
  </div>
2447
839
  <button
2448
- className="c18 c19 c20"
840
+ aria-label="Close"
841
+ className="charcoal-icon-button charcoal-modal-close-button"
842
+ data-active={false}
843
+ data-size="S"
844
+ data-variant="Default"
2449
845
  onClick={[Function]}
846
+ type="button"
2450
847
  >
2451
848
  <pixiv-icon
2452
849
  name="24/Close"
@@ -2458,134 +855,7 @@ exports[`Storybook Tests Modal FullBottomSheet 1`] = `
2458
855
  </div>
2459
856
  `;
2460
857
 
2461
- exports[`Storybook Tests Modal InternalScroll 1`] = `
2462
- .c1 {
2463
- margin: auto;
2464
- position: relative;
2465
- height: -webkit-fit-content;
2466
- height: -moz-fit-content;
2467
- height: fit-content;
2468
- width: 440px;
2469
- background-color: var(--charcoal-surface1);
2470
- border-radius: 24px;
2471
- }
2472
-
2473
- .c1:focus {
2474
- outline: none;
2475
- }
2476
-
2477
- .c0 {
2478
- z-index: 10;
2479
- overflow: auto;
2480
- display: -webkit-box;
2481
- display: -webkit-flex;
2482
- display: -ms-flexbox;
2483
- display: flex;
2484
- position: fixed;
2485
- top: 0;
2486
- left: 0;
2487
- width: -webkit-fill-available;
2488
- width: -moz-available;
2489
- height: 100%;
2490
- -webkit-box-pack: center;
2491
- -webkit-justify-content: center;
2492
- -ms-flex-pack: center;
2493
- justify-content: center;
2494
- padding: 40px 0;
2495
- box-sizing: border-box;
2496
- background-color: var(--charcoal-surface4);
2497
- }
2498
-
2499
- .c3 {
2500
- margin: 0;
2501
- font-weight: inherit;
2502
- font-size: inherit;
2503
- }
2504
-
2505
- .c2 {
2506
- height: 64px;
2507
- display: grid;
2508
- -webkit-align-content: center;
2509
- -ms-flex-line-pack: center;
2510
- align-content: center;
2511
- -webkit-box-pack: center;
2512
- -webkit-justify-content: center;
2513
- -ms-flex-pack: center;
2514
- justify-content: center;
2515
- }
2516
-
2517
- .c4 {
2518
- color: var(--charcoal-text1);
2519
- font-size: 16px;
2520
- line-height: 24px;
2521
- font-weight: bold;
2522
- display: flow-root;
2523
- }
2524
-
2525
- .c4::before {
2526
- display: block;
2527
- width: 0;
2528
- height: 0;
2529
- content: '';
2530
- margin-top: -4px;
2531
- }
2532
-
2533
- .c4::after {
2534
- display: block;
2535
- width: 0;
2536
- height: 0;
2537
- content: '';
2538
- margin-bottom: -4px;
2539
- }
2540
-
2541
- .c5 {
2542
- padding-bottom: 40px;
2543
- }
2544
-
2545
- .c7 {
2546
- display: grid;
2547
- grid-auto-flow: row;
2548
- grid-row-gap: 8px;
2549
- padding-top: 16px;
2550
- padding-left: 16px;
2551
- padding-right: 16px;
2552
- }
2553
-
2554
- .c6 {
2555
- overflow: auto;
2556
- max-height: calc( 100vh - 184px - 56px );
2557
- }
2558
-
2559
- .c8 {
2560
- position: relative;
2561
- }
2562
-
2563
- .c8::before {
2564
- content: '';
2565
- pointer-events: none;
2566
- border-top: 1px solid rgba(0,0,0,0.08);
2567
- position: absolute;
2568
- left: 0;
2569
- top: 0;
2570
- width: 100%;
2571
- height: 100%;
2572
- }
2573
-
2574
- @media (max-width:743px) {
2575
- .c1 {
2576
- max-width: 440px;
2577
- width: calc(100% - 48px);
2578
- }
2579
- }
2580
-
2581
- @media (max-width:743px) {
2582
-
2583
- }
2584
-
2585
- @media (max-width:743px) {
2586
-
2587
- }
2588
-
858
+ exports[`Storybook Tests > react/Modal > NotDismmissableStory 1`] = `
2589
859
  <div
2590
860
  data-dark={false}
2591
861
  >
@@ -2600,254 +870,61 @@ exports[`Storybook Tests Modal InternalScroll 1`] = `
2600
870
  Open Modal
2601
871
  </button>
2602
872
  <div
2603
- className="c0"
873
+ className="charcoal-modal-background"
874
+ data-bottom-sheet={false}
2604
875
  onClick={[Function]}
2605
876
  onPointerDown={[Function]}
2606
- style={Object {}}
877
+ style={
878
+ Object {
879
+ "zIndex": 10,
880
+ }
881
+ }
2607
882
  >
2608
883
  <div
2609
- className="c1"
2610
- onBlur={[Function]}
884
+ className="charcoal-modal-dialog"
885
+ data-bottom-sheet={false}
886
+ data-size="M"
2611
887
  onKeyDown={[Function]}
2612
888
  role="dialog"
2613
- size="M"
2614
889
  style={Object {}}
2615
890
  tabIndex={-1}
2616
891
  >
2617
892
  <div
2618
- className="c2"
893
+ className="charcoal-modal-header-root"
894
+ data-bottom-sheet={false}
2619
895
  >
2620
- <h3
2621
- className="c3 c4"
896
+ <div
897
+ className="charcoal-modal-header-title"
2622
898
  >
2623
- Title
2624
- </h3>
899
+ react/Title
900
+ </div>
2625
901
  </div>
2626
902
  <div
2627
- className="c5"
903
+ className="charcoal-modal-body"
2628
904
  >
2629
905
  <div
2630
- className="c6"
906
+ style={
907
+ Object {
908
+ "display": "grid",
909
+ "gap": 24,
910
+ }
911
+ }
2631
912
  >
2632
913
  <div
2633
914
  style={
2634
915
  Object {
2635
- "background": "linear-gradient(#e66465, #9198e5)",
2636
- "height": 1000,
916
+ "color": "var(--charcoal-text2)",
917
+ "fontSize": 14,
918
+ "lineHeight": "22px",
919
+ "padding": "0 16px",
2637
920
  }
2638
921
  }
2639
- />
2640
- </div>
2641
- <div
2642
- className="c7 c8"
2643
- >
2644
- <button
2645
- className="charcoal-button"
2646
- data-full-width={true}
2647
- onClick={[Function]}
2648
- >
2649
- Close
2650
- </button>
2651
- </div>
2652
- </div>
2653
- </div>
2654
- </div>
2655
- </div>
2656
- </div>
2657
- `;
2658
-
2659
- exports[`Storybook Tests Modal NotDismmissableStory 1`] = `
2660
- .c1 {
2661
- margin: auto;
2662
- position: relative;
2663
- height: -webkit-fit-content;
2664
- height: -moz-fit-content;
2665
- height: fit-content;
2666
- width: 440px;
2667
- background-color: var(--charcoal-surface1);
2668
- border-radius: 24px;
2669
- }
2670
-
2671
- .c1:focus {
2672
- outline: none;
2673
- }
2674
-
2675
- .c0 {
2676
- z-index: 10;
2677
- overflow: auto;
2678
- display: -webkit-box;
2679
- display: -webkit-flex;
2680
- display: -ms-flexbox;
2681
- display: flex;
2682
- position: fixed;
2683
- top: 0;
2684
- left: 0;
2685
- width: -webkit-fill-available;
2686
- width: -moz-available;
2687
- height: 100%;
2688
- -webkit-box-pack: center;
2689
- -webkit-justify-content: center;
2690
- -ms-flex-pack: center;
2691
- justify-content: center;
2692
- padding: 40px 0;
2693
- box-sizing: border-box;
2694
- background-color: var(--charcoal-surface4);
2695
- }
2696
-
2697
- .c3 {
2698
- margin: 0;
2699
- font-weight: inherit;
2700
- font-size: inherit;
2701
- }
2702
-
2703
- .c2 {
2704
- height: 64px;
2705
- display: grid;
2706
- -webkit-align-content: center;
2707
- -ms-flex-line-pack: center;
2708
- align-content: center;
2709
- -webkit-box-pack: center;
2710
- -webkit-justify-content: center;
2711
- -ms-flex-pack: center;
2712
- justify-content: center;
2713
- }
2714
-
2715
- .c4 {
2716
- color: var(--charcoal-text1);
2717
- font-size: 16px;
2718
- line-height: 24px;
2719
- font-weight: bold;
2720
- display: flow-root;
2721
- }
2722
-
2723
- .c4::before {
2724
- display: block;
2725
- width: 0;
2726
- height: 0;
2727
- content: '';
2728
- margin-top: -4px;
2729
- }
2730
-
2731
- .c4::after {
2732
- display: block;
2733
- width: 0;
2734
- height: 0;
2735
- content: '';
2736
- margin-bottom: -4px;
2737
- }
2738
-
2739
- .c7 {
2740
- padding-left: 16px;
2741
- padding-right: 16px;
2742
- }
2743
-
2744
- .c5 {
2745
- padding-bottom: 40px;
2746
- }
2747
-
2748
- .c9 {
2749
- display: grid;
2750
- grid-auto-flow: row;
2751
- grid-row-gap: 8px;
2752
- padding-top: 16px;
2753
- padding-left: 16px;
2754
- padding-right: 16px;
2755
- }
2756
-
2757
- .c6 {
2758
- display: grid;
2759
- gap: 24px;
2760
- }
2761
-
2762
- .c8 {
2763
- color: var(--charcoal-text2);
2764
- font-size: 14px;
2765
- line-height: 22px;
2766
- display: flow-root;
2767
- }
2768
-
2769
- .c8::before {
2770
- display: block;
2771
- width: 0;
2772
- height: 0;
2773
- content: '';
2774
- margin-top: -4px;
2775
- }
2776
-
2777
- .c8::after {
2778
- display: block;
2779
- width: 0;
2780
- height: 0;
2781
- content: '';
2782
- margin-bottom: -4px;
2783
- }
2784
-
2785
- @media (max-width:743px) {
2786
- .c1 {
2787
- max-width: 440px;
2788
- width: calc(100% - 48px);
2789
- }
2790
- }
2791
-
2792
- @media (max-width:743px) {
2793
-
2794
- }
2795
-
2796
- @media (max-width:743px) {
2797
-
2798
- }
2799
-
2800
- <div
2801
- data-dark={false}
2802
- >
2803
- <div
2804
- aria-hidden={null}
2805
- data-overlay-container={true}
2806
- >
2807
- <button
2808
- className="charcoal-button"
2809
- onClick={[Function]}
2810
- >
2811
- Open Modal
2812
- </button>
2813
- <div
2814
- className="c0"
2815
- onClick={[Function]}
2816
- onPointerDown={[Function]}
2817
- style={Object {}}
2818
- >
2819
- <div
2820
- className="c1"
2821
- onBlur={[Function]}
2822
- onKeyDown={[Function]}
2823
- role="dialog"
2824
- size="M"
2825
- style={Object {}}
2826
- tabIndex={-1}
2827
- >
2828
- <div
2829
- className="c2"
2830
- >
2831
- <h3
2832
- className="c3 c4"
2833
- >
2834
- Title
2835
- </h3>
2836
- </div>
2837
- <div
2838
- className="c5"
2839
- >
2840
- <div
2841
- className="c6"
2842
- >
2843
- <div
2844
- className="c7 c8"
2845
922
  >
2846
923
  Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod placeat tenetur, necessitatibus laudantium cumque exercitationem provident. Quaerat iure enim, eveniet dolores earum odio quo possimus fugiat aspernatur, numquam, commodi repellat.
2847
924
  </div>
2848
925
  </div>
2849
926
  <div
2850
- className="c9"
927
+ className="charcoal-modal-buttons"
2851
928
  >
2852
929
  <button
2853
930
  className="charcoal-button"