playbook_ui 12.3.1 → 12.4.0.pre.alpha.map1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +1 -1
- data/app/pb_kits/playbook/data/menu.yml +1 -0
- data/app/pb_kits/playbook/index.js +5 -1
- data/app/pb_kits/playbook/pb_button/_button.tsx +2 -2
- data/app/pb_kits/playbook/pb_dashboard_value/{_dashboard_value.jsx → _dashboard_value.tsx} +12 -14
- data/app/pb_kits/playbook/pb_date_time_stacked/{_date_time_stacked.jsx → _date_time_stacked.tsx} +2 -6
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +5 -2
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +2 -0
- data/app/pb_kits/playbook/pb_map/_map.scss +114 -2
- data/app/pb_kits/playbook/pb_map/_map.tsx +42 -2
- data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +48 -24
- data/app/pb_kits/playbook/pb_map/docs/_map_default.md +4 -4
- data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +16 -14
- data/app/pb_kits/playbook/pb_map/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_map/pbMapTheme.ts +23 -0
- data/app/pb_kits/playbook/pb_person/{_person.jsx → _person.tsx} +6 -8
- data/app/pb_kits/playbook/pb_person/person.test.js +43 -0
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +102 -0
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +155 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx +10 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.md +1 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.jsx +12 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.md +1 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.jsx +13 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.md +1 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.jsx +13 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.md +1 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +4 -0
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +74 -0
- data/app/pb_kits/playbook/pb_phone_number_input/types.d.ts +1 -0
- data/app/pb_kits/playbook/pb_radio/_radio.scss +19 -11
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.html.erb +7 -6
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.jsx +8 -8
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +1 -1
- data/app/pb_kits/playbook/pb_title_count/{_title_count.jsx → _title_count.tsx} +7 -5
- data/app/pb_kits/playbook/pb_title_count/title_count.test.js +69 -0
- data/app/pb_kits/playbook/playbook-doc.js +2 -0
- data/app/pb_kits/playbook/tokens/_colors.scss +24 -24
- data/lib/playbook/version.rb +2 -2
- metadata +26 -9
- /data/app/pb_kits/playbook/pb_dashboard_value/{dashboardValueSettings.js → dashboardValueSettings.ts} +0 -0
@@ -0,0 +1,69 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { render, screen } from '../utilities/test-utils'
|
3
|
+
|
4
|
+
import TitleCount from './_title_count'
|
5
|
+
|
6
|
+
test('returns namespaced class name', () => {
|
7
|
+
render(
|
8
|
+
<TitleCount
|
9
|
+
count={35.78}
|
10
|
+
data={{ testid: 'primary-test' }}
|
11
|
+
title="Appointments"
|
12
|
+
/>
|
13
|
+
)
|
14
|
+
|
15
|
+
const kit = screen.getByTestId('primary-test')
|
16
|
+
expect(kit).toHaveClass('pb_title_count_kit_left_sm')
|
17
|
+
})
|
18
|
+
|
19
|
+
test('size variant', () => {
|
20
|
+
render(
|
21
|
+
<TitleCount
|
22
|
+
count={35.78}
|
23
|
+
data={{ testid: 'large-test' }}
|
24
|
+
size="lg"
|
25
|
+
title="Appointments"
|
26
|
+
/>
|
27
|
+
)
|
28
|
+
|
29
|
+
const kit = screen.getByTestId('large-test')
|
30
|
+
expect(kit).toHaveClass('pb_title_count_kit_left_lg')
|
31
|
+
})
|
32
|
+
|
33
|
+
test('align variant', () => {
|
34
|
+
render(
|
35
|
+
<TitleCount
|
36
|
+
align="right"
|
37
|
+
count={35.78}
|
38
|
+
data={{ testid: 'large-test' }}
|
39
|
+
title="Appointments"
|
40
|
+
/>
|
41
|
+
)
|
42
|
+
|
43
|
+
const kit = screen.getByTestId('large-test')
|
44
|
+
expect(kit).toHaveClass('pb_title_count_kit_right_sm')
|
45
|
+
})
|
46
|
+
|
47
|
+
test('renders count correctly', () => {
|
48
|
+
render(
|
49
|
+
<TitleCount
|
50
|
+
count={35.78}
|
51
|
+
title="Appointments"
|
52
|
+
/>
|
53
|
+
)
|
54
|
+
|
55
|
+
const kit = screen.getByText('35.78')
|
56
|
+
expect(kit).toBeTruthy()
|
57
|
+
})
|
58
|
+
|
59
|
+
test('renders title correctly', () => {
|
60
|
+
render(
|
61
|
+
<TitleCount
|
62
|
+
count={35.78}
|
63
|
+
title="Appointments"
|
64
|
+
/>
|
65
|
+
)
|
66
|
+
|
67
|
+
const kit = screen.getByText('Appointments')
|
68
|
+
expect(kit).toBeTruthy()
|
69
|
+
})
|
@@ -65,6 +65,7 @@ import * as Passphrase from 'pb_passphrase/docs'
|
|
65
65
|
import * as PbReactPopover from 'pb_popover/docs'
|
66
66
|
import * as Person from 'pb_person/docs'
|
67
67
|
import * as PersonContact from 'pb_person_contact/docs'
|
68
|
+
import * as PhoneNumberInput from 'pb_phone_number_input/docs'
|
68
69
|
import * as Pill from 'pb_pill/docs'
|
69
70
|
import * as ProgressPills from 'pb_progress_pills/docs'
|
70
71
|
import * as ProgressSimple from 'pb_progress_simple/docs'
|
@@ -163,6 +164,7 @@ WebpackerReact.setup({
|
|
163
164
|
...PbReactPopover,
|
164
165
|
...Person,
|
165
166
|
...PersonContact,
|
167
|
+
...PhoneNumberInput,
|
166
168
|
...Pill,
|
167
169
|
...ProgressPills,
|
168
170
|
...ProgressSimple,
|
@@ -59,7 +59,7 @@ $main_colors: (
|
|
59
59
|
Background colors ------------------*/
|
60
60
|
$bg_light: $silver !default;
|
61
61
|
$bg_dark: #0a0527 !default;
|
62
|
-
$bg_dark_card: #231E3D;
|
62
|
+
$bg_dark_card: #231E3D !default;
|
63
63
|
$background_colors: (
|
64
64
|
bg_light: $bg_light,
|
65
65
|
bg_dark: $bg_dark,
|
@@ -68,7 +68,7 @@ $background_colors: (
|
|
68
68
|
|
69
69
|
/* Card colors ------------------*/
|
70
70
|
$card_light: $white !default;
|
71
|
-
$card_dark: rgba($white, $opacity_1);
|
71
|
+
$card_dark: rgba($white, $opacity_1) !default;
|
72
72
|
$card_colors: (
|
73
73
|
card_light: $card_light,
|
74
74
|
card_dark: $card_dark
|
@@ -80,7 +80,7 @@ $action_colors: (
|
|
80
80
|
);
|
81
81
|
|
82
82
|
/* Active colors ----------------------*/
|
83
|
-
$active_light: lighten(#E5F2FF, 3.5%);
|
83
|
+
$active_light: lighten(#E5F2FF, 3.5%) !default;
|
84
84
|
$active_dark: #0082ff !default;
|
85
85
|
$active_colors: (
|
86
86
|
active_light: $active_light,
|
@@ -88,17 +88,17 @@ $active_colors: (
|
|
88
88
|
);
|
89
89
|
|
90
90
|
/* Hover colors -----------------------*/
|
91
|
-
$hover_light: darken($silver, 5%);
|
92
|
-
$hover_dark: rgba($white, $opacity_2);
|
91
|
+
$hover_light: darken($silver, 5%) !default;
|
92
|
+
$hover_dark: rgba($white, $opacity_2) !default;
|
93
93
|
$hover_colors: (
|
94
94
|
hover_light: $hover_light,
|
95
95
|
hover_dark: $hover_dark
|
96
96
|
);
|
97
97
|
|
98
98
|
/* Focus colors -----------------------*/
|
99
|
-
$focus_color: $primary;
|
100
|
-
$focus_input_light: rgba($active_light, $opacity_5);
|
101
|
-
$focus_input_dark: rgba(#144075, $opacity_5);
|
99
|
+
$focus_color: $primary !default;
|
100
|
+
$focus_input_light: rgba($active_light, $opacity_5) !default;
|
101
|
+
$focus_input_dark: rgba(#144075, $opacity_5) !default;
|
102
102
|
$focus_input_colors: (
|
103
103
|
focus_input_light: $focus_input_light,
|
104
104
|
focus_input_dark: $focus_input_dark,
|
@@ -107,14 +107,14 @@ $focus_input_colors: (
|
|
107
107
|
|
108
108
|
/* Border colors ----------------------*/
|
109
109
|
$border_light: #E4E8F0 !default;
|
110
|
-
$border_dark: rgba($white, $opacity_1);
|
110
|
+
$border_dark: rgba($white, $opacity_1) !default;
|
111
111
|
$border_colors: (
|
112
112
|
border_light: $border_light,
|
113
113
|
border_dark: $border_dark
|
114
114
|
);
|
115
115
|
|
116
116
|
/* Shadow colors ----------------------*/
|
117
|
-
$shadow: rgba(#3C6AAC, $opacity_2);
|
117
|
+
$shadow: rgba(#3C6AAC, $opacity_2) !default;
|
118
118
|
$shadow_colors: (
|
119
119
|
shadow: $shadow,
|
120
120
|
);
|
@@ -124,8 +124,8 @@ $text_lt_default: $charcoal !default;
|
|
124
124
|
$text_lt_light: #687887 !default;
|
125
125
|
$text_lt_lighter: $slate !default;
|
126
126
|
$text_dk_default: $white !default;
|
127
|
-
$text_dk_light: rgba($white, $opacity_6);
|
128
|
-
$text_dk_lighter: rgba($white, $opacity_4);
|
127
|
+
$text_dk_light: rgba($white, $opacity_6) !default;
|
128
|
+
$text_dk_lighter: rgba($white, $opacity_4) !default;
|
129
129
|
$text_colors: (
|
130
130
|
text_lt_default: $text_lt_default,
|
131
131
|
text_lt_light: $text_lt_light,
|
@@ -157,24 +157,24 @@ $data_colors: (
|
|
157
157
|
|
158
158
|
/* Status colors ----------------------*/
|
159
159
|
$success: $green !default;
|
160
|
-
$success_secondary: lighten($success, 10%);
|
161
|
-
$success_subtle: rgba($success, $opacity_1);
|
160
|
+
$success_secondary: lighten($success, 10%) !default;
|
161
|
+
$success_subtle: rgba($success, $opacity_1) !default;
|
162
162
|
$warning: $yellow !default;
|
163
|
-
$warning_secondary: lighten($warning, 10%);
|
164
|
-
$warning_subtle: rgba($warning, $opacity_1);
|
163
|
+
$warning_secondary: lighten($warning, 10%) !default;
|
164
|
+
$warning_subtle: rgba($warning, $opacity_1) !default;
|
165
165
|
$error: $red !default;
|
166
166
|
$error_dark: $red_dark !default;
|
167
|
-
$error_dark_body: $error_dark;
|
168
|
-
$error_secondary: lighten($error, 10%);
|
169
|
-
$error_subtle: rgba($error, $opacity_1);
|
167
|
+
$error_dark_body: $error_dark !default;
|
168
|
+
$error_secondary: lighten($error, 10%) !default;
|
169
|
+
$error_subtle: rgba($error, $opacity_1) !default;
|
170
170
|
$info: $teal !default;
|
171
|
-
$info_secondary : lighten($info, 10%);
|
172
|
-
$info_subtle: rgba($info, $opacity_1);
|
171
|
+
$info_secondary : lighten($info, 10%) !default;
|
172
|
+
$info_subtle: rgba($info, $opacity_1) !default;
|
173
173
|
$neutral: $slate !default;
|
174
|
-
$neutral_secondary: lighten($neutral, 10%);
|
175
|
-
$neutral_subtle: rgba($neutral, $opacity_1);
|
174
|
+
$neutral_secondary: lighten($neutral, 10%) !default;
|
175
|
+
$neutral_subtle: rgba($neutral, $opacity_1) !default;
|
176
176
|
$primary: $primary !default;
|
177
|
-
$primary_secondary: lighten($primary, 10%);
|
177
|
+
$primary_secondary: lighten($primary, 10%) !default;
|
178
178
|
|
179
179
|
$status_colors: (
|
180
180
|
success: $success,
|
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.
|
4
|
+
version: 12.4.0.pre.alpha.map1
|
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-02-
|
12
|
+
date: 2023-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -660,10 +660,10 @@ files:
|
|
660
660
|
- app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts
|
661
661
|
- app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts
|
662
662
|
- app/pb_kits/playbook/pb_dashboard/themeTypes.ts
|
663
|
-
- app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx
|
664
663
|
- app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.scss
|
664
|
+
- app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.tsx
|
665
665
|
- app/pb_kits/playbook/pb_dashboard_value/_dashboard_value_mixins.scss
|
666
|
-
- app/pb_kits/playbook/pb_dashboard_value/dashboardValueSettings.
|
666
|
+
- app/pb_kits/playbook/pb_dashboard_value/dashboardValueSettings.ts
|
667
667
|
- app/pb_kits/playbook/pb_dashboard_value/dashboard_value.html.erb
|
668
668
|
- app/pb_kits/playbook/pb_dashboard_value/dashboard_value.rb
|
669
669
|
- app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.html.erb
|
@@ -812,8 +812,8 @@ files:
|
|
812
812
|
- app/pb_kits/playbook/pb_date_time/docs/_description.md
|
813
813
|
- app/pb_kits/playbook/pb_date_time/docs/example.yml
|
814
814
|
- app/pb_kits/playbook/pb_date_time/docs/index.js
|
815
|
-
- app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx
|
816
815
|
- app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss
|
816
|
+
- app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx
|
817
817
|
- app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb
|
818
818
|
- app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.rb
|
819
819
|
- app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.test.js
|
@@ -1398,6 +1398,7 @@ files:
|
|
1398
1398
|
- app/pb_kits/playbook/pb_map/docs/example.yml
|
1399
1399
|
- app/pb_kits/playbook/pb_map/docs/index.js
|
1400
1400
|
- app/pb_kits/playbook/pb_map/map.test.jsx
|
1401
|
+
- app/pb_kits/playbook/pb_map/pbMapTheme.ts
|
1401
1402
|
- app/pb_kits/playbook/pb_message/_message.jsx
|
1402
1403
|
- app/pb_kits/playbook/pb_message/_message.scss
|
1403
1404
|
- app/pb_kits/playbook/pb_message/_message_mixins.scss
|
@@ -1525,8 +1526,8 @@ files:
|
|
1525
1526
|
- app/pb_kits/playbook/pb_passphrase/passphrase.html.erb
|
1526
1527
|
- app/pb_kits/playbook/pb_passphrase/passphrase.rb
|
1527
1528
|
- app/pb_kits/playbook/pb_passphrase/passphrase.test.jsx
|
1528
|
-
- app/pb_kits/playbook/pb_person/_person.jsx
|
1529
1529
|
- app/pb_kits/playbook/pb_person/_person.scss
|
1530
|
+
- app/pb_kits/playbook/pb_person/_person.tsx
|
1530
1531
|
- app/pb_kits/playbook/pb_person/docs/_description.md
|
1531
1532
|
- app/pb_kits/playbook/pb_person/docs/_footer.md
|
1532
1533
|
- app/pb_kits/playbook/pb_person/docs/_person_default.html.erb
|
@@ -1536,6 +1537,7 @@ files:
|
|
1536
1537
|
- app/pb_kits/playbook/pb_person/docs/index.js
|
1537
1538
|
- app/pb_kits/playbook/pb_person/person.html.erb
|
1538
1539
|
- app/pb_kits/playbook/pb_person/person.rb
|
1540
|
+
- app/pb_kits/playbook/pb_person/person.test.js
|
1539
1541
|
- app/pb_kits/playbook/pb_person_contact/_person_contact.jsx
|
1540
1542
|
- app/pb_kits/playbook/pb_person_contact/_person_contact.scss
|
1541
1543
|
- app/pb_kits/playbook/pb_person_contact/docs/_description.md
|
@@ -1552,6 +1554,20 @@ files:
|
|
1552
1554
|
- app/pb_kits/playbook/pb_person_contact/docs/index.js
|
1553
1555
|
- app/pb_kits/playbook/pb_person_contact/person_contact.html.erb
|
1554
1556
|
- app/pb_kits/playbook/pb_person_contact/person_contact.rb
|
1557
|
+
- app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss
|
1558
|
+
- app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx
|
1559
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx
|
1560
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.md
|
1561
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.jsx
|
1562
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_initial_country.md
|
1563
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.jsx
|
1564
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_only_countries.md
|
1565
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.jsx
|
1566
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_preferred_countries.md
|
1567
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/example.yml
|
1568
|
+
- app/pb_kits/playbook/pb_phone_number_input/docs/index.js
|
1569
|
+
- app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js
|
1570
|
+
- app/pb_kits/playbook/pb_phone_number_input/types.d.ts
|
1555
1571
|
- app/pb_kits/playbook/pb_pill/_pill.scss
|
1556
1572
|
- app/pb_kits/playbook/pb_pill/_pill.tsx
|
1557
1573
|
- app/pb_kits/playbook/pb_pill/docs/_description.md
|
@@ -2075,8 +2091,8 @@ files:
|
|
2075
2091
|
- app/pb_kits/playbook/pb_title/title.html.erb
|
2076
2092
|
- app/pb_kits/playbook/pb_title/title.rb
|
2077
2093
|
- app/pb_kits/playbook/pb_title/title.test.js
|
2078
|
-
- app/pb_kits/playbook/pb_title_count/_title_count.jsx
|
2079
2094
|
- app/pb_kits/playbook/pb_title_count/_title_count.scss
|
2095
|
+
- app/pb_kits/playbook/pb_title_count/_title_count.tsx
|
2080
2096
|
- app/pb_kits/playbook/pb_title_count/docs/_description.md
|
2081
2097
|
- app/pb_kits/playbook/pb_title_count/docs/_footer.md
|
2082
2098
|
- app/pb_kits/playbook/pb_title_count/docs/_title_count_align.html.erb
|
@@ -2088,6 +2104,7 @@ files:
|
|
2088
2104
|
- app/pb_kits/playbook/pb_title_count/docs/index.js
|
2089
2105
|
- app/pb_kits/playbook/pb_title_count/title_count.html.erb
|
2090
2106
|
- app/pb_kits/playbook/pb_title_count/title_count.rb
|
2107
|
+
- app/pb_kits/playbook/pb_title_count/title_count.test.js
|
2091
2108
|
- app/pb_kits/playbook/pb_title_detail/_title_detail.jsx
|
2092
2109
|
- app/pb_kits/playbook/pb_title_detail/_title_detail.scss
|
2093
2110
|
- app/pb_kits/playbook/pb_title_detail/docs/_description.md
|
@@ -2406,9 +2423,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2406
2423
|
version: '0'
|
2407
2424
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2408
2425
|
requirements:
|
2409
|
-
- - "
|
2426
|
+
- - ">"
|
2410
2427
|
- !ruby/object:Gem::Version
|
2411
|
-
version:
|
2428
|
+
version: 1.3.1
|
2412
2429
|
requirements: []
|
2413
2430
|
rubygems_version: 3.3.7
|
2414
2431
|
signing_key:
|
File without changes
|