playbook_ui 12.5.0.pre.alpha.datepicker1 → 12.5.0.pre.alpha.datepickerinput1
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +1 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -42
- data/app/pb_kits/playbook/pb_awesome/_awesome.scss +0 -3
- data/app/pb_kits/playbook/pb_awesome/_awesome.tsx +0 -41
- data/app/pb_kits/playbook/pb_awesome/awesome.html.erb +0 -7
- data/app/pb_kits/playbook/pb_awesome/awesome.rb +0 -8
- data/app/pb_kits/playbook/pb_awesome/awesome.test.jsx +0 -17
- data/app/pb_kits/playbook/pb_awesome/docs/_awesome_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_awesome/docs/_awesome_default.jsx +0 -12
- data/app/pb_kits/playbook/pb_awesome/docs/example.yml +0 -9
- data/app/pb_kits/playbook/pb_awesome/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_cool/_cool.scss +0 -3
- data/app/pb_kits/playbook/pb_cool/_cool.tsx +0 -41
- data/app/pb_kits/playbook/pb_cool/cool.html.erb +0 -7
- data/app/pb_kits/playbook/pb_cool/cool.rb +0 -8
- data/app/pb_kits/playbook/pb_cool/cool.test.jsx +0 -17
- data/app/pb_kits/playbook/pb_cool/docs/_cool_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_cool/docs/_cool_default.jsx +0 -12
- data/app/pb_kits/playbook/pb_cool/docs/example.yml +0 -9
- data/app/pb_kits/playbook/pb_cool/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_coolness/_coolness.scss +0 -3
- data/app/pb_kits/playbook/pb_coolness/_coolness.tsx +0 -41
- data/app/pb_kits/playbook/pb_coolness/coolness.html.erb +0 -7
- data/app/pb_kits/playbook/pb_coolness/coolness.rb +0 -8
- data/app/pb_kits/playbook/pb_coolness/coolness.test.jsx +0 -17
- data/app/pb_kits/playbook/pb_coolness/docs/_coolness_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_coolness/docs/_coolness_default.jsx +0 -12
- data/app/pb_kits/playbook/pb_coolness/docs/example.yml +0 -9
- data/app/pb_kits/playbook/pb_coolness/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_phone_number_input/PhoneNumberHelper.js +0 -12
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.html.erb +0 -3
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.html.erb +0 -4
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.html.erb +0 -4
- data/app/pb_kits/playbook/pb_test/_test.scss +0 -3
- data/app/pb_kits/playbook/pb_test/_test.tsx +0 -41
- data/app/pb_kits/playbook/pb_test/docs/_test_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_test/docs/_test_default.jsx +0 -12
- data/app/pb_kits/playbook/pb_test/docs/example.yml +0 -9
- data/app/pb_kits/playbook/pb_test/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_test/test.html.erb +0 -7
- data/app/pb_kits/playbook/pb_test/test.rb +0 -8
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d384648066bfca20bd817be4065e8d4710f06672a2a335e451a7748b60c2a74
|
4
|
+
data.tar.gz: 5b95638a4466aedc9ad816b84b22fda494c6c3556ad78bcb9b8053a3a18766fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfb26ce98684faae10c092af1ae16e9f8b3b5641343a5c60164eb489290c1e328e355c3c400822adc0366965ba9d00d4600073b3791b5ef754a6150baa00445e
|
7
|
+
data.tar.gz: c09f2ff8f7b8b8e3f803021421783fc98d931d838e0485c4b0345ac3d654999a08fa07e038e3be68ff2947aba85c4e070e4e80327c8a14fc60dc9e6a26270851
|
@@ -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:
|
7
|
+
default: false
|
8
8
|
prop :dark, type: Playbook::Props::Boolean,
|
9
9
|
default: false
|
10
10
|
prop :default_date, type: Playbook::Props::String,
|
data/lib/playbook/version.rb
CHANGED
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.
|
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-
|
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,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,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 +0,0 @@
|
|
1
|
-
export { default as AwesomeDefault } from './_awesome_default.jsx'
|
@@ -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,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 +0,0 @@
|
|
1
|
-
export { default as CoolDefault } from './_cool_default.jsx'
|
@@ -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,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 +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,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 +0,0 @@
|
|
1
|
-
export { default as TestDefault } from './_test_default.jsx'
|
@@ -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
|
-
})
|