ruleBuilder.spec.jsx.snap 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ProjectTeamsSettings render() renders 1`] = `
  3. .glamor-64 {
  4. display: -webkit-box;
  5. display: -webkit-flex;
  6. display: -ms-flexbox;
  7. display: flex;
  8. height: 40px;
  9. -webkit-align-items: center;
  10. -webkit-box-align: center;
  11. -ms-flex-align: center;
  12. align-items: center;
  13. margin-bottom: 1em;
  14. }
  15. .glamor-0 {
  16. padding: 0.5em;
  17. margin-right: 5px;
  18. width: 80px;
  19. -webkit-flex-shrink: 0;
  20. -ms-flex-negative: 0;
  21. flex-shrink: 0;
  22. }
  23. .glamor-4 {
  24. display: block;
  25. width: 100%;
  26. background: #fff;
  27. border: 1px solid;
  28. box-shadow: inset;
  29. padding: 0.5em;
  30. -webkit-transition: border 0.1s linear;
  31. transition: border 0.1s linear;
  32. resize: vertical;
  33. padding: 0.5em;
  34. margin-right: 5px;
  35. }
  36. .glamor-4 {
  37. display: block;
  38. width: 100%;
  39. background: #fff;
  40. border: 1px solid;
  41. box-shadow: inset;
  42. padding: 0.5em;
  43. -webkit-transition: border 0.1s linear;
  44. transition: border 0.1s linear;
  45. resize: vertical;
  46. padding: 0.5em;
  47. margin-right: 5px;
  48. }
  49. .glamor-4 {
  50. display: block;
  51. width: 100%;
  52. background: #fff;
  53. border: 1px solid;
  54. box-shadow: inset;
  55. padding: 0.5em;
  56. -webkit-transition: border 0.1s linear;
  57. transition: border 0.1s linear;
  58. resize: vertical;
  59. padding: 0.5em;
  60. margin-right: 5px;
  61. }
  62. .glamor-4 {
  63. display: block;
  64. width: 100%;
  65. background: #fff;
  66. border: 1px solid;
  67. box-shadow: inset;
  68. padding: 0.5em;
  69. -webkit-transition: border 0.1s linear;
  70. transition: border 0.1s linear;
  71. resize: vertical;
  72. padding: 0.5em;
  73. margin-right: 5px;
  74. }
  75. .glamor-4:focus {
  76. outline: none;
  77. }
  78. .glamor-4:hover,
  79. .glamor-4:focus,
  80. .glamor-4:active {
  81. border: 1px solid;
  82. }
  83. .glamor-9 {
  84. -webkit-flex-shrink: 0;
  85. -ms-flex-negative: 0;
  86. flex-shrink: 0;
  87. margin-right: 5px;
  88. }
  89. .glamor-7 {
  90. vertical-align: middle;
  91. -webkit-flex-shrink: 0;
  92. -ms-flex-negative: 0;
  93. flex-shrink: 0;
  94. margin-right: 5px;
  95. }
  96. .glamor-45 {
  97. box-sizing: border-box;
  98. -webkit-flex: 1;
  99. -ms-flex: 1;
  100. flex: 1;
  101. display: -webkit-box;
  102. display: -webkit-flex;
  103. display: -ms-flexbox;
  104. display: flex;
  105. -webkit-align-items: center;
  106. -webkit-box-align: center;
  107. -ms-flex-align: center;
  108. align-items: center;
  109. }
  110. .glamor-41 {
  111. position: relative;
  112. display: inline-block;
  113. }
  114. .glamor-37 {
  115. margin-right: 5px;
  116. -webkit-flex: 1;
  117. -ms-flex: 1;
  118. flex: 1;
  119. white-space: nowrap;
  120. height: 37px;
  121. }
  122. .glamor-37 .button-label {
  123. font-size: 14px;
  124. padding: 4px 8px;
  125. padding-left: 4px;
  126. }
  127. .glamor-29 {
  128. position: relative;
  129. z-index: 2;
  130. box-shadow: none;
  131. margin-right: 5px;
  132. -webkit-flex: 1;
  133. -ms-flex: 1;
  134. flex: 1;
  135. white-space: nowrap;
  136. height: 37px;
  137. }
  138. .glamor-29 .button-label {
  139. font-size: 14px;
  140. padding: 4px 8px;
  141. padding-left: 4px;
  142. }
  143. .glamor-26 {
  144. box-sizing: border-box;
  145. display: -webkit-box;
  146. display: -webkit-flex;
  147. display: -ms-flexbox;
  148. display: flex;
  149. -webkit-align-items: center;
  150. -webkit-box-align: center;
  151. -ms-flex-align: center;
  152. align-items: center;
  153. }
  154. .glamor-13 {
  155. -webkit-box-pack: end;
  156. -webkit-justify-content: flex-end;
  157. -ms-flex-pack: end;
  158. justify-content: flex-end;
  159. display: -webkit-box;
  160. display: -webkit-flex;
  161. display: -ms-flexbox;
  162. display: flex;
  163. }
  164. .glamor-13 span {
  165. margin-right: 2px;
  166. }
  167. .glamor-13 .avatar {
  168. width: 28px;
  169. height: 28px;
  170. }
  171. .glamor-15 {
  172. margin-left: 3px;
  173. padding: 0px;
  174. }
  175. .glamor-20 {
  176. margin-left: 0.33em;
  177. }
  178. .glamor-18 {
  179. vertical-align: middle;
  180. margin-left: 0.33em;
  181. }
  182. .glamor-60 {
  183. width: 37px;
  184. height: 37px;
  185. -webkit-flex-shrink: 0;
  186. -ms-flex-negative: 0;
  187. flex-shrink: 0;
  188. display: -webkit-box;
  189. display: -webkit-flex;
  190. display: -ms-flexbox;
  191. display: flex;
  192. -webkit-box-pack: center;
  193. -webkit-justify-content: center;
  194. -ms-flex-pack: center;
  195. justify-content: center;
  196. }
  197. .glamor-60 .button-label {
  198. padding: 0.5em;
  199. }
  200. .glamor-60 div {
  201. margin: 0px !important;
  202. }
  203. .glamor-54 {
  204. box-sizing: border-box;
  205. margin-right: 8px;
  206. margin-left: -2px;
  207. }
  208. .glamor-50 {
  209. display: block;
  210. }
  211. .glamor-48 {
  212. vertical-align: middle;
  213. display: block;
  214. }
  215. <RuleBuilder
  216. onAddRule={
  217. [MockFunction] {
  218. "calls": Array [
  219. Array [
  220. "path:some/path/* Jane Doe",
  221. ],
  222. ],
  223. }
  224. }
  225. project={
  226. Object {
  227. "hasAccess": true,
  228. "id": "2",
  229. "isBookmarked": false,
  230. "isMember": true,
  231. "name": "Project Name",
  232. "slug": "project-slug",
  233. "teams": Array [],
  234. }
  235. }
  236. >
  237. <BuilderBar>
  238. <div
  239. className="glamor-64 glamor-65"
  240. >
  241. <BuilderSelect
  242. onChange={[Function]}
  243. value="path"
  244. >
  245. <SelectInput
  246. className="glamor-0 glamor-1"
  247. disabled={false}
  248. multiple={false}
  249. onChange={[Function]}
  250. placeholder="Select an option..."
  251. required={false}
  252. value="path"
  253. >
  254. <select
  255. className="glamor-0 glamor-1"
  256. disabled={false}
  257. multiple={false}
  258. onChange={[Function]}
  259. placeholder="Select an option..."
  260. required={false}
  261. value="path"
  262. >
  263. <option
  264. value="path"
  265. >
  266. Path
  267. </option>
  268. <option
  269. value="url"
  270. >
  271. URL
  272. </option>
  273. </select>
  274. </SelectInput>
  275. </BuilderSelect>
  276. <BuilderInput
  277. controlled={true}
  278. onChange={[Function]}
  279. placeholder="src/example/*"
  280. value=""
  281. >
  282. <input
  283. className="glamor-4 glamor-5"
  284. onChange={[Function]}
  285. placeholder="src/example/*"
  286. value=""
  287. />
  288. </BuilderInput>
  289. <Divider
  290. src="icon-chevron-right"
  291. >
  292. <InlineSvg
  293. className="glamor-9 glamor-6"
  294. src="icon-chevron-right"
  295. >
  296. <StyledSvg
  297. className="glamor-9 glamor-6"
  298. height="1em"
  299. style={Object {}}
  300. viewBox={Object {}}
  301. width="1em"
  302. >
  303. <svg
  304. className="glamor-6 glamor-7 glamor-8"
  305. height="1em"
  306. style={Object {}}
  307. viewBox={Object {}}
  308. width="1em"
  309. >
  310. <use
  311. href="#test"
  312. xlinkHref="#test"
  313. />
  314. </svg>
  315. </StyledSvg>
  316. </InlineSvg>
  317. </Divider>
  318. <Flex
  319. align="center"
  320. flex="1"
  321. >
  322. <Base
  323. align="center"
  324. className="glamor-45"
  325. flex="1"
  326. >
  327. <div
  328. className="glamor-45"
  329. is={null}
  330. >
  331. <DropdownAutoComplete
  332. alignMenu="right"
  333. items={
  334. Array [
  335. Object {
  336. "items": Array [],
  337. "label": "Teams",
  338. "value": "team",
  339. },
  340. Object {
  341. "items": Array [
  342. Object {
  343. "actor": Object {
  344. "id": "1",
  345. "name": "Jane Doe",
  346. "type": "user",
  347. },
  348. "label": "janedoe@example.com",
  349. "searchKey": "janedoe@example.com nodejs",
  350. "value": "user:1",
  351. },
  352. Object {
  353. "actor": Object {
  354. "id": "2",
  355. "name": "John Smith",
  356. "type": "user",
  357. },
  358. "label": "johnsmith@example.com",
  359. "searchKey": "johnsmith@example.com nodejs",
  360. "value": "user:2",
  361. },
  362. ],
  363. "label": "Users",
  364. "value": "user",
  365. },
  366. ]
  367. }
  368. onSelect={[Function]}
  369. >
  370. <DropdownAutoCompleteMenu
  371. alignMenu="right"
  372. items={
  373. Array [
  374. Object {
  375. "items": Array [],
  376. "label": "Teams",
  377. "value": "team",
  378. },
  379. Object {
  380. "items": Array [
  381. Object {
  382. "actor": Object {
  383. "id": "1",
  384. "name": "Jane Doe",
  385. "type": "user",
  386. },
  387. "label": "janedoe@example.com",
  388. "searchKey": "janedoe@example.com nodejs",
  389. "value": "user:1",
  390. },
  391. Object {
  392. "actor": Object {
  393. "id": "2",
  394. "name": "John Smith",
  395. "type": "user",
  396. },
  397. "label": "johnsmith@example.com",
  398. "searchKey": "johnsmith@example.com nodejs",
  399. "value": "user:2",
  400. },
  401. ],
  402. "label": "Users",
  403. "value": "user",
  404. },
  405. ]
  406. }
  407. onSelect={[Function]}
  408. >
  409. <AutoComplete
  410. itemToString={[Function]}
  411. onSelect={[Function]}
  412. >
  413. <DropdownMenu
  414. isOpen={false}
  415. keepMenuOpen={false}
  416. onClickOutside={[Function]}
  417. >
  418. <AutoCompleteRoot>
  419. <Component
  420. className="glamor-41 glamor-42"
  421. >
  422. <div
  423. className="glamor-41 glamor-42"
  424. >
  425. <div
  426. onClick={[Function]}
  427. onMouseEnter={[Function]}
  428. onMouseLeave={[Function]}
  429. role="button"
  430. >
  431. <BuilderDropdownButton
  432. isOpen={false}
  433. >
  434. <DropdownButton
  435. className="glamor-37 glamor-28"
  436. isOpen={false}
  437. >
  438. <StyledButton
  439. className="glamor-37 glamor-28"
  440. isOpen={false}
  441. >
  442. <Component
  443. className="glamor-28 glamor-29 glamor-30"
  444. isOpen={false}
  445. >
  446. <Button
  447. className="glamor-28 glamor-29 glamor-30"
  448. disabled={false}
  449. >
  450. <button
  451. className="glamor-28 glamor-29 glamor-30 button button-default"
  452. disabled={false}
  453. onClick={[Function]}
  454. role="button"
  455. >
  456. <Flex
  457. align="center"
  458. className="button-label"
  459. >
  460. <Base
  461. align="center"
  462. className="button-label glamor-26"
  463. >
  464. <div
  465. className="button-label glamor-26"
  466. is={null}
  467. >
  468. <Owners>
  469. <div
  470. className="glamor-13 glamor-14"
  471. />
  472. </Owners>
  473. <AddOwnersLabel>
  474. <div
  475. className="glamor-15 glamor-16"
  476. >
  477. Add Owners
  478. </div>
  479. </AddOwnersLabel>
  480. <StyledChevronDown>
  481. <Component
  482. className="glamor-20 glamor-17"
  483. >
  484. <InlineSvg
  485. className="glamor-20 glamor-17"
  486. src="icon-chevron-down"
  487. >
  488. <StyledSvg
  489. className="glamor-20 glamor-17"
  490. height="1em"
  491. style={Object {}}
  492. viewBox={Object {}}
  493. width="1em"
  494. >
  495. <svg
  496. className="glamor-17 glamor-18 glamor-8"
  497. height="1em"
  498. style={Object {}}
  499. viewBox={Object {}}
  500. width="1em"
  501. >
  502. <use
  503. href="#test"
  504. xlinkHref="#test"
  505. />
  506. </svg>
  507. </StyledSvg>
  508. </InlineSvg>
  509. </Component>
  510. </StyledChevronDown>
  511. </div>
  512. </Base>
  513. </Flex>
  514. </button>
  515. </Button>
  516. </Component>
  517. </StyledButton>
  518. </DropdownButton>
  519. </BuilderDropdownButton>
  520. </div>
  521. </div>
  522. </Component>
  523. </AutoCompleteRoot>
  524. </DropdownMenu>
  525. </AutoComplete>
  526. </DropdownAutoCompleteMenu>
  527. </DropdownAutoComplete>
  528. </div>
  529. </Base>
  530. </Flex>
  531. <RuleAddButton
  532. icon="icon-circle-add"
  533. onClick={[Function]}
  534. priority="primary"
  535. >
  536. <Button
  537. className="glamor-60 glamor-61"
  538. disabled={false}
  539. icon="icon-circle-add"
  540. onClick={[Function]}
  541. priority="primary"
  542. >
  543. <button
  544. className="glamor-60 glamor-61 button button-primary"
  545. disabled={false}
  546. onClick={[Function]}
  547. role="button"
  548. >
  549. <Flex
  550. align="center"
  551. className="button-label"
  552. >
  553. <Base
  554. align="center"
  555. className="button-label glamor-26"
  556. >
  557. <div
  558. className="button-label glamor-26"
  559. is={null}
  560. >
  561. <Icon>
  562. <Base
  563. className="glamor-54 glamor-55"
  564. >
  565. <div
  566. className="glamor-54 glamor-55"
  567. is={null}
  568. >
  569. <StyledInlineSvg
  570. size="16px"
  571. src="icon-circle-add"
  572. >
  573. <InlineSvg
  574. className="glamor-50 glamor-47"
  575. size="16px"
  576. src="icon-circle-add"
  577. >
  578. <StyledSvg
  579. className="glamor-50 glamor-47"
  580. height="16px"
  581. style={Object {}}
  582. viewBox={Object {}}
  583. width="16px"
  584. >
  585. <svg
  586. className="glamor-47 glamor-48 glamor-8"
  587. height="16px"
  588. style={Object {}}
  589. viewBox={Object {}}
  590. width="16px"
  591. >
  592. <use
  593. href="#test"
  594. xlinkHref="#test"
  595. />
  596. </svg>
  597. </StyledSvg>
  598. </InlineSvg>
  599. </StyledInlineSvg>
  600. </div>
  601. </Base>
  602. </Icon>
  603. </div>
  604. </Base>
  605. </Flex>
  606. </button>
  607. </Button>
  608. </RuleAddButton>
  609. </div>
  610. </BuilderBar>
  611. </RuleBuilder>
  612. `;