playbook_ui 12.5.0.pre.alpha.datepicker1 → 12.5.0.pre.alpha.datepickerinput1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +1 -1
  3. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +1 -1
  4. data/lib/playbook/version.rb +1 -1
  5. metadata +2 -42
  6. data/app/pb_kits/playbook/pb_awesome/_awesome.scss +0 -3
  7. data/app/pb_kits/playbook/pb_awesome/_awesome.tsx +0 -41
  8. data/app/pb_kits/playbook/pb_awesome/awesome.html.erb +0 -7
  9. data/app/pb_kits/playbook/pb_awesome/awesome.rb +0 -8
  10. data/app/pb_kits/playbook/pb_awesome/awesome.test.jsx +0 -17
  11. data/app/pb_kits/playbook/pb_awesome/docs/_awesome_default.html.erb +0 -1
  12. data/app/pb_kits/playbook/pb_awesome/docs/_awesome_default.jsx +0 -12
  13. data/app/pb_kits/playbook/pb_awesome/docs/example.yml +0 -9
  14. data/app/pb_kits/playbook/pb_awesome/docs/index.js +0 -1
  15. data/app/pb_kits/playbook/pb_cool/_cool.scss +0 -3
  16. data/app/pb_kits/playbook/pb_cool/_cool.tsx +0 -41
  17. data/app/pb_kits/playbook/pb_cool/cool.html.erb +0 -7
  18. data/app/pb_kits/playbook/pb_cool/cool.rb +0 -8
  19. data/app/pb_kits/playbook/pb_cool/cool.test.jsx +0 -17
  20. data/app/pb_kits/playbook/pb_cool/docs/_cool_default.html.erb +0 -1
  21. data/app/pb_kits/playbook/pb_cool/docs/_cool_default.jsx +0 -12
  22. data/app/pb_kits/playbook/pb_cool/docs/example.yml +0 -9
  23. data/app/pb_kits/playbook/pb_cool/docs/index.js +0 -1
  24. data/app/pb_kits/playbook/pb_coolness/_coolness.scss +0 -3
  25. data/app/pb_kits/playbook/pb_coolness/_coolness.tsx +0 -41
  26. data/app/pb_kits/playbook/pb_coolness/coolness.html.erb +0 -7
  27. data/app/pb_kits/playbook/pb_coolness/coolness.rb +0 -8
  28. data/app/pb_kits/playbook/pb_coolness/coolness.test.jsx +0 -17
  29. data/app/pb_kits/playbook/pb_coolness/docs/_coolness_default.html.erb +0 -1
  30. data/app/pb_kits/playbook/pb_coolness/docs/_coolness_default.jsx +0 -12
  31. data/app/pb_kits/playbook/pb_coolness/docs/example.yml +0 -9
  32. data/app/pb_kits/playbook/pb_coolness/docs/index.js +0 -1
  33. data/app/pb_kits/playbook/pb_phone_number_input/PhoneNumberHelper.js +0 -12
  34. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.html.erb +0 -3
  35. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.html.erb +0 -4
  36. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.html.erb +0 -4
  37. data/app/pb_kits/playbook/pb_test/_test.scss +0 -3
  38. data/app/pb_kits/playbook/pb_test/_test.tsx +0 -41
  39. data/app/pb_kits/playbook/pb_test/docs/_test_default.html.erb +0 -1
  40. data/app/pb_kits/playbook/pb_test/docs/_test_default.jsx +0 -12
  41. data/app/pb_kits/playbook/pb_test/docs/example.yml +0 -9
  42. data/app/pb_kits/playbook/pb_test/docs/index.js +0 -1
  43. data/app/pb_kits/playbook/pb_test/test.html.erb +0 -7
  44. data/app/pb_kits/playbook/pb_test/test.rb +0 -8
  45. data/app/pb_kits/playbook/pb_test/test.test.jsx +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 327c132ebc8c159f50f33488ecef9d5cdaa9332dedfb1d100557c5c2e1f08aa9
4
- data.tar.gz: 40b8ae76091ff0e087d4b3b2560d6aab6db9adde5686c65927cc863af69e78d0
3
+ metadata.gz: 5d384648066bfca20bd817be4065e8d4710f06672a2a335e451a7748b60c2a74
4
+ data.tar.gz: 5b95638a4466aedc9ad816b84b22fda494c6c3556ad78bcb9b8053a3a18766fd
5
5
  SHA512:
6
- metadata.gz: 622a1cc9d58859cbc96dbd5682d928f910f1dd372591cbc8b1638edd1abf83b4489d32aa6cefa53766f8607f0048b0c6bf1d9f881f0f50e560c826ba49962acb
7
- data.tar.gz: ad04ed9a79aef5146285899b45f4cc6e07b3a760ec52b7e4d31db2f3c3048f55d84e7fff7a2a592a53fc88aec7c81bc111711703871d054acbc8186a98920c81
6
+ metadata.gz: cfb26ce98684faae10c092af1ae16e9f8b3b5641343a5c60164eb489290c1e328e355c3c400822adc0366965ba9d00d4600073b3791b5ef754a6150baa00445e
7
+ data.tar.gz: c09f2ff8f7b8b8e3f803021421783fc98d931d838e0485c4b0345ac3d654999a08fa07e038e3be68ff2947aba85c4e070e4e80327c8a14fc60dc9e6a26270851
@@ -51,7 +51,7 @@ const DatePicker = (props: DatePickerProps): React.ReactElement => {
51
51
  if (props.plugins) deprecatedProps('Date Picker', ['plugins'])
52
52
 
53
53
  const {
54
- allowInput = true,
54
+ allowInput = false,
55
55
  aria = {},
56
56
  className,
57
57
  dark = false,
@@ -4,7 +4,7 @@ module Playbook
4
4
  module PbDatePicker
5
5
  class DatePicker < Playbook::KitBase
6
6
  prop :allow_input, type: Playbook::Props::Boolean,
7
- default: true
7
+ default: false
8
8
  prop :dark, type: Playbook::Props::Boolean,
9
9
  default: false
10
10
  prop :default_date, type: Playbook::Props::String,
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "12.5.0"
5
- VERSION = "12.5.0.pre.alpha.datepicker1"
5
+ VERSION = "12.5.0.pre.alpha.datepickerinput1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.5.0.pre.alpha.datepicker1
4
+ version: 12.5.0.pre.alpha.datepickerinput1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-01 00:00:00.000000000 Z
12
+ date: 2023-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -332,15 +332,6 @@ files:
332
332
  - app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml
333
333
  - app/pb_kits/playbook/pb_avatar_action_button/docs/index.js
334
334
  - app/pb_kits/playbook/pb_avatar_action_button/pb_avatar_action_button.test.js
335
- - app/pb_kits/playbook/pb_awesome/_awesome.scss
336
- - app/pb_kits/playbook/pb_awesome/_awesome.tsx
337
- - app/pb_kits/playbook/pb_awesome/awesome.html.erb
338
- - app/pb_kits/playbook/pb_awesome/awesome.rb
339
- - app/pb_kits/playbook/pb_awesome/awesome.test.jsx
340
- - app/pb_kits/playbook/pb_awesome/docs/_awesome_default.html.erb
341
- - app/pb_kits/playbook/pb_awesome/docs/_awesome_default.jsx
342
- - app/pb_kits/playbook/pb_awesome/docs/example.yml
343
- - app/pb_kits/playbook/pb_awesome/docs/index.js
344
335
  - app/pb_kits/playbook/pb_background/_background.scss
345
336
  - app/pb_kits/playbook/pb_background/_background.tsx
346
337
  - app/pb_kits/playbook/pb_background/background.html.erb
@@ -644,24 +635,6 @@ files:
644
635
  - app/pb_kits/playbook/pb_contact/docs/_description.md
645
636
  - app/pb_kits/playbook/pb_contact/docs/example.yml
646
637
  - app/pb_kits/playbook/pb_contact/docs/index.js
647
- - app/pb_kits/playbook/pb_cool/_cool.scss
648
- - app/pb_kits/playbook/pb_cool/_cool.tsx
649
- - app/pb_kits/playbook/pb_cool/cool.html.erb
650
- - app/pb_kits/playbook/pb_cool/cool.rb
651
- - app/pb_kits/playbook/pb_cool/cool.test.jsx
652
- - app/pb_kits/playbook/pb_cool/docs/_cool_default.html.erb
653
- - app/pb_kits/playbook/pb_cool/docs/_cool_default.jsx
654
- - app/pb_kits/playbook/pb_cool/docs/example.yml
655
- - app/pb_kits/playbook/pb_cool/docs/index.js
656
- - app/pb_kits/playbook/pb_coolness/_coolness.scss
657
- - app/pb_kits/playbook/pb_coolness/_coolness.tsx
658
- - app/pb_kits/playbook/pb_coolness/coolness.html.erb
659
- - app/pb_kits/playbook/pb_coolness/coolness.rb
660
- - app/pb_kits/playbook/pb_coolness/coolness.test.jsx
661
- - app/pb_kits/playbook/pb_coolness/docs/_coolness_default.html.erb
662
- - app/pb_kits/playbook/pb_coolness/docs/_coolness_default.jsx
663
- - app/pb_kits/playbook/pb_coolness/docs/example.yml
664
- - app/pb_kits/playbook/pb_coolness/docs/index.js
665
638
  - app/pb_kits/playbook/pb_currency/_currency.scss
666
639
  - app/pb_kits/playbook/pb_currency/_currency.tsx
667
640
  - app/pb_kits/playbook/pb_currency/currency.html.erb
@@ -1584,19 +1557,15 @@ files:
1584
1557
  - app/pb_kits/playbook/pb_person_contact/docs/index.js
1585
1558
  - app/pb_kits/playbook/pb_person_contact/person_contact.html.erb
1586
1559
  - app/pb_kits/playbook/pb_person_contact/person_contact.rb
1587
- - app/pb_kits/playbook/pb_phone_number_input/PhoneNumberHelper.js
1588
1560
  - app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss
1589
1561
  - app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx
1590
1562
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.html.erb
1591
1563
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx
1592
1564
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.md
1593
- - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.html.erb
1594
1565
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.jsx
1595
1566
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.md
1596
- - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.html.erb
1597
1567
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.jsx
1598
1568
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.md
1599
- - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.html.erb
1600
1569
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.jsx
1601
1570
  - app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.md
1602
1571
  - app/pb_kits/playbook/pb_phone_number_input/docs/example.yml
@@ -1988,15 +1957,6 @@ files:
1988
1957
  - app/pb_kits/playbook/pb_table/table.test.js
1989
1958
  - app/pb_kits/playbook/pb_table/table_row.html.erb
1990
1959
  - app/pb_kits/playbook/pb_table/table_row.rb
1991
- - app/pb_kits/playbook/pb_test/_test.scss
1992
- - app/pb_kits/playbook/pb_test/_test.tsx
1993
- - app/pb_kits/playbook/pb_test/docs/_test_default.html.erb
1994
- - app/pb_kits/playbook/pb_test/docs/_test_default.jsx
1995
- - app/pb_kits/playbook/pb_test/docs/example.yml
1996
- - app/pb_kits/playbook/pb_test/docs/index.js
1997
- - app/pb_kits/playbook/pb_test/test.html.erb
1998
- - app/pb_kits/playbook/pb_test/test.rb
1999
- - app/pb_kits/playbook/pb_test/test.test.jsx
2000
1960
  - app/pb_kits/playbook/pb_text_input/_text_input.scss
2001
1961
  - app/pb_kits/playbook/pb_text_input/_text_input.tsx
2002
1962
  - app/pb_kits/playbook/pb_text_input/add_on.html.erb
@@ -1,3 +0,0 @@
1
- .pb_awesome {
2
-
3
- }
@@ -1,41 +0,0 @@
1
-
2
-
3
- /* @flow */
4
-
5
- import React from 'react'
6
- import classnames from 'classnames'
7
- import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
8
- import { globalProps } from '../utilities/globalProps'
9
-
10
- type AwesomeProps = {
11
- aria?: { [key: string]: string },
12
- className?: string,
13
- data?: { [key: string]: string },
14
- id?: string,
15
- }
16
-
17
- const Awesome = (props: AwesomeProps) => {
18
- const {
19
- aria = {},
20
- className,
21
- data = {},
22
- id,
23
- } = props
24
-
25
- const ariaProps = buildAriaProps(aria)
26
- const dataProps = buildDataProps(data)
27
- const classes = classnames(buildCss('pb_awesome'), globalProps(props), className)
28
-
29
- return (
30
- <div
31
- {...ariaProps}
32
- {...dataProps}
33
- className={classes}
34
- id={id}
35
- >
36
- {className}
37
- </div>
38
- )
39
- }
40
-
41
- export default Awesome
@@ -1,7 +0,0 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id) do %>
6
- <span>AWESOME CONTENT</span>
7
- <% end %>
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbAwesome
5
- class Awesome < ::Playbook::KitBase
6
- end
7
- end
8
- end
@@ -1,17 +0,0 @@
1
- import { ensureAccessible, renderKit } from '../utilities/test-utils'
2
-
3
- import { Awesome } from '../'
4
-
5
- /* See these resources for more testing info:
6
- - https://github.com/testing-library/jest-dom#usage for useage and examples
7
- - https://jestjs.io/docs/en/using-matchers
8
- */
9
-
10
- test('generated scaffold test - update me', () => {
11
- const props = {
12
- data: { testid: 'default' }
13
- }
14
-
15
- const kit = renderKit(Awesome , props)
16
- expect(kit).toBeInTheDocument()
17
- })
@@ -1 +0,0 @@
1
- <%= pb_rails("awesome") %>
@@ -1,12 +0,0 @@
1
- import React from 'react'
2
- import Awesome from '../_Awesome'
3
-
4
- const AwesomeDefault = (props) => (
5
- <div>
6
- <Awesome
7
- {...props}
8
- />
9
- </div>
10
- )
11
-
12
- export default AwesomeDefault
@@ -1,9 +0,0 @@
1
- examples:
2
-
3
- rails:
4
- - awesome_default: Default
5
-
6
-
7
- react:
8
- - awesome_default: Default
9
-
@@ -1 +0,0 @@
1
- export { default as AwesomeDefault } from './_awesome_default.jsx'
@@ -1,3 +0,0 @@
1
- .pb_cool {
2
-
3
- }
@@ -1,41 +0,0 @@
1
-
2
-
3
- /* @flow */
4
-
5
- import React from 'react'
6
- import classnames from 'classnames'
7
- import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
8
- import { globalProps } from '../utilities/globalProps'
9
-
10
- type CoolProps = {
11
- aria?: { [key: string]: string },
12
- className?: string,
13
- data?: { [key: string]: string },
14
- id?: string,
15
- }
16
-
17
- const Cool = (props: CoolProps) => {
18
- const {
19
- aria = {},
20
- className,
21
- data = {},
22
- id,
23
- } = props
24
-
25
- const ariaProps = buildAriaProps(aria)
26
- const dataProps = buildDataProps(data)
27
- const classes = classnames(buildCss('pb_cool'), globalProps(props), className)
28
-
29
- return (
30
- <div
31
- {...ariaProps}
32
- {...dataProps}
33
- className={classes}
34
- id={id}
35
- >
36
- {className}
37
- </div>
38
- )
39
- }
40
-
41
- export default Cool
@@ -1,7 +0,0 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id) do %>
6
- <span>COOL CONTENT</span>
7
- <% end %>
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbCool
5
- class Cool < ::Playbook::KitBase
6
- end
7
- end
8
- end
@@ -1,17 +0,0 @@
1
- import { ensureAccessible, renderKit } from '../utilities/test-utils'
2
-
3
- import { Cool } from '../'
4
-
5
- /* See these resources for more testing info:
6
- - https://github.com/testing-library/jest-dom#usage for useage and examples
7
- - https://jestjs.io/docs/en/using-matchers
8
- */
9
-
10
- test('generated scaffold test - update me', () => {
11
- const props = {
12
- data: { testid: 'default' }
13
- }
14
-
15
- const kit = renderKit(Cool , props)
16
- expect(kit).toBeInTheDocument()
17
- })
@@ -1 +0,0 @@
1
- <%= pb_rails("cool") %>
@@ -1,12 +0,0 @@
1
- import React from 'react'
2
- import Cool from '../_Cool'
3
-
4
- const CoolDefault = (props) => (
5
- <div>
6
- <Cool
7
- {...props}
8
- />
9
- </div>
10
- )
11
-
12
- export default CoolDefault
@@ -1,9 +0,0 @@
1
- examples:
2
-
3
- rails:
4
- - cool_default: Default
5
-
6
-
7
- react:
8
- - cool_default: Default
9
-
@@ -1 +0,0 @@
1
- export { default as CoolDefault } from './_cool_default.jsx'
@@ -1,3 +0,0 @@
1
- .pb_coolness {
2
-
3
- }
@@ -1,41 +0,0 @@
1
-
2
-
3
- /* @flow */
4
-
5
- import React from 'react'
6
- import classnames from 'classnames'
7
- import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
8
- import { globalProps } from '../utilities/globalProps'
9
-
10
- type CoolnessProps = {
11
- aria?: { [key: string]: string },
12
- className?: string,
13
- data?: { [key: string]: string },
14
- id?: string,
15
- }
16
-
17
- const Coolness = (props: CoolnessProps) => {
18
- const {
19
- aria = {},
20
- className,
21
- data = {},
22
- id,
23
- } = props
24
-
25
- const ariaProps = buildAriaProps(aria)
26
- const dataProps = buildDataProps(data)
27
- const classes = classnames(buildCss('pb_coolness'), globalProps(props), className)
28
-
29
- return (
30
- <div
31
- {...ariaProps}
32
- {...dataProps}
33
- className={classes}
34
- id={id}
35
- >
36
- {className}
37
- </div>
38
- )
39
- }
40
-
41
- export default Coolness
@@ -1,7 +0,0 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id) do %>
6
- <span>COOLNESS CONTENT</span>
7
- <% end %>
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbCoolness
5
- class Coolness < ::Playbook::KitBase
6
- end
7
- end
8
- end
@@ -1,17 +0,0 @@
1
- import { ensureAccessible, renderKit } from '../utilities/test-utils'
2
-
3
- import { Coolness } from '../'
4
-
5
- /* See these resources for more testing info:
6
- - https://github.com/testing-library/jest-dom#usage for useage and examples
7
- - https://jestjs.io/docs/en/using-matchers
8
- */
9
-
10
- test('generated scaffold test - update me', () => {
11
- const props = {
12
- data: { testid: 'default' }
13
- }
14
-
15
- const kit = renderKit(Coolness , props)
16
- expect(kit).toBeInTheDocument()
17
- })
@@ -1 +0,0 @@
1
- <%= pb_rails("coolness") %>
@@ -1,12 +0,0 @@
1
- import React from 'react'
2
- import Coolness from '../_Coolness'
3
-
4
- const CoolnessDefault = (props) => (
5
- <div>
6
- <Coolness
7
- {...props}
8
- />
9
- </div>
10
- )
11
-
12
- export default CoolnessDefault
@@ -1,9 +0,0 @@
1
- examples:
2
-
3
- rails:
4
- - coolness_default: Default
5
-
6
-
7
- react:
8
- - coolness_default: Default
9
-
@@ -1 +0,0 @@
1
- export { default as CoolnessDefault } from './_coolness_default.jsx'
@@ -1,12 +0,0 @@
1
-
2
- const PhoneNumberHelper = () => {
3
- // window.addEventListener('DOMContentLoaded', () => {
4
- for (let i = 0; i < window.intlTelInputGlobals.getCountryData().length; i++) {
5
- let country = window.intlTelInputGlobals.getCountryData()[i]
6
- country.name = country.name.split("(")[0].trim()
7
- console.log(country.name)
8
- }
9
- // })
10
- };
11
-
12
- export default PhoneNumberHelper;
@@ -1,3 +0,0 @@
1
- <%= pb_rails("phone_number_input", props: {
2
- initial_country: "br"
3
- }) %>
@@ -1,4 +0,0 @@
1
- <%= pb_rails("phone_number_input", props: {
2
- initial_country: "br",
3
- only_countries: ['us', 'br']
4
- }) %>
@@ -1,4 +0,0 @@
1
- <%= pb_rails("phone_number_input", props: {
2
- initial_country: "br",
3
- preferred_countries: ['us', 'br', 'ph', 'gb']
4
- }) %>
@@ -1,3 +0,0 @@
1
- .pb_test {
2
-
3
- }
@@ -1,41 +0,0 @@
1
-
2
-
3
- /* @flow */
4
-
5
- import React from 'react'
6
- import classnames from 'classnames'
7
- import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
8
- import { globalProps } from '../utilities/globalProps'
9
-
10
- type TestProps = {
11
- aria?: { [key: string]: string },
12
- className?: string,
13
- data?: { [key: string]: string },
14
- id?: string,
15
- }
16
-
17
- const Test = (props: TestProps) => {
18
- const {
19
- aria = {},
20
- className,
21
- data = {},
22
- id,
23
- } = props
24
-
25
- const ariaProps = buildAriaProps(aria)
26
- const dataProps = buildDataProps(data)
27
- const classes = classnames(buildCss('pb_test'), globalProps(props), className)
28
-
29
- return (
30
- <div
31
- {...ariaProps}
32
- {...dataProps}
33
- className={classes}
34
- id={id}
35
- >
36
- {className}
37
- </div>
38
- )
39
- }
40
-
41
- export default Test
@@ -1 +0,0 @@
1
- <%= pb_rails("test") %>
@@ -1,12 +0,0 @@
1
- import React from 'react'
2
- import Test from '../_Test'
3
-
4
- const TestDefault = (props) => (
5
- <div>
6
- <Test
7
- {...props}
8
- />
9
- </div>
10
- )
11
-
12
- export default TestDefault
@@ -1,9 +0,0 @@
1
- examples:
2
-
3
- rails:
4
- - test_default: Default
5
-
6
-
7
- react:
8
- - test_default: Default
9
-
@@ -1 +0,0 @@
1
- export { default as TestDefault } from './_test_default.jsx'
@@ -1,7 +0,0 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id) do %>
6
- <span>TEST CONTENT</span>
7
- <% end %>
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbTest
5
- class Test < ::Playbook::KitBase
6
- end
7
- end
8
- end
@@ -1,17 +0,0 @@
1
- import { ensureAccessible, renderKit } from '../utilities/test-utils'
2
-
3
- import { Test } from '../'
4
-
5
- /* See these resources for more testing info:
6
- - https://github.com/testing-library/jest-dom#usage for useage and examples
7
- - https://jestjs.io/docs/en/using-matchers
8
- */
9
-
10
- test('generated scaffold test - update me', () => {
11
- const props = {
12
- data: { testid: 'default' }
13
- }
14
-
15
- const kit = renderKit(Test , props)
16
- expect(kit).toBeInTheDocument()
17
- })